@dxos/plugin-automation 0.8.3 → 0.8.4-main.1c7ec43d41

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 (302) hide show
  1. package/dist/lib/browser/chunk-CHUTFU3D.mjs +54 -0
  2. package/dist/lib/browser/chunk-CHUTFU3D.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  4. package/dist/lib/browser/chunk-RE64VLSV.mjs +44 -0
  5. package/dist/lib/browser/chunk-RE64VLSV.mjs.map +7 -0
  6. package/dist/lib/browser/create-trigger-from-template-JLBSJRVB.mjs +70 -0
  7. package/dist/lib/browser/create-trigger-from-template-JLBSJRVB.mjs.map +7 -0
  8. package/dist/lib/browser/hooks/index.mjs +129 -0
  9. package/dist/lib/browser/hooks/index.mjs.map +7 -0
  10. package/dist/lib/browser/index.mjs +20 -93
  11. package/dist/lib/browser/index.mjs.map +4 -4
  12. package/dist/lib/browser/meta.json +1 -1
  13. package/dist/lib/browser/operations/index.mjs +14 -0
  14. package/dist/lib/browser/operations/index.mjs.map +7 -0
  15. package/dist/lib/browser/translations.mjs +47 -0
  16. package/dist/lib/browser/translations.mjs.map +7 -0
  17. package/dist/lib/browser/types/index.mjs +14 -0
  18. package/dist/lib/node-esm/chunk-HHIHREME.mjs +45 -0
  19. package/dist/lib/node-esm/chunk-HHIHREME.mjs.map +7 -0
  20. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  21. package/dist/lib/node-esm/chunk-NWQMBY32.mjs +56 -0
  22. package/dist/lib/node-esm/chunk-NWQMBY32.mjs.map +7 -0
  23. package/dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs +71 -0
  24. package/dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs.map +7 -0
  25. package/dist/lib/node-esm/hooks/index.mjs +130 -0
  26. package/dist/lib/node-esm/hooks/index.mjs.map +7 -0
  27. package/dist/lib/node-esm/index.mjs +20 -93
  28. package/dist/lib/node-esm/index.mjs.map +4 -4
  29. package/dist/lib/node-esm/meta.json +1 -1
  30. package/dist/lib/node-esm/operations/index.mjs +15 -0
  31. package/dist/lib/node-esm/operations/index.mjs.map +7 -0
  32. package/dist/lib/node-esm/translations.mjs +48 -0
  33. package/dist/lib/node-esm/translations.mjs.map +7 -0
  34. package/dist/lib/node-esm/types/index.mjs +15 -0
  35. package/dist/types/src/AutomationPlugin.d.ts +3 -1
  36. package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
  37. package/dist/types/src/AutomationPlugin.node.d.ts +4 -0
  38. package/dist/types/src/AutomationPlugin.node.d.ts.map +1 -0
  39. package/dist/types/src/AutomationPlugin.test.d.ts +2 -0
  40. package/dist/types/src/AutomationPlugin.test.d.ts.map +1 -0
  41. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  42. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  43. package/dist/types/src/capabilities/compute-runtime.d.ts +14 -0
  44. package/dist/types/src/capabilities/compute-runtime.d.ts.map +1 -0
  45. package/dist/types/src/capabilities/index.d.ts +6 -3
  46. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  47. package/dist/types/src/capabilities/node.d.ts +6 -0
  48. package/dist/types/src/capabilities/node.d.ts.map +1 -0
  49. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  50. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  51. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  52. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  53. package/dist/types/src/commands/index.d.ts +2 -0
  54. package/dist/types/src/commands/index.d.ts.map +1 -0
  55. package/dist/types/src/commands/trigger/create/index.d.ts +25 -0
  56. package/dist/types/src/commands/trigger/create/index.d.ts.map +1 -0
  57. package/dist/types/src/commands/trigger/create/queue.d.ts +13 -0
  58. package/dist/types/src/commands/trigger/create/queue.d.ts.map +1 -0
  59. package/dist/types/src/commands/trigger/create/subscription.d.ts +15 -0
  60. package/dist/types/src/commands/trigger/create/subscription.d.ts.map +1 -0
  61. package/dist/types/src/commands/trigger/create/timer.d.ts +13 -0
  62. package/dist/types/src/commands/trigger/create/timer.d.ts.map +1 -0
  63. package/dist/types/src/commands/trigger/index.d.ts +57 -0
  64. package/dist/types/src/commands/trigger/index.d.ts.map +1 -0
  65. package/dist/types/src/commands/trigger/list.d.ts +7 -0
  66. package/dist/types/src/commands/trigger/list.d.ts.map +1 -0
  67. package/dist/types/src/commands/trigger/options.d.ts +11 -0
  68. package/dist/types/src/commands/trigger/options.d.ts.map +1 -0
  69. package/dist/types/src/commands/trigger/remove.d.ts +8 -0
  70. package/dist/types/src/commands/trigger/remove.d.ts.map +1 -0
  71. package/dist/types/src/commands/trigger/update/index.d.ts +28 -0
  72. package/dist/types/src/commands/trigger/update/index.d.ts.map +1 -0
  73. package/dist/types/src/commands/trigger/update/queue.d.ts +12 -0
  74. package/dist/types/src/commands/trigger/update/queue.d.ts.map +1 -0
  75. package/dist/types/src/commands/trigger/update/subscription.d.ts +13 -0
  76. package/dist/types/src/commands/trigger/update/subscription.d.ts.map +1 -0
  77. package/dist/types/src/commands/trigger/update/timer.d.ts +11 -0
  78. package/dist/types/src/commands/trigger/update/timer.d.ts.map +1 -0
  79. package/dist/types/src/commands/trigger/util.d.ts +46 -0
  80. package/dist/types/src/commands/trigger/util.d.ts.map +1 -0
  81. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +3 -3
  82. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
  83. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +50 -4
  84. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
  85. package/dist/types/src/components/AutomationPanel/index.d.ts.map +1 -1
  86. package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +1 -1
  87. package/dist/types/src/components/FunctionsPanel/index.d.ts.map +1 -1
  88. package/dist/types/src/components/FunctionsRegistry/FunctionsRegistry.d.ts +8 -0
  89. package/dist/types/src/components/FunctionsRegistry/FunctionsRegistry.d.ts.map +1 -0
  90. package/dist/types/src/components/FunctionsRegistry/index.d.ts +4 -0
  91. package/dist/types/src/components/FunctionsRegistry/index.d.ts.map +1 -0
  92. package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts +12 -9
  93. package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts.map +1 -1
  94. package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts +6 -3
  95. package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts.map +1 -1
  96. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +11 -8
  97. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
  98. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +121 -4
  99. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
  100. package/dist/types/src/components/index.d.ts +2 -3
  101. package/dist/types/src/components/index.d.ts.map +1 -1
  102. package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts +6 -0
  103. package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts.map +1 -0
  104. package/dist/types/src/containers/AutomationSettings/index.d.ts +2 -0
  105. package/dist/types/src/containers/AutomationSettings/index.d.ts.map +1 -0
  106. package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts +4 -0
  107. package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts.map +1 -0
  108. package/dist/types/src/containers/FunctionsContainer/index.d.ts +2 -0
  109. package/dist/types/src/containers/FunctionsContainer/index.d.ts.map +1 -0
  110. package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts +6 -0
  111. package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts.map +1 -0
  112. package/dist/types/src/containers/TriggerSettings/index.d.ts +3 -0
  113. package/dist/types/src/containers/TriggerSettings/index.d.ts.map +1 -0
  114. package/dist/types/src/containers/index.d.ts +5 -0
  115. package/dist/types/src/containers/index.d.ts.map +1 -0
  116. package/dist/types/src/hooks/index.d.ts +5 -0
  117. package/dist/types/src/hooks/index.d.ts.map +1 -0
  118. package/dist/types/src/hooks/useComputeRuntime.d.ts +8 -0
  119. package/dist/types/src/hooks/useComputeRuntime.d.ts.map +1 -0
  120. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts +9 -0
  121. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +1 -0
  122. package/dist/types/src/hooks/useComputeRuntimeService.d.ts +17 -0
  123. package/dist/types/src/hooks/useComputeRuntimeService.d.ts.map +1 -0
  124. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts +12 -0
  125. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -0
  126. package/dist/types/src/index.d.ts +3 -3
  127. package/dist/types/src/index.d.ts.map +1 -1
  128. package/dist/types/src/meta.d.ts +2 -3
  129. package/dist/types/src/meta.d.ts.map +1 -1
  130. package/dist/types/src/operations/create-trigger-from-template.d.ts +5 -0
  131. package/dist/types/src/operations/create-trigger-from-template.d.ts.map +1 -0
  132. package/dist/types/src/operations/definitions.d.ts +19 -0
  133. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  134. package/dist/types/src/operations/index.d.ts +4 -0
  135. package/dist/types/src/operations/index.d.ts.map +1 -0
  136. package/dist/types/src/testing/test-functions.d.ts +204 -3
  137. package/dist/types/src/testing/test-functions.d.ts.map +1 -1
  138. package/dist/types/src/translations.d.ts +35 -29
  139. package/dist/types/src/translations.d.ts.map +1 -1
  140. package/dist/types/src/types/capabilities.d.ts +24 -0
  141. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  142. package/dist/types/src/types/events.d.ts +5 -0
  143. package/dist/types/src/types/events.d.ts.map +1 -0
  144. package/dist/types/src/types/index.d.ts +4 -0
  145. package/dist/types/src/types/index.d.ts.map +1 -0
  146. package/dist/types/src/{types.d.ts → types/schema.d.ts} +13 -5
  147. package/dist/types/src/types/schema.d.ts.map +1 -0
  148. package/dist/types/tsconfig.tsbuildinfo +1 -1
  149. package/package.json +110 -46
  150. package/src/AutomationPlugin.node.ts +29 -0
  151. package/src/AutomationPlugin.test.ts +27 -0
  152. package/src/AutomationPlugin.tsx +23 -34
  153. package/src/capabilities/app-graph-builder.ts +59 -79
  154. package/src/capabilities/compute-runtime.ts +325 -0
  155. package/src/capabilities/index.ts +9 -4
  156. package/src/capabilities/node.ts +13 -0
  157. package/src/capabilities/operation-handler.ts +16 -0
  158. package/src/capabilities/react-surface.tsx +49 -46
  159. package/src/commands/index.ts +5 -0
  160. package/src/commands/trigger/create/index.ts +14 -0
  161. package/src/commands/trigger/create/queue.ts +86 -0
  162. package/src/commands/trigger/create/subscription.ts +125 -0
  163. package/src/commands/trigger/create/timer.ts +90 -0
  164. package/src/commands/trigger/index.ts +16 -0
  165. package/src/commands/trigger/list.ts +70 -0
  166. package/src/commands/trigger/options.ts +59 -0
  167. package/src/commands/trigger/remove.ts +45 -0
  168. package/src/commands/trigger/update/index.ts +14 -0
  169. package/src/commands/trigger/update/queue.ts +194 -0
  170. package/src/commands/trigger/update/subscription.ts +278 -0
  171. package/src/commands/trigger/update/timer.ts +193 -0
  172. package/src/commands/trigger/util.ts +410 -0
  173. package/src/components/AutomationPanel/AutomationPanel.stories.tsx +17 -17
  174. package/src/components/AutomationPanel/AutomationPanel.tsx +250 -94
  175. package/src/components/FunctionsPanel/FunctionsPanel.tsx +51 -32
  176. package/src/components/FunctionsRegistry/FunctionsRegistry.tsx +114 -0
  177. package/src/components/FunctionsRegistry/index.ts +8 -0
  178. package/src/components/TriggerEditor/FunctionInputEditor.tsx +42 -35
  179. package/src/components/TriggerEditor/SpecSelector.tsx +34 -22
  180. package/src/components/TriggerEditor/TriggerEditor.stories.tsx +128 -40
  181. package/src/components/TriggerEditor/TriggerEditor.tsx +109 -48
  182. package/src/components/index.ts +1 -2
  183. package/src/containers/AutomationSettings/AutomationSettings.tsx +31 -0
  184. package/src/containers/AutomationSettings/index.ts +5 -0
  185. package/src/containers/FunctionsContainer/FunctionsContainer.tsx +33 -0
  186. package/src/containers/FunctionsContainer/index.ts +5 -0
  187. package/src/containers/TriggerSettings/TriggerSettings.tsx +48 -0
  188. package/src/containers/TriggerSettings/index.ts +6 -0
  189. package/src/containers/index.ts +9 -0
  190. package/src/hooks/index.ts +9 -0
  191. package/src/hooks/useComputeRuntime.ts +30 -0
  192. package/src/hooks/useComputeRuntimeCallback.ts +32 -0
  193. package/src/hooks/useComputeRuntimeService.ts +64 -0
  194. package/src/hooks/useTriggerRuntimeControls.ts +70 -0
  195. package/src/index.ts +5 -3
  196. package/src/meta.ts +10 -8
  197. package/src/operations/create-trigger-from-template.ts +71 -0
  198. package/src/operations/definitions.ts +28 -0
  199. package/src/operations/index.ts +9 -0
  200. package/src/testing/test-functions.ts +13 -10
  201. package/src/translations.ts +44 -32
  202. package/src/types/capabilities.ts +47 -0
  203. package/src/types/events.ts +11 -0
  204. package/src/types/index.ts +7 -0
  205. package/src/{types.ts → types/schema.ts} +6 -8
  206. package/dist/lib/browser/AutomationContainer-OGNK3HD5.mjs +0 -38
  207. package/dist/lib/browser/AutomationContainer-OGNK3HD5.mjs.map +0 -7
  208. package/dist/lib/browser/AutomationPanel-PRIIAXD5.mjs +0 -11
  209. package/dist/lib/browser/FunctionsContainer-JY7V7PLF.mjs +0 -39
  210. package/dist/lib/browser/FunctionsContainer-JY7V7PLF.mjs.map +0 -7
  211. package/dist/lib/browser/FunctionsPanel-LY4IFKR7.mjs +0 -10
  212. package/dist/lib/browser/app-graph-builder-T34RV5UA.mjs +0 -80
  213. package/dist/lib/browser/app-graph-builder-T34RV5UA.mjs.map +0 -7
  214. package/dist/lib/browser/chunk-4E2KPMLB.mjs +0 -39
  215. package/dist/lib/browser/chunk-4E2KPMLB.mjs.map +0 -7
  216. package/dist/lib/browser/chunk-C5VOC5EE.mjs +0 -147
  217. package/dist/lib/browser/chunk-C5VOC5EE.mjs.map +0 -7
  218. package/dist/lib/browser/chunk-IHAKPP5A.mjs +0 -15
  219. package/dist/lib/browser/chunk-IHAKPP5A.mjs.map +0 -7
  220. package/dist/lib/browser/chunk-N5VLW7UZ.mjs +0 -230
  221. package/dist/lib/browser/chunk-N5VLW7UZ.mjs.map +0 -7
  222. package/dist/lib/browser/chunk-RHSCK7AU.mjs +0 -94
  223. package/dist/lib/browser/chunk-RHSCK7AU.mjs.map +0 -7
  224. package/dist/lib/browser/chunk-VQWJ5UYA.mjs +0 -14
  225. package/dist/lib/browser/chunk-VQWJ5UYA.mjs.map +0 -7
  226. package/dist/lib/browser/intent-resolver-AX46HSU7.mjs +0 -76
  227. package/dist/lib/browser/intent-resolver-AX46HSU7.mjs.map +0 -7
  228. package/dist/lib/browser/react-surface-Z7A272CA.mjs +0 -64
  229. package/dist/lib/browser/react-surface-Z7A272CA.mjs.map +0 -7
  230. package/dist/lib/browser/types.mjs +0 -8
  231. package/dist/lib/node/AutomationContainer-B7PSJFIS.cjs +0 -66
  232. package/dist/lib/node/AutomationContainer-B7PSJFIS.cjs.map +0 -7
  233. package/dist/lib/node/AutomationPanel-XYLZU4MI.cjs +0 -32
  234. package/dist/lib/node/AutomationPanel-XYLZU4MI.cjs.map +0 -7
  235. package/dist/lib/node/FunctionsContainer-4FGOQW5X.cjs +0 -67
  236. package/dist/lib/node/FunctionsContainer-4FGOQW5X.cjs.map +0 -7
  237. package/dist/lib/node/FunctionsPanel-EWWAZK3W.cjs +0 -31
  238. package/dist/lib/node/FunctionsPanel-EWWAZK3W.cjs.map +0 -7
  239. package/dist/lib/node/app-graph-builder-5XRIIV7E.cjs +0 -96
  240. package/dist/lib/node/app-graph-builder-5XRIIV7E.cjs.map +0 -7
  241. package/dist/lib/node/chunk-3EF7MLFX.cjs +0 -38
  242. package/dist/lib/node/chunk-3EF7MLFX.cjs.map +0 -7
  243. package/dist/lib/node/chunk-6X3XJ4VI.cjs +0 -122
  244. package/dist/lib/node/chunk-6X3XJ4VI.cjs.map +0 -7
  245. package/dist/lib/node/chunk-GIIVTK4O.cjs +0 -58
  246. package/dist/lib/node/chunk-GIIVTK4O.cjs.map +0 -7
  247. package/dist/lib/node/chunk-IXUCZ3YY.cjs +0 -173
  248. package/dist/lib/node/chunk-IXUCZ3YY.cjs.map +0 -7
  249. package/dist/lib/node/chunk-LQ6XK4N5.cjs +0 -253
  250. package/dist/lib/node/chunk-LQ6XK4N5.cjs.map +0 -7
  251. package/dist/lib/node/chunk-TH4XDKAY.cjs +0 -49
  252. package/dist/lib/node/chunk-TH4XDKAY.cjs.map +0 -7
  253. package/dist/lib/node/index.cjs +0 -124
  254. package/dist/lib/node/index.cjs.map +0 -7
  255. package/dist/lib/node/intent-resolver-EAREQZFE.cjs +0 -92
  256. package/dist/lib/node/intent-resolver-EAREQZFE.cjs.map +0 -7
  257. package/dist/lib/node/meta.json +0 -1
  258. package/dist/lib/node/react-surface-OI6CDHEI.cjs +0 -87
  259. package/dist/lib/node/react-surface-OI6CDHEI.cjs.map +0 -7
  260. package/dist/lib/node/types.cjs +0 -30
  261. package/dist/lib/node/types.cjs.map +0 -7
  262. package/dist/lib/node-esm/AutomationContainer-ANCUYDDA.mjs +0 -39
  263. package/dist/lib/node-esm/AutomationContainer-ANCUYDDA.mjs.map +0 -7
  264. package/dist/lib/node-esm/AutomationPanel-Y3ODAHH7.mjs +0 -12
  265. package/dist/lib/node-esm/FunctionsContainer-25M5VT3J.mjs +0 -40
  266. package/dist/lib/node-esm/FunctionsContainer-25M5VT3J.mjs.map +0 -7
  267. package/dist/lib/node-esm/FunctionsPanel-HVGF5AJP.mjs +0 -11
  268. package/dist/lib/node-esm/FunctionsPanel-HVGF5AJP.mjs.map +0 -7
  269. package/dist/lib/node-esm/app-graph-builder-DYWAKQM3.mjs +0 -81
  270. package/dist/lib/node-esm/app-graph-builder-DYWAKQM3.mjs.map +0 -7
  271. package/dist/lib/node-esm/chunk-2IH4VB3R.mjs +0 -95
  272. package/dist/lib/node-esm/chunk-2IH4VB3R.mjs.map +0 -7
  273. package/dist/lib/node-esm/chunk-2T2OZC3A.mjs +0 -148
  274. package/dist/lib/node-esm/chunk-2T2OZC3A.mjs.map +0 -7
  275. package/dist/lib/node-esm/chunk-6JOJ2NN4.mjs +0 -40
  276. package/dist/lib/node-esm/chunk-6JOJ2NN4.mjs.map +0 -7
  277. package/dist/lib/node-esm/chunk-HCCLRNMJ.mjs +0 -17
  278. package/dist/lib/node-esm/chunk-HCCLRNMJ.mjs.map +0 -7
  279. package/dist/lib/node-esm/chunk-UFHDB2OA.mjs +0 -231
  280. package/dist/lib/node-esm/chunk-UFHDB2OA.mjs.map +0 -7
  281. package/dist/lib/node-esm/chunk-WJHKFPX2.mjs +0 -16
  282. package/dist/lib/node-esm/chunk-WJHKFPX2.mjs.map +0 -7
  283. package/dist/lib/node-esm/intent-resolver-WXHFNJJI.mjs +0 -77
  284. package/dist/lib/node-esm/intent-resolver-WXHFNJJI.mjs.map +0 -7
  285. package/dist/lib/node-esm/react-surface-TP6IYSR4.mjs +0 -65
  286. package/dist/lib/node-esm/react-surface-TP6IYSR4.mjs.map +0 -7
  287. package/dist/lib/node-esm/types.mjs +0 -9
  288. package/dist/lib/node-esm/types.mjs.map +0 -7
  289. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  290. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  291. package/dist/types/src/components/AutomationContainer.d.ts +0 -5
  292. package/dist/types/src/components/AutomationContainer.d.ts.map +0 -1
  293. package/dist/types/src/components/FunctionsContainer.d.ts +0 -7
  294. package/dist/types/src/components/FunctionsContainer.d.ts.map +0 -1
  295. package/dist/types/src/types.d.ts.map +0 -1
  296. package/src/capabilities/intent-resolver.ts +0 -72
  297. package/src/components/AutomationContainer.tsx +0 -30
  298. package/src/components/FunctionsContainer.tsx +0 -31
  299. /package/dist/lib/browser/{AutomationPanel-PRIIAXD5.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
  300. /package/dist/lib/browser/{FunctionsPanel-LY4IFKR7.mjs.map → types/index.mjs.map} +0 -0
  301. /package/dist/lib/{browser/types.mjs.map → node-esm/chunk-HSLMI22Q.mjs.map} +0 -0
  302. /package/dist/lib/node-esm/{AutomationPanel-Y3ODAHH7.mjs.map → types/index.mjs.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/hooks/useComputeRuntimeCallback.ts", "../../../../src/hooks/useComputeRuntime.ts", "../../../../src/hooks/useTriggerRuntimeControls.ts", "../../../../src/hooks/useComputeRuntimeService.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport { type DependencyList, useCallback } from 'react';\n\nimport { type Key } from '@dxos/echo';\n\nimport { AutomationCapabilities } from '#types';\n\nimport { useComputeRuntime } from './useComputeRuntime';\n\n/**\n * Create an effectful function that has access to compute services\n */\n// TODO(burdon): Factor out (figure out cross-plugin capabilities dependencies).\nexport const useComputeRuntimeCallback = <T>(\n id: Key.SpaceId | undefined,\n fn: () => Effect.Effect<T, any, AutomationCapabilities.ComputeServices>,\n deps?: DependencyList,\n): (() => Promise<T>) => {\n const runtime = useComputeRuntime(id);\n\n return useCallback(() => {\n if (!runtime) {\n throw new TypeError('Space not provided to useComputeRuntimeCallback');\n }\n\n return runtime.runPromise(fn());\n }, [runtime, ...(deps ?? [])]);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useEffect } from 'react';\n\nimport { useCapabilities } from '@dxos/app-framework/ui';\nimport { SpaceId } from '@dxos/keys';\nimport { log } from '@dxos/log';\n\nimport { AutomationCapabilities } from '../types';\n\n/**\n * Resolves the compute runtime for a space.\n * Returns undefined if the AutomationPlugin is not loaded or spaceId is not provided.\n */\nexport const useComputeRuntime = (id: SpaceId | undefined): AutomationCapabilities.ComputeRuntime | undefined => {\n const [computeRuntime] = useCapabilities(AutomationCapabilities.ComputeRuntime);\n // One log per change of (capability availability, spaceId) so we can see when\n // the React subscription actually observes the contributed runtime.\n useEffect(() => {\n log('useComputeRuntime', { hasCapability: !!computeRuntime, spaceId: id });\n }, [!!computeRuntime, id]);\n\n if (!computeRuntime || id === undefined) {\n return undefined;\n }\n\n return computeRuntime.getRuntime(id);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Atom, useAtomValue } from '@effect-atom/atom-react';\nimport type * as Context from 'effect/Context';\nimport * as Effect from 'effect/Effect';\nimport { useEffect, useState } from 'react';\n\nimport { Trigger } from '@dxos/compute';\nimport { type Database, Filter, Query } from '@dxos/echo';\nimport { TriggerDispatcher, type TriggerDispatcherState } from '@dxos/functions-runtime';\nimport { useQuery } from '@dxos/react-client/echo';\n\nimport { useComputeRuntimeCallback } from './useComputeRuntimeCallback';\n\ninterface TriggerRuntimeControls {\n triggers: Trigger.Trigger[];\n\n state: TriggerDispatcherState | undefined;\n\n start: () => void;\n stop: () => void;\n}\n\nexport const useTriggerRuntimeControls = (db: Database.Database | undefined): TriggerRuntimeControls => {\n const triggers = useQuery(\n db,\n Query.select(Filter.type(Trigger.Trigger)).debugLabel('plugin-automation.useTriggerRuntimeControls'),\n );\n\n const [dispatcher, setDispatcher] = useState<Context.Tag.Service<TriggerDispatcher> | undefined>(undefined);\n\n const init = useComputeRuntimeCallback(\n db?.spaceId,\n Effect.fnUntraced(function* () {\n const dispatcher = yield* TriggerDispatcher;\n setDispatcher(dispatcher);\n }),\n );\n\n useEffect(() => {\n void init();\n }, []);\n\n const state = useAtomValue(dispatcher?.state ?? Atom.make(undefined));\n\n const start = useComputeRuntimeCallback(\n db?.spaceId,\n Effect.fnUntraced(function* () {\n const dispatcher = yield* TriggerDispatcher;\n yield* dispatcher.start();\n }),\n );\n\n const stop = useComputeRuntimeCallback(\n db?.spaceId,\n Effect.fnUntraced(function* () {\n const dispatcher = yield* TriggerDispatcher;\n yield* dispatcher.stop();\n }),\n );\n\n return {\n triggers,\n state,\n start: () => void start(),\n stop: () => void stop(),\n };\n};\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Context from 'effect/Context';\nimport * as Effect from 'effect/Effect';\nimport * as Exit from 'effect/Exit';\nimport { useEffect, useState } from 'react';\n\nimport { SpaceId } from '@dxos/keys';\nimport { log } from '@dxos/log';\n\nimport { useComputeRuntime } from './useComputeRuntime';\n\ntype ResolvedService<T extends Context.Tag<any, any>> = Context.Tag.Service<T> | undefined;\n\n/**\n * Resolves a service from the compute runtime for a given space.\n *\n * NOTE: Previously implemented via `use(useMemo(() => runtime.runPromiseExit(...)))`.\n * React's `use()` is weird and unreliable in production builds — the Suspense\n * boundary can stay pending indefinitely without the promise ever resolving\n * from React's perspective (the runtime is built lazily on first invocation\n * and one of its `acquire` steps can block). This `useState` + `useEffect`\n * flavour avoids suspension entirely: the hook returns `undefined` while the\n * service is being acquired or if acquisition fails / times out.\n */\nexport const useComputeRuntimeService = <T extends Context.Tag<any, any>>(\n tag: T,\n spaceId?: SpaceId,\n): ResolvedService<T> => {\n const runtime = useComputeRuntime(spaceId);\n const [service, setService] = useState<ResolvedService<T>>(undefined);\n\n useEffect(() => {\n setService(undefined);\n if (!runtime) {\n return;\n }\n let cancelled = false;\n void (async () => {\n try {\n const exit = await runtime.runPromiseExit(tag.pipe(Effect.timeout('30 seconds')));\n if (cancelled) {\n return;\n }\n if (Exit.isSuccess(exit)) {\n setService(exit.value);\n } else {\n log.warn('useComputeRuntimeService: failed to acquire service', { cause: exit.cause });\n }\n } catch (error) {\n if (!cancelled) {\n log.catch(error);\n }\n }\n })();\n return () => {\n cancelled = true;\n };\n }, [runtime, tag]);\n\n return service;\n};\n"],
5
+ "mappings": ";;;;;;;AAKA,SAA8BA,mBAAmB;;;ACDjD,SAASC,iBAAiB;AAE1B,SAASC,uBAAuB;AAEhC,SAASC,WAAW;AAIpB,IAAA,eAAA;AAME,IAAA,oBAAA,CAAA,OAAA;AACA,QAAA,CAAA,cAAA,IAAA,gBAAA,uBAAA,cAAoE;YAEvCC,MAAAA;QAAiCC,qBAASC;MAAG,eAAA,CAAA,CAAA;MACvE,SAAA;IAAC,GAAEC,EAAAA,YAAAA,YAAAA,GAAAA,cAAAA,GAAAA,IAAAA,GAAAA,OAAAA,CAAAA;;IAAmB,CAAA,CAAA;IAErB;;AAEJ,MAAA,CAAA,kBAAA,OAAA,QAAA;AAEA,WAAOA;EACP;;;;;ADZK,IAAMC,4BAA4B,CACvCC,IACAC,IACAC,SAAAA;AAEA,QAAMC,UAAUC,kBAAkBJ,EAAAA;AAElC,SAAOK,YAAY,MAAA;AACjB,QAAI,CAACF,SAAS;AACZ,YAAM,IAAIG,UAAU,iDAAA;IACtB;AAEA,WAAOH,QAAQI,WAAWN,GAAAA,CAAAA;EAC5B,GAAG;IAACE;OAAaD,QAAQ,CAAA;GAAI;AAC/B;;;AE3BA,SAASM,MAAMC,oBAAoB;AAEnC,YAAYC,YAAY;AACxB,SAASC,aAAAA,YAAWC,gBAAgB;AAEpC,SAASC,eAAe;AACxB,SAAwBC,QAAQC,aAAa;AAC7C,SAASC,yBAAsD;AAC/D,SAASC,gBAAgB;AAalB,IAAMC,4BAA4B,CAACC,OAAAA;AACxC,QAAMC,WAAWC,SACfF,IACAG,MAAMC,OAAOC,OAAOC,KAAKC,QAAQA,OAAO,CAAA,EAAGC,WAAW,6CAAA,CAAA;AAGxD,QAAM,CAACC,YAAYC,aAAAA,IAAiBC,SAA6DC,MAAAA;AAEjG,QAAMC,OAAOC,0BACXd,IAAIe,SACGC,kBAAW,aAAA;AAChB,UAAMP,cAAa,OAAOQ;AAC1BP,kBAAcD,WAAAA;EAChB,CAAA,CAAA;AAGFS,EAAAA,WAAU,MAAA;AACR,SAAKL,KAAAA;EACP,GAAG,CAAA,CAAE;AAEL,QAAMM,QAAQC,aAAaX,YAAYU,SAASE,KAAKC,KAAKV,MAAAA,CAAAA;AAE1D,QAAMW,QAAQT,0BACZd,IAAIe,SACGC,kBAAW,aAAA;AAChB,UAAMP,cAAa,OAAOQ;AAC1B,WAAOR,YAAWc,MAAK;EACzB,CAAA,CAAA;AAGF,QAAMC,OAAOV,0BACXd,IAAIe,SACGC,kBAAW,aAAA;AAChB,UAAMP,cAAa,OAAOQ;AAC1B,WAAOR,YAAWe,KAAI;EACxB,CAAA,CAAA;AAGF,SAAO;IACLvB;IACAkB;IACAI,OAAO,MAAM,KAAKA,MAAAA;IAClBC,MAAM,MAAM,KAAKA,KAAAA;EACnB;AACF;;;AChEA,YAAYC,aAAY;AACxB,YAAYC,UAAU;AACtB,SAASC,aAAAA,YAAWC,YAAAA,iBAAgB;AAGpC,SAASC,OAAAA,YAAW;AAMpB,IAAAC,gBAAA;AAgBSC,IAAAA,2BAAoDC,CAAAA,KAAAA,YAAAA;AAE3DC,QAAAA,UAAU,kBAAA,OAAA;QACRC,CAAAA,SAAWF,UAAAA,IAAAA,UAAAA,MAAAA;aACNG,MAAAA;eACH,MAAA;AACF,QAAA,CAAA,SAAA;AACIC;IACJ;QACE,YAAI;sBACIC;UACN;cACE,OAAA,MAAA,QAAA,eAAA,IAAA,KAAA,gBAAA,YAAA,CAAA,CAAA;AACF,YAAA,WAAA;AACIC;;AAEJ,YAAO,eAAA,IAAA,GAAA;AACLC,qBAAS,KAAA,KAAA;;AAA2E,UAAAA,KAAA,KAAA,uDAAA;YACtF,OAAA,KAAA;UACA,GAAOC,EAAAA,YAAO,YAAA,GAAAV,eAAA,GAAA,IAAA,GAAA,OAAA,CAAA;QACd;eACES,OAAIE;AACN,YAAA,CAAA,WAAA;AACF,UAAAF,KAAA,MAAA,OAAA,QAAA,EAAA,YAAA,YAAA,GAAAT,eAAA,GAAA,IAAA,GAAA,OAAA,CAAA;QACF;MACA;;AAEA,WAAA,MAAA;AACC,kBAAA;IAACK;;IAAa;IAEjB;EACA,CAAA;;;",
6
+ "names": ["useCallback", "useEffect", "useCapabilities", "log", "hasCapability", "spaceId", "id", "computeRuntime", "useComputeRuntimeCallback", "id", "fn", "deps", "runtime", "useComputeRuntime", "useCallback", "TypeError", "runPromise", "Atom", "useAtomValue", "Effect", "useEffect", "useState", "Trigger", "Filter", "Query", "TriggerDispatcher", "useQuery", "useTriggerRuntimeControls", "db", "triggers", "useQuery", "Query", "select", "Filter", "type", "Trigger", "debugLabel", "dispatcher", "setDispatcher", "useState", "undefined", "init", "useComputeRuntimeCallback", "spaceId", "fnUntraced", "TriggerDispatcher", "useEffect", "state", "useAtomValue", "Atom", "make", "start", "stop", "Effect", "Exit", "useEffect", "useState", "log", "__dxlog_file", "service", "undefined", "useEffect", "setService", "runtime", "cancelled", "exit", "Exit", "log", "error", "catch"]
7
+ }
@@ -1,102 +1,29 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- AutomationContainer,
4
- AutomationPanel,
5
- FunctionsContainer,
6
- FunctionsPanel
7
- } from "./chunk-WJHKFPX2.mjs";
8
- import {
9
- TriggerEditor
10
- } from "./chunk-UFHDB2OA.mjs";
11
- import {
12
- AUTOMATION_PLUGIN,
13
- meta
14
- } from "./chunk-HCCLRNMJ.mjs";
15
-
16
- // packages/plugins/plugin-automation/src/AutomationPlugin.tsx
17
- import { Capabilities, contributes, defineModule, definePlugin, Events } from "@dxos/app-framework";
18
- import { FunctionType, FunctionTrigger } from "@dxos/functions";
19
- import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
2
+ import "./chunk-HSLMI22Q.mjs";
20
3
 
21
- // packages/plugins/plugin-automation/src/capabilities/index.ts
22
- import { lazy } from "@dxos/app-framework";
23
- var AppGraphBuilder = lazy(() => import("./app-graph-builder-DYWAKQM3.mjs"));
24
- var IntentResolver = lazy(() => import("./intent-resolver-WXHFNJJI.mjs"));
25
- var ReactSurface = lazy(() => import("./react-surface-TP6IYSR4.mjs"));
4
+ // src/index.ts
5
+ import { Plugin } from "@dxos/app-framework";
26
6
 
27
- // packages/plugins/plugin-automation/src/translations.ts
28
- var translations_default = [
29
- {
30
- "en-US": {
31
- [AUTOMATION_PLUGIN]: {
32
- "plugin name": "Automation",
33
- "automation panel label": "Automations",
34
- "script automation label": "Automation",
35
- "automation verbose label": "Manage automations",
36
- "automation description": "You can manage all the triggers which automate your space here.",
37
- "functions panel label": "Functions",
38
- "functions verbose label": "Manage deployed functions",
39
- "functions description": "You can manage all the functions deployed from your space on EDGE here.",
40
- "function copy id": "Copy Function ID",
41
- "no functions found": "No functions found",
42
- "go to function source button label": "Show function source",
43
- "trigger editor title": "Configure Trigger",
44
- "new trigger label": "Add Trigger",
45
- "trigger type timer": "Timer",
46
- "trigger type webhook": "Webhook",
47
- "trigger type websocket": "Websocket",
48
- "trigger type subscription": "Subscription",
49
- "trigger type email": "Email",
50
- "trigger type queue": "Queue",
51
- "trigger copy url": "Copy URL",
52
- "trigger copy email": "Copy Email",
53
- "trigger payload add": "Add",
54
- "trigger payload remove": "Remove",
55
- "trigger payload prop name placeholder": "New payload property name"
56
- }
57
- }
58
- }
59
- ];
7
+ // src/meta.ts
8
+ import { trim } from "@dxos/util";
9
+ var meta = {
10
+ id: "org.dxos.plugin.automation",
11
+ name: "Automation",
12
+ description: trim`
13
+ Workflow automation engine that triggers custom actions based on object events and conditions.
14
+ Create automated pipelines that respond to changes and streamline repetitive tasks.
15
+ `,
16
+ icon: "ph--atom--regular",
17
+ source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-automation",
18
+ tags: [
19
+ "system"
20
+ ]
21
+ };
60
22
 
61
- // packages/plugins/plugin-automation/src/AutomationPlugin.tsx
62
- var AutomationPlugin = () => definePlugin(meta, [
63
- defineModule({
64
- id: `${meta.id}/module/translations`,
65
- activatesOn: Events.SetupTranslations,
66
- activate: () => contributes(Capabilities.Translations, translations_default)
67
- }),
68
- defineModule({
69
- id: `${meta.id}/module/schema`,
70
- activatesOn: ClientEvents.SetupSchema,
71
- activate: () => contributes(ClientCapabilities.Schema, [
72
- FunctionType,
73
- FunctionTrigger
74
- ])
75
- }),
76
- defineModule({
77
- id: `${meta.id}/module/app-graph-builder`,
78
- activatesOn: Events.SetupAppGraph,
79
- activate: AppGraphBuilder
80
- }),
81
- defineModule({
82
- id: `${meta.id}/module/intent-resolver`,
83
- activatesOn: Events.SetupIntentResolver,
84
- activate: IntentResolver
85
- }),
86
- defineModule({
87
- id: `${meta.id}/module/react-surface`,
88
- activatesOn: Events.SetupReactSurface,
89
- activate: ReactSurface
90
- })
91
- ]);
23
+ // src/index.ts
24
+ var AutomationPlugin = Plugin.lazy(meta, () => import("#plugin"));
92
25
  export {
93
- AUTOMATION_PLUGIN,
94
- AutomationContainer,
95
- AutomationPanel,
96
26
  AutomationPlugin,
97
- FunctionsContainer,
98
- FunctionsPanel,
99
- TriggerEditor,
100
27
  meta
101
28
  };
102
29
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/AutomationPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { FunctionType, FunctionTrigger } from '@dxos/functions';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\n\nimport { AppGraphBuilder, IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\n\nexport const AutomationPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [FunctionType, FunctionTrigger]),\n }),\n defineModule({\n id: `${meta.id}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: AppGraphBuilder,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = lazy(() => import('./app-graph-builder'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { AUTOMATION_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [AUTOMATION_PLUGIN]: {\n 'plugin name': 'Automation',\n 'automation panel label': 'Automations',\n 'script automation label': 'Automation',\n 'automation verbose label': 'Manage automations',\n 'automation description': 'You can manage all the triggers which automate your space here.',\n\n 'functions panel label': 'Functions',\n 'functions verbose label': 'Manage deployed functions',\n 'functions description': 'You can manage all the functions deployed from your space on EDGE here.',\n 'function copy id': 'Copy Function ID',\n 'no functions found': 'No functions found',\n 'go to function source button label': 'Show function source',\n\n 'trigger editor title': 'Configure Trigger',\n 'new trigger label': 'Add Trigger',\n 'trigger type timer': 'Timer',\n 'trigger type webhook': 'Webhook',\n 'trigger type websocket': 'Websocket',\n 'trigger type subscription': 'Subscription',\n 'trigger type email': 'Email',\n 'trigger type queue': 'Queue',\n\n 'trigger copy url': 'Copy URL',\n 'trigger copy email': 'Copy Email',\n\n 'trigger payload add': 'Add',\n 'trigger payload remove': 'Remove',\n 'trigger payload prop name placeholder': 'New payload property name',\n },\n },\n },\n];\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAc;AAC9E,SAASC,cAAcC,uBAAuB;AAC9C,SAASC,oBAAoBC,oBAAoB;;;ACFjD,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC1C,IAAMC,iBAAiBD,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACF9C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACG,iBAAAA,GAAoB;QACnB,eAAe;QACf,0BAA0B;QAC1B,2BAA2B;QAC3B,4BAA4B;QAC5B,0BAA0B;QAE1B,yBAAyB;QACzB,2BAA2B;QAC3B,yBAAyB;QACzB,oBAAoB;QACpB,sBAAsB;QACtB,sCAAsC;QAEtC,wBAAwB;QACxB,qBAAqB;QACrB,sBAAsB;QACtB,wBAAwB;QACxB,0BAA0B;QAC1B,6BAA6B;QAC7B,sBAAsB;QACtB,sBAAsB;QAEtB,oBAAoB;QACpB,sBAAsB;QAEtB,uBAAuB;QACvB,0BAA0B;QAC1B,yCAAyC;MAC3C;IACF;EACF;;;;AF5BK,IAAMC,mBAAmB,MAC9BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaQ,aAAaC;IAC1BN,UAAU,MAAMC,YAAYM,mBAAmBC,QAAQ;MAACC;MAAcC;KAAgB;EACxF,CAAA;EACAf,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOa;IACpBX,UAAUY;EACZ,CAAA;EACAjB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOe;IACpBb,UAAUc;EACZ,CAAA;EACAnB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOiB;IACpBf,UAAUgB;EACZ,CAAA;CACD;",
6
- "names": ["Capabilities", "contributes", "defineModule", "definePlugin", "Events", "FunctionType", "FunctionTrigger", "ClientCapabilities", "ClientEvents", "lazy", "AppGraphBuilder", "lazy", "IntentResolver", "ReactSurface", "AUTOMATION_PLUGIN", "AutomationPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "ClientEvents", "SetupSchema", "ClientCapabilities", "Schema", "FunctionType", "FunctionTrigger", "SetupAppGraph", "AppGraphBuilder", "SetupIntentResolver", "IntentResolver", "SetupReactSurface", "ReactSurface"]
3
+ "sources": ["../../../src/index.ts", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const AutomationPlugin = Plugin.lazy(meta, () => import('#plugin'));\nexport { meta } from './meta';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.automation',\n name: 'Automation',\n description: trim`\n Workflow automation engine that triggers custom actions based on object events and conditions.\n Create automated pipelines that respond to changes and streamline repetitive tasks.\n `,\n icon: 'ph--atom--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-automation',\n tags: ['system'],\n};\n"],
5
+ "mappings": ";;;;AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;;;ADTO,IAAMC,mBAAmBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
6
+ "names": ["Plugin", "trim", "meta", "id", "name", "description", "icon", "source", "tags", "AutomationPlugin", "Plugin", "lazy", "meta"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-automation/src/components/TriggerEditor/FunctionInputEditor.tsx":{"bytes":8600,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-automation/src/meta.ts":{"bytes":1695,"imports":[],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/SpecSelector.tsx":{"bytes":7368,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytes":12342,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/FunctionInputEditor.tsx","kind":"import-statement","original":"./FunctionInputEditor"},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/SpecSelector.tsx","kind":"import-statement","original":"./SpecSelector"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytes":516,"imports":[{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx","kind":"import-statement","original":"./TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytes":21295,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"../TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytes":813,"imports":[{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx":{"bytes":3623,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"import-statement","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx":{"bytes":12151,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts":{"bytes":796,"imports":[{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx","kind":"import-statement","original":"./FunctionsPanel"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx","kind":"import-statement","original":"./FunctionsPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx":{"bytes":3706,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","kind":"import-statement","original":"./FunctionsPanel"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/index.ts":{"bytes":1700,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"./TriggerEditor"},{"path":"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx","kind":"dynamic-import","original":"./AutomationContainer"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"dynamic-import","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx","kind":"dynamic-import","original":"./FunctionsContainer"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","kind":"dynamic-import","original":"./FunctionsPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytes":11388,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/types.ts":{"bytes":4294,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts":{"bytes":9282,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytes":7286,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytes":1317,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-automation/src/translations.ts":{"bytes":4585,"imports":[{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytes":5376,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-automation/src/index.ts":{"bytes":672,"imports":[{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/AutomationPlugin.tsx","kind":"import-statement","original":"./AutomationPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-automation/dist/lib/node-esm/react-surface-TP6IYSR4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3605},"packages/plugins/plugin-automation/dist/lib/node-esm/react-surface-TP6IYSR4.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-WJHKFPX2.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-UFHDB2OA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytesInOutput":1702}},"bytes":2129},"packages/plugins/plugin-automation/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5189},"packages/plugins/plugin-automation/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-WJHKFPX2.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-UFHDB2OA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/app-graph-builder-DYWAKQM3.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/intent-resolver-WXHFNJJI.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/react-surface-TP6IYSR4.mjs","kind":"dynamic-import"}],"exports":["AUTOMATION_PLUGIN","AutomationContainer","AutomationPanel","AutomationPlugin","FunctionsContainer","FunctionsPanel","TriggerEditor","meta"],"entryPoint":"packages/plugins/plugin-automation/src/index.ts","inputs":{"packages/plugins/plugin-automation/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytesInOutput":1109},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytesInOutput":268},"packages/plugins/plugin-automation/src/translations.ts":{"bytesInOutput":1380}},"bytes":3540},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-WJHKFPX2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":838},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-WJHKFPX2.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationContainer-ANCUYDDA.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationPanel-Y3ODAHH7.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsContainer-25M5VT3J.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsPanel-HVGF5AJP.mjs","kind":"dynamic-import"}],"exports":["AutomationContainer","AutomationPanel","FunctionsContainer","FunctionsPanel"],"inputs":{"packages/plugins/plugin-automation/src/components/index.ts":{"bytesInOutput":346}},"bytes":639},"packages/plugins/plugin-automation/dist/lib/node-esm/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/node-esm/types.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-6JOJ2NN4.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"}],"exports":["AutomationAction"],"entryPoint":"packages/plugins/plugin-automation/src/types.ts","inputs":{},"bytes":248},"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationPanel-Y3ODAHH7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationPanel-Y3ODAHH7.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-2T2OZC3A.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-UFHDB2OA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"}],"exports":["AutomationPanel","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","inputs":{},"bytes":361},"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationContainer-ANCUYDDA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1783},"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationContainer-ANCUYDDA.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-2T2OZC3A.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-UFHDB2OA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["AutomationContainer","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx","inputs":{"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx":{"bytesInOutput":968}},"bytes":1421},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-2T2OZC3A.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11703},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-2T2OZC3A.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-UFHDB2OA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["AutomationPanel","AutomationPanel_default"],"inputs":{"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytesInOutput":5288},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytesInOutput":47}},"bytes":5814},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-UFHDB2OA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":14380},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-UFHDB2OA.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"exports":["TriggerEditor"],"inputs":{"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytesInOutput":2929},"packages/plugins/plugin-automation/src/components/TriggerEditor/FunctionInputEditor.tsx":{"bytesInOutput":2203},"packages/plugins/plugin-automation/src/components/TriggerEditor/SpecSelector.tsx":{"bytesInOutput":1877},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytesInOutput":0}},"bytes":7583},"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsPanel-HVGF5AJP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsPanel-HVGF5AJP.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-2IH4VB3R.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"}],"exports":["FunctionsPanel","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","inputs":{},"bytes":325},"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsContainer-25M5VT3J.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1793},"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsContainer-25M5VT3J.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-2IH4VB3R.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["FunctionsContainer","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx","inputs":{"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx":{"bytesInOutput":980}},"bytes":1397},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-2IH4VB3R.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6640},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-2IH4VB3R.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["FunctionsPanel","FunctionsPanel_default"],"inputs":{"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx":{"bytesInOutput":3203},"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts":{"bytesInOutput":45}},"bytes":3666},"packages/plugins/plugin-automation/dist/lib/node-esm/app-graph-builder-DYWAKQM3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5344},"packages/plugins/plugin-automation/dist/lib/node-esm/app-graph-builder-DYWAKQM3.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytesInOutput":2525}},"bytes":2848},"packages/plugins/plugin-automation/dist/lib/node-esm/intent-resolver-WXHFNJJI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4510},"packages/plugins/plugin-automation/dist/lib/node-esm/intent-resolver-WXHFNJJI.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-6JOJ2NN4.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts":{"bytesInOutput":2035}},"bytes":2395},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-6JOJ2NN4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2185},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-6JOJ2NN4.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["AutomationAction"],"inputs":{"packages/plugins/plugin-automation/src/types.ts":{"bytesInOutput":1025}},"bytes":1305},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":816},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-HCCLRNMJ.mjs":{"imports":[],"exports":["AUTOMATION_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytesInOutput":382}},"bytes":610}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":1804,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":982,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/types/capabilities.ts":{"bytes":3054,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/events.ts":{"bytes":1200,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/schema.ts":{"bytes":3948,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":556,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/events.ts","kind":"import-statement","original":"./events"},{"path":"src/types/schema.ts","kind":"import-statement","original":"./schema"}],"format":"esm"},"src/hooks/useComputeRuntime.ts":{"bytes":3478,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/hooks/useComputeRuntimeCallback.ts":{"bytes":2640,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"}],"format":"esm"},"src/hooks/useTriggerRuntimeControls.ts":{"bytes":5964,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions-runtime","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntimeCallback.ts","kind":"import-statement","original":"./useComputeRuntimeCallback"}],"format":"esm"},"src/hooks/useComputeRuntimeService.ts":{"bytes":6499,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Exit","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"}],"format":"esm"},"src/hooks/index.ts":{"bytes":884,"imports":[{"path":"src/hooks/useComputeRuntimeCallback.ts","kind":"import-statement","original":"./useComputeRuntimeCallback"},{"path":"src/hooks/useTriggerRuntimeControls.ts","kind":"import-statement","original":"./useTriggerRuntimeControls"},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"},{"path":"src/hooks/useComputeRuntimeService.ts","kind":"import-statement","original":"./useComputeRuntimeService"}],"format":"esm"},"src/translations.ts":{"bytes":6070,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/operations/definitions.ts":{"bytes":3553,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/create-trigger-from-template.ts":{"bytes":8359,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/index.ts":{"bytes":1108,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/create-trigger-from-template.ts","kind":"dynamic-import","original":"./create-trigger-from-template"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1281},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["AutomationPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":113},"src/meta.ts":{"bytesInOutput":465}},"bytes":825},"dist/lib/node-esm/hooks/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9298},"dist/lib/node-esm/hooks/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-NWQMBY32.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions-runtime","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Exit","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["useComputeRuntime","useComputeRuntimeCallback","useComputeRuntimeService","useTriggerRuntimeControls"],"entryPoint":"src/hooks/index.ts","inputs":{"src/hooks/useComputeRuntimeCallback.ts":{"bytesInOutput":347},"src/hooks/useComputeRuntime.ts":{"bytesInOutput":675},"src/hooks/index.ts":{"bytesInOutput":0},"src/hooks/useTriggerRuntimeControls.ts":{"bytesInOutput":1342},"src/hooks/useComputeRuntimeService.ts":{"bytesInOutput":1310}},"bytes":4223},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2776},"dist/lib/node-esm/translations.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1933}},"bytes":2149},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-NWQMBY32.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["AutomationAction","AutomationCapabilities","AutomationEvents","TriggerTemplate"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":380},"dist/lib/node-esm/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":545},"dist/lib/node-esm/operations/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HHIHREME.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-NWQMBY32.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs","kind":"dynamic-import"}],"exports":["AutomationOperation","AutomationOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":177}},"bytes":549},"dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4488},"dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HHIHREME.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-NWQMBY32.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/create-trigger-from-template.ts","inputs":{"src/operations/create-trigger-from-template.ts":{"bytesInOutput":1815}},"bytes":2217},"dist/lib/node-esm/chunk-HHIHREME.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1821},"dist/lib/node-esm/chunk-HHIHREME.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-NWQMBY32.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["CreateTriggerFromTemplate","definitions_exports"],"inputs":{"src/operations/definitions.ts":{"bytesInOutput":903}},"bytes":1246},"dist/lib/node-esm/chunk-NWQMBY32.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4394},"dist/lib/node-esm/chunk-NWQMBY32.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["AutomationAction","AutomationCapabilities","AutomationEvents","TriggerTemplate"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":307},"src/types/index.ts":{"bytesInOutput":0},"src/types/events.ts":{"bytesInOutput":303},"src/types/schema.ts":{"bytesInOutput":998}},"bytes":1919},"dist/lib/node-esm/chunk-HSLMI22Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-HSLMI22Q.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":327}}}
@@ -0,0 +1,15 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ definitions_exports
4
+ } from "../chunk-HHIHREME.mjs";
5
+ import "../chunk-NWQMBY32.mjs";
6
+ import "../chunk-HSLMI22Q.mjs";
7
+
8
+ // src/operations/index.ts
9
+ import { OperationHandlerSet } from "@dxos/compute";
10
+ var AutomationOperationHandlerSet = OperationHandlerSet.lazy(() => import("../create-trigger-from-template-FUQ3LUIF.mjs"));
11
+ export {
12
+ definitions_exports as AutomationOperation,
13
+ AutomationOperationHandlerSet
14
+ };
15
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/operations/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/compute';\n\nexport * as AutomationOperation from './definitions';\n\nexport const AutomationOperationHandlerSet = OperationHandlerSet.lazy(() => import('./create-trigger-from-template'));\n"],
5
+ "mappings": ";;;;;;;;AAIA,SAASA,2BAA2B;AAI7B,IAAMC,gCAAgCD,oBAAoBE,KAAK,MAAM,OAAO,8CAAA,CAAA;",
6
+ "names": ["OperationHandlerSet", "AutomationOperationHandlerSet", "lazy"]
7
+ }
@@ -0,0 +1,48 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import "./chunk-HSLMI22Q.mjs";
3
+
4
+ // src/translations.ts
5
+ import { meta } from "#meta";
6
+ var translations = [
7
+ {
8
+ "en-US": {
9
+ [meta.id]: {
10
+ "plugin.name": "Automation",
11
+ "automation-panel.label": "Automations",
12
+ "script-automation.label": "Automation",
13
+ "automation-verbose.label": "Manage automations",
14
+ "automation.description": "Triggers that automate this space.",
15
+ "runtime.label": "Trigger runtime location",
16
+ "runtime.description": "Determines where the triggers in this space will execute.",
17
+ "runtime.disabled.label": "Triggers disabled",
18
+ "runtime.local.label": "Local",
19
+ "runtime.edge.label": "EDGE (experimental)",
20
+ "functions-panel.label": "Functions",
21
+ "functions-verbose.label": "Manage deployed functions",
22
+ "functions-registry-verbose.label": "Functions registry",
23
+ "functions-registry.description": "Import functions from the registry",
24
+ "functions.description": "Functions deployed from this space on EDGE.",
25
+ "show-source-button.label": "Show source",
26
+ "delete-function-button.label": "Delete function",
27
+ "function-parameters.label": "Function parameters",
28
+ "trigger-editor.title": "Configure Trigger",
29
+ "trigger-editor.description": "Triggers are used to run functions at specific times or when specific events occur.",
30
+ "new-trigger.label": "Add Trigger",
31
+ "trigger-type.timer.label": "Timer",
32
+ "trigger-type.webhook.label": "Webhook",
33
+ "trigger-type.websocket.label": "Websocket",
34
+ "trigger-type.subscription.label": "Subscription",
35
+ "trigger-type.email.label": "Email",
36
+ "trigger-type.queue.label": "Feed",
37
+ "trigger-payload-prop-name.placeholder": "New payload property name",
38
+ "import-function-button.label": "Loading...",
39
+ "update-function-button.label": "Update",
40
+ "loading-functions.message": "Loading functions..."
41
+ }
42
+ }
43
+ }
44
+ ];
45
+ export {
46
+ translations
47
+ };
48
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Automation',\n 'automation-panel.label': 'Automations',\n 'script-automation.label': 'Automation',\n 'automation-verbose.label': 'Manage automations',\n 'automation.description': 'Triggers that automate this space.',\n\n 'runtime.label': 'Trigger runtime location',\n 'runtime.description': 'Determines where the triggers in this space will execute.',\n 'runtime.disabled.label': 'Triggers disabled',\n 'runtime.local.label': 'Local',\n 'runtime.edge.label': 'EDGE (experimental)',\n\n 'functions-panel.label': 'Functions',\n 'functions-verbose.label': 'Manage deployed functions',\n 'functions-registry-verbose.label': 'Functions registry',\n 'functions-registry.description': 'Import functions from the registry',\n 'functions.description': 'Functions deployed from this space on EDGE.',\n 'show-source-button.label': 'Show source',\n 'delete-function-button.label': 'Delete function',\n\n 'function-parameters.label': 'Function parameters',\n\n 'trigger-editor.title': 'Configure Trigger',\n 'trigger-editor.description':\n 'Triggers are used to run functions at specific times or when specific events occur.',\n 'new-trigger.label': 'Add Trigger',\n\n 'trigger-type.timer.label': 'Timer',\n 'trigger-type.webhook.label': 'Webhook',\n 'trigger-type.websocket.label': 'Websocket',\n 'trigger-type.subscription.label': 'Subscription',\n 'trigger-type.email.label': 'Email',\n 'trigger-type.queue.label': 'Feed',\n\n 'trigger-payload-prop-name.placeholder': 'New payload property name',\n 'import-function-button.label': 'Loading...',\n 'update-function-button.label': 'Update',\n 'loading-functions.message': 'Loading functions...',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;;AAMA,SAASA,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,KAAKE,EAAE,GAAG;QACT,eAAe;QACf,0BAA0B;QAC1B,2BAA2B;QAC3B,4BAA4B;QAC5B,0BAA0B;QAE1B,iBAAiB;QACjB,uBAAuB;QACvB,0BAA0B;QAC1B,uBAAuB;QACvB,sBAAsB;QAEtB,yBAAyB;QACzB,2BAA2B;QAC3B,oCAAoC;QACpC,kCAAkC;QAClC,yBAAyB;QACzB,4BAA4B;QAC5B,gCAAgC;QAEhC,6BAA6B;QAE7B,wBAAwB;QACxB,8BACE;QACF,qBAAqB;QAErB,4BAA4B;QAC5B,8BAA8B;QAC9B,gCAAgC;QAChC,mCAAmC;QACnC,4BAA4B;QAC5B,4BAA4B;QAE5B,yCAAyC;QACzC,gCAAgC;QAChC,gCAAgC;QAChC,6BAA6B;MAC/B;IACF;EACF;;",
6
+ "names": ["meta", "translations", "id"]
7
+ }
@@ -0,0 +1,15 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ AutomationAction,
4
+ AutomationCapabilities,
5
+ AutomationEvents,
6
+ TriggerTemplate
7
+ } from "../chunk-NWQMBY32.mjs";
8
+ import "../chunk-HSLMI22Q.mjs";
9
+ export {
10
+ AutomationAction,
11
+ AutomationCapabilities,
12
+ AutomationEvents,
13
+ TriggerTemplate
14
+ };
15
+ //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,4 @@
1
- export declare const AutomationPlugin: () => import("@dxos/app-framework").Plugin;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const AutomationPlugin: Plugin.PluginFactory<void>;
3
+ export default AutomationPlugin;
2
4
  //# sourceMappingURL=AutomationPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutomationPlugin.d.ts","sourceRoot":"","sources":["../../../src/AutomationPlugin.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB,4CA2BzB,CAAC"}
1
+ {"version":3,"file":"AutomationPlugin.d.ts","sourceRoot":"","sources":["../../../src/AutomationPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAU7C,eAAO,MAAM,gBAAgB,4BAY5B,CAAC;eAEa,gBAAgB"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const AutomationPlugin: Plugin.PluginFactory<void>;
3
+ export default AutomationPlugin;
4
+ //# sourceMappingURL=AutomationPlugin.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/AutomationPlugin.node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAW7C,eAAO,MAAM,gBAAgB,4BAW5B,CAAC;eAEa,gBAAgB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AutomationPlugin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/AutomationPlugin.test.ts"],"names":[],"mappings":""}
@@ -1,4 +1,6 @@
1
- import { type PluginContext } from '@dxos/app-framework';
2
- declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-graph").BuilderExtensions>;
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { GraphBuilder } from '@dxos/plugin-graph';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<GraphBuilder.BuilderExtensions>>, never, never>;
3
5
  export default _default;
4
6
  //# sourceMappingURL=app-graph-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAOA,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBASpE,SAAS,aAAa;AAAtC,wBAqEK"}
1
+ {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { AutomationCapabilities } from '#types';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<AutomationCapabilities.ComputeRuntimeProvider>>, import("effect/Cause").UnknownException, Capability.Service>;
5
+ export default _default;
6
+ declare global {
7
+ interface ImportMeta {
8
+ env: ImportMetaEnv;
9
+ }
10
+ interface ImportMetaEnv {
11
+ DEV: boolean;
12
+ }
13
+ }
14
+ //# sourceMappingURL=compute-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute-runtime.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/compute-runtime.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAAgB,UAAU,EAA0B,MAAM,qBAAqB,CAAC;AAyCvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;;;AAYhD,OAAO,CAAC,MAAM,CAAC,CAAC;IACd,UAAU,UAAU;QAClB,GAAG,EAAE,aAAa,CAAC;KACpB;IAED,UAAU,aAAa;QACrB,GAAG,EAAE,OAAO,CAAC;KACd;CACF"}
@@ -1,4 +1,7 @@
1
- export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-graph").BuilderExtensions> | import("@dxos/app-framework").AnyCapability[]>>;
2
- export declare const IntentResolver: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
3
- export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { OperationHandlerSet } from '@dxos/compute';
3
+ export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
4
+ export declare const ComputeRuntime: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("../types").AutomationCapabilities.ComputeRuntimeProvider>>, Error>;
5
+ export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
6
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
4
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,oOAA4C,CAAC;AACzE,eAAO,MAAM,cAAc,kPAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,cAAc,0JAAuE,CAAC;AACnG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { OperationHandlerSet } from '@dxos/compute';
3
+ export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
4
+ export declare const ComputeRuntime: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("../types").AutomationCapabilities.ComputeRuntimeProvider>>, Error>;
5
+ export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
6
+ //# sourceMappingURL=node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,cAAc,0JAAuE,CAAC;AACnG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import type { OperationHandlerSet } from '@dxos/compute';
4
+ declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
5
+ export default _default;
6
+ //# sourceMappingURL=operation-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
3
4
  export default _default;
4
5
  //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAyC,MAAM,qBAAqB,CAAC;;AAQ1F,wBAyCK"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './trigger';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}