ignore: add timer log helper

This commit is contained in:
Dax Raad
2025-06-15 13:33:24 -04:00
parent 230d0a1510
commit 7fbb2ca9a6
3 changed files with 24 additions and 5 deletions

View File

@@ -41,8 +41,7 @@ export const ListTool = Tool.define({
const files = []
for await (const file of glob.scan({ cwd: searchPath, dot: true })) {
if (file.startsWith(".") || IGNORE_PATTERNS.some((p) => file.includes(p)))
continue
if (IGNORE_PATTERNS.some((p) => file.includes(p))) continue
if (params.ignore?.some((pattern) => new Bun.Glob(pattern).match(file)))
continue
files.push(file)