natureco-cli 5.5.0 → 5.5.1

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.5.0",
3
+ "version": "5.5.1",
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"
@@ -3,7 +3,7 @@
3
3
  * Tum kanallar ayni "zaten kayitli" kontrolunu kullaniyor
4
4
  */
5
5
 
6
- const inquirer = require('inquirer');
6
+ const inquirer = require('../utils/inquirer-wrapper');
7
7
  const chalk = require('chalk');
8
8
 
9
9
  /**
@@ -122,6 +122,28 @@ async function cmdWizard() {
122
122
  console.log(chalk.gray(' Or use your own provider API key.\n'));
123
123
 
124
124
  const currentKey = cfg.providerApiKey || '';
125
+ if (currentKey) {
126
+ console.log('');
127
+ console.log(chalk.yellow(' ⚠️ Mevcut API key tespit edildi (son 4 karakter: ' + currentKey.slice(-4) + ')'));
128
+ const reset = await inquirer.prompt([{
129
+ type: 'confirm',
130
+ name: 'fresh',
131
+ message: 'Sıfırdan yeni kurulum mu yapacaksın? (N = mevcut korunur)',
132
+ default: false,
133
+ }]);
134
+ if (reset.fresh) {
135
+ // Sifirla - tum eski kanallari temizle
136
+ delete cfg.telegramToken;
137
+ delete cfg.whatsappPhone;
138
+ delete cfg.discordToken;
139
+ delete cfg.slackToken;
140
+ delete cfg.signalBot;
141
+ delete cfg.mattermostBot;
142
+ delete cfg.smsTwilioSid;
143
+ delete cfg.webhooks;
144
+ console.log(chalk.green(' ✓ Eski ayarlar temizlendi'));
145
+ }
146
+ }
125
147
  const apiKey = await rlQuestion(` API Key ${currentKey ? '(leave blank to keep current)' : ''}: `);
126
148
  if (apiKey) {
127
149
  cfg.providerApiKey = apiKey;