sapper-iq 1.1.15 → 1.1.16
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 +1 -1
- package/sapper.mjs +2 -2
package/package.json
CHANGED
package/sapper.mjs
CHANGED
|
@@ -640,8 +640,8 @@ Do NOT just display content. Actually WRITE files using the tool.`
|
|
|
640
640
|
console.log();
|
|
641
641
|
messages.push({ role: 'assistant', content: msg });
|
|
642
642
|
|
|
643
|
-
// Fixed regex:
|
|
644
|
-
const toolMatches = [...msg.matchAll(/\[TOOL:(\w+)\](
|
|
643
|
+
// Fixed regex: [^\]]+ stops at first ] to correctly separate path from content
|
|
644
|
+
const toolMatches = [...msg.matchAll(/\[TOOL:(\w+)\]([^\]]+)(?:\]([\s\S]*?))?\[\/TOOL\]/g)];
|
|
645
645
|
|
|
646
646
|
// Debug mode: show what regex sees
|
|
647
647
|
if (debugMode) {
|