n8n 2.20.6 → 2.21.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.d.ts +1 -0
- package/dist/abstract-server.js +10 -3
- package/dist/abstract-server.js.map +1 -1
- package/dist/agent-library-bundle.js +5989 -0
- package/dist/auth/auth.service.js +3 -3
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/execute-batch.d.ts +2 -2
- package/dist/commands/export/workflow.d.ts +2 -2
- package/dist/commands/import/workflow.d.ts +3 -0
- package/dist/commands/import/workflow.js +15 -1
- package/dist/commands/import/workflow.js.map +1 -1
- package/dist/commands/start.js +2 -0
- package/dist/commands/start.js.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +6 -1
- package/dist/constants.js.map +1 -1
- package/dist/controller.registry.js +6 -0
- package/dist/controller.registry.js.map +1 -1
- package/dist/controllers/auth.controller.js +7 -2
- package/dist/controllers/auth.controller.js.map +1 -1
- package/dist/controllers/me.controller.d.ts +1 -0
- package/dist/controllers/me.controller.js +4 -1
- package/dist/controllers/me.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +2 -2
- package/dist/credentials/credentials.service.d.ts +1 -0
- package/dist/credentials/credentials.service.js +11 -4
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/evaluation.ee/evaluation-api-error.d.ts +7 -0
- package/dist/evaluation.ee/evaluation-api-error.js +16 -0
- package/dist/evaluation.ee/evaluation-api-error.js.map +1 -0
- package/dist/evaluation.ee/evaluation-config-validator.d.ts +30 -0
- package/dist/evaluation.ee/evaluation-config-validator.js +236 -0
- package/dist/evaluation.ee/evaluation-config-validator.js.map +1 -0
- package/dist/evaluation.ee/evaluation-config.controller.d.ts +24 -0
- package/dist/evaluation.ee/evaluation-config.controller.js +94 -0
- package/dist/evaluation.ee/evaluation-config.controller.js.map +1 -0
- package/dist/evaluation.ee/evaluation-config.service.d.ts +18 -0
- package/dist/evaluation.ee/evaluation-config.service.js +74 -0
- package/dist/evaluation.ee/evaluation-config.service.js.map +1 -0
- package/dist/evaluation.ee/llm-judge-provider-registry.d.ts +13 -0
- package/dist/evaluation.ee/llm-judge-provider-registry.js +122 -0
- package/dist/evaluation.ee/llm-judge-provider-registry.js.map +1 -0
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +5 -0
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +32 -10
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.d.ts +22 -0
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.js +285 -0
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.js.map +1 -0
- package/dist/evaluation.ee/test-runs.controller.ee.d.ts +3 -0
- package/dist/evaluation.ee/test-runs.controller.ee.js +26 -9
- package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runs.types.ee.d.ts +3 -0
- package/dist/eventbus/message-event-bus/message-event-bus.d.ts +2 -0
- package/dist/eventbus/message-event-bus/message-event-bus.js +54 -46
- package/dist/eventbus/message-event-bus/message-event-bus.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +3 -0
- package/dist/instance-settings-loader/instance-settings-loader.service.d.ts +4 -2
- package/dist/instance-settings-loader/instance-settings-loader.service.js +7 -3
- package/dist/instance-settings-loader/instance-settings-loader.service.js.map +1 -1
- package/dist/instance-settings-loader/loaders/community-packages.instance-settings-loader.d.ts +20 -0
- package/dist/instance-settings-loader/loaders/community-packages.instance-settings-loader.js +235 -0
- package/dist/instance-settings-loader/loaders/community-packages.instance-settings-loader.js.map +1 -0
- package/dist/instance-settings-loader/loaders/{sso.instance-settings-loader.d.ts → sso/oidc.instance-settings-loader.d.ts} +4 -10
- package/dist/instance-settings-loader/loaders/sso/oidc.instance-settings-loader.js +98 -0
- package/dist/instance-settings-loader/loaders/sso/oidc.instance-settings-loader.js.map +1 -0
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.d.ts +10 -0
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js +65 -0
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js.map +1 -0
- package/dist/instance-settings-loader/loaders/sso/saml.instance-settings-loader.d.ts +12 -0
- package/dist/instance-settings-loader/loaders/sso/saml.instance-settings-loader.js +75 -0
- package/dist/instance-settings-loader/loaders/sso/saml.instance-settings-loader.js.map +1 -0
- package/dist/instance-settings-loader/loaders/sso/sso.instance-settings-loader.d.ts +15 -0
- package/dist/instance-settings-loader/loaders/sso/sso.instance-settings-loader.js +75 -0
- package/dist/instance-settings-loader/loaders/sso/sso.instance-settings-loader.js.map +1 -0
- package/dist/load-nodes-and-credentials.d.ts +3 -3
- package/dist/load-nodes-and-credentials.js +25 -17
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/modules/agents/adapters/agents-credential-provider.d.ts +12 -0
- package/dist/modules/agents/adapters/agents-credential-provider.js +63 -0
- package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -0
- package/dist/modules/agents/agent-execution.service.d.ts +42 -0
- package/dist/modules/agents/agent-execution.service.js +153 -0
- package/dist/modules/agents/agent-execution.service.js.map +1 -0
- package/dist/modules/agents/agent-message-mapper.d.ts +5 -0
- package/dist/modules/agents/agent-message-mapper.js +43 -0
- package/dist/modules/agents/agent-message-mapper.js.map +1 -0
- package/dist/modules/agents/agent-skills.service.d.ts +24 -0
- package/dist/modules/agents/agent-skills.service.js +166 -0
- package/dist/modules/agents/agent-skills.service.js.map +1 -0
- package/dist/modules/agents/agent-sse-stream.d.ts +15 -0
- package/dist/modules/agents/agent-sse-stream.js +194 -0
- package/dist/modules/agents/agent-sse-stream.js.map +1 -0
- package/dist/modules/agents/agents-tools.service.d.ts +18 -0
- package/dist/modules/agents/agents-tools.service.js +193 -0
- package/dist/modules/agents/agents-tools.service.js.map +1 -0
- package/dist/modules/agents/agents.controller.d.ts +260 -0
- package/dist/modules/agents/agents.controller.js +818 -0
- package/dist/modules/agents/agents.controller.js.map +1 -0
- package/dist/modules/agents/agents.module.d.ts +12 -0
- package/dist/modules/agents/agents.module.js +136 -0
- package/dist/modules/agents/agents.module.js.map +1 -0
- package/dist/modules/agents/agents.service.d.ts +151 -0
- package/dist/modules/agents/agents.service.js +1134 -0
- package/dist/modules/agents/agents.service.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +27 -0
- package/dist/modules/agents/builder/agents-builder-prompts.js +584 -0
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-settings.controller.d.ts +11 -0
- package/dist/modules/agents/builder/agents-builder-settings.controller.js +61 -0
- package/dist/modules/agents/builder/agents-builder-settings.controller.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-settings.service.d.ts +31 -0
- package/dist/modules/agents/builder/agents-builder-settings.service.js +199 -0
- package/dist/modules/agents/builder/agents-builder-settings.service.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +31 -0
- package/dist/modules/agents/builder/agents-builder-tools.service.js +420 -0
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder.service.d.ts +26 -0
- package/dist/modules/agents/builder/agents-builder.service.js +164 -0
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -0
- package/dist/modules/agents/builder/builder-model-lookup.service.d.ts +17 -0
- package/dist/modules/agents/builder/builder-model-lookup.service.js +67 -0
- package/dist/modules/agents/builder/builder-model-lookup.service.js.map +1 -0
- package/dist/modules/agents/builder/builder-tool-names.d.ts +14 -0
- package/dist/modules/agents/builder/builder-tool-names.js +17 -0
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -0
- package/dist/modules/agents/builder/errors.d.ts +6 -0
- package/dist/modules/agents/builder/errors.js +13 -0
- package/dist/modules/agents/builder/errors.js.map +1 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +5 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +29 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -0
- package/dist/modules/agents/builder/interactive/ask-llm.tool.d.ts +2 -0
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js +27 -0
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js.map +1 -0
- package/dist/modules/agents/builder/interactive/ask-question.tool.d.ts +2 -0
- package/dist/modules/agents/builder/interactive/ask-question.tool.js +26 -0
- package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -0
- package/dist/modules/agents/builder/interactive/index.d.ts +4 -0
- package/dist/modules/agents/builder/interactive/index.js +12 -0
- package/dist/modules/agents/builder/interactive/index.js.map +1 -0
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.d.ts +17 -0
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js +60 -0
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +1 -0
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.d.ts +13 -0
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +136 -0
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -0
- package/dist/modules/agents/entities/agent-checkpoint.entity.d.ts +9 -0
- package/dist/modules/agents/entities/agent-checkpoint.entity.js +43 -0
- package/dist/modules/agents/entities/agent-checkpoint.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.d.ts +16 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js +74 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-execution.entity.d.ts +26 -0
- package/dist/modules/agents/entities/agent-execution.entity.js +100 -0
- package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-message.entity.d.ts +10 -0
- package/dist/modules/agents/entities/agent-message.entity.js +47 -0
- package/dist/modules/agents/entities/agent-message.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-observation-cursor.entity.d.ts +8 -0
- package/dist/modules/agents/entities/agent-observation-cursor.entity.js +37 -0
- package/dist/modules/agents/entities/agent-observation-cursor.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-observation-lock.entity.d.ts +8 -0
- package/dist/modules/agents/entities/agent-observation-lock.entity.js +37 -0
- package/dist/modules/agents/entities/agent-observation-lock.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-observation.entity.d.ts +10 -0
- package/dist/modules/agents/entities/agent-observation.entity.js +47 -0
- package/dist/modules/agents/entities/agent-observation.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-published-version.entity.d.ts +22 -0
- package/dist/modules/agents/entities/agent-published-version.entity.js +67 -0
- package/dist/modules/agents/entities/agent-published-version.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-resource.entity.d.ts +5 -0
- package/dist/modules/agents/entities/agent-resource.entity.js +29 -0
- package/dist/modules/agents/entities/agent-resource.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-thread.entity.d.ts +6 -0
- package/dist/modules/agents/entities/agent-thread.entity.js +33 -0
- package/dist/modules/agents/entities/agent-thread.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent.entity.d.ts +24 -0
- package/dist/modules/agents/entities/agent.entity.js +74 -0
- package/dist/modules/agents/entities/agent.entity.js.map +1 -0
- package/dist/modules/agents/execution-recorder.d.ts +82 -0
- package/dist/modules/agents/execution-recorder.js +272 -0
- package/dist/modules/agents/execution-recorder.js.map +1 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +62 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.js +540 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -0
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +39 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js +45 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -0
- package/dist/modules/agents/integrations/agent-schedule.service.d.ts +30 -0
- package/dist/modules/agents/integrations/agent-schedule.service.js +327 -0
- package/dist/modules/agents/integrations/agent-schedule.service.js.map +1 -0
- package/dist/modules/agents/integrations/callback-store.d.ts +11 -0
- package/dist/modules/agents/integrations/callback-store.js +30 -0
- package/dist/modules/agents/integrations/callback-store.js.map +1 -0
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +58 -0
- package/dist/modules/agents/integrations/chat-integration.service.js +397 -0
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -0
- package/dist/modules/agents/integrations/component-mapper.d.ts +57 -0
- package/dist/modules/agents/integrations/component-mapper.js +223 -0
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -0
- package/dist/modules/agents/integrations/cron-validation.d.ts +1 -0
- package/dist/modules/agents/integrations/cron-validation.js +8 -0
- package/dist/modules/agents/integrations/cron-validation.js.map +1 -0
- package/dist/modules/agents/integrations/esm-loader.d.ts +5 -0
- package/dist/modules/agents/integrations/esm-loader.js +24 -0
- package/dist/modules/agents/integrations/esm-loader.js.map +1 -0
- package/dist/modules/agents/integrations/integrations-sync.d.ts +4 -0
- package/dist/modules/agents/integrations/integrations-sync.js +78 -0
- package/dist/modules/agents/integrations/integrations-sync.js.map +1 -0
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.d.ts +36 -0
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js +148 -0
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js.map +1 -0
- package/dist/modules/agents/integrations/n8n-memory.d.ts +76 -0
- package/dist/modules/agents/integrations/n8n-memory.js +383 -0
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +14 -0
- package/dist/modules/agents/integrations/platforms/linear-integration.js +83 -0
- package/dist/modules/agents/integrations/platforms/linear-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +12 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.js +81 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +30 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +122 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -0
- package/dist/modules/agents/integrations/rich-interaction-tool.d.ts +47 -0
- package/dist/modules/agents/integrations/rich-interaction-tool.js +109 -0
- package/dist/modules/agents/integrations/rich-interaction-tool.js.map +1 -0
- package/dist/modules/agents/integrations/types.d.ts +8 -0
- package/dist/modules/agents/integrations/types.js +12 -0
- package/dist/modules/agents/integrations/types.js.map +1 -0
- package/dist/modules/agents/json-config/agent-config-composition.d.ts +9 -0
- package/dist/modules/agents/json-config/agent-config-composition.js +27 -0
- package/dist/modules/agents/json-config/agent-config-composition.js.map +1 -0
- package/dist/modules/agents/json-config/agent-json-config.d.ts +1022 -0
- package/dist/modules/agents/json-config/agent-json-config.js +128 -0
- package/dist/modules/agents/json-config/agent-json-config.js.map +1 -0
- package/dist/modules/agents/json-config/credential-field-mapping.d.ts +4 -0
- package/dist/modules/agents/json-config/credential-field-mapping.js +41 -0
- package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -0
- package/dist/modules/agents/json-config/from-json-config.d.ts +18 -0
- package/dist/modules/agents/json-config/from-json-config.js +209 -0
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -0
- package/dist/modules/agents/json-config/integration-config.d.ts +61 -0
- package/dist/modules/agents/json-config/integration-config.js +33 -0
- package/dist/modules/agents/json-config/integration-config.js.map +1 -0
- package/dist/modules/agents/json-config/provider-tool-aliases.d.ts +1 -0
- package/dist/modules/agents/json-config/provider-tool-aliases.js +15 -0
- package/dist/modules/agents/json-config/provider-tool-aliases.js.map +1 -0
- package/dist/modules/agents/json-config/schema-text-serializer.d.ts +2 -0
- package/dist/modules/agents/json-config/schema-text-serializer.js +205 -0
- package/dist/modules/agents/json-config/schema-text-serializer.js.map +1 -0
- package/dist/modules/agents/repositories/agent-checkpoint.repository.d.ts +6 -0
- package/dist/modules/agents/repositories/agent-checkpoint.repository.js +35 -0
- package/dist/modules/agents/repositories/agent-checkpoint.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +18 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +120 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-execution.repository.d.ts +10 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js +59 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-message.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-message.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-message.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-observation-cursor.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-observation-cursor.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-observation-cursor.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-observation-lock.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-observation-lock.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-observation-lock.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-observation.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-observation.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-observation.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-published-version.repository.d.ts +20 -0
- package/dist/modules/agents/repositories/agent-published-version.repository.js +35 -0
- package/dist/modules/agents/repositories/agent-published-version.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-resource.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-resource.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-resource.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-thread.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent.repository.d.ts +9 -0
- package/dist/modules/agents/repositories/agent.repository.js +50 -0
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -0
- package/dist/modules/agents/runtime/agent-isolate-pool.d.ts +48 -0
- package/dist/modules/agents/runtime/agent-isolate-pool.js +246 -0
- package/dist/modules/agents/runtime/agent-isolate-pool.js.map +1 -0
- package/dist/modules/agents/runtime/agent-secure-runtime.d.ts +21 -0
- package/dist/modules/agents/runtime/agent-secure-runtime.js +281 -0
- package/dist/modules/agents/runtime/agent-secure-runtime.js.map +1 -0
- package/dist/modules/agents/runtime/sandbox-polyfills.d.ts +1 -0
- package/dist/modules/agents/runtime/sandbox-polyfills.js +74 -0
- package/dist/modules/agents/runtime/sandbox-polyfills.js.map +1 -0
- package/dist/modules/agents/tool-registry.d.ts +13 -0
- package/dist/modules/agents/tool-registry.js +42 -0
- package/dist/modules/agents/tool-registry.js.map +1 -0
- package/dist/modules/agents/tools/environment-tool.d.ts +3 -0
- package/dist/modules/agents/tools/environment-tool.js +26 -0
- package/dist/modules/agents/tools/environment-tool.js.map +1 -0
- package/dist/modules/agents/tools/node-tool-factory.d.ts +10 -0
- package/dist/modules/agents/tools/node-tool-factory.js +100 -0
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -0
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +43 -0
- package/dist/modules/agents/tools/workflow-tool-factory.js +404 -0
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -0
- package/dist/modules/agents/tracing/builder-telemetry.d.ts +12 -0
- package/dist/modules/agents/tracing/builder-telemetry.js +48 -0
- package/dist/modules/agents/tracing/builder-telemetry.js.map +1 -0
- package/dist/modules/agents/types/components.d.ts +71 -0
- package/dist/modules/agents/types/components.js +3 -0
- package/dist/modules/agents/types/components.js.map +1 -0
- package/dist/modules/agents/types/index.d.ts +1 -0
- package/dist/modules/agents/types/index.js +3 -0
- package/dist/modules/agents/types/index.js.map +1 -0
- package/dist/modules/agents/utils/agent-draft.utils.d.ts +2 -0
- package/dist/modules/agents/utils/agent-draft.utils.js +11 -0
- package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -0
- package/dist/modules/agents/utils/agent-resource-id.d.ts +3 -0
- package/dist/modules/agents/utils/agent-resource-id.js +14 -0
- package/dist/modules/agents/utils/agent-resource-id.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub.module.d.ts +2 -2
- package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +4 -4
- package/dist/modules/chat-hub/chat-hub.types.d.ts +2 -2
- package/dist/modules/chat-hub/dto/chat-models-request.dto.d.ts +1 -1
- package/dist/modules/community-packages/community-packages.config.js +2 -2
- package/dist/modules/community-packages/community-packages.config.js.map +1 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.d.ts +4 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.js +14 -2
- package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.module.d.ts +1 -1
- package/dist/modules/community-packages/community-packages.module.js +10 -5
- package/dist/modules/community-packages/community-packages.module.js.map +1 -1
- package/dist/modules/data-table/data-table.service.js +6 -0
- package/dist/modules/data-table/data-table.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/slack-signature-identifier.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.d.ts +2 -0
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.js +10 -0
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +16 -4
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.d.ts +3 -3
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js +11 -3
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js.map +1 -1
- package/dist/modules/encryption-key-manager/encryption-bootstrap.service.js +4 -2
- package/dist/modules/encryption-key-manager/encryption-bootstrap.service.js.map +1 -1
- package/dist/modules/encryption-key-manager/encryption-key-manager.module.js +5 -2
- package/dist/modules/encryption-key-manager/encryption-key-manager.module.js.map +1 -1
- package/dist/modules/encryption-key-manager/encryption-key.controller.d.ts +3 -3
- package/dist/modules/encryption-key-manager/encryption-key.controller.js +8 -2
- package/dist/modules/encryption-key-manager/encryption-key.controller.js.map +1 -1
- package/dist/modules/encryption-key-manager/key-manager.service.d.ts +5 -1
- package/dist/modules/encryption-key-manager/key-manager.service.js +11 -4
- package/dist/modules/encryption-key-manager/key-manager.service.js.map +1 -1
- package/dist/modules/insights/insights-collection.service.js +1 -0
- package/dist/modules/insights/insights-collection.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +17 -49
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.d.ts +1 -0
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.js +21 -3
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +3 -2
- package/dist/modules/instance-ai/instance-ai-settings.service.js +10 -9
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-test.controller.d.ts +21 -2
- package/dist/modules/instance-ai/instance-ai-test.controller.js +35 -3
- package/dist/modules/instance-ai/instance-ai-test.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +72 -42
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +2 -0
- package/dist/modules/instance-ai/instance-ai.controller.js +25 -1
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +0 -1
- package/dist/modules/instance-ai/instance-ai.module.js +0 -2
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +34 -5
- package/dist/modules/instance-ai/instance-ai.service.js +723 -76
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/liveness/index.d.ts +1 -0
- package/dist/modules/instance-ai/liveness/index.js +7 -0
- package/dist/modules/instance-ai/liveness/index.js.map +1 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +72 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +123 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -0
- package/dist/modules/instance-ai/message-parser.js +85 -6
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js +4 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.js +1 -0
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.js.map +1 -1
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js +23 -7
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +3 -3
- package/dist/modules/mcp/mcp.service.js +12 -9
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/tools/get-execution.tool.js +6 -4
- package/dist/modules/mcp/tools/get-execution.tool.js.map +1 -1
- package/dist/modules/mcp/tools/list-credentials.tool.d.ts +40 -0
- package/dist/modules/mcp/tools/list-credentials.tool.js +148 -0
- package/dist/modules/mcp/tools/list-credentials.tool.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +5 -4
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.js +3 -3
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js +2 -2
- 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.js +3 -2
- 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 +3 -3
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js +12 -4
- package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js +12 -5
- 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.js +1 -2
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.d.ts +5 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.js +4 -2
- package/dist/modules/mcp/tools/workflow-validation.utils.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-node-loader.d.ts +27 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.js +105 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.test.d.ts +1 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.test.js +244 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.test.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-registry.module.d.ts +4 -0
- package/dist/modules/mcp-registry/mcp-registry.module.js +60 -0
- package/dist/modules/mcp-registry/mcp-registry.module.js.map +1 -0
- package/dist/modules/mcp-registry/node-description-transform.d.ts +8 -0
- package/dist/modules/mcp-registry/node-description-transform.js +133 -0
- package/dist/modules/mcp-registry/node-description-transform.js.map +1 -0
- package/dist/modules/mcp-registry/node-description-transform.test.d.ts +1 -0
- package/dist/modules/mcp-registry/node-description-transform.test.js +286 -0
- package/dist/modules/mcp-registry/node-description-transform.test.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +8 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js +31 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.test.d.ts +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.test.js +41 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.test.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.types.d.ts +36 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js +3 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mock-servers.d.ts +3 -0
- package/dist/modules/mcp-registry/registry/mock-servers.js +80 -0
- package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -0
- package/dist/modules/otel/execution-level-tracer.d.ts +1 -1
- package/dist/modules/otel/execution-level-tracer.js +24 -9
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +9 -7
- package/dist/modules/otel/execution-level-tracer.types.js +14 -0
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/quick-connect/quick-connect.config.d.ts +176 -0
- package/dist/modules/quick-connect/quick-connect.config.js +8 -0
- package/dist/modules/quick-connect/quick-connect.config.js.map +1 -1
- package/dist/modules/quick-connect/quick-connect.module.d.ts +15 -0
- package/dist/modules/redaction/executions/execution-redaction.service.d.ts +1 -3
- package/dist/modules/redaction/executions/execution-redaction.service.js +2 -6
- package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +2 -2
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +1 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.d.ts +3 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.js +8 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.js.map +1 -1
- package/dist/node-catalog/index.d.ts +1 -0
- package/dist/node-catalog/index.js +6 -0
- package/dist/node-catalog/index.js.map +1 -0
- package/dist/{modules/mcp/tools/workflow-builder/workflow-builder-tools.service.d.ts → node-catalog/node-catalog.service.d.ts} +9 -15
- package/dist/{modules/mcp/tools/workflow-builder/workflow-builder-tools.service.js → node-catalog/node-catalog.service.js} +38 -28
- package/dist/node-catalog/node-catalog.service.js.map +1 -0
- package/dist/node-execution/ephemeral-node-executor.d.ts +47 -0
- package/dist/node-execution/ephemeral-node-executor.js +289 -0
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -0
- package/dist/node-execution/index.d.ts +2 -0
- package/dist/node-execution/index.js +8 -0
- package/dist/node-execution/index.js.map +1 -0
- package/dist/public-api/v1/handlers/audit/audit.handler.d.ts +5 -4
- package/dist/public-api/v1/handlers/audit/audit.handler.js +5 -9
- package/dist/public-api/v1/handlers/audit/audit.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/community-packages/community-packages.handler.d.ts +20 -17
- package/dist/public-api/v1/handlers/community-packages/community-packages.handler.js +12 -39
- package/dist/public-api/v1/handlers/community-packages/community-packages.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/credentials/credentials.handler.d.ts +12 -49
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js +6 -5
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/data-tables/data-tables.columns.handler.d.ts +8 -19
- package/dist/public-api/v1/handlers/data-tables/data-tables.columns.handler.js +11 -11
- package/dist/public-api/v1/handlers/data-tables/data-tables.columns.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/data-tables/data-tables.handler.d.ts +9 -17
- package/dist/public-api/v1/handlers/data-tables/data-tables.handler.js +19 -23
- package/dist/public-api/v1/handlers/data-tables/data-tables.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.d.ts +9 -23
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.js +17 -27
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/discover/discover.handler.d.ts +11 -9
- package/dist/public-api/v1/handlers/discover/discover.handler.js +5 -3
- package/dist/public-api/v1/handlers/discover/discover.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.d.ts +12 -11
- package/dist/public-api/v1/handlers/executions/executions.handler.js +46 -80
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/folders/folders.handler.d.ts +12 -17
- package/dist/public-api/v1/handlers/folders/folders.handler.js +17 -20
- package/dist/public-api/v1/handlers/folders/folders.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/insights/insights.handler.d.ts +5 -4
- package/dist/public-api/v1/handlers/insights/insights.handler.js +9 -5
- package/dist/public-api/v1/handlers/insights/insights.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/projects/projects.handler.d.ts +28 -11
- package/dist/public-api/v1/handlers/projects/projects.handler.js +44 -75
- package/dist/public-api/v1/handlers/projects/projects.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/source-control/source-control.handler.d.ts +5 -6
- package/dist/public-api/v1/handlers/source-control/source-control.handler.js +3 -2
- package/dist/public-api/v1/handlers/source-control/source-control.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/tags/tags.handler.d.ts +9 -8
- package/dist/public-api/v1/handlers/tags/tags.handler.js +11 -8
- package/dist/public-api/v1/handlers/tags/tags.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/users/users.handler.ee.d.ts +14 -11
- package/dist/public-api/v1/handlers/users/users.handler.ee.js +7 -8
- package/dist/public-api/v1/handlers/users/users.handler.ee.js.map +1 -1
- package/dist/public-api/v1/handlers/variables/variables.handler.d.ts +13 -7
- package/dist/public-api/v1/handlers/variables/variables.handler.js +5 -3
- package/dist/public-api/v1/handlers/variables/variables.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +17 -49
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js +27 -46
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
- package/dist/public-api/v1/shared/handler.types.d.ts +7 -1
- package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +1 -2
- package/dist/public-api/v1/shared/middlewares/global.middleware.js +7 -6
- package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/job-processor.js +2 -0
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +9 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
- package/dist/scaling/scaling.types.d.ts +1 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +2 -0
- package/dist/server.js.map +1 -1
- package/dist/services/frontend.service.js +7 -14
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/import.service.d.ts +9 -3
- package/dist/services/import.service.js +72 -5
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/proxy-token-manager.js.map +1 -0
- package/dist/services/workflow-statistics.service.js +1 -0
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker.service.d.ts +2 -0
- package/dist/task-runners/task-broker/task-broker.service.js +13 -1
- package/dist/task-runners/task-broker/task-broker.service.js.map +1 -1
- package/dist/utils/ttl-map.d.ts +17 -0
- package/dist/utils/ttl-map.js +80 -0
- package/dist/utils/ttl-map.js.map +1 -0
- package/dist/webhooks/test-webhooks.d.ts +3 -1
- package/dist/webhooks/test-webhooks.js +11 -3
- package/dist/webhooks/test-webhooks.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +2 -1
- package/dist/workflow-execute-additional-data.js +34 -0
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +1 -0
- package/dist/workflow-helpers.js +15 -0
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.js +2 -0
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/workflow-creation.service.js +1 -0
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow.service.js +4 -0
- package/dist/workflows/workflow.service.js.map +1 -1
- package/package.json +40 -25
- package/dist/instance-settings-loader/loaders/sso.instance-settings-loader.js +0 -203
- package/dist/instance-settings-loader/loaders/sso.instance-settings-loader.js.map +0 -1
- package/dist/modules/instance-ai/proxy-token-manager.js.map +0 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-builder-tools.service.js.map +0 -1
- /package/dist/{modules/instance-ai → services}/proxy-token-manager.d.ts +0 -0
- /package/dist/{modules/instance-ai → services}/proxy-token-manager.js +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type AgentScheduleConfig } from '@n8n/api-types';
|
|
2
|
+
import { ProjectRelationRepository } from '@n8n/db';
|
|
3
|
+
import { Logger } from '@n8n/backend-common';
|
|
4
|
+
import { GlobalConfig } from '@n8n/config';
|
|
5
|
+
import { AgentsService } from '../agents.service';
|
|
6
|
+
import type { Agent } from '../entities/agent.entity';
|
|
7
|
+
import { AgentRepository } from '../repositories/agent.repository';
|
|
8
|
+
export declare class AgentScheduleService {
|
|
9
|
+
private readonly logger;
|
|
10
|
+
private readonly globalConfig;
|
|
11
|
+
private readonly agentRepository;
|
|
12
|
+
private readonly agentsService;
|
|
13
|
+
private readonly projectRelationRepository;
|
|
14
|
+
private readonly jobs;
|
|
15
|
+
constructor(logger: Logger, globalConfig: GlobalConfig, agentRepository: AgentRepository, agentsService: AgentsService, projectRelationRepository: ProjectRelationRepository);
|
|
16
|
+
getConfig(agent: Agent): AgentScheduleConfig;
|
|
17
|
+
saveConfig(agent: Agent, cronExpression: string, wakeUpPrompt?: string): Promise<AgentScheduleConfig>;
|
|
18
|
+
activate(agent: Agent): Promise<AgentScheduleConfig>;
|
|
19
|
+
deactivate(agent: Agent): Promise<AgentScheduleConfig>;
|
|
20
|
+
reconnectAll(): Promise<void>;
|
|
21
|
+
applyConfig(agent: Agent): Promise<void>;
|
|
22
|
+
registerOrRefresh(agent: Agent): Promise<void>;
|
|
23
|
+
deregister(agentId: string): void;
|
|
24
|
+
stopAll(): void;
|
|
25
|
+
private getScheduleIntegration;
|
|
26
|
+
private saveScheduleIntegration;
|
|
27
|
+
private assertCronExpressionIsValid;
|
|
28
|
+
private runScheduled;
|
|
29
|
+
private resolveExecutionUserId;
|
|
30
|
+
}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgentScheduleService = void 0;
|
|
13
|
+
const api_types_1 = require("@n8n/api-types");
|
|
14
|
+
const db_1 = require("@n8n/db");
|
|
15
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
16
|
+
const config_1 = require("@n8n/config");
|
|
17
|
+
const decorators_1 = require("@n8n/decorators");
|
|
18
|
+
const di_1 = require("@n8n/di");
|
|
19
|
+
const cron_1 = require("cron");
|
|
20
|
+
const crypto_1 = require("crypto");
|
|
21
|
+
const luxon_1 = require("luxon");
|
|
22
|
+
const bad_request_error_1 = require("../../../errors/response-errors/bad-request.error");
|
|
23
|
+
const conflict_error_1 = require("../../../errors/response-errors/conflict.error");
|
|
24
|
+
const agents_service_1 = require("../agents.service");
|
|
25
|
+
const agent_repository_1 = require("../repositories/agent.repository");
|
|
26
|
+
const cron_validation_1 = require("./cron-validation");
|
|
27
|
+
let AgentScheduleService = class AgentScheduleService {
|
|
28
|
+
constructor(logger, globalConfig, agentRepository, agentsService, projectRelationRepository) {
|
|
29
|
+
this.logger = logger;
|
|
30
|
+
this.globalConfig = globalConfig;
|
|
31
|
+
this.agentRepository = agentRepository;
|
|
32
|
+
this.agentsService = agentsService;
|
|
33
|
+
this.projectRelationRepository = projectRelationRepository;
|
|
34
|
+
this.jobs = new Map();
|
|
35
|
+
}
|
|
36
|
+
getConfig(agent) {
|
|
37
|
+
const integration = this.getScheduleIntegration(agent);
|
|
38
|
+
return {
|
|
39
|
+
active: integration?.active ?? false,
|
|
40
|
+
cronExpression: integration?.cronExpression ?? '',
|
|
41
|
+
wakeUpPrompt: integration?.wakeUpPrompt ?? api_types_1.DEFAULT_AGENT_SCHEDULE_WAKE_UP_PROMPT,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
async saveConfig(agent, cronExpression, wakeUpPrompt) {
|
|
45
|
+
const existing = this.getScheduleIntegration(agent);
|
|
46
|
+
const normalizedCronExpression = cronExpression.trim();
|
|
47
|
+
const nextWakeUpPrompt = wakeUpPrompt ?? existing?.wakeUpPrompt ?? api_types_1.DEFAULT_AGENT_SCHEDULE_WAKE_UP_PROMPT;
|
|
48
|
+
if (normalizedCronExpression !== '') {
|
|
49
|
+
this.assertCronExpressionIsValid(normalizedCronExpression);
|
|
50
|
+
}
|
|
51
|
+
else if (existing?.active) {
|
|
52
|
+
throw new bad_request_error_1.BadRequestError('Cron expression is required while the schedule is active');
|
|
53
|
+
}
|
|
54
|
+
const saved = await this.saveScheduleIntegration(agent, {
|
|
55
|
+
type: api_types_1.AGENT_SCHEDULE_TRIGGER_TYPE,
|
|
56
|
+
active: existing?.active ?? false,
|
|
57
|
+
cronExpression: normalizedCronExpression,
|
|
58
|
+
wakeUpPrompt: nextWakeUpPrompt,
|
|
59
|
+
});
|
|
60
|
+
if (this.getScheduleIntegration(saved)?.active) {
|
|
61
|
+
await this.registerOrRefresh(saved);
|
|
62
|
+
}
|
|
63
|
+
this.logger.debug('[AgentScheduleService] Saved schedule config', {
|
|
64
|
+
agentId: agent.id,
|
|
65
|
+
projectId: agent.projectId,
|
|
66
|
+
active: saved.integrations.find(api_types_1.isAgentScheduleIntegration)?.active ?? false,
|
|
67
|
+
cronExpression: normalizedCronExpression || null,
|
|
68
|
+
});
|
|
69
|
+
return this.getConfig(saved);
|
|
70
|
+
}
|
|
71
|
+
async activate(agent) {
|
|
72
|
+
if (!agent.publishedVersion) {
|
|
73
|
+
throw new conflict_error_1.ConflictError(`Agent "${agent.id}" must be published before activating the schedule trigger`);
|
|
74
|
+
}
|
|
75
|
+
const existing = this.getScheduleIntegration(agent);
|
|
76
|
+
const cronExpression = existing?.cronExpression.trim() ?? '';
|
|
77
|
+
if (cronExpression === '') {
|
|
78
|
+
throw new bad_request_error_1.BadRequestError('Cron expression is required before activation');
|
|
79
|
+
}
|
|
80
|
+
this.assertCronExpressionIsValid(cronExpression);
|
|
81
|
+
const saved = await this.saveScheduleIntegration(agent, {
|
|
82
|
+
type: api_types_1.AGENT_SCHEDULE_TRIGGER_TYPE,
|
|
83
|
+
active: true,
|
|
84
|
+
cronExpression,
|
|
85
|
+
wakeUpPrompt: existing?.wakeUpPrompt ?? api_types_1.DEFAULT_AGENT_SCHEDULE_WAKE_UP_PROMPT,
|
|
86
|
+
});
|
|
87
|
+
await this.registerOrRefresh(saved);
|
|
88
|
+
this.logger.info('[AgentScheduleService] Activated schedule trigger', {
|
|
89
|
+
agentId: agent.id,
|
|
90
|
+
projectId: agent.projectId,
|
|
91
|
+
cronExpression,
|
|
92
|
+
});
|
|
93
|
+
return this.getConfig(saved);
|
|
94
|
+
}
|
|
95
|
+
async deactivate(agent) {
|
|
96
|
+
const existing = this.getScheduleIntegration(agent);
|
|
97
|
+
if (!existing) {
|
|
98
|
+
this.deregister(agent.id);
|
|
99
|
+
return this.getConfig(agent);
|
|
100
|
+
}
|
|
101
|
+
const saved = await this.saveScheduleIntegration(agent, {
|
|
102
|
+
...existing,
|
|
103
|
+
active: false,
|
|
104
|
+
});
|
|
105
|
+
this.deregister(agent.id);
|
|
106
|
+
this.logger.info('[AgentScheduleService] Deactivated schedule trigger', {
|
|
107
|
+
agentId: agent.id,
|
|
108
|
+
projectId: agent.projectId,
|
|
109
|
+
});
|
|
110
|
+
return this.getConfig(saved);
|
|
111
|
+
}
|
|
112
|
+
async reconnectAll() {
|
|
113
|
+
const agents = await this.agentRepository.findPublished();
|
|
114
|
+
this.logger.debug('[AgentScheduleService] Reconnecting active schedules', {
|
|
115
|
+
publishedAgentCount: agents.length,
|
|
116
|
+
});
|
|
117
|
+
for (const agent of agents) {
|
|
118
|
+
const schedule = this.getScheduleIntegration(agent);
|
|
119
|
+
if (!schedule?.active) {
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
try {
|
|
123
|
+
await this.registerOrRefresh(agent);
|
|
124
|
+
}
|
|
125
|
+
catch (error) {
|
|
126
|
+
this.logger.error('[AgentScheduleService] Failed to reconnect agent schedule', {
|
|
127
|
+
agentId: agent.id,
|
|
128
|
+
error: error instanceof Error ? error.message : String(error),
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
async applyConfig(agent) {
|
|
134
|
+
const schedule = this.getScheduleIntegration(agent);
|
|
135
|
+
if (schedule?.active) {
|
|
136
|
+
await this.registerOrRefresh(agent);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
this.deregister(agent.id);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
async registerOrRefresh(agent) {
|
|
143
|
+
const schedule = this.getScheduleIntegration(agent);
|
|
144
|
+
if (!schedule?.active) {
|
|
145
|
+
this.logger.debug('[AgentScheduleService] Skipping schedule registration for inactive agent', {
|
|
146
|
+
agentId: agent.id,
|
|
147
|
+
projectId: agent.projectId,
|
|
148
|
+
});
|
|
149
|
+
this.deregister(agent.id);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (!agent.publishedVersion) {
|
|
153
|
+
this.logger.warn('[AgentScheduleService] Skipping schedule registration for unpublished agent', {
|
|
154
|
+
agentId: agent.id,
|
|
155
|
+
projectId: agent.projectId,
|
|
156
|
+
});
|
|
157
|
+
this.deregister(agent.id);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
this.assertCronExpressionIsValid(schedule.cronExpression);
|
|
161
|
+
this.deregister(agent.id);
|
|
162
|
+
const timezone = this.globalConfig.generic.timezone;
|
|
163
|
+
const job = new cron_1.CronJob(schedule.cronExpression, () => {
|
|
164
|
+
void this.runScheduled(agent.id);
|
|
165
|
+
}, null, false, timezone);
|
|
166
|
+
job.start();
|
|
167
|
+
this.jobs.set(agent.id, job);
|
|
168
|
+
this.logger.info('[AgentScheduleService] Registered schedule trigger', {
|
|
169
|
+
agentId: agent.id,
|
|
170
|
+
projectId: agent.projectId,
|
|
171
|
+
cronExpression: schedule.cronExpression,
|
|
172
|
+
timezone,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
deregister(agentId) {
|
|
176
|
+
const existing = this.jobs.get(agentId);
|
|
177
|
+
if (!existing) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
void existing.stop();
|
|
181
|
+
this.jobs.delete(agentId);
|
|
182
|
+
this.logger.info('[AgentScheduleService] Deregistered schedule trigger', { agentId });
|
|
183
|
+
}
|
|
184
|
+
stopAll() {
|
|
185
|
+
for (const [agentId] of this.jobs) {
|
|
186
|
+
this.deregister(agentId);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
getScheduleIntegration(agent) {
|
|
190
|
+
return (agent.integrations ?? []).find(api_types_1.isAgentScheduleIntegration);
|
|
191
|
+
}
|
|
192
|
+
async saveScheduleIntegration(agent, schedule) {
|
|
193
|
+
agent.integrations = [
|
|
194
|
+
...(agent.integrations ?? []).filter((integration) => !(0, api_types_1.isAgentScheduleIntegration)(integration)),
|
|
195
|
+
schedule,
|
|
196
|
+
];
|
|
197
|
+
return await this.agentRepository.save(agent);
|
|
198
|
+
}
|
|
199
|
+
assertCronExpressionIsValid(cronExpression) {
|
|
200
|
+
if (!(0, cron_validation_1.isValidCronExpression)(cronExpression)) {
|
|
201
|
+
throw new bad_request_error_1.BadRequestError('Invalid cron expression');
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
async runScheduled(agentId) {
|
|
205
|
+
let projectId;
|
|
206
|
+
let threadId;
|
|
207
|
+
let cronExpression;
|
|
208
|
+
const startedAt = Date.now();
|
|
209
|
+
try {
|
|
210
|
+
const agent = await this.agentRepository.findOne({
|
|
211
|
+
where: { id: agentId },
|
|
212
|
+
relations: { publishedVersion: true },
|
|
213
|
+
});
|
|
214
|
+
if (!agent) {
|
|
215
|
+
this.logger.warn('[AgentScheduleService] Scheduled trigger fired for missing agent', {
|
|
216
|
+
agentId,
|
|
217
|
+
});
|
|
218
|
+
this.deregister(agentId);
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
projectId = agent.projectId;
|
|
222
|
+
const schedule = this.getScheduleIntegration(agent);
|
|
223
|
+
cronExpression = schedule?.cronExpression;
|
|
224
|
+
if (!agent.publishedVersion) {
|
|
225
|
+
this.logger.warn('[AgentScheduleService] Scheduled trigger fired for unpublished agent', {
|
|
226
|
+
agentId,
|
|
227
|
+
projectId,
|
|
228
|
+
});
|
|
229
|
+
this.deregister(agentId);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (!schedule?.active) {
|
|
233
|
+
this.logger.warn('[AgentScheduleService] Scheduled trigger fired for inactive agent', {
|
|
234
|
+
agentId,
|
|
235
|
+
projectId,
|
|
236
|
+
});
|
|
237
|
+
this.deregister(agentId);
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
const executionUserId = await this.resolveExecutionUserId(agent);
|
|
241
|
+
if (!executionUserId) {
|
|
242
|
+
this.logger.warn('[AgentScheduleService] No project member available for scheduled run', {
|
|
243
|
+
agentId,
|
|
244
|
+
projectId: agent.projectId,
|
|
245
|
+
});
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
threadId = `schedule-${agentId}-${(0, crypto_1.randomUUID)()}`;
|
|
249
|
+
const timezone = this.globalConfig.generic.timezone;
|
|
250
|
+
const timestamp = luxon_1.DateTime.now().setZone(timezone).toISO() ?? new Date().toISOString();
|
|
251
|
+
const message = `${schedule.wakeUpPrompt}\n\nCurrent date and time: ${timestamp} (timezone: ${timezone})`;
|
|
252
|
+
this.logger.info('[AgentScheduleService] Scheduled trigger fired', {
|
|
253
|
+
agentId,
|
|
254
|
+
projectId,
|
|
255
|
+
threadId,
|
|
256
|
+
cronExpression: schedule.cronExpression,
|
|
257
|
+
timezone,
|
|
258
|
+
});
|
|
259
|
+
this.logger.debug('[AgentScheduleService] Starting scheduled agent run', {
|
|
260
|
+
agentId,
|
|
261
|
+
projectId,
|
|
262
|
+
threadId,
|
|
263
|
+
messageLength: message.length,
|
|
264
|
+
});
|
|
265
|
+
let chunkCount = 0;
|
|
266
|
+
for await (const _chunk of this.agentsService.executeForSchedulePublished({
|
|
267
|
+
agentId: agent.id,
|
|
268
|
+
projectId: agent.projectId,
|
|
269
|
+
message,
|
|
270
|
+
memory: { threadId, resourceId: executionUserId },
|
|
271
|
+
})) {
|
|
272
|
+
chunkCount += 1;
|
|
273
|
+
}
|
|
274
|
+
this.logger.info('[AgentScheduleService] Scheduled agent run completed', {
|
|
275
|
+
agentId,
|
|
276
|
+
projectId,
|
|
277
|
+
threadId,
|
|
278
|
+
chunkCount,
|
|
279
|
+
durationMs: Date.now() - startedAt,
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
catch (error) {
|
|
283
|
+
this.logger.error('[AgentScheduleService] Scheduled agent run failed', {
|
|
284
|
+
agentId,
|
|
285
|
+
projectId,
|
|
286
|
+
threadId,
|
|
287
|
+
cronExpression,
|
|
288
|
+
error: error instanceof Error ? error.message : String(error),
|
|
289
|
+
stack: error instanceof Error ? error.stack : undefined,
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
async resolveExecutionUserId(agent) {
|
|
294
|
+
const userIds = await this.projectRelationRepository.findUserIdsByProjectId(agent.projectId);
|
|
295
|
+
if (userIds.length === 0) {
|
|
296
|
+
return undefined;
|
|
297
|
+
}
|
|
298
|
+
const publishedById = agent.publishedVersion?.publishedById;
|
|
299
|
+
if (publishedById && userIds.includes(publishedById)) {
|
|
300
|
+
return publishedById;
|
|
301
|
+
}
|
|
302
|
+
return undefined;
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
exports.AgentScheduleService = AgentScheduleService;
|
|
306
|
+
__decorate([
|
|
307
|
+
(0, decorators_1.OnLeaderTakeover)(),
|
|
308
|
+
__metadata("design:type", Function),
|
|
309
|
+
__metadata("design:paramtypes", []),
|
|
310
|
+
__metadata("design:returntype", Promise)
|
|
311
|
+
], AgentScheduleService.prototype, "reconnectAll", null);
|
|
312
|
+
__decorate([
|
|
313
|
+
(0, decorators_1.OnLeaderStepdown)(),
|
|
314
|
+
(0, decorators_1.OnShutdown)(),
|
|
315
|
+
__metadata("design:type", Function),
|
|
316
|
+
__metadata("design:paramtypes", []),
|
|
317
|
+
__metadata("design:returntype", void 0)
|
|
318
|
+
], AgentScheduleService.prototype, "stopAll", null);
|
|
319
|
+
exports.AgentScheduleService = AgentScheduleService = __decorate([
|
|
320
|
+
(0, di_1.Service)(),
|
|
321
|
+
__metadata("design:paramtypes", [backend_common_1.Logger,
|
|
322
|
+
config_1.GlobalConfig,
|
|
323
|
+
agent_repository_1.AgentRepository,
|
|
324
|
+
agents_service_1.AgentsService,
|
|
325
|
+
db_1.ProjectRelationRepository])
|
|
326
|
+
], AgentScheduleService);
|
|
327
|
+
//# sourceMappingURL=agent-schedule.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-schedule.service.js","sourceRoot":"","sources":["../../../../src/modules/agents/integrations/agent-schedule.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAMwB;AACxB,gCAAoD;AACpD,wDAA6C;AAC7C,wCAA2C;AAC3C,gDAAiF;AACjF,gCAAkC;AAClC,+BAA+B;AAC/B,mCAAoC;AACpC,iCAAiC;AAEjC,kFAA6E;AAC7E,4EAAwE;AAExE,sDAAkD;AAElD,uEAAmE;AACnE,uDAA0D;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAGhC,YACkB,MAAc,EACd,YAA0B,EAC1B,eAAgC,EAChC,aAA4B,EAC5B,yBAAoD;QAJpD,WAAM,GAAN,MAAM,CAAQ;QACd,iBAAY,GAAZ,YAAY,CAAc;QAC1B,oBAAe,GAAf,eAAe,CAAiB;QAChC,kBAAa,GAAb,aAAa,CAAe;QAC5B,8BAAyB,GAAzB,yBAAyB,CAA2B;QAP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CAAC;IAEO,KAAK,CAAC,sBAAsB,CAAC,KAAY;QAChD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,sBAAsB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC7F,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,OAAO,SAAS,CAAC;QAClB,CAAC;QAED,MAAM,aAAa,GAAG,KAAK,CAAC,gBAAgB,EAAE,aAAa,CAAC;QAC5D,IAAI,aAAa,IAAI,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;YACtD,OAAO,aAAa,CAAC;QACtB,CAAC;QAED,OAAO,SAAS,CAAC;IAClB,CAAC;CACD,CAAA;AAjWY,oDAAoB;AAgH1B;IADL,IAAA,6BAAgB,GAAE;;;;wDAsBlB;AAgFD;IAFC,IAAA,6BAAgB,GAAE;IAClB,IAAA,uBAAU,GAAE;;;;mDAKZ;+BAzNW,oBAAoB;IADhC,IAAA,YAAO,GAAE;qCAKiB,uBAAM;QACA,qBAAY;QACT,kCAAe;QACjB,8BAAa;QACD,8BAAyB;GAR1D,oBAAoB,CAiWhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface CallbackPayload {
|
|
2
|
+
actionId: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class CallbackStore {
|
|
6
|
+
private readonly entries;
|
|
7
|
+
constructor(ttlMs?: number);
|
|
8
|
+
store(actionId: string, value: string): Promise<string>;
|
|
9
|
+
resolve(key: string): Promise<CallbackPayload | undefined>;
|
|
10
|
+
dispose(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallbackStore = void 0;
|
|
4
|
+
const node_crypto_1 = require("node:crypto");
|
|
5
|
+
const ttl_map_1 = require("../../../utils/ttl-map");
|
|
6
|
+
class CallbackStore {
|
|
7
|
+
constructor(ttlMs = 60 * 60 * 1000) {
|
|
8
|
+
this.entries = new ttl_map_1.TtlMap(ttlMs);
|
|
9
|
+
}
|
|
10
|
+
async store(actionId, value) {
|
|
11
|
+
let key;
|
|
12
|
+
do {
|
|
13
|
+
key = (0, node_crypto_1.randomBytes)(4).toString('hex');
|
|
14
|
+
} while (this.entries.has(key));
|
|
15
|
+
this.entries.set(key, { actionId, value });
|
|
16
|
+
return key;
|
|
17
|
+
}
|
|
18
|
+
async resolve(key) {
|
|
19
|
+
const entry = this.entries.get(key);
|
|
20
|
+
if (!entry)
|
|
21
|
+
return undefined;
|
|
22
|
+
this.entries.delete(key);
|
|
23
|
+
return entry;
|
|
24
|
+
}
|
|
25
|
+
dispose() {
|
|
26
|
+
this.entries.dispose();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.CallbackStore = CallbackStore;
|
|
30
|
+
//# sourceMappingURL=callback-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callback-store.js","sourceRoot":"","sources":["../../../../src/modules/agents/integrations/callback-store.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,6CAAyC;AAezC,MAAa,aAAa;IAGzB,YAAY,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI;QACjC,IAAI,CAAC,OAAO,GAAG,IAAI,gBAAM,CAA0B,KAAK,CAAC,CAAC;IAC3D,CAAC;IAGD,KAAK,CAAC,KAAK,CAAC,QAAgB,EAAE,KAAa;QAC1C,IAAI,GAAW,CAAC;QAChB,GAAG,CAAC;YACH,GAAG,GAAG,IAAA,yBAAW,EAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC,QAAQ,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAC3C,OAAO,GAAG,CAAC;IACZ,CAAC;IAGD,KAAK,CAAC,OAAO,CAAC,GAAW;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAC7B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACzB,OAAO,KAAK,CAAC;IACd,CAAC;IAGD,OAAO;QACN,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;CACD;AA7BD,sCA6BC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type AgentCredentialIntegration, type AgentIntegrationStatusResponse } from '@n8n/api-types';
|
|
2
|
+
import { Logger } from '@n8n/backend-common';
|
|
3
|
+
import { GlobalConfig } from '@n8n/config';
|
|
4
|
+
import { InstanceSettings } from 'n8n-core';
|
|
5
|
+
import { CredentialsFinderService } from '../../../credentials/credentials-finder.service';
|
|
6
|
+
import { CredentialsService } from '../../../credentials/credentials.service';
|
|
7
|
+
import type { PubSubCommandMap } from '../../../scaling/pubsub/pubsub.event-map';
|
|
8
|
+
import { Publisher } from '../../../scaling/pubsub/publisher.service';
|
|
9
|
+
import { UrlService } from '../../../services/url.service';
|
|
10
|
+
import { ChatIntegrationRegistry } from './agent-chat-integration';
|
|
11
|
+
import type { Agent } from '../entities/agent.entity';
|
|
12
|
+
import { AgentRepository } from '../repositories/agent.repository';
|
|
13
|
+
type WebhookHandler = (request: Request, options?: {
|
|
14
|
+
waitUntil?: (task: Promise<unknown>) => void;
|
|
15
|
+
}) => Promise<Response>;
|
|
16
|
+
interface ChatInstance {
|
|
17
|
+
initialize(): Promise<void>;
|
|
18
|
+
shutdown(): Promise<void>;
|
|
19
|
+
webhooks: Record<string, WebhookHandler>;
|
|
20
|
+
onNewMention: (handler: unknown) => void;
|
|
21
|
+
onSubscribedMessage: (handler: unknown) => void;
|
|
22
|
+
onAction: (handler: unknown) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare class ChatIntegrationService {
|
|
25
|
+
private readonly logger;
|
|
26
|
+
private readonly agentRepository;
|
|
27
|
+
private readonly credentialsService;
|
|
28
|
+
private readonly credentialsFinderService;
|
|
29
|
+
private readonly urlService;
|
|
30
|
+
private readonly integrationRegistry;
|
|
31
|
+
private readonly instanceSettings;
|
|
32
|
+
private readonly publisher;
|
|
33
|
+
private readonly globalConfig;
|
|
34
|
+
private readonly connections;
|
|
35
|
+
constructor(logger: Logger, agentRepository: AgentRepository, credentialsService: CredentialsService, credentialsFinderService: CredentialsFinderService, urlService: UrlService, integrationRegistry: ChatIntegrationRegistry, instanceSettings: InstanceSettings, publisher: Publisher, globalConfig: GlobalConfig);
|
|
36
|
+
broadcastIntegrationChange(agentId: string, type: string, credentialId: string, action: 'connect' | 'disconnect'): Promise<void>;
|
|
37
|
+
private connectionKey;
|
|
38
|
+
private connectionTypeFromKey;
|
|
39
|
+
connect(agentId: string, credentialId: string, integrationType: string, userId: string, projectId: string, options?: {
|
|
40
|
+
skipExternalHooks?: boolean;
|
|
41
|
+
}): Promise<void>;
|
|
42
|
+
disconnect(agentId: string, type?: string, credentialId?: string): Promise<void>;
|
|
43
|
+
disconnectAll(): Promise<void>;
|
|
44
|
+
disconnectLeaderOnlyIntegrations(): Promise<void>;
|
|
45
|
+
syncToConfig(agent: Agent, previous: AgentCredentialIntegration[], next: AgentCredentialIntegration[]): Promise<void>;
|
|
46
|
+
getStatus(agentId: string): AgentIntegrationStatusResponse & {
|
|
47
|
+
connections: number;
|
|
48
|
+
};
|
|
49
|
+
getChatInstance(agentId: string): ChatInstance | undefined;
|
|
50
|
+
getWebhookHandler(agentId: string, platform: string): WebhookHandler | undefined;
|
|
51
|
+
reconnectAll(): Promise<void>;
|
|
52
|
+
handleIntegrationChanged(payload: PubSubCommandMap['agent-chat-integration-changed']): Promise<void>;
|
|
53
|
+
private disconnectOne;
|
|
54
|
+
private resolveUser;
|
|
55
|
+
private decryptCredential;
|
|
56
|
+
private buildWebhookUrl;
|
|
57
|
+
}
|
|
58
|
+
export {};
|