@dxos/plugin-debug 0.8.2-main.f081794 → 0.8.2-main.fbd8ed0
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/{SpaceGenerator-RESAAW32.mjs → SpaceGenerator-CGRY2M6A.mjs} +32 -31
- package/dist/lib/browser/SpaceGenerator-CGRY2M6A.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-RTKWOHHT.mjs → app-graph-builder-SSTQU7MF.mjs} +87 -82
- package/dist/lib/browser/app-graph-builder-SSTQU7MF.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 -4
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-E63KL63Y.mjs → react-surface-BQSJLXPZ.mjs} +25 -17
- package/dist/lib/browser/react-surface-BQSJLXPZ.mjs.map +7 -0
- package/dist/lib/browser/{settings-BIRIGKTH.mjs → settings-6SG54GZO.mjs} +2 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -178
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/Container.d.ts.map +1 -1
- package/dist/types/src/components/DebugApp/Tree.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/DebugSettings.d.ts.map +1 -1
- package/dist/types/src/components/DebugStatus.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.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 +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/translations.d.ts +1 -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/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +58 -52
- package/src/capabilities/app-graph-builder.ts +415 -379
- package/src/capabilities/react-surface.tsx +23 -12
- package/src/components/DebugObjectPanel.tsx +2 -2
- package/src/components/DebugStatus.tsx +2 -5
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +3 -3
- package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +1 -1
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +1 -1
- package/src/components/SpaceGenerator/presets.ts +18 -16
- package/src/components/Wireframe.tsx +2 -2
- package/src/translations.ts +2 -1
- package/src/types.ts +6 -5
- package/dist/lib/browser/SpaceGenerator-RESAAW32.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-RTKWOHHT.mjs.map +0 -7
- package/dist/lib/browser/chunk-TCEHALD4.mjs.map +0 -7
- package/dist/lib/browser/react-surface-E63KL63Y.mjs.map +0 -7
- /package/dist/lib/browser/{settings-BIRIGKTH.mjs.map → settings-6SG54GZO.mjs.map} +0 -0
|
@@ -1,31 +1,28 @@
|
|
|
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
|
+
import { Rx } from "@effect-rx/rx-react";
|
|
10
|
+
import { Option, pipe } from "effect";
|
|
9
11
|
import { contributes, Capabilities } from "@dxos/app-framework";
|
|
10
|
-
import { ClientCapabilities } from "@dxos/plugin-client";
|
|
11
12
|
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
|
|
13
|
+
import { createExtension, ROOT_ID, rxFromSignal } from "@dxos/plugin-graph";
|
|
14
|
+
import { getActiveSpace, SPACE_PLUGIN } from "@dxos/plugin-space";
|
|
15
|
+
import { isEchoObject } from "@dxos/react-client/echo";
|
|
15
16
|
var DEVTOOLS_TYPE = "dxos.org/plugin/debug/devtools";
|
|
16
17
|
var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
|
|
17
18
|
// Devtools node.
|
|
18
19
|
createExtension({
|
|
19
20
|
id: "dxos.org/plugin/debug/devtools",
|
|
20
|
-
|
|
21
|
-
|
|
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);
|
|
21
|
+
connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID || node2.type === `${SPACE_PLUGIN}/settings` ? Option.some(node2) : Option.none()), Option.map((node2) => {
|
|
22
|
+
const space = get(rxFromSignal(() => getActiveSpace(context)));
|
|
26
23
|
return [
|
|
27
24
|
{
|
|
28
|
-
id: `${Devtools.id}-${
|
|
25
|
+
id: `${Devtools.id}-${node2.id}`,
|
|
29
26
|
data: null,
|
|
30
27
|
type: DEVTOOLS_TYPE,
|
|
31
28
|
properties: {
|
|
@@ -36,13 +33,13 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
36
33
|
}
|
|
37
34
|
],
|
|
38
35
|
icon: "ph--hammer--regular",
|
|
39
|
-
disposition: "
|
|
36
|
+
disposition: "pin-end",
|
|
40
37
|
position: "fallback"
|
|
41
38
|
},
|
|
42
39
|
nodes: [
|
|
43
|
-
...space ? [
|
|
40
|
+
...space && node2.type === `${SPACE_PLUGIN}/settings` ? [
|
|
44
41
|
{
|
|
45
|
-
id: `debug-${
|
|
42
|
+
id: `debug-${node2.id}`,
|
|
46
43
|
type: "dxos.org/plugin/debug/space",
|
|
47
44
|
data: {
|
|
48
45
|
space,
|
|
@@ -60,7 +57,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
60
57
|
}
|
|
61
58
|
] : [],
|
|
62
59
|
{
|
|
63
|
-
id: `${Devtools.Client.id}-${
|
|
60
|
+
id: `${Devtools.Client.id}-${node2.id}`,
|
|
64
61
|
data: null,
|
|
65
62
|
type: DEVTOOLS_TYPE,
|
|
66
63
|
properties: {
|
|
@@ -74,7 +71,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
74
71
|
},
|
|
75
72
|
nodes: [
|
|
76
73
|
{
|
|
77
|
-
id: `${Devtools.Client.Config}-${
|
|
74
|
+
id: `${Devtools.Client.Config}-${node2.id}`,
|
|
78
75
|
data: Devtools.Client.Config,
|
|
79
76
|
type: DEVTOOLS_TYPE,
|
|
80
77
|
properties: {
|
|
@@ -88,7 +85,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
88
85
|
}
|
|
89
86
|
},
|
|
90
87
|
{
|
|
91
|
-
id: `${Devtools.Client.Storage}-${
|
|
88
|
+
id: `${Devtools.Client.Storage}-${node2.id}`,
|
|
92
89
|
data: Devtools.Client.Storage,
|
|
93
90
|
type: DEVTOOLS_TYPE,
|
|
94
91
|
properties: {
|
|
@@ -102,7 +99,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
102
99
|
}
|
|
103
100
|
},
|
|
104
101
|
{
|
|
105
|
-
id: `${Devtools.Client.Logs}-${
|
|
102
|
+
id: `${Devtools.Client.Logs}-${node2.id}`,
|
|
106
103
|
data: Devtools.Client.Logs,
|
|
107
104
|
type: DEVTOOLS_TYPE,
|
|
108
105
|
properties: {
|
|
@@ -116,7 +113,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
116
113
|
}
|
|
117
114
|
},
|
|
118
115
|
{
|
|
119
|
-
id: `${Devtools.Client.Diagnostics}-${
|
|
116
|
+
id: `${Devtools.Client.Diagnostics}-${node2.id}`,
|
|
120
117
|
data: Devtools.Client.Diagnostics,
|
|
121
118
|
type: DEVTOOLS_TYPE,
|
|
122
119
|
properties: {
|
|
@@ -130,7 +127,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
130
127
|
}
|
|
131
128
|
},
|
|
132
129
|
{
|
|
133
|
-
id: `${Devtools.Client.Tracing}-${
|
|
130
|
+
id: `${Devtools.Client.Tracing}-${node2.id}`,
|
|
134
131
|
data: Devtools.Client.Tracing,
|
|
135
132
|
type: DEVTOOLS_TYPE,
|
|
136
133
|
properties: {
|
|
@@ -146,7 +143,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
146
143
|
]
|
|
147
144
|
},
|
|
148
145
|
{
|
|
149
|
-
id: `${Devtools.Halo.id}-${
|
|
146
|
+
id: `${Devtools.Halo.id}-${node2.id}`,
|
|
150
147
|
data: null,
|
|
151
148
|
type: DEVTOOLS_TYPE,
|
|
152
149
|
properties: {
|
|
@@ -160,7 +157,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
160
157
|
},
|
|
161
158
|
nodes: [
|
|
162
159
|
{
|
|
163
|
-
id: `${Devtools.Halo.Identity}-${
|
|
160
|
+
id: `${Devtools.Halo.Identity}-${node2.id}`,
|
|
164
161
|
data: Devtools.Halo.Identity,
|
|
165
162
|
type: DEVTOOLS_TYPE,
|
|
166
163
|
properties: {
|
|
@@ -174,7 +171,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
174
171
|
}
|
|
175
172
|
},
|
|
176
173
|
{
|
|
177
|
-
id: `${Devtools.Halo.Devices}-${
|
|
174
|
+
id: `${Devtools.Halo.Devices}-${node2.id}`,
|
|
178
175
|
data: Devtools.Halo.Devices,
|
|
179
176
|
type: DEVTOOLS_TYPE,
|
|
180
177
|
properties: {
|
|
@@ -188,7 +185,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
188
185
|
}
|
|
189
186
|
},
|
|
190
187
|
{
|
|
191
|
-
id: `${Devtools.Halo.Keyring}-${
|
|
188
|
+
id: `${Devtools.Halo.Keyring}-${node2.id}`,
|
|
192
189
|
data: Devtools.Halo.Keyring,
|
|
193
190
|
type: DEVTOOLS_TYPE,
|
|
194
191
|
properties: {
|
|
@@ -202,7 +199,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
202
199
|
}
|
|
203
200
|
},
|
|
204
201
|
{
|
|
205
|
-
id: `${Devtools.Halo.Credentials}-${
|
|
202
|
+
id: `${Devtools.Halo.Credentials}-${node2.id}`,
|
|
206
203
|
data: Devtools.Halo.Credentials,
|
|
207
204
|
type: DEVTOOLS_TYPE,
|
|
208
205
|
properties: {
|
|
@@ -218,7 +215,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
218
215
|
]
|
|
219
216
|
},
|
|
220
217
|
{
|
|
221
|
-
id: `${Devtools.Echo.id}-${
|
|
218
|
+
id: `${Devtools.Echo.id}-${node2.id}`,
|
|
222
219
|
data: null,
|
|
223
220
|
type: DEVTOOLS_TYPE,
|
|
224
221
|
properties: {
|
|
@@ -232,7 +229,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
232
229
|
},
|
|
233
230
|
nodes: [
|
|
234
231
|
{
|
|
235
|
-
id: `${Devtools.Echo.Spaces}-${
|
|
232
|
+
id: `${Devtools.Echo.Spaces}-${node2.id}`,
|
|
236
233
|
data: Devtools.Echo.Spaces,
|
|
237
234
|
type: DEVTOOLS_TYPE,
|
|
238
235
|
properties: {
|
|
@@ -246,7 +243,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
246
243
|
}
|
|
247
244
|
},
|
|
248
245
|
{
|
|
249
|
-
id: `${Devtools.Echo.Space}-${
|
|
246
|
+
id: `${Devtools.Echo.Space}-${node2.id}`,
|
|
250
247
|
data: Devtools.Echo.Space,
|
|
251
248
|
type: DEVTOOLS_TYPE,
|
|
252
249
|
properties: {
|
|
@@ -260,7 +257,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
260
257
|
}
|
|
261
258
|
},
|
|
262
259
|
{
|
|
263
|
-
id: `${Devtools.Echo.Feeds}-${
|
|
260
|
+
id: `${Devtools.Echo.Feeds}-${node2.id}`,
|
|
264
261
|
data: Devtools.Echo.Feeds,
|
|
265
262
|
type: DEVTOOLS_TYPE,
|
|
266
263
|
properties: {
|
|
@@ -274,7 +271,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
274
271
|
}
|
|
275
272
|
},
|
|
276
273
|
{
|
|
277
|
-
id: `${Devtools.Echo.Objects}-${
|
|
274
|
+
id: `${Devtools.Echo.Objects}-${node2.id}`,
|
|
278
275
|
data: Devtools.Echo.Objects,
|
|
279
276
|
type: DEVTOOLS_TYPE,
|
|
280
277
|
properties: {
|
|
@@ -284,11 +281,25 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
284
281
|
ns: DEBUG_PLUGIN
|
|
285
282
|
}
|
|
286
283
|
],
|
|
284
|
+
icon: "ph--cube--regular"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
id: `${Devtools.Echo.Schema}-${node2.id}`,
|
|
289
|
+
data: Devtools.Echo.Schema,
|
|
290
|
+
type: DEVTOOLS_TYPE,
|
|
291
|
+
properties: {
|
|
292
|
+
label: [
|
|
293
|
+
"schema label",
|
|
294
|
+
{
|
|
295
|
+
ns: DEBUG_PLUGIN
|
|
296
|
+
}
|
|
297
|
+
],
|
|
287
298
|
icon: "ph--database--regular"
|
|
288
299
|
}
|
|
289
300
|
},
|
|
290
301
|
{
|
|
291
|
-
id: `${Devtools.Echo.Automerge}-${
|
|
302
|
+
id: `${Devtools.Echo.Automerge}-${node2.id}`,
|
|
292
303
|
data: Devtools.Echo.Automerge,
|
|
293
304
|
type: DEVTOOLS_TYPE,
|
|
294
305
|
properties: {
|
|
@@ -302,7 +313,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
302
313
|
}
|
|
303
314
|
},
|
|
304
315
|
{
|
|
305
|
-
id: `${Devtools.Echo.Queues}-${
|
|
316
|
+
id: `${Devtools.Echo.Queues}-${node2.id}`,
|
|
306
317
|
data: Devtools.Echo.Queues,
|
|
307
318
|
type: DEVTOOLS_TYPE,
|
|
308
319
|
properties: {
|
|
@@ -316,7 +327,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
316
327
|
}
|
|
317
328
|
},
|
|
318
329
|
{
|
|
319
|
-
id: `${Devtools.Echo.Members}-${
|
|
330
|
+
id: `${Devtools.Echo.Members}-${node2.id}`,
|
|
320
331
|
data: Devtools.Echo.Members,
|
|
321
332
|
type: DEVTOOLS_TYPE,
|
|
322
333
|
properties: {
|
|
@@ -330,7 +341,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
330
341
|
}
|
|
331
342
|
},
|
|
332
343
|
{
|
|
333
|
-
id: `${Devtools.Echo.Metadata}-${
|
|
344
|
+
id: `${Devtools.Echo.Metadata}-${node2.id}`,
|
|
334
345
|
data: Devtools.Echo.Metadata,
|
|
335
346
|
type: DEVTOOLS_TYPE,
|
|
336
347
|
properties: {
|
|
@@ -346,7 +357,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
346
357
|
]
|
|
347
358
|
},
|
|
348
359
|
{
|
|
349
|
-
id: `${Devtools.Mesh.id}-${
|
|
360
|
+
id: `${Devtools.Mesh.id}-${node2.id}`,
|
|
350
361
|
data: null,
|
|
351
362
|
type: DEVTOOLS_TYPE,
|
|
352
363
|
properties: {
|
|
@@ -360,7 +371,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
360
371
|
},
|
|
361
372
|
nodes: [
|
|
362
373
|
{
|
|
363
|
-
id: `${Devtools.Mesh.Signal}-${
|
|
374
|
+
id: `${Devtools.Mesh.Signal}-${node2.id}`,
|
|
364
375
|
data: Devtools.Mesh.Signal,
|
|
365
376
|
type: DEVTOOLS_TYPE,
|
|
366
377
|
properties: {
|
|
@@ -374,7 +385,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
374
385
|
}
|
|
375
386
|
},
|
|
376
387
|
{
|
|
377
|
-
id: `${Devtools.Mesh.Swarm}-${
|
|
388
|
+
id: `${Devtools.Mesh.Swarm}-${node2.id}`,
|
|
378
389
|
data: Devtools.Mesh.Swarm,
|
|
379
390
|
type: DEVTOOLS_TYPE,
|
|
380
391
|
properties: {
|
|
@@ -388,7 +399,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
388
399
|
}
|
|
389
400
|
},
|
|
390
401
|
{
|
|
391
|
-
id: `${Devtools.Mesh.Network}-${
|
|
402
|
+
id: `${Devtools.Mesh.Network}-${node2.id}`,
|
|
392
403
|
data: Devtools.Mesh.Network,
|
|
393
404
|
type: DEVTOOLS_TYPE,
|
|
394
405
|
properties: {
|
|
@@ -425,7 +436,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
425
436
|
// ],
|
|
426
437
|
// },
|
|
427
438
|
{
|
|
428
|
-
id: `${Devtools.Edge.id}-${
|
|
439
|
+
id: `${Devtools.Edge.id}-${node2.id}`,
|
|
429
440
|
data: null,
|
|
430
441
|
type: DEVTOOLS_TYPE,
|
|
431
442
|
properties: {
|
|
@@ -439,7 +450,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
439
450
|
},
|
|
440
451
|
nodes: [
|
|
441
452
|
{
|
|
442
|
-
id: `${Devtools.Edge.Dashboard}-${
|
|
453
|
+
id: `${Devtools.Edge.Dashboard}-${node2.id}`,
|
|
443
454
|
data: Devtools.Edge.Dashboard,
|
|
444
455
|
type: DEVTOOLS_TYPE,
|
|
445
456
|
properties: {
|
|
@@ -453,7 +464,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
453
464
|
}
|
|
454
465
|
},
|
|
455
466
|
{
|
|
456
|
-
id: `${Devtools.Edge.Workflows}-${
|
|
467
|
+
id: `${Devtools.Edge.Workflows}-${node2.id}`,
|
|
457
468
|
data: Devtools.Edge.Workflows,
|
|
458
469
|
type: DEVTOOLS_TYPE,
|
|
459
470
|
properties: {
|
|
@@ -467,7 +478,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
467
478
|
}
|
|
468
479
|
},
|
|
469
480
|
{
|
|
470
|
-
id: `${Devtools.Edge.Traces}-${
|
|
481
|
+
id: `${Devtools.Edge.Traces}-${node2.id}`,
|
|
471
482
|
data: Devtools.Edge.Traces,
|
|
472
483
|
type: DEVTOOLS_TYPE,
|
|
473
484
|
properties: {
|
|
@@ -481,7 +492,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
481
492
|
}
|
|
482
493
|
},
|
|
483
494
|
{
|
|
484
|
-
id: `${Devtools.Edge.Testing}-${
|
|
495
|
+
id: `${Devtools.Edge.Testing}-${node2.id}`,
|
|
485
496
|
data: Devtools.Edge.Testing,
|
|
486
497
|
type: DEVTOOLS_TYPE,
|
|
487
498
|
properties: {
|
|
@@ -499,48 +510,43 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
499
510
|
]
|
|
500
511
|
}
|
|
501
512
|
];
|
|
502
|
-
}
|
|
513
|
+
}), Option.getOrElse(() => [])))
|
|
503
514
|
}),
|
|
504
515
|
// Debug node.
|
|
505
516
|
createExtension({
|
|
506
517
|
id: "dxos.org/plugin/debug/debug",
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
{
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
],
|
|
529
|
-
disposition: "navigation",
|
|
530
|
-
icon: "ph--bug--regular"
|
|
531
|
-
}
|
|
518
|
+
connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID ? Option.some(node2) : Option.none()), Option.flatMap(() => {
|
|
519
|
+
const [graph] = get(context.capabilities(Capabilities.AppGraph));
|
|
520
|
+
return graph ? Option.some(graph) : Option.none();
|
|
521
|
+
}), Option.flatMap((graph) => {
|
|
522
|
+
return Option.none();
|
|
523
|
+
}), Option.map((graph) => [
|
|
524
|
+
{
|
|
525
|
+
id: "dxos.org/plugin/debug/debug",
|
|
526
|
+
type: "dxos.org/plugin/debug/debug",
|
|
527
|
+
data: {
|
|
528
|
+
graph
|
|
529
|
+
},
|
|
530
|
+
properties: {
|
|
531
|
+
label: [
|
|
532
|
+
"debug label",
|
|
533
|
+
{
|
|
534
|
+
ns: DEBUG_PLUGIN
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
disposition: "navigation",
|
|
538
|
+
icon: "ph--bug--regular"
|
|
532
539
|
}
|
|
533
|
-
|
|
534
|
-
|
|
540
|
+
}
|
|
541
|
+
]), Option.getOrElse(() => [])))
|
|
535
542
|
}),
|
|
536
543
|
// Debug object companion.
|
|
537
544
|
createExtension({
|
|
538
545
|
id: `${DEBUG_PLUGIN}/debug-object`,
|
|
539
|
-
|
|
540
|
-
connector: ({ node }) => [
|
|
546
|
+
connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => isEchoObject(node2.data) ? Option.some(node2) : Option.none()), Option.map((node2) => [
|
|
541
547
|
{
|
|
542
548
|
id: [
|
|
543
|
-
|
|
549
|
+
node2.id,
|
|
544
550
|
"debug"
|
|
545
551
|
].join(ATTENDABLE_PATH_SEPARATOR),
|
|
546
552
|
type: PLANK_COMPANION_TYPE,
|
|
@@ -557,16 +563,15 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
557
563
|
position: "fallback"
|
|
558
564
|
}
|
|
559
565
|
}
|
|
560
|
-
]
|
|
566
|
+
]), Option.getOrElse(() => [])))
|
|
561
567
|
}),
|
|
562
568
|
// Devtools deck companion.
|
|
563
569
|
createExtension({
|
|
564
570
|
id: `${DEBUG_PLUGIN}/devtools-overview`,
|
|
565
|
-
|
|
566
|
-
connector: ({ node }) => [
|
|
571
|
+
connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID ? Option.some(node2) : Option.none()), Option.map((node2) => [
|
|
567
572
|
{
|
|
568
573
|
id: [
|
|
569
|
-
|
|
574
|
+
node2.id,
|
|
570
575
|
"devtools"
|
|
571
576
|
].join(ATTENDABLE_PATH_SEPARATOR),
|
|
572
577
|
type: DECK_COMPANION_TYPE,
|
|
@@ -578,15 +583,15 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
578
583
|
ns: DEBUG_PLUGIN
|
|
579
584
|
}
|
|
580
585
|
],
|
|
581
|
-
icon: "ph--
|
|
586
|
+
icon: "ph--equalizer--regular",
|
|
582
587
|
disposition: "hidden",
|
|
583
588
|
position: "fallback"
|
|
584
589
|
}
|
|
585
590
|
}
|
|
586
|
-
]
|
|
591
|
+
]), Option.getOrElse(() => [])))
|
|
587
592
|
})
|
|
588
593
|
]);
|
|
589
594
|
export {
|
|
590
595
|
app_graph_builder_default as default
|
|
591
596
|
};
|
|
592
|
-
//# sourceMappingURL=app-graph-builder-
|
|
597
|
+
//# sourceMappingURL=app-graph-builder-SSTQU7MF.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 { Rx } from '@effect-rx/rx-react';\nimport { Option, pipe } from 'effect';\n\nimport { contributes, Capabilities, type PluginContext } from '@dxos/app-framework';\nimport { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';\nimport { createExtension, ROOT_ID, rxFromSignal } from '@dxos/plugin-graph';\nimport { getActiveSpace, SPACE_PLUGIN } from '@dxos/plugin-space';\nimport { isEchoObject } 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: PluginContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n // Devtools node.\n createExtension({\n id: 'dxos.org/plugin/debug/devtools',\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) =>\n node.id === ROOT_ID || node.type === `${SPACE_PLUGIN}/settings` ? Option.some(node) : Option.none(),\n ),\n Option.map((node) => {\n const space = get(rxFromSignal(() => getActiveSpace(context)));\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: 'pin-end',\n position: 'fallback',\n },\n nodes: [\n ...(space && node.type === `${SPACE_PLUGIN}/settings`\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 Option.getOrElse(() => []),\n ),\n ),\n }),\n\n // Debug node.\n createExtension({\n id: 'dxos.org/plugin/debug/debug',\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),\n Option.flatMap(() => {\n const [graph] = get(context.capabilities(Capabilities.AppGraph));\n return graph ? Option.some(graph) : Option.none();\n }),\n Option.flatMap((graph) => {\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 Option.none();\n }),\n Option.map((graph) => [\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 Option.getOrElse(() => []),\n ),\n ),\n }),\n\n // Debug object companion.\n createExtension({\n id: `${DEBUG_PLUGIN}/debug-object`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (isEchoObject(node.data) ? Option.some(node) : Option.none())),\n Option.map((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 Option.getOrElse(() => []),\n ),\n ),\n }),\n\n // Devtools deck companion.\n createExtension({\n id: `${DEBUG_PLUGIN}/devtools-overview`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),\n Option.map((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--equalizer--regular',\n disposition: 'hidden',\n position: 'fallback',\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,UAAU;AACnB,SAASC,QAAQC,YAAY;AAE7B,SAASC,aAAaC,oBAAwC;AAC9D,SAASC,2BAA2BC,qBAAqBC,4BAA4B;AACrF,SAASC,iBAAiBC,SAASC,oBAAoB;AACvD,SAASC,gBAAgBC,oBAAoB;AAC7C,SAASC,oBAAoB;AAK7B,IAAMC,gBAAgB;AAEtB,IAAA,4BAAe,CAACC,YACdC,YAAYC,aAAaC,iBAAiB;;EAExCC,gBAAgB;IACdC,IAAI;IACJC,WAAW,CAACC,SACVC,GAAGC,KAAK,CAACC,QACPC,KACED,IAAIH,IAAAA,GACJK,OAAOC,QAAQ,CAACN,UACdA,MAAKF,OAAOS,WAAWP,MAAKQ,SAAS,GAAGC,YAAAA,cAA0BJ,OAAOK,KAAKV,KAAAA,IAAQK,OAAOM,KAAI,CAAA,GAEnGN,OAAOO,IAAI,CAACZ,UAAAA;AACV,YAAMa,QAAQV,IAAIW,aAAa,MAAMC,eAAetB,OAAAA,CAAAA,CAAAA;AAEpD,aAAO;QACL;UACEK,IAAI,GAAGkB,SAASlB,EAAE,IAAIE,MAAKF,EAAE;UAC7BmB,MAAM;UACNT,MAAMhB;UACN0B,YAAY;YACVC,OAAO;cAAC;cAAkB;gBAAEC,IAAIC;cAAa;;YAC7CC,MAAM;YACNC,aAAa;YACbC,UAAU;UACZ;UACAC,OAAO;eACDZ,SAASb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M,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;;EAGA3D,gBAAgB;IACdC,IAAI,GAAGuB,YAAAA;IACPtB,WAAW,CAACC,SACVC,GAAGC,KAAK,CAACC,QACPC,KACED,IAAIH,IAAAA,GACJK,OAAOC,QAAQ,CAACN,UAAU4D,aAAa5D,MAAKiB,IAAI,IAAIZ,OAAOK,KAAKV,KAAAA,IAAQK,OAAOM,KAAI,CAAA,GACnFN,OAAOO,IAAI,CAACZ,UAAS;MACnB;QACEF,IAAI;UAACE,MAAKF;UAAI;UAAS+D,KAAKC,yBAAAA;QAC5BtD,MAAMuD;QACN9C,MAAM;QACNC,YAAY;UACVC,OAAO;YAAC;YAAe;cAAEC,IAAIC;YAAa;;UAC1CC,MAAM;UACNC,aAAa;UACbC,UAAU;QACZ;MACF;KACD,GACDnB,OAAOmD,UAAU,MAAM,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;;EAGA3D,gBAAgB;IACdC,IAAI,GAAGuB,YAAAA;IACPtB,WAAW,CAACC,SACVC,GAAGC,KAAK,CAACC,QACPC,KACED,IAAIH,IAAAA,GACJK,OAAOC,QAAQ,CAACN,UAAUA,MAAKF,OAAOS,UAAUF,OAAOK,KAAKV,KAAAA,IAAQK,OAAOM,KAAI,CAAA,GAC/EN,OAAOO,IAAI,CAACZ,UAAS;MACnB;QACEF,IAAI;UAACE,MAAKF;UAAI;UAAY+D,KAAKC,yBAAAA;QAC/BtD,MAAMwD;QACN/C,MAAM;QACNC,YAAY;UACVC,OAAO;YAAC;YAA2B;cAAEC,IAAIC;YAAa;;UACtDC,MAAM;UACNC,aAAa;UACbC,UAAU;QACZ;MACF;KACD,GACDnB,OAAOmD,UAAU,MAAM,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;CACD;",
|
|
6
|
+
"names": ["Rx", "Option", "pipe", "contributes", "Capabilities", "ATTENDABLE_PATH_SEPARATOR", "DECK_COMPANION_TYPE", "PLANK_COMPANION_TYPE", "createExtension", "ROOT_ID", "rxFromSignal", "getActiveSpace", "SPACE_PLUGIN", "isEchoObject", "DEVTOOLS_TYPE", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "connector", "node", "Rx", "make", "get", "pipe", "Option", "flatMap", "ROOT_ID", "type", "SPACE_PLUGIN", "some", "none", "map", "space", "rxFromSignal", "getActiveSpace", "Devtools", "data", "properties", "label", "ns", "DEBUG_PLUGIN", "icon", "disposition", "position", "nodes", "Client", "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", "getOrElse", "graph", "capabilities", "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,GAA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GzB,UAASsB,KAAKrB,EAAE;EAC5C,GALiBqB,OAAAA,UAAAA,SAAAA,UAAAA,OAAAA,CAAAA,EAAAA;;YAOAI,QAAAA;WACFzB,KAAK,GAAGD,UAASC,EAAE;WACnB0B,YAAY,GAAG3B,UAAS0B,MAAMzB,EAAE;WAChC2B,SAAS,GAAG5B,UAAS0B,MAAMzB,EAAE;EAC5C,GAJiByB,QAAAA,UAAAA,UAAAA,UAAAA,QAAAA,CAAAA,EAAAA;;YAMAG,OAAAA;UACF5B,KAAK,GAAGD,UAASC,EAAE;UACnB0B,YAAY,GAAG3B,UAAS6B,KAAK5B,EAAE;UAC/B6B,YAAY,GAAG9B,UAAS6B,KAAK5B,EAAE;UAC/B8B,SAAS,GAAG/B,UAAS6B,KAAK5B,EAAE;UAC5B+B,UAAU,GAAGhC,UAAS6B,KAAK5B,EAAE;EAC5C,GANiB4B,OAAAA,UAAAA,SAAAA,UAAAA,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-SSTQU7MF.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-BQSJLXPZ.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,7 +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
|
|
26
|
+
"devtools overview label": "DevTools Stats",
|
|
27
27
|
"debug label": "Debug",
|
|
28
28
|
"settings show debug panel": "Show Debug panel.",
|
|
29
29
|
"settings show devtools panel": "Show DevTools panel.",
|
|
@@ -57,6 +57,7 @@ var translations_default = [
|
|
|
57
57
|
"space label": "Space",
|
|
58
58
|
"feeds label": "Feeds",
|
|
59
59
|
"objects label": "Objects",
|
|
60
|
+
"schema label": "Schema",
|
|
60
61
|
"automerge label": "Automerge",
|
|
61
62
|
"queues label": "Queues",
|
|
62
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 'devtools overview label': 'DevTools
|
|
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,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,O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,OAAOI;MACpBF,UAAU,MAAMG,YAAYC,aAAaC,cAAcC,oBAAAA;IACzD,CAAA;IACAX,aAAa;MACXC,IAAI,GAAGF,KAAKE,EAAE;MACdC,aAAaC,OAAOS;MACpBP,UAAUQ;IACZ,CAAA;IACAb,aAAa;MACXC,IAAI,GAAGF,KAAKE,EAAE;MACdC,aAAaC,OAAOW;MACpBT,UAAUU;IACZ,CAAA;IACAf,aAAa;MACXC,IAAI,GAAGF,KAAKE,EAAE;MACdC,aAAaC,OAAOa;MACpBX,UAAUY;IACZ,CAAA;GACD;AACH;AAEA,IAAMpB,gBAAgB,MAAA;AACnBqB,aAAmBC,aAAa,CAAC;AAGjCD,aAAmBC,SAASC,iCAAiC,OAAOC,YAAAA;AACnE,UAAM,EAAED,+BAA8B,IAAK,MAAM,OAAO,6BAAA;AACxD,UAAM,EAAEE,qBAAoB,IAAK,MAAM,OAAO,uBAAA;AAC9C,UAAMC,SAAkBC,OAAeC,KAAKF;AAC5C,UAAMG,SAASH,OAAOG;AACtB,UAAMH,OAAOI,QAAO;AACpB,UAAM,EAAEC,QAAO,IAAKN,qBAAqBI,OAAOG,QAAQC,SAASP,QAAQK,WAAW,CAAC,CAAA;AACrF,UAAMR,+BAA+BQ,SAASP,OAAAA;AAC9CU,aAASC,WAAW;EACtB;AACF;",
|
|
6
6
|
"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
|
}
|