natureco-cli 5.6.17 → 5.6.19

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/bin/natureco.js CHANGED
@@ -633,9 +633,11 @@ program
633
633
  program
634
634
  .command('repl [options...]')
635
635
  .description('İnteraktif REPL — bizim bu konuşmamız gibi sohbet modu')
636
- .action((options) => {
637
- repl(options || []);
638
- });
636
+ .option('--resume [id]', 'Önceki oturumu yükle')
637
+ .action((options) => {
638
+ const resumeOpt = options.resume ? [options.resume === true ? 'last' : options.resume] : [];
639
+ repl(options._args || resumeOpt);
640
+ });
639
641
 
640
642
  program
641
643
  .command('memory [action] [params...]')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "5.6.17",
3
+ "version": "5.6.19",
4
4
  "description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
@@ -235,8 +235,9 @@ function importMemoryCmd(botId, sourceFile) {
235
235
  try {
236
236
  const data = JSON.parse(fs.readFileSync(resolvedPath, 'utf-8'));
237
237
  // v5.6.16: memoryStore.saveMemory kullan
238
- memoryStore.saveMemory(botId || 'universal-provider', data);
239
- console.log(chalk.green(`\n ✓ Hafıza içe aktarıldı: ${id}\n`));
238
+ const importId = botId || 'universal-provider';
239
+ memoryStore.saveMemory(importId, data);
240
+ console.log(chalk.green(`\n ✓ Hafıza içe aktarıldı: ${importId}\n`));
240
241
  } catch (err) {
241
242
  console.log(chalk.red(`\n ❌ Hata: ${err.message}\n`));
242
243
  }
@@ -4,6 +4,7 @@ const path = require('path');
4
4
  const os = require('os');
5
5
  const { execSync } = require('child_process');
6
6
  const readline = require('readline');
7
+ const { requireApproval, RISK } = require('../utils/dangerous');
7
8
 
8
9
  const BASE_DIR = path.join(os.homedir(), '.natureco');
9
10
 
@@ -46,12 +47,16 @@ function cmdDryRun() {
46
47
  async function cmdRun() {
47
48
  console.log(chalk.cyan('\n Uninstall NatureCo\n'));
48
49
 
49
- const answer = await rlQuestion(chalk.red(' This will remove all NatureCo data. Continue? [y/N]: '));
50
- if (answer !== 'y' && answer !== 'yes') {
50
+ // v5.6.16: Dangerous approval (CRITICAL)
51
+ const approved = await requireApproval('natureco uninstall', {}, RISK.CRITICAL,
52
+ 'NatureCo CLI ve tum kisisel veriler silinecek (geri alinamaz)');
53
+ if (!approved) {
51
54
  console.log(chalk.gray('\n Cancelled.\n'));
52
55
  return;
53
56
  }
54
57
 
58
+ // Eski onay mekanizmasini kaldirdik, dangerous approval yeterli
59
+
55
60
  if (fs.existsSync(BASE_DIR)) {
56
61
  console.log(chalk.gray(' Removing ~/.natureco/...'));
57
62
  fs.rmSync(BASE_DIR, { recursive: true, force: true });