@dxos/plugin-debug 0.8.4-main.c1de068 → 0.8.4-main.c351d160a8

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 (197) hide show
  1. package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs +16 -0
  2. package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs.map +7 -0
  3. package/dist/lib/browser/DebugObjectPanel-KXVFOGU6.mjs +35 -0
  4. package/dist/lib/browser/DebugObjectPanel-KXVFOGU6.mjs.map +7 -0
  5. package/dist/lib/browser/DebugSettings-XNAKCV2F.mjs +174 -0
  6. package/dist/lib/browser/DebugSettings-XNAKCV2F.mjs.map +7 -0
  7. package/dist/lib/browser/DebugSpaceObjectsPanel-SIK72DXV.mjs +45 -0
  8. package/dist/lib/browser/DebugSpaceObjectsPanel-SIK72DXV.mjs.map +7 -0
  9. package/dist/lib/browser/DebugStatus-COQGH37G.mjs +125 -0
  10. package/dist/lib/browser/DebugStatus-COQGH37G.mjs.map +7 -0
  11. package/dist/lib/browser/DevtoolsOverviewContainer-C75NFVER.mjs +20 -0
  12. package/dist/lib/browser/DevtoolsOverviewContainer-C75NFVER.mjs.map +7 -0
  13. package/dist/lib/browser/{SpaceGenerator-AG3XGNMV.mjs → SpaceGenerator-Q2GH6S6D.mjs} +577 -382
  14. package/dist/lib/browser/SpaceGenerator-Q2GH6S6D.mjs.map +7 -0
  15. package/dist/lib/browser/Wireframe-KAGOKEFW.mjs +53 -0
  16. package/dist/lib/browser/Wireframe-KAGOKEFW.mjs.map +7 -0
  17. package/dist/lib/browser/app-graph-builder-FU4BCDDC.mjs +593 -0
  18. package/dist/lib/browser/app-graph-builder-FU4BCDDC.mjs.map +7 -0
  19. package/dist/lib/browser/{chunk-AJA6RYN3.mjs → chunk-Q37TZWW5.mjs} +13 -3
  20. package/dist/lib/browser/chunk-Q37TZWW5.mjs.map +7 -0
  21. package/dist/lib/browser/chunk-ZOM2FBHQ.mjs +20 -0
  22. package/dist/lib/browser/chunk-ZOM2FBHQ.mjs.map +7 -0
  23. package/dist/lib/browser/index.mjs +43 -41
  24. package/dist/lib/browser/index.mjs.map +4 -4
  25. package/dist/lib/browser/meta.json +1 -1
  26. package/dist/lib/browser/react-context-5ENRJEB2.mjs +17 -0
  27. package/dist/lib/browser/react-context-5ENRJEB2.mjs.map +7 -0
  28. package/dist/lib/browser/react-surface-VD6RD6PL.mjs +427 -0
  29. package/dist/lib/browser/react-surface-VD6RD6PL.mjs.map +7 -0
  30. package/dist/lib/browser/settings-XXFUM3QJ.mjs +32 -0
  31. package/dist/lib/browser/settings-XXFUM3QJ.mjs.map +7 -0
  32. package/dist/types/src/DebugPlugin.d.ts +7 -1
  33. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  34. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  35. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  36. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  37. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  38. package/dist/types/src/capabilities/index.d.ts +4 -8
  39. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  40. package/dist/types/src/capabilities/react-context/index.d.ts +7 -0
  41. package/dist/types/src/capabilities/react-context/index.d.ts.map +1 -0
  42. package/dist/types/src/capabilities/react-context/react-context.d.ts +10 -0
  43. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -0
  44. package/dist/types/src/capabilities/react-surface/index.d.ts +5 -0
  45. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  46. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +9 -0
  47. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  48. package/dist/types/src/capabilities/settings/index.d.ts +3 -0
  49. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  50. package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
  51. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  52. package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -0
  53. package/dist/types/src/components/SchemaTable/index.d.ts +2 -0
  54. package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -0
  55. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +5 -5
  56. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  57. package/dist/types/src/components/SpaceGenerator/draw-util.d.ts.map +1 -1
  58. package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
  59. package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
  60. package/dist/types/src/components/SpaceGenerator/presets.d.ts +4 -4
  61. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  62. package/dist/types/src/components/index.d.ts +2 -9
  63. package/dist/types/src/components/index.d.ts.map +1 -1
  64. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +8 -0
  65. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
  66. package/dist/types/src/containers/DebugGraph/index.d.ts +3 -0
  67. package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
  68. package/dist/types/src/{components → containers/DebugObjectPanel}/DebugObjectPanel.d.ts +2 -2
  69. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
  70. package/dist/types/src/containers/DebugObjectPanel/index.d.ts +3 -0
  71. package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
  72. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts +10 -0
  73. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +1 -0
  74. package/dist/types/src/containers/DebugSettings/index.d.ts +3 -0
  75. package/dist/types/src/containers/DebugSettings/index.d.ts.map +1 -0
  76. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +3 -0
  77. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
  78. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +3 -0
  79. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -0
  80. package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -0
  81. package/dist/types/src/containers/DebugStatus/index.d.ts +3 -0
  82. package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -0
  83. package/dist/types/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.d.ts +0 -1
  84. package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
  85. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +3 -0
  86. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
  87. package/dist/types/src/{components → containers}/SpaceGenerator/SpaceGenerator.d.ts +2 -2
  88. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -0
  89. package/dist/types/src/containers/SpaceGenerator/index.d.ts +3 -0
  90. package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -0
  91. package/dist/types/src/{components → containers/Wireframe}/Wireframe.d.ts +2 -2
  92. package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -0
  93. package/dist/types/src/containers/Wireframe/index.d.ts +3 -0
  94. package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
  95. package/dist/types/src/containers/index.d.ts +10 -0
  96. package/dist/types/src/containers/index.d.ts.map +1 -0
  97. package/dist/types/src/meta.d.ts +2 -3
  98. package/dist/types/src/meta.d.ts.map +1 -1
  99. package/dist/types/src/translations.d.ts +5 -1
  100. package/dist/types/src/translations.d.ts.map +1 -1
  101. package/dist/types/src/types.d.ts +40 -35
  102. package/dist/types/src/types.d.ts.map +1 -1
  103. package/dist/types/tsconfig.tsbuildinfo +1 -1
  104. package/package.json +76 -67
  105. package/src/DebugPlugin.tsx +27 -32
  106. package/src/capabilities/app-graph-builder/app-graph-builder.ts +419 -0
  107. package/src/capabilities/app-graph-builder/index.ts +7 -0
  108. package/src/capabilities/index.ts +4 -6
  109. package/src/capabilities/react-context/index.ts +7 -0
  110. package/src/capabilities/react-context/react-context.tsx +20 -0
  111. package/src/capabilities/react-surface/index.ts +7 -0
  112. package/src/capabilities/react-surface/react-surface.tsx +413 -0
  113. package/src/capabilities/settings/index.ts +7 -0
  114. package/src/capabilities/settings/settings.ts +31 -0
  115. package/src/components/SchemaTable/index.ts +5 -0
  116. package/src/components/SpaceGenerator/ObjectGenerator.tsx +31 -39
  117. package/src/components/SpaceGenerator/draw-util.ts +5 -5
  118. package/src/components/SpaceGenerator/index.ts +2 -3
  119. package/src/components/SpaceGenerator/presets.ts +339 -53
  120. package/src/components/index.ts +2 -10
  121. package/src/containers/DebugGraph/DebugGraph.tsx +13 -0
  122. package/src/containers/DebugGraph/index.ts +7 -0
  123. package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +47 -0
  124. package/src/containers/DebugObjectPanel/index.ts +7 -0
  125. package/src/containers/DebugSettings/DebugSettings.tsx +201 -0
  126. package/src/containers/DebugSettings/index.ts +7 -0
  127. package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +55 -0
  128. package/src/containers/DebugSpaceObjectsPanel/index.ts +7 -0
  129. package/src/{components → containers/DebugStatus}/DebugStatus.tsx +2 -2
  130. package/src/containers/DebugStatus/index.ts +7 -0
  131. package/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.tsx +2 -4
  132. package/src/containers/DevtoolsOverviewContainer/index.ts +7 -0
  133. package/src/containers/SpaceGenerator/SpaceGenerator.tsx +127 -0
  134. package/src/containers/SpaceGenerator/index.ts +7 -0
  135. package/src/{components → containers/Wireframe}/Wireframe.tsx +7 -7
  136. package/src/containers/Wireframe/index.ts +7 -0
  137. package/src/containers/index.ts +14 -0
  138. package/src/meta.ts +8 -7
  139. package/src/translations.ts +5 -1
  140. package/src/types.ts +10 -3
  141. package/dist/lib/browser/DebugApp-ZDL4CPY5.mjs +0 -228
  142. package/dist/lib/browser/DebugApp-ZDL4CPY5.mjs.map +0 -7
  143. package/dist/lib/browser/DevtoolsOverviewContainer-EPD6EWT5.mjs +0 -25
  144. package/dist/lib/browser/DevtoolsOverviewContainer-EPD6EWT5.mjs.map +0 -7
  145. package/dist/lib/browser/SpaceGenerator-AG3XGNMV.mjs.map +0 -7
  146. package/dist/lib/browser/app-graph-builder-SQXFD2BL.mjs +0 -597
  147. package/dist/lib/browser/app-graph-builder-SQXFD2BL.mjs.map +0 -7
  148. package/dist/lib/browser/chunk-5XPIRNQS.mjs +0 -18
  149. package/dist/lib/browser/chunk-5XPIRNQS.mjs.map +0 -7
  150. package/dist/lib/browser/chunk-AJA6RYN3.mjs.map +0 -7
  151. package/dist/lib/browser/react-context-NVAGLAJD.mjs +0 -16
  152. package/dist/lib/browser/react-context-NVAGLAJD.mjs.map +0 -7
  153. package/dist/lib/browser/react-surface-3GD2OWCA.mjs +0 -768
  154. package/dist/lib/browser/react-surface-3GD2OWCA.mjs.map +0 -7
  155. package/dist/lib/browser/settings-LSSWLM5I.mjs +0 -22
  156. package/dist/lib/browser/settings-LSSWLM5I.mjs.map +0 -7
  157. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  158. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  159. package/dist/types/src/capabilities/react-context.d.ts +0 -8
  160. package/dist/types/src/capabilities/react-context.d.ts.map +0 -1
  161. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  162. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  163. package/dist/types/src/capabilities/settings.d.ts +0 -4
  164. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  165. package/dist/types/src/components/Container.d.ts +0 -5
  166. package/dist/types/src/components/Container.d.ts.map +0 -1
  167. package/dist/types/src/components/DebugApp/DebugApp.d.ts +0 -6
  168. package/dist/types/src/components/DebugApp/DebugApp.d.ts.map +0 -1
  169. package/dist/types/src/components/DebugApp/Tree.d.ts +0 -18
  170. package/dist/types/src/components/DebugApp/Tree.d.ts.map +0 -1
  171. package/dist/types/src/components/DebugApp/index.d.ts +0 -3
  172. package/dist/types/src/components/DebugApp/index.d.ts.map +0 -1
  173. package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
  174. package/dist/types/src/components/DebugSettings.d.ts +0 -6
  175. package/dist/types/src/components/DebugSettings.d.ts.map +0 -1
  176. package/dist/types/src/components/DebugStatus.d.ts.map +0 -1
  177. package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
  178. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +0 -1
  179. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +0 -1
  180. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -6
  181. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +0 -1
  182. package/dist/types/src/components/Wireframe.d.ts.map +0 -1
  183. package/src/capabilities/app-graph-builder.ts +0 -457
  184. package/src/capabilities/react-context.tsx +0 -16
  185. package/src/capabilities/react-surface.tsx +0 -397
  186. package/src/capabilities/settings.ts +0 -19
  187. package/src/components/Container.tsx +0 -15
  188. package/src/components/DebugApp/DebugApp.tsx +0 -84
  189. package/src/components/DebugApp/Tree.tsx +0 -103
  190. package/src/components/DebugApp/index.ts +0 -7
  191. package/src/components/DebugObjectPanel.tsx +0 -35
  192. package/src/components/DebugSettings.tsx +0 -151
  193. package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -52
  194. package/src/components/SpaceGenerator/SpaceGenerator.tsx +0 -122
  195. /package/dist/types/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.d.ts +0 -0
  196. /package/dist/types/src/{components → containers/DebugStatus}/DebugStatus.d.ts +0 -0
  197. /package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +0 -0
@@ -0,0 +1,593 @@
1
+ import {
2
+ Devtools
3
+ } from "./chunk-Q37TZWW5.mjs";
4
+ import {
5
+ meta
6
+ } from "./chunk-ZOM2FBHQ.mjs";
7
+
8
+ // src/capabilities/app-graph-builder/app-graph-builder.ts
9
+ import * as Effect from "effect/Effect";
10
+ import { Capability } from "@dxos/app-framework";
11
+ import { AppCapabilities, getSpaceIdFromPath } from "@dxos/app-toolkit";
12
+ import { ClientCapabilities } from "@dxos/plugin-client";
13
+ import { DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
14
+ import { GraphBuilder, Node, NodeMatcher } from "@dxos/plugin-graph";
15
+ import { meta as spaceMeta } from "@dxos/plugin-space";
16
+ var DEVTOOLS_TYPE = `${meta.id}.devtools`;
17
+ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
18
+ const extensions = yield* Effect.all([
19
+ // Devtools node.
20
+ GraphBuilder.createExtension({
21
+ id: `${meta.id}.devtools`,
22
+ match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`)),
23
+ connector: (node, get) => Effect.gen(function* () {
24
+ const client = yield* Capability.get(ClientCapabilities.Client);
25
+ const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
26
+ const layout = layoutAtom ? get(layoutAtom) : void 0;
27
+ const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : void 0;
28
+ const space = spaceId ? client.spaces.get(spaceId) : void 0;
29
+ const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
30
+ return [
31
+ {
32
+ id: Devtools.id,
33
+ data: null,
34
+ type: DEVTOOLS_TYPE,
35
+ properties: {
36
+ label: [
37
+ "devtools label",
38
+ {
39
+ ns: meta.id
40
+ }
41
+ ],
42
+ icon: "ph--hammer--regular",
43
+ disposition: "pin-end",
44
+ position: "fallback"
45
+ },
46
+ nodes: [
47
+ ...space && node.type === `${spaceMeta.id}.settings` ? [
48
+ {
49
+ id: "debug",
50
+ type: `${meta.id}.space`,
51
+ data: {
52
+ space,
53
+ type: `${meta.id}.space`
54
+ },
55
+ properties: {
56
+ label: [
57
+ "debug label",
58
+ {
59
+ ns: meta.id
60
+ }
61
+ ],
62
+ icon: "ph--bug--regular"
63
+ }
64
+ }
65
+ ] : [],
66
+ {
67
+ id: "app-graph",
68
+ type: `${meta.id}.app-graph`,
69
+ data: {
70
+ graph: graph?.graph,
71
+ root: space ? space.id : Node.RootId
72
+ },
73
+ properties: {
74
+ label: [
75
+ "debug app graph label",
76
+ {
77
+ ns: meta.id
78
+ }
79
+ ],
80
+ icon: "ph--graph--regular"
81
+ }
82
+ },
83
+ {
84
+ id: Devtools.Client.id,
85
+ data: null,
86
+ type: DEVTOOLS_TYPE,
87
+ properties: {
88
+ label: [
89
+ "client label",
90
+ {
91
+ ns: meta.id
92
+ }
93
+ ],
94
+ icon: "ph--users--regular"
95
+ },
96
+ nodes: [
97
+ {
98
+ id: Devtools.Client.Config,
99
+ data: Devtools.Client.Config,
100
+ type: DEVTOOLS_TYPE,
101
+ properties: {
102
+ label: [
103
+ "config label",
104
+ {
105
+ ns: meta.id
106
+ }
107
+ ],
108
+ icon: "ph--gear--regular"
109
+ }
110
+ },
111
+ {
112
+ id: Devtools.Client.Storage,
113
+ data: Devtools.Client.Storage,
114
+ type: DEVTOOLS_TYPE,
115
+ properties: {
116
+ label: [
117
+ "storage label",
118
+ {
119
+ ns: meta.id
120
+ }
121
+ ],
122
+ icon: "ph--hard-drives--regular"
123
+ }
124
+ },
125
+ {
126
+ id: Devtools.Client.Logs,
127
+ data: Devtools.Client.Logs,
128
+ type: DEVTOOLS_TYPE,
129
+ properties: {
130
+ label: [
131
+ "logs label",
132
+ {
133
+ ns: meta.id
134
+ }
135
+ ],
136
+ icon: "ph--file-text--regular"
137
+ }
138
+ },
139
+ {
140
+ id: Devtools.Client.Diagnostics,
141
+ data: Devtools.Client.Diagnostics,
142
+ type: DEVTOOLS_TYPE,
143
+ properties: {
144
+ label: [
145
+ "diagnostics label",
146
+ {
147
+ ns: meta.id
148
+ }
149
+ ],
150
+ icon: "ph--chart-line--regular"
151
+ }
152
+ },
153
+ {
154
+ id: Devtools.Client.Tracing,
155
+ data: Devtools.Client.Tracing,
156
+ type: DEVTOOLS_TYPE,
157
+ properties: {
158
+ label: [
159
+ "tracing label",
160
+ {
161
+ ns: meta.id
162
+ }
163
+ ],
164
+ icon: "ph--fire--regular"
165
+ }
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ id: Devtools.Halo.id,
171
+ data: null,
172
+ type: DEVTOOLS_TYPE,
173
+ properties: {
174
+ label: [
175
+ "halo label",
176
+ {
177
+ ns: meta.id
178
+ }
179
+ ],
180
+ icon: "ph--identification-badge--regular"
181
+ },
182
+ nodes: [
183
+ {
184
+ id: Devtools.Halo.Identity,
185
+ data: Devtools.Halo.Identity,
186
+ type: DEVTOOLS_TYPE,
187
+ properties: {
188
+ label: [
189
+ "identity label",
190
+ {
191
+ ns: meta.id
192
+ }
193
+ ],
194
+ icon: "ph--identification-badge--regular"
195
+ }
196
+ },
197
+ {
198
+ id: Devtools.Halo.Devices,
199
+ data: Devtools.Halo.Devices,
200
+ type: DEVTOOLS_TYPE,
201
+ properties: {
202
+ label: [
203
+ "devices label",
204
+ {
205
+ ns: meta.id
206
+ }
207
+ ],
208
+ icon: "ph--devices--regular"
209
+ }
210
+ },
211
+ {
212
+ id: Devtools.Halo.Keyring,
213
+ data: Devtools.Halo.Keyring,
214
+ type: DEVTOOLS_TYPE,
215
+ properties: {
216
+ label: [
217
+ "keyring label",
218
+ {
219
+ ns: meta.id
220
+ }
221
+ ],
222
+ icon: "ph--key--regular"
223
+ }
224
+ },
225
+ {
226
+ id: Devtools.Halo.Credentials,
227
+ data: Devtools.Halo.Credentials,
228
+ type: DEVTOOLS_TYPE,
229
+ properties: {
230
+ label: [
231
+ "credentials label",
232
+ {
233
+ ns: meta.id
234
+ }
235
+ ],
236
+ icon: "ph--credit-card--regular"
237
+ }
238
+ }
239
+ ]
240
+ },
241
+ {
242
+ id: Devtools.Echo.id,
243
+ data: null,
244
+ type: DEVTOOLS_TYPE,
245
+ properties: {
246
+ label: [
247
+ "echo label",
248
+ {
249
+ ns: meta.id
250
+ }
251
+ ],
252
+ icon: "ph--database--regular"
253
+ },
254
+ nodes: [
255
+ {
256
+ id: Devtools.Echo.Spaces,
257
+ data: Devtools.Echo.Spaces,
258
+ type: DEVTOOLS_TYPE,
259
+ properties: {
260
+ label: [
261
+ "spaces label",
262
+ {
263
+ ns: meta.id
264
+ }
265
+ ],
266
+ icon: "ph--graph--regular"
267
+ }
268
+ },
269
+ {
270
+ id: Devtools.Echo.Space,
271
+ data: Devtools.Echo.Space,
272
+ type: DEVTOOLS_TYPE,
273
+ properties: {
274
+ label: [
275
+ "space label",
276
+ {
277
+ ns: meta.id
278
+ }
279
+ ],
280
+ icon: "ph--planet--regular"
281
+ }
282
+ },
283
+ {
284
+ id: Devtools.Echo.Feeds,
285
+ data: Devtools.Echo.Feeds,
286
+ type: DEVTOOLS_TYPE,
287
+ properties: {
288
+ label: [
289
+ "feeds label",
290
+ {
291
+ ns: meta.id
292
+ }
293
+ ],
294
+ icon: "ph--list-bullets--regular"
295
+ }
296
+ },
297
+ {
298
+ id: Devtools.Echo.Objects,
299
+ data: Devtools.Echo.Objects,
300
+ type: DEVTOOLS_TYPE,
301
+ properties: {
302
+ label: [
303
+ "objects label",
304
+ {
305
+ ns: meta.id
306
+ }
307
+ ],
308
+ icon: "ph--cube--regular"
309
+ }
310
+ },
311
+ {
312
+ id: Devtools.Echo.Schema,
313
+ data: Devtools.Echo.Schema,
314
+ type: DEVTOOLS_TYPE,
315
+ properties: {
316
+ label: [
317
+ "schema label",
318
+ {
319
+ ns: meta.id
320
+ }
321
+ ],
322
+ icon: "ph--database--regular"
323
+ }
324
+ },
325
+ {
326
+ id: Devtools.Echo.Automerge,
327
+ data: Devtools.Echo.Automerge,
328
+ type: DEVTOOLS_TYPE,
329
+ properties: {
330
+ label: [
331
+ "automerge label",
332
+ {
333
+ ns: meta.id
334
+ }
335
+ ],
336
+ icon: "ph--gear-six--regular"
337
+ }
338
+ },
339
+ {
340
+ id: Devtools.Echo.Queues,
341
+ data: Devtools.Echo.Queues,
342
+ type: DEVTOOLS_TYPE,
343
+ properties: {
344
+ label: [
345
+ "queues label",
346
+ {
347
+ ns: meta.id
348
+ }
349
+ ],
350
+ icon: "ph--queue--regular"
351
+ }
352
+ },
353
+ {
354
+ id: Devtools.Echo.Members,
355
+ data: Devtools.Echo.Members,
356
+ type: DEVTOOLS_TYPE,
357
+ properties: {
358
+ label: [
359
+ "members label",
360
+ {
361
+ ns: meta.id
362
+ }
363
+ ],
364
+ icon: "ph--users--regular"
365
+ }
366
+ },
367
+ {
368
+ id: Devtools.Echo.Metadata,
369
+ data: Devtools.Echo.Metadata,
370
+ type: DEVTOOLS_TYPE,
371
+ properties: {
372
+ label: [
373
+ "metadata label",
374
+ {
375
+ ns: meta.id
376
+ }
377
+ ],
378
+ icon: "ph--hard-drive--regular"
379
+ }
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ id: Devtools.Mesh.id,
385
+ data: null,
386
+ type: DEVTOOLS_TYPE,
387
+ properties: {
388
+ label: [
389
+ "mesh label",
390
+ {
391
+ ns: meta.id
392
+ }
393
+ ],
394
+ icon: "ph--graph--regular"
395
+ },
396
+ nodes: [
397
+ {
398
+ id: Devtools.Mesh.Signal,
399
+ data: Devtools.Mesh.Signal,
400
+ type: DEVTOOLS_TYPE,
401
+ properties: {
402
+ label: [
403
+ "signal label",
404
+ {
405
+ ns: meta.id
406
+ }
407
+ ],
408
+ icon: "ph--wifi-high--regular"
409
+ }
410
+ },
411
+ {
412
+ id: Devtools.Mesh.Swarm,
413
+ data: Devtools.Mesh.Swarm,
414
+ type: DEVTOOLS_TYPE,
415
+ properties: {
416
+ label: [
417
+ "swarm label",
418
+ {
419
+ ns: meta.id
420
+ }
421
+ ],
422
+ icon: "ph--users-three--regular"
423
+ }
424
+ },
425
+ {
426
+ id: Devtools.Mesh.Network,
427
+ data: Devtools.Mesh.Network,
428
+ type: DEVTOOLS_TYPE,
429
+ properties: {
430
+ label: [
431
+ "network label",
432
+ {
433
+ ns: meta.id
434
+ }
435
+ ],
436
+ icon: "ph--polygon--regular"
437
+ }
438
+ }
439
+ ]
440
+ },
441
+ {
442
+ id: Devtools.Edge.id,
443
+ data: null,
444
+ type: DEVTOOLS_TYPE,
445
+ properties: {
446
+ label: [
447
+ "edge label",
448
+ {
449
+ ns: meta.id
450
+ }
451
+ ],
452
+ icon: "ph--cloud--regular"
453
+ },
454
+ nodes: [
455
+ {
456
+ id: Devtools.Edge.Dashboard,
457
+ data: Devtools.Edge.Dashboard,
458
+ type: DEVTOOLS_TYPE,
459
+ properties: {
460
+ label: [
461
+ "dashboard label",
462
+ {
463
+ ns: meta.id
464
+ }
465
+ ],
466
+ icon: "ph--computer-tower--regular"
467
+ }
468
+ },
469
+ {
470
+ id: Devtools.Edge.Workflows,
471
+ data: Devtools.Edge.Workflows,
472
+ type: DEVTOOLS_TYPE,
473
+ properties: {
474
+ label: [
475
+ "workflows label",
476
+ {
477
+ ns: meta.id
478
+ }
479
+ ],
480
+ icon: "ph--function--regular"
481
+ }
482
+ },
483
+ {
484
+ id: Devtools.Edge.Traces,
485
+ data: Devtools.Edge.Traces,
486
+ type: DEVTOOLS_TYPE,
487
+ properties: {
488
+ label: [
489
+ "traces label",
490
+ {
491
+ ns: meta.id
492
+ }
493
+ ],
494
+ icon: "ph--line-segments--regular"
495
+ }
496
+ },
497
+ {
498
+ id: Devtools.Edge.Testing,
499
+ data: Devtools.Edge.Testing,
500
+ type: DEVTOOLS_TYPE,
501
+ properties: {
502
+ label: [
503
+ "testing label",
504
+ {
505
+ ns: meta.id
506
+ }
507
+ ],
508
+ icon: "ph--flask--regular"
509
+ }
510
+ }
511
+ ]
512
+ }
513
+ ]
514
+ }
515
+ ];
516
+ })
517
+ }),
518
+ // Debug object companion.
519
+ GraphBuilder.createExtension({
520
+ id: `${meta.id}.debug-object`,
521
+ match: NodeMatcher.whenEchoObject,
522
+ connector: () => Effect.succeed([
523
+ {
524
+ id: "debug",
525
+ type: PLANK_COMPANION_TYPE,
526
+ data: "debug",
527
+ properties: {
528
+ label: [
529
+ "debug label",
530
+ {
531
+ ns: meta.id
532
+ }
533
+ ],
534
+ icon: "ph--bug--regular",
535
+ disposition: "hidden",
536
+ position: "fallback"
537
+ }
538
+ }
539
+ ])
540
+ }),
541
+ // Devtools deck companion.
542
+ GraphBuilder.createExtension({
543
+ id: `${meta.id}.devtools-overview`,
544
+ match: NodeMatcher.whenRoot,
545
+ connector: () => Effect.succeed([
546
+ {
547
+ id: "devtools",
548
+ type: DECK_COMPANION_TYPE,
549
+ data: "devtools",
550
+ properties: {
551
+ label: [
552
+ "devtools overview label",
553
+ {
554
+ ns: meta.id
555
+ }
556
+ ],
557
+ icon: "ph--equalizer--regular",
558
+ disposition: "hidden",
559
+ position: "fallback"
560
+ }
561
+ }
562
+ ])
563
+ }),
564
+ // Object explorer.
565
+ GraphBuilder.createExtension({
566
+ id: `${meta.id}.space-objects`,
567
+ match: NodeMatcher.whenRoot,
568
+ connector: () => Effect.succeed([
569
+ {
570
+ id: "space-objects",
571
+ type: DECK_COMPANION_TYPE,
572
+ data: "space-objects",
573
+ properties: {
574
+ label: [
575
+ "space objects label",
576
+ {
577
+ ns: meta.id
578
+ }
579
+ ],
580
+ icon: "ph--cube--regular",
581
+ disposition: "hidden",
582
+ position: "fallback"
583
+ }
584
+ }
585
+ ])
586
+ })
587
+ ]);
588
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
589
+ }));
590
+ export {
591
+ app_graph_builder_default as default
592
+ };
593
+ //# sourceMappingURL=app-graph-builder-FU4BCDDC.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities, getSpaceIdFromPath } from '@dxos/app-toolkit';\nimport { Obj } from '@dxos/echo';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';\nimport { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';\nimport { 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 Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* Effect.all([\n // Devtools node.\n GraphBuilder.createExtension({\n id: `${meta.id}.devtools`,\n match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`)),\n connector: (node, get) =>\n Effect.gen(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];\n const layout = layoutAtom ? get(layoutAtom) : undefined;\n const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : undefined;\n const space = spaceId ? client.spaces.get(spaceId) : undefined;\n const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));\n\n return [\n {\n id: Devtools.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',\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',\n type: `${meta.id}.app-graph`,\n data: { graph: graph?.graph, root: space ? space.id : Node.RootId },\n properties: {\n label: ['debug app graph label', { ns: meta.id }],\n icon: 'ph--graph--regular',\n },\n },\n {\n id: Devtools.Client.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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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,\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 {\n id: Devtools.Edge.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,\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,\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,\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,\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 }),\n\n // Debug object companion.\n GraphBuilder.createExtension({\n id: `${meta.id}.debug-object`,\n match: NodeMatcher.whenEchoObject,\n connector: () =>\n Effect.succeed([\n {\n id: 'debug',\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 }),\n\n // Devtools deck companion.\n GraphBuilder.createExtension({\n id: `${meta.id}.devtools-overview`,\n match: NodeMatcher.whenRoot,\n connector: () =>\n Effect.succeed([\n {\n id: 'devtools',\n type: DECK_COMPANION_TYPE,\n data: 'devtools' as const,\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 }),\n\n // Object explorer.\n GraphBuilder.createExtension({\n id: `${meta.id}.space-objects`,\n match: NodeMatcher.whenRoot,\n connector: () =>\n Effect.succeed([\n {\n id: 'space-objects',\n type: DECK_COMPANION_TYPE,\n data: 'space-objects' as const,\n properties: {\n label: ['space objects label', { ns: meta.id }],\n icon: 'ph--cube--regular',\n disposition: 'hidden',\n position: 'fallback',\n },\n },\n ]),\n }),\n ]);\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
5
+ "mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiBC,0BAA0B;AAEpD,SAASC,0BAA0B;AACnC,SAASC,qBAAqBC,4BAA4B;AAC1D,SAASC,cAAcC,MAAMC,mBAAmB;AAChD,SAASC,QAAQC,iBAAiB;AAKlC,IAAMC,gBAAgB,GAAGC,KAAKC,EAAE;AAEhC,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,a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GAAGD,KAAKC,EAAE;MACdQ,OAAOC,YAAYE;MACnBG,WAAW,MACF+D,eAAQ;QACb;UACE7E,IAAI;UACJoC,MAAM2C;UACN5C,MAAM;UACNE,YAAY;YACVC,OAAO;cAAC;cAA2B;gBAAEC,IAAIxC,KAAKC;cAAG;;YACjDwC,MAAM;YACNC,aAAa;YACbC,UAAU;UACZ;QACF;OACD;IACL,CAAA;;IAGApC,aAAaC,gBAAgB;MAC3BP,IAAI,GAAGD,KAAKC,EAAE;MACdQ,OAAOC,YAAYE;MACnBG,WAAW,MACF+D,eAAQ;QACb;UACE7E,IAAI;UACJoC,MAAM2C;UACN5C,MAAM;UACNE,YAAY;YACVC,OAAO;cAAC;cAAuB;gBAAEC,IAAIxC,KAAKC;cAAG;;YAC7CwC,MAAM;YACNC,aAAa;YACbC,UAAU;UACZ;QACF;OACD;IACL,CAAA;GACD;AAED,SAAOzC,WAAW+E,YAAYzD,gBAAgB0D,iBAAiB7E,UAAAA;AACjE,CAAA,CAAA;",
6
+ "names": ["Effect", "Capability", "AppCapabilities", "getSpaceIdFromPath", "ClientCapabilities", "DECK_COMPANION_TYPE", "PLANK_COMPANION_TYPE", "GraphBuilder", "Node", "NodeMatcher", "meta", "spaceMeta", "DEVTOOLS_TYPE", "meta", "id", "Capability", "makeModule", "fnUntraced", "extensions", "all", "GraphBuilder", "createExtension", "match", "NodeMatcher", "whenAny", "whenRoot", "whenNodeType", "spaceMeta", "connector", "node", "get", "gen", "client", "ClientCapabilities", "Client", "layoutAtom", "atom", "AppCapabilities", "Layout", "layout", "undefined", "spaceId", "workspace", "getSpaceIdFromPath", "space", "spaces", "graph", "AppGraph", "Devtools", "data", "type", "properties", "label", "ns", "icon", "disposition", "position", "nodes", "root", "Node", "RootId", "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", "whenEchoObject", "succeed", "PLANK_COMPANION_TYPE", "DECK_COMPANION_TYPE", "contributes", "AppGraphBuilder"]
7
+ }
@@ -1,6 +1,11 @@
1
+ import {
2
+ meta
3
+ } from "./chunk-ZOM2FBHQ.mjs";
4
+
1
5
  // src/types.ts
2
- import { Schema } from "effect";
6
+ import * as Schema from "effect/Schema";
3
7
  import { createContext } from "react";
8
+ import { Capability } from "@dxos/app-framework";
4
9
  var DebugContext = createContext({
5
10
  running: false,
6
11
  start: () => {
@@ -11,8 +16,11 @@ var DebugContext = createContext({
11
16
  var DebugSettingsSchema = Schema.mutable(Schema.Struct({
12
17
  wireframe: Schema.optional(Schema.Boolean)
13
18
  }));
19
+ (function(DebugCapabilities2) {
20
+ DebugCapabilities2.Settings = Capability.make(`${meta.id}.capability.settings`);
21
+ })(DebugCapabilities || (DebugCapabilities = {}));
14
22
  (function(Devtools2) {
15
- Devtools2.id = "dxos.org.plugin.debug.devtools";
23
+ Devtools2.id = `${meta.id}.devtools`;
16
24
  (function(Client) {
17
25
  Client.id = `${Devtools2.id}.client`;
18
26
  Client.Config = `${Devtools2.Client.id}.config`;
@@ -59,10 +67,12 @@ var DebugSettingsSchema = Schema.mutable(Schema.Struct({
59
67
  Edge.Testing = `${Devtools2.Edge.id}.testing`;
60
68
  })(Devtools2.Edge || (Devtools2.Edge = {}));
61
69
  })(Devtools || (Devtools = {}));
70
+ var DebugCapabilities;
62
71
  var Devtools;
63
72
 
64
73
  export {
65
74
  DebugSettingsSchema,
75
+ DebugCapabilities,
66
76
  Devtools
67
77
  };
68
- //# sourceMappingURL=chunk-AJA6RYN3.mjs.map
78
+ //# sourceMappingURL=chunk-Q37TZWW5.mjs.map