cloudaxe-opencode/packages/opencode/src
Dax Raad 3c21735b35 refactor: migrate from Bun.Glob to npm glob package
Replace Bun.Glob usage with a new Glob utility wrapper around the npm 'glob' package.
This moves us off Bun-specific APIs toward standard Node.js compatible solutions.

Changes:
- Add new src/util/glob.ts utility module with scan(), scanSync(), and match()
- Default include option is 'file' (only returns files, not directories)
- Add symlink option (default: false) to control symlink following
- Migrate all 12 files using Bun.Glob to use the new Glob utility
- Add comprehensive tests for the glob utility

Breaking changes:
- Removed support for include: 'dir' option (use include: 'all' and filter manually)
- symlink now defaults to false (was true in most Bun.Glob usages)

Files migrated:
- src/util/log.ts
- src/util/filesystem.ts
- src/tool/truncation.ts
- src/session/instruction.ts
- src/storage/json-migration.ts
- src/storage/storage.ts
- src/project/project.ts
- src/cli/cmd/tui/context/theme.tsx
- src/config/config.ts
- src/tool/registry.ts
- src/skill/skill.ts
- src/file/ignore.ts
2026-02-19 12:34:18 -05:00
..
acp refactor: migrate src/acp/agent.ts from Bun.file() to Filesystem module (#14139) 2026-02-18 16:14:20 -05:00
agent fix: ensure explore subagent has external_directory perm set to ask instead of auto denying (#14060) 2026-02-17 20:16:55 -06:00
auth refactor: migrate src/auth/index.ts from Bun.file()/Bun.write() to Filesystem module (#14140) 2026-02-18 16:13:50 -05:00
bun refactor: migrate src/bun/index.ts from Bun.file()/Bun.write() to Filesystem module (#14147) 2026-02-18 12:38:30 -05:00
bus
cli refactor: migrate from Bun.Glob to npm glob package 2026-02-19 12:34:18 -05:00
command tweak: /review prompt to look for behavior changes more explicitly (#13049) 2026-02-10 19:44:42 -06:00
config refactor: migrate from Bun.Glob to npm glob package 2026-02-19 12:34:18 -05:00
control sqlite again (#10597) 2026-02-14 04:19:02 +00:00
env core: prevent parallel test runs from contaminating environment variables 2026-01-31 00:37:21 -05:00
file refactor: migrate from Bun.Glob to npm glob package 2026-02-19 12:34:18 -05:00
flag feat(acp): add opt-in flag for question tool (#13562) 2026-02-16 14:20:41 -06:00
format refactor: migrate format/formatter.ts from Bun.file() to Filesystem module (#14153) 2026-02-18 12:31:35 -05:00
global refactor: migrate src/global/index.ts from Bun.file() to Filesystem module (#14146) 2026-02-18 13:25:18 -05:00
id
ide
installation fix: resolve homebrew upgrade requiring multiple runs (#5375) (#10118) 2026-02-09 22:18:57 -06:00
lsp Remove use of Bun.file (#14215) 2026-02-19 11:32:32 -05:00
mcp Remove use of Bun.file (#14215) 2026-02-19 11:32:32 -05:00
patch
permission sqlite again (#10597) 2026-02-14 04:19:02 +00:00
plugin improve codex model list 2026-02-12 18:15:30 +00:00
project refactor: migrate from Bun.Glob to npm glob package 2026-02-19 12:34:18 -05:00
provider Remove use of Bun.file (#14215) 2026-02-19 11:32:32 -05:00
pty fix(app): terminal rework (#14217) 2026-02-19 06:35:14 -06:00
question tweak: make question valdiation more lax to avoid tool call failures 2026-01-24 23:11:21 -05:00
scheduler
server fix(app): terminal rework (#14217) 2026-02-19 06:35:14 -06:00
session refactor: migrate from Bun.Glob to npm glob package 2026-02-19 12:34:18 -05:00
share sqlite again (#10597) 2026-02-14 04:19:02 +00:00
shell Remove use of Bun.file (#14215) 2026-02-19 11:32:32 -05:00
skill refactor: migrate from Bun.Glob to npm glob package 2026-02-19 12:34:18 -05:00
snapshot fix: resolve ACP hanging indefinitely in thinking state on Windows (#13222) 2026-02-12 18:20:00 -06:00
storage refactor: migrate from Bun.Glob to npm glob package 2026-02-19 12:34:18 -05:00
tool refactor: migrate from Bun.Glob to npm glob package 2026-02-19 12:34:18 -05:00
util refactor: migrate from Bun.Glob to npm glob package 2026-02-19 12:34:18 -05:00
worktree sqlite again (#10597) 2026-02-14 04:19:02 +00:00
index.ts refactor: migrate index.ts from Bun.file() to Filesystem module (#14160) 2026-02-18 12:03:24 -05:00
sql.d.ts sqlite again (#10597) 2026-02-14 04:19:02 +00:00