cloudaxe-opencode/packages/opencode
Kit Langton f948a1e3b0 test(opencode): pin lifecycle invariants for DatabaseEffect + managed-runtime
Adds regression tests for the two non-obvious invariants enforced by the
Effect-Drizzle integration:

- packages/opencode/test/storage/db-effect.test.ts pins that
  DatabaseEffect.layer rebuilds a fresh handle after Database.close + dispose,
  and demonstrates the shared-memoMap poisoning that resetDatabase prevents
  by disposing every DB-consuming runtime before closing the SQLite handle.

- packages/opencode/test/effect/managed-runtime.test.ts pins makeManagedRuntime
  dispose semantics and the lazy.resetIf compare-and-reset guard so a
  rebuilt instance is never clobbered by a stale dispose.
2026-05-02 23:23:32 -04:00
..
bin
migration chore: generate 2026-05-03 02:10:52 +00:00
script chore(opencode): exclude .map files from CLI binary build (#25500) 2026-05-02 22:52:32 -04:00
scripts Prepare Effect HttpApi backend parity (#24853) 2026-04-29 09:34:50 -04:00
specs refactor: rename workspace adapters (#25272) 2026-05-01 07:36:52 -04:00
src refactor(opencode): extract managed-runtime helper, prune adapter dead code 2026-05-02 23:23:32 -04:00
test test(opencode): pin lifecycle invariants for DatabaseEffect + managed-runtime 2026-05-02 23:23:32 -04:00
.gitignore refactor(httpapi): fork server startup by flag (#24799) 2026-04-28 11:02:35 -04:00
AGENTS.md Refactor HttpApi workspace routing and proxy boundaries (#25006) 2026-04-29 16:50:54 -04:00
BUN_SHELL_MIGRATION_PLAN.md
bunfig.toml
Dockerfile
drizzle.config.ts
git
package.json feat(opencode): pilot effect sqlite database service 2026-05-02 23:23:32 -04:00
parsers-config.ts
README.md
sst-env.d.ts
tsconfig.json core: remove @effect/language-service plugin and optimize hot path type performance 2026-04-30 23:21:05 -04:00

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.