@opencode-ai/ai 0.0.0-dev-18687 → 0.0.0-dev-18691

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.
@@ -376,8 +376,6 @@ const mapFinishReason = (reason) => {
376
376
  return "tool-calls";
377
377
  if (reason === "content_filtered" || reason === "guardrail_intervened")
378
378
  return "content-filter";
379
- if (reason === "malformed_model_output" || reason === "malformed_tool_use")
380
- return "error";
381
379
  return "unknown";
382
380
  };
383
381
  // AWS reports inputTokens separately from cache reads and writes.
@@ -490,6 +488,9 @@ const step = (state, event) => Effect.gen(function* () {
490
488
  ];
491
489
  }
492
490
  if (event.messageStop) {
491
+ if (event.messageStop.stopReason === "malformed_model_output" ||
492
+ event.messageStop.stopReason === "malformed_tool_use")
493
+ return yield* ProviderShared.eventError(ADAPTER, `Bedrock Converse stopped with ${event.messageStop.stopReason}`, ProviderShared.encodeJson(event));
493
494
  return [
494
495
  {
495
496
  ...state,
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-18687",
3
+ "version": "0.0.0-dev-18691",
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.112",
33
- "@opencode-ai/http-recorder": "0.0.0-dev-18687",
33
+ "@opencode-ai/http-recorder": "0.0.0-dev-18691",
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-18687",
42
+ "@opencode-ai/schema": "0.0.0-dev-18691",
43
43
  "aws4fetch": "1.0.20",
44
44
  "effect": "4.0.0-rc.112",
45
45
  "google-auth-library": "10.5.0"