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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sapper.mjs +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sapper-iq",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "AI-powered development assistant that executes commands and builds projects",
5
5
  "main": "sapper.mjs",
6
6
  "bin": {
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