natureco-cli 2.21.0 → 2.21.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "2.21.0",
3
+ "version": "2.21.1",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "main": "bin/natureco.js",
6
6
  "bin": {
@@ -730,19 +730,19 @@ ${indexPrompt}`;
730
730
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout, terminal: true });
731
731
 
732
732
  process.on('SIGINT', async () => {
733
- rl.close();
734
- if (conversationMessages.length > 2) {
733
+ console.log('\n');
734
+ if (rl) rl.pause();
735
+ if (conversationMessages.filter(m => m.role === 'user').length > 0) {
735
736
  try {
736
737
  const { save } = await inquirer.prompt([{
737
738
  type: 'confirm', name: 'save',
738
- message: chalk.yellow(" Bu session'ı proje hafızasına kaydet?"),
739
+ message: chalk.yellow("Bu session'ı proje hafızasına kaydet?"),
739
740
  default: true,
740
741
  }]);
741
742
  if (save) await saveProjectMemory(conversationMessages, providerConfig);
742
743
  } catch {}
743
744
  }
744
745
  showSummary();
745
- console.log(chalk.gray('👋 Goodbye!\n'));
746
746
  process.exit(0);
747
747
  });
748
748