@antelopejs/dms-automation 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +95 -0
  3. package/dist/cluster/bus.d.ts +17 -0
  4. package/dist/cluster/bus.js +82 -0
  5. package/dist/cluster/bus.js.map +1 -0
  6. package/dist/cluster/instance.d.ts +1 -0
  7. package/dist/cluster/instance.js +6 -0
  8. package/dist/cluster/instance.js.map +1 -0
  9. package/dist/cluster/leader.d.ts +7 -0
  10. package/dist/cluster/leader.js +123 -0
  11. package/dist/cluster/leader.js.map +1 -0
  12. package/dist/cluster/mode.d.ts +3 -0
  13. package/dist/cluster/mode.js +25 -0
  14. package/dist/cluster/mode.js.map +1 -0
  15. package/dist/data/procedures-table.d.ts +66 -0
  16. package/dist/data/procedures-table.js +271 -0
  17. package/dist/data/procedures-table.js.map +1 -0
  18. package/dist/data/runs-table.d.ts +23 -0
  19. package/dist/data/runs-table.js +125 -0
  20. package/dist/data/runs-table.js.map +1 -0
  21. package/dist/db/index.d.ts +7 -0
  22. package/dist/db/index.js +24 -0
  23. package/dist/db/index.js.map +1 -0
  24. package/dist/db/models/automation_template.model.d.ts +58 -0
  25. package/dist/db/models/automation_template.model.js +134 -0
  26. package/dist/db/models/automation_template.model.js.map +1 -0
  27. package/dist/db/models/index.d.ts +3 -0
  28. package/dist/db/models/index.js +20 -0
  29. package/dist/db/models/index.js.map +1 -0
  30. package/dist/db/models/procedure.model.d.ts +25 -0
  31. package/dist/db/models/procedure.model.js +28 -0
  32. package/dist/db/models/procedure.model.js.map +1 -0
  33. package/dist/db/models/procedure_run.model.d.ts +34 -0
  34. package/dist/db/models/procedure_run.model.js +39 -0
  35. package/dist/db/models/procedure_run.model.js.map +1 -0
  36. package/dist/db/models/stats.model.d.ts +73 -0
  37. package/dist/db/models/stats.model.js +267 -0
  38. package/dist/db/models/stats.model.js.map +1 -0
  39. package/dist/db/models/type_config.model.d.ts +47 -0
  40. package/dist/db/models/type_config.model.js +51 -0
  41. package/dist/db/models/type_config.model.js.map +1 -0
  42. package/dist/db/tables/action_type_config.table.d.ts +7 -0
  43. package/dist/db/tables/action_type_config.table.js +35 -0
  44. package/dist/db/tables/action_type_config.table.js.map +1 -0
  45. package/dist/db/tables/automation_template.table.d.ts +11 -0
  46. package/dist/db/tables/automation_template.table.js +52 -0
  47. package/dist/db/tables/automation_template.table.js.map +1 -0
  48. package/dist/db/tables/index.d.ts +5 -0
  49. package/dist/db/tables/index.js +22 -0
  50. package/dist/db/tables/index.js.map +1 -0
  51. package/dist/db/tables/procedure.table.d.ts +10 -0
  52. package/dist/db/tables/procedure.table.js +48 -0
  53. package/dist/db/tables/procedure.table.js.map +1 -0
  54. package/dist/db/tables/procedure_run.table.d.ts +13 -0
  55. package/dist/db/tables/procedure_run.table.js +57 -0
  56. package/dist/db/tables/procedure_run.table.js.map +1 -0
  57. package/dist/db/tables/trigger_type_config.table.d.ts +7 -0
  58. package/dist/db/tables/trigger_type_config.table.js +35 -0
  59. package/dist/db/tables/trigger_type_config.table.js.map +1 -0
  60. package/dist/implementations/dms-automation/index.d.ts +19 -0
  61. package/dist/implementations/dms-automation/index.js +50 -0
  62. package/dist/implementations/dms-automation/index.js.map +1 -0
  63. package/dist/index.d.ts +14 -0
  64. package/dist/index.js +121 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/pages/builder.d.ts +10 -0
  67. package/dist/pages/builder.js +28 -0
  68. package/dist/pages/builder.js.map +1 -0
  69. package/dist/pages/category.d.ts +1 -0
  70. package/dist/pages/category.js +10 -0
  71. package/dist/pages/category.js.map +1 -0
  72. package/dist/pages/index.d.ts +6 -0
  73. package/dist/pages/index.js +9 -0
  74. package/dist/pages/index.js.map +1 -0
  75. package/dist/pages/library.d.ts +10 -0
  76. package/dist/pages/library.js +28 -0
  77. package/dist/pages/library.js.map +1 -0
  78. package/dist/pages/overview.d.ts +10 -0
  79. package/dist/pages/overview.js +28 -0
  80. package/dist/pages/overview.js.map +1 -0
  81. package/dist/pages/procedures.d.ts +10 -0
  82. package/dist/pages/procedures.js +72 -0
  83. package/dist/pages/procedures.js.map +1 -0
  84. package/dist/pages/runs.d.ts +11 -0
  85. package/dist/pages/runs.js +61 -0
  86. package/dist/pages/runs.js.map +1 -0
  87. package/dist/routes/action-types.d.ts +23 -0
  88. package/dist/routes/action-types.js +80 -0
  89. package/dist/routes/action-types.js.map +1 -0
  90. package/dist/routes/data-node-types.d.ts +6 -0
  91. package/dist/routes/data-node-types.js +36 -0
  92. package/dist/routes/data-node-types.js.map +1 -0
  93. package/dist/routes/graphSchema.d.ts +92 -0
  94. package/dist/routes/graphSchema.js +60 -0
  95. package/dist/routes/graphSchema.js.map +1 -0
  96. package/dist/routes/index.d.ts +8 -0
  97. package/dist/routes/index.js +11 -0
  98. package/dist/routes/index.js.map +1 -0
  99. package/dist/routes/node-kinds.d.ts +9 -0
  100. package/dist/routes/node-kinds.js +35 -0
  101. package/dist/routes/node-kinds.js.map +1 -0
  102. package/dist/routes/procedures.d.ts +23 -0
  103. package/dist/routes/procedures.js +181 -0
  104. package/dist/routes/procedures.js.map +1 -0
  105. package/dist/routes/runs.d.ts +7 -0
  106. package/dist/routes/runs.js +81 -0
  107. package/dist/routes/runs.js.map +1 -0
  108. package/dist/routes/stats.d.ts +6 -0
  109. package/dist/routes/stats.js +35 -0
  110. package/dist/routes/stats.js.map +1 -0
  111. package/dist/routes/templates.d.ts +20 -0
  112. package/dist/routes/templates.js +243 -0
  113. package/dist/routes/templates.js.map +1 -0
  114. package/dist/routes/trigger-types.d.ts +24 -0
  115. package/dist/routes/trigger-types.js +80 -0
  116. package/dist/routes/trigger-types.js.map +1 -0
  117. package/dist/routes/typeConfigShared.d.ts +22 -0
  118. package/dist/routes/typeConfigShared.js +37 -0
  119. package/dist/routes/typeConfigShared.js.map +1 -0
  120. package/dist/runtime/builtins/actions/http.d.ts +13 -0
  121. package/dist/runtime/builtins/actions/http.js +47 -0
  122. package/dist/runtime/builtins/actions/http.js.map +1 -0
  123. package/dist/runtime/builtins/actions/index.d.ts +2 -0
  124. package/dist/runtime/builtins/actions/index.js +7 -0
  125. package/dist/runtime/builtins/actions/index.js.map +1 -0
  126. package/dist/runtime/builtins/actions/log.d.ts +13 -0
  127. package/dist/runtime/builtins/actions/log.js +49 -0
  128. package/dist/runtime/builtins/actions/log.js.map +1 -0
  129. package/dist/runtime/builtins/data/boolean.d.ts +2 -0
  130. package/dist/runtime/builtins/data/boolean.js +39 -0
  131. package/dist/runtime/builtins/data/boolean.js.map +1 -0
  132. package/dist/runtime/builtins/data/compare.d.ts +2 -0
  133. package/dist/runtime/builtins/data/compare.js +29 -0
  134. package/dist/runtime/builtins/data/compare.js.map +1 -0
  135. package/dist/runtime/builtins/data/constant.d.ts +2 -0
  136. package/dist/runtime/builtins/data/constant.js +29 -0
  137. package/dist/runtime/builtins/data/constant.js.map +1 -0
  138. package/dist/runtime/builtins/data/index.d.ts +2 -0
  139. package/dist/runtime/builtins/data/index.js +20 -0
  140. package/dist/runtime/builtins/data/index.js.map +1 -0
  141. package/dist/runtime/builtins/data/json.d.ts +2 -0
  142. package/dist/runtime/builtins/data/json.js +46 -0
  143. package/dist/runtime/builtins/data/json.js.map +1 -0
  144. package/dist/runtime/builtins/data/math.d.ts +2 -0
  145. package/dist/runtime/builtins/data/math.js +53 -0
  146. package/dist/runtime/builtins/data/math.js.map +1 -0
  147. package/dist/runtime/builtins/data/object.d.ts +2 -0
  148. package/dist/runtime/builtins/data/object.js +121 -0
  149. package/dist/runtime/builtins/data/object.js.map +1 -0
  150. package/dist/runtime/builtins/data/string.d.ts +2 -0
  151. package/dist/runtime/builtins/data/string.js +143 -0
  152. package/dist/runtime/builtins/data/string.js.map +1 -0
  153. package/dist/runtime/builtins/index.d.ts +17 -0
  154. package/dist/runtime/builtins/index.js +24 -0
  155. package/dist/runtime/builtins/index.js.map +1 -0
  156. package/dist/runtime/builtins/nodes/action.d.ts +1 -0
  157. package/dist/runtime/builtins/nodes/action.js +36 -0
  158. package/dist/runtime/builtins/nodes/action.js.map +1 -0
  159. package/dist/runtime/builtins/nodes/data.d.ts +1 -0
  160. package/dist/runtime/builtins/nodes/data.js +28 -0
  161. package/dist/runtime/builtins/nodes/data.js.map +1 -0
  162. package/dist/runtime/builtins/nodes/delay.d.ts +1 -0
  163. package/dist/runtime/builtins/nodes/delay.js +41 -0
  164. package/dist/runtime/builtins/nodes/delay.js.map +1 -0
  165. package/dist/runtime/builtins/nodes/forRange.d.ts +1 -0
  166. package/dist/runtime/builtins/nodes/forRange.js +52 -0
  167. package/dist/runtime/builtins/nodes/forRange.js.map +1 -0
  168. package/dist/runtime/builtins/nodes/foreach.d.ts +1 -0
  169. package/dist/runtime/builtins/nodes/foreach.js +31 -0
  170. package/dist/runtime/builtins/nodes/foreach.js.map +1 -0
  171. package/dist/runtime/builtins/nodes/groupInput.d.ts +1 -0
  172. package/dist/runtime/builtins/nodes/groupInput.js +11 -0
  173. package/dist/runtime/builtins/nodes/groupInput.js.map +1 -0
  174. package/dist/runtime/builtins/nodes/groupOutput.d.ts +1 -0
  175. package/dist/runtime/builtins/nodes/groupOutput.js +11 -0
  176. package/dist/runtime/builtins/nodes/groupOutput.js.map +1 -0
  177. package/dist/runtime/builtins/nodes/if.d.ts +1 -0
  178. package/dist/runtime/builtins/nodes/if.js +23 -0
  179. package/dist/runtime/builtins/nodes/if.js.map +1 -0
  180. package/dist/runtime/builtins/nodes/parallel.d.ts +1 -0
  181. package/dist/runtime/builtins/nodes/parallel.js +34 -0
  182. package/dist/runtime/builtins/nodes/parallel.js.map +1 -0
  183. package/dist/runtime/builtins/nodes/retry.d.ts +1 -0
  184. package/dist/runtime/builtins/nodes/retry.js +46 -0
  185. package/dist/runtime/builtins/nodes/retry.js.map +1 -0
  186. package/dist/runtime/builtins/nodes/setVariable.d.ts +1 -0
  187. package/dist/runtime/builtins/nodes/setVariable.js +31 -0
  188. package/dist/runtime/builtins/nodes/setVariable.js.map +1 -0
  189. package/dist/runtime/builtins/nodes/switch.d.ts +1 -0
  190. package/dist/runtime/builtins/nodes/switch.js +33 -0
  191. package/dist/runtime/builtins/nodes/switch.js.map +1 -0
  192. package/dist/runtime/builtins/nodes/trigger.d.ts +1 -0
  193. package/dist/runtime/builtins/nodes/trigger.js +25 -0
  194. package/dist/runtime/builtins/nodes/trigger.js.map +1 -0
  195. package/dist/runtime/builtins/nodes/tryCatch.d.ts +1 -0
  196. package/dist/runtime/builtins/nodes/tryCatch.js +35 -0
  197. package/dist/runtime/builtins/nodes/tryCatch.js.map +1 -0
  198. package/dist/runtime/builtins/triggers/cron.d.ts +9 -0
  199. package/dist/runtime/builtins/triggers/cron.js +52 -0
  200. package/dist/runtime/builtins/triggers/cron.js.map +1 -0
  201. package/dist/runtime/builtins/triggers/index.d.ts +2 -0
  202. package/dist/runtime/builtins/triggers/index.js +12 -0
  203. package/dist/runtime/builtins/triggers/index.js.map +1 -0
  204. package/dist/runtime/builtins/triggers/manual.d.ts +3 -0
  205. package/dist/runtime/builtins/triggers/manual.js +20 -0
  206. package/dist/runtime/builtins/triggers/manual.js.map +1 -0
  207. package/dist/runtime/builtins/triggers/webhook.d.ts +14 -0
  208. package/dist/runtime/builtins/triggers/webhook.js +90 -0
  209. package/dist/runtime/builtins/triggers/webhook.js.map +1 -0
  210. package/dist/runtime/executionResult.d.ts +6 -0
  211. package/dist/runtime/executionResult.js +3 -0
  212. package/dist/runtime/executionResult.js.map +1 -0
  213. package/dist/runtime/executor.d.ts +9 -0
  214. package/dist/runtime/executor.js +300 -0
  215. package/dist/runtime/executor.js.map +1 -0
  216. package/dist/runtime/flatten.d.ts +3 -0
  217. package/dist/runtime/flatten.js +188 -0
  218. package/dist/runtime/flatten.js.map +1 -0
  219. package/dist/runtime/nodeKinds.d.ts +64 -0
  220. package/dist/runtime/nodeKinds.js +43 -0
  221. package/dist/runtime/nodeKinds.js.map +1 -0
  222. package/dist/runtime/reconcileDiff.d.ts +9 -0
  223. package/dist/runtime/reconcileDiff.js +26 -0
  224. package/dist/runtime/reconcileDiff.js.map +1 -0
  225. package/dist/runtime/registry.d.ts +19 -0
  226. package/dist/runtime/registry.js +47 -0
  227. package/dist/runtime/registry.js.map +1 -0
  228. package/dist/runtime/resolveInputs.d.ts +14 -0
  229. package/dist/runtime/resolveInputs.js +64 -0
  230. package/dist/runtime/resolveInputs.js.map +1 -0
  231. package/dist/runtime/resolveSubgraph.d.ts +7 -0
  232. package/dist/runtime/resolveSubgraph.js +15 -0
  233. package/dist/runtime/resolveSubgraph.js.map +1 -0
  234. package/dist/runtime/subscriptions.d.ts +16 -0
  235. package/dist/runtime/subscriptions.js +419 -0
  236. package/dist/runtime/subscriptions.js.map +1 -0
  237. package/dist/runtime/subwalk.d.ts +17 -0
  238. package/dist/runtime/subwalk.js +74 -0
  239. package/dist/runtime/subwalk.js.map +1 -0
  240. package/dist/runtime/topo.d.ts +3 -0
  241. package/dist/runtime/topo.js +75 -0
  242. package/dist/runtime/topo.js.map +1 -0
  243. package/dist/runtime/typeOrigin.d.ts +7 -0
  244. package/dist/runtime/typeOrigin.js +24 -0
  245. package/dist/runtime/typeOrigin.js.map +1 -0
  246. package/dist/runtime/validate.d.ts +10 -0
  247. package/dist/runtime/validate.js +185 -0
  248. package/dist/runtime/validate.js.map +1 -0
  249. package/dist/runtime/validateTemplate.d.ts +3 -0
  250. package/dist/runtime/validateTemplate.js +54 -0
  251. package/dist/runtime/validateTemplate.js.map +1 -0
  252. package/dist/types/constants.d.ts +6 -0
  253. package/dist/types/constants.js +10 -0
  254. package/dist/types/constants.js.map +1 -0
  255. package/dist/types/graph.d.ts +51 -0
  256. package/dist/types/graph.js +23 -0
  257. package/dist/types/graph.js.map +1 -0
  258. package/dist/types/pagination.d.ts +8 -0
  259. package/dist/types/pagination.js +3 -0
  260. package/dist/types/pagination.js.map +1 -0
  261. package/dist/types/runLog.d.ts +26 -0
  262. package/dist/types/runLog.js +3 -0
  263. package/dist/types/runLog.js.map +1 -0
  264. package/frontend-vue/.prettierignore +4 -0
  265. package/frontend-vue/app/components/Actions.vue +141 -0
  266. package/frontend-vue/app/components/Catalog/TypeConfigForm.vue +166 -0
  267. package/frontend-vue/app/components/Catalog/TypeList.vue +198 -0
  268. package/frontend-vue/app/components/DataNodes.vue +259 -0
  269. package/frontend-vue/app/components/Editor/BuilderPalette.vue +234 -0
  270. package/frontend-vue/app/components/Editor/GraphCanvas.vue +994 -0
  271. package/frontend-vue/app/components/Editor/GroupPortEditor.vue +289 -0
  272. package/frontend-vue/app/components/Editor/JsonField.vue +63 -0
  273. package/frontend-vue/app/components/Editor/NodeInspector.vue +356 -0
  274. package/frontend-vue/app/components/Editor/ProcedureList.vue +156 -0
  275. package/frontend-vue/app/components/Editor/RunsDrawer.vue +312 -0
  276. package/frontend-vue/app/components/Editor/WiredField.vue +42 -0
  277. package/frontend-vue/app/components/Editor/nodes/GenericNode.vue +161 -0
  278. package/frontend-vue/app/components/Editor/nodes/GroupInputNode.vue +19 -0
  279. package/frontend-vue/app/components/Editor/nodes/GroupNode.vue +200 -0
  280. package/frontend-vue/app/components/Editor/nodes/GroupOutputNode.vue +19 -0
  281. package/frontend-vue/app/components/Editor/nodes/GroupSentinel.vue +161 -0
  282. package/frontend-vue/app/components/Editor/nodes/styles.ts +53 -0
  283. package/frontend-vue/app/components/Editor.vue +2504 -0
  284. package/frontend-vue/app/components/Library.vue +67 -0
  285. package/frontend-vue/app/components/Overview.vue +503 -0
  286. package/frontend-vue/app/components/RunDetailDrawer.vue +165 -0
  287. package/frontend-vue/app/components/RunFireTree.vue +170 -0
  288. package/frontend-vue/app/components/RunTraceDrawer.vue +59 -0
  289. package/frontend-vue/app/components/RunsStats.vue +126 -0
  290. package/frontend-vue/app/components/RunsTimelineDisplay.vue +287 -0
  291. package/frontend-vue/app/components/Templates.vue +663 -0
  292. package/frontend-vue/app/components/Triggers.vue +137 -0
  293. package/frontend-vue/app/composables/useAutomationNodeKinds.ts +48 -0
  294. package/frontend-vue/app/composables/useAutomationRuns.ts +75 -0
  295. package/frontend-vue/app/composables/useGraphConnect.ts +542 -0
  296. package/frontend-vue/app/plugins/runs-timeline-display.client.ts +16 -0
  297. package/frontend-vue/app/utils/automation.ts +51 -0
  298. package/frontend-vue/dms.frontend.ts +26 -0
  299. package/frontend-vue/eslint.config.mjs +24 -0
  300. package/frontend-vue/i18n/locales/dms-automation-en-GB.json +369 -0
  301. package/frontend-vue/i18n/locales/dms-automation-fr-FR.json +369 -0
  302. package/frontend-vue/package.json +33 -0
  303. package/frontend-vue/pnpm-lock.yaml +6483 -0
  304. package/frontend-vue/pnpm-workspace.yaml +2 -0
  305. package/package.json +81 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/data.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,IAAe,EACf,OAAgC,EAChC,IAAa;IAKb,MAAM,IAAI,KAAK,CACb,8CAA8C,IAAI,CAAC,EAAE,KAAK;QACxD,6DAA6D,CAChE,CAAC;AACJ,CAAC;AAED,qBAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE;IAClC,iBAAiB,EAAE,EAAE;IACrB,SAAS,EAAE,EAAE;IACb,EAAE,EAAE;QACF,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,KAAK;QACxB,iBAAiB,EAAE,EAAE;QACrB,aAAa,EAAE,EAAE;QACjB,cAAc,EAAE,EAAE;QAClB,YAAY,EAAE,WAAW;QACzB,qBAAqB,EAAE,aAAa;QACpC,sBAAsB,EAAE,cAAc;QACtC,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,IAAI;QAClB,gBAAgB,EAAE,IAAI;KACvB;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(node, inputs, ctx) {
5
+ const ms = Number(node.config.ms ?? 0);
6
+ if (ms > 0) {
7
+ await new Promise((resolve, reject) => {
8
+ if (ctx.signal.aborted) {
9
+ reject(new DOMException("Aborted", "AbortError"));
10
+ return;
11
+ }
12
+ const t = setTimeout(resolve, ms);
13
+ const onAbort = () => {
14
+ clearTimeout(t);
15
+ reject(new DOMException("Aborted", "AbortError"));
16
+ };
17
+ ctx.signal.addEventListener("abort", onAbort, { once: true });
18
+ });
19
+ }
20
+ ctx.setOutputs(inputs);
21
+ }
22
+ nodeKinds_1.nodeKinds.register("delay", execute, {
23
+ continuationPorts: ["main"],
24
+ sidePorts: [],
25
+ ui: {
26
+ label: "Delay",
27
+ icon: "i-ph-clock",
28
+ category: "helper",
29
+ hasTriggerIn: true,
30
+ hasMainTriggerOut: true,
31
+ staticTriggerOuts: [],
32
+ staticDataIns: [],
33
+ staticDataOuts: [],
34
+ defaultConfig: { ms: 1000 },
35
+ configSchema: {
36
+ type: "object",
37
+ properties: { ms: { type: "number" } },
38
+ },
39
+ },
40
+ });
41
+ //# sourceMappingURL=delay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delay.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/delay.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,IAAe,EACf,MAA+B,EAC/B,GAAY;IAEZ,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;QACX,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC1C,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;gBACvB,MAAM,CAAC,IAAI,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;gBAClD,OAAO;YACT,CAAC;YACD,MAAM,CAAC,GAAG,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAClC,MAAM,OAAO,GAAG,GAAG,EAAE;gBACnB,YAAY,CAAC,CAAC,CAAC,CAAC;gBAChB,MAAM,CAAC,IAAI,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;YACpD,CAAC,CAAC;YACF,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;IACL,CAAC;IACD,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AAED,qBAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE;IACnC,iBAAiB,EAAE,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,EAAE;IACb,EAAE,EAAE;QACF,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,EAAE;QACrB,aAAa,EAAE,EAAE;QACjB,cAAc,EAAE,EAAE;QAClB,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;QAC3B,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;SACvC;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ const MAX_FOR_RANGE_ITERATIONS = 1_000_000;
5
+ async function execute(_node, inputs, ctx) {
6
+ const start = Number(inputs.start ?? 0);
7
+ const end = Number(inputs.end ?? 0);
8
+ const step = Number(inputs.step ?? 1);
9
+ if (!Number.isFinite(start) ||
10
+ !Number.isFinite(end) ||
11
+ !Number.isFinite(step)) {
12
+ ctx.log("warn", `forRange has non-finite input(s) (start=${start}, end=${end}, step=${step}); iterating zero times`);
13
+ return;
14
+ }
15
+ if (step === 0) {
16
+ throw new Error("forRange: step must be non-zero");
17
+ }
18
+ let value = start;
19
+ let i = 0;
20
+ const goingUp = step > 0;
21
+ while (goingUp ? value < end : value > end) {
22
+ if (i >= MAX_FOR_RANGE_ITERATIONS) {
23
+ throw new Error(`forRange exceeded ${MAX_FOR_RANGE_ITERATIONS} iterations`);
24
+ }
25
+ ctx.setOutputs({ value, index: i });
26
+ await ctx.fireTrigger("body", { iteration: i });
27
+ value += step;
28
+ i += 1;
29
+ }
30
+ }
31
+ nodeKinds_1.nodeKinds.register("forRange", execute, {
32
+ continuationPorts: ["main"],
33
+ sidePorts: ["body"],
34
+ ui: {
35
+ label: "For range",
36
+ icon: "i-ph-arrow-clockwise",
37
+ category: "flow",
38
+ hasTriggerIn: true,
39
+ hasMainTriggerOut: true,
40
+ staticTriggerOuts: ["body"],
41
+ staticDataIns: [
42
+ { name: "start", type: "number" },
43
+ { name: "end", type: "number" },
44
+ { name: "step", type: "number" },
45
+ ],
46
+ staticDataOuts: [
47
+ { name: "value", type: "number" },
48
+ { name: "index", type: "number" },
49
+ ],
50
+ },
51
+ });
52
+ //# sourceMappingURL=forRange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forRange.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/forRange.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,MAAM,wBAAwB,GAAG,SAAS,CAAC;AAE3C,KAAK,UAAU,OAAO,CACpB,KAAgB,EAChB,MAA+B,EAC/B,GAAY;IAEZ,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;IACxC,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IACpC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;IAEtC,IACE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QACvB,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;QACrB,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EACtB,CAAC;QACD,GAAG,CAAC,GAAG,CACL,MAAM,EACN,2CAA2C,KAAK,SAAS,GAAG,UAAU,IAAI,yBAAyB,CACpG,CAAC;QACF,OAAO;IACT,CAAC;IACD,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,KAAK,GAAG,KAAK,CAAC;IAClB,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC;IACzB,OAAO,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,EAAE,CAAC;QAC3C,IAAI,CAAC,IAAI,wBAAwB,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CACb,qBAAqB,wBAAwB,aAAa,CAC3D,CAAC;QACJ,CAAC;QACD,GAAG,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QACpC,MAAM,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;QAChD,KAAK,IAAI,IAAI,CAAC;QACd,CAAC,IAAI,CAAC,CAAC;IACT,CAAC;AAEH,CAAC;AAED,qBAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,EAAE;IACtC,iBAAiB,EAAE,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,MAAM,CAAC;IACnB,EAAE,EAAE;QACF,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,CAAC,MAAM,CAAC;QAC3B,aAAa,EAAE;YACb,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;YACjC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;SACjC;QACD,cAAc,EAAE;YACd,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;YACjC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;SAClC;KAGF;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(_node, inputs, ctx) {
5
+ const raw = inputs.items;
6
+ const items = Array.isArray(raw) ? raw : [];
7
+ if (!Array.isArray(raw)) {
8
+ ctx.log("warn", `foreach "items" input is not an array (got ${typeof raw}); iterating zero times`);
9
+ }
10
+ for (let i = 0; i < items.length; i++) {
11
+ ctx.setOutputs({ value: items[i], index: i });
12
+ await ctx.fireTrigger("body", { iteration: i });
13
+ }
14
+ }
15
+ nodeKinds_1.nodeKinds.register("foreach", execute, {
16
+ continuationPorts: ["main"],
17
+ sidePorts: ["body"],
18
+ ui: {
19
+ label: "Foreach",
20
+ icon: "i-ph-arrows-clockwise",
21
+ category: "flow",
22
+ hasTriggerIn: true,
23
+ hasMainTriggerOut: true,
24
+ staticTriggerOuts: ["body"],
25
+ staticDataIns: [{ name: "items", type: "array" }],
26
+ staticDataOuts: [{ name: "value" }, { name: "index", type: "number" }],
27
+ defaultConfig: {},
28
+ configSchema: { type: "object", properties: {} },
29
+ },
30
+ });
31
+ //# sourceMappingURL=foreach.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foreach.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/foreach.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,KAAgB,EAChB,MAA+B,EAC/B,GAAY;IAEZ,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC;IACzB,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACxB,GAAG,CAAC,GAAG,CACL,MAAM,EACN,8CAA8C,OAAO,GAAG,yBAAyB,CAClF,CAAC;IACJ,CAAC;IACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,GAAG,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAC9C,MAAM,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;AAKH,CAAC;AAED,qBAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,EAAE;IACrC,iBAAiB,EAAE,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,MAAM,CAAC;IACnB,EAAE,EAAE;QACF,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,uBAAuB;QAC7B,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,CAAC,MAAM,CAAC;QAC3B,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QACjD,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QACtE,aAAa,EAAE,EAAE;QACjB,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE;KACjD;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(_node, inputs, ctx) {
5
+ ctx.setOutputs(inputs);
6
+ }
7
+ nodeKinds_1.nodeKinds.register("groupInput", execute, {
8
+ continuationPorts: [],
9
+ sidePorts: [],
10
+ });
11
+ //# sourceMappingURL=groupInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groupInput.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/groupInput.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,KAAgB,EAChB,MAA+B,EAC/B,GAAY;IAKZ,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AAGD,qBAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,EAAE;IACxC,iBAAiB,EAAE,EAAE;IACrB,SAAS,EAAE,EAAE;CACd,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(_node, inputs, ctx) {
5
+ ctx.setOutputs(inputs);
6
+ }
7
+ nodeKinds_1.nodeKinds.register("groupOutput", execute, {
8
+ continuationPorts: [],
9
+ sidePorts: [],
10
+ });
11
+ //# sourceMappingURL=groupOutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groupOutput.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/groupOutput.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,KAAgB,EAChB,MAA+B,EAC/B,GAAY;IAMZ,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AAED,qBAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,OAAO,EAAE;IACzC,iBAAiB,EAAE,EAAE;IACrB,SAAS,EAAE,EAAE;CACd,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(_node, inputs, ctx) {
5
+ const branch = inputs.cond ? "then" : "else";
6
+ ctx.log("info", `branch: ${branch}`);
7
+ ctx.continueWith(branch);
8
+ }
9
+ nodeKinds_1.nodeKinds.register("if", execute, {
10
+ continuationPorts: [],
11
+ sidePorts: ["then", "else"],
12
+ ui: {
13
+ label: "If",
14
+ icon: "i-ph-git-branch",
15
+ category: "flow",
16
+ hasTriggerIn: true,
17
+ hasMainTriggerOut: false,
18
+ staticTriggerOuts: ["then", "else"],
19
+ staticDataIns: [{ name: "cond", type: "boolean" }],
20
+ staticDataOuts: [],
21
+ },
22
+ });
23
+ //# sourceMappingURL=if.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"if.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/if.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,KAAgB,EAChB,MAA+B,EAC/B,GAAY;IAEZ,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAC7C,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,MAAM,EAAE,CAAC,CAAC;IAGrC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC;AAED,qBAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE;IAChC,iBAAiB,EAAE,EAAE;IACrB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IAC3B,EAAE,EAAE;QACF,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;QACxB,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;QACnC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAClD,cAAc,EAAE,EAAE;KACnB;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(node, _inputs, ctx) {
5
+ const raw = node.config.ports;
6
+ const ports = Array.isArray(raw)
7
+ ? raw.map(String).filter((p) => p.length > 0)
8
+ : [];
9
+ if (ports.length === 0) {
10
+ ctx.log("warn", "parallel has no configured ports; nothing to run");
11
+ }
12
+ await Promise.all(ports.map((p) => ctx.fireTrigger(p)));
13
+ }
14
+ nodeKinds_1.nodeKinds.register("parallel", execute, {
15
+ continuationPorts: ["main"],
16
+ sidePorts: [],
17
+ ui: {
18
+ label: "Parallel",
19
+ icon: "i-ph-flow-arrow",
20
+ category: "flow",
21
+ hasTriggerIn: true,
22
+ hasMainTriggerOut: true,
23
+ dynamicTriggerOutsFromConfig: "ports",
24
+ staticTriggerOuts: [],
25
+ staticDataIns: [],
26
+ staticDataOuts: [],
27
+ defaultConfig: { ports: ["a", "b"] },
28
+ configSchema: {
29
+ type: "object",
30
+ properties: { ports: { type: "array", items: { type: "string" } } },
31
+ },
32
+ },
33
+ });
34
+ //# sourceMappingURL=parallel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parallel.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/parallel.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,IAAe,EACf,OAAgC,EAChC,GAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IAC9B,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAC9B,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QAC7C,CAAC,CAAC,EAAE,CAAC;IACP,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,kDAAkD,CAAC,CAAC;IACtE,CAAC;IAGD,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1D,CAAC;AAMD,qBAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,EAAE;IACtC,iBAAiB,EAAE,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,EAAE;IACb,EAAE,EAAE;QACF,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;QACvB,4BAA4B,EAAE,OAAO;QACrC,iBAAiB,EAAE,EAAE;QACrB,aAAa,EAAE,EAAE;QACjB,cAAc,EAAE,EAAE;QAClB,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;QACpC,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;SACpE;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(node, _inputs, ctx) {
5
+ const max = Math.max(1, Math.floor(Number(node.config.maxAttempts ?? 3)));
6
+ let lastError = null;
7
+ for (let i = 0; i < max; i++) {
8
+ ctx.setOutputs({ attempt: i });
9
+ try {
10
+ await ctx.fireTrigger("body", { iteration: i });
11
+ return;
12
+ }
13
+ catch (err) {
14
+ lastError = err;
15
+ const msg = err instanceof Error ? err.message : String(err);
16
+ ctx.log("warn", `attempt ${i + 1}/${max} failed: ${msg}`);
17
+ }
18
+ }
19
+ const message = lastError instanceof Error ? lastError.message : String(lastError);
20
+ const name = lastError instanceof Error ? lastError.name : "Error";
21
+ ctx.setOutputs({ attempt: max - 1, error: message, name });
22
+ ctx.continueWith("exhausted");
23
+ }
24
+ nodeKinds_1.nodeKinds.register("retry", execute, {
25
+ continuationPorts: ["main"],
26
+ sidePorts: ["body", "exhausted"],
27
+ ui: {
28
+ label: "Retry",
29
+ icon: "i-ph-arrow-counter-clockwise",
30
+ category: "flow",
31
+ hasTriggerIn: true,
32
+ hasMainTriggerOut: true,
33
+ staticTriggerOuts: ["body", "exhausted"],
34
+ staticDataIns: [],
35
+ staticDataOuts: [
36
+ { name: "attempt", type: "number" },
37
+ { name: "error", type: "string" },
38
+ ],
39
+ defaultConfig: { maxAttempts: 3 },
40
+ configSchema: {
41
+ type: "object",
42
+ properties: { maxAttempts: { type: "number" } },
43
+ },
44
+ },
45
+ });
46
+ //# sourceMappingURL=retry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/retry.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,IAAe,EACf,OAAgC,EAChC,GAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1E,IAAI,SAAS,GAAY,IAAI,CAAC;IAC9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7B,GAAG,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;QAC/B,IAAI,CAAC;YACH,MAAM,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;YAGhD,OAAO;QACT,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,SAAS,GAAG,GAAG,CAAC;YAChB,MAAM,GAAG,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAC7D,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,IAAI,GAAG,YAAY,GAAG,EAAE,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IACD,MAAM,OAAO,GACX,SAAS,YAAY,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACrE,MAAM,IAAI,GAAG,SAAS,YAAY,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;IACnE,GAAG,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAG3D,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC;AAKD,qBAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE;IACnC,iBAAiB,EAAE,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;IAChC,EAAE,EAAE;QACF,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,8BAA8B;QACpC,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;QACxC,aAAa,EAAE,EAAE;QACjB,cAAc,EAAE;YACd,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;YACnC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;SAClC;QACD,aAAa,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE;QACjC,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;SAChD;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(node, _inputs, ctx) {
5
+ const name = String(node.config.name ?? "");
6
+ const value = node.config.value;
7
+ ctx.setOutputs({ [name]: value });
8
+ }
9
+ nodeKinds_1.nodeKinds.register("setVariable", execute, {
10
+ continuationPorts: ["main"],
11
+ sidePorts: [],
12
+ ui: {
13
+ label: "Set variable",
14
+ icon: "i-ph-database",
15
+ category: "helper",
16
+ hasTriggerIn: true,
17
+ hasMainTriggerOut: true,
18
+ staticTriggerOuts: [],
19
+ staticDataIns: [],
20
+ staticDataOuts: [{ name: "value" }],
21
+ defaultConfig: { name: "var", value: null },
22
+ configSchema: {
23
+ type: "object",
24
+ properties: {
25
+ name: { type: "string" },
26
+ value: {},
27
+ },
28
+ },
29
+ },
30
+ });
31
+ //# sourceMappingURL=setVariable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setVariable.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/setVariable.ts"],"names":[],"mappings":";;AAIA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,IAAe,EACf,OAAgC,EAChC,GAAY;IAEZ,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IAChC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACpC,CAAC;AAED,qBAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,OAAO,EAAE;IACzC,iBAAiB,EAAE,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,EAAE;IACb,EAAE,EAAE;QACF,KAAK,EAAE,cAAc;QACrB,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,EAAE;QACrB,aAAa,EAAE,EAAE;QACjB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QACnC,aAAa,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE;QAC3C,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,KAAK,EAAE,EAAE;aACV;SACF;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(node, inputs, ctx) {
5
+ const cases = node.config.cases ?? [];
6
+ const key = String(inputs.value);
7
+ const branch = cases.includes(key) ? key : "default";
8
+ ctx.log("info", `branch: ${branch}`);
9
+ ctx.continueWith(branch);
10
+ }
11
+ nodeKinds_1.nodeKinds.register("switch", execute, {
12
+ continuationPorts: [],
13
+ sidePorts: [],
14
+ ui: {
15
+ label: "Switch",
16
+ icon: "i-ph-share-network",
17
+ category: "flow",
18
+ hasTriggerIn: true,
19
+ hasMainTriggerOut: false,
20
+ dynamicTriggerOutsFromConfig: "cases",
21
+ staticTriggerOuts: ["default"],
22
+ staticDataIns: [{ name: "value" }],
23
+ staticDataOuts: [],
24
+ defaultConfig: { cases: [] },
25
+ configSchema: {
26
+ type: "object",
27
+ properties: {
28
+ cases: { type: "array", items: { type: "string" } },
29
+ },
30
+ },
31
+ },
32
+ });
33
+ //# sourceMappingURL=switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/switch.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,IAAe,EACf,MAA+B,EAC/B,GAAY;IAEZ,MAAM,KAAK,GAAI,IAAI,CAAC,MAAM,CAAC,KAA8B,IAAI,EAAE,CAAC;IAChE,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACjC,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;IACrD,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,MAAM,EAAE,CAAC,CAAC;IACrC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC;AAED,qBAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE;IACpC,iBAAiB,EAAE,EAAE;IACrB,SAAS,EAAE,EAAE;IACb,EAAE,EAAE;QACF,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;QAExB,4BAA4B,EAAE,OAAO;QACrC,iBAAiB,EAAE,CAAC,SAAS,CAAC;QAC9B,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QAClC,cAAc,EAAE,EAAE;QAClB,aAAa,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;QAC5B,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;aACpD;SACF;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(node, _inputs, _ctx) {
5
+ throw new Error(`trigger node "${node.id}" cannot run mid-graph: triggers are entry points and must have no incoming trigger edge`);
6
+ }
7
+ nodeKinds_1.nodeKinds.register("trigger", execute, {
8
+ continuationPorts: ["main"],
9
+ sidePorts: [],
10
+ ui: {
11
+ label: "Trigger",
12
+ icon: "i-ph-lightning",
13
+ category: "trigger",
14
+ hasTriggerIn: false,
15
+ hasMainTriggerOut: true,
16
+ staticTriggerOuts: [],
17
+ staticDataIns: [],
18
+ staticDataOuts: [],
19
+ typeRegistry: "triggers",
20
+ dataOutsFromTypeSchema: "outputSchema",
21
+ labelFromType: true,
22
+ iconFromType: true,
23
+ },
24
+ });
25
+ //# sourceMappingURL=trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/trigger.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAK1D,KAAK,UAAU,OAAO,CACpB,IAAe,EACf,OAAgC,EAChC,IAAa;IAEb,MAAM,IAAI,KAAK,CACb,iBAAiB,IAAI,CAAC,EAAE,0FAA0F,CACnH,CAAC;AACJ,CAAC;AAED,qBAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,EAAE;IACrC,iBAAiB,EAAE,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,EAAE;IACb,EAAE,EAAE;QACF,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,SAAS;QACnB,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,EAAE;QACrB,aAAa,EAAE,EAAE;QACjB,cAAc,EAAE,EAAE;QAClB,YAAY,EAAE,UAAU;QACxB,sBAAsB,EAAE,cAAc;QACtC,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,IAAI;KACnB;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const nodeKinds_1 = require("../../nodeKinds");
4
+ async function execute(_node, _inputs, ctx) {
5
+ try {
6
+ await ctx.fireTrigger("try");
7
+ }
8
+ catch (err) {
9
+ const message = err instanceof Error ? err.message : String(err);
10
+ const name = err instanceof Error ? err.name : "Error";
11
+ ctx.setOutputs({ error: message, name });
12
+ ctx.log("warn", `caught ${name}: ${message}`);
13
+ await ctx.fireTrigger("catch");
14
+ }
15
+ }
16
+ nodeKinds_1.nodeKinds.register("tryCatch", execute, {
17
+ continuationPorts: ["main"],
18
+ sidePorts: ["try", "catch"],
19
+ ui: {
20
+ label: "Try / Catch",
21
+ icon: "i-ph-shield-warning",
22
+ category: "flow",
23
+ hasTriggerIn: true,
24
+ hasMainTriggerOut: true,
25
+ staticTriggerOuts: ["try", "catch"],
26
+ staticDataIns: [],
27
+ staticDataOuts: [
28
+ { name: "error", type: "string" },
29
+ { name: "name", type: "string" },
30
+ ],
31
+ defaultConfig: {},
32
+ configSchema: { type: "object", properties: {} },
33
+ },
34
+ });
35
+ //# sourceMappingURL=tryCatch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tryCatch.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/nodes/tryCatch.ts"],"names":[],"mappings":";;AACA,+CAA0D;AAE1D,KAAK,UAAU,OAAO,CACpB,KAAgB,EAChB,OAAgC,EAChC,GAAY;IAEZ,IAAI,CAAC;QACH,MAAM,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjE,MAAM,IAAI,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;QACvD,GAAG,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QACzC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,IAAI,KAAK,OAAO,EAAE,CAAC,CAAC;QAC9C,MAAM,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;AAIH,CAAC;AAED,qBAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,EAAE;IACtC,iBAAiB,EAAE,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC;IAC3B,EAAE,EAAE;QACF,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC;QACnC,aAAa,EAAE,EAAE;QACjB,cAAc,EAAE;YACd,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;YACjC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;SACjC;QACD,aAAa,EAAE,EAAE;QACjB,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE;KACjD;CACF,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { TriggerType } from "@antelopejs/interface-dms-automation";
2
+ interface CronConfig {
3
+ cron: string;
4
+ }
5
+ interface CronOutput {
6
+ firedAt: string;
7
+ }
8
+ export declare const cronTrigger: TriggerType<CronConfig, CronOutput>;
9
+ export {};
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.cronTrigger = void 0;
7
+ const node_cron_1 = __importDefault(require("node-cron"));
8
+ exports.cronTrigger = {
9
+ id: "schedule.cron",
10
+ name: "Schedule (cron)",
11
+ description: "Fires on a cron schedule",
12
+ icon: "i-ph-clock",
13
+ cluster: "singleton",
14
+ configSchema: {
15
+ type: "object",
16
+ properties: {
17
+ cron: {
18
+ type: "string",
19
+ title: "Schedule (cron expression)",
20
+ description: "Standard cron syntax, e.g. `*/5 * * * *` (every 5 minutes) or `0 9 * * 1` (Mondays at 09:00).",
21
+ default: "* * * * *",
22
+ },
23
+ },
24
+ required: ["cron"],
25
+ additionalProperties: false,
26
+ },
27
+ outputSchema: {
28
+ type: "object",
29
+ properties: {
30
+ firedAt: { type: "string", format: "date-time" },
31
+ },
32
+ },
33
+ async activate(config, emit) {
34
+ if (!node_cron_1.default.validate(config.cron)) {
35
+ throw new Error(`invalid cron expression: "${config.cron}"`);
36
+ }
37
+ const task = node_cron_1.default.schedule(config.cron, () => {
38
+ emit({ firedAt: new Date().toISOString() });
39
+ });
40
+ return task;
41
+ },
42
+ async deactivate(handle) {
43
+ const task = handle;
44
+ if (!task)
45
+ return;
46
+ await task.stop();
47
+ if (typeof task.destroy === "function") {
48
+ await task.destroy();
49
+ }
50
+ },
51
+ };
52
+ //# sourceMappingURL=cron.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cron.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/triggers/cron.ts"],"names":[],"mappings":";;;;;;AACA,0DAAqD;AAUxC,QAAA,WAAW,GAAwC;IAC9D,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,0BAA0B;IACvC,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,4BAA4B;gBACnC,WAAW,EACT,+FAA+F;gBACjG,OAAO,EAAE,WAAW;aACrB;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;QAClB,oBAAoB,EAAE,KAAK;KAC5B;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;SACjD;KACF;IACD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI;QACzB,IAAI,CAAC,mBAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,MAAM,IAAI,KAAK,CAAC,6BAA6B,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QAC/D,CAAC;QACD,MAAM,IAAI,GAAG,mBAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;YAC3C,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IACD,KAAK,CAAC,UAAU,CAAC,MAAM;QACrB,MAAM,IAAI,GAAG,MAAmC,CAAC;QACjD,IAAI,CAAC,IAAI;YAAE,OAAO;QAClB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,UAAU,EAAE,CAAC;YACvC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QACvB,CAAC;IACH,CAAC;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { TriggerType } from "@antelopejs/interface-dms-automation";
2
+ export declare const builtinTriggers: TriggerType[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.builtinTriggers = void 0;
4
+ const cron_1 = require("./cron");
5
+ const manual_1 = require("./manual");
6
+ const webhook_1 = require("./webhook");
7
+ exports.builtinTriggers = [
8
+ manual_1.manualTrigger,
9
+ cron_1.cronTrigger,
10
+ webhook_1.webhookTrigger,
11
+ ];
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/triggers/index.ts"],"names":[],"mappings":";;;AACA,iCAAqC;AACrC,qCAAyC;AACzC,uCAA2C;AAE9B,QAAA,eAAe,GAAkB;IAC5C,sBAAa;IACb,kBAAW;IACX,wBAAc;CACf,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { TriggerType } from "@antelopejs/interface-dms-automation";
2
+ export declare const MANUAL_TRIGGER_ID = "manual";
3
+ export declare const manualTrigger: TriggerType;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.manualTrigger = exports.MANUAL_TRIGGER_ID = void 0;
4
+ exports.MANUAL_TRIGGER_ID = "manual";
5
+ exports.manualTrigger = {
6
+ id: exports.MANUAL_TRIGGER_ID,
7
+ name: "Manual",
8
+ description: "Triggered by an explicit Run-now action or API invoke",
9
+ icon: "i-ph-play",
10
+ cluster: "replicated",
11
+ configSchema: {
12
+ type: "object",
13
+ properties: {},
14
+ additionalProperties: false,
15
+ },
16
+ outputSchema: { type: "object" },
17
+ activate: async () => ({}),
18
+ deactivate: async () => { },
19
+ };
20
+ //# sourceMappingURL=manual.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manual.js","sourceRoot":"","sources":["../../../../src/runtime/builtins/triggers/manual.ts"],"names":[],"mappings":";;;AAGa,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAO7B,QAAA,aAAa,GAAgB;IACxC,EAAE,EAAE,yBAAiB;IACrB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,uDAAuD;IACpE,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,oBAAoB,EAAE,KAAK;KAC5B;IACD,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;IAChC,QAAQ,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;IAC1B,UAAU,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { TriggerType } from "@antelopejs/interface-dms-automation";
2
+ interface WebhookConfig {
3
+ path: string;
4
+ method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
5
+ }
6
+ interface WebhookOutput {
7
+ method: string;
8
+ headers: Record<string, string | string[] | undefined>;
9
+ query: Record<string, string>;
10
+ body: unknown;
11
+ params: Record<string, string>;
12
+ }
13
+ export declare const webhookTrigger: TriggerType<WebhookConfig, WebhookOutput>;
14
+ export {};