natureco-cli 1.0.56 → 1.0.57

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.0.56",
3
+ "version": "1.0.57",
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.0.56</div>
214
+ <div class="version-badge" id="version-badge">v1.0.57</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.0.56',
344
+ version: 'v1.0.57',
345
345
  bots: cfg.bots || [],
346
346
  telegramToken: cfg.telegramToken || null,
347
347
  whatsappConnected: cfg.whatsappConnected || false,
package/src/utils/api.js CHANGED
@@ -34,19 +34,23 @@ async function _sendMessage(apiKey, botId, message, conversationId = null, skill
34
34
  // Debug için log
35
35
  console.log('agent_id:', agentId);
36
36
 
37
+ // system_prompt'u kısalt - sadece skill adı ve açıklaması
38
+ const shortPrompt = skillPrompts
39
+ ? skillPrompts.split('## Skill:').filter(Boolean).map(s => {
40
+ const lines = s.trim().split('\n');
41
+ return '- ' + lines[0].trim();
42
+ }).join('\n')
43
+ : '';
44
+
37
45
  const body = {
38
46
  agent_id: agentId,
39
47
  message,
40
48
  conversation_id: conversationId,
41
49
  platform: 'cli',
42
- user_id: 'cli-user'
50
+ user_id: 'cli-user',
51
+ system_prompt: shortPrompt
43
52
  };
44
53
 
45
- // Skill prompts varsa system_prompt olarak ekle
46
- if (skillPrompts && skillPrompts.trim().length > 0) {
47
- body.system_prompt = skillPrompts;
48
- }
49
-
50
54
  // Custom AI provider varsa ekle
51
55
  if (config.aiProvider && config.aiApiKey) {
52
56
  body.custom_provider = config.aiProvider;