n8n-nodes-tembory 1.1.8 → 1.1.9

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.
@@ -2266,7 +2266,7 @@ const wrapTemboryMemory = (memory, ctx, memoryKey) => new Proxy(memory, {
2266
2266
  if (prop === 'loadMemoryVariables') {
2267
2267
  return async (values = {}) => {
2268
2268
  const { index } = ctx.addInputData(n8n_workflow_1.NodeConnectionTypes.AiMemory, [
2269
- [{ json: { action: 'loadMemoryVariables', values } }],
2269
+ [{ json: { action: 'loadMemoryVariables', valuesChars: JSON.stringify(values || {}).length } }],
2270
2270
  ]);
2271
2271
  try {
2272
2272
  const response = await target.loadMemoryVariables(values);
@@ -2290,7 +2290,13 @@ const wrapTemboryMemory = (memory, ctx, memoryKey) => new Proxy(memory, {
2290
2290
  if (prop === 'saveContext') {
2291
2291
  return async (input = {}, output = {}) => {
2292
2292
  const { index } = ctx.addInputData(n8n_workflow_1.NodeConnectionTypes.AiMemory, [
2293
- [{ json: { action: 'saveContext', input, output } }],
2293
+ [{
2294
+ json: {
2295
+ action: 'saveContext',
2296
+ inputChars: JSON.stringify(input || {}).length,
2297
+ outputChars: JSON.stringify(output || {}).length,
2298
+ },
2299
+ }],
2294
2300
  ]);
2295
2301
  try {
2296
2302
  const response = await target.saveContext(input, output);
@@ -2837,7 +2843,7 @@ class TemboryMemory {
2837
2843
  const loadCache = new Map();
2838
2844
  const recordMemoryEvent = (action, payload = {}, error) => {
2839
2845
  const { index } = this.addInputData(n8n_workflow_1.NodeConnectionTypes.AiMemory, [
2840
- [{ json: { action, ...(payload.input !== undefined ? { input: payload.input } : {}), ...(payload.values !== undefined ? { values: payload.values } : {}) } }],
2846
+ [{ json: { action } }],
2841
2847
  ]);
2842
2848
  if (error) {
2843
2849
  this.addOutputData(n8n_workflow_1.NodeConnectionTypes.AiMemory, index, error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-tembory",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Tembory node for n8n AI Agents with operational memory, tool history and decision state",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tembory.com",