n8n-nodes-tembory 1.0.52 → 1.0.54

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.
@@ -2237,7 +2237,7 @@ const invokeConnectedModelSummary = async (connectedLanguageModel, summaryInput,
2237
2237
  const response = await connectedLanguageModel.invoke([
2238
2238
  toBaseMessage({
2239
2239
  role: 'user',
2240
- content: `Update the Tembory active summary for the next agent turn. Return only concise Portuguese bullets, no JSON and no markdown table. Preserve IDs, dates, tool names, confirmed decisions, pending actions, constraints, contradictions, and do-not-repeat instructions. Prefer durable useful context over raw logs. Do not invent facts.\n\nContext:\n${summaryInput}`,
2240
+ content: `Update the Tembory active summary for the next agent turn. Return only concise Portuguese bullets, no JSON and no markdown table. Preserve IDs, dates, tool names, confirmed decisions, explicit pending actions, constraints, contradictions, and do-not-repeat instructions. Prefer durable useful context over raw logs. Do not invent facts. Treat inferred gaps or missing details as read-only observations, not action requirements, unless they are explicitly present in tool_state, action_ledger, working_memory.next_expected_action, or the current user message. Do not convert observations, guesses, or helpful suggestions into blocking pending actions.\n\nContext:\n${summaryInput}`,
2241
2241
  }),
2242
2242
  ]);
2243
2243
  return cleanModelSummaryText(response, Number(adv.connectedModelSummaryMaxChars || 1200));
@@ -3190,8 +3190,6 @@ class Mem0Memory {
3190
3190
  messages.push({ role: 'user', content: input });
3191
3191
  if (output)
3192
3192
  messages.push({ role: 'assistant', content: output });
3193
- if (!messages.length)
3194
- return;
3195
3193
  const body = { messages };
3196
3194
  if (adv.useVectorMemory === false)
3197
3195
  body.infer = false;
@@ -3332,7 +3330,8 @@ class Mem0Memory {
3332
3330
  }
3333
3331
  return;
3334
3332
  }
3335
- await GenericFunctions_1.mem0ApiRequest.call(this, 'POST', '/v1/memories/', body);
3333
+ if (messages.length)
3334
+ await GenericFunctions_1.mem0ApiRequest.call(this, 'POST', '/v1/memories/', body);
3336
3335
  if (adv.includeRecentMessages !== false && recentForMem0.length) {
3337
3336
  for (const recent of recentForMem0) {
3338
3337
  await GenericFunctions_1.mem0ApiRequest.call(this, 'POST', '/v1/memories/', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-tembory",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "Tembory node for n8n AI Agents with profile, tools, timeline, graph and semantic memory",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tembory.com",