natureco-cli 2.13.8 → 2.13.9

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": "2.13.8",
3
+ "version": "2.13.9",
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">v2.13.8</div>
214
+ <div class="version-badge" id="version-badge">v2.13.9</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: 'v2.13.8',
344
+ version: 'v2.13.9',
345
345
  bots: cfg.bots || [],
346
346
  telegramToken: cfg.telegramToken || null,
347
347
  whatsappConnected: cfg.whatsappConnected || false,
@@ -234,6 +234,9 @@ function getMemoryPrompt(botId) {
234
234
  // Limit to top 15 facts to reduce token usage
235
235
  const sorted = facts.sort((a, b) => b.score - a.score);
236
236
  const topFacts = sorted.slice(0, 15);
237
+
238
+ console.log('[MEMORY] Facts count:', facts.length, '→ showing:', topFacts.length);
239
+
237
240
  parts.push(`Bilgiler: ${topFacts.map(f => f.value).join(', ')}`);
238
241
 
239
242
  if (facts.length > 15) {
@@ -242,7 +245,10 @@ function getMemoryPrompt(botId) {
242
245
  }
243
246
  }
244
247
 
245
- return parts.join('\n');
248
+ const prompt = parts.join('\n');
249
+ console.log('[MEMORY] Prompt length:', prompt.length, 'chars, ~', Math.round(prompt.length / 4), 'tokens');
250
+
251
+ return prompt;
246
252
  }
247
253
 
248
254
  // Clear memory for a bot