@dxos/plugin-debug 0.8.4-main.e8ec1fe → 0.8.4-main.effb148878

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