@dxos/plugin-debug 0.8.1-staging.5be625a → 0.8.1-staging.9eaf14f

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 (37) hide show
  1. package/dist/lib/browser/{SpaceGenerator-OIK3XDTA.mjs → SpaceGenerator-NBOQZ4JF.mjs} +7 -8
  2. package/dist/lib/browser/SpaceGenerator-NBOQZ4JF.mjs.map +7 -0
  3. package/dist/lib/browser/app-graph-builder-ALFPRSAR.mjs +570 -0
  4. package/dist/lib/browser/app-graph-builder-ALFPRSAR.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-F2R7TJCJ.mjs → chunk-TCEHALD4.mjs} +2 -2
  6. package/dist/lib/browser/chunk-TCEHALD4.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +7 -23
  8. package/dist/lib/browser/index.mjs.map +3 -3
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/{react-surface-G43REICD.mjs → react-surface-MXXLOQYV.mjs} +102 -27
  11. package/dist/lib/browser/react-surface-MXXLOQYV.mjs.map +7 -0
  12. package/dist/lib/browser/{settings-R47ZDKXO.mjs → settings-AP74NCXH.mjs} +3 -5
  13. package/dist/lib/browser/{settings-R47ZDKXO.mjs.map → settings-AP74NCXH.mjs.map} +3 -3
  14. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  15. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  16. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  17. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  18. package/dist/types/src/components/DebugSettings.d.ts.map +1 -1
  19. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
  20. package/dist/types/src/translations.d.ts +1 -0
  21. package/dist/types/src/translations.d.ts.map +1 -1
  22. package/dist/types/src/types.d.ts +1 -1
  23. package/dist/types/src/types.d.ts.map +1 -1
  24. package/package.json +49 -48
  25. package/src/DebugPlugin.tsx +1 -14
  26. package/src/capabilities/app-graph-builder.ts +330 -349
  27. package/src/capabilities/react-surface.tsx +72 -18
  28. package/src/capabilities/settings.ts +1 -3
  29. package/src/components/DebugSettings.tsx +0 -3
  30. package/src/components/SpaceGenerator/SpaceGenerator.tsx +1 -7
  31. package/src/translations.ts +3 -2
  32. package/src/types.ts +1 -1
  33. package/dist/lib/browser/SpaceGenerator-OIK3XDTA.mjs.map +0 -7
  34. package/dist/lib/browser/app-graph-builder-EJHONTKA.mjs +0 -605
  35. package/dist/lib/browser/app-graph-builder-EJHONTKA.mjs.map +0 -7
  36. package/dist/lib/browser/chunk-F2R7TJCJ.mjs.map +0 -7
  37. package/dist/lib/browser/react-surface-G43REICD.mjs.map +0 -7
@@ -1,605 +0,0 @@
1
- import {
2
- Devtools
3
- } from "./chunk-F2R7TJCJ.mjs";
4
- import {
5
- DEBUG_PLUGIN
6
- } from "./chunk-RORUXVAC.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--list-bullets--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.Queues,
280
- data: Devtools.Echo.Queues,
281
- type: DEVTOOLS_TYPE,
282
- properties: {
283
- label: [
284
- "queues label",
285
- {
286
- ns: DEBUG_PLUGIN
287
- }
288
- ],
289
- icon: "ph--queue--regular"
290
- }
291
- },
292
- {
293
- id: Devtools.Echo.Members,
294
- data: Devtools.Echo.Members,
295
- type: DEVTOOLS_TYPE,
296
- properties: {
297
- label: [
298
- "members label",
299
- {
300
- ns: DEBUG_PLUGIN
301
- }
302
- ],
303
- icon: "ph--users--regular"
304
- }
305
- },
306
- {
307
- id: Devtools.Echo.Metadata,
308
- data: Devtools.Echo.Metadata,
309
- type: DEVTOOLS_TYPE,
310
- properties: {
311
- label: [
312
- "metadata label",
313
- {
314
- ns: DEBUG_PLUGIN
315
- }
316
- ],
317
- icon: "ph--hard-drive--regular"
318
- }
319
- }
320
- ]
321
- },
322
- {
323
- id: Devtools.Mesh.id,
324
- data: null,
325
- type: DEVTOOLS_TYPE,
326
- properties: {
327
- label: [
328
- "mesh label",
329
- {
330
- ns: DEBUG_PLUGIN
331
- }
332
- ],
333
- icon: "ph--graph--regular"
334
- },
335
- nodes: [
336
- {
337
- id: Devtools.Mesh.Signal,
338
- data: Devtools.Mesh.Signal,
339
- type: DEVTOOLS_TYPE,
340
- properties: {
341
- label: [
342
- "signal label",
343
- {
344
- ns: DEBUG_PLUGIN
345
- }
346
- ],
347
- icon: "ph--wifi-high--regular"
348
- }
349
- },
350
- {
351
- id: Devtools.Mesh.Swarm,
352
- data: Devtools.Mesh.Swarm,
353
- type: DEVTOOLS_TYPE,
354
- properties: {
355
- label: [
356
- "swarm label",
357
- {
358
- ns: DEBUG_PLUGIN
359
- }
360
- ],
361
- icon: "ph--users-three--regular"
362
- }
363
- },
364
- {
365
- id: Devtools.Mesh.Network,
366
- data: Devtools.Mesh.Network,
367
- type: DEVTOOLS_TYPE,
368
- properties: {
369
- label: [
370
- "network label",
371
- {
372
- ns: DEBUG_PLUGIN
373
- }
374
- ],
375
- icon: "ph--polygon--regular"
376
- }
377
- }
378
- ]
379
- },
380
- {
381
- id: Devtools.Agent.id,
382
- data: null,
383
- type: DEVTOOLS_TYPE,
384
- properties: {
385
- label: [
386
- "agent label",
387
- {
388
- ns: DEBUG_PLUGIN
389
- }
390
- ],
391
- icon: "ph--robot--regular"
392
- },
393
- nodes: [
394
- {
395
- id: Devtools.Agent.Dashboard,
396
- data: Devtools.Agent.Dashboard,
397
- type: DEVTOOLS_TYPE,
398
- properties: {
399
- label: [
400
- "dashboard label",
401
- {
402
- ns: DEBUG_PLUGIN
403
- }
404
- ],
405
- icon: "ph--computer-tower--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
- id: Devtools.Edge.Traces,
454
- data: Devtools.Edge.Traces,
455
- type: DEVTOOLS_TYPE,
456
- properties: {
457
- label: [
458
- "traces label",
459
- {
460
- ns: DEBUG_PLUGIN
461
- }
462
- ],
463
- icon: "ph--line-segments--regular"
464
- }
465
- }
466
- ]
467
- }
468
- ]
469
- }
470
- ]
471
- }),
472
- // Debug node.
473
- createExtension({
474
- id: "dxos.org/plugin/debug/debug",
475
- filter: (node) => {
476
- return false;
477
- },
478
- connector: () => {
479
- const [graph] = context.requestCapabilities(Capabilities.AppGraph);
480
- if (!graph) {
481
- return;
482
- }
483
- return [
484
- {
485
- id: "dxos.org/plugin/debug/debug",
486
- type: "dxos.org/plugin/debug/debug",
487
- data: {
488
- graph
489
- },
490
- properties: {
491
- label: [
492
- "debug label",
493
- {
494
- ns: DEBUG_PLUGIN
495
- }
496
- ],
497
- disposition: "navigation",
498
- icon: "ph--bug--regular"
499
- }
500
- }
501
- ];
502
- }
503
- }),
504
- // Space debug nodes.
505
- createExtension({
506
- id: "dxos.org/plugin/debug/spaces",
507
- filter: (node) => {
508
- const settings = context.requestCapabilities(Capabilities.SettingsStore)[0]?.getStore(DEBUG_PLUGIN)?.value;
509
- return !!settings?.debug && isSpace(node.data);
510
- },
511
- connector: ({ node }) => {
512
- const space = node.data;
513
- const state = toSignal((onChange) => space.state.subscribe(() => onChange()).unsubscribe, () => space.state.get(), space.id);
514
- if (state !== SpaceState.SPACE_READY) {
515
- return;
516
- }
517
- const collection = space.properties[CollectionType.typename]?.target;
518
- if (!collection) {
519
- return;
520
- }
521
- return [
522
- {
523
- id: `${space.id}-${Devtools.id}`,
524
- data: null,
525
- type: DEVTOOLS_TYPE,
526
- properties: {
527
- label: [
528
- "devtools label",
529
- {
530
- ns: DEBUG_PLUGIN
531
- }
532
- ],
533
- icon: "ph--hammer--regular"
534
- },
535
- nodes: [
536
- {
537
- // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.
538
- id: `${space.id}-debug`,
539
- type: "dxos.org/plugin/debug/space",
540
- data: {
541
- space,
542
- type: "dxos.org/plugin/debug/space"
543
- },
544
- properties: {
545
- label: [
546
- "debug label",
547
- {
548
- ns: DEBUG_PLUGIN
549
- }
550
- ],
551
- icon: "ph--bug--regular"
552
- }
553
- },
554
- {
555
- id: `${space.id}-${Devtools.Echo.Space}`,
556
- data: Devtools.Echo.Space,
557
- type: DEVTOOLS_TYPE,
558
- properties: {
559
- label: [
560
- "space label",
561
- {
562
- ns: DEBUG_PLUGIN
563
- }
564
- ],
565
- icon: "ph--planet--regular"
566
- }
567
- },
568
- {
569
- id: `${space.id}-${Devtools.Echo.Objects}`,
570
- data: Devtools.Echo.Objects,
571
- type: DEVTOOLS_TYPE,
572
- properties: {
573
- label: [
574
- "objects label",
575
- {
576
- ns: DEBUG_PLUGIN
577
- }
578
- ],
579
- icon: "ph--database--regular"
580
- }
581
- },
582
- {
583
- id: `${space.id}-${Devtools.Edge.Traces}`,
584
- data: Devtools.Edge.Traces,
585
- type: DEVTOOLS_TYPE,
586
- properties: {
587
- label: [
588
- "traces label",
589
- {
590
- ns: DEBUG_PLUGIN
591
- }
592
- ],
593
- icon: "ph--line-segments--regular"
594
- }
595
- }
596
- ]
597
- }
598
- ];
599
- }
600
- })
601
- ]);
602
- export {
603
- app_graph_builder_default as default
604
- };
605
- //# sourceMappingURL=app-graph-builder-EJHONTKA.mjs.map
@@ -1,7 +0,0 @@
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--list-bullets--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.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: 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 },\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 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 },\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 id: `${space.id}-${Devtools.id}`,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['devtools label', { ns: DEBUG_PLUGIN }],\n icon: 'ph--hammer--regular',\n },\n nodes: [\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`,\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 id: `${space.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: `${space.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: `${space.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 },\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,iBAAiB;;EAExCC,gBAAgB;IACdC,IAAI;IACJC,QAAQ,CAACC,SAA6BA,KAAKF,OAAO;IAClDG,WAAW,MAAM;MACf;QACEH,IAAII,SAASJ;QACbK,MAAM;QACNC,MAAMZ;QACNa,YAAY;UACVC,OAAO;YAAC;YAAkB;cAAEC,IAAIC;YAAa;;UAC7CC,aAAa;UACbC,MAAM;QACR;QACAC,OAAO;UACL;YACEb,IAAII,SAASU,OAAOd;YACpBK,MAAM;YACNC,MAAMZ;YACNa,YAAY;cACVC,OAAO;gBAAC;gBAAgB;kBAAEC,IAAIC;gBAAa;;cAC3CE,MAAM;YACR;YACAC,OAAO;cACL;gBACEb,IAAII,SAASU,OAAOC;gBACpBV,MAAMD,SAASU,OAAOC;gBACtBT,MAAMZ;gBACNa,YAAY;kBACVC,OAAO;oBAAC;oBAAgB;sBAAEC,IAAIC;oBAAa;;kBAC3CE,MAAM;gBACR;cACF;cACA;gBACEZ,IAAII,SAASU,OAAOE;gBACpBX,MAAMD,SAASU,OAAOE;gBACtBV,MAAMZ;gBACNa,YAAY;kBACVC,OAAO;oBAAC;oBAAiB;sBAAEC,IAAIC;oBAAa;;kBAC5CE,MAAM;gBACR;cACF;cACA;gBACEZ,IAAII,SA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IC;kBAAa;;gBAC1CE,MAAM;cACR;YACF;YACA;cACEZ,IAAI,GAAGoD,MAAMpD,EAAE,IAAII,SAASqB,KAAKI,OAAO;cACxCxB,MAAMD,SAASqB,KAAKI;cACpBvB,MAAMZ;cACNa,YAAY;gBACVC,OAAO;kBAAC;kBAAiB;oBAAEC,IAAIC;kBAAa;;gBAC5CE,MAAM;cACR;YACF;YACA;cACEZ,IAAI,GAAGoD,MAAMpD,EAAE,IAAII,SAASoC,KAAKE,MAAM;cACvCrC,MAAMD,SAASoC,KAAKE;cACpBpC,MAAMZ;cACNa,YAAY;gBACVC,OAAO;kBAAC;kBAAgB;oBAAEC,IAAIC;kBAAa;;gBAC3CE,MAAM;cACR;YACF;;QAEJ;;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", "Queues", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Agent", "Dashboard", "Edge", "Workflows", "Traces", "graph", "requestCapabilities", "AppGraph", "settings", "SettingsStore", "getStore", "value", "debug", "isSpace", "space", "state", "toSignal", "onChange", "subscribe", "unsubscribe", "get", "SpaceState", "SPACE_READY", "collection", "CollectionType", "typename", "target"]
7
- }
@@ -1,7 +0,0 @@
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 debug: S.optional(S.Boolean),\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 }\n}\n"],
5
- "mappings": ";AAIA,SAAuBA,qBAAqB;AAG5C,SAASC,SAAS;AAQX,IAAMC,eAA0CC,cAAgC;EACrFC,SAAS;EACTC,OAAO,MAAA;EAAO;EACdC,MAAM,MAAA;EAAO;AACf,CAAA;AAEO,IAAMC,sBAAsBC,EAAEC,QACnCD,EAAEE,OAAO;EACPC,OAAOH,EAAEI,SAASJ,EAAEK,OAAO;EAC3BC,WAAWN,EAAEI,SAASJ,EAAEK,OAAO;AACjC,CAAA,CAAA;;UAKeE,WAAAA;YAEFC,KAAK;;YAEDC,SAAAA;YACFD,KAAK,GAAGD,UAASC,EAAE;YACnBE,SAAS,GAAGH,UAASE,OAAOD,EAAE;YAC9BG,UAAU,GAAGJ,UAASE,OAAOD,EAAE;YAC/BI,OAAO,GAAGL,UAASE,OAAOD,EAAE;YAC5BK,cAAc,GAAGN,UAASE,OAAOD,EAAE;YACnCM,UAAU,GAAGP,UAASE,OAAOD,EAAE;EAC9C,GAPiBC,SAAAA,UAAAA,WAAAA,UAAAA,SAAAA,CAAAA,EAAAA;;YASAM,OAAAA;UACFP,KAAK,GAAGD,UAASC,EAAE;UACnBQ,WAAW,GAAGT,UAASQ,KAAKP,EAAE;UAC9BS,UAAU,GAAGV,UAASQ,KAAKP,EAAE;UAC7BU,UAAU,GAAGX,UAASQ,KAAKP,EAAE;UAC7BW,cAAc,GAAGZ,UAASQ,KAAKP,EAAE;EAChD,GANiBO,OAAAA,UAAAA,SAAAA,UAAAA,OAAAA,CAAAA,EAAAA;;YAQAK,OAAAA;UACFZ,KAAK,GAAGD,UAASC,EAAE;UACnBa,SAAS,GAAGd,UAASa,KAAKZ,EAAE;UAC5Bc,QAAQ,GAAGf,UAASa,KAAKZ,EAAE;UAC3Be,QAAQ,GAAGhB,UAASa,KAAKZ,EAAE;UAC3BgB,UAAU,GAAGjB,UAASa,KAAKZ,EAAE;UAC7BiB,YAAY,GAAGlB,UAASa,KAAKZ,EAAE;UAC/BkB,SAAS,GAAGnB,UAASa,KAAKZ,EAAE;UAC5BmB,UAAU,GAAGpB,UAASa,KAAKZ,EAAE;UAC7BoB,WAAW,GAAGrB,UAASa,KAAKZ,EAAE;EAC7C,GAViBY,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;EAC3C,GALiB4B,OAAAA,UAAAA,SAAAA,UAAAA,OAAAA,CAAAA,EAAAA;AAMnB,GApDiB7B,aAAAA,WAAAA,CAAAA,EAAAA;",
6
- "names": ["createContext", "S", "DebugContext", "createContext", "running", "start", "stop", "DebugSettingsSchema", "S", "mutable", "Struct", "debug", "optional", "Boolean", "wireframe", "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"]
7
- }