n8n 2.34.4 → 2.35.1
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/active-workflow-manager.js +2 -14
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/agent-library-bundle.js +6 -6
- package/dist/build.tsbuildinfo +1 -1
- package/dist/controllers/ai.controller.js +3 -0
- package/dist/controllers/ai.controller.js.map +1 -1
- package/dist/controllers/role.controller.d.ts +0 -1
- package/dist/controllers/role.controller.js +6 -14
- package/dist/controllers/role.controller.js.map +1 -1
- package/dist/credentials/credentials.controller.d.ts +1 -1
- package/dist/credentials/credentials.controller.js +7 -1
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +2 -1
- package/dist/credentials/credentials.service.js +24 -0
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials-helper.js +4 -7
- package/dist/credentials-helper.js.map +1 -1
- package/dist/deprecation/deprecation.service.js +5 -0
- package/dist/deprecation/deprecation.service.js.map +1 -1
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +9 -0
- package/dist/events/relays/telemetry.event-relay.d.ts +4 -2
- package/dist/events/relays/telemetry.event-relay.js +23 -7
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execute-error-workflow.js +19 -5
- package/dist/execution-lifecycle/execute-error-workflow.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution-persistence.d.ts +6 -4
- package/dist/executions/execution-persistence.js +7 -14
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution.service.d.ts +31 -2
- package/dist/executions/execution.service.js +108 -1
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/middlewares/body-parser.js +3 -2
- package/dist/middlewares/body-parser.js.map +1 -1
- package/dist/middlewares/cors.js +1 -1
- package/dist/middlewares/cors.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-rating.service.d.ts +12 -15
- package/dist/modules/agent-evals/agent-eval-rating.service.js +33 -46
- package/dist/modules/agent-evals/agent-eval-rating.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-record-mappers.d.ts +3 -2
- package/dist/modules/agent-evals/agent-eval-record-mappers.js +13 -0
- package/dist/modules/agent-evals/agent-eval-record-mappers.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-runner.service.js +15 -7
- package/dist/modules/agent-evals/agent-eval-runner.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval.service.d.ts +8 -3
- package/dist/modules/agent-evals/agent-eval.service.js +6 -6
- package/dist/modules/agent-evals/agent-eval.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-evals-required-modules.js +2 -2
- package/dist/modules/agent-evals/agent-evals-required-modules.js.map +1 -1
- package/dist/modules/agent-evals/agent-evals.controller.d.ts +12 -4
- package/dist/modules/agent-evals/agent-evals.controller.js +50 -9
- package/dist/modules/agent-evals/agent-evals.controller.js.map +1 -1
- package/dist/modules/agents/agent-chat.controller.d.ts +3 -5
- package/dist/modules/agents/agent-chat.controller.js +19 -25
- package/dist/modules/agents/agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/agent-config.service.d.ts +5 -1
- package/dist/modules/agents/agent-config.service.js +10 -3
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-credential-index.listener.d.ts +11 -0
- package/dist/modules/agents/agent-credential-index.listener.js +55 -0
- package/dist/modules/agents/agent-credential-index.listener.js.map +1 -0
- package/dist/modules/agents/agent-credential-index.service.d.ts +14 -0
- package/dist/modules/agents/agent-credential-index.service.js +57 -0
- package/dist/modules/agents/agent-credential-index.service.js.map +1 -0
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +5 -0
- package/dist/modules/agents/agent-execution-orchestrator.service.js +89 -23
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-update-broadcaster.d.ts +20 -0
- package/dist/modules/agents/agent-execution-update-broadcaster.js +65 -0
- package/dist/modules/agents/agent-execution-update-broadcaster.js.map +1 -0
- package/dist/modules/agents/agent-execution.service.d.ts +30 -4
- package/dist/modules/agents/agent-execution.service.js +217 -46
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-management.service.d.ts +33 -0
- package/dist/modules/agents/agent-integration-management.service.js +80 -0
- package/dist/modules/agents/agent-integration-management.service.js.map +1 -0
- package/dist/modules/agents/agent-integration-persistence.service.d.ts +3 -1
- package/dist/modules/agents/agent-integration-persistence.service.js +6 -2
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
- package/dist/modules/agents/agent-integrations.controller.d.ts +4 -24
- package/dist/modules/agents/agent-integrations.controller.js +28 -114
- package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-interrupted-execution-sweeper.d.ts +11 -0
- package/dist/modules/agents/agent-interrupted-execution-sweeper.js +63 -0
- package/dist/modules/agents/agent-interrupted-execution-sweeper.js.map +1 -0
- package/dist/modules/agents/agent-model-catalog.service.d.ts +1 -0
- package/dist/modules/agents/agent-model-catalog.service.js +37 -8
- package/dist/modules/agents/agent-model-catalog.service.js.map +1 -1
- package/dist/modules/agents/agent-publish.service.d.ts +3 -1
- package/dist/modules/agents/agent-publish.service.js +8 -2
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-run-tracing.service.d.ts +1 -0
- package/dist/modules/agents/agent-run-tracing.service.js +4 -1
- package/dist/modules/agents/agent-run-tracing.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-cache.service.js +1 -1
- package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +3 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +14 -8
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-slack-integrations.controller.d.ts +23 -0
- package/dist/modules/agents/agent-slack-integrations.controller.js +98 -0
- package/dist/modules/agents/agent-slack-integrations.controller.js.map +1 -0
- package/dist/modules/agents/agent-test-run.service.d.ts +134 -0
- package/dist/modules/agents/agent-test-run.service.js +240 -0
- package/dist/modules/agents/agent-test-run.service.js.map +1 -0
- package/dist/modules/agents/agent-validation.service.d.ts +1 -0
- package/dist/modules/agents/agent-validation.service.js +32 -13
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +5 -1
- package/dist/modules/agents/agent-workflow-execution.service.js +137 -64
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +8 -0
- package/dist/modules/agents/agents.module.d.ts +3 -1
- package/dist/modules/agents/agents.module.js +35 -1
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +4 -2
- package/dist/modules/agents/agents.service.js +6 -2
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/attachable-workflows.service.d.ts +1 -0
- package/dist/modules/agents/attachable-workflows.service.js +2 -1
- package/dist/modules/agents/attachable-workflows.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +2 -2
- package/dist/modules/agents/builder/agents-builder-prompts.js +26 -7
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +4 -2
- package/dist/modules/agents/builder/agents-builder-tools.service.js +130 -2
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.d.ts +16 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js +69 -22
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-tool-names.d.ts +1 -0
- package/dist/modules/agents/builder/builder-tool-names.js +1 -0
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/interactive/finish-setup.tool.d.ts +1 -0
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js +4 -2
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +68 -2
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +1 -0
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.js +5 -2
- package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -1
- package/dist/modules/agents/builder/skills/external-services.skill.js +26 -2
- package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -1
- package/dist/modules/agents/entities/agent-credential-dependency.entity.d.ts +9 -0
- package/dist/modules/agents/entities/agent-credential-dependency.entity.js +40 -0
- package/dist/modules/agents/entities/agent-credential-dependency.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-execution.entity.d.ts +1 -1
- package/dist/modules/agents/entities/agent-execution.entity.js +2 -1
- package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
- package/dist/modules/agents/execution-recorder.d.ts +7 -1
- package/dist/modules/agents/execution-recorder.js +64 -8
- package/dist/modules/agents/execution-recorder.js.map +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.d.ts +6 -2
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +24 -3
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +3 -2
- package/dist/modules/agents/integrations/agent-chat-bridge.js +30 -13
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.d.ts +3 -2
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js +25 -12
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +38 -6
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-message-context.js +13 -6
- package/dist/modules/agents/integrations/agent-chat-message-context.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +7 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
- package/dist/modules/agents/integrations/callback-store.d.ts +13 -4
- package/dist/modules/agents/integrations/callback-store.js +44 -18
- package/dist/modules/agents/integrations/callback-store.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +7 -3
- package/dist/modules/agents/integrations/chat-integration.service.js +59 -22
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/component-mapper.d.ts +1 -1
- package/dist/modules/agents/integrations/component-mapper.js +1 -1
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
- package/dist/modules/agents/integrations/esm-loader.d.ts +1 -0
- package/dist/modules/agents/integrations/esm-loader.js +4 -0
- package/dist/modules/agents/integrations/esm-loader.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +2 -0
- package/dist/modules/agents/integrations/integration-action-executor.js +74 -20
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-definitions.js +35 -2
- package/dist/modules/agents/integrations/integration-tool-definitions.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-execution.js +10 -5
- package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-schema.js +8 -2
- package/dist/modules/agents/integrations/integration-tool-schema.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-types.d.ts +2 -0
- package/dist/modules/agents/integrations/n8n-memory.js +6 -7
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/discord-gateway.d.ts +32 -0
- package/dist/modules/agents/integrations/platforms/discord-gateway.js +138 -0
- package/dist/modules/agents/integrations/platforms/discord-gateway.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/discord-integration.d.ts +73 -0
- package/dist/modules/agents/integrations/platforms/discord-integration.js +364 -0
- package/dist/modules/agents/integrations/platforms/discord-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/discord-operations.d.ts +64 -0
- package/dist/modules/agents/integrations/platforms/discord-operations.js +176 -0
- package/dist/modules/agents/integrations/platforms/discord-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{slack-bridge-behavior.d.ts → slack/slack-bridge-behavior.d.ts} +3 -3
- package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{slack-integration.d.ts → slack/slack-integration.d.ts} +11 -6
- package/dist/modules/agents/integrations/platforms/{slack-integration.js → slack/slack-integration.js} +32 -23
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-manual-setup.service.d.ts +35 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-manual-setup.service.js +150 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-manual-setup.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.d.ts +36 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js +193 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-operations.d.ts +10 -0
- package/dist/modules/agents/integrations/platforms/{slack-operations.js → slack/slack-operations.js} +1 -57
- package/dist/modules/agents/integrations/platforms/slack/slack-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/telegram-bridge-behavior.js +6 -36
- package/dist/modules/agents/integrations/platforms/telegram-bridge-behavior.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +3 -2
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +14 -5
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/typing-indicator.d.ts +9 -0
- package/dist/modules/agents/integrations/platforms/typing-indicator.js +42 -0
- package/dist/modules/agents/integrations/platforms/typing-indicator.js.map +1 -0
- package/dist/modules/agents/integrations/recording/recording-adapter.js +11 -0
- package/dist/modules/agents/integrations/recording/recording-adapter.js.map +1 -1
- package/dist/modules/agents/json-config/node-tool-ai-gateway.service.d.ts +9 -0
- package/dist/modules/agents/json-config/node-tool-ai-gateway.service.js +34 -0
- package/dist/modules/agents/json-config/node-tool-ai-gateway.service.js.map +1 -0
- package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.d.ts +4 -0
- package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.js +152 -0
- package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.js.map +1 -0
- package/dist/modules/agents/repositories/agent-credential-dependency.repository.d.ts +12 -0
- package/dist/modules/agents/repositories/agent-credential-dependency.repository.js +92 -0
- package/dist/modules/agents/repositories/agent-credential-dependency.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-execution.repository.d.ts +7 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js +20 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent.repository.d.ts +2 -0
- package/dist/modules/agents/repositories/agent.repository.js +18 -0
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.d.ts +2 -0
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js +69 -5
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.js +5 -1
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +7 -4
- package/dist/modules/agents/tools/workflow-tool-factory.js +86 -41
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.d.ts +14 -0
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js +50 -0
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js.map +1 -0
- package/dist/modules/agents/tools/workflow-tool-workflow-resolver.d.ts +3 -3
- package/dist/modules/agents/tools/workflow-tool-workflow-resolver.js +28 -23
- package/dist/modules/agents/tools/workflow-tool-workflow-resolver.js.map +1 -1
- package/dist/modules/agents/utils/extract-agent-credential-ids.d.ts +1 -0
- package/dist/modules/agents/utils/extract-agent-credential-ids.js +41 -0
- package/dist/modules/agents/utils/extract-agent-credential-ids.js.map +1 -0
- package/dist/modules/agents/utils/node-tool-validation.js +2 -2
- package/dist/modules/agents/utils/node-tool-validation.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/unverified-packages.rule.d.ts +6 -2
- package/dist/modules/breaking-changes/rules/v3/unverified-packages.rule.js +26 -3
- package/dist/modules/breaking-changes/rules/v3/unverified-packages.rule.js.map +1 -1
- package/dist/modules/data-table/data-table-permissions.d.ts +5 -0
- package/dist/modules/data-table/data-table-permissions.js +14 -0
- package/dist/modules/data-table/data-table-permissions.js.map +1 -0
- package/dist/modules/data-table/data-table-proxy.service.js +2 -0
- package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
- package/dist/modules/data-table/data-table.controller.d.ts +1 -1
- package/dist/modules/data-table/data-table.controller.js +7 -19
- package/dist/modules/data-table/data-table.controller.js.map +1 -1
- package/dist/modules/data-table/data-table.service.d.ts +3 -0
- package/dist/modules/data-table/data-table.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.d.ts +1 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.js +8 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.d.ts +1 -0
- package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.js +100 -3
- package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/azure-key-vault/types.d.ts +4 -0
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.d.ts +2 -1
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js +11 -5
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js.map +1 -1
- package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +6 -3
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js +31 -11
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js.map +1 -1
- package/dist/modules/insights/insights.controller.js +13 -7
- package/dist/modules/insights/insights.controller.js.map +1 -1
- package/dist/modules/insights/insights.service.d.ts +6 -3
- package/dist/modules/insights/insights.service.js +6 -3
- package/dist/modules/insights/insights.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.js +10 -3
- package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +1 -0
- package/dist/modules/instance-ai/eval/execution.service.js +37 -3
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.d.ts +5 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.js +67 -9
- package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-credit-display.d.ts +9 -0
- package/dist/modules/instance-ai/instance-ai-credit-display.js +15 -0
- package/dist/modules/instance-ai/instance-ai-credit-display.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +11 -1
- package/dist/modules/instance-ai/instance-ai-credit.service.js +52 -9
- package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-model-catalog.service.d.ts +15 -0
- package/dist/modules/instance-ai/instance-ai-model-catalog.service.js +130 -0
- package/dist/modules/instance-ai/instance-ai-model-catalog.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-model.service.d.ts +2 -4
- package/dist/modules/instance-ai/instance-ai-model.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +19 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.js +240 -24
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-verification.service.d.ts +20 -0
- package/dist/modules/instance-ai/instance-ai-verification.service.js +232 -0
- package/dist/modules/instance-ai/instance-ai-verification.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +4 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +78 -4
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +10 -6
- package/dist/modules/instance-ai/instance-ai.controller.js +84 -2
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +3 -1
- package/dist/modules/instance-ai/instance-ai.module.js +4 -7
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +7 -6
- package/dist/modules/instance-ai/instance-ai.service.js +238 -63
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/node-definition-resolver.d.ts +0 -1
- package/dist/modules/instance-ai/node-definition-resolver.js +0 -19
- package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.d.ts +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js +10 -0
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js.map +1 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.d.ts +1 -0
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +37 -2
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js +6 -6
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js.map +1 -1
- package/dist/modules/instance-ai/suspended-run-restorer.service.d.ts +1 -1
- package/dist/modules/instance-ai/suspended-run-restorer.service.js +9 -0
- package/dist/modules/instance-ai/suspended-run-restorer.service.js.map +1 -1
- package/dist/modules/mcp/mcp-protected-resource.d.ts +3 -4
- package/dist/modules/mcp/mcp-protected-resource.js +4 -4
- package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
- package/dist/modules/mcp/mcp-scopes.js +2 -0
- package/dist/modules/mcp/mcp-scopes.js.map +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.js +1 -0
- package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
- package/dist/modules/mcp/mcp.constants.d.ts +4 -0
- package/dist/modules/mcp/mcp.constants.js +5 -1
- package/dist/modules/mcp/mcp.constants.js.map +1 -1
- package/dist/modules/mcp/mcp.controller.js +14 -14
- package/dist/modules/mcp/mcp.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +4 -3
- package/dist/modules/mcp/mcp.service.js +49 -34
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +31 -5
- package/dist/modules/mcp/mcp.types.js.map +1 -1
- package/dist/modules/mcp/mcp.utils.d.ts +1 -0
- package/dist/modules/mcp/mcp.utils.js +22 -5
- package/dist/modules/mcp/mcp.utils.js.map +1 -1
- package/dist/modules/mcp/tool-schema.util.d.ts +3 -0
- package/dist/modules/mcp/tool-schema.util.js +32 -0
- package/dist/modules/mcp/tool-schema.util.js.map +1 -0
- package/dist/modules/mcp/tools/agents/agent-reference.d.ts +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.js +17 -6
- package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.d.ts +9 -8
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +207 -52
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.js +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +4 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.js +60 -23
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/list-credentials.tool.js +1 -1
- package/dist/modules/mcp/tools/list-credentials.tool.js.map +1 -1
- package/dist/modules/mcp/tools/schemas.d.ts +81 -40
- package/dist/modules/mcp/tools/schemas.js +31 -11
- package/dist/modules/mcp/tools/schemas.js.map +1 -1
- package/dist/modules/mcp/tools/search-workflows.tool.js +1 -9
- package/dist/modules/mcp/tools/search-workflows.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/credentials-auto-assign.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/credentials-auto-assign.js +2 -7
- package/dist/modules/mcp/tools/workflow-builder/credentials-auto-assign.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js +2 -11
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +2 -2
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js +2 -1
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry-search.d.ts +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry-search.js +17 -5
- package/dist/modules/mcp-registry/registry/mcp-registry-search.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-blocked.error.js +2 -0
- package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-gates.d.ts +3 -4
- package/dist/modules/n8n-packages/engine/import-gates.js +10 -8
- package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +6 -2
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +36 -8
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-result.d.ts +2 -0
- package/dist/modules/n8n-packages/engine/import-result.js +13 -2
- package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.js +8 -2
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +3 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +29 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/package-layout.d.ts +18 -1
- package/dist/modules/n8n-packages/engine/package-layout.js +36 -7
- package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.js +28 -16
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +12 -12
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project-conflict-policy.d.ts +7 -0
- package/dist/modules/n8n-packages/entities/project/project-conflict-policy.js +12 -0
- package/dist/modules/n8n-packages/entities/project/project-conflict-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project-import.types.d.ts +13 -3
- package/dist/modules/n8n-packages/entities/project/project-importer.d.ts +3 -3
- package/dist/modules/n8n-packages/entities/project/project-importer.js +58 -29
- package/dist/modules/n8n-packages/entities/project/project-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag-import-decision.d.ts +4 -1
- package/dist/modules/n8n-packages/entities/tag/tag-import-decision.js +10 -3
- package/dist/modules/n8n-packages/entities/tag/tag-import-decision.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag-importer.d.ts +1 -4
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js +22 -10
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag.types.d.ts +13 -0
- package/dist/modules/n8n-packages/entities/tag/tag.types.js +36 -0
- package/dist/modules/n8n-packages/entities/tag/tag.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable-importer.d.ts +6 -5
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js +85 -21
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js +8 -3
- package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js +18 -23
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +21 -2
- package/dist/modules/n8n-packages/entities/variable/variable.types.js +15 -0
- package/dist/modules/n8n-packages/entities/variable/variable.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.d.ts +6 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +33 -11
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +35 -3
- package/dist/modules/n8n-packages/n8n-packages.types.js +12 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +0 -11
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +0 -10
- package/dist/modules/n8n-packages/spec/requirements.schema.js +0 -1
- package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/variable.schema.d.ts +3 -3
- package/dist/modules/n8n-packages/spec/serialized/variable.schema.js +3 -2
- package/dist/modules/n8n-packages/spec/serialized/variable.schema.js.map +1 -1
- package/dist/modules/oauth-server/oauth-server.service.js +2 -2
- package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.d.ts +2 -0
- package/dist/modules/otel/execution-level-tracer.js +4 -0
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/redaction/redaction-context-hook.d.ts +3 -1
- package/dist/modules/redaction/redaction-context-hook.js +9 -2
- package/dist/modules/redaction/redaction-context-hook.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +4 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +26 -6
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.d.ts +8 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.js +76 -18
- package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-auto-close.service.d.ts +16 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-auto-close.service.js +95 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-auto-close.service.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-decision-eligibility.service.d.ts +15 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-decision-eligibility.service.js +52 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-decision-eligibility.service.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.d.ts +3 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +10 -4
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.js +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.d.ts +9 -5
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js +71 -40
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +3 -0
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.js +20 -13
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/oauth/dcr-managed-fields.d.ts +6 -0
- package/dist/oauth/dcr-managed-fields.js +13 -0
- package/dist/oauth/dcr-managed-fields.js.map +1 -0
- package/dist/oauth/oauth.service.d.ts +1 -0
- package/dist/oauth/oauth.service.js +24 -25
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/posthog/index.d.ts +2 -0
- package/dist/posthog/index.js +19 -0
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/public-api-controller.registry.d.ts +1 -0
- package/dist/public-api/public-api-controller.registry.js +36 -35
- package/dist/public-api/public-api-controller.registry.js.map +1 -1
- package/dist/public-api/public-api-route-resolver.d.ts +38 -0
- package/dist/public-api/public-api-route-resolver.js +136 -0
- package/dist/public-api/public-api-route-resolver.js.map +1 -0
- package/dist/public-api/types.d.ts +3 -6
- package/dist/public-api/v1/controllers/index.d.ts +1 -0
- package/dist/public-api/v1/controllers/index.js +1 -0
- package/dist/public-api/v1/controllers/index.js.map +1 -1
- package/dist/public-api/v1/controllers/roles.public.controller.d.ts +11 -0
- package/dist/public-api/v1/controllers/roles.public.controller.js +65 -0
- package/dist/public-api/v1/controllers/roles.public.controller.js.map +1 -0
- package/dist/public-api/v1/controllers/tags.public.controller.js +9 -2
- package/dist/public-api/v1/controllers/tags.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +10 -2
- package/dist/public-api/v1/controllers/workflows.public.controller.js +132 -4
- package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.js +7 -15
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/decorator-routed.handler.d.ts +2 -0
- package/dist/public-api/v1/handlers/decorator-routed.handler.js +10 -0
- package/dist/public-api/v1/handlers/decorator-routed.handler.js.map +1 -0
- package/dist/public-api/v1/handlers/discover/discover.service.js +54 -49
- package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js +25 -65
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +2 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +0 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js +44 -122
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.d.ts +18 -0
- package/dist/public-api/v1/openapi-gen/decorator-routes.js +160 -0
- package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -0
- package/dist/public-api/v1/openapi-gen/generate.d.ts +25 -0
- package/dist/public-api/v1/openapi-gen/generate.js +149 -0
- package/dist/public-api/v1/openapi-gen/generate.js.map +1 -0
- package/dist/public-api/v1/openapi-gen/zod-extend.d.ts +1 -0
- package/dist/public-api/v1/openapi-gen/zod-extend.js +6 -0
- package/dist/public-api/v1/openapi-gen/zod-extend.js.map +1 -0
- package/dist/public-api/v1/openapi.yml +625 -166
- package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +1 -3
- package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/constants.js +1 -0
- package/dist/scaling/constants.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +5 -1
- package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
- package/dist/server.js +1 -0
- package/dist/server.js.map +1 -1
- package/dist/{modules/mcp/tools/workflow-builder → services}/ai-gateway-eligibility.d.ts +1 -0
- package/dist/{modules/mcp/tools/workflow-builder → services}/ai-gateway-eligibility.js +7 -1
- package/dist/services/ai-gateway-eligibility.js.map +1 -0
- package/dist/services/ai-gateway.service.d.ts +2 -0
- package/dist/services/ai-gateway.service.js +17 -3
- package/dist/services/ai-gateway.service.js.map +1 -1
- package/dist/services/ai.service.d.ts +1 -0
- package/dist/services/ai.service.js +4 -0
- package/dist/services/ai.service.js.map +1 -1
- package/dist/services/cache/cache.service.d.ts +2 -0
- package/dist/services/cache/cache.service.js +21 -0
- package/dist/services/cache/cache.service.js.map +1 -1
- package/dist/services/cache/redis.cache-manager.d.ts +1 -0
- package/dist/services/cache/redis.cache-manager.js +6 -0
- package/dist/services/cache/redis.cache-manager.js.map +1 -1
- package/dist/services/credentials-tester.service.d.ts +5 -1
- package/dist/services/credentials-tester.service.js +9 -3
- package/dist/services/credentials-tester.service.js.map +1 -1
- package/dist/services/folder.service.js.map +1 -1
- package/dist/services/free-ai-credits.service.js +1 -1
- package/dist/services/free-ai-credits.service.js.map +1 -1
- package/dist/services/frontend.service.js +3 -1
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/instance-activation.service.d.ts +10 -0
- package/dist/services/instance-activation.service.js +48 -0
- package/dist/services/instance-activation.service.js.map +1 -0
- package/dist/services/node-resource-explorer.service.d.ts +13 -0
- package/dist/services/node-resource-explorer.service.js +117 -0
- package/dist/services/node-resource-explorer.service.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +1 -1
- package/dist/services/project.service.ee.d.ts +3 -3
- package/dist/services/project.service.ee.js +4 -7
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/role-authorization.d.ts +3 -0
- package/dist/services/role-authorization.js +14 -0
- package/dist/services/role-authorization.js.map +1 -0
- package/dist/services/tag.service.d.ts +5 -2
- package/dist/services/tag.service.js +9 -2
- package/dist/services/tag.service.js.map +1 -1
- package/dist/services/workflow-statistics.service.d.ts +1 -0
- package/dist/services/workflow-statistics.service.js +12 -0
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/task-runners/task-broker/auth/task-broker-auth.controller.d.ts +1 -0
- package/dist/task-runners/task-broker/auth/task-broker-auth.controller.js +2 -2
- package/dist/task-runners/task-broker/auth/task-broker-auth.controller.js.map +1 -1
- package/dist/task-runners/task-broker/auth/task-broker-auth.service.d.ts +6 -2
- package/dist/task-runners/task-broker/auth/task-broker-auth.service.js +8 -4
- package/dist/task-runners/task-broker/auth/task-broker-auth.service.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker-server.d.ts +1 -0
- package/dist/task-runners/task-broker/task-broker-server.js +13 -3
- package/dist/task-runners/task-broker/task-broker-server.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker-ws-server.d.ts +1 -0
- package/dist/task-runners/task-broker/task-broker-ws-server.js +8 -5
- package/dist/task-runners/task-broker/task-broker-ws-server.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker.service.js +2 -9
- package/dist/task-runners/task-broker/task-broker.service.js.map +1 -1
- package/dist/task-runners/task-runner-lifecycle-events.d.ts +0 -1
- package/dist/task-runners/task-runner-process-base.d.ts +2 -2
- package/dist/task-runners/task-runner-process-base.js +14 -10
- package/dist/task-runners/task-runner-process-base.js.map +1 -1
- package/dist/task-runners/task-runner-process-js.d.ts +1 -2
- package/dist/task-runners/task-runner-process-js.js +4 -4
- package/dist/task-runners/task-runner-process-js.js.map +1 -1
- package/dist/task-runners/task-runner-process-py.d.ts +1 -2
- package/dist/task-runners/task-runner-process-py.js +2 -2
- package/dist/task-runners/task-runner-process-py.js.map +1 -1
- package/dist/utils/node-definition-dirs.d.ts +1 -0
- package/dist/utils/node-definition-dirs.js +24 -0
- package/dist/utils/node-definition-dirs.js.map +1 -0
- package/dist/webhooks/constants.d.ts +1 -0
- package/dist/webhooks/constants.js +2 -1
- package/dist/webhooks/constants.js.map +1 -1
- package/dist/webhooks/live-webhooks.d.ts +4 -2
- package/dist/webhooks/live-webhooks.js +25 -4
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-execution-context.d.ts +5 -2
- package/dist/webhooks/webhook-execution-context.js +10 -0
- package/dist/webhooks/webhook-execution-context.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +9 -8
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook.service.d.ts +5 -1
- package/dist/webhooks/webhook.service.js +52 -9
- package/dist/webhooks/webhook.service.js.map +1 -1
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +3 -0
- package/dist/workflows/triggers/trigger-execution-context.factory.js +43 -38
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
- package/dist/workflows/triggers/webhook-trigger-registrar.d.ts +0 -1
- package/dist/workflows/triggers/webhook-trigger-registrar.js +1 -16
- package/dist/workflows/triggers/webhook-trigger-registrar.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +20 -31
- package/dist/workflows/workflow-finder.service.js +42 -9
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-mutation-hooks-proxy.service.d.ts +14 -0
- package/dist/workflows/workflow-mutation-hooks-proxy.service.js +35 -0
- package/dist/workflows/workflow-mutation-hooks-proxy.service.js.map +1 -0
- package/dist/workflows/workflow-sharing.service.d.ts +4 -1
- package/dist/workflows/workflow-sharing.service.js +14 -2
- package/dist/workflows/workflow-sharing.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +9 -6
- package/dist/workflows/workflow.service.ee.d.ts +3 -3
- package/dist/workflows/workflow.service.ee.js +20 -7
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +33 -9
- package/dist/workflows/workflow.service.js.map +1 -1
- package/package.json +45 -41
- package/templates/form-shell.handlebars +418 -0
- package/templates/form-trigger.handlebars +30 -1
- package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/slack-operations.d.ts +0 -17
- package/dist/modules/agents/integrations/platforms/slack-operations.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/slack-tool-definitions.d.ts +0 -48
- package/dist/modules/agents/integrations/platforms/slack-tool-definitions.js +0 -42
- package/dist/modules/agents/integrations/platforms/slack-tool-definitions.js.map +0 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.d.ts +0 -54
- package/dist/modules/agents/integrations/slack-app-setup.service.js +0 -326
- package/dist/modules/agents/integrations/slack-app-setup.service.js.map +0 -1
- package/dist/modules/mcp/tools/workflow-builder/ai-gateway-eligibility.js.map +0 -1
- package/dist/public-api/v1/handlers/executions/executions.service.d.ts +0 -14
- package/dist/public-api/v1/handlers/executions/executions.service.js +0 -49
- package/dist/public-api/v1/handlers/executions/executions.service.js.map +0 -1
- package/dist/public-api/v1/handlers/workflows/workflows.service.d.ts +0 -13
- package/dist/public-api/v1/handlers/workflows/workflows.service.js +0 -98
- package/dist/public-api/v1/handlers/workflows/workflows.service.js.map +0 -1
- /package/dist/modules/agents/integrations/platforms/{slack-bridge-behavior.js → slack/slack-bridge-behavior.js} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InstanceAiVerificationResponse, InstanceAiVerifyModelRequest, InstanceAiVerifySandboxRequest, InstanceAiVerifySearchRequest } from '@n8n/api-types';
|
|
2
|
+
import { Logger } from '@n8n/backend-common';
|
|
3
|
+
import { OutboundHttp } from '@n8n/backend-network';
|
|
4
|
+
import { GlobalConfig } from '@n8n/config';
|
|
5
|
+
import type { User } from '@n8n/db';
|
|
6
|
+
import { InstanceAiModelService } from './instance-ai-model.service';
|
|
7
|
+
import { InstanceAiSettingsService } from './instance-ai-settings.service';
|
|
8
|
+
export declare class InstanceAiVerificationService {
|
|
9
|
+
private readonly logger;
|
|
10
|
+
private readonly globalConfig;
|
|
11
|
+
private readonly settingsService;
|
|
12
|
+
private readonly modelService;
|
|
13
|
+
private readonly outboundHttp;
|
|
14
|
+
constructor(logger: Logger, globalConfig: GlobalConfig, settingsService: InstanceAiSettingsService, modelService: InstanceAiModelService, outboundHttp: OutboundHttp);
|
|
15
|
+
verifyModel(user: User, request: InstanceAiVerifyModelRequest): Promise<InstanceAiVerificationResponse>;
|
|
16
|
+
verifySandbox(user: User, request: InstanceAiVerifySandboxRequest): Promise<InstanceAiVerificationResponse>;
|
|
17
|
+
verifySearch(request: InstanceAiVerifySearchRequest): Promise<InstanceAiVerificationResponse>;
|
|
18
|
+
private logVerificationFailure;
|
|
19
|
+
private resolveSandboxConfig;
|
|
20
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
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.InstanceAiVerificationService = void 0;
|
|
13
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
14
|
+
const backend_network_1 = require("@n8n/backend-network");
|
|
15
|
+
const config_1 = require("@n8n/config");
|
|
16
|
+
const di_1 = require("@n8n/di");
|
|
17
|
+
const ensure_error_1 = require("@n8n/utils/errors/ensure-error");
|
|
18
|
+
const ai_proxy_fetch_1 = require("../../utils/ai-proxy-fetch");
|
|
19
|
+
const instance_ai_model_service_1 = require("./instance-ai-model.service");
|
|
20
|
+
const instance_ai_settings_service_1 = require("./instance-ai-settings.service");
|
|
21
|
+
const VERIFICATION_TIMEOUT_MS = 30_000;
|
|
22
|
+
function numericStatus(error) {
|
|
23
|
+
if (typeof error !== 'object' || error === null)
|
|
24
|
+
return undefined;
|
|
25
|
+
for (const key of ['status', 'statusCode', 'code']) {
|
|
26
|
+
const value = Reflect.get(error, key);
|
|
27
|
+
if (typeof value === 'number')
|
|
28
|
+
return value;
|
|
29
|
+
if (typeof value === 'string' && /^\d{3}$/.test(value))
|
|
30
|
+
return Number(value);
|
|
31
|
+
}
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
function classifyFailure(error) {
|
|
35
|
+
const status = numericStatus(error);
|
|
36
|
+
if (status === 401)
|
|
37
|
+
return 'unauthorized';
|
|
38
|
+
if (status === 403) {
|
|
39
|
+
const message = (0, ensure_error_1.ensureError)(error).message.toLowerCase();
|
|
40
|
+
return message.includes('quota') || message.includes('limit') ? 'quota_exceeded' : 'forbidden';
|
|
41
|
+
}
|
|
42
|
+
if (status === 429)
|
|
43
|
+
return 'rate_limited';
|
|
44
|
+
const errorObject = (0, ensure_error_1.ensureError)(error);
|
|
45
|
+
if (errorObject.name === 'AbortError' || errorObject.name === 'TimeoutError')
|
|
46
|
+
return 'timeout';
|
|
47
|
+
const message = errorObject.message.toLowerCase();
|
|
48
|
+
if (/\b401\b/.test(message))
|
|
49
|
+
return 'unauthorized';
|
|
50
|
+
if (/\b403\b/.test(message)) {
|
|
51
|
+
return message.includes('quota') || message.includes('limit') ? 'quota_exceeded' : 'forbidden';
|
|
52
|
+
}
|
|
53
|
+
if (/\b429\b/.test(message))
|
|
54
|
+
return 'rate_limited';
|
|
55
|
+
if (message.includes('timeout') || message.includes('timed out'))
|
|
56
|
+
return 'timeout';
|
|
57
|
+
if (message.includes('econnrefused') ||
|
|
58
|
+
message.includes('enotfound') ||
|
|
59
|
+
message.includes('fetch failed') ||
|
|
60
|
+
message.includes('network'))
|
|
61
|
+
return 'unreachable';
|
|
62
|
+
if (message.includes('json') || message.includes('response'))
|
|
63
|
+
return 'invalid_response';
|
|
64
|
+
return 'provider_error';
|
|
65
|
+
}
|
|
66
|
+
function connectionString(connection, field) {
|
|
67
|
+
const value = connection?.data[field];
|
|
68
|
+
return typeof value === 'string' && value.trim() ? value.trim() : undefined;
|
|
69
|
+
}
|
|
70
|
+
let InstanceAiVerificationService = class InstanceAiVerificationService {
|
|
71
|
+
constructor(logger, globalConfig, settingsService, modelService, outboundHttp) {
|
|
72
|
+
this.logger = logger;
|
|
73
|
+
this.globalConfig = globalConfig;
|
|
74
|
+
this.settingsService = settingsService;
|
|
75
|
+
this.modelService = modelService;
|
|
76
|
+
this.outboundHttp = outboundHttp;
|
|
77
|
+
}
|
|
78
|
+
async verifyModel(user, request) {
|
|
79
|
+
try {
|
|
80
|
+
const connection = request.connection
|
|
81
|
+
? await this.settingsService.resolveModelConnectionForVerification(request.connection)
|
|
82
|
+
: undefined;
|
|
83
|
+
const modelConfig = connection
|
|
84
|
+
? this.settingsService.buildModelConfigForConnection(connection, request.modelName ?? '')
|
|
85
|
+
: request.modelName
|
|
86
|
+
? await this.settingsService.resolveModelConfigForVerification(user, request.modelName)
|
|
87
|
+
: await this.modelService.resolveAgentModelConfig(user);
|
|
88
|
+
const { createModel } = await import('@n8n/agents');
|
|
89
|
+
const { generateText } = await import('ai');
|
|
90
|
+
const startedAt = performance.now();
|
|
91
|
+
await generateText({
|
|
92
|
+
model: createModel(modelConfig, (0, ai_proxy_fetch_1.createAiProxyFetch)(this.outboundHttp)),
|
|
93
|
+
prompt: 'Reply with OK.',
|
|
94
|
+
maxOutputTokens: 8,
|
|
95
|
+
abortSignal: AbortSignal.timeout(VERIFICATION_TIMEOUT_MS),
|
|
96
|
+
});
|
|
97
|
+
return { ok: true, latencyMs: Math.round(performance.now() - startedAt) };
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
const failure = classifyFailure(error);
|
|
101
|
+
this.logVerificationFailure('model', failure, error);
|
|
102
|
+
return { ok: false, failure };
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async verifySandbox(user, request) {
|
|
106
|
+
const provider = request.provider ?? this.globalConfig.instanceAi.sandboxProvider;
|
|
107
|
+
let abortSignal;
|
|
108
|
+
let raceWithAbort;
|
|
109
|
+
let workspace;
|
|
110
|
+
try {
|
|
111
|
+
const config = await this.resolveSandboxConfig(user, request);
|
|
112
|
+
abortSignal = AbortSignal.timeout(config.timeout ?? VERIFICATION_TIMEOUT_MS);
|
|
113
|
+
const [instanceAi, agents] = await Promise.all([
|
|
114
|
+
import('@n8n/instance-ai'),
|
|
115
|
+
import('@n8n/agents'),
|
|
116
|
+
]);
|
|
117
|
+
const { createSandbox, createWorkspace } = instanceAi;
|
|
118
|
+
raceWithAbort = agents.raceWithAbort;
|
|
119
|
+
const startedAt = performance.now();
|
|
120
|
+
const sandbox = await raceWithAbort(async () => await createSandbox(config), abortSignal);
|
|
121
|
+
if (!sandbox)
|
|
122
|
+
throw new Error('Sandbox did not start');
|
|
123
|
+
const activeWorkspace = createWorkspace(sandbox);
|
|
124
|
+
if (!activeWorkspace)
|
|
125
|
+
throw new Error('Sandbox workspace did not start');
|
|
126
|
+
workspace = activeWorkspace;
|
|
127
|
+
await raceWithAbort(async () => await activeWorkspace.init(), abortSignal);
|
|
128
|
+
const startupMs = Math.round(performance.now() - startedAt);
|
|
129
|
+
const result = await raceWithAbort(async () => await activeWorkspace.sandbox?.executeCommand?.('printf', ['ok'], { abortSignal }), abortSignal);
|
|
130
|
+
if (!result || result.exitCode !== 0)
|
|
131
|
+
throw new Error('Sandbox command failed');
|
|
132
|
+
return { ok: true, startupMs };
|
|
133
|
+
}
|
|
134
|
+
catch (error) {
|
|
135
|
+
const classifiedFailure = classifyFailure(error);
|
|
136
|
+
const failure = provider === 'daytona' && classifiedFailure === 'forbidden'
|
|
137
|
+
? 'quota_exceeded'
|
|
138
|
+
: classifiedFailure;
|
|
139
|
+
this.logVerificationFailure('sandbox', failure, error, { provider });
|
|
140
|
+
return {
|
|
141
|
+
ok: false,
|
|
142
|
+
failure,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
finally {
|
|
146
|
+
if (workspace) {
|
|
147
|
+
const cleanup = workspace.destroy().catch((error) => {
|
|
148
|
+
this.logger.warn('Instance AI sandbox verification cleanup failed', {
|
|
149
|
+
error: (0, ensure_error_1.ensureError)(error).message,
|
|
150
|
+
provider,
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
if (!abortSignal || abortSignal.aborted || !raceWithAbort) {
|
|
154
|
+
void cleanup;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
await raceWithAbort(cleanup, abortSignal).catch(() => { });
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
async verifySearch(request) {
|
|
163
|
+
try {
|
|
164
|
+
const connection = request.connection
|
|
165
|
+
? await this.settingsService.resolveSearchConnectionForVerification(request.connection)
|
|
166
|
+
: undefined;
|
|
167
|
+
const saved = connection ? undefined : await this.settingsService.resolveSearchConfig();
|
|
168
|
+
const braveApiKey = connectionString(connection, 'apiKey') ?? saved?.braveApiKey;
|
|
169
|
+
const searxngUrl = connectionString(connection, 'apiUrl') ?? saved?.searxngUrl;
|
|
170
|
+
const { braveSearch, searxngSearch } = await import('@n8n/ai-utilities');
|
|
171
|
+
const options = {
|
|
172
|
+
maxResults: 10,
|
|
173
|
+
abortSignal: AbortSignal.timeout(VERIFICATION_TIMEOUT_MS),
|
|
174
|
+
};
|
|
175
|
+
const result = braveApiKey
|
|
176
|
+
? await braveSearch(braveApiKey, 'n8n workflow automation', options)
|
|
177
|
+
: searxngUrl
|
|
178
|
+
? await searxngSearch(searxngUrl, 'n8n workflow automation', options)
|
|
179
|
+
: undefined;
|
|
180
|
+
if (!result)
|
|
181
|
+
throw new Error('Search provider is not configured');
|
|
182
|
+
return { ok: true, resultCount: result.results.length };
|
|
183
|
+
}
|
|
184
|
+
catch (error) {
|
|
185
|
+
const failure = classifyFailure(error);
|
|
186
|
+
this.logVerificationFailure('search', failure, error);
|
|
187
|
+
return { ok: false, failure };
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
logVerificationFailure(kind, failure, error, context = {}) {
|
|
191
|
+
this.logger.warn(`Instance AI ${kind} verification failed`, {
|
|
192
|
+
...context,
|
|
193
|
+
error: (0, ensure_error_1.ensureError)(error).message,
|
|
194
|
+
failure,
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
async resolveSandboxConfig(_user, request) {
|
|
198
|
+
const instanceAi = this.globalConfig.instanceAi;
|
|
199
|
+
const provider = request.provider ?? instanceAi.sandboxProvider;
|
|
200
|
+
const connection = request.connection
|
|
201
|
+
? await this.settingsService.resolveSandboxConnectionForVerification(request.connection)
|
|
202
|
+
: undefined;
|
|
203
|
+
if (provider === 'daytona') {
|
|
204
|
+
const saved = connection ? undefined : await this.settingsService.resolveDaytonaConfig();
|
|
205
|
+
return {
|
|
206
|
+
enabled: true,
|
|
207
|
+
provider: 'daytona',
|
|
208
|
+
daytonaApiUrl: connectionString(connection, 'apiUrl') ?? saved?.apiUrl ?? instanceAi.daytonaApiUrl,
|
|
209
|
+
daytonaApiKey: connectionString(connection, 'apiKey') ?? saved?.apiKey ?? instanceAi.daytonaApiKey,
|
|
210
|
+
image: instanceAi.sandboxImage,
|
|
211
|
+
timeout: instanceAi.sandboxTimeout,
|
|
212
|
+
ephemeral: true,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
const saved = connection ? undefined : await this.settingsService.resolveN8nSandboxConfig();
|
|
216
|
+
return {
|
|
217
|
+
enabled: true,
|
|
218
|
+
provider: 'n8n-sandbox',
|
|
219
|
+
serviceUrl: request.serviceUrl ?? saved?.serviceUrl ?? instanceAi.n8nSandboxServiceUrl,
|
|
220
|
+
apiKey: connectionString(connection, 'value') ??
|
|
221
|
+
saved?.apiKey ??
|
|
222
|
+
instanceAi.n8nSandboxServiceApiKey,
|
|
223
|
+
timeout: instanceAi.sandboxTimeout,
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
exports.InstanceAiVerificationService = InstanceAiVerificationService;
|
|
228
|
+
exports.InstanceAiVerificationService = InstanceAiVerificationService = __decorate([
|
|
229
|
+
(0, di_1.Service)(),
|
|
230
|
+
__metadata("design:paramtypes", [backend_common_1.Logger, config_1.GlobalConfig, instance_ai_settings_service_1.InstanceAiSettingsService, instance_ai_model_service_1.InstanceAiModelService, backend_network_1.OutboundHttp])
|
|
231
|
+
], InstanceAiVerificationService);
|
|
232
|
+
//# sourceMappingURL=instance-ai-verification.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-ai-verification.service.js","sourceRoot":"","sources":["../../../src/modules/instance-ai/instance-ai-verification.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,wDAA6C;AAC7C,0DAAoD;AACpD,wCAA2C;AAE3C,gCAAkC;AAElC,iEAA6D;AAE7D,2DAA4D;AAE5D,2EAAqE;AACrE,iFAA2E;AAE3E,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAEvC,SAAS,aAAa,CAAC,KAAc;IACpC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAClE,KAAK,MAAM,GAAG,IAAI,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,CAAC;QACpD,MAAM,KAAK,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B,aAAa,EACZ,gBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,IAAI,KAAK,EAAE,MAAM,IAAI,UAAU,CAAC,aAAa;gBACpF,aAAa,EACZ,gBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,IAAI,KAAK,EAAE,MAAM,IAAI,UAAU,CAAC,aAAa;gBACpF,KAAK,EAAE,UAAU,CAAC,YAAY;gBAC9B,OAAO,EAAE,UAAU,CAAC,cAAc;gBAClC,SAAS,EAAE,IAAI;aACf,CAAC;QACH,CAAC;QAED,MAAM,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC,uBAAuB,EAAE,CAAC;QAC5F,OAAO;YACN,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,aAAa;YACvB,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,KAAK,EAAE,UAAU,IAAI,UAAU,CAAC,oBAAoB;YACtF,MAAM,EACL,gBAAgB,CAAC,UAAU,EAAE,OAAO,CAAC;gBACrC,KAAK,EAAE,MAAM;gBACb,UAAU,CAAC,uBAAuB;YACnC,OAAO,EAAE,UAAU,CAAC,cAAc;SAClC,CAAC;IACH,CAAC;CACD,CAAA;;wCAnLY,6BAA6B;IADzC,IAAA,YAAO,GAAE;qCAGiB,uBAAM,EACA,qBAAY,EACT,wDAAyB,EAC5B,kDAAsB,EACtB,8BAAY;GANhC,6BAA6B,CAmLzC"}
|
|
@@ -88,11 +88,15 @@ export declare class InstanceAiAdapterService {
|
|
|
88
88
|
shouldBypassCredentialTest?: (credentialId: string) => boolean;
|
|
89
89
|
agentId?: string;
|
|
90
90
|
configEvalsEnabled?: boolean;
|
|
91
|
+
mcpConnectionsEnabled?: boolean;
|
|
91
92
|
modelId?: ModelConfig;
|
|
92
93
|
}): InstanceAiContext;
|
|
93
94
|
private getBuilderDelegateAdapter;
|
|
94
95
|
private getGatewayConfigOrNull;
|
|
95
96
|
isConfigEvalsEnabled(user: User): Promise<boolean>;
|
|
97
|
+
isMcpConnectionsEnabled(user: User): Promise<boolean>;
|
|
98
|
+
private createMcpAdapter;
|
|
99
|
+
private listConnectedMcpRegistrySlugs;
|
|
96
100
|
private buildAiGatewayNodeMeta;
|
|
97
101
|
private getTemplatesService;
|
|
98
102
|
private createWorkflowTemplateAdapter;
|
|
@@ -35,6 +35,7 @@ const constants_1 = require("@n8n/constants");
|
|
|
35
35
|
const nanoid_1 = require("nanoid");
|
|
36
36
|
const extract_resolved_node_parameters_1 = require("./extract-resolved-node-parameters");
|
|
37
37
|
const instance_ai_settings_service_1 = require("./instance-ai-settings.service");
|
|
38
|
+
const mcp_1 = require("./mcp");
|
|
38
39
|
const workflow_templates_service_1 = require("./workflow-templates.service");
|
|
39
40
|
const instance_ai_run_pin_data_1 = require("./instance-ai-run-pin-data");
|
|
40
41
|
const node_definition_resolver_1 = require("./node-definition-resolver");
|
|
@@ -64,8 +65,10 @@ const node_catalog_1 = require("../../node-catalog");
|
|
|
64
65
|
const data_table_repository_1 = require("../../modules/data-table/data-table.repository");
|
|
65
66
|
const data_table_service_1 = require("../../modules/data-table/data-table.service");
|
|
66
67
|
const node_description_transform_1 = require("../../modules/mcp-registry/node-description-transform");
|
|
68
|
+
const mcp_registry_service_1 = require("../../modules/mcp-registry/registry/mcp-registry.service");
|
|
67
69
|
const source_control_preferences_service_ee_1 = require("../../modules/source-control.ee/source-control-preferences.service.ee");
|
|
68
70
|
const check_access_1 = require("../../permissions.ee/check-access");
|
|
71
|
+
const node_definition_dirs_1 = require("../../utils/node-definition-dirs");
|
|
69
72
|
const ai_gateway_service_1 = require("../../services/ai-gateway.service");
|
|
70
73
|
const folder_service_1 = require("../../services/folder.service");
|
|
71
74
|
const node_resource_explorer_service_1 = require("../../services/node-resource-explorer.service");
|
|
@@ -161,7 +164,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
161
164
|
});
|
|
162
165
|
}
|
|
163
166
|
createContext(user, options) {
|
|
164
|
-
const { searchProxyConfig, pushRef, threadId, projectId, credentialIdAllowlist, shouldBypassCredentialTest, agentId, configEvalsEnabled, modelId, } = options ?? {};
|
|
167
|
+
const { searchProxyConfig, pushRef, threadId, projectId, credentialIdAllowlist, shouldBypassCredentialTest, agentId, configEvalsEnabled, mcpConnectionsEnabled, modelId, } = options ?? {};
|
|
165
168
|
void this.trackGatewayAvailability();
|
|
166
169
|
const builderDelegateAdapter = this.getBuilderDelegateAdapter();
|
|
167
170
|
return {
|
|
@@ -178,6 +181,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
178
181
|
evaluationConfigService: this.createEvaluationConfigAdapter(this.evaluationConfigService, user),
|
|
179
182
|
}
|
|
180
183
|
: {}),
|
|
184
|
+
mcpService: mcpConnectionsEnabled ? this.createMcpAdapter(user) : undefined,
|
|
181
185
|
webResearchService: this.createWebResearchAdapter(user, searchProxyConfig),
|
|
182
186
|
workspaceService: this.createWorkspaceAdapter(user),
|
|
183
187
|
templatesService: this.getTemplatesService(),
|
|
@@ -211,9 +215,8 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
211
215
|
}
|
|
212
216
|
}
|
|
213
217
|
async getGatewayConfigOrNull() {
|
|
214
|
-
if (!this.license.isLicensed(constants_1.LICENSE_FEATURES.AI_GATEWAY))
|
|
215
|
-
return null;
|
|
216
218
|
try {
|
|
219
|
+
this.aiGatewayService.assertEnabled();
|
|
217
220
|
return await this.aiGatewayService.getGatewayConfig();
|
|
218
221
|
}
|
|
219
222
|
catch {
|
|
@@ -224,6 +227,45 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
224
227
|
const flags = await di_1.Container.get(posthog_1.PostHogClient).getFeatureFlags(user);
|
|
225
228
|
return flags?.[api_types_1.CONFIG_EVALUATIONS_FLAG] === api_types_1.CONFIG_EVALUATIONS_ENABLED_VARIANT;
|
|
226
229
|
}
|
|
230
|
+
async isMcpConnectionsEnabled(user) {
|
|
231
|
+
if (!di_1.Container.get(backend_common_1.ModuleRegistry).isActive('mcp-registry'))
|
|
232
|
+
return false;
|
|
233
|
+
if (!this.settingsService.isMcpAccessEnabled())
|
|
234
|
+
return false;
|
|
235
|
+
const flags = await di_1.Container.get(posthog_1.PostHogClient).getFeatureFlags(user);
|
|
236
|
+
return (flags?.[api_types_1.INSTANCE_AI_MCP_CONNECTIONS_FLAG] === api_types_1.INSTANCE_AI_MCP_CONNECTIONS_ENABLED_VARIANT);
|
|
237
|
+
}
|
|
238
|
+
createMcpAdapter(user) {
|
|
239
|
+
return {
|
|
240
|
+
search: async (queries) => {
|
|
241
|
+
const [servers, connectedSlugs] = await Promise.all([
|
|
242
|
+
di_1.Container.get(mcp_registry_service_1.McpRegistryService).search(queries),
|
|
243
|
+
this.listConnectedMcpRegistrySlugs(user),
|
|
244
|
+
]);
|
|
245
|
+
return servers
|
|
246
|
+
.filter((server) => !connectedSlugs.has(server.slug))
|
|
247
|
+
.map((server) => ({
|
|
248
|
+
slug: server.slug,
|
|
249
|
+
title: server.title,
|
|
250
|
+
description: server.description,
|
|
251
|
+
tools: server.tools.map((tool) => tool.name),
|
|
252
|
+
}));
|
|
253
|
+
},
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
async listConnectedMcpRegistrySlugs(user) {
|
|
257
|
+
try {
|
|
258
|
+
const connections = await di_1.Container.get(mcp_1.InstanceAiMcpRegistryService).listConnectionsForUser(user);
|
|
259
|
+
return new Set(connections.map((connection) => connection.serverSlug));
|
|
260
|
+
}
|
|
261
|
+
catch (error) {
|
|
262
|
+
this.logger.warn('Failed to list connected MCP registry servers for registry search', {
|
|
263
|
+
userId: user.id,
|
|
264
|
+
error: error instanceof Error ? error.message : String(error),
|
|
265
|
+
});
|
|
266
|
+
return new Set();
|
|
267
|
+
}
|
|
268
|
+
}
|
|
227
269
|
buildAiGatewayNodeMeta(config, nodeName) {
|
|
228
270
|
if (!config)
|
|
229
271
|
return undefined;
|
|
@@ -1050,6 +1092,37 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1050
1092
|
message: result.message,
|
|
1051
1093
|
};
|
|
1052
1094
|
},
|
|
1095
|
+
async getTemplatedCredentialHosts(credentialIds) {
|
|
1096
|
+
const normalizeHost = (value) => {
|
|
1097
|
+
const trimmed = value.trim().toLowerCase();
|
|
1098
|
+
if (!/^https?:\/\//.test(trimmed))
|
|
1099
|
+
return trimmed || null;
|
|
1100
|
+
try {
|
|
1101
|
+
return new URL(trimmed).hostname || null;
|
|
1102
|
+
}
|
|
1103
|
+
catch {
|
|
1104
|
+
return null;
|
|
1105
|
+
}
|
|
1106
|
+
};
|
|
1107
|
+
const hosts = {};
|
|
1108
|
+
await Promise.all(credentialIds.map(async (credentialId) => {
|
|
1109
|
+
hosts[credentialId] = null;
|
|
1110
|
+
try {
|
|
1111
|
+
const credential = await credentialsFinderService.findCredentialForUser(credentialId, user, ['credential:read']);
|
|
1112
|
+
if (!credential || credential.type !== api_types_1.TEMPLATED_CUSTOM_AUTH_CREDENTIAL_TYPE) {
|
|
1113
|
+
return;
|
|
1114
|
+
}
|
|
1115
|
+
const data = await credentialsService.decrypt(credential, true);
|
|
1116
|
+
const serviceHost = data.serviceHost;
|
|
1117
|
+
if (typeof serviceHost === 'string') {
|
|
1118
|
+
hosts[credentialId] = normalizeHost(serviceHost);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
catch {
|
|
1122
|
+
}
|
|
1123
|
+
}));
|
|
1124
|
+
return hosts;
|
|
1125
|
+
},
|
|
1053
1126
|
async isTestable(credentialType) {
|
|
1054
1127
|
try {
|
|
1055
1128
|
const credClass = loadNodesAndCredentials.getCredential(credentialType);
|
|
@@ -1555,7 +1628,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1555
1628
|
if (catalogDirs?.length)
|
|
1556
1629
|
return catalogDirs;
|
|
1557
1630
|
if (!this._nodeDefinitionDirs) {
|
|
1558
|
-
this._nodeDefinitionDirs = (0,
|
|
1631
|
+
this._nodeDefinitionDirs = (0, node_definition_dirs_1.resolveBuiltinNodeDefinitionDirs)();
|
|
1559
1632
|
}
|
|
1560
1633
|
return this._nodeDefinitionDirs;
|
|
1561
1634
|
}
|
|
@@ -1849,6 +1922,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1849
1922
|
}
|
|
1850
1923
|
},
|
|
1851
1924
|
exploreResources: async (params) => await this.nodeResourceExplorerService.exploreResources(user, params),
|
|
1925
|
+
findUnavailableLocatorValues: async (params) => await this.nodeResourceExplorerService.findUnavailableResourceLocatorValues(user, params),
|
|
1852
1926
|
};
|
|
1853
1927
|
}
|
|
1854
1928
|
createWorkspaceAdapter(user) {
|