mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-03 07:33:45 +00:00
feat: improve skills, better prompting, fix permission asks after invoking skills, ensure agent knows where scripts/resources are (#11737)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user