winter-super-cli 2026.5.31 → 2026.5.32
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/package.json
CHANGED
|
@@ -118,7 +118,7 @@ export function extractInlineToolCalls(content, idFactory = index => `inline-${D
|
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
const invokePattern = /(?:<
|
|
121
|
+
const invokePattern = /(?:<[\w.-]+:tool_call>\s*)?<invoke\s+name=["']([^"']+)["']>([\s\S]*?)<\/invoke>\s*(?:<\/[\w.-]+:tool_call>)?/gi;
|
|
122
122
|
|
|
123
123
|
cleaned = cleaned.replace(invokePattern, (_match, name, body) => {
|
|
124
124
|
const args = {};
|
package/src/cli/repl.js
CHANGED
|
@@ -1314,7 +1314,15 @@ ${colors.yellow}ℹ AI tool loop detected (3 consecutive identical tool calls).
|
|
|
1314
1314
|
const response = await this.ai.sendRequest(messages, options);
|
|
1315
1315
|
this.addUsage(totalUsage, response.usage);
|
|
1316
1316
|
const assistantMsg = response.choices?.[0]?.message || {};
|
|
1317
|
-
const
|
|
1317
|
+
const inlineToolExtraction = this.extractInlineToolCalls(assistantMsg.content || '');
|
|
1318
|
+
const toolCalls = this.normalizeToolCalls([
|
|
1319
|
+
...(assistantMsg.tool_calls || []),
|
|
1320
|
+
...inlineToolExtraction.toolCalls,
|
|
1321
|
+
]);
|
|
1322
|
+
if (inlineToolExtraction.toolCalls.length > 0) {
|
|
1323
|
+
assistantMsg.content = inlineToolExtraction.content;
|
|
1324
|
+
assistantMsg.tool_calls = this.formatToolCallsForMessage(toolCalls);
|
|
1325
|
+
}
|
|
1318
1326
|
const finishReason = response.choices?.[0]?.finish_reason;
|
|
1319
1327
|
|
|
1320
1328
|
if (assistantMsg.content && toolCalls.length === 0) {
|