@dxos/plugin-debug 0.8.4-main.72ec0f3 → 0.8.4-main.7996785055

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 (189) hide show
  1. package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs +16 -0
  2. package/dist/lib/browser/DebugGraph-7HXJ2PS2.mjs.map +7 -0
  3. package/dist/lib/browser/DebugObjectPanel-KXVFOGU6.mjs +35 -0
  4. package/dist/lib/browser/DebugObjectPanel-KXVFOGU6.mjs.map +7 -0
  5. package/dist/lib/browser/DebugSettings-DQXOXF6A.mjs +183 -0
  6. package/dist/lib/browser/DebugSettings-DQXOXF6A.mjs.map +7 -0
  7. package/dist/lib/browser/DebugSpaceObjectsPanel-SIK72DXV.mjs +45 -0
  8. package/dist/lib/browser/DebugSpaceObjectsPanel-SIK72DXV.mjs.map +7 -0
  9. package/dist/lib/browser/DebugStatus-FWF3YFBA.mjs +124 -0
  10. package/dist/lib/browser/DebugStatus-FWF3YFBA.mjs.map +7 -0
  11. package/dist/lib/browser/DevtoolsOverviewContainer-TBTTPXVF.mjs +24 -0
  12. package/dist/lib/browser/DevtoolsOverviewContainer-TBTTPXVF.mjs.map +7 -0
  13. package/dist/lib/browser/{SpaceGenerator-46TAISVE.mjs → SpaceGenerator-UUQS6TYY.mjs} +455 -425
  14. package/dist/lib/browser/SpaceGenerator-UUQS6TYY.mjs.map +7 -0
  15. package/dist/lib/browser/Wireframe-KAGOKEFW.mjs +53 -0
  16. package/dist/lib/browser/Wireframe-KAGOKEFW.mjs.map +7 -0
  17. package/dist/lib/browser/app-graph-builder-FBLOEOH5.mjs +594 -0
  18. package/dist/lib/browser/app-graph-builder-FBLOEOH5.mjs.map +7 -0
  19. package/dist/lib/browser/{chunk-SRV2AIGJ.mjs → chunk-Q37TZWW5.mjs} +12 -2
  20. package/dist/lib/browser/chunk-Q37TZWW5.mjs.map +7 -0
  21. package/dist/lib/browser/{chunk-WZFZ4ESO.mjs → chunk-ZOM2FBHQ.mjs} +2 -2
  22. package/dist/lib/browser/chunk-ZOM2FBHQ.mjs.map +7 -0
  23. package/dist/lib/browser/index.mjs +40 -38
  24. package/dist/lib/browser/index.mjs.map +4 -4
  25. package/dist/lib/browser/meta.json +1 -1
  26. package/dist/lib/browser/react-context-KBHXEMRS.mjs +18 -0
  27. package/dist/lib/browser/react-context-KBHXEMRS.mjs.map +7 -0
  28. package/dist/lib/browser/react-surface-HYT4HKZX.mjs +428 -0
  29. package/dist/lib/browser/react-surface-HYT4HKZX.mjs.map +7 -0
  30. package/dist/lib/browser/settings-XXFUM3QJ.mjs +32 -0
  31. package/dist/lib/browser/settings-XXFUM3QJ.mjs.map +7 -0
  32. package/dist/types/src/DebugPlugin.d.ts +7 -1
  33. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  34. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  35. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  36. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  37. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  38. package/dist/types/src/capabilities/index.d.ts +4 -8
  39. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  40. package/dist/types/src/capabilities/react-context/index.d.ts +7 -0
  41. package/dist/types/src/capabilities/react-context/index.d.ts.map +1 -0
  42. package/dist/types/src/capabilities/react-context/react-context.d.ts +10 -0
  43. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -0
  44. package/dist/types/src/capabilities/react-surface/index.d.ts +5 -0
  45. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  46. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +9 -0
  47. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  48. package/dist/types/src/capabilities/settings/index.d.ts +3 -0
  49. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  50. package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
  51. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  52. package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -0
  53. package/dist/types/src/components/SchemaTable/index.d.ts +2 -0
  54. package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -0
  55. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +5 -5
  56. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  57. package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
  58. package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
  59. package/dist/types/src/components/SpaceGenerator/presets.d.ts +1 -4
  60. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  61. package/dist/types/src/components/index.d.ts +2 -10
  62. package/dist/types/src/components/index.d.ts.map +1 -1
  63. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +8 -0
  64. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
  65. package/dist/types/src/containers/DebugGraph/index.d.ts +3 -0
  66. package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
  67. package/dist/types/src/{components → containers/DebugObjectPanel}/DebugObjectPanel.d.ts +2 -2
  68. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
  69. package/dist/types/src/containers/DebugObjectPanel/index.d.ts +3 -0
  70. package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
  71. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts +10 -0
  72. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +1 -0
  73. package/dist/types/src/containers/DebugSettings/index.d.ts +3 -0
  74. package/dist/types/src/containers/DebugSettings/index.d.ts.map +1 -0
  75. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +3 -0
  76. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
  77. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +3 -0
  78. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -0
  79. package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -0
  80. package/dist/types/src/containers/DebugStatus/index.d.ts +3 -0
  81. package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -0
  82. package/dist/types/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.d.ts +0 -1
  83. package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
  84. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +3 -0
  85. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
  86. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts +15 -0
  87. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -0
  88. package/dist/types/src/containers/SpaceGenerator/index.d.ts +3 -0
  89. package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -0
  90. package/dist/types/src/{components → containers/Wireframe}/Wireframe.d.ts +1 -1
  91. package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -0
  92. package/dist/types/src/containers/Wireframe/index.d.ts +3 -0
  93. package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
  94. package/dist/types/src/containers/index.d.ts +10 -0
  95. package/dist/types/src/containers/index.d.ts.map +1 -0
  96. package/dist/types/src/meta.d.ts +2 -2
  97. package/dist/types/src/meta.d.ts.map +1 -1
  98. package/dist/types/src/translations.d.ts +2 -0
  99. package/dist/types/src/translations.d.ts.map +1 -1
  100. package/dist/types/src/types.d.ts +39 -34
  101. package/dist/types/src/types.d.ts.map +1 -1
  102. package/dist/types/tsconfig.tsbuildinfo +1 -1
  103. package/package.json +75 -70
  104. package/src/DebugPlugin.tsx +27 -31
  105. package/src/capabilities/app-graph-builder/app-graph-builder.ts +419 -0
  106. package/src/capabilities/app-graph-builder/index.ts +7 -0
  107. package/src/capabilities/index.ts +4 -6
  108. package/src/capabilities/react-context/index.ts +7 -0
  109. package/src/capabilities/react-context/react-context.tsx +25 -0
  110. package/src/capabilities/react-surface/index.ts +7 -0
  111. package/src/capabilities/react-surface/react-surface.tsx +414 -0
  112. package/src/capabilities/settings/index.ts +7 -0
  113. package/src/capabilities/settings/settings.ts +31 -0
  114. package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +2 -2
  115. package/src/components/SchemaTable/index.ts +5 -0
  116. package/src/components/SpaceGenerator/ObjectGenerator.tsx +19 -21
  117. package/src/components/SpaceGenerator/index.ts +2 -3
  118. package/src/components/SpaceGenerator/presets.ts +196 -75
  119. package/src/components/index.ts +2 -10
  120. package/src/containers/DebugGraph/DebugGraph.tsx +13 -0
  121. package/src/containers/DebugGraph/index.ts +7 -0
  122. package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +47 -0
  123. package/src/containers/DebugObjectPanel/index.ts +7 -0
  124. package/src/{components → containers/DebugSettings}/DebugSettings.tsx +51 -25
  125. package/src/containers/DebugSettings/index.ts +7 -0
  126. package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +55 -0
  127. package/src/containers/DebugSpaceObjectsPanel/index.ts +7 -0
  128. package/src/{components → containers/DebugStatus}/DebugStatus.tsx +40 -16
  129. package/src/containers/DebugStatus/index.ts +7 -0
  130. package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +25 -0
  131. package/src/containers/DevtoolsOverviewContainer/index.ts +7 -0
  132. package/src/containers/SpaceGenerator/SpaceGenerator.tsx +130 -0
  133. package/src/containers/SpaceGenerator/index.ts +7 -0
  134. package/src/{components → containers/Wireframe}/Wireframe.tsx +4 -4
  135. package/src/containers/Wireframe/index.ts +7 -0
  136. package/src/containers/index.ts +14 -0
  137. package/src/meta.ts +3 -3
  138. package/src/translations.ts +2 -0
  139. package/src/types.ts +9 -2
  140. package/dist/lib/browser/DebugGraph-EDOH6R2G.mjs +0 -20
  141. package/dist/lib/browser/DebugGraph-EDOH6R2G.mjs.map +0 -7
  142. package/dist/lib/browser/DevtoolsOverviewContainer-JXVZVPHN.mjs +0 -25
  143. package/dist/lib/browser/DevtoolsOverviewContainer-JXVZVPHN.mjs.map +0 -7
  144. package/dist/lib/browser/SpaceGenerator-46TAISVE.mjs.map +0 -7
  145. package/dist/lib/browser/app-graph-builder-CRH2HJKT.mjs +0 -588
  146. package/dist/lib/browser/app-graph-builder-CRH2HJKT.mjs.map +0 -7
  147. package/dist/lib/browser/chunk-SRV2AIGJ.mjs.map +0 -7
  148. package/dist/lib/browser/chunk-WZFZ4ESO.mjs.map +0 -7
  149. package/dist/lib/browser/react-context-P2YDWEWI.mjs +0 -16
  150. package/dist/lib/browser/react-context-P2YDWEWI.mjs.map +0 -7
  151. package/dist/lib/browser/react-surface-2SNVZDEA.mjs +0 -774
  152. package/dist/lib/browser/react-surface-2SNVZDEA.mjs.map +0 -7
  153. package/dist/lib/browser/settings-SQXR3OAH.mjs +0 -22
  154. package/dist/lib/browser/settings-SQXR3OAH.mjs.map +0 -7
  155. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  156. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  157. package/dist/types/src/capabilities/react-context.d.ts +0 -8
  158. package/dist/types/src/capabilities/react-context.d.ts.map +0 -1
  159. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  160. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  161. package/dist/types/src/capabilities/settings.d.ts +0 -4
  162. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  163. package/dist/types/src/components/Container.d.ts +0 -5
  164. package/dist/types/src/components/Container.d.ts.map +0 -1
  165. package/dist/types/src/components/DebugGraph.d.ts +0 -8
  166. package/dist/types/src/components/DebugGraph.d.ts.map +0 -1
  167. package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
  168. package/dist/types/src/components/DebugSettings.d.ts +0 -6
  169. package/dist/types/src/components/DebugSettings.d.ts.map +0 -1
  170. package/dist/types/src/components/DebugStatus.d.ts.map +0 -1
  171. package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
  172. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +0 -1
  173. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts +0 -9
  174. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +0 -1
  175. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -15
  176. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +0 -1
  177. package/dist/types/src/components/Wireframe.d.ts.map +0 -1
  178. package/src/capabilities/app-graph-builder.ts +0 -431
  179. package/src/capabilities/react-context.tsx +0 -16
  180. package/src/capabilities/react-surface.tsx +0 -418
  181. package/src/capabilities/settings.ts +0 -19
  182. package/src/components/Container.tsx +0 -15
  183. package/src/components/DebugGraph.tsx +0 -14
  184. package/src/components/DebugObjectPanel.tsx +0 -33
  185. package/src/components/DevtoolsOverviewContainer.tsx +0 -20
  186. package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -52
  187. package/src/components/SpaceGenerator/SpaceGenerator.tsx +0 -122
  188. /package/dist/types/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.d.ts +0 -0
  189. /package/dist/types/src/{components → containers/DebugStatus}/DebugStatus.d.ts +0 -0
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@dxos/plugin-debug",
3
- "version": "0.8.4-main.72ec0f3",
3
+ "version": "0.8.4-main.7996785055",
4
4
  "description": "DXOS Surface plugin for testing.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dxos/dxos"
10
+ },
7
11
  "license": "MIT",
8
12
  "author": "DXOS.org",
9
13
  "sideEffects": true,
@@ -26,84 +30,85 @@
26
30
  "dependencies": {
27
31
  "@antv/graphlib": "^2.0.4",
28
32
  "@antv/layout": "^1.2.13",
29
- "@automerge/automerge": "3.1.2",
30
- "@preact-signals/safe-react": "^0.9.0",
31
- "@preact/signals-core": "^1.12.1",
33
+ "@automerge/automerge": "3.2.3",
34
+ "@effect-atom/atom": "^0.5.1",
35
+ "@effect-atom/atom-react": "^0.5.0",
32
36
  "@tldraw/tldraw": "^3.0.0",
33
37
  "date-fns": "^3.3.1",
34
38
  "react-json-tree": "^0.18.0",
35
39
  "react-resize-detector": "^11.0.1",
36
40
  "workerize-loader": "^2.0.2",
37
- "@dxos/app-framework": "0.8.4-main.72ec0f3",
38
- "@dxos/assistant-toolkit": "0.8.4-main.72ec0f3",
39
- "@dxos/async": "0.8.4-main.72ec0f3",
40
- "@dxos/blueprints": "0.8.4-main.72ec0f3",
41
- "@dxos/compute": "0.8.4-main.72ec0f3",
42
- "@dxos/client-services": "0.8.4-main.72ec0f3",
43
- "@dxos/conductor": "0.8.4-main.72ec0f3",
44
- "@dxos/config": "0.8.4-main.72ec0f3",
45
- "@dxos/context": "0.8.4-main.72ec0f3",
46
- "@dxos/devtools": "0.8.4-main.72ec0f3",
47
- "@dxos/echo": "0.8.4-main.72ec0f3",
48
- "@dxos/echo-generator": "0.8.4-main.72ec0f3",
49
- "@dxos/echo-pipeline": "0.8.4-main.72ec0f3",
50
- "@dxos/invariant": "0.8.4-main.72ec0f3",
51
- "@dxos/keys": "0.8.4-main.72ec0f3",
52
- "@dxos/live-object": "0.8.4-main.72ec0f3",
53
- "@dxos/local-storage": "0.8.4-main.72ec0f3",
54
- "@dxos/log": "0.8.4-main.72ec0f3",
55
- "@dxos/plugin-deck": "0.8.4-main.72ec0f3",
56
- "@dxos/plugin-client": "0.8.4-main.72ec0f3",
57
- "@dxos/functions": "0.8.4-main.72ec0f3",
58
- "@dxos/plugin-graph": "0.8.4-main.72ec0f3",
59
- "@dxos/plugin-inbox": "0.8.4-main.72ec0f3",
60
- "@dxos/plugin-markdown": "0.8.4-main.72ec0f3",
61
- "@dxos/plugin-script": "0.8.4-main.72ec0f3",
62
- "@dxos/plugin-sketch": "0.8.4-main.72ec0f3",
63
- "@dxos/plugin-meeting": "0.8.4-main.72ec0f3",
64
- "@dxos/plugin-sheet": "0.8.4-main.72ec0f3",
65
- "@dxos/plugin-space": "0.8.4-main.72ec0f3",
66
- "@dxos/plugin-status-bar": "0.8.4-main.72ec0f3",
67
- "@dxos/plugin-theme": "0.8.4-main.72ec0f3",
68
- "@dxos/plugin-table": "0.8.4-main.72ec0f3",
69
- "@dxos/random": "0.8.4-main.72ec0f3",
70
- "@dxos/protocols": "0.8.4-main.72ec0f3",
71
- "@dxos/react-client": "0.8.4-main.72ec0f3",
72
- "@dxos/react-hooks": "0.8.4-main.72ec0f3",
73
- "@dxos/react-ui-attention": "0.8.4-main.72ec0f3",
74
- "@dxos/react-ui-canvas-editor": "0.8.4-main.72ec0f3",
75
- "@dxos/react-ui-stack": "0.8.4-main.72ec0f3",
76
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.72ec0f3",
77
- "@dxos/react-ui-table": "0.8.4-main.72ec0f3",
78
- "@dxos/react-ui-kanban": "0.8.4-main.72ec0f3",
79
- "@dxos/types": "0.8.4-main.72ec0f3",
80
- "@dxos/schema": "0.8.4-main.72ec0f3",
81
- "@dxos/util": "0.8.4-main.72ec0f3",
82
- "@dxos/react-ui-form": "0.8.4-main.72ec0f3",
83
- "@dxos/react-ui-canvas-compute": "0.8.4-main.72ec0f3"
41
+ "@dxos/async": "0.8.4-main.7996785055",
42
+ "@dxos/assistant-toolkit": "0.8.4-main.7996785055",
43
+ "@dxos/app-toolkit": "0.8.4-main.7996785055",
44
+ "@dxos/app-framework": "0.8.4-main.7996785055",
45
+ "@dxos/client-services": "0.8.4-main.7996785055",
46
+ "@dxos/blueprints": "0.8.4-main.7996785055",
47
+ "@dxos/compute": "0.8.4-main.7996785055",
48
+ "@dxos/config": "0.8.4-main.7996785055",
49
+ "@dxos/conductor": "0.8.4-main.7996785055",
50
+ "@dxos/context": "0.8.4-main.7996785055",
51
+ "@dxos/echo": "0.8.4-main.7996785055",
52
+ "@dxos/echo-pipeline": "0.8.4-main.7996785055",
53
+ "@dxos/effect": "0.8.4-main.7996785055",
54
+ "@dxos/functions": "0.8.4-main.7996785055",
55
+ "@dxos/invariant": "0.8.4-main.7996785055",
56
+ "@dxos/keys": "0.8.4-main.7996785055",
57
+ "@dxos/echo-generator": "0.8.4-main.7996785055",
58
+ "@dxos/log": "0.8.4-main.7996785055",
59
+ "@dxos/plugin-client": "0.8.4-main.7996785055",
60
+ "@dxos/operation": "0.8.4-main.7996785055",
61
+ "@dxos/plugin-deck": "0.8.4-main.7996785055",
62
+ "@dxos/plugin-graph": "0.8.4-main.7996785055",
63
+ "@dxos/plugin-inbox": "0.8.4-main.7996785055",
64
+ "@dxos/plugin-markdown": "0.8.4-main.7996785055",
65
+ "@dxos/plugin-meeting": "0.8.4-main.7996785055",
66
+ "@dxos/plugin-sheet": "0.8.4-main.7996785055",
67
+ "@dxos/plugin-script": "0.8.4-main.7996785055",
68
+ "@dxos/plugin-space": "0.8.4-main.7996785055",
69
+ "@dxos/plugin-sketch": "0.8.4-main.7996785055",
70
+ "@dxos/plugin-table": "0.8.4-main.7996785055",
71
+ "@dxos/plugin-status-bar": "0.8.4-main.7996785055",
72
+ "@dxos/plugin-theme": "0.8.4-main.7996785055",
73
+ "@dxos/protocols": "0.8.4-main.7996785055",
74
+ "@dxos/devtools": "0.8.4-main.7996785055",
75
+ "@dxos/random": "0.8.4-main.7996785055",
76
+ "@dxos/react-hooks": "0.8.4-main.7996785055",
77
+ "@dxos/react-ui-attention": "0.8.4-main.7996785055",
78
+ "@dxos/react-ui-canvas-compute": "0.8.4-main.7996785055",
79
+ "@dxos/react-ui-canvas-editor": "0.8.4-main.7996785055",
80
+ "@dxos/react-client": "0.8.4-main.7996785055",
81
+ "@dxos/react-ui-form": "0.8.4-main.7996785055",
82
+ "@dxos/react-ui-stack": "0.8.4-main.7996785055",
83
+ "@dxos/react-ui-mosaic": "0.8.4-main.7996785055",
84
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.7996785055",
85
+ "@dxos/schema": "0.8.4-main.7996785055",
86
+ "@dxos/util": "0.8.4-main.7996785055",
87
+ "@dxos/types": "0.8.4-main.7996785055",
88
+ "@dxos/react-ui-table": "0.8.4-main.7996785055"
84
89
  },
85
90
  "devDependencies": {
86
- "@effect-atom/atom-react": "^0.3.4",
87
- "@effect/platform": "0.92.1",
88
- "@types/react": "~19.2.2",
89
- "@types/react-dom": "~19.2.2",
90
- "effect": "3.18.3",
91
- "react": "~19.2.0",
92
- "react-dom": "~19.2.0",
93
- "vite": "7.1.9",
94
- "@dxos/react-ui": "0.8.4-main.72ec0f3",
95
- "@dxos/react-ui-theme": "0.8.4-main.72ec0f3",
96
- "@dxos/storybook-utils": "0.8.4-main.72ec0f3"
91
+ "@effect-atom/atom-react": "^0.5.0",
92
+ "@effect/platform": "0.94.4",
93
+ "@types/react": "~19.2.7",
94
+ "@types/react-dom": "~19.2.3",
95
+ "effect": "3.20.0",
96
+ "react": "~19.2.3",
97
+ "react-dom": "~19.2.3",
98
+ "vite": "^7.1.11",
99
+ "@dxos/react-ui": "0.8.4-main.7996785055",
100
+ "@dxos/storybook-utils": "0.8.4-main.7996785055",
101
+ "@dxos/ui-theme": "0.8.4-main.7996785055"
97
102
  },
98
103
  "peerDependencies": {
99
- "@effect-atom/atom-react": "^0.3.4",
100
- "@effect/platform": "^0.80.12",
101
- "effect": "^3.13.3",
102
- "react": "~19.2.0",
103
- "react-dom": "~19.2.0",
104
- "@dxos/random": "0.8.4-main.72ec0f3",
105
- "@dxos/react-ui": "0.8.4-main.72ec0f3",
106
- "@dxos/react-ui-theme": "0.8.4-main.72ec0f3"
104
+ "@effect-atom/atom-react": "^0.5.0",
105
+ "@effect/platform": "0.94.4",
106
+ "effect": "3.20.0",
107
+ "react": "~19.2.3",
108
+ "react-dom": "~19.2.3",
109
+ "@dxos/random": "0.8.4-main.7996785055",
110
+ "@dxos/ui-theme": "0.8.4-main.7996785055",
111
+ "@dxos/react-ui": "0.8.4-main.7996785055"
107
112
  },
108
113
  "publishConfig": {
109
114
  "access": "public"
@@ -2,44 +2,40 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Capabilities, Events, contributes, defineModule, definePlugin } from '@dxos/app-framework';
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { ActivationEvents, Capability, Plugin } from '@dxos/app-framework';
8
+ import { AppPlugin } from '@dxos/app-toolkit';
9
+ import { type LogBuffer } from '@dxos/log';
6
10
  import { type Client } from '@dxos/react-client';
7
11
 
8
12
  import { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from './capabilities';
9
13
  import { meta } from './meta';
10
14
  import { translations } from './translations';
11
15
 
16
+ export type DebugPluginOptions = {
17
+ /** Shared log buffer for capturing and downloading logs. */
18
+ logBuffer: LogBuffer;
19
+ };
20
+
12
21
  // TODO(wittjosiah): Factor out DevtoolsPlugin?
13
- export const DebugPlugin = definePlugin(meta, () => {
14
- setupDevtools();
15
- return [
16
- defineModule({
17
- id: `${meta.id}/module/settings`,
18
- activatesOn: Events.SetupSettings,
19
- activate: DebugSettings,
20
- }),
21
- defineModule({
22
- id: `${meta.id}/module/translations`,
23
- activatesOn: Events.SetupTranslations,
24
- activate: () => contributes(Capabilities.Translations, translations),
25
- }),
26
- defineModule({
27
- id: `${meta.id}/module/react-context`,
28
- activatesOn: Events.Startup,
29
- activate: ReactContext,
30
- }),
31
- defineModule({
32
- id: `${meta.id}/module/react-surface`,
33
- activatesOn: Events.SetupReactSurface,
34
- activate: ReactSurface,
35
- }),
36
- defineModule({
37
- id: `${meta.id}/module/app-graph-builder`,
38
- activatesOn: Events.SetupAppGraph,
39
- activate: AppGraphBuilder,
40
- }),
41
- ];
42
- });
22
+ export const DebugPlugin = Plugin.define<DebugPluginOptions>(meta).pipe(
23
+ AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
24
+ AppPlugin.addReactContextModule({ activate: ReactContext }),
25
+ AppPlugin.addSettingsModule({ activate: DebugSettings }),
26
+ Plugin.addModule(({ logBuffer }) => ({
27
+ id: Capability.getModuleTag(ReactSurface) ?? 'surfaces',
28
+ activatesOn: ActivationEvents.SetupReactSurface,
29
+ activate: () => ReactSurface({ logBuffer }),
30
+ })),
31
+ AppPlugin.addTranslationsModule({ translations }),
32
+ Plugin.addModule({
33
+ id: 'setup-devtools',
34
+ activatesOn: ActivationEvents.Startup,
35
+ activate: () => Effect.sync(() => setupDevtools()),
36
+ }),
37
+ Plugin.make,
38
+ );
43
39
 
44
40
  const setupDevtools = () => {
45
41
  (globalThis as any).composer ??= {};
@@ -0,0 +1,419 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { AppCapabilities, getSpaceIdFromPath } from '@dxos/app-toolkit';
9
+ import { ClientCapabilities } from '@dxos/plugin-client';
10
+ import { DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
11
+ import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
12
+ import { meta as spaceMeta } from '@dxos/plugin-space';
13
+
14
+ import { meta } from '../../meta';
15
+ import { Devtools } from '../../types';
16
+ import { getParentId } from '@dxos/react-ui-attention';
17
+
18
+ const DEVTOOLS_TYPE = `${meta.id}.devtools`;
19
+
20
+ export default Capability.makeModule(
21
+ Effect.fnUntraced(function* () {
22
+ const extensions = yield* Effect.all([
23
+ // Devtools node.
24
+ GraphBuilder.createExtension({
25
+ id: `${meta.id}.devtools`,
26
+ match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`)),
27
+ connector: (node, get) =>
28
+ Effect.gen(function* () {
29
+ const client = yield* Capability.get(ClientCapabilities.Client);
30
+ const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
31
+ const layout = layoutAtom ? get(layoutAtom) : undefined;
32
+ const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : undefined;
33
+ const space = spaceId ? client.spaces.get(spaceId) : undefined;
34
+ const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
35
+
36
+ return [
37
+ {
38
+ id: Devtools.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',
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',
63
+ type: `${meta.id}.app-graph`,
64
+ data: { graph: graph?.graph, root: node.id === Node.RootId ? node.id : getParentId(node.id) },
65
+ properties: {
66
+ label: ['debug app graph label', { ns: meta.id }],
67
+ icon: 'ph--graph--regular',
68
+ },
69
+ },
70
+ {
71
+ id: Devtools.Client.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,
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,
90
+ data: Devtools.Client.Storage,
91
+ type: DEVTOOLS_TYPE,
92
+ properties: {
93
+ label: ['storage label', { ns: meta.id }],
94
+ icon: 'ph--hard-drives--regular',
95
+ },
96
+ },
97
+ {
98
+ id: Devtools.Client.Logs,
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
+ },
105
+ },
106
+ {
107
+ id: Devtools.Client.Diagnostics,
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
+ },
114
+ },
115
+ {
116
+ id: Devtools.Client.Tracing,
117
+ data: Devtools.Client.Tracing,
118
+ type: DEVTOOLS_TYPE,
119
+ properties: {
120
+ label: ['tracing label', { ns: meta.id }],
121
+ icon: 'ph--fire--regular',
122
+ },
123
+ },
124
+ ],
125
+ },
126
+ {
127
+ id: Devtools.Halo.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,
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
+ },
143
+ },
144
+ {
145
+ id: Devtools.Halo.Devices,
146
+ data: Devtools.Halo.Devices,
147
+ type: DEVTOOLS_TYPE,
148
+ properties: {
149
+ label: ['devices label', { ns: meta.id }],
150
+ icon: 'ph--devices--regular',
151
+ },
152
+ },
153
+ {
154
+ id: Devtools.Halo.Keyring,
155
+ data: Devtools.Halo.Keyring,
156
+ type: DEVTOOLS_TYPE,
157
+ properties: {
158
+ label: ['keyring label', { ns: meta.id }],
159
+ icon: 'ph--key--regular',
160
+ },
161
+ },
162
+ {
163
+ id: Devtools.Halo.Credentials,
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
+ },
170
+ },
171
+ ],
172
+ },
173
+ {
174
+ id: Devtools.Echo.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,
184
+ data: Devtools.Echo.Spaces,
185
+ type: DEVTOOLS_TYPE,
186
+ properties: {
187
+ label: ['spaces label', { ns: meta.id }],
188
+ icon: 'ph--graph--regular',
189
+ },
190
+ },
191
+ {
192
+ id: Devtools.Echo.Space,
193
+ data: Devtools.Echo.Space,
194
+ type: DEVTOOLS_TYPE,
195
+ properties: {
196
+ label: ['space label', { ns: meta.id }],
197
+ icon: 'ph--planet--regular',
198
+ },
199
+ },
200
+ {
201
+ id: Devtools.Echo.Feeds,
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
+ },
208
+ },
209
+ {
210
+ id: Devtools.Echo.Objects,
211
+ data: Devtools.Echo.Objects,
212
+ type: DEVTOOLS_TYPE,
213
+ properties: {
214
+ label: ['objects label', { ns: meta.id }],
215
+ icon: 'ph--cube--regular',
216
+ },
217
+ },
218
+ {
219
+ id: Devtools.Echo.Schema,
220
+ data: Devtools.Echo.Schema,
221
+ type: DEVTOOLS_TYPE,
222
+ properties: {
223
+ label: ['schema label', { ns: meta.id }],
224
+ icon: 'ph--database--regular',
225
+ },
226
+ },
227
+ {
228
+ id: Devtools.Echo.Automerge,
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
+ },
235
+ },
236
+ {
237
+ id: Devtools.Echo.Queues,
238
+ data: Devtools.Echo.Queues,
239
+ type: DEVTOOLS_TYPE,
240
+ properties: {
241
+ label: ['queues label', { ns: meta.id }],
242
+ icon: 'ph--queue--regular',
243
+ },
244
+ },
245
+ {
246
+ id: Devtools.Echo.Members,
247
+ data: Devtools.Echo.Members,
248
+ type: DEVTOOLS_TYPE,
249
+ properties: {
250
+ label: ['members label', { ns: meta.id }],
251
+ icon: 'ph--users--regular',
252
+ },
253
+ },
254
+ {
255
+ id: Devtools.Echo.Metadata,
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
+ },
262
+ },
263
+ ],
264
+ },
265
+ {
266
+ id: Devtools.Mesh.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,
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
+ },
282
+ },
283
+ {
284
+ id: Devtools.Mesh.Swarm,
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
+ },
291
+ },
292
+ {
293
+ id: Devtools.Mesh.Network,
294
+ data: Devtools.Mesh.Network,
295
+ type: DEVTOOLS_TYPE,
296
+ properties: {
297
+ label: ['network label', { ns: meta.id }],
298
+ icon: 'ph--polygon--regular',
299
+ },
300
+ },
301
+ ],
302
+ },
303
+ {
304
+ id: Devtools.Edge.id,
305
+ data: null,
306
+ type: DEVTOOLS_TYPE,
307
+ properties: {
308
+ label: ['edge label', { ns: meta.id }],
309
+ icon: 'ph--cloud--regular',
310
+ },
311
+ nodes: [
312
+ {
313
+ id: Devtools.Edge.Dashboard,
314
+ data: Devtools.Edge.Dashboard,
315
+ type: DEVTOOLS_TYPE,
316
+ properties: {
317
+ label: ['dashboard label', { ns: meta.id }],
318
+ icon: 'ph--computer-tower--regular',
319
+ },
320
+ },
321
+ {
322
+ id: Devtools.Edge.Workflows,
323
+ data: Devtools.Edge.Workflows,
324
+ type: DEVTOOLS_TYPE,
325
+ properties: {
326
+ label: ['workflows label', { ns: meta.id }],
327
+ icon: 'ph--function--regular',
328
+ },
329
+ },
330
+ {
331
+ id: Devtools.Edge.Traces,
332
+ data: Devtools.Edge.Traces,
333
+ type: DEVTOOLS_TYPE,
334
+ properties: {
335
+ label: ['traces label', { ns: meta.id }],
336
+ icon: 'ph--line-segments--regular',
337
+ },
338
+ },
339
+ {
340
+ id: Devtools.Edge.Testing,
341
+ data: Devtools.Edge.Testing,
342
+ type: DEVTOOLS_TYPE,
343
+ properties: {
344
+ label: ['testing label', { ns: meta.id }],
345
+ icon: 'ph--flask--regular',
346
+ },
347
+ },
348
+ ],
349
+ },
350
+ ],
351
+ },
352
+ ];
353
+ }),
354
+ }),
355
+
356
+ // Debug object companion.
357
+ GraphBuilder.createExtension({
358
+ id: `${meta.id}.debug-object`,
359
+ match: NodeMatcher.whenEchoObject,
360
+ connector: () =>
361
+ Effect.succeed([
362
+ {
363
+ id: 'debug',
364
+ type: PLANK_COMPANION_TYPE,
365
+ data: 'debug',
366
+ properties: {
367
+ label: ['debug label', { ns: meta.id }],
368
+ icon: 'ph--bug--regular',
369
+ disposition: 'hidden',
370
+ position: 'fallback',
371
+ },
372
+ },
373
+ ]),
374
+ }),
375
+
376
+ // Devtools deck companion.
377
+ GraphBuilder.createExtension({
378
+ id: `${meta.id}.devtools-overview`,
379
+ match: NodeMatcher.whenRoot,
380
+ connector: () =>
381
+ Effect.succeed([
382
+ {
383
+ id: 'devtools',
384
+ type: DECK_COMPANION_TYPE,
385
+ data: 'devtools' as const,
386
+ properties: {
387
+ label: ['devtools overview label', { ns: meta.id }],
388
+ icon: 'ph--equalizer--regular',
389
+ disposition: 'hidden',
390
+ position: 'fallback',
391
+ },
392
+ },
393
+ ]),
394
+ }),
395
+
396
+ // Object explorer.
397
+ GraphBuilder.createExtension({
398
+ id: `${meta.id}.space-objects`,
399
+ match: NodeMatcher.whenRoot,
400
+ connector: () =>
401
+ Effect.succeed([
402
+ {
403
+ id: 'space-objects',
404
+ type: DECK_COMPANION_TYPE,
405
+ data: 'space-objects' as const,
406
+ properties: {
407
+ label: ['space objects label', { ns: meta.id }],
408
+ icon: 'ph--cube--regular',
409
+ disposition: 'hidden',
410
+ position: 'fallback',
411
+ },
412
+ },
413
+ ]),
414
+ }),
415
+ ]);
416
+
417
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
418
+ }),
419
+ );
@@ -0,0 +1,7 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Capability } from '@dxos/app-framework';
6
+
7
+ export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));