The open source coding agent.
TypeScript
Clean up workflows and enhance file discovery tools to include dot files
Dax Raad59a5f120c040
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymldeleted file mode 100644index adede35672d..00000000000--- 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 --cleandiff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex d8ab8727c84..58726815ff7 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -4,7 +4,7 @@ on:workflow_dispatch:push:branches:- - dontlook+ - devtags:- "*"diff --git a/packages/opencode/src/tool/glob.ts b/packages/opencode/src/tool/glob.tsindex 4acaf50f4f9..92a01f5e366 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 = truebreakdiff --git a/packages/opencode/src/tool/ls.ts b/packages/opencode/src/tool/ls.tsindex ef8afe63414..ecb6aa20ec3 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)))continueif (params.ignore?.some((pattern) => new Bun.Glob(pattern).match(file)))