feat(core): add skill autoinvoke metadata

This commit is contained in:
Dax Raad
2026-07-01 15:13:40 -04:00
parent 9f1a8f2149
commit 716f6658db
7 changed files with 86 additions and 5 deletions
+3 -1
View File
@@ -51,7 +51,9 @@ export const layer = Layer.effect(
return SystemContext.empty
const available = permitted
.flatMap((skill) =>
skill.description === undefined ? [] : [{ name: skill.name, description: skill.description }],
skill.description === undefined || skill.autoinvoke === false
? []
: [{ name: skill.name, description: skill.description }],
)
.toSorted((a, b) => a.name.localeCompare(b.name))
return SystemContext.make({