opencode_offline/packages/opencode
Dax f993541e0b
Refactor to support multiple instances inside single opencode process (#2360)
This release has a bunch of minor breaking changes if you are using opencode plugins or sdk

1. storage events have been removed (we might bring this back but had some issues)
2. concept of `app` is gone - there is a new concept called `project` and endpoints to list projects and get the current project
3. plugin receives `directory` which is cwd and `worktree` which is where the root of the project is if it's a git repo
4. the session.chat function has been renamed to session.prompt in sdk. it no longer requires model to be passed in (model is now an object)
5. every endpoint takes an optional `directory` parameter to operate as though opencode is running in that directory
2025-09-01 17:15:49 -04:00
..
bin Reference the actual name of the windows package (#1700) 2025-08-08 20:07:00 -04:00
script ci: tweak 2025-08-24 18:55:44 -04:00
src Refactor to support multiple instances inside single opencode process (#2360) 2025-09-01 17:15:49 -04:00
test Refactor to support multiple instances inside single opencode process (#2360) 2025-09-01 17:15:49 -04:00
.gitignore improve snapshotting speed further 2025-07-03 21:36:09 -04:00
AGENTS.md ci: send stats to posthog 2025-08-05 12:01:48 -04:00
README.md sync 2025-05-30 20:48:36 -04:00
package.json release: v0.5.29 2025-08-30 06:00:39 +00:00
sst-env.d.ts Api: add endpoint for getting github app token 2025-07-11 05:01:27 +08:00
tsconfig.json ci: ignore 2025-08-02 18:56:34 -04:00

README.md

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.