@dxos/plugin-automation 0.8.4-main.a4bbb77 → 0.8.4-main.abd8ff62ef
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 +123 -6
- package/dist/lib/browser/hooks/index.mjs.map +4 -4
- package/dist/lib/browser/index.mjs +17 -102
- 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 +10 -4
- 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 +123 -6
- package/dist/lib/node-esm/hooks/index.mjs.map +4 -4
- package/dist/lib/node-esm/index.mjs +17 -102
- 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 +10 -4
- 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 +12 -3
- package/dist/types/src/capabilities/compute-runtime.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +6 -5
- 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 +6 -7
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +32 -27
- 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 +106 -30
- 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 +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.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 +2 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeRuntime.d.ts +8 -0
- package/dist/types/src/hooks/useComputeRuntime.d.ts.map +1 -0
- package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts +5 -4
- package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeRuntimeService.d.ts +17 -0
- package/dist/types/src/hooks/useComputeRuntimeService.d.ts.map +1 -0
- package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts +6 -5
- package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -4
- 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/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 +32 -28
- 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 +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +12 -4
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +99 -56
- package/src/AutomationPlugin.node.ts +29 -0
- package/src/AutomationPlugin.test.ts +27 -0
- package/src/AutomationPlugin.tsx +20 -35
- package/src/capabilities/app-graph-builder.ts +59 -79
- package/src/capabilities/compute-runtime.ts +272 -83
- package/src/capabilities/index.ts +9 -7
- 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 +7 -7
- package/src/components/AutomationPanel/AutomationPanel.tsx +249 -81
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +50 -31
- 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 +28 -16
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +116 -29
- package/src/components/TriggerEditor/TriggerEditor.tsx +109 -42
- 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 +3 -0
- package/src/hooks/useComputeRuntime.ts +30 -0
- package/src/hooks/useComputeRuntimeCallback.ts +11 -9
- package/src/hooks/useComputeRuntimeService.ts +64 -0
- package/src/hooks/useTriggerRuntimeControls.ts +34 -16
- package/src/index.ts +5 -4
- package/src/meta.ts +9 -6
- 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 +10 -7
- package/src/translations.ts +39 -33
- package/src/types/capabilities.ts +47 -0
- package/src/types/events.ts +11 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema.ts +6 -6
- package/dist/lib/browser/AutomationPanel-4QA5G3ZY.mjs +0 -11
- package/dist/lib/browser/AutomationSettings-6XLG2PCK.mjs +0 -69
- package/dist/lib/browser/AutomationSettings-6XLG2PCK.mjs.map +0 -7
- package/dist/lib/browser/FunctionsContainer-BQ6VBDIG.mjs +0 -36
- package/dist/lib/browser/FunctionsContainer-BQ6VBDIG.mjs.map +0 -7
- package/dist/lib/browser/FunctionsPanel-QBTOFFNU.mjs +0 -10
- package/dist/lib/browser/app-graph-builder-6TP6ZNYG.mjs +0 -80
- package/dist/lib/browser/app-graph-builder-6TP6ZNYG.mjs.map +0 -7
- package/dist/lib/browser/chunk-BDJPBZGC.mjs +0 -14
- package/dist/lib/browser/chunk-BDJPBZGC.mjs.map +0 -7
- package/dist/lib/browser/chunk-EAQL33PI.mjs +0 -94
- package/dist/lib/browser/chunk-EAQL33PI.mjs.map +0 -7
- package/dist/lib/browser/chunk-F4K5EMWL.mjs +0 -38
- package/dist/lib/browser/chunk-F4K5EMWL.mjs.map +0 -7
- package/dist/lib/browser/chunk-IN2YC7NY.mjs +0 -230
- package/dist/lib/browser/chunk-IN2YC7NY.mjs.map +0 -7
- package/dist/lib/browser/chunk-LNMCGQC2.mjs +0 -143
- package/dist/lib/browser/chunk-LNMCGQC2.mjs.map +0 -7
- package/dist/lib/browser/chunk-M2WQCY2T.mjs +0 -53
- package/dist/lib/browser/chunk-M2WQCY2T.mjs.map +0 -7
- package/dist/lib/browser/chunk-U66KBK53.mjs +0 -14
- package/dist/lib/browser/chunk-U66KBK53.mjs.map +0 -7
- package/dist/lib/browser/chunk-WWURMV25.mjs +0 -13
- package/dist/lib/browser/chunk-WWURMV25.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZTXBAXUT.mjs +0 -15
- package/dist/lib/browser/chunk-ZTXBAXUT.mjs.map +0 -7
- package/dist/lib/browser/compute-runtime-OFQPXD5I.mjs +0 -158
- package/dist/lib/browser/compute-runtime-OFQPXD5I.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-JXVWRAAH.mjs +0 -77
- package/dist/lib/browser/intent-resolver-JXVWRAAH.mjs.map +0 -7
- package/dist/lib/browser/react-surface-NG3MJCDH.mjs +0 -64
- package/dist/lib/browser/react-surface-NG3MJCDH.mjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-WMVR3IST.mjs +0 -12
- package/dist/lib/node-esm/AutomationPanel-WMVR3IST.mjs.map +0 -7
- package/dist/lib/node-esm/AutomationSettings-4IW7RGMN.mjs +0 -70
- package/dist/lib/node-esm/AutomationSettings-4IW7RGMN.mjs.map +0 -7
- package/dist/lib/node-esm/FunctionsContainer-LHUUOLA5.mjs +0 -37
- package/dist/lib/node-esm/FunctionsContainer-LHUUOLA5.mjs.map +0 -7
- package/dist/lib/node-esm/FunctionsPanel-SHTQIMDV.mjs +0 -11
- package/dist/lib/node-esm/FunctionsPanel-SHTQIMDV.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-3A2NIPR5.mjs +0 -81
- package/dist/lib/node-esm/app-graph-builder-3A2NIPR5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2L2X4JMP.mjs +0 -16
- package/dist/lib/node-esm/chunk-2L2X4JMP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5MQJPJR2.mjs +0 -15
- package/dist/lib/node-esm/chunk-5MQJPJR2.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-B6O6UBS7.mjs +0 -16
- package/dist/lib/node-esm/chunk-B6O6UBS7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CEWZ2CDM.mjs +0 -39
- package/dist/lib/node-esm/chunk-CEWZ2CDM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DSEZPWSO.mjs +0 -54
- package/dist/lib/node-esm/chunk-DSEZPWSO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MN5S5J4O.mjs +0 -144
- package/dist/lib/node-esm/chunk-MN5S5J4O.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-N7NES6SZ.mjs +0 -231
- package/dist/lib/node-esm/chunk-N7NES6SZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PBULJE4B.mjs +0 -95
- package/dist/lib/node-esm/chunk-PBULJE4B.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UTZIMYCX.mjs +0 -16
- package/dist/lib/node-esm/chunk-UTZIMYCX.mjs.map +0 -7
- package/dist/lib/node-esm/compute-runtime-W5UJNSQY.mjs +0 -159
- package/dist/lib/node-esm/compute-runtime-W5UJNSQY.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-ROEBZXSS.mjs +0 -78
- package/dist/lib/node-esm/intent-resolver-ROEBZXSS.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-A4KTYX6Z.mjs +0 -65
- package/dist/lib/node-esm/react-surface-A4KTYX6Z.mjs.map +0 -7
- package/dist/types/src/capabilities/capabilities.d.ts +0 -18
- package/dist/types/src/capabilities/capabilities.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/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 +0 -7
- package/dist/types/src/components/FunctionsContainer.d.ts.map +0 -1
- package/dist/types/src/components/TriggerSettings.d.ts.map +0 -1
- package/src/capabilities/capabilities.ts +0 -47
- package/src/capabilities/intent-resolver.ts +0 -72
- package/src/components/AutomationSettings.tsx +0 -30
- package/src/components/FunctionsContainer.tsx +0 -29
- package/src/components/TriggerSettings.tsx +0 -25
- /package/dist/lib/browser/{AutomationPanel-4QA5G3ZY.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{browser/FunctionsPanel-QBTOFFNU.mjs.map → node-esm/chunk-HSLMI22Q.mjs.map} +0 -0
- /package/dist/types/src/{components → containers/TriggerSettings}/TriggerSettings.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-automation",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.abd8ff62ef",
|
|
4
4
|
"description": "Prompt chain plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"sideEffects": true,
|
|
10
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#capabilities": {
|
|
17
|
+
"browser": "./src/capabilities/index.ts",
|
|
18
|
+
"node": "./src/capabilities/node.ts",
|
|
19
|
+
"default": "./src/capabilities/index.ts"
|
|
20
|
+
},
|
|
21
|
+
"#components": "./src/components/index.ts",
|
|
22
|
+
"#containers": "./src/containers/index.ts",
|
|
23
|
+
"#hooks": "./src/hooks/index.ts",
|
|
24
|
+
"#meta": "./src/meta.ts",
|
|
25
|
+
"#operations": "./src/operations/index.ts",
|
|
26
|
+
"#plugin": {
|
|
27
|
+
"browser": "./src/AutomationPlugin.tsx",
|
|
28
|
+
"node": "./src/AutomationPlugin.node.ts",
|
|
29
|
+
"default": "./src/AutomationPlugin.tsx"
|
|
30
|
+
},
|
|
31
|
+
"#testing": "./src/testing/index.ts",
|
|
32
|
+
"#translations": "./src/translations.ts",
|
|
33
|
+
"#types": "./src/types/index.ts"
|
|
34
|
+
},
|
|
11
35
|
"exports": {
|
|
12
36
|
".": {
|
|
13
37
|
"source": "./src/index.ts",
|
|
@@ -21,6 +45,18 @@
|
|
|
21
45
|
"browser": "./dist/lib/browser/hooks/index.mjs",
|
|
22
46
|
"node": "./dist/lib/node-esm/hooks/index.mjs"
|
|
23
47
|
},
|
|
48
|
+
"./operations": {
|
|
49
|
+
"source": "./src/operations/index.ts",
|
|
50
|
+
"types": "./dist/types/src/operations/index.d.ts",
|
|
51
|
+
"browser": "./dist/lib/browser/operations/index.mjs",
|
|
52
|
+
"node": "./dist/lib/node-esm/operations/index.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./translations": {
|
|
55
|
+
"source": "./src/translations.ts",
|
|
56
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
57
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
58
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
59
|
+
},
|
|
24
60
|
"./types": {
|
|
25
61
|
"source": "./src/types/index.ts",
|
|
26
62
|
"types": "./dist/types/src/types/index.d.ts",
|
|
@@ -29,71 +65,78 @@
|
|
|
29
65
|
}
|
|
30
66
|
},
|
|
31
67
|
"types": "dist/types/src/index.d.ts",
|
|
32
|
-
"typesVersions": {
|
|
33
|
-
"*": {
|
|
34
|
-
"hooks": [
|
|
35
|
-
"dist/types/src/hooks/index.d.ts"
|
|
36
|
-
],
|
|
37
|
-
"types": [
|
|
38
|
-
"dist/types/src/types/index.d.ts"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
68
|
"files": [
|
|
43
69
|
"assets",
|
|
44
70
|
"dist",
|
|
45
71
|
"src"
|
|
46
72
|
],
|
|
47
73
|
"dependencies": {
|
|
48
|
-
"@effect/
|
|
49
|
-
"@effect/
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
54
|
-
"@dxos/assistant": "0.8.4-main.
|
|
55
|
-
"@dxos/async": "0.8.4-main.
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
74
|
+
"@effect-atom/atom": "^0.5.1",
|
|
75
|
+
"@effect/ai": "0.33.2",
|
|
76
|
+
"@effect/cli": "0.73.2",
|
|
77
|
+
"@effect/platform-browser": "0.74.0",
|
|
78
|
+
"@effect/printer-ansi": "0.47.0",
|
|
79
|
+
"@dxos/app-framework": "0.8.4-main.abd8ff62ef",
|
|
80
|
+
"@dxos/assistant-toolkit": "0.8.4-main.abd8ff62ef",
|
|
81
|
+
"@dxos/async": "0.8.4-main.abd8ff62ef",
|
|
82
|
+
"@dxos/assistant": "0.8.4-main.abd8ff62ef",
|
|
83
|
+
"@dxos/cli-util": "0.8.4-main.abd8ff62ef",
|
|
84
|
+
"@dxos/client": "0.8.4-main.abd8ff62ef",
|
|
85
|
+
"@dxos/client-protocol": "0.8.4-main.abd8ff62ef",
|
|
86
|
+
"@dxos/compute": "0.8.4-main.abd8ff62ef",
|
|
87
|
+
"@dxos/conductor": "0.8.4-main.abd8ff62ef",
|
|
88
|
+
"@dxos/context": "0.8.4-main.abd8ff62ef",
|
|
89
|
+
"@dxos/ai": "0.8.4-main.abd8ff62ef",
|
|
90
|
+
"@dxos/echo-db": "0.8.4-main.abd8ff62ef",
|
|
91
|
+
"@dxos/echo-atom": "0.8.4-main.abd8ff62ef",
|
|
92
|
+
"@dxos/echo": "0.8.4-main.abd8ff62ef",
|
|
93
|
+
"@dxos/echo-react": "0.8.4-main.abd8ff62ef",
|
|
94
|
+
"@dxos/effect": "0.8.4-main.abd8ff62ef",
|
|
95
|
+
"@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
|
|
96
|
+
"@dxos/functions-runtime": "0.8.4-main.abd8ff62ef",
|
|
97
|
+
"@dxos/invariant": "0.8.4-main.abd8ff62ef",
|
|
98
|
+
"@dxos/keys": "0.8.4-main.abd8ff62ef",
|
|
99
|
+
"@dxos/log": "0.8.4-main.abd8ff62ef",
|
|
100
|
+
"@dxos/plugin-client": "0.8.4-main.abd8ff62ef",
|
|
101
|
+
"@dxos/operation": "0.8.4-main.abd8ff62ef",
|
|
102
|
+
"@dxos/plugin-deck": "0.8.4-main.abd8ff62ef",
|
|
103
|
+
"@dxos/plugin-graph": "0.8.4-main.abd8ff62ef",
|
|
104
|
+
"@dxos/random": "0.8.4-main.abd8ff62ef",
|
|
105
|
+
"@dxos/react-client": "0.8.4-main.abd8ff62ef",
|
|
106
|
+
"@dxos/react-ui-attention": "0.8.4-main.abd8ff62ef",
|
|
107
|
+
"@dxos/react-ui-editor": "0.8.4-main.abd8ff62ef",
|
|
108
|
+
"@dxos/react-ui-components": "0.8.4-main.abd8ff62ef",
|
|
109
|
+
"@dxos/react-ui-form": "0.8.4-main.abd8ff62ef",
|
|
110
|
+
"@dxos/react-ui-list": "0.8.4-main.abd8ff62ef",
|
|
111
|
+
"@dxos/schema": "0.8.4-main.abd8ff62ef",
|
|
112
|
+
"@dxos/react-ui-stack": "0.8.4-main.abd8ff62ef",
|
|
113
|
+
"@dxos/types": "0.8.4-main.abd8ff62ef",
|
|
114
|
+
"@dxos/util": "0.8.4-main.abd8ff62ef",
|
|
115
|
+
"@dxos/plugin-space": "0.8.4-main.abd8ff62ef",
|
|
116
|
+
"@dxos/functions": "0.8.4-main.abd8ff62ef"
|
|
75
117
|
},
|
|
76
118
|
"devDependencies": {
|
|
77
|
-
"@effect-
|
|
78
|
-
"@effect/platform": "0.
|
|
79
|
-
"@types/react": "~19.2.
|
|
80
|
-
"@types/react-dom": "~19.2.
|
|
81
|
-
"effect": "3.
|
|
82
|
-
"react": "~19.2.
|
|
83
|
-
"react-dom": "~19.2.
|
|
84
|
-
"vite": "
|
|
85
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
119
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
120
|
+
"@effect/platform": "0.94.4",
|
|
121
|
+
"@types/react": "~19.2.7",
|
|
122
|
+
"@types/react-dom": "~19.2.3",
|
|
123
|
+
"effect": "3.20.0",
|
|
124
|
+
"react": "~19.2.3",
|
|
125
|
+
"react-dom": "~19.2.3",
|
|
126
|
+
"vite": "^8.0.10",
|
|
127
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
128
|
+
"@dxos/plugin-testing": "0.8.4-main.abd8ff62ef",
|
|
129
|
+
"@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
|
|
130
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
|
|
88
131
|
},
|
|
89
132
|
"peerDependencies": {
|
|
90
|
-
"@effect-
|
|
91
|
-
"@effect/platform": "
|
|
92
|
-
"effect": "
|
|
93
|
-
"react": "
|
|
94
|
-
"react-dom": "
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/react-ui
|
|
133
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
134
|
+
"@effect/platform": "0.94.4",
|
|
135
|
+
"effect": "3.20.0",
|
|
136
|
+
"react": "~19.2.3",
|
|
137
|
+
"react-dom": "~19.2.3",
|
|
138
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef",
|
|
139
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef"
|
|
97
140
|
},
|
|
98
141
|
"publishConfig": {
|
|
99
142
|
"access": "public"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
+
import { Operation, Trace, Trigger } from '@dxos/compute';
|
|
8
|
+
import { ClientEvents } from '@dxos/plugin-client/types';
|
|
9
|
+
|
|
10
|
+
import { AppGraphBuilder, ComputeRuntime, OperationHandler } from '#capabilities';
|
|
11
|
+
import { meta } from '#meta';
|
|
12
|
+
import { AutomationEvents } from '#types';
|
|
13
|
+
|
|
14
|
+
import { trigger } from './commands';
|
|
15
|
+
|
|
16
|
+
export const AutomationPlugin = Plugin.define(meta).pipe(
|
|
17
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
18
|
+
AppPlugin.addCommandModule({ commands: [trigger] }),
|
|
19
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
20
|
+
AppPlugin.addSchemaModule({ schema: [Operation.PersistentOperation, Trigger.Trigger, Trace.Message] }),
|
|
21
|
+
Plugin.addModule({
|
|
22
|
+
activatesOn: ClientEvents.ClientReady,
|
|
23
|
+
firesAfterActivation: [AutomationEvents.ComputeRuntimeReady],
|
|
24
|
+
activate: ComputeRuntime,
|
|
25
|
+
}),
|
|
26
|
+
Plugin.make,
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export default AutomationPlugin;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, test } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { ClientPlugin } from '@dxos/plugin-client';
|
|
8
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
9
|
+
|
|
10
|
+
import { AutomationPlugin } from '#plugin';
|
|
11
|
+
|
|
12
|
+
import { meta } from './meta';
|
|
13
|
+
|
|
14
|
+
const moduleId = (name: string) => `${meta.id}.module.${name}`;
|
|
15
|
+
|
|
16
|
+
describe('AutomationPlugin', () => {
|
|
17
|
+
test('modules activate on the expected events', async ({ expect }) => {
|
|
18
|
+
await using harness = await createComposerTestApp({
|
|
19
|
+
plugins: [ClientPlugin({}), AutomationPlugin()],
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// After autoStart: AppGraphBuilder, schema, OperationHandler all auto-cascade.
|
|
23
|
+
expect(harness.manager.getActive()).toEqual(
|
|
24
|
+
expect.arrayContaining([moduleId('AppGraphBuilder'), moduleId('schema'), moduleId('OperationHandler')]),
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
});
|
package/src/AutomationPlugin.tsx
CHANGED
|
@@ -2,43 +2,28 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
+
import { Operation, Trace, Trigger } from '@dxos/compute';
|
|
8
|
+
import { ClientEvents } from '@dxos/plugin-client/types';
|
|
8
9
|
|
|
9
|
-
import { AppGraphBuilder, ComputeRuntime,
|
|
10
|
-
import { meta } from '
|
|
11
|
-
import { translations } from '
|
|
10
|
+
import { AppGraphBuilder, ComputeRuntime, OperationHandler, ReactSurface } from '#capabilities';
|
|
11
|
+
import { meta } from '#meta';
|
|
12
|
+
import { translations } from '#translations';
|
|
13
|
+
import { AutomationEvents } from '#types';
|
|
12
14
|
|
|
13
|
-
export const AutomationPlugin =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}),
|
|
19
|
-
|
|
20
|
-
id: `${meta.id}/module/schema`,
|
|
21
|
-
activatesOn: ClientEvents.SetupSchema,
|
|
22
|
-
activate: () => contributes(ClientCapabilities.Schema, [FunctionType, FunctionTrigger]),
|
|
23
|
-
}),
|
|
24
|
-
defineModule({
|
|
25
|
-
id: `${meta.id}/module/app-graph-builder`,
|
|
26
|
-
activatesOn: Events.SetupAppGraph,
|
|
27
|
-
activate: AppGraphBuilder,
|
|
28
|
-
}),
|
|
29
|
-
defineModule({
|
|
30
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
31
|
-
activatesOn: Events.SetupIntentResolver,
|
|
32
|
-
activate: IntentResolver,
|
|
33
|
-
}),
|
|
34
|
-
defineModule({
|
|
35
|
-
id: `${meta.id}/module/react-surface`,
|
|
36
|
-
activatesOn: Events.SetupReactSurface,
|
|
37
|
-
activate: ReactSurface,
|
|
38
|
-
}),
|
|
39
|
-
defineModule({
|
|
40
|
-
id: `${meta.id}/module/compute-runtime`,
|
|
15
|
+
export const AutomationPlugin = Plugin.define(meta).pipe(
|
|
16
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
17
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
18
|
+
AppPlugin.addSchemaModule({ schema: [Operation.PersistentOperation, Trigger.Trigger, Trace.Message] }),
|
|
19
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
20
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
21
|
+
Plugin.addModule({
|
|
41
22
|
activatesOn: ClientEvents.ClientReady,
|
|
23
|
+
firesAfterActivation: [AutomationEvents.ComputeRuntimeReady],
|
|
42
24
|
activate: ComputeRuntime,
|
|
43
25
|
}),
|
|
44
|
-
|
|
26
|
+
Plugin.make,
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export default AutomationPlugin;
|
|
@@ -2,85 +2,65 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import { Option, pipe } from 'effect';
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
7
6
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities, AppNode } from '@dxos/app-toolkit';
|
|
9
|
+
import { Script } from '@dxos/compute';
|
|
10
|
+
import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
|
|
11
|
+
import { SETTINGS_SECTION_TYPE } from '@dxos/plugin-space/types';
|
|
12
|
+
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
14
13
|
|
|
15
|
-
import { meta } from '
|
|
14
|
+
import { meta } from '#meta';
|
|
16
15
|
|
|
17
|
-
export default (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
get(node),
|
|
69
|
-
Option.flatMap((node) => (Obj.instanceOf(ScriptType, node.data) ? Option.some(node) : Option.none())),
|
|
70
|
-
Option.map((node) => [
|
|
71
|
-
{
|
|
72
|
-
id: [node.id, 'automation'].join(ATTENDABLE_PATH_SEPARATOR),
|
|
73
|
-
type: PLANK_COMPANION_TYPE,
|
|
74
|
-
data: 'automation',
|
|
75
|
-
properties: {
|
|
76
|
-
label: ['script automation label', { ns: meta.id }],
|
|
77
|
-
icon: 'ph--lightning--regular',
|
|
78
|
-
disposition: 'hidden',
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
]),
|
|
82
|
-
Option.getOrElse(() => []),
|
|
83
|
-
),
|
|
84
|
-
),
|
|
85
|
-
}),
|
|
86
|
-
]);
|
|
16
|
+
export default Capability.makeModule(
|
|
17
|
+
Effect.fnUntraced(function* () {
|
|
18
|
+
const extensions = yield* Effect.all([
|
|
19
|
+
GraphBuilder.createExtension({
|
|
20
|
+
id: 'space-settings-automation',
|
|
21
|
+
match: NodeMatcher.whenNodeType(SETTINGS_SECTION_TYPE),
|
|
22
|
+
connector: () =>
|
|
23
|
+
Effect.succeed([
|
|
24
|
+
AppNode.makeSettingsPanel({
|
|
25
|
+
id: 'automations',
|
|
26
|
+
type: `${meta.id}.space-settings-automation`,
|
|
27
|
+
label: ['automation-panel.label', { ns: meta.id }],
|
|
28
|
+
icon: 'ph--lightning--regular',
|
|
29
|
+
iconHue: 'indigo',
|
|
30
|
+
position: 'fallback',
|
|
31
|
+
}),
|
|
32
|
+
]),
|
|
33
|
+
}),
|
|
34
|
+
GraphBuilder.createExtension({
|
|
35
|
+
id: 'space-settings-functions',
|
|
36
|
+
match: NodeMatcher.whenNodeType(SETTINGS_SECTION_TYPE),
|
|
37
|
+
connector: () =>
|
|
38
|
+
Effect.succeed([
|
|
39
|
+
AppNode.makeSettingsPanel({
|
|
40
|
+
id: 'functions',
|
|
41
|
+
type: `${meta.id}.space-settings-functions`,
|
|
42
|
+
label: ['functions-panel.label', { ns: meta.id }],
|
|
43
|
+
icon: 'ph--function--regular',
|
|
44
|
+
iconHue: 'indigo',
|
|
45
|
+
position: 'fallback',
|
|
46
|
+
}),
|
|
47
|
+
]),
|
|
48
|
+
}),
|
|
49
|
+
GraphBuilder.createTypeExtension({
|
|
50
|
+
id: 'script-companion',
|
|
51
|
+
type: Script.Script,
|
|
52
|
+
connector: (script) =>
|
|
53
|
+
Effect.succeed([
|
|
54
|
+
AppNode.makeCompanion({
|
|
55
|
+
id: linkedSegment('automation'),
|
|
56
|
+
label: ['script-automation.label', { ns: meta.id }],
|
|
57
|
+
icon: 'ph--lightning--regular',
|
|
58
|
+
data: 'automation',
|
|
59
|
+
}),
|
|
60
|
+
]),
|
|
61
|
+
}),
|
|
62
|
+
]);
|
|
63
|
+
|
|
64
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
65
|
+
}),
|
|
66
|
+
);
|