opencode/packages/opencode
Kit Langton 82b13ca184 effect(util): make Process.run/text/lines return Effect
Migrate the run/text/lines helpers in util/process.ts to Effect-returning
functions that yield ChildProcessSpawner and use ChildProcess.make
internally. The legacy Promise-based behaviour stays available under
runPromise/textPromise/linesPromise for non-Effect callers; these are
thin wrappers over the original spawn() path so AbortSignal and timeout
semantics are preserved.

server.ts now runs Process.run/Process.text through a private
ManagedRuntime backed by CrossSpawnSpawner.defaultLayer and the shared
memoMap, since LSP.spawn callbacks execute inside Effect.promise blocks.

Other Process.run/text/lines call sites are renamed to the *Promise
variants and otherwise left untouched for follow-up migrations.
2026-05-12 16:31:38 -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 Remove effect-zod bridge (#26956) 2026-05-11 21:14:55 -04:00
src effect(util): make Process.run/text/lines return Effect 2026-05-12 16:31:38 -04:00
test effect(util): make Process.run/text/lines return Effect 2026-05-12 16:31:38 -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 sync 2026-02-25 01:48:10 -05:00
bunfig.toml tui plugins (#19347) 2026-03-27 15:00:26 +01:00
Dockerfile add ARM64 Docker image support (#5483) 2025-12-13 13:01:59 -06:00
drizzle.config.ts sqlite again (#10597) 2026-02-14 04:19:02 +00:00
git feat: interactive update flow for non-patch releases (#18662) 2026-03-22 23:12:40 +00:00
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 sync 2025-05-30 20:48:36 -04:00
sst-env.d.ts zen: update sst version 2026-02-18 13:54:23 -05:00
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.