n8n 2.32.4 → 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 (713) 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 +33 -7
  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 +5 -0
  270. package/dist/modules/agents/json-config/mcp-client-factory.js +7 -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/mcp/instance-ai-mcp-registry.service.js +1 -1
  365. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -1
  366. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +1 -1
  367. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +6 -5
  368. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
  369. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.d.ts +6 -2
  370. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +55 -14
  371. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
  372. package/dist/modules/mcp/mcp-protected-resource.d.ts +1 -0
  373. package/dist/modules/mcp/mcp-protected-resource.js +4 -0
  374. package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
  375. package/dist/modules/mcp/mcp-server-middleware.service.js +2 -1
  376. package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
  377. package/dist/modules/mcp/mcp.controller.d.ts +3 -1
  378. package/dist/modules/mcp/mcp.controller.js +15 -11
  379. package/dist/modules/mcp/mcp.controller.js.map +1 -1
  380. package/dist/modules/mcp/mcp.service.d.ts +7 -2
  381. package/dist/modules/mcp/mcp.service.js +63 -43
  382. package/dist/modules/mcp/mcp.service.js.map +1 -1
  383. package/dist/modules/mcp/mcp.types.d.ts +1 -0
  384. package/dist/modules/mcp/tools/execution-utils.d.ts +3 -1
  385. package/dist/modules/mcp/tools/execution-utils.js +6 -4
  386. package/dist/modules/mcp/tools/execution-utils.js.map +1 -1
  387. package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +3 -2
  388. package/dist/modules/mcp/tools/get-workflow-details.tool.js +6 -6
  389. package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
  390. package/dist/modules/mcp/tools/get-workflow-version.tool.d.ts +3 -2
  391. package/dist/modules/mcp/tools/get-workflow-version.tool.js +1 -1
  392. package/dist/modules/mcp/tools/get-workflow-version.tool.js.map +1 -1
  393. package/dist/modules/mcp/tools/schemas.d.ts +34 -32
  394. package/dist/modules/mcp/tools/schemas.js +14 -2
  395. package/dist/modules/mcp/tools/schemas.js.map +1 -1
  396. package/dist/modules/mcp/tools/test-workflow.tool.d.ts +4 -1
  397. package/dist/modules/mcp/tools/test-workflow.tool.js +13 -5
  398. package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -1
  399. package/dist/modules/mcp/tools/webhook-utils.d.ts +3 -3
  400. package/dist/modules/mcp/tools/webhook-utils.js +17 -6
  401. package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
  402. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.d.ts +4 -1
  403. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +5 -1
  404. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
  405. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.d.ts +3 -1
  406. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js +16 -3
  407. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js.map +1 -1
  408. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.d.ts +5 -2
  409. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js +17 -10
  410. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js.map +1 -1
  411. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.d.ts +6 -1
  412. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +8 -2
  413. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
  414. package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.d.ts +4 -2
  415. package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js +8 -1
  416. package/dist/modules/mcp/tools/workflow-builder/sdk-reference-content.js.map +1 -1
  417. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +280 -2
  418. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +54 -17
  419. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  420. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.d.ts +4 -1
  421. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +58 -1
  422. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
  423. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +51 -5
  424. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +414 -233
  425. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
  426. package/dist/modules/mcp-registry/mcp-registry-test.controller.js +2 -2
  427. package/dist/modules/mcp-registry/mcp-registry-test.controller.js.map +1 -1
  428. package/dist/modules/mcp-registry/mcp-registry.module.js +1 -1
  429. package/dist/modules/mcp-registry/mcp-registry.module.js.map +1 -1
  430. package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +11 -1
  431. package/dist/modules/n8n-packages/engine/import-orchestrator.js +36 -7
  432. package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
  433. package/dist/modules/n8n-packages/engine/import-result.d.ts +3 -2
  434. package/dist/modules/n8n-packages/engine/import-result.js +2 -1
  435. package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
  436. package/dist/modules/n8n-packages/engine/import-telemetry.d.ts +2 -0
  437. package/dist/modules/n8n-packages/engine/import-telemetry.js +11 -0
  438. package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
  439. package/dist/modules/n8n-packages/engine/project-package-importer.js +11 -0
  440. package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
  441. package/dist/modules/n8n-packages/engine/workflow-package-importer.js +10 -1
  442. package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
  443. package/dist/modules/n8n-packages/entities/requirements.types.d.ts +2 -0
  444. package/dist/modules/n8n-packages/entities/requirements.types.js +1 -0
  445. package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -1
  446. package/dist/modules/n8n-packages/entities/variable/variable-importer.d.ts +9 -0
  447. package/dist/modules/n8n-packages/entities/variable/variable-importer.js +55 -0
  448. package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -0
  449. package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.d.ts +3 -0
  450. package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js +12 -0
  451. package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js.map +1 -0
  452. package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +14 -0
  453. package/dist/modules/n8n-packages/entities/variable/variable.types.js +7 -0
  454. package/dist/modules/n8n-packages/entities/variable/variable.types.js.map +1 -1
  455. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.d.ts +37 -0
  456. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js +165 -0
  457. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js.map +1 -0
  458. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +39 -0
  459. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +198 -0
  460. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -0
  461. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.d.ts +7 -0
  462. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js +30 -0
  463. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js.map +1 -0
  464. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.d.ts +11 -0
  465. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js +27 -0
  466. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js.map +1 -0
  467. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.d.ts +2 -0
  468. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.js +23 -0
  469. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.js.map +1 -0
  470. package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +2 -2
  471. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +1 -1
  472. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
  473. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.d.ts +2 -2
  474. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +5 -4
  475. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -1
  476. package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +1 -1
  477. package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.js +2 -2
  478. package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.js.map +1 -1
  479. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +3 -1
  480. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
  481. package/dist/modules/n8n-packages/io/unique-filename-allocator.d.ts +1 -0
  482. package/dist/modules/n8n-packages/io/unique-filename-allocator.js +9 -0
  483. package/dist/modules/n8n-packages/io/unique-filename-allocator.js.map +1 -1
  484. package/dist/modules/n8n-packages/n8n-packages.service.d.ts +8 -4
  485. package/dist/modules/n8n-packages/n8n-packages.service.js +81 -36
  486. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  487. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +40 -3
  488. package/dist/modules/n8n-packages/n8n-packages.types.js +9 -1
  489. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  490. package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +51 -0
  491. package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +45 -0
  492. package/dist/modules/n8n-packages/spec/requirements.schema.js +10 -1
  493. package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
  494. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +1 -1
  495. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
  496. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.d.ts +10 -2
  497. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js +5 -1
  498. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js.map +1 -1
  499. package/dist/modules/oauth-server/database/repositories/oauth-refresh-token.repository.d.ts +14 -2
  500. package/dist/modules/oauth-server/database/repositories/oauth-refresh-token.repository.js +16 -1
  501. package/dist/modules/oauth-server/database/repositories/oauth-refresh-token.repository.js.map +1 -1
  502. package/dist/modules/oauth-server/oauth-token.service.d.ts +3 -2
  503. package/dist/modules/oauth-server/oauth-token.service.js +13 -33
  504. package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
  505. package/dist/modules/oauth-server/oauth.controller.d.ts +3 -0
  506. package/dist/modules/oauth-server/oauth.controller.js +45 -1
  507. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  508. package/dist/modules/oauth-server/oauth.helpers.d.ts +1 -0
  509. package/dist/modules/oauth-server/oauth.helpers.js +7 -0
  510. package/dist/modules/oauth-server/oauth.helpers.js.map +1 -1
  511. package/dist/modules/otel/otel-settings.controller.d.ts +2 -2
  512. package/dist/modules/otel/otel-settings.controller.js +1 -1
  513. package/dist/modules/otel/otel-settings.controller.js.map +1 -1
  514. package/dist/modules/redaction/redaction-context-hook.js +4 -2
  515. package/dist/modules/redaction/redaction-context-hook.js.map +1 -1
  516. package/dist/modules/source-control.ee/source-control-export.service.ee.js +3 -3
  517. package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
  518. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +1 -0
  519. package/dist/modules/source-control.ee/source-control-import.service.ee.js +51 -22
  520. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  521. package/dist/modules/source-control.ee/source-control-scoped.service.js +1 -1
  522. package/dist/modules/source-control.ee/source-control-scoped.service.js.map +1 -1
  523. package/dist/modules/source-control.ee/types/exportable-credential.d.ts +2 -0
  524. package/dist/modules/workflow-index/workflow-dependency-query.service.js +1 -1
  525. package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
  526. package/dist/modules/workflow-reviews.ee/workflow-review-request.service.d.ts +44 -0
  527. package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js +373 -0
  528. package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js.map +1 -0
  529. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.d.ts +14 -0
  530. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js +97 -0
  531. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js.map +1 -0
  532. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.d.ts +4 -0
  533. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +24 -0
  534. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -0
  535. package/dist/node-execution/ephemeral-node-executor.d.ts +5 -1
  536. package/dist/node-execution/ephemeral-node-executor.js +7 -4
  537. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  538. package/dist/node-execution/index.d.ts +1 -0
  539. package/dist/node-execution/index.js +4 -1
  540. package/dist/node-execution/index.js.map +1 -1
  541. package/dist/node-execution/node-tool-operation-support.d.ts +2 -0
  542. package/dist/node-execution/node-tool-operation-support.js +12 -0
  543. package/dist/node-execution/node-tool-operation-support.js.map +1 -0
  544. package/dist/node-types.d.ts +5 -1
  545. package/dist/node-types.js +53 -20
  546. package/dist/node-types.js.map +1 -1
  547. package/dist/oauth/oauth.service.d.ts +5 -1
  548. package/dist/oauth/oauth.service.js +57 -28
  549. package/dist/oauth/oauth.service.js.map +1 -1
  550. package/dist/permissions.ee/check-access.js +18 -0
  551. package/dist/permissions.ee/check-access.js.map +1 -1
  552. package/dist/posthog/index.js +6 -0
  553. package/dist/posthog/index.js.map +1 -1
  554. package/dist/public-api/index.d.ts +1 -1
  555. package/dist/public-api/index.js +40 -11
  556. package/dist/public-api/index.js.map +1 -1
  557. package/dist/public-api/types.d.ts +7 -1
  558. package/dist/public-api/v1/controllers/index.d.ts +2 -0
  559. package/dist/public-api/v1/controllers/index.js +5 -0
  560. package/dist/public-api/v1/controllers/index.js.map +1 -0
  561. package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +9 -0
  562. package/dist/public-api/v1/controllers/workflows.public.controller.js +81 -0
  563. package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -0
  564. package/dist/public-api/v1/handlers/credentials/credentials.handler.js +1 -0
  565. package/dist/public-api/v1/handlers/credentials/credentials.handler.js.map +1 -1
  566. package/dist/public-api/v1/handlers/credentials/credentials.service.d.ts +1 -0
  567. package/dist/public-api/v1/handlers/credentials/credentials.service.js +9 -2
  568. package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -1
  569. package/dist/public-api/v1/handlers/discover/discover.service.d.ts +1 -0
  570. package/dist/public-api/v1/handlers/discover/discover.service.js +39 -34
  571. package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
  572. package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
  573. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +8 -3
  574. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
  575. package/dist/public-api/v1/handlers/otel/otel.handler.d.ts +9 -0
  576. package/dist/public-api/v1/handlers/otel/otel.handler.js +57 -0
  577. package/dist/public-api/v1/handlers/otel/otel.handler.js.map +1 -0
  578. package/dist/public-api/v1/handlers/otel/otel.mapper.d.ts +3 -0
  579. package/dist/public-api/v1/handlers/otel/otel.mapper.js +18 -0
  580. package/dist/public-api/v1/handlers/otel/otel.mapper.js.map +1 -0
  581. package/dist/public-api/v1/handlers/tags/tags.handler.d.ts +0 -1
  582. package/dist/public-api/v1/handlers/tags/tags.handler.js +0 -8
  583. package/dist/public-api/v1/handlers/tags/tags.handler.js.map +1 -1
  584. package/dist/public-api/v1/handlers/users/users.service.ee.js.map +1 -1
  585. package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +2 -0
  586. package/dist/public-api/v1/handlers/workflows/workflows.handler.js +47 -34
  587. package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
  588. package/dist/public-api/v1/handlers/workflows/workflows.service.js +6 -0
  589. package/dist/public-api/v1/handlers/workflows/workflows.service.js.map +1 -1
  590. package/dist/public-api/v1/openapi.yml +491 -19
  591. package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +4 -0
  592. package/dist/public-api/v1/shared/middlewares/global.middleware.js +9 -1
  593. package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +1 -1
  594. package/dist/public-api/v1/shared/public-api-scope-lookup.d.ts +5 -0
  595. package/dist/public-api/v1/shared/public-api-scope-lookup.js +60 -0
  596. package/dist/public-api/v1/shared/public-api-scope-lookup.js.map +1 -0
  597. package/dist/scaling/constants.d.ts +2 -2
  598. package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
  599. package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
  600. package/dist/scheduling/durable-job-provisioner.d.ts +1 -0
  601. package/dist/scheduling/durable-job-provisioner.js +2 -0
  602. package/dist/scheduling/durable-job-provisioner.js.map +1 -1
  603. package/dist/scheduling/durable-scheduler.d.ts +2 -1
  604. package/dist/scheduling/durable-scheduler.js +4 -2
  605. package/dist/scheduling/durable-scheduler.js.map +1 -1
  606. package/dist/scheduling/poll-trigger-node/poll-job-provider.d.ts +11 -0
  607. package/dist/scheduling/poll-trigger-node/poll-job-provider.js +41 -0
  608. package/dist/scheduling/poll-trigger-node/poll-job-provider.js.map +1 -0
  609. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.d.ts +19 -0
  610. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +111 -0
  611. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -0
  612. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.d.ts +16 -0
  613. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js +100 -0
  614. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js.map +1 -0
  615. package/dist/scheduling/poll-trigger-node/poll-trigger-task.d.ts +6 -0
  616. package/dist/scheduling/poll-trigger-node/poll-trigger-task.js +8 -0
  617. package/dist/scheduling/poll-trigger-node/poll-trigger-task.js.map +1 -0
  618. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.d.ts +1 -0
  619. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js +7 -1
  620. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js.map +1 -1
  621. package/dist/security-audit/risk-reporters/credentials-risk-reporter.d.ts +4 -6
  622. package/dist/security-audit/risk-reporters/credentials-risk-reporter.js +17 -23
  623. package/dist/security-audit/risk-reporters/credentials-risk-reporter.js.map +1 -1
  624. package/dist/security-audit/security-audit.repository.js.map +1 -1
  625. package/dist/services/export.service.js.map +1 -1
  626. package/dist/services/folder-finder.service.d.ts +1 -0
  627. package/dist/services/folder-finder.service.js +30 -0
  628. package/dist/services/folder-finder.service.js.map +1 -1
  629. package/dist/services/folder.service.js.map +1 -1
  630. package/dist/services/free-ai-credits.service.d.ts +32 -0
  631. package/dist/services/free-ai-credits.service.js +55 -0
  632. package/dist/services/free-ai-credits.service.js.map +1 -0
  633. package/dist/services/frontend.service.js +2 -0
  634. package/dist/services/frontend.service.js.map +1 -1
  635. package/dist/services/hooks.service.js.map +1 -1
  636. package/dist/services/import.service.js +3 -1
  637. package/dist/services/import.service.js.map +1 -1
  638. package/dist/services/ownership-transfer/ownership-transfer-handler.registry.js.map +1 -1
  639. package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
  640. package/dist/services/project.service.ee.d.ts +1 -0
  641. package/dist/services/project.service.ee.js +6 -1
  642. package/dist/services/project.service.ee.js.map +1 -1
  643. package/dist/services/public-api-key.service.js.map +1 -1
  644. package/dist/services/role.service.d.ts +2 -1
  645. package/dist/services/role.service.js +21 -3
  646. package/dist/services/role.service.js.map +1 -1
  647. package/dist/services/tag.service.js.map +1 -1
  648. package/dist/telemetry/index.d.ts +3 -2
  649. package/dist/telemetry/index.js +7 -1
  650. package/dist/telemetry/index.js.map +1 -1
  651. package/dist/utils.d.ts +1 -0
  652. package/dist/utils.js +4 -0
  653. package/dist/utils.js.map +1 -1
  654. package/dist/webhooks/live-webhooks.js +1 -1
  655. package/dist/webhooks/live-webhooks.js.map +1 -1
  656. package/dist/webhooks/waiting-forms.js +2 -7
  657. package/dist/webhooks/waiting-forms.js.map +1 -1
  658. package/dist/webhooks/waiting-webhooks.d.ts +7 -2
  659. package/dist/webhooks/waiting-webhooks.js +32 -2
  660. package/dist/webhooks/waiting-webhooks.js.map +1 -1
  661. package/dist/workflow-helpers.js +8 -62
  662. package/dist/workflow-helpers.js.map +1 -1
  663. package/dist/workflows/publication/workflow-publication-reconciler.service.d.ts +10 -3
  664. package/dist/workflows/publication/workflow-publication-reconciler.service.js +49 -13
  665. package/dist/workflows/publication/workflow-publication-reconciler.service.js.map +1 -1
  666. package/dist/workflows/triggers/non-webhook-trigger-registrar.d.ts +3 -1
  667. package/dist/workflows/triggers/non-webhook-trigger-registrar.js +5 -2
  668. package/dist/workflows/triggers/non-webhook-trigger-registrar.js.map +1 -1
  669. package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +13 -4
  670. package/dist/workflows/triggers/trigger-execution-context.factory.js +62 -4
  671. package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
  672. package/dist/workflows/workflow-creation.service.js +8 -2
  673. package/dist/workflows/workflow-creation.service.js.map +1 -1
  674. package/dist/workflows/workflow-finder.service.js +1 -0
  675. package/dist/workflows/workflow-finder.service.js.map +1 -1
  676. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  677. package/dist/workflows/workflow-sharing.service.js.map +1 -1
  678. package/dist/workflows/workflow-validation.service.js +1 -1
  679. package/dist/workflows/workflow-validation.service.js.map +1 -1
  680. package/dist/workflows/workflow.service.d.ts +5 -2
  681. package/dist/workflows/workflow.service.ee.js +1 -0
  682. package/dist/workflows/workflow.service.ee.js.map +1 -1
  683. package/dist/workflows/workflow.service.js +54 -12
  684. package/dist/workflows/workflow.service.js.map +1 -1
  685. package/dist/workflows/workflows.controller.js.map +1 -1
  686. package/package.json +35 -34
  687. package/dist/blob-storage/azure-byte-store.ee.d.ts +0 -10
  688. package/dist/blob-storage/azure-byte-store.ee.js +0 -42
  689. package/dist/blob-storage/azure-byte-store.ee.js.map +0 -1
  690. package/dist/blob-storage/fs-byte-store.d.ts +0 -14
  691. package/dist/blob-storage/fs-byte-store.js +0 -96
  692. package/dist/blob-storage/fs-byte-store.js.map +0 -1
  693. package/dist/blob-storage/json-store.d.ts +0 -18
  694. package/dist/blob-storage/json-store.js +0 -128
  695. package/dist/blob-storage/json-store.js.map +0 -1
  696. package/dist/blob-storage/s3-byte-store.ee.d.ts +0 -10
  697. package/dist/blob-storage/s3-byte-store.ee.js +0 -37
  698. package/dist/blob-storage/s3-byte-store.ee.js.map +0 -1
  699. package/dist/blob-storage/skipped-entry-deletion.error.d.ts +0 -5
  700. package/dist/blob-storage/skipped-entry-deletion.error.js +0 -13
  701. package/dist/blob-storage/skipped-entry-deletion.error.js.map +0 -1
  702. package/dist/blob-storage/types.d.ts +0 -23
  703. package/dist/blob-storage/types.js.map +0 -1
  704. package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +0 -1
  705. package/dist/modules/agents/builder/skills/integrations.skill.d.ts +0 -2
  706. package/dist/modules/agents/builder/skills/integrations.skill.js +0 -128
  707. package/dist/modules/agents/builder/skills/integrations.skill.js.map +0 -1
  708. package/dist/modules/agents/builder/skills/mcp.skill.d.ts +0 -2
  709. package/dist/modules/agents/builder/skills/mcp.skill.js +0 -172
  710. package/dist/modules/agents/builder/skills/mcp.skill.js.map +0 -1
  711. package/dist/modules/agents/builder/skills/node-tools.skill.d.ts +0 -2
  712. package/dist/modules/agents/builder/skills/node-tools.skill.js +0 -90
  713. package/dist/modules/agents/builder/skills/node-tools.skill.js.map +0 -1
@@ -1,23 +0,0 @@
1
- export type StorageLocation = 'fs' | 's3' | 'az';
2
- export type ByteStoreKey = string;
3
- export interface ByteStore {
4
- init?(): Promise<void>;
5
- write(key: ByteStoreKey, body: Buffer, contentType?: string): Promise<number>;
6
- read(key: ByteStoreKey): Promise<Buffer | null>;
7
- delete(keys: ByteStoreKey[]): Promise<void>;
8
- }
9
- export type JsonEntry<Payload extends object> = Payload & {
10
- version: number;
11
- };
12
- export type Stored<Ref> = Ref & {
13
- storedAt: StorageLocation;
14
- };
15
- export interface JsonStoreOptions<Ref> {
16
- byteStores: Partial<Record<StorageLocation, ByteStore>>;
17
- version: number;
18
- key: (ref: Ref) => string;
19
- getId: (ref: Ref) => string;
20
- createWriteError: (ref: Ref, cause: unknown) => Error;
21
- createCorruptedError: (ref: Ref, cause: unknown) => Error;
22
- reportError: (error: unknown) => void;
23
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/blob-storage/types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"llm-provider-defaults.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/llm-provider-defaults.ts"],"names":[],"mappings":";;;AAqBa,QAAA,qBAAqB,GAAuC;IACxE,YAAY,EAAE;QACb,QAAQ,EAAE,WAAW;QACrB,YAAY,EAAE,mBAAmB;KACjC;IACD,SAAS,EAAE;QACV,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,YAAY;KAC1B;IACD,aAAa,EAAE;QACd,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,gBAAgB;KAC9B;IACD,MAAM,EAAE;QACP,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,QAAQ;KACtB;IACD,OAAO,EAAE;QACR,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,yBAAyB;KACvC;IACD,eAAe,EAAE;QAChB,QAAQ,EAAE,SAAS;QACnB,YAAY,EAAE,sBAAsB;KACpC;IACD,WAAW,EAAE;QACZ,QAAQ,EAAE,UAAU;QACpB,YAAY,EAAE,eAAe;KAC7B;IACD,SAAS,EAAE;QACV,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,gBAAgB;KAC9B;IACD,aAAa,EAAE;QACd,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,6BAA6B;KAC3C;IACD,SAAS,EAAE;QACV,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,wCAAwC;KACtD;IACD,kBAAkB,EAAE;QACnB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,6BAA6B;KAC3C;CACD,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { RuntimeSkill } from '@n8n/agents';
2
- export declare function integrationsSkill(): RuntimeSkill;
@@ -1,128 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.integrationsSkill = integrationsSkill;
4
- function integrationsSkill() {
5
- return {
6
- id: 'agent-builder-integrations',
7
- name: 'Agent Builder Integrations',
8
- description: 'Use when deciding whether Slack, Linear, Telegram, or another external platform should be a target-agent chat integration/trigger versus an MCP, node, or workflow tool, and when adding, changing, or removing chat integrations; not for built-in Build chat or Preview chat behavior.',
9
- recommendedTools: [
10
- 'resolve_integration',
11
- 'list_integration_types',
12
- 'configure_channel',
13
- 'ask_questions',
14
- 'read_config',
15
- 'patch_config',
16
- ],
17
- allowedTools: [
18
- 'resolve_integration',
19
- 'list_integration_types',
20
- 'configure_channel',
21
- 'ask_questions',
22
- 'read_config',
23
- 'patch_config',
24
- 'write_config',
25
- 'load_skill',
26
- ],
27
- instructions: `\
28
- ## Purpose
29
-
30
- Use this to decide whether the target agent needs an entry in \`integrations\`
31
- or an MCP, node, or workflow tool for an external product, then configure
32
- \`integrations\` only when the integration is the right surface.
33
-
34
- ## Use when
35
-
36
- - The user asks to add, update, or remove entries in the target agent's
37
- \`integrations\` array.
38
- - The user asks to connect the target agent to an external chat platform with
39
- credentials.
40
-
41
- ## Integration vs Callable Tool Decision
42
-
43
- Use an integration when the product is the agent's conversation or trigger
44
- surface: humans will mention, message, comment to, or resume the agent there,
45
- or the agent needs to respond in that same platform conversation context.
46
-
47
- Use an MCP, node, or workflow tool when the product is only something the agent
48
- operates on: searching records, creating tickets, updating objects, or sending a
49
- business-process notification while the conversation happens elsewhere.
50
-
51
- Examples:
52
-
53
- - Slack integration: the agent should be chatted with in Slack, respond in
54
- Slack threads, DM users, message channels, add reactions, or render rich UI
55
- to Slack users.
56
- - Linear integration: the agent should be triggered from Linear issues/comments,
57
- understand the current Linear subject, or reply in the same Linear
58
- conversation.
59
- - Linear callable tools: the agent is triggered from Slack, Preview, a task, or a
60
- workflow and only needs to search/create/update Linear tickets via MCP or node
61
- tools.
62
-
63
- ## Workflow
64
-
65
- The \`integrations\` array controls how the target agent is triggered.
66
-
67
- ### Chat Integrations
68
-
69
- - These are connected external chat platforms, not built-in Preview chat.
70
- - Call \`list_integration_types\` first.
71
- - Read the returned \`capabilities\`, \`useIntegrationWhen\`, and
72
- \`useNodeToolWhen\` fields before deciding to add an integration.
73
- - Pick one returned \`type\` and pass it to \`configure_channel\` as
74
- \`integrationType\`. ALWAYS use \`configure_channel\` for chat-channel
75
- credentials — never \`ask_credential\` or a raw config write. The setup UI it
76
- shows creates and persists the credential/connection itself; do not follow up
77
- with \`patch_config\`/\`write_config\` to write the credential.
78
- - Preserve existing chat integrations unless the user asked to remove them.
79
- - To remove an existing chat integration, call \`read_config\` and inspect
80
- \`config.integrations\`.
81
- - If exactly one existing integration matches the requested platform, remove
82
- that entry with \`patch_config\` by index (or replace \`/integrations\` with a
83
- filtered array when clearer).
84
- - If multiple existing integrations match the requested platform, ask which one
85
- to remove before editing \`integrations\`.
86
- - Removing a chat integration means deleting its entry from
87
- \`integrations[]\`. Do not call \`configure_channel\` to remove a channel.
88
-
89
- ### Callable External Services
90
-
91
- When the product is not a chat/trigger integration, call \`resolve_integration\`
92
- with queries matching the requested service before loading MCP or node-tool
93
- skills.
94
-
95
- - If it returns \`kind: "mcp"\`, load \`agent-builder-mcp\` and follow the MCP
96
- credential, verification, and config workflow.
97
- - If it returns \`kind: "node"\`, load \`agent-builder-node-tools\`, use the
98
- returned node results with \`get_node_types\`, and ask for every required
99
- credential.
100
- - Use workflow tools when the capability should come from an existing workflow
101
- instead of a direct MCP or node tool.
102
-
103
- ## Gotchas
104
-
105
- - Chat integration types must come from \`list_integration_types\`.
106
- - Do not add a chat integration just because the agent needs CRUD or notifications
107
- for that product. Resolve the callable capability through \`resolve_integration\`
108
- unless the product itself is the chat/trigger context.
109
- - For recurring or scheduled runs, create a task (\`create_tasks\`), not an
110
- integration.
111
- - Omitting \`integrations\` from a config write preserves the current channels.
112
- To remove one, write an explicit filtered array or remove the exact array
113
- entry.
114
-
115
- ## Verify
116
-
117
- - Connected chat integrations were set up through \`configure_channel\`, not
118
- \`ask_credential\` or a manual config write.
119
- - The chosen integration matches \`useIntegrationWhen\`; otherwise resolve the
120
- callable capability through \`resolve_integration\` and use MCP, node, or
121
- workflow tools.
122
- - Generic non-chat external services were routed through \`resolve_integration\`
123
- before MCP or node setup.
124
- - The final \`integrations\` array keeps unrelated integrations intact and
125
- removes only the requested channel entries.`,
126
- };
127
- }
128
- //# sourceMappingURL=integrations.skill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integrations.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/integrations.skill.ts"],"names":[],"mappings":";;;AAEA;IACC,OAAO;QACN,EAAE,EAAE,4BAA4B;QAChC,IAAI,EAAE,4BAA4B;QAClC,WAAW,EACV,0RAA0R;QAC3R,gBAAgB,EAAE;YACjB,qBAAqB;YACrB,wBAAwB;YACxB,mBAAmB;YACnB,eAAe;YACf,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,qBAAqB;YACrB,wBAAwB;YACxB,mBAAmB;YACnB,eAAe;YACf,aAAa;YACb,cAAc;YACd,cAAc;YACd,YAAY;SACZ;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAkG8B;KAC5C,CAAC;AACH,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { RuntimeSkill } from '@n8n/agents';
2
- export declare function mcpSkill(): RuntimeSkill;
@@ -1,172 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mcpSkill = mcpSkill;
4
- const api_types_1 = require("@n8n/api-types");
5
- const zod_to_json_schema_1 = require("zod-to-json-schema");
6
- const schema_text_serializer_1 = require("../../json-config/schema-text-serializer");
7
- const mcpServerSchemaText = (0, schema_text_serializer_1.jsonSchemaToCompactText)((0, zod_to_json_schema_1.zodToJsonSchema)(api_types_1.McpServerConfigSchema));
8
- function mcpSkill() {
9
- return {
10
- id: 'agent-builder-mcp',
11
- name: 'Agent builder MCP servers',
12
- description: 'Use when adding, removing, or updating MCP (Model Context Protocol) servers on the target agent.',
13
- recommendedTools: [
14
- 'resolve_integration',
15
- 'ask_questions',
16
- 'ask_credential',
17
- 'verify_mcp_server',
18
- 'read_config',
19
- 'patch_config',
20
- ],
21
- allowedTools: [
22
- 'resolve_integration',
23
- 'search_mcp_servers',
24
- 'search_nodes',
25
- 'get_node_types',
26
- 'ask_credential',
27
- 'verify_mcp_server',
28
- 'ask_questions',
29
- 'read_config',
30
- 'patch_config',
31
- 'write_config',
32
- 'load_skill',
33
- ],
34
- instructions: `\
35
- ## Purpose
36
-
37
- Use this to manage external MCP server connections in the target agent config.
38
- MCP servers expose external tool catalogs to the target agent over HTTP. They
39
- live on the top-level \`mcpServers\` array, and each entry maps 1:1 to a
40
- connected MCP server.
41
-
42
- ## Use when:
43
-
44
- - \`resolve_integration\` returned \`kind: "mcp"\`.
45
- - The user explicitly asks to add or edit an MCP server.
46
- - The user provides or asks to configure a custom MCP server.
47
-
48
- ## Workflow
49
-
50
- ### Discovery and setup
51
-
52
- For a generic external-service request, \`resolve_integration\` must select the
53
- integration type before this skill is loaded. If no resolver result is
54
- available yet, call \`resolve_integration\` with queries matching the requested
55
- service. Resolve one requested service per call; use \`queries\` only for
56
- alternative search terms for that service.
57
-
58
- - If it returns \`kind: "node"\` for a generic service request, load
59
- \`agent-builder-node-tools\` and continue with the returned node results. Stop
60
- this MCP workflow.
61
- - If it returns \`kind: "node"\` but the user explicitly requested an MCP server,
62
- do not silently substitute a node tool. Continue with manual MCP setup by
63
- asking for the URL and transport/authentication decision through
64
- \`${api_types_1.ASK_QUESTIONS_TOOL_NAME}\`.
65
- - \`resolve_integration\` returns \`{ kind: "mcp", results: [...] }\` for MCP
66
- matches. Never read server fields from the wrapper; select a result first:
67
- - If \`results[]\` contains one entry, use it as \`selectedResult\`.
68
- - If the request uniquely identifies one entry by \`name\` or \`title\`, use
69
- that entry as \`selectedResult\`.
70
- - If multiple candidates remain, call \`ask_questions\` with the candidate
71
- titles and descriptions; never choose by array order. Use the chosen entry
72
- as \`selectedResult\`. If \`ask_questions\` returns \`{ answered: false }\`,
73
- stop MCP setup without selecting a server, asking for credentials, verifying
74
- a connection, or mutating config. Do not re-present the question.
75
- - Use \`name\`, \`url\`, \`transport\`, \`authentication\`, \`credentialType\`,
76
- \`tools\`, and optional \`metadata\` only from \`selectedResult\`.
77
-
78
- Follow these steps for the selected MCP result:
79
-
80
- 1. Credential: call \`ask_credential\` with a short \`purpose\`, using
81
- \`selectedResult.credentialType\` as \`credentialType\`. Never invent
82
- credential IDs.
83
- 2. Verify: call \`verify_mcp_server\` with the selected result's \`name\`, \`url\`,
84
- \`transport\`, and \`authentication\`, plus the returned \`credentialId\` as
85
- \`credential\` when authentication is required.
86
- 3. Capability check: confirm the verified tool names and descriptions cover the
87
- capability the user requested.
88
- 4. Write config: call \`read_config\`, then \`patch_config\` to add the entry to
89
- \`mcpServers[]\` using the patch pattern below.
90
-
91
- If verification succeeds but the tools do not cover the requested capability
92
- for a generic service request, load \`agent-builder-node-tools\`, call
93
- \`search_nodes\` with the same service queries, and continue with node setup. Do
94
- not add the MCP server merely because its registry entry matched.
95
-
96
- Full schema reference:
97
-
98
- ${mcpServerSchemaText}
99
-
100
- ### Credential flow
101
-
102
- - For \`bearerAuth\`, call \`ask_credential\` with
103
- \`credentialType: "httpBearerAuth"\`.
104
- - For \`headerAuth\`, call \`ask_credential\` with
105
- \`credentialType: "httpHeaderAuth"\`.
106
- - For \`multipleHeadersAuth\`, call \`ask_credential\` with
107
- \`credentialType: "httpMultipleHeadersAuth"\`.
108
- - For \`mcpOAuth2Api\`, call \`ask_credential\` with
109
- \`credentialType: "mcpOAuth2Api"\`.
110
-
111
- ### Testing the connection
112
-
113
- Before writing to config, call \`verify_mcp_server\` with server \`name\`,
114
- \`url\`, \`transport\`, and (if applicable) the credential id from
115
- \`ask_credential\`.
116
-
117
- - Success returns \`{ ok: true, tools: [{ name, description }] }\`.
118
- - Use the returned tool list to populate \`toolFilter.tools\` or
119
- \`approval.tools\` so the user does not need to type tool names manually.
120
- - Failure returns \`{ ok: false, error: "..." }\`.
121
- - If verification fails, explain the error and ask the user to check the URL
122
- or credentials before proceeding.
123
-
124
- ### Incomplete setup
125
-
126
- The user can skip the credential prompt, the URL question, or both. Never
127
- invent a credential ID or a placeholder URL to fill the gap, and never abort
128
- the server addition — always persist what is known and let the user finish
129
- setup later:
130
-
131
- - Credential skipped (\`ask_credential\` returned \`{ skipped: true }\`): omit
132
- only the \`credential\` field.
133
- - URL skipped: persist \`url: ""\`.
134
- - Either case: skip \`verify_mcp_server\` (there is nothing to authenticate or
135
- connect to), then \`read_config\` and \`patch_config\` the entry, preserving
136
- every other known field — \`name\`, \`transport\`, \`authentication\`, an
137
- already-selected credential, and registry \`metadata\`.
138
-
139
- ### Selecting credentials
140
-
141
- When using a registry-backed server, always use the \`credentialType\` returned
142
- by \`selectedResult\`.
143
-
144
- For custom MCP servers, if credential type is unknown, ask the user which
145
- credential type to use (OAuth2, Bearer Token, Header Auth, Multiple Headers
146
- Auth, or None) via \`${api_types_1.ASK_QUESTIONS_TOOL_NAME}\`. Then map to:
147
-
148
- - \`bearerAuth\` -> \`ask_credential\` with \`credentialType: "httpBearerAuth"\`
149
- - \`headerAuth\` -> \`ask_credential\` with \`credentialType: "httpHeaderAuth"\`
150
- - \`multipleHeadersAuth\` -> \`ask_credential\` with
151
- \`credentialType: "httpMultipleHeadersAuth"\`
152
- - \`mcpOAuth2Api\` -> \`ask_credential\` with \`credentialType: "mcpOAuth2Api"\`
153
-
154
- ### Patch pattern
155
-
156
- 1. Initialize the array if missing:
157
- \`{ "op": "add", "path": "/mcpServers", "value": [] }\`
158
- 2. Append each server:
159
- \`{ "op": "add", "path": "/mcpServers/-", "value": { ... } }\`
160
-
161
- ## Gotchas
162
-
163
- - Server \`name\` must be unique across \`mcpServers\` within an agent.
164
- - Never fabricate \`metadata.nodeTypeName\`.
165
- - When \`selectedResult\` includes \`metadata.nodeTypeName\`, include
166
- \`metadata: { nodeTypeName: <selectedResult.metadata.nodeTypeName> }\` in the
167
- entry so the UI can render the correct server form.
168
- - A registry match proves server availability, not support for the requested
169
- capability; use the verified live tool list for that decision.`,
170
- };
171
- }
172
- //# sourceMappingURL=mcp.skill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/mcp.skill.ts"],"names":[],"mappings":";;;AACA,8CAAgF;AAEhF,2DAAqD;AAErD,qFAAmF;AAEnF,MAAM,mBAAmB,GAAG,IAAA,gDAAuB,EAClD,IAAA,oCAAe,EAAC,iCAAqB,CAAgB,CACrD,CAAC;AAEF;IACC,OAAO;QACN,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,2BAA2B;QACjC,WAAW,EACV,kGAAkG;QACnG,gBAAgB,EAAE;YACjB,qBAAqB;YACrB,eAAe;YACf,gBAAgB;YAChB,mBAAmB;YACnB,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,qBAAqB;YACrB,oBAAoB;YACpB,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,mBAAmB;YACnB,eAAe;YACf,aAAa;YACb,cAAc;YACd,cAAc;YACd,YAAY;SACZ;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BV,mCAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkC3B,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAgDE,mCAAuB;;;;;;;;;;;;;;;;;;;;;;;iEAuBmB;KAC/D,CAAC;AACH,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { RuntimeSkill } from '@n8n/agents';
2
- export declare function nodeToolsSkill(): RuntimeSkill;
@@ -1,90 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nodeToolsSkill = nodeToolsSkill;
4
- function nodeToolsSkill() {
5
- return {
6
- id: 'agent-builder-node-tools',
7
- name: 'Agent Builder Node Tools',
8
- description: 'Use when resolve_integration returns kind: "node" or the user explicitly requests an n8n node-backed tool: search_nodes/get_node_types discovery, nodeParameters, node credential slots, $fromAI usage, or other n8n expressions.',
9
- recommendedTools: [
10
- 'resolve_integration',
11
- 'search_nodes',
12
- 'get_node_types',
13
- 'ask_credential',
14
- 'read_config',
15
- 'patch_config',
16
- ],
17
- allowedTools: [
18
- 'resolve_integration',
19
- 'search_nodes',
20
- 'get_node_types',
21
- 'ask_credential',
22
- 'get_resource_locator_options',
23
- 'ask_questions',
24
- 'read_config',
25
- 'patch_config',
26
- 'write_config',
27
- 'load_skill',
28
- ],
29
- instructions: `\
30
- ## Purpose
31
-
32
- Use this to discover, configure, and wire node tools into the target agent's
33
- \`tools[]\`, including \`nodeParameters\` and n8n expressions.
34
-
35
- ## Workflow
36
-
37
- - For a generic external-service request, call \`resolve_integration\` before
38
- node discovery unless a resolver result is already available.
39
- - If it returns \`kind: "mcp"\`, load \`agent-builder-mcp\` and stop this node-tool
40
- workflow.
41
- - If it returns \`kind: "node"\`, use its returned node results and call
42
- \`get_node_types\`; do not repeat the same search with \`search_nodes\`.
43
- - Call \`search_nodes\` directly only when the user explicitly requests an n8n
44
- node, when refining node results, or when a verified MCP server lacks the
45
- requested capability.
46
- - Never guess node type names.
47
- - Use the tool node id from discovery, usually ending in \`Tool\`.
48
- - Put fixed values in \`nodeParameters\`; use complete n8n expressions for values the agent should decide at runtime:
49
- \`={{ $fromAI('url', 'The URL to inspect', 'string') }}\`.
50
- - For stable dynamic selectors, load \`agent-builder-resource-locators\` and
51
- follow it.
52
- - Never write literal \`"$fromAI"\` or bare \`$fromAI\`; the node will treat it as the actual value.
53
- - Do not pipe AI-chosen fields through \`$json\`.
54
- - Do not include \`inputSchema\` or \`toolDescription\` for node tools.
55
- - For each required credential slot, call \`ask_credential\` once before config mutation. Pass the node's credential key as \`credentialSlot\`. On success, copy the returned \`credentials\` object directly to \`node.credentials\`. If skipped, still add the tool and omit only that credential slot.
56
-
57
- ## n8n Expressions
58
-
59
- Node tool parameters inside \`nodeParameters\` can use n8n expressions.
60
- Prefer \`$fromAI\` whenever the target agent should decide a value at runtime.
61
- Do not use \`$fromAI\` for stable resource IDs that the target agent cannot know
62
- at runtime, such as Linear \`teamId\`, project IDs, channel IDs, calendar IDs,
63
- database IDs, table IDs, or other dynamic "Name or ID" selectors. Resolve those
64
- with the \`agent-builder-resource-locators\` skill, \`ask_credential\`, and
65
- \`get_resource_locator_options\`; write the returned \`parameterValue\` into
66
- \`nodeParameters\`.
67
-
68
- - \`={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('fieldName', 'What value to provide', 'string') }}\`
69
- - \`={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('count', 'How many items', 'number') }}\`
70
- - \`={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('enabled', 'Whether to enable this option', 'boolean') }}\`
71
- - \`={{ $now.toISO() }}\` for current date/time.
72
- - \`={{ $today }}\` for the start of today.
73
-
74
- Always wrap expressions in \`={{ }}\`. Never pipe AI-chosen node-tool fields
75
- through \`$json\`; use \`$fromAI\` for those fields instead.
76
-
77
- ## Gotchas
78
-
79
- - Do not include \`inputSchema\` or \`toolDescription\` for node tools.
80
- - \`$fromAI(...)\` placeholders define the node tool input schema; do not add it manually.
81
- - Follow \`agent-builder-resource-locators\` for dynamic selector lookup,
82
- credentials, and \`parameterValue\` handling.
83
- - If a required node-tool credential is skipped, add the tool and omit only that credential slot.
84
-
85
- ## Verify
86
-
87
- - Node tools use discovered tool node ids and valid node parameters.`,
88
- };
89
- }
90
- //# sourceMappingURL=node-tools.skill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node-tools.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/node-tools.skill.ts"],"names":[],"mappings":";;;AAEA;IACC,OAAO;QACN,EAAE,EAAE,0BAA0B;QAC9B,IAAI,EAAE,0BAA0B;QAChC,WAAW,EACV,mOAAmO;QACpO,gBAAgB,EAAE;YACjB,qBAAqB;YACrB,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,qBAAqB;YACrB,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,8BAA8B;YAC9B,eAAe;YACf,aAAa;YACb,cAAc;YACd,cAAc;YACd,YAAY;SACZ;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEA0DqD;KACnE,CAAC;AACH,CAAC"}