fix erroring on custom tool folder

pull/2800/head
Dax Raad 2025-09-26 05:33:38 -04:00
parent 70310a37b3
commit f2b547cc45
1 changed files with 1 additions and 1 deletions

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)