natureco-cli 2.4.4 → 2.4.5

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.4.4",
3
+ "version": "2.4.5",
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.4.4</div>
214
+ <div class="version-badge" id="version-badge">v2.4.5</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.4.4',
344
+ version: 'v2.4.5',
345
345
  bots: cfg.bots || [],
346
346
  telegramToken: cfg.telegramToken || null,
347
347
  whatsappConnected: cfg.whatsappConnected || false,
@@ -128,7 +128,7 @@ async function startGateway() {
128
128
 
129
129
  async function runGatewayWorker() {
130
130
  // This runs in the background
131
- log('gateway', 'Starting NatureCo Gateway v2.4.4...', 'green');
131
+ log('gateway', 'Starting NatureCo Gateway v2.4.5...', 'green');
132
132
 
133
133
  // Load config
134
134
  const { getConfig } = require('../utils/config');
@@ -293,7 +293,7 @@ async function startWhatsAppProvider(sessionDir, config) {
293
293
  try {
294
294
  // v2.x: Send to universal provider (Groq/OpenAI/Anthropic)
295
295
  const { sendMessage } = require('../utils/api');
296
- const { getMemoryPrompt } = require('../utils/memory');
296
+ const { getMemoryPrompt, extractMemoryFromMessage, addMemoryEntry } = require('../utils/memory');
297
297
 
298
298
  log('whatsapp', 'Sending to AI provider...', 'cyan');
299
299
 
@@ -323,6 +323,13 @@ async function startWhatsAppProvider(sessionDir, config) {
323
323
  lastBotReply = reply;
324
324
 
325
325
  log('whatsapp', `Reply sent (${reply.length} chars)`, 'green');
326
+
327
+ // Extract and save memory from user message
328
+ const memoryEntries = extractMemoryFromMessage(messageText);
329
+ for (const entry of memoryEntries) {
330
+ addMemoryEntry(botId, entry.key, entry.value);
331
+ log('whatsapp', `Memory saved: ${entry.key} = ${entry.value}`, 'gray');
332
+ }
326
333
  } else {
327
334
  log('whatsapp', 'No reply from provider', 'yellow');
328
335
  }
package/src/utils/api.js CHANGED
@@ -1,4 +1,4 @@
1
- // NatureCo CLI v2.4.4 - Universal LLM Provider Support
1
+ // NatureCo CLI v2.4.5 - Universal LLM Provider Support
2
2
  // Supports: OpenAI, Groq, Together, Fireworks, Perplexity, Mistral, DeepSeek, OpenRouter, Ollama, LM Studio, Anthropic
3
3
 
4
4
  const fs = require('fs');