mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
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:
1 parent
0c4c024dcc
commit
20017d2f7d
8 files changed
+294
-354
No files matched your search
+2
-3
@@ -335,7 +335,7 @@ export const compactionSequence: V2Event[] = [
|
||||
created: 5000,
|
||||
type: 'session.compaction.started',
|
||||
durable: durable(50),
|
||||
data: { sessionID: SESSION_ID, reason: 'auto', recent: 'previous turn' },
|
||||
data: { sessionID: SESSION_ID, reason: 'auto' },
|
||||
},
|
||||
{
|
||||
id: eventID(51),
|
||||
@@ -352,7 +352,6 @@ export const compactionSequence: V2Event[] = [
|
||||
sessionID: SESSION_ID,
|
||||
reason: 'auto',
|
||||
text: 'Summarizing the previous turn.',
|
||||
recent: 'previous turn',
|
||||
cost: 0.02,
|
||||
tokens: { input: 900, output: 60, reasoning: 0, cache: { read: 0, write: 0 } },
|
||||
},
|
||||
@@ -365,7 +364,7 @@ export const failedCompactionSequence: V2Event[] = [
|
||||
created: 5030,
|
||||
type: 'session.compaction.started',
|
||||
durable: durable(53),
|
||||
data: { sessionID: SESSION_ID, reason: 'manual', recent: 'previous turn' },
|
||||
data: { sessionID: SESSION_ID, reason: 'manual' },
|
||||
},
|
||||
{
|
||||
id: eventID(54),
|
||||
|
||||
Reference in new issue
Block a user