@dxos/plugin-debug 0.8.2-main.fbd8ed0 → 0.8.2-staging.7ac8446

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.
Files changed (66) hide show
  1. package/dist/lib/browser/{SpaceGenerator-CGRY2M6A.mjs → SpaceGenerator-NBOQZ4JF.mjs} +41 -42
  2. package/dist/lib/browser/SpaceGenerator-NBOQZ4JF.mjs.map +7 -0
  3. package/dist/lib/browser/{app-graph-builder-SSTQU7MF.mjs → app-graph-builder-ALFPRSAR.mjs} +87 -114
  4. package/dist/lib/browser/app-graph-builder-ALFPRSAR.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-ZJTKMYOG.mjs → chunk-TCEHALD4.mjs} +4 -5
  6. package/dist/lib/browser/chunk-TCEHALD4.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +3 -5
  8. package/dist/lib/browser/index.mjs.map +2 -2
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/{react-surface-BQSJLXPZ.mjs → react-surface-MXXLOQYV.mjs} +41 -32
  11. package/dist/lib/browser/react-surface-MXXLOQYV.mjs.map +7 -0
  12. package/dist/lib/browser/{settings-6SG54GZO.mjs → settings-AP74NCXH.mjs} +4 -4
  13. package/dist/lib/browser/settings-AP74NCXH.mjs.map +7 -0
  14. package/dist/types/src/capabilities/app-graph-builder.d.ts +179 -2
  15. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  16. package/dist/types/src/capabilities/index.d.ts +178 -2
  17. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  18. package/dist/types/src/capabilities/react-surface.d.ts +2 -2
  19. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  20. package/dist/types/src/components/Container.d.ts.map +1 -1
  21. package/dist/types/src/components/DebugApp/Tree.d.ts.map +1 -1
  22. package/dist/types/src/components/DebugObjectPanel.d.ts +2 -2
  23. package/dist/types/src/components/DebugObjectPanel.d.ts.map +1 -1
  24. package/dist/types/src/components/DebugSettings.d.ts.map +1 -1
  25. package/dist/types/src/components/DebugStatus.d.ts.map +1 -1
  26. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +2 -2
  27. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  28. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +1 -1
  29. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts +2 -2
  30. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
  31. package/dist/types/src/components/SpaceGenerator/draw-util.d.ts.map +1 -1
  32. package/dist/types/src/components/SpaceGenerator/presets.d.ts +1 -1
  33. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  34. package/dist/types/src/components/Wireframe.d.ts +2 -2
  35. package/dist/types/src/components/Wireframe.d.ts.map +1 -1
  36. package/dist/types/src/components/index.d.ts +0 -1
  37. package/dist/types/src/components/index.d.ts.map +1 -1
  38. package/dist/types/src/translations.d.ts +0 -2
  39. package/dist/types/src/translations.d.ts.map +1 -1
  40. package/dist/types/src/types.d.ts +4 -5
  41. package/dist/types/src/types.d.ts.map +1 -1
  42. package/dist/types/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +50 -58
  44. package/src/capabilities/app-graph-builder.ts +374 -418
  45. package/src/capabilities/react-surface.tsx +19 -43
  46. package/src/capabilities/settings.ts +2 -2
  47. package/src/components/DebugObjectPanel.tsx +2 -2
  48. package/src/components/DebugStatus.tsx +29 -4
  49. package/src/components/SpaceGenerator/ObjectGenerator.tsx +15 -11
  50. package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +1 -1
  51. package/src/components/SpaceGenerator/SpaceGenerator.tsx +5 -5
  52. package/src/components/SpaceGenerator/presets.ts +18 -20
  53. package/src/components/Wireframe.tsx +2 -2
  54. package/src/components/index.ts +0 -1
  55. package/src/translations.ts +0 -2
  56. package/src/types.ts +5 -6
  57. package/dist/lib/browser/DevtoolsOverviewContainer-HYNZTH2Z.mjs +0 -19
  58. package/dist/lib/browser/DevtoolsOverviewContainer-HYNZTH2Z.mjs.map +0 -7
  59. package/dist/lib/browser/SpaceGenerator-CGRY2M6A.mjs.map +0 -7
  60. package/dist/lib/browser/app-graph-builder-SSTQU7MF.mjs.map +0 -7
  61. package/dist/lib/browser/chunk-ZJTKMYOG.mjs.map +0 -7
  62. package/dist/lib/browser/react-surface-BQSJLXPZ.mjs.map +0 -7
  63. package/dist/lib/browser/settings-6SG54GZO.mjs.map +0 -7
  64. package/dist/types/src/components/DevtoolsOverviewContainer.d.ts +0 -4
  65. package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
  66. package/src/components/DevtoolsOverviewContainer.tsx +0 -20
@@ -1,28 +1,36 @@
1
1
  import {
2
2
  Devtools
3
- } from "./chunk-ZJTKMYOG.mjs";
3
+ } from "./chunk-TCEHALD4.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";
11
9
  import { contributes, Capabilities } from "@dxos/app-framework";
12
- import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
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";
10
+ import { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
11
+ import { createExtension, toSignal } from "@dxos/plugin-graph";
12
+ import { CollectionType } from "@dxos/plugin-space/types";
13
+ import { isEchoObject, isSpace, SpaceState } from "@dxos/react-client/echo";
16
14
  var DEVTOOLS_TYPE = "dxos.org/plugin/debug/devtools";
17
15
  var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
18
16
  // Devtools node.
19
17
  createExtension({
20
18
  id: "dxos.org/plugin/debug/devtools",
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)));
19
+ filter: (node) => node.id === "root" || isSpace(node.data),
20
+ connector: ({ node }) => {
21
+ const space = node.data;
22
+ const state = toSignal((onChange) => space?.state.subscribe(() => onChange()).unsubscribe ?? (() => {
23
+ }), () => space?.state.get(), space?.id);
24
+ if (node.id !== "root" && state !== SpaceState.SPACE_READY) {
25
+ return;
26
+ }
27
+ const collection = space?.properties[CollectionType.typename]?.target;
28
+ if (node.id !== "root" && !collection) {
29
+ return;
30
+ }
23
31
  return [
24
32
  {
25
- id: `${Devtools.id}-${node2.id}`,
33
+ id: `${node.id}-${Devtools.id}`,
26
34
  data: null,
27
35
  type: DEVTOOLS_TYPE,
28
36
  properties: {
@@ -32,17 +40,16 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
32
40
  ns: DEBUG_PLUGIN
33
41
  }
34
42
  ],
35
- icon: "ph--hammer--regular",
36
- disposition: "pin-end",
37
- position: "fallback"
43
+ disposition: "workspace",
44
+ icon: "ph--hammer--regular"
38
45
  },
39
46
  nodes: [
40
- ...space && node2.type === `${SPACE_PLUGIN}/settings` ? [
47
+ ...isSpace(node.data) ? [
41
48
  {
42
- id: `debug-${node2.id}`,
49
+ id: `${node.data.id}-debug`,
43
50
  type: "dxos.org/plugin/debug/space",
44
51
  data: {
45
- space,
52
+ space: node.data,
46
53
  type: "dxos.org/plugin/debug/space"
47
54
  },
48
55
  properties: {
@@ -57,7 +64,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
57
64
  }
58
65
  ] : [],
59
66
  {
60
- id: `${Devtools.Client.id}-${node2.id}`,
67
+ id: `${node.id}-${Devtools.Client.id}`,
61
68
  data: null,
62
69
  type: DEVTOOLS_TYPE,
63
70
  properties: {
@@ -71,7 +78,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
71
78
  },
72
79
  nodes: [
73
80
  {
74
- id: `${Devtools.Client.Config}-${node2.id}`,
81
+ id: `${node.id}-${Devtools.Client.Config}`,
75
82
  data: Devtools.Client.Config,
76
83
  type: DEVTOOLS_TYPE,
77
84
  properties: {
@@ -85,7 +92,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
85
92
  }
86
93
  },
87
94
  {
88
- id: `${Devtools.Client.Storage}-${node2.id}`,
95
+ id: `${node.id}-${Devtools.Client.Storage}`,
89
96
  data: Devtools.Client.Storage,
90
97
  type: DEVTOOLS_TYPE,
91
98
  properties: {
@@ -99,7 +106,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
99
106
  }
100
107
  },
101
108
  {
102
- id: `${Devtools.Client.Logs}-${node2.id}`,
109
+ id: `${node.id}-${Devtools.Client.Logs}`,
103
110
  data: Devtools.Client.Logs,
104
111
  type: DEVTOOLS_TYPE,
105
112
  properties: {
@@ -113,7 +120,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
113
120
  }
114
121
  },
115
122
  {
116
- id: `${Devtools.Client.Diagnostics}-${node2.id}`,
123
+ id: `${node.id}-${Devtools.Client.Diagnostics}`,
117
124
  data: Devtools.Client.Diagnostics,
118
125
  type: DEVTOOLS_TYPE,
119
126
  properties: {
@@ -127,7 +134,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
127
134
  }
128
135
  },
129
136
  {
130
- id: `${Devtools.Client.Tracing}-${node2.id}`,
137
+ id: `${node.id}-${Devtools.Client.Tracing}`,
131
138
  data: Devtools.Client.Tracing,
132
139
  type: DEVTOOLS_TYPE,
133
140
  properties: {
@@ -143,7 +150,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
143
150
  ]
144
151
  },
145
152
  {
146
- id: `${Devtools.Halo.id}-${node2.id}`,
153
+ id: `${node.id}-${Devtools.Halo.id}`,
147
154
  data: null,
148
155
  type: DEVTOOLS_TYPE,
149
156
  properties: {
@@ -157,7 +164,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
157
164
  },
158
165
  nodes: [
159
166
  {
160
- id: `${Devtools.Halo.Identity}-${node2.id}`,
167
+ id: `${node.id}-${Devtools.Halo.Identity}`,
161
168
  data: Devtools.Halo.Identity,
162
169
  type: DEVTOOLS_TYPE,
163
170
  properties: {
@@ -171,7 +178,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
171
178
  }
172
179
  },
173
180
  {
174
- id: `${Devtools.Halo.Devices}-${node2.id}`,
181
+ id: `${node.id}-${Devtools.Halo.Devices}`,
175
182
  data: Devtools.Halo.Devices,
176
183
  type: DEVTOOLS_TYPE,
177
184
  properties: {
@@ -185,7 +192,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
185
192
  }
186
193
  },
187
194
  {
188
- id: `${Devtools.Halo.Keyring}-${node2.id}`,
195
+ id: `${node.id}-${Devtools.Halo.Keyring}`,
189
196
  data: Devtools.Halo.Keyring,
190
197
  type: DEVTOOLS_TYPE,
191
198
  properties: {
@@ -199,7 +206,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
199
206
  }
200
207
  },
201
208
  {
202
- id: `${Devtools.Halo.Credentials}-${node2.id}`,
209
+ id: `${node.id}-${Devtools.Halo.Credentials}`,
203
210
  data: Devtools.Halo.Credentials,
204
211
  type: DEVTOOLS_TYPE,
205
212
  properties: {
@@ -215,7 +222,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
215
222
  ]
216
223
  },
217
224
  {
218
- id: `${Devtools.Echo.id}-${node2.id}`,
225
+ id: `${node.id}-${Devtools.Echo.id}`,
219
226
  data: null,
220
227
  type: DEVTOOLS_TYPE,
221
228
  properties: {
@@ -229,7 +236,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
229
236
  },
230
237
  nodes: [
231
238
  {
232
- id: `${Devtools.Echo.Spaces}-${node2.id}`,
239
+ id: `${node.id}-${Devtools.Echo.Spaces}`,
233
240
  data: Devtools.Echo.Spaces,
234
241
  type: DEVTOOLS_TYPE,
235
242
  properties: {
@@ -243,7 +250,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
243
250
  }
244
251
  },
245
252
  {
246
- id: `${Devtools.Echo.Space}-${node2.id}`,
253
+ id: `${node.id}-${Devtools.Echo.Space}`,
247
254
  data: Devtools.Echo.Space,
248
255
  type: DEVTOOLS_TYPE,
249
256
  properties: {
@@ -257,7 +264,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
257
264
  }
258
265
  },
259
266
  {
260
- id: `${Devtools.Echo.Feeds}-${node2.id}`,
267
+ id: `${node.id}-${Devtools.Echo.Feeds}`,
261
268
  data: Devtools.Echo.Feeds,
262
269
  type: DEVTOOLS_TYPE,
263
270
  properties: {
@@ -271,7 +278,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
271
278
  }
272
279
  },
273
280
  {
274
- id: `${Devtools.Echo.Objects}-${node2.id}`,
281
+ id: `${node.id}-${Devtools.Echo.Objects}`,
275
282
  data: Devtools.Echo.Objects,
276
283
  type: DEVTOOLS_TYPE,
277
284
  properties: {
@@ -281,25 +288,11 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
281
288
  ns: DEBUG_PLUGIN
282
289
  }
283
290
  ],
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
- ],
298
291
  icon: "ph--database--regular"
299
292
  }
300
293
  },
301
294
  {
302
- id: `${Devtools.Echo.Automerge}-${node2.id}`,
295
+ id: `${node.id}-${Devtools.Echo.Automerge}`,
303
296
  data: Devtools.Echo.Automerge,
304
297
  type: DEVTOOLS_TYPE,
305
298
  properties: {
@@ -313,7 +306,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
313
306
  }
314
307
  },
315
308
  {
316
- id: `${Devtools.Echo.Queues}-${node2.id}`,
309
+ id: `${node.id}-${Devtools.Echo.Queues}`,
317
310
  data: Devtools.Echo.Queues,
318
311
  type: DEVTOOLS_TYPE,
319
312
  properties: {
@@ -327,7 +320,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
327
320
  }
328
321
  },
329
322
  {
330
- id: `${Devtools.Echo.Members}-${node2.id}`,
323
+ id: `${node.id}-${Devtools.Echo.Members}`,
331
324
  data: Devtools.Echo.Members,
332
325
  type: DEVTOOLS_TYPE,
333
326
  properties: {
@@ -341,7 +334,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
341
334
  }
342
335
  },
343
336
  {
344
- id: `${Devtools.Echo.Metadata}-${node2.id}`,
337
+ id: `${node.id}-${Devtools.Echo.Metadata}`,
345
338
  data: Devtools.Echo.Metadata,
346
339
  type: DEVTOOLS_TYPE,
347
340
  properties: {
@@ -357,7 +350,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
357
350
  ]
358
351
  },
359
352
  {
360
- id: `${Devtools.Mesh.id}-${node2.id}`,
353
+ id: `${node.id}-${Devtools.Mesh.id}`,
361
354
  data: null,
362
355
  type: DEVTOOLS_TYPE,
363
356
  properties: {
@@ -371,7 +364,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
371
364
  },
372
365
  nodes: [
373
366
  {
374
- id: `${Devtools.Mesh.Signal}-${node2.id}`,
367
+ id: `${node.id}-${Devtools.Mesh.Signal}`,
375
368
  data: Devtools.Mesh.Signal,
376
369
  type: DEVTOOLS_TYPE,
377
370
  properties: {
@@ -385,7 +378,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
385
378
  }
386
379
  },
387
380
  {
388
- id: `${Devtools.Mesh.Swarm}-${node2.id}`,
381
+ id: `${node.id}-${Devtools.Mesh.Swarm}`,
389
382
  data: Devtools.Mesh.Swarm,
390
383
  type: DEVTOOLS_TYPE,
391
384
  properties: {
@@ -399,7 +392,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
399
392
  }
400
393
  },
401
394
  {
402
- id: `${Devtools.Mesh.Network}-${node2.id}`,
395
+ id: `${node.id}-${Devtools.Mesh.Network}`,
403
396
  data: Devtools.Mesh.Network,
404
397
  type: DEVTOOLS_TYPE,
405
398
  properties: {
@@ -416,7 +409,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
416
409
  },
417
410
  // TODO(wittjosiah): Remove?
418
411
  // {
419
- // id: `${prefix}-${Devtools.Agent.id}`,
412
+ // id: `${node.id}-${Devtools.Agent.id}`,
420
413
  // data: null,
421
414
  // type: DEVTOOLS_TYPE,
422
415
  // properties: {
@@ -425,7 +418,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
425
418
  // },
426
419
  // nodes: [
427
420
  // {
428
- // id: `${prefix}-${Devtools.Agent.Dashboard}`,
421
+ // id: `${node.id}-${Devtools.Agent.Dashboard}`,
429
422
  // data: Devtools.Agent.Dashboard,
430
423
  // type: DEVTOOLS_TYPE,
431
424
  // properties: {
@@ -436,7 +429,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
436
429
  // ],
437
430
  // },
438
431
  {
439
- id: `${Devtools.Edge.id}-${node2.id}`,
432
+ id: `${node.id}-${Devtools.Edge.id}`,
440
433
  data: null,
441
434
  type: DEVTOOLS_TYPE,
442
435
  properties: {
@@ -450,7 +443,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
450
443
  },
451
444
  nodes: [
452
445
  {
453
- id: `${Devtools.Edge.Dashboard}-${node2.id}`,
446
+ id: `${node.id}-${Devtools.Edge.Dashboard}`,
454
447
  data: Devtools.Edge.Dashboard,
455
448
  type: DEVTOOLS_TYPE,
456
449
  properties: {
@@ -464,7 +457,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
464
457
  }
465
458
  },
466
459
  {
467
- id: `${Devtools.Edge.Workflows}-${node2.id}`,
460
+ id: `${node.id}-${Devtools.Edge.Workflows}`,
468
461
  data: Devtools.Edge.Workflows,
469
462
  type: DEVTOOLS_TYPE,
470
463
  properties: {
@@ -478,7 +471,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
478
471
  }
479
472
  },
480
473
  {
481
- id: `${Devtools.Edge.Traces}-${node2.id}`,
474
+ id: `${node.id}-${Devtools.Edge.Traces}`,
482
475
  data: Devtools.Edge.Traces,
483
476
  type: DEVTOOLS_TYPE,
484
477
  properties: {
@@ -492,7 +485,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
492
485
  }
493
486
  },
494
487
  {
495
- id: `${Devtools.Edge.Testing}-${node2.id}`,
488
+ id: `${node.id}-${Devtools.Edge.Testing}`,
496
489
  data: Devtools.Edge.Testing,
497
490
  type: DEVTOOLS_TYPE,
498
491
  properties: {
@@ -510,43 +503,48 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
510
503
  ]
511
504
  }
512
505
  ];
513
- }), Option.getOrElse(() => [])))
506
+ }
514
507
  }),
515
508
  // Debug node.
516
509
  createExtension({
517
510
  id: "dxos.org/plugin/debug/debug",
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"
539
- }
511
+ filter: (node) => {
512
+ return false;
513
+ },
514
+ connector: () => {
515
+ const [graph] = context.requestCapabilities(Capabilities.AppGraph);
516
+ if (!graph) {
517
+ return;
540
518
  }
541
- ]), Option.getOrElse(() => [])))
519
+ return [
520
+ {
521
+ id: "dxos.org/plugin/debug/debug",
522
+ type: "dxos.org/plugin/debug/debug",
523
+ data: {
524
+ graph
525
+ },
526
+ properties: {
527
+ label: [
528
+ "debug label",
529
+ {
530
+ ns: DEBUG_PLUGIN
531
+ }
532
+ ],
533
+ disposition: "navigation",
534
+ icon: "ph--bug--regular"
535
+ }
536
+ }
537
+ ];
538
+ }
542
539
  }),
543
540
  // Debug object companion.
544
541
  createExtension({
545
542
  id: `${DEBUG_PLUGIN}/debug-object`,
546
- connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => isEchoObject(node2.data) ? Option.some(node2) : Option.none()), Option.map((node2) => [
543
+ filter: (node) => isEchoObject(node.data),
544
+ connector: ({ node }) => [
547
545
  {
548
546
  id: [
549
- node2.id,
547
+ node.id,
550
548
  "debug"
551
549
  ].join(ATTENDABLE_PATH_SEPARATOR),
552
550
  type: PLANK_COMPANION_TYPE,
@@ -563,35 +561,10 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
563
561
  position: "fallback"
564
562
  }
565
563
  }
566
- ]), Option.getOrElse(() => [])))
567
- }),
568
- // Devtools deck companion.
569
- createExtension({
570
- id: `${DEBUG_PLUGIN}/devtools-overview`,
571
- connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID ? Option.some(node2) : Option.none()), Option.map((node2) => [
572
- {
573
- id: [
574
- node2.id,
575
- "devtools"
576
- ].join(ATTENDABLE_PATH_SEPARATOR),
577
- type: DECK_COMPANION_TYPE,
578
- data: null,
579
- properties: {
580
- label: [
581
- "devtools overview label",
582
- {
583
- ns: DEBUG_PLUGIN
584
- }
585
- ],
586
- icon: "ph--equalizer--regular",
587
- disposition: "hidden",
588
- position: "fallback"
589
- }
590
- }
591
- ]), Option.getOrElse(() => [])))
564
+ ]
592
565
  })
593
566
  ]);
594
567
  export {
595
568
  app_graph_builder_default as default
596
569
  };
597
- //# sourceMappingURL=app-graph-builder-SSTQU7MF.mjs.map
570
+ //# sourceMappingURL=app-graph-builder-ALFPRSAR.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 { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';\nimport { createExtension, toSignal, type Node } from '@dxos/plugin-graph';\nimport { CollectionType } from '@dxos/plugin-space/types';\nimport { isEchoObject, isSpace, type ReactiveEchoObject, SpaceState, type Space } 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 | Space> => node.id === 'root' || isSpace(node.data),\n connector: ({ node }) => {\n const space = node.data;\n const state = toSignal(\n (onChange) => space?.state.subscribe(() => onChange()).unsubscribe ?? (() => {}),\n () => space?.state.get(),\n space?.id,\n );\n if (node.id !== 'root' && state !== SpaceState.SPACE_READY) {\n return;\n }\n\n // Not adding the debug node until the root collection is available aligns the behaviour of this\n // extension with that of the space plugin adding objects. This ensures that the debug node is added at\n // the same time as objects and prevents order from changing as the nodes are added.\n const collection = space?.properties[CollectionType.typename]?.target as CollectionType | undefined;\n if (node.id !== 'root' && !collection) {\n return;\n }\n\n return [\n {\n id: `${node.id}-${Devtools.id}`,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['devtools label', { ns: DEBUG_PLUGIN }],\n disposition: 'workspace',\n icon: 'ph--hammer--regular',\n },\n nodes: [\n ...(isSpace(node.data)\n ? [\n {\n id: `${node.data.id}-debug`,\n type: 'dxos.org/plugin/debug/space',\n data: { space: node.data, 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: `${node.id}-${Devtools.Client.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: `${node.id}-${Devtools.Client.Config}`,\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: `${node.id}-${Devtools.Client.Storage}`,\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: `${node.id}-${Devtools.Client.Logs}`,\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: `${node.id}-${Devtools.Client.Diagnostics}`,\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: `${node.id}-${Devtools.Client.Tracing}`,\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: `${node.id}-${Devtools.Halo.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: `${node.id}-${Devtools.Halo.Identity}`,\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: `${node.id}-${Devtools.Halo.Devices}`,\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: `${node.id}-${Devtools.Halo.Keyring}`,\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: `${node.id}-${Devtools.Halo.Credentials}`,\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: `${node.id}-${Devtools.Echo.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: `${node.id}-${Devtools.Echo.Spaces}`,\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: `${node.id}-${Devtools.Echo.Space}`,\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: `${node.id}-${Devtools.Echo.Feeds}`,\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: `${node.id}-${Devtools.Echo.Objects}`,\n data: Devtools.Echo.Objects,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['objects label', { ns: DEBUG_PLUGIN }],\n icon: 'ph--database--regular',\n },\n },\n {\n id: `${node.id}-${Devtools.Echo.Automerge}`,\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: `${node.id}-${Devtools.Echo.Queues}`,\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: `${node.id}-${Devtools.Echo.Members}`,\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: `${node.id}-${Devtools.Echo.Metadata}`,\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: `${node.id}-${Devtools.Mesh.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: `${node.id}-${Devtools.Mesh.Signal}`,\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: `${node.id}-${Devtools.Mesh.Swarm}`,\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: `${node.id}-${Devtools.Mesh.Network}`,\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: `${node.id}-${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: `${node.id}-${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: `${node.id}-${Devtools.Edge.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: `${node.id}-${Devtools.Edge.Dashboard}`,\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: `${node.id}-${Devtools.Edge.Workflows}`,\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: `${node.id}-${Devtools.Edge.Traces}`,\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: `${node.id}-${Devtools.Edge.Testing}`,\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<ReactiveEchoObject<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"],
5
+ "mappings": ";;;;;;;;AAIA,SAASA,aAAaC,oBAAyC;AAC/D,SAASC,2BAA2BC,4BAA4B;AAChE,SAASC,iBAAiBC,gBAA2B;AACrD,SAASC,sBAAsB;AAC/B,SAASC,cAAcC,SAAkCC,kBAA8B;AAKvF,IAAMC,gBAAgB;AAEtB,IAAA,4BAAe,CAACC,YACdC,YAAYC,aAAaC,iBAAiB;;EAExCC,gBAAgB;IACdC,IAAI;IACJC,QAAQ,CAACC,SAAqCA,KAAKF,OAAO,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EqD;UAAM;UACdzC,YAAY;YACVM,OAAO;cAAC;cAAe;gBAAEC,IAAIC;cAAa;;YAC1CC,aAAa;YACbC,MAAM;UACR;QACF;;IAEJ;EACF,CAAA;;EAGA3B,gBAAgB;IACdC,IAAI,GAAGwB,YAAAA;IACPvB,QAAQ,CAACC,SAAgD0D,aAAa1D,KAAKE,IAAI;IAC/EC,WAAW,CAAC,EAAEH,KAAI,MAAO;MACvB;QACEF,IAAI;UAACE,KAAKF;UAAI;UAAS6D,KAAKC,yBAAAA;QAC5BzC,MAAM0C;QACN3D,MAAM;QACNY,YAAY;UACVM,OAAO;YAAC;YAAe;cAAEC,IAAIC;YAAa;;UAC1CE,MAAM;UACND,aAAa;UACbuC,UAAU;QACZ;MACF;;EAEJ,CAAA;CACD;",
6
+ "names": ["contributes", "Capabilities", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "createExtension", "toSignal", "CollectionType", "isEchoObject", "isSpace", "SpaceState", "DEVTOOLS_TYPE", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "filter", "node", "isSpace", "data", "connector", "space", "state", "toSignal", "onChange", "subscribe", "unsubscribe", "get", "SpaceState", "SPACE_READY", "collection", "properties", "CollectionType", "typename", "target", "Devtools", "type", "label", "ns", "DEBUG_PLUGIN", "disposition", "icon", "nodes", "Client", "Config", "Storage", "Logs", "Diagnostics", "Tracing", "Halo", "Identity", "Devices", "Keyring", "Credentials", "Echo", "Spaces", "Space", "Feeds", "Objects", "Automerge", "Queues", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Edge", "Dashboard", "Workflows", "Traces", "Testing", "graph", "requestCapabilities", "AppGraph", "isEchoObject", "join", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "position"]
7
+ }
@@ -1,6 +1,6 @@
1
1
  // packages/plugins/plugin-debug/src/types.ts
2
- import { Schema } from "effect";
3
2
  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 = Schema.mutable(Schema.Struct({
12
- wireframe: Schema.optional(Schema.Boolean)
11
+ var DebugSettingsSchema = S.mutable(S.Struct({
12
+ wireframe: S.optional(S.Boolean)
13
13
  }));
14
14
  var Devtools;
15
15
  (function(Devtools2) {
@@ -38,7 +38,6 @@ 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`;
42
41
  Echo2.Automerge = `${Devtools2.Echo.id}.automerge`;
43
42
  Echo2.Queues = `${Devtools2.Echo.id}.queues`;
44
43
  Echo2.Members = `${Devtools2.Echo.id}.members`;
@@ -71,4 +70,4 @@ export {
71
70
  DebugSettingsSchema,
72
71
  Devtools
73
72
  };
74
- //# sourceMappingURL=chunk-ZJTKMYOG.mjs.map
73
+ //# sourceMappingURL=chunk-TCEHALD4.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 { type Context, createContext } from 'react';\n\nimport type { TimerCallback, TimerOptions } from '@dxos/async';\nimport { S } from '@dxos/echo-schema';\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 = S.mutable(\n S.Struct({\n wireframe: S.optional(S.Boolean),\n }),\n);\n\nexport interface DebugSettingsProps extends S.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 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,SAAuBA,qBAAqB;AAG5C,SAASC,SAAS;AAQX,IAAMC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AViBY,OAAAA,UAAAA,SAAAA,UAAAA,OAAAA,CAAAA,EAAAA;;YAYAS,OAAAA;UACFrB,KAAK,GAAGD,UAASC,EAAE;UACnBsB,SAAS,GAAGvB,UAASsB,KAAKrB,EAAE;UAC5BuB,QAAQ,GAAGxB,UAASsB,KAAKrB,EAAE;UAC3BwB,UAAU,GAAGzB,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,GArDiB7B,aAAAA,WAAAA,CAAAA,EAAAA;",
6
+ "names": ["createContext", "S", "DebugContext", "createContext", "running", "start", "stop", "DebugSettingsSchema", "S", "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-SSTQU7MF.mjs"));
11
+ var AppGraphBuilder = lazy(() => import("./app-graph-builder-ALFPRSAR.mjs"));
12
12
  var ReactContext = lazy(() => import("./react-context-ZRLN5KUI.mjs"));
13
- var ReactSurface = lazy(() => import("./react-surface-BQSJLXPZ.mjs"));
14
- var DebugSettings = lazy(() => import("./settings-6SG54GZO.mjs"));
13
+ var ReactSurface = lazy(() => import("./react-surface-MXXLOQYV.mjs"));
14
+ var DebugSettings = lazy(() => import("./settings-AP74NCXH.mjs"));
15
15
 
16
16
  // packages/plugins/plugin-debug/src/translations.ts
17
17
  var translations_default = [
@@ -23,7 +23,6 @@ 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",
27
26
  "debug label": "Debug",
28
27
  "settings show debug panel": "Show Debug panel.",
29
28
  "settings show devtools panel": "Show DevTools panel.",
@@ -57,7 +56,6 @@ var translations_default = [
57
56
  "space label": "Space",
58
57
  "feeds label": "Feeds",
59
58
  "objects label": "Objects",
60
- "schema label": "Schema",
61
59
  "automerge label": "Automerge",
62
60
  "queues label": "Queues",
63
61
  "members label": "Members",