natureco-cli 5.28.0 → 5.29.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to NatureCo CLI will be documented in this file.
4
4
 
5
+ ## [5.29.0] - 2026-07-04 — "ask KUTU-ÇIKIŞI DÜZELTMESİ + çekirdek komut denetimi"
6
+
7
+ ### 🐛 Düzeltme
8
+ - **`natureco ask` kutu-cikisi patliyordu**: `defaultBotId` ayarli degilse "Varsayilan bot ayarlanmamis" ile cikiyordu (birincil komut, yeni kullaniciyi duvara toslatiyordu). Artik ayarli degilse hesaptaki ILK botu otomatik secer; hic bot yoksa net yonlendirme.
9
+
10
+ ### ✅ Çekirdek komut denetimi (MiniMax + Gemini ile)
11
+ `ask` (duzeltildi), `chat`, `code`, `memory`, `models`, `cost`, `doctor` (10/10 PASS), `help`, `--version` → hepsi calisiyor. (Harici servis gerektiren discord/telegram/cron/mcp/signal denetim disi.)
12
+
5
13
  ## [5.28.0] - 2026-07-04 — "AJAN EXEC GÜVENLİK POLİTİKASI (deny-by-default)"
6
14
 
7
15
  ### 🔒 Güvenlik
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "5.28.0",
3
+ "version": "5.29.0",
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"
@@ -14,10 +14,19 @@ async function ask(question, options = {}) {
14
14
  }
15
15
 
16
16
  const config = getConfig();
17
- const defaultBotId = config.defaultBotId;
17
+ let defaultBotId = config.defaultBotId;
18
18
 
19
+ // defaultBotId ayarli degilse hesaptaki ILK botu otomatik sec — birincil bir komut
20
+ // ("natureco ask ...") kutu-cikisi patlamasin. (chat/code zaten cfg.botName ile calisir.)
19
21
  if (!defaultBotId) {
20
- console.log(chalk.red('\n❌ Varsayılan bot ayarlanmamış. "natureco config set defaultBotId <bot-id>" ile ayarlayın.\n'));
22
+ try {
23
+ const { bots } = await getBots(apiKey);
24
+ if (bots && bots.length > 0) defaultBotId = bots[0].id;
25
+ } catch { /* ag hatasi — asagida net mesaj */ }
26
+ }
27
+
28
+ if (!defaultBotId) {
29
+ console.log(chalk.red('\n❌ Hiç bot bulunamadı. "natureco chat" ile yerel sağlayıcıyı kullanabilir ya da bir bot oluşturabilirsiniz.\n'));
21
30
  process.exit(1);
22
31
  }
23
32