@dxos/plugin-debug 0.8.4-main.28f8d3d → 0.8.4-main.406dc2a
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/DebugGraph-EDOH6R2G.mjs +20 -0
- package/dist/lib/browser/DebugGraph-EDOH6R2G.mjs.map +7 -0
- package/dist/lib/browser/{SpaceGenerator-XJJAOTIT.mjs → SpaceGenerator-VMWHGAJZ.mjs} +210 -31
- package/dist/lib/browser/SpaceGenerator-VMWHGAJZ.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-PXPZIIGY.mjs → app-graph-builder-I4IHBKKN.mjs} +73 -82
- package/dist/lib/browser/app-graph-builder-I4IHBKKN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-AJA6RYN3.mjs → chunk-SRV2AIGJ.mjs} +2 -2
- package/dist/lib/browser/chunk-SRV2AIGJ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-5XPIRNQS.mjs → chunk-SVCKCXCL.mjs} +2 -4
- package/dist/lib/browser/chunk-SVCKCXCL.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +13 -12
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-context-NVAGLAJD.mjs → react-context-QLZE7VSQ.mjs} +6 -6
- package/dist/lib/browser/react-context-QLZE7VSQ.mjs.map +7 -0
- package/dist/lib/browser/{react-surface-UNFNQFWK.mjs → react-surface-GFORPA3A.mjs} +75 -71
- package/dist/lib/browser/react-surface-GFORPA3A.mjs.map +7 -0
- package/dist/lib/browser/{settings-LSSWLM5I.mjs → settings-EBVICEEW.mjs} +5 -5
- package/dist/lib/browser/{settings-LSSWLM5I.mjs.map → settings-EBVICEEW.mjs.map} +1 -1
- package/dist/types/src/DebugPlugin.d.ts +1 -1
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +5 -5
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +1 -1
- package/dist/types/src/components/DebugGraph.d.ts +8 -0
- package/dist/types/src/components/DebugGraph.d.ts.map +1 -0
- package/dist/types/src/components/DebugObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/DebugSettings.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +1 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +13 -4
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts +4 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/Wireframe.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +0 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -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/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +65 -63
- package/src/DebugPlugin.tsx +5 -6
- package/src/capabilities/app-graph-builder.ts +61 -87
- package/src/capabilities/react-context.tsx +2 -2
- package/src/capabilities/react-surface.tsx +46 -44
- package/src/components/DebugGraph.tsx +14 -0
- package/src/components/DebugObjectPanel.tsx +2 -4
- package/src/components/DebugSettings.tsx +72 -64
- package/src/components/DebugStatus.tsx +2 -2
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +8 -8
- package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +10 -10
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +1 -1
- package/src/components/SpaceGenerator/draw-util.ts +2 -2
- package/src/components/SpaceGenerator/presets.ts +172 -11
- package/src/components/Wireframe.tsx +2 -1
- package/src/components/index.ts +1 -1
- package/src/meta.ts +1 -3
- package/src/translations.ts +2 -0
- package/src/types.ts +1 -1
- package/dist/lib/browser/DebugApp-F4UFVW4Y.mjs +0 -228
- package/dist/lib/browser/DebugApp-F4UFVW4Y.mjs.map +0 -7
- package/dist/lib/browser/SpaceGenerator-XJJAOTIT.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-PXPZIIGY.mjs.map +0 -7
- package/dist/lib/browser/chunk-5XPIRNQS.mjs.map +0 -7
- package/dist/lib/browser/chunk-AJA6RYN3.mjs.map +0 -7
- package/dist/lib/browser/react-context-NVAGLAJD.mjs.map +0 -7
- package/dist/lib/browser/react-surface-UNFNQFWK.mjs.map +0 -7
- package/dist/types/src/components/DebugApp/DebugApp.d.ts +0 -6
- package/dist/types/src/components/DebugApp/DebugApp.d.ts.map +0 -1
- package/dist/types/src/components/DebugApp/Tree.d.ts +0 -18
- package/dist/types/src/components/DebugApp/Tree.d.ts.map +0 -1
- package/dist/types/src/components/DebugApp/index.d.ts +0 -3
- package/dist/types/src/components/DebugApp/index.d.ts.map +0 -1
- package/src/components/DebugApp/DebugApp.tsx +0 -85
- package/src/components/DebugApp/Tree.tsx +0 -103
- package/src/components/DebugApp/index.ts +0 -7
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Devtools
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SRV2AIGJ.mjs";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
meta
|
|
6
|
+
} from "./chunk-SVCKCXCL.mjs";
|
|
7
7
|
|
|
8
8
|
// src/capabilities/app-graph-builder.ts
|
|
9
9
|
import { Rx } from "@effect-rx/rx-react";
|
|
10
|
-
import
|
|
10
|
+
import * as Function from "effect/Function";
|
|
11
|
+
import * as Option from "effect/Option";
|
|
11
12
|
import { Capabilities, contributes } from "@dxos/app-framework";
|
|
12
13
|
import { Obj } from "@dxos/echo";
|
|
13
14
|
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
|
|
14
15
|
import { ROOT_ID, createExtension, rxFromSignal } from "@dxos/plugin-graph";
|
|
15
|
-
import {
|
|
16
|
-
var DEVTOOLS_TYPE =
|
|
17
|
-
var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
|
|
16
|
+
import { getActiveSpace, meta as spaceMeta } from "@dxos/plugin-space";
|
|
17
|
+
var DEVTOOLS_TYPE = `${meta.id}/devtools`;
|
|
18
|
+
var app_graph_builder_default = ((context) => contributes(Capabilities.AppGraphBuilder, [
|
|
18
19
|
// Devtools node.
|
|
19
20
|
createExtension({
|
|
20
|
-
id:
|
|
21
|
-
connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID || node2.type === `${
|
|
21
|
+
id: `${meta.id}/devtools`,
|
|
22
|
+
connector: (node) => Rx.make((get) => Function.pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID || node2.type === `${spaceMeta.id}/settings` ? Option.some(node2) : Option.none()), Option.map((node2) => {
|
|
22
23
|
const space = get(rxFromSignal(() => getActiveSpace(context)));
|
|
24
|
+
const [graph] = get(context.capabilities(Capabilities.AppGraph));
|
|
23
25
|
return [
|
|
24
26
|
{
|
|
25
27
|
id: `${Devtools.id}-${node2.id}`,
|
|
@@ -29,7 +31,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
29
31
|
label: [
|
|
30
32
|
"devtools label",
|
|
31
33
|
{
|
|
32
|
-
ns:
|
|
34
|
+
ns: meta.id
|
|
33
35
|
}
|
|
34
36
|
],
|
|
35
37
|
icon: "ph--hammer--regular",
|
|
@@ -37,25 +39,42 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
37
39
|
position: "fallback"
|
|
38
40
|
},
|
|
39
41
|
nodes: [
|
|
40
|
-
...space && node2.type === `${
|
|
42
|
+
...space && node2.type === `${spaceMeta.id}/settings` ? [
|
|
41
43
|
{
|
|
42
44
|
id: `debug-${node2.id}`,
|
|
43
|
-
type:
|
|
45
|
+
type: `${meta.id}/space`,
|
|
44
46
|
data: {
|
|
45
47
|
space,
|
|
46
|
-
type:
|
|
48
|
+
type: `${meta.id}/space`
|
|
47
49
|
},
|
|
48
50
|
properties: {
|
|
49
51
|
label: [
|
|
50
52
|
"debug label",
|
|
51
53
|
{
|
|
52
|
-
ns:
|
|
54
|
+
ns: meta.id
|
|
53
55
|
}
|
|
54
56
|
],
|
|
55
57
|
icon: "ph--bug--regular"
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
] : [],
|
|
61
|
+
{
|
|
62
|
+
id: `app-graph-${node2.id}`,
|
|
63
|
+
type: `${meta.id}/app-graph`,
|
|
64
|
+
data: {
|
|
65
|
+
graph: graph?.graph,
|
|
66
|
+
root: space ? space.id : ROOT_ID
|
|
67
|
+
},
|
|
68
|
+
properties: {
|
|
69
|
+
label: [
|
|
70
|
+
"debug app graph label",
|
|
71
|
+
{
|
|
72
|
+
ns: meta.id
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
icon: "ph--graph--regular"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
59
78
|
{
|
|
60
79
|
id: `${Devtools.Client.id}-${node2.id}`,
|
|
61
80
|
data: null,
|
|
@@ -64,7 +83,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
64
83
|
label: [
|
|
65
84
|
"client label",
|
|
66
85
|
{
|
|
67
|
-
ns:
|
|
86
|
+
ns: meta.id
|
|
68
87
|
}
|
|
69
88
|
],
|
|
70
89
|
icon: "ph--users--regular"
|
|
@@ -78,7 +97,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
78
97
|
label: [
|
|
79
98
|
"config label",
|
|
80
99
|
{
|
|
81
|
-
ns:
|
|
100
|
+
ns: meta.id
|
|
82
101
|
}
|
|
83
102
|
],
|
|
84
103
|
icon: "ph--gear--regular"
|
|
@@ -92,7 +111,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
92
111
|
label: [
|
|
93
112
|
"storage label",
|
|
94
113
|
{
|
|
95
|
-
ns:
|
|
114
|
+
ns: meta.id
|
|
96
115
|
}
|
|
97
116
|
],
|
|
98
117
|
icon: "ph--hard-drives--regular"
|
|
@@ -106,7 +125,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
106
125
|
label: [
|
|
107
126
|
"logs label",
|
|
108
127
|
{
|
|
109
|
-
ns:
|
|
128
|
+
ns: meta.id
|
|
110
129
|
}
|
|
111
130
|
],
|
|
112
131
|
icon: "ph--file-text--regular"
|
|
@@ -120,7 +139,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
120
139
|
label: [
|
|
121
140
|
"diagnostics label",
|
|
122
141
|
{
|
|
123
|
-
ns:
|
|
142
|
+
ns: meta.id
|
|
124
143
|
}
|
|
125
144
|
],
|
|
126
145
|
icon: "ph--chart-line--regular"
|
|
@@ -134,7 +153,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
134
153
|
label: [
|
|
135
154
|
"tracing label",
|
|
136
155
|
{
|
|
137
|
-
ns:
|
|
156
|
+
ns: meta.id
|
|
138
157
|
}
|
|
139
158
|
],
|
|
140
159
|
icon: "ph--fire--regular"
|
|
@@ -150,7 +169,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
150
169
|
label: [
|
|
151
170
|
"halo label",
|
|
152
171
|
{
|
|
153
|
-
ns:
|
|
172
|
+
ns: meta.id
|
|
154
173
|
}
|
|
155
174
|
],
|
|
156
175
|
icon: "ph--identification-badge--regular"
|
|
@@ -164,7 +183,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
164
183
|
label: [
|
|
165
184
|
"identity label",
|
|
166
185
|
{
|
|
167
|
-
ns:
|
|
186
|
+
ns: meta.id
|
|
168
187
|
}
|
|
169
188
|
],
|
|
170
189
|
icon: "ph--identification-badge--regular"
|
|
@@ -178,7 +197,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
178
197
|
label: [
|
|
179
198
|
"devices label",
|
|
180
199
|
{
|
|
181
|
-
ns:
|
|
200
|
+
ns: meta.id
|
|
182
201
|
}
|
|
183
202
|
],
|
|
184
203
|
icon: "ph--devices--regular"
|
|
@@ -192,7 +211,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
192
211
|
label: [
|
|
193
212
|
"keyring label",
|
|
194
213
|
{
|
|
195
|
-
ns:
|
|
214
|
+
ns: meta.id
|
|
196
215
|
}
|
|
197
216
|
],
|
|
198
217
|
icon: "ph--key--regular"
|
|
@@ -206,7 +225,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
206
225
|
label: [
|
|
207
226
|
"credentials label",
|
|
208
227
|
{
|
|
209
|
-
ns:
|
|
228
|
+
ns: meta.id
|
|
210
229
|
}
|
|
211
230
|
],
|
|
212
231
|
icon: "ph--credit-card--regular"
|
|
@@ -222,7 +241,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
222
241
|
label: [
|
|
223
242
|
"echo label",
|
|
224
243
|
{
|
|
225
|
-
ns:
|
|
244
|
+
ns: meta.id
|
|
226
245
|
}
|
|
227
246
|
],
|
|
228
247
|
icon: "ph--database--regular"
|
|
@@ -236,7 +255,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
236
255
|
label: [
|
|
237
256
|
"spaces label",
|
|
238
257
|
{
|
|
239
|
-
ns:
|
|
258
|
+
ns: meta.id
|
|
240
259
|
}
|
|
241
260
|
],
|
|
242
261
|
icon: "ph--graph--regular"
|
|
@@ -250,7 +269,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
250
269
|
label: [
|
|
251
270
|
"space label",
|
|
252
271
|
{
|
|
253
|
-
ns:
|
|
272
|
+
ns: meta.id
|
|
254
273
|
}
|
|
255
274
|
],
|
|
256
275
|
icon: "ph--planet--regular"
|
|
@@ -264,7 +283,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
264
283
|
label: [
|
|
265
284
|
"feeds label",
|
|
266
285
|
{
|
|
267
|
-
ns:
|
|
286
|
+
ns: meta.id
|
|
268
287
|
}
|
|
269
288
|
],
|
|
270
289
|
icon: "ph--list-bullets--regular"
|
|
@@ -278,7 +297,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
278
297
|
label: [
|
|
279
298
|
"objects label",
|
|
280
299
|
{
|
|
281
|
-
ns:
|
|
300
|
+
ns: meta.id
|
|
282
301
|
}
|
|
283
302
|
],
|
|
284
303
|
icon: "ph--cube--regular"
|
|
@@ -292,7 +311,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
292
311
|
label: [
|
|
293
312
|
"schema label",
|
|
294
313
|
{
|
|
295
|
-
ns:
|
|
314
|
+
ns: meta.id
|
|
296
315
|
}
|
|
297
316
|
],
|
|
298
317
|
icon: "ph--database--regular"
|
|
@@ -306,7 +325,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
306
325
|
label: [
|
|
307
326
|
"automerge label",
|
|
308
327
|
{
|
|
309
|
-
ns:
|
|
328
|
+
ns: meta.id
|
|
310
329
|
}
|
|
311
330
|
],
|
|
312
331
|
icon: "ph--gear-six--regular"
|
|
@@ -320,7 +339,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
320
339
|
label: [
|
|
321
340
|
"queues label",
|
|
322
341
|
{
|
|
323
|
-
ns:
|
|
342
|
+
ns: meta.id
|
|
324
343
|
}
|
|
325
344
|
],
|
|
326
345
|
icon: "ph--queue--regular"
|
|
@@ -334,7 +353,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
334
353
|
label: [
|
|
335
354
|
"members label",
|
|
336
355
|
{
|
|
337
|
-
ns:
|
|
356
|
+
ns: meta.id
|
|
338
357
|
}
|
|
339
358
|
],
|
|
340
359
|
icon: "ph--users--regular"
|
|
@@ -348,7 +367,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
348
367
|
label: [
|
|
349
368
|
"metadata label",
|
|
350
369
|
{
|
|
351
|
-
ns:
|
|
370
|
+
ns: meta.id
|
|
352
371
|
}
|
|
353
372
|
],
|
|
354
373
|
icon: "ph--hard-drive--regular"
|
|
@@ -364,7 +383,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
364
383
|
label: [
|
|
365
384
|
"mesh label",
|
|
366
385
|
{
|
|
367
|
-
ns:
|
|
386
|
+
ns: meta.id
|
|
368
387
|
}
|
|
369
388
|
],
|
|
370
389
|
icon: "ph--graph--regular"
|
|
@@ -378,7 +397,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
378
397
|
label: [
|
|
379
398
|
"signal label",
|
|
380
399
|
{
|
|
381
|
-
ns:
|
|
400
|
+
ns: meta.id
|
|
382
401
|
}
|
|
383
402
|
],
|
|
384
403
|
icon: "ph--wifi-high--regular"
|
|
@@ -392,7 +411,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
392
411
|
label: [
|
|
393
412
|
"swarm label",
|
|
394
413
|
{
|
|
395
|
-
ns:
|
|
414
|
+
ns: meta.id
|
|
396
415
|
}
|
|
397
416
|
],
|
|
398
417
|
icon: "ph--users-three--regular"
|
|
@@ -406,7 +425,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
406
425
|
label: [
|
|
407
426
|
"network label",
|
|
408
427
|
{
|
|
409
|
-
ns:
|
|
428
|
+
ns: meta.id
|
|
410
429
|
}
|
|
411
430
|
],
|
|
412
431
|
icon: "ph--polygon--regular"
|
|
@@ -420,7 +439,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
420
439
|
// data: null,
|
|
421
440
|
// type: DEVTOOLS_TYPE,
|
|
422
441
|
// properties: {
|
|
423
|
-
// label: ['agent label', { ns:
|
|
442
|
+
// label: ['agent label', { ns: meta.id }],
|
|
424
443
|
// icon: 'ph--robot--regular',
|
|
425
444
|
// },
|
|
426
445
|
// nodes: [
|
|
@@ -429,7 +448,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
429
448
|
// data: Devtools.Agent.Dashboard,
|
|
430
449
|
// type: DEVTOOLS_TYPE,
|
|
431
450
|
// properties: {
|
|
432
|
-
// label: ['dashboard label', { ns:
|
|
451
|
+
// label: ['dashboard label', { ns: meta.id }],
|
|
433
452
|
// icon: 'ph--computer-tower--regular',
|
|
434
453
|
// },
|
|
435
454
|
// },
|
|
@@ -443,7 +462,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
443
462
|
label: [
|
|
444
463
|
"edge label",
|
|
445
464
|
{
|
|
446
|
-
ns:
|
|
465
|
+
ns: meta.id
|
|
447
466
|
}
|
|
448
467
|
],
|
|
449
468
|
icon: "ph--cloud--regular"
|
|
@@ -457,7 +476,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
457
476
|
label: [
|
|
458
477
|
"dashboard label",
|
|
459
478
|
{
|
|
460
|
-
ns:
|
|
479
|
+
ns: meta.id
|
|
461
480
|
}
|
|
462
481
|
],
|
|
463
482
|
icon: "ph--computer-tower--regular"
|
|
@@ -471,7 +490,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
471
490
|
label: [
|
|
472
491
|
"workflows label",
|
|
473
492
|
{
|
|
474
|
-
ns:
|
|
493
|
+
ns: meta.id
|
|
475
494
|
}
|
|
476
495
|
],
|
|
477
496
|
icon: "ph--function--regular"
|
|
@@ -485,7 +504,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
485
504
|
label: [
|
|
486
505
|
"traces label",
|
|
487
506
|
{
|
|
488
|
-
ns:
|
|
507
|
+
ns: meta.id
|
|
489
508
|
}
|
|
490
509
|
],
|
|
491
510
|
icon: "ph--line-segments--regular"
|
|
@@ -499,7 +518,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
499
518
|
label: [
|
|
500
519
|
"testing label",
|
|
501
520
|
{
|
|
502
|
-
ns:
|
|
521
|
+
ns: meta.id
|
|
503
522
|
}
|
|
504
523
|
],
|
|
505
524
|
icon: "ph--flask--regular"
|
|
@@ -512,38 +531,10 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
512
531
|
];
|
|
513
532
|
}), Option.getOrElse(() => [])))
|
|
514
533
|
}),
|
|
515
|
-
// Debug node.
|
|
516
|
-
createExtension({
|
|
517
|
-
id: "dxos.org/plugin/debug/debug",
|
|
518
|
-
connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID ? Option.some(node2) : Option.none()), Option.flatMap(() => {
|
|
519
|
-
const [graph] = get(context.capabilities(Capabilities.AppGraph));
|
|
520
|
-
return graph ? Option.some(graph) : Option.none();
|
|
521
|
-
}), Option.flatMap((graph) => {
|
|
522
|
-
return Option.none();
|
|
523
|
-
}), Option.map((graph) => [
|
|
524
|
-
{
|
|
525
|
-
id: "dxos.org/plugin/debug/debug",
|
|
526
|
-
type: "dxos.org/plugin/debug/debug",
|
|
527
|
-
data: {
|
|
528
|
-
graph
|
|
529
|
-
},
|
|
530
|
-
properties: {
|
|
531
|
-
label: [
|
|
532
|
-
"debug label",
|
|
533
|
-
{
|
|
534
|
-
ns: DEBUG_PLUGIN
|
|
535
|
-
}
|
|
536
|
-
],
|
|
537
|
-
disposition: "navigation",
|
|
538
|
-
icon: "ph--bug--regular"
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
]), Option.getOrElse(() => [])))
|
|
542
|
-
}),
|
|
543
534
|
// Debug object companion.
|
|
544
535
|
createExtension({
|
|
545
|
-
id: `${
|
|
546
|
-
connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => Obj.isObject(node2.data) ? Option.some(node2) : Option.none()), Option.map((node2) => [
|
|
536
|
+
id: `${meta.id}/debug-object`,
|
|
537
|
+
connector: (node) => Rx.make((get) => Function.pipe(get(node), Option.flatMap((node2) => Obj.isObject(node2.data) ? Option.some(node2) : Option.none()), Option.map((node2) => [
|
|
547
538
|
{
|
|
548
539
|
id: [
|
|
549
540
|
node2.id,
|
|
@@ -555,7 +546,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
555
546
|
label: [
|
|
556
547
|
"debug label",
|
|
557
548
|
{
|
|
558
|
-
ns:
|
|
549
|
+
ns: meta.id
|
|
559
550
|
}
|
|
560
551
|
],
|
|
561
552
|
icon: "ph--bug--regular",
|
|
@@ -567,8 +558,8 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
567
558
|
}),
|
|
568
559
|
// Devtools deck companion.
|
|
569
560
|
createExtension({
|
|
570
|
-
id: `${
|
|
571
|
-
connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID ? Option.some(node2) : Option.none()), Option.map((node2) => [
|
|
561
|
+
id: `${meta.id}/devtools-overview`,
|
|
562
|
+
connector: (node) => Rx.make((get) => Function.pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID ? Option.some(node2) : Option.none()), Option.map((node2) => [
|
|
572
563
|
{
|
|
573
564
|
id: [
|
|
574
565
|
node2.id,
|
|
@@ -580,7 +571,7 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
580
571
|
label: [
|
|
581
572
|
"devtools overview label",
|
|
582
573
|
{
|
|
583
|
-
ns:
|
|
574
|
+
ns: meta.id
|
|
584
575
|
}
|
|
585
576
|
],
|
|
586
577
|
icon: "ph--equalizer--regular",
|
|
@@ -590,8 +581,8 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
590
581
|
}
|
|
591
582
|
]), Option.getOrElse(() => [])))
|
|
592
583
|
})
|
|
593
|
-
]);
|
|
584
|
+
]));
|
|
594
585
|
export {
|
|
595
586
|
app_graph_builder_default as default
|
|
596
587
|
};
|
|
597
|
-
//# sourceMappingURL=app-graph-builder-
|
|
588
|
+
//# sourceMappingURL=app-graph-builder-I4IHBKKN.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Rx } from '@effect-rx/rx-react';\nimport * as Function from 'effect/Function';\nimport * as Option from 'effect/Option';\n\nimport { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\nimport { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';\nimport { ROOT_ID, createExtension, rxFromSignal } from '@dxos/plugin-graph';\nimport { getActiveSpace, meta as spaceMeta } from '@dxos/plugin-space';\n\nimport { meta } from '../meta';\nimport { Devtools } from '../types';\n\nconst DEVTOOLS_TYPE = `${meta.id}/devtools`;\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n // Devtools node.\n createExtension({\n id: `${meta.id}/devtools`,\n connector: (node) =>\n Rx.make((get) =>\n Function.pipe(\n get(node),\n Option.flatMap((node) =>\n node.id === ROOT_ID || node.type === `${spaceMeta.id}/settings` ? Option.some(node) : Option.none(),\n ),\n Option.map((node) => {\n const space = get(rxFromSignal(() => getActiveSpace(context)));\n const [graph] = get(context.capabilities(Capabilities.AppGraph));\n\n return [\n {\n id: `${Devtools.id}-${node.id}`,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['devtools label', { ns: meta.id }],\n icon: 'ph--hammer--regular',\n disposition: 'pin-end',\n position: 'fallback',\n },\n nodes: [\n ...(space && node.type === `${spaceMeta.id}/settings`\n ? [\n {\n id: `debug-${node.id}`,\n type: `${meta.id}/space`,\n data: { space, type: `${meta.id}/space` },\n properties: {\n label: ['debug label', { ns: meta.id }],\n icon: 'ph--bug--regular',\n },\n },\n ]\n : []),\n {\n id: `app-graph-${node.id}`,\n type: `${meta.id}/app-graph`,\n data: { graph: graph?.graph, root: space ? space.id : ROOT_ID },\n properties: {\n label: ['debug app graph label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n },\n {\n id: `${Devtools.Client.id}-${node.id}`,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['client label', { ns: meta.id }],\n icon: 'ph--users--regular',\n },\n nodes: [\n {\n id: `${Devtools.Client.Config}-${node.id}`,\n data: Devtools.Client.Config,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['config label', { ns: meta.id }],\n icon: 'ph--gear--regular',\n },\n },\n {\n id: `${Devtools.Client.Storage}-${node.id}`,\n data: Devtools.Client.Storage,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['storage label', { ns: meta.id }],\n icon: 'ph--hard-drives--regular',\n },\n },\n {\n id: `${Devtools.Client.Logs}-${node.id}`,\n data: Devtools.Client.Logs,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['logs label', { ns: meta.id }],\n icon: 'ph--file-text--regular',\n },\n },\n {\n id: `${Devtools.Client.Diagnostics}-${node.id}`,\n data: Devtools.Client.Diagnostics,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['diagnostics label', { ns: meta.id }],\n icon: 'ph--chart-line--regular',\n },\n },\n {\n id: `${Devtools.Client.Tracing}-${node.id}`,\n data: Devtools.Client.Tracing,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['tracing label', { ns: meta.id }],\n icon: 'ph--fire--regular',\n },\n },\n ],\n },\n {\n id: `${Devtools.Halo.id}-${node.id}`,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['halo label', { ns: meta.id }],\n icon: 'ph--identification-badge--regular',\n },\n nodes: [\n {\n id: `${Devtools.Halo.Identity}-${node.id}`,\n data: Devtools.Halo.Identity,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['identity label', { ns: meta.id }],\n icon: 'ph--identification-badge--regular',\n },\n },\n {\n id: `${Devtools.Halo.Devices}-${node.id}`,\n data: Devtools.Halo.Devices,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['devices label', { ns: meta.id }],\n icon: 'ph--devices--regular',\n },\n },\n {\n id: `${Devtools.Halo.Keyring}-${node.id}`,\n data: Devtools.Halo.Keyring,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['keyring label', { ns: meta.id }],\n icon: 'ph--key--regular',\n },\n },\n {\n id: `${Devtools.Halo.Credentials}-${node.id}`,\n data: Devtools.Halo.Credentials,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['credentials label', { ns: meta.id }],\n icon: 'ph--credit-card--regular',\n },\n },\n ],\n },\n {\n id: `${Devtools.Echo.id}-${node.id}`,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['echo label', { ns: meta.id }],\n icon: 'ph--database--regular',\n },\n nodes: [\n {\n id: `${Devtools.Echo.Spaces}-${node.id}`,\n data: Devtools.Echo.Spaces,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['spaces label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n },\n {\n id: `${Devtools.Echo.Space}-${node.id}`,\n data: Devtools.Echo.Space,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['space label', { ns: meta.id }],\n icon: 'ph--planet--regular',\n },\n },\n {\n id: `${Devtools.Echo.Feeds}-${node.id}`,\n data: Devtools.Echo.Feeds,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['feeds label', { ns: meta.id }],\n icon: 'ph--list-bullets--regular',\n },\n },\n {\n id: `${Devtools.Echo.Objects}-${node.id}`,\n data: Devtools.Echo.Objects,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['objects label', { ns: meta.id }],\n icon: 'ph--cube--regular',\n },\n },\n {\n id: `${Devtools.Echo.Schema}-${node.id}`,\n data: Devtools.Echo.Schema,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['schema label', { ns: meta.id }],\n icon: 'ph--database--regular',\n },\n },\n {\n id: `${Devtools.Echo.Automerge}-${node.id}`,\n data: Devtools.Echo.Automerge,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['automerge label', { ns: meta.id }],\n icon: 'ph--gear-six--regular',\n },\n },\n {\n id: `${Devtools.Echo.Queues}-${node.id}`,\n data: Devtools.Echo.Queues,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['queues label', { ns: meta.id }],\n icon: 'ph--queue--regular',\n },\n },\n {\n id: `${Devtools.Echo.Members}-${node.id}`,\n data: Devtools.Echo.Members,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['members label', { ns: meta.id }],\n icon: 'ph--users--regular',\n },\n },\n {\n id: `${Devtools.Echo.Metadata}-${node.id}`,\n data: Devtools.Echo.Metadata,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['metadata label', { ns: meta.id }],\n icon: 'ph--hard-drive--regular',\n },\n },\n ],\n },\n {\n id: `${Devtools.Mesh.id}-${node.id}`,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['mesh label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n nodes: [\n {\n id: `${Devtools.Mesh.Signal}-${node.id}`,\n data: Devtools.Mesh.Signal,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['signal label', { ns: meta.id }],\n icon: 'ph--wifi-high--regular',\n },\n },\n {\n id: `${Devtools.Mesh.Swarm}-${node.id}`,\n data: Devtools.Mesh.Swarm,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['swarm label', { ns: meta.id }],\n icon: 'ph--users-three--regular',\n },\n },\n {\n id: `${Devtools.Mesh.Network}-${node.id}`,\n data: Devtools.Mesh.Network,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['network label', { ns: meta.id }],\n icon: 'ph--polygon--regular',\n },\n },\n ],\n },\n // TODO(wittjosiah): Remove?\n // {\n // id: `${prefix}-${Devtools.Agent.id}`,\n // data: null,\n // type: DEVTOOLS_TYPE,\n // properties: {\n // label: ['agent label', { ns: meta.id }],\n // icon: 'ph--robot--regular',\n // },\n // nodes: [\n // {\n // id: `${prefix}-${Devtools.Agent.Dashboard}`,\n // data: Devtools.Agent.Dashboard,\n // type: DEVTOOLS_TYPE,\n // properties: {\n // label: ['dashboard label', { ns: meta.id }],\n // icon: 'ph--computer-tower--regular',\n // },\n // },\n // ],\n // },\n {\n id: `${Devtools.Edge.id}-${node.id}`,\n data: null,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['edge label', { ns: meta.id }],\n icon: 'ph--cloud--regular',\n },\n nodes: [\n {\n id: `${Devtools.Edge.Dashboard}-${node.id}`,\n data: Devtools.Edge.Dashboard,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['dashboard label', { ns: meta.id }],\n icon: 'ph--computer-tower--regular',\n },\n },\n {\n id: `${Devtools.Edge.Workflows}-${node.id}`,\n data: Devtools.Edge.Workflows,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['workflows label', { ns: meta.id }],\n icon: 'ph--function--regular',\n },\n },\n {\n id: `${Devtools.Edge.Traces}-${node.id}`,\n data: Devtools.Edge.Traces,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['traces label', { ns: meta.id }],\n icon: 'ph--line-segments--regular',\n },\n },\n {\n id: `${Devtools.Edge.Testing}-${node.id}`,\n data: Devtools.Edge.Testing,\n type: DEVTOOLS_TYPE,\n properties: {\n label: ['testing label', { ns: meta.id }],\n icon: 'ph--flask--regular',\n },\n },\n ],\n },\n ],\n },\n ];\n }),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n\n // Debug object companion.\n createExtension({\n id: `${meta.id}/debug-object`,\n connector: (node) =>\n Rx.make((get) =>\n Function.pipe(\n get(node),\n Option.flatMap((node) => (Obj.isObject(node.data) ? Option.some(node) : Option.none())),\n Option.map((node) => [\n {\n id: [node.id, 'debug'].join(ATTENDABLE_PATH_SEPARATOR),\n type: PLANK_COMPANION_TYPE,\n data: 'debug',\n properties: {\n label: ['debug label', { ns: meta.id }],\n icon: 'ph--bug--regular',\n disposition: 'hidden',\n position: 'fallback',\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n\n // Devtools deck companion.\n createExtension({\n id: `${meta.id}/devtools-overview`,\n connector: (node) =>\n Rx.make((get) =>\n Function.pipe(\n get(node),\n Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),\n Option.map((node) => [\n {\n id: [node.id, 'devtools'].join(ATTENDABLE_PATH_SEPARATOR),\n type: DECK_COMPANION_TYPE,\n data: null,\n properties: {\n label: ['devtools overview label', { ns: meta.id }],\n icon: 'ph--equalizer--regular',\n disposition: 'hidden',\n position: 'fallback',\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,UAAU;AACnB,YAAYC,cAAc;AAC1B,YAAYC,YAAY;AAExB,SAASC,cAAkCC,mBAAmB;AAC9D,SAASC,WAAW;AACpB,SAASC,2BAA2BC,qBAAqBC,4BAA4B;AACrF,SAASC,SAASC,iBAAiBC,oBAAoB;AACvD,S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EAGA5D,gBAAgB;IACdL,IAAI,GAAGD,KAAKC,EAAE;IACdM,WAAW,CAACC,SACVC,GAAGC,KAAK,CAACC,QACEC,cACPD,IAAIH,IAAAA,GACGK,eAAQ,CAACL,UAAUA,MAAKP,OAAOa,UAAiBG,YAAKT,KAAAA,IAAeU,YAAI,CAAA,GACxEC,WAAI,CAACX,UAAS;MACnB;QACEP,IAAI;UAACO,MAAKP;UAAI;UAAYoE,KAAKC,yBAAAA;QAC/BvD,MAAMyD;QACN7C,MAAM;QACNC,YAAY;UACVC,OAAO;YAAC;YAA2B;cAAEC,IAAI9B,KAAKC;YAAG;;UACjD8B,MAAM;UACNC,aAAa;UACbC,UAAU;QACZ;MACF;KACD,GACMiC,iBAAU,MAAM,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;CACD;",
|
|
6
|
+
"names": ["Rx", "Function", "Option", "Capabilities", "contributes", "Obj", "ATTENDABLE_PATH_SEPARATOR", "DECK_COMPANION_TYPE", "PLANK_COMPANION_TYPE", "ROOT_ID", "createExtension", "rxFromSignal", "getActiveSpace", "meta", "spaceMeta", "DEVTOOLS_TYPE", "meta", "id", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "connector", "node", "Rx", "make", "get", "pipe", "flatMap", "ROOT_ID", "type", "spaceMeta", "some", "none", "map", "space", "rxFromSignal", "getActiveSpace", "graph", "capabilities", "AppGraph", "Devtools", "data", "properties", "label", "ns", "icon", "disposition", "position", "nodes", "root", "Client", "Config", "Storage", "Logs", "Diagnostics", "Tracing", "Halo", "Identity", "Devices", "Keyring", "Credentials", "Echo", "Spaces", "Space", "Feeds", "Objects", "Schema", "Automerge", "Queues", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Edge", "Dashboard", "Workflows", "Traces", "Testing", "getOrElse", "Obj", "isObject", "join", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "DECK_COMPANION_TYPE"]
|
|
7
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/types.ts
|
|
2
|
-
import
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
3
|
import { createContext } from "react";
|
|
4
4
|
var DebugContext = createContext({
|
|
5
5
|
running: false,
|
|
@@ -65,4 +65,4 @@ export {
|
|
|
65
65
|
DebugSettingsSchema,
|
|
66
66
|
Devtools
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=chunk-
|
|
68
|
+
//# sourceMappingURL=chunk-SRV2AIGJ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport { type Context, createContext } from 'react';\n\nimport type { TimerCallback, TimerOptions } from '@dxos/async';\n\nexport type DebugContextType = {\n running: boolean;\n start: (cb: TimerCallback, options: TimerOptions) => void;\n stop: () => void;\n};\n\nexport const DebugContext: Context<DebugContextType> = createContext<DebugContextType>({\n running: false,\n start: () => {},\n stop: () => {},\n});\n\nexport const DebugSettingsSchema = Schema.mutable(\n Schema.Struct({\n wireframe: Schema.optional(Schema.Boolean),\n }),\n);\n\nexport interface DebugSettingsProps extends Schema.Schema.Type<typeof DebugSettingsSchema> {}\n\nexport namespace Devtools {\n // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.\n export const id = 'dxos.org.plugin.debug.devtools';\n\n export namespace Client {\n export const id = `${Devtools.id}.client`;\n export const Config = `${Devtools.Client.id}.config`;\n export const Storage = `${Devtools.Client.id}.storage`;\n export const Logs = `${Devtools.Client.id}.logs`;\n export const Diagnostics = `${Devtools.Client.id}.diagnostics`;\n export const Tracing = `${Devtools.Client.id}.tracing`;\n }\n\n export namespace Halo {\n export const id = `${Devtools.id}.halo`;\n export const Identity = `${Devtools.Halo.id}.identity`;\n export const Devices = `${Devtools.Halo.id}.devices`;\n export const Keyring = `${Devtools.Halo.id}.keyring`;\n export const Credentials = `${Devtools.Halo.id}.credentials`;\n }\n\n export namespace Echo {\n export const id = `${Devtools.id}.echo`;\n export const Spaces = `${Devtools.Echo.id}.spaces`;\n export const Space = `${Devtools.Echo.id}.space`;\n export const Feeds = `${Devtools.Echo.id}.feeds`;\n export const Objects = `${Devtools.Echo.id}.objects`;\n export const Schema = `${Devtools.Echo.id}.schema`;\n export const Automerge = `${Devtools.Echo.id}.automerge`;\n export const Queues = `${Devtools.Echo.id}.queues`;\n export const Members = `${Devtools.Echo.id}.members`;\n export const Metadata = `${Devtools.Echo.id}.metadata`;\n }\n\n export namespace Mesh {\n export const id = `${Devtools.id}.mesh`;\n export const Signal = `${Devtools.Mesh.id}.signal`;\n export const Swarm = `${Devtools.Mesh.id}.swarm`;\n export const Network = `${Devtools.Mesh.id}.network`;\n }\n\n export namespace Agent {\n export const id = `${Devtools.id}.agent`;\n export const Dashboard = `${Devtools.Agent.id}.dashboard`;\n export const Search = `${Devtools.Agent.id}.search`;\n }\n\n export namespace Edge {\n export const id = `${Devtools.id}.edge`;\n export const Dashboard = `${Devtools.Edge.id}.dashboard`;\n export const Workflows = `${Devtools.Edge.id}.workflows`;\n export const Traces = `${Devtools.Edge.id}.traces`;\n export const Testing = `${Devtools.Edge.id}.testing`;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAIA,YAAYA,YAAY;AACxB,SAAuBC,qBAAqB;AAUrC,IAAMC,eAA0CC,cAAgC;EACrFC,SAAS;EACTC,OAAO,MAAA;EAAO;EACdC,MAAM,MAAA;EAAO;AACf,CAAA;AAEO,IAAMC,sBAA6BC,eACjCC,cAAO;EACZC,WAAkBC,gBAAgBC,cAAO;AAC3C,CAAA,CAAA;UAKeC,WAAAA;YAEFC,KAAK;YAEDC,QAAAA;WACFD,KAAK,GAAGD,UAASC,EAAE;WACnBE,SAAS,GAAGH,UAASE,OAAOD,EAAE;WAC9BG,UAAU,GAAGJ,UAASE,OAAOD,EAAE;WAC/BI,O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AE;UACnB2B,YAAY,GAAG5B,UAAS2B,MAAM1B,EAAE;UAChC4B,SAAS,GAAG7B,UAAS2B,MAAM1B,EAAE;EAC5C,GAAAD,UAJiB2B,UAAAA,UAAAA,QAAAA,CAAAA,EAAAA;YAMAG,MAAAA;SACF7B,KAAK,GAAGD,UAASC,EAAE;SACnB2B,YAAY,GAAG5B,UAAS8B,KAAK7B,EAAE;SAC/B8B,YAAY,GAAG/B,UAAS8B,KAAK7B,EAAE;SAC/B+B,SAAS,GAAGhC,UAAS8B,KAAK7B,EAAE;SAC5BgC,UAAU,GAAGjC,UAAS8B,KAAK7B,EAAE;EAC5C,GAAAD,UANiB8B,SAAAA,UAAAA,OAAAA,CAAAA,EAAAA;AAOnB,GAtDiB9B,aAAAA,WAAAA,CAAAA,EAAAA;;",
|
|
6
|
+
"names": ["Schema", "createContext", "DebugContext", "createContext", "running", "start", "stop", "DebugSettingsSchema", "mutable", "Struct", "wireframe", "optional", "Boolean", "Devtools", "id", "Client", "Config", "Storage", "Logs", "Diagnostics", "Tracing", "Halo", "Identity", "Devices", "Keyring", "Credentials", "Echo", "Spaces", "Space", "Feeds", "Objects", "Schema", "Automerge", "Queues", "Members", "Metadata", "Mesh", "Signal", "Swarm", "Network", "Agent", "Dashboard", "Search", "Edge", "Workflows", "Traces", "Testing"]
|
|
7
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// src/meta.ts
|
|
2
|
-
var DEBUG_PLUGIN = "dxos.org/plugin/debug";
|
|
3
2
|
var meta = {
|
|
4
|
-
id:
|
|
3
|
+
id: "dxos.org/plugin/debug",
|
|
5
4
|
name: "Debug",
|
|
6
5
|
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
6
|
icon: "ph--bug--regular",
|
|
@@ -12,7 +11,6 @@ var meta = {
|
|
|
12
11
|
};
|
|
13
12
|
|
|
14
13
|
export {
|
|
15
|
-
DEBUG_PLUGIN,
|
|
16
14
|
meta
|
|
17
15
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-SVCKCXCL.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 meta: PluginMeta = {\n id: 'dxos.org/plugin/debug',\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 screenshots: ['https://dxos.network/plugin-details-debug-dark.png'],\n};\n"],
|
|
5
|
+
"mappings": ";AAMO,IAAMA,OAAmB;EAC9BC,IAAI;EACJC,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,aAAa;IAAC;;AAChB;",
|
|
6
|
+
"names": ["meta", "id", "name", "description", "icon", "source", "screenshots"]
|
|
7
|
+
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
DEBUG_PLUGIN,
|
|
3
2
|
meta
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SVCKCXCL.mjs";
|
|
5
4
|
|
|
6
5
|
// src/DebugPlugin.tsx
|
|
7
6
|
import { Capabilities, Events, contributes, defineModule, definePlugin } from "@dxos/app-framework";
|
|
8
7
|
|
|
9
8
|
// src/capabilities/index.ts
|
|
10
9
|
import { lazy } from "@dxos/app-framework";
|
|
11
|
-
var AppGraphBuilder = lazy(() => import("./app-graph-builder-
|
|
12
|
-
var ReactContext = lazy(() => import("./react-context-
|
|
13
|
-
var ReactSurface = lazy(() => import("./react-surface-
|
|
14
|
-
var DebugSettings = lazy(() => import("./settings-
|
|
10
|
+
var AppGraphBuilder = lazy(() => import("./app-graph-builder-I4IHBKKN.mjs"));
|
|
11
|
+
var ReactContext = lazy(() => import("./react-context-QLZE7VSQ.mjs"));
|
|
12
|
+
var ReactSurface = lazy(() => import("./react-surface-GFORPA3A.mjs"));
|
|
13
|
+
var DebugSettings = lazy(() => import("./settings-EBVICEEW.mjs"));
|
|
15
14
|
|
|
16
15
|
// src/translations.ts
|
|
17
16
|
var translations = [
|
|
@@ -19,12 +18,14 @@ var translations = [
|
|
|
19
18
|
"en-US": {
|
|
20
19
|
[meta.id]: {
|
|
21
20
|
"plugin name": "Debug",
|
|
21
|
+
"settings title": "Debug settings",
|
|
22
22
|
"mutation count": "Number of mutations",
|
|
23
23
|
"mutation period": "Mutation period",
|
|
24
24
|
"open devtools label": "Open DevTools",
|
|
25
25
|
"devtools label": "DevTools",
|
|
26
26
|
"devtools overview label": "DevTools Stats",
|
|
27
27
|
"debug label": "Debug",
|
|
28
|
+
"debug app graph label": "App Graph",
|
|
28
29
|
"settings show debug panel": "Show Debug panel.",
|
|
29
30
|
"settings show devtools panel": "Show DevTools panel.",
|
|
30
31
|
"settings wireframe": "Show wireframes.",
|
|
@@ -79,9 +80,9 @@ var translations = [
|
|
|
79
80
|
];
|
|
80
81
|
|
|
81
82
|
// src/DebugPlugin.tsx
|
|
82
|
-
var DebugPlugin = () => {
|
|
83
|
+
var DebugPlugin = definePlugin(meta, () => {
|
|
83
84
|
setupDevtools();
|
|
84
|
-
return
|
|
85
|
+
return [
|
|
85
86
|
defineModule({
|
|
86
87
|
id: `${meta.id}/module/settings`,
|
|
87
88
|
activatesOn: Events.SetupSettings,
|
|
@@ -107,10 +108,11 @@ var DebugPlugin = () => {
|
|
|
107
108
|
activatesOn: Events.SetupAppGraph,
|
|
108
109
|
activate: AppGraphBuilder
|
|
109
110
|
})
|
|
110
|
-
]
|
|
111
|
-
};
|
|
111
|
+
];
|
|
112
|
+
});
|
|
112
113
|
var setupDevtools = () => {
|
|
113
|
-
|
|
114
|
+
var _globalThis;
|
|
115
|
+
(_globalThis = globalThis).composer ?? (_globalThis.composer = {});
|
|
114
116
|
globalThis.composer.changeStorageVersionInMetadata = async (version) => {
|
|
115
117
|
const { changeStorageVersionInMetadata } = await import("@dxos/echo-pipeline/testing");
|
|
116
118
|
const { createStorageObjects } = await import("@dxos/client-services");
|
|
@@ -123,7 +125,6 @@ var setupDevtools = () => {
|
|
|
123
125
|
};
|
|
124
126
|
};
|
|
125
127
|
export {
|
|
126
|
-
DEBUG_PLUGIN,
|
|
127
128
|
DebugPlugin,
|
|
128
129
|
meta
|
|
129
130
|
};
|