natureco-cli 5.6.17 → 5.6.18

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": "5.6.17",
3
+ "version": "5.6.18",
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,7 +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);
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`));
239
241
  console.log(chalk.green(`\n ✓ Hafıza içe aktarıldı: ${id}\n`));
240
242
  } catch (err) {
241
243
  console.log(chalk.red(`\n ❌ Hata: ${err.message}\n`));
@@ -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 });