mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-06 00:46:53 +00:00
tui: parallelize skill downloads for faster loading
Refactored skill discovery to download skills in parallel instead of sequentially, reducing load times when multiple skills need to be fetched from remote URLs. Also updated AGENTS.md with guidance on using dev branch for diffs.
This commit is contained in:
@@ -153,9 +153,9 @@ export namespace Skill {
|
||||
}
|
||||
|
||||
// Download and load skills from URLs
|
||||
for (const skillUrl of config.skills?.urls ?? []) {
|
||||
const downloadedDirs = await Discovery.pull(skillUrl)
|
||||
for (const dir of downloadedDirs) {
|
||||
for (const url of config.skills?.urls ?? []) {
|
||||
const list = await Discovery.pull(url)
|
||||
for (const dir of list) {
|
||||
dirs.add(dir)
|
||||
for await (const match of SKILL_GLOB.scan({
|
||||
cwd: dir,
|
||||
|
||||
Reference in New Issue
Block a user