@dxos/plugin-automation 0.8.3 → 0.8.4-main.1c7ec43d41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/chunk-CHUTFU3D.mjs +54 -0
- package/dist/lib/browser/chunk-CHUTFU3D.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-RE64VLSV.mjs +44 -0
- package/dist/lib/browser/chunk-RE64VLSV.mjs.map +7 -0
- package/dist/lib/browser/create-trigger-from-template-JLBSJRVB.mjs +70 -0
- package/dist/lib/browser/create-trigger-from-template-JLBSJRVB.mjs.map +7 -0
- package/dist/lib/browser/hooks/index.mjs +129 -0
- package/dist/lib/browser/hooks/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +20 -93
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operations/index.mjs +14 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/translations.mjs +47 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +14 -0
- package/dist/lib/node-esm/chunk-HHIHREME.mjs +45 -0
- package/dist/lib/node-esm/chunk-HHIHREME.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-NWQMBY32.mjs +56 -0
- package/dist/lib/node-esm/chunk-NWQMBY32.mjs.map +7 -0
- package/dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs +71 -0
- package/dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs.map +7 -0
- package/dist/lib/node-esm/hooks/index.mjs +130 -0
- package/dist/lib/node-esm/hooks/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +20 -93
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operations/index.mjs +15 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/translations.mjs +48 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +15 -0
- package/dist/types/src/AutomationPlugin.d.ts +3 -1
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- package/dist/types/src/AutomationPlugin.node.d.ts +4 -0
- 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 +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/compute-runtime.d.ts +14 -0
- package/dist/types/src/capabilities/compute-runtime.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +6 -3
- 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 +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/commands/index.d.ts +2 -0
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/create/index.d.ts +25 -0
- package/dist/types/src/commands/trigger/create/index.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/create/queue.d.ts +13 -0
- package/dist/types/src/commands/trigger/create/queue.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/create/subscription.d.ts +15 -0
- package/dist/types/src/commands/trigger/create/subscription.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/create/timer.d.ts +13 -0
- package/dist/types/src/commands/trigger/create/timer.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/index.d.ts +57 -0
- package/dist/types/src/commands/trigger/index.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/list.d.ts +7 -0
- package/dist/types/src/commands/trigger/list.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/options.d.ts +11 -0
- package/dist/types/src/commands/trigger/options.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/remove.d.ts +8 -0
- package/dist/types/src/commands/trigger/remove.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/update/index.d.ts +28 -0
- package/dist/types/src/commands/trigger/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/update/queue.d.ts +12 -0
- package/dist/types/src/commands/trigger/update/queue.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/update/subscription.d.ts +13 -0
- package/dist/types/src/commands/trigger/update/subscription.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/update/timer.d.ts +11 -0
- package/dist/types/src/commands/trigger/update/timer.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/util.d.ts +46 -0
- package/dist/types/src/commands/trigger/util.d.ts.map +1 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +3 -3
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +50 -4
- 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 +8 -0
- package/dist/types/src/components/FunctionsRegistry/FunctionsRegistry.d.ts.map +1 -0
- package/dist/types/src/components/FunctionsRegistry/index.d.ts +4 -0
- package/dist/types/src/components/FunctionsRegistry/index.d.ts.map +1 -0
- package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts +12 -9
- 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 +11 -8
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +121 -4
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts +6 -0
- package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts.map +1 -0
- package/dist/types/src/containers/AutomationSettings/index.d.ts +2 -0
- package/dist/types/src/containers/AutomationSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts +4 -0
- package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts.map +1 -0
- package/dist/types/src/containers/FunctionsContainer/index.d.ts +2 -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/index.d.ts +5 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- 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 +9 -0
- package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +1 -0
- 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 +12 -0
- package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- 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/definitions.d.ts +19 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/testing/test-functions.d.ts +204 -3
- package/dist/types/src/testing/test-functions.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +35 -29
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +24 -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 +4 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/{types.d.ts → types/schema.d.ts} +13 -5
- package/dist/types/src/types/schema.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +110 -46
- package/src/AutomationPlugin.node.ts +29 -0
- package/src/AutomationPlugin.test.ts +27 -0
- package/src/AutomationPlugin.tsx +23 -34
- package/src/capabilities/app-graph-builder.ts +59 -79
- package/src/capabilities/compute-runtime.ts +325 -0
- package/src/capabilities/index.ts +9 -4
- package/src/capabilities/node.ts +13 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +49 -46
- package/src/commands/index.ts +5 -0
- package/src/commands/trigger/create/index.ts +14 -0
- package/src/commands/trigger/create/queue.ts +86 -0
- package/src/commands/trigger/create/subscription.ts +125 -0
- package/src/commands/trigger/create/timer.ts +90 -0
- package/src/commands/trigger/index.ts +16 -0
- package/src/commands/trigger/list.ts +70 -0
- package/src/commands/trigger/options.ts +59 -0
- package/src/commands/trigger/remove.ts +45 -0
- package/src/commands/trigger/update/index.ts +14 -0
- package/src/commands/trigger/update/queue.ts +194 -0
- package/src/commands/trigger/update/subscription.ts +278 -0
- package/src/commands/trigger/update/timer.ts +193 -0
- package/src/commands/trigger/util.ts +410 -0
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +17 -17
- package/src/components/AutomationPanel/AutomationPanel.tsx +250 -94
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +51 -32
- package/src/components/FunctionsRegistry/FunctionsRegistry.tsx +114 -0
- package/src/components/FunctionsRegistry/index.ts +8 -0
- package/src/components/TriggerEditor/FunctionInputEditor.tsx +42 -35
- package/src/components/TriggerEditor/SpecSelector.tsx +34 -22
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +128 -40
- package/src/components/TriggerEditor/TriggerEditor.tsx +109 -48
- package/src/components/index.ts +1 -2
- package/src/containers/AutomationSettings/AutomationSettings.tsx +31 -0
- package/src/containers/AutomationSettings/index.ts +5 -0
- package/src/containers/FunctionsContainer/FunctionsContainer.tsx +33 -0
- package/src/containers/FunctionsContainer/index.ts +5 -0
- package/src/containers/TriggerSettings/TriggerSettings.tsx +48 -0
- package/src/containers/TriggerSettings/index.ts +6 -0
- package/src/containers/index.ts +9 -0
- package/src/hooks/index.ts +9 -0
- package/src/hooks/useComputeRuntime.ts +30 -0
- package/src/hooks/useComputeRuntimeCallback.ts +32 -0
- package/src/hooks/useComputeRuntimeService.ts +64 -0
- package/src/hooks/useTriggerRuntimeControls.ts +70 -0
- package/src/index.ts +5 -3
- package/src/meta.ts +10 -8
- package/src/operations/create-trigger-from-template.ts +71 -0
- package/src/operations/definitions.ts +28 -0
- package/src/operations/index.ts +9 -0
- package/src/testing/test-functions.ts +13 -10
- package/src/translations.ts +44 -32
- package/src/types/capabilities.ts +47 -0
- package/src/types/events.ts +11 -0
- package/src/types/index.ts +7 -0
- package/src/{types.ts → types/schema.ts} +6 -8
- package/dist/lib/browser/AutomationContainer-OGNK3HD5.mjs +0 -38
- package/dist/lib/browser/AutomationContainer-OGNK3HD5.mjs.map +0 -7
- package/dist/lib/browser/AutomationPanel-PRIIAXD5.mjs +0 -11
- package/dist/lib/browser/FunctionsContainer-JY7V7PLF.mjs +0 -39
- package/dist/lib/browser/FunctionsContainer-JY7V7PLF.mjs.map +0 -7
- package/dist/lib/browser/FunctionsPanel-LY4IFKR7.mjs +0 -10
- package/dist/lib/browser/app-graph-builder-T34RV5UA.mjs +0 -80
- package/dist/lib/browser/app-graph-builder-T34RV5UA.mjs.map +0 -7
- package/dist/lib/browser/chunk-4E2KPMLB.mjs +0 -39
- package/dist/lib/browser/chunk-4E2KPMLB.mjs.map +0 -7
- package/dist/lib/browser/chunk-C5VOC5EE.mjs +0 -147
- package/dist/lib/browser/chunk-C5VOC5EE.mjs.map +0 -7
- package/dist/lib/browser/chunk-IHAKPP5A.mjs +0 -15
- package/dist/lib/browser/chunk-IHAKPP5A.mjs.map +0 -7
- package/dist/lib/browser/chunk-N5VLW7UZ.mjs +0 -230
- package/dist/lib/browser/chunk-N5VLW7UZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-RHSCK7AU.mjs +0 -94
- package/dist/lib/browser/chunk-RHSCK7AU.mjs.map +0 -7
- package/dist/lib/browser/chunk-VQWJ5UYA.mjs +0 -14
- package/dist/lib/browser/chunk-VQWJ5UYA.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-AX46HSU7.mjs +0 -76
- package/dist/lib/browser/intent-resolver-AX46HSU7.mjs.map +0 -7
- package/dist/lib/browser/react-surface-Z7A272CA.mjs +0 -64
- package/dist/lib/browser/react-surface-Z7A272CA.mjs.map +0 -7
- package/dist/lib/browser/types.mjs +0 -8
- package/dist/lib/node/AutomationContainer-B7PSJFIS.cjs +0 -66
- package/dist/lib/node/AutomationContainer-B7PSJFIS.cjs.map +0 -7
- package/dist/lib/node/AutomationPanel-XYLZU4MI.cjs +0 -32
- package/dist/lib/node/AutomationPanel-XYLZU4MI.cjs.map +0 -7
- package/dist/lib/node/FunctionsContainer-4FGOQW5X.cjs +0 -67
- package/dist/lib/node/FunctionsContainer-4FGOQW5X.cjs.map +0 -7
- package/dist/lib/node/FunctionsPanel-EWWAZK3W.cjs +0 -31
- package/dist/lib/node/FunctionsPanel-EWWAZK3W.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-5XRIIV7E.cjs +0 -96
- package/dist/lib/node/app-graph-builder-5XRIIV7E.cjs.map +0 -7
- package/dist/lib/node/chunk-3EF7MLFX.cjs +0 -38
- package/dist/lib/node/chunk-3EF7MLFX.cjs.map +0 -7
- package/dist/lib/node/chunk-6X3XJ4VI.cjs +0 -122
- package/dist/lib/node/chunk-6X3XJ4VI.cjs.map +0 -7
- package/dist/lib/node/chunk-GIIVTK4O.cjs +0 -58
- package/dist/lib/node/chunk-GIIVTK4O.cjs.map +0 -7
- package/dist/lib/node/chunk-IXUCZ3YY.cjs +0 -173
- package/dist/lib/node/chunk-IXUCZ3YY.cjs.map +0 -7
- package/dist/lib/node/chunk-LQ6XK4N5.cjs +0 -253
- package/dist/lib/node/chunk-LQ6XK4N5.cjs.map +0 -7
- package/dist/lib/node/chunk-TH4XDKAY.cjs +0 -49
- package/dist/lib/node/chunk-TH4XDKAY.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -124
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-EAREQZFE.cjs +0 -92
- package/dist/lib/node/intent-resolver-EAREQZFE.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/react-surface-OI6CDHEI.cjs +0 -87
- package/dist/lib/node/react-surface-OI6CDHEI.cjs.map +0 -7
- package/dist/lib/node/types.cjs +0 -30
- package/dist/lib/node/types.cjs.map +0 -7
- package/dist/lib/node-esm/AutomationContainer-ANCUYDDA.mjs +0 -39
- package/dist/lib/node-esm/AutomationContainer-ANCUYDDA.mjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-Y3ODAHH7.mjs +0 -12
- package/dist/lib/node-esm/FunctionsContainer-25M5VT3J.mjs +0 -40
- package/dist/lib/node-esm/FunctionsContainer-25M5VT3J.mjs.map +0 -7
- package/dist/lib/node-esm/FunctionsPanel-HVGF5AJP.mjs +0 -11
- package/dist/lib/node-esm/FunctionsPanel-HVGF5AJP.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-DYWAKQM3.mjs +0 -81
- package/dist/lib/node-esm/app-graph-builder-DYWAKQM3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2IH4VB3R.mjs +0 -95
- package/dist/lib/node-esm/chunk-2IH4VB3R.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2T2OZC3A.mjs +0 -148
- package/dist/lib/node-esm/chunk-2T2OZC3A.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6JOJ2NN4.mjs +0 -40
- package/dist/lib/node-esm/chunk-6JOJ2NN4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HCCLRNMJ.mjs +0 -17
- package/dist/lib/node-esm/chunk-HCCLRNMJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UFHDB2OA.mjs +0 -231
- package/dist/lib/node-esm/chunk-UFHDB2OA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-WJHKFPX2.mjs +0 -16
- package/dist/lib/node-esm/chunk-WJHKFPX2.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-WXHFNJJI.mjs +0 -77
- package/dist/lib/node-esm/intent-resolver-WXHFNJJI.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-TP6IYSR4.mjs +0 -65
- package/dist/lib/node-esm/react-surface-TP6IYSR4.mjs.map +0 -7
- package/dist/lib/node-esm/types.mjs +0 -9
- package/dist/lib/node-esm/types.mjs.map +0 -7
- 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/components/AutomationContainer.d.ts +0 -5
- package/dist/types/src/components/AutomationContainer.d.ts.map +0 -1
- package/dist/types/src/components/FunctionsContainer.d.ts +0 -7
- package/dist/types/src/components/FunctionsContainer.d.ts.map +0 -1
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -72
- package/src/components/AutomationContainer.tsx +0 -30
- package/src/components/FunctionsContainer.tsx +0 -31
- /package/dist/lib/browser/{AutomationPanel-PRIIAXD5.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/browser/{FunctionsPanel-LY4IFKR7.mjs.map → types/index.mjs.map} +0 -0
- /package/dist/lib/{browser/types.mjs.map → node-esm/chunk-HSLMI22Q.mjs.map} +0 -0
- /package/dist/lib/node-esm/{AutomationPanel-Y3ODAHH7.mjs.map → types/index.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-automation/src/components/TriggerEditor/FunctionInputEditor.tsx":{"bytes":8600,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-automation/src/meta.ts":{"bytes":1695,"imports":[],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/SpecSelector.tsx":{"bytes":7368,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytes":12342,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/FunctionInputEditor.tsx","kind":"import-statement","original":"./FunctionInputEditor"},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/SpecSelector.tsx","kind":"import-statement","original":"./SpecSelector"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytes":516,"imports":[{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx","kind":"import-statement","original":"./TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytes":21295,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"../TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytes":813,"imports":[{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx":{"bytes":3623,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"import-statement","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx":{"bytes":12151,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts":{"bytes":796,"imports":[{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx","kind":"import-statement","original":"./FunctionsPanel"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx","kind":"import-statement","original":"./FunctionsPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx":{"bytes":3706,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","kind":"import-statement","original":"./FunctionsPanel"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/index.ts":{"bytes":1700,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"./TriggerEditor"},{"path":"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx","kind":"dynamic-import","original":"./AutomationContainer"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"dynamic-import","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx","kind":"dynamic-import","original":"./FunctionsContainer"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","kind":"dynamic-import","original":"./FunctionsPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytes":11388,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/types.ts":{"bytes":4294,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts":{"bytes":9282,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytes":7286,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytes":1317,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-automation/src/translations.ts":{"bytes":4585,"imports":[{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytes":5376,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-automation/src/index.ts":{"bytes":672,"imports":[{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/AutomationPlugin.tsx","kind":"import-statement","original":"./AutomationPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-automation/dist/lib/browser/react-surface-Z7A272CA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3604},"packages/plugins/plugin-automation/dist/lib/browser/react-surface-Z7A272CA.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-VQWJ5UYA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-N5VLW7UZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytesInOutput":1702}},"bytes":2037},"packages/plugins/plugin-automation/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5188},"packages/plugins/plugin-automation/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-VQWJ5UYA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-N5VLW7UZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/browser/app-graph-builder-T34RV5UA.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/intent-resolver-AX46HSU7.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/react-surface-Z7A272CA.mjs","kind":"dynamic-import"}],"exports":["AUTOMATION_PLUGIN","AutomationContainer","AutomationPanel","AutomationPlugin","FunctionsContainer","FunctionsPanel","TriggerEditor","meta"],"entryPoint":"packages/plugins/plugin-automation/src/index.ts","inputs":{"packages/plugins/plugin-automation/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytesInOutput":1109},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytesInOutput":268},"packages/plugins/plugin-automation/src/translations.ts":{"bytesInOutput":1380}},"bytes":3448},"packages/plugins/plugin-automation/dist/lib/browser/chunk-VQWJ5UYA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":836},"packages/plugins/plugin-automation/dist/lib/browser/chunk-VQWJ5UYA.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/browser/AutomationContainer-OGNK3HD5.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/AutomationPanel-PRIIAXD5.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/FunctionsContainer-JY7V7PLF.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/FunctionsPanel-LY4IFKR7.mjs","kind":"dynamic-import"}],"exports":["AutomationContainer","AutomationPanel","FunctionsContainer","FunctionsPanel"],"inputs":{"packages/plugins/plugin-automation/src/components/index.ts":{"bytesInOutput":346}},"bytes":546},"packages/plugins/plugin-automation/dist/lib/browser/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/browser/types.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-4E2KPMLB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"}],"exports":["AutomationAction"],"entryPoint":"packages/plugins/plugin-automation/src/types.ts","inputs":{},"bytes":156},"packages/plugins/plugin-automation/dist/lib/browser/AutomationPanel-PRIIAXD5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/browser/AutomationPanel-PRIIAXD5.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-C5VOC5EE.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-N5VLW7UZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"}],"exports":["AutomationPanel","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","inputs":{},"bytes":269},"packages/plugins/plugin-automation/dist/lib/browser/AutomationContainer-OGNK3HD5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1782},"packages/plugins/plugin-automation/dist/lib/browser/AutomationContainer-OGNK3HD5.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-C5VOC5EE.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-N5VLW7UZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["AutomationContainer","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx","inputs":{"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx":{"bytesInOutput":968}},"bytes":1329},"packages/plugins/plugin-automation/dist/lib/browser/chunk-C5VOC5EE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11702},"packages/plugins/plugin-automation/dist/lib/browser/chunk-C5VOC5EE.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-N5VLW7UZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["AutomationPanel","AutomationPanel_default"],"inputs":{"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytesInOutput":5288},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytesInOutput":47}},"bytes":5722},"packages/plugins/plugin-automation/dist/lib/browser/chunk-N5VLW7UZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":14379},"packages/plugins/plugin-automation/dist/lib/browser/chunk-N5VLW7UZ.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"exports":["TriggerEditor"],"inputs":{"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytesInOutput":2929},"packages/plugins/plugin-automation/src/components/TriggerEditor/FunctionInputEditor.tsx":{"bytesInOutput":2203},"packages/plugins/plugin-automation/src/components/TriggerEditor/SpecSelector.tsx":{"bytesInOutput":1877},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytesInOutput":0}},"bytes":7491},"packages/plugins/plugin-automation/dist/lib/browser/FunctionsPanel-LY4IFKR7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/browser/FunctionsPanel-LY4IFKR7.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-RHSCK7AU.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"}],"exports":["FunctionsPanel","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","inputs":{},"bytes":233},"packages/plugins/plugin-automation/dist/lib/browser/FunctionsContainer-JY7V7PLF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1792},"packages/plugins/plugin-automation/dist/lib/browser/FunctionsContainer-JY7V7PLF.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-RHSCK7AU.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["FunctionsContainer","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx","inputs":{"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx":{"bytesInOutput":980}},"bytes":1305},"packages/plugins/plugin-automation/dist/lib/browser/chunk-RHSCK7AU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6639},"packages/plugins/plugin-automation/dist/lib/browser/chunk-RHSCK7AU.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["FunctionsPanel","FunctionsPanel_default"],"inputs":{"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx":{"bytesInOutput":3203},"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts":{"bytesInOutput":45}},"bytes":3574},"packages/plugins/plugin-automation/dist/lib/browser/app-graph-builder-T34RV5UA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5343},"packages/plugins/plugin-automation/dist/lib/browser/app-graph-builder-T34RV5UA.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytesInOutput":2525}},"bytes":2756},"packages/plugins/plugin-automation/dist/lib/browser/intent-resolver-AX46HSU7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4509},"packages/plugins/plugin-automation/dist/lib/browser/intent-resolver-AX46HSU7.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-4E2KPMLB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts":{"bytesInOutput":2035}},"bytes":2303},"packages/plugins/plugin-automation/dist/lib/browser/chunk-4E2KPMLB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2184},"packages/plugins/plugin-automation/dist/lib/browser/chunk-4E2KPMLB.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["AutomationAction"],"inputs":{"packages/plugins/plugin-automation/src/types.ts":{"bytesInOutput":1025}},"bytes":1213},"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":814},"packages/plugins/plugin-automation/dist/lib/browser/chunk-IHAKPP5A.mjs":{"imports":[],"exports":["AUTOMATION_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytesInOutput":382}},"bytes":517}}}
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":1804,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":982,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/types/capabilities.ts":{"bytes":3054,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/events.ts":{"bytes":1200,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/schema.ts":{"bytes":3948,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":556,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/events.ts","kind":"import-statement","original":"./events"},{"path":"src/types/schema.ts","kind":"import-statement","original":"./schema"}],"format":"esm"},"src/hooks/useComputeRuntime.ts":{"bytes":3478,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/hooks/useComputeRuntimeCallback.ts":{"bytes":2640,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"}],"format":"esm"},"src/hooks/useTriggerRuntimeControls.ts":{"bytes":5964,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions-runtime","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntimeCallback.ts","kind":"import-statement","original":"./useComputeRuntimeCallback"}],"format":"esm"},"src/hooks/useComputeRuntimeService.ts":{"bytes":6499,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Exit","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"}],"format":"esm"},"src/hooks/index.ts":{"bytes":884,"imports":[{"path":"src/hooks/useComputeRuntimeCallback.ts","kind":"import-statement","original":"./useComputeRuntimeCallback"},{"path":"src/hooks/useTriggerRuntimeControls.ts","kind":"import-statement","original":"./useTriggerRuntimeControls"},{"path":"src/hooks/useComputeRuntime.ts","kind":"import-statement","original":"./useComputeRuntime"},{"path":"src/hooks/useComputeRuntimeService.ts","kind":"import-statement","original":"./useComputeRuntimeService"}],"format":"esm"},"src/translations.ts":{"bytes":6070,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/operations/definitions.ts":{"bytes":3553,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/create-trigger-from-template.ts":{"bytes":8359,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"},"src/operations/index.ts":{"bytes":1108,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"},{"path":"src/operations/create-trigger-from-template.ts","kind":"dynamic-import","original":"./create-trigger-from-template"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1280},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["AutomationPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":113},"src/meta.ts":{"bytesInOutput":465}},"bytes":733},"dist/lib/browser/hooks/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9297},"dist/lib/browser/hooks/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-CHUTFU3D.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions-runtime","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Exit","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["useComputeRuntime","useComputeRuntimeCallback","useComputeRuntimeService","useTriggerRuntimeControls"],"entryPoint":"src/hooks/index.ts","inputs":{"src/hooks/useComputeRuntimeCallback.ts":{"bytesInOutput":347},"src/hooks/useComputeRuntime.ts":{"bytesInOutput":675},"src/hooks/index.ts":{"bytesInOutput":0},"src/hooks/useTriggerRuntimeControls.ts":{"bytesInOutput":1342},"src/hooks/useComputeRuntimeService.ts":{"bytesInOutput":1310}},"bytes":4131},"dist/lib/browser/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2775},"dist/lib/browser/translations.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1933}},"bytes":2057},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-CHUTFU3D.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["AutomationAction","AutomationCapabilities","AutomationEvents","TriggerTemplate"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":288},"dist/lib/browser/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":544},"dist/lib/browser/operations/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-RE64VLSV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-CHUTFU3D.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/browser/create-trigger-from-template-JLBSJRVB.mjs","kind":"dynamic-import"}],"exports":["AutomationOperation","AutomationOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":177}},"bytes":457},"dist/lib/browser/create-trigger-from-template-JLBSJRVB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4487},"dist/lib/browser/create-trigger-from-template-JLBSJRVB.mjs":{"imports":[{"path":"dist/lib/browser/chunk-RE64VLSV.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-CHUTFU3D.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/create-trigger-from-template.ts","inputs":{"src/operations/create-trigger-from-template.ts":{"bytesInOutput":1815}},"bytes":2125},"dist/lib/browser/chunk-RE64VLSV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1820},"dist/lib/browser/chunk-RE64VLSV.mjs":{"imports":[{"path":"dist/lib/browser/chunk-CHUTFU3D.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["CreateTriggerFromTemplate","definitions_exports"],"inputs":{"src/operations/definitions.ts":{"bytesInOutput":903}},"bytes":1154},"dist/lib/browser/chunk-CHUTFU3D.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4392},"dist/lib/browser/chunk-CHUTFU3D.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["AutomationAction","AutomationCapabilities","AutomationEvents","TriggerTemplate"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":307},"src/types/index.ts":{"bytesInOutput":0},"src/types/events.ts":{"bytesInOutput":303},"src/types/schema.ts":{"bytesInOutput":998}},"bytes":1826},"dist/lib/browser/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
definitions_exports
|
|
3
|
+
} from "../chunk-RE64VLSV.mjs";
|
|
4
|
+
import "../chunk-CHUTFU3D.mjs";
|
|
5
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/index.ts
|
|
8
|
+
import { OperationHandlerSet } from "@dxos/compute";
|
|
9
|
+
var AutomationOperationHandlerSet = OperationHandlerSet.lazy(() => import("../create-trigger-from-template-JLBSJRVB.mjs"));
|
|
10
|
+
export {
|
|
11
|
+
definitions_exports as AutomationOperation,
|
|
12
|
+
AutomationOperationHandlerSet
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/operations/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/compute';\n\nexport * as AutomationOperation from './definitions';\n\nexport const AutomationOperationHandlerSet = OperationHandlerSet.lazy(() => import('./create-trigger-from-template'));\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,SAASA,2BAA2B;AAI7B,IAAMC,gCAAgCD,oBAAoBE,KAAK,MAAM,OAAO,8CAAA,CAAA;",
|
|
6
|
+
"names": ["OperationHandlerSet", "AutomationOperationHandlerSet", "lazy"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/translations.ts
|
|
4
|
+
import { meta } from "#meta";
|
|
5
|
+
var translations = [
|
|
6
|
+
{
|
|
7
|
+
"en-US": {
|
|
8
|
+
[meta.id]: {
|
|
9
|
+
"plugin.name": "Automation",
|
|
10
|
+
"automation-panel.label": "Automations",
|
|
11
|
+
"script-automation.label": "Automation",
|
|
12
|
+
"automation-verbose.label": "Manage automations",
|
|
13
|
+
"automation.description": "Triggers that automate this space.",
|
|
14
|
+
"runtime.label": "Trigger runtime location",
|
|
15
|
+
"runtime.description": "Determines where the triggers in this space will execute.",
|
|
16
|
+
"runtime.disabled.label": "Triggers disabled",
|
|
17
|
+
"runtime.local.label": "Local",
|
|
18
|
+
"runtime.edge.label": "EDGE (experimental)",
|
|
19
|
+
"functions-panel.label": "Functions",
|
|
20
|
+
"functions-verbose.label": "Manage deployed functions",
|
|
21
|
+
"functions-registry-verbose.label": "Functions registry",
|
|
22
|
+
"functions-registry.description": "Import functions from the registry",
|
|
23
|
+
"functions.description": "Functions deployed from this space on EDGE.",
|
|
24
|
+
"show-source-button.label": "Show source",
|
|
25
|
+
"delete-function-button.label": "Delete function",
|
|
26
|
+
"function-parameters.label": "Function parameters",
|
|
27
|
+
"trigger-editor.title": "Configure Trigger",
|
|
28
|
+
"trigger-editor.description": "Triggers are used to run functions at specific times or when specific events occur.",
|
|
29
|
+
"new-trigger.label": "Add Trigger",
|
|
30
|
+
"trigger-type.timer.label": "Timer",
|
|
31
|
+
"trigger-type.webhook.label": "Webhook",
|
|
32
|
+
"trigger-type.websocket.label": "Websocket",
|
|
33
|
+
"trigger-type.subscription.label": "Subscription",
|
|
34
|
+
"trigger-type.email.label": "Email",
|
|
35
|
+
"trigger-type.queue.label": "Feed",
|
|
36
|
+
"trigger-payload-prop-name.placeholder": "New payload property name",
|
|
37
|
+
"import-function-button.label": "Loading...",
|
|
38
|
+
"update-function-button.label": "Update",
|
|
39
|
+
"loading-functions.message": "Loading functions..."
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
export {
|
|
45
|
+
translations
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Automation',\n 'automation-panel.label': 'Automations',\n 'script-automation.label': 'Automation',\n 'automation-verbose.label': 'Manage automations',\n 'automation.description': 'Triggers that automate this space.',\n\n 'runtime.label': 'Trigger runtime location',\n 'runtime.description': 'Determines where the triggers in this space will execute.',\n 'runtime.disabled.label': 'Triggers disabled',\n 'runtime.local.label': 'Local',\n 'runtime.edge.label': 'EDGE (experimental)',\n\n 'functions-panel.label': 'Functions',\n 'functions-verbose.label': 'Manage deployed functions',\n 'functions-registry-verbose.label': 'Functions registry',\n 'functions-registry.description': 'Import functions from the registry',\n 'functions.description': 'Functions deployed from this space on EDGE.',\n 'show-source-button.label': 'Show source',\n 'delete-function-button.label': 'Delete function',\n\n 'function-parameters.label': 'Function parameters',\n\n 'trigger-editor.title': 'Configure Trigger',\n 'trigger-editor.description':\n 'Triggers are used to run functions at specific times or when specific events occur.',\n 'new-trigger.label': 'Add Trigger',\n\n 'trigger-type.timer.label': 'Timer',\n 'trigger-type.webhook.label': 'Webhook',\n 'trigger-type.websocket.label': 'Websocket',\n 'trigger-type.subscription.label': 'Subscription',\n 'trigger-type.email.label': 'Email',\n 'trigger-type.queue.label': 'Feed',\n\n 'trigger-payload-prop-name.placeholder': 'New payload property name',\n 'import-function-button.label': 'Loading...',\n 'update-function-button.label': 'Update',\n 'loading-functions.message': 'Loading functions...',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;AAMA,SAASA,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,KAAKE,EAAE,GAAG;QACT,eAAe;QACf,0BAA0B;QAC1B,2BAA2B;QAC3B,4BAA4B;QAC5B,0BAA0B;QAE1B,iBAAiB;QACjB,uBAAuB;QACvB,0BAA0B;QAC1B,uBAAuB;QACvB,sBAAsB;QAEtB,yBAAyB;QACzB,2BAA2B;QAC3B,oCAAoC;QACpC,kCAAkC;QAClC,yBAAyB;QACzB,4BAA4B;QAC5B,gCAAgC;QAEhC,6BAA6B;QAE7B,wBAAwB;QACxB,8BACE;QACF,qBAAqB;QAErB,4BAA4B;QAC5B,8BAA8B;QAC9B,gCAAgC;QAChC,mCAAmC;QACnC,4BAA4B;QAC5B,4BAA4B;QAE5B,yCAAyC;QACzC,gCAAgC;QAChC,gCAAgC;QAChC,6BAA6B;MAC/B;IACF;EACF;;",
|
|
6
|
+
"names": ["meta", "translations", "id"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AutomationAction,
|
|
3
|
+
AutomationCapabilities,
|
|
4
|
+
AutomationEvents,
|
|
5
|
+
TriggerTemplate
|
|
6
|
+
} from "../chunk-CHUTFU3D.mjs";
|
|
7
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
8
|
+
export {
|
|
9
|
+
AutomationAction,
|
|
10
|
+
AutomationCapabilities,
|
|
11
|
+
AutomationEvents,
|
|
12
|
+
TriggerTemplate
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
TriggerTemplate
|
|
4
|
+
} from "./chunk-NWQMBY32.mjs";
|
|
5
|
+
import {
|
|
6
|
+
__export
|
|
7
|
+
} from "./chunk-HSLMI22Q.mjs";
|
|
8
|
+
|
|
9
|
+
// src/operations/definitions.ts
|
|
10
|
+
var definitions_exports = {};
|
|
11
|
+
__export(definitions_exports, {
|
|
12
|
+
CreateTriggerFromTemplate: () => CreateTriggerFromTemplate
|
|
13
|
+
});
|
|
14
|
+
import * as Schema from "effect/Schema";
|
|
15
|
+
import { Capability } from "@dxos/app-framework";
|
|
16
|
+
import { Operation } from "@dxos/compute";
|
|
17
|
+
import { Database } from "@dxos/echo";
|
|
18
|
+
import { meta } from "#meta";
|
|
19
|
+
var AUTOMATION_OPERATION = `${meta.id}.operation`;
|
|
20
|
+
var CreateTriggerFromTemplate = Operation.make({
|
|
21
|
+
meta: {
|
|
22
|
+
key: `${AUTOMATION_OPERATION}.create-trigger-from-template`,
|
|
23
|
+
name: "Create Trigger From Template"
|
|
24
|
+
},
|
|
25
|
+
services: [
|
|
26
|
+
Capability.Service
|
|
27
|
+
],
|
|
28
|
+
input: Schema.Struct({
|
|
29
|
+
db: Database.Database,
|
|
30
|
+
template: TriggerTemplate,
|
|
31
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
32
|
+
scriptName: Schema.optional(Schema.String),
|
|
33
|
+
input: Schema.optional(Schema.Record({
|
|
34
|
+
key: Schema.String,
|
|
35
|
+
value: Schema.Any
|
|
36
|
+
}))
|
|
37
|
+
}),
|
|
38
|
+
output: Schema.Void
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
CreateTriggerFromTemplate,
|
|
43
|
+
definitions_exports
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=chunk-HHIHREME.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/definitions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { Database } from '@dxos/echo';\n\nimport { meta } from '#meta';\n\nimport { TriggerTemplate } from '../types';\n\nconst AUTOMATION_OPERATION = `${meta.id}.operation`;\n\nexport const CreateTriggerFromTemplate = Operation.make({\n meta: { key: `${AUTOMATION_OPERATION}.create-trigger-from-template`, name: 'Create Trigger From Template' },\n services: [Capability.Service],\n input: Schema.Struct({\n db: Database.Database,\n template: TriggerTemplate,\n enabled: Schema.optional(Schema.Boolean),\n scriptName: Schema.optional(Schema.String),\n input: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n }),\n output: Schema.Void,\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAAA;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB;AAEzB,SAASC,YAAY;AAIrB,IAAMC,uBAAuB,GAAGC,KAAKC,EAAE;AAEhC,IAAMC,4BAA4BC,UAAUC,KAAK;EACtDJ,MAAM;IAAEK,KAAK,GAAGN,oBAAAA;IAAqDO,MAAM;EAA+B;EAC1GC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnBC,IAAIC,SAASA;IACbC,UAAUC;IACVC,SAAgBC,gBAAgBC,cAAO;IACvCC,YAAmBF,gBAAgBG,aAAM;IACzCV,OAAcO,gBAAgBI,cAAO;MAAEhB,KAAYe;MAAQE,OAAcC;IAAI,CAAA,CAAA;EAC/E,CAAA;EACAC,QAAeC;AACjB,CAAA;",
|
|
6
|
+
"names": ["Schema", "Capability", "Operation", "Database", "meta", "AUTOMATION_OPERATION", "meta", "id", "CreateTriggerFromTemplate", "Operation", "make", "key", "name", "services", "Capability", "Service", "input", "Struct", "db", "Database", "template", "TriggerTemplate", "enabled", "optional", "Boolean", "scriptName", "String", "Record", "value", "Any", "output", "Void"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __export = (target, all) => {
|
|
4
|
+
for (var name in all)
|
|
5
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
__export
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=chunk-HSLMI22Q.mjs.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/types/capabilities.ts
|
|
4
|
+
import { Capability } from "@dxos/app-framework";
|
|
5
|
+
import { meta } from "#meta";
|
|
6
|
+
(function(AutomationCapabilities2) {
|
|
7
|
+
AutomationCapabilities2.ComputeRuntime = Capability.make(`${meta.id}.capability.compute-runtime`);
|
|
8
|
+
})(AutomationCapabilities || (AutomationCapabilities = {}));
|
|
9
|
+
var AutomationCapabilities;
|
|
10
|
+
|
|
11
|
+
// src/types/events.ts
|
|
12
|
+
import { ActivationEvent } from "@dxos/app-framework";
|
|
13
|
+
import { meta as meta2 } from "#meta";
|
|
14
|
+
(function(AutomationEvents2) {
|
|
15
|
+
AutomationEvents2.ComputeRuntimeReady = ActivationEvent.make(`${meta2.id}.event.compute-runtime-ready`);
|
|
16
|
+
})(AutomationEvents || (AutomationEvents = {}));
|
|
17
|
+
var AutomationEvents;
|
|
18
|
+
|
|
19
|
+
// src/types/schema.ts
|
|
20
|
+
import * as Schema from "effect/Schema";
|
|
21
|
+
import { Database } from "@dxos/echo";
|
|
22
|
+
import { meta as meta3 } from "#meta";
|
|
23
|
+
var TriggerTemplate = Schema.Union(Schema.Struct({
|
|
24
|
+
type: Schema.Literal("timer"),
|
|
25
|
+
cron: Schema.String
|
|
26
|
+
}), Schema.Struct({
|
|
27
|
+
type: Schema.Literal("queue"),
|
|
28
|
+
queueDXN: Schema.Any
|
|
29
|
+
}));
|
|
30
|
+
(function(AutomationAction2) {
|
|
31
|
+
class CreateTriggerFromTemplate extends Schema.TaggedClass()(`${meta3.id}.action.create-trigger-from-template`, {
|
|
32
|
+
input: Schema.Struct({
|
|
33
|
+
db: Database.Database,
|
|
34
|
+
template: TriggerTemplate,
|
|
35
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
36
|
+
// TODO(wittjosiah): Improve how this lookup is done.
|
|
37
|
+
scriptName: Schema.optional(Schema.String),
|
|
38
|
+
input: Schema.optional(Schema.Record({
|
|
39
|
+
key: Schema.String,
|
|
40
|
+
value: Schema.Any
|
|
41
|
+
}))
|
|
42
|
+
}),
|
|
43
|
+
output: Schema.Void
|
|
44
|
+
}) {
|
|
45
|
+
}
|
|
46
|
+
AutomationAction2.CreateTriggerFromTemplate = CreateTriggerFromTemplate;
|
|
47
|
+
})(AutomationAction || (AutomationAction = {}));
|
|
48
|
+
var AutomationAction;
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
AutomationCapabilities,
|
|
52
|
+
AutomationEvents,
|
|
53
|
+
TriggerTemplate,
|
|
54
|
+
AutomationAction
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=chunk-NWQMBY32.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/capabilities.ts", "../../../src/types/events.ts", "../../../src/types/schema.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport type * as ManagedRuntime from 'effect/ManagedRuntime';\n\nimport { type AiService, type OpaqueToolkit } from '@dxos/ai';\nimport { Capability } from '@dxos/app-framework';\nimport type { Blueprint, Credential, Operation, OperationRegistry, Process } from '@dxos/compute';\nimport { type Database, type Feed } from '@dxos/echo';\nimport type { QueueService } from '@dxos/functions';\nimport { AgentService } from '@dxos/functions-runtime';\nimport type { ProcessManager, TriggerDispatcher, TriggerStateStore } from '@dxos/functions-runtime';\nimport type { SpaceId } from '@dxos/keys';\n\nimport { meta } from '#meta';\n\nexport namespace AutomationCapabilities {\n /**\n * Service stack for executing agents, functions, and triggers.\n */\n export type ComputeServices =\n | TriggerDispatcher\n | TriggerStateStore\n | AiService.AiService\n | Database.Service\n | Feed.FeedService\n | QueueService\n | Credential.CredentialsService\n | Blueprint.RegistryService\n | AgentService.AgentService\n | Process.ProcessMonitorService\n | ProcessManager.Service\n | Operation.Service\n | OperationRegistry.Service\n | OpaqueToolkit.OpaqueToolkitProvider;\n\n export type ComputeRuntime = ManagedRuntime.ManagedRuntime<AutomationCapabilities.ComputeServices, never>;\n export interface ComputeRuntimeProvider {\n getRuntime(spaceId: SpaceId): ComputeRuntime;\n }\n\n /**\n * Runtime for executing agents, functions, and triggers.\n */\n export const ComputeRuntime = Capability.make<ComputeRuntimeProvider>(`${meta.id}.capability.compute-runtime`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent } from '@dxos/app-framework';\n\nimport { meta } from '#meta';\n\nexport namespace AutomationEvents {\n export const ComputeRuntimeReady = ActivationEvent.make(`${meta.id}.event.compute-runtime-ready`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Database } from '@dxos/echo';\n\nimport { meta } from '#meta';\n\nexport const TriggerTemplate = Schema.Union(\n Schema.Struct({ type: Schema.Literal('timer'), cron: Schema.String }),\n Schema.Struct({ type: Schema.Literal('queue'), queueDXN: Schema.Any }),\n);\n\nexport namespace AutomationAction {\n export class CreateTriggerFromTemplate extends Schema.TaggedClass<CreateTriggerFromTemplate>()(\n `${meta.id}.action.create-trigger-from-template`,\n {\n input: Schema.Struct({\n db: Database.Database,\n template: TriggerTemplate,\n enabled: Schema.optional(Schema.Boolean),\n // TODO(wittjosiah): Improve how this lookup is done.\n scriptName: Schema.optional(Schema.String),\n input: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n }),\n output: Schema.Void,\n },\n ) {}\n}\n"],
|
|
5
|
+
"mappings": ";;;AAOA,SAASA,kBAAkB;AAQ3B,SAASC,YAAY;UAEJC,yBAAAA;0BA4BFC,iBAAiBH,WAAWI,KAA6B,GAAGH,KAAKI,EAAE,6BAA6B;AAC/G,GA7BiBH,2BAAAA,yBAAAA,CAAAA,EAAAA;;;;ACbjB,SAASI,uBAAuB;AAEhC,SAASC,QAAAA,aAAY;UAEJC,mBAAAA;oBACFC,sBAAsBH,gBAAgBI,KAAK,GAAGH,MAAKI,EAAE,8BAA8B;AAClG,GAFiBH,qBAAAA,mBAAAA,CAAAA,EAAAA;;;;ACJjB,YAAYI,YAAY;AAExB,SAASC,gBAAgB;AAEzB,SAASC,QAAAA,aAAY;AAEd,IAAMC,kBAAyBC,aAC7BC,cAAO;EAAEC,MAAaC,eAAQ,OAAA;EAAUC,MAAaC;AAAO,CAAA,GAC5DJ,cAAO;EAAEC,MAAaC,eAAQ,OAAA;EAAUG,UAAiBC;AAAI,CAAA,CAAA;UAGrDC,mBAAAA;EACR,MAAMC,kCAAyCC,mBAAW,EAC/D,GAAGZ,MAAKa,EAAE,wCACV;IACEC,OAAcX,cAAO;MACnBY,IAAIhB,SAASA;MACbiB,UAAUf;MACVgB,SAAgBC,gBAAgBC,cAAO;;MAEvCC,YAAmBF,gBAAgBX,aAAM;MACzCO,OAAcI,gBAAgBG,cAAO;QAAEC,KAAYf;QAAQgB,OAAcd;MAAI,CAAA,CAAA;IAC/E,CAAA;IACAe,QAAeC;EACjB,CAAA,EAAA;EACC;oBAbUd,4BAAAA;AAcf,GAfiBD,qBAAAA,mBAAAA,CAAAA,EAAAA;;",
|
|
6
|
+
"names": ["Capability", "meta", "AutomationCapabilities", "ComputeRuntime", "make", "id", "ActivationEvent", "meta", "AutomationEvents", "ComputeRuntimeReady", "make", "id", "Schema", "Database", "meta", "TriggerTemplate", "Union", "Struct", "type", "Literal", "cron", "String", "queueDXN", "Any", "AutomationAction", "CreateTriggerFromTemplate", "TaggedClass", "id", "input", "db", "template", "enabled", "optional", "Boolean", "scriptName", "Record", "key", "value", "output", "Void"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
CreateTriggerFromTemplate
|
|
4
|
+
} from "./chunk-HHIHREME.mjs";
|
|
5
|
+
import "./chunk-NWQMBY32.mjs";
|
|
6
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
7
|
+
|
|
8
|
+
// src/operations/create-trigger-from-template.ts
|
|
9
|
+
import * as Effect from "effect/Effect";
|
|
10
|
+
import { LayoutOperation, getSpacePath } from "@dxos/app-toolkit";
|
|
11
|
+
import { Operation, Script, Trigger } from "@dxos/compute";
|
|
12
|
+
import { Obj, Ref } from "@dxos/echo";
|
|
13
|
+
import { SpaceOperation } from "@dxos/plugin-space/operations";
|
|
14
|
+
import { Filter } from "@dxos/react-client/echo";
|
|
15
|
+
import { meta } from "#meta";
|
|
16
|
+
var handler = CreateTriggerFromTemplate.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ db, template, enabled = false, scriptName, input }) {
|
|
17
|
+
const trigger = Trigger.make({
|
|
18
|
+
enabled,
|
|
19
|
+
input
|
|
20
|
+
});
|
|
21
|
+
if (scriptName) {
|
|
22
|
+
const scripts = yield* Effect.promise(() => db.query(Filter.type(Script.Script, {
|
|
23
|
+
name: scriptName
|
|
24
|
+
})).run());
|
|
25
|
+
const [script] = scripts;
|
|
26
|
+
if (script) {
|
|
27
|
+
const functions = yield* Effect.promise(() => db.query(Filter.type(Operation.PersistentOperation, {
|
|
28
|
+
source: Ref.make(script)
|
|
29
|
+
})).run());
|
|
30
|
+
const [fn] = functions;
|
|
31
|
+
if (fn) {
|
|
32
|
+
Obj.update(trigger, (trigger2) => {
|
|
33
|
+
trigger2.function = Ref.make(fn);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
switch (template.type) {
|
|
39
|
+
case "timer": {
|
|
40
|
+
Obj.update(trigger, (trigger2) => {
|
|
41
|
+
trigger2.spec = Trigger.specTimer(template.cron);
|
|
42
|
+
});
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
case "queue": {
|
|
46
|
+
Obj.update(trigger, (trigger2) => {
|
|
47
|
+
trigger2.spec = Trigger.specQueue(template.queueDXN.toString());
|
|
48
|
+
});
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
default: {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
56
|
+
object: trigger,
|
|
57
|
+
target: db,
|
|
58
|
+
hidden: true
|
|
59
|
+
});
|
|
60
|
+
yield* Operation.invoke(LayoutOperation.Open, {
|
|
61
|
+
subject: [
|
|
62
|
+
`${getSpacePath(db.spaceId)}/settings/${meta.id}.automations`
|
|
63
|
+
],
|
|
64
|
+
workspace: getSpacePath(db.spaceId)
|
|
65
|
+
});
|
|
66
|
+
})));
|
|
67
|
+
var create_trigger_from_template_default = handler;
|
|
68
|
+
export {
|
|
69
|
+
create_trigger_from_template_default as default
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=create-trigger-from-template-FUQ3LUIF.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/create-trigger-from-template.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation, getSpacePath } from '@dxos/app-toolkit';\nimport { Operation, Script, Trigger } from '@dxos/compute';\nimport { Obj, Ref } from '@dxos/echo';\nimport { type DXN } from '@dxos/keys';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { Filter } from '@dxos/react-client/echo';\n\nimport { meta } from '#meta';\n\nimport { CreateTriggerFromTemplate } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateTriggerFromTemplate> = CreateTriggerFromTemplate.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ db, template, enabled = false, scriptName, input }) {\n const trigger = Trigger.make({ enabled, input });\n\n // TODO(wittjosiah): Factor out function lookup by script name?\n if (scriptName) {\n const scripts = yield* Effect.promise(() => db.query(Filter.type(Script.Script, { name: scriptName })).run());\n const [script] = scripts;\n if (script) {\n const functions = yield* Effect.promise(() =>\n db.query(Filter.type(Operation.PersistentOperation, { source: Ref.make(script) })).run(),\n );\n const [fn] = functions;\n if (fn) {\n Obj.update(trigger, (trigger) => {\n trigger.function = Ref.make(fn);\n });\n }\n }\n }\n\n switch (template.type) {\n case 'timer': {\n Obj.update(trigger, (trigger) => {\n trigger.spec = Trigger.specTimer(template.cron);\n });\n break;\n }\n case 'queue': {\n Obj.update(trigger, (trigger) => {\n trigger.spec = Trigger.specQueue((template.queueDXN as DXN).toString());\n });\n break;\n }\n default: {\n break;\n }\n }\n\n yield* Operation.invoke(SpaceOperation.AddObject, {\n object: trigger,\n target: db,\n hidden: true,\n });\n yield* Operation.invoke(LayoutOperation.Open, {\n subject: [`${getSpacePath(db.spaceId)}/settings/${meta.id}.automations`],\n workspace: getSpacePath(db.spaceId),\n });\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,oBAAoB;AAC9C,SAASC,WAAWC,QAAQC,eAAe;AAC3C,SAASC,KAAKC,WAAW;AAEzB,SAASC,sBAAsB;AAC/B,SAASC,cAAc;AAEvB,SAASC,YAAY;AAIrB,IAAMC,UAAmEC,0BAA0BC,KACjGC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,IAAIC,UAAUC,UAAU,OAAOC,YAAYC,MAAK,GAAE;AAC/E,QAAMC,UAAUC,QAAQC,KAAK;IAAEL;IAASE;EAAM,CAAA;AAG9C,MAAID,YAAY;AACd,UAAMK,UAAU,OAAcC,eAAQ,MAAMT,GAAGU,MAAMC,OAAOC,KAAKC,OAAOA,QAAQ;MAAEC,MAAMX;IAAW,CAAA,CAAA,EAAIY,IAAG,CAAA;AAC1G,UAAM,CAACC,MAAAA,IAAUR;AACjB,QAAIQ,QAAQ;AACV,YAAMC,YAAY,OAAcR,eAAQ,MACtCT,GAAGU,MAAMC,OAAOC,KAAKf,UAAUqB,qBAAqB;QAAEC,QAAQC,IAAIb,KAAKS,MAAAA;MAAQ,CAAA,CAAA,EAAID,IAAG,CAAA;AAExF,YAAM,CAACM,EAAAA,IAAMJ;AACb,UAAII,IAAI;AACNC,YAAIC,OAAOlB,SAAS,CAACA,aAAAA;AACnBA,UAAAA,SAAQmB,WAAWJ,IAAIb,KAAKc,EAAAA;QAC9B,CAAA;MACF;IACF;EACF;AAEA,UAAQpB,SAASW,MAAI;IACnB,KAAK,SAAS;AACZU,UAAIC,OAAOlB,SAAS,CAACA,aAAAA;AACnBA,QAAAA,SAAQoB,OAAOnB,QAAQoB,UAAUzB,SAAS0B,IAAI;MAChD,CAAA;AACA;IACF;IACA,KAAK,SAAS;AACZL,UAAIC,OAAOlB,SAAS,CAACA,aAAAA;AACnBA,QAAAA,SAAQoB,OAAOnB,QAAQsB,UAAW3B,SAAS4B,SAAiBC,SAAQ,CAAA;MACtE,CAAA;AACA;IACF;IACA,SAAS;AACP;IACF;EACF;AAEA,SAAOjC,UAAUkC,OAAOC,eAAeC,WAAW;IAChDC,QAAQ7B;IACR8B,QAAQnC;IACRoC,QAAQ;EACV,CAAA;AACA,SAAOvC,UAAUkC,OAAOM,gBAAgBC,MAAM;IAC5CC,SAAS;MAAC,GAAGC,aAAaxC,GAAGyC,OAAO,CAAA,aAAcC,KAAKC,EAAE;;IACzDC,WAAWJ,aAAaxC,GAAGyC,OAAO;EACpC,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,uCAAe/C;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "getSpacePath", "Operation", "Script", "Trigger", "Obj", "Ref", "SpaceOperation", "Filter", "meta", "handler", "CreateTriggerFromTemplate", "pipe", "Operation", "withHandler", "fnUntraced", "db", "template", "enabled", "scriptName", "input", "trigger", "Trigger", "make", "scripts", "promise", "query", "Filter", "type", "Script", "name", "run", "script", "functions", "PersistentOperation", "source", "Ref", "fn", "Obj", "update", "function", "spec", "specTimer", "cron", "specQueue", "queueDXN", "toString", "invoke", "SpaceOperation", "AddObject", "object", "target", "hidden", "LayoutOperation", "Open", "subject", "getSpacePath", "spaceId", "meta", "id", "workspace"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
AutomationCapabilities
|
|
4
|
+
} from "../chunk-NWQMBY32.mjs";
|
|
5
|
+
import "../chunk-HSLMI22Q.mjs";
|
|
6
|
+
|
|
7
|
+
// src/hooks/useComputeRuntimeCallback.ts
|
|
8
|
+
import { useCallback } from "react";
|
|
9
|
+
|
|
10
|
+
// src/hooks/useComputeRuntime.ts
|
|
11
|
+
import { useEffect } from "react";
|
|
12
|
+
import { useCapabilities } from "@dxos/app-framework/ui";
|
|
13
|
+
import { log } from "@dxos/log";
|
|
14
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-automation/src/hooks/useComputeRuntime.ts";
|
|
15
|
+
var useComputeRuntime = (id) => {
|
|
16
|
+
const [computeRuntime] = useCapabilities(AutomationCapabilities.ComputeRuntime);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
log("useComputeRuntime", {
|
|
19
|
+
hasCapability: !!computeRuntime,
|
|
20
|
+
spaceId: id
|
|
21
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 16, S: void 0 });
|
|
22
|
+
}, [
|
|
23
|
+
!!computeRuntime,
|
|
24
|
+
id
|
|
25
|
+
]);
|
|
26
|
+
if (!computeRuntime || id === void 0) {
|
|
27
|
+
return void 0;
|
|
28
|
+
}
|
|
29
|
+
return computeRuntime.getRuntime(id);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// src/hooks/useComputeRuntimeCallback.ts
|
|
33
|
+
var useComputeRuntimeCallback = (id, fn, deps) => {
|
|
34
|
+
const runtime = useComputeRuntime(id);
|
|
35
|
+
return useCallback(() => {
|
|
36
|
+
if (!runtime) {
|
|
37
|
+
throw new TypeError("Space not provided to useComputeRuntimeCallback");
|
|
38
|
+
}
|
|
39
|
+
return runtime.runPromise(fn());
|
|
40
|
+
}, [
|
|
41
|
+
runtime,
|
|
42
|
+
...deps ?? []
|
|
43
|
+
]);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// src/hooks/useTriggerRuntimeControls.ts
|
|
47
|
+
import { Atom, useAtomValue } from "@effect-atom/atom-react";
|
|
48
|
+
import * as Effect from "effect/Effect";
|
|
49
|
+
import { useEffect as useEffect2, useState } from "react";
|
|
50
|
+
import { Trigger } from "@dxos/compute";
|
|
51
|
+
import { Filter, Query } from "@dxos/echo";
|
|
52
|
+
import { TriggerDispatcher } from "@dxos/functions-runtime";
|
|
53
|
+
import { useQuery } from "@dxos/react-client/echo";
|
|
54
|
+
var useTriggerRuntimeControls = (db) => {
|
|
55
|
+
const triggers = useQuery(db, Query.select(Filter.type(Trigger.Trigger)).debugLabel("plugin-automation.useTriggerRuntimeControls"));
|
|
56
|
+
const [dispatcher, setDispatcher] = useState(void 0);
|
|
57
|
+
const init = useComputeRuntimeCallback(db?.spaceId, Effect.fnUntraced(function* () {
|
|
58
|
+
const dispatcher2 = yield* TriggerDispatcher;
|
|
59
|
+
setDispatcher(dispatcher2);
|
|
60
|
+
}));
|
|
61
|
+
useEffect2(() => {
|
|
62
|
+
void init();
|
|
63
|
+
}, []);
|
|
64
|
+
const state = useAtomValue(dispatcher?.state ?? Atom.make(void 0));
|
|
65
|
+
const start = useComputeRuntimeCallback(db?.spaceId, Effect.fnUntraced(function* () {
|
|
66
|
+
const dispatcher2 = yield* TriggerDispatcher;
|
|
67
|
+
yield* dispatcher2.start();
|
|
68
|
+
}));
|
|
69
|
+
const stop = useComputeRuntimeCallback(db?.spaceId, Effect.fnUntraced(function* () {
|
|
70
|
+
const dispatcher2 = yield* TriggerDispatcher;
|
|
71
|
+
yield* dispatcher2.stop();
|
|
72
|
+
}));
|
|
73
|
+
return {
|
|
74
|
+
triggers,
|
|
75
|
+
state,
|
|
76
|
+
start: () => void start(),
|
|
77
|
+
stop: () => void stop()
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// src/hooks/useComputeRuntimeService.ts
|
|
82
|
+
import * as Effect2 from "effect/Effect";
|
|
83
|
+
import * as Exit from "effect/Exit";
|
|
84
|
+
import { useEffect as useEffect3, useState as useState2 } from "react";
|
|
85
|
+
import { log as log2 } from "@dxos/log";
|
|
86
|
+
var __dxlog_file2 = "/__w/dxos/dxos/packages/plugins/plugin-automation/src/hooks/useComputeRuntimeService.ts";
|
|
87
|
+
var useComputeRuntimeService = (tag, spaceId) => {
|
|
88
|
+
const runtime = useComputeRuntime(spaceId);
|
|
89
|
+
const [service, setService] = useState2(void 0);
|
|
90
|
+
useEffect3(() => {
|
|
91
|
+
setService(void 0);
|
|
92
|
+
if (!runtime) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
let cancelled = false;
|
|
96
|
+
void (async () => {
|
|
97
|
+
try {
|
|
98
|
+
const exit = await runtime.runPromiseExit(tag.pipe(Effect2.timeout("30 seconds")));
|
|
99
|
+
if (cancelled) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (Exit.isSuccess(exit)) {
|
|
103
|
+
setService(exit.value);
|
|
104
|
+
} else {
|
|
105
|
+
log2.warn("useComputeRuntimeService: failed to acquire service", {
|
|
106
|
+
cause: exit.cause
|
|
107
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 37, S: void 0 });
|
|
108
|
+
}
|
|
109
|
+
} catch (error) {
|
|
110
|
+
if (!cancelled) {
|
|
111
|
+
log2.catch(error, void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 43, S: void 0 });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
})();
|
|
115
|
+
return () => {
|
|
116
|
+
cancelled = true;
|
|
117
|
+
};
|
|
118
|
+
}, [
|
|
119
|
+
runtime,
|
|
120
|
+
tag
|
|
121
|
+
]);
|
|
122
|
+
return service;
|
|
123
|
+
};
|
|
124
|
+
export {
|
|
125
|
+
useComputeRuntime,
|
|
126
|
+
useComputeRuntimeCallback,
|
|
127
|
+
useComputeRuntimeService,
|
|
128
|
+
useTriggerRuntimeControls
|
|
129
|
+
};
|
|
130
|
+
//# sourceMappingURL=index.mjs.map
|