n8n 2.22.4 → 2.23.0
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/dist/auth/auth.service.d.ts +2 -0
- package/dist/auth/auth.service.js +15 -4
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-service.types.d.ts +4 -4
- package/dist/commands/execute.d.ts +2 -2
- package/dist/commands/export/workflow.js +1 -0
- package/dist/commands/export/workflow.js.map +1 -1
- package/dist/commands/license/info.js +4 -4
- package/dist/commands/license/info.js.map +1 -1
- package/dist/commands/start.js +21 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/controllers/annotation-tags.controller.ee.d.ts +1 -1
- package/dist/controllers/e2e.controller.js +1 -0
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.d.ts +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.js +4 -7
- package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +3 -6
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/redaction-enforcement-mapper.d.ts +3 -0
- package/dist/controllers/redaction-enforcement-mapper.js +27 -0
- package/dist/controllers/redaction-enforcement-mapper.js.map +1 -0
- package/dist/controllers/security-settings.controller.d.ts +8 -2
- package/dist/controllers/security-settings.controller.js +35 -25
- package/dist/controllers/security-settings.controller.js.map +1 -1
- package/dist/credentials/credential-connection-status-provider.interface.d.ts +3 -0
- package/dist/credentials/credential-connection-status-provider.interface.js +3 -0
- package/dist/credentials/credential-connection-status-provider.interface.js.map +1 -0
- package/dist/credentials/credential-connection-status-proxy.d.ts +6 -0
- package/dist/credentials/credential-connection-status-proxy.js +25 -0
- package/dist/credentials/credential-connection-status-proxy.js.map +1 -0
- package/dist/credentials/credential-resolution-provider.interface.d.ts +1 -0
- package/dist/credentials/credentials.controller.d.ts +2 -0
- package/dist/credentials/credentials.service.d.ts +10 -1
- package/dist/credentials/credentials.service.ee.d.ts +2 -0
- package/dist/credentials/credentials.service.ee.js +13 -3
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +34 -7
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials/dynamic-credentials-proxy.d.ts +2 -0
- package/dist/credentials/dynamic-credentials-proxy.js +9 -0
- package/dist/credentials/dynamic-credentials-proxy.js.map +1 -1
- package/dist/credentials-helper.js +2 -1
- package/dist/credentials-helper.js.map +1 -1
- package/dist/errors/feature-not-licensed.error.d.ts +3 -1
- package/dist/errors/feature-not-licensed.error.js +2 -2
- package/dist/errors/feature-not-licensed.error.js.map +1 -1
- package/dist/evaluation.ee/evaluation-collection.service.js +2 -0
- package/dist/evaluation.ee/evaluation-collection.service.js.map +1 -1
- package/dist/evaluation.ee/insights/eval-insights.controller.ee.d.ts +41 -0
- package/dist/evaluation.ee/insights/eval-insights.controller.ee.js +62 -0
- package/dist/evaluation.ee/insights/eval-insights.controller.ee.js.map +1 -0
- package/dist/evaluation.ee/insights/eval-insights.service.d.ts +25 -0
- package/dist/evaluation.ee/insights/eval-insights.service.js +206 -0
- package/dist/evaluation.ee/insights/eval-insights.service.js.map +1 -0
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +3 -2
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +16 -2
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +3 -1
- package/dist/events/relays/telemetry.event-relay.js +9 -3
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.d.ts +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +4 -2
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution-data/db-store.d.ts +4 -2
- package/dist/executions/execution-data/db-store.js +9 -4
- package/dist/executions/execution-data/db-store.js.map +1 -1
- package/dist/executions/execution-data/missing-execution-data.error.d.ts +5 -0
- package/dist/executions/execution-data/missing-execution-data.error.js +11 -0
- package/dist/executions/execution-data/missing-execution-data.error.js.map +1 -0
- package/dist/executions/execution-data/types.d.ts +3 -2
- package/dist/executions/execution-data/types.js.map +1 -1
- package/dist/executions/execution-persistence.d.ts +12 -3
- package/dist/executions/execution-persistence.js +102 -26
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/external-hooks.d.ts +6 -1
- package/dist/external-hooks.js.map +1 -1
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.d.ts +3 -2
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js +17 -12
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js.map +1 -1
- package/dist/interfaces.d.ts +1 -0
- package/dist/license.d.ts +2 -0
- package/dist/license.js +6 -0
- package/dist/license.js.map +1 -1
- package/dist/load-nodes-and-credentials.d.ts +32 -4
- package/dist/manual-execution.service.js +3 -0
- package/dist/manual-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.js +5 -5
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-sse-stream.js +17 -1
- package/dist/modules/agents/agent-sse-stream.js.map +1 -1
- package/dist/modules/agents/agents-tools.service.js +7 -5
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +29 -3
- package/dist/modules/agents/agents.controller.js +88 -7
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +1 -1
- package/dist/modules/agents/agents.module.js +12 -6
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +7 -8
- package/dist/modules/agents/agents.service.js +120 -65
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-model-recommendations.d.ts +1 -1
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js +3 -3
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +9 -17
- package/dist/modules/agents/builder/agents-builder-prompts.js +145 -549
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-settings.service.js +2 -2
- package/dist/modules/agents/builder/agents-builder-settings.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +10 -10
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +3 -1
- package/dist/modules/agents/builder/agents-builder.service.js +58 -9
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +2 -2
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js +2 -2
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-question.tool.js +2 -2
- package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +2 -2
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.d.ts +1 -0
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +132 -0
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -0
- package/dist/modules/agents/builder/prompts/config-rules.prompt.d.ts +2 -0
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +63 -0
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -0
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +1 -0
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +47 -0
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +1 -0
- package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +1 -0
- package/dist/modules/agents/builder/prompts/memory.prompt.js +60 -0
- package/dist/modules/agents/builder/prompts/memory.prompt.js.map +1 -0
- package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -0
- package/dist/modules/agents/builder/prompts/tools.prompt.js +81 -0
- package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -0
- package/dist/modules/agents/builder/skills/index.d.ts +2 -0
- package/dist/modules/agents/builder/skills/index.js +12 -0
- package/dist/modules/agents/builder/skills/index.js.map +1 -0
- package/dist/modules/agents/builder/skills/integrations.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/integrations.skill.js +53 -0
- package/dist/modules/agents/builder/skills/integrations.skill.js.map +1 -0
- package/dist/modules/agents/builder/skills/research.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/research.skill.js +42 -0
- package/dist/modules/agents/builder/skills/research.skill.js.map +1 -0
- package/dist/modules/agents/builder/skills/target-skills.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/target-skills.skill.js +59 -0
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -0
- package/dist/modules/agents/entities/{agent-published-version.entity.d.ts → agent-history.entity.d.ts} +4 -7
- package/dist/modules/agents/entities/{agent-published-version.entity.js → agent-history.entity.js} +22 -34
- package/dist/modules/agents/entities/agent-history.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.d.ts +7 -0
- package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.js +38 -0
- package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-memory-entry-lock.entity.d.ts +7 -0
- package/dist/modules/{instance-ai/entities/instance-ai-workflow-snapshot.entity.js → agents/entities/agent-memory-entry-lock.entity.js} +16 -19
- package/dist/modules/agents/entities/agent-memory-entry-lock.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-memory-entry-source.entity.d.ts +9 -0
- package/dist/modules/agents/entities/agent-memory-entry-source.entity.js +49 -0
- package/dist/modules/agents/entities/agent-memory-entry-source.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-memory-entry.entity.d.ts +15 -0
- package/dist/modules/agents/entities/agent-memory-entry.entity.js +65 -0
- package/dist/modules/agents/entities/agent-memory-entry.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-observation-cursor.entity.d.ts +2 -3
- package/dist/modules/agents/entities/agent-observation-cursor.entity.js +5 -4
- package/dist/modules/agents/entities/agent-observation-cursor.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-observation-lock.entity.d.ts +2 -3
- package/dist/modules/agents/entities/agent-observation-lock.entity.js +5 -4
- package/dist/modules/agents/entities/agent-observation-lock.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-observation.entity.d.ts +2 -3
- package/dist/modules/agents/entities/agent-observation.entity.js +6 -5
- package/dist/modules/agents/entities/agent-observation.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent.entity.d.ts +3 -5
- package/dist/modules/agents/entities/agent.entity.js +7 -14
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/episodic-memory.d.ts +2 -0
- package/dist/modules/agents/episodic-memory.js +12 -0
- package/dist/modules/agents/episodic-memory.js.map +1 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +2 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.js +19 -5
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-schedule.service.js +10 -6
- package/dist/modules/agents/integrations/agent-schedule.service.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.js +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-memory.d.ts +41 -18
- package/dist/modules/agents/integrations/n8n-memory.js +519 -77
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js +2 -12
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/rich-interaction-tool.d.ts +1 -1
- package/dist/modules/agents/integrations/rich-interaction-tool.js +2 -2
- package/dist/modules/agents/integrations/rich-interaction-tool.js.map +1 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.d.ts +52 -0
- package/dist/modules/agents/integrations/slack-app-setup.service.js +316 -0
- package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -0
- package/dist/modules/agents/json-config/from-json-config.d.ts +2 -3
- package/dist/modules/agents/json-config/from-json-config.js +76 -61
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/schema-text-serializer.js +2 -1
- package/dist/modules/agents/json-config/schema-text-serializer.js.map +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +19 -0
- package/dist/modules/agents/repositories/agent-history.repository.js +51 -0
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-memory-entry-cursor.repository.d.ts +5 -0
- package/dist/modules/{instance-ai/repositories/instance-ai-workflow-snapshot.repository.js → agents/repositories/agent-memory-entry-cursor.repository.js} +8 -8
- package/dist/modules/agents/repositories/agent-memory-entry-cursor.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-memory-entry-lock.repository.d.ts +5 -0
- package/dist/modules/{instance-ai/repositories/instance-ai-observational-memory.repository.js → agents/repositories/agent-memory-entry-lock.repository.js} +8 -8
- package/dist/modules/agents/repositories/agent-memory-entry-lock.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-memory-entry-source.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-memory-entry-source.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-memory-entry-source.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-memory-entry.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-memory-entry.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-memory-entry.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent.repository.js +3 -3
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/runtime/agent-secure-runtime.js +5 -5
- package/dist/modules/agents/runtime/agent-secure-runtime.js.map +1 -1
- package/dist/modules/agents/tools/environment-tool.d.ts +1 -1
- package/dist/modules/agents/tools/environment-tool.js +3 -3
- package/dist/modules/agents/tools/environment-tool.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.js +5 -5
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.js +3 -3
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/tracing/builder-telemetry.d.ts +2 -3
- package/dist/modules/agents/tracing/builder-telemetry.js +36 -3
- package/dist/modules/agents/tracing/builder-telemetry.js.map +1 -1
- package/dist/modules/agents/utils/agent-draft.utils.js +1 -2
- package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
- package/dist/modules/agents/utils/agent-memory-scope.d.ts +3 -0
- package/dist/modules/agents/utils/agent-memory-scope.js +15 -0
- package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub.constants.js +4 -0
- package/dist/modules/chat-hub/chat-hub.constants.js.map +1 -1
- package/dist/modules/chat-hub/context-limits.js +1 -0
- package/dist/modules/chat-hub/context-limits.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/constants.d.ts +3 -0
- package/dist/modules/dynamic-credentials.ee/constants.js +7 -0
- package/dist/modules/dynamic-credentials.ee/constants.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +14 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers.controller.d.ts +2 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers.controller.js +18 -4
- package/dist/modules/dynamic-credentials.ee/credential-resolvers.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +4 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.d.ts +4 -0
- package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.js +11 -0
- package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.d.ts +7 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js +40 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.d.ts +3 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js +6 -3
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.d.ts +2 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.js +22 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.d.ts +3 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js +7 -3
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.d.ts +4 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +11 -3
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/index.d.ts +2 -0
- package/dist/modules/dynamic-credentials.ee/services/index.js +2 -0
- package/dist/modules/dynamic-credentials.ee/services/index.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.d.ts +14 -0
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js +70 -0
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js.map +1 -0
- package/dist/modules/insights/insights-collection.service.js +1 -1
- package/dist/modules/insights/insights-collection.service.js.map +1 -1
- package/dist/modules/instance-ai/entities/index.d.ts +6 -2
- package/dist/modules/instance-ai/entities/index.js +9 -5
- package/dist/modules/instance-ai/entities/index.js.map +1 -1
- package/dist/modules/instance-ai/entities/instance-ai-checkpoint.entity.d.ts +12 -0
- package/dist/modules/instance-ai/entities/instance-ai-checkpoint.entity.js +54 -0
- package/dist/modules/instance-ai/entities/instance-ai-checkpoint.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-cursor.entity.d.ts +6 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-cursor.entity.js +33 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-cursor.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-lock.entity.d.ts +8 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-lock.entity.js +37 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-lock.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation.entity.d.ts +12 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation.entity.js +52 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.d.ts +19 -0
- package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.js +82 -0
- package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.d.ts +2 -0
- package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.js +8 -0
- package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.js.map +1 -1
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.d.ts +12 -2
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js +40 -4
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +8 -2
- package/dist/modules/instance-ai/eval/execution.service.js +137 -47
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/llm-wire-server.d.ts +31 -0
- package/dist/modules/instance-ai/eval/llm-wire-server.js +127 -0
- package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -0
- package/dist/modules/instance-ai/eval/openai-envelope.d.ts +6 -0
- package/dist/modules/instance-ai/eval/openai-envelope.js +96 -0
- package/dist/modules/instance-ai/eval/openai-envelope.js.map +1 -0
- package/dist/modules/instance-ai/eval/proxy-loopback.d.ts +1 -0
- package/dist/modules/instance-ai/eval/proxy-loopback.js +44 -0
- package/dist/modules/instance-ai/eval/proxy-loopback.js.map +1 -0
- package/dist/modules/instance-ai/eval/sub-agent-eval.service.js +29 -7
- package/dist/modules/instance-ai/eval/sub-agent-eval.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +7 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +178 -3
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +6 -6
- package/dist/modules/instance-ai/instance-ai-memory.service.js +44 -85
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +2 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.js +11 -22
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +2 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +105 -13
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.module.js +10 -6
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +34 -12
- package/dist/modules/instance-ai/instance-ai.service.js +724 -264
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +4 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +3 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
- package/dist/modules/instance-ai/message-parser.d.ts +3 -3
- package/dist/modules/instance-ai/message-parser.js +65 -61
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/node-definition-resolver.js +12 -48
- package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -1
- package/dist/modules/instance-ai/repositories/index.d.ts +4 -2
- package/dist/modules/instance-ai/repositories/index.js +9 -5
- package/dist/modules/instance-ai/repositories/index.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-cursor.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-cursor.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-cursor.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.d.ts +5 -0
- package/dist/modules/{agents/repositories/agent-published-version.repository.js → instance-ai/repositories/instance-ai-observation.repository.js} +8 -17
- package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.js.map +1 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.d.ts +2 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js +12 -2
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
- package/dist/modules/instance-ai/storage/index.d.ts +2 -3
- package/dist/modules/instance-ai/storage/index.js +5 -7
- package/dist/modules/instance-ai/storage/index.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.d.ts +15 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js +94 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +94 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +324 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -0
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.d.ts +37 -0
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js +212 -0
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js.map +1 -0
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js +34 -11
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js.map +1 -1
- package/dist/modules/mcp/mcp.service.js +5 -5
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/tools/schemas.d.ts +24 -24
- package/dist/modules/mcp/tools/search-projects.tool.js +59 -13
- package/dist/modules/mcp/tools/search-projects.tool.js.map +1 -1
- package/dist/modules/mcp/tools/test-workflow.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.d.ts +35 -0
- package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.js +88 -0
- package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.d.ts +3 -2
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +41 -9
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/data-table-validation.d.ts +13 -0
- package/dist/modules/mcp/tools/workflow-builder/data-table-validation.js +87 -0
- package/dist/modules/mcp/tools/workflow-builder/data-table-validation.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +2 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +42 -6
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.d.ts +2 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +5 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.js +1 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-test.controller.js +5 -1
- package/dist/modules/mcp-registry/mcp-registry-test.controller.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +18 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +73 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +31 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -0
- package/dist/modules/n8n-packages/io/package-writer.d.ts +6 -0
- package/dist/{scaling/multi-main-setup.types.js → modules/n8n-packages/io/package-writer.js} +1 -1
- package/dist/modules/n8n-packages/io/package-writer.js.map +1 -0
- package/dist/modules/n8n-packages/io/slug.utils.d.ts +1 -0
- package/dist/modules/n8n-packages/io/slug.utils.js +16 -0
- package/dist/modules/n8n-packages/io/slug.utils.js.map +1 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-writer.d.ts +9 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-writer.js +71 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-writer.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.controller.d.ts +10 -0
- package/dist/modules/n8n-packages/n8n-packages.controller.js +45 -0
- package/dist/modules/n8n-packages/n8n-packages.controller.js.map +1 -0
- package/dist/modules/{inbound-secrets/inbound-secrets.module.d.ts → n8n-packages/n8n-packages.module.d.ts} +1 -1
- package/dist/modules/{inbound-secrets/inbound-secrets.module.js → n8n-packages/n8n-packages.module.js} +12 -16
- package/dist/modules/n8n-packages/n8n-packages.module.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +10 -0
- package/dist/modules/n8n-packages/n8n-packages.service.js +49 -0
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +5 -0
- package/dist/modules/n8n-packages/n8n-packages.types.js +3 -0
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -0
- package/dist/modules/n8n-packages/spec/constants.d.ts +1 -0
- package/dist/modules/n8n-packages/spec/constants.js +5 -0
- package/dist/modules/n8n-packages/spec/constants.js.map +1 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +55 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.js +17 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +169 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +46 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -0
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.d.ts +5 -1
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js +18 -2
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.utils.js +27 -2
- package/dist/modules/oauth-jwe/oauth-jwe.utils.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.js +1 -0
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +11 -6
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/otel/otel-lifecycle-handler.d.ts +5 -1
- package/dist/modules/otel/otel-lifecycle-handler.js +30 -2
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/otel/otel.constants.d.ts +1 -0
- package/dist/modules/otel/otel.constants.js +1 -0
- package/dist/modules/otel/otel.constants.js.map +1 -1
- package/dist/modules/runtime-credentials/path-traversal.js.map +1 -0
- package/dist/modules/runtime-credentials/runtime-credentials-access.service.d.ts +8 -0
- package/dist/modules/runtime-credentials/runtime-credentials-access.service.js +35 -0
- package/dist/modules/runtime-credentials/runtime-credentials-access.service.js.map +1 -0
- package/dist/modules/{inbound-secrets/inbound-secrets-context-hook.d.ts → runtime-credentials/runtime-credentials-context-hook.d.ts} +4 -5
- package/dist/modules/{inbound-secrets/inbound-secrets-context-hook.js → runtime-credentials/runtime-credentials-context-hook.js} +14 -22
- package/dist/modules/runtime-credentials/runtime-credentials-context-hook.js.map +1 -0
- package/dist/modules/runtime-credentials/runtime-credentials.config.d.ts +3 -0
- package/dist/modules/{inbound-secrets/inbound-secrets.config.js → runtime-credentials/runtime-credentials.config.js} +7 -7
- package/dist/modules/runtime-credentials/runtime-credentials.config.js.map +1 -0
- package/dist/modules/runtime-credentials/runtime-credentials.module.d.ts +4 -0
- package/dist/modules/runtime-credentials/runtime-credentials.module.js +65 -0
- package/dist/modules/runtime-credentials/runtime-credentials.module.js.map +1 -0
- package/dist/modules/runtime-credentials/runtime-credentials.schemas.d.ts +23 -0
- package/dist/modules/runtime-credentials/runtime-credentials.schemas.js +10 -0
- package/dist/modules/runtime-credentials/runtime-credentials.schemas.js.map +1 -0
- package/dist/modules/runtime-credentials/runtime-credentials.service.d.ts +18 -0
- package/dist/modules/{inbound-secrets/inbound-secrets.service.js → runtime-credentials/runtime-credentials.service.js} +31 -28
- package/dist/modules/runtime-credentials/runtime-credentials.service.js.map +1 -0
- package/dist/modules/source-control.ee/source-control-export.service.ee.d.ts +1 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.js +3 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +2 -2
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +29 -8
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js +4 -4
- package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +2 -2
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +1 -1
- package/dist/modules/source-control.ee/types/exportable-workflow.d.ts +2 -1
- package/dist/modules/sso-saml/saml.service.ee.js +5 -1
- package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
- package/dist/modules/workflow-index/workflow-dependency.controller.d.ts +1 -4
- package/dist/modules/workflow-index/workflow-dependency.controller.js +2 -13
- package/dist/modules/workflow-index/workflow-dependency.controller.js.map +1 -1
- package/dist/node-catalog/node-catalog.service.d.ts +1 -2
- package/dist/node-catalog/node-catalog.service.js +6 -10
- package/dist/node-catalog/node-catalog.service.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.js +19 -11
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/oauth/oauth-jwe-service.proxy.d.ts +12 -2
- package/dist/oauth/oauth-jwe-service.proxy.js +5 -0
- package/dist/oauth/oauth-jwe-service.proxy.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +6 -1
- package/dist/oauth/oauth.service.js +42 -4
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/permissions.ee/check-access.d.ts +2 -2
- package/dist/permissions.ee/check-access.js +15 -11
- package/dist/permissions.ee/check-access.js.map +1 -1
- package/dist/posthog/index.d.ts +2 -0
- package/dist/posthog/index.js +28 -6
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +10 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +42 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -0
- package/dist/public-api/v1/openapi.yml +55 -0
- package/dist/requests.d.ts +1 -1
- package/dist/scaling/constants.js +3 -0
- package/dist/scaling/constants.js.map +1 -1
- package/dist/scaling/multi-main-setup.ee.d.ts +12 -7
- package/dist/scaling/multi-main-setup.ee.js +125 -22
- package/dist/scaling/multi-main-setup.ee.js.map +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.js +3 -4
- package/dist/server.js.map +1 -1
- package/dist/services/dynamic-node-parameters.service.d.ts +0 -1
- package/dist/services/dynamic-node-parameters.service.js +6 -14
- package/dist/services/dynamic-node-parameters.service.js.map +1 -1
- package/dist/services/frontend.service.js +1 -1
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/import.service.js +3 -1
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/proxy-token-manager.js +2 -13
- package/dist/services/proxy-token-manager.js.map +1 -1
- package/dist/services/runtime-credential-proxy.service.d.ts +9 -0
- package/dist/services/runtime-credential-proxy.service.js +29 -0
- package/dist/services/runtime-credential-proxy.service.js.map +1 -0
- package/dist/services/url.service.d.ts +1 -0
- package/dist/services/url.service.js +3 -0
- package/dist/services/url.service.js.map +1 -1
- package/dist/telemetry/index.d.ts +4 -1
- package/dist/telemetry/index.js +16 -8
- package/dist/telemetry/index.js.map +1 -1
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +10 -0
- package/dist/utils.js.map +1 -1
- package/dist/webhooks/live-webhooks.js +2 -2
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +1 -1
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +3 -1
- package/dist/workflow-execute-additional-data.js +26 -3
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +3 -1
- package/dist/workflow-helpers.js +39 -5
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-hook-context.service.d.ts +6 -0
- package/dist/workflow-hook-context.service.js +32 -0
- package/dist/workflow-hook-context.service.js.map +1 -0
- package/dist/workflow-runner.js +2 -1
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/utils.d.ts +3 -0
- package/dist/workflows/utils.js +19 -0
- package/dist/workflows/utils.js.map +1 -1
- package/dist/workflows/workflow-creation.service.js +4 -2
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-execution.service.d.ts +4 -3
- package/dist/workflows/workflow-execution.service.js +8 -3
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +6 -2
- package/dist/workflows/workflow-finder.service.js +18 -0
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.controller.d.ts +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.d.ts +2 -1
- package/dist/workflows/workflow-history/workflow-history.service.js +1 -0
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.d.ts +3 -1
- package/dist/workflows/workflow-validation.service.js +6 -3
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +3 -3
- package/dist/workflows/workflow.service.js +26 -4
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +31 -21
- package/dist/workflows/workflows.controller.js +6 -2
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +36 -34
- package/dist/modules/agents/entities/agent-published-version.entity.js.map +0 -1
- package/dist/modules/agents/repositories/agent-published-version.repository.d.ts +0 -20
- package/dist/modules/agents/repositories/agent-published-version.repository.js.map +0 -1
- package/dist/modules/inbound-secrets/inbound-secrets-context-hook.js.map +0 -1
- package/dist/modules/inbound-secrets/inbound-secrets.config.d.ts +0 -3
- package/dist/modules/inbound-secrets/inbound-secrets.config.js.map +0 -1
- package/dist/modules/inbound-secrets/inbound-secrets.module.js.map +0 -1
- package/dist/modules/inbound-secrets/inbound-secrets.schemas.d.ts +0 -3
- package/dist/modules/inbound-secrets/inbound-secrets.schemas.js +0 -6
- package/dist/modules/inbound-secrets/inbound-secrets.schemas.js.map +0 -1
- package/dist/modules/inbound-secrets/inbound-secrets.service.d.ts +0 -17
- package/dist/modules/inbound-secrets/inbound-secrets.service.js.map +0 -1
- package/dist/modules/inbound-secrets/path-traversal.js.map +0 -1
- package/dist/modules/instance-ai/compaction.service.d.ts +0 -24
- package/dist/modules/instance-ai/compaction.service.js +0 -213
- package/dist/modules/instance-ai/compaction.service.js.map +0 -1
- package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.d.ts +0 -33
- package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.js +0 -145
- package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.js.map +0 -1
- package/dist/modules/instance-ai/entities/instance-ai-workflow-snapshot.entity.d.ts +0 -8
- package/dist/modules/instance-ai/entities/instance-ai-workflow-snapshot.entity.js.map +0 -1
- package/dist/modules/instance-ai/repositories/instance-ai-observational-memory.repository.d.ts +0 -5
- package/dist/modules/instance-ai/repositories/instance-ai-observational-memory.repository.js.map +0 -1
- package/dist/modules/instance-ai/repositories/instance-ai-workflow-snapshot.repository.d.ts +0 -5
- package/dist/modules/instance-ai/repositories/instance-ai-workflow-snapshot.repository.js.map +0 -1
- package/dist/modules/instance-ai/snapshot-pruning.service.d.ts +0 -17
- package/dist/modules/instance-ai/snapshot-pruning.service.js +0 -89
- package/dist/modules/instance-ai/snapshot-pruning.service.js.map +0 -1
- package/dist/modules/instance-ai/storage/typeorm-composite-store.d.ts +0 -9
- package/dist/modules/instance-ai/storage/typeorm-composite-store.js +0 -33
- package/dist/modules/instance-ai/storage/typeorm-composite-store.js.map +0 -1
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.d.ts +0 -96
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.js +0 -864
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.js.map +0 -1
- package/dist/modules/instance-ai/storage/typeorm-workflows-storage.d.ts +0 -44
- package/dist/modules/instance-ai/storage/typeorm-workflows-storage.js +0 -156
- package/dist/modules/instance-ai/storage/typeorm-workflows-storage.js.map +0 -1
- package/dist/scaling/multi-main-setup-legacy.d.ts +0 -25
- package/dist/scaling/multi-main-setup-legacy.js +0 -75
- package/dist/scaling/multi-main-setup-legacy.js.map +0 -1
- package/dist/scaling/multi-main-setup-v2.d.ts +0 -25
- package/dist/scaling/multi-main-setup-v2.js +0 -143
- package/dist/scaling/multi-main-setup-v2.js.map +0 -1
- package/dist/scaling/multi-main-setup.types.d.ts +0 -6
- package/dist/scaling/multi-main-setup.types.js.map +0 -1
- /package/dist/modules/{inbound-secrets → runtime-credentials}/path-traversal.d.ts +0 -0
- /package/dist/modules/{inbound-secrets → runtime-credentials}/path-traversal.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0",
|
|
4
4
|
"description": "n8n Workflow Automation Tool",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"workflow"
|
|
17
17
|
],
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": ">=22.
|
|
19
|
+
"node": ">=22.22"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"bin",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"mjml": "^4.15.3",
|
|
58
58
|
"openapi-types": "^12.1.3",
|
|
59
59
|
"ts-essentials": "^7.0.3",
|
|
60
|
+
"@n8n/backend-test-utils": "1.23.0",
|
|
60
61
|
"@n8n/typescript-config": "1.4.0",
|
|
61
|
-
"@n8n/backend-test-utils": "1.22.2",
|
|
62
62
|
"n8n-containers": "1.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@1password/connect": "1.4.2",
|
|
66
|
-
"@ai-sdk/anthropic": "
|
|
66
|
+
"@ai-sdk/anthropic": "3.0.58",
|
|
67
67
|
"@apidevtools/json-schema-ref-parser": "12.0.2",
|
|
68
68
|
"@aws-sdk/client-secrets-manager": "3.808.0",
|
|
69
69
|
"@azure/identity": "4.13.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@rudderstack/rudder-sdk-node": "3.0.5",
|
|
90
90
|
"@sentry/node": "^10.36.0",
|
|
91
91
|
"aws4": "1.11.0",
|
|
92
|
-
"axios": "1.16.
|
|
92
|
+
"axios": "1.16.1",
|
|
93
93
|
"bcryptjs": "2.4.3",
|
|
94
94
|
"bull": "4.16.4",
|
|
95
95
|
"cache-manager": "5.2.3",
|
|
@@ -99,8 +99,9 @@
|
|
|
99
99
|
"class-validator": "0.14.0",
|
|
100
100
|
"compression": "1.8.1",
|
|
101
101
|
"convict": "6.2.5",
|
|
102
|
-
"cron": "4.4.0",
|
|
103
102
|
"cookie-parser": "1.4.7",
|
|
103
|
+
"cron": "4.4.0",
|
|
104
|
+
"csv-parse": "6.2.1",
|
|
104
105
|
"csrf": "3.1.0",
|
|
105
106
|
"dotenv": "17.2.3",
|
|
106
107
|
"express": "5.1.0",
|
|
@@ -140,14 +141,14 @@
|
|
|
140
141
|
"pg": "8.17.0",
|
|
141
142
|
"picocolors": "1.0.1",
|
|
142
143
|
"pkce-challenge": "5.0.0",
|
|
143
|
-
"posthog-node": "
|
|
144
|
+
"posthog-node": "5.33.4",
|
|
144
145
|
"prettier": "^3.6.2",
|
|
145
146
|
"prom-client": "15.1.3",
|
|
146
147
|
"psl": "1.9.0",
|
|
147
148
|
"raw-body": "3.0.0",
|
|
148
149
|
"reflect-metadata": "0.2.2",
|
|
149
150
|
"replacestream": "4.0.3",
|
|
150
|
-
"samlify": "2.
|
|
151
|
+
"samlify": "2.13.0",
|
|
151
152
|
"semver": "7.5.4",
|
|
152
153
|
"shelljs": "0.8.5",
|
|
153
154
|
"simple-git": "3.36.0",
|
|
@@ -156,10 +157,11 @@
|
|
|
156
157
|
"sshpk": "1.18.0",
|
|
157
158
|
"sucrase": "3.35.0",
|
|
158
159
|
"swagger-ui-express": "5.0.1",
|
|
160
|
+
"tar": "^7.5.11",
|
|
159
161
|
"undici": "^7.16.0",
|
|
160
162
|
"uuid": "10.0.0",
|
|
161
163
|
"validator": "13.15.22",
|
|
162
|
-
"ws": "8.
|
|
164
|
+
"ws": "8.20.1",
|
|
163
165
|
"xml2js": "0.6.2",
|
|
164
166
|
"xmllint-wasm": "3.0.1",
|
|
165
167
|
"xss": "1.0.15",
|
|
@@ -167,32 +169,32 @@
|
|
|
167
169
|
"yargs-parser": "21.1.1",
|
|
168
170
|
"zod": "3.25.67",
|
|
169
171
|
"zod-to-json-schema": "3.23.3",
|
|
170
|
-
"@n8n/agents": "0.
|
|
171
|
-
"@n8n/ai-
|
|
172
|
-
"@n8n/
|
|
173
|
-
"@n8n/
|
|
174
|
-
"@n8n/
|
|
175
|
-
"@n8n/
|
|
176
|
-
"@n8n/
|
|
177
|
-
"@n8n/
|
|
178
|
-
"@n8n/config": "2.
|
|
179
|
-
"@n8n/constants": "0.
|
|
180
|
-
"@n8n/
|
|
172
|
+
"@n8n/agents": "0.9.0",
|
|
173
|
+
"@n8n/ai-utilities": "0.17.0",
|
|
174
|
+
"@n8n/ai-node-sdk": "0.14.0",
|
|
175
|
+
"@n8n/ai-workflow-builder": "1.23.0",
|
|
176
|
+
"@n8n/api-types": "1.23.0",
|
|
177
|
+
"@n8n/backend-common": "1.23.0",
|
|
178
|
+
"@n8n/chat-hub": "1.16.0",
|
|
179
|
+
"@n8n/client-oauth2": "1.7.0",
|
|
180
|
+
"@n8n/config": "2.22.0",
|
|
181
|
+
"@n8n/constants": "0.25.0",
|
|
182
|
+
"@n8n/db": "1.23.0",
|
|
183
|
+
"@n8n/decorators": "1.23.0",
|
|
181
184
|
"@n8n/di": "0.12.0",
|
|
185
|
+
"@n8n/expression-runtime": "0.15.0",
|
|
182
186
|
"@n8n/errors": "0.8.0",
|
|
183
|
-
"@n8n/
|
|
184
|
-
"@n8n/n8n-nodes-langchain": "2.
|
|
185
|
-
"@n8n/
|
|
186
|
-
"@n8n/
|
|
187
|
-
"@n8n/
|
|
188
|
-
"
|
|
189
|
-
"@n8n/
|
|
190
|
-
"
|
|
191
|
-
"n8n-
|
|
192
|
-
"n8n-
|
|
193
|
-
"
|
|
194
|
-
"n8n-nodes-base": "2.22.1",
|
|
195
|
-
"n8n-workflow": "2.22.1"
|
|
187
|
+
"@n8n/permissions": "0.61.0",
|
|
188
|
+
"@n8n/n8n-nodes-langchain": "2.23.0",
|
|
189
|
+
"@n8n/task-runner": "2.23.0",
|
|
190
|
+
"@n8n/utils": "1.32.0",
|
|
191
|
+
"@n8n/syslog-client": "1.4.0",
|
|
192
|
+
"n8n-core": "2.23.0",
|
|
193
|
+
"@n8n/workflow-sdk": "0.16.0",
|
|
194
|
+
"n8n-workflow": "2.23.0",
|
|
195
|
+
"n8n-nodes-base": "2.23.0",
|
|
196
|
+
"@n8n/instance-ai": "1.8.0",
|
|
197
|
+
"n8n-editor-ui": "2.23.0"
|
|
196
198
|
},
|
|
197
199
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
198
200
|
"homepage": "https://n8n.io",
|
|
@@ -229,7 +231,7 @@
|
|
|
229
231
|
"test:postgres:migrations": "N8N_LOG_LEVEL=silent DB_TYPE=postgresdb DB_POSTGRESDB_SCHEMA=alt_schema DB_TABLE_PREFIX=test_ jest --config=jest.config.migration.js --no-coverage",
|
|
230
232
|
"test:postgres:migrations:tc": "N8N_LOG_LEVEL=silent DB_TYPE=postgresdb DB_POSTGRESDB_SCHEMA=alt_schema DB_TABLE_PREFIX=test_ jest --config=jest.config.migration.testcontainers.js --no-coverage",
|
|
231
233
|
"test:postgres:tc": "N8N_LOG_LEVEL=silent jest --config=jest.config.integration.testcontainers.js --no-coverage",
|
|
232
|
-
"test:postgres:integration:tc": "N8N_LOG_LEVEL=silent jest --config=jest.config.integration.testcontainers.js --
|
|
234
|
+
"test:postgres:integration:tc": "N8N_LOG_LEVEL=silent jest --config=jest.config.integration.testcontainers.js --testPathIgnorePatterns=/test/migration/",
|
|
233
235
|
"test:mariadb": "echo true",
|
|
234
236
|
"test:win": "set N8N_LOG_LEVEL=silent&& set DB_SQLITE_POOL_SIZE=4&& set DB_TYPE=sqlite&& jest",
|
|
235
237
|
"test:dev:win": "set N8N_LOG_LEVEL=silent&& set DB_SQLITE_POOL_SIZE=4&& set DB_TYPE=sqlite&& jest --watch",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-published-version.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-published-version.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gCAA2D;AAC3D,0CAQsB;AAKf,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,mBAAc;CA6CxD,CAAA;AA7CY,sDAAqB;AAEjC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDAC/B;AAIhB;IAFC,IAAA,kBAAQ,EAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC1C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;oDACT;AAGvB;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAA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
|
-
import { AgentPublishedVersion } from '../entities/agent-published-version.entity';
|
|
4
|
-
import type { Agent } from '../entities/agent.entity';
|
|
5
|
-
import type { AgentJsonConfig } from '@n8n/api-types';
|
|
6
|
-
export declare class AgentPublishedVersionRepository extends Repository<AgentPublishedVersion> {
|
|
7
|
-
constructor(dataSource: DataSource);
|
|
8
|
-
savePublishedVersion(data: {
|
|
9
|
-
agentId: string;
|
|
10
|
-
schema: AgentJsonConfig | null;
|
|
11
|
-
tools: Agent['tools'] | null;
|
|
12
|
-
skills: Agent['skills'] | null;
|
|
13
|
-
publishedFromVersionId: string;
|
|
14
|
-
model: string | null;
|
|
15
|
-
provider: string | null;
|
|
16
|
-
credentialId: string | null;
|
|
17
|
-
publishedById: string;
|
|
18
|
-
}, trx?: EntityManager): Promise<AgentPublishedVersion>;
|
|
19
|
-
deleteByAgentId(agentId: string, trx?: EntityManager): Promise<void>;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-published-version.repository.js","sourceRoot":"","sources":["../../../../src/modules/agents/repositories/agent-published-version.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAkC;AAElC,0CAAsD;AAGtD,+FAAmF;AAK5E,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,oBAAiC;IACrF,YAAY,UAAsB;QACjC,KAAK,CAAC,sDAAqB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAClD,CAAC;IAQD,KAAK,CAAC,oBAAoB,CACzB,IAUC,EACD,GAAmB;QAEnB,MAAM,IAAI,GAAG,GAAG,EAAE,aAAa,CAAC,sDAAqB,CAAC,IAAI,IAAI,CAAC;QAM/D,MAAM,IAAI,CAAC,MAAM,CAChB,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,EAAmD,EACnF,CAAC,SAAS,CAAC,CACX,CAAC;QACF,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,OAAe,EAAE,GAAmB;QACzD,MAAM,IAAI,GAAG,GAAG,EAAE,aAAa,CAAC,sDAAqB,CAAC,IAAI,IAAI,CAAC;QAC/D,MAAM,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAChC,CAAC;CACD,CAAA;AA1CY,0EAA+B;0CAA/B,+BAA+B;IAD3C,IAAA,YAAO,GAAE;qCAEe,oBAAU;GADtB,+BAA+B,CA0C3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-secrets-context-hook.js","sourceRoot":"","sources":["../../../src/modules/inbound-secrets/inbound-secrets-context-hook.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAMyB;AAEzB,uEAAkE;AAK3D,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACpC,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;QAEzE,oBAAe,GAAoB;YAClC,IAAI,EAAE,0BAA0B;SAChC,CAAC;IAJ0E,CAAC;IAM7E,yBAAyB,CAAC,SAAiB;QAE1C,OAAO,KAAK,CAAC;IACd,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAoC;QACjD,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CACzE,OAAO,CAAC,YAAY,IAAI,EAAE,EAC1B,OAAO,CAAC,WAAW,CAAC,IAAI,EACxB,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CACrC,CAAC;QAEF,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;YAAE,OAAO,EAAE,YAAY,EAAE,CAAC;QAErF,OAAO;YACN,YAAY;YACZ,aAAa,EAAE;gBACd,eAAe,EAAE;oBAChB,OAAO,EAAE,CAAC;oBACV,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,eAAe,EAAE;iBAC1D;aACD;SACD,CAAC;IACH,CAAC;IAGO,uBAAuB,CAAC,OAAoC;QACnE,IAAI,CAAC;YACJ,OAAO,CACN,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,mBAAmB,CAC7C,OAAO,CAAC,WAAW,CAAC,IAAI,EACxB,OAAO,CAAC,WAAW,CAAC,WAAW,CAC/B,CAAC,WAAW,CAAC,qBAAqB,IAAI,EAAE,CACzC,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACR,OAAO,EAAE,CAAC;QACX,CAAC;IACF,CAAC;CACD,CAAA;AA7CY,4DAAwB;mCAAxB,wBAAwB;IAHpC,IAAA,qCAAwB,EAAC;QACzB,aAAa,EAAE,IAAI;KACnB,CAAC;qCAEmD,+CAAqB;GAD7D,wBAAwB,CA6CpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-secrets.config.js","sourceRoot":"","sources":["../../../src/modules/inbound-secrets/inbound-secrets.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAA0C;AAGnC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAA1B;QAEN,wBAAmB,GAAW,IAAI,CAAC;IACpC,CAAC;CAAA,CAAA;AAHY,oDAAoB;AAEhC;IADC,IAAA,YAAG,EAAC,oCAAoC,CAAC;;iEACP;+BAFvB,oBAAoB;IADhC,eAAM;GACM,oBAAoB,CAGhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-secrets.module.js","sourceRoot":"","sources":["../../../src/modules/inbound-secrets/inbound-secrets.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAAgD;AAChD,gCAAoC;AAEpC,SAAS,oBAAoB;IAC5B,OAAO,OAAO,CAAC,GAAG,CAAC,4BAA4B,KAAK,MAAM,CAAC;AAC5D,CAAC;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAChC,KAAK,CAAC,IAAI;QACT,IAAI,CAAC,oBAAoB,EAAE;YAAE,OAAO;QAEpC,MAAM,EAAE,qBAAqB,EAAE,GAAG,wDAAa,2BAA2B,GAAC,CAAC;QAC5E,cAAS,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,IAAI,EAAE,CAAC;QAE5C,wDAAa,gCAAgC,GAAC,CAAC;IAChD,CAAC;CACD,CAAA;AATY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,0BAAa,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;GAC9B,oBAAoB,CAShC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sensitiveFieldRulesSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.sensitiveFieldRulesSchema = zod_1.z.record(zod_1.z.string().min(1), zod_1.z.array(zod_1.z.string().min(1)));
|
|
6
|
-
//# sourceMappingURL=inbound-secrets.schemas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-secrets.schemas.js","sourceRoot":"","sources":["../../../src/modules/inbound-secrets/inbound-secrets.schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAgBX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Logger } from '@n8n/backend-common';
|
|
2
|
-
import { INodeExecutionData, ISecureArtifactsV1 } from 'n8n-workflow';
|
|
3
|
-
import { InboundSecretsConfig } from './inbound-secrets.config';
|
|
4
|
-
type ArtifactItem = ISecureArtifactsV1['artifacts'][string][number];
|
|
5
|
-
export type StripResult = {
|
|
6
|
-
triggerItems: INodeExecutionData[];
|
|
7
|
-
artifactsByItem: ArtifactItem[];
|
|
8
|
-
};
|
|
9
|
-
export declare class InboundSecretsService {
|
|
10
|
-
private readonly logger;
|
|
11
|
-
private readonly config;
|
|
12
|
-
private sensitiveFieldRules;
|
|
13
|
-
constructor(logger: Logger, config: InboundSecretsConfig);
|
|
14
|
-
init(): void;
|
|
15
|
-
strip(items: INodeExecutionData[], triggerNodeType: string, descriptionPaths?: string[]): StripResult;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-secrets.service.js","sourceRoot":"","sources":["../../../src/modules/inbound-secrets/inbound-secrets.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAA6C;AAC7C,gCAAkC;AAClC,+CAAiF;AAEjF,qEAAgE;AAChE,uEAA2F;AAC3F,qDAAmD;AAW5C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAGjC,YACkB,MAAc,EACd,MAA4B;QAD5B,WAAM,GAAN,MAAM,CAAQ;QACd,WAAM,GAAN,MAAM,CAAsB;QAJtC,wBAAmB,GAAwB,EAAE,CAAC;IAKnD,CAAC;IAEJ,IAAI;QACH,MAAM,aAAa,GAAG,IAAA,wBAAS,EAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE;YAChE,YAAY,EAAE,+EAA+E;SAC7F,CAAC,CAAC;QACH,MAAM,WAAW,GAAG,mDAAyB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QACvE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;YAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CAChB,6EAA6E,EAC7E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
2
|
-
import { Logger } from '@n8n/backend-common';
|
|
3
|
-
import { GlobalConfig } from '@n8n/config';
|
|
4
|
-
import type { ModelConfig } from '@n8n/instance-ai';
|
|
5
|
-
import { TypeORMMemoryStorage } from './storage/typeorm-memory-storage';
|
|
6
|
-
interface PendingCompactionInput {
|
|
7
|
-
label: string;
|
|
8
|
-
text: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class InstanceAiCompactionService {
|
|
11
|
-
private readonly logger;
|
|
12
|
-
private readonly memoryStorage;
|
|
13
|
-
private readonly maxContextWindowTokensCap;
|
|
14
|
-
constructor(logger: Logger, memoryStorage: TypeORMMemoryStorage, globalConfig: GlobalConfig);
|
|
15
|
-
prepareCompactedContext(threadId: string, memory: Memory, modelId: ModelConfig, lastMessages: number, compactionThreshold?: number, currentInput?: PendingCompactionInput): Promise<string | null>;
|
|
16
|
-
private formatCachedSummaryBlock;
|
|
17
|
-
private extractRawText;
|
|
18
|
-
private extractHighSignalContent;
|
|
19
|
-
private extractTextFromContent;
|
|
20
|
-
private formatSummaryBlock;
|
|
21
|
-
private parseMetadata;
|
|
22
|
-
private saveMetadata;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.InstanceAiCompactionService = void 0;
|
|
13
|
-
const backend_common_1 = require("@n8n/backend-common");
|
|
14
|
-
const config_1 = require("@n8n/config");
|
|
15
|
-
const di_1 = require("@n8n/di");
|
|
16
|
-
const instance_ai_1 = require("@n8n/instance-ai");
|
|
17
|
-
const context_limits_1 = require("../../modules/chat-hub/context-limits");
|
|
18
|
-
const typeorm_memory_storage_1 = require("./storage/typeorm-memory-storage");
|
|
19
|
-
const METADATA_KEY = 'instanceAiConversationSummary';
|
|
20
|
-
const DEFAULT_CONTEXT_WINDOW = 128_000;
|
|
21
|
-
function estimateTokens(text) {
|
|
22
|
-
return Math.ceil(text.length / 4);
|
|
23
|
-
}
|
|
24
|
-
function getContextWindowForModel(modelId) {
|
|
25
|
-
const raw = typeof modelId === 'string'
|
|
26
|
-
? modelId
|
|
27
|
-
: 'specificationVersion' in modelId
|
|
28
|
-
? `${modelId.provider.split('.')[0]}/${modelId.modelId}`
|
|
29
|
-
: modelId.id;
|
|
30
|
-
const slashIndex = raw.indexOf('/');
|
|
31
|
-
if (slashIndex < 0) {
|
|
32
|
-
for (const providerModels of Object.values(context_limits_1.maxContextWindowTokens)) {
|
|
33
|
-
if (providerModels[raw])
|
|
34
|
-
return providerModels[raw];
|
|
35
|
-
for (const [registryModel, tokens] of Object.entries(providerModels)) {
|
|
36
|
-
if (tokens > 0 && registryModel.startsWith(raw))
|
|
37
|
-
return tokens;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return DEFAULT_CONTEXT_WINDOW;
|
|
41
|
-
}
|
|
42
|
-
const provider = raw.slice(0, slashIndex);
|
|
43
|
-
const model = raw.slice(slashIndex + 1);
|
|
44
|
-
const providerModels = context_limits_1.maxContextWindowTokens[provider];
|
|
45
|
-
if (!providerModels)
|
|
46
|
-
return DEFAULT_CONTEXT_WINDOW;
|
|
47
|
-
if (providerModels[model])
|
|
48
|
-
return providerModels[model];
|
|
49
|
-
for (const [registryModel, tokens] of Object.entries(providerModels)) {
|
|
50
|
-
if (tokens > 0 && registryModel.startsWith(model))
|
|
51
|
-
return tokens;
|
|
52
|
-
}
|
|
53
|
-
return DEFAULT_CONTEXT_WINDOW;
|
|
54
|
-
}
|
|
55
|
-
const FIXED_CONTEXT_OVERHEAD_TOKENS = 8_000;
|
|
56
|
-
const MIN_UNSUMMARIZED_TOKENS = 500;
|
|
57
|
-
let InstanceAiCompactionService = class InstanceAiCompactionService {
|
|
58
|
-
constructor(logger, memoryStorage, globalConfig) {
|
|
59
|
-
this.logger = logger;
|
|
60
|
-
this.memoryStorage = memoryStorage;
|
|
61
|
-
this.maxContextWindowTokensCap = globalConfig.instanceAi.maxContextWindowTokens;
|
|
62
|
-
}
|
|
63
|
-
async prepareCompactedContext(threadId, memory, modelId, lastMessages, compactionThreshold = 0.8, currentInput) {
|
|
64
|
-
try {
|
|
65
|
-
const recentTail = Math.max(0, lastMessages);
|
|
66
|
-
const currentInputTokens = currentInput ? estimateTokens(currentInput.text) : 0;
|
|
67
|
-
const { messages: allMessages } = await this.memoryStorage.listMessages({
|
|
68
|
-
threadId,
|
|
69
|
-
perPage: false,
|
|
70
|
-
orderBy: { field: 'createdAt', direction: 'ASC' },
|
|
71
|
-
});
|
|
72
|
-
const rawMessageTokens = allMessages.reduce((sum, m) => sum + estimateTokens(this.extractRawText(m)), 0);
|
|
73
|
-
const totalTokens = FIXED_CONTEXT_OVERHEAD_TOKENS + rawMessageTokens + currentInputTokens;
|
|
74
|
-
const modelContextWindow = getContextWindowForModel(modelId);
|
|
75
|
-
const contextWindow = this.maxContextWindowTokensCap > 0
|
|
76
|
-
? Math.min(modelContextWindow, this.maxContextWindowTokensCap)
|
|
77
|
-
: modelContextWindow;
|
|
78
|
-
const threshold = contextWindow * compactionThreshold;
|
|
79
|
-
const thread = await memory.getThreadById({ threadId });
|
|
80
|
-
const existing = this.parseMetadata(thread?.metadata?.[METADATA_KEY]);
|
|
81
|
-
if (allMessages.length <= recentTail) {
|
|
82
|
-
return this.formatCachedSummaryBlock(existing);
|
|
83
|
-
}
|
|
84
|
-
if (totalTokens < threshold) {
|
|
85
|
-
return this.formatCachedSummaryBlock(existing);
|
|
86
|
-
}
|
|
87
|
-
const prefixEnd = allMessages.length - recentTail;
|
|
88
|
-
const prefix = allMessages.slice(0, prefixEnd);
|
|
89
|
-
let unsummarizedStart = 0;
|
|
90
|
-
if (existing?.upToMessageId) {
|
|
91
|
-
const idx = prefix.findIndex((m) => m.id === existing.upToMessageId);
|
|
92
|
-
if (idx >= 0) {
|
|
93
|
-
unsummarizedStart = idx + 1;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
const unsummarizedSlice = prefix.slice(unsummarizedStart);
|
|
97
|
-
const unsummarizedTokens = unsummarizedSlice.reduce((sum, m) => sum + estimateTokens(this.extractRawText(m)), 0);
|
|
98
|
-
if (unsummarizedTokens < MIN_UNSUMMARIZED_TOKENS) {
|
|
99
|
-
return this.formatCachedSummaryBlock(existing);
|
|
100
|
-
}
|
|
101
|
-
const messageBatch = this.extractHighSignalContent(unsummarizedSlice);
|
|
102
|
-
if (messageBatch.length === 0) {
|
|
103
|
-
return this.formatCachedSummaryBlock(existing);
|
|
104
|
-
}
|
|
105
|
-
const lastCompactedMessage = unsummarizedSlice[unsummarizedSlice.length - 1];
|
|
106
|
-
const summary = await (0, instance_ai_1.generateCompactionSummary)(modelId, {
|
|
107
|
-
previousSummary: existing?.summary ?? null,
|
|
108
|
-
messageBatch,
|
|
109
|
-
});
|
|
110
|
-
const newMetadata = {
|
|
111
|
-
version: (existing?.version ?? 0) + 1,
|
|
112
|
-
upToMessageId: lastCompactedMessage.id,
|
|
113
|
-
summary,
|
|
114
|
-
updatedAt: new Date().toISOString(),
|
|
115
|
-
};
|
|
116
|
-
await this.saveMetadata(threadId, memory, newMetadata);
|
|
117
|
-
return this.formatSummaryBlock(summary);
|
|
118
|
-
}
|
|
119
|
-
catch (error) {
|
|
120
|
-
this.logger.warn('Conversation compaction failed, continuing without summary', {
|
|
121
|
-
threadId,
|
|
122
|
-
error: error instanceof Error ? error.message : String(error),
|
|
123
|
-
});
|
|
124
|
-
return null;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
formatCachedSummaryBlock(existing) {
|
|
128
|
-
if (existing?.summary) {
|
|
129
|
-
return this.formatSummaryBlock(existing.summary);
|
|
130
|
-
}
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
extractRawText(msg) {
|
|
134
|
-
const content = msg.content;
|
|
135
|
-
if (typeof content === 'string')
|
|
136
|
-
return content;
|
|
137
|
-
return JSON.stringify(content);
|
|
138
|
-
}
|
|
139
|
-
extractHighSignalContent(messages) {
|
|
140
|
-
const result = [];
|
|
141
|
-
for (const msg of messages) {
|
|
142
|
-
if (msg.role !== 'user' && msg.role !== 'assistant')
|
|
143
|
-
continue;
|
|
144
|
-
const text = this.extractTextFromContent(msg.content);
|
|
145
|
-
if (!text)
|
|
146
|
-
continue;
|
|
147
|
-
result.push({ role: msg.role, text });
|
|
148
|
-
}
|
|
149
|
-
return result;
|
|
150
|
-
}
|
|
151
|
-
extractTextFromContent(content) {
|
|
152
|
-
if (typeof content === 'string')
|
|
153
|
-
return content;
|
|
154
|
-
const inner = content?.content;
|
|
155
|
-
if (typeof inner === 'string')
|
|
156
|
-
return inner;
|
|
157
|
-
if (Array.isArray(inner)) {
|
|
158
|
-
const textParts = [];
|
|
159
|
-
for (const part of inner) {
|
|
160
|
-
if (typeof part === 'string') {
|
|
161
|
-
textParts.push(part);
|
|
162
|
-
}
|
|
163
|
-
else if (isTextPart(part)) {
|
|
164
|
-
textParts.push(part.text);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return textParts.join('\n');
|
|
168
|
-
}
|
|
169
|
-
return '';
|
|
170
|
-
}
|
|
171
|
-
formatSummaryBlock(summary) {
|
|
172
|
-
return `<conversation-summary>\n${summary}\n</conversation-summary>`;
|
|
173
|
-
}
|
|
174
|
-
parseMetadata(raw) {
|
|
175
|
-
if (!raw || typeof raw !== 'object')
|
|
176
|
-
return null;
|
|
177
|
-
const obj = raw;
|
|
178
|
-
if (typeof obj.version === 'number' &&
|
|
179
|
-
typeof obj.upToMessageId === 'string' &&
|
|
180
|
-
typeof obj.summary === 'string' &&
|
|
181
|
-
typeof obj.updatedAt === 'string') {
|
|
182
|
-
return obj;
|
|
183
|
-
}
|
|
184
|
-
return null;
|
|
185
|
-
}
|
|
186
|
-
async saveMetadata(threadId, memory, metadata) {
|
|
187
|
-
await (0, instance_ai_1.patchThread)(memory, {
|
|
188
|
-
threadId,
|
|
189
|
-
update: ({ metadata: currentMetadata }) => ({
|
|
190
|
-
metadata: {
|
|
191
|
-
...currentMetadata,
|
|
192
|
-
[METADATA_KEY]: metadata,
|
|
193
|
-
},
|
|
194
|
-
}),
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
exports.InstanceAiCompactionService = InstanceAiCompactionService;
|
|
199
|
-
exports.InstanceAiCompactionService = InstanceAiCompactionService = __decorate([
|
|
200
|
-
(0, di_1.Service)(),
|
|
201
|
-
__metadata("design:paramtypes", [backend_common_1.Logger,
|
|
202
|
-
typeorm_memory_storage_1.TypeORMMemoryStorage,
|
|
203
|
-
config_1.GlobalConfig])
|
|
204
|
-
], InstanceAiCompactionService);
|
|
205
|
-
function isTextPart(part) {
|
|
206
|
-
return (typeof part === 'object' &&
|
|
207
|
-
part !== null &&
|
|
208
|
-
'type' in part &&
|
|
209
|
-
part.type === 'text' &&
|
|
210
|
-
'text' in part &&
|
|
211
|
-
typeof part.text === 'string');
|
|
212
|
-
}
|
|
213
|
-
//# sourceMappingURL=compaction.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compaction.service.js","sourceRoot":"","sources":["../../../src/modules/instance-ai/compaction.service.ts"],"names":[],"mappings":";;;;;;;;;;;;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AAK,QAAQ;YAC/B,OAAO,GAAG,CAAC,SAAS,KAAK,QAAQ,EAChC,CAAC;YACF,OAAO,GAA6C,CAAC;QACtD,CAAC;QACD,OAAO,IAAI,CAAC;IACb,CAAC;IAEO,KAAK,CAAC,YAAY,CACzB,QAAgB,EAChB,MAAc,EACd,QAAqC;QAErC,MAAM,IAAA,yBAAW,EAAC,MAAM,EAAE;YACzB,QAAQ;YACR,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;gBAC3C,QAAQ,EAAE;oBACT,GAAG,eAAe;oBAClB,CAAC,YAAY,CAAC,EAAE,QAAQ;iBACxB;aACD,CAAC;SACF,CAAC,CAAC;IACJ,CAAC;CACD,CAAA;AAxNY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,YAAO,GAAE;qCAKiB,uBAAM;QACC,6CAAoB;QACtC,qBAAY;GANf,2BAA2B,CAwNvC;AAED,SAAS,UAAU,CAAC,IAAa;IAChC,OAAO,CACN,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,MAAM,IAAI,IAAI;QACb,IAAyB,CAAC,IAAI,KAAK,MAAM;QAC1C,MAAM,IAAI,IAAI;QACd,OAAQ,IAA0B,CAAC,IAAI,KAAK,QAAQ,CACpD,CAAC;AACH,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { WithTimestamps } from '@n8n/db';
|
|
2
|
-
export declare class InstanceAiObservationalMemory extends WithTimestamps {
|
|
3
|
-
id: string;
|
|
4
|
-
lookupKey: string;
|
|
5
|
-
scope: string;
|
|
6
|
-
threadId: string | null;
|
|
7
|
-
resourceId: string;
|
|
8
|
-
activeObservations: string;
|
|
9
|
-
originType: string;
|
|
10
|
-
config: string;
|
|
11
|
-
generationCount: number;
|
|
12
|
-
lastObservedAt: Date | null;
|
|
13
|
-
pendingMessageTokens: number;
|
|
14
|
-
totalTokensObserved: number;
|
|
15
|
-
observationTokenCount: number;
|
|
16
|
-
isObserving: boolean;
|
|
17
|
-
isReflecting: boolean;
|
|
18
|
-
observedMessageIds: string[] | null;
|
|
19
|
-
observedTimezone: string | null;
|
|
20
|
-
bufferedObservations: string | null;
|
|
21
|
-
bufferedObservationTokens: number | null;
|
|
22
|
-
bufferedMessageIds: string[] | null;
|
|
23
|
-
bufferedReflection: string | null;
|
|
24
|
-
bufferedReflectionTokens: number | null;
|
|
25
|
-
bufferedReflectionInputTokens: number | null;
|
|
26
|
-
reflectedObservationLineCount: number | null;
|
|
27
|
-
bufferedObservationChunks: unknown[] | null;
|
|
28
|
-
isBufferingObservation: boolean;
|
|
29
|
-
isBufferingReflection: boolean;
|
|
30
|
-
lastBufferedAtTokens: number;
|
|
31
|
-
lastBufferedAtTime: Date | null;
|
|
32
|
-
metadata: Record<string, unknown> | null;
|
|
33
|
-
}
|