From 59a5f120c040e5738731ffd4af8e19a1c603fff6 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 13 Jun 2025 23:24:46 -0400 Subject: Clean up workflows and enhance file discovery tools to include dot files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode --- packages/opencode/src/tool/glob.ts | 2 +- packages/opencode/src/tool/ls.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/opencode/src/tool/glob.ts b/packages/opencode/src/tool/glob.ts index 4acaf50f4..92a01f5e3 100644 --- a/packages/opencode/src/tool/glob.ts +++ b/packages/opencode/src/tool/glob.ts @@ -27,7 +27,7 @@ export const GlobTool = Tool.define({ const glob = new Bun.Glob(params.pattern) const files = [] let truncated = false - for await (const file of glob.scan({ cwd: search })) { + for await (const file of glob.scan({ cwd: search, dot: true })) { if (files.length >= limit) { truncated = true break diff --git a/packages/opencode/src/tool/ls.ts b/packages/opencode/src/tool/ls.ts index ef8afe634..ecb6aa20e 100644 --- a/packages/opencode/src/tool/ls.ts +++ b/packages/opencode/src/tool/ls.ts @@ -40,7 +40,7 @@ export const ListTool = Tool.define({ const glob = new Bun.Glob("**/*") const files = [] - for await (const file of glob.scan({ cwd: searchPath })) { + for await (const file of glob.scan({ cwd: searchPath, dot: true })) { if (file.startsWith(".") || IGNORE_PATTERNS.some((p) => file.includes(p))) continue if (params.ignore?.some((pattern) => new Bun.Glob(pattern).match(file))) -- cgit v1.2.3