natureco-cli 2.21.0 → 2.21.2
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/src/commands/code.js +5 -5
package/package.json
CHANGED
package/src/commands/code.js
CHANGED
|
@@ -729,20 +729,20 @@ ${indexPrompt}`;
|
|
|
729
729
|
// ── Input loop ───────────────────────────────────────────────────────────────
|
|
730
730
|
const rl = readline.createInterface({ input: process.stdin, output: process.stdout, terminal: true });
|
|
731
731
|
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
732
|
+
rl.on('SIGINT', async () => {
|
|
733
|
+
console.log('\n');
|
|
734
|
+
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("
|
|
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
|
|