The open source coding agent.
TypeScript
fix erroring on custom tool folder
Dax Raadf2b547cc45aa
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.tsindex c25c6ea0426..6948e1df5ee 100644--- a/packages/opencode/src/config/config.ts+++ b/packages/opencode/src/config/config.ts@@ -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)