@dxos/plugin-debug 0.8.3 → 0.8.4-main.1068cf700f
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/DebugGraph-6VMEOKEV.mjs +15 -0
- package/dist/lib/browser/DebugGraph-6VMEOKEV.mjs.map +7 -0
- package/dist/lib/browser/DevtoolsOverviewContainer-2C6XMJ3L.mjs +19 -0
- package/dist/lib/browser/DevtoolsOverviewContainer-2C6XMJ3L.mjs.map +7 -0
- package/dist/lib/browser/SpaceGenerator-W3LJORYT.mjs +1152 -0
- package/dist/lib/browser/SpaceGenerator-W3LJORYT.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-DEBTVBQG.mjs +599 -0
- package/dist/lib/browser/app-graph-builder-DEBTVBQG.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KS3YBEL7.mjs → chunk-4UFQXPP7.mjs} +13 -3
- package/dist/lib/browser/chunk-4UFQXPP7.mjs.map +7 -0
- package/dist/lib/browser/chunk-A5H5GRV6.mjs +20 -0
- package/dist/lib/browser/chunk-A5H5GRV6.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +42 -46
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-context-I3USIAF6.mjs +17 -0
- package/dist/lib/browser/react-context-I3USIAF6.mjs.map +7 -0
- package/dist/lib/browser/react-surface-FMVC5GPV.mjs +758 -0
- package/dist/lib/browser/react-surface-FMVC5GPV.mjs.map +7 -0
- package/dist/lib/browser/settings-SLTQJJNF.mjs +32 -0
- package/dist/lib/browser/settings-SLTQJJNF.mjs.map +7 -0
- package/dist/types/src/DebugPlugin.d.ts +2 -1
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +4 -8
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context/index.d.ts +7 -0
- package/dist/types/src/capabilities/react-context/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-context/react-context.d.ts +10 -0
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +3 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/components/DebugGraph.d.ts +9 -0
- package/dist/types/src/components/DebugGraph.d.ts.map +1 -0
- package/dist/types/src/components/DebugObjectPanel.d.ts +1 -1
- package/dist/types/src/components/DebugObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/DebugSettings.d.ts +4 -2
- package/dist/types/src/components/DebugSettings.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +6 -4
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts +1 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +13 -4
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.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 +5 -8
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/Wireframe.d.ts +2 -2
- package/dist/types/src/components/Wireframe.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +4 -3
- package/dist/types/src/components/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/translations.d.ts +62 -60
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +6 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +79 -71
- package/src/DebugPlugin.tsx +19 -34
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +421 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/index.ts +4 -6
- package/src/capabilities/react-context/index.ts +7 -0
- package/src/capabilities/react-context/react-context.tsx +20 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +411 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +31 -0
- package/src/components/DebugGraph.tsx +15 -0
- package/src/components/DebugObjectPanel.tsx +6 -9
- package/src/components/DebugSettings.tsx +109 -75
- package/src/components/DebugStatus.tsx +2 -2
- package/src/components/DevtoolsOverviewContainer.tsx +2 -2
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +40 -41
- package/src/components/SpaceGenerator/SchemaTable.tsx +2 -2
- package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +17 -15
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +41 -94
- package/src/components/SpaceGenerator/draw-util.ts +5 -5
- package/src/components/SpaceGenerator/presets.ts +537 -259
- package/src/components/Wireframe.tsx +6 -6
- package/src/components/index.ts +4 -1
- package/src/meta.ts +8 -7
- package/src/translations.ts +9 -5
- package/src/types.ts +9 -1
- package/dist/lib/browser/DebugApp-WSEJPCKY.mjs +0 -225
- package/dist/lib/browser/DebugApp-WSEJPCKY.mjs.map +0 -7
- package/dist/lib/browser/DevtoolsOverviewContainer-IIIWO77Q.mjs +0 -25
- package/dist/lib/browser/DevtoolsOverviewContainer-IIIWO77Q.mjs.map +0 -7
- package/dist/lib/browser/SpaceGenerator-VB6IB2LL.mjs +0 -1238
- package/dist/lib/browser/SpaceGenerator-VB6IB2LL.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-6HHJMKVU.mjs +0 -597
- package/dist/lib/browser/app-graph-builder-6HHJMKVU.mjs.map +0 -7
- package/dist/lib/browser/chunk-47JOZTT2.mjs +0 -18
- package/dist/lib/browser/chunk-47JOZTT2.mjs.map +0 -7
- package/dist/lib/browser/chunk-KS3YBEL7.mjs.map +0 -7
- package/dist/lib/browser/react-context-ZQRD2WG2.mjs +0 -16
- package/dist/lib/browser/react-context-ZQRD2WG2.mjs.map +0 -7
- package/dist/lib/browser/react-surface-UI6OK73H.mjs +0 -768
- package/dist/lib/browser/react-surface-UI6OK73H.mjs.map +0 -7
- package/dist/lib/browser/settings-SXQWSIM4.mjs +0 -22
- package/dist/lib/browser/settings-SXQWSIM4.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context.d.ts +0 -8
- package/dist/types/src/capabilities/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/dist/types/src/components/DebugApp/DebugApp.d.ts +0 -6
- package/dist/types/src/components/DebugApp/DebugApp.d.ts.map +0 -1
- package/dist/types/src/components/DebugApp/Tree.d.ts +0 -18
- package/dist/types/src/components/DebugApp/Tree.d.ts.map +0 -1
- package/dist/types/src/components/DebugApp/index.d.ts +0 -3
- package/dist/types/src/components/DebugApp/index.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -457
- package/src/capabilities/react-context.tsx +0 -16
- package/src/capabilities/react-surface.tsx +0 -397
- package/src/capabilities/settings.ts +0 -19
- package/src/components/DebugApp/DebugApp.tsx +0 -77
- package/src/components/DebugApp/Tree.tsx +0 -103
- package/src/components/DebugApp/index.ts +0 -7
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Devtools
|
|
3
|
+
} from "./chunk-4UFQXPP7.mjs";
|
|
4
|
+
import {
|
|
5
|
+
meta
|
|
6
|
+
} from "./chunk-A5H5GRV6.mjs";
|
|
7
|
+
|
|
8
|
+
// src/capabilities/app-graph-builder/app-graph-builder.ts
|
|
9
|
+
import * as Effect from "effect/Effect";
|
|
10
|
+
import { Capability } from "@dxos/app-framework";
|
|
11
|
+
import { AppCapabilities } from "@dxos/app-toolkit";
|
|
12
|
+
import { Obj } from "@dxos/echo";
|
|
13
|
+
import { ClientCapabilities } from "@dxos/plugin-client";
|
|
14
|
+
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
|
|
15
|
+
import { GraphBuilder, Node, NodeMatcher } from "@dxos/plugin-graph";
|
|
16
|
+
import { meta as spaceMeta } from "@dxos/plugin-space";
|
|
17
|
+
import { parseId } from "@dxos/react-client/echo";
|
|
18
|
+
var DEVTOOLS_TYPE = `${meta.id}/devtools`;
|
|
19
|
+
var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
20
|
+
const extensions = yield* Effect.all([
|
|
21
|
+
// Devtools node.
|
|
22
|
+
GraphBuilder.createExtension({
|
|
23
|
+
id: `${meta.id}/devtools`,
|
|
24
|
+
match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}/settings`)),
|
|
25
|
+
connector: (node, get) => Effect.gen(function* () {
|
|
26
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
27
|
+
const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
|
|
28
|
+
const layout = layoutAtom ? get(layoutAtom) : void 0;
|
|
29
|
+
const { spaceId } = parseId(layout?.workspace);
|
|
30
|
+
const space = spaceId ? client.spaces.get(spaceId) : void 0;
|
|
31
|
+
const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
|
|
32
|
+
return [
|
|
33
|
+
{
|
|
34
|
+
id: `${Devtools.id}-${node.id}`,
|
|
35
|
+
data: null,
|
|
36
|
+
type: DEVTOOLS_TYPE,
|
|
37
|
+
properties: {
|
|
38
|
+
label: [
|
|
39
|
+
"devtools label",
|
|
40
|
+
{
|
|
41
|
+
ns: meta.id
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
icon: "ph--hammer--regular",
|
|
45
|
+
disposition: "pin-end",
|
|
46
|
+
position: "fallback"
|
|
47
|
+
},
|
|
48
|
+
nodes: [
|
|
49
|
+
...space && node.type === `${spaceMeta.id}/settings` ? [
|
|
50
|
+
{
|
|
51
|
+
id: `debug-${node.id}`,
|
|
52
|
+
type: `${meta.id}/space`,
|
|
53
|
+
data: {
|
|
54
|
+
space,
|
|
55
|
+
type: `${meta.id}/space`
|
|
56
|
+
},
|
|
57
|
+
properties: {
|
|
58
|
+
label: [
|
|
59
|
+
"debug label",
|
|
60
|
+
{
|
|
61
|
+
ns: meta.id
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
icon: "ph--bug--regular"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
] : [],
|
|
68
|
+
{
|
|
69
|
+
id: `app-graph-${node.id}`,
|
|
70
|
+
type: `${meta.id}/app-graph`,
|
|
71
|
+
data: {
|
|
72
|
+
graph: graph?.graph,
|
|
73
|
+
root: space ? space.id : Node.RootId
|
|
74
|
+
},
|
|
75
|
+
properties: {
|
|
76
|
+
label: [
|
|
77
|
+
"debug app graph label",
|
|
78
|
+
{
|
|
79
|
+
ns: meta.id
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
icon: "ph--graph--regular"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: `${Devtools.Client.id}-${node.id}`,
|
|
87
|
+
data: null,
|
|
88
|
+
type: DEVTOOLS_TYPE,
|
|
89
|
+
properties: {
|
|
90
|
+
label: [
|
|
91
|
+
"client label",
|
|
92
|
+
{
|
|
93
|
+
ns: meta.id
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
icon: "ph--users--regular"
|
|
97
|
+
},
|
|
98
|
+
nodes: [
|
|
99
|
+
{
|
|
100
|
+
id: `${Devtools.Client.Config}-${node.id}`,
|
|
101
|
+
data: Devtools.Client.Config,
|
|
102
|
+
type: DEVTOOLS_TYPE,
|
|
103
|
+
properties: {
|
|
104
|
+
label: [
|
|
105
|
+
"config label",
|
|
106
|
+
{
|
|
107
|
+
ns: meta.id
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
icon: "ph--gear--regular"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: `${Devtools.Client.Storage}-${node.id}`,
|
|
115
|
+
data: Devtools.Client.Storage,
|
|
116
|
+
type: DEVTOOLS_TYPE,
|
|
117
|
+
properties: {
|
|
118
|
+
label: [
|
|
119
|
+
"storage label",
|
|
120
|
+
{
|
|
121
|
+
ns: meta.id
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
icon: "ph--hard-drives--regular"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: `${Devtools.Client.Logs}-${node.id}`,
|
|
129
|
+
data: Devtools.Client.Logs,
|
|
130
|
+
type: DEVTOOLS_TYPE,
|
|
131
|
+
properties: {
|
|
132
|
+
label: [
|
|
133
|
+
"logs label",
|
|
134
|
+
{
|
|
135
|
+
ns: meta.id
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
icon: "ph--file-text--regular"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: `${Devtools.Client.Diagnostics}-${node.id}`,
|
|
143
|
+
data: Devtools.Client.Diagnostics,
|
|
144
|
+
type: DEVTOOLS_TYPE,
|
|
145
|
+
properties: {
|
|
146
|
+
label: [
|
|
147
|
+
"diagnostics label",
|
|
148
|
+
{
|
|
149
|
+
ns: meta.id
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
icon: "ph--chart-line--regular"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
id: `${Devtools.Client.Tracing}-${node.id}`,
|
|
157
|
+
data: Devtools.Client.Tracing,
|
|
158
|
+
type: DEVTOOLS_TYPE,
|
|
159
|
+
properties: {
|
|
160
|
+
label: [
|
|
161
|
+
"tracing label",
|
|
162
|
+
{
|
|
163
|
+
ns: meta.id
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
icon: "ph--fire--regular"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
id: `${Devtools.Halo.id}-${node.id}`,
|
|
173
|
+
data: null,
|
|
174
|
+
type: DEVTOOLS_TYPE,
|
|
175
|
+
properties: {
|
|
176
|
+
label: [
|
|
177
|
+
"halo label",
|
|
178
|
+
{
|
|
179
|
+
ns: meta.id
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
icon: "ph--identification-badge--regular"
|
|
183
|
+
},
|
|
184
|
+
nodes: [
|
|
185
|
+
{
|
|
186
|
+
id: `${Devtools.Halo.Identity}-${node.id}`,
|
|
187
|
+
data: Devtools.Halo.Identity,
|
|
188
|
+
type: DEVTOOLS_TYPE,
|
|
189
|
+
properties: {
|
|
190
|
+
label: [
|
|
191
|
+
"identity label",
|
|
192
|
+
{
|
|
193
|
+
ns: meta.id
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
icon: "ph--identification-badge--regular"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: `${Devtools.Halo.Devices}-${node.id}`,
|
|
201
|
+
data: Devtools.Halo.Devices,
|
|
202
|
+
type: DEVTOOLS_TYPE,
|
|
203
|
+
properties: {
|
|
204
|
+
label: [
|
|
205
|
+
"devices label",
|
|
206
|
+
{
|
|
207
|
+
ns: meta.id
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
icon: "ph--devices--regular"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
id: `${Devtools.Halo.Keyring}-${node.id}`,
|
|
215
|
+
data: Devtools.Halo.Keyring,
|
|
216
|
+
type: DEVTOOLS_TYPE,
|
|
217
|
+
properties: {
|
|
218
|
+
label: [
|
|
219
|
+
"keyring label",
|
|
220
|
+
{
|
|
221
|
+
ns: meta.id
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
icon: "ph--key--regular"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
id: `${Devtools.Halo.Credentials}-${node.id}`,
|
|
229
|
+
data: Devtools.Halo.Credentials,
|
|
230
|
+
type: DEVTOOLS_TYPE,
|
|
231
|
+
properties: {
|
|
232
|
+
label: [
|
|
233
|
+
"credentials label",
|
|
234
|
+
{
|
|
235
|
+
ns: meta.id
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
icon: "ph--credit-card--regular"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
id: `${Devtools.Echo.id}-${node.id}`,
|
|
245
|
+
data: null,
|
|
246
|
+
type: DEVTOOLS_TYPE,
|
|
247
|
+
properties: {
|
|
248
|
+
label: [
|
|
249
|
+
"echo label",
|
|
250
|
+
{
|
|
251
|
+
ns: meta.id
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
icon: "ph--database--regular"
|
|
255
|
+
},
|
|
256
|
+
nodes: [
|
|
257
|
+
{
|
|
258
|
+
id: `${Devtools.Echo.Spaces}-${node.id}`,
|
|
259
|
+
data: Devtools.Echo.Spaces,
|
|
260
|
+
type: DEVTOOLS_TYPE,
|
|
261
|
+
properties: {
|
|
262
|
+
label: [
|
|
263
|
+
"spaces label",
|
|
264
|
+
{
|
|
265
|
+
ns: meta.id
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
icon: "ph--graph--regular"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
id: `${Devtools.Echo.Space}-${node.id}`,
|
|
273
|
+
data: Devtools.Echo.Space,
|
|
274
|
+
type: DEVTOOLS_TYPE,
|
|
275
|
+
properties: {
|
|
276
|
+
label: [
|
|
277
|
+
"space label",
|
|
278
|
+
{
|
|
279
|
+
ns: meta.id
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
icon: "ph--planet--regular"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
id: `${Devtools.Echo.Feeds}-${node.id}`,
|
|
287
|
+
data: Devtools.Echo.Feeds,
|
|
288
|
+
type: DEVTOOLS_TYPE,
|
|
289
|
+
properties: {
|
|
290
|
+
label: [
|
|
291
|
+
"feeds label",
|
|
292
|
+
{
|
|
293
|
+
ns: meta.id
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
icon: "ph--list-bullets--regular"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
id: `${Devtools.Echo.Objects}-${node.id}`,
|
|
301
|
+
data: Devtools.Echo.Objects,
|
|
302
|
+
type: DEVTOOLS_TYPE,
|
|
303
|
+
properties: {
|
|
304
|
+
label: [
|
|
305
|
+
"objects label",
|
|
306
|
+
{
|
|
307
|
+
ns: meta.id
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
icon: "ph--cube--regular"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
id: `${Devtools.Echo.Schema}-${node.id}`,
|
|
315
|
+
data: Devtools.Echo.Schema,
|
|
316
|
+
type: DEVTOOLS_TYPE,
|
|
317
|
+
properties: {
|
|
318
|
+
label: [
|
|
319
|
+
"schema label",
|
|
320
|
+
{
|
|
321
|
+
ns: meta.id
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
icon: "ph--database--regular"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
id: `${Devtools.Echo.Automerge}-${node.id}`,
|
|
329
|
+
data: Devtools.Echo.Automerge,
|
|
330
|
+
type: DEVTOOLS_TYPE,
|
|
331
|
+
properties: {
|
|
332
|
+
label: [
|
|
333
|
+
"automerge label",
|
|
334
|
+
{
|
|
335
|
+
ns: meta.id
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
icon: "ph--gear-six--regular"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
id: `${Devtools.Echo.Queues}-${node.id}`,
|
|
343
|
+
data: Devtools.Echo.Queues,
|
|
344
|
+
type: DEVTOOLS_TYPE,
|
|
345
|
+
properties: {
|
|
346
|
+
label: [
|
|
347
|
+
"queues label",
|
|
348
|
+
{
|
|
349
|
+
ns: meta.id
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
icon: "ph--queue--regular"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
id: `${Devtools.Echo.Members}-${node.id}`,
|
|
357
|
+
data: Devtools.Echo.Members,
|
|
358
|
+
type: DEVTOOLS_TYPE,
|
|
359
|
+
properties: {
|
|
360
|
+
label: [
|
|
361
|
+
"members label",
|
|
362
|
+
{
|
|
363
|
+
ns: meta.id
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
icon: "ph--users--regular"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
id: `${Devtools.Echo.Metadata}-${node.id}`,
|
|
371
|
+
data: Devtools.Echo.Metadata,
|
|
372
|
+
type: DEVTOOLS_TYPE,
|
|
373
|
+
properties: {
|
|
374
|
+
label: [
|
|
375
|
+
"metadata label",
|
|
376
|
+
{
|
|
377
|
+
ns: meta.id
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
icon: "ph--hard-drive--regular"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
id: `${Devtools.Mesh.id}-${node.id}`,
|
|
387
|
+
data: null,
|
|
388
|
+
type: DEVTOOLS_TYPE,
|
|
389
|
+
properties: {
|
|
390
|
+
label: [
|
|
391
|
+
"mesh label",
|
|
392
|
+
{
|
|
393
|
+
ns: meta.id
|
|
394
|
+
}
|
|
395
|
+
],
|
|
396
|
+
icon: "ph--graph--regular"
|
|
397
|
+
},
|
|
398
|
+
nodes: [
|
|
399
|
+
{
|
|
400
|
+
id: `${Devtools.Mesh.Signal}-${node.id}`,
|
|
401
|
+
data: Devtools.Mesh.Signal,
|
|
402
|
+
type: DEVTOOLS_TYPE,
|
|
403
|
+
properties: {
|
|
404
|
+
label: [
|
|
405
|
+
"signal label",
|
|
406
|
+
{
|
|
407
|
+
ns: meta.id
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
icon: "ph--wifi-high--regular"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
id: `${Devtools.Mesh.Swarm}-${node.id}`,
|
|
415
|
+
data: Devtools.Mesh.Swarm,
|
|
416
|
+
type: DEVTOOLS_TYPE,
|
|
417
|
+
properties: {
|
|
418
|
+
label: [
|
|
419
|
+
"swarm label",
|
|
420
|
+
{
|
|
421
|
+
ns: meta.id
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
icon: "ph--users-three--regular"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
id: `${Devtools.Mesh.Network}-${node.id}`,
|
|
429
|
+
data: Devtools.Mesh.Network,
|
|
430
|
+
type: DEVTOOLS_TYPE,
|
|
431
|
+
properties: {
|
|
432
|
+
label: [
|
|
433
|
+
"network label",
|
|
434
|
+
{
|
|
435
|
+
ns: meta.id
|
|
436
|
+
}
|
|
437
|
+
],
|
|
438
|
+
icon: "ph--polygon--regular"
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
// TODO(wittjosiah): Remove?
|
|
444
|
+
// {
|
|
445
|
+
// id: `${prefix}-${Devtools.Agent.id}`,
|
|
446
|
+
// data: null,
|
|
447
|
+
// type: DEVTOOLS_TYPE,
|
|
448
|
+
// properties: {
|
|
449
|
+
// label: ['agent label', { ns: meta.id }],
|
|
450
|
+
// icon: 'ph--robot--regular',
|
|
451
|
+
// },
|
|
452
|
+
// nodes: [
|
|
453
|
+
// {
|
|
454
|
+
// id: `${prefix}-${Devtools.Agent.Dashboard}`,
|
|
455
|
+
// data: Devtools.Agent.Dashboard,
|
|
456
|
+
// type: DEVTOOLS_TYPE,
|
|
457
|
+
// properties: {
|
|
458
|
+
// label: ['dashboard label', { ns: meta.id }],
|
|
459
|
+
// icon: 'ph--computer-tower--regular',
|
|
460
|
+
// },
|
|
461
|
+
// },
|
|
462
|
+
// ],
|
|
463
|
+
// },
|
|
464
|
+
{
|
|
465
|
+
id: `${Devtools.Edge.id}-${node.id}`,
|
|
466
|
+
data: null,
|
|
467
|
+
type: DEVTOOLS_TYPE,
|
|
468
|
+
properties: {
|
|
469
|
+
label: [
|
|
470
|
+
"edge label",
|
|
471
|
+
{
|
|
472
|
+
ns: meta.id
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
icon: "ph--cloud--regular"
|
|
476
|
+
},
|
|
477
|
+
nodes: [
|
|
478
|
+
{
|
|
479
|
+
id: `${Devtools.Edge.Dashboard}-${node.id}`,
|
|
480
|
+
data: Devtools.Edge.Dashboard,
|
|
481
|
+
type: DEVTOOLS_TYPE,
|
|
482
|
+
properties: {
|
|
483
|
+
label: [
|
|
484
|
+
"dashboard label",
|
|
485
|
+
{
|
|
486
|
+
ns: meta.id
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
icon: "ph--computer-tower--regular"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
id: `${Devtools.Edge.Workflows}-${node.id}`,
|
|
494
|
+
data: Devtools.Edge.Workflows,
|
|
495
|
+
type: DEVTOOLS_TYPE,
|
|
496
|
+
properties: {
|
|
497
|
+
label: [
|
|
498
|
+
"workflows label",
|
|
499
|
+
{
|
|
500
|
+
ns: meta.id
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
icon: "ph--function--regular"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
id: `${Devtools.Edge.Traces}-${node.id}`,
|
|
508
|
+
data: Devtools.Edge.Traces,
|
|
509
|
+
type: DEVTOOLS_TYPE,
|
|
510
|
+
properties: {
|
|
511
|
+
label: [
|
|
512
|
+
"traces label",
|
|
513
|
+
{
|
|
514
|
+
ns: meta.id
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
icon: "ph--line-segments--regular"
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
id: `${Devtools.Edge.Testing}-${node.id}`,
|
|
522
|
+
data: Devtools.Edge.Testing,
|
|
523
|
+
type: DEVTOOLS_TYPE,
|
|
524
|
+
properties: {
|
|
525
|
+
label: [
|
|
526
|
+
"testing label",
|
|
527
|
+
{
|
|
528
|
+
ns: meta.id
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
icon: "ph--flask--regular"
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
];
|
|
539
|
+
})
|
|
540
|
+
}),
|
|
541
|
+
// Debug object companion.
|
|
542
|
+
GraphBuilder.createExtension({
|
|
543
|
+
id: `${meta.id}/debug-object`,
|
|
544
|
+
match: NodeMatcher.whenEchoObject,
|
|
545
|
+
connector: (object) => Effect.succeed([
|
|
546
|
+
{
|
|
547
|
+
id: [
|
|
548
|
+
Obj.getDXN(object).toString(),
|
|
549
|
+
"debug"
|
|
550
|
+
].join(ATTENDABLE_PATH_SEPARATOR),
|
|
551
|
+
type: PLANK_COMPANION_TYPE,
|
|
552
|
+
data: "debug",
|
|
553
|
+
properties: {
|
|
554
|
+
label: [
|
|
555
|
+
"debug label",
|
|
556
|
+
{
|
|
557
|
+
ns: meta.id
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
icon: "ph--bug--regular",
|
|
561
|
+
disposition: "hidden",
|
|
562
|
+
position: "fallback"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
])
|
|
566
|
+
}),
|
|
567
|
+
// Devtools deck companion.
|
|
568
|
+
GraphBuilder.createExtension({
|
|
569
|
+
id: `${meta.id}/devtools-overview`,
|
|
570
|
+
match: NodeMatcher.whenRoot,
|
|
571
|
+
connector: (node) => Effect.succeed([
|
|
572
|
+
{
|
|
573
|
+
id: [
|
|
574
|
+
node.id,
|
|
575
|
+
"devtools"
|
|
576
|
+
].join(ATTENDABLE_PATH_SEPARATOR),
|
|
577
|
+
type: DECK_COMPANION_TYPE,
|
|
578
|
+
data: null,
|
|
579
|
+
properties: {
|
|
580
|
+
label: [
|
|
581
|
+
"devtools overview label",
|
|
582
|
+
{
|
|
583
|
+
ns: meta.id
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
icon: "ph--equalizer--regular",
|
|
587
|
+
disposition: "hidden",
|
|
588
|
+
position: "fallback"
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
])
|
|
592
|
+
})
|
|
593
|
+
]);
|
|
594
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
595
|
+
}));
|
|
596
|
+
export {
|
|
597
|
+
app_graph_builder_default as default
|
|
598
|
+
};
|
|
599
|
+
//# sourceMappingURL=app-graph-builder-DEBTVBQG.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder/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 } from '@dxos/app-toolkit';\nimport { Obj } from '@dxos/echo';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';\nimport { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';\nimport { meta as spaceMeta } from '@dxos/plugin-space';\nimport { parseId } from '@dxos/react-client/echo';\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 // Devtools node.\n GraphBuilder.createExtension({\n id: `${meta.id}/devtools`,\n match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}/settings`)),\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 } = parseId(layout?.workspace);\n const space = spaceId ? client.spaces.get(spaceId) : undefined;\n const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));\n\n return [\n {\n id: `${Devtools.id}-${node.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 ...(space && node.type === `${spaceMeta.id}/settings`\n ? [\n {\n id: `debug-${node.id}`,\n type: `${meta.id}/space`,\n data: { space, type: `${meta.id}/space` },\n properties: {\n label: ['debug label', { ns: meta.id }],\n icon: 'ph--bug--regular',\n },\n },\n ]\n : []),\n {\n id: `app-graph-${node.id}`,\n type: `${meta.id}/app-graph`,\n data: { graph: graph?.graph, root: space ? space.id : Node.RootId },\n properties: {\n label: ['debug app graph label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n },\n {\n id: `${Devtools.Client.id}-${node.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 {\n id: `${Devtools.Client.Config}-${node.id}`,\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 {\n id: `${Devtools.Client.Storage}-${node.id}`,\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 {\n id: `${Devtools.Client.Logs}-${node.id}`,\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 {\n id: `${Devtools.Client.Diagnostics}-${node.id}`,\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 id: `${Devtools.Client.Tracing}-${node.id}`,\n data: Devtools.Client.Tracing,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['tracing label', { ns: meta.id }],\n icon: 'ph--fire--regular',\n },\n },\n ],\n },\n {\n id: `${Devtools.Halo.id}-${node.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 {\n id: `${Devtools.Halo.Identity}-${node.id}`,\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 {\n id: `${Devtools.Halo.Devices}-${node.id}`,\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 {\n id: `${Devtools.Halo.Keyring}-${node.id}`,\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 {\n id: `${Devtools.Halo.Credentials}-${node.id}`,\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 {\n id: `${Devtools.Echo.id}-${node.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 {\n id: `${Devtools.Echo.Spaces}-${node.id}`,\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 {\n id: `${Devtools.Echo.Space}-${node.id}`,\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 {\n id: `${Devtools.Echo.Feeds}-${node.id}`,\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 {\n id: `${Devtools.Echo.Objects}-${node.id}`,\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 {\n id: `${Devtools.Echo.Schema}-${node.id}`,\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 {\n id: `${Devtools.Echo.Automerge}-${node.id}`,\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 {\n id: `${Devtools.Echo.Queues}-${node.id}`,\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 {\n id: `${Devtools.Echo.Members}-${node.id}`,\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 {\n id: `${Devtools.Echo.Metadata}-${node.id}`,\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 {\n id: `${Devtools.Mesh.id}-${node.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 {\n id: `${Devtools.Mesh.Signal}-${node.id}`,\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 {\n id: `${Devtools.Mesh.Swarm}-${node.id}`,\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 {\n id: `${Devtools.Mesh.Network}-${node.id}`,\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 // TODO(wittjosiah): Remove?\n // {\n // id: `${prefix}-${Devtools.Agent.id}`,\n // data: null,\n // type: DEVTOOLS_TYPE,\n // properties: {\n // label: ['agent label', { ns: meta.id }],\n // icon: 'ph--robot--regular',\n // },\n // nodes: [\n // {\n // id: `${prefix}-${Devtools.Agent.Dashboard}`,\n // data: Devtools.Agent.Dashboard,\n // type: DEVTOOLS_TYPE,\n // properties: {\n // label: ['dashboard label', { ns: meta.id }],\n // icon: 'ph--computer-tower--regular',\n // },\n // },\n // ],\n // },\n {\n id: `${Devtools.Edge.id}-${node.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 {\n id: `${Devtools.Edge.Dashboard}-${node.id}`,\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 {\n id: `${Devtools.Edge.Workflows}-${node.id}`,\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 {\n id: `${Devtools.Edge.Traces}-${node.id}`,\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 {\n id: `${Devtools.Edge.Testing}-${node.id}`,\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: `${meta.id}/debug-object`,\n match: NodeMatcher.whenEchoObject,\n connector: (object) =>\n Effect.succeed([\n {\n id: [Obj.getDXN(object).toString(), 'debug'].join(ATTENDABLE_PATH_SEPARATOR),\n type: PLANK_COMPANION_TYPE,\n data: 'debug',\n properties: {\n label: ['debug label', { ns: meta.id }],\n icon: 'ph--bug--regular',\n disposition: 'hidden',\n position: 'fallback',\n },\n },\n ]),\n }),\n\n // Devtools deck companion.\n GraphBuilder.createExtension({\n id: `${meta.id}/devtools-overview`,\n match: NodeMatcher.whenRoot,\n connector: (node) =>\n Effect.succeed([\n {\n id: [node.id, 'devtools'].join(ATTENDABLE_PATH_SEPARATOR),\n type: DECK_COMPANION_TYPE,\n data: null,\n properties: {\n label: ['devtools overview label', { ns: meta.id }],\n icon: 'ph--equalizer--regular',\n disposition: 'hidden',\n position: 'fallback',\n },\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,uBAAuB;AAChC,SAASC,WAAW;AACpB,SAASC,0BAA0B;AACnC,SAASC,2BAA2BC,qBAAqBC,4BAA4B;AACrF,SAASC,cAAcC,MAAMC,mBAAmB;AAChD,SAASC,QAAQC,iBAAiB;AAClC,SAASC,eAAe;AAKxB,IAAMC,gBAAgB,GAAGC,KAAKC,EAAE;AAEhC,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAcC,WAAI;;IAEnCC,aAAaC,gBAAgB;MAC3BP,IAAI,GAAGD,KAAKC,EAAE;MACdQ,OAAOC,YAAYC,QAAQD,YAAYE,UAAUF,YAAYG,aAAa,GAAGC,UAAUb,EAAE,WAAW,CAAA;MACpGc,WAAW,CAACC,MAAMC,QACTC,WAAI,aAAA;AACT,cAAMC,SAAS,OAAOjB,WAAWe,IAAIG,mBAAmBC,MAAM;AAC9D,cAAMC,aAAaL,IAAI,OAAOf,WAAWqB,KAAKC,gBAAgBC,MAAM,CAAA,EAAG,CAAA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ities", "Obj", "ClientCapabilities", "ATTENDABLE_PATH_SEPARATOR", "DECK_COMPANION_TYPE", "PLANK_COMPANION_TYPE", "GraphBuilder", "Node", "NodeMatcher", "meta", "spaceMeta", "parseId", "DEVTOOLS_TYPE", "meta", "id", "Capability", "makeModule", "fnUntraced", "extensions", "all", "GraphBuilder", "createExtension", "match", "NodeMatcher", "whenAny", "whenRoot", "whenNodeType", "spaceMeta", "connector", "node", "get", "gen", "client", "ClientCapabilities", "Client", "layoutAtom", "atom", "AppCapabilities", "Layout", "layout", "undefined", "spaceId", "parseId", "workspace", "space", "spaces", "graph", "AppGraph", "Devtools", "data", "type", "properties", "label", "ns", "icon", "disposition", "position", "nodes", "root", "Node", "RootId", "Config", "Storage", "Logs", "Diagnostics", "Tracing", "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", "object", "succeed", "Obj", "getDXN", "toString", "join", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "DECK_COMPANION_TYPE", "contributes", "AppGraphBuilder"]
|
|
7
|
+
}
|