mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
fix(tool): follow symlinks when looking for tools (#2809)
This commit is contained in:
parent
f709e0b48b
commit
3d332a06b5
@ -42,7 +42,7 @@ export namespace ToolRegistry {
|
||||
const glob = new Bun.Glob("tool/*.{js,ts}")
|
||||
|
||||
for (const dir of await Config.directories()) {
|
||||
for await (const match of glob.scan({ cwd: dir, absolute: true })) {
|
||||
for await (const match of glob.scan({ cwd: dir, absolute: true, followSymlinks: true, dot: true })) {
|
||||
const namespace = path.basename(match, path.extname(match))
|
||||
const mod = await import(match)
|
||||
for (const [id, def] of Object.entries<ToolDefinition>(mod)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user