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.
Files changed (1889) hide show
  1. package/README.md +1 -1
  2. package/dist/active-executions.d.ts +1 -0
  3. package/dist/active-executions.js +7 -3
  4. package/dist/active-executions.js.map +1 -1
  5. package/dist/active-workflow-manager.js +11 -12
  6. package/dist/active-workflow-manager.js.map +1 -1
  7. package/dist/build.tsbuildinfo +1 -1
  8. package/dist/chat/chat-execution-manager.js +1 -1
  9. package/dist/chat/chat-execution-manager.js.map +1 -1
  10. package/dist/commands/start.d.ts +2 -0
  11. package/dist/commands/start.js +23 -0
  12. package/dist/commands/start.js.map +1 -1
  13. package/dist/concurrency/concurrency-control.service.d.ts +3 -1
  14. package/dist/concurrency/concurrency-control.service.js +16 -5
  15. package/dist/concurrency/concurrency-control.service.js.map +1 -1
  16. package/dist/controllers/ai-preference.controller.d.ts +1 -1
  17. package/dist/controllers/ai-preference.controller.js +2 -2
  18. package/dist/controllers/ai-preference.controller.js.map +1 -1
  19. package/dist/controllers/folder.controller.d.ts +3 -2
  20. package/dist/controllers/folder.controller.js +21 -0
  21. package/dist/controllers/folder.controller.js.map +1 -1
  22. package/dist/controllers/public-api-rate-limit-settings.controller.d.ts +10 -0
  23. package/dist/controllers/public-api-rate-limit-settings.controller.js +50 -0
  24. package/dist/controllers/public-api-rate-limit-settings.controller.js.map +1 -0
  25. package/dist/controllers/users.controller.d.ts +3 -2
  26. package/dist/controllers/users.controller.js +6 -3
  27. package/dist/controllers/users.controller.js.map +1 -1
  28. package/dist/crash-journal.d.ts +2 -0
  29. package/dist/crash-journal.js +9 -5
  30. package/dist/crash-journal.js.map +1 -1
  31. package/dist/credentials/credential-data-merge.js +2 -2
  32. package/dist/credentials/credential-data-merge.js.map +1 -1
  33. package/dist/credentials/credential-field-mapping.js.map +1 -0
  34. package/dist/credentials/credentials.controller.d.ts +2 -1
  35. package/dist/credentials/credentials.controller.js +13 -0
  36. package/dist/credentials/credentials.controller.js.map +1 -1
  37. package/dist/credentials/credentials.service.d.ts +4 -0
  38. package/dist/credentials/credentials.service.ee.d.ts +3 -0
  39. package/dist/credentials/credentials.service.ee.js +28 -18
  40. package/dist/credentials/credentials.service.ee.js.map +1 -1
  41. package/dist/credentials/credentials.service.js +28 -27
  42. package/dist/credentials/credentials.service.js.map +1 -1
  43. package/dist/errors/response-errors/deprecated-nodes.error.d.ts +3 -7
  44. package/dist/errors/response-errors/deprecated-nodes.error.js.map +1 -1
  45. package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +4 -3
  46. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +15 -20
  47. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
  48. package/dist/eventbus/event-message-classes/index.d.ts +2 -2
  49. package/dist/eventbus/event-message-classes/index.js +3 -0
  50. package/dist/eventbus/event-message-classes/index.js.map +1 -1
  51. package/dist/events/maps/relay.event-map.d.ts +43 -3
  52. package/dist/events/relays/log-streaming.event-relay.d.ts +1 -0
  53. package/dist/events/relays/log-streaming.event-relay.js +32 -22
  54. package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
  55. package/dist/events/relays/telemetry.event-relay.d.ts +4 -0
  56. package/dist/events/relays/telemetry.event-relay.js +40 -0
  57. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  58. package/dist/execution-lifecycle/execute-error-workflow.js +2 -1
  59. package/dist/execution-lifecycle/execute-error-workflow.js.map +1 -1
  60. package/dist/execution-lifecycle/execution-lifecycle-hooks.js +36 -4
  61. package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
  62. package/dist/execution-lifecycle/save-execution-progress.d.ts +1 -1
  63. package/dist/execution-lifecycle/save-execution-progress.js +4 -2
  64. package/dist/execution-lifecycle/save-execution-progress.js.map +1 -1
  65. package/dist/executions/engine-v2-execution-reader.service.d.ts +4 -0
  66. package/dist/executions/engine-v2-execution-reader.service.js +23 -4
  67. package/dist/executions/engine-v2-execution-reader.service.js.map +1 -1
  68. package/dist/executions/execution-persistence.d.ts +3 -1
  69. package/dist/executions/execution-persistence.js +50 -8
  70. package/dist/executions/execution-persistence.js.map +1 -1
  71. package/dist/executions/execution-recovery.service.d.ts +2 -2
  72. package/dist/executions/execution-recovery.service.js.map +1 -1
  73. package/dist/executions/execution-viewer-reader.d.ts +6 -0
  74. package/dist/executions/execution-viewer-reader.js +24 -0
  75. package/dist/executions/execution-viewer-reader.js.map +1 -0
  76. package/dist/executions/execution.service.d.ts +3 -2
  77. package/dist/executions/execution.service.js +25 -10
  78. package/dist/executions/execution.service.js.map +1 -1
  79. package/dist/executions/execution.types.d.ts +2 -1
  80. package/dist/executions/executions.controller.d.ts +1 -1
  81. package/dist/executions/executions.controller.js +11 -9
  82. package/dist/executions/executions.controller.js.map +1 -1
  83. package/dist/executions/pre-execution-checks/credential-refusal.d.ts +7 -0
  84. package/dist/executions/pre-execution-checks/credential-refusal.js +26 -0
  85. package/dist/executions/pre-execution-checks/credential-refusal.js.map +1 -0
  86. package/dist/executions/pre-execution-checks/credentials-permission-checker.js +2 -11
  87. package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
  88. package/dist/executions/pre-execution-checks/index.d.ts +1 -0
  89. package/dist/executions/pre-execution-checks/index.js +3 -1
  90. package/dist/executions/pre-execution-checks/index.js.map +1 -1
  91. package/dist/executions/pre-execution-checks/subworkflow-policy-checker.d.ts +2 -0
  92. package/dist/executions/pre-execution-checks/subworkflow-policy-checker.js +23 -11
  93. package/dist/executions/pre-execution-checks/subworkflow-policy-checker.js.map +1 -1
  94. package/dist/executions/sum-binary-data-bytes.d.ts +1 -0
  95. package/dist/executions/sum-binary-data-bytes.js +16 -0
  96. package/dist/executions/sum-binary-data-bytes.js.map +1 -1
  97. package/dist/instance-settings-loader/loaders/sso/sso.instance-settings-loader.js +1 -0
  98. package/dist/instance-settings-loader/loaders/sso/sso.instance-settings-loader.js.map +1 -1
  99. package/dist/interfaces.d.ts +3 -0
  100. package/dist/memory-guard/estimate-run-data-size.d.ts +36 -0
  101. package/dist/memory-guard/estimate-run-data-size.js +233 -0
  102. package/dist/memory-guard/estimate-run-data-size.js.map +1 -0
  103. package/dist/memory-guard/memory-guard-journal.d.ts +14 -0
  104. package/dist/memory-guard/memory-guard-journal.js +87 -0
  105. package/dist/memory-guard/memory-guard-journal.js.map +1 -0
  106. package/dist/memory-guard/memory-guard.constants.d.ts +13 -0
  107. package/dist/memory-guard/memory-guard.constants.js +17 -0
  108. package/dist/memory-guard/memory-guard.constants.js.map +1 -0
  109. package/dist/memory-guard/memory-guard.service.d.ts +73 -0
  110. package/dist/memory-guard/memory-guard.service.js +453 -0
  111. package/dist/memory-guard/memory-guard.service.js.map +1 -0
  112. package/dist/memory-guard/memory-guard.types.d.ts +11 -0
  113. package/dist/{modules/agents/agent-runtime-instrumentation.js → memory-guard/memory-guard.types.js} +1 -1
  114. package/dist/memory-guard/memory-guard.types.js.map +1 -0
  115. package/dist/memory-guard/memory-guard.utils.d.ts +13 -0
  116. package/dist/memory-guard/memory-guard.utils.js +74 -0
  117. package/dist/memory-guard/memory-guard.utils.js.map +1 -0
  118. package/dist/memory-guard/memory-stopped-executions.d.ts +18 -0
  119. package/dist/memory-guard/memory-stopped-executions.js +62 -0
  120. package/dist/memory-guard/memory-stopped-executions.js.map +1 -0
  121. package/dist/memory-guard/memory-usage.d.ts +7 -0
  122. package/dist/memory-guard/memory-usage.js +28 -0
  123. package/dist/memory-guard/memory-usage.js.map +1 -0
  124. package/dist/memory-guard/production-hold.d.ts +14 -0
  125. package/dist/memory-guard/production-hold.js +63 -0
  126. package/dist/memory-guard/production-hold.js.map +1 -0
  127. package/dist/memory-guard/run-data-tracker.d.ts +27 -0
  128. package/dist/memory-guard/run-data-tracker.js +242 -0
  129. package/dist/memory-guard/run-data-tracker.js.map +1 -0
  130. package/dist/metrics/prometheus/memory-guard-metrics.service.d.ts +13 -0
  131. package/dist/metrics/prometheus/memory-guard-metrics.service.js +91 -0
  132. package/dist/metrics/prometheus/memory-guard-metrics.service.js.map +1 -0
  133. package/dist/metrics/prometheus/prometheus.service.d.ts +2 -1
  134. package/dist/metrics/prometheus/prometheus.service.js +4 -2
  135. package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
  136. package/dist/modules/agent-evals/agent-eval-case-generation.service.d.ts +3 -3
  137. package/dist/modules/agent-evals/agent-eval-case-generation.service.js +16 -19
  138. package/dist/modules/agent-evals/agent-eval-case-generation.service.js.map +1 -1
  139. package/dist/modules/agent-evals/agent-eval-fix-suggestion.js +1 -1
  140. package/dist/modules/agent-evals/agent-eval-fix-suggestion.js.map +1 -1
  141. package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js +1 -1
  142. package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js.map +1 -1
  143. package/dist/modules/agent-evals/agent-eval-judge.js +1 -1
  144. package/dist/modules/agent-evals/agent-eval-judge.js.map +1 -1
  145. package/dist/modules/agents/adapters/agents-credential-provider.d.ts +5 -2
  146. package/dist/modules/agents/adapters/agents-credential-provider.js +5 -1
  147. package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
  148. package/dist/modules/agents/agent-chat-attachment.service.d.ts +5 -0
  149. package/dist/modules/agents/agent-chat-attachment.service.js +3 -0
  150. package/dist/modules/agents/agent-chat-attachment.service.js.map +1 -1
  151. package/dist/modules/agents/agent-chat-execution.service.d.ts +8 -5
  152. package/dist/modules/agents/agent-chat-execution.service.js +61 -49
  153. package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
  154. package/dist/modules/agents/agent-chat-relay.service.d.ts +3 -2
  155. package/dist/modules/agents/agent-chat-relay.service.js +23 -30
  156. package/dist/modules/agents/agent-chat-relay.service.js.map +1 -1
  157. package/dist/modules/agents/agent-chat.controller.d.ts +4 -4
  158. package/dist/modules/agents/agent-chat.controller.js +18 -50
  159. package/dist/modules/agents/agent-chat.controller.js.map +1 -1
  160. package/dist/modules/agents/agent-config-preparation.service.d.ts +350 -2
  161. package/dist/modules/agents/agent-config-preparation.service.js +264 -2
  162. package/dist/modules/agents/agent-config-preparation.service.js.map +1 -1
  163. package/dist/modules/agents/agent-config.service.d.ts +10 -8
  164. package/dist/modules/agents/agent-config.service.js +59 -131
  165. package/dist/modules/agents/agent-config.service.js.map +1 -1
  166. package/dist/modules/agents/agent-context.contracts.d.ts +87 -0
  167. package/dist/modules/agents/agent-context.contracts.js +3 -0
  168. package/dist/modules/agents/agent-context.contracts.js.map +1 -0
  169. package/dist/modules/agents/agent-context.service.d.ts +338 -0
  170. package/dist/modules/agents/{instance-ai-agent-context.adapter.js → agent-context.service.js} +53 -19
  171. package/dist/modules/agents/agent-context.service.js.map +1 -0
  172. package/dist/modules/agents/agent-conversation-state.service.d.ts +2 -1
  173. package/dist/modules/agents/agent-conversation-state.service.js +3 -3
  174. package/dist/modules/agents/agent-conversation-state.service.js.map +1 -1
  175. package/dist/modules/agents/agent-credential-provider.contracts.d.ts +5 -0
  176. package/dist/modules/agents/agent-credential-provider.contracts.js +3 -0
  177. package/dist/modules/agents/agent-credential-provider.contracts.js.map +1 -0
  178. package/dist/modules/agents/agent-custom-tools.service.d.ts +1 -0
  179. package/dist/modules/agents/agent-custom-tools.service.js +9 -8
  180. package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
  181. package/dist/modules/agents/agent-default-model-resolver.service.js +6 -5
  182. package/dist/modules/agents/agent-default-model-resolver.service.js.map +1 -1
  183. package/dist/modules/agents/agent-definition.service.d.ts +2 -2
  184. package/dist/modules/agents/agent-definition.service.js +3 -3
  185. package/dist/modules/agents/agent-definition.service.js.map +1 -1
  186. package/dist/modules/agents/agent-draft.contracts.d.ts +51 -0
  187. package/dist/modules/agents/agent-draft.contracts.js +3 -0
  188. package/dist/modules/agents/agent-draft.contracts.js.map +1 -0
  189. package/dist/modules/agents/agent-draft.service.d.ts +17 -0
  190. package/dist/modules/agents/agent-draft.service.js +98 -0
  191. package/dist/modules/agents/agent-draft.service.js.map +1 -0
  192. package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +3 -1
  193. package/dist/modules/agents/agent-execution-orchestrator.service.js +11 -3
  194. package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
  195. package/dist/modules/agents/agent-execution.service.d.ts +11 -4
  196. package/dist/modules/agents/agent-execution.service.js +43 -7
  197. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  198. package/dist/modules/agents/agent-formatted-turn.error.d.ts +6 -0
  199. package/dist/modules/agents/agent-formatted-turn.error.js +12 -0
  200. package/dist/modules/agents/agent-formatted-turn.error.js.map +1 -0
  201. package/dist/modules/agents/agent-integration-management.service.js +1 -1
  202. package/dist/modules/agents/agent-integration-management.service.js.map +1 -1
  203. package/dist/modules/agents/agent-integration-persistence.service.d.ts +4 -1
  204. package/dist/modules/agents/agent-integration-persistence.service.js +33 -21
  205. package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
  206. package/dist/modules/agents/agent-knowledge-snapshot.service.d.ts +19 -0
  207. package/dist/modules/agents/agent-knowledge-snapshot.service.js +84 -0
  208. package/dist/modules/agents/agent-knowledge-snapshot.service.js.map +1 -0
  209. package/dist/modules/agents/agent-knowledge-snapshot.task.d.ts +13 -0
  210. package/dist/modules/agents/agent-knowledge-snapshot.task.js +48 -0
  211. package/dist/modules/agents/agent-knowledge-snapshot.task.js.map +1 -0
  212. package/dist/modules/agents/agent-knowledge-storage.js +2 -2
  213. package/dist/modules/agents/agent-knowledge-storage.js.map +1 -1
  214. package/dist/modules/agents/agent-knowledge-telemetry.d.ts +3 -0
  215. package/dist/modules/agents/agent-knowledge-telemetry.js +28 -0
  216. package/dist/modules/agents/agent-knowledge-telemetry.js.map +1 -0
  217. package/dist/modules/agents/agent-knowledge-upload.error.d.ts +11 -0
  218. package/dist/modules/agents/agent-knowledge-upload.error.js +12 -0
  219. package/dist/modules/agents/agent-knowledge-upload.error.js.map +1 -0
  220. package/dist/modules/agents/agent-knowledge-usage-tracker.d.ts +33 -0
  221. package/dist/modules/agents/agent-knowledge-usage-tracker.js +107 -0
  222. package/dist/modules/agents/agent-knowledge-usage-tracker.js.map +1 -0
  223. package/dist/modules/agents/agent-knowledge.controller.d.ts +8 -4
  224. package/dist/modules/agents/agent-knowledge.controller.js +58 -10
  225. package/dist/modules/agents/agent-knowledge.controller.js.map +1 -1
  226. package/dist/modules/agents/agent-knowledge.service.d.ts +14 -3
  227. package/dist/modules/agents/agent-knowledge.service.js +45 -11
  228. package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
  229. package/dist/modules/agents/agent-memory-entries.service.d.ts +18 -0
  230. package/dist/modules/agents/agent-memory-entries.service.js +124 -0
  231. package/dist/modules/agents/agent-memory-entries.service.js.map +1 -0
  232. package/dist/modules/agents/agent-memory.controller.d.ts +19 -0
  233. package/dist/modules/agents/agent-memory.controller.js +68 -0
  234. package/dist/modules/agents/agent-memory.controller.js.map +1 -0
  235. package/dist/modules/agents/agent-message-queue-consumer.service.d.ts +6 -1
  236. package/dist/modules/agents/agent-message-queue-consumer.service.js +78 -40
  237. package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
  238. package/dist/modules/agents/agent-message-queue.service.d.ts +4 -1
  239. package/dist/modules/agents/agent-message-queue.service.js +23 -16
  240. package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
  241. package/dist/modules/agents/agent-model-catalog.service.d.ts +1 -0
  242. package/dist/modules/agents/agent-model-catalog.service.js +22 -7
  243. package/dist/modules/agents/agent-model-catalog.service.js.map +1 -1
  244. package/dist/modules/agents/agent-modification-telemetry.service.d.ts +16 -401
  245. package/dist/modules/agents/agent-modification-telemetry.service.js +121 -32
  246. package/dist/modules/agents/agent-modification-telemetry.service.js.map +1 -1
  247. package/dist/modules/agents/agent-policy.service.d.ts +4 -1
  248. package/dist/modules/agents/agent-policy.service.js +14 -1
  249. package/dist/modules/agents/agent-policy.service.js.map +1 -1
  250. package/dist/modules/agents/agent-publish.service.d.ts +4 -1
  251. package/dist/modules/agents/agent-publish.service.js +32 -14
  252. package/dist/modules/agents/agent-publish.service.js.map +1 -1
  253. package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
  254. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +14 -3
  255. package/dist/modules/agents/agent-runtime-reconstruction.service.js +113 -31
  256. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
  257. package/dist/modules/agents/agent-sandbox-runtime.service.d.ts +1 -3
  258. package/dist/modules/agents/agent-sandbox-runtime.service.js +8 -32
  259. package/dist/modules/agents/agent-sandbox-runtime.service.js.map +1 -1
  260. package/dist/modules/agents/agent-sandbox.controller.d.ts +3 -3
  261. package/dist/modules/agents/agent-sandbox.controller.js +5 -5
  262. package/dist/modules/agents/agent-sandbox.controller.js.map +1 -1
  263. package/dist/modules/agents/agent-save-completion.service.d.ts +8 -1
  264. package/dist/modules/agents/agent-save-completion.service.js +28 -0
  265. package/dist/modules/agents/agent-save-completion.service.js.map +1 -1
  266. package/dist/modules/agents/agent-session-langsmith-export.service.js +27 -0
  267. package/dist/modules/agents/agent-session-langsmith-export.service.js.map +1 -1
  268. package/dist/modules/agents/agent-session-read.d.ts +3 -0
  269. package/dist/modules/agents/agent-session-read.js +29 -0
  270. package/dist/modules/agents/agent-session-read.js.map +1 -0
  271. package/dist/modules/agents/agent-setup-completion.service.d.ts +2 -2
  272. package/dist/modules/agents/agent-setup-completion.service.js +8 -2
  273. package/dist/modules/agents/agent-setup-completion.service.js.map +1 -1
  274. package/dist/modules/agents/agent-skill-refs.service.d.ts +23 -29
  275. package/dist/modules/agents/agent-skill-refs.service.js +61 -123
  276. package/dist/modules/agents/agent-skill-refs.service.js.map +1 -1
  277. package/dist/modules/agents/agent-skill-usage.service.d.ts +40 -0
  278. package/dist/modules/agents/agent-skill-usage.service.js +137 -0
  279. package/dist/modules/agents/agent-skill-usage.service.js.map +1 -0
  280. package/dist/modules/agents/agent-skills.service.d.ts +6 -4
  281. package/dist/modules/agents/agent-skills.service.js +30 -70
  282. package/dist/modules/agents/agent-skills.service.js.map +1 -1
  283. package/dist/modules/agents/agent-sse-stream.d.ts +2 -1
  284. package/dist/modules/agents/agent-sse-stream.js +24 -4
  285. package/dist/modules/agents/agent-sse-stream.js.map +1 -1
  286. package/dist/modules/agents/agent-task.service.d.ts +8 -0
  287. package/dist/modules/agents/agent-task.service.js +22 -14
  288. package/dist/modules/agents/agent-task.service.js.map +1 -1
  289. package/dist/modules/agents/agent-telemetry.d.ts +3 -0
  290. package/dist/modules/agents/agent-telemetry.js +24 -1
  291. package/dist/modules/agents/agent-telemetry.js.map +1 -1
  292. package/dist/modules/agents/agent-test-run.service.d.ts +1 -0
  293. package/dist/modules/agents/agent-test-run.service.js +9 -0
  294. package/dist/modules/agents/agent-test-run.service.js.map +1 -1
  295. package/dist/modules/agents/agent-threads.controller.d.ts +4 -1
  296. package/dist/modules/agents/agent-threads.controller.js +8 -3
  297. package/dist/modules/agents/agent-threads.controller.js.map +1 -1
  298. package/dist/modules/agents/agent-turn-execution.service.d.ts +13 -2
  299. package/dist/modules/agents/agent-turn-execution.service.js +123 -31
  300. package/dist/modules/agents/agent-turn-execution.service.js.map +1 -1
  301. package/dist/modules/agents/agent-upload.middleware.d.ts +2 -0
  302. package/dist/modules/agents/agent-upload.middleware.js +13 -2
  303. package/dist/modules/agents/agent-upload.middleware.js.map +1 -1
  304. package/dist/modules/agents/agent-validation.service.d.ts +5 -2
  305. package/dist/modules/agents/agent-validation.service.js +78 -14
  306. package/dist/modules/agents/agent-validation.service.js.map +1 -1
  307. package/dist/modules/agents/agent-vector-stores.controller.d.ts +5 -3
  308. package/dist/modules/agents/agent-vector-stores.controller.js +9 -5
  309. package/dist/modules/agents/agent-vector-stores.controller.js.map +1 -1
  310. package/dist/modules/agents/agent-workflow-execution.service.d.ts +1 -1
  311. package/dist/modules/agents/agent-workflow-execution.service.js +4 -2
  312. package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
  313. package/dist/modules/agents/agents-config.controller.d.ts +1 -1
  314. package/dist/modules/agents/agents-settings.service.d.ts +5 -1
  315. package/dist/modules/agents/agents-settings.service.js +13 -3
  316. package/dist/modules/agents/agents-settings.service.js.map +1 -1
  317. package/dist/modules/agents/agents-tools.service.d.ts +2 -6
  318. package/dist/modules/agents/agents-tools.service.js +2 -120
  319. package/dist/modules/agents/agents-tools.service.js.map +1 -1
  320. package/dist/modules/agents/agents.controller.d.ts +26 -3
  321. package/dist/modules/agents/agents.controller.js +10 -4
  322. package/dist/modules/agents/agents.controller.js.map +1 -1
  323. package/dist/modules/agents/agents.module.d.ts +3 -4
  324. package/dist/modules/agents/agents.module.js +18 -20
  325. package/dist/modules/agents/agents.module.js.map +1 -1
  326. package/dist/modules/agents/agents.service.d.ts +37 -8
  327. package/dist/modules/agents/agents.service.js +164 -30
  328. package/dist/modules/agents/agents.service.js.map +1 -1
  329. package/dist/modules/agents/azure-foundry-deployments.service.d.ts +28 -0
  330. package/dist/modules/agents/azure-foundry-deployments.service.js +107 -0
  331. package/dist/modules/agents/azure-foundry-deployments.service.js.map +1 -0
  332. package/dist/modules/agents/background/agent-background-job.service.d.ts +8 -7
  333. package/dist/modules/agents/background/agent-background-job.service.js +26 -9
  334. package/dist/modules/agents/background/agent-background-job.service.js.map +1 -1
  335. package/dist/modules/agents/background/background-job-tools.js +2 -0
  336. package/dist/modules/agents/background/background-job-tools.js.map +1 -1
  337. package/dist/modules/agents/background/sub-agent-background-runner.d.ts +1 -0
  338. package/dist/modules/agents/background/sub-agent-background-runner.js +3 -0
  339. package/dist/modules/agents/background/sub-agent-background-runner.js.map +1 -1
  340. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +9 -22
  341. package/dist/modules/agents/builder/agents-builder-tools.service.js +87 -98
  342. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  343. package/dist/modules/agents/builder/agents-builder.service.d.ts +40 -0
  344. package/dist/modules/agents/builder/agents-builder.service.js +109 -0
  345. package/dist/modules/agents/builder/agents-builder.service.js.map +1 -0
  346. package/dist/modules/agents/builder/builder-model-live-lookup.service.d.ts +8 -1
  347. package/dist/modules/agents/builder/builder-model-live-lookup.service.js +52 -12
  348. package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
  349. package/dist/modules/agents/builder/builder-session.d.ts +21 -0
  350. package/dist/modules/agents/builder/builder-session.js +7 -0
  351. package/dist/modules/agents/builder/builder-session.js.map +1 -0
  352. package/dist/modules/agents/builder/builder-telemetry-session.d.ts +9 -0
  353. package/dist/modules/agents/builder/builder-telemetry-session.js +14 -0
  354. package/dist/modules/agents/builder/builder-telemetry-session.js.map +1 -0
  355. package/dist/modules/agents/builder/builder-tool-names.d.ts +0 -1
  356. package/dist/modules/agents/builder/builder-tool-names.js +0 -1
  357. package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
  358. package/dist/modules/agents/builder/interactive/configure-channel.tool.js +2 -2
  359. package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -1
  360. package/dist/modules/agents/builder/interactive/finish-setup.tool.js +3 -3
  361. package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -1
  362. package/dist/modules/agents/builder/interactive/index.d.ts +0 -1
  363. package/dist/modules/agents/builder/interactive/index.js +1 -4
  364. package/dist/modules/agents/builder/interactive/index.js.map +1 -1
  365. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +56 -28
  366. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
  367. package/dist/modules/agents/builder/interactive/setup-tool.types.d.ts +3 -3
  368. package/dist/modules/agents/builder/model-lookup.types.d.ts +1 -0
  369. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +19 -6
  370. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
  371. package/dist/modules/agents/builder/prompts/config-rules.prompt.js +6 -4
  372. package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
  373. package/dist/modules/agents/builder/skills/external-services.skill.js +32 -24
  374. package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -1
  375. package/dist/modules/agents/builder/skills/memory.skill.js +6 -8
  376. package/dist/modules/agents/builder/skills/memory.skill.js.map +1 -1
  377. package/dist/modules/agents/builder/skills/node-tools.skill.js +16 -16
  378. package/dist/modules/agents/builder/skills/node-tools.skill.js.map +1 -1
  379. package/dist/modules/agents/builder/skills/resource-locators.skill.js +26 -23
  380. package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
  381. package/dist/modules/agents/builder/skills/target-skills.skill.js +24 -9
  382. package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
  383. package/dist/modules/agents/builder/skills/target-tasks.skill.js +3 -3
  384. package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
  385. package/dist/modules/agents/builder/verify-mcp-server.tool.js +2 -2
  386. package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
  387. package/dist/modules/agents/entities/agent-background-job.entity.d.ts +8 -0
  388. package/dist/modules/agents/entities/agent-background-job.entity.js +29 -0
  389. package/dist/modules/agents/entities/agent-background-job.entity.js.map +1 -1
  390. package/dist/modules/agents/entities/agent-execution-thread.entity.d.ts +2 -0
  391. package/dist/modules/agents/entities/agent-execution-thread.entity.js +4 -0
  392. package/dist/modules/agents/entities/agent-execution-thread.entity.js.map +1 -1
  393. package/dist/modules/agents/entities/agent-execution.entity.d.ts +6 -0
  394. package/dist/modules/agents/entities/agent-execution.entity.js +46 -3
  395. package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
  396. package/dist/modules/agents/entities/agent-history.entity.js.map +1 -1
  397. package/dist/modules/agents/entities/agent-message.entity.d.ts +2 -1
  398. package/dist/modules/agents/entities/agent-message.entity.js.map +1 -1
  399. package/dist/modules/agents/entities/agent.entity.js.map +1 -1
  400. package/dist/modules/agents/{agent-runtime-instrumentation.d.ts → evaluation/agent-evaluation.contracts.d.ts} +26 -3
  401. package/dist/modules/agents/evaluation/agent-evaluation.contracts.js +3 -0
  402. package/dist/modules/agents/evaluation/agent-evaluation.contracts.js.map +1 -0
  403. package/dist/modules/agents/evaluation/agent-evaluation.service.d.ts +21 -0
  404. package/dist/modules/agents/evaluation/agent-evaluation.service.js +111 -0
  405. package/dist/modules/agents/evaluation/agent-evaluation.service.js.map +1 -0
  406. package/dist/modules/agents/evaluation/evaluation-config.d.ts +8 -0
  407. package/dist/modules/agents/evaluation/evaluation-config.js +81 -0
  408. package/dist/modules/agents/evaluation/evaluation-config.js.map +1 -0
  409. package/dist/modules/agents/execution-recorder.d.ts +21 -0
  410. package/dist/modules/agents/execution-recorder.js +77 -24
  411. package/dist/modules/agents/execution-recorder.js.map +1 -1
  412. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +1 -0
  413. package/dist/modules/agents/integrations/agent-chat-bridge.js +42 -4
  414. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  415. package/dist/modules/agents/integrations/agent-chat-integration.d.ts +22 -1
  416. package/dist/modules/agents/integrations/agent-chat-integration.js +13 -0
  417. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  418. package/dist/modules/agents/integrations/agent-chat-message-context.js +5 -0
  419. package/dist/modules/agents/integrations/agent-chat-message-context.js.map +1 -1
  420. package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +5 -1
  421. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +96 -25
  422. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
  423. package/dist/modules/agents/integrations/agent-credential-lookup.service.d.ts +2 -1
  424. package/dist/modules/agents/integrations/agent-credential-lookup.service.js +7 -3
  425. package/dist/modules/agents/integrations/agent-credential-lookup.service.js.map +1 -1
  426. package/dist/modules/agents/integrations/channel-rate-limit.js +2 -1
  427. package/dist/modules/agents/integrations/channel-rate-limit.js.map +1 -1
  428. package/dist/modules/agents/integrations/chat-integration.service.js +4 -1
  429. package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
  430. package/dist/modules/agents/integrations/episodic-scope-resolver.d.ts +4 -0
  431. package/dist/modules/agents/integrations/episodic-scope-resolver.js +24 -0
  432. package/dist/modules/agents/integrations/episodic-scope-resolver.js.map +1 -0
  433. package/dist/modules/agents/integrations/integration-context-query-executor.d.ts +3 -1
  434. package/dist/modules/agents/integrations/integration-context-query-executor.js +54 -45
  435. package/dist/modules/agents/integrations/integration-context-query-executor.js.map +1 -1
  436. package/dist/modules/agents/integrations/integration-error-codes.d.ts +2 -0
  437. package/dist/modules/agents/integrations/integration-error-codes.js +2 -0
  438. package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -1
  439. package/dist/modules/agents/integrations/integration-message-context.js +2 -0
  440. package/dist/modules/agents/integrations/integration-message-context.js.map +1 -1
  441. package/dist/modules/agents/integrations/integration-origin-support.d.ts +19 -0
  442. package/dist/modules/agents/integrations/integration-origin-support.js +32 -0
  443. package/dist/modules/agents/integrations/integration-origin-support.js.map +1 -0
  444. package/dist/modules/agents/integrations/integration-origin.d.ts +6 -0
  445. package/dist/modules/agents/integrations/integration-origin.js +54 -0
  446. package/dist/modules/agents/integrations/integration-origin.js.map +1 -0
  447. package/dist/modules/agents/integrations/integration-tool-definitions.js +3 -3
  448. package/dist/modules/agents/integrations/integration-tool-definitions.js.map +1 -1
  449. package/dist/modules/agents/integrations/integration-tool-execution.d.ts +1 -0
  450. package/dist/modules/agents/integrations/integration-tool-execution.js +5 -1
  451. package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
  452. package/dist/modules/agents/integrations/integration-tool-factory.js +2 -0
  453. package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
  454. package/dist/modules/agents/integrations/integration-tool-types.d.ts +3 -0
  455. package/dist/modules/agents/integrations/message-split.d.ts +2 -0
  456. package/dist/modules/agents/integrations/message-split.js +32 -0
  457. package/dist/modules/agents/integrations/message-split.js.map +1 -0
  458. package/dist/modules/agents/integrations/n8n-memory.d.ts +12 -2
  459. package/dist/modules/agents/integrations/n8n-memory.js +59 -94
  460. package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
  461. package/dist/modules/agents/integrations/platforms/discord/discord-gateway.js.map +1 -0
  462. package/dist/modules/agents/integrations/platforms/{discord-integration.d.ts → discord/discord-integration.d.ts} +13 -8
  463. package/dist/modules/agents/integrations/platforms/{discord-integration.js → discord/discord-integration.js} +20 -9
  464. package/dist/modules/agents/integrations/platforms/discord/discord-integration.js.map +1 -0
  465. package/dist/modules/agents/integrations/platforms/{discord-operations.js → discord/discord-operations.js} +1 -1
  466. package/dist/modules/agents/integrations/platforms/discord/discord-operations.js.map +1 -0
  467. package/dist/modules/agents/integrations/platforms/discord/discord-origin.d.ts +4 -0
  468. package/dist/modules/agents/integrations/platforms/discord/discord-origin.js +20 -0
  469. package/dist/modules/agents/integrations/platforms/discord/discord-origin.js.map +1 -0
  470. package/dist/modules/agents/integrations/platforms/linear/linear-integration.d.ts +33 -0
  471. package/dist/modules/agents/integrations/platforms/{linear-integration.js → linear/linear-integration.js} +21 -4
  472. package/dist/modules/agents/integrations/platforms/linear/linear-integration.js.map +1 -0
  473. package/dist/modules/agents/integrations/platforms/{linear-operations.d.ts → linear/linear-operations.d.ts} +2 -2
  474. package/dist/modules/agents/integrations/platforms/{linear-operations.js → linear/linear-operations.js} +2 -2
  475. package/dist/modules/agents/integrations/platforms/linear/linear-operations.js.map +1 -0
  476. package/dist/modules/agents/integrations/platforms/linear/linear-origin.d.ts +4 -0
  477. package/dist/modules/agents/integrations/platforms/linear/linear-origin.js +31 -0
  478. package/dist/modules/agents/integrations/platforms/linear/linear-origin.js.map +1 -0
  479. package/dist/modules/agents/integrations/platforms/{linear-tool-definitions.js → linear/linear-tool-definitions.js} +1 -1
  480. package/dist/modules/agents/integrations/platforms/linear/linear-tool-definitions.js.map +1 -0
  481. package/dist/modules/agents/integrations/platforms/n8n-chat/n8n-chat-flag.service.d.ts +7 -0
  482. package/dist/modules/agents/{skills/skills-hub-rollout.js → integrations/platforms/n8n-chat/n8n-chat-flag.service.js} +19 -19
  483. package/dist/modules/agents/integrations/platforms/n8n-chat/n8n-chat-flag.service.js.map +1 -0
  484. package/dist/modules/agents/integrations/platforms/{n8n-chat-integration.d.ts → n8n-chat/n8n-chat-integration.d.ts} +11 -4
  485. package/dist/modules/agents/integrations/platforms/{n8n-chat-integration.js → n8n-chat/n8n-chat-integration.js} +24 -5
  486. package/dist/modules/agents/integrations/platforms/n8n-chat/n8n-chat-integration.js.map +1 -0
  487. package/dist/modules/agents/integrations/platforms/slack/slack-adapter.d.ts +2 -0
  488. package/dist/modules/agents/integrations/platforms/slack/slack-adapter.js +17 -0
  489. package/dist/modules/agents/integrations/platforms/slack/slack-adapter.js.map +1 -0
  490. package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.d.ts +5 -0
  491. package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.js +64 -18
  492. package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.js.map +1 -1
  493. package/dist/modules/agents/integrations/platforms/slack/slack-integration.d.ts +13 -2
  494. package/dist/modules/agents/integrations/platforms/slack/slack-integration.js +46 -3
  495. package/dist/modules/agents/integrations/platforms/slack/slack-integration.js.map +1 -1
  496. package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.js +2 -2
  497. package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.js.map +1 -1
  498. package/dist/modules/agents/integrations/platforms/slack/slack-operations.d.ts +1 -0
  499. package/dist/modules/agents/integrations/platforms/slack/slack-operations.js +131 -53
  500. package/dist/modules/agents/integrations/platforms/slack/slack-operations.js.map +1 -1
  501. package/dist/modules/agents/integrations/platforms/slack/slack-origin.d.ts +4 -0
  502. package/dist/modules/agents/integrations/platforms/slack/slack-origin.js +38 -0
  503. package/dist/modules/agents/integrations/platforms/slack/slack-origin.js.map +1 -0
  504. package/dist/modules/agents/integrations/platforms/slack/slack-search-pagination.d.ts +33 -0
  505. package/dist/modules/agents/integrations/platforms/slack/slack-search-pagination.js +53 -0
  506. package/dist/modules/agents/integrations/platforms/slack/slack-search-pagination.js.map +1 -0
  507. package/dist/modules/agents/integrations/platforms/teams/assets/color.png +0 -0
  508. package/dist/modules/agents/integrations/platforms/teams/assets/outline.png +0 -0
  509. package/dist/modules/agents/integrations/platforms/teams/teams-activity.d.ts +1 -0
  510. package/dist/modules/agents/integrations/platforms/teams/teams-activity.js +10 -0
  511. package/dist/modules/agents/integrations/platforms/teams/teams-activity.js.map +1 -0
  512. package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.d.ts +1 -1
  513. package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js +6 -5
  514. package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js.map +1 -1
  515. package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js +1 -1
  516. package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js.map +1 -1
  517. package/dist/modules/agents/integrations/platforms/teams/teams-integration.d.ts +5 -1
  518. package/dist/modules/agents/integrations/platforms/teams/teams-integration.js +13 -8
  519. package/dist/modules/agents/integrations/platforms/teams/teams-integration.js.map +1 -1
  520. package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.d.ts +4 -2
  521. package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.js +26 -9
  522. package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.js.map +1 -1
  523. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.d.ts +1 -0
  524. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js +3 -3
  525. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js.map +1 -1
  526. package/dist/modules/agents/integrations/platforms/teams/teams-message-files.d.ts +1 -0
  527. package/dist/modules/agents/integrations/platforms/teams/teams-operations.d.ts +1 -0
  528. package/dist/modules/agents/integrations/platforms/teams/teams-operations.js +47 -16
  529. package/dist/modules/agents/integrations/platforms/teams/teams-operations.js.map +1 -1
  530. package/dist/modules/agents/integrations/platforms/teams/teams-origin.d.ts +2 -0
  531. package/dist/modules/agents/integrations/platforms/teams/teams-origin.js +13 -0
  532. package/dist/modules/agents/integrations/platforms/teams/teams-origin.js.map +1 -0
  533. package/dist/modules/agents/integrations/platforms/{telegram-bridge-behavior.d.ts → telegram/telegram-bridge-behavior.d.ts} +2 -2
  534. package/dist/modules/agents/integrations/platforms/{telegram-bridge-behavior.js → telegram/telegram-bridge-behavior.js} +1 -1
  535. package/dist/modules/agents/integrations/platforms/telegram/telegram-bridge-behavior.js.map +1 -0
  536. package/dist/modules/agents/integrations/platforms/{telegram-integration.d.ts → telegram/telegram-integration.d.ts} +8 -4
  537. package/dist/modules/agents/integrations/platforms/{telegram-integration.js → telegram/telegram-integration.js} +13 -5
  538. package/dist/modules/agents/integrations/platforms/telegram/telegram-integration.js.map +1 -0
  539. package/dist/modules/agents/integrations/platforms/telegram/telegram-origin.d.ts +2 -0
  540. package/dist/modules/agents/integrations/platforms/telegram/telegram-origin.js +12 -0
  541. package/dist/modules/agents/integrations/platforms/telegram/telegram-origin.js.map +1 -0
  542. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.d.ts +3 -0
  543. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.js +7 -0
  544. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.js.map +1 -1
  545. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-origin.d.ts +2 -0
  546. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-origin.js +12 -0
  547. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-origin.js.map +1 -0
  548. package/dist/modules/agents/integrations/single-connection.d.ts +3 -0
  549. package/dist/modules/agents/integrations/single-connection.js +19 -0
  550. package/dist/modules/agents/integrations/single-connection.js.map +1 -0
  551. package/dist/modules/agents/json-config/agent-document.d.ts +0 -1
  552. package/dist/modules/agents/json-config/agent-document.js +0 -5
  553. package/dist/modules/agents/json-config/agent-document.js.map +1 -1
  554. package/dist/modules/agents/json-config/from-json-config.d.ts +3 -1
  555. package/dist/modules/agents/json-config/from-json-config.js +39 -8
  556. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  557. package/dist/modules/agents/json-config/mcp-client-factory.d.ts +6 -3
  558. package/dist/modules/agents/json-config/mcp-client-factory.js +23 -2
  559. package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
  560. package/dist/modules/agents/json-config/model-config.d.ts +3 -5
  561. package/dist/modules/agents/json-config/model-config.js +30 -7
  562. package/dist/modules/agents/json-config/model-config.js.map +1 -1
  563. package/dist/modules/agents/llm-provider-defaults.d.ts +2 -1
  564. package/dist/modules/agents/llm-provider-defaults.js +7 -0
  565. package/dist/modules/agents/llm-provider-defaults.js.map +1 -1
  566. package/dist/modules/agents/register-skill-agents-provider.d.ts +1 -0
  567. package/dist/modules/agents/register-skill-agents-provider.js +10 -0
  568. package/dist/modules/agents/register-skill-agents-provider.js.map +1 -0
  569. package/dist/modules/agents/register-user-deletion-handler.d.ts +1 -0
  570. package/dist/modules/agents/register-user-deletion-handler.js +17 -0
  571. package/dist/modules/agents/register-user-deletion-handler.js.map +1 -0
  572. package/dist/modules/agents/repositories/agent-chat-attachment.repository.d.ts +5 -0
  573. package/dist/modules/agents/repositories/agent-chat-attachment.repository.js +3 -0
  574. package/dist/modules/agents/repositories/agent-chat-attachment.repository.js.map +1 -1
  575. package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +2 -0
  576. package/dist/modules/agents/repositories/agent-execution-thread.repository.js +22 -2
  577. package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
  578. package/dist/modules/agents/repositories/agent-execution.repository.d.ts +12 -1
  579. package/dist/modules/agents/repositories/agent-execution.repository.js +55 -0
  580. package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
  581. package/dist/modules/agents/repositories/agent-file.repository.d.ts +6 -0
  582. package/dist/modules/agents/repositories/agent-file.repository.js +24 -0
  583. package/dist/modules/agents/repositories/agent-file.repository.js.map +1 -1
  584. package/dist/modules/agents/repositories/agent-history.repository.d.ts +0 -1
  585. package/dist/modules/agents/repositories/agent-history.repository.js +0 -1
  586. package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
  587. package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.d.ts +3 -0
  588. package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.js +24 -0
  589. package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.js.map +1 -1
  590. package/dist/modules/agents/repositories/agent-memory-entry.repository.d.ts +46 -3
  591. package/dist/modules/agents/repositories/agent-memory-entry.repository.js +176 -4
  592. package/dist/modules/agents/repositories/agent-memory-entry.repository.js.map +1 -1
  593. package/dist/modules/agents/repositories/agent-message-queue.repository.d.ts +1 -0
  594. package/dist/modules/agents/repositories/agent-message.repository.d.ts +2 -1
  595. package/dist/modules/agents/repositories/agent-message.repository.js +11 -0
  596. package/dist/modules/agents/repositories/agent-message.repository.js.map +1 -1
  597. package/dist/modules/agents/repositories/agent-observation.repository.d.ts +8 -3
  598. package/dist/modules/agents/repositories/agent-observation.repository.js +59 -4
  599. package/dist/modules/agents/repositories/agent-observation.repository.js.map +1 -1
  600. package/dist/modules/agents/repositories/agent-skill.repository.d.ts +35 -0
  601. package/dist/modules/agents/repositories/agent-skill.repository.js +261 -0
  602. package/dist/modules/agents/repositories/agent-skill.repository.js.map +1 -0
  603. package/dist/modules/agents/repositories/agent-task.repository.d.ts +1 -0
  604. package/dist/modules/agents/repositories/agent-task.repository.js +7 -0
  605. package/dist/modules/agents/repositories/agent-task.repository.js.map +1 -1
  606. package/dist/modules/agents/repositories/agent-thread.repository.d.ts +1 -0
  607. package/dist/modules/agents/repositories/agent-thread.repository.js +7 -0
  608. package/dist/modules/agents/repositories/agent-thread.repository.js.map +1 -1
  609. package/dist/modules/agents/repositories/agent.repository.d.ts +11 -6
  610. package/dist/modules/agents/repositories/agent.repository.js +43 -43
  611. package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
  612. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +6 -0
  613. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
  614. package/dist/modules/agents/sub-agents/sub-agent-runner.d.ts +10 -3
  615. package/dist/modules/agents/sub-agents/sub-agent-runner.js +76 -3
  616. package/dist/modules/agents/sub-agents/sub-agent-runner.js.map +1 -1
  617. package/dist/modules/agents/system-agents/system-agent-access.d.ts +3 -0
  618. package/dist/modules/agents/system-agents/system-agent-access.js +10 -0
  619. package/dist/modules/agents/system-agents/system-agent-access.js.map +1 -0
  620. package/dist/modules/agents/system-agents/system-agent-chat.controller.d.ts +83 -0
  621. package/dist/modules/agents/system-agents/system-agent-chat.controller.js +313 -0
  622. package/dist/modules/agents/system-agents/system-agent-chat.controller.js.map +1 -0
  623. package/dist/modules/agents/system-agents/system-agent-execution.service.d.ts +141 -0
  624. package/dist/modules/agents/system-agents/system-agent-execution.service.js +786 -0
  625. package/dist/modules/agents/system-agents/system-agent-execution.service.js.map +1 -0
  626. package/dist/modules/agents/system-agents/system-agent-host-events.d.ts +21 -0
  627. package/dist/modules/agents/system-agents/system-agent-host-events.js +73 -0
  628. package/dist/modules/agents/system-agents/system-agent-host-events.js.map +1 -0
  629. package/dist/modules/agents/system-agents/system-agent-registration.service.d.ts +9 -0
  630. package/dist/modules/agents/system-agents/system-agent-registration.service.js +31 -0
  631. package/dist/modules/agents/system-agents/system-agent-registration.service.js.map +1 -0
  632. package/dist/modules/agents/system-agents/system-agent-registry.d.ts +7 -0
  633. package/dist/modules/agents/system-agents/system-agent-registry.js +33 -0
  634. package/dist/modules/agents/system-agents/system-agent-registry.js.map +1 -0
  635. package/dist/modules/agents/system-agents/system-agent-usage-relay.d.ts +15 -0
  636. package/dist/modules/agents/system-agents/system-agent-usage-relay.js +63 -0
  637. package/dist/modules/agents/system-agents/system-agent-usage-relay.js.map +1 -0
  638. package/dist/modules/agents/system-agents/system-agent.types.d.ts +102 -0
  639. package/dist/modules/agents/system-agents/system-agent.types.js +3 -0
  640. package/dist/modules/agents/system-agents/system-agent.types.js.map +1 -0
  641. package/dist/modules/agents/tools/knowledge/search-knowledge.tool.d.ts +3 -1
  642. package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js +29 -4
  643. package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js.map +1 -1
  644. package/dist/modules/agents/tools/node-tool-factory.d.ts +1 -1
  645. package/dist/modules/agents/tools/workflow-tool-factory.d.ts +1 -1
  646. package/dist/modules/agents/tools/workflow-tool-factory.js +3 -1
  647. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  648. package/dist/modules/agents/types/agent-queued-message.d.ts +6 -3
  649. package/dist/modules/agents/types/agent-queued-message.js +5 -0
  650. package/dist/modules/agents/types/agent-queued-message.js.map +1 -1
  651. package/dist/modules/agents/types/agent-task-stop.d.ts +23 -0
  652. package/dist/modules/agents/types/agent-task-stop.js +3 -0
  653. package/dist/modules/agents/types/agent-task-stop.js.map +1 -0
  654. package/dist/modules/agents/types/agent-turn-outcome.d.ts +10 -0
  655. package/dist/modules/agents/types/agent-turn-outcome.js +3 -0
  656. package/dist/modules/agents/types/agent-turn-outcome.js.map +1 -0
  657. package/dist/modules/agents/utils/agent-capabilities.d.ts +0 -1
  658. package/dist/modules/agents/utils/agent-capabilities.js +1 -9
  659. package/dist/modules/agents/utils/agent-capabilities.js.map +1 -1
  660. package/dist/modules/agents/utils/agent-config-hash.d.ts +2 -2
  661. package/dist/modules/agents/utils/agent-config-hash.js +3 -4
  662. package/dist/modules/agents/utils/agent-config-hash.js.map +1 -1
  663. package/dist/modules/agents/utils/agent-definition.d.ts +17 -1
  664. package/dist/modules/agents/utils/agent-definition.js +13 -0
  665. package/dist/modules/agents/utils/agent-definition.js.map +1 -1
  666. package/dist/modules/agents/utils/agent-draft.utils.d.ts +2 -1
  667. package/dist/modules/agents/utils/agent-draft.utils.js +2 -2
  668. package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
  669. package/dist/modules/agents/utils/agent-memory-scope.d.ts +0 -5
  670. package/dist/modules/agents/utils/agent-memory-scope.js +0 -11
  671. package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
  672. package/dist/modules/agents/utils/agent-thread-access.d.ts +6 -3
  673. package/dist/modules/agents/utils/agent-thread-access.js +32 -11
  674. package/dist/modules/agents/utils/agent-thread-access.js.map +1 -1
  675. package/dist/modules/agents/utils/episodic-scope-metadata.d.ts +2 -0
  676. package/dist/modules/agents/utils/episodic-scope-metadata.js +13 -0
  677. package/dist/modules/agents/utils/episodic-scope-metadata.js.map +1 -0
  678. package/dist/modules/agents/utils/execution-to-message-mapper.js +9 -0
  679. package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
  680. package/dist/modules/agents/utils/memory-entry-source.d.ts +15 -0
  681. package/dist/modules/agents/utils/memory-entry-source.js +53 -0
  682. package/dist/modules/agents/utils/memory-entry-source.js.map +1 -0
  683. package/dist/modules/agents/utils/memory-source-filter.d.ts +7 -0
  684. package/dist/modules/agents/utils/memory-source-filter.js +154 -0
  685. package/dist/modules/agents/utils/memory-source-filter.js.map +1 -0
  686. package/dist/modules/agents/utils/messages-envelope.d.ts +2 -0
  687. package/dist/modules/agents/utils/messages-envelope.js +15 -0
  688. package/dist/modules/agents/utils/messages-envelope.js.map +1 -1
  689. package/dist/modules/agents/utils/visit-agent-credential-references.d.ts +1 -0
  690. package/dist/modules/agents/utils/visit-agent-credential-references.js +8 -7
  691. package/dist/modules/agents/utils/visit-agent-credential-references.js.map +1 -1
  692. package/dist/modules/apps/sandbox-settings.d.ts +3 -0
  693. package/dist/modules/apps/sandbox-settings.js +41 -0
  694. package/dist/modules/apps/sandbox-settings.js.map +1 -0
  695. package/dist/modules/breaking-changes/breaking-changes.migration.service.js +1 -1
  696. package/dist/modules/breaking-changes/breaking-changes.migration.service.js.map +1 -1
  697. package/dist/modules/breaking-changes/migration-report-csv.js +10 -0
  698. package/dist/modules/breaking-changes/migration-report-csv.js.map +1 -1
  699. package/dist/modules/breaking-changes/migrations/node-removals/agent-tools-v1-to-v2.migration.d.ts +2 -0
  700. package/dist/modules/breaking-changes/migrations/node-removals/agent-tools-v1-to-v2.migration.js +29 -0
  701. package/dist/modules/breaking-changes/migrations/node-removals/agent-tools-v1-to-v2.migration.js.map +1 -0
  702. package/dist/modules/breaking-changes/migrations/node-removals/edit-image-v2.migration.d.ts +2 -0
  703. package/dist/modules/breaking-changes/migrations/node-removals/edit-image-v2.migration.js +20 -0
  704. package/dist/modules/breaking-changes/migrations/node-removals/edit-image-v2.migration.js.map +1 -0
  705. package/dist/modules/breaking-changes/migrations/node-removals/index.js +4 -0
  706. package/dist/modules/breaking-changes/migrations/node-removals/index.js.map +1 -1
  707. package/dist/modules/breaking-changes/query/migration-finding-query.service.js +4 -1
  708. package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
  709. package/dist/modules/breaking-changes/rules/index.d.ts +3 -0
  710. package/dist/modules/breaking-changes/rules/index.js +3 -0
  711. package/dist/modules/breaking-changes/rules/index.js.map +1 -1
  712. package/dist/modules/breaking-changes/rules/v3/compression-node-limits.rule.js +6 -6
  713. package/dist/modules/breaking-changes/rules/v3/compression-node-limits.rule.js.map +1 -1
  714. package/dist/modules/breaking-changes/rules/v3/edit-image-version.d.ts +17 -0
  715. package/dist/modules/breaking-changes/rules/v3/edit-image-version.js +101 -0
  716. package/dist/modules/breaking-changes/rules/v3/edit-image-version.js.map +1 -0
  717. package/dist/modules/breaking-changes/rules/v3/edit-image-version.rule.d.ts +10 -0
  718. package/dist/modules/breaking-changes/rules/v3/edit-image-version.rule.js +57 -0
  719. package/dist/modules/breaking-changes/rules/v3/edit-image-version.rule.js.map +1 -0
  720. package/dist/modules/breaking-changes/rules/v3/removed-nodes.rule.js +1 -0
  721. package/dist/modules/breaking-changes/rules/v3/removed-nodes.rule.js.map +1 -1
  722. package/dist/modules/breaking-changes/rules/v3/slack-credential-secret.d.ts +5 -0
  723. package/dist/modules/breaking-changes/rules/v3/slack-credential-secret.js +33 -0
  724. package/dist/modules/breaking-changes/rules/v3/slack-credential-secret.js.map +1 -0
  725. package/dist/modules/breaking-changes/rules/v3/slack-credential-signature-secret.rule.d.ts +13 -0
  726. package/dist/modules/breaking-changes/rules/v3/slack-credential-signature-secret.rule.js +54 -0
  727. package/dist/modules/breaking-changes/rules/v3/slack-credential-signature-secret.rule.js.map +1 -0
  728. package/dist/modules/breaking-changes/rules/v3/slack-trigger-signature-secret.rule.d.ts +13 -0
  729. package/dist/modules/breaking-changes/rules/v3/slack-trigger-signature-secret.rule.js +54 -0
  730. package/dist/modules/breaking-changes/rules/v3/slack-trigger-signature-secret.rule.js.map +1 -0
  731. package/dist/modules/breaking-changes/rules/v3/ssrf-default-blocked-ranges.rule.js +5 -5
  732. package/dist/modules/breaking-changes/rules/v3/ssrf-default-blocked-ranges.rule.js.map +1 -1
  733. package/dist/modules/breaking-changes/rules/v3/task-runner-task-timeout.rule.js +5 -5
  734. package/dist/modules/breaking-changes/rules/v3/task-runner-task-timeout.rule.js.map +1 -1
  735. package/dist/modules/chat-hub/chat-hub.controller.js +11 -12
  736. package/dist/modules/chat-hub/chat-hub.controller.js.map +1 -1
  737. package/dist/modules/community-packages/community-packages.controller.d.ts +17 -1
  738. package/dist/modules/community-packages/community-packages.controller.js +3 -1
  739. package/dist/modules/community-packages/community-packages.controller.js.map +1 -1
  740. package/dist/modules/community-packages/community-packages.lifecycle.service.d.ts +5 -2
  741. package/dist/modules/community-packages/community-packages.lifecycle.service.js +18 -2
  742. package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -1
  743. package/dist/modules/engine-v2/engine-data-plane-client.d.ts +2 -1
  744. package/dist/modules/engine-v2/engine-data-plane-client.js +16 -0
  745. package/dist/modules/engine-v2/engine-data-plane-client.js.map +1 -1
  746. package/dist/modules/external-secrets.ee/redaction.service.ee.js +2 -2
  747. package/dist/modules/external-secrets.ee/redaction.service.ee.js.map +1 -1
  748. package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.d.ts +8 -8
  749. package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js +8 -11
  750. package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js.map +1 -1
  751. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.d.ts +10 -10
  752. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js +10 -13
  753. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js.map +1 -1
  754. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js +1 -1
  755. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js.map +1 -1
  756. package/dist/modules/inbound-auth-core/public-api-oauth.strategy.d.ts +3 -2
  757. package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js +23 -10
  758. package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js.map +1 -1
  759. package/dist/modules/inbound-auth-core/resource-admission.d.ts +5 -3
  760. package/dist/modules/inbound-auth-core/resource-admission.js +6 -2
  761. package/dist/modules/inbound-auth-core/resource-admission.js.map +1 -1
  762. package/dist/modules/inbound-auth-core/trusted-source.gate.js +1 -1
  763. package/dist/modules/inbound-auth-core/trusted-source.gate.js.map +1 -1
  764. package/dist/modules/inbound-auth-core/trusted-source.store.js +15 -15
  765. package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
  766. package/dist/modules/inbox/inbox-source.registry.d.ts +4 -4
  767. package/dist/modules/inbox/inbox.service.js +5 -1
  768. package/dist/modules/inbox/inbox.service.js.map +1 -1
  769. package/dist/modules/instance-ai/agent-preview-handoff.d.ts +5 -2
  770. package/dist/modules/instance-ai/agent-preview-handoff.js +13 -0
  771. package/dist/modules/instance-ai/agent-preview-handoff.js.map +1 -1
  772. package/dist/modules/instance-ai/agents-access.d.ts +2 -0
  773. package/dist/modules/instance-ai/agents-access.js +12 -0
  774. package/dist/modules/instance-ai/agents-access.js.map +1 -1
  775. package/dist/modules/instance-ai/ai-preferences-telemetry.d.ts +11 -0
  776. package/dist/modules/instance-ai/ai-preferences-telemetry.js +21 -0
  777. package/dist/modules/instance-ai/ai-preferences-telemetry.js.map +1 -0
  778. package/dist/modules/instance-ai/browser/browser-use-availability.d.ts +6 -0
  779. package/dist/modules/instance-ai/browser/browser-use-availability.js +11 -0
  780. package/dist/modules/instance-ai/browser/browser-use-availability.js.map +1 -0
  781. package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.d.ts +0 -1
  782. package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.js +0 -4
  783. package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.js.map +1 -1
  784. package/dist/modules/instance-ai/eval/agent-execution.service.d.ts +8 -11
  785. package/dist/modules/instance-ai/eval/agent-execution.service.js +128 -224
  786. package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
  787. package/dist/modules/instance-ai/eval/data-table-rows.d.ts +25 -0
  788. package/dist/modules/instance-ai/eval/data-table-rows.js +155 -0
  789. package/dist/modules/instance-ai/eval/data-table-rows.js.map +1 -0
  790. package/dist/modules/instance-ai/eval/eval-timings.d.ts +1 -1
  791. package/dist/modules/instance-ai/eval/eval-timings.js +8 -1
  792. package/dist/modules/instance-ai/eval/eval-timings.js.map +1 -1
  793. package/dist/modules/instance-ai/eval/eval.controller.d.ts +78 -0
  794. package/dist/modules/instance-ai/eval/eval.controller.js +282 -0
  795. package/dist/modules/instance-ai/eval/eval.controller.js.map +1 -0
  796. package/dist/modules/instance-ai/eval/execution.service.d.ts +2 -3
  797. package/dist/modules/instance-ai/eval/execution.service.js +109 -91
  798. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  799. package/dist/modules/instance-ai/eval/failed-execution-portability.service.d.ts +37 -0
  800. package/dist/modules/instance-ai/eval/failed-execution-portability.service.js +401 -0
  801. package/dist/modules/instance-ai/eval/failed-execution-portability.service.js.map +1 -0
  802. package/dist/modules/instance-ai/eval/form-trigger-content.d.ts +2 -0
  803. package/dist/modules/instance-ai/eval/form-trigger-content.js +117 -0
  804. package/dist/modules/instance-ai/eval/form-trigger-content.js.map +1 -0
  805. package/dist/modules/instance-ai/eval/llm-completion-mock.js +19 -6
  806. package/dist/modules/instance-ai/eval/llm-completion-mock.js.map +1 -1
  807. package/dist/modules/instance-ai/eval/mock-handler.d.ts +10 -0
  808. package/dist/modules/instance-ai/eval/mock-handler.js +147 -11
  809. package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
  810. package/dist/modules/instance-ai/eval/node-run-mock.d.ts +19 -0
  811. package/dist/modules/instance-ai/eval/node-run-mock.js +163 -0
  812. package/dist/modules/instance-ai/eval/node-run-mock.js.map +1 -0
  813. package/dist/modules/instance-ai/eval/pin-data-generator.d.ts +1 -2
  814. package/dist/modules/instance-ai/eval/pin-data-generator.js +3 -3
  815. package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
  816. package/dist/modules/instance-ai/eval/provider-shapes.d.ts +1 -0
  817. package/dist/modules/instance-ai/eval/provider-shapes.js +16 -0
  818. package/dist/modules/instance-ai/eval/provider-shapes.js.map +1 -1
  819. package/dist/modules/instance-ai/eval/request-sanitizer.d.ts +1 -0
  820. package/dist/modules/instance-ai/eval/request-sanitizer.js +16 -0
  821. package/dist/modules/instance-ai/eval/request-sanitizer.js.map +1 -1
  822. package/dist/modules/instance-ai/eval/scoped-credential-provider.d.ts +2 -3
  823. package/dist/modules/instance-ai/eval/scoped-credential-provider.js.map +1 -1
  824. package/dist/modules/instance-ai/eval/thread-restore.service.d.ts +2 -2
  825. package/dist/modules/instance-ai/eval/thread-restore.service.js +22 -12
  826. package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
  827. package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +2 -3
  828. package/dist/modules/instance-ai/eval/workflow-analysis.js +7 -25
  829. package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
  830. package/dist/modules/instance-ai/event-bus/durable-event-log.d.ts +1 -13
  831. package/dist/modules/instance-ai/event-bus/durable-event-log.js +0 -4
  832. package/dist/modules/instance-ai/event-bus/durable-event-log.js.map +1 -1
  833. package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.d.ts +1 -1
  834. package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.js.map +1 -1
  835. package/dist/modules/instance-ai/extract-resolved-node-parameters.d.ts +2 -1
  836. package/dist/modules/instance-ai/extract-resolved-node-parameters.js +14 -9
  837. package/dist/modules/instance-ai/extract-resolved-node-parameters.js.map +1 -1
  838. package/dist/modules/{agents/builder/format-preview-context.d.ts → instance-ai/format-agent-session-context.d.ts} +2 -3
  839. package/dist/modules/{agents/builder/format-preview-context.js → instance-ai/format-agent-session-context.js} +7 -1
  840. package/dist/modules/instance-ai/format-agent-session-context.js.map +1 -0
  841. package/dist/modules/instance-ai/instance-ai-agent-context.adapter.d.ts +8 -0
  842. package/dist/modules/instance-ai/instance-ai-agent-context.adapter.js +40 -0
  843. package/dist/modules/instance-ai/instance-ai-agent-context.adapter.js.map +1 -0
  844. package/dist/modules/instance-ai/instance-ai-builder-delegate.adapter.d.ts +18 -0
  845. package/dist/modules/instance-ai/instance-ai-builder-delegate.adapter.js +77 -0
  846. package/dist/modules/instance-ai/instance-ai-builder-delegate.adapter.js.map +1 -0
  847. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +3 -1
  848. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +6 -3
  849. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js.map +1 -1
  850. package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +2 -2
  851. package/dist/modules/instance-ai/instance-ai-credit.service.js +6 -1
  852. package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
  853. package/dist/modules/instance-ai/instance-ai-hub-skills.d.ts +9 -0
  854. package/dist/modules/instance-ai/instance-ai-hub-skills.js +240 -0
  855. package/dist/modules/instance-ai/instance-ai-hub-skills.js.map +1 -0
  856. package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +1 -0
  857. package/dist/modules/instance-ai/instance-ai-memory.service.js +11 -1
  858. package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
  859. package/dist/modules/instance-ai/instance-ai-model.service.d.ts +4 -2
  860. package/dist/modules/instance-ai/instance-ai-model.service.js +7 -2
  861. package/dist/modules/instance-ai/instance-ai-model.service.js.map +1 -1
  862. package/dist/modules/instance-ai/instance-ai-pending-agent.service.d.ts +3 -15
  863. package/dist/modules/instance-ai/instance-ai-pending-agent.service.js +13 -33
  864. package/dist/modules/instance-ai/instance-ai-pending-agent.service.js.map +1 -1
  865. package/dist/modules/instance-ai/instance-ai-preference-card.service.d.ts +1 -1
  866. package/dist/modules/instance-ai/instance-ai-preference-card.service.js +2 -2
  867. package/dist/modules/instance-ai/instance-ai-preference-card.service.js.map +1 -1
  868. package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +3 -10
  869. package/dist/modules/instance-ai/instance-ai-settings.service.js +6 -40
  870. package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
  871. package/dist/modules/instance-ai/instance-ai-skill-display.d.ts +3 -0
  872. package/dist/modules/instance-ai/instance-ai-skill-display.js +38 -0
  873. package/dist/modules/instance-ai/instance-ai-skill-display.js.map +1 -0
  874. package/dist/modules/instance-ai/instance-ai-skills.adapter.d.ts +8 -0
  875. package/dist/modules/instance-ai/instance-ai-skills.adapter.js +72 -0
  876. package/dist/modules/instance-ai/instance-ai-skills.adapter.js.map +1 -0
  877. package/dist/modules/instance-ai/instance-ai-skills.service.d.ts +9 -4
  878. package/dist/modules/instance-ai/instance-ai-skills.service.js +22 -6
  879. package/dist/modules/instance-ai/instance-ai-skills.service.js.map +1 -1
  880. package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.d.ts +0 -1
  881. package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js +0 -1
  882. package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js.map +1 -1
  883. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +11 -7
  884. package/dist/modules/instance-ai/instance-ai.adapter.service.js +304 -124
  885. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  886. package/dist/modules/instance-ai/instance-ai.controller.d.ts +5 -117
  887. package/dist/modules/instance-ai/instance-ai.controller.js +36 -475
  888. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  889. package/dist/modules/instance-ai/instance-ai.module.d.ts +17 -3
  890. package/dist/modules/instance-ai/instance-ai.module.js +47 -13
  891. package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
  892. package/dist/modules/instance-ai/instance-ai.service.d.ts +18 -90
  893. package/dist/modules/instance-ai/instance-ai.service.js +273 -1644
  894. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  895. package/dist/modules/instance-ai/instance-context.service.d.ts +0 -1
  896. package/dist/modules/instance-ai/instance-context.service.js +9 -6
  897. package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
  898. package/dist/modules/instance-ai/internal-messages.d.ts +1 -0
  899. package/dist/modules/instance-ai/internal-messages.js +17 -0
  900. package/dist/modules/instance-ai/internal-messages.js.map +1 -1
  901. package/dist/modules/instance-ai/message-parser.js +47 -4
  902. package/dist/modules/instance-ai/message-parser.js.map +1 -1
  903. package/dist/modules/instance-ai/model-config-name.js +9 -7
  904. package/dist/modules/instance-ai/model-config-name.js.map +1 -1
  905. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +4 -1
  906. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +12 -6
  907. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
  908. package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.d.ts +8 -3
  909. package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.js +58 -4
  910. package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.js.map +1 -1
  911. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +8 -2
  912. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
  913. package/dist/modules/instance-ai/self-healing/candidate-workflow.d.ts +22 -0
  914. package/dist/modules/instance-ai/self-healing/candidate-workflow.js +127 -0
  915. package/dist/modules/instance-ai/self-healing/candidate-workflow.js.map +1 -0
  916. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-reviewer.entity.d.ts +9 -0
  917. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-reviewer.entity.js +41 -0
  918. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-reviewer.entity.js.map +1 -0
  919. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-workflow.entity.d.ts +11 -0
  920. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-workflow.entity.js +51 -0
  921. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration-workflow.entity.js.map +1 -0
  922. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.entity.d.ts +11 -0
  923. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.entity.js +54 -0
  924. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.entity.js.map +1 -0
  925. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.repository.d.ts +17 -0
  926. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.repository.js +195 -0
  927. package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.repository.js.map +1 -0
  928. package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.entity.d.ts +21 -0
  929. package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.entity.js +94 -0
  930. package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.entity.js.map +1 -0
  931. package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.repository.d.ts +21 -0
  932. package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.repository.js +77 -0
  933. package/dist/modules/instance-ai/self-healing/database/self-healing-investigation.repository.js.map +1 -0
  934. package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.d.ts +3 -0
  935. package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js +11 -0
  936. package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js.map +1 -1
  937. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.d.ts +8 -1
  938. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +25 -1
  939. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js.map +1 -1
  940. package/dist/modules/instance-ai/self-healing/database/self-healing-temporary-workflow.repository.d.ts +14 -0
  941. package/dist/modules/instance-ai/self-healing/database/self-healing-temporary-workflow.repository.js +92 -0
  942. package/dist/modules/instance-ai/self-healing/database/self-healing-temporary-workflow.repository.js.map +1 -0
  943. package/dist/modules/instance-ai/self-healing/self-healing-agent.service.d.ts +94 -0
  944. package/dist/modules/instance-ai/self-healing/self-healing-agent.service.js +429 -0
  945. package/dist/modules/instance-ai/self-healing/self-healing-agent.service.js.map +1 -0
  946. package/dist/modules/instance-ai/self-healing/self-healing-candidate.service.d.ts +143 -0
  947. package/dist/modules/instance-ai/self-healing/self-healing-candidate.service.js +212 -0
  948. package/dist/modules/instance-ai/self-healing/self-healing-candidate.service.js.map +1 -0
  949. package/dist/modules/instance-ai/self-healing/self-healing-configuration.service.d.ts +34 -0
  950. package/dist/modules/instance-ai/self-healing/self-healing-configuration.service.js +213 -0
  951. package/dist/modules/instance-ai/self-healing/self-healing-configuration.service.js.map +1 -0
  952. package/dist/modules/instance-ai/self-healing/self-healing-configurations.controller.d.ts +20 -0
  953. package/dist/modules/instance-ai/self-healing/self-healing-configurations.controller.js +109 -0
  954. package/dist/modules/instance-ai/self-healing/self-healing-configurations.controller.js.map +1 -0
  955. package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.d.ts +2 -1
  956. package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js +23 -0
  957. package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js.map +1 -1
  958. package/dist/modules/instance-ai/self-healing/self-healing-investigation.service.d.ts +55 -0
  959. package/dist/modules/instance-ai/self-healing/self-healing-investigation.service.js +255 -0
  960. package/dist/modules/instance-ai/self-healing/self-healing-investigation.service.js.map +1 -0
  961. package/dist/modules/instance-ai/self-healing/self-healing-reconciliation.task.d.ts +11 -0
  962. package/dist/modules/instance-ai/self-healing/self-healing-reconciliation.task.js +37 -0
  963. package/dist/modules/instance-ai/self-healing/self-healing-reconciliation.task.js.map +1 -0
  964. package/dist/modules/instance-ai/self-healing/self-healing-result.service.d.ts +24 -13
  965. package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +133 -68
  966. package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -1
  967. package/dist/modules/instance-ai/self-healing/self-healing-temporary-workflow.service.d.ts +29 -0
  968. package/dist/modules/instance-ai/self-healing/self-healing-temporary-workflow.service.js +118 -0
  969. package/dist/modules/instance-ai/self-healing/self-healing-temporary-workflow.service.js.map +1 -0
  970. package/dist/modules/instance-ai/self-healing/self-healing-trigger.service.d.ts +18 -0
  971. package/dist/modules/instance-ai/self-healing/self-healing-trigger.service.js +100 -0
  972. package/dist/modules/instance-ai/self-healing/self-healing-trigger.service.js.map +1 -0
  973. package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +2 -1
  974. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +3 -1
  975. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
  976. package/dist/modules/instance-ai/storage/typeorm-observation-log-store.d.ts +2 -1
  977. package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js +3 -0
  978. package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js.map +1 -1
  979. package/dist/modules/instance-ai/suspended-run-restorer.service.js +1 -0
  980. package/dist/modules/instance-ai/suspended-run-restorer.service.js.map +1 -1
  981. package/dist/modules/instance-ai/suspended-thread-persistence.service.d.ts +0 -1
  982. package/dist/modules/instance-ai/suspended-thread-persistence.service.js +0 -1
  983. package/dist/modules/instance-ai/suspended-thread-persistence.service.js.map +1 -1
  984. package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.d.ts +1 -1
  985. package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js +0 -1
  986. package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js.map +1 -1
  987. package/dist/modules/instance-ai/turn-setup/assistant-agent.factory.d.ts +51 -0
  988. package/dist/modules/instance-ai/turn-setup/assistant-agent.factory.js +226 -0
  989. package/dist/modules/instance-ai/turn-setup/assistant-agent.factory.js.map +1 -0
  990. package/dist/modules/instance-ai/turn-setup/assistant-credits.d.ts +10 -0
  991. package/dist/modules/instance-ai/turn-setup/assistant-credits.js +22 -0
  992. package/dist/modules/instance-ai/turn-setup/assistant-credits.js.map +1 -0
  993. package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.d.ts +84 -0
  994. package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.js +423 -0
  995. package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.js.map +1 -0
  996. package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.d.ts +70 -0
  997. package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.js +447 -0
  998. package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.js.map +1 -0
  999. package/dist/modules/instance-ai/turn-setup/assistant-turn-runtime.d.ts +36 -0
  1000. package/dist/modules/instance-ai/turn-setup/assistant-turn-runtime.js +3 -0
  1001. package/dist/modules/instance-ai/turn-setup/assistant-turn-runtime.js.map +1 -0
  1002. package/dist/modules/instance-ai/workflow-json.d.ts +6 -0
  1003. package/dist/modules/instance-ai/workflow-json.js +36 -0
  1004. package/dist/modules/instance-ai/workflow-json.js.map +1 -0
  1005. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.d.ts +1 -1
  1006. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js +15 -11
  1007. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js.map +1 -1
  1008. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.d.ts +8 -0
  1009. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js +23 -17
  1010. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js.map +1 -1
  1011. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.d.ts +1 -0
  1012. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js +14 -0
  1013. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js.map +1 -1
  1014. package/dist/modules/instance-ai/workflow-verification-obligation-service.d.ts +3 -13
  1015. package/dist/modules/instance-ai/workflow-verification-obligation-service.js +3 -39
  1016. package/dist/modules/instance-ai/workflow-verification-obligation-service.js.map +1 -1
  1017. package/dist/modules/instance-ai/workflow-verification-task-projector.d.ts +1 -4
  1018. package/dist/modules/instance-ai/workflow-verification-task-projector.js +3 -84
  1019. package/dist/modules/instance-ai/workflow-verification-task-projector.js.map +1 -1
  1020. package/dist/modules/instance-registry/instance-registry.service.d.ts +1 -0
  1021. package/dist/modules/instance-registry/instance-registry.service.js +27 -0
  1022. package/dist/modules/instance-registry/instance-registry.service.js.map +1 -1
  1023. package/dist/modules/knowledge/knowledge-availability.service.d.ts +10 -0
  1024. package/dist/modules/knowledge/knowledge-availability.service.js +39 -0
  1025. package/dist/modules/knowledge/knowledge-availability.service.js.map +1 -0
  1026. package/dist/modules/knowledge/knowledge-consumer-scope.d.ts +6 -0
  1027. package/dist/modules/knowledge/knowledge-consumer-scope.js +3 -0
  1028. package/dist/modules/knowledge/knowledge-consumer-scope.js.map +1 -0
  1029. package/dist/modules/knowledge/knowledge-retriever.d.ts +8 -0
  1030. package/dist/modules/knowledge/knowledge-retriever.js +3 -0
  1031. package/dist/modules/knowledge/knowledge-retriever.js.map +1 -0
  1032. package/dist/modules/knowledge/knowledge-sandbox-provider.d.ts +15 -0
  1033. package/dist/modules/knowledge/knowledge-sandbox-provider.js +3 -0
  1034. package/dist/modules/knowledge/knowledge-sandbox-provider.js.map +1 -0
  1035. package/dist/modules/knowledge/knowledge.module.d.ts +5 -0
  1036. package/dist/modules/knowledge/knowledge.module.js +22 -0
  1037. package/dist/modules/knowledge/knowledge.module.js.map +1 -0
  1038. package/dist/modules/knowledge/vector-stores/connection-test.service.d.ts +8 -0
  1039. package/dist/modules/{agents/agent-vector-stores.service.js → knowledge/vector-stores/connection-test.service.js} +11 -21
  1040. package/dist/modules/knowledge/vector-stores/connection-test.service.js.map +1 -0
  1041. package/dist/modules/{agents/json-config → knowledge/vector-stores}/embedding-credential.js +1 -1
  1042. package/dist/modules/knowledge/vector-stores/embedding-credential.js.map +1 -0
  1043. package/dist/modules/{agents/json-config/vector-store-factory.js → knowledge/vector-stores/factory.js} +1 -1
  1044. package/dist/modules/knowledge/vector-stores/factory.js.map +1 -0
  1045. package/dist/modules/ldap.ee/ldap.service.ee.d.ts +1 -3
  1046. package/dist/modules/ldap.ee/ldap.service.ee.js +36 -36
  1047. package/dist/modules/ldap.ee/ldap.service.ee.js.map +1 -1
  1048. package/dist/modules/mcp/mcp-api-key.service.d.ts +5 -1
  1049. package/dist/modules/mcp/mcp-api-key.service.js +13 -10
  1050. package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
  1051. package/dist/modules/mcp/mcp-protected-resource.js +2 -1
  1052. package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
  1053. package/dist/modules/mcp/mcp-scopes.js +2 -2
  1054. package/dist/modules/mcp/mcp-scopes.js.map +1 -1
  1055. package/dist/modules/mcp/mcp-server-middleware.service.d.ts +12 -6
  1056. package/dist/modules/mcp/mcp-server-middleware.service.js +107 -67
  1057. package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
  1058. package/dist/modules/mcp/mcp-tool-availability.d.ts +0 -1
  1059. package/dist/modules/mcp/mcp-tool-availability.js +0 -4
  1060. package/dist/modules/mcp/mcp-tool-availability.js.map +1 -1
  1061. package/dist/modules/mcp/mcp.constants.d.ts +1 -0
  1062. package/dist/modules/mcp/mcp.constants.js +2 -1
  1063. package/dist/modules/mcp/mcp.constants.js.map +1 -1
  1064. package/dist/modules/mcp/mcp.module.js.map +1 -1
  1065. package/dist/modules/mcp/mcp.service.d.ts +2 -2
  1066. package/dist/modules/mcp/mcp.service.js +9 -4
  1067. package/dist/modules/mcp/mcp.service.js.map +1 -1
  1068. package/dist/modules/mcp/tools/agents/agent-tools.service.js +6 -26
  1069. package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
  1070. package/dist/modules/mcp/tools/get-user-preferences.tool.d.ts +1 -1
  1071. package/dist/modules/mcp/tools/get-user-preferences.tool.js +3 -3
  1072. package/dist/modules/mcp/tools/get-user-preferences.tool.js.map +1 -1
  1073. package/dist/modules/mcp/tools/save-user-preference.tool.d.ts +1 -2
  1074. package/dist/modules/mcp/tools/save-user-preference.tool.js.map +1 -1
  1075. package/dist/modules/mcp/tools/skills/skill-extension.service.d.ts +27 -0
  1076. package/dist/modules/mcp/tools/skills/skill-extension.service.js +160 -0
  1077. package/dist/modules/mcp/tools/skills/skill-extension.service.js.map +1 -0
  1078. package/dist/modules/mcp/tools/skills/skill-tools.service.d.ts +5 -3
  1079. package/dist/modules/mcp/tools/skills/skill-tools.service.js +28 -19
  1080. package/dist/modules/mcp/tools/skills/skill-tools.service.js.map +1 -1
  1081. package/dist/modules/mcp/tools/undo-user-preference.tool.d.ts +1 -1
  1082. package/dist/modules/mcp/tools/update-user-preference.tool.d.ts +1 -2
  1083. package/dist/modules/mcp/tools/update-user-preference.tool.js.map +1 -1
  1084. package/dist/modules/mcp/tools/workflow-builder/install-community-node.tool.js +6 -0
  1085. package/dist/modules/mcp/tools/workflow-builder/install-community-node.tool.js.map +1 -1
  1086. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +1 -1
  1087. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +3 -3
  1088. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  1089. package/dist/modules/mcp-registry/mcp-auth-fetch.d.ts +2 -1
  1090. package/dist/modules/mcp-registry/mcp-auth-fetch.js +3 -3
  1091. package/dist/modules/mcp-registry/mcp-auth-fetch.js.map +1 -1
  1092. package/dist/modules/mcp-registry/mcp-connection-discovery.service.d.ts +4 -1
  1093. package/dist/modules/mcp-registry/mcp-connection-discovery.service.js +42 -2
  1094. package/dist/modules/mcp-registry/mcp-connection-discovery.service.js.map +1 -1
  1095. package/dist/modules/mcp-registry/mcp-registry-connection.d.ts +3 -1
  1096. package/dist/modules/mcp-registry/mcp-registry-connection.js +51 -3
  1097. package/dist/modules/mcp-registry/mcp-registry-connection.js.map +1 -1
  1098. package/dist/modules/mcp-registry/mcp-registry-node-loader.d.ts +1 -0
  1099. package/dist/modules/mcp-registry/mcp-registry-node-loader.js +6 -1
  1100. package/dist/modules/mcp-registry/mcp-registry-node-loader.js.map +1 -1
  1101. package/dist/modules/mcp-registry/mcp-registry-response.js +2 -0
  1102. package/dist/modules/mcp-registry/mcp-registry-response.js.map +1 -1
  1103. package/dist/modules/mcp-registry/node-description-transform.d.ts +1 -0
  1104. package/dist/modules/mcp-registry/node-description-transform.js +60 -2
  1105. package/dist/modules/mcp-registry/node-description-transform.js.map +1 -1
  1106. package/dist/modules/mcp-registry/registry/mcp-registry-ai-gateway.d.ts +3 -0
  1107. package/dist/modules/mcp-registry/registry/mcp-registry-ai-gateway.js +50 -0
  1108. package/dist/modules/mcp-registry/registry/mcp-registry-ai-gateway.js.map +1 -0
  1109. package/dist/modules/mcp-registry/registry/mcp-registry-api.client.js +4 -0
  1110. package/dist/modules/mcp-registry/registry/mcp-registry-api.client.js.map +1 -1
  1111. package/dist/modules/mcp-registry/registry/mcp-registry-capabilities.d.ts +3 -1
  1112. package/dist/modules/mcp-registry/registry/mcp-registry-capabilities.js +9 -2
  1113. package/dist/modules/mcp-registry/registry/mcp-registry-capabilities.js.map +1 -1
  1114. package/dist/modules/mcp-registry/registry/mcp-registry-search.d.ts +3 -1
  1115. package/dist/modules/mcp-registry/registry/mcp-registry-search.js +9 -2
  1116. package/dist/modules/mcp-registry/registry/mcp-registry-search.js.map +1 -1
  1117. package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +8 -1
  1118. package/dist/modules/mcp-registry/registry/mcp-registry.service.js +80 -12
  1119. package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
  1120. package/dist/modules/mcp-registry/registry/mcp-registry.types.d.ts +20 -1
  1121. package/dist/modules/mcp-registry/registry/mcp-registry.types.js +18 -3
  1122. package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -1
  1123. package/dist/modules/mcp-registry/registry/mock-servers.d.ts +87 -1
  1124. package/dist/modules/mcp-registry/registry/mock-servers.js +48 -1
  1125. package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
  1126. package/dist/modules/modules.manifest.js +7 -0
  1127. package/dist/modules/modules.manifest.js.map +1 -1
  1128. package/dist/modules/n8n-packages/engine/credential-save-policy.d.ts +3 -1
  1129. package/dist/modules/n8n-packages/engine/credential-save-policy.js +47 -0
  1130. package/dist/modules/n8n-packages/engine/credential-save-policy.js.map +1 -1
  1131. package/dist/modules/n8n-packages/engine/import-blocked.error.js +2 -1
  1132. package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
  1133. package/dist/modules/n8n-packages/engine/import-gates.d.ts +3 -2
  1134. package/dist/modules/n8n-packages/engine/import-gates.js +7 -0
  1135. package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
  1136. package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +11 -1
  1137. package/dist/modules/n8n-packages/engine/import-orchestrator.js +118 -13
  1138. package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
  1139. package/dist/modules/n8n-packages/engine/import-result.d.ts +12 -1
  1140. package/dist/modules/n8n-packages/engine/import-result.js +29 -4
  1141. package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
  1142. package/dist/modules/n8n-packages/engine/import-telemetry.js +6 -2
  1143. package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
  1144. package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +1 -3
  1145. package/dist/modules/n8n-packages/engine/n8n-package-parser.js +12 -22
  1146. package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
  1147. package/dist/modules/n8n-packages/engine/package-layout.d.ts +1 -2
  1148. package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
  1149. package/dist/modules/n8n-packages/engine/project-package-importer.js +32 -8
  1150. package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
  1151. package/dist/modules/n8n-packages/engine/workflow-package-importer.js +22 -21
  1152. package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
  1153. package/dist/modules/n8n-packages/entities/agent/agent-body-issues.d.ts +4 -0
  1154. package/dist/modules/n8n-packages/entities/agent/agent-body-issues.js +16 -0
  1155. package/dist/modules/n8n-packages/entities/agent/agent-body-issues.js.map +1 -0
  1156. package/dist/modules/n8n-packages/entities/agent/agent-import-bindings.d.ts +17 -0
  1157. package/dist/modules/n8n-packages/entities/agent/agent-import-bindings.js +275 -0
  1158. package/dist/modules/n8n-packages/entities/agent/agent-import-bindings.js.map +1 -0
  1159. package/dist/modules/n8n-packages/entities/agent/agent-import-match.service.d.ts +13 -0
  1160. package/dist/modules/n8n-packages/entities/agent/agent-import-match.service.js +111 -0
  1161. package/dist/modules/n8n-packages/entities/agent/agent-import-match.service.js.map +1 -0
  1162. package/dist/modules/n8n-packages/entities/agent/agent-import.types.d.ts +61 -0
  1163. package/dist/modules/n8n-packages/entities/agent/agent-import.types.js +14 -0
  1164. package/dist/modules/n8n-packages/entities/agent/agent-import.types.js.map +1 -1
  1165. package/dist/modules/n8n-packages/entities/agent/agent-importer.d.ts +25 -0
  1166. package/dist/modules/n8n-packages/entities/agent/agent-importer.js +223 -0
  1167. package/dist/modules/n8n-packages/entities/agent/agent-importer.js.map +1 -0
  1168. package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js +2 -2
  1169. package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js.map +1 -1
  1170. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.d.ts +4 -1
  1171. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js +12 -1
  1172. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js.map +1 -1
  1173. package/dist/modules/n8n-packages/entities/credential/credential-export-policy.d.ts +1 -1
  1174. package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js +3 -2
  1175. package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js.map +1 -1
  1176. package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +15 -5
  1177. package/dist/modules/n8n-packages/entities/credential/credential-importer.js +116 -11
  1178. package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
  1179. package/dist/modules/n8n-packages/entities/credential/credential-matcher.d.ts +2 -0
  1180. package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +31 -14
  1181. package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -1
  1182. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +1 -1
  1183. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
  1184. package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +1 -1
  1185. package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +2 -2
  1186. package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -1
  1187. package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +8 -2
  1188. package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
  1189. package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.d.ts +1 -0
  1190. package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js +1 -0
  1191. package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js.map +1 -1
  1192. package/dist/modules/n8n-packages/entities/data-table/data-table-compat.d.ts +1 -1
  1193. package/dist/modules/n8n-packages/entities/data-table/data-table-compat.js.map +1 -1
  1194. package/dist/modules/n8n-packages/entities/data-table/data-table-importer.d.ts +1 -1
  1195. package/dist/modules/n8n-packages/entities/data-table/data-table-importer.js.map +1 -1
  1196. package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.d.ts +1 -1
  1197. package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.js.map +1 -1
  1198. package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.d.ts +1 -1
  1199. package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js +2 -2
  1200. package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js.map +1 -1
  1201. package/dist/modules/n8n-packages/entities/data-table/data-table.types.d.ts +1 -1
  1202. package/dist/modules/n8n-packages/entities/folder/folder-import.types.d.ts +6 -2
  1203. package/dist/modules/n8n-packages/entities/folder/folder-importer.d.ts +3 -1
  1204. package/dist/modules/n8n-packages/entities/folder/folder-importer.js +44 -16
  1205. package/dist/modules/n8n-packages/entities/folder/folder-importer.js.map +1 -1
  1206. package/dist/modules/n8n-packages/entities/folder/folder-remover.d.ts +2 -0
  1207. package/dist/modules/n8n-packages/entities/folder/folder-remover.js +12 -2
  1208. package/dist/modules/n8n-packages/entities/folder/folder-remover.js.map +1 -1
  1209. package/dist/modules/n8n-packages/entities/folder/folder.serializer.d.ts +1 -1
  1210. package/dist/modules/n8n-packages/entities/folder/folder.serializer.js +2 -2
  1211. package/dist/modules/n8n-packages/entities/folder/folder.serializer.js.map +1 -1
  1212. package/dist/modules/n8n-packages/entities/import-conflict-policy.d.ts +6 -0
  1213. package/dist/modules/n8n-packages/entities/import-conflict-policy.js +12 -0
  1214. package/dist/modules/n8n-packages/entities/import-conflict-policy.js.map +1 -0
  1215. package/dist/modules/n8n-packages/entities/import-id-policy.d.ts +2 -0
  1216. package/dist/modules/n8n-packages/entities/import-id-policy.js +12 -0
  1217. package/dist/modules/n8n-packages/entities/import-id-policy.js.map +1 -0
  1218. package/dist/modules/n8n-packages/entities/match-source-ids.d.ts +6 -0
  1219. package/dist/modules/n8n-packages/entities/match-source-ids.js +32 -0
  1220. package/dist/modules/n8n-packages/entities/match-source-ids.js.map +1 -0
  1221. package/dist/modules/n8n-packages/entities/planned-placements.d.ts +6 -0
  1222. package/dist/modules/n8n-packages/entities/planned-placements.js +12 -0
  1223. package/dist/modules/n8n-packages/entities/planned-placements.js.map +1 -0
  1224. package/dist/modules/n8n-packages/entities/project/project-import.types.d.ts +1 -1
  1225. package/dist/modules/n8n-packages/entities/project/project.serializer.d.ts +1 -1
  1226. package/dist/modules/n8n-packages/entities/project/project.serializer.js +2 -2
  1227. package/dist/modules/n8n-packages/entities/project/project.serializer.js.map +1 -1
  1228. package/dist/modules/n8n-packages/entities/tag/tag-importer.d.ts +8 -1
  1229. package/dist/modules/n8n-packages/entities/tag/tag-importer.js +13 -5
  1230. package/dist/modules/n8n-packages/entities/tag/tag-importer.js.map +1 -1
  1231. package/dist/modules/n8n-packages/entities/tag/tag.exporter.d.ts +5 -0
  1232. package/dist/modules/n8n-packages/entities/tag/tag.exporter.js +6 -3
  1233. package/dist/modules/n8n-packages/entities/tag/tag.exporter.js.map +1 -1
  1234. package/dist/modules/n8n-packages/entities/variable/variable.exporter.js.map +1 -1
  1235. package/dist/modules/n8n-packages/entities/variable/variable.serializer.d.ts +1 -1
  1236. package/dist/modules/n8n-packages/entities/variable/variable.serializer.js +3 -3
  1237. package/dist/modules/n8n-packages/entities/variable/variable.serializer.js.map +1 -1
  1238. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.d.ts +2 -2
  1239. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js +8 -5
  1240. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js.map +1 -1
  1241. package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.d.ts +0 -6
  1242. package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js +3 -31
  1243. package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js.map +1 -1
  1244. package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.js +8 -28
  1245. package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.js.map +1 -1
  1246. package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +2 -6
  1247. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.d.ts +5 -1
  1248. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +16 -7
  1249. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
  1250. package/dist/modules/n8n-packages/entities/workflow/workflow-published-state.d.ts +4 -2
  1251. package/dist/modules/n8n-packages/entities/workflow/workflow-published-state.js.map +1 -1
  1252. package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.d.ts +1 -0
  1253. package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.js +8 -2
  1254. package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.js.map +1 -1
  1255. package/dist/modules/n8n-packages/entities/workflow/workflow-remover.js +13 -2
  1256. package/dist/modules/n8n-packages/entities/workflow/workflow-remover.js.map +1 -1
  1257. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
  1258. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +2 -2
  1259. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +17 -6
  1260. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
  1261. package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.d.ts +8 -4
  1262. package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js +28 -10
  1263. package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js.map +1 -1
  1264. package/dist/modules/n8n-packages/io/hashing-package-writer.d.ts +1 -0
  1265. package/dist/modules/n8n-packages/io/hashing-package-writer.js +8 -5
  1266. package/dist/modules/n8n-packages/io/hashing-package-writer.js.map +1 -1
  1267. package/dist/modules/n8n-packages/io/manifest-entry.d.ts +1 -2
  1268. package/dist/modules/n8n-packages/io/manifest-entry.js.map +1 -1
  1269. package/dist/modules/n8n-packages/n8n-packages.service.d.ts +2 -2
  1270. package/dist/modules/n8n-packages/n8n-packages.service.js +4 -3
  1271. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  1272. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +21 -4
  1273. package/dist/modules/n8n-packages/n8n-packages.types.js +5 -1
  1274. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  1275. package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +13 -7
  1276. package/dist/modules/oauth-server/oauth-token.service.js +0 -3
  1277. package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
  1278. package/dist/modules/oauth-server/oauth.controller.js +7 -1
  1279. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  1280. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.d.ts +2 -0
  1281. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js +1 -0
  1282. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -1
  1283. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.d.ts +2 -0
  1284. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js +1 -0
  1285. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js.map +1 -1
  1286. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js +1 -0
  1287. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js.map +1 -1
  1288. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js +1 -0
  1289. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js.map +1 -1
  1290. package/dist/modules/otel/execution-level-tracer.d.ts +4 -1
  1291. package/dist/modules/otel/execution-level-tracer.js +21 -26
  1292. package/dist/modules/otel/execution-level-tracer.js.map +1 -1
  1293. package/dist/modules/otel/execution-level-tracer.types.d.ts +2 -0
  1294. package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
  1295. package/dist/modules/otel/gen-ai-attributes.d.ts +3 -0
  1296. package/dist/modules/otel/gen-ai-attributes.js +72 -0
  1297. package/dist/modules/otel/gen-ai-attributes.js.map +1 -0
  1298. package/dist/modules/otel/otel-lifecycle-handler.js +6 -1
  1299. package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
  1300. package/dist/modules/otel/otel.config.d.ts +19 -0
  1301. package/dist/modules/otel/otel.config.js +33 -1
  1302. package/dist/modules/otel/otel.config.js.map +1 -1
  1303. package/dist/modules/otel/otel.constants.d.ts +7 -3
  1304. package/dist/modules/otel/otel.constants.js +8 -4
  1305. package/dist/modules/otel/otel.constants.js.map +1 -1
  1306. package/dist/modules/promotions.ee/branch-placement.d.ts +3 -0
  1307. package/dist/modules/promotions.ee/branch-placement.js +3 -1
  1308. package/dist/modules/promotions.ee/branch-placement.js.map +1 -1
  1309. package/dist/modules/promotions.ee/constants.d.ts +0 -5
  1310. package/dist/modules/promotions.ee/constants.js +1 -3
  1311. package/dist/modules/promotions.ee/constants.js.map +1 -1
  1312. package/dist/modules/promotions.ee/cross-project-moves.d.ts +41 -0
  1313. package/dist/modules/promotions.ee/cross-project-moves.js +59 -0
  1314. package/dist/modules/promotions.ee/cross-project-moves.js.map +1 -0
  1315. package/dist/modules/promotions.ee/database/entities/promotion-environment-project.entity.d.ts +10 -0
  1316. package/dist/modules/promotions.ee/database/entities/{promotion-connection-project.entity.js → promotion-environment-project.entity.js} +18 -14
  1317. package/dist/modules/promotions.ee/database/entities/promotion-environment-project.entity.js.map +1 -0
  1318. package/dist/modules/promotions.ee/database/entities/promotion-environment.entity.d.ts +16 -0
  1319. package/dist/modules/promotions.ee/database/entities/{promotion-connection.entity.js → promotion-environment.entity.js} +36 -13
  1320. package/dist/modules/promotions.ee/database/entities/promotion-environment.entity.js.map +1 -0
  1321. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.d.ts +3 -3
  1322. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js +7 -7
  1323. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js.map +1 -1
  1324. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.d.ts +3 -3
  1325. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js +6 -6
  1326. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js.map +1 -1
  1327. package/dist/modules/promotions.ee/database/promotion-conflict.error.d.ts +0 -3
  1328. package/dist/modules/promotions.ee/database/promotion-conflict.error.js +0 -4
  1329. package/dist/modules/promotions.ee/database/promotion-conflict.error.js.map +1 -1
  1330. package/dist/modules/promotions.ee/database/repositories/promotion-environment-project.repository.d.ts +11 -0
  1331. package/dist/modules/promotions.ee/database/repositories/{promotion-connection-project.repository.js → promotion-environment-project.repository.js} +21 -20
  1332. package/dist/modules/promotions.ee/database/repositories/promotion-environment-project.repository.js.map +1 -0
  1333. package/dist/modules/promotions.ee/database/repositories/promotion-environment.repository.d.ts +28 -0
  1334. package/dist/modules/promotions.ee/database/repositories/{promotion-connection.repository.js → promotion-environment.repository.js} +21 -22
  1335. package/dist/modules/promotions.ee/database/repositories/promotion-environment.repository.js.map +1 -0
  1336. package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js +1 -1
  1337. package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js.map +1 -1
  1338. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.d.ts +15 -10
  1339. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js +53 -21
  1340. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js.map +1 -1
  1341. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.d.ts +2 -1
  1342. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js +8 -0
  1343. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js.map +1 -1
  1344. package/dist/modules/promotions.ee/git-hosts/{git-host-target.d.ts → git-host-remote.d.ts} +7 -6
  1345. package/dist/modules/promotions.ee/git-hosts/{git-host-target.js → git-host-remote.js} +24 -18
  1346. package/dist/modules/promotions.ee/git-hosts/git-host-remote.js.map +1 -0
  1347. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +2 -2
  1348. package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.client.d.ts +21 -0
  1349. package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.client.js +230 -0
  1350. package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.client.js.map +1 -0
  1351. package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.types.d.ts +87 -0
  1352. package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.types.js +33 -0
  1353. package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.types.js.map +1 -0
  1354. package/dist/modules/promotions.ee/promotion-change.service.d.ts +37 -5
  1355. package/dist/modules/promotions.ee/promotion-change.service.js +294 -48
  1356. package/dist/modules/promotions.ee/promotion-change.service.js.map +1 -1
  1357. package/dist/modules/promotions.ee/promotion-changes.controller.d.ts +7 -3
  1358. package/dist/modules/promotions.ee/promotion-changes.controller.js +38 -6
  1359. package/dist/modules/promotions.ee/promotion-changes.controller.js.map +1 -1
  1360. package/dist/modules/promotions.ee/promotion-commit-message.d.ts +15 -0
  1361. package/dist/modules/promotions.ee/promotion-commit-message.js +30 -0
  1362. package/dist/modules/promotions.ee/promotion-commit-message.js.map +1 -0
  1363. package/dist/modules/promotions.ee/promotion-environment.resolver.d.ts +14 -0
  1364. package/dist/modules/promotions.ee/promotion-environment.resolver.js +79 -0
  1365. package/dist/modules/promotions.ee/promotion-environment.resolver.js.map +1 -0
  1366. package/dist/modules/promotions.ee/promotion-environments.service.d.ts +95 -0
  1367. package/dist/modules/promotions.ee/promotion-environments.service.js +224 -0
  1368. package/dist/modules/promotions.ee/promotion-environments.service.js.map +1 -0
  1369. package/dist/modules/promotions.ee/promotion-preview.d.ts +47 -0
  1370. package/dist/modules/promotions.ee/promotion-preview.js +349 -0
  1371. package/dist/modules/promotions.ee/promotion-preview.js.map +1 -0
  1372. package/dist/modules/promotions.ee/promotion-providers.service.d.ts +3 -3
  1373. package/dist/modules/promotions.ee/promotion-providers.service.js +6 -6
  1374. package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
  1375. package/dist/modules/promotions.ee/promotion-review-changes.service.d.ts +19 -0
  1376. package/dist/modules/promotions.ee/promotion-review-changes.service.js +186 -0
  1377. package/dist/modules/promotions.ee/promotion-review-changes.service.js.map +1 -0
  1378. package/dist/modules/promotions.ee/promotion-review-gate.service.d.ts +17 -0
  1379. package/dist/modules/promotions.ee/promotion-review-gate.service.js +91 -0
  1380. package/dist/modules/promotions.ee/promotion-review-gate.service.js.map +1 -0
  1381. package/dist/modules/promotions.ee/promotion-review-host.resolver.d.ts +16 -0
  1382. package/dist/modules/promotions.ee/promotion-review-host.resolver.js +55 -0
  1383. package/dist/modules/promotions.ee/promotion-review-host.resolver.js.map +1 -0
  1384. package/dist/modules/promotions.ee/promotion-review-inbox.service.d.ts +45 -0
  1385. package/dist/modules/promotions.ee/promotion-review-inbox.service.js +283 -0
  1386. package/dist/modules/promotions.ee/promotion-review-inbox.service.js.map +1 -0
  1387. package/dist/modules/promotions.ee/promotion-review.utils.d.ts +3 -0
  1388. package/dist/modules/promotions.ee/promotion-review.utils.js +27 -0
  1389. package/dist/modules/promotions.ee/promotion-review.utils.js.map +1 -0
  1390. package/dist/modules/promotions.ee/promotion-reviews.controller.d.ts +13 -0
  1391. package/dist/modules/promotions.ee/promotion-reviews.controller.js +70 -0
  1392. package/dist/modules/promotions.ee/promotion-reviews.controller.js.map +1 -0
  1393. package/dist/modules/promotions.ee/promotion-reviews.service.d.ts +29 -0
  1394. package/dist/modules/promotions.ee/promotion-reviews.service.js +100 -0
  1395. package/dist/modules/promotions.ee/promotion-reviews.service.js.map +1 -0
  1396. package/dist/modules/promotions.ee/promotion-working-directory.service.d.ts +5 -5
  1397. package/dist/modules/promotions.ee/promotion-working-directory.service.js +15 -16
  1398. package/dist/modules/promotions.ee/promotion-working-directory.service.js.map +1 -1
  1399. package/dist/modules/promotions.ee/promotions-git.service.d.ts +40 -6
  1400. package/dist/modules/promotions.ee/promotions-git.service.js +235 -17
  1401. package/dist/modules/promotions.ee/promotions-git.service.js.map +1 -1
  1402. package/dist/modules/promotions.ee/promotions-git.utils.d.ts +3 -4
  1403. package/dist/modules/promotions.ee/promotions-git.utils.js +3 -4
  1404. package/dist/modules/promotions.ee/promotions-git.utils.js.map +1 -1
  1405. package/dist/modules/promotions.ee/promotions-selective-push.error.d.ts +4 -1
  1406. package/dist/modules/promotions.ee/promotions-selective-push.error.js +4 -3
  1407. package/dist/modules/promotions.ee/promotions-selective-push.error.js.map +1 -1
  1408. package/dist/modules/promotions.ee/promotions.module.d.ts +1 -1
  1409. package/dist/modules/promotions.ee/promotions.module.js +14 -6
  1410. package/dist/modules/promotions.ee/promotions.module.js.map +1 -1
  1411. package/dist/modules/promotions.ee/promotions.service.d.ts +38 -9
  1412. package/dist/modules/promotions.ee/promotions.service.js +452 -107
  1413. package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
  1414. package/dist/modules/promotions.ee/promotions.types.d.ts +13 -8
  1415. package/dist/modules/promotions.ee/working-copy-updater.js +5 -2
  1416. package/dist/modules/promotions.ee/working-copy-updater.js.map +1 -1
  1417. package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +0 -1
  1418. package/dist/modules/provisioning.ee/provisioning.service.ee.js +2 -14
  1419. package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
  1420. package/dist/modules/redaction/executions/execution-redaction.service.js +0 -3
  1421. package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
  1422. package/dist/modules/scim/database/scim-token.repository.d.ts +32 -0
  1423. package/dist/modules/scim/database/scim-token.repository.js +95 -0
  1424. package/dist/modules/scim/database/scim-token.repository.js.map +1 -0
  1425. package/dist/modules/scim/database/scim-user.repository.js +1 -2
  1426. package/dist/modules/scim/database/scim-user.repository.js.map +1 -1
  1427. package/dist/modules/scim/scim-auth.middleware.d.ts +4 -1
  1428. package/dist/modules/scim/scim-auth.middleware.js +18 -10
  1429. package/dist/modules/scim/scim-auth.middleware.js.map +1 -1
  1430. package/dist/modules/scim/scim-discovery.controller.js +1 -8
  1431. package/dist/modules/scim/scim-discovery.controller.js.map +1 -1
  1432. package/dist/modules/scim/scim-settings.service.d.ts +15 -2
  1433. package/dist/modules/scim/scim-settings.service.js +36 -3
  1434. package/dist/modules/scim/scim-settings.service.js.map +1 -1
  1435. package/dist/modules/scim/scim-sso.service.d.ts +16 -0
  1436. package/dist/modules/scim/scim-sso.service.js +72 -0
  1437. package/dist/modules/scim/scim-sso.service.js.map +1 -0
  1438. package/dist/modules/scim/scim-token.controller.d.ts +7 -3
  1439. package/dist/modules/scim/scim-token.controller.js +43 -10
  1440. package/dist/modules/scim/scim-token.controller.js.map +1 -1
  1441. package/dist/modules/scim/scim-token.service.d.ts +8 -13
  1442. package/dist/modules/scim/scim-token.service.js +35 -48
  1443. package/dist/modules/scim/scim-token.service.js.map +1 -1
  1444. package/dist/modules/scim/scim.controller.js +5 -0
  1445. package/dist/modules/scim/scim.controller.js.map +1 -1
  1446. package/dist/modules/scim/scim.errors.d.ts +9 -0
  1447. package/dist/modules/scim/scim.errors.js +19 -1
  1448. package/dist/modules/scim/scim.errors.js.map +1 -1
  1449. package/dist/modules/scim/scim.module.js +2 -0
  1450. package/dist/modules/scim/scim.module.js.map +1 -1
  1451. package/dist/modules/scim/scim.service.d.ts +9 -9
  1452. package/dist/modules/scim/scim.service.js +46 -69
  1453. package/dist/modules/scim/scim.service.js.map +1 -1
  1454. package/dist/modules/skills/assistant-skills-rollout.d.ts +8 -0
  1455. package/dist/modules/skills/assistant-skills-rollout.js +32 -0
  1456. package/dist/modules/skills/assistant-skills-rollout.js.map +1 -0
  1457. package/dist/modules/skills/hub-assistant-skill-provider.service.d.ts +12 -0
  1458. package/dist/modules/skills/hub-assistant-skill-provider.service.js +45 -0
  1459. package/dist/modules/skills/hub-assistant-skill-provider.service.js.map +1 -0
  1460. package/dist/modules/skills/skill-agents-proxy.service.d.ts +39 -0
  1461. package/dist/modules/skills/skill-agents-proxy.service.js +74 -0
  1462. package/dist/modules/skills/skill-agents-proxy.service.js.map +1 -0
  1463. package/dist/modules/{agents/skills → skills}/skill-content-hash.d.ts +1 -1
  1464. package/dist/modules/skills/skill-content-hash.js.map +1 -0
  1465. package/dist/modules/skills/skill-file.entity.js.map +1 -0
  1466. package/dist/modules/skills/skill-hash.d.ts +2 -0
  1467. package/dist/modules/skills/skill-hash.js +21 -0
  1468. package/dist/modules/skills/skill-hash.js.map +1 -0
  1469. package/dist/modules/skills/skill-name-taken.error.js.map +1 -0
  1470. package/dist/modules/skills/skill-names.js.map +1 -0
  1471. package/dist/modules/skills/skill-version.entity.js.map +1 -0
  1472. package/dist/modules/{agents/entities → skills}/skill.entity.d.ts +4 -1
  1473. package/dist/modules/{agents/entities → skills}/skill.entity.js +8 -0
  1474. package/dist/modules/skills/skill.entity.js.map +1 -0
  1475. package/dist/modules/{agents/repositories → skills}/skill.repository.d.ts +39 -38
  1476. package/dist/modules/skills/skill.repository.js +410 -0
  1477. package/dist/modules/skills/skill.repository.js.map +1 -0
  1478. package/dist/modules/{agents/skills → skills}/skill.service.d.ts +35 -27
  1479. package/dist/modules/{agents/skills → skills}/skill.service.js +138 -102
  1480. package/dist/modules/skills/skill.service.js.map +1 -0
  1481. package/dist/modules/{agents/skills → skills}/skills-api.service.d.ts +11 -3
  1482. package/dist/modules/{agents/skills → skills}/skills-api.service.js +111 -31
  1483. package/dist/modules/skills/skills-api.service.js.map +1 -0
  1484. package/dist/modules/{agents/skills → skills}/skills-telemetry.d.ts +7 -5
  1485. package/dist/modules/{agents/skills → skills}/skills-telemetry.js +7 -5
  1486. package/dist/modules/skills/skills-telemetry.js.map +1 -0
  1487. package/dist/modules/{agents → skills}/skills.controller.d.ts +8 -6
  1488. package/dist/modules/{agents → skills}/skills.controller.js +27 -8
  1489. package/dist/modules/skills/skills.controller.js.map +1 -0
  1490. package/dist/modules/skills/skills.module.d.ts +5 -0
  1491. package/dist/modules/skills/skills.module.js +30 -0
  1492. package/dist/modules/skills/skills.module.js.map +1 -0
  1493. package/dist/modules/source-control.ee/source-control-export.service.ee.js +15 -11
  1494. package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
  1495. package/dist/modules/source-control.ee/source-control-helper.ee.d.ts +1 -1
  1496. package/dist/modules/source-control.ee/source-control-helper.ee.js +4 -2
  1497. package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
  1498. package/dist/modules/source-control.ee/source-control-import.service.ee.js +13 -1
  1499. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  1500. package/dist/modules/source-control.ee/source-control-preferences.service.ee.js +11 -6
  1501. package/dist/modules/source-control.ee/source-control-preferences.service.ee.js.map +1 -1
  1502. package/dist/modules/source-control.ee/source-control.controller.ee.js +18 -2
  1503. package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
  1504. package/dist/modules/source-control.ee/source-control.service.ee.js +2 -0
  1505. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  1506. package/dist/modules/source-control.ee/types/source-control-preferences.d.ts +2 -0
  1507. package/dist/modules/source-control.ee/types/source-control-preferences.js +7 -0
  1508. package/dist/modules/source-control.ee/types/source-control-preferences.js.map +1 -1
  1509. package/dist/modules/sso-oidc/oidc.service.ee.js +2 -0
  1510. package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
  1511. package/dist/modules/sso-saml/saml-helpers.js +2 -0
  1512. package/dist/modules/sso-saml/saml-helpers.js.map +1 -1
  1513. package/dist/modules/sso-saml/saml.service.ee.d.ts +3 -2
  1514. package/dist/modules/sso-saml/saml.service.ee.js +15 -3
  1515. package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
  1516. package/dist/modules/token-exchange/services/scoped-jwt.strategy.d.ts +2 -2
  1517. package/dist/modules/token-exchange/services/scoped-jwt.strategy.js +7 -4
  1518. package/dist/modules/token-exchange/services/scoped-jwt.strategy.js.map +1 -1
  1519. package/dist/modules/type-availability-policies/installed-type-restrictions.provider.d.ts +18 -0
  1520. package/dist/modules/type-availability-policies/installed-type-restrictions.provider.js +56 -0
  1521. package/dist/modules/type-availability-policies/installed-type-restrictions.provider.js.map +1 -0
  1522. package/dist/modules/type-availability-policies/sub-workflow-policy-check.controller.d.ts +9 -0
  1523. package/dist/modules/type-availability-policies/sub-workflow-policy-check.controller.js +46 -0
  1524. package/dist/modules/type-availability-policies/sub-workflow-policy-check.controller.js.map +1 -0
  1525. package/dist/modules/type-availability-policies/sub-workflow-policy-check.service.d.ts +24 -0
  1526. package/dist/modules/type-availability-policies/sub-workflow-policy-check.service.js +88 -0
  1527. package/dist/modules/type-availability-policies/sub-workflow-policy-check.service.js.map +1 -0
  1528. package/dist/modules/type-availability-policies/type-availability-policies.module.d.ts +1 -1
  1529. package/dist/modules/type-availability-policies/type-availability-policies.module.js +3 -0
  1530. package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
  1531. package/dist/modules/type-availability-policies/type-violation.d.ts +2 -1
  1532. package/dist/modules/type-availability-policies/type-violation.js +20 -4
  1533. package/dist/modules/type-availability-policies/type-violation.js.map +1 -1
  1534. package/dist/modules/workflow-index/workflow-dependency-query.service.js +2 -5
  1535. package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
  1536. package/dist/node-execution/ephemeral-node-executor.d.ts +3 -3
  1537. package/dist/node-execution/ephemeral-node-executor.js +16 -17
  1538. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  1539. package/dist/node-execution/execute-node.service.d.ts +7 -1
  1540. package/dist/node-execution/execute-node.service.js +23 -7
  1541. package/dist/node-execution/execute-node.service.js.map +1 -1
  1542. package/dist/oauth/oauth.service.js +3 -0
  1543. package/dist/oauth/oauth.service.js.map +1 -1
  1544. package/dist/policy/policed-agent-nodes.d.ts +2 -1
  1545. package/dist/policy/policed-agent-nodes.js +45 -7
  1546. package/dist/policy/policed-agent-nodes.js.map +1 -1
  1547. package/dist/policy/policy-enforcement.service.d.ts +2 -0
  1548. package/dist/policy/policy-enforcement.service.js +6 -3
  1549. package/dist/policy/policy-enforcement.service.js.map +1 -1
  1550. package/dist/posthog/index.d.ts +1 -0
  1551. package/dist/posthog/index.js +11 -5
  1552. package/dist/posthog/index.js.map +1 -1
  1553. package/dist/public-api/index.js +2 -0
  1554. package/dist/public-api/index.js.map +1 -1
  1555. package/dist/public-api/media-types/binary-response.js +2 -35
  1556. package/dist/public-api/media-types/binary-response.js.map +1 -1
  1557. package/dist/public-api/public-api-controller.registry.js +10 -3
  1558. package/dist/public-api/public-api-controller.registry.js.map +1 -1
  1559. package/dist/public-api/public-api-rate-limit-settings.service.d.ts +25 -0
  1560. package/dist/public-api/public-api-rate-limit-settings.service.js +133 -0
  1561. package/dist/public-api/public-api-rate-limit-settings.service.js.map +1 -0
  1562. package/dist/public-api/public-api-rate-limit-store.factory.d.ts +16 -0
  1563. package/dist/public-api/public-api-rate-limit-store.factory.js +100 -0
  1564. package/dist/public-api/public-api-rate-limit-store.factory.js.map +1 -0
  1565. package/dist/public-api/public-api-rate-limit.service.d.ts +6 -4
  1566. package/dist/public-api/public-api-rate-limit.service.js +15 -13
  1567. package/dist/public-api/public-api-rate-limit.service.js.map +1 -1
  1568. package/dist/public-api/types.d.ts +2 -3
  1569. package/dist/public-api/v1/controllers/community-packages.public.controller.d.ts +2 -2
  1570. package/dist/public-api/v1/controllers/community-packages.public.controller.js +4 -2
  1571. package/dist/public-api/v1/controllers/community-packages.public.controller.js.map +1 -1
  1572. package/dist/public-api/v1/controllers/credentials.public.controller.d.ts +5 -2
  1573. package/dist/public-api/v1/controllers/credentials.public.controller.js +28 -2
  1574. package/dist/public-api/v1/controllers/credentials.public.controller.js.map +1 -1
  1575. package/dist/public-api/v1/controllers/data-tables.public.controller.d.ts +5 -2
  1576. package/dist/public-api/v1/controllers/data-tables.public.controller.js +31 -2
  1577. package/dist/public-api/v1/controllers/data-tables.public.controller.js.map +1 -1
  1578. package/dist/public-api/v1/controllers/executions.public.controller.js.map +1 -1
  1579. package/dist/public-api/v1/controllers/promotions.public.controller.d.ts +15 -18
  1580. package/dist/public-api/v1/controllers/promotions.public.controller.js +105 -174
  1581. package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
  1582. package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +5 -2
  1583. package/dist/public-api/v1/controllers/workflows.public.controller.js +30 -2
  1584. package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
  1585. package/dist/public-api/v1/handlers/credentials/credentials.utils.js +6 -0
  1586. package/dist/public-api/v1/handlers/credentials/credentials.utils.js.map +1 -1
  1587. package/dist/public-api/v1/openapi.yml +1150 -881
  1588. package/dist/public-api/v1/shared/dependency.mapper.d.ts +5 -0
  1589. package/dist/public-api/v1/shared/dependency.mapper.js +28 -0
  1590. package/dist/public-api/v1/shared/dependency.mapper.js.map +1 -0
  1591. package/dist/response-helper.d.ts +2 -0
  1592. package/dist/response-helper.js +43 -1
  1593. package/dist/response-helper.js.map +1 -1
  1594. package/dist/scaling/constants.d.ts +2 -2
  1595. package/dist/scaling/constants.js +2 -0
  1596. package/dist/scaling/constants.js.map +1 -1
  1597. package/dist/scaling/pubsub/pubsub.event-map.d.ts +5 -0
  1598. package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
  1599. package/dist/scheduling/durable-job-provisioner.js.map +1 -1
  1600. package/dist/server.d.ts +1 -0
  1601. package/dist/server.js +1 -0
  1602. package/dist/server.js.map +1 -1
  1603. package/dist/services/ai-gateway-eligibility.d.ts +1 -1
  1604. package/dist/services/ai-gateway-eligibility.js +3 -0
  1605. package/dist/services/ai-gateway-eligibility.js.map +1 -1
  1606. package/dist/services/ai-gateway.service.d.ts +7 -1
  1607. package/dist/services/ai-gateway.service.js +90 -12
  1608. package/dist/services/ai-gateway.service.js.map +1 -1
  1609. package/dist/services/ai-preference-write.d.ts +1 -1
  1610. package/dist/services/ai-preference-write.js +2 -2
  1611. package/dist/services/ai-preference-write.js.map +1 -1
  1612. package/dist/services/api-key-auth.strategy.d.ts +2 -2
  1613. package/dist/services/api-key-auth.strategy.js +8 -5
  1614. package/dist/services/api-key-auth.strategy.js.map +1 -1
  1615. package/dist/services/engine-data-plane-proxy.service.d.ts +3 -1
  1616. package/dist/services/engine-data-plane-proxy.service.js +5 -0
  1617. package/dist/services/engine-data-plane-proxy.service.js.map +1 -1
  1618. package/dist/services/engine-v2-dispatcher.service.d.ts +5 -1
  1619. package/dist/services/engine-v2-dispatcher.service.js +37 -23
  1620. package/dist/services/engine-v2-dispatcher.service.js.map +1 -1
  1621. package/dist/services/engine-v2-manual-run-planner.d.ts +25 -0
  1622. package/dist/services/engine-v2-manual-run-planner.js +190 -0
  1623. package/dist/services/engine-v2-manual-run-planner.js.map +1 -0
  1624. package/dist/services/export.service.js +3 -1
  1625. package/dist/services/export.service.js.map +1 -1
  1626. package/dist/services/frontend.service.js +0 -2
  1627. package/dist/services/frontend.service.js.map +1 -1
  1628. package/dist/services/node-resource-explorer.service.d.ts +8 -1
  1629. package/dist/services/node-resource-explorer.service.js +155 -1
  1630. package/dist/services/node-resource-explorer.service.js.map +1 -1
  1631. package/dist/services/ownership-transfer/ownership-transfer.manifest.json +25 -5
  1632. package/dist/services/ownership-transfer/ownership-transfer.service.d.ts +1 -0
  1633. package/dist/services/ownership-transfer/ownership-transfer.service.js +7 -0
  1634. package/dist/services/ownership-transfer/ownership-transfer.service.js.map +1 -1
  1635. package/dist/services/ownership.service.js +3 -1
  1636. package/dist/services/ownership.service.js.map +1 -1
  1637. package/dist/services/project.service.ee.d.ts +2 -2
  1638. package/dist/services/project.service.ee.js +16 -72
  1639. package/dist/services/project.service.ee.js.map +1 -1
  1640. package/dist/services/rate-limit.service.js +2 -2
  1641. package/dist/services/rate-limit.service.js.map +1 -1
  1642. package/dist/services/sandbox-settings.service.d.ts +7 -1
  1643. package/dist/services/sandbox-settings.service.js +32 -2
  1644. package/dist/services/sandbox-settings.service.js.map +1 -1
  1645. package/dist/services/session-cookie-auth.strategy.d.ts +2 -2
  1646. package/dist/services/session-cookie-auth.strategy.js +3 -3
  1647. package/dist/services/session-cookie-auth.strategy.js.map +1 -1
  1648. package/dist/services/user.service.js +2 -2
  1649. package/dist/services/user.service.js.map +1 -1
  1650. package/dist/sso.ee/scim-switch-reader.d.ts +16 -0
  1651. package/dist/sso.ee/scim-switch-reader.js +56 -0
  1652. package/dist/sso.ee/scim-switch-reader.js.map +1 -0
  1653. package/dist/sso.ee/sso-helpers.d.ts +4 -0
  1654. package/dist/sso.ee/sso-helpers.js +29 -0
  1655. package/dist/sso.ee/sso-helpers.js.map +1 -1
  1656. package/dist/task-runners/task-broker/task-broker-server.js +3 -5
  1657. package/dist/task-runners/task-broker/task-broker-server.js.map +1 -1
  1658. package/dist/task-runners/task-broker/task-broker.service.js +25 -7
  1659. package/dist/task-runners/task-broker/task-broker.service.js.map +1 -1
  1660. package/dist/task-runners/task-managers/task-requester.js +17 -1
  1661. package/dist/task-runners/task-managers/task-requester.js.map +1 -1
  1662. package/dist/task-runners/task-runner-module.js +3 -0
  1663. package/dist/task-runners/task-runner-module.js.map +1 -1
  1664. package/dist/task-runners/task-runner-process-js.js +5 -1
  1665. package/dist/task-runners/task-runner-process-js.js.map +1 -1
  1666. package/dist/telemetry/cluster-footprint.d.ts +12 -0
  1667. package/dist/telemetry/cluster-footprint.js +20 -0
  1668. package/dist/telemetry/cluster-footprint.js.map +1 -0
  1669. package/dist/telemetry/index.d.ts +3 -0
  1670. package/dist/telemetry/index.js +16 -0
  1671. package/dist/telemetry/index.js.map +1 -1
  1672. package/dist/user-management/email/templates/workflow-deactivated.handlebars +2 -2
  1673. package/dist/user-management/email/user-management-mailer.d.ts +2 -1
  1674. package/dist/user-management/email/user-management-mailer.js +12 -1
  1675. package/dist/user-management/email/user-management-mailer.js.map +1 -1
  1676. package/dist/utils/detect-managed-services.d.ts +5 -0
  1677. package/dist/utils/detect-managed-services.js +33 -0
  1678. package/dist/utils/detect-managed-services.js.map +1 -0
  1679. package/dist/utils/model-stream-stall-options.js.map +1 -0
  1680. package/dist/utils.d.ts +0 -1
  1681. package/dist/utils.js +2 -18
  1682. package/dist/utils.js.map +1 -1
  1683. package/dist/wait-tracker.js +1 -0
  1684. package/dist/wait-tracker.js.map +1 -1
  1685. package/dist/webhooks/hitl-interaction-webhooks.d.ts +2 -0
  1686. package/dist/webhooks/hitl-interaction-webhooks.js +3 -0
  1687. package/dist/webhooks/hitl-interaction-webhooks.js.map +1 -1
  1688. package/dist/webhooks/waiting-webhooks.d.ts +2 -0
  1689. package/dist/webhooks/waiting-webhooks.js +25 -2
  1690. package/dist/webhooks/waiting-webhooks.js.map +1 -1
  1691. package/dist/webhooks/webhook-helpers.js +6 -4
  1692. package/dist/webhooks/webhook-helpers.js.map +1 -1
  1693. package/dist/webhooks/webhook-request-handler.js +8 -10
  1694. package/dist/webhooks/webhook-request-handler.js.map +1 -1
  1695. package/dist/workflow-execute-additional-data.d.ts +1 -1
  1696. package/dist/workflow-execute-additional-data.js +56 -14
  1697. package/dist/workflow-execute-additional-data.js.map +1 -1
  1698. package/dist/workflow-helpers.js +7 -3
  1699. package/dist/workflow-helpers.js.map +1 -1
  1700. package/dist/workflow-runner.js +4 -1
  1701. package/dist/workflow-runner.js.map +1 -1
  1702. package/dist/workflows/deprecated-nodes-validation.service.d.ts +1 -0
  1703. package/dist/workflows/deprecated-nodes-validation.service.js +43 -12
  1704. package/dist/workflows/deprecated-nodes-validation.service.js.map +1 -1
  1705. package/dist/workflows/error-workflow-id.d.ts +3 -0
  1706. package/dist/workflows/error-workflow-id.js +17 -0
  1707. package/dist/workflows/error-workflow-id.js.map +1 -0
  1708. package/dist/workflows/error-workflow-validation.service.d.ts +0 -3
  1709. package/dist/workflows/error-workflow-validation.service.js +0 -14
  1710. package/dist/workflows/error-workflow-validation.service.js.map +1 -1
  1711. package/dist/workflows/publication/publication-status-reporter.js +10 -1
  1712. package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
  1713. package/dist/workflows/publication/trigger-node-id-too-long.error.d.ts +5 -0
  1714. package/dist/workflows/publication/trigger-node-id-too-long.error.js +18 -0
  1715. package/dist/workflows/publication/trigger-node-id-too-long.error.js.map +1 -0
  1716. package/dist/workflows/publication/workflow-publication-applier.d.ts +1 -0
  1717. package/dist/workflows/publication/workflow-publication-applier.js +27 -0
  1718. package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
  1719. package/dist/workflows/workflow-creation.service.js +4 -3
  1720. package/dist/workflows/workflow-creation.service.js.map +1 -1
  1721. package/dist/workflows/workflow-finder.service.d.ts +1 -1
  1722. package/dist/workflows/workflow-finder.service.js +2 -2
  1723. package/dist/workflows/workflow-finder.service.js.map +1 -1
  1724. package/dist/workflows/workflow-publisher.service.js +0 -3
  1725. package/dist/workflows/workflow-publisher.service.js.map +1 -1
  1726. package/dist/workflows/workflow-validation.service.js +6 -2
  1727. package/dist/workflows/workflow-validation.service.js.map +1 -1
  1728. package/dist/workflows/workflow.service.ee.d.ts +10 -22
  1729. package/dist/workflows/workflow.service.ee.js +119 -57
  1730. package/dist/workflows/workflow.service.ee.js.map +1 -1
  1731. package/dist/workflows/workflow.service.js +15 -2
  1732. package/dist/workflows/workflow.service.js.map +1 -1
  1733. package/dist/workflows/workflows.controller.d.ts +3 -18
  1734. package/dist/workflows/workflows.controller.js +12 -0
  1735. package/dist/workflows/workflows.controller.js.map +1 -1
  1736. package/package.json +52 -48
  1737. package/templates/form-trigger.handlebars +1 -0
  1738. package/dist/constants/credential-sharing.d.ts +0 -1
  1739. package/dist/constants/credential-sharing.js +0 -8
  1740. package/dist/constants/credential-sharing.js.map +0 -1
  1741. package/dist/errors/response-errors/ai-preference-scope-full.error.d.ts +0 -12
  1742. package/dist/errors/response-errors/ai-preference-scope-full.error.js +0 -13
  1743. package/dist/errors/response-errors/ai-preference-scope-full.error.js.map +0 -1
  1744. package/dist/modules/agents/agent-runtime-instrumentation.js.map +0 -1
  1745. package/dist/modules/agents/agent-vector-stores.service.d.ts +0 -11
  1746. package/dist/modules/agents/agent-vector-stores.service.js.map +0 -1
  1747. package/dist/modules/agents/builder/format-preview-context.js.map +0 -1
  1748. package/dist/modules/agents/builder/get-resource-locator-options.tool.d.ts +0 -107
  1749. package/dist/modules/agents/builder/get-resource-locator-options.tool.js +0 -152
  1750. package/dist/modules/agents/builder/get-resource-locator-options.tool.js.map +0 -1
  1751. package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +0 -7
  1752. package/dist/modules/agents/builder/interactive/ask-credential.tool.js +0 -122
  1753. package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +0 -1
  1754. package/dist/modules/agents/entities/skill-file.entity.js.map +0 -1
  1755. package/dist/modules/agents/entities/skill-version.entity.js.map +0 -1
  1756. package/dist/modules/agents/entities/skill.entity.js.map +0 -1
  1757. package/dist/modules/agents/instance-ai-agent-context.adapter.d.ts +0 -27
  1758. package/dist/modules/agents/instance-ai-agent-context.adapter.js.map +0 -1
  1759. package/dist/modules/agents/instance-ai-builder-delegate.adapter.d.ts +0 -28
  1760. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +0 -137
  1761. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +0 -1
  1762. package/dist/modules/agents/integrations/platforms/discord-gateway.js.map +0 -1
  1763. package/dist/modules/agents/integrations/platforms/discord-integration.js.map +0 -1
  1764. package/dist/modules/agents/integrations/platforms/discord-operations.js.map +0 -1
  1765. package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +0 -27
  1766. package/dist/modules/agents/integrations/platforms/linear-integration.js.map +0 -1
  1767. package/dist/modules/agents/integrations/platforms/linear-operations.js.map +0 -1
  1768. package/dist/modules/agents/integrations/platforms/linear-tool-definitions.js.map +0 -1
  1769. package/dist/modules/agents/integrations/platforms/n8n-chat-integration.js.map +0 -1
  1770. package/dist/modules/agents/integrations/platforms/telegram-bridge-behavior.js.map +0 -1
  1771. package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +0 -1
  1772. package/dist/modules/agents/json-config/credential-field-mapping.js.map +0 -1
  1773. package/dist/modules/agents/json-config/embedding-credential.js.map +0 -1
  1774. package/dist/modules/agents/json-config/vector-store-factory.js.map +0 -1
  1775. package/dist/modules/agents/model-stream-stall-options.js.map +0 -1
  1776. package/dist/modules/agents/repositories/skill.repository.js +0 -569
  1777. package/dist/modules/agents/repositories/skill.repository.js.map +0 -1
  1778. package/dist/modules/agents/skills/skill-content-hash.js.map +0 -1
  1779. package/dist/modules/agents/skills/skill-name-taken.error.js.map +0 -1
  1780. package/dist/modules/agents/skills/skill-names.js.map +0 -1
  1781. package/dist/modules/agents/skills/skill.service.js.map +0 -1
  1782. package/dist/modules/agents/skills/skills-api.service.js.map +0 -1
  1783. package/dist/modules/agents/skills/skills-hub-rollout.d.ts +0 -10
  1784. package/dist/modules/agents/skills/skills-hub-rollout.js.map +0 -1
  1785. package/dist/modules/agents/skills/skills-hub-startup-copy.d.ts +0 -40
  1786. package/dist/modules/agents/skills/skills-hub-startup-copy.js +0 -402
  1787. package/dist/modules/agents/skills/skills-hub-startup-copy.js.map +0 -1
  1788. package/dist/modules/agents/skills/skills-telemetry.js.map +0 -1
  1789. package/dist/modules/agents/skills.controller.js.map +0 -1
  1790. package/dist/modules/instance-ai/browser/composite-local-mcp-server.d.ts +0 -16
  1791. package/dist/modules/instance-ai/browser/composite-local-mcp-server.js +0 -57
  1792. package/dist/modules/instance-ai/browser/composite-local-mcp-server.js.map +0 -1
  1793. package/dist/modules/instance-ai/computer-use-availability.d.ts +0 -14
  1794. package/dist/modules/instance-ai/computer-use-availability.js +0 -42
  1795. package/dist/modules/instance-ai/computer-use-availability.js.map +0 -1
  1796. package/dist/modules/instance-ai/eval/data-table-pin-filter.d.ts +0 -7
  1797. package/dist/modules/instance-ai/eval/data-table-pin-filter.js +0 -171
  1798. package/dist/modules/instance-ai/eval/data-table-pin-filter.js.map +0 -1
  1799. package/dist/modules/instance-ai/filesystem/index.d.ts +0 -3
  1800. package/dist/modules/instance-ai/filesystem/index.js +0 -8
  1801. package/dist/modules/instance-ai/filesystem/index.js.map +0 -1
  1802. package/dist/modules/instance-ai/filesystem/local-gateway-registry.d.ts +0 -31
  1803. package/dist/modules/instance-ai/filesystem/local-gateway-registry.js +0 -160
  1804. package/dist/modules/instance-ai/filesystem/local-gateway-registry.js.map +0 -1
  1805. package/dist/modules/instance-ai/filesystem/local-gateway.d.ts +0 -45
  1806. package/dist/modules/instance-ai/filesystem/local-gateway.js +0 -163
  1807. package/dist/modules/instance-ai/filesystem/local-gateway.js.map +0 -1
  1808. package/dist/modules/instance-ai/instance-ai-gateway.service.d.ts +0 -35
  1809. package/dist/modules/instance-ai/instance-ai-gateway.service.js +0 -90
  1810. package/dist/modules/instance-ai/instance-ai-gateway.service.js.map +0 -1
  1811. package/dist/modules/instance-ai/planned-task-action-runner.d.ts +0 -91
  1812. package/dist/modules/instance-ai/planned-task-action-runner.js +0 -138
  1813. package/dist/modules/instance-ai/planned-task-action-runner.js.map +0 -1
  1814. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.d.ts +0 -4
  1815. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.js +0 -12
  1816. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.js.map +0 -1
  1817. package/dist/modules/n8n-packages/entities/workflow/workflow-id-policy.d.ts +0 -2
  1818. package/dist/modules/n8n-packages/entities/workflow/workflow-id-policy.js +0 -12
  1819. package/dist/modules/n8n-packages/entities/workflow/workflow-id-policy.js.map +0 -1
  1820. package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +0 -26
  1821. package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +0 -24
  1822. package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +0 -1
  1823. package/dist/modules/n8n-packages/spec/serialized/data-table.schema.d.ts +0 -75
  1824. package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js +0 -43
  1825. package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js.map +0 -1
  1826. package/dist/modules/n8n-packages/spec/serialized/folder.schema.d.ts +0 -15
  1827. package/dist/modules/n8n-packages/spec/serialized/folder.schema.js +0 -12
  1828. package/dist/modules/n8n-packages/spec/serialized/folder.schema.js.map +0 -1
  1829. package/dist/modules/n8n-packages/spec/serialized/project.schema.d.ts +0 -51
  1830. package/dist/modules/n8n-packages/spec/serialized/project.schema.js +0 -20
  1831. package/dist/modules/n8n-packages/spec/serialized/project.schema.js.map +0 -1
  1832. package/dist/modules/n8n-packages/spec/serialized/tag.schema.d.ts +0 -12
  1833. package/dist/modules/n8n-packages/spec/serialized/tag.schema.js +0 -11
  1834. package/dist/modules/n8n-packages/spec/serialized/tag.schema.js.map +0 -1
  1835. package/dist/modules/n8n-packages/spec/serialized/variable.schema.d.ts +0 -15
  1836. package/dist/modules/n8n-packages/spec/serialized/variable.schema.js +0 -13
  1837. package/dist/modules/n8n-packages/spec/serialized/variable.schema.js.map +0 -1
  1838. package/dist/modules/n8n-packages/spec/serialized/workflow-metadata.schema.d.ts +0 -12
  1839. package/dist/modules/n8n-packages/spec/serialized/workflow-metadata.schema.js +0 -9
  1840. package/dist/modules/n8n-packages/spec/serialized/workflow-metadata.schema.js.map +0 -1
  1841. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +0 -201
  1842. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +0 -53
  1843. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +0 -1
  1844. package/dist/modules/promotions.ee/database/entities/promotion-config.entity.d.ts +0 -11
  1845. package/dist/modules/promotions.ee/database/entities/promotion-config.entity.js +0 -44
  1846. package/dist/modules/promotions.ee/database/entities/promotion-config.entity.js.map +0 -1
  1847. package/dist/modules/promotions.ee/database/entities/promotion-connection-project.entity.d.ts +0 -8
  1848. package/dist/modules/promotions.ee/database/entities/promotion-connection-project.entity.js.map +0 -1
  1849. package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.d.ts +0 -12
  1850. package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.js.map +0 -1
  1851. package/dist/modules/promotions.ee/database/repositories/promotion-config.repository.d.ts +0 -19
  1852. package/dist/modules/promotions.ee/database/repositories/promotion-config.repository.js +0 -67
  1853. package/dist/modules/promotions.ee/database/repositories/promotion-config.repository.js.map +0 -1
  1854. package/dist/modules/promotions.ee/database/repositories/promotion-connection-project.repository.d.ts +0 -10
  1855. package/dist/modules/promotions.ee/database/repositories/promotion-connection-project.repository.js.map +0 -1
  1856. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.d.ts +0 -28
  1857. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js.map +0 -1
  1858. package/dist/modules/promotions.ee/git-hosts/git-host-target.js.map +0 -1
  1859. package/dist/modules/promotions.ee/promotion-config.resolver.d.ts +0 -16
  1860. package/dist/modules/promotions.ee/promotion-config.resolver.js +0 -94
  1861. package/dist/modules/promotions.ee/promotion-config.resolver.js.map +0 -1
  1862. package/dist/modules/promotions.ee/promotion-connections.service.d.ts +0 -117
  1863. package/dist/modules/promotions.ee/promotion-connections.service.js +0 -350
  1864. package/dist/modules/promotions.ee/promotion-connections.service.js.map +0 -1
  1865. package/dist/modules/scim/database/scim-api-key.repository.d.ts +0 -11
  1866. package/dist/modules/scim/database/scim-api-key.repository.js +0 -51
  1867. package/dist/modules/scim/database/scim-api-key.repository.js.map +0 -1
  1868. package/dist/services/ai-preference.service.d.ts +0 -86
  1869. package/dist/services/ai-preference.service.js +0 -507
  1870. package/dist/services/ai-preference.service.js.map +0 -1
  1871. /package/dist/{modules/agents/json-config → credentials}/credential-field-mapping.d.ts +0 -0
  1872. /package/dist/{modules/agents/json-config → credentials}/credential-field-mapping.js +0 -0
  1873. /package/dist/modules/agents/integrations/platforms/{discord-gateway.d.ts → discord/discord-gateway.d.ts} +0 -0
  1874. /package/dist/modules/agents/integrations/platforms/{discord-gateway.js → discord/discord-gateway.js} +0 -0
  1875. /package/dist/modules/agents/integrations/platforms/{discord-operations.d.ts → discord/discord-operations.d.ts} +0 -0
  1876. /package/dist/modules/agents/integrations/platforms/{linear-tool-definitions.d.ts → linear/linear-tool-definitions.d.ts} +0 -0
  1877. /package/dist/modules/{agents/json-config → knowledge/vector-stores}/embedding-credential.d.ts +0 -0
  1878. /package/dist/modules/{agents/json-config/vector-store-factory.d.ts → knowledge/vector-stores/factory.d.ts} +0 -0
  1879. /package/dist/modules/{agents/skills → skills}/skill-content-hash.js +0 -0
  1880. /package/dist/modules/{agents/entities → skills}/skill-file.entity.d.ts +0 -0
  1881. /package/dist/modules/{agents/entities → skills}/skill-file.entity.js +0 -0
  1882. /package/dist/modules/{agents/skills → skills}/skill-name-taken.error.d.ts +0 -0
  1883. /package/dist/modules/{agents/skills → skills}/skill-name-taken.error.js +0 -0
  1884. /package/dist/modules/{agents/skills → skills}/skill-names.d.ts +0 -0
  1885. /package/dist/modules/{agents/skills → skills}/skill-names.js +0 -0
  1886. /package/dist/modules/{agents/entities → skills}/skill-version.entity.d.ts +0 -0
  1887. /package/dist/modules/{agents/entities → skills}/skill-version.entity.js +0 -0
  1888. /package/dist/{modules/agents → utils}/model-stream-stall-options.d.ts +0 -0
  1889. /package/dist/{modules/agents → utils}/model-stream-stall-options.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotion-preview.js","sourceRoot":"","sources":["../../../src/modules/promotions.ee/promotion-preview.ts"],"names":[],"mappings":";;;;;;;;AAOA,6EAIkD;AAElD,6FAA2F;AAG3F,2CAAgD;AAoChD,MAAM,cAAc,GAAG;IACtB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,CAAC,SAAS,CAAC,CAAC;YACtB,SAAS,GAAG,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,SAAS,IAAI,IAAI,CAAC;QACnD,CAAC;IACF,CAAC;IAED,MAAM,SAAS,GAAG,CAAC,GAAG,MAAM,CAAC;SAC3B,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;SACpC,IAAI,CACJ,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACR,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;QACvD,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC;QAC5B,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAC3B,CAAC;IACH,OAAO;QACN,SAAS;QACT,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KACzE,CAAC;AACH,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { CreatePromotionProviderDto, PromotionProviderAuthType, PromotionProviderCreatedPublicDto, PromotionProviderPublicDto, UpdatePromotionProviderDto } from '@n8n/api-types';
2
2
  import { Cipher } from 'n8n-core';
3
3
  import type { PromotionProvider } from './database/entities/promotion-provider.entity';
4
- import { PromotionConnectionRepository } from './database/repositories/promotion-connection.repository';
4
+ import { PromotionEnvironmentRepository } from './database/repositories/promotion-environment.repository';
5
5
  import { PromotionProviderRepository } from './database/repositories/promotion-provider.repository';
6
6
  import { GitHostClients } from './git-hosts/git-host-clients';
7
7
  import type { GitHostDiscoveryQuery } from './git-hosts/git-host.types';
@@ -9,11 +9,11 @@ import { PromotionsGitService } from './promotions-git.service';
9
9
  import { type PromotionGitCredentials } from './promotions.types';
10
10
  export declare class PromotionProvidersService {
11
11
  private readonly providerRepository;
12
- private readonly connectionRepository;
12
+ private readonly environmentRepository;
13
13
  private readonly gitService;
14
14
  private readonly cipher;
15
15
  private readonly gitHosts;
16
- constructor(providerRepository: PromotionProviderRepository, connectionRepository: PromotionConnectionRepository, gitService: PromotionsGitService, cipher: Cipher, gitHosts: GitHostClients);
16
+ constructor(providerRepository: PromotionProviderRepository, environmentRepository: PromotionEnvironmentRepository, gitService: PromotionsGitService, cipher: Cipher, gitHosts: GitHostClients);
17
17
  create(input: CreatePromotionProviderDto): Promise<PromotionProviderCreatedPublicDto>;
18
18
  findOne(id: string): Promise<PromotionProviderPublicDto>;
19
19
  list(offset: number, limit: number): Promise<{
@@ -15,16 +15,16 @@ const di_1 = require("@n8n/di");
15
15
  const n8n_core_1 = require("n8n-core");
16
16
  const n8n_workflow_1 = require("n8n-workflow");
17
17
  const errors_1 = require("@n8n/errors");
18
- const promotion_connection_repository_1 = require("./database/repositories/promotion-connection.repository");
18
+ const promotion_environment_repository_1 = require("./database/repositories/promotion-environment.repository");
19
19
  const promotion_provider_repository_1 = require("./database/repositories/promotion-provider.repository");
20
20
  const git_host_clients_1 = require("./git-hosts/git-host-clients");
21
21
  const promotion_conflicts_1 = require("./promotion-conflicts");
22
22
  const promotions_git_service_1 = require("./promotions-git.service");
23
23
  const promotions_types_1 = require("./promotions.types");
24
24
  let PromotionProvidersService = class PromotionProvidersService {
25
- constructor(providerRepository, connectionRepository, gitService, cipher, gitHosts) {
25
+ constructor(providerRepository, environmentRepository, gitService, cipher, gitHosts) {
26
26
  this.providerRepository = providerRepository;
27
- this.connectionRepository = connectionRepository;
27
+ this.environmentRepository = environmentRepository;
28
28
  this.gitService = gitService;
29
29
  this.cipher = cipher;
30
30
  this.gitHosts = gitHosts;
@@ -103,8 +103,8 @@ let PromotionProvidersService = class PromotionProvidersService {
103
103
  }
104
104
  async delete(id) {
105
105
  await this.getEntity(id);
106
- if ((await this.connectionRepository.countByProviderId(id)) > 0) {
107
- throw new errors_1.ConflictError('This provider is used by a connection');
106
+ if ((await this.environmentRepository.countByProviderId(id)) > 0) {
107
+ throw new errors_1.ConflictError('This provider is used by a promotion environment');
108
108
  }
109
109
  await (0, promotion_conflicts_1.mapPromotionConflicts)(async () => await this.providerRepository.deleteProvider(id));
110
110
  }
@@ -255,7 +255,7 @@ let PromotionProvidersService = class PromotionProvidersService {
255
255
  exports.PromotionProvidersService = PromotionProvidersService;
256
256
  exports.PromotionProvidersService = PromotionProvidersService = __decorate([
257
257
  (0, di_1.Service)(),
258
- __metadata("design:paramtypes", [promotion_provider_repository_1.PromotionProviderRepository, promotion_connection_repository_1.PromotionConnectionRepository, promotions_git_service_1.PromotionsGitService, n8n_core_1.Cipher, git_host_clients_1.GitHostClients])
258
+ __metadata("design:paramtypes", [promotion_provider_repository_1.PromotionProviderRepository, promotion_environment_repository_1.PromotionEnvironmentRepository, promotions_git_service_1.PromotionsGitService, n8n_core_1.Cipher, git_host_clients_1.GitHostClients])
259
259
  ], PromotionProvidersService);
260
260
  function unreadableCredentialsError() {
261
261
  return new errors_1.BadRequestError('The stored provider credentials cannot be read. Update the provider to replace them.');
@@ -1 +1 @@
1
- {"version":3,"file":"promotion-providers.service.js","sourceRoot":"","sources":["../../../src/modules/promotions.ee/promotion-providers.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,8CAMwB;AACxB,gCAAkC;AAClC,uCAAkC;AAClC,+CAAyC;AAEzC,wCAA4E;AAG5E,6GAAwG;AACxG,yGAAoG;AACpG,mEAA8D;AAE9D,+DAA8D;AAC9D,qEAAgE;AAChE,yDAI4B;AAOrB,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACrC,YACkB,kBAA+C,EAC/C,oBAAmD,EACnD,UAAgC,EAChC,MAAc,EACd,QAAwB;kCAJxB,kBAAkB;oCAClB,oBAAoB;0BACpB,UAAU;sBACV,MAAM;wBACN,QAAQ;IACvB,CAAC;IAEJ,K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C;CACD,CAAA;;oCA/SY,yBAAyB;IADrC,IAAA,YAAO,GAAE;qCAG6B,2DAA2B,EACzB,+DAA6B,EACvC,6CAAoB,EACxB,iBAAM,EACJ,iCAAc;GAN9B,yBAAyB,CA+SrC;AAGD,SAAS,0BAA0B;IAClC,OAAO,IAAI,wBAAe,CACzB,sFAAsF,CACtF,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"promotion-providers.service.js","sourceRoot":"","sources":["../../../src/modules/promotions.ee/promotion-providers.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,8CAMwB;AACxB,gCAAkC;AAClC,uCAAkC;AAClC,+CAAyC;AAEzC,wCAA4E;AAG5E,+GAA0G;AAC1G,yGAAoG;AACpG,mEAA8D;AAE9D,+DAA8D;AAC9D,qEAAgE;AAChE,yDAI4B;AAOrB,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACrC,YACkB,kBAA+C,EAC/C,qBAAqD,EACrD,UAAgC,EAChC,MAAc,EACd,QAAwB;kCAJxB,kBAAkB;qCAClB,qBAAqB;0BACrB,UAAU;sBACV,MAAM;wBACN,QAAQ;IACvB,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAAiC;QAC7C,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACzF,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAC7D,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,IAAI,EACV,UAAU,CACV,CAAC;QACF,MAAM,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;QAC/D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;QACxD,MAAM,QAAQ,GAAG,MAAM,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;IAGO,uBAAuB,CAAC,QAAgB,EAAE,QAAgB;QACjE,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YAClE,MAAM,IAAI,wBAAe,CAAC,4CAA4C,CAAC,CAAC;QACzE,CAAC;IACF,CAAC;IAEO,WAAW,CAAC,QAA2B;QAC9C,MAAM,MAAM,GAAG,0CAA8B,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACzE,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,CAAC;IAGO,aAAa,CAAC,QAA2B;QAChD,MAAM,MAAM,GAAG,0CAA8B,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACzE,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;IACzD,CAAC;CACD,CAAA;;oCA/SY,yBAAyB;IADrC,IAAA,YAAO,GAAE;qCAG6B,2DAA2B,EACxB,iEAA8B,EACzC,6CAAoB,EACxB,iBAAM,EACJ,iCAAc;GAN9B,yBAAyB,CA+SrC;AAGD,SAAS,0BAA0B;IAClC,OAAO,IAAI,wBAAe,CACzB,sFAAsF,CACtF,CAAC;AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type PromotionResourceDetails, type PromotionReviewChanges, type PromotionReviewDetailsRequestDto } from '@n8n/api-types';
2
+ import type { User } from '@n8n/db';
3
+ import { PromotionReviewRepository } from './database/repositories/promotion-review.repository';
4
+ import { GitLabMergeRequestClient } from './git-hosts/gitlab-merge-request.client';
5
+ import { PromotionReviewHostResolver } from './promotion-review-host.resolver';
6
+ import { PromotionReviewInboxService } from './promotion-review-inbox.service';
7
+ import { PromotionsService } from './promotions.service';
8
+ export declare class PromotionReviewChangesService {
9
+ private readonly reviewRepository;
10
+ private readonly reviewInbox;
11
+ private readonly hostResolver;
12
+ private readonly mergeRequests;
13
+ private readonly promotionsService;
14
+ constructor(reviewRepository: PromotionReviewRepository, reviewInbox: PromotionReviewInboxService, hostResolver: PromotionReviewHostResolver, mergeRequests: GitLabMergeRequestClient, promotionsService: PromotionsService);
15
+ getChanges(reviewId: string): Promise<PromotionReviewChanges>;
16
+ getDetails(user: User, reviewId: string, { baselineCommitSha, headCommitSha, keys }: PromotionReviewDetailsRequestDto): Promise<PromotionResourceDetails>;
17
+ private findReview;
18
+ private readMergeRequest;
19
+ }
@@ -0,0 +1,186 @@
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.PromotionReviewChangesService = void 0;
13
+ const api_types_1 = require("@n8n/api-types");
14
+ const di_1 = require("@n8n/di");
15
+ const errors_1 = require("@n8n/errors");
16
+ const permissions_1 = require("@n8n/permissions");
17
+ const n8n_workflow_1 = require("n8n-workflow");
18
+ const hashing_package_writer_1 = require("../../modules/n8n-packages/io/hashing-package-writer");
19
+ const constants_1 = require("../../modules/n8n-packages/spec/constants");
20
+ const constants_2 = require("./constants");
21
+ const promotion_review_repository_1 = require("./database/repositories/promotion-review.repository");
22
+ const gitlab_merge_request_client_1 = require("./git-hosts/gitlab-merge-request.client");
23
+ const promotion_change_service_1 = require("./promotion-change.service");
24
+ const promotion_preview_1 = require("./promotion-preview");
25
+ const promotion_review_host_resolver_1 = require("./promotion-review-host.resolver");
26
+ const promotion_review_inbox_service_1 = require("./promotion-review-inbox.service");
27
+ const promotions_service_1 = require("./promotions.service");
28
+ const MANIFEST_PATH = `${constants_2.PACKAGE_SUBFOLDER}/${constants_1.MANIFEST_FILE}`;
29
+ let PromotionReviewChangesService = class PromotionReviewChangesService {
30
+ constructor(reviewRepository, reviewInbox, hostResolver, mergeRequests, promotionsService) {
31
+ this.reviewRepository = reviewRepository;
32
+ this.reviewInbox = reviewInbox;
33
+ this.hostResolver = hostResolver;
34
+ this.mergeRequests = mergeRequests;
35
+ this.promotionsService = promotionsService;
36
+ }
37
+ async getChanges(reviewId) {
38
+ const target = await this.findReview(reviewId);
39
+ const mergeRequest = await this.readMergeRequest(target);
40
+ const headCommitSha = mergeRequest.sha ?? mergeRequest.diff_refs?.head_sha;
41
+ if (!headCommitSha) {
42
+ throw new errors_1.BadRequestError('GitLab did not report the head commit of the merge request.');
43
+ }
44
+ const commits = await this.promotionsService.readReviewCommits(target.environment.id, {
45
+ headRef: target.headRef,
46
+ headCommitSha,
47
+ baseline: baselineOf(mergeRequest),
48
+ });
49
+ const [base, head] = [await readSide(commits.baseline), await readSide(commits.head)];
50
+ const commitShas = {
51
+ baselineCommitSha: commits.baseline.commitSha,
52
+ headCommitSha: commits.head.commitSha,
53
+ };
54
+ const warnings = [];
55
+ if (base.manifestUnreadable)
56
+ warnings.push('baselineManifestUnreadable');
57
+ if (head.manifestUnreadable)
58
+ warnings.push('headManifestUnreadable');
59
+ if (warnings.length > 0)
60
+ return { ...commitShas, resources: [], dependencies: [], warnings };
61
+ const projectIds = projectIdsOf(base.side.manifest, head.side.manifest);
62
+ const archiveState = await readArchiveState(commits.head, base.side, head.side, projectIds);
63
+ const { resources, dependencies } = (0, promotion_preview_1.buildPreview)({
64
+ operation: null,
65
+ projectIds,
66
+ base: base.side,
67
+ desired: head.side,
68
+ isArchived: (path) => archiveState.get(path) ?? false,
69
+ });
70
+ return { ...commitShas, resources, dependencies, warnings };
71
+ }
72
+ async getDetails(user, reviewId, { baselineCommitSha, headCommitSha, keys }) {
73
+ const target = await this.findReview(reviewId);
74
+ const commits = await this.promotionsService.readReviewCommits(target.environment.id, {
75
+ headRef: target.headRef,
76
+ headCommitSha,
77
+ baseline: { commitSha: baselineCommitSha },
78
+ });
79
+ const baseManifest = await readManifest(commits.baseline);
80
+ const headManifest = await readManifest(commits.head);
81
+ const projectIds = projectIdsOf(baseManifest, headManifest);
82
+ const baseIndex = (0, promotion_preview_1.indexProjects)({ manifest: baseManifest, blobByPath: new Map() }, projectIds);
83
+ const headIndex = (0, promotion_preview_1.indexProjects)({ manifest: headManifest, blobByPath: new Map() }, projectIds);
84
+ const baseContents = await commits.baseline.readFiles(keys.flatMap((key) => baseIndex.get(key)?.path ?? []));
85
+ const headContents = await commits.head.readFiles(keys.flatMap((key) => headIndex.get(key)?.path ?? []));
86
+ const canSeeVariableValues = (0, permissions_1.hasGlobalScope)(user, 'variable:list');
87
+ const details = keys.flatMap((key) => {
88
+ const before = baseIndex.get(key);
89
+ const after = headIndex.get(key);
90
+ const resource = after ?? before;
91
+ if (!resource)
92
+ return [];
93
+ return [
94
+ (0, promotion_change_service_1.toDetail)({
95
+ key,
96
+ type: resource.type,
97
+ before: detailSide(before && baseContents.get(before.path)),
98
+ after: detailSide(after && headContents.get(after.path)),
99
+ hideVariableValues: resource.type === 'variable' && !canSeeVariableValues,
100
+ }),
101
+ ];
102
+ });
103
+ const missingKeys = keys.filter((key) => !baseIndex.has(key) && !headIndex.has(key));
104
+ return { details, missingKeys };
105
+ }
106
+ async findReview(reviewId) {
107
+ if (!this.reviewInbox.isEnabled()) {
108
+ throw new errors_1.ForbiddenError('Promotion reviews are not enabled.');
109
+ }
110
+ const review = await this.reviewRepository.findByIdWithRelations(reviewId);
111
+ if (!review)
112
+ throw new errors_1.NotFoundError('Promotion review not found.');
113
+ const { environment, remoteReviewId } = review;
114
+ if (!environment || !remoteReviewId) {
115
+ throw new errors_1.BadRequestError('The environment of this promotion review was deleted.');
116
+ }
117
+ const ref = (0, gitlab_merge_request_client_1.parseGitLabReviewId)(remoteReviewId);
118
+ return { review, environment, ref, headRef: (0, gitlab_merge_request_client_1.gitLabReviewHeadRef)(ref) };
119
+ }
120
+ async readMergeRequest({ review, environment, ref }) {
121
+ const access = await this.hostResolver.resolveForEnvironment(environment, review.type);
122
+ if (!access) {
123
+ throw new errors_1.BadRequestError('The environment of this promotion review no longer uses GitLab.');
124
+ }
125
+ const mergeRequest = await this.mergeRequests.getMergeRequest(access, ref);
126
+ if (mergeRequest.source_branch !== newestBranchName(review)) {
127
+ throw new errors_1.NotFoundError('GitLab could not find the merge request of this promotion.');
128
+ }
129
+ return mergeRequest;
130
+ }
131
+ };
132
+ exports.PromotionReviewChangesService = PromotionReviewChangesService;
133
+ exports.PromotionReviewChangesService = PromotionReviewChangesService = __decorate([
134
+ (0, di_1.Service)(),
135
+ __metadata("design:paramtypes", [promotion_review_repository_1.PromotionReviewRepository, promotion_review_inbox_service_1.PromotionReviewInboxService, promotion_review_host_resolver_1.PromotionReviewHostResolver, gitlab_merge_request_client_1.GitLabMergeRequestClient, promotions_service_1.PromotionsService])
136
+ ], PromotionReviewChangesService);
137
+ function baselineOf(mergeRequest) {
138
+ if (mergeRequest.state === 'opened' || mergeRequest.state === 'locked') {
139
+ return { targetBranchName: mergeRequest.target_branch };
140
+ }
141
+ const commitSha = mergeRequest.diff_refs?.base_sha;
142
+ if (!commitSha) {
143
+ throw new errors_1.BadRequestError('GitLab did not report the base commit of the merge request.');
144
+ }
145
+ return { commitSha, targetBranchName: mergeRequest.target_branch };
146
+ }
147
+ function newestBranchName({ runs }) {
148
+ const newest = runs.toSorted((a, b) => b.createdAt.getTime() - a.createdAt.getTime() || b.id.localeCompare(a.id))[0];
149
+ if (!newest)
150
+ return null;
151
+ const details = api_types_1.promotionRunDetailsSchemas[newest.type].safeParse(newest.details);
152
+ return details.success ? details.data.branchName : null;
153
+ }
154
+ async function readManifest(commit) {
155
+ return (0, promotion_change_service_1.parsePackageManifest)((await commit.readFiles([MANIFEST_PATH])).get(MANIFEST_PATH));
156
+ }
157
+ async function readSide(commit) {
158
+ const blobByPath = await commit.listFiles();
159
+ const manifest = await readManifest(commit);
160
+ return { side: { manifest, blobByPath }, manifestUnreadable: !manifest && blobByPath.size > 0 };
161
+ }
162
+ function projectIdsOf(...manifests) {
163
+ return [
164
+ ...new Set(manifests.flatMap((manifest) => manifest?.projects?.map(({ id }) => id) ?? [])),
165
+ ];
166
+ }
167
+ async function readArchiveState(head, base, desired, projectIds) {
168
+ const baseIndex = (0, promotion_preview_1.indexProjects)(base, projectIds);
169
+ const paths = [...(0, promotion_preview_1.indexProjects)(desired, projectIds).values()].flatMap((resource) => {
170
+ const before = baseIndex.get(resource.key);
171
+ return resource.type === 'workflow' && before && before.blobSha !== resource.blobSha
172
+ ? [resource.path]
173
+ : [];
174
+ });
175
+ const files = await head.readFiles(paths);
176
+ return new Map([...files].map(([path, raw]) => [
177
+ path,
178
+ (0, n8n_workflow_1.jsonParse)(raw, { fallbackValue: undefined })?.isArchived ?? false,
179
+ ]));
180
+ }
181
+ function detailSide(content) {
182
+ return content === undefined
183
+ ? { content: null, blobSha: null }
184
+ : { content, blobSha: (0, hashing_package_writer_1.gitBlobSha)(content) };
185
+ }
186
+ //# sourceMappingURL=promotion-review-changes.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotion-review-changes.service.js","sourceRoot":"","sources":["../../../src/modules/promotions.ee/promotion-review-changes.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAQwB;AAExB,gCAAkC;AAClC,wCAA6E;AAC7E,kDAAkD;AAClD,+CAAyC;AAEzC,6FAA8E;AAC9E,qEAAsE;AAGt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AAE,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,IAAI,KAAK;KACrF,CAAC,CACF,CAAC;AACH,CAAC;AAED,SAAS,UAAU,CAAC,OAA2B;IAC9C,OAAO,OAAO,KAAK,SAAS;QAC3B,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;QAClC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,IAAA,mCAAU,EAAC,OAAO,CAAC,EAAE,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type PromotionBlocker } from '@n8n/api-types';
2
+ import { Logger } from '@n8n/backend-common';
3
+ import type { PromotionRun } from './database/entities/promotion-run.entity';
4
+ import { PromotionReviewRepository } from './database/repositories/promotion-review.repository';
5
+ import { PromotionRunRepository } from './database/repositories/promotion-run.repository';
6
+ import { PromotionReviewInboxService } from './promotion-review-inbox.service';
7
+ export declare const PROMOTE_GATE_READ_TIMEOUT_MS = 3000;
8
+ export declare const reviewCoversProject: (runs: PromotionRun[], projectId: string) => boolean;
9
+ export declare class PromotionReviewGateService {
10
+ private readonly inbox;
11
+ private readonly reviewRepository;
12
+ private readonly runRepository;
13
+ private readonly logger;
14
+ constructor(inbox: PromotionReviewInboxService, reviewRepository: PromotionReviewRepository, runRepository: PromotionRunRepository, logger: Logger);
15
+ findPromoteBlocker(projectId: string, environmentId: string): Promise<PromotionBlocker | null>;
16
+ private readState;
17
+ }
@@ -0,0 +1,91 @@
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.PromotionReviewGateService = exports.reviewCoversProject = exports.PROMOTE_GATE_READ_TIMEOUT_MS = void 0;
13
+ const api_types_1 = require("@n8n/api-types");
14
+ const backend_common_1 = require("@n8n/backend-common");
15
+ const di_1 = require("@n8n/di");
16
+ const promotion_review_repository_1 = require("./database/repositories/promotion-review.repository");
17
+ const promotion_run_repository_1 = require("./database/repositories/promotion-run.repository");
18
+ const promotion_review_inbox_service_1 = require("./promotion-review-inbox.service");
19
+ exports.PROMOTE_GATE_READ_TIMEOUT_MS = 3_000;
20
+ const BLOCKING_STATES = ['open', 'changes_requested'];
21
+ const reviewCoversProject = (runs, projectId) => {
22
+ if (runs.length === 0)
23
+ return true;
24
+ const covered = new Set();
25
+ for (const run of runs) {
26
+ const parsed = api_types_1.promotionRunDetailsSchemas[run.type].safeParse(run.details);
27
+ const projectIds = parsed.success ? parsed.data.contents?.projectIds : undefined;
28
+ if (!projectIds)
29
+ return true;
30
+ for (const id of projectIds)
31
+ covered.add(id);
32
+ }
33
+ return covered.has(projectId);
34
+ };
35
+ exports.reviewCoversProject = reviewCoversProject;
36
+ let PromotionReviewGateService = class PromotionReviewGateService {
37
+ constructor(inbox, reviewRepository, runRepository, logger) {
38
+ this.inbox = inbox;
39
+ this.reviewRepository = reviewRepository;
40
+ this.runRepository = runRepository;
41
+ this.logger = logger;
42
+ this.logger = this.logger.scoped('promotions');
43
+ }
44
+ async findPromoteBlocker(projectId, environmentId) {
45
+ if (!this.inbox.isEnabled())
46
+ return null;
47
+ try {
48
+ const open = await this.reviewRepository.findOpenByEnvironmentId(environmentId);
49
+ if (open.length === 0)
50
+ return null;
51
+ const runs = await this.runRepository.findByReviewIds(open.map(({ id }) => id));
52
+ const runsOf = (review) => runs.filter((run) => run.reviewId === review.id);
53
+ const covering = open.filter((review) => (0, exports.reviewCoversProject)(runsOf(review), projectId));
54
+ const states = await Promise.all(covering.map(async (review) => await this.readState(review, runsOf(review))));
55
+ const blocking = covering.find((_, index) => states[index]);
56
+ return blocking ? { code: 'reviewOpen', reviewId: blocking.id } : null;
57
+ }
58
+ catch (error) {
59
+ this.logger.warn('Could not check for an open promotion review', { environmentId, error });
60
+ return null;
61
+ }
62
+ }
63
+ async readState(review, runs) {
64
+ try {
65
+ const result = await this.inbox.refreshState(review, runs, {
66
+ timeoutMs: exports.PROMOTE_GATE_READ_TIMEOUT_MS,
67
+ });
68
+ if (!result.ok) {
69
+ this.logger.warn('Could not read a promotion review from the host', {
70
+ reviewId: review.id,
71
+ remoteError: result.remoteError,
72
+ });
73
+ return false;
74
+ }
75
+ return BLOCKING_STATES.includes(result.state);
76
+ }
77
+ catch (error) {
78
+ this.logger.warn('Could not read a promotion review from the host', {
79
+ reviewId: review.id,
80
+ error,
81
+ });
82
+ return false;
83
+ }
84
+ }
85
+ };
86
+ exports.PromotionReviewGateService = PromotionReviewGateService;
87
+ exports.PromotionReviewGateService = PromotionReviewGateService = __decorate([
88
+ (0, di_1.Service)(),
89
+ __metadata("design:paramtypes", [promotion_review_inbox_service_1.PromotionReviewInboxService, promotion_review_repository_1.PromotionReviewRepository, promotion_run_repository_1.PromotionRunRepository, backend_common_1.Logger])
90
+ ], PromotionReviewGateService);
91
+ //# sourceMappingURL=promotion-review-gate.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotion-review-gate.service.js","sourceRoot":"","sources":["../../../src/modules/promotions.ee/promotion-review-gate.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAIwB;AACxB,wDAA6C;AAC7C,gCAAkC;AAIlC,qGAAgG;AAChG,+FAA0F;AAC1F,qFAA+E;AAGlE,QAAA,4BAA4B,GAAG,KAAK,CAAC;AAElD,MAAM,eAAe,GAA2B,CAAC,M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AAC;IAGO,KAAK,CAAC,SAAS,CAAC,MAAuB,EAAE,IAAoB;QACpE,IAAI,CAAC;YACJ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,EAAE;gBAC1D,SAAS,EAAE,QAAA,4BAA4B;aACvC,CAAC,CAAC;YACH,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;gBAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iDAAiD,EAAE;oBACnE,QAAQ,EAAE,MAAM,CAAC,EAAE;oBACnB,WAAW,EAAE,MAAM,CAAC,WAAW;iBAC/B,CAAC,CAAC;gBACH,OAAO,KAAK,CAAC;YACd,CAAC;YACD,OAAO,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iDAAiD,EAAE;gBACnE,QAAQ,EAAE,MAAM,CAAC,EAAE;gBACnB,KAAK;aACL,CAAC,CAAC;YACH,OAAO,KAAK,CAAC;QACd,CAAC;IACF,CAAC;CACD,CAAA;;qCAtDY,0BAA0B;IADtC,IAAA,YAAO,GAAE;qCAGgB,4DAA2B,EAChB,uDAAyB,EAC5B,iDAAsB,EAC7B,uBAAM;GALpB,0BAA0B,CAsDtC"}
@@ -0,0 +1,16 @@
1
+ import type { PromotionReviewType } from '@n8n/api-types';
2
+ import type { PromotionEnvironment } from './database/entities/promotion-environment.entity';
3
+ import type { GitHostAccess } from './git-hosts/git-host.types';
4
+ import { PromotionProvidersService } from './promotion-providers.service';
5
+ import type { PromotionOperationInput } from './promotions.types';
6
+ export type PromotionReviewHost = Readonly<{
7
+ access: GitHostAccess;
8
+ projectPath: string;
9
+ }>;
10
+ export declare class PromotionReviewHostResolver {
11
+ private readonly providersService;
12
+ constructor(providersService: PromotionProvidersService);
13
+ resolve(input: PromotionOperationInput): Promise<PromotionReviewHost | null>;
14
+ resolveForEnvironment(environment: PromotionEnvironment, type: PromotionReviewType): Promise<GitHostAccess | null>;
15
+ private accessFor;
16
+ }
@@ -0,0 +1,55 @@
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.PromotionReviewHostResolver = void 0;
13
+ const di_1 = require("@n8n/di");
14
+ const errors_1 = require("@n8n/errors");
15
+ const git_host_remote_1 = require("./git-hosts/git-host-remote");
16
+ const promotion_providers_service_1 = require("./promotion-providers.service");
17
+ let PromotionReviewHostResolver = class PromotionReviewHostResolver {
18
+ constructor(providersService) {
19
+ this.providersService = providersService;
20
+ }
21
+ async resolve(input) {
22
+ if (input.providerType !== 'gitlab')
23
+ return null;
24
+ const access = await this.accessFor(input.hostBaseUrl, {
25
+ authType: input.authType,
26
+ auth: input.encryptedAuth,
27
+ });
28
+ return {
29
+ access,
30
+ projectPath: (0, git_host_remote_1.repositoryPathFromUrl)(access.baseUrl, input.remote.remoteUrl),
31
+ };
32
+ }
33
+ async resolveForEnvironment(environment, type) {
34
+ const provider = await this.providersService.getEntity(environment.providerId);
35
+ if (provider.type !== type)
36
+ return null;
37
+ return await this.accessFor((0, git_host_remote_1.promotionHostBaseUrl)(provider), provider);
38
+ }
39
+ async accessFor(baseUrl, storedAuth) {
40
+ if (!baseUrl) {
41
+ throw new errors_1.BadRequestError('The stored provider config cannot be read. Update the provider to replace it.');
42
+ }
43
+ const credentials = await this.providersService.decryptCredentials(storedAuth);
44
+ if (credentials.authType !== 'token') {
45
+ throw new errors_1.BadRequestError('The stored provider credentials cannot be read. Update the provider to replace them.');
46
+ }
47
+ return { baseUrl, accessToken: credentials.password };
48
+ }
49
+ };
50
+ exports.PromotionReviewHostResolver = PromotionReviewHostResolver;
51
+ exports.PromotionReviewHostResolver = PromotionReviewHostResolver = __decorate([
52
+ (0, di_1.Service)(),
53
+ __metadata("design:paramtypes", [promotion_providers_service_1.PromotionProvidersService])
54
+ ], PromotionReviewHostResolver);
55
+ //# sourceMappingURL=promotion-review-host.resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotion-review-host.resolver.js","sourceRoot":"","sources":["../../../src/modules/promotions.ee/promotion-review-host.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAElC,wCAA8C;AAG9C,iEAA0F;AAE1F,+EAA0E;AAcnE,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACvC,YAA6B,gBAA2C;gCAA3C,gBAAgB;IAA8B,CAAC;IAE5E,KAAK,CAAC,OAAO,CAAC,KAA8B;QAC3C,IAAI,KAAK,CAAC,YAAY,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QAEjD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,EAAE;YACtD,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,IAAI,EAAE,KAAK,CAAC,aAAa;SACzB,CAAC,CAAC;QACH,OAAO;YACN,MAAM;YACN,WAAW,EAAE,IAAA,uCAAqB,EAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;SAC1E,CAAC;IACH,CAAC;IAGD,KAAK,CAAC,qBAAqB,CAC1B,WAAiC,EACjC,IAAyB;QAEzB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC/E,IAAI,QAAQ,CAAC,IAAI,KAAK,IAAI;YAAE,OAAO,IAAI,CAAC;QACxC,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,IAAA,sCAAoB,EAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC;IACvE,CAAC;IAEO,KAAK,CAAC,SAAS,CACtB,OAAsB,EACtB,UAAiE;QAEjE,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,MAAM,IAAI,wBAAe,CACxB,+EAA+E,CAC/E,CAAC;QACH,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC/E,IAAI,WAAW,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;YACtC,MAAM,IAAI,wBAAe,CACxB,sFAAsF,CACtF,CAAC;QACH,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAC;IACvD,CAAC;CACD,CAAA;;sCA7CY,2BAA2B;IADvC,IAAA,YAAO,GAAE;qCAEsC,uDAAyB;GAD5D,2BAA2B,CA6CvC"}
@@ -0,0 +1,45 @@
1
+ import { type ApprovePromotionReviewDto, type InboxCounts, type InboxPromotionReviewItem, type PromotionReviewRemoteError, type PromotionReviewState } from '@n8n/api-types';
2
+ import { LicenseState, Logger } from '@n8n/backend-common';
3
+ import type { User } from '@n8n/db';
4
+ import { SourceControlPreferencesService } from '../../modules/source-control.ee/source-control-preferences.service.ee';
5
+ import type { InboxSourceQuery } from '../inbox/inbox-source.registry';
6
+ import type { PromotionReview } from './database/entities/promotion-review.entity';
7
+ import type { PromotionRun } from './database/entities/promotion-run.entity';
8
+ import { PromotionReviewRepository } from './database/repositories/promotion-review.repository';
9
+ import { PromotionRunRepository } from './database/repositories/promotion-run.repository';
10
+ import { GitLabMergeRequestClient } from './git-hosts/gitlab-merge-request.client';
11
+ import { PromotionReviewHostResolver } from './promotion-review-host.resolver';
12
+ export type LiveReviewState = {
13
+ ok: true;
14
+ state: PromotionReviewState;
15
+ } | {
16
+ ok: false;
17
+ remoteError: PromotionReviewRemoteError;
18
+ };
19
+ export declare class PromotionReviewInboxService {
20
+ private readonly licenseState;
21
+ private readonly reviewRepository;
22
+ private readonly runRepository;
23
+ private readonly hostResolver;
24
+ private readonly mergeRequests;
25
+ private readonly logger;
26
+ private readonly sourceControlPreferences;
27
+ private readonly syncOnce;
28
+ private readonly liveReads;
29
+ constructor(licenseState: LicenseState, reviewRepository: PromotionReviewRepository, runRepository: PromotionRunRepository, hostResolver: PromotionReviewHostResolver, mergeRequests: GitLabMergeRequestClient, logger: Logger, sourceControlPreferences: SourceControlPreferencesService);
30
+ isEnabled(): boolean;
31
+ listForInbox(user: User, query: InboxSourceQuery): Promise<InboxPromotionReviewItem[]>;
32
+ countForInbox(user: User): Promise<InboxCounts>;
33
+ refreshState(review: PromotionReview, runs: PromotionRun[], { timeoutMs }: {
34
+ timeoutMs: number;
35
+ }): Promise<LiveReviewState>;
36
+ private readLive;
37
+ approve(user: User, reviewId: string, { headCommitSha }: ApprovePromotionReviewDto): Promise<InboxPromotionReviewItem>;
38
+ private mergeClaimed;
39
+ private syncOpenReviews;
40
+ private newestRuns;
41
+ private readRemote;
42
+ private readOne;
43
+ private readMergeRequest;
44
+ private applyHostState;
45
+ }