@dxos/plugin-debug 0.8.4-main.dedc0f3 → 0.8.4-main.dfabb4ec29
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/neutral/DebugGraph-G4FWS57E.mjs +15 -0
- 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/DebugSettings-Z3XADRNK.mjs +224 -0
- package/dist/lib/neutral/DebugSettings-Z3XADRNK.mjs.map +7 -0
- package/dist/lib/neutral/DebugSpaceObjectsPanel-NISULU6U.mjs +34 -0
- package/dist/lib/neutral/DebugSpaceObjectsPanel-NISULU6U.mjs.map +7 -0
- package/dist/lib/neutral/DebugStatus-YB3KFP7G.mjs +121 -0
- package/dist/lib/neutral/DebugStatus-YB3KFP7G.mjs.map +7 -0
- package/dist/lib/neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs +23 -0
- package/dist/lib/neutral/DevtoolsOverviewContainer-YX7Z3D2H.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/neutral/Wireframe-7SNRUKET.mjs +52 -0
- package/dist/lib/neutral/Wireframe-7SNRUKET.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-YPYHL2K5.mjs +577 -0
- package/dist/lib/neutral/app-graph-builder-YPYHL2K5.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-3OGPOE7H.mjs +20 -0
- package/dist/lib/neutral/chunk-3OGPOE7H.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-AJA6RYN3.mjs → neutral/chunk-NFIOTQRZ.mjs} +30 -9
- package/dist/lib/neutral/chunk-NFIOTQRZ.mjs.map +7 -0
- package/dist/lib/{browser/SpaceGenerator-DANYBPYZ.mjs → neutral/components/index.mjs} +414 -411
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +21 -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/neutral/react-context-MUZ3KVLU.mjs +17 -0
- package/dist/lib/neutral/react-context-MUZ3KVLU.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-NH2H63KW.mjs +420 -0
- package/dist/lib/neutral/react-surface-NH2H63KW.mjs.map +7 -0
- package/dist/lib/neutral/settings-MPM6YUP4.mjs +28 -0
- package/dist/lib/neutral/settings-MPM6YUP4.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +83 -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 +4 -1
- 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/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/index.d.ts +8 -5
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context.d.ts +4 -2
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +7 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +5 -2
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- 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 +99 -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 -0
- package/dist/types/src/components/SchemaTable/index.d.ts +2 -0
- package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -0
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +5 -5
- 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/index.d.ts +2 -2
- package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts +4 -5
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +4 -10
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +8 -0
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
- package/dist/types/src/containers/DebugGraph/index.d.ts +2 -0
- package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +6 -0
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts +2 -0
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +5 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +2 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -0
- package/dist/types/src/containers/DebugStatus/index.d.ts +2 -0
- package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.d.ts +0 -1
- package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +2 -0
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts +11 -0
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceGenerator/index.d.ts +2 -0
- package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/Wireframe}/Wireframe.d.ts +2 -2
- package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -0
- package/dist/types/src/containers/Wireframe/index.d.ts +2 -0
- package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +9 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- 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 +2 -3
- 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 +80 -59
- 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/index.d.ts +69 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +131 -72
- package/src/DebugPlugin.node.ts +18 -0
- package/src/DebugPlugin.test.ts +29 -0
- package/src/DebugPlugin.tsx +30 -37
- package/src/capabilities/app-graph-builder.ts +362 -387
- package/src/capabilities/index.ts +5 -5
- package/src/capabilities/react-context.tsx +16 -7
- package/src/capabilities/react-surface.tsx +379 -338
- package/src/capabilities/settings.ts +24 -12
- 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/SchemaTable/index.ts +5 -0
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +33 -41
- package/src/components/SpaceGenerator/draw-util.ts +10 -10
- package/src/components/SpaceGenerator/index.ts +2 -3
- package/src/components/SpaceGenerator/presets.ts +310 -48
- package/src/components/index.ts +4 -8
- package/src/containers/DebugGraph/DebugGraph.tsx +14 -0
- package/src/containers/DebugGraph/index.ts +5 -0
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +76 -0
- package/src/containers/DebugObjectPanel/index.ts +5 -0
- package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +47 -0
- package/src/containers/DebugSpaceObjectsPanel/index.ts +5 -0
- package/src/{components → containers/DebugStatus}/DebugStatus.tsx +43 -21
- package/src/containers/DebugStatus/index.ts +5 -0
- package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +25 -0
- package/src/containers/DevtoolsOverviewContainer/index.ts +5 -0
- package/src/containers/SpaceGenerator/SpaceGenerator.tsx +126 -0
- package/src/containers/SpaceGenerator/index.ts +5 -0
- package/src/{components → containers/Wireframe}/Wireframe.tsx +7 -12
- package/src/containers/Wireframe/index.ts +5 -0
- package/src/containers/index.ts +13 -0
- package/src/index.ts +1 -1
- package/src/meta.ts +8 -7
- package/src/plugin.ts +10 -0
- package/src/translations.ts +75 -58
- package/src/types/Settings.ts +16 -0
- package/src/{types.ts → types/index.ts} +20 -11
- package/dist/lib/browser/DebugGraph-EDOH6R2G.mjs +0 -20
- package/dist/lib/browser/DebugGraph-EDOH6R2G.mjs.map +0 -7
- package/dist/lib/browser/DevtoolsOverviewContainer-EPD6EWT5.mjs +0 -25
- package/dist/lib/browser/DevtoolsOverviewContainer-EPD6EWT5.mjs.map +0 -7
- package/dist/lib/browser/SpaceGenerator-DANYBPYZ.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-JTIEFOWZ.mjs +0 -587
- package/dist/lib/browser/app-graph-builder-JTIEFOWZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-5XPIRNQS.mjs +0 -18
- package/dist/lib/browser/chunk-5XPIRNQS.mjs.map +0 -7
- package/dist/lib/browser/chunk-AJA6RYN3.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -133
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-context-NVAGLAJD.mjs +0 -16
- package/dist/lib/browser/react-context-NVAGLAJD.mjs.map +0 -7
- package/dist/lib/browser/react-surface-YLOWSIBU.mjs +0 -773
- package/dist/lib/browser/react-surface-YLOWSIBU.mjs.map +0 -7
- package/dist/lib/browser/settings-LSSWLM5I.mjs +0 -22
- package/dist/lib/browser/settings-LSSWLM5I.mjs.map +0 -7
- package/dist/types/src/components/Container.d.ts +0 -5
- package/dist/types/src/components/Container.d.ts.map +0 -1
- package/dist/types/src/components/DebugGraph.d.ts +0 -8
- package/dist/types/src/components/DebugGraph.d.ts.map +0 -1
- package/dist/types/src/components/DebugObjectPanel.d.ts +0 -7
- package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
- package/dist/types/src/components/DebugSettings.d.ts +0 -6
- package/dist/types/src/components/DebugSettings.d.ts.map +0 -1
- package/dist/types/src/components/DebugStatus.d.ts.map +0 -1
- package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
- package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +0 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts +0 -9
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +0 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -16
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +0 -1
- package/dist/types/src/components/Wireframe.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -63
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/components/Container.tsx +0 -15
- package/src/components/DebugGraph.tsx +0 -14
- package/src/components/DebugObjectPanel.tsx +0 -35
- package/src/components/DebugSettings.tsx +0 -159
- package/src/components/DevtoolsOverviewContainer.tsx +0 -20
- package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -54
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +0 -122
- /package/dist/types/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.d.ts +0 -0
- /package/dist/types/src/{components → containers/DebugStatus}/DebugStatus.d.ts +0 -0
- /package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +0 -0
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/capabilities/app-graph-builder.ts
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import { Capability } from "@dxos/app-framework";
|
|
6
|
+
import { AppCapabilities, AppNode, getSpaceIdFromPath } from "@dxos/app-toolkit";
|
|
7
|
+
import { ClientCapabilities } from "@dxos/plugin-client";
|
|
8
|
+
import { GraphBuilder, Node, NodeMatcher } from "@dxos/plugin-graph";
|
|
9
|
+
import { SPACE_TYPE } from "@dxos/plugin-space";
|
|
10
|
+
import { getParentId } from "@dxos/react-ui-attention";
|
|
11
|
+
import { meta } from "#meta";
|
|
12
|
+
import { Devtools } from "#types";
|
|
13
|
+
var DEVTOOLS_TYPE = `${meta.id}.devtools`;
|
|
14
|
+
var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
15
|
+
const extensions = yield* Effect.all([
|
|
16
|
+
GraphBuilder.createExtension({
|
|
17
|
+
id: "devtools",
|
|
18
|
+
match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(SPACE_TYPE)),
|
|
19
|
+
connector: (node, get) => Effect.gen(function* () {
|
|
20
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
21
|
+
const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
|
|
22
|
+
const layout = layoutAtom ? get(layoutAtom) : void 0;
|
|
23
|
+
const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : void 0;
|
|
24
|
+
const space = spaceId ? client.spaces.get(spaceId) : void 0;
|
|
25
|
+
const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
|
|
26
|
+
return [
|
|
27
|
+
Node.make({
|
|
28
|
+
id: Devtools.id,
|
|
29
|
+
data: null,
|
|
30
|
+
type: DEVTOOLS_TYPE,
|
|
31
|
+
properties: {
|
|
32
|
+
label: [
|
|
33
|
+
"devtools.label",
|
|
34
|
+
{
|
|
35
|
+
ns: meta.id
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
icon: "ph--hammer--regular",
|
|
39
|
+
disposition: "pin-end",
|
|
40
|
+
position: "fallback"
|
|
41
|
+
},
|
|
42
|
+
nodes: [
|
|
43
|
+
Node.make({
|
|
44
|
+
id: "app-graph",
|
|
45
|
+
type: `${meta.id}.app-graph`,
|
|
46
|
+
data: {
|
|
47
|
+
graph: graph?.graph,
|
|
48
|
+
root: node.id === Node.RootId ? node.id : getParentId(node.id)
|
|
49
|
+
},
|
|
50
|
+
properties: {
|
|
51
|
+
label: [
|
|
52
|
+
"debug-app-graph.label",
|
|
53
|
+
{
|
|
54
|
+
ns: meta.id
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
icon: "ph--graph--regular"
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
Node.make({
|
|
61
|
+
id: "tools-explorer",
|
|
62
|
+
data: Devtools.ToolsExplorer,
|
|
63
|
+
type: DEVTOOLS_TYPE,
|
|
64
|
+
properties: {
|
|
65
|
+
label: [
|
|
66
|
+
"debug-tools-explorer.label",
|
|
67
|
+
{
|
|
68
|
+
ns: meta.id
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
icon: "ph--toolbox--regular"
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
...space && node.type === SPACE_TYPE ? [
|
|
75
|
+
Node.make({
|
|
76
|
+
id: "debug",
|
|
77
|
+
type: `${meta.id}.space`,
|
|
78
|
+
data: {
|
|
79
|
+
space,
|
|
80
|
+
type: `${meta.id}.space`
|
|
81
|
+
},
|
|
82
|
+
properties: {
|
|
83
|
+
label: [
|
|
84
|
+
"generate-objects.label",
|
|
85
|
+
{
|
|
86
|
+
ns: meta.id
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
icon: "ph--dice-five--regular"
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
] : [],
|
|
93
|
+
Node.make({
|
|
94
|
+
id: Devtools.Client.id,
|
|
95
|
+
data: null,
|
|
96
|
+
type: DEVTOOLS_TYPE,
|
|
97
|
+
properties: {
|
|
98
|
+
label: [
|
|
99
|
+
"client.label",
|
|
100
|
+
{
|
|
101
|
+
ns: meta.id
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
icon: "ph--users--regular"
|
|
105
|
+
},
|
|
106
|
+
nodes: [
|
|
107
|
+
Node.make({
|
|
108
|
+
id: Devtools.Client.Config,
|
|
109
|
+
data: Devtools.Client.Config,
|
|
110
|
+
type: DEVTOOLS_TYPE,
|
|
111
|
+
properties: {
|
|
112
|
+
label: [
|
|
113
|
+
"config.label",
|
|
114
|
+
{
|
|
115
|
+
ns: meta.id
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
icon: "ph--gear--regular"
|
|
119
|
+
}
|
|
120
|
+
}),
|
|
121
|
+
Node.make({
|
|
122
|
+
id: Devtools.Client.Storage,
|
|
123
|
+
data: Devtools.Client.Storage,
|
|
124
|
+
type: DEVTOOLS_TYPE,
|
|
125
|
+
properties: {
|
|
126
|
+
label: [
|
|
127
|
+
"storage.label",
|
|
128
|
+
{
|
|
129
|
+
ns: meta.id
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
icon: "ph--hard-drives--regular"
|
|
133
|
+
}
|
|
134
|
+
}),
|
|
135
|
+
Node.make({
|
|
136
|
+
id: Devtools.Client.Logs,
|
|
137
|
+
data: Devtools.Client.Logs,
|
|
138
|
+
type: DEVTOOLS_TYPE,
|
|
139
|
+
properties: {
|
|
140
|
+
label: [
|
|
141
|
+
"logs.label",
|
|
142
|
+
{
|
|
143
|
+
ns: meta.id
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
icon: "ph--file-text--regular"
|
|
147
|
+
}
|
|
148
|
+
}),
|
|
149
|
+
Node.make({
|
|
150
|
+
id: Devtools.Client.Diagnostics,
|
|
151
|
+
data: Devtools.Client.Diagnostics,
|
|
152
|
+
type: DEVTOOLS_TYPE,
|
|
153
|
+
properties: {
|
|
154
|
+
label: [
|
|
155
|
+
"diagnostics.label",
|
|
156
|
+
{
|
|
157
|
+
ns: meta.id
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
icon: "ph--chart-line--regular"
|
|
161
|
+
}
|
|
162
|
+
})
|
|
163
|
+
]
|
|
164
|
+
}),
|
|
165
|
+
Node.make({
|
|
166
|
+
id: Devtools.Halo.id,
|
|
167
|
+
data: null,
|
|
168
|
+
type: DEVTOOLS_TYPE,
|
|
169
|
+
properties: {
|
|
170
|
+
label: [
|
|
171
|
+
"halo.label",
|
|
172
|
+
{
|
|
173
|
+
ns: meta.id
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
icon: "ph--identification-badge--regular"
|
|
177
|
+
},
|
|
178
|
+
nodes: [
|
|
179
|
+
Node.make({
|
|
180
|
+
id: Devtools.Halo.Identity,
|
|
181
|
+
data: Devtools.Halo.Identity,
|
|
182
|
+
type: DEVTOOLS_TYPE,
|
|
183
|
+
properties: {
|
|
184
|
+
label: [
|
|
185
|
+
"identity.label",
|
|
186
|
+
{
|
|
187
|
+
ns: meta.id
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
icon: "ph--identification-badge--regular"
|
|
191
|
+
}
|
|
192
|
+
}),
|
|
193
|
+
Node.make({
|
|
194
|
+
id: Devtools.Halo.Devices,
|
|
195
|
+
data: Devtools.Halo.Devices,
|
|
196
|
+
type: DEVTOOLS_TYPE,
|
|
197
|
+
properties: {
|
|
198
|
+
label: [
|
|
199
|
+
"devices.label",
|
|
200
|
+
{
|
|
201
|
+
ns: meta.id
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
icon: "ph--devices--regular"
|
|
205
|
+
}
|
|
206
|
+
}),
|
|
207
|
+
Node.make({
|
|
208
|
+
id: Devtools.Halo.Keyring,
|
|
209
|
+
data: Devtools.Halo.Keyring,
|
|
210
|
+
type: DEVTOOLS_TYPE,
|
|
211
|
+
properties: {
|
|
212
|
+
label: [
|
|
213
|
+
"keyring.label",
|
|
214
|
+
{
|
|
215
|
+
ns: meta.id
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
icon: "ph--key--regular"
|
|
219
|
+
}
|
|
220
|
+
}),
|
|
221
|
+
Node.make({
|
|
222
|
+
id: Devtools.Halo.Credentials,
|
|
223
|
+
data: Devtools.Halo.Credentials,
|
|
224
|
+
type: DEVTOOLS_TYPE,
|
|
225
|
+
properties: {
|
|
226
|
+
label: [
|
|
227
|
+
"credentials.label",
|
|
228
|
+
{
|
|
229
|
+
ns: meta.id
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
icon: "ph--credit-card--regular"
|
|
233
|
+
}
|
|
234
|
+
})
|
|
235
|
+
]
|
|
236
|
+
}),
|
|
237
|
+
Node.make({
|
|
238
|
+
id: Devtools.Echo.id,
|
|
239
|
+
data: null,
|
|
240
|
+
type: DEVTOOLS_TYPE,
|
|
241
|
+
properties: {
|
|
242
|
+
label: [
|
|
243
|
+
"echo.label",
|
|
244
|
+
{
|
|
245
|
+
ns: meta.id
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
icon: "ph--database--regular"
|
|
249
|
+
},
|
|
250
|
+
nodes: [
|
|
251
|
+
Node.make({
|
|
252
|
+
id: Devtools.Echo.Spaces,
|
|
253
|
+
data: Devtools.Echo.Spaces,
|
|
254
|
+
type: DEVTOOLS_TYPE,
|
|
255
|
+
properties: {
|
|
256
|
+
label: [
|
|
257
|
+
"spaces.label",
|
|
258
|
+
{
|
|
259
|
+
ns: meta.id
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
icon: "ph--graph--regular"
|
|
263
|
+
}
|
|
264
|
+
}),
|
|
265
|
+
Node.make({
|
|
266
|
+
id: Devtools.Echo.Space,
|
|
267
|
+
data: Devtools.Echo.Space,
|
|
268
|
+
type: DEVTOOLS_TYPE,
|
|
269
|
+
properties: {
|
|
270
|
+
label: [
|
|
271
|
+
"space.label",
|
|
272
|
+
{
|
|
273
|
+
ns: meta.id
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
icon: "ph--planet--regular"
|
|
277
|
+
}
|
|
278
|
+
}),
|
|
279
|
+
Node.make({
|
|
280
|
+
id: Devtools.Echo.Feeds,
|
|
281
|
+
data: Devtools.Echo.Feeds,
|
|
282
|
+
type: DEVTOOLS_TYPE,
|
|
283
|
+
properties: {
|
|
284
|
+
label: [
|
|
285
|
+
"feeds.label",
|
|
286
|
+
{
|
|
287
|
+
ns: meta.id
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
icon: "ph--list-bullets--regular"
|
|
291
|
+
}
|
|
292
|
+
}),
|
|
293
|
+
Node.make({
|
|
294
|
+
id: Devtools.Echo.Objects,
|
|
295
|
+
data: Devtools.Echo.Objects,
|
|
296
|
+
type: DEVTOOLS_TYPE,
|
|
297
|
+
properties: {
|
|
298
|
+
label: [
|
|
299
|
+
"objects.label",
|
|
300
|
+
{
|
|
301
|
+
ns: meta.id
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
icon: "ph--cube--regular"
|
|
305
|
+
}
|
|
306
|
+
}),
|
|
307
|
+
Node.make({
|
|
308
|
+
id: Devtools.Echo.Schema,
|
|
309
|
+
data: Devtools.Echo.Schema,
|
|
310
|
+
type: DEVTOOLS_TYPE,
|
|
311
|
+
properties: {
|
|
312
|
+
label: [
|
|
313
|
+
"schema.label",
|
|
314
|
+
{
|
|
315
|
+
ns: meta.id
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
icon: "ph--database--regular"
|
|
319
|
+
}
|
|
320
|
+
}),
|
|
321
|
+
Node.make({
|
|
322
|
+
id: Devtools.Echo.Automerge,
|
|
323
|
+
data: Devtools.Echo.Automerge,
|
|
324
|
+
type: DEVTOOLS_TYPE,
|
|
325
|
+
properties: {
|
|
326
|
+
label: [
|
|
327
|
+
"automerge.label",
|
|
328
|
+
{
|
|
329
|
+
ns: meta.id
|
|
330
|
+
}
|
|
331
|
+
],
|
|
332
|
+
icon: "ph--gear-six--regular"
|
|
333
|
+
}
|
|
334
|
+
}),
|
|
335
|
+
Node.make({
|
|
336
|
+
id: Devtools.Echo.Queues,
|
|
337
|
+
data: Devtools.Echo.Queues,
|
|
338
|
+
type: DEVTOOLS_TYPE,
|
|
339
|
+
properties: {
|
|
340
|
+
label: [
|
|
341
|
+
"queues.label",
|
|
342
|
+
{
|
|
343
|
+
ns: meta.id
|
|
344
|
+
}
|
|
345
|
+
],
|
|
346
|
+
icon: "ph--queue--regular"
|
|
347
|
+
}
|
|
348
|
+
}),
|
|
349
|
+
Node.make({
|
|
350
|
+
id: Devtools.Echo.Members,
|
|
351
|
+
data: Devtools.Echo.Members,
|
|
352
|
+
type: DEVTOOLS_TYPE,
|
|
353
|
+
properties: {
|
|
354
|
+
label: [
|
|
355
|
+
"members.label",
|
|
356
|
+
{
|
|
357
|
+
ns: meta.id
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
icon: "ph--users--regular"
|
|
361
|
+
}
|
|
362
|
+
}),
|
|
363
|
+
Node.make({
|
|
364
|
+
id: Devtools.Echo.Metadata,
|
|
365
|
+
data: Devtools.Echo.Metadata,
|
|
366
|
+
type: DEVTOOLS_TYPE,
|
|
367
|
+
properties: {
|
|
368
|
+
label: [
|
|
369
|
+
"metadata.label",
|
|
370
|
+
{
|
|
371
|
+
ns: meta.id
|
|
372
|
+
}
|
|
373
|
+
],
|
|
374
|
+
icon: "ph--hard-drive--regular"
|
|
375
|
+
}
|
|
376
|
+
})
|
|
377
|
+
]
|
|
378
|
+
}),
|
|
379
|
+
Node.make({
|
|
380
|
+
id: Devtools.Mesh.id,
|
|
381
|
+
data: null,
|
|
382
|
+
type: DEVTOOLS_TYPE,
|
|
383
|
+
properties: {
|
|
384
|
+
label: [
|
|
385
|
+
"mesh.label",
|
|
386
|
+
{
|
|
387
|
+
ns: meta.id
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
icon: "ph--graph--regular"
|
|
391
|
+
},
|
|
392
|
+
nodes: [
|
|
393
|
+
Node.make({
|
|
394
|
+
id: Devtools.Mesh.Signal,
|
|
395
|
+
data: Devtools.Mesh.Signal,
|
|
396
|
+
type: DEVTOOLS_TYPE,
|
|
397
|
+
properties: {
|
|
398
|
+
label: [
|
|
399
|
+
"signal.label",
|
|
400
|
+
{
|
|
401
|
+
ns: meta.id
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
icon: "ph--wifi-high--regular"
|
|
405
|
+
}
|
|
406
|
+
}),
|
|
407
|
+
Node.make({
|
|
408
|
+
id: Devtools.Mesh.Swarm,
|
|
409
|
+
data: Devtools.Mesh.Swarm,
|
|
410
|
+
type: DEVTOOLS_TYPE,
|
|
411
|
+
properties: {
|
|
412
|
+
label: [
|
|
413
|
+
"swarm.label",
|
|
414
|
+
{
|
|
415
|
+
ns: meta.id
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
icon: "ph--users-three--regular"
|
|
419
|
+
}
|
|
420
|
+
}),
|
|
421
|
+
Node.make({
|
|
422
|
+
id: Devtools.Mesh.Network,
|
|
423
|
+
data: Devtools.Mesh.Network,
|
|
424
|
+
type: DEVTOOLS_TYPE,
|
|
425
|
+
properties: {
|
|
426
|
+
label: [
|
|
427
|
+
"network.label",
|
|
428
|
+
{
|
|
429
|
+
ns: meta.id
|
|
430
|
+
}
|
|
431
|
+
],
|
|
432
|
+
icon: "ph--polygon--regular"
|
|
433
|
+
}
|
|
434
|
+
})
|
|
435
|
+
]
|
|
436
|
+
}),
|
|
437
|
+
Node.make({
|
|
438
|
+
id: Devtools.Edge.id,
|
|
439
|
+
data: null,
|
|
440
|
+
type: DEVTOOLS_TYPE,
|
|
441
|
+
properties: {
|
|
442
|
+
label: [
|
|
443
|
+
"edge.label",
|
|
444
|
+
{
|
|
445
|
+
ns: meta.id
|
|
446
|
+
}
|
|
447
|
+
],
|
|
448
|
+
icon: "ph--cloud--regular"
|
|
449
|
+
},
|
|
450
|
+
nodes: [
|
|
451
|
+
Node.make({
|
|
452
|
+
id: Devtools.Edge.Dashboard,
|
|
453
|
+
data: Devtools.Edge.Dashboard,
|
|
454
|
+
type: DEVTOOLS_TYPE,
|
|
455
|
+
properties: {
|
|
456
|
+
label: [
|
|
457
|
+
"dashboard.label",
|
|
458
|
+
{
|
|
459
|
+
ns: meta.id
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
icon: "ph--computer-tower--regular"
|
|
463
|
+
}
|
|
464
|
+
}),
|
|
465
|
+
Node.make({
|
|
466
|
+
id: Devtools.Edge.Workflows,
|
|
467
|
+
data: Devtools.Edge.Workflows,
|
|
468
|
+
type: DEVTOOLS_TYPE,
|
|
469
|
+
properties: {
|
|
470
|
+
label: [
|
|
471
|
+
"workflows.label",
|
|
472
|
+
{
|
|
473
|
+
ns: meta.id
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
icon: "ph--function--regular"
|
|
477
|
+
}
|
|
478
|
+
}),
|
|
479
|
+
Node.make({
|
|
480
|
+
id: Devtools.Edge.Traces,
|
|
481
|
+
data: Devtools.Edge.Traces,
|
|
482
|
+
type: DEVTOOLS_TYPE,
|
|
483
|
+
properties: {
|
|
484
|
+
label: [
|
|
485
|
+
"traces.label",
|
|
486
|
+
{
|
|
487
|
+
ns: meta.id
|
|
488
|
+
}
|
|
489
|
+
],
|
|
490
|
+
icon: "ph--line-segments--regular"
|
|
491
|
+
}
|
|
492
|
+
}),
|
|
493
|
+
Node.make({
|
|
494
|
+
id: Devtools.Edge.Testing,
|
|
495
|
+
data: Devtools.Edge.Testing,
|
|
496
|
+
type: DEVTOOLS_TYPE,
|
|
497
|
+
properties: {
|
|
498
|
+
label: [
|
|
499
|
+
"testing.label",
|
|
500
|
+
{
|
|
501
|
+
ns: meta.id
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
icon: "ph--flask--regular"
|
|
505
|
+
}
|
|
506
|
+
})
|
|
507
|
+
]
|
|
508
|
+
})
|
|
509
|
+
]
|
|
510
|
+
})
|
|
511
|
+
];
|
|
512
|
+
})
|
|
513
|
+
}),
|
|
514
|
+
// Debug object companion.
|
|
515
|
+
GraphBuilder.createExtension({
|
|
516
|
+
id: "debug-object",
|
|
517
|
+
match: NodeMatcher.whenEchoObject,
|
|
518
|
+
connector: () => Effect.succeed([
|
|
519
|
+
AppNode.makeCompanion({
|
|
520
|
+
id: "debug",
|
|
521
|
+
label: [
|
|
522
|
+
"debug.label",
|
|
523
|
+
{
|
|
524
|
+
ns: meta.id
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
icon: "ph--bug--regular",
|
|
528
|
+
data: "debug",
|
|
529
|
+
position: "fallback"
|
|
530
|
+
})
|
|
531
|
+
])
|
|
532
|
+
}),
|
|
533
|
+
// Devtools deck companion.
|
|
534
|
+
GraphBuilder.createExtension({
|
|
535
|
+
id: "devtools-overview",
|
|
536
|
+
match: NodeMatcher.whenRoot,
|
|
537
|
+
connector: () => Effect.succeed([
|
|
538
|
+
AppNode.makeDeckCompanion({
|
|
539
|
+
id: "devtools",
|
|
540
|
+
label: [
|
|
541
|
+
"devtools-overview.label",
|
|
542
|
+
{
|
|
543
|
+
ns: meta.id
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
icon: "ph--equalizer--regular",
|
|
547
|
+
data: "devtools",
|
|
548
|
+
position: "fallback"
|
|
549
|
+
})
|
|
550
|
+
])
|
|
551
|
+
}),
|
|
552
|
+
// Object explorer.
|
|
553
|
+
GraphBuilder.createExtension({
|
|
554
|
+
id: "space-objects",
|
|
555
|
+
match: NodeMatcher.whenRoot,
|
|
556
|
+
connector: () => Effect.succeed([
|
|
557
|
+
AppNode.makeDeckCompanion({
|
|
558
|
+
id: "space-objects",
|
|
559
|
+
label: [
|
|
560
|
+
"space-objects.label",
|
|
561
|
+
{
|
|
562
|
+
ns: meta.id
|
|
563
|
+
}
|
|
564
|
+
],
|
|
565
|
+
icon: "ph--cube--regular",
|
|
566
|
+
data: "space-objects",
|
|
567
|
+
position: "fallback"
|
|
568
|
+
})
|
|
569
|
+
])
|
|
570
|
+
})
|
|
571
|
+
]);
|
|
572
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
573
|
+
}));
|
|
574
|
+
export {
|
|
575
|
+
app_graph_builder_default as default
|
|
576
|
+
};
|
|
577
|
+
//# sourceMappingURL=app-graph-builder-YPYHL2K5.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities, AppNode, getSpaceIdFromPath } from '@dxos/app-toolkit';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';\nimport { SPACE_TYPE } from '@dxos/plugin-space';\nimport { getParentId } from '@dxos/react-ui-attention';\n\nimport { meta } from '#meta';\nimport { Devtools } from '#types';\n\nconst DEVTOOLS_TYPE = `${meta.id}.devtools`;\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* Effect.all([\n GraphBuilder.createExtension({\n id: 'devtools',\n match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(SPACE_TYPE)),\n connector: (node, get) =>\n Effect.gen(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];\n const layout = layoutAtom ? get(layoutAtom) : undefined;\n const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : undefined;\n const space = spaceId ? client.spaces.get(spaceId) : undefined;\n const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));\n\n return [\n Node.make({\n id: Devtools.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['devtools.label', { ns: meta.id }],\n icon: 'ph--hammer--regular',\n disposition: 'pin-end',\n position: 'fallback',\n },\n nodes: [\n Node.make({\n id: 'app-graph',\n type: `${meta.id}.app-graph`,\n data: { graph: graph?.graph, root: node.id === Node.RootId ? node.id : getParentId(node.id) },\n properties: {\n label: ['debug-app-graph.label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n }),\n Node.make({\n id: 'tools-explorer',\n data: Devtools.ToolsExplorer,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['debug-tools-explorer.label', { ns: meta.id }],\n icon: 'ph--toolbox--regular',\n },\n }),\n ...(space && node.type === SPACE_TYPE\n ? [\n Node.make({\n id: 'debug',\n type: `${meta.id}.space`,\n data: { space, type: `${meta.id}.space` },\n properties: {\n label: ['generate-objects.label', { ns: meta.id }],\n icon: 'ph--dice-five--regular',\n },\n }),\n ]\n : []),\n Node.make({\n id: Devtools.Client.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['client.label', { ns: meta.id }],\n icon: 'ph--users--regular',\n },\n nodes: [\n Node.make({\n id: Devtools.Client.Config,\n data: Devtools.Client.Config,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['config.label', { ns: meta.id }],\n icon: 'ph--gear--regular',\n },\n }),\n Node.make({\n id: Devtools.Client.Storage,\n data: Devtools.Client.Storage,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['storage.label', { ns: meta.id }],\n icon: 'ph--hard-drives--regular',\n },\n }),\n Node.make({\n id: Devtools.Client.Logs,\n data: Devtools.Client.Logs,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['logs.label', { ns: meta.id }],\n icon: 'ph--file-text--regular',\n },\n }),\n Node.make({\n id: Devtools.Client.Diagnostics,\n data: Devtools.Client.Diagnostics,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['diagnostics.label', { ns: meta.id }],\n icon: 'ph--chart-line--regular',\n },\n }),\n ],\n }),\n Node.make({\n id: Devtools.Halo.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['halo.label', { ns: meta.id }],\n icon: 'ph--identification-badge--regular',\n },\n nodes: [\n Node.make({\n id: Devtools.Halo.Identity,\n data: Devtools.Halo.Identity,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['identity.label', { ns: meta.id }],\n icon: 'ph--identification-badge--regular',\n },\n }),\n Node.make({\n id: Devtools.Halo.Devices,\n data: Devtools.Halo.Devices,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['devices.label', { ns: meta.id }],\n icon: 'ph--devices--regular',\n },\n }),\n Node.make({\n id: Devtools.Halo.Keyring,\n data: Devtools.Halo.Keyring,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['keyring.label', { ns: meta.id }],\n icon: 'ph--key--regular',\n },\n }),\n Node.make({\n id: Devtools.Halo.Credentials,\n data: Devtools.Halo.Credentials,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['credentials.label', { ns: meta.id }],\n icon: 'ph--credit-card--regular',\n },\n }),\n ],\n }),\n Node.make({\n id: Devtools.Echo.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['echo.label', { ns: meta.id }],\n icon: 'ph--database--regular',\n },\n nodes: [\n Node.make({\n id: Devtools.Echo.Spaces,\n data: Devtools.Echo.Spaces,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['spaces.label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Space,\n data: Devtools.Echo.Space,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['space.label', { ns: meta.id }],\n icon: 'ph--planet--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Feeds,\n data: Devtools.Echo.Feeds,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['feeds.label', { ns: meta.id }],\n icon: 'ph--list-bullets--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Objects,\n data: Devtools.Echo.Objects,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['objects.label', { ns: meta.id }],\n icon: 'ph--cube--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Schema,\n data: Devtools.Echo.Schema,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['schema.label', { ns: meta.id }],\n icon: 'ph--database--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Automerge,\n data: Devtools.Echo.Automerge,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['automerge.label', { ns: meta.id }],\n icon: 'ph--gear-six--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Queues,\n data: Devtools.Echo.Queues,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['queues.label', { ns: meta.id }],\n icon: 'ph--queue--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Members,\n data: Devtools.Echo.Members,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['members.label', { ns: meta.id }],\n icon: 'ph--users--regular',\n },\n }),\n Node.make({\n id: Devtools.Echo.Metadata,\n data: Devtools.Echo.Metadata,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['metadata.label', { ns: meta.id }],\n icon: 'ph--hard-drive--regular',\n },\n }),\n ],\n }),\n Node.make({\n id: Devtools.Mesh.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['mesh.label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n nodes: [\n Node.make({\n id: Devtools.Mesh.Signal,\n data: Devtools.Mesh.Signal,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['signal.label', { ns: meta.id }],\n icon: 'ph--wifi-high--regular',\n },\n }),\n Node.make({\n id: Devtools.Mesh.Swarm,\n data: Devtools.Mesh.Swarm,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['swarm.label', { ns: meta.id }],\n icon: 'ph--users-three--regular',\n },\n }),\n Node.make({\n id: Devtools.Mesh.Network,\n data: Devtools.Mesh.Network,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['network.label', { ns: meta.id }],\n icon: 'ph--polygon--regular',\n },\n }),\n ],\n }),\n Node.make({\n id: Devtools.Edge.id,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['edge.label', { ns: meta.id }],\n icon: 'ph--cloud--regular',\n },\n nodes: [\n Node.make({\n id: Devtools.Edge.Dashboard,\n data: Devtools.Edge.Dashboard,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['dashboard.label', { ns: meta.id }],\n icon: 'ph--computer-tower--regular',\n },\n }),\n Node.make({\n id: Devtools.Edge.Workflows,\n data: Devtools.Edge.Workflows,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['workflows.label', { ns: meta.id }],\n icon: 'ph--function--regular',\n },\n }),\n Node.make({\n id: Devtools.Edge.Traces,\n data: Devtools.Edge.Traces,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['traces.label', { ns: meta.id }],\n icon: 'ph--line-segments--regular',\n },\n }),\n Node.make({\n id: Devtools.Edge.Testing,\n data: Devtools.Edge.Testing,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['testing.label', { ns: meta.id }],\n icon: 'ph--flask--regular',\n },\n }),\n ],\n }),\n ],\n }),\n ];\n }),\n }),\n\n // Debug object companion.\n GraphBuilder.createExtension({\n id: 'debug-object',\n match: NodeMatcher.whenEchoObject,\n connector: () =>\n Effect.succeed([\n AppNode.makeCompanion({\n id: 'debug',\n label: ['debug.label', { ns: meta.id }],\n icon: 'ph--bug--regular',\n data: 'debug',\n position: 'fallback',\n }),\n ]),\n }),\n\n // Devtools deck companion.\n GraphBuilder.createExtension({\n id: 'devtools-overview',\n match: NodeMatcher.whenRoot,\n connector: () =>\n Effect.succeed([\n AppNode.makeDeckCompanion({\n id: 'devtools',\n label: ['devtools-overview.label', { ns: meta.id }],\n icon: 'ph--equalizer--regular',\n data: 'devtools' as const,\n position: 'fallback',\n }),\n ]),\n }),\n\n // Object explorer.\n GraphBuilder.createExtension({\n id: 'space-objects',\n match: NodeMatcher.whenRoot,\n connector: () =>\n Effect.succeed([\n AppNode.makeDeckCompanion({\n id: 'space-objects',\n label: ['space-objects.label', { ns: meta.id }],\n icon: 'ph--cube--regular',\n data: 'space-objects' as const,\n position: 'fallback',\n }),\n ]),\n }),\n ]);\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiBC,SAASC,0BAA0B;AAC7D,SAASC,0BAA0B;AACnC,SAASC,cAAcC,MAAMC,mBAAmB;AAChD,SAASC,kBAAkB;AAC3B,SAASC,mBAAmB;AAE5B,SAASC,YAAY;AACrB,SAASC,gBAAgB;AAEzB,IAAMC,gBAAgB,GAAGF,KAAKG,EAAE;AAEhC,IAAA,4BAAeb,WAAWc,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAcC,WAAI;IACnCZ,aAAaa,gBAAgB;MAC3BL,IAAI;MACJM,OAAOZ,YAAYa,QAAQb,YAAYc,UAAUd,YAAYe,aAAad,UAAAA,CAAAA;MAC1Ee,WAAW,CAACC,MAAMC,QACTC,WAAI,aAAA;AACT,cAAMC,SAAS,OAAO3B,WAAWyB,IAAIrB,mBAAmBwB,MAAM;AAC9D,cAAMC,aAAaJ,IAAI,OAAOzB,WAAW8B,KAAK7B,gBAAgB8B,MAAM,CAAA,EAAG,CAAA;AACvE,cAAMC,SAASH,aAAaJ,IAAII,UAAAA,IAAcI;AAC9C,cAAMC,UAAUF,QAAQG,YAAYhC,mBAAmB6B,OAAOG,SAAS,IAAIF;AAC3E,cAAMG,QAAQF,UAAUP,OAAOU,OAAOZ,IAAIS,OAAAA,IAAWD;AACrD,cAAM,CAACK,KAAAA,IAASb,IAAI,OAAOzB,WAAW8B,KAAK7B,gBAAgBsC,QAAQ,CAAA;AAEnE,eAAO;UACLjC,KAAKkC,KAAK;YACR3B,IAAIF,SAASE;YACb4B,MAAM;YACNC,MAAM9B;YACN+B,YAAY;cACVC,OAAO;gBAAC;gBAAkB;kBAAEC,IAAInC,KAAKG;g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F,kBAAkB;UACxBvE,IAAI;UACJ+B,OAAO;YAAC;YAA2B;cAAEC,IAAInC,KAAKG;YAAG;;UACjDiC,MAAM;UACNL,MAAM;UACNO,UAAU;QACZ,CAAA;OACD;IACL,CAAA;;IAGA3C,aAAaa,gBAAgB;MAC3BL,IAAI;MACJM,OAAOZ,YAAYc;MACnBE,WAAW,MACF2D,eAAQ;QACbhF,QAAQkF,kBAAkB;UACxBvE,IAAI;UACJ+B,OAAO;YAAC;YAAuB;cAAEC,IAAInC,KAAKG;YAAG;;UAC7CiC,MAAM;UACNL,MAAM;UACNO,UAAU;QACZ,CAAA;OACD;IACL,CAAA;GACD;AAED,SAAOhD,WAAWqF,YAAYpF,gBAAgBqF,iBAAiBtE,UAAAA;AACjE,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capability", "AppCapabilities", "AppNode", "getSpaceIdFromPath", "ClientCapabilities", "GraphBuilder", "Node", "NodeMatcher", "SPACE_TYPE", "getParentId", "meta", "Devtools", "DEVTOOLS_TYPE", "id", "makeModule", "fnUntraced", "extensions", "all", "createExtension", "match", "whenAny", "whenRoot", "whenNodeType", "connector", "node", "get", "gen", "client", "Client", "layoutAtom", "atom", "Layout", "layout", "undefined", "spaceId", "workspace", "space", "spaces", "graph", "AppGraph", "make", "data", "type", "properties", "label", "ns", "icon", "disposition", "position", "nodes", "root", "RootId", "ToolsExplorer", "Config", "Storage", "Logs", "Diagnostics", "Halo", "Identity", "Devices", "Keyring", "Credentials", "Echo", "Spaces", "Space", "Feeds", "Objects", "Schema", "Automerge", "Queues", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Edge", "Dashboard", "Workflows", "Traces", "Testing", "whenEchoObject", "succeed", "makeCompanion", "makeDeckCompanion", "contributes", "AppGraphBuilder"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/capabilities/index.ts
|
|
4
|
+
import { Capability } from "@dxos/app-framework";
|
|
5
|
+
var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("../app-graph-builder-YPYHL2K5.mjs"));
|
|
6
|
+
var ReactContext = Capability.lazy("ReactContext", () => import("../react-context-MUZ3KVLU.mjs"));
|
|
7
|
+
var ReactSurface = Capability.lazy("ReactSurface", () => import("../react-surface-NH2H63KW.mjs"));
|
|
8
|
+
var DebugSettings = Capability.lazy("DebugSettings", () => import("../settings-MPM6YUP4.mjs"));
|
|
9
|
+
export {
|
|
10
|
+
AppGraphBuilder,
|
|
11
|
+
DebugSettings,
|
|
12
|
+
ReactContext,
|
|
13
|
+
ReactSurface
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/capabilities/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));\nexport const ReactContext = Capability.lazy('ReactContext', () => import('./react-context'));\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\nexport const DebugSettings = Capability.lazy('DebugSettings', () => import('./settings'));\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,kBAAkBD,WAAWE,KAAK,mBAAmB,MAAM,OAAO,mCAAA,CAAA;AACxE,IAAMC,eAAeH,WAAWE,KAAK,gBAAgB,MAAM,OAAO,+BAAA,CAAA;AAClE,IAAME,eAAeJ,WAAWE,KAAK,gBAAgB,MAAM,OAAO,+BAAA,CAAA;AAClE,IAAMG,gBAAgBL,WAAWE,KAAK,iBAAiB,MAAM,OAAO,0BAAA,CAAA;",
|
|
6
|
+
"names": ["Capability", "AppGraphBuilder", "lazy", "ReactContext", "ReactSurface", "DebugSettings"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/meta.ts
|
|
2
|
+
import { trim } from "@dxos/util";
|
|
3
|
+
var meta = {
|
|
4
|
+
id: "org.dxos.plugin.debug",
|
|
5
|
+
name: "Debug",
|
|
6
|
+
description: trim`
|
|
7
|
+
Comprehensive developer toolkit for troubleshooting applications, generating test data, and exploring automation capabilities.
|
|
8
|
+
Inspect objects, monitor events, and debug plugin behavior in real-time.
|
|
9
|
+
`,
|
|
10
|
+
icon: "ph--bug--regular",
|
|
11
|
+
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-debug",
|
|
12
|
+
screenshots: [
|
|
13
|
+
"https://dxos.network/plugin-details-debug-dark.png"
|
|
14
|
+
]
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
meta
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=chunk-3OGPOE7H.mjs.map
|