cloudaxe-opencode/packages/opencode
Kit Langton 0c2b5b2c39 fix(bus): use Fiber.interrupt for clean disposal of subscribeAll
Use forkInstance + Fiber.interrupt (which awaits) instead of
runCallbackInstance + interruptUnsafe (fire-and-forget) for
subscribeAll. This ensures the fiber completes before layer
invalidation, allowing the RcMap refCount to drop to 0.

subscribeAll now delivers InstanceDisposed as the last callback
message via Effect.ensuring when the fiber is interrupted during
disposal, but not on manual unsubscribe.

Add priority support to registerDisposer so Bus can interrupt
subscription fibers (priority -1) before layer invalidation
(priority 0).

Add forkInstance helper to effect/runtime that returns a Fiber
instead of an interrupt function.
2026-03-19 08:49:06 -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 refactor(snapshot): effectify SnapshotService (#17878) 2026-03-17 21:04:16 -04:00
specs refactor(effect): unify service namespaces and align naming (#18093) 2026-03-18 13:34:36 -04:00
src fix(bus): use Fiber.interrupt for clean disposal of subscribeAll 2026-03-19 08:49:06 -04:00
test feat(bus): migrate Bus to Effect service with PubSub internals 2026-03-18 21:36:04 -04:00
.gitignore
AGENTS.md refactor(effect): unify service namespaces and align naming (#18093) 2026-03-18 13:34:36 -04:00
BUN_SHELL_MIGRATION_PLAN.md sync 2026-02-25 01:48:10 -05:00
bunfig.toml
Dockerfile
drizzle.config.ts
package.json fix: restore recent test regressions and upgrade effect beta (#18158) 2026-03-19 09:54:01 +10:00
parsers-config.ts fix(opencode): fix Clojure syntax highlighting (#13453) 2026-02-18 00:18:18 -06:00
README.md
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

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.