@dxos/plugin-debug 0.8.4-main.7996785055 → 0.8.4-main.8baae0fced
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/{browser/DebugGraph-7HXJ2PS2.mjs → neutral/DebugGraph-G4FWS57E.mjs} +4 -5
- package/dist/lib/neutral/DebugGraph-G4FWS57E.mjs.map +7 -0
- package/dist/lib/neutral/DebugObjectPanel-UJ63CV25.mjs +59 -0
- package/dist/lib/neutral/DebugObjectPanel-UJ63CV25.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.mjs +47 -0
- package/dist/lib/neutral/DebugPlugin.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.node.mjs +18 -0
- package/dist/lib/neutral/DebugPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/DebugPlugin.workerd.mjs +12 -0
- package/dist/lib/neutral/DebugPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/DebugSettings-Z3XADRNK.mjs +224 -0
- package/dist/lib/neutral/DebugSettings-Z3XADRNK.mjs.map +7 -0
- package/dist/lib/{browser/DebugSpaceObjectsPanel-SIK72DXV.mjs → neutral/DebugSpaceObjectsPanel-NISULU6U.mjs} +9 -20
- package/dist/lib/neutral/DebugSpaceObjectsPanel-NISULU6U.mjs.map +7 -0
- package/dist/lib/{browser/DebugStatus-FWF3YFBA.mjs → neutral/DebugStatus-YB3KFP7G.mjs} +5 -8
- package/dist/lib/neutral/DebugStatus-YB3KFP7G.mjs.map +7 -0
- package/dist/lib/{browser/DevtoolsOverviewContainer-TBTTPXVF.mjs → neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs} +4 -5
- package/dist/lib/neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs.map +7 -0
- package/dist/lib/neutral/GithubPanel-DAIR6QSZ.mjs +177 -0
- package/dist/lib/neutral/GithubPanel-DAIR6QSZ.mjs.map +7 -0
- package/dist/lib/neutral/SpaceGenerator-UBYB4NPD.mjs +143 -0
- package/dist/lib/neutral/SpaceGenerator-UBYB4NPD.mjs.map +7 -0
- package/dist/lib/{browser/Wireframe-KAGOKEFW.mjs → neutral/Wireframe-7SNRUKET.mjs} +8 -9
- package/dist/lib/neutral/Wireframe-7SNRUKET.mjs.map +7 -0
- package/dist/lib/{browser/app-graph-builder-FBLOEOH5.mjs → neutral/app-graph-builder-OIC65GEP.mjs} +169 -186
- package/dist/lib/neutral/app-graph-builder-OIC65GEP.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +15 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/{browser/chunk-Q37TZWW5.mjs → neutral/chunk-NFIOTQRZ.mjs} +21 -10
- package/dist/lib/neutral/chunk-NFIOTQRZ.mjs.map +7 -0
- package/dist/lib/{browser/chunk-ZOM2FBHQ.mjs → neutral/chunk-SWW2QL66.mjs} +5 -1
- package/dist/lib/neutral/chunk-SWW2QL66.mjs.map +7 -0
- package/dist/lib/{browser/SpaceGenerator-UUQS6TYY.mjs → neutral/components/index.mjs} +61 -264
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +23 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +18 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +12 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/{browser/react-context-KBHXEMRS.mjs → neutral/react-context-MUZ3KVLU.mjs} +4 -5
- package/dist/lib/neutral/react-context-MUZ3KVLU.mjs.map +7 -0
- package/dist/lib/{browser/react-surface-HYT4HKZX.mjs → neutral/react-surface-UP747GQ7.mjs} +148 -157
- package/dist/lib/neutral/react-surface-UP747GQ7.mjs.map +7 -0
- package/dist/lib/{browser/settings-XXFUM3QJ.mjs → neutral/settings-MPM6YUP4.mjs} +7 -11
- package/dist/lib/neutral/settings-MPM6YUP4.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +89 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +14 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/DebugPlugin.d.ts +2 -5
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/DebugPlugin.node.d.ts +5 -0
- package/dist/types/src/DebugPlugin.node.d.ts.map +1 -0
- package/dist/types/src/DebugPlugin.test.d.ts +2 -0
- package/dist/types/src/DebugPlugin.test.d.ts.map +1 -0
- package/dist/types/src/DebugPlugin.workerd.d.ts +5 -0
- package/dist/types/src/DebugPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +11 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +2 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/{settings/settings.d.ts → settings.d.ts} +2 -1
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.d.ts +11 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts +104 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/index.d.ts +2 -0
- package/dist/types/src/components/DebugSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +2 -2
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/draw-util.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +2 -2
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -1
- package/dist/types/src/containers/DebugGraph/index.d.ts +1 -2
- package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +3 -4
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -1
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts +1 -2
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +3 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +1 -2
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -1
- package/dist/types/src/containers/DebugStatus/index.d.ts +1 -2
- package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -1
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +1 -2
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -1
- package/dist/types/src/containers/GithubPanel/GithubComponent.d.ts +15 -0
- package/dist/types/src/containers/GithubPanel/GithubComponent.d.ts.map +1 -0
- package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts +104 -0
- package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts.map +1 -0
- package/dist/types/src/containers/GithubPanel/GithubPanel.d.ts +3 -0
- package/dist/types/src/containers/GithubPanel/GithubPanel.d.ts.map +1 -0
- package/dist/types/src/containers/GithubPanel/index.d.ts +2 -0
- package/dist/types/src/containers/GithubPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts +1 -5
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceGenerator/index.d.ts +1 -2
- package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -1
- package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -1
- package/dist/types/src/containers/Wireframe/index.d.ts +1 -2
- package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +1 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +85 -61
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +8 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/{types.d.ts → types/index.d.ts} +10 -9
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +116 -63
- package/src/DebugPlugin.node.ts +18 -0
- package/src/DebugPlugin.test.ts +29 -0
- package/src/DebugPlugin.tsx +9 -11
- package/src/DebugPlugin.workerd.ts +12 -0
- package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +139 -153
- package/src/capabilities/index.ts +6 -4
- package/src/capabilities/{react-context/react-context.tsx → react-context.tsx} +1 -1
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +163 -139
- package/src/capabilities/{settings/settings.ts → settings.ts} +4 -4
- package/src/components/DebugSettings/DebugSettings.stories.tsx +36 -0
- package/src/components/DebugSettings/DebugSettings.tsx +262 -0
- package/src/components/DebugSettings/index.ts +5 -0
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +13 -14
- package/src/components/SpaceGenerator/draw-util.ts +8 -8
- package/src/components/SpaceGenerator/presets.ts +27 -52
- package/src/components/index.ts +4 -0
- package/src/containers/DebugGraph/DebugGraph.tsx +3 -2
- package/src/containers/DebugGraph/index.ts +1 -3
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +44 -15
- package/src/containers/DebugObjectPanel/index.ts +1 -3
- package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +9 -17
- package/src/containers/DebugSpaceObjectsPanel/index.ts +1 -3
- package/src/containers/DebugStatus/DebugStatus.tsx +1 -3
- package/src/containers/DebugStatus/index.ts +1 -3
- package/src/containers/DevtoolsOverviewContainer/index.ts +1 -3
- package/src/containers/GithubPanel/GithubComponent.stories.tsx +38 -0
- package/src/containers/GithubPanel/GithubComponent.tsx +192 -0
- package/src/containers/GithubPanel/GithubPanel.tsx +17 -0
- package/src/containers/GithubPanel/index.ts +5 -0
- package/src/containers/SpaceGenerator/SpaceGenerator.tsx +16 -20
- package/src/containers/SpaceGenerator/index.ts +1 -3
- package/src/containers/Wireframe/Wireframe.tsx +2 -6
- package/src/containers/Wireframe/index.ts +1 -3
- package/src/containers/index.ts +1 -1
- package/src/index.ts +1 -1
- package/src/meta.ts +2 -0
- package/src/plugin.ts +10 -0
- package/src/translations.ts +81 -60
- package/src/types/Settings.ts +16 -0
- package/src/{types.ts → types/index.ts} +14 -12
- package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs.map +0 -7
- package/dist/lib/browser/DebugObjectPanel-KXVFOGU6.mjs +0 -35
- package/dist/lib/browser/DebugObjectPanel-KXVFOGU6.mjs.map +0 -7
- package/dist/lib/browser/DebugSettings-DQXOXF6A.mjs +0 -183
- package/dist/lib/browser/DebugSettings-DQXOXF6A.mjs.map +0 -7
- package/dist/lib/browser/DebugSpaceObjectsPanel-SIK72DXV.mjs.map +0 -7
- package/dist/lib/browser/DebugStatus-FWF3YFBA.mjs.map +0 -7
- package/dist/lib/browser/DevtoolsOverviewContainer-TBTTPXVF.mjs.map +0 -7
- package/dist/lib/browser/SpaceGenerator-UUQS6TYY.mjs.map +0 -7
- package/dist/lib/browser/Wireframe-KAGOKEFW.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-FBLOEOH5.mjs.map +0 -7
- package/dist/lib/browser/chunk-Q37TZWW5.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZOM2FBHQ.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -132
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-context-KBHXEMRS.mjs.map +0 -7
- package/dist/lib/browser/react-surface-HYT4HKZX.mjs.map +0 -7
- package/dist/lib/browser/settings-XXFUM3QJ.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
- package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/index.d.ts +0 -3
- package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/settings.d.ts.map +0 -1
- package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts +0 -10
- package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +0 -1
- package/dist/types/src/containers/DebugSettings/index.d.ts +0 -3
- package/dist/types/src/containers/DebugSettings/index.d.ts.map +0 -1
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/react-context/index.ts +0 -7
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/settings/index.ts +0 -7
- package/src/containers/DebugSettings/DebugSettings.tsx +0 -206
- package/src/containers/DebugSettings/index.ts +0 -7
- /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
- /package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +0 -0
|
@@ -5,25 +5,23 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capability } from '@dxos/app-framework';
|
|
8
|
-
import { AppCapabilities, getSpaceIdFromPath } from '@dxos/app-toolkit';
|
|
8
|
+
import { AppCapabilities, AppNode, getSpaceIdFromPath } from '@dxos/app-toolkit';
|
|
9
9
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
10
|
-
import { DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
11
10
|
import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
import { meta } from '../../meta';
|
|
15
|
-
import { Devtools } from '../../types';
|
|
11
|
+
import { SPACE_TYPE } from '@dxos/plugin-space';
|
|
16
12
|
import { getParentId } from '@dxos/react-ui-attention';
|
|
17
13
|
|
|
14
|
+
import { meta } from '#meta';
|
|
15
|
+
import { Devtools } from '#types';
|
|
16
|
+
|
|
18
17
|
const DEVTOOLS_TYPE = `${meta.id}.devtools`;
|
|
19
18
|
|
|
20
19
|
export default Capability.makeModule(
|
|
21
20
|
Effect.fnUntraced(function* () {
|
|
22
21
|
const extensions = yield* Effect.all([
|
|
23
|
-
// Devtools node.
|
|
24
22
|
GraphBuilder.createExtension({
|
|
25
|
-
id:
|
|
26
|
-
match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(
|
|
23
|
+
id: 'devtools',
|
|
24
|
+
match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(SPACE_TYPE)),
|
|
27
25
|
connector: (node, get) =>
|
|
28
26
|
Effect.gen(function* () {
|
|
29
27
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
@@ -34,382 +32,370 @@ export default Capability.makeModule(
|
|
|
34
32
|
const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
|
|
35
33
|
|
|
36
34
|
return [
|
|
37
|
-
{
|
|
35
|
+
Node.make({
|
|
38
36
|
id: Devtools.id,
|
|
39
37
|
data: null,
|
|
40
38
|
type: DEVTOOLS_TYPE,
|
|
41
39
|
properties: {
|
|
42
|
-
label: ['devtools
|
|
40
|
+
label: ['devtools.label', { ns: meta.id }],
|
|
43
41
|
icon: 'ph--hammer--regular',
|
|
44
42
|
disposition: 'pin-end',
|
|
45
|
-
position: '
|
|
43
|
+
position: 'last',
|
|
46
44
|
},
|
|
47
45
|
nodes: [
|
|
48
|
-
|
|
46
|
+
Node.make({
|
|
47
|
+
id: 'app-graph',
|
|
48
|
+
type: `${meta.id}.app-graph`,
|
|
49
|
+
data: { graph: graph?.graph, root: node.id === Node.RootId ? node.id : getParentId(node.id) },
|
|
50
|
+
properties: {
|
|
51
|
+
label: ['debug-app-graph.label', { ns: meta.id }],
|
|
52
|
+
icon: 'ph--graph--regular',
|
|
53
|
+
},
|
|
54
|
+
}),
|
|
55
|
+
Node.make({
|
|
56
|
+
id: 'tools-explorer',
|
|
57
|
+
data: Devtools.ToolsExplorer,
|
|
58
|
+
type: DEVTOOLS_TYPE,
|
|
59
|
+
properties: {
|
|
60
|
+
label: ['debug-tools-explorer.label', { ns: meta.id }],
|
|
61
|
+
icon: 'ph--toolbox--regular',
|
|
62
|
+
},
|
|
63
|
+
}),
|
|
64
|
+
...(space && node.type === SPACE_TYPE
|
|
49
65
|
? [
|
|
50
|
-
{
|
|
66
|
+
Node.make({
|
|
51
67
|
id: 'debug',
|
|
52
68
|
type: `${meta.id}.space`,
|
|
53
69
|
data: { space, type: `${meta.id}.space` },
|
|
54
70
|
properties: {
|
|
55
|
-
label: ['
|
|
56
|
-
icon: 'ph--
|
|
71
|
+
label: ['generate-objects.label', { ns: meta.id }],
|
|
72
|
+
icon: 'ph--dice-five--regular',
|
|
57
73
|
},
|
|
58
|
-
},
|
|
74
|
+
}),
|
|
59
75
|
]
|
|
60
76
|
: []),
|
|
61
|
-
{
|
|
62
|
-
id: 'app-graph',
|
|
63
|
-
type: `${meta.id}.app-graph`,
|
|
64
|
-
data: { graph: graph?.graph, root: node.id === Node.RootId ? node.id : getParentId(node.id) },
|
|
65
|
-
properties: {
|
|
66
|
-
label: ['debug app graph label', { ns: meta.id }],
|
|
67
|
-
icon: 'ph--graph--regular',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
{
|
|
77
|
+
Node.make({
|
|
71
78
|
id: Devtools.Client.id,
|
|
72
79
|
data: null,
|
|
73
80
|
type: DEVTOOLS_TYPE,
|
|
74
81
|
properties: {
|
|
75
|
-
label: ['client
|
|
82
|
+
label: ['client.label', { ns: meta.id }],
|
|
76
83
|
icon: 'ph--users--regular',
|
|
77
84
|
},
|
|
78
85
|
nodes: [
|
|
79
|
-
{
|
|
86
|
+
Node.make({
|
|
80
87
|
id: Devtools.Client.Config,
|
|
81
88
|
data: Devtools.Client.Config,
|
|
82
89
|
type: DEVTOOLS_TYPE,
|
|
83
90
|
properties: {
|
|
84
|
-
label: ['config
|
|
91
|
+
label: ['config.label', { ns: meta.id }],
|
|
85
92
|
icon: 'ph--gear--regular',
|
|
86
93
|
},
|
|
87
|
-
},
|
|
88
|
-
{
|
|
94
|
+
}),
|
|
95
|
+
Node.make({
|
|
89
96
|
id: Devtools.Client.Storage,
|
|
90
97
|
data: Devtools.Client.Storage,
|
|
91
98
|
type: DEVTOOLS_TYPE,
|
|
92
99
|
properties: {
|
|
93
|
-
label: ['storage
|
|
100
|
+
label: ['storage.label', { ns: meta.id }],
|
|
94
101
|
icon: 'ph--hard-drives--regular',
|
|
95
102
|
},
|
|
96
|
-
},
|
|
97
|
-
{
|
|
103
|
+
}),
|
|
104
|
+
Node.make({
|
|
98
105
|
id: Devtools.Client.Logs,
|
|
99
106
|
data: Devtools.Client.Logs,
|
|
100
107
|
type: DEVTOOLS_TYPE,
|
|
101
108
|
properties: {
|
|
102
|
-
label: ['logs
|
|
109
|
+
label: ['logs.label', { ns: meta.id }],
|
|
103
110
|
icon: 'ph--file-text--regular',
|
|
104
111
|
},
|
|
105
|
-
},
|
|
106
|
-
{
|
|
112
|
+
}),
|
|
113
|
+
Node.make({
|
|
107
114
|
id: Devtools.Client.Diagnostics,
|
|
108
115
|
data: Devtools.Client.Diagnostics,
|
|
109
116
|
type: DEVTOOLS_TYPE,
|
|
110
117
|
properties: {
|
|
111
|
-
label: ['diagnostics
|
|
118
|
+
label: ['diagnostics.label', { ns: meta.id }],
|
|
112
119
|
icon: 'ph--chart-line--regular',
|
|
113
120
|
},
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: Devtools.Client.Tracing,
|
|
117
|
-
data: Devtools.Client.Tracing,
|
|
118
|
-
type: DEVTOOLS_TYPE,
|
|
119
|
-
properties: {
|
|
120
|
-
label: ['tracing label', { ns: meta.id }],
|
|
121
|
-
icon: 'ph--fire--regular',
|
|
122
|
-
},
|
|
123
|
-
},
|
|
121
|
+
}),
|
|
124
122
|
],
|
|
125
|
-
},
|
|
126
|
-
{
|
|
123
|
+
}),
|
|
124
|
+
Node.make({
|
|
127
125
|
id: Devtools.Halo.id,
|
|
128
126
|
data: null,
|
|
129
127
|
type: DEVTOOLS_TYPE,
|
|
130
128
|
properties: {
|
|
131
|
-
label: ['halo
|
|
129
|
+
label: ['halo.label', { ns: meta.id }],
|
|
132
130
|
icon: 'ph--identification-badge--regular',
|
|
133
131
|
},
|
|
134
132
|
nodes: [
|
|
135
|
-
{
|
|
133
|
+
Node.make({
|
|
136
134
|
id: Devtools.Halo.Identity,
|
|
137
135
|
data: Devtools.Halo.Identity,
|
|
138
136
|
type: DEVTOOLS_TYPE,
|
|
139
137
|
properties: {
|
|
140
|
-
label: ['identity
|
|
138
|
+
label: ['identity.label', { ns: meta.id }],
|
|
141
139
|
icon: 'ph--identification-badge--regular',
|
|
142
140
|
},
|
|
143
|
-
},
|
|
144
|
-
{
|
|
141
|
+
}),
|
|
142
|
+
Node.make({
|
|
145
143
|
id: Devtools.Halo.Devices,
|
|
146
144
|
data: Devtools.Halo.Devices,
|
|
147
145
|
type: DEVTOOLS_TYPE,
|
|
148
146
|
properties: {
|
|
149
|
-
label: ['devices
|
|
147
|
+
label: ['devices.label', { ns: meta.id }],
|
|
150
148
|
icon: 'ph--devices--regular',
|
|
151
149
|
},
|
|
152
|
-
},
|
|
153
|
-
{
|
|
150
|
+
}),
|
|
151
|
+
Node.make({
|
|
154
152
|
id: Devtools.Halo.Keyring,
|
|
155
153
|
data: Devtools.Halo.Keyring,
|
|
156
154
|
type: DEVTOOLS_TYPE,
|
|
157
155
|
properties: {
|
|
158
|
-
label: ['keyring
|
|
156
|
+
label: ['keyring.label', { ns: meta.id }],
|
|
159
157
|
icon: 'ph--key--regular',
|
|
160
158
|
},
|
|
161
|
-
},
|
|
162
|
-
{
|
|
159
|
+
}),
|
|
160
|
+
Node.make({
|
|
163
161
|
id: Devtools.Halo.Credentials,
|
|
164
162
|
data: Devtools.Halo.Credentials,
|
|
165
163
|
type: DEVTOOLS_TYPE,
|
|
166
164
|
properties: {
|
|
167
|
-
label: ['credentials
|
|
165
|
+
label: ['credentials.label', { ns: meta.id }],
|
|
168
166
|
icon: 'ph--credit-card--regular',
|
|
169
167
|
},
|
|
170
|
-
},
|
|
168
|
+
}),
|
|
171
169
|
],
|
|
172
|
-
},
|
|
173
|
-
{
|
|
170
|
+
}),
|
|
171
|
+
Node.make({
|
|
174
172
|
id: Devtools.Echo.id,
|
|
175
173
|
data: null,
|
|
176
174
|
type: DEVTOOLS_TYPE,
|
|
177
175
|
properties: {
|
|
178
|
-
label: ['echo
|
|
176
|
+
label: ['echo.label', { ns: meta.id }],
|
|
179
177
|
icon: 'ph--database--regular',
|
|
180
178
|
},
|
|
181
179
|
nodes: [
|
|
182
|
-
{
|
|
180
|
+
Node.make({
|
|
183
181
|
id: Devtools.Echo.Spaces,
|
|
184
182
|
data: Devtools.Echo.Spaces,
|
|
185
183
|
type: DEVTOOLS_TYPE,
|
|
186
184
|
properties: {
|
|
187
|
-
label: ['spaces
|
|
185
|
+
label: ['spaces.label', { ns: meta.id }],
|
|
188
186
|
icon: 'ph--graph--regular',
|
|
189
187
|
},
|
|
190
|
-
},
|
|
191
|
-
{
|
|
188
|
+
}),
|
|
189
|
+
Node.make({
|
|
192
190
|
id: Devtools.Echo.Space,
|
|
193
191
|
data: Devtools.Echo.Space,
|
|
194
192
|
type: DEVTOOLS_TYPE,
|
|
195
193
|
properties: {
|
|
196
|
-
label: ['space
|
|
194
|
+
label: ['space.label', { ns: meta.id }],
|
|
197
195
|
icon: 'ph--planet--regular',
|
|
198
196
|
},
|
|
199
|
-
},
|
|
200
|
-
{
|
|
197
|
+
}),
|
|
198
|
+
Node.make({
|
|
201
199
|
id: Devtools.Echo.Feeds,
|
|
202
200
|
data: Devtools.Echo.Feeds,
|
|
203
201
|
type: DEVTOOLS_TYPE,
|
|
204
202
|
properties: {
|
|
205
|
-
label: ['feeds
|
|
203
|
+
label: ['feeds.label', { ns: meta.id }],
|
|
206
204
|
icon: 'ph--list-bullets--regular',
|
|
207
205
|
},
|
|
208
|
-
},
|
|
209
|
-
{
|
|
206
|
+
}),
|
|
207
|
+
Node.make({
|
|
210
208
|
id: Devtools.Echo.Objects,
|
|
211
209
|
data: Devtools.Echo.Objects,
|
|
212
210
|
type: DEVTOOLS_TYPE,
|
|
213
211
|
properties: {
|
|
214
|
-
label: ['objects
|
|
212
|
+
label: ['objects.label', { ns: meta.id }],
|
|
215
213
|
icon: 'ph--cube--regular',
|
|
216
214
|
},
|
|
217
|
-
},
|
|
218
|
-
{
|
|
215
|
+
}),
|
|
216
|
+
Node.make({
|
|
219
217
|
id: Devtools.Echo.Schema,
|
|
220
218
|
data: Devtools.Echo.Schema,
|
|
221
219
|
type: DEVTOOLS_TYPE,
|
|
222
220
|
properties: {
|
|
223
|
-
label: ['schema
|
|
221
|
+
label: ['schema.label', { ns: meta.id }],
|
|
224
222
|
icon: 'ph--database--regular',
|
|
225
223
|
},
|
|
226
|
-
},
|
|
227
|
-
{
|
|
224
|
+
}),
|
|
225
|
+
Node.make({
|
|
228
226
|
id: Devtools.Echo.Automerge,
|
|
229
227
|
data: Devtools.Echo.Automerge,
|
|
230
228
|
type: DEVTOOLS_TYPE,
|
|
231
229
|
properties: {
|
|
232
|
-
label: ['automerge
|
|
230
|
+
label: ['automerge.label', { ns: meta.id }],
|
|
233
231
|
icon: 'ph--gear-six--regular',
|
|
234
232
|
},
|
|
235
|
-
},
|
|
236
|
-
{
|
|
233
|
+
}),
|
|
234
|
+
Node.make({
|
|
237
235
|
id: Devtools.Echo.Queues,
|
|
238
236
|
data: Devtools.Echo.Queues,
|
|
239
237
|
type: DEVTOOLS_TYPE,
|
|
240
238
|
properties: {
|
|
241
|
-
label: ['queues
|
|
239
|
+
label: ['queues.label', { ns: meta.id }],
|
|
242
240
|
icon: 'ph--queue--regular',
|
|
243
241
|
},
|
|
244
|
-
},
|
|
245
|
-
{
|
|
242
|
+
}),
|
|
243
|
+
Node.make({
|
|
246
244
|
id: Devtools.Echo.Members,
|
|
247
245
|
data: Devtools.Echo.Members,
|
|
248
246
|
type: DEVTOOLS_TYPE,
|
|
249
247
|
properties: {
|
|
250
|
-
label: ['members
|
|
248
|
+
label: ['members.label', { ns: meta.id }],
|
|
251
249
|
icon: 'ph--users--regular',
|
|
252
250
|
},
|
|
253
|
-
},
|
|
254
|
-
{
|
|
251
|
+
}),
|
|
252
|
+
Node.make({
|
|
255
253
|
id: Devtools.Echo.Metadata,
|
|
256
254
|
data: Devtools.Echo.Metadata,
|
|
257
255
|
type: DEVTOOLS_TYPE,
|
|
258
256
|
properties: {
|
|
259
|
-
label: ['metadata
|
|
257
|
+
label: ['metadata.label', { ns: meta.id }],
|
|
260
258
|
icon: 'ph--hard-drive--regular',
|
|
261
259
|
},
|
|
262
|
-
},
|
|
260
|
+
}),
|
|
263
261
|
],
|
|
264
|
-
},
|
|
265
|
-
{
|
|
262
|
+
}),
|
|
263
|
+
Node.make({
|
|
266
264
|
id: Devtools.Mesh.id,
|
|
267
265
|
data: null,
|
|
268
266
|
type: DEVTOOLS_TYPE,
|
|
269
267
|
properties: {
|
|
270
|
-
label: ['mesh
|
|
268
|
+
label: ['mesh.label', { ns: meta.id }],
|
|
271
269
|
icon: 'ph--graph--regular',
|
|
272
270
|
},
|
|
273
271
|
nodes: [
|
|
274
|
-
{
|
|
272
|
+
Node.make({
|
|
275
273
|
id: Devtools.Mesh.Signal,
|
|
276
274
|
data: Devtools.Mesh.Signal,
|
|
277
275
|
type: DEVTOOLS_TYPE,
|
|
278
276
|
properties: {
|
|
279
|
-
label: ['signal
|
|
277
|
+
label: ['signal.label', { ns: meta.id }],
|
|
280
278
|
icon: 'ph--wifi-high--regular',
|
|
281
279
|
},
|
|
282
|
-
},
|
|
283
|
-
{
|
|
280
|
+
}),
|
|
281
|
+
Node.make({
|
|
284
282
|
id: Devtools.Mesh.Swarm,
|
|
285
283
|
data: Devtools.Mesh.Swarm,
|
|
286
284
|
type: DEVTOOLS_TYPE,
|
|
287
285
|
properties: {
|
|
288
|
-
label: ['swarm
|
|
286
|
+
label: ['swarm.label', { ns: meta.id }],
|
|
289
287
|
icon: 'ph--users-three--regular',
|
|
290
288
|
},
|
|
291
|
-
},
|
|
292
|
-
{
|
|
289
|
+
}),
|
|
290
|
+
Node.make({
|
|
293
291
|
id: Devtools.Mesh.Network,
|
|
294
292
|
data: Devtools.Mesh.Network,
|
|
295
293
|
type: DEVTOOLS_TYPE,
|
|
296
294
|
properties: {
|
|
297
|
-
label: ['network
|
|
295
|
+
label: ['network.label', { ns: meta.id }],
|
|
298
296
|
icon: 'ph--polygon--regular',
|
|
299
297
|
},
|
|
300
|
-
},
|
|
298
|
+
}),
|
|
301
299
|
],
|
|
302
|
-
},
|
|
303
|
-
{
|
|
300
|
+
}),
|
|
301
|
+
Node.make({
|
|
304
302
|
id: Devtools.Edge.id,
|
|
305
303
|
data: null,
|
|
306
304
|
type: DEVTOOLS_TYPE,
|
|
307
305
|
properties: {
|
|
308
|
-
label: ['edge
|
|
306
|
+
label: ['edge.label', { ns: meta.id }],
|
|
309
307
|
icon: 'ph--cloud--regular',
|
|
310
308
|
},
|
|
311
309
|
nodes: [
|
|
312
|
-
{
|
|
310
|
+
Node.make({
|
|
313
311
|
id: Devtools.Edge.Dashboard,
|
|
314
312
|
data: Devtools.Edge.Dashboard,
|
|
315
313
|
type: DEVTOOLS_TYPE,
|
|
316
314
|
properties: {
|
|
317
|
-
label: ['dashboard
|
|
315
|
+
label: ['dashboard.label', { ns: meta.id }],
|
|
318
316
|
icon: 'ph--computer-tower--regular',
|
|
319
317
|
},
|
|
320
|
-
},
|
|
321
|
-
{
|
|
318
|
+
}),
|
|
319
|
+
Node.make({
|
|
322
320
|
id: Devtools.Edge.Workflows,
|
|
323
321
|
data: Devtools.Edge.Workflows,
|
|
324
322
|
type: DEVTOOLS_TYPE,
|
|
325
323
|
properties: {
|
|
326
|
-
label: ['workflows
|
|
324
|
+
label: ['workflows.label', { ns: meta.id }],
|
|
327
325
|
icon: 'ph--function--regular',
|
|
328
326
|
},
|
|
329
|
-
},
|
|
330
|
-
{
|
|
327
|
+
}),
|
|
328
|
+
Node.make({
|
|
331
329
|
id: Devtools.Edge.Traces,
|
|
332
330
|
data: Devtools.Edge.Traces,
|
|
333
331
|
type: DEVTOOLS_TYPE,
|
|
334
332
|
properties: {
|
|
335
|
-
label: ['traces
|
|
333
|
+
label: ['traces.label', { ns: meta.id }],
|
|
336
334
|
icon: 'ph--line-segments--regular',
|
|
337
335
|
},
|
|
338
|
-
},
|
|
339
|
-
{
|
|
336
|
+
}),
|
|
337
|
+
Node.make({
|
|
340
338
|
id: Devtools.Edge.Testing,
|
|
341
339
|
data: Devtools.Edge.Testing,
|
|
342
340
|
type: DEVTOOLS_TYPE,
|
|
343
341
|
properties: {
|
|
344
|
-
label: ['testing
|
|
342
|
+
label: ['testing.label', { ns: meta.id }],
|
|
345
343
|
icon: 'ph--flask--regular',
|
|
346
344
|
},
|
|
347
|
-
},
|
|
345
|
+
}),
|
|
348
346
|
],
|
|
349
|
-
},
|
|
347
|
+
}),
|
|
350
348
|
],
|
|
351
|
-
},
|
|
349
|
+
}),
|
|
352
350
|
];
|
|
353
351
|
}),
|
|
354
352
|
}),
|
|
355
353
|
|
|
356
354
|
// Debug object companion.
|
|
357
355
|
GraphBuilder.createExtension({
|
|
358
|
-
id:
|
|
356
|
+
id: 'debug-object',
|
|
359
357
|
match: NodeMatcher.whenEchoObject,
|
|
360
358
|
connector: () =>
|
|
361
359
|
Effect.succeed([
|
|
362
|
-
{
|
|
360
|
+
AppNode.makeCompanion({
|
|
363
361
|
id: 'debug',
|
|
364
|
-
|
|
362
|
+
label: ['debug.label', { ns: meta.id }],
|
|
363
|
+
icon: 'ph--bug--regular',
|
|
365
364
|
data: 'debug',
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
icon: 'ph--bug--regular',
|
|
369
|
-
disposition: 'hidden',
|
|
370
|
-
position: 'fallback',
|
|
371
|
-
},
|
|
372
|
-
},
|
|
365
|
+
position: 'last',
|
|
366
|
+
}),
|
|
373
367
|
]),
|
|
374
368
|
}),
|
|
375
369
|
|
|
376
370
|
// Devtools deck companion.
|
|
377
371
|
GraphBuilder.createExtension({
|
|
378
|
-
id:
|
|
372
|
+
id: 'devtools-overview',
|
|
379
373
|
match: NodeMatcher.whenRoot,
|
|
380
374
|
connector: () =>
|
|
381
375
|
Effect.succeed([
|
|
382
|
-
{
|
|
376
|
+
AppNode.makeDeckCompanion({
|
|
383
377
|
id: 'devtools',
|
|
384
|
-
|
|
378
|
+
label: ['devtools-overview.label', { ns: meta.id }],
|
|
379
|
+
icon: 'ph--equalizer--regular',
|
|
385
380
|
data: 'devtools' as const,
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
icon: 'ph--equalizer--regular',
|
|
389
|
-
disposition: 'hidden',
|
|
390
|
-
position: 'fallback',
|
|
391
|
-
},
|
|
392
|
-
},
|
|
381
|
+
position: 'last',
|
|
382
|
+
}),
|
|
393
383
|
]),
|
|
394
384
|
}),
|
|
395
385
|
|
|
396
386
|
// Object explorer.
|
|
397
387
|
GraphBuilder.createExtension({
|
|
398
|
-
id:
|
|
388
|
+
id: 'space-objects',
|
|
399
389
|
match: NodeMatcher.whenRoot,
|
|
400
390
|
connector: () =>
|
|
401
391
|
Effect.succeed([
|
|
402
|
-
{
|
|
392
|
+
AppNode.makeDeckCompanion({
|
|
403
393
|
id: 'space-objects',
|
|
404
|
-
|
|
394
|
+
label: ['space-objects.label', { ns: meta.id }],
|
|
395
|
+
icon: 'ph--cube--regular',
|
|
405
396
|
data: 'space-objects' as const,
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
icon: 'ph--cube--regular',
|
|
409
|
-
disposition: 'hidden',
|
|
410
|
-
position: 'fallback',
|
|
411
|
-
},
|
|
412
|
-
},
|
|
397
|
+
position: 'last',
|
|
398
|
+
}),
|
|
413
399
|
]),
|
|
414
400
|
}),
|
|
415
401
|
]);
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
import { Capability } from '@dxos/app-framework';
|
|
6
|
+
|
|
7
|
+
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
8
|
+
export const ReactContext = Capability.lazy('ReactContext', () => import('./react-context'));
|
|
9
|
+
export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
|
|
10
|
+
export const DebugSettings = Capability.lazy('DebugSettings', () => import('./settings'));
|
|
@@ -9,7 +9,7 @@ import { Capabilities, Capability } from '@dxos/app-framework';
|
|
|
9
9
|
import { Surface } from '@dxos/app-framework/ui';
|
|
10
10
|
import { DevtoolsContextProvider } from '@dxos/devtools';
|
|
11
11
|
|
|
12
|
-
import { meta } from '
|
|
12
|
+
import { meta } from '#meta';
|
|
13
13
|
|
|
14
14
|
export default Capability.makeModule(() =>
|
|
15
15
|
Effect.succeed(
|