wormclaude 1.0.112 → 1.0.113
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/inlinetools.js +3 -2
- package/dist/theme.js +1 -1
- package/package.json +1 -1
package/dist/inlinetools.js
CHANGED
|
@@ -132,8 +132,9 @@ export function recoverInlineToolCalls(text) {
|
|
|
132
132
|
export function stripInlineToolCalls(text) {
|
|
133
133
|
let s = text || '';
|
|
134
134
|
s = s.replace(/<tool_call>[\s\S]*?<\/tool_call>/gi, '');
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
// Fence içeriğini GENEL yakala (iç içe {…} olabilir → \{…\} non-greedy nested'i kaçırıyordu).
|
|
136
|
+
s = s.replace(/```(?:json|tool_call|tool|function)?\s*([\s\S]*?)```/gi, (blk, inner) => {
|
|
137
|
+
return /"(name|tool|function)"/.test(inner) ? '' : blk; // yalnız çağrı-bloklarını sil
|
|
137
138
|
});
|
|
138
139
|
// Sarmasız üst-düzey JSON çağrı nesnelerini sil (tek veya çoklu).
|
|
139
140
|
for (const frag of extractTopLevelJsonObjects(s)) {
|
package/dist/theme.js
CHANGED