n8n 2.22.3 → 2.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (628) hide show
  1. package/dist/auth/auth.service.d.ts +2 -0
  2. package/dist/auth/auth.service.js +15 -4
  3. package/dist/auth/auth.service.js.map +1 -1
  4. package/dist/build.tsbuildinfo +1 -1
  5. package/dist/chat/chat-service.types.d.ts +4 -4
  6. package/dist/commands/execute.d.ts +2 -2
  7. package/dist/commands/export/workflow.js +1 -0
  8. package/dist/commands/export/workflow.js.map +1 -1
  9. package/dist/commands/license/info.js +4 -4
  10. package/dist/commands/license/info.js.map +1 -1
  11. package/dist/commands/start.js +21 -1
  12. package/dist/commands/start.js.map +1 -1
  13. package/dist/constants.js +1 -0
  14. package/dist/constants.js.map +1 -1
  15. package/dist/controllers/annotation-tags.controller.ee.d.ts +1 -1
  16. package/dist/controllers/e2e.controller.js +1 -0
  17. package/dist/controllers/e2e.controller.js.map +1 -1
  18. package/dist/controllers/oauth/oauth1-credential.controller.d.ts +1 -1
  19. package/dist/controllers/oauth/oauth1-credential.controller.js +4 -7
  20. package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
  21. package/dist/controllers/oauth/oauth2-credential.controller.js +3 -6
  22. package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
  23. package/dist/controllers/redaction-enforcement-mapper.d.ts +3 -0
  24. package/dist/controllers/redaction-enforcement-mapper.js +27 -0
  25. package/dist/controllers/redaction-enforcement-mapper.js.map +1 -0
  26. package/dist/controllers/security-settings.controller.d.ts +8 -2
  27. package/dist/controllers/security-settings.controller.js +35 -25
  28. package/dist/controllers/security-settings.controller.js.map +1 -1
  29. package/dist/credentials/credential-connection-status-provider.interface.d.ts +3 -0
  30. package/dist/credentials/credential-connection-status-provider.interface.js +3 -0
  31. package/dist/credentials/credential-connection-status-provider.interface.js.map +1 -0
  32. package/dist/credentials/credential-connection-status-proxy.d.ts +6 -0
  33. package/dist/credentials/credential-connection-status-proxy.js +25 -0
  34. package/dist/credentials/credential-connection-status-proxy.js.map +1 -0
  35. package/dist/credentials/credential-resolution-provider.interface.d.ts +1 -0
  36. package/dist/credentials/credentials.controller.d.ts +2 -0
  37. package/dist/credentials/credentials.service.d.ts +10 -1
  38. package/dist/credentials/credentials.service.ee.d.ts +2 -0
  39. package/dist/credentials/credentials.service.ee.js +13 -3
  40. package/dist/credentials/credentials.service.ee.js.map +1 -1
  41. package/dist/credentials/credentials.service.js +34 -7
  42. package/dist/credentials/credentials.service.js.map +1 -1
  43. package/dist/credentials/dynamic-credentials-proxy.d.ts +2 -0
  44. package/dist/credentials/dynamic-credentials-proxy.js +9 -0
  45. package/dist/credentials/dynamic-credentials-proxy.js.map +1 -1
  46. package/dist/credentials-helper.js +2 -1
  47. package/dist/credentials-helper.js.map +1 -1
  48. package/dist/errors/feature-not-licensed.error.d.ts +3 -1
  49. package/dist/errors/feature-not-licensed.error.js +2 -2
  50. package/dist/errors/feature-not-licensed.error.js.map +1 -1
  51. package/dist/evaluation.ee/evaluation-collection.service.js +2 -0
  52. package/dist/evaluation.ee/evaluation-collection.service.js.map +1 -1
  53. package/dist/evaluation.ee/insights/eval-insights.controller.ee.d.ts +41 -0
  54. package/dist/evaluation.ee/insights/eval-insights.controller.ee.js +62 -0
  55. package/dist/evaluation.ee/insights/eval-insights.controller.ee.js.map +1 -0
  56. package/dist/evaluation.ee/insights/eval-insights.service.d.ts +25 -0
  57. package/dist/evaluation.ee/insights/eval-insights.service.js +206 -0
  58. package/dist/evaluation.ee/insights/eval-insights.service.js.map +1 -0
  59. package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +3 -2
  60. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +16 -2
  61. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
  62. package/dist/events/relays/telemetry.event-relay.d.ts +3 -1
  63. package/dist/events/relays/telemetry.event-relay.js +9 -3
  64. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  65. package/dist/execution-lifecycle/execution-lifecycle-hooks.d.ts +1 -1
  66. package/dist/execution-lifecycle/execution-lifecycle-hooks.js +4 -2
  67. package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
  68. package/dist/executions/execution-data/db-store.d.ts +4 -2
  69. package/dist/executions/execution-data/db-store.js +9 -4
  70. package/dist/executions/execution-data/db-store.js.map +1 -1
  71. package/dist/executions/execution-data/missing-execution-data.error.d.ts +5 -0
  72. package/dist/executions/execution-data/missing-execution-data.error.js +11 -0
  73. package/dist/executions/execution-data/missing-execution-data.error.js.map +1 -0
  74. package/dist/executions/execution-data/types.d.ts +3 -2
  75. package/dist/executions/execution-data/types.js.map +1 -1
  76. package/dist/executions/execution-persistence.d.ts +12 -3
  77. package/dist/executions/execution-persistence.js +102 -26
  78. package/dist/executions/execution-persistence.js.map +1 -1
  79. package/dist/external-hooks.d.ts +6 -1
  80. package/dist/external-hooks.js.map +1 -1
  81. package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.d.ts +3 -2
  82. package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js +17 -12
  83. package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js.map +1 -1
  84. package/dist/interfaces.d.ts +1 -0
  85. package/dist/license.d.ts +2 -0
  86. package/dist/license.js +6 -0
  87. package/dist/license.js.map +1 -1
  88. package/dist/load-nodes-and-credentials.d.ts +32 -6
  89. package/dist/load-nodes-and-credentials.js +8 -79
  90. package/dist/load-nodes-and-credentials.js.map +1 -1
  91. package/dist/manual-execution.service.js +3 -0
  92. package/dist/manual-execution.service.js.map +1 -1
  93. package/dist/modules/agents/agent-execution.service.js +5 -5
  94. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  95. package/dist/modules/agents/agent-sse-stream.js +17 -1
  96. package/dist/modules/agents/agent-sse-stream.js.map +1 -1
  97. package/dist/modules/agents/agents-tools.service.js +7 -5
  98. package/dist/modules/agents/agents-tools.service.js.map +1 -1
  99. package/dist/modules/agents/agents.controller.d.ts +29 -3
  100. package/dist/modules/agents/agents.controller.js +88 -7
  101. package/dist/modules/agents/agents.controller.js.map +1 -1
  102. package/dist/modules/agents/agents.module.d.ts +1 -1
  103. package/dist/modules/agents/agents.module.js +12 -6
  104. package/dist/modules/agents/agents.module.js.map +1 -1
  105. package/dist/modules/agents/agents.service.d.ts +7 -8
  106. package/dist/modules/agents/agents.service.js +120 -65
  107. package/dist/modules/agents/agents.service.js.map +1 -1
  108. package/dist/modules/agents/builder/agents-builder-model-recommendations.d.ts +1 -1
  109. package/dist/modules/agents/builder/agents-builder-model-recommendations.js +3 -3
  110. package/dist/modules/agents/builder/agents-builder-model-recommendations.js.map +1 -1
  111. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +9 -17
  112. package/dist/modules/agents/builder/agents-builder-prompts.js +145 -549
  113. package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
  114. package/dist/modules/agents/builder/agents-builder-settings.service.js +2 -2
  115. package/dist/modules/agents/builder/agents-builder-settings.service.js.map +1 -1
  116. package/dist/modules/agents/builder/agents-builder-tools.service.js +10 -10
  117. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  118. package/dist/modules/agents/builder/agents-builder.service.d.ts +3 -1
  119. package/dist/modules/agents/builder/agents-builder.service.js +58 -9
  120. package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
  121. package/dist/modules/agents/builder/interactive/ask-credential.tool.js +2 -2
  122. package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
  123. package/dist/modules/agents/builder/interactive/ask-llm.tool.js +2 -2
  124. package/dist/modules/agents/builder/interactive/ask-llm.tool.js.map +1 -1
  125. package/dist/modules/agents/builder/interactive/ask-question.tool.js +2 -2
  126. package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
  127. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +2 -2
  128. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
  129. package/dist/modules/agents/builder/prompts/config-mutation.prompt.d.ts +1 -0
  130. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +132 -0
  131. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -0
  132. package/dist/modules/agents/builder/prompts/config-rules.prompt.d.ts +2 -0
  133. package/dist/modules/agents/builder/prompts/config-rules.prompt.js +63 -0
  134. package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -0
  135. package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +1 -0
  136. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +47 -0
  137. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +1 -0
  138. package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +1 -0
  139. package/dist/modules/agents/builder/prompts/memory.prompt.js +60 -0
  140. package/dist/modules/agents/builder/prompts/memory.prompt.js.map +1 -0
  141. package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -0
  142. package/dist/modules/agents/builder/prompts/tools.prompt.js +81 -0
  143. package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -0
  144. package/dist/modules/agents/builder/skills/index.d.ts +2 -0
  145. package/dist/modules/agents/builder/skills/index.js +12 -0
  146. package/dist/modules/agents/builder/skills/index.js.map +1 -0
  147. package/dist/modules/agents/builder/skills/integrations.skill.d.ts +2 -0
  148. package/dist/modules/agents/builder/skills/integrations.skill.js +53 -0
  149. package/dist/modules/agents/builder/skills/integrations.skill.js.map +1 -0
  150. package/dist/modules/agents/builder/skills/research.skill.d.ts +2 -0
  151. package/dist/modules/agents/builder/skills/research.skill.js +42 -0
  152. package/dist/modules/agents/builder/skills/research.skill.js.map +1 -0
  153. package/dist/modules/agents/builder/skills/target-skills.skill.d.ts +2 -0
  154. package/dist/modules/agents/builder/skills/target-skills.skill.js +59 -0
  155. package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -0
  156. package/dist/modules/agents/entities/{agent-published-version.entity.d.ts → agent-history.entity.d.ts} +4 -7
  157. package/dist/modules/agents/entities/{agent-published-version.entity.js → agent-history.entity.js} +22 -34
  158. package/dist/modules/agents/entities/agent-history.entity.js.map +1 -0
  159. package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.d.ts +7 -0
  160. package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.js +38 -0
  161. package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.js.map +1 -0
  162. package/dist/modules/agents/entities/agent-memory-entry-lock.entity.d.ts +7 -0
  163. package/dist/modules/{instance-ai/entities/instance-ai-workflow-snapshot.entity.js → agents/entities/agent-memory-entry-lock.entity.js} +16 -19
  164. package/dist/modules/agents/entities/agent-memory-entry-lock.entity.js.map +1 -0
  165. package/dist/modules/agents/entities/agent-memory-entry-source.entity.d.ts +9 -0
  166. package/dist/modules/agents/entities/agent-memory-entry-source.entity.js +49 -0
  167. package/dist/modules/agents/entities/agent-memory-entry-source.entity.js.map +1 -0
  168. package/dist/modules/agents/entities/agent-memory-entry.entity.d.ts +15 -0
  169. package/dist/modules/agents/entities/agent-memory-entry.entity.js +65 -0
  170. package/dist/modules/agents/entities/agent-memory-entry.entity.js.map +1 -0
  171. package/dist/modules/agents/entities/agent-observation-cursor.entity.d.ts +2 -3
  172. package/dist/modules/agents/entities/agent-observation-cursor.entity.js +5 -4
  173. package/dist/modules/agents/entities/agent-observation-cursor.entity.js.map +1 -1
  174. package/dist/modules/agents/entities/agent-observation-lock.entity.d.ts +2 -3
  175. package/dist/modules/agents/entities/agent-observation-lock.entity.js +5 -4
  176. package/dist/modules/agents/entities/agent-observation-lock.entity.js.map +1 -1
  177. package/dist/modules/agents/entities/agent-observation.entity.d.ts +2 -3
  178. package/dist/modules/agents/entities/agent-observation.entity.js +6 -5
  179. package/dist/modules/agents/entities/agent-observation.entity.js.map +1 -1
  180. package/dist/modules/agents/entities/agent.entity.d.ts +3 -5
  181. package/dist/modules/agents/entities/agent.entity.js +7 -14
  182. package/dist/modules/agents/entities/agent.entity.js.map +1 -1
  183. package/dist/modules/agents/episodic-memory.d.ts +2 -0
  184. package/dist/modules/agents/episodic-memory.js +12 -0
  185. package/dist/modules/agents/episodic-memory.js.map +1 -0
  186. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +2 -1
  187. package/dist/modules/agents/integrations/agent-chat-bridge.js +19 -5
  188. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  189. package/dist/modules/agents/integrations/agent-schedule.service.js +10 -6
  190. package/dist/modules/agents/integrations/agent-schedule.service.js.map +1 -1
  191. package/dist/modules/agents/integrations/chat-integration.service.js +1 -1
  192. package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
  193. package/dist/modules/agents/integrations/n8n-memory.d.ts +41 -18
  194. package/dist/modules/agents/integrations/n8n-memory.js +519 -77
  195. package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
  196. package/dist/modules/agents/integrations/platforms/slack-integration.js +2 -12
  197. package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
  198. package/dist/modules/agents/integrations/rich-interaction-tool.d.ts +1 -1
  199. package/dist/modules/agents/integrations/rich-interaction-tool.js +2 -2
  200. package/dist/modules/agents/integrations/rich-interaction-tool.js.map +1 -1
  201. package/dist/modules/agents/integrations/slack-app-setup.service.d.ts +52 -0
  202. package/dist/modules/agents/integrations/slack-app-setup.service.js +316 -0
  203. package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -0
  204. package/dist/modules/agents/json-config/from-json-config.d.ts +2 -3
  205. package/dist/modules/agents/json-config/from-json-config.js +76 -61
  206. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  207. package/dist/modules/agents/json-config/schema-text-serializer.js +2 -1
  208. package/dist/modules/agents/json-config/schema-text-serializer.js.map +1 -1
  209. package/dist/modules/agents/repositories/agent-history.repository.d.ts +19 -0
  210. package/dist/modules/agents/repositories/agent-history.repository.js +51 -0
  211. package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -0
  212. package/dist/modules/agents/repositories/agent-memory-entry-cursor.repository.d.ts +5 -0
  213. package/dist/modules/{instance-ai/repositories/instance-ai-workflow-snapshot.repository.js → agents/repositories/agent-memory-entry-cursor.repository.js} +8 -8
  214. package/dist/modules/agents/repositories/agent-memory-entry-cursor.repository.js.map +1 -0
  215. package/dist/modules/agents/repositories/agent-memory-entry-lock.repository.d.ts +5 -0
  216. package/dist/modules/{instance-ai/repositories/instance-ai-observational-memory.repository.js → agents/repositories/agent-memory-entry-lock.repository.js} +8 -8
  217. package/dist/modules/agents/repositories/agent-memory-entry-lock.repository.js.map +1 -0
  218. package/dist/modules/agents/repositories/agent-memory-entry-source.repository.d.ts +5 -0
  219. package/dist/modules/agents/repositories/agent-memory-entry-source.repository.js +26 -0
  220. package/dist/modules/agents/repositories/agent-memory-entry-source.repository.js.map +1 -0
  221. package/dist/modules/agents/repositories/agent-memory-entry.repository.d.ts +5 -0
  222. package/dist/modules/agents/repositories/agent-memory-entry.repository.js +26 -0
  223. package/dist/modules/agents/repositories/agent-memory-entry.repository.js.map +1 -0
  224. package/dist/modules/agents/repositories/agent.repository.js +3 -3
  225. package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
  226. package/dist/modules/agents/runtime/agent-secure-runtime.js +5 -5
  227. package/dist/modules/agents/runtime/agent-secure-runtime.js.map +1 -1
  228. package/dist/modules/agents/tools/environment-tool.d.ts +1 -1
  229. package/dist/modules/agents/tools/environment-tool.js +3 -3
  230. package/dist/modules/agents/tools/environment-tool.js.map +1 -1
  231. package/dist/modules/agents/tools/node-tool-factory.js +5 -5
  232. package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
  233. package/dist/modules/agents/tools/workflow-tool-factory.js +3 -3
  234. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  235. package/dist/modules/agents/tracing/builder-telemetry.d.ts +2 -3
  236. package/dist/modules/agents/tracing/builder-telemetry.js +36 -3
  237. package/dist/modules/agents/tracing/builder-telemetry.js.map +1 -1
  238. package/dist/modules/agents/utils/agent-draft.utils.js +1 -2
  239. package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
  240. package/dist/modules/agents/utils/agent-memory-scope.d.ts +3 -0
  241. package/dist/modules/agents/utils/agent-memory-scope.js +15 -0
  242. package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -0
  243. package/dist/modules/chat-hub/chat-hub.constants.js +4 -0
  244. package/dist/modules/chat-hub/chat-hub.constants.js.map +1 -1
  245. package/dist/modules/chat-hub/context-limits.js +1 -0
  246. package/dist/modules/chat-hub/context-limits.js.map +1 -1
  247. package/dist/modules/dynamic-credentials.ee/constants.d.ts +3 -0
  248. package/dist/modules/dynamic-credentials.ee/constants.js +7 -0
  249. package/dist/modules/dynamic-credentials.ee/constants.js.map +1 -0
  250. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +14 -2
  251. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
  252. package/dist/modules/dynamic-credentials.ee/credential-resolvers.controller.d.ts +2 -2
  253. package/dist/modules/dynamic-credentials.ee/credential-resolvers.controller.js +18 -4
  254. package/dist/modules/dynamic-credentials.ee/credential-resolvers.controller.js.map +1 -1
  255. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.d.ts +1 -1
  256. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +4 -1
  257. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
  258. package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.d.ts +4 -0
  259. package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.js +11 -0
  260. package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.js.map +1 -0
  261. package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.d.ts +7 -0
  262. package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js +40 -0
  263. package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js.map +1 -0
  264. package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.d.ts +3 -1
  265. package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js +6 -3
  266. package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js.map +1 -1
  267. package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.d.ts +2 -0
  268. package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.js +22 -0
  269. package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.js.map +1 -1
  270. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.d.ts +3 -1
  271. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js +7 -3
  272. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js.map +1 -1
  273. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.d.ts +4 -1
  274. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +11 -3
  275. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
  276. package/dist/modules/dynamic-credentials.ee/services/index.d.ts +2 -0
  277. package/dist/modules/dynamic-credentials.ee/services/index.js +2 -0
  278. package/dist/modules/dynamic-credentials.ee/services/index.js.map +1 -1
  279. package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.d.ts +14 -0
  280. package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js +70 -0
  281. package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js.map +1 -0
  282. package/dist/modules/insights/insights-collection.service.js +1 -1
  283. package/dist/modules/insights/insights-collection.service.js.map +1 -1
  284. package/dist/modules/instance-ai/entities/index.d.ts +6 -2
  285. package/dist/modules/instance-ai/entities/index.js +9 -5
  286. package/dist/modules/instance-ai/entities/index.js.map +1 -1
  287. package/dist/modules/instance-ai/entities/instance-ai-checkpoint.entity.d.ts +12 -0
  288. package/dist/modules/instance-ai/entities/instance-ai-checkpoint.entity.js +54 -0
  289. package/dist/modules/instance-ai/entities/instance-ai-checkpoint.entity.js.map +1 -0
  290. package/dist/modules/instance-ai/entities/instance-ai-observation-cursor.entity.d.ts +6 -0
  291. package/dist/modules/instance-ai/entities/instance-ai-observation-cursor.entity.js +33 -0
  292. package/dist/modules/instance-ai/entities/instance-ai-observation-cursor.entity.js.map +1 -0
  293. package/dist/modules/instance-ai/entities/instance-ai-observation-lock.entity.d.ts +8 -0
  294. package/dist/modules/instance-ai/entities/instance-ai-observation-lock.entity.js +37 -0
  295. package/dist/modules/instance-ai/entities/instance-ai-observation-lock.entity.js.map +1 -0
  296. package/dist/modules/instance-ai/entities/instance-ai-observation.entity.d.ts +12 -0
  297. package/dist/modules/instance-ai/entities/instance-ai-observation.entity.js +52 -0
  298. package/dist/modules/instance-ai/entities/instance-ai-observation.entity.js.map +1 -0
  299. package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.d.ts +19 -0
  300. package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.js +82 -0
  301. package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.js.map +1 -0
  302. package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.d.ts +2 -0
  303. package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.js +8 -0
  304. package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.js.map +1 -1
  305. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.d.ts +12 -2
  306. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js +40 -4
  307. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js.map +1 -1
  308. package/dist/modules/instance-ai/eval/execution.service.d.ts +8 -2
  309. package/dist/modules/instance-ai/eval/execution.service.js +137 -47
  310. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  311. package/dist/modules/instance-ai/eval/llm-wire-server.d.ts +31 -0
  312. package/dist/modules/instance-ai/eval/llm-wire-server.js +127 -0
  313. package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -0
  314. package/dist/modules/instance-ai/eval/openai-envelope.d.ts +6 -0
  315. package/dist/modules/instance-ai/eval/openai-envelope.js +96 -0
  316. package/dist/modules/instance-ai/eval/openai-envelope.js.map +1 -0
  317. package/dist/modules/instance-ai/eval/proxy-loopback.d.ts +1 -0
  318. package/dist/modules/instance-ai/eval/proxy-loopback.js +44 -0
  319. package/dist/modules/instance-ai/eval/proxy-loopback.js.map +1 -0
  320. package/dist/modules/instance-ai/eval/sub-agent-eval.service.js +29 -7
  321. package/dist/modules/instance-ai/eval/sub-agent-eval.service.js.map +1 -1
  322. package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +7 -1
  323. package/dist/modules/instance-ai/eval/workflow-analysis.js +178 -3
  324. package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
  325. package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +6 -6
  326. package/dist/modules/instance-ai/instance-ai-memory.service.js +44 -85
  327. package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
  328. package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +2 -1
  329. package/dist/modules/instance-ai/instance-ai-settings.service.js +11 -22
  330. package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
  331. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +2 -0
  332. package/dist/modules/instance-ai/instance-ai.adapter.service.js +105 -13
  333. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  334. package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
  335. package/dist/modules/instance-ai/instance-ai.module.js +10 -6
  336. package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
  337. package/dist/modules/instance-ai/instance-ai.service.d.ts +34 -12
  338. package/dist/modules/instance-ai/instance-ai.service.js +724 -264
  339. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  340. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +4 -1
  341. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +3 -1
  342. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
  343. package/dist/modules/instance-ai/message-parser.d.ts +3 -3
  344. package/dist/modules/instance-ai/message-parser.js +65 -61
  345. package/dist/modules/instance-ai/message-parser.js.map +1 -1
  346. package/dist/modules/instance-ai/node-definition-resolver.js +12 -48
  347. package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -1
  348. package/dist/modules/instance-ai/repositories/index.d.ts +4 -2
  349. package/dist/modules/instance-ai/repositories/index.js +9 -5
  350. package/dist/modules/instance-ai/repositories/index.js.map +1 -1
  351. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.d.ts +5 -0
  352. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js +26 -0
  353. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -0
  354. package/dist/modules/instance-ai/repositories/instance-ai-observation-cursor.repository.d.ts +5 -0
  355. package/dist/modules/instance-ai/repositories/instance-ai-observation-cursor.repository.js +26 -0
  356. package/dist/modules/instance-ai/repositories/instance-ai-observation-cursor.repository.js.map +1 -0
  357. package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.d.ts +5 -0
  358. package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.js +26 -0
  359. package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.js.map +1 -0
  360. package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.d.ts +5 -0
  361. package/dist/modules/{agents/repositories/agent-published-version.repository.js → instance-ai/repositories/instance-ai-observation.repository.js} +8 -17
  362. package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.js.map +1 -0
  363. package/dist/modules/instance-ai/storage/db-snapshot-storage.d.ts +2 -0
  364. package/dist/modules/instance-ai/storage/db-snapshot-storage.js +12 -2
  365. package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
  366. package/dist/modules/instance-ai/storage/index.d.ts +2 -3
  367. package/dist/modules/instance-ai/storage/index.js +5 -7
  368. package/dist/modules/instance-ai/storage/index.js.map +1 -1
  369. package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.d.ts +15 -0
  370. package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js +94 -0
  371. package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -0
  372. package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +94 -0
  373. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +324 -0
  374. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -0
  375. package/dist/modules/instance-ai/storage/typeorm-observation-log-store.d.ts +37 -0
  376. package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js +212 -0
  377. package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js.map +1 -0
  378. package/dist/modules/instance-ai/web-research/fetch-and-extract.js +34 -11
  379. package/dist/modules/instance-ai/web-research/fetch-and-extract.js.map +1 -1
  380. package/dist/modules/mcp/mcp.service.js +5 -5
  381. package/dist/modules/mcp/mcp.service.js.map +1 -1
  382. package/dist/modules/mcp/tools/schemas.d.ts +24 -24
  383. package/dist/modules/mcp/tools/search-projects.tool.js +59 -13
  384. package/dist/modules/mcp/tools/search-projects.tool.js.map +1 -1
  385. package/dist/modules/mcp/tools/test-workflow.tool.d.ts +2 -2
  386. package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.d.ts +35 -0
  387. package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.js +88 -0
  388. package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.js.map +1 -0
  389. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.d.ts +3 -2
  390. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +41 -9
  391. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
  392. package/dist/modules/mcp/tools/workflow-builder/data-table-validation.d.ts +13 -0
  393. package/dist/modules/mcp/tools/workflow-builder/data-table-validation.js +87 -0
  394. package/dist/modules/mcp/tools/workflow-builder/data-table-validation.js.map +1 -0
  395. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +2 -1
  396. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +42 -6
  397. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  398. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.d.ts +2 -1
  399. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +5 -1
  400. package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
  401. package/dist/modules/mcp/tools/workflow-validation.utils.js +1 -1
  402. package/dist/modules/mcp/tools/workflow-validation.utils.js.map +1 -1
  403. package/dist/modules/mcp-registry/mcp-registry-test.controller.js +5 -1
  404. package/dist/modules/mcp-registry/mcp-registry-test.controller.js.map +1 -1
  405. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +18 -0
  406. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +73 -0
  407. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -0
  408. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +5 -0
  409. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +31 -0
  410. package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -0
  411. package/dist/modules/n8n-packages/io/package-writer.d.ts +6 -0
  412. package/dist/{scaling/multi-main-setup.types.js → modules/n8n-packages/io/package-writer.js} +1 -1
  413. package/dist/modules/n8n-packages/io/package-writer.js.map +1 -0
  414. package/dist/modules/n8n-packages/io/slug.utils.d.ts +1 -0
  415. package/dist/modules/n8n-packages/io/slug.utils.js +16 -0
  416. package/dist/modules/n8n-packages/io/slug.utils.js.map +1 -0
  417. package/dist/modules/n8n-packages/io/tar/tar-package-writer.d.ts +9 -0
  418. package/dist/modules/n8n-packages/io/tar/tar-package-writer.js +71 -0
  419. package/dist/modules/n8n-packages/io/tar/tar-package-writer.js.map +1 -0
  420. package/dist/modules/n8n-packages/n8n-packages.controller.d.ts +10 -0
  421. package/dist/modules/n8n-packages/n8n-packages.controller.js +45 -0
  422. package/dist/modules/n8n-packages/n8n-packages.controller.js.map +1 -0
  423. package/dist/modules/{inbound-secrets/inbound-secrets.module.d.ts → n8n-packages/n8n-packages.module.d.ts} +1 -1
  424. package/dist/modules/{inbound-secrets/inbound-secrets.module.js → n8n-packages/n8n-packages.module.js} +12 -16
  425. package/dist/modules/n8n-packages/n8n-packages.module.js.map +1 -0
  426. package/dist/modules/n8n-packages/n8n-packages.service.d.ts +10 -0
  427. package/dist/modules/n8n-packages/n8n-packages.service.js +49 -0
  428. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -0
  429. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +5 -0
  430. package/dist/modules/n8n-packages/n8n-packages.types.js +3 -0
  431. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -0
  432. package/dist/modules/n8n-packages/spec/constants.d.ts +1 -0
  433. package/dist/modules/n8n-packages/spec/constants.js +5 -0
  434. package/dist/modules/n8n-packages/spec/constants.js.map +1 -0
  435. package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +55 -0
  436. package/dist/modules/n8n-packages/spec/manifest.schema.js +17 -0
  437. package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -0
  438. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +169 -0
  439. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +46 -0
  440. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -0
  441. package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.d.ts +5 -1
  442. package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js +18 -2
  443. package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js.map +1 -1
  444. package/dist/modules/oauth-jwe/oauth-jwe.utils.js +27 -2
  445. package/dist/modules/oauth-jwe/oauth-jwe.utils.js.map +1 -1
  446. package/dist/modules/otel/execution-level-tracer.js +1 -0
  447. package/dist/modules/otel/execution-level-tracer.js.map +1 -1
  448. package/dist/modules/otel/execution-level-tracer.types.d.ts +11 -6
  449. package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
  450. package/dist/modules/otel/otel-lifecycle-handler.d.ts +5 -1
  451. package/dist/modules/otel/otel-lifecycle-handler.js +30 -2
  452. package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
  453. package/dist/modules/otel/otel.constants.d.ts +1 -0
  454. package/dist/modules/otel/otel.constants.js +1 -0
  455. package/dist/modules/otel/otel.constants.js.map +1 -1
  456. package/dist/modules/runtime-credentials/path-traversal.js.map +1 -0
  457. package/dist/modules/runtime-credentials/runtime-credentials-access.service.d.ts +8 -0
  458. package/dist/modules/runtime-credentials/runtime-credentials-access.service.js +35 -0
  459. package/dist/modules/runtime-credentials/runtime-credentials-access.service.js.map +1 -0
  460. package/dist/modules/{inbound-secrets/inbound-secrets-context-hook.d.ts → runtime-credentials/runtime-credentials-context-hook.d.ts} +4 -5
  461. package/dist/modules/{inbound-secrets/inbound-secrets-context-hook.js → runtime-credentials/runtime-credentials-context-hook.js} +14 -22
  462. package/dist/modules/runtime-credentials/runtime-credentials-context-hook.js.map +1 -0
  463. package/dist/modules/runtime-credentials/runtime-credentials.config.d.ts +3 -0
  464. package/dist/modules/{inbound-secrets/inbound-secrets.config.js → runtime-credentials/runtime-credentials.config.js} +7 -7
  465. package/dist/modules/runtime-credentials/runtime-credentials.config.js.map +1 -0
  466. package/dist/modules/runtime-credentials/runtime-credentials.module.d.ts +4 -0
  467. package/dist/modules/runtime-credentials/runtime-credentials.module.js +65 -0
  468. package/dist/modules/runtime-credentials/runtime-credentials.module.js.map +1 -0
  469. package/dist/modules/runtime-credentials/runtime-credentials.schemas.d.ts +23 -0
  470. package/dist/modules/runtime-credentials/runtime-credentials.schemas.js +10 -0
  471. package/dist/modules/runtime-credentials/runtime-credentials.schemas.js.map +1 -0
  472. package/dist/modules/runtime-credentials/runtime-credentials.service.d.ts +18 -0
  473. package/dist/modules/{inbound-secrets/inbound-secrets.service.js → runtime-credentials/runtime-credentials.service.js} +31 -28
  474. package/dist/modules/runtime-credentials/runtime-credentials.service.js.map +1 -0
  475. package/dist/modules/source-control.ee/source-control-export.service.ee.d.ts +1 -1
  476. package/dist/modules/source-control.ee/source-control-export.service.ee.js +3 -1
  477. package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
  478. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +2 -2
  479. package/dist/modules/source-control.ee/source-control-import.service.ee.js +29 -8
  480. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  481. package/dist/modules/source-control.ee/source-control-status.service.ee.js +4 -4
  482. package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
  483. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +2 -2
  484. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +1 -1
  485. package/dist/modules/source-control.ee/types/exportable-workflow.d.ts +2 -1
  486. package/dist/modules/sso-saml/saml.service.ee.js +5 -1
  487. package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
  488. package/dist/modules/workflow-index/workflow-dependency.controller.d.ts +1 -4
  489. package/dist/modules/workflow-index/workflow-dependency.controller.js +2 -13
  490. package/dist/modules/workflow-index/workflow-dependency.controller.js.map +1 -1
  491. package/dist/node-catalog/node-catalog.service.d.ts +1 -2
  492. package/dist/node-catalog/node-catalog.service.js +6 -10
  493. package/dist/node-catalog/node-catalog.service.js.map +1 -1
  494. package/dist/node-execution/ephemeral-node-executor.js +19 -11
  495. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  496. package/dist/oauth/oauth-jwe-service.proxy.d.ts +12 -2
  497. package/dist/oauth/oauth-jwe-service.proxy.js +5 -0
  498. package/dist/oauth/oauth-jwe-service.proxy.js.map +1 -1
  499. package/dist/oauth/oauth.service.d.ts +6 -1
  500. package/dist/oauth/oauth.service.js +42 -4
  501. package/dist/oauth/oauth.service.js.map +1 -1
  502. package/dist/permissions.ee/check-access.d.ts +2 -2
  503. package/dist/permissions.ee/check-access.js +15 -11
  504. package/dist/permissions.ee/check-access.js.map +1 -1
  505. package/dist/posthog/index.d.ts +2 -0
  506. package/dist/posthog/index.js +28 -6
  507. package/dist/posthog/index.js.map +1 -1
  508. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +10 -0
  509. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +42 -0
  510. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -0
  511. package/dist/public-api/v1/openapi.yml +55 -0
  512. package/dist/requests.d.ts +1 -1
  513. package/dist/scaling/constants.js +3 -0
  514. package/dist/scaling/constants.js.map +1 -1
  515. package/dist/scaling/multi-main-setup.ee.d.ts +12 -7
  516. package/dist/scaling/multi-main-setup.ee.js +125 -22
  517. package/dist/scaling/multi-main-setup.ee.js.map +1 -1
  518. package/dist/server.d.ts +1 -0
  519. package/dist/server.js +3 -4
  520. package/dist/server.js.map +1 -1
  521. package/dist/services/dynamic-node-parameters.service.d.ts +0 -1
  522. package/dist/services/dynamic-node-parameters.service.js +6 -14
  523. package/dist/services/dynamic-node-parameters.service.js.map +1 -1
  524. package/dist/services/frontend.service.js +1 -1
  525. package/dist/services/frontend.service.js.map +1 -1
  526. package/dist/services/import.service.js +3 -1
  527. package/dist/services/import.service.js.map +1 -1
  528. package/dist/services/proxy-token-manager.js +2 -13
  529. package/dist/services/proxy-token-manager.js.map +1 -1
  530. package/dist/services/runtime-credential-proxy.service.d.ts +9 -0
  531. package/dist/services/runtime-credential-proxy.service.js +29 -0
  532. package/dist/services/runtime-credential-proxy.service.js.map +1 -0
  533. package/dist/services/url.service.d.ts +1 -0
  534. package/dist/services/url.service.js +3 -0
  535. package/dist/services/url.service.js.map +1 -1
  536. package/dist/telemetry/index.d.ts +4 -1
  537. package/dist/telemetry/index.js +16 -8
  538. package/dist/telemetry/index.js.map +1 -1
  539. package/dist/utils.d.ts +2 -1
  540. package/dist/utils.js +10 -0
  541. package/dist/utils.js.map +1 -1
  542. package/dist/webhooks/live-webhooks.js +2 -2
  543. package/dist/webhooks/live-webhooks.js.map +1 -1
  544. package/dist/webhooks/webhook-helpers.js +1 -1
  545. package/dist/webhooks/webhook-helpers.js.map +1 -1
  546. package/dist/workflow-execute-additional-data.d.ts +3 -1
  547. package/dist/workflow-execute-additional-data.js +26 -3
  548. package/dist/workflow-execute-additional-data.js.map +1 -1
  549. package/dist/workflow-helpers.d.ts +3 -1
  550. package/dist/workflow-helpers.js +39 -5
  551. package/dist/workflow-helpers.js.map +1 -1
  552. package/dist/workflow-hook-context.service.d.ts +6 -0
  553. package/dist/workflow-hook-context.service.js +32 -0
  554. package/dist/workflow-hook-context.service.js.map +1 -0
  555. package/dist/workflow-runner.js +2 -1
  556. package/dist/workflow-runner.js.map +1 -1
  557. package/dist/workflows/utils.d.ts +3 -0
  558. package/dist/workflows/utils.js +19 -0
  559. package/dist/workflows/utils.js.map +1 -1
  560. package/dist/workflows/workflow-creation.service.js +4 -2
  561. package/dist/workflows/workflow-creation.service.js.map +1 -1
  562. package/dist/workflows/workflow-execution.service.d.ts +4 -3
  563. package/dist/workflows/workflow-execution.service.js +8 -3
  564. package/dist/workflows/workflow-execution.service.js.map +1 -1
  565. package/dist/workflows/workflow-finder.service.d.ts +6 -2
  566. package/dist/workflows/workflow-finder.service.js +18 -0
  567. package/dist/workflows/workflow-finder.service.js.map +1 -1
  568. package/dist/workflows/workflow-history/workflow-history.controller.d.ts +1 -1
  569. package/dist/workflows/workflow-history/workflow-history.service.d.ts +2 -1
  570. package/dist/workflows/workflow-history/workflow-history.service.js +1 -0
  571. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  572. package/dist/workflows/workflow-validation.service.d.ts +3 -1
  573. package/dist/workflows/workflow-validation.service.js +6 -3
  574. package/dist/workflows/workflow-validation.service.js.map +1 -1
  575. package/dist/workflows/workflow.service.d.ts +3 -3
  576. package/dist/workflows/workflow.service.js +26 -4
  577. package/dist/workflows/workflow.service.js.map +1 -1
  578. package/dist/workflows/workflows.controller.d.ts +31 -21
  579. package/dist/workflows/workflows.controller.js +6 -2
  580. package/dist/workflows/workflows.controller.js.map +1 -1
  581. package/package.json +37 -35
  582. package/dist/modules/agents/entities/agent-published-version.entity.js.map +0 -1
  583. package/dist/modules/agents/repositories/agent-published-version.repository.d.ts +0 -20
  584. package/dist/modules/agents/repositories/agent-published-version.repository.js.map +0 -1
  585. package/dist/modules/inbound-secrets/inbound-secrets-context-hook.js.map +0 -1
  586. package/dist/modules/inbound-secrets/inbound-secrets.config.d.ts +0 -3
  587. package/dist/modules/inbound-secrets/inbound-secrets.config.js.map +0 -1
  588. package/dist/modules/inbound-secrets/inbound-secrets.module.js.map +0 -1
  589. package/dist/modules/inbound-secrets/inbound-secrets.schemas.d.ts +0 -3
  590. package/dist/modules/inbound-secrets/inbound-secrets.schemas.js +0 -6
  591. package/dist/modules/inbound-secrets/inbound-secrets.schemas.js.map +0 -1
  592. package/dist/modules/inbound-secrets/inbound-secrets.service.d.ts +0 -17
  593. package/dist/modules/inbound-secrets/inbound-secrets.service.js.map +0 -1
  594. package/dist/modules/inbound-secrets/path-traversal.js.map +0 -1
  595. package/dist/modules/instance-ai/compaction.service.d.ts +0 -24
  596. package/dist/modules/instance-ai/compaction.service.js +0 -213
  597. package/dist/modules/instance-ai/compaction.service.js.map +0 -1
  598. package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.d.ts +0 -33
  599. package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.js +0 -145
  600. package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.js.map +0 -1
  601. package/dist/modules/instance-ai/entities/instance-ai-workflow-snapshot.entity.d.ts +0 -8
  602. package/dist/modules/instance-ai/entities/instance-ai-workflow-snapshot.entity.js.map +0 -1
  603. package/dist/modules/instance-ai/repositories/instance-ai-observational-memory.repository.d.ts +0 -5
  604. package/dist/modules/instance-ai/repositories/instance-ai-observational-memory.repository.js.map +0 -1
  605. package/dist/modules/instance-ai/repositories/instance-ai-workflow-snapshot.repository.d.ts +0 -5
  606. package/dist/modules/instance-ai/repositories/instance-ai-workflow-snapshot.repository.js.map +0 -1
  607. package/dist/modules/instance-ai/snapshot-pruning.service.d.ts +0 -17
  608. package/dist/modules/instance-ai/snapshot-pruning.service.js +0 -89
  609. package/dist/modules/instance-ai/snapshot-pruning.service.js.map +0 -1
  610. package/dist/modules/instance-ai/storage/typeorm-composite-store.d.ts +0 -9
  611. package/dist/modules/instance-ai/storage/typeorm-composite-store.js +0 -33
  612. package/dist/modules/instance-ai/storage/typeorm-composite-store.js.map +0 -1
  613. package/dist/modules/instance-ai/storage/typeorm-memory-storage.d.ts +0 -96
  614. package/dist/modules/instance-ai/storage/typeorm-memory-storage.js +0 -864
  615. package/dist/modules/instance-ai/storage/typeorm-memory-storage.js.map +0 -1
  616. package/dist/modules/instance-ai/storage/typeorm-workflows-storage.d.ts +0 -44
  617. package/dist/modules/instance-ai/storage/typeorm-workflows-storage.js +0 -156
  618. package/dist/modules/instance-ai/storage/typeorm-workflows-storage.js.map +0 -1
  619. package/dist/scaling/multi-main-setup-legacy.d.ts +0 -25
  620. package/dist/scaling/multi-main-setup-legacy.js +0 -75
  621. package/dist/scaling/multi-main-setup-legacy.js.map +0 -1
  622. package/dist/scaling/multi-main-setup-v2.d.ts +0 -25
  623. package/dist/scaling/multi-main-setup-v2.js +0 -143
  624. package/dist/scaling/multi-main-setup-v2.js.map +0 -1
  625. package/dist/scaling/multi-main-setup.types.d.ts +0 -6
  626. package/dist/scaling/multi-main-setup.types.js.map +0 -1
  627. /package/dist/modules/{inbound-secrets → runtime-credentials}/path-traversal.d.ts +0 -0
  628. /package/dist/modules/{inbound-secrets → runtime-credentials}/path-traversal.js +0 -0
@@ -1,9 +1,10 @@
1
1
  import type { ToolDescriptor } from '@n8n/agents';
2
2
  import { type AgentJsonConfig, type AgentSkill } from '@n8n/api-types';
3
- import { User, WithTimestamps } from '@n8n/db';
3
+ import { WithTimestamps } from '@n8n/db';
4
4
  import { type Relation } from '@n8n/typeorm';
5
5
  import type { Agent } from './agent.entity';
6
- export declare class AgentPublishedVersion extends WithTimestamps {
6
+ export declare class AgentHistory extends WithTimestamps {
7
+ versionId: string;
7
8
  agentId: string;
8
9
  agent: Relation<Agent>;
9
10
  schema: AgentJsonConfig | null;
@@ -12,10 +13,6 @@ export declare class AgentPublishedVersion extends WithTimestamps {
12
13
  descriptor: ToolDescriptor;
13
14
  }> | null;
14
15
  skills: Record<string, AgentSkill> | null;
15
- publishedFromVersionId: string;
16
- model: string | null;
17
- provider: string | null;
18
- credentialId: string | null;
19
16
  publishedById: string | null;
20
- publishedBy?: User | null;
17
+ author: string;
21
18
  }
@@ -9,59 +9,47 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AgentPublishedVersion = void 0;
12
+ exports.AgentHistory = void 0;
13
13
  const db_1 = require("@n8n/db");
14
14
  const typeorm_1 = require("@n8n/typeorm");
15
- let AgentPublishedVersion = class AgentPublishedVersion extends db_1.WithTimestamps {
15
+ let AgentHistory = class AgentHistory extends db_1.WithTimestamps {
16
16
  };
17
- exports.AgentPublishedVersion = AgentPublishedVersion;
17
+ exports.AgentHistory = AgentHistory;
18
18
  __decorate([
19
19
  (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
20
20
  __metadata("design:type", String)
21
- ], AgentPublishedVersion.prototype, "agentId", void 0);
21
+ ], AgentHistory.prototype, "versionId", void 0);
22
22
  __decorate([
23
- (0, typeorm_1.OneToOne)('Agent', { onDelete: 'CASCADE' }),
23
+ (0, typeorm_1.Index)(),
24
+ (0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
25
+ __metadata("design:type", String)
26
+ ], AgentHistory.prototype, "agentId", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.ManyToOne)('Agent', { onDelete: 'CASCADE' }),
24
29
  (0, typeorm_1.JoinColumn)({ name: 'agentId' }),
25
30
  __metadata("design:type", Object)
26
- ], AgentPublishedVersion.prototype, "agent", void 0);
31
+ ], AgentHistory.prototype, "agent", void 0);
27
32
  __decorate([
28
33
  (0, db_1.JsonColumn)({ nullable: true, default: null }),
29
34
  __metadata("design:type", Object)
30
- ], AgentPublishedVersion.prototype, "schema", void 0);
35
+ ], AgentHistory.prototype, "schema", void 0);
31
36
  __decorate([
32
37
  (0, db_1.JsonColumn)({ nullable: true, default: null }),
33
38
  __metadata("design:type", Object)
34
- ], AgentPublishedVersion.prototype, "tools", void 0);
39
+ ], AgentHistory.prototype, "tools", void 0);
35
40
  __decorate([
36
41
  (0, db_1.JsonColumn)({ nullable: true, default: null }),
37
42
  __metadata("design:type", Object)
38
- ], AgentPublishedVersion.prototype, "skills", void 0);
39
- __decorate([
40
- (0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
41
- __metadata("design:type", String)
42
- ], AgentPublishedVersion.prototype, "publishedFromVersionId", void 0);
43
- __decorate([
44
- (0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
45
- __metadata("design:type", Object)
46
- ], AgentPublishedVersion.prototype, "model", void 0);
47
- __decorate([
48
- (0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
49
- __metadata("design:type", Object)
50
- ], AgentPublishedVersion.prototype, "provider", void 0);
51
- __decorate([
52
- (0, typeorm_1.Column)({ type: 'varchar', length: 36, nullable: true }),
53
- __metadata("design:type", Object)
54
- ], AgentPublishedVersion.prototype, "credentialId", void 0);
43
+ ], AgentHistory.prototype, "skills", void 0);
55
44
  __decorate([
56
45
  (0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
57
46
  __metadata("design:type", Object)
58
- ], AgentPublishedVersion.prototype, "publishedById", void 0);
47
+ ], AgentHistory.prototype, "publishedById", void 0);
59
48
  __decorate([
60
- (0, typeorm_1.ManyToOne)(() => db_1.User, { onDelete: 'SET NULL', nullable: true }),
61
- (0, typeorm_1.JoinColumn)({ name: 'publishedById' }),
62
- __metadata("design:type", Object)
63
- ], AgentPublishedVersion.prototype, "publishedBy", void 0);
64
- exports.AgentPublishedVersion = AgentPublishedVersion = __decorate([
65
- (0, typeorm_1.Entity)({ name: 'agent_published_version' })
66
- ], AgentPublishedVersion);
67
- //# sourceMappingURL=agent-published-version.entity.js.map
49
+ (0, typeorm_1.Column)(),
50
+ __metadata("design:type", String)
51
+ ], AgentHistory.prototype, "author", void 0);
52
+ exports.AgentHistory = AgentHistory = __decorate([
53
+ (0, typeorm_1.Entity)({ name: 'agent_history' })
54
+ ], AgentHistory);
55
+ //# sourceMappingURL=agent-history.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-history.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-history.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gCAAqD;AACrD,0CAQsB;AAUf,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,mBAAc;CA0C/C,CAAA;AA1CY,oCAAY;AAExB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+CAC7B;AAIlB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;6CACxB;AAIhB;IAFC,IAAA,mBAAS,EAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC3C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACT;AAGvB;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CACf;AAG/B;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CAOrC;AAGT;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CACJ;AAQ1C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAQ7B;IADC,IAAA,gBAAM,GAAE;;4CACM;uBAzCH,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,YAAY,CA0CxB"}
@@ -0,0 +1,7 @@
1
+ import { WithTimestamps } from '@n8n/db';
2
+ export declare class AgentMemoryEntryCursorEntity extends WithTimestamps {
3
+ agentId: string;
4
+ observationScopeId: string;
5
+ lastIndexedObservationId: string;
6
+ lastIndexedObservationCreatedAt: Date;
7
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AgentMemoryEntryCursorEntity = void 0;
13
+ const db_1 = require("@n8n/db");
14
+ const typeorm_1 = require("@n8n/typeorm");
15
+ let AgentMemoryEntryCursorEntity = class AgentMemoryEntryCursorEntity extends db_1.WithTimestamps {
16
+ };
17
+ exports.AgentMemoryEntryCursorEntity = AgentMemoryEntryCursorEntity;
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
20
+ __metadata("design:type", String)
21
+ ], AgentMemoryEntryCursorEntity.prototype, "agentId", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 255 }),
24
+ __metadata("design:type", String)
25
+ ], AgentMemoryEntryCursorEntity.prototype, "observationScopeId", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
28
+ __metadata("design:type", String)
29
+ ], AgentMemoryEntryCursorEntity.prototype, "lastIndexedObservationId", void 0);
30
+ __decorate([
31
+ (0, db_1.DateTimeColumn)(),
32
+ __metadata("design:type", Date)
33
+ ], AgentMemoryEntryCursorEntity.prototype, "lastIndexedObservationCreatedAt", void 0);
34
+ exports.AgentMemoryEntryCursorEntity = AgentMemoryEntryCursorEntity = __decorate([
35
+ (0, typeorm_1.Entity)({ name: 'agents_memory_entry_cursors' }),
36
+ (0, typeorm_1.Index)(['observationScopeId'])
37
+ ], AgentMemoryEntryCursorEntity);
38
+ //# sourceMappingURL=agent-memory-entry-cursor.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-memory-entry-cursor.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-memory-entry-cursor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,0CAAoE;AAI7D,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,mBAAc;CAY/D,CAAA;AAZY,oEAA4B;AAExC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;6DAC/B;AAGhB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;wEACrB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;8EACP;AAGjC;IADC,IAAA,mBAAc,GAAE;8BACgB,IAAI;qFAAC;uCAX1B,4BAA4B;IAFxC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;IAC/C,IAAA,eAAK,EAAC,CAAC,oBAAoB,CAAC,CAAC;GACjB,4BAA4B,CAYxC"}
@@ -0,0 +1,7 @@
1
+ import { WithTimestamps } from '@n8n/db';
2
+ export declare class AgentMemoryEntryLockEntity extends WithTimestamps {
3
+ agentId: string;
4
+ resourceId: string;
5
+ holderId: string;
6
+ heldUntil: Date;
7
+ }
@@ -9,33 +9,30 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.InstanceAiWorkflowSnapshot = void 0;
12
+ exports.AgentMemoryEntryLockEntity = void 0;
13
13
  const db_1 = require("@n8n/db");
14
14
  const typeorm_1 = require("@n8n/typeorm");
15
- let InstanceAiWorkflowSnapshot = class InstanceAiWorkflowSnapshot extends db_1.WithTimestamps {
15
+ let AgentMemoryEntryLockEntity = class AgentMemoryEntryLockEntity extends db_1.WithTimestamps {
16
16
  };
17
- exports.InstanceAiWorkflowSnapshot = InstanceAiWorkflowSnapshot;
17
+ exports.AgentMemoryEntryLockEntity = AgentMemoryEntryLockEntity;
18
18
  __decorate([
19
19
  (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
20
20
  __metadata("design:type", String)
21
- ], InstanceAiWorkflowSnapshot.prototype, "runId", void 0);
21
+ ], AgentMemoryEntryLockEntity.prototype, "agentId", void 0);
22
22
  __decorate([
23
23
  (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 255 }),
24
24
  __metadata("design:type", String)
25
- ], InstanceAiWorkflowSnapshot.prototype, "workflowName", void 0);
25
+ ], AgentMemoryEntryLockEntity.prototype, "resourceId", void 0);
26
26
  __decorate([
27
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
28
- __metadata("design:type", Object)
29
- ], InstanceAiWorkflowSnapshot.prototype, "resourceId", void 0);
30
- __decorate([
31
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
32
- __metadata("design:type", Object)
33
- ], InstanceAiWorkflowSnapshot.prototype, "status", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)({ type: 'text' }),
27
+ (0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
36
28
  __metadata("design:type", String)
37
- ], InstanceAiWorkflowSnapshot.prototype, "snapshot", void 0);
38
- exports.InstanceAiWorkflowSnapshot = InstanceAiWorkflowSnapshot = __decorate([
39
- (0, typeorm_1.Entity)({ name: 'instance_ai_workflow_snapshots' })
40
- ], InstanceAiWorkflowSnapshot);
41
- //# sourceMappingURL=instance-ai-workflow-snapshot.entity.js.map
29
+ ], AgentMemoryEntryLockEntity.prototype, "holderId", void 0);
30
+ __decorate([
31
+ (0, db_1.DateTimeColumn)(),
32
+ __metadata("design:type", Date)
33
+ ], AgentMemoryEntryLockEntity.prototype, "heldUntil", void 0);
34
+ exports.AgentMemoryEntryLockEntity = AgentMemoryEntryLockEntity = __decorate([
35
+ (0, typeorm_1.Entity)({ name: 'agents_memory_entry_locks' }),
36
+ (0, typeorm_1.Index)(['resourceId'])
37
+ ], AgentMemoryEntryLockEntity);
38
+ //# sourceMappingURL=agent-memory-entry-lock.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-memory-entry-lock.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-memory-entry-lock.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,0CAAoE;AAI7D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,mBAAc;CAY7D,CAAA;AAZY,gEAA0B;AAEtC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2DAC/B;AAGhB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;8DAC7B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4DACvB;AAGjB;IADC,IAAA,mBAAc,GAAE;8BACN,IAAI;6DAAC;qCAXJ,0BAA0B;IAFtC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;IAC7C,IAAA,eAAK,EAAC,CAAC,YAAY,CAAC,CAAC;GACT,0BAA0B,CAYtC"}
@@ -0,0 +1,9 @@
1
+ import { WithTimestampsAndStringId } from '@n8n/db';
2
+ export declare class AgentMemoryEntrySourceEntity extends WithTimestampsAndStringId {
3
+ agentId: string;
4
+ memoryEntryId: string;
5
+ observationId: string;
6
+ threadId: string;
7
+ evidenceHash: string;
8
+ evidenceText: string;
9
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AgentMemoryEntrySourceEntity = void 0;
13
+ const db_1 = require("@n8n/db");
14
+ const typeorm_1 = require("@n8n/typeorm");
15
+ let AgentMemoryEntrySourceEntity = class AgentMemoryEntrySourceEntity extends db_1.WithTimestampsAndStringId {
16
+ };
17
+ exports.AgentMemoryEntrySourceEntity = AgentMemoryEntrySourceEntity;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
20
+ __metadata("design:type", String)
21
+ ], AgentMemoryEntrySourceEntity.prototype, "agentId", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
24
+ __metadata("design:type", String)
25
+ ], AgentMemoryEntrySourceEntity.prototype, "memoryEntryId", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
28
+ __metadata("design:type", String)
29
+ ], AgentMemoryEntrySourceEntity.prototype, "observationId", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
32
+ __metadata("design:type", String)
33
+ ], AgentMemoryEntrySourceEntity.prototype, "threadId", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
36
+ __metadata("design:type", String)
37
+ ], AgentMemoryEntrySourceEntity.prototype, "evidenceHash", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'text' }),
40
+ __metadata("design:type", String)
41
+ ], AgentMemoryEntrySourceEntity.prototype, "evidenceText", void 0);
42
+ exports.AgentMemoryEntrySourceEntity = AgentMemoryEntrySourceEntity = __decorate([
43
+ (0, typeorm_1.Entity)({ name: 'agents_memory_entry_sources' }),
44
+ (0, typeorm_1.Index)(['memoryEntryId', 'observationId', 'evidenceHash'], { unique: true }),
45
+ (0, typeorm_1.Index)(['observationId']),
46
+ (0, typeorm_1.Index)(['agentId', 'threadId']),
47
+ (0, typeorm_1.Index)(['threadId'])
48
+ ], AgentMemoryEntrySourceEntity);
49
+ //# sourceMappingURL=agent-memory-entry-source.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-memory-entry-source.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-memory-entry-source.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAoD;AACpD,0CAAqD;AAO9C,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,8BAAyB;CAkB1E,CAAA;AAlBY,oEAA4B;AAExC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;6DACxB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;mEAClB;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;mEAClB;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;8DACxB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;kEACnB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kEACJ;uCAjBT,4BAA4B;IALxC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;IAC/C,IAAA,eAAK,EAAC,CAAC,eAAe,EAAE,eAAe,EAAE,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC3E,IAAA,eAAK,EAAC,CAAC,eAAe,CAAC,CAAC;IACxB,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAC9B,IAAA,eAAK,EAAC,CAAC,UAAU,CAAC,CAAC;GACP,4BAA4B,CAkBxC"}
@@ -0,0 +1,15 @@
1
+ import { WithTimestampsAndStringId } from '@n8n/db';
2
+ import type { JSONObject } from '@n8n/agents';
3
+ export type MemoryEntryStatus = 'active' | 'superseded' | 'dropped';
4
+ export declare class AgentMemoryEntryEntity extends WithTimestampsAndStringId {
5
+ agentId: string;
6
+ resourceId: string;
7
+ content: string;
8
+ contentHash: string;
9
+ status: MemoryEntryStatus;
10
+ supersededBy: string | null;
11
+ embeddingModel: string | null;
12
+ embedding: number[] | null;
13
+ metadata: JSONObject | null;
14
+ lastSeenAt: Date;
15
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AgentMemoryEntryEntity = void 0;
13
+ const db_1 = require("@n8n/db");
14
+ const typeorm_1 = require("@n8n/typeorm");
15
+ let AgentMemoryEntryEntity = class AgentMemoryEntryEntity extends db_1.WithTimestampsAndStringId {
16
+ };
17
+ exports.AgentMemoryEntryEntity = AgentMemoryEntryEntity;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
20
+ __metadata("design:type", String)
21
+ ], AgentMemoryEntryEntity.prototype, "agentId", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
24
+ __metadata("design:type", String)
25
+ ], AgentMemoryEntryEntity.prototype, "resourceId", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'text' }),
28
+ __metadata("design:type", String)
29
+ ], AgentMemoryEntryEntity.prototype, "content", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
32
+ __metadata("design:type", String)
33
+ ], AgentMemoryEntryEntity.prototype, "contentHash", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 16 }),
36
+ __metadata("design:type", String)
37
+ ], AgentMemoryEntryEntity.prototype, "status", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 36, nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], AgentMemoryEntryEntity.prototype, "supersededBy", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], AgentMemoryEntryEntity.prototype, "embeddingModel", void 0);
46
+ __decorate([
47
+ (0, db_1.JsonColumn)({ nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], AgentMemoryEntryEntity.prototype, "embedding", void 0);
50
+ __decorate([
51
+ (0, db_1.JsonColumn)({ nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], AgentMemoryEntryEntity.prototype, "metadata", void 0);
54
+ __decorate([
55
+ (0, db_1.DateTimeColumn)(),
56
+ __metadata("design:type", Date)
57
+ ], AgentMemoryEntryEntity.prototype, "lastSeenAt", void 0);
58
+ exports.AgentMemoryEntryEntity = AgentMemoryEntryEntity = __decorate([
59
+ (0, typeorm_1.Entity)({ name: 'agents_memory_entries' }),
60
+ (0, typeorm_1.Index)(['agentId', 'resourceId', 'status', 'createdAt', 'id']),
61
+ (0, typeorm_1.Index)(['agentId', 'resourceId', 'contentHash'], { unique: true }),
62
+ (0, typeorm_1.Index)(['resourceId']),
63
+ (0, typeorm_1.Index)(['supersededBy'])
64
+ ], AgentMemoryEntryEntity);
65
+ //# sourceMappingURL=agent-memory-entry.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-memory-entry.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-memory-entry.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAgF;AAChF,0CAAqD;AAU9C,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,8BAAyB;CA8BpE,CAAA;AA9BY,wDAAsB;AAElC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;uDACxB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;0DACtB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACT;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2DACpB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDACd;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DAC5B;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DAC3B;AAG9B;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACJ;AAG3B;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACH;AAG5B;IADC,IAAA,mBAAc,GAAE;8BACL,IAAI;0DAAC;iCA7BL,sBAAsB;IALlC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;IACzC,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IAC7D,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,YAAY,EAAE,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACjE,IAAA,eAAK,EAAC,CAAC,YAAY,CAAC,CAAC;IACrB,IAAA,eAAK,EAAC,CAAC,cAAc,CAAC,CAAC;GACX,sBAAsB,CA8BlC"}
@@ -1,8 +1,7 @@
1
1
  import { WithTimestamps } from '@n8n/db';
2
- import type { ObservationScopeKind } from './agent-observation.entity';
3
2
  export declare class AgentObservationCursorEntity extends WithTimestamps {
4
- scopeKind: ObservationScopeKind;
5
- scopeId: string;
3
+ agentId: string;
4
+ observationScopeId: string;
6
5
  lastObservedMessageId: string;
7
6
  lastObservedAt: Date;
8
7
  }
@@ -16,13 +16,13 @@ let AgentObservationCursorEntity = class AgentObservationCursorEntity extends db
16
16
  };
17
17
  exports.AgentObservationCursorEntity = AgentObservationCursorEntity;
18
18
  __decorate([
19
- (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 20 }),
19
+ (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
20
20
  __metadata("design:type", String)
21
- ], AgentObservationCursorEntity.prototype, "scopeKind", void 0);
21
+ ], AgentObservationCursorEntity.prototype, "agentId", void 0);
22
22
  __decorate([
23
23
  (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 255 }),
24
24
  __metadata("design:type", String)
25
- ], AgentObservationCursorEntity.prototype, "scopeId", void 0);
25
+ ], AgentObservationCursorEntity.prototype, "observationScopeId", void 0);
26
26
  __decorate([
27
27
  (0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
28
28
  __metadata("design:type", String)
@@ -32,6 +32,7 @@ __decorate([
32
32
  __metadata("design:type", Date)
33
33
  ], AgentObservationCursorEntity.prototype, "lastObservedAt", void 0);
34
34
  exports.AgentObservationCursorEntity = AgentObservationCursorEntity = __decorate([
35
- (0, typeorm_1.Entity)({ name: 'agents_observation_cursors' })
35
+ (0, typeorm_1.Entity)({ name: 'agents_observation_cursors' }),
36
+ (0, typeorm_1.Index)(['observationScopeId'])
36
37
  ], AgentObservationCursorEntity);
37
38
  //# sourceMappingURL=agent-observation-cursor.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-observation-cursor.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation-cursor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,0CAA6D;AAKtD,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,mBAAc;CAY/D,CAAA;AAZY,oEAA4B;AAExC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+DACf;AAGhC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;6DAChC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2EACV;AAG9B;IADC,IAAA,mBAAc,GAAE;8BACD,IAAI;oEAAC;uCAXT,4BAA4B;IADxC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC;GAClC,4BAA4B,CAYxC"}
1
+ {"version":3,"file":"agent-observation-cursor.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation-cursor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,0CAAoE;AAI7D,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,mBAAc;CAY/D,CAAA;AAZY,oEAA4B;AAExC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;6DAC/B;AAGhB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;wEACrB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2EACV;AAG9B;IADC,IAAA,mBAAc,GAAE;8BACD,IAAI;oEAAC;uCAXT,4BAA4B;IAFxC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC;IAC9C,IAAA,eAAK,EAAC,CAAC,oBAAoB,CAAC,CAAC;GACjB,4BAA4B,CAYxC"}
@@ -1,9 +1,8 @@
1
1
  import { WithTimestamps } from '@n8n/db';
2
- import type { ObservationScopeKind } from './agent-observation.entity';
3
2
  export type ObservationTaskKind = 'observer' | 'reflector';
4
3
  export declare class AgentObservationLockEntity extends WithTimestamps {
5
- scopeKind: ObservationScopeKind;
6
- scopeId: string;
4
+ agentId: string;
5
+ observationScopeId: string;
7
6
  taskKind: ObservationTaskKind;
8
7
  holderId: string;
9
8
  heldUntil: Date;
@@ -16,13 +16,13 @@ let AgentObservationLockEntity = class AgentObservationLockEntity extends db_1.W
16
16
  };
17
17
  exports.AgentObservationLockEntity = AgentObservationLockEntity;
18
18
  __decorate([
19
- (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 20 }),
19
+ (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
20
20
  __metadata("design:type", String)
21
- ], AgentObservationLockEntity.prototype, "scopeKind", void 0);
21
+ ], AgentObservationLockEntity.prototype, "agentId", void 0);
22
22
  __decorate([
23
23
  (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 255 }),
24
24
  __metadata("design:type", String)
25
- ], AgentObservationLockEntity.prototype, "scopeId", void 0);
25
+ ], AgentObservationLockEntity.prototype, "observationScopeId", void 0);
26
26
  __decorate([
27
27
  (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 20 }),
28
28
  __metadata("design:type", String)
@@ -36,6 +36,7 @@ __decorate([
36
36
  __metadata("design:type", Date)
37
37
  ], AgentObservationLockEntity.prototype, "heldUntil", void 0);
38
38
  exports.AgentObservationLockEntity = AgentObservationLockEntity = __decorate([
39
- (0, typeorm_1.Entity)({ name: 'agents_observation_locks' })
39
+ (0, typeorm_1.Entity)({ name: 'agents_observation_locks' }),
40
+ (0, typeorm_1.Index)(['observationScopeId'])
40
41
  ], AgentObservationLockEntity);
41
42
  //# sourceMappingURL=agent-observation-lock.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-observation-lock.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation-lock.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,0CAA6D;AAOtD,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,mBAAc;CAe7D,CAAA;AAfY,gEAA0B;AAEtC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;6DACf;AAGhC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2DAChC;AAGhB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4DACjB;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4DACvB;AAGjB;IADC,IAAA,mBAAc,GAAE;8BACN,IAAI;6DAAC;qCAdJ,0BAA0B;IADtC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;GAChC,0BAA0B,CAetC"}
1
+ {"version":3,"file":"agent-observation-lock.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation-lock.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,0CAAoE;AAM7D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,mBAAc;CAe7D,CAAA;AAfY,gEAA0B;AAEtC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2DAC/B;AAGhB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;sEACrB;AAG3B;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4DACjB;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4DACvB;AAGjB;IADC,IAAA,mBAAc,GAAE;8BACN,IAAI;6DAAC;qCAdJ,0BAA0B;IAFtC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;IAC5C,IAAA,eAAK,EAAC,CAAC,oBAAoB,CAAC,CAAC;GACjB,0BAA0B,CAetC"}
@@ -1,10 +1,9 @@
1
1
  import { WithTimestampsAndStringId } from '@n8n/db';
2
- export type ObservationScopeKind = 'thread' | 'resource';
3
2
  export type ObservationMarker = 'critical' | 'important' | 'info' | 'completion';
4
3
  export type ObservationStatus = 'active' | 'superseded' | 'dropped';
5
4
  export declare class AgentObservationEntity extends WithTimestampsAndStringId {
6
- scopeKind: ObservationScopeKind;
7
- scopeId: string;
5
+ agentId: string;
6
+ observationScopeId: string;
8
7
  marker: ObservationMarker;
9
8
  text: string;
10
9
  parentId: string | null;
@@ -16,13 +16,13 @@ let AgentObservationEntity = class AgentObservationEntity extends db_1.WithTimes
16
16
  };
17
17
  exports.AgentObservationEntity = AgentObservationEntity;
18
18
  __decorate([
19
- (0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
19
+ (0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
20
20
  __metadata("design:type", String)
21
- ], AgentObservationEntity.prototype, "scopeKind", void 0);
21
+ ], AgentObservationEntity.prototype, "agentId", void 0);
22
22
  __decorate([
23
23
  (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
24
24
  __metadata("design:type", String)
25
- ], AgentObservationEntity.prototype, "scopeId", void 0);
25
+ ], AgentObservationEntity.prototype, "observationScopeId", void 0);
26
26
  __decorate([
27
27
  (0, typeorm_1.Column)({ type: 'varchar', length: 16 }),
28
28
  __metadata("design:type", String)
@@ -49,8 +49,9 @@ __decorate([
49
49
  ], AgentObservationEntity.prototype, "supersededBy", void 0);
50
50
  exports.AgentObservationEntity = AgentObservationEntity = __decorate([
51
51
  (0, typeorm_1.Entity)({ name: 'agents_observations' }),
52
- (0, typeorm_1.Index)(['scopeKind', 'scopeId', 'status', 'createdAt', 'id']),
53
- (0, typeorm_1.Index)(['scopeKind', 'scopeId', 'createdAt', 'id']),
52
+ (0, typeorm_1.Index)(['agentId', 'observationScopeId', 'status', 'createdAt', 'id']),
53
+ (0, typeorm_1.Index)(['agentId', 'observationScopeId', 'createdAt', 'id']),
54
+ (0, typeorm_1.Index)(['observationScopeId']),
54
55
  (0, typeorm_1.Index)(['parentId']),
55
56
  (0, typeorm_1.Index)(['supersededBy'])
56
57
  ], AgentObservationEntity);
@@ -1 +1 @@
1
- {"version":3,"file":"agent-observation.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAoD;AACpD,0CAAqD;AAW9C,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,8BAAyB;CAwBpE,CAAA;AAxBY,wDAAsB;AAElC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;yDACR;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;uDACzB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDACd;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACZ;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAChC;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACjB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDACd;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DAC5B;iCAvBhB,sBAAsB;IALlC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;IACvC,IAAA,eAAK,EAAC,CAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IAC5D,IAAA,eAAK,EAAC,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IAClD,IAAA,eAAK,EAAC,CAAC,UAAU,CAAC,CAAC;IACnB,IAAA,eAAK,EAAC,CAAC,cAAc,CAAC,CAAC;GACX,sBAAsB,CAwBlC"}
1
+ {"version":3,"file":"agent-observation.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAoD;AACpD,0CAAqD;AAW9C,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,8BAAyB;CAwBpE,CAAA;AAxBY,wDAAsB;AAElC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;uDACxB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;kEACd;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDACd;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACZ;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAChC;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACjB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDACd;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DAC5B;iCAvBhB,sBAAsB;IANlC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;IACvC,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IACrE,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,oBAAoB,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IAC3D,IAAA,eAAK,EAAC,CAAC,oBAAoB,CAAC,CAAC;IAC7B,IAAA,eAAK,EAAC,CAAC,UAAU,CAAC,CAAC;IACnB,IAAA,eAAK,EAAC,CAAC,cAAc,CAAC,CAAC;GACX,sBAAsB,CAwBlC"}
@@ -2,15 +2,12 @@ import type { AgentIntegrationConfig, AgentJsonConfig, AgentSkill } from '@n8n/a
2
2
  import type { ToolDescriptor } from '@n8n/agents';
3
3
  import { Project, WithTimestampsAndStringId } from '@n8n/db';
4
4
  import { type Relation } from '@n8n/typeorm';
5
- import type { AgentPublishedVersion } from './agent-published-version.entity';
5
+ import type { AgentHistory } from './agent-history.entity';
6
6
  export declare class Agent extends WithTimestampsAndStringId {
7
7
  name: string;
8
8
  description: string | null;
9
9
  project: Project;
10
10
  projectId: string;
11
- credentialId: string | null;
12
- provider: string | null;
13
- model: string | null;
14
11
  schema: AgentJsonConfig | null;
15
12
  integrations: AgentIntegrationConfig[];
16
13
  tools: Record<string, {
@@ -19,5 +16,6 @@ export declare class Agent extends WithTimestampsAndStringId {
19
16
  }>;
20
17
  skills: Record<string, AgentSkill>;
21
18
  versionId: string | null;
22
- publishedVersion?: Relation<AgentPublishedVersion> | null;
19
+ activeVersionId: string | null;
20
+ activeVersion?: Relation<AgentHistory> | null;
23
21
  }
@@ -32,18 +32,6 @@ __decorate([
32
32
  (0, typeorm_1.Column)(),
33
33
  __metadata("design:type", String)
34
34
  ], Agent.prototype, "projectId", void 0);
35
- __decorate([
36
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
37
- __metadata("design:type", Object)
38
- ], Agent.prototype, "credentialId", void 0);
39
- __decorate([
40
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
41
- __metadata("design:type", Object)
42
- ], Agent.prototype, "provider", void 0);
43
- __decorate([
44
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
45
- __metadata("design:type", Object)
46
- ], Agent.prototype, "model", void 0);
47
35
  __decorate([
48
36
  (0, db_1.JsonColumn)({ nullable: true, default: null }),
49
37
  __metadata("design:type", Object)
@@ -65,9 +53,14 @@ __decorate([
65
53
  __metadata("design:type", Object)
66
54
  ], Agent.prototype, "versionId", void 0);
67
55
  __decorate([
68
- (0, typeorm_1.OneToOne)('AgentPublishedVersion', 'agent', { nullable: true }),
56
+ (0, typeorm_1.Column)({ type: 'varchar', length: 36, nullable: true }),
57
+ __metadata("design:type", Object)
58
+ ], Agent.prototype, "activeVersionId", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.ManyToOne)('AgentHistory', { onDelete: 'SET NULL', nullable: true }),
61
+ (0, typeorm_1.JoinColumn)({ name: 'activeVersionId' }),
69
62
  __metadata("design:type", Object)
70
- ], Agent.prototype, "publishedVersion", void 0);
63
+ ], Agent.prototype, "activeVersion", void 0);
71
64
  exports.Agent = Agent = __decorate([
72
65
  (0, typeorm_1.Entity)({ name: 'agents' })
73
66
  ], Agent);
@@ -1 +1 @@
1
- {"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gCAAyE;AACzE,0CAA8F;AAKvF,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,8BAAyB;CA+CnD,CAAA;AA/CY,sBAAK;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mCAC5B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC9B;AAI3B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,YAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACzB,YAAO;sCAAC;AAGjB;IADC,IAAA,gBAAM,GAAE;;wCACS;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAChB;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACpB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACvB;AAGrB;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;qCACf;AAG/B;IADC,IAAA,eAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CACS;AAGvC;IADC,IAAA,eAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oCAO5B;AAGF;IADC,IAAA,eAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;qCACK;AAInC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC/B;AAGzB;IADC,IAAA,kBAAQ,EAAC,uBAAuB,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACL;gBA9C9C,KAAK;IADjB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;GACd,KAAK,CA+CjB"}
1
+ {"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gCAAyE;AACzE,0CAAoF;AAK7E,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,8BAAyB;CA2CnD,CAAA;AA3CY,sBAAK;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mCAC5B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC9B;AAI3B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,YAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACzB,YAAO;sCAAC;AAGjB;IADC,IAAA,gBAAM,GAAE;;wCACS;AAGlB;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;qCACf;AAG/B;IADC,IAAA,eAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CACS;AAGvC;IADC,IAAA,eAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oCAO5B;AAGF;IADC,IAAA,eAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;qCACK;AAInC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC/B;AAIzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACzB;AAI/B;IAFC,IAAA,mBAAS,EAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACnE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;;4CACM;gBA1ClC,KAAK;IADjB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;GACd,KAAK,CA2CjB"}
@@ -0,0 +1,2 @@
1
+ export { DEFAULT_EPISODIC_MEMORY_EMBEDDING_MODEL, DEFAULT_EPISODIC_MEMORY_EXTRACTION_PROMPT, DEFAULT_EPISODIC_MEMORY_REFLECTION_PROMPT, buildEpisodicMemoryExtractorPrompt as buildN8nEpisodicMemoryExtractorPrompt, buildEpisodicMemoryReflectorPrompt as buildN8nEpisodicMemoryReflectorPrompt, createEpisodicMemoryExtractFn as createN8nEpisodicMemoryExtractFn, createEpisodicMemoryReflectFn as createN8nEpisodicMemoryReflectFn, } from '@n8n/agents';
2
+ export type { CreateEpisodicMemoryExtractFnOptions as CreateN8nEpisodicMemoryExtractFnOptions, CreateEpisodicMemoryReflectFnOptions as CreateN8nEpisodicMemoryReflectFnOptions, } from '@n8n/agents';