n8n 2.28.3 → 2.29.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 (889) hide show
  1. package/dist/abstract-server.js +1 -1
  2. package/dist/abstract-server.js.map +1 -1
  3. package/dist/active-executions.js +2 -2
  4. package/dist/active-executions.js.map +1 -1
  5. package/dist/active-workflow-manager.js +1 -1
  6. package/dist/active-workflow-manager.js.map +1 -1
  7. package/dist/auth/auth.service.js +12 -12
  8. package/dist/auth/auth.service.js.map +1 -1
  9. package/dist/blob-storage/azure-byte-store.ee.d.ts +10 -0
  10. package/dist/blob-storage/azure-byte-store.ee.js +57 -0
  11. package/dist/blob-storage/azure-byte-store.ee.js.map +1 -0
  12. package/dist/blob-storage/fs-byte-store.d.ts +14 -0
  13. package/dist/blob-storage/fs-byte-store.js +97 -0
  14. package/dist/blob-storage/fs-byte-store.js.map +1 -0
  15. package/dist/blob-storage/json-store.d.ts +18 -0
  16. package/dist/blob-storage/json-store.js +125 -0
  17. package/dist/blob-storage/json-store.js.map +1 -0
  18. package/dist/blob-storage/s3-byte-store.ee.d.ts +10 -0
  19. package/dist/blob-storage/s3-byte-store.ee.js +52 -0
  20. package/dist/blob-storage/s3-byte-store.ee.js.map +1 -0
  21. package/dist/blob-storage/skipped-entry-deletion.error.d.ts +5 -0
  22. package/dist/blob-storage/skipped-entry-deletion.error.js +13 -0
  23. package/dist/blob-storage/skipped-entry-deletion.error.js.map +1 -0
  24. package/dist/blob-storage/types.d.ts +23 -0
  25. package/dist/blob-storage/types.js +3 -0
  26. package/dist/blob-storage/types.js.map +1 -0
  27. package/dist/build.tsbuildinfo +1 -1
  28. package/dist/chat/chat-server.js +1 -1
  29. package/dist/chat/chat-server.js.map +1 -1
  30. package/dist/chat/chat-service.js +1 -1
  31. package/dist/chat/chat-service.js.map +1 -1
  32. package/dist/chat/chat-service.types.d.ts +2 -2
  33. package/dist/collaboration/collaboration.service.d.ts +2 -2
  34. package/dist/collaboration/collaboration.service.js +2 -2
  35. package/dist/collaboration/collaboration.service.js.map +1 -1
  36. package/dist/commands/base-command.d.ts +1 -1
  37. package/dist/commands/base-command.js +27 -3
  38. package/dist/commands/base-command.js.map +1 -1
  39. package/dist/commands/export/entities.js +3 -3
  40. package/dist/commands/export/entities.js.map +1 -1
  41. package/dist/commands/export/workflow.js.map +1 -1
  42. package/dist/commands/import/entities.js +3 -3
  43. package/dist/commands/import/entities.js.map +1 -1
  44. package/dist/commands/import/workflow.js +1 -1
  45. package/dist/commands/import/workflow.js.map +1 -1
  46. package/dist/commands/start.js +5 -5
  47. package/dist/commands/start.js.map +1 -1
  48. package/dist/controller.registry.d.ts +1 -1
  49. package/dist/controller.registry.js +8 -8
  50. package/dist/controller.registry.js.map +1 -1
  51. package/dist/controllers/ai.controller.d.ts +1 -0
  52. package/dist/controllers/ai.controller.js +20 -11
  53. package/dist/controllers/ai.controller.js.map +1 -1
  54. package/dist/controllers/e2e.controller.js +1 -0
  55. package/dist/controllers/e2e.controller.js.map +1 -1
  56. package/dist/controllers/folder.controller.d.ts +1 -1
  57. package/dist/controllers/folder.controller.js +1 -1
  58. package/dist/controllers/folder.controller.js.map +1 -1
  59. package/dist/controllers/invitation.controller.d.ts +1 -1
  60. package/dist/controllers/invitation.controller.js +5 -5
  61. package/dist/controllers/invitation.controller.js.map +1 -1
  62. package/dist/controllers/oauth/oauth1-credential.controller.d.ts +1 -1
  63. package/dist/controllers/oauth/oauth1-credential.controller.js +1 -1
  64. package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
  65. package/dist/controllers/oauth/oauth2-credential.controller.js +1 -1
  66. package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
  67. package/dist/controllers/orchestration.controller.js.map +1 -1
  68. package/dist/controllers/owner.controller.d.ts +1 -1
  69. package/dist/controllers/owner.controller.js +1 -1
  70. package/dist/controllers/owner.controller.js.map +1 -1
  71. package/dist/controllers/password-reset.controller.d.ts +1 -1
  72. package/dist/controllers/password-reset.controller.js +3 -3
  73. package/dist/controllers/password-reset.controller.js.map +1 -1
  74. package/dist/controllers/posthog.controller.d.ts +2 -5
  75. package/dist/controllers/posthog.controller.js.map +1 -1
  76. package/dist/controllers/role.controller.d.ts +2 -1
  77. package/dist/controllers/role.controller.js +12 -0
  78. package/dist/controllers/role.controller.js.map +1 -1
  79. package/dist/controllers/security-settings.controller.d.ts +1 -1
  80. package/dist/controllers/third-party-licenses.controller.js +1 -1
  81. package/dist/controllers/third-party-licenses.controller.js.map +1 -1
  82. package/dist/controllers/translation.controller.js +1 -1
  83. package/dist/controllers/translation.controller.js.map +1 -1
  84. package/dist/controllers/users.controller.d.ts +8 -6
  85. package/dist/controllers/users.controller.js +59 -9
  86. package/dist/controllers/users.controller.js.map +1 -1
  87. package/dist/credentials/credentials.service.ee.js +7 -0
  88. package/dist/credentials/credentials.service.ee.js.map +1 -1
  89. package/dist/credentials/credentials.service.js +1 -1
  90. package/dist/credentials/credentials.service.js.map +1 -1
  91. package/dist/credentials/validation.js +1 -1
  92. package/dist/credentials/validation.js.map +1 -1
  93. package/dist/credentials-helper.d.ts +3 -1
  94. package/dist/credentials-helper.js +33 -5
  95. package/dist/credentials-helper.js.map +1 -1
  96. package/dist/credentials-overwrites.js.map +1 -1
  97. package/dist/evaluation.ee/evaluation-config.service.js +1 -1
  98. package/dist/evaluation.ee/evaluation-config.service.js.map +1 -1
  99. package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +3 -3
  100. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +11 -5
  101. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
  102. package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
  103. package/dist/events/relays/workflow-failure-notification.event-relay.js +1 -1
  104. package/dist/events/relays/workflow-failure-notification.event-relay.js.map +1 -1
  105. package/dist/execution-lifecycle/shared/shared-hook-functions.js +1 -0
  106. package/dist/execution-lifecycle/shared/shared-hook-functions.js.map +1 -1
  107. package/dist/executions/execution-data/azure-store.ee.js +2 -2
  108. package/dist/executions/execution-data/azure-store.ee.js.map +1 -1
  109. package/dist/executions/execution-data/types.d.ts +1 -1
  110. package/dist/executions/execution-persistence.js +11 -4
  111. package/dist/executions/execution-persistence.js.map +1 -1
  112. package/dist/executions/execution.service.js +5 -4
  113. package/dist/executions/execution.service.js.map +1 -1
  114. package/dist/executions/executions.controller.d.ts +2 -2
  115. package/dist/executions/executions.controller.js +4 -4
  116. package/dist/executions/executions.controller.js.map +1 -1
  117. package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js +1 -1
  118. package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js.map +1 -1
  119. package/dist/instance-settings-loader/loaders/owner.instance-settings-loader.js +1 -1
  120. package/dist/instance-settings-loader/loaders/owner.instance-settings-loader.js.map +1 -1
  121. package/dist/license/license.controller.js +1 -0
  122. package/dist/license/license.controller.js.map +1 -1
  123. package/dist/license/license.service.js +3 -4
  124. package/dist/license/license.service.js.map +1 -1
  125. package/dist/metrics/prometheus/db-pool-metrics.service.d.ts +13 -0
  126. package/dist/metrics/prometheus/db-pool-metrics.service.js +71 -0
  127. package/dist/metrics/prometheus/db-pool-metrics.service.js.map +1 -0
  128. package/dist/metrics/prometheus/prometheus.service.d.ts +2 -1
  129. package/dist/metrics/prometheus/prometheus.service.js +5 -2
  130. package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
  131. package/dist/mfa/mfa.service.d.ts +1 -1
  132. package/dist/mfa/mfa.service.js +1 -1
  133. package/dist/mfa/mfa.service.js.map +1 -1
  134. package/dist/mfa/totp.service.js +41 -11
  135. package/dist/mfa/totp.service.js.map +1 -1
  136. package/dist/modules/agents/agent-builder.controller.d.ts +28 -0
  137. package/dist/modules/agents/agent-builder.controller.js +168 -0
  138. package/dist/modules/agents/agent-builder.controller.js.map +1 -0
  139. package/dist/modules/agents/agent-chat.controller.d.ts +41 -0
  140. package/dist/modules/agents/agent-chat.controller.js +206 -0
  141. package/dist/modules/agents/agent-chat.controller.js.map +1 -0
  142. package/dist/modules/agents/agent-config.service.d.ts +33 -0
  143. package/dist/modules/agents/agent-config.service.js +288 -0
  144. package/dist/modules/agents/agent-config.service.js.map +1 -0
  145. package/dist/modules/agents/agent-custom-tools.service.d.ts +22 -0
  146. package/dist/modules/agents/agent-custom-tools.service.js +98 -0
  147. package/dist/modules/agents/agent-custom-tools.service.js.map +1 -0
  148. package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +110 -0
  149. package/dist/modules/agents/agent-execution-orchestrator.service.js +482 -0
  150. package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -0
  151. package/dist/modules/agents/agent-execution.service.d.ts +4 -4
  152. package/dist/modules/agents/agent-execution.service.js +6 -5
  153. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  154. package/dist/modules/agents/agent-integration-persistence.service.d.ts +19 -0
  155. package/dist/modules/agents/agent-integration-persistence.service.js +90 -0
  156. package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -0
  157. package/dist/modules/agents/agent-integrations.controller.d.ts +60 -0
  158. package/dist/modules/agents/agent-integrations.controller.js +275 -0
  159. package/dist/modules/agents/agent-integrations.controller.js.map +1 -0
  160. package/dist/modules/agents/agent-knowledge-sandbox.service.d.ts +1 -1
  161. package/dist/modules/agents/agent-knowledge-sandbox.service.js +3 -3
  162. package/dist/modules/agents/agent-knowledge-sandbox.service.js.map +1 -1
  163. package/dist/modules/agents/agent-knowledge.controller.d.ts +26 -0
  164. package/dist/modules/agents/agent-knowledge.controller.js +112 -0
  165. package/dist/modules/agents/agent-knowledge.controller.js.map +1 -0
  166. package/dist/modules/agents/agent-publish.controller.d.ts +38 -0
  167. package/dist/modules/agents/agent-publish.controller.js +94 -0
  168. package/dist/modules/agents/agent-publish.controller.js.map +1 -0
  169. package/dist/modules/agents/agent-publish.service.d.ts +30 -0
  170. package/dist/modules/agents/agent-publish.service.js +293 -0
  171. package/dist/modules/agents/agent-publish.service.js.map +1 -0
  172. package/dist/modules/agents/agent-runnable-state.service.d.ts +15 -0
  173. package/dist/modules/agents/agent-runnable-state.service.js +43 -0
  174. package/dist/modules/agents/agent-runnable-state.service.js.map +1 -0
  175. package/dist/modules/agents/agent-runtime-cache.service.d.ts +44 -0
  176. package/dist/modules/agents/agent-runtime-cache.service.js +169 -0
  177. package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -0
  178. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +5 -9
  179. package/dist/modules/agents/agent-runtime-reconstruction.service.js +68 -41
  180. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
  181. package/dist/modules/agents/agent-sandbox.controller.d.ts +3 -3
  182. package/dist/modules/agents/agent-sandbox.controller.js +9 -8
  183. package/dist/modules/agents/agent-sandbox.controller.js.map +1 -1
  184. package/dist/modules/agents/agent-skills.service.d.ts +3 -4
  185. package/dist/modules/agents/agent-skills.service.js +54 -28
  186. package/dist/modules/agents/agent-skills.service.js.map +1 -1
  187. package/dist/modules/agents/agent-task.service.d.ts +5 -5
  188. package/dist/modules/agents/agent-task.service.js +46 -46
  189. package/dist/modules/agents/agent-task.service.js.map +1 -1
  190. package/dist/modules/agents/agent-tasks.controller.d.ts +30 -0
  191. package/dist/modules/agents/agent-tasks.controller.js +106 -0
  192. package/dist/modules/agents/agent-tasks.controller.js.map +1 -0
  193. package/dist/modules/agents/agent-telemetry.js +0 -4
  194. package/dist/modules/agents/agent-telemetry.js.map +1 -1
  195. package/dist/modules/agents/agent-test-chat.service.d.ts +9 -0
  196. package/dist/modules/agents/agent-test-chat.service.js +49 -0
  197. package/dist/modules/agents/agent-test-chat.service.js.map +1 -0
  198. package/dist/modules/agents/agent-threads.controller.d.ts +28 -0
  199. package/dist/modules/agents/agent-threads.controller.js +66 -0
  200. package/dist/modules/agents/agent-threads.controller.js.map +1 -0
  201. package/dist/modules/agents/agent-validation.service.d.ts +13 -0
  202. package/dist/modules/agents/agent-validation.service.js +142 -0
  203. package/dist/modules/agents/agent-validation.service.js.map +1 -0
  204. package/dist/modules/agents/agents-catalog.controller.d.ts +8 -0
  205. package/dist/modules/agents/agents-catalog.controller.js +80 -0
  206. package/dist/modules/agents/agents-catalog.controller.js.map +1 -0
  207. package/dist/modules/agents/agents-config.controller.d.ts +181 -0
  208. package/dist/modules/agents/agents-config.controller.js +71 -0
  209. package/dist/modules/agents/agents-config.controller.js.map +1 -0
  210. package/dist/modules/agents/agents-skills.controller.d.ts +33 -0
  211. package/dist/modules/agents/agents-skills.controller.js +94 -0
  212. package/dist/modules/agents/agents-skills.controller.js.map +1 -0
  213. package/dist/modules/agents/agents-tools.service.d.ts +1 -7
  214. package/dist/modules/agents/agents-tools.service.js +3 -80
  215. package/dist/modules/agents/agents-tools.service.js.map +1 -1
  216. package/dist/modules/agents/agents.controller.d.ts +7 -393
  217. package/dist/modules/agents/agents.controller.js +6 -990
  218. package/dist/modules/agents/agents.controller.js.map +1 -1
  219. package/dist/modules/agents/agents.module.d.ts +2 -2
  220. package/dist/modules/agents/agents.module.js +12 -0
  221. package/dist/modules/agents/agents.module.js.map +1 -1
  222. package/dist/modules/agents/agents.service.d.ts +8 -166
  223. package/dist/modules/agents/agents.service.js +10 -1287
  224. package/dist/modules/agents/agents.service.js.map +1 -1
  225. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +2 -2
  226. package/dist/modules/agents/builder/agents-builder-prompts.js +3 -5
  227. package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
  228. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +11 -1
  229. package/dist/modules/agents/builder/agents-builder-tools.service.js +60 -25
  230. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  231. package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +4 -0
  232. package/dist/modules/agents/builder/interactive/ask-credential.tool.js +36 -12
  233. package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
  234. package/dist/modules/agents/builder/interactive/ask-llm.tool.js +1 -3
  235. package/dist/modules/agents/builder/interactive/ask-llm.tool.js.map +1 -1
  236. package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
  237. package/dist/modules/agents/builder/interactive/index.d.ts +1 -1
  238. package/dist/modules/agents/builder/interactive/index.js +2 -1
  239. package/dist/modules/agents/builder/interactive/index.js.map +1 -1
  240. package/dist/modules/agents/builder/interactive/llm-provider-defaults.js +1 -1
  241. package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +1 -1
  242. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +3 -2
  243. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
  244. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +3 -5
  245. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
  246. package/dist/modules/agents/builder/prompts/config-rules.prompt.js +4 -6
  247. package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
  248. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +1 -1
  249. package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +1 -1
  250. package/dist/modules/agents/builder/prompts/memory.prompt.js +4 -4
  251. package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -1
  252. package/dist/modules/agents/builder/prompts/tools.prompt.js +8 -3
  253. package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -1
  254. package/dist/modules/agents/builder/skills/integrations.skill.js +8 -0
  255. package/dist/modules/agents/builder/skills/integrations.skill.js.map +1 -1
  256. package/dist/modules/agents/builder/skills/mcp.skill.js +16 -0
  257. package/dist/modules/agents/builder/skills/mcp.skill.js.map +1 -1
  258. package/dist/modules/agents/builder/skills/resource-locators.skill.js +18 -0
  259. package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
  260. package/dist/modules/agents/builder/skills/sub-agents.skill.js +34 -8
  261. package/dist/modules/agents/builder/skills/sub-agents.skill.js.map +1 -1
  262. package/dist/modules/agents/builder/skills/target-skills.skill.js +22 -3
  263. package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
  264. package/dist/modules/agents/builder/skills/target-tasks.skill.js +12 -0
  265. package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
  266. package/dist/modules/agents/entities/agent-memory-entry.entity.d.ts +1 -1
  267. package/dist/modules/agents/entities/agent-memory-entry.entity.js.map +1 -1
  268. package/dist/modules/agents/entities/agent.entity.d.ts +1 -2
  269. package/dist/modules/agents/entities/agent.entity.js +0 -4
  270. package/dist/modules/agents/entities/agent.entity.js.map +1 -1
  271. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +7 -23
  272. package/dist/modules/agents/integrations/agent-chat-bridge.js +60 -646
  273. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  274. package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.d.ts +44 -0
  275. package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js +110 -0
  276. package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js.map +1 -0
  277. package/dist/modules/agents/integrations/agent-chat-integration.d.ts +38 -4
  278. package/dist/modules/agents/integrations/agent-chat-integration.js +10 -3
  279. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  280. package/dist/modules/agents/integrations/agent-chat-message-context.d.ts +22 -0
  281. package/dist/modules/agents/integrations/agent-chat-message-context.js +104 -0
  282. package/dist/modules/agents/integrations/agent-chat-message-context.js.map +1 -0
  283. package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +29 -0
  284. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +205 -0
  285. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -0
  286. package/dist/modules/agents/integrations/agent-chat-suspension-cards.d.ts +10 -0
  287. package/dist/modules/agents/integrations/agent-chat-suspension-cards.js +90 -0
  288. package/dist/modules/agents/integrations/agent-chat-suspension-cards.js.map +1 -0
  289. package/dist/modules/agents/integrations/chat-integration.service.js +6 -3
  290. package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
  291. package/dist/modules/agents/integrations/integration-message-context.service.d.ts +1 -1
  292. package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -1
  293. package/dist/modules/agents/integrations/integration-tool-definitions.d.ts +6037 -0
  294. package/dist/modules/agents/integrations/integration-tool-definitions.js +231 -0
  295. package/dist/modules/agents/integrations/integration-tool-definitions.js.map +1 -0
  296. package/dist/modules/agents/integrations/integration-tool-descriptions.d.ts +3 -0
  297. package/dist/modules/agents/integrations/integration-tool-descriptions.js +100 -0
  298. package/dist/modules/agents/integrations/integration-tool-descriptions.js.map +1 -0
  299. package/dist/modules/agents/integrations/integration-tool-execution.d.ts +27 -0
  300. package/dist/modules/agents/integrations/integration-tool-execution.js +278 -0
  301. package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -0
  302. package/dist/modules/agents/integrations/integration-tool-factory.d.ts +121 -0
  303. package/dist/modules/agents/integrations/integration-tool-factory.js +133 -0
  304. package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -0
  305. package/dist/modules/agents/integrations/integration-tool-schema.d.ts +107 -0
  306. package/dist/modules/agents/integrations/integration-tool-schema.js +140 -0
  307. package/dist/modules/agents/integrations/integration-tool-schema.js.map +1 -0
  308. package/dist/modules/agents/integrations/integration-tool-types.d.ts +105 -0
  309. package/dist/modules/agents/integrations/integration-tool-types.js +3 -0
  310. package/dist/modules/agents/integrations/integration-tool-types.js.map +1 -0
  311. package/dist/modules/agents/integrations/integration-tools.d.ts +3 -213
  312. package/dist/modules/agents/integrations/integration-tools.js +16 -998
  313. package/dist/modules/agents/integrations/integration-tools.js.map +1 -1
  314. package/dist/modules/agents/integrations/integrations-sync.d.ts +1 -1
  315. package/dist/modules/agents/integrations/n8n-memory.d.ts +1 -1
  316. package/dist/modules/agents/integrations/n8n-memory.js +2 -2
  317. package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
  318. package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +3 -3
  319. package/dist/modules/agents/integrations/platforms/linear-integration.js +14 -19
  320. package/dist/modules/agents/integrations/platforms/linear-integration.js.map +1 -1
  321. package/dist/modules/agents/integrations/platforms/linear-tool-definitions.d.ts +473 -0
  322. package/dist/modules/agents/integrations/platforms/linear-tool-definitions.js +270 -0
  323. package/dist/modules/agents/integrations/platforms/linear-tool-definitions.js.map +1 -0
  324. package/dist/modules/agents/integrations/platforms/n8n-chat-integration.d.ts +4 -3
  325. package/dist/modules/agents/integrations/platforms/n8n-chat-integration.js +6 -2
  326. package/dist/modules/agents/integrations/platforms/n8n-chat-integration.js.map +1 -1
  327. package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.d.ts +12 -0
  328. package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js +198 -0
  329. package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js.map +1 -0
  330. package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +14 -4
  331. package/dist/modules/agents/integrations/platforms/slack-integration.js +20 -7
  332. package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
  333. package/dist/modules/agents/integrations/platforms/slack-operations.js +1 -1
  334. package/dist/modules/agents/integrations/platforms/slack-operations.js.map +1 -1
  335. package/dist/modules/agents/integrations/platforms/slack-tool-definitions.d.ts +35 -0
  336. package/dist/modules/agents/integrations/platforms/slack-tool-definitions.js +33 -0
  337. package/dist/modules/agents/integrations/platforms/slack-tool-definitions.js.map +1 -0
  338. package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +1 -2
  339. package/dist/modules/agents/integrations/platforms/telegram-integration.js +2 -1
  340. package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
  341. package/dist/modules/agents/integrations/slack-app-setup.service.d.ts +5 -3
  342. package/dist/modules/agents/integrations/slack-app-setup.service.js +11 -6
  343. package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
  344. package/dist/modules/agents/json-config/from-json-config.d.ts +7 -0
  345. package/dist/modules/agents/json-config/from-json-config.js +60 -15
  346. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  347. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +17 -6
  348. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
  349. package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +1 -1
  350. package/dist/modules/agents/repositories/agent-execution-thread.repository.js +2 -5
  351. package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
  352. package/dist/modules/agents/repositories/agent-history.repository.d.ts +1 -1
  353. package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
  354. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.d.ts +1 -1
  355. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.d.ts +1 -1
  356. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -1
  357. package/dist/modules/agents/tools/agent-data-utils.d.ts +22 -0
  358. package/dist/modules/agents/tools/agent-data-utils.js +64 -0
  359. package/dist/modules/agents/tools/agent-data-utils.js.map +1 -0
  360. package/dist/modules/agents/tools/input-data-tool.d.ts +3 -0
  361. package/dist/modules/agents/tools/input-data-tool.js +40 -0
  362. package/dist/modules/agents/tools/input-data-tool.js.map +1 -0
  363. package/dist/modules/agents/tools/node-tool-factory.d.ts +1 -1
  364. package/dist/modules/agents/tools/node-tool-factory.js +1 -1
  365. package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
  366. package/dist/modules/agents/tools/workflow-context-tool.d.ts +3 -0
  367. package/dist/modules/agents/tools/workflow-context-tool.js +84 -0
  368. package/dist/modules/agents/tools/workflow-context-tool.js.map +1 -0
  369. package/dist/modules/agents/utils/agent-credential-provider.d.ts +4 -0
  370. package/dist/modules/agents/utils/agent-credential-provider.js +8 -0
  371. package/dist/modules/agents/utils/agent-credential-provider.js.map +1 -0
  372. package/dist/modules/agents/utils/agent-missing-skill-ids.d.ts +2 -0
  373. package/dist/modules/agents/utils/agent-missing-skill-ids.js +17 -0
  374. package/dist/modules/agents/utils/agent-missing-skill-ids.js.map +1 -0
  375. package/dist/modules/agents/utils/agent-published-snapshot.d.ts +2 -0
  376. package/dist/modules/agents/utils/agent-published-snapshot.js +17 -0
  377. package/dist/modules/agents/utils/agent-published-snapshot.js.map +1 -0
  378. package/dist/modules/agents/utils/agent-resource-id.d.ts +1 -1
  379. package/dist/modules/agents/utils/sub-agent-resolver.d.ts +14 -0
  380. package/dist/modules/agents/utils/sub-agent-resolver.js +23 -0
  381. package/dist/modules/agents/utils/sub-agent-resolver.js.map +1 -0
  382. package/dist/modules/breaking-changes/rules/v2/file-access.rule.js.map +1 -1
  383. package/dist/modules/breaking-changes/rules/v2/oauth-callback-auth.rule.js.map +1 -1
  384. package/dist/modules/breaking-changes/rules/v2/process-env-access.rule.js.map +1 -1
  385. package/dist/modules/breaking-changes/rules/v2/pyodide-removed.rule.js.map +1 -1
  386. package/dist/modules/breaking-changes/rules/v2/queue-worker-max-stalled-count.rule.js.map +1 -1
  387. package/dist/modules/breaking-changes/rules/v2/removed-nodes.rule.js.map +1 -1
  388. package/dist/modules/breaking-changes/rules/v2/settings-file-permissions.rule.js.map +1 -1
  389. package/dist/modules/breaking-changes/rules/v2/start-node-removed.rule.js.map +1 -1
  390. package/dist/modules/breaking-changes/rules/v2/task-runner-docker-image.rule.js.map +1 -1
  391. package/dist/modules/breaking-changes/rules/v2/tunnel-option.rule.js.map +1 -1
  392. package/dist/modules/breaking-changes/rules/v2/wait-node-subworkflow.rule.js +1 -1
  393. package/dist/modules/breaking-changes/rules/v2/wait-node-subworkflow.rule.js.map +1 -1
  394. package/dist/modules/breaking-changes/rules/v2/workflow-hooks-deprecated.rule.js.map +1 -1
  395. package/dist/modules/chat-hub/chat-hub-agent.service.d.ts +5 -5
  396. package/dist/modules/chat-hub/chat-hub-agent.service.js +9 -9
  397. package/dist/modules/chat-hub/chat-hub-agent.service.js.map +1 -1
  398. package/dist/modules/chat-hub/chat-hub-message.entity.d.ts +2 -2
  399. package/dist/modules/chat-hub/chat-hub-message.entity.js.map +1 -1
  400. package/dist/modules/chat-hub/chat-hub-session.entity.d.ts +1 -1
  401. package/dist/modules/chat-hub/chat-hub.controller.d.ts +5 -2
  402. package/dist/modules/chat-hub/chat-hub.controller.js +23 -5
  403. package/dist/modules/chat-hub/chat-hub.controller.js.map +1 -1
  404. package/dist/modules/chat-hub/chat-hub.module.d.ts +1 -1
  405. package/dist/modules/chat-hub/chat-hub.service.js +1 -1
  406. package/dist/modules/chat-hub/chat-hub.service.js.map +1 -1
  407. package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +8 -4
  408. package/dist/modules/chat-hub/chat-hub.settings.controller.js +28 -18
  409. package/dist/modules/chat-hub/chat-hub.settings.controller.js.map +1 -1
  410. package/dist/modules/chat-hub/chat-hub.settings.service.js +3 -3
  411. package/dist/modules/chat-hub/chat-hub.settings.service.js.map +1 -1
  412. package/dist/modules/chat-hub/chat-hub.types.d.ts +1 -1
  413. package/dist/modules/chat-hub/chat-session.repository.js +1 -1
  414. package/dist/modules/chat-hub/chat-session.repository.js.map +1 -1
  415. package/dist/modules/community-packages/community-node-types.service.js +2 -2
  416. package/dist/modules/community-packages/community-node-types.service.js.map +1 -1
  417. package/dist/modules/community-packages/community-packages.config.d.ts +2 -0
  418. package/dist/modules/community-packages/community-packages.config.js +10 -0
  419. package/dist/modules/community-packages/community-packages.config.js.map +1 -1
  420. package/dist/modules/community-packages/community-packages.lifecycle.service.d.ts +3 -3
  421. package/dist/modules/community-packages/community-packages.lifecycle.service.js +3 -3
  422. package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -1
  423. package/dist/modules/community-packages/community-packages.service.js +3 -3
  424. package/dist/modules/community-packages/community-packages.service.js.map +1 -1
  425. package/dist/modules/community-packages/npm-utils.js +1 -1
  426. package/dist/modules/community-packages/npm-utils.js.map +1 -1
  427. package/dist/modules/data-table/data-table-aggregate.service.js +1 -1
  428. package/dist/modules/data-table/data-table-aggregate.service.js.map +1 -1
  429. package/dist/modules/data-table/data-table-file-cleanup.service.js +1 -1
  430. package/dist/modules/data-table/data-table-file-cleanup.service.js.map +1 -1
  431. package/dist/modules/data-table/data-table-proxy.service.d.ts +2 -2
  432. package/dist/modules/data-table/data-table-proxy.service.js +3 -3
  433. package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
  434. package/dist/modules/data-table/data-table.controller.d.ts +2 -2
  435. package/dist/modules/data-table/data-table.controller.js +3 -3
  436. package/dist/modules/data-table/data-table.controller.js.map +1 -1
  437. package/dist/modules/data-table/utils/sql-utils.js.map +1 -1
  438. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/slack-signature-extractor.js +1 -1
  439. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/slack-signature-extractor.js.map +1 -1
  440. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.js +0 -1
  441. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.js.map +1 -1
  442. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.d.ts +0 -1
  443. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.js +3 -3
  444. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.js.map +1 -1
  445. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.js +0 -1
  446. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.js.map +1 -1
  447. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/slack-signature-identifier.js +2 -2
  448. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/slack-signature-identifier.js.map +1 -1
  449. package/dist/modules/dynamic-credentials.ee/credential-resolvers/slack-credential-resolver.js.map +1 -1
  450. package/dist/modules/dynamic-credentials.ee/credential-resolvers/storage/dynamic-credential-entry-storage.d.ts +1 -1
  451. package/dist/modules/dynamic-credentials.ee/credential-resolvers/storage/dynamic-credential-entry-storage.js.map +1 -1
  452. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.d.ts +1 -1
  453. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.js +1 -1
  454. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.js.map +1 -1
  455. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.d.ts +2 -2
  456. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js +2 -2
  457. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js.map +1 -1
  458. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-web.service.d.ts +2 -2
  459. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-web.service.js +2 -2
  460. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-web.service.js.map +1 -1
  461. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.d.ts +1 -1
  462. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
  463. package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.d.ts +1 -1
  464. package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js +1 -1
  465. package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js.map +1 -1
  466. package/dist/modules/dynamic-credentials.ee/utils.js.map +1 -1
  467. package/dist/modules/dynamic-credentials.ee/workflow-status.controller.d.ts +3 -1
  468. package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js +14 -2
  469. package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js.map +1 -1
  470. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.d.ts +3 -4
  471. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js +20 -46
  472. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
  473. package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.d.ts +21 -0
  474. package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.js +142 -0
  475. package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.js.map +1 -0
  476. package/dist/modules/external-secrets.ee/external-secrets-settings.controller.ee.d.ts +1 -1
  477. package/dist/modules/external-secrets.ee/external-secrets-settings.controller.ee.js +1 -1
  478. package/dist/modules/external-secrets.ee/external-secrets-settings.controller.ee.js.map +1 -1
  479. package/dist/modules/external-secrets.ee/provider-registry.service.d.ts +1 -1
  480. package/dist/modules/external-secrets.ee/provider-registry.service.js +1 -1
  481. package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js +5 -1
  482. package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js.map +1 -1
  483. package/dist/modules/external-secrets.ee/providers/infisical.js +4 -4
  484. package/dist/modules/external-secrets.ee/providers/infisical.js.map +1 -1
  485. package/dist/modules/external-secrets.ee/providers/vault.js +10 -10
  486. package/dist/modules/external-secrets.ee/providers/vault.js.map +1 -1
  487. package/dist/modules/external-secrets.ee/redaction.service.ee.js.map +1 -1
  488. package/dist/modules/external-secrets.ee/secrets-providers-connections.service.ee.d.ts +1 -1
  489. package/dist/modules/external-secrets.ee/secrets-providers-connections.service.ee.js +1 -1
  490. package/dist/modules/external-secrets.ee/secrets-providers-connections.service.ee.js.map +1 -1
  491. package/dist/modules/external-secrets.ee/secrets-providers-types.controller.ee.d.ts +1 -1
  492. package/dist/modules/external-secrets.ee/secrets-providers-types.controller.ee.js +2 -2
  493. package/dist/modules/external-secrets.ee/secrets-providers-types.controller.ee.js.map +1 -1
  494. package/dist/modules/favorites/favorites.controller.d.ts +1 -1
  495. package/dist/modules/favorites/favorites.controller.js +2 -2
  496. package/dist/modules/favorites/favorites.controller.js.map +1 -1
  497. package/dist/modules/favorites/favorites.event-relay.d.ts +1 -1
  498. package/dist/modules/favorites/favorites.event-relay.js +1 -1
  499. package/dist/modules/favorites/favorites.event-relay.js.map +1 -1
  500. package/dist/modules/favorites/favorites.service.d.ts +2 -2
  501. package/dist/modules/favorites/favorites.service.js +2 -2
  502. package/dist/modules/favorites/favorites.service.js.map +1 -1
  503. package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +1 -0
  504. package/dist/modules/insights/database/repositories/insights-by-period.repository.js +6 -0
  505. package/dist/modules/insights/database/repositories/insights-by-period.repository.js.map +1 -1
  506. package/dist/modules/insights/insights.module.d.ts +1 -0
  507. package/dist/modules/insights/insights.module.js +1 -1
  508. package/dist/modules/insights/insights.module.js.map +1 -1
  509. package/dist/modules/insights/insights.settings.d.ts +6 -3
  510. package/dist/modules/insights/insights.settings.js +8 -3
  511. package/dist/modules/insights/insights.settings.js.map +1 -1
  512. package/dist/modules/instance-ai/browser/browser-local-mcp-server.d.ts +23 -0
  513. package/dist/modules/instance-ai/browser/browser-local-mcp-server.js +123 -0
  514. package/dist/modules/instance-ai/browser/browser-local-mcp-server.js.map +1 -0
  515. package/dist/modules/instance-ai/browser/browser-use-server.d.ts +11 -0
  516. package/dist/modules/instance-ai/browser/browser-use-server.js +68 -0
  517. package/dist/modules/instance-ai/browser/browser-use-server.js.map +1 -0
  518. package/dist/modules/instance-ai/browser/browser-use-ws.constants.d.ts +7 -0
  519. package/dist/modules/instance-ai/browser/browser-use-ws.constants.js +6 -0
  520. package/dist/modules/instance-ai/browser/browser-use-ws.constants.js.map +1 -0
  521. package/dist/modules/instance-ai/browser/composite-local-mcp-server.d.ts +14 -0
  522. package/dist/modules/instance-ai/browser/composite-local-mcp-server.js +57 -0
  523. package/dist/modules/instance-ai/browser/composite-local-mcp-server.js.map +1 -0
  524. package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.d.ts +40 -0
  525. package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.js +297 -0
  526. package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.js.map +1 -0
  527. package/dist/modules/instance-ai/eval/execution.service.js +2 -2
  528. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  529. package/dist/modules/instance-ai/eval/mock-handler.js +5 -1
  530. package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
  531. package/dist/modules/instance-ai/eval/pin-data-generator.js +1 -1
  532. package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
  533. package/dist/modules/instance-ai/eval/thread-restore.service.d.ts +14 -0
  534. package/dist/modules/instance-ai/eval/thread-restore.service.js +149 -0
  535. package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -0
  536. package/dist/modules/instance-ai/eval/workflow-analysis.js +1 -1
  537. package/dist/modules/instance-ai/event-bus/in-process-event-bus.js.map +1 -1
  538. package/dist/modules/instance-ai/filesystem/local-gateway-registry.js.map +1 -1
  539. package/dist/modules/instance-ai/filesystem/local-gateway.d.ts +3 -0
  540. package/dist/modules/instance-ai/filesystem/local-gateway.js +20 -3
  541. package/dist/modules/instance-ai/filesystem/local-gateway.js.map +1 -1
  542. package/dist/modules/instance-ai/instance-ai-event-relay.service.d.ts +12 -0
  543. package/dist/modules/instance-ai/instance-ai-event-relay.service.js +56 -0
  544. package/dist/modules/instance-ai/instance-ai-event-relay.service.js.map +1 -0
  545. package/dist/modules/instance-ai/instance-ai-gateway.service.d.ts +5 -1
  546. package/dist/modules/instance-ai/instance-ai-gateway.service.js +10 -3
  547. package/dist/modules/instance-ai/instance-ai-gateway.service.js.map +1 -1
  548. package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +5 -0
  549. package/dist/modules/instance-ai/instance-ai-memory.service.js +38 -0
  550. package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
  551. package/dist/modules/instance-ai/instance-ai-run-pin-data.d.ts +29 -0
  552. package/dist/modules/instance-ai/instance-ai-run-pin-data.js +222 -0
  553. package/dist/modules/instance-ai/instance-ai-run-pin-data.js.map +1 -0
  554. package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +1 -0
  555. package/dist/modules/instance-ai/instance-ai-settings.service.js +9 -0
  556. package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
  557. package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.d.ts +72 -0
  558. package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js +352 -0
  559. package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js.map +1 -0
  560. package/dist/modules/instance-ai/instance-ai-test.controller.d.ts +2 -2
  561. package/dist/modules/instance-ai/instance-ai-test.controller.js +2 -2
  562. package/dist/modules/instance-ai/instance-ai-test.controller.js.map +1 -1
  563. package/dist/modules/instance-ai/instance-ai.adapter.service.js +78 -193
  564. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  565. package/dist/modules/instance-ai/instance-ai.controller.d.ts +19 -2
  566. package/dist/modules/instance-ai/instance-ai.controller.js +96 -6
  567. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  568. package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -0
  569. package/dist/modules/instance-ai/instance-ai.module.js +4 -0
  570. package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
  571. package/dist/modules/instance-ai/instance-ai.service.d.ts +10 -33
  572. package/dist/modules/instance-ai/instance-ai.service.js +293 -767
  573. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  574. package/dist/modules/instance-ai/internal-messages.d.ts +2 -0
  575. package/dist/modules/instance-ai/internal-messages.js +4 -2
  576. package/dist/modules/instance-ai/internal-messages.js.map +1 -1
  577. package/dist/modules/instance-ai/liveness/index.d.ts +1 -1
  578. package/dist/modules/instance-ai/liveness/index.js.map +1 -1
  579. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +4 -7
  580. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +2 -2
  581. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
  582. package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js.map +1 -1
  583. package/dist/modules/instance-ai/message-parser.js +4 -3
  584. package/dist/modules/instance-ai/message-parser.js.map +1 -1
  585. package/dist/modules/instance-ai/node-definition-resolver.js +2 -1
  586. package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -1
  587. package/dist/modules/instance-ai/planned-task-action-runner.d.ts +1 -1
  588. package/dist/modules/instance-ai/planned-task-action-runner.js +3 -3
  589. package/dist/modules/instance-ai/planned-task-action-runner.js.map +1 -1
  590. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -1
  591. package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +1 -0
  592. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +29 -0
  593. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
  594. package/dist/modules/instance-ai/suspended-run-restorer.service.d.ts +4 -8
  595. package/dist/modules/instance-ai/suspended-run-restorer.service.js +2 -2
  596. package/dist/modules/instance-ai/suspended-run-restorer.service.js.map +1 -1
  597. package/dist/modules/instance-ai/suspended-thread-persistence.service.d.ts +0 -14
  598. package/dist/modules/instance-ai/suspended-thread-persistence.service.js +0 -26
  599. package/dist/modules/instance-ai/suspended-thread-persistence.service.js.map +1 -1
  600. package/dist/modules/instance-ai/tracing/index.d.ts +1 -0
  601. package/dist/modules/instance-ai/tracing/index.js +6 -0
  602. package/dist/modules/instance-ai/tracing/index.js.map +1 -0
  603. package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.d.ts +81 -0
  604. package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js +341 -0
  605. package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js.map +1 -0
  606. package/dist/modules/instance-ai/workflow-verification-task-projector.js +1 -2
  607. package/dist/modules/instance-ai/workflow-verification-task-projector.js.map +1 -1
  608. package/dist/modules/instance-registry/instance-registry.controller.js +1 -0
  609. package/dist/modules/instance-registry/instance-registry.controller.js.map +1 -1
  610. package/dist/modules/instance-registry/instance-registry.service.js +1 -1
  611. package/dist/modules/instance-registry/instance-registry.service.js.map +1 -1
  612. package/dist/modules/instance-version-history/instance-version-history.service.d.ts +1 -1
  613. package/dist/modules/instance-version-history/instance-version-history.service.js +1 -1
  614. package/dist/modules/instance-version-history/instance-version-history.service.js.map +1 -1
  615. package/dist/modules/ldap.ee/ldap.service.ee.d.ts +1 -1
  616. package/dist/modules/ldap.ee/ldap.service.ee.js +1 -1
  617. package/dist/modules/ldap.ee/ldap.service.ee.js.map +1 -1
  618. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-sentry.ee.js.map +1 -1
  619. package/dist/modules/mcp/dto/update-allowed-redirect-uris.dto.js +1 -1
  620. package/dist/modules/mcp/dto/update-allowed-redirect-uris.dto.js.map +1 -1
  621. package/dist/modules/mcp/mcp.service.d.ts +5 -1
  622. package/dist/modules/mcp/mcp.service.js +18 -3
  623. package/dist/modules/mcp/mcp.service.js.map +1 -1
  624. package/dist/modules/mcp/tools/data-table/add-data-table-column.tool.d.ts +1 -1
  625. package/dist/modules/mcp/tools/data-table/add-data-table-column.tool.js.map +1 -1
  626. package/dist/modules/mcp/tools/data-table/add-data-table-rows.tool.d.ts +1 -1
  627. package/dist/modules/mcp/tools/data-table/add-data-table-rows.tool.js.map +1 -1
  628. package/dist/modules/mcp/tools/data-table/create-data-table.tool.d.ts +1 -1
  629. package/dist/modules/mcp/tools/data-table/create-data-table.tool.js.map +1 -1
  630. package/dist/modules/mcp/tools/data-table/delete-data-table-column.tool.d.ts +1 -1
  631. package/dist/modules/mcp/tools/data-table/delete-data-table-column.tool.js.map +1 -1
  632. package/dist/modules/mcp/tools/data-table/rename-data-table-column.tool.d.ts +1 -1
  633. package/dist/modules/mcp/tools/data-table/rename-data-table-column.tool.js.map +1 -1
  634. package/dist/modules/mcp/tools/data-table/rename-data-table.tool.d.ts +1 -1
  635. package/dist/modules/mcp/tools/data-table/rename-data-table.tool.js.map +1 -1
  636. package/dist/modules/mcp/tools/data-table/search-data-tables.tool.d.ts +1 -1
  637. package/dist/modules/mcp/tools/data-table/search-data-tables.tool.js.map +1 -1
  638. package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +2 -2
  639. package/dist/modules/mcp/tools/execution-utils.js.map +1 -1
  640. package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +3 -3
  641. package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
  642. package/dist/modules/mcp/tools/get-workflow-history.tool.d.ts +49 -0
  643. package/dist/modules/mcp/tools/get-workflow-history.tool.js +115 -0
  644. package/dist/modules/mcp/tools/get-workflow-history.tool.js.map +1 -0
  645. package/dist/modules/mcp/tools/get-workflow-version.tool.d.ts +30 -0
  646. package/dist/modules/mcp/tools/get-workflow-version.tool.js +118 -0
  647. package/dist/modules/mcp/tools/get-workflow-version.tool.js.map +1 -0
  648. package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.d.ts +2 -2
  649. package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.js.map +1 -1
  650. package/dist/modules/mcp/tools/publish-workflow.tool.d.ts +1 -1
  651. package/dist/modules/mcp/tools/publish-workflow.tool.js.map +1 -1
  652. package/dist/modules/mcp/tools/schemas.d.ts +25 -11
  653. package/dist/modules/mcp/tools/schemas.js +7 -4
  654. package/dist/modules/mcp/tools/schemas.js.map +1 -1
  655. package/dist/modules/mcp/tools/search-folders.tool.d.ts +1 -1
  656. package/dist/modules/mcp/tools/search-folders.tool.js.map +1 -1
  657. package/dist/modules/mcp/tools/search-projects.tool.d.ts +1 -1
  658. package/dist/modules/mcp/tools/search-projects.tool.js.map +1 -1
  659. package/dist/modules/mcp/tools/test-workflow.tool.d.ts +2 -2
  660. package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -1
  661. package/dist/modules/mcp/tools/unpublish-workflow.tool.d.ts +1 -1
  662. package/dist/modules/mcp/tools/unpublish-workflow.tool.js.map +1 -1
  663. package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
  664. package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.d.ts +1 -1
  665. package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.js.map +1 -1
  666. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +18 -2
  667. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
  668. package/dist/modules/mcp/tools/workflow-builder/delete-workflow.tool.d.ts +1 -1
  669. package/dist/modules/mcp/tools/workflow-builder/delete-workflow.tool.js +1 -1
  670. package/dist/modules/mcp/tools/workflow-builder/delete-workflow.tool.js.map +1 -1
  671. package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.d.ts +1 -1
  672. package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js +1 -1
  673. package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js.map +1 -1
  674. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.d.ts +1 -1
  675. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js +1 -1
  676. package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js.map +1 -1
  677. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +4 -2
  678. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
  679. package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.d.ts +20 -0
  680. package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.js +108 -0
  681. package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.js.map +1 -0
  682. package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.d.ts +1 -1
  683. package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js +1 -1
  684. package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js.map +1 -1
  685. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +3 -1
  686. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +117 -4
  687. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  688. package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.d.ts +1 -1
  689. package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js +1 -1
  690. package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js.map +1 -1
  691. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.d.ts +1 -1
  692. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +4 -1
  693. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
  694. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +195 -3
  695. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +69 -1
  696. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
  697. package/dist/modules/mcp/tools/workflow-history.utils.d.ts +3 -0
  698. package/dist/modules/mcp/tools/workflow-history.utils.js +18 -0
  699. package/dist/modules/mcp/tools/workflow-history.utils.js.map +1 -0
  700. package/dist/modules/mcp-registry/registry/mcp-registry.service.js +4 -1
  701. package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
  702. package/dist/modules/mcp-registry/synthesize-type-def.d.ts +1 -1
  703. package/dist/modules/mcp-registry/synthesize-type-def.js +3 -3
  704. package/dist/modules/mcp-registry/synthesize-type-def.js.map +1 -1
  705. package/dist/modules/n8n-packages/n8n-packages.service.d.ts +1 -1
  706. package/dist/modules/n8n-packages/n8n-packages.service.js +1 -1
  707. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  708. package/dist/modules/n8n-packages/utils/import-package-upload.js +1 -1
  709. package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -1
  710. package/dist/modules/oauth-server/oauth-consent.service.d.ts +3 -1
  711. package/dist/modules/oauth-server/oauth-consent.service.js +8 -4
  712. package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -1
  713. package/dist/modules/oauth-server/oauth.controller.js +1 -0
  714. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  715. package/dist/modules/oauth-server/oauth.helpers.d.ts +2 -2
  716. package/dist/modules/oauth-server/oauth.helpers.js +4 -2
  717. package/dist/modules/oauth-server/oauth.helpers.js.map +1 -1
  718. package/dist/modules/provisioning.ee/provisioning.module.js +4 -0
  719. package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
  720. package/dist/modules/provisioning.ee/role-deletion-checker.ee.d.ts +7 -0
  721. package/dist/modules/provisioning.ee/role-deletion-checker.ee.js +33 -0
  722. package/dist/modules/provisioning.ee/role-deletion-checker.ee.js.map +1 -0
  723. package/dist/modules/quick-connect/handlers/firecrawl.handler.js +3 -3
  724. package/dist/modules/quick-connect/handlers/firecrawl.handler.js.map +1 -1
  725. package/dist/modules/quick-connect/quick-connect.config.d.ts +10 -10
  726. package/dist/modules/quick-connect/quick-connect.module.d.ts +2 -2
  727. package/dist/modules/quick-connect/quick-connect.service.js +1 -1
  728. package/dist/modules/quick-connect/quick-connect.service.js.map +1 -1
  729. package/dist/modules/redaction/executions/execution-redaction.service.d.ts +1 -1
  730. package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
  731. package/dist/modules/runtime-credentials/runtime-credentials.service.js +1 -1
  732. package/dist/modules/runtime-credentials/runtime-credentials.service.js.map +1 -1
  733. package/dist/modules/source-control.ee/source-control-context.factory.js.map +1 -1
  734. package/dist/modules/source-control.ee/source-control-export.service.ee.d.ts +1 -1
  735. package/dist/modules/source-control.ee/source-control-export.service.ee.js +2 -2
  736. package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
  737. package/dist/modules/source-control.ee/source-control-scoped.service.d.ts +3 -2
  738. package/dist/modules/source-control.ee/source-control-scoped.service.js +10 -1
  739. package/dist/modules/source-control.ee/source-control-scoped.service.js.map +1 -1
  740. package/dist/modules/source-control.ee/source-control-status.service.ee.d.ts +2 -2
  741. package/dist/modules/source-control.ee/source-control-status.service.ee.js +3 -3
  742. package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
  743. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -4
  744. package/dist/modules/source-control.ee/source-control.controller.ee.js +5 -4
  745. package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
  746. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +8 -5
  747. package/dist/modules/source-control.ee/source-control.service.ee.js +25 -10
  748. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  749. package/dist/modules/sso-saml/saml-helpers.js.map +1 -1
  750. package/dist/modules/sso-saml/saml.controller.ee.d.ts +1 -1
  751. package/dist/modules/sso-saml/saml.controller.ee.js +4 -3
  752. package/dist/modules/sso-saml/saml.controller.ee.js.map +1 -1
  753. package/dist/modules/token-exchange/controllers/embed-auth.controller.js +1 -1
  754. package/dist/modules/token-exchange/controllers/embed-auth.controller.js.map +1 -1
  755. package/dist/modules/token-exchange/services/jwks-resolver.js +1 -1
  756. package/dist/modules/token-exchange/services/jwks-resolver.js.map +1 -1
  757. package/dist/modules/token-exchange/services/trusted-key.service.js +1 -1
  758. package/dist/modules/token-exchange/services/trusted-key.service.js.map +1 -1
  759. package/dist/modules/token-exchange/token-exchange.schemas.d.ts +2 -2
  760. package/dist/modules/workflow-builder/workflow-builder-session.entity.js +1 -1
  761. package/dist/modules/workflow-builder/workflow-builder-session.entity.js.map +1 -1
  762. package/dist/modules/workflow-builder/workflow-builder-session.repository.js +1 -1
  763. package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +1 -1
  764. package/dist/node-catalog/node-catalog.service.d.ts +3 -2
  765. package/dist/node-catalog/node-catalog.service.js +50 -18
  766. package/dist/node-catalog/node-catalog.service.js.map +1 -1
  767. package/dist/oauth/oauth.service.d.ts +1 -1
  768. package/dist/oauth/oauth.service.js +7 -6
  769. package/dist/oauth/oauth.service.js.map +1 -1
  770. package/dist/permissions.ee/check-access.js +1 -1
  771. package/dist/permissions.ee/check-access.js.map +1 -1
  772. package/dist/public-api/index.js +24 -3
  773. package/dist/public-api/index.js.map +1 -1
  774. package/dist/public-api/v1/handlers/discover/discover.service.js +38 -2
  775. package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
  776. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +1 -1
  777. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
  778. package/dist/scaling/job-processor.js +1 -0
  779. package/dist/scaling/job-processor.js.map +1 -1
  780. package/dist/scaling/leader-election-client.d.ts +1 -1
  781. package/dist/scaling/leader-election-client.js +1 -1
  782. package/dist/scaling/leader-election-client.js.map +1 -1
  783. package/dist/scaling/pubsub/subscriber.service.js +1 -1
  784. package/dist/scaling/pubsub/subscriber.service.js.map +1 -1
  785. package/dist/scaling/redis/redis.types.d.ts +1 -1
  786. package/dist/scaling/redis-lock.service.d.ts +15 -0
  787. package/dist/scaling/redis-lock.service.js +154 -0
  788. package/dist/scaling/redis-lock.service.js.map +1 -0
  789. package/dist/security-audit/risk-reporters/instance-risk-reporter.js +3 -3
  790. package/dist/security-audit/risk-reporters/instance-risk-reporter.js.map +1 -1
  791. package/dist/server.js +4 -0
  792. package/dist/server.js.map +1 -1
  793. package/dist/services/ai-gateway.service.d.ts +1 -1
  794. package/dist/services/ai-gateway.service.js +1 -1
  795. package/dist/services/ai-gateway.service.js.map +1 -1
  796. package/dist/services/ai-workflow-builder.service.js +5 -4
  797. package/dist/services/ai-workflow-builder.service.js.map +1 -1
  798. package/dist/services/credentials-tester.service.d.ts +1 -1
  799. package/dist/services/credentials-tester.service.js +3 -3
  800. package/dist/services/credentials-tester.service.js.map +1 -1
  801. package/dist/services/dynamic-node-parameters.service.d.ts +3 -3
  802. package/dist/services/dynamic-node-parameters.service.js +4 -4
  803. package/dist/services/dynamic-node-parameters.service.js.map +1 -1
  804. package/dist/services/dynamic-templates.service.js +3 -3
  805. package/dist/services/dynamic-templates.service.js.map +1 -1
  806. package/dist/services/export.service.js +3 -3
  807. package/dist/services/export.service.js.map +1 -1
  808. package/dist/services/frontend.service.js.map +1 -1
  809. package/dist/services/import.service.js.map +1 -1
  810. package/dist/services/ownership.service.d.ts +3 -3
  811. package/dist/services/ownership.service.js +5 -5
  812. package/dist/services/ownership.service.js.map +1 -1
  813. package/dist/services/project.service.ee.js +2 -2
  814. package/dist/services/project.service.ee.js.map +1 -1
  815. package/dist/services/pruning/workflow-history-compaction.service.d.ts +1 -1
  816. package/dist/services/pruning/workflow-history-compaction.service.js +1 -1
  817. package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
  818. package/dist/services/rate-limit.service.d.ts +1 -1
  819. package/dist/services/rate-limit.service.js.map +1 -1
  820. package/dist/services/role-deletion-check-proxy.service.d.ts +8 -0
  821. package/dist/services/role-deletion-check-proxy.service.js +28 -0
  822. package/dist/services/role-deletion-check-proxy.service.js.map +1 -0
  823. package/dist/services/role.service.d.ts +5 -2
  824. package/dist/services/role.service.js +18 -2
  825. package/dist/services/role.service.js.map +1 -1
  826. package/dist/services/user.service.js +5 -0
  827. package/dist/services/user.service.js.map +1 -1
  828. package/dist/task-runners/task-managers/data-request-response-builder.js +1 -0
  829. package/dist/task-runners/task-managers/data-request-response-builder.js.map +1 -1
  830. package/dist/task-runners/task-runner-process-js.js +2 -0
  831. package/dist/task-runners/task-runner-process-js.js.map +1 -1
  832. package/dist/tool-generation/hitl-tools.js.map +1 -1
  833. package/dist/utils/compression.util.js +2 -2
  834. package/dist/utils/compression.util.js.map +1 -1
  835. package/dist/utils/health-endpoint.util.js.map +1 -1
  836. package/dist/utils/strapi-utils.js +2 -3
  837. package/dist/utils/strapi-utils.js.map +1 -1
  838. package/dist/webhooks/test-webhook-registrations.service.js +1 -1
  839. package/dist/webhooks/test-webhook-registrations.service.js.map +1 -1
  840. package/dist/webhooks/test-webhooks.d.ts +1 -1
  841. package/dist/webhooks/test-webhooks.js.map +1 -1
  842. package/dist/webhooks/waiting-forms.js +2 -2
  843. package/dist/webhooks/waiting-forms.js.map +1 -1
  844. package/dist/webhooks/webhook.service.d.ts +1 -0
  845. package/dist/webhooks/webhook.service.js +4 -1
  846. package/dist/webhooks/webhook.service.js.map +1 -1
  847. package/dist/workflow-execute-additional-data.d.ts +2 -2
  848. package/dist/workflow-execute-additional-data.js +5 -4
  849. package/dist/workflow-execute-additional-data.js.map +1 -1
  850. package/dist/workflow-helpers.js +1 -9
  851. package/dist/workflow-helpers.js.map +1 -1
  852. package/dist/workflow-runner.js +1 -0
  853. package/dist/workflow-runner.js.map +1 -1
  854. package/dist/workflows/publication/workflow-publication-applier.d.ts +3 -1
  855. package/dist/workflows/publication/workflow-publication-applier.js +10 -2
  856. package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
  857. package/dist/workflows/triggers/non-webhook-trigger-registrar.d.ts +1 -1
  858. package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +1 -1
  859. package/dist/workflows/triggers/trigger-execution-context.factory.js +4 -5
  860. package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
  861. package/dist/workflows/triggers/webhook-trigger-registrar.d.ts +4 -1
  862. package/dist/workflows/triggers/webhook-trigger-registrar.js +36 -9
  863. package/dist/workflows/triggers/webhook-trigger-registrar.js.map +1 -1
  864. package/dist/workflows/triggers/workflow-trigger-activator.d.ts +3 -0
  865. package/dist/workflows/triggers/workflow-trigger-activator.js +66 -32
  866. package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
  867. package/dist/workflows/workflow-creation.service.js +1 -1
  868. package/dist/workflows/workflow-creation.service.js.map +1 -1
  869. package/dist/workflows/workflow-history/workflow-history.service.d.ts +4 -3
  870. package/dist/workflows/workflow-history/workflow-history.service.js +4 -3
  871. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  872. package/dist/workflows/workflow-published-data.service.d.ts +16 -6
  873. package/dist/workflows/workflow-published-data.service.js +42 -2
  874. package/dist/workflows/workflow-published-data.service.js.map +1 -1
  875. package/dist/workflows/workflow-validation.service.js +4 -22
  876. package/dist/workflows/workflow-validation.service.js.map +1 -1
  877. package/dist/workflows/workflow.service.d.ts +2 -2
  878. package/dist/workflows/workflow.service.ee.d.ts +1 -1
  879. package/dist/workflows/workflow.service.ee.js +1 -1
  880. package/dist/workflows/workflow.service.ee.js.map +1 -1
  881. package/dist/workflows/workflow.service.js +7 -7
  882. package/dist/workflows/workflow.service.js.map +1 -1
  883. package/dist/workflows/workflows.controller.d.ts +6 -6
  884. package/dist/workflows/workflows.controller.js +3 -3
  885. package/dist/workflows/workflows.controller.js.map +1 -1
  886. package/package.json +68 -56
  887. package/dist/modules/instance-ai/eval/proxy-loopback.d.ts +0 -1
  888. package/dist/modules/instance-ai/eval/proxy-loopback.js +0 -44
  889. package/dist/modules/instance-ai/eval/proxy-loopback.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildAskCredentialTool = buildAskCredentialTool;
4
+ exports.buildAskEmbeddingCredentialTool = buildAskEmbeddingCredentialTool;
4
5
  const tool_1 = require("@n8n/agents/tool");
5
6
  const api_types_1 = require("@n8n/api-types");
6
7
  function withNodeCredentialMap(input, resume) {
@@ -18,6 +19,22 @@ function withNodeCredentialMap(input, resume) {
18
19
  },
19
20
  };
20
21
  }
22
+ async function resolveCredentialSelection(input, ctx, deps, mapResume) {
23
+ if (ctx.resumeData !== undefined)
24
+ return mapResume(ctx.resumeData);
25
+ if (deps.isCredentialTypeKnown && !deps.isCredentialTypeKnown(input.credentialType)) {
26
+ throw new Error(`Unknown credential type "${input.credentialType}". Use an exact n8n credential type name.`);
27
+ }
28
+ const all = await deps.credentialProvider.list();
29
+ const matching = all.filter((c) => c.type === input.credentialType);
30
+ if (matching.length === 1) {
31
+ return mapResume({
32
+ credentialId: matching[0].id,
33
+ credentialName: matching[0].name,
34
+ });
35
+ }
36
+ return await ctx.suspend(input);
37
+ }
21
38
  function buildAskCredentialTool(deps) {
22
39
  return (new tool_1.Tool(api_types_1.ASK_CREDENTIAL_TOOL_NAME)
23
40
  .description('Show a credential picker card in the chat UI and suspend until the user selects ' +
@@ -30,21 +47,28 @@ function buildAskCredentialTool(deps) {
30
47
  .suspend(api_types_1.askCredentialInputSchema)
31
48
  .resume(api_types_1.askCredentialResumeSchema)
32
49
  .handler(async (input, ctx) => {
33
- if (ctx.resumeData !== undefined)
34
- return withNodeCredentialMap(input, ctx.resumeData);
35
- if (deps.isCredentialTypeKnown && !deps.isCredentialTypeKnown(input.credentialType)) {
36
- throw new Error(`Unknown credential type "${input.credentialType}". Use an exact n8n credential type name.`);
37
- }
38
- const all = await deps.credentialProvider.list();
39
- const matching = all.filter((c) => c.type === input.credentialType);
40
- if (matching.length === 1) {
50
+ return await resolveCredentialSelection(input, ctx, deps, (resume) => withNodeCredentialMap(input, resume));
51
+ })
52
+ .build());
53
+ }
54
+ function buildAskEmbeddingCredentialTool(deps) {
55
+ return new tool_1.Tool(api_types_1.ASK_EMBEDDING_CREDENTIAL_TOOL_NAME)
56
+ .description('Resolve the OpenAI embedding credential for Episodic Memory. Tries to resolve n8n managed credential. Otherwise behaves ' +
57
+ 'like ask_credential: show a credential picker card in the chat UI and suspend until ' +
58
+ 'the user selects a credential. Returns { credentialId, credentialName, credentials } ' +
59
+ 'on success or { skipped: true } if the user skips credential setup.')
60
+ .input(api_types_1.askCredentialInputSchema)
61
+ .suspend(api_types_1.askCredentialInputSchema)
62
+ .resume(api_types_1.askCredentialResumeSchema)
63
+ .handler(async (input, ctx) => {
64
+ if (deps.isAssistantProxyEnabled()) {
41
65
  return withNodeCredentialMap(input, {
42
- credentialId: matching[0].id,
43
- credentialName: matching[0].name,
66
+ credentialId: api_types_1.MANAGED_CREDENTIAL_TOKEN,
67
+ credentialName: 'Managed by n8n',
44
68
  });
45
69
  }
46
- return await ctx.suspend(input);
70
+ return await resolveCredentialSelection(input, ctx, deps, (resume) => withNodeCredentialMap(input, resume));
47
71
  })
48
- .build());
72
+ .build();
49
73
  }
50
74
  //# sourceMappingURL=ask-credential.tool.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ask-credential.tool.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/ask-credential.tool.ts"],"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AC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,cAAc,CAAC,CAAC;QACpE,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,OAAO,qBAAqB,CAAC,KAAK,EAAE;gBACnC,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;gBAC5B,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;aAChC,CAAC,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CACD;SACA,KAAK,EAAE,CACT,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"ask-credential.tool.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/ask-credential.tool.ts"],"names":[],"mappings":";;AA0EA,wDA4BC;AAED,0EA4BC;AAnID,2CAAwC;AACxC,8CAQwB;AAmBxB,SAAS,qBAAqB,CAC7B,KAAyB,EACzB,MAA2B;IAE3B,IAAI,SAAS,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAEvC,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,cAAc,CAAC;IACpE,OAAO;QACN,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,cAAc,EAAE,MAAM,CAAC,cAAc;QACrC,WAAW,EAAE;YACZ,CAAC,cAAc,CAAC,EAAE;gBACjB,EAAE,EAAE,MAAM,CAAC,YAAY;gBACvB,IAAI,EAAE,MAAM,CAAC,cAAc;aAC3B;SACD;KACD,CAAC;AACH,CAAC;AAED,KAAK,UAAU,0BAA0B,CACxC,KAAyB,EACzB,GAAsE,EACtE,IAA2B,EAC3B,SAAmD;IAEnD,IAAI,GAAG,CAAC,UAAU,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACnE,IAAI,IAAI,CAAC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,+BAA+B,CAAC,IAAoC;IACnF,OAAO,IAAI,WAAI,CAAC,8CAAkC,CAAC;SACjD,WAAW,CACX,0HAA0H;QACzH,sFAAsF;QACtF,uFAAuF;QACvF,qEAAqE,CACtE;SACA,KAAK,CAAC,oCAAwB,CAAC;SAC/B,OAAO,CAAC,oCAAwB,CAAC;SACjC,MAAM,CAAC,qCAAyB,CAAC;SACjC,OAAO,CACP,KAAK,EACJ,KAAyB,EACzB,GAAsE,EACnC,EAAE;QACrC,IAAI,IAAI,CAAC,uBAAuB,EAAE,EAAE,CAAC;YACpC,OAAO,qBAAqB,CAAC,KAAK,EAAE;gBACnC,YAAY,EAAE,oCAAwB;gBACtC,cAAc,EAAE,gBAAgB;aAChC,CAAC,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,0BAA0B,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CACpE,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC,CACpC,CAAC;IACH,CAAC,CACD;SACA,KAAK,EAAE,CAAC;AACX,CAAC"}
@@ -6,9 +6,7 @@ const api_types_1 = require("@n8n/api-types");
6
6
  function buildAskLlmTool() {
7
7
  return new tool_1.Tool(api_types_1.ASK_LLM_TOOL_NAME)
8
8
  .description('Show a model + credential picker card in the chat UI and suspend until the user ' +
9
- 'selects a provider, model and credential. Use only when resolve_llm returns an ' +
10
- 'ambiguous result, when credentials are missing and the user must choose/configure one, ' +
11
- 'or when the user explicitly asks to pick/change the model. ' +
9
+ 'selects a provider, model and credential. ' +
12
10
  'After resume: set model = "{provider}/{model}" and credential = credentialId ' +
13
11
  'via write_config or patch_config.')
14
12
  .systemInstruction('Never ask the user in plain text to choose, confirm, configure, or change the agent ' +
@@ -1 +1 @@
1
- {"version":3,"file":"ask-llm.tool.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/ask-llm.tool.ts"],"names":[],"mappings":";;AAUA,0CAyBC;AAnCD,2CAAwC;AAExC,8CAMwB;AAExB,SAAgB,eAAe;IAC9B,OAAO,IAAI,WAAI,CAAC,6BAAiB,CAAC;SAChC,WAAW,CACX,kFAAkF;QACjF,iFAAiF;QACjF,yFAAyF;QACzF,6DAA6D;QAC7D,+EAA+E;QAC/E,mCAAmC,CACpC;SACA,iBAAiB,CACjB,sFAAsF;QACrF,oFAAoF;QACpF,mDAAmD,CACpD;SACA,KAAK,CAAC,6BAAiB,CAAC;SACxB,OAAO,CAAC,6BAAiB,CAAC;SAC1B,MAAM,CAAC,8BAAkB,CAAC;SAC1B,OAAO,CACP,KAAK,EAAE,KAAkB,EAAE,GAAwD,EAAE,EAAE;QACtF,IAAI,GAAG,CAAC,UAAU,KAAK,SAAS;YAAE,OAAO,GAAG,CAAC,UAAU,CAAC;QACxD,OAAO,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CACD;SACA,KAAK,EAAE,CAAC;AACX,CAAC"}
1
+ {"version":3,"file":"ask-llm.tool.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/ask-llm.tool.ts"],"names":[],"mappings":";;AAUA,0CAuBC;AAhCD,2CAAwC;AACxC,8CAMwB;AAExB,SAAgB,eAAe;IAC9B,OAAO,IAAI,WAAI,CAAC,6BAAiB,CAAC;SAChC,WAAW,CACX,kFAAkF;QACjF,4CAA4C;QAC5C,+EAA+E;QAC/E,mCAAmC,CACpC;SACA,iBAAiB,CACjB,sFAAsF;QACrF,oFAAoF;QACpF,mDAAmD,CACpD;SACA,KAAK,CAAC,6BAAiB,CAAC;SACxB,OAAO,CAAC,6BAAiB,CAAC;SAC1B,MAAM,CAAC,8BAAkB,CAAC;SAC1B,OAAO,CACP,KAAK,EAAE,KAAkB,EAAE,GAAwD,EAAE,EAAE;QACtF,IAAI,GAAG,CAAC,UAAU,KAAK,SAAS;YAAE,OAAO,GAAG,CAAC,UAAU,CAAC;QACxD,OAAO,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CACD;SACA,KAAK,EAAE,CAAC;AACX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ask-question.tool.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/ask-question.tool.ts"],"names":[],"mappings":";;AAUA,oDA+BC;AAzCD,2CAAwC;AAExC,8CAMwB;AAExB,SAAgB,oBAAoB;IACnC,OAAO,IAAI,WAAI,CAAC,kCAAsB,CAAC;SACrC,WAAW,CACX,mFAAmF;QAClF,mFAAmF;QACnF,mFAAmF;QACnF,qFAAqF;QACrF,mFAAmF;QACnF,8CAA8C,CAC/C;SACA,KAAK,CAAC,kCAAsB,CAAC;SAC7B,OAAO,CAAC,kCAAsB,CAAC;SAC/B,MAAM,CAAC,mCAAuB,CAAC;SAC/B,OAAO,CACP,KAAK,EACJ,KAAuB,EACvB,GAAkE,EACjE,EAAE;QACH,IAAI,GAAG,CAAC,UAAU,KAAK,SAAS;YAAE,OAAO,GAAG,CAAC,UAAU,CAAC;QAMxD,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,KAAK,IAAI,EAAE,CAAC;YAChE,OAAO,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7C,CAAC;QACD,OAAO,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CACD;SACA,KAAK,EAAE,CAAC;AACX,CAAC"}
1
+ {"version":3,"file":"ask-question.tool.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/ask-question.tool.ts"],"names":[],"mappings":";;AAUA,oDA+BC;AAxCD,2CAAwC;AACxC,8CAMwB;AAExB,SAAgB,oBAAoB;IACnC,OAAO,IAAI,WAAI,CAAC,kCAAsB,CAAC;SACrC,WAAW,CACX,mFAAmF;QAClF,mFAAmF;QACnF,mFAAmF;QACnF,qFAAqF;QACrF,mFAAmF;QACnF,8CAA8C,CAC/C;SACA,KAAK,CAAC,kCAAsB,CAAC;SAC7B,OAAO,CAAC,kCAAsB,CAAC;SAC/B,MAAM,CAAC,mCAAuB,CAAC;SAC/B,OAAO,CACP,KAAK,EACJ,KAAuB,EACvB,GAAkE,EACjE,EAAE;QACH,IAAI,GAAG,CAAC,UAAU,KAAK,SAAS;YAAE,OAAO,GAAG,CAAC,UAAU,CAAC;QAMxD,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,KAAK,IAAI,EAAE,CAAC;YAChE,OAAO,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7C,CAAC;QACD,OAAO,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CACD;SACA,KAAK,EAAE,CAAC;AACX,CAAC"}
@@ -1,4 +1,4 @@
1
- export { buildAskCredentialTool } from './ask-credential.tool';
1
+ export { buildAskCredentialTool, buildAskEmbeddingCredentialTool } from './ask-credential.tool';
2
2
  export { buildAskLlmTool } from './ask-llm.tool';
3
3
  export { buildAskQuestionTool } from './ask-question.tool';
4
4
  export { buildResolveLlmTool } from './resolve-llm.tool';
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildResolveLlmTool = exports.buildAskQuestionTool = exports.buildAskLlmTool = exports.buildAskCredentialTool = void 0;
3
+ exports.buildResolveLlmTool = exports.buildAskQuestionTool = exports.buildAskLlmTool = exports.buildAskEmbeddingCredentialTool = exports.buildAskCredentialTool = void 0;
4
4
  var ask_credential_tool_1 = require("./ask-credential.tool");
5
5
  Object.defineProperty(exports, "buildAskCredentialTool", { enumerable: true, get: function () { return ask_credential_tool_1.buildAskCredentialTool; } });
6
+ Object.defineProperty(exports, "buildAskEmbeddingCredentialTool", { enumerable: true, get: function () { return ask_credential_tool_1.buildAskEmbeddingCredentialTool; } });
6
7
  var ask_llm_tool_1 = require("./ask-llm.tool");
7
8
  Object.defineProperty(exports, "buildAskLlmTool", { enumerable: true, get: function () { return ask_llm_tool_1.buildAskLlmTool; } });
8
9
  var ask_question_tool_1 = require("./ask-question.tool");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/index.ts"],"names":[],"mappings":";;;AAAA,6DAA+D;AAAtD,6HAAA,sBAAsB,OAAA;AAC/B,+CAAiD;AAAxC,+GAAA,eAAe,OAAA;AACxB,yDAA2D;AAAlD,yHAAA,oBAAoB,OAAA;AAC7B,uDAAyD;AAAhD,uHAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/index.ts"],"names":[],"mappings":";;;AAAA,6DAAgG;AAAvF,6HAAA,sBAAsB,OAAA;AAAE,sIAAA,+BAA+B,OAAA;AAChE,+CAAiD;AAAxC,+GAAA,eAAe,OAAA;AACxB,yDAA2D;AAAlD,yHAAA,oBAAoB,OAAA;AAC7B,uDAAyD;AAAhD,uHAAA,mBAAmB,OAAA"}
@@ -14,7 +14,7 @@ exports.LLM_PROVIDER_DEFAULTS = {
14
14
  },
15
15
  openAiApi: {
16
16
  provider: 'openai',
17
- defaultModel: 'gpt-5',
17
+ defaultModel: 'gpt-5-mini',
18
18
  modelLookup: {
19
19
  kind: 'listSearch',
20
20
  nodeType: '@n8n/n8n-nodes-langchain.lmChatOpenAi',
@@ -1 +1 @@
1
- {"version":3,"file":"llm-provider-defaults.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/llm-provider-defaults.ts"],"names":[],"mappings":";;;AAsCa,QAAA,qBAAqB,GAAuC;IACxE,YAAY,EAAE;QACb,QAAQ,EAAE,WAAW;QACrB,YAAY,EAAE,mBAAmB;QACjC,WAAW,EAAE;YACZ,IAAI,EAAE,YA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QAClB,YAAY,EAAE,wCAAwC;QACtD,WAAW,EAAE;YACZ,IAAI,EAAE,oBAAoB;YAC1B,QAAQ,EAAE,uCAAuC;YACjD,OAAO,EAAE,CAAC;YACV,YAAY,EAAE,OAAO;SACrB;KACD;CACD,CAAC"}
1
+ {"version":3,"file":"llm-provider-defaults.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/llm-provider-defaults.ts"],"names":[],"mappings":";;;AAsCa,QAAA,qBAAqB,GAAuC;IACxE,YAAY,EAAE;QACb,QAAQ,EAAE,WAAW;QACrB,YAAY,EAAE,mBAAmB;QACjC,WAAW,EAAE;YACZ,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE,0CAA0C;YACpD,OAAO,EAAE,GAAG;YACZ,UAAU,EAAE,cAAc;SAC1B;KACD;IACD,SAAS,EAAE;QACV,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,YAAY;QAC1B,WAAW,EAAE;YACZ,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE,uCAAuC;YACjD,OAAO,EAAE,GAAG;YACZ,UAAU,EAAE,cAAc;SAC1B;KACD;IACD,aAAa,EAAE;QACd,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,gBAAgB;QAC9B,WAAW,EAAE;YACZ,IAAI,EAAE,oBAAoB;YAC1B,QAAQ,EAAE,6CAA6C;YACvD,OAAO,EAAE,GAAG;YACZ,YAAY,EAAE,WAAW;SACzB;KACD;IACD,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE;IACnD,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,yBAAyB,EAAE;IACtE,eAAe,EAAE;QAChB,QAAQ,EAAE,SAAS;QACnB,YAAY,EAAE,sBAAsB;QACpC,WAAW,EAAE;YACZ,IAAI,EAAE,oBAAoB;YAC1B,QAAQ,EAAE,6CAA6C;YACvD,OAAO,EAAE,CAAC;YACV,YAAY,EAAE,OAAO;SACrB;KACD;IACD,WAAW,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAE;IACpE,SAAS,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,gBAAgB,EAAE;IACjE,aAAa,EAAE;QACd,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,6BAA6B;QAC3C,WAAW,EAAE;YACZ,IAAI,EAAE,oBAAoB;YAC1B,QAAQ,EAAE,2CAA2C;YACrD,OAAO,EAAE,CAAC;YACV,YAAY,EAAE,OAAO;SACrB;KACD;IACD,SAAS,EAAE;QACV,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,wCAAwC;QACtD,WAAW,EAAE;YACZ,IAAI,EAAE,oBAAoB;YAC1B,QAAQ,EAAE,uCAAuC;YACjD,OAAO,EAAE,CAAC;YACV,YAAY,EAAE,OAAO;SACrB;KACD;CACD,CAAC"}
@@ -55,8 +55,9 @@ async function resolveModelAgainstLookup(credential, defaults, requestedModel, m
55
55
  }
56
56
  function buildResolveLlmTool(deps) {
57
57
  return new tool_1.Tool(builder_tool_names_1.BUILDER_TOOLS.RESOLVE_LLM)
58
- .description('Resolve the agent main LLM without showing a picker. Use this when the user ' +
59
- 'explicitly requests a provider/model, or when a fresh agent needs its main LLM set. ' +
58
+ .description('Resolve the agent main LLM without showing a picker. ' +
59
+ 'Only call this when the user explicitly names a provider or model do NOT call it ' +
60
+ 'at the start of a conversation or proactively for fresh agents. ' +
60
61
  'If provider is given, resolves only that provider; if model is omitted, uses the ' +
61
62
  'provider default model. For "Anthropic via OpenRouter", pass provider="openrouter" ' +
62
63
  'and omit model unless the user named a concrete OpenRouter model id. Returns ok=false ' +
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-llm.tool.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/resolve-llm.tool.ts"],"names":[],"mappings":";;AA6FA,kDAiGC;AA9LD,2CAAwC;AAExC,6BAAwB;AAExB,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,EAAE;gBAC9C,MAAM,QAAQ,GAAG,6CAAqB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACxD,OAAO;oBACN,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,IAAI,EAAE,UAAU,CAAC,IAAI;oBACrB,IAAI,EAAE,UAAU,CAAC,IAAI;oBACrB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;iBAC3B,CAAC;YACH,CAAC,CAAC;SACF,CAAC;IACH,CAAC,CAAC;SACD,KAAK,EAAE,CAAC;AACX,CAAC"}
1
+ {"version":3,"file":"resolve-llm.tool.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/interactive/resolve-llm.tool.ts"],"names":[],"mappings":";;AA6FA,kDAkGC;AA9LD,2CAAwC;AACxC,6BAAwB;AAExB,8DAAsD;AACtD,mEAIiC;AAiBjC,SAAS,mBAAmB,CAAC,QAAgB;IAC5C,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC1C,OAAO,MAAM,CAAC,OAAO,CAAC,6CAAqB,CAAC,CAAC,IAAI,CAChD,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,KAAK,iBAAiB,CACzD,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CACvB,UAA8B,EAC9B,QAA4B,EAC5B,KAAc;IAEd,OAAO;QACN,EAAE,EAAE,IAAa;QACjB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,QAAQ,CAAC,YAAY;QAC7C,YAAY,EAAE,UAAU,CAAC,EAAE;QAC3B,cAAc,EAAE,UAAU,CAAC,IAAI;KAC/B,CAAC;AACH,CAAC;AAED,KAAK,UAAU,yBAAyB,CACvC,UAA8B,EAC9B,QAA4B,EAC5B,cAAsB,EACtB,WAAwB;IAExB,MAAM,YAAY,GAAG,cAAc,CAAC,IAAI,EAAE,CAAC;IAC3C,IA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CAAC,CAAC;YACrC,MAAM,QAAQ,GAAG,6CAAqB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YACxD,IAAI,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC;gBACnB,OAAO,MAAM,yBAAyB,CAAC,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;YACvF,CAAC;YACD,OAAO,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC9C,CAAC;QAED,OAAO;YACN,EAAE,EAAE,KAAc;YAClB,MAAM,EACL,cAAc,CAAC,MAAM,KAAK,CAAC;gBAC1B,CAAC,CAAE,oBAA8B;gBACjC,CAAC,CAAE,kCAA4C;YACjD,WAAW,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;gBAC9C,MAAM,QAAQ,GAAG,6CAAqB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACxD,OAAO;oBACN,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,IAAI,EAAE,UAAU,CAAC,IAAI;oBACrB,IAAI,EAAE,UAAU,CAAC,IAAI;oBACrB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;iBAC3B,CAAC;YACH,CAAC,CAAC;SACF,CAAC;IACH,CAAC,CAAC;SACD,KAAK,EAAE,CAAC;AACX,CAAC"}
@@ -31,7 +31,7 @@ ${(0, config_rules_prompt_1.getSchemaReferenceSection)()}
31
31
  - Follow the Config schema reference exactly; do not invent top-level fields.
32
32
  - Keep each feature in the schema path where it belongs.
33
33
  - Preserve unrelated existing config unless the user asked to change it.
34
- - Never write placeholder instructions or descriptions.
34
+ - Never write placeholder instructions, tool descriptions, or skill descriptions.
35
35
  - Never copy credential IDs from \`list_credentials\`; use \`resolve_llm\`, \`ask_llm\`, or \`ask_credential\`.
36
36
  - Valid provider tool keys are complete provider tool IDs documented in the Tool Guidance section.
37
37
  - \`providerTools\` keys must be complete provider tool IDs from the valid key list.
@@ -40,15 +40,13 @@ ${(0, config_rules_prompt_1.getSchemaReferenceSection)()}
40
40
 
41
41
  #### Create Or Replace A Fresh Runnable Agent
42
42
 
43
- - Requires \`name\`, \`description\`, \`model\`, \`credential\`, and \`instructions\`.
44
- - \`description\` must be a brief, specific summary of what the agent does.
43
+ - Requires \`name\`, \`model\`, \`credential\`, and \`instructions\`.
45
44
  - Keep \`tools\` and \`skills\` arrays if present.
46
45
 
47
46
  Good minimal shape:
48
47
  \`\`\`json
49
48
  {
50
49
  "name": "Support assistant",
51
- "description": "Answers support questions and helps triage customer issues.",
52
50
  "model": "openrouter/openai/gpt-5.5",
53
51
  "credential": "<main-llm-credential-id>",
54
52
  "instructions": "Help the user with support questions.",
@@ -128,7 +126,7 @@ Bad: replacing \`config\` while dropping unrelated settings
128
126
  - \`patch_config\` cannot create a config when none exists; use \`write_config\` first.
129
127
  - \`/array/-\` appends to an array; \`/array/0\` inserts before the current first item.
130
128
  - Model-only changes must preserve existing Brave or SearXNG \`config.webSearch\`.
131
- - Empty, placeholder, or guessed \`instructions\` or \`description\` values are rejected; ask for details instead.
129
+ - Empty, placeholder, or guessed \`instructions\` values are rejected; ask for details instead.
132
130
 
133
131
  ### Verify
134
132
 
@@ -1 +1 @@
1
- {"version":3,"file":"config-mutation.prompt.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/prompts/config-mutation.prompt.ts"],"names":[],"mappings":";;AAEA,0DA+IC;AAjJD,+DAAyF;AAEzF,SAAgB,uBAAuB;IACtC,OAAO;;;;;;;;;;;;;;;;;;;;;EAqBN,IAAA,2CAAqB,GAAE;;EAEvB,IAAA,+CAAyB,GAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAsH+C,CAAC;AAC7E,CAAC"}
1
+ {"version":3,"file":"config-mutation.prompt.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/prompts/config-mutation.prompt.ts"],"names":[],"mappings":";;AAEA,0DA6IC;AA/ID,+DAAyF;AAEzF,SAAgB,uBAAuB;IACtC,OAAO;;;;;;;;;;;;;;;;;;;;;EAqBN,IAAA,2CAAqB,GAAE;;EAEvB,IAAA,+CAAyB,GAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAoH+C,CAAC;AAC7E,CAAC"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getConfigRulesSection = getConfigRulesSection;
4
4
  exports.getSchemaReferenceSection = getSchemaReferenceSection;
5
+ const api_types_1 = require("@n8n/api-types");
5
6
  const zod_1 = require("zod");
6
7
  const zod_to_json_schema_1 = require("zod-to-json-schema");
7
- const api_types_1 = require("@n8n/api-types");
8
8
  const schema_text_serializer_1 = require("../../json-config/schema-text-serializer");
9
9
  const BuilderPromptMemoryWorkerModelSchema = zod_1.z.object({
10
10
  model: api_types_1.AgentModelSchema,
@@ -48,14 +48,12 @@ function getConfigRulesSection() {
48
48
 
49
49
  - \`model\` must be "provider/model-name".
50
50
  - \`credential\` must be the id returned by \`resolve_llm\` or \`ask_llm\`.
51
- - Fresh agents must include a brief \`description\` explaining what the agent
52
- does. Keep it specific and user-facing; never write placeholder copy.
53
51
  - Fresh agents must include
54
52
  \`memory: { "enabled": true, "storage": "n8n" }\`
55
53
  unless the user explicitly asks to disable memory.
56
54
  - \`memory.storage\` must be "n8n".
57
- - \`memory.episodicMemory\` requires \`ask_credential\` with
58
- \`credentialType: "openAiApi"\`.
55
+ - \`memory.episodicMemory\` requires \`ask_embedding_credential\` with
56
+ \`credentialType: "openAiApi"\`; use its returned \`credentialId\` value.
59
57
  - Memory worker model fields use \`{ "model": "provider/model-name", "credential": "<credentialId>" }\`;
60
58
  use only credential IDs returned by \`resolve_llm\`, \`ask_llm\`, or \`ask_credential\`.
61
59
  - Sub-agent configuration lives at top level under \`subAgents\`. Load
@@ -71,7 +69,7 @@ function getConfigRulesSection() {
71
69
  - Preserve existing Brave/SearXNG \`config.webSearch\` on model switches unless
72
70
  the user explicitly asks to change web-search method.
73
71
  - \`config.maxIterations\` caps the number of agent loop iterations per run. Do not set or change this unless the user explicitly asks.
74
- - Fresh agents need a real model, credential, description, and instructions
72
+ - Fresh agents need a real model, credential, and instructions
75
73
  before config is written.`;
76
74
  }
77
75
  function getSchemaReferenceSection() {
@@ -1 +1 @@
1
- {"version":3,"file":"config-rules.prompt.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/prompts/config-rules.prompt.ts"],"names":[],"mappings":";;AAgDA,sDA+BC;AAED,8DASC;AAxFD,6BAAwB;AACxB,2DAAqD;AAErD,8CAAiF;AAEjF,qFAAmF;AAEnF,MAAM,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,KAAK,EAAE,4BAAgB;IACvB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACzB,mBAAmB,EAAE,OAAC;SACpB,MAAM,CAAC;QACP,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC/B,aAAa,EAAE,oCAAoC,CAAC,QAAQ,EAAE;QAC9D,cAAc,EAAE,oCAAoC,CAAC,QAAQ,EAAE;QAC/D,uBAAuB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC3D,wBAAwB,E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G,yCAA6B,CAAC,MAAM,CAAC;IAC/E,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,SAAgB,qBAAqB;IACpC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA6BoB,CAAC;AAC7B,CAAC;AAED,SAAgB,yBAAyB;IACxC,MAAM,SAAS,GAA2B,kCAAkC,CAAC;IAC7E,MAAM,cAAc,GAAG,IAAA,gDAAuB,EAAC,IAAA,oCAAe,EAAC,SAAS,CAAgB,CAAC,CAAC;IAC1F,OAAO;;;;EAIN,cAAc;OACT,CAAC;AACR,CAAC"}
1
+ {"version":3,"file":"config-rules.prompt.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/prompts/config-rules.prompt.ts"],"names":[],"mappings":";;AA+CA,sDA6BC;AAED,8DASC;AAvFD,8CAAiF;AAGjF,6BAAwB;AACxB,2DAAqD;AAErD,qFAAmF;AAEnF,MAAM,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,KAAK,EAAE,4BAAgB;IACvB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACzB,mBAAmB,EAAE,OAAC;SACpB,MAAM,CAAC;QACP,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC/B,aAAa,EAAE,oCAAoC,CAAC,QAAQ,EAAE;QAC9D,cAAc,EAAE,oCAAoC,CAAC,QAAQ,EAAE;QAC/D,uBAAuB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC3D,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AAkC,GAAG,yCAA6B,CAAC,MAAM,CAAC;IAC/E,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,SAAgB,qBAAqB;IACpC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA2BoB,CAAC;AAC7B,CAAC;AAED,SAAgB,yBAAyB;IACxC,MAAM,SAAS,GAA2B,kCAAkC,CAAC;IAC7E,MAAM,cAAc,GAAG,IAAA,gDAAuB,EAAC,IAAA,oCAAe,EAAC,SAAS,CAAgB,CAAC,CAAC;IAC1F,OAAO;;;;EAIN,cAAc;OACT,CAAC;AACR,CAAC"}
@@ -14,7 +14,7 @@ Use this to resolve the target agent's main \`model\` and \`credential\`.
14
14
 
15
15
  ### Workflow
16
16
 
17
- 1. Use \`resolve_llm\` before \`ask_llm\` when the request contains enough provider/model detail.
17
+ 1. Use \`resolve_llm\` when the request contains enough provider/model detail, otherwise call \`ask_llm\`.
18
18
  2. If \`resolve_llm\` succeeds, persist \`model = "{provider}/{model}"\` and \`credential = credentialId\`.
19
19
  3. If the user asks to pick, change, confirm, or configure a model or main credential, call \`ask_llm\`; do not ask in prose.
20
20
  4. If \`resolve_llm\` reports missing or ambiguous credentials/provider, call \`ask_llm\`.
@@ -1 +1 @@
1
- export declare const MEMORY_PROMPT = "## Memory Guidance\n\n### Purpose\n\nUse this to configure the target agent's memory behavior.\n\n### Workflow\n\nFresh agents must include this default memory config unless the user explicitly asks to disable or change memory:\n```json\n{\n \"enabled\": true,\n \"storage\": \"n8n\",\n \"observationalMemory\": {\n \"enabled\": true\n }\n}\n```\n\nThis is the configurable agent's session memory. The runtime-managed\n`observationalMemory` settings tune that memory behavior; they are not a\nseparate user-facing memory product.\n\n### Rules\n\n- When creating a new agent, always write the exact default `memory` object above.\n- Set `storage` to \"n8n\".\n- Set `observationalMemory.enabled` to `true` for new agents unless the user explicitly asks to disable observational memory.\n- Keep the rest of `observationalMemory` optional; add tuning fields only for explicit tuning or disabling.\n- Supported observational memory tuning fields: `enabled`, `observerModel`, `reflectorModel`, `observerThresholdTokens`, `reflectorThresholdTokens`, `renderTokenBudget`, `observationLogTailLimit`, and `lockTtlMs`.\n- Memory worker model fields must use object shape: `{ \"model\": \"provider/model-name\", \"credential\": \"<credentialId>\" }`.\n- Only set `observerModel`, `reflectorModel`, `extractorModel`, or `episodicMemory.reflectorModel` when the user explicitly asks to use a specific model for memory work.\n- Use only credential IDs returned by `resolve_llm`, `ask_llm`, or `ask_credential` for memory worker model fields. Do not invent IDs or copy a main-model credential unless one of those tools returned it for that worker model provider.\n\n### Episodic Memory\n\n- Enable `memory.episodicMemory` only when the user asks for Episodic Memory, long-term memory, prior conversations, remembered decisions, exact artifacts, or cross-session memory.\n- Before enabling it, call `ask_credential({ credentialType: \"openAiApi\", purpose: \"OpenAI credential for Episodic Memory embeddings\" })`.\n- On success, set `memory.episodicMemory = { \"enabled\": true, \"credential\": \"<credentialId>\" }` and preserve existing `topK` or `maxEntriesPerRun`.\n- `memory.episodicMemory.credential` is only for OpenAI embeddings. It is separate from optional `extractorModel` and `reflectorModel` worker credentials.\n- If credential selection is skipped, do not enable Episodic Memory; explain that it needs an OpenAI credential for embeddings.\n- Do not add instructions saying the agent should remember, store, save, or decide what context matters. The runtime handles memory extraction and indexing.\n- If instructions mention Episodic Memory, phrase it as retrieval/use only, e.g. \"Use recalled prior context when relevant to the user's request.\"\n- Do not invent Episodic Memory credential IDs or reuse the main model credential unless `ask_credential` returned it for this purpose.\n\n### Gotchas\n\n- Session memory and Episodic Memory are different features; do not use one as a substitute for the other.\n- Observational memory is runtime-managed session memory behavior; do not add target-agent instructions telling it how to save observations.\n- A skipped Episodic Memory credential means Episodic Memory stays disabled.\n\n### Verify\n\n- Fresh runnable agents have enabled n8n memory unless explicitly disabled.\n- Fresh runnable agents set `observationalMemory.enabled` to `true` unless explicitly disabled.\n- Episodic Memory has an OpenAI credential returned by `ask_credential`.\n- Existing memory tuning is preserved unless the user asked to change it.";
1
+ export declare const MEMORY_PROMPT = "## Memory Guidance\n\n### Purpose\n\nUse this to configure the target agent's memory behavior.\n\n### Workflow\n\nFresh agents must include this default memory config unless the user explicitly asks to disable or change memory:\n```json\n{\n \"enabled\": true,\n \"storage\": \"n8n\",\n \"observationalMemory\": {\n \"enabled\": true\n }\n}\n```\n\nThis is the configurable agent's session memory. The runtime-managed\n`observationalMemory` settings tune that memory behavior; they are not a\nseparate user-facing memory product.\n\n### Rules\n\n- When creating a new agent, always write the exact default `memory` object above.\n- Set `storage` to \"n8n\".\n- Set `observationalMemory.enabled` to `true` for new agents unless the user explicitly asks to disable observational memory.\n- Keep the rest of `observationalMemory` optional; add tuning fields only for explicit tuning or disabling.\n- Supported observational memory tuning fields: `enabled`, `observerModel`, `reflectorModel`, `observerThresholdTokens`, `reflectorThresholdTokens`, `renderTokenBudget`, `observationLogTailLimit`, and `lockTtlMs`.\n- Memory worker model fields must use object shape: `{ \"model\": \"provider/model-name\", \"credential\": \"<credentialId>\" }`.\n- Only set `observerModel`, `reflectorModel`, `extractorModel`, or `episodicMemory.reflectorModel` when the user explicitly asks to use a specific model for memory work.\n- Use only credential IDs returned by `resolve_llm`, `ask_llm`, or `ask_credential` for memory worker model fields. Do not invent IDs or copy a main-model credential unless one of those tools returned it for that worker model provider.\n\n### Episodic Memory\n\n- Enable `memory.episodicMemory` only when the user asks for Episodic Memory, long-term memory, prior conversations, remembered decisions, exact artifacts, or cross-session memory.\n- Before enabling it, call `ask_embedding_credential({ credentialType: \"openAiApi\", purpose: \"OpenAI credential for Episodic Memory embeddings\" })`.\n- On success, set `memory.episodicMemory = { \"enabled\": true, \"credential\": \"<credentialId>\" }`, using the returned `credentialId` value. This can be a real credential id or `\"managed\"` when the assistant proxy is available. Preserve existing `topK` or `maxEntriesPerRun`.\n- `memory.episodicMemory.credential` is only for OpenAI embeddings. It is separate from optional `extractorModel` and `reflectorModel` worker credentials.\n- If credential selection is skipped, do not enable Episodic Memory; explain that it needs an OpenAI credential for embeddings.\n- Do not add instructions saying the agent should remember, store, save, or decide what context matters. The runtime handles memory extraction and indexing.\n- If instructions mention Episodic Memory, phrase it as retrieval/use only, e.g. \"Use recalled prior context when relevant to the user's request.\"\n- Do not invent Episodic Memory credential IDs or reuse the main model credential unless `ask_embedding_credential` returned it for this purpose.\n\n### Gotchas\n\n- Session memory and Episodic Memory are different features; do not use one as a substitute for the other.\n- Observational memory is runtime-managed session memory behavior; do not add target-agent instructions telling it how to save observations.\n- A skipped Episodic Memory credential means Episodic Memory stays disabled.\n\n### Verify\n\n- Fresh runnable agents have enabled n8n memory unless explicitly disabled.\n- Fresh runnable agents set `observationalMemory.enabled` to `true` unless explicitly disabled.\n- Episodic Memory has an OpenAI credential or `\"managed\"` returned by `ask_embedding_credential`.\n- Existing memory tuning is preserved unless the user asked to change it.";
@@ -39,13 +39,13 @@ separate user-facing memory product.
39
39
  ### Episodic Memory
40
40
 
41
41
  - Enable \`memory.episodicMemory\` only when the user asks for Episodic Memory, long-term memory, prior conversations, remembered decisions, exact artifacts, or cross-session memory.
42
- - Before enabling it, call \`ask_credential({ credentialType: "openAiApi", purpose: "OpenAI credential for Episodic Memory embeddings" })\`.
43
- - On success, set \`memory.episodicMemory = { "enabled": true, "credential": "<credentialId>" }\` and preserve existing \`topK\` or \`maxEntriesPerRun\`.
42
+ - Before enabling it, call \`ask_embedding_credential({ credentialType: "openAiApi", purpose: "OpenAI credential for Episodic Memory embeddings" })\`.
43
+ - On success, set \`memory.episodicMemory = { "enabled": true, "credential": "<credentialId>" }\`, using the returned \`credentialId\` value. This can be a real credential id or \`"managed"\` when the assistant proxy is available. Preserve existing \`topK\` or \`maxEntriesPerRun\`.
44
44
  - \`memory.episodicMemory.credential\` is only for OpenAI embeddings. It is separate from optional \`extractorModel\` and \`reflectorModel\` worker credentials.
45
45
  - If credential selection is skipped, do not enable Episodic Memory; explain that it needs an OpenAI credential for embeddings.
46
46
  - Do not add instructions saying the agent should remember, store, save, or decide what context matters. The runtime handles memory extraction and indexing.
47
47
  - If instructions mention Episodic Memory, phrase it as retrieval/use only, e.g. "Use recalled prior context when relevant to the user's request."
48
- - Do not invent Episodic Memory credential IDs or reuse the main model credential unless \`ask_credential\` returned it for this purpose.
48
+ - Do not invent Episodic Memory credential IDs or reuse the main model credential unless \`ask_embedding_credential\` returned it for this purpose.
49
49
 
50
50
  ### Gotchas
51
51
 
@@ -57,6 +57,6 @@ separate user-facing memory product.
57
57
 
58
58
  - Fresh runnable agents have enabled n8n memory unless explicitly disabled.
59
59
  - Fresh runnable agents set \`observationalMemory.enabled\` to \`true\` unless explicitly disabled.
60
- - Episodic Memory has an OpenAI credential returned by \`ask_credential\`.
60
+ - Episodic Memory has an OpenAI credential or \`"managed"\` returned by \`ask_embedding_credential\`.
61
61
  - Existing memory tuning is preserved unless the user asked to change it.`;
62
62
  //# sourceMappingURL=memory.prompt.js.map
@@ -1 +1 @@
1
- export declare const TOOLS_PROMPT = "## Tool Guidance\n\n### Purpose\n\nUse this to give the target agent callable capabilities through workflows,\nnodes, custom code tools, or provider tools.\n\n### Workflow\n\nUse this guidance before calling `search_nodes`, `get_node_types`, `build_custom_tool`,\nor adding, changing, or removing entries in `tools[]` / `providerTools`.\n\nCustom tools are for pure computation, validation, formatting, or planning logic;\nthey cannot perform live network, filesystem, process, timer, or host I/O.\n\nIf a product also has a target-agent integration, use node/workflow tools when\nthe product is only an API capability and the conversation or trigger happens\nelsewhere. Use the integration only when that product is the chat/trigger\nsurface or the agent needs the current platform conversation context. For\nexample, use Linear node tools for ordinary issue search/create/update when\nthe agent is triggered from Slack, schedule, Preview, or a workflow; use the\nLinear integration only when people will talk to the agent from Linear\nissues/comments.\n\n#### Workflow Tools\n\n- Call `list_workflows`; reference supported workflows by name with `{ \"type\": \"workflow\", \"workflow\": \"<name>\" }`.\n\n#### Node Tools\n\n- Use `search_nodes`, then `get_node_types`; never guess node type names.\n- Use the tool node id from discovery, usually ending in `Tool`.\n- Put fixed values in `nodeParameters`; use complete n8n expressions for values the agent should decide at runtime:\n `={{ $fromAI('url', 'The URL to inspect', 'string') }}`.\n- For stable dynamic selectors such as Linear team/teamId, Slack channel, calendar,\n project, board, database, table, model, or other \"Name or ID\" fields, load skill\n `agent-builder-resource-locators` and follow it. Do not use `$fromAI` for\n these fields; resolve them at build time and write the exact returned\n `parameterValue` into `nodeParameters`.\n- Never write literal `\"$fromAI\"` or bare `$fromAI`; the node will treat it as the actual value.\n- Do not pipe AI-chosen fields through `$json`.\n- Do not include `inputSchema` or `toolDescription` for node tools.\n- 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.\n\n#### Custom Tools\n\n- Use `build_custom_tool` with `export default new Tool(...)` and imports only from `@n8n/agents` and `zod`.\n- Do not use custom tools for live website crawling, HTTP fetching, API calls, SEO crawlers, or scraping. Use workflow or node tools for those.\n- Register the returned custom tool id in config after `build_custom_tool`.\n- Custom handlers are pure functions: take validated `input`, compute, and return a JSON-serializable value. Do not call `.build()`.\n- Follow this pattern:\n```typescript\nimport { Tool } from '@n8n/agents';\nimport { z } from 'zod';\n\nexport default new Tool('tool_name')\n .description('What the tool does')\n .input(z.object({ query: z.string() }))\n .handler(async ({ query }, ctx) => {\n return { result: query.toUpperCase() };\n });\n```\n- Custom handlers run in a V8 isolate. No network, filesystem, process, Buffer, fetch, timers, wall-clock waiting, or host I/O.\n- Some globals may exist as stubs: `setTimeout` fires synchronously, `console.log` goes nowhere, and `TextEncoder.encode` returns its input unchanged.\n- Safe globals include `Math`, `Date`, `JSON`, `RegExp`, `Array`, `Object`, `Map`, `Set`, `Promise`, typed arrays, and methods on provided values.\n- The handler receives `(input, ctx)`; `ctx.suspend(payload)` pauses for human-in-the-loop flows. Ignore `ctx` otherwise.\n- Execution is capped at 5 seconds and about 32 MB memory. If runtime fails, fix the code from the returned error and call `build_custom_tool` again.\n\n#### Provider Tools\n\n- Match provider tools to the configured model provider.\n- Anthropic: `providerTools[\"anthropic.web_search\"]`.\n- OpenAI: `providerTools[\"openai.web_search\"]` or `providerTools[\"openai.image_generation\"]`, only for compatible OpenAI models.\n\n### Gotchas\n\n- Web-search fallback services are config, not node tools, unless the user explicitly asks for a node integration.\n- Live crawling, fetching, and API integrations need workflow or node tools, not custom tools.\n- Do not include `inputSchema` or `toolDescription` for node tools.\n- `$fromAI(...)` placeholders define the node tool input schema; do not add it manually.\n- `get_resource_locator_options` response values are builder-time config values. Write\n `parameterValue` exactly as returned. For resource locators this is an object with\n `__rl`, `mode`, and `value`; for classic dynamic options it is the raw ID/value.\n- If `get_resource_locator_options` returns `missing_credentials`, call `ask_credential`\n for one of the returned credential slots and retry. Do not fall back to `$fromAI`\n for required stable resource IDs.\n- Do not invent node type names, workflow names, credential ids, or provider tool keys.\n- If a required node-tool credential is skipped, add the tool and omit only that credential slot.\n- `build_custom_tool` stores code only; the config still needs a `{ \"type\": \"custom\", \"id\": \"<returned id>\" }` tool ref.\n\n### Verify\n\n- Workflow tools reference discovered workflow names.\n- Node tools use discovered tool node ids and valid node parameters.\n- Custom tools return a stored custom tool id that is registered in config.\n- Provider tool keys match the configured model provider and the valid key list.";
1
+ export declare const TOOLS_PROMPT = "## Tool Guidance\n\n### Purpose\n\nUse this to give the target agent callable capabilities through workflows,\nnodes, custom code tools, or provider tools.\n\n### Workflow\n\nUse this guidance before calling `search_nodes`, `get_node_types`, `build_custom_tool`,\nor adding, changing, or removing entries in `tools[]` / `providerTools`.\n\nCustom tools are for pure computation, validation, formatting, or planning logic;\nthey cannot perform live network, filesystem, process, timer, or host I/O.\n\nIf a product also has a target-agent integration, use node/workflow tools when\nthe product is only an API capability and the conversation or trigger happens\nelsewhere. Use the integration only when that product is the chat/trigger\nsurface or the agent needs the current platform conversation context. For\nexample, use Linear node tools for ordinary issue search/create/update when\nthe agent is triggered from Slack, schedule, Preview, or a workflow; use the\nLinear integration only when people will talk to the agent from Linear\nissues/comments.\n\n#### Workflow Tools\n\n- Call `list_workflows`; reference supported workflows by name with `{ \"type\": \"workflow\", \"workflow\": \"<name>\" }`.\n\n#### Node Tools\n\n- Use `search_nodes`, then `get_node_types`; never guess node type names.\n- Use the tool node id from discovery, usually ending in `Tool`.\n- Put fixed values in `nodeParameters`; use complete n8n expressions for values the agent should decide at runtime:\n `={{ $fromAI('url', 'The URL to inspect', 'string') }}`.\n- For stable dynamic selectors such as Linear team/teamId, Slack channel, calendar,\n project, board, database, table, model, or other \"Name or ID\" fields, load skill\n `agent-builder-resource-locators` and follow it. Do not use `$fromAI` for\n these fields; resolve them at build time and write the exact returned\n `parameterValue` into `nodeParameters`.\n- Never write literal `\"$fromAI\"` or bare `$fromAI`; the node will treat it as the actual value.\n- Do not pipe AI-chosen fields through `$json`.\n- Do not include `inputSchema` or `toolDescription` for node tools.\n- 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.\n\n#### Custom Tools\n\n- Use `build_custom_tool` with `export default new Tool(...)` and imports only from `@n8n/agents` and `zod`.\n- Do not use custom tools for live website crawling, HTTP fetching, API calls, SEO crawlers, or scraping. Use workflow or node tools for those.\n- The returned `id` is the tool name from the code (e.g. `new Tool(\"my_tool\")` \u2192 id `\"my_tool\"`).\n- Register the returned id in config: `{ \"type\": \"custom\", \"id\": \"<tool name>\" }`.\n- Tool names must be unique per agent and use only letters, digits, and underscores.\n- To update an existing custom tool (fix a bug, change logic, or rename it): call `build_custom_tool` again with the revised code, then update the config.\n- If the tool name changed since the last build: register the new id AND remove the old `{ type: \"custom\", id: \"<old name>\" }` entry from config.\n- Custom handlers are pure functions: take validated `input`, compute, and return a JSON-serializable value. Do not call `.build()`.\n- Follow this pattern:\n```typescript\nimport { Tool } from '@n8n/agents';\nimport { z } from 'zod';\n\nexport default new Tool('tool_name')\n .description('What the tool does')\n .input(z.object({ query: z.string() }))\n .handler(async ({ query }, ctx) => {\n return { result: query.toUpperCase() };\n });\n```\n- Custom handlers run in a V8 isolate. No network, filesystem, process, Buffer, fetch, timers, wall-clock waiting, or host I/O.\n- Some globals may exist as stubs: `setTimeout` fires synchronously, `console.log` goes nowhere, and `TextEncoder.encode` returns its input unchanged.\n- Safe globals include `Math`, `Date`, `JSON`, `RegExp`, `Array`, `Object`, `Map`, `Set`, `Promise`, typed arrays, and methods on provided values.\n- The handler receives `(input, ctx)`; `ctx.suspend(payload)` pauses for human-in-the-loop flows. Ignore `ctx` otherwise.\n- Execution is capped at 5 seconds and about 32 MB memory. If runtime fails, fix the code from the returned error and call `build_custom_tool` again.\n\n#### Provider Tools\n\n- Match provider tools to the configured model provider.\n- Anthropic: `providerTools[\"anthropic.web_search\"]`.\n- OpenAI: `providerTools[\"openai.web_search\"]` or `providerTools[\"openai.image_generation\"]`, only for compatible OpenAI models.\n\n### Gotchas\n\n- Web-search fallback services are config, not node tools, unless the user explicitly asks for a node integration.\n- Live crawling, fetching, and API integrations need workflow or node tools, not custom tools.\n- Do not include `inputSchema` or `toolDescription` for node tools.\n- `$fromAI(...)` placeholders define the node tool input schema; do not add it manually.\n- `get_resource_locator_options` response values are builder-time config values. Write\n `parameterValue` exactly as returned. For resource locators this is an object with\n `__rl`, `mode`, and `value`; for classic dynamic options it is the raw ID/value.\n- If `get_resource_locator_options` returns `missing_credentials`, call `ask_credential`\n for one of the returned credential slots and retry. Do not fall back to `$fromAI`\n for required stable resource IDs.\n- Do not invent node type names, workflow names, credential ids, or provider tool keys.\n- If a required node-tool credential is skipped, add the tool and omit only that credential slot.\n- `build_custom_tool` stores code only; the config still needs a `{ \"type\": \"custom\", \"id\": \"<tool name>\" }` tool ref.\n- When a tool is renamed, update the config to use the new name and remove the old entry.\n\n### Verify\n\n- Workflow tools reference discovered workflow names.\n- Node tools use discovered tool node ids and valid node parameters.\n- Custom tools: returned id equals the tool name; it is registered in config as `{ type: \"custom\", id: \"<tool name>\" }`.\n- Provider tool keys match the configured model provider and the valid key list.";
@@ -50,7 +50,11 @@ issues/comments.
50
50
 
51
51
  - Use \`build_custom_tool\` with \`export default new Tool(...)\` and imports only from \`@n8n/agents\` and \`zod\`.
52
52
  - Do not use custom tools for live website crawling, HTTP fetching, API calls, SEO crawlers, or scraping. Use workflow or node tools for those.
53
- - Register the returned custom tool id in config after \`build_custom_tool\`.
53
+ - The returned \`id\` is the tool name from the code (e.g. \`new Tool("my_tool")\` → id \`"my_tool"\`).
54
+ - Register the returned id in config: \`{ "type": "custom", "id": "<tool name>" }\`.
55
+ - Tool names must be unique per agent and use only letters, digits, and underscores.
56
+ - To update an existing custom tool (fix a bug, change logic, or rename it): call \`build_custom_tool\` again with the revised code, then update the config.
57
+ - If the tool name changed since the last build: register the new id AND remove the old \`{ type: "custom", id: "<old name>" }\` entry from config.
54
58
  - Custom handlers are pure functions: take validated \`input\`, compute, and return a JSON-serializable value. Do not call \`.build()\`.
55
59
  - Follow this pattern:
56
60
  \`\`\`typescript
@@ -90,12 +94,13 @@ export default new Tool('tool_name')
90
94
  for required stable resource IDs.
91
95
  - Do not invent node type names, workflow names, credential ids, or provider tool keys.
92
96
  - If a required node-tool credential is skipped, add the tool and omit only that credential slot.
93
- - \`build_custom_tool\` stores code only; the config still needs a \`{ "type": "custom", "id": "<returned id>" }\` tool ref.
97
+ - \`build_custom_tool\` stores code only; the config still needs a \`{ "type": "custom", "id": "<tool name>" }\` tool ref.
98
+ - When a tool is renamed, update the config to use the new name and remove the old entry.
94
99
 
95
100
  ### Verify
96
101
 
97
102
  - Workflow tools reference discovered workflow names.
98
103
  - Node tools use discovered tool node ids and valid node parameters.
99
- - Custom tools return a stored custom tool id that is registered in config.
104
+ - Custom tools: returned id equals the tool name; it is registered in config as \`{ type: "custom", id: "<tool name>" }\`.
100
105
  - Provider tool keys match the configured model provider and the valid key list.`;
101
106
  //# sourceMappingURL=tools.prompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tools.prompt.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/prompts/tools.prompt.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAgGqD,CAAC"}
1
+ {"version":3,"file":"tools.prompt.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/prompts/tools.prompt.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAqGqD,CAAC"}
@@ -6,6 +6,14 @@ function integrationsSkill() {
6
6
  id: 'agent-builder-integrations',
7
7
  name: 'Agent Builder Integrations',
8
8
  description: 'Use when deciding whether Slack, Linear, Telegram, or another external platform should be a target-agent chat integration/trigger versus a node tool, and when adding or changing chat integrations; not for built-in Build chat or Preview chat behavior.',
9
+ recommendedTools: ['list_integration_types', 'ask_credential', 'read_config', 'patch_config'],
10
+ allowedTools: [
11
+ 'list_integration_types',
12
+ 'ask_credential',
13
+ 'read_config',
14
+ 'patch_config',
15
+ 'write_config',
16
+ ],
9
17
  instructions: `\
10
18
  ## Purpose
11
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"integrations.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/integrations.skill.ts"],"names":[],"mappings":";;AAEA,8CAsEC;AAtED,SAAgB,iBAAiB;IAChC,OAAO;QACN,EAAE,EAAE,4BAA4B;QAChC,IAAI,EAAE,4BAA4B;QAClC,WAAW,EACV,4PAA4P;QAC7P,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEA8DwD;KACtE,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"integrations.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/integrations.skill.ts"],"names":[],"mappings":";;AAEA,8CA8EC;AA9ED,SAAgB,iBAAiB;IAChC,OAAO;QACN,EAAE,EAAE,4BAA4B;QAChC,IAAI,EAAE,4BAA4B;QAClC,WAAW,EACV,4PAA4P;QAC7P,gBAAgB,EAAE,CAAC,wBAAwB,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,CAAC;QAC7F,YAAY,EAAE;YACb,wBAAwB;YACxB,gBAAgB;YAChB,aAAa;YACb,cAAc;YACd,cAAc;SACd;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEA8DwD;KACtE,CAAC;AACH,CAAC"}
@@ -10,6 +10,22 @@ function mcpSkill() {
10
10
  id: 'agent-builder-mcp',
11
11
  name: 'Agent builder MCP servers',
12
12
  description: 'Use when adding, removing, or updating MCP (Model Context Protocol) servers on the target agent.',
13
+ recommendedTools: [
14
+ 'search_mcp_servers',
15
+ 'ask_credential',
16
+ 'verify_mcp_server',
17
+ 'read_config',
18
+ 'patch_config',
19
+ ],
20
+ allowedTools: [
21
+ 'search_mcp_servers',
22
+ 'ask_credential',
23
+ 'verify_mcp_server',
24
+ 'ask_question',
25
+ 'read_config',
26
+ 'patch_config',
27
+ 'write_config',
28
+ ],
13
29
  instructions: `\
14
30
  ## Purpose
15
31
 
@@ -1 +1 @@
1
- {"version":3,"file":"mcp.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/mcp.skill.ts"],"names":[],"mappings":";;AAWA,4BAsGC;AAhHD,8CAA+E;AAE/E,2DAAqD;AAErD,qFAAmF;AAEnF,MAAM,mBAAmB,GAAG,IAAA,gDAAuB,EAClD,IAAA,oCAAe,EAAC,iCAAqB,CAAgB,CACrD,CAAC;AAEF,SAAgB,QAAQ;IACvB,OAAO;QACN,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,2BAA2B;QACjC,WAAW,EACV,kGAAkG;QACnG,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCd,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAmCE,kCAAsB;;;;;;;;;;;;;;;;;;;;;;sCAsBP;KACpC,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"mcp.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/mcp.skill.ts"],"names":[],"mappings":";;AAWA,4BAsHC;AAhID,8CAA+E;AAE/E,2DAAqD;AAErD,qFAAmF;AAEnF,MAAM,mBAAmB,GAAG,IAAA,gDAAuB,EAClD,IAAA,oCAAe,EAAC,iCAAqB,CAAgB,CACrD,CAAC;AAEF,SAAgB,QAAQ;IACvB,OAAO;QACN,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,2BAA2B;QACjC,WAAW,EACV,kGAAkG;QACnG,gBAAgB,EAAE;YACjB,oBAAoB;YACpB,gBAAgB;YAChB,mBAAmB;YACnB,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,oBAAoB;YACpB,gBAAgB;YAChB,mBAAmB;YACnB,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;SACd;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCd,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAmCE,kCAAsB;;;;;;;;;;;;;;;;;;;;;;sCAsBP;KACpC,CAAC;AACH,CAAC"}
@@ -6,6 +6,24 @@ function resourceLocatorsSkill() {
6
6
  id: 'agent-builder-resource-locators',
7
7
  name: 'Agent Builder Resource Locators',
8
8
  description: 'Use when adding or changing node tools with stable dynamic selector fields: resourceLocator, loadOptionsMethod, loadOptions routing, "Name or ID" parameters, teamId, channelId, projectId, calendarId, databaseId, tableId, model selectors, or when write_config/patch_config rejects $fromAI on a dynamic selector.',
9
+ recommendedTools: [
10
+ 'search_nodes',
11
+ 'get_node_types',
12
+ 'ask_credential',
13
+ 'get_resource_locator_options',
14
+ 'read_config',
15
+ 'patch_config',
16
+ ],
17
+ allowedTools: [
18
+ 'search_nodes',
19
+ 'get_node_types',
20
+ 'ask_credential',
21
+ 'get_resource_locator_options',
22
+ 'ask_question',
23
+ 'read_config',
24
+ 'patch_config',
25
+ 'write_config',
26
+ ],
9
27
  instructions: `\
10
28
  ## Purpose
11
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"resource-locators.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/resource-locators.skill.ts"],"names":[],"mappings":";;AAEA,sDAuGC;AAvGD,SAAgB,qBAAqB;IACpC,OAAO;QACN,EAAE,EAAE,iCAAiC;QACrC,IAAI,EAAE,iCAAiC;QACvC,WAAW,EACV,wTAAwT;QACzT,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA+FoC;KAClD,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"resource-locators.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/resource-locators.skill.ts"],"names":[],"mappings":";;AAEA,sDAyHC;AAzHD,SAAgB,qBAAqB;IACpC,OAAO;QACN,EAAE,EAAE,iCAAiC;QACrC,IAAI,EAAE,iCAAiC;QACvC,WAAW,EACV,wTAAwT;QACzT,gBAAgB,EAAE;YACjB,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,8BAA8B;YAC9B,aAAa;YACb,cAAc;SACd;QACD,YAAY,EAAE;YACb,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,8BAA8B;YAC9B,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;SACd;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA+FoC;KAClD,CAAC;AACH,CAAC"}
@@ -7,6 +7,14 @@ function subAgentsSkill() {
7
7
  id: 'agent-builder-sub-agents',
8
8
  name: 'Agent Builder Sub-Agents',
9
9
  description: 'Use when configuring inline or saved sub-agent delegation for the target agent, selecting published same-project sub-agents, or changing subAgents.maxChildren.',
10
+ recommendedTools: ['list_sub_agents', 'ask_question', 'read_config', 'patch_config'],
11
+ allowedTools: [
12
+ 'list_sub_agents',
13
+ 'ask_question',
14
+ 'read_config',
15
+ 'patch_config',
16
+ 'write_config',
17
+ ],
10
18
  instructions: `\
11
19
  ## Purpose
12
20
 
@@ -44,30 +52,47 @@ subagent.
44
52
  added. Do not write agent ids from memory, prose, or user-entered free text.
45
53
  2. If published agents are available and the user has not named exact agents,
46
54
  call \`ask_question\` with \`allowMultiple: true\`. Use each option's
47
- \`value\` as the returned \`agentId\`, and include descriptions when present.
55
+ \`value\` as the returned \`agentId\`.
48
56
  3. If no published agents are available, do not configure saved subagents.
49
57
  Inline delegation still works without saved-agent refs.
50
- 4. Call \`read_config\`.
51
- 5. Patch selected saved agents into \`subAgents.agents\` as
52
- \`{ "agentId": "<returned-agent-id>" }\`. Avoid duplicates.
58
+ 4. Determine the parent-owned routing guidance for each selected saved
59
+ subagent. Store it as \`useWhen\`, for example
60
+ \`{ "agentId": "<returned-agent-id>", "useWhen": "Use for billing-policy questions and invoice investigations." }\`.
61
+ 5. If it is unclear when a selected saved subagent should be used, ask the user
62
+ a follow-up before patching \`subAgents.agents\`. Do not invent vague routing
63
+ guidance.
64
+ 6. Call \`read_config\`.
65
+ 7. Patch selected saved agents into \`subAgents.agents\`. Avoid duplicates.
53
66
 
54
67
  Example patch flow:
55
68
 
56
69
  1. \`list_sub_agents()\`.
57
70
  2. If it returns one or more agents and the user has not named exact ones, call
58
71
  \`ask_question({ allowMultiple: true, ... })\` with those agents as options.
59
- 3. \`read_config()\`.
60
- 4. \`patch_config(...)\` adding selected \`{ "agentId": "<returned-agent-id>" }\`
61
- refs to \`/subAgents/agents\`.
72
+ 3. If the user's request does not make the routing rule clear, ask when each
73
+ selected saved subagent should be used.
74
+ 4. \`read_config()\`.
75
+ 5. \`patch_config(...)\` adding selected
76
+ \`{ "agentId": "<returned-agent-id>", "useWhen": "Use for ..." }\` refs to
77
+ \`/subAgents/agents\`.
62
78
 
63
79
  ## Rules
64
80
 
65
81
  - If the resumed values include text that is not one of the listed agent ids,
66
82
  do not persist it as an agent id; ask a follow-up.
83
+ - \`useWhen\` is relationship-specific routing guidance owned by this parent
84
+ config. It is not the child agent's global description.
85
+ - Write \`useWhen\` only when the intended routing is clear from the user's
86
+ request or an explicit follow-up answer.
87
+ - Every new or updated saved subagent ref must include \`useWhen\`.
88
+ - Good \`useWhen\` values are concrete and intent-oriented, such as
89
+ "Use for invoice investigations and payment status checks."
90
+ - Do not write vague values such as "Use when helpful", "Use for tasks", or
91
+ "Use for this agent."
67
92
  - Do not add custom tools, custom instructions, or custom schema fields to
68
93
  simulate subagents.
69
94
  - Preserve existing \`subAgents.agents\` refs unless the user explicitly asks to
70
- change saved subagents.
95
+ change saved subagents. Preserve existing \`useWhen\` values when keeping refs.
71
96
 
72
97
  ## Inline model mappings
73
98
 
@@ -95,6 +120,7 @@ Example shape:
95
120
 
96
121
  - Inline delegation still works even when \`subAgents.agents\` is absent.
97
122
  - Saved refs use only returned same-project published agent ids.
123
+ - New or updated saved refs include concrete \`useWhen\` guidance.
98
124
  - Any \`subAgents.maxChildren\` value stays within ${api_types_1.SUB_AGENT_MAX_CHILDREN_MIN} to ${api_types_1.SUB_AGENT_MAX_CHILDREN_MAX}.`,
99
125
  };
100
126
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sub-agents.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/sub-agents.skill.ts"],"names":[],"mappings":";;AAOA,wCAgGC;AAtGD,8CAIwB;AAExB,SAAgB,cAAc;IAC7B,OAAO;QACN,EAAE,EAAE,0BAA0B;QAC9B,IAAI,EAAE,0BAA0B;QAChC,WAAW,EACV,iKAAiK;QAClK,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;sDAuBsC,sCAA0B,OAAO,sCAA0B,gCAAgC,0CAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qDAiE1H,sCAA0B,OAAO,sCAA0B,GAAG;KACjH,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"sub-agents.skill.js","sourceRoot":"","sources":["../../../../../src/modules/agents/builder/skills/sub-agents.skill.ts"],"names":[],"mappings":";;AAOA,wCA0HC;AAhID,8CAIwB;AAExB,SAAgB,cAAc;IAC7B,OAAO;QACN,EAAE,EAAE,0BAA0B;QAC9B,IAAI,EAAE,0BAA0B;QAChC,WAAW,EACV,iKAAiK;QAClK,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,CAAC;QACpF,YAAY,EAAE;YACb,iBAAiB;YACjB,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;SACd;QACD,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;sDAuBsC,sCAA0B,OAAO,sCAA0B,gCAAgC,0CAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qDAmF1H,sCAA0B,OAAO,sCAA0B,GAAG;KACjH,CAAC;AACH,CAAC"}