@dxos/plugin-automation 0.8.4-main.9be5663bfe → 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-WQLEMRPU.mjs → chunk-CHUTFU3D.mjs} +1 -1
- package/dist/lib/browser/chunk-CHUTFU3D.mjs.map +7 -0
- package/dist/lib/browser/{chunk-POEIL4RN.mjs → chunk-RE64VLSV.mjs} +3 -3
- package/dist/lib/browser/{chunk-POEIL4RN.mjs.map → chunk-RE64VLSV.mjs.map} +3 -3
- package/dist/lib/browser/{create-trigger-from-template-JZ62EZTB.mjs → create-trigger-from-template-JLBSJRVB.mjs} +9 -16
- package/dist/lib/browser/create-trigger-from-template-JLBSJRVB.mjs.map +7 -0
- package/dist/lib/browser/hooks/index.mjs +61 -17
- package/dist/lib/browser/hooks/index.mjs.map +3 -3
- package/dist/lib/browser/index.mjs +6 -71
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operations/index.mjs +4 -4
- package/dist/lib/browser/operations/index.mjs.map +3 -3
- package/dist/lib/browser/translations.mjs +47 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/{chunk-SP3P4OUI.mjs → chunk-HHIHREME.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-SP3P4OUI.mjs.map → chunk-HHIHREME.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-JWZAVQLF.mjs → chunk-NWQMBY32.mjs} +1 -1
- package/dist/lib/node-esm/chunk-NWQMBY32.mjs.map +7 -0
- package/dist/lib/node-esm/{create-trigger-from-template-224Z7WJI.mjs → create-trigger-from-template-FUQ3LUIF.mjs} +9 -16
- package/dist/lib/node-esm/create-trigger-from-template-FUQ3LUIF.mjs.map +7 -0
- package/dist/lib/node-esm/hooks/index.mjs +61 -17
- package/dist/lib/node-esm/hooks/index.mjs.map +3 -3
- package/dist/lib/node-esm/index.mjs +6 -71
- 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 +4 -4
- package/dist/lib/node-esm/operations/index.mjs.map +3 -3
- 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 +1 -1
- package/dist/types/src/AutomationPlugin.d.ts +1 -0
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- package/dist/types/src/{cli/plugin.d.ts → AutomationPlugin.node.d.ts} +2 -1
- package/dist/types/src/AutomationPlugin.node.d.ts.map +1 -0
- package/dist/types/src/AutomationPlugin.test.d.ts +2 -0
- package/dist/types/src/AutomationPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/compute-runtime.d.ts +8 -0
- package/dist/types/src/capabilities/compute-runtime.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -1
- 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 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/create/index.d.ts +6 -6
- package/dist/types/src/commands/trigger/create/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/create/queue.d.ts +1 -1
- package/dist/types/src/commands/trigger/create/queue.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/create/subscription.d.ts +1 -1
- package/dist/types/src/commands/trigger/create/subscription.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/create/timer.d.ts +1 -1
- package/dist/types/src/commands/trigger/create/timer.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/index.d.ts +7 -7
- package/dist/types/src/commands/trigger/index.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/list.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/options.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/remove.d.ts +1 -1
- package/dist/types/src/commands/trigger/remove.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/update/index.d.ts +5 -5
- package/dist/types/src/commands/trigger/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/update/queue.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/update/subscription.d.ts.map +1 -0
- package/dist/types/src/commands/trigger/update/timer.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/trigger/util.d.ts +2 -2
- package/dist/types/src/commands/trigger/util.d.ts.map +1 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +32 -29
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/index.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsPanel/index.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsRegistry/FunctionsRegistry.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsRegistry/index.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts +5 -5
- package/dist/types/src/components/TriggerEditor/FunctionInputEditor.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts +4 -4
- package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +95 -91
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
- package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts +3 -1
- package/dist/types/src/containers/AutomationSettings/AutomationSettings.d.ts.map +1 -1
- package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts +2 -4
- package/dist/types/src/containers/FunctionsContainer/FunctionsContainer.d.ts.map +1 -1
- package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts +3 -3
- package/dist/types/src/containers/TriggerSettings/TriggerSettings.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeRuntime.d.ts +1 -0
- package/dist/types/src/hooks/useComputeRuntime.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeRuntimeCallback.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeRuntimeService.d.ts +14 -2
- package/dist/types/src/hooks/useComputeRuntimeService.d.ts.map +1 -1
- package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts +1 -1
- package/dist/types/src/hooks/useTriggerRuntimeControls.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/create-trigger-from-template.d.ts +1 -1
- package/dist/types/src/operations/create-trigger-from-template.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +4 -4
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-functions.d.ts +77 -77
- package/dist/types/src/translations.d.ts +32 -30
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +6 -7
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +60 -60
- package/src/{cli/plugin.ts → AutomationPlugin.node.ts} +8 -2
- package/src/AutomationPlugin.test.ts +27 -0
- package/src/AutomationPlugin.tsx +6 -6
- package/src/capabilities/app-graph-builder.ts +10 -6
- package/src/capabilities/compute-runtime.ts +216 -139
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/node.ts +6 -0
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +6 -6
- package/src/{cli/commands → commands}/trigger/create/queue.ts +2 -6
- package/src/{cli/commands → commands}/trigger/create/subscription.ts +6 -10
- package/src/{cli/commands → commands}/trigger/create/timer.ts +2 -6
- package/src/{cli/commands → commands}/trigger/list.ts +5 -3
- package/src/{cli/commands → commands}/trigger/remove.ts +1 -1
- package/src/{cli/commands → commands}/trigger/update/queue.ts +5 -6
- package/src/{cli/commands → commands}/trigger/update/subscription.ts +5 -6
- package/src/{cli/commands → commands}/trigger/update/timer.ts +5 -6
- package/src/{cli/commands → commands}/trigger/util.ts +5 -4
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +2 -3
- package/src/components/AutomationPanel/AutomationPanel.tsx +9 -6
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +1 -2
- package/src/components/FunctionsRegistry/FunctionsRegistry.tsx +1 -1
- package/src/components/TriggerEditor/FunctionInputEditor.tsx +1 -1
- package/src/components/TriggerEditor/SpecSelector.tsx +6 -11
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +4 -5
- package/src/components/TriggerEditor/TriggerEditor.tsx +2 -3
- package/src/containers/AutomationSettings/AutomationSettings.tsx +5 -2
- package/src/containers/FunctionsContainer/FunctionsContainer.tsx +3 -4
- package/src/containers/TriggerSettings/TriggerSettings.tsx +29 -7
- package/src/hooks/useComputeRuntime.ts +17 -3
- package/src/hooks/useComputeRuntimeService.ts +49 -9
- package/src/hooks/useTriggerRuntimeControls.ts +6 -3
- package/src/index.ts +5 -1
- package/src/operations/create-trigger-from-template.ts +6 -10
- package/src/operations/definitions.ts +1 -1
- package/src/operations/index.ts +1 -1
- package/src/translations.ts +8 -6
- package/src/types/capabilities.ts +9 -18
- package/dist/lib/browser/chunk-WQLEMRPU.mjs.map +0 -7
- package/dist/lib/browser/cli/index.mjs +0 -1122
- package/dist/lib/browser/cli/index.mjs.map +0 -7
- package/dist/lib/browser/create-trigger-from-template-JZ62EZTB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JWZAVQLF.mjs.map +0 -7
- package/dist/lib/node-esm/cli/index.mjs +0 -1123
- package/dist/lib/node-esm/cli/index.mjs.map +0 -7
- package/dist/lib/node-esm/create-trigger-from-template-224Z7WJI.mjs.map +0 -7
- package/dist/types/src/cli/commands/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/create/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/create/queue.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/create/subscription.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/create/timer.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/options.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/remove.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/update/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/update/queue.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/update/subscription.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/update/timer.d.ts.map +0 -1
- package/dist/types/src/cli/commands/trigger/util.d.ts.map +0 -1
- package/dist/types/src/cli/index.d.ts +0 -2
- package/dist/types/src/cli/index.d.ts.map +0 -1
- package/dist/types/src/cli/plugin.d.ts.map +0 -1
- package/src/cli/index.ts +0 -5
- /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/trigger/list.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/trigger/options.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/trigger/update/queue.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/trigger/update/subscription.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/trigger/update/timer.d.ts +0 -0
- /package/src/{cli/commands → commands}/index.ts +0 -0
- /package/src/{cli/commands → commands}/trigger/create/index.ts +0 -0
- /package/src/{cli/commands → commands}/trigger/index.ts +0 -0
- /package/src/{cli/commands → commands}/trigger/options.ts +0 -0
- /package/src/{cli/commands → commands}/trigger/update/index.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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",
|
|
@@ -14,17 +14,22 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
16
|
"#capabilities": {
|
|
17
|
-
"source": "./src/capabilities/index.ts",
|
|
18
|
-
"types": "./src/capabilities/index.ts",
|
|
19
17
|
"browser": "./src/capabilities/index.ts",
|
|
20
|
-
"node": "./src/capabilities/node.ts"
|
|
18
|
+
"node": "./src/capabilities/node.ts",
|
|
19
|
+
"default": "./src/capabilities/index.ts"
|
|
21
20
|
},
|
|
22
21
|
"#components": "./src/components/index.ts",
|
|
23
22
|
"#containers": "./src/containers/index.ts",
|
|
24
23
|
"#hooks": "./src/hooks/index.ts",
|
|
25
24
|
"#meta": "./src/meta.ts",
|
|
26
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
|
+
},
|
|
27
31
|
"#testing": "./src/testing/index.ts",
|
|
32
|
+
"#translations": "./src/translations.ts",
|
|
28
33
|
"#types": "./src/types/index.ts"
|
|
29
34
|
},
|
|
30
35
|
"exports": {
|
|
@@ -34,11 +39,6 @@
|
|
|
34
39
|
"browser": "./dist/lib/browser/index.mjs",
|
|
35
40
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
36
41
|
},
|
|
37
|
-
"./cli": {
|
|
38
|
-
"source": "./src/cli/index.ts",
|
|
39
|
-
"types": "./dist/types/src/cli/index.d.ts",
|
|
40
|
-
"node": "./dist/lib/node-esm/cli/index.mjs"
|
|
41
|
-
},
|
|
42
42
|
"./hooks": {
|
|
43
43
|
"source": "./src/hooks/index.ts",
|
|
44
44
|
"types": "./dist/types/src/hooks/index.d.ts",
|
|
@@ -51,6 +51,12 @@
|
|
|
51
51
|
"browser": "./dist/lib/browser/operations/index.mjs",
|
|
52
52
|
"node": "./dist/lib/node-esm/operations/index.mjs"
|
|
53
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
|
+
},
|
|
54
60
|
"./types": {
|
|
55
61
|
"source": "./src/types/index.ts",
|
|
56
62
|
"types": "./dist/types/src/types/index.d.ts",
|
|
@@ -59,16 +65,6 @@
|
|
|
59
65
|
}
|
|
60
66
|
},
|
|
61
67
|
"types": "dist/types/src/index.d.ts",
|
|
62
|
-
"typesVersions": {
|
|
63
|
-
"*": {
|
|
64
|
-
"hooks": [
|
|
65
|
-
"dist/types/src/hooks/index.d.ts"
|
|
66
|
-
],
|
|
67
|
-
"types": [
|
|
68
|
-
"dist/types/src/types/index.d.ts"
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
68
|
"files": [
|
|
73
69
|
"assets",
|
|
74
70
|
"dist",
|
|
@@ -80,41 +76,44 @@
|
|
|
80
76
|
"@effect/cli": "0.73.2",
|
|
81
77
|
"@effect/platform-browser": "0.74.0",
|
|
82
78
|
"@effect/printer-ansi": "0.47.0",
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/cli-util": "0.8.4-main.
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/client": "0.8.4-main.
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/conductor": "0.8.4-main.
|
|
92
|
-
"@dxos/context": "0.8.4-main.
|
|
93
|
-
"@dxos/
|
|
94
|
-
"@dxos/echo-
|
|
95
|
-
"@dxos/echo-
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/
|
|
98
|
-
"@dxos/
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/plugin-
|
|
107
|
-
"@dxos/
|
|
108
|
-
"@dxos/
|
|
109
|
-
"@dxos/react-
|
|
110
|
-
"@dxos/react-ui-
|
|
111
|
-
"@dxos/react-ui-
|
|
112
|
-
"@dxos/react-ui-
|
|
113
|
-
"@dxos/react-ui-form": "0.8.4-main.
|
|
114
|
-
"@dxos/react-ui-
|
|
115
|
-
"@dxos/schema": "0.8.4-main.
|
|
116
|
-
"@dxos/
|
|
117
|
-
"@dxos/
|
|
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"
|
|
118
117
|
},
|
|
119
118
|
"devDependencies": {
|
|
120
119
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -124,10 +123,11 @@
|
|
|
124
123
|
"effect": "3.20.0",
|
|
125
124
|
"react": "~19.2.3",
|
|
126
125
|
"react-dom": "~19.2.3",
|
|
127
|
-
"vite": "^
|
|
128
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
129
|
-
"@dxos/
|
|
130
|
-
"@dxos/
|
|
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"
|
|
131
131
|
},
|
|
132
132
|
"peerDependencies": {
|
|
133
133
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
"effect": "3.20.0",
|
|
136
136
|
"react": "~19.2.3",
|
|
137
137
|
"react-dom": "~19.2.3",
|
|
138
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
139
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
138
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef",
|
|
139
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef"
|
|
140
140
|
},
|
|
141
141
|
"publishConfig": {
|
|
142
142
|
"access": "public"
|
|
@@ -4,20 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
import { Plugin } from '@dxos/app-framework';
|
|
6
6
|
import { AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
+
import { Operation, Trace, Trigger } from '@dxos/compute';
|
|
7
8
|
import { ClientEvents } from '@dxos/plugin-client/types';
|
|
8
9
|
|
|
9
|
-
import { ComputeRuntime } from '#capabilities';
|
|
10
|
+
import { AppGraphBuilder, ComputeRuntime, OperationHandler } from '#capabilities';
|
|
10
11
|
import { meta } from '#meta';
|
|
11
12
|
import { AutomationEvents } from '#types';
|
|
12
13
|
|
|
13
14
|
import { trigger } from './commands';
|
|
14
15
|
|
|
15
16
|
export const AutomationPlugin = Plugin.define(meta).pipe(
|
|
17
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
16
18
|
AppPlugin.addCommandModule({ commands: [trigger] }),
|
|
19
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
20
|
+
AppPlugin.addSchemaModule({ schema: [Operation.PersistentOperation, Trigger.Trigger, Trace.Message] }),
|
|
17
21
|
Plugin.addModule({
|
|
18
22
|
activatesOn: ClientEvents.ClientReady,
|
|
19
|
-
|
|
23
|
+
firesAfterActivation: [AutomationEvents.ComputeRuntimeReady],
|
|
20
24
|
activate: ComputeRuntime,
|
|
21
25
|
}),
|
|
22
26
|
Plugin.make,
|
|
23
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
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
import { Plugin } from '@dxos/app-framework';
|
|
6
6
|
import { AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
-
import { Trigger } from '@dxos/
|
|
8
|
-
import { Operation } from '@dxos/operation';
|
|
7
|
+
import { Operation, Trace, Trigger } from '@dxos/compute';
|
|
9
8
|
import { ClientEvents } from '@dxos/plugin-client/types';
|
|
10
9
|
|
|
11
10
|
import { AppGraphBuilder, ComputeRuntime, OperationHandler, ReactSurface } from '#capabilities';
|
|
12
11
|
import { meta } from '#meta';
|
|
12
|
+
import { translations } from '#translations';
|
|
13
13
|
import { AutomationEvents } from '#types';
|
|
14
14
|
|
|
15
|
-
import { translations } from './translations';
|
|
16
|
-
|
|
17
15
|
export const AutomationPlugin = Plugin.define(meta).pipe(
|
|
18
16
|
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
19
17
|
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
20
|
-
AppPlugin.addSchemaModule({ schema: [Operation.PersistentOperation, Trigger.Trigger] }),
|
|
18
|
+
AppPlugin.addSchemaModule({ schema: [Operation.PersistentOperation, Trigger.Trigger, Trace.Message] }),
|
|
21
19
|
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
22
20
|
AppPlugin.addTranslationsModule({ translations }),
|
|
23
21
|
Plugin.addModule({
|
|
24
22
|
activatesOn: ClientEvents.ClientReady,
|
|
25
|
-
|
|
23
|
+
firesAfterActivation: [AutomationEvents.ComputeRuntimeReady],
|
|
26
24
|
activate: ComputeRuntime,
|
|
27
25
|
}),
|
|
28
26
|
Plugin.make,
|
|
29
27
|
);
|
|
28
|
+
|
|
29
|
+
export default AutomationPlugin;
|
|
@@ -6,9 +6,9 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capability } from '@dxos/app-framework';
|
|
8
8
|
import { AppCapabilities, AppNode } from '@dxos/app-toolkit';
|
|
9
|
-
import { Script } from '@dxos/
|
|
9
|
+
import { Script } from '@dxos/compute';
|
|
10
10
|
import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
|
|
11
|
-
import {
|
|
11
|
+
import { SETTINGS_SECTION_TYPE } from '@dxos/plugin-space/types';
|
|
12
12
|
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
13
13
|
|
|
14
14
|
import { meta } from '#meta';
|
|
@@ -18,27 +18,31 @@ export default Capability.makeModule(
|
|
|
18
18
|
const extensions = yield* Effect.all([
|
|
19
19
|
GraphBuilder.createExtension({
|
|
20
20
|
id: 'space-settings-automation',
|
|
21
|
-
match: NodeMatcher.whenNodeType(
|
|
22
|
-
connector: (
|
|
21
|
+
match: NodeMatcher.whenNodeType(SETTINGS_SECTION_TYPE),
|
|
22
|
+
connector: () =>
|
|
23
23
|
Effect.succeed([
|
|
24
24
|
AppNode.makeSettingsPanel({
|
|
25
25
|
id: 'automations',
|
|
26
26
|
type: `${meta.id}.space-settings-automation`,
|
|
27
27
|
label: ['automation-panel.label', { ns: meta.id }],
|
|
28
28
|
icon: 'ph--lightning--regular',
|
|
29
|
+
iconHue: 'indigo',
|
|
30
|
+
position: 'fallback',
|
|
29
31
|
}),
|
|
30
32
|
]),
|
|
31
33
|
}),
|
|
32
34
|
GraphBuilder.createExtension({
|
|
33
35
|
id: 'space-settings-functions',
|
|
34
|
-
match: NodeMatcher.whenNodeType(
|
|
35
|
-
connector: (
|
|
36
|
+
match: NodeMatcher.whenNodeType(SETTINGS_SECTION_TYPE),
|
|
37
|
+
connector: () =>
|
|
36
38
|
Effect.succeed([
|
|
37
39
|
AppNode.makeSettingsPanel({
|
|
38
40
|
id: 'functions',
|
|
39
41
|
type: `${meta.id}.space-settings-functions`,
|
|
40
42
|
label: ['functions-panel.label', { ns: meta.id }],
|
|
41
43
|
icon: 'ph--function--regular',
|
|
44
|
+
iconHue: 'indigo',
|
|
45
|
+
position: 'fallback',
|
|
42
46
|
}),
|
|
43
47
|
]),
|
|
44
48
|
}),
|