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.
@@ -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
- s = s.replace(/```(?:json|tool_call|tool|function)?\s*\{[\s\S]*?\}\s*```/gi, (blk) => {
136
- return /"(name|tool|function)"/.test(blk) ? '' : blk; // yalnız çağrı-bloklarını sil
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
@@ -16,4 +16,4 @@ export const theme = {
16
16
  synType: '#a78bfa', // tip/sınıf adları, sabitler
17
17
  synProp: '#e0e0e0', // özellik/anahtar adları
18
18
  };
19
- export const VERSION = '1.0.112';
19
+ export const VERSION = '1.0.113';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormclaude",
3
- "version": "1.0.112",
3
+ "version": "1.0.113",
4
4
  "description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
5
5
  "type": "module",
6
6
  "bin": {