@dxos/plugin-debug 0.8.4-main.c85a9c8dae → 0.8.4-main.d9fc60f731

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 (233) hide show
  1. package/LICENSE +102 -5
  2. package/PLUGIN.mdl +373 -0
  3. package/README.md +1 -1
  4. package/dist/lib/{browser/DebugGraph-7HXJ2PS2.mjs → neutral/DebugGraph-G4FWS57E.mjs} +4 -5
  5. package/dist/lib/neutral/DebugGraph-G4FWS57E.mjs.map +7 -0
  6. package/dist/lib/neutral/DebugObjectPanel-OS65NC4M.mjs +59 -0
  7. package/dist/lib/neutral/DebugObjectPanel-OS65NC4M.mjs.map +7 -0
  8. package/dist/lib/neutral/DebugPlugin.mjs +59 -0
  9. package/dist/lib/neutral/DebugPlugin.mjs.map +7 -0
  10. package/dist/lib/neutral/DebugPlugin.node.mjs +18 -0
  11. package/dist/lib/neutral/DebugPlugin.node.mjs.map +7 -0
  12. package/dist/lib/neutral/DebugPlugin.workerd.mjs +12 -0
  13. package/dist/lib/neutral/DebugPlugin.workerd.mjs.map +7 -0
  14. package/dist/lib/neutral/DebugSettings-RKYNQIKH.mjs +223 -0
  15. package/dist/lib/neutral/DebugSettings-RKYNQIKH.mjs.map +7 -0
  16. package/dist/lib/{browser/DebugSpaceObjectsPanel-7NRPLWZ4.mjs → neutral/DebugSpaceObjectsPanel-BHOCFWDJ.mjs} +10 -26
  17. package/dist/lib/neutral/DebugSpaceObjectsPanel-BHOCFWDJ.mjs.map +7 -0
  18. package/dist/lib/{browser/DebugStatus-COQGH37G.mjs → neutral/DebugStatus-H2BAHN26.mjs} +36 -39
  19. package/dist/lib/neutral/DebugStatus-H2BAHN26.mjs.map +7 -0
  20. package/dist/lib/{browser/DevtoolsOverviewContainer-C75NFVER.mjs → neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs} +9 -6
  21. package/dist/lib/neutral/DevtoolsOverviewContainer-YX7Z3D2H.mjs.map +7 -0
  22. package/dist/lib/neutral/GithubPanel-QJKDJRVQ.mjs +177 -0
  23. package/dist/lib/neutral/GithubPanel-QJKDJRVQ.mjs.map +7 -0
  24. package/dist/lib/neutral/RegistryPanel-64GIYJHN.mjs +161 -0
  25. package/dist/lib/neutral/RegistryPanel-64GIYJHN.mjs.map +7 -0
  26. package/dist/lib/neutral/SpaceGenerator-Y35G6DRV.mjs +146 -0
  27. package/dist/lib/neutral/SpaceGenerator-Y35G6DRV.mjs.map +7 -0
  28. package/dist/lib/{browser/Wireframe-KAGOKEFW.mjs → neutral/Wireframe-WD7S2AUU.mjs} +9 -10
  29. package/dist/lib/neutral/Wireframe-WD7S2AUU.mjs.map +7 -0
  30. package/dist/lib/{browser/app-graph-builder-LGUQNXHD.mjs → neutral/app-graph-builder-XYLTBYKN.mjs} +246 -259
  31. package/dist/lib/neutral/app-graph-builder-XYLTBYKN.mjs.map +7 -0
  32. package/dist/lib/neutral/capabilities/index.mjs +15 -0
  33. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  34. package/dist/lib/neutral/chunk-HOV6MV5B.mjs +43 -0
  35. package/dist/lib/neutral/chunk-HOV6MV5B.mjs.map +7 -0
  36. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  37. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
  38. package/dist/lib/{browser/chunk-4UFQXPP7.mjs → neutral/chunk-UAAGABXZ.mjs} +24 -12
  39. package/dist/lib/neutral/chunk-UAAGABXZ.mjs.map +7 -0
  40. package/dist/lib/{browser/SpaceGenerator-SWSGJEEL.mjs → neutral/components/index.mjs} +90 -292
  41. package/dist/lib/neutral/components/index.mjs.map +7 -0
  42. package/dist/lib/neutral/containers/index.mjs +25 -0
  43. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  44. package/dist/lib/neutral/index.mjs +18 -0
  45. package/dist/lib/neutral/index.mjs.map +7 -0
  46. package/dist/lib/neutral/meta.json +1 -0
  47. package/dist/lib/neutral/meta.mjs +8 -0
  48. package/dist/lib/neutral/meta.mjs.map +7 -0
  49. package/dist/lib/neutral/plugin.mjs +12 -0
  50. package/dist/lib/neutral/plugin.mjs.map +7 -0
  51. package/dist/lib/{browser/react-context-I3USIAF6.mjs → neutral/react-context-MUZ3KVLU.mjs} +6 -6
  52. package/dist/lib/neutral/react-context-MUZ3KVLU.mjs.map +7 -0
  53. package/dist/lib/{browser/react-surface-BTVNKKVQ.mjs → neutral/react-surface-3MDMZGCA.mjs} +162 -180
  54. package/dist/lib/neutral/react-surface-3MDMZGCA.mjs.map +7 -0
  55. package/dist/lib/{browser/settings-SLTQJJNF.mjs → neutral/settings-MPM6YUP4.mjs} +7 -11
  56. package/dist/lib/neutral/settings-MPM6YUP4.mjs.map +7 -0
  57. package/dist/lib/neutral/translations.mjs +91 -0
  58. package/dist/lib/neutral/translations.mjs.map +7 -0
  59. package/dist/lib/neutral/types/index.mjs +14 -0
  60. package/dist/lib/neutral/types/index.mjs.map +7 -0
  61. package/dist/types/src/DebugPlugin.d.ts +2 -5
  62. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  63. package/dist/types/src/DebugPlugin.node.d.ts +5 -0
  64. package/dist/types/src/DebugPlugin.node.d.ts.map +1 -0
  65. package/dist/types/src/DebugPlugin.test.d.ts +2 -0
  66. package/dist/types/src/DebugPlugin.test.d.ts.map +1 -0
  67. package/dist/types/src/DebugPlugin.workerd.d.ts +5 -0
  68. package/dist/types/src/DebugPlugin.workerd.d.ts.map +1 -0
  69. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  70. package/dist/types/src/capabilities/index.d.ts +11 -4
  71. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  72. package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
  73. package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +2 -2
  74. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  75. package/dist/types/src/capabilities/{settings/settings.d.ts → settings.d.ts} +2 -1
  76. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  77. package/dist/types/src/components/DebugSettings/DebugSettings.d.ts +11 -0
  78. package/dist/types/src/components/DebugSettings/DebugSettings.d.ts.map +1 -0
  79. package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts +106 -0
  80. package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts.map +1 -0
  81. package/dist/types/src/components/DebugSettings/index.d.ts +2 -0
  82. package/dist/types/src/components/DebugSettings/index.d.ts.map +1 -0
  83. package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -1
  84. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +3 -4
  85. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  86. package/dist/types/src/components/SpaceGenerator/draw-util.d.ts.map +1 -1
  87. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  88. package/dist/types/src/components/index.d.ts +2 -0
  89. package/dist/types/src/components/index.d.ts.map +1 -1
  90. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +2 -2
  91. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -1
  92. package/dist/types/src/containers/DebugGraph/index.d.ts +1 -2
  93. package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -1
  94. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +3 -4
  95. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -1
  96. package/dist/types/src/containers/DebugObjectPanel/index.d.ts +1 -2
  97. package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -1
  98. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +3 -1
  99. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -1
  100. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +1 -2
  101. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -1
  102. package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -1
  103. package/dist/types/src/containers/DebugStatus/index.d.ts +1 -2
  104. package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -1
  105. package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -1
  106. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +1 -2
  107. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -1
  108. package/dist/types/src/containers/GithubPanel/GithubComponent.d.ts +15 -0
  109. package/dist/types/src/containers/GithubPanel/GithubComponent.d.ts.map +1 -0
  110. package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts +106 -0
  111. package/dist/types/src/containers/GithubPanel/GithubComponent.stories.d.ts.map +1 -0
  112. package/dist/types/src/containers/GithubPanel/GithubPanel.d.ts +3 -0
  113. package/dist/types/src/containers/GithubPanel/GithubPanel.d.ts.map +1 -0
  114. package/dist/types/src/containers/GithubPanel/index.d.ts +2 -0
  115. package/dist/types/src/containers/GithubPanel/index.d.ts.map +1 -0
  116. package/dist/types/src/containers/RegistryPanel/RegistryPanel.d.ts +3 -0
  117. package/dist/types/src/containers/RegistryPanel/RegistryPanel.d.ts.map +1 -0
  118. package/dist/types/src/containers/RegistryPanel/index.d.ts +2 -0
  119. package/dist/types/src/containers/RegistryPanel/index.d.ts.map +1 -0
  120. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts +3 -1
  121. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
  122. package/dist/types/src/containers/SpaceGenerator/index.d.ts +1 -2
  123. package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -1
  124. package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -1
  125. package/dist/types/src/containers/Wireframe/index.d.ts +1 -2
  126. package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -1
  127. package/dist/types/src/containers/index.d.ts +2 -1
  128. package/dist/types/src/containers/index.d.ts.map +1 -1
  129. package/dist/types/src/index.d.ts +1 -1
  130. package/dist/types/src/index.d.ts.map +1 -1
  131. package/dist/types/src/meta.d.ts +1 -1
  132. package/dist/types/src/meta.d.ts.map +1 -1
  133. package/dist/types/src/plugin.d.ts +4 -0
  134. package/dist/types/src/plugin.d.ts.map +1 -0
  135. package/dist/types/src/translations.d.ts +87 -61
  136. package/dist/types/src/translations.d.ts.map +1 -1
  137. package/dist/types/src/types/Settings.d.ts +8 -0
  138. package/dist/types/src/types/Settings.d.ts.map +1 -0
  139. package/dist/types/src/types/index.d.ts +70 -0
  140. package/dist/types/src/types/index.d.ts.map +1 -0
  141. package/dist/types/tsconfig.tsbuildinfo +1 -1
  142. package/package.json +112 -71
  143. package/src/DebugPlugin.node.ts +18 -0
  144. package/src/DebugPlugin.test.ts +29 -0
  145. package/src/DebugPlugin.tsx +14 -10
  146. package/src/DebugPlugin.workerd.ts +12 -0
  147. package/src/capabilities/app-graph-builder.ts +433 -0
  148. package/src/capabilities/index.ts +6 -4
  149. package/src/capabilities/{react-context/react-context.tsx → react-context.tsx} +7 -2
  150. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +179 -161
  151. package/src/capabilities/{settings/settings.ts → settings.ts} +4 -4
  152. package/src/components/DebugSettings/DebugSettings.stories.tsx +36 -0
  153. package/src/components/DebugSettings/DebugSettings.tsx +259 -0
  154. package/src/components/DebugSettings/index.ts +5 -0
  155. package/src/components/SpaceGenerator/ObjectGenerator.tsx +28 -28
  156. package/src/components/SpaceGenerator/draw-util.ts +8 -8
  157. package/src/components/SpaceGenerator/presets.ts +39 -62
  158. package/src/components/index.ts +4 -0
  159. package/src/containers/DebugGraph/DebugGraph.tsx +3 -2
  160. package/src/containers/DebugGraph/index.ts +1 -3
  161. package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +49 -18
  162. package/src/containers/DebugObjectPanel/index.ts +1 -3
  163. package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +11 -24
  164. package/src/containers/DebugSpaceObjectsPanel/index.ts +1 -3
  165. package/src/containers/DebugStatus/DebugStatus.tsx +42 -19
  166. package/src/containers/DebugStatus/index.ts +1 -3
  167. package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +8 -1
  168. package/src/containers/DevtoolsOverviewContainer/index.ts +1 -3
  169. package/src/containers/GithubPanel/GithubComponent.stories.tsx +38 -0
  170. package/src/containers/GithubPanel/GithubComponent.tsx +192 -0
  171. package/src/containers/GithubPanel/GithubPanel.tsx +17 -0
  172. package/src/containers/GithubPanel/index.ts +5 -0
  173. package/src/containers/RegistryPanel/RegistryPanel.tsx +150 -0
  174. package/src/containers/RegistryPanel/index.ts +5 -0
  175. package/src/containers/SpaceGenerator/SpaceGenerator.tsx +104 -104
  176. package/src/containers/SpaceGenerator/index.ts +1 -3
  177. package/src/containers/Wireframe/Wireframe.tsx +3 -7
  178. package/src/containers/Wireframe/index.ts +1 -3
  179. package/src/containers/index.ts +2 -1
  180. package/src/index.ts +1 -1
  181. package/src/meta.ts +26 -6
  182. package/src/plugin.ts +10 -0
  183. package/src/translations.ts +83 -60
  184. package/src/types/Settings.ts +16 -0
  185. package/src/{types.ts → types/index.ts} +16 -14
  186. package/src/vite-env.d.ts +10 -0
  187. package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs.map +0 -7
  188. package/dist/lib/browser/DebugObjectPanel-3TCDNUNW.mjs +0 -33
  189. package/dist/lib/browser/DebugObjectPanel-3TCDNUNW.mjs.map +0 -7
  190. package/dist/lib/browser/DebugSettings-JZMIUDYB.mjs +0 -174
  191. package/dist/lib/browser/DebugSettings-JZMIUDYB.mjs.map +0 -7
  192. package/dist/lib/browser/DebugSpaceObjectsPanel-7NRPLWZ4.mjs.map +0 -7
  193. package/dist/lib/browser/DebugStatus-COQGH37G.mjs.map +0 -7
  194. package/dist/lib/browser/DevtoolsOverviewContainer-C75NFVER.mjs.map +0 -7
  195. package/dist/lib/browser/SpaceGenerator-SWSGJEEL.mjs.map +0 -7
  196. package/dist/lib/browser/Wireframe-KAGOKEFW.mjs.map +0 -7
  197. package/dist/lib/browser/app-graph-builder-LGUQNXHD.mjs.map +0 -7
  198. package/dist/lib/browser/chunk-4UFQXPP7.mjs.map +0 -7
  199. package/dist/lib/browser/chunk-A5H5GRV6.mjs +0 -20
  200. package/dist/lib/browser/chunk-A5H5GRV6.mjs.map +0 -7
  201. package/dist/lib/browser/index.mjs +0 -132
  202. package/dist/lib/browser/index.mjs.map +0 -7
  203. package/dist/lib/browser/meta.json +0 -1
  204. package/dist/lib/browser/react-context-I3USIAF6.mjs.map +0 -7
  205. package/dist/lib/browser/react-surface-BTVNKKVQ.mjs.map +0 -7
  206. package/dist/lib/browser/settings-SLTQJJNF.mjs.map +0 -7
  207. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  208. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  209. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  210. package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
  211. package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
  212. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
  213. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -5
  214. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  215. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  216. package/dist/types/src/capabilities/settings/index.d.ts +0 -3
  217. package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
  218. package/dist/types/src/capabilities/settings/settings.d.ts.map +0 -1
  219. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts +0 -10
  220. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +0 -1
  221. package/dist/types/src/containers/DebugSettings/index.d.ts +0 -3
  222. package/dist/types/src/containers/DebugSettings/index.d.ts.map +0 -1
  223. package/dist/types/src/types.d.ts +0 -68
  224. package/dist/types/src/types.d.ts.map +0 -1
  225. package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -441
  226. package/src/capabilities/app-graph-builder/index.ts +0 -7
  227. package/src/capabilities/react-context/index.ts +0 -7
  228. package/src/capabilities/react-surface/index.ts +0 -7
  229. package/src/capabilities/settings/index.ts +0 -7
  230. package/src/containers/DebugSettings/DebugSettings.tsx +0 -201
  231. package/src/containers/DebugSettings/index.ts +0 -7
  232. /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
  233. /package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +0 -0
@@ -1,94 +1,123 @@
1
- import {
2
- Devtools
3
- } from "./chunk-4UFQXPP7.mjs";
4
- import {
5
- meta
6
- } from "./chunk-A5H5GRV6.mjs";
1
+ import "./chunk-J5LGTIGS.mjs";
7
2
 
8
- // src/capabilities/app-graph-builder/app-graph-builder.ts
3
+ // src/capabilities/app-graph-builder.ts
9
4
  import * as Effect from "effect/Effect";
10
5
  import { Capability } from "@dxos/app-framework";
11
- import { AppCapabilities } from "@dxos/app-toolkit";
12
- import { Obj } from "@dxos/echo";
6
+ import { AppCapabilities, AppNode, getSpaceIdFromPath } from "@dxos/app-toolkit";
13
7
  import { ClientCapabilities } from "@dxos/plugin-client";
14
- import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
15
8
  import { GraphBuilder, Node, NodeMatcher } from "@dxos/plugin-graph";
16
- import { meta as spaceMeta } from "@dxos/plugin-space";
17
- import { parseId } from "@dxos/react-client/echo";
18
- var DEVTOOLS_TYPE = `${meta.id}/devtools`;
9
+ import { SPACE_TYPE } from "@dxos/plugin-space";
10
+ import { getParentId } from "@dxos/react-ui-attention";
11
+ import { meta } from "#meta";
12
+ import { Devtools } from "#types";
13
+ var DEVTOOLS_TYPE = `${meta.id}.devtools`;
19
14
  var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
20
15
  const extensions = yield* Effect.all([
21
- // Devtools node.
22
16
  GraphBuilder.createExtension({
23
- id: `${meta.id}/devtools`,
24
- match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}/settings`)),
17
+ id: "root",
18
+ match: NodeMatcher.whenRoot,
19
+ actions: () => Effect.succeed([
20
+ Node.makeAction({
21
+ id: "resetData",
22
+ data: () => Effect.sync(() => {
23
+ window.location.href = "/reset.html#continue";
24
+ }),
25
+ properties: {
26
+ label: [
27
+ "reset-data.label",
28
+ {
29
+ ns: meta.id
30
+ }
31
+ ],
32
+ icon: "ph--warning--regular"
33
+ }
34
+ })
35
+ ])
36
+ }),
37
+ GraphBuilder.createExtension({
38
+ id: "devtools",
39
+ match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(SPACE_TYPE)),
25
40
  connector: (node, get) => Effect.gen(function* () {
26
41
  const client = yield* Capability.get(ClientCapabilities.Client);
27
42
  const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
28
43
  const layout = layoutAtom ? get(layoutAtom) : void 0;
29
- const { spaceId } = parseId(layout?.workspace);
44
+ const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : void 0;
30
45
  const space = spaceId ? client.spaces.get(spaceId) : void 0;
31
46
  const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
32
47
  return [
33
- {
34
- id: `${Devtools.id}-${node.id}`,
48
+ Node.make({
49
+ id: Devtools.id,
35
50
  data: null,
36
51
  type: DEVTOOLS_TYPE,
37
52
  properties: {
38
53
  label: [
39
- "devtools label",
54
+ "devtools.label",
40
55
  {
41
56
  ns: meta.id
42
57
  }
43
58
  ],
44
59
  icon: "ph--hammer--regular",
45
60
  disposition: "pin-end",
46
- position: "fallback"
61
+ position: "last"
47
62
  },
48
63
  nodes: [
49
- ...space && node.type === `${spaceMeta.id}/settings` ? [
50
- {
51
- id: `debug-${node.id}`,
52
- type: `${meta.id}/space`,
53
- data: {
54
- space,
55
- type: `${meta.id}/space`
56
- },
57
- properties: {
58
- label: [
59
- "debug label",
60
- {
61
- ns: meta.id
62
- }
63
- ],
64
- icon: "ph--bug--regular"
65
- }
66
- }
67
- ] : [],
68
- {
69
- id: `app-graph-${node.id}`,
70
- type: `${meta.id}/app-graph`,
64
+ Node.make({
65
+ id: "appGraph",
66
+ type: `${meta.id}.app-graph`,
71
67
  data: {
72
68
  graph: graph?.graph,
73
- root: space ? space.id : Node.RootId
69
+ root: node.id === Node.RootId ? node.id : getParentId(node.id)
74
70
  },
75
71
  properties: {
76
72
  label: [
77
- "debug app graph label",
73
+ "debug-app-graph.label",
78
74
  {
79
75
  ns: meta.id
80
76
  }
81
77
  ],
82
78
  icon: "ph--graph--regular"
83
79
  }
84
- },
85
- {
86
- id: `${Devtools.Client.id}-${node.id}`,
80
+ }),
81
+ Node.make({
82
+ id: "toolsExplorer",
83
+ data: Devtools.ToolsExplorer,
84
+ type: DEVTOOLS_TYPE,
85
+ properties: {
86
+ label: [
87
+ "debug-tools-explorer.label",
88
+ {
89
+ ns: meta.id
90
+ }
91
+ ],
92
+ icon: "ph--toolbox--regular"
93
+ }
94
+ }),
95
+ ...space && node.type === SPACE_TYPE ? [
96
+ Node.make({
97
+ id: "debug",
98
+ type: `${meta.id}.space`,
99
+ data: {
100
+ space,
101
+ type: `${meta.id}.space`
102
+ },
103
+ properties: {
104
+ label: [
105
+ "generate-objects.label",
106
+ {
107
+ ns: meta.id
108
+ }
109
+ ],
110
+ icon: "ph--dice-five--regular"
111
+ }
112
+ })
113
+ ] : [],
114
+ Node.make({
115
+ id: Devtools.Client.id,
87
116
  data: null,
88
117
  type: DEVTOOLS_TYPE,
89
118
  properties: {
90
119
  label: [
91
- "client label",
120
+ "client.label",
92
121
  {
93
122
  ns: meta.id
94
123
  }
@@ -96,85 +125,71 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
96
125
  icon: "ph--users--regular"
97
126
  },
98
127
  nodes: [
99
- {
100
- id: `${Devtools.Client.Config}-${node.id}`,
128
+ Node.make({
129
+ id: Devtools.Client.Config,
101
130
  data: Devtools.Client.Config,
102
131
  type: DEVTOOLS_TYPE,
103
132
  properties: {
104
133
  label: [
105
- "config label",
134
+ "config.label",
106
135
  {
107
136
  ns: meta.id
108
137
  }
109
138
  ],
110
139
  icon: "ph--gear--regular"
111
140
  }
112
- },
113
- {
114
- id: `${Devtools.Client.Storage}-${node.id}`,
141
+ }),
142
+ Node.make({
143
+ id: Devtools.Client.Storage,
115
144
  data: Devtools.Client.Storage,
116
145
  type: DEVTOOLS_TYPE,
117
146
  properties: {
118
147
  label: [
119
- "storage label",
148
+ "storage.label",
120
149
  {
121
150
  ns: meta.id
122
151
  }
123
152
  ],
124
153
  icon: "ph--hard-drives--regular"
125
154
  }
126
- },
127
- {
128
- id: `${Devtools.Client.Logs}-${node.id}`,
155
+ }),
156
+ Node.make({
157
+ id: Devtools.Client.Logs,
129
158
  data: Devtools.Client.Logs,
130
159
  type: DEVTOOLS_TYPE,
131
160
  properties: {
132
161
  label: [
133
- "logs label",
162
+ "logs.label",
134
163
  {
135
164
  ns: meta.id
136
165
  }
137
166
  ],
138
167
  icon: "ph--file-text--regular"
139
168
  }
140
- },
141
- {
142
- id: `${Devtools.Client.Diagnostics}-${node.id}`,
169
+ }),
170
+ Node.make({
171
+ id: Devtools.Client.Diagnostics,
143
172
  data: Devtools.Client.Diagnostics,
144
173
  type: DEVTOOLS_TYPE,
145
174
  properties: {
146
175
  label: [
147
- "diagnostics label",
176
+ "diagnostics.label",
148
177
  {
149
178
  ns: meta.id
150
179
  }
151
180
  ],
152
181
  icon: "ph--chart-line--regular"
153
182
  }
154
- },
155
- {
156
- id: `${Devtools.Client.Tracing}-${node.id}`,
157
- data: Devtools.Client.Tracing,
158
- type: DEVTOOLS_TYPE,
159
- properties: {
160
- label: [
161
- "tracing label",
162
- {
163
- ns: meta.id
164
- }
165
- ],
166
- icon: "ph--fire--regular"
167
- }
168
- }
183
+ })
169
184
  ]
170
- },
171
- {
172
- id: `${Devtools.Halo.id}-${node.id}`,
185
+ }),
186
+ Node.make({
187
+ id: Devtools.Halo.id,
173
188
  data: null,
174
189
  type: DEVTOOLS_TYPE,
175
190
  properties: {
176
191
  label: [
177
- "halo label",
192
+ "halo.label",
178
193
  {
179
194
  ns: meta.id
180
195
  }
@@ -182,71 +197,71 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
182
197
  icon: "ph--identification-badge--regular"
183
198
  },
184
199
  nodes: [
185
- {
186
- id: `${Devtools.Halo.Identity}-${node.id}`,
200
+ Node.make({
201
+ id: Devtools.Halo.Identity,
187
202
  data: Devtools.Halo.Identity,
188
203
  type: DEVTOOLS_TYPE,
189
204
  properties: {
190
205
  label: [
191
- "identity label",
206
+ "identity.label",
192
207
  {
193
208
  ns: meta.id
194
209
  }
195
210
  ],
196
211
  icon: "ph--identification-badge--regular"
197
212
  }
198
- },
199
- {
200
- id: `${Devtools.Halo.Devices}-${node.id}`,
213
+ }),
214
+ Node.make({
215
+ id: Devtools.Halo.Devices,
201
216
  data: Devtools.Halo.Devices,
202
217
  type: DEVTOOLS_TYPE,
203
218
  properties: {
204
219
  label: [
205
- "devices label",
220
+ "devices.label",
206
221
  {
207
222
  ns: meta.id
208
223
  }
209
224
  ],
210
225
  icon: "ph--devices--regular"
211
226
  }
212
- },
213
- {
214
- id: `${Devtools.Halo.Keyring}-${node.id}`,
227
+ }),
228
+ Node.make({
229
+ id: Devtools.Halo.Keyring,
215
230
  data: Devtools.Halo.Keyring,
216
231
  type: DEVTOOLS_TYPE,
217
232
  properties: {
218
233
  label: [
219
- "keyring label",
234
+ "keyring.label",
220
235
  {
221
236
  ns: meta.id
222
237
  }
223
238
  ],
224
239
  icon: "ph--key--regular"
225
240
  }
226
- },
227
- {
228
- id: `${Devtools.Halo.Credentials}-${node.id}`,
241
+ }),
242
+ Node.make({
243
+ id: Devtools.Halo.Credentials,
229
244
  data: Devtools.Halo.Credentials,
230
245
  type: DEVTOOLS_TYPE,
231
246
  properties: {
232
247
  label: [
233
- "credentials label",
248
+ "credentials.label",
234
249
  {
235
250
  ns: meta.id
236
251
  }
237
252
  ],
238
253
  icon: "ph--credit-card--regular"
239
254
  }
240
- }
255
+ })
241
256
  ]
242
- },
243
- {
244
- id: `${Devtools.Echo.id}-${node.id}`,
257
+ }),
258
+ Node.make({
259
+ id: Devtools.Echo.id,
245
260
  data: null,
246
261
  type: DEVTOOLS_TYPE,
247
262
  properties: {
248
263
  label: [
249
- "echo label",
264
+ "echo.label",
250
265
  {
251
266
  ns: meta.id
252
267
  }
@@ -254,141 +269,155 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
254
269
  icon: "ph--database--regular"
255
270
  },
256
271
  nodes: [
257
- {
258
- id: `${Devtools.Echo.Spaces}-${node.id}`,
272
+ Node.make({
273
+ id: Devtools.Echo.Spaces,
259
274
  data: Devtools.Echo.Spaces,
260
275
  type: DEVTOOLS_TYPE,
261
276
  properties: {
262
277
  label: [
263
- "spaces label",
278
+ "spaces.label",
264
279
  {
265
280
  ns: meta.id
266
281
  }
267
282
  ],
268
283
  icon: "ph--graph--regular"
269
284
  }
270
- },
271
- {
272
- id: `${Devtools.Echo.Space}-${node.id}`,
285
+ }),
286
+ Node.make({
287
+ id: Devtools.Echo.Space,
273
288
  data: Devtools.Echo.Space,
274
289
  type: DEVTOOLS_TYPE,
275
290
  properties: {
276
291
  label: [
277
- "space label",
292
+ "space.label",
278
293
  {
279
294
  ns: meta.id
280
295
  }
281
296
  ],
282
297
  icon: "ph--planet--regular"
283
298
  }
284
- },
285
- {
286
- id: `${Devtools.Echo.Feeds}-${node.id}`,
299
+ }),
300
+ Node.make({
301
+ id: Devtools.Echo.Feeds,
287
302
  data: Devtools.Echo.Feeds,
288
303
  type: DEVTOOLS_TYPE,
289
304
  properties: {
290
305
  label: [
291
- "feeds label",
306
+ "feeds.label",
292
307
  {
293
308
  ns: meta.id
294
309
  }
295
310
  ],
296
311
  icon: "ph--list-bullets--regular"
297
312
  }
298
- },
299
- {
300
- id: `${Devtools.Echo.Objects}-${node.id}`,
313
+ }),
314
+ Node.make({
315
+ id: Devtools.Echo.Objects,
301
316
  data: Devtools.Echo.Objects,
302
317
  type: DEVTOOLS_TYPE,
303
318
  properties: {
304
319
  label: [
305
- "objects label",
320
+ "objects.label",
306
321
  {
307
322
  ns: meta.id
308
323
  }
309
324
  ],
310
325
  icon: "ph--cube--regular"
311
326
  }
312
- },
313
- {
314
- id: `${Devtools.Echo.Schema}-${node.id}`,
327
+ }),
328
+ Node.make({
329
+ id: Devtools.Echo.Schema,
315
330
  data: Devtools.Echo.Schema,
316
331
  type: DEVTOOLS_TYPE,
317
332
  properties: {
318
333
  label: [
319
- "schema label",
334
+ "schema.label",
320
335
  {
321
336
  ns: meta.id
322
337
  }
323
338
  ],
324
339
  icon: "ph--database--regular"
325
340
  }
326
- },
327
- {
328
- id: `${Devtools.Echo.Automerge}-${node.id}`,
341
+ }),
342
+ Node.make({
343
+ id: Devtools.Echo.Registry,
344
+ data: Devtools.Echo.Registry,
345
+ type: DEVTOOLS_TYPE,
346
+ properties: {
347
+ label: [
348
+ "registry.label",
349
+ {
350
+ ns: meta.id
351
+ }
352
+ ],
353
+ icon: "ph--books--regular"
354
+ }
355
+ }),
356
+ Node.make({
357
+ id: Devtools.Echo.Automerge,
329
358
  data: Devtools.Echo.Automerge,
330
359
  type: DEVTOOLS_TYPE,
331
360
  properties: {
332
361
  label: [
333
- "automerge label",
362
+ "automerge.label",
334
363
  {
335
364
  ns: meta.id
336
365
  }
337
366
  ],
338
367
  icon: "ph--gear-six--regular"
339
368
  }
340
- },
341
- {
342
- id: `${Devtools.Echo.Queues}-${node.id}`,
369
+ }),
370
+ Node.make({
371
+ id: Devtools.Echo.Queues,
343
372
  data: Devtools.Echo.Queues,
344
373
  type: DEVTOOLS_TYPE,
345
374
  properties: {
346
375
  label: [
347
- "queues label",
376
+ "queues.label",
348
377
  {
349
378
  ns: meta.id
350
379
  }
351
380
  ],
352
381
  icon: "ph--queue--regular"
353
382
  }
354
- },
355
- {
356
- id: `${Devtools.Echo.Members}-${node.id}`,
383
+ }),
384
+ Node.make({
385
+ id: Devtools.Echo.Members,
357
386
  data: Devtools.Echo.Members,
358
387
  type: DEVTOOLS_TYPE,
359
388
  properties: {
360
389
  label: [
361
- "members label",
390
+ "members.label",
362
391
  {
363
392
  ns: meta.id
364
393
  }
365
394
  ],
366
395
  icon: "ph--users--regular"
367
396
  }
368
- },
369
- {
370
- id: `${Devtools.Echo.Metadata}-${node.id}`,
397
+ }),
398
+ Node.make({
399
+ id: Devtools.Echo.Metadata,
371
400
  data: Devtools.Echo.Metadata,
372
401
  type: DEVTOOLS_TYPE,
373
402
  properties: {
374
403
  label: [
375
- "metadata label",
404
+ "metadata.label",
376
405
  {
377
406
  ns: meta.id
378
407
  }
379
408
  ],
380
409
  icon: "ph--hard-drive--regular"
381
410
  }
382
- }
411
+ })
383
412
  ]
384
- },
385
- {
386
- id: `${Devtools.Mesh.id}-${node.id}`,
413
+ }),
414
+ Node.make({
415
+ id: Devtools.Mesh.id,
387
416
  data: null,
388
417
  type: DEVTOOLS_TYPE,
389
418
  properties: {
390
419
  label: [
391
- "mesh label",
420
+ "mesh.label",
392
421
  {
393
422
  ns: meta.id
394
423
  }
@@ -396,78 +425,57 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
396
425
  icon: "ph--graph--regular"
397
426
  },
398
427
  nodes: [
399
- {
400
- id: `${Devtools.Mesh.Signal}-${node.id}`,
428
+ Node.make({
429
+ id: Devtools.Mesh.Signal,
401
430
  data: Devtools.Mesh.Signal,
402
431
  type: DEVTOOLS_TYPE,
403
432
  properties: {
404
433
  label: [
405
- "signal label",
434
+ "signal.label",
406
435
  {
407
436
  ns: meta.id
408
437
  }
409
438
  ],
410
439
  icon: "ph--wifi-high--regular"
411
440
  }
412
- },
413
- {
414
- id: `${Devtools.Mesh.Swarm}-${node.id}`,
441
+ }),
442
+ Node.make({
443
+ id: Devtools.Mesh.Swarm,
415
444
  data: Devtools.Mesh.Swarm,
416
445
  type: DEVTOOLS_TYPE,
417
446
  properties: {
418
447
  label: [
419
- "swarm label",
448
+ "swarm.label",
420
449
  {
421
450
  ns: meta.id
422
451
  }
423
452
  ],
424
453
  icon: "ph--users-three--regular"
425
454
  }
426
- },
427
- {
428
- id: `${Devtools.Mesh.Network}-${node.id}`,
455
+ }),
456
+ Node.make({
457
+ id: Devtools.Mesh.Network,
429
458
  data: Devtools.Mesh.Network,
430
459
  type: DEVTOOLS_TYPE,
431
460
  properties: {
432
461
  label: [
433
- "network label",
462
+ "network.label",
434
463
  {
435
464
  ns: meta.id
436
465
  }
437
466
  ],
438
467
  icon: "ph--polygon--regular"
439
468
  }
440
- }
469
+ })
441
470
  ]
442
- },
443
- // TODO(wittjosiah): Remove?
444
- // {
445
- // id: `${prefix}-${Devtools.Agent.id}`,
446
- // data: null,
447
- // type: DEVTOOLS_TYPE,
448
- // properties: {
449
- // label: ['agent label', { ns: meta.id }],
450
- // icon: 'ph--robot--regular',
451
- // },
452
- // nodes: [
453
- // {
454
- // id: `${prefix}-${Devtools.Agent.Dashboard}`,
455
- // data: Devtools.Agent.Dashboard,
456
- // type: DEVTOOLS_TYPE,
457
- // properties: {
458
- // label: ['dashboard label', { ns: meta.id }],
459
- // icon: 'ph--computer-tower--regular',
460
- // },
461
- // },
462
- // ],
463
- // },
464
- {
465
- id: `${Devtools.Edge.id}-${node.id}`,
471
+ }),
472
+ Node.make({
473
+ id: Devtools.Edge.id,
466
474
  data: null,
467
475
  type: DEVTOOLS_TYPE,
468
476
  properties: {
469
477
  label: [
470
- "edge label",
478
+ "edge.label",
471
479
  {
472
480
  ns: meta.id
473
481
  }
@@ -475,145 +483,124 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
475
483
  icon: "ph--cloud--regular"
476
484
  },
477
485
  nodes: [
478
- {
479
- id: `${Devtools.Edge.Dashboard}-${node.id}`,
486
+ Node.make({
487
+ id: Devtools.Edge.Dashboard,
480
488
  data: Devtools.Edge.Dashboard,
481
489
  type: DEVTOOLS_TYPE,
482
490
  properties: {
483
491
  label: [
484
- "dashboard label",
492
+ "dashboard.label",
485
493
  {
486
494
  ns: meta.id
487
495
  }
488
496
  ],
489
497
  icon: "ph--computer-tower--regular"
490
498
  }
491
- },
492
- {
493
- id: `${Devtools.Edge.Workflows}-${node.id}`,
499
+ }),
500
+ Node.make({
501
+ id: Devtools.Edge.Workflows,
494
502
  data: Devtools.Edge.Workflows,
495
503
  type: DEVTOOLS_TYPE,
496
504
  properties: {
497
505
  label: [
498
- "workflows label",
506
+ "workflows.label",
499
507
  {
500
508
  ns: meta.id
501
509
  }
502
510
  ],
503
511
  icon: "ph--function--regular"
504
512
  }
505
- },
506
- {
507
- id: `${Devtools.Edge.Traces}-${node.id}`,
513
+ }),
514
+ Node.make({
515
+ id: Devtools.Edge.Traces,
508
516
  data: Devtools.Edge.Traces,
509
517
  type: DEVTOOLS_TYPE,
510
518
  properties: {
511
519
  label: [
512
- "traces label",
520
+ "traces.label",
513
521
  {
514
522
  ns: meta.id
515
523
  }
516
524
  ],
517
525
  icon: "ph--line-segments--regular"
518
526
  }
519
- },
520
- {
521
- id: `${Devtools.Edge.Testing}-${node.id}`,
527
+ }),
528
+ Node.make({
529
+ id: Devtools.Edge.Testing,
522
530
  data: Devtools.Edge.Testing,
523
531
  type: DEVTOOLS_TYPE,
524
532
  properties: {
525
533
  label: [
526
- "testing label",
534
+ "testing.label",
527
535
  {
528
536
  ns: meta.id
529
537
  }
530
538
  ],
531
539
  icon: "ph--flask--regular"
532
540
  }
533
- }
541
+ })
534
542
  ]
535
- }
543
+ })
536
544
  ]
537
- }
545
+ })
538
546
  ];
539
547
  })
540
548
  }),
541
549
  // Debug object companion.
542
550
  GraphBuilder.createExtension({
543
- id: `${meta.id}/debug-object`,
551
+ id: "debugObject",
544
552
  match: NodeMatcher.whenEchoObject,
545
- connector: (object) => Effect.succeed([
546
- {
547
- id: [
548
- Obj.getDXN(object).toString(),
549
- "debug"
550
- ].join(ATTENDABLE_PATH_SEPARATOR),
551
- type: PLANK_COMPANION_TYPE,
553
+ connector: () => Effect.succeed([
554
+ AppNode.makeCompanion({
555
+ id: "debug",
556
+ label: [
557
+ "debug.label",
558
+ {
559
+ ns: meta.id
560
+ }
561
+ ],
562
+ icon: "ph--bug--regular",
552
563
  data: "debug",
553
- properties: {
554
- label: [
555
- "debug label",
556
- {
557
- ns: meta.id
558
- }
559
- ],
560
- icon: "ph--bug--regular",
561
- disposition: "hidden",
562
- position: "fallback"
563
- }
564
- }
564
+ position: "last"
565
+ })
565
566
  ])
566
567
  }),
567
568
  // Devtools deck companion.
568
569
  GraphBuilder.createExtension({
569
- id: `${meta.id}/devtools-overview`,
570
+ id: "devtoolsOverview",
570
571
  match: NodeMatcher.whenRoot,
571
- connector: (node) => Effect.succeed([
572
- {
573
- id: [
574
- node.id,
575
- "devtools"
576
- ].join(ATTENDABLE_PATH_SEPARATOR),
577
- type: DECK_COMPANION_TYPE,
572
+ connector: () => Effect.succeed([
573
+ AppNode.makeDeckCompanion({
574
+ id: "devtools",
575
+ label: [
576
+ "devtools-overview.label",
577
+ {
578
+ ns: meta.id
579
+ }
580
+ ],
581
+ icon: "ph--equalizer--regular",
578
582
  data: "devtools",
579
- properties: {
580
- label: [
581
- "devtools overview label",
582
- {
583
- ns: meta.id
584
- }
585
- ],
586
- icon: "ph--equalizer--regular",
587
- disposition: "hidden",
588
- position: "fallback"
589
- }
590
- }
583
+ position: "last"
584
+ })
591
585
  ])
592
586
  }),
593
587
  // Object explorer.
594
588
  GraphBuilder.createExtension({
595
- id: `${meta.id}/space-objects`,
589
+ id: "spaceObjects",
596
590
  match: NodeMatcher.whenRoot,
597
- connector: (node) => Effect.succeed([
598
- {
599
- id: [
600
- node.id,
601
- "space-objects"
602
- ].join(ATTENDABLE_PATH_SEPARATOR),
603
- type: DECK_COMPANION_TYPE,
591
+ connector: () => Effect.succeed([
592
+ AppNode.makeDeckCompanion({
593
+ id: "spaceObjects",
594
+ label: [
595
+ "space-objects.label",
596
+ {
597
+ ns: meta.id
598
+ }
599
+ ],
600
+ icon: "ph--cube--regular",
604
601
  data: "space-objects",
605
- properties: {
606
- label: [
607
- "space objects label",
608
- {
609
- ns: meta.id
610
- }
611
- ],
612
- icon: "ph--cube--regular",
613
- disposition: "hidden",
614
- position: "fallback"
615
- }
616
- }
602
+ position: "last"
603
+ })
617
604
  ])
618
605
  })
619
606
  ]);
@@ -622,4 +609,4 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
622
609
  export {
623
610
  app_graph_builder_default as default
624
611
  };
625
- //# sourceMappingURL=app-graph-builder-LGUQNXHD.mjs.map
612
+ //# sourceMappingURL=app-graph-builder-XYLTBYKN.mjs.map