ai-sdk-provider-claude-code 3.3.4 → 3.3.5
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/index.cjs +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2032,6 +2032,23 @@ var ClaudeCodeLanguageModel = class _ClaudeCodeLanguageModel {
|
|
|
2032
2032
|
);
|
|
2033
2033
|
continue;
|
|
2034
2034
|
}
|
|
2035
|
+
if (textPartId) {
|
|
2036
|
+
const closedTextId = textPartId;
|
|
2037
|
+
controller.enqueue({
|
|
2038
|
+
type: "text-end",
|
|
2039
|
+
id: closedTextId
|
|
2040
|
+
});
|
|
2041
|
+
textPartId = void 0;
|
|
2042
|
+
for (const [blockIndex, blockTextId] of textBlocksByIndex) {
|
|
2043
|
+
if (blockTextId === closedTextId) {
|
|
2044
|
+
textBlocksByIndex.delete(blockIndex);
|
|
2045
|
+
break;
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
accumulatedText = "";
|
|
2049
|
+
streamedTextLength = 0;
|
|
2050
|
+
this.logger.debug("[claude-code] Closed text part due to user message");
|
|
2051
|
+
}
|
|
2035
2052
|
const sdkParentToolUseIdForResults = message.parent_tool_use_id;
|
|
2036
2053
|
const content = message.message.content;
|
|
2037
2054
|
for (const result of this.extractToolResults(content)) {
|