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 +1 -1
- package/src/commands/dashboard.js +2 -2
- package/src/utils/api.js +1 -1
- package/src/utils/memory.js +6 -7
package/package.json
CHANGED
|
@@ -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.
|
|
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.
|
|
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 = `
|
|
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;
|
package/src/utils/memory.js
CHANGED
|
@@ -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 =>
|
|
249
|
-
|
|
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(', ')}`);
|