@dxos/plugin-automation 0.8.4-main.8360d9e660 → 0.8.4-main.8baae0fced
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/AutomationPanel-GQCS4EPU.mjs +11 -0
- package/dist/lib/neutral/AutomationPlugin.mjs +10 -0
- package/dist/lib/{browser/cli/index.mjs → neutral/AutomationPlugin.node.mjs} +126 -130
- package/dist/lib/neutral/AutomationPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/AutomationPlugin.workerd.mjs +23 -0
- package/dist/lib/neutral/AutomationPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/AutomationSettings-F6AZQV74.mjs +31 -0
- package/dist/lib/neutral/AutomationSettings-F6AZQV74.mjs.map +7 -0
- package/dist/lib/neutral/FunctionsContainer-2ETGQQR2.mjs +38 -0
- package/dist/lib/neutral/FunctionsContainer-2ETGQQR2.mjs.map +7 -0
- package/dist/lib/{browser/chunk-75XLBFAG.mjs → neutral/FunctionsPanel-SVRKRUXZ.mjs} +22 -22
- package/dist/lib/neutral/FunctionsPanel-SVRKRUXZ.mjs.map +7 -0
- package/dist/lib/{browser/chunk-FUVAC5EC.mjs → neutral/FunctionsRegistry-7ITCFJCW.mjs} +24 -25
- package/dist/lib/neutral/FunctionsRegistry-7ITCFJCW.mjs.map +7 -0
- package/dist/lib/neutral/TriggerSettings-XCHIZPOR.mjs +9 -0
- package/dist/lib/neutral/app-graph-builder-4QOUKY5L.mjs +75 -0
- package/dist/lib/neutral/app-graph-builder-4QOUKY5L.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-4ETZEEYR.mjs} +7 -3
- package/dist/lib/neutral/chunk-4ETZEEYR.mjs.map +7 -0
- package/dist/lib/{browser/chunk-O23LHDEX.mjs → neutral/chunk-EIIPEUUP.mjs} +60 -26
- package/dist/lib/neutral/chunk-EIIPEUUP.mjs.map +7 -0
- package/dist/lib/neutral/chunk-HRUXURVS.mjs +12 -0
- package/dist/lib/neutral/chunk-HRUXURVS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/{browser/chunk-BWEKRPFJ.mjs → neutral/chunk-K3C5ZTZA.mjs} +29 -38
- package/dist/lib/neutral/chunk-K3C5ZTZA.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VCWVO3JE.mjs +8 -0
- package/dist/lib/neutral/chunk-VCWVO3JE.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VRGWNUVV.mjs +36 -0
- package/dist/lib/neutral/chunk-VRGWNUVV.mjs.map +7 -0
- package/dist/lib/neutral/chunk-YA2ZTSOH.mjs +73 -0
- package/dist/lib/neutral/chunk-YA2ZTSOH.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +16 -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-XAJWHKO2.mjs +68 -0
- package/dist/lib/neutral/create-trigger-from-template-XAJWHKO2.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +47 -0
- package/dist/lib/neutral/hooks/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +16 -0
- package/dist/lib/neutral/layer-specs-XLG75KLY.mjs +161 -0
- package/dist/lib/neutral/layer-specs-XLG75KLY.mjs.map +7 -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/testing.mjs +8 -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 +12 -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/AutomationPlugin.workerd.d.ts +4 -0
- package/dist/types/src/AutomationPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.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/layer-specs.d.ts +5 -0
- package/dist/types/src/capabilities/layer-specs.d.ts.map +1 -0
- 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 +4 -4
- 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 +0 -1
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- 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/testing.d.ts +2 -0
- package/dist/types/src/testing.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +32 -33
- package/dist/types/src/translations.d.ts.map +1 -1
- 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 +1 -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 +125 -68
- package/src/AutomationPlugin.node.ts +28 -0
- package/src/AutomationPlugin.test.ts +27 -0
- package/src/AutomationPlugin.tsx +12 -11
- package/src/AutomationPlugin.workerd.ts +18 -0
- package/src/capabilities/app-graph-builder.ts +66 -0
- package/src/capabilities/index.ts +10 -4
- package/src/capabilities/layer-specs.ts +231 -0
- 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 +7 -10
- 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 +2 -3
- package/src/{cli/commands → commands}/trigger/update/queue.ts +19 -20
- 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 +25 -17
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +12 -5
- package/src/components/AutomationPanel/AutomationPanel.tsx +89 -47
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +33 -25
- package/src/components/FunctionsRegistry/FunctionsRegistry.tsx +32 -23
- package/src/components/TriggerEditor/FunctionInputEditor.tsx +4 -4
- package/src/components/TriggerEditor/SpecSelector.tsx +17 -13
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +19 -13
- package/src/components/TriggerEditor/TriggerEditor.tsx +13 -17
- 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 +1 -1
- package/src/hooks/useTriggerRuntimeControls.ts +13 -8
- package/src/index.ts +0 -4
- package/src/meta.ts +3 -1
- package/src/operations/create-trigger-from-template.ts +71 -0
- package/src/operations/index.ts +7 -0
- package/src/plugin.ts +11 -0
- package/src/testing/test-functions.ts +6 -3
- package/src/testing.ts +7 -0
- package/src/translations.ts +38 -39
- package/src/types/AutomationOperation.ts +30 -0
- package/src/types/index.ts +2 -2
- package/src/types/schema.ts +2 -23
- package/dist/lib/browser/AutomationPanel-IGLIQY2N.mjs +0 -11
- package/dist/lib/browser/AutomationSettings-XGJGVBDD.mjs +0 -37
- package/dist/lib/browser/AutomationSettings-XGJGVBDD.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-GW5OEM2G.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-5WMYSXEH.mjs +0 -83
- package/dist/lib/browser/chunk-5WMYSXEH.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-EL64ZPPN.mjs.map +0 -7
- package/dist/lib/browser/chunk-FUVAC5EC.mjs.map +0 -7
- package/dist/lib/browser/chunk-LHJEQVX5.mjs +0 -8
- package/dist/lib/browser/chunk-LHJEQVX5.mjs.map +0 -7
- package/dist/lib/browser/chunk-O23LHDEX.mjs.map +0 -7
- package/dist/lib/browser/chunk-PUYY7B5F.mjs +0 -31
- package/dist/lib/browser/chunk-PUYY7B5F.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZBEMNWNY.mjs +0 -93
- package/dist/lib/browser/chunk-ZBEMNWNY.mjs.map +0 -7
- package/dist/lib/browser/cli/index.mjs.map +0 -7
- package/dist/lib/browser/compute-runtime-I3I2BIRE.mjs +0 -130
- package/dist/lib/browser/compute-runtime-I3I2BIRE.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-NGN4BEWN.mjs +0 -84
- package/dist/lib/browser/operation-resolver-NGN4BEWN.mjs.map +0 -7
- package/dist/lib/browser/react-surface-SXDIM3RM.mjs +0 -65
- package/dist/lib/browser/react-surface-SXDIM3RM.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/AutomationSettings-W52ZO2XI.mjs +0 -38
- package/dist/lib/node-esm/AutomationSettings-W52ZO2XI.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/FunctionsRegistry-7WCHC64E.mjs +0 -11
- package/dist/lib/node-esm/FunctionsRegistry-7WCHC64E.mjs.map +0 -7
- package/dist/lib/node-esm/TriggerSettings-2GKFPECW.mjs +0 -12
- package/dist/lib/node-esm/TriggerSettings-2GKFPECW.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-6JVB3IHW.mjs +0 -97
- package/dist/lib/node-esm/chunk-6JVB3IHW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BNWZ2NNI.mjs +0 -32
- package/dist/lib/node-esm/chunk-BNWZ2NNI.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-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-V3VUE2NR.mjs +0 -10
- package/dist/lib/node-esm/chunk-V3VUE2NR.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/chunk-XCFO2IXT.mjs +0 -84
- package/dist/lib/node-esm/chunk-XCFO2IXT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XQO3HK62.mjs +0 -94
- package/dist/lib/node-esm/chunk-XQO3HK62.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-7HCSIYFG.mjs +0 -131
- package/dist/lib/node-esm/compute-runtime-7HCSIYFG.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-ANGACQZG.mjs +0 -85
- package/dist/lib/node-esm/operation-resolver-ANGACQZG.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-QVLVDEVW.mjs +0 -66
- package/dist/lib/node-esm/react-surface-QVLVDEVW.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 +0 -6
- 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/hooks/useComputeRuntimeCallback.d.ts +0 -12
- package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +0 -1
- package/dist/types/src/types/capabilities.d.ts +0 -23
- 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 -155
- 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/hooks/useComputeRuntimeCallback.ts +0 -67
- package/src/types/capabilities.ts +0 -45
- package/src/types/events.ts +0 -11
- /package/dist/lib/{browser/AutomationPanel-IGLIQY2N.mjs.map → neutral/AutomationPanel-GQCS4EPU.mjs.map} +0 -0
- /package/dist/lib/{browser/FunctionsPanel-NMA4RYJL.mjs.map → neutral/AutomationPlugin.mjs.map} +0 -0
- /package/dist/lib/{browser/FunctionsRegistry-TMKAEG5E.mjs.map → neutral/TriggerSettings-XCHIZPOR.mjs.map} +0 -0
- /package/dist/lib/{browser/TriggerSettings-GW5OEM2G.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/{node-esm/AutomationPanel-O2BCQA7P.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/FunctionsPanel-DCXXLSVP.mjs.map → neutral/testing.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
package/src/hooks/index.ts
CHANGED
|
@@ -7,13 +7,12 @@ import type * as Context from 'effect/Context';
|
|
|
7
7
|
import * as Effect from 'effect/Effect';
|
|
8
8
|
import { useEffect, useState } from 'react';
|
|
9
9
|
|
|
10
|
-
import {
|
|
11
|
-
import { Trigger } from '@dxos/
|
|
10
|
+
import { useSpaceCallback } from '@dxos/app-framework/ui';
|
|
11
|
+
import { Trigger } from '@dxos/compute';
|
|
12
|
+
import { type Database, Filter, Query } from '@dxos/echo';
|
|
12
13
|
import { TriggerDispatcher, type TriggerDispatcherState } from '@dxos/functions-runtime';
|
|
13
14
|
import { useQuery } from '@dxos/react-client/echo';
|
|
14
15
|
|
|
15
|
-
import { useComputeRuntimeCallback } from './useComputeRuntimeCallback';
|
|
16
|
-
|
|
17
16
|
interface TriggerRuntimeControls {
|
|
18
17
|
triggers: Trigger.Trigger[];
|
|
19
18
|
|
|
@@ -24,12 +23,16 @@ interface TriggerRuntimeControls {
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
export const useTriggerRuntimeControls = (db: Database.Database | undefined): TriggerRuntimeControls => {
|
|
27
|
-
const triggers = useQuery(
|
|
26
|
+
const triggers = useQuery(
|
|
27
|
+
db,
|
|
28
|
+
Query.select(Filter.type(Trigger.Trigger)).debugLabel('plugin-automation.useTriggerRuntimeControls'),
|
|
29
|
+
);
|
|
28
30
|
|
|
29
31
|
const [dispatcher, setDispatcher] = useState<Context.Tag.Service<TriggerDispatcher> | undefined>(undefined);
|
|
30
32
|
|
|
31
|
-
const init =
|
|
33
|
+
const init = useSpaceCallback(
|
|
32
34
|
db?.spaceId,
|
|
35
|
+
[TriggerDispatcher],
|
|
33
36
|
Effect.fnUntraced(function* () {
|
|
34
37
|
const dispatcher = yield* TriggerDispatcher;
|
|
35
38
|
setDispatcher(dispatcher);
|
|
@@ -42,16 +45,18 @@ export const useTriggerRuntimeControls = (db: Database.Database | undefined): Tr
|
|
|
42
45
|
|
|
43
46
|
const state = useAtomValue(dispatcher?.state ?? Atom.make(undefined));
|
|
44
47
|
|
|
45
|
-
const start =
|
|
48
|
+
const start = useSpaceCallback(
|
|
46
49
|
db?.spaceId,
|
|
50
|
+
[TriggerDispatcher],
|
|
47
51
|
Effect.fnUntraced(function* () {
|
|
48
52
|
const dispatcher = yield* TriggerDispatcher;
|
|
49
53
|
yield* dispatcher.start();
|
|
50
54
|
}),
|
|
51
55
|
);
|
|
52
56
|
|
|
53
|
-
const stop =
|
|
57
|
+
const stop = useSpaceCallback(
|
|
54
58
|
db?.spaceId,
|
|
59
|
+
[TriggerDispatcher],
|
|
55
60
|
Effect.fnUntraced(function* () {
|
|
56
61
|
const dispatcher = yield* TriggerDispatcher;
|
|
57
62
|
yield* dispatcher.stop();
|
package/src/index.ts
CHANGED
package/src/meta.ts
CHANGED
|
@@ -8,10 +8,12 @@ import { trim } from '@dxos/util';
|
|
|
8
8
|
export const meta: Plugin.Meta = {
|
|
9
9
|
id: 'org.dxos.plugin.automation',
|
|
10
10
|
name: 'Automation',
|
|
11
|
+
author: 'DXOS',
|
|
11
12
|
description: trim`
|
|
12
13
|
Workflow automation engine that triggers custom actions based on object events and conditions.
|
|
13
14
|
Create automated pipelines that respond to changes and streamline repetitive tasks.
|
|
14
15
|
`,
|
|
15
|
-
icon: 'ph--
|
|
16
|
+
icon: 'ph--atom--regular',
|
|
16
17
|
source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-automation',
|
|
18
|
+
tags: ['system'],
|
|
17
19
|
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { LayoutOperation, getSpacePath } from '@dxos/app-toolkit';
|
|
8
|
+
import { Operation, Script, Trigger } from '@dxos/compute';
|
|
9
|
+
import { Filter, Obj, Ref } from '@dxos/echo';
|
|
10
|
+
import { type DXN } from '@dxos/keys';
|
|
11
|
+
import { SpaceOperation } from '@dxos/plugin-space';
|
|
12
|
+
|
|
13
|
+
import { meta } from '#meta';
|
|
14
|
+
|
|
15
|
+
import { AutomationOperation } from '../types';
|
|
16
|
+
|
|
17
|
+
const handler: Operation.WithHandler<typeof AutomationOperation.CreateTriggerFromTemplate> =
|
|
18
|
+
AutomationOperation.CreateTriggerFromTemplate.pipe(
|
|
19
|
+
Operation.withHandler(
|
|
20
|
+
Effect.fnUntraced(function* ({ db, template, enabled = false, scriptName, input }) {
|
|
21
|
+
const trigger = Trigger.make({ enabled, input });
|
|
22
|
+
|
|
23
|
+
// TODO(wittjosiah): Factor out function lookup by script name?
|
|
24
|
+
if (scriptName) {
|
|
25
|
+
const scripts = yield* Effect.promise(() => db.query(Filter.type(Script.Script, { name: scriptName })).run());
|
|
26
|
+
const [script] = scripts;
|
|
27
|
+
if (script) {
|
|
28
|
+
const functions = yield* Effect.promise(() =>
|
|
29
|
+
db.query(Filter.type(Operation.PersistentOperation, { source: Ref.make(script) })).run(),
|
|
30
|
+
);
|
|
31
|
+
const [fn] = functions;
|
|
32
|
+
if (fn) {
|
|
33
|
+
Obj.update(trigger, (trigger) => {
|
|
34
|
+
trigger.function = Ref.make(fn);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
switch (template.type) {
|
|
41
|
+
case 'timer': {
|
|
42
|
+
Obj.update(trigger, (trigger) => {
|
|
43
|
+
trigger.spec = Trigger.specTimer(template.cron);
|
|
44
|
+
});
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
case 'queue': {
|
|
48
|
+
Obj.update(trigger, (trigger) => {
|
|
49
|
+
trigger.spec = Trigger.specQueue((template.queueDXN as DXN).toString());
|
|
50
|
+
});
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
default: {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
59
|
+
object: trigger,
|
|
60
|
+
target: db,
|
|
61
|
+
hidden: true,
|
|
62
|
+
});
|
|
63
|
+
yield* Operation.invoke(LayoutOperation.Open, {
|
|
64
|
+
subject: [`${getSpacePath(db.spaceId)}/settings/${meta.id}.automations`],
|
|
65
|
+
workspace: getSpacePath(db.spaceId),
|
|
66
|
+
});
|
|
67
|
+
}),
|
|
68
|
+
),
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
export default handler;
|
package/src/plugin.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
|
|
7
|
+
import { meta } from './meta';
|
|
8
|
+
|
|
9
|
+
export const AutomationPlugin = Plugin.lazy(meta, () => import('#plugin'));
|
|
10
|
+
|
|
11
|
+
export { AutomationOperationHandlerSet } from './operations';
|
|
@@ -9,7 +9,8 @@ import { JsonSchema, Ref } from '@dxos/echo';
|
|
|
9
9
|
|
|
10
10
|
export const functions = [
|
|
11
11
|
{
|
|
12
|
-
|
|
12
|
+
key: 'com.example.function.chess',
|
|
13
|
+
name: 'com.example.function.chess',
|
|
13
14
|
version: '0.1.0',
|
|
14
15
|
inputSchema: JsonSchema.toJsonSchema(
|
|
15
16
|
Schema.Struct({
|
|
@@ -20,7 +21,8 @@ export const functions = [
|
|
|
20
21
|
),
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
|
-
|
|
24
|
+
key: 'com.example.function.forex',
|
|
25
|
+
name: 'com.example.function.forex',
|
|
24
26
|
version: '0.1.0',
|
|
25
27
|
binding: 'FOREX',
|
|
26
28
|
inputSchema: JsonSchema.toJsonSchema(
|
|
@@ -31,7 +33,8 @@ export const functions = [
|
|
|
31
33
|
),
|
|
32
34
|
},
|
|
33
35
|
{
|
|
34
|
-
|
|
36
|
+
key: 'com.example.function.ping-contact',
|
|
37
|
+
name: 'com.example.function.ping-contact',
|
|
35
38
|
version: '0.0.1',
|
|
36
39
|
inputSchema: JsonSchema.toJsonSchema(
|
|
37
40
|
Schema.Struct({
|
package/src/testing.ts
ADDED
package/src/translations.ts
CHANGED
|
@@ -4,51 +4,50 @@
|
|
|
4
4
|
|
|
5
5
|
import { type Resource } from '@dxos/react-ui';
|
|
6
6
|
|
|
7
|
-
import { meta } from '
|
|
7
|
+
import { meta } from '#meta';
|
|
8
8
|
|
|
9
9
|
export const translations = [
|
|
10
10
|
{
|
|
11
11
|
'en-US': {
|
|
12
12
|
[meta.id]: {
|
|
13
|
-
'plugin
|
|
14
|
-
'automation
|
|
15
|
-
'script
|
|
16
|
-
'automation
|
|
17
|
-
'automation
|
|
18
|
-
|
|
19
|
-
'runtime
|
|
20
|
-
'runtime
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
'functions
|
|
26
|
-
'functions
|
|
27
|
-
'functions
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'delete
|
|
32
|
-
|
|
33
|
-
'function
|
|
34
|
-
|
|
35
|
-
'trigger
|
|
36
|
-
'trigger
|
|
13
|
+
'plugin.name': 'Automation',
|
|
14
|
+
'automation-panel.label': 'Automations',
|
|
15
|
+
'script-automation.label': 'Automation',
|
|
16
|
+
'automation-verbose.label': 'Manage automations',
|
|
17
|
+
'automation.description': 'Triggers that automate this space.',
|
|
18
|
+
|
|
19
|
+
'runtime.label': 'Trigger runtime location',
|
|
20
|
+
'runtime.description': 'Determines where the triggers in this space will execute.',
|
|
21
|
+
'runtime.disabled.label': 'Triggers disabled',
|
|
22
|
+
'runtime.local.label': 'Local',
|
|
23
|
+
'runtime.edge.label': 'EDGE (experimental)',
|
|
24
|
+
|
|
25
|
+
'functions-panel.label': 'Functions',
|
|
26
|
+
'functions-verbose.label': 'Manage deployed functions',
|
|
27
|
+
'functions-registry-verbose.label': 'Functions registry',
|
|
28
|
+
'functions-registry.description': 'Import functions from the registry',
|
|
29
|
+
'functions.description': 'Functions deployed from this space on EDGE.',
|
|
30
|
+
'show-source-button.label': 'Show source',
|
|
31
|
+
'delete-function-button.label': 'Delete function',
|
|
32
|
+
|
|
33
|
+
'function-parameters.label': 'Function parameters',
|
|
34
|
+
|
|
35
|
+
'trigger-editor.title': 'Configure Trigger',
|
|
36
|
+
'trigger-editor.description':
|
|
37
37
|
'Triggers are used to run functions at specific times or when specific events occur.',
|
|
38
|
-
'new
|
|
39
|
-
|
|
40
|
-
'trigger
|
|
41
|
-
'trigger
|
|
42
|
-
'trigger
|
|
43
|
-
'trigger
|
|
44
|
-
'trigger
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
'trigger
|
|
48
|
-
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'trigger payload prop name placeholder': 'New payload property name',
|
|
38
|
+
'new-trigger.label': 'Add Trigger',
|
|
39
|
+
|
|
40
|
+
'trigger-type.timer.label': 'Timer',
|
|
41
|
+
'trigger-type.webhook.label': 'Webhook',
|
|
42
|
+
'trigger-type.websocket.label': 'Websocket',
|
|
43
|
+
'trigger-type.subscription.label': 'Subscription',
|
|
44
|
+
'trigger-type.email.label': 'Email',
|
|
45
|
+
'trigger-type.queue.label': 'Feed',
|
|
46
|
+
|
|
47
|
+
'trigger-payload-prop-name.placeholder': 'New payload property name',
|
|
48
|
+
'import-function-button.label': 'Loading...',
|
|
49
|
+
'update-function-button.label': 'Update',
|
|
50
|
+
'loading-functions.message': 'Loading functions...',
|
|
52
51
|
},
|
|
53
52
|
},
|
|
54
53
|
},
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// @import-as-namespace
|
|
6
|
+
|
|
7
|
+
import * as Schema from 'effect/Schema';
|
|
8
|
+
|
|
9
|
+
import { Capability } from '@dxos/app-framework';
|
|
10
|
+
import { Operation } from '@dxos/compute';
|
|
11
|
+
import { Database } from '@dxos/echo';
|
|
12
|
+
|
|
13
|
+
import { meta } from '#meta';
|
|
14
|
+
|
|
15
|
+
import { TriggerTemplate } from './schema';
|
|
16
|
+
|
|
17
|
+
const AUTOMATION_OPERATION = `${meta.id}.operation`;
|
|
18
|
+
|
|
19
|
+
export const CreateTriggerFromTemplate = Operation.make({
|
|
20
|
+
meta: { key: `${AUTOMATION_OPERATION}.create-trigger-from-template`, name: 'Create Trigger From Template' },
|
|
21
|
+
services: [Capability.Service],
|
|
22
|
+
input: Schema.Struct({
|
|
23
|
+
db: Database.Database,
|
|
24
|
+
template: TriggerTemplate,
|
|
25
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
26
|
+
scriptName: Schema.optional(Schema.String),
|
|
27
|
+
input: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),
|
|
28
|
+
}),
|
|
29
|
+
output: Schema.Void,
|
|
30
|
+
});
|
package/src/types/index.ts
CHANGED
package/src/types/schema.ts
CHANGED
|
@@ -4,13 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import { Capability } from '@dxos/app-framework';
|
|
8
7
|
import { Database } from '@dxos/echo';
|
|
9
|
-
import { Operation } from '@dxos/operation';
|
|
10
8
|
|
|
11
|
-
import { meta } from '
|
|
9
|
+
import { meta } from '#meta';
|
|
12
10
|
|
|
13
|
-
const TriggerTemplate = Schema.Union(
|
|
11
|
+
export const TriggerTemplate = Schema.Union(
|
|
14
12
|
Schema.Struct({ type: Schema.Literal('timer'), cron: Schema.String }),
|
|
15
13
|
Schema.Struct({ type: Schema.Literal('queue'), queueDXN: Schema.Any }),
|
|
16
14
|
);
|
|
@@ -31,22 +29,3 @@ export namespace AutomationAction {
|
|
|
31
29
|
},
|
|
32
30
|
) {}
|
|
33
31
|
}
|
|
34
|
-
|
|
35
|
-
const AUTOMATION_OPERATION = `${meta.id}.operation`;
|
|
36
|
-
|
|
37
|
-
export namespace AutomationOperation {
|
|
38
|
-
export const CreateTriggerFromTemplate = Operation.make({
|
|
39
|
-
meta: { key: `${AUTOMATION_OPERATION}.create-trigger-from-template`, name: 'Create Trigger From Template' },
|
|
40
|
-
services: [Capability.Service],
|
|
41
|
-
schema: {
|
|
42
|
-
input: Schema.Struct({
|
|
43
|
-
db: Database.Database,
|
|
44
|
-
template: TriggerTemplate,
|
|
45
|
-
enabled: Schema.optional(Schema.Boolean),
|
|
46
|
-
scriptName: Schema.optional(Schema.String),
|
|
47
|
-
input: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),
|
|
48
|
-
}),
|
|
49
|
-
output: Schema.Void,
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AutomationPanel,
|
|
3
|
-
AutomationPanel_default
|
|
4
|
-
} from "./chunk-O23LHDEX.mjs";
|
|
5
|
-
import "./chunk-BWEKRPFJ.mjs";
|
|
6
|
-
import "./chunk-EL64ZPPN.mjs";
|
|
7
|
-
export {
|
|
8
|
-
AutomationPanel,
|
|
9
|
-
AutomationPanel_default as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=AutomationPanel-IGLIQY2N.mjs.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TriggersSettings
|
|
3
|
-
} from "./chunk-PUYY7B5F.mjs";
|
|
4
|
-
import "./chunk-ZBEMNWNY.mjs";
|
|
5
|
-
import "./chunk-5WMYSXEH.mjs";
|
|
6
|
-
import {
|
|
7
|
-
AutomationPanel
|
|
8
|
-
} from "./chunk-O23LHDEX.mjs";
|
|
9
|
-
import "./chunk-BWEKRPFJ.mjs";
|
|
10
|
-
import {
|
|
11
|
-
meta
|
|
12
|
-
} from "./chunk-EL64ZPPN.mjs";
|
|
13
|
-
|
|
14
|
-
// src/containers/AutomationSettings/AutomationSettings.tsx
|
|
15
|
-
import React from "react";
|
|
16
|
-
import { useTranslation } from "@dxos/react-ui";
|
|
17
|
-
import { Settings } from "@dxos/react-ui-form";
|
|
18
|
-
var AutomationSettings = (props) => {
|
|
19
|
-
const { t } = useTranslation(meta.id);
|
|
20
|
-
return /* @__PURE__ */ React.createElement(Settings.Root, null, /* @__PURE__ */ React.createElement(Settings.Section, {
|
|
21
|
-
title: t("automation verbose label", {
|
|
22
|
-
ns: meta.id
|
|
23
|
-
}),
|
|
24
|
-
description: t("automation description", {
|
|
25
|
-
ns: meta.id
|
|
26
|
-
})
|
|
27
|
-
}, /* @__PURE__ */ React.createElement(AutomationPanel, props), /* @__PURE__ */ React.createElement(TriggersSettings, {
|
|
28
|
-
db: props.space.db
|
|
29
|
-
})));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
// src/containers/AutomationSettings/index.ts
|
|
33
|
-
var AutomationSettings_default = AutomationSettings;
|
|
34
|
-
export {
|
|
35
|
-
AutomationSettings_default as default
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=AutomationSettings-XGJGVBDD.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/containers/AutomationSettings/AutomationSettings.tsx", "../../../src/containers/AutomationSettings/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useTranslation } from '@dxos/react-ui';\nimport { Settings } from '@dxos/react-ui-form';\n\nimport { AutomationPanel, type AutomationPanelProps } from '../../components/AutomationPanel';\nimport { meta } from '../../meta';\nimport { TriggersSettings } from '../TriggerSettings';\n\nexport const AutomationSettings = (props: AutomationPanelProps) => {\n const { t } = useTranslation(meta.id);\n return (\n <Settings.Root>\n <Settings.Section\n title={t('automation verbose label', { ns: meta.id })}\n description={t('automation description', { ns: meta.id })}\n >\n <AutomationPanel {...props} />\n <TriggersSettings db={props.space.db} />\n </Settings.Section>\n </Settings.Root>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { AutomationSettings } from './AutomationSettings';\n\nexport default AutomationSettings;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,sBAAsB;AAC/B,SAASC,gBAAgB;AAMlB,IAAMC,qBAAqB,CAACC,UAAAA;AACjC,QAAM,EAAEC,EAAC,IAAKC,eAAeC,KAAKC,EAAE;AACpC,SACE,sBAAA,cAACC,SAASC,MAAI,MACZ,sBAAA,cAACD,SAASE,SAAO;IACfC,OAAOP,EAAE,4BAA4B;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;IACnDM,aAAaT,EAAE,0BAA0B;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;KAEvD,sBAAA,cAACO,iBAAoBX,KAAAA,GACrB,sBAAA,cAACY,kBAAAA;IAAiBC,IAAIb,MAAMc,MAAMD;;AAI1C;;;ACpBA,IAAA,6BAAeE;",
|
|
6
|
-
"names": ["React", "useTranslation", "Settings", "AutomationSettings", "props", "t", "useTranslation", "meta", "id", "Settings", "Root", "Section", "title", "ns", "description", "AutomationPanel", "TriggersSettings", "db", "space", "AutomationSettings"]
|
|
7
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
FunctionsPanel
|
|
3
|
-
} from "./chunk-75XLBFAG.mjs";
|
|
4
|
-
import {
|
|
5
|
-
FunctionsRegistry
|
|
6
|
-
} from "./chunk-FUVAC5EC.mjs";
|
|
7
|
-
import {
|
|
8
|
-
meta
|
|
9
|
-
} from "./chunk-EL64ZPPN.mjs";
|
|
10
|
-
|
|
11
|
-
// src/containers/FunctionsContainer/FunctionsContainer.tsx
|
|
12
|
-
import React from "react";
|
|
13
|
-
import { useTranslation } from "@dxos/react-ui";
|
|
14
|
-
import { Settings } from "@dxos/react-ui-form";
|
|
15
|
-
var FunctionsContainer = ({ space }) => {
|
|
16
|
-
const { t } = useTranslation(meta.id);
|
|
17
|
-
return /* @__PURE__ */ React.createElement(Settings.Root, null, /* @__PURE__ */ React.createElement(Settings.Section, {
|
|
18
|
-
title: t("functions verbose label", {
|
|
19
|
-
ns: meta.id
|
|
20
|
-
}),
|
|
21
|
-
description: t("functions description", {
|
|
22
|
-
ns: meta.id
|
|
23
|
-
})
|
|
24
|
-
}, /* @__PURE__ */ React.createElement(FunctionsPanel, {
|
|
25
|
-
space
|
|
26
|
-
})), /* @__PURE__ */ React.createElement(Settings.Section, {
|
|
27
|
-
title: t("functions registry verbose label", {
|
|
28
|
-
ns: meta.id
|
|
29
|
-
}),
|
|
30
|
-
description: t("functions registry description", {
|
|
31
|
-
ns: meta.id
|
|
32
|
-
})
|
|
33
|
-
}, /* @__PURE__ */ React.createElement(FunctionsRegistry, {
|
|
34
|
-
space
|
|
35
|
-
})));
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
// src/containers/FunctionsContainer/index.ts
|
|
39
|
-
var FunctionsContainer_default = FunctionsContainer;
|
|
40
|
-
export {
|
|
41
|
-
FunctionsContainer_default as default
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=FunctionsContainer-R4ZMYSFJ.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/containers/FunctionsContainer/FunctionsContainer.tsx", "../../../src/containers/FunctionsContainer/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Space } from '@dxos/react-client/echo';\nimport { useTranslation } from '@dxos/react-ui';\nimport { Settings } from '@dxos/react-ui-form';\n\nimport { FunctionsPanel } from '../../components/FunctionsPanel';\nimport { FunctionsRegistry } from '../../components/FunctionsRegistry';\nimport { meta } from '../../meta';\n\nexport const FunctionsContainer = ({ space }: { space: Space }) => {\n const { t } = useTranslation(meta.id);\n return (\n <Settings.Root>\n <Settings.Section\n title={t('functions verbose label', { ns: meta.id })}\n description={t('functions description', { ns: meta.id })}\n >\n <FunctionsPanel space={space} />\n </Settings.Section>\n <Settings.Section\n title={t('functions registry verbose label', { ns: meta.id })}\n description={t('functions registry description', { ns: meta.id })}\n >\n <FunctionsRegistry space={space} />\n </Settings.Section>\n </Settings.Root>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { FunctionsContainer } from './FunctionsContainer';\n\nexport default FunctionsContainer;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;AAIA,OAAOA,WAAW;AAGlB,SAASC,sBAAsB;AAC/B,SAASC,gBAAgB;AAMlB,IAAMC,qBAAqB,CAAC,EAAEC,MAAK,MAAoB;AAC5D,QAAM,EAAEC,EAAC,IAAKC,eAAeC,KAAKC,EAAE;AACpC,SACE,sBAAA,cAACC,SAASC,MAAI,MACZ,sBAAA,cAACD,SAASE,SAAO;IACfC,OAAOP,EAAE,2BAA2B;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;IAClDM,aAAaT,EAAE,yBAAyB;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;KAEtD,sBAAA,cAACO,gBAAAA;IAAeX;OAElB,sBAAA,cAACK,SAASE,SAAO;IACfC,OAAOP,EAAE,oCAAoC;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;IAC3DM,aAAaT,EAAE,kCAAkC;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;KAE/D,sBAAA,cAACQ,mBAAAA;IAAkBZ;;AAI3B;;;AC1BA,IAAA,6BAAea;",
|
|
6
|
-
"names": ["React", "useTranslation", "Settings", "FunctionsContainer", "space", "t", "useTranslation", "meta", "id", "Settings", "Root", "Section", "title", "ns", "description", "FunctionsPanel", "FunctionsRegistry", "FunctionsContainer"]
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TriggersSettings
|
|
3
|
-
} from "./chunk-PUYY7B5F.mjs";
|
|
4
|
-
import "./chunk-ZBEMNWNY.mjs";
|
|
5
|
-
import "./chunk-5WMYSXEH.mjs";
|
|
6
|
-
import "./chunk-EL64ZPPN.mjs";
|
|
7
|
-
export {
|
|
8
|
-
TriggersSettings,
|
|
9
|
-
TriggersSettings as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=TriggerSettings-GW5OEM2G.mjs.map
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
meta
|
|
3
|
-
} from "./chunk-EL64ZPPN.mjs";
|
|
4
|
-
|
|
5
|
-
// src/capabilities/app-graph-builder/app-graph-builder.ts
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
|
-
import { Capability } from "@dxos/app-framework";
|
|
8
|
-
import { AppCapabilities } from "@dxos/app-toolkit";
|
|
9
|
-
import { Script } from "@dxos/functions";
|
|
10
|
-
import { COMPANION_PREFIX } from "@dxos/app-toolkit";
|
|
11
|
-
import { PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
|
|
12
|
-
import { GraphBuilder, NodeMatcher } from "@dxos/plugin-graph";
|
|
13
|
-
import { meta as spaceMeta } from "@dxos/plugin-space";
|
|
14
|
-
var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
15
|
-
const extensions = yield* Effect.all([
|
|
16
|
-
GraphBuilder.createExtension({
|
|
17
|
-
id: `${meta.id}.space-settings-automation`,
|
|
18
|
-
match: NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`),
|
|
19
|
-
connector: (node) => Effect.succeed([
|
|
20
|
-
{
|
|
21
|
-
id: `${meta.id}.automations`,
|
|
22
|
-
type: `${meta.id}.space-settings-automation`,
|
|
23
|
-
data: `${meta.id}.space-settings-automation`,
|
|
24
|
-
properties: {
|
|
25
|
-
label: [
|
|
26
|
-
"automation panel label",
|
|
27
|
-
{
|
|
28
|
-
ns: meta.id
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
icon: "ph--lightning--regular"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
])
|
|
35
|
-
}),
|
|
36
|
-
GraphBuilder.createExtension({
|
|
37
|
-
id: `${meta.id}.space-settings-functions`,
|
|
38
|
-
match: NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`),
|
|
39
|
-
connector: (node) => Effect.succeed([
|
|
40
|
-
{
|
|
41
|
-
id: `${meta.id}.functions`,
|
|
42
|
-
type: `${meta.id}.space-settings-functions`,
|
|
43
|
-
data: `${meta.id}.space-settings-functions`,
|
|
44
|
-
properties: {
|
|
45
|
-
label: [
|
|
46
|
-
"functions panel label",
|
|
47
|
-
{
|
|
48
|
-
ns: meta.id
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
icon: "ph--function--regular"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
])
|
|
55
|
-
}),
|
|
56
|
-
GraphBuilder.createTypeExtension({
|
|
57
|
-
id: `${meta.id}.script-companion`,
|
|
58
|
-
type: Script.Script,
|
|
59
|
-
connector: (script) => Effect.succeed([
|
|
60
|
-
{
|
|
61
|
-
id: `${COMPANION_PREFIX}automation`,
|
|
62
|
-
type: PLANK_COMPANION_TYPE,
|
|
63
|
-
data: "automation",
|
|
64
|
-
properties: {
|
|
65
|
-
label: [
|
|
66
|
-
"script automation label",
|
|
67
|
-
{
|
|
68
|
-
ns: meta.id
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
icon: "ph--lightning--regular",
|
|
72
|
-
disposition: "hidden"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
])
|
|
76
|
-
})
|
|
77
|
-
]);
|
|
78
|
-
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
79
|
-
}));
|
|
80
|
-
export {
|
|
81
|
-
app_graph_builder_default as default
|
|
82
|
-
};
|
|
83
|
-
//# sourceMappingURL=app-graph-builder-74ILZP25.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { Script } from '@dxos/functions';\nimport { COMPANION_PREFIX } from '@dxos/app-toolkit';\nimport { PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';\nimport { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';\nimport { meta as spaceMeta } from '@dxos/plugin-space';\n\nimport { meta } from '../../meta';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* Effect.all([\n GraphBuilder.createExtension({\n id: `${meta.id}.space-settings-automation`,\n match: NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`),\n connector: (node) =>\n Effect.succeed([\n {\n id: `${meta.id}.automations`,\n type: `${meta.id}.space-settings-automation`,\n data: `${meta.id}.space-settings-automation`,\n properties: {\n label: ['automation panel label', { ns: meta.id }],\n icon: 'ph--lightning--regular',\n },\n },\n ]),\n }),\n GraphBuilder.createExtension({\n id: `${meta.id}.space-settings-functions`,\n match: NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`),\n connector: (node) =>\n Effect.succeed([\n {\n id: `${meta.id}.functions`,\n type: `${meta.id}.space-settings-functions`,\n data: `${meta.id}.space-settings-functions`,\n properties: {\n label: ['functions panel label', { ns: meta.id }],\n icon: 'ph--function--regular',\n },\n },\n ]),\n }),\n GraphBuilder.createTypeExtension({\n id: `${meta.id}.script-companion`,\n type: Script.Script,\n connector: (script) =>\n Effect.succeed([\n {\n id: `${COMPANION_PREFIX}automation`,\n type: PLANK_COMPANION_TYPE,\n data: 'automation',\n properties: {\n label: ['script automation label', { ns: meta.id }],\n icon: 'ph--lightning--regular',\n disposition: 'hidden',\n },\n },\n ]),\n }),\n ]);\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,cAAc;AACvB,SAASC,wBAAwB;AACjC,SAASC,4BAA4B;AACrC,SAASC,cAAcC,mBAAmB;AAC1C,SAASC,QAAQC,iBAAiB;AAIlC,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAcC,WAAI;IACnCC,aAAaC,gBAAgB;MAC3BC,IAAI,GAAGC,KAAKD,EAAE;MACdE,OAAOC,YAAYC,aAAa,GAAGC,UAAUL,EAAE,WAAW;MAC1DM,WAAW,CAACC,SACHC,eAAQ;QACb;UACER,IAAI,GAAGC,KAAKD,EAAE;UACdS,MAAM,GAAGR,KAAKD,EAAE;UAChBU,MAAM,GAAGT,KAAKD,EAAE;UAChBW,YAAY;YACVC,OAAO;cAAC;cAA0B;gBAAEC,IAAIZ,KAAKD;cAAG;;YAChDc,MAAM;UACR;QACF;OACD;IACL,CAAA;IACAhB,aAAaC,gBAAgB;MAC3BC,IAAI,GAAGC,KAAKD,EAAE;MACdE,OAAOC,YAAYC,aAAa,GAAGC,UAAUL,EAAE,WAAW;MAC1DM,WAAW,CAACC,SACHC,eAAQ;QACb;UACER,IAAI,GAAGC,KAAKD,EAAE;UACdS,MAAM,GAAGR,KAAKD,EAAE;UAChBU,MAAM,GAAGT,KAAKD,EAAE;UAChBW,YAAY;YACVC,OAAO;cAAC;cAAyB;gBAAEC,IAAIZ,KAAKD;cAAG;;YAC/Cc,MAAM;UACR;QACF;OACD;IACL,CAAA;IACAhB,aAAaiB,oBAAoB;MAC/Bf,IAAI,GAAGC,KAAKD,EAAE;MACdS,MAAMO,OAAOA;MACbV,WAAW,CAACW,WACHT,eAAQ;QACb;UACER,IAAI,GAAGkB,gBAAAA;UACPT,MAAMU;UACNT,MAAM;UACNC,YAAY;YACVC,OAAO;cAAC;cAA2B;gBAAEC,IAAIZ,KAAKD;cAAG;;YACjDc,MAAM;YACNM,aAAa;UACf;QACF;OACD;IACL,CAAA;GACD;AAED,SAAO3B,WAAW4B,YAAYC,gBAAgBC,iBAAiB3B,UAAAA;AACjE,CAAA,CAAA;",
|
|
6
|
-
"names": ["Effect", "Capability", "AppCapabilities", "Script", "COMPANION_PREFIX", "PLANK_COMPANION_TYPE", "GraphBuilder", "NodeMatcher", "meta", "spaceMeta", "Capability", "makeModule", "fnUntraced", "extensions", "all", "GraphBuilder", "createExtension", "id", "meta", "match", "NodeMatcher", "whenNodeType", "spaceMeta", "connector", "node", "succeed", "type", "data", "properties", "label", "ns", "icon", "createTypeExtension", "Script", "script", "COMPANION_PREFIX", "PLANK_COMPANION_TYPE", "disposition", "contributes", "AppCapabilities", "AppGraphBuilder"]
|
|
7
|
-
}
|