natureco-cli 2.23.27 → 2.23.28

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.23.27",
3
+ "version": "2.23.28",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
@@ -13,6 +13,18 @@ const { createSession, addMessageToSession } = require('../utils/sessions');
13
13
  const { addToHistory } = require('../utils/history');
14
14
  const { getToolDefinitions, executeTool } = require('../utils/tool-runner');
15
15
 
16
+ let rl = null;
17
+
18
+ async function confirmAction(message) {
19
+ return new Promise(resolve => {
20
+ rl.question(chalk.yellow(`⚠ ${message}\n[? Devam edilsin mi? (Y/n) `), answer => {
21
+ const confirmed = !answer || answer.toLowerCase() === 'y';
22
+ console.log(chalk.gray(` ✓ Devam edilsin mi? ${confirmed ? 'Yes' : 'No'}`));
23
+ resolve(confirmed);
24
+ });
25
+ });
26
+ }
27
+
16
28
  // ── Helpers ───────────────────────────────────────────────────────────────────
17
29
  const sep = () => chalk.gray('─'.repeat(process.stdout.columns || 120));
18
30
 
@@ -670,17 +682,6 @@ ${indexPrompt}`;
670
682
  }
671
683
 
672
684
  // ── Input loop — readline herhangi bir sebepten kapanırsa yeniden oluştur ───
673
- let rl;
674
-
675
- async function confirmAction(message) {
676
- return new Promise(resolve => {
677
- rl.question(chalk.yellow(`⚠ ${message}\n[? Devam edilsin mi? (Y/n) `), answer => {
678
- const confirmed = !answer || answer.toLowerCase() === 'y';
679
- console.log(chalk.gray(` ✓ Devam edilsin mi? ${confirmed ? 'Yes' : 'No'}`));
680
- resolve(confirmed);
681
- });
682
- });
683
- }
684
685
 
685
686
  function createRl() {
686
687
  if (rl) {