chore(opencode): move the typed OpenCode SDK to the 2.1.2 pin

The runtime pin moved to 2.1.2 while @opencode/client stayed at 2.0.15, so
the shared typed contract no longer matched the server.

- @opencode/client and @opencode/plugin move to 2.1.2
- session projection follows the 2.1 event shape (native replaces
  providerState and state, compaction drops recent)
- worktree error stubs carry the _tag discriminator
- the contract test fails when the SDK version drifts from the pin
This commit is contained in:
Chris Scott committed 2026-10-23 15:45:36 -04:00
1 parent 0c4c024dcc
commit 20017d2f7d
8 files changed
+294 -354

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@
},
"devDependencies": {
"@eslint/js": "^9.36.0",
"@opencode/plugin": "2.0.15",
"@opencode/plugin": "2.1.2",
"@opencode-manager/shared": "workspace:*",
"@opentui/core": "^0.5.12",
"@opentui/solid": "^0.5.12",