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

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