@dxos/plugin-automation 0.8.4-main.7ace549 → 0.8.4-main.8360d9e660
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/browser/AutomationPanel-IGLIQY2N.mjs +11 -0
- package/dist/lib/browser/AutomationSettings-XGJGVBDD.mjs +37 -0
- package/dist/lib/browser/AutomationSettings-XGJGVBDD.mjs.map +7 -0
- package/dist/lib/browser/FunctionsContainer-R4ZMYSFJ.mjs +43 -0
- package/dist/lib/browser/FunctionsContainer-R4ZMYSFJ.mjs.map +7 -0
- package/dist/lib/browser/{FunctionsPanel-CRW6SJUN.mjs → FunctionsPanel-NMA4RYJL.mjs} +3 -3
- package/dist/lib/browser/FunctionsRegistry-TMKAEG5E.mjs +10 -0
- package/dist/lib/browser/TriggerSettings-GW5OEM2G.mjs +11 -0
- package/dist/lib/browser/app-graph-builder-74ILZP25.mjs +83 -0
- package/dist/lib/browser/app-graph-builder-74ILZP25.mjs.map +7 -0
- package/dist/lib/browser/chunk-5WMYSXEH.mjs +83 -0
- package/dist/lib/browser/chunk-5WMYSXEH.mjs.map +7 -0
- package/dist/lib/browser/chunk-75XLBFAG.mjs +97 -0
- package/dist/lib/browser/chunk-75XLBFAG.mjs.map +7 -0
- package/dist/lib/browser/chunk-BWEKRPFJ.mjs +294 -0
- package/dist/lib/browser/chunk-BWEKRPFJ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-LZQFZO3B.mjs → chunk-EL64ZPPN.mjs} +2 -2
- package/dist/lib/browser/chunk-EL64ZPPN.mjs.map +7 -0
- package/dist/lib/browser/chunk-FUVAC5EC.mjs +96 -0
- package/dist/lib/browser/chunk-FUVAC5EC.mjs.map +7 -0
- package/dist/lib/browser/chunk-LHJEQVX5.mjs +8 -0
- package/dist/lib/browser/chunk-LHJEQVX5.mjs.map +7 -0
- package/dist/lib/browser/chunk-O23LHDEX.mjs +269 -0
- package/dist/lib/browser/chunk-O23LHDEX.mjs.map +7 -0
- package/dist/lib/browser/chunk-PUYY7B5F.mjs +31 -0
- package/dist/lib/browser/chunk-PUYY7B5F.mjs.map +7 -0
- package/dist/lib/browser/chunk-ZBEMNWNY.mjs +93 -0
- package/dist/lib/browser/chunk-ZBEMNWNY.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +1115 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/compute-runtime-I3I2BIRE.mjs +130 -0
- package/dist/lib/browser/compute-runtime-I3I2BIRE.mjs.map +7 -0
- package/dist/lib/browser/hooks/index.mjs +3 -3
- package/dist/lib/browser/index.mjs +55 -62
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-NGN4BEWN.mjs +84 -0
- package/dist/lib/browser/operation-resolver-NGN4BEWN.mjs.map +7 -0
- package/dist/lib/browser/react-surface-SXDIM3RM.mjs +65 -0
- package/dist/lib/browser/react-surface-SXDIM3RM.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +10 -4
- package/dist/lib/node-esm/{AutomationPanel-F5CTC6AT.mjs → AutomationPanel-O2BCQA7P.mjs} +4 -4
- package/dist/lib/node-esm/AutomationPanel-O2BCQA7P.mjs.map +7 -0
- package/dist/lib/node-esm/AutomationSettings-W52ZO2XI.mjs +38 -0
- package/dist/lib/node-esm/AutomationSettings-W52ZO2XI.mjs.map +7 -0
- package/dist/lib/node-esm/FunctionsContainer-GYRPQZM7.mjs +44 -0
- package/dist/lib/node-esm/FunctionsContainer-GYRPQZM7.mjs.map +7 -0
- package/dist/lib/node-esm/{FunctionsPanel-RVVCS6VH.mjs → FunctionsPanel-DCXXLSVP.mjs} +3 -3
- package/dist/lib/node-esm/FunctionsPanel-DCXXLSVP.mjs.map +7 -0
- package/dist/lib/node-esm/FunctionsRegistry-7WCHC64E.mjs +11 -0
- package/dist/lib/node-esm/FunctionsRegistry-7WCHC64E.mjs.map +7 -0
- package/dist/lib/node-esm/TriggerSettings-2GKFPECW.mjs +12 -0
- package/dist/lib/node-esm/TriggerSettings-2GKFPECW.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-VDXPOWCH.mjs +84 -0
- package/dist/lib/node-esm/app-graph-builder-VDXPOWCH.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-6JVB3IHW.mjs +97 -0
- package/dist/lib/node-esm/chunk-6JVB3IHW.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BNWZ2NNI.mjs +32 -0
- package/dist/lib/node-esm/chunk-BNWZ2NNI.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-FPXVLTEY.mjs +270 -0
- package/dist/lib/node-esm/chunk-FPXVLTEY.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-K7T2MVB7.mjs +98 -0
- package/dist/lib/node-esm/chunk-K7T2MVB7.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-Q5JSKD6Z.mjs +295 -0
- package/dist/lib/node-esm/chunk-Q5JSKD6Z.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-V3VUE2NR.mjs +10 -0
- package/dist/lib/node-esm/chunk-V3VUE2NR.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-CEVIVRTY.mjs → chunk-WC5AT7B3.mjs} +2 -2
- package/dist/lib/node-esm/chunk-WC5AT7B3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XCFO2IXT.mjs +84 -0
- package/dist/lib/node-esm/chunk-XCFO2IXT.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-7B6NAAI6.mjs → chunk-XQO3HK62.mjs} +30 -37
- package/dist/lib/node-esm/chunk-XQO3HK62.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +1116 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/compute-runtime-7HCSIYFG.mjs +131 -0
- package/dist/lib/node-esm/compute-runtime-7HCSIYFG.mjs.map +7 -0
- package/dist/lib/node-esm/hooks/index.mjs +3 -3
- package/dist/lib/node-esm/index.mjs +55 -62
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-ANGACQZG.mjs +85 -0
- package/dist/lib/node-esm/operation-resolver-ANGACQZG.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-QVLVDEVW.mjs +66 -0
- package/dist/lib/node-esm/react-surface-QVLVDEVW.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +10 -4
- package/dist/types/src/AutomationPlugin.d.ts +2 -1
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/compute-runtime/compute-runtime.d.ts +6 -0
- package/dist/types/src/capabilities/compute-runtime/compute-runtime.d.ts.map +1 -0
- package/dist/types/src/capabilities/compute-runtime/index.d.ts +3 -0
- package/dist/types/src/capabilities/compute-runtime/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +4 -5
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/cli/commands/index.d.ts +2 -0
- package/dist/types/src/cli/commands/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/create/index.d.ts +25 -0
- package/dist/types/src/cli/commands/trigger/create/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/create/queue.d.ts +13 -0
- package/dist/types/src/cli/commands/trigger/create/queue.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/create/subscription.d.ts +15 -0
- package/dist/types/src/cli/commands/trigger/create/subscription.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/create/timer.d.ts +13 -0
- package/dist/types/src/cli/commands/trigger/create/timer.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/index.d.ts +57 -0
- package/dist/types/src/cli/commands/trigger/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/list.d.ts +7 -0
- package/dist/types/src/cli/commands/trigger/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/options.d.ts +11 -0
- package/dist/types/src/cli/commands/trigger/options.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/remove.d.ts +8 -0
- package/dist/types/src/cli/commands/trigger/remove.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/update/index.d.ts +28 -0
- package/dist/types/src/cli/commands/trigger/update/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/update/queue.d.ts +12 -0
- package/dist/types/src/cli/commands/trigger/update/queue.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/update/subscription.d.ts +13 -0
- package/dist/types/src/cli/commands/trigger/update/subscription.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/update/timer.d.ts +11 -0
- package/dist/types/src/cli/commands/trigger/update/timer.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/util.d.ts +46 -0
- package/dist/types/src/cli/commands/trigger/util.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +3 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +4 -5
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +2 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsPanel/FunctionsPanel.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 +3 -1
- package/dist/types/src/components/FunctionsRegistry/index.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts +10 -7
- package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts +6 -3
- package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +7 -6
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +72 -2
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +3 -4
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts +4 -0
- package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts.map +1 -0
- package/dist/types/src/containers/AutomationSettings/index.d.ts +3 -0
- package/dist/types/src/containers/AutomationSettings/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/FunctionsContainer}/FunctionsContainer.d.ts +0 -1
- package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts.map +1 -0
- package/dist/types/src/containers/FunctionsContainer/index.d.ts +3 -0
- package/dist/types/src/containers/FunctionsContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts +6 -0
- package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts.map +1 -0
- package/dist/types/src/containers/TriggerSettings/index.d.ts +3 -0
- package/dist/types/src/containers/TriggerSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +5 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts +6 -6
- package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +1 -1
- package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts +4 -3
- package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/testing/test-functions.d.ts +202 -2
- package/dist/types/src/testing/test-functions.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +23 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +5 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +32 -3
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +67 -50
- package/src/AutomationPlugin.tsx +14 -33
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +73 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/compute-runtime/compute-runtime.ts +155 -0
- package/src/capabilities/compute-runtime/index.ts +7 -0
- package/src/capabilities/index.ts +4 -8
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +80 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +57 -0
- package/src/cli/commands/index.ts +5 -0
- package/src/cli/commands/trigger/create/index.ts +14 -0
- package/src/cli/commands/trigger/create/queue.ts +89 -0
- package/src/cli/commands/trigger/create/subscription.ts +128 -0
- package/src/cli/commands/trigger/create/timer.ts +93 -0
- package/src/cli/commands/trigger/index.ts +16 -0
- package/src/cli/commands/trigger/list.ts +67 -0
- package/src/cli/commands/trigger/options.ts +59 -0
- package/src/cli/commands/trigger/remove.ts +45 -0
- package/src/cli/commands/trigger/update/index.ts +14 -0
- package/src/cli/commands/trigger/update/queue.ts +195 -0
- package/src/cli/commands/trigger/update/subscription.ts +278 -0
- package/src/cli/commands/trigger/update/timer.ts +193 -0
- package/src/cli/commands/trigger/util.ts +404 -0
- package/src/cli/index.ts +5 -0
- package/src/cli/plugin.ts +24 -0
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +3 -3
- package/src/components/AutomationPanel/AutomationPanel.tsx +154 -65
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +17 -24
- package/src/components/FunctionsRegistry/FunctionsRegistry.tsx +17 -34
- package/src/components/FunctionsRegistry/index.ts +4 -1
- package/src/components/TriggerEditor/FunctionInputEditor.tsx +32 -31
- package/src/components/TriggerEditor/SpecSelector.tsx +9 -7
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +73 -28
- package/src/components/TriggerEditor/TriggerEditor.tsx +89 -44
- package/src/components/index.ts +1 -2
- package/src/{components → containers/AutomationSettings}/AutomationSettings.tsx +9 -12
- package/src/containers/AutomationSettings/index.ts +7 -0
- package/src/{components → containers/FunctionsContainer}/FunctionsContainer.tsx +10 -13
- package/src/containers/FunctionsContainer/index.ts +7 -0
- package/src/containers/TriggerSettings/TriggerSettings.tsx +26 -0
- package/src/containers/TriggerSettings/index.ts +6 -0
- package/src/containers/index.ts +9 -0
- package/src/hooks/useComputeRuntimeCallback.ts +10 -11
- package/src/hooks/useTriggerRuntimeControls.ts +28 -14
- package/src/index.ts +1 -2
- package/src/meta.ts +3 -3
- package/src/testing/test-functions.ts +5 -5
- package/src/translations.ts +4 -0
- package/src/{capabilities → types}/capabilities.ts +11 -7
- package/src/types/events.ts +11 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema.ts +24 -3
- package/dist/lib/browser/AutomationPanel-M4M77L4V.mjs +0 -11
- package/dist/lib/browser/AutomationSettings-4HCI6KJR.mjs +0 -68
- package/dist/lib/browser/AutomationSettings-4HCI6KJR.mjs.map +0 -7
- package/dist/lib/browser/FunctionsContainer-CDVBRQCT.mjs +0 -144
- package/dist/lib/browser/FunctionsContainer-CDVBRQCT.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-W7LLC6XW.mjs +0 -81
- package/dist/lib/browser/app-graph-builder-W7LLC6XW.mjs.map +0 -7
- package/dist/lib/browser/chunk-4MBM6C6A.mjs +0 -100
- package/dist/lib/browser/chunk-4MBM6C6A.mjs.map +0 -7
- package/dist/lib/browser/chunk-7W6QMY3L.mjs +0 -267
- package/dist/lib/browser/chunk-7W6QMY3L.mjs.map +0 -7
- package/dist/lib/browser/chunk-CZVA5NMD.mjs +0 -14
- package/dist/lib/browser/chunk-CZVA5NMD.mjs.map +0 -7
- package/dist/lib/browser/chunk-LZQFZO3B.mjs.map +0 -7
- package/dist/lib/browser/chunk-T6ZESHDY.mjs +0 -191
- package/dist/lib/browser/chunk-T6ZESHDY.mjs.map +0 -7
- package/dist/lib/browser/chunk-TWWFNOIR.mjs +0 -109
- package/dist/lib/browser/chunk-TWWFNOIR.mjs.map +0 -7
- package/dist/lib/browser/chunk-XAKZ4ANY.mjs +0 -15
- package/dist/lib/browser/chunk-XAKZ4ANY.mjs.map +0 -7
- package/dist/lib/browser/chunk-YBPJCY3F.mjs +0 -38
- package/dist/lib/browser/chunk-YBPJCY3F.mjs.map +0 -7
- package/dist/lib/browser/compute-runtime-B4XJVY4Y.mjs +0 -113
- package/dist/lib/browser/compute-runtime-B4XJVY4Y.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-5HR7M7T6.mjs +0 -77
- package/dist/lib/browser/intent-resolver-5HR7M7T6.mjs.map +0 -7
- package/dist/lib/browser/react-surface-TKU2EQ5A.mjs +0 -64
- package/dist/lib/browser/react-surface-TKU2EQ5A.mjs.map +0 -7
- package/dist/lib/node-esm/AutomationSettings-BQLJIFRT.mjs +0 -69
- package/dist/lib/node-esm/AutomationSettings-BQLJIFRT.mjs.map +0 -7
- package/dist/lib/node-esm/FunctionsContainer-ZHHJPQAZ.mjs +0 -145
- package/dist/lib/node-esm/FunctionsContainer-ZHHJPQAZ.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-SLQOO7GH.mjs +0 -82
- package/dist/lib/node-esm/app-graph-builder-SLQOO7GH.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3IYSC75Z.mjs +0 -16
- package/dist/lib/node-esm/chunk-3IYSC75Z.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7B6NAAI6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CEVIVRTY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CF2SWXPW.mjs +0 -268
- package/dist/lib/node-esm/chunk-CF2SWXPW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ECJKIUBO.mjs +0 -39
- package/dist/lib/node-esm/chunk-ECJKIUBO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-F76XVENA.mjs +0 -192
- package/dist/lib/node-esm/chunk-F76XVENA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KB7NFEYY.mjs +0 -16
- package/dist/lib/node-esm/chunk-KB7NFEYY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RVK52XGK.mjs +0 -110
- package/dist/lib/node-esm/chunk-RVK52XGK.mjs.map +0 -7
- package/dist/lib/node-esm/compute-runtime-JUWTQXOV.mjs +0 -114
- package/dist/lib/node-esm/compute-runtime-JUWTQXOV.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-KDRYB5BC.mjs +0 -78
- package/dist/lib/node-esm/intent-resolver-KDRYB5BC.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-7QROSEGH.mjs +0 -65
- package/dist/lib/node-esm/react-surface-7QROSEGH.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -20
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/compute-runtime.d.ts +0 -5
- package/dist/types/src/capabilities/compute-runtime.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/components/AutomationSettings.d.ts +0 -5
- package/dist/types/src/components/AutomationSettings.d.ts.map +0 -1
- package/dist/types/src/components/FunctionsContainer.d.ts.map +0 -1
- package/dist/types/src/components/TriggerSettings.d.ts +0 -6
- package/dist/types/src/components/TriggerSettings.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -4
- package/dist/types/src/events.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -87
- package/src/capabilities/compute-runtime.ts +0 -129
- package/src/capabilities/intent-resolver.ts +0 -72
- package/src/capabilities/react-surface.tsx +0 -56
- package/src/components/TriggerSettings.tsx +0 -25
- package/src/events.ts +0 -11
- /package/dist/lib/browser/{AutomationPanel-M4M77L4V.mjs.map → AutomationPanel-IGLIQY2N.mjs.map} +0 -0
- /package/dist/lib/browser/{FunctionsPanel-CRW6SJUN.mjs.map → FunctionsPanel-NMA4RYJL.mjs.map} +0 -0
- /package/dist/lib/{node-esm/AutomationPanel-F5CTC6AT.mjs.map → browser/FunctionsRegistry-TMKAEG5E.mjs.map} +0 -0
- /package/dist/lib/{node-esm/FunctionsPanel-RVVCS6VH.mjs.map → browser/TriggerSettings-GW5OEM2G.mjs.map} +0 -0
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Atom } from '@effect-atom/atom-react';
|
|
6
|
-
import * as Function from 'effect/Function';
|
|
7
|
-
import * as Option from 'effect/Option';
|
|
8
|
-
|
|
9
|
-
import { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';
|
|
10
|
-
import { Obj } from '@dxos/echo';
|
|
11
|
-
import { Script } from '@dxos/functions';
|
|
12
|
-
import { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
13
|
-
import { createExtension } from '@dxos/plugin-graph';
|
|
14
|
-
import { meta as spaceMeta } from '@dxos/plugin-space';
|
|
15
|
-
|
|
16
|
-
import { meta } from '../meta';
|
|
17
|
-
|
|
18
|
-
export default (context: PluginContext) =>
|
|
19
|
-
contributes(Capabilities.AppGraphBuilder, [
|
|
20
|
-
createExtension({
|
|
21
|
-
id: `${meta.id}/space-settings-automation`,
|
|
22
|
-
connector: (node) =>
|
|
23
|
-
Atom.make((get) =>
|
|
24
|
-
Function.pipe(
|
|
25
|
-
get(node),
|
|
26
|
-
Option.flatMap((node) => (node.type === `${spaceMeta.id}/settings` ? Option.some(node) : Option.none())),
|
|
27
|
-
Option.map((node) => [
|
|
28
|
-
{
|
|
29
|
-
id: `automation-${node.id}`,
|
|
30
|
-
type: `${meta.id}/space-settings-automation`,
|
|
31
|
-
data: `${meta.id}/space-settings-automation`,
|
|
32
|
-
properties: {
|
|
33
|
-
label: ['automation panel label', { ns: meta.id }],
|
|
34
|
-
icon: 'ph--lightning--regular',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
]),
|
|
38
|
-
Option.getOrElse(() => []),
|
|
39
|
-
),
|
|
40
|
-
),
|
|
41
|
-
}),
|
|
42
|
-
createExtension({
|
|
43
|
-
id: `${meta.id}/space-settings-functions`,
|
|
44
|
-
connector: (node) =>
|
|
45
|
-
Atom.make((get) =>
|
|
46
|
-
Function.pipe(
|
|
47
|
-
get(node),
|
|
48
|
-
Option.flatMap((node) => (node.type === `${spaceMeta.id}/settings` ? Option.some(node) : Option.none())),
|
|
49
|
-
Option.map((node) => [
|
|
50
|
-
{
|
|
51
|
-
id: `functions-${node.id}`,
|
|
52
|
-
type: `${meta.id}/space-settings-functions`,
|
|
53
|
-
data: `${meta.id}/space-settings-functions`,
|
|
54
|
-
properties: {
|
|
55
|
-
label: ['functions panel label', { ns: meta.id }],
|
|
56
|
-
icon: 'ph--function--regular',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
]),
|
|
60
|
-
Option.getOrElse(() => []),
|
|
61
|
-
),
|
|
62
|
-
),
|
|
63
|
-
}),
|
|
64
|
-
createExtension({
|
|
65
|
-
id: `${meta.id}/script-companion`,
|
|
66
|
-
connector: (node) =>
|
|
67
|
-
Atom.make((get) =>
|
|
68
|
-
Function.pipe(
|
|
69
|
-
get(node),
|
|
70
|
-
Option.flatMap((node) => (Obj.instanceOf(Script.Script, node.data) ? Option.some(node) : Option.none())),
|
|
71
|
-
Option.map((node) => [
|
|
72
|
-
{
|
|
73
|
-
id: [node.id, 'automation'].join(ATTENDABLE_PATH_SEPARATOR),
|
|
74
|
-
type: PLANK_COMPANION_TYPE,
|
|
75
|
-
data: 'automation',
|
|
76
|
-
properties: {
|
|
77
|
-
label: ['script automation label', { ns: meta.id }],
|
|
78
|
-
icon: 'ph--lightning--regular',
|
|
79
|
-
disposition: 'hidden',
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
]),
|
|
83
|
-
Option.getOrElse(() => []),
|
|
84
|
-
),
|
|
85
|
-
),
|
|
86
|
-
}),
|
|
87
|
-
]);
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as BrowserKeyValueStore from '@effect/platform-browser/BrowserKeyValueStore';
|
|
6
|
-
import * as Effect from 'effect/Effect';
|
|
7
|
-
import * as Layer from 'effect/Layer';
|
|
8
|
-
import * as ManagedRuntime from 'effect/ManagedRuntime';
|
|
9
|
-
|
|
10
|
-
import { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';
|
|
11
|
-
import { GenericToolkit, makeToolExecutionServiceFromFunctions, makeToolResolverFromFunctions } from '@dxos/assistant';
|
|
12
|
-
import { Resource } from '@dxos/context';
|
|
13
|
-
import { Query, Ref } from '@dxos/echo';
|
|
14
|
-
import { CredentialsService, DatabaseService, QueueService } from '@dxos/functions';
|
|
15
|
-
import {
|
|
16
|
-
FunctionImplementationResolver,
|
|
17
|
-
FunctionInvocationServiceLayerWithLocalLoopbackExecutor,
|
|
18
|
-
InvocationTracer,
|
|
19
|
-
RemoteFunctionExecutionService,
|
|
20
|
-
TriggerDispatcher,
|
|
21
|
-
} from '@dxos/functions-runtime';
|
|
22
|
-
import { TriggerStateStore } from '@dxos/functions-runtime';
|
|
23
|
-
import { invariant } from '@dxos/invariant';
|
|
24
|
-
import { type SpaceId } from '@dxos/keys';
|
|
25
|
-
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
26
|
-
import { SpaceProperties } from '@dxos/react-client/echo';
|
|
27
|
-
|
|
28
|
-
import { AutomationCapabilities } from './capabilities';
|
|
29
|
-
|
|
30
|
-
export default async (context: PluginContext) => {
|
|
31
|
-
const provider = await new ComputeRuntimeProviderImpl(context).open();
|
|
32
|
-
return contributes(AutomationCapabilities.ComputeRuntime, provider, async () => {
|
|
33
|
-
await provider.close();
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
class ComputeRuntimeProviderImpl extends Resource implements AutomationCapabilities.ComputeRuntimeProvider {
|
|
38
|
-
readonly #runtimes = new Map<SpaceId, AutomationCapabilities.ComputeRuntime>();
|
|
39
|
-
readonly #context: PluginContext;
|
|
40
|
-
|
|
41
|
-
constructor(context: PluginContext) {
|
|
42
|
-
super();
|
|
43
|
-
this.#context = context;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
protected override async _open() {}
|
|
47
|
-
|
|
48
|
-
protected override async _close() {
|
|
49
|
-
await Promise.all(Array.from(this.#runtimes.values()).map((rt) => rt.dispose()));
|
|
50
|
-
this.#runtimes.clear();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
getRuntime(spaceId: SpaceId): AutomationCapabilities.ComputeRuntime {
|
|
54
|
-
if (this.#runtimes.has(spaceId)) {
|
|
55
|
-
return this.#runtimes.get(spaceId)!;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const layer = Layer.unwrapEffect(
|
|
59
|
-
Effect.gen(this, function* () {
|
|
60
|
-
const client = this.#context.getCapability(ClientCapabilities.Client);
|
|
61
|
-
const serviceLayer =
|
|
62
|
-
this.#context.getCapability(Capabilities.AiServiceLayer) ?? Layer.die('AiService not found');
|
|
63
|
-
|
|
64
|
-
// TODO(dmaretskyi): Make these reactive.
|
|
65
|
-
const functions = this.#context.getCapabilities(Capabilities.Functions).flat();
|
|
66
|
-
const toolkits = this.#context.getCapabilities(Capabilities.Toolkit);
|
|
67
|
-
const mergedToolkit = GenericToolkit.merge(...toolkits);
|
|
68
|
-
const toolkit = mergedToolkit.toolkit;
|
|
69
|
-
const toolkitLayer = mergedToolkit.layer;
|
|
70
|
-
|
|
71
|
-
const space = client.spaces.get(spaceId);
|
|
72
|
-
invariant(space);
|
|
73
|
-
yield* Effect.promise(() => space.waitUntilReady());
|
|
74
|
-
|
|
75
|
-
return Layer.mergeAll(TriggerDispatcher.layer({ timeControl: 'natural' })).pipe(
|
|
76
|
-
Layer.provideMerge(
|
|
77
|
-
Layer.mergeAll(
|
|
78
|
-
InvocationTracerLive,
|
|
79
|
-
TriggerStateStore.layerKv.pipe(Layer.provide(BrowserKeyValueStore.layerLocalStorage)),
|
|
80
|
-
makeToolResolverFromFunctions(functions, toolkit),
|
|
81
|
-
makeToolExecutionServiceFromFunctions(toolkit, toolkitLayer),
|
|
82
|
-
),
|
|
83
|
-
),
|
|
84
|
-
Layer.provideMerge(
|
|
85
|
-
Layer.mergeAll(
|
|
86
|
-
FunctionInvocationServiceLayerWithLocalLoopbackExecutor.pipe(
|
|
87
|
-
Layer.provideMerge(FunctionImplementationResolver.layerTest({ functions })),
|
|
88
|
-
Layer.provideMerge(
|
|
89
|
-
RemoteFunctionExecutionService.fromClient(
|
|
90
|
-
client,
|
|
91
|
-
// If agent is not enabled do not provide spaceId because space context will be unavailable on EDGE.
|
|
92
|
-
client.config.get('runtime.client.edgeFeatures.agents') ? spaceId : undefined,
|
|
93
|
-
),
|
|
94
|
-
),
|
|
95
|
-
Layer.provideMerge(serviceLayer),
|
|
96
|
-
Layer.provideMerge(CredentialsService.layerFromDatabase()),
|
|
97
|
-
Layer.provideMerge(space ? DatabaseService.layer(space.db) : DatabaseService.notAvailable),
|
|
98
|
-
Layer.provideMerge(space ? QueueService.layer(space.queues) : QueueService.notAvailable),
|
|
99
|
-
),
|
|
100
|
-
),
|
|
101
|
-
),
|
|
102
|
-
);
|
|
103
|
-
}),
|
|
104
|
-
);
|
|
105
|
-
|
|
106
|
-
const runtime = ManagedRuntime.make(layer);
|
|
107
|
-
this.#runtimes.set(spaceId, runtime);
|
|
108
|
-
|
|
109
|
-
return runtime;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const InvocationTracerLive = Layer.unwrapEffect(
|
|
114
|
-
Effect.gen(function* () {
|
|
115
|
-
const {
|
|
116
|
-
objects: [properties],
|
|
117
|
-
} = yield* DatabaseService.runQuery(Query.type(SpaceProperties));
|
|
118
|
-
invariant(properties);
|
|
119
|
-
// TODO(burdon): Check ref target has loaded?
|
|
120
|
-
if (!properties.invocationTraceQueue || !properties.invocationTraceQueue.target) {
|
|
121
|
-
const queue = yield* QueueService.createQueue({ subspaceTag: 'trace' });
|
|
122
|
-
properties.invocationTraceQueue = Ref.fromDXN(queue.dxn);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const queue = properties.invocationTraceQueue.target;
|
|
126
|
-
invariant(queue);
|
|
127
|
-
return InvocationTracer.layerLive({ invocationTraceQueue: queue });
|
|
128
|
-
}),
|
|
129
|
-
);
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
Capabilities,
|
|
7
|
-
LayoutAction,
|
|
8
|
-
type PluginContext,
|
|
9
|
-
contributes,
|
|
10
|
-
createIntent,
|
|
11
|
-
createResolver,
|
|
12
|
-
} from '@dxos/app-framework';
|
|
13
|
-
import { Ref } from '@dxos/echo';
|
|
14
|
-
import { Function, Script, Trigger } from '@dxos/functions';
|
|
15
|
-
import { type DXN } from '@dxos/keys';
|
|
16
|
-
import { ATTENDABLE_PATH_SEPARATOR } from '@dxos/plugin-deck/types';
|
|
17
|
-
import { SpaceAction } from '@dxos/plugin-space/types';
|
|
18
|
-
import { Filter } from '@dxos/react-client/echo';
|
|
19
|
-
|
|
20
|
-
import { AutomationAction } from '../types';
|
|
21
|
-
|
|
22
|
-
export default (context: PluginContext) =>
|
|
23
|
-
contributes(Capabilities.IntentResolver, [
|
|
24
|
-
createResolver({
|
|
25
|
-
intent: AutomationAction.CreateTriggerFromTemplate,
|
|
26
|
-
resolve: async ({ space, template, enabled = false, scriptName, input }) => {
|
|
27
|
-
const trigger = Trigger.make({ enabled, input });
|
|
28
|
-
|
|
29
|
-
// TODO(wittjosiah): Factor out function lookup by script name?
|
|
30
|
-
if (scriptName) {
|
|
31
|
-
const {
|
|
32
|
-
objects: [script],
|
|
33
|
-
} = await space.db.query(Filter.type(Script.Script, { name: scriptName })).run();
|
|
34
|
-
if (script) {
|
|
35
|
-
const {
|
|
36
|
-
objects: [fn],
|
|
37
|
-
} = await space.db.query(Filter.type(Function.Function, { source: Ref.make(script) })).run();
|
|
38
|
-
if (fn) {
|
|
39
|
-
trigger.function = Ref.make(fn);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
switch (template.type) {
|
|
45
|
-
case 'timer': {
|
|
46
|
-
trigger.spec = { kind: 'timer', cron: template.cron };
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
case 'queue': {
|
|
50
|
-
trigger.spec = { kind: 'queue', queue: (template.queueDXN as DXN).toString() };
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
default: {
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return {
|
|
59
|
-
intents: [
|
|
60
|
-
createIntent(SpaceAction.AddObject, { object: trigger, target: space, hidden: true }),
|
|
61
|
-
createIntent(LayoutAction.Open, {
|
|
62
|
-
part: 'main',
|
|
63
|
-
subject: [`automation-settings${ATTENDABLE_PATH_SEPARATOR}${space.id}`],
|
|
64
|
-
options: {
|
|
65
|
-
workspace: space.id,
|
|
66
|
-
},
|
|
67
|
-
}),
|
|
68
|
-
],
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
}),
|
|
72
|
-
]);
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Capabilities, contributes, createSurface } from '@dxos/app-framework';
|
|
8
|
-
import { useLayout } from '@dxos/app-framework/react';
|
|
9
|
-
import { Obj } from '@dxos/echo';
|
|
10
|
-
import { getSpace, parseId, useSpace } from '@dxos/react-client/echo';
|
|
11
|
-
|
|
12
|
-
import { AutomationSettings, FunctionsContainer } from '../components';
|
|
13
|
-
import { meta } from '../meta';
|
|
14
|
-
|
|
15
|
-
export default () =>
|
|
16
|
-
contributes(Capabilities.ReactSurface, [
|
|
17
|
-
createSurface({
|
|
18
|
-
id: `${meta.id}/space-settings-functions`,
|
|
19
|
-
role: 'article',
|
|
20
|
-
filter: (data): data is { subject: string } => data.subject === `${meta.id}/space-settings-functions`,
|
|
21
|
-
component: () => {
|
|
22
|
-
const layout = useLayout();
|
|
23
|
-
const { spaceId } = parseId(layout.workspace);
|
|
24
|
-
const space = useSpace(spaceId);
|
|
25
|
-
if (!space) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
return <FunctionsContainer space={space} />;
|
|
30
|
-
},
|
|
31
|
-
}),
|
|
32
|
-
createSurface({
|
|
33
|
-
id: `${meta.id}/space-settings-automation`,
|
|
34
|
-
role: 'article',
|
|
35
|
-
filter: (data): data is { subject: string } => data.subject === `${meta.id}/space-settings-automation`,
|
|
36
|
-
component: () => {
|
|
37
|
-
const layout = useLayout();
|
|
38
|
-
const { spaceId } = parseId(layout.workspace);
|
|
39
|
-
const space = useSpace(spaceId);
|
|
40
|
-
if (!space) {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return <AutomationSettings space={space} />;
|
|
45
|
-
},
|
|
46
|
-
}),
|
|
47
|
-
createSurface({
|
|
48
|
-
id: `${meta.id}/companion/automation`,
|
|
49
|
-
role: 'article',
|
|
50
|
-
filter: (data): data is { companionTo: Obj.Any; subject: 'automation' } =>
|
|
51
|
-
Obj.isObject(data.companionTo) && data.subject === 'automation',
|
|
52
|
-
component: ({ data }) => {
|
|
53
|
-
return <AutomationSettings space={getSpace(data.companionTo)!} object={data.companionTo} />;
|
|
54
|
-
},
|
|
55
|
-
}),
|
|
56
|
-
]);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { type Space } from '@dxos/react-client/echo';
|
|
8
|
-
import { Input, useTranslation } from '@dxos/react-ui';
|
|
9
|
-
import { ControlItemInput } from '@dxos/react-ui-form';
|
|
10
|
-
|
|
11
|
-
import { useTriggerRuntimeControls } from '../hooks';
|
|
12
|
-
import { meta } from '../meta';
|
|
13
|
-
|
|
14
|
-
export const TriggersSettings = ({ space }: { space: Space }) => {
|
|
15
|
-
const { triggers, isRunning, start, stop } = useTriggerRuntimeControls(space);
|
|
16
|
-
const { t } = useTranslation(meta.id);
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<div className='container-max-width grid grid-cols-1 md:grid-cols-[1fr_min-content]'>
|
|
20
|
-
<ControlItemInput title={t('runtime label')} description={t('runtime description')}>
|
|
21
|
-
<Input.Switch classNames='justify-self-end' checked={isRunning} onCheckedChange={isRunning ? stop : start} />
|
|
22
|
-
</ControlItemInput>
|
|
23
|
-
</div>
|
|
24
|
-
);
|
|
25
|
-
};
|
package/src/events.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { defineEvent } from '@dxos/app-framework';
|
|
6
|
-
|
|
7
|
-
import { meta } from './meta';
|
|
8
|
-
|
|
9
|
-
export namespace AutomationEvents {
|
|
10
|
-
export const ComputeRuntimeReady = defineEvent(`${meta.id}/event/compute-runtime-ready`);
|
|
11
|
-
}
|
/package/dist/lib/browser/{AutomationPanel-M4M77L4V.mjs.map → AutomationPanel-IGLIQY2N.mjs.map}
RENAMED
|
File without changes
|
/package/dist/lib/browser/{FunctionsPanel-CRW6SJUN.mjs.map → FunctionsPanel-NMA4RYJL.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|