summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-13 23:24:46 -0400
committerDax Raad <[email protected]>2025-06-13 23:24:46 -0400
commit59a5f120c040e5738731ffd4af8e19a1c603fff6 (patch)
tree49729fac95587bbd4a342ae6495726aeac08effb
parentce07f80b19af08664fb58783172fade585bf0704 (diff)
downloadopencode-59a5f120c040e5738731ffd4af8e19a1c603fff6.tar.gz
opencode-59a5f120c040e5738731ffd4af8e19a1c603fff6.zip
Clean up workflows and enhance file discovery tools to include dot files
🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode <[email protected]>
-rw-r--r--.github/workflows/build.yml37
-rw-r--r--.github/workflows/publish.yml2
-rw-r--r--packages/opencode/src/tool/glob.ts2
-rw-r--r--packages/opencode/src/tool/ls.ts2
4 files changed, 3 insertions, 40 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
deleted file mode 100644
index adede3567..000000000
--- a/.github/workflows/build.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: build
-
-on:
- workflow_dispatch:
- push:
- branches:
- - dev
-
-concurrency: ${{ github.workflow }}-${{ github.ref }}
-
-permissions:
- contents: write
- packages: write
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- with:
- fetch-depth: 0
-
- - run: git fetch --force --tags
-
- - uses: actions/setup-go@v5
- with:
- go-version: ">=1.23.2"
- cache: true
- cache-dependency-path: go.sum
-
- - run: go mod download
-
- - uses: goreleaser/goreleaser-action@v6
- with:
- distribution: goreleaser
- version: latest
- args: build --snapshot --clean
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index d8ab8727c..58726815f 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- - dontlook
+ - dev
tags:
- "*"
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)))