natureco-cli 5.9.2 → 5.9.4
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 +1 -1
- package/src/commands/chat.js +2 -1
- package/src/commands/setup.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.4",
|
|
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"
|
package/src/commands/chat.js
CHANGED
|
@@ -75,7 +75,8 @@ async function chat(botName, options = {}) {
|
|
|
75
75
|
// Önceki v2.23 davranışı: ASCII art, bot seçimi, inquirer prompt, vb.
|
|
76
76
|
// Bu refactor, eski tüm komutları (session, memory, hooks, custom commands) korur
|
|
77
77
|
// ama provider URL (api.minimax.io, api.groq.com) üzerinden direkt LLM'e bağlanır
|
|
78
|
-
|
|
78
|
+
// Provider ayarlı değilse veya natureco.me değilse REPL'e yönlendir
|
|
79
|
+
if (!config.providerUrl || !config.providerUrl.includes('natureco.me')) {
|
|
79
80
|
// Resume parametresi REPL'e geçir
|
|
80
81
|
const replArgs = [];
|
|
81
82
|
if (options.resume === true || options.resume) {
|
package/src/commands/setup.js
CHANGED
|
@@ -432,7 +432,7 @@ async function cmdWizard() {
|
|
|
432
432
|
cfg.providerApiKey = apiKey;
|
|
433
433
|
// v5.6.0: API key dogrula
|
|
434
434
|
console.log('\n Doğrulanıyor...');
|
|
435
|
-
const isValid = await validateApiKey(
|
|
435
|
+
const isValid = await validateApiKey(providerUrl, apiKey);
|
|
436
436
|
if (!isValid) {
|
|
437
437
|
console.log(' ❌ API key gecersiz! Lutfen kontrol edin.');
|
|
438
438
|
const retry = await inquirer.prompt([{
|