natureco-cli 2.23.26 → 2.23.27

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.26",
3
+ "version": "2.23.27",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
@@ -206,16 +206,6 @@ async function streamMessage(providerConfig, messages, tools) {
206
206
  return { text: result?.message?.content || '', toolCalls };
207
207
  }
208
208
 
209
- async function confirmAction(message) {
210
- return new Promise(resolve => {
211
- rl.question(chalk.yellow(`⚠ ${message}\n[? Devam edilsin mi? (Y/n) `), answer => {
212
- const confirmed = !answer || answer.toLowerCase() === 'y';
213
- console.log(chalk.gray(` ✓ Devam edilsin mi? ${confirmed ? 'Yes' : 'No'}`));
214
- resolve(confirmed);
215
- });
216
- });
217
- }
218
-
219
209
  // ── Tool execution ────────────────────────────────────────────────────────────
220
210
  const DANGEROUS = [/\brm\b/, /\brmdir\b/, /\bdelete\b/i, /\bdrop\b/i, /\btruncate\b/i];
221
211
 
@@ -682,6 +672,16 @@ ${indexPrompt}`;
682
672
  // ── Input loop — readline herhangi bir sebepten kapanırsa yeniden oluştur ───
683
673
  let rl;
684
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
  function createRl() {
686
686
  if (rl) {
687
687
  try { rl.removeAllListeners(); rl.close(); } catch {}