n8n 2.30.3 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-library-bundle.js +9 -0
- package/dist/blob-storage/azure-byte-store.ee.d.ts +1 -1
- package/dist/blob-storage/azure-byte-store.ee.js +3 -18
- package/dist/blob-storage/azure-byte-store.ee.js.map +1 -1
- package/dist/blob-storage/json-store.js +3 -0
- package/dist/blob-storage/json-store.js.map +1 -1
- package/dist/blob-storage/s3-byte-store.ee.d.ts +1 -1
- package/dist/blob-storage/s3-byte-store.ee.js +2 -17
- package/dist/blob-storage/s3-byte-store.ee.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/base-command.d.ts +2 -2
- package/dist/commands/base-command.js +5 -5
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/start.js +2 -0
- package/dist/commands/start.js.map +1 -1
- package/dist/constants/workflow-reviews.d.ts +4 -0
- package/dist/constants/workflow-reviews.js +14 -0
- package/dist/constants/workflow-reviews.js.map +1 -0
- package/dist/constants.js +2 -0
- package/dist/constants.js.map +1 -1
- package/dist/controllers/e2e.controller.js +1 -0
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/security-settings.controller.d.ts +15 -10
- package/dist/controllers/security-settings.controller.js +41 -65
- package/dist/controllers/security-settings.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +2 -2
- package/dist/credentials/credential-connection-status-provider.interface.d.ts +2 -1
- package/dist/credentials/credential-connection-status-proxy.d.ts +2 -1
- package/dist/credentials/credential-connection-status-proxy.js +7 -2
- package/dist/credentials/credential-connection-status-proxy.js.map +1 -1
- package/dist/credentials/credentials.controller.js +5 -5
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +1 -0
- package/dist/credentials/credentials.service.ee.d.ts +3 -1
- package/dist/credentials/credentials.service.ee.js +10 -2
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +14 -0
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +4 -2
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +19 -2
- package/dist/events/relays/log-streaming.event-relay.d.ts +2 -0
- package/dist/events/relays/log-streaming.event-relay.js +30 -2
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +3 -0
- package/dist/events/relays/telemetry.event-relay.js +88 -10
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +21 -4
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution-data/db-store.d.ts +8 -15
- package/dist/executions/execution-data/db-store.js +12 -25
- package/dist/executions/execution-data/db-store.js.map +1 -1
- package/dist/executions/execution-data/execution-data-json-store.d.ts +7 -0
- package/dist/executions/execution-data/execution-data-json-store.js +45 -0
- package/dist/executions/execution-data/execution-data-json-store.js.map +1 -0
- package/dist/executions/execution-data/types.d.ts +3 -14
- package/dist/executions/execution-data/types.js.map +1 -1
- package/dist/executions/execution-persistence.d.ts +7 -14
- package/dist/executions/execution-persistence.js +40 -88
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution.service.d.ts +3 -4
- package/dist/executions/execution.service.js +4 -13
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/executions.controller.js +1 -10
- package/dist/executions/executions.controller.js.map +1 -1
- package/dist/interfaces.d.ts +4 -1
- package/dist/load-nodes-and-credentials.js +1 -1
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/metrics/prometheus/prometheus.service.d.ts +2 -1
- package/dist/metrics/prometheus/prometheus.service.js +5 -2
- package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
- package/dist/metrics/prometheus/scheduler-metrics.service.d.ts +35 -0
- package/dist/metrics/prometheus/scheduler-metrics.service.js +187 -0
- package/dist/metrics/prometheus/scheduler-metrics.service.js.map +1 -0
- package/dist/modules/agents/adapters/agents-credential-provider.d.ts +1 -0
- package/dist/modules/agents/adapters/agents-credential-provider.js +13 -3
- package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
- package/dist/modules/agents/agent-config.service.js +11 -1
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge.controller.js +1 -1
- package/dist/modules/agents/agent-knowledge.controller.js.map +1 -1
- package/dist/modules/agents/agent-upload.middleware.d.ts +2 -0
- package/dist/modules/agents/agent-upload.middleware.js +11 -0
- package/dist/modules/agents/agent-upload.middleware.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.js +19 -2
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-vector-stores.controller.d.ts +11 -0
- package/dist/modules/agents/agent-vector-stores.controller.js +41 -0
- package/dist/modules/agents/agent-vector-stores.controller.js.map +1 -0
- package/dist/modules/agents/agent-vector-stores.service.d.ts +9 -0
- package/dist/modules/agents/agent-vector-stores.service.js +195 -0
- package/dist/modules/agents/agent-vector-stores.service.js.map +1 -0
- package/dist/modules/agents/agents-config.controller.d.ts +112 -69
- package/dist/modules/agents/agents.controller.d.ts +5 -1
- package/dist/modules/agents/agents.controller.js +11 -0
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.js +1 -0
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +7 -2
- package/dist/modules/agents/agents.service.js +65 -2
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/attachable-workflows.service.d.ts +12 -0
- package/dist/modules/agents/attachable-workflows.service.js +58 -0
- package/dist/modules/agents/attachable-workflows.service.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js +3 -2
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +4 -4
- package/dist/modules/agents/builder/agents-builder-prompts.js +40 -27
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +3 -5
- package/dist/modules/agents/builder/agents-builder-tools.service.js +48 -194
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +10 -3
- package/dist/modules/agents/builder/agents-builder.service.js +22 -12
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/errors.d.ts +3 -2
- package/dist/modules/agents/builder/errors.js +3 -2
- package/dist/modules/agents/builder/errors.js.map +1 -1
- package/dist/modules/agents/builder/get-resource-locator-options.tool.d.ts +99 -2
- package/dist/modules/agents/builder/get-resource-locator-options.tool.js +103 -101
- package/dist/modules/agents/builder/get-resource-locator-options.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +48 -32
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-questions.tool.d.ts +2 -0
- package/dist/modules/agents/builder/interactive/ask-questions.tool.js +108 -0
- package/dist/modules/agents/builder/interactive/ask-questions.tool.js.map +1 -0
- package/dist/modules/agents/builder/interactive/configure-channel.tool.d.ts +7 -0
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js +52 -0
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -0
- package/dist/modules/agents/builder/interactive/index.d.ts +2 -2
- package/dist/modules/agents/builder/interactive/index.js +5 -5
- package/dist/modules/agents/builder/interactive/index.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +2 -2
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +2 -2
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +10 -10
- 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 +1 -1
- package/dist/modules/agents/builder/search-mcp-servers.tool.js +1 -63
- package/dist/modules/agents/builder/search-mcp-servers.tool.js.map +1 -1
- package/dist/modules/agents/builder/skills/index.d.ts +1 -1
- package/dist/modules/agents/builder/skills/index.js +5 -1
- package/dist/modules/agents/builder/skills/index.js.map +1 -1
- package/dist/modules/agents/builder/skills/integrations.skill.js +15 -6
- package/dist/modules/agents/builder/skills/integrations.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/mcp.skill.js +2 -2
- package/dist/modules/agents/builder/skills/mcp.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/resource-locators.skill.js +2 -2
- package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/sub-agents.skill.js +7 -5
- package/dist/modules/agents/builder/skills/sub-agents.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +5 -4
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +5 -5
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.d.ts +14 -0
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +96 -0
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -0
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +72 -72
- package/dist/modules/agents/integrations/integration-tool-definitions.d.ts +574 -574
- package/dist/modules/agents/json-config/embedding-credential.d.ts +4 -0
- package/dist/modules/agents/json-config/embedding-credential.js +25 -0
- package/dist/modules/agents/json-config/embedding-credential.js.map +1 -0
- package/dist/modules/agents/json-config/from-json-config.d.ts +2 -6
- package/dist/modules/agents/json-config/from-json-config.js +16 -16
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/model-config.js +2 -2
- package/dist/modules/agents/json-config/model-config.js.map +1 -1
- package/dist/modules/agents/json-config/vector-store-factory.d.ts +5 -0
- package/dist/modules/agents/json-config/vector-store-factory.js +138 -0
- package/dist/modules/agents/json-config/vector-store-factory.js.map +1 -0
- package/dist/modules/breaking-changes/rules/index.d.ts +8 -0
- package/dist/modules/breaking-changes/rules/index.js +8 -0
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/compression-node-limits.rule.d.ts +6 -0
- package/dist/modules/breaking-changes/rules/v3/compression-node-limits.rule.js +59 -0
- package/dist/modules/breaking-changes/rules/v3/compression-node-limits.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/docker-only-deployment.rule.d.ts +9 -0
- package/dist/modules/breaking-changes/rules/v3/docker-only-deployment.rule.js +57 -0
- package/dist/modules/breaking-changes/rules/v3/docker-only-deployment.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/get-paired-item.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/get-paired-item.rule.js +53 -0
- package/dist/modules/breaking-changes/rules/v3/get-paired-item.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/in-memory-binary-data.rule.d.ts +9 -0
- package/dist/modules/breaking-changes/rules/v3/in-memory-binary-data.rule.js +56 -0
- package/dist/modules/breaking-changes/rules/v3/in-memory-binary-data.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/offload-manual-executions.rule.d.ts +9 -0
- package/dist/modules/breaking-changes/rules/v3/offload-manual-executions.rule.js +57 -0
- package/dist/modules/breaking-changes/rules/v3/offload-manual-executions.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/task-runner-task-timeout.rule.d.ts +6 -0
- package/dist/modules/breaking-changes/rules/v3/task-runner-task-timeout.rule.js +50 -0
- package/dist/modules/breaking-changes/rules/v3/task-runner-task-timeout.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/unverified-packages.rule.d.ts +9 -0
- package/dist/modules/breaking-changes/rules/v3/unverified-packages.rule.js +57 -0
- package/dist/modules/breaking-changes/rules/v3/unverified-packages.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/workflow-import-url-removed.rule.d.ts +6 -0
- package/dist/modules/breaking-changes/rules/v3/workflow-import-url-removed.rule.js +47 -0
- package/dist/modules/breaking-changes/rules/v3/workflow-import-url-removed.rule.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub.module.d.ts +1 -1
- package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +3 -3
- package/dist/modules/data-table/data-table-ddl.service.d.ts +2 -0
- package/dist/modules/data-table/data-table-ddl.service.js +16 -0
- package/dist/modules/data-table/data-table-ddl.service.js.map +1 -1
- package/dist/modules/data-table/data-table.service.d.ts +6 -3
- package/dist/modules/data-table/data-table.service.js +19 -0
- package/dist/modules/data-table/data-table.service.js.map +1 -1
- package/dist/modules/data-table/utils/sql-utils.d.ts +1 -0
- package/dist/modules/data-table/utils/sql-utils.js +4 -0
- package/dist/modules/data-table/utils/sql-utils.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.d.ts +0 -2
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +0 -13
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.d.ts +5 -3
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js +19 -7
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
- package/dist/modules/favorites/dto/add-favorite.dto.d.ts +2 -2
- package/dist/modules/favorites/favorites.event-relay.js +2 -3
- package/dist/modules/favorites/favorites.event-relay.js.map +1 -1
- package/dist/modules/favorites/favorites.service.d.ts +4 -1
- package/dist/modules/favorites/favorites.service.js +28 -3
- package/dist/modules/favorites/favorites.service.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 +26 -3
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-quirks.js +7 -0
- package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.js +17 -17
- package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.d.ts +17 -6
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js +153 -30
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +7 -2
- package/dist/modules/instance-ai/instance-ai-memory.service.js +12 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.js +0 -7
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +89 -3
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +272 -42
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.js +9 -2
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +0 -1
- package/dist/modules/instance-ai/instance-ai.service.js +45 -107
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/workflow-templates.service.d.ts +17 -0
- package/dist/modules/instance-ai/workflow-templates.service.js +63 -0
- package/dist/modules/instance-ai/workflow-templates.service.js.map +1 -0
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination.ee.d.ts +1 -0
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination.ee.js +2 -0
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination.ee.js.map +1 -1
- package/dist/modules/mcp/dto/update-workflows-availability.dto.d.ts +2 -0
- package/dist/modules/mcp/dto/update-workflows-availability.dto.js +1 -0
- package/dist/modules/mcp/dto/update-workflows-availability.dto.js.map +1 -1
- package/dist/modules/mcp/mcp-protected-resource.d.ts +4 -1
- package/dist/modules/mcp/mcp-protected-resource.js +13 -3
- package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
- package/dist/modules/mcp/mcp.config.d.ts +1 -0
- package/dist/modules/mcp/mcp.config.js +20 -0
- package/dist/modules/mcp/mcp.config.js.map +1 -1
- package/dist/modules/mcp/mcp.module.d.ts +1 -0
- package/dist/modules/mcp/mcp.module.js +3 -1
- package/dist/modules/mcp/mcp.module.js.map +1 -1
- package/dist/modules/mcp/mcp.settings.service.d.ts +1 -1
- package/dist/modules/mcp/mcp.settings.service.js +33 -18
- package/dist/modules/mcp/mcp.settings.service.js.map +1 -1
- package/dist/modules/mcp/tools/search-workflows.tool.js +4 -2
- package/dist/modules/mcp/tools/search-workflows.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.d.ts +2 -0
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +10 -5
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.js +4 -0
- package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/skills-used.d.ts +1 -0
- package/dist/modules/mcp/tools/workflow-builder/skills-used.js +5 -1
- package/dist/modules/mcp/tools/workflow-builder/skills-used.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +10 -5
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/version-metadata.d.ts +27 -0
- package/dist/modules/mcp/tools/workflow-builder/version-metadata.js +109 -0
- package/dist/modules/mcp/tools/workflow-builder/version-metadata.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry-search.d.ts +18 -0
- package/dist/modules/mcp-registry/registry/mcp-registry-search.js +64 -0
- package/dist/modules/mcp-registry/registry/mcp-registry-search.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +2 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js +4 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-blocked.error.js +2 -1
- package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +30 -0
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +86 -0
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -0
- package/dist/modules/n8n-packages/engine/import-result.d.ts +14 -0
- package/dist/modules/n8n-packages/engine/import-result.js +43 -0
- package/dist/modules/n8n-packages/engine/import-result.js.map +1 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +7 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +72 -13
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/package-layout.d.ts +11 -0
- package/dist/modules/n8n-packages/engine/package-layout.js +21 -0
- package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -0
- package/dist/modules/n8n-packages/engine/project-package-importer.d.ts +11 -0
- package/dist/modules/n8n-packages/engine/project-package-importer.js +44 -0
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -0
- package/dist/modules/n8n-packages/engine/workflow-package-importer.d.ts +24 -0
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +168 -0
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-matcher-factory.d.ts +3 -1
- package/dist/modules/n8n-packages/entities/credential/credential-matcher-factory.js +8 -2
- package/dist/modules/n8n-packages/entities/credential/credential-matcher-factory.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.d.ts +6 -6
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +34 -4
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-tier-selection.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/credential/credential-tier-selection.js +27 -0
- package/dist/modules/n8n-packages/entities/credential/credential-tier-selection.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +18 -2
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.d.ts +3 -7
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js +8 -23
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/name-and-type-credential-matcher.d.ts +8 -0
- package/dist/modules/n8n-packages/entities/credential/name-and-type-credential-matcher.js +31 -0
- package/dist/modules/n8n-packages/entities/credential/name-and-type-credential-matcher.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/type-only-credential-matcher.d.ts +8 -0
- package/dist/modules/n8n-packages/entities/credential/type-only-credential-matcher.js +31 -0
- package/dist/modules/n8n-packages/entities/credential/type-only-credential-matcher.js.map +1 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.js +38 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.js.map +1 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.d.ts +26 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js +97 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js +31 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.types.d.ts +4 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.types.js +3 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder-conflict-policy.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/folder/folder-conflict-policy.js +11 -0
- package/dist/modules/n8n-packages/entities/folder/folder-conflict-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder-import.types.d.ts +20 -0
- package/dist/modules/n8n-packages/entities/folder/folder-import.types.js +3 -0
- package/dist/modules/n8n-packages/entities/folder/folder-import.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder-importer.d.ts +10 -0
- package/dist/modules/n8n-packages/entities/folder/folder-importer.js +140 -0
- package/dist/modules/n8n-packages/entities/folder/folder-importer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +5 -2
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +48 -44
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/package-export.errors.d.ts +8 -0
- package/dist/modules/n8n-packages/entities/package-export.errors.js +27 -0
- package/dist/modules/n8n-packages/entities/package-export.errors.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project-import.types.d.ts +15 -0
- package/dist/modules/n8n-packages/entities/project/project-import.types.js +3 -0
- package/dist/modules/n8n-packages/entities/project/project-import.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project-importer.d.ts +13 -0
- package/dist/modules/n8n-packages/entities/project/project-importer.js +97 -0
- package/dist/modules/n8n-packages/entities/project/project-importer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +22 -4
- package/dist/modules/n8n-packages/entities/project/project.exporter.js +71 -26
- package/dist/modules/n8n-packages/entities/project/project.exporter.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/workflow/workflow.exporter.d.ts +4 -3
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +11 -17
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +12 -3
- package/dist/modules/n8n-packages/n8n-packages.service.js +51 -11
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +47 -22
- package/dist/modules/n8n-packages/n8n-packages.types.js +5 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/package-failure-classifier.d.ts +2 -0
- package/dist/modules/n8n-packages/package-failure-classifier.js +29 -0
- package/dist/modules/n8n-packages/package-failure-classifier.js.map +1 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +62 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +55 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.js +26 -15
- package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.d.ts +49 -0
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js +20 -0
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js.map +1 -0
- package/dist/modules/redaction/executions/execution-redaction.service.js +1 -1
- package/dist/modules/redaction/executions/execution-redaction.service.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-git.service.ee.d.ts +0 -1
- package/dist/modules/source-control.ee/source-control-git.service.ee.js +0 -22
- package/dist/modules/source-control.ee/source-control-git.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-helper.ee.d.ts +3 -1
- package/dist/modules/source-control.ee/source-control-helper.ee.js +13 -0
- package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +10 -2
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +94 -59
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.d.ts +0 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js +30 -30
- 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 +6 -6
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +3 -3
- package/dist/modules/source-control.ee/source-control.service.ee.js +8 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/public-api/types.d.ts +5 -1
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js +9 -0
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +87 -38
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/security-policy/security-policy.handler.d.ts +8 -0
- package/dist/public-api/v1/handlers/security-policy/security-policy.handler.js +39 -0
- package/dist/public-api/v1/handlers/security-policy/security-policy.handler.js.map +1 -0
- package/dist/public-api/v1/openapi.yml +243 -12
- package/dist/scaling/job-processor.js +44 -6
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +4 -1
- package/dist/scheduling/durable-job-provisioner.d.ts +16 -0
- package/dist/scheduling/durable-job-provisioner.js +135 -0
- package/dist/scheduling/durable-job-provisioner.js.map +1 -0
- package/dist/scheduling/durable-scheduler.d.ts +16 -0
- package/dist/scheduling/durable-scheduler.js +117 -0
- package/dist/scheduling/durable-scheduler.js.map +1 -0
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task-handler.d.ts +23 -0
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task-handler.js +149 -0
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task-handler.js.map +1 -0
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task.d.ts +10 -0
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task.js +33 -0
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task.js.map +1 -0
- package/dist/scheduling/scheduler-tracer.d.ts +3 -0
- package/dist/scheduling/scheduler-tracer.js +11 -0
- package/dist/scheduling/scheduler-tracer.js.map +1 -0
- package/dist/server.js +6 -1
- package/dist/server.js.map +1 -1
- package/dist/services/folder-finder.service.d.ts +2 -0
- package/dist/services/folder-finder.service.js +16 -0
- package/dist/services/folder-finder.service.js.map +1 -1
- package/dist/services/folder.service.d.ts +3 -2
- package/dist/services/folder.service.js +11 -1
- package/dist/services/folder.service.js.map +1 -1
- package/dist/services/frontend.service.d.ts +3 -1
- package/dist/services/frontend.service.js +14 -2
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +7 -1
- package/dist/services/project.service.ee.js +21 -4
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/protected-resource.registry.d.ts +1 -0
- package/dist/services/protected-resource.registry.js +11 -7
- package/dist/services/protected-resource.registry.js.map +1 -1
- package/dist/services/security-settings.service.d.ts +31 -1
- package/dist/services/security-settings.service.js +75 -2
- package/dist/services/security-settings.service.js.map +1 -1
- package/dist/services/workflow-review-policy.service.d.ts +11 -0
- package/dist/services/workflow-review-policy.service.js +52 -0
- package/dist/services/workflow-review-policy.service.js.map +1 -0
- package/dist/telemetry/index.d.ts +2 -0
- package/dist/telemetry/index.js +6 -3
- package/dist/telemetry/index.js.map +1 -1
- package/dist/webhooks/live-webhooks.js +2 -2
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/test-webhooks.js +4 -1
- package/dist/webhooks/test-webhooks.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.js +2 -2
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/workflow-execute-additional-data.js +5 -4
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.js +26 -0
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflows/triggers/webhook-trigger-registrar.js +22 -15
- package/dist/workflows/triggers/webhook-trigger-registrar.js.map +1 -1
- package/dist/workflows/triggers/workflow-trigger-activator.js +1 -7
- package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
- package/dist/workflows/workflow-creation.service.d.ts +2 -0
- package/dist/workflows/workflow-creation.service.js +4 -2
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-execution.service.js +8 -5
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +5 -2
- package/dist/workflows/workflow-finder.service.js +25 -2
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.d.ts +4 -1
- package/dist/workflows/workflow-history/workflow-history.service.js +3 -1
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.js +3 -3
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.request.d.ts +7 -22
- package/dist/workflows/workflow.service.d.ts +2 -0
- package/dist/workflows/workflow.service.js +4 -2
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +1 -1
- package/dist/workflows/workflows.controller.js +8 -3
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +45 -40
- package/templates/form-trigger-completion.handlebars +6 -6
- package/dist/executions/execution-data/azure-store.ee.d.ts +0 -15
- package/dist/executions/execution-data/azure-store.ee.js +0 -117
- package/dist/executions/execution-data/azure-store.ee.js.map +0 -1
- package/dist/executions/execution-data/fs-store.d.ts +0 -16
- package/dist/executions/execution-data/fs-store.js +0 -118
- package/dist/executions/execution-data/fs-store.js.map +0 -1
- package/dist/executions/execution-data/s3-store.ee.d.ts +0 -15
- package/dist/executions/execution-data/s3-store.ee.js +0 -116
- package/dist/executions/execution-data/s3-store.ee.js.map +0 -1
- package/dist/modules/agents/builder/from-ai-node-parameters.d.ts +0 -7
- package/dist/modules/agents/builder/from-ai-node-parameters.js +0 -43
- package/dist/modules/agents/builder/from-ai-node-parameters.js.map +0 -1
- package/dist/modules/agents/builder/interactive/ask-llm.tool.d.ts +0 -2
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js +0 -25
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js.map +0 -1
- package/dist/modules/agents/builder/interactive/ask-question.tool.d.ts +0 -2
- package/dist/modules/agents/builder/interactive/ask-question.tool.js +0 -27
- package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +0 -1
- package/dist/modules/agents/json-config/model-id.d.ts +0 -1
- package/dist/modules/agents/json-config/model-id.js +0 -8
- package/dist/modules/agents/json-config/model-id.js.map +0 -1
- package/dist/modules/agents/json-config/native-web-search-provider-tools.d.ts +0 -7
- package/dist/modules/agents/json-config/native-web-search-provider-tools.js +0 -55
- package/dist/modules/agents/json-config/native-web-search-provider-tools.js.map +0 -1
- package/dist/modules/n8n-packages/engine/import-pipeline.d.ts +0 -28
- package/dist/modules/n8n-packages/engine/import-pipeline.js +0 -204
- package/dist/modules/n8n-packages/engine/import-pipeline.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/index.ts"],"names":[],"mappings":";;;AAAA,6DAAgG;AAAvF,6HAAA,sBAAsB,OAAA;AAAE,sIAAA,+BAA+B,OAAA;AAChE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/index.ts"],"names":[],"mappings":";;;AAAA,6DAAgG;AAAvF,6HAAA,sBAAsB,OAAA;AAAE,sIAAA,+BAA+B,OAAA;AAChE,2DAA6D;AAApD,2HAAA,qBAAqB,OAAA;AAC9B,mEAAqE;AAA5D,mIAAA,yBAAyB,OAAA;AAClC,uDAAyD;AAAhD,uHAAA,mBAAmB,OAAA"}
|
|
@@ -62,8 +62,8 @@ function buildResolveLlmTool(deps) {
|
|
|
62
62
|
'If provider is given, resolves only that provider; if model is omitted, uses the ' +
|
|
63
63
|
'provider default model. For "Anthropic via OpenRouter", pass provider="openrouter" ' +
|
|
64
64
|
'and omit model unless the user named a concrete OpenRouter model id. Returns ok=false ' +
|
|
65
|
-
'when credentials are missing, unsupported, or ambiguous; use
|
|
66
|
-
'user
|
|
65
|
+
'when credentials are missing, unsupported, or ambiguous; use ask_questions to let the ' +
|
|
66
|
+
'user choose, then call resolve_llm again with the choice.')
|
|
67
67
|
.input(zod_1.z.object({
|
|
68
68
|
provider: zod_1.z
|
|
69
69
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-llm.tool.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/resolve-llm.tool.ts"],"names":[],"mappings":";;AA0FA,kDAkGC;AA3LD,2CAAwC;AACxC,uEAA6E;AAC7E,6BAAwB;AAExB,8DAAsD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C,CAAC;YACvF,CAAC;YACD,OAAO,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC9C,CAAC;QAED,OAAO;YACN,EAAE,EAAE,KAAc;YAClB,MAAM,EACL,cAAc,CAAC,MAAM,KAAK,CAAC;gBAC1B,CAAC,CAAE,oBAA8B;gBACjC,CAAC,CAAE,kCAA4C;YACjD,WAAW,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;gBAC9C,MAAM,QAAQ,GAAG,6CAAqB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACxD,OAAO;oBACN,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,IAAI,EAAE,UAAU,CAAC,IAAI;oBACrB,IAAI,EAAE,UAAU,CAAC,IAAI;oBACrB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;iBAC3B,CAAC;YACH,CAAC,CAAC;SACF,CAAC;IACH,CAAC,CAAC;SACD,KAAK,EAAE,CAAC;AACX,CAAC"}
|
|
@@ -32,7 +32,7 @@ ${(0, config_rules_prompt_1.getSchemaReferenceSection)()}
|
|
|
32
32
|
- Keep each feature in the schema path where it belongs.
|
|
33
33
|
- Preserve unrelated existing config unless the user asked to change it.
|
|
34
34
|
- Never write placeholder instructions, tool descriptions, or skill descriptions.
|
|
35
|
-
- Never copy credential IDs from \`list_credentials\`; use \`resolve_llm
|
|
35
|
+
- Never copy credential IDs from \`list_credentials\`; use \`resolve_llm\` or \`ask_credential\`.
|
|
36
36
|
- Valid provider tool keys are complete provider tool IDs documented in the Tool Guidance section.
|
|
37
37
|
- \`providerTools\` keys must be complete provider tool IDs from the valid key list.
|
|
38
38
|
|
|
@@ -47,7 +47,7 @@ function getConfigRulesSection() {
|
|
|
47
47
|
#### Agent Config Rules
|
|
48
48
|
|
|
49
49
|
- \`model\` must be "provider/model-name".
|
|
50
|
-
- \`credential\` must be the id returned by \`resolve_llm
|
|
50
|
+
- \`credential\` must be the id returned by \`resolve_llm\`.
|
|
51
51
|
- Fresh agents must include
|
|
52
52
|
\`memory: { "enabled": true, "storage": "n8n" }\`
|
|
53
53
|
unless the user explicitly asks to disable memory.
|
|
@@ -55,7 +55,7 @@ function getConfigRulesSection() {
|
|
|
55
55
|
- \`memory.episodicMemory\` requires \`ask_embedding_credential\` with
|
|
56
56
|
\`credentialType: "openAiApi"\`; use its returned \`credentialId\` value.
|
|
57
57
|
- Memory worker model fields use \`{ "model": "provider/model-name", "credential": "<credentialId>" }\`;
|
|
58
|
-
use only credential IDs returned by \`resolve_llm
|
|
58
|
+
use only credential IDs returned by \`resolve_llm\` or \`ask_credential\`.
|
|
59
59
|
- Sub-agent configuration lives at top level under \`subAgents\`. Load
|
|
60
60
|
\`agent-builder-sub-agents\` before adding refs or changing
|
|
61
61
|
\`subAgents.maxChildren\`.
|
|
@@ -4,7 +4,7 @@ exports.getLlmSelectionPrompt = getLlmSelectionPrompt;
|
|
|
4
4
|
function getLlmSelectionPrompt(modelRecommendationsSection) {
|
|
5
5
|
const recommendationGuidance = modelRecommendationsSection
|
|
6
6
|
? `\n\n${modelRecommendationsSection}`
|
|
7
|
-
: '\n\nNo Recommended LLM models section is available; do not recommend or name current, best, latest, or fallback model IDs from memory.
|
|
7
|
+
: '\n\nNo Recommended LLM models section is available; do not recommend or name current, best, latest, or fallback model IDs from memory. Ask via `ask_questions` when the user needs model guidance or choice.';
|
|
8
8
|
return `\
|
|
9
9
|
## LLM Selection Guidance
|
|
10
10
|
|
|
@@ -14,17 +14,17 @@ Use this to resolve the target agent's main \`model\` and \`credential\`.
|
|
|
14
14
|
|
|
15
15
|
### Workflow
|
|
16
16
|
|
|
17
|
-
1. Use \`resolve_llm\` when the request contains enough provider/model detail, otherwise call \`
|
|
17
|
+
1. Use \`resolve_llm\` when the request contains enough provider/model detail, otherwise ask via \`ask_questions\` and call \`resolve_llm\` with the answer.
|
|
18
18
|
2. If \`resolve_llm\` succeeds, persist \`model = "{provider}/{model}"\` and \`credential = credentialId\`.
|
|
19
|
-
3. If the user asks to pick, change, confirm, or configure a model or main credential,
|
|
20
|
-
4. If \`resolve_llm\` reports missing or ambiguous credentials/provider,
|
|
21
|
-
5. If \`resolve_llm\` reports \`unknown_model\`, retry with a plausible returned model value or
|
|
19
|
+
3. If the user asks to pick, change, confirm, or configure a model or main credential, ask via \`ask_questions\`; do not ask in prose.
|
|
20
|
+
4. If \`resolve_llm\` reports missing or ambiguous credentials/provider, ask via \`ask_questions\` then retry \`resolve_llm\` with the answer.
|
|
21
|
+
5. If \`resolve_llm\` reports \`unknown_model\`, retry with a plausible returned model value or ask via \`ask_questions\`.
|
|
22
22
|
|
|
23
23
|
### Rules
|
|
24
24
|
|
|
25
25
|
- Fresh agents need a resolved \`model\` and \`credential\` before config is written.
|
|
26
26
|
- Explicit provider/model requests go to \`resolve_llm\` first.
|
|
27
|
-
- If the user asks to pick, change, confirm, or configure a model or main credential,
|
|
27
|
+
- If the user asks to pick, change, confirm, or configure a model or main credential, ask via \`ask_questions\`; do not ask in prose.
|
|
28
28
|
- If \`resolve_llm\` succeeds, persist \`model = "{provider}/{model}"\` and \`credential = credentialId\`.
|
|
29
29
|
- Only OpenAI and Anthropic models support native web search. Use native web
|
|
30
30
|
search by default for those providers only, and only for
|
|
@@ -41,15 +41,15 @@ Use this to resolve the target agent's main \`model\` and \`credential\`.
|
|
|
41
41
|
\`provider: "searxng"\`.
|
|
42
42
|
- If the user explicitly asks for Brave or SearXNG, keep that provider even
|
|
43
43
|
when the selected model also supports native search.
|
|
44
|
-
- If \`resolve_llm\` reports missing or ambiguous credentials/provider,
|
|
45
|
-
- If it reports \`unknown_model\`, retry with a plausible returned model value or
|
|
44
|
+
- If \`resolve_llm\` reports missing or ambiguous credentials/provider, ask via \`ask_questions\` then retry \`resolve_llm\`.
|
|
45
|
+
- If it reports \`unknown_model\`, retry with a plausible returned model value or ask via \`ask_questions\`.
|
|
46
46
|
- For "Anthropic via OpenRouter", pass \`provider: "openrouter"\`; if the user names a routed model, pass the routed id without adding another provider prefix.
|
|
47
47
|
- Prefer a provider the user already has credentials for when choosing from recommendations.
|
|
48
48
|
- Never copy main LLM credential IDs from \`list_credentials\`.
|
|
49
49
|
|
|
50
50
|
### Gotchas
|
|
51
51
|
|
|
52
|
-
- Use \`resolve_llm\`
|
|
52
|
+
- Use \`resolve_llm\` only for the target agent's main model credential.
|
|
53
53
|
- Use \`ask_credential\` for node tools, integrations, and Episodic Memory.
|
|
54
54
|
- For OpenRouter, \`provider\` is \`"openrouter"\`; the model can be a routed id such as \`anthropic/...\`.
|
|
55
55
|
- Model changes must not silently replace existing Brave or SearXNG web search with native search.
|
|
@@ -58,7 +58,7 @@ Use this to resolve the target agent's main \`model\` and \`credential\`.
|
|
|
58
58
|
### Verify
|
|
59
59
|
|
|
60
60
|
- The persisted \`model\` is in \`provider/model\` form.
|
|
61
|
-
- The persisted \`credential\` came from \`resolve_llm
|
|
61
|
+
- The persisted \`credential\` came from \`resolve_llm\`.
|
|
62
62
|
- Existing Brave or SearXNG \`config.webSearch\` is preserved on model changes unless the user explicitly requested a web-search method change.${recommendationGuidance}`;
|
|
63
63
|
}
|
|
64
64
|
//# sourceMappingURL=llm-selection.prompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-selection.prompt.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/prompts/llm-selection.prompt.ts"],"names":[],"mappings":";;AAAA,sDA4DC;AA5DD,SAAgB,qBAAqB,CAAC,2BAA0C;IAC/E,MAAM,sBAAsB,GAAG,2BAA2B;QACzD,CAAC,CAAC,OAAO,2BAA2B,EAAE;QACtC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"llm-selection.prompt.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/prompts/llm-selection.prompt.ts"],"names":[],"mappings":";;AAAA,sDA4DC;AA5DD,SAAgB,qBAAqB,CAAC,2BAA0C;IAC/E,MAAM,sBAAsB,GAAG,2BAA2B;QACzD,CAAC,CAAC,OAAO,2BAA2B,EAAE;QACtC,CAAC,CAAC,8MAA8M,CAAC;IAElN,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iJAsDyI,sBAAsB,EAAE,CAAC;AAC1K,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const MEMORY_PROMPT = "## Memory Guidance\n\n### Purpose\n\nUse this to configure the target agent's memory behavior.\n\n### Workflow\n\nFresh agents must include this default memory config unless the user explicitly asks to disable or change memory:\n```json\n{\n \"enabled\": true,\n \"storage\": \"n8n\",\n \"observationalMemory\": {\n \"enabled\": true\n }\n}\n```\n\nThis is the configurable agent's session memory. The runtime-managed\n`observationalMemory` settings tune that memory behavior; they are not a\nseparate user-facing memory product.\n\n### Rules\n\n- When creating a new agent, always write the exact default `memory` object above.\n- Set `storage` to \"n8n\".\n- Set `observationalMemory.enabled` to `true` for new agents unless the user explicitly asks to disable observational memory.\n- Keep the rest of `observationalMemory` optional; add tuning fields only for explicit tuning or disabling.\n- Supported observational memory tuning fields: `enabled`, `observerModel`, `reflectorModel`, `observerThresholdTokens`, `reflectorThresholdTokens`, `renderTokenBudget`, `observationLogTailLimit`, and `lockTtlMs`.\n- Memory worker model fields must use object shape: `{ \"model\": \"provider/model-name\", \"credential\": \"<credentialId>\" }`.\n- Only set `observerModel`, `reflectorModel`, `extractorModel`, or `episodicMemory.reflectorModel` when the user explicitly asks to use a specific model for memory work.\n- Use only credential IDs returned by `resolve_llm
|
|
1
|
+
export declare const MEMORY_PROMPT = "## Memory Guidance\n\n### Purpose\n\nUse this to configure the target agent's memory behavior.\n\n### Workflow\n\nFresh agents must include this default memory config unless the user explicitly asks to disable or change memory:\n```json\n{\n \"enabled\": true,\n \"storage\": \"n8n\",\n \"observationalMemory\": {\n \"enabled\": true\n }\n}\n```\n\nThis is the configurable agent's session memory. The runtime-managed\n`observationalMemory` settings tune that memory behavior; they are not a\nseparate user-facing memory product.\n\n### Rules\n\n- When creating a new agent, always write the exact default `memory` object above.\n- Set `storage` to \"n8n\".\n- Set `observationalMemory.enabled` to `true` for new agents unless the user explicitly asks to disable observational memory.\n- Keep the rest of `observationalMemory` optional; add tuning fields only for explicit tuning or disabling.\n- Supported observational memory tuning fields: `enabled`, `observerModel`, `reflectorModel`, `observerThresholdTokens`, `reflectorThresholdTokens`, `renderTokenBudget`, `observationLogTailLimit`, and `lockTtlMs`.\n- Memory worker model fields must use object shape: `{ \"model\": \"provider/model-name\", \"credential\": \"<credentialId>\" }`.\n- Only set `observerModel`, `reflectorModel`, `extractorModel`, or `episodicMemory.reflectorModel` when the user explicitly asks to use a specific model for memory work.\n- Use only credential IDs returned by `resolve_llm` or `ask_credential` for memory worker model fields. Do not invent IDs or copy a main-model credential unless one of those tools returned it for that worker model provider.\n\n### Episodic Memory\n\n- Enable `memory.episodicMemory` only when the user asks for Episodic Memory, long-term memory, prior conversations, remembered decisions, exact artifacts, or cross-session memory.\n- Before enabling it, call `ask_embedding_credential({ credentialType: \"openAiApi\", purpose: \"OpenAI credential for Episodic Memory embeddings\" })`.\n- On success, set `memory.episodicMemory = { \"enabled\": true, \"credential\": \"<credentialId>\" }`, using the returned `credentialId` value. This can be a real credential id or `\"managed\"` when the assistant proxy is available. Preserve existing `topK` or `maxEntriesPerRun`.\n- `memory.episodicMemory.credential` is only for OpenAI embeddings. It is separate from optional `extractorModel` and `reflectorModel` worker credentials.\n- If credential selection is skipped, do not enable Episodic Memory; explain that it needs an OpenAI credential for embeddings.\n- Do not add instructions saying the agent should remember, store, save, or decide what context matters. The runtime handles memory extraction and indexing.\n- If instructions mention Episodic Memory, phrase it as retrieval/use only, e.g. \"Use recalled prior context when relevant to the user's request.\"\n- Do not invent Episodic Memory credential IDs or reuse the main model credential unless `ask_embedding_credential` returned it for this purpose.\n\n### Gotchas\n\n- Session memory and Episodic Memory are different features; do not use one as a substitute for the other.\n- Observational memory is runtime-managed session memory behavior; do not add target-agent instructions telling it how to save observations.\n- A skipped Episodic Memory credential means Episodic Memory stays disabled.\n\n### Verify\n\n- Fresh runnable agents have enabled n8n memory unless explicitly disabled.\n- Fresh runnable agents set `observationalMemory.enabled` to `true` unless explicitly disabled.\n- Episodic Memory has an OpenAI credential or `\"managed\"` returned by `ask_embedding_credential`.\n- Existing memory tuning is preserved unless the user asked to change it.";
|
|
@@ -34,7 +34,7 @@ separate user-facing memory product.
|
|
|
34
34
|
- Supported observational memory tuning fields: \`enabled\`, \`observerModel\`, \`reflectorModel\`, \`observerThresholdTokens\`, \`reflectorThresholdTokens\`, \`renderTokenBudget\`, \`observationLogTailLimit\`, and \`lockTtlMs\`.
|
|
35
35
|
- Memory worker model fields must use object shape: \`{ "model": "provider/model-name", "credential": "<credentialId>" }\`.
|
|
36
36
|
- Only set \`observerModel\`, \`reflectorModel\`, \`extractorModel\`, or \`episodicMemory.reflectorModel\` when the user explicitly asks to use a specific model for memory work.
|
|
37
|
-
- Use only credential IDs returned by \`resolve_llm
|
|
37
|
+
- Use only credential IDs returned by \`resolve_llm\` or \`ask_credential\` for memory worker model fields. Do not invent IDs or copy a main-model credential unless one of those tools returned it for that worker model provider.
|
|
38
38
|
|
|
39
39
|
### Episodic Memory
|
|
40
40
|
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildSearchMcpServersTool = buildSearchMcpServersTool;
|
|
4
4
|
const tool_1 = require("@n8n/agents/tool");
|
|
5
|
-
const change_case_1 = require("change-case");
|
|
6
5
|
const zod_1 = require("zod");
|
|
7
|
-
const node_description_transform_1 = require("../../../modules/mcp-registry/node-description-transform");
|
|
8
6
|
const builder_tool_names_1 = require("./builder-tool-names");
|
|
9
7
|
const searchMcpServersInputSchema = zod_1.z.object({
|
|
10
8
|
queries: zod_1.z
|
|
@@ -12,73 +10,13 @@ const searchMcpServersInputSchema = zod_1.z.object({
|
|
|
12
10
|
.min(1)
|
|
13
11
|
.describe('Search queries for MCP servers (e.g., ["github"], ["slack"])'),
|
|
14
12
|
});
|
|
15
|
-
function getMcpRegistryCredentialTypeName(server) {
|
|
16
|
-
return `${(0, change_case_1.camelCase)(server.slug)}McpOAuth2Api`;
|
|
17
|
-
}
|
|
18
|
-
function pickPreferredRemote(server) {
|
|
19
|
-
const streamable = server.remotes.find((remote) => remote.type === 'streamable-http');
|
|
20
|
-
if (streamable)
|
|
21
|
-
return { type: 'streamableHttp', url: streamable.url };
|
|
22
|
-
const sse = server.remotes.find((remote) => remote.type === 'sse');
|
|
23
|
-
if (sse)
|
|
24
|
-
return { type: 'sse', url: sse.url };
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
function registryServerToMcpConfig(server) {
|
|
28
|
-
const remote = pickPreferredRemote(server);
|
|
29
|
-
if (!remote)
|
|
30
|
-
return null;
|
|
31
|
-
const credentialType = getMcpRegistryCredentialTypeName(server);
|
|
32
|
-
const nodeTypeName = `${node_description_transform_1.MCP_REGISTRY_PACKAGE_NAME}.${(0, change_case_1.camelCase)(server.slug)}`;
|
|
33
|
-
return {
|
|
34
|
-
name: (0, change_case_1.camelCase)(server.slug),
|
|
35
|
-
title: server.title,
|
|
36
|
-
description: server.tagline,
|
|
37
|
-
url: remote.url,
|
|
38
|
-
transport: remote.type,
|
|
39
|
-
authentication: credentialType,
|
|
40
|
-
credentialType,
|
|
41
|
-
tools: server.tools.map((tool) => ({
|
|
42
|
-
name: tool.name,
|
|
43
|
-
...(tool.title ? { title: tool.title } : {}),
|
|
44
|
-
})),
|
|
45
|
-
metadata: {
|
|
46
|
-
nodeTypeName,
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function normalizeQueries(queries) {
|
|
51
|
-
return queries.map((query) => query.trim().toLowerCase()).filter((query) => query.length > 0);
|
|
52
|
-
}
|
|
53
|
-
function matchesServerQuery(server, normalizedQueries) {
|
|
54
|
-
const fields = [
|
|
55
|
-
server.slug,
|
|
56
|
-
(0, change_case_1.camelCase)(server.slug),
|
|
57
|
-
server.title,
|
|
58
|
-
server.description,
|
|
59
|
-
server.tagline,
|
|
60
|
-
]
|
|
61
|
-
.map((field) => (typeof field === 'string' ? field.toLowerCase() : null))
|
|
62
|
-
.filter((field) => field !== null);
|
|
63
|
-
return normalizedQueries.some((query) => fields.some((field) => field.includes(query)));
|
|
64
|
-
}
|
|
65
13
|
function buildSearchMcpServersTool(deps) {
|
|
66
14
|
return new tool_1.Tool(builder_tool_names_1.BUILDER_TOOLS.SEARCH_MCP_SERVERS)
|
|
67
15
|
.description('Search the MCP registry for available MCP servers. Returns MCP config-ready server details, ' +
|
|
68
16
|
'including credentialType for ask_credential and server metadata needed for patch_config.')
|
|
69
17
|
.input(searchMcpServersInputSchema)
|
|
70
18
|
.handler(async ({ queries }) => {
|
|
71
|
-
|
|
72
|
-
if (normalizedQueries.length === 0)
|
|
73
|
-
return { results: [] };
|
|
74
|
-
const servers = await deps.mcpRegistryService.getAll();
|
|
75
|
-
const results = servers.flatMap((server) => {
|
|
76
|
-
if (!matchesServerQuery(server, normalizedQueries))
|
|
77
|
-
return [];
|
|
78
|
-
const transformed = registryServerToMcpConfig(server);
|
|
79
|
-
return transformed ? [transformed] : [];
|
|
80
|
-
});
|
|
81
|
-
return { results };
|
|
19
|
+
return { results: await deps.mcpRegistryService.search(queries) };
|
|
82
20
|
})
|
|
83
21
|
.build();
|
|
84
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-mcp-servers.tool.js","sourceRoot":"","sources":["../../../../src/modules/agents/builder/search-mcp-servers.tool.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"search-mcp-servers.tool.js","sourceRoot":"","sources":["../../../../src/modules/agents/builder/search-mcp-servers.tool.ts"],"names":[],"mappings":";;AAmBA,8DAWC;AA7BD,2CAAwC;AACxC,6BAAwB;AAIxB,6DAAqD;AAMrD,MAAM,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,OAAC;SACR,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CAAC,8DAA8D,CAAC;CAC1E,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CAAC,IAA0B;IACnE,OAAO,IAAI,WAAI,CAAC,kCAAa,CAAC,kBAAkB,CAAC;SAC/C,WAAW,CACX,8FAA8F;QAC7F,0FAA0F,CAC3F;SACA,KAAK,CAAC,2BAA2B,CAAC;SAClC,OAAO,CAAC,KAAK,EAAE,EAAE,OAAO,EAAyB,EAAE,EAAE;QACrD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;IACnE,CAAC,CAAC;SACD,KAAK,EAAE,CAAC;AACX,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuntimeSkill } from '@n8n/agents';
|
|
2
|
-
export declare function getBuilderRuntimeSkills(): RuntimeSkill[];
|
|
2
|
+
export declare function getBuilderRuntimeSkills(excludeTools?: string[]): RuntimeSkill[];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBuilderRuntimeSkills = getBuilderRuntimeSkills;
|
|
4
|
+
const api_types_1 = require("@n8n/api-types");
|
|
4
5
|
const integrations_skill_1 = require("./integrations.skill");
|
|
5
6
|
const mcp_skill_1 = require("./mcp.skill");
|
|
6
7
|
const resource_locators_skill_1 = require("./resource-locators.skill");
|
|
7
8
|
const sub_agents_skill_1 = require("./sub-agents.skill");
|
|
8
9
|
const target_skills_skill_1 = require("./target-skills.skill");
|
|
9
10
|
const target_tasks_skill_1 = require("./target-tasks.skill");
|
|
10
|
-
function getBuilderRuntimeSkills() {
|
|
11
|
+
function getBuilderRuntimeSkills(excludeTools = []) {
|
|
11
12
|
const skills = [
|
|
12
13
|
(0, integrations_skill_1.integrationsSkill)(),
|
|
13
14
|
(0, mcp_skill_1.mcpSkill)(),
|
|
@@ -16,6 +17,9 @@ function getBuilderRuntimeSkills() {
|
|
|
16
17
|
(0, target_skills_skill_1.targetSkillsSkill)(),
|
|
17
18
|
(0, target_tasks_skill_1.targetTasksSkill)(),
|
|
18
19
|
];
|
|
20
|
+
if (excludeTools.includes(api_types_1.CONFIGURE_CHANNEL_TOOL_NAME)) {
|
|
21
|
+
return skills.filter((skill) => skill.id !== 'agent-builder-integrations');
|
|
22
|
+
}
|
|
19
23
|
return skills;
|
|
20
24
|
}
|
|
21
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/index.ts"],"names":[],"mappings":";;AAiBA,0DAmBC;AAnCD,8CAA6D;AAE7D,6DAAyD;AACzD,2CAAuC;AACvC,uEAAkE;AAClE,yDAAoD;AACpD,+DAA0D;AAC1D,6DAAwD;AASxD,SAAgB,uBAAuB,CAAC,eAAyB,EAAE;IAClE,MAAM,MAAM,GAAmB;QAC9B,IAAA,sCAAiB,GAAE;QACnB,IAAA,oBAAQ,GAAE;QACV,IAAA,+CAAqB,GAAE;QACvB,IAAA,iCAAc,GAAE;QAChB,IAAA,uCAAiB,GAAE;QACnB,IAAA,qCAAgB,GAAE;KAKlB,CAAC;IAEF,IAAI,YAAY,CAAC,QAAQ,CAAC,uCAA2B,CAAC,EAAE,CAAC;QACxD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,4BAA4B,CAAC,CAAC;IAC5E,CAAC;IAED,OAAO,MAAM,CAAC;AACf,CAAC"}
|
|
@@ -6,10 +6,15 @@ function integrationsSkill() {
|
|
|
6
6
|
id: 'agent-builder-integrations',
|
|
7
7
|
name: 'Agent Builder Integrations',
|
|
8
8
|
description: 'Use when deciding whether Slack, Linear, Telegram, or another external platform should be a target-agent chat integration/trigger versus a node tool, and when adding or changing chat integrations; not for built-in Build chat or Preview chat behavior.',
|
|
9
|
-
recommendedTools: [
|
|
9
|
+
recommendedTools: [
|
|
10
|
+
'list_integration_types',
|
|
11
|
+
'configure_channel',
|
|
12
|
+
'read_config',
|
|
13
|
+
'patch_config',
|
|
14
|
+
],
|
|
10
15
|
allowedTools: [
|
|
11
16
|
'list_integration_types',
|
|
12
|
-
'
|
|
17
|
+
'configure_channel',
|
|
13
18
|
'read_config',
|
|
14
19
|
'patch_config',
|
|
15
20
|
'write_config',
|
|
@@ -59,13 +64,16 @@ The \`integrations\` array controls how the target agent is triggered.
|
|
|
59
64
|
- Call \`list_integration_types\` first.
|
|
60
65
|
- Read the returned \`capabilities\`, \`useIntegrationWhen\`, and
|
|
61
66
|
\`useNodeToolWhen\` fields before deciding to add an integration.
|
|
62
|
-
- Pick one returned \`
|
|
63
|
-
|
|
67
|
+
- Pick one returned \`type\` and pass it to \`configure_channel\` as
|
|
68
|
+
\`integrationType\`. ALWAYS use \`configure_channel\` for chat-channel
|
|
69
|
+
credentials — never \`ask_credential\` or a raw config write. The setup UI it
|
|
70
|
+
shows creates and persists the credential/connection itself; do not follow up
|
|
71
|
+
with \`patch_config\`/\`write_config\` to write the credential.
|
|
64
72
|
- Preserve existing chat integrations unless the user asked to remove them.
|
|
65
73
|
|
|
66
74
|
## Gotchas
|
|
67
75
|
|
|
68
|
-
- Chat integration
|
|
76
|
+
- Chat integration types must come from \`list_integration_types\`.
|
|
69
77
|
- Do not add a Linear integration just because the agent needs Linear issue
|
|
70
78
|
CRUD. Use Linear node tools unless Linear itself is the chat/trigger context.
|
|
71
79
|
- For recurring or scheduled runs, create a task (\`create_task\`), not an
|
|
@@ -73,7 +81,8 @@ The \`integrations\` array controls how the target agent is triggered.
|
|
|
73
81
|
|
|
74
82
|
## Verify
|
|
75
83
|
|
|
76
|
-
- Connected chat integrations
|
|
84
|
+
- Connected chat integrations were set up through \`configure_channel\`, not
|
|
85
|
+
\`ask_credential\` or a manual config write.
|
|
77
86
|
- The chosen integration matches \`useIntegrationWhen\`; otherwise use node or
|
|
78
87
|
workflow tools.
|
|
79
88
|
- The final \`integrations\` array keeps unrelated integrations intact.`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/integrations.skill.ts"],"names":[],"mappings":";;AAEA,
|
|
1
|
+
{"version":3,"file":"integrations.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/integrations.skill.ts"],"names":[],"mappings":";;AAEA,8CAuFC;AAvFD,SAAgB,iBAAiB;IAChC,OAAO;QACN,EAAE,EAAE,4BAA4B;QAChC,IAAI,EAAE,4BAA4B;QAClC,WAAW,EACV,4PAA4P;QAC7P,gBAAgB,EAAE;YACjB,wBAAwB;YACxB,mBAAmB;YACnB,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,wBAAwB;YACxB,mBAAmB;YACnB,aAAa;YACb,cAAc;YACd,cAAc;SACd;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAkEwD;KACtE,CAAC;AACH,CAAC"}
|
|
@@ -21,7 +21,7 @@ function mcpSkill() {
|
|
|
21
21
|
'search_mcp_servers',
|
|
22
22
|
'ask_credential',
|
|
23
23
|
'verify_mcp_server',
|
|
24
|
-
'
|
|
24
|
+
'ask_questions',
|
|
25
25
|
'read_config',
|
|
26
26
|
'patch_config',
|
|
27
27
|
'write_config',
|
|
@@ -98,7 +98,7 @@ by \`search_mcp_servers\`.
|
|
|
98
98
|
|
|
99
99
|
For custom MCP servers, if credential type is unknown, ask the user which
|
|
100
100
|
credential type to use (OAuth2, Bearer Token, Header Auth, Multiple Headers
|
|
101
|
-
Auth, or None) via \`${api_types_1.
|
|
101
|
+
Auth, or None) via \`${api_types_1.ASK_QUESTIONS_TOOL_NAME}\`. Then map to:
|
|
102
102
|
|
|
103
103
|
- \`bearerAuth\` -> \`ask_credential\` with \`credentialType: "httpBearerAuth"\`
|
|
104
104
|
- \`headerAuth\` -> \`ask_credential\` with \`credentialType: "httpHeaderAuth"\`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/mcp.skill.ts"],"names":[],"mappings":";;AAWA,4BAsHC;AAhID,
|
|
1
|
+
{"version":3,"file":"mcp.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/mcp.skill.ts"],"names":[],"mappings":";;AAWA,4BAsHC;AAhID,8CAAgF;AAEhF,2DAAqD;AAErD,qFAAmF;AAEnF,MAAM,mBAAmB,GAAG,IAAA,gDAAuB,EAClD,IAAA,oCAAe,EAAC,iCAAqB,CAAgB,CACrD,CAAC;AAEF,SAAgB,QAAQ;IACvB,OAAO;QACN,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,2BAA2B;QACjC,WAAW,EACV,kGAAkG;QACnG,gBAAgB,EAAE;YACjB,oBAAoB;YACpB,gBAAgB;YAChB,mBAAmB;YACnB,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,oBAAoB;YACpB,gBAAgB;YAChB,mBAAmB;YACnB,eAAe;YACf,aAAa;YACb,cAAc;YACd,cAAc;SACd;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCd,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAmCE,mCAAuB;;;;;;;;;;;;;;;;;;;;;;sCAsBR;KACpC,CAAC;AACH,CAAC"}
|
|
@@ -19,7 +19,7 @@ function resourceLocatorsSkill() {
|
|
|
19
19
|
'get_node_types',
|
|
20
20
|
'ask_credential',
|
|
21
21
|
'get_resource_locator_options',
|
|
22
|
-
'
|
|
22
|
+
'ask_questions',
|
|
23
23
|
'read_config',
|
|
24
24
|
'patch_config',
|
|
25
25
|
'write_config',
|
|
@@ -62,7 +62,7 @@ locator values that the target agent cannot reliably guess at runtime.
|
|
|
62
62
|
- current \`nodeParameters\`
|
|
63
63
|
- returned \`credentials\`, when available
|
|
64
64
|
- \`filter\` when the user named a specific team, channel, project, or object
|
|
65
|
-
6. If results are ambiguous, use \`
|
|
65
|
+
6. If results are ambiguous, use \`ask_questions\` with the returned option names.
|
|
66
66
|
If there are many pages, retry with \`paginationToken\` or a narrower
|
|
67
67
|
\`filter\`.
|
|
68
68
|
7. Write the selected result's \`parameterValue\` exactly into
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-locators.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/resource-locators.skill.ts"],"names":[],"mappings":";;AAEA,sDAyHC;AAzHD,SAAgB,qBAAqB;IACpC,OAAO;QACN,EAAE,EAAE,iCAAiC;QACrC,IAAI,EAAE,iCAAiC;QACvC,WAAW,EACV,wTAAwT;QACzT,gBAAgB,EAAE;YACjB,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,8BAA8B;YAC9B,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,8BAA8B;YAC9B,
|
|
1
|
+
{"version":3,"file":"resource-locators.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/resource-locators.skill.ts"],"names":[],"mappings":";;AAEA,sDAyHC;AAzHD,SAAgB,qBAAqB;IACpC,OAAO;QACN,EAAE,EAAE,iCAAiC;QACrC,IAAI,EAAE,iCAAiC;QACvC,WAAW,EACV,wTAAwT;QACzT,gBAAgB,EAAE;YACjB,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,8BAA8B;YAC9B,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,8BAA8B;YAC9B,eAAe;YACf,aAAa;YACb,cAAc;YACd,cAAc;SACd;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA+FoC;KAClD,CAAC;AACH,CAAC"}
|
|
@@ -7,10 +7,10 @@ function subAgentsSkill() {
|
|
|
7
7
|
id: 'agent-builder-sub-agents',
|
|
8
8
|
name: 'Agent Builder Sub-Agents',
|
|
9
9
|
description: 'Use when configuring inline or saved sub-agent delegation for the target agent, selecting published same-project sub-agents, or changing subAgents.maxChildren.',
|
|
10
|
-
recommendedTools: ['list_sub_agents', '
|
|
10
|
+
recommendedTools: ['list_sub_agents', 'ask_questions', 'read_config', 'patch_config'],
|
|
11
11
|
allowedTools: [
|
|
12
12
|
'list_sub_agents',
|
|
13
|
-
'
|
|
13
|
+
'ask_questions',
|
|
14
14
|
'read_config',
|
|
15
15
|
'patch_config',
|
|
16
16
|
'write_config',
|
|
@@ -51,8 +51,9 @@ subagent.
|
|
|
51
51
|
1. Call \`list_sub_agents\` to discover published same-project agents that can be
|
|
52
52
|
added. Do not write agent ids from memory, prose, or user-entered free text.
|
|
53
53
|
2. If published agents are available and the user has not named exact agents,
|
|
54
|
-
call \`
|
|
55
|
-
|
|
54
|
+
call \`ask_questions\` with one \`type: "multi"\` question whose \`options\`
|
|
55
|
+
are the returned agent names. Map each selected option back to the
|
|
56
|
+
matching \`agentId\` from the \`list_sub_agents\` result.
|
|
56
57
|
3. If no published agents are available, do not configure saved subagents.
|
|
57
58
|
Inline delegation still works without saved-agent refs.
|
|
58
59
|
4. Determine the parent-owned routing guidance for each selected saved
|
|
@@ -68,7 +69,8 @@ Example patch flow:
|
|
|
68
69
|
|
|
69
70
|
1. \`list_sub_agents()\`.
|
|
70
71
|
2. If it returns one or more agents and the user has not named exact ones, call
|
|
71
|
-
\`
|
|
72
|
+
\`ask_questions({ questions: [{ type: "multi", ... }] })\` with those agents
|
|
73
|
+
as options.
|
|
72
74
|
3. If the user's request does not make the routing rule clear, ask when each
|
|
73
75
|
selected saved subagent should be used.
|
|
74
76
|
4. \`read_config()\`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sub-agents.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/sub-agents.skill.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"sub-agents.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/sub-agents.skill.ts"],"names":[],"mappings":";;AAOA,wCA4HC;AAlID,8CAIwB;AAExB,SAAgB,cAAc;IAC7B,OAAO;QACN,EAAE,EAAE,0BAA0B;QAC9B,IAAI,EAAE,0BAA0B;QAChC,WAAW,EACV,iKAAiK;QAClK,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,CAAC;QACrF,YAAY,EAAE;YACb,iBAAiB;YACjB,eAAe;YACf,aAAa;YACb,cAAc;YACd,cAAc;SACd;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;sDAuBsC,sCAA0B,OAAO,sCAA0B,gCAAgC,0CAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qDAqF1H,sCAA0B,OAAO,sCAA0B,GAAG;KACjH,CAAC;AACH,CAAC"}
|
|
@@ -7,8 +7,8 @@ function targetSkillsSkill() {
|
|
|
7
7
|
id: 'agent-builder-target-skills',
|
|
8
8
|
name: 'Agent Builder Target Skills',
|
|
9
9
|
description: 'Use when creating reusable target-agent skills, playbooks, policies, style guides, or domain instructions with create_skill that should load only for relevant future requests; not for builder guidance or one-off instructions.',
|
|
10
|
-
recommendedTools: ['create_skill', '
|
|
11
|
-
allowedTools: ['create_skill', '
|
|
10
|
+
recommendedTools: ['create_skill', 'ask_questions', 'read_config', 'patch_config'],
|
|
11
|
+
allowedTools: ['create_skill', 'ask_questions', 'read_config', 'patch_config', 'write_config'],
|
|
12
12
|
instructions: `\
|
|
13
13
|
## Purpose
|
|
14
14
|
|
|
@@ -44,8 +44,9 @@ Do NOT call \`create_skill\` until you have enough concrete domain detail to wri
|
|
|
44
44
|
a genuinely useful skill: a specific routing description and a body whose
|
|
45
45
|
applicable sections are filled with real content (the actual steps, rules,
|
|
46
46
|
examples, and edge cases). If any of that is missing, ask the user clarifying
|
|
47
|
-
questions (use \`
|
|
48
|
-
for open-ended) until you can
|
|
47
|
+
questions (use \`ask_questions\`, batching multiple questions into one call —
|
|
48
|
+
discrete options for choices, or \`type: "text"\` for open-ended) until you can
|
|
49
|
+
write it. Never create a placeholder or vague skill.
|
|
49
50
|
|
|
50
51
|
## Workflow
|
|
51
52
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target-skills.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/target-skills.skill.ts"],"names":[],"mappings":";;AAQA,
|
|
1
|
+
{"version":3,"file":"target-skills.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/target-skills.skill.ts"],"names":[],"mappings":";;AAQA,8CAsGC;AA5GD,gEAIgC;AAEhC,SAAgB,iBAAiB;IAChC,OAAO;QACN,EAAE,EAAE,6BAA6B;QACjC,IAAI,EAAE,6BAA6B;QACnC,WAAW,EACV,mOAAmO;QACpO,gBAAgB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,CAAC;QAClF,YAAY,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,CAAC;QAC9F,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;EAqBd,4CAAsB;;;;EAItB,4CAAsB;;EAEtB,yCAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAiEE;KACrB,CAAC;AACH,CAAC"}
|
|
@@ -7,10 +7,10 @@ function targetTasksSkill() {
|
|
|
7
7
|
id: 'agent-builder-target-tasks',
|
|
8
8
|
name: 'Agent Builder Target Tasks',
|
|
9
9
|
description: 'Use when the user wants the target agent to run something on a recurring schedule (a "task"): a daily/weekly/hourly objective the agent carries out on its own with create_task. Not for one-off requests, chat/event triggers, or config/tool/skill/model edits.',
|
|
10
|
-
recommendedTools: ['create_task', '
|
|
10
|
+
recommendedTools: ['create_task', 'ask_questions', 'read_config', 'patch_config'],
|
|
11
11
|
allowedTools: [
|
|
12
12
|
'create_task',
|
|
13
|
-
'
|
|
13
|
+
'ask_questions',
|
|
14
14
|
'read_config',
|
|
15
15
|
'patch_config',
|
|
16
16
|
'write_config',
|
|
@@ -55,9 +55,9 @@ Do NOT call \`create_task\` until BOTH of these are true:
|
|
|
55
55
|
2. The schedule is concrete — how often and at what time it should run.
|
|
56
56
|
|
|
57
57
|
If any section would be empty or a guess, ask the user clarifying questions (use
|
|
58
|
-
\`
|
|
59
|
-
|
|
60
|
-
or "refine-it-later" task.
|
|
58
|
+
\`ask_questions\`, batching multiple questions into one call — discrete options for
|
|
59
|
+
choices, or \`type: "text"\` for open-ended) until you can complete the whole
|
|
60
|
+
template and pin down the cadence. Never create a placeholder or "refine-it-later" task.
|
|
61
61
|
|
|
62
62
|
## Workflow
|
|
63
63
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target-tasks.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/target-tasks.skill.ts"],"names":[],"mappings":";;AAIA,4CAyFC;AA3FD,wEAAiG;AAEjG,SAAgB,gBAAgB;IAC/B,OAAO;QACN,EAAE,EAAE,4BAA4B;QAChC,IAAI,EAAE,4BAA4B;QAClC,WAAW,EACV,mQAAmQ;QACpQ,gBAAgB,EAAE,CAAC,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"target-tasks.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/target-tasks.skill.ts"],"names":[],"mappings":";;AAIA,4CAyFC;AA3FD,wEAAiG;AAEjG,SAAgB,gBAAgB;IAC/B,OAAO;QACN,EAAE,EAAE,4BAA4B;QAChC,IAAI,EAAE,4BAA4B;QAClC,WAAW,EACV,mQAAmQ;QACpQ,gBAAgB,EAAE,CAAC,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,CAAC;QACjF,YAAY,EAAE;YACb,aAAa;YACb,eAAe;YACf,aAAa;YACb,cAAc;YACd,cAAc;YACd,gBAAgB;YAChB,cAAc;YACd,gBAAgB;YAChB,gBAAgB;SAChB;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;EAqBd,oDAA0B;;EAE1B,iDAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA8Cc;KACrC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CredentialProvider } from '@n8n/agents';
|
|
2
|
+
import type { User } from '@n8n/db';
|
|
3
|
+
import type { InstanceAiBuilderDelegate } from '@n8n/instance-ai';
|
|
4
|
+
import { AgentsService } from './agents.service';
|
|
5
|
+
import { AgentsBuilderService } from './builder/agents-builder.service';
|
|
6
|
+
export declare const NON_INTERACTIVE_EXCLUDED_TOOL_NAMES: string[];
|
|
7
|
+
export declare const INSTANCE_AI_BUILDER_ADDENDUM = "## Instance AI session rules\n\nYou are running as a sub-agent inside n8n's instance AI chat. You CANNOT ask the user anything mid-turn: the interactive tools (ask_questions, ask_credential, ask_embedding_credential, configure_channel) are not available in this session.\n\n- Never wait for user input. Complete every turn with your best result.\n- Make sensible default choices where the instructions leave room, and state the choices you made in your reply.\n- When a decision genuinely needs the user (model choice with no default, missing credential, channel setup), finish the turn and list those open questions clearly at the end of your reply text \u2014 the host assistant will ask the user and send you the answers in a follow-up message.\n- Credentials and chat channels cannot be connected from this chat; describe what the user must connect and continue with the rest of the build.\n- For the model: when the instructions specify or imply a provider/model, call resolve_llm directly; otherwise pick the recommended default and note it in your reply.\n- The agent preview link is not visible in this chat; describe outcomes in text instead of linking the preview.";
|
|
8
|
+
export declare class InstanceAiBuilderDelegateAdapterService {
|
|
9
|
+
private readonly agentsService;
|
|
10
|
+
private readonly agentsBuilderService;
|
|
11
|
+
constructor(agentsService: AgentsService, agentsBuilderService: AgentsBuilderService);
|
|
12
|
+
private buildSubAgentSession;
|
|
13
|
+
createDelegate(user: User, projectId: string, credentialProvider: CredentialProvider): InstanceAiBuilderDelegate;
|
|
14
|
+
}
|