natureco-cli 4.8.0 → 4.8.2

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": "4.8.0",
3
+ "version": "4.8.2",
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"
@@ -250,8 +250,11 @@ async function sendStreaming(providerUrl, providerApiKey, messages, model, onChu
250
250
  break;
251
251
  }
252
252
 
253
- // OpenAI uyumlu streaming
254
- const endpoint = `${providerUrl.replace(/\/+$/, '')}/chat/completions`;
253
+ // OpenAI uyumlu streaming (veya MiniMax /v1/text/chatcompletion_v2)
254
+ // v4.8.2: MiniMax tool calling sadece özel endpoint'inde çalışıyor
255
+ const endpoint = isMM
256
+ ? `${providerUrl.replace(/\/+$/, '')}/v1/text/chatcompletion_v2`
257
+ : `${providerUrl.replace(/\/+$/, '')}/chat/completions`;
255
258
  const result = await new Promise((resolve, reject) => {
256
259
  const req = https.request(endpoint, {
257
260
  method: 'POST',
@@ -462,6 +465,8 @@ async function startRepl(args) {
462
465
  // v4.7.4: Daha agresif dil zorlaması — model önceki versiyonlarda İngilizce cevap veriyordu
463
466
  'KRİTİK DİL KURALI: Kullanıcı Türkçe yazıyorsa MUTLAKA %100 Türkçe cevap ver. Asla İngilizce, Çince veya başka dil kullanma. Cevabının TAMAMI Türkçe olmalı.',
464
467
  'ÖNEMLİ: <tool_call>, <invoke>, function_call veya benzeri XML/JSON formatında tool çağrısı SİMÜLE ETME. Sadece düz metin cevap ver. Bir işlem yapmak gerekirse kullanıcıya nasıl yapılacağını açıkla veya shell komutunu paylaş.',
468
+ // v4.8.0: Kullanıcının dosya yollarını bil — tool'lar doğru path kullansın
469
+ cfg.userHome ? `Kullanıcının home dizini: ${cfg.userHome}. Downloads: ${cfg.userHome}/Downloads, Desktop: ${cfg.userHome}/Desktop. Dosya işlemlerinde BU path'leri kullan.` : '',
465
470
  memory.nickname && memory.name
466
471
  ? `Kullanıcının adı: ${memory.name}. Sana "${memory.nickname}" diye hitap etmesinden hoşlanıyor.`
467
472
  : memory.name ? `Kullanıcının adı: ${memory.name}.` : '',