Skip to content

Commit 59a5f12

Browse files
thdxrOpenCode
andcommitted
Clean up workflows and enhance file discovery tools to include dot files
🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode <noreply@opencode.ai>
1 parent ce07f80 commit 59a5f12

4 files changed

Lines changed: 3 additions & 40 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- dontlook
7+
- dev
88
tags:
99
- "*"
1010

packages/opencode/src/tool/glob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const GlobTool = Tool.define({
2727
const glob = new Bun.Glob(params.pattern)
2828
const files = []
2929
let truncated = false
30-
for await (const file of glob.scan({ cwd: search })) {
30+
for await (const file of glob.scan({ cwd: search, dot: true })) {
3131
if (files.length >= limit) {
3232
truncated = true
3333
break

packages/opencode/src/tool/ls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const ListTool = Tool.define({
4040
const glob = new Bun.Glob("**/*")
4141
const files = []
4242

43-
for await (const file of glob.scan({ cwd: searchPath })) {
43+
for await (const file of glob.scan({ cwd: searchPath, dot: true })) {
4444
if (file.startsWith(".") || IGNORE_PATTERNS.some((p) => file.includes(p)))
4545
continue
4646
if (params.ignore?.some((pattern) => new Bun.Glob(pattern).match(file)))

0 commit comments

Comments
 (0)