@dxos/plugin-debug 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6

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 (164) hide show
  1. package/dist/lib/browser/index.mjs +97 -91
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/types/src/DebugPlugin.d.ts +6 -1
  5. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  6. package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
  7. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  8. package/dist/types/src/capabilities/index.d.ts +15 -4
  9. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  10. package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +1 -1
  11. package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
  12. package/dist/types/src/capabilities/react-surface.d.ts +9 -0
  13. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  14. package/dist/types/src/capabilities/settings.d.ts +10 -0
  15. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  16. package/dist/types/src/components/DebugSettings/DebugSettings.d.ts +11 -0
  17. package/dist/types/src/components/DebugSettings/DebugSettings.d.ts.map +1 -0
  18. package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts +79 -0
  19. package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts.map +1 -0
  20. package/dist/types/src/components/DebugSettings/index.d.ts +3 -0
  21. package/dist/types/src/components/DebugSettings/index.d.ts.map +1 -0
  22. package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -0
  23. package/dist/types/src/components/SchemaTable/index.d.ts +2 -0
  24. package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -0
  25. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +1 -1
  26. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  27. package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
  28. package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
  29. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  30. package/dist/types/src/components/index.d.ts +4 -10
  31. package/dist/types/src/components/index.d.ts.map +1 -1
  32. package/dist/types/src/{components → containers/DebugGraph}/DebugGraph.d.ts +0 -1
  33. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
  34. package/dist/types/src/containers/DebugGraph/index.d.ts +3 -0
  35. package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
  36. package/dist/types/src/{components → containers/DebugObjectPanel}/DebugObjectPanel.d.ts +1 -1
  37. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
  38. package/dist/types/src/containers/DebugObjectPanel/index.d.ts +3 -0
  39. package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
  40. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +3 -0
  41. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
  42. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +3 -0
  43. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -0
  44. package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -0
  45. package/dist/types/src/containers/DebugStatus/index.d.ts +3 -0
  46. package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -0
  47. package/dist/types/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.d.ts +0 -1
  48. package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
  49. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +3 -0
  50. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
  51. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts +15 -0
  52. package/dist/types/src/{components → containers}/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
  53. package/dist/types/src/containers/SpaceGenerator/index.d.ts +3 -0
  54. package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -0
  55. package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -0
  56. package/dist/types/src/containers/Wireframe/index.d.ts +3 -0
  57. package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
  58. package/dist/types/src/containers/index.d.ts +9 -0
  59. package/dist/types/src/containers/index.d.ts.map +1 -0
  60. package/dist/types/src/translations.d.ts +60 -58
  61. package/dist/types/src/translations.d.ts.map +1 -1
  62. package/dist/types/src/types/Settings.d.ts +6 -0
  63. package/dist/types/src/types/Settings.d.ts.map +1 -0
  64. package/dist/types/src/types/index.d.ts +67 -0
  65. package/dist/types/src/types/index.d.ts.map +1 -0
  66. package/dist/types/tsconfig.tsbuildinfo +1 -1
  67. package/package.json +74 -67
  68. package/src/DebugPlugin.tsx +23 -10
  69. package/src/capabilities/app-graph-builder.ts +406 -0
  70. package/src/capabilities/index.ts +6 -4
  71. package/src/capabilities/react-context.tsx +25 -0
  72. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +122 -109
  73. package/src/capabilities/{settings/settings.ts → settings.ts} +7 -6
  74. package/src/components/DebugSettings/DebugSettings.stories.tsx +36 -0
  75. package/src/components/DebugSettings/DebugSettings.tsx +228 -0
  76. package/src/components/DebugSettings/index.ts +7 -0
  77. package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +2 -2
  78. package/src/components/SchemaTable/index.ts +5 -0
  79. package/src/components/SpaceGenerator/ObjectGenerator.tsx +7 -8
  80. package/src/components/SpaceGenerator/index.ts +2 -3
  81. package/src/components/SpaceGenerator/presets.ts +51 -46
  82. package/src/components/index.ts +4 -11
  83. package/src/{components → containers/DebugGraph}/DebugGraph.tsx +0 -2
  84. package/src/containers/DebugGraph/index.ts +7 -0
  85. package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +47 -0
  86. package/src/containers/DebugObjectPanel/index.ts +7 -0
  87. package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +55 -0
  88. package/src/containers/DebugSpaceObjectsPanel/index.ts +7 -0
  89. package/src/{components → containers/DebugStatus}/DebugStatus.tsx +41 -17
  90. package/src/containers/DebugStatus/index.ts +7 -0
  91. package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +25 -0
  92. package/src/containers/DevtoolsOverviewContainer/index.ts +7 -0
  93. package/src/containers/SpaceGenerator/SpaceGenerator.tsx +130 -0
  94. package/src/containers/SpaceGenerator/index.ts +7 -0
  95. package/src/{components → containers/Wireframe}/Wireframe.tsx +2 -2
  96. package/src/containers/Wireframe/index.ts +7 -0
  97. package/src/containers/index.ts +13 -0
  98. package/src/meta.ts +1 -1
  99. package/src/translations.ts +66 -58
  100. package/src/types/Settings.ts +15 -0
  101. package/src/{types.ts → types/index.ts} +7 -13
  102. package/dist/lib/browser/DebugGraph-6VMEOKEV.mjs +0 -15
  103. package/dist/lib/browser/DebugGraph-6VMEOKEV.mjs.map +0 -7
  104. package/dist/lib/browser/DevtoolsOverviewContainer-77PKFLYV.mjs +0 -19
  105. package/dist/lib/browser/DevtoolsOverviewContainer-77PKFLYV.mjs.map +0 -7
  106. package/dist/lib/browser/SpaceGenerator-H33AEFGC.mjs +0 -1152
  107. package/dist/lib/browser/SpaceGenerator-H33AEFGC.mjs.map +0 -7
  108. package/dist/lib/browser/app-graph-builder-LV73R7HR.mjs +0 -598
  109. package/dist/lib/browser/app-graph-builder-LV73R7HR.mjs.map +0 -7
  110. package/dist/lib/browser/chunk-4UFQXPP7.mjs +0 -78
  111. package/dist/lib/browser/chunk-4UFQXPP7.mjs.map +0 -7
  112. package/dist/lib/browser/chunk-A5H5GRV6.mjs +0 -20
  113. package/dist/lib/browser/chunk-A5H5GRV6.mjs.map +0 -7
  114. package/dist/lib/browser/react-context-FSWBT3MH.mjs +0 -17
  115. package/dist/lib/browser/react-context-FSWBT3MH.mjs.map +0 -7
  116. package/dist/lib/browser/react-surface-2N6CPSHR.mjs +0 -757
  117. package/dist/lib/browser/react-surface-2N6CPSHR.mjs.map +0 -7
  118. package/dist/lib/browser/settings-KA4GN73K.mjs +0 -31
  119. package/dist/lib/browser/settings-KA4GN73K.mjs.map +0 -7
  120. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
  121. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  122. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  123. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  124. package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
  125. package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
  126. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
  127. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  128. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  129. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
  130. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  131. package/dist/types/src/capabilities/settings/index.d.ts +0 -3
  132. package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
  133. package/dist/types/src/capabilities/settings/settings.d.ts +0 -5
  134. package/dist/types/src/capabilities/settings/settings.d.ts.map +0 -1
  135. package/dist/types/src/components/Container.d.ts +0 -5
  136. package/dist/types/src/components/Container.d.ts.map +0 -1
  137. package/dist/types/src/components/DebugGraph.d.ts.map +0 -1
  138. package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
  139. package/dist/types/src/components/DebugSettings.d.ts +0 -8
  140. package/dist/types/src/components/DebugSettings.d.ts.map +0 -1
  141. package/dist/types/src/components/DebugStatus.d.ts.map +0 -1
  142. package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
  143. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +0 -1
  144. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts +0 -9
  145. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -15
  146. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +0 -1
  147. package/dist/types/src/components/Wireframe.d.ts.map +0 -1
  148. package/dist/types/src/types.d.ts +0 -68
  149. package/dist/types/src/types.d.ts.map +0 -1
  150. package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -420
  151. package/src/capabilities/app-graph-builder/index.ts +0 -7
  152. package/src/capabilities/react-context/index.ts +0 -7
  153. package/src/capabilities/react-context/react-context.tsx +0 -20
  154. package/src/capabilities/react-surface/index.ts +0 -7
  155. package/src/capabilities/settings/index.ts +0 -7
  156. package/src/components/Container.tsx +0 -15
  157. package/src/components/DebugObjectPanel.tsx +0 -33
  158. package/src/components/DebugSettings.tsx +0 -185
  159. package/src/components/DevtoolsOverviewContainer.tsx +0 -20
  160. package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -54
  161. package/src/components/SpaceGenerator/SpaceGenerator.tsx +0 -127
  162. /package/dist/types/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.d.ts +0 -0
  163. /package/dist/types/src/{components → containers/DebugStatus}/DebugStatus.d.ts +0 -0
  164. /package/dist/types/src/{components → containers/Wireframe}/Wireframe.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-debug",
3
- "version": "0.8.4-main.bc674ce",
3
+ "version": "0.8.4-main.bcb3aa67d6",
4
4
  "description": "DXOS Surface plugin for testing.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -12,11 +12,18 @@
12
12
  "author": "DXOS.org",
13
13
  "sideEffects": true,
14
14
  "type": "module",
15
+ "imports": {
16
+ "#capabilities": "./src/capabilities/index.ts",
17
+ "#components": "./src/components/index.ts",
18
+ "#containers": "./src/containers/index.ts",
19
+ "#meta": "./src/meta.ts",
20
+ "#types": "./src/types/index.ts"
21
+ },
15
22
  "exports": {
16
23
  ".": {
17
- "browser": "./dist/lib/browser/index.mjs",
18
24
  "source": "./src/index.ts",
19
- "types": "./dist/types/src/index.d.ts"
25
+ "types": "./dist/types/src/index.d.ts",
26
+ "browser": "./dist/lib/browser/index.mjs"
20
27
  }
21
28
  },
22
29
  "types": "dist/types/src/index.d.ts",
@@ -31,84 +38,84 @@
31
38
  "@antv/graphlib": "^2.0.4",
32
39
  "@antv/layout": "^1.2.13",
33
40
  "@automerge/automerge": "3.2.3",
34
- "@effect-atom/atom": "^0.4.13",
35
- "@effect-atom/atom-react": "^0.4.6",
41
+ "@effect-atom/atom": "^0.5.1",
42
+ "@effect-atom/atom-react": "^0.5.0",
36
43
  "@tldraw/tldraw": "^3.0.0",
37
- "date-fns": "^3.3.1",
44
+ "date-fns": "^3.6.0",
38
45
  "react-json-tree": "^0.18.0",
39
46
  "react-resize-detector": "^11.0.1",
40
47
  "workerize-loader": "^2.0.2",
41
- "@dxos/assistant-toolkit": "0.8.4-main.bc674ce",
42
- "@dxos/app-framework": "0.8.4-main.bc674ce",
43
- "@dxos/blueprints": "0.8.4-main.bc674ce",
44
- "@dxos/client-services": "0.8.4-main.bc674ce",
45
- "@dxos/async": "0.8.4-main.bc674ce",
46
- "@dxos/compute": "0.8.4-main.bc674ce",
47
- "@dxos/conductor": "0.8.4-main.bc674ce",
48
- "@dxos/config": "0.8.4-main.bc674ce",
49
- "@dxos/context": "0.8.4-main.bc674ce",
50
- "@dxos/devtools": "0.8.4-main.bc674ce",
51
- "@dxos/echo-generator": "0.8.4-main.bc674ce",
52
- "@dxos/echo": "0.8.4-main.bc674ce",
53
- "@dxos/effect": "0.8.4-main.bc674ce",
54
- "@dxos/echo-pipeline": "0.8.4-main.bc674ce",
55
- "@dxos/functions": "0.8.4-main.bc674ce",
56
- "@dxos/keys": "0.8.4-main.bc674ce",
57
- "@dxos/log": "0.8.4-main.bc674ce",
58
- "@dxos/invariant": "0.8.4-main.bc674ce",
59
- "@dxos/operation": "0.8.4-main.bc674ce",
60
- "@dxos/plugin-client": "0.8.4-main.bc674ce",
61
- "@dxos/plugin-deck": "0.8.4-main.bc674ce",
62
- "@dxos/plugin-graph": "0.8.4-main.bc674ce",
63
- "@dxos/plugin-meeting": "0.8.4-main.bc674ce",
64
- "@dxos/plugin-inbox": "0.8.4-main.bc674ce",
65
- "@dxos/plugin-script": "0.8.4-main.bc674ce",
66
- "@dxos/plugin-markdown": "0.8.4-main.bc674ce",
67
- "@dxos/plugin-sheet": "0.8.4-main.bc674ce",
68
- "@dxos/plugin-sketch": "0.8.4-main.bc674ce",
69
- "@dxos/plugin-status-bar": "0.8.4-main.bc674ce",
70
- "@dxos/plugin-space": "0.8.4-main.bc674ce",
71
- "@dxos/plugin-table": "0.8.4-main.bc674ce",
72
- "@dxos/plugin-theme": "0.8.4-main.bc674ce",
73
- "@dxos/protocols": "0.8.4-main.bc674ce",
74
- "@dxos/react-client": "0.8.4-main.bc674ce",
75
- "@dxos/random": "0.8.4-main.bc674ce",
76
- "@dxos/react-hooks": "0.8.4-main.bc674ce",
77
- "@dxos/react-ui-canvas-compute": "0.8.4-main.bc674ce",
78
- "@dxos/react-ui-attention": "0.8.4-main.bc674ce",
79
- "@dxos/react-ui-canvas-editor": "0.8.4-main.bc674ce",
80
- "@dxos/react-ui-kanban": "0.8.4-main.bc674ce",
81
- "@dxos/react-ui-stack": "0.8.4-main.bc674ce",
82
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.bc674ce",
83
- "@dxos/react-ui-form": "0.8.4-main.bc674ce",
84
- "@dxos/react-ui-mosaic": "0.8.4-main.bc674ce",
85
- "@dxos/react-ui-table": "0.8.4-main.bc674ce",
86
- "@dxos/types": "0.8.4-main.bc674ce",
87
- "@dxos/util": "0.8.4-main.bc674ce",
88
- "@dxos/schema": "0.8.4-main.bc674ce"
48
+ "@dxos/app-framework": "0.8.4-main.bcb3aa67d6",
49
+ "@dxos/app-toolkit": "0.8.4-main.bcb3aa67d6",
50
+ "@dxos/assistant-toolkit": "0.8.4-main.bcb3aa67d6",
51
+ "@dxos/blueprints": "0.8.4-main.bcb3aa67d6",
52
+ "@dxos/async": "0.8.4-main.bcb3aa67d6",
53
+ "@dxos/client-services": "0.8.4-main.bcb3aa67d6",
54
+ "@dxos/compute": "0.8.4-main.bcb3aa67d6",
55
+ "@dxos/conductor": "0.8.4-main.bcb3aa67d6",
56
+ "@dxos/config": "0.8.4-main.bcb3aa67d6",
57
+ "@dxos/context": "0.8.4-main.bcb3aa67d6",
58
+ "@dxos/devtools": "0.8.4-main.bcb3aa67d6",
59
+ "@dxos/echo": "0.8.4-main.bcb3aa67d6",
60
+ "@dxos/echo-generator": "0.8.4-main.bcb3aa67d6",
61
+ "@dxos/echo-pipeline": "0.8.4-main.bcb3aa67d6",
62
+ "@dxos/effect": "0.8.4-main.bcb3aa67d6",
63
+ "@dxos/functions": "0.8.4-main.bcb3aa67d6",
64
+ "@dxos/invariant": "0.8.4-main.bcb3aa67d6",
65
+ "@dxos/keys": "0.8.4-main.bcb3aa67d6",
66
+ "@dxos/log": "0.8.4-main.bcb3aa67d6",
67
+ "@dxos/operation": "0.8.4-main.bcb3aa67d6",
68
+ "@dxos/plugin-client": "0.8.4-main.bcb3aa67d6",
69
+ "@dxos/plugin-graph": "0.8.4-main.bcb3aa67d6",
70
+ "@dxos/plugin-deck": "0.8.4-main.bcb3aa67d6",
71
+ "@dxos/plugin-inbox": "0.8.4-main.bcb3aa67d6",
72
+ "@dxos/plugin-markdown": "0.8.4-main.bcb3aa67d6",
73
+ "@dxos/plugin-meeting": "0.8.4-main.bcb3aa67d6",
74
+ "@dxos/plugin-script": "0.8.4-main.bcb3aa67d6",
75
+ "@dxos/plugin-sheet": "0.8.4-main.bcb3aa67d6",
76
+ "@dxos/plugin-space": "0.8.4-main.bcb3aa67d6",
77
+ "@dxos/plugin-status-bar": "0.8.4-main.bcb3aa67d6",
78
+ "@dxos/plugin-sketch": "0.8.4-main.bcb3aa67d6",
79
+ "@dxos/plugin-table": "0.8.4-main.bcb3aa67d6",
80
+ "@dxos/protocols": "0.8.4-main.bcb3aa67d6",
81
+ "@dxos/random": "0.8.4-main.bcb3aa67d6",
82
+ "@dxos/react-client": "0.8.4-main.bcb3aa67d6",
83
+ "@dxos/react-hooks": "0.8.4-main.bcb3aa67d6",
84
+ "@dxos/react-ui-canvas-compute": "0.8.4-main.bcb3aa67d6",
85
+ "@dxos/react-ui-attention": "0.8.4-main.bcb3aa67d6",
86
+ "@dxos/plugin-theme": "0.8.4-main.bcb3aa67d6",
87
+ "@dxos/react-ui-canvas-editor": "0.8.4-main.bcb3aa67d6",
88
+ "@dxos/react-ui-form": "0.8.4-main.bcb3aa67d6",
89
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.bcb3aa67d6",
90
+ "@dxos/schema": "0.8.4-main.bcb3aa67d6",
91
+ "@dxos/react-ui-stack": "0.8.4-main.bcb3aa67d6",
92
+ "@dxos/react-ui-mosaic": "0.8.4-main.bcb3aa67d6",
93
+ "@dxos/react-ui-table": "0.8.4-main.bcb3aa67d6",
94
+ "@dxos/util": "0.8.4-main.bcb3aa67d6",
95
+ "@dxos/types": "0.8.4-main.bcb3aa67d6"
89
96
  },
90
97
  "devDependencies": {
91
- "@effect-atom/atom-react": "^0.4.6",
92
- "@effect/platform": "0.93.6",
98
+ "@effect-atom/atom-react": "^0.5.0",
99
+ "@effect/platform": "0.94.4",
93
100
  "@types/react": "~19.2.7",
94
101
  "@types/react-dom": "~19.2.3",
95
- "effect": "3.19.11",
102
+ "effect": "3.20.0",
96
103
  "react": "~19.2.3",
97
104
  "react-dom": "~19.2.3",
98
- "vite": "7.1.9",
99
- "@dxos/react-ui": "0.8.4-main.bc674ce",
100
- "@dxos/ui-theme": "0.8.4-main.bc674ce",
101
- "@dxos/storybook-utils": "0.8.4-main.bc674ce"
105
+ "vite": "^7.1.11",
106
+ "@dxos/storybook-utils": "0.8.4-main.bcb3aa67d6",
107
+ "@dxos/react-ui": "0.8.4-main.bcb3aa67d6",
108
+ "@dxos/ui-theme": "0.8.4-main.bcb3aa67d6"
102
109
  },
103
110
  "peerDependencies": {
104
- "@effect-atom/atom-react": "^0.4.6",
105
- "@effect/platform": "0.93.6",
106
- "effect": "3.19.11",
111
+ "@effect-atom/atom-react": "^0.5.0",
112
+ "@effect/platform": "0.94.4",
113
+ "effect": "3.20.0",
107
114
  "react": "~19.2.3",
108
115
  "react-dom": "~19.2.3",
109
- "@dxos/ui-theme": "0.8.4-main.bc674ce",
110
- "@dxos/react-ui": "0.8.4-main.bc674ce",
111
- "@dxos/random": "0.8.4-main.bc674ce"
116
+ "@dxos/random": "0.8.4-main.bcb3aa67d6",
117
+ "@dxos/react-ui": "0.8.4-main.bcb3aa67d6",
118
+ "@dxos/ui-theme": "0.8.4-main.bcb3aa67d6"
112
119
  },
113
120
  "publishConfig": {
114
121
  "access": "public"
@@ -4,25 +4,38 @@
4
4
 
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
- import { Common, Plugin } from '@dxos/app-framework';
7
+ import { ActivationEvents, Capability, Plugin } from '@dxos/app-framework';
8
+ import { AppPlugin } from '@dxos/app-toolkit';
9
+ import { type LogBuffer } from '@dxos/log';
8
10
  import { type Client } from '@dxos/react-client';
9
11
 
10
- import { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from './capabilities';
11
- import { meta } from './meta';
12
+ import { meta } from '#meta';
12
13
  import { translations } from './translations';
13
14
 
15
+ import { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from '#capabilities';
16
+
17
+ export type DebugPluginOptions = {
18
+ /** Shared log buffer for capturing and downloading logs. */
19
+ logBuffer: LogBuffer;
20
+ };
21
+
14
22
  // TODO(wittjosiah): Factor out DevtoolsPlugin?
15
- export const DebugPlugin = Plugin.define(meta).pipe(
23
+
24
+ export const DebugPlugin = Plugin.define<DebugPluginOptions>(meta).pipe(
25
+ AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
26
+ AppPlugin.addReactContextModule({ activate: ReactContext }),
27
+ AppPlugin.addSettingsModule({ activate: DebugSettings }),
28
+ Plugin.addModule(({ logBuffer }) => ({
29
+ id: Capability.getModuleTag(ReactSurface) ?? 'surfaces',
30
+ activatesOn: ActivationEvents.SetupReactSurface,
31
+ activate: () => ReactSurface({ logBuffer }),
32
+ })),
33
+ AppPlugin.addTranslationsModule({ translations }),
16
34
  Plugin.addModule({
17
35
  id: 'setup-devtools',
18
- activatesOn: Common.ActivationEvent.Startup,
36
+ activatesOn: ActivationEvents.Startup,
19
37
  activate: () => Effect.sync(() => setupDevtools()),
20
38
  }),
21
- Common.Plugin.addSettingsModule({ activate: DebugSettings }),
22
- Common.Plugin.addTranslationsModule({ translations }),
23
- Common.Plugin.addReactContextModule({ activate: ReactContext }),
24
- Common.Plugin.addSurfaceModule({ activate: ReactSurface }),
25
- Common.Plugin.addAppGraphModule({ activate: AppGraphBuilder }),
26
39
  Plugin.make,
27
40
  );
28
41
 
@@ -0,0 +1,406 @@
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, AppNode, getSpaceIdFromPath } from '@dxos/app-toolkit';
9
+ import { ClientCapabilities } from '@dxos/plugin-client/types';
10
+ import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
11
+ import { meta as spaceMeta } from '@dxos/plugin-space/meta';
12
+
13
+ import { meta } from '#meta';
14
+ import { Devtools } from '#types';
15
+ import { getParentId } from '@dxos/react-ui-attention';
16
+
17
+ const DEVTOOLS_TYPE = `${meta.id}.devtools`;
18
+
19
+ export default Capability.makeModule(
20
+ Effect.fnUntraced(function* () {
21
+ const extensions = yield* Effect.all([
22
+ // Devtools node.
23
+ GraphBuilder.createExtension({
24
+ id: `${meta.id}.devtools`,
25
+ match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`)),
26
+ connector: (node, get) =>
27
+ Effect.gen(function* () {
28
+ const client = yield* Capability.get(ClientCapabilities.Client);
29
+ const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
30
+ const layout = layoutAtom ? get(layoutAtom) : undefined;
31
+ const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : undefined;
32
+ const space = spaceId ? client.spaces.get(spaceId) : undefined;
33
+ const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
34
+
35
+ return [
36
+ Node.make({
37
+ id: Devtools.id,
38
+ data: null,
39
+ type: DEVTOOLS_TYPE,
40
+ properties: {
41
+ label: ['devtools.label', { ns: meta.id }],
42
+ icon: 'ph--hammer--regular',
43
+ disposition: 'pin-end',
44
+ position: 'fallback',
45
+ },
46
+ nodes: [
47
+ ...(space && node.type === `${spaceMeta.id}.settings`
48
+ ? [
49
+ Node.make({
50
+ id: 'debug',
51
+ type: `${meta.id}.space`,
52
+ data: { space, type: `${meta.id}.space` },
53
+ properties: {
54
+ label: ['debug.label', { ns: meta.id }],
55
+ icon: 'ph--bug--regular',
56
+ },
57
+ }),
58
+ ]
59
+ : []),
60
+ Node.make({
61
+ id: 'app-graph',
62
+ type: `${meta.id}.app-graph`,
63
+ data: { graph: graph?.graph, root: node.id === Node.RootId ? node.id : getParentId(node.id) },
64
+ properties: {
65
+ label: ['debug-app-graph.label', { ns: meta.id }],
66
+ icon: 'ph--graph--regular',
67
+ },
68
+ }),
69
+ Node.make({
70
+ id: Devtools.Client.id,
71
+ data: null,
72
+ type: DEVTOOLS_TYPE,
73
+ properties: {
74
+ label: ['client.label', { ns: meta.id }],
75
+ icon: 'ph--users--regular',
76
+ },
77
+ nodes: [
78
+ Node.make({
79
+ id: Devtools.Client.Config,
80
+ data: Devtools.Client.Config,
81
+ type: DEVTOOLS_TYPE,
82
+ properties: {
83
+ label: ['config.label', { ns: meta.id }],
84
+ icon: 'ph--gear--regular',
85
+ },
86
+ }),
87
+ Node.make({
88
+ id: Devtools.Client.Storage,
89
+ data: Devtools.Client.Storage,
90
+ type: DEVTOOLS_TYPE,
91
+ properties: {
92
+ label: ['storage.label', { ns: meta.id }],
93
+ icon: 'ph--hard-drives--regular',
94
+ },
95
+ }),
96
+ Node.make({
97
+ id: Devtools.Client.Logs,
98
+ data: Devtools.Client.Logs,
99
+ type: DEVTOOLS_TYPE,
100
+ properties: {
101
+ label: ['logs.label', { ns: meta.id }],
102
+ icon: 'ph--file-text--regular',
103
+ },
104
+ }),
105
+ Node.make({
106
+ id: Devtools.Client.Diagnostics,
107
+ data: Devtools.Client.Diagnostics,
108
+ type: DEVTOOLS_TYPE,
109
+ properties: {
110
+ label: ['diagnostics.label', { ns: meta.id }],
111
+ icon: 'ph--chart-line--regular',
112
+ },
113
+ }),
114
+ Node.make({
115
+ id: Devtools.Client.Tracing,
116
+ data: Devtools.Client.Tracing,
117
+ type: DEVTOOLS_TYPE,
118
+ properties: {
119
+ label: ['tracing.label', { ns: meta.id }],
120
+ icon: 'ph--fire--regular',
121
+ },
122
+ }),
123
+ ],
124
+ }),
125
+ Node.make({
126
+ id: Devtools.Halo.id,
127
+ data: null,
128
+ type: DEVTOOLS_TYPE,
129
+ properties: {
130
+ label: ['halo.label', { ns: meta.id }],
131
+ icon: 'ph--identification-badge--regular',
132
+ },
133
+ nodes: [
134
+ Node.make({
135
+ id: Devtools.Halo.Identity,
136
+ data: Devtools.Halo.Identity,
137
+ type: DEVTOOLS_TYPE,
138
+ properties: {
139
+ label: ['identity.label', { ns: meta.id }],
140
+ icon: 'ph--identification-badge--regular',
141
+ },
142
+ }),
143
+ Node.make({
144
+ id: Devtools.Halo.Devices,
145
+ data: Devtools.Halo.Devices,
146
+ type: DEVTOOLS_TYPE,
147
+ properties: {
148
+ label: ['devices.label', { ns: meta.id }],
149
+ icon: 'ph--devices--regular',
150
+ },
151
+ }),
152
+ Node.make({
153
+ id: Devtools.Halo.Keyring,
154
+ data: Devtools.Halo.Keyring,
155
+ type: DEVTOOLS_TYPE,
156
+ properties: {
157
+ label: ['keyring.label', { ns: meta.id }],
158
+ icon: 'ph--key--regular',
159
+ },
160
+ }),
161
+ Node.make({
162
+ id: Devtools.Halo.Credentials,
163
+ data: Devtools.Halo.Credentials,
164
+ type: DEVTOOLS_TYPE,
165
+ properties: {
166
+ label: ['credentials.label', { ns: meta.id }],
167
+ icon: 'ph--credit-card--regular',
168
+ },
169
+ }),
170
+ ],
171
+ }),
172
+ Node.make({
173
+ id: Devtools.Echo.id,
174
+ data: null,
175
+ type: DEVTOOLS_TYPE,
176
+ properties: {
177
+ label: ['echo.label', { ns: meta.id }],
178
+ icon: 'ph--database--regular',
179
+ },
180
+ nodes: [
181
+ Node.make({
182
+ id: Devtools.Echo.Spaces,
183
+ data: Devtools.Echo.Spaces,
184
+ type: DEVTOOLS_TYPE,
185
+ properties: {
186
+ label: ['spaces.label', { ns: meta.id }],
187
+ icon: 'ph--graph--regular',
188
+ },
189
+ }),
190
+ Node.make({
191
+ id: Devtools.Echo.Space,
192
+ data: Devtools.Echo.Space,
193
+ type: DEVTOOLS_TYPE,
194
+ properties: {
195
+ label: ['space.label', { ns: meta.id }],
196
+ icon: 'ph--planet--regular',
197
+ },
198
+ }),
199
+ Node.make({
200
+ id: Devtools.Echo.Feeds,
201
+ data: Devtools.Echo.Feeds,
202
+ type: DEVTOOLS_TYPE,
203
+ properties: {
204
+ label: ['feeds.label', { ns: meta.id }],
205
+ icon: 'ph--list-bullets--regular',
206
+ },
207
+ }),
208
+ Node.make({
209
+ id: Devtools.Echo.Objects,
210
+ data: Devtools.Echo.Objects,
211
+ type: DEVTOOLS_TYPE,
212
+ properties: {
213
+ label: ['objects.label', { ns: meta.id }],
214
+ icon: 'ph--cube--regular',
215
+ },
216
+ }),
217
+ Node.make({
218
+ id: Devtools.Echo.Schema,
219
+ data: Devtools.Echo.Schema,
220
+ type: DEVTOOLS_TYPE,
221
+ properties: {
222
+ label: ['schema.label', { ns: meta.id }],
223
+ icon: 'ph--database--regular',
224
+ },
225
+ }),
226
+ Node.make({
227
+ id: Devtools.Echo.Automerge,
228
+ data: Devtools.Echo.Automerge,
229
+ type: DEVTOOLS_TYPE,
230
+ properties: {
231
+ label: ['automerge.label', { ns: meta.id }],
232
+ icon: 'ph--gear-six--regular',
233
+ },
234
+ }),
235
+ Node.make({
236
+ id: Devtools.Echo.Queues,
237
+ data: Devtools.Echo.Queues,
238
+ type: DEVTOOLS_TYPE,
239
+ properties: {
240
+ label: ['queues.label', { ns: meta.id }],
241
+ icon: 'ph--queue--regular',
242
+ },
243
+ }),
244
+ Node.make({
245
+ id: Devtools.Echo.Members,
246
+ data: Devtools.Echo.Members,
247
+ type: DEVTOOLS_TYPE,
248
+ properties: {
249
+ label: ['members.label', { ns: meta.id }],
250
+ icon: 'ph--users--regular',
251
+ },
252
+ }),
253
+ Node.make({
254
+ id: Devtools.Echo.Metadata,
255
+ data: Devtools.Echo.Metadata,
256
+ type: DEVTOOLS_TYPE,
257
+ properties: {
258
+ label: ['metadata.label', { ns: meta.id }],
259
+ icon: 'ph--hard-drive--regular',
260
+ },
261
+ }),
262
+ ],
263
+ }),
264
+ Node.make({
265
+ id: Devtools.Mesh.id,
266
+ data: null,
267
+ type: DEVTOOLS_TYPE,
268
+ properties: {
269
+ label: ['mesh.label', { ns: meta.id }],
270
+ icon: 'ph--graph--regular',
271
+ },
272
+ nodes: [
273
+ Node.make({
274
+ id: Devtools.Mesh.Signal,
275
+ data: Devtools.Mesh.Signal,
276
+ type: DEVTOOLS_TYPE,
277
+ properties: {
278
+ label: ['signal.label', { ns: meta.id }],
279
+ icon: 'ph--wifi-high--regular',
280
+ },
281
+ }),
282
+ Node.make({
283
+ id: Devtools.Mesh.Swarm,
284
+ data: Devtools.Mesh.Swarm,
285
+ type: DEVTOOLS_TYPE,
286
+ properties: {
287
+ label: ['swarm.label', { ns: meta.id }],
288
+ icon: 'ph--users-three--regular',
289
+ },
290
+ }),
291
+ Node.make({
292
+ id: Devtools.Mesh.Network,
293
+ data: Devtools.Mesh.Network,
294
+ type: DEVTOOLS_TYPE,
295
+ properties: {
296
+ label: ['network.label', { ns: meta.id }],
297
+ icon: 'ph--polygon--regular',
298
+ },
299
+ }),
300
+ ],
301
+ }),
302
+ Node.make({
303
+ id: Devtools.Edge.id,
304
+ data: null,
305
+ type: DEVTOOLS_TYPE,
306
+ properties: {
307
+ label: ['edge.label', { ns: meta.id }],
308
+ icon: 'ph--cloud--regular',
309
+ },
310
+ nodes: [
311
+ Node.make({
312
+ id: Devtools.Edge.Dashboard,
313
+ data: Devtools.Edge.Dashboard,
314
+ type: DEVTOOLS_TYPE,
315
+ properties: {
316
+ label: ['dashboard.label', { ns: meta.id }],
317
+ icon: 'ph--computer-tower--regular',
318
+ },
319
+ }),
320
+ Node.make({
321
+ id: Devtools.Edge.Workflows,
322
+ data: Devtools.Edge.Workflows,
323
+ type: DEVTOOLS_TYPE,
324
+ properties: {
325
+ label: ['workflows.label', { ns: meta.id }],
326
+ icon: 'ph--function--regular',
327
+ },
328
+ }),
329
+ Node.make({
330
+ id: Devtools.Edge.Traces,
331
+ data: Devtools.Edge.Traces,
332
+ type: DEVTOOLS_TYPE,
333
+ properties: {
334
+ label: ['traces.label', { ns: meta.id }],
335
+ icon: 'ph--line-segments--regular',
336
+ },
337
+ }),
338
+ Node.make({
339
+ id: Devtools.Edge.Testing,
340
+ data: Devtools.Edge.Testing,
341
+ type: DEVTOOLS_TYPE,
342
+ properties: {
343
+ label: ['testing.label', { ns: meta.id }],
344
+ icon: 'ph--flask--regular',
345
+ },
346
+ }),
347
+ ],
348
+ }),
349
+ ],
350
+ }),
351
+ ];
352
+ }),
353
+ }),
354
+
355
+ // Debug object companion.
356
+ GraphBuilder.createExtension({
357
+ id: `${meta.id}.debug-object`,
358
+ match: NodeMatcher.whenEchoObject,
359
+ connector: () =>
360
+ Effect.succeed([
361
+ AppNode.makeCompanion({
362
+ id: 'debug',
363
+ label: ['debug.label', { ns: meta.id }],
364
+ icon: 'ph--bug--regular',
365
+ data: 'debug',
366
+ position: 'fallback',
367
+ }),
368
+ ]),
369
+ }),
370
+
371
+ // Devtools deck companion.
372
+ GraphBuilder.createExtension({
373
+ id: `${meta.id}.devtools-overview`,
374
+ match: NodeMatcher.whenRoot,
375
+ connector: () =>
376
+ Effect.succeed([
377
+ AppNode.makeDeckCompanion({
378
+ id: 'devtools',
379
+ label: ['devtools-overview.label', { ns: meta.id }],
380
+ icon: 'ph--equalizer--regular',
381
+ data: 'devtools' as const,
382
+ position: 'fallback',
383
+ }),
384
+ ]),
385
+ }),
386
+
387
+ // Object explorer.
388
+ GraphBuilder.createExtension({
389
+ id: `${meta.id}.space-objects`,
390
+ match: NodeMatcher.whenRoot,
391
+ connector: () =>
392
+ Effect.succeed([
393
+ AppNode.makeDeckCompanion({
394
+ id: 'space-objects',
395
+ label: ['space-objects.label', { ns: meta.id }],
396
+ icon: 'ph--cube--regular',
397
+ data: 'space-objects' as const,
398
+ position: 'fallback',
399
+ }),
400
+ ]),
401
+ }),
402
+ ]);
403
+
404
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
405
+ }),
406
+ );
@@ -2,7 +2,9 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- export * from './app-graph-builder';
6
- export * from './react-context';
7
- export * from './react-surface';
8
- export * from './settings';
5
+ import { Capability } from '@dxos/app-framework';
6
+
7
+ export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
8
+ export const ReactContext = Capability.lazy('ReactContext', () => import('./react-context'));
9
+ export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
10
+ export const DebugSettings = Capability.lazy('DebugSettings', () => import('./settings'));