opencode/packages
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
..
app chore: cleanup 2026-02-19 11:12:56 -06:00
console zen: update sst version 2026-02-18 13:54:23 -05:00
containers ci 2026-01-29 23:17:57 -05:00
desktop desktop: fetch defaultServer at top level 2026-02-19 21:14:59 +08:00
docs fix(web): favicon rename again 2026-01-21 14:36:21 -06:00
enterprise zen: update sst version 2026-02-18 13:54:23 -05:00
extensions/zed release: v1.2.6 2026-02-16 19:57:09 +00:00
function zen: update sst version 2026-02-18 13:54:23 -05:00
identity chore: identity cleanup, vscode ext images 2025-12-08 06:47:57 -06:00
opencode refactor: migrate from Bun.Glob to npm glob package 2026-02-19 12:34:18 -05:00
plugin feat(plugin): pass sessionID and callID to shell.env hook input (#13662) 2026-02-18 14:14:18 -06:00
script zen: update sst version 2026-02-18 13:54:23 -05:00
sdk sdk: fix nested exports transformation in publish script 2026-02-18 20:43:50 -05:00
slack zen: update sst version 2026-02-18 13:54:23 -05:00
ui chore: cleanup 2026-02-19 11:12:56 -06:00
util zen: update sst version 2026-02-18 13:54:23 -05:00
web zen: gemini 3.1 pro 2026-02-19 11:43:14 -05:00