feat(opencode): migrate OpenCode Manager to OpenCode 2

Port the backend lifecycle, generated plugins, event aggregation,
schedules, worktrees, provider credentials, MCP, config handling, the
frontend chat model, and the ocm CLI to OpenCode 2.

Adopt @opencode/client 2.0.15 as the single typed V2 API contract,
require OpenCode 2.0.0 or newer (pinned 2.0.15), and delete every
V1-only code path.
This commit is contained in:
Chris Scott committed 2026-09-24 08:38:26 -04:00
1 parent 6c2ebd764b
commit 7351d5f002
313 files changed
+23848 -36801

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ Open [http://localhost:5003](http://localhost:5003) in your browser.
The container automatically:
- Installs OpenCode if not present
- Installs OpenCode 2 if not present (bundled 2.0.15; 2.0.0 or newer required)
- Builds and serves the frontend
- Creates persistent volumes for the workspace, database, and OpenCode binary
- Configures health checks and auto-restart
@@ -67,7 +67,7 @@ For contributors who want to develop locally instead of using Docker.
- [pnpm](https://pnpm.io/installation) - Package manager (required for workspaces)
- [Bun](https://bun.sh) - Backend runtime
- [OpenCode TUI](https://opencode.ai) - `curl -fsSL https://opencode.ai/install | bash`
- [OpenCode TUI](https://opencode.ai) 2.0.0 or newer - `curl -fsSL https://opencode.ai/v2/install | bash`
- [Node.js 24+](https://nodejs.org/en/about/previous-releases)
### Setup