@dxos/plugin-debug 0.7.5-main.9d2a38b → 0.7.5-main.b19bfc8

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 (80) hide show
  1. package/dist/lib/browser/{DebugSpace-4JHYA7FG.mjs → DebugSpace-BTMTVZ6C.mjs} +2 -2
  2. package/dist/lib/browser/SpaceGenerator-BPZGOSH4.mjs +1238 -0
  3. package/dist/lib/browser/SpaceGenerator-BPZGOSH4.mjs.map +7 -0
  4. package/dist/lib/browser/app-graph-builder-BZFZ6UG6.mjs +533 -0
  5. package/dist/lib/browser/app-graph-builder-BZFZ6UG6.mjs.map +7 -0
  6. package/dist/lib/browser/chunk-EF3UVAVI.mjs +21 -0
  7. package/dist/lib/browser/chunk-EF3UVAVI.mjs.map +7 -0
  8. package/dist/lib/browser/chunk-UASI2CRI.mjs +72 -0
  9. package/dist/lib/browser/chunk-UASI2CRI.mjs.map +7 -0
  10. package/dist/lib/browser/index.mjs +40 -10
  11. package/dist/lib/browser/index.mjs.map +3 -3
  12. package/dist/lib/browser/meta.json +1 -1
  13. package/dist/lib/browser/react-context-TCD3MNIT.mjs +16 -0
  14. package/dist/lib/browser/react-context-TCD3MNIT.mjs.map +7 -0
  15. package/dist/lib/browser/{react-surface-5GNO6NWP.mjs → react-surface-W6QLG4YJ.mjs} +258 -85
  16. package/dist/lib/browser/react-surface-W6QLG4YJ.mjs.map +7 -0
  17. package/dist/lib/browser/{settings-JCZUA643.mjs → settings-INPXR64L.mjs} +6 -7
  18. package/dist/lib/browser/{settings-JCZUA643.mjs.map → settings-INPXR64L.mjs.map} +3 -3
  19. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  20. package/dist/types/src/capabilities/app-graph-builder.d.ts +110 -110
  21. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  22. package/dist/types/src/capabilities/index.d.ts +116 -116
  23. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  24. package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
  25. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  26. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  27. package/dist/types/src/components/Container.d.ts +2 -2
  28. package/dist/types/src/components/Container.d.ts.map +1 -1
  29. package/dist/types/src/components/DebugObjectPanel.d.ts +1 -2
  30. package/dist/types/src/components/DebugObjectPanel.d.ts.map +1 -1
  31. package/dist/types/src/components/DebugSettings.d.ts +1 -2
  32. package/dist/types/src/components/DebugSettings.d.ts.map +1 -1
  33. package/dist/types/src/components/DebugSpace/ObjectCreator.d.ts +1 -2
  34. package/dist/types/src/components/DebugSpace/ObjectCreator.d.ts.map +1 -1
  35. package/dist/types/src/components/DebugStatus.d.ts +1 -2
  36. package/dist/types/src/components/DebugStatus.d.ts.map +1 -1
  37. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  38. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts +1 -2
  39. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +1 -1
  40. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts +1 -2
  41. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
  42. package/dist/types/src/components/SpaceGenerator/presets.d.ts +22 -0
  43. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -0
  44. package/dist/types/src/components/Wireframe.d.ts +1 -2
  45. package/dist/types/src/components/Wireframe.d.ts.map +1 -1
  46. package/dist/types/src/components/index.d.ts +4 -4
  47. package/dist/types/src/components/index.d.ts.map +1 -1
  48. package/dist/types/src/meta.d.ts +1 -0
  49. package/dist/types/src/meta.d.ts.map +1 -1
  50. package/dist/types/src/translations.d.ts +28 -0
  51. package/dist/types/src/translations.d.ts.map +1 -1
  52. package/dist/types/src/types.d.ts +44 -1
  53. package/dist/types/src/types.d.ts.map +1 -1
  54. package/package.json +50 -43
  55. package/src/DebugPlugin.tsx +6 -3
  56. package/src/capabilities/app-graph-builder.ts +297 -89
  57. package/src/capabilities/react-context.tsx +3 -25
  58. package/src/capabilities/react-surface.tsx +202 -33
  59. package/src/capabilities/settings.ts +0 -1
  60. package/src/components/DebugObjectPanel.tsx +17 -5
  61. package/src/components/DebugSettings.tsx +7 -12
  62. package/src/components/DebugStatus.tsx +17 -21
  63. package/src/components/SpaceGenerator/ObjectGenerator.tsx +31 -4
  64. package/src/components/SpaceGenerator/SpaceGenerator.tsx +75 -6
  65. package/src/components/SpaceGenerator/presets.ts +563 -0
  66. package/src/meta.ts +3 -1
  67. package/src/translations.ts +28 -0
  68. package/src/types.ts +52 -1
  69. package/dist/lib/browser/SpaceGenerator-NJCG57CU.mjs +0 -279
  70. package/dist/lib/browser/SpaceGenerator-NJCG57CU.mjs.map +0 -7
  71. package/dist/lib/browser/app-graph-builder-FXELWOFS.mjs +0 -177
  72. package/dist/lib/browser/app-graph-builder-FXELWOFS.mjs.map +0 -7
  73. package/dist/lib/browser/chunk-I3ON45JK.mjs +0 -18
  74. package/dist/lib/browser/chunk-I3ON45JK.mjs.map +0 -7
  75. package/dist/lib/browser/chunk-P7GHHMDB.mjs +0 -21
  76. package/dist/lib/browser/chunk-P7GHHMDB.mjs.map +0 -7
  77. package/dist/lib/browser/react-context-OZU6J7G3.mjs +0 -37
  78. package/dist/lib/browser/react-context-OZU6J7G3.mjs.map +0 -7
  79. package/dist/lib/browser/react-surface-5GNO6NWP.mjs.map +0 -7
  80. /package/dist/lib/browser/{DebugSpace-4JHYA7FG.mjs.map → DebugSpace-BTMTVZ6C.mjs.map} +0 -0
@@ -0,0 +1,533 @@
1
+ import {
2
+ DEBUG_PLUGIN
3
+ } from "./chunk-EF3UVAVI.mjs";
4
+ import {
5
+ Devtools
6
+ } from "./chunk-UASI2CRI.mjs";
7
+
8
+ // packages/plugins/plugin-debug/src/capabilities/app-graph-builder.ts
9
+ import { contributes, Capabilities } from "@dxos/app-framework";
10
+ import { createExtension, toSignal } from "@dxos/plugin-graph";
11
+ import { CollectionType } from "@dxos/plugin-space/types";
12
+ import { SpaceState } from "@dxos/react-client/echo";
13
+ import { isSpace } from "@dxos/react-client/echo";
14
+ var DEVTOOLS_TYPE = "dxos.org/plugin/debug/devtools";
15
+ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
16
+ // Devtools node.
17
+ createExtension({
18
+ id: "dxos.org/plugin/debug/devtools",
19
+ filter: (node) => node.id === "root",
20
+ connector: () => [
21
+ {
22
+ id: Devtools.id,
23
+ data: null,
24
+ type: DEVTOOLS_TYPE,
25
+ properties: {
26
+ label: [
27
+ "devtools label",
28
+ {
29
+ ns: DEBUG_PLUGIN
30
+ }
31
+ ],
32
+ disposition: "workspace",
33
+ icon: "ph--hammer--regular"
34
+ },
35
+ nodes: [
36
+ {
37
+ id: Devtools.Client.id,
38
+ data: null,
39
+ type: DEVTOOLS_TYPE,
40
+ properties: {
41
+ label: [
42
+ "client label",
43
+ {
44
+ ns: DEBUG_PLUGIN
45
+ }
46
+ ],
47
+ icon: "ph--users--regular"
48
+ },
49
+ nodes: [
50
+ {
51
+ id: Devtools.Client.Config,
52
+ data: Devtools.Client.Config,
53
+ type: DEVTOOLS_TYPE,
54
+ properties: {
55
+ label: [
56
+ "config label",
57
+ {
58
+ ns: DEBUG_PLUGIN
59
+ }
60
+ ],
61
+ icon: "ph--gear--regular"
62
+ }
63
+ },
64
+ {
65
+ id: Devtools.Client.Storage,
66
+ data: Devtools.Client.Storage,
67
+ type: DEVTOOLS_TYPE,
68
+ properties: {
69
+ label: [
70
+ "storage label",
71
+ {
72
+ ns: DEBUG_PLUGIN
73
+ }
74
+ ],
75
+ icon: "ph--hard-drives--regular"
76
+ }
77
+ },
78
+ {
79
+ id: Devtools.Client.Logs,
80
+ data: Devtools.Client.Logs,
81
+ type: DEVTOOLS_TYPE,
82
+ properties: {
83
+ label: [
84
+ "logs label",
85
+ {
86
+ ns: DEBUG_PLUGIN
87
+ }
88
+ ],
89
+ icon: "ph--file-text--regular"
90
+ }
91
+ },
92
+ {
93
+ id: Devtools.Client.Diagnostics,
94
+ data: Devtools.Client.Diagnostics,
95
+ type: DEVTOOLS_TYPE,
96
+ properties: {
97
+ label: [
98
+ "diagnostics label",
99
+ {
100
+ ns: DEBUG_PLUGIN
101
+ }
102
+ ],
103
+ icon: "ph--chart-line--regular"
104
+ }
105
+ },
106
+ {
107
+ id: Devtools.Client.Tracing,
108
+ data: Devtools.Client.Tracing,
109
+ type: DEVTOOLS_TYPE,
110
+ properties: {
111
+ label: [
112
+ "tracing label",
113
+ {
114
+ ns: DEBUG_PLUGIN
115
+ }
116
+ ],
117
+ icon: "ph--fire--regular"
118
+ }
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ id: Devtools.Halo.id,
124
+ data: null,
125
+ type: DEVTOOLS_TYPE,
126
+ properties: {
127
+ label: [
128
+ "halo label",
129
+ {
130
+ ns: DEBUG_PLUGIN
131
+ }
132
+ ],
133
+ icon: "ph--identification-badge--regular"
134
+ },
135
+ nodes: [
136
+ {
137
+ id: Devtools.Halo.Identity,
138
+ data: Devtools.Halo.Identity,
139
+ type: DEVTOOLS_TYPE,
140
+ properties: {
141
+ label: [
142
+ "identity label",
143
+ {
144
+ ns: DEBUG_PLUGIN
145
+ }
146
+ ],
147
+ icon: "ph--identification-badge--regular"
148
+ }
149
+ },
150
+ {
151
+ id: Devtools.Halo.Devices,
152
+ data: Devtools.Halo.Devices,
153
+ type: DEVTOOLS_TYPE,
154
+ properties: {
155
+ label: [
156
+ "devices label",
157
+ {
158
+ ns: DEBUG_PLUGIN
159
+ }
160
+ ],
161
+ icon: "ph--devices--regular"
162
+ }
163
+ },
164
+ {
165
+ id: Devtools.Halo.Keyring,
166
+ data: Devtools.Halo.Keyring,
167
+ type: DEVTOOLS_TYPE,
168
+ properties: {
169
+ label: [
170
+ "keyring label",
171
+ {
172
+ ns: DEBUG_PLUGIN
173
+ }
174
+ ],
175
+ icon: "ph--key--regular"
176
+ }
177
+ },
178
+ {
179
+ id: Devtools.Halo.Credentials,
180
+ data: Devtools.Halo.Credentials,
181
+ type: DEVTOOLS_TYPE,
182
+ properties: {
183
+ label: [
184
+ "credentials label",
185
+ {
186
+ ns: DEBUG_PLUGIN
187
+ }
188
+ ],
189
+ icon: "ph--credit-card--regular"
190
+ }
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ id: Devtools.Echo.id,
196
+ data: null,
197
+ type: DEVTOOLS_TYPE,
198
+ properties: {
199
+ label: [
200
+ "echo label",
201
+ {
202
+ ns: DEBUG_PLUGIN
203
+ }
204
+ ],
205
+ icon: "ph--database--regular"
206
+ },
207
+ nodes: [
208
+ {
209
+ id: Devtools.Echo.Spaces,
210
+ data: Devtools.Echo.Spaces,
211
+ type: DEVTOOLS_TYPE,
212
+ properties: {
213
+ label: [
214
+ "spaces label",
215
+ {
216
+ ns: DEBUG_PLUGIN
217
+ }
218
+ ],
219
+ icon: "ph--graph--regular"
220
+ }
221
+ },
222
+ {
223
+ id: Devtools.Echo.Space,
224
+ data: Devtools.Echo.Space,
225
+ type: DEVTOOLS_TYPE,
226
+ properties: {
227
+ label: [
228
+ "space label",
229
+ {
230
+ ns: DEBUG_PLUGIN
231
+ }
232
+ ],
233
+ icon: "ph--planet--regular"
234
+ }
235
+ },
236
+ {
237
+ id: Devtools.Echo.Feeds,
238
+ data: Devtools.Echo.Feeds,
239
+ type: DEVTOOLS_TYPE,
240
+ properties: {
241
+ label: [
242
+ "feeds label",
243
+ {
244
+ ns: DEBUG_PLUGIN
245
+ }
246
+ ],
247
+ icon: "ph--queue--regular"
248
+ }
249
+ },
250
+ {
251
+ id: Devtools.Echo.Objects,
252
+ data: Devtools.Echo.Objects,
253
+ type: DEVTOOLS_TYPE,
254
+ properties: {
255
+ label: [
256
+ "objects label",
257
+ {
258
+ ns: DEBUG_PLUGIN
259
+ }
260
+ ],
261
+ icon: "ph--database--regular"
262
+ }
263
+ },
264
+ {
265
+ id: Devtools.Echo.Automerge,
266
+ data: Devtools.Echo.Automerge,
267
+ type: DEVTOOLS_TYPE,
268
+ properties: {
269
+ label: [
270
+ "automerge label",
271
+ {
272
+ ns: DEBUG_PLUGIN
273
+ }
274
+ ],
275
+ icon: "ph--gear-six--regular"
276
+ }
277
+ },
278
+ {
279
+ id: Devtools.Echo.Members,
280
+ data: Devtools.Echo.Members,
281
+ type: DEVTOOLS_TYPE,
282
+ properties: {
283
+ label: [
284
+ "members label",
285
+ {
286
+ ns: DEBUG_PLUGIN
287
+ }
288
+ ],
289
+ icon: "ph--users--regular"
290
+ }
291
+ },
292
+ {
293
+ id: Devtools.Echo.Metadata,
294
+ data: Devtools.Echo.Metadata,
295
+ type: DEVTOOLS_TYPE,
296
+ properties: {
297
+ label: [
298
+ "metadata label",
299
+ {
300
+ ns: DEBUG_PLUGIN
301
+ }
302
+ ],
303
+ icon: "ph--hard-drive--regular"
304
+ }
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ id: Devtools.Mesh.id,
310
+ data: null,
311
+ type: DEVTOOLS_TYPE,
312
+ properties: {
313
+ label: [
314
+ "mesh label",
315
+ {
316
+ ns: DEBUG_PLUGIN
317
+ }
318
+ ],
319
+ icon: "ph--graph--regular"
320
+ },
321
+ nodes: [
322
+ {
323
+ id: Devtools.Mesh.Signal,
324
+ data: Devtools.Mesh.Signal,
325
+ type: DEVTOOLS_TYPE,
326
+ properties: {
327
+ label: [
328
+ "signal label",
329
+ {
330
+ ns: DEBUG_PLUGIN
331
+ }
332
+ ],
333
+ icon: "ph--wifi-high--regular"
334
+ }
335
+ },
336
+ {
337
+ id: Devtools.Mesh.Swarm,
338
+ data: Devtools.Mesh.Swarm,
339
+ type: DEVTOOLS_TYPE,
340
+ properties: {
341
+ label: [
342
+ "swarm label",
343
+ {
344
+ ns: DEBUG_PLUGIN
345
+ }
346
+ ],
347
+ icon: "ph--users-three--regular"
348
+ }
349
+ },
350
+ {
351
+ id: Devtools.Mesh.Network,
352
+ data: Devtools.Mesh.Network,
353
+ type: DEVTOOLS_TYPE,
354
+ properties: {
355
+ label: [
356
+ "network label",
357
+ {
358
+ ns: DEBUG_PLUGIN
359
+ }
360
+ ],
361
+ icon: "ph--polygon--regular"
362
+ }
363
+ }
364
+ ]
365
+ },
366
+ {
367
+ id: Devtools.Agent.id,
368
+ data: null,
369
+ type: DEVTOOLS_TYPE,
370
+ properties: {
371
+ label: [
372
+ "agent label",
373
+ {
374
+ ns: DEBUG_PLUGIN
375
+ }
376
+ ],
377
+ icon: "ph--robot--regular"
378
+ },
379
+ nodes: [
380
+ {
381
+ id: Devtools.Agent.Dashboard,
382
+ data: Devtools.Agent.Dashboard,
383
+ type: DEVTOOLS_TYPE,
384
+ properties: {
385
+ label: [
386
+ "dashboard label",
387
+ {
388
+ ns: DEBUG_PLUGIN
389
+ }
390
+ ],
391
+ icon: "ph--computer-tower--regular"
392
+ }
393
+ },
394
+ {
395
+ id: Devtools.Agent.Search,
396
+ data: Devtools.Agent.Search,
397
+ type: DEVTOOLS_TYPE,
398
+ properties: {
399
+ label: [
400
+ "search label",
401
+ {
402
+ ns: DEBUG_PLUGIN
403
+ }
404
+ ],
405
+ icon: "ph--magnifying-glass--regular"
406
+ }
407
+ }
408
+ ]
409
+ },
410
+ {
411
+ id: Devtools.Edge.id,
412
+ data: null,
413
+ type: DEVTOOLS_TYPE,
414
+ properties: {
415
+ label: [
416
+ "edge label",
417
+ {
418
+ ns: DEBUG_PLUGIN
419
+ }
420
+ ],
421
+ icon: "ph--cloud--regular"
422
+ },
423
+ nodes: [
424
+ {
425
+ id: Devtools.Edge.Dashboard,
426
+ data: Devtools.Edge.Dashboard,
427
+ type: DEVTOOLS_TYPE,
428
+ properties: {
429
+ label: [
430
+ "dashboard label",
431
+ {
432
+ ns: DEBUG_PLUGIN
433
+ }
434
+ ],
435
+ icon: "ph--computer-tower--regular"
436
+ }
437
+ },
438
+ {
439
+ id: Devtools.Edge.Workflows,
440
+ data: Devtools.Edge.Workflows,
441
+ type: DEVTOOLS_TYPE,
442
+ properties: {
443
+ label: [
444
+ "workflows label",
445
+ {
446
+ ns: DEBUG_PLUGIN
447
+ }
448
+ ],
449
+ icon: "ph--function--regular"
450
+ }
451
+ }
452
+ ]
453
+ }
454
+ ]
455
+ }
456
+ ]
457
+ }),
458
+ // Debug node.
459
+ createExtension({
460
+ id: "dxos.org/plugin/debug/debug",
461
+ filter: (node) => {
462
+ return false;
463
+ },
464
+ connector: () => {
465
+ const [graph] = context.requestCapabilities(Capabilities.AppGraph);
466
+ if (!graph) {
467
+ return;
468
+ }
469
+ return [
470
+ {
471
+ id: "dxos.org/plugin/debug/debug",
472
+ type: "dxos.org/plugin/debug/debug",
473
+ data: {
474
+ graph
475
+ },
476
+ properties: {
477
+ label: [
478
+ "debug label",
479
+ {
480
+ ns: DEBUG_PLUGIN
481
+ }
482
+ ],
483
+ disposition: "navigation",
484
+ icon: "ph--bug--regular"
485
+ }
486
+ }
487
+ ];
488
+ }
489
+ }),
490
+ // Space debug nodes.
491
+ createExtension({
492
+ id: "dxos.org/plugin/debug/spaces",
493
+ filter: (node) => {
494
+ const settings = context.requestCapabilities(Capabilities.SettingsStore)[0]?.getStore(DEBUG_PLUGIN)?.value;
495
+ return !!settings?.debug && isSpace(node.data);
496
+ },
497
+ connector: ({ node }) => {
498
+ const space = node.data;
499
+ const state = toSignal((onChange) => space.state.subscribe(() => onChange()).unsubscribe, () => space.state.get(), space.id);
500
+ if (state !== SpaceState.SPACE_READY) {
501
+ return;
502
+ }
503
+ const collection = space.properties[CollectionType.typename]?.target;
504
+ if (!collection) {
505
+ return;
506
+ }
507
+ return [
508
+ {
509
+ // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.
510
+ id: `${space.id}-debug`,
511
+ type: "dxos.org/plugin/debug/space",
512
+ data: {
513
+ space,
514
+ type: "dxos.org/plugin/debug/space"
515
+ },
516
+ properties: {
517
+ label: [
518
+ "debug label",
519
+ {
520
+ ns: DEBUG_PLUGIN
521
+ }
522
+ ],
523
+ icon: "ph--bug--regular"
524
+ }
525
+ }
526
+ ];
527
+ }
528
+ })
529
+ ]);
530
+ export {
531
+ app_graph_builder_default as default
532
+ };
533
+ //# sourceMappingURL=app-graph-builder-BZFZ6UG6.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 { createExtension, toSignal, type Node } from '@dxos/plugin-graph';\nimport { CollectionType } from '@dxos/plugin-space/types';\nimport { SpaceState } from '@dxos/react-client/echo';\nimport { isSpace, type Space } from '@dxos/react-client/echo';\n\nimport { DEBUG_PLUGIN } from '../meta';\nimport { type DebugSettingsProps, Devtools } from '../types';\n\nconst DEVTOOLS_TYPE = 'dxos.org/plugin/debug/devtools';\n\nexport default (context: PluginsContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n // Devtools node.\n createExtension({\n id: 'dxos.org/plugin/debug/devtools',\n filter: (node): node is Node<null> => node.id === 'root',\n connector: () => [\n {\n 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 {\n 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: Devtools.Echo.Feeds,\n data: Devtools.Echo.Feeds,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['feeds label', { ns: DEBUG_PLUGIN }],\n icon: 'ph--queue--regular',\n },\n },\n {\n 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: 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: 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: 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: 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: 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: 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: 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 {\n 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: 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 id: Devtools.Agent.Search,\n data: Devtools.Agent.Search,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['search label', { ns: DEBUG_PLUGIN }],\n icon: 'ph--magnifying-glass--regular',\n },\n },\n ],\n },\n {\n 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: 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: 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 },\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 // Space debug nodes.\n createExtension({\n id: 'dxos.org/plugin/debug/spaces',\n filter: (node): node is Node<Space> => {\n const settings = context\n .requestCapabilities(Capabilities.SettingsStore)[0]\n ?.getStore<DebugSettingsProps>(DEBUG_PLUGIN)?.value;\n return !!settings?.debug && isSpace(node.data);\n },\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 (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 (!collection) {\n return;\n }\n\n return [\n {\n // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.\n id: `${space.id}-debug`, // TODO(burdon): Change to slashes consistently.\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 ]);\n"],
5
+ "mappings": ";;;;;;;;AAIA,SAASA,aAAaC,oBAAyC;AAC/D,SAASC,iBAAiBC,gBAA2B;AACrD,SAASC,sBAAsB;AAC/B,SAASC,kBAAkB;AAC3B,SAASC,eAA2B;AAKpC,IAAMC,gBAAgB;AAEtB,IAAA,4BAAe,CAACC,YACdC,YAAYC,aAAaC,i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AGC;AAC9D,UAAI,CAACH,YAAY;AACf;MACF;AAEA,aAAO;QACL;;UAEE5D,IAAI,GAAGmD,MAAMnD,EAAE;UACfM,MAAM;UACND,MAAM;YAAE8C;YAAO7C,MAAM;UAA8B;UACnDC,YAAY;YACVC,OAAO;cAAC;cAAe;gBAAEC,IAAIC;cAAa;;YAC1CE,MAAM;UACR;QACF;;IAEJ;EACF,CAAA;CACD;",
6
+ "names": ["contributes", "Capabilities", "createExtension", "toSignal", "CollectionType", "SpaceState", "isSpace", "DEVTOOLS_TYPE", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "filter", "node", "connector", "Devtools", "data", "type", "properties", "label", "ns", "DEBUG_PLUGIN", "disposition", "icon", "nodes", "Client", "Config", "Storage", "Logs", "Diagnostics", "Tracing", "Halo", "Identity", "Devices", "Keyring", "Credentials", "Echo", "Spaces", "Space", "Feeds", "Objects", "Automerge", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Agent", "Dashboard", "Search", "Edge", "Workflows", "graph", "requestCapabilities", "AppGraph", "settings", "SettingsStore", "getStore", "value", "debug", "isSpace", "space", "state", "toSignal", "onChange", "subscribe", "unsubscribe", "get", "SpaceState", "SPACE_READY", "collection", "CollectionType", "typename", "target"]
7
+ }
@@ -0,0 +1,21 @@
1
+ // packages/plugins/plugin-debug/src/meta.ts
2
+ var DEBUG_PLUGIN = "dxos.org/plugin/debug";
3
+ var meta = {
4
+ id: DEBUG_PLUGIN,
5
+ name: "Debug",
6
+ description: "The debug plugin is useful for troubleshooting inside of Composer. You can also use the Debug plugin to create test data inside of sheets or tables or explore pre-built automations. Non-technical users will likely not spend much time here, but this plugin is invaluable for developers and technical users.",
7
+ icon: "ph--bug--regular",
8
+ source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-debug",
9
+ tags: [
10
+ "experimental"
11
+ ],
12
+ screenshots: [
13
+ "https://dxos.network/plugin-details-debug-dark.png"
14
+ ]
15
+ };
16
+
17
+ export {
18
+ DEBUG_PLUGIN,
19
+ meta
20
+ };
21
+ //# sourceMappingURL=chunk-EF3UVAVI.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const DEBUG_PLUGIN = 'dxos.org/plugin/debug';\n\nexport const meta = {\n id: DEBUG_PLUGIN,\n name: 'Debug',\n description:\n 'The debug plugin is useful for troubleshooting inside of Composer. You can also use the Debug plugin to create test data inside of sheets or tables or explore pre-built automations. Non-technical users will likely not spend much time here, but this plugin is invaluable for developers and technical users.',\n icon: 'ph--bug--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-debug',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-debug-dark.png'],\n} satisfies PluginMeta;\n"],
5
+ "mappings": ";AAMO,IAAMA,eAAe;AAErB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
6
+ "names": ["DEBUG_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots"]
7
+ }
@@ -0,0 +1,72 @@
1
+ // packages/plugins/plugin-debug/src/types.ts
2
+ import { createContext } from "react";
3
+ import { S } from "@dxos/echo-schema";
4
+ var DebugContext = createContext({
5
+ running: false,
6
+ start: () => {
7
+ },
8
+ stop: () => {
9
+ }
10
+ });
11
+ var DebugSettingsSchema = S.mutable(S.Struct({
12
+ debug: S.optional(S.Boolean),
13
+ wireframe: S.optional(S.Boolean)
14
+ }));
15
+ var Devtools;
16
+ (function(Devtools2) {
17
+ Devtools2.id = "dxos.org.plugin.debug.devtools";
18
+ let Client;
19
+ (function(Client2) {
20
+ Client2.id = `${Devtools2.id}.client`;
21
+ Client2.Config = `${Devtools2.Client.id}.config`;
22
+ Client2.Storage = `${Devtools2.Client.id}.storage`;
23
+ Client2.Logs = `${Devtools2.Client.id}.logs`;
24
+ Client2.Diagnostics = `${Devtools2.Client.id}.diagnostics`;
25
+ Client2.Tracing = `${Devtools2.Client.id}.tracing`;
26
+ })(Client = Devtools2.Client || (Devtools2.Client = {}));
27
+ let Halo;
28
+ (function(Halo2) {
29
+ Halo2.id = `${Devtools2.id}.halo`;
30
+ Halo2.Identity = `${Devtools2.Halo.id}.identity`;
31
+ Halo2.Devices = `${Devtools2.Halo.id}.devices`;
32
+ Halo2.Keyring = `${Devtools2.Halo.id}.keyring`;
33
+ Halo2.Credentials = `${Devtools2.Halo.id}.credentials`;
34
+ })(Halo = Devtools2.Halo || (Devtools2.Halo = {}));
35
+ let Echo;
36
+ (function(Echo2) {
37
+ Echo2.id = `${Devtools2.id}.echo`;
38
+ Echo2.Spaces = `${Devtools2.Echo.id}.spaces`;
39
+ Echo2.Space = `${Devtools2.Echo.id}.space`;
40
+ Echo2.Feeds = `${Devtools2.Echo.id}.feeds`;
41
+ Echo2.Objects = `${Devtools2.Echo.id}.objects`;
42
+ Echo2.Automerge = `${Devtools2.Echo.id}.automerge`;
43
+ Echo2.Members = `${Devtools2.Echo.id}.members`;
44
+ Echo2.Metadata = `${Devtools2.Echo.id}.metadata`;
45
+ })(Echo = Devtools2.Echo || (Devtools2.Echo = {}));
46
+ let Mesh;
47
+ (function(Mesh2) {
48
+ Mesh2.id = `${Devtools2.id}.mesh`;
49
+ Mesh2.Signal = `${Devtools2.Mesh.id}.signal`;
50
+ Mesh2.Swarm = `${Devtools2.Mesh.id}.swarm`;
51
+ Mesh2.Network = `${Devtools2.Mesh.id}.network`;
52
+ })(Mesh = Devtools2.Mesh || (Devtools2.Mesh = {}));
53
+ let Agent;
54
+ (function(Agent2) {
55
+ Agent2.id = `${Devtools2.id}.agent`;
56
+ Agent2.Dashboard = `${Devtools2.Agent.id}.dashboard`;
57
+ Agent2.Search = `${Devtools2.Agent.id}.search`;
58
+ })(Agent = Devtools2.Agent || (Devtools2.Agent = {}));
59
+ let Edge;
60
+ (function(Edge2) {
61
+ Edge2.id = `${Devtools2.id}.edge`;
62
+ Edge2.Dashboard = `${Devtools2.Edge.id}.dashboard`;
63
+ Edge2.Workflows = `${Devtools2.Edge.id}.workflows`;
64
+ })(Edge = Devtools2.Edge || (Devtools2.Edge = {}));
65
+ })(Devtools || (Devtools = {}));
66
+
67
+ export {
68
+ DebugContext,
69
+ DebugSettingsSchema,
70
+ Devtools
71
+ };
72
+ //# sourceMappingURL=chunk-UASI2CRI.mjs.map