n8n 2.23.2 → 2.24.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/active-workflow-manager.d.ts +8 -4
- package/dist/active-workflow-manager.js +26 -9
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/auth/auth.service.d.ts +1 -1
- package/dist/auth/auth.service.js +2 -1
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/controllers/ai.controller.js +1 -1
- package/dist/controllers/ai.controller.js.map +1 -1
- package/dist/controllers/api-keys.controller.d.ts +20 -15
- package/dist/controllers/api-keys.controller.js +7 -4
- package/dist/controllers/api-keys.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.d.ts +4 -2
- package/dist/controllers/oauth/oauth1-credential.controller.js +15 -5
- package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.d.ts +4 -2
- package/dist/controllers/oauth/oauth2-credential.controller.js +15 -6
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/project.controller.d.ts +8 -0
- package/dist/controllers/project.controller.js +2 -1
- package/dist/controllers/project.controller.js.map +1 -1
- package/dist/controllers/security-settings.controller.js +18 -1
- package/dist/controllers/security-settings.controller.js.map +1 -1
- package/dist/controllers/telemetry.controller.js +4 -1
- package/dist/controllers/telemetry.controller.js.map +1 -1
- package/dist/credentials/credential-connection-status-provider.interface.d.ts +3 -0
- package/dist/credentials/credential-connection-status-proxy.d.ts +3 -0
- package/dist/credentials/credential-connection-status-proxy.js +10 -0
- package/dist/credentials/credential-connection-status-proxy.js.map +1 -1
- package/dist/credentials/credentials.controller.d.ts +6 -0
- package/dist/credentials/credentials.controller.js +39 -2
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +29 -13
- package/dist/credentials/credentials.service.ee.d.ts +2 -0
- package/dist/credentials/credentials.service.ee.js +3 -0
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +27 -6
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials-helper.d.ts +1 -0
- package/dist/credentials-helper.js +14 -4
- package/dist/credentials-helper.js.map +1 -1
- package/dist/errors/credential-missing-id.error.d.ts +4 -0
- package/dist/errors/credential-missing-id.error.js +14 -0
- package/dist/errors/credential-missing-id.error.js.map +1 -0
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +3 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +54 -2
- package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
- package/dist/events/relays/log-streaming.event-relay.js +39 -1
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +6 -0
- package/dist/events/relays/telemetry.event-relay.js +74 -3
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +6 -5
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution-persistence.js +4 -0
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/expression-observability/expression-observability.provider.d.ts +3 -1
- package/dist/expression-observability/expression-observability.provider.js +48 -46
- package/dist/expression-observability/expression-observability.provider.js.map +1 -1
- package/dist/interfaces.d.ts +3 -1
- package/dist/modules/agents/agent-execution.service.d.ts +4 -2
- package/dist/modules/agents/agent-execution.service.js +3 -3
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-command.service.d.ts +40 -0
- package/dist/modules/agents/agent-knowledge-command.service.js +221 -0
- package/dist/modules/agents/agent-knowledge-command.service.js.map +1 -0
- package/dist/modules/agents/agent-knowledge.service.d.ts +42 -0
- package/dist/modules/agents/agent-knowledge.service.js +300 -0
- package/dist/modules/agents/agent-knowledge.service.js.map +1 -0
- package/dist/modules/agents/agent-task.service.d.ts +52 -0
- package/dist/modules/agents/agent-task.service.js +487 -0
- package/dist/modules/agents/agent-task.service.js.map +1 -0
- package/dist/modules/agents/agent-upload.middleware.d.ts +7 -0
- package/dist/modules/agents/agent-upload.middleware.js +62 -0
- package/dist/modules/agents/agent-upload.middleware.js.map +1 -0
- package/dist/modules/agents/agents-tools.service.d.ts +1 -1
- package/dist/modules/agents/agents-tools.service.js +12 -3
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +138 -45
- package/dist/modules/agents/agents.controller.js +176 -48
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +2 -2
- package/dist/modules/agents/agents.module.js +13 -5
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +43 -7
- package/dist/modules/agents/agents.service.js +341 -57
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +6 -5
- package/dist/modules/agents/builder/agents-builder-prompts.js +92 -18
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +11 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +164 -26
- 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 +8 -3
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-tool-names.d.ts +3 -0
- package/dist/modules/agents/builder/builder-tool-names.js +3 -0
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +1 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +25 -4
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-question.tool.js +6 -5
- package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +20 -5
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +23 -4
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +18 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.js +5 -3
- package/dist/modules/agents/builder/prompts/memory.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 +11 -2
- package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -1
- package/dist/modules/agents/builder/search-mcp-servers.tool.d.ts +6 -0
- package/dist/modules/agents/builder/search-mcp-servers.tool.js +85 -0
- package/dist/modules/agents/builder/search-mcp-servers.tool.js.map +1 -0
- package/dist/modules/agents/builder/skill-body-template.d.ts +4 -0
- package/dist/modules/agents/builder/skill-body-template.js +31 -0
- package/dist/modules/agents/builder/skill-body-template.js.map +1 -0
- package/dist/modules/agents/builder/skills/index.js +6 -1
- package/dist/modules/agents/builder/skills/index.js.map +1 -1
- package/dist/modules/agents/builder/skills/integrations.skill.js +39 -18
- package/dist/modules/agents/builder/skills/integrations.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/mcp.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/mcp.skill.js +110 -0
- package/dist/modules/agents/builder/skills/mcp.skill.js.map +1 -0
- package/dist/modules/agents/builder/skills/research.skill.js +8 -5
- package/dist/modules/agents/builder/skills/research.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +41 -13
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +82 -0
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -0
- package/dist/modules/agents/builder/task-objective-template.d.ts +3 -0
- package/dist/modules/agents/builder/task-objective-template.js +27 -0
- package/dist/modules/agents/builder/task-objective-template.js.map +1 -0
- package/dist/modules/agents/builder/verify-mcp-server.tool.d.ts +8 -0
- package/dist/modules/agents/builder/verify-mcp-server.tool.js +79 -0
- package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.d.ts +4 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js +26 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-file.entity.d.ts +11 -0
- package/dist/modules/agents/entities/agent-file.entity.js +48 -0
- package/dist/modules/agents/entities/agent-file.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-task-run-lock.entity.d.ts +10 -0
- package/dist/modules/agents/entities/agent-task-run-lock.entity.js +54 -0
- package/dist/modules/agents/entities/agent-task-run-lock.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.d.ts +12 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.js +70 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-task.entity.d.ts +11 -0
- package/dist/modules/agents/entities/agent-task.entity.js +64 -0
- package/dist/modules/agents/entities/agent-task.entity.js.map +1 -0
- package/dist/modules/agents/execution-recorder.d.ts +1 -0
- package/dist/modules/agents/execution-recorder.js +9 -5
- package/dist/modules/agents/execution-recorder.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +16 -4
- package/dist/modules/agents/integrations/agent-chat-bridge.js +372 -116
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +27 -2
- package/dist/modules/agents/integrations/agent-chat-integration.js +5 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +15 -6
- package/dist/modules/agents/integrations/chat-integration.service.js +9 -10
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/component-mapper.d.ts +14 -0
- package/dist/modules/agents/integrations/component-mapper.js +9 -1
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +22 -0
- package/dist/modules/agents/integrations/integration-action-executor.js +171 -0
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -0
- package/dist/modules/agents/integrations/integration-context-query-executor.d.ts +18 -0
- package/dist/modules/agents/integrations/integration-context-query-executor.js +58 -0
- package/dist/modules/agents/integrations/integration-context-query-executor.js.map +1 -0
- package/dist/modules/agents/integrations/integration-error-codes.d.ts +13 -0
- package/dist/modules/agents/integrations/integration-error-codes.js +16 -0
- package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -0
- package/dist/modules/agents/integrations/integration-helpers.d.ts +21 -0
- package/dist/modules/agents/integrations/integration-helpers.js +72 -0
- package/dist/modules/agents/integrations/integration-helpers.js.map +1 -0
- package/dist/modules/agents/integrations/integration-message-context.service.d.ts +13 -0
- package/dist/modules/agents/integrations/integration-message-context.service.js +129 -0
- package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -0
- package/dist/modules/agents/integrations/integration-tools.d.ts +205 -0
- package/dist/modules/agents/integrations/integration-tools.js +955 -0
- package/dist/modules/agents/integrations/integration-tools.js.map +1 -0
- package/dist/modules/agents/integrations/integrations-sync.d.ts +1 -1
- package/dist/modules/agents/integrations/integrations-sync.js +1 -29
- package/dist/modules/agents/integrations/integrations-sync.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-memory.d.ts +2 -0
- package/dist/modules/agents/integrations/n8n-memory.js +18 -11
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +13 -2
- package/dist/modules/agents/integrations/platforms/linear-integration.js +70 -15
- package/dist/modules/agents/integrations/platforms/linear-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/linear-operations.d.ts +18 -0
- package/dist/modules/agents/integrations/platforms/linear-operations.js +679 -0
- package/dist/modules/agents/integrations/platforms/linear-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +11 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js +53 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-operations.d.ts +17 -0
- package/dist/modules/agents/integrations/platforms/slack-operations.js +288 -0
- package/dist/modules/agents/integrations/platforms/slack-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +9 -2
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +17 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.js +7 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.d.ts +4 -2
- package/dist/modules/agents/json-config/from-json-config.js +88 -11
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.d.ts +16 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js +155 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -0
- package/dist/modules/agents/json-config/native-web-search-provider-tools.d.ts +8 -0
- package/dist/modules/agents/json-config/native-web-search-provider-tools.js +59 -0
- package/dist/modules/agents/json-config/native-web-search-provider-tools.js.map +1 -0
- package/dist/modules/agents/json-config/schema-text-serializer.js +12 -2
- package/dist/modules/agents/json-config/schema-text-serializer.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +5 -3
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-file.repository.d.ts +7 -0
- package/dist/modules/agents/repositories/agent-file.repository.js +35 -0
- package/dist/modules/agents/repositories/agent-file.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +2 -0
- package/dist/modules/agents/repositories/agent-history.repository.js +18 -0
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-task-run-lock.repository.d.ts +12 -0
- package/dist/modules/agents/repositories/agent-task-run-lock.repository.js +72 -0
- package/dist/modules/agents/repositories/agent-task-run-lock.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.d.ts +11 -0
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.js +45 -0
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-task.repository.d.ts +7 -0
- package/dist/modules/agents/repositories/agent-task.repository.js +32 -0
- package/dist/modules/agents/repositories/agent-task.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent.repository.js +1 -2
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/tools/knowledge/csv-helpers.d.ts +73 -0
- package/dist/modules/agents/tools/knowledge/csv-helpers.js +341 -0
- package/dist/modules/agents/tools/knowledge/csv-helpers.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/csv.operation.d.ts +61 -0
- package/dist/modules/agents/tools/knowledge/csv.operation.js +207 -0
- package/dist/modules/agents/tools/knowledge/csv.operation.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/file-references.d.ts +16 -0
- package/dist/modules/agents/tools/knowledge/file-references.js +35 -0
- package/dist/modules/agents/tools/knowledge/file-references.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/read.operation.d.ts +8 -0
- package/dist/modules/agents/tools/knowledge/read.operation.js +38 -0
- package/dist/modules/agents/tools/knowledge/read.operation.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/schemas.d.ts +1505 -0
- package/dist/modules/agents/tools/knowledge/schemas.js +441 -0
- package/dist/modules/agents/tools/knowledge/schemas.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/search.operation.d.ts +9 -0
- package/dist/modules/agents/tools/knowledge/search.operation.js +332 -0
- package/dist/modules/agents/tools/knowledge/search.operation.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/tool.d.ts +8 -0
- package/dist/modules/agents/tools/knowledge/tool.js +121 -0
- package/dist/modules/agents/tools/knowledge/tool.js.map +1 -0
- package/dist/modules/agents/utils/agent-memory-scope.d.ts +1 -1
- package/dist/modules/agents/utils/agent-memory-scope.js +4 -4
- package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
- package/dist/modules/agents/utils/agent-resource-id.d.ts +1 -1
- package/dist/modules/chat-hub/chat-hub.module.d.ts +2 -2
- package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +4 -4
- package/dist/modules/chat-hub/chat-hub.types.d.ts +5 -5
- package/dist/modules/chat-hub/dto/chat-models-request.dto.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/constants.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/constants.js +2 -1
- package/dist/modules/dynamic-credentials.ee/constants.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.d.ts +9 -2
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +45 -14
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.d.ts +4 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js +16 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +6 -2
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.d.ts +1 -0
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js +21 -2
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +4 -1
- package/dist/modules/instance-ai/eval/execution.service.js +118 -24
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/llm-wire-server.d.ts +8 -3
- package/dist/modules/instance-ai/eval/llm-wire-server.js +147 -50
- package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +45 -8
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-quirks.d.ts +4 -2
- package/dist/modules/instance-ai/eval/mock-quirks.js +83 -4
- package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -1
- package/dist/modules/instance-ai/eval/openai-envelope.d.ts +8 -0
- package/dist/modules/instance-ai/eval/openai-envelope.js +121 -8
- package/dist/modules/instance-ai/eval/openai-envelope.js.map +1 -1
- package/dist/modules/instance-ai/eval/openai-responses-envelope.d.ts +11 -0
- package/dist/modules/instance-ai/eval/openai-responses-envelope.js +238 -0
- package/dist/modules/instance-ai/eval/openai-responses-envelope.js.map +1 -0
- package/dist/modules/instance-ai/eval/request-binary-redactor.d.ts +1 -0
- package/dist/modules/instance-ai/eval/request-binary-redactor.js +74 -0
- package/dist/modules/instance-ai/eval/request-binary-redactor.js.map +1 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +19 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +159 -76
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/extract-resolved-node-parameters.d.ts +7 -0
- package/dist/modules/instance-ai/extract-resolved-node-parameters.js +221 -0
- package/dist/modules/instance-ai/extract-resolved-node-parameters.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +7 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.js +80 -3
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.js +1 -16
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +67 -7
- 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.service.d.ts +24 -1
- package/dist/modules/instance-ai/instance-ai.service.js +400 -26
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +1 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +1 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
- package/dist/modules/instance-ai/message-parser.d.ts +2 -0
- package/dist/modules/instance-ai/message-parser.js +165 -36
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.d.ts +2 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js +13 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.d.ts +12 -0
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js +80 -0
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js.map +1 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.d.ts +1 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js +23 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.d.ts +10 -4
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js +49 -37
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -1
- package/dist/modules/instance-ai/web-research/index.d.ts +0 -2
- package/dist/modules/instance-ai/web-research/index.js +1 -5
- package/dist/modules/instance-ai/web-research/index.js.map +1 -1
- package/dist/modules/ldap.ee/helpers.ee.js +6 -2
- package/dist/modules/ldap.ee/helpers.ee.js.map +1 -1
- package/dist/modules/mcp/mcp.controller.js +13 -6
- package/dist/modules/mcp/mcp.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +10 -2
- package/dist/modules/mcp/mcp.service.js +36 -6
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.settings.controller.d.ts +2 -0
- package/dist/modules/mcp/mcp.settings.service.d.ts +2 -0
- package/dist/modules/mcp/mcp.settings.service.js +6 -5
- package/dist/modules/mcp/mcp.settings.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +6 -0
- package/dist/modules/mcp/mcp.types.js +9 -0
- package/dist/modules/mcp/mcp.types.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +6 -6
- package/dist/modules/mcp/tools/search-workflows.tool.d.ts +2 -1
- package/dist/modules/mcp/tools/search-workflows.tool.js +12 -4
- package/dist/modules/mcp/tools/search-workflows.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +67 -6
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +67 -6
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +51 -0
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -1
- package/dist/modules/mcp-registry/synthesize-type-def.d.ts +2 -0
- package/dist/modules/mcp-registry/synthesize-type-def.js +35 -0
- package/dist/modules/mcp-registry/synthesize-type-def.js.map +1 -0
- package/dist/modules/n8n-packages/engine/import-pipeline.d.ts +24 -0
- package/dist/modules/n8n-packages/engine/import-pipeline.js +206 -0
- package/dist/modules/n8n-packages/engine/import-pipeline.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js +33 -0
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +23 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +68 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +25 -0
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.js +3 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/requirements-extractor.d.ts +4 -0
- package/dist/modules/n8n-packages/entities/requirements-extractor.js +3 -0
- package/dist/modules/n8n-packages/entities/requirements-extractor.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +12 -3
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +11 -20
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +10 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/io/package-reader.d.ts +6 -0
- package/dist/modules/n8n-packages/io/package-reader.js +3 -0
- package/dist/modules/n8n-packages/io/package-reader.js.map +1 -0
- package/dist/modules/n8n-packages/io/slug.utils.d.ts +1 -1
- package/dist/modules/n8n-packages/io/slug.utils.js +3 -3
- package/dist/modules/n8n-packages/io/slug.utils.js.map +1 -1
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.d.ts +13 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.js +84 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.js.map +1 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.d.ts +7 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.js +27 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +7 -2
- package/dist/modules/n8n-packages/n8n-packages.service.js +21 -3
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +22 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +121 -4
- package/dist/modules/n8n-packages/spec/manifest.schema.js +22 -3
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +51 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.js +14 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +15 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +12 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +4 -4
- package/dist/modules/n8n-packages/utils/import-package-upload.d.ts +13 -0
- package/dist/modules/n8n-packages/utils/import-package-upload.js +59 -0
- package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -0
- package/dist/modules/otel/execution-level-tracer.js +15 -6
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +3 -0
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/otel/otel-lifecycle-handler.d.ts +4 -2
- package/dist/modules/otel/otel-lifecycle-handler.js +69 -4
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/otel/otel.config.d.ts +1 -0
- package/dist/modules/otel/otel.config.js +5 -0
- package/dist/modules/otel/otel.config.js.map +1 -1
- package/dist/modules/otel/otel.constants.d.ts +2 -0
- package/dist/modules/otel/otel.constants.js +2 -0
- package/dist/modules/otel/otel.constants.js.map +1 -1
- package/dist/modules/redaction/instance-redaction-enforcement.service.d.ts +4 -0
- package/dist/modules/redaction/instance-redaction-enforcement.service.js +8 -0
- package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -1
- package/dist/modules/redaction/redaction-context-hook.d.ts +9 -0
- package/dist/modules/redaction/redaction-context-hook.js +57 -0
- package/dist/modules/redaction/redaction-context-hook.js.map +1 -0
- package/dist/modules/redaction/redaction.module.js +1 -0
- package/dist/modules/redaction/redaction.module.js.map +1 -1
- package/dist/modules/source-control.ee/constants.d.ts +1 -0
- package/dist/modules/source-control.ee/constants.js +2 -1
- package/dist/modules/source-control.ee/constants.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js +5 -0
- 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 +4 -2
- package/dist/modules/source-control.ee/source-control.controller.ee.js +32 -5
- package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js +2 -0
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js +2 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +1 -1
- package/dist/node-catalog/node-catalog.service.d.ts +2 -0
- package/dist/node-catalog/node-catalog.service.js +38 -2
- package/dist/node-catalog/node-catalog.service.js.map +1 -1
- package/dist/oauth/oauth-browser-binding.service.d.ts +18 -0
- package/dist/oauth/oauth-browser-binding.service.js +68 -0
- package/dist/oauth/oauth-browser-binding.service.js.map +1 -0
- package/dist/oauth/oauth.service.d.ts +10 -4
- package/dist/oauth/oauth.service.js +87 -4
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/oauth/types.d.ts +1 -0
- package/dist/oauth/types.js.map +1 -1
- package/dist/public-api/index.js +5 -1
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/types.d.ts +6 -0
- package/dist/public-api/v1/handlers/credentials/credentials.service.js +1 -0
- package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +5 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +22 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +207 -59
- package/dist/requests.d.ts +4 -0
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +5 -2
- package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
- package/dist/services/ai-workflow-builder.service.d.ts +6 -3
- package/dist/services/ai-workflow-builder.service.js +13 -5
- package/dist/services/ai-workflow-builder.service.js.map +1 -1
- package/dist/services/api-key-auth.strategy.d.ts +4 -1
- package/dist/services/api-key-auth.strategy.js +18 -2
- package/dist/services/api-key-auth.strategy.js.map +1 -1
- package/dist/services/ownership.service.d.ts +1 -0
- package/dist/services/ownership.service.js +7 -0
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +6 -2
- package/dist/services/project.service.ee.js +30 -8
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/public-api-key.service.d.ts +21 -14
- package/dist/services/public-api-key.service.js +14 -9
- package/dist/services/public-api-key.service.js.map +1 -1
- package/dist/telemetry/index.d.ts +6 -9
- package/dist/telemetry/index.js +23 -9
- package/dist/telemetry/index.js.map +1 -1
- package/dist/webhooks/constants.js +5 -1
- package/dist/webhooks/constants.js.map +1 -1
- package/dist/webhooks/live-webhooks.d.ts +8 -1
- package/dist/webhooks/live-webhooks.js +37 -22
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/waiting-forms.js +8 -1
- package/dist/webhooks/waiting-forms.js.map +1 -1
- package/dist/webhooks/webhook-helpers.d.ts +1 -1
- package/dist/webhooks/webhook-helpers.js +20 -10
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-request-handler.js +1 -1
- package/dist/webhooks/webhook-request-handler.js.map +1 -1
- package/dist/workflow-helpers.d.ts +6 -1
- package/dist/workflow-helpers.js +9 -1
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflows/workflow-creation.service.d.ts +4 -1
- package/dist/workflows/workflow-creation.service.js +12 -3
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +1 -0
- package/dist/workflows/workflow-published-data.service.d.ts +11 -0
- package/dist/workflows/workflow-published-data.service.js +39 -0
- package/dist/workflows/workflow-published-data.service.js.map +1 -0
- package/dist/workflows/workflow-validation.service.d.ts +5 -1
- package/dist/workflows/workflow-validation.service.js +55 -2
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.js +4 -0
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +8 -0
- package/package.json +40 -32
- package/templates/form-trigger-completion.handlebars +12 -1
- package/dist/modules/agents/integrations/agent-schedule.service.d.ts +0 -30
- package/dist/modules/agents/integrations/agent-schedule.service.js +0 -331
- package/dist/modules/agents/integrations/agent-schedule.service.js.map +0 -1
- package/dist/modules/instance-ai/web-research/brave-search.d.ts +0 -10
- package/dist/modules/instance-ai/web-research/brave-search.js +0 -44
- package/dist/modules/instance-ai/web-research/brave-search.js.map +0 -1
- package/dist/modules/instance-ai/web-research/searxng-search.d.ts +0 -6
- package/dist/modules/instance-ai/web-research/searxng-search.js +0 -39
- package/dist/modules/instance-ai/web-research/searxng-search.js.map +0 -1
|
@@ -13,12 +13,11 @@ exports.TypeORMAgentCheckpointStore = void 0;
|
|
|
13
13
|
const di_1 = require("@n8n/di");
|
|
14
14
|
const typeorm_1 = require("@n8n/typeorm");
|
|
15
15
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
16
|
-
const instance_ai_checkpoint_entity_1 = require("../entities/instance-ai-checkpoint.entity");
|
|
17
16
|
const instance_ai_checkpoint_repository_1 = require("../repositories/instance-ai-checkpoint.repository");
|
|
17
|
+
const EXPIRED_CHECKPOINT_MESSAGE = 'This action has expired and cannot be resumed. Please start a new turn.';
|
|
18
18
|
let TypeORMAgentCheckpointStore = class TypeORMAgentCheckpointStore {
|
|
19
19
|
constructor(checkpointRepo) {
|
|
20
20
|
this.checkpointRepo = checkpointRepo;
|
|
21
|
-
this.loadQueues = new Map();
|
|
22
21
|
}
|
|
23
22
|
async save(key, state) {
|
|
24
23
|
const threadId = state.persistence?.threadId;
|
|
@@ -27,41 +26,70 @@ let TypeORMAgentCheckpointStore = class TypeORMAgentCheckpointStore {
|
|
|
27
26
|
extra: { key },
|
|
28
27
|
});
|
|
29
28
|
}
|
|
29
|
+
const existing = await this.checkpointRepo.findOne({ where: { key } });
|
|
30
|
+
if (existing) {
|
|
31
|
+
existing.runId = this.getRunId(key);
|
|
32
|
+
existing.threadId = threadId;
|
|
33
|
+
existing.resourceId = state.persistence?.resourceId ?? null;
|
|
34
|
+
existing.state = state;
|
|
35
|
+
existing.expiredAt = null;
|
|
36
|
+
await this.checkpointRepo.save(existing);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
30
39
|
const checkpoint = this.checkpointRepo.create({
|
|
31
40
|
key,
|
|
32
41
|
runId: this.getRunId(key),
|
|
33
42
|
threadId,
|
|
34
43
|
resourceId: state.persistence?.resourceId ?? null,
|
|
35
44
|
state,
|
|
45
|
+
expiredAt: null,
|
|
36
46
|
});
|
|
37
47
|
await this.checkpointRepo.save(checkpoint);
|
|
38
48
|
}
|
|
39
49
|
async load(key) {
|
|
40
|
-
|
|
50
|
+
const checkpoint = await this.checkpointRepo.findOne({ where: { key } });
|
|
51
|
+
if (!checkpoint)
|
|
52
|
+
return undefined;
|
|
53
|
+
if (checkpoint.expiredAt !== null || checkpoint.state === null) {
|
|
54
|
+
throw new n8n_workflow_1.UserError(EXPIRED_CHECKPOINT_MESSAGE);
|
|
55
|
+
}
|
|
56
|
+
return checkpoint.state;
|
|
41
57
|
}
|
|
42
58
|
async delete(key) {
|
|
43
|
-
await this.checkpointRepo.
|
|
59
|
+
await this.checkpointRepo.update({ key }, { expiredAt: new Date(), state: null });
|
|
44
60
|
}
|
|
45
|
-
async
|
|
46
|
-
const result = await this.checkpointRepo
|
|
61
|
+
async markExpiredOlderThan(olderThan) {
|
|
62
|
+
const result = await this.checkpointRepo
|
|
63
|
+
.createQueryBuilder()
|
|
64
|
+
.update()
|
|
65
|
+
.set({ expiredAt: new Date(), state: null })
|
|
66
|
+
.where('updatedAt < :olderThan', { olderThan })
|
|
67
|
+
.andWhere('expiredAt IS NULL')
|
|
68
|
+
.execute();
|
|
47
69
|
return result.affected ?? 0;
|
|
48
70
|
}
|
|
49
|
-
async
|
|
50
|
-
return await this.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
async deleteOlderThan(olderThan) {
|
|
72
|
+
return await this.markExpiredOlderThan(olderThan);
|
|
73
|
+
}
|
|
74
|
+
async findSuspendedSubAgentResumeInfo(resourceId) {
|
|
75
|
+
const row = await this.checkpointRepo.findActiveByResourceId(resourceId);
|
|
76
|
+
if (!row?.state)
|
|
77
|
+
return undefined;
|
|
78
|
+
const suspendedEntry = Object.entries(row.state.pendingToolCalls ?? {}).find(([, call]) => call.suspended);
|
|
79
|
+
const persistence = row.state.persistence;
|
|
80
|
+
if (!suspendedEntry || !persistence?.threadId || !persistence.resourceId)
|
|
81
|
+
return undefined;
|
|
82
|
+
return {
|
|
83
|
+
runId: row.key,
|
|
84
|
+
toolCallId: suspendedEntry[0],
|
|
85
|
+
persistence: { threadId: persistence.threadId, resourceId: persistence.resourceId },
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
async hardDeleteExpiredOlderThan(olderThan) {
|
|
89
|
+
const result = await this.checkpointRepo.delete({
|
|
90
|
+
expiredAt: (0, typeorm_1.LessThan)(olderThan),
|
|
64
91
|
});
|
|
92
|
+
return result.affected ?? 0;
|
|
65
93
|
}
|
|
66
94
|
getRunId(key) {
|
|
67
95
|
const separatorIndex = key.lastIndexOf(':');
|
|
@@ -69,22 +97,6 @@ let TypeORMAgentCheckpointStore = class TypeORMAgentCheckpointStore {
|
|
|
69
97
|
return null;
|
|
70
98
|
return key.slice(separatorIndex + 1);
|
|
71
99
|
}
|
|
72
|
-
supportsPessimisticWriteLock(manager) {
|
|
73
|
-
return manager.connection.options.type === 'postgres';
|
|
74
|
-
}
|
|
75
|
-
async serializeLoad(key, load) {
|
|
76
|
-
const previous = this.loadQueues.get(key) ?? Promise.resolve(undefined);
|
|
77
|
-
const next = previous.catch(() => undefined).then(load);
|
|
78
|
-
this.loadQueues.set(key, next);
|
|
79
|
-
try {
|
|
80
|
-
return await next;
|
|
81
|
-
}
|
|
82
|
-
finally {
|
|
83
|
-
if (this.loadQueues.get(key) === next) {
|
|
84
|
-
this.loadQueues.delete(key);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
100
|
};
|
|
89
101
|
exports.TypeORMAgentCheckpointStore = TypeORMAgentCheckpointStore;
|
|
90
102
|
exports.TypeORMAgentCheckpointStore = TypeORMAgentCheckpointStore = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeorm-agent-checkpoint-store.js","sourceRoot":"","sources":["../../../../src/modules/instance-ai/storage/typeorm-agent-checkpoint-store.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAkC;AAElC,
|
|
1
|
+
{"version":3,"file":"typeorm-agent-checkpoint-store.js","sourceRoot":"","sources":["../../../../src/modules/instance-ai/storage/typeorm-agent-checkpoint-store.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAkC;AAElC,0CAAwC;AACxC,+CAA0D;AAE1D,yGAAmG;AAEnG,MAAM,0BAA0B,GAC/B,yEAAyE,CAAC;AAGpE,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACvC,YAA6B,cAA8C;QAA9C,mBAAc,GAAd,cAAc,CAAgC;IAAG,CAAC;IAE/E,KAAK,CAAC,IAAI,CAAC,GAAW,EAAE,KAA6B;QACpD,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,EAAE,QAAQ,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;YACf,MAAM,IAAI,8BAAe,CAAC,qDAAqD,EAAE;gBAChF,KAAK,EAAE,EAAE,GAAG,EAAE;aACd,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QACvE,IAAI,QAAQ,EAAE,CAAC;YACd,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;YACpC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC7B,QAAQ,CAAC,UAAU,GAAG,KAAK,CAAC,WAAW,EAAE,UAAU,IAAI,IAAI,CAAC;YAC5D,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;YACvB,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;YAC1B,MAAM,IAAI,CAAC,cAAc,CAAC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,IAAI,CAAC,CAAC;IAC7B,CAAC;IAEO,QAAQ,CAAC,GAAW;QAC3B,MAAM,cAAc,GAAG,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,cAAc,GAAG,CAAC,IAAI,cAAc,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QACzE,OAAO,GAAG,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;CACD,CAAA;AAtHY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,YAAO,GAAE;qCAEoC,kEAA8B;GAD/D,2BAA2B,CAsHvC"}
|
|
@@ -2,5 +2,3 @@ export { fetchAndExtract } from './fetch-and-extract';
|
|
|
2
2
|
export type { FetchAndExtractOptions } from './fetch-and-extract';
|
|
3
3
|
export { maybeSummarize } from './summarize-content';
|
|
4
4
|
export { LRUCache } from './cache';
|
|
5
|
-
export { braveSearch } from './brave-search';
|
|
6
|
-
export { searxngSearch } from './searxng-search';
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.LRUCache = exports.maybeSummarize = exports.fetchAndExtract = void 0;
|
|
4
4
|
var fetch_and_extract_1 = require("./fetch-and-extract");
|
|
5
5
|
Object.defineProperty(exports, "fetchAndExtract", { enumerable: true, get: function () { return fetch_and_extract_1.fetchAndExtract; } });
|
|
6
6
|
var summarize_content_1 = require("./summarize-content");
|
|
7
7
|
Object.defineProperty(exports, "maybeSummarize", { enumerable: true, get: function () { return summarize_content_1.maybeSummarize; } });
|
|
8
8
|
var cache_1 = require("./cache");
|
|
9
9
|
Object.defineProperty(exports, "LRUCache", { enumerable: true, get: function () { return cache_1.LRUCache; } });
|
|
10
|
-
var brave_search_1 = require("./brave-search");
|
|
11
|
-
Object.defineProperty(exports, "braveSearch", { enumerable: true, get: function () { return brave_search_1.braveSearch; } });
|
|
12
|
-
var searxng_search_1 = require("./searxng-search");
|
|
13
|
-
Object.defineProperty(exports, "searxngSearch", { enumerable: true, get: function () { return searxng_search_1.searxngSearch; } });
|
|
14
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/instance-ai/web-research/index.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AAExB,yDAAqD;AAA5C,mHAAA,cAAc,OAAA;AACvB,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/instance-ai/web-research/index.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AAExB,yDAAqD;AAA5C,mHAAA,cAAc,OAAA;AACvB,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA"}
|
|
@@ -4,7 +4,6 @@ exports.deleteAllLdapIdentities = exports.updateLdapUserOnLocalDb = exports.crea
|
|
|
4
4
|
const db_1 = require("@n8n/db");
|
|
5
5
|
const di_1 = require("@n8n/di");
|
|
6
6
|
const jsonschema_1 = require("jsonschema");
|
|
7
|
-
const Filter_1 = require("ldapts/filters/Filter");
|
|
8
7
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
9
8
|
const constants_1 = require("./constants");
|
|
10
9
|
const validateLdapConfigurationSchema = (ldapConfig) => {
|
|
@@ -38,7 +37,12 @@ const createFilter = (filter, userFilter) => {
|
|
|
38
37
|
};
|
|
39
38
|
exports.createFilter = createFilter;
|
|
40
39
|
const escapeFilter = (filter) => {
|
|
41
|
-
return
|
|
40
|
+
return (filter
|
|
41
|
+
.replace(/\\/g, '\\5c')
|
|
42
|
+
.replace(/\*/g, '\\2a')
|
|
43
|
+
.replace(/\(/g, '\\28')
|
|
44
|
+
.replace(/\)/g, '\\29')
|
|
45
|
+
.replace(/\x00/g, '\\00'));
|
|
42
46
|
};
|
|
43
47
|
exports.escapeFilter = escapeFilter;
|
|
44
48
|
const getAuthIdentityByLdapId = async (idAttributeValue) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.ee.js","sourceRoot":"","sources":["../../../src/modules/ldap.ee/helpers.ee.ts"],"names":[],"mappings":";;;AAEA,gCAOiB;AACjB,gCAAoC;AACpC,2CAAsC;AAEtC
|
|
1
|
+
{"version":3,"file":"helpers.ee.js","sourceRoot":"","sources":["../../../src/modules/ldap.ee/helpers.ee.ts"],"names":[],"mappings":";;;AAEA,gCAOiB;AACjB,gCAAoC;AACpC,2CAAsC;AAEtC,+CAA4C;AAE5C,2CAAuE;AAKhE,MAAM,+BAA+B,GAAG,CAC9C,UAAsB,EACgB,EAAE;IACxC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAA,qBAAQ,EAAC,UAAU,EAAE,8BAAkB,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IAE3F,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7F,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAC3B,CAAC,CAAC;AAVW,QAAA,+BAA+B,mCAU1C;AAEK,MAAM,4BAA4B,GAAG,CAAC,KAAe,EAAY,EAAE;IACzE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;SACnB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SACjD,OAAO,CAAC,C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AACb,CAAC,CAAC;AARW,QAAA,uBAAuB,2BAQlC;AAEK,MAAM,uBAAuB,GAAG,KAAK,EAAE,QAAsB,EAAE,IAAmB,EAAE,EAAE;IAC5F,MAAM,MAAM,GAAG,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC;IAClC,IAAI,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,GAAG,MAAM,cAAS,CAAC,GAAG,CAAC,mBAAc,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAE3E,IAAI,IAAI,EAAE,CAAC;YACV,MAAM,cAAS,CAAC,GAAG,CAAC,mBAAc,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1F,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AATW,QAAA,uBAAuB,2BASlC;AAEK,MAAM,uBAAuB,GAAG,KAAK,IAAI,EAAE;IACjD,OAAO,MAAM,cAAS,CAAC,GAAG,CAAC,2BAAsB,CAAC,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;AACrF,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC"}
|
|
@@ -83,7 +83,8 @@ let McpController = class McpController {
|
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
85
|
try {
|
|
86
|
-
await this.
|
|
86
|
+
const { enabled: mcpAppsEnabled } = await this.mcpService.resolveMcpAppsVariant(req.user);
|
|
87
|
+
await this.handleTransportRequest(req, res, mcpAppsEnabled);
|
|
87
88
|
}
|
|
88
89
|
catch (error) {
|
|
89
90
|
this.errorReporter.error(error);
|
|
@@ -106,7 +107,7 @@ let McpController = class McpController {
|
|
|
106
107
|
const isInitializationRequest = (0, mcp_typeguards_1.isJSONRPCRequest)(body) ? body.method === 'initialize' : false;
|
|
107
108
|
const isToolCallRequest = (0, mcp_typeguards_1.isJSONRPCRequest)(body) ? body.method === 'toolCall' : false;
|
|
108
109
|
const clientInfo = (0, mcp_utils_1.getClientInfo)(req);
|
|
109
|
-
const
|
|
110
|
+
const baseTelemetryPayload = {
|
|
110
111
|
user_id: req.user.id,
|
|
111
112
|
client_name: clientInfo?.name,
|
|
112
113
|
client_version: clientInfo?.version,
|
|
@@ -116,7 +117,7 @@ let McpController = class McpController {
|
|
|
116
117
|
if (!enabled) {
|
|
117
118
|
if (isInitializationRequest) {
|
|
118
119
|
this.trackConnectionEvent({
|
|
119
|
-
...
|
|
120
|
+
...baseTelemetryPayload,
|
|
120
121
|
mcp_connection_status: 'error',
|
|
121
122
|
error: mcp_constants_1.MCP_ACCESS_DISABLED_ERROR_MESSAGE,
|
|
122
123
|
});
|
|
@@ -124,8 +125,14 @@ let McpController = class McpController {
|
|
|
124
125
|
res.status(403).json({ message: mcp_constants_1.MCP_ACCESS_DISABLED_ERROR_MESSAGE });
|
|
125
126
|
return;
|
|
126
127
|
}
|
|
128
|
+
const mcpAppsResolution = await this.mcpService.resolveMcpAppsVariant(req.user);
|
|
129
|
+
const telemetryPayload = {
|
|
130
|
+
...baseTelemetryPayload,
|
|
131
|
+
mcp_apps_enabled: mcpAppsResolution.enabled,
|
|
132
|
+
mcp_apps_variant: mcpAppsResolution.variant,
|
|
133
|
+
};
|
|
127
134
|
try {
|
|
128
|
-
await this.handleTransportRequest(req, res, req.body);
|
|
135
|
+
await this.handleTransportRequest(req, res, mcpAppsResolution.enabled, req.body);
|
|
129
136
|
if (isInitializationRequest) {
|
|
130
137
|
this.trackConnectionEvent({
|
|
131
138
|
...telemetryPayload,
|
|
@@ -157,9 +164,9 @@ let McpController = class McpController {
|
|
|
157
164
|
}
|
|
158
165
|
}
|
|
159
166
|
}
|
|
160
|
-
async handleTransportRequest(req, res, body) {
|
|
167
|
+
async handleTransportRequest(req, res, mcpAppsEnabled, body) {
|
|
161
168
|
const { StreamableHTTPServerTransport } = await Promise.resolve().then(() => __importStar(require('@modelcontextprotocol/sdk/server/streamableHttp.js')));
|
|
162
|
-
const server = await this.mcpService.getServer(req.user);
|
|
169
|
+
const server = await this.mcpService.getServer(req.user, mcpAppsEnabled);
|
|
163
170
|
const transport = new StreamableHTTPServerTransport({
|
|
164
171
|
sessionIdGenerator: undefined,
|
|
165
172
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.controller.js","sourceRoot":"","sources":["../../../src/modules/mcp/mcp.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA6C;AAE7C,gDAAuE;AACvE,gCAAoC;AAEpC,uCAAyC;AAEzC,2CAAwC;AAExC,mFAA6E;AAC7E,mDAIyB;AACzB,+CAA2C;AAC3C,iEAA4D;AAC5D,qDAAoD;AAEpD,2CAA4C;AAI5C,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,cAAS,CAAC,GAAG,CAAC,0DAA0B,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAGvF,IAAM,aAAa,GAAnB,MAAM,aAAa;IACzB,YACkB,aAA4B,EAC5B,UAAsB,EACtB,kBAAsC,EACtC,SAAoB,EACpB,MAAc;QAJd,kBAAa,GAAb,aAAa,CAAe;QAC5B,eAAU,GAAV,UAAU,CAAY;QACtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,cAAS,GAAT,SAAS,CAAW;QACpB,WAAM,GAAN,MAAM,CAAQ;IAC7B,CAAC;IAGI,cAAc,CAAC,GAAa;QAEnC,GAAG,CAAC,MAAM,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC;QAC/C,GAAG,CAAC,MAAM,CAAC,8BAA8B,EAAE,oBAAoB,CAAC,CAAC;QACjE,GAAG,CAAC,MAAM,CAAC,8BAA8B,EAAE,+CAA+C,CAAC,CAAC;QAC5F,GAAG,CAAC,MAAM,CAAC,kCAAkC,EAAE,MAAM,CAAC,CAAC;QACvD,GAAG,C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,CAAC;IAEO,oBAAoB,CAAC,OAAuC;QACnE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,2CAA2B,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACD,CAAA;AA5LY,sCAAa;AAqCnB;IAJL,IAAA,iBAAI,EAAC,OAAO,EAAE;QACd,QAAQ,EAAE,IAAI;QACd,aAAa,EAAE,IAAI;KACnB,CAAC;;;;2DAKD;AAYK;IANL,IAAA,gBAAG,EAAC,OAAO,EAAE;QACb,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;QAC3B,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC;QAClC,QAAQ,EAAE,IAAI;QACd,aAAa,EAAE,IAAI;KACnB,CAAC;;;;8CA0BD;AAQK;IANL,IAAA,iBAAI,EAAC,OAAO,EAAE;QACd,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;QAC3B,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC;QAClC,QAAQ,EAAE,IAAI;QACd,aAAa,EAAE,IAAI;KACnB,CAAC;;;;0CA6ED;wBAlKW,aAAa;IADzB,IAAA,gCAAmB,EAAC,aAAa,CAAC;qCAGD,wBAAa;QAChB,wBAAU;QACF,yCAAkB;QAC3B,qBAAS;QACZ,uBAAM;GANpB,aAAa,CA4LzB"}
|
|
@@ -10,6 +10,7 @@ import { CollaborationService } from '../../collaboration/collaboration.service'
|
|
|
10
10
|
import { CredentialsService } from '../../credentials/credentials.service';
|
|
11
11
|
import { DataTableProxyService } from '../../modules/data-table/data-table-proxy.service';
|
|
12
12
|
import { NodeTypes } from '../../node-types';
|
|
13
|
+
import { PostHogClient } from '../../posthog';
|
|
13
14
|
import { ProjectService } from '../../services/project.service.ee';
|
|
14
15
|
import { RoleService } from '../../services/role.service';
|
|
15
16
|
import { UrlService } from '../../services/url.service';
|
|
@@ -18,7 +19,12 @@ import { WorkflowRunner } from '../../workflow-runner';
|
|
|
18
19
|
import { WorkflowCreationService } from '../../workflows/workflow-creation.service';
|
|
19
20
|
import { WorkflowFinderService } from '../../workflows/workflow-finder.service';
|
|
20
21
|
import { WorkflowService } from '../../workflows/workflow.service';
|
|
22
|
+
import type { McpAppsTelemetryVariant } from './mcp.types';
|
|
21
23
|
import { ExecutionService } from '../../executions/execution.service';
|
|
24
|
+
export type McpAppsResolution = {
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
variant: McpAppsTelemetryVariant;
|
|
27
|
+
};
|
|
22
28
|
export declare class McpService {
|
|
23
29
|
private readonly logger;
|
|
24
30
|
private readonly executionsConfig;
|
|
@@ -42,9 +48,11 @@ export declare class McpService {
|
|
|
42
48
|
private readonly executionService;
|
|
43
49
|
private readonly dataTableProxyService;
|
|
44
50
|
private readonly collaborationService;
|
|
51
|
+
private readonly postHogClient;
|
|
45
52
|
private readonly pendingResponses;
|
|
46
|
-
constructor(logger: Logger, executionsConfig: ExecutionsConfig, _instanceSettings: InstanceSettings, workflowFinderService: WorkflowFinderService, workflowService: WorkflowService, urlService: UrlService, credentialsService: CredentialsService, activeExecutions: ActiveExecutions, globalConfig: GlobalConfig, telemetry: Telemetry, workflowRunner: WorkflowRunner, roleService: RoleService, projectService: ProjectService, nodeCatalogService: NodeCatalogService, workflowCreationService: WorkflowCreationService, nodeTypes: NodeTypes, projectRepository: ProjectRepository, folderRepository: FolderRepository, sharedWorkflowRepository: SharedWorkflowRepository, executionRepository: ExecutionRepository, executionService: ExecutionService, dataTableProxyService: DataTableProxyService, collaborationService: CollaborationService);
|
|
47
|
-
|
|
53
|
+
constructor(logger: Logger, executionsConfig: ExecutionsConfig, _instanceSettings: InstanceSettings, workflowFinderService: WorkflowFinderService, workflowService: WorkflowService, urlService: UrlService, credentialsService: CredentialsService, activeExecutions: ActiveExecutions, globalConfig: GlobalConfig, telemetry: Telemetry, workflowRunner: WorkflowRunner, roleService: RoleService, projectService: ProjectService, nodeCatalogService: NodeCatalogService, workflowCreationService: WorkflowCreationService, nodeTypes: NodeTypes, projectRepository: ProjectRepository, folderRepository: FolderRepository, sharedWorkflowRepository: SharedWorkflowRepository, executionRepository: ExecutionRepository, executionService: ExecutionService, dataTableProxyService: DataTableProxyService, collaborationService: CollaborationService, postHogClient: PostHogClient);
|
|
54
|
+
resolveMcpAppsVariant(user: User): Promise<McpAppsResolution>;
|
|
55
|
+
getServer(user: User, mcpAppsEnabled: boolean): Promise<McpServer>;
|
|
48
56
|
private registerBuilderTools;
|
|
49
57
|
get isQueueMode(): boolean;
|
|
50
58
|
createPendingResponse(executionId: string): IDeferredPromise<IRun | undefined>;
|
|
@@ -43,10 +43,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.McpService = void 0;
|
|
46
|
+
const api_types_1 = require("@n8n/api-types");
|
|
46
47
|
const backend_common_1 = require("@n8n/backend-common");
|
|
47
48
|
const config_1 = require("@n8n/config");
|
|
48
49
|
const db_1 = require("@n8n/db");
|
|
49
50
|
const di_1 = require("@n8n/di");
|
|
51
|
+
const server_1 = require("@n8n/mcp-apps/server");
|
|
50
52
|
const n8n_core_1 = require("n8n-core");
|
|
51
53
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
52
54
|
const data_table_1 = require("./tools/data-table");
|
|
@@ -76,6 +78,7 @@ const collaboration_service_1 = require("../../collaboration/collaboration.servi
|
|
|
76
78
|
const credentials_service_1 = require("../../credentials/credentials.service");
|
|
77
79
|
const data_table_proxy_service_1 = require("../../modules/data-table/data-table-proxy.service");
|
|
78
80
|
const node_types_1 = require("../../node-types");
|
|
81
|
+
const posthog_1 = require("../../posthog");
|
|
79
82
|
const project_service_ee_1 = require("../../services/project.service.ee");
|
|
80
83
|
const role_service_1 = require("../../services/role.service");
|
|
81
84
|
const url_service_1 = require("../../services/url.service");
|
|
@@ -88,7 +91,7 @@ const prepare_workflow_pin_data_tool_1 = require("./tools/prepare-workflow-pin-d
|
|
|
88
91
|
const test_workflow_tool_1 = require("./tools/test-workflow.tool");
|
|
89
92
|
const execution_service_1 = require("../../executions/execution.service");
|
|
90
93
|
let McpService = class McpService {
|
|
91
|
-
constructor(logger, executionsConfig, _instanceSettings, workflowFinderService, workflowService, urlService, credentialsService, activeExecutions, globalConfig, telemetry, workflowRunner, roleService, projectService, nodeCatalogService, workflowCreationService, nodeTypes, projectRepository, folderRepository, sharedWorkflowRepository, executionRepository, executionService, dataTableProxyService, collaborationService) {
|
|
94
|
+
constructor(logger, executionsConfig, _instanceSettings, workflowFinderService, workflowService, urlService, credentialsService, activeExecutions, globalConfig, telemetry, workflowRunner, roleService, projectService, nodeCatalogService, workflowCreationService, nodeTypes, projectRepository, folderRepository, sharedWorkflowRepository, executionRepository, executionService, dataTableProxyService, collaborationService, postHogClient) {
|
|
92
95
|
this.logger = logger;
|
|
93
96
|
this.executionsConfig = executionsConfig;
|
|
94
97
|
this.workflowFinderService = workflowFinderService;
|
|
@@ -111,9 +114,22 @@ let McpService = class McpService {
|
|
|
111
114
|
this.executionService = executionService;
|
|
112
115
|
this.dataTableProxyService = dataTableProxyService;
|
|
113
116
|
this.collaborationService = collaborationService;
|
|
117
|
+
this.postHogClient = postHogClient;
|
|
114
118
|
this.pendingResponses = new Map();
|
|
115
119
|
}
|
|
116
|
-
async
|
|
120
|
+
async resolveMcpAppsVariant(user) {
|
|
121
|
+
if (this.globalConfig.endpoints.mcpAppsEnabled) {
|
|
122
|
+
return { enabled: true, variant: 'env_override' };
|
|
123
|
+
}
|
|
124
|
+
const flags = await this.postHogClient.getFeatureFlags(user);
|
|
125
|
+
const raw = flags?.[api_types_1.MCP_APPS_FLAG];
|
|
126
|
+
if (raw === api_types_1.MCP_APPS_VARIANT_ENABLED)
|
|
127
|
+
return { enabled: true, variant: 'variant' };
|
|
128
|
+
if (raw === api_types_1.MCP_APPS_VARIANT_CONTROL)
|
|
129
|
+
return { enabled: false, variant: 'control' };
|
|
130
|
+
return { enabled: false, variant: 'unassigned' };
|
|
131
|
+
}
|
|
132
|
+
async getServer(user, mcpAppsEnabled) {
|
|
117
133
|
const { McpServer } = await Promise.resolve().then(() => __importStar(require('@modelcontextprotocol/sdk/server/mcp.js')));
|
|
118
134
|
const builderEnabled = this.globalConfig.endpoints.mcpBuilderEnabled;
|
|
119
135
|
const server = new McpServer({
|
|
@@ -161,11 +177,11 @@ let McpService = class McpService {
|
|
|
161
177
|
const addDataTableRowsTool = (0, data_table_1.createAddDataTableRowsTool)(user, dataTableOps, this.telemetry);
|
|
162
178
|
server.registerTool(addDataTableRowsTool.name, addDataTableRowsTool.config, addDataTableRowsTool.handler);
|
|
163
179
|
if (builderEnabled) {
|
|
164
|
-
await this.registerBuilderTools(server, user, dataTableOps);
|
|
180
|
+
await this.registerBuilderTools(server, user, dataTableOps, mcpAppsEnabled);
|
|
165
181
|
}
|
|
166
182
|
return server;
|
|
167
183
|
}
|
|
168
|
-
async registerBuilderTools(server, user, dataTableOps) {
|
|
184
|
+
async registerBuilderTools(server, user, dataTableOps, mcpAppsEnabled) {
|
|
169
185
|
await this.nodeCatalogService.initialize();
|
|
170
186
|
const searchNodesTool = (0, search_workflow_nodes_tool_1.createSearchWorkflowNodesTool)(user, this.nodeCatalogService, this.telemetry);
|
|
171
187
|
server.registerTool(searchNodesTool.name, searchNodesTool.config, searchNodesTool.handler);
|
|
@@ -176,7 +192,20 @@ let McpService = class McpService {
|
|
|
176
192
|
const validateTool = (0, validate_workflow_code_tool_1.createValidateWorkflowCodeTool)(user, this.telemetry, this.nodeTypes);
|
|
177
193
|
server.registerTool(validateTool.name, validateTool.config, validateTool.handler);
|
|
178
194
|
const createTool = (0, create_workflow_from_code_tool_1.createCreateWorkflowFromCodeTool)(user, this.workflowCreationService, this.workflowFinderService, this.urlService, this.telemetry, this.nodeTypes, this.credentialsService, this.projectRepository, dataTableOps);
|
|
179
|
-
|
|
195
|
+
if (mcpAppsEnabled) {
|
|
196
|
+
(0, server_1.registerWorkflowPreviewApp)(server);
|
|
197
|
+
(0, server_1.registerMcpAppTool)(server, createTool.name, {
|
|
198
|
+
...createTool.config,
|
|
199
|
+
_meta: {
|
|
200
|
+
ui: {
|
|
201
|
+
resourceUri: server_1.WORKFLOW_PREVIEW_APP_URI,
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
}, createTool.handler);
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
server.registerTool(createTool.name, createTool.config, createTool.handler);
|
|
208
|
+
}
|
|
180
209
|
const searchProjectsTool = (0, search_projects_tool_1.createSearchProjectsTool)(user, this.projectRepository, this.telemetry);
|
|
181
210
|
server.registerTool(searchProjectsTool.name, searchProjectsTool.config, searchProjectsTool.handler);
|
|
182
211
|
const searchFoldersTool = (0, search_folders_tool_1.createSearchFoldersTool)(user, this.folderRepository, this.projectService, this.telemetry);
|
|
@@ -279,6 +308,7 @@ exports.McpService = McpService = __decorate([
|
|
|
279
308
|
db_1.ExecutionRepository,
|
|
280
309
|
execution_service_1.ExecutionService,
|
|
281
310
|
data_table_proxy_service_1.DataTableProxyService,
|
|
282
|
-
collaboration_service_1.CollaborationService
|
|
311
|
+
collaboration_service_1.CollaborationService,
|
|
312
|
+
posthog_1.PostHogClient])
|
|
283
313
|
], McpService);
|
|
284
314
|
//# sourceMappingURL=mcp.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.service.js","sourceRoot":"","sources":["../../../src/modules/mcp/mcp.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,wDAA6C;AAC7C,wCAA6D;AAC7D,gCAMiB;AACjB,gCAAkC;AAClC,uCAA4C;AAC5C,+CAKsB;AAEtB,mDAQ4B;AAC5B,yEAA0E;AAC1E,mEAAoE;AACpE,2EAA4E;AAC5E,iFAA8E;AAC9E,yEAA0E;AAC1E,yEAA0E;AAC1E,qEAAsE;AACtE,uEAAwE;AACxE,yEAA0E;AAC1E,6EAA8E;AAC9E,4GAA2G;A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CAAoB;GA9BhD,UAAU,CAuctB"}
|
|
1
|
+
{"version":3,"file":"mcp.service.js","sourceRoot":"","sources":["../../../src/modules/mcp/mcp.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,8CAAmG;AACnG,wDAA6C;AAC7C,wCAA6D;AAC7D,gCAMiB;AACjB,gCAAkC;AAClC,iDAI8B;AAC9B,uCAA4C;AAC5C,+CAKsB;AAEtB,mDAQ4B;AAC5B,yEAA0E;AAC1E,mEAAoE;AACpE,2EAA4E;AAC5E,iFAA8E;AAC9E,yEAA0E;AAC1E,yEAA0E;AAC1E,qEAAsE;AACtE,uEAAwE;AACxE,yEAA0E;AAC1E,6EAA8E;AAC9E,4GAA2G;AAC3G,wFAA0F;AAC1F,wFAAyF;AACzF,kHAAiH;AACjH,wGAAuG;AACvG,8GAA6G;AAC7G,gFAA+E;AAC/E,oGAAoG;AACpG,0FAAwF;AACxF,sGAAsG;AACtG,iDAAoD;AAEpD,2DAAuD;AACvD,iFAA6E;AAC7E,2EAAuE;AACvE,4FAAsF;AACtF,6CAAyC;AACzC,uCAA0C;AAC1C,sEAA+D;AAC/D,0DAAsD;AACtD,wDAAoD;AACpD,2CAAwC;AACxC,uDAAmD;AACnD,qFAAgF;AAChF,iFAA4E;AAC5E,mEAA+D;AAE/D,2FAAsF;AACtF,mEAAoE;AACpE,sEAAkE;AAiB3D,IAAM,UAAU,GAAhB,MAAM,UAAU;IAOtB,YACkB,MAAc,EACd,gBAAkC,EACnD,iBAAmC,EAClB,qBAA4C,EAC5C,eAAgC,EAChC,UAAsB,EACtB,kBAAsC,EACtC,gBAAkC,EAClC,YAA0B,EAC1B,SAAoB,EACpB,cAA8B,EAC9B,WAAwB,EACxB,cAA8B,EAC9B,kBAAsC,EACtC,uBAAgD,EAChD,SAAoB,EACpB,iBAAoC,EACpC,gBAAkC,EAClC,wBAAkD,EAClD,mBAAwC,EACxC,gBAAkC,EAClC,qBAA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QACI,yBAAgB;QAChC,2BAAgB;QACK,+CAAqB;QAC3B,kCAAe;QACpB,wBAAU;QACF,wCAAkB;QACpB,oCAAgB;QACpB,qBAAY;QACf,qBAAS;QACJ,gCAAc;QACjB,0BAAW;QACR,mCAAc;QACV,iCAAkB;QACb,mDAAuB;QACrC,sBAAS;QACD,sBAAiB;QAClB,qBAAgB;QACR,6BAAwB;QAC7B,wBAAmB;QACtB,oCAAgB;QACX,gDAAqB;QACtB,4CAAoB;QAC3B,uBAAa;GA/BlC,UAAU,CAyetB"}
|
|
@@ -24,8 +24,10 @@ export declare class McpSettingsController {
|
|
|
24
24
|
getMcpEligibleWorkflows(req: ListQuery.Request, res: Response): Promise<void>;
|
|
25
25
|
toggleWorkflowsMCPAccess(req: AuthenticatedRequest, _res: Response, dto: UpdateWorkflowsAvailabilityDto): Promise<{
|
|
26
26
|
updatedCount: number;
|
|
27
|
+
unchangedCount: number;
|
|
27
28
|
skippedCount: number;
|
|
28
29
|
failedCount: number;
|
|
29
30
|
updatedIds?: string[];
|
|
31
|
+
unchangedIds?: string[];
|
|
30
32
|
}>;
|
|
31
33
|
}
|
|
@@ -9,10 +9,12 @@ import { WorkflowFinderService } from '../../workflows/workflow-finder.service';
|
|
|
9
9
|
import type { UpdateWorkflowsAvailabilityDto } from './dto/update-workflows-availability.dto';
|
|
10
10
|
type BulkSetAvailableInMCPResult = {
|
|
11
11
|
updatedCount: number;
|
|
12
|
+
unchangedCount: number;
|
|
12
13
|
skippedCount: number;
|
|
13
14
|
failedCount: number;
|
|
14
15
|
changedWorkflows: WorkflowMCPAvailabilityChange[];
|
|
15
16
|
updatedIds?: string[];
|
|
17
|
+
unchangedIds?: string[];
|
|
16
18
|
};
|
|
17
19
|
type WorkflowMCPAvailabilityChange = {
|
|
18
20
|
workflowId: string;
|
|
@@ -64,10 +64,11 @@ let McpSettingsService = class McpSettingsService {
|
|
|
64
64
|
if (candidateIds.length === 0) {
|
|
65
65
|
return {
|
|
66
66
|
updatedCount: 0,
|
|
67
|
+
unchangedCount: 0,
|
|
67
68
|
skippedCount: baselineSize,
|
|
68
69
|
failedCount: 0,
|
|
69
70
|
changedWorkflows: [],
|
|
70
|
-
...(isWorkflowIdsScope ? { updatedIds: [] } : {}),
|
|
71
|
+
...(isWorkflowIdsScope ? { updatedIds: [], unchangedIds: [] } : {}),
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
const writtenIds = [];
|
|
@@ -132,13 +133,13 @@ let McpSettingsService = class McpSettingsService {
|
|
|
132
133
|
});
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
|
-
const confirmedIds = [...writtenIds, ...noOpIds];
|
|
136
136
|
return {
|
|
137
|
-
updatedCount:
|
|
138
|
-
|
|
137
|
+
updatedCount: writtenIds.length,
|
|
138
|
+
unchangedCount: noOpIds.length,
|
|
139
|
+
skippedCount: Math.max(0, baselineSize - writtenIds.length - noOpIds.length - failedCount),
|
|
139
140
|
failedCount,
|
|
140
141
|
changedWorkflows,
|
|
141
|
-
...(isWorkflowIdsScope ? { updatedIds:
|
|
142
|
+
...(isWorkflowIdsScope ? { updatedIds: writtenIds, unchangedIds: noOpIds } : {}),
|
|
142
143
|
};
|
|
143
144
|
}
|
|
144
145
|
async broadcastWorkflowMCPAvailabilityChanged(changes) {
|