n8n 2.33.2 → 2.34.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 (982) hide show
  1. package/dist/active-executions.d.ts +2 -2
  2. package/dist/active-executions.js +18 -13
  3. package/dist/active-executions.js.map +1 -1
  4. package/dist/agent-library-bundle.js +158 -137
  5. package/dist/auth/auth.service.d.ts +1 -0
  6. package/dist/auth/auth.service.js +8 -1
  7. package/dist/auth/auth.service.js.map +1 -1
  8. package/dist/build.tsbuildinfo +1 -1
  9. package/dist/chat/chat-execution-manager.js +8 -5
  10. package/dist/chat/chat-execution-manager.js.map +1 -1
  11. package/dist/commands/base-command.js +3 -2
  12. package/dist/commands/base-command.js.map +1 -1
  13. package/dist/commands/import/workflow.js +1 -1
  14. package/dist/commands/import/workflow.js.map +1 -1
  15. package/dist/commands/start.d.ts +0 -1
  16. package/dist/commands/start.js +4 -32
  17. package/dist/commands/start.js.map +1 -1
  18. package/dist/constants/oauth2-triggers.d.ts +2 -0
  19. package/dist/constants/oauth2-triggers.js +11 -0
  20. package/dist/constants/oauth2-triggers.js.map +1 -0
  21. package/dist/controllers/api-keys.controller.js +0 -3
  22. package/dist/controllers/api-keys.controller.js.map +1 -1
  23. package/dist/controllers/e2e.controller.d.ts +7 -0
  24. package/dist/controllers/e2e.controller.js +12 -1
  25. package/dist/controllers/e2e.controller.js.map +1 -1
  26. package/dist/crash-journal.js +2 -2
  27. package/dist/crash-journal.js.map +1 -1
  28. package/dist/credentials/credentials.controller.d.ts +2 -0
  29. package/dist/credentials/credentials.controller.js +23 -4
  30. package/dist/credentials/credentials.controller.js.map +1 -1
  31. package/dist/credentials/credentials.service.d.ts +5 -1
  32. package/dist/credentials/credentials.service.js +45 -8
  33. package/dist/credentials/credentials.service.js.map +1 -1
  34. package/dist/credentials-helper.d.ts +3 -1
  35. package/dist/credentials-helper.js +39 -1
  36. package/dist/credentials-helper.js.map +1 -1
  37. package/dist/credentials-overwrites.d.ts +2 -1
  38. package/dist/credentials-overwrites.js +4 -5
  39. package/dist/credentials-overwrites.js.map +1 -1
  40. package/dist/environments.ee/variables/variables.service.ee.d.ts +4 -0
  41. package/dist/environments.ee/variables/variables.service.ee.js +10 -6
  42. package/dist/environments.ee/variables/variables.service.ee.js.map +1 -1
  43. package/dist/errors/http-error-serializers.js +10 -1
  44. package/dist/errors/http-error-serializers.js.map +1 -1
  45. package/dist/errors/response-errors/workflow-publish-blocked.error.d.ts +6 -0
  46. package/dist/errors/response-errors/workflow-publish-blocked.error.js +19 -0
  47. package/dist/errors/response-errors/workflow-publish-blocked.error.js.map +1 -0
  48. package/dist/errors/webhook-response-too-large.error.d.ts +7 -0
  49. package/dist/errors/webhook-response-too-large.error.js +11 -0
  50. package/dist/errors/webhook-response-too-large.error.js.map +1 -0
  51. package/dist/eventbus/event-message-classes/event-message-mcp.d.ts +33 -0
  52. package/dist/eventbus/event-message-classes/event-message-mcp.js +29 -0
  53. package/dist/eventbus/event-message-classes/event-message-mcp.js.map +1 -0
  54. package/dist/eventbus/event-message-classes/index.d.ts +6 -3
  55. package/dist/eventbus/event-message-classes/index.js +7 -1
  56. package/dist/eventbus/event-message-classes/index.js.map +1 -1
  57. package/dist/eventbus/message-event-bus/message-event-bus.d.ts +2 -0
  58. package/dist/eventbus/message-event-bus/message-event-bus.js +4 -0
  59. package/dist/eventbus/message-event-bus/message-event-bus.js.map +1 -1
  60. package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer.js +3 -0
  61. package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer.js.map +1 -1
  62. package/dist/events/maps/relay.event-map.d.ts +18 -1
  63. package/dist/events/maps/workflow-publication-metrics.event-map.d.ts +5 -0
  64. package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
  65. package/dist/events/relays/log-streaming.event-relay.js +33 -0
  66. package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
  67. package/dist/events/relays/telemetry.event-relay.js +10 -0
  68. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  69. package/dist/execution-lifecycle/execution-lifecycle-hooks.js +46 -18
  70. package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
  71. package/dist/executions/enqueued-execution-recovery.service.d.ts +21 -0
  72. package/dist/executions/enqueued-execution-recovery.service.js +79 -0
  73. package/dist/executions/enqueued-execution-recovery.service.js.map +1 -0
  74. package/dist/executions/execution-data/execution-data-json-store.d.ts +3 -6
  75. package/dist/executions/execution-data/execution-data-json-store.js +2 -15
  76. package/dist/executions/execution-data/execution-data-json-store.js.map +1 -1
  77. package/dist/executions/execution-persistence.js.map +1 -1
  78. package/dist/executions/execution-recovery.service.js +23 -12
  79. package/dist/executions/execution-recovery.service.js.map +1 -1
  80. package/dist/external-hooks.d.ts +3 -2
  81. package/dist/external-hooks.js.map +1 -1
  82. package/dist/instance-settings-loader/loaders/sso/oidc.instance-settings-loader.js +4 -0
  83. package/dist/instance-settings-loader/loaders/sso/oidc.instance-settings-loader.js.map +1 -1
  84. package/dist/interfaces.d.ts +6 -0
  85. package/dist/metrics/prometheus/scheduler-metrics.service.d.ts +7 -2
  86. package/dist/metrics/prometheus/scheduler-metrics.service.js +29 -1
  87. package/dist/metrics/prometheus/scheduler-metrics.service.js.map +1 -1
  88. package/dist/metrics/prometheus/workflow-publication-metrics.service.d.ts +1 -0
  89. package/dist/metrics/prometheus/workflow-publication-metrics.service.js +22 -1
  90. package/dist/metrics/prometheus/workflow-publication-metrics.service.js.map +1 -1
  91. package/dist/modules/agent-evals/agent-eval-case-generation.service.d.ts +25 -0
  92. package/dist/modules/agent-evals/agent-eval-case-generation.service.js +192 -0
  93. package/dist/modules/agent-evals/agent-eval-case-generation.service.js.map +1 -0
  94. package/dist/modules/agent-evals/agent-eval-rating.service.d.ts +23 -0
  95. package/dist/modules/agent-evals/agent-eval-rating.service.js +124 -0
  96. package/dist/modules/agent-evals/agent-eval-rating.service.js.map +1 -0
  97. package/dist/modules/agent-evals/agent-eval-record-mappers.d.ts +5 -0
  98. package/dist/modules/agent-evals/agent-eval-record-mappers.js +68 -0
  99. package/dist/modules/agent-evals/agent-eval-record-mappers.js.map +1 -0
  100. package/dist/modules/agent-evals/agent-eval-runner.service.d.ts +42 -0
  101. package/dist/modules/agent-evals/agent-eval-runner.service.js +409 -0
  102. package/dist/modules/agent-evals/agent-eval-runner.service.js.map +1 -0
  103. package/dist/modules/agent-evals/agent-eval.service.d.ts +31 -0
  104. package/dist/modules/agent-evals/agent-eval.service.js +138 -0
  105. package/dist/modules/agent-evals/agent-eval.service.js.map +1 -0
  106. package/dist/modules/agent-evals/agent-evals-flag-gate.d.ts +8 -0
  107. package/dist/{services/trigger-auth-identity-seeder-proxy.service.js → modules/agent-evals/agent-evals-flag-gate.js} +18 -16
  108. package/dist/modules/agent-evals/agent-evals-flag-gate.js.map +1 -0
  109. package/dist/modules/agent-evals/agent-evals-required-modules.d.ts +2 -0
  110. package/dist/modules/agent-evals/agent-evals-required-modules.js +12 -0
  111. package/dist/modules/agent-evals/agent-evals-required-modules.js.map +1 -0
  112. package/dist/modules/agent-evals/agent-evals.controller.d.ts +33 -0
  113. package/dist/modules/agent-evals/agent-evals.controller.js +172 -0
  114. package/dist/modules/agent-evals/agent-evals.controller.js.map +1 -0
  115. package/dist/modules/agent-evals/agent-evals.module.d.ts +4 -0
  116. package/dist/modules/agent-evals/agent-evals.module.js +24 -0
  117. package/dist/modules/agent-evals/agent-evals.module.js.map +1 -0
  118. package/dist/modules/agent-evals/case-generation/case-generation-prompt.d.ts +37 -0
  119. package/dist/modules/agent-evals/case-generation/case-generation-prompt.js +87 -0
  120. package/dist/modules/agent-evals/case-generation/case-generation-prompt.js.map +1 -0
  121. package/dist/modules/agent-evals/case-generation/dimensions.d.ts +11 -0
  122. package/dist/modules/agent-evals/case-generation/dimensions.js +54 -0
  123. package/dist/modules/agent-evals/case-generation/dimensions.js.map +1 -0
  124. package/dist/modules/agents/adapters/agents-credential-provider.d.ts +3 -1
  125. package/dist/modules/agents/adapters/agents-credential-provider.js +15 -0
  126. package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
  127. package/dist/modules/agents/agent-chat-attachment.service.d.ts +46 -0
  128. package/dist/modules/agents/agent-chat-attachment.service.js +144 -0
  129. package/dist/modules/agents/agent-chat-attachment.service.js.map +1 -0
  130. package/dist/modules/agents/agent-chat.controller.d.ts +15 -1
  131. package/dist/modules/agents/agent-chat.controller.js +177 -34
  132. package/dist/modules/agents/agent-chat.controller.js.map +1 -1
  133. package/dist/modules/agents/agent-config.service.d.ts +10 -3
  134. package/dist/modules/agents/agent-config.service.js +44 -5
  135. package/dist/modules/agents/agent-config.service.js.map +1 -1
  136. package/dist/modules/agents/agent-custom-tools.service.d.ts +7 -3
  137. package/dist/modules/agents/agent-custom-tools.service.js +44 -7
  138. package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
  139. package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +14 -2
  140. package/dist/modules/agents/agent-execution-orchestrator.service.js +85 -9
  141. package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
  142. package/dist/modules/agents/agent-execution.service.d.ts +4 -1
  143. package/dist/modules/agents/agent-execution.service.js +7 -2
  144. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  145. package/dist/modules/agents/agent-integration-persistence.service.d.ts +14 -7
  146. package/dist/modules/agents/agent-integration-persistence.service.js +35 -7
  147. package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
  148. package/dist/modules/agents/agent-integrations.controller.d.ts +1 -9
  149. package/dist/modules/agents/agent-integrations.controller.js +12 -16
  150. package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
  151. package/dist/modules/agents/agent-knowledge-file-store.d.ts +24 -0
  152. package/dist/modules/agents/agent-knowledge-file-store.js +100 -0
  153. package/dist/modules/agents/agent-knowledge-file-store.js.map +1 -0
  154. package/dist/modules/agents/agent-knowledge-retrieval.d.ts +3 -1
  155. package/dist/modules/agents/agent-knowledge-retrieval.js +1 -1
  156. package/dist/modules/agents/agent-knowledge-retrieval.js.map +1 -1
  157. package/dist/modules/agents/agent-knowledge-sandbox.service.d.ts +4 -3
  158. package/dist/modules/agents/agent-knowledge-sandbox.service.js +17 -8
  159. package/dist/modules/agents/agent-knowledge-sandbox.service.js.map +1 -1
  160. package/dist/modules/agents/agent-knowledge-storage.d.ts +0 -1
  161. package/dist/modules/agents/agent-knowledge-storage.js +0 -10
  162. package/dist/modules/agents/agent-knowledge-storage.js.map +1 -1
  163. package/dist/modules/agents/agent-knowledge.service.d.ts +3 -4
  164. package/dist/modules/agents/agent-knowledge.service.js +25 -27
  165. package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
  166. package/dist/modules/agents/agent-mcp-access.controller.d.ts +14 -0
  167. package/dist/modules/agents/agent-mcp-access.controller.js +49 -0
  168. package/dist/modules/agents/agent-mcp-access.controller.js.map +1 -0
  169. package/dist/modules/agents/agent-mcp-access.service.d.ts +22 -0
  170. package/dist/modules/agents/agent-mcp-access.service.js +83 -0
  171. package/dist/modules/agents/agent-mcp-access.service.js.map +1 -0
  172. package/dist/modules/agents/agent-message-mapper.js +9 -0
  173. package/dist/modules/agents/agent-message-mapper.js.map +1 -1
  174. package/dist/modules/agents/agent-model-catalog.service.d.ts +1 -1
  175. package/dist/modules/agents/agent-model-catalog.service.js +22 -7
  176. package/dist/modules/agents/agent-model-catalog.service.js.map +1 -1
  177. package/dist/modules/agents/agent-modification-telemetry.service.d.ts +25 -0
  178. package/dist/modules/agents/agent-modification-telemetry.service.js +119 -0
  179. package/dist/modules/agents/agent-modification-telemetry.service.js.map +1 -0
  180. package/dist/modules/agents/agent-publish.controller.js +4 -4
  181. package/dist/modules/agents/agent-publish.controller.js.map +1 -1
  182. package/dist/modules/agents/agent-publish.service.d.ts +23 -9
  183. package/dist/modules/agents/agent-publish.service.js +146 -33
  184. package/dist/modules/agents/agent-publish.service.js.map +1 -1
  185. package/dist/modules/agents/agent-runtime-cache.service.js +1 -1
  186. package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
  187. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +6 -2
  188. package/dist/modules/agents/agent-runtime-reconstruction.service.js +16 -6
  189. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
  190. package/dist/modules/agents/agent-setup-completion.service.d.ts +19 -0
  191. package/dist/modules/agents/agent-setup-completion.service.js +79 -0
  192. package/dist/modules/agents/agent-setup-completion.service.js.map +1 -0
  193. package/dist/modules/agents/agent-skills.service.d.ts +8 -6
  194. package/dist/modules/agents/agent-skills.service.js +55 -12
  195. package/dist/modules/agents/agent-skills.service.js.map +1 -1
  196. package/dist/modules/agents/agent-sse-stream.js +35 -0
  197. package/dist/modules/agents/agent-sse-stream.js.map +1 -1
  198. package/dist/modules/agents/agent-task.service.d.ts +7 -5
  199. package/dist/modules/agents/agent-task.service.js +56 -21
  200. package/dist/modules/agents/agent-task.service.js.map +1 -1
  201. package/dist/modules/agents/agent-tasks.controller.js +18 -6
  202. package/dist/modules/agents/agent-tasks.controller.js.map +1 -1
  203. package/dist/modules/agents/agent-test-chat.service.d.ts +3 -1
  204. package/dist/modules/agents/agent-test-chat.service.js +7 -3
  205. package/dist/modules/agents/agent-test-chat.service.js.map +1 -1
  206. package/dist/modules/agents/agent-validation.service.d.ts +5 -2
  207. package/dist/modules/agents/agent-validation.service.js +22 -4
  208. package/dist/modules/agents/agent-validation.service.js.map +1 -1
  209. package/dist/modules/agents/agent-workflow-execution.service.d.ts +1 -1
  210. package/dist/modules/agents/agent-workflow-execution.service.js +13 -7
  211. package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
  212. package/dist/modules/agents/agents-config.controller.d.ts +1 -5
  213. package/dist/modules/agents/agents-config.controller.js +7 -2
  214. package/dist/modules/agents/agents-config.controller.js.map +1 -1
  215. package/dist/modules/agents/agents-skills.controller.js +12 -3
  216. package/dist/modules/agents/agents-skills.controller.js.map +1 -1
  217. package/dist/modules/agents/agents-tools.service.js +1 -5
  218. package/dist/modules/agents/agents-tools.service.js.map +1 -1
  219. package/dist/modules/agents/agents.controller.js +3 -1
  220. package/dist/modules/agents/agents.controller.js.map +1 -1
  221. package/dist/modules/agents/agents.module.d.ts +1 -1
  222. package/dist/modules/agents/agents.module.js +10 -11
  223. package/dist/modules/agents/agents.module.js.map +1 -1
  224. package/dist/modules/agents/agents.service.d.ts +12 -4
  225. package/dist/modules/agents/agents.service.js +52 -4
  226. package/dist/modules/agents/agents.service.js.map +1 -1
  227. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +2 -2
  228. package/dist/modules/agents/builder/agents-builder-prompts.js +13 -11
  229. package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
  230. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +3 -6
  231. package/dist/modules/agents/builder/agents-builder-tools.service.js +37 -84
  232. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  233. package/dist/modules/agents/builder/agents-builder.service.d.ts +3 -7
  234. package/dist/modules/agents/builder/agents-builder.service.js +27 -34
  235. package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
  236. package/dist/modules/agents/builder/builder-config-telemetry.d.ts +1 -10
  237. package/dist/modules/agents/builder/builder-config-telemetry.js +0 -64
  238. package/dist/modules/agents/builder/builder-config-telemetry.js.map +1 -1
  239. package/dist/modules/agents/builder/builder-model-live-lookup.service.d.ts +5 -1
  240. package/dist/modules/agents/builder/builder-model-live-lookup.service.js +23 -2
  241. package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
  242. package/dist/modules/agents/builder/format-preview-context.js +3 -0
  243. package/dist/modules/agents/builder/format-preview-context.js.map +1 -1
  244. package/dist/modules/agents/builder/get-resource-locator-options.tool.d.ts +2 -2
  245. package/dist/modules/agents/builder/interactive/configure-channel.tool.js +6 -5
  246. package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -1
  247. package/dist/modules/agents/builder/interactive/finish-setup.tool.d.ts +0 -5
  248. package/dist/modules/agents/builder/interactive/finish-setup.tool.js +28 -45
  249. package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -1
  250. package/dist/modules/agents/builder/interactive/resolve-llm.tool.d.ts +1 -0
  251. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +88 -8
  252. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
  253. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +1 -1
  254. package/dist/modules/agents/builder/prompts/initial-build.prompt.d.ts +1 -1
  255. package/dist/modules/agents/builder/prompts/initial-build.prompt.js +8 -15
  256. package/dist/modules/agents/builder/prompts/initial-build.prompt.js.map +1 -1
  257. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +2 -2
  258. package/dist/modules/agents/builder/skills/external-services.skill.js +10 -11
  259. package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -1
  260. package/dist/modules/agents/entities/agent-chat-attachment.entity.d.ts +16 -0
  261. package/dist/modules/agents/entities/agent-chat-attachment.entity.js +70 -0
  262. package/dist/modules/agents/entities/agent-chat-attachment.entity.js.map +1 -0
  263. package/dist/modules/agents/entities/agent-execution.entity.d.ts +6 -0
  264. package/dist/modules/agents/entities/agent-execution.entity.js +4 -0
  265. package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
  266. package/dist/modules/agents/entities/agent-file.entity.d.ts +3 -2
  267. package/dist/modules/agents/entities/agent-file.entity.js +6 -3
  268. package/dist/modules/agents/entities/agent-file.entity.js.map +1 -1
  269. package/dist/modules/agents/entities/agent.entity.d.ts +2 -0
  270. package/dist/modules/agents/entities/agent.entity.js +8 -0
  271. package/dist/modules/agents/entities/agent.entity.js.map +1 -1
  272. package/dist/modules/agents/execution-log/agent-execution-log-store.d.ts +3 -6
  273. package/dist/modules/agents/execution-log/agent-execution-log-store.js +2 -15
  274. package/dist/modules/agents/execution-log/agent-execution-log-store.js.map +1 -1
  275. package/dist/modules/agents/execution-recorder.d.ts +11 -0
  276. package/dist/modules/agents/execution-recorder.js +69 -0
  277. package/dist/modules/agents/execution-recorder.js.map +1 -1
  278. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +6 -2
  279. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
  280. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +8 -2
  281. package/dist/modules/agents/integrations/agent-chat-bridge.js +114 -16
  282. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  283. package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.d.ts +4 -1
  284. package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js +40 -7
  285. package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js.map +1 -1
  286. package/dist/modules/agents/integrations/agent-chat-integration.d.ts +16 -1
  287. package/dist/modules/agents/integrations/agent-chat-integration.js +1 -0
  288. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  289. package/dist/modules/agents/integrations/agent-chat-message-context.d.ts +2 -1
  290. package/dist/modules/agents/integrations/agent-chat-message-context.js +1 -0
  291. package/dist/modules/agents/integrations/agent-chat-message-context.js.map +1 -1
  292. package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +2 -0
  293. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +27 -12
  294. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
  295. package/dist/modules/agents/integrations/agent-chat-suspension-cards.d.ts +7 -0
  296. package/dist/modules/agents/integrations/agent-chat-suspension-cards.js +1 -0
  297. package/dist/modules/agents/integrations/agent-chat-suspension-cards.js.map +1 -1
  298. package/dist/modules/agents/integrations/callback-store.d.ts +4 -1
  299. package/dist/modules/agents/integrations/callback-store.js +11 -3
  300. package/dist/modules/agents/integrations/callback-store.js.map +1 -1
  301. package/dist/modules/agents/integrations/chat-integration.service.d.ts +10 -4
  302. package/dist/modules/agents/integrations/chat-integration.service.js +108 -35
  303. package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
  304. package/dist/modules/agents/integrations/integration-action-executor.d.ts +2 -0
  305. package/dist/modules/agents/integrations/integration-action-executor.js +52 -1
  306. package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
  307. package/dist/modules/agents/integrations/integration-context-query-executor.js +2 -1
  308. package/dist/modules/agents/integrations/integration-context-query-executor.js.map +1 -1
  309. package/dist/modules/agents/integrations/integration-error-codes.d.ts +1 -0
  310. package/dist/modules/agents/integrations/integration-error-codes.js +1 -0
  311. package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -1
  312. package/dist/modules/agents/integrations/integration-tool-definitions.js +20 -0
  313. package/dist/modules/agents/integrations/integration-tool-definitions.js.map +1 -1
  314. package/dist/modules/agents/integrations/integration-tool-descriptions.js +6 -0
  315. package/dist/modules/agents/integrations/integration-tool-descriptions.js.map +1 -1
  316. package/dist/modules/agents/integrations/integration-tool-execution.js +5 -0
  317. package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
  318. package/dist/modules/agents/integrations/integration-tool-factory.d.ts +7 -7
  319. package/dist/modules/agents/integrations/integration-tool-factory.js +1 -1
  320. package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
  321. package/dist/modules/agents/integrations/integration-tool-schema.d.ts +11 -8
  322. package/dist/modules/agents/integrations/integration-tool-schema.js +7 -7
  323. package/dist/modules/agents/integrations/integration-tool-schema.js.map +1 -1
  324. package/dist/modules/agents/integrations/integration-tool-types.d.ts +3 -1
  325. package/dist/modules/agents/integrations/n8n-checkpoint-storage.d.ts +8 -6
  326. package/dist/modules/agents/integrations/n8n-checkpoint-storage.js +39 -14
  327. package/dist/modules/agents/integrations/n8n-checkpoint-storage.js.map +1 -1
  328. package/dist/modules/agents/integrations/n8n-memory.js +2 -1
  329. package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
  330. package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.d.ts +6 -1
  331. package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js +36 -24
  332. package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js.map +1 -1
  333. package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +6 -1
  334. package/dist/modules/agents/integrations/platforms/slack-integration.js +3 -0
  335. package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
  336. package/dist/modules/agents/integrations/platforms/slack-tool-definitions.d.ts +15 -2
  337. package/dist/modules/agents/integrations/platforms/slack-tool-definitions.js +9 -0
  338. package/dist/modules/agents/integrations/platforms/slack-tool-definitions.js.map +1 -1
  339. package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +4 -1
  340. package/dist/modules/agents/integrations/platforms/telegram-integration.js +22 -2
  341. package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
  342. package/dist/modules/agents/integrations/slack-app-setup.service.d.ts +1 -3
  343. package/dist/modules/agents/integrations/slack-app-setup.service.js +9 -10
  344. package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
  345. package/dist/modules/agents/json-config/from-json-config.js +4 -3
  346. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  347. package/dist/modules/agents/json-config/mcp-client-factory.d.ts +4 -0
  348. package/dist/modules/agents/json-config/mcp-client-factory.js +12 -0
  349. package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
  350. package/dist/modules/agents/json-config/model-config.d.ts +5 -2
  351. package/dist/modules/agents/json-config/model-config.js +15 -1
  352. package/dist/modules/agents/json-config/model-config.js.map +1 -1
  353. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +22 -3
  354. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
  355. package/dist/modules/agents/register-blob-byte-stores.d.ts +8 -0
  356. package/dist/modules/agents/register-blob-byte-stores.js +21 -0
  357. package/dist/modules/agents/register-blob-byte-stores.js.map +1 -0
  358. package/dist/modules/agents/repositories/agent-chat-attachment.repository.d.ts +19 -0
  359. package/dist/modules/agents/repositories/agent-chat-attachment.repository.js +38 -0
  360. package/dist/modules/agents/repositories/agent-chat-attachment.repository.js.map +1 -0
  361. package/dist/modules/agents/repositories/agent-checkpoint.repository.d.ts +6 -1
  362. package/dist/modules/agents/repositories/agent-checkpoint.repository.js +22 -3
  363. package/dist/modules/agents/repositories/agent-checkpoint.repository.js.map +1 -1
  364. package/dist/modules/agents/repositories/agent.repository.d.ts +23 -1
  365. package/dist/modules/agents/repositories/agent.repository.js +85 -5
  366. package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
  367. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +60 -1
  368. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
  369. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.d.ts +12 -3
  370. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js +124 -60
  371. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js.map +1 -1
  372. package/dist/modules/agents/tools/workflow-tool-factory.js +30 -1
  373. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  374. package/dist/modules/agents/utils/agent-capabilities.d.ts +14 -0
  375. package/dist/modules/agents/utils/agent-capabilities.js +35 -0
  376. package/dist/modules/agents/utils/agent-capabilities.js.map +1 -0
  377. package/dist/modules/agents/utils/agent-config-hash.d.ts +2 -0
  378. package/dist/modules/agents/utils/agent-config-hash.js +23 -0
  379. package/dist/modules/agents/utils/agent-config-hash.js.map +1 -0
  380. package/dist/modules/agents/utils/agent-execution-counter.d.ts +3 -1
  381. package/dist/modules/agents/utils/agent-execution-counter.js +4 -1
  382. package/dist/modules/agents/utils/agent-execution-counter.js.map +1 -1
  383. package/dist/modules/agents/utils/execution-to-message-mapper.d.ts +1 -1
  384. package/dist/modules/agents/utils/execution-to-message-mapper.js +33 -16
  385. package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
  386. package/dist/modules/agents/utils/inbound-attachments.d.ts +4 -0
  387. package/dist/modules/agents/utils/inbound-attachments.js +50 -0
  388. package/dist/modules/agents/utils/inbound-attachments.js.map +1 -0
  389. package/dist/modules/agents/utils/messages-envelope.js +5 -1
  390. package/dist/modules/agents/utils/messages-envelope.js.map +1 -1
  391. package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +5 -2
  392. package/dist/modules/breaking-changes/breaking-changes.controller.js +16 -2
  393. package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
  394. package/dist/modules/breaking-changes/breaking-changes.migration-registry.service.d.ts +10 -0
  395. package/dist/modules/breaking-changes/breaking-changes.migration-registry.service.js +42 -0
  396. package/dist/modules/breaking-changes/breaking-changes.migration-registry.service.js.map +1 -0
  397. package/dist/modules/breaking-changes/breaking-changes.migration.service.d.ts +31 -0
  398. package/dist/modules/breaking-changes/breaking-changes.migration.service.js +120 -0
  399. package/dist/modules/breaking-changes/breaking-changes.migration.service.js.map +1 -0
  400. package/dist/modules/breaking-changes/breaking-changes.module.js +2 -0
  401. package/dist/modules/breaking-changes/breaking-changes.module.js.map +1 -1
  402. package/dist/modules/breaking-changes/breaking-changes.service.d.ts +3 -2
  403. package/dist/modules/breaking-changes/breaking-changes.service.js +9 -13
  404. package/dist/modules/breaking-changes/breaking-changes.service.js.map +1 -1
  405. package/dist/modules/breaking-changes/group-nodes-by-type.d.ts +2 -0
  406. package/dist/modules/breaking-changes/group-nodes-by-type.js +15 -0
  407. package/dist/modules/breaking-changes/group-nodes-by-type.js.map +1 -0
  408. package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.d.ts +2 -0
  409. package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.js +24 -0
  410. package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.js.map +1 -0
  411. package/dist/modules/breaking-changes/migrations/index.d.ts +2 -0
  412. package/dist/modules/breaking-changes/migrations/index.js +6 -0
  413. package/dist/modules/breaking-changes/migrations/index.js.map +1 -0
  414. package/dist/modules/breaking-changes/migrations/node-migration.d.ts +10 -0
  415. package/dist/modules/breaking-changes/migrations/node-migration.js +3 -0
  416. package/dist/modules/breaking-changes/migrations/node-migration.js.map +1 -0
  417. package/dist/modules/breaking-changes/rules/index.d.ts +2 -0
  418. package/dist/modules/breaking-changes/rules/index.js +2 -0
  419. package/dist/modules/breaking-changes/rules/index.js.map +1 -1
  420. package/dist/modules/breaking-changes/rules/v3/ai-transform-deprecated.rule.d.ts +11 -0
  421. package/dist/modules/breaking-changes/rules/v3/ai-transform-deprecated.rule.js +53 -0
  422. package/dist/modules/breaking-changes/rules/v3/ai-transform-deprecated.rule.js.map +1 -0
  423. package/dist/modules/breaking-changes/rules/v3/execute-workflow-source-modes.rule.d.ts +10 -0
  424. package/dist/modules/breaking-changes/rules/v3/execute-workflow-source-modes.rule.js +62 -0
  425. package/dist/modules/breaking-changes/rules/v3/execute-workflow-source-modes.rule.js.map +1 -0
  426. package/dist/modules/chat-hub/chat-hub-execution.service.js +2 -1
  427. package/dist/modules/chat-hub/chat-hub-execution.service.js.map +1 -1
  428. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +0 -3
  429. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
  430. package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.d.ts +4 -2
  431. package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.js +7 -4
  432. package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.js.map +1 -1
  433. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.d.ts +2 -4
  434. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js +27 -20
  435. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
  436. package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.d.ts +24 -6
  437. package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.js +184 -43
  438. package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.js.map +1 -1
  439. package/dist/modules/insights/insights-collection.service.js +3 -0
  440. package/dist/modules/insights/insights-collection.service.js.map +1 -1
  441. package/dist/modules/insights/insights-compaction.service.js +2 -2
  442. package/dist/modules/insights/insights-compaction.service.js.map +1 -1
  443. package/dist/modules/instance-ai/eval/agent-execution.service.d.ts +1 -1
  444. package/dist/modules/instance-ai/eval/agent-execution.service.js +16 -7
  445. package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
  446. package/dist/modules/instance-ai/eval/execution.service.d.ts +6 -1
  447. package/dist/modules/instance-ai/eval/execution.service.js +45 -3
  448. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  449. package/dist/modules/instance-ai/eval/ledger-snapshot.d.ts +1 -0
  450. package/dist/modules/instance-ai/eval/ledger-snapshot.js +11 -0
  451. package/dist/modules/instance-ai/eval/ledger-snapshot.js.map +1 -0
  452. package/dist/modules/instance-ai/eval/llm-wire-server.js +26 -2
  453. package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -1
  454. package/dist/modules/instance-ai/eval/mock-handler.d.ts +3 -1
  455. package/dist/modules/instance-ai/eval/mock-handler.js +60 -2
  456. package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
  457. package/dist/modules/instance-ai/eval/mock-quirks.js +5 -4
  458. package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -1
  459. package/dist/modules/instance-ai/eval/openai-responses-envelope.js +11 -2
  460. package/dist/modules/instance-ai/eval/openai-responses-envelope.js.map +1 -1
  461. package/dist/modules/instance-ai/eval/pin-data-generator.d.ts +2 -1
  462. package/dist/modules/instance-ai/eval/pin-data-generator.js +28 -12
  463. package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
  464. package/dist/modules/instance-ai/eval/provider-shapes.js +101 -8
  465. package/dist/modules/instance-ai/eval/provider-shapes.js.map +1 -1
  466. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.d.ts +3 -1
  467. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js +8 -1
  468. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js.map +1 -1
  469. package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +2 -0
  470. package/dist/modules/instance-ai/eval/workflow-analysis.js +9 -0
  471. package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
  472. package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.js +3 -1
  473. package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.js.map +1 -1
  474. package/dist/modules/instance-ai/instance-ai-credit.service.js +2 -1
  475. package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
  476. package/dist/modules/instance-ai/instance-ai-error-reporter.service.d.ts +9 -2
  477. package/dist/modules/instance-ai/instance-ai-error-reporter.service.js +25 -11
  478. package/dist/modules/instance-ai/instance-ai-error-reporter.service.js.map +1 -1
  479. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +1 -1
  480. package/dist/modules/instance-ai/instance-ai.adapter.service.js +33 -21
  481. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  482. package/dist/modules/instance-ai/instance-ai.controller.js +1 -1
  483. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  484. package/dist/modules/instance-ai/instance-ai.service.js +160 -38
  485. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  486. package/dist/modules/instance-ai/node-definition-resolver.js +1 -5
  487. package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -1
  488. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.d.ts +2 -0
  489. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js +20 -0
  490. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -1
  491. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +5 -1
  492. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
  493. package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.d.ts +1 -0
  494. package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js +3 -0
  495. package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -1
  496. package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.d.ts +2 -0
  497. package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js +7 -2
  498. package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js.map +1 -1
  499. package/dist/modules/ldap.ee/helpers.ee.d.ts +2 -1
  500. package/dist/modules/ldap.ee/helpers.ee.js +11 -2
  501. package/dist/modules/ldap.ee/helpers.ee.js.map +1 -1
  502. package/dist/modules/ldap.ee/ldap.errors.d.ts +5 -0
  503. package/dist/modules/ldap.ee/ldap.errors.js +11 -0
  504. package/dist/modules/ldap.ee/ldap.errors.js.map +1 -0
  505. package/dist/modules/ldap.ee/ldap.service.ee.d.ts +2 -2
  506. package/dist/modules/ldap.ee/ldap.service.ee.js +29 -7
  507. package/dist/modules/ldap.ee/ldap.service.ee.js.map +1 -1
  508. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.d.ts +1 -1
  509. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js +10 -2
  510. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js.map +1 -1
  511. package/dist/modules/mcp/mcp-protected-resource.d.ts +4 -2
  512. package/dist/modules/mcp/mcp-protected-resource.js +17 -5
  513. package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
  514. package/dist/modules/mcp/mcp-scopes.d.ts +1 -0
  515. package/dist/modules/mcp/mcp-scopes.js +35 -7
  516. package/dist/modules/mcp/mcp-scopes.js.map +1 -1
  517. package/dist/modules/mcp/mcp-tool-availability.d.ts +3 -0
  518. package/dist/modules/mcp/mcp-tool-availability.js +7 -0
  519. package/dist/modules/mcp/mcp-tool-availability.js.map +1 -0
  520. package/dist/modules/mcp/mcp.constants.d.ts +1 -0
  521. package/dist/modules/mcp/mcp.constants.js +2 -1
  522. package/dist/modules/mcp/mcp.constants.js.map +1 -1
  523. package/dist/modules/mcp/mcp.controller.d.ts +1 -1
  524. package/dist/modules/mcp/mcp.controller.js +10 -18
  525. package/dist/modules/mcp/mcp.controller.js.map +1 -1
  526. package/dist/modules/mcp/mcp.service.d.ts +6 -2
  527. package/dist/modules/mcp/mcp.service.js +72 -4
  528. package/dist/modules/mcp/mcp.service.js.map +1 -1
  529. package/dist/modules/mcp/mcp.settings.controller.d.ts +4 -2
  530. package/dist/modules/mcp/mcp.settings.controller.js +6 -3
  531. package/dist/modules/mcp/mcp.settings.controller.js.map +1 -1
  532. package/dist/modules/mcp/mcp.types.d.ts +2 -1
  533. package/dist/modules/mcp/mcp.types.js.map +1 -1
  534. package/dist/modules/mcp/tools/agents/agent-reference.d.ts +9 -0
  535. package/dist/modules/mcp/tools/agents/agent-reference.js +169 -0
  536. package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -0
  537. package/dist/modules/mcp/tools/agents/agent-tools.service.d.ts +87 -0
  538. package/dist/modules/mcp/tools/agents/agent-tools.service.js +1157 -0
  539. package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -0
  540. package/dist/modules/mcp/tools/get-execution.tool.js +4 -4
  541. package/dist/modules/mcp/tools/get-execution.tool.js.map +1 -1
  542. package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +1 -1
  543. package/dist/modules/mcp/tools/get-workflow-details.tool.js +7 -4
  544. package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
  545. package/dist/modules/mcp/tools/get-workflow-version.tool.js +1 -1
  546. package/dist/modules/mcp/tools/get-workflow-version.tool.js.map +1 -1
  547. package/dist/modules/mcp/tools/list-credentials.tool.js +1 -1
  548. package/dist/modules/mcp/tools/list-credentials.tool.js.map +1 -1
  549. package/dist/modules/mcp/tools/list-tags.tool.js +3 -3
  550. package/dist/modules/mcp/tools/list-tags.tool.js.map +1 -1
  551. package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.js +3 -3
  552. package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.js.map +1 -1
  553. package/dist/modules/mcp/tools/publish-workflow.tool.js +14 -2
  554. package/dist/modules/mcp/tools/publish-workflow.tool.js.map +1 -1
  555. package/dist/modules/mcp/tools/schemas.d.ts +381 -0
  556. package/dist/modules/mcp/tools/schemas.js +25 -1
  557. package/dist/modules/mcp/tools/schemas.js.map +1 -1
  558. package/dist/modules/mcp/tools/search-executions.tool.js +3 -3
  559. package/dist/modules/mcp/tools/search-executions.tool.js.map +1 -1
  560. package/dist/modules/mcp/tools/search-projects.tool.js +1 -1
  561. package/dist/modules/mcp/tools/search-projects.tool.js.map +1 -1
  562. package/dist/modules/mcp/tools/test-workflow.tool.js +2 -2
  563. package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -1
  564. package/dist/modules/mcp/tools/webhook-utils.d.ts +1 -1
  565. package/dist/modules/mcp/tools/webhook-utils.js +5 -1
  566. package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
  567. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +12 -1
  568. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
  569. package/dist/modules/mcp/tools/workflow-builder/credentials-auto-assign.js +55 -29
  570. package/dist/modules/mcp/tools/workflow-builder/credentials-auto-assign.js.map +1 -1
  571. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js +1 -1
  572. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js.map +1 -1
  573. package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js +1 -1
  574. package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js.map +1 -1
  575. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js +1 -1
  576. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js.map +1 -1
  577. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.d.ts +1 -0
  578. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +27 -3
  579. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
  580. package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.d.ts +10 -1
  581. package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js +14 -4
  582. package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js.map +1 -1
  583. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +119 -15
  584. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  585. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +1 -1
  586. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
  587. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +15 -1
  588. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +46 -18
  589. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
  590. package/dist/modules/mcp-registry/registry/mcp-registry-search.d.ts +1 -0
  591. package/dist/modules/mcp-registry/registry/mcp-registry-search.js +8 -6
  592. package/dist/modules/mcp-registry/registry/mcp-registry-search.js.map +1 -1
  593. package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +1 -0
  594. package/dist/modules/mcp-registry/registry/mcp-registry.service.js +3 -0
  595. package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
  596. package/dist/modules/n8n-packages/engine/import-blocked.error.js +3 -1
  597. package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
  598. package/dist/modules/n8n-packages/engine/import-gates.d.ts +11 -0
  599. package/dist/modules/n8n-packages/engine/import-gates.js +34 -0
  600. package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -0
  601. package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +17 -8
  602. package/dist/modules/n8n-packages/engine/import-orchestrator.js +42 -24
  603. package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
  604. package/dist/modules/n8n-packages/engine/import-result.d.ts +16 -4
  605. package/dist/modules/n8n-packages/engine/import-result.js +56 -20
  606. package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
  607. package/dist/modules/n8n-packages/engine/import-telemetry.d.ts +4 -2
  608. package/dist/modules/n8n-packages/engine/import-telemetry.js +25 -5
  609. package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
  610. package/dist/modules/n8n-packages/engine/n8n-package-parser.js +4 -0
  611. package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
  612. package/dist/modules/n8n-packages/engine/package-layout.d.ts +1 -0
  613. package/dist/modules/n8n-packages/engine/package-layout.js +9 -0
  614. package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
  615. package/dist/modules/n8n-packages/engine/project-package-importer.d.ts +3 -1
  616. package/dist/modules/n8n-packages/engine/project-package-importer.js +68 -25
  617. package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
  618. package/dist/modules/n8n-packages/engine/workflow-package-importer.d.ts +3 -1
  619. package/dist/modules/n8n-packages/engine/workflow-package-importer.js +54 -16
  620. package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
  621. package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +1 -0
  622. package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +1 -0
  623. package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -1
  624. package/dist/modules/n8n-packages/entities/project/project-import.types.d.ts +2 -0
  625. package/dist/modules/n8n-packages/entities/project/project-importer.js +9 -1
  626. package/dist/modules/n8n-packages/entities/project/project-importer.js.map +1 -1
  627. package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +1 -0
  628. package/dist/modules/n8n-packages/entities/project/project.exporter.js +2 -0
  629. package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -1
  630. package/dist/modules/n8n-packages/entities/project/project.serializer.js +3 -0
  631. package/dist/modules/n8n-packages/entities/project/project.serializer.js.map +1 -1
  632. package/dist/modules/n8n-packages/entities/reference.d.ts +6 -0
  633. package/dist/modules/n8n-packages/entities/reference.js +3 -0
  634. package/dist/modules/n8n-packages/entities/reference.js.map +1 -0
  635. package/dist/modules/n8n-packages/entities/requirements.types.d.ts +2 -0
  636. package/dist/modules/n8n-packages/entities/requirements.types.js +1 -0
  637. package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -1
  638. package/dist/modules/n8n-packages/entities/tag/tag-import-decision.d.ts +24 -0
  639. package/dist/modules/n8n-packages/entities/tag/tag-import-decision.js +69 -0
  640. package/dist/modules/n8n-packages/entities/tag/tag-import-decision.js.map +1 -0
  641. package/dist/modules/n8n-packages/entities/tag/tag-importer.d.ts +14 -0
  642. package/dist/modules/n8n-packages/entities/tag/tag-importer.js +142 -0
  643. package/dist/modules/n8n-packages/entities/tag/tag-importer.js.map +1 -0
  644. package/dist/modules/n8n-packages/entities/tag/tag-requirements.extractor.d.ts +6 -0
  645. package/dist/modules/n8n-packages/entities/tag/tag-requirements.extractor.js +23 -0
  646. package/dist/modules/n8n-packages/entities/tag/tag-requirements.extractor.js.map +1 -0
  647. package/dist/modules/n8n-packages/entities/tag/tag.exporter.d.ts +15 -0
  648. package/dist/modules/n8n-packages/entities/tag/tag.exporter.js +45 -0
  649. package/dist/modules/n8n-packages/entities/tag/tag.exporter.js.map +1 -0
  650. package/dist/modules/n8n-packages/entities/tag/tag.types.d.ts +48 -0
  651. package/dist/modules/n8n-packages/entities/tag/tag.types.js +10 -0
  652. package/dist/modules/n8n-packages/entities/tag/tag.types.js.map +1 -0
  653. package/dist/modules/n8n-packages/entities/variable/variable-importer.d.ts +8 -2
  654. package/dist/modules/n8n-packages/entities/variable/variable-importer.js +82 -6
  655. package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -1
  656. package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.d.ts +1 -0
  657. package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js +9 -4
  658. package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js.map +1 -1
  659. package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +31 -1
  660. package/dist/modules/n8n-packages/entities/variable/variable.types.js +36 -0
  661. package/dist/modules/n8n-packages/entities/variable/variable.types.js.map +1 -1
  662. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.d.ts +1 -0
  663. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js +4 -3
  664. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js.map +1 -1
  665. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +4 -1
  666. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +10 -6
  667. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -1
  668. package/dist/modules/n8n-packages/entities/workflow/references/caller-ids.reference.d.ts +3 -0
  669. package/dist/modules/n8n-packages/entities/workflow/references/caller-ids.reference.js +20 -0
  670. package/dist/modules/n8n-packages/entities/workflow/references/caller-ids.reference.js.map +1 -0
  671. package/dist/modules/n8n-packages/entities/workflow/references/error-workflow.reference.d.ts +3 -0
  672. package/dist/modules/n8n-packages/entities/workflow/references/error-workflow.reference.js +25 -0
  673. package/dist/modules/n8n-packages/entities/workflow/references/error-workflow.reference.js.map +1 -0
  674. package/dist/modules/n8n-packages/entities/workflow/references/extract-workflow-requirements.d.ts +3 -0
  675. package/dist/modules/n8n-packages/entities/workflow/references/extract-workflow-requirements.js +16 -0
  676. package/dist/modules/n8n-packages/entities/workflow/references/extract-workflow-requirements.js.map +1 -0
  677. package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.d.ts +6 -0
  678. package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js +55 -0
  679. package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js.map +1 -0
  680. package/dist/modules/n8n-packages/entities/workflow/references/workflow-references.d.ts +3 -0
  681. package/dist/modules/n8n-packages/entities/workflow/references/workflow-references.js +12 -0
  682. package/dist/modules/n8n-packages/entities/workflow/references/workflow-references.js.map +1 -0
  683. package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.d.ts +4 -0
  684. package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js +45 -0
  685. package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js.map +1 -0
  686. package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.d.ts +2 -3
  687. package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js +7 -5
  688. package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js.map +1 -1
  689. package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +14 -3
  690. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.d.ts +5 -6
  691. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +25 -19
  692. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
  693. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.d.ts +11 -2
  694. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +17 -2
  695. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -1
  696. package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.d.ts +7 -1
  697. package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js +28 -7
  698. package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js.map +1 -1
  699. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +4 -1
  700. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +11 -5
  701. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
  702. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +3 -1
  703. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +6 -1
  704. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
  705. package/dist/modules/n8n-packages/n8n-packages.service.d.ts +5 -1
  706. package/dist/modules/n8n-packages/n8n-packages.service.js +32 -9
  707. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  708. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +49 -4
  709. package/dist/modules/n8n-packages/n8n-packages.types.js +15 -1
  710. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  711. package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +95 -11
  712. package/dist/modules/n8n-packages/spec/manifest.schema.js +2 -0
  713. package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
  714. package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +52 -7
  715. package/dist/modules/n8n-packages/spec/requirements.schema.js +10 -1
  716. package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
  717. package/dist/modules/n8n-packages/spec/serialized/project.schema.d.ts +18 -0
  718. package/dist/modules/n8n-packages/spec/serialized/project.schema.js +5 -0
  719. package/dist/modules/n8n-packages/spec/serialized/project.schema.js.map +1 -1
  720. package/dist/modules/n8n-packages/spec/serialized/tag.schema.d.ts +12 -0
  721. package/dist/modules/n8n-packages/spec/serialized/tag.schema.js +11 -0
  722. package/dist/modules/n8n-packages/spec/serialized/tag.schema.js.map +1 -0
  723. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +3 -0
  724. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +1 -0
  725. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
  726. package/dist/modules/oauth-server/database/entities/oauth-client.entity.d.ts +1 -0
  727. package/dist/modules/oauth-server/database/entities/oauth-client.entity.js +4 -0
  728. package/dist/modules/oauth-server/database/entities/oauth-client.entity.js.map +1 -1
  729. package/dist/modules/oauth-server/database/repositories/oauth-user-consent.repository.d.ts +1 -0
  730. package/dist/modules/oauth-server/database/repositories/oauth-user-consent.repository.js +13 -1
  731. package/dist/modules/oauth-server/database/repositories/oauth-user-consent.repository.js.map +1 -1
  732. package/dist/modules/oauth-server/oauth-flow.service.d.ts +17 -0
  733. package/dist/modules/oauth-server/oauth-flow.service.js +100 -0
  734. package/dist/modules/oauth-server/oauth-flow.service.js.map +1 -0
  735. package/dist/modules/oauth-server/oauth-server.module.js +5 -5
  736. package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
  737. package/dist/modules/oauth-server/oauth-server.service.d.ts +8 -2
  738. package/dist/modules/oauth-server/oauth-server.service.js +64 -11
  739. package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
  740. package/dist/modules/oauth-server/oauth.controller.js +3 -1
  741. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  742. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.d.ts +38 -0
  743. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js +95 -0
  744. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js.map +1 -0
  745. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.d.ts +37 -0
  746. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js +88 -0
  747. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js.map +1 -0
  748. package/dist/modules/oauth-server/protected-resource-resolvers/index.d.ts +1 -0
  749. package/dist/modules/oauth-server/protected-resource-resolvers/index.js +20 -0
  750. package/dist/modules/oauth-server/protected-resource-resolvers/index.js.map +1 -0
  751. package/dist/modules/oauth-server/protected-resource-resolvers/utils.d.ts +5 -0
  752. package/dist/modules/oauth-server/protected-resource-resolvers/utils.js +16 -1
  753. package/dist/modules/oauth-server/protected-resource-resolvers/utils.js.map +1 -1
  754. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.d.ts +19 -0
  755. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js +107 -0
  756. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js.map +1 -0
  757. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.d.ts +21 -0
  758. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js +109 -0
  759. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js.map +1 -0
  760. package/dist/modules/otel/otel-lifecycle-handler.d.ts +0 -1
  761. package/dist/modules/otel/otel-lifecycle-handler.js +1 -4
  762. package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
  763. package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +4 -0
  764. package/dist/modules/provisioning.ee/provisioning.service.ee.js +102 -20
  765. package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
  766. package/dist/modules/provisioning.ee/role-deletion-checker.ee.d.ts +3 -1
  767. package/dist/modules/provisioning.ee/role-deletion-checker.ee.js +13 -5
  768. package/dist/modules/provisioning.ee/role-deletion-checker.ee.js.map +1 -1
  769. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +7 -1
  770. package/dist/modules/source-control.ee/source-control-import.service.ee.js +33 -7
  771. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  772. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +8 -0
  773. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +4 -0
  774. package/dist/modules/source-control.ee/source-control.service.ee.js +5 -2
  775. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  776. package/dist/modules/source-control.ee/types/import-result.d.ts +2 -0
  777. package/dist/modules/sso-oidc/constants.d.ts +2 -0
  778. package/dist/modules/sso-oidc/constants.js +3 -1
  779. package/dist/modules/sso-oidc/constants.js.map +1 -1
  780. package/dist/modules/sso-oidc/oidc.controller.ee.d.ts +4 -1
  781. package/dist/modules/sso-oidc/oidc.controller.ee.js +54 -1
  782. package/dist/modules/sso-oidc/oidc.controller.ee.js.map +1 -1
  783. package/dist/modules/sso-oidc/oidc.service.ee.d.ts +9 -2
  784. package/dist/modules/sso-oidc/oidc.service.ee.js +44 -15
  785. package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
  786. package/dist/modules/sso-saml/saml-helpers.js +2 -3
  787. package/dist/modules/sso-saml/saml-helpers.js.map +1 -1
  788. package/dist/modules/sso-saml/saml.service.ee.js +2 -3
  789. package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
  790. package/dist/modules/workflow-reviews.ee/workflow-review-feature-gate.service.d.ts +10 -0
  791. package/dist/modules/workflow-reviews.ee/workflow-review-feature-gate.service.js +54 -0
  792. package/dist/modules/workflow-reviews.ee/workflow-review-feature-gate.service.js.map +1 -0
  793. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.d.ts +31 -0
  794. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +219 -0
  795. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js.map +1 -0
  796. package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.d.ts +9 -0
  797. package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.js +40 -0
  798. package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.js.map +1 -0
  799. package/dist/modules/workflow-reviews.ee/workflow-review-request.service.d.ts +19 -18
  800. package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js +163 -155
  801. package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js.map +1 -1
  802. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.d.ts +6 -2
  803. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js +29 -4
  804. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js.map +1 -1
  805. package/dist/modules/workflow-reviews.ee/workflow-review.mapper.d.ts +3 -0
  806. package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js +12 -0
  807. package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js.map +1 -0
  808. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +4 -0
  809. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -1
  810. package/dist/node-catalog/node-catalog.service.d.ts +1 -0
  811. package/dist/node-catalog/node-catalog.service.js +11 -3
  812. package/dist/node-catalog/node-catalog.service.js.map +1 -1
  813. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  814. package/dist/permissions.ee/project-scope.service.d.ts +9 -0
  815. package/dist/permissions.ee/project-scope.service.js +34 -0
  816. package/dist/permissions.ee/project-scope.service.js.map +1 -0
  817. package/dist/public-api/types.d.ts +11 -1
  818. package/dist/public-api/v1/handlers/ldap/ldap.handler.d.ts +10 -0
  819. package/dist/public-api/v1/handlers/ldap/ldap.handler.js +76 -0
  820. package/dist/public-api/v1/handlers/ldap/ldap.handler.js.map +1 -0
  821. package/dist/public-api/v1/handlers/ldap/ldap.mapper.d.ts +17 -0
  822. package/dist/public-api/v1/handlers/ldap/ldap.mapper.js +35 -0
  823. package/dist/public-api/v1/handlers/ldap/ldap.mapper.js.map +1 -0
  824. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +1 -0
  825. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +4 -0
  826. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
  827. package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.handler.d.ts +8 -0
  828. package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.handler.js +38 -0
  829. package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.handler.js.map +1 -0
  830. package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.mapper.d.ts +5 -0
  831. package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.mapper.js +12 -0
  832. package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.mapper.js.map +1 -0
  833. package/dist/public-api/v1/openapi.yml +789 -9
  834. package/dist/push/index.js +1 -1
  835. package/dist/push/index.js.map +1 -1
  836. package/dist/push/origin-validator.d.ts +2 -1
  837. package/dist/push/origin-validator.js +15 -2
  838. package/dist/push/origin-validator.js.map +1 -1
  839. package/dist/push/sse.push.js +2 -0
  840. package/dist/push/sse.push.js.map +1 -1
  841. package/dist/scaling/job-processor.d.ts +3 -2
  842. package/dist/scaling/job-processor.js +17 -14
  843. package/dist/scaling/job-processor.js.map +1 -1
  844. package/dist/scaling/scaling.service.d.ts +3 -2
  845. package/dist/scaling/scaling.service.js +19 -16
  846. package/dist/scaling/scaling.service.js.map +1 -1
  847. package/dist/scaling/webhook-response-relay.d.ts +34 -0
  848. package/dist/scaling/webhook-response-relay.js +323 -0
  849. package/dist/scaling/webhook-response-relay.js.map +1 -0
  850. package/dist/scheduling/durable-job-provisioner.d.ts +2 -1
  851. package/dist/scheduling/durable-job-provisioner.js +21 -3
  852. package/dist/scheduling/durable-job-provisioner.js.map +1 -1
  853. package/dist/scheduling/durable-scheduler.js +22 -0
  854. package/dist/scheduling/durable-scheduler.js.map +1 -1
  855. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +2 -1
  856. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -1
  857. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js +11 -4
  858. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js.map +1 -1
  859. package/dist/security-audit/security-audit.service.js +1 -1
  860. package/dist/security-audit/security-audit.service.js.map +1 -1
  861. package/dist/services/ai-gateway.service.d.ts +3 -0
  862. package/dist/services/ai-gateway.service.js +16 -0
  863. package/dist/services/ai-gateway.service.js.map +1 -1
  864. package/dist/services/credentials-tester.service.d.ts +7 -0
  865. package/dist/services/credentials-tester.service.js +69 -9
  866. package/dist/services/credentials-tester.service.js.map +1 -1
  867. package/dist/services/frontend.service.js +14 -0
  868. package/dist/services/frontend.service.js.map +1 -1
  869. package/dist/services/oauth2-flow-proxy.service.d.ts +11 -0
  870. package/dist/services/oauth2-flow-proxy.service.js +34 -0
  871. package/dist/services/oauth2-flow-proxy.service.js.map +1 -0
  872. package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
  873. package/dist/services/project.service.ee.d.ts +5 -0
  874. package/dist/services/project.service.ee.js +15 -1
  875. package/dist/services/project.service.ee.js.map +1 -1
  876. package/dist/services/protected-resource.registry.d.ts +2 -1
  877. package/dist/services/protected-resource.registry.js +7 -2
  878. package/dist/services/protected-resource.registry.js.map +1 -1
  879. package/dist/services/pruning/workflow-history-compaction.service.js +3 -2
  880. package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
  881. package/dist/services/tag.service.d.ts +2 -1
  882. package/dist/services/tag.service.js +14 -31
  883. package/dist/services/tag.service.js.map +1 -1
  884. package/dist/sso.ee/sso-helpers.d.ts +1 -0
  885. package/dist/sso.ee/sso-helpers.js +8 -0
  886. package/dist/sso.ee/sso-helpers.js.map +1 -1
  887. package/dist/task-runners/errors/task-request-timeout.error.d.ts +2 -2
  888. package/dist/task-runners/errors/task-request-timeout.error.js +3 -3
  889. package/dist/task-runners/errors/task-request-timeout.error.js.map +1 -1
  890. package/dist/task-runners/task-broker/errors/task-requester-accept-timeout.error.d.ts +4 -0
  891. package/dist/task-runners/task-broker/errors/task-requester-accept-timeout.error.js +11 -0
  892. package/dist/task-runners/task-broker/errors/task-requester-accept-timeout.error.js.map +1 -0
  893. package/dist/task-runners/task-broker/errors/task-runner-unreachable.error.d.ts +4 -0
  894. package/dist/task-runners/task-broker/errors/task-runner-unreachable.error.js +11 -0
  895. package/dist/task-runners/task-broker/errors/task-runner-unreachable.error.js.map +1 -0
  896. package/dist/task-runners/task-broker/task-broker-ws-server.d.ts +9 -1
  897. package/dist/task-runners/task-broker/task-broker-ws-server.js +61 -32
  898. package/dist/task-runners/task-broker/task-broker-ws-server.js.map +1 -1
  899. package/dist/task-runners/task-broker/task-broker.service.d.ts +18 -1
  900. package/dist/task-runners/task-broker/task-broker.service.js +134 -63
  901. package/dist/task-runners/task-broker/task-broker.service.js.map +1 -1
  902. package/dist/task-runners/task-managers/task-requester.d.ts +1 -0
  903. package/dist/task-runners/task-managers/task-requester.js +4 -1
  904. package/dist/task-runners/task-managers/task-requester.js.map +1 -1
  905. package/dist/task-runners/task-runner-module.js +2 -2
  906. package/dist/task-runners/task-runner-module.js.map +1 -1
  907. package/dist/telemetry/index.d.ts +3 -1
  908. package/dist/telemetry/index.js +15 -8
  909. package/dist/telemetry/index.js.map +1 -1
  910. package/dist/utils/ai-service-retry.js +2 -4
  911. package/dist/utils/ai-service-retry.js.map +1 -1
  912. package/dist/wait-tracker.js +6 -2
  913. package/dist/wait-tracker.js.map +1 -1
  914. package/dist/webhooks/test-webhooks.d.ts +1 -0
  915. package/dist/webhooks/test-webhooks.js +14 -9
  916. package/dist/webhooks/test-webhooks.js.map +1 -1
  917. package/dist/webhooks/webhook-helpers.js +69 -16
  918. package/dist/webhooks/webhook-helpers.js.map +1 -1
  919. package/dist/webhooks/webhook.service.d.ts +4 -0
  920. package/dist/webhooks/webhook.service.js +40 -12
  921. package/dist/webhooks/webhook.service.js.map +1 -1
  922. package/dist/workflow-execute-additional-data.js +2 -0
  923. package/dist/workflow-execute-additional-data.js.map +1 -1
  924. package/dist/workflow-helpers.d.ts +4 -1
  925. package/dist/workflow-helpers.js +22 -0
  926. package/dist/workflow-helpers.js.map +1 -1
  927. package/dist/workflow-runner.d.ts +2 -1
  928. package/dist/workflow-runner.js +4 -4
  929. package/dist/workflow-runner.js.map +1 -1
  930. package/dist/workflows/publication/published-workflow-trigger-deactivator.d.ts +11 -3
  931. package/dist/workflows/publication/published-workflow-trigger-deactivator.js +66 -23
  932. package/dist/workflows/publication/published-workflow-trigger-deactivator.js.map +1 -1
  933. package/dist/workflows/publication/workflow-publication-lifecycle-lock.d.ts +0 -5
  934. package/dist/workflows/publication/workflow-publication-lifecycle-lock.js +0 -44
  935. package/dist/workflows/publication/workflow-publication-lifecycle-lock.js.map +1 -1
  936. package/dist/workflows/publication/workflow-publication-outbox-consumer.js +3 -0
  937. package/dist/workflows/publication/workflow-publication-outbox-consumer.js.map +1 -1
  938. package/dist/workflows/publication/workflow-publication-reconciler.service.d.ts +4 -2
  939. package/dist/workflows/publication/workflow-publication-reconciler.service.js +43 -30
  940. package/dist/workflows/publication/workflow-publication-reconciler.service.js.map +1 -1
  941. package/dist/workflows/triggers/trigger-activation-retry.js +2 -1
  942. package/dist/workflows/triggers/trigger-activation-retry.js.map +1 -1
  943. package/dist/workflows/triggers/workflow-trigger-activator.js +8 -1
  944. package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
  945. package/dist/workflows/workflow-finder.service.d.ts +1 -0
  946. package/dist/workflows/workflow-finder.service.js +3 -1
  947. package/dist/workflows/workflow-finder.service.js.map +1 -1
  948. package/dist/workflows/workflow-publish-guard-proxy.service.d.ts +8 -0
  949. package/dist/workflows/workflow-publish-guard-proxy.service.js +26 -0
  950. package/dist/workflows/workflow-publish-guard-proxy.service.js.map +1 -0
  951. package/dist/workflows/workflow-validation.service.d.ts +1 -0
  952. package/dist/workflows/workflow-validation.service.js +23 -8
  953. package/dist/workflows/workflow-validation.service.js.map +1 -1
  954. package/dist/workflows/workflow.service.d.ts +7 -3
  955. package/dist/workflows/workflow.service.ee.d.ts +4 -1
  956. package/dist/workflows/workflow.service.js +75 -30
  957. package/dist/workflows/workflow.service.js.map +1 -1
  958. package/dist/workflows/workflows.controller.d.ts +4 -1
  959. package/package.json +39 -39
  960. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/index.d.ts +0 -2
  961. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/index.js +0 -19
  962. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/index.js.map +0 -1
  963. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/metadata.d.ts +0 -20
  964. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/metadata.js +0 -12
  965. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/metadata.js.map +0 -1
  966. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.d.ts +0 -12
  967. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.js +0 -85
  968. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.js.map +0 -1
  969. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-seeder.d.ts +0 -10
  970. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-seeder.js +0 -77
  971. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-seeder.js.map +0 -1
  972. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.d.ts +0 -2
  973. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.js +0 -23
  974. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.js.map +0 -1
  975. package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.d.ts +0 -7
  976. package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.js +0 -41
  977. package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.js.map +0 -1
  978. package/dist/services/trigger-auth-identity-seeder-proxy.service.d.ts +0 -10
  979. package/dist/services/trigger-auth-identity-seeder-proxy.service.js.map +0 -1
  980. package/dist/workflows/publication/published-workflow-enqueuer.d.ts +0 -13
  981. package/dist/workflows/publication/published-workflow-enqueuer.js +0 -50
  982. package/dist/workflows/publication/published-workflow-enqueuer.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"agents.service.js","sourceRoot":"","sources":["../../../src/modules/agents/agents.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iEAA8D;AAO9D,wDAA6C;AAC7C,gCAAwD;AACxD,gCAA6C;AAC7C,+BAAkC;AAElC,8EAAyE;AAEzE,uEAAkE;AAClE,uEAAkE;AAClE,+EAAyE;AACzE,uEAAiE;AAEjE,sFAAiF;AACjF,gFAA2E;AA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I,CAAC,eAAe,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAC9D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2CAA2C,EAAE;gBAC7D,OAAO;gBACP,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;aACrD,CAAC,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;;wBA7NY,aAAa;IADzB,IAAA,YAAO,GAAE;qCAGiB,uBAAM,EACG,kCAAe,EACL,8BAAyB,EAC7B,+CAAqB,EACvB,sDAAwB,EAC5B,8CAAoB,EAChB,2CAAmB,EAChB,kDAAsB,EAChC,4BAAY,EACH,+CAAqB;GAXlD,aAAa,CA6NzB"}
1
+ {"version":3,"file":"agents.service.js","sourceRoot":"","sources":["../../../src/modules/agents/agents.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iEAA8D;AAC9D,8CAOwB;AACxB,wDAA6C;AAC7C,gCAA4F;AAC5F,gCAA6C;AAC7C,kDAAkD;AAClD,+BAAkC;AAElC,4EAAwE;AACxE,8EAAyE;AAEzE,mFAA6E;AAC7E,uEAAkE;AAClE,uEAAkE;AAClE,+EAAyE;AACzE,uEAAiE;AAEjE,sFAAiF;AACjF,gFAA2E;AAC3E,sEAIyC;AACzC,sFAAgF;AAChF,mEAAiE;AACjE,0DAAsD;AAG/C,IAAM,aAAa,GAAnB,MAAM,aAAa;IACzB,YACkB,MAAc,EACd,eAAgC,EAChC,yBAAoD,EACpD,0BAAsD,EACtD,qBAA4C,EAC5C,mBAA6C,EAC7C,eAAqC,EACrC,mBAAwC,EACxC,sBAA8C,EAC9C,YAA0B,EAC1B,qBAA4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@
1
1
  export declare const TARGET_AGENT_SECTION = "## Builder vs Target Agent\n\nYou are the builder agent, not the target agent.\nThe target agent is the AI agent you are configuring for the user. Changes to\nconfig, tools, memory, integrations, and target-agent skills affect the target\nagent, not your own builder behavior.";
2
2
  export declare const PREREQUISITES_SECTION = "## Prerequisites you cannot create\n\nYou cannot create n8n workflows or data tables. Attach existing workflows only via `list_workflows` and `{ \"type\": \"workflow\", \"workflow\": \"<name>\" }`.\n\nIf the target agent needs workflows or tables that do not exist yet, finish what you can and state the missing prerequisites clearly in your reply (names, schema, purpose). Do not ask the user to create them in this chat.";
3
3
  export declare function getConversationModeSection(agentPreviewPath: string): string;
4
- export declare const INTERACTIVE_TOOLS_SECTION = "## Interactive tools\n\nThese tools render a UI card in the chat and suspend your run until the user\nresponds. Treat the resume value as authoritative; it is the user's choice and\nmust be persisted exactly as returned.\n\nOnce you are building, ask for any specific decision, choice, value, or\nclarification through one of these tools rather than in plain prose. Use\n`ask_credential` for node-tool, MCP-server, and fallback web-search credentials,\n`configure_channel` for chat-channel connections, and `ask_questions` for\neverything else, including the model/credential choice \u2014 resolve the answer with\n`resolve_llm`.\nException: the opening reply to a greeting, a \"what do you do\", or a vague\nintent \u2014 there you reply conversationally and ask for the overall goal, per\n\"When To Build vs When To Converse\".\n\n\"Initial build\" means the first build pass on a fresh agent; per the Initial\nBuild section, never suspend during it except the single trailing\n`finish_setup` call. Interactive tools are for everything after that \u2014\nadditions or changes to an existing agent (ask before the related config\nmutation, batching what you can) and follow-up turns where the user asked to\ndo setup in chat.\n\n- `finish_setup`: use ONCE, only in the trailing step of an initial build\n when only blocked tasks remain \u2014 the model choice and every open decision\n as `questions`, one `credentialRequests` entry per credential slot, and\n one `channels` entry per drafted channel integration. It shows the setup\n cards back-to-back without returning control to you between them \u2014\n questions, then credentials, then channels (channels always last, since\n connecting one needs credentials already resolved). Never call it\n together with another interactive tool.\n- `ask_credential`: use once per required node-tool, MCP-server, or fallback\n web-search credential slot. During an initial build, never call it\n (see Initial Build). For an addition to an existing\n agent, call it before the related config mutation. For MCP servers, call it\n before verification. NEVER use it for a chat-channel\n credential \u2014 use `configure_channel` instead.\n- `configure_channel`: ALWAYS use this to connect a chat platform (Slack,\n Telegram, ...) as an agent channel, with a type from `list_integration_types`.\n The setup UI creates and persists the credential itself. During an initial\n build, do not call it \u2014 write the draft integration instead (see Initial\n Build and the integrations skill).\n- `ask_questions`: the default way to ask the user anything that isn't a\n node-tool credential, MCP-server credential, fallback web-search credential,\n or channel choice, including when the user must choose, confirm, configure, or\n change the target agent's main provider, model, or LLM credential \u2014 resolve\n the answer with `resolve_llm`. Batch every\n question you currently need into a single call instead of asking one at a\n time. Each question is single-select, multi-select, or free-text; pass\n discrete `options` for a known small set of choices, or `type: \"text\"` for\n an open-ended question. Never call it during an initial build\n (see Initial Build).\n- Never call two interactive tools in parallel. The run suspends on the first.\n- Never suspend during an initial build except the trailing `finish_setup`\n call; see the Initial Build section.\n- Never re-ask a question the user already answered in this thread.\n- After resume, continue with the next concrete tool action. Do not narrate the\n answer back to the user.";
4
+ export declare const INTERACTIVE_TOOLS_SECTION = "## Interactive tools\n\nThese tools render a UI card in the chat and suspend your run until the user\nresponds. Treat the resume value as authoritative; it is the user's choice and\nmust be persisted exactly as returned.\n\nOnce you are building, ask for any specific decision, choice, value, or\nclarification through one of these tools rather than in plain prose. Use\n`ask_credential` for node-tool, MCP-server, and fallback web-search credentials,\n`configure_channel` for chat-channel setup, and `ask_questions` for\neverything else, including the model/credential choice \u2014 resolve the answer with\n`resolve_llm`.\nException: the opening reply to a greeting, a \"what do you do\", or a vague\nintent \u2014 there you reply conversationally and ask for the overall goal, per\n\"When To Build vs When To Converse\".\n\n\"Initial build\" means the first build pass on a fresh agent; per the Initial\nBuild section, never suspend during it except the single trailing\n`finish_setup` call. Interactive tools are for everything after that \u2014\nadditions or changes to an existing agent (ask before the related config\nmutation, batching what you can) and follow-up turns where the user asked to\ndo setup in chat.\n\n- `finish_setup`: use ONCE, only in the trailing step of an initial build\n when only blocked tasks remain \u2014 the model choice and every open decision\n as `questions`, one `credentialRequests` entry per credential slot, and\n one `channels` entry per drafted channel integration. It shows the setup\n cards back-to-back without returning control to you between them \u2014\n questions, then credentials, then channels. Channels always run after every\n credential phase even when earlier setup was skipped; each is configured or\n skipped. Never call it\n together with another interactive tool.\n- `ask_credential`: use once per required node-tool, MCP-server, or fallback\n web-search credential slot. During an initial build, never call it\n (see Initial Build). For an addition to an existing\n agent, call it before the related config mutation. For MCP servers, call it\n before verification. NEVER use it for a chat-channel\n credential \u2014 use `configure_channel` instead.\n- `configure_channel`: ALWAYS use this to configure a chat platform (Slack,\n Telegram, ...) as an agent channel, with a type from `list_integration_types`.\n The setup UI creates and persists the credential itself without publishing\n the agent. During an initial build, do not call it \u2014 write the draft\n integration instead (see Initial Build and the integrations skill).\n- `ask_questions`: the default way to ask the user anything that isn't a\n node-tool credential, MCP-server credential, fallback web-search credential,\n or channel choice, including when the user must choose, confirm, configure, or\n change the target agent's main provider, model, or LLM credential \u2014 resolve\n the answer with `resolve_llm`. Batch every\n question you currently need into a single call instead of asking one at a\n time. Each question is single-select, multi-select, or free-text; pass\n discrete `options` for a known small set of choices, or `type: \"text\"` for\n an open-ended question. Never call it during an initial build\n (see Initial Build).\n- Never call two interactive tools in parallel. The run suspends on the first.\n- Never suspend during an initial build except the trailing `finish_setup`\n call; see the Initial Build section.\n- Never re-ask a question the user already answered in this thread.\n- After resume, continue with the next concrete tool action. Do not narrate the\n answer back to the user.";
5
5
  export declare const READ_CONFIG_FRESHNESS_SECTION = "## Config Freshness\n\nThe agent config can change at any time \u2014 the user can edit it directly in the UI\nbetween your turns \u2014 so your memory of it is NEVER authoritative. Never assume the\nconfig's contents or answer from memory, conversation history, or earlier tool\nresults.\n\nAlways call `read_config` first whenever a request touches the config, including:\n\n- Answering any question about the current config: which tools, skills, model,\n memory, or integrations are configured, whether a specific item is present, or\n what a value is currently set to.\n- Before any `write_config` or `patch_config`: use only the freshly returned\n `config` and `configHash` from that same `read_config` call as the write\n base, never a remembered snapshot.\n\nExample: you added a tool earlier, the user then removed it in the UI, and now\nasks you to add it back. Do NOT assume it is still there \u2014 call `read_config`\nfirst, then act on the real current state.\n\n`read_config` is the only tool that returns the full `config`. A successful\n`write_config`/`patch_config` returns only `{ ok: true }` as confirmation\n\u2014 never the config, its hash, timestamps, or version \u2014 so it cannot serve as\na `baseConfigHash` for a later write. If `write_config` or\n`patch_config` returns `stage: \"stale\"`, call `read_config` and retry once\nusing the `config` and `configHash` it returns. Call `read_config`\nagain immediately before every later mutation and before any later\ninspection of the config.";
6
6
  export declare const RESPONSE_STYLE_SECTION = "## Response Style\n\nBe concise. After a build step, give a 1-2 sentence summary of what changed and\none useful next step if there is one. Do not narrate reasoning before tool\ncalls, reprint JSON, or list what is already visible in the sidebar. When\nsetup remains after `finish_setup` (skipped or dismissed items), end with\nthe setup checklist per the Initial Build section; keep it to one line per\nitem.";
7
7
  export declare const WORKFLOW_SECTION = "## Workflow\n\n1. For every request that builds or changes the agent, call `write_todos`\n with the full plan first \u2014 even short ones. Mark tasks that cannot\n proceed without user input as `blocked`, stating exactly what is\n missing.\n2. For fresh agents, call `resolve_llm` once, silently. If it resolves \u2014\n including an auto-picked provider or newly provisioned free OpenAI\n credits \u2014 use the result and mention the choice in your summary. If it\n reports missing or ambiguous credentials, mark the model\n task `blocked` and keep building: write the config with `model: \"\"` and\n no `credential`.\n3. Draft real target-agent `instructions` and write the config early; never\n write empty placeholders, and never wait for setup answers before writing\n instructions, tools, skills, or tasks.\n4. Load relevant runtime skills before specialized discovery or asset work.\n5. Perform discovery and create any requested tools, skills, or tasks.\n6. Follow Config Freshness immediately before every config mutation.\n7. When both skill and task batches are fully specified, call `create_skills`\n and `create_tasks` in the same assistant response. Do not combine either\n with an interactive tool or `write_config`/`patch_config` in that response.\n8. When only blocked tasks remain, call `finish_setup` once with every\n pending item, per the Initial Build section, then resolve its results and\n finish the plan \u2014 re-check with `read_config` before patching.\n9. When the user asks to publish, activate, or make the agent live/usable, call\n `publish_agent`. Never tell them to click Publish in the editor. Do not\n auto-publish without that intent. Use `unpublish_agent` when they ask to\n unpublish.";
8
- export declare const FEW_SHOT_FLOWS_SECTION = "## Example flows\n\n### New agent: \"Build me an agent teammates can @mention in Slack to triage messages\"\n1. `write_todos` with the plan. `resolve_llm({})` once, silently; if it\n reports missing credentials, mark the model task `blocked`.\n2. `read_config()`.\n3. `write_config(...)` with the instructions, and the resolved model and\n credential \u2014 or `model: \"\"` and no `credential` while the model task\n is blocked.\n4. Load `agent-builder-external-services`, call `list_integration_types()`,\n `read_config()`, then `patch_config(...)` adding the returned Slack type\n to `/integrations/-` with `credentialId: \"\"`.\n5. `finish_setup({ channels: [{ integrationType: \"slack\" }] })` \u2014 include\n `questions: [<model choice>]` only if the model task is blocked; when\n `resolve_llm` already resolved in step 1, pass only the channel. For a\n model answer, call `resolve_llm` with it, then `read_config()` and\n `patch_config(...)` replacing `/model` and `/credential`. The channel\n card in `finish_setup` already persisted or skipped the Slack\n connection \u2014 do not follow it with a config mutation. If the user skips\n it, end with a one-line checklist item pointing at the channel chip in\n the agent panel.\n\n### New agent: \"Use Anthropic via OpenRouter\"\n1. `write_todos` with the plan.\n2. `resolve_llm({ provider: \"openrouter\" })`.\n3. `read_config()`.\n4. `write_config(...)` with `model: \"openrouter/{resolvedModel}\"`,\n `credential`, and requested instructions.\n\n### Change the existing model\n1. `write_todos` with the plan.\n2. `ask_questions({ ... })` for the new model choice, then\n `resolve_llm({ provider, model })`.\n3. `read_config()`.\n4. `patch_config(...)` replacing `/model` and `/credential`.\n\n### Add an explicitly requested n8n node tool to an existing agent\n1. Load `agent-builder-external-services`, then call `search_nodes` and\n `get_node_types`; the explicit n8n-node request does not need\n `resolve_integration`.\n2. `ask_credential` for every required slot.\n3. `read_config()`.\n4. `patch_config(...)` adding the node tool to `/tools/-`.\n\n### Add an explicitly requested n8n node tool when credential setup is skipped\n1. Load `agent-builder-external-services`, then call `search_nodes` and\n `get_node_types`.\n2. `ask_credential(...)` -> `{ skipped: true }`.\n3. `read_config()`.\n4. `patch_config(...)` adding the tool and omitting only the skipped\n credential slot. Do not abort the tool addition.\n5. Summarize it as a successful addition, not a failure: the tool is in\n place and starts working once a credential is connected. Never say you\n could not complete it \u2014 end with a one-line checklist item for\n connecting the credential later.\n\n### Add MCP integration: \"Connect Notion MCP\"\nThis flow is user-initiated on an existing agent, so the credential ask is\nimmediate. During an initial build, pick the best candidate as a stated\nassumption, write the draft `/mcpServers/-` entry with `credential` omitted,\nskip verification, and include the credential in the trailing `finish_setup`\ncall; verify with the returned credential id \u2014 on success the tool writes the\ncredential into the matching entry itself; no `read_config`/`patch_config`\nfollow-up for the credential.\n1. `resolve_integration({ queries: [\"notion\"] })`.\n2. When it returns `kind: \"mcp\"`, load `agent-builder-external-services`.\n3. For MCP candidates, select one entry from `results[]`. If\n multiple candidates remain, use `ask_questions` with their titles and\n descriptions; never choose by array order. If the user dismisses the\n question, stop without selecting or configuring a server. Otherwise treat\n the chosen entry as `selectedResult`.\n4. Use `selectedResult.credentialType` in\n `ask_credential({ purpose: \"Connect Notion MCP\", credentialType: \"<selectedResult.credentialType>\" })`.\n5. Call `verify_mcp_server` with the connection fields from `selectedResult`\n and the returned `credentialId` as `credential`.\n6. Confirm the verified tools cover the requested capability.\n7. `read_config()`.\n8. `patch_config(...)` adding a new `/mcpServers/-` entry, including\n `selectedResult.metadata.nodeTypeName` when present.\n\n### Ambiguous request: \"Make it post somewhere\"\n1. `ask_questions(...)` with the known destination choices.\n2. Load `agent-builder-external-services` to decide whether the destination is\n the agent's chat/trigger surface.\n3. If it is a chat integration, call `configure_channel` with the returned\n `integrationType`. After `configure_channel` returns, stop this flow; the\n setup UI already persisted or skipped the channel, so do not read or mutate\n the config.\n4. Otherwise call `resolve_integration({ queries: [\"<selected service>\"] })`\n and follow the returned kind:\n - `kind: \"mcp\"`: follow the skill's MCP Servers section \u2014 verify and wire\n the MCP server.\n - `kind: \"node\"`: follow the skill's Node Tools section, use the returned\n node results with `get_node_types`, and ask for every required credential.\n5. In this non-chat branch only, `read_config()`, then `patch_config(...)` or\n `write_config(...)` with the resolved capability.\n\n### Publish after build: \"Publish it\" / \"Make it live\"\n1. Finish any pending config mutations.\n2. `publish_agent()`.\n3. Confirm the agent is live; do not send the user to the editor Publish button.";
8
+ export declare const FEW_SHOT_FLOWS_SECTION = "## Example flows\n\n### New agent: \"Build me an agent teammates can @mention in Slack to triage messages\"\n1. `write_todos` with the plan. `resolve_llm({})` once, silently; if it\n reports missing credentials, mark the model task `blocked`.\n2. `read_config()`.\n3. `write_config(...)` with the instructions, and the resolved model and\n credential \u2014 or `model: \"\"` and no `credential` while the model task\n is blocked.\n4. Load `agent-builder-external-services`, call `list_integration_types()`,\n `read_config()`, then `patch_config(...)` adding the returned Slack type\n to `/integrations/-` with `credentialId: \"\"`.\n5. `finish_setup({ channels: [{ integrationType: \"slack\" }] })` \u2014 include\n `questions: [<model choice>]` only if the model task is blocked; when\n `resolve_llm` already resolved in step 1, pass only the channel. For a\n model answer, call `resolve_llm` with it, then `read_config()` and\n `patch_config(...)` replacing `/model` and `/credential`. The channel\n card in `finish_setup` already configured or skipped the Slack\n channel \u2014 do not call `configure_channel` again or follow it with a config\n mutation. If the user skips\n it, end with a one-line checklist item pointing at the channel chip in\n the agent panel.\n\n### New agent: \"Use Anthropic via OpenRouter\"\n1. `write_todos` with the plan.\n2. `resolve_llm({ provider: \"openrouter\" })`.\n3. `read_config()`.\n4. `write_config(...)` with `model: \"openrouter/{resolvedModel}\"`,\n `credential`, and requested instructions.\n\n### Change the existing model\n1. `write_todos` with the plan.\n2. `ask_questions({ ... })` for the new model choice, then\n `resolve_llm({ provider, model })`.\n3. `read_config()`.\n4. `patch_config(...)` replacing `/model` and `/credential`.\n\n### Add an explicitly requested n8n node tool to an existing agent\n1. Load `agent-builder-external-services`, then call `search_nodes` and\n `get_node_types`; the explicit n8n-node request does not need\n `resolve_integration`.\n2. `ask_credential` for every required slot.\n3. `read_config()`.\n4. `patch_config(...)` adding the node tool to `/tools/-`.\n\n### Add an explicitly requested n8n node tool when credential setup is skipped\n1. Load `agent-builder-external-services`, then call `search_nodes` and\n `get_node_types`.\n2. `ask_credential(...)` -> `{ skipped: true }`.\n3. `read_config()`.\n4. `patch_config(...)` adding the tool and omitting only the skipped\n credential slot. Do not abort the tool addition.\n5. Summarize it as a successful addition, not a failure: the tool is in\n place and starts working once a credential is connected. Never say you\n could not complete it \u2014 end with a one-line checklist item for\n connecting the credential later.\n\n### Add MCP integration: \"Connect Notion MCP\"\nThis flow is user-initiated on an existing agent, so the credential ask is\nimmediate. During an initial build, pick the best candidate as a stated\nassumption, write the draft `/mcpServers/-` entry with `credential` omitted,\nskip verification, and include the credential in the trailing `finish_setup`\ncall; verify with the returned credential id \u2014 on success the tool writes the\ncredential into the matching entry itself; no `read_config`/`patch_config`\nfollow-up for the credential.\n1. `resolve_integration({ queries: [\"notion\"] })`.\n2. When it returns `kind: \"mcp\"`, load `agent-builder-external-services`.\n3. For MCP candidates, select one entry from `results[]`. If\n multiple candidates remain, use `ask_questions` with their titles and\n descriptions; never choose by array order. If the user dismisses the\n question, stop without selecting or configuring a server. Otherwise treat\n the chosen entry as `selectedResult`.\n4. Use `selectedResult.credentialType` in\n `ask_credential({ purpose: \"Connect Notion MCP\", credentialType: \"<selectedResult.credentialType>\" })`.\n5. Call `verify_mcp_server` with the connection fields from `selectedResult`\n and the returned `credentialId` as `credential`.\n6. Confirm the verified tools cover the requested capability.\n7. `read_config()`.\n8. `patch_config(...)` adding a new `/mcpServers/-` entry, including\n `selectedResult.metadata.nodeTypeName` when present.\n\n### Ambiguous request: \"Make it post somewhere\"\n1. `ask_questions(...)` with the known destination choices.\n2. Load `agent-builder-external-services` to decide whether the destination is\n the agent's chat/trigger surface.\n3. If it is a chat integration, call `configure_channel` with the returned\n `integrationType`. After `configure_channel` returns, stop this flow; the\n setup UI already configured or skipped the channel, so do not call\n `configure_channel` again, read, or mutate the config.\n4. Otherwise call `resolve_integration({ queries: [\"<selected service>\"] })`\n and follow the returned kind:\n - `kind: \"mcp\"`: follow the skill's MCP Servers section \u2014 verify and wire\n the MCP server.\n - `kind: \"node\"`: follow the skill's Node Tools section, use the returned\n node results with `get_node_types`, and ask for every required credential.\n5. In this non-chat branch only, `read_config()`, then `patch_config(...)` or\n `write_config(...)` with the resolved capability.\n\n### Publish after build: \"Publish it\" / \"Make it live\"\n1. Finish any pending config mutations.\n2. `publish_agent()`.\n3. Confirm the agent is live; do not send the user to the editor Publish button.";
9
9
  export interface BuilderPromptContext {
10
10
  agentPreviewPath: string;
11
11
  modelRecommendationsSection: string | null;
@@ -54,7 +54,7 @@ must be persisted exactly as returned.
54
54
  Once you are building, ask for any specific decision, choice, value, or
55
55
  clarification through one of these tools rather than in plain prose. Use
56
56
  \`ask_credential\` for node-tool, MCP-server, and fallback web-search credentials,
57
- \`configure_channel\` for chat-channel connections, and \`ask_questions\` for
57
+ \`configure_channel\` for chat-channel setup, and \`ask_questions\` for
58
58
  everything else, including the model/credential choice — resolve the answer with
59
59
  \`resolve_llm\`.
60
60
  Exception: the opening reply to a greeting, a "what do you do", or a vague
@@ -73,8 +73,9 @@ do setup in chat.
73
73
  as \`questions\`, one \`credentialRequests\` entry per credential slot, and
74
74
  one \`channels\` entry per drafted channel integration. It shows the setup
75
75
  cards back-to-back without returning control to you between them —
76
- questions, then credentials, then channels (channels always last, since
77
- connecting one needs credentials already resolved). Never call it
76
+ questions, then credentials, then channels. Channels always run after every
77
+ credential phase even when earlier setup was skipped; each is configured or
78
+ skipped. Never call it
78
79
  together with another interactive tool.
79
80
  - \`ask_credential\`: use once per required node-tool, MCP-server, or fallback
80
81
  web-search credential slot. During an initial build, never call it
@@ -82,11 +83,11 @@ do setup in chat.
82
83
  agent, call it before the related config mutation. For MCP servers, call it
83
84
  before verification. NEVER use it for a chat-channel
84
85
  credential — use \`configure_channel\` instead.
85
- - \`configure_channel\`: ALWAYS use this to connect a chat platform (Slack,
86
+ - \`configure_channel\`: ALWAYS use this to configure a chat platform (Slack,
86
87
  Telegram, ...) as an agent channel, with a type from \`list_integration_types\`.
87
- The setup UI creates and persists the credential itself. During an initial
88
- build, do not call it — write the draft integration instead (see Initial
89
- Build and the integrations skill).
88
+ The setup UI creates and persists the credential itself without publishing
89
+ the agent. During an initial build, do not call it — write the draft
90
+ integration instead (see Initial Build and the integrations skill).
90
91
  - \`ask_questions\`: the default way to ask the user anything that isn't a
91
92
  node-tool credential, MCP-server credential, fallback web-search credential,
92
93
  or channel choice, including when the user must choose, confirm, configure, or
@@ -188,8 +189,9 @@ exports.FEW_SHOT_FLOWS_SECTION = `\
188
189
  \`resolve_llm\` already resolved in step 1, pass only the channel. For a
189
190
  model answer, call \`resolve_llm\` with it, then \`read_config()\` and
190
191
  \`patch_config(...)\` replacing \`/model\` and \`/credential\`. The channel
191
- card in \`finish_setup\` already persisted or skipped the Slack
192
- connection — do not follow it with a config mutation. If the user skips
192
+ card in \`finish_setup\` already configured or skipped the Slack
193
+ channel — do not call \`configure_channel\` again or follow it with a config
194
+ mutation. If the user skips
193
195
  it, end with a one-line checklist item pointing at the channel chip in
194
196
  the agent panel.
195
197
 
@@ -257,8 +259,8 @@ follow-up for the credential.
257
259
  the agent's chat/trigger surface.
258
260
  3. If it is a chat integration, call \`configure_channel\` with the returned
259
261
  \`integrationType\`. After \`configure_channel\` returns, stop this flow; the
260
- setup UI already persisted or skipped the channel, so do not read or mutate
261
- the config.
262
+ setup UI already configured or skipped the channel, so do not call
263
+ \`configure_channel\` again, read, or mutate the config.
262
264
  4. Otherwise call \`resolve_integration({ queries: ["<selected service>"] })\`
263
265
  and follow the returned kind:
264
266
  - \`kind: "mcp"\`: follow the skill's MCP Servers section — verify and wire
@@ -1 +1 @@
1
- {"version":3,"file":"agents-builder-prompts.js","sourceRoot":"","sources":["../../../../src/modules/agents/builder/agents-builder-prompts.ts"],"names":[],"mappings":";;;;;AAAA,6EAA2E;AAC3E,yEAAuE;AACvE,yEAAuE;AAC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AAA,sBAAsB;KACtB,CAAC;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type { BuiltTool, CredentialProvider } from '@n8n/agents';
2
- import { type AgentJsonConfig } from '@n8n/api-types';
3
2
  import { OutboundHttp, SsrfProtectionService } from '@n8n/backend-network';
4
3
  import { SsrfProtectionConfig } from '@n8n/config';
5
4
  import type { User } from '@n8n/db';
@@ -7,6 +6,7 @@ import { CredentialTypes } from '../../../credential-types';
7
6
  import { McpRegistryService } from '../../../modules/mcp-registry/registry/mcp-registry.service';
8
7
  import { NodeTypes } from '../../../node-types';
9
8
  import { OauthService } from '../../../oauth/oauth.service';
9
+ import { AiGatewayService } from '../../../services/ai-gateway.service';
10
10
  import { AiService } from '../../../services/ai.service';
11
11
  import { DynamicNodeParametersService } from '../../../services/dynamic-node-parameters.service';
12
12
  import { FreeAiCreditsService } from '../../../services/free-ai-credits.service';
@@ -17,7 +17,6 @@ import { AgentIntegrationPersistenceService } from '../agent-integration-persist
17
17
  import { AgentPublishService } from '../agent-publish.service';
18
18
  import { AgentSkillsService } from '../agent-skills.service';
19
19
  import { AgentTaskService } from '../agent-task.service';
20
- import { AgentValidationService } from '../agent-validation.service';
21
20
  import { AgentsToolsService } from '../agents-tools.service';
22
21
  import { AgentsService } from '../agents.service';
23
22
  import { AttachableWorkflowsService } from '../attachable-workflows.service';
@@ -27,7 +26,6 @@ interface BuilderTelemetryContext {
27
26
  threadId?: string;
28
27
  runId?: string;
29
28
  }
30
- export declare function getAgentConfigHash(config: AgentJsonConfig | null): string | null;
31
29
  export interface BuilderTools {
32
30
  json: BuiltTool[];
33
31
  shared: BuiltTool[];
@@ -48,6 +46,7 @@ export declare class AgentsBuilderToolsService {
48
46
  private readonly agentTaskService;
49
47
  private readonly agentPublishService;
50
48
  private readonly aiService;
49
+ private readonly aiGatewayService;
51
50
  private readonly outboundHttp;
52
51
  private readonly dynamicNodeParametersService;
53
52
  private readonly nodeTypes;
@@ -55,14 +54,12 @@ export declare class AgentsBuilderToolsService {
55
54
  private readonly ssrfProtectionService;
56
55
  private readonly freeAiCreditsService;
57
56
  private readonly telemetry;
58
- private readonly agentValidationService;
59
- constructor(agentsService: AgentsService, agentConfigService: AgentConfigService, agentCustomToolsService: AgentCustomToolsService, agentIntegrationPersistenceService: AgentIntegrationPersistenceService, agentSkillsService: AgentSkillsService, secureRuntime: AgentSecureRuntime, attachableWorkflowsService: AttachableWorkflowsService, agentsToolsService: AgentsToolsService, builderModelLiveLookupService: BuilderModelLiveLookupService, mcpRegistryService: McpRegistryService, oauthService: OauthService, credentialTypes: CredentialTypes, agentTaskService: AgentTaskService, agentPublishService: AgentPublishService, aiService: AiService, outboundHttp: OutboundHttp, dynamicNodeParametersService: DynamicNodeParametersService, nodeTypes: NodeTypes, ssrfConfig: SsrfProtectionConfig, ssrfProtectionService: SsrfProtectionService, freeAiCreditsService: FreeAiCreditsService, telemetry: Telemetry, agentValidationService: AgentValidationService);
57
+ constructor(agentsService: AgentsService, agentConfigService: AgentConfigService, agentCustomToolsService: AgentCustomToolsService, agentIntegrationPersistenceService: AgentIntegrationPersistenceService, agentSkillsService: AgentSkillsService, secureRuntime: AgentSecureRuntime, attachableWorkflowsService: AttachableWorkflowsService, agentsToolsService: AgentsToolsService, builderModelLiveLookupService: BuilderModelLiveLookupService, mcpRegistryService: McpRegistryService, oauthService: OauthService, credentialTypes: CredentialTypes, agentTaskService: AgentTaskService, agentPublishService: AgentPublishService, aiService: AiService, aiGatewayService: AiGatewayService, outboundHttp: OutboundHttp, dynamicNodeParametersService: DynamicNodeParametersService, nodeTypes: NodeTypes, ssrfConfig: SsrfProtectionConfig, ssrfProtectionService: SsrfProtectionService, freeAiCreditsService: FreeAiCreditsService, telemetry: Telemetry);
60
58
  private withConfigMutationMarker;
61
59
  getTools(agentId: string, projectId: string, credentialProvider: CredentialProvider, user: User, telemetryContext?: BuilderTelemetryContext): BuilderTools;
62
60
  private getJsonTools;
63
61
  private getSharedTools;
64
62
  private getConfigSnapshot;
65
- private emitConfigDiffTelemetry;
66
63
  private applyCredentialToMcpServer;
67
64
  }
68
65
  export {};
@@ -10,21 +10,20 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AgentsBuilderToolsService = void 0;
13
- exports.getAgentConfigHash = getAgentConfigHash;
13
+ const agents_1 = require("@n8n/agents");
14
14
  const tool_1 = require("@n8n/agents/tool");
15
15
  const agent_config_1 = require("@n8n/ai-utilities/agent-config");
16
16
  const api_types_1 = require("@n8n/api-types");
17
17
  const backend_network_1 = require("@n8n/backend-network");
18
18
  const config_1 = require("@n8n/config");
19
19
  const di_1 = require("@n8n/di");
20
- const is_record_1 = require("@n8n/utils/is-record");
21
- const node_crypto_1 = require("node:crypto");
22
20
  const zod_1 = require("zod");
23
21
  const credential_types_1 = require("../../../credential-types");
24
22
  const mcp_registry_service_1 = require("../../../modules/mcp-registry/registry/mcp-registry.service");
25
23
  const node_types_1 = require("../../../node-types");
26
24
  const oauth_service_1 = require("../../../oauth/oauth.service");
27
25
  const check_access_1 = require("../../../permissions.ee/check-access");
26
+ const ai_gateway_service_1 = require("../../../services/ai-gateway.service");
28
27
  const ai_service_1 = require("../../../services/ai.service");
29
28
  const dynamic_node_parameters_service_1 = require("../../../services/dynamic-node-parameters.service");
30
29
  const free_ai_credits_service_1 = require("../../../services/free-ai-credits.service");
@@ -36,11 +35,9 @@ const agent_integration_persistence_service_1 = require("../agent-integration-pe
36
35
  const agent_publish_service_1 = require("../agent-publish.service");
37
36
  const agent_skills_service_1 = require("../agent-skills.service");
38
37
  const agent_task_service_1 = require("../agent-task.service");
39
- const agent_validation_service_1 = require("../agent-validation.service");
40
38
  const agents_tools_service_1 = require("../agents-tools.service");
41
39
  const agents_service_1 = require("../agents.service");
42
40
  const attachable_workflows_service_1 = require("../attachable-workflows.service");
43
- const builder_config_telemetry_1 = require("./builder-config-telemetry");
44
41
  const builder_model_live_lookup_service_1 = require("./builder-model-live-lookup.service");
45
42
  const builder_tool_names_1 = require("./builder-tool-names");
46
43
  const get_resource_locator_options_tool_1 = require("./get-resource-locator-options.tool");
@@ -52,6 +49,7 @@ const task_objective_template_1 = require("./task-objective-template");
52
49
  const verify_mcp_server_tool_1 = require("./verify-mcp-server.tool");
53
50
  const agent_config_composition_1 = require("../json-config/agent-config-composition");
54
51
  const agent_secure_runtime_1 = require("../runtime/agent-secure-runtime");
52
+ const agent_config_hash_1 = require("../utils/agent-config-hash");
55
53
  const STALE_CONFIG_ERROR = {
56
54
  path: '(root)',
57
55
  message: 'Agent config changed since you last read it. Call read_config, then retry using the config and configHash it returns.',
@@ -74,29 +72,10 @@ const createSkillInputSchema = zod_1.z
74
72
  .describe('Markdown-only supporting files under references/... paths. References are not automatically loaded; instructions must say exactly when to load each reference by path.'),
75
73
  })
76
74
  .strict();
77
- function canonicalizeJson(value) {
78
- if (Array.isArray(value)) {
79
- return value.map((item) => canonicalizeJson(item));
80
- }
81
- if (!(0, is_record_1.isRecord)(value))
82
- return value;
83
- const sorted = {};
84
- for (const key of Object.keys(value).sort()) {
85
- sorted[key] = canonicalizeJson(value[key]);
86
- }
87
- return sorted;
88
- }
89
- function getAgentConfigHash(config) {
90
- if (!config)
91
- return null;
92
- return (0, node_crypto_1.createHash)('sha256')
93
- .update(JSON.stringify(canonicalizeJson(config)))
94
- .digest('hex');
95
- }
96
75
  function snapshotFromConfig(config) {
97
76
  return {
98
77
  config,
99
- configHash: getAgentConfigHash(config),
78
+ configHash: (0, agent_config_hash_1.getAgentConfigHash)(config),
100
79
  };
101
80
  }
102
81
  function parseBuilderWriteConfig(incoming, currentConfig) {
@@ -139,7 +118,7 @@ function applyPromptCachingBuilderDefaults(config) {
139
118
  };
140
119
  }
141
120
  let AgentsBuilderToolsService = class AgentsBuilderToolsService {
142
- constructor(agentsService, agentConfigService, agentCustomToolsService, agentIntegrationPersistenceService, agentSkillsService, secureRuntime, attachableWorkflowsService, agentsToolsService, builderModelLiveLookupService, mcpRegistryService, oauthService, credentialTypes, agentTaskService, agentPublishService, aiService, outboundHttp, dynamicNodeParametersService, nodeTypes, ssrfConfig, ssrfProtectionService, freeAiCreditsService, telemetry, agentValidationService) {
121
+ constructor(agentsService, agentConfigService, agentCustomToolsService, agentIntegrationPersistenceService, agentSkillsService, secureRuntime, attachableWorkflowsService, agentsToolsService, builderModelLiveLookupService, mcpRegistryService, oauthService, credentialTypes, agentTaskService, agentPublishService, aiService, aiGatewayService, outboundHttp, dynamicNodeParametersService, nodeTypes, ssrfConfig, ssrfProtectionService, freeAiCreditsService, telemetry) {
143
122
  this.agentsService = agentsService;
144
123
  this.agentConfigService = agentConfigService;
145
124
  this.agentCustomToolsService = agentCustomToolsService;
@@ -155,6 +134,7 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
155
134
  this.agentTaskService = agentTaskService;
156
135
  this.agentPublishService = agentPublishService;
157
136
  this.aiService = aiService;
137
+ this.aiGatewayService = aiGatewayService;
158
138
  this.outboundHttp = outboundHttp;
159
139
  this.dynamicNodeParametersService = dynamicNodeParametersService;
160
140
  this.nodeTypes = nodeTypes;
@@ -162,7 +142,6 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
162
142
  this.ssrfProtectionService = ssrfProtectionService;
163
143
  this.freeAiCreditsService = freeAiCreditsService;
164
144
  this.telemetry = telemetry;
165
- this.agentValidationService = agentValidationService;
166
145
  }
167
146
  withConfigMutationMarker(tool, agentId) {
168
147
  const handler = tool.handler;
@@ -175,7 +154,7 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
175
154
  if (typeof result === 'object' &&
176
155
  result !== null &&
177
156
  (('ok' in result && result.ok === true) ||
178
- ('connected' in result && result.connected === true) ||
157
+ ('configured' in result && result.configured === true) ||
179
158
  ('completed' in result && result.completed === true))) {
180
159
  return { ...result, configMutated: true, agentId };
181
160
  }
@@ -186,7 +165,7 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
186
165
  getTools(agentId, projectId, credentialProvider, user, telemetryContext) {
187
166
  return {
188
167
  json: this.getJsonTools(agentId, projectId, credentialProvider, user, telemetryContext),
189
- shared: this.getSharedTools(agentId, projectId, credentialProvider, user, telemetryContext),
168
+ shared: this.getSharedTools(agentId, projectId, credentialProvider, user),
190
169
  };
191
170
  }
192
171
  getJsonTools(agentId, projectId, credentialProvider, user, telemetryContext) {
@@ -205,7 +184,7 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
205
184
  .input(zod_1.z.object({}))
206
185
  .handler(async () => {
207
186
  try {
208
- const { status: _status, ...snapshot } = await this.getConfigSnapshot(agentId, projectId);
187
+ const snapshot = await this.getConfigSnapshot(agentId, projectId);
209
188
  return { ok: true, ...snapshot };
210
189
  }
211
190
  catch (e) {
@@ -268,8 +247,7 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
268
247
  }
269
248
  const configWithDefaults = applyPromptCachingBuilderDefaults((0, agent_config_1.applyNativeWebSearchDefaultOn)(zodResult.data));
270
249
  try {
271
- const { config: persistedConfig } = await this.agentConfigService.updateConfig(agentId, projectId, configWithDefaults);
272
- this.emitConfigDiffTelemetry(snapshot, persistedConfig, agentId, user, telemetryContext);
250
+ await this.agentConfigService.updateConfig(agentId, projectId, configWithDefaults, user, { modifiedBy: 'builder' });
273
251
  return { ok: true };
274
252
  }
275
253
  catch (e) {
@@ -356,8 +334,7 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
356
334
  }
357
335
  const configWithDefaults = applyPromptCachingBuilderDefaults((0, agent_config_1.applyNativeWebSearchDefaultOn)(zodResult.data));
358
336
  try {
359
- const { config: persistedConfig } = await this.agentConfigService.updateConfig(agentId, projectId, configWithDefaults);
360
- this.emitConfigDiffTelemetry(snapshot, persistedConfig, agentId, user, telemetryContext);
337
+ await this.agentConfigService.updateConfig(agentId, projectId, configWithDefaults, user, { modifiedBy: 'builder' });
361
338
  return { ok: true };
362
339
  }
363
340
  catch (e) {
@@ -419,7 +396,7 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
419
396
  };
420
397
  }
421
398
  try {
422
- const { agent } = await this.agentPublishService.publishAgent(agentId, projectId, user, 'builder', versionId);
399
+ const { agent } = await this.agentPublishService.publishAgent(agentId, projectId, user, { by: 'builder', trigger: 'explicit' }, versionId);
423
400
  return {
424
401
  ok: true,
425
402
  agentId,
@@ -475,6 +452,14 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
475
452
  (0, interactive_1.buildResolveLlmTool)({
476
453
  credentialProvider,
477
454
  modelLookup,
455
+ isProviderServedByGateway: async (provider) => {
456
+ try {
457
+ return ((await this.aiGatewayService.getCredentialTypeForProvider(provider)) !== undefined);
458
+ }
459
+ catch {
460
+ return false;
461
+ }
462
+ },
478
463
  freeCredits: {
479
464
  isEligible: () => this.freeAiCreditsService.isEligible(user),
480
465
  claim: async () => {
@@ -528,12 +513,6 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
528
513
  listChatIntegrationTypes: () => this.agentIntegrationPersistenceService
529
514
  .listChatIntegrations()
530
515
  .map((integration) => integration.type),
531
- getPublishBlockers: async () => {
532
- const { issues } = await this.agentValidationService.validateAgentConfiguration(agentId, projectId, credentialProvider, 'publish');
533
- return issues
534
- .filter((issue) => !issue.path.startsWith('integrations.'))
535
- .map((issue) => ({ path: issue.path, code: issue.code }));
536
- },
537
516
  }), agentId),
538
517
  (0, verify_mcp_server_tool_1.buildVerifyMcpServerTool)({
539
518
  agentId,
@@ -541,7 +520,7 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
541
520
  oauthService: this.oauthService,
542
521
  projectId,
543
522
  proxyFetch: (0, ai_proxy_fetch_1.createAiMcpFetch)(this.outboundHttp, this.ssrfConfig, this.ssrfProtectionService),
544
- applyCredentialToMcpServer: async (serverName, credentialId) => await this.applyCredentialToMcpServer(agentId, projectId, serverName, credentialId),
523
+ applyCredentialToMcpServer: async (serverName, credentialId) => await this.applyCredentialToMcpServer(agentId, projectId, serverName, credentialId, user),
545
524
  }),
546
525
  (0, search_mcp_servers_tool_1.buildSearchMcpServersTool)({ mcpRegistryService: this.mcpRegistryService }),
547
526
  (0, resolve_integration_tool_1.buildResolveIntegrationTool)({
@@ -551,7 +530,7 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
551
530
  ];
552
531
  return tools;
553
532
  }
554
- getSharedTools(agentId, projectId, credentialProvider, user, telemetryContext) {
533
+ getSharedTools(agentId, projectId, credentialProvider, user) {
555
534
  const buildCustomToolTool = new tool_1.Tool(builder_tool_names_1.BUILDER_TOOLS.BUILD_CUSTOM_TOOL)
556
535
  .description('Compile and store a custom tool. Pass the complete TypeScript source ' +
557
536
  'using `export default new Tool(...)` builder chain. The code is validated in a ' +
@@ -566,13 +545,15 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
566
545
  .string()
567
546
  .describe('Complete TypeScript source using export default new Tool(...)'),
568
547
  }))
569
- .handler(async ({ code }) => {
548
+ .handler(async ({ code }, ctx) => {
570
549
  try {
571
550
  const descriptor = await this.secureRuntime.describeToolSecurely(code);
572
- const built = await this.agentCustomToolsService.buildCustomTool(agentId, projectId, code, descriptor);
551
+ const built = await this.agentCustomToolsService.buildCustomTool(agentId, projectId, code, descriptor, { user, modifiedBy: 'builder' });
573
552
  return { ok: true, id: built.id, name: descriptor.name };
574
553
  }
575
554
  catch (e) {
555
+ if (ctx.abortSignal ? ctx.abortSignal.aborted : (0, agents_1.isAbortError)(e))
556
+ throw e;
576
557
  return {
577
558
  ok: false,
578
559
  errors: [{ message: e instanceof Error ? e.message : String(e) }],
@@ -609,7 +590,10 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
609
590
  }))
610
591
  .handler(async ({ skills }) => {
611
592
  try {
612
- const created = await this.agentSkillsService.createSkills(agentId, projectId, skills);
593
+ const created = await this.agentSkillsService.createSkills(agentId, projectId, skills, {
594
+ user,
595
+ modifiedBy: 'builder',
596
+ });
613
597
  return {
614
598
  ok: true,
615
599
  skills: created.map(({ id, skill }) => ({ id, name: skill.name })),
@@ -655,15 +639,9 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
655
639
  .describe('Every task to create, in the order they should be created.'),
656
640
  }))
657
641
  .handler(async ({ tasks, }) => {
658
- let oldSnapshot = null;
659
- try {
660
- oldSnapshot = await this.getConfigSnapshot(agentId, projectId);
661
- }
662
- catch {
663
- }
664
642
  let created;
665
643
  try {
666
- created = await this.agentTaskService.createTasks(agentId, projectId, tasks.map((task) => ({ ...task, enabled: true })));
644
+ created = await this.agentTaskService.createTasks(agentId, projectId, tasks.map((task) => ({ ...task, enabled: true })), { user, modifiedBy: 'builder' });
667
645
  }
668
646
  catch (e) {
669
647
  return {
@@ -671,16 +649,6 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
671
649
  errors: [{ message: e instanceof Error ? e.message : String(e) }],
672
650
  };
673
651
  }
674
- if (oldSnapshot) {
675
- try {
676
- const newSnapshot = await this.getConfigSnapshot(agentId, projectId);
677
- if (newSnapshot.config) {
678
- this.emitConfigDiffTelemetry(oldSnapshot, newSnapshot.config, agentId, user, telemetryContext);
679
- }
680
- }
681
- catch {
682
- }
683
- }
684
652
  return {
685
653
  ok: true,
686
654
  tasks: created.map(({ id, name }) => ({ id, name, enabled: true })),
@@ -724,26 +692,9 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
724
692
  if (!agent)
725
693
  throw new Error('Agent not found');
726
694
  const config = (0, agent_config_composition_1.composeJsonConfig)(agent);
727
- const status = agent.activeVersionId && agent.versionId === agent.activeVersionId ? 'production' : 'draft';
728
- return { ...snapshotFromConfig(config), status };
695
+ return snapshotFromConfig(config);
729
696
  }
730
- emitConfigDiffTelemetry(oldSnapshot, newConfig, agentId, user, telemetryContext) {
731
- try {
732
- for (const { entry, properties } of (0, builder_config_telemetry_1.collectBuilderConfigDiffEvents)(oldSnapshot.config, newConfig)) {
733
- this.telemetry.track(entry, {
734
- agent_id: agentId,
735
- user_id: user.id,
736
- status: oldSnapshot.status,
737
- ...(telemetryContext?.threadId ? { thread_id: telemetryContext.threadId } : {}),
738
- ...(telemetryContext?.runId ? { run_id: telemetryContext.runId } : {}),
739
- ...properties,
740
- });
741
- }
742
- }
743
- catch {
744
- }
745
- }
746
- async applyCredentialToMcpServer(agentId, projectId, serverName, credentialId) {
697
+ async applyCredentialToMcpServer(agentId, projectId, serverName, credentialId, user) {
747
698
  const snapshot = await this.getConfigSnapshot(agentId, projectId);
748
699
  const config = snapshot.config;
749
700
  const servers = config?.mcpServers;
@@ -766,13 +717,15 @@ let AgentsBuilderToolsService = class AgentsBuilderToolsService {
766
717
  throw new Error((0, api_types_1.formatZodErrors)(zodResult.error)[0]?.message ?? 'Invalid MCP server config');
767
718
  }
768
719
  const configWithDefaults = applyPromptCachingBuilderDefaults((0, agent_config_1.applyNativeWebSearchDefaultOn)(zodResult.data));
769
- await this.agentConfigService.updateConfig(agentId, projectId, configWithDefaults);
720
+ await this.agentConfigService.updateConfig(agentId, projectId, configWithDefaults, user, {
721
+ modifiedBy: 'builder',
722
+ });
770
723
  return { applied: true };
771
724
  }
772
725
  };
773
726
  exports.AgentsBuilderToolsService = AgentsBuilderToolsService;
774
727
  exports.AgentsBuilderToolsService = AgentsBuilderToolsService = __decorate([
775
728
  (0, di_1.Service)(),
776
- __metadata("design:paramtypes", [agents_service_1.AgentsService, agent_config_service_1.AgentConfigService, agent_custom_tools_service_1.AgentCustomToolsService, agent_integration_persistence_service_1.AgentIntegrationPersistenceService, agent_skills_service_1.AgentSkillsService, agent_secure_runtime_1.AgentSecureRuntime, attachable_workflows_service_1.AttachableWorkflowsService, agents_tools_service_1.AgentsToolsService, builder_model_live_lookup_service_1.BuilderModelLiveLookupService, mcp_registry_service_1.McpRegistryService, oauth_service_1.OauthService, credential_types_1.CredentialTypes, agent_task_service_1.AgentTaskService, agent_publish_service_1.AgentPublishService, ai_service_1.AiService, backend_network_1.OutboundHttp, dynamic_node_parameters_service_1.DynamicNodeParametersService, node_types_1.NodeTypes, config_1.SsrfProtectionConfig, backend_network_1.SsrfProtectionService, free_ai_credits_service_1.FreeAiCreditsService, telemetry_1.Telemetry, agent_validation_service_1.AgentValidationService])
729
+ __metadata("design:paramtypes", [agents_service_1.AgentsService, agent_config_service_1.AgentConfigService, agent_custom_tools_service_1.AgentCustomToolsService, agent_integration_persistence_service_1.AgentIntegrationPersistenceService, agent_skills_service_1.AgentSkillsService, agent_secure_runtime_1.AgentSecureRuntime, attachable_workflows_service_1.AttachableWorkflowsService, agents_tools_service_1.AgentsToolsService, builder_model_live_lookup_service_1.BuilderModelLiveLookupService, mcp_registry_service_1.McpRegistryService, oauth_service_1.OauthService, credential_types_1.CredentialTypes, agent_task_service_1.AgentTaskService, agent_publish_service_1.AgentPublishService, ai_service_1.AiService, ai_gateway_service_1.AiGatewayService, backend_network_1.OutboundHttp, dynamic_node_parameters_service_1.DynamicNodeParametersService, node_types_1.NodeTypes, config_1.SsrfProtectionConfig, backend_network_1.SsrfProtectionService, free_ai_credits_service_1.FreeAiCreditsService, telemetry_1.Telemetry])
777
730
  ], AgentsBuilderToolsService);
778
731
  //# sourceMappingURL=agents-builder-tools.service.js.map