@dxos/plugin-automation 0.8.4-main.d05673bc65 → 0.8.4-main.dfabb4ec29
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.
- package/dist/lib/neutral/AutomationPanel-64U7W3SJ.mjs +11 -0
- package/dist/lib/neutral/AutomationPlugin.mjs +38 -0
- package/dist/lib/neutral/AutomationPlugin.mjs.map +7 -0
- package/dist/lib/{browser/cli/index.mjs → neutral/AutomationPlugin.node.mjs} +111 -113
- package/dist/lib/neutral/AutomationPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/AutomationSettings-NNL2AVNT.mjs +31 -0
- package/dist/lib/neutral/AutomationSettings-NNL2AVNT.mjs.map +7 -0
- package/dist/lib/neutral/FunctionsContainer-CU2FVKZF.mjs +38 -0
- package/dist/lib/neutral/FunctionsContainer-CU2FVKZF.mjs.map +7 -0
- package/dist/lib/{browser/chunk-75XLBFAG.mjs → neutral/FunctionsPanel-GLCUBEDT.mjs} +20 -21
- package/dist/lib/neutral/FunctionsPanel-GLCUBEDT.mjs.map +7 -0
- package/dist/lib/{node-esm/chunk-6JVB3IHW.mjs → neutral/FunctionsRegistry-VRU4FBVH.mjs} +16 -19
- package/dist/lib/neutral/FunctionsRegistry-VRU4FBVH.mjs.map +7 -0
- package/dist/lib/neutral/TriggerSettings-XCHIZPOR.mjs +9 -0
- package/dist/lib/neutral/app-graph-builder-GDCGRYEP.mjs +75 -0
- package/dist/lib/neutral/app-graph-builder-GDCGRYEP.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +15 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/node.mjs +13 -0
- package/dist/lib/neutral/capabilities/node.mjs.map +7 -0
- package/dist/lib/neutral/chunk-2JP77CMN.mjs +42 -0
- package/dist/lib/neutral/chunk-2JP77CMN.mjs.map +7 -0
- package/dist/lib/{browser/chunk-EL64ZPPN.mjs → neutral/chunk-ATECY555.mjs} +6 -3
- package/dist/lib/{browser/chunk-EL64ZPPN.mjs.map → neutral/chunk-ATECY555.mjs.map} +3 -3
- package/dist/lib/neutral/chunk-DSCOLDT5.mjs +93 -0
- package/dist/lib/neutral/chunk-DSCOLDT5.mjs.map +7 -0
- package/dist/lib/{browser/chunk-O23LHDEX.mjs → neutral/chunk-FKFFU54G.mjs} +22 -21
- package/dist/lib/neutral/chunk-FKFFU54G.mjs.map +7 -0
- package/dist/lib/neutral/chunk-GDNOJOAR.mjs +8 -0
- package/dist/lib/neutral/chunk-GDNOJOAR.mjs.map +7 -0
- package/dist/lib/neutral/chunk-IGGNE2XI.mjs +12 -0
- package/dist/lib/neutral/chunk-IGGNE2XI.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/{browser/chunk-BWEKRPFJ.mjs → neutral/chunk-N735CP33.mjs} +24 -33
- package/dist/lib/neutral/chunk-N735CP33.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +16 -0
- package/dist/lib/neutral/compute-runtime-2Q5MGOR6.mjs +220 -0
- package/dist/lib/neutral/compute-runtime-2Q5MGOR6.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +13 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-trigger-from-template-5FT7O7OU.mjs +69 -0
- package/dist/lib/neutral/create-trigger-from-template-5FT7O7OU.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +129 -0
- package/dist/lib/neutral/hooks/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +20 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/operation-handler-YXGYH5W5.mjs +13 -0
- package/dist/lib/neutral/operation-handler-YXGYH5W5.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +8 -0
- package/dist/lib/neutral/plugin.mjs +16 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-3OGMAMKV.mjs +57 -0
- package/dist/lib/neutral/react-surface-3OGMAMKV.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +47 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +16 -0
- package/dist/types/src/AutomationPlugin.d.ts +1 -0
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- package/dist/types/src/{cli/plugin.d.ts → AutomationPlugin.node.d.ts} +2 -1
- package/dist/types/src/AutomationPlugin.node.d.ts.map +1 -0
- package/dist/types/src/AutomationPlugin.test.d.ts +2 -0
- package/dist/types/src/AutomationPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/{compute-runtime/compute-runtime.d.ts → compute-runtime.d.ts} +9 -1
- package/dist/types/src/capabilities/compute-runtime.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +6 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/node.d.ts +6 -0
- package/dist/types/src/capabilities/node.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/create/index.d.ts +6 -6
- package/dist/types/src/commands/trigger/create/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/create/queue.d.ts +1 -1
- package/dist/types/src/commands/trigger/create/queue.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/create/subscription.d.ts +1 -1
- package/dist/types/src/commands/trigger/create/subscription.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/create/timer.d.ts +1 -1
- package/dist/types/src/commands/trigger/create/timer.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/index.d.ts +7 -7
- package/dist/types/src/commands/trigger/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/list.d.ts +1 -1
- package/dist/types/src/commands/trigger/list.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/options.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/remove.d.ts +1 -1
- package/dist/types/src/commands/trigger/remove.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/update/index.d.ts +5 -5
- package/dist/types/src/commands/trigger/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/update/queue.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/update/subscription.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/update/timer.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/util.d.ts +2 -2
- package/dist/types/src/commands/trigger/util.d.ts.map +1 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +32 -32
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/index.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsPanel/index.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsRegistry/FunctionsRegistry.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsRegistry/index.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts +6 -6
- package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts +4 -4
- package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +95 -93
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
- package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts +3 -1
- package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts.map +1 -1
- package/dist/types/src/containers/AutomationSettings/index.d.ts +1 -2
- package/dist/types/src/containers/AutomationSettings/index.d.ts.map +1 -1
- package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts +2 -4
- package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts.map +1 -1
- package/dist/types/src/containers/FunctionsContainer/index.d.ts +1 -2
- package/dist/types/src/containers/FunctionsContainer/index.d.ts.map +1 -1
- package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts +3 -3
- package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +2 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeRuntime.d.ts +8 -0
- package/dist/types/src/hooks/useComputeRuntime.d.ts.map +1 -0
- package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts +1 -4
- package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeRuntimeService.d.ts +17 -0
- package/dist/types/src/hooks/useComputeRuntimeService.d.ts.map +1 -0
- package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts +1 -1
- package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/create-trigger-from-template.d.ts +5 -0
- package/dist/types/src/operations/create-trigger-from-template.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/testing/test-functions.d.ts +78 -76
- package/dist/types/src/testing/test-functions.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +32 -33
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/AutomationCapabilities.d.ts +22 -0
- package/dist/types/src/types/AutomationCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/AutomationEvents.d.ts +3 -0
- package/dist/types/src/types/AutomationEvents.d.ts.map +1 -0
- package/dist/types/src/types/AutomationOperation.d.ts +19 -0
- package/dist/types/src/types/AutomationOperation.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -2
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +7 -28
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +115 -66
- package/src/AutomationPlugin.node.ts +29 -0
- package/src/AutomationPlugin.test.ts +27 -0
- package/src/AutomationPlugin.tsx +11 -9
- package/src/capabilities/app-graph-builder.ts +66 -0
- package/src/capabilities/compute-runtime.ts +325 -0
- package/src/capabilities/index.ts +10 -4
- package/src/capabilities/node.ts +13 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +17 -15
- package/src/{cli/commands → commands}/trigger/create/queue.ts +4 -7
- package/src/{cli/commands → commands}/trigger/create/subscription.ts +8 -11
- package/src/{cli/commands → commands}/trigger/create/timer.ts +4 -7
- package/src/{cli/commands → commands}/trigger/list.ts +7 -4
- package/src/{cli/commands → commands}/trigger/remove.ts +1 -1
- package/src/{cli/commands → commands}/trigger/update/queue.ts +16 -17
- package/src/{cli/commands → commands}/trigger/update/subscription.ts +15 -15
- package/src/{cli/commands → commands}/trigger/update/timer.ts +16 -16
- package/src/{cli/commands → commands}/trigger/util.ts +13 -7
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +6 -5
- package/src/components/AutomationPanel/AutomationPanel.tsx +51 -43
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +31 -24
- package/src/components/FunctionsRegistry/FunctionsRegistry.tsx +22 -18
- package/src/components/TriggerEditor/FunctionInputEditor.tsx +4 -4
- package/src/components/TriggerEditor/SpecSelector.tsx +17 -13
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +13 -13
- package/src/components/TriggerEditor/TriggerEditor.tsx +8 -12
- package/src/containers/AutomationSettings/AutomationSettings.tsx +11 -7
- package/src/containers/AutomationSettings/index.ts +1 -3
- package/src/containers/FunctionsContainer/FunctionsContainer.tsx +11 -11
- package/src/containers/FunctionsContainer/index.ts +1 -3
- package/src/containers/TriggerSettings/TriggerSettings.tsx +32 -10
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useComputeRuntime.ts +30 -0
- package/src/hooks/useComputeRuntimeCallback.ts +4 -39
- package/src/hooks/useComputeRuntimeService.ts +64 -0
- package/src/hooks/useTriggerRuntimeControls.ts +6 -3
- package/src/index.ts +0 -4
- package/src/meta.ts +2 -1
- package/src/operations/create-trigger-from-template.ts +72 -0
- package/src/operations/index.ts +7 -0
- package/src/plugin.ts +11 -0
- package/src/testing/test-functions.ts +6 -3
- package/src/translations.ts +38 -39
- package/src/types/AutomationCapabilities.ts +48 -0
- package/src/types/AutomationEvents.ts +11 -0
- package/src/types/AutomationOperation.ts +30 -0
- package/src/types/index.ts +4 -2
- package/src/types/schema.ts +2 -23
- package/dist/lib/browser/AutomationPanel-IGLIQY2N.mjs +0 -11
- package/dist/lib/browser/AutomationSettings-EDO3N5WI.mjs +0 -37
- package/dist/lib/browser/AutomationSettings-EDO3N5WI.mjs.map +0 -7
- package/dist/lib/browser/FunctionsContainer-R4ZMYSFJ.mjs +0 -43
- package/dist/lib/browser/FunctionsContainer-R4ZMYSFJ.mjs.map +0 -7
- package/dist/lib/browser/FunctionsPanel-NMA4RYJL.mjs +0 -10
- package/dist/lib/browser/FunctionsRegistry-TMKAEG5E.mjs +0 -10
- package/dist/lib/browser/TriggerSettings-56AIMOEC.mjs +0 -11
- package/dist/lib/browser/app-graph-builder-74ILZP25.mjs +0 -83
- package/dist/lib/browser/app-graph-builder-74ILZP25.mjs.map +0 -7
- package/dist/lib/browser/chunk-75XLBFAG.mjs.map +0 -7
- package/dist/lib/browser/chunk-BWEKRPFJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-FUVAC5EC.mjs +0 -96
- package/dist/lib/browser/chunk-FUVAC5EC.mjs.map +0 -7
- package/dist/lib/browser/chunk-GVHAETEQ.mjs +0 -83
- package/dist/lib/browser/chunk-GVHAETEQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-H2MV4XE6.mjs +0 -31
- package/dist/lib/browser/chunk-H2MV4XE6.mjs.map +0 -7
- package/dist/lib/browser/chunk-O23LHDEX.mjs.map +0 -7
- package/dist/lib/browser/chunk-OAZ2JYXV.mjs +0 -93
- package/dist/lib/browser/chunk-OAZ2JYXV.mjs.map +0 -7
- package/dist/lib/browser/chunk-Z7F7X2C5.mjs +0 -8
- package/dist/lib/browser/chunk-Z7F7X2C5.mjs.map +0 -7
- package/dist/lib/browser/cli/index.mjs.map +0 -7
- package/dist/lib/browser/compute-runtime-F3UMRKCL.mjs +0 -124
- package/dist/lib/browser/compute-runtime-F3UMRKCL.mjs.map +0 -7
- package/dist/lib/browser/hooks/index.mjs +0 -13
- package/dist/lib/browser/index.mjs +0 -123
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operation-resolver-IRC2DZU7.mjs +0 -84
- package/dist/lib/browser/operation-resolver-IRC2DZU7.mjs.map +0 -7
- package/dist/lib/browser/react-surface-5MFPVWIN.mjs +0 -65
- package/dist/lib/browser/react-surface-5MFPVWIN.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -14
- package/dist/lib/node-esm/AutomationPanel-O2BCQA7P.mjs +0 -12
- package/dist/lib/node-esm/AutomationPanel-O2BCQA7P.mjs.map +0 -7
- package/dist/lib/node-esm/AutomationSettings-LJNRQUX7.mjs +0 -38
- package/dist/lib/node-esm/AutomationSettings-LJNRQUX7.mjs.map +0 -7
- package/dist/lib/node-esm/FunctionsContainer-GYRPQZM7.mjs +0 -44
- package/dist/lib/node-esm/FunctionsContainer-GYRPQZM7.mjs.map +0 -7
- package/dist/lib/node-esm/FunctionsPanel-DCXXLSVP.mjs +0 -11
- package/dist/lib/node-esm/FunctionsPanel-DCXXLSVP.mjs.map +0 -7
- package/dist/lib/node-esm/FunctionsRegistry-7WCHC64E.mjs +0 -11
- package/dist/lib/node-esm/FunctionsRegistry-7WCHC64E.mjs.map +0 -7
- package/dist/lib/node-esm/TriggerSettings-ONY5ZUKW.mjs +0 -12
- package/dist/lib/node-esm/TriggerSettings-ONY5ZUKW.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-VDXPOWCH.mjs +0 -84
- package/dist/lib/node-esm/app-graph-builder-VDXPOWCH.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2UF55HSG.mjs +0 -94
- package/dist/lib/node-esm/chunk-2UF55HSG.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6B4WZRVH.mjs +0 -84
- package/dist/lib/node-esm/chunk-6B4WZRVH.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6JVB3IHW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FPXVLTEY.mjs +0 -270
- package/dist/lib/node-esm/chunk-FPXVLTEY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JVUE5PMI.mjs +0 -32
- package/dist/lib/node-esm/chunk-JVUE5PMI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-K7T2MVB7.mjs +0 -98
- package/dist/lib/node-esm/chunk-K7T2MVB7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Q5JSKD6Z.mjs +0 -295
- package/dist/lib/node-esm/chunk-Q5JSKD6Z.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-R5YEWJCG.mjs +0 -10
- package/dist/lib/node-esm/chunk-R5YEWJCG.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-WC5AT7B3.mjs +0 -19
- package/dist/lib/node-esm/chunk-WC5AT7B3.mjs.map +0 -7
- package/dist/lib/node-esm/cli/index.mjs +0 -1116
- package/dist/lib/node-esm/cli/index.mjs.map +0 -7
- package/dist/lib/node-esm/compute-runtime-AMFVJMF2.mjs +0 -125
- package/dist/lib/node-esm/compute-runtime-AMFVJMF2.mjs.map +0 -7
- package/dist/lib/node-esm/hooks/index.mjs +0 -14
- package/dist/lib/node-esm/index.mjs +0 -124
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/operation-resolver-CBLQHL4N.mjs +0 -85
- package/dist/lib/node-esm/operation-resolver-CBLQHL4N.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-Z74AHU4T.mjs +0 -66
- package/dist/lib/node-esm/react-surface-Z74AHU4T.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -15
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/compute-runtime/compute-runtime.d.ts.map +0 -1
- package/dist/types/src/capabilities/compute-runtime/index.d.ts +0 -3
- package/dist/types/src/capabilities/compute-runtime/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/cli/commands/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/create/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/create/queue.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/create/subscription.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/create/timer.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/options.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/remove.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/update/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/update/queue.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/update/subscription.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/update/timer.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/util.d.ts.map +0 -1
- package/dist/types/src/cli/index.d.ts +0 -2
- package/dist/types/src/cli/index.d.ts.map +0 -1
- package/dist/types/src/cli/plugin.d.ts.map +0 -1
- package/dist/types/src/types/capabilities.d.ts +0 -22
- package/dist/types/src/types/capabilities.d.ts.map +0 -1
- package/dist/types/src/types/events.d.ts +0 -5
- package/dist/types/src/types/events.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -73
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/compute-runtime/compute-runtime.ts +0 -146
- package/src/capabilities/compute-runtime/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -80
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/cli/index.ts +0 -5
- package/src/cli/plugin.ts +0 -24
- package/src/types/capabilities.ts +0 -43
- package/src/types/events.ts +0 -11
- /package/dist/lib/{browser/AutomationPanel-IGLIQY2N.mjs.map → neutral/AutomationPanel-64U7W3SJ.mjs.map} +0 -0
- /package/dist/lib/{browser/FunctionsPanel-NMA4RYJL.mjs.map → neutral/TriggerSettings-XCHIZPOR.mjs.map} +0 -0
- /package/dist/lib/{browser/FunctionsRegistry-TMKAEG5E.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{browser/hooks → neutral/components}/index.mjs.map +0 -0
- /package/dist/lib/{browser/types → neutral}/index.mjs.map +0 -0
- /package/dist/lib/{browser/TriggerSettings-56AIMOEC.mjs.map → neutral/meta.mjs.map} +0 -0
- /package/dist/lib/{node-esm/hooks → neutral/operations}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm → neutral}/types/index.mjs.map +0 -0
- /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
- /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
- /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/trigger/options.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/trigger/update/queue.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/trigger/update/subscription.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/trigger/update/timer.d.ts +0 -0
- /package/src/{cli/commands → commands}/index.ts +0 -0
- /package/src/{cli/commands → commands}/trigger/create/index.ts +0 -0
- /package/src/{cli/commands → commands}/trigger/index.ts +0 -0
- /package/src/{cli/commands → commands}/trigger/options.ts +0 -0
- /package/src/{cli/commands → commands}/trigger/update/index.ts +0 -0
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
ComputeRuntime
|
|
3
|
-
} from "../chunk-Z7F7X2C5.mjs";
|
|
4
|
-
import {
|
|
5
|
-
AutomationEvents
|
|
6
|
-
} from "../chunk-GVHAETEQ.mjs";
|
|
7
|
-
import {
|
|
8
|
-
meta
|
|
9
|
-
} from "../chunk-EL64ZPPN.mjs";
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
10
2
|
|
|
11
|
-
// src/
|
|
3
|
+
// src/AutomationPlugin.node.ts
|
|
12
4
|
import { Plugin } from "@dxos/app-framework";
|
|
13
5
|
import { AppPlugin } from "@dxos/app-toolkit";
|
|
14
|
-
import {
|
|
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/
|
|
12
|
+
// src/commands/trigger/index.ts
|
|
17
13
|
import * as Command11 from "@effect/cli/Command";
|
|
18
14
|
|
|
19
|
-
// src/
|
|
15
|
+
// src/commands/trigger/create/index.ts
|
|
20
16
|
import * as Command4 from "@effect/cli/Command";
|
|
21
17
|
|
|
22
|
-
// src/
|
|
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/
|
|
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/
|
|
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,9 +59,9 @@ 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 {
|
|
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
65
|
import { FeedAnnotation } from "@dxos/schema";
|
|
70
66
|
var getTriggerRemoteStatus = (trigger2, remoteCronIds) => {
|
|
71
67
|
if (trigger2.spec?.kind !== "timer") {
|
|
@@ -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.
|
|
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(
|
|
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(
|
|
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 {
|
|
@@ -321,7 +317,7 @@ var printTriggerRemoved = (id) => FormBuilder.make({
|
|
|
321
317
|
title: "Trigger removed"
|
|
322
318
|
}).pipe(FormBuilder.set("id", id), FormBuilder.build);
|
|
323
319
|
|
|
324
|
-
// src/
|
|
320
|
+
// src/commands/trigger/create/queue.ts
|
|
325
321
|
var queue = Command.make("queue", {
|
|
326
322
|
spaceId: Common.spaceId.pipe(Options2.optional),
|
|
327
323
|
enabled: Enabled,
|
|
@@ -334,7 +330,7 @@ var queue = Command.make("queue", {
|
|
|
334
330
|
onNone: () => selectFunction(),
|
|
335
331
|
onSome: (id) => Effect2.succeed(id)
|
|
336
332
|
});
|
|
337
|
-
const functions = yield* Database2.runQuery(Filter2.type(
|
|
333
|
+
const functions = yield* Database2.runQuery(Filter2.type(Operation2.PersistentOperation));
|
|
338
334
|
const fn6 = functions.find((fn7) => fn7.id === functionId);
|
|
339
335
|
if (!fn6) {
|
|
340
336
|
return yield* Effect2.fail(new Error(`Function not found: ${functionId}`));
|
|
@@ -357,10 +353,7 @@ var queue = Command.make("queue", {
|
|
|
357
353
|
const trigger2 = Trigger2.make({
|
|
358
354
|
function: Ref2.make(fn6),
|
|
359
355
|
enabled,
|
|
360
|
-
spec:
|
|
361
|
-
kind: "queue",
|
|
362
|
-
queue: queueDxn
|
|
363
|
-
},
|
|
356
|
+
spec: Trigger2.specQueue(queueDxn),
|
|
364
357
|
input
|
|
365
358
|
});
|
|
366
359
|
yield* Database2.add(trigger2);
|
|
@@ -372,9 +365,9 @@ var queue = Command.make("queue", {
|
|
|
372
365
|
yield* flushAndSync({
|
|
373
366
|
indexes: true
|
|
374
367
|
});
|
|
375
|
-
})).pipe(Command.withDescription("Create a queue trigger."), Command.provide(({ spaceId }) => spaceLayer(spaceId, true)), Command.provideEffectDiscard(() => withTypes(
|
|
368
|
+
})).pipe(Command.withDescription("Create a queue trigger."), Command.provide(({ spaceId }) => spaceLayer(spaceId, true)), Command.provideEffectDiscard(() => withTypes(Operation2.PersistentOperation, Trigger2.Trigger)));
|
|
376
369
|
|
|
377
|
-
// src/
|
|
370
|
+
// src/commands/trigger/create/subscription.ts
|
|
378
371
|
import * as Command2 from "@effect/cli/Command";
|
|
379
372
|
import * as Options3 from "@effect/cli/Options";
|
|
380
373
|
import * as Prompt3 from "@effect/cli/Prompt";
|
|
@@ -385,8 +378,8 @@ import * as Option3 from "effect/Option";
|
|
|
385
378
|
import { CommandConfig as CommandConfig2 } from "@dxos/cli-util";
|
|
386
379
|
import { flushAndSync as flushAndSync2, print as print2, spaceLayer as spaceLayer2, withTypes as withTypes2 } from "@dxos/cli-util";
|
|
387
380
|
import { Common as Common2 } from "@dxos/cli-util";
|
|
388
|
-
import {
|
|
389
|
-
import {
|
|
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";
|
|
390
383
|
var subscription = Command2.make("subscription", {
|
|
391
384
|
spaceId: Common2.spaceId.pipe(Options3.optional),
|
|
392
385
|
enabled: Enabled,
|
|
@@ -401,7 +394,7 @@ var subscription = Command2.make("subscription", {
|
|
|
401
394
|
onNone: () => selectFunction(),
|
|
402
395
|
onSome: (id) => Effect3.succeed(id)
|
|
403
396
|
});
|
|
404
|
-
const functions = yield* Database3.runQuery(Filter3.type(
|
|
397
|
+
const functions = yield* Database3.runQuery(Filter3.type(Operation3.PersistentOperation));
|
|
405
398
|
const fn6 = functions.find((fn7) => fn7.id === functionId);
|
|
406
399
|
if (!fn6) {
|
|
407
400
|
return yield* Effect3.fail(new Error(`Function not found: ${functionId}`));
|
|
@@ -412,7 +405,7 @@ var subscription = Command2.make("subscription", {
|
|
|
412
405
|
}).pipe(Prompt3.run),
|
|
413
406
|
onSome: (value2) => Effect3.succeed(value2)
|
|
414
407
|
});
|
|
415
|
-
const
|
|
408
|
+
const subscriptionQuery = Query2.select(Filter3.type(typename));
|
|
416
409
|
const deepOption = yield* Option3.match(options.deep, {
|
|
417
410
|
onNone: () => Prompt3.confirm({
|
|
418
411
|
message: "Watch changes to nested properties (deep)?",
|
|
@@ -450,13 +443,7 @@ var subscription = Command2.make("subscription", {
|
|
|
450
443
|
const trigger2 = Trigger3.make({
|
|
451
444
|
function: Ref3.make(fn6),
|
|
452
445
|
enabled,
|
|
453
|
-
spec:
|
|
454
|
-
kind: "subscription",
|
|
455
|
-
query: {
|
|
456
|
-
ast: queryAst
|
|
457
|
-
},
|
|
458
|
-
options: Object.keys(subscriptionOptions).length > 0 ? subscriptionOptions : void 0
|
|
459
|
-
},
|
|
446
|
+
spec: Trigger3.specSubscription(subscriptionQuery, Object.keys(subscriptionOptions).length > 0 ? subscriptionOptions : void 0),
|
|
460
447
|
input
|
|
461
448
|
});
|
|
462
449
|
yield* Database3.add(trigger2);
|
|
@@ -468,9 +455,9 @@ var subscription = Command2.make("subscription", {
|
|
|
468
455
|
yield* flushAndSync2({
|
|
469
456
|
indexes: true
|
|
470
457
|
});
|
|
471
|
-
})).pipe(Command2.withDescription("Create a subscription trigger."), Command2.provide(({ spaceId }) => spaceLayer2(spaceId, true)), Command2.provideEffectDiscard(() => withTypes2(
|
|
458
|
+
})).pipe(Command2.withDescription("Create a subscription trigger."), Command2.provide(({ spaceId }) => spaceLayer2(spaceId, true)), Command2.provideEffectDiscard(() => withTypes2(Operation3.PersistentOperation, Trigger3.Trigger)));
|
|
472
459
|
|
|
473
|
-
// src/
|
|
460
|
+
// src/commands/trigger/create/timer.ts
|
|
474
461
|
import * as Command3 from "@effect/cli/Command";
|
|
475
462
|
import * as Options4 from "@effect/cli/Options";
|
|
476
463
|
import * as Prompt4 from "@effect/cli/Prompt";
|
|
@@ -481,8 +468,8 @@ import * as Option4 from "effect/Option";
|
|
|
481
468
|
import { CommandConfig as CommandConfig3 } from "@dxos/cli-util";
|
|
482
469
|
import { flushAndSync as flushAndSync3, print as print3, spaceLayer as spaceLayer3, withTypes as withTypes3 } from "@dxos/cli-util";
|
|
483
470
|
import { Common as Common3 } from "@dxos/cli-util";
|
|
471
|
+
import { Operation as Operation4, Trigger as Trigger4 } from "@dxos/compute";
|
|
484
472
|
import { Database as Database4, Filter as Filter4, JsonSchema as JsonSchema3, Ref as Ref4 } from "@dxos/echo";
|
|
485
|
-
import { Function as Function4, Trigger as Trigger4 } from "@dxos/functions";
|
|
486
473
|
var timer = Command3.make("timer", {
|
|
487
474
|
spaceId: Common3.spaceId.pipe(Options4.optional),
|
|
488
475
|
enabled: Enabled,
|
|
@@ -495,7 +482,7 @@ var timer = Command3.make("timer", {
|
|
|
495
482
|
onNone: () => selectFunction(),
|
|
496
483
|
onSome: (id) => Effect4.succeed(id)
|
|
497
484
|
});
|
|
498
|
-
const functions = yield* Database4.runQuery(Filter4.type(
|
|
485
|
+
const functions = yield* Database4.runQuery(Filter4.type(Operation4.PersistentOperation));
|
|
499
486
|
const fn6 = functions.find((fn7) => fn7.id === functionId);
|
|
500
487
|
if (!fn6) {
|
|
501
488
|
return yield* Effect4.fail(new Error(`Function not found: ${functionId}`));
|
|
@@ -520,10 +507,7 @@ var timer = Command3.make("timer", {
|
|
|
520
507
|
const trigger2 = Trigger4.make({
|
|
521
508
|
function: Ref4.make(fn6),
|
|
522
509
|
enabled,
|
|
523
|
-
spec:
|
|
524
|
-
kind: "timer",
|
|
525
|
-
cron
|
|
526
|
-
},
|
|
510
|
+
spec: Trigger4.specTimer(cron),
|
|
527
511
|
input
|
|
528
512
|
});
|
|
529
513
|
yield* Database4.add(trigger2);
|
|
@@ -535,33 +519,35 @@ var timer = Command3.make("timer", {
|
|
|
535
519
|
yield* flushAndSync3({
|
|
536
520
|
indexes: true
|
|
537
521
|
});
|
|
538
|
-
})).pipe(Command3.withDescription("Create a timer trigger."), Command3.provide(({ spaceId }) => spaceLayer3(spaceId, true)), Command3.provideEffectDiscard(() => withTypes3(
|
|
522
|
+
})).pipe(Command3.withDescription("Create a timer trigger."), Command3.provide(({ spaceId }) => spaceLayer3(spaceId, true)), Command3.provideEffectDiscard(() => withTypes3(Operation4.PersistentOperation, Trigger4.Trigger)));
|
|
539
523
|
|
|
540
|
-
// src/
|
|
524
|
+
// src/commands/trigger/create/index.ts
|
|
541
525
|
var create = Command4.make("create").pipe(Command4.withDescription("Create a trigger."), Command4.withSubcommands([
|
|
542
526
|
subscription,
|
|
543
527
|
timer,
|
|
544
528
|
queue
|
|
545
529
|
]));
|
|
546
530
|
|
|
547
|
-
// src/
|
|
531
|
+
// src/commands/trigger/list.ts
|
|
548
532
|
import * as Command5 from "@effect/cli/Command";
|
|
549
533
|
import * as Options5 from "@effect/cli/Options";
|
|
550
534
|
import * as Console5 from "effect/Console";
|
|
551
535
|
import * as Effect5 from "effect/Effect";
|
|
552
536
|
import { CommandConfig as CommandConfig4, Common as Common4, printList, spaceIdWithDefault, spaceLayer as spaceLayer4 } from "@dxos/cli-util";
|
|
553
537
|
import { ClientService } from "@dxos/client";
|
|
554
|
-
import {
|
|
555
|
-
import {
|
|
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";
|
|
556
542
|
var list = Command5.make("list", {
|
|
557
543
|
spaceId: Common4.spaceId.pipe(Options5.optional)
|
|
558
544
|
}, Effect5.fn(function* ({ spaceId: spaceIdOption }) {
|
|
559
545
|
const { json } = yield* CommandConfig4;
|
|
560
|
-
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"));
|
|
561
547
|
const remoteCronIds = yield* Effect5.gen(function* () {
|
|
562
548
|
const client = yield* ClientService;
|
|
563
549
|
const spaceId = yield* spaceIdWithDefault(spaceIdOption);
|
|
564
|
-
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({
|
|
565
551
|
cronIds: []
|
|
566
552
|
})));
|
|
567
553
|
return result.cronIds;
|
|
@@ -585,16 +571,16 @@ var list = Command5.make("list", {
|
|
|
585
571
|
}
|
|
586
572
|
})).pipe(Command5.withDescription("List triggers configured on EDGE."), Command5.provide(({ spaceId }) => spaceLayer4(spaceId, true)));
|
|
587
573
|
|
|
588
|
-
// src/
|
|
574
|
+
// src/commands/trigger/remove.ts
|
|
589
575
|
import * as Command6 from "@effect/cli/Command";
|
|
590
576
|
import * as Options6 from "@effect/cli/Options";
|
|
591
577
|
import * as Console6 from "effect/Console";
|
|
592
578
|
import * as Effect6 from "effect/Effect";
|
|
593
579
|
import * as Option5 from "effect/Option";
|
|
594
580
|
import { CommandConfig as CommandConfig5, Common as Common5, print as print4, spaceLayer as spaceLayer5, withTypes as withTypes4 } from "@dxos/cli-util";
|
|
581
|
+
import { Trigger as Trigger6 } from "@dxos/compute";
|
|
595
582
|
import { DXN as DXN2 } from "@dxos/echo";
|
|
596
583
|
import { Database as Database6 } from "@dxos/echo";
|
|
597
|
-
import { Trigger as Trigger6 } from "@dxos/functions";
|
|
598
584
|
var remove = Command6.make("remove", {
|
|
599
585
|
spaceId: Common5.spaceId.pipe(Options6.optional),
|
|
600
586
|
id: TriggerId.pipe(Options6.optional)
|
|
@@ -617,10 +603,10 @@ var remove = Command6.make("remove", {
|
|
|
617
603
|
}
|
|
618
604
|
})).pipe(Command6.withDescription("Remove a trigger."), Command6.provide(({ spaceId }) => spaceLayer5(spaceId, true)), Command6.provideEffectDiscard(() => withTypes4(Trigger6.Trigger)));
|
|
619
605
|
|
|
620
|
-
// src/
|
|
606
|
+
// src/commands/trigger/update/index.ts
|
|
621
607
|
import * as Command10 from "@effect/cli/Command";
|
|
622
608
|
|
|
623
|
-
// src/
|
|
609
|
+
// src/commands/trigger/update/queue.ts
|
|
624
610
|
import * as Command7 from "@effect/cli/Command";
|
|
625
611
|
import * as Options7 from "@effect/cli/Options";
|
|
626
612
|
import * as Prompt5 from "@effect/cli/Prompt";
|
|
@@ -630,8 +616,8 @@ import * as Option6 from "effect/Option";
|
|
|
630
616
|
import { CommandConfig as CommandConfig6 } from "@dxos/cli-util";
|
|
631
617
|
import { flushAndSync as flushAndSync4, print as print5, spaceLayer as spaceLayer6, withTypes as withTypes5 } from "@dxos/cli-util";
|
|
632
618
|
import { Common as Common6 } from "@dxos/cli-util";
|
|
619
|
+
import { Operation as Operation5, Trigger as Trigger7 } from "@dxos/compute";
|
|
633
620
|
import { DXN as DXN3, Database as Database7, Filter as Filter6, JsonSchema as JsonSchema4, Obj as Obj2, Ref as Ref5 } from "@dxos/echo";
|
|
634
|
-
import { Function as Function5, Trigger as Trigger7 } from "@dxos/functions";
|
|
635
621
|
var queue2 = Command7.make("queue", {
|
|
636
622
|
spaceId: Common6.spaceId.pipe(Options7.optional),
|
|
637
623
|
id: TriggerId.pipe(Options7.optional),
|
|
@@ -662,10 +648,10 @@ var queue2 = Command7.make("queue", {
|
|
|
662
648
|
yield* flushAndSync4({
|
|
663
649
|
indexes: true
|
|
664
650
|
});
|
|
665
|
-
})).pipe(Command7.withDescription("Update a queue trigger."), Command7.provide(({ spaceId }) => spaceLayer6(spaceId, true)), Command7.provideEffectDiscard(() => withTypes5(
|
|
651
|
+
})).pipe(Command7.withDescription("Update a queue trigger."), Command7.provide(({ spaceId }) => spaceLayer6(spaceId, true)), Command7.provideEffectDiscard(() => withTypes5(Operation5.PersistentOperation, Trigger7.Trigger)));
|
|
666
652
|
var updateFunction = Effect7.fn(function* (trigger2, functionIdOption) {
|
|
667
653
|
let currentFn = trigger2.function ? yield* Database7.load(trigger2.function) : void 0;
|
|
668
|
-
if (currentFn && !Obj2.instanceOf(
|
|
654
|
+
if (currentFn && !Obj2.instanceOf(Operation5.PersistentOperation, currentFn)) {
|
|
669
655
|
currentFn = void 0;
|
|
670
656
|
}
|
|
671
657
|
const currentFunctionName = currentFn ? currentFn.name ?? currentFn.id : void 0;
|
|
@@ -681,13 +667,13 @@ var updateFunction = Effect7.fn(function* (trigger2, functionIdOption) {
|
|
|
681
667
|
onNone: () => selectFunction(),
|
|
682
668
|
onSome: (id) => Effect7.succeed(id)
|
|
683
669
|
});
|
|
684
|
-
const functions = yield* Database7.runQuery(Filter6.type(
|
|
670
|
+
const functions = yield* Database7.runQuery(Filter6.type(Operation5.PersistentOperation));
|
|
685
671
|
const foundFn = functions.find((fn6) => fn6.id === functionId);
|
|
686
|
-
if (!foundFn || !Obj2.instanceOf(
|
|
672
|
+
if (!foundFn || !Obj2.instanceOf(Operation5.PersistentOperation, foundFn)) {
|
|
687
673
|
return yield* Effect7.fail(new Error(`Function not found: ${functionId}`));
|
|
688
674
|
}
|
|
689
|
-
Obj2.
|
|
690
|
-
|
|
675
|
+
Obj2.update(trigger2, (trigger3) => {
|
|
676
|
+
trigger3.function = Ref5.make(foundFn);
|
|
691
677
|
});
|
|
692
678
|
currentFn = foundFn;
|
|
693
679
|
}
|
|
@@ -712,9 +698,9 @@ var updateQueue = Effect7.fn(function* (trigger2, queueOption) {
|
|
|
712
698
|
onNone: () => selectQueue(),
|
|
713
699
|
onSome: (dxn) => Effect7.succeed(dxn.toString())
|
|
714
700
|
});
|
|
715
|
-
Obj2.
|
|
716
|
-
if (
|
|
717
|
-
|
|
701
|
+
Obj2.update(trigger2, (trigger3) => {
|
|
702
|
+
if (trigger3.spec?.kind === "queue") {
|
|
703
|
+
trigger3.spec.queue = queueDxn;
|
|
718
704
|
}
|
|
719
705
|
});
|
|
720
706
|
}
|
|
@@ -737,8 +723,8 @@ var updateInput = Effect7.fn(function* (trigger2, fn6, inputOption) {
|
|
|
737
723
|
onNone: () => promptForSchemaInput(fn6.inputSchema ? JsonSchema4.toEffectSchema(fn6.inputSchema) : void 0, currentInput),
|
|
738
724
|
onSome: (value2) => Effect7.succeed(value2)
|
|
739
725
|
});
|
|
740
|
-
Obj2.
|
|
741
|
-
|
|
726
|
+
Obj2.update(trigger2, (trigger3) => {
|
|
727
|
+
trigger3.input = inputObj;
|
|
742
728
|
});
|
|
743
729
|
}
|
|
744
730
|
});
|
|
@@ -750,12 +736,12 @@ var updateEnabled = Effect7.fn(function* (trigger2, idOption, enabled) {
|
|
|
750
736
|
}).pipe(Prompt5.run),
|
|
751
737
|
onSome: () => Effect7.succeed(enabled)
|
|
752
738
|
});
|
|
753
|
-
Obj2.
|
|
754
|
-
|
|
739
|
+
Obj2.update(trigger2, (trigger3) => {
|
|
740
|
+
trigger3.enabled = enabledValue;
|
|
755
741
|
});
|
|
756
742
|
});
|
|
757
743
|
|
|
758
|
-
// src/
|
|
744
|
+
// src/commands/trigger/update/subscription.ts
|
|
759
745
|
import * as Command8 from "@effect/cli/Command";
|
|
760
746
|
import * as Options8 from "@effect/cli/Options";
|
|
761
747
|
import * as Prompt6 from "@effect/cli/Prompt";
|
|
@@ -766,8 +752,8 @@ import * as Option7 from "effect/Option";
|
|
|
766
752
|
import { CommandConfig as CommandConfig7 } from "@dxos/cli-util";
|
|
767
753
|
import { flushAndSync as flushAndSync5, print as print6, spaceLayer as spaceLayer7, withTypes as withTypes6 } from "@dxos/cli-util";
|
|
768
754
|
import { Common as Common7 } from "@dxos/cli-util";
|
|
769
|
-
import {
|
|
770
|
-
import {
|
|
755
|
+
import { Operation as Operation6, Trigger as Trigger8 } from "@dxos/compute";
|
|
756
|
+
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";
|
|
771
757
|
var subscription2 = Command8.make("subscription", {
|
|
772
758
|
spaceId: Common7.spaceId.pipe(Options8.optional),
|
|
773
759
|
id: TriggerId.pipe(Options8.optional),
|
|
@@ -800,7 +786,7 @@ var subscription2 = Command8.make("subscription", {
|
|
|
800
786
|
yield* flushAndSync5({
|
|
801
787
|
indexes: true
|
|
802
788
|
});
|
|
803
|
-
})).pipe(Command8.withDescription("Update a subscription trigger."), Command8.provide(({ spaceId }) => spaceLayer7(spaceId, true)), Command8.provideEffectDiscard(() => withTypes6(
|
|
789
|
+
})).pipe(Command8.withDescription("Update a subscription trigger."), Command8.provide(({ spaceId }) => spaceLayer7(spaceId, true)), Command8.provideEffectDiscard(() => withTypes6(Operation6.PersistentOperation, Trigger8.Trigger)));
|
|
804
790
|
var extractCurrentTypename = (spec) => {
|
|
805
791
|
if (!spec?.query?.ast) {
|
|
806
792
|
return Option7.none();
|
|
@@ -813,7 +799,7 @@ var extractCurrentTypename = (spec) => {
|
|
|
813
799
|
};
|
|
814
800
|
var updateFunction2 = Effect8.fn(function* (trigger2, functionIdOption) {
|
|
815
801
|
let currentFn = trigger2.function ? yield* Database8.load(trigger2.function) : void 0;
|
|
816
|
-
if (currentFn && !Obj3.instanceOf(
|
|
802
|
+
if (currentFn && !Obj3.instanceOf(Operation6.PersistentOperation, currentFn)) {
|
|
817
803
|
currentFn = void 0;
|
|
818
804
|
}
|
|
819
805
|
const currentFunctionName = currentFn ? currentFn.name ?? currentFn.id : void 0;
|
|
@@ -829,13 +815,13 @@ var updateFunction2 = Effect8.fn(function* (trigger2, functionIdOption) {
|
|
|
829
815
|
onNone: () => selectFunction(),
|
|
830
816
|
onSome: (id) => Effect8.succeed(id)
|
|
831
817
|
});
|
|
832
|
-
const functions = yield* Database8.runQuery(Filter7.type(
|
|
818
|
+
const functions = yield* Database8.runQuery(Filter7.type(Operation6.PersistentOperation));
|
|
833
819
|
const foundFn = functions.find((fn6) => fn6.id === functionId);
|
|
834
|
-
if (!foundFn || !Obj3.instanceOf(
|
|
820
|
+
if (!foundFn || !Obj3.instanceOf(Operation6.PersistentOperation, foundFn)) {
|
|
835
821
|
return yield* Effect8.fail(new Error(`Function not found: ${functionId}`));
|
|
836
822
|
}
|
|
837
|
-
Obj3.
|
|
838
|
-
|
|
823
|
+
Obj3.update(trigger2, (trigger3) => {
|
|
824
|
+
trigger3.function = Ref6.make(foundFn);
|
|
839
825
|
});
|
|
840
826
|
currentFn = foundFn;
|
|
841
827
|
}
|
|
@@ -874,7 +860,7 @@ var updateSpec = Effect8.fn(function* (trigger2, typenameOption, deepOption, del
|
|
|
874
860
|
}).pipe(Prompt6.run),
|
|
875
861
|
onSome: (value2) => Effect8.succeed(value2)
|
|
876
862
|
});
|
|
877
|
-
const queryAst =
|
|
863
|
+
const queryAst = Query4.select(Filter7.type(typename)).ast;
|
|
878
864
|
const deepOptionValue = yield* Option7.match(deepOption, {
|
|
879
865
|
onNone: () => Prompt6.confirm({
|
|
880
866
|
message: "Watch changes to nested properties (deep)?",
|
|
@@ -899,8 +885,8 @@ var updateSpec = Effect8.fn(function* (trigger2, typenameOption, deepOption, del
|
|
|
899
885
|
if (Option7.isSome(delayOptionValue)) {
|
|
900
886
|
subscriptionOptions.delay = delayOptionValue.value;
|
|
901
887
|
}
|
|
902
|
-
Obj3.
|
|
903
|
-
const spec =
|
|
888
|
+
Obj3.update(trigger2, (trigger3) => {
|
|
889
|
+
const spec = trigger3.spec;
|
|
904
890
|
if (spec?.kind === "subscription") {
|
|
905
891
|
spec.query = {
|
|
906
892
|
ast: queryAst
|
|
@@ -928,8 +914,8 @@ var updateInput2 = Effect8.fn(function* (trigger2, fn6, inputOption) {
|
|
|
928
914
|
onNone: () => promptForSchemaInput(fn6.inputSchema ? JsonSchema5.toEffectSchema(fn6.inputSchema) : void 0, currentInput),
|
|
929
915
|
onSome: (value2) => Effect8.succeed(value2)
|
|
930
916
|
});
|
|
931
|
-
Obj3.
|
|
932
|
-
|
|
917
|
+
Obj3.update(trigger2, (trigger3) => {
|
|
918
|
+
trigger3.input = inputObj;
|
|
933
919
|
});
|
|
934
920
|
}
|
|
935
921
|
});
|
|
@@ -941,12 +927,12 @@ var updateEnabled2 = Effect8.fn(function* (trigger2, idOption, enabled) {
|
|
|
941
927
|
}).pipe(Prompt6.run),
|
|
942
928
|
onSome: () => Effect8.succeed(enabled)
|
|
943
929
|
});
|
|
944
|
-
Obj3.
|
|
945
|
-
|
|
930
|
+
Obj3.update(trigger2, (trigger3) => {
|
|
931
|
+
trigger3.enabled = enabledValue;
|
|
946
932
|
});
|
|
947
933
|
});
|
|
948
934
|
|
|
949
|
-
// src/
|
|
935
|
+
// src/commands/trigger/update/timer.ts
|
|
950
936
|
import * as Command9 from "@effect/cli/Command";
|
|
951
937
|
import * as Options9 from "@effect/cli/Options";
|
|
952
938
|
import * as Prompt7 from "@effect/cli/Prompt";
|
|
@@ -956,8 +942,8 @@ import * as Option8 from "effect/Option";
|
|
|
956
942
|
import { CommandConfig as CommandConfig8 } from "@dxos/cli-util";
|
|
957
943
|
import { flushAndSync as flushAndSync6, print as print7, spaceLayer as spaceLayer8, withTypes as withTypes7 } from "@dxos/cli-util";
|
|
958
944
|
import { Common as Common8 } from "@dxos/cli-util";
|
|
945
|
+
import { Operation as Operation7, Trigger as Trigger9 } from "@dxos/compute";
|
|
959
946
|
import { DXN as DXN5, Database as Database9, Filter as Filter8, JsonSchema as JsonSchema6, Obj as Obj4, Ref as Ref7 } from "@dxos/echo";
|
|
960
|
-
import { Function as Function7, Trigger as Trigger9 } from "@dxos/functions";
|
|
961
947
|
var timer2 = Command9.make("timer", {
|
|
962
948
|
spaceId: Common8.spaceId.pipe(Options9.optional),
|
|
963
949
|
id: TriggerId.pipe(Options9.optional),
|
|
@@ -988,10 +974,10 @@ var timer2 = Command9.make("timer", {
|
|
|
988
974
|
yield* flushAndSync6({
|
|
989
975
|
indexes: true
|
|
990
976
|
});
|
|
991
|
-
})).pipe(Command9.withDescription("Update a timer trigger."), Command9.provide(({ spaceId }) => spaceLayer8(spaceId, true)), Command9.provideEffectDiscard(() => withTypes7(
|
|
977
|
+
})).pipe(Command9.withDescription("Update a timer trigger."), Command9.provide(({ spaceId }) => spaceLayer8(spaceId, true)), Command9.provideEffectDiscard(() => withTypes7(Operation7.PersistentOperation, Trigger9.Trigger)));
|
|
992
978
|
var updateFunction3 = Effect9.fn(function* (trigger2, functionIdOption) {
|
|
993
979
|
let currentFn = trigger2.function ? yield* Database9.load(trigger2.function) : void 0;
|
|
994
|
-
if (currentFn && !Obj4.instanceOf(
|
|
980
|
+
if (currentFn && !Obj4.instanceOf(Operation7.PersistentOperation, currentFn)) {
|
|
995
981
|
currentFn = void 0;
|
|
996
982
|
}
|
|
997
983
|
const currentFunctionName = currentFn ? currentFn.name ?? currentFn.id : void 0;
|
|
@@ -1007,13 +993,13 @@ var updateFunction3 = Effect9.fn(function* (trigger2, functionIdOption) {
|
|
|
1007
993
|
onNone: () => selectFunction(),
|
|
1008
994
|
onSome: (id) => Effect9.succeed(id)
|
|
1009
995
|
});
|
|
1010
|
-
const functions = yield* Database9.runQuery(Filter8.type(
|
|
996
|
+
const functions = yield* Database9.runQuery(Filter8.type(Operation7.PersistentOperation));
|
|
1011
997
|
const foundFn = functions.find((fn6) => fn6.id === functionId);
|
|
1012
|
-
if (!foundFn || !Obj4.instanceOf(
|
|
998
|
+
if (!foundFn || !Obj4.instanceOf(Operation7.PersistentOperation, foundFn)) {
|
|
1013
999
|
return yield* Effect9.fail(new Error(`Function not found: ${functionId}`));
|
|
1014
1000
|
}
|
|
1015
|
-
Obj4.
|
|
1016
|
-
|
|
1001
|
+
Obj4.update(trigger2, (trigger3) => {
|
|
1002
|
+
trigger3.function = Ref7.make(foundFn);
|
|
1017
1003
|
});
|
|
1018
1004
|
currentFn = foundFn;
|
|
1019
1005
|
}
|
|
@@ -1039,9 +1025,9 @@ var updateCron = Effect9.fn(function* (trigger2, cronOption) {
|
|
|
1039
1025
|
}).pipe(Prompt7.run),
|
|
1040
1026
|
onSome: (value2) => Effect9.succeed(value2)
|
|
1041
1027
|
});
|
|
1042
|
-
Obj4.
|
|
1043
|
-
if (
|
|
1044
|
-
|
|
1028
|
+
Obj4.update(trigger2, (trigger3) => {
|
|
1029
|
+
if (trigger3.spec?.kind === "timer") {
|
|
1030
|
+
trigger3.spec.cron = cron;
|
|
1045
1031
|
}
|
|
1046
1032
|
});
|
|
1047
1033
|
}
|
|
@@ -1064,8 +1050,8 @@ var updateInput3 = Effect9.fn(function* (trigger2, fn6, inputOption) {
|
|
|
1064
1050
|
onNone: () => promptForSchemaInput(fn6.inputSchema ? JsonSchema6.toEffectSchema(fn6.inputSchema) : void 0, currentInput),
|
|
1065
1051
|
onSome: (value2) => Effect9.succeed(value2)
|
|
1066
1052
|
});
|
|
1067
|
-
Obj4.
|
|
1068
|
-
|
|
1053
|
+
Obj4.update(trigger2, (trigger3) => {
|
|
1054
|
+
trigger3.input = inputObj;
|
|
1069
1055
|
});
|
|
1070
1056
|
}
|
|
1071
1057
|
});
|
|
@@ -1077,19 +1063,19 @@ var updateEnabled3 = Effect9.fn(function* (trigger2, idOption, enabled) {
|
|
|
1077
1063
|
}).pipe(Prompt7.run),
|
|
1078
1064
|
onSome: () => Effect9.succeed(enabled)
|
|
1079
1065
|
});
|
|
1080
|
-
Obj4.
|
|
1081
|
-
|
|
1066
|
+
Obj4.update(trigger2, (trigger3) => {
|
|
1067
|
+
trigger3.enabled = enabledValue;
|
|
1082
1068
|
});
|
|
1083
1069
|
});
|
|
1084
1070
|
|
|
1085
|
-
// src/
|
|
1071
|
+
// src/commands/trigger/update/index.ts
|
|
1086
1072
|
var update = Command10.make("update").pipe(Command10.withDescription("Update a trigger."), Command10.withSubcommands([
|
|
1087
1073
|
subscription2,
|
|
1088
1074
|
timer2,
|
|
1089
1075
|
queue2
|
|
1090
1076
|
]));
|
|
1091
1077
|
|
|
1092
|
-
// src/
|
|
1078
|
+
// src/commands/trigger/index.ts
|
|
1093
1079
|
var trigger = Command11.make("trigger").pipe(Command11.withDescription("Manage EDGE triggers."), Command11.withSubcommands([
|
|
1094
1080
|
create,
|
|
1095
1081
|
list,
|
|
@@ -1097,19 +1083,31 @@ var trigger = Command11.make("trigger").pipe(Command11.withDescription("Manage E
|
|
|
1097
1083
|
update
|
|
1098
1084
|
]));
|
|
1099
1085
|
|
|
1100
|
-
// src/
|
|
1101
|
-
var AutomationPlugin = Plugin.define(meta).pipe(AppPlugin.
|
|
1086
|
+
// src/AutomationPlugin.node.ts
|
|
1087
|
+
var AutomationPlugin = Plugin.define(meta).pipe(AppPlugin.addAppGraphModule({
|
|
1088
|
+
activate: AppGraphBuilder
|
|
1089
|
+
}), AppPlugin.addCommandModule({
|
|
1102
1090
|
commands: [
|
|
1103
1091
|
trigger
|
|
1104
1092
|
]
|
|
1093
|
+
}), AppPlugin.addOperationHandlerModule({
|
|
1094
|
+
activate: OperationHandler
|
|
1095
|
+
}), AppPlugin.addSchemaModule({
|
|
1096
|
+
schema: [
|
|
1097
|
+
Operation8.PersistentOperation,
|
|
1098
|
+
Trigger10.Trigger,
|
|
1099
|
+
Trace.Message
|
|
1100
|
+
]
|
|
1105
1101
|
}), Plugin.addModule({
|
|
1106
1102
|
activatesOn: ClientEvents.ClientReady,
|
|
1107
|
-
|
|
1103
|
+
firesAfterActivation: [
|
|
1108
1104
|
AutomationEvents.ComputeRuntimeReady
|
|
1109
1105
|
],
|
|
1110
1106
|
activate: ComputeRuntime
|
|
1111
1107
|
}), Plugin.make);
|
|
1108
|
+
var AutomationPlugin_node_default = AutomationPlugin;
|
|
1112
1109
|
export {
|
|
1113
|
-
AutomationPlugin
|
|
1110
|
+
AutomationPlugin,
|
|
1111
|
+
AutomationPlugin_node_default as default
|
|
1114
1112
|
};
|
|
1115
|
-
//# sourceMappingURL=
|
|
1113
|
+
//# sourceMappingURL=AutomationPlugin.node.mjs.map
|