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

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 (149) hide show
  1. package/dist/lib/browser/{DebugGraph-6VMEOKEV.mjs → DebugGraph-7HXJ2PS2.mjs} +4 -3
  2. package/dist/lib/browser/{DebugGraph-6VMEOKEV.mjs.map → DebugGraph-7HXJ2PS2.mjs.map} +4 -4
  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-XNAKCV2F.mjs +174 -0
  6. package/dist/lib/browser/DebugSettings-XNAKCV2F.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-COQGH37G.mjs +125 -0
  10. package/dist/lib/browser/DebugStatus-COQGH37G.mjs.map +7 -0
  11. package/dist/lib/browser/{DevtoolsOverviewContainer-77PKFLYV.mjs → DevtoolsOverviewContainer-C75NFVER.mjs} +6 -5
  12. package/dist/lib/browser/DevtoolsOverviewContainer-C75NFVER.mjs.map +7 -0
  13. package/dist/lib/browser/{SpaceGenerator-H33AEFGC.mjs → SpaceGenerator-Q2GH6S6D.mjs} +313 -287
  14. package/dist/lib/browser/SpaceGenerator-Q2GH6S6D.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-LV73R7HR.mjs → app-graph-builder-FU4BCDDC.mjs} +80 -85
  18. package/dist/lib/browser/app-graph-builder-FU4BCDDC.mjs.map +7 -0
  19. package/dist/lib/browser/{chunk-4UFQXPP7.mjs → chunk-Q37TZWW5.mjs} +4 -4
  20. package/dist/lib/browser/chunk-Q37TZWW5.mjs.map +7 -0
  21. package/dist/lib/browser/{chunk-A5H5GRV6.mjs → chunk-ZOM2FBHQ.mjs} +2 -2
  22. package/dist/lib/browser/{chunk-A5H5GRV6.mjs.map → chunk-ZOM2FBHQ.mjs.map} +1 -1
  23. package/dist/lib/browser/index.mjs +25 -18
  24. package/dist/lib/browser/index.mjs.map +3 -3
  25. package/dist/lib/browser/meta.json +1 -1
  26. package/dist/lib/browser/{react-context-FSWBT3MH.mjs → react-context-5ENRJEB2.mjs} +4 -4
  27. package/dist/lib/browser/react-context-5ENRJEB2.mjs.map +7 -0
  28. package/dist/lib/browser/react-surface-VD6RD6PL.mjs +427 -0
  29. package/dist/lib/browser/react-surface-VD6RD6PL.mjs.map +7 -0
  30. package/dist/lib/browser/{settings-KA4GN73K.mjs → settings-XXFUM3QJ.mjs} +6 -5
  31. package/dist/lib/browser/settings-XXFUM3QJ.mjs.map +7 -0
  32. package/dist/types/src/DebugPlugin.d.ts +6 -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 +1 -1
  35. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
  36. package/dist/types/src/capabilities/react-context/react-context.d.ts +1 -1
  37. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -1
  38. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -1
  39. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
  40. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +6 -2
  41. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
  42. package/dist/types/src/capabilities/settings/index.d.ts +1 -1
  43. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -1
  44. package/dist/types/src/capabilities/settings/settings.d.ts +3 -2
  45. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -1
  46. package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -0
  47. package/dist/types/src/components/SchemaTable/index.d.ts +2 -0
  48. package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -0
  49. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +1 -1
  50. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  51. package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
  52. package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
  53. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  54. package/dist/types/src/components/index.d.ts +2 -10
  55. package/dist/types/src/components/index.d.ts.map +1 -1
  56. package/dist/types/src/{components → containers/DebugGraph}/DebugGraph.d.ts +0 -1
  57. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
  58. package/dist/types/src/containers/DebugGraph/index.d.ts +3 -0
  59. package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
  60. package/dist/types/src/{components → containers/DebugObjectPanel}/DebugObjectPanel.d.ts +1 -1
  61. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
  62. package/dist/types/src/containers/DebugObjectPanel/index.d.ts +3 -0
  63. package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
  64. package/dist/types/src/{components → containers/DebugSettings}/DebugSettings.d.ts +4 -2
  65. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +1 -0
  66. package/dist/types/src/containers/DebugSettings/index.d.ts +3 -0
  67. package/dist/types/src/containers/DebugSettings/index.d.ts.map +1 -0
  68. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +3 -0
  69. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
  70. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +3 -0
  71. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -0
  72. package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -0
  73. package/dist/types/src/containers/DebugStatus/index.d.ts +3 -0
  74. package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -0
  75. package/dist/types/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.d.ts +0 -1
  76. package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
  77. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +3 -0
  78. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
  79. package/dist/types/src/{components → containers}/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
  80. package/dist/types/src/containers/SpaceGenerator/index.d.ts +3 -0
  81. package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -0
  82. package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -0
  83. package/dist/types/src/containers/Wireframe/index.d.ts +3 -0
  84. package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
  85. package/dist/types/src/containers/index.d.ts +10 -0
  86. package/dist/types/src/containers/index.d.ts.map +1 -0
  87. package/dist/types/src/translations.d.ts +2 -0
  88. package/dist/types/src/translations.d.ts.map +1 -1
  89. package/dist/types/src/types.d.ts +34 -34
  90. package/dist/types/src/types.d.ts.map +1 -1
  91. package/dist/types/tsconfig.tsbuildinfo +1 -1
  92. package/package.json +66 -66
  93. package/src/DebugPlugin.tsx +19 -8
  94. package/src/capabilities/app-graph-builder/app-graph-builder.ts +74 -75
  95. package/src/capabilities/react-context/react-context.tsx +2 -2
  96. package/src/capabilities/react-surface/react-surface.tsx +106 -102
  97. package/src/capabilities/settings/settings.ts +3 -2
  98. package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +2 -2
  99. package/src/components/SchemaTable/index.ts +5 -0
  100. package/src/components/SpaceGenerator/ObjectGenerator.tsx +6 -7
  101. package/src/components/SpaceGenerator/index.ts +2 -3
  102. package/src/components/SpaceGenerator/presets.ts +41 -37
  103. package/src/components/index.ts +2 -13
  104. package/src/{components → containers/DebugGraph}/DebugGraph.tsx +0 -2
  105. package/src/containers/DebugGraph/index.ts +7 -0
  106. package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +47 -0
  107. package/src/containers/DebugObjectPanel/index.ts +7 -0
  108. package/src/{components → containers/DebugSettings}/DebugSettings.tsx +38 -22
  109. package/src/containers/DebugSettings/index.ts +7 -0
  110. package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +55 -0
  111. package/src/containers/DebugSpaceObjectsPanel/index.ts +7 -0
  112. package/src/containers/DebugStatus/index.ts +7 -0
  113. package/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.tsx +2 -4
  114. package/src/containers/DevtoolsOverviewContainer/index.ts +7 -0
  115. package/src/{components → containers}/SpaceGenerator/SpaceGenerator.tsx +38 -38
  116. package/src/containers/SpaceGenerator/index.ts +7 -0
  117. package/src/{components → containers/Wireframe}/Wireframe.tsx +2 -2
  118. package/src/containers/Wireframe/index.ts +7 -0
  119. package/src/containers/index.ts +14 -0
  120. package/src/meta.ts +1 -1
  121. package/src/translations.ts +2 -0
  122. package/src/types.ts +2 -3
  123. package/dist/lib/browser/DevtoolsOverviewContainer-77PKFLYV.mjs.map +0 -7
  124. package/dist/lib/browser/SpaceGenerator-H33AEFGC.mjs.map +0 -7
  125. package/dist/lib/browser/app-graph-builder-LV73R7HR.mjs.map +0 -7
  126. package/dist/lib/browser/chunk-4UFQXPP7.mjs.map +0 -7
  127. package/dist/lib/browser/react-context-FSWBT3MH.mjs.map +0 -7
  128. package/dist/lib/browser/react-surface-2N6CPSHR.mjs +0 -757
  129. package/dist/lib/browser/react-surface-2N6CPSHR.mjs.map +0 -7
  130. package/dist/lib/browser/settings-KA4GN73K.mjs.map +0 -7
  131. package/dist/types/src/components/Container.d.ts +0 -5
  132. package/dist/types/src/components/Container.d.ts.map +0 -1
  133. package/dist/types/src/components/DebugGraph.d.ts.map +0 -1
  134. package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
  135. package/dist/types/src/components/DebugSettings.d.ts.map +0 -1
  136. package/dist/types/src/components/DebugStatus.d.ts.map +0 -1
  137. package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
  138. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +0 -1
  139. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -15
  140. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +0 -1
  141. package/dist/types/src/components/Wireframe.d.ts.map +0 -1
  142. package/src/components/Container.tsx +0 -15
  143. package/src/components/DebugObjectPanel.tsx +0 -33
  144. package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -54
  145. /package/dist/types/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.d.ts +0 -0
  146. /package/dist/types/src/{components → containers/DebugStatus}/DebugStatus.d.ts +0 -0
  147. /package/dist/types/src/{components → containers}/SpaceGenerator/SpaceGenerator.d.ts +0 -0
  148. /package/dist/types/src/{components → containers/Wireframe}/Wireframe.d.ts +0 -0
  149. /package/src/{components → containers/DebugStatus}/DebugStatus.tsx +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.c351d160a8",
4
4
  "description": "DXOS Surface plugin for testing.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -14,9 +14,9 @@
14
14
  "type": "module",
15
15
  "exports": {
16
16
  ".": {
17
- "browser": "./dist/lib/browser/index.mjs",
18
17
  "source": "./src/index.ts",
19
- "types": "./dist/types/src/index.d.ts"
18
+ "types": "./dist/types/src/index.d.ts",
19
+ "browser": "./dist/lib/browser/index.mjs"
20
20
  }
21
21
  },
22
22
  "types": "dist/types/src/index.d.ts",
@@ -31,84 +31,84 @@
31
31
  "@antv/graphlib": "^2.0.4",
32
32
  "@antv/layout": "^1.2.13",
33
33
  "@automerge/automerge": "3.2.3",
34
- "@effect-atom/atom": "^0.4.13",
35
- "@effect-atom/atom-react": "^0.4.6",
34
+ "@effect-atom/atom": "^0.5.1",
35
+ "@effect-atom/atom-react": "^0.5.0",
36
36
  "@tldraw/tldraw": "^3.0.0",
37
37
  "date-fns": "^3.3.1",
38
38
  "react-json-tree": "^0.18.0",
39
39
  "react-resize-detector": "^11.0.1",
40
40
  "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"
41
+ "@dxos/app-framework": "0.8.4-main.c351d160a8",
42
+ "@dxos/app-toolkit": "0.8.4-main.c351d160a8",
43
+ "@dxos/async": "0.8.4-main.c351d160a8",
44
+ "@dxos/conductor": "0.8.4-main.c351d160a8",
45
+ "@dxos/blueprints": "0.8.4-main.c351d160a8",
46
+ "@dxos/client-services": "0.8.4-main.c351d160a8",
47
+ "@dxos/compute": "0.8.4-main.c351d160a8",
48
+ "@dxos/config": "0.8.4-main.c351d160a8",
49
+ "@dxos/devtools": "0.8.4-main.c351d160a8",
50
+ "@dxos/echo": "0.8.4-main.c351d160a8",
51
+ "@dxos/echo-generator": "0.8.4-main.c351d160a8",
52
+ "@dxos/context": "0.8.4-main.c351d160a8",
53
+ "@dxos/assistant-toolkit": "0.8.4-main.c351d160a8",
54
+ "@dxos/effect": "0.8.4-main.c351d160a8",
55
+ "@dxos/echo-pipeline": "0.8.4-main.c351d160a8",
56
+ "@dxos/keys": "0.8.4-main.c351d160a8",
57
+ "@dxos/invariant": "0.8.4-main.c351d160a8",
58
+ "@dxos/log": "0.8.4-main.c351d160a8",
59
+ "@dxos/operation": "0.8.4-main.c351d160a8",
60
+ "@dxos/plugin-client": "0.8.4-main.c351d160a8",
61
+ "@dxos/plugin-deck": "0.8.4-main.c351d160a8",
62
+ "@dxos/plugin-graph": "0.8.4-main.c351d160a8",
63
+ "@dxos/plugin-inbox": "0.8.4-main.c351d160a8",
64
+ "@dxos/plugin-script": "0.8.4-main.c351d160a8",
65
+ "@dxos/plugin-meeting": "0.8.4-main.c351d160a8",
66
+ "@dxos/plugin-markdown": "0.8.4-main.c351d160a8",
67
+ "@dxos/plugin-sheet": "0.8.4-main.c351d160a8",
68
+ "@dxos/plugin-sketch": "0.8.4-main.c351d160a8",
69
+ "@dxos/plugin-space": "0.8.4-main.c351d160a8",
70
+ "@dxos/plugin-table": "0.8.4-main.c351d160a8",
71
+ "@dxos/plugin-status-bar": "0.8.4-main.c351d160a8",
72
+ "@dxos/protocols": "0.8.4-main.c351d160a8",
73
+ "@dxos/plugin-theme": "0.8.4-main.c351d160a8",
74
+ "@dxos/random": "0.8.4-main.c351d160a8",
75
+ "@dxos/react-client": "0.8.4-main.c351d160a8",
76
+ "@dxos/react-hooks": "0.8.4-main.c351d160a8",
77
+ "@dxos/react-ui-attention": "0.8.4-main.c351d160a8",
78
+ "@dxos/react-ui-canvas-editor": "0.8.4-main.c351d160a8",
79
+ "@dxos/react-ui-canvas-compute": "0.8.4-main.c351d160a8",
80
+ "@dxos/react-ui-form": "0.8.4-main.c351d160a8",
81
+ "@dxos/react-ui-mosaic": "0.8.4-main.c351d160a8",
82
+ "@dxos/react-ui-stack": "0.8.4-main.c351d160a8",
83
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.c351d160a8",
84
+ "@dxos/schema": "0.8.4-main.c351d160a8",
85
+ "@dxos/react-ui-table": "0.8.4-main.c351d160a8",
86
+ "@dxos/types": "0.8.4-main.c351d160a8",
87
+ "@dxos/util": "0.8.4-main.c351d160a8",
88
+ "@dxos/functions": "0.8.4-main.c351d160a8"
89
89
  },
90
90
  "devDependencies": {
91
- "@effect-atom/atom-react": "^0.4.6",
92
- "@effect/platform": "0.93.6",
91
+ "@effect-atom/atom-react": "^0.5.0",
92
+ "@effect/platform": "0.94.4",
93
93
  "@types/react": "~19.2.7",
94
94
  "@types/react-dom": "~19.2.3",
95
- "effect": "3.19.11",
95
+ "effect": "3.19.16",
96
96
  "react": "~19.2.3",
97
97
  "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"
98
+ "vite": "^7.1.11",
99
+ "@dxos/storybook-utils": "0.8.4-main.c351d160a8",
100
+ "@dxos/ui-theme": "0.8.4-main.c351d160a8",
101
+ "@dxos/react-ui": "0.8.4-main.c351d160a8"
102
102
  },
103
103
  "peerDependencies": {
104
- "@effect-atom/atom-react": "^0.4.6",
105
- "@effect/platform": "0.93.6",
106
- "effect": "3.19.11",
104
+ "@effect-atom/atom-react": "^0.5.0",
105
+ "@effect/platform": "0.94.4",
106
+ "effect": "3.19.16",
107
107
  "react": "~19.2.3",
108
108
  "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"
109
+ "@dxos/react-ui": "0.8.4-main.c351d160a8",
110
+ "@dxos/random": "0.8.4-main.c351d160a8",
111
+ "@dxos/ui-theme": "0.8.4-main.c351d160a8"
112
112
  },
113
113
  "publishConfig": {
114
114
  "access": "public"
@@ -4,25 +4,36 @@
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
12
  import { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from './capabilities';
11
13
  import { meta } from './meta';
12
14
  import { translations } from './translations';
13
15
 
16
+ export type DebugPluginOptions = {
17
+ /** Shared log buffer for capturing and downloading logs. */
18
+ logBuffer: LogBuffer;
19
+ };
20
+
14
21
  // TODO(wittjosiah): Factor out DevtoolsPlugin?
15
- export const DebugPlugin = Plugin.define(meta).pipe(
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 }),
16
32
  Plugin.addModule({
17
33
  id: 'setup-devtools',
18
- activatesOn: Common.ActivationEvent.Startup,
34
+ activatesOn: ActivationEvents.Startup,
19
35
  activate: () => Effect.sync(() => setupDevtools()),
20
36
  }),
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
37
  Plugin.make,
27
38
  );
28
39
 
@@ -4,38 +4,38 @@
4
4
 
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
- import { Capability, Common } from '@dxos/app-framework';
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { AppCapabilities, getSpaceIdFromPath } from '@dxos/app-toolkit';
8
9
  import { Obj } from '@dxos/echo';
9
10
  import { ClientCapabilities } from '@dxos/plugin-client';
10
- import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
11
+ import { DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
11
12
  import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
12
13
  import { meta as spaceMeta } from '@dxos/plugin-space';
13
- import { parseId } from '@dxos/react-client/echo';
14
14
 
15
15
  import { meta } from '../../meta';
16
16
  import { Devtools } from '../../types';
17
17
 
18
- const DEVTOOLS_TYPE = `${meta.id}/devtools`;
18
+ const DEVTOOLS_TYPE = `${meta.id}.devtools`;
19
19
 
20
20
  export default Capability.makeModule(
21
21
  Effect.fnUntraced(function* () {
22
22
  const extensions = yield* Effect.all([
23
23
  // Devtools node.
24
24
  GraphBuilder.createExtension({
25
- id: `${meta.id}/devtools`,
26
- match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}/settings`)),
25
+ id: `${meta.id}.devtools`,
26
+ match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`)),
27
27
  connector: (node, get) =>
28
28
  Effect.gen(function* () {
29
29
  const client = yield* Capability.get(ClientCapabilities.Client);
30
- const layoutAtom = get(yield* Capability.atom(Common.Capability.Layout))[0];
30
+ const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
31
31
  const layout = layoutAtom ? get(layoutAtom) : undefined;
32
- const { spaceId } = parseId(layout?.workspace);
32
+ const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : undefined;
33
33
  const space = spaceId ? client.spaces.get(spaceId) : undefined;
34
- const [graph] = get(yield* Capability.atom(Common.Capability.AppGraph));
34
+ const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
35
35
 
36
36
  return [
37
37
  {
38
- id: `${Devtools.id}-${node.id}`,
38
+ id: Devtools.id,
39
39
  data: null,
40
40
  type: DEVTOOLS_TYPE,
41
41
  properties: {
@@ -45,12 +45,12 @@ export default Capability.makeModule(
45
45
  position: 'fallback',
46
46
  },
47
47
  nodes: [
48
- ...(space && node.type === `${spaceMeta.id}/settings`
48
+ ...(space && node.type === `${spaceMeta.id}.settings`
49
49
  ? [
50
50
  {
51
- id: `debug-${node.id}`,
52
- type: `${meta.id}/space`,
53
- data: { space, type: `${meta.id}/space` },
51
+ id: 'debug',
52
+ type: `${meta.id}.space`,
53
+ data: { space, type: `${meta.id}.space` },
54
54
  properties: {
55
55
  label: ['debug label', { ns: meta.id }],
56
56
  icon: 'ph--bug--regular',
@@ -59,8 +59,8 @@ export default Capability.makeModule(
59
59
  ]
60
60
  : []),
61
61
  {
62
- id: `app-graph-${node.id}`,
63
- type: `${meta.id}/app-graph`,
62
+ id: 'app-graph',
63
+ type: `${meta.id}.app-graph`,
64
64
  data: { graph: graph?.graph, root: space ? space.id : Node.RootId },
65
65
  properties: {
66
66
  label: ['debug app graph label', { ns: meta.id }],
@@ -68,7 +68,7 @@ export default Capability.makeModule(
68
68
  },
69
69
  },
70
70
  {
71
- id: `${Devtools.Client.id}-${node.id}`,
71
+ id: Devtools.Client.id,
72
72
  data: null,
73
73
  type: DEVTOOLS_TYPE,
74
74
  properties: {
@@ -77,7 +77,7 @@ export default Capability.makeModule(
77
77
  },
78
78
  nodes: [
79
79
  {
80
- id: `${Devtools.Client.Config}-${node.id}`,
80
+ id: Devtools.Client.Config,
81
81
  data: Devtools.Client.Config,
82
82
  type: DEVTOOLS_TYPE,
83
83
  properties: {
@@ -86,7 +86,7 @@ export default Capability.makeModule(
86
86
  },
87
87
  },
88
88
  {
89
- id: `${Devtools.Client.Storage}-${node.id}`,
89
+ id: Devtools.Client.Storage,
90
90
  data: Devtools.Client.Storage,
91
91
  type: DEVTOOLS_TYPE,
92
92
  properties: {
@@ -95,7 +95,7 @@ export default Capability.makeModule(
95
95
  },
96
96
  },
97
97
  {
98
- id: `${Devtools.Client.Logs}-${node.id}`,
98
+ id: Devtools.Client.Logs,
99
99
  data: Devtools.Client.Logs,
100
100
  type: DEVTOOLS_TYPE,
101
101
  properties: {
@@ -104,7 +104,7 @@ export default Capability.makeModule(
104
104
  },
105
105
  },
106
106
  {
107
- id: `${Devtools.Client.Diagnostics}-${node.id}`,
107
+ id: Devtools.Client.Diagnostics,
108
108
  data: Devtools.Client.Diagnostics,
109
109
  type: DEVTOOLS_TYPE,
110
110
  properties: {
@@ -113,7 +113,7 @@ export default Capability.makeModule(
113
113
  },
114
114
  },
115
115
  {
116
- id: `${Devtools.Client.Tracing}-${node.id}`,
116
+ id: Devtools.Client.Tracing,
117
117
  data: Devtools.Client.Tracing,
118
118
  type: DEVTOOLS_TYPE,
119
119
  properties: {
@@ -124,7 +124,7 @@ export default Capability.makeModule(
124
124
  ],
125
125
  },
126
126
  {
127
- id: `${Devtools.Halo.id}-${node.id}`,
127
+ id: Devtools.Halo.id,
128
128
  data: null,
129
129
  type: DEVTOOLS_TYPE,
130
130
  properties: {
@@ -133,7 +133,7 @@ export default Capability.makeModule(
133
133
  },
134
134
  nodes: [
135
135
  {
136
- id: `${Devtools.Halo.Identity}-${node.id}`,
136
+ id: Devtools.Halo.Identity,
137
137
  data: Devtools.Halo.Identity,
138
138
  type: DEVTOOLS_TYPE,
139
139
  properties: {
@@ -142,7 +142,7 @@ export default Capability.makeModule(
142
142
  },
143
143
  },
144
144
  {
145
- id: `${Devtools.Halo.Devices}-${node.id}`,
145
+ id: Devtools.Halo.Devices,
146
146
  data: Devtools.Halo.Devices,
147
147
  type: DEVTOOLS_TYPE,
148
148
  properties: {
@@ -151,7 +151,7 @@ export default Capability.makeModule(
151
151
  },
152
152
  },
153
153
  {
154
- id: `${Devtools.Halo.Keyring}-${node.id}`,
154
+ id: Devtools.Halo.Keyring,
155
155
  data: Devtools.Halo.Keyring,
156
156
  type: DEVTOOLS_TYPE,
157
157
  properties: {
@@ -160,7 +160,7 @@ export default Capability.makeModule(
160
160
  },
161
161
  },
162
162
  {
163
- id: `${Devtools.Halo.Credentials}-${node.id}`,
163
+ id: Devtools.Halo.Credentials,
164
164
  data: Devtools.Halo.Credentials,
165
165
  type: DEVTOOLS_TYPE,
166
166
  properties: {
@@ -171,7 +171,7 @@ export default Capability.makeModule(
171
171
  ],
172
172
  },
173
173
  {
174
- id: `${Devtools.Echo.id}-${node.id}`,
174
+ id: Devtools.Echo.id,
175
175
  data: null,
176
176
  type: DEVTOOLS_TYPE,
177
177
  properties: {
@@ -180,7 +180,7 @@ export default Capability.makeModule(
180
180
  },
181
181
  nodes: [
182
182
  {
183
- id: `${Devtools.Echo.Spaces}-${node.id}`,
183
+ id: Devtools.Echo.Spaces,
184
184
  data: Devtools.Echo.Spaces,
185
185
  type: DEVTOOLS_TYPE,
186
186
  properties: {
@@ -189,7 +189,7 @@ export default Capability.makeModule(
189
189
  },
190
190
  },
191
191
  {
192
- id: `${Devtools.Echo.Space}-${node.id}`,
192
+ id: Devtools.Echo.Space,
193
193
  data: Devtools.Echo.Space,
194
194
  type: DEVTOOLS_TYPE,
195
195
  properties: {
@@ -198,7 +198,7 @@ export default Capability.makeModule(
198
198
  },
199
199
  },
200
200
  {
201
- id: `${Devtools.Echo.Feeds}-${node.id}`,
201
+ id: Devtools.Echo.Feeds,
202
202
  data: Devtools.Echo.Feeds,
203
203
  type: DEVTOOLS_TYPE,
204
204
  properties: {
@@ -207,7 +207,7 @@ export default Capability.makeModule(
207
207
  },
208
208
  },
209
209
  {
210
- id: `${Devtools.Echo.Objects}-${node.id}`,
210
+ id: Devtools.Echo.Objects,
211
211
  data: Devtools.Echo.Objects,
212
212
  type: DEVTOOLS_TYPE,
213
213
  properties: {
@@ -216,7 +216,7 @@ export default Capability.makeModule(
216
216
  },
217
217
  },
218
218
  {
219
- id: `${Devtools.Echo.Schema}-${node.id}`,
219
+ id: Devtools.Echo.Schema,
220
220
  data: Devtools.Echo.Schema,
221
221
  type: DEVTOOLS_TYPE,
222
222
  properties: {
@@ -225,7 +225,7 @@ export default Capability.makeModule(
225
225
  },
226
226
  },
227
227
  {
228
- id: `${Devtools.Echo.Automerge}-${node.id}`,
228
+ id: Devtools.Echo.Automerge,
229
229
  data: Devtools.Echo.Automerge,
230
230
  type: DEVTOOLS_TYPE,
231
231
  properties: {
@@ -234,7 +234,7 @@ export default Capability.makeModule(
234
234
  },
235
235
  },
236
236
  {
237
- id: `${Devtools.Echo.Queues}-${node.id}`,
237
+ id: Devtools.Echo.Queues,
238
238
  data: Devtools.Echo.Queues,
239
239
  type: DEVTOOLS_TYPE,
240
240
  properties: {
@@ -243,7 +243,7 @@ export default Capability.makeModule(
243
243
  },
244
244
  },
245
245
  {
246
- id: `${Devtools.Echo.Members}-${node.id}`,
246
+ id: Devtools.Echo.Members,
247
247
  data: Devtools.Echo.Members,
248
248
  type: DEVTOOLS_TYPE,
249
249
  properties: {
@@ -252,7 +252,7 @@ export default Capability.makeModule(
252
252
  },
253
253
  },
254
254
  {
255
- id: `${Devtools.Echo.Metadata}-${node.id}`,
255
+ id: Devtools.Echo.Metadata,
256
256
  data: Devtools.Echo.Metadata,
257
257
  type: DEVTOOLS_TYPE,
258
258
  properties: {
@@ -263,7 +263,7 @@ export default Capability.makeModule(
263
263
  ],
264
264
  },
265
265
  {
266
- id: `${Devtools.Mesh.id}-${node.id}`,
266
+ id: Devtools.Mesh.id,
267
267
  data: null,
268
268
  type: DEVTOOLS_TYPE,
269
269
  properties: {
@@ -272,7 +272,7 @@ export default Capability.makeModule(
272
272
  },
273
273
  nodes: [
274
274
  {
275
- id: `${Devtools.Mesh.Signal}-${node.id}`,
275
+ id: Devtools.Mesh.Signal,
276
276
  data: Devtools.Mesh.Signal,
277
277
  type: DEVTOOLS_TYPE,
278
278
  properties: {
@@ -281,7 +281,7 @@ export default Capability.makeModule(
281
281
  },
282
282
  },
283
283
  {
284
- id: `${Devtools.Mesh.Swarm}-${node.id}`,
284
+ id: Devtools.Mesh.Swarm,
285
285
  data: Devtools.Mesh.Swarm,
286
286
  type: DEVTOOLS_TYPE,
287
287
  properties: {
@@ -290,7 +290,7 @@ export default Capability.makeModule(
290
290
  },
291
291
  },
292
292
  {
293
- id: `${Devtools.Mesh.Network}-${node.id}`,
293
+ id: Devtools.Mesh.Network,
294
294
  data: Devtools.Mesh.Network,
295
295
  type: DEVTOOLS_TYPE,
296
296
  properties: {
@@ -300,29 +300,8 @@ export default Capability.makeModule(
300
300
  },
301
301
  ],
302
302
  },
303
- // TODO(wittjosiah): Remove?
304
- // {
305
- // id: `${prefix}-${Devtools.Agent.id}`,
306
- // data: null,
307
- // type: DEVTOOLS_TYPE,
308
- // properties: {
309
- // label: ['agent label', { ns: meta.id }],
310
- // icon: 'ph--robot--regular',
311
- // },
312
- // nodes: [
313
- // {
314
- // id: `${prefix}-${Devtools.Agent.Dashboard}`,
315
- // data: Devtools.Agent.Dashboard,
316
- // type: DEVTOOLS_TYPE,
317
- // properties: {
318
- // label: ['dashboard label', { ns: meta.id }],
319
- // icon: 'ph--computer-tower--regular',
320
- // },
321
- // },
322
- // ],
323
- // },
324
303
  {
325
- id: `${Devtools.Edge.id}-${node.id}`,
304
+ id: Devtools.Edge.id,
326
305
  data: null,
327
306
  type: DEVTOOLS_TYPE,
328
307
  properties: {
@@ -331,7 +310,7 @@ export default Capability.makeModule(
331
310
  },
332
311
  nodes: [
333
312
  {
334
- id: `${Devtools.Edge.Dashboard}-${node.id}`,
313
+ id: Devtools.Edge.Dashboard,
335
314
  data: Devtools.Edge.Dashboard,
336
315
  type: DEVTOOLS_TYPE,
337
316
  properties: {
@@ -340,7 +319,7 @@ export default Capability.makeModule(
340
319
  },
341
320
  },
342
321
  {
343
- id: `${Devtools.Edge.Workflows}-${node.id}`,
322
+ id: Devtools.Edge.Workflows,
344
323
  data: Devtools.Edge.Workflows,
345
324
  type: DEVTOOLS_TYPE,
346
325
  properties: {
@@ -349,7 +328,7 @@ export default Capability.makeModule(
349
328
  },
350
329
  },
351
330
  {
352
- id: `${Devtools.Edge.Traces}-${node.id}`,
331
+ id: Devtools.Edge.Traces,
353
332
  data: Devtools.Edge.Traces,
354
333
  type: DEVTOOLS_TYPE,
355
334
  properties: {
@@ -358,7 +337,7 @@ export default Capability.makeModule(
358
337
  },
359
338
  },
360
339
  {
361
- id: `${Devtools.Edge.Testing}-${node.id}`,
340
+ id: Devtools.Edge.Testing,
362
341
  data: Devtools.Edge.Testing,
363
342
  type: DEVTOOLS_TYPE,
364
343
  properties: {
@@ -376,12 +355,12 @@ export default Capability.makeModule(
376
355
 
377
356
  // Debug object companion.
378
357
  GraphBuilder.createExtension({
379
- id: `${meta.id}/debug-object`,
358
+ id: `${meta.id}.debug-object`,
380
359
  match: NodeMatcher.whenEchoObject,
381
- connector: (object) =>
360
+ connector: () =>
382
361
  Effect.succeed([
383
362
  {
384
- id: [Obj.getDXN(object).toString(), 'debug'].join(ATTENDABLE_PATH_SEPARATOR),
363
+ id: 'debug',
385
364
  type: PLANK_COMPANION_TYPE,
386
365
  data: 'debug',
387
366
  properties: {
@@ -396,14 +375,14 @@ export default Capability.makeModule(
396
375
 
397
376
  // Devtools deck companion.
398
377
  GraphBuilder.createExtension({
399
- id: `${meta.id}/devtools-overview`,
378
+ id: `${meta.id}.devtools-overview`,
400
379
  match: NodeMatcher.whenRoot,
401
- connector: (node) =>
380
+ connector: () =>
402
381
  Effect.succeed([
403
382
  {
404
- id: [node.id, 'devtools'].join(ATTENDABLE_PATH_SEPARATOR),
383
+ id: 'devtools',
405
384
  type: DECK_COMPANION_TYPE,
406
- data: null,
385
+ data: 'devtools' as const,
407
386
  properties: {
408
387
  label: ['devtools overview label', { ns: meta.id }],
409
388
  icon: 'ph--equalizer--regular',
@@ -413,8 +392,28 @@ export default Capability.makeModule(
413
392
  },
414
393
  ]),
415
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
+ }),
416
415
  ]);
417
416
 
418
- return Capability.contributes(Common.Capability.AppGraphBuilder, extensions);
417
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
419
418
  }),
420
419
  );
@@ -5,14 +5,14 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
  import React from 'react';
7
7
 
8
- import { Capability, Common } from '@dxos/app-framework';
8
+ import { Capabilities, Capability } from '@dxos/app-framework';
9
9
  import { DevtoolsContextProvider } from '@dxos/devtools';
10
10
 
11
11
  import { meta } from '../../meta';
12
12
 
13
13
  export default Capability.makeModule(() =>
14
14
  Effect.succeed(
15
- Capability.contributes(Common.Capability.ReactContext, {
15
+ Capability.contributes(Capabilities.ReactContext, {
16
16
  id: meta.id,
17
17
  context: ({ children }) => <DevtoolsContextProvider>{children}</DevtoolsContextProvider>,
18
18
  }),