Skip to content

refactor(core): consolidate filesystem services#30447

Merged
thdxr merged 7 commits into
devfrom
refactor/core-filesystem
Jun 2, 2026
Merged

refactor(core): consolidate filesystem services#30447
thdxr merged 7 commits into
devfrom
refactor/core-filesystem

Conversation

@thdxr

@thdxr thdxr commented Jun 2, 2026

Copy link
Copy Markdown
Member

Summary

  • rename the shared filesystem utility namespace to FSUtil and move it to @opencode-ai/core/fs-util
  • replace the legacy opencode file service with the core location-scoped FileSystem, moving ripgrep, watcher, ignore, protected-path, and executable lookup modules into core
  • preserve GET /file/status and SDK compatibility as a typed empty-array endpoint while Git-aware callers use /vcs/status

Validation

  • bun typecheck in packages/core
  • bun typecheck in packages/opencode
  • bun typecheck in packages/app
  • bun typecheck in packages/cli
  • bun typecheck in packages/sdk/js
  • bun test test/location-filesystem.test.ts test/filesystem/ripgrep.test.ts test/filesystem/ignore.test.ts test/filesystem/watcher.test.ts test/util/which.test.ts in packages/core
  • bun test test/server/httpapi-file.test.ts test/server/httpapi-sdk.test.ts test/tool/edit.test.ts test/tool/glob.test.ts test/tool/grep.test.ts in packages/opencode
  • ./packages/sdk/js/script/build.ts (verified no SDK artifact diff)
  • git diff --check dev...HEAD

@thdxr thdxr requested a review from adamdotdevin as a code owner June 2, 2026 17:42
@thdxr thdxr merged commit 604a5f7 into dev Jun 2, 2026
11 checks passed
@thdxr thdxr deleted the refactor/core-filesystem branch June 2, 2026 20:09
ShamirSecret pushed a commit to ShamirSecret/auto-code-machine that referenced this pull request Jun 3, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant