@dxos/plugin-debug 0.8.1-main.ba2dec9 → 0.8.1-staging.31c3ee1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{DebugApp-LQHFFK3Y.mjs → DebugApp-7PFYN52J.mjs} +30 -23
- package/dist/lib/browser/{DebugApp-LQHFFK3Y.mjs.map → DebugApp-7PFYN52J.mjs.map} +4 -4
- package/dist/lib/browser/{SpaceGenerator-SPEJBGP7.mjs → SpaceGenerator-NBOQZ4JF.mjs} +12 -12
- package/dist/lib/browser/SpaceGenerator-NBOQZ4JF.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-ALFPRSAR.mjs +570 -0
- package/dist/lib/browser/app-graph-builder-ALFPRSAR.mjs.map +7 -0
- package/dist/lib/browser/{chunk-EF3UVAVI.mjs → chunk-RORUXVAC.mjs} +1 -1
- package/dist/lib/browser/chunk-RORUXVAC.mjs.map +7 -0
- package/dist/lib/browser/{chunk-LHJC7LSH.mjs → chunk-TCEHALD4.mjs} +2 -3
- package/dist/lib/browser/chunk-TCEHALD4.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +9 -25
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-context-TCD3MNIT.mjs → react-context-ZRLN5KUI.mjs} +2 -2
- package/dist/lib/browser/{react-surface-3CAWUFBU.mjs → react-surface-MXXLOQYV.mjs} +133 -47
- package/dist/lib/browser/react-surface-MXXLOQYV.mjs.map +7 -0
- package/dist/lib/browser/{settings-DLIPIUG7.mjs → settings-AP74NCXH.mjs} +6 -8
- package/dist/lib/browser/{settings-DLIPIUG7.mjs.map → settings-AP74NCXH.mjs.map} +3 -3
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/components/DebugSettings.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -4
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -9
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +1 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +49 -48
- package/src/DebugPlugin.tsx +1 -14
- package/src/capabilities/app-graph-builder.ts +329 -319
- package/src/capabilities/react-surface.tsx +97 -44
- package/src/capabilities/settings.ts +1 -3
- package/src/components/DebugSettings.tsx +0 -3
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +1 -1
- package/src/components/SpaceGenerator/SchemaTable.tsx +1 -1
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +3 -9
- package/src/components/index.ts +0 -1
- package/src/meta.ts +2 -2
- package/src/translations.ts +3 -2
- package/src/types.ts +1 -1
- package/dist/lib/browser/DebugSpace-5A2QOKAZ.mjs +0 -277
- package/dist/lib/browser/DebugSpace-5A2QOKAZ.mjs.map +0 -7
- package/dist/lib/browser/SpaceGenerator-SPEJBGP7.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-MMXPWK2F.mjs +0 -561
- package/dist/lib/browser/app-graph-builder-MMXPWK2F.mjs.map +0 -7
- package/dist/lib/browser/chunk-EF3UVAVI.mjs.map +0 -7
- package/dist/lib/browser/chunk-GSJS3HEM.mjs +0 -15
- package/dist/lib/browser/chunk-GSJS3HEM.mjs.map +0 -7
- package/dist/lib/browser/chunk-LHJC7LSH.mjs.map +0 -7
- package/dist/lib/browser/react-surface-3CAWUFBU.mjs.map +0 -7
- package/dist/types/src/components/DebugSpace/DebugSpace.d.ts +0 -8
- package/dist/types/src/components/DebugSpace/DebugSpace.d.ts.map +0 -1
- package/dist/types/src/components/DebugSpace/DebugSpace.stories.d.ts +0 -6
- package/dist/types/src/components/DebugSpace/DebugSpace.stories.d.ts.map +0 -1
- package/dist/types/src/components/DebugSpace/ObjectCreator.d.ts +0 -15
- package/dist/types/src/components/DebugSpace/ObjectCreator.d.ts.map +0 -1
- package/dist/types/src/components/DebugSpace/ObjectCreator.stories.d.ts +0 -6
- package/dist/types/src/components/DebugSpace/ObjectCreator.stories.d.ts.map +0 -1
- package/dist/types/src/components/DebugSpace/index.d.ts +0 -3
- package/dist/types/src/components/DebugSpace/index.d.ts.map +0 -1
- package/src/components/DebugSpace/DebugSpace.stories.tsx +0 -46
- package/src/components/DebugSpace/DebugSpace.tsx +0 -183
- package/src/components/DebugSpace/ObjectCreator.stories.tsx +0 -51
- package/src/components/DebugSpace/ObjectCreator.tsx +0 -100
- package/src/components/DebugSpace/index.ts +0 -7
- /package/dist/lib/browser/{react-context-TCD3MNIT.mjs.map → react-context-ZRLN5KUI.mjs.map} +0 -0
|
@@ -1,561 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEBUG_PLUGIN
|
|
3
|
-
} from "./chunk-EF3UVAVI.mjs";
|
|
4
|
-
import {
|
|
5
|
-
Devtools
|
|
6
|
-
} from "./chunk-LHJC7LSH.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
|
-
id: Devtools.Agent.Search,
|
|
410
|
-
data: Devtools.Agent.Search,
|
|
411
|
-
type: DEVTOOLS_TYPE,
|
|
412
|
-
properties: {
|
|
413
|
-
label: [
|
|
414
|
-
"search label",
|
|
415
|
-
{
|
|
416
|
-
ns: DEBUG_PLUGIN
|
|
417
|
-
}
|
|
418
|
-
],
|
|
419
|
-
icon: "ph--magnifying-glass--regular"
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
]
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
id: Devtools.Edge.id,
|
|
426
|
-
data: null,
|
|
427
|
-
type: DEVTOOLS_TYPE,
|
|
428
|
-
properties: {
|
|
429
|
-
label: [
|
|
430
|
-
"edge label",
|
|
431
|
-
{
|
|
432
|
-
ns: DEBUG_PLUGIN
|
|
433
|
-
}
|
|
434
|
-
],
|
|
435
|
-
icon: "ph--cloud--regular"
|
|
436
|
-
},
|
|
437
|
-
nodes: [
|
|
438
|
-
{
|
|
439
|
-
id: Devtools.Edge.Dashboard,
|
|
440
|
-
data: Devtools.Edge.Dashboard,
|
|
441
|
-
type: DEVTOOLS_TYPE,
|
|
442
|
-
properties: {
|
|
443
|
-
label: [
|
|
444
|
-
"dashboard label",
|
|
445
|
-
{
|
|
446
|
-
ns: DEBUG_PLUGIN
|
|
447
|
-
}
|
|
448
|
-
],
|
|
449
|
-
icon: "ph--computer-tower--regular"
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
id: Devtools.Edge.Workflows,
|
|
454
|
-
data: Devtools.Edge.Workflows,
|
|
455
|
-
type: DEVTOOLS_TYPE,
|
|
456
|
-
properties: {
|
|
457
|
-
label: [
|
|
458
|
-
"workflows label",
|
|
459
|
-
{
|
|
460
|
-
ns: DEBUG_PLUGIN
|
|
461
|
-
}
|
|
462
|
-
],
|
|
463
|
-
icon: "ph--function--regular"
|
|
464
|
-
}
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
id: Devtools.Edge.Traces,
|
|
468
|
-
data: Devtools.Edge.Traces,
|
|
469
|
-
type: DEVTOOLS_TYPE,
|
|
470
|
-
properties: {
|
|
471
|
-
label: [
|
|
472
|
-
"traces label",
|
|
473
|
-
{
|
|
474
|
-
ns: DEBUG_PLUGIN
|
|
475
|
-
}
|
|
476
|
-
],
|
|
477
|
-
icon: "ph--line-segments--regular"
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
]
|
|
481
|
-
}
|
|
482
|
-
]
|
|
483
|
-
}
|
|
484
|
-
]
|
|
485
|
-
}),
|
|
486
|
-
// Debug node.
|
|
487
|
-
createExtension({
|
|
488
|
-
id: "dxos.org/plugin/debug/debug",
|
|
489
|
-
filter: (node) => {
|
|
490
|
-
return false;
|
|
491
|
-
},
|
|
492
|
-
connector: () => {
|
|
493
|
-
const [graph] = context.requestCapabilities(Capabilities.AppGraph);
|
|
494
|
-
if (!graph) {
|
|
495
|
-
return;
|
|
496
|
-
}
|
|
497
|
-
return [
|
|
498
|
-
{
|
|
499
|
-
id: "dxos.org/plugin/debug/debug",
|
|
500
|
-
type: "dxos.org/plugin/debug/debug",
|
|
501
|
-
data: {
|
|
502
|
-
graph
|
|
503
|
-
},
|
|
504
|
-
properties: {
|
|
505
|
-
label: [
|
|
506
|
-
"debug label",
|
|
507
|
-
{
|
|
508
|
-
ns: DEBUG_PLUGIN
|
|
509
|
-
}
|
|
510
|
-
],
|
|
511
|
-
disposition: "navigation",
|
|
512
|
-
icon: "ph--bug--regular"
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
];
|
|
516
|
-
}
|
|
517
|
-
}),
|
|
518
|
-
// Space debug nodes.
|
|
519
|
-
createExtension({
|
|
520
|
-
id: "dxos.org/plugin/debug/spaces",
|
|
521
|
-
filter: (node) => {
|
|
522
|
-
const settings = context.requestCapabilities(Capabilities.SettingsStore)[0]?.getStore(DEBUG_PLUGIN)?.value;
|
|
523
|
-
return !!settings?.debug && isSpace(node.data);
|
|
524
|
-
},
|
|
525
|
-
connector: ({ node }) => {
|
|
526
|
-
const space = node.data;
|
|
527
|
-
const state = toSignal((onChange) => space.state.subscribe(() => onChange()).unsubscribe, () => space.state.get(), space.id);
|
|
528
|
-
if (state !== SpaceState.SPACE_READY) {
|
|
529
|
-
return;
|
|
530
|
-
}
|
|
531
|
-
const collection = space.properties[CollectionType.typename]?.target;
|
|
532
|
-
if (!collection) {
|
|
533
|
-
return;
|
|
534
|
-
}
|
|
535
|
-
return [
|
|
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
|
-
}
|
|
556
|
-
})
|
|
557
|
-
]);
|
|
558
|
-
export {
|
|
559
|
-
app_graph_builder_default as default
|
|
560
|
-
};
|
|
561
|
-
//# sourceMappingURL=app-graph-builder-MMXPWK2F.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 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 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 // 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,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;gBACE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F;;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", "Search", "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/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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// packages/plugins/plugin-debug/src/components/Container.tsx
|
|
2
|
-
import React from "react";
|
|
3
|
-
var Container = ({ toolbar, children }) => {
|
|
4
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
5
|
-
role: "none",
|
|
6
|
-
className: "flex flex-col grow overflow-hidden divide-y divide-separator"
|
|
7
|
-
}, toolbar, /* @__PURE__ */ React.createElement("div", {
|
|
8
|
-
className: "flex flex-col grow overflow-auto"
|
|
9
|
-
}, children));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
Container
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=chunk-GSJS3HEM.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/Container.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type PropsWithChildren, type ReactNode } from 'react';\n\n// TODO(burdon): Convert to grid.\nexport const Container = ({ toolbar, children }: PropsWithChildren<{ toolbar: ReactNode }>) => {\n return (\n <div role='none' className='flex flex-col grow overflow-hidden divide-y divide-separator'>\n {toolbar}\n <div className='flex flex-col grow overflow-auto'>{children}</div>\n </div>\n );\n};\n"],
|
|
5
|
-
"mappings": ";AAIA,OAAOA,WAAuD;AAGvD,IAAMC,YAAY,CAAC,EAAEC,SAASC,SAAQ,MAA6C;AACxF,SACE,sBAAA,cAACC,OAAAA;IAAIC,MAAK;IAAOC,WAAU;KACxBJ,SACD,sBAAA,cAACE,OAAAA;IAAIE,WAAU;KAAoCH,QAAAA,CAAAA;AAGzD;",
|
|
6
|
-
"names": ["React", "Container", "toolbar", "children", "div", "role", "className"]
|
|
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;UAC9B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B,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
|
-
}
|