n8n 2.32.6 → 2.33.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 +4 -1
- package/dist/active-workflow-manager.js +18 -16
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/collaboration/collaboration.service.d.ts +1 -0
- package/dist/collaboration/collaboration.service.js +12 -1
- package/dist/collaboration/collaboration.service.js.map +1 -1
- package/dist/commands/base-command.d.ts +3 -2
- package/dist/commands/base-command.js +31 -23
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/db/revert.js.map +1 -1
- package/dist/commands/import/credentials.d.ts +1 -1
- package/dist/commands/import/credentials.js +91 -25
- package/dist/commands/import/credentials.js.map +1 -1
- package/dist/commands/ldap/reset.js.map +1 -1
- package/dist/commands/start.d.ts +1 -0
- package/dist/commands/start.js +3 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/user-management/reset.js +1 -5
- package/dist/commands/user-management/reset.js.map +1 -1
- package/dist/commands/webhook.d.ts +1 -0
- package/dist/commands/webhook.js +1 -1
- package/dist/commands/webhook.js.map +1 -1
- package/dist/commands/worker.d.ts +1 -0
- package/dist/commands/worker.js +1 -1
- package/dist/commands/worker.js.map +1 -1
- package/dist/constants.js +19 -0
- package/dist/constants.js.map +1 -1
- package/dist/controllers/ai.controller.d.ts +4 -5
- package/dist/controllers/ai.controller.js +5 -22
- package/dist/controllers/ai.controller.js.map +1 -1
- package/dist/controllers/e2e.controller.d.ts +15 -2
- package/dist/controllers/e2e.controller.js +25 -2
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +5 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/project.controller.js.map +1 -1
- package/dist/controllers/role.controller.d.ts +2 -2
- package/dist/controllers/role.controller.js +4 -3
- package/dist/controllers/role.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +5 -0
- package/dist/controllers/users.controller.js +1 -0
- package/dist/controllers/users.controller.js.map +1 -1
- package/dist/credentials/credential-connection-status-proxy.js.map +1 -1
- package/dist/credentials/credential-dependency.service.js.map +1 -1
- package/dist/credentials/credentials-finder.service.d.ts +7 -2
- package/dist/credentials/credentials-finder.service.js +33 -8
- package/dist/credentials/credentials-finder.service.js.map +1 -1
- package/dist/credentials/credentials.controller.d.ts +6 -0
- package/dist/credentials/credentials.controller.js +44 -5
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +38 -5
- package/dist/credentials/credentials.service.ee.d.ts +4 -2
- package/dist/credentials/credentials.service.ee.js +8 -7
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +227 -21
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials/instance-credential-broker.d.ts +24 -0
- package/dist/credentials/instance-credential-broker.js +80 -0
- package/dist/credentials/instance-credential-broker.js.map +1 -0
- package/dist/credentials/instance-credential-use.registry.d.ts +14 -0
- package/dist/credentials/instance-credential-use.registry.js +43 -0
- package/dist/credentials/instance-credential-use.registry.js.map +1 -0
- package/dist/credentials-helper.js +4 -0
- package/dist/credentials-helper.js.map +1 -1
- package/dist/credentials-overwrites.js +2 -1
- package/dist/credentials-overwrites.js.map +1 -1
- package/dist/errors/response-errors/workflow-deactivation-bad-request.error.d.ts +9 -0
- package/dist/errors/response-errors/workflow-deactivation-bad-request.error.js +13 -0
- package/dist/errors/response-errors/workflow-deactivation-bad-request.error.js.map +1 -0
- package/dist/evaluation.ee/evaluation-collection.service.d.ts +12 -2
- package/dist/evaluation.ee/evaluation-collection.service.js +132 -20
- package/dist/evaluation.ee/evaluation-collection.service.js.map +1 -1
- package/dist/evaluation.ee/evaluation-collections.controller.ee.d.ts +12 -0
- package/dist/evaluation.ee/evaluation-collections.controller.ee.js +12 -0
- package/dist/evaluation.ee/evaluation-collections.controller.ee.js.map +1 -1
- package/dist/evaluation.ee/insights/eval-insights.service.d.ts +11 -4
- package/dist/evaluation.ee/insights/eval-insights.service.js +136 -30
- package/dist/evaluation.ee/insights/eval-insights.service.js.map +1 -1
- package/dist/evaluation.ee/insights/insights-context-builder.d.ts +59 -0
- package/dist/evaluation.ee/insights/insights-context-builder.js +179 -0
- package/dist/evaluation.ee/insights/insights-context-builder.js.map +1 -0
- package/dist/evaluation.ee/insights/insights-model-resolver.d.ts +16 -0
- package/dist/evaluation.ee/insights/insights-model-resolver.js +65 -0
- package/dist/evaluation.ee/insights/insights-model-resolver.js.map +1 -0
- package/dist/evaluation.ee/metric-scales.d.ts +4 -0
- package/dist/evaluation.ee/metric-scales.js +13 -0
- package/dist/evaluation.ee/metric-scales.js.map +1 -0
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +5 -0
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +40 -4
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.d.ts +6 -1
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.js +53 -4
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.js.map +1 -1
- package/dist/evaluation.ee/test-runs.controller.ee.d.ts +4 -2
- package/dist/evaluation.ee/test-runs.controller.ee.js +26 -6
- package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
- package/dist/eventbus/message-event-bus/message-event-bus.js.map +1 -1
- package/dist/events/maps/workflow-publication-metrics.event-map.d.ts +2 -0
- package/dist/events/relays/telemetry.event-relay.js +5 -0
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +1 -0
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution-data/execution-data-json-store.d.ts +6 -4
- package/dist/executions/execution-data/execution-data-json-store.js +17 -5
- package/dist/executions/execution-data/execution-data-json-store.js.map +1 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.d.ts +1 -0
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js +17 -5
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
- package/dist/external-hooks.d.ts +44 -10
- package/dist/external-hooks.js +13 -0
- package/dist/external-hooks.js.map +1 -1
- package/dist/license.d.ts +2 -0
- package/dist/license.js +13 -1
- package/dist/license.js.map +1 -1
- package/dist/metrics/prometheus/workflow-info-metrics.service.d.ts +4 -1
- package/dist/metrics/prometheus/workflow-info-metrics.service.js +27 -8
- package/dist/metrics/prometheus/workflow-info-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/workflow-publication-metrics.service.js +11 -1
- package/dist/metrics/prometheus/workflow-publication-metrics.service.js.map +1 -1
- package/dist/modules/agents/agent-chat.controller.js +10 -2
- package/dist/modules/agents/agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/agent-config.service.js +1 -1
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +7 -1
- package/dist/modules/agents/agent-execution-orchestrator.service.js +84 -43
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +12 -1
- package/dist/modules/agents/agent-execution.service.js +82 -7
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-persistence.service.js +2 -2
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
- package/dist/modules/agents/agent-integrations.controller.js +4 -2
- package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-sandbox.service.js +5 -3
- package/dist/modules/agents/agent-knowledge-sandbox.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge.service.d.ts +0 -1
- package/dist/modules/agents/agent-knowledge.service.js +2 -9
- package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
- package/dist/modules/agents/agent-model-catalog.service.js +1 -1
- package/dist/modules/agents/agent-model-catalog.service.js.map +1 -1
- package/dist/modules/agents/agent-publish.controller.js +2 -2
- package/dist/modules/agents/agent-publish.controller.js.map +1 -1
- package/dist/modules/agents/agent-publish.service.d.ts +7 -3
- package/dist/modules/agents/agent-publish.service.js +31 -8
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-run-tracing.service.d.ts +30 -0
- package/dist/modules/agents/agent-run-tracing.service.js +63 -0
- package/dist/modules/agents/agent-run-tracing.service.js.map +1 -0
- package/dist/modules/agents/agent-runtime-instrumentation.d.ts +26 -0
- package/dist/{blob-storage/types.js → modules/agents/agent-runtime-instrumentation.js} +1 -1
- package/dist/modules/agents/agent-runtime-instrumentation.js.map +1 -0
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +3 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +31 -8
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-sse-stream.js +31 -6
- package/dist/modules/agents/agent-sse-stream.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.d.ts +2 -1
- package/dist/modules/agents/agent-validation.service.js +21 -6
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +5 -3
- package/dist/modules/agents/agent-workflow-execution.service.js +31 -9
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agents-tools.service.js +12 -0
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.module.js +13 -0
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +3 -1
- package/dist/modules/agents/agents.service.js +5 -2
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js +6 -4
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +5 -4
- package/dist/modules/agents/builder/agents-builder-prompts.js +109 -34
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +16 -2
- package/dist/modules/agents/builder/agents-builder-tools.service.js +201 -39
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.js +7 -2
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-config-telemetry.d.ts +12 -0
- package/dist/modules/agents/builder/builder-config-telemetry.js +67 -0
- package/dist/modules/agents/builder/builder-config-telemetry.js.map +1 -0
- package/dist/modules/agents/builder/builder-tool-names.d.ts +2 -0
- package/dist/modules/agents/builder/builder-tool-names.js +2 -0
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +3 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +35 -7
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-questions.tool.d.ts +4 -1
- package/dist/modules/agents/builder/interactive/ask-questions.tool.js +13 -1
- package/dist/modules/agents/builder/interactive/ask-questions.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/configure-channel.tool.d.ts +2 -0
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js +7 -1
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/finish-setup.tool.d.ts +17 -0
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js +316 -0
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -0
- package/dist/modules/agents/builder/interactive/index.d.ts +1 -0
- package/dist/modules/agents/builder/interactive/index.js +3 -1
- package/dist/modules/agents/builder/interactive/index.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.d.ts +8 -0
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +87 -6
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +6 -5
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +6 -5
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/initial-build.prompt.d.ts +2 -0
- package/dist/modules/agents/builder/prompts/initial-build.prompt.js +56 -0
- package/dist/modules/agents/builder/prompts/initial-build.prompt.js.map +1 -0
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +6 -3
- 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 +2 -2
- package/dist/modules/agents/builder/prompts/memory.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/planner-todos.prompt.d.ts +2 -0
- package/dist/modules/agents/builder/prompts/planner-todos.prompt.js +22 -0
- package/dist/modules/agents/builder/prompts/planner-todos.prompt.js.map +1 -0
- package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.js +12 -12
- package/dist/modules/agents/builder/resolve-integration.tool.js +1 -1
- package/dist/modules/agents/builder/resolve-integration.tool.js.map +1 -1
- package/dist/modules/agents/builder/skills/external-services.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/external-services.skill.js +361 -0
- package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -0
- package/dist/modules/agents/builder/skills/index.js +2 -6
- package/dist/modules/agents/builder/skills/index.js.map +1 -1
- package/dist/modules/agents/builder/skills/memory.skill.js +2 -1
- package/dist/modules/agents/builder/skills/memory.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/resource-locators.skill.js +17 -3
- package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +12 -9
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +14 -10
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
- package/dist/modules/agents/builder/verify-mcp-server.tool.d.ts +4 -0
- package/dist/modules/agents/builder/verify-mcp-server.tool.js +30 -5
- package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
- package/dist/modules/agents/entities/agent-execution.entity.d.ts +2 -1
- package/dist/modules/agents/entities/agent-execution.entity.js +4 -0
- package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
- package/dist/modules/agents/execution-log/agent-execution-log-store.d.ts +17 -0
- package/dist/modules/agents/execution-log/agent-execution-log-store.js +58 -0
- package/dist/modules/agents/execution-log/agent-execution-log-store.js.map +1 -0
- package/dist/modules/agents/execution-log/agent-execution-log-write.error.d.ts +5 -0
- package/dist/modules/agents/execution-log/agent-execution-log-write.error.js +11 -0
- package/dist/modules/agents/execution-log/agent-execution-log-write.error.js.map +1 -0
- package/dist/modules/agents/execution-log/corrupted-agent-execution-log.error.d.ts +5 -0
- package/dist/modules/agents/execution-log/corrupted-agent-execution-log.error.js +11 -0
- package/dist/modules/agents/execution-log/corrupted-agent-execution-log.error.js.map +1 -0
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.d.ts +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +4 -2
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.js +8 -4
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +4 -2
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +62 -6
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-factory.d.ts +7 -7
- package/dist/modules/agents/integrations/integration-tool-factory.js +13 -10
- package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-schema.d.ts +7 -7
- package/dist/modules/agents/integrations/integration-tool-schema.js +7 -7
- package/dist/modules/agents/integrations/integration-tool-schema.js.map +1 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.js +2 -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 +21 -0
- package/dist/modules/agents/json-config/from-json-config.js +16 -4
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.d.ts +4 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js +6 -1
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +14 -1
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
- package/dist/modules/agents/{builder/interactive/llm-provider-defaults.d.ts → llm-provider-defaults.d.ts} +1 -0
- package/dist/modules/agents/{builder/interactive/llm-provider-defaults.js → llm-provider-defaults.js} +14 -1
- package/dist/modules/agents/llm-provider-defaults.js.map +1 -0
- package/dist/modules/agents/repositories/agent-execution.repository.d.ts +4 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js +31 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +1 -0
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.d.ts +4 -1
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js +7 -1
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.d.ts +2 -0
- package/dist/modules/agents/tools/node-tool-factory.js +8 -0
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +3 -1
- package/dist/modules/agents/tools/workflow-tool-factory.js +9 -3
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/utils/execution-to-message-mapper.js +4 -2
- package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
- package/dist/modules/agents/utils/node-tool-validation.js +6 -0
- package/dist/modules/agents/utils/node-tool-validation.js.map +1 -1
- package/dist/modules/breaking-changes/rules/index.d.ts +3 -0
- package/dist/modules/breaking-changes/rules/index.js +3 -0
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/chat-trigger-embedded-json.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/chat-trigger-embedded-json.rule.js +58 -0
- package/dist/modules/breaking-changes/rules/v3/chat-trigger-embedded-json.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/removed-nodes-with-replacements.rule.d.ts +239 -0
- package/dist/modules/breaking-changes/rules/v3/removed-nodes-with-replacements.rule.js +445 -0
- package/dist/modules/breaking-changes/rules/v3/removed-nodes-with-replacements.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/removed-nodes.rule.d.ts +11 -0
- package/dist/modules/breaking-changes/rules/v3/removed-nodes.rule.js +61 -0
- package/dist/modules/breaking-changes/rules/v3/removed-nodes.rule.js.map +1 -0
- package/dist/modules/community-packages/installed-nodes.entity.js +1 -1
- package/dist/modules/community-packages/installed-nodes.entity.js.map +1 -1
- package/dist/modules/data-table/data-table-proxy.service.js +13 -0
- package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
- package/dist/modules/data-table/data-table.controller.js +1 -1
- package/dist/modules/data-table/data-table.controller.js.map +1 -1
- package/dist/modules/data-table/data-table.service.d.ts +1 -1
- package/dist/modules/data-table/data-table.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.d.ts +26 -0
- package/dist/modules/instance-ai/eval/agent-execution.service.js +508 -0
- package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -0
- package/dist/modules/instance-ai/eval/agent-model-turn-recorder.d.ts +9 -0
- package/dist/modules/instance-ai/eval/agent-model-turn-recorder.js +110 -0
- package/dist/modules/instance-ai/eval/agent-model-turn-recorder.js.map +1 -0
- package/dist/modules/instance-ai/eval/agent-scenario-seed.d.ts +14 -0
- package/dist/modules/instance-ai/eval/agent-scenario-seed.js +98 -0
- package/dist/modules/instance-ai/eval/agent-scenario-seed.js.map +1 -0
- package/dist/modules/instance-ai/eval/execution.service.js +3 -3
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/mcp-mock-fetch.d.ts +28 -0
- package/dist/modules/instance-ai/eval/mcp-mock-fetch.js +265 -0
- package/dist/modules/instance-ai/eval/mcp-mock-fetch.js.map +1 -0
- package/dist/modules/instance-ai/eval/mock-utils.d.ts +4 -0
- package/dist/modules/instance-ai/eval/mock-utils.js +41 -0
- package/dist/modules/instance-ai/eval/mock-utils.js.map +1 -0
- package/dist/modules/instance-ai/eval/request-sanitizer.d.ts +1 -0
- package/dist/modules/instance-ai/eval/request-sanitizer.js +26 -0
- package/dist/modules/instance-ai/eval/request-sanitizer.js.map +1 -1
- package/dist/modules/instance-ai/eval/web-search-mock.d.ts +26 -0
- package/dist/modules/instance-ai/eval/web-search-mock.js +122 -0
- package/dist/modules/instance-ai/eval/web-search-mock.js.map +1 -0
- package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.d.ts +8 -0
- package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.js +85 -11
- package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-error-reporter.service.js +13 -0
- package/dist/modules/instance-ai/instance-ai-error-reporter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +3 -3
- package/dist/modules/instance-ai/instance-ai-memory.service.js +5 -11
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +42 -14
- package/dist/modules/instance-ai/instance-ai-settings.service.js +650 -174
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-test.controller.js +4 -1
- package/dist/modules/instance-ai/instance-ai-test.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +2 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +26 -2
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +14 -6
- package/dist/modules/instance-ai/instance-ai.controller.js +84 -29
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.js +9 -2
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +10 -1
- package/dist/modules/instance-ai/instance-ai.service.js +146 -45
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +6 -5
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.d.ts +6 -2
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +55 -14
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
- package/dist/modules/mcp/mcp-protected-resource.d.ts +1 -0
- package/dist/modules/mcp/mcp-protected-resource.js +4 -0
- package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.js +2 -1
- package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
- package/dist/modules/mcp/mcp.controller.d.ts +3 -1
- package/dist/modules/mcp/mcp.controller.js +15 -11
- package/dist/modules/mcp/mcp.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +7 -2
- package/dist/modules/mcp/mcp.service.js +63 -43
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +1 -0
- package/dist/modules/mcp/tools/execution-utils.d.ts +3 -1
- package/dist/modules/mcp/tools/execution-utils.js +6 -4
- package/dist/modules/mcp/tools/execution-utils.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +3 -2
- package/dist/modules/mcp/tools/get-workflow-details.tool.js +6 -6
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-version.tool.d.ts +3 -2
- package/dist/modules/mcp/tools/get-workflow-version.tool.js +1 -1
- package/dist/modules/mcp/tools/get-workflow-version.tool.js.map +1 -1
- package/dist/modules/mcp/tools/schemas.d.ts +34 -32
- package/dist/modules/mcp/tools/schemas.js +14 -2
- package/dist/modules/mcp/tools/schemas.js.map +1 -1
- package/dist/modules/mcp/tools/test-workflow.tool.d.ts +4 -1
- package/dist/modules/mcp/tools/test-workflow.tool.js +13 -5
- package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/webhook-utils.d.ts +3 -3
- package/dist/modules/mcp/tools/webhook-utils.js +17 -6
- package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.d.ts +4 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +5 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.d.ts +3 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js +16 -3
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.d.ts +5 -2
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js +17 -10
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.d.ts +6 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +8 -2
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.d.ts +4 -2
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js +8 -1
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +280 -2
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +54 -17
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.d.ts +4 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +58 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +51 -5
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +414 -233
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-test.controller.js +2 -2
- package/dist/modules/mcp-registry/mcp-registry-test.controller.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry.module.js +1 -1
- package/dist/modules/mcp-registry/mcp-registry.module.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +11 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +36 -7
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-result.d.ts +3 -2
- package/dist/modules/n8n-packages/engine/import-result.js +2 -1
- package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.d.ts +2 -0
- package/dist/modules/n8n-packages/engine/import-telemetry.js +11 -0
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.js +11 -0
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +10 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/requirements.types.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/requirements.types.js +1 -0
- package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable-importer.d.ts +9 -0
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js +55 -0
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js +12 -0
- package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js.map +1 -0
- package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +14 -0
- package/dist/modules/n8n-packages/entities/variable/variable.types.js +7 -0
- package/dist/modules/n8n-packages/entities/variable/variable.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.d.ts +37 -0
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js +165 -0
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +39 -0
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +198 -0
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.d.ts +7 -0
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js +30 -0
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/node-type-usage.d.ts +11 -0
- package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js +27 -0
- package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.js +23 -0
- package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +5 -4
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.js +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +3 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/io/unique-filename-allocator.d.ts +1 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.js +9 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +8 -4
- package/dist/modules/n8n-packages/n8n-packages.service.js +81 -36
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +40 -3
- package/dist/modules/n8n-packages/n8n-packages.types.js +9 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +51 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +45 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.js +10 -1
- package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +1 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
- package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.d.ts +10 -2
- package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js +5 -1
- package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js.map +1 -1
- package/dist/modules/oauth-server/database/repositories/oauth-refresh-token.repository.d.ts +14 -2
- package/dist/modules/oauth-server/database/repositories/oauth-refresh-token.repository.js +16 -1
- package/dist/modules/oauth-server/database/repositories/oauth-refresh-token.repository.js.map +1 -1
- package/dist/modules/oauth-server/oauth-token.service.d.ts +3 -2
- package/dist/modules/oauth-server/oauth-token.service.js +13 -33
- package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth.controller.d.ts +3 -0
- package/dist/modules/oauth-server/oauth.controller.js +45 -1
- package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
- package/dist/modules/oauth-server/oauth.helpers.d.ts +1 -0
- package/dist/modules/oauth-server/oauth.helpers.js +7 -0
- package/dist/modules/oauth-server/oauth.helpers.js.map +1 -1
- package/dist/modules/otel/otel-settings.controller.d.ts +2 -2
- package/dist/modules/otel/otel-settings.controller.js +1 -1
- package/dist/modules/otel/otel-settings.controller.js.map +1 -1
- package/dist/modules/redaction/redaction-context-hook.js +4 -2
- package/dist/modules/redaction/redaction-context-hook.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.js +3 -3
- package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +1 -0
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +51 -22
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-scoped.service.js +1 -1
- package/dist/modules/source-control.ee/source-control-scoped.service.js.map +1 -1
- package/dist/modules/source-control.ee/types/exportable-credential.d.ts +2 -0
- package/dist/modules/workflow-index/workflow-dependency-query.service.js +1 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.d.ts +44 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js +373 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.d.ts +14 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js +97 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.d.ts +4 -0
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +24 -0
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -0
- package/dist/node-execution/ephemeral-node-executor.d.ts +5 -1
- package/dist/node-execution/ephemeral-node-executor.js +7 -4
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/node-execution/index.d.ts +1 -0
- package/dist/node-execution/index.js +4 -1
- package/dist/node-execution/index.js.map +1 -1
- package/dist/node-execution/node-tool-operation-support.d.ts +2 -0
- package/dist/node-execution/node-tool-operation-support.js +12 -0
- package/dist/node-execution/node-tool-operation-support.js.map +1 -0
- package/dist/node-types.d.ts +5 -1
- package/dist/node-types.js +53 -20
- package/dist/node-types.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +5 -1
- package/dist/oauth/oauth.service.js +57 -28
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/permissions.ee/check-access.js +18 -0
- package/dist/permissions.ee/check-access.js.map +1 -1
- package/dist/posthog/index.js +6 -0
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/index.d.ts +1 -1
- package/dist/public-api/index.js +40 -11
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/types.d.ts +7 -1
- package/dist/public-api/v1/controllers/index.d.ts +2 -0
- package/dist/public-api/v1/controllers/index.js +5 -0
- package/dist/public-api/v1/controllers/index.js.map +1 -0
- package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +9 -0
- package/dist/public-api/v1/controllers/workflows.public.controller.js +81 -0
- package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -0
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js +1 -0
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/credentials/credentials.service.d.ts +1 -0
- package/dist/public-api/v1/handlers/credentials/credentials.service.js +9 -2
- package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -1
- package/dist/public-api/v1/handlers/discover/discover.service.d.ts +1 -0
- package/dist/public-api/v1/handlers/discover/discover.service.js +39 -34
- package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +8 -3
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/otel/otel.handler.d.ts +9 -0
- package/dist/public-api/v1/handlers/otel/otel.handler.js +57 -0
- package/dist/public-api/v1/handlers/otel/otel.handler.js.map +1 -0
- package/dist/public-api/v1/handlers/otel/otel.mapper.d.ts +3 -0
- package/dist/public-api/v1/handlers/otel/otel.mapper.js +18 -0
- package/dist/public-api/v1/handlers/otel/otel.mapper.js.map +1 -0
- package/dist/public-api/v1/handlers/tags/tags.handler.d.ts +0 -1
- package/dist/public-api/v1/handlers/tags/tags.handler.js +0 -8
- package/dist/public-api/v1/handlers/tags/tags.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/users/users.service.ee.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +2 -0
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js +47 -34
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.service.js +6 -0
- package/dist/public-api/v1/handlers/workflows/workflows.service.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +491 -19
- package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +4 -0
- package/dist/public-api/v1/shared/middlewares/global.middleware.js +9 -1
- package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +1 -1
- package/dist/public-api/v1/shared/public-api-scope-lookup.d.ts +5 -0
- package/dist/public-api/v1/shared/public-api-scope-lookup.js +60 -0
- package/dist/public-api/v1/shared/public-api-scope-lookup.js.map +1 -0
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
- package/dist/scheduling/durable-job-provisioner.d.ts +1 -0
- package/dist/scheduling/durable-job-provisioner.js +2 -0
- package/dist/scheduling/durable-job-provisioner.js.map +1 -1
- package/dist/scheduling/durable-scheduler.d.ts +2 -1
- package/dist/scheduling/durable-scheduler.js +4 -2
- package/dist/scheduling/durable-scheduler.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-job-provider.d.ts +11 -0
- package/dist/scheduling/poll-trigger-node/poll-job-provider.js +41 -0
- package/dist/scheduling/poll-trigger-node/poll-job-provider.js.map +1 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.d.ts +19 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +111 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.d.ts +16 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js +100 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js.map +1 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-task.d.ts +6 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-task.js +8 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-task.js.map +1 -0
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.d.ts +1 -0
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js +7 -1
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js.map +1 -1
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.d.ts +4 -6
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.js +17 -23
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.js.map +1 -1
- package/dist/security-audit/security-audit.repository.js.map +1 -1
- package/dist/services/export.service.js.map +1 -1
- package/dist/services/folder-finder.service.d.ts +1 -0
- package/dist/services/folder-finder.service.js +30 -0
- package/dist/services/folder-finder.service.js.map +1 -1
- package/dist/services/folder.service.js.map +1 -1
- package/dist/services/free-ai-credits.service.d.ts +32 -0
- package/dist/services/free-ai-credits.service.js +55 -0
- package/dist/services/free-ai-credits.service.js.map +1 -0
- package/dist/services/frontend.service.js +2 -0
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/hooks.service.js.map +1 -1
- package/dist/services/import.service.js +3 -1
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer-handler.registry.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
- package/dist/services/project.service.ee.d.ts +1 -0
- package/dist/services/project.service.ee.js +6 -1
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/public-api-key.service.js.map +1 -1
- package/dist/services/role.service.d.ts +2 -1
- package/dist/services/role.service.js +21 -3
- package/dist/services/role.service.js.map +1 -1
- package/dist/services/tag.service.js.map +1 -1
- package/dist/telemetry/index.d.ts +3 -2
- package/dist/telemetry/index.js +7 -1
- package/dist/telemetry/index.js.map +1 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +4 -0
- package/dist/utils.js.map +1 -1
- package/dist/webhooks/live-webhooks.js +1 -1
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/waiting-forms.js +2 -7
- package/dist/webhooks/waiting-forms.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.d.ts +7 -2
- package/dist/webhooks/waiting-webhooks.js +32 -2
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/workflow-helpers.js +8 -62
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-hook-context.service.d.ts +4 -1
- package/dist/workflow-hook-context.service.js +14 -2
- package/dist/workflow-hook-context.service.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-reconciler.service.d.ts +10 -3
- package/dist/workflows/publication/workflow-publication-reconciler.service.js +49 -13
- package/dist/workflows/publication/workflow-publication-reconciler.service.js.map +1 -1
- package/dist/workflows/triggers/non-webhook-trigger-registrar.d.ts +3 -1
- package/dist/workflows/triggers/non-webhook-trigger-registrar.js +5 -2
- package/dist/workflows/triggers/non-webhook-trigger-registrar.js.map +1 -1
- package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +13 -4
- package/dist/workflows/triggers/trigger-execution-context.factory.js +62 -4
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
- package/dist/workflows/workflow-creation.service.d.ts +3 -1
- package/dist/workflows/workflow-creation.service.js +14 -4
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.js +1 -0
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/dist/workflows/workflow-sharing.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.js +1 -1
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +7 -2
- package/dist/workflows/workflow.service.ee.js +1 -0
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +70 -15
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +34 -33
- package/dist/blob-storage/azure-byte-store.ee.d.ts +0 -10
- package/dist/blob-storage/azure-byte-store.ee.js +0 -42
- package/dist/blob-storage/azure-byte-store.ee.js.map +0 -1
- package/dist/blob-storage/fs-byte-store.d.ts +0 -14
- package/dist/blob-storage/fs-byte-store.js +0 -96
- package/dist/blob-storage/fs-byte-store.js.map +0 -1
- package/dist/blob-storage/json-store.d.ts +0 -18
- package/dist/blob-storage/json-store.js +0 -128
- package/dist/blob-storage/json-store.js.map +0 -1
- package/dist/blob-storage/s3-byte-store.ee.d.ts +0 -10
- package/dist/blob-storage/s3-byte-store.ee.js +0 -37
- package/dist/blob-storage/s3-byte-store.ee.js.map +0 -1
- package/dist/blob-storage/skipped-entry-deletion.error.d.ts +0 -5
- package/dist/blob-storage/skipped-entry-deletion.error.js +0 -13
- package/dist/blob-storage/skipped-entry-deletion.error.js.map +0 -1
- package/dist/blob-storage/types.d.ts +0 -23
- package/dist/blob-storage/types.js.map +0 -1
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +0 -1
- package/dist/modules/agents/builder/skills/integrations.skill.d.ts +0 -2
- package/dist/modules/agents/builder/skills/integrations.skill.js +0 -128
- package/dist/modules/agents/builder/skills/integrations.skill.js.map +0 -1
- package/dist/modules/agents/builder/skills/mcp.skill.d.ts +0 -2
- package/dist/modules/agents/builder/skills/mcp.skill.js +0 -172
- package/dist/modules/agents/builder/skills/mcp.skill.js.map +0 -1
- package/dist/modules/agents/builder/skills/node-tools.skill.d.ts +0 -2
- package/dist/modules/agents/builder/skills/node-tools.skill.js +0 -90
- package/dist/modules/agents/builder/skills/node-tools.skill.js.map +0 -1
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.JsonStore = void 0;
|
|
7
|
-
const chunk_1 = __importDefault(require("lodash/chunk"));
|
|
8
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
9
|
-
const skipped_entry_deletion_error_1 = require("./skipped-entry-deletion.error");
|
|
10
|
-
const CORRUPT_ENTRY = Symbol('corruptEntry');
|
|
11
|
-
const MAX_READ_CONCURRENCY = 50;
|
|
12
|
-
class JsonStore {
|
|
13
|
-
constructor(options) {
|
|
14
|
-
this.options = options;
|
|
15
|
-
this.byteStores = new Map();
|
|
16
|
-
for (const [loc, store] of Object.entries(options.byteStores)) {
|
|
17
|
-
if (store)
|
|
18
|
-
this.byteStores.set(loc, store);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
registerByteStore(loc, store) {
|
|
22
|
-
this.byteStores.set(loc, store);
|
|
23
|
-
}
|
|
24
|
-
hasLocation(loc) {
|
|
25
|
-
return this.byteStores.has(loc);
|
|
26
|
-
}
|
|
27
|
-
async write(ref, payload, loc) {
|
|
28
|
-
const store = this.getByteStore(loc);
|
|
29
|
-
if ('version' in payload) {
|
|
30
|
-
throw new n8n_workflow_1.UnexpectedError('Payload must not contain the reserved `version` key.');
|
|
31
|
-
}
|
|
32
|
-
try {
|
|
33
|
-
const body = Buffer.from((0, n8n_workflow_1.jsonStringify)({ ...payload, version: this.options.version }), 'utf-8');
|
|
34
|
-
return await store.write(this.options.key(ref), body, 'application/json');
|
|
35
|
-
}
|
|
36
|
-
catch (error) {
|
|
37
|
-
throw this.options.createWriteError(ref, error);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
async read(ref, loc) {
|
|
41
|
-
const store = this.getByteStore(loc);
|
|
42
|
-
const key = this.options.key(ref);
|
|
43
|
-
const bytes = await store.read(key);
|
|
44
|
-
if (!bytes)
|
|
45
|
-
return null;
|
|
46
|
-
return this.parse(ref, bytes);
|
|
47
|
-
}
|
|
48
|
-
async readMany(refs) {
|
|
49
|
-
const entries = new Map();
|
|
50
|
-
if (refs.length === 0)
|
|
51
|
-
return entries;
|
|
52
|
-
await Promise.all([...this.groupByLocation(refs)].map(async ([loc, group]) => {
|
|
53
|
-
const store = this.getByteStore(loc);
|
|
54
|
-
for (const batch of (0, chunk_1.default)(group, MAX_READ_CONCURRENCY)) {
|
|
55
|
-
const results = await Promise.all(batch.map(async (ref) => await this.tryRead(ref, store)));
|
|
56
|
-
results.forEach((entry, idx) => {
|
|
57
|
-
if (entry)
|
|
58
|
-
entries.set(this.options.getId(batch[idx]), entry);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}));
|
|
62
|
-
return entries;
|
|
63
|
-
}
|
|
64
|
-
async delete(refs) {
|
|
65
|
-
if (refs.length === 0)
|
|
66
|
-
return;
|
|
67
|
-
await Promise.all([...this.groupByLocation(refs)].map(async ([loc, group]) => {
|
|
68
|
-
const store = this.byteStores.get(loc);
|
|
69
|
-
if (!store) {
|
|
70
|
-
this.options.reportError(new skipped_entry_deletion_error_1.SkippedEntryDeletionError(loc, group.length));
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
await store.delete(group.map((ref) => this.options.key(ref)));
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
groupByLocation(refs) {
|
|
77
|
-
const groups = new Map();
|
|
78
|
-
for (const ref of refs) {
|
|
79
|
-
const group = groups.get(ref.storedAt) ?? [];
|
|
80
|
-
group.push(ref);
|
|
81
|
-
groups.set(ref.storedAt, group);
|
|
82
|
-
}
|
|
83
|
-
return groups;
|
|
84
|
-
}
|
|
85
|
-
async tryRead(ref, store) {
|
|
86
|
-
try {
|
|
87
|
-
const bytes = await store.read(this.options.key(ref));
|
|
88
|
-
if (!bytes)
|
|
89
|
-
return null;
|
|
90
|
-
return this.parse(ref, bytes);
|
|
91
|
-
}
|
|
92
|
-
catch (error) {
|
|
93
|
-
if (this.isCorruptEntryError(error)) {
|
|
94
|
-
this.options.reportError(error);
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
throw error;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
parse(ref, bytes) {
|
|
101
|
-
try {
|
|
102
|
-
const entry = (0, n8n_workflow_1.jsonParse)(bytes.toString('utf-8'));
|
|
103
|
-
if (entry.version !== this.options.version) {
|
|
104
|
-
throw new Error(`Unsupported entry version: ${String(entry.version)}`);
|
|
105
|
-
}
|
|
106
|
-
return entry;
|
|
107
|
-
}
|
|
108
|
-
catch (error) {
|
|
109
|
-
throw this.markCorrupt(this.options.createCorruptedError(ref, error));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
getByteStore(loc) {
|
|
113
|
-
const store = this.byteStores.get(loc);
|
|
114
|
-
if (!store) {
|
|
115
|
-
throw new n8n_workflow_1.UnexpectedError(`JSON store for location "${loc}" is not configured.`);
|
|
116
|
-
}
|
|
117
|
-
return store;
|
|
118
|
-
}
|
|
119
|
-
markCorrupt(error) {
|
|
120
|
-
Object.defineProperty(error, CORRUPT_ENTRY, { value: true });
|
|
121
|
-
return error;
|
|
122
|
-
}
|
|
123
|
-
isCorruptEntryError(error) {
|
|
124
|
-
return error instanceof Error && CORRUPT_ENTRY in error;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.JsonStore = JsonStore;
|
|
128
|
-
//# sourceMappingURL=json-store.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json-store.js","sourceRoot":"","sources":["../../src/blob-storage/json-store.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ObjectStoreService } from 'n8n-core';
|
|
2
|
-
import type { ByteStore, ByteStoreKey } from './types';
|
|
3
|
-
export declare class S3ByteStore implements ByteStore {
|
|
4
|
-
private readonly objectStore;
|
|
5
|
-
constructor(objectStore: ObjectStoreService);
|
|
6
|
-
write(key: ByteStoreKey, body: Buffer, contentType?: string): Promise<number>;
|
|
7
|
-
read(key: ByteStoreKey): Promise<Buffer<ArrayBufferLike> | null>;
|
|
8
|
-
delete(keys: ByteStoreKey[]): Promise<void>;
|
|
9
|
-
private isNotFound;
|
|
10
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.S3ByteStore = void 0;
|
|
4
|
-
const ensure_error_1 = require("@n8n/utils/errors/ensure-error");
|
|
5
|
-
class S3ByteStore {
|
|
6
|
-
constructor(objectStore) {
|
|
7
|
-
this.objectStore = objectStore;
|
|
8
|
-
}
|
|
9
|
-
async write(key, body, contentType) {
|
|
10
|
-
await this.objectStore.put(key, body, { mimeType: contentType ?? 'application/octet-stream' });
|
|
11
|
-
return body.length;
|
|
12
|
-
}
|
|
13
|
-
async read(key) {
|
|
14
|
-
try {
|
|
15
|
-
return await this.objectStore.get(key, { mode: 'buffer' });
|
|
16
|
-
}
|
|
17
|
-
catch (error) {
|
|
18
|
-
if (this.isNotFound(error))
|
|
19
|
-
return null;
|
|
20
|
-
throw error;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
async delete(keys) {
|
|
24
|
-
if (keys.length === 0)
|
|
25
|
-
return;
|
|
26
|
-
await this.objectStore.deleteByKeys(keys);
|
|
27
|
-
}
|
|
28
|
-
isNotFound(error) {
|
|
29
|
-
const original = (0, ensure_error_1.ensureError)(error).cause ?? error;
|
|
30
|
-
if (typeof original !== 'object' || original === null)
|
|
31
|
-
return false;
|
|
32
|
-
const name = 'name' in original ? original.name : undefined;
|
|
33
|
-
return name === 'NoSuchKey' || name === 'NotFound';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.S3ByteStore = S3ByteStore;
|
|
37
|
-
//# sourceMappingURL=s3-byte-store.ee.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"s3-byte-store.ee.js","sourceRoot":"","sources":["../../src/blob-storage/s3-byte-store.ee.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAK7D;IACC,YAA6B,WAA+B;2BAA/B,WAAW;IAAuB,CAAC;IAEhE,KAAK,CAAC,KAAK,CAAC,GAAiB,EAAE,IAAY,EAAE,WAAoB;QAChE,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,WAAW,IAAI,0BAA0B,EAAE,CAAC,CAAC;QAC/F,OAAO,IAAI,CAAC,MAAM,CAAC;IACpB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,GAAiB;QAC3B,IAAI,CAAC;YACJ,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC5D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;gBAAE,OAAO,IAAI,CAAC;YACxC,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAoB;QAChC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO;QAC9B,MAAM,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAIO,UAAU,CAAC,KAAc;QAChC,MAAM,QAAQ,GAAG,IAAA,0BAAW,EAAC,KAAK,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC;QACnD,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;QACpE,MAAM,IAAI,GAAG,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;QAC5D,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,KAAK,UAAU,CAAC;IACpD,CAAC;CACD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SkippedEntryDeletionError = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
class SkippedEntryDeletionError extends n8n_workflow_1.OperationalError {
|
|
6
|
-
constructor(loc, count) {
|
|
7
|
-
super(`Skipped deleting entries - "${loc}" store is not configured`, {
|
|
8
|
-
extra: { count },
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.SkippedEntryDeletionError = SkippedEntryDeletionError;
|
|
13
|
-
//# sourceMappingURL=skipped-entry-deletion.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skipped-entry-deletion.error.js","sourceRoot":"","sources":["../../src/blob-storage/skipped-entry-deletion.error.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAIhD,+BAAuC,SAAQ,+BAAgB;IAC9D,YAAY,GAAoB,EAAE,KAAa;QAC9C,KAAK,CAAC,+BAA+B,GAAG,2BAA2B,EAAE;YACpE,KAAK,EAAE,EAAE,KAAK,EAAE;SAChB,CAAC,CAAC;IACJ,CAAC;CACD"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type StorageLocation = 'fs' | 's3' | 'az';
|
|
2
|
-
export type ByteStoreKey = string;
|
|
3
|
-
export interface ByteStore {
|
|
4
|
-
init?(): Promise<void>;
|
|
5
|
-
write(key: ByteStoreKey, body: Buffer, contentType?: string): Promise<number>;
|
|
6
|
-
read(key: ByteStoreKey): Promise<Buffer | null>;
|
|
7
|
-
delete(keys: ByteStoreKey[]): Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
export type JsonEntry<Payload extends object> = Payload & {
|
|
10
|
-
version: number;
|
|
11
|
-
};
|
|
12
|
-
export type Stored<Ref> = Ref & {
|
|
13
|
-
storedAt: StorageLocation;
|
|
14
|
-
};
|
|
15
|
-
export interface JsonStoreOptions<Ref> {
|
|
16
|
-
byteStores: Partial<Record<StorageLocation, ByteStore>>;
|
|
17
|
-
version: number;
|
|
18
|
-
key: (ref: Ref) => string;
|
|
19
|
-
getId: (ref: Ref) => string;
|
|
20
|
-
createWriteError: (ref: Ref, cause: unknown) => Error;
|
|
21
|
-
createCorruptedError: (ref: Ref, cause: unknown) => Error;
|
|
22
|
-
reportError: (error: unknown) => void;
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/blob-storage/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"llm-provider-defaults.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/llm-provider-defaults.ts"],"names":[],"mappings":";;;AAqBa,QAAA,qBAAqB,GAAuC;IACxE,YAAY,EAAE;QACb,QAAQ,EAAE,WAAW;QACrB,YAAY,EAAE,mBAAmB;KACjC;IACD,SAAS,EAAE;QACV,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,YAAY;KAC1B;IACD,aAAa,EAAE;QACd,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,gBAAgB;KAC9B;IACD,MAAM,EAAE;QACP,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,QAAQ;KACtB;IACD,OAAO,EAAE;QACR,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,yBAAyB;KACvC;IACD,eAAe,EAAE;QAChB,QAAQ,EAAE,SAAS;QACnB,YAAY,EAAE,sBAAsB;KACpC;IACD,WAAW,EAAE;QACZ,QAAQ,EAAE,UAAU;QACpB,YAAY,EAAE,eAAe;KAC7B;IACD,SAAS,EAAE;QACV,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,gBAAgB;KAC9B;IACD,aAAa,EAAE;QACd,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,6BAA6B;KAC3C;IACD,SAAS,EAAE;QACV,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,wCAAwC;KACtD;IACD,kBAAkB,EAAE;QACnB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,6BAA6B;KAC3C;CACD,CAAC"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.integrationsSkill = integrationsSkill;
|
|
4
|
-
function integrationsSkill() {
|
|
5
|
-
return {
|
|
6
|
-
id: 'agent-builder-integrations',
|
|
7
|
-
name: 'Agent Builder Integrations',
|
|
8
|
-
description: 'Use when deciding whether Slack, Linear, Telegram, or another external platform should be a target-agent chat integration/trigger versus an MCP, node, or workflow tool, and when adding, changing, or removing chat integrations; not for built-in Build chat or Preview chat behavior.',
|
|
9
|
-
recommendedTools: [
|
|
10
|
-
'resolve_integration',
|
|
11
|
-
'list_integration_types',
|
|
12
|
-
'configure_channel',
|
|
13
|
-
'ask_questions',
|
|
14
|
-
'read_config',
|
|
15
|
-
'patch_config',
|
|
16
|
-
],
|
|
17
|
-
allowedTools: [
|
|
18
|
-
'resolve_integration',
|
|
19
|
-
'list_integration_types',
|
|
20
|
-
'configure_channel',
|
|
21
|
-
'ask_questions',
|
|
22
|
-
'read_config',
|
|
23
|
-
'patch_config',
|
|
24
|
-
'write_config',
|
|
25
|
-
'load_skill',
|
|
26
|
-
],
|
|
27
|
-
instructions: `\
|
|
28
|
-
## Purpose
|
|
29
|
-
|
|
30
|
-
Use this to decide whether the target agent needs an entry in \`integrations\`
|
|
31
|
-
or an MCP, node, or workflow tool for an external product, then configure
|
|
32
|
-
\`integrations\` only when the integration is the right surface.
|
|
33
|
-
|
|
34
|
-
## Use when
|
|
35
|
-
|
|
36
|
-
- The user asks to add, update, or remove entries in the target agent's
|
|
37
|
-
\`integrations\` array.
|
|
38
|
-
- The user asks to connect the target agent to an external chat platform with
|
|
39
|
-
credentials.
|
|
40
|
-
|
|
41
|
-
## Integration vs Callable Tool Decision
|
|
42
|
-
|
|
43
|
-
Use an integration when the product is the agent's conversation or trigger
|
|
44
|
-
surface: humans will mention, message, comment to, or resume the agent there,
|
|
45
|
-
or the agent needs to respond in that same platform conversation context.
|
|
46
|
-
|
|
47
|
-
Use an MCP, node, or workflow tool when the product is only something the agent
|
|
48
|
-
operates on: searching records, creating tickets, updating objects, or sending a
|
|
49
|
-
business-process notification while the conversation happens elsewhere.
|
|
50
|
-
|
|
51
|
-
Examples:
|
|
52
|
-
|
|
53
|
-
- Slack integration: the agent should be chatted with in Slack, respond in
|
|
54
|
-
Slack threads, DM users, message channels, add reactions, or render rich UI
|
|
55
|
-
to Slack users.
|
|
56
|
-
- Linear integration: the agent should be triggered from Linear issues/comments,
|
|
57
|
-
understand the current Linear subject, or reply in the same Linear
|
|
58
|
-
conversation.
|
|
59
|
-
- Linear callable tools: the agent is triggered from Slack, Preview, a task, or a
|
|
60
|
-
workflow and only needs to search/create/update Linear tickets via MCP or node
|
|
61
|
-
tools.
|
|
62
|
-
|
|
63
|
-
## Workflow
|
|
64
|
-
|
|
65
|
-
The \`integrations\` array controls how the target agent is triggered.
|
|
66
|
-
|
|
67
|
-
### Chat Integrations
|
|
68
|
-
|
|
69
|
-
- These are connected external chat platforms, not built-in Preview chat.
|
|
70
|
-
- Call \`list_integration_types\` first.
|
|
71
|
-
- Read the returned \`capabilities\`, \`useIntegrationWhen\`, and
|
|
72
|
-
\`useNodeToolWhen\` fields before deciding to add an integration.
|
|
73
|
-
- Pick one returned \`type\` and pass it to \`configure_channel\` as
|
|
74
|
-
\`integrationType\`. ALWAYS use \`configure_channel\` for chat-channel
|
|
75
|
-
credentials — never \`ask_credential\` or a raw config write. The setup UI it
|
|
76
|
-
shows creates and persists the credential/connection itself; do not follow up
|
|
77
|
-
with \`patch_config\`/\`write_config\` to write the credential.
|
|
78
|
-
- Preserve existing chat integrations unless the user asked to remove them.
|
|
79
|
-
- To remove an existing chat integration, call \`read_config\` and inspect
|
|
80
|
-
\`config.integrations\`.
|
|
81
|
-
- If exactly one existing integration matches the requested platform, remove
|
|
82
|
-
that entry with \`patch_config\` by index (or replace \`/integrations\` with a
|
|
83
|
-
filtered array when clearer).
|
|
84
|
-
- If multiple existing integrations match the requested platform, ask which one
|
|
85
|
-
to remove before editing \`integrations\`.
|
|
86
|
-
- Removing a chat integration means deleting its entry from
|
|
87
|
-
\`integrations[]\`. Do not call \`configure_channel\` to remove a channel.
|
|
88
|
-
|
|
89
|
-
### Callable External Services
|
|
90
|
-
|
|
91
|
-
When the product is not a chat/trigger integration, call \`resolve_integration\`
|
|
92
|
-
with queries matching the requested service before loading MCP or node-tool
|
|
93
|
-
skills.
|
|
94
|
-
|
|
95
|
-
- If it returns \`kind: "mcp"\`, load \`agent-builder-mcp\` and follow the MCP
|
|
96
|
-
credential, verification, and config workflow.
|
|
97
|
-
- If it returns \`kind: "node"\`, load \`agent-builder-node-tools\`, use the
|
|
98
|
-
returned node results with \`get_node_types\`, and ask for every required
|
|
99
|
-
credential.
|
|
100
|
-
- Use workflow tools when the capability should come from an existing workflow
|
|
101
|
-
instead of a direct MCP or node tool.
|
|
102
|
-
|
|
103
|
-
## Gotchas
|
|
104
|
-
|
|
105
|
-
- Chat integration types must come from \`list_integration_types\`.
|
|
106
|
-
- Do not add a chat integration just because the agent needs CRUD or notifications
|
|
107
|
-
for that product. Resolve the callable capability through \`resolve_integration\`
|
|
108
|
-
unless the product itself is the chat/trigger context.
|
|
109
|
-
- For recurring or scheduled runs, create a task (\`create_tasks\`), not an
|
|
110
|
-
integration.
|
|
111
|
-
- Omitting \`integrations\` from a config write preserves the current channels.
|
|
112
|
-
To remove one, write an explicit filtered array or remove the exact array
|
|
113
|
-
entry.
|
|
114
|
-
|
|
115
|
-
## Verify
|
|
116
|
-
|
|
117
|
-
- Connected chat integrations were set up through \`configure_channel\`, not
|
|
118
|
-
\`ask_credential\` or a manual config write.
|
|
119
|
-
- The chosen integration matches \`useIntegrationWhen\`; otherwise resolve the
|
|
120
|
-
callable capability through \`resolve_integration\` and use MCP, node, or
|
|
121
|
-
workflow tools.
|
|
122
|
-
- Generic non-chat external services were routed through \`resolve_integration\`
|
|
123
|
-
before MCP or node setup.
|
|
124
|
-
- The final \`integrations\` array keeps unrelated integrations intact and
|
|
125
|
-
removes only the requested channel entries.`,
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
//# sourceMappingURL=integrations.skill.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/integrations.skill.ts"],"names":[],"mappings":";;;AAEA;IACC,OAAO;QACN,EAAE,EAAE,4BAA4B;QAChC,IAAI,EAAE,4BAA4B;QAClC,WAAW,EACV,0RAA0R;QAC3R,gBAAgB,EAAE;YACjB,qBAAqB;YACrB,wBAAwB;YACxB,mBAAmB;YACnB,eAAe;YACf,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,qBAAqB;YACrB,wBAAwB;YACxB,mBAAmB;YACnB,eAAe;YACf,aAAa;YACb,cAAc;YACd,cAAc;YACd,YAAY;SACZ;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAkG8B;KAC5C,CAAC;AACH,CAAC"}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mcpSkill = mcpSkill;
|
|
4
|
-
const api_types_1 = require("@n8n/api-types");
|
|
5
|
-
const zod_to_json_schema_1 = require("zod-to-json-schema");
|
|
6
|
-
const schema_text_serializer_1 = require("../../json-config/schema-text-serializer");
|
|
7
|
-
const mcpServerSchemaText = (0, schema_text_serializer_1.jsonSchemaToCompactText)((0, zod_to_json_schema_1.zodToJsonSchema)(api_types_1.McpServerConfigSchema));
|
|
8
|
-
function mcpSkill() {
|
|
9
|
-
return {
|
|
10
|
-
id: 'agent-builder-mcp',
|
|
11
|
-
name: 'Agent builder MCP servers',
|
|
12
|
-
description: 'Use when adding, removing, or updating MCP (Model Context Protocol) servers on the target agent.',
|
|
13
|
-
recommendedTools: [
|
|
14
|
-
'resolve_integration',
|
|
15
|
-
'ask_questions',
|
|
16
|
-
'ask_credential',
|
|
17
|
-
'verify_mcp_server',
|
|
18
|
-
'read_config',
|
|
19
|
-
'patch_config',
|
|
20
|
-
],
|
|
21
|
-
allowedTools: [
|
|
22
|
-
'resolve_integration',
|
|
23
|
-
'search_mcp_servers',
|
|
24
|
-
'search_nodes',
|
|
25
|
-
'get_node_types',
|
|
26
|
-
'ask_credential',
|
|
27
|
-
'verify_mcp_server',
|
|
28
|
-
'ask_questions',
|
|
29
|
-
'read_config',
|
|
30
|
-
'patch_config',
|
|
31
|
-
'write_config',
|
|
32
|
-
'load_skill',
|
|
33
|
-
],
|
|
34
|
-
instructions: `\
|
|
35
|
-
## Purpose
|
|
36
|
-
|
|
37
|
-
Use this to manage external MCP server connections in the target agent config.
|
|
38
|
-
MCP servers expose external tool catalogs to the target agent over HTTP. They
|
|
39
|
-
live on the top-level \`mcpServers\` array, and each entry maps 1:1 to a
|
|
40
|
-
connected MCP server.
|
|
41
|
-
|
|
42
|
-
## Use when:
|
|
43
|
-
|
|
44
|
-
- \`resolve_integration\` returned \`kind: "mcp"\`.
|
|
45
|
-
- The user explicitly asks to add or edit an MCP server.
|
|
46
|
-
- The user provides or asks to configure a custom MCP server.
|
|
47
|
-
|
|
48
|
-
## Workflow
|
|
49
|
-
|
|
50
|
-
### Discovery and setup
|
|
51
|
-
|
|
52
|
-
For a generic external-service request, \`resolve_integration\` must select the
|
|
53
|
-
integration type before this skill is loaded. If no resolver result is
|
|
54
|
-
available yet, call \`resolve_integration\` with queries matching the requested
|
|
55
|
-
service. Resolve one requested service per call; use \`queries\` only for
|
|
56
|
-
alternative search terms for that service.
|
|
57
|
-
|
|
58
|
-
- If it returns \`kind: "node"\` for a generic service request, load
|
|
59
|
-
\`agent-builder-node-tools\` and continue with the returned node results. Stop
|
|
60
|
-
this MCP workflow.
|
|
61
|
-
- If it returns \`kind: "node"\` but the user explicitly requested an MCP server,
|
|
62
|
-
do not silently substitute a node tool. Continue with manual MCP setup by
|
|
63
|
-
asking for the URL and transport/authentication decision through
|
|
64
|
-
\`${api_types_1.ASK_QUESTIONS_TOOL_NAME}\`.
|
|
65
|
-
- \`resolve_integration\` returns \`{ kind: "mcp", results: [...] }\` for MCP
|
|
66
|
-
matches. Never read server fields from the wrapper; select a result first:
|
|
67
|
-
- If \`results[]\` contains one entry, use it as \`selectedResult\`.
|
|
68
|
-
- If the request uniquely identifies one entry by \`name\` or \`title\`, use
|
|
69
|
-
that entry as \`selectedResult\`.
|
|
70
|
-
- If multiple candidates remain, call \`ask_questions\` with the candidate
|
|
71
|
-
titles and descriptions; never choose by array order. Use the chosen entry
|
|
72
|
-
as \`selectedResult\`. If \`ask_questions\` returns \`{ answered: false }\`,
|
|
73
|
-
stop MCP setup without selecting a server, asking for credentials, verifying
|
|
74
|
-
a connection, or mutating config. Do not re-present the question.
|
|
75
|
-
- Use \`name\`, \`url\`, \`transport\`, \`authentication\`, \`credentialType\`,
|
|
76
|
-
\`tools\`, and optional \`metadata\` only from \`selectedResult\`.
|
|
77
|
-
|
|
78
|
-
Follow these steps for the selected MCP result:
|
|
79
|
-
|
|
80
|
-
1. Credential: call \`ask_credential\` with a short \`purpose\`, using
|
|
81
|
-
\`selectedResult.credentialType\` as \`credentialType\`. Never invent
|
|
82
|
-
credential IDs.
|
|
83
|
-
2. Verify: call \`verify_mcp_server\` with the selected result's \`name\`, \`url\`,
|
|
84
|
-
\`transport\`, and \`authentication\`, plus the returned \`credentialId\` as
|
|
85
|
-
\`credential\` when authentication is required.
|
|
86
|
-
3. Capability check: confirm the verified tool names and descriptions cover the
|
|
87
|
-
capability the user requested.
|
|
88
|
-
4. Write config: call \`read_config\`, then \`patch_config\` to add the entry to
|
|
89
|
-
\`mcpServers[]\` using the patch pattern below.
|
|
90
|
-
|
|
91
|
-
If verification succeeds but the tools do not cover the requested capability
|
|
92
|
-
for a generic service request, load \`agent-builder-node-tools\`, call
|
|
93
|
-
\`search_nodes\` with the same service queries, and continue with node setup. Do
|
|
94
|
-
not add the MCP server merely because its registry entry matched.
|
|
95
|
-
|
|
96
|
-
Full schema reference:
|
|
97
|
-
|
|
98
|
-
${mcpServerSchemaText}
|
|
99
|
-
|
|
100
|
-
### Credential flow
|
|
101
|
-
|
|
102
|
-
- For \`bearerAuth\`, call \`ask_credential\` with
|
|
103
|
-
\`credentialType: "httpBearerAuth"\`.
|
|
104
|
-
- For \`headerAuth\`, call \`ask_credential\` with
|
|
105
|
-
\`credentialType: "httpHeaderAuth"\`.
|
|
106
|
-
- For \`multipleHeadersAuth\`, call \`ask_credential\` with
|
|
107
|
-
\`credentialType: "httpMultipleHeadersAuth"\`.
|
|
108
|
-
- For \`mcpOAuth2Api\`, call \`ask_credential\` with
|
|
109
|
-
\`credentialType: "mcpOAuth2Api"\`.
|
|
110
|
-
|
|
111
|
-
### Testing the connection
|
|
112
|
-
|
|
113
|
-
Before writing to config, call \`verify_mcp_server\` with server \`name\`,
|
|
114
|
-
\`url\`, \`transport\`, and (if applicable) the credential id from
|
|
115
|
-
\`ask_credential\`.
|
|
116
|
-
|
|
117
|
-
- Success returns \`{ ok: true, tools: [{ name, description }] }\`.
|
|
118
|
-
- Use the returned tool list to populate \`toolFilter.tools\` or
|
|
119
|
-
\`approval.tools\` so the user does not need to type tool names manually.
|
|
120
|
-
- Failure returns \`{ ok: false, error: "..." }\`.
|
|
121
|
-
- If verification fails, explain the error and ask the user to check the URL
|
|
122
|
-
or credentials before proceeding.
|
|
123
|
-
|
|
124
|
-
### Incomplete setup
|
|
125
|
-
|
|
126
|
-
The user can skip the credential prompt, the URL question, or both. Never
|
|
127
|
-
invent a credential ID or a placeholder URL to fill the gap, and never abort
|
|
128
|
-
the server addition — always persist what is known and let the user finish
|
|
129
|
-
setup later:
|
|
130
|
-
|
|
131
|
-
- Credential skipped (\`ask_credential\` returned \`{ skipped: true }\`): omit
|
|
132
|
-
only the \`credential\` field.
|
|
133
|
-
- URL skipped: persist \`url: ""\`.
|
|
134
|
-
- Either case: skip \`verify_mcp_server\` (there is nothing to authenticate or
|
|
135
|
-
connect to), then \`read_config\` and \`patch_config\` the entry, preserving
|
|
136
|
-
every other known field — \`name\`, \`transport\`, \`authentication\`, an
|
|
137
|
-
already-selected credential, and registry \`metadata\`.
|
|
138
|
-
|
|
139
|
-
### Selecting credentials
|
|
140
|
-
|
|
141
|
-
When using a registry-backed server, always use the \`credentialType\` returned
|
|
142
|
-
by \`selectedResult\`.
|
|
143
|
-
|
|
144
|
-
For custom MCP servers, if credential type is unknown, ask the user which
|
|
145
|
-
credential type to use (OAuth2, Bearer Token, Header Auth, Multiple Headers
|
|
146
|
-
Auth, or None) via \`${api_types_1.ASK_QUESTIONS_TOOL_NAME}\`. Then map to:
|
|
147
|
-
|
|
148
|
-
- \`bearerAuth\` -> \`ask_credential\` with \`credentialType: "httpBearerAuth"\`
|
|
149
|
-
- \`headerAuth\` -> \`ask_credential\` with \`credentialType: "httpHeaderAuth"\`
|
|
150
|
-
- \`multipleHeadersAuth\` -> \`ask_credential\` with
|
|
151
|
-
\`credentialType: "httpMultipleHeadersAuth"\`
|
|
152
|
-
- \`mcpOAuth2Api\` -> \`ask_credential\` with \`credentialType: "mcpOAuth2Api"\`
|
|
153
|
-
|
|
154
|
-
### Patch pattern
|
|
155
|
-
|
|
156
|
-
1. Initialize the array if missing:
|
|
157
|
-
\`{ "op": "add", "path": "/mcpServers", "value": [] }\`
|
|
158
|
-
2. Append each server:
|
|
159
|
-
\`{ "op": "add", "path": "/mcpServers/-", "value": { ... } }\`
|
|
160
|
-
|
|
161
|
-
## Gotchas
|
|
162
|
-
|
|
163
|
-
- Server \`name\` must be unique across \`mcpServers\` within an agent.
|
|
164
|
-
- Never fabricate \`metadata.nodeTypeName\`.
|
|
165
|
-
- When \`selectedResult\` includes \`metadata.nodeTypeName\`, include
|
|
166
|
-
\`metadata: { nodeTypeName: <selectedResult.metadata.nodeTypeName> }\` in the
|
|
167
|
-
entry so the UI can render the correct server form.
|
|
168
|
-
- A registry match proves server availability, not support for the requested
|
|
169
|
-
capability; use the verified live tool list for that decision.`,
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
//# sourceMappingURL=mcp.skill.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/mcp.skill.ts"],"names":[],"mappings":";;;AACA,8CAAgF;AAEhF,2DAAqD;AAErD,qFAAmF;AAEnF,MAAM,mBAAmB,GAAG,IAAA,gDAAuB,EAClD,IAAA,oCAAe,EAAC,iCAAqB,CAAgB,CACrD,CAAC;AAEF;IACC,OAAO;QACN,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,2BAA2B;QACjC,WAAW,EACV,kGAAkG;QACnG,gBAAgB,EAAE;YACjB,qBAAqB;YACrB,eAAe;YACf,gBAAgB;YAChB,mBAAmB;YACnB,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,qBAAqB;YACrB,oBAAoB;YACpB,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,mBAAmB;YACnB,eAAe;YACf,aAAa;YACb,cAAc;YACd,cAAc;YACd,YAAY;SACZ;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BV,mCAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkC3B,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAgDE,mCAAuB;;;;;;;;;;;;;;;;;;;;;;;iEAuBmB;KAC/D,CAAC;AACH,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nodeToolsSkill = nodeToolsSkill;
|
|
4
|
-
function nodeToolsSkill() {
|
|
5
|
-
return {
|
|
6
|
-
id: 'agent-builder-node-tools',
|
|
7
|
-
name: 'Agent Builder Node Tools',
|
|
8
|
-
description: 'Use when resolve_integration returns kind: "node" or the user explicitly requests an n8n node-backed tool: search_nodes/get_node_types discovery, nodeParameters, node credential slots, $fromAI usage, or other n8n expressions.',
|
|
9
|
-
recommendedTools: [
|
|
10
|
-
'resolve_integration',
|
|
11
|
-
'search_nodes',
|
|
12
|
-
'get_node_types',
|
|
13
|
-
'ask_credential',
|
|
14
|
-
'read_config',
|
|
15
|
-
'patch_config',
|
|
16
|
-
],
|
|
17
|
-
allowedTools: [
|
|
18
|
-
'resolve_integration',
|
|
19
|
-
'search_nodes',
|
|
20
|
-
'get_node_types',
|
|
21
|
-
'ask_credential',
|
|
22
|
-
'get_resource_locator_options',
|
|
23
|
-
'ask_questions',
|
|
24
|
-
'read_config',
|
|
25
|
-
'patch_config',
|
|
26
|
-
'write_config',
|
|
27
|
-
'load_skill',
|
|
28
|
-
],
|
|
29
|
-
instructions: `\
|
|
30
|
-
## Purpose
|
|
31
|
-
|
|
32
|
-
Use this to discover, configure, and wire node tools into the target agent's
|
|
33
|
-
\`tools[]\`, including \`nodeParameters\` and n8n expressions.
|
|
34
|
-
|
|
35
|
-
## Workflow
|
|
36
|
-
|
|
37
|
-
- For a generic external-service request, call \`resolve_integration\` before
|
|
38
|
-
node discovery unless a resolver result is already available.
|
|
39
|
-
- If it returns \`kind: "mcp"\`, load \`agent-builder-mcp\` and stop this node-tool
|
|
40
|
-
workflow.
|
|
41
|
-
- If it returns \`kind: "node"\`, use its returned node results and call
|
|
42
|
-
\`get_node_types\`; do not repeat the same search with \`search_nodes\`.
|
|
43
|
-
- Call \`search_nodes\` directly only when the user explicitly requests an n8n
|
|
44
|
-
node, when refining node results, or when a verified MCP server lacks the
|
|
45
|
-
requested capability.
|
|
46
|
-
- Never guess node type names.
|
|
47
|
-
- Use the tool node id from discovery, usually ending in \`Tool\`.
|
|
48
|
-
- Put fixed values in \`nodeParameters\`; use complete n8n expressions for values the agent should decide at runtime:
|
|
49
|
-
\`={{ $fromAI('url', 'The URL to inspect', 'string') }}\`.
|
|
50
|
-
- For stable dynamic selectors, load \`agent-builder-resource-locators\` and
|
|
51
|
-
follow it.
|
|
52
|
-
- Never write literal \`"$fromAI"\` or bare \`$fromAI\`; the node will treat it as the actual value.
|
|
53
|
-
- Do not pipe AI-chosen fields through \`$json\`.
|
|
54
|
-
- Do not include \`inputSchema\` or \`toolDescription\` for node tools.
|
|
55
|
-
- For each required credential slot, call \`ask_credential\` once before config mutation. Pass the node's credential key as \`credentialSlot\`. On success, copy the returned \`credentials\` object directly to \`node.credentials\`. If skipped, still add the tool and omit only that credential slot.
|
|
56
|
-
|
|
57
|
-
## n8n Expressions
|
|
58
|
-
|
|
59
|
-
Node tool parameters inside \`nodeParameters\` can use n8n expressions.
|
|
60
|
-
Prefer \`$fromAI\` whenever the target agent should decide a value at runtime.
|
|
61
|
-
Do not use \`$fromAI\` for stable resource IDs that the target agent cannot know
|
|
62
|
-
at runtime, such as Linear \`teamId\`, project IDs, channel IDs, calendar IDs,
|
|
63
|
-
database IDs, table IDs, or other dynamic "Name or ID" selectors. Resolve those
|
|
64
|
-
with the \`agent-builder-resource-locators\` skill, \`ask_credential\`, and
|
|
65
|
-
\`get_resource_locator_options\`; write the returned \`parameterValue\` into
|
|
66
|
-
\`nodeParameters\`.
|
|
67
|
-
|
|
68
|
-
- \`={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('fieldName', 'What value to provide', 'string') }}\`
|
|
69
|
-
- \`={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('count', 'How many items', 'number') }}\`
|
|
70
|
-
- \`={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('enabled', 'Whether to enable this option', 'boolean') }}\`
|
|
71
|
-
- \`={{ $now.toISO() }}\` for current date/time.
|
|
72
|
-
- \`={{ $today }}\` for the start of today.
|
|
73
|
-
|
|
74
|
-
Always wrap expressions in \`={{ }}\`. Never pipe AI-chosen node-tool fields
|
|
75
|
-
through \`$json\`; use \`$fromAI\` for those fields instead.
|
|
76
|
-
|
|
77
|
-
## Gotchas
|
|
78
|
-
|
|
79
|
-
- Do not include \`inputSchema\` or \`toolDescription\` for node tools.
|
|
80
|
-
- \`$fromAI(...)\` placeholders define the node tool input schema; do not add it manually.
|
|
81
|
-
- Follow \`agent-builder-resource-locators\` for dynamic selector lookup,
|
|
82
|
-
credentials, and \`parameterValue\` handling.
|
|
83
|
-
- If a required node-tool credential is skipped, add the tool and omit only that credential slot.
|
|
84
|
-
|
|
85
|
-
## Verify
|
|
86
|
-
|
|
87
|
-
- Node tools use discovered tool node ids and valid node parameters.`,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=node-tools.skill.js.map
|