cloudaxe-opencode/packages/opencode
Kit Langton 9e26c3a00d effect: introduce defineService and drop per-call Effect.provide
Wave A migrated TuiConfig/Installation callers to
`AppRuntime.runPromise(svc.use(fn).pipe(Effect.provide(svc.layer)))`,
which couples every call site to the service's layer construction.

`defineService(Service, layer)` composes `makeRuntime` on top of an
existing service so the service exposes its own runPromise/runFork/etc.
Each per-service runtime shares the global memoMap, so dependencies are
still built once.

Call sites collapse from:
  await AppRuntime.runPromise(
    TuiConfig.Service.use((svc) => svc.get()).pipe(Effect.provide(TuiConfig.layer)),
  )
to:
  await TuiConfig.runPromise((svc) => svc.get())

Same shape applied to Installation. No per-method async wrappers.
2026-05-12 19:32:23 -04:00
..
bin fix(cli): forward signals from npm shim (#26259) 2026-05-08 14:00:51 -05:00
migration chore: generate 2026-05-12 05:20:22 +00:00
script Validate TUI config with Effect Schema (#26952) 2026-05-11 23:51:45 +00:00
specs effect(cli): kill TuiConfig/Installation/SessionCompaction facades 2026-05-12 16:29:18 -04:00
src effect: introduce defineService and drop per-call Effect.provide 2026-05-12 19:32:23 -04:00
test effect(cli): kill TuiConfig/Installation/SessionCompaction facades 2026-05-12 16:29:18 -04:00
.gitignore refactor(httpapi): fork server startup by flag (#24799) 2026-04-28 11:02:35 -04:00
AGENTS.md docs: document bun dev tmux capture (#26764) 2026-05-10 17:41:20 -04:00
BUN_SHELL_MIGRATION_PLAN.md
bunfig.toml tui plugins (#19347) 2026-03-27 15:00:26 +01:00
Dockerfile
drizzle.config.ts
git
package.json sync release versions for v1.14.48 2026-05-11 02:07:48 +00:00
parsers-config.ts chore: generate 2026-05-11 14:13:39 +00:00
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.