Kit Langton
68ff83a98d
refactor(opencode): simplify database effect reset lifecycle
2026-05-02 23:23:32 -04:00
Kit Langton
fd4887d45d
refactor(effect-drizzle-sqlite): simplify single-row reads
2026-05-02 23:23:32 -04:00
Kit Langton
25e546c837
refactor(effect-drizzle-sqlite): use Effectable prototype
2026-05-02 23:23:32 -04:00
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
Kit Langton
46996e5a67
refactor(opencode): extract managed-runtime helper, prune adapter dead code
...
- Extract makeManagedRuntime() to src/effect/managed-runtime.ts so AppRuntime
and BootstrapRuntime stop duplicating the lazy ManagedRuntime + dispose
pattern, and document the shared-memoMap dispose ordering invariant.
- Add lazy.resetIf(expected) and use it in 3 compare-and-reset call sites
(db.close, AppRuntime.dispose, disposeWebHandler).
- Drop dead `filename` option from EffectDrizzleSqlite MakeConfig.
- Drop redundant `patched` IIFE flag (patchClass is already idempotent).
- Add module-load assertion that Effect's protocol keys are present so a
silent breakage on an Effect upgrade becomes a loud failure at import.
- Collapse share-next test `live()` into the wider `wired()` factory.
- Document lifecycle constraint in db-effect.ts and test/fixture/db.ts.
2026-05-02 23:23:32 -04:00
Kit Langton
322bb01257
refactor(opencode): unify drizzle client through effect adapter
...
The Effect adapter is now the only Drizzle wrapper over the bun:sqlite
handle. Database.Client owns the lifecycle, DatabaseEffect.Service just
exposes that handle. Removes acquire/release ref counting that was
ceremony around the same module-level singleton.
2026-05-02 23:23:32 -04:00
Kit Langton
aaa42cca07
fix(opencode): own effect sqlite lifecycle in layers
2026-05-02 23:23:32 -04:00
Kit Langton
8e2c15214e
fix(opencode): refresh effect sqlite client after reset
2026-05-02 23:23:32 -04:00
Kit Langton
4faa6c64d6
feat(opencode): pilot effect sqlite database service
2026-05-02 23:23:32 -04:00
Kit Langton
f6f6cd0515
fix(effect-drizzle-sqlite): simplify sqlite adapter
2026-05-02 23:23:32 -04:00
Kit Langton
efcbc153ee
test(effect-drizzle-sqlite): cover transaction edge cases
2026-05-02 23:23:32 -04:00
Kit Langton
e4ae265d8f
fix(effect-drizzle-sqlite): support pipeable transactions
2026-05-02 23:23:32 -04:00
Kit Langton
89efce865d
feat(effect-drizzle-sqlite): add sqlite adapter
2026-05-02 23:23:31 -04:00
Kit Langton
0e13279545
refactor(cli): convert agent / providers / mcp to effectCmd ( #25525 )
2026-05-02 23:22:44 -04:00
Kit Langton
5f03d892c0
fix(httpapi): pagination Link header echoes request host ( #25527 )
2026-05-02 23:19:33 -04:00
Kit Langton
bdabb102fe
refactor(cli/stats): Stage 4 — fully Effect-native body ( #25523 )
2026-05-02 23:08:26 -04:00
Kit Langton
a79a6594b0
chore: bump Effect beta ( #25524 )
2026-05-02 23:08:13 -04:00
opencode-agent[bot]
a3d282a4c2
chore: generate
2026-05-03 03:04:40 +00:00
Kit Langton
db24f89313
refactor(cli): convert mcp list, auth, auth list, logout to effectCmd ( #25521 )
2026-05-03 03:03:32 +00:00
opencode-agent[bot]
31cb0bfa4f
chore: generate
2026-05-03 02:54:20 +00:00
Kit Langton
af9fdf0a1c
refactor(cli): convert github subcommands to effectCmd ( #25522 )
2026-05-02 22:53:20 -04:00
Youssef Achy
be88cd5cb9
chore(opencode): exclude .map files from CLI binary build ( #25500 )
2026-05-02 22:52:32 -04:00
Luke Parker
b4cc7d13b6
fix(desktop): limit zoom handler to zoom keys ( #25516 )
2026-05-03 02:44:52 +00:00
Aiden Cline
0ba013f8de
chore: rm log statement ( #25470 )
2026-05-02 21:43:48 -05:00
Kit Langton
0956b15c52
refactor(acp): drop async from synchronous ACP.init ( #25520 )
2026-05-02 22:38:44 -04:00
opencode-agent[bot]
61150f6391
chore: generate
2026-05-03 02:36:41 +00:00
Kit Langton
7409dcc6bd
refactor(cli): convert run command to effectCmd ( #25519 )
2026-05-02 22:35:20 -04:00
Kit Langton
2829943ad1
refactor(cli): convert debug wait, agent list, acp to effectCmd ( #25518 )
2026-05-02 22:31:20 -04:00
Kit Langton
c4311dda31
feat(cli): allow effectCmd instance to be a function of args ( #25517 )
2026-05-03 02:27:41 +00:00
Kit Langton
ad05a46d74
refactor(lifecycle): bootstrap as pure orchestration ( #25510 )
2026-05-02 22:26:54 -04:00
opencode-agent[bot]
a6cadba814
chore: generate
2026-05-03 02:10:52 +00:00
Dax
a3bc5d35b0
Refactor v2 session events as schemas ( #24512 )
2026-05-02 22:09:48 -04:00
Kit Langton
1409a0715c
refactor(cli): convert web + account to effectCmd (instance: false) ( #25512 )
2026-05-02 21:59:35 -04:00
Kit Langton
e98c291866
feat(cli): add instance: false opt-out to effectCmd ( #25507 )
2026-05-03 01:44:06 +00:00
Kit Langton
e709dc34fb
feat: default HTTP API backend to on for dev/beta channels
2026-05-02 20:43:23 -04:00
opencode-agent[bot]
9293cddb3a
chore: generate
2026-05-03 00:43:16 +00:00
Kit Langton
68b3448b09
refactor(cli): drop redundant explicit Effect.ensuring(store.dispose) ( #25503 )
2026-05-02 20:42:09 -04:00
opencode-agent[bot]
80f2b13a55
chore: generate
2026-05-03 00:40:21 +00:00
Kit Langton
7d91d3b1ed
Normalize instance lifecycle wiring ( #25501 )
2026-05-02 20:39:20 -04:00
opencode-agent[bot]
a6464062b7
chore: generate
2026-05-03 00:32:24 +00:00
Kit Langton
fd01dc9c89
test(httpapi): add route exerciser
2026-05-02 20:31:21 -04:00
opencode-agent[bot]
d10fb88b66
chore: generate
2026-05-03 00:10:53 +00:00
Luke Parker
6b68b1020e
docs: clarify LSP and formatter opt-in config ( #25502 )
2026-05-03 00:09:50 +00:00
Kit Langton
85bb9007ba
feat(cli): auto-dispose InstanceContext after effectCmd handlers ( #25481 )
2026-05-02 19:54:13 -04:00
opencode-agent[bot]
9bef88e3b0
chore: generate
2026-05-02 23:34:40 +00:00
Kit Langton
f98053c34e
fix(instance): run bootstrap from instance store ( #25475 )
2026-05-02 19:33:38 -04:00
opencode-agent[bot]
36007aecf4
chore: generate
2026-05-02 23:23:53 +00:00
Kit Langton
4de44bbbef
refactor(cli): convert debug subcommands to effectCmd ( #25479 )
2026-05-02 19:22:51 -04:00
opencode-agent[bot]
9d03d4419e
chore: generate
2026-05-02 23:20:15 +00:00
Kit Langton
7ab1c1c74a
refactor(cli): convert debug agent command to effectCmd ( #25485 )
2026-05-02 19:19:06 -04:00