n8n 2.28.3 → 2.29.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/abstract-server.js +1 -1
- package/dist/abstract-server.js.map +1 -1
- package/dist/active-executions.js +2 -2
- package/dist/active-executions.js.map +1 -1
- package/dist/active-workflow-manager.js +1 -1
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/auth/auth.service.js +12 -12
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/blob-storage/azure-byte-store.ee.d.ts +10 -0
- package/dist/blob-storage/azure-byte-store.ee.js +57 -0
- package/dist/blob-storage/azure-byte-store.ee.js.map +1 -0
- package/dist/blob-storage/fs-byte-store.d.ts +14 -0
- package/dist/blob-storage/fs-byte-store.js +97 -0
- package/dist/blob-storage/fs-byte-store.js.map +1 -0
- package/dist/blob-storage/json-store.d.ts +18 -0
- package/dist/blob-storage/json-store.js +125 -0
- package/dist/blob-storage/json-store.js.map +1 -0
- package/dist/blob-storage/s3-byte-store.ee.d.ts +10 -0
- package/dist/blob-storage/s3-byte-store.ee.js +52 -0
- package/dist/blob-storage/s3-byte-store.ee.js.map +1 -0
- package/dist/blob-storage/skipped-entry-deletion.error.d.ts +5 -0
- package/dist/blob-storage/skipped-entry-deletion.error.js +13 -0
- package/dist/blob-storage/skipped-entry-deletion.error.js.map +1 -0
- package/dist/blob-storage/types.d.ts +23 -0
- package/dist/blob-storage/types.js +3 -0
- package/dist/blob-storage/types.js.map +1 -0
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-server.js +1 -1
- package/dist/chat/chat-server.js.map +1 -1
- package/dist/chat/chat-service.js +1 -1
- package/dist/chat/chat-service.js.map +1 -1
- package/dist/chat/chat-service.types.d.ts +2 -2
- package/dist/collaboration/collaboration.service.d.ts +2 -2
- package/dist/collaboration/collaboration.service.js +2 -2
- package/dist/collaboration/collaboration.service.js.map +1 -1
- package/dist/commands/base-command.d.ts +1 -1
- package/dist/commands/base-command.js +27 -3
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/export/entities.js +3 -3
- package/dist/commands/export/entities.js.map +1 -1
- package/dist/commands/export/workflow.js.map +1 -1
- package/dist/commands/import/entities.js +3 -3
- package/dist/commands/import/entities.js.map +1 -1
- package/dist/commands/import/workflow.js +1 -1
- package/dist/commands/import/workflow.js.map +1 -1
- package/dist/commands/start.js +5 -5
- package/dist/commands/start.js.map +1 -1
- package/dist/controller.registry.d.ts +1 -1
- package/dist/controller.registry.js +8 -8
- package/dist/controller.registry.js.map +1 -1
- package/dist/controllers/ai.controller.d.ts +1 -0
- package/dist/controllers/ai.controller.js +20 -11
- package/dist/controllers/ai.controller.js.map +1 -1
- package/dist/controllers/e2e.controller.js +1 -0
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/folder.controller.d.ts +1 -1
- package/dist/controllers/folder.controller.js +1 -1
- package/dist/controllers/folder.controller.js.map +1 -1
- package/dist/controllers/invitation.controller.d.ts +1 -1
- package/dist/controllers/invitation.controller.js +5 -5
- package/dist/controllers/invitation.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.d.ts +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.js +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/orchestration.controller.js.map +1 -1
- package/dist/controllers/owner.controller.d.ts +1 -1
- package/dist/controllers/owner.controller.js +1 -1
- package/dist/controllers/owner.controller.js.map +1 -1
- package/dist/controllers/password-reset.controller.d.ts +1 -1
- package/dist/controllers/password-reset.controller.js +3 -3
- package/dist/controllers/password-reset.controller.js.map +1 -1
- package/dist/controllers/posthog.controller.d.ts +2 -5
- package/dist/controllers/posthog.controller.js.map +1 -1
- package/dist/controllers/role.controller.d.ts +2 -1
- package/dist/controllers/role.controller.js +12 -0
- package/dist/controllers/role.controller.js.map +1 -1
- package/dist/controllers/security-settings.controller.d.ts +1 -1
- package/dist/controllers/third-party-licenses.controller.js +1 -1
- package/dist/controllers/third-party-licenses.controller.js.map +1 -1
- package/dist/controllers/translation.controller.js +1 -1
- package/dist/controllers/translation.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +8 -6
- package/dist/controllers/users.controller.js +59 -9
- package/dist/controllers/users.controller.js.map +1 -1
- package/dist/credentials/credentials.service.ee.js +7 -0
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +1 -1
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials/validation.js +1 -1
- package/dist/credentials/validation.js.map +1 -1
- package/dist/credentials-helper.d.ts +3 -1
- package/dist/credentials-helper.js +33 -5
- package/dist/credentials-helper.js.map +1 -1
- package/dist/credentials-overwrites.js.map +1 -1
- package/dist/evaluation.ee/evaluation-config.service.js +1 -1
- package/dist/evaluation.ee/evaluation-config.service.js.map +1 -1
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +3 -3
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +11 -5
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
- package/dist/events/relays/workflow-failure-notification.event-relay.js +1 -1
- package/dist/events/relays/workflow-failure-notification.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/shared/shared-hook-functions.js +1 -0
- package/dist/execution-lifecycle/shared/shared-hook-functions.js.map +1 -1
- package/dist/executions/execution-data/azure-store.ee.js +2 -2
- package/dist/executions/execution-data/azure-store.ee.js.map +1 -1
- package/dist/executions/execution-data/types.d.ts +1 -1
- package/dist/executions/execution-persistence.js +11 -4
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution.service.js +5 -4
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/executions.controller.d.ts +2 -2
- package/dist/executions/executions.controller.js +4 -4
- package/dist/executions/executions.controller.js.map +1 -1
- package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js +1 -1
- package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js.map +1 -1
- package/dist/instance-settings-loader/loaders/owner.instance-settings-loader.js +1 -1
- package/dist/instance-settings-loader/loaders/owner.instance-settings-loader.js.map +1 -1
- package/dist/license/license.controller.js +1 -0
- package/dist/license/license.controller.js.map +1 -1
- package/dist/license/license.service.js +3 -4
- package/dist/license/license.service.js.map +1 -1
- package/dist/metrics/prometheus/db-pool-metrics.service.d.ts +13 -0
- package/dist/metrics/prometheus/db-pool-metrics.service.js +71 -0
- package/dist/metrics/prometheus/db-pool-metrics.service.js.map +1 -0
- 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/mfa/mfa.service.d.ts +1 -1
- package/dist/mfa/mfa.service.js +1 -1
- package/dist/mfa/mfa.service.js.map +1 -1
- package/dist/mfa/totp.service.js +41 -11
- package/dist/mfa/totp.service.js.map +1 -1
- package/dist/modules/agents/agent-builder.controller.d.ts +28 -0
- package/dist/modules/agents/agent-builder.controller.js +168 -0
- package/dist/modules/agents/agent-builder.controller.js.map +1 -0
- package/dist/modules/agents/agent-chat.controller.d.ts +41 -0
- package/dist/modules/agents/agent-chat.controller.js +206 -0
- package/dist/modules/agents/agent-chat.controller.js.map +1 -0
- package/dist/modules/agents/agent-config.service.d.ts +33 -0
- package/dist/modules/agents/agent-config.service.js +288 -0
- package/dist/modules/agents/agent-config.service.js.map +1 -0
- package/dist/modules/agents/agent-custom-tools.service.d.ts +22 -0
- package/dist/modules/agents/agent-custom-tools.service.js +98 -0
- package/dist/modules/agents/agent-custom-tools.service.js.map +1 -0
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +110 -0
- package/dist/modules/agents/agent-execution-orchestrator.service.js +482 -0
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -0
- package/dist/modules/agents/agent-execution.service.d.ts +4 -4
- package/dist/modules/agents/agent-execution.service.js +6 -5
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-persistence.service.d.ts +19 -0
- package/dist/modules/agents/agent-integration-persistence.service.js +90 -0
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -0
- package/dist/modules/agents/agent-integrations.controller.d.ts +60 -0
- package/dist/modules/agents/agent-integrations.controller.js +275 -0
- package/dist/modules/agents/agent-integrations.controller.js.map +1 -0
- package/dist/modules/agents/agent-knowledge-sandbox.service.d.ts +1 -1
- package/dist/modules/agents/agent-knowledge-sandbox.service.js +3 -3
- package/dist/modules/agents/agent-knowledge-sandbox.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge.controller.d.ts +26 -0
- package/dist/modules/agents/agent-knowledge.controller.js +112 -0
- package/dist/modules/agents/agent-knowledge.controller.js.map +1 -0
- package/dist/modules/agents/agent-publish.controller.d.ts +38 -0
- package/dist/modules/agents/agent-publish.controller.js +94 -0
- package/dist/modules/agents/agent-publish.controller.js.map +1 -0
- package/dist/modules/agents/agent-publish.service.d.ts +30 -0
- package/dist/modules/agents/agent-publish.service.js +293 -0
- package/dist/modules/agents/agent-publish.service.js.map +1 -0
- package/dist/modules/agents/agent-runnable-state.service.d.ts +15 -0
- package/dist/modules/agents/agent-runnable-state.service.js +43 -0
- package/dist/modules/agents/agent-runnable-state.service.js.map +1 -0
- package/dist/modules/agents/agent-runtime-cache.service.d.ts +44 -0
- package/dist/modules/agents/agent-runtime-cache.service.js +169 -0
- package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -0
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +5 -9
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +68 -41
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-sandbox.controller.d.ts +3 -3
- package/dist/modules/agents/agent-sandbox.controller.js +9 -8
- package/dist/modules/agents/agent-sandbox.controller.js.map +1 -1
- package/dist/modules/agents/agent-skills.service.d.ts +3 -4
- package/dist/modules/agents/agent-skills.service.js +54 -28
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-task.service.d.ts +5 -5
- package/dist/modules/agents/agent-task.service.js +46 -46
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-tasks.controller.d.ts +30 -0
- package/dist/modules/agents/agent-tasks.controller.js +106 -0
- package/dist/modules/agents/agent-tasks.controller.js.map +1 -0
- package/dist/modules/agents/agent-telemetry.js +0 -4
- package/dist/modules/agents/agent-telemetry.js.map +1 -1
- package/dist/modules/agents/agent-test-chat.service.d.ts +9 -0
- package/dist/modules/agents/agent-test-chat.service.js +49 -0
- package/dist/modules/agents/agent-test-chat.service.js.map +1 -0
- package/dist/modules/agents/agent-threads.controller.d.ts +28 -0
- package/dist/modules/agents/agent-threads.controller.js +66 -0
- package/dist/modules/agents/agent-threads.controller.js.map +1 -0
- package/dist/modules/agents/agent-validation.service.d.ts +13 -0
- package/dist/modules/agents/agent-validation.service.js +142 -0
- package/dist/modules/agents/agent-validation.service.js.map +1 -0
- package/dist/modules/agents/agents-catalog.controller.d.ts +8 -0
- package/dist/modules/agents/agents-catalog.controller.js +80 -0
- package/dist/modules/agents/agents-catalog.controller.js.map +1 -0
- package/dist/modules/agents/agents-config.controller.d.ts +181 -0
- package/dist/modules/agents/agents-config.controller.js +71 -0
- package/dist/modules/agents/agents-config.controller.js.map +1 -0
- package/dist/modules/agents/agents-skills.controller.d.ts +33 -0
- package/dist/modules/agents/agents-skills.controller.js +94 -0
- package/dist/modules/agents/agents-skills.controller.js.map +1 -0
- package/dist/modules/agents/agents-tools.service.d.ts +1 -7
- package/dist/modules/agents/agents-tools.service.js +3 -80
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +7 -393
- package/dist/modules/agents/agents.controller.js +6 -990
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +2 -2
- package/dist/modules/agents/agents.module.js +12 -0
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +8 -166
- package/dist/modules/agents/agents.service.js +10 -1287
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +2 -2
- package/dist/modules/agents/builder/agents-builder-prompts.js +3 -5
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +11 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +60 -25
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +4 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +36 -12
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js +1 -3
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/index.d.ts +1 -1
- package/dist/modules/agents/builder/interactive/index.js +2 -1
- package/dist/modules/agents/builder/interactive/index.js.map +1 -1
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js +1 -1
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +3 -2
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +3 -5
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +4 -6
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +1 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.js +4 -4
- package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.js +8 -3
- package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -1
- package/dist/modules/agents/builder/skills/integrations.skill.js +8 -0
- package/dist/modules/agents/builder/skills/integrations.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/mcp.skill.js +16 -0
- package/dist/modules/agents/builder/skills/mcp.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/resource-locators.skill.js +18 -0
- package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/sub-agents.skill.js +34 -8
- package/dist/modules/agents/builder/skills/sub-agents.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +22 -3
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +12 -0
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
- package/dist/modules/agents/entities/agent-memory-entry.entity.d.ts +1 -1
- package/dist/modules/agents/entities/agent-memory-entry.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent.entity.d.ts +1 -2
- package/dist/modules/agents/entities/agent.entity.js +0 -4
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +7 -23
- package/dist/modules/agents/integrations/agent-chat-bridge.js +60 -646
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.d.ts +44 -0
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js +110 -0
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js.map +1 -0
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +38 -4
- package/dist/modules/agents/integrations/agent-chat-integration.js +10 -3
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-message-context.d.ts +22 -0
- package/dist/modules/agents/integrations/agent-chat-message-context.js +104 -0
- package/dist/modules/agents/integrations/agent-chat-message-context.js.map +1 -0
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +29 -0
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +205 -0
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -0
- package/dist/modules/agents/integrations/agent-chat-suspension-cards.d.ts +10 -0
- package/dist/modules/agents/integrations/agent-chat-suspension-cards.js +90 -0
- package/dist/modules/agents/integrations/agent-chat-suspension-cards.js.map +1 -0
- package/dist/modules/agents/integrations/chat-integration.service.js +6 -3
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-message-context.service.d.ts +1 -1
- package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-definitions.d.ts +6037 -0
- package/dist/modules/agents/integrations/integration-tool-definitions.js +231 -0
- package/dist/modules/agents/integrations/integration-tool-definitions.js.map +1 -0
- package/dist/modules/agents/integrations/integration-tool-descriptions.d.ts +3 -0
- package/dist/modules/agents/integrations/integration-tool-descriptions.js +100 -0
- package/dist/modules/agents/integrations/integration-tool-descriptions.js.map +1 -0
- package/dist/modules/agents/integrations/integration-tool-execution.d.ts +27 -0
- package/dist/modules/agents/integrations/integration-tool-execution.js +278 -0
- package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -0
- package/dist/modules/agents/integrations/integration-tool-factory.d.ts +121 -0
- package/dist/modules/agents/integrations/integration-tool-factory.js +133 -0
- package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -0
- package/dist/modules/agents/integrations/integration-tool-schema.d.ts +107 -0
- package/dist/modules/agents/integrations/integration-tool-schema.js +140 -0
- package/dist/modules/agents/integrations/integration-tool-schema.js.map +1 -0
- package/dist/modules/agents/integrations/integration-tool-types.d.ts +105 -0
- package/dist/modules/agents/integrations/integration-tool-types.js +3 -0
- package/dist/modules/agents/integrations/integration-tool-types.js.map +1 -0
- package/dist/modules/agents/integrations/integration-tools.d.ts +3 -213
- package/dist/modules/agents/integrations/integration-tools.js +16 -998
- package/dist/modules/agents/integrations/integration-tools.js.map +1 -1
- package/dist/modules/agents/integrations/integrations-sync.d.ts +1 -1
- package/dist/modules/agents/integrations/n8n-memory.d.ts +1 -1
- package/dist/modules/agents/integrations/n8n-memory.js +2 -2
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +3 -3
- package/dist/modules/agents/integrations/platforms/linear-integration.js +14 -19
- package/dist/modules/agents/integrations/platforms/linear-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/linear-tool-definitions.d.ts +473 -0
- package/dist/modules/agents/integrations/platforms/linear-tool-definitions.js +270 -0
- package/dist/modules/agents/integrations/platforms/linear-tool-definitions.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/n8n-chat-integration.d.ts +4 -3
- package/dist/modules/agents/integrations/platforms/n8n-chat-integration.js +6 -2
- package/dist/modules/agents/integrations/platforms/n8n-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.d.ts +12 -0
- package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js +198 -0
- package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +14 -4
- package/dist/modules/agents/integrations/platforms/slack-integration.js +20 -7
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-operations.js +1 -1
- package/dist/modules/agents/integrations/platforms/slack-operations.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-tool-definitions.d.ts +35 -0
- package/dist/modules/agents/integrations/platforms/slack-tool-definitions.js +33 -0
- package/dist/modules/agents/integrations/platforms/slack-tool-definitions.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +1 -2
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +2 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.d.ts +5 -3
- package/dist/modules/agents/integrations/slack-app-setup.service.js +11 -6
- package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.d.ts +7 -0
- package/dist/modules/agents/json-config/from-json-config.js +60 -15
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +17 -6
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +2 -5
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.d.ts +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.d.ts +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -1
- package/dist/modules/agents/tools/agent-data-utils.d.ts +22 -0
- package/dist/modules/agents/tools/agent-data-utils.js +64 -0
- package/dist/modules/agents/tools/agent-data-utils.js.map +1 -0
- package/dist/modules/agents/tools/input-data-tool.d.ts +3 -0
- package/dist/modules/agents/tools/input-data-tool.js +40 -0
- package/dist/modules/agents/tools/input-data-tool.js.map +1 -0
- package/dist/modules/agents/tools/node-tool-factory.d.ts +1 -1
- package/dist/modules/agents/tools/node-tool-factory.js +1 -1
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-context-tool.d.ts +3 -0
- package/dist/modules/agents/tools/workflow-context-tool.js +84 -0
- package/dist/modules/agents/tools/workflow-context-tool.js.map +1 -0
- package/dist/modules/agents/utils/agent-credential-provider.d.ts +4 -0
- package/dist/modules/agents/utils/agent-credential-provider.js +8 -0
- package/dist/modules/agents/utils/agent-credential-provider.js.map +1 -0
- package/dist/modules/agents/utils/agent-missing-skill-ids.d.ts +2 -0
- package/dist/modules/agents/utils/agent-missing-skill-ids.js +17 -0
- package/dist/modules/agents/utils/agent-missing-skill-ids.js.map +1 -0
- package/dist/modules/agents/utils/agent-published-snapshot.d.ts +2 -0
- package/dist/modules/agents/utils/agent-published-snapshot.js +17 -0
- package/dist/modules/agents/utils/agent-published-snapshot.js.map +1 -0
- package/dist/modules/agents/utils/agent-resource-id.d.ts +1 -1
- package/dist/modules/agents/utils/sub-agent-resolver.d.ts +14 -0
- package/dist/modules/agents/utils/sub-agent-resolver.js +23 -0
- package/dist/modules/agents/utils/sub-agent-resolver.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v2/file-access.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/oauth-callback-auth.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/process-env-access.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/pyodide-removed.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/queue-worker-max-stalled-count.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/removed-nodes.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/settings-file-permissions.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/start-node-removed.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/task-runner-docker-image.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/tunnel-option.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/wait-node-subworkflow.rule.js +1 -1
- package/dist/modules/breaking-changes/rules/v2/wait-node-subworkflow.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v2/workflow-hooks-deprecated.rule.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-agent.service.d.ts +5 -5
- package/dist/modules/chat-hub/chat-hub-agent.service.js +9 -9
- package/dist/modules/chat-hub/chat-hub-agent.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-message.entity.d.ts +2 -2
- package/dist/modules/chat-hub/chat-hub-message.entity.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-session.entity.d.ts +1 -1
- package/dist/modules/chat-hub/chat-hub.controller.d.ts +5 -2
- package/dist/modules/chat-hub/chat-hub.controller.js +23 -5
- package/dist/modules/chat-hub/chat-hub.controller.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.module.d.ts +1 -1
- package/dist/modules/chat-hub/chat-hub.service.js +1 -1
- package/dist/modules/chat-hub/chat-hub.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +8 -4
- package/dist/modules/chat-hub/chat-hub.settings.controller.js +28 -18
- package/dist/modules/chat-hub/chat-hub.settings.controller.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.settings.service.js +3 -3
- package/dist/modules/chat-hub/chat-hub.settings.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.types.d.ts +1 -1
- package/dist/modules/chat-hub/chat-session.repository.js +1 -1
- package/dist/modules/chat-hub/chat-session.repository.js.map +1 -1
- package/dist/modules/community-packages/community-node-types.service.js +2 -2
- package/dist/modules/community-packages/community-node-types.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.config.d.ts +2 -0
- package/dist/modules/community-packages/community-packages.config.js +10 -0
- package/dist/modules/community-packages/community-packages.config.js.map +1 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.d.ts +3 -3
- package/dist/modules/community-packages/community-packages.lifecycle.service.js +3 -3
- package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.service.js +3 -3
- package/dist/modules/community-packages/community-packages.service.js.map +1 -1
- package/dist/modules/community-packages/npm-utils.js +1 -1
- package/dist/modules/community-packages/npm-utils.js.map +1 -1
- package/dist/modules/data-table/data-table-aggregate.service.js +1 -1
- package/dist/modules/data-table/data-table-aggregate.service.js.map +1 -1
- package/dist/modules/data-table/data-table-file-cleanup.service.js +1 -1
- package/dist/modules/data-table/data-table-file-cleanup.service.js.map +1 -1
- package/dist/modules/data-table/data-table-proxy.service.d.ts +2 -2
- package/dist/modules/data-table/data-table-proxy.service.js +3 -3
- package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
- package/dist/modules/data-table/data-table.controller.d.ts +2 -2
- package/dist/modules/data-table/data-table.controller.js +3 -3
- package/dist/modules/data-table/data-table.controller.js.map +1 -1
- package/dist/modules/data-table/utils/sql-utils.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/slack-signature-extractor.js +1 -1
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/slack-signature-extractor.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.js +0 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.d.ts +0 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.js +3 -3
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.js +0 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/slack-signature-identifier.js +2 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/slack-signature-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/slack-credential-resolver.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/storage/dynamic-credential-entry-storage.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/storage/dynamic-credential-entry-storage.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.js +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.d.ts +2 -2
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js +2 -2
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-web.service.d.ts +2 -2
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-web.service.js +2 -2
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-web.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js +1 -1
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/utils.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.d.ts +3 -1
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js +14 -2
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.d.ts +3 -4
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js +20 -46
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.d.ts +21 -0
- package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.js +142 -0
- package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.js.map +1 -0
- package/dist/modules/external-secrets.ee/external-secrets-settings.controller.ee.d.ts +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-settings.controller.ee.js +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-settings.controller.ee.js.map +1 -1
- package/dist/modules/external-secrets.ee/provider-registry.service.d.ts +1 -1
- package/dist/modules/external-secrets.ee/provider-registry.service.js +1 -1
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js +5 -1
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/infisical.js +4 -4
- package/dist/modules/external-secrets.ee/providers/infisical.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/vault.js +10 -10
- package/dist/modules/external-secrets.ee/providers/vault.js.map +1 -1
- package/dist/modules/external-secrets.ee/redaction.service.ee.js.map +1 -1
- package/dist/modules/external-secrets.ee/secrets-providers-connections.service.ee.d.ts +1 -1
- package/dist/modules/external-secrets.ee/secrets-providers-connections.service.ee.js +1 -1
- package/dist/modules/external-secrets.ee/secrets-providers-connections.service.ee.js.map +1 -1
- package/dist/modules/external-secrets.ee/secrets-providers-types.controller.ee.d.ts +1 -1
- package/dist/modules/external-secrets.ee/secrets-providers-types.controller.ee.js +2 -2
- package/dist/modules/external-secrets.ee/secrets-providers-types.controller.ee.js.map +1 -1
- package/dist/modules/favorites/favorites.controller.d.ts +1 -1
- package/dist/modules/favorites/favorites.controller.js +2 -2
- package/dist/modules/favorites/favorites.controller.js.map +1 -1
- package/dist/modules/favorites/favorites.event-relay.d.ts +1 -1
- package/dist/modules/favorites/favorites.event-relay.js +1 -1
- package/dist/modules/favorites/favorites.event-relay.js.map +1 -1
- package/dist/modules/favorites/favorites.service.d.ts +2 -2
- package/dist/modules/favorites/favorites.service.js +2 -2
- package/dist/modules/favorites/favorites.service.js.map +1 -1
- package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +1 -0
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js +6 -0
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js.map +1 -1
- package/dist/modules/insights/insights.module.d.ts +1 -0
- package/dist/modules/insights/insights.module.js +1 -1
- package/dist/modules/insights/insights.module.js.map +1 -1
- package/dist/modules/insights/insights.settings.d.ts +6 -3
- package/dist/modules/insights/insights.settings.js +8 -3
- package/dist/modules/insights/insights.settings.js.map +1 -1
- package/dist/modules/instance-ai/browser/browser-local-mcp-server.d.ts +23 -0
- package/dist/modules/instance-ai/browser/browser-local-mcp-server.js +123 -0
- package/dist/modules/instance-ai/browser/browser-local-mcp-server.js.map +1 -0
- package/dist/modules/instance-ai/browser/browser-use-server.d.ts +11 -0
- package/dist/modules/instance-ai/browser/browser-use-server.js +68 -0
- package/dist/modules/instance-ai/browser/browser-use-server.js.map +1 -0
- package/dist/modules/instance-ai/browser/browser-use-ws.constants.d.ts +7 -0
- package/dist/modules/instance-ai/browser/browser-use-ws.constants.js +6 -0
- package/dist/modules/instance-ai/browser/browser-use-ws.constants.js.map +1 -0
- package/dist/modules/instance-ai/browser/composite-local-mcp-server.d.ts +14 -0
- package/dist/modules/instance-ai/browser/composite-local-mcp-server.js +57 -0
- package/dist/modules/instance-ai/browser/composite-local-mcp-server.js.map +1 -0
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.d.ts +40 -0
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.js +297 -0
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.js.map +1 -0
- package/dist/modules/instance-ai/eval/execution.service.js +2 -2
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +5 -1
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.js +1 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.d.ts +14 -0
- package/dist/modules/instance-ai/eval/thread-restore.service.js +149 -0
- package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.js +1 -1
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js.map +1 -1
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.js.map +1 -1
- package/dist/modules/instance-ai/filesystem/local-gateway.d.ts +3 -0
- package/dist/modules/instance-ai/filesystem/local-gateway.js +20 -3
- package/dist/modules/instance-ai/filesystem/local-gateway.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-event-relay.service.d.ts +12 -0
- package/dist/modules/instance-ai/instance-ai-event-relay.service.js +56 -0
- package/dist/modules/instance-ai/instance-ai-event-relay.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-gateway.service.d.ts +5 -1
- package/dist/modules/instance-ai/instance-ai-gateway.service.js +10 -3
- package/dist/modules/instance-ai/instance-ai-gateway.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +5 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.js +38 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-run-pin-data.d.ts +29 -0
- package/dist/modules/instance-ai/instance-ai-run-pin-data.js +222 -0
- package/dist/modules/instance-ai/instance-ai-run-pin-data.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +1 -0
- package/dist/modules/instance-ai/instance-ai-settings.service.js +9 -0
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.d.ts +72 -0
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js +352 -0
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-test.controller.d.ts +2 -2
- package/dist/modules/instance-ai/instance-ai-test.controller.js +2 -2
- package/dist/modules/instance-ai/instance-ai-test.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +78 -193
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +19 -2
- package/dist/modules/instance-ai/instance-ai.controller.js +96 -6
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -0
- package/dist/modules/instance-ai/instance-ai.module.js +4 -0
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +10 -33
- package/dist/modules/instance-ai/instance-ai.service.js +293 -767
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/internal-messages.d.ts +2 -0
- package/dist/modules/instance-ai/internal-messages.js +4 -2
- package/dist/modules/instance-ai/internal-messages.js.map +1 -1
- package/dist/modules/instance-ai/liveness/index.d.ts +1 -1
- package/dist/modules/instance-ai/liveness/index.js.map +1 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +4 -7
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +2 -2
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js.map +1 -1
- package/dist/modules/instance-ai/message-parser.js +4 -3
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/node-definition-resolver.js +2 -1
- package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -1
- package/dist/modules/instance-ai/planned-task-action-runner.d.ts +1 -1
- package/dist/modules/instance-ai/planned-task-action-runner.js +3 -3
- package/dist/modules/instance-ai/planned-task-action-runner.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +1 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +29 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
- package/dist/modules/instance-ai/suspended-run-restorer.service.d.ts +4 -8
- package/dist/modules/instance-ai/suspended-run-restorer.service.js +2 -2
- package/dist/modules/instance-ai/suspended-run-restorer.service.js.map +1 -1
- package/dist/modules/instance-ai/suspended-thread-persistence.service.d.ts +0 -14
- package/dist/modules/instance-ai/suspended-thread-persistence.service.js +0 -26
- package/dist/modules/instance-ai/suspended-thread-persistence.service.js.map +1 -1
- package/dist/modules/instance-ai/tracing/index.d.ts +1 -0
- package/dist/modules/instance-ai/tracing/index.js +6 -0
- package/dist/modules/instance-ai/tracing/index.js.map +1 -0
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.d.ts +81 -0
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js +341 -0
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js.map +1 -0
- package/dist/modules/instance-ai/workflow-verification-task-projector.js +1 -2
- package/dist/modules/instance-ai/workflow-verification-task-projector.js.map +1 -1
- package/dist/modules/instance-registry/instance-registry.controller.js +1 -0
- package/dist/modules/instance-registry/instance-registry.controller.js.map +1 -1
- package/dist/modules/instance-registry/instance-registry.service.js +1 -1
- package/dist/modules/instance-registry/instance-registry.service.js.map +1 -1
- package/dist/modules/instance-version-history/instance-version-history.service.d.ts +1 -1
- package/dist/modules/instance-version-history/instance-version-history.service.js +1 -1
- package/dist/modules/instance-version-history/instance-version-history.service.js.map +1 -1
- package/dist/modules/ldap.ee/ldap.service.ee.d.ts +1 -1
- package/dist/modules/ldap.ee/ldap.service.ee.js +1 -1
- package/dist/modules/ldap.ee/ldap.service.ee.js.map +1 -1
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-sentry.ee.js.map +1 -1
- package/dist/modules/mcp/dto/update-allowed-redirect-uris.dto.js +1 -1
- package/dist/modules/mcp/dto/update-allowed-redirect-uris.dto.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +5 -1
- package/dist/modules/mcp/mcp.service.js +18 -3
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/tools/data-table/add-data-table-column.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/add-data-table-column.tool.js.map +1 -1
- package/dist/modules/mcp/tools/data-table/add-data-table-rows.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/add-data-table-rows.tool.js.map +1 -1
- package/dist/modules/mcp/tools/data-table/create-data-table.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/create-data-table.tool.js.map +1 -1
- package/dist/modules/mcp/tools/data-table/delete-data-table-column.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/delete-data-table-column.tool.js.map +1 -1
- package/dist/modules/mcp/tools/data-table/rename-data-table-column.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/rename-data-table-column.tool.js.map +1 -1
- package/dist/modules/mcp/tools/data-table/rename-data-table.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/rename-data-table.tool.js.map +1 -1
- package/dist/modules/mcp/tools/data-table/search-data-tables.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/search-data-tables.tool.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/execution-utils.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +3 -3
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-history.tool.d.ts +49 -0
- package/dist/modules/mcp/tools/get-workflow-history.tool.js +115 -0
- package/dist/modules/mcp/tools/get-workflow-history.tool.js.map +1 -0
- package/dist/modules/mcp/tools/get-workflow-version.tool.d.ts +30 -0
- package/dist/modules/mcp/tools/get-workflow-version.tool.js +118 -0
- package/dist/modules/mcp/tools/get-workflow-version.tool.js.map +1 -0
- package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.js.map +1 -1
- package/dist/modules/mcp/tools/publish-workflow.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/publish-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/schemas.d.ts +25 -11
- package/dist/modules/mcp/tools/schemas.js +7 -4
- package/dist/modules/mcp/tools/schemas.js.map +1 -1
- package/dist/modules/mcp/tools/search-folders.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/search-folders.tool.js.map +1 -1
- package/dist/modules/mcp/tools/search-projects.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/search-projects.tool.js.map +1 -1
- package/dist/modules/mcp/tools/test-workflow.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/unpublish-workflow.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/unpublish-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +18 -2
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/delete-workflow.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/delete-workflow.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/delete-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js +1 -1
- 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.js +4 -2
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.d.ts +20 -0
- package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.js +108 -0
- package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +3 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +117 -4
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +4 -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 +195 -3
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +69 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-history.utils.d.ts +3 -0
- package/dist/modules/mcp/tools/workflow-history.utils.js +18 -0
- package/dist/modules/mcp/tools/workflow-history.utils.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js +4 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
- package/dist/modules/mcp-registry/synthesize-type-def.d.ts +1 -1
- package/dist/modules/mcp-registry/synthesize-type-def.js +3 -3
- package/dist/modules/mcp-registry/synthesize-type-def.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/utils/import-package-upload.js +1 -1
- package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -1
- package/dist/modules/oauth-server/oauth-consent.service.d.ts +3 -1
- package/dist/modules/oauth-server/oauth-consent.service.js +8 -4
- package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth.controller.js +1 -0
- package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
- package/dist/modules/oauth-server/oauth.helpers.d.ts +2 -2
- package/dist/modules/oauth-server/oauth.helpers.js +4 -2
- package/dist/modules/oauth-server/oauth.helpers.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.module.js +4 -0
- package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
- package/dist/modules/provisioning.ee/role-deletion-checker.ee.d.ts +7 -0
- package/dist/modules/provisioning.ee/role-deletion-checker.ee.js +33 -0
- package/dist/modules/provisioning.ee/role-deletion-checker.ee.js.map +1 -0
- package/dist/modules/quick-connect/handlers/firecrawl.handler.js +3 -3
- package/dist/modules/quick-connect/handlers/firecrawl.handler.js.map +1 -1
- package/dist/modules/quick-connect/quick-connect.config.d.ts +10 -10
- package/dist/modules/quick-connect/quick-connect.module.d.ts +2 -2
- package/dist/modules/quick-connect/quick-connect.service.js +1 -1
- package/dist/modules/quick-connect/quick-connect.service.js.map +1 -1
- package/dist/modules/redaction/executions/execution-redaction.service.d.ts +1 -1
- package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
- package/dist/modules/runtime-credentials/runtime-credentials.service.js +1 -1
- package/dist/modules/runtime-credentials/runtime-credentials.service.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-context.factory.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.d.ts +1 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.js +2 -2
- package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-scoped.service.d.ts +3 -2
- package/dist/modules/source-control.ee/source-control-scoped.service.js +10 -1
- package/dist/modules/source-control.ee/source-control-scoped.service.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.d.ts +2 -2
- package/dist/modules/source-control.ee/source-control-status.service.ee.js +3 -3
- package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -4
- package/dist/modules/source-control.ee/source-control.controller.ee.js +5 -4
- package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +8 -5
- package/dist/modules/source-control.ee/source-control.service.ee.js +25 -10
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/sso-saml/saml-helpers.js.map +1 -1
- package/dist/modules/sso-saml/saml.controller.ee.d.ts +1 -1
- package/dist/modules/sso-saml/saml.controller.ee.js +4 -3
- package/dist/modules/sso-saml/saml.controller.ee.js.map +1 -1
- package/dist/modules/token-exchange/controllers/embed-auth.controller.js +1 -1
- package/dist/modules/token-exchange/controllers/embed-auth.controller.js.map +1 -1
- package/dist/modules/token-exchange/services/jwks-resolver.js +1 -1
- package/dist/modules/token-exchange/services/jwks-resolver.js.map +1 -1
- package/dist/modules/token-exchange/services/trusted-key.service.js +1 -1
- package/dist/modules/token-exchange/services/trusted-key.service.js.map +1 -1
- package/dist/modules/token-exchange/token-exchange.schemas.d.ts +2 -2
- package/dist/modules/workflow-builder/workflow-builder-session.entity.js +1 -1
- package/dist/modules/workflow-builder/workflow-builder-session.entity.js.map +1 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js +1 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +1 -1
- package/dist/node-catalog/node-catalog.service.d.ts +3 -2
- package/dist/node-catalog/node-catalog.service.js +50 -18
- package/dist/node-catalog/node-catalog.service.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +1 -1
- package/dist/oauth/oauth.service.js +7 -6
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/permissions.ee/check-access.js +1 -1
- package/dist/permissions.ee/check-access.js.map +1 -1
- package/dist/public-api/index.js +24 -3
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/v1/handlers/discover/discover.service.js +38 -2
- package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/scaling/job-processor.js +1 -0
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/leader-election-client.d.ts +1 -1
- package/dist/scaling/leader-election-client.js +1 -1
- package/dist/scaling/leader-election-client.js.map +1 -1
- package/dist/scaling/pubsub/subscriber.service.js +1 -1
- package/dist/scaling/pubsub/subscriber.service.js.map +1 -1
- package/dist/scaling/redis/redis.types.d.ts +1 -1
- package/dist/scaling/redis-lock.service.d.ts +15 -0
- package/dist/scaling/redis-lock.service.js +154 -0
- package/dist/scaling/redis-lock.service.js.map +1 -0
- package/dist/security-audit/risk-reporters/instance-risk-reporter.js +3 -3
- package/dist/security-audit/risk-reporters/instance-risk-reporter.js.map +1 -1
- package/dist/server.js +4 -0
- package/dist/server.js.map +1 -1
- package/dist/services/ai-gateway.service.d.ts +1 -1
- package/dist/services/ai-gateway.service.js +1 -1
- package/dist/services/ai-gateway.service.js.map +1 -1
- package/dist/services/ai-workflow-builder.service.js +5 -4
- package/dist/services/ai-workflow-builder.service.js.map +1 -1
- package/dist/services/credentials-tester.service.d.ts +1 -1
- package/dist/services/credentials-tester.service.js +3 -3
- package/dist/services/credentials-tester.service.js.map +1 -1
- package/dist/services/dynamic-node-parameters.service.d.ts +3 -3
- package/dist/services/dynamic-node-parameters.service.js +4 -4
- package/dist/services/dynamic-node-parameters.service.js.map +1 -1
- package/dist/services/dynamic-templates.service.js +3 -3
- package/dist/services/dynamic-templates.service.js.map +1 -1
- package/dist/services/export.service.js +3 -3
- package/dist/services/export.service.js.map +1 -1
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/ownership.service.d.ts +3 -3
- package/dist/services/ownership.service.js +5 -5
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/project.service.ee.js +2 -2
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction.service.d.ts +1 -1
- package/dist/services/pruning/workflow-history-compaction.service.js +1 -1
- package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
- package/dist/services/rate-limit.service.d.ts +1 -1
- package/dist/services/rate-limit.service.js.map +1 -1
- package/dist/services/role-deletion-check-proxy.service.d.ts +8 -0
- package/dist/services/role-deletion-check-proxy.service.js +28 -0
- package/dist/services/role-deletion-check-proxy.service.js.map +1 -0
- package/dist/services/role.service.d.ts +5 -2
- package/dist/services/role.service.js +18 -2
- package/dist/services/role.service.js.map +1 -1
- package/dist/services/user.service.js +5 -0
- package/dist/services/user.service.js.map +1 -1
- package/dist/task-runners/task-managers/data-request-response-builder.js +1 -0
- package/dist/task-runners/task-managers/data-request-response-builder.js.map +1 -1
- package/dist/task-runners/task-runner-process-js.js +2 -0
- package/dist/task-runners/task-runner-process-js.js.map +1 -1
- package/dist/tool-generation/hitl-tools.js.map +1 -1
- package/dist/utils/compression.util.js +2 -2
- package/dist/utils/compression.util.js.map +1 -1
- package/dist/utils/health-endpoint.util.js.map +1 -1
- package/dist/utils/strapi-utils.js +2 -3
- package/dist/utils/strapi-utils.js.map +1 -1
- package/dist/webhooks/test-webhook-registrations.service.js +1 -1
- package/dist/webhooks/test-webhook-registrations.service.js.map +1 -1
- package/dist/webhooks/test-webhooks.d.ts +1 -1
- package/dist/webhooks/test-webhooks.js.map +1 -1
- package/dist/webhooks/waiting-forms.js +2 -2
- package/dist/webhooks/waiting-forms.js.map +1 -1
- package/dist/webhooks/webhook.service.d.ts +1 -0
- package/dist/webhooks/webhook.service.js +4 -1
- package/dist/webhooks/webhook.service.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +2 -2
- package/dist/workflow-execute-additional-data.js +5 -4
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.js +1 -9
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.js +1 -0
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-applier.d.ts +3 -1
- package/dist/workflows/publication/workflow-publication-applier.js +10 -2
- package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
- package/dist/workflows/triggers/non-webhook-trigger-registrar.d.ts +1 -1
- package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +1 -1
- package/dist/workflows/triggers/trigger-execution-context.factory.js +4 -5
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
- package/dist/workflows/triggers/webhook-trigger-registrar.d.ts +4 -1
- package/dist/workflows/triggers/webhook-trigger-registrar.js +36 -9
- package/dist/workflows/triggers/webhook-trigger-registrar.js.map +1 -1
- package/dist/workflows/triggers/workflow-trigger-activator.d.ts +3 -0
- package/dist/workflows/triggers/workflow-trigger-activator.js +66 -32
- package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
- package/dist/workflows/workflow-creation.service.js +1 -1
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.d.ts +4 -3
- package/dist/workflows/workflow-history/workflow-history.service.js +4 -3
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/dist/workflows/workflow-published-data.service.d.ts +16 -6
- package/dist/workflows/workflow-published-data.service.js +42 -2
- package/dist/workflows/workflow-published-data.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.js +4 -22
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +2 -2
- package/dist/workflows/workflow.service.ee.d.ts +1 -1
- package/dist/workflows/workflow.service.ee.js +1 -1
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +7 -7
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +6 -6
- package/dist/workflows/workflows.controller.js +3 -3
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +68 -56
- package/dist/modules/instance-ai/eval/proxy-loopback.d.ts +0 -1
- package/dist/modules/instance-ai/eval/proxy-loopback.js +0 -44
- package/dist/modules/instance-ai/eval/proxy-loopback.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-tool-execution.js","sourceRoot":"","sources":["../../../../src/modules/agents/integrations/integration-tool-execution.ts"],"names":[],"mappings":";;AAkBA,kEAmFC;AAED,wDAoCC;AAED,gEAuFC;AAnOD,sCAAsC;AAGtC,iFAA8F;AAC9F,uEAAoE;AAa7D,KAAK,UAAU,2BAA2B,CAAC,MAMjD;IACA,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,mBAAmB,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAE1F,IAAI,qBAAqB,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5C,IAAI,CAAC,WAAW,EAAE,CAAC;YAClB,OAAO;gBACN,EAAE,EAAE,KAAK;gBACT,KAAK,EAAE;oBACN,IAAI,EAAE,iDAAuB,CAAC,iBAAiB;oBAC/C,OA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AAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Tool } from '@n8n/agents';
|
|
2
|
+
import type { AgentIntegrationConfig } from '@n8n/api-types';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import type { IntegrationAction, IntegrationActionDefinition, IntegrationActionExecutor, IntegrationContextQuery, IntegrationContextQueryDefinition, IntegrationContextQueryExecutor, IntegrationMessageContextStore, IntegrationToolConnectionDescriptor, IntegrationToolConnectionSource } from './integration-tool-types';
|
|
5
|
+
export interface IntegrationToolCapabilities {
|
|
6
|
+
contextQueries?: IntegrationContextQuery[];
|
|
7
|
+
actions?: IntegrationAction[];
|
|
8
|
+
contextToolDefinitions?: IntegrationContextQueryDefinition[];
|
|
9
|
+
actionToolDefinitions?: IntegrationActionDefinition[];
|
|
10
|
+
contextToolGuidance?: string[];
|
|
11
|
+
actionToolGuidance?: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare function getIntegrationToolConnectionDescriptors(integrations: AgentIntegrationConfig[], agentId?: string, capabilitiesFor?: (integration: AgentIntegrationConfig) => IntegrationToolCapabilities | undefined): IntegrationToolConnectionDescriptor[];
|
|
14
|
+
export declare function buildIntegrationConnectionId(integration: IntegrationToolConnectionSource): string;
|
|
15
|
+
export declare function createIntegrationContextTool(params: {
|
|
16
|
+
descriptor: IntegrationToolConnectionDescriptor;
|
|
17
|
+
messageContextStore: IntegrationMessageContextStore;
|
|
18
|
+
queryExecutor: IntegrationContextQueryExecutor;
|
|
19
|
+
}): Tool<z.ZodEffects<z.ZodObject<{
|
|
20
|
+
query: z.ZodOptional<z.ZodEnum<[IntegrationContextQuery, ...IntegrationContextQuery[]]>>;
|
|
21
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
|
+
queries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
+
query: z.ZodEnum<[IntegrationContextQuery, ...IntegrationContextQuery[]]>;
|
|
24
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
query: IntegrationContextQuery;
|
|
27
|
+
input: Record<string, unknown>;
|
|
28
|
+
}, {
|
|
29
|
+
query: IntegrationContextQuery;
|
|
30
|
+
input: Record<string, unknown>;
|
|
31
|
+
}>, "many">>;
|
|
32
|
+
}, "strict", z.ZodTypeAny, {
|
|
33
|
+
query?: IntegrationContextQuery | undefined;
|
|
34
|
+
input?: Record<string, unknown> | undefined;
|
|
35
|
+
queries?: {
|
|
36
|
+
query: IntegrationContextQuery;
|
|
37
|
+
input: Record<string, unknown>;
|
|
38
|
+
}[] | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
query?: IntegrationContextQuery | undefined;
|
|
41
|
+
input?: Record<string, unknown> | undefined;
|
|
42
|
+
queries?: {
|
|
43
|
+
query: IntegrationContextQuery;
|
|
44
|
+
input: Record<string, unknown>;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
query?: IntegrationContextQuery | undefined;
|
|
48
|
+
input?: Record<string, unknown> | undefined;
|
|
49
|
+
queries?: {
|
|
50
|
+
query: IntegrationContextQuery;
|
|
51
|
+
input: Record<string, unknown>;
|
|
52
|
+
}[] | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
query?: IntegrationContextQuery | undefined;
|
|
55
|
+
input?: Record<string, unknown> | undefined;
|
|
56
|
+
queries?: {
|
|
57
|
+
query: IntegrationContextQuery;
|
|
58
|
+
input: Record<string, unknown>;
|
|
59
|
+
}[] | undefined;
|
|
60
|
+
}>, z.ZodTypeAny, undefined, undefined>;
|
|
61
|
+
export declare function createIntegrationActionTool(params: {
|
|
62
|
+
descriptor: IntegrationToolConnectionDescriptor;
|
|
63
|
+
messageContextStore: IntegrationMessageContextStore;
|
|
64
|
+
actionExecutor: IntegrationActionExecutor;
|
|
65
|
+
}): Tool<z.ZodEffects<z.ZodObject<{
|
|
66
|
+
action: z.ZodOptional<z.ZodEnum<[IntegrationAction, ...IntegrationAction[]]>>;
|
|
67
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
68
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
+
action: z.ZodEnum<[IntegrationAction, ...IntegrationAction[]]>;
|
|
70
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
71
|
+
}, "strict", z.ZodTypeAny, {
|
|
72
|
+
input: Record<string, unknown>;
|
|
73
|
+
action: IntegrationAction;
|
|
74
|
+
}, {
|
|
75
|
+
input: Record<string, unknown>;
|
|
76
|
+
action: IntegrationAction;
|
|
77
|
+
}>, "many">>;
|
|
78
|
+
}, "strict", z.ZodTypeAny, {
|
|
79
|
+
input?: Record<string, unknown> | undefined;
|
|
80
|
+
action?: IntegrationAction | undefined;
|
|
81
|
+
actions?: {
|
|
82
|
+
input: Record<string, unknown>;
|
|
83
|
+
action: IntegrationAction;
|
|
84
|
+
}[] | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
input?: Record<string, unknown> | undefined;
|
|
87
|
+
action?: IntegrationAction | undefined;
|
|
88
|
+
actions?: {
|
|
89
|
+
input: Record<string, unknown>;
|
|
90
|
+
action: IntegrationAction;
|
|
91
|
+
}[] | undefined;
|
|
92
|
+
}>, {
|
|
93
|
+
input?: Record<string, unknown> | undefined;
|
|
94
|
+
action?: IntegrationAction | undefined;
|
|
95
|
+
actions?: {
|
|
96
|
+
input: Record<string, unknown>;
|
|
97
|
+
action: IntegrationAction;
|
|
98
|
+
}[] | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
input?: Record<string, unknown> | undefined;
|
|
101
|
+
action?: IntegrationAction | undefined;
|
|
102
|
+
actions?: {
|
|
103
|
+
input: Record<string, unknown>;
|
|
104
|
+
action: IntegrationAction;
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
}>, z.ZodTypeAny, z.ZodObject<{
|
|
107
|
+
type: z.ZodLiteral<"integration_action">;
|
|
108
|
+
action: z.ZodString;
|
|
109
|
+
integrationConnectionId: z.ZodString;
|
|
110
|
+
messageContext: z.ZodUnknown;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
type: "integration_action";
|
|
113
|
+
action: string;
|
|
114
|
+
integrationConnectionId: string;
|
|
115
|
+
messageContext?: unknown;
|
|
116
|
+
}, {
|
|
117
|
+
type: "integration_action";
|
|
118
|
+
action: string;
|
|
119
|
+
integrationConnectionId: string;
|
|
120
|
+
messageContext?: unknown;
|
|
121
|
+
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getIntegrationToolConnectionDescriptors = getIntegrationToolConnectionDescriptors;
|
|
4
|
+
exports.buildIntegrationConnectionId = buildIntegrationConnectionId;
|
|
5
|
+
exports.createIntegrationContextTool = createIntegrationContextTool;
|
|
6
|
+
exports.createIntegrationActionTool = createIntegrationActionTool;
|
|
7
|
+
const agents_1 = require("@n8n/agents");
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
const integration_tool_definitions_1 = require("./integration-tool-definitions");
|
|
10
|
+
const integration_tool_descriptions_1 = require("./integration-tool-descriptions");
|
|
11
|
+
const integration_tool_execution_1 = require("./integration-tool-execution");
|
|
12
|
+
const integration_tool_schema_1 = require("./integration-tool-schema");
|
|
13
|
+
const actionSuspendSchema = zod_1.z.object({
|
|
14
|
+
type: zod_1.z.literal('integration_action'),
|
|
15
|
+
action: zod_1.z.string(),
|
|
16
|
+
integrationConnectionId: zod_1.z.string(),
|
|
17
|
+
messageContext: zod_1.z.unknown(),
|
|
18
|
+
});
|
|
19
|
+
const actionResumeSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
|
|
20
|
+
function getIntegrationToolConnectionDescriptors(integrations, agentId, capabilitiesFor) {
|
|
21
|
+
const sorted = [...integrations].sort((a, b) => {
|
|
22
|
+
const byType = a.type.localeCompare(b.type);
|
|
23
|
+
if (byType !== 0)
|
|
24
|
+
return byType;
|
|
25
|
+
return a.credentialId.localeCompare(b.credentialId);
|
|
26
|
+
});
|
|
27
|
+
const seenByType = new Map();
|
|
28
|
+
return sorted.map((integration) => {
|
|
29
|
+
const seenCount = seenByType.get(integration.type) ?? 0;
|
|
30
|
+
const nextCount = seenCount + 1;
|
|
31
|
+
seenByType.set(integration.type, nextCount);
|
|
32
|
+
const suffix = nextCount === 1 ? '' : `_${nextCount}`;
|
|
33
|
+
const baseName = `${integration.type}${suffix}`;
|
|
34
|
+
const capabilities = capabilitiesFor?.(integration);
|
|
35
|
+
const contextToolDefinitions = getContextToolDefinitions(capabilities);
|
|
36
|
+
const actionToolDefinitions = getActionToolDefinitions(capabilities);
|
|
37
|
+
return {
|
|
38
|
+
agentId,
|
|
39
|
+
integration,
|
|
40
|
+
integrationConnectionId: buildIntegrationConnectionId(integration),
|
|
41
|
+
contextToolName: `${baseName}_context`,
|
|
42
|
+
actionToolName: `${baseName}_action`,
|
|
43
|
+
contextQueries: contextToolDefinitions.map((definition) => definition.name),
|
|
44
|
+
actions: actionToolDefinitions.map((definition) => definition.name),
|
|
45
|
+
contextToolDefinitions,
|
|
46
|
+
actionToolDefinitions,
|
|
47
|
+
contextToolGuidance: capabilities?.contextToolGuidance,
|
|
48
|
+
actionToolGuidance: capabilities?.actionToolGuidance,
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function buildIntegrationConnectionId(integration) {
|
|
53
|
+
return integration.credentialId === undefined
|
|
54
|
+
? integration.type
|
|
55
|
+
: `${integration.type}:${integration.credentialId}`;
|
|
56
|
+
}
|
|
57
|
+
function createIntegrationContextTool(params) {
|
|
58
|
+
const { descriptor, messageContextStore, queryExecutor } = params;
|
|
59
|
+
return new agents_1.Tool(descriptor.contextToolName)
|
|
60
|
+
.description((0, integration_tool_descriptions_1.buildContextToolDescription)(descriptor))
|
|
61
|
+
.input((0, integration_tool_schema_1.buildContextInputSchema)(descriptor.contextToolDefinitions))
|
|
62
|
+
.handler(async (input, ctx) => {
|
|
63
|
+
const toolInput = input;
|
|
64
|
+
if (toolInput.queries !== undefined) {
|
|
65
|
+
const results = await Promise.all(toolInput.queries.map(async (operation) => ({
|
|
66
|
+
query: operation.query,
|
|
67
|
+
result: await (0, integration_tool_execution_1.executeContextToolOperation)({
|
|
68
|
+
operation,
|
|
69
|
+
descriptor,
|
|
70
|
+
messageContextStore,
|
|
71
|
+
queryExecutor,
|
|
72
|
+
persistence: ctx.persistence,
|
|
73
|
+
}),
|
|
74
|
+
})));
|
|
75
|
+
return { ok: true, results };
|
|
76
|
+
}
|
|
77
|
+
return await (0, integration_tool_execution_1.executeContextToolOperation)({
|
|
78
|
+
operation: (0, integration_tool_schema_1.toSingleContextOperation)(toolInput),
|
|
79
|
+
descriptor,
|
|
80
|
+
messageContextStore,
|
|
81
|
+
queryExecutor,
|
|
82
|
+
persistence: ctx.persistence,
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function createIntegrationActionTool(params) {
|
|
87
|
+
const { descriptor, messageContextStore, actionExecutor } = params;
|
|
88
|
+
return new agents_1.Tool(descriptor.actionToolName)
|
|
89
|
+
.description((0, integration_tool_descriptions_1.buildActionToolDescription)(descriptor))
|
|
90
|
+
.input((0, integration_tool_schema_1.buildActionInputSchema)(descriptor.actionToolDefinitions))
|
|
91
|
+
.suspend(actionSuspendSchema)
|
|
92
|
+
.resume(actionResumeSchema)
|
|
93
|
+
.handler(async (input, ctx) => {
|
|
94
|
+
if (ctx.resumeData) {
|
|
95
|
+
return ctx.resumeData;
|
|
96
|
+
}
|
|
97
|
+
const interruptCtx = ctx;
|
|
98
|
+
const toolInput = input;
|
|
99
|
+
if (toolInput.actions !== undefined) {
|
|
100
|
+
return await (0, integration_tool_execution_1.executeActionToolBatch)({
|
|
101
|
+
operations: toolInput.actions,
|
|
102
|
+
descriptor,
|
|
103
|
+
messageContextStore,
|
|
104
|
+
actionExecutor,
|
|
105
|
+
ctx,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
return await (0, integration_tool_execution_1.executeActionToolOperation)({
|
|
109
|
+
operation: (0, integration_tool_schema_1.toSingleActionOperation)(toolInput),
|
|
110
|
+
descriptor,
|
|
111
|
+
messageContextStore,
|
|
112
|
+
actionExecutor,
|
|
113
|
+
ctx,
|
|
114
|
+
interruptCtx,
|
|
115
|
+
allowSuspend: true,
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
function getContextToolDefinitions(capabilities) {
|
|
120
|
+
if (capabilities?.contextToolDefinitions)
|
|
121
|
+
return [...capabilities.contextToolDefinitions];
|
|
122
|
+
if (capabilities?.contextQueries)
|
|
123
|
+
return (0, integration_tool_definitions_1.resolveIntegrationContextQueryDefinitions)(capabilities.contextQueries);
|
|
124
|
+
return [...integration_tool_definitions_1.DEFAULT_INTEGRATION_CONTEXT_TOOL_DEFINITIONS];
|
|
125
|
+
}
|
|
126
|
+
function getActionToolDefinitions(capabilities) {
|
|
127
|
+
if (capabilities?.actionToolDefinitions)
|
|
128
|
+
return [...capabilities.actionToolDefinitions];
|
|
129
|
+
if (capabilities?.actions)
|
|
130
|
+
return (0, integration_tool_definitions_1.resolveIntegrationActionDefinitions)(capabilities.actions);
|
|
131
|
+
return [...integration_tool_definitions_1.DEFAULT_INTEGRATION_ACTION_TOOL_DEFINITIONS];
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=integration-tool-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-tool-factory.js","sourceRoot":"","sources":["../../../../src/modules/agents/integrations/integration-tool-factory.ts"],"names":[],"mappings":";;AA2DA,0FAuCC;AAED,oEAIC;AAED,oEAqCC;AAED,kEAwCC;AAzLD,wCAAkE;AAElE,6BAAwB;AAExB,iFAKwC;AACxC,mFAGyC;AACzC,6EAIsC;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IntegrationActionDefinition, IntegrationContextQuery, IntegrationContextQueryDefinition } from './integration-tool-types';
|
|
3
|
+
export interface RawContextToolOperation {
|
|
4
|
+
query: IntegrationContextQuery;
|
|
5
|
+
input: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export type RawContextToolInput = {
|
|
8
|
+
query?: IntegrationContextQuery;
|
|
9
|
+
input?: Record<string, unknown>;
|
|
10
|
+
queries?: RawContextToolOperation[];
|
|
11
|
+
};
|
|
12
|
+
export interface RawActionToolOperation {
|
|
13
|
+
action: IntegrationAction;
|
|
14
|
+
input: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
export type RawActionToolInput = {
|
|
17
|
+
action?: IntegrationAction;
|
|
18
|
+
input?: Record<string, unknown>;
|
|
19
|
+
actions?: RawActionToolOperation[];
|
|
20
|
+
};
|
|
21
|
+
export declare const MAX_BATCH_OPERATIONS = 20;
|
|
22
|
+
export declare function buildContextInputSchema(definitions: IntegrationContextQueryDefinition[]): z.ZodEffects<z.ZodObject<{
|
|
23
|
+
query: z.ZodOptional<z.ZodEnum<[IntegrationContextQuery, ...IntegrationContextQuery[]]>>;
|
|
24
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
25
|
+
queries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
+
query: z.ZodEnum<[IntegrationContextQuery, ...IntegrationContextQuery[]]>;
|
|
27
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
28
|
+
}, "strict", z.ZodTypeAny, {
|
|
29
|
+
query: IntegrationContextQuery;
|
|
30
|
+
input: Record<string, unknown>;
|
|
31
|
+
}, {
|
|
32
|
+
query: IntegrationContextQuery;
|
|
33
|
+
input: Record<string, unknown>;
|
|
34
|
+
}>, "many">>;
|
|
35
|
+
}, "strict", z.ZodTypeAny, {
|
|
36
|
+
query?: IntegrationContextQuery | undefined;
|
|
37
|
+
input?: Record<string, unknown> | undefined;
|
|
38
|
+
queries?: {
|
|
39
|
+
query: IntegrationContextQuery;
|
|
40
|
+
input: Record<string, unknown>;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
query?: IntegrationContextQuery | undefined;
|
|
44
|
+
input?: Record<string, unknown> | undefined;
|
|
45
|
+
queries?: {
|
|
46
|
+
query: IntegrationContextQuery;
|
|
47
|
+
input: Record<string, unknown>;
|
|
48
|
+
}[] | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
query?: IntegrationContextQuery | undefined;
|
|
51
|
+
input?: Record<string, unknown> | undefined;
|
|
52
|
+
queries?: {
|
|
53
|
+
query: IntegrationContextQuery;
|
|
54
|
+
input: Record<string, unknown>;
|
|
55
|
+
}[] | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
query?: IntegrationContextQuery | undefined;
|
|
58
|
+
input?: Record<string, unknown> | undefined;
|
|
59
|
+
queries?: {
|
|
60
|
+
query: IntegrationContextQuery;
|
|
61
|
+
input: Record<string, unknown>;
|
|
62
|
+
}[] | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
export declare function buildActionInputSchema(definitions: IntegrationActionDefinition[]): z.ZodEffects<z.ZodObject<{
|
|
65
|
+
action: z.ZodOptional<z.ZodEnum<[IntegrationAction, ...IntegrationAction[]]>>;
|
|
66
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
67
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
68
|
+
action: z.ZodEnum<[IntegrationAction, ...IntegrationAction[]]>;
|
|
69
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
70
|
+
}, "strict", z.ZodTypeAny, {
|
|
71
|
+
input: Record<string, unknown>;
|
|
72
|
+
action: IntegrationAction;
|
|
73
|
+
}, {
|
|
74
|
+
input: Record<string, unknown>;
|
|
75
|
+
action: IntegrationAction;
|
|
76
|
+
}>, "many">>;
|
|
77
|
+
}, "strict", z.ZodTypeAny, {
|
|
78
|
+
input?: Record<string, unknown> | undefined;
|
|
79
|
+
action?: IntegrationAction | undefined;
|
|
80
|
+
actions?: {
|
|
81
|
+
input: Record<string, unknown>;
|
|
82
|
+
action: IntegrationAction;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
input?: Record<string, unknown> | undefined;
|
|
86
|
+
action?: IntegrationAction | undefined;
|
|
87
|
+
actions?: {
|
|
88
|
+
input: Record<string, unknown>;
|
|
89
|
+
action: IntegrationAction;
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
}>, {
|
|
92
|
+
input?: Record<string, unknown> | undefined;
|
|
93
|
+
action?: IntegrationAction | undefined;
|
|
94
|
+
actions?: {
|
|
95
|
+
input: Record<string, unknown>;
|
|
96
|
+
action: IntegrationAction;
|
|
97
|
+
}[] | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
input?: Record<string, unknown> | undefined;
|
|
100
|
+
action?: IntegrationAction | undefined;
|
|
101
|
+
actions?: {
|
|
102
|
+
input: Record<string, unknown>;
|
|
103
|
+
action: IntegrationAction;
|
|
104
|
+
}[] | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
export declare function toSingleContextOperation(input: RawContextToolInput): RawContextToolOperation;
|
|
107
|
+
export declare function toSingleActionOperation(input: RawActionToolInput): RawActionToolOperation;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_BATCH_OPERATIONS = void 0;
|
|
4
|
+
exports.buildContextInputSchema = buildContextInputSchema;
|
|
5
|
+
exports.buildActionInputSchema = buildActionInputSchema;
|
|
6
|
+
exports.toSingleContextOperation = toSingleContextOperation;
|
|
7
|
+
exports.toSingleActionOperation = toSingleActionOperation;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
exports.MAX_BATCH_OPERATIONS = 20;
|
|
10
|
+
function buildContextInputSchema(definitions) {
|
|
11
|
+
const definitionsByName = toDefinitionMap(definitions);
|
|
12
|
+
const querySchema = zod_1.z.enum(toZodEnumValues(definitions.map((definition) => definition.name)));
|
|
13
|
+
const operationSchema = zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
query: querySchema,
|
|
16
|
+
input: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
17
|
+
})
|
|
18
|
+
.strict();
|
|
19
|
+
return zod_1.z
|
|
20
|
+
.object({
|
|
21
|
+
query: querySchema.optional(),
|
|
22
|
+
input: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
23
|
+
queries: zod_1.z.array(operationSchema).min(1).max(exports.MAX_BATCH_OPERATIONS).optional(),
|
|
24
|
+
})
|
|
25
|
+
.strict()
|
|
26
|
+
.superRefine((input, ctx) => {
|
|
27
|
+
if (input.queries !== undefined) {
|
|
28
|
+
if (input.query !== undefined || input.input !== undefined) {
|
|
29
|
+
ctx.addIssue({
|
|
30
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
31
|
+
message: 'Provide either query/input or queries, not both.',
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
input.queries.forEach((operation, index) => {
|
|
35
|
+
validateOperationSchema(definitionsByName, operation, ctx, ['queries', index]);
|
|
36
|
+
});
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (input.query === undefined || input.input === undefined) {
|
|
40
|
+
ctx.addIssue({
|
|
41
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
42
|
+
message: 'Provide query and input, or provide queries for a batch.',
|
|
43
|
+
});
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
validateOperationSchema(definitionsByName, { query: input.query, input: input.input }, ctx);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function buildActionInputSchema(definitions) {
|
|
50
|
+
const definitionsByName = toDefinitionMap(definitions);
|
|
51
|
+
const actionSchema = zod_1.z.enum(toZodEnumValues(definitions.map((definition) => definition.name)));
|
|
52
|
+
const operationSchema = zod_1.z
|
|
53
|
+
.object({
|
|
54
|
+
action: actionSchema,
|
|
55
|
+
input: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
56
|
+
})
|
|
57
|
+
.strict();
|
|
58
|
+
return zod_1.z
|
|
59
|
+
.object({
|
|
60
|
+
action: actionSchema.optional(),
|
|
61
|
+
input: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
62
|
+
actions: zod_1.z.array(operationSchema).min(1).max(exports.MAX_BATCH_OPERATIONS).optional(),
|
|
63
|
+
})
|
|
64
|
+
.strict()
|
|
65
|
+
.superRefine((input, ctx) => {
|
|
66
|
+
if (input.actions !== undefined) {
|
|
67
|
+
if (input.action !== undefined || input.input !== undefined) {
|
|
68
|
+
ctx.addIssue({
|
|
69
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
70
|
+
message: 'Provide either action/input or actions, not both.',
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
input.actions.forEach((operation, index) => {
|
|
74
|
+
validateOperationSchema(definitionsByName, operation, ctx, ['actions', index]);
|
|
75
|
+
});
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (input.action === undefined || input.input === undefined) {
|
|
79
|
+
ctx.addIssue({
|
|
80
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
81
|
+
message: 'Provide action and input, or provide actions for a batch.',
|
|
82
|
+
});
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
validateOperationSchema(definitionsByName, { action: input.action, input: input.input }, ctx);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function toSingleContextOperation(input) {
|
|
89
|
+
if (input.query === undefined || input.input === undefined) {
|
|
90
|
+
throw new Error('Integration context tool input was not validated.');
|
|
91
|
+
}
|
|
92
|
+
return { query: input.query, input: input.input };
|
|
93
|
+
}
|
|
94
|
+
function toSingleActionOperation(input) {
|
|
95
|
+
if (input.action === undefined || input.input === undefined) {
|
|
96
|
+
throw new Error('Integration action tool input was not validated.');
|
|
97
|
+
}
|
|
98
|
+
return { action: input.action, input: input.input };
|
|
99
|
+
}
|
|
100
|
+
function validateOperationSchema(definitionsByName, operation, ctx, pathPrefix = []) {
|
|
101
|
+
const operationName = 'query' in operation ? operation.query : operation.action;
|
|
102
|
+
const definition = definitionsByName.get(operationName);
|
|
103
|
+
if (!definition) {
|
|
104
|
+
ctx.addIssue({
|
|
105
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
106
|
+
path: pathPrefix,
|
|
107
|
+
message: `Unknown integration tool operation: ${operationName}`,
|
|
108
|
+
});
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const result = definition.inputSchema.safeParse(operation);
|
|
112
|
+
if (!result.success)
|
|
113
|
+
addSchemaIssues(ctx, result.error, pathPrefix);
|
|
114
|
+
}
|
|
115
|
+
function addSchemaIssues(ctx, error, pathPrefix = []) {
|
|
116
|
+
for (const issue of error.issues) {
|
|
117
|
+
ctx.addIssue({
|
|
118
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
119
|
+
path: [...pathPrefix, ...issue.path],
|
|
120
|
+
message: issue.message,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function toZodEnumValues(values) {
|
|
125
|
+
if (values.length === 0) {
|
|
126
|
+
throw new Error('Integration tools require at least one operation.');
|
|
127
|
+
}
|
|
128
|
+
return values;
|
|
129
|
+
}
|
|
130
|
+
function toDefinitionMap(definitions) {
|
|
131
|
+
const definitionsByName = new Map();
|
|
132
|
+
for (const definition of definitions) {
|
|
133
|
+
if (definitionsByName.has(definition.name)) {
|
|
134
|
+
throw new Error(`Duplicate integration tool operation definition: ${definition.name}`);
|
|
135
|
+
}
|
|
136
|
+
definitionsByName.set(definition.name, definition);
|
|
137
|
+
}
|
|
138
|
+
return definitionsByName;
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=integration-tool-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-t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import type { IntegrationErrorCode } from './integration-error-codes';
|
|
4
|
+
export type IntegrationMessageTarget = {
|
|
5
|
+
type: 'thread';
|
|
6
|
+
threadId: string;
|
|
7
|
+
channelId?: string;
|
|
8
|
+
userId?: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: 'channel';
|
|
11
|
+
channelId: string;
|
|
12
|
+
threadId?: string;
|
|
13
|
+
} | {
|
|
14
|
+
type: 'dm';
|
|
15
|
+
userId: string;
|
|
16
|
+
threadId?: string;
|
|
17
|
+
};
|
|
18
|
+
export interface IntegrationMessageContext {
|
|
19
|
+
integrationConnectionId: string;
|
|
20
|
+
platform: string;
|
|
21
|
+
target: IntegrationMessageTarget;
|
|
22
|
+
messageId?: string;
|
|
23
|
+
interactingUserId?: string;
|
|
24
|
+
agentUserId?: string;
|
|
25
|
+
subject?: IntegrationMessageSubject;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
}
|
|
28
|
+
export interface IntegrationMessageSubject {
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
url?: string;
|
|
34
|
+
status?: string;
|
|
35
|
+
labels?: string[];
|
|
36
|
+
assignee?: IntegrationSubjectPerson;
|
|
37
|
+
author?: IntegrationSubjectPerson;
|
|
38
|
+
}
|
|
39
|
+
export interface IntegrationSubjectPerson {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
}
|
|
43
|
+
export type IntegrationToolConnectionSource = AgentIntegrationConfig | {
|
|
44
|
+
type: typeof N8N_CHAT_INTEGRATION_TYPE;
|
|
45
|
+
credentialId?: undefined;
|
|
46
|
+
};
|
|
47
|
+
export type IntegrationContextQuery = 'get_current_message_context' | 'get_current_subject' | 'get_current_user' | 'get_current_channel_info' | 'get_user' | 'get_channel_info' | 'search_users' | 'search_channels' | 'get_team' | 'search_teams' | 'get_project' | 'search_projects' | 'search_labels' | 'search_issue_states' | 'get_issue' | 'search_issues';
|
|
48
|
+
export type IntegrationAction = 'respond' | 'send_dm' | 'send_channel_message' | 'add_reaction' | 'create_issue' | 'update_issue' | 'create_comment';
|
|
49
|
+
export interface IntegrationToolOperationDefinition<Name extends string = string> {
|
|
50
|
+
name: Name;
|
|
51
|
+
inputSchema: z.ZodType;
|
|
52
|
+
description: string;
|
|
53
|
+
}
|
|
54
|
+
export type IntegrationContextQueryDefinition = IntegrationToolOperationDefinition<IntegrationContextQuery>;
|
|
55
|
+
export type IntegrationActionDefinition = IntegrationToolOperationDefinition<IntegrationAction>;
|
|
56
|
+
export interface IntegrationToolConnectionDescriptor {
|
|
57
|
+
agentId?: string;
|
|
58
|
+
integration: IntegrationToolConnectionSource;
|
|
59
|
+
integrationConnectionId: string;
|
|
60
|
+
contextToolName: string;
|
|
61
|
+
actionToolName: string;
|
|
62
|
+
contextQueries: IntegrationContextQuery[];
|
|
63
|
+
actions: IntegrationAction[];
|
|
64
|
+
contextToolDefinitions: IntegrationContextQueryDefinition[];
|
|
65
|
+
actionToolDefinitions: IntegrationActionDefinition[];
|
|
66
|
+
contextToolGuidance?: string[];
|
|
67
|
+
actionToolGuidance?: string[];
|
|
68
|
+
}
|
|
69
|
+
export interface IntegrationMessageContextStore {
|
|
70
|
+
getLatest(threadId: string): Promise<IntegrationMessageContext | null>;
|
|
71
|
+
setLatest(threadId: string, resourceId: string, context: IntegrationMessageContext): Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
export interface IntegrationContextQueryExecutor {
|
|
74
|
+
execute(params: {
|
|
75
|
+
descriptor: IntegrationToolConnectionDescriptor;
|
|
76
|
+
query: IntegrationContextQuery;
|
|
77
|
+
input: Record<string, unknown>;
|
|
78
|
+
persistence?: {
|
|
79
|
+
threadId: string;
|
|
80
|
+
resourceId: string;
|
|
81
|
+
};
|
|
82
|
+
}): Promise<unknown>;
|
|
83
|
+
}
|
|
84
|
+
export interface IntegrationActionExecutor {
|
|
85
|
+
execute(params: {
|
|
86
|
+
descriptor: IntegrationToolConnectionDescriptor;
|
|
87
|
+
action: IntegrationAction;
|
|
88
|
+
input: Record<string, unknown>;
|
|
89
|
+
awaitResponse: boolean;
|
|
90
|
+
runId?: string;
|
|
91
|
+
toolCallId?: string;
|
|
92
|
+
currentMessageContext?: IntegrationMessageContext;
|
|
93
|
+
}): Promise<IntegrationActionResult>;
|
|
94
|
+
}
|
|
95
|
+
export type IntegrationActionResult = {
|
|
96
|
+
ok: true;
|
|
97
|
+
messageContext?: IntegrationMessageContext;
|
|
98
|
+
[key: string]: unknown;
|
|
99
|
+
} | {
|
|
100
|
+
ok: false;
|
|
101
|
+
error: {
|
|
102
|
+
code: IntegrationErrorCode;
|
|
103
|
+
message: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-tool-types.js","sourceRoot":"","sources":["../../../../src/modules/agents/integrations/integration-tool-types.ts"],"names":[],"mappings":""}
|