n8n 2.23.2 → 2.25.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.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-data/db-store.d.ts +1 -0
- package/dist/executions/execution-data/db-store.js +26 -0
- package/dist/executions/execution-data/db-store.js.map +1 -1
- package/dist/executions/execution-data/fs-store.d.ts +2 -0
- package/dist/executions/execution-data/fs-store.js +27 -0
- package/dist/executions/execution-data/fs-store.js.map +1 -1
- package/dist/executions/execution-data/types.d.ts +1 -0
- package/dist/executions/execution-persistence.d.ts +38 -4
- package/dist/executions/execution-persistence.js +127 -2
- 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 +39 -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/constants.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/constants.js +2 -1
- package/dist/modules/mcp/tools/workflow-builder/constants.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +6 -4
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +67 -6
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.d.ts +30 -0
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js +161 -0
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js.map +1 -0
- 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-execution.service.js +2 -0
- package/dist/workflows/workflow-execution.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 +45 -37
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.settings.service.js","sourceRoot":"","sources":["../../../src/modules/mcp/mcp.settings.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAA6C;AAC7C,wCAA2C;AAE3C,gCAAiF;AACjF,gCAAkC;AAClC,0CAAkC;AAClC,+CAIsB;AAEtB,iFAA6E;AAC7E,kFAA6E;AAC7E,kEAA8D;AAC9D,yDAAyD;AACzD,iFAA4E;AAI5E,MAAM,GAAG,GAAG,oBAAoB,CAAC;AAEjC,MAAM,eAAe,GAAG,GAAG,CAAC;AAE5B,MAAM,wBAAwB,GAAgC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp.settings.service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AA,YAAO,GAAE;qCAG6B,uBAAkB;QACxB,4BAAY;QACN,uBAAkB;QACf,+CAAqB;QAC9B,qBAAY;QAClB,uBAAM;QACQ,4CAAoB;GARhD,kBAAkB,CAsP9B"}
|
|
@@ -20,10 +20,13 @@ export type ToolDefinition<InputArgs extends z.ZodRawShape = z.ZodRawShape> = {
|
|
|
20
20
|
};
|
|
21
21
|
handler: ToolCallback<InputArgs>;
|
|
22
22
|
};
|
|
23
|
+
export declare const SEARCH_WORKFLOWS_SORT_BY_VALUES: readonly ["updatedAt:desc", "updatedAt:asc", "createdAt:desc", "createdAt:asc", "name:asc", "name:desc"];
|
|
24
|
+
export type SearchWorkflowsSortBy = (typeof SEARCH_WORKFLOWS_SORT_BY_VALUES)[number];
|
|
23
25
|
export type SearchWorkflowsParams = {
|
|
24
26
|
limit?: number;
|
|
25
27
|
query?: string;
|
|
26
28
|
projectId?: string;
|
|
29
|
+
sortBy?: SearchWorkflowsSortBy;
|
|
27
30
|
};
|
|
28
31
|
export type SearchWorkflowsItem = {
|
|
29
32
|
id: string;
|
|
@@ -56,12 +59,15 @@ export type JSONRPCRequest = {
|
|
|
56
59
|
};
|
|
57
60
|
id?: string | number | null;
|
|
58
61
|
};
|
|
62
|
+
export type McpAppsTelemetryVariant = 'env_override' | 'variant' | 'control' | 'unassigned';
|
|
59
63
|
export type UserConnectedToMCPEventPayload = {
|
|
60
64
|
user_id?: string;
|
|
61
65
|
client_name?: string;
|
|
62
66
|
client_version?: string;
|
|
63
67
|
auth_type?: Mcpauth_type;
|
|
64
68
|
mcp_connection_status: 'success' | 'error';
|
|
69
|
+
mcp_apps_enabled?: boolean;
|
|
70
|
+
mcp_apps_variant?: McpAppsTelemetryVariant;
|
|
65
71
|
error?: string;
|
|
66
72
|
};
|
|
67
73
|
export type ExecuteWorkflowsInputMeta = {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SEARCH_WORKFLOWS_SORT_BY_VALUES = void 0;
|
|
4
|
+
exports.SEARCH_WORKFLOWS_SORT_BY_VALUES = [
|
|
5
|
+
'updatedAt:desc',
|
|
6
|
+
'updatedAt:asc',
|
|
7
|
+
'createdAt:desc',
|
|
8
|
+
'createdAt:asc',
|
|
9
|
+
'name:asc',
|
|
10
|
+
'name:desc',
|
|
11
|
+
];
|
|
3
12
|
//# sourceMappingURL=mcp.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.types.js","sourceRoot":"","sources":["../../../src/modules/mcp/mcp.types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"mcp.types.js","sourceRoot":"","sources":["../../../src/modules/mcp/mcp.types.ts"],"names":[],"mappings":";;;AA0Ba,QAAA,+BAA+B,GAAG;IAC9C,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,UAAU;IACV,WAAW;CACF,CAAC"}
|
|
@@ -36,20 +36,20 @@ declare const inputSchema: z.ZodObject<{
|
|
|
36
36
|
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
37
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
method: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "
|
|
39
|
+
method: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "POST" | "PUT" | "PATCH";
|
|
40
40
|
headers?: Record<string, string> | undefined;
|
|
41
41
|
body?: Record<string, unknown> | undefined;
|
|
42
42
|
query?: Record<string, string> | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
headers?: Record<string, string> | undefined;
|
|
45
|
-
method?: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "
|
|
45
|
+
method?: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "POST" | "PUT" | "PATCH" | undefined;
|
|
46
46
|
body?: Record<string, unknown> | undefined;
|
|
47
47
|
query?: Record<string, string> | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
type: "webhook";
|
|
51
51
|
webhookData: {
|
|
52
|
-
method: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "
|
|
52
|
+
method: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "POST" | "PUT" | "PATCH";
|
|
53
53
|
headers?: Record<string, string> | undefined;
|
|
54
54
|
body?: Record<string, unknown> | undefined;
|
|
55
55
|
query?: Record<string, string> | undefined;
|
|
@@ -58,7 +58,7 @@ declare const inputSchema: z.ZodObject<{
|
|
|
58
58
|
type: "webhook";
|
|
59
59
|
webhookData: {
|
|
60
60
|
headers?: Record<string, string> | undefined;
|
|
61
|
-
method?: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "
|
|
61
|
+
method?: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "POST" | "PUT" | "PATCH" | undefined;
|
|
62
62
|
body?: Record<string, unknown> | undefined;
|
|
63
63
|
query?: Record<string, string> | undefined;
|
|
64
64
|
};
|
|
@@ -75,7 +75,7 @@ declare const inputSchema: z.ZodObject<{
|
|
|
75
75
|
} | {
|
|
76
76
|
type: "webhook";
|
|
77
77
|
webhookData: {
|
|
78
|
-
method: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "
|
|
78
|
+
method: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "POST" | "PUT" | "PATCH";
|
|
79
79
|
headers?: Record<string, string> | undefined;
|
|
80
80
|
body?: Record<string, unknown> | undefined;
|
|
81
81
|
query?: Record<string, string> | undefined;
|
|
@@ -93,7 +93,7 @@ declare const inputSchema: z.ZodObject<{
|
|
|
93
93
|
type: "webhook";
|
|
94
94
|
webhookData: {
|
|
95
95
|
headers?: Record<string, string> | undefined;
|
|
96
|
-
method?: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "
|
|
96
|
+
method?: "OPTIONS" | "GET" | "DELETE" | "HEAD" | "POST" | "PUT" | "PATCH" | undefined;
|
|
97
97
|
body?: Record<string, unknown> | undefined;
|
|
98
98
|
query?: Record<string, string> | undefined;
|
|
99
99
|
};
|
|
@@ -7,7 +7,8 @@ declare const inputSchema: {
|
|
|
7
7
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
query: z.ZodOptional<z.ZodString>;
|
|
9
9
|
projectId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
sortBy: z.ZodOptional<z.ZodEnum<["updatedAt:desc", "updatedAt:asc", "createdAt:desc", "createdAt:asc", "name:asc", "name:desc"]>>;
|
|
10
11
|
};
|
|
11
12
|
export declare const createSearchWorkflowsTool: (user: User, workflowService: WorkflowService, telemetry: Telemetry) => ToolDefinition<typeof inputSchema>;
|
|
12
|
-
export declare function searchWorkflows(user: User, workflowService: WorkflowService, { limit, query, projectId }: SearchWorkflowsParams): Promise<SearchWorkflowsResult>;
|
|
13
|
+
export declare function searchWorkflows(user: User, workflowService: WorkflowService, { limit, query, projectId, sortBy }: SearchWorkflowsParams): Promise<SearchWorkflowsResult>;
|
|
13
14
|
export {};
|
|
@@ -7,12 +7,18 @@ exports.createSearchWorkflowsTool = void 0;
|
|
|
7
7
|
exports.searchWorkflows = searchWorkflows;
|
|
8
8
|
const zod_1 = __importDefault(require("zod"));
|
|
9
9
|
const mcp_constants_1 = require("../mcp.constants");
|
|
10
|
+
const mcp_types_1 = require("../mcp.types");
|
|
10
11
|
const schemas_1 = require("./schemas");
|
|
11
12
|
const MAX_RESULTS = 200;
|
|
13
|
+
const DEFAULT_SORT_BY = 'updatedAt:desc';
|
|
12
14
|
const inputSchema = {
|
|
13
15
|
limit: (0, schemas_1.createLimitSchema)(MAX_RESULTS),
|
|
14
16
|
query: zod_1.default.string().optional().describe('Filter by name or description'),
|
|
15
17
|
projectId: zod_1.default.string().optional(),
|
|
18
|
+
sortBy: zod_1.default
|
|
19
|
+
.enum(mcp_types_1.SEARCH_WORKFLOWS_SORT_BY_VALUES)
|
|
20
|
+
.optional()
|
|
21
|
+
.describe(`Sort order for results (default: ${DEFAULT_SORT_BY}). Use updatedAt:desc to find the most recently edited workflows first.`),
|
|
16
22
|
};
|
|
17
23
|
const outputSchema = {
|
|
18
24
|
data: zod_1.default
|
|
@@ -28,7 +34,7 @@ const outputSchema = {
|
|
|
28
34
|
updatedAt: zod_1.default
|
|
29
35
|
.string()
|
|
30
36
|
.nullable()
|
|
31
|
-
.describe('
|
|
37
|
+
.describe('ISO timestamp the workflow definition was last saved. Use this to identify recently edited workflows.'),
|
|
32
38
|
triggerCount: zod_1.default
|
|
33
39
|
.number()
|
|
34
40
|
.nullable()
|
|
@@ -57,8 +63,8 @@ const createSearchWorkflowsTool = (user, workflowService, telemetry) => {
|
|
|
57
63
|
openWorldHint: false,
|
|
58
64
|
},
|
|
59
65
|
},
|
|
60
|
-
handler: async ({ limit = MAX_RESULTS, query, projectId, }) => {
|
|
61
|
-
const parameters = { limit, query, projectId };
|
|
66
|
+
handler: async ({ limit = MAX_RESULTS, query, projectId, sortBy, }) => {
|
|
67
|
+
const parameters = { limit, query, projectId, sortBy };
|
|
62
68
|
const telemetryPayload = {
|
|
63
69
|
user_id: user.id,
|
|
64
70
|
tool_name: 'search_workflows',
|
|
@@ -69,6 +75,7 @@ const createSearchWorkflowsTool = (user, workflowService, telemetry) => {
|
|
|
69
75
|
limit,
|
|
70
76
|
query,
|
|
71
77
|
projectId,
|
|
78
|
+
sortBy,
|
|
72
79
|
});
|
|
73
80
|
telemetryPayload.results = {
|
|
74
81
|
success: true,
|
|
@@ -99,10 +106,11 @@ const createSearchWorkflowsTool = (user, workflowService, telemetry) => {
|
|
|
99
106
|
};
|
|
100
107
|
};
|
|
101
108
|
exports.createSearchWorkflowsTool = createSearchWorkflowsTool;
|
|
102
|
-
async function searchWorkflows(user, workflowService, { limit = MAX_RESULTS, query, projectId }) {
|
|
109
|
+
async function searchWorkflows(user, workflowService, { limit = MAX_RESULTS, query, projectId, sortBy = DEFAULT_SORT_BY }) {
|
|
103
110
|
const safeLimit = Math.min(Math.max(1, limit), MAX_RESULTS);
|
|
104
111
|
const options = {
|
|
105
112
|
take: safeLimit,
|
|
113
|
+
sortBy,
|
|
106
114
|
filter: {
|
|
107
115
|
isArchived: false,
|
|
108
116
|
...(query ? { query } : {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-workflows.tool.js","sourceRoot":"","sources":["../../../../src/modules/mcp/tools/search-workflows.tool.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"search-workflows.tool.js","sourceRoot":"","sources":["../../../../src/modules/mcp/tools/search-workflows.tool.ts"],"names":[],"mappings":";;;;;;AAsJA,0CAwDC;AA7MD,8CAAoB;AAEpB,oDAA8D;AAC9D,4CAA+D;AAa/D,uCAA8C;AAE9C,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,MAAM,eAAe,GAA0B,gBAAgB,CAAC;AAEhE,MAAM,WAAW,GAAG;IACnB,KAAK,EAAE,IAAA,2BAAiB,EAAC,WAAW,CAAC;IACrC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IACtE,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,aAAC;SACP,IAAI,CAAC,2CAA+B,CAAC;SACrC,QAAQ,EAAE;SACV,QAAQ,CACR,oCAAoC,eAAe,yEAAyE,CAC5H;CACsB,CAAC;AAE1B,MAAM,YAAY,GAAG;IACpB,IAAI,EAAE,aAAC;SACL,KAAK,CACL,aAAC,CAAC,MAAM,CAAC;QACR,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QAChE,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;QAChE,WAAW,EAAE,aAAC,CAAC,MAA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AC,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QAExF,OAAO;YACN,EAAE;YACF,IAAI;YACJ,WAAW;YACX,MAAM,EAAE,eAAe,KAAK,IAAI;YAChC,SAAS,EAAE,SAAS,CAAC,WAAW,EAAE;YAClC,SAAS,EAAE,SAAS,CAAC,WAAW,EAAE;YAClC,YAAY;YACZ,MAAM;YACN,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC;YAC/C,cAAc,EAAE,QAAQ,EAAE,cAAc,IAAI,KAAK;SACjD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC;AAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CODE_BUILDER_SEARCH_NODES_TOOL, CODE_BUILDER_GET_NODE_TYPES_TOOL, CODE_BUILDER_GET_SUGGESTED_NODES_TOOL, CODE_BUILDER_VALIDATE_TOOL, MCP_GET_SDK_REFERENCE_TOOL, MCP_CREATE_WORKFLOW_FROM_CODE_TOOL, MCP_ARCHIVE_WORKFLOW_TOOL, MCP_UPDATE_WORKFLOW_TOOL, } from '@n8n/ai-workflow-builder';
|
|
1
|
+
export { CODE_BUILDER_SEARCH_NODES_TOOL, CODE_BUILDER_GET_NODE_TYPES_TOOL, CODE_BUILDER_GET_SUGGESTED_NODES_TOOL, CODE_BUILDER_VALIDATE_TOOL, CODE_BUILDER_VALIDATE_NODE_TOOL, MCP_GET_SDK_REFERENCE_TOOL, MCP_CREATE_WORKFLOW_FROM_CODE_TOOL, MCP_ARCHIVE_WORKFLOW_TOOL, MCP_UPDATE_WORKFLOW_TOOL, } from '@n8n/ai-workflow-builder';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MCP_UPDATE_WORKFLOW_TOOL = exports.MCP_ARCHIVE_WORKFLOW_TOOL = exports.MCP_CREATE_WORKFLOW_FROM_CODE_TOOL = exports.MCP_GET_SDK_REFERENCE_TOOL = exports.CODE_BUILDER_VALIDATE_TOOL = exports.CODE_BUILDER_GET_SUGGESTED_NODES_TOOL = exports.CODE_BUILDER_GET_NODE_TYPES_TOOL = exports.CODE_BUILDER_SEARCH_NODES_TOOL = void 0;
|
|
3
|
+
exports.MCP_UPDATE_WORKFLOW_TOOL = exports.MCP_ARCHIVE_WORKFLOW_TOOL = exports.MCP_CREATE_WORKFLOW_FROM_CODE_TOOL = exports.MCP_GET_SDK_REFERENCE_TOOL = exports.CODE_BUILDER_VALIDATE_NODE_TOOL = exports.CODE_BUILDER_VALIDATE_TOOL = exports.CODE_BUILDER_GET_SUGGESTED_NODES_TOOL = exports.CODE_BUILDER_GET_NODE_TYPES_TOOL = exports.CODE_BUILDER_SEARCH_NODES_TOOL = void 0;
|
|
4
4
|
var ai_workflow_builder_1 = require("@n8n/ai-workflow-builder");
|
|
5
5
|
Object.defineProperty(exports, "CODE_BUILDER_SEARCH_NODES_TOOL", { enumerable: true, get: function () { return ai_workflow_builder_1.CODE_BUILDER_SEARCH_NODES_TOOL; } });
|
|
6
6
|
Object.defineProperty(exports, "CODE_BUILDER_GET_NODE_TYPES_TOOL", { enumerable: true, get: function () { return ai_workflow_builder_1.CODE_BUILDER_GET_NODE_TYPES_TOOL; } });
|
|
7
7
|
Object.defineProperty(exports, "CODE_BUILDER_GET_SUGGESTED_NODES_TOOL", { enumerable: true, get: function () { return ai_workflow_builder_1.CODE_BUILDER_GET_SUGGESTED_NODES_TOOL; } });
|
|
8
8
|
Object.defineProperty(exports, "CODE_BUILDER_VALIDATE_TOOL", { enumerable: true, get: function () { return ai_workflow_builder_1.CODE_BUILDER_VALIDATE_TOOL; } });
|
|
9
|
+
Object.defineProperty(exports, "CODE_BUILDER_VALIDATE_NODE_TOOL", { enumerable: true, get: function () { return ai_workflow_builder_1.CODE_BUILDER_VALIDATE_NODE_TOOL; } });
|
|
9
10
|
Object.defineProperty(exports, "MCP_GET_SDK_REFERENCE_TOOL", { enumerable: true, get: function () { return ai_workflow_builder_1.MCP_GET_SDK_REFERENCE_TOOL; } });
|
|
10
11
|
Object.defineProperty(exports, "MCP_CREATE_WORKFLOW_FROM_CODE_TOOL", { enumerable: true, get: function () { return ai_workflow_builder_1.MCP_CREATE_WORKFLOW_FROM_CODE_TOOL; } });
|
|
11
12
|
Object.defineProperty(exports, "MCP_ARCHIVE_WORKFLOW_TOOL", { enumerable: true, get: function () { return ai_workflow_builder_1.MCP_ARCHIVE_WORKFLOW_TOOL; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/modules/mcp/tools/workflow-builder/constants.ts"],"names":[],"mappings":";;;AAIA,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/modules/mcp/tools/workflow-builder/constants.ts"],"names":[],"mappings":";;;AAIA,gEAUkC;AATjC,qIAAA,8BAA8B,OAAA;AAC9B,uIAAA,gCAAgC,OAAA;AAChC,4IAAA,qCAAqC,OAAA;AACrC,iIAAA,0BAA0B,OAAA;AAC1B,sIAAA,+BAA+B,OAAA;AAC/B,iIAAA,0BAA0B,OAAA;AAC1B,yIAAA,kCAAkC,OAAA;AAClC,gIAAA,yBAAyB,OAAA;AACzB,+HAAA,wBAAwB,OAAA"}
|
|
@@ -18,13 +18,15 @@ To build n8n workflows, follow these steps in order:
|
|
|
18
18
|
|
|
19
19
|
5. Write the workflow code using the SDK patterns from the reference and the exact parameter names from the type definitions. Follow the coding guidelines and design guidance sections of the SDK reference (retrieve them with ${constants_1.MCP_GET_SDK_REFERENCE_TOOL.toolName} using sections "guidelines" and "design").
|
|
20
20
|
|
|
21
|
-
6.
|
|
21
|
+
6. Spot-check as you go: after configuring each node, call ${constants_1.CODE_BUILDER_VALIDATE_NODE_TOOL.toolName} on it before wiring it into the rest of the workflow. Catches param, type, and discriminator errors per-node with a clean signal, before they're buried inside a full-graph ${constants_1.CODE_BUILDER_VALIDATE_TOOL.toolName} run. Can check several candidate configs in one call so you wire only the one that passes.
|
|
22
22
|
|
|
23
|
-
7.
|
|
23
|
+
7. Validate: Call ${constants_1.CODE_BUILDER_VALIDATE_TOOL.toolName} with your full code. Fix any errors and re-validate until valid.
|
|
24
24
|
|
|
25
|
-
8.
|
|
25
|
+
8. Create: Call ${constants_1.MCP_CREATE_WORKFLOW_FROM_CODE_TOOL.toolName} with the validated code to save the workflow to n8n. Include a short \`description\` (1-2 sentences) summarizing what the workflow does — this helps users find and understand their workflows.
|
|
26
26
|
|
|
27
|
-
9.
|
|
27
|
+
9. Update: Call ${constants_1.MCP_UPDATE_WORKFLOW_TOOL.toolName} with the workflow ID and a list of operations (addNode, removeNode, updateNodeParameters, setNodeParameter, renameNode, addConnection, removeConnection, setNodeCredential, setNodePosition, setNodeDisabled, setNodeSettings, setWorkflowMetadata). The whole batch is atomic: if any op fails the workflow is unchanged. To modify an existing node's configuration, use updateNodeParameters or setNodeParameter — do NOT use removeNode followed by addNode for the same node, as this disconnects any attached sub-nodes (LLM models, memory, tools) and they will not be re-attached automatically. Use setNodeSettings to change a node's execution behavior (onError, retryOnFail, maxTries, waitBetweenTries, alwaysOutputData, executeOnce); for sub-nodes (LLM model, memory, tools) this is the only way to set onError, because the canvas UI does not expose that setting for them.
|
|
28
|
+
|
|
29
|
+
10. Archive: Call ${constants_1.MCP_ARCHIVE_WORKFLOW_TOOL.toolName} with the workflow ID.`;
|
|
28
30
|
return isBuilderEnabled ? `${INTRO}\n\n${BUILDER_INSTRUCTIONS}` : INTRO;
|
|
29
31
|
}
|
|
30
32
|
//# sourceMappingURL=mcp-instructions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-instructions.js","sourceRoot":"","sources":["../../../../../src/modules/mcp/tools/workflow-builder/mcp-instructions.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"mcp-instructions.js","sourceRoot":"","sources":["../../../../../src/modules/mcp/tools/workflow-builder/mcp-instructions.ts"],"names":[],"mappings":";;AAoBA,gDA4BC;AAxCD,2CAUqB;AAErB,SAAgB,kBAAkB,CAAC,gBAAyB;IAC3D,MAAM,KAAK,GAAG,0EAA0E,CAAC;IAEzF,MAAM,oBAAoB,GAAG;;;;2CAIa,sCAA0B,CAAC,QAAQ;;wCAEtC,iDAAqC,CAAC,QAAQ;;0BAE5D,0CAA8B,CAAC,QAAQ;;gCAEjC,4CAAgC,CAAC,QAAQ;;mOAE0J,sCAA0B,CAAC,QAAQ;;6DAEzM,2CAA+B,CAAC,QAAQ,gLAAgL,sCAA0B,CAAC,QAAQ;;oBAEpS,sCAA0B,CAAC,QAAQ;;kBAErC,8CAAkC,CAAC,QAAQ;;kBAE3C,oCAAwB,CAAC,QAAQ;;oBAE/B,qCAAyB,CAAC,QAAQ,wBAAwB,CAAC;IAE9E,OAAO,gBAAgB,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,oBAAoB,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;AACzE,CAAC"}
|
|
@@ -18,13 +18,13 @@ declare const inputSchema: {
|
|
|
18
18
|
replace: z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
type: "updateNodeParameters";
|
|
21
|
-
nodeName: string;
|
|
22
21
|
parameters: Record<string, unknown>;
|
|
22
|
+
nodeName: string;
|
|
23
23
|
replace?: boolean | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
type: "updateNodeParameters";
|
|
26
|
-
nodeName: string;
|
|
27
26
|
parameters: Record<string, unknown>;
|
|
27
|
+
nodeName: string;
|
|
28
28
|
replace?: boolean | undefined;
|
|
29
29
|
}>, z.ZodObject<{
|
|
30
30
|
type: z.ZodLiteral<"setNodeParameter">;
|
|
@@ -193,14 +193,14 @@ declare const inputSchema: {
|
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
194
|
type: "setNodeCredential";
|
|
195
195
|
credentialName: string;
|
|
196
|
-
nodeName: string;
|
|
197
196
|
credentialId: string;
|
|
197
|
+
nodeName: string;
|
|
198
198
|
credentialKey: string;
|
|
199
199
|
}, {
|
|
200
200
|
type: "setNodeCredential";
|
|
201
201
|
credentialName: string;
|
|
202
|
-
nodeName: string;
|
|
203
202
|
credentialId: string;
|
|
203
|
+
nodeName: string;
|
|
204
204
|
credentialKey: string;
|
|
205
205
|
}>, z.ZodObject<{
|
|
206
206
|
type: z.ZodLiteral<"setNodePosition">;
|
|
@@ -208,12 +208,12 @@ declare const inputSchema: {
|
|
|
208
208
|
position: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, [number, number], number[]>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
210
|
type: "setNodePosition";
|
|
211
|
-
nodeName: string;
|
|
212
211
|
position: [number, number];
|
|
212
|
+
nodeName: string;
|
|
213
213
|
}, {
|
|
214
214
|
type: "setNodePosition";
|
|
215
|
-
nodeName: string;
|
|
216
215
|
position: number[];
|
|
216
|
+
nodeName: string;
|
|
217
217
|
}>, z.ZodObject<{
|
|
218
218
|
type: z.ZodLiteral<"setNodeDisabled">;
|
|
219
219
|
nodeName: z.ZodString;
|
|
@@ -226,6 +226,67 @@ declare const inputSchema: {
|
|
|
226
226
|
type: "setNodeDisabled";
|
|
227
227
|
disabled: boolean;
|
|
228
228
|
nodeName: string;
|
|
229
|
+
}>, z.ZodObject<{
|
|
230
|
+
type: z.ZodLiteral<"setNodeSettings">;
|
|
231
|
+
nodeName: z.ZodString;
|
|
232
|
+
settings: z.ZodEffects<z.ZodObject<{
|
|
233
|
+
onError: z.ZodOptional<z.ZodEnum<["stopWorkflow", "continueRegularOutput", "continueErrorOutput"]>>;
|
|
234
|
+
retryOnFail: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
maxTries: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
waitBetweenTries: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
alwaysOutputData: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
executeOnce: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
retryOnFail?: boolean | undefined;
|
|
241
|
+
maxTries?: number | undefined;
|
|
242
|
+
waitBetweenTries?: number | undefined;
|
|
243
|
+
alwaysOutputData?: boolean | undefined;
|
|
244
|
+
executeOnce?: boolean | undefined;
|
|
245
|
+
onError?: "continueErrorOutput" | "continueRegularOutput" | "stopWorkflow" | undefined;
|
|
246
|
+
}, {
|
|
247
|
+
retryOnFail?: boolean | undefined;
|
|
248
|
+
maxTries?: number | undefined;
|
|
249
|
+
waitBetweenTries?: number | undefined;
|
|
250
|
+
alwaysOutputData?: boolean | undefined;
|
|
251
|
+
executeOnce?: boolean | undefined;
|
|
252
|
+
onError?: "continueErrorOutput" | "continueRegularOutput" | "stopWorkflow" | undefined;
|
|
253
|
+
}>, {
|
|
254
|
+
retryOnFail?: boolean | undefined;
|
|
255
|
+
maxTries?: number | undefined;
|
|
256
|
+
waitBetweenTries?: number | undefined;
|
|
257
|
+
alwaysOutputData?: boolean | undefined;
|
|
258
|
+
executeOnce?: boolean | undefined;
|
|
259
|
+
onError?: "continueErrorOutput" | "continueRegularOutput" | "stopWorkflow" | undefined;
|
|
260
|
+
}, {
|
|
261
|
+
retryOnFail?: boolean | undefined;
|
|
262
|
+
maxTries?: number | undefined;
|
|
263
|
+
waitBetweenTries?: number | undefined;
|
|
264
|
+
alwaysOutputData?: boolean | undefined;
|
|
265
|
+
executeOnce?: boolean | undefined;
|
|
266
|
+
onError?: "continueErrorOutput" | "continueRegularOutput" | "stopWorkflow" | undefined;
|
|
267
|
+
}>;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
settings: {
|
|
270
|
+
retryOnFail?: boolean | undefined;
|
|
271
|
+
maxTries?: number | undefined;
|
|
272
|
+
waitBetweenTries?: number | undefined;
|
|
273
|
+
alwaysOutputData?: boolean | undefined;
|
|
274
|
+
executeOnce?: boolean | undefined;
|
|
275
|
+
onError?: "continueErrorOutput" | "continueRegularOutput" | "stopWorkflow" | undefined;
|
|
276
|
+
};
|
|
277
|
+
type: "setNodeSettings";
|
|
278
|
+
nodeName: string;
|
|
279
|
+
}, {
|
|
280
|
+
settings: {
|
|
281
|
+
retryOnFail?: boolean | undefined;
|
|
282
|
+
maxTries?: number | undefined;
|
|
283
|
+
waitBetweenTries?: number | undefined;
|
|
284
|
+
alwaysOutputData?: boolean | undefined;
|
|
285
|
+
executeOnce?: boolean | undefined;
|
|
286
|
+
onError?: "continueErrorOutput" | "continueRegularOutput" | "stopWorkflow" | undefined;
|
|
287
|
+
};
|
|
288
|
+
type: "setNodeSettings";
|
|
289
|
+
nodeName: string;
|
|
229
290
|
}>, z.ZodObject<{
|
|
230
291
|
type: z.ZodLiteral<"setWorkflowMetadata">;
|
|
231
292
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { User } from '@n8n/db';
|
|
2
|
+
import z from 'zod';
|
|
3
|
+
import type { ToolDefinition } from '../../mcp.types';
|
|
4
|
+
import type { Telemetry } from '../../../../telemetry';
|
|
5
|
+
declare const inputSchema: {
|
|
6
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
type: z.ZodString;
|
|
9
|
+
typeVersion: z.ZodDefault<z.ZodNumber>;
|
|
10
|
+
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
|
+
subnodes: z.ZodOptional<z.ZodUnknown>;
|
|
12
|
+
isToolNode: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
type: string;
|
|
15
|
+
typeVersion: number;
|
|
16
|
+
parameters: Record<string, unknown>;
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
subnodes?: unknown;
|
|
19
|
+
isToolNode?: boolean | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
type: string;
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
typeVersion?: number | undefined;
|
|
24
|
+
parameters?: Record<string, unknown> | undefined;
|
|
25
|
+
subnodes?: unknown;
|
|
26
|
+
isToolNode?: boolean | undefined;
|
|
27
|
+
}>, "many">;
|
|
28
|
+
};
|
|
29
|
+
export declare const createValidateNodeTool: (user: User, telemetry: Telemetry) => ToolDefinition<typeof inputSchema>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.createValidateNodeTool = void 0;
|
|
40
|
+
const zod_1 = __importDefault(require("zod"));
|
|
41
|
+
const mcp_constants_1 = require("../../mcp.constants");
|
|
42
|
+
const constants_1 = require("./constants");
|
|
43
|
+
const nodeInputSchema = zod_1.default.object({
|
|
44
|
+
name: zod_1.default
|
|
45
|
+
.string()
|
|
46
|
+
.optional()
|
|
47
|
+
.describe('Optional node name. Echoed back in the result so callers can correlate.'),
|
|
48
|
+
type: zod_1.default
|
|
49
|
+
.string()
|
|
50
|
+
.describe('Full node type, e.g. "n8n-nodes-base.set" or "@n8n/n8n-nodes-langchain.agent".'),
|
|
51
|
+
typeVersion: zod_1.default.number().positive().default(1).describe('Node type version. Defaults to 1.'),
|
|
52
|
+
parameters: zod_1.default
|
|
53
|
+
.record(zod_1.default.unknown())
|
|
54
|
+
.default({})
|
|
55
|
+
.describe('Node parameters object — same shape as workflow JSON.'),
|
|
56
|
+
subnodes: zod_1.default
|
|
57
|
+
.unknown()
|
|
58
|
+
.optional()
|
|
59
|
+
.describe('Optional subnode config for AI parent nodes (e.g. langchain agent): `{ model, memory, tools: [...] }` of `{ type, version }` refs.'),
|
|
60
|
+
isToolNode: zod_1.default
|
|
61
|
+
.boolean()
|
|
62
|
+
.optional()
|
|
63
|
+
.describe('Set to true when validating a node that is wired as an AI tool subnode (ai_tool connection). Adjusts which displayOptions branch is evaluated.'),
|
|
64
|
+
});
|
|
65
|
+
const inputSchema = {
|
|
66
|
+
nodes: zod_1.default
|
|
67
|
+
.array(nodeInputSchema)
|
|
68
|
+
.min(1)
|
|
69
|
+
.max(50)
|
|
70
|
+
.describe('One or more node configurations to validate independently.'),
|
|
71
|
+
};
|
|
72
|
+
const outputSchema = {
|
|
73
|
+
valid: zod_1.default.boolean().describe('True when every node is valid.'),
|
|
74
|
+
results: zod_1.default
|
|
75
|
+
.array(zod_1.default.object({
|
|
76
|
+
index: zod_1.default.number().describe('Position of this node in the input array.'),
|
|
77
|
+
name: zod_1.default.string().optional().describe('Echo of the input name, if provided.'),
|
|
78
|
+
type: zod_1.default.string().describe('Echo of the input node type.'),
|
|
79
|
+
valid: zod_1.default.boolean().describe('Whether this node config is valid.'),
|
|
80
|
+
errors: zod_1.default
|
|
81
|
+
.array(zod_1.default.object({
|
|
82
|
+
path: zod_1.default.string().describe('Parameter path of the error.'),
|
|
83
|
+
message: zod_1.default.string().describe('Human-readable error message.'),
|
|
84
|
+
}))
|
|
85
|
+
.optional()
|
|
86
|
+
.describe('Validation errors for this node (omitted when valid).'),
|
|
87
|
+
}))
|
|
88
|
+
.describe('Per-node validation results, in input order.'),
|
|
89
|
+
error: zod_1.default
|
|
90
|
+
.string()
|
|
91
|
+
.optional()
|
|
92
|
+
.describe('Top-level error message when validation could not run at all (e.g. internal failure loading the schema). Omitted on success.'),
|
|
93
|
+
};
|
|
94
|
+
const createValidateNodeTool = (user, telemetry) => ({
|
|
95
|
+
name: constants_1.CODE_BUILDER_VALIDATE_NODE_TOOL.toolName,
|
|
96
|
+
config: {
|
|
97
|
+
description: "Validate a node's config the moment you write it — before assembling create_workflow_from_code or calling update_workflow. Read-only and needs no existing workflow, so use it freely while composing. Unlike the write tools (which validate only as they mutate), this returns isolated per-node, per-parameter errors with no graph noise, and can check several candidate configs in one call so you wire only the one that passes. For langchain tool subnodes (nodes wired via ai_tool), set isToolNode: true so the schema evaluates the correct displayOptions branch. Schema-level only — for connections, required inputs, triggers, and credentials use validate_workflow.",
|
|
98
|
+
inputSchema,
|
|
99
|
+
outputSchema,
|
|
100
|
+
annotations: {
|
|
101
|
+
title: constants_1.CODE_BUILDER_VALIDATE_NODE_TOOL.displayTitle,
|
|
102
|
+
readOnlyHint: true,
|
|
103
|
+
destructiveHint: false,
|
|
104
|
+
idempotentHint: true,
|
|
105
|
+
openWorldHint: false,
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
handler: async ({ nodes }) => {
|
|
109
|
+
const telemetryPayload = {
|
|
110
|
+
user_id: user.id,
|
|
111
|
+
tool_name: constants_1.CODE_BUILDER_VALIDATE_NODE_TOOL.toolName,
|
|
112
|
+
parameters: { nodeCount: nodes.length },
|
|
113
|
+
};
|
|
114
|
+
try {
|
|
115
|
+
const { validateNodeConfig } = await Promise.resolve().then(() => __importStar(require('@n8n/workflow-sdk')));
|
|
116
|
+
const results = nodes.map((node, index) => {
|
|
117
|
+
const result = validateNodeConfig(node.type, node.typeVersion, { parameters: node.parameters, subnodes: node.subnodes }, { isToolNode: node.isToolNode });
|
|
118
|
+
return {
|
|
119
|
+
index,
|
|
120
|
+
...(node.name !== undefined ? { name: node.name } : {}),
|
|
121
|
+
type: node.type,
|
|
122
|
+
valid: result.valid,
|
|
123
|
+
...(result.valid ? {} : { errors: result.errors }),
|
|
124
|
+
};
|
|
125
|
+
});
|
|
126
|
+
const valid = results.every((r) => r.valid);
|
|
127
|
+
const invalidCount = results.filter((r) => !r.valid).length;
|
|
128
|
+
const errorCount = results.reduce((sum, r) => sum + (r.errors?.length ?? 0), 0);
|
|
129
|
+
telemetryPayload.results = {
|
|
130
|
+
success: true,
|
|
131
|
+
data: { invalidCount, errorCount },
|
|
132
|
+
};
|
|
133
|
+
telemetry.track(mcp_constants_1.USER_CALLED_MCP_TOOL_EVENT, telemetryPayload);
|
|
134
|
+
const response = { valid, results };
|
|
135
|
+
return {
|
|
136
|
+
content: [{ type: 'text', text: JSON.stringify(response, null, 2) }],
|
|
137
|
+
structuredContent: response,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
142
|
+
telemetryPayload.results = {
|
|
143
|
+
success: false,
|
|
144
|
+
error: errorMessage,
|
|
145
|
+
};
|
|
146
|
+
telemetry.track(mcp_constants_1.USER_CALLED_MCP_TOOL_EVENT, telemetryPayload);
|
|
147
|
+
const output = {
|
|
148
|
+
valid: false,
|
|
149
|
+
results: [],
|
|
150
|
+
error: errorMessage,
|
|
151
|
+
};
|
|
152
|
+
return {
|
|
153
|
+
content: [{ type: 'text', text: JSON.stringify(output, null, 2) }],
|
|
154
|
+
structuredContent: output,
|
|
155
|
+
isError: true,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
exports.createValidateNodeTool = createValidateNodeTool;
|
|
161
|
+
//# sourceMappingURL=validate-node.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-node.tool.js","sourceRoot":"","sources":["../../../../../src/modules/mcp/tools/workflow-builder/validate-node.tool.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,8CAAoB;AAEpB,uDAAiE;AAGjE,2CAA8D;AAI9D,MAAM,eAAe,GAAG,aAAC,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,aAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yEAAyE,CAAC;IACrF,IAAI,EAAE,aAAC;SACL,MAAM,EAAE;SACR,QAAQ,CAAC,gFAAgF,CAAC;IAC5F,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAC3F,UAAU,EAAE,aAAC;SACX,MAAM,CAAC,aAAC,CAAC,OAAO,EAAE,CAAC;SACnB,OAAO,C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