n8n 2.28.4 → 2.29.1

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 (887) 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 +30 -4
  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-runner.js +1 -0
  851. package/dist/workflow-runner.js.map +1 -1
  852. package/dist/workflows/publication/workflow-publication-applier.d.ts +3 -1
  853. package/dist/workflows/publication/workflow-publication-applier.js +10 -2
  854. package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
  855. package/dist/workflows/triggers/non-webhook-trigger-registrar.d.ts +1 -1
  856. package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +1 -1
  857. package/dist/workflows/triggers/trigger-execution-context.factory.js +4 -5
  858. package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
  859. package/dist/workflows/triggers/webhook-trigger-registrar.d.ts +4 -1
  860. package/dist/workflows/triggers/webhook-trigger-registrar.js +36 -9
  861. package/dist/workflows/triggers/webhook-trigger-registrar.js.map +1 -1
  862. package/dist/workflows/triggers/workflow-trigger-activator.d.ts +3 -0
  863. package/dist/workflows/triggers/workflow-trigger-activator.js +66 -32
  864. package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
  865. package/dist/workflows/workflow-creation.service.js +1 -1
  866. package/dist/workflows/workflow-creation.service.js.map +1 -1
  867. package/dist/workflows/workflow-history/workflow-history.service.d.ts +4 -3
  868. package/dist/workflows/workflow-history/workflow-history.service.js +4 -3
  869. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  870. package/dist/workflows/workflow-published-data.service.d.ts +16 -6
  871. package/dist/workflows/workflow-published-data.service.js +42 -2
  872. package/dist/workflows/workflow-published-data.service.js.map +1 -1
  873. package/dist/workflows/workflow-validation.service.js +4 -22
  874. package/dist/workflows/workflow-validation.service.js.map +1 -1
  875. package/dist/workflows/workflow.service.d.ts +2 -2
  876. package/dist/workflows/workflow.service.ee.d.ts +1 -1
  877. package/dist/workflows/workflow.service.ee.js +1 -1
  878. package/dist/workflows/workflow.service.ee.js.map +1 -1
  879. package/dist/workflows/workflow.service.js +7 -7
  880. package/dist/workflows/workflow.service.js.map +1 -1
  881. package/dist/workflows/workflows.controller.d.ts +6 -6
  882. package/dist/workflows/workflows.controller.js +3 -3
  883. package/dist/workflows/workflows.controller.js.map +1 -1
  884. package/package.json +68 -56
  885. package/dist/modules/instance-ai/eval/proxy-loopback.d.ts +0 -1
  886. package/dist/modules/instance-ai/eval/proxy-loopback.js +0 -44
  887. package/dist/modules/instance-ai/eval/proxy-loopback.js.map +0 -1
@@ -0,0 +1,231 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_INTEGRATION_ACTION_TOOL_DEFINITIONS = exports.DEFAULT_INTEGRATION_CONTEXT_TOOL_DEFINITIONS = exports.GENERIC_ACTION_TOOL_DEFINITIONS = exports.GENERIC_CONTEXT_QUERY_TOOL_DEFINITIONS = exports.messageSchema = void 0;
4
+ exports.resolveIntegrationContextQueryDefinitions = resolveIntegrationContextQueryDefinitions;
5
+ exports.resolveIntegrationActionDefinitions = resolveIntegrationActionDefinitions;
6
+ const api_types_1 = require("@n8n/api-types");
7
+ const zod_1 = require("zod");
8
+ const linear_tool_definitions_1 = require("./platforms/linear-tool-definitions");
9
+ const slack_tool_definitions_1 = require("./platforms/slack-tool-definitions");
10
+ const _assertRichCardButtonStylesAreChatSdkStyles = true;
11
+ void _assertRichCardButtonStylesAreChatSdkStyles;
12
+ exports.messageSchema = api_types_1.richMessageSchema;
13
+ const noInputSchema = zod_1.z.object({}).strict();
14
+ const platformUserIdSchema = zod_1.z
15
+ .string()
16
+ .min(1)
17
+ .describe('Platform user ID, for example a Slack U... ID or Linear user UUID. Do not pass a name.');
18
+ const platformChannelIdSchema = zod_1.z
19
+ .string()
20
+ .min(1)
21
+ .describe('Platform channel ID, for example a Slack C... channel ID. Do not pass a name.');
22
+ const searchLimitSchema = zod_1.z
23
+ .number()
24
+ .int()
25
+ .min(1)
26
+ .max(50)
27
+ .optional()
28
+ .describe('Maximum number of matches to return. Defaults to 10.');
29
+ const searchCursorSchema = zod_1.z
30
+ .string()
31
+ .min(1)
32
+ .optional()
33
+ .describe('Opaque pagination cursor returned as `nextCursor` by a previous call. Pass to fetch the next page of matches.');
34
+ const getCurrentMessageContextInputSchema = zod_1.z.object({
35
+ query: zod_1.z.literal('get_current_message_context'),
36
+ input: noInputSchema,
37
+ });
38
+ const getCurrentSubjectInputSchema = zod_1.z.object({
39
+ query: zod_1.z.literal('get_current_subject'),
40
+ input: noInputSchema,
41
+ });
42
+ const getCurrentUserInputSchema = zod_1.z.object({
43
+ query: zod_1.z.literal('get_current_user'),
44
+ input: noInputSchema,
45
+ });
46
+ const getCurrentChannelInfoInputSchema = zod_1.z.object({
47
+ query: zod_1.z.literal('get_current_channel_info'),
48
+ input: noInputSchema,
49
+ });
50
+ const getUserInputSchema = zod_1.z.object({
51
+ query: zod_1.z.literal('get_user'),
52
+ input: zod_1.z
53
+ .object({
54
+ userId: platformUserIdSchema,
55
+ })
56
+ .strict(),
57
+ });
58
+ const getChannelInfoInputSchema = zod_1.z.object({
59
+ query: zod_1.z.literal('get_channel_info'),
60
+ input: zod_1.z
61
+ .object({
62
+ channelId: platformChannelIdSchema,
63
+ })
64
+ .strict(),
65
+ });
66
+ const searchUsersInputSchema = zod_1.z.object({
67
+ query: zod_1.z.literal('search_users'),
68
+ input: zod_1.z
69
+ .object({
70
+ query: zod_1.z
71
+ .string()
72
+ .min(1)
73
+ .optional()
74
+ .describe('User name, display name, handle, user ID, or email fragment to search for.'),
75
+ email: zod_1.z.string().min(1).optional().describe('Exact email address to look up when known.'),
76
+ limit: searchLimitSchema,
77
+ cursor: searchCursorSchema,
78
+ includeBots: zod_1.z
79
+ .boolean()
80
+ .optional()
81
+ .describe('Whether to include bot users. Defaults to false.'),
82
+ includeDeleted: zod_1.z
83
+ .boolean()
84
+ .optional()
85
+ .describe('Whether to include deleted/deactivated users. Defaults to false.'),
86
+ })
87
+ .strict()
88
+ .refine((input) => input.query !== undefined || input.email !== undefined, {
89
+ message: 'Provide query or email.',
90
+ }),
91
+ });
92
+ const searchChannelsInputSchema = zod_1.z.object({
93
+ query: zod_1.z.literal('search_channels'),
94
+ input: zod_1.z
95
+ .object({
96
+ query: zod_1.z.string().min(1).describe('Channel name, channel ID, or #channel search term.'),
97
+ limit: searchLimitSchema,
98
+ cursor: searchCursorSchema,
99
+ includeArchived: zod_1.z
100
+ .boolean()
101
+ .optional()
102
+ .describe('Whether to include archived channels. Defaults to false.'),
103
+ })
104
+ .strict(),
105
+ });
106
+ const respondActionInputSchema = zod_1.z.object({
107
+ action: zod_1.z.literal('respond'),
108
+ input: zod_1.z
109
+ .object({
110
+ message: exports.messageSchema,
111
+ })
112
+ .strict(),
113
+ });
114
+ const sendDmActionInputSchema = zod_1.z.object({
115
+ action: zod_1.z.literal('send_dm'),
116
+ input: zod_1.z
117
+ .object({
118
+ userId: platformUserIdSchema,
119
+ message: exports.messageSchema,
120
+ })
121
+ .strict(),
122
+ });
123
+ const sendChannelMessageActionInputSchema = zod_1.z.object({
124
+ action: zod_1.z.literal('send_channel_message'),
125
+ input: zod_1.z
126
+ .object({
127
+ channelId: platformChannelIdSchema,
128
+ message: exports.messageSchema,
129
+ })
130
+ .strict(),
131
+ });
132
+ exports.GENERIC_CONTEXT_QUERY_TOOL_DEFINITIONS = [
133
+ {
134
+ name: 'get_current_message_context',
135
+ inputSchema: getCurrentMessageContextInputSchema,
136
+ description: 'get_current_message_context: no input. Returns the latest place this agent communicated in this thread. For Slack, context.agentUserId is the bot user ID for this agent; do not look it up as another user.',
137
+ },
138
+ {
139
+ name: 'get_current_subject',
140
+ inputSchema: getCurrentSubjectInputSchema,
141
+ description: 'get_current_subject: no input. Returns the subject of the latest message context, such as a Linear issue, when available.',
142
+ },
143
+ {
144
+ name: 'get_current_user',
145
+ inputSchema: getCurrentUserInputSchema,
146
+ description: 'get_current_user: no input. Returns the latest user who interacted in the current message context.',
147
+ },
148
+ {
149
+ name: 'get_current_channel_info',
150
+ inputSchema: getCurrentChannelInfoInputSchema,
151
+ description: 'get_current_channel_info: no input. Returns metadata for the latest channel in the current message context.',
152
+ },
153
+ {
154
+ name: 'get_user',
155
+ inputSchema: getUserInputSchema,
156
+ description: 'get_user: input.userId is required. Use a platform user ID such as a Slack U... ID or Linear user UUID, not a name, handle, or email.',
157
+ },
158
+ {
159
+ name: 'get_channel_info',
160
+ inputSchema: getChannelInfoInputSchema,
161
+ description: 'get_channel_info: input.channelId is required. Use a platform channel ID such as a Slack C... ID, not a channel name.',
162
+ },
163
+ {
164
+ name: 'search_users',
165
+ inputSchema: searchUsersInputSchema,
166
+ description: 'search_users: input.query or input.email is required. Returns matching platform user IDs for names, handles, or emails. When the response includes nextCursor, pass it back as input.cursor to fetch the next page.',
167
+ },
168
+ {
169
+ name: 'search_channels',
170
+ inputSchema: searchChannelsInputSchema,
171
+ description: 'search_channels: input.query is required. Returns matching platform channel IDs for channel names or IDs. When the response includes nextCursor, pass it back as input.cursor to fetch the next page.',
172
+ },
173
+ ];
174
+ exports.GENERIC_ACTION_TOOL_DEFINITIONS = [
175
+ {
176
+ name: 'respond',
177
+ inputSchema: respondActionInputSchema,
178
+ description: 'respond: input.message is required. Responds in the latest message context for this integration connection.',
179
+ },
180
+ {
181
+ name: 'send_dm',
182
+ inputSchema: sendDmActionInputSchema,
183
+ description: 'send_dm: input.userId and input.message are required. userId must be a platform user ID, not a name, handle, or email.',
184
+ },
185
+ {
186
+ name: 'send_channel_message',
187
+ inputSchema: sendChannelMessageActionInputSchema,
188
+ description: 'send_channel_message: input.channelId and input.message are required. channelId must be a platform channel ID, not a channel name.',
189
+ },
190
+ ];
191
+ exports.DEFAULT_INTEGRATION_CONTEXT_TOOL_DEFINITIONS = exports.GENERIC_CONTEXT_QUERY_TOOL_DEFINITIONS;
192
+ exports.DEFAULT_INTEGRATION_ACTION_TOOL_DEFINITIONS = exports.GENERIC_ACTION_TOOL_DEFINITIONS;
193
+ const ALL_CONTEXT_QUERY_TOOL_DEFINITIONS = [
194
+ ...exports.GENERIC_CONTEXT_QUERY_TOOL_DEFINITIONS,
195
+ ...linear_tool_definitions_1.LINEAR_CONTEXT_QUERY_TOOL_DEFINITIONS,
196
+ ];
197
+ const ALL_ACTION_TOOL_DEFINITIONS = [
198
+ ...exports.GENERIC_ACTION_TOOL_DEFINITIONS,
199
+ ...slack_tool_definitions_1.SLACK_ACTION_TOOL_DEFINITIONS,
200
+ ...linear_tool_definitions_1.LINEAR_ACTION_TOOL_DEFINITIONS,
201
+ ];
202
+ const _assertContextQueryDefinitionsAreExhaustive = true;
203
+ const _assertActionDefinitionsAreExhaustive = true;
204
+ void _assertContextQueryDefinitionsAreExhaustive;
205
+ void _assertActionDefinitionsAreExhaustive;
206
+ const contextDefinitionsByName = toDefinitionMap(ALL_CONTEXT_QUERY_TOOL_DEFINITIONS);
207
+ const actionDefinitionsByName = toDefinitionMap(ALL_ACTION_TOOL_DEFINITIONS);
208
+ function resolveIntegrationContextQueryDefinitions(queries) {
209
+ return queries.map((query) => requireDefinition(contextDefinitionsByName, query));
210
+ }
211
+ function resolveIntegrationActionDefinitions(actions) {
212
+ return actions.map((action) => requireDefinition(actionDefinitionsByName, action));
213
+ }
214
+ function toDefinitionMap(definitions) {
215
+ const definitionsByName = new Map();
216
+ for (const definition of definitions) {
217
+ if (definitionsByName.has(definition.name)) {
218
+ throw new Error(`Duplicate integration tool operation definition: ${definition.name}`);
219
+ }
220
+ definitionsByName.set(definition.name, definition);
221
+ }
222
+ return definitionsByName;
223
+ }
224
+ function requireDefinition(definitionsByName, name) {
225
+ const definition = definitionsByName.get(name);
226
+ if (!definition) {
227
+ throw new Error(`Unknown integration tool operation definition: ${name}`);
228
+ }
229
+ return definition;
230
+ }
231
+ //# sourceMappingURL=integration-tool-definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-tool-definitions.js","sourceRoot":"","sources":["../../../../src/modules/agents/integrations/integration-tool-definitions.ts"],"names":[],"mappings":";;;AAuRA,8FAIC;AA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AC;AAED,SAAS,iBAAiB,CAGxB,iBAA0C,EAAE,IAAW;IACxD,MAAM,UAAU,GAAG,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC/C,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,kDAAkD,IAAI,EAAE,CAAC,CAAC;IAC3E,CAAC;IACD,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IntegrationToolConnectionDescriptor } from './integration-tool-types';
2
+ export declare function buildContextToolDescription(descriptor: IntegrationToolConnectionDescriptor): string;
3
+ export declare function buildActionToolDescription(descriptor: IntegrationToolConnectionDescriptor): string;
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildContextToolDescription = buildContextToolDescription;
4
+ exports.buildActionToolDescription = buildActionToolDescription;
5
+ const integration_tool_schema_1 = require("./integration-tool-schema");
6
+ function buildContextToolDescription(descriptor) {
7
+ return [
8
+ `Read context from the ${descriptor.integration.type} integration connection.`,
9
+ `Available queries: ${descriptor.contextQueries.join(', ')}.`,
10
+ ...(descriptor.contextToolGuidance ?? []),
11
+ 'Query inputs:',
12
+ ...descriptor.contextToolDefinitions.map((definition) => `- ${definition.description}`),
13
+ `Batch form: pass queries as an array of up to ${integration_tool_schema_1.MAX_BATCH_OPERATIONS} { query, input } objects to fetch multiple pieces of context in one tool call.`,
14
+ 'Use this tool for read-only lookup before choosing an action target.',
15
+ ].join('\n\n');
16
+ }
17
+ function buildActionToolDescription(descriptor) {
18
+ return [
19
+ `Take actions in the ${descriptor.integration.type} integration connection.`,
20
+ `Available actions: ${descriptor.actions.join(', ')}.`,
21
+ ...(descriptor.actionToolGuidance ?? []),
22
+ 'Action inputs:',
23
+ ...descriptor.actionToolDefinitions.map((definition) => `- ${definition.description}`),
24
+ `Batch form: pass actions as an array of up to ${integration_tool_schema_1.MAX_BATCH_OPERATIONS} { action, input } objects. Batch actions run sequentially and cannot include cards that wait for a user response.`,
25
+ 'respond uses the latest message context for this integration connection.',
26
+ 'Use message.card for cards, images, key-value summaries, and feedback requests. Include components such as section, fields, image, divider, button, select, or radio_select.',
27
+ 'For fields components, use { type: "fields", fields: [{ label: "Account", value: "Acme" }] }. The key items is also accepted as a fields alias.',
28
+ 'For button components, use { type: "button", label: "Approve", value: "approve" }. If label is omitted, text is used as the button label.',
29
+ 'For radio-style choices, use { type: "radio_select", label: "Next step", options: [{ label: "Approve", value: "approve" }] }.',
30
+ 'Use only the generic shape: message.text plus optional message.card. Do not provide platform-native component payloads, formatted text objects, or attachments; rendering is handled internally.',
31
+ ...buildGenericCardGuidance(),
32
+ 'Interactive message.card components (button, select, or radio_select) send the message first, then suspend this action until the user responds.',
33
+ 'Display-only message.card components without buttons/selects render the card and let the agent continue immediately.',
34
+ ].join('\n\n');
35
+ }
36
+ function buildGenericCardGuidance() {
37
+ return [
38
+ 'Generic card examples:',
39
+ [
40
+ 'Radio choice card:',
41
+ '```json',
42
+ JSON.stringify({
43
+ action: 'respond',
44
+ input: {
45
+ message: {
46
+ text: 'Acme Executive Briefing — Next Steps',
47
+ card: {
48
+ title: 'Acme Corporation — Executive Briefing Next Steps',
49
+ components: [
50
+ {
51
+ type: 'section',
52
+ text: '30X Expansion Briefing ($3.75M) — Internal owner: Paul G | Briefing contact: Mike D\n\nWhat should happen next?',
53
+ },
54
+ { type: 'divider' },
55
+ {
56
+ type: 'radio_select',
57
+ id: 'next_step_selection',
58
+ label: 'Next step',
59
+ options: [
60
+ {
61
+ label: 'Schedule exec briefing prep call with Paul G',
62
+ value: 'schedule_prep_call',
63
+ },
64
+ {
65
+ label: 'Draft briefing agenda doc for Mike D',
66
+ value: 'draft_briefing_doc',
67
+ },
68
+ ],
69
+ },
70
+ ],
71
+ },
72
+ },
73
+ },
74
+ }, null, 2),
75
+ '```',
76
+ ].join('\n'),
77
+ [
78
+ 'Button card:',
79
+ '```json',
80
+ JSON.stringify({
81
+ action: 'respond',
82
+ input: {
83
+ message: {
84
+ text: 'Approve or revise the briefing draft',
85
+ card: {
86
+ components: [
87
+ { type: 'section', text: 'Review the briefing draft.' },
88
+ { type: 'button', label: 'Approve', value: 'approve', style: 'primary' },
89
+ { type: 'button', label: 'Revise', value: 'revise', style: 'default' },
90
+ ],
91
+ },
92
+ },
93
+ },
94
+ }, null, 2),
95
+ '```',
96
+ ].join('\n'),
97
+ 'Never send message.blocks, components of type actions, elements arrays, action_id, radio_buttons, or formatted text objects such as { type: "plain_text", text: "..." } or { type: "mrkdwn", text: "..." }.',
98
+ ];
99
+ }
100
+ //# sourceMappingURL=integration-tool-descriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-tool-descriptions.js","sourceRoot":"","sources":["../../../../src/modules/agents/integrations/integration-tool-descriptions.ts"],"names":[],"mappings":";;AAGA,kEAYC;AAED,gEAoBC;AArCD,uEAAiE;AAGjE,SAAgB,2BAA2B,CAC1C,UAA+C;IAE/C,OAAO;QACN,yBAAyB,UAAU,CAAC,WAAW,CAAC,IAAI,0BAA0B;QAC9E,sBAAsB,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;QAC7D,GAAG,CAAC,UAAU,CAAC,mBAAmB,IAAI,EAAE,CAAC;QACzC,eAAe;QACf,GAAG,UAAU,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,KAAK,UAAU,CAAC,WAAW,EAAE,CAAC;QACvF,iDAAiD,8CAAoB,iFAAiF;QACtJ,sEAAsE;KACtE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CACzC,UAA+C;IAE/C,OAAO;QACN,uBAAuB,UAAU,CAAC,WAAW,CAAC,IAAI,0BAA0B;QAC5E,sBAAsB,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;QACtD,GAAG,CAAC,UAAU,CAAC,kBA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I,EAAE,sCAAsC;wBAC5C,IAAI,EAAE;4BACL,UAAU,EAAE;gCACX,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,4BAA4B,EAAE;gCACvD,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;gCACxE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;6BACtE;yBACD;qBACD;iBACD;aACD,EACD,IAAI,EACJ,CAAC,CACD;YACD,KAAK;SACL,CAAC,IAAI,CAAC,IAAI,CAAC;QACZ,6MAA6M;KAC7M,CAAC;AACH,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { InterruptibleToolContext, ToolContext } from '@n8n/agents';
2
+ import type { IntegrationActionExecutor, IntegrationMessageContext, IntegrationMessageContextStore, IntegrationContextQueryExecutor, IntegrationToolConnectionDescriptor } from './integration-tool-types';
3
+ import type { RawActionToolOperation, RawContextToolOperation } from './integration-tool-schema';
4
+ export declare function executeContextToolOperation(params: {
5
+ operation: RawContextToolOperation;
6
+ descriptor: IntegrationToolConnectionDescriptor;
7
+ messageContextStore: IntegrationMessageContextStore;
8
+ queryExecutor: IntegrationContextQueryExecutor;
9
+ persistence: ToolContext['persistence'];
10
+ }): Promise<unknown>;
11
+ export declare function executeActionToolBatch(params: {
12
+ operations: RawActionToolOperation[];
13
+ descriptor: IntegrationToolConnectionDescriptor;
14
+ messageContextStore: IntegrationMessageContextStore;
15
+ actionExecutor: IntegrationActionExecutor;
16
+ ctx: ToolContext;
17
+ }): Promise<unknown>;
18
+ export declare function executeActionToolOperation(params: {
19
+ operation: RawActionToolOperation;
20
+ descriptor: IntegrationToolConnectionDescriptor;
21
+ messageContextStore: IntegrationMessageContextStore;
22
+ actionExecutor: IntegrationActionExecutor;
23
+ ctx: ToolContext;
24
+ interruptCtx?: InterruptibleToolContext;
25
+ currentMessageContext?: IntegrationMessageContext;
26
+ allowSuspend: boolean;
27
+ }): Promise<unknown>;
@@ -0,0 +1,278 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.executeContextToolOperation = executeContextToolOperation;
4
+ exports.executeActionToolBatch = executeActionToolBatch;
5
+ exports.executeActionToolOperation = executeActionToolOperation;
6
+ const utils_1 = require("@n8n/utils");
7
+ const integration_tool_definitions_1 = require("./integration-tool-definitions");
8
+ const integration_error_codes_1 = require("./integration-error-codes");
9
+ async function executeContextToolOperation(params) {
10
+ const { operation, descriptor, messageContextStore, queryExecutor, persistence } = params;
11
+ if (isCurrentContextQuery(operation.query)) {
12
+ if (!persistence) {
13
+ return {
14
+ ok: false,
15
+ error: {
16
+ code: integration_error_codes_1.INTEGRATION_ERROR_CODES.NO_THREAD_CONTEXT,
17
+ message: 'There is no current agent thread context.',
18
+ },
19
+ };
20
+ }
21
+ const context = await messageContextStore.getLatest(persistence.threadId);
22
+ if (!context || context.integrationConnectionId !== descriptor.integrationConnectionId) {
23
+ if (operation.query === 'get_current_message_context') {
24
+ return { ok: true, context: null };
25
+ }
26
+ if (operation.query === 'get_current_subject') {
27
+ return { ok: true, subject: null };
28
+ }
29
+ return {
30
+ ok: false,
31
+ error: {
32
+ code: integration_error_codes_1.INTEGRATION_ERROR_CODES.NO_MESSAGE_CONTEXT,
33
+ message: 'There is no current message context for this integration connection.',
34
+ },
35
+ };
36
+ }
37
+ if (operation.query === 'get_current_message_context') {
38
+ return { ok: true, context };
39
+ }
40
+ if (operation.query === 'get_current_subject') {
41
+ return { ok: true, subject: context.subject ?? null };
42
+ }
43
+ if (operation.query === 'get_current_user') {
44
+ if (!context.interactingUserId) {
45
+ return {
46
+ ok: false,
47
+ error: {
48
+ code: integration_error_codes_1.INTEGRATION_ERROR_CODES.NO_INTERACTING_USER_CONTEXT,
49
+ message: 'The latest message context does not include an interacting user ID.',
50
+ },
51
+ };
52
+ }
53
+ return await queryExecutor.execute({
54
+ descriptor,
55
+ query: 'get_user',
56
+ input: { userId: context.interactingUserId },
57
+ persistence,
58
+ });
59
+ }
60
+ const channelId = getTargetChannelId(context.target);
61
+ if (!channelId) {
62
+ return {
63
+ ok: false,
64
+ error: {
65
+ code: integration_error_codes_1.INTEGRATION_ERROR_CODES.NO_CHANNEL_CONTEXT,
66
+ message: 'The latest message context does not include a channel ID.',
67
+ },
68
+ };
69
+ }
70
+ return await queryExecutor.execute({
71
+ descriptor,
72
+ query: 'get_channel_info',
73
+ input: { channelId },
74
+ persistence,
75
+ });
76
+ }
77
+ return await queryExecutor.execute({
78
+ descriptor,
79
+ query: operation.query,
80
+ input: operation.input,
81
+ persistence,
82
+ });
83
+ }
84
+ async function executeActionToolBatch(params) {
85
+ const { operations, descriptor, messageContextStore, actionExecutor, ctx } = params;
86
+ let currentMessageContext = ctx.persistence !== undefined
87
+ ? await getOptionalCurrentContext({
88
+ descriptor,
89
+ messageContextStore,
90
+ threadId: ctx.persistence.threadId,
91
+ })
92
+ : undefined;
93
+ const results = [];
94
+ for (const operation of operations) {
95
+ const result = await executeActionToolOperation({
96
+ operation,
97
+ descriptor,
98
+ messageContextStore,
99
+ actionExecutor,
100
+ ctx,
101
+ currentMessageContext,
102
+ allowSuspend: false,
103
+ });
104
+ const nextMessageContext = extractSuccessfulMessageContext(result);
105
+ if (nextMessageContext)
106
+ currentMessageContext = nextMessageContext;
107
+ results.push({ action: operation.action, result });
108
+ }
109
+ return { ok: true, results };
110
+ }
111
+ async function executeActionToolOperation(params) {
112
+ const { operation, descriptor, messageContextStore, actionExecutor, ctx, interruptCtx, allowSuspend, } = params;
113
+ const persistence = ctx.persistence;
114
+ const message = parseMessage(operation.input.message);
115
+ const actionInput = message === undefined ? operation.input : { ...operation.input, message };
116
+ const awaitsResponse = shouldAwaitResponse(message);
117
+ if (awaitsResponse && !allowSuspend) {
118
+ return {
119
+ ok: false,
120
+ error: {
121
+ code: integration_error_codes_1.INTEGRATION_ERROR_CODES.ACTION_FAILED,
122
+ message: 'Batch actions cannot include cards that wait for a user response. Send that action separately.',
123
+ },
124
+ };
125
+ }
126
+ let currentMessageContext = params.currentMessageContext;
127
+ if (operation.action === 'respond') {
128
+ if (!currentMessageContext) {
129
+ const contextResult = await getRespondContext({
130
+ descriptor,
131
+ messageContextStore,
132
+ persistence,
133
+ });
134
+ if (!contextResult.ok) {
135
+ return contextResult;
136
+ }
137
+ currentMessageContext = contextResult.context;
138
+ }
139
+ }
140
+ else if (!currentMessageContext && persistence) {
141
+ currentMessageContext = await getOptionalCurrentContext({
142
+ descriptor,
143
+ messageContextStore,
144
+ threadId: persistence.threadId,
145
+ });
146
+ }
147
+ const result = await actionExecutor.execute({
148
+ descriptor,
149
+ action: operation.action,
150
+ input: actionInput,
151
+ awaitResponse: awaitsResponse,
152
+ runId: ctx.runId,
153
+ toolCallId: ctx.toolCallId,
154
+ currentMessageContext,
155
+ });
156
+ if (!result.ok)
157
+ return result;
158
+ let actionResult = result;
159
+ if (result.messageContext && persistence) {
160
+ const messageContext = withPreviousSubject(result.messageContext, currentMessageContext);
161
+ await messageContextStore.setLatest(persistence.threadId, persistence.resourceId, messageContext);
162
+ actionResult = { ...result, messageContext };
163
+ }
164
+ if (!awaitsResponse)
165
+ return actionResult;
166
+ return await interruptCtx?.suspend({
167
+ type: 'integration_action',
168
+ action: operation.action,
169
+ integrationConnectionId: descriptor.integrationConnectionId,
170
+ messageContext: actionResult.messageContext,
171
+ });
172
+ }
173
+ function isCurrentContextQuery(query) {
174
+ return (query === 'get_current_message_context' ||
175
+ query === 'get_current_subject' ||
176
+ query === 'get_current_user' ||
177
+ query === 'get_current_channel_info');
178
+ }
179
+ function parseMessage(value) {
180
+ const result = integration_tool_definitions_1.messageSchema.safeParse(value);
181
+ return result.success ? result.data : undefined;
182
+ }
183
+ function shouldAwaitResponse(message) {
184
+ const card = message?.card;
185
+ if (card?.awaitResponse === true)
186
+ return true;
187
+ return card?.components.some(isInteractiveCardComponent) ?? false;
188
+ }
189
+ function isInteractiveCardComponent(component) {
190
+ switch (component.type) {
191
+ case 'button':
192
+ case 'select':
193
+ case 'radio_select':
194
+ return true;
195
+ case 'section':
196
+ return component.button !== undefined;
197
+ default:
198
+ return false;
199
+ }
200
+ }
201
+ function withPreviousSubject(context, previousContext) {
202
+ if (!previousContext)
203
+ return context;
204
+ if (context.integrationConnectionId !== previousContext.integrationConnectionId)
205
+ return context;
206
+ return {
207
+ ...context,
208
+ ...(!context.subject && previousContext.subject ? { subject: previousContext.subject } : {}),
209
+ ...(!context.agentUserId && previousContext.agentUserId
210
+ ? { agentUserId: previousContext.agentUserId }
211
+ : {}),
212
+ };
213
+ }
214
+ function extractSuccessfulMessageContext(result) {
215
+ if (!(0, utils_1.isRecord)(result) || result.ok !== true)
216
+ return undefined;
217
+ const messageContext = result.messageContext;
218
+ return isIntegrationMessageContext(messageContext) ? messageContext : undefined;
219
+ }
220
+ function isIntegrationMessageContext(value) {
221
+ return ((0, utils_1.isRecord)(value) &&
222
+ typeof value.integrationConnectionId === 'string' &&
223
+ typeof value.platform === 'string' &&
224
+ (0, utils_1.isRecord)(value.target) &&
225
+ (value.agentUserId === undefined || typeof value.agentUserId === 'string') &&
226
+ typeof value.updatedAt === 'string');
227
+ }
228
+ async function getOptionalCurrentContext(params) {
229
+ try {
230
+ const context = await params.messageContextStore.getLatest(params.threadId);
231
+ if (context?.integrationConnectionId !== params.descriptor.integrationConnectionId) {
232
+ return undefined;
233
+ }
234
+ return context;
235
+ }
236
+ catch {
237
+ return undefined;
238
+ }
239
+ }
240
+ async function getRespondContext(params) {
241
+ const { descriptor, messageContextStore, persistence } = params;
242
+ if (!persistence) {
243
+ return {
244
+ ok: false,
245
+ error: {
246
+ code: integration_error_codes_1.INTEGRATION_ERROR_CODES.NO_MESSAGE_CONTEXT,
247
+ message: 'There is no current message context. Use an explicit send action.',
248
+ },
249
+ };
250
+ }
251
+ const context = await messageContextStore.getLatest(persistence.threadId);
252
+ if (!context) {
253
+ return {
254
+ ok: false,
255
+ error: {
256
+ code: integration_error_codes_1.INTEGRATION_ERROR_CODES.NO_MESSAGE_CONTEXT,
257
+ message: 'There is no current message context. Use an explicit send action.',
258
+ },
259
+ };
260
+ }
261
+ if (context.integrationConnectionId !== descriptor.integrationConnectionId) {
262
+ return {
263
+ ok: false,
264
+ error: {
265
+ code: integration_error_codes_1.INTEGRATION_ERROR_CODES.NO_MESSAGE_CONTEXT_FOR_INTEGRATION,
266
+ message: 'The latest message context belongs to another integration connection.',
267
+ },
268
+ };
269
+ }
270
+ return { ok: true, context };
271
+ }
272
+ function getTargetChannelId(target) {
273
+ if (target.type === 'thread' || target.type === 'channel') {
274
+ return target.channelId;
275
+ }
276
+ return undefined;
277
+ }
278
+ //# sourceMappingURL=integration-tool-execution.js.map