@opencode/ai 0.0.0-beta-19398 → 0.0.0-beta-19422

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -154,7 +154,7 @@ export const driver = (input) => {
154
154
  responseID,
155
155
  request,
156
156
  // Completion can re-encrypt reasoning. Callers replay the item already emitted by output_item.done.
157
- output: event.response?.output
157
+ output: event.response?.output?.length
158
158
  ? event.response.output.map((item) => item.type === "reasoning" && item.id !== undefined
159
159
  ? (output.find((done) => done.type === item.type && done.id === item.id) ?? item)
160
160
  : item)
@@ -445,7 +445,8 @@ const lowerMessages = Effect.fn("OpenResponses.lowerMessages")(function* (reques
445
445
  type: "message",
446
446
  ...(group.id === undefined ? {} : { id: group.id }),
447
447
  role: "assistant",
448
- status: metadata?.status,
448
+ // Replayed text is a finished input item, even if generation was cut short.
449
+ status: "completed",
449
450
  content: group.parts.map((part) => ({ type: "output_text", text: part.text })),
450
451
  ...(group.phase === undefined ? {} : { phase: group.phase }),
451
452
  })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "0.0.0-beta-19398",
3
+ "version": "0.0.0-beta-19422",
4
4
  "name": "@opencode/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@clack/prompts": "1.0.0-alpha.1",
32
32
  "@effect/platform-node": "4.0.0-rc.112",
33
- "@opencode/http-recorder": "0.0.0-beta-19398",
33
+ "@opencode/http-recorder": "0.0.0-beta-19422",
34
34
  "@tsconfig/bun": "1.0.9",
35
35
  "@types/bun": "1.4.0",
36
36
  "@typescript/native-preview": "7.0.0-dev.20251207.1",
@@ -40,7 +40,7 @@
40
40
  "@aws-sdk/credential-providers": "3.1057.0",
41
41
  "@smithy/eventstream-codec": "4.2.14",
42
42
  "@smithy/util-utf8": "4.2.2",
43
- "@opencode/schema": "0.0.0-beta-19398",
43
+ "@opencode/schema": "0.0.0-beta-19422",
44
44
  "aws4fetch": "1.0.20",
45
45
  "effect": "4.0.0-rc.112",
46
46
  "google-auth-library": "10.5.0"