@dxos/plugin-debug 0.8.1 → 0.8.2-main.2f9c567
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/DevtoolsOverviewContainer-HYNZTH2Z.mjs +19 -0
- package/dist/lib/browser/DevtoolsOverviewContainer-HYNZTH2Z.mjs.map +7 -0
- package/dist/lib/browser/{SpaceGenerator-NBOQZ4JF.mjs → SpaceGenerator-6ZW3GZSC.mjs} +36 -35
- package/dist/lib/browser/SpaceGenerator-6ZW3GZSC.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-ALFPRSAR.mjs → app-graph-builder-45VXMVPN.mjs} +89 -53
- package/dist/lib/browser/app-graph-builder-45VXMVPN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-TCEHALD4.mjs → chunk-ZJTKMYOG.mjs} +5 -4
- package/dist/lib/browser/chunk-ZJTKMYOG.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +5 -3
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-MXXLOQYV.mjs → react-surface-UZUZU3MI.mjs} +23 -29
- package/dist/lib/browser/react-surface-UZUZU3MI.mjs.map +7 -0
- package/dist/lib/browser/{settings-AP74NCXH.mjs → settings-6SG54GZO.mjs} +4 -4
- package/dist/lib/browser/settings-6SG54GZO.mjs.map +7 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/DebugObjectPanel.d.ts +2 -2
- package/dist/types/src/components/DebugObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/DebugStatus.d.ts.map +1 -1
- package/dist/types/src/components/DevtoolsOverviewContainer.d.ts +4 -0
- package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +1 -0
- 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/SpaceGenerator.d.ts +2 -2
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts +1 -1
- 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 +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +5 -4
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +54 -50
- package/src/capabilities/app-graph-builder.ts +76 -59
- package/src/capabilities/react-surface.tsx +34 -11
- package/src/capabilities/settings.ts +2 -2
- package/src/components/DebugObjectPanel.tsx +2 -2
- package/src/components/DebugStatus.tsx +2 -24
- package/src/components/DevtoolsOverviewContainer.tsx +20 -0
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +10 -14
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +5 -5
- package/src/components/SpaceGenerator/presets.ts +14 -12
- package/src/components/Wireframe.tsx +2 -2
- package/src/components/index.ts +1 -0
- package/src/translations.ts +2 -0
- package/src/types.ts +6 -5
- package/dist/lib/browser/SpaceGenerator-NBOQZ4JF.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-ALFPRSAR.mjs.map +0 -7
- package/dist/lib/browser/chunk-TCEHALD4.mjs.map +0 -7
- package/dist/lib/browser/react-surface-MXXLOQYV.mjs.map +0 -7
- package/dist/lib/browser/settings-AP74NCXH.mjs.map +0 -7
|
@@ -1,36 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Devtools
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZJTKMYOG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEBUG_PLUGIN
|
|
6
6
|
} from "./chunk-RORUXVAC.mjs";
|
|
7
7
|
|
|
8
8
|
// packages/plugins/plugin-debug/src/capabilities/app-graph-builder.ts
|
|
9
9
|
import { contributes, Capabilities } from "@dxos/app-framework";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
10
|
+
import { ClientCapabilities } from "@dxos/plugin-client";
|
|
11
|
+
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
|
|
12
|
+
import { createExtension } from "@dxos/plugin-graph";
|
|
13
|
+
import { SPACE_PLUGIN } from "@dxos/plugin-space";
|
|
14
|
+
import { isEchoObject, parseId } from "@dxos/react-client/echo";
|
|
14
15
|
var DEVTOOLS_TYPE = "dxos.org/plugin/debug/devtools";
|
|
15
16
|
var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
|
|
16
17
|
// Devtools node.
|
|
17
18
|
createExtension({
|
|
18
19
|
id: "dxos.org/plugin/debug/devtools",
|
|
19
|
-
filter: (node) => node.id === "root" ||
|
|
20
|
+
filter: (node) => node.id === "root" || node.type === `${SPACE_PLUGIN}/settings`,
|
|
20
21
|
connector: ({ node }) => {
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const collection = space?.properties[CollectionType.typename]?.target;
|
|
28
|
-
if (node.id !== "root" && !collection) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
22
|
+
const layout = context.requestCapability(Capabilities.Layout);
|
|
23
|
+
const client = context.requestCapability(ClientCapabilities.Client);
|
|
24
|
+
const { spaceId } = parseId(layout.workspace);
|
|
25
|
+
const space = spaceId && client.spaces.get(spaceId);
|
|
31
26
|
return [
|
|
32
27
|
{
|
|
33
|
-
id: `${
|
|
28
|
+
id: `${Devtools.id}-${node.id}`,
|
|
34
29
|
data: null,
|
|
35
30
|
type: DEVTOOLS_TYPE,
|
|
36
31
|
properties: {
|
|
@@ -40,16 +35,17 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
40
35
|
ns: DEBUG_PLUGIN
|
|
41
36
|
}
|
|
42
37
|
],
|
|
38
|
+
icon: "ph--hammer--regular",
|
|
43
39
|
disposition: "workspace",
|
|
44
|
-
|
|
40
|
+
position: "fallback"
|
|
45
41
|
},
|
|
46
42
|
nodes: [
|
|
47
|
-
...
|
|
43
|
+
...space ? [
|
|
48
44
|
{
|
|
49
|
-
id:
|
|
45
|
+
id: `debug-${node.id}`,
|
|
50
46
|
type: "dxos.org/plugin/debug/space",
|
|
51
47
|
data: {
|
|
52
|
-
space
|
|
48
|
+
space,
|
|
53
49
|
type: "dxos.org/plugin/debug/space"
|
|
54
50
|
},
|
|
55
51
|
properties: {
|
|
@@ -64,7 +60,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
64
60
|
}
|
|
65
61
|
] : [],
|
|
66
62
|
{
|
|
67
|
-
id: `${
|
|
63
|
+
id: `${Devtools.Client.id}-${node.id}`,
|
|
68
64
|
data: null,
|
|
69
65
|
type: DEVTOOLS_TYPE,
|
|
70
66
|
properties: {
|
|
@@ -78,7 +74,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
78
74
|
},
|
|
79
75
|
nodes: [
|
|
80
76
|
{
|
|
81
|
-
id: `${
|
|
77
|
+
id: `${Devtools.Client.Config}-${node.id}`,
|
|
82
78
|
data: Devtools.Client.Config,
|
|
83
79
|
type: DEVTOOLS_TYPE,
|
|
84
80
|
properties: {
|
|
@@ -92,7 +88,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
92
88
|
}
|
|
93
89
|
},
|
|
94
90
|
{
|
|
95
|
-
id: `${
|
|
91
|
+
id: `${Devtools.Client.Storage}-${node.id}`,
|
|
96
92
|
data: Devtools.Client.Storage,
|
|
97
93
|
type: DEVTOOLS_TYPE,
|
|
98
94
|
properties: {
|
|
@@ -106,7 +102,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
106
102
|
}
|
|
107
103
|
},
|
|
108
104
|
{
|
|
109
|
-
id: `${
|
|
105
|
+
id: `${Devtools.Client.Logs}-${node.id}`,
|
|
110
106
|
data: Devtools.Client.Logs,
|
|
111
107
|
type: DEVTOOLS_TYPE,
|
|
112
108
|
properties: {
|
|
@@ -120,7 +116,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
120
116
|
}
|
|
121
117
|
},
|
|
122
118
|
{
|
|
123
|
-
id: `${
|
|
119
|
+
id: `${Devtools.Client.Diagnostics}-${node.id}`,
|
|
124
120
|
data: Devtools.Client.Diagnostics,
|
|
125
121
|
type: DEVTOOLS_TYPE,
|
|
126
122
|
properties: {
|
|
@@ -134,7 +130,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
134
130
|
}
|
|
135
131
|
},
|
|
136
132
|
{
|
|
137
|
-
id: `${
|
|
133
|
+
id: `${Devtools.Client.Tracing}-${node.id}`,
|
|
138
134
|
data: Devtools.Client.Tracing,
|
|
139
135
|
type: DEVTOOLS_TYPE,
|
|
140
136
|
properties: {
|
|
@@ -150,7 +146,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
150
146
|
]
|
|
151
147
|
},
|
|
152
148
|
{
|
|
153
|
-
id: `${
|
|
149
|
+
id: `${Devtools.Halo.id}-${node.id}`,
|
|
154
150
|
data: null,
|
|
155
151
|
type: DEVTOOLS_TYPE,
|
|
156
152
|
properties: {
|
|
@@ -164,7 +160,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
164
160
|
},
|
|
165
161
|
nodes: [
|
|
166
162
|
{
|
|
167
|
-
id: `${
|
|
163
|
+
id: `${Devtools.Halo.Identity}-${node.id}`,
|
|
168
164
|
data: Devtools.Halo.Identity,
|
|
169
165
|
type: DEVTOOLS_TYPE,
|
|
170
166
|
properties: {
|
|
@@ -178,7 +174,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
178
174
|
}
|
|
179
175
|
},
|
|
180
176
|
{
|
|
181
|
-
id: `${
|
|
177
|
+
id: `${Devtools.Halo.Devices}-${node.id}`,
|
|
182
178
|
data: Devtools.Halo.Devices,
|
|
183
179
|
type: DEVTOOLS_TYPE,
|
|
184
180
|
properties: {
|
|
@@ -192,7 +188,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
192
188
|
}
|
|
193
189
|
},
|
|
194
190
|
{
|
|
195
|
-
id: `${
|
|
191
|
+
id: `${Devtools.Halo.Keyring}-${node.id}`,
|
|
196
192
|
data: Devtools.Halo.Keyring,
|
|
197
193
|
type: DEVTOOLS_TYPE,
|
|
198
194
|
properties: {
|
|
@@ -206,7 +202,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
206
202
|
}
|
|
207
203
|
},
|
|
208
204
|
{
|
|
209
|
-
id: `${
|
|
205
|
+
id: `${Devtools.Halo.Credentials}-${node.id}`,
|
|
210
206
|
data: Devtools.Halo.Credentials,
|
|
211
207
|
type: DEVTOOLS_TYPE,
|
|
212
208
|
properties: {
|
|
@@ -222,7 +218,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
222
218
|
]
|
|
223
219
|
},
|
|
224
220
|
{
|
|
225
|
-
id: `${
|
|
221
|
+
id: `${Devtools.Echo.id}-${node.id}`,
|
|
226
222
|
data: null,
|
|
227
223
|
type: DEVTOOLS_TYPE,
|
|
228
224
|
properties: {
|
|
@@ -236,7 +232,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
236
232
|
},
|
|
237
233
|
nodes: [
|
|
238
234
|
{
|
|
239
|
-
id: `${
|
|
235
|
+
id: `${Devtools.Echo.Spaces}-${node.id}`,
|
|
240
236
|
data: Devtools.Echo.Spaces,
|
|
241
237
|
type: DEVTOOLS_TYPE,
|
|
242
238
|
properties: {
|
|
@@ -250,7 +246,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
250
246
|
}
|
|
251
247
|
},
|
|
252
248
|
{
|
|
253
|
-
id: `${
|
|
249
|
+
id: `${Devtools.Echo.Space}-${node.id}`,
|
|
254
250
|
data: Devtools.Echo.Space,
|
|
255
251
|
type: DEVTOOLS_TYPE,
|
|
256
252
|
properties: {
|
|
@@ -264,7 +260,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
264
260
|
}
|
|
265
261
|
},
|
|
266
262
|
{
|
|
267
|
-
id: `${
|
|
263
|
+
id: `${Devtools.Echo.Feeds}-${node.id}`,
|
|
268
264
|
data: Devtools.Echo.Feeds,
|
|
269
265
|
type: DEVTOOLS_TYPE,
|
|
270
266
|
properties: {
|
|
@@ -278,7 +274,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
278
274
|
}
|
|
279
275
|
},
|
|
280
276
|
{
|
|
281
|
-
id: `${
|
|
277
|
+
id: `${Devtools.Echo.Objects}-${node.id}`,
|
|
282
278
|
data: Devtools.Echo.Objects,
|
|
283
279
|
type: DEVTOOLS_TYPE,
|
|
284
280
|
properties: {
|
|
@@ -288,11 +284,25 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
288
284
|
ns: DEBUG_PLUGIN
|
|
289
285
|
}
|
|
290
286
|
],
|
|
287
|
+
icon: "ph--cube--regular"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
id: `${Devtools.Echo.Schema}-${node.id}`,
|
|
292
|
+
data: Devtools.Echo.Schema,
|
|
293
|
+
type: DEVTOOLS_TYPE,
|
|
294
|
+
properties: {
|
|
295
|
+
label: [
|
|
296
|
+
"schema label",
|
|
297
|
+
{
|
|
298
|
+
ns: DEBUG_PLUGIN
|
|
299
|
+
}
|
|
300
|
+
],
|
|
291
301
|
icon: "ph--database--regular"
|
|
292
302
|
}
|
|
293
303
|
},
|
|
294
304
|
{
|
|
295
|
-
id: `${
|
|
305
|
+
id: `${Devtools.Echo.Automerge}-${node.id}`,
|
|
296
306
|
data: Devtools.Echo.Automerge,
|
|
297
307
|
type: DEVTOOLS_TYPE,
|
|
298
308
|
properties: {
|
|
@@ -306,7 +316,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
306
316
|
}
|
|
307
317
|
},
|
|
308
318
|
{
|
|
309
|
-
id: `${
|
|
319
|
+
id: `${Devtools.Echo.Queues}-${node.id}`,
|
|
310
320
|
data: Devtools.Echo.Queues,
|
|
311
321
|
type: DEVTOOLS_TYPE,
|
|
312
322
|
properties: {
|
|
@@ -320,7 +330,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
320
330
|
}
|
|
321
331
|
},
|
|
322
332
|
{
|
|
323
|
-
id: `${
|
|
333
|
+
id: `${Devtools.Echo.Members}-${node.id}`,
|
|
324
334
|
data: Devtools.Echo.Members,
|
|
325
335
|
type: DEVTOOLS_TYPE,
|
|
326
336
|
properties: {
|
|
@@ -334,7 +344,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
334
344
|
}
|
|
335
345
|
},
|
|
336
346
|
{
|
|
337
|
-
id: `${
|
|
347
|
+
id: `${Devtools.Echo.Metadata}-${node.id}`,
|
|
338
348
|
data: Devtools.Echo.Metadata,
|
|
339
349
|
type: DEVTOOLS_TYPE,
|
|
340
350
|
properties: {
|
|
@@ -350,7 +360,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
350
360
|
]
|
|
351
361
|
},
|
|
352
362
|
{
|
|
353
|
-
id: `${
|
|
363
|
+
id: `${Devtools.Mesh.id}-${node.id}`,
|
|
354
364
|
data: null,
|
|
355
365
|
type: DEVTOOLS_TYPE,
|
|
356
366
|
properties: {
|
|
@@ -364,7 +374,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
364
374
|
},
|
|
365
375
|
nodes: [
|
|
366
376
|
{
|
|
367
|
-
id: `${
|
|
377
|
+
id: `${Devtools.Mesh.Signal}-${node.id}`,
|
|
368
378
|
data: Devtools.Mesh.Signal,
|
|
369
379
|
type: DEVTOOLS_TYPE,
|
|
370
380
|
properties: {
|
|
@@ -378,7 +388,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
378
388
|
}
|
|
379
389
|
},
|
|
380
390
|
{
|
|
381
|
-
id: `${
|
|
391
|
+
id: `${Devtools.Mesh.Swarm}-${node.id}`,
|
|
382
392
|
data: Devtools.Mesh.Swarm,
|
|
383
393
|
type: DEVTOOLS_TYPE,
|
|
384
394
|
properties: {
|
|
@@ -392,7 +402,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
392
402
|
}
|
|
393
403
|
},
|
|
394
404
|
{
|
|
395
|
-
id: `${
|
|
405
|
+
id: `${Devtools.Mesh.Network}-${node.id}`,
|
|
396
406
|
data: Devtools.Mesh.Network,
|
|
397
407
|
type: DEVTOOLS_TYPE,
|
|
398
408
|
properties: {
|
|
@@ -409,7 +419,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
409
419
|
},
|
|
410
420
|
// TODO(wittjosiah): Remove?
|
|
411
421
|
// {
|
|
412
|
-
// id: `${
|
|
422
|
+
// id: `${prefix}-${Devtools.Agent.id}`,
|
|
413
423
|
// data: null,
|
|
414
424
|
// type: DEVTOOLS_TYPE,
|
|
415
425
|
// properties: {
|
|
@@ -418,7 +428,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
418
428
|
// },
|
|
419
429
|
// nodes: [
|
|
420
430
|
// {
|
|
421
|
-
// id: `${
|
|
431
|
+
// id: `${prefix}-${Devtools.Agent.Dashboard}`,
|
|
422
432
|
// data: Devtools.Agent.Dashboard,
|
|
423
433
|
// type: DEVTOOLS_TYPE,
|
|
424
434
|
// properties: {
|
|
@@ -429,7 +439,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
429
439
|
// ],
|
|
430
440
|
// },
|
|
431
441
|
{
|
|
432
|
-
id: `${
|
|
442
|
+
id: `${Devtools.Edge.id}-${node.id}`,
|
|
433
443
|
data: null,
|
|
434
444
|
type: DEVTOOLS_TYPE,
|
|
435
445
|
properties: {
|
|
@@ -443,7 +453,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
443
453
|
},
|
|
444
454
|
nodes: [
|
|
445
455
|
{
|
|
446
|
-
id: `${
|
|
456
|
+
id: `${Devtools.Edge.Dashboard}-${node.id}`,
|
|
447
457
|
data: Devtools.Edge.Dashboard,
|
|
448
458
|
type: DEVTOOLS_TYPE,
|
|
449
459
|
properties: {
|
|
@@ -457,7 +467,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
457
467
|
}
|
|
458
468
|
},
|
|
459
469
|
{
|
|
460
|
-
id: `${
|
|
470
|
+
id: `${Devtools.Edge.Workflows}-${node.id}`,
|
|
461
471
|
data: Devtools.Edge.Workflows,
|
|
462
472
|
type: DEVTOOLS_TYPE,
|
|
463
473
|
properties: {
|
|
@@ -471,7 +481,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
471
481
|
}
|
|
472
482
|
},
|
|
473
483
|
{
|
|
474
|
-
id: `${
|
|
484
|
+
id: `${Devtools.Edge.Traces}-${node.id}`,
|
|
475
485
|
data: Devtools.Edge.Traces,
|
|
476
486
|
type: DEVTOOLS_TYPE,
|
|
477
487
|
properties: {
|
|
@@ -485,7 +495,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
485
495
|
}
|
|
486
496
|
},
|
|
487
497
|
{
|
|
488
|
-
id: `${
|
|
498
|
+
id: `${Devtools.Edge.Testing}-${node.id}`,
|
|
489
499
|
data: Devtools.Edge.Testing,
|
|
490
500
|
type: DEVTOOLS_TYPE,
|
|
491
501
|
properties: {
|
|
@@ -562,9 +572,35 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
562
572
|
}
|
|
563
573
|
}
|
|
564
574
|
]
|
|
575
|
+
}),
|
|
576
|
+
// Devtools deck companion.
|
|
577
|
+
createExtension({
|
|
578
|
+
id: `${DEBUG_PLUGIN}/devtools-overview`,
|
|
579
|
+
filter: (node) => node.id === "root",
|
|
580
|
+
connector: ({ node }) => [
|
|
581
|
+
{
|
|
582
|
+
id: [
|
|
583
|
+
node.id,
|
|
584
|
+
"devtools"
|
|
585
|
+
].join(ATTENDABLE_PATH_SEPARATOR),
|
|
586
|
+
type: DECK_COMPANION_TYPE,
|
|
587
|
+
data: null,
|
|
588
|
+
properties: {
|
|
589
|
+
label: [
|
|
590
|
+
"devtools overview label",
|
|
591
|
+
{
|
|
592
|
+
ns: DEBUG_PLUGIN
|
|
593
|
+
}
|
|
594
|
+
],
|
|
595
|
+
icon: "ph--hammer--regular",
|
|
596
|
+
disposition: "hidden",
|
|
597
|
+
position: "fallback"
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
]
|
|
565
601
|
})
|
|
566
602
|
]);
|
|
567
603
|
export {
|
|
568
604
|
app_graph_builder_default as default
|
|
569
605
|
};
|
|
570
|
-
//# sourceMappingURL=app-graph-builder-
|
|
606
|
+
//# sourceMappingURL=app-graph-builder-45VXMVPN.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 { contributes, Capabilities, type PluginsContext } from '@dxos/app-framework';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';\nimport { createExtension, type Node } from '@dxos/plugin-graph';\nimport { SPACE_PLUGIN } from '@dxos/plugin-space';\nimport { isEchoObject, type AnyLiveObject, parseId } from '@dxos/react-client/echo';\n\nimport { DEBUG_PLUGIN } from '../meta';\nimport { Devtools } from '../types';\n\nconst DEVTOOLS_TYPE = 'dxos.org/plugin/debug/devtools';\n\nexport default (context: PluginsContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n // Devtools node.\n createExtension({\n id: 'dxos.org/plugin/debug/devtools',\n filter: (node): node is Node<null> => node.id === 'root' || node.type === `${SPACE_PLUGIN}/settings`,\n connector: ({ node }) => {\n const layout = context.requestCapability(Capabilities.Layout);\n const client = context.requestCapability(ClientCapabilities.Client);\n const { spaceId } = parseId(layout.workspace);\n const space = spaceId && client.spaces.get(spaceId);\n\n return [\n {\n id: `${Devtools.id}-${node.id}`,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['devtools label', { ns: DEBUG_PLUGIN }],\n icon: 'ph--hammer--regular',\n disposition: 'workspace',\n position: 'fallback',\n },\n nodes: [\n ...(space\n ? [\n {\n id: `debug-${node.id}`,\n type: 'dxos.org/plugin/debug/space',\n data: { space, type: 'dxos.org/plugin/debug/space' },\n properties: {\n label: ['debug label', { ns: DEBUG_PLUGIN }],\n icon: 'ph--bug--regular',\n },\n },\n ]\n : []),\n {\n id: `${Devtools.Client.id}-${node.id}`,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['client label', { ns: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\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: DEBUG_PLUGIN }],\n icon: 'ph--flask--regular',\n },\n },\n ],\n },\n ],\n },\n ];\n },\n }),\n\n // Debug node.\n createExtension({\n id: 'dxos.org/plugin/debug/debug',\n filter: (node): node is Node<null> => {\n // TODO(wittjosiah): Plank is currently blank. Remove?\n // const settings = context\n // .requestCapabilities(Capabilities.SettingsStore)[0]\n // ?.getStore<DebugSettingsProps>(DEBUG_PLUGIN)?.value;\n // return !!settings?.debug && node.id === 'root';\n return false;\n },\n connector: () => {\n const [graph] = context.requestCapabilities(Capabilities.AppGraph);\n if (!graph) {\n return;\n }\n\n return [\n {\n id: 'dxos.org/plugin/debug/debug',\n type: 'dxos.org/plugin/debug/debug',\n data: { graph },\n properties: {\n label: ['debug label', { ns: DEBUG_PLUGIN }],\n disposition: 'navigation',\n icon: 'ph--bug--regular',\n },\n },\n ];\n },\n }),\n\n // Debug object companion.\n createExtension({\n id: `${DEBUG_PLUGIN}/debug-object`,\n filter: (node): node is Node<AnyLiveObject<any>> => isEchoObject(node.data),\n connector: ({ node }) => [\n {\n id: [node.id, 'debug'].join(ATTENDABLE_PATH_SEPARATOR),\n type: PLANK_COMPANION_TYPE,\n data: 'debug',\n properties: {\n label: ['debug label', { ns: DEBUG_PLUGIN }],\n icon: 'ph--bug--regular',\n disposition: 'hidden',\n position: 'fallback',\n },\n },\n ],\n }),\n\n // Devtools deck companion.\n createExtension({\n id: `${DEBUG_PLUGIN}/devtools-overview`,\n filter: (node): node is Node<null> => node.id === 'root',\n connector: ({ node }) => [\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: DEBUG_PLUGIN }],\n icon: 'ph--hammer--regular',\n disposition: 'hidden',\n position: 'fallback',\n },\n },\n ],\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,aAAaC,oBAAyC;AAC/D,SAASC,0BAA0B;AACnC,SAASC,2BAA2BC,qBAAqBC,4BAA4B;AACrF,SAASC,uBAAkC;AAC3C,SAASC,oBAAoB;AAC7B,SAASC,cAAkCC,eAAe;AAK1D,IAAMC,gBAAgB;AAEtB,IAAA,4BAAe,CAACC,YACdC,YAAYC,aAAaC,iBAAiB;;EAExCC,gBAAgB;IACdC,IAAI;IACJC,QAAQ,CAACC,SAA6BA,KAAKF,OAAO,UAAUE,KAAKC,SAAS,GAAGC,YAAAA;IAC7EC,WAAW,CAAC,EAAEH,KAAI,MAAE;AAClB,YAAMI,SAASX,QAAQY,kBAAkBV,aAAaW,MAAM;AAC5D,YAAMC,SAASd,QAAQY,kBAAkBG,mBAAmBC,MAAM;AAClE,YAAM,EAAEC,QAAO,IAAKC,QAAQP,OAAOQ,SAAS;A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,MAAO;MACvB;QACEF,IAAI;UAACE,KAAKF;UAAI;UAAS6D,KAAKC,yBAAAA;QAC5B3D,MAAM4D;QACN5C,MAAM;QACNC,YAAY;UACVC,OAAO;YAAC;YAAe;cAAEC,IAAIC;YAAa;;UAC1CC,MAAM;UACNC,aAAa;UACbC,UAAU;QACZ;MACF;;EAEJ,CAAA;;EAGA3B,gBAAgB;IACdC,IAAI,GAAGuB,YAAAA;IACPtB,QAAQ,CAACC,SAA6BA,KAAKF,OAAO;IAClDK,WAAW,CAAC,EAAEH,KAAI,MAAO;MACvB;QACEF,IAAI;UAACE,KAAKF;UAAI;UAAY6D,KAAKC,yBAAAA;QAC/B3D,MAAM6D;QACN7C,MAAM;QACNC,YAAY;UACVC,OAAO;YAAC;YAA2B;cAAEC,IAAIC;YAAa;;UACtDC,MAAM;UACNC,aAAa;UACbC,UAAU;QACZ;MACF;;EAEJ,CAAA;CACD;",
|
|
6
|
+
"names": ["contributes", "Capabilities", "ClientCapabilities", "ATTENDABLE_PATH_SEPARATOR", "DECK_COMPANION_TYPE", "PLANK_COMPANION_TYPE", "createExtension", "SPACE_PLUGIN", "isEchoObject", "parseId", "DEVTOOLS_TYPE", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "filter", "node", "type", "SPACE_PLUGIN", "connector", "layout", "requestCapability", "Layout", "client", "ClientCapabilities", "Client", "spaceId", "parseId", "workspace", "space", "spaces", "get", "Devtools", "data", "properties", "label", "ns", "DEBUG_PLUGIN", "icon", "disposition", "position", "nodes", "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", "graph", "requestCapabilities", "AppGraph", "isEchoObject", "join", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "DECK_COMPANION_TYPE"]
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/plugins/plugin-debug/src/types.ts
|
|
2
|
+
import { Schema } from "effect";
|
|
2
3
|
import { createContext } from "react";
|
|
3
|
-
import { S } from "@dxos/echo-schema";
|
|
4
4
|
var DebugContext = createContext({
|
|
5
5
|
running: false,
|
|
6
6
|
start: () => {
|
|
@@ -8,8 +8,8 @@ var DebugContext = createContext({
|
|
|
8
8
|
stop: () => {
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var DebugSettingsSchema =
|
|
12
|
-
wireframe:
|
|
11
|
+
var DebugSettingsSchema = Schema.mutable(Schema.Struct({
|
|
12
|
+
wireframe: Schema.optional(Schema.Boolean)
|
|
13
13
|
}));
|
|
14
14
|
var Devtools;
|
|
15
15
|
(function(Devtools2) {
|
|
@@ -38,6 +38,7 @@ var Devtools;
|
|
|
38
38
|
Echo2.Space = `${Devtools2.Echo.id}.space`;
|
|
39
39
|
Echo2.Feeds = `${Devtools2.Echo.id}.feeds`;
|
|
40
40
|
Echo2.Objects = `${Devtools2.Echo.id}.objects`;
|
|
41
|
+
Echo2.Schema = `${Devtools2.Echo.id}.schema`;
|
|
41
42
|
Echo2.Automerge = `${Devtools2.Echo.id}.automerge`;
|
|
42
43
|
Echo2.Queues = `${Devtools2.Echo.id}.queues`;
|
|
43
44
|
Echo2.Members = `${Devtools2.Echo.id}.members`;
|
|
@@ -70,4 +71,4 @@ export {
|
|
|
70
71
|
DebugSettingsSchema,
|
|
71
72
|
Devtools
|
|
72
73
|
};
|
|
73
|
-
//# sourceMappingURL=chunk-
|
|
74
|
+
//# sourceMappingURL=chunk-ZJTKMYOG.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\nimport { type Context, createContext } from 'react';\n\nimport type { TimerCallback, TimerOptions } from '@dxos/async';\n\nexport type DebugContextType = {\n running: boolean;\n start: (cb: TimerCallback, options: TimerOptions) => void;\n stop: () => void;\n};\n\nexport const DebugContext: Context<DebugContextType> = createContext<DebugContextType>({\n running: false,\n start: () => {},\n stop: () => {},\n});\n\nexport const DebugSettingsSchema = Schema.mutable(\n Schema.Struct({\n wireframe: Schema.optional(Schema.Boolean),\n }),\n);\n\nexport interface DebugSettingsProps extends Schema.Schema.Type<typeof DebugSettingsSchema> {}\n\nexport namespace Devtools {\n // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.\n export const id = 'dxos.org.plugin.debug.devtools';\n\n export namespace Client {\n export const id = `${Devtools.id}.client`;\n export const Config = `${Devtools.Client.id}.config`;\n export const Storage = `${Devtools.Client.id}.storage`;\n export const Logs = `${Devtools.Client.id}.logs`;\n export const Diagnostics = `${Devtools.Client.id}.diagnostics`;\n export const Tracing = `${Devtools.Client.id}.tracing`;\n }\n\n export namespace Halo {\n export const id = `${Devtools.id}.halo`;\n export const Identity = `${Devtools.Halo.id}.identity`;\n export const Devices = `${Devtools.Halo.id}.devices`;\n export const Keyring = `${Devtools.Halo.id}.keyring`;\n export const Credentials = `${Devtools.Halo.id}.credentials`;\n }\n\n export namespace Echo {\n export const id = `${Devtools.id}.echo`;\n export const Spaces = `${Devtools.Echo.id}.spaces`;\n export const Space = `${Devtools.Echo.id}.space`;\n export const Feeds = `${Devtools.Echo.id}.feeds`;\n export const Objects = `${Devtools.Echo.id}.objects`;\n export const Schema = `${Devtools.Echo.id}.schema`;\n export const Automerge = `${Devtools.Echo.id}.automerge`;\n export const Queues = `${Devtools.Echo.id}.queues`;\n export const Members = `${Devtools.Echo.id}.members`;\n export const Metadata = `${Devtools.Echo.id}.metadata`;\n }\n\n export namespace Mesh {\n export const id = `${Devtools.id}.mesh`;\n export const Signal = `${Devtools.Mesh.id}.signal`;\n export const Swarm = `${Devtools.Mesh.id}.swarm`;\n export const Network = `${Devtools.Mesh.id}.network`;\n }\n\n export namespace Agent {\n export const id = `${Devtools.id}.agent`;\n export const Dashboard = `${Devtools.Agent.id}.dashboard`;\n export const Search = `${Devtools.Agent.id}.search`;\n }\n\n export namespace Edge {\n export const id = `${Devtools.id}.edge`;\n export const Dashboard = `${Devtools.Edge.id}.dashboard`;\n export const Workflows = `${Devtools.Edge.id}.workflows`;\n export const Traces = `${Devtools.Edge.id}.traces`;\n export const Testing = `${Devtools.Edge.id}.testing`;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,cAAc;AACvB,SAAuBC,qBAAqB;AAUrC,IAAMC,eAA0CC,cAAgC;EACrFC,SAAS;EACTC,OAAO,MAAA;EAAO;EACdC,MAAM,MAAA;EAAO;AACf,CAAA;AAEO,IAAMC,sBAAsBC,OAAOC,QACxCD,OAAOE,OAAO;EACZC,WAAWH,OAAOI,SAASJ,OAAOK,OAAO;AAC3C,CAAA,CAAA;;UAKeC,WAAAA;YAEFC,KAAK;;YAEDC,SAAAA;YACFD,KAAK,GAAGD,UAASC,EAAE;YACnBE,SAAS,GAAGH,UAASE,OAAOD,EAAE;YAC9BG,UAAU,GAAGJ,UAASE,OAAOD,EAAE;YAC/BI,OAAO,GAAGL,UAASE,OAAOD,EAAE;YAC5BK,cAAc,GAAGN,UAASE,OAAOD,EAAE;YACnCM,UAAU,GAAGP,UAASE,OAAOD,EAAE;EAC9C,GAPiBC,SAAAA,UAAAA,WAAAA,UAAAA,SAAAA,CAAAA,EAAAA;;YASAM,OAAAA;UACFP,KAAK,GAAGD,UAASC,EAAE;UACnBQ,WAAW,GAAGT,UAASQ,KAAKP,EAAE;UAC9BS,UAAU,GAAGV,UAASQ,KAAKP,EAAE;UAC7BU,UAAU,GAAGX,UAASQ,KAAKP,EAAE;UAC7BW,cAAc,GAAGZ,UAASQ,KAAKP,EAAE;EAChD,GANiBO,OAAAA,UAAAA,SAAAA,UAAAA,OAAAA,CAAAA,EAAAA;;YAQAK,OAA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,OAAAA,CAAAA,EAAAA;AAOnB,GAtDiB7B,aAAAA,WAAAA,CAAAA,EAAAA;",
|
|
6
|
+
"names": ["Schema", "createContext", "DebugContext", "createContext", "running", "start", "stop", "DebugSettingsSchema", "Schema", "mutable", "Struct", "wireframe", "optional", "Boolean", "Devtools", "id", "Client", "Config", "Storage", "Logs", "Diagnostics", "Tracing", "Halo", "Identity", "Devices", "Keyring", "Credentials", "Echo", "Spaces", "Space", "Feeds", "Objects", "Automerge", "Queues", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Agent", "Dashboard", "Search", "Edge", "Workflows", "Traces", "Testing"]
|
|
7
|
+
}
|
|
@@ -8,10 +8,10 @@ import { Capabilities, contributes, defineModule, definePlugin, Events } from "@
|
|
|
8
8
|
|
|
9
9
|
// packages/plugins/plugin-debug/src/capabilities/index.ts
|
|
10
10
|
import { lazy } from "@dxos/app-framework";
|
|
11
|
-
var AppGraphBuilder = lazy(() => import("./app-graph-builder-
|
|
11
|
+
var AppGraphBuilder = lazy(() => import("./app-graph-builder-45VXMVPN.mjs"));
|
|
12
12
|
var ReactContext = lazy(() => import("./react-context-ZRLN5KUI.mjs"));
|
|
13
|
-
var ReactSurface = lazy(() => import("./react-surface-
|
|
14
|
-
var DebugSettings = lazy(() => import("./settings-
|
|
13
|
+
var ReactSurface = lazy(() => import("./react-surface-UZUZU3MI.mjs"));
|
|
14
|
+
var DebugSettings = lazy(() => import("./settings-6SG54GZO.mjs"));
|
|
15
15
|
|
|
16
16
|
// packages/plugins/plugin-debug/src/translations.ts
|
|
17
17
|
var translations_default = [
|
|
@@ -23,6 +23,7 @@ var translations_default = [
|
|
|
23
23
|
"mutation period": "Mutation period",
|
|
24
24
|
"open devtools label": "Open DevTools",
|
|
25
25
|
"devtools label": "DevTools",
|
|
26
|
+
"devtools overview label": "DevTools Stats",
|
|
26
27
|
"debug label": "Debug",
|
|
27
28
|
"settings show debug panel": "Show Debug panel.",
|
|
28
29
|
"settings show devtools panel": "Show DevTools panel.",
|
|
@@ -56,6 +57,7 @@ var translations_default = [
|
|
|
56
57
|
"space label": "Space",
|
|
57
58
|
"feeds label": "Feeds",
|
|
58
59
|
"objects label": "Objects",
|
|
60
|
+
"schema label": "Schema",
|
|
59
61
|
"automerge label": "Automerge",
|
|
60
62
|
"queues label": "Queues",
|
|
61
63
|
"members label": "Members",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/DebugPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { type Client } from '@dxos/react-client';\n\nimport { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\n\n// TODO(wittjosiah): Rename to DevtoolsPlugin?\nexport const DebugPlugin = () => {\n setupDevtools();\n\n return definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/settings`,\n activatesOn: Events.SetupSettings,\n activate: DebugSettings,\n }),\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/react-context`,\n activatesOn: Events.Startup,\n activate: ReactContext,\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: AppGraphBuilder,\n }),\n ]);\n};\n\nconst setupDevtools = () => {\n (globalThis as any).composer ??= {};\n\n // Used to test how composer handles breaking protocol changes.\n (globalThis as any).composer.changeStorageVersionInMetadata = async (version: number) => {\n const { changeStorageVersionInMetadata } = await import('@dxos/echo-pipeline/testing');\n const { createStorageObjects } = await import('@dxos/client-services');\n const client: Client = (window as any).dxos.client;\n const config = client.config;\n await client.destroy();\n const { storage } = createStorageObjects(config.values?.runtime?.client?.storage ?? {});\n await changeStorageVersionInMetadata(storage, version);\n location.pathname = '/';\n };\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = lazy(() => import('./app-graph-builder'));\nexport const ReactContext = lazy(() => import('./react-context'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\nexport const DebugSettings = lazy(() => import('./settings'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { DEBUG_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [DEBUG_PLUGIN]: {\n 'plugin name': 'Debug',\n 'mutation count': 'Number of mutations',\n 'mutation period': 'Mutation period',\n 'open devtools label': 'Open DevTools',\n 'devtools label': 'DevTools',\n 'debug label': 'Debug',\n 'settings show debug panel': 'Show Debug panel.',\n 'settings show devtools panel': 'Show DevTools panel.',\n 'settings wireframe': 'Show wireframes.',\n 'settings repair': 'Run repair tool.',\n 'settings download diagnostics': 'Download diagnostics.',\n 'settings uploaded': 'Uploaded to IPFS',\n 'settings uploaded to clipboard': 'URL copied to clipboard.',\n 'settings repair success': 'Repair succeeded',\n 'settings repair failed': 'Repair failed',\n 'settings choose storage adaptor': 'Storage adaptor (worker reload required).',\n 'settings storage adaptor idb label': 'IndexedDB',\n 'settings storage adaptor opfs label': 'OPFS',\n 'settings data store label': 'Data Store',\n 'settings storage adapter changed alert':\n 'Warning: Swapping the storage adapter will make your data unavailable.',\n 'settings space fragmentation': 'Enable AM space fragmentation',\n 'open debug panel label': 'Show Debug',\n 'client label': 'Client',\n 'config label': 'Config',\n 'storage label': 'Storage',\n 'logs label': 'Logs',\n 'diagnostics label': 'Diagnostics',\n 'tracing label': 'Tracing',\n 'halo label': 'HALO',\n 'identity label': 'Identity',\n 'devices label': 'Devices',\n 'keyring label': 'Keyring',\n 'credentials label': 'Credentials',\n 'echo label': 'ECHO',\n 'spaces label': 'Spaces',\n 'space label': 'Space',\n 'feeds label': 'Feeds',\n 'objects label': 'Objects',\n 'automerge label': 'Automerge',\n 'queues label': 'Queues',\n 'members label': 'Members',\n 'metadata label': 'Metadata',\n 'mesh label': 'MESH',\n 'signal label': 'Signal',\n 'swarm label': 'Swarm',\n 'network label': 'Network',\n 'agent label': 'Agent',\n 'dashboard label': 'Dashboard',\n 'search label': 'Search',\n 'edge label': 'EDGE',\n 'workflows label': 'Workflows',\n 'traces label': 'Traces',\n 'testing label': 'Testing',\n },\n },\n },\n];\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAc;;;ACA9E,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC1C,IAAMC,eAAeD,KAAK,MAAM,OAAO,8BAAA,CAAA;AACvC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;AACvC,IAAMG,gBAAgBH,KAAK,MAAM,OAAO,yBAAA,CAAA;;;ACH/C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACI,YAAAA,GAAe;QACd,eAAe;QACf,kBAAkB;QAClB,mBAAmB;QACnB,uBAAuB;QACvB,kBAAkB;QAClB,eAAe;QACf,6BAA6B;QAC7B,gCAAgC;QAChC,sBAAsB;QACtB,mBAAmB;QACnB,iCAAiC;QACjC,qBAAqB;QACrB,kCAAkC;QAClC,2BAA2B;QAC3B,0BAA0B;QAC1B,mCAAmC;QACnC,sCAAsC;QACtC,uCAAuC;QACvC,6BAA6B;QAC7B,0CACE;QACF,gCAAgC;QAChC,0BAA0B;QAC1B,gBAAgB;QAChB,gBAAgB;QAChB,iBAAiB;QACjB,cAAc;QACd,qBAAqB;QACrB,iBAAiB;QACjB,cAAc;QACd,kBAAkB;QAClB,iBAAiB;QACjB,iBAAiB;QACjB,qBAAqB;QACrB,cAAc;QACd,gBAAgB;QAChB,eAAe;QACf,eAAe;QACf,iBAAiB;QACjB,mBAAmB;QACnB,gBAAgB;QAChB,iBAAiB;QACjB,kBAAkB;QAClB,cAAc;QACd,gBAAgB;QAChB,eAAe;QACf,iBAAiB;QACjB,eAAe;QACf,mBAAmB;QACnB,gBAAgB;QAChB,cAAc;QACd,mBAAmB;QACnB,gBAAgB;QAChB,iBAAiB;MACnB;IACF;EACF;;;;
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { type Client } from '@dxos/react-client';\n\nimport { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\n\n// TODO(wittjosiah): Rename to DevtoolsPlugin?\nexport const DebugPlugin = () => {\n setupDevtools();\n\n return definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/settings`,\n activatesOn: Events.SetupSettings,\n activate: DebugSettings,\n }),\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/react-context`,\n activatesOn: Events.Startup,\n activate: ReactContext,\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: AppGraphBuilder,\n }),\n ]);\n};\n\nconst setupDevtools = () => {\n (globalThis as any).composer ??= {};\n\n // Used to test how composer handles breaking protocol changes.\n (globalThis as any).composer.changeStorageVersionInMetadata = async (version: number) => {\n const { changeStorageVersionInMetadata } = await import('@dxos/echo-pipeline/testing');\n const { createStorageObjects } = await import('@dxos/client-services');\n const client: Client = (window as any).dxos.client;\n const config = client.config;\n await client.destroy();\n const { storage } = createStorageObjects(config.values?.runtime?.client?.storage ?? {});\n await changeStorageVersionInMetadata(storage, version);\n location.pathname = '/';\n };\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = lazy(() => import('./app-graph-builder'));\nexport const ReactContext = lazy(() => import('./react-context'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\nexport const DebugSettings = lazy(() => import('./settings'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { DEBUG_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [DEBUG_PLUGIN]: {\n 'plugin name': 'Debug',\n 'mutation count': 'Number of mutations',\n 'mutation period': 'Mutation period',\n 'open devtools label': 'Open DevTools',\n 'devtools label': 'DevTools',\n 'devtools overview label': 'DevTools Stats',\n 'debug label': 'Debug',\n 'settings show debug panel': 'Show Debug panel.',\n 'settings show devtools panel': 'Show DevTools panel.',\n 'settings wireframe': 'Show wireframes.',\n 'settings repair': 'Run repair tool.',\n 'settings download diagnostics': 'Download diagnostics.',\n 'settings uploaded': 'Uploaded to IPFS',\n 'settings uploaded to clipboard': 'URL copied to clipboard.',\n 'settings repair success': 'Repair succeeded',\n 'settings repair failed': 'Repair failed',\n 'settings choose storage adaptor': 'Storage adaptor (worker reload required).',\n 'settings storage adaptor idb label': 'IndexedDB',\n 'settings storage adaptor opfs label': 'OPFS',\n 'settings data store label': 'Data Store',\n 'settings storage adapter changed alert':\n 'Warning: Swapping the storage adapter will make your data unavailable.',\n 'settings space fragmentation': 'Enable AM space fragmentation',\n 'open debug panel label': 'Show Debug',\n 'client label': 'Client',\n 'config label': 'Config',\n 'storage label': 'Storage',\n 'logs label': 'Logs',\n 'diagnostics label': 'Diagnostics',\n 'tracing label': 'Tracing',\n 'halo label': 'HALO',\n 'identity label': 'Identity',\n 'devices label': 'Devices',\n 'keyring label': 'Keyring',\n 'credentials label': 'Credentials',\n 'echo label': 'ECHO',\n 'spaces label': 'Spaces',\n 'space label': 'Space',\n 'feeds label': 'Feeds',\n 'objects label': 'Objects',\n 'schema label': 'Schema',\n 'automerge label': 'Automerge',\n 'queues label': 'Queues',\n 'members label': 'Members',\n 'metadata label': 'Metadata',\n 'mesh label': 'MESH',\n 'signal label': 'Signal',\n 'swarm label': 'Swarm',\n 'network label': 'Network',\n 'agent label': 'Agent',\n 'dashboard label': 'Dashboard',\n 'search label': 'Search',\n 'edge label': 'EDGE',\n 'workflows label': 'Workflows',\n 'traces label': 'Traces',\n 'testing label': 'Testing',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAc;;;ACA9E,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC1C,IAAMC,eAAeD,KAAK,MAAM,OAAO,8BAAA,CAAA;AACvC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;AACvC,IAAMG,gBAAgBH,KAAK,MAAM,OAAO,yBAAA,CAAA;;;ACH/C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACI,YAAAA,GAAe;QACd,eAAe;QACf,kBAAkB;QAClB,mBAAmB;QACnB,uBAAuB;QACvB,kBAAkB;QAClB,2BAA2B;QAC3B,eAAe;QACf,6BAA6B;QAC7B,gCAAgC;QAChC,sBAAsB;QACtB,mBAAmB;QACnB,iCAAiC;QACjC,qBAAqB;QACrB,kCAAkC;QAClC,2BAA2B;QAC3B,0BAA0B;QAC1B,mCAAmC;QACnC,sCAAsC;QACtC,uCAAuC;QACvC,6BAA6B;QAC7B,0CACE;QACF,gCAAgC;QAChC,0BAA0B;QAC1B,gBAAgB;QAChB,gBAAgB;QAChB,iBAAiB;QACjB,cAAc;QACd,qBAAqB;QACrB,iBAAiB;QACjB,cAAc;QACd,kBAAkB;QAClB,iBAAiB;QACjB,iBAAiB;QACjB,qBAAqB;QACrB,cAAc;QACd,gBAAgB;QAChB,eAAe;QACf,eAAe;QACf,iBAAiB;QACjB,gBAAgB;QAChB,mBAAmB;QACnB,gBAAgB;Q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
|
"names": ["Capabilities", "contributes", "defineModule", "definePlugin", "Events", "lazy", "AppGraphBuilder", "lazy", "ReactContext", "ReactSurface", "DebugSettings", "DEBUG_PLUGIN", "DebugPlugin", "setupDevtools", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupSettings", "activate", "DebugSettings", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations", "Startup", "ReactContext", "SetupReactSurface", "ReactSurface", "SetupAppGraph", "AppGraphBuilder", "globalThis", "composer", "changeStorageVersionInMetadata", "version", "createStorageObjects", "client", "window", "dxos", "config", "destroy", "storage", "values", "runtime", "location", "pathname"]
|
|
7
7
|
}
|