natureco-cli 5.6.9 → 5.6.11

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.9",
3
+ "version": "5.6.11",
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"
@@ -852,11 +852,11 @@ async function startRepl(args) {
852
852
  const trimmed = (line || '').toLowerCase();
853
853
  const isIdentityQuestion = /(sen\s+kim|adin\s+ne|kendini\s+tan|kendin\s+tanit|kimsin|ne\s+adindasin)/.test(trimmed);
854
854
  if (isIdentityQuestion) {
855
- // Hard-coded prefix artik botName'i kullaniyor
855
+ // v5.6.10: Hard-coded prefix minimal - model cevabini bozuyordu
856
+ // Once sadece isim yaz, modelin devamini getirsin
856
857
  const displayName = memory.botName || 'İchigo';
857
858
  process.stdout.write(tui.styled('\n AI ', { color: tui.PALETTE.secondary, bold: true }));
858
- process.stdout.write('Ben ' + displayName + ', NatureCo CLI\'nin Türkçe yapay zeka asistanıyım. ');
859
- console.log('\n');
859
+ process.stdout.write('Merhaba! Ben ' + displayName + '. ');
860
860
  }
861
861
 
862
862
  // AI cevabı
@@ -868,8 +868,12 @@ async function startRepl(args) {
868
868
  providerApiKey,
869
869
  apiMessages,
870
870
  model,
871
- // v5.6.9: Streaming kapatildi - tum cevap bekleniyor, sonra fix
872
- null, // callback yok
871
+ // v5.6.11: Streaming kapatildi - bos callback (null hatasi veriyor)
872
+ (chunk) => {
873
+ // v5.6.9: Buffer'a biriktir, sonra yazdiracagiz
874
+ if (!global._replyBuffer) global._replyBuffer = '';
875
+ global._replyBuffer += chunk;
876
+ },
873
877
  // Tool call callback — kullanıcıya göster
874
878
  (toolEvent) => {
875
879
  if (toolEvent.status === 'running') {
@@ -97,6 +97,11 @@ function loadToolDefinitions() {
97
97
  */
98
98
  function toOpenAIFormat(toolDefs) {
99
99
  // v5.6.6: Yasakli tool'lari filtrele, alias'lari cozumle
100
+ // v5.6.6: Inline tool filtre - model halusinasyonla cagirabilecegi tool'lari engelle
101
+ toolDefs = toolDefs.filter(t =>
102
+ !['brave_search','brave-web-search','google_search','web_search','browse','open','search','shell','bash_command','execute_command','run_command','sql','query','lookup'].includes(t.name)
103
+ );
104
+
100
105
  return toolDefs
101
106
  .filter(t => !['brave_search','brave-web-search','google_search','web_search','browse','open','search','shell','bash_command','execute_command','run_command','sql','query','lookup'].includes(t.name))
102
107
  .map(t => {