@dxos/plugin-debug 0.8.4-main.937b3ca → 0.8.4-main.abd8ff62ef

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 (180) hide show
  1. package/dist/lib/browser/index.mjs +19 -118
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/translations.mjs +81 -0
  5. package/dist/lib/browser/translations.mjs.map +7 -0
  6. package/dist/types/src/DebugPlugin.d.ts +3 -1
  7. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  8. package/dist/types/src/DebugPlugin.node.d.ts +5 -0
  9. package/dist/types/src/DebugPlugin.node.d.ts.map +1 -0
  10. package/dist/types/src/DebugPlugin.test.d.ts +2 -0
  11. package/dist/types/src/DebugPlugin.test.d.ts.map +1 -0
  12. package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
  13. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  14. package/dist/types/src/capabilities/index.d.ts +11 -4
  15. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  16. package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +1 -1
  17. package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
  18. package/dist/types/src/capabilities/react-surface.d.ts +9 -0
  19. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  20. package/dist/types/src/capabilities/settings.d.ts +7 -0
  21. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  22. package/dist/types/src/components/DebugSettings/DebugSettings.d.ts +11 -0
  23. package/dist/types/src/components/DebugSettings/DebugSettings.d.ts.map +1 -0
  24. package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts +97 -0
  25. package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts.map +1 -0
  26. package/dist/types/src/components/DebugSettings/index.d.ts +2 -0
  27. package/dist/types/src/components/DebugSettings/index.d.ts.map +1 -0
  28. package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -0
  29. package/dist/types/src/components/SchemaTable/index.d.ts +2 -0
  30. package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -0
  31. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +2 -2
  32. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  33. package/dist/types/src/components/SpaceGenerator/draw-util.d.ts.map +1 -1
  34. package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
  35. package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
  36. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  37. package/dist/types/src/components/index.d.ts +4 -10
  38. package/dist/types/src/components/index.d.ts.map +1 -1
  39. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +8 -0
  40. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
  41. package/dist/types/src/containers/DebugGraph/index.d.ts +2 -0
  42. package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
  43. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +6 -0
  44. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
  45. package/dist/types/src/containers/DebugObjectPanel/index.d.ts +2 -0
  46. package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
  47. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +5 -0
  48. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
  49. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +2 -0
  50. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -0
  51. package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -0
  52. package/dist/types/src/containers/DebugStatus/index.d.ts +2 -0
  53. package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -0
  54. package/dist/types/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.d.ts +0 -1
  55. package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
  56. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +2 -0
  57. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
  58. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts +11 -0
  59. package/dist/types/src/{components → containers}/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
  60. package/dist/types/src/containers/SpaceGenerator/index.d.ts +2 -0
  61. package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -0
  62. package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -0
  63. package/dist/types/src/containers/Wireframe/index.d.ts +2 -0
  64. package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
  65. package/dist/types/src/containers/index.d.ts +9 -0
  66. package/dist/types/src/containers/index.d.ts.map +1 -0
  67. package/dist/types/src/index.d.ts +3 -1
  68. package/dist/types/src/index.d.ts.map +1 -1
  69. package/dist/types/src/translations.d.ts +78 -59
  70. package/dist/types/src/translations.d.ts.map +1 -1
  71. package/dist/types/src/types/Settings.d.ts +8 -0
  72. package/dist/types/src/types/Settings.d.ts.map +1 -0
  73. package/dist/types/src/types/index.d.ts +69 -0
  74. package/dist/types/src/types/index.d.ts.map +1 -0
  75. package/dist/types/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +89 -70
  77. package/src/DebugPlugin.node.ts +18 -0
  78. package/src/DebugPlugin.test.ts +29 -0
  79. package/src/DebugPlugin.tsx +20 -11
  80. package/src/capabilities/app-graph-builder.ts +405 -0
  81. package/src/capabilities/index.ts +6 -4
  82. package/src/capabilities/react-context.tsx +25 -0
  83. package/src/capabilities/react-surface.tsx +439 -0
  84. package/src/capabilities/{settings/settings.ts → settings.ts} +7 -6
  85. package/src/components/DebugSettings/DebugSettings.stories.tsx +36 -0
  86. package/src/components/DebugSettings/DebugSettings.tsx +262 -0
  87. package/src/components/DebugSettings/index.ts +5 -0
  88. package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +2 -2
  89. package/src/components/SchemaTable/index.ts +5 -0
  90. package/src/components/SpaceGenerator/ObjectGenerator.tsx +14 -15
  91. package/src/components/SpaceGenerator/draw-util.ts +8 -8
  92. package/src/components/SpaceGenerator/index.ts +2 -3
  93. package/src/components/SpaceGenerator/presets.ts +55 -73
  94. package/src/components/index.ts +4 -11
  95. package/src/{components → containers/DebugGraph}/DebugGraph.tsx +3 -4
  96. package/src/containers/DebugGraph/index.ts +5 -0
  97. package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +76 -0
  98. package/src/containers/DebugObjectPanel/index.ts +5 -0
  99. package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +47 -0
  100. package/src/containers/DebugSpaceObjectsPanel/index.ts +5 -0
  101. package/src/{components → containers/DebugStatus}/DebugStatus.tsx +41 -19
  102. package/src/containers/DebugStatus/index.ts +5 -0
  103. package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +25 -0
  104. package/src/containers/DevtoolsOverviewContainer/index.ts +5 -0
  105. package/src/containers/SpaceGenerator/SpaceGenerator.tsx +126 -0
  106. package/src/containers/SpaceGenerator/index.ts +5 -0
  107. package/src/{components → containers/Wireframe}/Wireframe.tsx +3 -7
  108. package/src/containers/Wireframe/index.ts +5 -0
  109. package/src/containers/index.ts +13 -0
  110. package/src/index.ts +7 -1
  111. package/src/meta.ts +1 -1
  112. package/src/translations.ts +75 -58
  113. package/src/types/Settings.ts +16 -0
  114. package/src/{types.ts → types/index.ts} +15 -14
  115. package/dist/lib/browser/DebugGraph-6VMEOKEV.mjs +0 -15
  116. package/dist/lib/browser/DebugGraph-6VMEOKEV.mjs.map +0 -7
  117. package/dist/lib/browser/DevtoolsOverviewContainer-77PKFLYV.mjs +0 -19
  118. package/dist/lib/browser/DevtoolsOverviewContainer-77PKFLYV.mjs.map +0 -7
  119. package/dist/lib/browser/SpaceGenerator-ZHVZWGM7.mjs +0 -1150
  120. package/dist/lib/browser/SpaceGenerator-ZHVZWGM7.mjs.map +0 -7
  121. package/dist/lib/browser/app-graph-builder-FBDRMMYF.mjs +0 -597
  122. package/dist/lib/browser/app-graph-builder-FBDRMMYF.mjs.map +0 -7
  123. package/dist/lib/browser/chunk-4UFQXPP7.mjs +0 -78
  124. package/dist/lib/browser/chunk-4UFQXPP7.mjs.map +0 -7
  125. package/dist/lib/browser/chunk-A5H5GRV6.mjs +0 -20
  126. package/dist/lib/browser/chunk-A5H5GRV6.mjs.map +0 -7
  127. package/dist/lib/browser/react-context-FSWBT3MH.mjs +0 -17
  128. package/dist/lib/browser/react-context-FSWBT3MH.mjs.map +0 -7
  129. package/dist/lib/browser/react-surface-W62RJ32U.mjs +0 -757
  130. package/dist/lib/browser/react-surface-W62RJ32U.mjs.map +0 -7
  131. package/dist/lib/browser/settings-KA4GN73K.mjs +0 -31
  132. package/dist/lib/browser/settings-KA4GN73K.mjs.map +0 -7
  133. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
  134. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  135. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  136. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  137. package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
  138. package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
  139. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
  140. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  141. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  142. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
  143. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  144. package/dist/types/src/capabilities/settings/index.d.ts +0 -3
  145. package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
  146. package/dist/types/src/capabilities/settings/settings.d.ts +0 -5
  147. package/dist/types/src/capabilities/settings/settings.d.ts.map +0 -1
  148. package/dist/types/src/components/Container.d.ts +0 -5
  149. package/dist/types/src/components/Container.d.ts.map +0 -1
  150. package/dist/types/src/components/DebugGraph.d.ts +0 -9
  151. package/dist/types/src/components/DebugGraph.d.ts.map +0 -1
  152. package/dist/types/src/components/DebugObjectPanel.d.ts +0 -7
  153. package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
  154. package/dist/types/src/components/DebugSettings.d.ts +0 -8
  155. package/dist/types/src/components/DebugSettings.d.ts.map +0 -1
  156. package/dist/types/src/components/DebugStatus.d.ts.map +0 -1
  157. package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
  158. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +0 -1
  159. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts +0 -9
  160. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -15
  161. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +0 -1
  162. package/dist/types/src/components/Wireframe.d.ts.map +0 -1
  163. package/dist/types/src/types.d.ts +0 -68
  164. package/dist/types/src/types.d.ts.map +0 -1
  165. package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -419
  166. package/src/capabilities/app-graph-builder/index.ts +0 -7
  167. package/src/capabilities/react-context/index.ts +0 -7
  168. package/src/capabilities/react-context/react-context.tsx +0 -20
  169. package/src/capabilities/react-surface/index.ts +0 -7
  170. package/src/capabilities/react-surface/react-surface.tsx +0 -409
  171. package/src/capabilities/settings/index.ts +0 -7
  172. package/src/components/Container.tsx +0 -15
  173. package/src/components/DebugObjectPanel.tsx +0 -33
  174. package/src/components/DebugSettings.tsx +0 -185
  175. package/src/components/DevtoolsOverviewContainer.tsx +0 -20
  176. package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -54
  177. package/src/components/SpaceGenerator/SpaceGenerator.tsx +0 -127
  178. /package/dist/types/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.d.ts +0 -0
  179. /package/dist/types/src/{components → containers/DebugStatus}/DebugStatus.d.ts +0 -0
  180. /package/dist/types/src/{components → containers/Wireframe}/Wireframe.d.ts +0 -0
@@ -1,419 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import * as Effect from 'effect/Effect';
6
-
7
- import { Capability, Common } from '@dxos/app-framework';
8
- import { ClientCapabilities } from '@dxos/plugin-client';
9
- import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
10
- import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
11
- import { meta as spaceMeta } from '@dxos/plugin-space';
12
- import { parseId } from '@dxos/react-client/echo';
13
-
14
- import { meta } from '../../meta';
15
- import { Devtools } from '../../types';
16
-
17
- const DEVTOOLS_TYPE = `${meta.id}/devtools`;
18
-
19
- export default Capability.makeModule(
20
- Effect.fnUntraced(function* () {
21
- const extensions = yield* Effect.all([
22
- // Devtools node.
23
- GraphBuilder.createExtension({
24
- id: `${meta.id}/devtools`,
25
- match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}/settings`)),
26
- connector: (node, get) =>
27
- Effect.gen(function* () {
28
- const client = yield* Capability.get(ClientCapabilities.Client);
29
- const layoutAtom = get(yield* Capability.atom(Common.Capability.Layout))[0];
30
- const layout = layoutAtom ? get(layoutAtom) : undefined;
31
- const { spaceId } = parseId(layout?.workspace);
32
- const space = spaceId ? client.spaces.get(spaceId) : undefined;
33
- const [graph] = get(yield* Capability.atom(Common.Capability.AppGraph));
34
-
35
- return [
36
- {
37
- id: `${Devtools.id}-${node.id}`,
38
- data: null,
39
- type: DEVTOOLS_TYPE,
40
- properties: {
41
- label: ['devtools label', { ns: meta.id }],
42
- icon: 'ph--hammer--regular',
43
- disposition: 'pin-end',
44
- position: 'fallback',
45
- },
46
- nodes: [
47
- ...(space && node.type === `${spaceMeta.id}/settings`
48
- ? [
49
- {
50
- id: `debug-${node.id}`,
51
- type: `${meta.id}/space`,
52
- data: { space, type: `${meta.id}/space` },
53
- properties: {
54
- label: ['debug label', { ns: meta.id }],
55
- icon: 'ph--bug--regular',
56
- },
57
- },
58
- ]
59
- : []),
60
- {
61
- id: `app-graph-${node.id}`,
62
- type: `${meta.id}/app-graph`,
63
- data: { graph: graph?.graph, root: space ? space.id : Node.RootId },
64
- properties: {
65
- label: ['debug app graph label', { ns: meta.id }],
66
- icon: 'ph--graph--regular',
67
- },
68
- },
69
- {
70
- id: `${Devtools.Client.id}-${node.id}`,
71
- data: null,
72
- type: DEVTOOLS_TYPE,
73
- properties: {
74
- label: ['client label', { ns: meta.id }],
75
- icon: 'ph--users--regular',
76
- },
77
- nodes: [
78
- {
79
- id: `${Devtools.Client.Config}-${node.id}`,
80
- data: Devtools.Client.Config,
81
- type: DEVTOOLS_TYPE,
82
- properties: {
83
- label: ['config label', { ns: meta.id }],
84
- icon: 'ph--gear--regular',
85
- },
86
- },
87
- {
88
- id: `${Devtools.Client.Storage}-${node.id}`,
89
- data: Devtools.Client.Storage,
90
- type: DEVTOOLS_TYPE,
91
- properties: {
92
- label: ['storage label', { ns: meta.id }],
93
- icon: 'ph--hard-drives--regular',
94
- },
95
- },
96
- {
97
- id: `${Devtools.Client.Logs}-${node.id}`,
98
- data: Devtools.Client.Logs,
99
- type: DEVTOOLS_TYPE,
100
- properties: {
101
- label: ['logs label', { ns: meta.id }],
102
- icon: 'ph--file-text--regular',
103
- },
104
- },
105
- {
106
- id: `${Devtools.Client.Diagnostics}-${node.id}`,
107
- data: Devtools.Client.Diagnostics,
108
- type: DEVTOOLS_TYPE,
109
- properties: {
110
- label: ['diagnostics label', { ns: meta.id }],
111
- icon: 'ph--chart-line--regular',
112
- },
113
- },
114
- {
115
- id: `${Devtools.Client.Tracing}-${node.id}`,
116
- data: Devtools.Client.Tracing,
117
- type: DEVTOOLS_TYPE,
118
- properties: {
119
- label: ['tracing label', { ns: meta.id }],
120
- icon: 'ph--fire--regular',
121
- },
122
- },
123
- ],
124
- },
125
- {
126
- id: `${Devtools.Halo.id}-${node.id}`,
127
- data: null,
128
- type: DEVTOOLS_TYPE,
129
- properties: {
130
- label: ['halo label', { ns: meta.id }],
131
- icon: 'ph--identification-badge--regular',
132
- },
133
- nodes: [
134
- {
135
- id: `${Devtools.Halo.Identity}-${node.id}`,
136
- data: Devtools.Halo.Identity,
137
- type: DEVTOOLS_TYPE,
138
- properties: {
139
- label: ['identity label', { ns: meta.id }],
140
- icon: 'ph--identification-badge--regular',
141
- },
142
- },
143
- {
144
- id: `${Devtools.Halo.Devices}-${node.id}`,
145
- data: Devtools.Halo.Devices,
146
- type: DEVTOOLS_TYPE,
147
- properties: {
148
- label: ['devices label', { ns: meta.id }],
149
- icon: 'ph--devices--regular',
150
- },
151
- },
152
- {
153
- id: `${Devtools.Halo.Keyring}-${node.id}`,
154
- data: Devtools.Halo.Keyring,
155
- type: DEVTOOLS_TYPE,
156
- properties: {
157
- label: ['keyring label', { ns: meta.id }],
158
- icon: 'ph--key--regular',
159
- },
160
- },
161
- {
162
- id: `${Devtools.Halo.Credentials}-${node.id}`,
163
- data: Devtools.Halo.Credentials,
164
- type: DEVTOOLS_TYPE,
165
- properties: {
166
- label: ['credentials label', { ns: meta.id }],
167
- icon: 'ph--credit-card--regular',
168
- },
169
- },
170
- ],
171
- },
172
- {
173
- id: `${Devtools.Echo.id}-${node.id}`,
174
- data: null,
175
- type: DEVTOOLS_TYPE,
176
- properties: {
177
- label: ['echo label', { ns: meta.id }],
178
- icon: 'ph--database--regular',
179
- },
180
- nodes: [
181
- {
182
- id: `${Devtools.Echo.Spaces}-${node.id}`,
183
- data: Devtools.Echo.Spaces,
184
- type: DEVTOOLS_TYPE,
185
- properties: {
186
- label: ['spaces label', { ns: meta.id }],
187
- icon: 'ph--graph--regular',
188
- },
189
- },
190
- {
191
- id: `${Devtools.Echo.Space}-${node.id}`,
192
- data: Devtools.Echo.Space,
193
- type: DEVTOOLS_TYPE,
194
- properties: {
195
- label: ['space label', { ns: meta.id }],
196
- icon: 'ph--planet--regular',
197
- },
198
- },
199
- {
200
- id: `${Devtools.Echo.Feeds}-${node.id}`,
201
- data: Devtools.Echo.Feeds,
202
- type: DEVTOOLS_TYPE,
203
- properties: {
204
- label: ['feeds label', { ns: meta.id }],
205
- icon: 'ph--list-bullets--regular',
206
- },
207
- },
208
- {
209
- id: `${Devtools.Echo.Objects}-${node.id}`,
210
- data: Devtools.Echo.Objects,
211
- type: DEVTOOLS_TYPE,
212
- properties: {
213
- label: ['objects label', { ns: meta.id }],
214
- icon: 'ph--cube--regular',
215
- },
216
- },
217
- {
218
- id: `${Devtools.Echo.Schema}-${node.id}`,
219
- data: Devtools.Echo.Schema,
220
- type: DEVTOOLS_TYPE,
221
- properties: {
222
- label: ['schema label', { ns: meta.id }],
223
- icon: 'ph--database--regular',
224
- },
225
- },
226
- {
227
- id: `${Devtools.Echo.Automerge}-${node.id}`,
228
- data: Devtools.Echo.Automerge,
229
- type: DEVTOOLS_TYPE,
230
- properties: {
231
- label: ['automerge label', { ns: meta.id }],
232
- icon: 'ph--gear-six--regular',
233
- },
234
- },
235
- {
236
- id: `${Devtools.Echo.Queues}-${node.id}`,
237
- data: Devtools.Echo.Queues,
238
- type: DEVTOOLS_TYPE,
239
- properties: {
240
- label: ['queues label', { ns: meta.id }],
241
- icon: 'ph--queue--regular',
242
- },
243
- },
244
- {
245
- id: `${Devtools.Echo.Members}-${node.id}`,
246
- data: Devtools.Echo.Members,
247
- type: DEVTOOLS_TYPE,
248
- properties: {
249
- label: ['members label', { ns: meta.id }],
250
- icon: 'ph--users--regular',
251
- },
252
- },
253
- {
254
- id: `${Devtools.Echo.Metadata}-${node.id}`,
255
- data: Devtools.Echo.Metadata,
256
- type: DEVTOOLS_TYPE,
257
- properties: {
258
- label: ['metadata label', { ns: meta.id }],
259
- icon: 'ph--hard-drive--regular',
260
- },
261
- },
262
- ],
263
- },
264
- {
265
- id: `${Devtools.Mesh.id}-${node.id}`,
266
- data: null,
267
- type: DEVTOOLS_TYPE,
268
- properties: {
269
- label: ['mesh label', { ns: meta.id }],
270
- icon: 'ph--graph--regular',
271
- },
272
- nodes: [
273
- {
274
- id: `${Devtools.Mesh.Signal}-${node.id}`,
275
- data: Devtools.Mesh.Signal,
276
- type: DEVTOOLS_TYPE,
277
- properties: {
278
- label: ['signal label', { ns: meta.id }],
279
- icon: 'ph--wifi-high--regular',
280
- },
281
- },
282
- {
283
- id: `${Devtools.Mesh.Swarm}-${node.id}`,
284
- data: Devtools.Mesh.Swarm,
285
- type: DEVTOOLS_TYPE,
286
- properties: {
287
- label: ['swarm label', { ns: meta.id }],
288
- icon: 'ph--users-three--regular',
289
- },
290
- },
291
- {
292
- id: `${Devtools.Mesh.Network}-${node.id}`,
293
- data: Devtools.Mesh.Network,
294
- type: DEVTOOLS_TYPE,
295
- properties: {
296
- label: ['network label', { ns: meta.id }],
297
- icon: 'ph--polygon--regular',
298
- },
299
- },
300
- ],
301
- },
302
- // TODO(wittjosiah): Remove?
303
- // {
304
- // id: `${prefix}-${Devtools.Agent.id}`,
305
- // data: null,
306
- // type: DEVTOOLS_TYPE,
307
- // properties: {
308
- // label: ['agent label', { ns: meta.id }],
309
- // icon: 'ph--robot--regular',
310
- // },
311
- // nodes: [
312
- // {
313
- // id: `${prefix}-${Devtools.Agent.Dashboard}`,
314
- // data: Devtools.Agent.Dashboard,
315
- // type: DEVTOOLS_TYPE,
316
- // properties: {
317
- // label: ['dashboard label', { ns: meta.id }],
318
- // icon: 'ph--computer-tower--regular',
319
- // },
320
- // },
321
- // ],
322
- // },
323
- {
324
- id: `${Devtools.Edge.id}-${node.id}`,
325
- data: null,
326
- type: DEVTOOLS_TYPE,
327
- properties: {
328
- label: ['edge label', { ns: meta.id }],
329
- icon: 'ph--cloud--regular',
330
- },
331
- nodes: [
332
- {
333
- id: `${Devtools.Edge.Dashboard}-${node.id}`,
334
- data: Devtools.Edge.Dashboard,
335
- type: DEVTOOLS_TYPE,
336
- properties: {
337
- label: ['dashboard label', { ns: meta.id }],
338
- icon: 'ph--computer-tower--regular',
339
- },
340
- },
341
- {
342
- id: `${Devtools.Edge.Workflows}-${node.id}`,
343
- data: Devtools.Edge.Workflows,
344
- type: DEVTOOLS_TYPE,
345
- properties: {
346
- label: ['workflows label', { ns: meta.id }],
347
- icon: 'ph--function--regular',
348
- },
349
- },
350
- {
351
- id: `${Devtools.Edge.Traces}-${node.id}`,
352
- data: Devtools.Edge.Traces,
353
- type: DEVTOOLS_TYPE,
354
- properties: {
355
- label: ['traces label', { ns: meta.id }],
356
- icon: 'ph--line-segments--regular',
357
- },
358
- },
359
- {
360
- id: `${Devtools.Edge.Testing}-${node.id}`,
361
- data: Devtools.Edge.Testing,
362
- type: DEVTOOLS_TYPE,
363
- properties: {
364
- label: ['testing label', { ns: meta.id }],
365
- icon: 'ph--flask--regular',
366
- },
367
- },
368
- ],
369
- },
370
- ],
371
- },
372
- ];
373
- }),
374
- }),
375
-
376
- // Debug object companion.
377
- GraphBuilder.createExtension({
378
- id: `${meta.id}/debug-object`,
379
- match: NodeMatcher.whenEchoObject,
380
- connector: (node) =>
381
- Effect.succeed([
382
- {
383
- id: [node.id, 'debug'].join(ATTENDABLE_PATH_SEPARATOR),
384
- type: PLANK_COMPANION_TYPE,
385
- data: 'debug',
386
- properties: {
387
- label: ['debug label', { ns: meta.id }],
388
- icon: 'ph--bug--regular',
389
- disposition: 'hidden',
390
- position: 'fallback',
391
- },
392
- },
393
- ]),
394
- }),
395
-
396
- // Devtools deck companion.
397
- GraphBuilder.createExtension({
398
- id: `${meta.id}/devtools-overview`,
399
- match: NodeMatcher.whenRoot,
400
- connector: (node) =>
401
- Effect.succeed([
402
- {
403
- id: [node.id, 'devtools'].join(ATTENDABLE_PATH_SEPARATOR),
404
- type: DECK_COMPANION_TYPE,
405
- data: null,
406
- properties: {
407
- label: ['devtools overview label', { ns: meta.id }],
408
- icon: 'ph--equalizer--regular',
409
- disposition: 'hidden',
410
- position: 'fallback',
411
- },
412
- },
413
- ]),
414
- }),
415
- ]);
416
-
417
- return Capability.contributes(Common.Capability.AppGraphBuilder, extensions);
418
- }),
419
- );
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const ReactContext = Capability.lazy('ReactContext', () => import('./react-context'));
@@ -1,20 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import * as Effect from 'effect/Effect';
6
- import React from 'react';
7
-
8
- import { Capability, Common } from '@dxos/app-framework';
9
- import { DevtoolsContextProvider } from '@dxos/devtools';
10
-
11
- import { meta } from '../../meta';
12
-
13
- export default Capability.makeModule(() =>
14
- Effect.succeed(
15
- Capability.contributes(Common.Capability.ReactContext, {
16
- id: meta.id,
17
- context: ({ children }) => <DevtoolsContextProvider>{children}</DevtoolsContextProvider>,
18
- }),
19
- ),
20
- );
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Capability } from '@dxos/app-framework';
6
-
7
- export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));