n8n-nodes-engram 0.8.0 → 0.8.2
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 +40 -1
- package/dist/extraction/AutonomousPersonalQualifiedClaimV4.d.ts +10 -0
- package/dist/extraction/AutonomousPersonalQualifiedClaimV4.js +502 -18
- package/dist/extraction/AutonomousPersonalQualifiedClaimV4.js.map +1 -1
- package/dist/extraction/AutonomousPersonalTypedSyntaxV1.js +26 -1
- package/dist/extraction/AutonomousPersonalTypedSyntaxV1.js.map +1 -1
- package/dist/extraction/CompositionalSnapshotIndexV3.js +8 -3
- package/dist/extraction/CompositionalSnapshotIndexV3.js.map +1 -1
- package/dist/memory/AutonomousPersonalMemoryParentReaderV4.js +209 -193
- package/dist/memory/AutonomousPersonalMemoryParentReaderV4.js.map +1 -1
- package/dist/memory/AutonomousPersonalMemoryReadV4.js +9 -3
- package/dist/memory/AutonomousPersonalMemoryReadV4.js.map +1 -1
- package/dist/memory/AutonomousPersonalNativeMemoryAdapterV4.js +23 -4
- package/dist/memory/AutonomousPersonalNativeMemoryAdapterV4.js.map +1 -1
- package/dist/memory/EngramChatMemory.d.ts +1 -0
- package/dist/memory/EngramChatMemory.js +17 -6
- package/dist/memory/EngramChatMemory.js.map +1 -1
- package/dist/nodes/EngramAdmin/EngramAdmin.node.js +56 -14
- package/dist/nodes/EngramAdmin/EngramAdmin.node.js.map +1 -1
- package/dist/nodes/EngramMemory/EngramMemory.node.js +621 -428
- package/dist/nodes/EngramMemory/EngramMemory.node.js.map +1 -1
- package/dist/schemas/AutomaticCaptureStateCoreV1.schema.d.ts +1944 -60
- package/dist/schemas/AutonomousPersonalAssistantFinalV4.schema.d.ts +452 -0
- package/dist/schemas/AutonomousPersonalBeginV4.schema.d.ts +1230 -6
- package/dist/schemas/AutonomousPersonalCaptureBeginV4.schema.d.ts +3266 -76
- package/dist/schemas/AutonomousPersonalCaptureProviderV4.schema.d.ts +621 -27
- package/dist/schemas/AutonomousPersonalCaptureSnapshotPreparationV4.schema.d.ts +1468 -54
- package/dist/schemas/AutonomousPersonalClaimCandidateV1.schema.d.ts +8 -8
- package/dist/schemas/AutonomousPersonalClaimIndexCandidateRowsV4.schema.d.ts +1944 -60
- package/dist/schemas/AutonomousPersonalClaimV3.schema.d.ts +16 -16
- package/dist/schemas/AutonomousPersonalCompletionPlanV4.schema.d.ts +5290 -432
- package/dist/schemas/AutonomousPersonalDescriptorV4.schema.d.ts +462 -4
- package/dist/schemas/AutonomousPersonalDescriptorV4.schema.js +37 -4
- package/dist/schemas/AutonomousPersonalDescriptorV4.schema.js.map +1 -1
- package/dist/schemas/AutonomousPersonalExecutionBudgetV1.schema.d.ts +383 -0
- package/dist/schemas/AutonomousPersonalExecutionBudgetV1.schema.js +137 -0
- package/dist/schemas/AutonomousPersonalExecutionBudgetV1.schema.js.map +1 -0
- package/dist/schemas/AutonomousPersonalExecutionDiagnosticsV1.schema.d.ts +183 -0
- package/dist/schemas/AutonomousPersonalExecutionDiagnosticsV1.schema.js +50 -0
- package/dist/schemas/AutonomousPersonalExecutionDiagnosticsV1.schema.js.map +1 -0
- package/dist/schemas/AutonomousPersonalExecutionScopeV1.schema.d.ts +48 -0
- package/dist/schemas/AutonomousPersonalExecutionScopeV1.schema.js +58 -0
- package/dist/schemas/AutonomousPersonalExecutionScopeV1.schema.js.map +1 -0
- package/dist/schemas/AutonomousPersonalMemoryParentReaderV4.schema.d.ts +2 -2
- package/dist/schemas/AutonomousPersonalNativeAdminV4.schema.d.ts +883 -3
- package/dist/schemas/AutonomousPersonalNativeAdminV4.schema.js +5 -0
- package/dist/schemas/AutonomousPersonalNativeAdminV4.schema.js.map +1 -1
- package/dist/schemas/AutonomousPersonalNativeMemoryConfigV4.schema.d.ts +138 -0
- package/dist/schemas/AutonomousPersonalNativeMemoryConfigV4.schema.js +2 -0
- package/dist/schemas/AutonomousPersonalNativeMemoryConfigV4.schema.js.map +1 -1
- package/dist/schemas/AutonomousPersonalOperationV4.schema.d.ts +1668 -48
- package/dist/schemas/AutonomousPersonalProviderV1.schema.d.ts +10 -10
- package/dist/schemas/AutonomousPersonalSourceV4.schema.d.ts +556 -16
- package/dist/schemas/AutonomousPersonalSourceV4.schema.js +3 -0
- package/dist/schemas/AutonomousPersonalSourceV4.schema.js.map +1 -1
- package/dist/schemas/AutonomousPersonalTerminalOperationV4.schema.d.ts +1944 -60
- package/dist/schemas/CompositionalCompletionStageV3.schema.d.ts +4 -4
- package/dist/schemas/CompositionalMaterializationV3.schema.d.ts +2 -2
- package/dist/schemas/GraphDataMigration.d.ts +1 -0
- package/dist/schemas/GraphDataMigration.js +26 -0
- package/dist/schemas/GraphDataMigration.js.map +1 -1
- package/dist/schemas/MemoryPolicy.schema.d.ts +4 -4
- package/dist/search/CompositionalRetrievalSessionV3.d.ts +1 -1
- package/dist/search/CompositionalRetrievalSessionV3.js +16 -8
- package/dist/search/CompositionalRetrievalSessionV3.js.map +1 -1
- package/dist/search/CompositionalRuntimeReaderV3.d.ts +2 -1
- package/dist/search/CompositionalRuntimeReaderV3.js +203 -175
- package/dist/search/CompositionalRuntimeReaderV3.js.map +1 -1
- package/dist/storage/AutomaticClaimReadScope.d.ts +7 -0
- package/dist/storage/AutomaticClaimReadScope.js +78 -5
- package/dist/storage/AutomaticClaimReadScope.js.map +1 -1
- package/dist/storage/AutonomousPersonalAssistantFinalInvocationV4.d.ts +22 -0
- package/dist/storage/AutonomousPersonalAssistantFinalPlanV4.js +3 -1
- package/dist/storage/AutonomousPersonalAssistantFinalPlanV4.js.map +1 -1
- package/dist/storage/AutonomousPersonalCaptureBeginV4.js +8 -4
- package/dist/storage/AutonomousPersonalCaptureBeginV4.js.map +1 -1
- package/dist/storage/AutonomousPersonalCaptureHandlesV4.d.ts +194 -16
- package/dist/storage/AutonomousPersonalCaptureHandlesV4.js +133 -11
- package/dist/storage/AutonomousPersonalCaptureHandlesV4.js.map +1 -1
- package/dist/storage/AutonomousPersonalCompletionGraphV4.js +13 -6
- package/dist/storage/AutonomousPersonalCompletionGraphV4.js.map +1 -1
- package/dist/storage/AutonomousPersonalCompletionPlanV4.d.ts +2 -1
- package/dist/storage/AutonomousPersonalCompletionPlanV4.js +29 -11
- package/dist/storage/AutonomousPersonalCompletionPlanV4.js.map +1 -1
- package/dist/storage/AutonomousPersonalExecutionBudgetV1.d.ts +10 -0
- package/dist/storage/AutonomousPersonalExecutionBudgetV1.js +124 -0
- package/dist/storage/AutonomousPersonalExecutionBudgetV1.js.map +1 -0
- package/dist/storage/AutonomousPersonalExecutionScopeV1.d.ts +33 -0
- package/dist/storage/AutonomousPersonalExecutionScopeV1.js +677 -0
- package/dist/storage/AutonomousPersonalExecutionScopeV1.js.map +1 -0
- package/dist/storage/AutonomousPersonalMemoryParentIntegrityV4.js +3 -0
- package/dist/storage/AutonomousPersonalMemoryParentIntegrityV4.js.map +1 -1
- package/dist/storage/AutonomousPersonalNativeCompletionV4.js +9 -0
- package/dist/storage/AutonomousPersonalNativeCompletionV4.js.map +1 -1
- package/dist/storage/AutonomousPersonalNativeMemoryHandoffV4.js +14 -0
- package/dist/storage/AutonomousPersonalNativeMemoryHandoffV4.js.map +1 -1
- package/dist/storage/AutonomousPersonalRecordIntegrityV4.d.ts +1 -9
- package/dist/storage/AutonomousPersonalRecordIntegrityV4.js +8 -444
- package/dist/storage/AutonomousPersonalRecordIntegrityV4.js.map +1 -1
- package/dist/storage/BoundedAutomaticCaptureJson.js +1 -6
- package/dist/storage/BoundedAutomaticCaptureJson.js.map +1 -1
- package/dist/storage/GraphologyStorage.d.ts +11 -0
- package/dist/storage/GraphologyStorage.js +691 -312
- package/dist/storage/GraphologyStorage.js.map +1 -1
- package/dist/storage/ImmutableGraphSnapshot.d.ts +4 -0
- package/dist/storage/ImmutableGraphSnapshot.js +79 -0
- package/dist/storage/ImmutableGraphSnapshot.js.map +1 -0
- package/dist/storage/LosslessAutomaticCaptureGraph.d.ts +4 -0
- package/dist/storage/LosslessAutomaticCaptureGraph.js +188 -5
- package/dist/storage/LosslessAutomaticCaptureGraph.js.map +1 -1
- package/dist/storage/Neo4jStorage.js +393 -290
- package/dist/storage/Neo4jStorage.js.map +1 -1
- package/dist/utils/AutonomousPersonalCaptureNativeConfigV4.d.ts +226 -0
- package/dist/utils/AutonomousPersonalCaptureNativeConfigV4.js +5 -0
- package/dist/utils/AutonomousPersonalCaptureNativeConfigV4.js.map +1 -1
- package/dist/utils/AutonomousPersonalExecutionEntryV1.d.ts +22 -0
- package/dist/utils/AutonomousPersonalExecutionEntryV1.js +141 -0
- package/dist/utils/AutonomousPersonalExecutionEntryV1.js.map +1 -0
- package/dist/utils/AutonomousPersonalMemoryExecutionEntryV1.d.ts +9 -0
- package/dist/utils/AutonomousPersonalMemoryExecutionEntryV1.js +123 -0
- package/dist/utils/AutonomousPersonalMemoryExecutionEntryV1.js.map +1 -0
- package/dist/utils/AutonomousPersonalNativeMemoryConfigV4.js +4 -0
- package/dist/utils/AutonomousPersonalNativeMemoryConfigV4.js.map +1 -1
- package/dist/utils/AutonomousPersonalNativeMemoryWorkV4.d.ts +2 -1
- package/dist/utils/AutonomousPersonalNativeMemoryWorkV4.js +23 -2
- package/dist/utils/AutonomousPersonalNativeMemoryWorkV4.js.map +1 -1
- package/dist/utils/automaticAdmin.js +5 -0
- package/dist/utils/automaticAdmin.js.map +1 -1
- package/dist/utils/automaticMemory.d.ts +1 -0
- package/dist/utils/automaticMemory.js +90 -1
- package/dist/utils/automaticMemory.js.map +1 -1
- package/dist/utils/autonomousPersonalAdmin.js +19 -0
- package/dist/utils/autonomousPersonalAdmin.js.map +1 -1
- package/dist/utils/autonomousPersonalExecutionBudget.d.ts +16 -0
- package/dist/utils/autonomousPersonalExecutionBudget.js +85 -0
- package/dist/utils/autonomousPersonalExecutionBudget.js.map +1 -0
- package/dist/utils/nativeMemoryWorkflowLifecycleV4.d.ts +2 -0
- package/dist/utils/nativeMemoryWorkflowLifecycleV4.js +425 -0
- package/dist/utils/nativeMemoryWorkflowLifecycleV4.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
<p align="center">
|
|
27
27
|
<a href="#installation">Installation</a> ·
|
|
28
|
-
<a href="#upgrading-to-
|
|
28
|
+
<a href="#upgrading-to-v082">Upgrade</a> ·
|
|
29
29
|
<a href="#node-reference">Nodes</a> ·
|
|
30
30
|
<a href="#storage-backends">Storage</a> ·
|
|
31
31
|
<a href="#knowledge-extraction">Extraction</a> ·
|
|
@@ -101,6 +101,45 @@ npm install n8n-nodes-engram
|
|
|
101
101
|
|
|
102
102
|
---
|
|
103
103
|
|
|
104
|
+
## Upgrading to v0.8.2
|
|
105
|
+
|
|
106
|
+
This patch reduces embedded-store processing overhead during automatic capture, memory retrieval and conversation saves. Existing node versions, saved defaults, namespaces and memory policies are preserved. The performance changes require no new setting or node-version upgrade. Installing the package does not enable an automatic-memory profile or start a background worker.
|
|
107
|
+
|
|
108
|
+
1. Take fresh, consistent workflow and backend-native backups. Preserve complete embedded files or the Neo4j database, producer workflow mapping, storage paths, logical store identity, namespaces, bindings and aliases. Include queue-aware recovery data where durable jobs already exist.
|
|
109
|
+
2. Install `n8n-nodes-engram@0.8.2`, restart n8n and refresh the editor. Begin with an inactive workflow copy and a separately restored store with its logical ownership mapping preserved. Moving an enrolled store to another producer path is not an activation step.
|
|
110
|
+
3. Keep the current model, route, temperature, source mappings and stable event IDs. Verify cold startup, recent conversation, accepted graph-only recall, capture receipts, duplicate events and a conversation with multiple tool calls. Confirm that tool audits remain separate and final turns are saved once.
|
|
111
|
+
4. Expand only after the selected workflow passes. Review passive writers separately. If enabling Autonomous Personal Memory for the first time, the existing [v0.8.0 profile setup](#upgrading-to-v080) and [v0.8.1 configured-budget instructions](#upgrading-to-v081) still apply.
|
|
112
|
+
|
|
113
|
+
After embedded-store initialization fails, cached-memory reads now report that failure instead of returning empty or stale data. Correct the backing file and retry initialization or restart the workflow; no memory reset is required. A failed initialization must not be treated as successful recall.
|
|
114
|
+
|
|
115
|
+
Monitor n8n memory use during rollout, particularly with large embedded stores or several active workflows. Faster repeated reads can retain more data in memory between writes. Provider-request latency remains separate from local storage work; this patch does not guarantee a particular response time.
|
|
116
|
+
|
|
117
|
+
No reset, purge, re-enrollment or bulk re-extraction is required. Prefer reverting explicit workflow/policy settings on the supported binary while preserving newly appended memory. Existing downgrade and mixed-version writer/worker restrictions remain in force. Never restore an old snapshot over newer conversations as routine rollback.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Upgrading to v0.8.1
|
|
122
|
+
|
|
123
|
+
This patch adds configurable capture budgets and fixes Memory continuation across tool rounds. Existing node versions, saved defaults, namespaces and memory are preserved. Autonomous Personal Memory uses AI Agent **v3.1** with n8n **2.12.3 / Node.js 22** or **2.44.6 / Node.js 24**.
|
|
124
|
+
|
|
125
|
+
1. Take fresh, consistent workflow and backend-native backups. Preserve complete embedded files or the Neo4j database, producer workflow mapping, storage paths, namespaces, bindings and aliases. Begin with an inactive workflow copy and a separately restored store.
|
|
126
|
+
2. Install `n8n-nodes-engram@0.8.1`, restart n8n and refresh the editor. Keep the current model, route, provider temperature setting, source mappings and stable event IDs.
|
|
127
|
+
3. On both **Admin v3 > Capture Human Memory** and **Memory v3**, select **Capture Budget Policy > Configured Budgets (V1)**. Match the extraction deadline and all budget settings across the two nodes. Use **Preview Memory Policy** to inspect the selected policy.
|
|
128
|
+
4. Start with **Completion Budget > Use Remaining Extraction Deadline**, **Processing Budget > Use Remaining Extraction Deadline**, and **Finalization Reserve > Automatic**. Explicit completion/processing limits are 100–120000 milliseconds. A fixed reserve is 20–5000 milliseconds and must be smaller than the extraction deadline.
|
|
129
|
+
5. Verify capture acceptance, graph-only recall, normal and multi-tool conversations, duplicate events and saved provenance before expanding to other writers. Workflow success alone does not prove accepted graph memory.
|
|
130
|
+
|
|
131
|
+
**Existing Limits** remains the default. Selecting configured budgets removes the legacy five-second completion/processing ceilings for that selected path. Every stage remains within the original extraction deadline and current ownership lease; stage limits never add time. Preparation, each Memory read and the final Memory save have separate operation scopes, so agent/tool time does not consume a later final-save allowance. The extraction deadline is not memory expiry or a whole-workflow timeout. An individual provider-request timeout remains separate.
|
|
132
|
+
|
|
133
|
+
The configured policy applies to autonomous capture and Memory operations. Neo4j ordinary graph imports now use ordered batches to reduce database round trips while preserving row order, atomicity and existing import limits. Imports remain bounded. Use complete backend-native backups for recovery rather than generic JSON import.
|
|
134
|
+
|
|
135
|
+
Processing measures cumulative elapsed synchronous work, including parsing, validation, proof reconstruction, hashing, indexing and serialization. Provider/storage waits use the wall-time deadline. Configurable limits do not promise faster responses on larger stores. Configured Admin output adds `execution_diagnostics`: configured/effective allowances, observed elapsed time, cumulative synchronous work, last reached stage and first scope stop. These observations are not a commit receipt; `creationSummary` and `should_process` retain their meanings. An unavailable clock observation is `null`.
|
|
136
|
+
|
|
137
|
+
A durably acknowledged write followed by a verification timeout remains unconfirmed for continuation; that timeout alone does not quarantine an otherwise healthy embedded store. Persistence/integrity uncertainty retains recovery protection. No timeout authorizes another agent run or external send.
|
|
138
|
+
|
|
139
|
+
No reset, purge, source rewrite, destructive merge or bulk re-extraction is needed. Historical failed/leased events remain intact; changing settings does not rewrite their ownership or automatically replay them. Prefer policy rollback on the supported binary, preserving newly appended conversations. The existing old-package downgrade and mixed-version restrictions below still apply. Never restore an old snapshot over newer conversations as routine rollback.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
104
143
|
## Upgrading to v0.8.0
|
|
105
144
|
|
|
106
145
|
Existing saved workflows, node versions and defaults are preserved. **Automatic Memory Interpretation > Literal Preferences (Existing)** remains the default. Select **Autonomous Personal Memory** explicitly to enable the new interpretation on Admin v3 and Memory v3.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AutonomousPersonalQualifiedClaimResultV4 } from '../schemas/AutonomousPersonalQualifiedClaimV4.schema';
|
|
2
2
|
import { type AutonomousPersonalTypedSyntaxWorkV1 } from '../schemas/AutonomousPersonalTypedSyntaxV1.schema';
|
|
3
|
+
import { type AutonomousPersonalRecordIntegrityV4FailureReason } from '../schemas/AutonomousPersonalRecordIntegrityV4.schema';
|
|
3
4
|
import type { GraphData } from '../schemas/GraphData.schema';
|
|
4
5
|
import type { AutonomousPersonalClaimIndexCandidateRowsV4 } from '../schemas/AutonomousPersonalClaimIndexCandidateRowsV4.schema';
|
|
5
6
|
declare const indexBrand: unique symbol;
|
|
@@ -13,7 +14,16 @@ export declare class AutonomousPersonalClaimIndexV4Error extends Error {
|
|
|
13
14
|
}
|
|
14
15
|
export declare function createAutonomousPersonalClaimIndexV4(graphValue: unknown, typedSyntaxWork: AutonomousPersonalTypedSyntaxWorkV1, codeOwnedCheck: () => void): AutonomousPersonalClaimIndexV4;
|
|
15
16
|
export declare function getAutonomousPersonalClaimIndexGraphV4(index: AutonomousPersonalClaimIndexV4): GraphData;
|
|
17
|
+
export declare function getRegisteredAutonomousPersonalClaimIndexGraphV4(value: unknown): GraphData | undefined;
|
|
16
18
|
export declare function getAutonomousPersonalClaimIndexCandidateRowsV4(indexValue: unknown, edgeIdValue: unknown): AutonomousPersonalClaimIndexCandidateRowsV4 | null;
|
|
17
19
|
export declare function inspectAutonomousPersonalClaimCreatorV4(indexValue: unknown, edgeIdValue: unknown): AutonomousPersonalQualifiedClaimResultV4;
|
|
18
20
|
export declare function qualifyAutonomousPersonalClaimCreatorV4(indexValue: unknown, requestValue: unknown): AutonomousPersonalQualifiedClaimResultV4;
|
|
21
|
+
export declare class AutonomousPersonalRecordIntegrityV4Error extends Error {
|
|
22
|
+
readonly reason: AutonomousPersonalRecordIntegrityV4FailureReason;
|
|
23
|
+
constructor(reason: AutonomousPersonalRecordIntegrityV4FailureReason);
|
|
24
|
+
}
|
|
25
|
+
export declare function assertAutonomousPersonalRecordIntegrityV4(graphValue: unknown, typedSyntaxWork: AutonomousPersonalTypedSyntaxWorkV1, codeOwnedCheck: () => void): void;
|
|
26
|
+
export declare function validateOwnedAutonomousPersonalRecordGraphV4(graphValue: unknown, typedSyntaxWork: AutonomousPersonalTypedSyntaxWorkV1, codeOwnedCheck: () => void): GraphData | undefined;
|
|
27
|
+
export declare function createIntegrityCheckedAutonomousPersonalClaimIndexV4(graphValue: unknown, typedSyntaxWork: AutonomousPersonalTypedSyntaxWorkV1, codeOwnedCheck: () => void): AutonomousPersonalClaimIndexV4;
|
|
28
|
+
export declare function parseIntegrityCheckedAutonomousPersonalGraphV4(graphValue: unknown, typedSyntaxWork: AutonomousPersonalTypedSyntaxWorkV1, codeOwnedCheck: () => void): GraphData;
|
|
19
29
|
export {};
|