fix erroring on custom tool folder

This commit is contained in:
Dax Raad
2025-09-26 05:33:38 -04:00
parent 70310a37b3
commit f2b547cc45

View File

@@ -118,7 +118,7 @@ export namespace Config {
})
async function assertValid(dir: string) {
const ALLOWED_DIRS = new Set(["agent", "command", "mode", "plugin"])
const ALLOWED_DIRS = new Set(["agent", "command", "mode", "plugin", "tool"])
const UNEXPECTED_DIR_GLOB = new Bun.Glob("*/")
for await (const item of UNEXPECTED_DIR_GLOB.scan({ absolute: true, cwd: dir, onlyFiles: false })) {
const dirname = path.basename(item)