@dxos/plugin-automation 0.8.4-main.4a85c3132b → 0.8.4-main.4f23b4e393

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 (354) hide show
  1. package/dist/lib/neutral/AutomationPanel-HI63JQ2X.mjs +11 -0
  2. package/dist/lib/neutral/AutomationPlugin.mjs +38 -0
  3. package/dist/lib/neutral/AutomationPlugin.mjs.map +7 -0
  4. package/dist/lib/{browser/cli/index.mjs → neutral/AutomationPlugin.node.mjs} +131 -127
  5. package/dist/lib/neutral/AutomationPlugin.node.mjs.map +7 -0
  6. package/dist/lib/neutral/AutomationSettings-LM5GSR4H.mjs +31 -0
  7. package/dist/lib/neutral/AutomationSettings-LM5GSR4H.mjs.map +7 -0
  8. package/dist/lib/neutral/FunctionsContainer-SR6DHMF6.mjs +38 -0
  9. package/dist/lib/neutral/FunctionsContainer-SR6DHMF6.mjs.map +7 -0
  10. package/dist/lib/{browser/chunk-U55ZXRYM.mjs → neutral/FunctionsPanel-SVRKRUXZ.mjs} +24 -25
  11. package/dist/lib/neutral/FunctionsPanel-SVRKRUXZ.mjs.map +7 -0
  12. package/dist/lib/{browser/chunk-XFXYU645.mjs → neutral/FunctionsRegistry-Z2B5MUD3.mjs} +18 -19
  13. package/dist/lib/neutral/FunctionsRegistry-Z2B5MUD3.mjs.map +7 -0
  14. package/dist/lib/neutral/TriggerSettings-XCHIZPOR.mjs +9 -0
  15. package/dist/lib/neutral/app-graph-builder-GDCGRYEP.mjs +75 -0
  16. package/dist/lib/neutral/app-graph-builder-GDCGRYEP.mjs.map +7 -0
  17. package/dist/lib/neutral/capabilities/index.mjs +15 -0
  18. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  19. package/dist/lib/neutral/capabilities/node.mjs +13 -0
  20. package/dist/lib/neutral/capabilities/node.mjs.map +7 -0
  21. package/dist/lib/neutral/chunk-2JP77CMN.mjs +42 -0
  22. package/dist/lib/neutral/chunk-2JP77CMN.mjs.map +7 -0
  23. package/dist/lib/{browser/chunk-4EY2KMCM.mjs → neutral/chunk-6CKX6RIL.mjs} +24 -26
  24. package/dist/lib/neutral/chunk-6CKX6RIL.mjs.map +7 -0
  25. package/dist/lib/{browser/chunk-PZNBEKO5.mjs → neutral/chunk-ATECY555.mjs} +7 -4
  26. package/dist/lib/{browser/chunk-PZNBEKO5.mjs.map → neutral/chunk-ATECY555.mjs.map} +3 -3
  27. package/dist/lib/neutral/chunk-DSCOLDT5.mjs +93 -0
  28. package/dist/lib/neutral/chunk-DSCOLDT5.mjs.map +7 -0
  29. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  30. package/dist/lib/{browser/chunk-ZNI2CGQP.mjs → neutral/chunk-K3C5ZTZA.mjs} +52 -37
  31. package/dist/lib/neutral/chunk-K3C5ZTZA.mjs.map +7 -0
  32. package/dist/lib/neutral/chunk-M3TIHFXN.mjs +8 -0
  33. package/dist/lib/neutral/chunk-M3TIHFXN.mjs.map +7 -0
  34. package/dist/lib/neutral/chunk-UUC257FA.mjs +12 -0
  35. package/dist/lib/neutral/chunk-UUC257FA.mjs.map +7 -0
  36. package/dist/lib/neutral/components/index.mjs +16 -0
  37. package/dist/lib/neutral/compute-runtime-42CP6VG5.mjs +220 -0
  38. package/dist/lib/neutral/compute-runtime-42CP6VG5.mjs.map +7 -0
  39. package/dist/lib/neutral/containers/index.mjs +13 -0
  40. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  41. package/dist/lib/neutral/create-trigger-from-template-7K3OYOHQ.mjs +68 -0
  42. package/dist/lib/neutral/create-trigger-from-template-7K3OYOHQ.mjs.map +7 -0
  43. package/dist/lib/neutral/hooks/index.mjs +129 -0
  44. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  45. package/dist/lib/neutral/index.mjs +20 -0
  46. package/dist/lib/neutral/meta.json +1 -0
  47. package/dist/lib/neutral/meta.mjs +8 -0
  48. package/dist/lib/neutral/operation-handler-YXGYH5W5.mjs +13 -0
  49. package/dist/lib/neutral/operation-handler-YXGYH5W5.mjs.map +7 -0
  50. package/dist/lib/neutral/operations/index.mjs +8 -0
  51. package/dist/lib/neutral/plugin.mjs +16 -0
  52. package/dist/lib/neutral/plugin.mjs.map +7 -0
  53. package/dist/lib/neutral/react-surface-3OGMAMKV.mjs +57 -0
  54. package/dist/lib/neutral/react-surface-3OGMAMKV.mjs.map +7 -0
  55. package/dist/lib/neutral/translations.mjs +47 -0
  56. package/dist/lib/neutral/translations.mjs.map +7 -0
  57. package/dist/lib/neutral/types/index.mjs +16 -0
  58. package/dist/types/src/AutomationPlugin.d.ts +1 -0
  59. package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
  60. package/dist/types/src/{cli/plugin.d.ts → AutomationPlugin.node.d.ts} +2 -1
  61. package/dist/types/src/AutomationPlugin.node.d.ts.map +1 -0
  62. package/dist/types/src/AutomationPlugin.test.d.ts +2 -0
  63. package/dist/types/src/AutomationPlugin.test.d.ts.map +1 -0
  64. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  65. package/dist/types/src/capabilities/{compute-runtime/compute-runtime.d.ts → compute-runtime.d.ts} +9 -1
  66. package/dist/types/src/capabilities/compute-runtime.d.ts.map +1 -0
  67. package/dist/types/src/capabilities/index.d.ts +6 -4
  68. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  69. package/dist/types/src/capabilities/node.d.ts +6 -0
  70. package/dist/types/src/capabilities/node.d.ts.map +1 -0
  71. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  72. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  73. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  74. package/dist/types/src/commands/index.d.ts.map +1 -0
  75. package/dist/types/src/{cli/commands → commands}/trigger/create/index.d.ts +6 -6
  76. package/dist/types/src/commands/trigger/create/index.d.ts.map +1 -0
  77. package/dist/types/src/{cli/commands → commands}/trigger/create/queue.d.ts +1 -1
  78. package/dist/types/src/commands/trigger/create/queue.d.ts.map +1 -0
  79. package/dist/types/src/{cli/commands → commands}/trigger/create/subscription.d.ts +1 -1
  80. package/dist/types/src/commands/trigger/create/subscription.d.ts.map +1 -0
  81. package/dist/types/src/{cli/commands → commands}/trigger/create/timer.d.ts +1 -1
  82. package/dist/types/src/commands/trigger/create/timer.d.ts.map +1 -0
  83. package/dist/types/src/{cli/commands → commands}/trigger/index.d.ts +7 -7
  84. package/dist/types/src/commands/trigger/index.d.ts.map +1 -0
  85. package/dist/types/src/{cli/commands → commands}/trigger/list.d.ts +1 -1
  86. package/dist/types/src/commands/trigger/list.d.ts.map +1 -0
  87. package/dist/types/src/commands/trigger/options.d.ts.map +1 -0
  88. package/dist/types/src/{cli/commands → commands}/trigger/remove.d.ts +1 -1
  89. package/dist/types/src/commands/trigger/remove.d.ts.map +1 -0
  90. package/dist/types/src/{cli/commands → commands}/trigger/update/index.d.ts +5 -5
  91. package/dist/types/src/commands/trigger/update/index.d.ts.map +1 -0
  92. package/dist/types/src/commands/trigger/update/queue.d.ts.map +1 -0
  93. package/dist/types/src/commands/trigger/update/subscription.d.ts.map +1 -0
  94. package/dist/types/src/commands/trigger/update/timer.d.ts.map +1 -0
  95. package/dist/types/src/{cli/commands → commands}/trigger/util.d.ts +4 -4
  96. package/dist/types/src/commands/trigger/util.d.ts.map +1 -0
  97. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +1 -1
  98. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
  99. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +32 -32
  100. package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
  101. package/dist/types/src/components/AutomationPanel/index.d.ts.map +1 -1
  102. package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +1 -1
  103. package/dist/types/src/components/FunctionsPanel/index.d.ts.map +1 -1
  104. package/dist/types/src/components/FunctionsRegistry/FunctionsRegistry.d.ts.map +1 -1
  105. package/dist/types/src/components/FunctionsRegistry/index.d.ts.map +1 -1
  106. package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts +6 -6
  107. package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts.map +1 -1
  108. package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts +4 -4
  109. package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts.map +1 -1
  110. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +1 -1
  111. package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
  112. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +95 -93
  113. package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
  114. package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts +3 -1
  115. package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts.map +1 -1
  116. package/dist/types/src/containers/AutomationSettings/index.d.ts +1 -2
  117. package/dist/types/src/containers/AutomationSettings/index.d.ts.map +1 -1
  118. package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts +2 -4
  119. package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts.map +1 -1
  120. package/dist/types/src/containers/FunctionsContainer/index.d.ts +1 -2
  121. package/dist/types/src/containers/FunctionsContainer/index.d.ts.map +1 -1
  122. package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts +3 -3
  123. package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts.map +1 -1
  124. package/dist/types/src/containers/TriggerSettings/index.d.ts +2 -2
  125. package/dist/types/src/containers/TriggerSettings/index.d.ts.map +1 -1
  126. package/dist/types/src/hooks/index.d.ts +2 -0
  127. package/dist/types/src/hooks/index.d.ts.map +1 -1
  128. package/dist/types/src/hooks/useComputeRuntime.d.ts +8 -0
  129. package/dist/types/src/hooks/useComputeRuntime.d.ts.map +1 -0
  130. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts +2 -5
  131. package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +1 -1
  132. package/dist/types/src/hooks/useComputeRuntimeService.d.ts +17 -0
  133. package/dist/types/src/hooks/useComputeRuntimeService.d.ts.map +1 -0
  134. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts +1 -1
  135. package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -1
  136. package/dist/types/src/index.d.ts +0 -3
  137. package/dist/types/src/index.d.ts.map +1 -1
  138. package/dist/types/src/meta.d.ts.map +1 -1
  139. package/dist/types/src/operations/create-trigger-from-template.d.ts +5 -0
  140. package/dist/types/src/operations/create-trigger-from-template.d.ts.map +1 -0
  141. package/dist/types/src/operations/index.d.ts +3 -0
  142. package/dist/types/src/operations/index.d.ts.map +1 -0
  143. package/dist/types/src/plugin.d.ts +4 -0
  144. package/dist/types/src/plugin.d.ts.map +1 -0
  145. package/dist/types/src/testing/test-functions.d.ts +78 -76
  146. package/dist/types/src/testing/test-functions.d.ts.map +1 -1
  147. package/dist/types/src/translations.d.ts +32 -33
  148. package/dist/types/src/translations.d.ts.map +1 -1
  149. package/dist/types/src/types/AutomationCapabilities.d.ts +22 -0
  150. package/dist/types/src/types/AutomationCapabilities.d.ts.map +1 -0
  151. package/dist/types/src/types/AutomationEvents.d.ts +3 -0
  152. package/dist/types/src/types/AutomationEvents.d.ts.map +1 -0
  153. package/dist/types/src/types/AutomationOperation.d.ts +19 -0
  154. package/dist/types/src/types/AutomationOperation.d.ts.map +1 -0
  155. package/dist/types/src/types/index.d.ts +3 -2
  156. package/dist/types/src/types/index.d.ts.map +1 -1
  157. package/dist/types/src/types/schema.d.ts +9 -30
  158. package/dist/types/src/types/schema.d.ts.map +1 -1
  159. package/dist/types/tsconfig.tsbuildinfo +1 -1
  160. package/package.json +115 -66
  161. package/src/AutomationPlugin.node.ts +29 -0
  162. package/src/AutomationPlugin.test.ts +27 -0
  163. package/src/AutomationPlugin.tsx +11 -9
  164. package/src/capabilities/app-graph-builder.ts +66 -0
  165. package/src/capabilities/compute-runtime.ts +325 -0
  166. package/src/capabilities/index.ts +10 -4
  167. package/src/capabilities/node.ts +13 -0
  168. package/src/capabilities/operation-handler.ts +16 -0
  169. package/src/capabilities/react-surface.tsx +59 -0
  170. package/src/{cli/commands → commands}/trigger/create/queue.ts +5 -8
  171. package/src/{cli/commands → commands}/trigger/create/subscription.ts +8 -11
  172. package/src/{cli/commands → commands}/trigger/create/timer.ts +4 -7
  173. package/src/{cli/commands → commands}/trigger/list.ts +7 -4
  174. package/src/{cli/commands → commands}/trigger/remove.ts +2 -3
  175. package/src/{cli/commands → commands}/trigger/update/queue.ts +17 -18
  176. package/src/{cli/commands → commands}/trigger/update/subscription.ts +15 -15
  177. package/src/{cli/commands → commands}/trigger/update/timer.ts +16 -16
  178. package/src/{cli/commands → commands}/trigger/util.ts +39 -24
  179. package/src/components/AutomationPanel/AutomationPanel.stories.tsx +6 -5
  180. package/src/components/AutomationPanel/AutomationPanel.tsx +53 -46
  181. package/src/components/FunctionsPanel/FunctionsPanel.tsx +35 -27
  182. package/src/components/FunctionsRegistry/FunctionsRegistry.tsx +24 -19
  183. package/src/components/TriggerEditor/FunctionInputEditor.tsx +4 -4
  184. package/src/components/TriggerEditor/SpecSelector.tsx +17 -13
  185. package/src/components/TriggerEditor/TriggerEditor.stories.tsx +14 -14
  186. package/src/components/TriggerEditor/TriggerEditor.tsx +30 -17
  187. package/src/containers/AutomationSettings/AutomationSettings.tsx +12 -8
  188. package/src/containers/AutomationSettings/index.ts +1 -3
  189. package/src/containers/FunctionsContainer/FunctionsContainer.tsx +11 -11
  190. package/src/containers/FunctionsContainer/index.ts +1 -3
  191. package/src/containers/TriggerSettings/TriggerSettings.tsx +32 -10
  192. package/src/containers/TriggerSettings/index.ts +2 -3
  193. package/src/hooks/index.ts +3 -0
  194. package/src/hooks/useComputeRuntime.ts +30 -0
  195. package/src/hooks/useComputeRuntimeCallback.ts +6 -42
  196. package/src/hooks/useComputeRuntimeService.ts +64 -0
  197. package/src/hooks/useTriggerRuntimeControls.ts +6 -3
  198. package/src/index.ts +0 -4
  199. package/src/meta.ts +3 -2
  200. package/src/operations/create-trigger-from-template.ts +71 -0
  201. package/src/operations/index.ts +7 -0
  202. package/src/plugin.ts +11 -0
  203. package/src/testing/test-functions.ts +6 -3
  204. package/src/translations.ts +38 -39
  205. package/src/types/AutomationCapabilities.ts +48 -0
  206. package/src/types/AutomationEvents.ts +11 -0
  207. package/src/types/AutomationOperation.ts +30 -0
  208. package/src/types/index.ts +4 -2
  209. package/src/types/schema.ts +3 -24
  210. package/dist/lib/browser/AutomationPanel-EHRSV2DL.mjs +0 -11
  211. package/dist/lib/browser/AutomationSettings-TJYG77L6.mjs +0 -37
  212. package/dist/lib/browser/AutomationSettings-TJYG77L6.mjs.map +0 -7
  213. package/dist/lib/browser/FunctionsContainer-XHEQSNNO.mjs +0 -43
  214. package/dist/lib/browser/FunctionsContainer-XHEQSNNO.mjs.map +0 -7
  215. package/dist/lib/browser/FunctionsPanel-5WPUZGRB.mjs +0 -10
  216. package/dist/lib/browser/FunctionsRegistry-XRXIZRLL.mjs +0 -10
  217. package/dist/lib/browser/TriggerSettings-HUQT53SV.mjs +0 -13
  218. package/dist/lib/browser/TriggerSettings-HUQT53SV.mjs.map +0 -7
  219. package/dist/lib/browser/app-graph-builder-HLARI3VW.mjs +0 -85
  220. package/dist/lib/browser/app-graph-builder-HLARI3VW.mjs.map +0 -7
  221. package/dist/lib/browser/chunk-3P4R5WNC.mjs +0 -8
  222. package/dist/lib/browser/chunk-3P4R5WNC.mjs.map +0 -7
  223. package/dist/lib/browser/chunk-4EY2KMCM.mjs.map +0 -7
  224. package/dist/lib/browser/chunk-QPG3AKFX.mjs +0 -93
  225. package/dist/lib/browser/chunk-QPG3AKFX.mjs.map +0 -7
  226. package/dist/lib/browser/chunk-SEG5OCGB.mjs +0 -31
  227. package/dist/lib/browser/chunk-SEG5OCGB.mjs.map +0 -7
  228. package/dist/lib/browser/chunk-U55ZXRYM.mjs.map +0 -7
  229. package/dist/lib/browser/chunk-WOBCY2FQ.mjs +0 -83
  230. package/dist/lib/browser/chunk-WOBCY2FQ.mjs.map +0 -7
  231. package/dist/lib/browser/chunk-XFXYU645.mjs.map +0 -7
  232. package/dist/lib/browser/chunk-ZNI2CGQP.mjs.map +0 -7
  233. package/dist/lib/browser/cli/index.mjs.map +0 -7
  234. package/dist/lib/browser/compute-runtime-L2RVWXY2.mjs +0 -124
  235. package/dist/lib/browser/compute-runtime-L2RVWXY2.mjs.map +0 -7
  236. package/dist/lib/browser/hooks/index.mjs +0 -13
  237. package/dist/lib/browser/index.mjs +0 -123
  238. package/dist/lib/browser/index.mjs.map +0 -7
  239. package/dist/lib/browser/meta.json +0 -1
  240. package/dist/lib/browser/operation-resolver-2U6ZQVXR.mjs +0 -83
  241. package/dist/lib/browser/operation-resolver-2U6ZQVXR.mjs.map +0 -7
  242. package/dist/lib/browser/react-surface-U6FAYV42.mjs +0 -69
  243. package/dist/lib/browser/react-surface-U6FAYV42.mjs.map +0 -7
  244. package/dist/lib/browser/types/index.mjs +0 -14
  245. package/dist/lib/node-esm/AutomationPanel-F7MPUR7U.mjs +0 -12
  246. package/dist/lib/node-esm/AutomationSettings-5AHJMILI.mjs +0 -38
  247. package/dist/lib/node-esm/AutomationSettings-5AHJMILI.mjs.map +0 -7
  248. package/dist/lib/node-esm/FunctionsContainer-U5UVRKVT.mjs +0 -44
  249. package/dist/lib/node-esm/FunctionsContainer-U5UVRKVT.mjs.map +0 -7
  250. package/dist/lib/node-esm/FunctionsPanel-UFL5LT2R.mjs +0 -11
  251. package/dist/lib/node-esm/FunctionsPanel-UFL5LT2R.mjs.map +0 -7
  252. package/dist/lib/node-esm/FunctionsRegistry-574OBZ5T.mjs +0 -11
  253. package/dist/lib/node-esm/FunctionsRegistry-574OBZ5T.mjs.map +0 -7
  254. package/dist/lib/node-esm/TriggerSettings-RDIJHUKK.mjs +0 -14
  255. package/dist/lib/node-esm/TriggerSettings-RDIJHUKK.mjs.map +0 -7
  256. package/dist/lib/node-esm/app-graph-builder-Z2TMQHVX.mjs +0 -86
  257. package/dist/lib/node-esm/app-graph-builder-Z2TMQHVX.mjs.map +0 -7
  258. package/dist/lib/node-esm/chunk-2X564LII.mjs +0 -10
  259. package/dist/lib/node-esm/chunk-2X564LII.mjs.map +0 -7
  260. package/dist/lib/node-esm/chunk-34HGM46Z.mjs +0 -32
  261. package/dist/lib/node-esm/chunk-34HGM46Z.mjs.map +0 -7
  262. package/dist/lib/node-esm/chunk-4DK33JDH.mjs +0 -84
  263. package/dist/lib/node-esm/chunk-4DK33JDH.mjs.map +0 -7
  264. package/dist/lib/node-esm/chunk-5FXNN3MV.mjs +0 -19
  265. package/dist/lib/node-esm/chunk-5FXNN3MV.mjs.map +0 -7
  266. package/dist/lib/node-esm/chunk-7AIKTEAX.mjs +0 -273
  267. package/dist/lib/node-esm/chunk-7AIKTEAX.mjs.map +0 -7
  268. package/dist/lib/node-esm/chunk-CMZ4NKSK.mjs +0 -271
  269. package/dist/lib/node-esm/chunk-CMZ4NKSK.mjs.map +0 -7
  270. package/dist/lib/node-esm/chunk-GXFQR3KI.mjs +0 -99
  271. package/dist/lib/node-esm/chunk-GXFQR3KI.mjs.map +0 -7
  272. package/dist/lib/node-esm/chunk-QNPYY3XZ.mjs +0 -94
  273. package/dist/lib/node-esm/chunk-QNPYY3XZ.mjs.map +0 -7
  274. package/dist/lib/node-esm/chunk-RTEXGGBX.mjs +0 -97
  275. package/dist/lib/node-esm/chunk-RTEXGGBX.mjs.map +0 -7
  276. package/dist/lib/node-esm/cli/index.mjs +0 -1109
  277. package/dist/lib/node-esm/cli/index.mjs.map +0 -7
  278. package/dist/lib/node-esm/compute-runtime-XD6A5Q7Q.mjs +0 -125
  279. package/dist/lib/node-esm/compute-runtime-XD6A5Q7Q.mjs.map +0 -7
  280. package/dist/lib/node-esm/hooks/index.mjs +0 -14
  281. package/dist/lib/node-esm/index.mjs +0 -124
  282. package/dist/lib/node-esm/index.mjs.map +0 -7
  283. package/dist/lib/node-esm/meta.json +0 -1
  284. package/dist/lib/node-esm/operation-resolver-XWJGBHJZ.mjs +0 -84
  285. package/dist/lib/node-esm/operation-resolver-XWJGBHJZ.mjs.map +0 -7
  286. package/dist/lib/node-esm/react-surface-BVNHCWQ7.mjs +0 -70
  287. package/dist/lib/node-esm/react-surface-BVNHCWQ7.mjs.map +0 -7
  288. package/dist/lib/node-esm/types/index.mjs +0 -15
  289. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  290. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  291. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  292. package/dist/types/src/capabilities/compute-runtime/compute-runtime.d.ts.map +0 -1
  293. package/dist/types/src/capabilities/compute-runtime/index.d.ts +0 -3
  294. package/dist/types/src/capabilities/compute-runtime/index.d.ts.map +0 -1
  295. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  296. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  297. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  298. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  299. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  300. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  301. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  302. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  303. package/dist/types/src/cli/commands/trigger/create/index.d.ts.map +0 -1
  304. package/dist/types/src/cli/commands/trigger/create/queue.d.ts.map +0 -1
  305. package/dist/types/src/cli/commands/trigger/create/subscription.d.ts.map +0 -1
  306. package/dist/types/src/cli/commands/trigger/create/timer.d.ts.map +0 -1
  307. package/dist/types/src/cli/commands/trigger/index.d.ts.map +0 -1
  308. package/dist/types/src/cli/commands/trigger/list.d.ts.map +0 -1
  309. package/dist/types/src/cli/commands/trigger/options.d.ts.map +0 -1
  310. package/dist/types/src/cli/commands/trigger/remove.d.ts.map +0 -1
  311. package/dist/types/src/cli/commands/trigger/update/index.d.ts.map +0 -1
  312. package/dist/types/src/cli/commands/trigger/update/queue.d.ts.map +0 -1
  313. package/dist/types/src/cli/commands/trigger/update/subscription.d.ts.map +0 -1
  314. package/dist/types/src/cli/commands/trigger/update/timer.d.ts.map +0 -1
  315. package/dist/types/src/cli/commands/trigger/util.d.ts.map +0 -1
  316. package/dist/types/src/cli/index.d.ts +0 -2
  317. package/dist/types/src/cli/index.d.ts.map +0 -1
  318. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  319. package/dist/types/src/types/capabilities.d.ts +0 -22
  320. package/dist/types/src/types/capabilities.d.ts.map +0 -1
  321. package/dist/types/src/types/events.d.ts +0 -5
  322. package/dist/types/src/types/events.d.ts.map +0 -1
  323. package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -72
  324. package/src/capabilities/app-graph-builder/index.ts +0 -7
  325. package/src/capabilities/compute-runtime/compute-runtime.ts +0 -146
  326. package/src/capabilities/compute-runtime/index.ts +0 -7
  327. package/src/capabilities/operation-resolver/index.ts +0 -7
  328. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -80
  329. package/src/capabilities/react-surface/index.ts +0 -7
  330. package/src/capabilities/react-surface/react-surface.tsx +0 -61
  331. package/src/cli/index.ts +0 -5
  332. package/src/cli/plugin.ts +0 -24
  333. package/src/types/capabilities.ts +0 -43
  334. package/src/types/events.ts +0 -11
  335. /package/dist/lib/{browser/AutomationPanel-EHRSV2DL.mjs.map → neutral/AutomationPanel-HI63JQ2X.mjs.map} +0 -0
  336. /package/dist/lib/{browser/FunctionsPanel-5WPUZGRB.mjs.map → neutral/TriggerSettings-XCHIZPOR.mjs.map} +0 -0
  337. /package/dist/lib/{browser/FunctionsRegistry-XRXIZRLL.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  338. /package/dist/lib/{browser/hooks → neutral/components}/index.mjs.map +0 -0
  339. /package/dist/lib/{browser/types → neutral}/index.mjs.map +0 -0
  340. /package/dist/lib/{node-esm/AutomationPanel-F7MPUR7U.mjs.map → neutral/meta.mjs.map} +0 -0
  341. /package/dist/lib/{node-esm/hooks → neutral/operations}/index.mjs.map +0 -0
  342. /package/dist/lib/{node-esm → neutral}/types/index.mjs.map +0 -0
  343. /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
  344. /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
  345. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  346. /package/dist/types/src/{cli/commands → commands}/trigger/options.d.ts +0 -0
  347. /package/dist/types/src/{cli/commands → commands}/trigger/update/queue.d.ts +0 -0
  348. /package/dist/types/src/{cli/commands → commands}/trigger/update/subscription.d.ts +0 -0
  349. /package/dist/types/src/{cli/commands → commands}/trigger/update/timer.d.ts +0 -0
  350. /package/src/{cli/commands → commands}/index.ts +0 -0
  351. /package/src/{cli/commands → commands}/trigger/create/index.ts +0 -0
  352. /package/src/{cli/commands → commands}/trigger/index.ts +0 -0
  353. /package/src/{cli/commands → commands}/trigger/options.ts +0 -0
  354. /package/src/{cli/commands → commands}/trigger/update/index.ts +0 -0
@@ -1,25 +1,21 @@
1
- import {
2
- ComputeRuntime
3
- } from "../chunk-3P4R5WNC.mjs";
4
- import {
5
- AutomationEvents
6
- } from "../chunk-WOBCY2FQ.mjs";
7
- import {
8
- meta
9
- } from "../chunk-PZNBEKO5.mjs";
1
+ import "./chunk-J5LGTIGS.mjs";
10
2
 
11
- // src/cli/plugin.ts
3
+ // src/AutomationPlugin.node.ts
12
4
  import { Plugin } from "@dxos/app-framework";
13
5
  import { AppPlugin } from "@dxos/app-toolkit";
14
- import { ClientEvents } from "@dxos/plugin-client/types";
6
+ import { Operation as Operation8, Trace, Trigger as Trigger10 } from "@dxos/compute";
7
+ import { ClientEvents } from "@dxos/plugin-client";
8
+ import { AppGraphBuilder, ComputeRuntime, OperationHandler } from "#capabilities";
9
+ import { meta } from "#meta";
10
+ import { AutomationEvents } from "#types";
15
11
 
16
- // src/cli/commands/trigger/index.ts
12
+ // src/commands/trigger/index.ts
17
13
  import * as Command11 from "@effect/cli/Command";
18
14
 
19
- // src/cli/commands/trigger/create/index.ts
15
+ // src/commands/trigger/create/index.ts
20
16
  import * as Command4 from "@effect/cli/Command";
21
17
 
22
- // src/cli/commands/trigger/create/queue.ts
18
+ // src/commands/trigger/create/queue.ts
23
19
  import * as Command from "@effect/cli/Command";
24
20
  import * as Options2 from "@effect/cli/Options";
25
21
  import * as Prompt2 from "@effect/cli/Prompt";
@@ -30,10 +26,10 @@ import * as Option2 from "effect/Option";
30
26
  import { CommandConfig } from "@dxos/cli-util";
31
27
  import { flushAndSync, print, spaceLayer, withTypes } from "@dxos/cli-util";
32
28
  import { Common } from "@dxos/cli-util";
29
+ import { Operation as Operation2, Trigger as Trigger2 } from "@dxos/compute";
33
30
  import { Database as Database2, Filter as Filter2, JsonSchema, Ref as Ref2 } from "@dxos/echo";
34
- import { Function as Function2, Trigger as Trigger2 } from "@dxos/functions";
35
31
 
36
- // src/cli/commands/trigger/options.ts
32
+ // src/commands/trigger/options.ts
37
33
  import * as Options from "@effect/cli/Options";
38
34
  import * as Schema from "effect/Schema";
39
35
  import { DXN } from "@dxos/keys";
@@ -54,7 +50,7 @@ var DXNSchema = Schema.String.pipe(Schema.transform(Schema.instanceOf(DXN), {
54
50
  }));
55
51
  var Queue = Options.text("queue").pipe(Options.withDescription("The DXN of the queue for the queue trigger."), Options.withSchema(DXNSchema));
56
52
 
57
- // src/cli/commands/trigger/util.ts
53
+ // src/commands/trigger/util.ts
58
54
  import * as Prompt from "@effect/cli/Prompt";
59
55
  import * as Ansi from "@effect/printer-ansi/Ansi";
60
56
  import * as Console from "effect/Console";
@@ -63,10 +59,10 @@ import * as Match from "effect/Match";
63
59
  import * as Option from "effect/Option";
64
60
  import * as SchemaAST from "effect/SchemaAST";
65
61
  import { FormBuilder } from "@dxos/cli-util";
66
- import { Annotation, Database, Entity, Filter, Obj, Ref, Type } from "@dxos/echo";
62
+ import { Operation, Trigger } from "@dxos/compute";
63
+ import { Annotation, Database, Entity, Feed, Filter, Obj, Query, Ref, Type } from "@dxos/echo";
67
64
  import { getProperties } from "@dxos/effect";
68
- import { Function, Trigger } from "@dxos/functions";
69
- import { QueueAnnotation } from "@dxos/schema";
65
+ import { FeedAnnotation } from "@dxos/schema";
70
66
  var getTriggerRemoteStatus = (trigger2, remoteCronIds) => {
71
67
  if (trigger2.spec?.kind !== "timer") {
72
68
  return "n/a";
@@ -77,7 +73,7 @@ var printTrigger = Effect.fn(function* (trigger2, remoteStatus) {
77
73
  const fn6 = trigger2.function && (yield* Database.load(trigger2.function));
78
74
  return FormBuilder.make({
79
75
  title: trigger2.id
80
- }).pipe(FormBuilder.set("status", trigger2.enabled ? "enabled" : "disabled", trigger2.enabled ? Ansi.green : Ansi.blackBright), FormBuilder.option("kind", Option.fromNullable(trigger2.spec?.kind)), FormBuilder.option("remote", Option.fromNullable(remoteStatus), Match.type().pipe(Match.withReturnType(), Match.when("available", () => Ansi.green), Match.when("not available", () => Ansi.yellow), Match.when("n/a", () => Ansi.blackBright), Match.exhaustive)), FormBuilder.when(fn6, FormBuilder.nest("function", FormBuilder.make().pipe(FormBuilder.set("key", fn6.key), FormBuilder.set("dxn", fn6.dxn?.toString())))), FormBuilder.nestedOption("spec", Option.fromNullable(trigger2.spec).pipe(Option.map(printSpec))), FormBuilder.build);
76
+ }).pipe(FormBuilder.set("status", trigger2.enabled ? "enabled" : "disabled", trigger2.enabled ? Ansi.green : Ansi.blackBright), FormBuilder.option("kind", Option.fromNullable(trigger2.spec?.kind)), FormBuilder.option("remote", Option.fromNullable(remoteStatus), Match.type().pipe(Match.withReturnType(), Match.when("available", () => Ansi.green), Match.when("not available", () => Ansi.yellow), Match.when("n/a", () => Ansi.blackBright), Match.exhaustive)), FormBuilder.when(fn6, FormBuilder.nest("function", FormBuilder.make().pipe(FormBuilder.set("key", fn6.key), FormBuilder.set("dxn", Obj.getDXN(fn6).toString())))), FormBuilder.nestedOption("spec", Option.fromNullable(trigger2.spec).pipe(Option.map(printSpec))), FormBuilder.build);
81
77
  });
82
78
  var printSpec = (spec) => {
83
79
  switch (spec.kind) {
@@ -229,7 +225,7 @@ var promptForSchemaInput = Effect.fn(function* (schema, defaults) {
229
225
  return inputObj;
230
226
  });
231
227
  var selectFunction = Effect.fn(function* () {
232
- const functions = yield* Database.runQuery(Filter.type(Function.Function));
228
+ const functions = yield* Database.runQuery(Filter.type(Operation.PersistentOperation));
233
229
  if (functions.length === 0) {
234
230
  return yield* Effect.fail(new Error("No functions available"));
235
231
  }
@@ -244,14 +240,14 @@ var selectFunction = Effect.fn(function* () {
244
240
  return String(selected);
245
241
  });
246
242
  var selectTrigger = Effect.fn(function* (kind) {
247
- const triggers = yield* Database.runQuery(Filter.type(Trigger.Trigger));
243
+ const triggers = yield* Database.runQuery(Query.select(Filter.type(Trigger.Trigger)).debugLabel("cli.trigger.selectTrigger"));
248
244
  const filteredTriggers = kind ? triggers.filter((trigger2) => trigger2.spec?.kind === kind) : triggers;
249
245
  if (filteredTriggers.length === 0) {
250
246
  return yield* Effect.fail(new Error(kind ? `No ${kind} triggers available` : "No triggers available"));
251
247
  }
252
248
  const choices = yield* Effect.all(filteredTriggers.map((trigger2) => Effect.gen(function* () {
253
249
  const fn6 = trigger2.function ? yield* Database.load(trigger2.function) : void 0;
254
- const functionName = fn6 && Obj.instanceOf(Function.Function, fn6) ? fn6.name ?? fn6.key ?? fn6.id : void 0;
250
+ const functionName = fn6 && Obj.instanceOf(Operation.PersistentOperation, fn6) ? fn6.name ?? fn6.key ?? fn6.id : void 0;
255
251
  const title = functionName ?? trigger2.id;
256
252
  const description = `${trigger2.enabled ? "enabled" : "disabled"} - ${trigger2.spec?.kind ?? "unknown"}`;
257
253
  return {
@@ -273,29 +269,36 @@ var selectQueue = Effect.fn(function* () {
273
269
  "runtime"
274
270
  ]
275
271
  });
276
- const queueSchemas = schemas.filter((schema) => {
277
- const annotation = QueueAnnotation.get(schema);
272
+ const feedSchemas = schemas.filter((schema) => {
273
+ const annotation = FeedAnnotation.get(schema);
278
274
  return Option.isSome(annotation) && annotation.value === true;
279
275
  });
280
- if (queueSchemas.length === 0) {
281
- return yield* Effect.fail(new Error("No schemas with Queue annotation found"));
276
+ if (feedSchemas.length === 0) {
277
+ return yield* Effect.fail(new Error("No schemas with Feed annotation found"));
282
278
  }
283
279
  const queueChoices = [];
284
- for (const schema of queueSchemas) {
280
+ for (const schema of feedSchemas) {
285
281
  yield* Effect.gen(function* () {
286
282
  const typename = Type.getTypename(schema);
287
283
  const objects = yield* Database.runQuery(Filter.type(typename));
288
284
  for (const obj of objects) {
289
- const queueRef = obj.queue;
290
- if (!queueRef) {
285
+ const feedRef = obj.feed;
286
+ if (!feedRef) {
287
+ continue;
288
+ }
289
+ const feedObj = yield* Effect.promise(() => feedRef.tryLoad());
290
+ if (!feedObj || !Obj.instanceOf(Feed.Feed, feedObj)) {
291
+ continue;
292
+ }
293
+ const queueDXN = Feed.getQueueDxn(feedObj);
294
+ if (!queueDXN) {
291
295
  continue;
292
296
  }
293
- const queueDxn = queueRef.dxn.toString();
294
297
  const label = Obj.getLabel(obj) ?? obj.id;
295
298
  const description = Obj.getTypename(obj);
296
299
  queueChoices.push({
297
300
  title: label,
298
- value: queueDxn,
301
+ value: queueDXN.toString(),
299
302
  description
300
303
  });
301
304
  }
@@ -314,7 +317,7 @@ var printTriggerRemoved = (id) => FormBuilder.make({
314
317
  title: "Trigger removed"
315
318
  }).pipe(FormBuilder.set("id", id), FormBuilder.build);
316
319
 
317
- // src/cli/commands/trigger/create/queue.ts
320
+ // src/commands/trigger/create/queue.ts
318
321
  var queue = Command.make("queue", {
319
322
  spaceId: Common.spaceId.pipe(Options2.optional),
320
323
  enabled: Enabled,
@@ -327,12 +330,12 @@ var queue = Command.make("queue", {
327
330
  onNone: () => selectFunction(),
328
331
  onSome: (id) => Effect2.succeed(id)
329
332
  });
330
- const functions = yield* Database2.runQuery(Filter2.type(Function2.Function));
333
+ const functions = yield* Database2.runQuery(Filter2.type(Operation2.PersistentOperation));
331
334
  const fn6 = functions.find((fn7) => fn7.id === functionId);
332
335
  if (!fn6) {
333
336
  return yield* Effect2.fail(new Error(`Function not found: ${functionId}`));
334
337
  }
335
- const queueDxn = yield* Option2.match(options.queue, {
338
+ const queueDXN = yield* Option2.match(options.queue, {
336
339
  onNone: () => selectQueue(),
337
340
  onSome: (dxn) => Effect2.succeed(dxn.toString())
338
341
  });
@@ -350,10 +353,7 @@ var queue = Command.make("queue", {
350
353
  const trigger2 = Trigger2.make({
351
354
  function: Ref2.make(fn6),
352
355
  enabled,
353
- spec: {
354
- kind: "queue",
355
- queue: queueDxn
356
- },
356
+ spec: Trigger2.specQueue(queueDXN),
357
357
  input
358
358
  });
359
359
  yield* Database2.add(trigger2);
@@ -365,9 +365,9 @@ var queue = Command.make("queue", {
365
365
  yield* flushAndSync({
366
366
  indexes: true
367
367
  });
368
- })).pipe(Command.withDescription("Create a queue trigger."), Command.provide(({ spaceId }) => spaceLayer(spaceId, true)), Command.provideEffectDiscard(() => withTypes(Function2.Function, Trigger2.Trigger)));
368
+ })).pipe(Command.withDescription("Create a queue trigger."), Command.provide(({ spaceId }) => spaceLayer(spaceId, true)), Command.provideEffectDiscard(() => withTypes(Operation2.PersistentOperation, Trigger2.Trigger)));
369
369
 
370
- // src/cli/commands/trigger/create/subscription.ts
370
+ // src/commands/trigger/create/subscription.ts
371
371
  import * as Command2 from "@effect/cli/Command";
372
372
  import * as Options3 from "@effect/cli/Options";
373
373
  import * as Prompt3 from "@effect/cli/Prompt";
@@ -378,8 +378,8 @@ import * as Option3 from "effect/Option";
378
378
  import { CommandConfig as CommandConfig2 } from "@dxos/cli-util";
379
379
  import { flushAndSync as flushAndSync2, print as print2, spaceLayer as spaceLayer2, withTypes as withTypes2 } from "@dxos/cli-util";
380
380
  import { Common as Common2 } from "@dxos/cli-util";
381
- import { Database as Database3, Filter as Filter3, JsonSchema as JsonSchema2, Query, Ref as Ref3 } from "@dxos/echo";
382
- import { Function as Function3, Trigger as Trigger3 } from "@dxos/functions";
381
+ import { Operation as Operation3, Trigger as Trigger3 } from "@dxos/compute";
382
+ import { Database as Database3, Filter as Filter3, JsonSchema as JsonSchema2, Query as Query2, Ref as Ref3 } from "@dxos/echo";
383
383
  var subscription = Command2.make("subscription", {
384
384
  spaceId: Common2.spaceId.pipe(Options3.optional),
385
385
  enabled: Enabled,
@@ -394,7 +394,7 @@ var subscription = Command2.make("subscription", {
394
394
  onNone: () => selectFunction(),
395
395
  onSome: (id) => Effect3.succeed(id)
396
396
  });
397
- const functions = yield* Database3.runQuery(Filter3.type(Function3.Function));
397
+ const functions = yield* Database3.runQuery(Filter3.type(Operation3.PersistentOperation));
398
398
  const fn6 = functions.find((fn7) => fn7.id === functionId);
399
399
  if (!fn6) {
400
400
  return yield* Effect3.fail(new Error(`Function not found: ${functionId}`));
@@ -405,7 +405,7 @@ var subscription = Command2.make("subscription", {
405
405
  }).pipe(Prompt3.run),
406
406
  onSome: (value2) => Effect3.succeed(value2)
407
407
  });
408
- const queryAst = Query.select(Filter3.type(typename)).ast;
408
+ const subscriptionQuery = Query2.select(Filter3.type(typename));
409
409
  const deepOption = yield* Option3.match(options.deep, {
410
410
  onNone: () => Prompt3.confirm({
411
411
  message: "Watch changes to nested properties (deep)?",
@@ -443,13 +443,7 @@ var subscription = Command2.make("subscription", {
443
443
  const trigger2 = Trigger3.make({
444
444
  function: Ref3.make(fn6),
445
445
  enabled,
446
- spec: {
447
- kind: "subscription",
448
- query: {
449
- ast: queryAst
450
- },
451
- options: Object.keys(subscriptionOptions).length > 0 ? subscriptionOptions : void 0
452
- },
446
+ spec: Trigger3.specSubscription(subscriptionQuery, Object.keys(subscriptionOptions).length > 0 ? subscriptionOptions : void 0),
453
447
  input
454
448
  });
455
449
  yield* Database3.add(trigger2);
@@ -461,9 +455,9 @@ var subscription = Command2.make("subscription", {
461
455
  yield* flushAndSync2({
462
456
  indexes: true
463
457
  });
464
- })).pipe(Command2.withDescription("Create a subscription trigger."), Command2.provide(({ spaceId }) => spaceLayer2(spaceId, true)), Command2.provideEffectDiscard(() => withTypes2(Function3.Function, Trigger3.Trigger)));
458
+ })).pipe(Command2.withDescription("Create a subscription trigger."), Command2.provide(({ spaceId }) => spaceLayer2(spaceId, true)), Command2.provideEffectDiscard(() => withTypes2(Operation3.PersistentOperation, Trigger3.Trigger)));
465
459
 
466
- // src/cli/commands/trigger/create/timer.ts
460
+ // src/commands/trigger/create/timer.ts
467
461
  import * as Command3 from "@effect/cli/Command";
468
462
  import * as Options4 from "@effect/cli/Options";
469
463
  import * as Prompt4 from "@effect/cli/Prompt";
@@ -474,8 +468,8 @@ import * as Option4 from "effect/Option";
474
468
  import { CommandConfig as CommandConfig3 } from "@dxos/cli-util";
475
469
  import { flushAndSync as flushAndSync3, print as print3, spaceLayer as spaceLayer3, withTypes as withTypes3 } from "@dxos/cli-util";
476
470
  import { Common as Common3 } from "@dxos/cli-util";
471
+ import { Operation as Operation4, Trigger as Trigger4 } from "@dxos/compute";
477
472
  import { Database as Database4, Filter as Filter4, JsonSchema as JsonSchema3, Ref as Ref4 } from "@dxos/echo";
478
- import { Function as Function4, Trigger as Trigger4 } from "@dxos/functions";
479
473
  var timer = Command3.make("timer", {
480
474
  spaceId: Common3.spaceId.pipe(Options4.optional),
481
475
  enabled: Enabled,
@@ -488,7 +482,7 @@ var timer = Command3.make("timer", {
488
482
  onNone: () => selectFunction(),
489
483
  onSome: (id) => Effect4.succeed(id)
490
484
  });
491
- const functions = yield* Database4.runQuery(Filter4.type(Function4.Function));
485
+ const functions = yield* Database4.runQuery(Filter4.type(Operation4.PersistentOperation));
492
486
  const fn6 = functions.find((fn7) => fn7.id === functionId);
493
487
  if (!fn6) {
494
488
  return yield* Effect4.fail(new Error(`Function not found: ${functionId}`));
@@ -513,10 +507,7 @@ var timer = Command3.make("timer", {
513
507
  const trigger2 = Trigger4.make({
514
508
  function: Ref4.make(fn6),
515
509
  enabled,
516
- spec: {
517
- kind: "timer",
518
- cron
519
- },
510
+ spec: Trigger4.specTimer(cron),
520
511
  input
521
512
  });
522
513
  yield* Database4.add(trigger2);
@@ -528,33 +519,35 @@ var timer = Command3.make("timer", {
528
519
  yield* flushAndSync3({
529
520
  indexes: true
530
521
  });
531
- })).pipe(Command3.withDescription("Create a timer trigger."), Command3.provide(({ spaceId }) => spaceLayer3(spaceId, true)), Command3.provideEffectDiscard(() => withTypes3(Function4.Function, Trigger4.Trigger)));
522
+ })).pipe(Command3.withDescription("Create a timer trigger."), Command3.provide(({ spaceId }) => spaceLayer3(spaceId, true)), Command3.provideEffectDiscard(() => withTypes3(Operation4.PersistentOperation, Trigger4.Trigger)));
532
523
 
533
- // src/cli/commands/trigger/create/index.ts
524
+ // src/commands/trigger/create/index.ts
534
525
  var create = Command4.make("create").pipe(Command4.withDescription("Create a trigger."), Command4.withSubcommands([
535
526
  subscription,
536
527
  timer,
537
528
  queue
538
529
  ]));
539
530
 
540
- // src/cli/commands/trigger/list.ts
531
+ // src/commands/trigger/list.ts
541
532
  import * as Command5 from "@effect/cli/Command";
542
533
  import * as Options5 from "@effect/cli/Options";
543
534
  import * as Console5 from "effect/Console";
544
535
  import * as Effect5 from "effect/Effect";
545
536
  import { CommandConfig as CommandConfig4, Common as Common4, printList, spaceIdWithDefault, spaceLayer as spaceLayer4 } from "@dxos/cli-util";
546
537
  import { ClientService } from "@dxos/client";
547
- import { Database as Database5, Filter as Filter5 } from "@dxos/echo";
548
- import { Trigger as Trigger5 } from "@dxos/functions";
538
+ import { Trigger as Trigger5 } from "@dxos/compute";
539
+ import { Context } from "@dxos/context";
540
+ import { Database as Database5, Filter as Filter5, Query as Query3 } from "@dxos/echo";
541
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-automation/src/commands/trigger/list.ts";
549
542
  var list = Command5.make("list", {
550
543
  spaceId: Common4.spaceId.pipe(Options5.optional)
551
544
  }, Effect5.fn(function* ({ spaceId: spaceIdOption }) {
552
545
  const { json } = yield* CommandConfig4;
553
- const triggers = yield* Database5.runQuery(Filter5.type(Trigger5.Trigger));
546
+ const triggers = yield* Database5.runQuery(Query3.select(Filter5.type(Trigger5.Trigger)).debugLabel("cli.trigger.list"));
554
547
  const remoteCronIds = yield* Effect5.gen(function* () {
555
548
  const client = yield* ClientService;
556
549
  const spaceId = yield* spaceIdWithDefault(spaceIdOption);
557
- const result = yield* Effect5.promise(() => client.edge.http.getCronTriggers(spaceId)).pipe(Effect5.catchAll(() => Effect5.succeed({
550
+ const result = yield* Effect5.promise(() => client.edge.http.getCronTriggers(Context.default(void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 24 }), spaceId)).pipe(Effect5.catchAll(() => Effect5.succeed({
558
551
  cronIds: []
559
552
  })));
560
553
  return result.cronIds;
@@ -578,16 +571,15 @@ var list = Command5.make("list", {
578
571
  }
579
572
  })).pipe(Command5.withDescription("List triggers configured on EDGE."), Command5.provide(({ spaceId }) => spaceLayer4(spaceId, true)));
580
573
 
581
- // src/cli/commands/trigger/remove.ts
574
+ // src/commands/trigger/remove.ts
582
575
  import * as Command6 from "@effect/cli/Command";
583
576
  import * as Options6 from "@effect/cli/Options";
584
577
  import * as Console6 from "effect/Console";
585
578
  import * as Effect6 from "effect/Effect";
586
579
  import * as Option5 from "effect/Option";
587
580
  import { CommandConfig as CommandConfig5, Common as Common5, print as print4, spaceLayer as spaceLayer5, withTypes as withTypes4 } from "@dxos/cli-util";
588
- import { DXN as DXN2 } from "@dxos/echo";
589
- import { Database as Database6 } from "@dxos/echo";
590
- import { Trigger as Trigger6 } from "@dxos/functions";
581
+ import { Trigger as Trigger6 } from "@dxos/compute";
582
+ import { Database as Database6, DXN as DXN2 } from "@dxos/echo";
591
583
  var remove = Command6.make("remove", {
592
584
  spaceId: Common5.spaceId.pipe(Options6.optional),
593
585
  id: TriggerId.pipe(Options6.optional)
@@ -610,10 +602,10 @@ var remove = Command6.make("remove", {
610
602
  }
611
603
  })).pipe(Command6.withDescription("Remove a trigger."), Command6.provide(({ spaceId }) => spaceLayer5(spaceId, true)), Command6.provideEffectDiscard(() => withTypes4(Trigger6.Trigger)));
612
604
 
613
- // src/cli/commands/trigger/update/index.ts
605
+ // src/commands/trigger/update/index.ts
614
606
  import * as Command10 from "@effect/cli/Command";
615
607
 
616
- // src/cli/commands/trigger/update/queue.ts
608
+ // src/commands/trigger/update/queue.ts
617
609
  import * as Command7 from "@effect/cli/Command";
618
610
  import * as Options7 from "@effect/cli/Options";
619
611
  import * as Prompt5 from "@effect/cli/Prompt";
@@ -623,8 +615,8 @@ import * as Option6 from "effect/Option";
623
615
  import { CommandConfig as CommandConfig6 } from "@dxos/cli-util";
624
616
  import { flushAndSync as flushAndSync4, print as print5, spaceLayer as spaceLayer6, withTypes as withTypes5 } from "@dxos/cli-util";
625
617
  import { Common as Common6 } from "@dxos/cli-util";
618
+ import { Operation as Operation5, Trigger as Trigger7 } from "@dxos/compute";
626
619
  import { DXN as DXN3, Database as Database7, Filter as Filter6, JsonSchema as JsonSchema4, Obj as Obj2, Ref as Ref5 } from "@dxos/echo";
627
- import { Function as Function5, Trigger as Trigger7 } from "@dxos/functions";
628
620
  var queue2 = Command7.make("queue", {
629
621
  spaceId: Common6.spaceId.pipe(Options7.optional),
630
622
  id: TriggerId.pipe(Options7.optional),
@@ -655,10 +647,10 @@ var queue2 = Command7.make("queue", {
655
647
  yield* flushAndSync4({
656
648
  indexes: true
657
649
  });
658
- })).pipe(Command7.withDescription("Update a queue trigger."), Command7.provide(({ spaceId }) => spaceLayer6(spaceId, true)), Command7.provideEffectDiscard(() => withTypes5(Function5.Function, Trigger7.Trigger)));
650
+ })).pipe(Command7.withDescription("Update a queue trigger."), Command7.provide(({ spaceId }) => spaceLayer6(spaceId, true)), Command7.provideEffectDiscard(() => withTypes5(Operation5.PersistentOperation, Trigger7.Trigger)));
659
651
  var updateFunction = Effect7.fn(function* (trigger2, functionIdOption) {
660
652
  let currentFn = trigger2.function ? yield* Database7.load(trigger2.function) : void 0;
661
- if (currentFn && !Obj2.instanceOf(Function5.Function, currentFn)) {
653
+ if (currentFn && !Obj2.instanceOf(Operation5.PersistentOperation, currentFn)) {
662
654
  currentFn = void 0;
663
655
  }
664
656
  const currentFunctionName = currentFn ? currentFn.name ?? currentFn.id : void 0;
@@ -674,13 +666,13 @@ var updateFunction = Effect7.fn(function* (trigger2, functionIdOption) {
674
666
  onNone: () => selectFunction(),
675
667
  onSome: (id) => Effect7.succeed(id)
676
668
  });
677
- const functions = yield* Database7.runQuery(Filter6.type(Function5.Function));
669
+ const functions = yield* Database7.runQuery(Filter6.type(Operation5.PersistentOperation));
678
670
  const foundFn = functions.find((fn6) => fn6.id === functionId);
679
- if (!foundFn || !Obj2.instanceOf(Function5.Function, foundFn)) {
671
+ if (!foundFn || !Obj2.instanceOf(Operation5.PersistentOperation, foundFn)) {
680
672
  return yield* Effect7.fail(new Error(`Function not found: ${functionId}`));
681
673
  }
682
- Obj2.change(trigger2, (mutableTrigger) => {
683
- mutableTrigger.function = Ref5.make(foundFn);
674
+ Obj2.update(trigger2, (trigger3) => {
675
+ trigger3.function = Ref5.make(foundFn);
684
676
  });
685
677
  currentFn = foundFn;
686
678
  }
@@ -701,13 +693,13 @@ var updateQueue = Effect7.fn(function* (trigger2, queueOption) {
701
693
  onSome: () => Effect7.succeed(true)
702
694
  });
703
695
  if (shouldChangeQueue) {
704
- const queueDxn = yield* Option6.match(queueOption, {
696
+ const queueDXN = yield* Option6.match(queueOption, {
705
697
  onNone: () => selectQueue(),
706
698
  onSome: (dxn) => Effect7.succeed(dxn.toString())
707
699
  });
708
- Obj2.change(trigger2, (mutableTrigger) => {
709
- if (mutableTrigger.spec?.kind === "queue") {
710
- mutableTrigger.spec.queue = queueDxn;
700
+ Obj2.update(trigger2, (trigger3) => {
701
+ if (trigger3.spec?.kind === "queue") {
702
+ trigger3.spec.queue = queueDXN;
711
703
  }
712
704
  });
713
705
  }
@@ -730,8 +722,8 @@ var updateInput = Effect7.fn(function* (trigger2, fn6, inputOption) {
730
722
  onNone: () => promptForSchemaInput(fn6.inputSchema ? JsonSchema4.toEffectSchema(fn6.inputSchema) : void 0, currentInput),
731
723
  onSome: (value2) => Effect7.succeed(value2)
732
724
  });
733
- Obj2.change(trigger2, (mutableTrigger) => {
734
- mutableTrigger.input = inputObj;
725
+ Obj2.update(trigger2, (trigger3) => {
726
+ trigger3.input = inputObj;
735
727
  });
736
728
  }
737
729
  });
@@ -743,12 +735,12 @@ var updateEnabled = Effect7.fn(function* (trigger2, idOption, enabled) {
743
735
  }).pipe(Prompt5.run),
744
736
  onSome: () => Effect7.succeed(enabled)
745
737
  });
746
- Obj2.change(trigger2, (mutableTrigger) => {
747
- mutableTrigger.enabled = enabledValue;
738
+ Obj2.update(trigger2, (trigger3) => {
739
+ trigger3.enabled = enabledValue;
748
740
  });
749
741
  });
750
742
 
751
- // src/cli/commands/trigger/update/subscription.ts
743
+ // src/commands/trigger/update/subscription.ts
752
744
  import * as Command8 from "@effect/cli/Command";
753
745
  import * as Options8 from "@effect/cli/Options";
754
746
  import * as Prompt6 from "@effect/cli/Prompt";
@@ -759,8 +751,8 @@ import * as Option7 from "effect/Option";
759
751
  import { CommandConfig as CommandConfig7 } from "@dxos/cli-util";
760
752
  import { flushAndSync as flushAndSync5, print as print6, spaceLayer as spaceLayer7, withTypes as withTypes6 } from "@dxos/cli-util";
761
753
  import { Common as Common7 } from "@dxos/cli-util";
762
- import { DXN as DXN4, Database as Database8, Filter as Filter7, JsonSchema as JsonSchema5, Obj as Obj3, Query as Query2, Ref as Ref6 } from "@dxos/echo";
763
- import { Function as Function6, Trigger as Trigger8 } from "@dxos/functions";
754
+ import { Operation as Operation6, Trigger as Trigger8 } from "@dxos/compute";
755
+ import { DXN as DXN4, Database as Database8, Filter as Filter7, JsonSchema as JsonSchema5, Obj as Obj3, Query as Query4, Ref as Ref6 } from "@dxos/echo";
764
756
  var subscription2 = Command8.make("subscription", {
765
757
  spaceId: Common7.spaceId.pipe(Options8.optional),
766
758
  id: TriggerId.pipe(Options8.optional),
@@ -793,7 +785,7 @@ var subscription2 = Command8.make("subscription", {
793
785
  yield* flushAndSync5({
794
786
  indexes: true
795
787
  });
796
- })).pipe(Command8.withDescription("Update a subscription trigger."), Command8.provide(({ spaceId }) => spaceLayer7(spaceId, true)), Command8.provideEffectDiscard(() => withTypes6(Function6.Function, Trigger8.Trigger)));
788
+ })).pipe(Command8.withDescription("Update a subscription trigger."), Command8.provide(({ spaceId }) => spaceLayer7(spaceId, true)), Command8.provideEffectDiscard(() => withTypes6(Operation6.PersistentOperation, Trigger8.Trigger)));
797
789
  var extractCurrentTypename = (spec) => {
798
790
  if (!spec?.query?.ast) {
799
791
  return Option7.none();
@@ -806,7 +798,7 @@ var extractCurrentTypename = (spec) => {
806
798
  };
807
799
  var updateFunction2 = Effect8.fn(function* (trigger2, functionIdOption) {
808
800
  let currentFn = trigger2.function ? yield* Database8.load(trigger2.function) : void 0;
809
- if (currentFn && !Obj3.instanceOf(Function6.Function, currentFn)) {
801
+ if (currentFn && !Obj3.instanceOf(Operation6.PersistentOperation, currentFn)) {
810
802
  currentFn = void 0;
811
803
  }
812
804
  const currentFunctionName = currentFn ? currentFn.name ?? currentFn.id : void 0;
@@ -822,13 +814,13 @@ var updateFunction2 = Effect8.fn(function* (trigger2, functionIdOption) {
822
814
  onNone: () => selectFunction(),
823
815
  onSome: (id) => Effect8.succeed(id)
824
816
  });
825
- const functions = yield* Database8.runQuery(Filter7.type(Function6.Function));
817
+ const functions = yield* Database8.runQuery(Filter7.type(Operation6.PersistentOperation));
826
818
  const foundFn = functions.find((fn6) => fn6.id === functionId);
827
- if (!foundFn || !Obj3.instanceOf(Function6.Function, foundFn)) {
819
+ if (!foundFn || !Obj3.instanceOf(Operation6.PersistentOperation, foundFn)) {
828
820
  return yield* Effect8.fail(new Error(`Function not found: ${functionId}`));
829
821
  }
830
- Obj3.change(trigger2, (mutableTrigger) => {
831
- mutableTrigger.function = Ref6.make(foundFn);
822
+ Obj3.update(trigger2, (trigger3) => {
823
+ trigger3.function = Ref6.make(foundFn);
832
824
  });
833
825
  currentFn = foundFn;
834
826
  }
@@ -867,7 +859,7 @@ var updateSpec = Effect8.fn(function* (trigger2, typenameOption, deepOption, del
867
859
  }).pipe(Prompt6.run),
868
860
  onSome: (value2) => Effect8.succeed(value2)
869
861
  });
870
- const queryAst = Query2.select(Filter7.type(typename)).ast;
862
+ const queryAst = Query4.select(Filter7.type(typename)).ast;
871
863
  const deepOptionValue = yield* Option7.match(deepOption, {
872
864
  onNone: () => Prompt6.confirm({
873
865
  message: "Watch changes to nested properties (deep)?",
@@ -892,8 +884,8 @@ var updateSpec = Effect8.fn(function* (trigger2, typenameOption, deepOption, del
892
884
  if (Option7.isSome(delayOptionValue)) {
893
885
  subscriptionOptions.delay = delayOptionValue.value;
894
886
  }
895
- Obj3.change(trigger2, (mutableTrigger) => {
896
- const spec = mutableTrigger.spec;
887
+ Obj3.update(trigger2, (trigger3) => {
888
+ const spec = trigger3.spec;
897
889
  if (spec?.kind === "subscription") {
898
890
  spec.query = {
899
891
  ast: queryAst
@@ -921,8 +913,8 @@ var updateInput2 = Effect8.fn(function* (trigger2, fn6, inputOption) {
921
913
  onNone: () => promptForSchemaInput(fn6.inputSchema ? JsonSchema5.toEffectSchema(fn6.inputSchema) : void 0, currentInput),
922
914
  onSome: (value2) => Effect8.succeed(value2)
923
915
  });
924
- Obj3.change(trigger2, (mutableTrigger) => {
925
- mutableTrigger.input = inputObj;
916
+ Obj3.update(trigger2, (trigger3) => {
917
+ trigger3.input = inputObj;
926
918
  });
927
919
  }
928
920
  });
@@ -934,12 +926,12 @@ var updateEnabled2 = Effect8.fn(function* (trigger2, idOption, enabled) {
934
926
  }).pipe(Prompt6.run),
935
927
  onSome: () => Effect8.succeed(enabled)
936
928
  });
937
- Obj3.change(trigger2, (mutableTrigger) => {
938
- mutableTrigger.enabled = enabledValue;
929
+ Obj3.update(trigger2, (trigger3) => {
930
+ trigger3.enabled = enabledValue;
939
931
  });
940
932
  });
941
933
 
942
- // src/cli/commands/trigger/update/timer.ts
934
+ // src/commands/trigger/update/timer.ts
943
935
  import * as Command9 from "@effect/cli/Command";
944
936
  import * as Options9 from "@effect/cli/Options";
945
937
  import * as Prompt7 from "@effect/cli/Prompt";
@@ -949,8 +941,8 @@ import * as Option8 from "effect/Option";
949
941
  import { CommandConfig as CommandConfig8 } from "@dxos/cli-util";
950
942
  import { flushAndSync as flushAndSync6, print as print7, spaceLayer as spaceLayer8, withTypes as withTypes7 } from "@dxos/cli-util";
951
943
  import { Common as Common8 } from "@dxos/cli-util";
944
+ import { Operation as Operation7, Trigger as Trigger9 } from "@dxos/compute";
952
945
  import { DXN as DXN5, Database as Database9, Filter as Filter8, JsonSchema as JsonSchema6, Obj as Obj4, Ref as Ref7 } from "@dxos/echo";
953
- import { Function as Function7, Trigger as Trigger9 } from "@dxos/functions";
954
946
  var timer2 = Command9.make("timer", {
955
947
  spaceId: Common8.spaceId.pipe(Options9.optional),
956
948
  id: TriggerId.pipe(Options9.optional),
@@ -981,10 +973,10 @@ var timer2 = Command9.make("timer", {
981
973
  yield* flushAndSync6({
982
974
  indexes: true
983
975
  });
984
- })).pipe(Command9.withDescription("Update a timer trigger."), Command9.provide(({ spaceId }) => spaceLayer8(spaceId, true)), Command9.provideEffectDiscard(() => withTypes7(Function7.Function, Trigger9.Trigger)));
976
+ })).pipe(Command9.withDescription("Update a timer trigger."), Command9.provide(({ spaceId }) => spaceLayer8(spaceId, true)), Command9.provideEffectDiscard(() => withTypes7(Operation7.PersistentOperation, Trigger9.Trigger)));
985
977
  var updateFunction3 = Effect9.fn(function* (trigger2, functionIdOption) {
986
978
  let currentFn = trigger2.function ? yield* Database9.load(trigger2.function) : void 0;
987
- if (currentFn && !Obj4.instanceOf(Function7.Function, currentFn)) {
979
+ if (currentFn && !Obj4.instanceOf(Operation7.PersistentOperation, currentFn)) {
988
980
  currentFn = void 0;
989
981
  }
990
982
  const currentFunctionName = currentFn ? currentFn.name ?? currentFn.id : void 0;
@@ -1000,13 +992,13 @@ var updateFunction3 = Effect9.fn(function* (trigger2, functionIdOption) {
1000
992
  onNone: () => selectFunction(),
1001
993
  onSome: (id) => Effect9.succeed(id)
1002
994
  });
1003
- const functions = yield* Database9.runQuery(Filter8.type(Function7.Function));
995
+ const functions = yield* Database9.runQuery(Filter8.type(Operation7.PersistentOperation));
1004
996
  const foundFn = functions.find((fn6) => fn6.id === functionId);
1005
- if (!foundFn || !Obj4.instanceOf(Function7.Function, foundFn)) {
997
+ if (!foundFn || !Obj4.instanceOf(Operation7.PersistentOperation, foundFn)) {
1006
998
  return yield* Effect9.fail(new Error(`Function not found: ${functionId}`));
1007
999
  }
1008
- Obj4.change(trigger2, (mutableTrigger) => {
1009
- mutableTrigger.function = Ref7.make(foundFn);
1000
+ Obj4.update(trigger2, (trigger3) => {
1001
+ trigger3.function = Ref7.make(foundFn);
1010
1002
  });
1011
1003
  currentFn = foundFn;
1012
1004
  }
@@ -1032,9 +1024,9 @@ var updateCron = Effect9.fn(function* (trigger2, cronOption) {
1032
1024
  }).pipe(Prompt7.run),
1033
1025
  onSome: (value2) => Effect9.succeed(value2)
1034
1026
  });
1035
- Obj4.change(trigger2, (mutableTrigger) => {
1036
- if (mutableTrigger.spec?.kind === "timer") {
1037
- mutableTrigger.spec.cron = cron;
1027
+ Obj4.update(trigger2, (trigger3) => {
1028
+ if (trigger3.spec?.kind === "timer") {
1029
+ trigger3.spec.cron = cron;
1038
1030
  }
1039
1031
  });
1040
1032
  }
@@ -1057,8 +1049,8 @@ var updateInput3 = Effect9.fn(function* (trigger2, fn6, inputOption) {
1057
1049
  onNone: () => promptForSchemaInput(fn6.inputSchema ? JsonSchema6.toEffectSchema(fn6.inputSchema) : void 0, currentInput),
1058
1050
  onSome: (value2) => Effect9.succeed(value2)
1059
1051
  });
1060
- Obj4.change(trigger2, (mutableTrigger) => {
1061
- mutableTrigger.input = inputObj;
1052
+ Obj4.update(trigger2, (trigger3) => {
1053
+ trigger3.input = inputObj;
1062
1054
  });
1063
1055
  }
1064
1056
  });
@@ -1070,19 +1062,19 @@ var updateEnabled3 = Effect9.fn(function* (trigger2, idOption, enabled) {
1070
1062
  }).pipe(Prompt7.run),
1071
1063
  onSome: () => Effect9.succeed(enabled)
1072
1064
  });
1073
- Obj4.change(trigger2, (mutableTrigger) => {
1074
- mutableTrigger.enabled = enabledValue;
1065
+ Obj4.update(trigger2, (trigger3) => {
1066
+ trigger3.enabled = enabledValue;
1075
1067
  });
1076
1068
  });
1077
1069
 
1078
- // src/cli/commands/trigger/update/index.ts
1070
+ // src/commands/trigger/update/index.ts
1079
1071
  var update = Command10.make("update").pipe(Command10.withDescription("Update a trigger."), Command10.withSubcommands([
1080
1072
  subscription2,
1081
1073
  timer2,
1082
1074
  queue2
1083
1075
  ]));
1084
1076
 
1085
- // src/cli/commands/trigger/index.ts
1077
+ // src/commands/trigger/index.ts
1086
1078
  var trigger = Command11.make("trigger").pipe(Command11.withDescription("Manage EDGE triggers."), Command11.withSubcommands([
1087
1079
  create,
1088
1080
  list,
@@ -1090,19 +1082,31 @@ var trigger = Command11.make("trigger").pipe(Command11.withDescription("Manage E
1090
1082
  update
1091
1083
  ]));
1092
1084
 
1093
- // src/cli/plugin.ts
1094
- var AutomationPlugin = Plugin.define(meta).pipe(AppPlugin.addCommandModule({
1085
+ // src/AutomationPlugin.node.ts
1086
+ var AutomationPlugin = Plugin.define(meta).pipe(AppPlugin.addAppGraphModule({
1087
+ activate: AppGraphBuilder
1088
+ }), AppPlugin.addCommandModule({
1095
1089
  commands: [
1096
1090
  trigger
1097
1091
  ]
1092
+ }), AppPlugin.addOperationHandlerModule({
1093
+ activate: OperationHandler
1094
+ }), AppPlugin.addSchemaModule({
1095
+ schema: [
1096
+ Operation8.PersistentOperation,
1097
+ Trigger10.Trigger,
1098
+ Trace.Message
1099
+ ]
1098
1100
  }), Plugin.addModule({
1099
1101
  activatesOn: ClientEvents.ClientReady,
1100
- activatesAfter: [
1102
+ firesAfterActivation: [
1101
1103
  AutomationEvents.ComputeRuntimeReady
1102
1104
  ],
1103
1105
  activate: ComputeRuntime
1104
1106
  }), Plugin.make);
1107
+ var AutomationPlugin_node_default = AutomationPlugin;
1105
1108
  export {
1106
- AutomationPlugin
1109
+ AutomationPlugin,
1110
+ AutomationPlugin_node_default as default
1107
1111
  };
1108
- //# sourceMappingURL=index.mjs.map
1112
+ //# sourceMappingURL=AutomationPlugin.node.mjs.map