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:
Dax Raad
2026-02-06 00:36:08 -05:00
parent 3ae16bccba
commit ab49fa8c9c
3 changed files with 67 additions and 49 deletions
+3 -3
View File
@@ -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,