mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
fix erroring on custom tool folder
This commit is contained in:
parent
70310a37b3
commit
f2b547cc45
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user