n8n 2.43.4 → 2.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstract-server.d.ts +2 -0
- package/dist/abstract-server.js +12 -1
- package/dist/abstract-server.js.map +1 -1
- package/dist/agent-library-bundle.js +8 -0
- package/dist/auth/auth.service.js +1 -1
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/binary-data/binary-data-access.service.d.ts +4 -1
- package/dist/binary-data/binary-data-access.service.js +20 -6
- package/dist/binary-data/binary-data-access.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-execution-manager.js +1 -0
- package/dist/chat/chat-execution-manager.js.map +1 -1
- package/dist/commands/base-command.d.ts +4 -0
- package/dist/commands/base-command.js +10 -3
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/engine.d.ts +1 -0
- package/dist/commands/engine.js +16 -0
- package/dist/commands/engine.js.map +1 -1
- package/dist/commands/start.js +0 -4
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/webhook.js +1 -0
- package/dist/commands/webhook.js.map +1 -1
- package/dist/controllers/e2e.controller.js +1 -0
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/crash-journal.js +1 -1
- package/dist/crash-journal.js.map +1 -1
- package/dist/credentials/credential-options.controller.d.ts +10 -0
- package/dist/credentials/credential-options.controller.js +64 -0
- package/dist/credentials/credential-options.controller.js.map +1 -0
- package/dist/credentials/credential-options.service.d.ts +21 -0
- package/dist/credentials/credential-options.service.js +105 -0
- package/dist/credentials/credential-options.service.js.map +1 -0
- package/dist/credentials/credentials.service.d.ts +12 -2
- package/dist/credentials/credentials.service.ee.d.ts +3 -1
- package/dist/credentials/credentials.service.ee.js +8 -2
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +44 -18
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials/pending-authorization-cleanup.task.js +5 -1
- package/dist/credentials/pending-authorization-cleanup.task.js.map +1 -1
- package/dist/errors/job-returned-to-queue.error.d.ts +5 -0
- package/dist/errors/job-returned-to-queue.error.js +12 -0
- package/dist/errors/job-returned-to-queue.error.js.map +1 -0
- package/dist/events/maps/relay.event-map.d.ts +24 -2
- package/dist/events/maps/system-task-metrics.event-map.d.ts +1 -1
- package/dist/events/maps/system-task-metrics.event-map.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +2 -0
- package/dist/events/relays/telemetry.event-relay.js +66 -2
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/executions/engine-v2-execution-reader.service.d.ts +4 -0
- package/dist/executions/engine-v2-execution-reader.service.js +11 -0
- package/dist/executions/engine-v2-execution-reader.service.js.map +1 -1
- package/dist/executions/enqueued-execution-recovery.service.js +5 -1
- package/dist/executions/enqueued-execution-recovery.service.js.map +1 -1
- package/dist/executions/execution-crash.service.d.ts +3 -1
- package/dist/executions/execution-crash.service.js +4 -4
- package/dist/executions/execution-crash.service.js.map +1 -1
- package/dist/executions/execution-id.d.ts +1 -0
- package/dist/executions/execution-id.js +4 -1
- package/dist/executions/execution-id.js.map +1 -1
- package/dist/executions/execution-persistence.js +1 -1
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution-recovery.service.d.ts +1 -0
- package/dist/executions/execution-recovery.service.js +17 -5
- package/dist/executions/execution-recovery.service.js.map +1 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.d.ts +3 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js +32 -3
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
- package/dist/interfaces.d.ts +4 -1
- package/dist/license/license-renewal.task.d.ts +3 -0
- package/dist/license/license-renewal.task.js +4 -1
- package/dist/license/license-renewal.task.js.map +1 -1
- package/dist/license.js +14 -3
- package/dist/license.js.map +1 -1
- package/dist/load-nodes-and-credentials.d.ts +6 -0
- package/dist/load-nodes-and-credentials.js +28 -12
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/manual-execution.service.d.ts +5 -3
- package/dist/manual-execution.service.js +7 -6
- package/dist/manual-execution.service.js.map +1 -1
- package/dist/metrics/prometheus/active-workflow-metrics.service.d.ts +3 -5
- package/dist/metrics/prometheus/active-workflow-metrics.service.js +6 -13
- package/dist/metrics/prometheus/active-workflow-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/cached-metric-query.d.ts +14 -3
- package/dist/metrics/prometheus/cached-metric-query.js +59 -7
- package/dist/metrics/prometheus/cached-metric-query.js.map +1 -1
- package/dist/metrics/prometheus/constant.d.ts +1 -0
- package/dist/metrics/prometheus/constant.js +2 -1
- package/dist/metrics/prometheus/constant.js.map +1 -1
- package/dist/metrics/prometheus/database-metric-query.service.d.ts +39 -0
- package/dist/metrics/prometheus/database-metric-query.service.js +88 -0
- package/dist/metrics/prometheus/database-metric-query.service.js.map +1 -0
- package/dist/metrics/prometheus/db-pool-metrics.service.js +21 -0
- package/dist/metrics/prometheus/db-pool-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/prometheus.service.d.ts +3 -1
- package/dist/metrics/prometheus/prometheus.service.js +7 -3
- package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
- package/dist/metrics/prometheus/scheduler-metrics.service.d.ts +7 -5
- package/dist/metrics/prometheus/scheduler-metrics.service.js +30 -23
- package/dist/metrics/prometheus/scheduler-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/system-task-metrics.service.d.ts +4 -6
- package/dist/metrics/prometheus/system-task-metrics.service.js +9 -22
- package/dist/metrics/prometheus/system-task-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/workflow-info-metrics.service.d.ts +3 -5
- package/dist/metrics/prometheus/workflow-info-metrics.service.js +14 -20
- package/dist/metrics/prometheus/workflow-info-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/workflow-publication-metrics.service.d.ts +4 -5
- package/dist/metrics/prometheus/workflow-publication-metrics.service.js +10 -22
- package/dist/metrics/prometheus/workflow-publication-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.d.ts +3 -5
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.js +6 -13
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.js.map +1 -1
- package/dist/middlewares/content-security-policy.js +45 -10
- package/dist/middlewares/content-security-policy.js.map +1 -1
- package/dist/middlewares/list-query/dtos/workflow.filter.dto.d.ts +2 -0
- package/dist/middlewares/list-query/dtos/workflow.filter.dto.js +9 -0
- package/dist/middlewares/list-query/dtos/workflow.filter.dto.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-case-generation.service.d.ts +8 -2
- package/dist/modules/agent-evals/agent-eval-case-generation.service.js +113 -14
- package/dist/modules/agent-evals/agent-eval-case-generation.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-fix-suggestion.d.ts +21 -0
- package/dist/modules/agent-evals/agent-eval-fix-suggestion.js +55 -0
- package/dist/modules/agent-evals/agent-eval-fix-suggestion.js.map +1 -0
- package/dist/modules/agent-evals/agent-eval-instructions-rewrite.d.ts +22 -0
- package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js +108 -0
- package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js.map +1 -0
- package/dist/modules/agent-evals/agent-eval-judge.d.ts +22 -0
- package/dist/modules/agent-evals/agent-eval-judge.js +36 -0
- package/dist/modules/agent-evals/agent-eval-judge.js.map +1 -0
- package/dist/modules/agent-evals/agent-eval-record-mappers.js +8 -0
- package/dist/modules/agent-evals/agent-eval-record-mappers.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-runner.service.d.ts +12 -2
- package/dist/modules/agent-evals/agent-eval-runner.service.js +102 -2
- package/dist/modules/agent-evals/agent-eval-runner.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval.service.d.ts +17 -3
- package/dist/modules/agent-evals/agent-eval.service.js +185 -2
- package/dist/modules/agent-evals/agent-eval.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-evals.controller.d.ts +16 -2
- package/dist/modules/agent-evals/agent-evals.controller.js +111 -2
- package/dist/modules/agent-evals/agent-evals.controller.js.map +1 -1
- package/dist/modules/agent-evals/case-generation/case-generation-prompt.d.ts +18 -1
- package/dist/modules/agent-evals/case-generation/case-generation-prompt.js +47 -9
- package/dist/modules/agent-evals/case-generation/case-generation-prompt.js.map +1 -1
- package/dist/modules/agents/agent-budget-alert.service.d.ts +21 -0
- package/dist/modules/agents/agent-budget-alert.service.js +82 -0
- package/dist/modules/agents/agent-budget-alert.service.js.map +1 -0
- package/dist/modules/agents/agent-chat-execution.service.d.ts +6 -2
- package/dist/modules/agents/agent-chat-execution.service.js +13 -15
- package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-chat.controller.d.ts +36 -0
- package/dist/modules/agents/agent-chat.controller.js +149 -54
- package/dist/modules/agents/agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/agent-checkpoint-pruning.task.d.ts +5 -2
- package/dist/modules/agents/agent-checkpoint-pruning.task.js +7 -4
- package/dist/modules/agents/agent-checkpoint-pruning.task.js.map +1 -1
- package/dist/modules/agents/agent-config-preparation.service.d.ts +325 -0
- package/dist/modules/agents/agent-config-preparation.service.js +100 -0
- package/dist/modules/agents/agent-config-preparation.service.js.map +1 -0
- package/dist/modules/agents/agent-config.service.d.ts +15 -18
- package/dist/modules/agents/agent-config.service.js +58 -129
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-context-readers.js +1 -2
- package/dist/modules/agents/agent-context-readers.js.map +1 -1
- package/dist/modules/agents/agent-custom-tools.service.d.ts +8 -9
- package/dist/modules/agents/agent-custom-tools.service.js +14 -19
- package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
- package/dist/modules/agents/agent-definition.service.d.ts +19 -0
- package/dist/modules/agents/agent-definition.service.js +75 -0
- package/dist/modules/agents/agent-definition.service.js.map +1 -0
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +10 -8
- package/dist/modules/agents/agent-execution-orchestrator.service.js +250 -146
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-update-broadcaster.js +2 -1
- package/dist/modules/agents/agent-execution-update-broadcaster.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +9 -1
- package/dist/modules/agents/agent-execution.service.js +22 -1
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-persistence.service.d.ts +3 -1
- package/dist/modules/agents/agent-integration-persistence.service.js +23 -15
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
- package/dist/modules/agents/agent-integrations.controller.d.ts +12 -2
- package/dist/modules/agents/agent-integrations.controller.js +49 -4
- package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.d.ts +12 -0
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.js +36 -0
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.js.map +1 -0
- package/dist/modules/agents/agent-interrupted-execution-sweeper.d.ts +3 -2
- package/dist/modules/agents/agent-interrupted-execution-sweeper.js +20 -7
- package/dist/modules/agents/agent-interrupted-execution-sweeper.js.map +1 -1
- package/dist/modules/agents/agent-message-queue-consumer.service.js +2 -5
- package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
- package/dist/modules/agents/agent-message-queue.service.d.ts +3 -1
- package/dist/modules/agents/agent-message-queue.service.js +7 -5
- package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
- package/dist/modules/agents/agent-message-steering.service.d.ts +2 -1
- package/dist/modules/agents/agent-message-steering.service.js +17 -9
- package/dist/modules/agents/agent-message-steering.service.js.map +1 -1
- package/dist/modules/agents/agent-modification-telemetry.service.d.ts +33 -3
- package/dist/modules/agents/agent-modification-telemetry.service.js +11 -8
- package/dist/modules/agents/agent-modification-telemetry.service.js.map +1 -1
- package/dist/modules/agents/agent-n8n-chat-unavailable.error.d.ts +4 -0
- package/dist/modules/agents/agent-n8n-chat-unavailable.error.js +11 -0
- package/dist/modules/agents/agent-n8n-chat-unavailable.error.js.map +1 -0
- package/dist/modules/agents/agent-policy.service.d.ts +10 -0
- package/dist/modules/agents/agent-policy.service.js +44 -0
- package/dist/modules/agents/agent-policy.service.js.map +1 -0
- package/dist/modules/agents/agent-publish.service.d.ts +17 -8
- package/dist/modules/agents/agent-publish.service.js +95 -113
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-push-recipients.service.d.ts +1 -0
- package/dist/modules/agents/agent-push-recipients.service.js +5 -2
- package/dist/modules/agents/agent-push-recipients.service.js.map +1 -1
- package/dist/modules/agents/agent-runnable-state.service.d.ts +3 -1
- package/dist/modules/agents/agent-runnable-state.service.js +5 -3
- package/dist/modules/agents/agent-runnable-state.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-cache.service.d.ts +3 -1
- package/dist/modules/agents/agent-runtime-cache.service.js +7 -7
- package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-instrumentation.d.ts +6 -0
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +2 -2
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +23 -16
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-save-completion.service.d.ts +14 -0
- package/dist/modules/agents/agent-save-completion.service.js +51 -0
- package/dist/modules/agents/agent-save-completion.service.js.map +1 -0
- package/dist/modules/agents/agent-setup-completion.service.d.ts +2 -1
- package/dist/modules/agents/agent-setup-completion.service.js +5 -3
- package/dist/modules/agents/agent-setup-completion.service.js.map +1 -1
- package/dist/modules/agents/agent-skill-refs.service.d.ts +12 -0
- package/dist/modules/agents/agent-skill-refs.service.js +52 -0
- package/dist/modules/agents/agent-skill-refs.service.js.map +1 -0
- package/dist/modules/agents/agent-skills.service.d.ts +14 -8
- package/dist/modules/agents/agent-skills.service.js +64 -41
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-sse-stream.d.ts +1 -0
- package/dist/modules/agents/agent-sse-stream.js +15 -0
- package/dist/modules/agents/agent-sse-stream.js.map +1 -1
- package/dist/modules/agents/agent-task.service.d.ts +12 -7
- package/dist/modules/agents/agent-task.service.js +35 -31
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-telemetry.d.ts +2 -2
- package/dist/modules/agents/agent-telemetry.js +3 -2
- package/dist/modules/agents/agent-telemetry.js.map +1 -1
- package/dist/modules/agents/agent-test-run.service.d.ts +4 -2
- package/dist/modules/agents/agent-test-run.service.js +2 -2
- package/dist/modules/agents/agent-test-run.service.js.map +1 -1
- package/dist/modules/agents/agent-threads.controller.js +2 -1
- package/dist/modules/agents/agent-threads.controller.js.map +1 -1
- package/dist/modules/agents/agent-tool-approval.service.d.ts +1 -1
- package/dist/modules/agents/agent-tool-approval.service.js +2 -1
- package/dist/modules/agents/agent-tool-approval.service.js.map +1 -1
- package/dist/modules/agents/agent-turn-execution.service.d.ts +4 -4
- package/dist/modules/agents/agent-turn-execution.service.js +27 -25
- package/dist/modules/agents/agent-turn-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.d.ts +11 -7
- package/dist/modules/agents/agent-validation.service.js +60 -30
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +13 -5
- package/dist/modules/agents/agent-workflow-execution.service.js +44 -20
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-tool-resume.service.js +2 -3
- package/dist/modules/agents/agent-workflow-tool-resume.service.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +16 -0
- package/dist/modules/agents/agents-list.controller.d.ts +4 -1
- package/dist/modules/agents/agents-list.controller.js +44 -0
- package/dist/modules/agents/agents-list.controller.js.map +1 -1
- package/dist/modules/agents/agents.controller.js +1 -0
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +1 -3
- package/dist/modules/agents/agents.module.js +9 -25
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +21 -5
- package/dist/modules/agents/agents.service.js +63 -12
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/background/agent-background-job.service.d.ts +3 -3
- package/dist/modules/agents/background/agent-background-job.service.js +39 -10
- package/dist/modules/agents/background/agent-background-job.service.js.map +1 -1
- package/dist/modules/agents/background/agent-wake.service.js +13 -5
- package/dist/modules/agents/background/agent-wake.service.js.map +1 -1
- package/dist/modules/agents/background/background-job-tools.d.ts +2 -2
- package/dist/modules/agents/background/background-job-tools.js +9 -58
- package/dist/modules/agents/background/background-job-tools.js.map +1 -1
- package/dist/modules/agents/budget-guardrail.d.ts +1 -0
- package/dist/modules/agents/budget-guardrail.js +42 -1
- package/dist/modules/agents/budget-guardrail.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +5 -5
- package/dist/modules/agents/builder/agents-builder-prompts.js +52 -31
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +4 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +189 -89
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/get-resource-locator-options.tool.d.ts +2 -2
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +25 -12
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +1 -1
- package/dist/modules/agents/builder/skills/external-services.skill.js +4 -4
- package/dist/modules/agents/builder/skills/node-tools.skill.js +4 -4
- package/dist/modules/agents/builder/skills/node-tools.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +14 -8
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/verify-mcp-server.tool.d.ts +9 -3
- package/dist/modules/agents/builder/verify-mcp-server.tool.js +16 -3
- package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
- package/dist/modules/agents/entities/agent-history.entity.d.ts +2 -2
- package/dist/modules/agents/entities/agent-history.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent.entity.d.ts +2 -2
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/instance-ai-agent-context.adapter.d.ts +3 -1
- package/dist/modules/agents/instance-ai-agent-context.adapter.js +5 -3
- package/dist/modules/agents/instance-ai-agent-context.adapter.js.map +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +4 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.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 +67 -20
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +18 -3
- package/dist/modules/agents/integrations/agent-chat-integration.js +1 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +4 -0
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +81 -24
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
- package/dist/modules/agents/integrations/channel-rate-limit.d.ts +6 -0
- package/dist/modules/agents/integrations/channel-rate-limit.js +11 -1
- package/dist/modules/agents/integrations/channel-rate-limit.js.map +1 -1
- package/dist/modules/agents/integrations/component-mapper.d.ts +6 -0
- package/dist/modules/agents/integrations/component-mapper.js +16 -3
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
- package/dist/modules/agents/integrations/esm-loader.d.ts +1 -0
- package/dist/modules/agents/integrations/esm-loader.js +4 -0
- package/dist/modules/agents/integrations/esm-loader.js.map +1 -1
- package/dist/modules/agents/integrations/integration-helpers.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-helpers.js +7 -0
- package/dist/modules/agents/integrations/integration-helpers.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-execution.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-tool-execution.js +13 -0
- package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-factory.js +1 -0
- package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-memory.d.ts +7 -0
- package/dist/modules/agents/integrations/n8n-memory.js +24 -10
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.d.ts +2 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js +2 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.d.ts +15 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js +63 -2
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.d.ts +11 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js +5 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/whatsapp-integration.d.ts +43 -0
- package/dist/modules/agents/integrations/platforms/whatsapp-integration.js +337 -0
- package/dist/modules/agents/integrations/platforms/whatsapp-integration.js.map +1 -0
- package/dist/modules/agents/json-config/agent-config-composition.d.ts +2 -1
- package/dist/modules/agents/json-config/agent-config-composition.js +3 -2
- package/dist/modules/agents/json-config/agent-config-composition.js.map +1 -1
- package/dist/modules/agents/json-config/agent-document.d.ts +7 -0
- package/dist/modules/agents/json-config/agent-document.js +13 -0
- package/dist/modules/agents/json-config/agent-document.js.map +1 -0
- package/dist/modules/agents/json-config/credential-field-mapping.d.ts +1 -1
- package/dist/modules/agents/json-config/credential-field-mapping.js +33 -8
- package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.js +6 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
- package/dist/modules/agents/json-config/model-config.js +13 -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 +5 -0
- package/dist/modules/agents/json-config/prune-missing-config-references.js +20 -0
- package/dist/modules/agents/json-config/prune-missing-config-references.js.map +1 -0
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +8 -94
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
- package/dist/modules/agents/plans/agent-plan-tools.js +3 -3
- package/dist/modules/agents/plans/agent-plan-tools.js.map +1 -1
- package/dist/modules/agents/register-favorite-resolver.js +2 -2
- package/dist/modules/agents/register-favorite-resolver.js.map +1 -1
- package/dist/modules/agents/repositories/agent-credential-dependency.repository.js +4 -1
- package/dist/modules/agents/repositories/agent-credential-dependency.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +10 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +67 -8
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +8 -9
- package/dist/modules/agents/repositories/agent-history.repository.js +9 -8
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-message-queue.repository.d.ts +15 -2
- package/dist/modules/agents/repositories/agent-message-queue.repository.js +9 -2
- package/dist/modules/agents/repositories/agent-message-queue.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.d.ts +6 -5
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.js +9 -8
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-task.repository.d.ts +9 -4
- package/dist/modules/agents/repositories/agent-task.repository.js +40 -6
- package/dist/modules/agents/repositories/agent-task.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-thread.repository.d.ts +6 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js +20 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent.repository.d.ts +23 -9
- package/dist/modules/agents/repositories/agent.repository.js +118 -15
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.d.ts +1 -0
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +2 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.d.ts +3 -1
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js +8 -5
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.d.ts +1 -1
- package/dist/modules/agents/tools/node-tool-factory.js +3 -14
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +4 -2
- package/dist/modules/agents/tools/workflow-tool-factory.js +39 -13
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js +5 -1
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js.map +1 -1
- package/dist/modules/agents/types/agent-queued-message.d.ts +1 -0
- package/dist/modules/agents/types/agent-queued-message.js +3 -1
- package/dist/modules/agents/types/agent-queued-message.js.map +1 -1
- package/dist/modules/agents/utils/agent-config-hash.d.ts +1 -0
- package/dist/modules/agents/utils/agent-config-hash.js +4 -0
- package/dist/modules/agents/utils/agent-config-hash.js.map +1 -1
- package/dist/modules/agents/utils/agent-definition.d.ts +329 -0
- package/dist/modules/agents/utils/agent-definition.js +17 -0
- package/dist/modules/agents/utils/agent-definition.js.map +1 -0
- package/dist/modules/agents/utils/agent-draft.utils.d.ts +2 -3
- package/dist/modules/agents/utils/agent-draft.utils.js +2 -2
- package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
- package/dist/modules/agents/utils/agent-execution-counter.d.ts +2 -1
- package/dist/modules/agents/utils/agent-execution-counter.js +4 -1
- package/dist/modules/agents/utils/agent-execution-counter.js.map +1 -1
- package/dist/modules/agents/utils/agent-missing-skill-ids.d.ts +3 -2
- package/dist/modules/agents/utils/agent-missing-skill-ids.js +2 -2
- package/dist/modules/agents/utils/agent-missing-skill-ids.js.map +1 -1
- package/dist/modules/agents/utils/agent-published-snapshot.d.ts +8 -1
- package/dist/modules/agents/utils/agent-published-snapshot.js +21 -7
- package/dist/modules/agents/utils/agent-published-snapshot.js.map +1 -1
- package/dist/modules/agents/utils/agent-ref.d.ts +8 -0
- package/dist/modules/agents/utils/agent-ref.js +12 -0
- package/dist/modules/agents/utils/agent-ref.js.map +1 -0
- package/dist/modules/agents/utils/agent-thread-access.d.ts +3 -1
- package/dist/modules/agents/utils/agent-thread-access.js +7 -0
- package/dist/modules/agents/utils/agent-thread-access.js.map +1 -1
- package/dist/modules/agents/utils/extract-agent-credential-ids.d.ts +1 -2
- package/dist/modules/agents/utils/extract-agent-credential-ids.js +6 -33
- package/dist/modules/agents/utils/extract-agent-credential-ids.js.map +1 -1
- package/dist/modules/agents/utils/extract-agent-workflow-refs.d.ts +1 -1
- package/dist/modules/agents/utils/extract-agent-workflow-refs.js.map +1 -1
- package/dist/modules/agents/utils/parse-thread-list-limit.d.ts +1 -0
- package/dist/modules/agents/utils/parse-thread-list-limit.js +7 -0
- package/dist/modules/agents/utils/parse-thread-list-limit.js.map +1 -0
- package/dist/modules/agents/utils/skill-instruction-edits.d.ts +5 -0
- package/dist/modules/agents/utils/skill-instruction-edits.js +15 -0
- package/dist/modules/agents/utils/skill-instruction-edits.js.map +1 -0
- package/dist/modules/agents/utils/visit-agent-credential-references.d.ts +8 -0
- package/dist/modules/agents/utils/visit-agent-credential-references.js +67 -0
- package/dist/modules/agents/utils/visit-agent-credential-references.js.map +1 -0
- package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +17 -5
- package/dist/modules/breaking-changes/breaking-changes.controller.js +94 -8
- 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/breaking-changes.module.js +2 -1
- package/dist/modules/breaking-changes/breaking-changes.module.js.map +1 -1
- package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.d.ts +14 -0
- package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.js +57 -0
- package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.js.map +1 -0
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.d.ts +12 -6
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js +104 -30
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js.map +1 -1
- package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.d.ts +14 -0
- package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.js +79 -0
- package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/index.js +1 -2
- package/dist/modules/breaking-changes/migrations/index.js.map +1 -1
- package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.d.ts +17 -0
- package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js +64 -0
- package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js.map +1 -0
- package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.d.ts +16 -0
- package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js +113 -0
- package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js.map +1 -0
- package/dist/modules/breaking-changes/owners/workflow-owner.d.ts +3 -0
- package/dist/modules/breaking-changes/owners/workflow-owner.js +13 -0
- package/dist/modules/breaking-changes/owners/workflow-owner.js.map +1 -0
- package/dist/modules/breaking-changes/query/migration-finding-query.service.d.ts +16 -5
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js +51 -16
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
- package/dist/modules/breaking-changes/rules/index.d.ts +0 -1
- package/dist/modules/breaking-changes/rules/index.js +0 -1
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/sync/migration-finding-diff.js +2 -1
- package/dist/modules/breaking-changes/sync/migration-finding-diff.js.map +1 -1
- package/dist/modules/breaking-changes/sync/migration-finding-sync.service.d.ts +7 -3
- package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js +22 -15
- package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js.map +1 -1
- package/dist/modules/breaking-changes/triage/migration-finding-triage.service.d.ts +11 -0
- package/dist/modules/breaking-changes/triage/migration-finding-triage.service.js +47 -0
- package/dist/modules/breaking-changes/triage/migration-finding-triage.service.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub-execution.service.js +1 -0
- package/dist/modules/chat-hub/chat-hub-execution.service.js.map +1 -1
- package/dist/modules/community-packages/community-node.command.d.ts +1 -1
- package/dist/modules/data-table/data-table-column.repository.d.ts +12 -4
- package/dist/modules/data-table/data-table-column.repository.js +51 -6
- package/dist/modules/data-table/data-table-column.repository.js.map +1 -1
- package/dist/modules/data-table/data-table-file-cleanup.service.d.ts +5 -7
- package/dist/modules/data-table/data-table-file-cleanup.service.js +35 -37
- package/dist/modules/data-table/data-table-file-cleanup.service.js.map +1 -1
- package/dist/modules/data-table/data-table-file-cleanup.task.d.ts +14 -0
- package/dist/modules/data-table/data-table-file-cleanup.task.js +37 -0
- package/dist/modules/data-table/data-table-file-cleanup.task.js.map +1 -0
- package/dist/modules/data-table/data-table.module.d.ts +2 -1
- package/dist/modules/data-table/data-table.module.js +4 -4
- package/dist/modules/data-table/data-table.module.js.map +1 -1
- package/dist/modules/data-table/data-table.repository.d.ts +1 -1
- package/dist/modules/data-table/data-table.repository.js +2 -1
- package/dist/modules/data-table/data-table.repository.js.map +1 -1
- package/dist/modules/data-table/data-table.service.d.ts +8 -1
- package/dist/modules/data-table/data-table.service.js +11 -2
- package/dist/modules/data-table/data-table.service.js.map +1 -1
- package/dist/modules/data-table/register-favorite-resolver.js +2 -2
- package/dist/modules/data-table/register-favorite-resolver.js.map +1 -1
- package/dist/modules/data-table/utils/pair-columns.d.ts +27 -0
- package/dist/modules/data-table/utils/pair-columns.js +48 -0
- package/dist/modules/data-table/utils/pair-columns.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +40 -52
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +55 -40
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.d.ts +1 -4
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js +2 -15
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.d.ts +13 -0
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js +36 -0
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js.map +1 -0
- package/dist/modules/external-secrets.ee/external-secrets.config.js +1 -1
- package/dist/modules/external-secrets.ee/external-secrets.config.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets.module.d.ts +1 -0
- package/dist/modules/external-secrets.ee/external-secrets.module.js +4 -0
- package/dist/modules/external-secrets.ee/external-secrets.module.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/one-password.js +1 -1
- package/dist/modules/external-secrets.ee/providers/one-password.js.map +1 -1
- package/dist/modules/external-secrets.ee/secrets-cache.service.d.ts +4 -2
- package/dist/modules/external-secrets.ee/secrets-cache.service.js +25 -8
- package/dist/modules/external-secrets.ee/secrets-cache.service.js.map +1 -1
- package/dist/modules/favorites/favorites.service.d.ts +1 -1
- package/dist/modules/favorites/favorites.service.js +2 -2
- package/dist/modules/favorites/favorites.service.js.map +1 -1
- package/dist/modules/inbound-auth-core/authentication-pipeline.d.ts +11 -0
- package/dist/modules/inbound-auth-core/authentication-pipeline.js +50 -0
- package/dist/modules/inbound-auth-core/authentication-pipeline.js.map +1 -0
- package/dist/modules/inbound-auth-core/authentication.service.d.ts +12 -0
- package/dist/modules/inbound-auth-core/authentication.service.js +86 -0
- package/dist/modules/inbound-auth-core/authentication.service.js.map +1 -0
- package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.d.ts +3 -0
- package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.js +12 -0
- package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.js.map +1 -1
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.d.ts +20 -3
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js +70 -2
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js.map +1 -1
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.d.ts +15 -3
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js +58 -2
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js.map +1 -1
- package/dist/modules/inbound-auth-core/grant-authorization.d.ts +4 -0
- package/dist/modules/inbound-auth-core/grant-authorization.js +10 -0
- package/dist/modules/inbound-auth-core/grant-authorization.js.map +1 -0
- package/dist/modules/inbound-auth-core/identity/external-identity.d.ts +3 -0
- package/dist/modules/inbound-auth-core/identity/external-identity.js +86 -0
- package/dist/modules/inbound-auth-core/identity/external-identity.js.map +1 -0
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.d.ts +27 -0
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js +287 -0
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js.map +1 -0
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.d.ts +1 -0
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.js +30 -20
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.js.map +1 -1
- package/dist/modules/inbound-auth-core/key.utils.d.ts +2 -0
- package/dist/modules/inbound-auth-core/key.utils.js +18 -0
- package/dist/modules/inbound-auth-core/key.utils.js.map +1 -0
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.d.ts +16 -0
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js +171 -0
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js.map +1 -0
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.d.ts +52 -0
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js +74 -0
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source-discovery.service.d.ts +19 -0
- package/dist/modules/inbound-auth-core/trusted-source-discovery.service.js +141 -0
- package/dist/modules/inbound-auth-core/trusted-source-discovery.service.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source-discovery.task.d.ts +12 -0
- package/dist/modules/{insights/insights-compaction.task.js → inbound-auth-core/trusted-source-discovery.task.js} +14 -16
- package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source.gate.d.ts +13 -0
- package/dist/modules/inbound-auth-core/trusted-source.gate.js +53 -0
- package/dist/modules/inbound-auth-core/trusted-source.gate.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source.store.d.ts +18 -16
- package/dist/modules/inbound-auth-core/trusted-source.store.js +107 -7
- package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.d.ts +2 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.js +42 -37
- package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +7 -2
- package/dist/modules/instance-ai/eval/execution.service.js +150 -22
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +6 -3
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.js +2 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.d.ts +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.js +2 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +1 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.js +25 -9
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +4 -2
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +5 -2
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +3 -0
- package/dist/modules/instance-ai/instance-ai-credit.service.js +18 -0
- package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.js +1 -0
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-thread-tabs.service.d.ts +10 -1
- package/dist/modules/instance-ai/instance-ai-thread-tabs.service.js +74 -5
- package/dist/modules/instance-ai/instance-ai-thread-tabs.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +29 -7
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +28 -2
- package/dist/modules/instance-ai/instance-ai.controller.js +5 -3
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.module.js +8 -0
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +10 -1
- package/dist/modules/instance-ai/instance-ai.service.js +164 -24
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-context.service.js +4 -5
- package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.d.ts +5 -3
- package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.js +24 -4
- package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.d.ts +23 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js +100 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.d.ts +10 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +50 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.d.ts +16 -0
- package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js +77 -0
- package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.d.ts +33 -0
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +178 -0
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-results.controller.d.ts +16 -0
- package/dist/modules/instance-ai/self-healing/self-healing-results.controller.js +69 -0
- package/dist/modules/instance-ai/self-healing/self-healing-results.controller.js.map +1 -0
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.d.ts +3 -1
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.js +10 -0
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.js.map +1 -1
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.d.ts +6 -1
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.js +20 -0
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.js.map +1 -1
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.d.ts +5 -2
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.js +45 -1
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.js.map +1 -1
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.d.ts +26 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js +173 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js.map +1 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.d.ts +6 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js +57 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js.map +1 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.d.ts +29 -5
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js +86 -25
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js.map +1 -1
- package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.d.ts +1 -1
- package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.js +2 -2
- package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.js.map +1 -1
- package/dist/modules/instance-reporting.ee/instance-reporting.service.d.ts +3 -2
- package/dist/modules/instance-reporting.ee/instance-reporting.service.js +23 -9
- package/dist/modules/instance-reporting.ee/instance-reporting.service.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.js +4 -3
- package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-slack-setup.d.ts +1 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.d.ts +3 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +72 -43
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.js +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.js +6 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/publish-workflow.tool.js +1 -0
- package/dist/modules/mcp/tools/publish-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +2 -9
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-history.utils.js +1 -1
- package/dist/modules/mcp/tools/workflow-history.utils.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.d.ts +2 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.js.map +1 -1
- package/dist/modules/modules.manifest.js +3 -1
- package/dist/modules/modules.manifest.js.map +1 -1
- package/dist/modules/n8n-packages/engine/credential-save-policy.d.ts +11 -0
- package/dist/modules/n8n-packages/engine/credential-save-policy.js +56 -0
- package/dist/modules/n8n-packages/engine/credential-save-policy.js.map +1 -0
- package/dist/modules/n8n-packages/engine/import-gates.d.ts +2 -0
- package/dist/modules/n8n-packages/engine/import-gates.js +9 -0
- package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +4 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +106 -32
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-result.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/import-result.js +2 -2
- package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.js +2 -0
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +6 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +72 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.js +7 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +1 -0
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-export.types.d.ts +39 -0
- package/dist/modules/n8n-packages/entities/agent/agent-export.types.js +3 -0
- package/dist/modules/n8n-packages/entities/agent/agent-export.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.js +3 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.d.ts +12 -0
- package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js +75 -0
- package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.d.ts +20 -0
- package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.js +173 -0
- package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.d.ts +14 -0
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.js +76 -0
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent.serializer.d.ts +8 -0
- package/dist/modules/n8n-packages/entities/agent/agent.serializer.js +50 -0
- package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js +1 -12
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +1 -2
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +12 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.d.ts +5 -4
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js +18 -1
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +19 -14
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +8 -5
- package/dist/modules/n8n-packages/entities/credential/credential.types.js +0 -1
- package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-compat.d.ts +14 -2
- package/dist/modules/n8n-packages/entities/data-table/data-table-compat.js +52 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table-compat.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-importer.d.ts +10 -2
- package/dist/modules/n8n-packages/entities/data-table/data-table-importer.js +136 -30
- package/dist/modules/n8n-packages/entities/data-table/data-table-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-matching-mode.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-matching-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.d.ts +9 -2
- package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.js +11 -8
- package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.d.ts +2 -7
- package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.js +16 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.d.ts +2 -3
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js +5 -19
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js +1 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.types.d.ts +46 -2
- package/dist/modules/n8n-packages/entities/data-table/data-table.types.js +0 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +4 -4
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project-export-access.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/project/project-export-access.js +14 -0
- package/dist/modules/n8n-packages/entities/project/project-export-access.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project-shell.exporter.d.ts +14 -0
- package/dist/modules/n8n-packages/entities/project/project-shell.exporter.js +35 -0
- package/dist/modules/n8n-packages/entities/project/project-shell.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +7 -7
- package/dist/modules/n8n-packages/entities/project/project.exporter.js +20 -17
- package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/requirement-source.d.ts +13 -0
- package/dist/modules/n8n-packages/entities/requirement-source.js +23 -0
- package/dist/modules/n8n-packages/entities/requirement-source.js.map +1 -0
- package/dist/modules/n8n-packages/entities/requirements.types.d.ts +10 -10
- package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag-import-decision.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag-import-decision.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js +5 -19
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js +3 -3
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag.types.d.ts +1 -6
- package/dist/modules/n8n-packages/entities/tag/tag.types.js +3 -11
- package/dist/modules/n8n-packages/entities/tag/tag.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js +7 -6
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.js +9 -3
- package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.d.ts +0 -1
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js +25 -28
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +6 -9
- package/dist/modules/n8n-packages/entities/variable/variable.types.js +1 -27
- package/dist/modules/n8n-packages/entities/variable/variable.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.d.ts +9 -7
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js +17 -31
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +5 -6
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +6 -17
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js +2 -1
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/node-type-usage.d.ts +7 -10
- package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js +17 -13
- package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.d.ts +4 -1
- package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-requirements.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-requirements.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js +2 -1
- package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js +5 -11
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.d.ts +3 -3
- package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.js +5 -5
- package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +4 -4
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +3 -3
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.types.d.ts +6 -0
- package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.d.ts +8 -0
- package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js +23 -0
- package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js.map +1 -1
- package/dist/modules/n8n-packages/io/manifest-entry.d.ts +5 -0
- package/dist/modules/n8n-packages/io/manifest-entry.js +6 -0
- package/dist/modules/n8n-packages/io/manifest-entry.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +5 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js +124 -59
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +29 -8
- package/dist/modules/n8n-packages/n8n-packages.types.js +5 -3
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +471 -97
- package/dist/modules/n8n-packages/spec/manifest.schema.js +12 -1
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/requirement-consumers.d.ts +5 -0
- package/dist/modules/n8n-packages/spec/requirement-consumers.js +16 -0
- package/dist/modules/n8n-packages/spec/requirement-consumers.js.map +1 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +457 -82
- package/dist/modules/n8n-packages/spec/requirements.schema.js +37 -10
- package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +3860 -0
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.js +55 -0
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.d.ts +10 -0
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js +1 -0
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js.map +1 -1
- package/dist/modules/n8n-packages/utils/import-package-upload.d.ts +3 -15
- package/dist/modules/n8n-packages/utils/import-package-upload.js +4 -60
- package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -1
- package/dist/modules/oauth-server/oauth-local-authorization-server.d.ts +14 -0
- package/dist/modules/oauth-server/oauth-local-authorization-server.js +55 -0
- package/dist/modules/oauth-server/oauth-local-authorization-server.js.map +1 -0
- package/dist/modules/oauth-server/oauth-server.module.js +3 -0
- package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.constants.d.ts +3 -1
- package/dist/modules/oauth-server/oauth-signing-key.constants.js +4 -2
- package/dist/modules/oauth-server/oauth-signing-key.constants.js.map +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.service.d.ts +16 -4
- package/dist/modules/oauth-server/oauth-signing-key.service.js +95 -19
- package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-token.service.d.ts +5 -3
- package/dist/modules/oauth-server/oauth-token.service.js +30 -21
- 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 +17 -26
- package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
- package/dist/modules/oauth-server/resource-gate.d.ts +0 -2
- package/dist/modules/oauth-server/resource-gate.js +2 -8
- package/dist/modules/oauth-server/resource-gate.js.map +1 -1
- package/dist/modules/otel/execution-identity.d.ts +27 -0
- package/dist/modules/otel/execution-identity.js +43 -0
- package/dist/modules/otel/execution-identity.js.map +1 -0
- package/dist/modules/otel/execution-level-tracer.d.ts +1 -0
- package/dist/modules/otel/execution-level-tracer.js +75 -37
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +5 -0
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/otel/otel-lifecycle-handler.d.ts +5 -1
- package/dist/modules/otel/otel-lifecycle-handler.js +44 -16
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/otel/otel-settings.service.js +2 -0
- package/dist/modules/otel/otel-settings.service.js.map +1 -1
- package/dist/modules/otel/otel.config.d.ts +2 -0
- package/dist/modules/otel/otel.config.js +10 -0
- package/dist/modules/otel/otel.config.js.map +1 -1
- package/dist/modules/otel/otel.constants.d.ts +3 -0
- package/dist/modules/otel/otel.constants.js +3 -0
- package/dist/modules/otel/otel.constants.js.map +1 -1
- package/dist/modules/otel/otel.service.js +2 -1
- package/dist/modules/otel/otel.service.js.map +1 -1
- package/dist/modules/otel/tracing-context.d.ts +1 -0
- package/dist/modules/otel/tracing-context.js.map +1 -1
- package/dist/modules/policy-infrastructure/policy-decision-audit.d.ts +2 -0
- package/dist/modules/policy-infrastructure/policy-decision-audit.js +15 -11
- package/dist/modules/policy-infrastructure/policy-decision-audit.js.map +1 -1
- package/dist/modules/policy-infrastructure/policy-decision.service.js +1 -0
- package/dist/modules/policy-infrastructure/policy-decision.service.js.map +1 -1
- package/dist/modules/promotions.ee/base-branch-files.d.ts +3 -3
- package/dist/modules/promotions.ee/base-branch-files.js.map +1 -1
- package/dist/modules/promotions.ee/branch-placement.d.ts +6 -7
- package/dist/modules/promotions.ee/branch-placement.js +19 -18
- package/dist/modules/promotions.ee/branch-placement.js.map +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.d.ts +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js +13 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js.map +1 -1
- package/dist/modules/promotions.ee/git-hosts/git-host-clients.d.ts +8 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-clients.js +28 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-clients.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/git-host.types.d.ts +7 -0
- package/dist/modules/promotions.ee/git-hosts/git-host.types.js +3 -0
- package/dist/modules/promotions.ee/git-hosts/git-host.types.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.d.ts +10 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +151 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js.map +1 -0
- package/dist/modules/promotions.ee/import-manifest-bridge.d.ts +2 -0
- package/dist/modules/promotions.ee/import-manifest-bridge.js +20 -14
- package/dist/modules/promotions.ee/import-manifest-bridge.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.d.ts +6 -1
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.js +35 -3
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-change.service.js +12 -6
- package/dist/modules/promotions.ee/promotion-change.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-connections.service.d.ts +1 -1
- package/dist/modules/promotions.ee/promotion-providers.service.d.ts +10 -4
- package/dist/modules/promotions.ee/promotion-providers.service.js +100 -29
- package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.service.js +41 -14
- package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.types.d.ts +2 -0
- package/dist/modules/promotions.ee/working-copy-updater.d.ts +3 -1
- package/dist/modules/promotions.ee/working-copy-updater.js +51 -29
- package/dist/modules/promotions.ee/working-copy-updater.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.module.js +9 -3
- package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +5 -2
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +2 -2
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/provisioning.ee/role-mapping-provider.ee.d.ts +14 -0
- package/dist/modules/provisioning.ee/role-mapping-provider.ee.js +33 -0
- package/dist/modules/provisioning.ee/role-mapping-provider.ee.js.map +1 -0
- package/dist/modules/provisioning.ee/role-resolver-types.d.ts +2 -41
- package/dist/modules/provisioning.ee/role-resolver.service.ee.d.ts +2 -2
- package/dist/modules/provisioning.ee/role-resolver.service.ee.js +5 -9
- package/dist/modules/provisioning.ee/role-resolver.service.ee.js.map +1 -1
- package/dist/modules/scim/database/scim-api-key.repository.d.ts +11 -0
- package/dist/modules/scim/database/scim-api-key.repository.js +51 -0
- package/dist/modules/scim/database/scim-api-key.repository.js.map +1 -0
- package/dist/modules/scim/scim-auth.middleware.d.ts +14 -0
- package/dist/modules/scim/scim-auth.middleware.js +80 -0
- package/dist/modules/scim/scim-auth.middleware.js.map +1 -0
- package/dist/modules/scim/scim-discovery.controller.d.ts +7 -0
- package/dist/modules/scim/scim-discovery.controller.js +90 -0
- package/dist/modules/scim/scim-discovery.controller.js.map +1 -0
- package/dist/modules/scim/scim-route.d.ts +9 -0
- package/dist/modules/scim/scim-route.js +17 -0
- package/dist/modules/scim/scim-route.js.map +1 -0
- package/dist/modules/scim/scim-settings.service.d.ts +9 -0
- package/dist/modules/scim/scim-settings.service.js +41 -0
- package/dist/modules/scim/scim-settings.service.js.map +1 -0
- package/dist/modules/scim/scim-token.controller.d.ts +17 -0
- package/dist/modules/scim/scim-token.controller.js +115 -0
- package/dist/modules/scim/scim-token.controller.js.map +1 -0
- package/dist/modules/scim/scim-token.service.d.ts +23 -0
- package/dist/modules/scim/scim-token.service.js +83 -0
- package/dist/modules/scim/scim-token.service.js.map +1 -0
- package/dist/modules/scim/scim.config.d.ts +3 -0
- package/dist/modules/scim/scim.config.js +28 -0
- package/dist/modules/scim/scim.config.js.map +1 -0
- package/dist/modules/scim/scim.module.d.ts +8 -0
- package/dist/modules/scim/scim.module.js +36 -0
- package/dist/modules/scim/scim.module.js.map +1 -0
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +13 -2
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.service.ee.js +12 -7
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
- package/dist/modules/token-exchange/services/jwks-resolver.js +1 -3
- package/dist/modules/token-exchange/services/jwks-resolver.js.map +1 -1
- package/dist/modules/token-exchange/services/token-exchange.service.js.map +1 -1
- package/dist/modules/token-exchange/services/trusted-key.service.js +0 -2
- package/dist/modules/token-exchange/services/trusted-key.service.js.map +1 -1
- package/dist/modules/token-exchange/token-exchange.schemas.d.ts +6 -6
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.d.ts +4 -4
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js +3 -3
- 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 +2 -2
- package/dist/modules/type-availability-policies/credential-type-policy-project.controller.js +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy-project.controller.js.map +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy.check.d.ts +2 -1
- package/dist/modules/type-availability-policies/credential-type-policy.check.js +5 -0
- package/dist/modules/type-availability-policies/credential-type-policy.check.js.map +1 -1
- package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.d.ts +25 -0
- package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.js +43 -0
- package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.js.map +1 -0
- package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.d.ts +8 -0
- package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.js +49 -0
- package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.js.map +1 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.d.ts +1 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.js +23 -19
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.js.map +1 -1
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.d.ts +4 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js +8 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js.map +1 -1
- package/dist/modules/type-availability-policies/package-resolver.d.ts +2 -1
- package/dist/modules/type-availability-policies/package-resolver.js +28 -4
- package/dist/modules/type-availability-policies/package-resolver.js.map +1 -1
- package/dist/modules/type-availability-policies/policy-evaluator.d.ts +1 -0
- package/dist/modules/type-availability-policies/policy-evaluator.js +2 -0
- package/dist/modules/type-availability-policies/policy-evaluator.js.map +1 -1
- package/dist/modules/type-availability-policies/policy-shadow-lint.js +28 -6
- 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 +15 -0
- package/dist/modules/type-availability-policies/restricted-node-types.provider.js +64 -0
- package/dist/modules/type-availability-policies/restricted-node-types.provider.js.map +1 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.js +4 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy.service.d.ts +8 -0
- package/dist/modules/type-availability-policies/type-availability-policy.service.js +75 -21
- package/dist/modules/type-availability-policies/type-availability-policy.service.js.map +1 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.d.ts +3 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.js +16 -2
- package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
- package/dist/modules/workflow-index/workflow-dependency.controller.js +1 -1
- package/dist/modules/workflow-index/workflow-dependency.controller.js.map +1 -1
- package/dist/node-catalog/index.d.ts +1 -0
- package/dist/node-catalog/index.js +4 -1
- package/dist/node-catalog/index.js.map +1 -1
- package/dist/node-catalog/module-gated-node-types.d.ts +3 -0
- package/dist/node-catalog/module-gated-node-types.js +26 -0
- package/dist/node-catalog/module-gated-node-types.js.map +1 -0
- package/dist/node-catalog/node-catalog.service.d.ts +3 -2
- package/dist/node-catalog/node-catalog.service.js +15 -6
- package/dist/node-catalog/node-catalog.service.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.d.ts +5 -1
- package/dist/node-execution/ephemeral-node-executor.js +37 -12
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/node-execution/index.d.ts +1 -0
- package/dist/node-execution/index.js +3 -1
- package/dist/node-execution/index.js.map +1 -1
- package/dist/node-execution/resolve-tool-node-type.d.ts +1 -0
- package/dist/node-execution/resolve-tool-node-type.js +19 -0
- package/dist/node-execution/resolve-tool-node-type.js.map +1 -0
- package/dist/policy/policed-agent-nodes.d.ts +3 -0
- package/dist/policy/policed-agent-nodes.js +91 -0
- package/dist/policy/policed-agent-nodes.js.map +1 -0
- package/dist/policy/policy-enforcement-backend.d.ts +2 -1
- package/dist/policy/policy-enforcement.service.d.ts +3 -1
- package/dist/policy/policy-enforcement.service.js +35 -10
- package/dist/policy/policy-enforcement.service.js.map +1 -1
- package/dist/policy/policy-violation.error.js +1 -6
- package/dist/policy/policy-violation.error.js.map +1 -1
- package/dist/posthog/index.js +1 -1
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/idempotency-key-cleanup.task.d.ts +14 -0
- package/dist/public-api/idempotency-key-cleanup.task.js +45 -0
- package/dist/public-api/idempotency-key-cleanup.task.js.map +1 -0
- package/dist/public-api/idempotency-key.service.d.ts +7 -0
- package/dist/public-api/idempotency-key.service.js +35 -0
- package/dist/public-api/idempotency-key.service.js.map +1 -0
- package/dist/public-api/index.js +1 -3
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/media-types/binary-response.d.ts +3 -0
- package/dist/public-api/media-types/binary-response.js +79 -0
- package/dist/public-api/media-types/binary-response.js.map +1 -0
- package/dist/public-api/public-api-controller.registry.js +6 -0
- package/dist/public-api/public-api-controller.registry.js.map +1 -1
- package/dist/public-api/public-api-route-resolver.d.ts +2 -1
- package/dist/public-api/public-api-route-resolver.js +1 -0
- package/dist/public-api/public-api-route-resolver.js.map +1 -1
- package/dist/public-api/types.d.ts +1 -43
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.d.ts +10 -10
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js +13 -13
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/index.d.ts +1 -0
- package/dist/public-api/v1/controllers/index.js +1 -0
- package/dist/public-api/v1/controllers/index.js.map +1 -1
- package/dist/public-api/v1/controllers/insights.public.controller.d.ts +1 -1
- package/dist/public-api/v1/controllers/insights.public.controller.js +2 -2
- package/dist/public-api/v1/controllers/insights.public.controller.js.map +1 -1
- package/dist/public-api/v1/{handlers/log-streaming → controllers}/log-streaming.mapper.d.ts +20 -20
- package/dist/public-api/v1/{handlers/log-streaming → controllers}/log-streaming.mapper.js +10 -10
- package/dist/public-api/v1/controllers/log-streaming.mapper.js.map +1 -0
- package/dist/public-api/v1/controllers/log-streaming.public.controller.d.ts +23 -1
- package/dist/public-api/v1/controllers/log-streaming.public.controller.js +161 -1
- package/dist/public-api/v1/controllers/log-streaming.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.d.ts +13 -0
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.js +134 -0
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.js.map +1 -0
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +13 -6
- 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 +9 -0
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js +55 -0
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js.map +1 -0
- package/dist/public-api/v1/controllers/otel.public.controller.js +1 -1
- package/dist/public-api/v1/controllers/otel.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/promotions.public.controller.js +6 -5
- package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +2 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.js +35 -4
- package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +2 -20
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +17 -105
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.d.ts +27 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.js +37 -14
- package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/generate.js +2 -2
- package/dist/public-api/v1/openapi-gen/generate.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/object-union-type.d.ts +1 -0
- package/dist/public-api/v1/openapi-gen/object-union-type.js +33 -0
- package/dist/public-api/v1/openapi-gen/object-union-type.js.map +1 -0
- package/dist/public-api/v1/openapi-gen/schema-modifiers.d.ts +1 -0
- package/dist/public-api/v1/openapi-gen/schema-modifiers.js +12 -0
- package/dist/public-api/v1/openapi-gen/schema-modifiers.js.map +1 -0
- package/dist/public-api/v1/openapi.yml +10389 -8020
- package/dist/public-api/v1/shared/otel.mapper.js +2 -0
- package/dist/public-api/v1/shared/otel.mapper.js.map +1 -1
- package/dist/public-api/v1/shared/services/pagination.service.js +1 -1
- package/dist/public-api/v1/shared/services/pagination.service.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/job-processor.d.ts +7 -1
- package/dist/scaling/job-processor.js +32 -26
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/job-return.d.ts +3 -0
- package/dist/scaling/job-return.js +33 -0
- package/dist/scaling/job-return.js.map +1 -0
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
- package/dist/scaling/scaling.service.d.ts +2 -0
- package/dist/scaling/scaling.service.js +37 -3
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/scheduling/durable-job-provisioner.d.ts +3 -2
- package/dist/scheduling/durable-job-provisioner.js +34 -71
- package/dist/scheduling/durable-job-provisioner.js.map +1 -1
- package/dist/scheduling/durable-scheduler.js +0 -9
- package/dist/scheduling/durable-scheduler.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.d.ts +1 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +2 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.d.ts +5 -5
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js +59 -95
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js.map +1 -1
- package/dist/scheduling/system-tasks/main-system-tasks.js +17 -5
- package/dist/scheduling/system-tasks/main-system-tasks.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-handler.d.ts +2 -2
- package/dist/scheduling/system-tasks/system-task-handler.js +4 -4
- package/dist/scheduling/system-tasks/system-task-handler.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-job-registrar.js +2 -1
- package/dist/scheduling/system-tasks/system-task-job-registrar.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-run-observer.d.ts +3 -3
- package/dist/scheduling/system-tasks/system-task-run-observer.js +14 -6
- package/dist/scheduling/system-tasks/system-task-run-observer.js.map +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.js +1 -0
- package/dist/server.js.map +1 -1
- package/dist/services/ai-preference.service.d.ts +2 -1
- package/dist/services/ai-preference.service.js +10 -0
- package/dist/services/ai-preference.service.js.map +1 -1
- package/dist/services/database-independent-routes.service.d.ts +5 -0
- package/dist/services/database-independent-routes.service.js +29 -0
- package/dist/services/database-independent-routes.service.js.map +1 -0
- package/dist/services/frontend.service.d.ts +3 -0
- package/dist/services/frontend.service.js +12 -1
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/jwt.service.d.ts +4 -3
- package/dist/services/jwt.service.js +9 -6
- package/dist/services/jwt.service.js.map +1 -1
- package/dist/services/oauth-token-verifier-proxy.service.d.ts +0 -2
- package/dist/services/oauth-token-verifier-proxy.service.js +0 -6
- package/dist/services/oauth-token-verifier-proxy.service.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +6 -1
- package/dist/services/ownership-transfer/ownership-transfer.service.d.ts +9 -2
- package/dist/services/ownership-transfer/ownership-transfer.service.js +27 -2
- package/dist/services/ownership-transfer/ownership-transfer.service.js.map +1 -1
- package/dist/services/ownership.service.d.ts +4 -6
- package/dist/services/ownership.service.js +7 -38
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +2 -0
- package/dist/services/project.service.ee.js +13 -0
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/pruning/execution-pruning-hard-delete.task.d.ts +17 -0
- package/dist/{modules/insights/insights-pruning.task.js → services/pruning/execution-pruning-hard-delete.task.js} +17 -15
- package/dist/services/pruning/execution-pruning-hard-delete.task.js.map +1 -0
- package/dist/services/pruning/execution-pruning-soft-delete.task.d.ts +4 -2
- package/dist/services/pruning/execution-pruning-soft-delete.task.js +4 -2
- package/dist/services/pruning/execution-pruning-soft-delete.task.js.map +1 -1
- package/dist/services/pruning/executions-pruning.service.d.ts +6 -18
- package/dist/services/pruning/executions-pruning.service.js +54 -88
- package/dist/services/pruning/executions-pruning.service.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction-optimize.task.d.ts +1 -0
- package/dist/services/pruning/workflow-history-compaction-optimize.task.js +1 -0
- 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 -0
- package/dist/services/pruning/workflow-history-compaction-trim.task.js +8 -6
- package/dist/services/pruning/workflow-history-compaction-trim.task.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction.service.d.ts +1 -5
- package/dist/services/pruning/workflow-history-compaction.service.js +14 -19
- package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction.utils.d.ts +6 -0
- package/dist/services/pruning/workflow-history-compaction.utils.js +14 -0
- package/dist/services/pruning/workflow-history-compaction.utils.js.map +1 -0
- package/dist/services/pruning/workflow-history-pruning.task.d.ts +4 -1
- package/dist/services/pruning/workflow-history-pruning.task.js +5 -2
- package/dist/services/pruning/workflow-history-pruning.task.js.map +1 -1
- package/dist/services/role-mapping-proxy.service.d.ts +53 -0
- package/dist/{modules/favorites/favorite-resource-resolver.registry.js → services/role-mapping-proxy.service.js} +11 -11
- package/dist/services/role-mapping-proxy.service.js.map +1 -0
- package/dist/services/token-purposes.d.ts +2 -0
- package/dist/services/token-purposes.js +2 -0
- package/dist/services/token-purposes.js.map +1 -1
- package/dist/services/user.service.js +1 -0
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/workflow-statistics-rollup.service.d.ts +6 -17
- package/dist/services/workflow-statistics-rollup.service.js +26 -77
- package/dist/services/workflow-statistics-rollup.service.js.map +1 -1
- package/dist/services/workflow-statistics-rollup.task.d.ts +14 -0
- package/dist/services/workflow-statistics-rollup.task.js +43 -0
- package/dist/services/workflow-statistics-rollup.task.js.map +1 -0
- package/dist/services/workflow-statistics.service.js +10 -18
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/telemetry/index.d.ts +10 -4
- package/dist/telemetry/index.js +51 -30
- package/dist/telemetry/index.js.map +1 -1
- package/dist/tool-generation/hitl-tools.js +5 -0
- package/dist/tool-generation/hitl-tools.js.map +1 -1
- package/dist/user-management/email/templates/agent-budget-alert.handlebars +196 -0
- package/dist/user-management/email/user-management-mailer.d.ts +8 -1
- package/dist/user-management/email/user-management-mailer.js +16 -0
- package/dist/user-management/email/user-management-mailer.js.map +1 -1
- package/dist/wait-tracker.js +1 -0
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.js +7 -6
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.d.ts +4 -1
- package/dist/webhooks/webhook-helpers.js +14 -3
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +2 -1
- package/dist/workflow-execute-additional-data.js +17 -8
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-runner.d.ts +2 -2
- package/dist/workflow-runner.js +9 -12
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/execution-timeout-validation.d.ts +2 -0
- package/dist/workflows/execution-timeout-validation.js +16 -0
- package/dist/workflows/execution-timeout-validation.js.map +1 -0
- package/dist/workflows/restricted-node-types-provider-proxy.service.d.ts +9 -0
- package/dist/workflows/restricted-node-types-provider-proxy.service.js +26 -0
- package/dist/workflows/restricted-node-types-provider-proxy.service.js.map +1 -0
- package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +8 -5
- package/dist/workflows/triggers/trigger-execution-context.factory.js +9 -10
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +9 -3
- package/dist/workflows/workflow-finder.service.js +6 -5
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.controller.d.ts +2 -2
- package/dist/workflows/workflow-history/workflow-history.controller.js +9 -6
- package/dist/workflows/workflow-history/workflow-history.controller.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.d.ts +27 -11
- package/dist/workflows/workflow-history/workflow-history.service.js +56 -34
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.d.ts +1 -1
- package/dist/workflows/workflow-validation.service.js +2 -2
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +44 -17
- package/dist/workflows/workflow.service.ee.d.ts +5 -3
- package/dist/workflows/workflow.service.ee.js +35 -9
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +81 -24
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.js +5 -1
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +42 -40
- package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.d.ts +0 -2
- package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.js +0 -159
- package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.js.map +0 -1
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.d.ts +0 -10
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js +0 -47
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js.map +0 -1
- package/dist/modules/favorites/favorite-resource-resolver.registry.d.ts +0 -17
- package/dist/modules/favorites/favorite-resource-resolver.registry.js.map +0 -1
- package/dist/modules/insights/database/entities/insights-by-period.d.ts +0 -17
- package/dist/modules/insights/database/entities/insights-by-period.js +0 -73
- package/dist/modules/insights/database/entities/insights-by-period.js.map +0 -1
- package/dist/modules/insights/database/entities/insights-metadata.d.ts +0 -8
- package/dist/modules/insights/database/entities/insights-metadata.js +0 -40
- package/dist/modules/insights/database/entities/insights-metadata.js.map +0 -1
- package/dist/modules/insights/database/entities/insights-raw.d.ts +0 -13
- package/dist/modules/insights/database/entities/insights-raw.js +0 -61
- package/dist/modules/insights/database/entities/insights-raw.js.map +0 -1
- package/dist/modules/insights/database/entities/insights-shared.d.ts +0 -21
- package/dist/modules/insights/database/entities/insights-shared.js +0 -30
- package/dist/modules/insights/database/entities/insights-shared.js.map +0 -1
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.d.ts +0 -15
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js +0 -45
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js.map +0 -1
- package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +0 -100
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js +0 -347
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js.map +0 -1
- package/dist/modules/insights/database/repositories/insights-metadata.repository.d.ts +0 -7
- package/dist/modules/insights/database/repositories/insights-metadata.repository.js +0 -36
- package/dist/modules/insights/database/repositories/insights-metadata.repository.js.map +0 -1
- package/dist/modules/insights/database/repositories/insights-raw.repository.d.ts +0 -12
- package/dist/modules/insights/database/repositories/insights-raw.repository.js +0 -36
- package/dist/modules/insights/database/repositories/insights-raw.repository.js.map +0 -1
- package/dist/modules/insights/insights-collection.service.d.ts +0 -30
- package/dist/modules/insights/insights-collection.service.js +0 -280
- package/dist/modules/insights/insights-collection.service.js.map +0 -1
- package/dist/modules/insights/insights-compaction.service.d.ts +0 -19
- package/dist/modules/insights/insights-compaction.service.js +0 -161
- package/dist/modules/insights/insights-compaction.service.js.map +0 -1
- package/dist/modules/insights/insights-compaction.task.d.ts +0 -14
- package/dist/modules/insights/insights-compaction.task.js.map +0 -1
- package/dist/modules/insights/insights-pruning.service.d.ts +0 -11
- package/dist/modules/insights/insights-pruning.service.js +0 -49
- package/dist/modules/insights/insights-pruning.service.js.map +0 -1
- package/dist/modules/insights/insights-pruning.task.d.ts +0 -15
- package/dist/modules/insights/insights-pruning.task.js.map +0 -1
- package/dist/modules/insights/insights.config.d.ts +0 -13
- package/dist/modules/insights/insights.config.js +0 -80
- package/dist/modules/insights/insights.config.js.map +0 -1
- package/dist/modules/insights/insights.constants.d.ts +0 -4
- package/dist/modules/insights/insights.constants.js +0 -24
- package/dist/modules/insights/insights.constants.js.map +0 -1
- package/dist/modules/insights/insights.controller.d.ts +0 -16
- package/dist/modules/insights/insights.controller.js +0 -159
- package/dist/modules/insights/insights.controller.js.map +0 -1
- package/dist/modules/insights/insights.module.d.ts +0 -17
- package/dist/modules/insights/insights.module.js +0 -51
- package/dist/modules/insights/insights.module.js.map +0 -1
- package/dist/modules/insights/insights.service.d.ts +0 -73
- package/dist/modules/insights/insights.service.js +0 -257
- package/dist/modules/insights/insights.service.js.map +0 -1
- package/dist/modules/insights/insights.settings.d.ts +0 -20
- package/dist/modules/insights/insights.settings.js +0 -48
- package/dist/modules/insights/insights.settings.js.map +0 -1
- package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.d.ts +0 -12
- package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.js +0 -107
- package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.js.map +0 -1
- package/dist/public-api/v1/handlers/log-streaming/log-streaming.mapper.js.map +0 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +0 -7
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js +0 -31
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +0 -1
|
@@ -16,20 +16,27 @@ exports.AgentEvalsController = void 0;
|
|
|
16
16
|
const api_types_1 = require("@n8n/api-types");
|
|
17
17
|
const decorators_1 = require("@n8n/decorators");
|
|
18
18
|
const errors_1 = require("@n8n/errors");
|
|
19
|
+
const collaboration_service_1 = require("../../collaboration/collaboration.service");
|
|
19
20
|
const agent_eval_rating_service_1 = require("./agent-eval-rating.service");
|
|
20
21
|
const agent_eval_service_1 = require("./agent-eval.service");
|
|
21
22
|
const agent_evals_flag_gate_1 = require("./agent-evals-flag-gate");
|
|
22
23
|
let AgentEvalsController = class AgentEvalsController {
|
|
23
|
-
constructor(service, ratingService, flagGate) {
|
|
24
|
+
constructor(service, ratingService, flagGate, collaborationService) {
|
|
24
25
|
this.service = service;
|
|
25
26
|
this.ratingService = ratingService;
|
|
26
27
|
this.flagGate = flagGate;
|
|
28
|
+
this.collaborationService = collaborationService;
|
|
27
29
|
}
|
|
28
30
|
async listDatasets(req) {
|
|
29
31
|
await this.flagGate.assertEnabled(req.user);
|
|
30
32
|
const { agentId, projectId } = req.params;
|
|
31
33
|
return await this.service.listDatasets(agentId, projectId);
|
|
32
34
|
}
|
|
35
|
+
async createDraftDataset(req, _res, payload) {
|
|
36
|
+
await this.flagGate.assertEnabled(req.user);
|
|
37
|
+
const { agentId, projectId } = req.params;
|
|
38
|
+
return await this.service.createDraftDataset(req.user, agentId, projectId, payload.datasetName);
|
|
39
|
+
}
|
|
33
40
|
async createDataset(req) {
|
|
34
41
|
await this.flagGate.assertEnabled(req.user);
|
|
35
42
|
const { agentId, projectId } = req.params;
|
|
@@ -49,6 +56,12 @@ let AgentEvalsController = class AgentEvalsController {
|
|
|
49
56
|
const { agentId, projectId, datasetId } = req.params;
|
|
50
57
|
return await this.service.updateDataset(agentId, projectId, datasetId, payload);
|
|
51
58
|
}
|
|
59
|
+
async deleteDraftDataset(req) {
|
|
60
|
+
await this.flagGate.assertEnabled(req.user);
|
|
61
|
+
const { agentId, projectId, datasetId } = req.params;
|
|
62
|
+
await this.service.deleteDraftDataset(req.user, agentId, projectId, datasetId);
|
|
63
|
+
return { success: true };
|
|
64
|
+
}
|
|
52
65
|
async deleteDataset(req) {
|
|
53
66
|
await this.flagGate.assertEnabled(req.user);
|
|
54
67
|
const { agentId, projectId, datasetId } = req.params;
|
|
@@ -60,6 +73,18 @@ let AgentEvalsController = class AgentEvalsController {
|
|
|
60
73
|
const { agentId, projectId } = req.params;
|
|
61
74
|
return await this.service.generateDraftCases(req.user, agentId, projectId, payload);
|
|
62
75
|
}
|
|
76
|
+
async previewRun(req, _res, payload) {
|
|
77
|
+
await this.flagGate.assertEnabled(req.user);
|
|
78
|
+
const { agentId, projectId } = req.params;
|
|
79
|
+
return await this.service.previewRun(req.user, agentId, projectId, payload);
|
|
80
|
+
}
|
|
81
|
+
async applyPreviewSuggestion(req, _res, payload) {
|
|
82
|
+
await this.flagGate.assertEnabled(req.user);
|
|
83
|
+
const { agentId, projectId } = req.params;
|
|
84
|
+
const pushRef = req.headers?.['push-ref'];
|
|
85
|
+
await this.collaborationService.validateAgentWriteLock(req.user.id, pushRef, projectId, agentId, 'update');
|
|
86
|
+
return await this.service.applyPreviewSuggestion(req.user, agentId, projectId, payload, pushRef);
|
|
87
|
+
}
|
|
63
88
|
async startRun(req, _res, payload) {
|
|
64
89
|
await this.flagGate.assertEnabled(req.user);
|
|
65
90
|
const { agentId, projectId, datasetId } = req.params;
|
|
@@ -85,6 +110,29 @@ let AgentEvalsController = class AgentEvalsController {
|
|
|
85
110
|
const { agentId, projectId, runId } = req.params;
|
|
86
111
|
return await this.service.cancelRun(agentId, projectId, runId);
|
|
87
112
|
}
|
|
113
|
+
async rerunResult(req, _res, payload) {
|
|
114
|
+
await this.flagGate.assertEnabled(req.user);
|
|
115
|
+
const { agentId, projectId, resultId } = req.params;
|
|
116
|
+
return await this.service.rerunResult(req.user, agentId, projectId, resultId, payload);
|
|
117
|
+
}
|
|
118
|
+
async applySuggestions(req, _res, payload) {
|
|
119
|
+
await this.flagGate.assertEnabled(req.user);
|
|
120
|
+
const { agentId, projectId } = req.params;
|
|
121
|
+
const pushRef = req.headers?.['push-ref'];
|
|
122
|
+
await this.collaborationService.validateAgentWriteLock(req.user.id, pushRef, projectId, agentId, 'update');
|
|
123
|
+
return await this.service.applySuggestions(req.user, agentId, projectId, payload.resultIds, pushRef);
|
|
124
|
+
}
|
|
125
|
+
async acceptResult(req) {
|
|
126
|
+
await this.flagGate.assertEnabled(req.user);
|
|
127
|
+
const { agentId, projectId, resultId } = req.params;
|
|
128
|
+
return await this.service.acceptResult(agentId, projectId, resultId);
|
|
129
|
+
}
|
|
130
|
+
async deleteResult(req) {
|
|
131
|
+
await this.flagGate.assertEnabled(req.user);
|
|
132
|
+
const { agentId, projectId, resultId } = req.params;
|
|
133
|
+
await this.service.deleteResult(agentId, projectId, resultId);
|
|
134
|
+
return { success: true };
|
|
135
|
+
}
|
|
88
136
|
async rateResult(req, _res, payload) {
|
|
89
137
|
await this.flagGate.assertEnabled(req.user);
|
|
90
138
|
const { agentId, projectId, resultId } = req.params;
|
|
@@ -109,6 +157,14 @@ __decorate([
|
|
|
109
157
|
__metadata("design:paramtypes", [Object]),
|
|
110
158
|
__metadata("design:returntype", Promise)
|
|
111
159
|
], AgentEvalsController.prototype, "listDatasets", null);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, decorators_1.Post)('/:agentId/evals/datasets/draft'),
|
|
162
|
+
(0, decorators_1.ProjectScope)('agent:update'),
|
|
163
|
+
__param(2, decorators_1.Body),
|
|
164
|
+
__metadata("design:type", Function),
|
|
165
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.CreateDraftDatasetOptionsDto]),
|
|
166
|
+
__metadata("design:returntype", Promise)
|
|
167
|
+
], AgentEvalsController.prototype, "createDraftDataset", null);
|
|
112
168
|
__decorate([
|
|
113
169
|
(0, decorators_1.Post)('/:agentId/evals/datasets'),
|
|
114
170
|
(0, decorators_1.ProjectScope)('agent:update'),
|
|
@@ -131,6 +187,13 @@ __decorate([
|
|
|
131
187
|
__metadata("design:paramtypes", [Object, Object, api_types_1.UpdateAgentEvalDatasetDto]),
|
|
132
188
|
__metadata("design:returntype", Promise)
|
|
133
189
|
], AgentEvalsController.prototype, "updateDataset", null);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, decorators_1.Delete)('/:agentId/evals/datasets/:datasetId/draft'),
|
|
192
|
+
(0, decorators_1.ProjectScope)('agent:update'),
|
|
193
|
+
__metadata("design:type", Function),
|
|
194
|
+
__metadata("design:paramtypes", [Object]),
|
|
195
|
+
__metadata("design:returntype", Promise)
|
|
196
|
+
], AgentEvalsController.prototype, "deleteDraftDataset", null);
|
|
134
197
|
__decorate([
|
|
135
198
|
(0, decorators_1.Delete)('/:agentId/evals/datasets/:datasetId'),
|
|
136
199
|
(0, decorators_1.ProjectScope)('agent:update'),
|
|
@@ -146,6 +209,22 @@ __decorate([
|
|
|
146
209
|
__metadata("design:paramtypes", [Object, Object, api_types_1.GenerateDraftCasesOptionsDto]),
|
|
147
210
|
__metadata("design:returntype", Promise)
|
|
148
211
|
], AgentEvalsController.prototype, "generateDraftCases", null);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, decorators_1.Post)('/:agentId/evals/preview-run'),
|
|
214
|
+
(0, decorators_1.ProjectScope)('agent:update'),
|
|
215
|
+
__param(2, decorators_1.Body),
|
|
216
|
+
__metadata("design:type", Function),
|
|
217
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.PreviewRunOptionsDto]),
|
|
218
|
+
__metadata("design:returntype", Promise)
|
|
219
|
+
], AgentEvalsController.prototype, "previewRun", null);
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, decorators_1.Post)('/:agentId/evals/preview-run/apply-suggestion'),
|
|
222
|
+
(0, decorators_1.ProjectScope)('agent:update'),
|
|
223
|
+
__param(2, decorators_1.Body),
|
|
224
|
+
__metadata("design:type", Function),
|
|
225
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.ApplyPreviewSuggestionDto]),
|
|
226
|
+
__metadata("design:returntype", Promise)
|
|
227
|
+
], AgentEvalsController.prototype, "applyPreviewSuggestion", null);
|
|
149
228
|
__decorate([
|
|
150
229
|
(0, decorators_1.Post)('/:agentId/evals/datasets/:datasetId/runs'),
|
|
151
230
|
(0, decorators_1.ProjectScope)('agent:execute'),
|
|
@@ -184,6 +263,36 @@ __decorate([
|
|
|
184
263
|
__metadata("design:paramtypes", [Object]),
|
|
185
264
|
__metadata("design:returntype", Promise)
|
|
186
265
|
], AgentEvalsController.prototype, "cancelRun", null);
|
|
266
|
+
__decorate([
|
|
267
|
+
(0, decorators_1.Post)('/:agentId/evals/results/:resultId/rerun'),
|
|
268
|
+
(0, decorators_1.ProjectScope)('agent:execute'),
|
|
269
|
+
__param(2, decorators_1.Body),
|
|
270
|
+
__metadata("design:type", Function),
|
|
271
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.RerunResultOptionsDto]),
|
|
272
|
+
__metadata("design:returntype", Promise)
|
|
273
|
+
], AgentEvalsController.prototype, "rerunResult", null);
|
|
274
|
+
__decorate([
|
|
275
|
+
(0, decorators_1.Post)('/:agentId/evals/apply-suggestions'),
|
|
276
|
+
(0, decorators_1.ProjectScope)('agent:update'),
|
|
277
|
+
__param(2, decorators_1.Body),
|
|
278
|
+
__metadata("design:type", Function),
|
|
279
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.ApplyAgentEvalSuggestionsDto]),
|
|
280
|
+
__metadata("design:returntype", Promise)
|
|
281
|
+
], AgentEvalsController.prototype, "applySuggestions", null);
|
|
282
|
+
__decorate([
|
|
283
|
+
(0, decorators_1.Post)('/:agentId/evals/results/:resultId/accept'),
|
|
284
|
+
(0, decorators_1.ProjectScope)('agent:update'),
|
|
285
|
+
__metadata("design:type", Function),
|
|
286
|
+
__metadata("design:paramtypes", [Object]),
|
|
287
|
+
__metadata("design:returntype", Promise)
|
|
288
|
+
], AgentEvalsController.prototype, "acceptResult", null);
|
|
289
|
+
__decorate([
|
|
290
|
+
(0, decorators_1.Delete)('/:agentId/evals/results/:resultId'),
|
|
291
|
+
(0, decorators_1.ProjectScope)('agent:update'),
|
|
292
|
+
__metadata("design:type", Function),
|
|
293
|
+
__metadata("design:paramtypes", [Object]),
|
|
294
|
+
__metadata("design:returntype", Promise)
|
|
295
|
+
], AgentEvalsController.prototype, "deleteResult", null);
|
|
187
296
|
__decorate([
|
|
188
297
|
(0, decorators_1.Post)('/:agentId/evals/results/:resultId/ratings'),
|
|
189
298
|
(0, decorators_1.ProjectScope)('agent:update'),
|
|
@@ -208,6 +317,6 @@ __decorate([
|
|
|
208
317
|
], AgentEvalsController.prototype, "listLatestRatingsForRun", null);
|
|
209
318
|
exports.AgentEvalsController = AgentEvalsController = __decorate([
|
|
210
319
|
(0, decorators_1.RestController)('/projects/:projectId/agents/v2'),
|
|
211
|
-
__metadata("design:paramtypes", [agent_eval_service_1.AgentEvalService, agent_eval_rating_service_1.AgentEvalRatingService, agent_evals_flag_gate_1.AgentEvalsFlagGate])
|
|
320
|
+
__metadata("design:paramtypes", [agent_eval_service_1.AgentEvalService, agent_eval_rating_service_1.AgentEvalRatingService, agent_evals_flag_gate_1.AgentEvalsFlagGate, collaboration_service_1.CollaborationService])
|
|
212
321
|
], AgentEvalsController);
|
|
213
322
|
//# sourceMappingURL=agent-evals.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-evals.controller.js","sourceRoot":"","sources":["../../../src/modules/agent-evals/agent-evals.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"agent-evals.controller.js","sourceRoot":"","sources":["../../../src/modules/agent-evals/agent-evals.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAyBwB;AAExB,gDASyB;AAEzB,wCAA8C;AAE9C,iFAA6E;AAE7E,2EAAqE;AACrE,6DAAwD;AACxD,mEAA6D;AAwBtD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAChC,YACkB,OAAyB,EACzB,aAAqC,EACrC,QAA4B,EAC5B,oBAA0C;uBAH1C,OAAO;6BACP,aAAa;wBACb,QAAQ;oCACR,oBAAoB;IACnC,CAAC;IAME,AAAN,KAAK,CAAC,YAAY,CAAC,GAAqC;QACvD,MAAM,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;QAC1C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC5D,CAAC;IAQK,AAAN,KAAK,CAAC,kBAAkB,CACvB,GAAqC,EACrC,IAAa,EACP,OAAqC;QAE3C,MA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iBAAI,EAAC,yCAAyC,CAAC;IAC/C,IAAA,yBAAY,EAAC,eAAe,CAAC;IAI5B,WAAA,iBAAI,CAAA;;qDAAU,iCAAqB;;uDAKpC;AAQK;IAFL,IAAA,iBAAI,EAAC,mCAAmC,CAAC;IACzC,IAAA,yBAAY,EAAC,cAAc,CAAC;IAI3B,WAAA,iBAAI,CAAA;;qDAAU,wCAA4B;;4DAmB3C;AAOK;IAFL,IAAA,iBAAI,EAAC,0CAA0C,CAAC;IAChD,IAAA,yBAAY,EAAC,cAAc,CAAC;;;;wDAK5B;AAOK;IAFL,IAAA,mBAAM,EAAC,mCAAmC,CAAC;IAC3C,IAAA,yBAAY,EAAC,cAAc,CAAC;;;;wDAM5B;AAWK;IAFL,IAAA,iBAAI,EAAC,2CAA2C,CAAC;IACjD,IAAA,yBAAY,EAAC,cAAc,CAAC;IAI3B,WAAA,iBAAI,CAAA;;qDAAU,oCAAwB;;sDAKvC;AAKK;IAFL,IAAA,gBAAG,EAAC,2CAA2C,CAAC;IAChD,IAAA,yBAAY,EAAC,YAAY,CAAC;;;;gEAO1B;AAQK;IAFL,IAAA,gBAAG,EAAC,qCAAqC,CAAC;IAC1C,IAAA,yBAAY,EAAC,YAAY,CAAC;;;;mEAO1B;+BArUW,oBAAoB;IADhC,IAAA,2BAAc,EAAC,gCAAgC,CAAC;qCAGrB,qCAAgB,EACV,kDAAsB,EAC3B,0CAAkB,EACN,4CAAoB;GALhD,oBAAoB,CAsUhC"}
|
|
@@ -5,24 +5,40 @@ export declare const generatedCasesSchema: z.ZodObject<{
|
|
|
5
5
|
cases: z.ZodArray<z.ZodObject<{
|
|
6
6
|
input: z.ZodString;
|
|
7
7
|
whatToCheck: z.ZodString;
|
|
8
|
+
scenario: z.ZodString;
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
9
10
|
input: string;
|
|
10
11
|
whatToCheck: string;
|
|
12
|
+
scenario: string;
|
|
11
13
|
}, {
|
|
12
14
|
input: string;
|
|
13
15
|
whatToCheck: string;
|
|
16
|
+
scenario: string;
|
|
14
17
|
}>, "many">;
|
|
15
18
|
}, "strip", z.ZodTypeAny, {
|
|
16
19
|
cases: {
|
|
17
20
|
input: string;
|
|
18
21
|
whatToCheck: string;
|
|
22
|
+
scenario: string;
|
|
19
23
|
}[];
|
|
20
24
|
}, {
|
|
21
25
|
cases: {
|
|
22
26
|
input: string;
|
|
23
27
|
whatToCheck: string;
|
|
28
|
+
scenario: string;
|
|
24
29
|
}[];
|
|
25
30
|
}>;
|
|
31
|
+
export declare const MAX_INSTRUCTIONS_CHARS = 4000;
|
|
32
|
+
export declare const MAX_CONTEXT_FIELD_CHARS = 2000;
|
|
33
|
+
export interface CaseRevisionContext {
|
|
34
|
+
suggestion: string;
|
|
35
|
+
previousInput: string;
|
|
36
|
+
previousOutput: string;
|
|
37
|
+
}
|
|
38
|
+
export interface CaseExampleContext {
|
|
39
|
+
input: string;
|
|
40
|
+
output: string;
|
|
41
|
+
}
|
|
26
42
|
export interface AgentConfigSummary {
|
|
27
43
|
name: string;
|
|
28
44
|
instructions: string;
|
|
@@ -31,7 +47,8 @@ export interface AgentConfigSummary {
|
|
|
31
47
|
description?: string;
|
|
32
48
|
}>;
|
|
33
49
|
}
|
|
50
|
+
export declare function truncate(text: string, max: number): string;
|
|
34
51
|
export declare function buildAgentSummary(config: AgentJsonConfig): AgentConfigSummary;
|
|
35
52
|
export declare function deriveCapabilities(config: AgentJsonConfig): string[];
|
|
36
53
|
export declare const CASE_GENERATION_SYSTEM_PROMPT: string;
|
|
37
|
-
export declare function buildCaseGenerationUserPrompt(summary: AgentConfigSummary, tuples: DimensionTuple[]): string;
|
|
54
|
+
export declare function buildCaseGenerationUserPrompt(summary: AgentConfigSummary, tuples: DimensionTuple[], revision?: CaseRevisionContext, example?: CaseExampleContext, rule?: string): string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CASE_GENERATION_SYSTEM_PROMPT = exports.generatedCasesSchema = void 0;
|
|
3
|
+
exports.CASE_GENERATION_SYSTEM_PROMPT = exports.MAX_CONTEXT_FIELD_CHARS = exports.MAX_INSTRUCTIONS_CHARS = exports.generatedCasesSchema = void 0;
|
|
4
|
+
exports.truncate = truncate;
|
|
4
5
|
exports.buildAgentSummary = buildAgentSummary;
|
|
5
6
|
exports.deriveCapabilities = deriveCapabilities;
|
|
6
7
|
exports.buildCaseGenerationUserPrompt = buildCaseGenerationUserPrompt;
|
|
@@ -10,10 +11,11 @@ const dimensions_1 = require("./dimensions");
|
|
|
10
11
|
exports.generatedCasesSchema = zod_1.z.object({
|
|
11
12
|
cases: zod_1.z.array(api_types_1.agentEvalDraftCaseSchema),
|
|
12
13
|
});
|
|
13
|
-
|
|
14
|
+
exports.MAX_INSTRUCTIONS_CHARS = 4000;
|
|
14
15
|
const MAX_TOOLS_IN_PROMPT = 30;
|
|
15
16
|
const MAX_TOOL_DESCRIPTION_CHARS = 200;
|
|
16
17
|
const MAX_LABEL_CHARS = 100;
|
|
18
|
+
exports.MAX_CONTEXT_FIELD_CHARS = 2000;
|
|
17
19
|
function truncate(text, max) {
|
|
18
20
|
return text.length > max ? `${text.slice(0, max)}…` : text;
|
|
19
21
|
}
|
|
@@ -31,7 +33,7 @@ function buildAgentSummary(config) {
|
|
|
31
33
|
});
|
|
32
34
|
return {
|
|
33
35
|
name: config.name,
|
|
34
|
-
instructions: truncate(config.instructions ?? '', MAX_INSTRUCTIONS_CHARS),
|
|
36
|
+
instructions: truncate(config.instructions ?? '', exports.MAX_INSTRUCTIONS_CHARS),
|
|
35
37
|
tools,
|
|
36
38
|
};
|
|
37
39
|
}
|
|
@@ -62,26 +64,62 @@ function describeTuple(tuple) {
|
|
|
62
64
|
}
|
|
63
65
|
exports.CASE_GENERATION_SYSTEM_PROMPT = [
|
|
64
66
|
'You generate realistic test cases for evaluating a specific AI agent.',
|
|
65
|
-
'Each test case has
|
|
67
|
+
'Each test case has three fields:',
|
|
66
68
|
'- `input`: a realistic message an end user would actually send this agent.',
|
|
67
69
|
'- `whatToCheck`: a short, plain-language description of what a good response should do — NOT a score, NOT code, NOT a rubric.',
|
|
70
|
+
'- `scenario`: one or two words naming the kind of scenario the case exercises, e.g. "Vague", "Sensitive data", "Upset", "Missing detail", "Other language", "Happy path", "Off topic".',
|
|
68
71
|
'',
|
|
69
72
|
'Rules:',
|
|
70
73
|
'- Ground every case in the actual name, instructions, and tools of the agent below. Do not invent capabilities it does not have.',
|
|
71
74
|
'- These are DRAFTS a human will review and edit. Never assume a single "correct" answer or write grading logic.',
|
|
72
75
|
'- Write one case per numbered scenario, in order, following the guidance for that scenario.',
|
|
73
76
|
'- Keep each `input` natural and self-contained (no placeholders like "<name>").',
|
|
77
|
+
'- Make `scenario` specific to what actually makes that case distinct (the tone, the gap, the trick), not a restatement of the capability or difficulty being exercised.',
|
|
78
|
+
'- When given feedback on a case that already ran, write a new case that directly addresses the feedback — do not repeat the original input.',
|
|
74
79
|
].join('\n');
|
|
75
|
-
function buildCaseGenerationUserPrompt(summary, tuples) {
|
|
80
|
+
function buildCaseGenerationUserPrompt(summary, tuples, revision, example, rule) {
|
|
81
|
+
const intro = ['Here is the agent to write test cases for:', JSON.stringify(summary), ''];
|
|
82
|
+
if (revision) {
|
|
83
|
+
const previousOutput = revision.previousOutput
|
|
84
|
+
? truncate(revision.previousOutput, exports.MAX_CONTEXT_FIELD_CHARS)
|
|
85
|
+
: '(the agent did not produce an output)';
|
|
86
|
+
return [
|
|
87
|
+
...intro,
|
|
88
|
+
'A case that already ran did not go well and needs to be replaced:',
|
|
89
|
+
`Original input: ${truncate(revision.previousInput, exports.MAX_CONTEXT_FIELD_CHARS)}`,
|
|
90
|
+
`Original output: ${previousOutput}`,
|
|
91
|
+
`What should have happened instead: ${truncate(revision.suggestion, exports.MAX_CONTEXT_FIELD_CHARS)}`,
|
|
92
|
+
'',
|
|
93
|
+
'Write exactly 1 replacement test case that addresses this feedback.',
|
|
94
|
+
'Return a JSON object of the form { "cases": [ { "input": "…", "whatToCheck": "…", "scenario": "…" } ] }.',
|
|
95
|
+
].join('\n');
|
|
96
|
+
}
|
|
97
|
+
if (rule) {
|
|
98
|
+
return [
|
|
99
|
+
...intro,
|
|
100
|
+
'The user wants to check that the agent follows this rule:',
|
|
101
|
+
`Rule: ${truncate(rule, exports.MAX_CONTEXT_FIELD_CHARS)}`,
|
|
102
|
+
'',
|
|
103
|
+
'Write exactly 1 test case. Its `input` is a realistic message an end user would send that puts this rule to the test, so a response that breaks the rule is possible. Set `whatToCheck` to the rule in plain language.',
|
|
104
|
+
'Return a JSON object of the form { "cases": [ { "input": "…", "whatToCheck": "…", "scenario": "…" } ] }.',
|
|
105
|
+
].join('\n');
|
|
106
|
+
}
|
|
107
|
+
const exampleSection = example
|
|
108
|
+
? [
|
|
109
|
+
'The user already approved this input and the response it got as a good fit for this agent — match its style and scope when writing new cases:',
|
|
110
|
+
`Example input: ${truncate(example.input, exports.MAX_CONTEXT_FIELD_CHARS)}`,
|
|
111
|
+
`Example output: ${truncate(example.output, exports.MAX_CONTEXT_FIELD_CHARS)}`,
|
|
112
|
+
'',
|
|
113
|
+
]
|
|
114
|
+
: [];
|
|
76
115
|
const scenarios = tuples.map((tuple, i) => `${i + 1}. ${describeTuple(tuple)}`).join('\n');
|
|
77
116
|
return [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
'',
|
|
117
|
+
...intro,
|
|
118
|
+
...exampleSection,
|
|
81
119
|
`Write exactly ${tuples.length} test cases — one for each numbered scenario below, in the same order:`,
|
|
82
120
|
scenarios,
|
|
83
121
|
'',
|
|
84
|
-
'Return a JSON object of the form { "cases": [ { "input": "…", "whatToCheck": "…" }, … ] }.',
|
|
122
|
+
'Return a JSON object of the form { "cases": [ { "input": "…", "whatToCheck": "…", "scenario": "…" }, … ] }.',
|
|
85
123
|
].join('\n');
|
|
86
124
|
}
|
|
87
125
|
//# sourceMappingURL=case-generation-prompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-generation-prompt.js","sourceRoot":"","sources":["../../../../src/modules/agent-evals/case-generation/case-generation-prompt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"case-generation-prompt.js","sourceRoot":"","sources":["../../../../src/modules/agent-evals/case-generation/case-generation-prompt.ts"],"names":[],"mappings":";;;;;;;AAAA,8CAIwB;AACxB,6BAAwB;AAExB,6CAKsB;AAQT,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,oCAAwB,CAAC;CACxC,CAAC,CAAC;AAIU,QAAA,sBAAsB,GAAG,IAAI,CAAC;AAC3C,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,0BAA0B,GAAG,GAAG,CAAC;AAGvC,MAAM,eAAe,GAAG,GAAG,CAAC;AAGf,QAAA,uBAAuB,GAAG,IAAI,CAAC;AA8B5C,kBAAyB,IAAY,EAAE,GAAW;IACjD,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5D,CAAC;AAGD,SAAS,eAAe,CAAC,IAAyB;IACjD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IACzE,OAAO,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;AACxC,CAAC;AAED,2BAAkC,MAAuB;IACxD,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI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AI,CAAC,IAAI,CAAC,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Logger } from '@n8n/backend-common';
|
|
2
|
+
import { UrlService } from '@n8n/backend-services';
|
|
3
|
+
import { GlobalConfig } from '@n8n/config';
|
|
4
|
+
import { ProjectRepository } from '@n8n/db';
|
|
5
|
+
import { UserManagementMailer } from '../../user-management/email';
|
|
6
|
+
import { AgentRepository } from './repositories/agent.repository';
|
|
7
|
+
export interface MonthlyBudgetAlertNotice {
|
|
8
|
+
agentId: string;
|
|
9
|
+
alertThresholdPercent: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class AgentBudgetAlertService {
|
|
12
|
+
private readonly globalConfig;
|
|
13
|
+
private readonly agentRepository;
|
|
14
|
+
private readonly projectRepository;
|
|
15
|
+
private readonly mailer;
|
|
16
|
+
private readonly urlService;
|
|
17
|
+
private readonly logger;
|
|
18
|
+
constructor(globalConfig: GlobalConfig, agentRepository: AgentRepository, projectRepository: ProjectRepository, mailer: UserManagementMailer, urlService: UrlService, logger: Logger);
|
|
19
|
+
notifyMonthlyThreshold(notice: MonthlyBudgetAlertNotice): void;
|
|
20
|
+
private sendMonthlyThresholdEmail;
|
|
21
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgentBudgetAlertService = void 0;
|
|
13
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
14
|
+
const backend_services_1 = require("@n8n/backend-services");
|
|
15
|
+
const config_1 = require("@n8n/config");
|
|
16
|
+
const db_1 = require("@n8n/db");
|
|
17
|
+
const di_1 = require("@n8n/di");
|
|
18
|
+
const email_1 = require("../../user-management/email");
|
|
19
|
+
const agent_repository_1 = require("./repositories/agent.repository");
|
|
20
|
+
let AgentBudgetAlertService = class AgentBudgetAlertService {
|
|
21
|
+
constructor(globalConfig, agentRepository, projectRepository, mailer, urlService, logger) {
|
|
22
|
+
this.globalConfig = globalConfig;
|
|
23
|
+
this.agentRepository = agentRepository;
|
|
24
|
+
this.projectRepository = projectRepository;
|
|
25
|
+
this.mailer = mailer;
|
|
26
|
+
this.urlService = urlService;
|
|
27
|
+
this.logger = logger;
|
|
28
|
+
}
|
|
29
|
+
notifyMonthlyThreshold(notice) {
|
|
30
|
+
if (this.globalConfig.deployment.type !== 'cloud')
|
|
31
|
+
return;
|
|
32
|
+
void this.sendMonthlyThresholdEmail(notice).catch((error) => {
|
|
33
|
+
this.logger.error('Failed to send the agent budget alert email', {
|
|
34
|
+
agentId: notice.agentId,
|
|
35
|
+
error: error instanceof Error ? error.message : String(error),
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
async sendMonthlyThresholdEmail(notice) {
|
|
40
|
+
if (!this.mailer.isEmailSetUp) {
|
|
41
|
+
this.logger.debug('Skipped the agent budget alert email because SMTP is not configured', {
|
|
42
|
+
agentId: notice.agentId,
|
|
43
|
+
});
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const agent = await this.agentRepository.findBudgetAlertTarget(notice.agentId);
|
|
47
|
+
if (!agent) {
|
|
48
|
+
this.logger.debug('Skipped the agent budget alert email because the agent is gone', {
|
|
49
|
+
agentId: notice.agentId,
|
|
50
|
+
});
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const owner = await this.projectRepository.findCreatorContact(agent.projectId);
|
|
54
|
+
if (!owner) {
|
|
55
|
+
this.logger.warn('Skipped the agent budget alert email because the project has no owner', {
|
|
56
|
+
agentId: notice.agentId,
|
|
57
|
+
projectId: agent.projectId,
|
|
58
|
+
});
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const baseUrl = this.urlService.getInstanceBaseUrl();
|
|
62
|
+
const result = await this.mailer.agentBudgetAlert({
|
|
63
|
+
email: owner.email,
|
|
64
|
+
firstName: owner.firstName,
|
|
65
|
+
agentName: agent.name,
|
|
66
|
+
agentUrl: `${baseUrl}/projects/${agent.projectId}/agents/${notice.agentId}`,
|
|
67
|
+
alertThresholdPercent: notice.alertThresholdPercent,
|
|
68
|
+
});
|
|
69
|
+
if (result.emailSent) {
|
|
70
|
+
this.logger.info('Sent the agent budget alert email', {
|
|
71
|
+
agentId: notice.agentId,
|
|
72
|
+
projectId: agent.projectId,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
exports.AgentBudgetAlertService = AgentBudgetAlertService;
|
|
78
|
+
exports.AgentBudgetAlertService = AgentBudgetAlertService = __decorate([
|
|
79
|
+
(0, di_1.Service)(),
|
|
80
|
+
__metadata("design:paramtypes", [config_1.GlobalConfig, agent_repository_1.AgentRepository, db_1.ProjectRepository, email_1.UserManagementMailer, backend_services_1.UrlService, backend_common_1.Logger])
|
|
81
|
+
], AgentBudgetAlertService);
|
|
82
|
+
//# sourceMappingURL=agent-budget-alert.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-budget-alert.service.js","sourceRoot":"","sources":["../../../src/modules/agents/agent-budget-alert.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAA6C;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C,OAAO;aACvB,CAAC,CAAC;YACH,OAAO;QACR,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC/E,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uEAAuE,EAAE;gBACzF,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,SAAS,EAAE,KAAK,CAAC,SAAS;aAC1B,CAAC,CAAC;YACH,OAAO;QACR,CAAC;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAC;QACrD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;YACjD,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,SAAS,EAAE,KAAK,CAAC,IAAI;YACrB,QAAQ,EAAE,GAAG,OAAO,aAAa,KAAK,CAAC,SAAS,WAAW,MAAM,CAAC,OAAO,EAAE;YAC3E,qBAAqB,EAAE,MAAM,CAAC,qBAAqB;SACnD,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YACtB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mCAAmC,EAAE;gBACrD,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,SAAS,EAAE,KAAK,CAAC,SAAS;aAC1B,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;CACD,CAAA;;kCA7DY,uBAAuB;IADnC,IAAA,YAAO,GAAE;qCAGuB,qBAAY,EACT,kCAAe,EACb,sBAAiB,EAC5B,4BAAoB,EAChB,6BAAU,EACd,uBAAM;GAPpB,uBAAuB,CA6DnC"}
|
|
@@ -8,7 +8,11 @@ import { AgentExecutionUpdateBroadcaster } from './agent-execution-update-broadc
|
|
|
8
8
|
import { AgentBackgroundJobService } from './background/agent-background-job.service';
|
|
9
9
|
import { N8NCheckpointStorage } from './integrations/n8n-checkpoint-storage';
|
|
10
10
|
import { AgentExecutionRepository } from './repositories/agent-execution.repository';
|
|
11
|
-
type
|
|
11
|
+
import { type AgentChatSurface } from './utils/agent-thread-access';
|
|
12
|
+
type CancelExecutionPayload = PubSubCommandMap['cancel-agent-chat-execution'];
|
|
13
|
+
type ExecutionContext = Omit<CancelExecutionPayload, 'productionN8nChat'> & {
|
|
14
|
+
surface: AgentChatSurface;
|
|
15
|
+
};
|
|
12
16
|
export interface CancelSuspendedRunParams {
|
|
13
17
|
agentId: string;
|
|
14
18
|
runId: string;
|
|
@@ -34,7 +38,7 @@ export declare class AgentChatExecutionService {
|
|
|
34
38
|
settle(executionId: string, finalize: () => Promise<void>, suspendedRunId?: string): Promise<void>;
|
|
35
39
|
private release;
|
|
36
40
|
requestCancel(context: ExecutionContext): Promise<boolean>;
|
|
37
|
-
handleCancel(
|
|
41
|
+
handleCancel(payload: CancelExecutionPayload): Promise<void>;
|
|
38
42
|
private cancelLocalWithChildren;
|
|
39
43
|
private cancelOrRemember;
|
|
40
44
|
private cancelLocal;
|
|
@@ -73,9 +73,7 @@ let AgentChatExecutionService = AgentChatExecutionService_1 = class AgentChatExe
|
|
|
73
73
|
await this.cancelSuspended({
|
|
74
74
|
agentId: context.agentId,
|
|
75
75
|
runId: suspendedRunId,
|
|
76
|
-
resourceId: context.
|
|
77
|
-
? (0, agent_memory_scope_1.productionChatMemoryResourceId)(context.userId)
|
|
78
|
-
: (0, agent_memory_scope_1.draftChatMemoryResourceId)(context.userId),
|
|
76
|
+
resourceId: (0, agent_thread_access_1.chatSurfaceMemoryResourceId)(context.surface, context.userId),
|
|
79
77
|
cancelBackgroundJobs: execution.controller.signal.reason === sub_agent_background_state_1.PARENT_TASK_CANCELLED_REASON,
|
|
80
78
|
});
|
|
81
79
|
});
|
|
@@ -103,20 +101,24 @@ let AgentChatExecutionService = AgentChatExecutionService_1 = class AgentChatExe
|
|
|
103
101
|
this.cancelOrRemember(context);
|
|
104
102
|
if (!this.instanceSettings.isMultiMain)
|
|
105
103
|
return true;
|
|
104
|
+
const { surface, ...rest } = context;
|
|
106
105
|
await this.publisher.publishCommand({
|
|
107
106
|
command: 'cancel-agent-chat-execution',
|
|
108
|
-
payload:
|
|
107
|
+
payload: { ...rest, productionN8nChat: surface === 'n8n-chat' },
|
|
109
108
|
});
|
|
110
109
|
return true;
|
|
111
110
|
}
|
|
112
111
|
finally {
|
|
113
|
-
await this.backgroundJobService.cancelForParent(context.agentId, context.threadId, context.
|
|
114
|
-
? (0, agent_memory_scope_1.productionChatMemoryResourceId)(context.userId)
|
|
115
|
-
: (0, agent_memory_scope_1.draftChatMemoryResourceId)(context.userId));
|
|
112
|
+
await this.backgroundJobService.cancelForParent(context.agentId, context.threadId, (0, agent_thread_access_1.chatSurfaceMemoryResourceId)(context.surface, context.userId));
|
|
116
113
|
}
|
|
117
114
|
});
|
|
118
115
|
}
|
|
119
|
-
async handleCancel(
|
|
116
|
+
async handleCancel(payload) {
|
|
117
|
+
const { productionN8nChat, ...rest } = payload;
|
|
118
|
+
const context = {
|
|
119
|
+
...rest,
|
|
120
|
+
surface: productionN8nChat ? 'n8n-chat' : 'preview',
|
|
121
|
+
};
|
|
120
122
|
if (await this.cancelLocalWithChildren(context))
|
|
121
123
|
return;
|
|
122
124
|
await this.lockService.withLease(backend_common_1.LockNamespace.KNOWN_LOCKS, `agent-preview-turn:${context.threadId}`, async () => {
|
|
@@ -133,9 +135,7 @@ let AgentChatExecutionService = AgentChatExecutionService_1 = class AgentChatExe
|
|
|
133
135
|
async cancelLocalWithChildren(context) {
|
|
134
136
|
if (!this.cancelLocal(context))
|
|
135
137
|
return false;
|
|
136
|
-
await this.backgroundJobService.cancelForParent(context.agentId, context.threadId, context.
|
|
137
|
-
? (0, agent_memory_scope_1.productionChatMemoryResourceId)(context.userId)
|
|
138
|
-
: (0, agent_memory_scope_1.draftChatMemoryResourceId)(context.userId));
|
|
138
|
+
await this.backgroundJobService.cancelForParent(context.agentId, context.threadId, (0, agent_thread_access_1.chatSurfaceMemoryResourceId)(context.surface, context.userId));
|
|
139
139
|
return true;
|
|
140
140
|
}
|
|
141
141
|
cancelOrRemember(context) {
|
|
@@ -163,7 +163,7 @@ let AgentChatExecutionService = AgentChatExecutionService_1 = class AgentChatExe
|
|
|
163
163
|
return null;
|
|
164
164
|
const execution = await this.executionRepository.findOneBy({ id: executionId, threadId });
|
|
165
165
|
if (!execution ||
|
|
166
|
-
(context.
|
|
166
|
+
(context.surface === 'n8n-chat'
|
|
167
167
|
? !(thread.accessScope === 'user' &&
|
|
168
168
|
thread.ownerId === userId &&
|
|
169
169
|
execution.source === agent_thread_access_1.N8N_CHAT_PRODUCTION_SOURCE)
|
|
@@ -182,9 +182,7 @@ let AgentChatExecutionService = AgentChatExecutionService_1 = class AgentChatExe
|
|
|
182
182
|
return await this.cancelSuspended({
|
|
183
183
|
agentId: context.agentId,
|
|
184
184
|
runId: pending.runId,
|
|
185
|
-
resourceId: context.
|
|
186
|
-
? (0, agent_memory_scope_1.productionChatMemoryResourceId)(context.userId)
|
|
187
|
-
: (0, agent_memory_scope_1.draftChatMemoryResourceId)(context.userId),
|
|
185
|
+
resourceId: (0, agent_thread_access_1.chatSurfaceMemoryResourceId)(context.surface, context.userId),
|
|
188
186
|
});
|
|
189
187
|
}
|
|
190
188
|
async cancelSuspended(params) {
|