n8n 2.44.3 → 2.45.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/activation-errors.service.d.ts +1 -1
- package/dist/active-executions.js +1 -1
- package/dist/active-executions.js.map +1 -1
- package/dist/active-workflow-manager.d.ts +1 -1
- package/dist/agent-library-bundle.js +5 -0
- package/dist/auth/auth.service.d.ts +1 -2
- package/dist/auth/auth.service.js +1 -2
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/execute-batch.js +1 -1
- package/dist/commands/execute-batch.js.map +1 -1
- package/dist/commands/execute.js +1 -1
- package/dist/commands/execute.js.map +1 -1
- package/dist/commands/start.js +1 -4
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/webhook.js +2 -2
- package/dist/commands/webhook.js.map +1 -1
- package/dist/commands/worker.js +2 -2
- package/dist/commands/worker.js.map +1 -1
- package/dist/controllers/debug.controller.d.ts +1 -1
- package/dist/controllers/e2e.controller.js +1 -0
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.d.ts +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +15 -3
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +1 -2
- package/dist/controllers/users.controller.js +1 -2
- package/dist/controllers/users.controller.js.map +1 -1
- package/dist/credentials/credential-data-merge.d.ts +7 -0
- package/dist/credentials/credential-data-merge.js +55 -0
- package/dist/credentials/credential-data-merge.js.map +1 -0
- package/dist/credentials/credential-dependency.service.d.ts +1 -1
- package/dist/credentials/credential-dependency.service.js +4 -4
- package/dist/credentials/credential-dependency.service.js.map +1 -1
- package/dist/credentials/credentials.controller.js +6 -2
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +5 -1
- package/dist/credentials/credentials.service.js +11 -3
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials/pending-authorization-cleanup.task.d.ts +2 -3
- package/dist/credentials/pending-authorization-cleanup.task.js +6 -6
- package/dist/credentials/pending-authorization-cleanup.task.js.map +1 -1
- package/dist/deprecation/deprecation.service.js +24 -0
- package/dist/deprecation/deprecation.service.js.map +1 -1
- package/dist/evaluation.ee/evaluation-dataset.service.d.ts +2 -5
- package/dist/evaluation.ee/evaluation-dataset.service.js +3 -11
- package/dist/evaluation.ee/evaluation-dataset.service.js.map +1 -1
- package/dist/eventbus/event-message-classes/event-message-mcp.d.ts +1 -1
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +3 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.d.ts +2 -3
- package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.js +1 -5
- package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +18 -2
- package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
- package/dist/events/relays/log-streaming.event-relay.js +39 -0
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.js +15 -3
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +1 -2
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution.service.d.ts +1 -2
- package/dist/executions/execution.service.js +1 -2
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/idempotency/idempotency-request.d.ts +29 -0
- package/dist/idempotency/idempotency-request.js +125 -0
- package/dist/idempotency/idempotency-request.js.map +1 -0
- package/dist/idempotency/idempotency.middleware.d.ts +7 -0
- package/dist/idempotency/idempotency.middleware.js +80 -0
- package/dist/idempotency/idempotency.middleware.js.map +1 -0
- package/dist/idempotency/idempotency.types.d.ts +21 -0
- package/dist/{modules/quick-connect/handlers/handler.interface.js → idempotency/idempotency.types.js} +1 -1
- package/dist/idempotency/idempotency.types.js.map +1 -0
- package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js +3 -0
- package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js.map +1 -1
- package/dist/jwks/jwks.controller.d.ts +1 -1
- package/dist/jwks/jwks.controller.js +4 -4
- package/dist/jwks/jwks.controller.js.map +1 -1
- package/dist/license/license-renewal.task.d.ts +2 -6
- package/dist/license/license-renewal.task.js +10 -8
- package/dist/license/license-renewal.task.js.map +1 -1
- package/dist/load-nodes-and-credentials.d.ts +1 -0
- package/dist/load-nodes-and-credentials.js +16 -1
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/modules/agents/adapters/agents-credential-provider.js +1 -0
- package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
- package/dist/modules/agents/agent-channel-media-retention.task.d.ts +15 -0
- package/dist/modules/agents/agent-channel-media-retention.task.js +64 -0
- package/dist/modules/agents/agent-channel-media-retention.task.js.map +1 -0
- package/dist/modules/agents/agent-chat-attachment.service.d.ts +4 -0
- package/dist/modules/agents/agent-chat-attachment.service.js +15 -0
- package/dist/modules/agents/agent-chat-attachment.service.js.map +1 -1
- package/dist/modules/agents/agent-chat-execution.service.d.ts +2 -1
- package/dist/modules/agents/agent-chat-execution.service.js +19 -10
- package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-chat-relay.service.d.ts +31 -0
- package/dist/modules/agents/agent-chat-relay.service.js +164 -0
- package/dist/modules/agents/agent-chat-relay.service.js.map +1 -0
- package/dist/modules/agents/agent-chat.controller.d.ts +5 -9
- package/dist/modules/agents/agent-chat.controller.js +18 -150
- package/dist/modules/agents/agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/agent-checkpoint-pruning.task.d.ts +2 -5
- package/dist/modules/agents/agent-checkpoint-pruning.task.js +10 -8
- package/dist/modules/agents/agent-checkpoint-pruning.task.js.map +1 -1
- package/dist/modules/agents/agent-config-preparation.service.d.ts +10 -13
- package/dist/modules/agents/agent-config.service.d.ts +1 -3
- package/dist/modules/agents/agent-config.service.js +8 -7
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-definition.service.d.ts +1 -1
- package/dist/modules/agents/agent-definition.service.js +11 -6
- package/dist/modules/agents/agent-definition.service.js.map +1 -1
- package/dist/modules/agents/agent-dependency-index.listener.js +5 -0
- package/dist/modules/agents/agent-dependency-index.listener.js.map +1 -1
- package/dist/modules/agents/agent-dependency-index.service.d.ts +1 -0
- package/dist/modules/agents/agent-dependency-index.service.js +7 -0
- package/dist/modules/agents/agent-dependency-index.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +4 -4
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.js +4 -0
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-management.service.d.ts +5 -5
- package/dist/modules/agents/agent-integration-management.service.js +1 -1
- package/dist/modules/agents/agent-integration-management.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-persistence.service.d.ts +3 -3
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.d.ts +2 -3
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.js +4 -6
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.js.map +1 -1
- package/dist/modules/agents/agent-message-queue-consumer.service.js +1 -1
- package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
- package/dist/modules/agents/agent-message-queue.service.js +14 -6
- package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
- package/dist/modules/agents/agent-modification-telemetry.service.d.ts +13 -13
- package/dist/modules/agents/agent-publish.controller.d.ts +8 -0
- package/dist/modules/agents/agent-publish.service.d.ts +6 -7
- package/dist/modules/agents/agent-publish.service.js +17 -28
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-runnable-state.service.d.ts +3 -0
- package/dist/modules/agents/agent-runnable-state.service.js +8 -2
- package/dist/modules/agents/agent-runnable-state.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +5 -2
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +35 -8
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-skill-refs.service.d.ts +38 -6
- package/dist/modules/agents/agent-skill-refs.service.js +245 -18
- package/dist/modules/agents/agent-skill-refs.service.js.map +1 -1
- package/dist/modules/agents/agent-skills.service.d.ts +12 -13
- package/dist/modules/agents/agent-skills.service.js +211 -123
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-task.service.js +6 -5
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-teams-integrations.controller.d.ts +47 -3
- package/dist/modules/agents/agent-teams-integrations.controller.js +225 -3
- package/dist/modules/agents/agent-teams-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.d.ts +1 -0
- package/dist/modules/agents/agent-validation.service.js +17 -2
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-whatsapp-integrations.controller.d.ts +22 -0
- package/dist/modules/agents/agent-whatsapp-integrations.controller.js +74 -0
- package/dist/modules/agents/agent-whatsapp-integrations.controller.js.map +1 -0
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +1 -0
- package/dist/modules/agents/agent-workflow-execution.service.js +56 -23
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +10 -13
- package/dist/modules/agents/agents-skills.controller.d.ts +2 -2
- package/dist/modules/agents/agents-skills.controller.js +6 -5
- package/dist/modules/agents/agents-skills.controller.js.map +1 -1
- package/dist/modules/agents/agents-tools.service.js +12 -8
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +4 -0
- package/dist/modules/agents/agents.module.d.ts +3 -2
- package/dist/modules/agents/agents.module.js +25 -2
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +7 -6
- package/dist/modules/agents/agents.service.js +10 -8
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/background/agent-wake.service.js.map +1 -1
- package/dist/modules/agents/budget-guardrail.d.ts +2 -4
- package/dist/modules/agents/budget-guardrail.js +29 -10
- package/dist/modules/agents/budget-guardrail.js.map +1 -1
- package/dist/modules/agents/builder/agent-builder-session-context.d.ts +1 -0
- package/dist/modules/agents/builder/agent-builder-session-context.js +16 -0
- package/dist/modules/agents/builder/agent-builder-session-context.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js +4 -4
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +4 -0
- package/dist/modules/agents/builder/agents-builder-tools.service.js +166 -33
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-tool-names.d.ts +17 -14
- package/dist/modules/agents/builder/builder-tool-names.js +18 -14
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/call-agent-failure.js +2 -2
- package/dist/modules/agents/builder/call-agent-failure.js.map +1 -1
- package/dist/modules/agents/builder/get-resource-locator-options.tool.js +7 -5
- package/dist/modules/agents/builder/get-resource-locator-options.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +5 -3
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-questions.tool.js +2 -1
- package/dist/modules/agents/builder/interactive/ask-questions.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js +1 -0
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/finish-setup.tool.d.ts +21 -0
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js +81 -12
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +6 -5
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +27 -18
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +2 -2
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/initial-build.prompt.d.ts +1 -2
- package/dist/modules/agents/builder/prompts/initial-build.prompt.js +2 -70
- package/dist/modules/agents/builder/prompts/initial-build.prompt.js.map +1 -1
- package/dist/modules/agents/builder/skills/config.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/config.skill.js +14 -0
- package/dist/modules/agents/builder/skills/config.skill.js.map +1 -0
- package/dist/modules/agents/builder/skills/custom-tools.skill.js +14 -10
- package/dist/modules/agents/builder/skills/custom-tools.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/external-services.skill.js +81 -63
- package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/index.js +11 -1
- package/dist/modules/agents/builder/skills/index.js.map +1 -1
- package/dist/modules/agents/builder/skills/memory.skill.js +14 -14
- package/dist/modules/agents/builder/skills/memory.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/node-tools.skill.js +25 -22
- package/dist/modules/agents/builder/skills/node-tools.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/resource-locators.skill.js +32 -30
- package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/sub-agents.skill.js +14 -5
- package/dist/modules/agents/builder/skills/sub-agents.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +46 -41
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +33 -33
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
- package/dist/modules/agents/builder/verify-mcp-server.tool.js +13 -4
- package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
- package/dist/modules/agents/entities/agent-skill-dependency.entity.d.ts +6 -0
- package/dist/modules/agents/entities/agent-skill-dependency.entity.js +34 -0
- package/dist/modules/agents/entities/agent-skill-dependency.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-version-skill-dependency.entity.d.ts +6 -0
- package/dist/modules/agents/entities/agent-version-skill-dependency.entity.js +35 -0
- package/dist/modules/agents/entities/agent-version-skill-dependency.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent.entity.d.ts +9 -2
- package/dist/modules/agents/entities/agent.entity.js +14 -4
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/entities/skill-file.entity.d.ts +6 -0
- package/dist/modules/agents/entities/skill-file.entity.js +33 -0
- package/dist/modules/agents/entities/skill-file.entity.js.map +1 -0
- package/dist/modules/agents/entities/skill-version.entity.d.ts +13 -0
- package/dist/modules/agents/entities/skill-version.entity.js +59 -0
- package/dist/modules/agents/entities/skill-version.entity.js.map +1 -0
- package/dist/modules/agents/entities/skill.entity.d.ts +9 -0
- package/dist/modules/agents/entities/skill.entity.js +43 -0
- package/dist/modules/agents/entities/skill.entity.js.map +1 -0
- package/dist/modules/agents/instance-ai-agent-context.adapter.d.ts +3 -1
- package/dist/modules/agents/instance-ai-agent-context.adapter.js +12 -5
- package/dist/modules/agents/instance-ai-agent-context.adapter.js.map +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.d.ts +7 -5
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +55 -92
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-channel-reconciler.service.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +1 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.js +29 -4
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +16 -2
- package/dist/modules/agents/integrations/agent-chat-integration.js +9 -1
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-credential-lookup.service.js +1 -0
- package/dist/modules/agents/integrations/agent-credential-lookup.service.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +3 -3
- package/dist/modules/agents/integrations/chat-integration.service.js +4 -2
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.js +15 -2
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-error-codes.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-error-codes.js +1 -0
- package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -1
- package/dist/modules/agents/integrations/integrations-sync.d.ts +2 -2
- package/dist/modules/agents/integrations/integrations-sync.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/assets/n8n-bot-icon.png +0 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.d.ts +2 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.js +2 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.d.ts +3 -3
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-admin-consent.d.ts +5 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-admin-consent.js +23 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-admin-consent.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.d.ts +15 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js +136 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-arm-template.service.d.ts +2 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-arm-template.service.js +3 -4
- package/dist/modules/agents/integrations/platforms/teams/teams-arm-template.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-arm.service.d.ts +14 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-arm.service.js +83 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-arm.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.d.ts +39 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.js +202 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.d.ts +51 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.js +241 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-cleanup.service.d.ts +13 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-cleanup.service.js +43 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-cleanup.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-check.service.d.ts +3 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-check.service.js +65 -24
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-check.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-notes.service.d.ts +11 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-notes.service.js +58 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-notes.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.d.ts +36 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js +318 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph-permissions.d.ts +4 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph-permissions.js +10 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph-permissions.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.d.ts +19 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.js +128 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.d.ts +17 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js +63 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.d.ts +28 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.js +146 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.d.ts +23 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.js +155 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.d.ts +3 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js +18 -8
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-message-files.d.ts +18 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-message-files.js +174 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-message-files.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.d.ts +7 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.js +175 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.d.ts +20 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.js +68 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-setup.service.d.ts +15 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-setup.service.js +77 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-setup.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.d.ts +17 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.js +148 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{whatsapp-integration.d.ts → whatsapp/whatsapp-integration.d.ts} +17 -7
- package/dist/modules/agents/integrations/platforms/{whatsapp-integration.js → whatsapp/whatsapp-integration.js} +48 -12
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-webhook-verification.store.d.ts +11 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-webhook-verification.store.js +58 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-webhook-verification.store.js.map +1 -0
- package/dist/modules/agents/json-config/agent-document.d.ts +1 -0
- package/dist/modules/agents/json-config/agent-document.js +5 -0
- package/dist/modules/agents/json-config/agent-document.js.map +1 -1
- package/dist/modules/agents/json-config/credential-field-mapping.js +11 -2
- package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.js +5 -6
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.d.ts +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.js +16 -69
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
- package/dist/modules/agents/json-config/model-config.js.map +1 -1
- package/dist/modules/agents/json-config/prune-missing-config-references.d.ts +1 -1
- package/dist/modules/agents/json-config/prune-missing-config-references.js +0 -4
- package/dist/modules/agents/json-config/prune-missing-config-references.js.map +1 -1
- package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.d.ts +4 -0
- package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.js +31 -4
- package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.js.map +1 -1
- package/dist/modules/agents/plans/agent-plan-tools.d.ts +50 -1
- package/dist/modules/agents/plans/agent-plan-tools.js +122 -9
- package/dist/modules/agents/plans/agent-plan-tools.js.map +1 -1
- package/dist/modules/agents/plans/agent-plan-work-state.d.ts +36 -0
- package/dist/modules/agents/plans/agent-plan-work-state.js +13 -0
- package/dist/modules/agents/plans/agent-plan-work-state.js.map +1 -0
- package/dist/modules/agents/plans/agent-plan.validation.d.ts +2 -1
- package/dist/modules/agents/plans/agent-plan.validation.js +6 -4
- package/dist/modules/agents/plans/agent-plan.validation.js.map +1 -1
- package/dist/modules/agents/register-favorite-resolver.js +1 -1
- package/dist/modules/agents/register-favorite-resolver.js.map +1 -1
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.d.ts +4 -0
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.js +7 -0
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +16 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +63 -0
- 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 +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-message-queue.repository.d.ts +4 -0
- package/dist/modules/agents/repositories/agent-message-queue.repository.js +6 -1
- package/dist/modules/agents/repositories/agent-message-queue.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-thread-grant.repository.d.ts +1 -0
- package/dist/modules/agents/repositories/agent-thread-grant.repository.js +3 -0
- package/dist/modules/agents/repositories/agent-thread-grant.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-workflow-dependency.repository.js +1 -1
- package/dist/modules/agents/repositories/agent-workflow-dependency.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent.repository.d.ts +22 -14
- package/dist/modules/agents/repositories/agent.repository.js +159 -40
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/repositories/skill.repository.d.ts +98 -0
- package/dist/modules/agents/repositories/skill.repository.js +569 -0
- package/dist/modules/agents/repositories/skill.repository.js.map +1 -0
- package/dist/modules/agents/scheduling/agent-task-job-registrar.js.map +1 -1
- package/dist/modules/agents/skills/skill-content-hash.d.ts +13 -0
- package/dist/modules/agents/skills/skill-content-hash.js +31 -0
- package/dist/modules/agents/skills/skill-content-hash.js.map +1 -0
- package/dist/modules/agents/skills/skill-name-taken.error.d.ts +6 -0
- package/dist/modules/agents/skills/skill-name-taken.error.js +18 -0
- package/dist/modules/agents/skills/skill-name-taken.error.js.map +1 -0
- package/dist/modules/agents/skills/skill-names.d.ts +3 -0
- package/dist/modules/agents/skills/skill-names.js +32 -0
- package/dist/modules/agents/skills/skill-names.js.map +1 -0
- package/dist/modules/agents/skills/skill.service.d.ts +82 -0
- package/dist/modules/agents/skills/skill.service.js +368 -0
- package/dist/modules/agents/skills/skill.service.js.map +1 -0
- package/dist/modules/agents/skills/skills-api.service.d.ts +28 -0
- package/dist/modules/agents/skills/skills-api.service.js +249 -0
- package/dist/modules/agents/skills/skills-api.service.js.map +1 -0
- package/dist/modules/agents/skills/skills-hub-rollout.d.ts +10 -0
- package/dist/modules/agents/skills/skills-hub-rollout.js +35 -0
- package/dist/modules/agents/skills/skills-hub-rollout.js.map +1 -0
- package/dist/modules/agents/skills/skills-hub-startup-copy.d.ts +40 -0
- package/dist/modules/agents/skills/skills-hub-startup-copy.js +402 -0
- package/dist/modules/agents/skills/skills-hub-startup-copy.js.map +1 -0
- package/dist/modules/agents/skills/skills-telemetry.d.ts +21 -0
- package/dist/modules/agents/skills/skills-telemetry.js +98 -0
- package/dist/modules/agents/skills/skills-telemetry.js.map +1 -0
- package/dist/modules/agents/skills.controller.d.ts +19 -0
- package/dist/modules/agents/skills.controller.js +106 -0
- package/dist/modules/agents/skills.controller.js.map +1 -0
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +6 -0
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-runner.d.ts +2 -1
- package/dist/modules/agents/sub-agents/sub-agent-runner.js +23 -4
- package/dist/modules/agents/sub-agents/sub-agent-runner.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js +9 -6
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.js +4 -0
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/policy-refusal.d.ts +8 -0
- package/dist/modules/agents/tools/policy-refusal.js +9 -0
- package/dist/modules/agents/tools/policy-refusal.js.map +1 -0
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +1 -0
- package/dist/modules/agents/tools/workflow-tool-factory.js +106 -52
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.d.ts +1 -1
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js +2 -2
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js.map +1 -1
- package/dist/modules/agents/types/agent-queued-message.d.ts +4 -1
- package/dist/modules/agents/types/agent-queued-message.js +1 -1
- package/dist/modules/agents/types/agent-queued-message.js.map +1 -1
- package/dist/modules/agents/utils/agent-definition.d.ts +15 -17
- package/dist/modules/agents/utils/agent-definition.js +2 -2
- package/dist/modules/agents/utils/agent-definition.js.map +1 -1
- package/dist/modules/agents/utils/agent-memory-scope.d.ts +2 -0
- package/dist/modules/agents/utils/agent-memory-scope.js +12 -0
- package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
- package/dist/modules/agents/utils/agent-missing-skill-ids.js +0 -2
- package/dist/modules/agents/utils/agent-missing-skill-ids.js.map +1 -1
- package/dist/modules/agents/utils/agent-published-snapshot.d.ts +6 -4
- package/dist/modules/agents/utils/agent-published-snapshot.js +2 -3
- package/dist/modules/agents/utils/agent-published-snapshot.js.map +1 -1
- package/dist/modules/agents/utils/agent-runtime-assets.d.ts +3 -2
- package/dist/modules/agents/utils/agent-runtime-assets.js +2 -2
- package/dist/modules/agents/utils/agent-runtime-assets.js.map +1 -1
- package/dist/modules/agents/utils/agent-thread-access.d.ts +3 -1
- package/dist/modules/agents/utils/agent-thread-access.js +16 -4
- package/dist/modules/agents/utils/agent-thread-access.js.map +1 -1
- package/dist/modules/agents/utils/get-agent-or-throw.d.ts +2 -2
- package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +5 -2
- package/dist/modules/breaking-changes/breaking-changes.controller.js +16 -2
- package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
- package/dist/modules/breaking-changes/breaking-changes.module.d.ts +1 -1
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.d.ts +6 -6
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js +31 -21
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js.map +1 -1
- package/dist/modules/breaking-changes/migrations/index.js +2 -2
- package/dist/modules/breaking-changes/migrations/index.js.map +1 -1
- package/dist/modules/breaking-changes/migrations/node-migration.d.ts +1 -0
- package/dist/modules/breaking-changes/migrations/node-migration.js +17 -0
- package/dist/modules/breaking-changes/migrations/node-migration.js.map +1 -1
- package/dist/modules/breaking-changes/migrations/node-removals/ai-transform-to-code.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/ai-transform-to-code.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.d.ts +3 -0
- package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.js +79 -0
- package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.js +40 -0
- package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.js +17 -0
- package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/index.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/index.js +32 -0
- package/dist/modules/breaking-changes/migrations/node-removals/index.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.d.ts +4 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.js +46 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.d.ts +10 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.js +252 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.js +85 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.js +28 -0
- package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.js +91 -0
- package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.d.ts +7 -0
- package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.js +133 -0
- package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.js +26 -0
- package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.js +27 -0
- package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/parameter-readers.d.ts +10 -0
- package/dist/modules/breaking-changes/migrations/parameter-readers.js +51 -0
- package/dist/modules/breaking-changes/migrations/parameter-readers.js.map +1 -0
- package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.d.ts +20 -0
- package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.js +136 -0
- package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.js.map +1 -0
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js +3 -2
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
- package/dist/modules/breaking-changes/sync/migration-finding-diff.js +2 -2
- package/dist/modules/breaking-changes/sync/migration-finding-diff.js.map +1 -1
- package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js +1 -1
- package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-extractor.d.ts +1 -1
- package/dist/modules/chat-hub/chat-hub-extractor.js +2 -2
- package/dist/modules/chat-hub/chat-hub-extractor.js.map +1 -1
- package/dist/modules/data-table/data-table-file-cleanup.task.d.ts +2 -3
- package/dist/modules/data-table/data-table-file-cleanup.task.js +1 -5
- package/dist/modules/data-table/data-table-file-cleanup.task.js.map +1 -1
- package/dist/modules/data-table/data-table-permissions.d.ts +2 -0
- package/dist/modules/data-table/data-table-permissions.js +6 -0
- package/dist/modules/data-table/data-table-permissions.js.map +1 -1
- package/dist/modules/data-table/data-table-proxy.service.d.ts +0 -1
- package/dist/modules/data-table/data-table-proxy.service.js +8 -17
- package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
- package/dist/modules/data-table/data-table.controller.d.ts +0 -1
- package/dist/modules/data-table/data-table.controller.js +7 -17
- package/dist/modules/data-table/data-table.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +2 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.d.ts +2 -3
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js +1 -5
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js.map +1 -1
- package/dist/modules/inbound-auth-core/authentication-pipeline.js +7 -0
- package/dist/modules/inbound-auth-core/authentication-pipeline.js.map +1 -1
- package/dist/modules/inbound-auth-core/constants.d.ts +42 -0
- package/dist/modules/inbound-auth-core/constants.js +24 -0
- package/dist/modules/inbound-auth-core/constants.js.map +1 -0
- package/dist/modules/inbound-auth-core/grant-authorization.d.ts +2 -2
- package/dist/modules/inbound-auth-core/grant-authorization.js.map +1 -1
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.d.ts +1 -1
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js +2 -2
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js.map +1 -1
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.d.ts +3 -0
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.js +32 -10
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.js.map +1 -1
- package/dist/modules/inbound-auth-core/local-authorization-server.proxy.d.ts +15 -0
- package/dist/modules/inbound-auth-core/local-authorization-server.proxy.js +47 -0
- package/dist/modules/inbound-auth-core/local-authorization-server.proxy.js.map +1 -0
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.d.ts +3 -2
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js +7 -2
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js.map +1 -1
- package/dist/modules/inbound-auth-core/public-api-oauth.strategy.d.ts +16 -0
- package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js +71 -0
- package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js.map +1 -0
- package/dist/modules/inbound-auth-core/public-api-protected-resource.d.ts +21 -0
- package/dist/modules/inbound-auth-core/public-api-protected-resource.js +51 -0
- package/dist/modules/inbound-auth-core/public-api-protected-resource.js.map +1 -0
- package/dist/modules/inbound-auth-core/resource-admission.d.ts +12 -0
- package/dist/modules/inbound-auth-core/resource-admission.js +65 -0
- package/dist/modules/inbound-auth-core/resource-admission.js.map +1 -0
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.d.ts +0 -42
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js +7 -26
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js.map +1 -1
- package/dist/modules/inbound-auth-core/trusted-source-directory.service.d.ts +7 -0
- package/dist/modules/inbound-auth-core/trusted-source-directory.service.js +32 -0
- package/dist/modules/inbound-auth-core/trusted-source-directory.service.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source-discovery.task.d.ts +2 -3
- package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js +1 -2
- package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js.map +1 -1
- package/dist/modules/inbound-auth-core/trusted-source.controller.d.ts +27 -0
- package/dist/modules/inbound-auth-core/trusted-source.controller.js +190 -0
- package/dist/modules/inbound-auth-core/trusted-source.controller.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source.store.d.ts +1 -0
- package/dist/modules/inbound-auth-core/trusted-source.store.js +6 -3
- package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
- package/dist/modules/inbox/inbox-source.registry.d.ts +39 -0
- package/dist/modules/inbox/inbox-source.registry.js +64 -0
- package/dist/modules/inbox/inbox-source.registry.js.map +1 -0
- package/dist/modules/inbox/inbox.controller.d.ts +10 -0
- package/dist/modules/{quick-connect/quick-connect.controller.js → inbox/inbox.controller.js} +26 -17
- package/dist/modules/inbox/inbox.controller.js.map +1 -0
- package/dist/modules/inbox/inbox.module.d.ts +4 -0
- package/dist/modules/{workflow-builder/workflow-builder.module.js → inbox/inbox.module.js} +9 -10
- package/dist/modules/inbox/inbox.module.js.map +1 -0
- package/dist/modules/inbox/inbox.service.d.ts +17 -0
- package/dist/modules/inbox/inbox.service.js +184 -0
- package/dist/modules/inbox/inbox.service.js.map +1 -0
- package/dist/modules/instance-ai/agent-preview-handoff.js +1 -1
- package/dist/modules/instance-ai/agent-preview-handoff.js.map +1 -1
- package/dist/modules/instance-ai/agents-access.d.ts +2 -0
- package/dist/modules/instance-ai/agents-access.js +9 -0
- package/dist/modules/instance-ai/agents-access.js.map +1 -0
- package/dist/modules/instance-ai/conversation-history-content.d.ts +3 -2
- package/dist/modules/instance-ai/conversation-history-content.js +8 -2
- package/dist/modules/instance-ai/conversation-history-content.js.map +1 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.js +14 -7
- package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +11 -10
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-utils.js +2 -0
- package/dist/modules/instance-ai/eval/mock-utils.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.d.ts +8 -0
- package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js +10 -0
- package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.js +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +6 -6
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/durable-event-log.d.ts +1 -0
- package/dist/modules/instance-ai/event-bus/durable-event-log.js +65 -7
- package/dist/modules/instance-ai/event-bus/durable-event-log.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +2 -5
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +10 -8
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-conversation-history.service.js +1 -1
- package/dist/modules/instance-ai/instance-ai-conversation-history.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +1 -11
- package/dist/modules/instance-ai/instance-ai-credit.service.js +9 -52
- package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-model.service.d.ts +9 -2
- package/dist/modules/instance-ai/instance-ai-model.service.js +35 -6
- package/dist/modules/instance-ai/instance-ai-model.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.d.ts +2 -0
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.js +2 -1
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-run-pin-data.js +1 -1
- package/dist/modules/instance-ai/instance-ai-run-pin-data.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +1 -2
- package/dist/modules/instance-ai/instance-ai-settings.service.js +5 -18
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-skills.service.d.ts +26 -0
- package/dist/modules/instance-ai/instance-ai-skills.service.js +63 -0
- package/dist/modules/instance-ai/instance-ai-skills.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +17 -15
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +13 -15
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +7 -1
- package/dist/modules/instance-ai/instance-ai.controller.js +19 -0
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -2
- package/dist/modules/instance-ai/instance-ai.module.js +9 -1
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +3 -3
- package/dist/modules/instance-ai/instance-ai.service.js +52 -73
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-context.service.js +3 -3
- package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
- package/dist/modules/instance-ai/internal-messages.js +5 -5
- package/dist/modules/instance-ai/internal-messages.js.map +1 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +2 -5
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +8 -26
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -1
- package/dist/modules/instance-ai/model-config-name.d.ts +5 -0
- package/dist/modules/instance-ai/model-config-name.js +25 -0
- package/dist/modules/instance-ai/model-config-name.js.map +1 -0
- package/dist/modules/instance-ai/onboarding.d.ts +0 -2
- package/dist/modules/instance-ai/onboarding.js +1 -14
- package/dist/modules/instance-ai/onboarding.js.map +1 -1
- package/dist/modules/instance-ai/repositories/conversation-history-search.d.ts +5 -1
- package/dist/modules/instance-ai/repositories/conversation-history-search.js +10 -5
- package/dist/modules/instance-ai/repositories/conversation-history-search.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-conversation-history.repository.js +2 -2
- package/dist/modules/instance-ai/repositories/instance-ai-conversation-history.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +11 -0
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.d.ts +0 -1
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js +0 -10
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js.map +1 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.d.ts +2 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +4 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.d.ts +42 -2
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +63 -2
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.d.ts +10 -3
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +30 -2
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -1
- package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.d.ts +2 -4
- package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.js +4 -7
- package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.js.map +1 -1
- package/dist/modules/instance-registry/instance-registry-heartbeat.task.d.ts +2 -3
- package/dist/modules/instance-registry/instance-registry-heartbeat.task.js +1 -5
- package/dist/modules/instance-registry/instance-registry-heartbeat.task.js.map +1 -1
- package/dist/modules/instance-registry/instance-registry.module.js +1 -1
- package/dist/modules/instance-registry/instance-registry.module.js.map +1 -1
- package/dist/modules/instance-registry/stale-member-cleanup.task.d.ts +2 -3
- package/dist/modules/instance-registry/stale-member-cleanup.task.js +1 -2
- package/dist/modules/instance-registry/stale-member-cleanup.task.js.map +1 -1
- package/dist/modules/instance-reporting.ee/instance-reporting.task.d.ts +2 -4
- package/dist/modules/instance-reporting.ee/instance-reporting.task.js +4 -7
- package/dist/modules/instance-reporting.ee/instance-reporting.task.js.map +1 -1
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.d.ts +4 -0
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js +20 -11
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js.map +1 -1
- package/dist/modules/log-streaming.ee/log-streaming.controller.js +12 -1
- package/dist/modules/log-streaming.ee/log-streaming.controller.js.map +1 -1
- package/dist/modules/mcp/mcp-api-key.service.d.ts +2 -3
- package/dist/modules/mcp/mcp-api-key.service.js +3 -3
- package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
- package/dist/modules/mcp/mcp-protected-resource.d.ts +2 -2
- package/dist/modules/mcp/mcp-protected-resource.js +5 -3
- package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
- package/dist/modules/mcp/mcp-scopes.d.ts +1 -0
- package/dist/modules/mcp/mcp-scopes.js +7 -1
- package/dist/modules/mcp/mcp-scopes.js.map +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.d.ts +2 -2
- package/dist/modules/mcp/mcp-server-middleware.service.js +3 -3
- package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
- package/dist/modules/mcp/mcp-tool-availability.d.ts +1 -0
- package/dist/modules/mcp/mcp-tool-availability.js +4 -0
- package/dist/modules/mcp/mcp-tool-availability.js.map +1 -1
- package/dist/modules/mcp/mcp.module.js +1 -1
- package/dist/modules/mcp/mcp.module.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +1 -3
- package/dist/modules/mcp/mcp.service.js +5 -3
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.js +12 -8
- package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-slack-setup.d.ts +5 -5
- package/dist/modules/mcp/tools/agents/agent-slack-setup.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +24 -9
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/get-execution.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/skills/skill-tools.service.d.ts +11 -0
- package/dist/modules/mcp/tools/skills/skill-tools.service.js +242 -0
- package/dist/modules/mcp/tools/skills/skill-tools.service.js.map +1 -0
- package/dist/modules/mcp/tools/tool-result.utils.d.ts +8 -0
- package/dist/modules/mcp/tools/tool-result.utils.js +11 -0
- package/dist/modules/mcp/tools/tool-result.utils.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-auth-fetch.d.ts +15 -0
- package/dist/modules/mcp-registry/mcp-auth-fetch.js +64 -0
- package/dist/modules/mcp-registry/mcp-auth-fetch.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-connection-discovery.service.d.ts +23 -0
- package/dist/modules/mcp-registry/mcp-connection-discovery.service.js +219 -0
- package/dist/modules/mcp-registry/mcp-connection-discovery.service.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-registry-refresh.task.d.ts +2 -3
- package/dist/modules/mcp-registry/mcp-registry-refresh.task.js +4 -6
- package/dist/modules/mcp-registry/mcp-registry-refresh.task.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-response.d.ts +3 -0
- package/dist/modules/mcp-registry/mcp-registry-response.js +35 -0
- package/dist/modules/mcp-registry/mcp-registry-response.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-registry.controller.d.ts +6 -2
- package/dist/modules/mcp-registry/mcp-registry.controller.js +25 -28
- package/dist/modules/mcp-registry/mcp-registry.controller.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mock-servers.js +3 -3
- package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
- package/dist/modules/modules.manifest.js +2 -0
- package/dist/modules/modules.manifest.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-blocked.error.js +1 -0
- package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-gates.d.ts +6 -0
- package/dist/modules/n8n-packages/engine/import-gates.js +8 -0
- package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +20 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.js +3 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +3 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +38 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/package-layout.d.ts +10 -2
- package/dist/modules/n8n-packages/engine/package-layout.js +26 -0
- package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.js +29 -4
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +19 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.js +6 -0
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.d.ts +20 -0
- package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js +98 -0
- package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js +16 -2
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +7 -3
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js +95 -5
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +3 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +14 -4
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +13 -2
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +2 -1
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +2 -1
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +39 -3
- package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js +2 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +16 -2
- package/dist/modules/n8n-packages/n8n-packages.types.js +6 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +133 -164
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +3 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +1 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.d.ts +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe-jwks.provider.d.ts +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.module.d.ts +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.module.js +4 -5
- package/dist/modules/oauth-jwe/oauth-jwe.module.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.schemas.js +3 -3
- package/dist/modules/oauth-jwe/oauth-jwe.schemas.js.map +1 -1
- package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.d.ts +1 -0
- package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js +3 -0
- package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js.map +1 -1
- package/dist/modules/oauth-server/dto/approve-consent-request.dto.d.ts +3 -1
- package/dist/modules/oauth-server/dto/approve-consent-request.dto.js +8 -1
- package/dist/modules/oauth-server/dto/approve-consent-request.dto.js.map +1 -1
- package/dist/modules/oauth-server/oauth-consent.controller.d.ts +5 -1
- package/dist/modules/oauth-server/oauth-consent.controller.js +15 -14
- package/dist/modules/oauth-server/oauth-consent.controller.js.map +1 -1
- package/dist/modules/oauth-server/oauth-consent.service.d.ts +1 -1
- package/dist/modules/oauth-server/oauth-consent.service.js +2 -2
- package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-flow.service.d.ts +23 -9
- package/dist/modules/oauth-server/oauth-flow.service.js +279 -43
- package/dist/modules/oauth-server/oauth-flow.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-local-authorization-server.d.ts +5 -2
- package/dist/modules/oauth-server/oauth-local-authorization-server.js +8 -3
- package/dist/modules/oauth-server/oauth-local-authorization-server.js.map +1 -1
- package/dist/modules/oauth-server/oauth-server.module.js +6 -6
- package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
- package/dist/modules/oauth-server/oauth-server.service.d.ts +1 -1
- package/dist/modules/oauth-server/oauth-server.service.js +8 -6
- package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-session.service.d.ts +13 -7
- package/dist/modules/oauth-server/oauth-session.service.js +48 -13
- package/dist/modules/oauth-server/oauth-session.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-signing-jwks.provider.d.ts +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.schemas.js +2 -2
- package/dist/modules/oauth-server/oauth-signing-key.schemas.js.map +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.service.d.ts +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.service.js +2 -2
- package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-token.service.d.ts +2 -4
- package/dist/modules/oauth-server/oauth-token.service.js +2 -3
- package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth.controller.d.ts +4 -2
- package/dist/modules/oauth-server/oauth.controller.js +41 -8
- package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
- package/dist/modules/oauth-server/oauth.helpers.d.ts +1 -0
- package/dist/modules/oauth-server/oauth.helpers.js +14 -0
- package/dist/modules/oauth-server/oauth.helpers.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.d.ts +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.d.ts +7 -5
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.d.ts +7 -5
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/index.js +9 -9
- package/dist/modules/oauth-server/protected-resource-resolvers/index.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.d.ts +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.js +8 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.d.ts +3 -3
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.d.ts +3 -3
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.d.ts +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.d.ts +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/resource-gate.d.ts +1 -1
- package/dist/modules/oauth-server/resource-gate.js.map +1 -1
- package/dist/modules/oauth-server/resource-identity.d.ts +1 -1
- package/dist/modules/promotions.ee/constants.d.ts +1 -1
- package/dist/modules/promotions.ee/constants.js +1 -1
- package/dist/modules/promotions.ee/constants.js.map +1 -1
- package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.d.ts +3 -2
- package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.js.map +1 -1
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.d.ts +21 -0
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js +95 -0
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js.map +1 -0
- package/dist/modules/promotions.ee/database/entities/promotion-run.entity.d.ts +18 -0
- package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js +82 -0
- package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js.map +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.d.ts +2 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js +6 -2
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js.map +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.d.ts +18 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js +61 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js.map +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.d.ts +9 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js +33 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-target.d.ts +30 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-target.js +97 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-target.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/git-host.types.d.ts +12 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.d.ts +4 -1
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +73 -6
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.d.ts +1 -0
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.js +12 -0
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-config.resolver.js +3 -5
- package/dist/modules/promotions.ee/promotion-config.resolver.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-connections.service.d.ts +1 -0
- package/dist/modules/promotions.ee/promotion-connections.service.js +39 -12
- package/dist/modules/promotions.ee/promotion-connections.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-providers.service.d.ts +13 -0
- package/dist/modules/promotions.ee/promotion-providers.service.js +28 -0
- package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions-git.service.d.ts +3 -0
- package/dist/modules/promotions.ee/promotions-git.service.js +30 -4
- package/dist/modules/promotions.ee/promotions-git.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.module.d.ts +1 -1
- package/dist/modules/promotions.ee/promotions.module.js +10 -1
- package/dist/modules/promotions.ee/promotions.module.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.service.d.ts +0 -1
- package/dist/modules/promotions.ee/promotions.service.js +45 -19
- package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.module.js +1 -1
- package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +1 -0
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +14 -2
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/provisioning.ee/role-mapping-provider.ee.d.ts +1 -1
- package/dist/modules/provisioning.ee/role-resolver-types.d.ts +1 -1
- package/dist/modules/redaction/dynamic-credentials-context-hook.d.ts +1 -1
- package/dist/modules/redaction/dynamic-credentials-context-hook.js +2 -2
- package/dist/modules/redaction/dynamic-credentials-context-hook.js.map +1 -1
- package/dist/modules/redaction/executions/execution-redaction.interfaces.d.ts +3 -1
- package/dist/modules/redaction/executions/execution-redaction.service.d.ts +4 -2
- package/dist/modules/redaction/executions/execution-redaction.service.js +35 -11
- package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
- package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.d.ts +1 -1
- package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js +6 -1
- package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js.map +1 -1
- package/dist/modules/redaction/executions/strategies/node-defined-field-redaction.strategy.d.ts +1 -1
- package/dist/modules/redaction/redaction.module.js +2 -2
- package/dist/modules/redaction/redaction.module.js.map +1 -1
- package/dist/modules/runtime-credentials/runtime-credentials-access.service.d.ts +1 -1
- package/dist/modules/runtime-credentials/runtime-credentials.module.js +2 -2
- package/dist/modules/runtime-credentials/runtime-credentials.module.js.map +1 -1
- package/dist/modules/scim/database/scim-api-key.repository.js +2 -2
- package/dist/modules/scim/database/scim-api-key.repository.js.map +1 -1
- package/dist/modules/scim/database/scim-user.repository.d.ts +23 -0
- package/dist/modules/scim/database/scim-user.repository.js +53 -0
- package/dist/modules/scim/database/scim-user.repository.js.map +1 -0
- package/dist/modules/scim/scim-body-parser.d.ts +2 -0
- package/dist/modules/scim/scim-body-parser.js +19 -0
- package/dist/modules/scim/scim-body-parser.js.map +1 -0
- package/dist/modules/scim/scim-discovery.controller.js +84 -7
- package/dist/modules/scim/scim-discovery.controller.js.map +1 -1
- package/dist/modules/scim/scim-route.js +2 -1
- package/dist/modules/scim/scim-route.js.map +1 -1
- package/dist/modules/scim/scim-token.service.d.ts +1 -2
- package/dist/modules/scim/scim-token.service.js +1 -2
- package/dist/modules/scim/scim-token.service.js.map +1 -1
- package/dist/modules/scim/scim.controller.d.ts +19 -0
- package/dist/modules/scim/scim.controller.js +163 -0
- package/dist/modules/scim/scim.controller.js.map +1 -0
- package/dist/modules/scim/scim.errors.d.ts +13 -0
- package/dist/modules/scim/scim.errors.js +29 -0
- package/dist/modules/scim/scim.errors.js.map +1 -0
- package/dist/modules/scim/scim.module.js +1 -0
- package/dist/modules/scim/scim.module.js.map +1 -1
- package/dist/modules/scim/scim.service.d.ts +38 -0
- package/dist/modules/scim/scim.service.js +329 -0
- package/dist/modules/scim/scim.service.js.map +1 -0
- package/dist/modules/source-control.ee/source-control-git.service.ee.js +2 -0
- package/dist/modules/source-control.ee/source-control-git.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-helper.ee.js +6 -51
- package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +3 -2
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +59 -13
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -0
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +2 -0
- package/dist/modules/source-control.ee/source-control.service.ee.js +6 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.service.ee.d.ts +1 -2
- package/dist/modules/sso-oidc/oidc.service.ee.js +1 -2
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
- package/dist/modules/token-exchange/services/jti-cleanup.task.d.ts +2 -3
- package/dist/modules/token-exchange/services/jti-cleanup.task.js +1 -2
- package/dist/modules/token-exchange/services/jti-cleanup.task.js.map +1 -1
- package/dist/modules/token-exchange/services/scoped-jwt.strategy.d.ts +2 -2
- package/dist/modules/token-exchange/services/scoped-jwt.strategy.js +2 -2
- package/dist/modules/token-exchange/services/scoped-jwt.strategy.js.map +1 -1
- package/dist/modules/token-exchange/services/token-exchange.service.d.ts +1 -1
- package/dist/modules/token-exchange/services/token-exchange.service.js +2 -2
- package/dist/modules/token-exchange/services/token-exchange.service.js.map +1 -1
- package/dist/modules/token-exchange/services/trusted-key-refresh.task.d.ts +2 -3
- package/dist/modules/token-exchange/services/trusted-key-refresh.task.js +1 -2
- package/dist/modules/token-exchange/services/trusted-key-refresh.task.js.map +1 -1
- package/dist/modules/token-exchange/token-exchange.module.js +1 -1
- package/dist/modules/token-exchange/token-exchange.module.js.map +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.d.ts +5 -7
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js +13 -1
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js.map +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy-project.controller.d.ts +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy.check.js +3 -14
- package/dist/modules/type-availability-policies/credential-type-policy.check.js.map +1 -1
- package/dist/modules/type-availability-policies/node-type-policy.check.js +2 -13
- package/dist/modules/type-availability-policies/node-type-policy.check.js.map +1 -1
- package/dist/modules/type-availability-policies/package-resolver.d.ts +2 -0
- package/dist/modules/type-availability-policies/package-resolver.js +17 -0
- package/dist/modules/type-availability-policies/package-resolver.js.map +1 -1
- package/dist/modules/type-availability-policies/policy-rule-lint.d.ts +14 -0
- package/dist/modules/type-availability-policies/policy-rule-lint.js +19 -0
- package/dist/modules/type-availability-policies/policy-rule-lint.js.map +1 -0
- package/dist/modules/type-availability-policies/policy-shadow-lint.d.ts +1 -0
- package/dist/modules/type-availability-policies/policy-shadow-lint.js +1 -1
- package/dist/modules/type-availability-policies/policy-shadow-lint.js.map +1 -1
- package/dist/modules/type-availability-policies/restricted-node-types.provider.d.ts +1 -1
- package/dist/modules/type-availability-policies/type-availability-policies.module.js +2 -2
- package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.d.ts +5 -7
- package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js +13 -1
- package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js.map +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy-project.controller.d.ts +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy.service.d.ts +10 -7
- package/dist/modules/type-availability-policies/type-availability-policy.service.js +39 -36
- package/dist/modules/type-availability-policies/type-availability-policy.service.js.map +1 -1
- package/dist/modules/type-availability-policies/type-violation.d.ts +10 -0
- package/dist/modules/type-availability-policies/type-violation.js +29 -0
- package/dist/modules/type-availability-policies/type-violation.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.d.ts +5 -5
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +12 -32
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.d.ts +1 -2
- package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.d.ts +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.d.ts +1 -3
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js +0 -21
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +12 -4
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.d.ts +2 -0
- package/dist/node-execution/ephemeral-node-executor.js +21 -6
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +3 -1
- package/dist/oauth/oauth.service.js +30 -3
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/output-schema-parameter-defaults.d.ts +7 -0
- package/dist/output-schema-parameter-defaults.js +23 -0
- package/dist/output-schema-parameter-defaults.js.map +1 -0
- package/dist/policy/policy-violation.error.d.ts +1 -0
- package/dist/policy/policy-violation.error.js +12 -0
- package/dist/policy/policy-violation.error.js.map +1 -1
- package/dist/public-api/idempotency-key-cleanup.task.d.ts +2 -3
- package/dist/public-api/idempotency-key-cleanup.task.js +6 -6
- package/dist/public-api/idempotency-key-cleanup.task.js.map +1 -1
- package/dist/public-api/idempotency-key.service.d.ts +9 -1
- package/dist/public-api/idempotency-key.service.js +41 -0
- package/dist/public-api/idempotency-key.service.js.map +1 -1
- package/dist/public-api/index.js +14 -138
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/media-types/request-body/multipart-parser.js.map +1 -1
- package/dist/public-api/public-api-controller.registry.d.ts +12 -2
- package/dist/public-api/public-api-controller.registry.js +98 -12
- package/dist/public-api/public-api-controller.registry.js.map +1 -1
- package/dist/public-api/public-api-rate-limit.service.d.ts +17 -0
- package/dist/public-api/public-api-rate-limit.service.js +127 -0
- package/dist/public-api/public-api-rate-limit.service.js.map +1 -0
- package/dist/public-api/public-api-route-resolver.d.ts +0 -3
- package/dist/public-api/public-api-route-resolver.js +0 -19
- package/dist/public-api/public-api-route-resolver.js.map +1 -1
- package/dist/public-api/types.d.ts +1 -66
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.d.ts +1 -0
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js +54 -29
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/credentials.public.controller.d.ts +3 -1
- package/dist/public-api/v1/controllers/credentials.public.controller.js +22 -3
- package/dist/public-api/v1/controllers/credentials.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/executions.public.controller.d.ts +1 -2
- package/dist/public-api/v1/controllers/executions.public.controller.js +3 -5
- package/dist/public-api/v1/controllers/executions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/log-streaming.mapper.d.ts +3 -3
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.d.ts +3 -1
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.js +95 -2
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.d.ts +1 -0
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +54 -29
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.d.ts +5 -1
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js +29 -2
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js.map +1 -1
- package/dist/public-api/v1/controllers/promotions.public.controller.d.ts +4 -1
- package/dist/public-api/v1/controllers/promotions.public.controller.js +70 -4
- package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/source-control.public.controller.d.ts +2 -2
- package/dist/public-api/v1/controllers/source-control.public.controller.js +3 -2
- package/dist/public-api/v1/controllers/source-control.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +2 -2
- package/dist/public-api/v1/controllers/workflows.public.controller.js +13 -2
- package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
- package/dist/public-api/v1/handlers/discover/discover.service.js +7 -86
- package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.js +15 -5
- package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/generate.d.ts +1 -1
- package/dist/public-api/v1/openapi-gen/generate.js +28 -47
- package/dist/public-api/v1/openapi-gen/generate.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +3915 -3646
- package/dist/public-api/v1/public-api-error-response.d.ts +1 -2
- package/dist/public-api/v1/public-api-error-response.js +46 -2
- package/dist/public-api/v1/public-api-error-response.js.map +1 -1
- package/dist/requests.d.ts +6 -1
- package/dist/scaling/job-outcome-tracker.d.ts +7 -6
- package/dist/scaling/job-outcome-tracker.js +59 -38
- package/dist/scaling/job-outcome-tracker.js.map +1 -1
- package/dist/scaling/job-processor.d.ts +3 -0
- package/dist/scaling/job-processor.js +39 -0
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
- package/dist/scaling/scaling.service.d.ts +1 -1
- package/dist/scaling/scaling.service.js +8 -5
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/scaling/scaling.types.d.ts +1 -0
- package/dist/scaling/worker-status.service.ee.js +2 -2
- package/dist/scaling/worker-status.service.ee.js.map +1 -1
- package/dist/scheduling/durable-scheduler.js +3 -4
- package/dist/scheduling/durable-scheduler.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/durable-poller-chain.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-job-provider.js.map +1 -1
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.d.ts +0 -1
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js +1 -3
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js.map +1 -1
- package/dist/scheduling/system-tasks/in-memory-system-task-runner.d.ts +1 -0
- package/dist/scheduling/system-tasks/in-memory-system-task-runner.js +2 -2
- package/dist/scheduling/system-tasks/in-memory-system-task-runner.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-job-registrar.d.ts +9 -3
- package/dist/scheduling/system-tasks/system-task-job-registrar.js +16 -5
- package/dist/scheduling/system-tasks/system-task-job-registrar.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-run-observer.js +3 -3
- package/dist/scheduling/system-tasks/system-task-run-observer.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-runner.d.ts +1 -1
- package/dist/scheduling/system-tasks/system-task-runner.js +21 -21
- package/dist/scheduling/system-tasks/system-task-runner.js.map +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/services/active-workflows.service.d.ts +6 -1
- package/dist/services/active-workflows.service.js +22 -8
- package/dist/services/active-workflows.service.js.map +1 -1
- package/dist/services/ai-workflow-builder.service.d.ts +1 -1
- package/dist/services/ai-workflow-builder.service.js +2 -2
- package/dist/services/ai-workflow-builder.service.js.map +1 -1
- package/dist/services/ai.service.d.ts +0 -1
- package/dist/services/ai.service.js +0 -4
- package/dist/services/ai.service.js.map +1 -1
- package/dist/services/api-key-auth.strategy.d.ts +2 -2
- package/dist/services/api-key-auth.strategy.js +4 -4
- package/dist/services/api-key-auth.strategy.js.map +1 -1
- package/dist/services/frontend.service.d.ts +3 -1
- package/dist/services/frontend.service.js +7 -2
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
- package/dist/services/pruning/activity-pruning.task.d.ts +2 -3
- package/dist/services/pruning/activity-pruning.task.js +8 -6
- package/dist/services/pruning/activity-pruning.task.js.map +1 -1
- package/dist/services/pruning/execution-pruning-hard-delete.task.d.ts +2 -5
- package/dist/services/pruning/execution-pruning-hard-delete.task.js +9 -4
- package/dist/services/pruning/execution-pruning-hard-delete.task.js.map +1 -1
- package/dist/services/pruning/execution-pruning-soft-delete.task.d.ts +2 -4
- package/dist/services/pruning/execution-pruning-soft-delete.task.js +6 -3
- package/dist/services/pruning/execution-pruning-soft-delete.task.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction-optimize.task.d.ts +2 -4
- package/dist/services/pruning/workflow-history-compaction-optimize.task.js +6 -3
- package/dist/services/pruning/workflow-history-compaction-optimize.task.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction-trim.task.d.ts +2 -5
- package/dist/services/pruning/workflow-history-compaction-trim.task.js +7 -4
- package/dist/services/pruning/workflow-history-compaction-trim.task.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction.service.d.ts +2 -10
- package/dist/services/pruning/workflow-history-compaction.service.js +2 -46
- package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
- package/dist/services/pruning/workflow-history-pruning.task.d.ts +2 -4
- package/dist/services/pruning/workflow-history-pruning.task.js +9 -7
- package/dist/services/pruning/workflow-history-pruning.task.js.map +1 -1
- package/dist/services/public-api-key.service.d.ts +1 -1
- package/dist/services/public-api-key.service.js +2 -2
- package/dist/services/public-api-key.service.js.map +1 -1
- package/dist/services/rate-limit.service.d.ts +5 -0
- package/dist/services/rate-limit.service.js +14 -0
- package/dist/services/rate-limit.service.js.map +1 -1
- package/dist/services/session-cookie-auth.strategy.d.ts +1 -1
- package/dist/services/user.service.d.ts +1 -2
- package/dist/services/user.service.js +1 -2
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/workflow-statistics-rollup.task.d.ts +4 -5
- package/dist/services/workflow-statistics-rollup.task.js +9 -10
- package/dist/services/workflow-statistics-rollup.task.js.map +1 -1
- package/dist/services/workflow-statistics.service.d.ts +0 -1
- package/dist/services/workflow-statistics.service.js +0 -5
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/telemetry/telemetry-buffer-flush.task.d.ts +2 -3
- package/dist/telemetry/telemetry-buffer-flush.task.js +1 -5
- package/dist/telemetry/telemetry-buffer-flush.task.js.map +1 -1
- package/dist/telemetry/telemetry-pulse.task.d.ts +2 -5
- package/dist/telemetry/telemetry-pulse.task.js +7 -4
- package/dist/telemetry/telemetry-pulse.task.js.map +1 -1
- package/dist/user-management/email/node-mailer.js.map +1 -1
- package/dist/user-management/email/templates/migration-findings.handlebars +212 -0
- package/dist/user-management/email/user-management-mailer.d.ts +13 -1
- package/dist/user-management/email/user-management-mailer.js +22 -0
- package/dist/user-management/email/user-management-mailer.js.map +1 -1
- package/dist/utils/container-limits.d.ts +9 -0
- package/dist/utils/container-limits.js +59 -0
- package/dist/utils/container-limits.js.map +1 -0
- package/dist/utils/detect-runtime.d.ts +4 -0
- package/dist/utils/detect-runtime.js +27 -0
- package/dist/utils/detect-runtime.js.map +1 -0
- package/dist/utils/object-to-error.js +1 -1
- package/dist/utils/object-to-error.js.map +1 -1
- package/dist/utils.js +8 -3
- package/dist/utils.js.map +1 -1
- package/dist/wait-tracker.js +8 -0
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/hitl-interaction-webhooks.js +4 -1
- package/dist/webhooks/hitl-interaction-webhooks.js.map +1 -1
- package/dist/webhooks/live-webhooks.d.ts +1 -1
- package/dist/webhooks/live-webhooks.js +2 -2
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/test-webhook-registrations.service.d.ts +1 -1
- package/dist/webhooks/waiting-forms.js +3 -2
- package/dist/webhooks/waiting-forms.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.js +3 -0
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +43 -27
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-request-sanitizer.js +4 -2
- package/dist/webhooks/webhook-request-sanitizer.js.map +1 -1
- package/dist/webhooks/webhook.types.d.ts +2 -0
- package/dist/workflow-execute-additional-data.js +12 -9
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.js +19 -3
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.js +6 -5
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/error-workflow-validation.service.d.ts +1 -1
- package/dist/workflows/error-workflow-validation.service.js +2 -2
- package/dist/workflows/error-workflow-validation.service.js.map +1 -1
- package/dist/workflows/publication/format-node-failures.d.ts +4 -0
- package/dist/workflows/publication/format-node-failures.js +6 -0
- package/dist/workflows/publication/format-node-failures.js.map +1 -1
- package/dist/workflows/publication/publication-status-reporter.d.ts +1 -1
- package/dist/workflows/publication/publication-status-reporter.js +9 -6
- package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-applier.d.ts +1 -1
- package/dist/workflows/publication/workflow-publication-applier.js +3 -4
- package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.d.ts +2 -4
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js +7 -7
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-status.service.d.ts +2 -0
- package/dist/workflows/publication/workflow-publication-status.service.js +14 -0
- package/dist/workflows/publication/workflow-publication-status.service.js.map +1 -1
- package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +1 -2
- package/dist/workflows/triggers/trigger-execution-context.factory.js +1 -2
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
- package/dist/workflows/workflow-execution.service.d.ts +1 -2
- package/dist/workflows/workflow-execution.service.js +1 -2
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +1 -0
- package/dist/workflows/workflow-finder.service.js +2 -1
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +1 -4
- package/dist/workflows/workflow.service.ee.d.ts +8 -5
- package/dist/workflows/workflow.service.ee.js +57 -12
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +1 -4
- package/dist/workflows/workflow.service.js.map +1 -1
- package/package.json +45 -44
- package/templates/admin-consent-callback.handlebars +19 -0
- package/dist/credentials/executing-user-identifier-proxy.d.ts +0 -7
- package/dist/credentials/executing-user-identifier-proxy.js +0 -25
- package/dist/credentials/executing-user-identifier-proxy.js.map +0 -1
- package/dist/credentials/executing-user-identifier.interface.d.ts +0 -4
- package/dist/credentials/executing-user-identifier.interface.js +0 -3
- package/dist/credentials/executing-user-identifier.interface.js.map +0 -1
- package/dist/executions/execution-redaction-proxy.service.d.ts +0 -7
- package/dist/executions/execution-redaction-proxy.service.js +0 -31
- package/dist/executions/execution-redaction-proxy.service.js.map +0 -1
- package/dist/executions/execution-redaction.d.ts +0 -21
- package/dist/executions/execution-redaction.js +0 -7
- package/dist/executions/execution-redaction.js.map +0 -1
- package/dist/jwks/jwks.registry.d.ts +0 -10
- package/dist/jwks/jwks.registry.js +0 -31
- package/dist/jwks/jwks.registry.js.map +0 -1
- package/dist/jwks/jwks.schemas.d.ts +0 -178
- package/dist/jwks/jwks.schemas.js +0 -31
- package/dist/jwks/jwks.schemas.js.map +0 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +0 -16
- package/dist/modules/agents/builder/agents-builder-prompts.js +0 -425
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +0 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +0 -47
- package/dist/modules/agents/builder/agents-builder.service.js +0 -222
- package/dist/modules/agents/builder/agents-builder.service.js.map +0 -1
- package/dist/modules/agents/builder/errors.d.ts +0 -9
- package/dist/modules/agents/builder/errors.js +0 -22
- package/dist/modules/agents/builder/errors.js.map +0 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +0 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +0 -62
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +0 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +0 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.js +0 -43
- package/dist/modules/agents/builder/prompts/memory.prompt.js.map +0 -1
- package/dist/modules/agents/builder/prompts/planner-todos.prompt.d.ts +0 -2
- package/dist/modules/agents/builder/prompts/planner-todos.prompt.js +0 -22
- package/dist/modules/agents/builder/prompts/planner-todos.prompt.js.map +0 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +0 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.js +0 -102
- package/dist/modules/agents/builder/prompts/tools.prompt.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/whatsapp-integration.js.map +0 -1
- package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.d.ts +0 -2
- package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.js.map +0 -1
- package/dist/modules/data-table/middleware/branch-write-access-middleware.d.ts +0 -2
- package/dist/modules/data-table/middleware/branch-write-access-middleware.js +0 -14
- package/dist/modules/data-table/middleware/branch-write-access-middleware.js.map +0 -1
- package/dist/modules/instance-ai/eval/api-docs.d.ts +0 -1
- package/dist/modules/instance-ai/eval/api-docs.js +0 -78
- package/dist/modules/instance-ai/eval/api-docs.js.map +0 -1
- package/dist/modules/instance-ai/instance-ai-credit-display.d.ts +0 -9
- package/dist/modules/instance-ai/instance-ai-credit-display.js +0 -15
- package/dist/modules/instance-ai/instance-ai-credit-display.js.map +0 -1
- package/dist/modules/quick-connect/handlers/firecrawl.handler.d.ts +0 -13
- package/dist/modules/quick-connect/handlers/firecrawl.handler.js +0 -50
- package/dist/modules/quick-connect/handlers/firecrawl.handler.js.map +0 -1
- package/dist/modules/quick-connect/handlers/handler.interface.d.ts +0 -9
- package/dist/modules/quick-connect/handlers/handler.interface.js.map +0 -1
- package/dist/modules/quick-connect/quick-connect.config.d.ts +0 -462
- package/dist/modules/quick-connect/quick-connect.config.js +0 -72
- package/dist/modules/quick-connect/quick-connect.config.js.map +0 -1
- package/dist/modules/quick-connect/quick-connect.controller.d.ts +0 -10
- package/dist/modules/quick-connect/quick-connect.controller.js.map +0 -1
- package/dist/modules/quick-connect/quick-connect.errors.d.ts +0 -5
- package/dist/modules/quick-connect/quick-connect.errors.js +0 -12
- package/dist/modules/quick-connect/quick-connect.errors.js.map +0 -1
- package/dist/modules/quick-connect/quick-connect.module.d.ts +0 -49
- package/dist/modules/quick-connect/quick-connect.module.js +0 -36
- package/dist/modules/quick-connect/quick-connect.module.js.map +0 -1
- package/dist/modules/quick-connect/quick-connect.service.d.ts +0 -13
- package/dist/modules/quick-connect/quick-connect.service.js +0 -61
- package/dist/modules/quick-connect/quick-connect.service.js.map +0 -1
- package/dist/modules/workflow-builder/index.d.ts +0 -3
- package/dist/modules/workflow-builder/index.js +0 -10
- package/dist/modules/workflow-builder/index.js.map +0 -1
- package/dist/modules/workflow-builder/workflow-builder-session.entity.d.ts +0 -26
- package/dist/modules/workflow-builder/workflow-builder-session.entity.js +0 -72
- package/dist/modules/workflow-builder/workflow-builder-session.entity.js.map +0 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.d.ts +0 -10
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js +0 -79
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +0 -1
- package/dist/modules/workflow-builder/workflow-builder.module.d.ts +0 -4
- package/dist/modules/workflow-builder/workflow-builder.module.js.map +0 -1
- package/dist/oauth/oauth-jwe-service.proxy.d.ts +0 -19
- package/dist/oauth/oauth-jwe-service.proxy.js +0 -32
- package/dist/oauth/oauth-jwe-service.proxy.js.map +0 -1
- package/dist/public-api/v1/handlers/decorator-routed.handler.d.ts +0 -2
- package/dist/public-api/v1/handlers/decorator-routed.handler.js +0 -10
- package/dist/public-api/v1/handlers/decorator-routed.handler.js.map +0 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +0 -9
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +0 -113
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +0 -1
- package/dist/public-api/v1/shared/handler.types.d.ts +0 -9
- package/dist/public-api/v1/shared/handler.types.js +0 -3
- package/dist/public-api/v1/shared/handler.types.js.map +0 -1
- package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +0 -31
- package/dist/public-api/v1/shared/middlewares/global.middleware.js +0 -126
- package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +0 -1
- package/dist/public-api/v1/shared/public-api-scope-lookup.d.ts +0 -5
- package/dist/public-api/v1/shared/public-api-scope-lookup.js +0 -60
- package/dist/public-api/v1/shared/public-api-scope-lookup.js.map +0 -1
- package/dist/services/auth-strategy.registry.d.ts +0 -8
- package/dist/services/auth-strategy.registry.js +0 -44
- package/dist/services/auth-strategy.registry.js.map +0 -1
- package/dist/services/auth-strategy.types.d.ts +0 -10
- package/dist/services/auth-strategy.types.js +0 -3
- package/dist/services/auth-strategy.types.js.map +0 -1
- package/dist/services/instance-activation.service.d.ts +0 -10
- package/dist/services/instance-activation.service.js +0 -48
- package/dist/services/instance-activation.service.js.map +0 -1
- package/dist/services/instance-registry-proxy.service.d.ts +0 -11
- package/dist/services/instance-registry-proxy.service.js +0 -33
- package/dist/services/instance-registry-proxy.service.js.map +0 -1
- package/dist/services/jwt.service.d.ts +0 -24
- package/dist/services/jwt.service.js +0 -104
- package/dist/services/jwt.service.js.map +0 -1
- package/dist/services/oauth-token-verifier-proxy.service.d.ts +0 -33
- package/dist/services/oauth-token-verifier-proxy.service.js +0 -36
- package/dist/services/oauth-token-verifier-proxy.service.js.map +0 -1
- package/dist/services/oauth2-flow-proxy.service.d.ts +0 -13
- package/dist/services/oauth2-flow-proxy.service.js +0 -39
- package/dist/services/oauth2-flow-proxy.service.js.map +0 -1
- package/dist/services/protected-resource.registry.d.ts +0 -25
- package/dist/services/protected-resource.registry.js +0 -124
- package/dist/services/protected-resource.registry.js.map +0 -1
- package/dist/services/role-mapping-proxy.service.d.ts +0 -53
- package/dist/services/role-mapping-proxy.service.js +0 -26
- package/dist/services/role-mapping-proxy.service.js.map +0 -1
- package/dist/services/runtime-credential-proxy.service.d.ts +0 -9
- package/dist/services/runtime-credential-proxy.service.js +0 -29
- package/dist/services/runtime-credential-proxy.service.js.map +0 -1
- package/dist/services/token-purposes.d.ts +0 -21
- package/dist/services/token-purposes.js +0 -27
- package/dist/services/token-purposes.js.map +0 -1
- package/dist/workflows/restricted-node-types-provider-proxy.service.d.ts +0 -9
- package/dist/workflows/restricted-node-types-provider-proxy.service.js +0 -26
- package/dist/workflows/restricted-node-types-provider-proxy.service.js.map +0 -1
- package/dist/workflows/workflow-mutation-hooks-proxy.service.d.ts +0 -24
- package/dist/workflows/workflow-mutation-hooks-proxy.service.js +0 -38
- package/dist/workflows/workflow-mutation-hooks-proxy.service.js.map +0 -1
- package/dist/workflows/workflow-publish-guard-proxy.service.d.ts +0 -8
- package/dist/workflows/workflow-publish-guard-proxy.service.js +0 -26
- package/dist/workflows/workflow-publish-guard-proxy.service.js.map +0 -1
- package/dist/workflows/workflow-published-data.service.d.ts +0 -19
- package/dist/workflows/workflow-published-data.service.js +0 -70
- package/dist/workflows/workflow-published-data.service.js.map +0 -1
- /package/dist/modules/breaking-changes/migrations/{ai-transform-to-code.migration.js → node-removals/ai-transform-to-code.migration.js} +0 -0
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type AgentSkillAvailability, type AgentSkill, type AgentSkillMutationResponse, type SkillCreateMethod } from '@n8n/api-types';
|
|
2
2
|
import { Logger } from '@n8n/backend-common';
|
|
3
3
|
import { TransactionRunner } from '@n8n/db';
|
|
4
4
|
import { type AgentMutationTelemetryContext } from './agent-modification-telemetry.service';
|
|
5
5
|
import { AgentSaveCompletionService } from './agent-save-completion.service';
|
|
6
6
|
import { AgentSkillRefsService } from './agent-skill-refs.service';
|
|
7
|
-
import { Agent } from './entities/agent.entity';
|
|
8
7
|
import { AgentRepository } from './repositories/agent.repository';
|
|
8
|
+
import { SkillService } from './skills/skill.service';
|
|
9
|
+
import { SkillsTelemetry } from './skills/skills-telemetry';
|
|
9
10
|
import { type SkillInstructionEdit } from './utils/skill-instruction-edits';
|
|
10
11
|
export declare class AgentSkillsService {
|
|
11
12
|
private readonly logger;
|
|
12
13
|
private readonly agentRepository;
|
|
13
14
|
private readonly saveCompletion;
|
|
14
15
|
private readonly agentSkillRefs;
|
|
16
|
+
private readonly skillService;
|
|
15
17
|
private readonly transactionRunner;
|
|
16
|
-
|
|
18
|
+
private readonly skillsTelemetry;
|
|
19
|
+
constructor(logger: Logger, agentRepository: AgentRepository, saveCompletion: AgentSaveCompletionService, agentSkillRefs: AgentSkillRefsService, skillService: SkillService, transactionRunner: TransactionRunner, skillsTelemetry: SkillsTelemetry);
|
|
17
20
|
listSkills(agentId: string, projectId: string): Promise<Record<string, AgentSkill>>;
|
|
18
21
|
getSkill(agentId: string, projectId: string, skillId: string): Promise<AgentSkill>;
|
|
19
|
-
createSkill(agentId: string, projectId: string, skill: AgentSkill, context: AgentMutationTelemetryContext): Promise<AgentSkillMutationResponse>;
|
|
20
22
|
createAndAttachSkills(agentId: string, projectId: string, skills: AgentSkill[], context: AgentMutationTelemetryContext): Promise<{
|
|
21
23
|
skills: AgentSkillMutationResponse[];
|
|
22
24
|
configHash: string | null;
|
|
23
25
|
}>;
|
|
24
|
-
createAndAttachSkill(agentId: string, projectId: string, skill: AgentSkill, context: AgentMutationTelemetryContext): Promise<AgentSkillMutationResponse>;
|
|
26
|
+
createAndAttachSkill(agentId: string, projectId: string, skill: AgentSkill, context: AgentMutationTelemetryContext, availableTo?: AgentSkillAvailability, method?: SkillCreateMethod): Promise<AgentSkillMutationResponse>;
|
|
25
27
|
private createSkillsBatch;
|
|
26
|
-
updateSkill(agentId: string, projectId: string, skillId: string, updates: Partial<AgentSkill>, context: AgentMutationTelemetryContext, baseSkillHash?: string, instructionEdits?: SkillInstructionEdit[]): Promise<AgentSkillMutationResponse>;
|
|
28
|
+
updateSkill(agentId: string, projectId: string, skillId: string, updates: Partial<AgentSkill>, context: AgentMutationTelemetryContext, baseSkillHash?: string, instructionEdits?: SkillInstructionEdit[], availableTo?: AgentSkillAvailability): Promise<AgentSkillMutationResponse>;
|
|
27
29
|
deleteSkill(agentId: string, projectId: string, skillId: string, context: AgentMutationTelemetryContext): Promise<void>;
|
|
28
|
-
|
|
30
|
+
private availabilityChange;
|
|
31
|
+
private updateLegacySkill;
|
|
29
32
|
private validateSkill;
|
|
30
|
-
private
|
|
31
|
-
private
|
|
32
|
-
private normalizeSkillName;
|
|
33
|
-
private assertBatchSkillNamesAreUnique;
|
|
34
|
-
private attachSkillRef;
|
|
35
|
-
private saveSkillChanges;
|
|
33
|
+
private assertCanCreateSkills;
|
|
34
|
+
private assertNoNameClashes;
|
|
36
35
|
}
|
|
@@ -20,214 +20,302 @@ const di_1 = require("@n8n/di");
|
|
|
20
20
|
const isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
21
21
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
22
22
|
const errors_1 = require("@n8n/errors");
|
|
23
|
+
const permissions_1 = require("@n8n/permissions");
|
|
24
|
+
const check_access_1 = require("../../permissions.ee/check-access");
|
|
23
25
|
const agent_modification_telemetry_service_1 = require("./agent-modification-telemetry.service");
|
|
24
26
|
const agent_save_completion_service_1 = require("./agent-save-completion.service");
|
|
25
27
|
const agent_skill_refs_service_1 = require("./agent-skill-refs.service");
|
|
26
|
-
const
|
|
28
|
+
const agent_config_composition_1 = require("./json-config/agent-config-composition");
|
|
27
29
|
const agent_repository_1 = require("./repositories/agent.repository");
|
|
28
|
-
const
|
|
30
|
+
const skill_names_1 = require("./skills/skill-names");
|
|
31
|
+
const skill_service_1 = require("./skills/skill.service");
|
|
32
|
+
const skills_telemetry_1 = require("./skills/skills-telemetry");
|
|
29
33
|
const agent_config_hash_1 = require("./utils/agent-config-hash");
|
|
30
|
-
const
|
|
31
|
-
const
|
|
34
|
+
const agent_draft_utils_1 = require("./utils/agent-draft.utils");
|
|
35
|
+
const get_agent_or_throw_1 = require("./utils/get-agent-or-throw");
|
|
32
36
|
const skill_instruction_edits_1 = require("./utils/skill-instruction-edits");
|
|
33
37
|
let AgentSkillsService = class AgentSkillsService {
|
|
34
|
-
constructor(logger, agentRepository, saveCompletion, agentSkillRefs, transactionRunner) {
|
|
38
|
+
constructor(logger, agentRepository, saveCompletion, agentSkillRefs, skillService, transactionRunner, skillsTelemetry) {
|
|
35
39
|
this.logger = logger;
|
|
36
40
|
this.agentRepository = agentRepository;
|
|
37
41
|
this.saveCompletion = saveCompletion;
|
|
38
42
|
this.agentSkillRefs = agentSkillRefs;
|
|
43
|
+
this.skillService = skillService;
|
|
39
44
|
this.transactionRunner = transactionRunner;
|
|
45
|
+
this.skillsTelemetry = skillsTelemetry;
|
|
40
46
|
}
|
|
41
47
|
async listSkills(agentId, projectId) {
|
|
42
48
|
const entity = await (0, get_agent_or_throw_1.getAgentOrThrow)(this.agentRepository, agentId, projectId, 'Agent not found');
|
|
43
|
-
|
|
49
|
+
if (!this.agentSkillRefs.usesSkillsHub)
|
|
50
|
+
return entity.skills ?? {};
|
|
51
|
+
return (await this.agentSkillRefs.readDraft(entity, {})).skills;
|
|
44
52
|
}
|
|
45
53
|
async getSkill(agentId, projectId, skillId) {
|
|
46
54
|
const skills = await this.listSkills(agentId, projectId);
|
|
47
|
-
const skill = skills[skillId];
|
|
55
|
+
const skill = Object.hasOwn(skills, skillId) ? skills[skillId] : undefined;
|
|
48
56
|
if (!skill)
|
|
49
57
|
throw new errors_1.NotFoundError('Skill not found');
|
|
50
58
|
return skill;
|
|
51
59
|
}
|
|
52
|
-
async createSkill(agentId, projectId, skill, context) {
|
|
53
|
-
const { results } = await this.createSkillsBatch(agentId, projectId, [skill], false, context);
|
|
54
|
-
return results[0];
|
|
55
|
-
}
|
|
56
60
|
async createAndAttachSkills(agentId, projectId, skills, context) {
|
|
57
|
-
const { results, saved, skillRefs } = await this.createSkillsBatch(agentId, projectId, skills,
|
|
61
|
+
const { results, saved, skillRefs } = await this.createSkillsBatch(agentId, projectId, skills, context);
|
|
58
62
|
return {
|
|
59
63
|
skills: results,
|
|
60
64
|
configHash: (0, agent_config_hash_1.getAgentConfigHash)((0, agent_config_composition_1.composeJsonConfig)(saved, skillRefs)),
|
|
61
65
|
};
|
|
62
66
|
}
|
|
63
|
-
async createAndAttachSkill(agentId, projectId, skill, context) {
|
|
64
|
-
const { results } = await this.createSkillsBatch(agentId, projectId, [skill],
|
|
67
|
+
async createAndAttachSkill(agentId, projectId, skill, context, availableTo = 'project', method) {
|
|
68
|
+
const { results } = await this.createSkillsBatch(agentId, projectId, [skill], context, availableTo, method);
|
|
65
69
|
return results[0];
|
|
66
70
|
}
|
|
67
|
-
async createSkillsBatch(agentId, projectId, skills,
|
|
71
|
+
async createSkillsBatch(agentId, projectId, skills, context, availableTo = 'project', method) {
|
|
68
72
|
if (skills.length === 0) {
|
|
69
73
|
throw new n8n_workflow_1.UserError('At least one skill is required.');
|
|
70
74
|
}
|
|
71
75
|
const entity = await (0, get_agent_or_throw_1.getAgentOrThrow)(this.agentRepository, agentId, projectId, 'Agent not found');
|
|
72
|
-
if (
|
|
76
|
+
if (!entity.schema)
|
|
73
77
|
throw new n8n_workflow_1.UserError('Agent has no JSON config yet.');
|
|
74
|
-
|
|
75
|
-
this.validateSkill(skill);
|
|
78
|
+
const bodies = skills.map((skill) => {
|
|
79
|
+
const validated = this.validateSkill(skill);
|
|
80
|
+
return this.agentSkillRefs.usesSkillsHub
|
|
81
|
+
? (0, skill_service_1.withTrimmedName)(toStoredSkill(validated))
|
|
82
|
+
: validated;
|
|
83
|
+
});
|
|
84
|
+
if (this.agentSkillRefs.usesSkillsHub) {
|
|
85
|
+
await this.assertCanCreateSkills(context.user, entity.projectId, availableTo);
|
|
76
86
|
}
|
|
77
|
-
this.
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
const previous = await this.agentSkillRefs.readDraft(entity, {});
|
|
88
|
+
this.assertNoNameClashes(previous.skills, bodies);
|
|
89
|
+
const snapshot = (0, agent_modification_telemetry_service_1.captureAgentMutation)(entity, previous.skillRefs);
|
|
90
|
+
(0, agent_draft_utils_1.markAgentDraftDirty)(entity);
|
|
91
|
+
const { ids, skillRefs } = await this.transactionRunner.run({}, async (ctx) => {
|
|
92
|
+
await (0, agent_draft_utils_1.saveAgentDraftFenced)(this.agentRepository, entity, ctx);
|
|
93
|
+
const created = await this.agentSkillRefs.createSkills(entity, bodies, context.user.id, availableTo, ctx);
|
|
94
|
+
const nextRefs = [
|
|
95
|
+
...(previous.skillRefs ?? []),
|
|
96
|
+
...created.map((id) => ({ type: 'skill', id })),
|
|
97
|
+
];
|
|
98
|
+
await this.agentSkillRefs.replaceDraftRefs(entity, nextRefs, ctx);
|
|
99
|
+
return {
|
|
100
|
+
ids: created,
|
|
101
|
+
skillRefs: await this.agentSkillRefs.refsForDraft(entity, ctx),
|
|
102
|
+
};
|
|
91
103
|
});
|
|
104
|
+
await this.saveCompletion.bodySaved((0, agent_modification_telemetry_service_1.buildAgentMutationEvent)(entity, skillRefs, projectId, context, snapshot, { skills: true }), context.pushRef);
|
|
105
|
+
this.logger.debug('Created and attached agent skills', { agentId, projectId, skillIds: ids });
|
|
106
|
+
if (this.agentSkillRefs.usesSkillsHub) {
|
|
107
|
+
await this.skillsTelemetry.created(context.user.id, ids, telemetrySourceOf(context), telemetryMethodOf(context, method));
|
|
108
|
+
}
|
|
92
109
|
return {
|
|
93
|
-
results:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
110
|
+
results: ids.map((id, index) => ({
|
|
111
|
+
id,
|
|
112
|
+
skill: bodies[index],
|
|
113
|
+
skillHash: (0, agent_config_hash_1.getAgentSkillHash)(bodies[index]),
|
|
114
|
+
versionId: entity.versionId,
|
|
97
115
|
})),
|
|
98
|
-
saved,
|
|
116
|
+
saved: entity,
|
|
99
117
|
skillRefs,
|
|
100
118
|
};
|
|
101
119
|
}
|
|
102
|
-
async updateSkill(agentId, projectId, skillId, updates, context, baseSkillHash, instructionEdits) {
|
|
120
|
+
async updateSkill(agentId, projectId, skillId, updates, context, baseSkillHash, instructionEdits, availableTo) {
|
|
103
121
|
const entity = await (0, get_agent_or_throw_1.getAgentOrThrow)(this.agentRepository, agentId, projectId, 'Agent not found');
|
|
104
|
-
const
|
|
122
|
+
const skillRefs = (await this.agentSkillRefs.refsForDraft(entity, {})) ?? [];
|
|
123
|
+
const ref = skillRefs.find((candidate) => candidate.id === skillId);
|
|
124
|
+
const existing = !this.agentSkillRefs.usesSkillsHub
|
|
125
|
+
?
|
|
126
|
+
legacyBody(entity, skillId)
|
|
127
|
+
: ref && (await this.agentSkillRefs.skillsForRefs(entity, [ref], {}))[skillId];
|
|
105
128
|
if (!existing)
|
|
106
129
|
throw new errors_1.NotFoundError('Skill not found');
|
|
107
130
|
if (baseSkillHash !== undefined && baseSkillHash !== (0, agent_config_hash_1.getAgentSkillHash)(existing)) {
|
|
108
131
|
throw new errors_1.ConflictError('Skill was changed elsewhere; reload to get the latest version');
|
|
109
132
|
}
|
|
110
|
-
const
|
|
133
|
+
const { allowedTools, ...changes } = updates;
|
|
134
|
+
const updated = { ...existing, ...changes };
|
|
135
|
+
if (!this.agentSkillRefs.usesSkillsHub && 'allowedTools' in updates) {
|
|
136
|
+
if (allowedTools?.length)
|
|
137
|
+
updated.allowedTools = allowedTools;
|
|
138
|
+
else
|
|
139
|
+
delete updated.allowedTools;
|
|
140
|
+
}
|
|
111
141
|
if (instructionEdits?.length) {
|
|
112
142
|
if (updates.instructions !== undefined) {
|
|
113
143
|
throw new n8n_workflow_1.UserError('Pass either instructions or instructionEdits, not both.');
|
|
114
144
|
}
|
|
115
145
|
updated.instructions = (0, skill_instruction_edits_1.applySkillInstructionEdits)(existing.instructions, instructionEdits);
|
|
116
146
|
}
|
|
117
|
-
if ('allowedTools' in updates && !updates.allowedTools?.length)
|
|
118
|
-
delete updated.allowedTools;
|
|
119
147
|
if ('references' in updates && !updates.references?.length)
|
|
120
148
|
delete updated.references;
|
|
121
149
|
this.validateSkill(updated);
|
|
122
|
-
|
|
150
|
+
const nextAvailability = await this.availabilityChange(skillId, availableTo);
|
|
151
|
+
let checkedSource;
|
|
152
|
+
if (nextAvailability) {
|
|
153
|
+
await this.skillService.assertCanEdit(context.user, [skillId]);
|
|
154
|
+
checkedSource = await this.skillService.assertCanMove(context.user, skillId);
|
|
155
|
+
await this.assertCanCreateSkills(context.user, entity.projectId, nextAvailability);
|
|
156
|
+
}
|
|
123
157
|
if ((0, isEqual_1.default)(existing, updated)) {
|
|
158
|
+
if (nextAvailability) {
|
|
159
|
+
await this.agentSkillRefs.setAvailability(entity, skillId, nextAvailability, {}, {
|
|
160
|
+
checkedSource,
|
|
161
|
+
});
|
|
162
|
+
}
|
|
124
163
|
return {
|
|
125
164
|
id: skillId,
|
|
126
|
-
skill:
|
|
127
|
-
skillHash: (0, agent_config_hash_1.getAgentSkillHash)(
|
|
165
|
+
skill: existing,
|
|
166
|
+
skillHash: (0, agent_config_hash_1.getAgentSkillHash)(existing),
|
|
128
167
|
versionId: entity.versionId,
|
|
129
168
|
};
|
|
130
169
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
170
|
+
if (!this.agentSkillRefs.usesSkillsHub) {
|
|
171
|
+
return await this.updateLegacySkill(entity, skillRefs, skillId, updated, projectId, context);
|
|
172
|
+
}
|
|
173
|
+
const pinned = ref?.versionId !== undefined;
|
|
174
|
+
if (pinned) {
|
|
175
|
+
const latest = (await this.agentSkillRefs.skillsForRefs(entity, [{ type: 'skill', id: skillId }], {}))[skillId];
|
|
176
|
+
if (!latest || (0, agent_config_hash_1.getAgentSkillHash)(latest) !== (0, agent_config_hash_1.getAgentSkillHash)(existing)) {
|
|
177
|
+
throw new n8n_workflow_1.UserError('This agent uses an older version of this skill. Use the latest version first, then edit the skill. To use the latest version, remove versionId from the skill ref in the agent config.');
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
await this.skillService.assertCanEdit(context.user, [skillId]);
|
|
181
|
+
const snapshot = (0, agent_modification_telemetry_service_1.captureAgentMutation)(entity, skillRefs);
|
|
182
|
+
if (pinned)
|
|
183
|
+
(0, agent_draft_utils_1.markAgentDraftDirty)(entity);
|
|
184
|
+
const saved = await this.transactionRunner.run({}, async (ctx) => {
|
|
185
|
+
if (nextAvailability) {
|
|
186
|
+
await this.agentSkillRefs.setAvailability(entity, skillId, nextAvailability, ctx, {
|
|
187
|
+
nameAfterMove: updated.name,
|
|
188
|
+
checkedSource,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
if (pinned) {
|
|
192
|
+
await (0, agent_draft_utils_1.saveAgentDraftFenced)(this.agentRepository, entity, ctx);
|
|
193
|
+
await this.agentSkillRefs.unpinDraftRef(entity, skillId, ctx);
|
|
194
|
+
}
|
|
195
|
+
return await this.skillService.save(skillId, {
|
|
196
|
+
name: updated.name,
|
|
197
|
+
description: updated.description,
|
|
198
|
+
instructions: updated.instructions,
|
|
199
|
+
references: updated.references ?? [],
|
|
200
|
+
baseSkillHash: (0, agent_config_hash_1.getAgentSkillHash)(existing),
|
|
201
|
+
}, context.user.id, ctx);
|
|
202
|
+
});
|
|
203
|
+
await this.skillService.refreshFollowingAgents(saved.followingAgentIds.filter((id) => id !== entity.id), context.pushRef);
|
|
204
|
+
const fresh = (await this.agentRepository.findByIdAndProjectId(entity.id, projectId)) ?? entity;
|
|
205
|
+
await this.saveCompletion.bodySaved((0, agent_modification_telemetry_service_1.buildAgentMutationEvent)(fresh, await this.agentSkillRefs.refsForDraft(fresh, {}), projectId, context, snapshot, { skills: true }), context.pushRef);
|
|
206
|
+
if (saved.created) {
|
|
207
|
+
await this.skillsTelemetry.updated(context.user.id, skillId, telemetrySourceOf(context), saved.version, nextAvailability !== undefined);
|
|
208
|
+
}
|
|
209
|
+
this.logger.debug('Updated agent skill', {
|
|
210
|
+
agentId,
|
|
211
|
+
projectId,
|
|
212
|
+
skillId,
|
|
213
|
+
version: saved.version,
|
|
214
|
+
created: saved.created,
|
|
215
|
+
});
|
|
139
216
|
return {
|
|
140
217
|
id: skillId,
|
|
141
|
-
skill:
|
|
142
|
-
skillHash: (0, agent_config_hash_1.getAgentSkillHash)(
|
|
143
|
-
versionId:
|
|
218
|
+
skill: saved.skill,
|
|
219
|
+
skillHash: (0, agent_config_hash_1.getAgentSkillHash)(saved.skill),
|
|
220
|
+
versionId: fresh.versionId,
|
|
144
221
|
};
|
|
145
222
|
}
|
|
146
223
|
async deleteSkill(agentId, projectId, skillId, context) {
|
|
147
224
|
const entity = await (0, get_agent_or_throw_1.getAgentOrThrow)(this.agentRepository, agentId, projectId, 'Agent not found');
|
|
148
|
-
const skills = { ...(entity.skills ?? {}) };
|
|
149
|
-
if (!skills[skillId])
|
|
150
|
-
throw new errors_1.NotFoundError('Skill not found');
|
|
151
225
|
const previousSkillRefs = await this.agentSkillRefs.refsForDraft(entity, {});
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
entity.skills = skills;
|
|
155
|
-
await this.saveSkillChanges(entity, projectId, context, previous, previousSkillRefs, previousSkillRefs
|
|
156
|
-
? { refs: previousSkillRefs.filter((ref) => ref.id !== skillId) }
|
|
157
|
-
: undefined);
|
|
158
|
-
this.logger.debug('Deleted agent skill', { agentId, projectId, skillId });
|
|
159
|
-
}
|
|
160
|
-
removeUnreferencedSkills(entity, config) {
|
|
161
|
-
const referencedSkillIds = new Set((config.skills ?? []).map((t) => t.id));
|
|
162
|
-
const orphanSkillIds = Object.keys(entity.skills ?? {}).filter((id) => !referencedSkillIds.has(id));
|
|
163
|
-
if (orphanSkillIds.length === 0)
|
|
164
|
-
return;
|
|
165
|
-
const skills = { ...(entity.skills ?? {}) };
|
|
166
|
-
for (const id of orphanSkillIds) {
|
|
167
|
-
delete skills[id];
|
|
226
|
+
if (!previousSkillRefs?.some((ref) => ref.id === skillId)) {
|
|
227
|
+
throw new errors_1.NotFoundError('Skill not found');
|
|
168
228
|
}
|
|
169
|
-
|
|
229
|
+
const snapshot = (0, agent_modification_telemetry_service_1.captureAgentMutation)(entity, previousSkillRefs);
|
|
230
|
+
(0, agent_draft_utils_1.markAgentDraftDirty)(entity);
|
|
231
|
+
const skillRefs = await this.transactionRunner.run({}, async (ctx) => {
|
|
232
|
+
await (0, agent_draft_utils_1.saveAgentDraftFenced)(this.agentRepository, entity, ctx);
|
|
233
|
+
await this.agentSkillRefs.replaceDraftRefs(entity, previousSkillRefs.filter((ref) => ref.id !== skillId), ctx);
|
|
234
|
+
return await this.agentSkillRefs.refsForDraft(entity, ctx);
|
|
235
|
+
});
|
|
236
|
+
await this.saveCompletion.bodySaved((0, agent_modification_telemetry_service_1.buildAgentMutationEvent)(entity, skillRefs, projectId, context, snapshot, { skills: true }), context.pushRef);
|
|
237
|
+
this.logger.debug('Detached agent skill', { agentId, projectId, skillId });
|
|
238
|
+
}
|
|
239
|
+
async availabilityChange(skillId, availableTo) {
|
|
240
|
+
if (availableTo === undefined || !this.agentSkillRefs.usesSkillsHub)
|
|
241
|
+
return undefined;
|
|
242
|
+
const current = await this.agentSkillRefs.availabilityOf(skillId, {});
|
|
243
|
+
return current === availableTo ? undefined : availableTo;
|
|
244
|
+
}
|
|
245
|
+
async updateLegacySkill(entity, skillRefs, skillId, updated, projectId, context) {
|
|
246
|
+
const { [skillId]: _self, ...others } = entity.skills ?? {};
|
|
247
|
+
this.assertNoNameClashes(others, [updated]);
|
|
248
|
+
const snapshot = (0, agent_modification_telemetry_service_1.captureAgentMutation)(entity, skillRefs);
|
|
249
|
+
entity.skills = { ...entity.skills, [skillId]: updated };
|
|
250
|
+
(0, agent_draft_utils_1.markAgentDraftDirty)(entity);
|
|
251
|
+
await this.transactionRunner.run({}, async (ctx) => {
|
|
252
|
+
await (0, agent_draft_utils_1.saveAgentDraftFenced)(this.agentRepository, entity, ctx);
|
|
253
|
+
});
|
|
254
|
+
await this.saveCompletion.bodySaved((0, agent_modification_telemetry_service_1.buildAgentMutationEvent)(entity, skillRefs, projectId, context, snapshot, { skills: true }), context.pushRef);
|
|
255
|
+
this.logger.debug('Updated agent skill', { agentId: entity.id, projectId, skillId });
|
|
256
|
+
return {
|
|
257
|
+
id: skillId,
|
|
258
|
+
skill: updated,
|
|
259
|
+
skillHash: (0, agent_config_hash_1.getAgentSkillHash)(updated),
|
|
260
|
+
versionId: entity.versionId,
|
|
261
|
+
};
|
|
170
262
|
}
|
|
171
263
|
validateSkill(skill) {
|
|
172
264
|
const result = api_types_1.agentSkillSchema.safeParse(skill);
|
|
173
265
|
if (!result.success) {
|
|
174
266
|
throw new n8n_workflow_1.UserError(`Invalid agent skill: ${result.error.issues[0]?.message ?? 'Invalid skill'}`);
|
|
175
267
|
}
|
|
268
|
+
return result.data;
|
|
176
269
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
return skillId;
|
|
184
|
-
}
|
|
185
|
-
assertSkillNameIsUnique(existing, name, currentSkillId) {
|
|
186
|
-
const normalizedName = this.normalizeSkillName(name);
|
|
187
|
-
const duplicate = Object.entries(existing ?? {}).find(([id, skill]) => id !== currentSkillId && this.normalizeSkillName(skill.name) === normalizedName);
|
|
188
|
-
if (duplicate) {
|
|
189
|
-
throw new n8n_workflow_1.UserError(`Agent already has a skill named "${name.trim()}".`);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
normalizeSkillName(name) {
|
|
193
|
-
return name.trim().toLowerCase();
|
|
194
|
-
}
|
|
195
|
-
assertBatchSkillNamesAreUnique(existing, skills) {
|
|
196
|
-
const seenNames = new Set();
|
|
197
|
-
for (const skill of skills) {
|
|
198
|
-
this.assertSkillNameIsUnique(existing, skill.name);
|
|
199
|
-
const normalizedName = this.normalizeSkillName(skill.name);
|
|
200
|
-
if (seenNames.has(normalizedName)) {
|
|
201
|
-
throw new n8n_workflow_1.UserError(`Duplicate skill name in batch: "${skill.name.trim()}".`);
|
|
270
|
+
async assertCanCreateSkills(user, projectId, availableTo) {
|
|
271
|
+
if (availableTo === 'agent')
|
|
272
|
+
return;
|
|
273
|
+
if (availableTo === 'instance') {
|
|
274
|
+
if (!(0, permissions_1.hasGlobalScope)(user, 'skill:create')) {
|
|
275
|
+
throw new errors_1.ForbiddenError('You are not allowed to create skills for the whole instance.');
|
|
202
276
|
}
|
|
203
|
-
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
if (!(await (0, check_access_1.userHasScopes)(user, ['projectSkill:create'], false, { projectId }))) {
|
|
280
|
+
throw new errors_1.ForbiddenError('You are not allowed to create skills for this project.');
|
|
204
281
|
}
|
|
205
282
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
return entity;
|
|
220
|
-
});
|
|
221
|
-
const savedSkillRefs = nextSkillRefs ? nextSkillRefs.refs : currentSkillRefs;
|
|
222
|
-
await this.saveCompletion.bodySaved((0, agent_modification_telemetry_service_1.buildAgentMutationEvent)(saved, savedSkillRefs, projectId, context, previous, {
|
|
223
|
-
skills: true,
|
|
224
|
-
}), context.pushRef);
|
|
225
|
-
return saved;
|
|
283
|
+
assertNoNameClashes(existing, added) {
|
|
284
|
+
const quote = (names) => names.map((name) => name.trim()).join('", "');
|
|
285
|
+
const existingNames = Object.values(existing).map((skill) => skill.name);
|
|
286
|
+
const clashes = added
|
|
287
|
+
.map((skill) => skill.name)
|
|
288
|
+
.filter((name) => (0, skill_names_1.findIntroducedNameClashes)(existingNames, [name]).length > 0);
|
|
289
|
+
if (clashes.length > 0) {
|
|
290
|
+
throw new n8n_workflow_1.UserError(`Agent already has a skill with a name like "${quote(clashes)}".`);
|
|
291
|
+
}
|
|
292
|
+
const inBatch = (0, skill_names_1.findNameClashGroups)(added.map((skill) => skill.name));
|
|
293
|
+
if (inBatch.length > 0) {
|
|
294
|
+
throw new n8n_workflow_1.UserError(`The new skills "${quote(inBatch[0])}" are hard to tell apart.`);
|
|
295
|
+
}
|
|
226
296
|
}
|
|
227
297
|
};
|
|
228
298
|
exports.AgentSkillsService = AgentSkillsService;
|
|
229
299
|
exports.AgentSkillsService = AgentSkillsService = __decorate([
|
|
230
300
|
(0, di_1.Service)(),
|
|
231
|
-
__metadata("design:paramtypes", [backend_common_1.Logger, agent_repository_1.AgentRepository, agent_save_completion_service_1.AgentSaveCompletionService, agent_skill_refs_service_1.AgentSkillRefsService, db_1.TransactionRunner])
|
|
301
|
+
__metadata("design:paramtypes", [backend_common_1.Logger, agent_repository_1.AgentRepository, agent_save_completion_service_1.AgentSaveCompletionService, agent_skill_refs_service_1.AgentSkillRefsService, skill_service_1.SkillService, db_1.TransactionRunner, skills_telemetry_1.SkillsTelemetry])
|
|
232
302
|
], AgentSkillsService);
|
|
303
|
+
function legacyBody(agent, skillId) {
|
|
304
|
+
const skills = agent.skills ?? {};
|
|
305
|
+
return Object.hasOwn(skills, skillId) ? skills[skillId] : undefined;
|
|
306
|
+
}
|
|
307
|
+
function toStoredSkill(skill) {
|
|
308
|
+
return {
|
|
309
|
+
name: skill.name,
|
|
310
|
+
description: skill.description,
|
|
311
|
+
instructions: skill.instructions,
|
|
312
|
+
...(skill.references?.length ? { references: skill.references } : {}),
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
function telemetrySourceOf(context) {
|
|
316
|
+
return context.modifiedBy === 'mcp' ? 'mcp' : 'agent';
|
|
317
|
+
}
|
|
318
|
+
function telemetryMethodOf(context, method) {
|
|
319
|
+
return context.modifiedBy === 'user' ? (method ?? 'manual') : 'ai';
|
|
320
|
+
}
|
|
233
321
|
//# sourceMappingURL=agent-skills.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-skills.service.js","sourceRoot":"","sources":["../../../src/modules/agents/agent-skills.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAMwB;AACxB,wDAA6C;AAC7C,gCAA4C;AAC5C,gCAAkC;AAClC,6DAAqC;AACrC,+CAAyC;AAEzC,wCAA2D;AAE3D,iGAKgD;AAChD,mFAA6E;AAC7E,yEAAmE;AACnE,iEAAsF;AAEtF,sEAAkE;AAClE,mEAA6D;AAC7D,iEAAkF;AAClF,qFAA2E;AAE3E,iEAAoE;AACpE,6EAGyC;AAGlC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC9B,YACkB,MAAc,EACd,eAAgC,EAChC,cAA0C,EAC1C,cAAqC,EACrC,iBAAoC;sBAJpC,MAAM;+BACN,eAAe;8BACf,cAAc;8BACd,cAAc;iCACd,iBAAiB;IAChC,CAAC;IAEJ,KAAK,CAAC,UAAU,CAAC,OAAe,EAAE,SAAiB;QAClD,MAAM,MAAM,GAAG,MAAM,IAAA,oCAA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CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC;QAC7E,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAClC,IAAA,8DAAuB,EAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE;YAC5E,MAAM,EAAE,IAAI;SACZ,CAAC,EACF,OAAO,CAAC,OAAO,CACf,CAAC;QACF,OAAO,KAAK,CAAC;IACd,CAAC;CACD,CAAA;;6BArVY,kBAAkB;IAD9B,IAAA,YAAO,GAAE;qCAGiB,uBAAM,EACG,kCAAe,EAChB,0DAA0B,EAC1B,gDAAqB,EAClB,sBAAiB;GAN1C,kBAAkB,CAqV9B"}
|
|
1
|
+
{"version":3,"file":"agent-skills.service.js","sourceRoot":"","sources":["../../../src/modules/agents/agent-skills.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAOwB;AACxB,wDAA6C;AAC7C,gCAAuD;AACvD,gCAAkC;AAClC,6DAAqC;AACrC,+CAAyC;AAEzC,wCAA2E;AAC3E,kDAAkD;AAClD,gEAA8D;AAE9D,iGAIgD;AAChD,mFAA6E;AAC7E,yEAAmE;AAEnE,qFAA2E;AAE3E,sEAAkE;AAClE,sDAAsF;AAEtF,0DAAuE;AACvE,gEAImC;AACnC,iEAAkF;AAClF,iEAAsF;AACtF,mEAA6D;AAC7D,6EAGyC;AASlC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC9B,YACkB,MAAc,EACd,eAAgC,EAChC,cAA0C,EAC1C,cAAqC,EACrC,YAA0B,EAC1B,iBAAoC,EACpC,eAAgC;sBANhC,MAAM;+BACN,eAAe;8BACf,cAAc;8BACd,cAAc;4BACd,YAAY;iCACZ,iBAAiB;+BACjB,eAAe;IAC9B,CAAC;IAGJ,KAAK,CAAC,UAAU,CAAC,OAAe,EAAE,SAAiB;QAClD,MAAM,MAAM,GAAG,MAAM,IAAA,oCAAe,EACnC,IAAI,CAAC,e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ent-skill-refs.service");
|
|
|
29
29
|
const agents_settings_service_1 = require("./agents-settings.service");
|
|
30
30
|
const agent_task_job_registrar_1 = require("./scheduling/agent-task-job-registrar");
|
|
31
31
|
const task_timezone_1 = require("./scheduling/task-timezone");
|
|
32
|
+
const agent_entity_1 = require("./entities/agent.entity");
|
|
32
33
|
const cron_validation_1 = require("./integrations/cron-validation");
|
|
33
34
|
const agent_repository_1 = require("./repositories/agent.repository");
|
|
34
35
|
const get_agent_or_throw_1 = require("./utils/get-agent-or-throw");
|
|
@@ -174,7 +175,7 @@ let AgentTaskService = class AgentTaskService {
|
|
|
174
175
|
where: { id: agentId },
|
|
175
176
|
relations: { activeVersion: true },
|
|
176
177
|
});
|
|
177
|
-
if (!agent?.activeVersionId) {
|
|
178
|
+
if (!agent?.activeVersionId || !(0, agent_entity_1.isProjectAgent)(agent)) {
|
|
178
179
|
this.deregisterAgentTasks(agentId);
|
|
179
180
|
return;
|
|
180
181
|
}
|
|
@@ -198,10 +199,10 @@ let AgentTaskService = class AgentTaskService {
|
|
|
198
199
|
async reconnectAll() {
|
|
199
200
|
if (this.durableJobRegistrar.isEnabled())
|
|
200
201
|
return;
|
|
201
|
-
const agents = await this.agentRepository.find({
|
|
202
|
+
const agents = (await this.agentRepository.find({
|
|
202
203
|
where: { activeVersionId: (0, typeorm_1.Not)((0, typeorm_1.IsNull)()) },
|
|
203
204
|
relations: { activeVersion: true },
|
|
204
|
-
});
|
|
205
|
+
})).filter(agent_entity_1.isProjectAgent);
|
|
205
206
|
this.logger.debug('[AgentTaskService] Reconnecting published agents', { count: agents.length });
|
|
206
207
|
for (const agent of agents) {
|
|
207
208
|
try {
|
|
@@ -283,7 +284,7 @@ let AgentTaskService = class AgentTaskService {
|
|
|
283
284
|
const snapshot = agent?.activeVersionId
|
|
284
285
|
? await this.taskSnapshotRepository.findByVersionAndTaskId(agent.activeVersionId, taskId)
|
|
285
286
|
: null;
|
|
286
|
-
if (!agent?.activeVersionId || !snapshot?.enabled) {
|
|
287
|
+
if (!agent?.activeVersionId || !snapshot?.enabled || !(0, agent_entity_1.isProjectAgent)(agent)) {
|
|
287
288
|
this.logger.warn('[AgentTaskService] Task fired but is no longer published and enabled', {
|
|
288
289
|
taskId,
|
|
289
290
|
agentId,
|
|
@@ -379,7 +380,7 @@ let AgentTaskService = class AgentTaskService {
|
|
|
379
380
|
async runNow(agentId, taskId, user) {
|
|
380
381
|
const task = await this.getOrThrow(agentId, taskId);
|
|
381
382
|
const agent = await this.agentRepository.findOne({ where: { id: agentId } });
|
|
382
|
-
if (!agent) {
|
|
383
|
+
if (!agent || !(0, agent_entity_1.isProjectAgent)(agent)) {
|
|
383
384
|
throw new errors_1.NotFoundError(`Agent "${agentId}" not found`);
|
|
384
385
|
}
|
|
385
386
|
void this.executeNow(task, agent.projectId, user);
|