n8n-nodes-tembory 1.3.5 → 1.3.6

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/README.md CHANGED
@@ -2,7 +2,15 @@
2
2
 
3
3
  Node de memoria operacional da Tembory para agentes de IA no n8n.
4
4
 
5
- Versao atual: `1.3.5`.
5
+ Versao atual: `1.3.6`.
6
+
7
+ ## 1.3.6
8
+
9
+ - Fortalece o default recomendado para agentes mini/SLM em workflows reais.
10
+ - `Memoria Inteligente (Recomendado)` agora usa `productionBalanced` com contexto de 20000 caracteres, entrada do SLM em 12000 caracteres, resumo SLM em 3000 caracteres e active summary em 3500 caracteres.
11
+ - Mantem 30 tools recentes no contexto operacional e TTL de tool history em 86400 segundos.
12
+ - Alinha os defaults visiveis em `Ajustes Tecnicos` para nao mostrar configuracao mais fraca quando o usuario abre os grupos.
13
+ - Esclarece que o cache tecnico SLM usa segundos; 300 segundos equivalem a 5 minutos.
6
14
 
7
15
  ## 1.3.5
8
16
 
@@ -220,13 +228,18 @@ No modo simples, o node aplica automaticamente:
220
228
 
221
229
  - `Modo de Recuperacao`: operacional estruturado.
222
230
  - `Formato do Contexto`: producao estruturado.
223
- - `Preset Operacional`: producao rapida.
224
- - `Fonte do Resumo do SLM`: contexto ativo.
231
+ - `Preset Operacional`: producao balanceada.
232
+ - `Fonte do Resumo do SLM`: automatica.
233
+ - `Maximo de Caracteres do Contexto`: 20000.
234
+ - `Maximo de Caracteres de Entrada do SLM`: 12000.
235
+ - `Maximo de Caracteres do Resumo do SLM`: 3000.
236
+ - `Maximo de Caracteres do Active Summary`: 3500.
225
237
  - Tool history, resultados de tools, action ledger, working memory, decision state, operational state e memory compression ligados.
226
238
  - Persistencia no backend e active summary ligados.
227
239
  - Diagnostico pesado, scores, semantic fallback e tool facts desligados.
228
- - TTL de tool history em 36000 segundos.
229
- - Ultimas tools mantidas no contexto compacto: 50.
240
+ - Cache tecnico do SLM em 300 segundos.
241
+ - TTL de tool history em 86400 segundos.
242
+ - Ultimas tools mantidas no contexto compacto: 30.
230
243
 
231
244
  ## Uso com `$fromAI()`
232
245
 
@@ -252,8 +265,8 @@ Exemplo de budget:
252
265
  {
253
266
  "agentContextBudget": {
254
267
  "messages": 1,
255
- "chars": 4200,
256
- "approxTokens": 1050,
268
+ "chars": 12000,
269
+ "approxTokens": 3000,
257
270
  "largestSections": [
258
271
  { "section": "tools", "chars": 1600, "approxTokens": 400 }
259
272
  ]
@@ -1333,8 +1333,8 @@ const mergeRemoteThreadState = (store, key, state) => {
1333
1333
  store.activeSummary[key] = state.activeSummary;
1334
1334
  };
1335
1335
  const SIMPLE_MODE_OVERRIDES = {
1336
- operationPreset: 'productionFast',
1337
- summarySource: 'activeContext',
1336
+ operationPreset: 'productionBalanced',
1337
+ summarySource: 'auto',
1338
1338
  includeContextHeader: true,
1339
1339
  compactStateSections: true,
1340
1340
  includeSummary: true,
@@ -1357,13 +1357,13 @@ const SIMPLE_MODE_OVERRIDES = {
1357
1357
  includeDiagnostics: false,
1358
1358
  persistToolFactsToTembory: false,
1359
1359
  includeToolHistorySemanticFallback: false,
1360
- contextMaxChars: 10000,
1361
- toolHistoryLastN: 50,
1362
- toolHistoryTTLSeconds: 36000,
1360
+ contextMaxChars: 20000,
1361
+ toolHistoryLastN: 30,
1362
+ toolHistoryTTLSeconds: 86400,
1363
1363
  recentMessagesLastN: 50,
1364
- connectedModelSummaryInputMaxChars: 4200,
1365
- connectedModelSummaryMaxChars: 1200,
1366
- activeSummaryMaxChars: 1800,
1364
+ connectedModelSummaryInputMaxChars: 12000,
1365
+ connectedModelSummaryMaxChars: 3000,
1366
+ activeSummaryMaxChars: 3500,
1367
1367
  activeSummaryRetentionDays: 30,
1368
1368
  };
1369
1369
  const applyOperationalPreset = (advanced = {}) => {
@@ -1445,7 +1445,7 @@ const applyOperationalPreset = (advanced = {}) => {
1445
1445
  includeConnectedModelSummary: true,
1446
1446
  includeActiveSummary: true,
1447
1447
  persistActiveSummary: true,
1448
- activeSummaryMaxChars: 1800,
1448
+ activeSummaryMaxChars: 3500,
1449
1449
  activeSummaryRetentionDays: 30,
1450
1450
  enableTransientSummaryCache: true,
1451
1451
  transientSummaryCacheTTLSeconds: 300,
@@ -1471,12 +1471,14 @@ const applyOperationalPreset = (advanced = {}) => {
1471
1471
  includeRecentHighlights: true,
1472
1472
  topK: 6,
1473
1473
  lastN: 8,
1474
- toolHistoryLastN: 10,
1474
+ toolHistoryLastN: 30,
1475
+ toolHistoryTTLSeconds: 86400,
1475
1476
  recentMessagesLastN: 50,
1476
1477
  vectorMemoryMaxChars: 360,
1477
- contextMaxChars: 10000,
1478
- connectedModelSummaryMaxChars: 1200,
1479
- connectedModelSummaryInputMaxChars: 4200,
1478
+ contextMaxChars: 20000,
1479
+ connectedModelSummaryMaxChars: 3000,
1480
+ connectedModelSummaryInputMaxChars: 12000,
1481
+ summaryMaxFacts: 8,
1480
1482
  },
1481
1483
  productionCheap: {
1482
1484
  summarySource: 'activeContext',
@@ -4513,18 +4515,18 @@ class TemboryMemory {
4513
4515
  options: [
4514
4516
  { name: 'Custom', value: 'custom' },
4515
4517
  { name: 'Diagnóstico Completo', value: 'diagnostic' },
4516
- { name: 'Produção Rápida (Thread + SLM)', value: 'productionFast' },
4517
- { name: 'Produção Balanceada', value: 'productionBalanced' },
4518
+ { name: 'Produção Balanceada (Recomendado)', value: 'productionBalanced' },
4519
+ { name: 'Produção Rápida (Thread + SLM)', value: 'productionFast' },
4518
4520
  { name: 'Produção Econômica', value: 'productionCheap' },
4519
4521
  { name: 'Produção Nano/SLM', value: 'productionNano' },
4520
4522
  { name: 'Auditoria', value: 'audit' },
4521
4523
  ],
4522
- default: 'productionFast',
4523
- description: 'Preenche defaults seguros para contexto, historico de tools e memoria ativa.',
4524
- },
4524
+ default: 'productionBalanced',
4525
+ description: 'Preenche defaults seguros para contexto, historico de tools e memoria ativa.',
4526
+ },
4525
4527
  { displayName: 'Incluir Cabeçalho de Contexto', name: 'includeContextHeader', type: 'boolean', default: true },
4526
4528
  { displayName: 'Organizar Seções de Produção', name: 'compactStateSections', type: 'boolean', default: true },
4527
- { displayName: 'Máximo de Caracteres do Contexto', name: 'contextMaxChars', type: 'number', default: 10000 },
4529
+ { displayName: 'Máximo de Caracteres do Contexto', name: 'contextMaxChars', type: 'number', default: 20000 },
4528
4530
  { displayName: 'Incluir Tool History', name: 'includeToolHistory', type: 'boolean', default: true },
4529
4531
  { displayName: 'Incluir Resultado Das Tools', name: 'includeToolResults', type: 'boolean', default: true },
4530
4532
  { displayName: 'Incluir Working Memory', name: 'includeWorkingMemory', type: 'boolean', default: true },
@@ -4562,16 +4564,16 @@ class TemboryMemory {
4562
4564
  ],
4563
4565
  default: 'auto',
4564
4566
  },
4565
- { displayName: 'Máximo de Caracteres de Entrada do SLM', name: 'connectedModelSummaryInputMaxChars', type: 'number', default: 4200 },
4566
- { displayName: 'Máximo de Caracteres do Resumo do SLM', name: 'connectedModelSummaryMaxChars', type: 'number', default: 1200 },
4567
+ { displayName: 'Máximo de Caracteres de Entrada do SLM', name: 'connectedModelSummaryInputMaxChars', type: 'number', default: 12000 },
4568
+ { displayName: 'Máximo de Caracteres do Resumo do SLM', name: 'connectedModelSummaryMaxChars', type: 'number', default: 3000 },
4567
4569
  { displayName: 'Incluir Active Summary', name: 'includeActiveSummary', type: 'boolean', default: true },
4568
4570
  { displayName: 'Persistir Active Summary', name: 'persistActiveSummary', type: 'boolean', default: true },
4569
- { displayName: 'Máximo de Caracteres do Active Summary', name: 'activeSummaryMaxChars', type: 'number', default: 1800 },
4571
+ { displayName: 'Máximo de Caracteres do Active Summary', name: 'activeSummaryMaxChars', type: 'number', default: 3500 },
4570
4572
  { displayName: 'Retenção do Active Summary (Dias)', name: 'activeSummaryRetentionDays', type: 'number', default: 30 },
4571
4573
  { displayName: 'Ativar Cache Técnico do Resumo SLM', name: 'enableTransientSummaryCache', type: 'boolean', default: true },
4572
4574
  { displayName: 'TTL do Cache Técnico SLM (Segundos)', name: 'transientSummaryCacheTTLSeconds', type: 'number', default: 300 },
4573
4575
  { displayName: 'Máximo de Itens no Cache Técnico SLM', name: 'transientSummaryCacheMaxItems', type: 'number', default: 50 },
4574
- { displayName: 'Máximo de Fatos no Resumo', name: 'summaryMaxFacts', type: 'number', default: 4 },
4576
+ { displayName: 'Máximo de Fatos no Resumo', name: 'summaryMaxFacts', type: 'number', default: 8 },
4575
4577
  ],
4576
4578
  },
4577
4579
  {
@@ -4580,8 +4582,8 @@ class TemboryMemory {
4580
4582
  values: [
4581
4583
  { displayName: 'Incluir Scores', name: 'includeScores', type: 'boolean', default: false },
4582
4584
  { displayName: 'Incluir Diagnóstico', name: 'includeDiagnostics', type: 'boolean', default: false },
4583
- { displayName: 'Últimas N Tools', name: 'toolHistoryLastN', type: 'number', default: 10 },
4584
- { displayName: 'TTL Das Tools (Segundos)', name: 'toolHistoryTTLSeconds', type: 'number', default: 3600 },
4585
+ { displayName: 'Últimas N Tools Mantidas no Contexto', name: 'toolHistoryLastN', type: 'number', default: 30 },
4586
+ { displayName: 'TTL Das Tools (Segundos)', name: 'toolHistoryTTLSeconds', type: 'number', default: 86400 },
4585
4587
  { displayName: 'Persistir Tool Facts no Backend', name: 'persistToolFactsToTembory', type: 'boolean', default: false },
4586
4588
  { displayName: 'Fallback Semântico Para Tools', name: 'includeToolHistorySemanticFallback', type: 'boolean', default: false },
4587
4589
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-tembory",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
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",