@zenmux/rosetta-ai 0.0.6 → 0.0.7

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.
@@ -114,6 +114,7 @@ class MessagesToGeminiConverter {
114
114
  name: fc.name ?? "",
115
115
  input: fc.args ?? {},
116
116
  caller: { type: "direct" },
117
+ ...(part.thoughtSignature ? { thought_signature: part.thoughtSignature } : {}),
117
118
  });
118
119
  }
119
120
  }
@@ -264,6 +265,7 @@ class MessagesToGeminiConverter {
264
265
  name: fc.name ?? "",
265
266
  input: {},
266
267
  caller: { type: "direct" },
268
+ ...(part.thoughtSignature ? { thought_signature: part.thoughtSignature } : {}),
267
269
  },
268
270
  });
269
271
  const args = JSON.stringify(fc.args ?? {});
@@ -438,13 +440,15 @@ class MessagesToGeminiConverter {
438
440
  }
439
441
  else if (block.type === "tool_use") {
440
442
  const tu = block;
441
- parts.push({
443
+ const part = {
442
444
  functionCall: {
443
445
  id: tu.id,
444
446
  name: tu.name,
445
447
  args: tu.input,
446
448
  },
447
- });
449
+ ...(tu.thought_signature ? { thoughtSignature: tu.thought_signature } : {}),
450
+ };
451
+ parts.push(part);
448
452
  }
449
453
  }
450
454
  if (parts.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenmux/rosetta-ai",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Universal translator between AI provider protocols",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",