core: add themes to allowed config directories

pull/2800/head
Dax Raad 2025-09-26 06:40:41 -04:00
parent 81deea855f
commit 093fbca711
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", "tool"])
const ALLOWED_DIRS = new Set(["agent", "command", "mode", "plugin", "tool", "themes"])
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)