@meetsmore-oss/use-ai-client 1.11.0 → 1.12.0
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.
- package/dist/bundled.js +5 -0
- package/dist/bundled.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -764,6 +764,13 @@ interface PersistedToolCall {
|
|
|
764
764
|
/** JSON-serialized arguments */
|
|
765
765
|
arguments: string;
|
|
766
766
|
};
|
|
767
|
+
/**
|
|
768
|
+
* Encrypted reasoning context for multi-turn preservation.
|
|
769
|
+
* JSON-serialized provider metadata (e.g., Gemini's thoughtSignature).
|
|
770
|
+
* Required for Gemini models where thoughtSignature must be sent back
|
|
771
|
+
* on both tool-call and tool-result parts in subsequent turns.
|
|
772
|
+
*/
|
|
773
|
+
encryptedValue?: string;
|
|
767
774
|
}
|
|
768
775
|
interface PersistedMessage {
|
|
769
776
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -3474,6 +3474,11 @@ var UseAIClient = class {
|
|
|
3474
3474
|
if (e.subtype === "message" && this._currentReasoningBlocks.length > 0) {
|
|
3475
3475
|
const lastBlock = this._currentReasoningBlocks[this._currentReasoningBlocks.length - 1];
|
|
3476
3476
|
lastBlock.encryptedValue = e.encryptedValue;
|
|
3477
|
+
} else if (e.subtype === "tool-call" && e.entityId) {
|
|
3478
|
+
const tc = this._currentAssistantToolCalls.find((tc2) => tc2.id === e.entityId);
|
|
3479
|
+
if (tc) {
|
|
3480
|
+
tc.encryptedValue = e.encryptedValue;
|
|
3481
|
+
}
|
|
3477
3482
|
}
|
|
3478
3483
|
} else if (event.type === EventType.TOOL_CALL_RESULT) {
|
|
3479
3484
|
const e = event;
|