mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix erroring on custom tool folder
This commit is contained in:
parent
70310a37b3
commit
f2b547cc45
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue