Преглед изворни кода

fix erroring on custom tool folder

Dax Raad пре 5 месеци
родитељ
комит
f2b547cc45
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/opencode/src/config/config.ts

+ 1 - 1
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)