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
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FailedExecutionPortabilityService = void 0;
|
|
13
|
+
const errors_1 = require("@n8n/errors");
|
|
14
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
15
|
+
const db_1 = require("@n8n/db");
|
|
16
|
+
const di_1 = require("@n8n/di");
|
|
17
|
+
const flatted_1 = require("flatted");
|
|
18
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
19
|
+
const node_util_1 = require("node:util");
|
|
20
|
+
const active_executions_1 = require("../../../active-executions");
|
|
21
|
+
const execution_id_1 = require("../../../executions/execution-id");
|
|
22
|
+
const execution_persistence_1 = require("../../../executions/execution-persistence");
|
|
23
|
+
const sum_binary_data_bytes_1 = require("../../../executions/sum-binary-data-bytes");
|
|
24
|
+
const workflow_finder_service_1 = require("../../../workflows/workflow-finder.service");
|
|
25
|
+
const instance_ai_adapter_service_1 = require("../instance-ai.adapter.service");
|
|
26
|
+
function isRecord(value) {
|
|
27
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
28
|
+
}
|
|
29
|
+
function isMigratableRunData(value) {
|
|
30
|
+
if (!isRecord(value))
|
|
31
|
+
return false;
|
|
32
|
+
if (value.version !== undefined && value.version !== 0 && value.version !== 1)
|
|
33
|
+
return false;
|
|
34
|
+
if (!isRecord(value.resultData) || !isRecord(value.resultData.runData))
|
|
35
|
+
return false;
|
|
36
|
+
return Object.values(value.resultData.runData).every((runs) => Array.isArray(runs));
|
|
37
|
+
}
|
|
38
|
+
function isWorkflowNode(value) {
|
|
39
|
+
return (isRecord(value) &&
|
|
40
|
+
typeof value.id === 'string' &&
|
|
41
|
+
typeof value.name === 'string' &&
|
|
42
|
+
typeof value.type === 'string' &&
|
|
43
|
+
typeof value.typeVersion === 'number' &&
|
|
44
|
+
Array.isArray(value.position) &&
|
|
45
|
+
value.position.length === 2 &&
|
|
46
|
+
value.position.every((coordinate) => typeof coordinate === 'number') &&
|
|
47
|
+
isRecord(value.parameters));
|
|
48
|
+
}
|
|
49
|
+
function isConnections(value) {
|
|
50
|
+
return isRecord(value);
|
|
51
|
+
}
|
|
52
|
+
function isWorkflowSettings(value) {
|
|
53
|
+
return value === undefined || isRecord(value);
|
|
54
|
+
}
|
|
55
|
+
function isWorkflowGroup(value) {
|
|
56
|
+
return (isRecord(value) &&
|
|
57
|
+
typeof value.id === 'string' &&
|
|
58
|
+
typeof value.name === 'string' &&
|
|
59
|
+
Array.isArray(value.nodeIds) &&
|
|
60
|
+
value.nodeIds.every((nodeId) => typeof nodeId === 'string') &&
|
|
61
|
+
(value.description === undefined || typeof value.description === 'string'));
|
|
62
|
+
}
|
|
63
|
+
function hasRelatedExecution(metadata) {
|
|
64
|
+
return metadata?.parentExecution !== undefined || metadata?.subExecution !== undefined;
|
|
65
|
+
}
|
|
66
|
+
function dependencyError(path) {
|
|
67
|
+
return new errors_1.BadRequestError(`Execution cannot be exported because ${path} is not portable`);
|
|
68
|
+
}
|
|
69
|
+
function assertFiniteTimestamp(value, path) {
|
|
70
|
+
if (!Number.isFinite(value))
|
|
71
|
+
throw new errors_1.BadRequestError(`${path} must be a finite timestamp`);
|
|
72
|
+
}
|
|
73
|
+
let FailedExecutionPortabilityService = class FailedExecutionPortabilityService {
|
|
74
|
+
constructor(executionPersistence, activeExecutions, workflowFinderService, sharedWorkflowRepository, logger) {
|
|
75
|
+
this.executionPersistence = executionPersistence;
|
|
76
|
+
this.activeExecutions = activeExecutions;
|
|
77
|
+
this.workflowFinderService = workflowFinderService;
|
|
78
|
+
this.sharedWorkflowRepository = sharedWorkflowRepository;
|
|
79
|
+
this.logger = logger;
|
|
80
|
+
}
|
|
81
|
+
async exportExecution(user, projectId, executionId) {
|
|
82
|
+
if ((0, execution_id_1.isExecutionIdV2)(executionId)) {
|
|
83
|
+
throw new errors_1.BadRequestError('Engine v2 executions are not portable');
|
|
84
|
+
}
|
|
85
|
+
const execution = await this.executionPersistence.findSingleExecution(executionId, {
|
|
86
|
+
includeData: true,
|
|
87
|
+
unflattenData: false,
|
|
88
|
+
});
|
|
89
|
+
if (!execution)
|
|
90
|
+
throw new errors_1.NotFoundError('Execution not found');
|
|
91
|
+
await this.assertWorkflowAccess(user, execution.workflowId, projectId, 'workflow:read');
|
|
92
|
+
this.assertPortableExecution(execution, executionId);
|
|
93
|
+
const data = await this.parsePortableData(execution.data, executionId);
|
|
94
|
+
this.assertPortableData(data);
|
|
95
|
+
this.removeSourceOperationalMetadata(data);
|
|
96
|
+
const workflowData = this.toHistoricalSnapshot(execution.workflowData);
|
|
97
|
+
if (workflowData.id !== execution.workflowId) {
|
|
98
|
+
throw new errors_1.BadRequestError('Execution workflow snapshot does not match its owning workflow');
|
|
99
|
+
}
|
|
100
|
+
const envelope = {
|
|
101
|
+
format: 'n8n-instance-ai-failed-execution',
|
|
102
|
+
version: 1,
|
|
103
|
+
source: {
|
|
104
|
+
executionId: execution.id,
|
|
105
|
+
workflowId: execution.workflowId,
|
|
106
|
+
workflowVersionId: execution.workflowVersionId ?? null,
|
|
107
|
+
createdAt: execution.createdAt.toISOString(),
|
|
108
|
+
startedAt: execution.startedAt.toISOString(),
|
|
109
|
+
stoppedAt: execution.stoppedAt.toISOString(),
|
|
110
|
+
},
|
|
111
|
+
execution: {
|
|
112
|
+
mode: execution.mode,
|
|
113
|
+
status: execution.status,
|
|
114
|
+
finished: false,
|
|
115
|
+
workflowData,
|
|
116
|
+
data: (0, flatted_1.stringify)(data),
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
return { envelope, summary: this.summarize(data, execution.status) };
|
|
120
|
+
}
|
|
121
|
+
async restoreExecution(user, projectId, workflowId, envelope) {
|
|
122
|
+
await this.assertWorkflowAccess(user, workflowId, projectId, 'workflow:execute');
|
|
123
|
+
this.assertEnvelopeConsistency(envelope);
|
|
124
|
+
if (envelope.execution.mode === 'retry') {
|
|
125
|
+
throw new errors_1.BadRequestError('A retry execution cannot be restored');
|
|
126
|
+
}
|
|
127
|
+
const data = await this.parsePortableData(envelope.execution.data, envelope.source.executionId);
|
|
128
|
+
this.assertPortableData(data);
|
|
129
|
+
if (data.resumeToken !== undefined) {
|
|
130
|
+
throw new errors_1.BadRequestError('Portable execution data must not contain a source resume token');
|
|
131
|
+
}
|
|
132
|
+
this.removeSourceOperationalMetadata(data);
|
|
133
|
+
const sourceStartedAt = this.parseDate(envelope.source.startedAt, 'source.startedAt');
|
|
134
|
+
const sourceStoppedAt = this.parseDate(envelope.source.stoppedAt, 'source.stoppedAt');
|
|
135
|
+
if (sourceStoppedAt.getTime() < sourceStartedAt.getTime()) {
|
|
136
|
+
throw new errors_1.BadRequestError('source.stoppedAt must not be earlier than source.startedAt');
|
|
137
|
+
}
|
|
138
|
+
const importedStoppedAt = new Date();
|
|
139
|
+
const timestampOffsetMs = importedStoppedAt.getTime() - sourceStoppedAt.getTime();
|
|
140
|
+
const importedStartedAt = new Date(sourceStartedAt.getTime() + timestampOffsetMs);
|
|
141
|
+
this.shiftDiagnosticTimestamps(data, timestampOffsetMs);
|
|
142
|
+
data.resumeToken = (0, n8n_workflow_1.generateSecureToken)();
|
|
143
|
+
const snapshot = this.toHistoricalSnapshot(envelope.execution.workflowData);
|
|
144
|
+
const workflowData = {
|
|
145
|
+
id: workflowId,
|
|
146
|
+
name: snapshot.name,
|
|
147
|
+
active: false,
|
|
148
|
+
isArchived: false,
|
|
149
|
+
createdAt: importedStoppedAt,
|
|
150
|
+
updatedAt: importedStoppedAt,
|
|
151
|
+
nodes: snapshot.nodes,
|
|
152
|
+
connections: snapshot.connections,
|
|
153
|
+
settings: snapshot.settings,
|
|
154
|
+
activeVersionId: null,
|
|
155
|
+
versionId: envelope.source.workflowVersionId ?? undefined,
|
|
156
|
+
nodeGroups: snapshot.nodeGroups,
|
|
157
|
+
};
|
|
158
|
+
let executionId;
|
|
159
|
+
try {
|
|
160
|
+
executionId = await this.executionPersistence.create({
|
|
161
|
+
data,
|
|
162
|
+
workflowData,
|
|
163
|
+
finished: false,
|
|
164
|
+
mode: envelope.execution.mode,
|
|
165
|
+
status: envelope.execution.status,
|
|
166
|
+
startedAt: importedStartedAt,
|
|
167
|
+
stoppedAt: importedStoppedAt,
|
|
168
|
+
workflowId,
|
|
169
|
+
waitTill: null,
|
|
170
|
+
tracingContext: null,
|
|
171
|
+
deduplicationKey: null,
|
|
172
|
+
usedPrivateCredentials: false,
|
|
173
|
+
});
|
|
174
|
+
const restored = await this.executionPersistence.findSingleExecution(executionId, {
|
|
175
|
+
includeData: true,
|
|
176
|
+
unflattenData: true,
|
|
177
|
+
});
|
|
178
|
+
if (!restored || restored.workflowId !== workflowId || restored.data === undefined) {
|
|
179
|
+
throw new n8n_workflow_1.UnexpectedError('Imported execution could not be read back completely');
|
|
180
|
+
}
|
|
181
|
+
const expectedSnapshot = { ...snapshot, id: workflowId };
|
|
182
|
+
const restoredSnapshot = this.toHistoricalSnapshot(restored.workflowData);
|
|
183
|
+
const terminalMetadataMatches = restored.workflowId === workflowId &&
|
|
184
|
+
restored.workflowVersionId === envelope.source.workflowVersionId &&
|
|
185
|
+
restored.mode === envelope.execution.mode &&
|
|
186
|
+
restored.status === envelope.execution.status &&
|
|
187
|
+
(restored.waitTill === null || restored.waitTill === undefined) &&
|
|
188
|
+
restored.startedAt.getTime() === importedStartedAt.getTime() &&
|
|
189
|
+
restored.stoppedAt?.getTime() === importedStoppedAt.getTime();
|
|
190
|
+
if (!terminalMetadataMatches ||
|
|
191
|
+
!(0, node_util_1.isDeepStrictEqual)(restoredSnapshot, expectedSnapshot) ||
|
|
192
|
+
!(0, node_util_1.isDeepStrictEqual)(restored.data, data)) {
|
|
193
|
+
throw new n8n_workflow_1.UnexpectedError('Imported execution readback did not match the native transformed payload');
|
|
194
|
+
}
|
|
195
|
+
return {
|
|
196
|
+
ok: true,
|
|
197
|
+
workflowId,
|
|
198
|
+
executionId,
|
|
199
|
+
timestampOffsetMs,
|
|
200
|
+
summary: this.summarize(restored.data, envelope.execution.status),
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
catch (error) {
|
|
204
|
+
if (executionId) {
|
|
205
|
+
try {
|
|
206
|
+
await this.executionPersistence.hardDeleteById(executionId);
|
|
207
|
+
}
|
|
208
|
+
catch (cleanupError) {
|
|
209
|
+
this.logger.error('Failed to clean up an incomplete portable execution import', {
|
|
210
|
+
executionId,
|
|
211
|
+
error: cleanupError instanceof Error ? cleanupError.message : String(cleanupError),
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
throw error;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
async assertWorkflowAccess(user, workflowId, projectId, scope) {
|
|
219
|
+
const [workflow, owner] = await Promise.all([
|
|
220
|
+
this.workflowFinderService.findWorkflowForUser(workflowId, user, [scope]),
|
|
221
|
+
this.sharedWorkflowRepository.getWorkflowOwningProject(workflowId),
|
|
222
|
+
]);
|
|
223
|
+
if (!workflow || owner?.id !== projectId)
|
|
224
|
+
throw new errors_1.NotFoundError('Workflow not found');
|
|
225
|
+
}
|
|
226
|
+
assertPortableExecution(execution, executionId) {
|
|
227
|
+
if (this.activeExecutions.has(executionId))
|
|
228
|
+
throw dependencyError('it is still active');
|
|
229
|
+
if (execution.status !== 'error' && execution.status !== 'crashed') {
|
|
230
|
+
throw dependencyError(`status ${execution.status} is not a terminal failure`);
|
|
231
|
+
}
|
|
232
|
+
if (!execution.startedAt || !execution.stoppedAt) {
|
|
233
|
+
throw dependencyError('its lifecycle timestamps are incomplete');
|
|
234
|
+
}
|
|
235
|
+
if (execution.waitTill)
|
|
236
|
+
throw dependencyError('waitTill is present');
|
|
237
|
+
if (execution.mode === 'retry' || execution.retryOf || execution.retrySuccessId) {
|
|
238
|
+
throw dependencyError('it belongs to a retry graph');
|
|
239
|
+
}
|
|
240
|
+
if (execution.usedPrivateCredentials) {
|
|
241
|
+
throw dependencyError('usedPrivateCredentials is true');
|
|
242
|
+
}
|
|
243
|
+
if (typeof execution.data !== 'string') {
|
|
244
|
+
throw new errors_1.BadRequestError('Execution data is not in native serialized form');
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
async parsePortableData(serialized, executionId) {
|
|
248
|
+
let parsed;
|
|
249
|
+
try {
|
|
250
|
+
parsed = await (0, backend_common_1.parseFlatted)(serialized);
|
|
251
|
+
}
|
|
252
|
+
catch (error) {
|
|
253
|
+
throw errors_1.BadRequestError.wrap(`Execution ${executionId} has corrupt serialized data`, error);
|
|
254
|
+
}
|
|
255
|
+
if (!isMigratableRunData(parsed)) {
|
|
256
|
+
throw new errors_1.BadRequestError(`Execution ${executionId} has invalid native run data`);
|
|
257
|
+
}
|
|
258
|
+
try {
|
|
259
|
+
return (0, n8n_workflow_1.migrateRunExecutionData)(parsed);
|
|
260
|
+
}
|
|
261
|
+
catch (error) {
|
|
262
|
+
throw errors_1.BadRequestError.wrap(`Execution ${executionId} uses unsupported native run data`, error);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
assertPortableData(data) {
|
|
266
|
+
if (data.waitTill !== undefined)
|
|
267
|
+
throw dependencyError('run data waitTill is present');
|
|
268
|
+
if (data.parentExecution)
|
|
269
|
+
throw dependencyError('run data has a parent execution');
|
|
270
|
+
if (data.parentAgentRun)
|
|
271
|
+
throw dependencyError('run data has a parent agent run');
|
|
272
|
+
if (data.redactionInfo?.isRedacted)
|
|
273
|
+
throw dependencyError('run data is redacted');
|
|
274
|
+
const runtimeData = data.executionData?.runtimeData;
|
|
275
|
+
if (runtimeData?.parentExecutionId)
|
|
276
|
+
throw dependencyError('runtimeData.parentExecutionId is set');
|
|
277
|
+
if (runtimeData?.credentials !== undefined)
|
|
278
|
+
throw dependencyError('runtimeData.credentials is set');
|
|
279
|
+
if (runtimeData?.secureArtifacts !== undefined) {
|
|
280
|
+
throw dependencyError('runtimeData.secureArtifacts is set');
|
|
281
|
+
}
|
|
282
|
+
if (runtimeData?.executedByUserId) {
|
|
283
|
+
throw dependencyError('runtimeData.executedByUserId is set');
|
|
284
|
+
}
|
|
285
|
+
for (const [nodeName, runs] of Object.entries(data.resultData.runData)) {
|
|
286
|
+
for (const [runIndex, run] of runs.entries()) {
|
|
287
|
+
if (!isRecord(run)) {
|
|
288
|
+
throw new errors_1.BadRequestError(`runData.${nodeName}.${runIndex} must be an object`);
|
|
289
|
+
}
|
|
290
|
+
assertFiniteTimestamp(run.startTime, `runData.${nodeName}.${runIndex}.startTime`);
|
|
291
|
+
if (!Number.isFinite(run.executionTime)) {
|
|
292
|
+
throw new errors_1.BadRequestError(`runData.${nodeName}.${runIndex}.executionTime must be finite`);
|
|
293
|
+
}
|
|
294
|
+
if (hasRelatedExecution(run.metadata)) {
|
|
295
|
+
throw dependencyError(`runData.${nodeName}.${runIndex}.metadata has an execution link`);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
const nodeExecutionStack = data.executionData?.nodeExecutionStack ?? [];
|
|
300
|
+
if (!Array.isArray(nodeExecutionStack)) {
|
|
301
|
+
throw new errors_1.BadRequestError('executionData.nodeExecutionStack must be an array');
|
|
302
|
+
}
|
|
303
|
+
for (const [index, stackEntry] of nodeExecutionStack.entries()) {
|
|
304
|
+
if (!isRecord(stackEntry)) {
|
|
305
|
+
throw new errors_1.BadRequestError(`executionData.nodeExecutionStack.${index} must be an object`);
|
|
306
|
+
}
|
|
307
|
+
if (hasRelatedExecution(stackEntry.metadata)) {
|
|
308
|
+
throw dependencyError(`executionData.nodeExecutionStack.${index}.metadata has an execution link`);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
for (const [nodeName, metadataEntries] of Object.entries(data.executionData?.metadata ?? {})) {
|
|
312
|
+
if (!Array.isArray(metadataEntries)) {
|
|
313
|
+
throw new errors_1.BadRequestError(`executionData.metadata.${nodeName} must be an array`);
|
|
314
|
+
}
|
|
315
|
+
for (const [runIndex, metadata] of metadataEntries.entries()) {
|
|
316
|
+
if (hasRelatedExecution(metadata)) {
|
|
317
|
+
throw dependencyError(`executionData.metadata.${nodeName}.${runIndex} has an execution link`);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
if ((0, sum_binary_data_bytes_1.hasExternalBinaryData)(data))
|
|
322
|
+
throw dependencyError('run data has external binary data');
|
|
323
|
+
}
|
|
324
|
+
removeSourceOperationalMetadata(data) {
|
|
325
|
+
delete data.resumeToken;
|
|
326
|
+
delete data.pushRef;
|
|
327
|
+
if (!data.manualData)
|
|
328
|
+
return;
|
|
329
|
+
delete data.manualData.userId;
|
|
330
|
+
delete data.manualData.evaluationRunId;
|
|
331
|
+
delete data.manualData.suppressErrorWorkflow;
|
|
332
|
+
if (Object.keys(data.manualData).length === 0)
|
|
333
|
+
delete data.manualData;
|
|
334
|
+
}
|
|
335
|
+
shiftDiagnosticTimestamps(data, offsetMs) {
|
|
336
|
+
for (const runs of Object.values(data.resultData.runData)) {
|
|
337
|
+
for (const run of runs) {
|
|
338
|
+
run.startTime += offsetMs;
|
|
339
|
+
assertFiniteTimestamp(run.startTime, 'shifted runData startTime');
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
const runtimeData = data.executionData?.runtimeData;
|
|
343
|
+
if (runtimeData) {
|
|
344
|
+
assertFiniteTimestamp(runtimeData.establishedAt, 'runtimeData.establishedAt');
|
|
345
|
+
runtimeData.establishedAt += offsetMs;
|
|
346
|
+
assertFiniteTimestamp(runtimeData.establishedAt, 'shifted runtimeData.establishedAt');
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
summarize(data, status) {
|
|
350
|
+
return {
|
|
351
|
+
status,
|
|
352
|
+
lastNodeExecuted: data.resultData.lastNodeExecuted ?? null,
|
|
353
|
+
error: data.resultData.error
|
|
354
|
+
? (0, instance_ai_adapter_service_1.formatExecutionError)(data.resultData.error, true)
|
|
355
|
+
: 'Unknown error',
|
|
356
|
+
nodeRunCounts: Object.fromEntries(Object.entries(data.resultData.runData).map(([nodeName, runs]) => [nodeName, runs.length])),
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
toHistoricalSnapshot(workflowData) {
|
|
360
|
+
if (!isRecord(workflowData))
|
|
361
|
+
throw new errors_1.BadRequestError('Execution workflow snapshot is invalid');
|
|
362
|
+
if (typeof workflowData.id !== 'string' ||
|
|
363
|
+
typeof workflowData.name !== 'string' ||
|
|
364
|
+
!Array.isArray(workflowData.nodes) ||
|
|
365
|
+
!workflowData.nodes.every(isWorkflowNode) ||
|
|
366
|
+
!isConnections(workflowData.connections) ||
|
|
367
|
+
!isWorkflowSettings(workflowData.settings) ||
|
|
368
|
+
(workflowData.nodeGroups !== undefined &&
|
|
369
|
+
(!Array.isArray(workflowData.nodeGroups) ||
|
|
370
|
+
!workflowData.nodeGroups.every(isWorkflowGroup)))) {
|
|
371
|
+
throw new errors_1.BadRequestError('Execution workflow snapshot is invalid');
|
|
372
|
+
}
|
|
373
|
+
return {
|
|
374
|
+
id: workflowData.id,
|
|
375
|
+
name: workflowData.name,
|
|
376
|
+
nodes: workflowData.nodes,
|
|
377
|
+
connections: workflowData.connections,
|
|
378
|
+
settings: workflowData.settings,
|
|
379
|
+
nodeGroups: workflowData.nodeGroups,
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
assertEnvelopeConsistency(envelope) {
|
|
383
|
+
const snapshot = this.toHistoricalSnapshot(envelope.execution.workflowData);
|
|
384
|
+
if (snapshot.id !== envelope.source.workflowId) {
|
|
385
|
+
throw new errors_1.BadRequestError('Portable execution workflow identities do not match');
|
|
386
|
+
}
|
|
387
|
+
this.parseDate(envelope.source.createdAt, 'source.createdAt');
|
|
388
|
+
}
|
|
389
|
+
parseDate(value, path) {
|
|
390
|
+
const date = new Date(value);
|
|
391
|
+
if (!Number.isFinite(date.getTime()))
|
|
392
|
+
throw new errors_1.BadRequestError(`${path} must be a valid date`);
|
|
393
|
+
return date;
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
exports.FailedExecutionPortabilityService = FailedExecutionPortabilityService;
|
|
397
|
+
exports.FailedExecutionPortabilityService = FailedExecutionPortabilityService = __decorate([
|
|
398
|
+
(0, di_1.Service)(),
|
|
399
|
+
__metadata("design:paramtypes", [execution_persistence_1.ExecutionPersistence, active_executions_1.ActiveExecutions, workflow_finder_service_1.WorkflowFinderService, db_1.SharedWorkflowRepository, backend_common_1.Logger])
|
|
400
|
+
], FailedExecutionPortabilityService);
|
|
401
|
+
//# sourceMappingURL=failed-execution-portability.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failed-execution-portability.service.js","sourceRoot":"","sources":["../../../../src/modules/instance-ai/eval/failed-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,KAAK;YACzB,WAAW,EAAE,YAAY,CAAC,WAAW;YACrC,QAAQ,EAAE,YAAY,CAAC,QAAQ;YAC/B,UAAU,EAAE,YAAY,CAAC,UAAU;SACnC,CAAC;IACH,CAAC;IAEO,yBAAyB,CAAC,QAA+C;QAChF,MAAM,QAAQ,GAAG,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC5E,IAAI,QAAQ,CAAC,EAAE,KAAK,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;YAChD,MAAM,IAAI,wBAAe,CAAC,qDAAqD,CAAC,CAAC;QAClF,CAAC;QACD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAC;IAC/D,CAAC;IAEO,SAAS,CAAC,KAAa,EAAE,IAAY;QAC5C,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAAE,MAAM,IAAI,wBAAe,CAAC,GAAG,IAAI,uBAAuB,CAAC,CAAC;QAChG,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;;4CA/XY,iCAAiC;IAD7C,IAAA,YAAO,GAAE;qCAG+B,4CAAoB,EACxB,oCAAgB,EACX,+CAAqB,EAClB,6BAAwB,EAC1C,uBAAM;GANpB,iCAAiC,CA+X7C"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.normalizeFormTriggerContent = normalizeFormTriggerContent;
|
|
4
|
+
const is_record_1 = require("@n8n/utils/is-record");
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
const WEBHOOK_ENVELOPE_KEYS = new Set([
|
|
7
|
+
'headers',
|
|
8
|
+
'query',
|
|
9
|
+
'params',
|
|
10
|
+
'body',
|
|
11
|
+
'webhookUrl',
|
|
12
|
+
'executionMode',
|
|
13
|
+
'binary',
|
|
14
|
+
]);
|
|
15
|
+
const FORM_OUTPUT_KEYS = new Set([
|
|
16
|
+
'submittedAt',
|
|
17
|
+
'formMode',
|
|
18
|
+
'formQueryParameters',
|
|
19
|
+
'headers',
|
|
20
|
+
'user',
|
|
21
|
+
'binary',
|
|
22
|
+
]);
|
|
23
|
+
function nonEmpty(value) {
|
|
24
|
+
return typeof value === 'string' && value.length > 0 ? value : undefined;
|
|
25
|
+
}
|
|
26
|
+
function normalizeKey(key) {
|
|
27
|
+
return key.toLowerCase().replace(/[\s\p{P}\p{S}]+/gu, '');
|
|
28
|
+
}
|
|
29
|
+
function declaredFields(node) {
|
|
30
|
+
const formFields = node.parameters?.formFields;
|
|
31
|
+
const values = (0, is_record_1.isRecord)(formFields) ? formFields.values : undefined;
|
|
32
|
+
if (!Array.isArray(values))
|
|
33
|
+
return [];
|
|
34
|
+
const fields = [];
|
|
35
|
+
for (const field of values) {
|
|
36
|
+
if (!(0, is_record_1.isRecord)(field) || field.fieldType === 'html')
|
|
37
|
+
continue;
|
|
38
|
+
const label = nonEmpty(field.fieldLabel);
|
|
39
|
+
const name = nonEmpty(field.fieldName);
|
|
40
|
+
const key = node.typeVersion >= 2.4 && name ? name : (label ?? name);
|
|
41
|
+
if (!key)
|
|
42
|
+
continue;
|
|
43
|
+
fields.push({ key, spellings: [label, name].filter((s) => s !== undefined) });
|
|
44
|
+
}
|
|
45
|
+
return fields;
|
|
46
|
+
}
|
|
47
|
+
function unwrapWebhookEnvelope(node, content, fields) {
|
|
48
|
+
const { body, headers, query, binary } = content;
|
|
49
|
+
if (!(0, is_record_1.isRecord)(body) || fields.some((field) => field.key === 'body'))
|
|
50
|
+
return content;
|
|
51
|
+
const isEnvelopeKey = (key) => WEBHOOK_ENVELOPE_KEYS.has(key) || FORM_OUTPUT_KEYS.has(key);
|
|
52
|
+
if (!Object.keys(content).every(isEnvelopeKey))
|
|
53
|
+
return content;
|
|
54
|
+
const flat = { ...body };
|
|
55
|
+
for (const key of FORM_OUTPUT_KEYS) {
|
|
56
|
+
if (WEBHOOK_ENVELOPE_KEYS.has(key) || content[key] === undefined)
|
|
57
|
+
continue;
|
|
58
|
+
if (flat[key] === undefined)
|
|
59
|
+
flat[key] = content[key];
|
|
60
|
+
}
|
|
61
|
+
const options = node.parameters?.options;
|
|
62
|
+
if ((0, is_record_1.isRecord)(options) && options.showHeaders === true && (0, is_record_1.isRecord)(headers)) {
|
|
63
|
+
flat.headers = headers;
|
|
64
|
+
}
|
|
65
|
+
if ((0, is_record_1.isRecord)(query) && Object.keys(query).length > 0 && flat.formQueryParameters === undefined) {
|
|
66
|
+
flat.formQueryParameters = query;
|
|
67
|
+
}
|
|
68
|
+
if (binary !== undefined && flat.binary === undefined)
|
|
69
|
+
flat.binary = binary;
|
|
70
|
+
return flat;
|
|
71
|
+
}
|
|
72
|
+
function rekeyToDeclaredFields(content, fields) {
|
|
73
|
+
const emittedKeys = new Set(fields.map((field) => field.key));
|
|
74
|
+
const renames = new Map();
|
|
75
|
+
const claims = new Map();
|
|
76
|
+
for (const key of Object.keys(content)) {
|
|
77
|
+
if (emittedKeys.has(key) || FORM_OUTPUT_KEYS.has(key))
|
|
78
|
+
continue;
|
|
79
|
+
const normalized = normalizeKey(key);
|
|
80
|
+
if (normalized === '')
|
|
81
|
+
continue;
|
|
82
|
+
const matches = fields.filter((field) => field.spellings.some((spelling) => normalizeKey(spelling) === normalized));
|
|
83
|
+
if (matches.length !== 1 || Object.hasOwn(content, matches[0].key))
|
|
84
|
+
continue;
|
|
85
|
+
renames.set(key, matches[0].key);
|
|
86
|
+
claims.set(matches[0].key, (claims.get(matches[0].key) ?? 0) + 1);
|
|
87
|
+
}
|
|
88
|
+
if (renames.size === 0)
|
|
89
|
+
return content;
|
|
90
|
+
const rekeyed = {};
|
|
91
|
+
for (const [key, value] of Object.entries(content)) {
|
|
92
|
+
const target = renames.get(key);
|
|
93
|
+
rekeyed[target !== undefined && claims.get(target) === 1 ? target : key] = value;
|
|
94
|
+
}
|
|
95
|
+
return rekeyed;
|
|
96
|
+
}
|
|
97
|
+
function addMissingFields(content, fields) {
|
|
98
|
+
const missing = fields.filter((field) => !Object.hasOwn(content, field.key));
|
|
99
|
+
if (missing.length === 0)
|
|
100
|
+
return content;
|
|
101
|
+
const filled = { ...content };
|
|
102
|
+
for (const field of missing)
|
|
103
|
+
filled[field.key] = null;
|
|
104
|
+
return filled;
|
|
105
|
+
}
|
|
106
|
+
function normalizeFormTriggerContent(node, content, now = new Date()) {
|
|
107
|
+
if (node.type !== n8n_workflow_1.FORM_TRIGGER_NODE_TYPE)
|
|
108
|
+
return content;
|
|
109
|
+
const fields = declaredFields(node);
|
|
110
|
+
const flat = addMissingFields(rekeyToDeclaredFields(unwrapWebhookEnvelope(node, content, fields), fields), fields);
|
|
111
|
+
return {
|
|
112
|
+
...flat,
|
|
113
|
+
submittedAt: flat.submittedAt ?? now.toISOString(),
|
|
114
|
+
formMode: flat.formMode ?? 'production',
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=form-trigger-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-trigger-content.js","sourceRoot":"","sources":["../../../../src/modules/instance-ai/eval/form-trigger-content.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAChD,+CAAkE;AAMlE,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC;IACrC,SAAS;IACT,OAAO;IACP,QAAQ;IACR,MAAM;IACN,YAAY;IACZ,eAAe;IACf,QAAQ;CACR,CAAC,CAAC;AAGH,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC;IAChC,aAAa;IACb,UAAU;IACV,qBAAqB;IACrB,SAAS;IACT,MAAM;IACN,QAAQ;CACR,CAAC,CAAC;AASH,SAAS,QAAQ,CAAC,KAAc;IAC/B,OAAO,OAAO,KA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AAW,EACX,OAAgC,EAChC,GAAG,GAAG,IAAI,IAAI,EAAE;IAEhB,IAAI,IAAI,CAAC,IAAI,KAAK,qCAAsB;QAAE,OAAO,OAAO,CAAC;IAEzD,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IACpC,MAAM,IAAI,GAAG,gBAAgB,CAC5B,qBAAqB,CAAC,qBAAqB,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,EAC3E,MAAM,CACN,CAAC;IACF,OAAO;QACN,GAAG,IAAI;QACP,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,GAAG,CAAC,WAAW,EAAE;QAClD,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,YAAY;KACvC,CAAC;AACH,CAAC"}
|
|
@@ -12,19 +12,19 @@ const zod_1 = require("zod");
|
|
|
12
12
|
const structured_output_conformance_1 = require("./structured-output-conformance");
|
|
13
13
|
const COMPLETION_MOCK_PROMPT = `You simulate ONE response from the LLM that powers an AI agent inside an n8n workflow under evaluation. The agent runs a tool-calling loop and calls you once per turn. Decide the agent's NEXT step and submit it via submit_agent_step.
|
|
14
14
|
|
|
15
|
-
This is a MOCK
|
|
15
|
+
This is a MOCK that exercises the workflow's wiring and data flow. Keep tool-call arguments MINIMAL and schema-valid. The final answer is different: downstream nodes send, parse, or store it, so it must be the deliverable the agent's instructions ask for (the newsletter, the article, the summary), in the format they ask for, built from the data in the conversation. Keep it compact — a short version of the real thing, never a long document — but never a placeholder such as "Done." or "OK".
|
|
16
16
|
|
|
17
17
|
You are given the conversation so far, whether any tool results have come back, and the tools the agent may call (each with its JSON input schema).
|
|
18
18
|
|
|
19
19
|
How to decide:
|
|
20
20
|
- If NO tool results are present yet and the agent's instructions describe gathering/processing steps, advance the loop: pick the SINGLE most appropriate NON-final tool and call it. Do not jump to the final answer on the first turn.
|
|
21
|
-
- Once tool results are present (or only a "final answer" / "format response" style tool remains sensible), finalize: if such a structured-output tool exists, call it; otherwise return
|
|
21
|
+
- Once tool results are present (or only a "final answer" / "format response" style tool remains sensible), finalize: if such a structured-output tool exists, call it; otherwise return the final answer the instructions ask for.
|
|
22
22
|
|
|
23
23
|
Rules:
|
|
24
24
|
- kind="tool_call": set toolName to one of the available tools and toolArguments to an object matching THAT tool's input schema EXACTLY (same keys, nesting, and types). Use the SMALLEST valid value for every field — a one-line string, a single-element array — never a long document.
|
|
25
|
-
- kind="final": set content to a
|
|
25
|
+
- kind="final": set content to a compact version of the deliverable the agent's instructions ask for, in the requested format (HTML, Markdown, JSON, plain text). Two structured-output cases override this:
|
|
26
26
|
- If a structured-output / "format final response" style tool is available, NEVER finalize with plain content — call that tool with schema-valid arguments instead.
|
|
27
|
-
- Only when NO such tool exists but the conversation carries structured-output format instructions (a JSON schema the reply must match):
|
|
27
|
+
- Only when NO such tool exists but the conversation carries structured-output format instructions (a JSON schema the reply must match): put the answer in structuredContent as a JSON object, not in content as a string. The object MUST satisfy THAT schema — every declared field present, exact key names, correct types (a numeric field gets a number like 42, never a descriptive string like "about 42" or "below the 42 threshold"). Do NOT add fields the schema does not declare, and do NOT wrap the object in an extra key unless the schema itself declares that wrapper (some parsers require a specific top-level key such as "__structured__output" — include it only when the schema shows it). Keep field VALUES short but real (a one-paragraph article body, not "Done.") — never drop declared fields.
|
|
28
28
|
- content is ONLY the assistant's answer (plain text, or the structured JSON). NEVER wrap it in a provider API envelope — no chat.completion/response object, no "choices"/"output"/"id"/"object" keys. The harness adds the wire envelope.
|
|
29
29
|
- Call exactly ONE tool per step. Never fabricate a whole multi-step result in a single turn.
|
|
30
30
|
- If the scenario, node hint, or data context states a specific value, reproduce it; otherwise keep values minimal.`;
|
|
@@ -43,7 +43,11 @@ const submitStepSchema = zod_1.z.object({
|
|
|
43
43
|
content: zod_1.z
|
|
44
44
|
.string()
|
|
45
45
|
.optional()
|
|
46
|
-
.describe('Required for kind="final": a
|
|
46
|
+
.describe('Required for kind="final": a compact version of the deliverable the agent\'s instructions ask for, never a placeholder.'),
|
|
47
|
+
structuredContent: zod_1.z
|
|
48
|
+
.record(zod_1.z.unknown())
|
|
49
|
+
.optional()
|
|
50
|
+
.describe('For kind="final" when the answer must be JSON: the JSON object itself, in place of content.'),
|
|
47
51
|
});
|
|
48
52
|
function asString(value) {
|
|
49
53
|
return typeof value === 'string' && value.length > 0 ? value : undefined;
|
|
@@ -193,6 +197,9 @@ function createLlmCompletionMockHandler(options) {
|
|
|
193
197
|
.input(submitStepSchema)
|
|
194
198
|
.handler(async (input) => {
|
|
195
199
|
if (input.toolName) {
|
|
200
|
+
if (!tools.some((tool) => tool.name === input.toolName)) {
|
|
201
|
+
return `Invalid: no tool named "${input.toolName}". Use one of the listed tools.`;
|
|
202
|
+
}
|
|
196
203
|
capture.kind = 'tool_call';
|
|
197
204
|
capture.toolName = input.toolName;
|
|
198
205
|
capture.toolArguments = input.toolArguments ?? {};
|
|
@@ -201,10 +208,16 @@ function createLlmCompletionMockHandler(options) {
|
|
|
201
208
|
if (input.kind === 'tool_call') {
|
|
202
209
|
return 'Invalid: kind="tool_call" requires toolName. Call submit_agent_step again.';
|
|
203
210
|
}
|
|
211
|
+
if (!input.structuredContent && !input.content) {
|
|
212
|
+
return 'Invalid: kind="final" requires content or structuredContent. Call submit_agent_step again.';
|
|
213
|
+
}
|
|
204
214
|
capture.kind = 'final';
|
|
205
|
-
capture.content = input.
|
|
215
|
+
capture.content = input.structuredContent
|
|
216
|
+
? JSON.stringify(input.structuredContent)
|
|
217
|
+
: (input.content ?? '');
|
|
206
218
|
return 'Accepted.';
|
|
207
219
|
})
|
|
220
|
+
.endsTurnWhen((output) => output === 'Accepted.')
|
|
208
221
|
.build());
|
|
209
222
|
const result = await agent.generate(userPrompt, {
|
|
210
223
|
abortSignal: AbortSignal.timeout(120_000),
|