Просмотр исходного кода

core: add themes to allowed config directories

Dax Raad 4 месяцев назад
Родитель
Сommit
093fbca711
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) {
   async function assertValid(dir: string) {
-    const ALLOWED_DIRS = new Set(["agent", "command", "mode", "plugin", "tool"])
+    const ALLOWED_DIRS = new Set(["agent", "command", "mode", "plugin", "tool", "themes"])
     const UNEXPECTED_DIR_GLOB = new Bun.Glob("*/")
     const UNEXPECTED_DIR_GLOB = new Bun.Glob("*/")
     for await (const item of UNEXPECTED_DIR_GLOB.scan({ absolute: true, cwd: dir, onlyFiles: false })) {
     for await (const item of UNEXPECTED_DIR_GLOB.scan({ absolute: true, cwd: dir, onlyFiles: false })) {
       const dirname = path.basename(item)
       const dirname = path.basename(item)