Skip to content

refactor: replace Filesystem util with AppFileSystem service - #20127

Merged
kitlangton merged 1 commit into
devfrom
worktree-filesystem-swaps
Mar 30, 2026
Merged

refactor: replace Filesystem util with AppFileSystem service#20127
kitlangton merged 1 commit into
devfrom
worktree-filesystem-swaps

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

Replace raw Filesystem.* calls with the effectified AppFileSystem.Service in already-migrated services.

  • auth/index.ts: Filesystem.readJson/writeJsonfsys.readJson/writeJson, remove Effect.tryPromise wrappers
  • file/time.ts: Filesystem.statfsys.fileStat (new method on AppFileSystem)
  • file/index.ts: Filesystem.mimeTypeAppFileSystem.mimeType
  • skill/index.ts: Filesystem.isDir/upfsys.isDir/up, remove Effect.promise wrappers
  • filesystem/index.ts: add fileStat method exposing mtime/ctime/size (platform stat lacks ctime)

Test plan

  • bun run test test/file — 115 pass, 2 skip, 0 fail
  • bun run test test/skill — 17 pass, 0 fail
@kitlangton
kitlangton force-pushed the worktree-filesystem-swaps branch 3 times, most recently from 7bb137e to 29503b2 Compare March 30, 2026 21:29
- auth/index.ts: use fsys.readJson/writeJson instead of Filesystem.*
- file/time.ts: use fsys.fileStat instead of Filesystem.stat
- file/index.ts: use AppFileSystem.mimeType instead of Filesystem.mimeType
- skill/index.ts: use fsys.isDir/up instead of Filesystem.isDir/up
- filesystem/index.ts: add fileStat method exposing mtime/ctime/size
@kitlangton
kitlangton force-pushed the worktree-filesystem-swaps branch from 29503b2 to 1cbc321 Compare March 30, 2026 21:34
@kitlangton
kitlangton marked this pull request as ready for review March 30, 2026 21:44
@kitlangton
kitlangton enabled auto-merge (squash) March 30, 2026 21:44
@kitlangton
kitlangton merged commit e6f6f7a into dev Mar 30, 2026
8 checks passed
@kitlangton
kitlangton deleted the worktree-filesystem-swaps branch March 30, 2026 21:48
vicary pushed a commit to vicary/opencode that referenced this pull request Apr 6, 2026
balcsida pushed a commit to balcsida/opencode that referenced this pull request Apr 8, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant