@opencode-ai/ai 0.0.0-dev-18199 → 0.0.0-dev-18202

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.
@@ -858,7 +858,9 @@ const onOutputItemDone = Effect.fn("OpenResponses.onOutputItemDone")(function* (
858
858
  const onResponseFinish = Effect.fn("OpenResponses.onResponseFinish")(function* (state, event) {
859
859
  const reconciled = event.type === "response.completed"
860
860
  ? yield* Effect.reduce(event.response?.output ?? [], () => [state, NO_EVENTS], ([current, events], item) => {
861
- if (item.type !== "function_call" || !item.id || !current.tools[item.id])
861
+ if (!item.id ||
862
+ ((item.type !== "function_call" || !current.tools[item.id]) &&
863
+ (item.type !== "reasoning" || !current.reasoningItems[item.id])))
862
864
  return Effect.succeed([current, events]);
863
865
  return onOutputItemDone(current, { type: "response.output_item.done", item }).pipe(Effect.map(([next, emitted]) => [next, [...events, ...emitted]]));
864
866
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "0.0.0-dev-18199",
3
+ "version": "0.0.0-dev-18202",
4
4
  "name": "@opencode-ai/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.111",
33
- "@opencode-ai/http-recorder": "0.0.0-dev-18199",
33
+ "@opencode-ai/http-recorder": "0.0.0-dev-18202",
34
34
  "@tsconfig/bun": "1.0.9",
35
35
  "@types/bun": "1.3.13",
36
36
  "@typescript/native-preview": "7.0.0-dev.20251207.1",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "@smithy/eventstream-codec": "4.2.14",
41
41
  "@smithy/util-utf8": "4.2.2",
42
- "@opencode-ai/schema": "0.0.0-dev-18199",
42
+ "@opencode-ai/schema": "0.0.0-dev-18202",
43
43
  "aws4fetch": "1.0.20",
44
44
  "effect": "4.0.0-rc.111",
45
45
  "google-auth-library": "10.5.0"