feat: improve skills, better prompting, fix permission asks after invoking skills, ensure agent knows where scripts/resources are (#11737)

This commit is contained in:
Aiden Cline
2026-02-03 09:58:31 -06:00
committed by GitHub
parent 54e14c1a17
commit 3975329629
6 changed files with 143 additions and 16 deletions

View File

@@ -145,14 +145,23 @@ export namespace Skill {
}
}
return skills
const dirs = Array.from(new Set(Object.values(skills).map((item) => path.dirname(item.location))))
return {
skills,
dirs,
}
})
export async function get(name: string) {
return state().then((x) => x[name])
return state().then((x) => x.skills[name])
}
export async function all() {
return state().then((x) => Object.values(x))
return state().then((x) => Object.values(x.skills))
}
export async function dirs() {
return state().then((x) => x.dirs)
}
}