n8n 2.23.2 → 2.25.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 (559) hide show
  1. package/dist/active-workflow-manager.d.ts +8 -4
  2. package/dist/active-workflow-manager.js +26 -9
  3. package/dist/active-workflow-manager.js.map +1 -1
  4. package/dist/auth/auth.service.d.ts +1 -1
  5. package/dist/auth/auth.service.js +2 -1
  6. package/dist/auth/auth.service.js.map +1 -1
  7. package/dist/build.tsbuildinfo +1 -1
  8. package/dist/controllers/ai.controller.js +1 -1
  9. package/dist/controllers/ai.controller.js.map +1 -1
  10. package/dist/controllers/api-keys.controller.d.ts +20 -15
  11. package/dist/controllers/api-keys.controller.js +7 -4
  12. package/dist/controllers/api-keys.controller.js.map +1 -1
  13. package/dist/controllers/oauth/oauth1-credential.controller.d.ts +4 -2
  14. package/dist/controllers/oauth/oauth1-credential.controller.js +15 -5
  15. package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
  16. package/dist/controllers/oauth/oauth2-credential.controller.d.ts +4 -2
  17. package/dist/controllers/oauth/oauth2-credential.controller.js +15 -6
  18. package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
  19. package/dist/controllers/project.controller.d.ts +8 -0
  20. package/dist/controllers/project.controller.js +2 -1
  21. package/dist/controllers/project.controller.js.map +1 -1
  22. package/dist/controllers/security-settings.controller.js +18 -1
  23. package/dist/controllers/security-settings.controller.js.map +1 -1
  24. package/dist/controllers/telemetry.controller.js +4 -1
  25. package/dist/controllers/telemetry.controller.js.map +1 -1
  26. package/dist/credentials/credential-connection-status-provider.interface.d.ts +3 -0
  27. package/dist/credentials/credential-connection-status-proxy.d.ts +3 -0
  28. package/dist/credentials/credential-connection-status-proxy.js +10 -0
  29. package/dist/credentials/credential-connection-status-proxy.js.map +1 -1
  30. package/dist/credentials/credentials.controller.d.ts +6 -0
  31. package/dist/credentials/credentials.controller.js +39 -2
  32. package/dist/credentials/credentials.controller.js.map +1 -1
  33. package/dist/credentials/credentials.service.d.ts +29 -13
  34. package/dist/credentials/credentials.service.ee.d.ts +2 -0
  35. package/dist/credentials/credentials.service.ee.js +3 -0
  36. package/dist/credentials/credentials.service.ee.js.map +1 -1
  37. package/dist/credentials/credentials.service.js +27 -6
  38. package/dist/credentials/credentials.service.js.map +1 -1
  39. package/dist/credentials-helper.d.ts +1 -0
  40. package/dist/credentials-helper.js +14 -4
  41. package/dist/credentials-helper.js.map +1 -1
  42. package/dist/errors/credential-missing-id.error.d.ts +4 -0
  43. package/dist/errors/credential-missing-id.error.js +14 -0
  44. package/dist/errors/credential-missing-id.error.js.map +1 -0
  45. package/dist/eventbus/event-message-classes/index.d.ts +2 -2
  46. package/dist/eventbus/event-message-classes/index.js +3 -0
  47. package/dist/eventbus/event-message-classes/index.js.map +1 -1
  48. package/dist/events/maps/relay.event-map.d.ts +54 -2
  49. package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
  50. package/dist/events/relays/log-streaming.event-relay.js +39 -1
  51. package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
  52. package/dist/events/relays/telemetry.event-relay.d.ts +6 -0
  53. package/dist/events/relays/telemetry.event-relay.js +74 -3
  54. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  55. package/dist/execution-lifecycle/execution-lifecycle-hooks.js +6 -5
  56. package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
  57. package/dist/executions/execution-data/db-store.d.ts +1 -0
  58. package/dist/executions/execution-data/db-store.js +26 -0
  59. package/dist/executions/execution-data/db-store.js.map +1 -1
  60. package/dist/executions/execution-data/fs-store.d.ts +2 -0
  61. package/dist/executions/execution-data/fs-store.js +27 -0
  62. package/dist/executions/execution-data/fs-store.js.map +1 -1
  63. package/dist/executions/execution-data/types.d.ts +1 -0
  64. package/dist/executions/execution-persistence.d.ts +38 -4
  65. package/dist/executions/execution-persistence.js +127 -2
  66. package/dist/executions/execution-persistence.js.map +1 -1
  67. package/dist/expression-observability/expression-observability.provider.d.ts +3 -1
  68. package/dist/expression-observability/expression-observability.provider.js +48 -46
  69. package/dist/expression-observability/expression-observability.provider.js.map +1 -1
  70. package/dist/interfaces.d.ts +3 -1
  71. package/dist/modules/agents/agent-execution.service.d.ts +4 -2
  72. package/dist/modules/agents/agent-execution.service.js +3 -3
  73. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  74. package/dist/modules/agents/agent-knowledge-command.service.d.ts +40 -0
  75. package/dist/modules/agents/agent-knowledge-command.service.js +221 -0
  76. package/dist/modules/agents/agent-knowledge-command.service.js.map +1 -0
  77. package/dist/modules/agents/agent-knowledge.service.d.ts +42 -0
  78. package/dist/modules/agents/agent-knowledge.service.js +300 -0
  79. package/dist/modules/agents/agent-knowledge.service.js.map +1 -0
  80. package/dist/modules/agents/agent-task.service.d.ts +52 -0
  81. package/dist/modules/agents/agent-task.service.js +487 -0
  82. package/dist/modules/agents/agent-task.service.js.map +1 -0
  83. package/dist/modules/agents/agent-upload.middleware.d.ts +7 -0
  84. package/dist/modules/agents/agent-upload.middleware.js +62 -0
  85. package/dist/modules/agents/agent-upload.middleware.js.map +1 -0
  86. package/dist/modules/agents/agents-tools.service.d.ts +1 -1
  87. package/dist/modules/agents/agents-tools.service.js +12 -3
  88. package/dist/modules/agents/agents-tools.service.js.map +1 -1
  89. package/dist/modules/agents/agents.controller.d.ts +138 -45
  90. package/dist/modules/agents/agents.controller.js +176 -48
  91. package/dist/modules/agents/agents.controller.js.map +1 -1
  92. package/dist/modules/agents/agents.module.d.ts +2 -2
  93. package/dist/modules/agents/agents.module.js +13 -5
  94. package/dist/modules/agents/agents.module.js.map +1 -1
  95. package/dist/modules/agents/agents.service.d.ts +43 -7
  96. package/dist/modules/agents/agents.service.js +341 -57
  97. package/dist/modules/agents/agents.service.js.map +1 -1
  98. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +6 -5
  99. package/dist/modules/agents/builder/agents-builder-prompts.js +92 -18
  100. package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
  101. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +11 -1
  102. package/dist/modules/agents/builder/agents-builder-tools.service.js +164 -26
  103. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  104. package/dist/modules/agents/builder/agents-builder.service.d.ts +3 -1
  105. package/dist/modules/agents/builder/agents-builder.service.js +8 -3
  106. package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
  107. package/dist/modules/agents/builder/builder-tool-names.d.ts +3 -0
  108. package/dist/modules/agents/builder/builder-tool-names.js +3 -0
  109. package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
  110. package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +1 -0
  111. package/dist/modules/agents/builder/interactive/ask-credential.tool.js +25 -4
  112. package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
  113. package/dist/modules/agents/builder/interactive/ask-question.tool.js +6 -5
  114. package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
  115. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +20 -5
  116. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
  117. package/dist/modules/agents/builder/prompts/config-rules.prompt.js +23 -4
  118. package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
  119. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +18 -1
  120. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +1 -1
  121. package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +1 -1
  122. package/dist/modules/agents/builder/prompts/memory.prompt.js +5 -3
  123. package/dist/modules/agents/builder/prompts/memory.prompt.js.map +1 -1
  124. package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -1
  125. package/dist/modules/agents/builder/prompts/tools.prompt.js +11 -2
  126. package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -1
  127. package/dist/modules/agents/builder/search-mcp-servers.tool.d.ts +6 -0
  128. package/dist/modules/agents/builder/search-mcp-servers.tool.js +85 -0
  129. package/dist/modules/agents/builder/search-mcp-servers.tool.js.map +1 -0
  130. package/dist/modules/agents/builder/skill-body-template.d.ts +4 -0
  131. package/dist/modules/agents/builder/skill-body-template.js +31 -0
  132. package/dist/modules/agents/builder/skill-body-template.js.map +1 -0
  133. package/dist/modules/agents/builder/skills/index.js +6 -1
  134. package/dist/modules/agents/builder/skills/index.js.map +1 -1
  135. package/dist/modules/agents/builder/skills/integrations.skill.js +39 -18
  136. package/dist/modules/agents/builder/skills/integrations.skill.js.map +1 -1
  137. package/dist/modules/agents/builder/skills/mcp.skill.d.ts +2 -0
  138. package/dist/modules/agents/builder/skills/mcp.skill.js +110 -0
  139. package/dist/modules/agents/builder/skills/mcp.skill.js.map +1 -0
  140. package/dist/modules/agents/builder/skills/research.skill.js +8 -5
  141. package/dist/modules/agents/builder/skills/research.skill.js.map +1 -1
  142. package/dist/modules/agents/builder/skills/target-skills.skill.js +41 -13
  143. package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
  144. package/dist/modules/agents/builder/skills/target-tasks.skill.d.ts +2 -0
  145. package/dist/modules/agents/builder/skills/target-tasks.skill.js +82 -0
  146. package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -0
  147. package/dist/modules/agents/builder/task-objective-template.d.ts +3 -0
  148. package/dist/modules/agents/builder/task-objective-template.js +27 -0
  149. package/dist/modules/agents/builder/task-objective-template.js.map +1 -0
  150. package/dist/modules/agents/builder/verify-mcp-server.tool.d.ts +8 -0
  151. package/dist/modules/agents/builder/verify-mcp-server.tool.js +79 -0
  152. package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -0
  153. package/dist/modules/agents/entities/agent-execution-thread.entity.d.ts +4 -0
  154. package/dist/modules/agents/entities/agent-execution-thread.entity.js +26 -0
  155. package/dist/modules/agents/entities/agent-execution-thread.entity.js.map +1 -1
  156. package/dist/modules/agents/entities/agent-file.entity.d.ts +11 -0
  157. package/dist/modules/agents/entities/agent-file.entity.js +48 -0
  158. package/dist/modules/agents/entities/agent-file.entity.js.map +1 -0
  159. package/dist/modules/agents/entities/agent-task-run-lock.entity.d.ts +10 -0
  160. package/dist/modules/agents/entities/agent-task-run-lock.entity.js +54 -0
  161. package/dist/modules/agents/entities/agent-task-run-lock.entity.js.map +1 -0
  162. package/dist/modules/agents/entities/agent-task-snapshot.entity.d.ts +12 -0
  163. package/dist/modules/agents/entities/agent-task-snapshot.entity.js +70 -0
  164. package/dist/modules/agents/entities/agent-task-snapshot.entity.js.map +1 -0
  165. package/dist/modules/agents/entities/agent-task.entity.d.ts +11 -0
  166. package/dist/modules/agents/entities/agent-task.entity.js +64 -0
  167. package/dist/modules/agents/entities/agent-task.entity.js.map +1 -0
  168. package/dist/modules/agents/execution-recorder.d.ts +1 -0
  169. package/dist/modules/agents/execution-recorder.js +9 -5
  170. package/dist/modules/agents/execution-recorder.js.map +1 -1
  171. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +16 -4
  172. package/dist/modules/agents/integrations/agent-chat-bridge.js +372 -116
  173. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  174. package/dist/modules/agents/integrations/agent-chat-integration.d.ts +27 -2
  175. package/dist/modules/agents/integrations/agent-chat-integration.js +5 -0
  176. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  177. package/dist/modules/agents/integrations/chat-integration.service.d.ts +15 -6
  178. package/dist/modules/agents/integrations/chat-integration.service.js +9 -10
  179. package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
  180. package/dist/modules/agents/integrations/component-mapper.d.ts +14 -0
  181. package/dist/modules/agents/integrations/component-mapper.js +9 -1
  182. package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
  183. package/dist/modules/agents/integrations/integration-action-executor.d.ts +22 -0
  184. package/dist/modules/agents/integrations/integration-action-executor.js +171 -0
  185. package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -0
  186. package/dist/modules/agents/integrations/integration-context-query-executor.d.ts +18 -0
  187. package/dist/modules/agents/integrations/integration-context-query-executor.js +58 -0
  188. package/dist/modules/agents/integrations/integration-context-query-executor.js.map +1 -0
  189. package/dist/modules/agents/integrations/integration-error-codes.d.ts +13 -0
  190. package/dist/modules/agents/integrations/integration-error-codes.js +16 -0
  191. package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -0
  192. package/dist/modules/agents/integrations/integration-helpers.d.ts +21 -0
  193. package/dist/modules/agents/integrations/integration-helpers.js +72 -0
  194. package/dist/modules/agents/integrations/integration-helpers.js.map +1 -0
  195. package/dist/modules/agents/integrations/integration-message-context.service.d.ts +13 -0
  196. package/dist/modules/agents/integrations/integration-message-context.service.js +129 -0
  197. package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -0
  198. package/dist/modules/agents/integrations/integration-tools.d.ts +205 -0
  199. package/dist/modules/agents/integrations/integration-tools.js +955 -0
  200. package/dist/modules/agents/integrations/integration-tools.js.map +1 -0
  201. package/dist/modules/agents/integrations/integrations-sync.d.ts +1 -1
  202. package/dist/modules/agents/integrations/integrations-sync.js +1 -29
  203. package/dist/modules/agents/integrations/integrations-sync.js.map +1 -1
  204. package/dist/modules/agents/integrations/n8n-memory.d.ts +2 -0
  205. package/dist/modules/agents/integrations/n8n-memory.js +18 -11
  206. package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
  207. package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +13 -2
  208. package/dist/modules/agents/integrations/platforms/linear-integration.js +70 -15
  209. package/dist/modules/agents/integrations/platforms/linear-integration.js.map +1 -1
  210. package/dist/modules/agents/integrations/platforms/linear-operations.d.ts +18 -0
  211. package/dist/modules/agents/integrations/platforms/linear-operations.js +679 -0
  212. package/dist/modules/agents/integrations/platforms/linear-operations.js.map +1 -0
  213. package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +11 -1
  214. package/dist/modules/agents/integrations/platforms/slack-integration.js +53 -1
  215. package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
  216. package/dist/modules/agents/integrations/platforms/slack-operations.d.ts +17 -0
  217. package/dist/modules/agents/integrations/platforms/slack-operations.js +288 -0
  218. package/dist/modules/agents/integrations/platforms/slack-operations.js.map +1 -0
  219. package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +9 -2
  220. package/dist/modules/agents/integrations/platforms/telegram-integration.js +17 -0
  221. package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
  222. package/dist/modules/agents/integrations/slack-app-setup.service.js +7 -1
  223. package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
  224. package/dist/modules/agents/json-config/from-json-config.d.ts +4 -2
  225. package/dist/modules/agents/json-config/from-json-config.js +88 -11
  226. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  227. package/dist/modules/agents/json-config/mcp-client-factory.d.ts +16 -0
  228. package/dist/modules/agents/json-config/mcp-client-factory.js +155 -0
  229. package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -0
  230. package/dist/modules/agents/json-config/native-web-search-provider-tools.d.ts +8 -0
  231. package/dist/modules/agents/json-config/native-web-search-provider-tools.js +59 -0
  232. package/dist/modules/agents/json-config/native-web-search-provider-tools.js.map +1 -0
  233. package/dist/modules/agents/json-config/schema-text-serializer.js +12 -2
  234. package/dist/modules/agents/json-config/schema-text-serializer.js.map +1 -1
  235. package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +1 -1
  236. package/dist/modules/agents/repositories/agent-execution-thread.repository.js +5 -3
  237. package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
  238. package/dist/modules/agents/repositories/agent-file.repository.d.ts +7 -0
  239. package/dist/modules/agents/repositories/agent-file.repository.js +35 -0
  240. package/dist/modules/agents/repositories/agent-file.repository.js.map +1 -0
  241. package/dist/modules/agents/repositories/agent-history.repository.d.ts +2 -0
  242. package/dist/modules/agents/repositories/agent-history.repository.js +18 -0
  243. package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
  244. package/dist/modules/agents/repositories/agent-task-run-lock.repository.d.ts +12 -0
  245. package/dist/modules/agents/repositories/agent-task-run-lock.repository.js +72 -0
  246. package/dist/modules/agents/repositories/agent-task-run-lock.repository.js.map +1 -0
  247. package/dist/modules/agents/repositories/agent-task-snapshot.repository.d.ts +11 -0
  248. package/dist/modules/agents/repositories/agent-task-snapshot.repository.js +45 -0
  249. package/dist/modules/agents/repositories/agent-task-snapshot.repository.js.map +1 -0
  250. package/dist/modules/agents/repositories/agent-task.repository.d.ts +7 -0
  251. package/dist/modules/agents/repositories/agent-task.repository.js +32 -0
  252. package/dist/modules/agents/repositories/agent-task.repository.js.map +1 -0
  253. package/dist/modules/agents/repositories/agent.repository.js +1 -2
  254. package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
  255. package/dist/modules/agents/tools/knowledge/csv-helpers.d.ts +73 -0
  256. package/dist/modules/agents/tools/knowledge/csv-helpers.js +341 -0
  257. package/dist/modules/agents/tools/knowledge/csv-helpers.js.map +1 -0
  258. package/dist/modules/agents/tools/knowledge/csv.operation.d.ts +61 -0
  259. package/dist/modules/agents/tools/knowledge/csv.operation.js +207 -0
  260. package/dist/modules/agents/tools/knowledge/csv.operation.js.map +1 -0
  261. package/dist/modules/agents/tools/knowledge/file-references.d.ts +16 -0
  262. package/dist/modules/agents/tools/knowledge/file-references.js +35 -0
  263. package/dist/modules/agents/tools/knowledge/file-references.js.map +1 -0
  264. package/dist/modules/agents/tools/knowledge/read.operation.d.ts +8 -0
  265. package/dist/modules/agents/tools/knowledge/read.operation.js +38 -0
  266. package/dist/modules/agents/tools/knowledge/read.operation.js.map +1 -0
  267. package/dist/modules/agents/tools/knowledge/schemas.d.ts +1505 -0
  268. package/dist/modules/agents/tools/knowledge/schemas.js +441 -0
  269. package/dist/modules/agents/tools/knowledge/schemas.js.map +1 -0
  270. package/dist/modules/agents/tools/knowledge/search.operation.d.ts +9 -0
  271. package/dist/modules/agents/tools/knowledge/search.operation.js +332 -0
  272. package/dist/modules/agents/tools/knowledge/search.operation.js.map +1 -0
  273. package/dist/modules/agents/tools/knowledge/tool.d.ts +8 -0
  274. package/dist/modules/agents/tools/knowledge/tool.js +121 -0
  275. package/dist/modules/agents/tools/knowledge/tool.js.map +1 -0
  276. package/dist/modules/agents/utils/agent-memory-scope.d.ts +1 -1
  277. package/dist/modules/agents/utils/agent-memory-scope.js +4 -4
  278. package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
  279. package/dist/modules/agents/utils/agent-resource-id.d.ts +1 -1
  280. package/dist/modules/chat-hub/chat-hub.module.d.ts +2 -2
  281. package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +4 -4
  282. package/dist/modules/chat-hub/chat-hub.types.d.ts +5 -5
  283. package/dist/modules/chat-hub/dto/chat-models-request.dto.d.ts +1 -1
  284. package/dist/modules/dynamic-credentials.ee/constants.d.ts +1 -1
  285. package/dist/modules/dynamic-credentials.ee/constants.js +2 -1
  286. package/dist/modules/dynamic-credentials.ee/constants.js.map +1 -1
  287. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.d.ts +9 -2
  288. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +45 -14
  289. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
  290. package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.d.ts +4 -0
  291. package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js +16 -0
  292. package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js.map +1 -1
  293. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +6 -2
  294. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
  295. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.d.ts +1 -0
  296. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js +21 -2
  297. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js.map +1 -1
  298. package/dist/modules/instance-ai/eval/execution.service.d.ts +4 -1
  299. package/dist/modules/instance-ai/eval/execution.service.js +118 -24
  300. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  301. package/dist/modules/instance-ai/eval/llm-wire-server.d.ts +8 -3
  302. package/dist/modules/instance-ai/eval/llm-wire-server.js +147 -50
  303. package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -1
  304. package/dist/modules/instance-ai/eval/mock-handler.js +45 -8
  305. package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
  306. package/dist/modules/instance-ai/eval/mock-quirks.d.ts +4 -2
  307. package/dist/modules/instance-ai/eval/mock-quirks.js +83 -4
  308. package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -1
  309. package/dist/modules/instance-ai/eval/openai-envelope.d.ts +8 -0
  310. package/dist/modules/instance-ai/eval/openai-envelope.js +121 -8
  311. package/dist/modules/instance-ai/eval/openai-envelope.js.map +1 -1
  312. package/dist/modules/instance-ai/eval/openai-responses-envelope.d.ts +11 -0
  313. package/dist/modules/instance-ai/eval/openai-responses-envelope.js +238 -0
  314. package/dist/modules/instance-ai/eval/openai-responses-envelope.js.map +1 -0
  315. package/dist/modules/instance-ai/eval/request-binary-redactor.d.ts +1 -0
  316. package/dist/modules/instance-ai/eval/request-binary-redactor.js +74 -0
  317. package/dist/modules/instance-ai/eval/request-binary-redactor.js.map +1 -0
  318. package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +19 -1
  319. package/dist/modules/instance-ai/eval/workflow-analysis.js +159 -76
  320. package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
  321. package/dist/modules/instance-ai/extract-resolved-node-parameters.d.ts +7 -0
  322. package/dist/modules/instance-ai/extract-resolved-node-parameters.js +221 -0
  323. package/dist/modules/instance-ai/extract-resolved-node-parameters.js.map +1 -0
  324. package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +7 -1
  325. package/dist/modules/instance-ai/instance-ai-memory.service.js +80 -3
  326. package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
  327. package/dist/modules/instance-ai/instance-ai-settings.service.js +1 -16
  328. package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
  329. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +1 -1
  330. package/dist/modules/instance-ai/instance-ai.adapter.service.js +67 -7
  331. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  332. package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
  333. package/dist/modules/instance-ai/instance-ai.service.d.ts +24 -1
  334. package/dist/modules/instance-ai/instance-ai.service.js +400 -26
  335. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  336. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +1 -0
  337. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +1 -0
  338. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
  339. package/dist/modules/instance-ai/message-parser.d.ts +2 -0
  340. package/dist/modules/instance-ai/message-parser.js +165 -36
  341. package/dist/modules/instance-ai/message-parser.js.map +1 -1
  342. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.d.ts +2 -0
  343. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js +13 -0
  344. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -1
  345. package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.d.ts +12 -0
  346. package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js +80 -0
  347. package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js.map +1 -0
  348. package/dist/modules/instance-ai/storage/db-snapshot-storage.d.ts +1 -0
  349. package/dist/modules/instance-ai/storage/db-snapshot-storage.js +23 -0
  350. package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
  351. package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.d.ts +10 -4
  352. package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js +49 -37
  353. package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -1
  354. package/dist/modules/instance-ai/web-research/index.d.ts +0 -2
  355. package/dist/modules/instance-ai/web-research/index.js +1 -5
  356. package/dist/modules/instance-ai/web-research/index.js.map +1 -1
  357. package/dist/modules/ldap.ee/helpers.ee.js +6 -2
  358. package/dist/modules/ldap.ee/helpers.ee.js.map +1 -1
  359. package/dist/modules/mcp/mcp.controller.js +13 -6
  360. package/dist/modules/mcp/mcp.controller.js.map +1 -1
  361. package/dist/modules/mcp/mcp.service.d.ts +10 -2
  362. package/dist/modules/mcp/mcp.service.js +39 -6
  363. package/dist/modules/mcp/mcp.service.js.map +1 -1
  364. package/dist/modules/mcp/mcp.settings.controller.d.ts +2 -0
  365. package/dist/modules/mcp/mcp.settings.service.d.ts +2 -0
  366. package/dist/modules/mcp/mcp.settings.service.js +6 -5
  367. package/dist/modules/mcp/mcp.settings.service.js.map +1 -1
  368. package/dist/modules/mcp/mcp.types.d.ts +6 -0
  369. package/dist/modules/mcp/mcp.types.js +9 -0
  370. package/dist/modules/mcp/mcp.types.js.map +1 -1
  371. package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +6 -6
  372. package/dist/modules/mcp/tools/search-workflows.tool.d.ts +2 -1
  373. package/dist/modules/mcp/tools/search-workflows.tool.js +12 -4
  374. package/dist/modules/mcp/tools/search-workflows.tool.js.map +1 -1
  375. package/dist/modules/mcp/tools/workflow-builder/constants.d.ts +1 -1
  376. package/dist/modules/mcp/tools/workflow-builder/constants.js +2 -1
  377. package/dist/modules/mcp/tools/workflow-builder/constants.js.map +1 -1
  378. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +6 -4
  379. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
  380. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +67 -6
  381. package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.d.ts +30 -0
  382. package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js +161 -0
  383. package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js.map +1 -0
  384. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +67 -6
  385. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +51 -0
  386. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
  387. package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -1
  388. package/dist/modules/mcp-registry/synthesize-type-def.d.ts +2 -0
  389. package/dist/modules/mcp-registry/synthesize-type-def.js +35 -0
  390. package/dist/modules/mcp-registry/synthesize-type-def.js.map +1 -0
  391. package/dist/modules/n8n-packages/engine/import-pipeline.d.ts +24 -0
  392. package/dist/modules/n8n-packages/engine/import-pipeline.js +206 -0
  393. package/dist/modules/n8n-packages/engine/import-pipeline.js.map +1 -0
  394. package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.d.ts +6 -0
  395. package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js +33 -0
  396. package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js.map +1 -0
  397. package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +23 -0
  398. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +68 -0
  399. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -0
  400. package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +5 -0
  401. package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +25 -0
  402. package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -0
  403. package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +6 -0
  404. package/dist/modules/n8n-packages/entities/credential/credential.types.js +3 -0
  405. package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -0
  406. package/dist/modules/n8n-packages/entities/requirements-extractor.d.ts +4 -0
  407. package/dist/modules/n8n-packages/entities/requirements-extractor.js +3 -0
  408. package/dist/modules/n8n-packages/entities/requirements-extractor.js.map +1 -0
  409. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +12 -3
  410. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +11 -20
  411. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
  412. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +3 -0
  413. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +10 -0
  414. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
  415. package/dist/modules/n8n-packages/io/package-reader.d.ts +6 -0
  416. package/dist/modules/n8n-packages/io/package-reader.js +3 -0
  417. package/dist/modules/n8n-packages/io/package-reader.js.map +1 -0
  418. package/dist/modules/n8n-packages/io/slug.utils.d.ts +1 -1
  419. package/dist/modules/n8n-packages/io/slug.utils.js +3 -3
  420. package/dist/modules/n8n-packages/io/slug.utils.js.map +1 -1
  421. package/dist/modules/n8n-packages/io/tar/tar-package-reader.d.ts +13 -0
  422. package/dist/modules/n8n-packages/io/tar/tar-package-reader.js +84 -0
  423. package/dist/modules/n8n-packages/io/tar/tar-package-reader.js.map +1 -0
  424. package/dist/modules/n8n-packages/io/unique-filename-allocator.d.ts +7 -0
  425. package/dist/modules/n8n-packages/io/unique-filename-allocator.js +27 -0
  426. package/dist/modules/n8n-packages/io/unique-filename-allocator.js.map +1 -0
  427. package/dist/modules/n8n-packages/n8n-packages.service.d.ts +7 -2
  428. package/dist/modules/n8n-packages/n8n-packages.service.js +21 -3
  429. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  430. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +22 -0
  431. package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +121 -4
  432. package/dist/modules/n8n-packages/spec/manifest.schema.js +22 -3
  433. package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
  434. package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +51 -0
  435. package/dist/modules/n8n-packages/spec/requirements.schema.js +14 -0
  436. package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -0
  437. package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +15 -0
  438. package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +12 -0
  439. package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -0
  440. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +4 -4
  441. package/dist/modules/n8n-packages/utils/import-package-upload.d.ts +13 -0
  442. package/dist/modules/n8n-packages/utils/import-package-upload.js +59 -0
  443. package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -0
  444. package/dist/modules/otel/execution-level-tracer.js +15 -6
  445. package/dist/modules/otel/execution-level-tracer.js.map +1 -1
  446. package/dist/modules/otel/execution-level-tracer.types.d.ts +3 -0
  447. package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
  448. package/dist/modules/otel/otel-lifecycle-handler.d.ts +4 -2
  449. package/dist/modules/otel/otel-lifecycle-handler.js +69 -4
  450. package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
  451. package/dist/modules/otel/otel.config.d.ts +1 -0
  452. package/dist/modules/otel/otel.config.js +5 -0
  453. package/dist/modules/otel/otel.config.js.map +1 -1
  454. package/dist/modules/otel/otel.constants.d.ts +2 -0
  455. package/dist/modules/otel/otel.constants.js +2 -0
  456. package/dist/modules/otel/otel.constants.js.map +1 -1
  457. package/dist/modules/redaction/instance-redaction-enforcement.service.d.ts +4 -0
  458. package/dist/modules/redaction/instance-redaction-enforcement.service.js +8 -0
  459. package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -1
  460. package/dist/modules/redaction/redaction-context-hook.d.ts +9 -0
  461. package/dist/modules/redaction/redaction-context-hook.js +57 -0
  462. package/dist/modules/redaction/redaction-context-hook.js.map +1 -0
  463. package/dist/modules/redaction/redaction.module.js +1 -0
  464. package/dist/modules/redaction/redaction.module.js.map +1 -1
  465. package/dist/modules/source-control.ee/constants.d.ts +1 -0
  466. package/dist/modules/source-control.ee/constants.js +2 -1
  467. package/dist/modules/source-control.ee/constants.js.map +1 -1
  468. package/dist/modules/source-control.ee/source-control-status.service.ee.js +5 -0
  469. package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
  470. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -2
  471. package/dist/modules/source-control.ee/source-control.controller.ee.js +32 -5
  472. package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
  473. package/dist/modules/source-control.ee/source-control.service.ee.js +2 -0
  474. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  475. package/dist/modules/workflow-builder/workflow-builder-session.repository.js +2 -1
  476. package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +1 -1
  477. package/dist/node-catalog/node-catalog.service.d.ts +2 -0
  478. package/dist/node-catalog/node-catalog.service.js +38 -2
  479. package/dist/node-catalog/node-catalog.service.js.map +1 -1
  480. package/dist/oauth/oauth-browser-binding.service.d.ts +18 -0
  481. package/dist/oauth/oauth-browser-binding.service.js +68 -0
  482. package/dist/oauth/oauth-browser-binding.service.js.map +1 -0
  483. package/dist/oauth/oauth.service.d.ts +10 -4
  484. package/dist/oauth/oauth.service.js +87 -4
  485. package/dist/oauth/oauth.service.js.map +1 -1
  486. package/dist/oauth/types.d.ts +1 -0
  487. package/dist/oauth/types.js.map +1 -1
  488. package/dist/public-api/index.js +5 -1
  489. package/dist/public-api/index.js.map +1 -1
  490. package/dist/public-api/types.d.ts +6 -0
  491. package/dist/public-api/v1/handlers/credentials/credentials.service.js +1 -0
  492. package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -1
  493. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +5 -0
  494. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +22 -0
  495. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
  496. package/dist/public-api/v1/openapi.yml +207 -59
  497. package/dist/requests.d.ts +4 -0
  498. package/dist/scaling/constants.d.ts +2 -2
  499. package/dist/scaling/pubsub/pubsub.event-map.d.ts +5 -2
  500. package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
  501. package/dist/services/ai-workflow-builder.service.d.ts +6 -3
  502. package/dist/services/ai-workflow-builder.service.js +13 -5
  503. package/dist/services/ai-workflow-builder.service.js.map +1 -1
  504. package/dist/services/api-key-auth.strategy.d.ts +4 -1
  505. package/dist/services/api-key-auth.strategy.js +18 -2
  506. package/dist/services/api-key-auth.strategy.js.map +1 -1
  507. package/dist/services/ownership.service.d.ts +1 -0
  508. package/dist/services/ownership.service.js +7 -0
  509. package/dist/services/ownership.service.js.map +1 -1
  510. package/dist/services/project.service.ee.d.ts +6 -2
  511. package/dist/services/project.service.ee.js +30 -8
  512. package/dist/services/project.service.ee.js.map +1 -1
  513. package/dist/services/public-api-key.service.d.ts +21 -14
  514. package/dist/services/public-api-key.service.js +14 -9
  515. package/dist/services/public-api-key.service.js.map +1 -1
  516. package/dist/telemetry/index.d.ts +6 -9
  517. package/dist/telemetry/index.js +23 -9
  518. package/dist/telemetry/index.js.map +1 -1
  519. package/dist/webhooks/constants.js +5 -1
  520. package/dist/webhooks/constants.js.map +1 -1
  521. package/dist/webhooks/live-webhooks.d.ts +8 -1
  522. package/dist/webhooks/live-webhooks.js +37 -22
  523. package/dist/webhooks/live-webhooks.js.map +1 -1
  524. package/dist/webhooks/waiting-forms.js +8 -1
  525. package/dist/webhooks/waiting-forms.js.map +1 -1
  526. package/dist/webhooks/webhook-helpers.d.ts +1 -1
  527. package/dist/webhooks/webhook-helpers.js +20 -10
  528. package/dist/webhooks/webhook-helpers.js.map +1 -1
  529. package/dist/webhooks/webhook-request-handler.js +1 -1
  530. package/dist/webhooks/webhook-request-handler.js.map +1 -1
  531. package/dist/workflow-helpers.d.ts +6 -1
  532. package/dist/workflow-helpers.js +9 -1
  533. package/dist/workflow-helpers.js.map +1 -1
  534. package/dist/workflows/workflow-creation.service.d.ts +4 -1
  535. package/dist/workflows/workflow-creation.service.js +12 -3
  536. package/dist/workflows/workflow-creation.service.js.map +1 -1
  537. package/dist/workflows/workflow-execution.service.js +2 -0
  538. package/dist/workflows/workflow-execution.service.js.map +1 -1
  539. package/dist/workflows/workflow-finder.service.d.ts +1 -0
  540. package/dist/workflows/workflow-published-data.service.d.ts +11 -0
  541. package/dist/workflows/workflow-published-data.service.js +39 -0
  542. package/dist/workflows/workflow-published-data.service.js.map +1 -0
  543. package/dist/workflows/workflow-validation.service.d.ts +5 -1
  544. package/dist/workflows/workflow-validation.service.js +55 -2
  545. package/dist/workflows/workflow-validation.service.js.map +1 -1
  546. package/dist/workflows/workflow.service.js +4 -0
  547. package/dist/workflows/workflow.service.js.map +1 -1
  548. package/dist/workflows/workflows.controller.d.ts +8 -0
  549. package/package.json +45 -37
  550. package/templates/form-trigger-completion.handlebars +12 -1
  551. package/dist/modules/agents/integrations/agent-schedule.service.d.ts +0 -30
  552. package/dist/modules/agents/integrations/agent-schedule.service.js +0 -331
  553. package/dist/modules/agents/integrations/agent-schedule.service.js.map +0 -1
  554. package/dist/modules/instance-ai/web-research/brave-search.d.ts +0 -10
  555. package/dist/modules/instance-ai/web-research/brave-search.js +0 -44
  556. package/dist/modules/instance-ai/web-research/brave-search.js.map +0 -1
  557. package/dist/modules/instance-ai/web-research/searxng-search.d.ts +0 -6
  558. package/dist/modules/instance-ai/web-research/searxng-search.js +0 -39
  559. package/dist/modules/instance-ai/web-research/searxng-search.js.map +0 -1
@@ -1,11 +1,12 @@
1
1
  import type { CredentialProvider, StreamChunk, ToolDescriptor } from '@n8n/agents';
2
- import { type AgentCredentialIntegrationConfig, type AgentJsonConfig, type AgentSkill, type AgentSkillMutationResponse, type ChatIntegrationDescriptor, AgentPersistedMessageDto } from '@n8n/api-types';
2
+ import { type AgentIntegrationConfig, type AgentJsonConfig, type AgentSkill, type AgentSkillMutationResponse, type AgentVersionListItemDto, type ChatIntegrationDescriptor, AgentPersistedMessageDto } from '@n8n/api-types';
3
3
  import { Logger } from '@n8n/backend-common';
4
4
  import { AgentsConfig, GlobalConfig } from '@n8n/config';
5
5
  import { ExecutionRepository, ProjectRelationRepository, User, UserRepository, WorkflowRepository } from '@n8n/db';
6
6
  import { type ExecuteAgentData } from 'n8n-workflow';
7
7
  import { ActiveExecutions } from '../../active-executions';
8
8
  import { EphemeralNodeExecutor } from '../../node-execution';
9
+ import { OauthService } from '../../oauth/oauth.service';
9
10
  import type { PubSubCommandMap } from '../../scaling/pubsub/pubsub.event-map';
10
11
  import { Publisher } from '../../scaling/pubsub/publisher.service';
11
12
  import { UrlService } from '../../services/url.service';
@@ -19,9 +20,13 @@ import { Agent } from './entities/agent.entity';
19
20
  import { N8NCheckpointStorage } from './integrations/n8n-checkpoint-storage';
20
21
  import { N8nMemory } from './integrations/n8n-memory';
21
22
  import { AgentHistoryRepository } from './repositories/agent-history.repository';
23
+ import { AgentTaskSnapshotRepository } from './repositories/agent-task-snapshot.repository';
24
+ import { AgentTaskRepository } from './repositories/agent-task.repository';
22
25
  import { AgentRepository } from './repositories/agent.repository';
23
26
  import { AgentSecureRuntime } from './runtime/agent-secure-runtime';
24
27
  import { ChatIntegrationService } from './integrations/chat-integration.service';
28
+ import { AgentKnowledgeCommandService } from './agent-knowledge-command.service';
29
+ import { AgentKnowledgeService } from './agent-knowledge.service';
25
30
  export declare function chatThreadId(agentId: string, userId?: string): string;
26
31
  export interface AgentMemoryScope {
27
32
  threadId: string;
@@ -49,11 +54,27 @@ export interface ResumeForChatConfig {
49
54
  resumeData: unknown;
50
55
  integrationType?: string;
51
56
  }
52
- export interface ExecuteForSchedulePublishedConfig {
57
+ export interface ExecuteForTaskPublishedConfig {
53
58
  agentId: string;
54
59
  projectId: string;
55
60
  message: string;
56
61
  memory: AgentMemoryScope;
62
+ taskId: string;
63
+ taskVersionId: string;
64
+ }
65
+ export interface ExecuteForTaskNowConfig {
66
+ agentId: string;
67
+ projectId: string;
68
+ userId: string;
69
+ message: string;
70
+ memory: AgentMemoryScope;
71
+ taskId: string;
72
+ }
73
+ interface PublishAgentOptions {
74
+ syncIntegrations?: boolean;
75
+ }
76
+ interface SaveCredentialIntegrationOptions {
77
+ broadcast?: boolean;
57
78
  }
58
79
  export declare class AgentsService {
59
80
  private readonly logger;
@@ -74,17 +95,24 @@ export declare class AgentsService {
74
95
  private readonly agentExecutionService;
75
96
  private readonly agentHistoryRepository;
76
97
  private readonly agentSkillsService;
98
+ private readonly agentTaskRepository;
99
+ private readonly agentTaskSnapshotRepository;
77
100
  private readonly publisher;
78
101
  private readonly agentsConfig;
79
102
  private readonly globalConfig;
80
103
  private readonly telemetry;
81
104
  private readonly chatIntegrationService;
105
+ private readonly agentKnowledgeService;
106
+ private readonly agentKnowledgeCommandService;
107
+ private readonly oauthService;
82
108
  private readonly runtimes;
83
109
  private computeRuntimeCacheKey;
84
110
  private clearRuntimes;
85
111
  handleAgentConfigChanged(payload: PubSubCommandMap['agent-config-changed']): void;
86
- constructor(logger: Logger, agentRepository: AgentRepository, projectRelationRepository: ProjectRelationRepository, workflowRunner: WorkflowRunner, activeExecutions: ActiveExecutions, executionRepository: ExecutionRepository, workflowRepository: WorkflowRepository, userRepository: UserRepository, workflowFinderService: WorkflowFinderService, urlService: UrlService, n8nCheckpointStorage: N8NCheckpointStorage, secureRuntime: AgentSecureRuntime, ephemeralNodeExecutor: EphemeralNodeExecutor, agentsToolsService: AgentsToolsService, n8nMemory: N8nMemory, agentExecutionService: AgentExecutionService, agentHistoryRepository: AgentHistoryRepository, agentSkillsService: AgentSkillsService, publisher: Publisher, agentsConfig: AgentsConfig, globalConfig: GlobalConfig, telemetry: Telemetry, chatIntegrationService: ChatIntegrationService);
112
+ constructor(logger: Logger, agentRepository: AgentRepository, projectRelationRepository: ProjectRelationRepository, workflowRunner: WorkflowRunner, activeExecutions: ActiveExecutions, executionRepository: ExecutionRepository, workflowRepository: WorkflowRepository, userRepository: UserRepository, workflowFinderService: WorkflowFinderService, urlService: UrlService, n8nCheckpointStorage: N8NCheckpointStorage, secureRuntime: AgentSecureRuntime, ephemeralNodeExecutor: EphemeralNodeExecutor, agentsToolsService: AgentsToolsService, n8nMemory: N8nMemory, agentExecutionService: AgentExecutionService, agentHistoryRepository: AgentHistoryRepository, agentSkillsService: AgentSkillsService, agentTaskRepository: AgentTaskRepository, agentTaskSnapshotRepository: AgentTaskSnapshotRepository, publisher: Publisher, agentsConfig: AgentsConfig, globalConfig: GlobalConfig, telemetry: Telemetry, chatIntegrationService: ChatIntegrationService, agentKnowledgeService: AgentKnowledgeService, agentKnowledgeCommandService: AgentKnowledgeCommandService, oauthService: OauthService);
87
113
  private isNodeToolsModuleEnabled;
114
+ isKnowledgeBaseModuleEnabled(): boolean;
115
+ private closeAgentResources;
88
116
  private createAgentExecutionCounter;
89
117
  private shouldAttachNodeTools;
90
118
  listChatIntegrations(): ChatIntegrationDescriptor[];
@@ -95,9 +123,12 @@ export declare class AgentsService {
95
123
  updateDescription(agentId: string, projectId: string, description: string, updatedAt?: string): Promise<Agent | null>;
96
124
  findByUser(userId: string): Promise<Agent[]>;
97
125
  findPublishedByUser(userId: string): Promise<Agent[]>;
98
- publishAgent(agentId: string, projectId: string, user: User, versionId?: string): Promise<Agent>;
126
+ publishAgent(agentId: string, projectId: string, user: User, versionId?: string, options?: PublishAgentOptions): Promise<Agent>;
99
127
  unpublishAgent(agentId: string, projectId: string): Promise<Agent>;
100
128
  revertToPublishedAgent(agentId: string, projectId: string): Promise<Agent>;
129
+ revertToVersion(agentId: string, projectId: string, versionId: string): Promise<Agent>;
130
+ hasPublishHistory(agentId: string): Promise<boolean>;
131
+ listPublishHistory(agentId: string, projectId: string, take: number, skip: number): Promise<AgentVersionListItemDto[]>;
101
132
  delete(agentId: string, projectId: string): Promise<boolean>;
102
133
  getConversationHistory(params: {
103
134
  threadId: string;
@@ -114,12 +145,15 @@ export declare class AgentsService {
114
145
  validateAgentIsRunnable(agentId: string, projectId: string, credentialProvider: CredentialProvider): Promise<{
115
146
  missing: string[];
116
147
  }>;
148
+ private validateMemoryWorkerModel;
149
+ private workerCredentialSupportsModel;
117
150
  executeForChat(config: ExecuteForChatConfig): AsyncGenerator<StreamChunk>;
118
151
  getTestChatMessages(agentId: string, userId: string): Promise<import("@n8n/agents").AgentDbMessage[]>;
119
152
  clearTestChatMessages(agentId: string, userId: string): Promise<void>;
120
153
  clearAllTestChatMessages(agentId: string): Promise<void>;
121
154
  executeForChatPublished(config: ExecuteForChatPublishedConfig): AsyncGenerator<StreamChunk>;
122
- executeForSchedulePublished(config: ExecuteForSchedulePublishedConfig): AsyncGenerator<StreamChunk>;
155
+ executeForTaskPublished(config: ExecuteForTaskPublishedConfig): AsyncGenerator<StreamChunk>;
156
+ executeForTaskNow(config: ExecuteForTaskNowConfig): AsyncGenerator<StreamChunk>;
123
157
  private streamChatResponse;
124
158
  private compileIsolated;
125
159
  executeForWorkflow(agentId: string, message: string, executionId: string, threadId: string, userId: string, projectId: string, telemetryUserId?: string): Promise<ExecuteAgentData>;
@@ -137,9 +171,8 @@ export declare class AgentsService {
137
171
  updatedAt: string;
138
172
  versionId: string | null;
139
173
  }>;
140
- saveCredentialIntegration(agent: Agent, integration: AgentCredentialIntegrationConfig): Promise<Agent>;
174
+ saveCredentialIntegration(agent: Agent, integration: AgentIntegrationConfig, options?: SaveCredentialIntegrationOptions): Promise<Agent>;
141
175
  removeCredentialIntegration(agent: Agent, type: string, credentialId: string): Promise<Agent>;
142
- private validateIntegrationRefs;
143
176
  buildCustomTool(agentId: string, projectId: string, code: string, descriptor: ToolDescriptor): Promise<{
144
177
  ok: boolean;
145
178
  id: string;
@@ -156,5 +189,8 @@ export declare class AgentsService {
156
189
  private validateConfigRefs;
157
190
  private getMissingCustomToolIds;
158
191
  private snapshotConfiguredTools;
192
+ private snapshotConfiguredTasks;
193
+ private restoreTasksFromSnapshot;
159
194
  private reconstructFromConfig;
160
195
  }
196
+ export {};