natureco-cli 1.1.0 → 1.1.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": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "main": "bin/natureco.js",
6
6
  "bin": {
@@ -211,7 +211,7 @@ body::before{
211
211
  <div class="header-bot-name" id="header-bot-name">Nature Bot</div>
212
212
  <div class="header-bot-model" id="header-bot-model">NatureCo</div>
213
213
  </div>
214
- <div class="version-badge" id="version-badge">v1.1.0</div>
214
+ <div class="version-badge" id="version-badge">v1.1.2</div>
215
215
  </div>
216
216
  <div class="messages" id="messages"></div>
217
217
  <div class="input-area">
@@ -341,7 +341,7 @@ function dashboard(action) {
341
341
  apiKey: cfg.apiKey,
342
342
  defaultBot: cfg.defaultBot,
343
343
  defaultBotId: cfg.defaultBotId,
344
- version: 'v1.1.0',
344
+ version: 'v1.1.2',
345
345
  bots: cfg.bots || [],
346
346
  telegramToken: cfg.telegramToken || null,
347
347
  whatsappConnected: cfg.whatsappConnected || false,
package/src/utils/api.js CHANGED
@@ -31,6 +31,9 @@ async function _sendMessage(apiKey, botId, message, conversationId = null, skill
31
31
  // agent_id boş veya undefined ise config'den oku
32
32
  const agentId = botId || config.defaultBotId;
33
33
 
34
+ // Terminal asistan prompt'u ekle
35
+ const terminalPrompt = 'Sen bir terminal asistanısın. Kullanıcı dosya listeleme, komut çalıştırma, dizin görüntüleme gibi istekler yaptığında MUTLAKA bash veya filesystem tool\'larını kullan. Asla \'şu komutu çalıştırın\' deme — kendin çalıştır ve sonucu göster.\n\n';
36
+
34
37
  // system_prompt'u basitçe karaktere göre kes
35
38
  const shortPrompt = skillPrompts ? skillPrompts.slice(0, 600) : '';
36
39
 
@@ -40,7 +43,7 @@ async function _sendMessage(apiKey, botId, message, conversationId = null, skill
40
43
  conversation_id: conversationId,
41
44
  platform: 'cli',
42
45
  user_id: 'cli-user',
43
- system_prompt: shortPrompt
46
+ system_prompt: terminalPrompt + shortPrompt
44
47
  };
45
48
 
46
49
  // Custom AI provider varsa ekle
@@ -54,10 +57,10 @@ async function _sendMessage(apiKey, botId, message, conversationId = null, skill
54
57
  }
55
58
  }
56
59
 
57
- // Tool definitions ekle
58
- if (toolDefinitions && toolDefinitions.length > 0) {
59
- body.tools = toolDefinitions;
60
- }
60
+ // Tool definitions şimdilik devre dışı
61
+ // if (toolDefinitions && toolDefinitions.length > 0) {
62
+ // body.tools = toolDefinitions;
63
+ // }
61
64
 
62
65
  const data = await request('/api/agent/chat', {
63
66
  method: 'POST',