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
@@ -21,7 +21,7 @@
"./themes": "./src/themes/index.ts"
},
"dependencies": {
"@opencode/client": "2.0.15",
"@opencode/client": "2.1.2",
"jsonc-parser": "^3.3.1",
"zod": "^4.1.12"
},