Commit Graph

56 Commits

Author SHA1 Message Date
Dax 07ac891a99 refactor: remove module barrels (#24554) 2026-04-27 14:33:33 -04:00
Dax Raad 9031b8f108 core: move Global module to @opencode-ai/core for centralized path management
Move the Global module from packages/opencode/src/global to packages/core/src/global
to provide a unified location for managing XDG directories and application paths.
This eliminates duplicate path definitions across packages and ensures consistent
access to data, config, cache, state, log, and bin directories throughout the codebase.
2026-04-25 13:52:32 -04:00
Dax 1865f4fc5f refactor: rename shared package to core (#24309) 2026-04-25 10:59:17 -04:00
Kit Langton 5ada6e2456 refactor(core): migrate ConfigPermission.Info to Effect Schema canonical (#23740) 2026-04-21 17:33:13 -04:00
opencode-agent[bot] caf95068a8 chore: generate 2026-04-18 02:03:30 +00:00
Kit Langton cdc1e5daf3 feat(effect-zod): add ZodPreprocess annotation for pre-parse transforms (#23222) 2026-04-18 02:02:37 +00:00
opencode-agent[bot] 665a86a320 chore: generate 2026-04-18 00:56:33 +00:00
Kit Langton bb98729bb5 feat(effect-zod): translate Schema.withDecodingDefault into zod .default() (#23207) 2026-04-17 20:55:38 -04:00
Kit Langton 39c717ab2a feat(effect-zod): translate well-known filters into native Zod methods (#23209) 2026-04-17 20:50:36 -04:00
Kit Langton 0fd839cd9f feat(effect-zod): transform support + walk memoization + flattened checks (#23203) 2026-04-18 00:29:26 +00:00
Kit Langton abe67f0140 feat(effect-zod): add catchall (StructWithRest) support to the walker (#23186) 2026-04-18 00:29:26 +00:00
Kit Langton d3ec3f6cd6 feat(effect-zod): add tuple support; migrate config/plugin to Effect Schema (#23178) 2026-04-17 21:06:55 +00:00
opencode-agent[bot] 57908d0e67 chore: generate 2026-04-17 20:47:05 +00:00
Kit Langton eb2a78fd0f feat(effect-zod): translate Schema.check filters into zod .superRefine + promote LSP refinement to Effect layer (#23173) 2026-04-17 20:46:05 +00:00
Dax 8a41e28f5b CLI perf: reduce deps (#22652) 2026-04-16 02:03:03 -04:00
Kit Langton d2ec847f0c feat: unwrap 11 util namespaces to flat exports + barrel (#22739) 2026-04-15 23:15:58 -04:00
Kit Langton 39d6666dbf add experimental permission HttpApi slice (#22385) 2026-04-15 21:28:01 +00:00
Dax 4be9af983d migrate: move flock and hash utilities to shared package (#22640) 2026-04-15 15:50:24 +00:00
Dax 780c051059 shared package (#22626) 2026-04-15 14:26:20 +00:00
Aiden Cline 2b77ff5216 fix: ensure logger cleanup properly orders list before deleting files (#22101) 2026-04-11 22:07:34 -05:00
Sebastian 077da62cde Refactor plugin/config loading, add theme-only plugin package support (#20556) 2026-04-01 23:50:22 +00:00
Luke Parker 24f7ef41d6 feat(windows): add first-class pwsh/powershell support (#16069) 2026-03-30 13:10:01 +10:00
Sebastian 35ab6b6d40 tui plugins (#19347) 2026-03-27 15:00:26 +01:00
Luke Parker fcedc54b02 fix: restore recent test regressions and upgrade effect beta (#18158) 2026-03-19 09:54:01 +10:00
Luke Parker 2728950929 fix(windows): use cross-spawn for shim-backed commands (#18010) 2026-03-19 08:49:16 +10:00
Kit Langton c4ae100b70 refactor(instance): move scoped services to LayerMap (#17544) 2026-03-16 12:55:14 -04:00
Kit Langton 90618eda13 refactor(permission): effectify PermissionNext + fix InstanceState ALS bug (#17511) 2026-03-14 18:28:00 +00:00
opencode-agent[bot] cab828c262 chore: generate 2026-03-14 15:59:01 +00:00
Kit Langton 4df2577034 refactor(question): effectify QuestionService (#17432) 2026-03-14 11:58:00 -04:00
Kit Langton 39cee82010 feat(schema): scaffold effect-to-zod bridge (#17273) 2026-03-13 10:59:57 -04:00
Adam ac0640f4ca fix(app): support text attachments (#17335) 2026-03-13 06:58:24 -05:00
Kit Langton 35f8e9ca55 refactor(provider): effectify ProviderAuthService (#17227) 2026-03-13 02:08:37 +00:00
John Mylchreest 86b5c7dd61 fix: resolve symlinks in Instance cache to prevent duplicate contexts (#16651)
Co-authored-by: LukeParkerDev <10430890+Hona@users.noreply.github.com>
2026-03-11 23:26:54 +00:00
Dax 89f4344882 refactor(opencode): replace Bun shell in core flows (#16286) 2026-03-09 15:19:50 -04:00
Shoubhit Dash 096f2c698f test: make process cwd check cross-platform (#16594) 2026-03-08 06:56:45 -05:00
opencode-agent[bot] 832c086822 chore: generate 2026-03-08 00:31:35 +00:00
Dax Raad 8330999cea test: lock in process, ripgrep, and installation helpers 2026-03-07 19:30:32 -05:00
Luke Parker c47c5ec9a0 fix(windows): git path resolution for modified files across Git Bash, MSYS2, and Cygwin (#16422) 2026-03-07 15:42:14 +10:00
Dax 46beeaa585 refactor(opencode): replace Bun.which with npm which (#15012) 2026-03-06 05:18:29 +00:00
Dax Raad 2a605b20e1 sync 2026-02-25 01:48:10 -05:00
Luke Parker 0732c96591 fix(test): use path.join for cross-platform glob test assertions (#14837) 2026-02-24 20:07:56 +10:00
Luke Parker 605ea75ddb fix(win32): normalize paths at permission boundaries (#14738) 2026-02-23 12:05:21 +10:00
Erik Demaine 90d2e6b775 fix(desktop): change detection on Windows, especially Cygwin (#13659)
Co-authored-by: LukeParkerDev <10430890+Hona@users.noreply.github.com>
2026-02-23 09:49:05 +10:00
Dax f03cb504c4 refactor: migrate from Bun.Glob to npm glob package (#14317) 2026-02-19 13:40:09 -05:00
Dax Raad 350a377fca Revert "refactor: migrate from Bun.Glob to npm glob package"
This reverts commit 25917459f0.
2026-02-19 12:48:43 -05:00
Dax Raad 25917459f0 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
Dax 019134be58 Remove use of Bun.file (#14215) 2026-02-19 11:32:32 -05:00
Dax Raad 1567fa548c Revert: all refactor commits migrating from Bun.file() to Filesystem module 2026-02-18 19:41:14 -05:00
Dax a65664fd28 refactor: migrate src/lsp/server.ts from Bun.file()/Bun.write() to Filesystem module (#14138) 2026-02-18 21:41:07 +00:00
Dax fec69d7af8 feat: Add centralized filesystem module for Bun.file migration (#14117) 2026-02-18 15:30:52 +00:00