@atom8n/ai-workflow-builder 1.2.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 (455) hide show
  1. package/dist/agents/responder.agent.d.ts +21 -0
  2. package/dist/agents/responder.agent.js +71 -0
  3. package/dist/agents/responder.agent.js.map +1 -0
  4. package/dist/agents/supervisor.agent.d.ts +31 -0
  5. package/dist/agents/supervisor.agent.js +68 -0
  6. package/dist/agents/supervisor.agent.js.map +1 -0
  7. package/dist/ai-workflow-builder-agent.service.d.ts +32 -0
  8. package/dist/ai-workflow-builder-agent.service.js +236 -0
  9. package/dist/ai-workflow-builder-agent.service.js.map +1 -0
  10. package/dist/build.tsbuildinfo +1 -0
  11. package/dist/chains/conversation-compact.d.ts +7 -0
  12. package/dist/chains/conversation-compact.js +56 -0
  13. package/dist/chains/conversation-compact.js.map +1 -0
  14. package/dist/chains/parameter-updater.d.ts +16 -0
  15. package/dist/chains/parameter-updater.js +112 -0
  16. package/dist/chains/parameter-updater.js.map +1 -0
  17. package/dist/chains/prompt-categorization.d.ts +3 -0
  18. package/dist/chains/prompt-categorization.js +31 -0
  19. package/dist/chains/prompt-categorization.js.map +1 -0
  20. package/dist/chains/test/integration/test-helpers.d.ts +3 -0
  21. package/dist/chains/test/integration/test-helpers.js +16 -0
  22. package/dist/chains/test/integration/test-helpers.js.map +1 -0
  23. package/dist/chains/workflow-name.d.ts +4 -0
  24. package/dist/chains/workflow-name.js +22 -0
  25. package/dist/chains/workflow-name.js.map +1 -0
  26. package/dist/constants.d.ts +14 -0
  27. package/dist/constants.js +18 -0
  28. package/dist/constants.js.map +1 -0
  29. package/dist/errors/index.d.ts +52 -0
  30. package/dist/errors/index.js +137 -0
  31. package/dist/errors/index.js.map +1 -0
  32. package/dist/index.d.ts +4 -0
  33. package/dist/index.js +22 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/llm-config.d.ts +11 -0
  36. package/dist/llm-config.js +126 -0
  37. package/dist/llm-config.js.map +1 -0
  38. package/dist/multi-agent-workflow-subgraphs.d.ts +122 -0
  39. package/dist/multi-agent-workflow-subgraphs.js +159 -0
  40. package/dist/multi-agent-workflow-subgraphs.js.map +1 -0
  41. package/dist/parent-graph-state.d.ts +27 -0
  42. package/dist/parent-graph-state.js +47 -0
  43. package/dist/parent-graph-state.js.map +1 -0
  44. package/dist/prompts/agents/builder.prompt.d.ts +1 -0
  45. package/dist/prompts/agents/builder.prompt.js +320 -0
  46. package/dist/prompts/agents/builder.prompt.js.map +1 -0
  47. package/dist/prompts/agents/configurator.prompt.d.ts +2 -0
  48. package/dist/prompts/agents/configurator.prompt.js +143 -0
  49. package/dist/prompts/agents/configurator.prompt.js.map +1 -0
  50. package/dist/prompts/agents/discovery.prompt.d.ts +11 -0
  51. package/dist/prompts/agents/discovery.prompt.js +260 -0
  52. package/dist/prompts/agents/discovery.prompt.js.map +1 -0
  53. package/dist/prompts/agents/responder.prompt.d.ts +1 -0
  54. package/dist/prompts/agents/responder.prompt.js +41 -0
  55. package/dist/prompts/agents/responder.prompt.js.map +1 -0
  56. package/dist/prompts/agents/supervisor.prompt.d.ts +1 -0
  57. package/dist/prompts/agents/supervisor.prompt.js +43 -0
  58. package/dist/prompts/agents/supervisor.prompt.js.map +1 -0
  59. package/dist/prompts/builder/index.d.ts +2 -0
  60. package/dist/prompts/builder/index.js +7 -0
  61. package/dist/prompts/builder/index.js.map +1 -0
  62. package/dist/prompts/builder/prompt-builder.d.ts +17 -0
  63. package/dist/prompts/builder/prompt-builder.js +147 -0
  64. package/dist/prompts/builder/prompt-builder.js.map +1 -0
  65. package/dist/prompts/builder/types.d.ts +22 -0
  66. package/dist/prompts/builder/types.js +3 -0
  67. package/dist/prompts/builder/types.js.map +1 -0
  68. package/dist/prompts/chains/categorization.prompt.d.ts +43 -0
  69. package/dist/prompts/chains/categorization.prompt.js +86 -0
  70. package/dist/prompts/chains/categorization.prompt.js.map +1 -0
  71. package/dist/prompts/chains/compact.prompt.d.ts +2 -0
  72. package/dist/prompts/chains/compact.prompt.js +16 -0
  73. package/dist/prompts/chains/compact.prompt.js.map +1 -0
  74. package/dist/prompts/chains/parameter-updater/examples/if-node.d.ts +2 -0
  75. package/dist/prompts/chains/parameter-updater/examples/if-node.js +141 -0
  76. package/dist/prompts/chains/parameter-updater/examples/if-node.js.map +1 -0
  77. package/dist/prompts/chains/parameter-updater/examples/index.d.ts +6 -0
  78. package/dist/prompts/chains/parameter-updater/examples/index.js +16 -0
  79. package/dist/prompts/chains/parameter-updater/examples/index.js.map +1 -0
  80. package/dist/prompts/chains/parameter-updater/examples/resource-locator.d.ts +2 -0
  81. package/dist/prompts/chains/parameter-updater/examples/resource-locator.js +83 -0
  82. package/dist/prompts/chains/parameter-updater/examples/resource-locator.js.map +1 -0
  83. package/dist/prompts/chains/parameter-updater/examples/set-node.d.ts +2 -0
  84. package/dist/prompts/chains/parameter-updater/examples/set-node.js +151 -0
  85. package/dist/prompts/chains/parameter-updater/examples/set-node.js.map +1 -0
  86. package/dist/prompts/chains/parameter-updater/examples/simple-updates.d.ts +2 -0
  87. package/dist/prompts/chains/parameter-updater/examples/simple-updates.js +54 -0
  88. package/dist/prompts/chains/parameter-updater/examples/simple-updates.js.map +1 -0
  89. package/dist/prompts/chains/parameter-updater/examples/switch-node.d.ts +2 -0
  90. package/dist/prompts/chains/parameter-updater/examples/switch-node.js +131 -0
  91. package/dist/prompts/chains/parameter-updater/examples/switch-node.js.map +1 -0
  92. package/dist/prompts/chains/parameter-updater/examples/tool-nodes.d.ts +2 -0
  93. package/dist/prompts/chains/parameter-updater/examples/tool-nodes.js +74 -0
  94. package/dist/prompts/chains/parameter-updater/examples/tool-nodes.js.map +1 -0
  95. package/dist/prompts/chains/parameter-updater/guides/embedding-nodes.d.ts +2 -0
  96. package/dist/prompts/chains/parameter-updater/guides/embedding-nodes.js +70 -0
  97. package/dist/prompts/chains/parameter-updater/guides/embedding-nodes.js.map +1 -0
  98. package/dist/prompts/chains/parameter-updater/guides/gmail.d.ts +2 -0
  99. package/dist/prompts/chains/parameter-updater/guides/gmail.js +28 -0
  100. package/dist/prompts/chains/parameter-updater/guides/gmail.js.map +1 -0
  101. package/dist/prompts/chains/parameter-updater/guides/http-request.d.ts +2 -0
  102. package/dist/prompts/chains/parameter-updater/guides/http-request.js +139 -0
  103. package/dist/prompts/chains/parameter-updater/guides/http-request.js.map +1 -0
  104. package/dist/prompts/chains/parameter-updater/guides/if-node.d.ts +2 -0
  105. package/dist/prompts/chains/parameter-updater/guides/if-node.js +159 -0
  106. package/dist/prompts/chains/parameter-updater/guides/if-node.js.map +1 -0
  107. package/dist/prompts/chains/parameter-updater/guides/index.d.ts +10 -0
  108. package/dist/prompts/chains/parameter-updater/guides/index.js +24 -0
  109. package/dist/prompts/chains/parameter-updater/guides/index.js.map +1 -0
  110. package/dist/prompts/chains/parameter-updater/guides/resource-locator.d.ts +2 -0
  111. package/dist/prompts/chains/parameter-updater/guides/resource-locator.js +99 -0
  112. package/dist/prompts/chains/parameter-updater/guides/resource-locator.js.map +1 -0
  113. package/dist/prompts/chains/parameter-updater/guides/set-node.d.ts +2 -0
  114. package/dist/prompts/chains/parameter-updater/guides/set-node.js +94 -0
  115. package/dist/prompts/chains/parameter-updater/guides/set-node.js.map +1 -0
  116. package/dist/prompts/chains/parameter-updater/guides/switch-node.d.ts +2 -0
  117. package/dist/prompts/chains/parameter-updater/guides/switch-node.js +75 -0
  118. package/dist/prompts/chains/parameter-updater/guides/switch-node.js.map +1 -0
  119. package/dist/prompts/chains/parameter-updater/guides/system-message.d.ts +2 -0
  120. package/dist/prompts/chains/parameter-updater/guides/system-message.js +96 -0
  121. package/dist/prompts/chains/parameter-updater/guides/system-message.js.map +1 -0
  122. package/dist/prompts/chains/parameter-updater/guides/text-fields.d.ts +2 -0
  123. package/dist/prompts/chains/parameter-updater/guides/text-fields.js +31 -0
  124. package/dist/prompts/chains/parameter-updater/guides/text-fields.js.map +1 -0
  125. package/dist/prompts/chains/parameter-updater/guides/tool-nodes.d.ts +2 -0
  126. package/dist/prompts/chains/parameter-updater/guides/tool-nodes.js +76 -0
  127. package/dist/prompts/chains/parameter-updater/guides/tool-nodes.js.map +1 -0
  128. package/dist/prompts/chains/parameter-updater/index.d.ts +8 -0
  129. package/dist/prompts/chains/parameter-updater/index.js +35 -0
  130. package/dist/prompts/chains/parameter-updater/index.js.map +1 -0
  131. package/dist/prompts/chains/parameter-updater/instance-url.d.ts +1 -0
  132. package/dist/prompts/chains/parameter-updater/instance-url.js +15 -0
  133. package/dist/prompts/chains/parameter-updater/instance-url.js.map +1 -0
  134. package/dist/prompts/chains/parameter-updater/parameter-updater.prompt.d.ts +4 -0
  135. package/dist/prompts/chains/parameter-updater/parameter-updater.prompt.js +52 -0
  136. package/dist/prompts/chains/parameter-updater/parameter-updater.prompt.js.map +1 -0
  137. package/dist/prompts/chains/parameter-updater/registry.d.ts +4 -0
  138. package/dist/prompts/chains/parameter-updater/registry.js +66 -0
  139. package/dist/prompts/chains/parameter-updater/registry.js.map +1 -0
  140. package/dist/prompts/chains/parameter-updater/types.d.ts +18 -0
  141. package/dist/prompts/chains/parameter-updater/types.js +3 -0
  142. package/dist/prompts/chains/parameter-updater/types.js.map +1 -0
  143. package/dist/prompts/chains/parameter-updater/utils.d.ts +2 -0
  144. package/dist/prompts/chains/parameter-updater/utils.js +16 -0
  145. package/dist/prompts/chains/parameter-updater/utils.js.map +1 -0
  146. package/dist/prompts/chains/workflow-name.prompt.d.ts +2 -0
  147. package/dist/prompts/chains/workflow-name.prompt.js +11 -0
  148. package/dist/prompts/chains/workflow-name.prompt.js.map +1 -0
  149. package/dist/prompts/index.d.ts +12 -0
  150. package/dist/prompts/index.js +50 -0
  151. package/dist/prompts/index.js.map +1 -0
  152. package/dist/prompts/legacy-agent.prompt.d.ts +6 -0
  153. package/dist/prompts/legacy-agent.prompt.js +594 -0
  154. package/dist/prompts/legacy-agent.prompt.js.map +1 -0
  155. package/dist/session-manager.service.d.ts +16 -0
  156. package/dist/session-manager.service.js +125 -0
  157. package/dist/session-manager.service.js.map +1 -0
  158. package/dist/subgraphs/builder.subgraph.d.ts +132 -0
  159. package/dist/subgraphs/builder.subgraph.js +173 -0
  160. package/dist/subgraphs/builder.subgraph.js.map +1 -0
  161. package/dist/subgraphs/configurator.subgraph.d.ts +142 -0
  162. package/dist/subgraphs/configurator.subgraph.js +173 -0
  163. package/dist/subgraphs/configurator.subgraph.js.map +1 -0
  164. package/dist/subgraphs/discovery.subgraph.d.ts +158 -0
  165. package/dist/subgraphs/discovery.subgraph.js +221 -0
  166. package/dist/subgraphs/discovery.subgraph.js.map +1 -0
  167. package/dist/subgraphs/subgraph-interface.d.ts +23 -0
  168. package/dist/subgraphs/subgraph-interface.js +7 -0
  169. package/dist/subgraphs/subgraph-interface.js.map +1 -0
  170. package/dist/tools/add-node.tool.d.ts +54 -0
  171. package/dist/tools/add-node.tool.js +176 -0
  172. package/dist/tools/add-node.tool.js.map +1 -0
  173. package/dist/tools/best-practices/chatbot.d.ts +7 -0
  174. package/dist/tools/best-practices/chatbot.js +118 -0
  175. package/dist/tools/best-practices/chatbot.js.map +1 -0
  176. package/dist/tools/best-practices/content-generation.d.ts +7 -0
  177. package/dist/tools/best-practices/content-generation.js +115 -0
  178. package/dist/tools/best-practices/content-generation.js.map +1 -0
  179. package/dist/tools/best-practices/data-analysis.d.ts +7 -0
  180. package/dist/tools/best-practices/data-analysis.js +367 -0
  181. package/dist/tools/best-practices/data-analysis.js.map +1 -0
  182. package/dist/tools/best-practices/data-extraction.d.ts +7 -0
  183. package/dist/tools/best-practices/data-extraction.js +122 -0
  184. package/dist/tools/best-practices/data-extraction.js.map +1 -0
  185. package/dist/tools/best-practices/data-transformation.d.ts +7 -0
  186. package/dist/tools/best-practices/data-transformation.js +162 -0
  187. package/dist/tools/best-practices/data-transformation.js.map +1 -0
  188. package/dist/tools/best-practices/document-processing.d.ts +7 -0
  189. package/dist/tools/best-practices/document-processing.js +335 -0
  190. package/dist/tools/best-practices/document-processing.js.map +1 -0
  191. package/dist/tools/best-practices/enrichment.d.ts +7 -0
  192. package/dist/tools/best-practices/enrichment.js +271 -0
  193. package/dist/tools/best-practices/enrichment.js.map +1 -0
  194. package/dist/tools/best-practices/form-input.d.ts +7 -0
  195. package/dist/tools/best-practices/form-input.js +173 -0
  196. package/dist/tools/best-practices/form-input.js.map +1 -0
  197. package/dist/tools/best-practices/human-in-the-loop.d.ts +7 -0
  198. package/dist/tools/best-practices/human-in-the-loop.js +268 -0
  199. package/dist/tools/best-practices/human-in-the-loop.js.map +1 -0
  200. package/dist/tools/best-practices/index.d.ts +3 -0
  201. package/dist/tools/best-practices/index.js +29 -0
  202. package/dist/tools/best-practices/index.js.map +1 -0
  203. package/dist/tools/best-practices/knowledge-base.d.ts +7 -0
  204. package/dist/tools/best-practices/knowledge-base.js +268 -0
  205. package/dist/tools/best-practices/knowledge-base.js.map +1 -0
  206. package/dist/tools/best-practices/monitoring.d.ts +7 -0
  207. package/dist/tools/best-practices/monitoring.js +178 -0
  208. package/dist/tools/best-practices/monitoring.js.map +1 -0
  209. package/dist/tools/best-practices/notification.d.ts +7 -0
  210. package/dist/tools/best-practices/notification.js +229 -0
  211. package/dist/tools/best-practices/notification.js.map +1 -0
  212. package/dist/tools/best-practices/scheduling.d.ts +7 -0
  213. package/dist/tools/best-practices/scheduling.js +281 -0
  214. package/dist/tools/best-practices/scheduling.js.map +1 -0
  215. package/dist/tools/best-practices/scraping-and-research.d.ts +7 -0
  216. package/dist/tools/best-practices/scraping-and-research.js +161 -0
  217. package/dist/tools/best-practices/scraping-and-research.js.map +1 -0
  218. package/dist/tools/best-practices/triage.d.ts +7 -0
  219. package/dist/tools/best-practices/triage.js +211 -0
  220. package/dist/tools/best-practices/triage.js.map +1 -0
  221. package/dist/tools/builder-tools.d.ts +16 -0
  222. package/dist/tools/builder-tools.js +36 -0
  223. package/dist/tools/builder-tools.js.map +1 -0
  224. package/dist/tools/categorize-prompt.tool.d.ts +5 -0
  225. package/dist/tools/categorize-prompt.tool.js +85 -0
  226. package/dist/tools/categorize-prompt.tool.js.map +1 -0
  227. package/dist/tools/connect-nodes.tool.d.ts +22 -0
  228. package/dist/tools/connect-nodes.tool.js +231 -0
  229. package/dist/tools/connect-nodes.tool.js.map +1 -0
  230. package/dist/tools/engines/node-search-engine.d.ts +16 -0
  231. package/dist/tools/engines/node-search-engine.js +123 -0
  232. package/dist/tools/engines/node-search-engine.js.map +1 -0
  233. package/dist/tools/get-best-practices.tool.d.ts +33 -0
  234. package/dist/tools/get-best-practices.tool.js +94 -0
  235. package/dist/tools/get-best-practices.tool.js.map +1 -0
  236. package/dist/tools/get-node-examples.tool.d.ts +119 -0
  237. package/dist/tools/get-node-examples.tool.js +189 -0
  238. package/dist/tools/get-node-examples.tool.js.map +1 -0
  239. package/dist/tools/get-node-parameter.tool.d.ts +4 -0
  240. package/dist/tools/get-node-parameter.tool.js +114 -0
  241. package/dist/tools/get-node-parameter.tool.js.map +1 -0
  242. package/dist/tools/get-workflow-examples.tool.d.ts +34 -0
  243. package/dist/tools/get-workflow-examples.tool.js +138 -0
  244. package/dist/tools/get-workflow-examples.tool.js.map +1 -0
  245. package/dist/tools/helpers/index.d.ts +4 -0
  246. package/dist/tools/helpers/index.js +21 -0
  247. package/dist/tools/helpers/index.js.map +1 -0
  248. package/dist/tools/helpers/progress.d.ts +9 -0
  249. package/dist/tools/helpers/progress.js +126 -0
  250. package/dist/tools/helpers/progress.js.map +1 -0
  251. package/dist/tools/helpers/response.d.ts +7 -0
  252. package/dist/tools/helpers/response.js +33 -0
  253. package/dist/tools/helpers/response.js.map +1 -0
  254. package/dist/tools/helpers/state.d.ts +14 -0
  255. package/dist/tools/helpers/state.js +85 -0
  256. package/dist/tools/helpers/state.js.map +1 -0
  257. package/dist/tools/helpers/validation.d.ts +13 -0
  258. package/dist/tools/helpers/validation.js +83 -0
  259. package/dist/tools/helpers/validation.js.map +1 -0
  260. package/dist/tools/node-details.tool.d.ts +31 -0
  261. package/dist/tools/node-details.tool.js +201 -0
  262. package/dist/tools/node-details.tool.js.map +1 -0
  263. package/dist/tools/node-search.tool.d.ts +62 -0
  264. package/dist/tools/node-search.tool.js +155 -0
  265. package/dist/tools/node-search.tool.js.map +1 -0
  266. package/dist/tools/remove-connection.tool.d.ts +24 -0
  267. package/dist/tools/remove-connection.tool.js +234 -0
  268. package/dist/tools/remove-connection.tool.js.map +1 -0
  269. package/dist/tools/remove-node.tool.d.ts +4 -0
  270. package/dist/tools/remove-node.tool.js +106 -0
  271. package/dist/tools/remove-node.tool.js.map +1 -0
  272. package/dist/tools/update-node-parameters.tool.d.ts +5 -0
  273. package/dist/tools/update-node-parameters.tool.js +156 -0
  274. package/dist/tools/update-node-parameters.tool.js.map +1 -0
  275. package/dist/tools/utils/connection-parameters.utils.d.ts +8 -0
  276. package/dist/tools/utils/connection-parameters.utils.js +47 -0
  277. package/dist/tools/utils/connection-parameters.utils.js.map +1 -0
  278. package/dist/tools/utils/connection.utils.d.ts +15 -0
  279. package/dist/tools/utils/connection.utils.js +321 -0
  280. package/dist/tools/utils/connection.utils.js.map +1 -0
  281. package/dist/tools/utils/mermaid.utils.d.ts +13 -0
  282. package/dist/tools/utils/mermaid.utils.js +647 -0
  283. package/dist/tools/utils/mermaid.utils.js.map +1 -0
  284. package/dist/tools/utils/node-configuration.utils.d.ts +13 -0
  285. package/dist/tools/utils/node-configuration.utils.js +75 -0
  286. package/dist/tools/utils/node-configuration.utils.js.map +1 -0
  287. package/dist/tools/utils/node-creation.utils.d.ts +8 -0
  288. package/dist/tools/utils/node-creation.utils.js +56 -0
  289. package/dist/tools/utils/node-creation.utils.js.map +1 -0
  290. package/dist/tools/utils/node-positioning.utils.d.ts +17 -0
  291. package/dist/tools/utils/node-positioning.utils.js +87 -0
  292. package/dist/tools/utils/node-positioning.utils.js.map +1 -0
  293. package/dist/tools/utils/parameter-update.utils.d.ts +6 -0
  294. package/dist/tools/utils/parameter-update.utils.js +75 -0
  295. package/dist/tools/utils/parameter-update.utils.js.map +1 -0
  296. package/dist/tools/utils/test/workflows/ai-assistant.workflow.d.ts +2 -0
  297. package/dist/tools/utils/test/workflows/ai-assistant.workflow.js +542 -0
  298. package/dist/tools/utils/test/workflows/ai-assistant.workflow.js.map +1 -0
  299. package/dist/tools/validate-configuration.tool.d.ts +4 -0
  300. package/dist/tools/validate-configuration.tool.js +70 -0
  301. package/dist/tools/validate-configuration.tool.js.map +1 -0
  302. package/dist/tools/validate-structure.tool.d.ts +4 -0
  303. package/dist/tools/validate-structure.tool.js +66 -0
  304. package/dist/tools/validate-structure.tool.js.map +1 -0
  305. package/dist/tools/validate-workflow.tool.d.ts +5 -0
  306. package/dist/tools/validate-workflow.tool.js +73 -0
  307. package/dist/tools/validate-workflow.tool.js.map +1 -0
  308. package/dist/tools/web/templates.d.ts +23 -0
  309. package/dist/tools/web/templates.js +106 -0
  310. package/dist/tools/web/templates.js.map +1 -0
  311. package/dist/types/best-practices.d.ts +6 -0
  312. package/dist/types/best-practices.js +3 -0
  313. package/dist/types/best-practices.js.map +1 -0
  314. package/dist/types/categorization.d.ts +23 -0
  315. package/dist/types/categorization.js +38 -0
  316. package/dist/types/categorization.js.map +1 -0
  317. package/dist/types/config.d.ts +55 -0
  318. package/dist/types/config.js +3 -0
  319. package/dist/types/config.js.map +1 -0
  320. package/dist/types/connections.d.ts +30 -0
  321. package/dist/types/connections.js +3 -0
  322. package/dist/types/connections.js.map +1 -0
  323. package/dist/types/coordination.d.ts +42 -0
  324. package/dist/types/coordination.js +23 -0
  325. package/dist/types/coordination.js.map +1 -0
  326. package/dist/types/discovery-types.d.ts +12 -0
  327. package/dist/types/discovery-types.js +3 -0
  328. package/dist/types/discovery-types.js.map +1 -0
  329. package/dist/types/index.d.ts +11 -0
  330. package/dist/types/index.js +18 -0
  331. package/dist/types/index.js.map +1 -0
  332. package/dist/types/langchain.d.ts +3 -0
  333. package/dist/types/langchain.js +15 -0
  334. package/dist/types/langchain.js.map +1 -0
  335. package/dist/types/messages.d.ts +32 -0
  336. package/dist/types/messages.js +3 -0
  337. package/dist/types/messages.js.map +1 -0
  338. package/dist/types/nodes.d.ts +27 -0
  339. package/dist/types/nodes.js +3 -0
  340. package/dist/types/nodes.js.map +1 -0
  341. package/dist/types/sessions.d.ts +8 -0
  342. package/dist/types/sessions.js +34 -0
  343. package/dist/types/sessions.js.map +1 -0
  344. package/dist/types/streaming.d.ts +33 -0
  345. package/dist/types/streaming.js +3 -0
  346. package/dist/types/streaming.js.map +1 -0
  347. package/dist/types/tools.d.ts +120 -0
  348. package/dist/types/tools.js +3 -0
  349. package/dist/types/tools.js.map +1 -0
  350. package/dist/types/utils.d.ts +2 -0
  351. package/dist/types/utils.js +3 -0
  352. package/dist/types/utils.js.map +1 -0
  353. package/dist/types/web/templates.d.ts +45 -0
  354. package/dist/types/web/templates.js +37 -0
  355. package/dist/types/web/templates.js.map +1 -0
  356. package/dist/types/workflow.d.ts +31 -0
  357. package/dist/types/workflow.js +3 -0
  358. package/dist/types/workflow.js.map +1 -0
  359. package/dist/utils/cache-control/helpers.d.ts +5 -0
  360. package/dist/utils/cache-control/helpers.js +126 -0
  361. package/dist/utils/cache-control/helpers.js.map +1 -0
  362. package/dist/utils/cache-control/index.d.ts +1 -0
  363. package/dist/utils/cache-control/index.js +9 -0
  364. package/dist/utils/cache-control/index.js.map +1 -0
  365. package/dist/utils/cleanup-dangling-tool-call-messages.d.ts +3 -0
  366. package/dist/utils/cleanup-dangling-tool-call-messages.js +10 -0
  367. package/dist/utils/cleanup-dangling-tool-call-messages.js.map +1 -0
  368. package/dist/utils/context-builders.d.ts +10 -0
  369. package/dist/utils/context-builders.js +71 -0
  370. package/dist/utils/context-builders.js.map +1 -0
  371. package/dist/utils/coordination-log.d.ts +15 -0
  372. package/dist/utils/coordination-log.js +75 -0
  373. package/dist/utils/coordination-log.js.map +1 -0
  374. package/dist/utils/http-proxy-agent.d.ts +2 -0
  375. package/dist/utils/http-proxy-agent.js +16 -0
  376. package/dist/utils/http-proxy-agent.js.map +1 -0
  377. package/dist/utils/node-helpers.d.ts +2 -0
  378. package/dist/utils/node-helpers.js +54 -0
  379. package/dist/utils/node-helpers.js.map +1 -0
  380. package/dist/utils/operations-processor.d.ts +14 -0
  381. package/dist/utils/operations-processor.js +196 -0
  382. package/dist/utils/operations-processor.js.map +1 -0
  383. package/dist/utils/state-modifier.d.ts +32 -0
  384. package/dist/utils/state-modifier.js +112 -0
  385. package/dist/utils/state-modifier.js.map +1 -0
  386. package/dist/utils/state-reducers.d.ts +3 -0
  387. package/dist/utils/state-reducers.js +20 -0
  388. package/dist/utils/state-reducers.js.map +1 -0
  389. package/dist/utils/stream-processor.d.ts +20 -0
  390. package/dist/utils/stream-processor.js +277 -0
  391. package/dist/utils/stream-processor.js.map +1 -0
  392. package/dist/utils/subgraph-helpers.d.ts +16 -0
  393. package/dist/utils/subgraph-helpers.js +117 -0
  394. package/dist/utils/subgraph-helpers.js.map +1 -0
  395. package/dist/utils/token-usage.d.ts +21 -0
  396. package/dist/utils/token-usage.js +45 -0
  397. package/dist/utils/token-usage.js.map +1 -0
  398. package/dist/utils/tool-executor.d.ts +3 -0
  399. package/dist/utils/tool-executor.js +108 -0
  400. package/dist/utils/tool-executor.js.map +1 -0
  401. package/dist/utils/trim-workflow-context.d.ts +2 -0
  402. package/dist/utils/trim-workflow-context.js +53 -0
  403. package/dist/utils/trim-workflow-context.js.map +1 -0
  404. package/dist/utils/workflow-validation.d.ts +2 -0
  405. package/dist/utils/workflow-validation.js +37 -0
  406. package/dist/utils/workflow-validation.js.map +1 -0
  407. package/dist/validation/checks/agent-prompt.d.ts +3 -0
  408. package/dist/validation/checks/agent-prompt.js +47 -0
  409. package/dist/validation/checks/agent-prompt.js.map +1 -0
  410. package/dist/validation/checks/connections.d.ts +4 -0
  411. package/dist/validation/checks/connections.js +163 -0
  412. package/dist/validation/checks/connections.js.map +1 -0
  413. package/dist/validation/checks/credentials.d.ts +3 -0
  414. package/dist/validation/checks/credentials.js +125 -0
  415. package/dist/validation/checks/credentials.js.map +1 -0
  416. package/dist/validation/checks/from-ai.d.ts +4 -0
  417. package/dist/validation/checks/from-ai.js +62 -0
  418. package/dist/validation/checks/from-ai.js.map +1 -0
  419. package/dist/validation/checks/index.d.ts +7 -0
  420. package/dist/validation/checks/index.js +18 -0
  421. package/dist/validation/checks/index.js.map +1 -0
  422. package/dist/validation/checks/nodes.d.ts +4 -0
  423. package/dist/validation/checks/nodes.js +44 -0
  424. package/dist/validation/checks/nodes.js.map +1 -0
  425. package/dist/validation/checks/tools.d.ts +4 -0
  426. package/dist/validation/checks/tools.js +38 -0
  427. package/dist/validation/checks/tools.js.map +1 -0
  428. package/dist/validation/checks/trigger.d.ts +8 -0
  429. package/dist/validation/checks/trigger.js +33 -0
  430. package/dist/validation/checks/trigger.js.map +1 -0
  431. package/dist/validation/programmatic.d.ts +3 -0
  432. package/dist/validation/programmatic.js +24 -0
  433. package/dist/validation/programmatic.js.map +1 -0
  434. package/dist/validation/types.d.ts +52 -0
  435. package/dist/validation/types.js +31 -0
  436. package/dist/validation/types.js.map +1 -0
  437. package/dist/validation/utils/expressions.d.ts +3 -0
  438. package/dist/validation/utils/expressions.js +37 -0
  439. package/dist/validation/utils/expressions.js.map +1 -0
  440. package/dist/validation/utils/is-tool.d.ts +2 -0
  441. package/dist/validation/utils/is-tool.js +7 -0
  442. package/dist/validation/utils/is-tool.js.map +1 -0
  443. package/dist/validation/utils/node-type-map.d.ts +8 -0
  444. package/dist/validation/utils/node-type-map.js +50 -0
  445. package/dist/validation/utils/node-type-map.js.map +1 -0
  446. package/dist/validation/utils/resolve-connections.d.ts +8 -0
  447. package/dist/validation/utils/resolve-connections.js +64 -0
  448. package/dist/validation/utils/resolve-connections.js.map +1 -0
  449. package/dist/workflow-builder-agent.d.ts +72 -0
  450. package/dist/workflow-builder-agent.js +401 -0
  451. package/dist/workflow-builder-agent.js.map +1 -0
  452. package/dist/workflow-state.d.ts +26 -0
  453. package/dist/workflow-state.js +79 -0
  454. package/dist/workflow-state.js.map +1 -0
  455. package/package.json +77 -0
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.promptCategorizationTemplate = exports.examplePrompts = void 0;
4
+ exports.formatExamplePrompts = formatExamplePrompts;
5
+ exports.formatTechniqueList = formatTechniqueList;
6
+ const prompts_1 = require("@langchain/core/prompts");
7
+ const categorization_1 = require("../../types/categorization");
8
+ exports.examplePrompts = [
9
+ {
10
+ prompt: 'Monitor social channels for product mentions and auto-respond with campaign messages',
11
+ techniques: [
12
+ categorization_1.WorkflowTechnique.MONITORING,
13
+ categorization_1.WorkflowTechnique.CHATBOT,
14
+ categorization_1.WorkflowTechnique.CONTENT_GENERATION,
15
+ ],
16
+ },
17
+ {
18
+ prompt: 'Collect partner referral submissions and verify client instances via BigQuery',
19
+ techniques: [
20
+ categorization_1.WorkflowTechnique.FORM_INPUT,
21
+ categorization_1.WorkflowTechnique.HUMAN_IN_THE_LOOP,
22
+ categorization_1.WorkflowTechnique.NOTIFICATION,
23
+ ],
24
+ },
25
+ {
26
+ prompt: 'Scrape competitor pricing pages weekly and generate a summary report of changes',
27
+ techniques: [
28
+ categorization_1.WorkflowTechnique.SCHEDULING,
29
+ categorization_1.WorkflowTechnique.SCRAPING_AND_RESEARCH,
30
+ categorization_1.WorkflowTechnique.DATA_EXTRACTION,
31
+ categorization_1.WorkflowTechnique.DATA_ANALYSIS,
32
+ ],
33
+ },
34
+ {
35
+ prompt: 'Process uploaded PDF contracts to extract client details and update CRM records',
36
+ techniques: [
37
+ categorization_1.WorkflowTechnique.DOCUMENT_PROCESSING,
38
+ categorization_1.WorkflowTechnique.DATA_EXTRACTION,
39
+ categorization_1.WorkflowTechnique.DATA_TRANSFORMATION,
40
+ categorization_1.WorkflowTechnique.ENRICHMENT,
41
+ ],
42
+ },
43
+ {
44
+ prompt: 'Build a searchable internal knowledge base from past support tickets',
45
+ techniques: [
46
+ categorization_1.WorkflowTechnique.DATA_TRANSFORMATION,
47
+ categorization_1.WorkflowTechnique.DATA_ANALYSIS,
48
+ categorization_1.WorkflowTechnique.KNOWLEDGE_BASE,
49
+ ],
50
+ },
51
+ ];
52
+ function formatExamplePrompts() {
53
+ return exports.examplePrompts
54
+ .map((example) => `- ${example.prompt} → ${example.techniques.join(',')}`)
55
+ .join('\n');
56
+ }
57
+ function formatTechniqueList() {
58
+ return Object.entries(categorization_1.TechniqueDescription)
59
+ .map(([key, description]) => `- **${key}**: ${description}`)
60
+ .join('\n');
61
+ }
62
+ exports.promptCategorizationTemplate = prompts_1.PromptTemplate.fromTemplate(`Analyze the following user prompt and identify the workflow techniques required to fulfill the request.
63
+ Be specific and identify all relevant techniques.
64
+
65
+ <user_prompt>
66
+ {userPrompt}
67
+ </user_prompt>
68
+
69
+ <workflow_techniques>
70
+ {techniques}
71
+ </workflow_techniques>
72
+
73
+ The following prompt categorization examples show a prompt → techniques involved to provide a sense
74
+ of how the categorization should be carried out.
75
+ <example_categorization>
76
+ ${formatExamplePrompts()}
77
+ </example_categorization>
78
+
79
+ Select a maximum of 5 techniques that you believe are applicable, but only select them if you are
80
+ confident that they are applicable. If the prompt is ambiguous or does not provide an obvious workflow
81
+ do not provide any techniques - if confidence is low avoid providing techniques.
82
+
83
+ Select ALL techniques that apply to this workflow. Most workflows use multiple techniques.
84
+ Rate your confidence in this categorization from 0.0 to 1.0.
85
+ `);
86
+ //# sourceMappingURL=categorization.prompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"categorization.prompt.js","sourceRoot":"","sources":["../../../src/prompts/chains/categorization.prompt.ts"],"names":[],"mappings":";;;AAmDA,oDAIC;AAGD,kDAIC;AA9DD,qDAAyD;AAEzD,2DAAiF;AAGpE,QAAA,cAAc,GAAG;IAC7B;QACC,MAAM,EAAE,sFAAsF;QAC9F,UAAU,EAAE;YACX,kCAAiB,CAAC,UAAU;YAC5B,kCAAiB,CAAC,OAAO;YACzB,kCAAiB,CAAC,kBAAkB;SACpC;KACD;IACD;QACC,MAAM,EAAE,+EAA+E;QACvF,UAAU,EAAE;YACX,kCAAiB,CAAC,UAAU;YAC5B,kCAAiB,CAAC,iBAAiB;YACnC,kCAAiB,CAAC,YAAY;SAC9B;KACD;IACD;QACC,MAAM,EAAE,iFAAiF;QACzF,UAAU,EAAE;YACX,kCAAiB,CAAC,UAAU;YAC5B,kCAAiB,CAAC,qBAAqB;YACvC,kCAAiB,CAAC,eAAe;YACjC,kCAAiB,CAAC,aAAa;SAC/B;KACD;IACD;QACC,MAAM,EAAE,iFAAiF;QACzF,UAAU,EAAE;YACX,kCAAiB,CAAC,mBAAmB;YACrC,kCAAiB,CAAC,eAAe;YACjC,kCAAiB,CAAC,mBAAmB;YACrC,kCAAiB,CAAC,UAAU;SAC5B;KACD;IACD;QACC,MAAM,EAAE,sEAAsE;QAC9E,UAAU,EAAE;YACX,kCAAiB,CAAC,mBAAmB;YACrC,kCAAiB,CAAC,aAAa;YAC/B,kCAAiB,CAAC,cAAc;SAChC;KACD;CACD,CAAC;AAGF,SAAgB,oBAAoB;IACnC,OAAO,sBAAc;SACnB,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,MAAM,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;SACzE,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,CAAC;AAGD,SAAgB,mBAAmB;IAClC,OAAO,MAAM,CAAC,OAAO,CAAC,qCAAoB,CAAC;SACzC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,OAAO,GAAG,OAAO,WAAW,EAAE,CAAC;SAC3D,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,CAAC;AAGY,QAAA,4BAA4B,GAAG,wBAAc,CAAC,YAAY,CACtE;;;;;;;;;;;;;;EAcC,oBAAoB,EAAE;;;;;;;;;CASvB,CACA,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { PromptTemplate } from '@langchain/core/prompts';
2
+ export declare const compactPromptTemplate: PromptTemplate<import("@langchain/core/prompts").ParamsFromFString<"Please summarize the following conversation between a user and an AI assistant building an n8n workflow:\n\n<previous_summary>\n{previousSummary}\n</previous_summary>\n\n<conversation>\n{conversationText}\n</conversation>\n\nProvide a structured summary that captures the key points, decisions made, current state of the workflow, and suggested next steps.">, any>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.compactPromptTemplate = void 0;
4
+ const prompts_1 = require("@langchain/core/prompts");
5
+ exports.compactPromptTemplate = prompts_1.PromptTemplate.fromTemplate(`Please summarize the following conversation between a user and an AI assistant building an n8n workflow:
6
+
7
+ <previous_summary>
8
+ {previousSummary}
9
+ </previous_summary>
10
+
11
+ <conversation>
12
+ {conversationText}
13
+ </conversation>
14
+
15
+ Provide a structured summary that captures the key points, decisions made, current state of the workflow, and suggested next steps.`);
16
+ //# sourceMappingURL=compact.prompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compact.prompt.js","sourceRoot":"","sources":["../../../src/prompts/chains/compact.prompt.ts"],"names":[],"mappings":";;;AAAA,qDAAyD;AAG5C,QAAA,qBAAqB,GAAG,wBAAc,CAAC,YAAY,CAC/D;;;;;;;;;;oIAUmI,CACnI,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeExamples } from '../types';
2
+ export declare const IF_NODE_EXAMPLES: NodeTypeExamples;
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IF_NODE_EXAMPLES = void 0;
4
+ exports.IF_NODE_EXAMPLES = {
5
+ patterns: ['n8n-nodes-base.if'],
6
+ content: `
7
+ ### IF Node Examples
8
+
9
+ #### Example 1: Simple String Condition
10
+ Current Parameters: {}
11
+ Requested Changes: Check if order status equals "pending"
12
+ Expected Output:
13
+ {
14
+ "conditions": {
15
+ "options": {
16
+ "caseSensitive": false,
17
+ "leftValue": "",
18
+ "typeValidation": "loose"
19
+ },
20
+ "conditions": [
21
+ {
22
+ "id": "id-1",
23
+ "leftValue": "={{ $('Previous Node').item.json.orderStatus }}",
24
+ "rightValue": "pending",
25
+ "operator": {
26
+ "type": "string",
27
+ "operation": "equals"
28
+ }
29
+ }
30
+ ],
31
+ "combinator": "and"
32
+ }
33
+ }
34
+
35
+ #### Example 2: Check if Field Exists
36
+ Current Parameters: {}
37
+ Requested Changes: Check if email field exists in the data
38
+ Expected Output:
39
+ {
40
+ "conditions": {
41
+ "options": {
42
+ "caseSensitive": false,
43
+ "leftValue": "",
44
+ "typeValidation": "loose"
45
+ },
46
+ "conditions": [
47
+ {
48
+ "id": "id-1",
49
+ "leftValue": "={{ $('Previous Node').item.json.email }}",
50
+ "operator": {
51
+ "type": "string",
52
+ "operation": "exists"
53
+ }
54
+ }
55
+ ],
56
+ "combinator": "and"
57
+ }
58
+ }
59
+
60
+ #### Example 3: Multiple Conditions with AND
61
+ Current Parameters: {}
62
+ Requested Changes: Check if status is active AND score is 50 or higher
63
+ Expected Output:
64
+ {
65
+ "conditions": {
66
+ "options": {
67
+ "caseSensitive": false,
68
+ "leftValue": "",
69
+ "typeValidation": "loose"
70
+ },
71
+ "conditions": [
72
+ {
73
+ "id": "id-1",
74
+ "leftValue": "={{ $('Set').item.json.status }}",
75
+ "rightValue": "active",
76
+ "operator": {
77
+ "type": "string",
78
+ "operation": "equals"
79
+ }
80
+ },
81
+ {
82
+ "id": "id-2",
83
+ "leftValue": "={{ $('Set').item.json.score }}",
84
+ "rightValue": "50",
85
+ "operator": {
86
+ "type": "number",
87
+ "operation": "gte"
88
+ }
89
+ }
90
+ ],
91
+ "combinator": "and"
92
+ }
93
+ }
94
+
95
+ #### Example 3: IF Node - Complex Multi-Type Conditions
96
+ Current Parameters: {}
97
+
98
+ Requested Changes:
99
+ - Check if email is not empty AND verified is true AND permissions array contains "write"
100
+
101
+ Expected Output:
102
+ {
103
+ "conditions": {
104
+ "options": {
105
+ "caseSensitive": true,
106
+ "leftValue": "",
107
+ "typeValidation": "strict"
108
+ },
109
+ "conditions": [
110
+ {
111
+ "id": "id-1",
112
+ "leftValue": "={{ $('Set').item.json.email }}",
113
+ "operator": {
114
+ "type": "string",
115
+ "operation": "notEmpty"
116
+ }
117
+ },
118
+ {
119
+ "id": "id-2",
120
+ "leftValue": "={{ $('Set').item.json.verified }}",
121
+ "operator": {
122
+ "type": "boolean",
123
+ "operation": "true"
124
+ }
125
+ },
126
+ {
127
+ "id": "id-3",
128
+ "leftValue": "={{ $('Set').item.json.permissions }}",
129
+ "rightValue": "write",
130
+ "operator": {
131
+ "type": "array",
132
+ "operation": "contains"
133
+ }
134
+ }
135
+ ],
136
+ "combinator": "and"
137
+ }
138
+ }
139
+ `,
140
+ };
141
+ //# sourceMappingURL=if-node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"if-node.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/if-node.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAqB;IACjD,QAAQ,EAAE,CAAC,mBAAmB,CAAC;IAC/B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqIT;CACA,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { SIMPLE_UPDATE_EXAMPLES } from './simple-updates';
2
+ export { SET_NODE_EXAMPLES } from './set-node';
3
+ export { IF_NODE_EXAMPLES } from './if-node';
4
+ export { SWITCH_NODE_EXAMPLES } from './switch-node';
5
+ export { TOOL_NODE_EXAMPLES } from './tool-nodes';
6
+ export { RESOURCE_LOCATOR_EXAMPLES } from './resource-locator';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RESOURCE_LOCATOR_EXAMPLES = exports.TOOL_NODE_EXAMPLES = exports.SWITCH_NODE_EXAMPLES = exports.IF_NODE_EXAMPLES = exports.SET_NODE_EXAMPLES = exports.SIMPLE_UPDATE_EXAMPLES = void 0;
4
+ var simple_updates_1 = require("./simple-updates");
5
+ Object.defineProperty(exports, "SIMPLE_UPDATE_EXAMPLES", { enumerable: true, get: function () { return simple_updates_1.SIMPLE_UPDATE_EXAMPLES; } });
6
+ var set_node_1 = require("./set-node");
7
+ Object.defineProperty(exports, "SET_NODE_EXAMPLES", { enumerable: true, get: function () { return set_node_1.SET_NODE_EXAMPLES; } });
8
+ var if_node_1 = require("./if-node");
9
+ Object.defineProperty(exports, "IF_NODE_EXAMPLES", { enumerable: true, get: function () { return if_node_1.IF_NODE_EXAMPLES; } });
10
+ var switch_node_1 = require("./switch-node");
11
+ Object.defineProperty(exports, "SWITCH_NODE_EXAMPLES", { enumerable: true, get: function () { return switch_node_1.SWITCH_NODE_EXAMPLES; } });
12
+ var tool_nodes_1 = require("./tool-nodes");
13
+ Object.defineProperty(exports, "TOOL_NODE_EXAMPLES", { enumerable: true, get: function () { return tool_nodes_1.TOOL_NODE_EXAMPLES; } });
14
+ var resource_locator_1 = require("./resource-locator");
15
+ Object.defineProperty(exports, "RESOURCE_LOCATOR_EXAMPLES", { enumerable: true, get: function () { return resource_locator_1.RESOURCE_LOCATOR_EXAMPLES; } });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/index.ts"],"names":[],"mappings":";;;AAAA,mDAA0D;AAAjD,wHAAA,sBAAsB,OAAA;AAC/B,uCAA+C;AAAtC,6GAAA,iBAAiB,OAAA;AAC1B,qCAA6C;AAApC,2GAAA,gBAAgB,OAAA;AACzB,6CAAqD;AAA5C,mHAAA,oBAAoB,OAAA;AAC7B,2CAAkD;AAAzC,gHAAA,kBAAkB,OAAA;AAC3B,uDAA+D;AAAtD,6HAAA,yBAAyB,OAAA"}
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeExamples } from '../types';
2
+ export declare const RESOURCE_LOCATOR_EXAMPLES: NodeTypeExamples;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RESOURCE_LOCATOR_EXAMPLES = void 0;
4
+ exports.RESOURCE_LOCATOR_EXAMPLES = {
5
+ patterns: ['*'],
6
+ condition: (ctx) => ctx.hasResourceLocatorParams === true,
7
+ content: `
8
+ ### ResourceLocator Examples
9
+
10
+ #### Example 1: Slack Node - Channel by ID
11
+ Current Parameters:
12
+ {
13
+ "select": "channel",
14
+ "channelId": {
15
+ "__rl": true,
16
+ "value": "",
17
+ "mode": "list"
18
+ },
19
+ "otherOptions": {}
20
+ }
21
+
22
+ Requested Changes: Send to channel C0122KQ70S7E
23
+
24
+ Expected Output:
25
+ {
26
+ "select": "channel",
27
+ "channelId": {
28
+ "__rl": true,
29
+ "mode": "id",
30
+ "value": "C0122KQ70S7E"
31
+ },
32
+ "otherOptions": {}
33
+ }
34
+
35
+ #### Example 2: Google Drive Node - File by URL
36
+ Current Parameters:
37
+ {
38
+ "operation": "download",
39
+ "fileId": {
40
+ "__rl": true,
41
+ "value": "",
42
+ "mode": "list"
43
+ }
44
+ }
45
+
46
+ Requested Changes: Use file https://drive.google.com/file/d/1ABC123XYZ/view
47
+
48
+ Expected Output:
49
+ {
50
+ "operation": "download",
51
+ "fileId": {
52
+ "__rl": true,
53
+ "mode": "url",
54
+ "value": "https://drive.google.com/file/d/1ABC123XYZ/view"
55
+ }
56
+ }
57
+
58
+ #### Example 3: Notion Node - Page ID from Expression
59
+ Current Parameters:
60
+ {
61
+ "resource": "databasePage",
62
+ "operation": "get",
63
+ "pageId": {
64
+ "__rl": true,
65
+ "value": "hardcoded-page-id",
66
+ "mode": "id"
67
+ }
68
+ }
69
+
70
+ Requested Changes: Use page ID from the previous node's output
71
+
72
+ Expected Output:
73
+ {
74
+ "resource": "databasePage",
75
+ "operation": "get",
76
+ "pageId": {
77
+ "__rl": true,
78
+ "mode": "id",
79
+ "value": "={{ $('Previous Node').item.json.pageId }}"
80
+ }
81
+ }`,
82
+ };
83
+ //# sourceMappingURL=resource-locator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-locator.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/resource-locator.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAqB;IAC1D,QAAQ,EAAE,CAAC,GAAG,CAAC;IACf,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,wBAAwB,KAAK,IAAI;IACzD,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ER;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeExamples } from '../types';
2
+ export declare const SET_NODE_EXAMPLES: NodeTypeExamples;
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SET_NODE_EXAMPLES = void 0;
4
+ exports.SET_NODE_EXAMPLES = {
5
+ patterns: ['n8n-nodes-base.set'],
6
+ content: `
7
+ ### Set Node Examples
8
+
9
+ #### Example 1: Simple String Assignment
10
+ Current Parameters: {}
11
+ Requested Changes: Set message to "Hello World"
12
+ Expected Output:
13
+ {
14
+ "assignments": {
15
+ "assignments": [
16
+ {
17
+ "id": "id-1",
18
+ "name": "message",
19
+ "value": "Hello World",
20
+ "type": "string"
21
+ }
22
+ ]
23
+ },
24
+ "options": {}
25
+ }
26
+
27
+ #### Example 2: Multiple Type Assignments
28
+ Current Parameters: {}
29
+ Requested Changes:
30
+ - Set productName to "Widget"
31
+ - Set price to 19.99
32
+ - Set inStock to true
33
+ - Set categories to electronics and gadgets
34
+
35
+ Expected Output:
36
+ {
37
+ "assignments": {
38
+ "assignments": [
39
+ {
40
+ "id": "id-1",
41
+ "name": "productName",
42
+ "value": "Widget",
43
+ "type": "string"
44
+ },
45
+ {
46
+ "id": "id-2",
47
+ "name": "price",
48
+ "value": 19.99,
49
+ "type": "number"
50
+ },
51
+ {
52
+ "id": "id-3",
53
+ "name": "inStock",
54
+ "value": true,
55
+ "type": "boolean"
56
+ },
57
+ {
58
+ "id": "id-4",
59
+ "name": "categories",
60
+ "value": "[\\"electronics\\", \\"gadgets\\"]",
61
+ "type": "array"
62
+ }
63
+ ]
64
+ },
65
+ "options": {}
66
+ }
67
+
68
+ #### Example 3: Expression-Based Assignments
69
+ Current Parameters: {}
70
+ Requested Changes:
71
+ - Set userId from HTTP Request node
72
+ - Calculate totalPrice from quantity and unit price
73
+
74
+ Expected Output:
75
+ {
76
+ "assignments": {
77
+ "assignments": [
78
+ {
79
+ "id": "id-1",
80
+ "name": "userId",
81
+ "value": "={{ $('HTTP Request').item.json.id }}",
82
+ "type": "string"
83
+ },
84
+ {
85
+ "id": "id-2",
86
+ "name": "totalPrice",
87
+ "value": "={{ $('Set').item.json.quantity * $('Set').item.json.unitPrice }}",
88
+ "type": "number"
89
+ }
90
+ ]
91
+ },
92
+ "options": {}
93
+ }
94
+
95
+ #### Example 4: Set Node - Complex Object and Array Creation
96
+ Current Parameters:
97
+ {
98
+ "assignments": {
99
+ "assignments": [
100
+ {
101
+ "id": "existing-1",
102
+ "name": "orderId",
103
+ "value": "12345",
104
+ "type": "string"
105
+ }
106
+ ]
107
+ },
108
+ "options": {}
109
+ }
110
+
111
+ Requested Changes:
112
+ - Keep orderId
113
+ - Add customer object with name and email from previous nodes
114
+ - Add items array from JSON string
115
+ - Set processed timestamp
116
+
117
+ Expected Output:
118
+ {
119
+ "assignments": {
120
+ "assignments": [
121
+ {
122
+ "id": "existing-1",
123
+ "name": "orderId",
124
+ "value": "12345",
125
+ "type": "string"
126
+ },
127
+ {
128
+ "id": "id-2",
129
+ "name": "customer",
130
+ "value": "={{ JSON.stringify({ \\"name\\": $('Form').item.json.customerName, \\"email\\": $('Form').item.json.customerEmail }) }}",
131
+ "type": "object"
132
+ },
133
+ {
134
+ "id": "id-3",
135
+ "name": "items",
136
+ "value": "={{ $('HTTP Request').item.json.itemsJson }}",
137
+ "type": "array"
138
+ },
139
+ {
140
+ "id": "id-4",
141
+ "name": "processedAt",
142
+ "value": "={{ $now.toISO() }}",
143
+ "type": "string"
144
+ }
145
+ ]
146
+ },
147
+ "options": {}
148
+ }
149
+ `,
150
+ };
151
+ //# sourceMappingURL=set-node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-node.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/set-node.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAqB;IAClD,QAAQ,EAAE,CAAC,oBAAoB,CAAC;IAChC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+IT;CACA,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeExamples } from '../types';
2
+ export declare const SIMPLE_UPDATE_EXAMPLES: NodeTypeExamples;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SIMPLE_UPDATE_EXAMPLES = void 0;
4
+ exports.SIMPLE_UPDATE_EXAMPLES = {
5
+ patterns: ['*'],
6
+ content: `
7
+ ## Examples of Parameter Updates
8
+
9
+ ### Example 1: Update HTTP Request URL
10
+ Change: "Set the URL to call the weather API for London"
11
+ Current parameters: { "url": "https://api.example.com", "method": "GET" }
12
+ Updated parameters: { "url": "https://api.openweathermap.org/data/2.5/weather?q=London", "method": "GET" }
13
+
14
+ ### Example 2: Add a header
15
+ Change: "Add an ABC key header with value 123"
16
+ Current parameters: { "url": "...", "sendHeaders": false }
17
+ Updated parameters: {
18
+ "url": "...",
19
+ "sendHeaders": true,
20
+ "headerParameters": {
21
+ "parameters": [
22
+ {
23
+ "name": "ABC",
24
+ "value": "123"
25
+ }
26
+ ]
27
+ }
28
+ }
29
+
30
+ ### Example 3: Update condition
31
+ Change: "Check if temperature is above 25 degrees"
32
+ Current parameters: { "conditions": { "conditions": [] } }
33
+ Updated parameters: {
34
+ "conditions": {
35
+ "options": {
36
+ "caseSensitive": false,
37
+ "leftValue": "",
38
+ "typeValidation": "loose"
39
+ },
40
+ "conditions": [
41
+ {
42
+ "leftValue": "={{ $('Weather Node').item.json.main.temp }}",
43
+ "rightValue": 25,
44
+ "operator": {
45
+ "type": "number",
46
+ "operation": "gt"
47
+ }
48
+ }
49
+ ],
50
+ "combinator": "and"
51
+ }
52
+ }`,
53
+ };
54
+ //# sourceMappingURL=simple-updates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-updates.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/simple-updates.ts"],"names":[],"mappings":";;;AAGa,QAAA,sBAAsB,GAAqB;IACvD,QAAQ,EAAE,CAAC,GAAG,CAAC;IACf,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CR;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeExamples } from '../types';
2
+ export declare const SWITCH_NODE_EXAMPLES: NodeTypeExamples;