natureco-cli 2.13.25 → 2.13.27

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.25",
3
+ "version": "2.13.27",
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.25</div>
214
+ <div class="version-badge" id="version-badge">v2.13.27</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.25',
344
+ version: 'v2.13.27',
345
345
  bots: cfg.bots || [],
346
346
  telegramToken: cfg.telegramToken || null,
347
347
  whatsappConnected: cfg.whatsappConnected || false,
package/src/utils/api.js CHANGED
@@ -723,7 +723,7 @@ TOOL SELECTION GUIDE:
723
723
 
724
724
  // Prepend botName to system prompt if available
725
725
  if (mem.botName) {
726
- baseSystemPrompt = `You are ${mem.botName}. Your name is ${mem.botName}. When asked your name, always say your name is "${mem.botName}". Never say you don't have a name.\n\n` + baseSystemPrompt;
726
+ baseSystemPrompt = `Adın ${mem.botName}. Sen ${mem.botName}'sun. Adın sorulduğunda her zaman "${mem.botName}" de. Asla adın olmadığını söyleme.\n\n` + baseSystemPrompt;
727
727
  }
728
728
 
729
729
  let systemPrompt = baseSystemPrompt;
@@ -214,11 +214,6 @@ function getMemoryPrompt(botId) {
214
214
 
215
215
  const parts = [];
216
216
 
217
- // Add bot name if set (MUST be before empty check) - stronger emphasis
218
- if (botName) {
219
- parts.push(`Your name is ${botName}. ALWAYS introduce yourself as ${botName} when asked.`);
220
- }
221
-
222
217
  // Check if there's any content to add
223
218
  if (!name && !nickname && !botName && preferences.length === 0 && facts.length === 0) {
224
219
  return '';
@@ -245,8 +240,12 @@ function getMemoryPrompt(botId) {
245
240
  // Limit to top 15 facts to reduce token usage
246
241
  const sorted = facts.sort((a, b) => (b.score || 0) - (a.score || 0));
247
242
  const topFacts = sorted.slice(0, 15)
248
- .map(f => typeof f === 'string' ? f : f.value) // Extract value from object
249
- .filter(Boolean); // Remove null/undefined
243
+ .map(f => {
244
+ if (typeof f === 'string') return f;
245
+ if (f && typeof f === 'object') return f.value || '';
246
+ return '';
247
+ })
248
+ .filter(f => f && f.length > 0);
250
249
 
251
250
  if (topFacts.length > 0) {
252
251
  parts.push(`Bilgiler: ${topFacts.join(', ')}`);