opencode/packages/opencode
Kit Langton 7c09c2f17f refactor(project): apply simplify review
- Fix prunable parser to match 'prunable <reason>' lines, not just bare 'prunable'.
- Parallelize Effect.forEach in Worktree.list with concurrency: 'unbounded' to match the rest of the file.
- Simplify the experimental worktree GET handler to use Effect.fn(fn, Effect.map(...)).
- Drop unused isProjectList/isProjectUpdate type guards and the unknown-cast set/setBootStore wrappers in global-sync; expose setGlobalStore directly.
- Centralize project worktree mutations as globalSync.project.addWorktree / removeWorktree, replacing three near-duplicate produce blocks in pages/layout.tsx and prompt-input/submit.ts. Use pathKey for dedup in all sites.
- Cast project.updated event properties as Project (not ProjectInfo) and seed worktrees: [] on insert.
- Extract projectDirectories(project) helper in pages/layout/helpers.ts; use at six call sites that built [project.worktree, ...(project.worktrees ?? [])] inline.
2026-05-11 11:48:52 -04:00
..
bin fix(cli): forward signals from npm shim (#26259) 2026-05-08 14:00:51 -05:00
migration refactor(project): drop persisted Project.sandboxes column 2026-05-11 11:48:52 -04:00
script refactor(server): split HttpApi exercise harness (#26385) 2026-05-08 17:58:14 +00:00
specs Source workspace path pattern (#26632) 2026-05-09 23:02:31 -04:00
src refactor(project): apply simplify review 2026-05-11 11:48:52 -04:00
test refactor(project): drop persisted Project.sandboxes column 2026-05-11 11:48:52 -04:00
.gitignore
AGENTS.md docs: document bun dev tmux capture (#26764) 2026-05-10 17:41:20 -04:00
BUN_SHELL_MIGRATION_PLAN.md
bunfig.toml
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.