@dxos/plugin-automation 0.8.4-main.f9ba587 → 0.8.4-main.fcc0d83b33
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-3JLJBF5C.mjs +54 -0
- package/dist/lib/browser/chunk-3JLJBF5C.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-SZIGF7TB.mjs +44 -0
- package/dist/lib/browser/chunk-SZIGF7TB.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +1107 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/create-trigger-from-template-RSZIPHIG.mjs +71 -0
- package/dist/lib/browser/create-trigger-from-template-RSZIPHIG.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 +44 -94
- 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-7I6EPBJI.mjs +56 -0
- package/dist/lib/node-esm/chunk-7I6EPBJI.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-TR5BMZG5.mjs +45 -0
- package/dist/lib/node-esm/chunk-TR5BMZG5.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +1108 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/create-trigger-from-template-GE76I6FE.mjs +72 -0
- package/dist/lib/node-esm/create-trigger-from-template-GE76I6FE.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 +44 -94
- 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 +2 -1
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- 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 +3 -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/cli/commands/index.d.ts +2 -0
- package/dist/types/src/cli/commands/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/create/index.d.ts +25 -0
- package/dist/types/src/cli/commands/trigger/create/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/create/queue.d.ts +13 -0
- package/dist/types/src/cli/commands/trigger/create/queue.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/create/subscription.d.ts +15 -0
- package/dist/types/src/cli/commands/trigger/create/subscription.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/create/timer.d.ts +13 -0
- package/dist/types/src/cli/commands/trigger/create/timer.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/index.d.ts +57 -0
- package/dist/types/src/cli/commands/trigger/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/list.d.ts +7 -0
- package/dist/types/src/cli/commands/trigger/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/options.d.ts +11 -0
- package/dist/types/src/cli/commands/trigger/options.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/remove.d.ts +8 -0
- package/dist/types/src/cli/commands/trigger/remove.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/update/index.d.ts +28 -0
- package/dist/types/src/cli/commands/trigger/update/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/update/queue.d.ts +12 -0
- package/dist/types/src/cli/commands/trigger/update/queue.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/update/subscription.d.ts +13 -0
- package/dist/types/src/cli/commands/trigger/update/subscription.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/update/timer.d.ts +11 -0
- package/dist/types/src/cli/commands/trigger/update/timer.d.ts.map +1 -0
- package/dist/types/src/cli/commands/trigger/util.d.ts +46 -0
- package/dist/types/src/cli/commands/trigger/util.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +3 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +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 +2 -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 +32 -26
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +25 -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.tsx +22 -34
- package/src/capabilities/app-graph-builder.ts +56 -79
- package/src/capabilities/compute-runtime.ts +320 -0
- package/src/capabilities/index.ts +9 -4
- package/src/capabilities/node.ts +7 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +49 -46
- package/src/cli/commands/index.ts +5 -0
- package/src/cli/commands/trigger/create/index.ts +14 -0
- package/src/cli/commands/trigger/create/queue.ts +87 -0
- package/src/cli/commands/trigger/create/subscription.ts +126 -0
- package/src/cli/commands/trigger/create/timer.ts +91 -0
- package/src/cli/commands/trigger/index.ts +16 -0
- package/src/cli/commands/trigger/list.ts +70 -0
- package/src/cli/commands/trigger/options.ts +59 -0
- package/src/cli/commands/trigger/remove.ts +45 -0
- package/src/cli/commands/trigger/update/index.ts +14 -0
- package/src/cli/commands/trigger/update/queue.ts +195 -0
- package/src/cli/commands/trigger/update/subscription.ts +279 -0
- package/src/cli/commands/trigger/update/timer.ts +194 -0
- package/src/cli/commands/trigger/util.ts +411 -0
- package/src/cli/index.ts +5 -0
- package/src/cli/plugin.ts +23 -0
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +18 -17
- package/src/components/AutomationPanel/AutomationPanel.tsx +250 -94
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +52 -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 +129 -40
- package/src/components/TriggerEditor/TriggerEditor.tsx +110 -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 +2 -4
- package/src/meta.ts +9 -8
- package/src/operations/create-trigger-from-template.ts +72 -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 -29
- package/src/types/capabilities.ts +48 -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-VZNV2ZQF.mjs +0 -38
- package/dist/lib/browser/AutomationContainer-VZNV2ZQF.mjs.map +0 -7
- package/dist/lib/browser/AutomationPanel-ZWA6GOFY.mjs +0 -11
- package/dist/lib/browser/FunctionsContainer-IOB333TX.mjs +0 -39
- package/dist/lib/browser/FunctionsContainer-IOB333TX.mjs.map +0 -7
- package/dist/lib/browser/FunctionsPanel-56ZKRVM5.mjs +0 -10
- package/dist/lib/browser/app-graph-builder-ZTAUTFI4.mjs +0 -80
- package/dist/lib/browser/app-graph-builder-ZTAUTFI4.mjs.map +0 -7
- package/dist/lib/browser/chunk-ECSTS2UI.mjs +0 -14
- package/dist/lib/browser/chunk-ECSTS2UI.mjs.map +0 -7
- package/dist/lib/browser/chunk-ERTIGJYE.mjs +0 -147
- package/dist/lib/browser/chunk-ERTIGJYE.mjs.map +0 -7
- package/dist/lib/browser/chunk-FSJZXTS2.mjs +0 -230
- package/dist/lib/browser/chunk-FSJZXTS2.mjs.map +0 -7
- package/dist/lib/browser/chunk-GW5U2DGT.mjs +0 -15
- package/dist/lib/browser/chunk-GW5U2DGT.mjs.map +0 -7
- package/dist/lib/browser/chunk-LYJVTIVD.mjs +0 -94
- package/dist/lib/browser/chunk-LYJVTIVD.mjs.map +0 -7
- package/dist/lib/browser/chunk-S2LE7SYB.mjs +0 -39
- package/dist/lib/browser/chunk-S2LE7SYB.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-YLRSMLH4.mjs +0 -76
- package/dist/lib/browser/intent-resolver-YLRSMLH4.mjs.map +0 -7
- package/dist/lib/browser/react-surface-4DFSM7OX.mjs +0 -64
- package/dist/lib/browser/react-surface-4DFSM7OX.mjs.map +0 -7
- package/dist/lib/browser/types.mjs +0 -8
- package/dist/lib/node-esm/AutomationContainer-WMIH3F4V.mjs +0 -39
- package/dist/lib/node-esm/AutomationContainer-WMIH3F4V.mjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-YYUMSK2W.mjs +0 -12
- package/dist/lib/node-esm/FunctionsContainer-DJWB6WFH.mjs +0 -40
- package/dist/lib/node-esm/FunctionsContainer-DJWB6WFH.mjs.map +0 -7
- package/dist/lib/node-esm/FunctionsPanel-KGIOZSPZ.mjs +0 -11
- package/dist/lib/node-esm/FunctionsPanel-KGIOZSPZ.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-3FP63ZSG.mjs +0 -81
- package/dist/lib/node-esm/app-graph-builder-3FP63ZSG.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AZH66CED.mjs +0 -231
- package/dist/lib/node-esm/chunk-AZH66CED.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HIMYPGHF.mjs +0 -148
- package/dist/lib/node-esm/chunk-HIMYPGHF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NK5N3QKD.mjs +0 -17
- package/dist/lib/node-esm/chunk-NK5N3QKD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SGZPTJ47.mjs +0 -16
- package/dist/lib/node-esm/chunk-SGZPTJ47.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UKATFY3R.mjs +0 -40
- package/dist/lib/node-esm/chunk-UKATFY3R.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZGPUV5VS.mjs +0 -95
- package/dist/lib/node-esm/chunk-ZGPUV5VS.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-LU7EYWEO.mjs +0 -77
- package/dist/lib/node-esm/intent-resolver-LU7EYWEO.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-3PNW7NDW.mjs +0 -65
- package/dist/lib/node-esm/react-surface-3PNW7NDW.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-ZWA6GOFY.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/browser/{FunctionsPanel-56ZKRVM5.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-YYUMSK2W.mjs.map → types/index.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,78 +1,142 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-automation",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.fcc0d83b33",
|
|
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
|
+
"source": "./src/capabilities/index.ts",
|
|
18
|
+
"types": "./src/capabilities/index.ts",
|
|
19
|
+
"browser": "./src/capabilities/index.ts",
|
|
20
|
+
"node": "./src/capabilities/node.ts"
|
|
21
|
+
},
|
|
22
|
+
"#components": "./src/components/index.ts",
|
|
23
|
+
"#containers": "./src/containers/index.ts",
|
|
24
|
+
"#hooks": "./src/hooks/index.ts",
|
|
25
|
+
"#meta": "./src/meta.ts",
|
|
26
|
+
"#operations": "./src/operations/index.ts",
|
|
27
|
+
"#testing": "./src/testing/index.ts",
|
|
28
|
+
"#translations": "./src/translations.ts",
|
|
29
|
+
"#types": "./src/types/index.ts"
|
|
30
|
+
},
|
|
11
31
|
"exports": {
|
|
12
32
|
".": {
|
|
33
|
+
"source": "./src/index.ts",
|
|
13
34
|
"types": "./dist/types/src/index.d.ts",
|
|
14
35
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
36
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
16
37
|
},
|
|
38
|
+
"./cli": {
|
|
39
|
+
"source": "./src/cli/index.ts",
|
|
40
|
+
"types": "./dist/types/src/cli/index.d.ts",
|
|
41
|
+
"node": "./dist/lib/node-esm/cli/index.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./hooks": {
|
|
44
|
+
"source": "./src/hooks/index.ts",
|
|
45
|
+
"types": "./dist/types/src/hooks/index.d.ts",
|
|
46
|
+
"browser": "./dist/lib/browser/hooks/index.mjs",
|
|
47
|
+
"node": "./dist/lib/node-esm/hooks/index.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./operations": {
|
|
50
|
+
"source": "./src/operations/index.ts",
|
|
51
|
+
"types": "./dist/types/src/operations/index.d.ts",
|
|
52
|
+
"browser": "./dist/lib/browser/operations/index.mjs",
|
|
53
|
+
"node": "./dist/lib/node-esm/operations/index.mjs"
|
|
54
|
+
},
|
|
55
|
+
"./translations": {
|
|
56
|
+
"source": "./src/translations.ts",
|
|
57
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
58
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
59
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
60
|
+
},
|
|
17
61
|
"./types": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
62
|
+
"source": "./src/types/index.ts",
|
|
63
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
64
|
+
"browser": "./dist/lib/browser/types/index.mjs",
|
|
65
|
+
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
21
66
|
}
|
|
22
67
|
},
|
|
23
68
|
"types": "dist/types/src/index.d.ts",
|
|
24
|
-
"typesVersions": {
|
|
25
|
-
"*": {}
|
|
26
|
-
},
|
|
27
69
|
"files": [
|
|
28
70
|
"assets",
|
|
29
71
|
"dist",
|
|
30
72
|
"src"
|
|
31
73
|
],
|
|
32
74
|
"dependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
75
|
+
"@effect-atom/atom": "^0.5.1",
|
|
76
|
+
"@effect/ai": "0.33.2",
|
|
77
|
+
"@effect/cli": "0.73.2",
|
|
78
|
+
"@effect/platform-browser": "0.74.0",
|
|
79
|
+
"@effect/printer-ansi": "0.47.0",
|
|
80
|
+
"@dxos/ai": "0.8.4-main.fcc0d83b33",
|
|
81
|
+
"@dxos/app-framework": "0.8.4-main.fcc0d83b33",
|
|
82
|
+
"@dxos/app-toolkit": "0.8.4-main.fcc0d83b33",
|
|
83
|
+
"@dxos/assistant": "0.8.4-main.fcc0d83b33",
|
|
84
|
+
"@dxos/assistant-toolkit": "0.8.4-main.fcc0d83b33",
|
|
85
|
+
"@dxos/blueprints": "0.8.4-main.fcc0d83b33",
|
|
86
|
+
"@dxos/async": "0.8.4-main.fcc0d83b33",
|
|
87
|
+
"@dxos/cli-util": "0.8.4-main.fcc0d83b33",
|
|
88
|
+
"@dxos/client": "0.8.4-main.fcc0d83b33",
|
|
89
|
+
"@dxos/conductor": "0.8.4-main.fcc0d83b33",
|
|
90
|
+
"@dxos/context": "0.8.4-main.fcc0d83b33",
|
|
91
|
+
"@dxos/echo": "0.8.4-main.fcc0d83b33",
|
|
92
|
+
"@dxos/client-protocol": "0.8.4-main.fcc0d83b33",
|
|
93
|
+
"@dxos/echo-atom": "0.8.4-main.fcc0d83b33",
|
|
94
|
+
"@dxos/echo-db": "0.8.4-main.fcc0d83b33",
|
|
95
|
+
"@dxos/echo-react": "0.8.4-main.fcc0d83b33",
|
|
96
|
+
"@dxos/functions": "0.8.4-main.fcc0d83b33",
|
|
97
|
+
"@dxos/effect": "0.8.4-main.fcc0d83b33",
|
|
98
|
+
"@dxos/invariant": "0.8.4-main.fcc0d83b33",
|
|
99
|
+
"@dxos/functions-runtime": "0.8.4-main.fcc0d83b33",
|
|
100
|
+
"@dxos/keys": "0.8.4-main.fcc0d83b33",
|
|
101
|
+
"@dxos/log": "0.8.4-main.fcc0d83b33",
|
|
102
|
+
"@dxos/operation": "0.8.4-main.fcc0d83b33",
|
|
103
|
+
"@dxos/plugin-deck": "0.8.4-main.fcc0d83b33",
|
|
104
|
+
"@dxos/plugin-graph": "0.8.4-main.fcc0d83b33",
|
|
105
|
+
"@dxos/plugin-client": "0.8.4-main.fcc0d83b33",
|
|
106
|
+
"@dxos/random": "0.8.4-main.fcc0d83b33",
|
|
107
|
+
"@dxos/plugin-space": "0.8.4-main.fcc0d83b33",
|
|
108
|
+
"@dxos/react-ui-attention": "0.8.4-main.fcc0d83b33",
|
|
109
|
+
"@dxos/react-client": "0.8.4-main.fcc0d83b33",
|
|
110
|
+
"@dxos/react-ui-components": "0.8.4-main.fcc0d83b33",
|
|
111
|
+
"@dxos/react-ui-editor": "0.8.4-main.fcc0d83b33",
|
|
112
|
+
"@dxos/react-ui-form": "0.8.4-main.fcc0d83b33",
|
|
113
|
+
"@dxos/react-ui-stack": "0.8.4-main.fcc0d83b33",
|
|
114
|
+
"@dxos/schema": "0.8.4-main.fcc0d83b33",
|
|
115
|
+
"@dxos/types": "0.8.4-main.fcc0d83b33",
|
|
116
|
+
"@dxos/react-ui-list": "0.8.4-main.fcc0d83b33",
|
|
117
|
+
"@dxos/util": "0.8.4-main.fcc0d83b33"
|
|
54
118
|
},
|
|
55
119
|
"devDependencies": {
|
|
56
|
-
"@effect-
|
|
57
|
-
"@effect/platform": "0.
|
|
58
|
-
"@types/react": "~
|
|
59
|
-
"@types/react-dom": "~
|
|
60
|
-
"effect": "3.
|
|
61
|
-
"react": "~
|
|
62
|
-
"react-dom": "~
|
|
63
|
-
"vite": "
|
|
64
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
120
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
121
|
+
"@effect/platform": "0.94.4",
|
|
122
|
+
"@types/react": "~19.2.7",
|
|
123
|
+
"@types/react-dom": "~19.2.3",
|
|
124
|
+
"effect": "3.20.0",
|
|
125
|
+
"react": "~19.2.3",
|
|
126
|
+
"react-dom": "~19.2.3",
|
|
127
|
+
"vite": "^8.0.10",
|
|
128
|
+
"@dxos/react-ui": "0.8.4-main.fcc0d83b33",
|
|
129
|
+
"@dxos/ui-theme": "0.8.4-main.fcc0d83b33",
|
|
130
|
+
"@dxos/storybook-utils": "0.8.4-main.fcc0d83b33"
|
|
67
131
|
},
|
|
68
132
|
"peerDependencies": {
|
|
69
|
-
"@effect-
|
|
70
|
-
"@effect/platform": "
|
|
71
|
-
"effect": "
|
|
72
|
-
"react": "~
|
|
73
|
-
"react-dom": "~
|
|
74
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
75
|
-
"@dxos/
|
|
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/react-ui": "0.8.4-main.fcc0d83b33",
|
|
139
|
+
"@dxos/ui-theme": "0.8.4-main.fcc0d83b33"
|
|
76
140
|
},
|
|
77
141
|
"publishConfig": {
|
|
78
142
|
"access": "public"
|
package/src/AutomationPlugin.tsx
CHANGED
|
@@ -2,39 +2,27 @@
|
|
|
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 { Trace, Trigger } from '@dxos/functions';
|
|
8
|
+
import { Operation } from '@dxos/operation';
|
|
9
|
+
import { ClientEvents } from '@dxos/plugin-client/types';
|
|
8
10
|
|
|
9
|
-
import { AppGraphBuilder,
|
|
10
|
-
import { meta } from '
|
|
11
|
-
import { translations } from '
|
|
11
|
+
import { AppGraphBuilder, ComputeRuntime, OperationHandler, ReactSurface } from '#capabilities';
|
|
12
|
+
import { meta } from '#meta';
|
|
13
|
+
import { translations } from '#translations';
|
|
14
|
+
import { AutomationEvents } from '#types';
|
|
12
15
|
|
|
13
|
-
export const AutomationPlugin = ()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
id: `${meta.id}/module/app-graph-builder`,
|
|
27
|
-
activatesOn: Events.SetupAppGraph,
|
|
28
|
-
activate: AppGraphBuilder,
|
|
29
|
-
}),
|
|
30
|
-
defineModule({
|
|
31
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
32
|
-
activatesOn: Events.SetupIntentResolver,
|
|
33
|
-
activate: IntentResolver,
|
|
34
|
-
}),
|
|
35
|
-
defineModule({
|
|
36
|
-
id: `${meta.id}/module/react-surface`,
|
|
37
|
-
activatesOn: Events.SetupReactSurface,
|
|
38
|
-
activate: ReactSurface,
|
|
39
|
-
}),
|
|
40
|
-
]);
|
|
16
|
+
export const AutomationPlugin = Plugin.define(meta).pipe(
|
|
17
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
18
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
19
|
+
AppPlugin.addSchemaModule({ schema: [Operation.PersistentOperation, Trigger.Trigger, Trace.Message] }),
|
|
20
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
21
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
22
|
+
Plugin.addModule({
|
|
23
|
+
activatesOn: ClientEvents.ClientReady,
|
|
24
|
+
firesAfterActivation: [AutomationEvents.ComputeRuntimeReady],
|
|
25
|
+
activate: ComputeRuntime,
|
|
26
|
+
}),
|
|
27
|
+
Plugin.make,
|
|
28
|
+
);
|
|
@@ -2,85 +2,62 @@
|
|
|
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 { SPACE_PLUGIN } from '@dxos/plugin-space';
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities, AppNode, AppNodeMatcher } from '@dxos/app-toolkit';
|
|
9
|
+
import { Script } from '@dxos/functions';
|
|
10
|
+
import { GraphBuilder } from '@dxos/plugin-graph';
|
|
11
|
+
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
14
12
|
|
|
15
|
-
import { meta } from '
|
|
13
|
+
import { meta } from '#meta';
|
|
16
14
|
|
|
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
|
-
Rx.make((get) =>
|
|
67
|
-
pipe(
|
|
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
|
-
]);
|
|
15
|
+
export default Capability.makeModule(
|
|
16
|
+
Effect.fnUntraced(function* () {
|
|
17
|
+
const extensions = yield* Effect.all([
|
|
18
|
+
GraphBuilder.createExtension({
|
|
19
|
+
id: 'space-settings-automation',
|
|
20
|
+
match: AppNodeMatcher.whenSpace,
|
|
21
|
+
connector: () =>
|
|
22
|
+
Effect.succeed([
|
|
23
|
+
AppNode.makeSettingsPanel({
|
|
24
|
+
id: 'automations',
|
|
25
|
+
type: `${meta.id}.space-settings-automation`,
|
|
26
|
+
label: ['automation-panel.label', { ns: meta.id }],
|
|
27
|
+
icon: 'ph--lightning--regular',
|
|
28
|
+
position: 'fallback',
|
|
29
|
+
}),
|
|
30
|
+
]),
|
|
31
|
+
}),
|
|
32
|
+
GraphBuilder.createExtension({
|
|
33
|
+
id: 'space-settings-functions',
|
|
34
|
+
match: AppNodeMatcher.whenSpace,
|
|
35
|
+
connector: () =>
|
|
36
|
+
Effect.succeed([
|
|
37
|
+
AppNode.makeSettingsPanel({
|
|
38
|
+
id: 'functions',
|
|
39
|
+
type: `${meta.id}.space-settings-functions`,
|
|
40
|
+
label: ['functions-panel.label', { ns: meta.id }],
|
|
41
|
+
icon: 'ph--function--regular',
|
|
42
|
+
position: 'fallback',
|
|
43
|
+
}),
|
|
44
|
+
]),
|
|
45
|
+
}),
|
|
46
|
+
GraphBuilder.createTypeExtension({
|
|
47
|
+
id: 'script-companion',
|
|
48
|
+
type: Script.Script,
|
|
49
|
+
connector: (script) =>
|
|
50
|
+
Effect.succeed([
|
|
51
|
+
AppNode.makeCompanion({
|
|
52
|
+
id: linkedSegment('automation'),
|
|
53
|
+
label: ['script-automation.label', { ns: meta.id }],
|
|
54
|
+
icon: 'ph--lightning--regular',
|
|
55
|
+
data: 'automation',
|
|
56
|
+
}),
|
|
57
|
+
]),
|
|
58
|
+
}),
|
|
59
|
+
]);
|
|
60
|
+
|
|
61
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
62
|
+
}),
|
|
63
|
+
);
|