morpheus-cli 0.9.3 → 0.9.4

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.
@@ -382,6 +382,11 @@ ${SmithRegistry.getInstance().getSystemPromptSection()}
382
382
  databasePath: this.databasePath,
383
383
  limit: this.config.llm?.context_window ?? 100,
384
384
  });
385
+ // Ensure the session row exists in the DB before we try to persist
386
+ // messages. Without this, external callers (webhooks, chronos) that
387
+ // supply a custom session_id would hit "Sessão não encontrada" inside
388
+ // addMessages → setSessionTitleIfNeeded → renameSession.
389
+ callHistory.ensureSession(currentSessionId ?? 'default');
385
390
  // Load existing history from database in reverse order (most recent first)
386
391
  let previousMessages = await callHistory.getMessages();
387
392
  previousMessages = previousMessages.reverse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "morpheus-cli",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "Morpheus is a local AI agent for developers, running as a CLI daemon that connects to LLMs, local tools, and MCPs, enabling interaction via Terminal, Telegram, and Discord. Inspired by the character Morpheus from *The Matrix*, the project acts as an intelligent orchestrator, bridging the gap between the developer and complex systems.",
5
5
  "bin": {
6
6
  "morpheus": "./bin/morpheus.js"