@dxos/plugin-debug 0.12.0-next-73daef452f1464b62efdbca75fb0067c1066f264 → 0.13.0

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 (501) hide show
  1. package/PLUGIN.mdl +241 -3
  2. package/README.md +27 -3
  3. package/dist/lib/Debug.mjs.map +1 -1
  4. package/dist/lib/DebugNodes.mjs +21 -2
  5. package/dist/lib/DebugNodes.mjs.map +1 -1
  6. package/dist/lib/DebugOperation.mjs +166 -2
  7. package/dist/lib/DebugOperation.mjs.map +1 -1
  8. package/dist/lib/DebugPlugin.mjs.map +1 -1
  9. package/dist/lib/DebugSurface.mjs +7 -2
  10. package/dist/lib/DebugSurface.mjs.map +1 -1
  11. package/dist/lib/IncidentSpace.mjs +2 -0
  12. package/dist/lib/PipelineSpace.mjs +2 -0
  13. package/dist/lib/ReviewSpace.mjs +2 -0
  14. package/dist/lib/StockfishSpace.mjs +2 -0
  15. package/dist/lib/TidepoolSpace.mjs +2 -0
  16. package/dist/lib/WeatherSpace.mjs +2 -0
  17. package/dist/lib/WorkerSpace.mjs +2 -0
  18. package/dist/lib/capabilities.browser.mjs +71 -0
  19. package/dist/lib/capabilities.browser.mjs.map +1 -0
  20. package/dist/lib/capabilities.mjs +17 -7
  21. package/dist/lib/capabilities.mjs.map +1 -1
  22. package/dist/lib/capabilities.node.mjs +13 -3
  23. package/dist/lib/capabilities.node.mjs.map +1 -1
  24. package/dist/lib/capabilities.tauri.mjs +71 -0
  25. package/dist/lib/capabilities.tauri.mjs.map +1 -0
  26. package/dist/lib/capabilities.workerd.mjs +3 -1
  27. package/dist/lib/capabilities.workerd.mjs.map +1 -1
  28. package/dist/lib/chunk-DebugConsole.mjs +241 -0
  29. package/dist/lib/chunk-DebugConsole.mjs.map +1 -0
  30. package/dist/lib/chunk-DebugObjectPanel.mjs +12 -16
  31. package/dist/lib/chunk-DebugObjectPanel.mjs.map +1 -1
  32. package/dist/lib/chunk-DebugPanelDrawer.mjs +48 -0
  33. package/dist/lib/chunk-DebugPanelDrawer.mjs.map +1 -0
  34. package/dist/lib/chunk-DebugPanelHeader.mjs +280 -0
  35. package/dist/lib/chunk-DebugPanelHeader.mjs.map +1 -0
  36. package/dist/lib/chunk-DebugPanelStatus.mjs +127 -0
  37. package/dist/lib/chunk-DebugPanelStatus.mjs.map +1 -0
  38. package/dist/lib/chunk-DebugSettings.mjs +81 -70
  39. package/dist/lib/chunk-DebugSettings.mjs.map +1 -1
  40. package/dist/lib/chunk-DebugSpaceObjectsPanel.mjs +21 -12
  41. package/dist/lib/chunk-DebugSpaceObjectsPanel.mjs.map +1 -1
  42. package/dist/lib/chunk-DebugStatus.mjs +12 -12
  43. package/dist/lib/chunk-DebugStatus.mjs.map +1 -1
  44. package/dist/lib/chunk-IncidentSpace.mjs +269 -0
  45. package/dist/lib/chunk-IncidentSpace.mjs.map +1 -0
  46. package/dist/lib/chunk-LoggerPanel.mjs +18 -0
  47. package/dist/lib/chunk-LoggerPanel.mjs.map +1 -0
  48. package/dist/lib/chunk-PLUGIN.mjs +6 -0
  49. package/dist/lib/chunk-PLUGIN.mjs.map +1 -0
  50. package/dist/lib/chunk-PipelineSpace.mjs +378 -0
  51. package/dist/lib/chunk-PipelineSpace.mjs.map +1 -0
  52. package/dist/lib/chunk-ReviewSpace.mjs +356 -0
  53. package/dist/lib/chunk-ReviewSpace.mjs.map +1 -0
  54. package/dist/lib/chunk-SpaceGenerator.mjs +107 -73
  55. package/dist/lib/chunk-SpaceGenerator.mjs.map +1 -1
  56. package/dist/lib/chunk-StatsPanel.mjs +28 -35
  57. package/dist/lib/chunk-StatsPanel.mjs.map +1 -1
  58. package/dist/lib/chunk-StockfishSpace.mjs +563 -0
  59. package/dist/lib/chunk-StockfishSpace.mjs.map +1 -0
  60. package/dist/lib/chunk-TidepoolSpace.mjs +544 -0
  61. package/dist/lib/chunk-TidepoolSpace.mjs.map +1 -0
  62. package/dist/lib/chunk-WeatherSpace.mjs +206 -0
  63. package/dist/lib/chunk-WeatherSpace.mjs.map +1 -0
  64. package/dist/lib/chunk-Wireframe.mjs +6 -6
  65. package/dist/lib/chunk-Wireframe.mjs.map +1 -1
  66. package/dist/lib/chunk-WorkerSpace.mjs +177 -0
  67. package/dist/lib/chunk-WorkerSpace.mjs.map +1 -0
  68. package/dist/lib/chunk-app-graph-builder.mjs +72 -40
  69. package/dist/lib/chunk-app-graph-builder.mjs.map +1 -1
  70. package/dist/lib/chunk-create-space-from-template.mjs +55 -0
  71. package/dist/lib/chunk-create-space-from-template.mjs.map +1 -0
  72. package/dist/lib/chunk-errors.mjs +13 -0
  73. package/dist/lib/chunk-errors.mjs.map +1 -0
  74. package/dist/lib/chunk-graph-retention.mjs +14 -0
  75. package/dist/lib/chunk-graph-retention.mjs.map +1 -0
  76. package/dist/lib/chunk-insert-lorem-ipsum.mjs +2 -2
  77. package/dist/lib/chunk-log-recording.mjs +29 -1
  78. package/dist/lib/chunk-log-recording.mjs.map +1 -1
  79. package/dist/lib/chunk-open-page.mjs +29 -0
  80. package/dist/lib/chunk-open-page.mjs.map +1 -0
  81. package/dist/lib/chunk-operation-handler.mjs +5 -0
  82. package/dist/lib/chunk-operation-handler.mjs.map +1 -1
  83. package/dist/lib/chunk-react-surface.mjs +73 -71
  84. package/dist/lib/chunk-react-surface.mjs.map +1 -1
  85. package/dist/lib/chunk-settings.mjs +2 -2
  86. package/dist/lib/chunk-settings.mjs.map +1 -1
  87. package/dist/lib/chunk-snapshot.mjs +170 -0
  88. package/dist/lib/chunk-snapshot.mjs.map +1 -0
  89. package/dist/lib/chunk-space-templates.mjs +21 -0
  90. package/dist/lib/chunk-space-templates.mjs.map +1 -0
  91. package/dist/lib/chunk-stats-panel.mjs +1 -1
  92. package/dist/lib/chunk-stats-panel.mjs.map +1 -1
  93. package/dist/lib/chunk-undo.mjs +17 -0
  94. package/dist/lib/chunk-undo.mjs.map +1 -0
  95. package/dist/lib/chunk-view-state.mjs +37 -0
  96. package/dist/lib/chunk-view-state.mjs.map +1 -0
  97. package/dist/lib/components.mjs +68 -28
  98. package/dist/lib/components.mjs.map +1 -1
  99. package/dist/lib/containers.mjs +5 -2
  100. package/dist/lib/containers.mjs.map +1 -1
  101. package/dist/lib/index.mjs +8 -2
  102. package/dist/lib/meta.mjs +3 -2
  103. package/dist/lib/meta.mjs.map +1 -1
  104. package/dist/lib/operations.mjs +7 -1
  105. package/dist/lib/operations.mjs.map +1 -1
  106. package/dist/lib/plugin.mjs +2 -2
  107. package/dist/lib/plugin.mjs.map +1 -1
  108. package/dist/lib/translations.mjs +13 -4
  109. package/dist/lib/translations.mjs.map +1 -1
  110. package/dist/types/scripts/build-template-archive.d.ts +2 -0
  111. package/dist/types/scripts/build-template-archive.d.ts.map +1 -0
  112. package/dist/types/src/DebugPlugin.d.ts +2 -2
  113. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  114. package/dist/types/src/capabilities/DebugSurfaces.d.ts +4 -5
  115. package/dist/types/src/capabilities/DebugSurfaces.d.ts.map +1 -1
  116. package/dist/types/src/capabilities/app-graph-builder.d.ts +31 -0
  117. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  118. package/dist/types/src/capabilities/app-graph-builder.test.d.ts +2 -0
  119. package/dist/types/src/capabilities/app-graph-builder.test.d.ts.map +1 -0
  120. package/dist/types/src/capabilities/gen/browser.d.ts +14 -0
  121. package/dist/types/src/capabilities/gen/browser.d.ts.map +1 -0
  122. package/dist/types/src/capabilities/gen/node.d.ts +2 -0
  123. package/dist/types/src/capabilities/gen/node.d.ts.map +1 -1
  124. package/dist/types/src/capabilities/gen/tauri.d.ts +14 -0
  125. package/dist/types/src/capabilities/gen/tauri.d.ts.map +1 -0
  126. package/dist/types/src/capabilities/gen/workerd.d.ts +2 -0
  127. package/dist/types/src/capabilities/gen/workerd.d.ts.map +1 -1
  128. package/dist/types/src/capabilities/graph-retention.d.ts +5 -0
  129. package/dist/types/src/capabilities/graph-retention.d.ts.map +1 -0
  130. package/dist/types/src/capabilities/index.d.ts +2 -0
  131. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  132. package/dist/types/src/capabilities/log-recording.d.ts +4 -0
  133. package/dist/types/src/capabilities/log-recording.d.ts.map +1 -1
  134. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  135. package/dist/types/src/capabilities/space-templates.d.ts +14 -0
  136. package/dist/types/src/capabilities/space-templates.d.ts.map +1 -0
  137. package/dist/types/src/components/SchemaTable/SchemaTable.d.ts +4 -3
  138. package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -1
  139. package/dist/types/src/components/SchemaTable/index.d.ts +1 -1
  140. package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -1
  141. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +2 -1
  142. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  143. package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
  144. package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
  145. package/dist/types/src/components/SpaceGenerator/presets.d.ts +1 -1
  146. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  147. package/dist/types/src/components/index.d.ts +2 -2
  148. package/dist/types/src/components/index.d.ts.map +1 -1
  149. package/dist/types/src/containers/DebugConsole/DebugConsole.d.ts +12 -0
  150. package/dist/types/src/containers/DebugConsole/DebugConsole.d.ts.map +1 -0
  151. package/dist/types/src/containers/DebugConsole/DebugConsole.stories.d.ts +103 -0
  152. package/dist/types/src/containers/DebugConsole/DebugConsole.stories.d.ts.map +1 -0
  153. package/dist/types/src/containers/DebugConsole/cli.d.ts +24 -0
  154. package/dist/types/src/containers/DebugConsole/cli.d.ts.map +1 -0
  155. package/dist/types/src/containers/DebugConsole/index.d.ts +2 -0
  156. package/dist/types/src/containers/DebugConsole/index.d.ts.map +1 -0
  157. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +1 -1
  158. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -1
  159. package/dist/types/src/containers/DebugObjectPanel/index.d.ts +1 -1
  160. package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -1
  161. package/dist/types/src/containers/DebugPanel/DebugPanel.d.ts +30 -0
  162. package/dist/types/src/containers/DebugPanel/DebugPanel.d.ts.map +1 -0
  163. package/dist/types/src/containers/DebugPanel/DebugPanel.stories.d.ts +126 -0
  164. package/dist/types/src/containers/DebugPanel/DebugPanel.stories.d.ts.map +1 -0
  165. package/dist/types/src/containers/DebugPanel/DebugPanelContext.d.ts +16 -0
  166. package/dist/types/src/containers/DebugPanel/DebugPanelContext.d.ts.map +1 -0
  167. package/dist/types/src/containers/DebugPanel/DebugPanelHeader.d.ts +14 -0
  168. package/dist/types/src/containers/DebugPanel/DebugPanelHeader.d.ts.map +1 -0
  169. package/dist/types/src/containers/DebugPanel/DebugPanelMain.d.ts +6 -0
  170. package/dist/types/src/containers/DebugPanel/DebugPanelMain.d.ts.map +1 -0
  171. package/dist/types/src/containers/DebugPanel/DebugPanelSidebar.d.ts +6 -0
  172. package/dist/types/src/containers/DebugPanel/DebugPanelSidebar.d.ts.map +1 -0
  173. package/dist/types/src/containers/DebugPanel/index.d.ts +7 -0
  174. package/dist/types/src/containers/DebugPanel/index.d.ts.map +1 -0
  175. package/dist/types/src/containers/DebugPanel/view-state.d.ts +46 -0
  176. package/dist/types/src/containers/DebugPanel/view-state.d.ts.map +1 -0
  177. package/dist/types/src/containers/DebugPanelDrawer/DebugPanelDrawer.d.ts +10 -0
  178. package/dist/types/src/containers/DebugPanelDrawer/DebugPanelDrawer.d.ts.map +1 -0
  179. package/dist/types/src/containers/DebugPanelDrawer/DebugPanelDrawer.stories.d.ts +114 -0
  180. package/dist/types/src/containers/DebugPanelDrawer/DebugPanelDrawer.stories.d.ts.map +1 -0
  181. package/dist/types/src/containers/DebugPanelDrawer/index.d.ts +2 -0
  182. package/dist/types/src/containers/DebugPanelDrawer/index.d.ts.map +1 -0
  183. package/dist/types/src/containers/DebugPanelStatus/DebugPanelStatus.d.ts +11 -0
  184. package/dist/types/src/containers/DebugPanelStatus/DebugPanelStatus.d.ts.map +1 -0
  185. package/dist/types/src/containers/DebugPanelStatus/DebugPanelStatus.stories.d.ts +107 -0
  186. package/dist/types/src/containers/DebugPanelStatus/DebugPanelStatus.stories.d.ts.map +1 -0
  187. package/dist/types/src/containers/DebugPanelStatus/index.d.ts +2 -0
  188. package/dist/types/src/containers/DebugPanelStatus/index.d.ts.map +1 -0
  189. package/dist/types/src/containers/DebugPortSettings/DebugPortSettings.d.ts.map +1 -1
  190. package/dist/types/src/containers/DebugPortSettings/DebugPortSettings.stories.d.ts +13 -4
  191. package/dist/types/src/containers/DebugPortSettings/DebugPortSettings.stories.d.ts.map +1 -1
  192. package/dist/types/src/containers/DebugPortSettings/index.d.ts +1 -1
  193. package/dist/types/src/containers/DebugPortSettings/index.d.ts.map +1 -1
  194. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts +2 -2
  195. package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +1 -1
  196. package/dist/types/src/containers/DebugSettings/DebugSettings.stories.d.ts +14 -5
  197. package/dist/types/src/containers/DebugSettings/DebugSettings.stories.d.ts.map +1 -1
  198. package/dist/types/src/containers/DebugSettings/index.d.ts +1 -1
  199. package/dist/types/src/containers/DebugSettings/index.d.ts.map +1 -1
  200. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +1 -1
  201. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -1
  202. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +1 -1
  203. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -1
  204. package/dist/types/src/containers/DebugStatus/index.d.ts +1 -1
  205. package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -1
  206. package/dist/types/src/containers/LoggerPanel/LoggerPanel.d.ts +6 -0
  207. package/dist/types/src/containers/LoggerPanel/LoggerPanel.d.ts.map +1 -0
  208. package/dist/types/src/containers/LoggerPanel/LoggerPanel.stories.d.ts +107 -0
  209. package/dist/types/src/containers/LoggerPanel/LoggerPanel.stories.d.ts.map +1 -0
  210. package/dist/types/src/containers/LoggerPanel/index.d.ts +2 -0
  211. package/dist/types/src/containers/LoggerPanel/index.d.ts.map +1 -0
  212. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
  213. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.stories.d.ts +13 -4
  214. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.stories.d.ts.map +1 -1
  215. package/dist/types/src/containers/SpaceGenerator/index.d.ts +1 -1
  216. package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -1
  217. package/dist/types/src/containers/StatsPanel/StatsPanel.d.ts +5 -1
  218. package/dist/types/src/containers/StatsPanel/StatsPanel.d.ts.map +1 -1
  219. package/dist/types/src/containers/StatsPanel/index.d.ts +1 -1
  220. package/dist/types/src/containers/StatsPanel/index.d.ts.map +1 -1
  221. package/dist/types/src/containers/Wireframe/Wireframe.d.ts +2 -2
  222. package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -1
  223. package/dist/types/src/containers/Wireframe/index.d.ts +1 -1
  224. package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -1
  225. package/dist/types/src/containers/index.d.ts +7 -1
  226. package/dist/types/src/containers/index.d.ts.map +1 -1
  227. package/dist/types/src/errors.d.ts +123 -0
  228. package/dist/types/src/errors.d.ts.map +1 -0
  229. package/dist/types/src/index.d.ts +2 -2
  230. package/dist/types/src/index.d.ts.map +1 -1
  231. package/dist/types/src/operations/DebugOperationHandlerSet.d.ts.map +1 -1
  232. package/dist/types/src/operations/create-space-from-template.d.ts +5 -0
  233. package/dist/types/src/operations/create-space-from-template.d.ts.map +1 -0
  234. package/dist/types/src/operations/errors.d.ts +33 -0
  235. package/dist/types/src/operations/errors.d.ts.map +1 -0
  236. package/dist/types/src/operations/index.d.ts +1 -1
  237. package/dist/types/src/operations/index.d.ts.map +1 -1
  238. package/dist/types/src/operations/open-page.d.ts +5 -0
  239. package/dist/types/src/operations/open-page.d.ts.map +1 -0
  240. package/dist/types/src/operations/snapshot.d.ts +5 -0
  241. package/dist/types/src/operations/snapshot.d.ts.map +1 -0
  242. package/dist/types/src/operations/snapshot.test.d.ts +2 -0
  243. package/dist/types/src/operations/snapshot.test.d.ts.map +1 -0
  244. package/dist/types/src/operations/undo.d.ts +5 -0
  245. package/dist/types/src/operations/undo.d.ts.map +1 -0
  246. package/dist/types/src/operations/undo.test.d.ts +2 -0
  247. package/dist/types/src/operations/undo.test.d.ts.map +1 -0
  248. package/dist/types/src/plugin.d.ts.map +1 -1
  249. package/dist/types/src/samples/crm/PipelineSpace.d.ts +21 -0
  250. package/dist/types/src/samples/crm/PipelineSpace.d.ts.map +1 -0
  251. package/dist/types/src/samples/crm/PipelineSpace.test.d.ts +2 -0
  252. package/dist/types/src/samples/crm/PipelineSpace.test.d.ts.map +1 -0
  253. package/dist/types/src/samples/crm/accounts.d.ts +55 -0
  254. package/dist/types/src/samples/crm/accounts.d.ts.map +1 -0
  255. package/dist/types/src/samples/crm/inbox.d.ts +14 -0
  256. package/dist/types/src/samples/crm/inbox.d.ts.map +1 -0
  257. package/dist/types/src/samples/crm/pipeline.d.ts +9 -0
  258. package/dist/types/src/samples/crm/pipeline.d.ts.map +1 -0
  259. package/dist/types/src/samples/crm/util.d.ts +14 -0
  260. package/dist/types/src/samples/crm/util.d.ts.map +1 -0
  261. package/dist/types/src/samples/incident/IncidentSpace.d.ts +21 -0
  262. package/dist/types/src/samples/incident/IncidentSpace.d.ts.map +1 -0
  263. package/dist/types/src/samples/incident/IncidentSpace.test.d.ts +2 -0
  264. package/dist/types/src/samples/incident/IncidentSpace.test.d.ts.map +1 -0
  265. package/dist/types/src/samples/incident/docs.d.ts +14 -0
  266. package/dist/types/src/samples/incident/docs.d.ts.map +1 -0
  267. package/dist/types/src/samples/incident/project.d.ts +16 -0
  268. package/dist/types/src/samples/incident/project.d.ts.map +1 -0
  269. package/dist/types/src/samples/incident/tasks.d.ts +9 -0
  270. package/dist/types/src/samples/incident/tasks.d.ts.map +1 -0
  271. package/dist/types/src/samples/incident/util.d.ts +32 -0
  272. package/dist/types/src/samples/incident/util.d.ts.map +1 -0
  273. package/dist/types/src/samples/index.d.ts +8 -0
  274. package/dist/types/src/samples/index.d.ts.map +1 -0
  275. package/dist/types/src/samples/review/ReviewSpace.d.ts +19 -0
  276. package/dist/types/src/samples/review/ReviewSpace.d.ts.map +1 -0
  277. package/dist/types/src/samples/review/ReviewSpace.test.d.ts +2 -0
  278. package/dist/types/src/samples/review/ReviewSpace.test.d.ts.map +1 -0
  279. package/dist/types/src/samples/review/assets.d.ts +19 -0
  280. package/dist/types/src/samples/review/assets.d.ts.map +1 -0
  281. package/dist/types/src/samples/review/util.d.ts +4 -0
  282. package/dist/types/src/samples/review/util.d.ts.map +1 -0
  283. package/dist/types/src/samples/review/work.d.ts +15 -0
  284. package/dist/types/src/samples/review/work.d.ts.map +1 -0
  285. package/dist/types/src/samples/stockfish/StockfishSpace.d.ts +27 -0
  286. package/dist/types/src/samples/stockfish/StockfishSpace.d.ts.map +1 -0
  287. package/dist/types/src/samples/stockfish/StockfishSpace.test.d.ts +2 -0
  288. package/dist/types/src/samples/stockfish/StockfishSpace.test.d.ts.map +1 -0
  289. package/dist/types/src/samples/stockfish/docs.d.ts +8 -0
  290. package/dist/types/src/samples/stockfish/docs.d.ts.map +1 -0
  291. package/dist/types/src/samples/stockfish/game.d.ts +10 -0
  292. package/dist/types/src/samples/stockfish/game.d.ts.map +1 -0
  293. package/dist/types/src/samples/stockfish/project.d.ts +31 -0
  294. package/dist/types/src/samples/stockfish/project.d.ts.map +1 -0
  295. package/dist/types/src/samples/stockfish/run.test.d.ts +2 -0
  296. package/dist/types/src/samples/stockfish/run.test.d.ts.map +1 -0
  297. package/dist/types/src/samples/stockfish/skill.d.ts +8 -0
  298. package/dist/types/src/samples/stockfish/skill.d.ts.map +1 -0
  299. package/dist/types/src/samples/stockfish/tasks.d.ts +12 -0
  300. package/dist/types/src/samples/stockfish/tasks.d.ts.map +1 -0
  301. package/dist/types/src/samples/stockfish/util.d.ts +14 -0
  302. package/dist/types/src/samples/stockfish/util.d.ts.map +1 -0
  303. package/dist/types/src/samples/tidepool/TidepoolSpace.d.ts +22 -0
  304. package/dist/types/src/samples/tidepool/TidepoolSpace.d.ts.map +1 -0
  305. package/dist/types/src/samples/tidepool/TidepoolSpace.test.d.ts +2 -0
  306. package/dist/types/src/samples/tidepool/TidepoolSpace.test.d.ts.map +1 -0
  307. package/dist/types/src/samples/tidepool/docs.d.ts +12 -0
  308. package/dist/types/src/samples/tidepool/docs.d.ts.map +1 -0
  309. package/dist/types/src/samples/tidepool/project.d.ts +20 -0
  310. package/dist/types/src/samples/tidepool/project.d.ts.map +1 -0
  311. package/dist/types/src/samples/tidepool/tasks.d.ts +14 -0
  312. package/dist/types/src/samples/tidepool/tasks.d.ts.map +1 -0
  313. package/dist/types/src/samples/tidepool/team.d.ts +9 -0
  314. package/dist/types/src/samples/tidepool/team.d.ts.map +1 -0
  315. package/dist/types/src/samples/tidepool/util.d.ts +14 -0
  316. package/dist/types/src/samples/tidepool/util.d.ts.map +1 -0
  317. package/dist/types/src/samples/weather/WeatherSpace.d.ts +21 -0
  318. package/dist/types/src/samples/weather/WeatherSpace.d.ts.map +1 -0
  319. package/dist/types/src/samples/weather/WeatherSpace.test.d.ts +2 -0
  320. package/dist/types/src/samples/weather/WeatherSpace.test.d.ts.map +1 -0
  321. package/dist/types/src/samples/weather/project.d.ts +20 -0
  322. package/dist/types/src/samples/weather/project.d.ts.map +1 -0
  323. package/dist/types/src/samples/weather/skill.d.ts +12 -0
  324. package/dist/types/src/samples/weather/skill.d.ts.map +1 -0
  325. package/dist/types/src/samples/weather/tasks.d.ts +9 -0
  326. package/dist/types/src/samples/weather/tasks.d.ts.map +1 -0
  327. package/dist/types/src/samples/weather/util.d.ts +16 -0
  328. package/dist/types/src/samples/weather/util.d.ts.map +1 -0
  329. package/dist/types/src/samples/worker/WorkerSpace.d.ts +22 -0
  330. package/dist/types/src/samples/worker/WorkerSpace.d.ts.map +1 -0
  331. package/dist/types/src/samples/worker/WorkerSpace.test.d.ts +2 -0
  332. package/dist/types/src/samples/worker/WorkerSpace.test.d.ts.map +1 -0
  333. package/dist/types/src/samples/worker/project.d.ts +18 -0
  334. package/dist/types/src/samples/worker/project.d.ts.map +1 -0
  335. package/dist/types/src/samples/worker/tasks.d.ts +9 -0
  336. package/dist/types/src/samples/worker/tasks.d.ts.map +1 -0
  337. package/dist/types/src/samples/worker/util.d.ts +14 -0
  338. package/dist/types/src/samples/worker/util.d.ts.map +1 -0
  339. package/dist/types/src/stories/SpaceTemplates.stories.d.ts +114 -0
  340. package/dist/types/src/stories/SpaceTemplates.stories.d.ts.map +1 -0
  341. package/dist/types/src/testing/index.d.ts +3 -0
  342. package/dist/types/src/testing/index.d.ts.map +1 -0
  343. package/dist/types/src/testing/stub-drawer-plugin.d.ts +8 -0
  344. package/dist/types/src/testing/stub-drawer-plugin.d.ts.map +1 -0
  345. package/dist/types/src/testing/stub-tools-plugin.d.ts +19 -0
  346. package/dist/types/src/testing/stub-tools-plugin.d.ts.map +1 -0
  347. package/dist/types/src/translations.d.ts +13 -4
  348. package/dist/types/src/translations.d.ts.map +1 -1
  349. package/dist/types/src/types/Debug.d.ts +2 -2
  350. package/dist/types/src/types/Debug.d.ts.map +1 -1
  351. package/dist/types/src/types/DebugNodes.d.ts +13 -1
  352. package/dist/types/src/types/DebugNodes.d.ts.map +1 -1
  353. package/dist/types/src/types/DebugOperation.d.ts +119 -0
  354. package/dist/types/src/types/DebugOperation.d.ts.map +1 -1
  355. package/dist/types/src/types/DebugSurface.d.ts +7 -0
  356. package/dist/types/src/types/DebugSurface.d.ts.map +1 -1
  357. package/dist/types/src/types/index.d.ts +6 -6
  358. package/dist/types/src/types/index.d.ts.map +1 -1
  359. package/dist/types/tsconfig.tsbuildinfo +1 -1
  360. package/dx.config.ts +3 -2
  361. package/package.json +129 -73
  362. package/scripts/build-template-archive.ts +65 -0
  363. package/src/DebugPlugin.ts +1 -1
  364. package/src/capabilities/DebugSurfaces.tsx +85 -71
  365. package/src/capabilities/app-graph-builder.test.ts +45 -0
  366. package/src/capabilities/app-graph-builder.ts +83 -46
  367. package/src/capabilities/gen/browser.ts +85 -0
  368. package/src/capabilities/gen/node.ts +15 -8
  369. package/src/capabilities/gen/tauri.ts +85 -0
  370. package/src/capabilities/gen/workerd.ts +11 -4
  371. package/src/capabilities/graph-retention.ts +23 -0
  372. package/src/capabilities/index.ts +18 -10
  373. package/src/capabilities/log-recording.ts +20 -1
  374. package/src/capabilities/operation-handler.ts +9 -0
  375. package/src/capabilities/react-surface.ts +33 -29
  376. package/src/capabilities/settings.ts +2 -2
  377. package/src/capabilities/space-templates.ts +25 -0
  378. package/src/capabilities/stats-panel.ts +1 -1
  379. package/src/components/SchemaTable/SchemaTable.tsx +44 -10
  380. package/src/components/SchemaTable/index.ts +1 -1
  381. package/src/components/SpaceGenerator/ObjectGenerator.tsx +22 -2
  382. package/src/components/SpaceGenerator/index.ts +2 -2
  383. package/src/components/SpaceGenerator/presets.ts +4 -4
  384. package/src/components/index.ts +2 -2
  385. package/src/containers/DebugConsole/DebugConsole.stories.tsx +29 -0
  386. package/src/containers/DebugConsole/DebugConsole.tsx +94 -0
  387. package/src/containers/DebugConsole/cli.ts +296 -0
  388. package/src/containers/DebugConsole/index.ts +5 -0
  389. package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +44 -44
  390. package/src/containers/DebugObjectPanel/index.ts +1 -1
  391. package/src/containers/DebugPanel/DebugPanel.stories.tsx +118 -0
  392. package/src/containers/DebugPanel/DebugPanel.tsx +72 -0
  393. package/src/containers/DebugPanel/DebugPanelContext.ts +33 -0
  394. package/src/containers/DebugPanel/DebugPanelHeader.tsx +54 -0
  395. package/src/containers/DebugPanel/DebugPanelMain.tsx +116 -0
  396. package/src/containers/DebugPanel/DebugPanelSidebar.tsx +123 -0
  397. package/src/containers/DebugPanel/index.ts +10 -0
  398. package/src/containers/DebugPanel/view-state.ts +60 -0
  399. package/src/containers/DebugPanelDrawer/DebugPanelDrawer.stories.tsx +92 -0
  400. package/src/containers/DebugPanelDrawer/DebugPanelDrawer.tsx +72 -0
  401. package/src/containers/DebugPanelDrawer/index.ts +5 -0
  402. package/src/containers/DebugPanelStatus/DebugPanelStatus.stories.tsx +119 -0
  403. package/src/containers/DebugPanelStatus/DebugPanelStatus.tsx +167 -0
  404. package/src/containers/DebugPanelStatus/index.ts +5 -0
  405. package/src/containers/DebugPortSettings/DebugPortSettings.stories.tsx +2 -2
  406. package/src/containers/DebugPortSettings/DebugPortSettings.tsx +33 -40
  407. package/src/containers/DebugPortSettings/index.ts +1 -1
  408. package/src/containers/DebugSettings/DebugSettings.stories.tsx +1 -1
  409. package/src/containers/DebugSettings/DebugSettings.tsx +71 -64
  410. package/src/containers/DebugSettings/index.ts +1 -1
  411. package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +39 -28
  412. package/src/containers/DebugSpaceObjectsPanel/index.ts +1 -1
  413. package/src/containers/DebugStatus/DebugStatus.tsx +10 -10
  414. package/src/containers/DebugStatus/index.ts +1 -1
  415. package/src/containers/LoggerPanel/LoggerPanel.stories.tsx +62 -0
  416. package/src/containers/LoggerPanel/LoggerPanel.tsx +28 -0
  417. package/src/containers/LoggerPanel/index.ts +5 -0
  418. package/src/containers/SpaceGenerator/SpaceGenerator.stories.tsx +8 -8
  419. package/src/containers/SpaceGenerator/SpaceGenerator.tsx +102 -73
  420. package/src/containers/SpaceGenerator/index.ts +1 -1
  421. package/src/containers/StatsPanel/StatsPanel.tsx +32 -31
  422. package/src/containers/StatsPanel/index.ts +1 -1
  423. package/src/containers/Wireframe/Wireframe.tsx +8 -7
  424. package/src/containers/Wireframe/index.ts +1 -1
  425. package/src/containers/index.ts +22 -9
  426. package/src/errors.ts +23 -0
  427. package/src/index.ts +2 -2
  428. package/src/meta.ts +1 -1
  429. package/src/operations/DebugOperationHandlerSet.ts +5 -1
  430. package/src/operations/create-space-from-template.ts +57 -0
  431. package/src/operations/errors.ts +8 -0
  432. package/src/operations/index.ts +1 -1
  433. package/src/operations/open-page.ts +51 -0
  434. package/src/operations/snapshot.test.ts +57 -0
  435. package/src/operations/snapshot.ts +243 -0
  436. package/src/operations/undo.test.ts +19 -0
  437. package/src/operations/undo.ts +28 -0
  438. package/src/plugin.tsx +4 -0
  439. package/src/samples/crm/PipelineSpace.test.ts +55 -0
  440. package/src/samples/crm/PipelineSpace.ts +52 -0
  441. package/src/samples/crm/accounts.ts +153 -0
  442. package/src/samples/crm/inbox.ts +158 -0
  443. package/src/samples/crm/pipeline.ts +70 -0
  444. package/src/samples/crm/util.ts +18 -0
  445. package/src/samples/incident/IncidentSpace.test.ts +68 -0
  446. package/src/samples/incident/IncidentSpace.ts +61 -0
  447. package/src/samples/incident/docs.ts +111 -0
  448. package/src/samples/incident/project.ts +61 -0
  449. package/src/samples/incident/tasks.ts +101 -0
  450. package/src/samples/incident/util.ts +24 -0
  451. package/src/samples/index.ts +11 -0
  452. package/src/samples/review/ReviewSpace.test.ts +89 -0
  453. package/src/samples/review/ReviewSpace.ts +47 -0
  454. package/src/samples/review/assets.ts +123 -0
  455. package/src/samples/review/util.ts +10 -0
  456. package/src/samples/review/work.ts +249 -0
  457. package/src/samples/stockfish/StockfishSpace.test.ts +129 -0
  458. package/src/samples/stockfish/StockfishSpace.ts +70 -0
  459. package/src/samples/stockfish/docs.ts +65 -0
  460. package/src/samples/stockfish/game.ts +47 -0
  461. package/src/samples/stockfish/project.ts +87 -0
  462. package/src/samples/stockfish/run.test.ts +193 -0
  463. package/src/samples/stockfish/skill.ts +154 -0
  464. package/src/samples/stockfish/tasks.ts +306 -0
  465. package/src/samples/stockfish/util.ts +17 -0
  466. package/src/samples/tidepool/TidepoolSpace.test.ts +61 -0
  467. package/src/samples/tidepool/TidepoolSpace.ts +65 -0
  468. package/src/samples/tidepool/docs.ts +140 -0
  469. package/src/samples/tidepool/project.ts +57 -0
  470. package/src/samples/tidepool/tasks.ts +252 -0
  471. package/src/samples/tidepool/team.ts +87 -0
  472. package/src/samples/tidepool/util.ts +18 -0
  473. package/src/samples/weather/WeatherSpace.test.ts +93 -0
  474. package/src/samples/weather/WeatherSpace.ts +59 -0
  475. package/src/samples/weather/project.ts +76 -0
  476. package/src/samples/weather/skill.ts +45 -0
  477. package/src/samples/weather/tasks.ts +98 -0
  478. package/src/samples/weather/util.ts +21 -0
  479. package/src/samples/worker/WorkerSpace.test.ts +102 -0
  480. package/src/samples/worker/WorkerSpace.ts +56 -0
  481. package/src/samples/worker/project.ts +72 -0
  482. package/src/samples/worker/tasks.ts +119 -0
  483. package/src/samples/worker/util.ts +17 -0
  484. package/src/stories/SpaceTemplates.stories.tsx +105 -0
  485. package/src/testing/index.ts +6 -0
  486. package/src/testing/stub-drawer-plugin.ts +65 -0
  487. package/src/testing/stub-tools-plugin.tsx +95 -0
  488. package/src/translations.ts +15 -6
  489. package/src/types/Debug.ts +2 -2
  490. package/src/types/DebugNodes.ts +21 -1
  491. package/src/types/DebugOperation.ts +206 -0
  492. package/src/types/DebugSurface.ts +7 -0
  493. package/src/types/index.ts +6 -6
  494. package/dist/lib/chunk-LogStatus.mjs +0 -44
  495. package/dist/lib/chunk-LogStatus.mjs.map +0 -1
  496. package/dist/types/src/containers/LogStatus/LogStatus.d.ts +0 -6
  497. package/dist/types/src/containers/LogStatus/LogStatus.d.ts.map +0 -1
  498. package/dist/types/src/containers/LogStatus/index.d.ts +0 -2
  499. package/dist/types/src/containers/LogStatus/index.d.ts.map +0 -1
  500. package/src/containers/LogStatus/LogStatus.tsx +0 -51
  501. package/src/containers/LogStatus/index.ts +0 -5
@@ -0,0 +1,103 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import { DebugConsole } from './DebugConsole.tsx';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof DebugConsole;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ translations: [{
9
+ readonly 'en-US': {
10
+ readonly "@dxos/react-ui-debug": {
11
+ readonly 'filter.placeholder': 'Filter (e.g. space-proxy:debug)';
12
+ readonly 'level.label': 'Level';
13
+ readonly 'record.label': 'Record';
14
+ readonly 'clear.label': 'Clear';
15
+ readonly 'copy.label': 'Copy log';
16
+ readonly 'copy-entry.label': 'Copy entry';
17
+ readonly 'levels.label': 'Log levels';
18
+ readonly 'levels.reset.label': 'Reset all levels';
19
+ readonly 'levels.inherit.label': 'Inherit';
20
+ readonly 'levels.empty.message': 'No log files registered yet.';
21
+ readonly 'levels.filter.placeholder': 'Filter files…';
22
+ readonly 'empty.message': 'No log entries.';
23
+ readonly 'search.placeholder': 'Find in buffer…';
24
+ readonly 'search.clear.label': 'Clear filter';
25
+ readonly 'search.no-matches.message': 'No matching entries.';
26
+ readonly 'level.trace': 'Trace';
27
+ readonly 'level.debug': 'Debug';
28
+ readonly 'level.verbose': 'Verbose';
29
+ readonly 'level.info': 'Info';
30
+ readonly 'level.warn': 'Warn';
31
+ readonly 'level.error': 'Error';
32
+ };
33
+ };
34
+ }, {
35
+ readonly 'en-US': {
36
+ readonly [x: string]: {
37
+ readonly 'plugin.name': 'Debug';
38
+ readonly 'debug.label': 'Debug';
39
+ readonly 'generate-objects.label': 'Generate Objects';
40
+ readonly 'create-space-from-template.label': 'Create space from template: {{label}}';
41
+ readonly 'space-objects.label': 'Database';
42
+ readonly 'open-debug-panel.label': 'Show debug panel';
43
+ readonly 'console.tab.label': 'Console';
44
+ readonly 'logs.tab.label': 'Logs';
45
+ readonly 'debug-panel.title': 'Debug';
46
+ readonly 'debug-panel.empty.label': 'Select a tool';
47
+ readonly 'debug-panel.tree.label': 'Debug tools';
48
+ readonly 'debug-port-status.running.label': 'Agent debug port is open — show debug panel';
49
+ readonly 'dock-panel.label': 'Dock panel';
50
+ readonly 'float-panel.label': 'Float panel';
51
+ readonly 'close-panel.label': 'Close';
52
+ readonly 'console.clear.label': 'Clear log';
53
+ readonly 'console.copy.label': 'Copy last result';
54
+ readonly 'remove-all-objects.confirm.description': 'Remove all objects from this space? This cannot be undone.';
55
+ readonly 'remove-all-objects.error.title': 'Failed to remove objects.';
56
+ readonly 'remove-all-objects.toast.title': 'Space cleared';
57
+ readonly 'remove-all-objects.toast.description_one': 'Removed {{count}} object.';
58
+ readonly 'remove-all-objects.toast.description_other': 'Removed {{count}} objects.';
59
+ readonly 'collect-garbage.confirm.description': "Permanently reclaim this space's deleted objects? This cannot be undone.";
60
+ readonly 'collect-garbage.error.title': 'Garbage collection failed.';
61
+ readonly 'collect-garbage.toast.title': 'Garbage collected';
62
+ readonly 'collect-garbage.toast.empty.description': 'Nothing to reclaim.';
63
+ readonly 'collect-garbage.toast.description_one': 'Reclaimed {{count}} document.';
64
+ readonly 'collect-garbage.toast.description_other': 'Reclaimed {{count}} documents.';
65
+ readonly 'settings.wireframe.label': 'Show wireframes.';
66
+ readonly 'settings.wireframe.description': 'Overlay wireframe outlines on UI components for debugging layout.';
67
+ readonly 'settings.trace-all.label': 'Trace all requests (100% sampling).';
68
+ readonly 'settings.trace-all.description': 'Override the default 30% sampling rate to capture all traces. Requires page reload to take effect.';
69
+ readonly 'settings.tracing-panel.label': 'Open tracing panel.';
70
+ readonly 'settings.tracing-panel.description': 'Open the tracing dashboard to inspect captured spans.';
71
+ readonly 'settings.repair.label': 'Run repair tool.';
72
+ readonly 'settings.repair.description': 'Attempt to detect and fix inconsistencies in local data storage.';
73
+ readonly 'settings.download-diagnostics.label': 'Download diagnostics.';
74
+ readonly 'settings.download-diagnostics.description': 'Export a JSON file containing client diagnostics for troubleshooting.';
75
+ readonly 'settings.download-logs.label': 'Download log buffer.';
76
+ readonly 'settings.download-logs.description': 'Export the in-memory log buffer as an NDJSON file.';
77
+ readonly 'settings.uploaded.message': 'Settings uploaded.';
78
+ readonly 'settings.uploaded.description': 'URL copied to clipboard.';
79
+ readonly 'settings.choose-storage-adaptor.label': 'Storage adaptor (worker reload required).';
80
+ readonly 'settings.choose-storage-adaptor.description': 'Select the browser storage backend. Changing this requires a worker reload and may make existing data unavailable.';
81
+ readonly 'settings.repair-success.message': 'Repair succeeded';
82
+ readonly 'settings.repair-failed.message': 'Repair failed';
83
+ readonly 'settings.storage-adaptor.idb.label': 'IndexedDB';
84
+ readonly 'settings.storage-adaptor.opfs.label': 'OPFS';
85
+ readonly 'settings.storage-adapter.changed-alert.message': 'Warning: Swapping the storage adapter will make your data unavailable.';
86
+ readonly 'settings.data-store.label': 'Data Store';
87
+ readonly 'settings.debug-port.section.label': 'Agent debug port';
88
+ readonly 'settings.debug-port.section.description': 'Lets a local agent evaluate code against this page via composer-recovery.js. Off by default; stops on reload.';
89
+ readonly 'settings.debug-port.label': 'Open debug port.';
90
+ readonly 'settings.debug-port.description': 'Runs arbitrary code from a loopback server with full access to your data. Only enable while you are working with an agent you trust.';
91
+ readonly 'settings.debug-port.running.label': 'Listening on';
92
+ readonly 'settings.debug-port.session.label': 'Session id';
93
+ readonly 'settings.debug-port.session.description': 'Pass to composer-recovery.js --session. A new id is issued on every restart.';
94
+ readonly 'settings.debug-port.log.label': 'Debug port log';
95
+ };
96
+ };
97
+ }];
98
+ };
99
+ };
100
+ export default meta;
101
+ type Story = StoryObj<typeof meta>;
102
+ export declare const Default: Story;
103
+ //# sourceMappingURL=DebugConsole.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugConsole.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugConsole/DebugConsole.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOjE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import * as Command from 'effect/cli/Command';
2
+ import * as Layer from 'effect/Layer';
3
+ import * as Capability from '@dxos/app-framework/Capability';
4
+ import * as Plugin from '@dxos/app-framework/Plugin';
5
+ import type * as PluginManager from '@dxos/app-framework/PluginManager';
6
+ import { BaseError } from '@dxos/errors';
7
+ import { DebugOperationError } from '../../operations/errors.ts';
8
+ /**
9
+ * The debug console's command set — the introspection surface an agent uses over the debug port
10
+ * (operations, snapshot, plugin management), driveable by hand. Operations are invoked through the
11
+ * same invoker the agent path uses, so the two surfaces cannot drift.
12
+ */
13
+ export type DebugCli = {
14
+ command: ReturnType<typeof makeCommand>;
15
+ layer: Layer.Layer<Plugin.Service | Capability.Service, never, never>;
16
+ };
17
+ export type DebugCliOptions = {
18
+ /** Receives each command result as printed — the clipboard source for "copy last result". */
19
+ onResult?: (text: string) => void;
20
+ };
21
+ declare const makeCommand: (options?: DebugCliOptions) => Command.Command<"debug", {}, {}, BaseError<any> | DebugOperationError, Plugin.Service>;
22
+ export declare const createDebugCli: (manager: PluginManager.PluginManager, options?: DebugCliOptions) => DebugCli;
23
+ export {};
24
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugConsole/cli.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAI9C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAGtC,OAAO,KAAK,UAAU,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,KAAK,aAAa,MAAM,mCAAmC,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACxC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;CACvE,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAoEF,QAAA,MAAM,WAAW,aAAa,eAAe,2FAuL5C,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,aAAa,CAAC,aAAa,YAAY,eAAe,KAAG,QAM/F,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './DebugConsole.tsx';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugConsole/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AppSurface } from '@dxos/app-toolkit/ui';
2
+ import * as AppSurface from '@dxos/app-toolkit/AppSurface';
3
3
  import { type Entity, Obj } from '@dxos/echo';
4
4
  export type DebugObjectPanelProps = Pick<AppSurface.ObjectArticleProps<Obj.Unknown, {}, Obj.Unknown>, 'role' | 'companionTo'> & {
5
5
  onOpen?: (object: Obj.Unknown) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"DebugObjectPanel.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugObjectPanel/DebugObjectPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,KAAK,MAAM,EAAgB,GAAG,EAAS,MAAM,YAAY,CAAC;AAOnE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,UAAU,CAAC,kBAAkB,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC,EAC3D,MAAM,GAAG,aAAa,CACvB,GAAG;IACF,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,KAAK,OAAO,CAAC;CAChD,CAAC;yCAE+B,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,qBAAqB"}
1
+ {"version":3,"file":"DebugObjectPanel.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugObjectPanel/DebugObjectPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAE3D,OAAO,EAAE,KAAK,MAAM,EAAgB,GAAG,EAAS,MAAM,YAAY,CAAC;AASnE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,UAAU,CAAC,kBAAkB,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC,EAC3D,MAAM,GAAG,aAAa,CACvB,GAAG;IACF,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,KAAK,OAAO,CAAC;CAChD,CAAC;yCAE+B,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,qBAAqB"}
@@ -1,2 +1,2 @@
1
- export { DebugObjectPanel as default } from './DebugObjectPanel';
1
+ export { DebugObjectPanel as default } from './DebugObjectPanel.tsx';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugObjectPanel/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugObjectPanel/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ import { DebugPanelMain } from './DebugPanelMain.tsx';
3
+ import { DebugPanelSidebar } from './DebugPanelSidebar.tsx';
4
+ export type DebugPanelRootProps = PropsWithChildren<{
5
+ /** Overridable so a second host (or a story) gets its own selection rather than the rail's. */
6
+ contextId?: string;
7
+ }>;
8
+ /**
9
+ * The debug surface in parts, so a host places the tree and the page where the room is — the
10
+ * floating window and the deck's drawer both split them under a title bar. `Root` owns the
11
+ * selection, the expanded branches and the mode, persisted so a debugging session survives the
12
+ * reloads it provokes.
13
+ */
14
+ declare const DebugPanelRoot: {
15
+ ({ contextId, children }: DebugPanelRootProps): React.JSX.Element;
16
+ displayName: string;
17
+ };
18
+ /** The tree beside the selected tool's page, split the same way in every host. */
19
+ declare const DebugPanelBody: {
20
+ (): React.JSX.Element;
21
+ displayName: string;
22
+ };
23
+ export declare const DebugPanel: {
24
+ Root: typeof DebugPanelRoot;
25
+ Body: typeof DebugPanelBody;
26
+ Sidebar: typeof DebugPanelSidebar;
27
+ Main: typeof DebugPanelMain;
28
+ };
29
+ export {};
30
+ //# sourceMappingURL=DebugPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugPanel.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanel/DebugPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAM5E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;IAClD,+FAA+F;IAC/F,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH;;;;;GAKG;AACH,QAAA,MAAM,cAAc;8BAAmD,mBAAmB;;CAmBzF,CAAC;AAOF,kFAAkF;AAClF,QAAA,MAAM,cAAc;;;CAUnB,CAAC;AAIF,eAAO,MAAM,UAAU;IACrB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,IAAI;CACL,CAAC"}
@@ -0,0 +1,126 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ import { type DebugPanelRootProps } from './DebugPanel.tsx';
4
+ /**
5
+ * The body as every host splits it, sized by the story: the tree over the hidden debug category
6
+ * beside the selected tool's article. Selection and open branches come from persisted view state,
7
+ * so choosing a tool here survives a reload of the story.
8
+ */
9
+ declare const Render: (props: DebugPanelRootProps) => React.JSX.Element;
10
+ declare const meta: {
11
+ title: string;
12
+ component: {
13
+ ({ contextId, children }: DebugPanelRootProps): React.JSX.Element;
14
+ displayName: string;
15
+ };
16
+ render: typeof Render;
17
+ decorators: import("@storybook/react").Decorator[];
18
+ parameters: {
19
+ translations: [{
20
+ readonly 'en-US': {
21
+ readonly "@dxos/react-ui-debug": {
22
+ readonly 'filter.placeholder': 'Filter (e.g. space-proxy:debug)';
23
+ readonly 'level.label': 'Level';
24
+ readonly 'record.label': 'Record';
25
+ readonly 'clear.label': 'Clear';
26
+ readonly 'copy.label': 'Copy log';
27
+ readonly 'copy-entry.label': 'Copy entry';
28
+ readonly 'levels.label': 'Log levels';
29
+ readonly 'levels.reset.label': 'Reset all levels';
30
+ readonly 'levels.inherit.label': 'Inherit';
31
+ readonly 'levels.empty.message': 'No log files registered yet.';
32
+ readonly 'levels.filter.placeholder': 'Filter files…';
33
+ readonly 'empty.message': 'No log entries.';
34
+ readonly 'search.placeholder': 'Find in buffer…';
35
+ readonly 'search.clear.label': 'Clear filter';
36
+ readonly 'search.no-matches.message': 'No matching entries.';
37
+ readonly 'level.trace': 'Trace';
38
+ readonly 'level.debug': 'Debug';
39
+ readonly 'level.verbose': 'Verbose';
40
+ readonly 'level.info': 'Info';
41
+ readonly 'level.warn': 'Warn';
42
+ readonly 'level.error': 'Error';
43
+ };
44
+ };
45
+ }, {
46
+ readonly 'en-US': {
47
+ readonly [x: string]: {
48
+ readonly 'plugin.name': 'Debug';
49
+ readonly 'debug.label': 'Debug';
50
+ readonly 'generate-objects.label': 'Generate Objects';
51
+ readonly 'create-space-from-template.label': 'Create space from template: {{label}}';
52
+ readonly 'space-objects.label': 'Database';
53
+ readonly 'open-debug-panel.label': 'Show debug panel';
54
+ readonly 'console.tab.label': 'Console';
55
+ readonly 'logs.tab.label': 'Logs';
56
+ readonly 'debug-panel.title': 'Debug';
57
+ readonly 'debug-panel.empty.label': 'Select a tool';
58
+ readonly 'debug-panel.tree.label': 'Debug tools';
59
+ readonly 'debug-port-status.running.label': 'Agent debug port is open — show debug panel';
60
+ readonly 'dock-panel.label': 'Dock panel';
61
+ readonly 'float-panel.label': 'Float panel';
62
+ readonly 'close-panel.label': 'Close';
63
+ readonly 'console.clear.label': 'Clear log';
64
+ readonly 'console.copy.label': 'Copy last result';
65
+ readonly 'remove-all-objects.confirm.description': 'Remove all objects from this space? This cannot be undone.';
66
+ readonly 'remove-all-objects.error.title': 'Failed to remove objects.';
67
+ readonly 'remove-all-objects.toast.title': 'Space cleared';
68
+ readonly 'remove-all-objects.toast.description_one': 'Removed {{count}} object.';
69
+ readonly 'remove-all-objects.toast.description_other': 'Removed {{count}} objects.';
70
+ readonly 'collect-garbage.confirm.description': "Permanently reclaim this space's deleted objects? This cannot be undone.";
71
+ readonly 'collect-garbage.error.title': 'Garbage collection failed.';
72
+ readonly 'collect-garbage.toast.title': 'Garbage collected';
73
+ readonly 'collect-garbage.toast.empty.description': 'Nothing to reclaim.';
74
+ readonly 'collect-garbage.toast.description_one': 'Reclaimed {{count}} document.';
75
+ readonly 'collect-garbage.toast.description_other': 'Reclaimed {{count}} documents.';
76
+ readonly 'settings.wireframe.label': 'Show wireframes.';
77
+ readonly 'settings.wireframe.description': 'Overlay wireframe outlines on UI components for debugging layout.';
78
+ readonly 'settings.trace-all.label': 'Trace all requests (100% sampling).';
79
+ readonly 'settings.trace-all.description': 'Override the default 30% sampling rate to capture all traces. Requires page reload to take effect.';
80
+ readonly 'settings.tracing-panel.label': 'Open tracing panel.';
81
+ readonly 'settings.tracing-panel.description': 'Open the tracing dashboard to inspect captured spans.';
82
+ readonly 'settings.repair.label': 'Run repair tool.';
83
+ readonly 'settings.repair.description': 'Attempt to detect and fix inconsistencies in local data storage.';
84
+ readonly 'settings.download-diagnostics.label': 'Download diagnostics.';
85
+ readonly 'settings.download-diagnostics.description': 'Export a JSON file containing client diagnostics for troubleshooting.';
86
+ readonly 'settings.download-logs.label': 'Download log buffer.';
87
+ readonly 'settings.download-logs.description': 'Export the in-memory log buffer as an NDJSON file.';
88
+ readonly 'settings.uploaded.message': 'Settings uploaded.';
89
+ readonly 'settings.uploaded.description': 'URL copied to clipboard.';
90
+ readonly 'settings.choose-storage-adaptor.label': 'Storage adaptor (worker reload required).';
91
+ readonly 'settings.choose-storage-adaptor.description': 'Select the browser storage backend. Changing this requires a worker reload and may make existing data unavailable.';
92
+ readonly 'settings.repair-success.message': 'Repair succeeded';
93
+ readonly 'settings.repair-failed.message': 'Repair failed';
94
+ readonly 'settings.storage-adaptor.idb.label': 'IndexedDB';
95
+ readonly 'settings.storage-adaptor.opfs.label': 'OPFS';
96
+ readonly 'settings.storage-adapter.changed-alert.message': 'Warning: Swapping the storage adapter will make your data unavailable.';
97
+ readonly 'settings.data-store.label': 'Data Store';
98
+ readonly 'settings.debug-port.section.label': 'Agent debug port';
99
+ readonly 'settings.debug-port.section.description': 'Lets a local agent evaluate code against this page via composer-recovery.js. Off by default; stops on reload.';
100
+ readonly 'settings.debug-port.label': 'Open debug port.';
101
+ readonly 'settings.debug-port.description': 'Runs arbitrary code from a loopback server with full access to your data. Only enable while you are working with an agent you trust.';
102
+ readonly 'settings.debug-port.running.label': 'Listening on';
103
+ readonly 'settings.debug-port.session.label': 'Session id';
104
+ readonly 'settings.debug-port.session.description': 'Pass to composer-recovery.js --session. A new id is issued on every restart.';
105
+ readonly 'settings.debug-port.log.label': 'Debug port log';
106
+ };
107
+ };
108
+ }];
109
+ };
110
+ };
111
+ export default meta;
112
+ type Story = StoryObj<typeof meta>;
113
+ /** Its own context, so exercising the story does not decide which tool the app's rail opens on. */
114
+ export declare const Default: Story;
115
+ /**
116
+ * Console, then Logs, then a stub page under the branch, then the console again: the console stays
117
+ * mounted (hidden) throughout, while the stub page is gone once it is no longer selected.
118
+ */
119
+ export declare const Select: Story;
120
+ /**
121
+ * A reload with a page selected under an open branch: the branch's pages come from a connector that
122
+ * only runs on expansion, so the panel has to expand what the persisted state names before either
123
+ * the row or the page can render.
124
+ */
125
+ export declare const Restore: Story;
126
+ //# sourceMappingURL=DebugPanel.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugPanel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanel/DebugPanel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAc,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGxE;;;;GAIG;AACH,QAAA,MAAM,MAAM,UAAW,mBAAmB,sBAMzC,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY8B,CAAC;eAE1B,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,mGAAmG;AACnG,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,KA0BpB,CAAC;AAUF;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,KAerB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type DebugPanelMode } from './view-state.ts';
2
+ export type DebugPanelContextValue = {
3
+ contextId: string;
4
+ /** Qualified id of the selected page. */
5
+ nodeId?: string;
6
+ /** Joined paths of the expanded branches. */
7
+ open: readonly string[];
8
+ /** Where the panel is hosted; the hosts read it to decide which of them shows. */
9
+ mode: DebugPanelMode;
10
+ select: (nodeId: string) => void;
11
+ setOpen: (pathKey: string, open: boolean) => void;
12
+ setMode: (mode: DebugPanelMode) => void;
13
+ };
14
+ export declare const DebugPanelContext: import("react").Context<DebugPanelContextValue | null>;
15
+ export declare const useDebugPanelContext: () => DebugPanelContextValue;
16
+ //# sourceMappingURL=DebugPanelContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugPanelContext.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanel/DebugPanelContext.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAKtD,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,kFAAkF;IAClF,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,wDAAqD,CAAC;AAEpF,eAAO,MAAM,oBAAoB,QAAO,sBAMvC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import * as Button from '@dxos/react-ui/Button';
3
+ import { type DebugPanelMode } from './view-state.ts';
4
+ export type DebugPanelHeaderProps = Pick<Button.RootProps, 'size'> & {
5
+ mode: DebugPanelMode;
6
+ onModeChange: (mode: DebugPanelMode) => void;
7
+ /** Omitted where the host brings its own close (the floating window's `CloseTrigger`). */
8
+ onClose?: () => void;
9
+ };
10
+ export declare function DebugPanelHeader({ mode, onModeChange, onClose, size }: DebugPanelHeaderProps): React.JSX.Element;
11
+ export declare namespace DebugPanelHeader {
12
+ var displayName: string;
13
+ }
14
+ //# sourceMappingURL=DebugPanelHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugPanelHeader.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanel/DebugPanelHeader.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAKhD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG;IACnE,IAAI,EAAE,cAAc,CAAC;IACrB,YAAY,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IAC7C,0FAA0F;IAC1F,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;yCAM+B,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,qBAAqB"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function DebugPanelMain(): React.JSX.Element;
3
+ export declare namespace DebugPanelMain {
4
+ var displayName: string;
5
+ }
6
+ //# sourceMappingURL=DebugPanelMain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugPanelMain.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanel/DebugPanelMain.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoD,MAAM,OAAO,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function DebugPanelSidebar(): React.JSX.Element;
3
+ export declare namespace DebugPanelSidebar {
4
+ var displayName: string;
5
+ }
6
+ //# sourceMappingURL=DebugPanelSidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugPanelSidebar.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanel/DebugPanelSidebar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAkD,MAAM,OAAO,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './DebugPanel.tsx';
2
+ export * from './DebugPanelContext.ts';
3
+ export * from './DebugPanelHeader.tsx';
4
+ export * from './DebugPanelMain.tsx';
5
+ export * from './DebugPanelSidebar.tsx';
6
+ export * from './view-state.ts';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanel/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,46 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { ViewState } from '@dxos/react-ui-attention/types';
3
+ declare const Point: Schema.Struct<{
4
+ readonly x: Schema.Number;
5
+ readonly y: Schema.Number;
6
+ }>;
7
+ declare const Size: Schema.Struct<{
8
+ readonly width: Schema.Number;
9
+ readonly height: Schema.Number;
10
+ }>;
11
+ declare const Mode: Schema.Literals<readonly ["floating", "docked"]>;
12
+ export type DebugPanelMode = Schema.Schema.Type<typeof Mode>;
13
+ export type DebugPanelViewState = {
14
+ /** Qualified id of the selected page; absent until something is chosen. */
15
+ readonly nodeId?: string;
16
+ /** Docked in the deck's drawer or floating over the app; absent means docked. */
17
+ readonly mode?: DebugPanelMode;
18
+ /** Joined paths (`Path.create`) of the expanded branches. */
19
+ readonly open: readonly string[];
20
+ /** Where the floating panel was last left; absent until it has been dragged. */
21
+ readonly position?: Schema.Schema.Type<typeof Point>;
22
+ /** The size the floating panel was last resized to; absent until it has been. */
23
+ readonly size?: Schema.Schema.Type<typeof Size>;
24
+ };
25
+ /** The panel is a singleton in the status rail, so one context serves it. */
26
+ export declare const DEBUG_PANEL_CONTEXT = "debug-panel";
27
+ /**
28
+ * Selection, expansion, mode, position and size, persisted (localStorage) so a debugging session survives
29
+ * the reloads it provokes; requires a `ViewStateProvider` ancestor to persist (degrades to the
30
+ * defaults without one).
31
+ */
32
+ export declare const debugPanelAspect: ViewState.Aspect<DebugPanelViewState, {
33
+ readonly nodeId?: string | undefined;
34
+ readonly mode?: "docked" | "floating" | undefined;
35
+ readonly open?: readonly string[] | undefined;
36
+ readonly position?: {
37
+ readonly x: number;
38
+ readonly y: number;
39
+ } | undefined;
40
+ readonly size?: {
41
+ readonly width: number;
42
+ readonly height: number;
43
+ } | undefined;
44
+ }>;
45
+ export {};
46
+ //# sourceMappingURL=view-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-state.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanel/view-state.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAK3D,QAAA,MAAM,KAAK;;;EAAwD,CAAC;AAEpE,QAAA,MAAM,IAAI;;;EAAiE,CAAC;AAE5E,QAAA,MAAM,IAAI,kDAA0C,CAAC;AAYrD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;AAE7D,MAAM,MAAM,mBAAmB,GAAG;IAChC,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,iFAAiF;IACjF,QAAQ,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC;IAC/B,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,gFAAgF;IAChF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;IACrD,iFAAiF;IACjF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;CACjD,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAQ3B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export type DebugPanelDrawerProps = {
3
+ /** Overridable so a story gets its own selection rather than the app's. */
4
+ contextId?: string;
5
+ };
6
+ export declare function DebugPanelDrawer({ contextId }: DebugPanelDrawerProps): React.JSX.Element;
7
+ export declare namespace DebugPanelDrawer {
8
+ var displayName: string;
9
+ }
10
+ //# sourceMappingURL=DebugPanelDrawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugPanelDrawer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanelDrawer/DebugPanelDrawer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAkB3C,MAAM,MAAM,qBAAqB,GAAG;IAClC,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;yCAM+B,EAAE,SAA+B,EAAE,EAAE,qBAAqB"}
@@ -0,0 +1,114 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ import { DebugPanelDrawer, type DebugPanelDrawerProps } from './DebugPanelDrawer.tsx';
4
+ /** The deck's frame with the drawer open, as `DeckContent` hosts the surface. */
5
+ declare const Render: (props: DebugPanelDrawerProps) => React.JSX.Element;
6
+ declare const meta: {
7
+ title: string;
8
+ component: typeof DebugPanelDrawer;
9
+ render: typeof Render;
10
+ decorators: import("@storybook/react").Decorator[];
11
+ parameters: {
12
+ translations: [{
13
+ readonly 'en-US': {
14
+ readonly "@dxos/react-ui-debug": {
15
+ readonly 'filter.placeholder': 'Filter (e.g. space-proxy:debug)';
16
+ readonly 'level.label': 'Level';
17
+ readonly 'record.label': 'Record';
18
+ readonly 'clear.label': 'Clear';
19
+ readonly 'copy.label': 'Copy log';
20
+ readonly 'copy-entry.label': 'Copy entry';
21
+ readonly 'levels.label': 'Log levels';
22
+ readonly 'levels.reset.label': 'Reset all levels';
23
+ readonly 'levels.inherit.label': 'Inherit';
24
+ readonly 'levels.empty.message': 'No log files registered yet.';
25
+ readonly 'levels.filter.placeholder': 'Filter files…';
26
+ readonly 'empty.message': 'No log entries.';
27
+ readonly 'search.placeholder': 'Find in buffer…';
28
+ readonly 'search.clear.label': 'Clear filter';
29
+ readonly 'search.no-matches.message': 'No matching entries.';
30
+ readonly 'level.trace': 'Trace';
31
+ readonly 'level.debug': 'Debug';
32
+ readonly 'level.verbose': 'Verbose';
33
+ readonly 'level.info': 'Info';
34
+ readonly 'level.warn': 'Warn';
35
+ readonly 'level.error': 'Error';
36
+ };
37
+ };
38
+ }, {
39
+ readonly 'en-US': {
40
+ readonly [x: string]: {
41
+ readonly 'plugin.name': 'Debug';
42
+ readonly 'debug.label': 'Debug';
43
+ readonly 'generate-objects.label': 'Generate Objects';
44
+ readonly 'create-space-from-template.label': 'Create space from template: {{label}}';
45
+ readonly 'space-objects.label': 'Database';
46
+ readonly 'open-debug-panel.label': 'Show debug panel';
47
+ readonly 'console.tab.label': 'Console';
48
+ readonly 'logs.tab.label': 'Logs';
49
+ readonly 'debug-panel.title': 'Debug';
50
+ readonly 'debug-panel.empty.label': 'Select a tool';
51
+ readonly 'debug-panel.tree.label': 'Debug tools';
52
+ readonly 'debug-port-status.running.label': 'Agent debug port is open — show debug panel';
53
+ readonly 'dock-panel.label': 'Dock panel';
54
+ readonly 'float-panel.label': 'Float panel';
55
+ readonly 'close-panel.label': 'Close';
56
+ readonly 'console.clear.label': 'Clear log';
57
+ readonly 'console.copy.label': 'Copy last result';
58
+ readonly 'remove-all-objects.confirm.description': 'Remove all objects from this space? This cannot be undone.';
59
+ readonly 'remove-all-objects.error.title': 'Failed to remove objects.';
60
+ readonly 'remove-all-objects.toast.title': 'Space cleared';
61
+ readonly 'remove-all-objects.toast.description_one': 'Removed {{count}} object.';
62
+ readonly 'remove-all-objects.toast.description_other': 'Removed {{count}} objects.';
63
+ readonly 'collect-garbage.confirm.description': "Permanently reclaim this space's deleted objects? This cannot be undone.";
64
+ readonly 'collect-garbage.error.title': 'Garbage collection failed.';
65
+ readonly 'collect-garbage.toast.title': 'Garbage collected';
66
+ readonly 'collect-garbage.toast.empty.description': 'Nothing to reclaim.';
67
+ readonly 'collect-garbage.toast.description_one': 'Reclaimed {{count}} document.';
68
+ readonly 'collect-garbage.toast.description_other': 'Reclaimed {{count}} documents.';
69
+ readonly 'settings.wireframe.label': 'Show wireframes.';
70
+ readonly 'settings.wireframe.description': 'Overlay wireframe outlines on UI components for debugging layout.';
71
+ readonly 'settings.trace-all.label': 'Trace all requests (100% sampling).';
72
+ readonly 'settings.trace-all.description': 'Override the default 30% sampling rate to capture all traces. Requires page reload to take effect.';
73
+ readonly 'settings.tracing-panel.label': 'Open tracing panel.';
74
+ readonly 'settings.tracing-panel.description': 'Open the tracing dashboard to inspect captured spans.';
75
+ readonly 'settings.repair.label': 'Run repair tool.';
76
+ readonly 'settings.repair.description': 'Attempt to detect and fix inconsistencies in local data storage.';
77
+ readonly 'settings.download-diagnostics.label': 'Download diagnostics.';
78
+ readonly 'settings.download-diagnostics.description': 'Export a JSON file containing client diagnostics for troubleshooting.';
79
+ readonly 'settings.download-logs.label': 'Download log buffer.';
80
+ readonly 'settings.download-logs.description': 'Export the in-memory log buffer as an NDJSON file.';
81
+ readonly 'settings.uploaded.message': 'Settings uploaded.';
82
+ readonly 'settings.uploaded.description': 'URL copied to clipboard.';
83
+ readonly 'settings.choose-storage-adaptor.label': 'Storage adaptor (worker reload required).';
84
+ readonly 'settings.choose-storage-adaptor.description': 'Select the browser storage backend. Changing this requires a worker reload and may make existing data unavailable.';
85
+ readonly 'settings.repair-success.message': 'Repair succeeded';
86
+ readonly 'settings.repair-failed.message': 'Repair failed';
87
+ readonly 'settings.storage-adaptor.idb.label': 'IndexedDB';
88
+ readonly 'settings.storage-adaptor.opfs.label': 'OPFS';
89
+ readonly 'settings.storage-adapter.changed-alert.message': 'Warning: Swapping the storage adapter will make your data unavailable.';
90
+ readonly 'settings.data-store.label': 'Data Store';
91
+ readonly 'settings.debug-port.section.label': 'Agent debug port';
92
+ readonly 'settings.debug-port.section.description': 'Lets a local agent evaluate code against this page via composer-recovery.js. Off by default; stops on reload.';
93
+ readonly 'settings.debug-port.label': 'Open debug port.';
94
+ readonly 'settings.debug-port.description': 'Runs arbitrary code from a loopback server with full access to your data. Only enable while you are working with an agent you trust.';
95
+ readonly 'settings.debug-port.running.label': 'Listening on';
96
+ readonly 'settings.debug-port.session.label': 'Session id';
97
+ readonly 'settings.debug-port.session.description': 'Pass to composer-recovery.js --session. A new id is issued on every restart.';
98
+ readonly 'settings.debug-port.log.label': 'Debug port log';
99
+ };
100
+ };
101
+ }];
102
+ layout: string;
103
+ };
104
+ };
105
+ export default meta;
106
+ type Story = StoryObj<typeof meta>;
107
+ /** Its own context, so exercising the story does not decide which tool the app's drawer opens on. */
108
+ export declare const Default: Story;
109
+ /**
110
+ * Console by default, then Logs, then the float control: the drawer closes and the persisted mode
111
+ * records the switch — the part the floating host reads to take over.
112
+ */
113
+ export declare const Float: Story;
114
+ //# sourceMappingURL=DebugPanelDrawer.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugPanelDrawer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanelDrawer/DebugPanelDrawer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEtF,iFAAiF;AACjF,QAAA,MAAM,MAAM,UAAW,qBAAqB,sBAU3C,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY+B,CAAC;eAE3B,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,qGAAqG;AACrG,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AASF;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,KAwBnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './DebugPanelDrawer.tsx';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/DebugPanelDrawer/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC"}