opencode/packages/opencode
Kit Langton 58ad84d53e refactor(snapshot): effectify SnapshotService as scoped service
Convert Snapshot from a promise-based namespace with Instance ALS reads
to an Effect service on the Instances LayerMap.

- SnapshotService with ChildProcessSpawner for git subprocess execution
  and Effect FileSystem for file operations (replaces Process.run and
  raw fs calls)
- Nothrow git helper that always returns { code, text, stderr }, with
  spawn failure details preserved in stderr
- Hourly cleanup via Effect.forkScoped + Schedule.spaced (replaces
  Scheduler.register)
- Promise facade preserved for all existing callers
- Parallelized before/after git show in diffFull
- Add worktree to InstanceContext.Shape (needed for --work-tree flag)
- Add Instance.current getter for single ALS read
- Extract repeated git config flags into GIT_CORE/GIT_CFG/GIT_CFG_QUOTE
  constants
- Platform layers (NodeChildProcessSpawner, NodeFileSystem, NodePath)
  provided directly on the service layer
2026-03-16 21:44:17 -04:00
..
bin cache platform binary in postinstall for faster startup (#14467) 2026-02-20 12:19:17 -06:00
migration chore: generate 2026-03-13 10:19:52 +00:00
script fix(e2e): fail fast on config dependency installs (#17280) 2026-03-13 14:08:51 +10:00
src refactor(snapshot): effectify SnapshotService as scoped service 2026-03-16 21:44:17 -04:00
test refactor(snapshot): effectify SnapshotService as scoped service 2026-03-16 21:44:17 -04:00
.gitignore get rid of models.dev macro 2026-01-24 12:27:13 -05:00
AGENTS.md stack: effectify-file-watcher-service (#17827) 2026-03-16 13:18:40 -04:00
BUN_SHELL_MIGRATION_PLAN.md sync 2026-02-25 01:48:10 -05:00
Dockerfile add ARM64 Docker image support (#5483) 2025-12-13 13:01:59 -06:00
README.md
bunfig.toml fix(test): move timeout config to CLI flag (#13494) 2026-02-13 10:20:02 -05:00
drizzle.config.ts sqlite again (#10597) 2026-02-14 04:19:02 +00:00
package.json refactor(skill): effectify SkillService as scoped service (#17849) 2026-03-16 23:51:07 +00:00
parsers-config.ts fix(opencode): fix Clojure syntax highlighting (#13453) 2026-02-18 00:18:18 -06:00
sst-env.d.ts zen: update sst version 2026-02-18 13:54:23 -05:00
tsconfig.json chore: generate 2026-03-10 16:56:30 +00:00

README.md

js

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.2.12. Bun is a fast all-in-one JavaScript runtime.