n8n 2.32.5 → 2.33.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 (711) hide show
  1. package/dist/active-workflow-manager.d.ts +4 -1
  2. package/dist/active-workflow-manager.js +18 -16
  3. package/dist/active-workflow-manager.js.map +1 -1
  4. package/dist/build.tsbuildinfo +1 -1
  5. package/dist/collaboration/collaboration.service.d.ts +1 -0
  6. package/dist/collaboration/collaboration.service.js +12 -1
  7. package/dist/collaboration/collaboration.service.js.map +1 -1
  8. package/dist/commands/base-command.d.ts +3 -2
  9. package/dist/commands/base-command.js +31 -23
  10. package/dist/commands/base-command.js.map +1 -1
  11. package/dist/commands/db/revert.js.map +1 -1
  12. package/dist/commands/import/credentials.d.ts +1 -1
  13. package/dist/commands/import/credentials.js +91 -25
  14. package/dist/commands/import/credentials.js.map +1 -1
  15. package/dist/commands/ldap/reset.js.map +1 -1
  16. package/dist/commands/start.d.ts +1 -0
  17. package/dist/commands/start.js +3 -1
  18. package/dist/commands/start.js.map +1 -1
  19. package/dist/commands/user-management/reset.js +1 -5
  20. package/dist/commands/user-management/reset.js.map +1 -1
  21. package/dist/commands/webhook.d.ts +1 -0
  22. package/dist/commands/webhook.js +1 -1
  23. package/dist/commands/webhook.js.map +1 -1
  24. package/dist/commands/worker.d.ts +1 -0
  25. package/dist/commands/worker.js +1 -1
  26. package/dist/commands/worker.js.map +1 -1
  27. package/dist/constants.js +19 -0
  28. package/dist/constants.js.map +1 -1
  29. package/dist/controllers/ai.controller.d.ts +4 -5
  30. package/dist/controllers/ai.controller.js +5 -22
  31. package/dist/controllers/ai.controller.js.map +1 -1
  32. package/dist/controllers/e2e.controller.d.ts +15 -2
  33. package/dist/controllers/e2e.controller.js +25 -2
  34. package/dist/controllers/e2e.controller.js.map +1 -1
  35. package/dist/controllers/oauth/oauth2-credential.controller.js +5 -1
  36. package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
  37. package/dist/controllers/project.controller.js.map +1 -1
  38. package/dist/controllers/role.controller.d.ts +2 -2
  39. package/dist/controllers/role.controller.js +4 -3
  40. package/dist/controllers/role.controller.js.map +1 -1
  41. package/dist/controllers/users.controller.d.ts +5 -0
  42. package/dist/controllers/users.controller.js +1 -0
  43. package/dist/controllers/users.controller.js.map +1 -1
  44. package/dist/credentials/credential-connection-status-proxy.js.map +1 -1
  45. package/dist/credentials/credential-dependency.service.js.map +1 -1
  46. package/dist/credentials/credentials-finder.service.d.ts +7 -2
  47. package/dist/credentials/credentials-finder.service.js +33 -8
  48. package/dist/credentials/credentials-finder.service.js.map +1 -1
  49. package/dist/credentials/credentials.controller.d.ts +6 -0
  50. package/dist/credentials/credentials.controller.js +44 -5
  51. package/dist/credentials/credentials.controller.js.map +1 -1
  52. package/dist/credentials/credentials.service.d.ts +38 -5
  53. package/dist/credentials/credentials.service.ee.d.ts +4 -2
  54. package/dist/credentials/credentials.service.ee.js +8 -7
  55. package/dist/credentials/credentials.service.ee.js.map +1 -1
  56. package/dist/credentials/credentials.service.js +227 -21
  57. package/dist/credentials/credentials.service.js.map +1 -1
  58. package/dist/credentials/instance-credential-broker.d.ts +24 -0
  59. package/dist/credentials/instance-credential-broker.js +80 -0
  60. package/dist/credentials/instance-credential-broker.js.map +1 -0
  61. package/dist/credentials/instance-credential-use.registry.d.ts +14 -0
  62. package/dist/credentials/instance-credential-use.registry.js +43 -0
  63. package/dist/credentials/instance-credential-use.registry.js.map +1 -0
  64. package/dist/credentials-helper.js +4 -0
  65. package/dist/credentials-helper.js.map +1 -1
  66. package/dist/credentials-overwrites.js +2 -1
  67. package/dist/credentials-overwrites.js.map +1 -1
  68. package/dist/errors/response-errors/workflow-deactivation-bad-request.error.d.ts +9 -0
  69. package/dist/errors/response-errors/workflow-deactivation-bad-request.error.js +13 -0
  70. package/dist/errors/response-errors/workflow-deactivation-bad-request.error.js.map +1 -0
  71. package/dist/evaluation.ee/evaluation-collection.service.d.ts +12 -2
  72. package/dist/evaluation.ee/evaluation-collection.service.js +132 -20
  73. package/dist/evaluation.ee/evaluation-collection.service.js.map +1 -1
  74. package/dist/evaluation.ee/evaluation-collections.controller.ee.d.ts +12 -0
  75. package/dist/evaluation.ee/evaluation-collections.controller.ee.js +12 -0
  76. package/dist/evaluation.ee/evaluation-collections.controller.ee.js.map +1 -1
  77. package/dist/evaluation.ee/insights/eval-insights.service.d.ts +11 -4
  78. package/dist/evaluation.ee/insights/eval-insights.service.js +136 -30
  79. package/dist/evaluation.ee/insights/eval-insights.service.js.map +1 -1
  80. package/dist/evaluation.ee/insights/insights-context-builder.d.ts +59 -0
  81. package/dist/evaluation.ee/insights/insights-context-builder.js +179 -0
  82. package/dist/evaluation.ee/insights/insights-context-builder.js.map +1 -0
  83. package/dist/evaluation.ee/insights/insights-model-resolver.d.ts +16 -0
  84. package/dist/evaluation.ee/insights/insights-model-resolver.js +65 -0
  85. package/dist/evaluation.ee/insights/insights-model-resolver.js.map +1 -0
  86. package/dist/evaluation.ee/metric-scales.d.ts +4 -0
  87. package/dist/evaluation.ee/metric-scales.js +13 -0
  88. package/dist/evaluation.ee/metric-scales.js.map +1 -0
  89. package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +5 -0
  90. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +40 -4
  91. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
  92. package/dist/evaluation.ee/test-runner/workflow-compiler.service.d.ts +6 -1
  93. package/dist/evaluation.ee/test-runner/workflow-compiler.service.js +53 -4
  94. package/dist/evaluation.ee/test-runner/workflow-compiler.service.js.map +1 -1
  95. package/dist/evaluation.ee/test-runs.controller.ee.d.ts +4 -2
  96. package/dist/evaluation.ee/test-runs.controller.ee.js +26 -6
  97. package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
  98. package/dist/eventbus/message-event-bus/message-event-bus.js.map +1 -1
  99. package/dist/events/maps/workflow-publication-metrics.event-map.d.ts +2 -0
  100. package/dist/events/relays/telemetry.event-relay.js +5 -0
  101. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  102. package/dist/executions/execution-data/execution-data-json-store.d.ts +6 -4
  103. package/dist/executions/execution-data/execution-data-json-store.js +17 -5
  104. package/dist/executions/execution-data/execution-data-json-store.js.map +1 -1
  105. package/dist/executions/pre-execution-checks/credentials-permission-checker.d.ts +1 -0
  106. package/dist/executions/pre-execution-checks/credentials-permission-checker.js +17 -5
  107. package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
  108. package/dist/external-hooks.d.ts +18 -9
  109. package/dist/external-hooks.js +13 -0
  110. package/dist/external-hooks.js.map +1 -1
  111. package/dist/license.d.ts +2 -0
  112. package/dist/license.js +13 -1
  113. package/dist/license.js.map +1 -1
  114. package/dist/metrics/prometheus/workflow-info-metrics.service.d.ts +4 -1
  115. package/dist/metrics/prometheus/workflow-info-metrics.service.js +27 -8
  116. package/dist/metrics/prometheus/workflow-info-metrics.service.js.map +1 -1
  117. package/dist/metrics/prometheus/workflow-publication-metrics.service.js +11 -1
  118. package/dist/metrics/prometheus/workflow-publication-metrics.service.js.map +1 -1
  119. package/dist/modules/agents/agent-chat.controller.js +10 -2
  120. package/dist/modules/agents/agent-chat.controller.js.map +1 -1
  121. package/dist/modules/agents/agent-config.service.js +1 -1
  122. package/dist/modules/agents/agent-config.service.js.map +1 -1
  123. package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +7 -1
  124. package/dist/modules/agents/agent-execution-orchestrator.service.js +84 -43
  125. package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
  126. package/dist/modules/agents/agent-execution.service.d.ts +12 -1
  127. package/dist/modules/agents/agent-execution.service.js +82 -7
  128. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  129. package/dist/modules/agents/agent-integration-persistence.service.js +2 -2
  130. package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
  131. package/dist/modules/agents/agent-integrations.controller.js +4 -2
  132. package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
  133. package/dist/modules/agents/agent-knowledge-sandbox.service.js +5 -3
  134. package/dist/modules/agents/agent-knowledge-sandbox.service.js.map +1 -1
  135. package/dist/modules/agents/agent-knowledge.service.d.ts +0 -1
  136. package/dist/modules/agents/agent-knowledge.service.js +2 -9
  137. package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
  138. package/dist/modules/agents/agent-model-catalog.service.js +1 -1
  139. package/dist/modules/agents/agent-model-catalog.service.js.map +1 -1
  140. package/dist/modules/agents/agent-publish.controller.js +2 -2
  141. package/dist/modules/agents/agent-publish.controller.js.map +1 -1
  142. package/dist/modules/agents/agent-publish.service.d.ts +7 -3
  143. package/dist/modules/agents/agent-publish.service.js +31 -8
  144. package/dist/modules/agents/agent-publish.service.js.map +1 -1
  145. package/dist/modules/agents/agent-run-tracing.service.d.ts +30 -0
  146. package/dist/modules/agents/agent-run-tracing.service.js +63 -0
  147. package/dist/modules/agents/agent-run-tracing.service.js.map +1 -0
  148. package/dist/modules/agents/agent-runtime-instrumentation.d.ts +26 -0
  149. package/dist/{blob-storage/types.js → modules/agents/agent-runtime-instrumentation.js} +1 -1
  150. package/dist/modules/agents/agent-runtime-instrumentation.js.map +1 -0
  151. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +3 -1
  152. package/dist/modules/agents/agent-runtime-reconstruction.service.js +31 -8
  153. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
  154. package/dist/modules/agents/agent-sse-stream.js +31 -6
  155. package/dist/modules/agents/agent-sse-stream.js.map +1 -1
  156. package/dist/modules/agents/agent-validation.service.d.ts +2 -1
  157. package/dist/modules/agents/agent-validation.service.js +21 -6
  158. package/dist/modules/agents/agent-validation.service.js.map +1 -1
  159. package/dist/modules/agents/agent-workflow-execution.service.d.ts +5 -3
  160. package/dist/modules/agents/agent-workflow-execution.service.js +31 -9
  161. package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
  162. package/dist/modules/agents/agents-tools.service.js +12 -0
  163. package/dist/modules/agents/agents-tools.service.js.map +1 -1
  164. package/dist/modules/agents/agents.module.js +13 -0
  165. package/dist/modules/agents/agents.module.js.map +1 -1
  166. package/dist/modules/agents/agents.service.d.ts +3 -1
  167. package/dist/modules/agents/agents.service.js +5 -2
  168. package/dist/modules/agents/agents.service.js.map +1 -1
  169. package/dist/modules/agents/builder/agents-builder-model-recommendations.js +6 -4
  170. package/dist/modules/agents/builder/agents-builder-model-recommendations.js.map +1 -1
  171. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +5 -4
  172. package/dist/modules/agents/builder/agents-builder-prompts.js +109 -34
  173. package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
  174. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +16 -2
  175. package/dist/modules/agents/builder/agents-builder-tools.service.js +201 -39
  176. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  177. package/dist/modules/agents/builder/agents-builder.service.js +7 -2
  178. package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
  179. package/dist/modules/agents/builder/builder-config-telemetry.d.ts +12 -0
  180. package/dist/modules/agents/builder/builder-config-telemetry.js +67 -0
  181. package/dist/modules/agents/builder/builder-config-telemetry.js.map +1 -0
  182. package/dist/modules/agents/builder/builder-tool-names.d.ts +2 -0
  183. package/dist/modules/agents/builder/builder-tool-names.js +2 -0
  184. package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
  185. package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +3 -0
  186. package/dist/modules/agents/builder/interactive/ask-credential.tool.js +35 -7
  187. package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
  188. package/dist/modules/agents/builder/interactive/ask-questions.tool.d.ts +4 -1
  189. package/dist/modules/agents/builder/interactive/ask-questions.tool.js +13 -1
  190. package/dist/modules/agents/builder/interactive/ask-questions.tool.js.map +1 -1
  191. package/dist/modules/agents/builder/interactive/configure-channel.tool.d.ts +2 -0
  192. package/dist/modules/agents/builder/interactive/configure-channel.tool.js +7 -1
  193. package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -1
  194. package/dist/modules/agents/builder/interactive/finish-setup.tool.d.ts +17 -0
  195. package/dist/modules/agents/builder/interactive/finish-setup.tool.js +316 -0
  196. package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -0
  197. package/dist/modules/agents/builder/interactive/index.d.ts +1 -0
  198. package/dist/modules/agents/builder/interactive/index.js +3 -1
  199. package/dist/modules/agents/builder/interactive/index.js.map +1 -1
  200. package/dist/modules/agents/builder/interactive/resolve-llm.tool.d.ts +8 -0
  201. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +87 -6
  202. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
  203. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +6 -5
  204. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
  205. package/dist/modules/agents/builder/prompts/config-rules.prompt.js +6 -5
  206. package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
  207. package/dist/modules/agents/builder/prompts/initial-build.prompt.d.ts +2 -0
  208. package/dist/modules/agents/builder/prompts/initial-build.prompt.js +56 -0
  209. package/dist/modules/agents/builder/prompts/initial-build.prompt.js.map +1 -0
  210. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +6 -3
  211. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +1 -1
  212. package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +1 -1
  213. package/dist/modules/agents/builder/prompts/memory.prompt.js +2 -2
  214. package/dist/modules/agents/builder/prompts/memory.prompt.js.map +1 -1
  215. package/dist/modules/agents/builder/prompts/planner-todos.prompt.d.ts +2 -0
  216. package/dist/modules/agents/builder/prompts/planner-todos.prompt.js +22 -0
  217. package/dist/modules/agents/builder/prompts/planner-todos.prompt.js.map +1 -0
  218. package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -1
  219. package/dist/modules/agents/builder/prompts/tools.prompt.js +12 -12
  220. package/dist/modules/agents/builder/resolve-integration.tool.js +1 -1
  221. package/dist/modules/agents/builder/resolve-integration.tool.js.map +1 -1
  222. package/dist/modules/agents/builder/skills/external-services.skill.d.ts +2 -0
  223. package/dist/modules/agents/builder/skills/external-services.skill.js +361 -0
  224. package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -0
  225. package/dist/modules/agents/builder/skills/index.js +2 -6
  226. package/dist/modules/agents/builder/skills/index.js.map +1 -1
  227. package/dist/modules/agents/builder/skills/memory.skill.js +2 -1
  228. package/dist/modules/agents/builder/skills/memory.skill.js.map +1 -1
  229. package/dist/modules/agents/builder/skills/resource-locators.skill.js +17 -3
  230. package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
  231. package/dist/modules/agents/builder/skills/target-skills.skill.js +12 -9
  232. package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
  233. package/dist/modules/agents/builder/skills/target-tasks.skill.js +14 -10
  234. package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
  235. package/dist/modules/agents/builder/verify-mcp-server.tool.d.ts +4 -0
  236. package/dist/modules/agents/builder/verify-mcp-server.tool.js +30 -5
  237. package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
  238. package/dist/modules/agents/entities/agent-execution.entity.d.ts +2 -1
  239. package/dist/modules/agents/entities/agent-execution.entity.js +4 -0
  240. package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
  241. package/dist/modules/agents/execution-log/agent-execution-log-store.d.ts +17 -0
  242. package/dist/modules/agents/execution-log/agent-execution-log-store.js +58 -0
  243. package/dist/modules/agents/execution-log/agent-execution-log-store.js.map +1 -0
  244. package/dist/modules/agents/execution-log/agent-execution-log-write.error.d.ts +5 -0
  245. package/dist/modules/agents/execution-log/agent-execution-log-write.error.js +11 -0
  246. package/dist/modules/agents/execution-log/agent-execution-log-write.error.js.map +1 -0
  247. package/dist/modules/agents/execution-log/corrupted-agent-execution-log.error.d.ts +5 -0
  248. package/dist/modules/agents/execution-log/corrupted-agent-execution-log.error.js +11 -0
  249. package/dist/modules/agents/execution-log/corrupted-agent-execution-log.error.js.map +1 -0
  250. package/dist/modules/agents/instance-ai-builder-delegate.adapter.d.ts +1 -1
  251. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +4 -2
  252. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
  253. package/dist/modules/agents/integrations/agent-chat-bridge.js +8 -4
  254. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  255. package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +4 -2
  256. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +62 -6
  257. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
  258. package/dist/modules/agents/integrations/integration-tool-factory.d.ts +7 -7
  259. package/dist/modules/agents/integrations/integration-tool-factory.js +13 -10
  260. package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
  261. package/dist/modules/agents/integrations/integration-tool-schema.d.ts +7 -7
  262. package/dist/modules/agents/integrations/integration-tool-schema.js +7 -7
  263. package/dist/modules/agents/integrations/integration-tool-schema.js.map +1 -1
  264. package/dist/modules/agents/integrations/slack-app-setup.service.js +2 -1
  265. package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
  266. package/dist/modules/agents/json-config/from-json-config.d.ts +21 -0
  267. package/dist/modules/agents/json-config/from-json-config.js +16 -4
  268. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  269. package/dist/modules/agents/json-config/mcp-client-factory.d.ts +4 -0
  270. package/dist/modules/agents/json-config/mcp-client-factory.js +6 -1
  271. package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
  272. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +14 -1
  273. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
  274. package/dist/modules/agents/{builder/interactive/llm-provider-defaults.d.ts → llm-provider-defaults.d.ts} +1 -0
  275. package/dist/modules/agents/{builder/interactive/llm-provider-defaults.js → llm-provider-defaults.js} +14 -1
  276. package/dist/modules/agents/llm-provider-defaults.js.map +1 -0
  277. package/dist/modules/agents/repositories/agent-execution.repository.d.ts +4 -0
  278. package/dist/modules/agents/repositories/agent-execution.repository.js +31 -0
  279. package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
  280. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +1 -0
  281. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
  282. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.d.ts +4 -1
  283. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js +7 -1
  284. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js.map +1 -1
  285. package/dist/modules/agents/tools/node-tool-factory.d.ts +2 -0
  286. package/dist/modules/agents/tools/node-tool-factory.js +8 -0
  287. package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
  288. package/dist/modules/agents/tools/workflow-tool-factory.d.ts +3 -1
  289. package/dist/modules/agents/tools/workflow-tool-factory.js +9 -3
  290. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  291. package/dist/modules/agents/utils/execution-to-message-mapper.js +4 -2
  292. package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
  293. package/dist/modules/agents/utils/node-tool-validation.js +6 -0
  294. package/dist/modules/agents/utils/node-tool-validation.js.map +1 -1
  295. package/dist/modules/breaking-changes/rules/index.d.ts +3 -0
  296. package/dist/modules/breaking-changes/rules/index.js +3 -0
  297. package/dist/modules/breaking-changes/rules/index.js.map +1 -1
  298. package/dist/modules/breaking-changes/rules/v3/chat-trigger-embedded-json.rule.d.ts +10 -0
  299. package/dist/modules/breaking-changes/rules/v3/chat-trigger-embedded-json.rule.js +58 -0
  300. package/dist/modules/breaking-changes/rules/v3/chat-trigger-embedded-json.rule.js.map +1 -0
  301. package/dist/modules/breaking-changes/rules/v3/removed-nodes-with-replacements.rule.d.ts +239 -0
  302. package/dist/modules/breaking-changes/rules/v3/removed-nodes-with-replacements.rule.js +445 -0
  303. package/dist/modules/breaking-changes/rules/v3/removed-nodes-with-replacements.rule.js.map +1 -0
  304. package/dist/modules/breaking-changes/rules/v3/removed-nodes.rule.d.ts +11 -0
  305. package/dist/modules/breaking-changes/rules/v3/removed-nodes.rule.js +61 -0
  306. package/dist/modules/breaking-changes/rules/v3/removed-nodes.rule.js.map +1 -0
  307. package/dist/modules/community-packages/installed-nodes.entity.js +1 -1
  308. package/dist/modules/community-packages/installed-nodes.entity.js.map +1 -1
  309. package/dist/modules/data-table/data-table-proxy.service.js +13 -0
  310. package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
  311. package/dist/modules/data-table/data-table.controller.js +1 -1
  312. package/dist/modules/data-table/data-table.controller.js.map +1 -1
  313. package/dist/modules/data-table/data-table.service.d.ts +1 -1
  314. package/dist/modules/data-table/data-table.service.js.map +1 -1
  315. package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.js.map +1 -1
  316. package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js.map +1 -1
  317. package/dist/modules/instance-ai/eval/agent-execution.service.d.ts +26 -0
  318. package/dist/modules/instance-ai/eval/agent-execution.service.js +508 -0
  319. package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -0
  320. package/dist/modules/instance-ai/eval/agent-model-turn-recorder.d.ts +9 -0
  321. package/dist/modules/instance-ai/eval/agent-model-turn-recorder.js +110 -0
  322. package/dist/modules/instance-ai/eval/agent-model-turn-recorder.js.map +1 -0
  323. package/dist/modules/instance-ai/eval/agent-scenario-seed.d.ts +14 -0
  324. package/dist/modules/instance-ai/eval/agent-scenario-seed.js +98 -0
  325. package/dist/modules/instance-ai/eval/agent-scenario-seed.js.map +1 -0
  326. package/dist/modules/instance-ai/eval/execution.service.js +3 -3
  327. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  328. package/dist/modules/instance-ai/eval/mcp-mock-fetch.d.ts +28 -0
  329. package/dist/modules/instance-ai/eval/mcp-mock-fetch.js +265 -0
  330. package/dist/modules/instance-ai/eval/mcp-mock-fetch.js.map +1 -0
  331. package/dist/modules/instance-ai/eval/mock-utils.d.ts +4 -0
  332. package/dist/modules/instance-ai/eval/mock-utils.js +41 -0
  333. package/dist/modules/instance-ai/eval/mock-utils.js.map +1 -0
  334. package/dist/modules/instance-ai/eval/request-sanitizer.d.ts +1 -0
  335. package/dist/modules/instance-ai/eval/request-sanitizer.js +26 -0
  336. package/dist/modules/instance-ai/eval/request-sanitizer.js.map +1 -1
  337. package/dist/modules/instance-ai/eval/web-search-mock.d.ts +26 -0
  338. package/dist/modules/instance-ai/eval/web-search-mock.js +122 -0
  339. package/dist/modules/instance-ai/eval/web-search-mock.js.map +1 -0
  340. package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.d.ts +8 -0
  341. package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.js +85 -11
  342. package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.js.map +1 -1
  343. package/dist/modules/instance-ai/instance-ai-error-reporter.service.js +13 -0
  344. package/dist/modules/instance-ai/instance-ai-error-reporter.service.js.map +1 -1
  345. package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +3 -3
  346. package/dist/modules/instance-ai/instance-ai-memory.service.js +5 -11
  347. package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
  348. package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +42 -14
  349. package/dist/modules/instance-ai/instance-ai-settings.service.js +650 -174
  350. package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
  351. package/dist/modules/instance-ai/instance-ai-test.controller.js +4 -1
  352. package/dist/modules/instance-ai/instance-ai-test.controller.js.map +1 -1
  353. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +2 -1
  354. package/dist/modules/instance-ai/instance-ai.adapter.service.js +26 -2
  355. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  356. package/dist/modules/instance-ai/instance-ai.controller.d.ts +14 -6
  357. package/dist/modules/instance-ai/instance-ai.controller.js +84 -29
  358. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  359. package/dist/modules/instance-ai/instance-ai.module.js +9 -2
  360. package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
  361. package/dist/modules/instance-ai/instance-ai.service.d.ts +10 -1
  362. package/dist/modules/instance-ai/instance-ai.service.js +146 -45
  363. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  364. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +1 -1
  365. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +6 -5
  366. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
  367. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.d.ts +6 -2
  368. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +55 -14
  369. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
  370. package/dist/modules/mcp/mcp-protected-resource.d.ts +1 -0
  371. package/dist/modules/mcp/mcp-protected-resource.js +4 -0
  372. package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
  373. package/dist/modules/mcp/mcp-server-middleware.service.js +2 -1
  374. package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
  375. package/dist/modules/mcp/mcp.controller.d.ts +3 -1
  376. package/dist/modules/mcp/mcp.controller.js +15 -11
  377. package/dist/modules/mcp/mcp.controller.js.map +1 -1
  378. package/dist/modules/mcp/mcp.service.d.ts +7 -2
  379. package/dist/modules/mcp/mcp.service.js +63 -43
  380. package/dist/modules/mcp/mcp.service.js.map +1 -1
  381. package/dist/modules/mcp/mcp.types.d.ts +1 -0
  382. package/dist/modules/mcp/tools/execution-utils.d.ts +3 -1
  383. package/dist/modules/mcp/tools/execution-utils.js +6 -4
  384. package/dist/modules/mcp/tools/execution-utils.js.map +1 -1
  385. package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +3 -2
  386. package/dist/modules/mcp/tools/get-workflow-details.tool.js +6 -6
  387. package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
  388. package/dist/modules/mcp/tools/get-workflow-version.tool.d.ts +3 -2
  389. package/dist/modules/mcp/tools/get-workflow-version.tool.js +1 -1
  390. package/dist/modules/mcp/tools/get-workflow-version.tool.js.map +1 -1
  391. package/dist/modules/mcp/tools/schemas.d.ts +34 -32
  392. package/dist/modules/mcp/tools/schemas.js +14 -2
  393. package/dist/modules/mcp/tools/schemas.js.map +1 -1
  394. package/dist/modules/mcp/tools/test-workflow.tool.d.ts +4 -1
  395. package/dist/modules/mcp/tools/test-workflow.tool.js +13 -5
  396. package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -1
  397. package/dist/modules/mcp/tools/webhook-utils.d.ts +3 -3
  398. package/dist/modules/mcp/tools/webhook-utils.js +17 -6
  399. package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
  400. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.d.ts +4 -1
  401. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +5 -1
  402. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
  403. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.d.ts +3 -1
  404. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js +16 -3
  405. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js.map +1 -1
  406. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.d.ts +5 -2
  407. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js +17 -10
  408. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js.map +1 -1
  409. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.d.ts +6 -1
  410. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +8 -2
  411. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
  412. package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.d.ts +4 -2
  413. package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js +8 -1
  414. package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js.map +1 -1
  415. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +280 -2
  416. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +54 -17
  417. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  418. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.d.ts +4 -1
  419. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +58 -1
  420. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
  421. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +51 -5
  422. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +414 -233
  423. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
  424. package/dist/modules/mcp-registry/mcp-registry-test.controller.js +2 -2
  425. package/dist/modules/mcp-registry/mcp-registry-test.controller.js.map +1 -1
  426. package/dist/modules/mcp-registry/mcp-registry.module.js +1 -1
  427. package/dist/modules/mcp-registry/mcp-registry.module.js.map +1 -1
  428. package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +11 -1
  429. package/dist/modules/n8n-packages/engine/import-orchestrator.js +36 -7
  430. package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
  431. package/dist/modules/n8n-packages/engine/import-result.d.ts +3 -2
  432. package/dist/modules/n8n-packages/engine/import-result.js +2 -1
  433. package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
  434. package/dist/modules/n8n-packages/engine/import-telemetry.d.ts +2 -0
  435. package/dist/modules/n8n-packages/engine/import-telemetry.js +11 -0
  436. package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
  437. package/dist/modules/n8n-packages/engine/project-package-importer.js +11 -0
  438. package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
  439. package/dist/modules/n8n-packages/engine/workflow-package-importer.js +10 -1
  440. package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
  441. package/dist/modules/n8n-packages/entities/requirements.types.d.ts +2 -0
  442. package/dist/modules/n8n-packages/entities/requirements.types.js +1 -0
  443. package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -1
  444. package/dist/modules/n8n-packages/entities/variable/variable-importer.d.ts +9 -0
  445. package/dist/modules/n8n-packages/entities/variable/variable-importer.js +55 -0
  446. package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -0
  447. package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.d.ts +3 -0
  448. package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js +12 -0
  449. package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js.map +1 -0
  450. package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +14 -0
  451. package/dist/modules/n8n-packages/entities/variable/variable.types.js +7 -0
  452. package/dist/modules/n8n-packages/entities/variable/variable.types.js.map +1 -1
  453. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.d.ts +37 -0
  454. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js +165 -0
  455. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js.map +1 -0
  456. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +39 -0
  457. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +198 -0
  458. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -0
  459. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.d.ts +7 -0
  460. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js +30 -0
  461. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js.map +1 -0
  462. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.d.ts +11 -0
  463. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js +27 -0
  464. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js.map +1 -0
  465. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.d.ts +2 -0
  466. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.js +23 -0
  467. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.js.map +1 -0
  468. package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +2 -2
  469. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +1 -1
  470. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
  471. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.d.ts +2 -2
  472. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +5 -4
  473. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -1
  474. package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +1 -1
  475. package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.js +2 -2
  476. package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.js.map +1 -1
  477. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +3 -1
  478. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
  479. package/dist/modules/n8n-packages/io/unique-filename-allocator.d.ts +1 -0
  480. package/dist/modules/n8n-packages/io/unique-filename-allocator.js +9 -0
  481. package/dist/modules/n8n-packages/io/unique-filename-allocator.js.map +1 -1
  482. package/dist/modules/n8n-packages/n8n-packages.service.d.ts +8 -4
  483. package/dist/modules/n8n-packages/n8n-packages.service.js +81 -36
  484. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  485. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +40 -3
  486. package/dist/modules/n8n-packages/n8n-packages.types.js +9 -1
  487. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  488. package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +51 -0
  489. package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +45 -0
  490. package/dist/modules/n8n-packages/spec/requirements.schema.js +10 -1
  491. package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
  492. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +1 -1
  493. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
  494. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.d.ts +10 -2
  495. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js +5 -1
  496. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js.map +1 -1
  497. package/dist/modules/oauth-server/database/repositories/oauth-refresh-token.repository.d.ts +14 -2
  498. package/dist/modules/oauth-server/database/repositories/oauth-refresh-token.repository.js +16 -1
  499. package/dist/modules/oauth-server/database/repositories/oauth-refresh-token.repository.js.map +1 -1
  500. package/dist/modules/oauth-server/oauth-token.service.d.ts +3 -2
  501. package/dist/modules/oauth-server/oauth-token.service.js +13 -33
  502. package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
  503. package/dist/modules/oauth-server/oauth.controller.d.ts +3 -0
  504. package/dist/modules/oauth-server/oauth.controller.js +45 -1
  505. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  506. package/dist/modules/oauth-server/oauth.helpers.d.ts +1 -0
  507. package/dist/modules/oauth-server/oauth.helpers.js +7 -0
  508. package/dist/modules/oauth-server/oauth.helpers.js.map +1 -1
  509. package/dist/modules/otel/otel-settings.controller.d.ts +2 -2
  510. package/dist/modules/otel/otel-settings.controller.js +1 -1
  511. package/dist/modules/otel/otel-settings.controller.js.map +1 -1
  512. package/dist/modules/redaction/redaction-context-hook.js +4 -2
  513. package/dist/modules/redaction/redaction-context-hook.js.map +1 -1
  514. package/dist/modules/source-control.ee/source-control-export.service.ee.js +3 -3
  515. package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
  516. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +1 -0
  517. package/dist/modules/source-control.ee/source-control-import.service.ee.js +51 -22
  518. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  519. package/dist/modules/source-control.ee/source-control-scoped.service.js +1 -1
  520. package/dist/modules/source-control.ee/source-control-scoped.service.js.map +1 -1
  521. package/dist/modules/source-control.ee/types/exportable-credential.d.ts +2 -0
  522. package/dist/modules/workflow-index/workflow-dependency-query.service.js +1 -1
  523. package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
  524. package/dist/modules/workflow-reviews.ee/workflow-review-request.service.d.ts +44 -0
  525. package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js +373 -0
  526. package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js.map +1 -0
  527. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.d.ts +14 -0
  528. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js +97 -0
  529. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js.map +1 -0
  530. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.d.ts +4 -0
  531. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +24 -0
  532. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -0
  533. package/dist/node-execution/ephemeral-node-executor.d.ts +5 -1
  534. package/dist/node-execution/ephemeral-node-executor.js +7 -4
  535. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  536. package/dist/node-execution/index.d.ts +1 -0
  537. package/dist/node-execution/index.js +4 -1
  538. package/dist/node-execution/index.js.map +1 -1
  539. package/dist/node-execution/node-tool-operation-support.d.ts +2 -0
  540. package/dist/node-execution/node-tool-operation-support.js +12 -0
  541. package/dist/node-execution/node-tool-operation-support.js.map +1 -0
  542. package/dist/node-types.d.ts +5 -1
  543. package/dist/node-types.js +53 -20
  544. package/dist/node-types.js.map +1 -1
  545. package/dist/oauth/oauth.service.d.ts +5 -1
  546. package/dist/oauth/oauth.service.js +57 -28
  547. package/dist/oauth/oauth.service.js.map +1 -1
  548. package/dist/permissions.ee/check-access.js +18 -0
  549. package/dist/permissions.ee/check-access.js.map +1 -1
  550. package/dist/posthog/index.js +6 -0
  551. package/dist/posthog/index.js.map +1 -1
  552. package/dist/public-api/index.d.ts +1 -1
  553. package/dist/public-api/index.js +40 -11
  554. package/dist/public-api/index.js.map +1 -1
  555. package/dist/public-api/types.d.ts +7 -1
  556. package/dist/public-api/v1/controllers/index.d.ts +2 -0
  557. package/dist/public-api/v1/controllers/index.js +5 -0
  558. package/dist/public-api/v1/controllers/index.js.map +1 -0
  559. package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +9 -0
  560. package/dist/public-api/v1/controllers/workflows.public.controller.js +81 -0
  561. package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -0
  562. package/dist/public-api/v1/handlers/credentials/credentials.handler.js +1 -0
  563. package/dist/public-api/v1/handlers/credentials/credentials.handler.js.map +1 -1
  564. package/dist/public-api/v1/handlers/credentials/credentials.service.d.ts +1 -0
  565. package/dist/public-api/v1/handlers/credentials/credentials.service.js +9 -2
  566. package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -1
  567. package/dist/public-api/v1/handlers/discover/discover.service.d.ts +1 -0
  568. package/dist/public-api/v1/handlers/discover/discover.service.js +39 -34
  569. package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
  570. package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
  571. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +8 -3
  572. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
  573. package/dist/public-api/v1/handlers/otel/otel.handler.d.ts +9 -0
  574. package/dist/public-api/v1/handlers/otel/otel.handler.js +57 -0
  575. package/dist/public-api/v1/handlers/otel/otel.handler.js.map +1 -0
  576. package/dist/public-api/v1/handlers/otel/otel.mapper.d.ts +3 -0
  577. package/dist/public-api/v1/handlers/otel/otel.mapper.js +18 -0
  578. package/dist/public-api/v1/handlers/otel/otel.mapper.js.map +1 -0
  579. package/dist/public-api/v1/handlers/tags/tags.handler.d.ts +0 -1
  580. package/dist/public-api/v1/handlers/tags/tags.handler.js +0 -8
  581. package/dist/public-api/v1/handlers/tags/tags.handler.js.map +1 -1
  582. package/dist/public-api/v1/handlers/users/users.service.ee.js.map +1 -1
  583. package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +2 -0
  584. package/dist/public-api/v1/handlers/workflows/workflows.handler.js +47 -34
  585. package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
  586. package/dist/public-api/v1/handlers/workflows/workflows.service.js +6 -0
  587. package/dist/public-api/v1/handlers/workflows/workflows.service.js.map +1 -1
  588. package/dist/public-api/v1/openapi.yml +491 -19
  589. package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +4 -0
  590. package/dist/public-api/v1/shared/middlewares/global.middleware.js +9 -1
  591. package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +1 -1
  592. package/dist/public-api/v1/shared/public-api-scope-lookup.d.ts +5 -0
  593. package/dist/public-api/v1/shared/public-api-scope-lookup.js +60 -0
  594. package/dist/public-api/v1/shared/public-api-scope-lookup.js.map +1 -0
  595. package/dist/scaling/constants.d.ts +2 -2
  596. package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
  597. package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
  598. package/dist/scheduling/durable-job-provisioner.d.ts +1 -0
  599. package/dist/scheduling/durable-job-provisioner.js +2 -0
  600. package/dist/scheduling/durable-job-provisioner.js.map +1 -1
  601. package/dist/scheduling/durable-scheduler.d.ts +2 -1
  602. package/dist/scheduling/durable-scheduler.js +4 -2
  603. package/dist/scheduling/durable-scheduler.js.map +1 -1
  604. package/dist/scheduling/poll-trigger-node/poll-job-provider.d.ts +11 -0
  605. package/dist/scheduling/poll-trigger-node/poll-job-provider.js +41 -0
  606. package/dist/scheduling/poll-trigger-node/poll-job-provider.js.map +1 -0
  607. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.d.ts +19 -0
  608. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +111 -0
  609. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -0
  610. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.d.ts +16 -0
  611. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js +100 -0
  612. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js.map +1 -0
  613. package/dist/scheduling/poll-trigger-node/poll-trigger-task.d.ts +6 -0
  614. package/dist/scheduling/poll-trigger-node/poll-trigger-task.js +8 -0
  615. package/dist/scheduling/poll-trigger-node/poll-trigger-task.js.map +1 -0
  616. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.d.ts +1 -0
  617. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js +7 -1
  618. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js.map +1 -1
  619. package/dist/security-audit/risk-reporters/credentials-risk-reporter.d.ts +4 -6
  620. package/dist/security-audit/risk-reporters/credentials-risk-reporter.js +17 -23
  621. package/dist/security-audit/risk-reporters/credentials-risk-reporter.js.map +1 -1
  622. package/dist/security-audit/security-audit.repository.js.map +1 -1
  623. package/dist/services/export.service.js.map +1 -1
  624. package/dist/services/folder-finder.service.d.ts +1 -0
  625. package/dist/services/folder-finder.service.js +30 -0
  626. package/dist/services/folder-finder.service.js.map +1 -1
  627. package/dist/services/folder.service.js.map +1 -1
  628. package/dist/services/free-ai-credits.service.d.ts +32 -0
  629. package/dist/services/free-ai-credits.service.js +55 -0
  630. package/dist/services/free-ai-credits.service.js.map +1 -0
  631. package/dist/services/frontend.service.js +2 -0
  632. package/dist/services/frontend.service.js.map +1 -1
  633. package/dist/services/hooks.service.js.map +1 -1
  634. package/dist/services/import.service.js +3 -1
  635. package/dist/services/import.service.js.map +1 -1
  636. package/dist/services/ownership-transfer/ownership-transfer-handler.registry.js.map +1 -1
  637. package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
  638. package/dist/services/project.service.ee.d.ts +1 -0
  639. package/dist/services/project.service.ee.js +6 -1
  640. package/dist/services/project.service.ee.js.map +1 -1
  641. package/dist/services/public-api-key.service.js.map +1 -1
  642. package/dist/services/role.service.d.ts +2 -1
  643. package/dist/services/role.service.js +21 -3
  644. package/dist/services/role.service.js.map +1 -1
  645. package/dist/services/tag.service.js.map +1 -1
  646. package/dist/telemetry/index.d.ts +3 -2
  647. package/dist/telemetry/index.js +7 -1
  648. package/dist/telemetry/index.js.map +1 -1
  649. package/dist/utils.d.ts +1 -0
  650. package/dist/utils.js +4 -0
  651. package/dist/utils.js.map +1 -1
  652. package/dist/webhooks/live-webhooks.js +1 -1
  653. package/dist/webhooks/live-webhooks.js.map +1 -1
  654. package/dist/webhooks/waiting-forms.js +2 -7
  655. package/dist/webhooks/waiting-forms.js.map +1 -1
  656. package/dist/webhooks/waiting-webhooks.d.ts +7 -2
  657. package/dist/webhooks/waiting-webhooks.js +32 -2
  658. package/dist/webhooks/waiting-webhooks.js.map +1 -1
  659. package/dist/workflow-helpers.js +8 -62
  660. package/dist/workflow-helpers.js.map +1 -1
  661. package/dist/workflows/publication/workflow-publication-reconciler.service.d.ts +10 -3
  662. package/dist/workflows/publication/workflow-publication-reconciler.service.js +49 -13
  663. package/dist/workflows/publication/workflow-publication-reconciler.service.js.map +1 -1
  664. package/dist/workflows/triggers/non-webhook-trigger-registrar.d.ts +3 -1
  665. package/dist/workflows/triggers/non-webhook-trigger-registrar.js +5 -2
  666. package/dist/workflows/triggers/non-webhook-trigger-registrar.js.map +1 -1
  667. package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +13 -4
  668. package/dist/workflows/triggers/trigger-execution-context.factory.js +62 -4
  669. package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
  670. package/dist/workflows/workflow-creation.service.js +8 -2
  671. package/dist/workflows/workflow-creation.service.js.map +1 -1
  672. package/dist/workflows/workflow-finder.service.js +1 -0
  673. package/dist/workflows/workflow-finder.service.js.map +1 -1
  674. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  675. package/dist/workflows/workflow-sharing.service.js.map +1 -1
  676. package/dist/workflows/workflow-validation.service.js +1 -1
  677. package/dist/workflows/workflow-validation.service.js.map +1 -1
  678. package/dist/workflows/workflow.service.d.ts +5 -2
  679. package/dist/workflows/workflow.service.ee.js +1 -0
  680. package/dist/workflows/workflow.service.ee.js.map +1 -1
  681. package/dist/workflows/workflow.service.js +54 -12
  682. package/dist/workflows/workflow.service.js.map +1 -1
  683. package/dist/workflows/workflows.controller.js.map +1 -1
  684. package/package.json +36 -35
  685. package/dist/blob-storage/azure-byte-store.ee.d.ts +0 -10
  686. package/dist/blob-storage/azure-byte-store.ee.js +0 -42
  687. package/dist/blob-storage/azure-byte-store.ee.js.map +0 -1
  688. package/dist/blob-storage/fs-byte-store.d.ts +0 -14
  689. package/dist/blob-storage/fs-byte-store.js +0 -96
  690. package/dist/blob-storage/fs-byte-store.js.map +0 -1
  691. package/dist/blob-storage/json-store.d.ts +0 -18
  692. package/dist/blob-storage/json-store.js +0 -128
  693. package/dist/blob-storage/json-store.js.map +0 -1
  694. package/dist/blob-storage/s3-byte-store.ee.d.ts +0 -10
  695. package/dist/blob-storage/s3-byte-store.ee.js +0 -37
  696. package/dist/blob-storage/s3-byte-store.ee.js.map +0 -1
  697. package/dist/blob-storage/skipped-entry-deletion.error.d.ts +0 -5
  698. package/dist/blob-storage/skipped-entry-deletion.error.js +0 -13
  699. package/dist/blob-storage/skipped-entry-deletion.error.js.map +0 -1
  700. package/dist/blob-storage/types.d.ts +0 -23
  701. package/dist/blob-storage/types.js.map +0 -1
  702. package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +0 -1
  703. package/dist/modules/agents/builder/skills/integrations.skill.d.ts +0 -2
  704. package/dist/modules/agents/builder/skills/integrations.skill.js +0 -128
  705. package/dist/modules/agents/builder/skills/integrations.skill.js.map +0 -1
  706. package/dist/modules/agents/builder/skills/mcp.skill.d.ts +0 -2
  707. package/dist/modules/agents/builder/skills/mcp.skill.js +0 -172
  708. package/dist/modules/agents/builder/skills/mcp.skill.js.map +0 -1
  709. package/dist/modules/agents/builder/skills/node-tools.skill.d.ts +0 -2
  710. package/dist/modules/agents/builder/skills/node-tools.skill.js +0 -90
  711. package/dist/modules/agents/builder/skills/node-tools.skill.js.map +0 -1
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FEW_SHOT_FLOWS_SECTION = exports.WORKFLOW_SECTION = exports.RESPONSE_STYLE_SECTION = exports.READ_CONFIG_FRESHNESS_SECTION = exports.INTERACTIVE_TOOLS_SECTION = exports.TARGET_AGENT_SECTION = void 0;
3
+ exports.FEW_SHOT_FLOWS_SECTION = exports.WORKFLOW_SECTION = exports.RESPONSE_STYLE_SECTION = exports.READ_CONFIG_FRESHNESS_SECTION = exports.INTERACTIVE_TOOLS_SECTION = exports.PREREQUISITES_SECTION = exports.TARGET_AGENT_SECTION = void 0;
4
4
  exports.getConversationModeSection = getConversationModeSection;
5
5
  exports.buildBuilderPrompt = buildBuilderPrompt;
6
6
  const config_mutation_prompt_1 = require("./prompts/config-mutation.prompt");
7
+ const initial_build_prompt_1 = require("./prompts/initial-build.prompt");
7
8
  const llm_selection_prompt_1 = require("./prompts/llm-selection.prompt");
8
9
  const memory_prompt_1 = require("./prompts/memory.prompt");
9
10
  const tools_prompt_1 = require("./prompts/tools.prompt");
@@ -14,6 +15,12 @@ You are the builder agent, not the target agent.
14
15
  The target agent is the AI agent you are configuring for the user. Changes to
15
16
  config, tools, memory, integrations, and target-agent skills affect the target
16
17
  agent, not your own builder behavior.`;
18
+ exports.PREREQUISITES_SECTION = `\
19
+ ## Prerequisites you cannot create
20
+
21
+ You cannot create n8n workflows or data tables. Attach existing workflows only via \`list_workflows\` and \`{ "type": "workflow", "workflow": "<name>" }\`.
22
+
23
+ If 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.`;
17
24
  function getConversationModeSection(agentPreviewPath) {
18
25
  return `\
19
26
  ## When To Build vs When To Converse
@@ -29,8 +36,13 @@ agent in this Build chat, do not call tools. Reply exactly:
29
36
  "Head to the [Preview](${agentPreviewPath}) section to chat with your agent."
30
37
  Do not say anything else. Keep the Preview link as a relative app path.
31
38
 
32
- Never write empty, placeholder, or guessed \`instructions\`. If you do not have
33
- enough detail to write meaningful instructions, ask the user first.`;
39
+ After a successful build or config change that leaves the agent ready to try,
40
+ include the same [Preview](${agentPreviewPath}) markdown link in your wrap-up
41
+ (it can be part of a longer reply). Do not invent a different path.
42
+
43
+ Never write empty or placeholder \`instructions\`. When the user gave a
44
+ concrete goal, write real instructions from it and fill gaps with sensible assumptions
45
+ stated in your summary. Only ask first when the overall goal itself is missing.`;
34
46
  }
35
47
  exports.INTERACTIVE_TOOLS_SECTION = `\
36
48
  ## Interactive tools
@@ -49,14 +61,32 @@ Exception: the opening reply to a greeting, a "what do you do", or a vague
49
61
  intent — there you reply conversationally and ask for the overall goal, per
50
62
  "When To Build vs When To Converse".
51
63
 
64
+ "Initial build" means the first build pass on a fresh agent; per the Initial
65
+ Build section, never suspend during it except the single trailing
66
+ \`finish_setup\` call. Interactive tools are for everything after that —
67
+ additions or changes to an existing agent (ask before the related config
68
+ mutation, batching what you can) and follow-up turns where the user asked to
69
+ do setup in chat.
70
+
71
+ - \`finish_setup\`: use ONCE, only in the trailing step of an initial build
72
+ when only blocked tasks remain — the model choice and every open decision
73
+ as \`questions\`, one \`credentialRequests\` entry per credential slot, and
74
+ one \`channels\` entry per drafted channel integration. It shows the setup
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
78
+ together with another interactive tool.
52
79
  - \`ask_credential\`: use once per required node-tool, MCP-server, or fallback
53
- web-search credential slot. For node tools and fallback web search, call it
54
- before the related config mutation; for MCP servers, call it before
55
- verification. NEVER use it for a chat-channel
80
+ web-search credential slot. During an initial build, never call it
81
+ (see Initial Build). For an addition to an existing
82
+ agent, call it before the related config mutation. For MCP servers, call it
83
+ before verification. NEVER use it for a chat-channel
56
84
  credential — use \`configure_channel\` instead.
57
85
  - \`configure_channel\`: ALWAYS use this to connect a chat platform (Slack,
58
86
  Telegram, ...) as an agent channel, with a type from \`list_integration_types\`.
59
- The setup UI creates and persists the credential itself.
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).
60
90
  - \`ask_questions\`: the default way to ask the user anything that isn't a
61
91
  node-tool credential, MCP-server credential, fallback web-search credential,
62
92
  or channel choice, including when the user must choose, confirm, configure, or
@@ -65,8 +95,11 @@ intent — there you reply conversationally and ask for the overall goal, per
65
95
  question you currently need into a single call instead of asking one at a
66
96
  time. Each question is single-select, multi-select, or free-text; pass
67
97
  discrete \`options\` for a known small set of choices, or \`type: "text"\` for
68
- an open-ended question.
98
+ an open-ended question. Never call it during an initial build
99
+ (see Initial Build).
69
100
  - Never call two interactive tools in parallel. The run suspends on the first.
101
+ - Never suspend during an initial build except the trailing \`finish_setup\`
102
+ call; see the Initial Build section.
70
103
  - Never re-ask a question the user already answered in this thread.
71
104
  - After resume, continue with the next concrete tool action. Do not narrate the
72
105
  answer back to the user.`;
@@ -104,20 +137,36 @@ exports.RESPONSE_STYLE_SECTION = `\
104
137
 
105
138
  Be concise. After a build step, give a 1-2 sentence summary of what changed and
106
139
  one useful next step if there is one. Do not narrate reasoning before tool
107
- calls, reprint JSON, or list what is already visible in the sidebar.`;
140
+ calls, reprint JSON, or list what is already visible in the sidebar. When
141
+ setup remains after \`finish_setup\` (skipped or dismissed items), end with
142
+ the setup checklist per the Initial Build section; keep it to one line per
143
+ item.`;
108
144
  exports.WORKFLOW_SECTION = `\
109
145
  ## Workflow
110
146
 
111
- 1. Clarify missing decisions through the Interactive tools, batching questions.
112
- 2. For fresh agents, resolve the main model and credential with \`resolve_llm\`.
113
- 3. Draft real target-agent \`instructions\`; never write empty placeholders.
147
+ 1. For every request that builds or changes the agent, call \`write_todos\`
148
+ with the full plan first even short ones. Mark tasks that cannot
149
+ proceed without user input as \`blocked\`, stating exactly what is
150
+ missing.
151
+ 2. For fresh agents, call \`resolve_llm\` once, silently. If it resolves —
152
+ including an auto-picked provider or newly provisioned free OpenAI
153
+ credits — use the result and mention the choice in your summary. If it
154
+ reports missing or ambiguous credentials, mark the model
155
+ task \`blocked\` and keep building: write the config with \`model: ""\` and
156
+ no \`credential\`.
157
+ 3. Draft real target-agent \`instructions\` and write the config early; never
158
+ write empty placeholders, and never wait for setup answers before writing
159
+ instructions, tools, skills, or tasks.
114
160
  4. Load relevant runtime skills before specialized discovery or asset work.
115
161
  5. Perform discovery and create any requested tools, skills, or tasks.
116
162
  6. Follow Config Freshness immediately before every config mutation.
117
163
  7. When both skill and task batches are fully specified, call \`create_skills\`
118
164
  and \`create_tasks\` in the same assistant response. Do not combine either
119
165
  with an interactive tool or \`write_config\`/\`patch_config\` in that response.
120
- 8. When the user asks to publish, activate, or make the agent live/usable, call
166
+ 8. When only blocked tasks remain, call \`finish_setup\` once with every
167
+ pending item, per the Initial Build section, then resolve its results and
168
+ finish the plan — re-check with \`read_config\` before patching.
169
+ 9. When the user asks to publish, activate, or make the agent live/usable, call
121
170
  \`publish_agent\`. Never tell them to click Publish in the editor. Do not
122
171
  auto-publish without that intent. Use \`unpublish_agent\` when they ask to
123
172
  unpublish.`;
@@ -125,29 +174,41 @@ exports.FEW_SHOT_FLOWS_SECTION = `\
125
174
  ## Example flows
126
175
 
127
176
  ### New agent: "Build me an agent teammates can @mention in Slack to triage messages"
128
- 1. \`ask_questions({ ... })\` for the model choice, then
129
- \`resolve_llm({ provider, model })\` -> resolved provider, model, and credential.
177
+ 1. \`write_todos\` with the plan. \`resolve_llm({})\` once, silently; if it
178
+ reports missing credentials, mark the model task \`blocked\`.
130
179
  2. \`read_config()\`.
131
- 3. \`write_config(...)\` with the model, credential, and instructions.
132
- 4. Load \`agent-builder-integrations\`, call \`list_integration_types()\`, and
133
- select the returned Slack type.
134
- 5. \`configure_channel({ integrationType: "slack" })\`. The setup UI persists or
135
- skips the channel; do not follow it with a config read or mutation.
180
+ 3. \`write_config(...)\` with the instructions, and the resolved model and
181
+ credential or \`model: ""\` and no \`credential\` while the model task
182
+ is blocked.
183
+ 4. Load \`agent-builder-external-services\`, call \`list_integration_types()\`,
184
+ \`read_config()\`, then \`patch_config(...)\` adding the returned Slack type
185
+ to \`/integrations/-\` with \`credentialId: ""\`.
186
+ 5. \`finish_setup({ channels: [{ integrationType: "slack" }] })\` — include
187
+ \`questions: [<model choice>]\` only if the model task is blocked; when
188
+ \`resolve_llm\` already resolved in step 1, pass only the channel. For a
189
+ model answer, call \`resolve_llm\` with it, then \`read_config()\` and
190
+ \`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
193
+ it, end with a one-line checklist item pointing at the channel chip in
194
+ the agent panel.
136
195
 
137
196
  ### New agent: "Use Anthropic via OpenRouter"
138
- 1. \`resolve_llm({ provider: "openrouter" })\`.
139
- 2. \`read_config()\`.
140
- 3. \`write_config(...)\` with \`model: "openrouter/{resolvedModel}"\`,
197
+ 1. \`write_todos\` with the plan.
198
+ 2. \`resolve_llm({ provider: "openrouter" })\`.
199
+ 3. \`read_config()\`.
200
+ 4. \`write_config(...)\` with \`model: "openrouter/{resolvedModel}"\`,
141
201
  \`credential\`, and requested instructions.
142
202
 
143
203
  ### Change the existing model
144
- 1. \`ask_questions({ ... })\` for the new model choice, then
204
+ 1. \`write_todos\` with the plan.
205
+ 2. \`ask_questions({ ... })\` for the new model choice, then
145
206
  \`resolve_llm({ provider, model })\`.
146
- 2. \`read_config()\`.
147
- 3. \`patch_config(...)\` replacing \`/model\` and \`/credential\`.
207
+ 3. \`read_config()\`.
208
+ 4. \`patch_config(...)\` replacing \`/model\` and \`/credential\`.
148
209
 
149
210
  ### Add an explicitly requested n8n node tool to an existing agent
150
- 1. Load \`agent-builder-node-tools\`, then call \`search_nodes\` and
211
+ 1. Load \`agent-builder-external-services\`, then call \`search_nodes\` and
151
212
  \`get_node_types\`; the explicit n8n-node request does not need
152
213
  \`resolve_integration\`.
153
214
  2. \`ask_credential\` for every required slot.
@@ -155,16 +216,27 @@ exports.FEW_SHOT_FLOWS_SECTION = `\
155
216
  4. \`patch_config(...)\` adding the node tool to \`/tools/-\`.
156
217
 
157
218
  ### Add an explicitly requested n8n node tool when credential setup is skipped
158
- 1. Load \`agent-builder-node-tools\`, then call \`search_nodes\` and
219
+ 1. Load \`agent-builder-external-services\`, then call \`search_nodes\` and
159
220
  \`get_node_types\`.
160
221
  2. \`ask_credential(...)\` -> \`{ skipped: true }\`.
161
222
  3. \`read_config()\`.
162
223
  4. \`patch_config(...)\` adding the tool and omitting only the skipped
163
224
  credential slot. Do not abort the tool addition.
225
+ 5. Summarize it as a successful addition, not a failure: the tool is in
226
+ place and starts working once a credential is connected. Never say you
227
+ could not complete it — end with a one-line checklist item for
228
+ connecting the credential later.
164
229
 
165
230
  ### Add MCP integration: "Connect Notion MCP"
231
+ This flow is user-initiated on an existing agent, so the credential ask is
232
+ immediate. During an initial build, pick the best candidate as a stated
233
+ assumption, write the draft \`/mcpServers/-\` entry with \`credential\` omitted,
234
+ skip verification, and include the credential in the trailing \`finish_setup\`
235
+ call; verify with the returned credential id — on success the tool writes the
236
+ credential into the matching entry itself; no \`read_config\`/\`patch_config\`
237
+ follow-up for the credential.
166
238
  1. \`resolve_integration({ queries: ["notion"] })\`.
167
- 2. When it returns \`kind: "mcp"\`, load \`agent-builder-mcp\`.
239
+ 2. When it returns \`kind: "mcp"\`, load \`agent-builder-external-services\`.
168
240
  3. For MCP candidates, select one entry from \`results[]\`. If
169
241
  multiple candidates remain, use \`ask_questions\` with their titles and
170
242
  descriptions; never choose by array order. If the user dismisses the
@@ -181,17 +253,18 @@ exports.FEW_SHOT_FLOWS_SECTION = `\
181
253
 
182
254
  ### Ambiguous request: "Make it post somewhere"
183
255
  1. \`ask_questions(...)\` with the known destination choices.
184
- 2. Load \`agent-builder-integrations\` to decide whether the destination is the
185
- agent's chat/trigger surface.
256
+ 2. Load \`agent-builder-external-services\` to decide whether the destination is
257
+ the agent's chat/trigger surface.
186
258
  3. If it is a chat integration, call \`configure_channel\` with the returned
187
259
  \`integrationType\`. After \`configure_channel\` returns, stop this flow; the
188
260
  setup UI already persisted or skipped the channel, so do not read or mutate
189
261
  the config.
190
262
  4. Otherwise call \`resolve_integration({ queries: ["<selected service>"] })\`
191
263
  and follow the returned kind:
192
- - \`kind: "mcp"\`: load \`agent-builder-mcp\`, verify, and wire the MCP server.
193
- - \`kind: "node"\`: load \`agent-builder-node-tools\`, use the returned node
194
- results with \`get_node_types\`, and ask for every required credential.
264
+ - \`kind: "mcp"\`: follow the skill's MCP Servers section — verify and wire
265
+ the MCP server.
266
+ - \`kind: "node"\`: follow the skill's Node Tools section, use the returned
267
+ node results with \`get_node_types\`, and ask for every required credential.
195
268
  5. In this non-chat branch only, \`read_config()\`, then \`patch_config(...)\` or
196
269
  \`write_config(...)\` with the resolved capability.
197
270
 
@@ -204,12 +277,14 @@ function buildBuilderPrompt(ctx) {
204
277
  const sections = [
205
278
  'You are an expert agent builder. You help users create and configure AI agents by writing raw JSON configuration and building custom tools.',
206
279
  exports.TARGET_AGENT_SECTION,
280
+ exports.PREREQUISITES_SECTION,
207
281
  getConversationModeSection(agentPreviewPath),
208
282
  (0, config_mutation_prompt_1.getConfigMutationPrompt)(),
209
283
  (0, llm_selection_prompt_1.getLlmSelectionPrompt)(modelRecommendationsSection),
210
284
  memory_prompt_1.MEMORY_PROMPT,
211
285
  tools_prompt_1.TOOLS_PROMPT,
212
286
  exports.INTERACTIVE_TOOLS_SECTION,
287
+ initial_build_prompt_1.INITIAL_BUILD_SECTION,
213
288
  exports.READ_CONFIG_FRESHNESS_SECTION,
214
289
  exports.WORKFLOW_SECTION,
215
290
  exports.FEW_SHOT_FLOWS_SECTION,
@@ -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,2DAAwD;AACxD,yDAAsD;AAEzC,QAAA,oBAAoB,GAAG;;;;;;sCAME,CAAC;AAEvC,oCAA2C,gBAAwB;IAClE,OAAO;;;;;;;;;;;yBAWiB,gBAAgB;;;;oEAI2B,CAAC;AACrE,CAAC;AAEY,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAqCd,CAAC;AAEf,QAAA,6BAA6B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA4BnB,CAAC;AACd,QAAA,sBAAsB,GAAG;;;;;qEAK+B,CAAC;AAEzD,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;cAelB,CAAC;AAEF,QAAA,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFA6E2C,CAAC;AAOlF,4BAAmC,GAAyB;IAC3D,MAAM,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,GAAG,GAAG,CAAC;IAE9D,MAAM,QAAQ,GAAG;QAChB,6IAA6I;QAC7I,QAAA,oBAAoB;QACpB,0BAA0B,CAAC,gBAAgB,CAAC;QAC5C,IAAA,gDAAuB,GAAE;QACzB,IAAA,4CAAqB,EAAC,2BAA2B,CAAC;QAClD,6BAAa;QACb,2BAAY;QACZ,QAAA,yBAAyB;QACzB,QAAA,6BAA6B;QAC7B,QAAA,gBAAgB;QAChB,QAAA,sBAAsB;QACtB,QAAA,sBAAsB;KACtB,CAAC;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC"}
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;AACvE,2DAAwD;AACxD,yDAAsD;AAEzC,QAAA,oBAAoB,GAAG;;;;;;sCAME,CAAC;AAE1B,QAAA,qBAAqB,GAAG;;;;;8NAKyL,CAAC;AAE/N,oCAA2C,gBAAwB;IAClE,OAAO;;;;;;;;;;;yBAWiB,gBAAgB;;;;6BAIZ,gBAAgB;;;;;gFAKmC,CAAC;AACjF,CAAC;AAEY,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0Dd,CAAC;AAEf,QAAA,6BAA6B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA4BnB,CAAC;AACd,QAAA,sBAAsB,GAAG;;;;;;;;MAQhC,CAAC;AAEM,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BlB,CAAC;AAEF,QAAA,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAqG2C,CAAC;AAOlF,4BAAmC,GAAyB;IAC3D,MAAM,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,GAAG,GAAG,CAAC;IAE9D,MAAM,QAAQ,GAAG;QAChB,6IAA6I;QAC7I,QAAA,oBAAoB;QACpB,QAAA,qBAAqB;QACrB,0BAA0B,CAAC,gBAAgB,CAAC;QAC5C,IAAA,gDAAuB,GAAE;QACzB,IAAA,4CAAqB,EAAC,2BAA2B,CAAC;QAClD,6BAAa;QACb,2BAAY;QACZ,QAAA,yBAAyB;QACzB,4CAAqB;QACrB,QAAA,6BAA6B;QAC7B,QAAA,gBAAgB;QAChB,QAAA,sBAAsB;QACtB,QAAA,sBAAsB;KACtB,CAAC;IAEF,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC"}
@@ -9,17 +9,24 @@ import { NodeTypes } from '../../../node-types';
9
9
  import { OauthService } from '../../../oauth/oauth.service';
10
10
  import { AiService } from '../../../services/ai.service';
11
11
  import { DynamicNodeParametersService } from '../../../services/dynamic-node-parameters.service';
12
+ import { FreeAiCreditsService } from '../../../services/free-ai-credits.service';
13
+ import { Telemetry } from '../../../telemetry';
12
14
  import { AgentConfigService } from '../agent-config.service';
13
15
  import { AgentCustomToolsService } from '../agent-custom-tools.service';
14
16
  import { AgentIntegrationPersistenceService } from '../agent-integration-persistence.service';
15
17
  import { AgentPublishService } from '../agent-publish.service';
16
18
  import { AgentSkillsService } from '../agent-skills.service';
17
19
  import { AgentTaskService } from '../agent-task.service';
20
+ import { AgentValidationService } from '../agent-validation.service';
18
21
  import { AgentsToolsService } from '../agents-tools.service';
19
22
  import { AgentsService } from '../agents.service';
20
23
  import { AttachableWorkflowsService } from '../attachable-workflows.service';
21
24
  import { BuilderModelLiveLookupService } from './builder-model-live-lookup.service';
22
25
  import { AgentSecureRuntime } from '../runtime/agent-secure-runtime';
26
+ interface BuilderTelemetryContext {
27
+ threadId?: string;
28
+ runId?: string;
29
+ }
23
30
  export declare function getAgentConfigHash(config: AgentJsonConfig | null): string | null;
24
31
  export interface BuilderTools {
25
32
  json: BuiltTool[];
@@ -46,9 +53,16 @@ export declare class AgentsBuilderToolsService {
46
53
  private readonly nodeTypes;
47
54
  private readonly ssrfConfig;
48
55
  private readonly ssrfProtectionService;
49
- 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);
50
- getTools(agentId: string, projectId: string, credentialProvider: CredentialProvider, user: User): BuilderTools;
56
+ private readonly freeAiCreditsService;
57
+ 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);
60
+ private withConfigMutationMarker;
61
+ getTools(agentId: string, projectId: string, credentialProvider: CredentialProvider, user: User, telemetryContext?: BuilderTelemetryContext): BuilderTools;
51
62
  private getJsonTools;
52
63
  private getSharedTools;
53
64
  private getConfigSnapshot;
65
+ private emitConfigDiffTelemetry;
66
+ private applyCredentialToMcpServer;
54
67
  }
68
+ export {};