@opencode/ai 0.0.0-dev-19543 → 0.0.0-dev-19544

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.
@@ -204,7 +204,8 @@ const removeEmptyToolInputKeys = (input) => {
204
204
  const lowerToolCall = (part) => ({
205
205
  toolUse: {
206
206
  toolUseId: part.id,
207
- name: part.name,
207
+ // Models can emit names that Converse rejects when replayed in history.
208
+ name: part.name.replace(/[^a-zA-Z0-9_-]/g, "_").slice(0, 64) || "_",
208
209
  input: removeEmptyToolInputKeys(part.input),
209
210
  },
210
211
  });
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-19543",
3
+ "version": "0.0.0-dev-19544",
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-dev-19543",
33
+ "@opencode/http-recorder": "0.0.0-dev-19544",
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-dev-19543",
43
+ "@opencode/schema": "0.0.0-dev-19544",
44
44
  "aws4fetch": "1.0.20",
45
45
  "effect": "4.0.0-rc.112",
46
46
  "google-auth-library": "10.5.0"