n8n 2.21.4 → 2.22.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 (336) hide show
  1. package/dist/active-workflow-manager.js +4 -0
  2. package/dist/active-workflow-manager.js.map +1 -1
  3. package/dist/build.tsbuildinfo +1 -1
  4. package/dist/commands/base-command.js +2 -1
  5. package/dist/commands/base-command.js.map +1 -1
  6. package/dist/commands/export/entities.d.ts +3 -0
  7. package/dist/commands/export/entities.js +8 -1
  8. package/dist/commands/export/entities.js.map +1 -1
  9. package/dist/concurrency/concurrency-control.service.d.ts +7 -2
  10. package/dist/concurrency/concurrency-control.service.js +72 -47
  11. package/dist/concurrency/concurrency-control.service.js.map +1 -1
  12. package/dist/constants.js +3 -0
  13. package/dist/constants.js.map +1 -1
  14. package/dist/controllers/e2e.controller.js +2 -0
  15. package/dist/controllers/e2e.controller.js.map +1 -1
  16. package/dist/controllers/users.controller.d.ts +1 -1
  17. package/dist/credentials/credentials.service.js.map +1 -1
  18. package/dist/evaluation.ee/evaluation-collection.service.d.ts +38 -0
  19. package/dist/evaluation.ee/evaluation-collection.service.js +327 -0
  20. package/dist/evaluation.ee/evaluation-collection.service.js.map +1 -0
  21. package/dist/evaluation.ee/evaluation-collections.controller.ee.d.ts +50 -0
  22. package/dist/evaluation.ee/evaluation-collections.controller.ee.js +148 -0
  23. package/dist/evaluation.ee/evaluation-collections.controller.ee.js.map +1 -0
  24. package/dist/evaluation.ee/evaluation-concurrency.helper.d.ts +11 -0
  25. package/dist/evaluation.ee/evaluation-concurrency.helper.js +40 -0
  26. package/dist/evaluation.ee/evaluation-concurrency.helper.js.map +1 -0
  27. package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +22 -6
  28. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +105 -15
  29. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
  30. package/dist/evaluation.ee/test-runs.controller.ee.d.ts +5 -6
  31. package/dist/evaluation.ee/test-runs.controller.ee.js +4 -24
  32. package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
  33. package/dist/interfaces.d.ts +6 -0
  34. package/dist/modules/agents/adapters/agents-credential-provider.d.ts +2 -1
  35. package/dist/modules/agents/adapters/agents-credential-provider.js +25 -24
  36. package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
  37. package/dist/modules/agents/agent-execution.service.js +0 -1
  38. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  39. package/dist/modules/agents/agent-skills.service.d.ts +1 -2
  40. package/dist/modules/agents/agent-skills.service.js.map +1 -1
  41. package/dist/modules/agents/agent-sse-stream.d.ts +1 -1
  42. package/dist/modules/agents/agent-sse-stream.js +0 -31
  43. package/dist/modules/agents/agent-sse-stream.js.map +1 -1
  44. package/dist/modules/agents/agents.controller.d.ts +64 -37
  45. package/dist/modules/agents/agents.controller.js +54 -40
  46. package/dist/modules/agents/agents.controller.js.map +1 -1
  47. package/dist/modules/agents/agents.service.d.ts +15 -5
  48. package/dist/modules/agents/agents.service.js +79 -71
  49. package/dist/modules/agents/agents.service.js.map +1 -1
  50. package/dist/modules/agents/builder/agent-builder-preview-path.d.ts +1 -0
  51. package/dist/modules/agents/builder/agent-builder-preview-path.js +9 -0
  52. package/dist/modules/agents/builder/agent-builder-preview-path.js.map +1 -0
  53. package/dist/modules/agents/builder/agents-builder-model-recommendations.d.ts +3 -0
  54. package/dist/modules/agents/builder/agents-builder-model-recommendations.js +106 -0
  55. package/dist/modules/agents/builder/agents-builder-model-recommendations.js.map +1 -0
  56. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +12 -11
  57. package/dist/modules/agents/builder/agents-builder-prompts.js +61 -32
  58. package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
  59. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +1 -1
  60. package/dist/modules/agents/builder/agents-builder-tools.service.js +7 -8
  61. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  62. package/dist/modules/agents/builder/agents-builder.service.js +6 -3
  63. package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
  64. package/dist/modules/agents/builder/interactive/ask-llm.tool.js +1 -1
  65. package/dist/modules/agents/builder/interactive/ask-llm.tool.js.map +1 -1
  66. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +1 -1
  67. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
  68. package/dist/modules/agents/entities/agent-execution.entity.d.ts +0 -1
  69. package/dist/modules/agents/entities/agent-execution.entity.js +0 -4
  70. package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
  71. package/dist/modules/agents/entities/agent-observation-lock.entity.d.ts +2 -0
  72. package/dist/modules/agents/entities/agent-observation-lock.entity.js +4 -0
  73. package/dist/modules/agents/entities/agent-observation-lock.entity.js.map +1 -1
  74. package/dist/modules/agents/entities/agent-observation.entity.d.ts +9 -5
  75. package/dist/modules/agents/entities/agent-observation.entity.js +21 -11
  76. package/dist/modules/agents/entities/agent-observation.entity.js.map +1 -1
  77. package/dist/modules/agents/entities/agent-published-version.entity.d.ts +1 -2
  78. package/dist/modules/agents/entities/agent-published-version.entity.js.map +1 -1
  79. package/dist/modules/agents/entities/agent.entity.d.ts +2 -3
  80. package/dist/modules/agents/entities/agent.entity.js.map +1 -1
  81. package/dist/modules/agents/execution-recorder.d.ts +1 -8
  82. package/dist/modules/agents/execution-recorder.js +67 -42
  83. package/dist/modules/agents/execution-recorder.js.map +1 -1
  84. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +6 -4
  85. package/dist/modules/agents/integrations/agent-chat-bridge.js +22 -13
  86. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  87. package/dist/modules/agents/integrations/agent-chat-integration.d.ts +4 -1
  88. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  89. package/dist/modules/agents/integrations/chat-integration.service.d.ts +17 -8
  90. package/dist/modules/agents/integrations/chat-integration.service.js +53 -37
  91. package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
  92. package/dist/modules/agents/integrations/integrations-sync.d.ts +2 -2
  93. package/dist/modules/agents/integrations/integrations-sync.js +1 -1
  94. package/dist/modules/agents/integrations/integrations-sync.js.map +1 -1
  95. package/dist/modules/agents/integrations/n8n-memory.d.ts +31 -35
  96. package/dist/modules/agents/integrations/n8n-memory.js +121 -127
  97. package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
  98. package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +9 -2
  99. package/dist/modules/agents/integrations/platforms/telegram-integration.js +51 -6
  100. package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
  101. package/dist/modules/agents/json-config/agent-config-composition.d.ts +2 -3
  102. package/dist/modules/agents/json-config/agent-config-composition.js.map +1 -1
  103. package/dist/modules/agents/json-config/from-json-config.d.ts +1 -2
  104. package/dist/modules/agents/json-config/from-json-config.js +31 -34
  105. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  106. package/dist/modules/agents/observation-log-observer.d.ts +2 -0
  107. package/dist/modules/agents/observation-log-observer.js +10 -0
  108. package/dist/modules/agents/observation-log-observer.js.map +1 -0
  109. package/dist/modules/agents/observation-log-reflector.d.ts +2 -0
  110. package/dist/modules/agents/observation-log-reflector.js +9 -0
  111. package/dist/modules/agents/observation-log-reflector.js.map +1 -0
  112. package/dist/modules/agents/repositories/agent-published-version.repository.d.ts +1 -1
  113. package/dist/modules/agents/repositories/agent.repository.js +1 -1
  114. package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
  115. package/dist/modules/agents/tools/node-tool-factory.d.ts +1 -1
  116. package/dist/modules/agents/tools/workflow-tool-factory.d.ts +1 -1
  117. package/dist/modules/agents/tools/workflow-tool-factory.js +40 -2
  118. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  119. package/dist/modules/agents/utils/execution-to-message-mapper.d.ts +6 -0
  120. package/dist/modules/agents/utils/execution-to-message-mapper.js +133 -0
  121. package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -0
  122. package/dist/modules/chat-hub/chat-hub-workflow.service.js +9 -0
  123. package/dist/modules/chat-hub/chat-hub-workflow.service.js.map +1 -1
  124. package/dist/modules/chat-hub/chat-hub.constants.js +4 -0
  125. package/dist/modules/chat-hub/chat-hub.constants.js.map +1 -1
  126. package/dist/modules/chat-hub/chat-hub.models.service.d.ts +1 -0
  127. package/dist/modules/chat-hub/chat-hub.models.service.js +43 -0
  128. package/dist/modules/chat-hub/chat-hub.models.service.js.map +1 -1
  129. package/dist/modules/chat-hub/chat-hub.module.d.ts +3 -3
  130. package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +7 -7
  131. package/dist/modules/chat-hub/context-limits.js +1 -0
  132. package/dist/modules/chat-hub/context-limits.js.map +1 -1
  133. package/dist/modules/chat-hub/dto/chat-models-request.dto.d.ts +2 -2
  134. package/dist/modules/community-packages/community-node-types-utils.d.ts +1 -1
  135. package/dist/modules/community-packages/community-node-types-utils.js +1 -1
  136. package/dist/modules/community-packages/community-node-types-utils.js.map +1 -1
  137. package/dist/modules/community-packages/community-node-types.service.js +1 -1
  138. package/dist/modules/community-packages/community-node-types.service.js.map +1 -1
  139. package/dist/modules/data-table/utils/sql-utils.d.ts +2 -0
  140. package/dist/modules/data-table/utils/sql-utils.js +26 -9
  141. package/dist/modules/data-table/utils/sql-utils.js.map +1 -1
  142. package/dist/modules/inbound-secrets/inbound-secrets-context-hook.d.ts +10 -0
  143. package/dist/modules/inbound-secrets/inbound-secrets-context-hook.js +55 -0
  144. package/dist/modules/inbound-secrets/inbound-secrets-context-hook.js.map +1 -0
  145. package/dist/modules/inbound-secrets/inbound-secrets.config.d.ts +3 -0
  146. package/dist/modules/inbound-secrets/inbound-secrets.config.js +27 -0
  147. package/dist/modules/inbound-secrets/inbound-secrets.config.js.map +1 -0
  148. package/dist/modules/inbound-secrets/inbound-secrets.module.d.ts +4 -0
  149. package/dist/modules/inbound-secrets/inbound-secrets.module.js +61 -0
  150. package/dist/modules/inbound-secrets/inbound-secrets.module.js.map +1 -0
  151. package/dist/modules/inbound-secrets/inbound-secrets.schemas.d.ts +3 -0
  152. package/dist/modules/inbound-secrets/inbound-secrets.schemas.js +6 -0
  153. package/dist/modules/inbound-secrets/inbound-secrets.schemas.js.map +1 -0
  154. package/dist/modules/inbound-secrets/inbound-secrets.service.d.ts +17 -0
  155. package/dist/modules/inbound-secrets/inbound-secrets.service.js +76 -0
  156. package/dist/modules/inbound-secrets/inbound-secrets.service.js.map +1 -0
  157. package/dist/modules/inbound-secrets/path-traversal.d.ts +4 -0
  158. package/dist/modules/inbound-secrets/path-traversal.js +51 -0
  159. package/dist/modules/inbound-secrets/path-traversal.js.map +1 -0
  160. package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +1 -0
  161. package/dist/modules/insights/database/repositories/insights-by-period.repository.js +19 -4
  162. package/dist/modules/insights/database/repositories/insights-by-period.repository.js.map +1 -1
  163. package/dist/modules/insights/database/repositories/insights-raw.repository.js +1 -0
  164. package/dist/modules/insights/database/repositories/insights-raw.repository.js.map +1 -1
  165. package/dist/modules/insights/insights-compaction.service.d.ts +5 -0
  166. package/dist/modules/insights/insights-compaction.service.js +93 -18
  167. package/dist/modules/insights/insights-compaction.service.js.map +1 -1
  168. package/dist/modules/insights/insights.config.d.ts +3 -0
  169. package/dist/modules/insights/insights.config.js +15 -0
  170. package/dist/modules/insights/insights.config.js.map +1 -1
  171. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.d.ts +17 -0
  172. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js +61 -0
  173. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js.map +1 -0
  174. package/dist/modules/instance-ai/eval/execution.service.js +8 -2
  175. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  176. package/dist/modules/instance-ai/eval/mock-handler.d.ts +1 -0
  177. package/dist/modules/instance-ai/eval/mock-handler.js +116 -72
  178. package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
  179. package/dist/modules/instance-ai/eval/mock-quirks.d.ts +10 -0
  180. package/dist/modules/instance-ai/eval/mock-quirks.js +25 -0
  181. package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -0
  182. package/dist/modules/instance-ai/instance-ai-settings.service.js +14 -0
  183. package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
  184. package/dist/modules/instance-ai/instance-ai.adapter.service.js +25 -5
  185. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  186. package/dist/modules/instance-ai/instance-ai.controller.d.ts +10 -3
  187. package/dist/modules/instance-ai/instance-ai.controller.js +34 -2
  188. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  189. package/dist/modules/instance-ai/instance-ai.service.d.ts +2 -1
  190. package/dist/modules/instance-ai/instance-ai.service.js +75 -29
  191. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  192. package/dist/modules/instance-ai/liveness/index.d.ts +1 -1
  193. package/dist/modules/instance-ai/liveness/index.js.map +1 -1
  194. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +12 -3
  195. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +21 -11
  196. package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
  197. package/dist/modules/instance-ai/run-timeout-details.d.ts +8 -0
  198. package/dist/modules/instance-ai/run-timeout-details.js +3 -0
  199. package/dist/modules/instance-ai/run-timeout-details.js.map +1 -0
  200. package/dist/modules/instance-ai/run-trace-metadata.d.ts +15 -0
  201. package/dist/modules/instance-ai/run-trace-metadata.js +63 -0
  202. package/dist/modules/instance-ai/run-trace-metadata.js.map +1 -0
  203. package/dist/modules/instance-version-history/instance-version-history.controller.d.ts +5 -3
  204. package/dist/modules/instance-version-history/instance-version-history.controller.js +9 -9
  205. package/dist/modules/instance-version-history/instance-version-history.controller.js.map +1 -1
  206. package/dist/modules/mcp/mcp-api-key.service.js +1 -0
  207. package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
  208. package/dist/modules/mcp/mcp-oauth-token.service.d.ts +7 -2
  209. package/dist/modules/mcp/mcp-oauth-token.service.js +16 -6
  210. package/dist/modules/mcp/mcp-oauth-token.service.js.map +1 -1
  211. package/dist/modules/mcp/mcp-server-middleware.service.js +2 -0
  212. package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
  213. package/dist/modules/mcp/mcp.controller.js +1 -0
  214. package/dist/modules/mcp/mcp.controller.js.map +1 -1
  215. package/dist/modules/mcp/mcp.types.d.ts +2 -0
  216. package/dist/modules/mcp/tools/workflow-builder/credential-validation.d.ts +15 -0
  217. package/dist/modules/mcp/tools/workflow-builder/credential-validation.js +91 -0
  218. package/dist/modules/mcp/tools/workflow-builder/credential-validation.js.map +1 -0
  219. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +1 -1
  220. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +228 -3
  221. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +74 -60
  222. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  223. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +251 -0
  224. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +447 -0
  225. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -0
  226. package/dist/modules/mcp-registry/mcp-registry-node-loader.d.ts +4 -3
  227. package/dist/modules/mcp-registry/mcp-registry-node-loader.js +6 -3
  228. package/dist/modules/mcp-registry/mcp-registry-node-loader.js.map +1 -1
  229. package/dist/modules/mcp-registry/mcp-registry-test.controller.d.ts +12 -0
  230. package/dist/modules/mcp-registry/mcp-registry-test.controller.js +49 -0
  231. package/dist/modules/mcp-registry/mcp-registry-test.controller.js.map +1 -0
  232. package/dist/modules/mcp-registry/mcp-registry.module.d.ts +2 -0
  233. package/dist/modules/mcp-registry/mcp-registry.module.js +12 -2
  234. package/dist/modules/mcp-registry/mcp-registry.module.js.map +1 -1
  235. package/dist/modules/mcp-registry/node-description-transform.js +16 -2
  236. package/dist/modules/mcp-registry/node-description-transform.js.map +1 -1
  237. package/dist/modules/mcp-registry/registry/mcp-registry-api.client.d.ts +8 -0
  238. package/dist/modules/mcp-registry/registry/mcp-registry-api.client.js +58 -0
  239. package/dist/modules/mcp-registry/registry/mcp-registry-api.client.js.map +1 -0
  240. package/dist/modules/mcp-registry/registry/mcp-registry-server.entity.d.ts +36 -0
  241. package/dist/modules/mcp-registry/registry/mcp-registry-server.entity.js +46 -0
  242. package/dist/modules/mcp-registry/registry/mcp-registry-server.entity.js.map +1 -0
  243. package/dist/modules/mcp-registry/registry/mcp-registry-server.repository.d.ts +5 -0
  244. package/dist/modules/mcp-registry/registry/mcp-registry-server.repository.js +26 -0
  245. package/dist/modules/mcp-registry/registry/mcp-registry-server.repository.js.map +1 -0
  246. package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +37 -4
  247. package/dist/modules/mcp-registry/registry/mcp-registry.service.js +196 -12
  248. package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
  249. package/dist/modules/mcp-registry/registry/mcp-registry.types.d.ts +9 -1
  250. package/dist/modules/mcp-registry/registry/mcp-registry.types.js +29 -0
  251. package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -1
  252. package/dist/modules/mcp-registry/registry/mock-servers.js +2 -0
  253. package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
  254. package/dist/modules/otel/execution-level-tracer.js +4 -2
  255. package/dist/modules/otel/execution-level-tracer.js.map +1 -1
  256. package/dist/modules/otel/otel.constants.d.ts +1 -0
  257. package/dist/modules/otel/otel.constants.js +1 -0
  258. package/dist/modules/otel/otel.constants.js.map +1 -1
  259. package/dist/modules/otel/otel.module.d.ts +3 -0
  260. package/dist/modules/otel/otel.module.js +5 -0
  261. package/dist/modules/otel/otel.module.js.map +1 -1
  262. package/dist/modules/redaction/executions/execution-redaction.service.js +8 -3
  263. package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
  264. package/dist/modules/redaction/instance-redaction-enforcement.service.d.ts +14 -0
  265. package/dist/modules/redaction/instance-redaction-enforcement.service.js +91 -0
  266. package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -0
  267. package/dist/modules/redaction/redaction-enforcement.feature-flag.d.ts +2 -0
  268. package/dist/modules/redaction/redaction-enforcement.feature-flag.js +9 -0
  269. package/dist/modules/redaction/redaction-enforcement.feature-flag.js.map +1 -0
  270. package/dist/modules/redaction/redaction-enforcement.service.d.ts +8 -0
  271. package/dist/modules/redaction/redaction-enforcement.service.js +38 -0
  272. package/dist/modules/redaction/redaction-enforcement.service.js.map +1 -0
  273. package/dist/modules/redaction/redaction.config.d.ts +3 -0
  274. package/dist/modules/redaction/redaction.config.js +27 -0
  275. package/dist/modules/redaction/redaction.config.js.map +1 -0
  276. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +3 -1
  277. package/dist/modules/source-control.ee/source-control-import.service.ee.js +14 -6
  278. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  279. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +2 -2
  280. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +1 -1
  281. package/dist/modules/workflow-index/workflow-index.service.js.map +1 -1
  282. package/dist/oauth/oauth.service.js +1 -0
  283. package/dist/oauth/oauth.service.js.map +1 -1
  284. package/dist/posthog/index.d.ts +0 -1
  285. package/dist/posthog/index.js +2 -10
  286. package/dist/posthog/index.js.map +1 -1
  287. package/dist/public-api/v1/handlers/workflows/workflows.handler.js +2 -1
  288. package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
  289. package/dist/scaling/constants.d.ts +2 -2
  290. package/dist/scaling/pubsub/pubsub.event-map.d.ts +6 -3
  291. package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
  292. package/dist/scaling/scaling.service.js +3 -2
  293. package/dist/scaling/scaling.service.js.map +1 -1
  294. package/dist/server.d.ts +1 -0
  295. package/dist/server.js +1 -0
  296. package/dist/server.js.map +1 -1
  297. package/dist/services/export.service.d.ts +6 -1
  298. package/dist/services/export.service.js +97 -1
  299. package/dist/services/export.service.js.map +1 -1
  300. package/dist/services/frontend.service.js +3 -1
  301. package/dist/services/frontend.service.js.map +1 -1
  302. package/dist/services/import.service.d.ts +2 -1
  303. package/dist/services/import.service.js +70 -22
  304. package/dist/services/import.service.js.map +1 -1
  305. package/dist/telemetry/index.d.ts +13 -1
  306. package/dist/telemetry/index.js +54 -18
  307. package/dist/telemetry/index.js.map +1 -1
  308. package/dist/{modules/community-packages → utils}/strapi-utils.js +2 -2
  309. package/dist/utils/strapi-utils.js.map +1 -0
  310. package/dist/workflows/workflow-history/workflow-history.controller.d.ts +9 -0
  311. package/dist/workflows/workflow-history/workflow-history.controller.js +17 -0
  312. package/dist/workflows/workflow-history/workflow-history.controller.js.map +1 -1
  313. package/dist/workflows/workflow-history/workflow-history.service.d.ts +16 -2
  314. package/dist/workflows/workflow-history/workflow-history.service.js +55 -1
  315. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  316. package/dist/workflows/workflow.service.d.ts +3 -1
  317. package/dist/workflows/workflow.service.js +6 -2
  318. package/dist/workflows/workflow.service.js.map +1 -1
  319. package/package.json +37 -37
  320. package/dist/modules/agents/json-config/agent-json-config.d.ts +0 -1022
  321. package/dist/modules/agents/json-config/agent-json-config.js +0 -128
  322. package/dist/modules/agents/json-config/agent-json-config.js.map +0 -1
  323. package/dist/modules/agents/json-config/integration-config.d.ts +0 -61
  324. package/dist/modules/agents/json-config/integration-config.js +0 -33
  325. package/dist/modules/agents/json-config/integration-config.js.map +0 -1
  326. package/dist/modules/community-packages/strapi-utils.js.map +0 -1
  327. package/dist/modules/mcp-registry/mcp-registry-node-loader.test.d.ts +0 -1
  328. package/dist/modules/mcp-registry/mcp-registry-node-loader.test.js +0 -244
  329. package/dist/modules/mcp-registry/mcp-registry-node-loader.test.js.map +0 -1
  330. package/dist/modules/mcp-registry/node-description-transform.test.d.ts +0 -1
  331. package/dist/modules/mcp-registry/node-description-transform.test.js +0 -286
  332. package/dist/modules/mcp-registry/node-description-transform.test.js.map +0 -1
  333. package/dist/modules/mcp-registry/registry/mcp-registry.service.test.d.ts +0 -1
  334. package/dist/modules/mcp-registry/registry/mcp-registry.service.test.js +0 -41
  335. package/dist/modules/mcp-registry/registry/mcp-registry.service.test.js.map +0 -1
  336. /package/dist/{modules/community-packages → utils}/strapi-utils.d.ts +0 -0
@@ -1,286 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const n8n_workflow_1 = require("n8n-workflow");
4
- const node_description_transform_1 = require("./node-description-transform");
5
- const mock_servers_1 = require("./registry/mock-servers");
6
- const baseDescription = {
7
- displayName: 'MCP Registry Client (internal)',
8
- name: 'mcpRegistryClientTool',
9
- hidden: true,
10
- group: ['output'],
11
- version: 1,
12
- description: 'Runtime backing for MCP registry-derived nodes',
13
- defaults: { name: 'MCP Registry Client' },
14
- codex: {
15
- categories: ['AI'],
16
- subcategories: { AI: ['Model Context Protocol'] },
17
- alias: ['MCP', 'Model Context Protocol'],
18
- },
19
- inputs: [],
20
- outputs: [],
21
- credentials: [{ name: 'mcpOAuth2Api', required: true }],
22
- properties: [
23
- { displayName: 'Endpoint URL', name: 'endpointUrl', type: 'hidden', default: '' },
24
- {
25
- displayName: 'Server Transport',
26
- name: 'serverTransport',
27
- type: 'hidden',
28
- default: 'httpStreamable',
29
- },
30
- {
31
- displayName: 'Tools to Include',
32
- name: 'include',
33
- type: 'options',
34
- default: 'all',
35
- options: [],
36
- },
37
- ],
38
- };
39
- describe('serverToNodeDescription', () => {
40
- it('returns a description tailored to the Notion mock server', () => {
41
- const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
42
- expect(description).not.toBeNull();
43
- expect(description).toMatchObject({
44
- name: 'notion',
45
- displayName: 'Notion MCP',
46
- description: mock_servers_1.notionMockServer.description,
47
- iconUrl: mock_servers_1.notionMockServer.icons[0].src,
48
- defaults: { name: 'Notion MCP' },
49
- version: 1,
50
- });
51
- expect(description?.hidden).toBeUndefined();
52
- });
53
- it('prefers streamable-http when both remotes are available', () => {
54
- const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
55
- const endpointUrl = description?.properties.find((p) => p.name === 'endpointUrl');
56
- const serverTransport = description?.properties.find((p) => p.name === 'serverTransport');
57
- expect(serverTransport?.default).toBe('httpStreamable');
58
- expect(endpointUrl?.default).toBe('https://mcp.notion.com/mcp');
59
- });
60
- it('falls back to sse when only sse is available', () => {
61
- const sseOnlyServer = {
62
- ...mock_servers_1.notionMockServer,
63
- remotes: [{ type: 'sse', url: 'https://mcp.notion.com/sse' }],
64
- };
65
- const description = (0, node_description_transform_1.serverToNodeDescription)(sseOnlyServer, baseDescription);
66
- const endpointUrl = description?.properties.find((p) => p.name === 'endpointUrl');
67
- const serverTransport = description?.properties.find((p) => p.name === 'serverTransport');
68
- expect(serverTransport?.default).toBe('sse');
69
- expect(endpointUrl?.default).toBe('https://mcp.notion.com/sse');
70
- });
71
- it('returns null when no supported remote is available', () => {
72
- const unsupportedServer = {
73
- ...mock_servers_1.notionMockServer,
74
- remotes: [],
75
- };
76
- expect((0, node_description_transform_1.serverToNodeDescription)(unsupportedServer, baseDescription)).toBeNull();
77
- });
78
- it('marks deprecated servers as hidden so the node creator skips them', () => {
79
- const deprecatedServer = { ...mock_servers_1.notionMockServer, status: 'deprecated' };
80
- const description = (0, node_description_transform_1.serverToNodeDescription)(deprecatedServer, baseDescription);
81
- expect(description?.hidden).toBe(true);
82
- });
83
- it('returns a themed iconUrl when both light and dark variants are available', () => {
84
- const themedServer = {
85
- ...mock_servers_1.notionMockServer,
86
- icons: [
87
- { src: 'https://example.com/light.svg', theme: 'light' },
88
- { src: 'https://example.com/dark.svg', theme: 'dark' },
89
- ],
90
- };
91
- const description = (0, node_description_transform_1.serverToNodeDescription)(themedServer, baseDescription);
92
- expect(description?.iconUrl).toEqual({
93
- light: 'https://example.com/light.svg',
94
- dark: 'https://example.com/dark.svg',
95
- });
96
- });
97
- it('falls back to the first icon when only one theme is provided', () => {
98
- const lightOnlyServer = {
99
- ...mock_servers_1.notionMockServer,
100
- icons: [{ src: 'https://example.com/light.svg', theme: 'light' }],
101
- };
102
- const description = (0, node_description_transform_1.serverToNodeDescription)(lightOnlyServer, baseDescription);
103
- expect(description?.iconUrl).toBe('https://example.com/light.svg');
104
- });
105
- it('prefers SVG over PNG over JPG when multiple formats are available', () => {
106
- const multiFormatServer = {
107
- ...mock_servers_1.notionMockServer,
108
- icons: [
109
- { src: 'https://example.com/icon.jpg', mimeType: 'image/jpeg' },
110
- { src: 'https://example.com/icon.png', mimeType: 'image/png' },
111
- { src: 'https://example.com/icon.svg', mimeType: 'image/svg+xml' },
112
- ],
113
- };
114
- const description = (0, node_description_transform_1.serverToNodeDescription)(multiFormatServer, baseDescription);
115
- expect(description?.iconUrl).toBe('https://example.com/icon.svg');
116
- });
117
- it('prefers PNG over JPG when SVG is not available', () => {
118
- const noSvgServer = {
119
- ...mock_servers_1.notionMockServer,
120
- icons: [
121
- { src: 'https://example.com/icon.jpg', mimeType: 'image/jpeg' },
122
- { src: 'https://example.com/icon.png', mimeType: 'image/png' },
123
- ],
124
- };
125
- const description = (0, node_description_transform_1.serverToNodeDescription)(noSvgServer, baseDescription);
126
- expect(description?.iconUrl).toBe('https://example.com/icon.png');
127
- });
128
- it('applies mime type preference within each theme', () => {
129
- const themedMultiFormatServer = {
130
- ...mock_servers_1.notionMockServer,
131
- icons: [
132
- { src: 'https://example.com/light.png', mimeType: 'image/png', theme: 'light' },
133
- { src: 'https://example.com/light.svg', mimeType: 'image/svg+xml', theme: 'light' },
134
- { src: 'https://example.com/dark.jpg', mimeType: 'image/jpeg', theme: 'dark' },
135
- { src: 'https://example.com/dark.png', mimeType: 'image/png', theme: 'dark' },
136
- ],
137
- };
138
- const description = (0, node_description_transform_1.serverToNodeDescription)(themedMultiFormatServer, baseDescription);
139
- expect(description?.iconUrl).toEqual({
140
- light: 'https://example.com/light.svg',
141
- dark: 'https://example.com/dark.png',
142
- });
143
- });
144
- it('extends codex.alias with the title and displayName', () => {
145
- const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
146
- expect(description?.codex?.alias).toEqual([
147
- 'MCP',
148
- 'Model Context Protocol',
149
- 'Notion',
150
- 'Notion MCP',
151
- ]);
152
- });
153
- it('sets primaryDocumentation when websiteUrl is present', () => {
154
- const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
155
- expect(description?.codex?.resources).toEqual({
156
- primaryDocumentation: [{ url: mock_servers_1.notionMockServer.websiteUrl }],
157
- });
158
- });
159
- it('does not mutate the input baseDescription', () => {
160
- const snapshot = (0, n8n_workflow_1.deepCopy)(baseDescription);
161
- (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
162
- expect(baseDescription).toEqual(snapshot);
163
- });
164
- it('leaves properties other than endpointUrl and serverTransport untouched', () => {
165
- const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
166
- const include = description?.properties.find((p) => p.name === 'include');
167
- expect(include).toEqual(baseDescription.properties.find((p) => p.name === 'include'));
168
- });
169
- it('matches inline snapshot for Notion mock server', () => {
170
- const description = (0, node_description_transform_1.serverToNodeDescription)(mock_servers_1.notionMockServer, baseDescription);
171
- expect(description).toMatchInlineSnapshot(`
172
- {
173
- "codex": {
174
- "alias": [
175
- "MCP",
176
- "Model Context Protocol",
177
- "Notion",
178
- "Notion MCP",
179
- ],
180
- "categories": [
181
- "AI",
182
- ],
183
- "resources": {
184
- "primaryDocumentation": [
185
- {
186
- "url": "https://developers.notion.com/docs/mcp",
187
- },
188
- ],
189
- },
190
- "subcategories": {
191
- "AI": [
192
- "Model Context Protocol",
193
- ],
194
- },
195
- },
196
- "credentials": [
197
- {
198
- "name": "notionMcpOAuth2Api",
199
- "required": true,
200
- },
201
- ],
202
- "defaults": {
203
- "name": "Notion MCP",
204
- },
205
- "description": "Notion's official MCP server lets you use your Notion workspace as a system of record for knowledge work and software development. Search questions about the codebase and business, fetch links to pages such as tech specs and PRDs, and track tasks with your team.",
206
- "displayName": "Notion MCP",
207
- "group": [
208
- "output",
209
- ],
210
- "iconUrl": "https://mcp.notion.com/notion-logo-block-main.svg",
211
- "inputs": [],
212
- "name": "notion",
213
- "outputs": [],
214
- "properties": [
215
- {
216
- "default": "https://mcp.notion.com/mcp",
217
- "displayName": "Endpoint URL",
218
- "name": "endpointUrl",
219
- "type": "hidden",
220
- },
221
- {
222
- "default": "httpStreamable",
223
- "displayName": "Server Transport",
224
- "name": "serverTransport",
225
- "type": "hidden",
226
- },
227
- {
228
- "default": "all",
229
- "displayName": "Tools to Include",
230
- "name": "include",
231
- "options": [],
232
- "type": "options",
233
- },
234
- ],
235
- "version": 1,
236
- }
237
- `);
238
- });
239
- });
240
- describe('serverToCredentialDescription', () => {
241
- it('returns a description for servers with OAuth2 auth type', () => {
242
- const description = (0, node_description_transform_1.serverToCredentialDescription)(mock_servers_1.notionMockServer);
243
- expect(description).not.toBeNull();
244
- expect(description).toEqual({
245
- name: 'notionMcpOAuth2Api',
246
- displayName: 'Notion MCP OAuth2',
247
- extends: ['mcpOAuth2Api'],
248
- icon: 'node:@n8n/mcp-registry.notion',
249
- properties: [
250
- {
251
- displayName: 'Use Dynamic Client Registration',
252
- name: 'useDynamicClientRegistration',
253
- type: 'hidden',
254
- default: true,
255
- },
256
- {
257
- displayName: 'Server URL',
258
- name: 'serverUrl',
259
- type: 'hidden',
260
- default: 'https://mcp.notion.com/mcp',
261
- },
262
- {
263
- displayName: 'Allowed HTTP Request Domains',
264
- name: 'allowedHttpRequestDomains',
265
- type: 'hidden',
266
- default: 'none',
267
- },
268
- ],
269
- });
270
- });
271
- it('returns null when the auth type is not supported', () => {
272
- const unsupportedServer = {
273
- ...mock_servers_1.notionMockServer,
274
- authType: 'foo',
275
- };
276
- expect((0, node_description_transform_1.serverToCredentialDescription)(unsupportedServer)).toBeNull();
277
- });
278
- it('returns null when no remote is available', () => {
279
- const noRemoteServer = {
280
- ...mock_servers_1.notionMockServer,
281
- remotes: [],
282
- };
283
- expect((0, node_description_transform_1.serverToCredentialDescription)(noRemoteServer)).toBeNull();
284
- });
285
- });
286
- //# sourceMappingURL=node-description-transform.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node-description-transform.test.js","sourceRoot":"","sources":["../../../src/modules/mcp-registry/node-description-transform.test.ts"],"names":[],"mappings":";;AAAA,+CAAmE;AAEnE,6EAGsC;AAEtC,0DAA2D;AAE3D,MAAM,eAAe,GAAyB;IAC7C,WAAW,EAAE,gCAAgC;IAC7C,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,CAAC,QAAQ,CAAC;IACjB,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE;IACzC,KAAK,EAAE;QACN,UAAU,EAAE,CAAC,IAAI,CAAC;QAClB,aAAa,EAAE,EAAE,EAAE,EAAE,CAAC,wBAAwB,CAAC,EAAE;QACjD,KAAK,EAAE,CAAC,KAAK,EAAE,wBAAwB,CAAC;KACxC;IACD,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,UAAU,EAAE;QACX,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACjF;YACC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,gBAAgB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AO,EAAE,4BAA4B;iBACrC;gBACD;oBACC,WAAW,EAAE,8BAA8B;oBAC3C,IAAI,EAAE,2BAA2B;oBACjC,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,MAAM;iBACf;aACD;SACD,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC3D,MAAM,iBAAiB,GAAsB;YAC5C,GAAG,+BAAgB;YACnB,QAAQ,EAAE,KAAc;SACxB,CAAC;QAEF,MAAM,CAAC,IAAA,0DAA6B,EAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IACrE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QACnD,MAAM,cAAc,GAAsB;YACzC,GAAG,+BAAgB;YACnB,OAAO,EAAE,EAAE;SACX,CAAC;QAEF,MAAM,CAAC,IAAA,0DAA6B,EAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IAClE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const mcp_registry_service_1 = require("./mcp-registry.service");
4
- const mock_servers_1 = require("./mock-servers");
5
- describe('McpRegistryService', () => {
6
- let service;
7
- beforeEach(() => {
8
- service = new mcp_registry_service_1.McpRegistryService();
9
- });
10
- function seedDeprecated(slug) {
11
- const deprecated = { ...mock_servers_1.notionMockServer, slug, status: 'deprecated' };
12
- service.servers.set(slug, deprecated);
13
- return deprecated;
14
- }
15
- describe('getAll', () => {
16
- it('returns active servers by default', () => {
17
- expect(service.getAll()).toEqual([mock_servers_1.notionMockServer, mock_servers_1.linearMockServer]);
18
- });
19
- it('omits deprecated servers by default', () => {
20
- seedDeprecated('old');
21
- expect(service.getAll()).toEqual([mock_servers_1.notionMockServer, mock_servers_1.linearMockServer]);
22
- });
23
- it('returns deprecated servers when includeDeprecated is true', () => {
24
- const deprecated = seedDeprecated('old');
25
- expect(service.getAll({ includeDeprecated: true })).toEqual([
26
- mock_servers_1.notionMockServer,
27
- mock_servers_1.linearMockServer,
28
- deprecated,
29
- ]);
30
- });
31
- });
32
- describe('get', () => {
33
- it('returns the matching server by slug', () => {
34
- expect(service.get('notion')).toEqual(mock_servers_1.notionMockServer);
35
- });
36
- it('returns undefined when the slug is not registered', () => {
37
- expect(service.get('does-not-exist')).toBeUndefined();
38
- });
39
- });
40
- });
41
- //# sourceMappingURL=mcp-registry.service.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-registry.service.test.js","sourceRoot":"","sources":["../../../../src/modules/mcp-registry/registry/mcp-registry.service.test.ts"],"names":[],"mappings":";;AAAA,iEAA4D;AAE5D,iDAAoE;AAEpE,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACnC,IAAI,OAA2B,CAAC;IAEhC,UAAU,CAAC,GAAG,EAAE;QACf,OAAO,GAAG,IAAI,yCAAkB,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,IAAY;QACnC,MAAM,UAAU,GAAsB,EAAE,GAAG,+BAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;QACzF,OAAkE,CAAC,OAAO,CAAC,GAAG,CAC9E,IAAI,EACJ,UAAU,CACV,CAAC;QACF,OAAO,UAAU,CAAC;IACnB,CAAC;IAED,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;YAC5C,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,+BAAgB,EAAE,+BAAgB,CAAC,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;YAC9C,cAAc,CAAC,KAAK,CAAC,CAAC;YAEtB,MAAM,CAAC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