n8n 2.45.3 → 2.46.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/README.md +1 -1
- package/dist/active-executions.d.ts +1 -0
- package/dist/active-executions.js +7 -3
- package/dist/active-executions.js.map +1 -1
- package/dist/active-workflow-manager.js +11 -12
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-execution-manager.js +1 -1
- package/dist/chat/chat-execution-manager.js.map +1 -1
- package/dist/commands/start.d.ts +2 -0
- package/dist/commands/start.js +23 -0
- package/dist/commands/start.js.map +1 -1
- package/dist/concurrency/concurrency-control.service.d.ts +3 -1
- package/dist/concurrency/concurrency-control.service.js +16 -5
- package/dist/concurrency/concurrency-control.service.js.map +1 -1
- package/dist/controllers/ai-preference.controller.d.ts +1 -1
- package/dist/controllers/ai-preference.controller.js +2 -2
- package/dist/controllers/ai-preference.controller.js.map +1 -1
- package/dist/controllers/folder.controller.d.ts +3 -2
- package/dist/controllers/folder.controller.js +21 -0
- package/dist/controllers/folder.controller.js.map +1 -1
- package/dist/controllers/public-api-rate-limit-settings.controller.d.ts +10 -0
- package/dist/controllers/public-api-rate-limit-settings.controller.js +50 -0
- package/dist/controllers/public-api-rate-limit-settings.controller.js.map +1 -0
- package/dist/controllers/users.controller.d.ts +3 -2
- package/dist/controllers/users.controller.js +6 -3
- package/dist/controllers/users.controller.js.map +1 -1
- package/dist/crash-journal.d.ts +2 -0
- package/dist/crash-journal.js +9 -5
- package/dist/crash-journal.js.map +1 -1
- package/dist/credentials/credential-data-merge.js +2 -2
- package/dist/credentials/credential-data-merge.js.map +1 -1
- package/dist/credentials/credential-field-mapping.js.map +1 -0
- package/dist/credentials/credentials.controller.d.ts +2 -1
- package/dist/credentials/credentials.controller.js +13 -0
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +4 -0
- package/dist/credentials/credentials.service.ee.d.ts +3 -0
- package/dist/credentials/credentials.service.ee.js +28 -18
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +28 -27
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/errors/response-errors/deprecated-nodes.error.d.ts +3 -7
- package/dist/errors/response-errors/deprecated-nodes.error.js.map +1 -1
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +4 -3
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +15 -20
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +3 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +43 -3
- package/dist/events/relays/log-streaming.event-relay.d.ts +1 -0
- package/dist/events/relays/log-streaming.event-relay.js +32 -22
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +4 -0
- package/dist/events/relays/telemetry.event-relay.js +40 -0
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execute-error-workflow.js +2 -1
- package/dist/execution-lifecycle/execute-error-workflow.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +36 -4
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/execution-lifecycle/save-execution-progress.d.ts +1 -1
- package/dist/execution-lifecycle/save-execution-progress.js +4 -2
- package/dist/execution-lifecycle/save-execution-progress.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 +23 -4
- package/dist/executions/engine-v2-execution-reader.service.js.map +1 -1
- package/dist/executions/execution-persistence.d.ts +3 -1
- package/dist/executions/execution-persistence.js +50 -8
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution-recovery.service.d.ts +2 -2
- package/dist/executions/execution-recovery.service.js.map +1 -1
- package/dist/executions/execution-viewer-reader.d.ts +6 -0
- package/dist/executions/execution-viewer-reader.js +24 -0
- package/dist/executions/execution-viewer-reader.js.map +1 -0
- package/dist/executions/execution.service.d.ts +3 -2
- package/dist/executions/execution.service.js +25 -10
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/execution.types.d.ts +2 -1
- package/dist/executions/executions.controller.d.ts +1 -1
- package/dist/executions/executions.controller.js +11 -9
- package/dist/executions/executions.controller.js.map +1 -1
- package/dist/executions/pre-execution-checks/credential-refusal.d.ts +7 -0
- package/dist/executions/pre-execution-checks/credential-refusal.js +26 -0
- package/dist/executions/pre-execution-checks/credential-refusal.js.map +1 -0
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js +2 -11
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
- package/dist/executions/pre-execution-checks/index.d.ts +1 -0
- package/dist/executions/pre-execution-checks/index.js +3 -1
- package/dist/executions/pre-execution-checks/index.js.map +1 -1
- package/dist/executions/pre-execution-checks/subworkflow-policy-checker.d.ts +2 -0
- package/dist/executions/pre-execution-checks/subworkflow-policy-checker.js +23 -11
- package/dist/executions/pre-execution-checks/subworkflow-policy-checker.js.map +1 -1
- package/dist/executions/sum-binary-data-bytes.d.ts +1 -0
- package/dist/executions/sum-binary-data-bytes.js +16 -0
- package/dist/executions/sum-binary-data-bytes.js.map +1 -1
- package/dist/instance-settings-loader/loaders/sso/sso.instance-settings-loader.js +1 -0
- package/dist/instance-settings-loader/loaders/sso/sso.instance-settings-loader.js.map +1 -1
- package/dist/interfaces.d.ts +3 -0
- package/dist/memory-guard/estimate-run-data-size.d.ts +36 -0
- package/dist/memory-guard/estimate-run-data-size.js +233 -0
- package/dist/memory-guard/estimate-run-data-size.js.map +1 -0
- package/dist/memory-guard/memory-guard-journal.d.ts +14 -0
- package/dist/memory-guard/memory-guard-journal.js +87 -0
- package/dist/memory-guard/memory-guard-journal.js.map +1 -0
- package/dist/memory-guard/memory-guard.constants.d.ts +13 -0
- package/dist/memory-guard/memory-guard.constants.js +17 -0
- package/dist/memory-guard/memory-guard.constants.js.map +1 -0
- package/dist/memory-guard/memory-guard.service.d.ts +73 -0
- package/dist/memory-guard/memory-guard.service.js +453 -0
- package/dist/memory-guard/memory-guard.service.js.map +1 -0
- package/dist/memory-guard/memory-guard.types.d.ts +11 -0
- package/dist/{modules/agents/agent-runtime-instrumentation.js → memory-guard/memory-guard.types.js} +1 -1
- package/dist/memory-guard/memory-guard.types.js.map +1 -0
- package/dist/memory-guard/memory-guard.utils.d.ts +13 -0
- package/dist/memory-guard/memory-guard.utils.js +74 -0
- package/dist/memory-guard/memory-guard.utils.js.map +1 -0
- package/dist/memory-guard/memory-stopped-executions.d.ts +18 -0
- package/dist/memory-guard/memory-stopped-executions.js +62 -0
- package/dist/memory-guard/memory-stopped-executions.js.map +1 -0
- package/dist/memory-guard/memory-usage.d.ts +7 -0
- package/dist/memory-guard/memory-usage.js +28 -0
- package/dist/memory-guard/memory-usage.js.map +1 -0
- package/dist/memory-guard/production-hold.d.ts +14 -0
- package/dist/memory-guard/production-hold.js +63 -0
- package/dist/memory-guard/production-hold.js.map +1 -0
- package/dist/memory-guard/run-data-tracker.d.ts +27 -0
- package/dist/memory-guard/run-data-tracker.js +242 -0
- package/dist/memory-guard/run-data-tracker.js.map +1 -0
- package/dist/metrics/prometheus/memory-guard-metrics.service.d.ts +13 -0
- package/dist/metrics/prometheus/memory-guard-metrics.service.js +91 -0
- package/dist/metrics/prometheus/memory-guard-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/prometheus.service.d.ts +2 -1
- package/dist/metrics/prometheus/prometheus.service.js +4 -2
- package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-case-generation.service.d.ts +3 -3
- package/dist/modules/agent-evals/agent-eval-case-generation.service.js +16 -19
- package/dist/modules/agent-evals/agent-eval-case-generation.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-fix-suggestion.js +1 -1
- package/dist/modules/agent-evals/agent-eval-fix-suggestion.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js +1 -1
- package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-judge.js +1 -1
- package/dist/modules/agent-evals/agent-eval-judge.js.map +1 -1
- package/dist/modules/agents/adapters/agents-credential-provider.d.ts +5 -2
- package/dist/modules/agents/adapters/agents-credential-provider.js +5 -1
- package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
- package/dist/modules/agents/agent-chat-attachment.service.d.ts +5 -0
- package/dist/modules/agents/agent-chat-attachment.service.js +3 -0
- package/dist/modules/agents/agent-chat-attachment.service.js.map +1 -1
- package/dist/modules/agents/agent-chat-execution.service.d.ts +8 -5
- package/dist/modules/agents/agent-chat-execution.service.js +61 -49
- package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-chat-relay.service.d.ts +3 -2
- package/dist/modules/agents/agent-chat-relay.service.js +23 -30
- package/dist/modules/agents/agent-chat-relay.service.js.map +1 -1
- package/dist/modules/agents/agent-chat.controller.d.ts +4 -4
- package/dist/modules/agents/agent-chat.controller.js +18 -50
- package/dist/modules/agents/agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/agent-config-preparation.service.d.ts +350 -2
- package/dist/modules/agents/agent-config-preparation.service.js +264 -2
- package/dist/modules/agents/agent-config-preparation.service.js.map +1 -1
- package/dist/modules/agents/agent-config.service.d.ts +10 -8
- package/dist/modules/agents/agent-config.service.js +59 -131
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-context.contracts.d.ts +87 -0
- package/dist/modules/agents/agent-context.contracts.js +3 -0
- package/dist/modules/agents/agent-context.contracts.js.map +1 -0
- package/dist/modules/agents/agent-context.service.d.ts +338 -0
- package/dist/modules/agents/{instance-ai-agent-context.adapter.js → agent-context.service.js} +53 -19
- package/dist/modules/agents/agent-context.service.js.map +1 -0
- package/dist/modules/agents/agent-conversation-state.service.d.ts +2 -1
- package/dist/modules/agents/agent-conversation-state.service.js +3 -3
- package/dist/modules/agents/agent-conversation-state.service.js.map +1 -1
- package/dist/modules/agents/agent-credential-provider.contracts.d.ts +5 -0
- package/dist/modules/agents/agent-credential-provider.contracts.js +3 -0
- package/dist/modules/agents/agent-credential-provider.contracts.js.map +1 -0
- package/dist/modules/agents/agent-custom-tools.service.d.ts +1 -0
- package/dist/modules/agents/agent-custom-tools.service.js +9 -8
- package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
- package/dist/modules/agents/agent-default-model-resolver.service.js +6 -5
- package/dist/modules/agents/agent-default-model-resolver.service.js.map +1 -1
- package/dist/modules/agents/agent-definition.service.d.ts +2 -2
- package/dist/modules/agents/agent-definition.service.js +3 -3
- package/dist/modules/agents/agent-definition.service.js.map +1 -1
- package/dist/modules/agents/agent-draft.contracts.d.ts +51 -0
- package/dist/modules/agents/agent-draft.contracts.js +3 -0
- package/dist/modules/agents/agent-draft.contracts.js.map +1 -0
- package/dist/modules/agents/agent-draft.service.d.ts +17 -0
- package/dist/modules/agents/agent-draft.service.js +98 -0
- package/dist/modules/agents/agent-draft.service.js.map +1 -0
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +3 -1
- package/dist/modules/agents/agent-execution-orchestrator.service.js +11 -3
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +11 -4
- package/dist/modules/agents/agent-execution.service.js +43 -7
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-formatted-turn.error.d.ts +6 -0
- package/dist/modules/agents/agent-formatted-turn.error.js +12 -0
- package/dist/modules/agents/agent-formatted-turn.error.js.map +1 -0
- package/dist/modules/agents/agent-integration-management.service.js +1 -1
- package/dist/modules/agents/agent-integration-management.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-persistence.service.d.ts +4 -1
- package/dist/modules/agents/agent-integration-persistence.service.js +33 -21
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-snapshot.service.d.ts +19 -0
- package/dist/modules/agents/agent-knowledge-snapshot.service.js +84 -0
- package/dist/modules/agents/agent-knowledge-snapshot.service.js.map +1 -0
- package/dist/modules/agents/agent-knowledge-snapshot.task.d.ts +13 -0
- package/dist/modules/agents/agent-knowledge-snapshot.task.js +48 -0
- package/dist/modules/agents/agent-knowledge-snapshot.task.js.map +1 -0
- package/dist/modules/agents/agent-knowledge-storage.js +2 -2
- package/dist/modules/agents/agent-knowledge-storage.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-telemetry.d.ts +3 -0
- package/dist/modules/agents/agent-knowledge-telemetry.js +28 -0
- package/dist/modules/agents/agent-knowledge-telemetry.js.map +1 -0
- package/dist/modules/agents/agent-knowledge-upload.error.d.ts +11 -0
- package/dist/modules/agents/agent-knowledge-upload.error.js +12 -0
- package/dist/modules/agents/agent-knowledge-upload.error.js.map +1 -0
- package/dist/modules/agents/agent-knowledge-usage-tracker.d.ts +33 -0
- package/dist/modules/agents/agent-knowledge-usage-tracker.js +107 -0
- package/dist/modules/agents/agent-knowledge-usage-tracker.js.map +1 -0
- package/dist/modules/agents/agent-knowledge.controller.d.ts +8 -4
- package/dist/modules/agents/agent-knowledge.controller.js +58 -10
- package/dist/modules/agents/agent-knowledge.controller.js.map +1 -1
- package/dist/modules/agents/agent-knowledge.service.d.ts +14 -3
- package/dist/modules/agents/agent-knowledge.service.js +45 -11
- package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
- package/dist/modules/agents/agent-memory-entries.service.d.ts +18 -0
- package/dist/modules/agents/agent-memory-entries.service.js +124 -0
- package/dist/modules/agents/agent-memory-entries.service.js.map +1 -0
- package/dist/modules/agents/agent-memory.controller.d.ts +19 -0
- package/dist/modules/agents/agent-memory.controller.js +68 -0
- package/dist/modules/agents/agent-memory.controller.js.map +1 -0
- package/dist/modules/agents/agent-message-queue-consumer.service.d.ts +6 -1
- package/dist/modules/agents/agent-message-queue-consumer.service.js +78 -40
- package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
- package/dist/modules/agents/agent-message-queue.service.d.ts +4 -1
- package/dist/modules/agents/agent-message-queue.service.js +23 -16
- package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
- package/dist/modules/agents/agent-model-catalog.service.d.ts +1 -0
- package/dist/modules/agents/agent-model-catalog.service.js +22 -7
- package/dist/modules/agents/agent-model-catalog.service.js.map +1 -1
- package/dist/modules/agents/agent-modification-telemetry.service.d.ts +16 -401
- package/dist/modules/agents/agent-modification-telemetry.service.js +121 -32
- package/dist/modules/agents/agent-modification-telemetry.service.js.map +1 -1
- package/dist/modules/agents/agent-policy.service.d.ts +4 -1
- package/dist/modules/agents/agent-policy.service.js +14 -1
- package/dist/modules/agents/agent-policy.service.js.map +1 -1
- package/dist/modules/agents/agent-publish.service.d.ts +4 -1
- package/dist/modules/agents/agent-publish.service.js +32 -14
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +14 -3
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +113 -31
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-sandbox-runtime.service.d.ts +1 -3
- package/dist/modules/agents/agent-sandbox-runtime.service.js +8 -32
- package/dist/modules/agents/agent-sandbox-runtime.service.js.map +1 -1
- package/dist/modules/agents/agent-sandbox.controller.d.ts +3 -3
- package/dist/modules/agents/agent-sandbox.controller.js +5 -5
- package/dist/modules/agents/agent-sandbox.controller.js.map +1 -1
- package/dist/modules/agents/agent-save-completion.service.d.ts +8 -1
- package/dist/modules/agents/agent-save-completion.service.js +28 -0
- package/dist/modules/agents/agent-save-completion.service.js.map +1 -1
- package/dist/modules/agents/agent-session-langsmith-export.service.js +27 -0
- package/dist/modules/agents/agent-session-langsmith-export.service.js.map +1 -1
- package/dist/modules/agents/agent-session-read.d.ts +3 -0
- package/dist/modules/agents/agent-session-read.js +29 -0
- package/dist/modules/agents/agent-session-read.js.map +1 -0
- package/dist/modules/agents/agent-setup-completion.service.d.ts +2 -2
- package/dist/modules/agents/agent-setup-completion.service.js +8 -2
- package/dist/modules/agents/agent-setup-completion.service.js.map +1 -1
- package/dist/modules/agents/agent-skill-refs.service.d.ts +23 -29
- package/dist/modules/agents/agent-skill-refs.service.js +61 -123
- package/dist/modules/agents/agent-skill-refs.service.js.map +1 -1
- package/dist/modules/agents/agent-skill-usage.service.d.ts +40 -0
- package/dist/modules/agents/agent-skill-usage.service.js +137 -0
- package/dist/modules/agents/agent-skill-usage.service.js.map +1 -0
- package/dist/modules/agents/agent-skills.service.d.ts +6 -4
- package/dist/modules/agents/agent-skills.service.js +30 -70
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-sse-stream.d.ts +2 -1
- package/dist/modules/agents/agent-sse-stream.js +24 -4
- package/dist/modules/agents/agent-sse-stream.js.map +1 -1
- package/dist/modules/agents/agent-task.service.d.ts +8 -0
- package/dist/modules/agents/agent-task.service.js +22 -14
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-telemetry.d.ts +3 -0
- package/dist/modules/agents/agent-telemetry.js +24 -1
- package/dist/modules/agents/agent-telemetry.js.map +1 -1
- package/dist/modules/agents/agent-test-run.service.d.ts +1 -0
- package/dist/modules/agents/agent-test-run.service.js +9 -0
- package/dist/modules/agents/agent-test-run.service.js.map +1 -1
- package/dist/modules/agents/agent-threads.controller.d.ts +4 -1
- package/dist/modules/agents/agent-threads.controller.js +8 -3
- package/dist/modules/agents/agent-threads.controller.js.map +1 -1
- package/dist/modules/agents/agent-turn-execution.service.d.ts +13 -2
- package/dist/modules/agents/agent-turn-execution.service.js +123 -31
- package/dist/modules/agents/agent-turn-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-upload.middleware.d.ts +2 -0
- package/dist/modules/agents/agent-upload.middleware.js +13 -2
- package/dist/modules/agents/agent-upload.middleware.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.d.ts +5 -2
- package/dist/modules/agents/agent-validation.service.js +78 -14
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-vector-stores.controller.d.ts +5 -3
- package/dist/modules/agents/agent-vector-stores.controller.js +9 -5
- package/dist/modules/agents/agent-vector-stores.controller.js.map +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.js +4 -2
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +1 -1
- package/dist/modules/agents/agents-settings.service.d.ts +5 -1
- package/dist/modules/agents/agents-settings.service.js +13 -3
- package/dist/modules/agents/agents-settings.service.js.map +1 -1
- package/dist/modules/agents/agents-tools.service.d.ts +2 -6
- package/dist/modules/agents/agents-tools.service.js +2 -120
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +26 -3
- package/dist/modules/agents/agents.controller.js +10 -4
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +3 -4
- package/dist/modules/agents/agents.module.js +18 -20
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +37 -8
- package/dist/modules/agents/agents.service.js +164 -30
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/azure-foundry-deployments.service.d.ts +28 -0
- package/dist/modules/agents/azure-foundry-deployments.service.js +107 -0
- package/dist/modules/agents/azure-foundry-deployments.service.js.map +1 -0
- package/dist/modules/agents/background/agent-background-job.service.d.ts +8 -7
- package/dist/modules/agents/background/agent-background-job.service.js +26 -9
- package/dist/modules/agents/background/agent-background-job.service.js.map +1 -1
- package/dist/modules/agents/background/background-job-tools.js +2 -0
- package/dist/modules/agents/background/background-job-tools.js.map +1 -1
- package/dist/modules/agents/background/sub-agent-background-runner.d.ts +1 -0
- package/dist/modules/agents/background/sub-agent-background-runner.js +3 -0
- package/dist/modules/agents/background/sub-agent-background-runner.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +9 -22
- package/dist/modules/agents/builder/agents-builder-tools.service.js +87 -98
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +40 -0
- package/dist/modules/agents/builder/agents-builder.service.js +109 -0
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -0
- package/dist/modules/agents/builder/builder-model-live-lookup.service.d.ts +8 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js +52 -12
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-session.d.ts +21 -0
- package/dist/modules/agents/builder/builder-session.js +7 -0
- package/dist/modules/agents/builder/builder-session.js.map +1 -0
- package/dist/modules/agents/builder/builder-telemetry-session.d.ts +9 -0
- package/dist/modules/agents/builder/builder-telemetry-session.js +14 -0
- package/dist/modules/agents/builder/builder-telemetry-session.js.map +1 -0
- package/dist/modules/agents/builder/builder-tool-names.d.ts +0 -1
- package/dist/modules/agents/builder/builder-tool-names.js +0 -1
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js +2 -2
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js +3 -3
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/index.d.ts +0 -1
- package/dist/modules/agents/builder/interactive/index.js +1 -4
- package/dist/modules/agents/builder/interactive/index.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +56 -28
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/setup-tool.types.d.ts +3 -3
- package/dist/modules/agents/builder/model-lookup.types.d.ts +1 -0
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +19 -6
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +6 -4
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/skills/external-services.skill.js +32 -24
- package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/memory.skill.js +6 -8
- package/dist/modules/agents/builder/skills/memory.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/node-tools.skill.js +16 -16
- package/dist/modules/agents/builder/skills/node-tools.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/resource-locators.skill.js +26 -23
- package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +24 -9
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +3 -3
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
- package/dist/modules/agents/builder/verify-mcp-server.tool.js +2 -2
- package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
- package/dist/modules/agents/entities/agent-background-job.entity.d.ts +8 -0
- package/dist/modules/agents/entities/agent-background-job.entity.js +29 -0
- package/dist/modules/agents/entities/agent-background-job.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-execution-thread.entity.d.ts +2 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js +4 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-execution.entity.d.ts +6 -0
- package/dist/modules/agents/entities/agent-execution.entity.js +46 -3
- package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-history.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-message.entity.d.ts +2 -1
- package/dist/modules/agents/entities/agent-message.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/{agent-runtime-instrumentation.d.ts → evaluation/agent-evaluation.contracts.d.ts} +26 -3
- package/dist/modules/agents/evaluation/agent-evaluation.contracts.js +3 -0
- package/dist/modules/agents/evaluation/agent-evaluation.contracts.js.map +1 -0
- package/dist/modules/agents/evaluation/agent-evaluation.service.d.ts +21 -0
- package/dist/modules/agents/evaluation/agent-evaluation.service.js +111 -0
- package/dist/modules/agents/evaluation/agent-evaluation.service.js.map +1 -0
- package/dist/modules/agents/evaluation/evaluation-config.d.ts +8 -0
- package/dist/modules/agents/evaluation/evaluation-config.js +81 -0
- package/dist/modules/agents/evaluation/evaluation-config.js.map +1 -0
- package/dist/modules/agents/execution-recorder.d.ts +21 -0
- package/dist/modules/agents/execution-recorder.js +77 -24
- package/dist/modules/agents/execution-recorder.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 +42 -4
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +22 -1
- package/dist/modules/agents/integrations/agent-chat-integration.js +13 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-message-context.js +5 -0
- package/dist/modules/agents/integrations/agent-chat-message-context.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +5 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +96 -25
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
- package/dist/modules/agents/integrations/agent-credential-lookup.service.d.ts +2 -1
- package/dist/modules/agents/integrations/agent-credential-lookup.service.js +7 -3
- package/dist/modules/agents/integrations/agent-credential-lookup.service.js.map +1 -1
- package/dist/modules/agents/integrations/channel-rate-limit.js +2 -1
- package/dist/modules/agents/integrations/channel-rate-limit.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.js +4 -1
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/episodic-scope-resolver.d.ts +4 -0
- package/dist/modules/agents/integrations/episodic-scope-resolver.js +24 -0
- package/dist/modules/agents/integrations/episodic-scope-resolver.js.map +1 -0
- package/dist/modules/agents/integrations/integration-context-query-executor.d.ts +3 -1
- package/dist/modules/agents/integrations/integration-context-query-executor.js +54 -45
- package/dist/modules/agents/integrations/integration-context-query-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-error-codes.d.ts +2 -0
- package/dist/modules/agents/integrations/integration-error-codes.js +2 -0
- package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -1
- package/dist/modules/agents/integrations/integration-message-context.js +2 -0
- package/dist/modules/agents/integrations/integration-message-context.js.map +1 -1
- package/dist/modules/agents/integrations/integration-origin-support.d.ts +19 -0
- package/dist/modules/agents/integrations/integration-origin-support.js +32 -0
- package/dist/modules/agents/integrations/integration-origin-support.js.map +1 -0
- package/dist/modules/agents/integrations/integration-origin.d.ts +6 -0
- package/dist/modules/agents/integrations/integration-origin.js +54 -0
- package/dist/modules/agents/integrations/integration-origin.js.map +1 -0
- package/dist/modules/agents/integrations/integration-tool-definitions.js +3 -3
- package/dist/modules/agents/integrations/integration-tool-definitions.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 +5 -1
- package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-factory.js +2 -0
- package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-types.d.ts +3 -0
- package/dist/modules/agents/integrations/message-split.d.ts +2 -0
- package/dist/modules/agents/integrations/message-split.js +32 -0
- package/dist/modules/agents/integrations/message-split.js.map +1 -0
- package/dist/modules/agents/integrations/n8n-memory.d.ts +12 -2
- package/dist/modules/agents/integrations/n8n-memory.js +59 -94
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/discord/discord-gateway.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{discord-integration.d.ts → discord/discord-integration.d.ts} +13 -8
- package/dist/modules/agents/integrations/platforms/{discord-integration.js → discord/discord-integration.js} +20 -9
- package/dist/modules/agents/integrations/platforms/discord/discord-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{discord-operations.js → discord/discord-operations.js} +1 -1
- package/dist/modules/agents/integrations/platforms/discord/discord-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/discord/discord-origin.d.ts +4 -0
- package/dist/modules/agents/integrations/platforms/discord/discord-origin.js +20 -0
- package/dist/modules/agents/integrations/platforms/discord/discord-origin.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/linear/linear-integration.d.ts +33 -0
- package/dist/modules/agents/integrations/platforms/{linear-integration.js → linear/linear-integration.js} +21 -4
- package/dist/modules/agents/integrations/platforms/linear/linear-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{linear-operations.d.ts → linear/linear-operations.d.ts} +2 -2
- package/dist/modules/agents/integrations/platforms/{linear-operations.js → linear/linear-operations.js} +2 -2
- package/dist/modules/agents/integrations/platforms/linear/linear-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/linear/linear-origin.d.ts +4 -0
- package/dist/modules/agents/integrations/platforms/linear/linear-origin.js +31 -0
- package/dist/modules/agents/integrations/platforms/linear/linear-origin.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{linear-tool-definitions.js → linear/linear-tool-definitions.js} +1 -1
- package/dist/modules/agents/integrations/platforms/linear/linear-tool-definitions.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/n8n-chat/n8n-chat-flag.service.d.ts +7 -0
- package/dist/modules/agents/{skills/skills-hub-rollout.js → integrations/platforms/n8n-chat/n8n-chat-flag.service.js} +19 -19
- package/dist/modules/agents/integrations/platforms/n8n-chat/n8n-chat-flag.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{n8n-chat-integration.d.ts → n8n-chat/n8n-chat-integration.d.ts} +11 -4
- package/dist/modules/agents/integrations/platforms/{n8n-chat-integration.js → n8n-chat/n8n-chat-integration.js} +24 -5
- package/dist/modules/agents/integrations/platforms/n8n-chat/n8n-chat-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-adapter.d.ts +2 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-adapter.js +17 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-adapter.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.d.ts +5 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.js +64 -18
- package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.d.ts +13 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js +46 -3
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.js +2 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-operations.d.ts +1 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-operations.js +131 -53
- package/dist/modules/agents/integrations/platforms/slack/slack-operations.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-origin.d.ts +4 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-origin.js +38 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-origin.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-search-pagination.d.ts +33 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-search-pagination.js +53 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-search-pagination.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/assets/color.png +0 -0
- package/dist/modules/agents/integrations/platforms/teams/assets/outline.png +0 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-activity.d.ts +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-activity.js +10 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-activity.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.d.ts +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js +6 -5
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.d.ts +5 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js +13 -8
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.d.ts +4 -2
- package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.js +26 -9
- package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.d.ts +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js +3 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-message-files.d.ts +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.d.ts +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.js +47 -16
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-origin.d.ts +2 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-origin.js +13 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-origin.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{telegram-bridge-behavior.d.ts → telegram/telegram-bridge-behavior.d.ts} +2 -2
- package/dist/modules/agents/integrations/platforms/{telegram-bridge-behavior.js → telegram/telegram-bridge-behavior.js} +1 -1
- package/dist/modules/agents/integrations/platforms/telegram/telegram-bridge-behavior.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{telegram-integration.d.ts → telegram/telegram-integration.d.ts} +8 -4
- package/dist/modules/agents/integrations/platforms/{telegram-integration.js → telegram/telegram-integration.js} +13 -5
- package/dist/modules/agents/integrations/platforms/telegram/telegram-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/telegram/telegram-origin.d.ts +2 -0
- package/dist/modules/agents/integrations/platforms/telegram/telegram-origin.js +12 -0
- package/dist/modules/agents/integrations/platforms/telegram/telegram-origin.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.d.ts +3 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.js +7 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-origin.d.ts +2 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-origin.js +12 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-origin.js.map +1 -0
- package/dist/modules/agents/integrations/single-connection.d.ts +3 -0
- package/dist/modules/agents/integrations/single-connection.js +19 -0
- package/dist/modules/agents/integrations/single-connection.js.map +1 -0
- package/dist/modules/agents/json-config/agent-document.d.ts +0 -1
- package/dist/modules/agents/json-config/agent-document.js +0 -5
- package/dist/modules/agents/json-config/agent-document.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.d.ts +3 -1
- package/dist/modules/agents/json-config/from-json-config.js +39 -8
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.d.ts +6 -3
- package/dist/modules/agents/json-config/mcp-client-factory.js +23 -2
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
- package/dist/modules/agents/json-config/model-config.d.ts +3 -5
- package/dist/modules/agents/json-config/model-config.js +30 -7
- package/dist/modules/agents/json-config/model-config.js.map +1 -1
- package/dist/modules/agents/llm-provider-defaults.d.ts +2 -1
- package/dist/modules/agents/llm-provider-defaults.js +7 -0
- package/dist/modules/agents/llm-provider-defaults.js.map +1 -1
- package/dist/modules/agents/register-skill-agents-provider.d.ts +1 -0
- package/dist/modules/agents/register-skill-agents-provider.js +10 -0
- package/dist/modules/agents/register-skill-agents-provider.js.map +1 -0
- package/dist/modules/agents/register-user-deletion-handler.d.ts +1 -0
- package/dist/modules/agents/register-user-deletion-handler.js +17 -0
- package/dist/modules/agents/register-user-deletion-handler.js.map +1 -0
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.js +3 -0
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +2 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +22 -2
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution.repository.d.ts +12 -1
- package/dist/modules/agents/repositories/agent-execution.repository.js +55 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-file.repository.d.ts +6 -0
- package/dist/modules/agents/repositories/agent-file.repository.js +24 -0
- package/dist/modules/agents/repositories/agent-file.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +0 -1
- package/dist/modules/agents/repositories/agent-history.repository.js +0 -1
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.d.ts +3 -0
- package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.js +24 -0
- package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-memory-entry.repository.d.ts +46 -3
- package/dist/modules/agents/repositories/agent-memory-entry.repository.js +176 -4
- package/dist/modules/agents/repositories/agent-memory-entry.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-message-queue.repository.d.ts +1 -0
- package/dist/modules/agents/repositories/agent-message.repository.d.ts +2 -1
- package/dist/modules/agents/repositories/agent-message.repository.js +11 -0
- package/dist/modules/agents/repositories/agent-message.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-observation.repository.d.ts +8 -3
- package/dist/modules/agents/repositories/agent-observation.repository.js +59 -4
- package/dist/modules/agents/repositories/agent-observation.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-skill.repository.d.ts +35 -0
- package/dist/modules/agents/repositories/agent-skill.repository.js +261 -0
- package/dist/modules/agents/repositories/agent-skill.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-task.repository.d.ts +1 -0
- package/dist/modules/agents/repositories/agent-task.repository.js +7 -0
- package/dist/modules/agents/repositories/agent-task.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-thread.repository.d.ts +1 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js +7 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent.repository.d.ts +11 -6
- package/dist/modules/agents/repositories/agent.repository.js +43 -43
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +6 -0
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-runner.d.ts +10 -3
- package/dist/modules/agents/sub-agents/sub-agent-runner.js +76 -3
- package/dist/modules/agents/sub-agents/sub-agent-runner.js.map +1 -1
- package/dist/modules/agents/system-agents/system-agent-access.d.ts +3 -0
- package/dist/modules/agents/system-agents/system-agent-access.js +10 -0
- package/dist/modules/agents/system-agents/system-agent-access.js.map +1 -0
- package/dist/modules/agents/system-agents/system-agent-chat.controller.d.ts +83 -0
- package/dist/modules/agents/system-agents/system-agent-chat.controller.js +313 -0
- package/dist/modules/agents/system-agents/system-agent-chat.controller.js.map +1 -0
- package/dist/modules/agents/system-agents/system-agent-execution.service.d.ts +141 -0
- package/dist/modules/agents/system-agents/system-agent-execution.service.js +786 -0
- package/dist/modules/agents/system-agents/system-agent-execution.service.js.map +1 -0
- package/dist/modules/agents/system-agents/system-agent-host-events.d.ts +21 -0
- package/dist/modules/agents/system-agents/system-agent-host-events.js +73 -0
- package/dist/modules/agents/system-agents/system-agent-host-events.js.map +1 -0
- package/dist/modules/agents/system-agents/system-agent-registration.service.d.ts +9 -0
- package/dist/modules/agents/system-agents/system-agent-registration.service.js +31 -0
- package/dist/modules/agents/system-agents/system-agent-registration.service.js.map +1 -0
- package/dist/modules/agents/system-agents/system-agent-registry.d.ts +7 -0
- package/dist/modules/agents/system-agents/system-agent-registry.js +33 -0
- package/dist/modules/agents/system-agents/system-agent-registry.js.map +1 -0
- package/dist/modules/agents/system-agents/system-agent-usage-relay.d.ts +15 -0
- package/dist/modules/agents/system-agents/system-agent-usage-relay.js +63 -0
- package/dist/modules/agents/system-agents/system-agent-usage-relay.js.map +1 -0
- package/dist/modules/agents/system-agents/system-agent.types.d.ts +102 -0
- package/dist/modules/agents/system-agents/system-agent.types.js +3 -0
- package/dist/modules/agents/system-agents/system-agent.types.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/search-knowledge.tool.d.ts +3 -1
- package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js +29 -4
- package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.d.ts +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.js +3 -1
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/types/agent-queued-message.d.ts +6 -3
- package/dist/modules/agents/types/agent-queued-message.js +5 -0
- package/dist/modules/agents/types/agent-queued-message.js.map +1 -1
- package/dist/modules/agents/types/agent-task-stop.d.ts +23 -0
- package/dist/modules/agents/types/agent-task-stop.js +3 -0
- package/dist/modules/agents/types/agent-task-stop.js.map +1 -0
- package/dist/modules/agents/types/agent-turn-outcome.d.ts +10 -0
- package/dist/modules/agents/types/agent-turn-outcome.js +3 -0
- package/dist/modules/agents/types/agent-turn-outcome.js.map +1 -0
- package/dist/modules/agents/utils/agent-capabilities.d.ts +0 -1
- package/dist/modules/agents/utils/agent-capabilities.js +1 -9
- package/dist/modules/agents/utils/agent-capabilities.js.map +1 -1
- package/dist/modules/agents/utils/agent-config-hash.d.ts +2 -2
- package/dist/modules/agents/utils/agent-config-hash.js +3 -4
- package/dist/modules/agents/utils/agent-config-hash.js.map +1 -1
- package/dist/modules/agents/utils/agent-definition.d.ts +17 -1
- package/dist/modules/agents/utils/agent-definition.js +13 -0
- package/dist/modules/agents/utils/agent-definition.js.map +1 -1
- package/dist/modules/agents/utils/agent-draft.utils.d.ts +2 -1
- 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-memory-scope.d.ts +0 -5
- package/dist/modules/agents/utils/agent-memory-scope.js +0 -11
- package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
- package/dist/modules/agents/utils/agent-thread-access.d.ts +6 -3
- package/dist/modules/agents/utils/agent-thread-access.js +32 -11
- package/dist/modules/agents/utils/agent-thread-access.js.map +1 -1
- package/dist/modules/agents/utils/episodic-scope-metadata.d.ts +2 -0
- package/dist/modules/agents/utils/episodic-scope-metadata.js +13 -0
- package/dist/modules/agents/utils/episodic-scope-metadata.js.map +1 -0
- package/dist/modules/agents/utils/execution-to-message-mapper.js +9 -0
- package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
- package/dist/modules/agents/utils/memory-entry-source.d.ts +15 -0
- package/dist/modules/agents/utils/memory-entry-source.js +53 -0
- package/dist/modules/agents/utils/memory-entry-source.js.map +1 -0
- package/dist/modules/agents/utils/memory-source-filter.d.ts +7 -0
- package/dist/modules/agents/utils/memory-source-filter.js +154 -0
- package/dist/modules/agents/utils/memory-source-filter.js.map +1 -0
- package/dist/modules/agents/utils/messages-envelope.d.ts +2 -0
- package/dist/modules/agents/utils/messages-envelope.js +15 -0
- package/dist/modules/agents/utils/messages-envelope.js.map +1 -1
- package/dist/modules/agents/utils/visit-agent-credential-references.d.ts +1 -0
- package/dist/modules/agents/utils/visit-agent-credential-references.js +8 -7
- package/dist/modules/agents/utils/visit-agent-credential-references.js.map +1 -1
- package/dist/modules/apps/sandbox-settings.d.ts +3 -0
- package/dist/modules/apps/sandbox-settings.js +41 -0
- package/dist/modules/apps/sandbox-settings.js.map +1 -0
- package/dist/modules/breaking-changes/breaking-changes.migration.service.js +1 -1
- package/dist/modules/breaking-changes/breaking-changes.migration.service.js.map +1 -1
- package/dist/modules/breaking-changes/migration-report-csv.js +10 -0
- package/dist/modules/breaking-changes/migration-report-csv.js.map +1 -1
- package/dist/modules/breaking-changes/migrations/node-removals/agent-tools-v1-to-v2.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/agent-tools-v1-to-v2.migration.js +29 -0
- package/dist/modules/breaking-changes/migrations/node-removals/agent-tools-v1-to-v2.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/edit-image-v2.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/edit-image-v2.migration.js +20 -0
- package/dist/modules/breaking-changes/migrations/node-removals/edit-image-v2.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/index.js +4 -0
- package/dist/modules/breaking-changes/migrations/node-removals/index.js.map +1 -1
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js +4 -1
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
- package/dist/modules/breaking-changes/rules/index.d.ts +3 -0
- package/dist/modules/breaking-changes/rules/index.js +3 -0
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/compression-node-limits.rule.js +6 -6
- package/dist/modules/breaking-changes/rules/v3/compression-node-limits.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/edit-image-version.d.ts +17 -0
- package/dist/modules/breaking-changes/rules/v3/edit-image-version.js +101 -0
- package/dist/modules/breaking-changes/rules/v3/edit-image-version.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/edit-image-version.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/edit-image-version.rule.js +57 -0
- package/dist/modules/breaking-changes/rules/v3/edit-image-version.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/removed-nodes.rule.js +1 -0
- package/dist/modules/breaking-changes/rules/v3/removed-nodes.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/slack-credential-secret.d.ts +5 -0
- package/dist/modules/breaking-changes/rules/v3/slack-credential-secret.js +33 -0
- package/dist/modules/breaking-changes/rules/v3/slack-credential-secret.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/slack-credential-signature-secret.rule.d.ts +13 -0
- package/dist/modules/breaking-changes/rules/v3/slack-credential-signature-secret.rule.js +54 -0
- package/dist/modules/breaking-changes/rules/v3/slack-credential-signature-secret.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/slack-trigger-signature-secret.rule.d.ts +13 -0
- package/dist/modules/breaking-changes/rules/v3/slack-trigger-signature-secret.rule.js +54 -0
- package/dist/modules/breaking-changes/rules/v3/slack-trigger-signature-secret.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/ssrf-default-blocked-ranges.rule.js +5 -5
- package/dist/modules/breaking-changes/rules/v3/ssrf-default-blocked-ranges.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/task-runner-task-timeout.rule.js +5 -5
- package/dist/modules/breaking-changes/rules/v3/task-runner-task-timeout.rule.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.controller.js +11 -12
- package/dist/modules/chat-hub/chat-hub.controller.js.map +1 -1
- package/dist/modules/community-packages/community-packages.controller.d.ts +17 -1
- package/dist/modules/community-packages/community-packages.controller.js +3 -1
- package/dist/modules/community-packages/community-packages.controller.js.map +1 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.d.ts +5 -2
- package/dist/modules/community-packages/community-packages.lifecycle.service.js +18 -2
- package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -1
- package/dist/modules/engine-v2/engine-data-plane-client.d.ts +2 -1
- package/dist/modules/engine-v2/engine-data-plane-client.js +16 -0
- package/dist/modules/engine-v2/engine-data-plane-client.js.map +1 -1
- package/dist/modules/external-secrets.ee/redaction.service.ee.js +2 -2
- package/dist/modules/external-secrets.ee/redaction.service.ee.js.map +1 -1
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.d.ts +8 -8
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js +8 -11
- 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 +10 -10
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js +10 -13
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js.map +1 -1
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js +1 -1
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js.map +1 -1
- package/dist/modules/inbound-auth-core/public-api-oauth.strategy.d.ts +3 -2
- package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js +23 -10
- package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js.map +1 -1
- package/dist/modules/inbound-auth-core/resource-admission.d.ts +5 -3
- package/dist/modules/inbound-auth-core/resource-admission.js +6 -2
- package/dist/modules/inbound-auth-core/resource-admission.js.map +1 -1
- package/dist/modules/inbound-auth-core/trusted-source.gate.js +1 -1
- package/dist/modules/inbound-auth-core/trusted-source.gate.js.map +1 -1
- package/dist/modules/inbound-auth-core/trusted-source.store.js +15 -15
- package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
- package/dist/modules/inbox/inbox-source.registry.d.ts +4 -4
- package/dist/modules/inbox/inbox.service.js +5 -1
- package/dist/modules/inbox/inbox.service.js.map +1 -1
- package/dist/modules/instance-ai/agent-preview-handoff.d.ts +5 -2
- package/dist/modules/instance-ai/agent-preview-handoff.js +13 -0
- package/dist/modules/instance-ai/agent-preview-handoff.js.map +1 -1
- package/dist/modules/instance-ai/agents-access.d.ts +2 -0
- package/dist/modules/instance-ai/agents-access.js +12 -0
- package/dist/modules/instance-ai/agents-access.js.map +1 -1
- package/dist/modules/instance-ai/ai-preferences-telemetry.d.ts +11 -0
- package/dist/modules/instance-ai/ai-preferences-telemetry.js +21 -0
- package/dist/modules/instance-ai/ai-preferences-telemetry.js.map +1 -0
- package/dist/modules/instance-ai/browser/browser-use-availability.d.ts +6 -0
- package/dist/modules/instance-ai/browser/browser-use-availability.js +11 -0
- package/dist/modules/instance-ai/browser/browser-use-availability.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.d.ts +0 -1
- package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.js +0 -4
- package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.js.map +1 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.d.ts +8 -11
- package/dist/modules/instance-ai/eval/agent-execution.service.js +128 -224
- package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/data-table-rows.d.ts +25 -0
- package/dist/modules/instance-ai/eval/data-table-rows.js +155 -0
- package/dist/modules/instance-ai/eval/data-table-rows.js.map +1 -0
- package/dist/modules/instance-ai/eval/eval-timings.d.ts +1 -1
- package/dist/modules/instance-ai/eval/eval-timings.js +8 -1
- package/dist/modules/instance-ai/eval/eval-timings.js.map +1 -1
- package/dist/modules/instance-ai/eval/eval.controller.d.ts +78 -0
- package/dist/modules/instance-ai/eval/eval.controller.js +282 -0
- package/dist/modules/instance-ai/eval/eval.controller.js.map +1 -0
- package/dist/modules/instance-ai/eval/execution.service.d.ts +2 -3
- package/dist/modules/instance-ai/eval/execution.service.js +109 -91
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/failed-execution-portability.service.d.ts +37 -0
- package/dist/modules/instance-ai/eval/failed-execution-portability.service.js +401 -0
- package/dist/modules/instance-ai/eval/failed-execution-portability.service.js.map +1 -0
- package/dist/modules/instance-ai/eval/form-trigger-content.d.ts +2 -0
- package/dist/modules/instance-ai/eval/form-trigger-content.js +117 -0
- package/dist/modules/instance-ai/eval/form-trigger-content.js.map +1 -0
- package/dist/modules/instance-ai/eval/llm-completion-mock.js +19 -6
- package/dist/modules/instance-ai/eval/llm-completion-mock.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.d.ts +10 -0
- package/dist/modules/instance-ai/eval/mock-handler.js +147 -11
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/node-run-mock.d.ts +19 -0
- package/dist/modules/instance-ai/eval/node-run-mock.js +163 -0
- package/dist/modules/instance-ai/eval/node-run-mock.js.map +1 -0
- package/dist/modules/instance-ai/eval/pin-data-generator.d.ts +1 -2
- package/dist/modules/instance-ai/eval/pin-data-generator.js +3 -3
- package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
- package/dist/modules/instance-ai/eval/provider-shapes.d.ts +1 -0
- package/dist/modules/instance-ai/eval/provider-shapes.js +16 -0
- package/dist/modules/instance-ai/eval/provider-shapes.js.map +1 -1
- package/dist/modules/instance-ai/eval/request-sanitizer.d.ts +1 -0
- package/dist/modules/instance-ai/eval/request-sanitizer.js +16 -0
- package/dist/modules/instance-ai/eval/request-sanitizer.js.map +1 -1
- package/dist/modules/instance-ai/eval/scoped-credential-provider.d.ts +2 -3
- package/dist/modules/instance-ai/eval/scoped-credential-provider.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.d.ts +2 -2
- package/dist/modules/instance-ai/eval/thread-restore.service.js +22 -12
- package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +2 -3
- package/dist/modules/instance-ai/eval/workflow-analysis.js +7 -25
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/durable-event-log.d.ts +1 -13
- package/dist/modules/instance-ai/event-bus/durable-event-log.js +0 -4
- package/dist/modules/instance-ai/event-bus/durable-event-log.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.d.ts +1 -1
- package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.js.map +1 -1
- package/dist/modules/instance-ai/extract-resolved-node-parameters.d.ts +2 -1
- package/dist/modules/instance-ai/extract-resolved-node-parameters.js +14 -9
- package/dist/modules/instance-ai/extract-resolved-node-parameters.js.map +1 -1
- package/dist/modules/{agents/builder/format-preview-context.d.ts → instance-ai/format-agent-session-context.d.ts} +2 -3
- package/dist/modules/{agents/builder/format-preview-context.js → instance-ai/format-agent-session-context.js} +7 -1
- package/dist/modules/instance-ai/format-agent-session-context.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-agent-context.adapter.d.ts +8 -0
- package/dist/modules/instance-ai/instance-ai-agent-context.adapter.js +40 -0
- package/dist/modules/instance-ai/instance-ai-agent-context.adapter.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-builder-delegate.adapter.d.ts +18 -0
- package/dist/modules/instance-ai/instance-ai-builder-delegate.adapter.js +77 -0
- package/dist/modules/instance-ai/instance-ai-builder-delegate.adapter.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +3 -1
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +6 -3
- 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 +2 -2
- package/dist/modules/instance-ai/instance-ai-credit.service.js +6 -1
- package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-hub-skills.d.ts +9 -0
- package/dist/modules/instance-ai/instance-ai-hub-skills.js +240 -0
- package/dist/modules/instance-ai/instance-ai-hub-skills.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +1 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.js +11 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-model.service.d.ts +4 -2
- package/dist/modules/instance-ai/instance-ai-model.service.js +7 -2
- package/dist/modules/instance-ai/instance-ai-model.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.d.ts +3 -15
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.js +13 -33
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-preference-card.service.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai-preference-card.service.js +2 -2
- package/dist/modules/instance-ai/instance-ai-preference-card.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +3 -10
- package/dist/modules/instance-ai/instance-ai-settings.service.js +6 -40
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-skill-display.d.ts +3 -0
- package/dist/modules/instance-ai/instance-ai-skill-display.js +38 -0
- package/dist/modules/instance-ai/instance-ai-skill-display.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-skills.adapter.d.ts +8 -0
- package/dist/modules/instance-ai/instance-ai-skills.adapter.js +72 -0
- package/dist/modules/instance-ai/instance-ai-skills.adapter.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-skills.service.d.ts +9 -4
- package/dist/modules/instance-ai/instance-ai-skills.service.js +22 -6
- package/dist/modules/instance-ai/instance-ai-skills.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.d.ts +0 -1
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js +0 -1
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +11 -7
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +304 -124
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +5 -117
- package/dist/modules/instance-ai/instance-ai.controller.js +36 -475
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +17 -3
- package/dist/modules/instance-ai/instance-ai.module.js +47 -13
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +18 -90
- package/dist/modules/instance-ai/instance-ai.service.js +273 -1644
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-context.service.d.ts +0 -1
- package/dist/modules/instance-ai/instance-context.service.js +9 -6
- package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
- package/dist/modules/instance-ai/internal-messages.d.ts +1 -0
- package/dist/modules/instance-ai/internal-messages.js +17 -0
- package/dist/modules/instance-ai/internal-messages.js.map +1 -1
- package/dist/modules/instance-ai/message-parser.js +47 -4
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/model-config-name.js +9 -7
- package/dist/modules/instance-ai/model-config-name.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +4 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +12 -6
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.d.ts +8 -3
- package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.js +58 -4
- package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.js.map +1 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +8 -2
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/candidate-workflow.d.ts +22 -0
- package/dist/modules/instance-ai/self-healing/candidate-workflow.js +127 -0
- package/dist/modules/instance-ai/self-healing/candidate-workflow.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-reviewer.entity.d.ts +9 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-reviewer.entity.js +41 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-reviewer.entity.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-workflow.entity.d.ts +11 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-workflow.entity.js +51 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-workflow.entity.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.entity.d.ts +11 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.entity.js +54 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.entity.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.repository.d.ts +17 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.repository.js +195 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.repository.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.entity.d.ts +21 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.entity.js +94 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.entity.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.repository.d.ts +21 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.repository.js +77 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.repository.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.d.ts +3 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js +11 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.d.ts +8 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +25 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-temporary-workflow.repository.d.ts +14 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-temporary-workflow.repository.js +92 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-temporary-workflow.repository.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-agent.service.d.ts +94 -0
- package/dist/modules/instance-ai/self-healing/self-healing-agent.service.js +429 -0
- package/dist/modules/instance-ai/self-healing/self-healing-agent.service.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-candidate.service.d.ts +143 -0
- package/dist/modules/instance-ai/self-healing/self-healing-candidate.service.js +212 -0
- package/dist/modules/instance-ai/self-healing/self-healing-candidate.service.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-configuration.service.d.ts +34 -0
- package/dist/modules/instance-ai/self-healing/self-healing-configuration.service.js +213 -0
- package/dist/modules/instance-ai/self-healing/self-healing-configuration.service.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-configurations.controller.d.ts +20 -0
- package/dist/modules/instance-ai/self-healing/self-healing-configurations.controller.js +109 -0
- package/dist/modules/instance-ai/self-healing/self-healing-configurations.controller.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.d.ts +2 -1
- package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js +23 -0
- package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/self-healing-investigation.service.d.ts +55 -0
- package/dist/modules/instance-ai/self-healing/self-healing-investigation.service.js +255 -0
- package/dist/modules/instance-ai/self-healing/self-healing-investigation.service.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-reconciliation.task.d.ts +11 -0
- package/dist/modules/instance-ai/self-healing/self-healing-reconciliation.task.js +37 -0
- package/dist/modules/instance-ai/self-healing/self-healing-reconciliation.task.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.d.ts +24 -13
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +133 -68
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/self-healing-temporary-workflow.service.d.ts +29 -0
- package/dist/modules/instance-ai/self-healing/self-healing-temporary-workflow.service.js +118 -0
- package/dist/modules/instance-ai/self-healing/self-healing-temporary-workflow.service.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-trigger.service.d.ts +18 -0
- package/dist/modules/instance-ai/self-healing/self-healing-trigger.service.js +100 -0
- package/dist/modules/instance-ai/self-healing/self-healing-trigger.service.js.map +1 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +2 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +3 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.d.ts +2 -1
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js +3 -0
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js.map +1 -1
- package/dist/modules/instance-ai/suspended-run-restorer.service.js +1 -0
- package/dist/modules/instance-ai/suspended-run-restorer.service.js.map +1 -1
- package/dist/modules/instance-ai/suspended-thread-persistence.service.d.ts +0 -1
- package/dist/modules/instance-ai/suspended-thread-persistence.service.js +0 -1
- package/dist/modules/instance-ai/suspended-thread-persistence.service.js.map +1 -1
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.d.ts +1 -1
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js +0 -1
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js.map +1 -1
- package/dist/modules/instance-ai/turn-setup/assistant-agent.factory.d.ts +51 -0
- package/dist/modules/instance-ai/turn-setup/assistant-agent.factory.js +226 -0
- package/dist/modules/instance-ai/turn-setup/assistant-agent.factory.js.map +1 -0
- package/dist/modules/instance-ai/turn-setup/assistant-credits.d.ts +10 -0
- package/dist/modules/instance-ai/turn-setup/assistant-credits.js +22 -0
- package/dist/modules/instance-ai/turn-setup/assistant-credits.js.map +1 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.d.ts +84 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.js +423 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.js.map +1 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.d.ts +70 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.js +447 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.js.map +1 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-runtime.d.ts +36 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-runtime.js +3 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-runtime.js.map +1 -0
- package/dist/modules/instance-ai/workflow-json.d.ts +6 -0
- package/dist/modules/instance-ai/workflow-json.js +36 -0
- package/dist/modules/instance-ai/workflow-json.js.map +1 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.d.ts +1 -1
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js +15 -11
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js.map +1 -1
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.d.ts +8 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js +23 -17
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js.map +1 -1
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.d.ts +1 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js +14 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js.map +1 -1
- package/dist/modules/instance-ai/workflow-verification-obligation-service.d.ts +3 -13
- package/dist/modules/instance-ai/workflow-verification-obligation-service.js +3 -39
- package/dist/modules/instance-ai/workflow-verification-obligation-service.js.map +1 -1
- package/dist/modules/instance-ai/workflow-verification-task-projector.d.ts +1 -4
- package/dist/modules/instance-ai/workflow-verification-task-projector.js +3 -84
- package/dist/modules/instance-ai/workflow-verification-task-projector.js.map +1 -1
- package/dist/modules/instance-registry/instance-registry.service.d.ts +1 -0
- package/dist/modules/instance-registry/instance-registry.service.js +27 -0
- package/dist/modules/instance-registry/instance-registry.service.js.map +1 -1
- package/dist/modules/knowledge/knowledge-availability.service.d.ts +10 -0
- package/dist/modules/knowledge/knowledge-availability.service.js +39 -0
- package/dist/modules/knowledge/knowledge-availability.service.js.map +1 -0
- package/dist/modules/knowledge/knowledge-consumer-scope.d.ts +6 -0
- package/dist/modules/knowledge/knowledge-consumer-scope.js +3 -0
- package/dist/modules/knowledge/knowledge-consumer-scope.js.map +1 -0
- package/dist/modules/knowledge/knowledge-retriever.d.ts +8 -0
- package/dist/modules/knowledge/knowledge-retriever.js +3 -0
- package/dist/modules/knowledge/knowledge-retriever.js.map +1 -0
- package/dist/modules/knowledge/knowledge-sandbox-provider.d.ts +15 -0
- package/dist/modules/knowledge/knowledge-sandbox-provider.js +3 -0
- package/dist/modules/knowledge/knowledge-sandbox-provider.js.map +1 -0
- package/dist/modules/knowledge/knowledge.module.d.ts +5 -0
- package/dist/modules/knowledge/knowledge.module.js +22 -0
- package/dist/modules/knowledge/knowledge.module.js.map +1 -0
- package/dist/modules/knowledge/vector-stores/connection-test.service.d.ts +8 -0
- package/dist/modules/{agents/agent-vector-stores.service.js → knowledge/vector-stores/connection-test.service.js} +11 -21
- package/dist/modules/knowledge/vector-stores/connection-test.service.js.map +1 -0
- package/dist/modules/{agents/json-config → knowledge/vector-stores}/embedding-credential.js +1 -1
- package/dist/modules/knowledge/vector-stores/embedding-credential.js.map +1 -0
- package/dist/modules/{agents/json-config/vector-store-factory.js → knowledge/vector-stores/factory.js} +1 -1
- package/dist/modules/knowledge/vector-stores/factory.js.map +1 -0
- package/dist/modules/ldap.ee/ldap.service.ee.d.ts +1 -3
- package/dist/modules/ldap.ee/ldap.service.ee.js +36 -36
- package/dist/modules/ldap.ee/ldap.service.ee.js.map +1 -1
- package/dist/modules/mcp/mcp-api-key.service.d.ts +5 -1
- package/dist/modules/mcp/mcp-api-key.service.js +13 -10
- package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
- package/dist/modules/mcp/mcp-protected-resource.js +2 -1
- package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
- package/dist/modules/mcp/mcp-scopes.js +2 -2
- package/dist/modules/mcp/mcp-scopes.js.map +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.d.ts +12 -6
- package/dist/modules/mcp/mcp-server-middleware.service.js +107 -67
- package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
- package/dist/modules/mcp/mcp-tool-availability.d.ts +0 -1
- package/dist/modules/mcp/mcp-tool-availability.js +0 -4
- package/dist/modules/mcp/mcp-tool-availability.js.map +1 -1
- package/dist/modules/mcp/mcp.constants.d.ts +1 -0
- package/dist/modules/mcp/mcp.constants.js +2 -1
- package/dist/modules/mcp/mcp.constants.js.map +1 -1
- package/dist/modules/mcp/mcp.module.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +2 -2
- package/dist/modules/mcp/mcp.service.js +9 -4
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +6 -26
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/get-user-preferences.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/get-user-preferences.tool.js +3 -3
- package/dist/modules/mcp/tools/get-user-preferences.tool.js.map +1 -1
- package/dist/modules/mcp/tools/save-user-preference.tool.d.ts +1 -2
- package/dist/modules/mcp/tools/save-user-preference.tool.js.map +1 -1
- package/dist/modules/mcp/tools/skills/skill-extension.service.d.ts +27 -0
- package/dist/modules/mcp/tools/skills/skill-extension.service.js +160 -0
- package/dist/modules/mcp/tools/skills/skill-extension.service.js.map +1 -0
- package/dist/modules/mcp/tools/skills/skill-tools.service.d.ts +5 -3
- package/dist/modules/mcp/tools/skills/skill-tools.service.js +28 -19
- package/dist/modules/mcp/tools/skills/skill-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/undo-user-preference.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/update-user-preference.tool.d.ts +1 -2
- package/dist/modules/mcp/tools/update-user-preference.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/install-community-node.tool.js +6 -0
- package/dist/modules/mcp/tools/workflow-builder/install-community-node.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +3 -3
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-auth-fetch.d.ts +2 -1
- package/dist/modules/mcp-registry/mcp-auth-fetch.js +3 -3
- package/dist/modules/mcp-registry/mcp-auth-fetch.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-connection-discovery.service.d.ts +4 -1
- package/dist/modules/mcp-registry/mcp-connection-discovery.service.js +42 -2
- package/dist/modules/mcp-registry/mcp-connection-discovery.service.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-connection.d.ts +3 -1
- package/dist/modules/mcp-registry/mcp-registry-connection.js +51 -3
- package/dist/modules/mcp-registry/mcp-registry-connection.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-node-loader.d.ts +1 -0
- package/dist/modules/mcp-registry/mcp-registry-node-loader.js +6 -1
- package/dist/modules/mcp-registry/mcp-registry-node-loader.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-response.js +2 -0
- package/dist/modules/mcp-registry/mcp-registry-response.js.map +1 -1
- package/dist/modules/mcp-registry/node-description-transform.d.ts +1 -0
- package/dist/modules/mcp-registry/node-description-transform.js +60 -2
- package/dist/modules/mcp-registry/node-description-transform.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry-ai-gateway.d.ts +3 -0
- package/dist/modules/mcp-registry/registry/mcp-registry-ai-gateway.js +50 -0
- package/dist/modules/mcp-registry/registry/mcp-registry-ai-gateway.js.map +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry-api.client.js +4 -0
- package/dist/modules/mcp-registry/registry/mcp-registry-api.client.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry-capabilities.d.ts +3 -1
- package/dist/modules/mcp-registry/registry/mcp-registry-capabilities.js +9 -2
- package/dist/modules/mcp-registry/registry/mcp-registry-capabilities.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry-search.d.ts +3 -1
- package/dist/modules/mcp-registry/registry/mcp-registry-search.js +9 -2
- package/dist/modules/mcp-registry/registry/mcp-registry-search.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +8 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js +80 -12
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.types.d.ts +20 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js +18 -3
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mock-servers.d.ts +87 -1
- package/dist/modules/mcp-registry/registry/mock-servers.js +48 -1
- package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
- package/dist/modules/modules.manifest.js +7 -0
- package/dist/modules/modules.manifest.js.map +1 -1
- package/dist/modules/n8n-packages/engine/credential-save-policy.d.ts +3 -1
- package/dist/modules/n8n-packages/engine/credential-save-policy.js +47 -0
- package/dist/modules/n8n-packages/engine/credential-save-policy.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-blocked.error.js +2 -1
- package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-gates.d.ts +3 -2
- package/dist/modules/n8n-packages/engine/import-gates.js +7 -0
- package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +11 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +118 -13
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-result.d.ts +12 -1
- package/dist/modules/n8n-packages/engine/import-result.js +29 -4
- package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.js +6 -2
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +1 -3
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +12 -22
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/package-layout.d.ts +1 -2
- package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.js +32 -8
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +22 -21
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-body-issues.d.ts +4 -0
- package/dist/modules/n8n-packages/entities/agent/agent-body-issues.js +16 -0
- package/dist/modules/n8n-packages/entities/agent/agent-body-issues.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import-bindings.d.ts +17 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import-bindings.js +275 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import-bindings.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import-match.service.d.ts +13 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import-match.service.js +111 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import-match.service.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.d.ts +61 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.js +14 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-importer.d.ts +25 -0
- package/dist/modules/n8n-packages/entities/agent/agent-importer.js +223 -0
- package/dist/modules/n8n-packages/entities/agent/agent-importer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js +2 -2
- package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.d.ts +4 -1
- package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js +12 -1
- package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js +3 -2
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +15 -5
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js +116 -11
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +31 -14
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +2 -2
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +8 -2
- package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js +1 -0
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-compat.d.ts +1 -1
- 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 +1 -1
- 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-schema-conflict-policy.d.ts +1 -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.serializer.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js +2 -2
- 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 +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder-import.types.d.ts +6 -2
- package/dist/modules/n8n-packages/entities/folder/folder-importer.d.ts +3 -1
- package/dist/modules/n8n-packages/entities/folder/folder-importer.js +44 -16
- package/dist/modules/n8n-packages/entities/folder/folder-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder-remover.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/folder/folder-remover.js +12 -2
- package/dist/modules/n8n-packages/entities/folder/folder-remover.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.serializer.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.serializer.js +2 -2
- package/dist/modules/n8n-packages/entities/folder/folder.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/import-conflict-policy.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/import-conflict-policy.js +12 -0
- package/dist/modules/n8n-packages/entities/import-conflict-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/import-id-policy.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/import-id-policy.js +12 -0
- package/dist/modules/n8n-packages/entities/import-id-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/match-source-ids.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/match-source-ids.js +32 -0
- package/dist/modules/n8n-packages/entities/match-source-ids.js.map +1 -0
- package/dist/modules/n8n-packages/entities/planned-placements.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/planned-placements.js +12 -0
- package/dist/modules/n8n-packages/entities/planned-placements.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project-import.types.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/project/project.serializer.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/project/project.serializer.js +2 -2
- package/dist/modules/n8n-packages/entities/project/project.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag-importer.d.ts +8 -1
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js +13 -5
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js +6 -3
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.serializer.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.serializer.js +3 -3
- package/dist/modules/n8n-packages/entities/variable/variable.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js +8 -5
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.d.ts +0 -6
- package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js +3 -31
- package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.js +8 -28
- package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +2 -6
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.d.ts +5 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +16 -7
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-published-state.d.ts +4 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-published-state.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.js +8 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-remover.js +13 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-remover.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +17 -6
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.d.ts +8 -4
- package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js +28 -10
- package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js.map +1 -1
- package/dist/modules/n8n-packages/io/hashing-package-writer.d.ts +1 -0
- package/dist/modules/n8n-packages/io/hashing-package-writer.js +8 -5
- package/dist/modules/n8n-packages/io/hashing-package-writer.js.map +1 -1
- package/dist/modules/n8n-packages/io/manifest-entry.d.ts +1 -2
- package/dist/modules/n8n-packages/io/manifest-entry.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +2 -2
- package/dist/modules/n8n-packages/n8n-packages.service.js +4 -3
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +21 -4
- package/dist/modules/n8n-packages/n8n-packages.types.js +5 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +13 -7
- package/dist/modules/oauth-server/oauth-token.service.js +0 -3
- package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth.controller.js +7 -1
- package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.d.ts +2 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.d.ts +2 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.d.ts +4 -1
- package/dist/modules/otel/execution-level-tracer.js +21 -26
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +2 -0
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/otel/gen-ai-attributes.d.ts +3 -0
- package/dist/modules/otel/gen-ai-attributes.js +72 -0
- package/dist/modules/otel/gen-ai-attributes.js.map +1 -0
- package/dist/modules/otel/otel-lifecycle-handler.js +6 -1
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/otel/otel.config.d.ts +19 -0
- package/dist/modules/otel/otel.config.js +33 -1
- package/dist/modules/otel/otel.config.js.map +1 -1
- package/dist/modules/otel/otel.constants.d.ts +7 -3
- package/dist/modules/otel/otel.constants.js +8 -4
- package/dist/modules/otel/otel.constants.js.map +1 -1
- package/dist/modules/promotions.ee/branch-placement.d.ts +3 -0
- package/dist/modules/promotions.ee/branch-placement.js +3 -1
- package/dist/modules/promotions.ee/branch-placement.js.map +1 -1
- package/dist/modules/promotions.ee/constants.d.ts +0 -5
- package/dist/modules/promotions.ee/constants.js +1 -3
- package/dist/modules/promotions.ee/constants.js.map +1 -1
- package/dist/modules/promotions.ee/cross-project-moves.d.ts +41 -0
- package/dist/modules/promotions.ee/cross-project-moves.js +59 -0
- package/dist/modules/promotions.ee/cross-project-moves.js.map +1 -0
- package/dist/modules/promotions.ee/database/entities/promotion-environment-project.entity.d.ts +10 -0
- package/dist/modules/promotions.ee/database/entities/{promotion-connection-project.entity.js → promotion-environment-project.entity.js} +18 -14
- package/dist/modules/promotions.ee/database/entities/promotion-environment-project.entity.js.map +1 -0
- package/dist/modules/promotions.ee/database/entities/promotion-environment.entity.d.ts +16 -0
- package/dist/modules/promotions.ee/database/entities/{promotion-connection.entity.js → promotion-environment.entity.js} +36 -13
- package/dist/modules/promotions.ee/database/entities/promotion-environment.entity.js.map +1 -0
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.d.ts +3 -3
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js +7 -7
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js.map +1 -1
- package/dist/modules/promotions.ee/database/entities/promotion-run.entity.d.ts +3 -3
- package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js +6 -6
- package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js.map +1 -1
- package/dist/modules/promotions.ee/database/promotion-conflict.error.d.ts +0 -3
- package/dist/modules/promotions.ee/database/promotion-conflict.error.js +0 -4
- package/dist/modules/promotions.ee/database/promotion-conflict.error.js.map +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-environment-project.repository.d.ts +11 -0
- package/dist/modules/promotions.ee/database/repositories/{promotion-connection-project.repository.js → promotion-environment-project.repository.js} +21 -20
- package/dist/modules/promotions.ee/database/repositories/promotion-environment-project.repository.js.map +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-environment.repository.d.ts +28 -0
- package/dist/modules/promotions.ee/database/repositories/{promotion-connection.repository.js → promotion-environment.repository.js} +21 -22
- package/dist/modules/promotions.ee/database/repositories/promotion-environment.repository.js.map +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js.map +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.d.ts +15 -10
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js +53 -21
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js.map +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.d.ts +2 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js +8 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js.map +1 -1
- package/dist/modules/promotions.ee/git-hosts/{git-host-target.d.ts → git-host-remote.d.ts} +7 -6
- package/dist/modules/promotions.ee/git-hosts/{git-host-target.js → git-host-remote.js} +24 -18
- package/dist/modules/promotions.ee/git-hosts/git-host-remote.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +2 -2
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.client.d.ts +21 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.client.js +230 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.client.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.types.d.ts +87 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.types.js +33 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.types.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-change.service.d.ts +37 -5
- package/dist/modules/promotions.ee/promotion-change.service.js +294 -48
- package/dist/modules/promotions.ee/promotion-change.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-changes.controller.d.ts +7 -3
- package/dist/modules/promotions.ee/promotion-changes.controller.js +38 -6
- package/dist/modules/promotions.ee/promotion-changes.controller.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-commit-message.d.ts +15 -0
- package/dist/modules/promotions.ee/promotion-commit-message.js +30 -0
- package/dist/modules/promotions.ee/promotion-commit-message.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-environment.resolver.d.ts +14 -0
- package/dist/modules/promotions.ee/promotion-environment.resolver.js +79 -0
- package/dist/modules/promotions.ee/promotion-environment.resolver.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-environments.service.d.ts +95 -0
- package/dist/modules/promotions.ee/promotion-environments.service.js +224 -0
- package/dist/modules/promotions.ee/promotion-environments.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-preview.d.ts +47 -0
- package/dist/modules/promotions.ee/promotion-preview.js +349 -0
- package/dist/modules/promotions.ee/promotion-preview.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-providers.service.d.ts +3 -3
- package/dist/modules/promotions.ee/promotion-providers.service.js +6 -6
- package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-review-changes.service.d.ts +19 -0
- package/dist/modules/promotions.ee/promotion-review-changes.service.js +186 -0
- package/dist/modules/promotions.ee/promotion-review-changes.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-review-gate.service.d.ts +17 -0
- package/dist/modules/promotions.ee/promotion-review-gate.service.js +91 -0
- package/dist/modules/promotions.ee/promotion-review-gate.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-review-host.resolver.d.ts +16 -0
- package/dist/modules/promotions.ee/promotion-review-host.resolver.js +55 -0
- package/dist/modules/promotions.ee/promotion-review-host.resolver.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-review-inbox.service.d.ts +45 -0
- package/dist/modules/promotions.ee/promotion-review-inbox.service.js +283 -0
- package/dist/modules/promotions.ee/promotion-review-inbox.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-review.utils.d.ts +3 -0
- package/dist/modules/promotions.ee/promotion-review.utils.js +27 -0
- package/dist/modules/promotions.ee/promotion-review.utils.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-reviews.controller.d.ts +13 -0
- package/dist/modules/promotions.ee/promotion-reviews.controller.js +70 -0
- package/dist/modules/promotions.ee/promotion-reviews.controller.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-reviews.service.d.ts +29 -0
- package/dist/modules/promotions.ee/promotion-reviews.service.js +100 -0
- package/dist/modules/promotions.ee/promotion-reviews.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-working-directory.service.d.ts +5 -5
- package/dist/modules/promotions.ee/promotion-working-directory.service.js +15 -16
- package/dist/modules/promotions.ee/promotion-working-directory.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions-git.service.d.ts +40 -6
- package/dist/modules/promotions.ee/promotions-git.service.js +235 -17
- package/dist/modules/promotions.ee/promotions-git.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions-git.utils.d.ts +3 -4
- package/dist/modules/promotions.ee/promotions-git.utils.js +3 -4
- package/dist/modules/promotions.ee/promotions-git.utils.js.map +1 -1
- package/dist/modules/promotions.ee/promotions-selective-push.error.d.ts +4 -1
- package/dist/modules/promotions.ee/promotions-selective-push.error.js +4 -3
- package/dist/modules/promotions.ee/promotions-selective-push.error.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.module.d.ts +1 -1
- package/dist/modules/promotions.ee/promotions.module.js +14 -6
- package/dist/modules/promotions.ee/promotions.module.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.service.d.ts +38 -9
- package/dist/modules/promotions.ee/promotions.service.js +452 -107
- package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.types.d.ts +13 -8
- package/dist/modules/promotions.ee/working-copy-updater.js +5 -2
- package/dist/modules/promotions.ee/working-copy-updater.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +0 -1
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +2 -14
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/redaction/executions/execution-redaction.service.js +0 -3
- package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
- package/dist/modules/scim/database/scim-token.repository.d.ts +32 -0
- package/dist/modules/scim/database/scim-token.repository.js +95 -0
- package/dist/modules/scim/database/scim-token.repository.js.map +1 -0
- package/dist/modules/scim/database/scim-user.repository.js +1 -2
- package/dist/modules/scim/database/scim-user.repository.js.map +1 -1
- package/dist/modules/scim/scim-auth.middleware.d.ts +4 -1
- package/dist/modules/scim/scim-auth.middleware.js +18 -10
- package/dist/modules/scim/scim-auth.middleware.js.map +1 -1
- package/dist/modules/scim/scim-discovery.controller.js +1 -8
- package/dist/modules/scim/scim-discovery.controller.js.map +1 -1
- package/dist/modules/scim/scim-settings.service.d.ts +15 -2
- package/dist/modules/scim/scim-settings.service.js +36 -3
- package/dist/modules/scim/scim-settings.service.js.map +1 -1
- package/dist/modules/scim/scim-sso.service.d.ts +16 -0
- package/dist/modules/scim/scim-sso.service.js +72 -0
- package/dist/modules/scim/scim-sso.service.js.map +1 -0
- package/dist/modules/scim/scim-token.controller.d.ts +7 -3
- package/dist/modules/scim/scim-token.controller.js +43 -10
- package/dist/modules/scim/scim-token.controller.js.map +1 -1
- package/dist/modules/scim/scim-token.service.d.ts +8 -13
- package/dist/modules/scim/scim-token.service.js +35 -48
- package/dist/modules/scim/scim-token.service.js.map +1 -1
- package/dist/modules/scim/scim.controller.js +5 -0
- package/dist/modules/scim/scim.controller.js.map +1 -1
- package/dist/modules/scim/scim.errors.d.ts +9 -0
- package/dist/modules/scim/scim.errors.js +19 -1
- package/dist/modules/scim/scim.errors.js.map +1 -1
- package/dist/modules/scim/scim.module.js +2 -0
- package/dist/modules/scim/scim.module.js.map +1 -1
- package/dist/modules/scim/scim.service.d.ts +9 -9
- package/dist/modules/scim/scim.service.js +46 -69
- package/dist/modules/scim/scim.service.js.map +1 -1
- package/dist/modules/skills/assistant-skills-rollout.d.ts +8 -0
- package/dist/modules/skills/assistant-skills-rollout.js +32 -0
- package/dist/modules/skills/assistant-skills-rollout.js.map +1 -0
- package/dist/modules/skills/hub-assistant-skill-provider.service.d.ts +12 -0
- package/dist/modules/skills/hub-assistant-skill-provider.service.js +45 -0
- package/dist/modules/skills/hub-assistant-skill-provider.service.js.map +1 -0
- package/dist/modules/skills/skill-agents-proxy.service.d.ts +39 -0
- package/dist/modules/skills/skill-agents-proxy.service.js +74 -0
- package/dist/modules/skills/skill-agents-proxy.service.js.map +1 -0
- package/dist/modules/{agents/skills → skills}/skill-content-hash.d.ts +1 -1
- package/dist/modules/skills/skill-content-hash.js.map +1 -0
- package/dist/modules/skills/skill-file.entity.js.map +1 -0
- package/dist/modules/skills/skill-hash.d.ts +2 -0
- package/dist/modules/skills/skill-hash.js +21 -0
- package/dist/modules/skills/skill-hash.js.map +1 -0
- package/dist/modules/skills/skill-name-taken.error.js.map +1 -0
- package/dist/modules/skills/skill-names.js.map +1 -0
- package/dist/modules/skills/skill-version.entity.js.map +1 -0
- package/dist/modules/{agents/entities → skills}/skill.entity.d.ts +4 -1
- package/dist/modules/{agents/entities → skills}/skill.entity.js +8 -0
- package/dist/modules/skills/skill.entity.js.map +1 -0
- package/dist/modules/{agents/repositories → skills}/skill.repository.d.ts +39 -38
- package/dist/modules/skills/skill.repository.js +410 -0
- package/dist/modules/skills/skill.repository.js.map +1 -0
- package/dist/modules/{agents/skills → skills}/skill.service.d.ts +35 -27
- package/dist/modules/{agents/skills → skills}/skill.service.js +138 -102
- package/dist/modules/skills/skill.service.js.map +1 -0
- package/dist/modules/{agents/skills → skills}/skills-api.service.d.ts +11 -3
- package/dist/modules/{agents/skills → skills}/skills-api.service.js +111 -31
- package/dist/modules/skills/skills-api.service.js.map +1 -0
- package/dist/modules/{agents/skills → skills}/skills-telemetry.d.ts +7 -5
- package/dist/modules/{agents/skills → skills}/skills-telemetry.js +7 -5
- package/dist/modules/skills/skills-telemetry.js.map +1 -0
- package/dist/modules/{agents → skills}/skills.controller.d.ts +8 -6
- package/dist/modules/{agents → skills}/skills.controller.js +27 -8
- package/dist/modules/skills/skills.controller.js.map +1 -0
- package/dist/modules/skills/skills.module.d.ts +5 -0
- package/dist/modules/skills/skills.module.js +30 -0
- package/dist/modules/skills/skills.module.js.map +1 -0
- package/dist/modules/source-control.ee/source-control-export.service.ee.js +15 -11
- package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-helper.ee.d.ts +1 -1
- package/dist/modules/source-control.ee/source-control-helper.ee.js +4 -2
- package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +13 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-preferences.service.ee.js +11 -6
- package/dist/modules/source-control.ee/source-control-preferences.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.js +18 -2
- package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js +2 -0
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/types/source-control-preferences.d.ts +2 -0
- package/dist/modules/source-control.ee/types/source-control-preferences.js +7 -0
- package/dist/modules/source-control.ee/types/source-control-preferences.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.service.ee.js +2 -0
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
- package/dist/modules/sso-saml/saml-helpers.js +2 -0
- package/dist/modules/sso-saml/saml-helpers.js.map +1 -1
- package/dist/modules/sso-saml/saml.service.ee.d.ts +3 -2
- package/dist/modules/sso-saml/saml.service.ee.js +15 -3
- package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
- package/dist/modules/token-exchange/services/scoped-jwt.strategy.d.ts +2 -2
- package/dist/modules/token-exchange/services/scoped-jwt.strategy.js +7 -4
- package/dist/modules/token-exchange/services/scoped-jwt.strategy.js.map +1 -1
- package/dist/modules/type-availability-policies/installed-type-restrictions.provider.d.ts +18 -0
- package/dist/modules/type-availability-policies/installed-type-restrictions.provider.js +56 -0
- package/dist/modules/type-availability-policies/installed-type-restrictions.provider.js.map +1 -0
- package/dist/modules/type-availability-policies/sub-workflow-policy-check.controller.d.ts +9 -0
- package/dist/modules/type-availability-policies/sub-workflow-policy-check.controller.js +46 -0
- package/dist/modules/type-availability-policies/sub-workflow-policy-check.controller.js.map +1 -0
- package/dist/modules/type-availability-policies/sub-workflow-policy-check.service.d.ts +24 -0
- package/dist/modules/type-availability-policies/sub-workflow-policy-check.service.js +88 -0
- package/dist/modules/type-availability-policies/sub-workflow-policy-check.service.js.map +1 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.d.ts +1 -1
- package/dist/modules/type-availability-policies/type-availability-policies.module.js +3 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
- package/dist/modules/type-availability-policies/type-violation.d.ts +2 -1
- package/dist/modules/type-availability-policies/type-violation.js +20 -4
- package/dist/modules/type-availability-policies/type-violation.js.map +1 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.js +2 -5
- package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.d.ts +3 -3
- package/dist/node-execution/ephemeral-node-executor.js +16 -17
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/node-execution/execute-node.service.d.ts +7 -1
- package/dist/node-execution/execute-node.service.js +23 -7
- package/dist/node-execution/execute-node.service.js.map +1 -1
- package/dist/oauth/oauth.service.js +3 -0
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/policy/policed-agent-nodes.d.ts +2 -1
- package/dist/policy/policed-agent-nodes.js +45 -7
- package/dist/policy/policed-agent-nodes.js.map +1 -1
- package/dist/policy/policy-enforcement.service.d.ts +2 -0
- package/dist/policy/policy-enforcement.service.js +6 -3
- package/dist/policy/policy-enforcement.service.js.map +1 -1
- package/dist/posthog/index.d.ts +1 -0
- package/dist/posthog/index.js +11 -5
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/index.js +2 -0
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/media-types/binary-response.js +2 -35
- package/dist/public-api/media-types/binary-response.js.map +1 -1
- package/dist/public-api/public-api-controller.registry.js +10 -3
- package/dist/public-api/public-api-controller.registry.js.map +1 -1
- package/dist/public-api/public-api-rate-limit-settings.service.d.ts +25 -0
- package/dist/public-api/public-api-rate-limit-settings.service.js +133 -0
- package/dist/public-api/public-api-rate-limit-settings.service.js.map +1 -0
- package/dist/public-api/public-api-rate-limit-store.factory.d.ts +16 -0
- package/dist/public-api/public-api-rate-limit-store.factory.js +100 -0
- package/dist/public-api/public-api-rate-limit-store.factory.js.map +1 -0
- package/dist/public-api/public-api-rate-limit.service.d.ts +6 -4
- package/dist/public-api/public-api-rate-limit.service.js +15 -13
- package/dist/public-api/public-api-rate-limit.service.js.map +1 -1
- package/dist/public-api/types.d.ts +2 -3
- package/dist/public-api/v1/controllers/community-packages.public.controller.d.ts +2 -2
- package/dist/public-api/v1/controllers/community-packages.public.controller.js +4 -2
- package/dist/public-api/v1/controllers/community-packages.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/credentials.public.controller.d.ts +5 -2
- package/dist/public-api/v1/controllers/credentials.public.controller.js +28 -2
- package/dist/public-api/v1/controllers/credentials.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/data-tables.public.controller.d.ts +5 -2
- package/dist/public-api/v1/controllers/data-tables.public.controller.js +31 -2
- package/dist/public-api/v1/controllers/data-tables.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/executions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/promotions.public.controller.d.ts +15 -18
- package/dist/public-api/v1/controllers/promotions.public.controller.js +105 -174
- package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +5 -2
- package/dist/public-api/v1/controllers/workflows.public.controller.js +30 -2
- package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
- package/dist/public-api/v1/handlers/credentials/credentials.utils.js +6 -0
- package/dist/public-api/v1/handlers/credentials/credentials.utils.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +1150 -881
- package/dist/public-api/v1/shared/dependency.mapper.d.ts +5 -0
- package/dist/public-api/v1/shared/dependency.mapper.js +28 -0
- package/dist/public-api/v1/shared/dependency.mapper.js.map +1 -0
- package/dist/response-helper.d.ts +2 -0
- package/dist/response-helper.js +43 -1
- package/dist/response-helper.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/constants.js +2 -0
- package/dist/scaling/constants.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +5 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
- package/dist/scheduling/durable-job-provisioner.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-gateway-eligibility.d.ts +1 -1
- package/dist/services/ai-gateway-eligibility.js +3 -0
- package/dist/services/ai-gateway-eligibility.js.map +1 -1
- package/dist/services/ai-gateway.service.d.ts +7 -1
- package/dist/services/ai-gateway.service.js +90 -12
- package/dist/services/ai-gateway.service.js.map +1 -1
- package/dist/services/ai-preference-write.d.ts +1 -1
- package/dist/services/ai-preference-write.js +2 -2
- package/dist/services/ai-preference-write.js.map +1 -1
- package/dist/services/api-key-auth.strategy.d.ts +2 -2
- package/dist/services/api-key-auth.strategy.js +8 -5
- package/dist/services/api-key-auth.strategy.js.map +1 -1
- package/dist/services/engine-data-plane-proxy.service.d.ts +3 -1
- package/dist/services/engine-data-plane-proxy.service.js +5 -0
- package/dist/services/engine-data-plane-proxy.service.js.map +1 -1
- package/dist/services/engine-v2-dispatcher.service.d.ts +5 -1
- package/dist/services/engine-v2-dispatcher.service.js +37 -23
- package/dist/services/engine-v2-dispatcher.service.js.map +1 -1
- package/dist/services/engine-v2-manual-run-planner.d.ts +25 -0
- package/dist/services/engine-v2-manual-run-planner.js +190 -0
- package/dist/services/engine-v2-manual-run-planner.js.map +1 -0
- package/dist/services/export.service.js +3 -1
- package/dist/services/export.service.js.map +1 -1
- package/dist/services/frontend.service.js +0 -2
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/node-resource-explorer.service.d.ts +8 -1
- package/dist/services/node-resource-explorer.service.js +155 -1
- package/dist/services/node-resource-explorer.service.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +25 -5
- package/dist/services/ownership-transfer/ownership-transfer.service.d.ts +1 -0
- package/dist/services/ownership-transfer/ownership-transfer.service.js +7 -0
- package/dist/services/ownership-transfer/ownership-transfer.service.js.map +1 -1
- package/dist/services/ownership.service.js +3 -1
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +2 -2
- package/dist/services/project.service.ee.js +16 -72
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/rate-limit.service.js +2 -2
- package/dist/services/rate-limit.service.js.map +1 -1
- package/dist/services/sandbox-settings.service.d.ts +7 -1
- package/dist/services/sandbox-settings.service.js +32 -2
- package/dist/services/sandbox-settings.service.js.map +1 -1
- package/dist/services/session-cookie-auth.strategy.d.ts +2 -2
- package/dist/services/session-cookie-auth.strategy.js +3 -3
- package/dist/services/session-cookie-auth.strategy.js.map +1 -1
- package/dist/services/user.service.js +2 -2
- package/dist/services/user.service.js.map +1 -1
- package/dist/sso.ee/scim-switch-reader.d.ts +16 -0
- package/dist/sso.ee/scim-switch-reader.js +56 -0
- package/dist/sso.ee/scim-switch-reader.js.map +1 -0
- package/dist/sso.ee/sso-helpers.d.ts +4 -0
- package/dist/sso.ee/sso-helpers.js +29 -0
- package/dist/sso.ee/sso-helpers.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker-server.js +3 -5
- package/dist/task-runners/task-broker/task-broker-server.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker.service.js +25 -7
- package/dist/task-runners/task-broker/task-broker.service.js.map +1 -1
- package/dist/task-runners/task-managers/task-requester.js +17 -1
- package/dist/task-runners/task-managers/task-requester.js.map +1 -1
- package/dist/task-runners/task-runner-module.js +3 -0
- package/dist/task-runners/task-runner-module.js.map +1 -1
- package/dist/task-runners/task-runner-process-js.js +5 -1
- package/dist/task-runners/task-runner-process-js.js.map +1 -1
- package/dist/telemetry/cluster-footprint.d.ts +12 -0
- package/dist/telemetry/cluster-footprint.js +20 -0
- package/dist/telemetry/cluster-footprint.js.map +1 -0
- package/dist/telemetry/index.d.ts +3 -0
- package/dist/telemetry/index.js +16 -0
- package/dist/telemetry/index.js.map +1 -1
- package/dist/user-management/email/templates/workflow-deactivated.handlebars +2 -2
- package/dist/user-management/email/user-management-mailer.d.ts +2 -1
- package/dist/user-management/email/user-management-mailer.js +12 -1
- package/dist/user-management/email/user-management-mailer.js.map +1 -1
- package/dist/utils/detect-managed-services.d.ts +5 -0
- package/dist/utils/detect-managed-services.js +33 -0
- package/dist/utils/detect-managed-services.js.map +1 -0
- package/dist/utils/model-stream-stall-options.js.map +1 -0
- package/dist/utils.d.ts +0 -1
- package/dist/utils.js +2 -18
- package/dist/utils.js.map +1 -1
- package/dist/wait-tracker.js +1 -0
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/hitl-interaction-webhooks.d.ts +2 -0
- package/dist/webhooks/hitl-interaction-webhooks.js +3 -0
- package/dist/webhooks/hitl-interaction-webhooks.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.d.ts +2 -0
- package/dist/webhooks/waiting-webhooks.js +25 -2
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +6 -4
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-request-handler.js +8 -10
- package/dist/webhooks/webhook-request-handler.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +1 -1
- package/dist/workflow-execute-additional-data.js +56 -14
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.js +7 -3
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.js +4 -1
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/deprecated-nodes-validation.service.d.ts +1 -0
- package/dist/workflows/deprecated-nodes-validation.service.js +43 -12
- package/dist/workflows/deprecated-nodes-validation.service.js.map +1 -1
- package/dist/workflows/error-workflow-id.d.ts +3 -0
- package/dist/workflows/error-workflow-id.js +17 -0
- package/dist/workflows/error-workflow-id.js.map +1 -0
- package/dist/workflows/error-workflow-validation.service.d.ts +0 -3
- package/dist/workflows/error-workflow-validation.service.js +0 -14
- package/dist/workflows/error-workflow-validation.service.js.map +1 -1
- package/dist/workflows/publication/publication-status-reporter.js +10 -1
- package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
- package/dist/workflows/publication/trigger-node-id-too-long.error.d.ts +5 -0
- package/dist/workflows/publication/trigger-node-id-too-long.error.js +18 -0
- package/dist/workflows/publication/trigger-node-id-too-long.error.js.map +1 -0
- package/dist/workflows/publication/workflow-publication-applier.d.ts +1 -0
- package/dist/workflows/publication/workflow-publication-applier.js +27 -0
- package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
- package/dist/workflows/workflow-creation.service.js +4 -3
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +1 -1
- package/dist/workflows/workflow-finder.service.js +2 -2
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-publisher.service.js +0 -3
- package/dist/workflows/workflow-publisher.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.js +6 -2
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.ee.d.ts +10 -22
- package/dist/workflows/workflow.service.ee.js +119 -57
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +15 -2
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +3 -18
- package/dist/workflows/workflows.controller.js +12 -0
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +52 -48
- package/templates/form-trigger.handlebars +1 -0
- package/dist/constants/credential-sharing.d.ts +0 -1
- package/dist/constants/credential-sharing.js +0 -8
- package/dist/constants/credential-sharing.js.map +0 -1
- package/dist/errors/response-errors/ai-preference-scope-full.error.d.ts +0 -12
- package/dist/errors/response-errors/ai-preference-scope-full.error.js +0 -13
- package/dist/errors/response-errors/ai-preference-scope-full.error.js.map +0 -1
- package/dist/modules/agents/agent-runtime-instrumentation.js.map +0 -1
- package/dist/modules/agents/agent-vector-stores.service.d.ts +0 -11
- package/dist/modules/agents/agent-vector-stores.service.js.map +0 -1
- package/dist/modules/agents/builder/format-preview-context.js.map +0 -1
- package/dist/modules/agents/builder/get-resource-locator-options.tool.d.ts +0 -107
- package/dist/modules/agents/builder/get-resource-locator-options.tool.js +0 -152
- package/dist/modules/agents/builder/get-resource-locator-options.tool.js.map +0 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +0 -7
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +0 -122
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +0 -1
- package/dist/modules/agents/entities/skill-file.entity.js.map +0 -1
- package/dist/modules/agents/entities/skill-version.entity.js.map +0 -1
- package/dist/modules/agents/entities/skill.entity.js.map +0 -1
- package/dist/modules/agents/instance-ai-agent-context.adapter.d.ts +0 -27
- package/dist/modules/agents/instance-ai-agent-context.adapter.js.map +0 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.d.ts +0 -28
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +0 -137
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/discord-gateway.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/discord-integration.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/discord-operations.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +0 -27
- package/dist/modules/agents/integrations/platforms/linear-integration.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/linear-operations.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/linear-tool-definitions.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/n8n-chat-integration.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/telegram-bridge-behavior.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +0 -1
- package/dist/modules/agents/json-config/credential-field-mapping.js.map +0 -1
- package/dist/modules/agents/json-config/embedding-credential.js.map +0 -1
- package/dist/modules/agents/json-config/vector-store-factory.js.map +0 -1
- package/dist/modules/agents/model-stream-stall-options.js.map +0 -1
- package/dist/modules/agents/repositories/skill.repository.js +0 -569
- package/dist/modules/agents/repositories/skill.repository.js.map +0 -1
- package/dist/modules/agents/skills/skill-content-hash.js.map +0 -1
- package/dist/modules/agents/skills/skill-name-taken.error.js.map +0 -1
- package/dist/modules/agents/skills/skill-names.js.map +0 -1
- package/dist/modules/agents/skills/skill.service.js.map +0 -1
- package/dist/modules/agents/skills/skills-api.service.js.map +0 -1
- package/dist/modules/agents/skills/skills-hub-rollout.d.ts +0 -10
- package/dist/modules/agents/skills/skills-hub-rollout.js.map +0 -1
- package/dist/modules/agents/skills/skills-hub-startup-copy.d.ts +0 -40
- package/dist/modules/agents/skills/skills-hub-startup-copy.js +0 -402
- package/dist/modules/agents/skills/skills-hub-startup-copy.js.map +0 -1
- package/dist/modules/agents/skills/skills-telemetry.js.map +0 -1
- package/dist/modules/agents/skills.controller.js.map +0 -1
- package/dist/modules/instance-ai/browser/composite-local-mcp-server.d.ts +0 -16
- package/dist/modules/instance-ai/browser/composite-local-mcp-server.js +0 -57
- package/dist/modules/instance-ai/browser/composite-local-mcp-server.js.map +0 -1
- package/dist/modules/instance-ai/computer-use-availability.d.ts +0 -14
- package/dist/modules/instance-ai/computer-use-availability.js +0 -42
- package/dist/modules/instance-ai/computer-use-availability.js.map +0 -1
- package/dist/modules/instance-ai/eval/data-table-pin-filter.d.ts +0 -7
- package/dist/modules/instance-ai/eval/data-table-pin-filter.js +0 -171
- package/dist/modules/instance-ai/eval/data-table-pin-filter.js.map +0 -1
- package/dist/modules/instance-ai/filesystem/index.d.ts +0 -3
- package/dist/modules/instance-ai/filesystem/index.js +0 -8
- package/dist/modules/instance-ai/filesystem/index.js.map +0 -1
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.d.ts +0 -31
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.js +0 -160
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.js.map +0 -1
- package/dist/modules/instance-ai/filesystem/local-gateway.d.ts +0 -45
- package/dist/modules/instance-ai/filesystem/local-gateway.js +0 -163
- package/dist/modules/instance-ai/filesystem/local-gateway.js.map +0 -1
- package/dist/modules/instance-ai/instance-ai-gateway.service.d.ts +0 -35
- package/dist/modules/instance-ai/instance-ai-gateway.service.js +0 -90
- package/dist/modules/instance-ai/instance-ai-gateway.service.js.map +0 -1
- package/dist/modules/instance-ai/planned-task-action-runner.d.ts +0 -91
- package/dist/modules/instance-ai/planned-task-action-runner.js +0 -138
- package/dist/modules/instance-ai/planned-task-action-runner.js.map +0 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.d.ts +0 -4
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.js +0 -12
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.js.map +0 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-id-policy.d.ts +0 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-id-policy.js +0 -12
- package/dist/modules/n8n-packages/entities/workflow/workflow-id-policy.js.map +0 -1
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +0 -26
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +0 -24
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +0 -1
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.d.ts +0 -75
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js +0 -43
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js.map +0 -1
- package/dist/modules/n8n-packages/spec/serialized/folder.schema.d.ts +0 -15
- package/dist/modules/n8n-packages/spec/serialized/folder.schema.js +0 -12
- package/dist/modules/n8n-packages/spec/serialized/folder.schema.js.map +0 -1
- package/dist/modules/n8n-packages/spec/serialized/project.schema.d.ts +0 -51
- package/dist/modules/n8n-packages/spec/serialized/project.schema.js +0 -20
- package/dist/modules/n8n-packages/spec/serialized/project.schema.js.map +0 -1
- package/dist/modules/n8n-packages/spec/serialized/tag.schema.d.ts +0 -12
- package/dist/modules/n8n-packages/spec/serialized/tag.schema.js +0 -11
- package/dist/modules/n8n-packages/spec/serialized/tag.schema.js.map +0 -1
- package/dist/modules/n8n-packages/spec/serialized/variable.schema.d.ts +0 -15
- package/dist/modules/n8n-packages/spec/serialized/variable.schema.js +0 -13
- package/dist/modules/n8n-packages/spec/serialized/variable.schema.js.map +0 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow-metadata.schema.d.ts +0 -12
- package/dist/modules/n8n-packages/spec/serialized/workflow-metadata.schema.js +0 -9
- package/dist/modules/n8n-packages/spec/serialized/workflow-metadata.schema.js.map +0 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +0 -201
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +0 -53
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +0 -1
- package/dist/modules/promotions.ee/database/entities/promotion-config.entity.d.ts +0 -11
- package/dist/modules/promotions.ee/database/entities/promotion-config.entity.js +0 -44
- package/dist/modules/promotions.ee/database/entities/promotion-config.entity.js.map +0 -1
- package/dist/modules/promotions.ee/database/entities/promotion-connection-project.entity.d.ts +0 -8
- package/dist/modules/promotions.ee/database/entities/promotion-connection-project.entity.js.map +0 -1
- package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.d.ts +0 -12
- package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.js.map +0 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-config.repository.d.ts +0 -19
- package/dist/modules/promotions.ee/database/repositories/promotion-config.repository.js +0 -67
- package/dist/modules/promotions.ee/database/repositories/promotion-config.repository.js.map +0 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-connection-project.repository.d.ts +0 -10
- package/dist/modules/promotions.ee/database/repositories/promotion-connection-project.repository.js.map +0 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.d.ts +0 -28
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js.map +0 -1
- package/dist/modules/promotions.ee/git-hosts/git-host-target.js.map +0 -1
- package/dist/modules/promotions.ee/promotion-config.resolver.d.ts +0 -16
- package/dist/modules/promotions.ee/promotion-config.resolver.js +0 -94
- package/dist/modules/promotions.ee/promotion-config.resolver.js.map +0 -1
- package/dist/modules/promotions.ee/promotion-connections.service.d.ts +0 -117
- package/dist/modules/promotions.ee/promotion-connections.service.js +0 -350
- package/dist/modules/promotions.ee/promotion-connections.service.js.map +0 -1
- package/dist/modules/scim/database/scim-api-key.repository.d.ts +0 -11
- package/dist/modules/scim/database/scim-api-key.repository.js +0 -51
- package/dist/modules/scim/database/scim-api-key.repository.js.map +0 -1
- package/dist/services/ai-preference.service.d.ts +0 -86
- package/dist/services/ai-preference.service.js +0 -507
- package/dist/services/ai-preference.service.js.map +0 -1
- /package/dist/{modules/agents/json-config → credentials}/credential-field-mapping.d.ts +0 -0
- /package/dist/{modules/agents/json-config → credentials}/credential-field-mapping.js +0 -0
- /package/dist/modules/agents/integrations/platforms/{discord-gateway.d.ts → discord/discord-gateway.d.ts} +0 -0
- /package/dist/modules/agents/integrations/platforms/{discord-gateway.js → discord/discord-gateway.js} +0 -0
- /package/dist/modules/agents/integrations/platforms/{discord-operations.d.ts → discord/discord-operations.d.ts} +0 -0
- /package/dist/modules/agents/integrations/platforms/{linear-tool-definitions.d.ts → linear/linear-tool-definitions.d.ts} +0 -0
- /package/dist/modules/{agents/json-config → knowledge/vector-stores}/embedding-credential.d.ts +0 -0
- /package/dist/modules/{agents/json-config/vector-store-factory.d.ts → knowledge/vector-stores/factory.d.ts} +0 -0
- /package/dist/modules/{agents/skills → skills}/skill-content-hash.js +0 -0
- /package/dist/modules/{agents/entities → skills}/skill-file.entity.d.ts +0 -0
- /package/dist/modules/{agents/entities → skills}/skill-file.entity.js +0 -0
- /package/dist/modules/{agents/skills → skills}/skill-name-taken.error.d.ts +0 -0
- /package/dist/modules/{agents/skills → skills}/skill-name-taken.error.js +0 -0
- /package/dist/modules/{agents/skills → skills}/skill-names.d.ts +0 -0
- /package/dist/modules/{agents/skills → skills}/skill-names.js +0 -0
- /package/dist/modules/{agents/entities → skills}/skill-version.entity.d.ts +0 -0
- /package/dist/modules/{agents/entities → skills}/skill-version.entity.js +0 -0
- /package/dist/{modules/agents → utils}/model-stream-stall-options.d.ts +0 -0
- /package/dist/{modules/agents → utils}/model-stream-stall-options.js +0 -0
|
@@ -53,16 +53,20 @@ const errors_1 = require("@n8n/errors");
|
|
|
53
53
|
const evaluation_config_service_1 = require("../../evaluation.ee/evaluation-config.service");
|
|
54
54
|
const llm_judge_provider_registry_1 = require("../../evaluation.ee/llm-judge-provider-registry");
|
|
55
55
|
const execution_persistence_1 = require("../../executions/execution-persistence");
|
|
56
|
+
const execution_viewer_reader_1 = require("../../executions/execution-viewer-reader");
|
|
57
|
+
const pre_execution_checks_1 = require("../../executions/pre-execution-checks");
|
|
56
58
|
const license_1 = require("../../license");
|
|
57
59
|
const load_nodes_and_credentials_1 = require("../../load-nodes-and-credentials");
|
|
58
|
-
const
|
|
60
|
+
const agents_builder_service_1 = require("../../modules/agents/builder/agents-builder.service");
|
|
59
61
|
const scoped_credential_provider_1 = require("./eval/scoped-credential-provider");
|
|
60
|
-
const instance_ai_builder_delegate_adapter_1 = require("
|
|
62
|
+
const instance_ai_builder_delegate_adapter_1 = require("./instance-ai-builder-delegate.adapter");
|
|
63
|
+
const instance_ai_skills_adapter_1 = require("./instance-ai-skills.adapter");
|
|
61
64
|
const data_table_repository_1 = require("../../modules/data-table/data-table.repository");
|
|
62
65
|
const data_table_service_1 = require("../../modules/data-table/data-table.service");
|
|
63
66
|
const node_description_transform_1 = require("../../modules/mcp-registry/node-description-transform");
|
|
64
67
|
const mcp_registry_connection_1 = require("../../modules/mcp-registry/mcp-registry-connection");
|
|
65
68
|
const mcp_registry_service_1 = require("../../modules/mcp-registry/registry/mcp-registry.service");
|
|
69
|
+
const mcp_registry_types_1 = require("../../modules/mcp-registry/registry/mcp-registry.types");
|
|
66
70
|
const workflow_dependency_query_service_1 = require("../../modules/workflow-index/workflow-dependency-query.service");
|
|
67
71
|
const node_catalog_1 = require("../../node-catalog");
|
|
68
72
|
const node_execution_1 = require("../../node-execution");
|
|
@@ -72,7 +76,6 @@ const policy_enforcement_service_1 = require("../../policy/policy-enforcement.se
|
|
|
72
76
|
const posthog_1 = require("../../posthog");
|
|
73
77
|
const ai_gateway_service_1 = require("../../services/ai-gateway.service");
|
|
74
78
|
const ai_preference_write_1 = require("../../services/ai-preference-write");
|
|
75
|
-
const ai_preference_service_1 = require("../../services/ai-preference.service");
|
|
76
79
|
const folder_service_1 = require("../../services/folder.service");
|
|
77
80
|
const node_resource_explorer_service_1 = require("../../services/node-resource-explorer.service");
|
|
78
81
|
const project_service_ee_1 = require("../../services/project.service.ee");
|
|
@@ -97,6 +100,7 @@ const instance_context_service_1 = require("./instance-context.service");
|
|
|
97
100
|
const mcp_1 = require("./mcp");
|
|
98
101
|
const node_definition_resolver_1 = require("./node-definition-resolver");
|
|
99
102
|
const web_research_1 = require("./web-research");
|
|
103
|
+
const workflow_json_1 = require("./workflow-json");
|
|
100
104
|
const workflow_templates_service_1 = require("./workflow-templates.service");
|
|
101
105
|
function resolveDisplayedDefaults(nodeProperties, parameters, nodeType, typeVersion, desc) {
|
|
102
106
|
const stubNode = {
|
|
@@ -248,30 +252,48 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
248
252
|
});
|
|
249
253
|
}
|
|
250
254
|
createContext(user, options) {
|
|
251
|
-
const { searchProxyConfig, pushRef, threadId, projectId, getCredentialIdAllowlist, shouldBypassCredentialTest, getCredentialTestTarget, agentId, configEvalsEnabled, setupPanelVariant, mcpConnectionsAvailable, nodeUsageEnabled, instanceContextEnabled, conversationHistory, folderExplorationEnabled, onboardingThread, credentialDescriptionsEnabled, aiPreferencesEnabled, modelId, allowSendingParameterValues = this.allowSendingParameterValues, } = options ?? {};
|
|
255
|
+
const { searchProxyConfig, pushRef, threadId, projectId, getCredentialIdAllowlist, shouldBypassCredentialTest, getCredentialTestTarget, agentId, configEvalsEnabled, setupPanelVariant, mcpConnectionsAvailable, nodeUsageEnabled, instanceContextEnabled, conversationHistory, folderExplorationEnabled, onboardingThread, credentialDescriptionsEnabled, aiPreferencesEnabled, assistantSkillsEnabled, modelId, modelFetch, allowSendingParameterValues = this.allowSendingParameterValues, } = options ?? {};
|
|
252
256
|
void this.trackGatewayAvailability();
|
|
253
257
|
const builderDelegateAdapter = this.getBuilderDelegateAdapter();
|
|
254
258
|
const credentialService = this.createCredentialAdapter(user, projectId, getCredentialIdAllowlist, shouldBypassCredentialTest, getCredentialTestTarget);
|
|
259
|
+
const dataTableService = this.createDataTableAdapter(user, projectId);
|
|
260
|
+
const { assertInBoundProject, assertWorkflowInBoundProject, assertCredentialInBoundProject } = this.createProjectScopeHelpers(user, projectId);
|
|
261
|
+
const assertInThreadProject = async (target) => {
|
|
262
|
+
if (projectId === undefined)
|
|
263
|
+
return;
|
|
264
|
+
if (target.kind === 'workflow')
|
|
265
|
+
return await assertWorkflowInBoundProject(target.id);
|
|
266
|
+
if (target.kind === 'credential')
|
|
267
|
+
return await assertCredentialInBoundProject(target.id);
|
|
268
|
+
if (target.kind === 'project')
|
|
269
|
+
return assertInBoundProject(target.id);
|
|
270
|
+
const table = await dataTableService.resolveTableReference?.(target.id, {
|
|
271
|
+
projectId: target.projectId,
|
|
272
|
+
});
|
|
273
|
+
assertInBoundProject(table?.projectId);
|
|
274
|
+
};
|
|
255
275
|
return {
|
|
256
276
|
userId: user.id,
|
|
257
277
|
projectId,
|
|
278
|
+
assertInThreadProject,
|
|
258
279
|
...(folderExplorationEnabled ? { folderExplorationEnabled: true } : {}),
|
|
259
280
|
...(onboardingThread ? { onboardingThread: true } : {}),
|
|
260
281
|
...(credentialDescriptionsEnabled ? { credentialDescriptionsEnabled: true } : {}),
|
|
261
282
|
modelId,
|
|
283
|
+
modelFetch,
|
|
262
284
|
workflowService: this.createWorkflowAdapter(user, threadId, projectId, {
|
|
263
285
|
nodeUsageGateOpen: nodeUsageEnabled === true,
|
|
264
286
|
folderExploration: folderExplorationEnabled === true,
|
|
265
287
|
setupPanelVariant,
|
|
266
288
|
allowSendingParameterValues,
|
|
267
289
|
}),
|
|
268
|
-
executionService: this.createExecutionAdapter(user, allowSendingParameterValues, pushRef, threadId),
|
|
290
|
+
executionService: this.createExecutionAdapter(user, allowSendingParameterValues, pushRef, threadId, projectId),
|
|
269
291
|
credentialService,
|
|
270
|
-
nodeService: this.createNodeAdapter(user),
|
|
271
|
-
dataTableService
|
|
292
|
+
nodeService: this.createNodeAdapter(user, projectId, shouldBypassCredentialTest),
|
|
293
|
+
dataTableService,
|
|
272
294
|
...(configEvalsEnabled && this.evaluationConfigService
|
|
273
295
|
? {
|
|
274
|
-
evaluationConfigService: this.createEvaluationConfigAdapter(this.evaluationConfigService, user),
|
|
296
|
+
evaluationConfigService: this.createEvaluationConfigAdapter(this.evaluationConfigService, user, projectId),
|
|
275
297
|
}
|
|
276
298
|
: {}),
|
|
277
299
|
mcpService: mcpConnectionsAvailable ? this.createMcpAdapter(user) : undefined,
|
|
@@ -283,6 +305,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
283
305
|
? { activityService: this.createActivityAdapter(user, projectId) }
|
|
284
306
|
: {}),
|
|
285
307
|
...(aiPreferencesEnabled ? { aiPreferenceService: this.createPreferenceAdapter(user) } : {}),
|
|
308
|
+
skillService: this.getSkillService(user, assistantSkillsEnabled === true),
|
|
286
309
|
webResearchService: this.createWebResearchAdapter(user, searchProxyConfig),
|
|
287
310
|
workspaceService: this.createWorkspaceAdapter(user, projectId),
|
|
288
311
|
templatesService: this.getTemplatesService(),
|
|
@@ -303,11 +326,25 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
303
326
|
};
|
|
304
327
|
}
|
|
305
328
|
createAgentCredentialProvider(user, projectId, agentId, getCredentialIdAllowlist) {
|
|
306
|
-
const provider =
|
|
329
|
+
const provider = di_1.Container.get(agents_builder_service_1.AgentsBuilderService).createCredentialProvider(user, projectId, agentId);
|
|
307
330
|
return getCredentialIdAllowlist
|
|
308
331
|
? (0, scoped_credential_provider_1.scopeCredentialProvider)(provider, getCredentialIdAllowlist)
|
|
309
332
|
: provider;
|
|
310
333
|
}
|
|
334
|
+
getSkillService(user, assistantSkillsEnabled) {
|
|
335
|
+
try {
|
|
336
|
+
const moduleRegistry = di_1.Container.get(backend_common_1.ModuleRegistry);
|
|
337
|
+
if (!moduleRegistry.isActive('agents'))
|
|
338
|
+
return undefined;
|
|
339
|
+
return di_1.Container.get(instance_ai_skills_adapter_1.InstanceAiSkillsAdapterService).createService(user, assistantSkillsEnabled);
|
|
340
|
+
}
|
|
341
|
+
catch (error) {
|
|
342
|
+
this.logger.warn('Failed to resolve the skills adapter; skill tools disabled', {
|
|
343
|
+
error: error instanceof Error ? error.message : String(error),
|
|
344
|
+
});
|
|
345
|
+
return undefined;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
311
348
|
getBuilderDelegateAdapter() {
|
|
312
349
|
if (!(0, agents_access_1.isAgentsAccessEnabled)())
|
|
313
350
|
return null;
|
|
@@ -333,15 +370,19 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
333
370
|
async resolveExperimentGates(user) {
|
|
334
371
|
let flags = {};
|
|
335
372
|
let instanceContextEnabled = false;
|
|
373
|
+
let assistantSkillsEnabled = false;
|
|
336
374
|
try {
|
|
337
375
|
const postHog = di_1.Container.get(posthog_1.PostHogClient);
|
|
338
|
-
const [userFlags, instanceFlag] = await Promise.allSettled([
|
|
376
|
+
const [userFlags, instanceFlag, assistantSkillsFlag] = await Promise.allSettled([
|
|
339
377
|
postHog.getFeatureFlags(user),
|
|
340
378
|
postHog.getFeatureFlagForInstance(api_types_1.INSTANCE_ACTIVITY_CONTEXT_FLAG),
|
|
379
|
+
postHog.getFeatureFlagForInstance(api_types_1.ASSISTANT_SKILLS_FLAG),
|
|
341
380
|
]);
|
|
342
381
|
if (userFlags.status === 'fulfilled')
|
|
343
382
|
flags = userFlags.value;
|
|
344
383
|
instanceContextEnabled = instanceFlag.status === 'fulfilled' && instanceFlag.value === true;
|
|
384
|
+
assistantSkillsEnabled =
|
|
385
|
+
assistantSkillsFlag.status === 'fulfilled' && assistantSkillsFlag.value === true;
|
|
345
386
|
}
|
|
346
387
|
catch {
|
|
347
388
|
}
|
|
@@ -364,6 +405,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
364
405
|
api_types_1.INSTANCE_AI_FOLDER_EXPLORATION_ENABLED_VARIANT,
|
|
365
406
|
aiPreferencesEnabled: flags[api_types_1.CONTEXT_PREFERENCES_FLAG] === api_types_1.CONTEXT_PREFERENCES_ENABLED_VARIANT,
|
|
366
407
|
instanceContextEnabled,
|
|
408
|
+
assistantSkillsEnabled,
|
|
367
409
|
};
|
|
368
410
|
}
|
|
369
411
|
createActivityAdapter(user, projectId) {
|
|
@@ -418,8 +460,9 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
418
460
|
};
|
|
419
461
|
}
|
|
420
462
|
createMcpAdapter(user) {
|
|
463
|
+
const isAiGatewayOnly = (server) => server.authentication === 'none' && server.credential === api_types_1.AI_GATEWAY_MANAGED_TAG;
|
|
421
464
|
const toSummaries = (servers) => servers
|
|
422
|
-
.filter((server) => !server.isTemplated)
|
|
465
|
+
.filter((server) => !server.isTemplated && !isAiGatewayOnly(server))
|
|
423
466
|
.map((server) => ({
|
|
424
467
|
slug: server.slug,
|
|
425
468
|
title: server.title,
|
|
@@ -439,7 +482,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
439
482
|
const servers = await di_1.Container.get(mcp_registry_service_1.McpRegistryService).getBySlugs(slugs);
|
|
440
483
|
return servers
|
|
441
484
|
.filter((server) => {
|
|
442
|
-
if (server.status !== 'active')
|
|
485
|
+
if (server.status !== 'active' || (0, mcp_registry_types_1.isAiGatewayMcpServer)(server))
|
|
443
486
|
return false;
|
|
444
487
|
const connection = (0, mcp_registry_connection_1.resolveMcpRegistryConnection)(server);
|
|
445
488
|
return connection !== null && !connection.isTemplated;
|
|
@@ -448,7 +491,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
448
491
|
slug: server.slug,
|
|
449
492
|
title: server.title,
|
|
450
493
|
description: server.tagline,
|
|
451
|
-
usesCredentials: (0, node_description_transform_1.getMcpRegistryCredentialOptions)(server),
|
|
494
|
+
usesCredentials: (0, node_description_transform_1.getMcpRegistryCredentialOptions)(server).filter(({ credentialType }) => !(0, n8n_workflow_1.isMcpAiGatewayAuthentication)(credentialType)),
|
|
452
495
|
tools: server.tools.map((tool) => tool.name),
|
|
453
496
|
}));
|
|
454
497
|
},
|
|
@@ -574,7 +617,35 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
574
617
|
await assertProjectScope(scopes, boundProjectId);
|
|
575
618
|
return boundProjectId;
|
|
576
619
|
};
|
|
577
|
-
|
|
620
|
+
const assertInBoundProject = (projectId) => {
|
|
621
|
+
if (boundProjectId !== undefined && projectId !== boundProjectId) {
|
|
622
|
+
throw new instance_ai_1.OutsideThreadProjectError();
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
const assertWorkflowInBoundProject = async (workflowId) => {
|
|
626
|
+
if (boundProjectId === undefined)
|
|
627
|
+
return;
|
|
628
|
+
const projectIds = await this.sharedWorkflowRepository.findProjectIds(workflowId);
|
|
629
|
+
if (projectIds.length > 0 && !projectIds.includes(boundProjectId)) {
|
|
630
|
+
throw new instance_ai_1.OutsideThreadProjectError();
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
const assertCredentialInBoundProject = async (credentialId) => {
|
|
634
|
+
if (boundProjectId === undefined)
|
|
635
|
+
return;
|
|
636
|
+
const owner = await di_1.Container.get(db_1.SharedCredentialsRepository).findCredentialOwningProject(credentialId);
|
|
637
|
+
if (owner)
|
|
638
|
+
assertInBoundProject(owner.id);
|
|
639
|
+
};
|
|
640
|
+
return {
|
|
641
|
+
getPersonalProjectId,
|
|
642
|
+
assertProjectScope,
|
|
643
|
+
resolveProjectId,
|
|
644
|
+
resolveBoundProjectId,
|
|
645
|
+
assertInBoundProject,
|
|
646
|
+
assertWorkflowInBoundProject,
|
|
647
|
+
assertCredentialInBoundProject,
|
|
648
|
+
};
|
|
578
649
|
}
|
|
579
650
|
createWorkflowAdapter(user, threadId, boundProjectId, options = {}) {
|
|
580
651
|
const setupExperimentProperties = options.setupPanelVariant
|
|
@@ -586,13 +657,13 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
586
657
|
const foldersOn = options.folderExploration === true;
|
|
587
658
|
const foldersAttributed = foldersOn && this.license.isLicensed('feat:folders');
|
|
588
659
|
const { folderRepository, folderFinderService, projectService } = this;
|
|
589
|
-
const { workflowService, workflowFinderService, workflowRepository, sharedWorkflowRepository, aiBuilderTemporaryWorkflowRepository, workflowHistoryService, enterpriseWorkflowService, executionRepository,
|
|
660
|
+
const { workflowService, workflowFinderService, workflowRepository, sharedWorkflowRepository, aiBuilderTemporaryWorkflowRepository, workflowHistoryService, enterpriseWorkflowService, executionRepository, license, telemetry, eventService, collaborationService, policyEnforcementService, workflowDependencyQueryService, } = this;
|
|
590
661
|
const logger = this.logger;
|
|
591
662
|
const maxExecutionTimeout = this.globalConfig.executions.maxTimeout;
|
|
592
663
|
const assertNotReadOnly = () => this.assertInstanceNotReadOnly('workflows');
|
|
593
664
|
const nodeUsageEnabled = options.nodeUsageGateOpen === true && workflowDependencyQueryService !== undefined;
|
|
594
665
|
const resolveTargetProjectId = (options) => options?.projectId ?? (options?.scope !== 'instance' ? boundProjectId : undefined);
|
|
595
|
-
const { resolveBoundProjectId } = this.createProjectScopeHelpers(user, boundProjectId);
|
|
666
|
+
const { resolveBoundProjectId, assertWorkflowInBoundProject } = this.createProjectScopeHelpers(user, boundProjectId);
|
|
596
667
|
const redactParameters = !(options.allowSendingParameterValues ?? this.allowSendingParameterValues);
|
|
597
668
|
const assertParameterValuesAvailable = () => {
|
|
598
669
|
if (redactParameters) {
|
|
@@ -855,6 +926,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
855
926
|
},
|
|
856
927
|
async archive(workflowId) {
|
|
857
928
|
assertNotReadOnly();
|
|
929
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
858
930
|
await assertNotLockedByEditor(workflowId);
|
|
859
931
|
const result = await workflowService.archive(user, workflowId, { skipArchived: true });
|
|
860
932
|
if (!result) {
|
|
@@ -864,6 +936,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
864
936
|
},
|
|
865
937
|
async unarchive(workflowId) {
|
|
866
938
|
assertNotReadOnly();
|
|
939
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
867
940
|
const result = await workflowService.unarchive(user, workflowId);
|
|
868
941
|
if (!result) {
|
|
869
942
|
throw new instance_ai_1.WorkflowNotFoundError(workflowId);
|
|
@@ -899,6 +972,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
899
972
|
return true;
|
|
900
973
|
},
|
|
901
974
|
async publish(workflowId, options) {
|
|
975
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
902
976
|
await assertNotLockedByEditor(workflowId);
|
|
903
977
|
const wf = await workflowService.activateWorkflow(user, workflowId, {
|
|
904
978
|
versionId: options?.versionId,
|
|
@@ -922,6 +996,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
922
996
|
return { activeVersionId: wf.activeVersionId };
|
|
923
997
|
},
|
|
924
998
|
async unpublish(workflowId) {
|
|
999
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
925
1000
|
await assertNotLockedByEditor(workflowId);
|
|
926
1001
|
await workflowService.deactivateWorkflow(user, workflowId, {
|
|
927
1002
|
source: 'n8n-ai',
|
|
@@ -935,9 +1010,9 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
935
1010
|
if (!wf)
|
|
936
1011
|
throw new instance_ai_1.WorkflowNotFoundError(workflowId);
|
|
937
1012
|
if (!versionId)
|
|
938
|
-
return toWorkflowJSON(wf, { redactParameters });
|
|
1013
|
+
return (0, workflow_json_1.toWorkflowJSON)(wf, { redactParameters });
|
|
939
1014
|
const version = await workflowHistoryService.getVersion(user, workflowId, versionId);
|
|
940
|
-
return toWorkflowJSON(wf, { redactParameters, graph: version });
|
|
1015
|
+
return (0, workflow_json_1.toWorkflowJSON)(wf, { redactParameters, graph: version });
|
|
941
1016
|
},
|
|
942
1017
|
async getPinnedDataSummary(workflowId) {
|
|
943
1018
|
const wf = await workflowFinderService.findWorkflowForUser(workflowId, user, [
|
|
@@ -969,7 +1044,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
969
1044
|
if (!wf)
|
|
970
1045
|
throw new instance_ai_1.WorkflowNotFoundError(workflowId);
|
|
971
1046
|
return {
|
|
972
|
-
json: toWorkflowJSON(wf, { redactParameters }),
|
|
1047
|
+
json: (0, workflow_json_1.toWorkflowJSON)(wf, { redactParameters }),
|
|
973
1048
|
versionId: wf.versionId,
|
|
974
1049
|
updatedAt: wf.updatedAt.getTime(),
|
|
975
1050
|
};
|
|
@@ -977,6 +1052,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
977
1052
|
async getLatestRunData(workflowId) {
|
|
978
1053
|
const accessible = await workflowFinderService.findWorkflowForUser(workflowId, user, [
|
|
979
1054
|
'workflow:read',
|
|
1055
|
+
'execution:read',
|
|
980
1056
|
]);
|
|
981
1057
|
if (!accessible)
|
|
982
1058
|
return null;
|
|
@@ -988,10 +1064,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
988
1064
|
});
|
|
989
1065
|
if (!latest)
|
|
990
1066
|
return null;
|
|
991
|
-
const execution = await
|
|
992
|
-
includeData: true,
|
|
993
|
-
unflattenData: true,
|
|
994
|
-
});
|
|
1067
|
+
const execution = await (0, execution_viewer_reader_1.loadExecutionForViewer)(latest.id, user);
|
|
995
1068
|
return execution?.data?.resultData?.runData ?? null;
|
|
996
1069
|
},
|
|
997
1070
|
async createFromWorkflowJSON(json, options) {
|
|
@@ -1108,6 +1181,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1108
1181
|
async updateFromWorkflowJSON(workflowId, json, options) {
|
|
1109
1182
|
assertNotReadOnly();
|
|
1110
1183
|
assertParameterValuesAvailable();
|
|
1184
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
1111
1185
|
await assertNotLockedByEditor(workflowId);
|
|
1112
1186
|
const settings = (json.settings ?? {});
|
|
1113
1187
|
let storedWorkflow;
|
|
@@ -1229,6 +1303,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1229
1303
|
},
|
|
1230
1304
|
async restoreVersion(workflowId, versionId) {
|
|
1231
1305
|
assertParameterValuesAvailable();
|
|
1306
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
1232
1307
|
await assertNotLockedByEditor(workflowId);
|
|
1233
1308
|
const version = await workflowHistoryService.getVersion(user, workflowId, versionId);
|
|
1234
1309
|
const updateData = workflowRepository.create({
|
|
@@ -1245,18 +1320,20 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1245
1320
|
...(this.license.isLicensed('feat:namedVersions')
|
|
1246
1321
|
? {
|
|
1247
1322
|
async updateVersion(workflowId, versionId, data) {
|
|
1323
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
1248
1324
|
await workflowHistoryService.updateVersionForUser(user, workflowId, versionId, data);
|
|
1249
1325
|
},
|
|
1250
1326
|
}
|
|
1251
1327
|
: {}),
|
|
1252
1328
|
};
|
|
1253
1329
|
}
|
|
1254
|
-
createExecutionAdapter(user, allowSendingParameterValues, pushRef, threadId) {
|
|
1255
|
-
const { workflowFinderService, workflowRunner, activeExecutions, executionRepository,
|
|
1330
|
+
createExecutionAdapter(user, allowSendingParameterValues, pushRef, threadId, boundProjectId) {
|
|
1331
|
+
const { workflowFinderService, workflowRunner, activeExecutions, executionRepository, workflowHistoryService, nodeTypes, roleService, telemetry, logger, globalConfig, } = this;
|
|
1256
1332
|
const assertNotReadOnly = () => this.assertInstanceNotReadOnly('executions');
|
|
1333
|
+
const { assertWorkflowInBoundProject } = this.createProjectScopeHelpers(user, boundProjectId);
|
|
1257
1334
|
const DEFAULT_TIMEOUT_MS = 5 * constants_1.Time.minutes.toMilliseconds;
|
|
1258
1335
|
const MAX_TIMEOUT_MS = 10 * constants_1.Time.minutes.toMilliseconds;
|
|
1259
|
-
const assertExecutionAccess = async (executionId, scopes = ['workflow:read']) => {
|
|
1336
|
+
const assertExecutionAccess = async (executionId, scopes = ['workflow:read', 'execution:read']) => {
|
|
1260
1337
|
const execution = await executionRepository.findSingleExecution(executionId, {
|
|
1261
1338
|
includeData: false,
|
|
1262
1339
|
});
|
|
@@ -1269,9 +1346,23 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1269
1346
|
}
|
|
1270
1347
|
return execution;
|
|
1271
1348
|
};
|
|
1349
|
+
const loadExecution = async (executionId) => {
|
|
1350
|
+
const execution = await (0, execution_viewer_reader_1.loadExecutionForViewer)(executionId, user);
|
|
1351
|
+
if (!execution) {
|
|
1352
|
+
throw new Error(`Execution ${executionId} not found`);
|
|
1353
|
+
}
|
|
1354
|
+
return execution;
|
|
1355
|
+
};
|
|
1356
|
+
const readOutcome = async (executionId, subNodeTarget) => {
|
|
1357
|
+
const execution = await (0, execution_viewer_reader_1.loadExecutionForViewer)(executionId, user);
|
|
1358
|
+
if (!execution) {
|
|
1359
|
+
return { result: { executionId, status: 'unknown' } };
|
|
1360
|
+
}
|
|
1361
|
+
return await extractExecutionOutcome(execution, allowSendingParameterValues, nodeTypes, subNodeTarget);
|
|
1362
|
+
};
|
|
1272
1363
|
return {
|
|
1273
1364
|
async list(options) {
|
|
1274
|
-
const scope = '
|
|
1365
|
+
const scope = 'execution:read';
|
|
1275
1366
|
const projectRoles = await roleService.rolesWithScope('project', [scope]);
|
|
1276
1367
|
const workflowRoles = await roleService.rolesWithScope('workflow', [scope]);
|
|
1277
1368
|
const sharingOptions = {
|
|
@@ -1306,6 +1397,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1306
1397
|
},
|
|
1307
1398
|
async run(workflowId, inputData, options) {
|
|
1308
1399
|
assertNotReadOnly();
|
|
1400
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
1309
1401
|
const workflow = await workflowFinderService.findWorkflowForUser(workflowId, user, [
|
|
1310
1402
|
'workflow:execute',
|
|
1311
1403
|
]);
|
|
@@ -1320,6 +1412,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1320
1412
|
const connections = options?.omitConnections?.length
|
|
1321
1413
|
? omitWorkflowConnections(workflow.connections, options.omitConnections)
|
|
1322
1414
|
: workflow.connections;
|
|
1415
|
+
const credentialRefusal = await (0, pre_execution_checks_1.findCredentialRefusal)(workflowId, nodes, user.id);
|
|
1323
1416
|
const runData = {
|
|
1324
1417
|
executionMode: triggerNode ? getExecutionModeForTrigger(triggerNode) : 'manual',
|
|
1325
1418
|
workflowData: {
|
|
@@ -1336,7 +1429,9 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1336
1429
|
userId: user.id,
|
|
1337
1430
|
pushRef,
|
|
1338
1431
|
callerAwaitsOutcome: 'completion',
|
|
1339
|
-
...(options?.isVerificationRun
|
|
1432
|
+
...(options?.isVerificationRun || credentialRefusal
|
|
1433
|
+
? { suppressErrorWorkflow: true }
|
|
1434
|
+
: {}),
|
|
1340
1435
|
};
|
|
1341
1436
|
const pinDataPlan = (0, instance_ai_run_pin_data_1.buildInstanceAiRunPinDataPlan)({
|
|
1342
1437
|
workflowPinData: workflow.pinData ?? {},
|
|
@@ -1432,7 +1527,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1432
1527
|
trackBuilderExecutedWorkflow(result.status, result.error);
|
|
1433
1528
|
return result;
|
|
1434
1529
|
}
|
|
1435
|
-
const { result, telemetryError } = await
|
|
1530
|
+
const { result, telemetryError } = withCredentialRefusal(await readOutcome(executionId), credentialRefusal);
|
|
1436
1531
|
await pruneVerificationPins(result.executedNodeNames);
|
|
1437
1532
|
trackBuilderExecutedWorkflow(result.status, telemetryError);
|
|
1438
1533
|
const workflowPinnedNodeNames = Object.keys(workflow.pinData ?? {});
|
|
@@ -1454,6 +1549,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1454
1549
|
},
|
|
1455
1550
|
async runStep(workflowId, nodeName, options) {
|
|
1456
1551
|
assertNotReadOnly();
|
|
1552
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
1457
1553
|
const workflow = await workflowFinderService.findWorkflowForUser(workflowId, user, [
|
|
1458
1554
|
'workflow:execute',
|
|
1459
1555
|
]);
|
|
@@ -1482,10 +1578,10 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1482
1578
|
if (execution.workflowId !== workflowId) {
|
|
1483
1579
|
throw new n8n_workflow_1.UserError(`Execution ${options.reuseExecutionId} belongs to a different workflow.`);
|
|
1484
1580
|
}
|
|
1485
|
-
const stored = await
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
}
|
|
1581
|
+
const stored = await (0, execution_viewer_reader_1.loadExecutionForViewer)(options.reuseExecutionId, user);
|
|
1582
|
+
if (stored && (0, execution_viewer_reader_1.getExecutionRedaction)(stored)) {
|
|
1583
|
+
throw new n8n_workflow_1.UserError(`n8n redacted the data of execution ${options.reuseExecutionId} for this user, so it cannot be replayed. Omit reuseExecutionId to run the chain, or pass mockInput.`);
|
|
1584
|
+
}
|
|
1489
1585
|
priorRunData = stored?.data?.resultData?.runData ?? {};
|
|
1490
1586
|
reusedFromExecutionId = options.reuseExecutionId;
|
|
1491
1587
|
}
|
|
@@ -1635,6 +1731,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1635
1731
|
: {}),
|
|
1636
1732
|
};
|
|
1637
1733
|
};
|
|
1734
|
+
const credentialRefusal = await (0, pre_execution_checks_1.findCredentialRefusal)(workflowId, nodes, user.id);
|
|
1638
1735
|
try {
|
|
1639
1736
|
const executionId = await workflowRunner.run(runData);
|
|
1640
1737
|
const waitOutcome = await (0, instance_ai_execution_wait_1.waitForInstanceAiExecution)({
|
|
@@ -1651,7 +1748,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1651
1748
|
error: waitOutcome.message,
|
|
1652
1749
|
});
|
|
1653
1750
|
}
|
|
1654
|
-
const { result, telemetryError } = await
|
|
1751
|
+
const { result, telemetryError } = withCredentialRefusal(await readOutcome(executionId, plan.rootNodeNames ? nodeName : undefined), credentialRefusal);
|
|
1655
1752
|
trackStepRun(result.status, telemetryError);
|
|
1656
1753
|
return describe(result);
|
|
1657
1754
|
}
|
|
@@ -1666,18 +1763,19 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1666
1763
|
if (isRunning) {
|
|
1667
1764
|
return { executionId, status: 'running' };
|
|
1668
1765
|
}
|
|
1669
|
-
return await
|
|
1766
|
+
return (await readOutcome(executionId)).result;
|
|
1670
1767
|
},
|
|
1671
1768
|
async getResult(executionId) {
|
|
1672
1769
|
await assertExecutionAccess(executionId);
|
|
1673
1770
|
if (activeExecutions.has(executionId)) {
|
|
1674
1771
|
await activeExecutions.getPostExecutePromise(executionId);
|
|
1675
1772
|
}
|
|
1676
|
-
return await
|
|
1773
|
+
return (await readOutcome(executionId)).result;
|
|
1677
1774
|
},
|
|
1678
1775
|
async stop(executionId) {
|
|
1679
1776
|
assertNotReadOnly();
|
|
1680
|
-
await assertExecutionAccess(executionId, ['workflow:execute']);
|
|
1777
|
+
const execution = await assertExecutionAccess(executionId, ['workflow:execute']);
|
|
1778
|
+
await assertWorkflowInBoundProject(execution.workflowId);
|
|
1681
1779
|
if (!activeExecutions.has(executionId)) {
|
|
1682
1780
|
return {
|
|
1683
1781
|
success: false,
|
|
@@ -1697,7 +1795,11 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1697
1795
|
},
|
|
1698
1796
|
async getDebugInfo(executionId) {
|
|
1699
1797
|
await assertExecutionAccess(executionId);
|
|
1700
|
-
|
|
1798
|
+
const execution = await (0, execution_viewer_reader_1.loadExecutionForViewer)(executionId, user);
|
|
1799
|
+
if (!execution) {
|
|
1800
|
+
return { executionId, status: 'unknown', nodeTrace: [] };
|
|
1801
|
+
}
|
|
1802
|
+
return await extractExecutionDebugInfo(execution, allowSendingParameterValues, nodeTypes);
|
|
1701
1803
|
},
|
|
1702
1804
|
async getNodeOutput(executionId, nodeName, options) {
|
|
1703
1805
|
await assertExecutionAccess(executionId);
|
|
@@ -1709,7 +1811,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1709
1811
|
returned: { from: 0, to: 0 },
|
|
1710
1812
|
};
|
|
1711
1813
|
}
|
|
1712
|
-
return await extractNodeOutput(executionId, nodeName, options, nodeTypes);
|
|
1814
|
+
return await extractNodeOutput(await loadExecution(executionId), nodeName, options, nodeTypes);
|
|
1713
1815
|
},
|
|
1714
1816
|
getResolvedNodeParameters: async (executionId, nodeName, options) => {
|
|
1715
1817
|
await assertExecutionAccess(executionId);
|
|
@@ -1725,13 +1827,14 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1725
1827
|
suppressed: 'parameter-values-disabled',
|
|
1726
1828
|
};
|
|
1727
1829
|
}
|
|
1728
|
-
return await (0, extract_resolved_node_parameters_1.extractResolvedNodeParameters)(nodeTypes, executionId, nodeName, options);
|
|
1830
|
+
return await (0, extract_resolved_node_parameters_1.extractResolvedNodeParameters)(nodeTypes, await loadExecution(executionId), nodeName, options);
|
|
1729
1831
|
},
|
|
1730
1832
|
};
|
|
1731
1833
|
}
|
|
1732
1834
|
createCredentialAdapter(user, boundProjectId, getCredentialIdAllowlist, shouldBypassCredentialTest, getCredentialTestTarget) {
|
|
1733
1835
|
const { credentialsService, credentialsFinderService, loadNodesAndCredentials, aiGatewayService, } = this;
|
|
1734
1836
|
const getGatewayConfig = async () => await this.getGatewayConfigOrNull();
|
|
1837
|
+
const { assertCredentialInBoundProject } = this.createProjectScopeHelpers(user, boundProjectId);
|
|
1735
1838
|
const adapter = {
|
|
1736
1839
|
async list(options) {
|
|
1737
1840
|
if (boundProjectId) {
|
|
@@ -1785,6 +1888,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1785
1888
|
};
|
|
1786
1889
|
},
|
|
1787
1890
|
async delete(credentialId) {
|
|
1891
|
+
await assertCredentialInBoundProject(credentialId);
|
|
1788
1892
|
await credentialsService.delete(user, credentialId);
|
|
1789
1893
|
},
|
|
1790
1894
|
async test(credentialId) {
|
|
@@ -1792,7 +1896,8 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
1792
1896
|
if (!credential) {
|
|
1793
1897
|
throw new Error(`Credential ${credentialId} not found or not accessible`);
|
|
1794
1898
|
}
|
|
1795
|
-
if (shouldBypassCredentialTest?.(credentialId) === true
|
|
1899
|
+
if (shouldBypassCredentialTest?.(credentialId) === true &&
|
|
1900
|
+
credentialsService.hasConnectionTest(credential.type)) {
|
|
1796
1901
|
return { success: true, message: 'Connection tested successfully' };
|
|
1797
1902
|
}
|
|
1798
1903
|
const data = await credentialsService.decryptForUse(credential, { kind: 'user', user }, boundProjectId);
|
|
@@ -2060,9 +2165,10 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2060
2165
|
},
|
|
2061
2166
|
};
|
|
2062
2167
|
}
|
|
2063
|
-
createEvaluationConfigAdapter(evaluationConfigService, user) {
|
|
2168
|
+
createEvaluationConfigAdapter(evaluationConfigService, user, boundProjectId) {
|
|
2064
2169
|
const { workflowFinderService, credentialsFinderService, llmJudgeProviderRegistry } = this;
|
|
2065
2170
|
const assertNotReadOnly = () => this.assertInstanceNotReadOnly('evaluations');
|
|
2171
|
+
const { assertWorkflowInBoundProject } = this.createProjectScopeHelpers(user, boundProjectId);
|
|
2066
2172
|
const findWorkflow = async (workflowId, scope) => {
|
|
2067
2173
|
const workflow = await workflowFinderService.findWorkflowForUser(workflowId, user, [scope]);
|
|
2068
2174
|
if (!workflow) {
|
|
@@ -2093,6 +2199,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2093
2199
|
},
|
|
2094
2200
|
async create(workflowId, input) {
|
|
2095
2201
|
assertNotReadOnly();
|
|
2202
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
2096
2203
|
const workflow = await findWorkflow(workflowId, 'workflow:update');
|
|
2097
2204
|
const resolved = await resolveProviders(input);
|
|
2098
2205
|
const config = await evaluationConfigService.create(workflowId, workflow, user, buildEvaluationConfigDto(resolved));
|
|
@@ -2100,6 +2207,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2100
2207
|
},
|
|
2101
2208
|
async update(workflowId, configId, input) {
|
|
2102
2209
|
assertNotReadOnly();
|
|
2210
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
2103
2211
|
const workflow = await findWorkflow(workflowId, 'workflow:update');
|
|
2104
2212
|
const resolved = await resolveProviders(input);
|
|
2105
2213
|
const config = await evaluationConfigService.update(workflowId, configId, workflow, user, buildEvaluationConfigDto(resolved));
|
|
@@ -2107,6 +2215,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2107
2215
|
},
|
|
2108
2216
|
async delete(workflowId, configId) {
|
|
2109
2217
|
assertNotReadOnly();
|
|
2218
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
2110
2219
|
await findWorkflow(workflowId, 'workflow:update');
|
|
2111
2220
|
await evaluationConfigService.delete(workflowId, configId);
|
|
2112
2221
|
},
|
|
@@ -2115,7 +2224,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2115
2224
|
createDataTableAdapter(user, boundProjectId) {
|
|
2116
2225
|
const { dataTableService, dataTableRepository } = this;
|
|
2117
2226
|
const assertNotReadOnly = () => this.assertInstanceNotReadOnly('data tables');
|
|
2118
|
-
const { resolveProjectId, resolveBoundProjectId } = this.createProjectScopeHelpers(user, boundProjectId);
|
|
2227
|
+
const { resolveProjectId, resolveBoundProjectId, assertInBoundProject } = this.createProjectScopeHelpers(user, boundProjectId);
|
|
2119
2228
|
const logger = this.logger;
|
|
2120
2229
|
const resolveAccessibleTable = async (scopes, dataTableId, disambiguator) => {
|
|
2121
2230
|
const projectIdFilter = disambiguator?.projectId;
|
|
@@ -2182,6 +2291,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2182
2291
|
async delete(dataTableId, options) {
|
|
2183
2292
|
assertNotReadOnly();
|
|
2184
2293
|
const { projectId, resolvedId } = await resolveProjectIdForTable(['dataTable:delete'], dataTableId, options);
|
|
2294
|
+
assertInBoundProject(projectId);
|
|
2185
2295
|
await dataTableService.deleteDataTable(resolvedId, projectId);
|
|
2186
2296
|
},
|
|
2187
2297
|
async resolveTableReference(dataTableId, options) {
|
|
@@ -2201,6 +2311,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2201
2311
|
async addColumn(dataTableId, column, options) {
|
|
2202
2312
|
assertNotReadOnly();
|
|
2203
2313
|
const { projectId, resolvedId } = await resolveProjectIdForTable(['dataTable:update'], dataTableId, options);
|
|
2314
|
+
assertInBoundProject(projectId);
|
|
2204
2315
|
const result = await dataTableService.addColumn(resolvedId, projectId, column);
|
|
2205
2316
|
return {
|
|
2206
2317
|
id: result.id,
|
|
@@ -2212,11 +2323,13 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2212
2323
|
async deleteColumn(dataTableId, columnId, options) {
|
|
2213
2324
|
assertNotReadOnly();
|
|
2214
2325
|
const { projectId, resolvedId } = await resolveProjectIdForTable(['dataTable:update'], dataTableId, options);
|
|
2326
|
+
assertInBoundProject(projectId);
|
|
2215
2327
|
await dataTableService.deleteColumn(resolvedId, projectId, columnId);
|
|
2216
2328
|
},
|
|
2217
2329
|
async renameColumn(dataTableId, columnId, newName, options) {
|
|
2218
2330
|
assertNotReadOnly();
|
|
2219
2331
|
const { projectId, resolvedId } = await resolveProjectIdForTable(['dataTable:update'], dataTableId, options);
|
|
2332
|
+
assertInBoundProject(projectId);
|
|
2220
2333
|
await dataTableService.renameColumn(resolvedId, projectId, columnId, {
|
|
2221
2334
|
name: newName,
|
|
2222
2335
|
});
|
|
@@ -2231,6 +2344,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2231
2344
|
},
|
|
2232
2345
|
async insertRows(dataTableId, rows, options) {
|
|
2233
2346
|
const { projectId, tableName, resolvedId } = await resolveTableMeta(['dataTable:writeRow'], dataTableId, options);
|
|
2347
|
+
assertInBoundProject(projectId);
|
|
2234
2348
|
const result = await dataTableService.insertRows(resolvedId, projectId, rows, 'count');
|
|
2235
2349
|
return {
|
|
2236
2350
|
insertedCount: typeof result === 'number' ? result : rows.length,
|
|
@@ -2241,6 +2355,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2241
2355
|
},
|
|
2242
2356
|
async updateRows(dataTableId, filter, data, options) {
|
|
2243
2357
|
const { projectId, tableName, resolvedId } = await resolveTableMeta(['dataTable:writeRow'], dataTableId, options);
|
|
2358
|
+
assertInBoundProject(projectId);
|
|
2244
2359
|
const result = await dataTableService.updateRows(resolvedId, projectId, { filter, data: data }, true);
|
|
2245
2360
|
return {
|
|
2246
2361
|
updatedCount: Array.isArray(result) ? result.length : 0,
|
|
@@ -2251,6 +2366,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2251
2366
|
},
|
|
2252
2367
|
async deleteRows(dataTableId, filter, options) {
|
|
2253
2368
|
const { projectId, tableName, resolvedId } = await resolveTableMeta(['dataTable:writeRow'], dataTableId, options);
|
|
2369
|
+
assertInBoundProject(projectId);
|
|
2254
2370
|
const result = await dataTableService.deleteRows(resolvedId, projectId, { filter }, true);
|
|
2255
2371
|
return {
|
|
2256
2372
|
deletedCount: Array.isArray(result) ? result.length : 0,
|
|
@@ -2371,7 +2487,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2371
2487
|
getNodeCatalogService() {
|
|
2372
2488
|
return this.nodeCatalogService ?? di_1.Container.get(node_catalog_1.NodeCatalogService);
|
|
2373
2489
|
}
|
|
2374
|
-
createNodeAdapter(user) {
|
|
2490
|
+
createNodeAdapter(user, boundProjectId, shouldBypassCredentialTest) {
|
|
2375
2491
|
const getAllNodes = async () => await this.getNodesFromCache();
|
|
2376
2492
|
const getNodes = async () => {
|
|
2377
2493
|
const nodes = await getAllNodes();
|
|
@@ -2550,13 +2666,29 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2550
2666
|
...(operation ? { operation } : {}),
|
|
2551
2667
|
...(mode ? { mode } : {}),
|
|
2552
2668
|
});
|
|
2669
|
+
const enrichDefinition = async (nodeId, defResult) => {
|
|
2670
|
+
if (defResult.error)
|
|
2671
|
+
return defResult;
|
|
2672
|
+
const [nodes, gatewayConfig] = await Promise.all([getAllNodes(), getGatewayConfig()]);
|
|
2673
|
+
const parsedVersion = version ? Number.parseFloat(version.replace(/^v/i, '')) : undefined;
|
|
2674
|
+
const desc = findNodeByVersion(nodes, nodeId, Number.isFinite(parsedVersion) ? parsedVersion : undefined);
|
|
2675
|
+
const meta = buildMeta(gatewayConfig, desc?.name ?? nodeId);
|
|
2676
|
+
const unavailable = getUnavailableNotice(nodeId);
|
|
2677
|
+
return {
|
|
2678
|
+
...defResult,
|
|
2679
|
+
...(unavailable ? { unavailable } : {}),
|
|
2680
|
+
...(meta ? { aiGateway: meta } : {}),
|
|
2681
|
+
...(desc?.webhooks ? { webhooks: desc.webhooks } : {}),
|
|
2682
|
+
...(desc?.polling ? { polling: desc.polling } : {}),
|
|
2683
|
+
...(desc?.triggerPanel !== undefined ? { triggerPanel: desc.triggerPanel } : {}),
|
|
2684
|
+
};
|
|
2685
|
+
};
|
|
2553
2686
|
const result = await getDefinition(nodeType);
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
return await getDefinition(`${node_description_transform_1.MCP_REGISTRY_PACKAGE_NAME}.${nodeType}`);
|
|
2687
|
+
if (!result.error || nodeType.includes('.')) {
|
|
2688
|
+
return await enrichDefinition(nodeType, result);
|
|
2689
|
+
}
|
|
2690
|
+
const registryId = `${node_description_transform_1.MCP_REGISTRY_PACKAGE_NAME}.${nodeType}`;
|
|
2691
|
+
return await enrichDefinition(registryId, await getDefinition(registryId));
|
|
2560
2692
|
},
|
|
2561
2693
|
listDiscriminators: async (nodeType) => {
|
|
2562
2694
|
const nodeCatalogService = this.getNodeCatalogService();
|
|
@@ -2672,14 +2804,42 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2672
2804
|
await workflow.expression.releaseIsolate();
|
|
2673
2805
|
}
|
|
2674
2806
|
},
|
|
2675
|
-
exploreResources: async (params) =>
|
|
2807
|
+
exploreResources: async (params) => {
|
|
2808
|
+
if (shouldBypassCredentialTest?.(params.credentialId) === true) {
|
|
2809
|
+
await this.nodeResourceExplorerService.assertExploreCredentialAccess(user, params);
|
|
2810
|
+
throw new n8n_workflow_1.OperationalError(instance_ai_1.RESOURCE_EXPLORATION_UNAVAILABLE);
|
|
2811
|
+
}
|
|
2812
|
+
return await this.nodeResourceExplorerService.exploreResources(user, params);
|
|
2813
|
+
},
|
|
2814
|
+
resolveParameterOptions: async (params) => {
|
|
2815
|
+
const references = (0, node_resource_explorer_service_1.getParameterOptionsCredentialReferences)(params);
|
|
2816
|
+
if (references.some(({ credentialId }) => shouldBypassCredentialTest?.(credentialId))) {
|
|
2817
|
+
try {
|
|
2818
|
+
for (const reference of references) {
|
|
2819
|
+
await this.nodeResourceExplorerService.assertExploreCredentialAccess(user, reference);
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
catch (error) {
|
|
2823
|
+
return {
|
|
2824
|
+
ok: false,
|
|
2825
|
+
code: 'lookup_failed',
|
|
2826
|
+
message: error instanceof Error ? error.message : String(error),
|
|
2827
|
+
};
|
|
2828
|
+
}
|
|
2829
|
+
return { ok: false, code: 'lookup_failed', message: instance_ai_1.RESOURCE_EXPLORATION_UNAVAILABLE };
|
|
2830
|
+
}
|
|
2831
|
+
return await this.nodeResourceExplorerService.resolveParameterOptions(user, {
|
|
2832
|
+
...params,
|
|
2833
|
+
...(boundProjectId ? { projectId: boundProjectId } : {}),
|
|
2834
|
+
});
|
|
2835
|
+
},
|
|
2676
2836
|
findUnavailableLocatorValues: async (params) => await this.nodeResourceExplorerService.findUnavailableResourceLocatorValues(user, params),
|
|
2677
2837
|
};
|
|
2678
2838
|
}
|
|
2679
2839
|
createWorkspaceAdapter(user, boundProjectId) {
|
|
2680
2840
|
const { projectService, folderService, tagService, workflowFinderService, workflowService, executionRepository, executionPersistence, eventService, } = this;
|
|
2681
2841
|
const assertNotReadOnly = (resource) => this.assertInstanceNotReadOnly(resource);
|
|
2682
|
-
const { assertProjectScope } = this.createProjectScopeHelpers(user);
|
|
2842
|
+
const { assertProjectScope, assertInBoundProject, assertWorkflowInBoundProject } = this.createProjectScopeHelpers(user, boundProjectId);
|
|
2683
2843
|
const teamProjectsLicensed = this.teamProjectsLicensed();
|
|
2684
2844
|
const adapter = {
|
|
2685
2845
|
async getProject(projectId) {
|
|
@@ -2713,6 +2873,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2713
2873
|
},
|
|
2714
2874
|
async createFolder(name, projectId, parentFolderId) {
|
|
2715
2875
|
assertNotReadOnly('folders');
|
|
2876
|
+
assertInBoundProject(projectId);
|
|
2716
2877
|
await assertProjectScope(['folder:create'], projectId);
|
|
2717
2878
|
const folder = await folderService.createFolder({ name, parentFolderId: parentFolderId ?? undefined }, projectId);
|
|
2718
2879
|
return {
|
|
@@ -2723,6 +2884,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2723
2884
|
},
|
|
2724
2885
|
async deleteFolder(folderId, projectId, transferToFolderId) {
|
|
2725
2886
|
assertNotReadOnly('folders');
|
|
2887
|
+
assertInBoundProject(projectId);
|
|
2726
2888
|
await assertProjectScope(['folder:delete'], projectId);
|
|
2727
2889
|
await folderService.deleteFolder(user, folderId, projectId, {
|
|
2728
2890
|
transferToFolderId: transferToFolderId ?? undefined,
|
|
@@ -2730,6 +2892,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2730
2892
|
},
|
|
2731
2893
|
async moveWorkflowToFolder(workflowId, folderId) {
|
|
2732
2894
|
assertNotReadOnly('workflows');
|
|
2895
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
2733
2896
|
const workflow = await workflowFinderService.findWorkflowForUser(workflowId, user, [
|
|
2734
2897
|
'workflow:update',
|
|
2735
2898
|
]);
|
|
@@ -2745,6 +2908,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2745
2908
|
: {}),
|
|
2746
2909
|
async tagWorkflow(workflowId, tagNames) {
|
|
2747
2910
|
assertNotReadOnly('workflows');
|
|
2911
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
2748
2912
|
const workflow = await workflowFinderService.findWorkflowForUser(workflowId, user, [
|
|
2749
2913
|
'workflow:update',
|
|
2750
2914
|
]);
|
|
@@ -2791,6 +2955,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2791
2955
|
},
|
|
2792
2956
|
async cleanupTestExecutions(workflowId, options) {
|
|
2793
2957
|
assertNotReadOnly('executions');
|
|
2958
|
+
await assertWorkflowInBoundProject(workflowId);
|
|
2794
2959
|
const workflow = await workflowFinderService.findWorkflowForUser(workflowId, user, [
|
|
2795
2960
|
'execution:delete',
|
|
2796
2961
|
]);
|
|
@@ -2838,7 +3003,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
|
|
|
2838
3003
|
exports.InstanceAiAdapterService = InstanceAiAdapterService;
|
|
2839
3004
|
exports.InstanceAiAdapterService = InstanceAiAdapterService = __decorate([
|
|
2840
3005
|
(0, di_1.Service)(),
|
|
2841
|
-
__metadata("design:paramtypes", [backend_common_1.Logger, config_1.GlobalConfig, workflow_service_1.WorkflowService, workflow_finder_service_1.WorkflowFinderService, db_1.WorkflowRepository, db_1.SharedWorkflowRepository, db_1.ProjectRepository, db_1.ExecutionRepository, credentials_service_1.CredentialsService, backend_services_1.CredentialsFinderService, active_executions_1.ActiveExecutions, workflow_runner_1.WorkflowRunner, load_nodes_and_credentials_1.LoadNodesAndCredentials, node_types_1.NodeTypes, n8n_core_1.InstanceSettings, data_table_service_1.DataTableService, data_table_repository_1.DataTableRepository, node_resource_explorer_service_1.NodeResourceExplorerService, folder_service_1.FolderService, project_service_ee_1.ProjectService, tag_service_1.TagService, backend_services_1.InstanceWriteAccessService, instance_ai_settings_service_1.InstanceAiSettingsService, workflow_history_service_1.WorkflowHistoryService, workflow_service_ee_1.EnterpriseWorkflowService, license_1.License, execution_persistence_1.ExecutionPersistence, backend_services_1.EventService, backend_services_1.RoleService, telemetry_2.Telemetry, db_1.AiBuilderTemporaryWorkflowRepository, backend_network_1.OutboundHttp, ai_gateway_service_1.AiGatewayService, workflow_templates_service_1.WorkflowTemplatesService, collaboration_service_1.CollaborationService, policy_enforcement_service_1.PolicyEnforcementService, node_catalog_1.NodeCatalogService, evaluation_config_service_1.EvaluationConfigService, llm_judge_provider_registry_1.LlmJudgeProviderRegistry, workflow_dependency_query_service_1.WorkflowDependencyQueryService, db_1.FolderRepository, backend_services_1.FolderFinderService, instance_context_service_1.InstanceContextService, node_execution_1.ExecuteNodeService, backend_common_1.LicenseState,
|
|
3006
|
+
__metadata("design:paramtypes", [backend_common_1.Logger, config_1.GlobalConfig, workflow_service_1.WorkflowService, workflow_finder_service_1.WorkflowFinderService, db_1.WorkflowRepository, db_1.SharedWorkflowRepository, db_1.ProjectRepository, db_1.ExecutionRepository, credentials_service_1.CredentialsService, backend_services_1.CredentialsFinderService, active_executions_1.ActiveExecutions, workflow_runner_1.WorkflowRunner, load_nodes_and_credentials_1.LoadNodesAndCredentials, node_types_1.NodeTypes, n8n_core_1.InstanceSettings, data_table_service_1.DataTableService, data_table_repository_1.DataTableRepository, node_resource_explorer_service_1.NodeResourceExplorerService, folder_service_1.FolderService, project_service_ee_1.ProjectService, tag_service_1.TagService, backend_services_1.InstanceWriteAccessService, instance_ai_settings_service_1.InstanceAiSettingsService, workflow_history_service_1.WorkflowHistoryService, workflow_service_ee_1.EnterpriseWorkflowService, license_1.License, execution_persistence_1.ExecutionPersistence, backend_services_1.EventService, backend_services_1.RoleService, telemetry_2.Telemetry, db_1.AiBuilderTemporaryWorkflowRepository, backend_network_1.OutboundHttp, ai_gateway_service_1.AiGatewayService, workflow_templates_service_1.WorkflowTemplatesService, collaboration_service_1.CollaborationService, policy_enforcement_service_1.PolicyEnforcementService, node_catalog_1.NodeCatalogService, evaluation_config_service_1.EvaluationConfigService, llm_judge_provider_registry_1.LlmJudgeProviderRegistry, workflow_dependency_query_service_1.WorkflowDependencyQueryService, db_1.FolderRepository, backend_services_1.FolderFinderService, instance_context_service_1.InstanceContextService, node_execution_1.ExecuteNodeService, backend_common_1.LicenseState, backend_services_1.AiPreferenceService])
|
|
2842
3007
|
], InstanceAiAdapterService);
|
|
2843
3008
|
const MAX_RESULT_CHARS = 20_000;
|
|
2844
3009
|
const MAX_NODE_OUTPUT_CHARS = 1_000;
|
|
@@ -3030,7 +3195,7 @@ function extractNodeErrors(runData, includeUpstreamDetails, workflowNodes = [])
|
|
|
3030
3195
|
const message = failedRun.error
|
|
3031
3196
|
? formatExecutionError(failedRun.error, includeUpstreamDetails)
|
|
3032
3197
|
: failedRun.redactedError
|
|
3033
|
-
?
|
|
3198
|
+
? (0, instance_ai_1.formatRedactedError)(failedRun.redactedError)
|
|
3034
3199
|
: undefined;
|
|
3035
3200
|
nodeErrors.push({
|
|
3036
3201
|
nodeName,
|
|
@@ -3039,8 +3204,22 @@ function extractNodeErrors(runData, includeUpstreamDetails, workflowNodes = [])
|
|
|
3039
3204
|
}
|
|
3040
3205
|
return nodeErrors;
|
|
3041
3206
|
}
|
|
3042
|
-
async function extractExecutionResult(
|
|
3043
|
-
return (await extractExecutionOutcome(
|
|
3207
|
+
async function extractExecutionResult(execution, includeOutputData = true, nodeTypes) {
|
|
3208
|
+
return (await extractExecutionOutcome(execution, includeOutputData, nodeTypes)).result;
|
|
3209
|
+
}
|
|
3210
|
+
function withCredentialRefusal(outcome, refusal) {
|
|
3211
|
+
const { result } = outcome;
|
|
3212
|
+
if (!refusal || result.status !== 'error')
|
|
3213
|
+
return outcome;
|
|
3214
|
+
const message = [refusal.message, refusal.description].filter(Boolean).join('. ');
|
|
3215
|
+
return {
|
|
3216
|
+
result: {
|
|
3217
|
+
...result,
|
|
3218
|
+
error: message,
|
|
3219
|
+
nodeErrors: result.nodeErrors?.map((nodeError) => nodeError.nodeName === refusal.nodeName ? { ...nodeError, message } : nodeError),
|
|
3220
|
+
},
|
|
3221
|
+
telemetryError: refusal.message,
|
|
3222
|
+
};
|
|
3044
3223
|
}
|
|
3045
3224
|
function nonMainOutputs(run) {
|
|
3046
3225
|
return Object.entries(run?.data ?? {}).find(([type]) => type !== n8n_workflow_1.NodeConnectionTypes.Main)?.[1];
|
|
@@ -3062,14 +3241,9 @@ function foldToolExecutorRun(runData, subNodeTarget) {
|
|
|
3062
3241
|
}
|
|
3063
3242
|
return folded;
|
|
3064
3243
|
}
|
|
3065
|
-
async function extractExecutionOutcome(
|
|
3066
|
-
const
|
|
3067
|
-
|
|
3068
|
-
unflattenData: true,
|
|
3069
|
-
});
|
|
3070
|
-
if (!execution) {
|
|
3071
|
-
return { result: { executionId, status: 'unknown' } };
|
|
3072
|
-
}
|
|
3244
|
+
async function extractExecutionOutcome(execution, includeOutputData = true, nodeTypes, subNodeTarget) {
|
|
3245
|
+
const executionId = execution.id;
|
|
3246
|
+
const redaction = (0, execution_viewer_reader_1.getExecutionRedaction)(execution);
|
|
3073
3247
|
const status = execution.status === 'error' || execution.status === 'crashed'
|
|
3074
3248
|
? 'error'
|
|
3075
3249
|
: execution.status === 'running' || execution.status === 'new'
|
|
@@ -3081,7 +3255,7 @@ async function extractExecutionOutcome(executionId, includeOutputData = true, no
|
|
|
3081
3255
|
const runData = foldToolExecutorRun(execution.data?.resultData?.runData, subNodeTarget);
|
|
3082
3256
|
const executedNodeNames = Object.keys(runData ?? {});
|
|
3083
3257
|
const binaryOutputNodeNames = [];
|
|
3084
|
-
if (includeOutputData && runData) {
|
|
3258
|
+
if (includeOutputData && runData && !redaction) {
|
|
3085
3259
|
const workflow = buildExecutionWorkflow(execution.workflowData, nodeTypes);
|
|
3086
3260
|
await workflow?.expression.acquireIsolate();
|
|
3087
3261
|
try {
|
|
@@ -3118,7 +3292,12 @@ async function extractExecutionOutcome(executionId, includeOutputData = true, no
|
|
|
3118
3292
|
}
|
|
3119
3293
|
}
|
|
3120
3294
|
const error = execution.data?.resultData?.error;
|
|
3121
|
-
const
|
|
3295
|
+
const redactedError = execution.data?.resultData?.redactedError;
|
|
3296
|
+
const errorMessage = error
|
|
3297
|
+
? formatExecutionError(error, includeOutputData)
|
|
3298
|
+
: redactedError
|
|
3299
|
+
? (0, instance_ai_1.formatRedactedError)(redactedError)
|
|
3300
|
+
: undefined;
|
|
3122
3301
|
const nodeErrors = extractNodeErrors(runData, includeOutputData, execution.workflowData?.nodes);
|
|
3123
3302
|
return {
|
|
3124
3303
|
result: {
|
|
@@ -3132,11 +3311,16 @@ async function extractExecutionOutcome(executionId, includeOutputData = true, no
|
|
|
3132
3311
|
nodeErrors: nodeErrors.length > 0 ? nodeErrors : undefined,
|
|
3133
3312
|
lastNodeExecuted: renameToolExecutor(execution.data?.resultData?.lastNodeExecuted, subNodeTarget),
|
|
3134
3313
|
workflowVersionId: execution.workflowVersionId,
|
|
3314
|
+
...(redaction ? { redaction } : {}),
|
|
3135
3315
|
error: errorMessage,
|
|
3136
3316
|
startedAt: execution.startedAt?.toISOString(),
|
|
3137
3317
|
finishedAt: execution.stoppedAt?.toISOString(),
|
|
3138
3318
|
},
|
|
3139
|
-
telemetryError: error
|
|
3319
|
+
telemetryError: error
|
|
3320
|
+
? formatExecutionError(error, false)
|
|
3321
|
+
: redactedError
|
|
3322
|
+
? (0, instance_ai_1.formatRedactedError)(redactedError)
|
|
3323
|
+
: undefined,
|
|
3140
3324
|
};
|
|
3141
3325
|
}
|
|
3142
3326
|
const MAX_ERROR_CHARS = 4_000;
|
|
@@ -3190,9 +3374,37 @@ function capItemsBySerializedSize(items, maxBytes) {
|
|
|
3190
3374
|
return kept;
|
|
3191
3375
|
}
|
|
3192
3376
|
const EXECUTE_NODE_DETAILS_SUPPRESSED = '(upstream error details suppressed by the instance AI privacy setting; ask the user to share the node error from the UI)';
|
|
3377
|
+
function describeExecuteNodeRedaction(reason) {
|
|
3378
|
+
if (reason === 'credential_inaccessible') {
|
|
3379
|
+
return ('The node used a credential that is not owned by or shared with the user, so n8n hides the data. ' +
|
|
3380
|
+
'Do not run the node again with this credential. Use a credential that the user owns or that is shared with them.');
|
|
3381
|
+
}
|
|
3382
|
+
return 'n8n hides the data of every run like this one, so do not run the node again to see it. Tell the user that n8n redacted the data.';
|
|
3383
|
+
}
|
|
3193
3384
|
function redactExecuteNodeResult(result, allowSendingParameterValues) {
|
|
3385
|
+
if (result.status === 'redacted') {
|
|
3386
|
+
const redaction = { reason: result.reason, canReveal: false };
|
|
3387
|
+
const guidance = describeExecuteNodeRedaction(result.reason);
|
|
3388
|
+
if (result.failed) {
|
|
3389
|
+
return {
|
|
3390
|
+
status: 'error',
|
|
3391
|
+
error: {
|
|
3392
|
+
message: (0, instance_ai_1.formatRedactedError)(result.error ?? { type: '' }),
|
|
3393
|
+
description: guidance,
|
|
3394
|
+
...(result.error?.type ? { nodeErrorType: result.error.type } : {}),
|
|
3395
|
+
},
|
|
3396
|
+
redaction,
|
|
3397
|
+
};
|
|
3398
|
+
}
|
|
3399
|
+
return {
|
|
3400
|
+
status: 'success',
|
|
3401
|
+
output: '',
|
|
3402
|
+
outputSuppressed: `The node executed successfully, but n8n redacted its output for this user (${result.reason}). ${guidance}`,
|
|
3403
|
+
redaction,
|
|
3404
|
+
};
|
|
3405
|
+
}
|
|
3194
3406
|
if (result.status === 'error') {
|
|
3195
|
-
const { message, description, nodeErrorType } = result.error;
|
|
3407
|
+
const { message, description, nodeErrorType, refused } = result.error;
|
|
3196
3408
|
const cappedDescription = description && description.length > MAX_ERROR_CHARS
|
|
3197
3409
|
? `${description.slice(0, MAX_ERROR_CHARS)}…`
|
|
3198
3410
|
: description;
|
|
@@ -3200,7 +3412,7 @@ function redactExecuteNodeResult(result, allowSendingParameterValues) {
|
|
|
3200
3412
|
status: 'error',
|
|
3201
3413
|
error: {
|
|
3202
3414
|
message,
|
|
3203
|
-
description: allowSendingParameterValues
|
|
3415
|
+
description: allowSendingParameterValues || refused
|
|
3204
3416
|
? cappedDescription
|
|
3205
3417
|
: description
|
|
3206
3418
|
? EXECUTE_NODE_DETAILS_SUPPRESSED
|
|
@@ -3277,18 +3489,22 @@ function resolveOutputNames(workflow, nodeName) {
|
|
|
3277
3489
|
return [];
|
|
3278
3490
|
}
|
|
3279
3491
|
}
|
|
3280
|
-
async function extractNodeOutput(
|
|
3281
|
-
const
|
|
3282
|
-
includeData: true,
|
|
3283
|
-
unflattenData: true,
|
|
3284
|
-
});
|
|
3285
|
-
if (!execution) {
|
|
3286
|
-
throw new Error(`Execution ${executionId} not found`);
|
|
3287
|
-
}
|
|
3492
|
+
async function extractNodeOutput(execution, nodeName, options, nodeTypes) {
|
|
3493
|
+
const executionId = execution.id;
|
|
3288
3494
|
const runData = execution.data?.resultData?.runData;
|
|
3289
3495
|
if (!runData?.[nodeName]) {
|
|
3290
3496
|
throw new Error(`Node "${nodeName}" not found in execution ${executionId}`);
|
|
3291
3497
|
}
|
|
3498
|
+
const redaction = (0, execution_viewer_reader_1.getExecutionRedaction)(execution);
|
|
3499
|
+
if (redaction) {
|
|
3500
|
+
return {
|
|
3501
|
+
nodeName,
|
|
3502
|
+
outputs: [],
|
|
3503
|
+
totalItems: 0,
|
|
3504
|
+
returned: { from: 0, to: 0 },
|
|
3505
|
+
redaction,
|
|
3506
|
+
};
|
|
3507
|
+
}
|
|
3292
3508
|
const nodeRuns = runData[nodeName];
|
|
3293
3509
|
const lastRun = nodeRuns[nodeRuns.length - 1];
|
|
3294
3510
|
const startIndex = options?.startIndex ?? 0;
|
|
@@ -3398,19 +3614,8 @@ function getExecutionModeForTrigger(node) {
|
|
|
3398
3614
|
return 'manual';
|
|
3399
3615
|
}
|
|
3400
3616
|
}
|
|
3401
|
-
async function extractExecutionDebugInfo(
|
|
3402
|
-
const
|
|
3403
|
-
includeData: true,
|
|
3404
|
-
unflattenData: true,
|
|
3405
|
-
});
|
|
3406
|
-
if (!execution) {
|
|
3407
|
-
return {
|
|
3408
|
-
executionId,
|
|
3409
|
-
status: 'unknown',
|
|
3410
|
-
nodeTrace: [],
|
|
3411
|
-
};
|
|
3412
|
-
}
|
|
3413
|
-
const baseResult = await extractExecutionResult(executionId, includeOutputData, nodeTypes);
|
|
3617
|
+
async function extractExecutionDebugInfo(execution, includeOutputData = true, nodeTypes) {
|
|
3618
|
+
const baseResult = await extractExecutionResult(execution, includeOutputData, nodeTypes);
|
|
3414
3619
|
const runData = execution.data?.resultData?.runData;
|
|
3415
3620
|
const nodeTrace = [];
|
|
3416
3621
|
let failedNode;
|
|
@@ -3433,6 +3638,13 @@ async function extractExecutionDebugInfo(executionId, includeOutputData = true,
|
|
|
3433
3638
|
? new Date(lastRun.startTime + lastRun.executionTime).toISOString()
|
|
3434
3639
|
: undefined,
|
|
3435
3640
|
});
|
|
3641
|
+
if (lastRun.redactedError !== undefined && !failedNode) {
|
|
3642
|
+
failedNode = {
|
|
3643
|
+
name: nodeName,
|
|
3644
|
+
type: nodeType,
|
|
3645
|
+
error: (0, instance_ai_1.formatRedactedError)(lastRun.redactedError),
|
|
3646
|
+
};
|
|
3647
|
+
}
|
|
3436
3648
|
if (lastRun.error !== undefined && !failedNode) {
|
|
3437
3649
|
const errorContext = lastRun.error.context;
|
|
3438
3650
|
failedItemIndex =
|
|
@@ -3460,9 +3672,9 @@ async function extractExecutionDebugInfo(executionId, includeOutputData = true,
|
|
|
3460
3672
|
}
|
|
3461
3673
|
}
|
|
3462
3674
|
}
|
|
3463
|
-
if (failedNode && includeOutputData && nodeTypes) {
|
|
3675
|
+
if (failedNode && includeOutputData && nodeTypes && !baseResult.redaction) {
|
|
3464
3676
|
try {
|
|
3465
|
-
const { nodeName: _omitName, suppressed: _omitSuppressed, ...bundle } = await (0, extract_resolved_node_parameters_1.extractResolvedNodeParameters)(nodeTypes,
|
|
3677
|
+
const { nodeName: _omitName, suppressed: _omitSuppressed, ...bundle } = await (0, extract_resolved_node_parameters_1.extractResolvedNodeParameters)(nodeTypes, execution, failedNode.name, {
|
|
3466
3678
|
itemIndex: failedItemIndex,
|
|
3467
3679
|
runIndex: failedRunIndex,
|
|
3468
3680
|
});
|
|
@@ -3558,38 +3770,6 @@ function sanitizeCredentialReferencesForSave(nodes) {
|
|
|
3558
3770
|
return sanitized;
|
|
3559
3771
|
});
|
|
3560
3772
|
}
|
|
3561
|
-
function toWorkflowJSON(workflow, options) {
|
|
3562
|
-
const redact = options?.redactParameters ?? false;
|
|
3563
|
-
const source = options?.graph ?? workflow;
|
|
3564
|
-
return {
|
|
3565
|
-
id: workflow.id,
|
|
3566
|
-
name: workflow.name,
|
|
3567
|
-
nodes: (source.nodes ?? []).map((n) => ({
|
|
3568
|
-
id: n.id ?? '',
|
|
3569
|
-
name: n.name,
|
|
3570
|
-
type: n.type,
|
|
3571
|
-
typeVersion: n.typeVersion,
|
|
3572
|
-
position: n.position,
|
|
3573
|
-
parameters: redact ? {} : n.parameters,
|
|
3574
|
-
credentials: n.credentials,
|
|
3575
|
-
webhookId: n.webhookId,
|
|
3576
|
-
disabled: n.disabled,
|
|
3577
|
-
notes: n.notes,
|
|
3578
|
-
notesInFlow: n.notesInFlow,
|
|
3579
|
-
executeOnce: n.executeOnce,
|
|
3580
|
-
retryOnFail: n.retryOnFail,
|
|
3581
|
-
maxTries: n.maxTries,
|
|
3582
|
-
waitBetweenTries: n.waitBetweenTries,
|
|
3583
|
-
alwaysOutputData: n.alwaysOutputData,
|
|
3584
|
-
onError: n.onError ?? (n.continueOnFail ? 'continueRegularOutput' : undefined),
|
|
3585
|
-
extendsCredential: n.extendsCredential,
|
|
3586
|
-
customTelemetryTags: n.customTelemetryTags,
|
|
3587
|
-
})),
|
|
3588
|
-
connections: source.connections,
|
|
3589
|
-
settings: workflow.settings,
|
|
3590
|
-
...(source.nodeGroups ? { nodeGroups: source.nodeGroups } : {}),
|
|
3591
|
-
};
|
|
3592
|
-
}
|
|
3593
3773
|
function toWorkflowDetail(workflow, options) {
|
|
3594
3774
|
const redact = options?.redactParameters ?? false;
|
|
3595
3775
|
return {
|