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

+3 -2
View File
@@ -16,9 +16,11 @@
"./config/client": "./src/config/client.ts",
"./utils": "./src/utils/index.ts",
"./notifications": "./src/notifications/index.ts",
"./project-id": "./src/project-id-resolver.ts"
"./project-id": "./src/project-id-resolver.ts",
"./opencode": "./src/opencode/index.ts"
},
"dependencies": {
"@opencode/client": "2.0.15",
"jsonc-parser": "^3.3.1",
"zod": "^4.1.12"
},
@@ -29,7 +31,6 @@
"dotenv": "^17.2.3"
},
"devDependencies": {
"@opencode-ai/sdk": "1.18.31",
"typescript": "^5"
}
}