sapper-iq 1.1.16 ā 1.1.17
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 +4 -4
package/package.json
CHANGED
package/sapper.mjs
CHANGED
|
@@ -528,7 +528,7 @@ Do NOT just display content. Actually WRITE files using the tool.`
|
|
|
528
528
|
});
|
|
529
529
|
|
|
530
530
|
// 5. Save to context file so it persists
|
|
531
|
-
fs.writeFileSync(CONTEXT_FILE, JSON.stringify(messages));
|
|
531
|
+
fs.writeFileSync(CONTEXT_FILE, JSON.stringify(messages, null, 2));
|
|
532
532
|
|
|
533
533
|
console.log(chalk.green(`ā
Pruned context. Sapper reminded to stay in Agent Mode.`));
|
|
534
534
|
console.log(chalk.gray(`Context size: ${messages.length} messages\n`));
|
|
@@ -596,7 +596,7 @@ Do NOT just display content. Actually WRITE files using the tool.`
|
|
|
596
596
|
content: `I've scanned the entire codebase. Here are all the files:\n${formattedScan}\n\nYou now have the full codebase context. Use this information to help me.`
|
|
597
597
|
});
|
|
598
598
|
|
|
599
|
-
fs.writeFileSync(CONTEXT_FILE, JSON.stringify(messages));
|
|
599
|
+
fs.writeFileSync(CONTEXT_FILE, JSON.stringify(messages, null, 2));
|
|
600
600
|
console.log(chalk.gray('š Codebase added to context. AI now has full picture.\n'));
|
|
601
601
|
continue;
|
|
602
602
|
}
|
|
@@ -715,7 +715,7 @@ Do NOT just display content. Actually WRITE files using the tool.`
|
|
|
715
715
|
|
|
716
716
|
messages.push({ role: 'user', content: `RESULT (${path}): ${result}` });
|
|
717
717
|
}
|
|
718
|
-
fs.writeFileSync(CONTEXT_FILE, JSON.stringify(messages));
|
|
718
|
+
fs.writeFileSync(CONTEXT_FILE, JSON.stringify(messages, null, 2));
|
|
719
719
|
|
|
720
720
|
if (toolMatches.length > 30) {
|
|
721
721
|
console.log(chalk.yellow('\nā ļø Reading 30+ files! This might take time.'));
|
|
@@ -730,7 +730,7 @@ Do NOT just display content. Actually WRITE files using the tool.`
|
|
|
730
730
|
});
|
|
731
731
|
} else {
|
|
732
732
|
// Normal response - save and wait for next input
|
|
733
|
-
fs.writeFileSync(CONTEXT_FILE, JSON.stringify(messages));
|
|
733
|
+
fs.writeFileSync(CONTEXT_FILE, JSON.stringify(messages, null, 2));
|
|
734
734
|
active = false;
|
|
735
735
|
spinner.stop(); // Ensure spinner is dead
|
|
736
736
|
resetTerminal(); // Force terminal back to normal state
|