@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.
- package/PLUGIN.mdl +241 -3
- package/README.md +27 -3
- package/dist/lib/Debug.mjs.map +1 -1
- package/dist/lib/DebugNodes.mjs +21 -2
- package/dist/lib/DebugNodes.mjs.map +1 -1
- package/dist/lib/DebugOperation.mjs +166 -2
- package/dist/lib/DebugOperation.mjs.map +1 -1
- package/dist/lib/DebugPlugin.mjs.map +1 -1
- package/dist/lib/DebugSurface.mjs +7 -2
- package/dist/lib/DebugSurface.mjs.map +1 -1
- package/dist/lib/IncidentSpace.mjs +2 -0
- package/dist/lib/PipelineSpace.mjs +2 -0
- package/dist/lib/ReviewSpace.mjs +2 -0
- package/dist/lib/StockfishSpace.mjs +2 -0
- package/dist/lib/TidepoolSpace.mjs +2 -0
- package/dist/lib/WeatherSpace.mjs +2 -0
- package/dist/lib/WorkerSpace.mjs +2 -0
- package/dist/lib/capabilities.browser.mjs +71 -0
- package/dist/lib/capabilities.browser.mjs.map +1 -0
- package/dist/lib/capabilities.mjs +17 -7
- package/dist/lib/capabilities.mjs.map +1 -1
- package/dist/lib/capabilities.node.mjs +13 -3
- package/dist/lib/capabilities.node.mjs.map +1 -1
- package/dist/lib/capabilities.tauri.mjs +71 -0
- package/dist/lib/capabilities.tauri.mjs.map +1 -0
- package/dist/lib/capabilities.workerd.mjs +3 -1
- package/dist/lib/capabilities.workerd.mjs.map +1 -1
- package/dist/lib/chunk-DebugConsole.mjs +241 -0
- package/dist/lib/chunk-DebugConsole.mjs.map +1 -0
- package/dist/lib/chunk-DebugObjectPanel.mjs +12 -16
- package/dist/lib/chunk-DebugObjectPanel.mjs.map +1 -1
- package/dist/lib/chunk-DebugPanelDrawer.mjs +48 -0
- package/dist/lib/chunk-DebugPanelDrawer.mjs.map +1 -0
- package/dist/lib/chunk-DebugPanelHeader.mjs +280 -0
- package/dist/lib/chunk-DebugPanelHeader.mjs.map +1 -0
- package/dist/lib/chunk-DebugPanelStatus.mjs +127 -0
- package/dist/lib/chunk-DebugPanelStatus.mjs.map +1 -0
- package/dist/lib/chunk-DebugSettings.mjs +81 -70
- package/dist/lib/chunk-DebugSettings.mjs.map +1 -1
- package/dist/lib/chunk-DebugSpaceObjectsPanel.mjs +21 -12
- package/dist/lib/chunk-DebugSpaceObjectsPanel.mjs.map +1 -1
- package/dist/lib/chunk-DebugStatus.mjs +12 -12
- package/dist/lib/chunk-DebugStatus.mjs.map +1 -1
- package/dist/lib/chunk-IncidentSpace.mjs +269 -0
- package/dist/lib/chunk-IncidentSpace.mjs.map +1 -0
- package/dist/lib/chunk-LoggerPanel.mjs +18 -0
- package/dist/lib/chunk-LoggerPanel.mjs.map +1 -0
- package/dist/lib/chunk-PLUGIN.mjs +6 -0
- package/dist/lib/chunk-PLUGIN.mjs.map +1 -0
- package/dist/lib/chunk-PipelineSpace.mjs +378 -0
- package/dist/lib/chunk-PipelineSpace.mjs.map +1 -0
- package/dist/lib/chunk-ReviewSpace.mjs +356 -0
- package/dist/lib/chunk-ReviewSpace.mjs.map +1 -0
- package/dist/lib/chunk-SpaceGenerator.mjs +107 -73
- package/dist/lib/chunk-SpaceGenerator.mjs.map +1 -1
- package/dist/lib/chunk-StatsPanel.mjs +28 -35
- package/dist/lib/chunk-StatsPanel.mjs.map +1 -1
- package/dist/lib/chunk-StockfishSpace.mjs +563 -0
- package/dist/lib/chunk-StockfishSpace.mjs.map +1 -0
- package/dist/lib/chunk-TidepoolSpace.mjs +544 -0
- package/dist/lib/chunk-TidepoolSpace.mjs.map +1 -0
- package/dist/lib/chunk-WeatherSpace.mjs +206 -0
- package/dist/lib/chunk-WeatherSpace.mjs.map +1 -0
- package/dist/lib/chunk-Wireframe.mjs +6 -6
- package/dist/lib/chunk-Wireframe.mjs.map +1 -1
- package/dist/lib/chunk-WorkerSpace.mjs +177 -0
- package/dist/lib/chunk-WorkerSpace.mjs.map +1 -0
- package/dist/lib/chunk-app-graph-builder.mjs +72 -40
- package/dist/lib/chunk-app-graph-builder.mjs.map +1 -1
- package/dist/lib/chunk-create-space-from-template.mjs +55 -0
- package/dist/lib/chunk-create-space-from-template.mjs.map +1 -0
- package/dist/lib/chunk-errors.mjs +13 -0
- package/dist/lib/chunk-errors.mjs.map +1 -0
- package/dist/lib/chunk-graph-retention.mjs +14 -0
- package/dist/lib/chunk-graph-retention.mjs.map +1 -0
- package/dist/lib/chunk-insert-lorem-ipsum.mjs +2 -2
- package/dist/lib/chunk-log-recording.mjs +29 -1
- package/dist/lib/chunk-log-recording.mjs.map +1 -1
- package/dist/lib/chunk-open-page.mjs +29 -0
- package/dist/lib/chunk-open-page.mjs.map +1 -0
- package/dist/lib/chunk-operation-handler.mjs +5 -0
- package/dist/lib/chunk-operation-handler.mjs.map +1 -1
- package/dist/lib/chunk-react-surface.mjs +73 -71
- package/dist/lib/chunk-react-surface.mjs.map +1 -1
- package/dist/lib/chunk-settings.mjs +2 -2
- package/dist/lib/chunk-settings.mjs.map +1 -1
- package/dist/lib/chunk-snapshot.mjs +170 -0
- package/dist/lib/chunk-snapshot.mjs.map +1 -0
- package/dist/lib/chunk-space-templates.mjs +21 -0
- package/dist/lib/chunk-space-templates.mjs.map +1 -0
- package/dist/lib/chunk-stats-panel.mjs +1 -1
- package/dist/lib/chunk-stats-panel.mjs.map +1 -1
- package/dist/lib/chunk-undo.mjs +17 -0
- package/dist/lib/chunk-undo.mjs.map +1 -0
- package/dist/lib/chunk-view-state.mjs +37 -0
- package/dist/lib/chunk-view-state.mjs.map +1 -0
- package/dist/lib/components.mjs +68 -28
- package/dist/lib/components.mjs.map +1 -1
- package/dist/lib/containers.mjs +5 -2
- package/dist/lib/containers.mjs.map +1 -1
- package/dist/lib/index.mjs +8 -2
- package/dist/lib/meta.mjs +3 -2
- package/dist/lib/meta.mjs.map +1 -1
- package/dist/lib/operations.mjs +7 -1
- package/dist/lib/operations.mjs.map +1 -1
- package/dist/lib/plugin.mjs +2 -2
- package/dist/lib/plugin.mjs.map +1 -1
- package/dist/lib/translations.mjs +13 -4
- package/dist/lib/translations.mjs.map +1 -1
- package/dist/types/scripts/build-template-archive.d.ts +2 -0
- package/dist/types/scripts/build-template-archive.d.ts.map +1 -0
- package/dist/types/src/DebugPlugin.d.ts +2 -2
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/DebugSurfaces.d.ts +4 -5
- package/dist/types/src/capabilities/DebugSurfaces.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +31 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.test.d.ts +2 -0
- package/dist/types/src/capabilities/app-graph-builder.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/gen/browser.d.ts +14 -0
- package/dist/types/src/capabilities/gen/browser.d.ts.map +1 -0
- package/dist/types/src/capabilities/gen/node.d.ts +2 -0
- package/dist/types/src/capabilities/gen/node.d.ts.map +1 -1
- package/dist/types/src/capabilities/gen/tauri.d.ts +14 -0
- package/dist/types/src/capabilities/gen/tauri.d.ts.map +1 -0
- package/dist/types/src/capabilities/gen/workerd.d.ts +2 -0
- package/dist/types/src/capabilities/gen/workerd.d.ts.map +1 -1
- package/dist/types/src/capabilities/graph-retention.d.ts +5 -0
- package/dist/types/src/capabilities/graph-retention.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +2 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/log-recording.d.ts +4 -0
- package/dist/types/src/capabilities/log-recording.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/space-templates.d.ts +14 -0
- package/dist/types/src/capabilities/space-templates.d.ts.map +1 -0
- package/dist/types/src/components/SchemaTable/SchemaTable.d.ts +4 -3
- package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -1
- package/dist/types/src/components/SchemaTable/index.d.ts +1 -1
- package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +2 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
- package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugConsole/DebugConsole.d.ts +12 -0
- package/dist/types/src/containers/DebugConsole/DebugConsole.d.ts.map +1 -0
- package/dist/types/src/containers/DebugConsole/DebugConsole.stories.d.ts +103 -0
- package/dist/types/src/containers/DebugConsole/DebugConsole.stories.d.ts.map +1 -0
- package/dist/types/src/containers/DebugConsole/cli.d.ts +24 -0
- package/dist/types/src/containers/DebugConsole/cli.d.ts.map +1 -0
- package/dist/types/src/containers/DebugConsole/index.d.ts +2 -0
- package/dist/types/src/containers/DebugConsole/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +1 -1
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -1
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts +1 -1
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugPanel/DebugPanel.d.ts +30 -0
- package/dist/types/src/containers/DebugPanel/DebugPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanel/DebugPanel.stories.d.ts +126 -0
- package/dist/types/src/containers/DebugPanel/DebugPanel.stories.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanel/DebugPanelContext.d.ts +16 -0
- package/dist/types/src/containers/DebugPanel/DebugPanelContext.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanel/DebugPanelHeader.d.ts +14 -0
- package/dist/types/src/containers/DebugPanel/DebugPanelHeader.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanel/DebugPanelMain.d.ts +6 -0
- package/dist/types/src/containers/DebugPanel/DebugPanelMain.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanel/DebugPanelSidebar.d.ts +6 -0
- package/dist/types/src/containers/DebugPanel/DebugPanelSidebar.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanel/index.d.ts +7 -0
- package/dist/types/src/containers/DebugPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanel/view-state.d.ts +46 -0
- package/dist/types/src/containers/DebugPanel/view-state.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanelDrawer/DebugPanelDrawer.d.ts +10 -0
- package/dist/types/src/containers/DebugPanelDrawer/DebugPanelDrawer.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanelDrawer/DebugPanelDrawer.stories.d.ts +114 -0
- package/dist/types/src/containers/DebugPanelDrawer/DebugPanelDrawer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanelDrawer/index.d.ts +2 -0
- package/dist/types/src/containers/DebugPanelDrawer/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanelStatus/DebugPanelStatus.d.ts +11 -0
- package/dist/types/src/containers/DebugPanelStatus/DebugPanelStatus.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanelStatus/DebugPanelStatus.stories.d.ts +107 -0
- package/dist/types/src/containers/DebugPanelStatus/DebugPanelStatus.stories.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPanelStatus/index.d.ts +2 -0
- package/dist/types/src/containers/DebugPanelStatus/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugPortSettings/DebugPortSettings.d.ts.map +1 -1
- package/dist/types/src/containers/DebugPortSettings/DebugPortSettings.stories.d.ts +13 -4
- package/dist/types/src/containers/DebugPortSettings/DebugPortSettings.stories.d.ts.map +1 -1
- package/dist/types/src/containers/DebugPortSettings/index.d.ts +1 -1
- package/dist/types/src/containers/DebugPortSettings/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts +2 -2
- package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +1 -1
- package/dist/types/src/containers/DebugSettings/DebugSettings.stories.d.ts +14 -5
- package/dist/types/src/containers/DebugSettings/DebugSettings.stories.d.ts.map +1 -1
- package/dist/types/src/containers/DebugSettings/index.d.ts +1 -1
- package/dist/types/src/containers/DebugSettings/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +1 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +1 -1
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugStatus/index.d.ts +1 -1
- package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -1
- package/dist/types/src/containers/LoggerPanel/LoggerPanel.d.ts +6 -0
- package/dist/types/src/containers/LoggerPanel/LoggerPanel.d.ts.map +1 -0
- package/dist/types/src/containers/LoggerPanel/LoggerPanel.stories.d.ts +107 -0
- package/dist/types/src/containers/LoggerPanel/LoggerPanel.stories.d.ts.map +1 -0
- package/dist/types/src/containers/LoggerPanel/index.d.ts +2 -0
- package/dist/types/src/containers/LoggerPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.stories.d.ts +13 -4
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.stories.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceGenerator/index.d.ts +1 -1
- package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -1
- package/dist/types/src/containers/StatsPanel/StatsPanel.d.ts +5 -1
- package/dist/types/src/containers/StatsPanel/StatsPanel.d.ts.map +1 -1
- package/dist/types/src/containers/StatsPanel/index.d.ts +1 -1
- package/dist/types/src/containers/StatsPanel/index.d.ts.map +1 -1
- package/dist/types/src/containers/Wireframe/Wireframe.d.ts +2 -2
- package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -1
- package/dist/types/src/containers/Wireframe/index.d.ts +1 -1
- package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +7 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/errors.d.ts +123 -0
- package/dist/types/src/errors.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/DebugOperationHandlerSet.d.ts.map +1 -1
- package/dist/types/src/operations/create-space-from-template.d.ts +5 -0
- package/dist/types/src/operations/create-space-from-template.d.ts.map +1 -0
- package/dist/types/src/operations/errors.d.ts +33 -0
- package/dist/types/src/operations/errors.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/open-page.d.ts +5 -0
- package/dist/types/src/operations/open-page.d.ts.map +1 -0
- package/dist/types/src/operations/snapshot.d.ts +5 -0
- package/dist/types/src/operations/snapshot.d.ts.map +1 -0
- package/dist/types/src/operations/snapshot.test.d.ts +2 -0
- package/dist/types/src/operations/snapshot.test.d.ts.map +1 -0
- package/dist/types/src/operations/undo.d.ts +5 -0
- package/dist/types/src/operations/undo.d.ts.map +1 -0
- package/dist/types/src/operations/undo.test.d.ts +2 -0
- package/dist/types/src/operations/undo.test.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts.map +1 -1
- package/dist/types/src/samples/crm/PipelineSpace.d.ts +21 -0
- package/dist/types/src/samples/crm/PipelineSpace.d.ts.map +1 -0
- package/dist/types/src/samples/crm/PipelineSpace.test.d.ts +2 -0
- package/dist/types/src/samples/crm/PipelineSpace.test.d.ts.map +1 -0
- package/dist/types/src/samples/crm/accounts.d.ts +55 -0
- package/dist/types/src/samples/crm/accounts.d.ts.map +1 -0
- package/dist/types/src/samples/crm/inbox.d.ts +14 -0
- package/dist/types/src/samples/crm/inbox.d.ts.map +1 -0
- package/dist/types/src/samples/crm/pipeline.d.ts +9 -0
- package/dist/types/src/samples/crm/pipeline.d.ts.map +1 -0
- package/dist/types/src/samples/crm/util.d.ts +14 -0
- package/dist/types/src/samples/crm/util.d.ts.map +1 -0
- package/dist/types/src/samples/incident/IncidentSpace.d.ts +21 -0
- package/dist/types/src/samples/incident/IncidentSpace.d.ts.map +1 -0
- package/dist/types/src/samples/incident/IncidentSpace.test.d.ts +2 -0
- package/dist/types/src/samples/incident/IncidentSpace.test.d.ts.map +1 -0
- package/dist/types/src/samples/incident/docs.d.ts +14 -0
- package/dist/types/src/samples/incident/docs.d.ts.map +1 -0
- package/dist/types/src/samples/incident/project.d.ts +16 -0
- package/dist/types/src/samples/incident/project.d.ts.map +1 -0
- package/dist/types/src/samples/incident/tasks.d.ts +9 -0
- package/dist/types/src/samples/incident/tasks.d.ts.map +1 -0
- package/dist/types/src/samples/incident/util.d.ts +32 -0
- package/dist/types/src/samples/incident/util.d.ts.map +1 -0
- package/dist/types/src/samples/index.d.ts +8 -0
- package/dist/types/src/samples/index.d.ts.map +1 -0
- package/dist/types/src/samples/review/ReviewSpace.d.ts +19 -0
- package/dist/types/src/samples/review/ReviewSpace.d.ts.map +1 -0
- package/dist/types/src/samples/review/ReviewSpace.test.d.ts +2 -0
- package/dist/types/src/samples/review/ReviewSpace.test.d.ts.map +1 -0
- package/dist/types/src/samples/review/assets.d.ts +19 -0
- package/dist/types/src/samples/review/assets.d.ts.map +1 -0
- package/dist/types/src/samples/review/util.d.ts +4 -0
- package/dist/types/src/samples/review/util.d.ts.map +1 -0
- package/dist/types/src/samples/review/work.d.ts +15 -0
- package/dist/types/src/samples/review/work.d.ts.map +1 -0
- package/dist/types/src/samples/stockfish/StockfishSpace.d.ts +27 -0
- package/dist/types/src/samples/stockfish/StockfishSpace.d.ts.map +1 -0
- package/dist/types/src/samples/stockfish/StockfishSpace.test.d.ts +2 -0
- package/dist/types/src/samples/stockfish/StockfishSpace.test.d.ts.map +1 -0
- package/dist/types/src/samples/stockfish/docs.d.ts +8 -0
- package/dist/types/src/samples/stockfish/docs.d.ts.map +1 -0
- package/dist/types/src/samples/stockfish/game.d.ts +10 -0
- package/dist/types/src/samples/stockfish/game.d.ts.map +1 -0
- package/dist/types/src/samples/stockfish/project.d.ts +31 -0
- package/dist/types/src/samples/stockfish/project.d.ts.map +1 -0
- package/dist/types/src/samples/stockfish/run.test.d.ts +2 -0
- package/dist/types/src/samples/stockfish/run.test.d.ts.map +1 -0
- package/dist/types/src/samples/stockfish/skill.d.ts +8 -0
- package/dist/types/src/samples/stockfish/skill.d.ts.map +1 -0
- package/dist/types/src/samples/stockfish/tasks.d.ts +12 -0
- package/dist/types/src/samples/stockfish/tasks.d.ts.map +1 -0
- package/dist/types/src/samples/stockfish/util.d.ts +14 -0
- package/dist/types/src/samples/stockfish/util.d.ts.map +1 -0
- package/dist/types/src/samples/tidepool/TidepoolSpace.d.ts +22 -0
- package/dist/types/src/samples/tidepool/TidepoolSpace.d.ts.map +1 -0
- package/dist/types/src/samples/tidepool/TidepoolSpace.test.d.ts +2 -0
- package/dist/types/src/samples/tidepool/TidepoolSpace.test.d.ts.map +1 -0
- package/dist/types/src/samples/tidepool/docs.d.ts +12 -0
- package/dist/types/src/samples/tidepool/docs.d.ts.map +1 -0
- package/dist/types/src/samples/tidepool/project.d.ts +20 -0
- package/dist/types/src/samples/tidepool/project.d.ts.map +1 -0
- package/dist/types/src/samples/tidepool/tasks.d.ts +14 -0
- package/dist/types/src/samples/tidepool/tasks.d.ts.map +1 -0
- package/dist/types/src/samples/tidepool/team.d.ts +9 -0
- package/dist/types/src/samples/tidepool/team.d.ts.map +1 -0
- package/dist/types/src/samples/tidepool/util.d.ts +14 -0
- package/dist/types/src/samples/tidepool/util.d.ts.map +1 -0
- package/dist/types/src/samples/weather/WeatherSpace.d.ts +21 -0
- package/dist/types/src/samples/weather/WeatherSpace.d.ts.map +1 -0
- package/dist/types/src/samples/weather/WeatherSpace.test.d.ts +2 -0
- package/dist/types/src/samples/weather/WeatherSpace.test.d.ts.map +1 -0
- package/dist/types/src/samples/weather/project.d.ts +20 -0
- package/dist/types/src/samples/weather/project.d.ts.map +1 -0
- package/dist/types/src/samples/weather/skill.d.ts +12 -0
- package/dist/types/src/samples/weather/skill.d.ts.map +1 -0
- package/dist/types/src/samples/weather/tasks.d.ts +9 -0
- package/dist/types/src/samples/weather/tasks.d.ts.map +1 -0
- package/dist/types/src/samples/weather/util.d.ts +16 -0
- package/dist/types/src/samples/weather/util.d.ts.map +1 -0
- package/dist/types/src/samples/worker/WorkerSpace.d.ts +22 -0
- package/dist/types/src/samples/worker/WorkerSpace.d.ts.map +1 -0
- package/dist/types/src/samples/worker/WorkerSpace.test.d.ts +2 -0
- package/dist/types/src/samples/worker/WorkerSpace.test.d.ts.map +1 -0
- package/dist/types/src/samples/worker/project.d.ts +18 -0
- package/dist/types/src/samples/worker/project.d.ts.map +1 -0
- package/dist/types/src/samples/worker/tasks.d.ts +9 -0
- package/dist/types/src/samples/worker/tasks.d.ts.map +1 -0
- package/dist/types/src/samples/worker/util.d.ts +14 -0
- package/dist/types/src/samples/worker/util.d.ts.map +1 -0
- package/dist/types/src/stories/SpaceTemplates.stories.d.ts +114 -0
- package/dist/types/src/stories/SpaceTemplates.stories.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +3 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/stub-drawer-plugin.d.ts +8 -0
- package/dist/types/src/testing/stub-drawer-plugin.d.ts.map +1 -0
- package/dist/types/src/testing/stub-tools-plugin.d.ts +19 -0
- package/dist/types/src/testing/stub-tools-plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +13 -4
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Debug.d.ts +2 -2
- package/dist/types/src/types/Debug.d.ts.map +1 -1
- package/dist/types/src/types/DebugNodes.d.ts +13 -1
- package/dist/types/src/types/DebugNodes.d.ts.map +1 -1
- package/dist/types/src/types/DebugOperation.d.ts +119 -0
- package/dist/types/src/types/DebugOperation.d.ts.map +1 -1
- package/dist/types/src/types/DebugSurface.d.ts +7 -0
- package/dist/types/src/types/DebugSurface.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +6 -6
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dx.config.ts +3 -2
- package/package.json +129 -73
- package/scripts/build-template-archive.ts +65 -0
- package/src/DebugPlugin.ts +1 -1
- package/src/capabilities/DebugSurfaces.tsx +85 -71
- package/src/capabilities/app-graph-builder.test.ts +45 -0
- package/src/capabilities/app-graph-builder.ts +83 -46
- package/src/capabilities/gen/browser.ts +85 -0
- package/src/capabilities/gen/node.ts +15 -8
- package/src/capabilities/gen/tauri.ts +85 -0
- package/src/capabilities/gen/workerd.ts +11 -4
- package/src/capabilities/graph-retention.ts +23 -0
- package/src/capabilities/index.ts +18 -10
- package/src/capabilities/log-recording.ts +20 -1
- package/src/capabilities/operation-handler.ts +9 -0
- package/src/capabilities/react-surface.ts +33 -29
- package/src/capabilities/settings.ts +2 -2
- package/src/capabilities/space-templates.ts +25 -0
- package/src/capabilities/stats-panel.ts +1 -1
- package/src/components/SchemaTable/SchemaTable.tsx +44 -10
- package/src/components/SchemaTable/index.ts +1 -1
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +22 -2
- package/src/components/SpaceGenerator/index.ts +2 -2
- package/src/components/SpaceGenerator/presets.ts +4 -4
- package/src/components/index.ts +2 -2
- package/src/containers/DebugConsole/DebugConsole.stories.tsx +29 -0
- package/src/containers/DebugConsole/DebugConsole.tsx +94 -0
- package/src/containers/DebugConsole/cli.ts +296 -0
- package/src/containers/DebugConsole/index.ts +5 -0
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +44 -44
- package/src/containers/DebugObjectPanel/index.ts +1 -1
- package/src/containers/DebugPanel/DebugPanel.stories.tsx +118 -0
- package/src/containers/DebugPanel/DebugPanel.tsx +72 -0
- package/src/containers/DebugPanel/DebugPanelContext.ts +33 -0
- package/src/containers/DebugPanel/DebugPanelHeader.tsx +54 -0
- package/src/containers/DebugPanel/DebugPanelMain.tsx +116 -0
- package/src/containers/DebugPanel/DebugPanelSidebar.tsx +123 -0
- package/src/containers/DebugPanel/index.ts +10 -0
- package/src/containers/DebugPanel/view-state.ts +60 -0
- package/src/containers/DebugPanelDrawer/DebugPanelDrawer.stories.tsx +92 -0
- package/src/containers/DebugPanelDrawer/DebugPanelDrawer.tsx +72 -0
- package/src/containers/DebugPanelDrawer/index.ts +5 -0
- package/src/containers/DebugPanelStatus/DebugPanelStatus.stories.tsx +119 -0
- package/src/containers/DebugPanelStatus/DebugPanelStatus.tsx +167 -0
- package/src/containers/DebugPanelStatus/index.ts +5 -0
- package/src/containers/DebugPortSettings/DebugPortSettings.stories.tsx +2 -2
- package/src/containers/DebugPortSettings/DebugPortSettings.tsx +33 -40
- package/src/containers/DebugPortSettings/index.ts +1 -1
- package/src/containers/DebugSettings/DebugSettings.stories.tsx +1 -1
- package/src/containers/DebugSettings/DebugSettings.tsx +71 -64
- package/src/containers/DebugSettings/index.ts +1 -1
- package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +39 -28
- package/src/containers/DebugSpaceObjectsPanel/index.ts +1 -1
- package/src/containers/DebugStatus/DebugStatus.tsx +10 -10
- package/src/containers/DebugStatus/index.ts +1 -1
- package/src/containers/LoggerPanel/LoggerPanel.stories.tsx +62 -0
- package/src/containers/LoggerPanel/LoggerPanel.tsx +28 -0
- package/src/containers/LoggerPanel/index.ts +5 -0
- package/src/containers/SpaceGenerator/SpaceGenerator.stories.tsx +8 -8
- package/src/containers/SpaceGenerator/SpaceGenerator.tsx +102 -73
- package/src/containers/SpaceGenerator/index.ts +1 -1
- package/src/containers/StatsPanel/StatsPanel.tsx +32 -31
- package/src/containers/StatsPanel/index.ts +1 -1
- package/src/containers/Wireframe/Wireframe.tsx +8 -7
- package/src/containers/Wireframe/index.ts +1 -1
- package/src/containers/index.ts +22 -9
- package/src/errors.ts +23 -0
- package/src/index.ts +2 -2
- package/src/meta.ts +1 -1
- package/src/operations/DebugOperationHandlerSet.ts +5 -1
- package/src/operations/create-space-from-template.ts +57 -0
- package/src/operations/errors.ts +8 -0
- package/src/operations/index.ts +1 -1
- package/src/operations/open-page.ts +51 -0
- package/src/operations/snapshot.test.ts +57 -0
- package/src/operations/snapshot.ts +243 -0
- package/src/operations/undo.test.ts +19 -0
- package/src/operations/undo.ts +28 -0
- package/src/plugin.tsx +4 -0
- package/src/samples/crm/PipelineSpace.test.ts +55 -0
- package/src/samples/crm/PipelineSpace.ts +52 -0
- package/src/samples/crm/accounts.ts +153 -0
- package/src/samples/crm/inbox.ts +158 -0
- package/src/samples/crm/pipeline.ts +70 -0
- package/src/samples/crm/util.ts +18 -0
- package/src/samples/incident/IncidentSpace.test.ts +68 -0
- package/src/samples/incident/IncidentSpace.ts +61 -0
- package/src/samples/incident/docs.ts +111 -0
- package/src/samples/incident/project.ts +61 -0
- package/src/samples/incident/tasks.ts +101 -0
- package/src/samples/incident/util.ts +24 -0
- package/src/samples/index.ts +11 -0
- package/src/samples/review/ReviewSpace.test.ts +89 -0
- package/src/samples/review/ReviewSpace.ts +47 -0
- package/src/samples/review/assets.ts +123 -0
- package/src/samples/review/util.ts +10 -0
- package/src/samples/review/work.ts +249 -0
- package/src/samples/stockfish/StockfishSpace.test.ts +129 -0
- package/src/samples/stockfish/StockfishSpace.ts +70 -0
- package/src/samples/stockfish/docs.ts +65 -0
- package/src/samples/stockfish/game.ts +47 -0
- package/src/samples/stockfish/project.ts +87 -0
- package/src/samples/stockfish/run.test.ts +193 -0
- package/src/samples/stockfish/skill.ts +154 -0
- package/src/samples/stockfish/tasks.ts +306 -0
- package/src/samples/stockfish/util.ts +17 -0
- package/src/samples/tidepool/TidepoolSpace.test.ts +61 -0
- package/src/samples/tidepool/TidepoolSpace.ts +65 -0
- package/src/samples/tidepool/docs.ts +140 -0
- package/src/samples/tidepool/project.ts +57 -0
- package/src/samples/tidepool/tasks.ts +252 -0
- package/src/samples/tidepool/team.ts +87 -0
- package/src/samples/tidepool/util.ts +18 -0
- package/src/samples/weather/WeatherSpace.test.ts +93 -0
- package/src/samples/weather/WeatherSpace.ts +59 -0
- package/src/samples/weather/project.ts +76 -0
- package/src/samples/weather/skill.ts +45 -0
- package/src/samples/weather/tasks.ts +98 -0
- package/src/samples/weather/util.ts +21 -0
- package/src/samples/worker/WorkerSpace.test.ts +102 -0
- package/src/samples/worker/WorkerSpace.ts +56 -0
- package/src/samples/worker/project.ts +72 -0
- package/src/samples/worker/tasks.ts +119 -0
- package/src/samples/worker/util.ts +17 -0
- package/src/stories/SpaceTemplates.stories.tsx +105 -0
- package/src/testing/index.ts +6 -0
- package/src/testing/stub-drawer-plugin.ts +65 -0
- package/src/testing/stub-tools-plugin.tsx +95 -0
- package/src/translations.ts +15 -6
- package/src/types/Debug.ts +2 -2
- package/src/types/DebugNodes.ts +21 -1
- package/src/types/DebugOperation.ts +206 -0
- package/src/types/DebugSurface.ts +7 -0
- package/src/types/index.ts +6 -6
- package/dist/lib/chunk-LogStatus.mjs +0 -44
- package/dist/lib/chunk-LogStatus.mjs.map +0 -1
- package/dist/types/src/containers/LogStatus/LogStatus.d.ts +0 -6
- package/dist/types/src/containers/LogStatus/LogStatus.d.ts.map +0 -1
- package/dist/types/src/containers/LogStatus/index.d.ts +0 -2
- package/dist/types/src/containers/LogStatus/index.d.ts.map +0 -1
- package/src/containers/LogStatus/LogStatus.tsx +0 -51
- package/src/containers/LogStatus/index.ts +0 -5
|
@@ -12,48 +12,99 @@ import * as AppNode from '@dxos/app-toolkit/AppNode';
|
|
|
12
12
|
import * as AppNodeMatcher from '@dxos/app-toolkit/AppNodeMatcher';
|
|
13
13
|
import * as GraphPath from '@dxos/app-toolkit/GraphPath';
|
|
14
14
|
import * as GraphNodeMatcher from '@dxos/graph/GraphNodeMatcher';
|
|
15
|
-
import
|
|
16
|
-
import { Position } from '@dxos/util';
|
|
15
|
+
import * as Position from '@dxos/util/Position';
|
|
17
16
|
|
|
18
17
|
import { meta } from '#meta';
|
|
19
18
|
import { DebugNodes } from '#types';
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
/** The hidden category every developer tool hangs off: a root child the main navtree filters out. */
|
|
21
|
+
export const createDebugRootExtension = () =>
|
|
22
|
+
AppGraphBuilder.createExtension({
|
|
23
|
+
id: 'debugRoot',
|
|
24
|
+
match: GraphNodeMatcher.whenRoot,
|
|
25
|
+
connector: () =>
|
|
26
|
+
Effect.succeed([
|
|
27
|
+
AppGraphNode.make({
|
|
28
|
+
id: GraphPath.GroupSegments.debug,
|
|
29
|
+
type: GraphPath.GroupTypes.debug,
|
|
30
|
+
data: null,
|
|
31
|
+
properties: {
|
|
32
|
+
label: ['debug-panel.title', { ns: meta.profile.key }],
|
|
33
|
+
icon: 'ph--bug--regular',
|
|
34
|
+
disposition: 'hidden',
|
|
35
|
+
draggable: false,
|
|
36
|
+
droppable: false,
|
|
37
|
+
},
|
|
38
|
+
}),
|
|
39
|
+
]),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** The Debug node: the console and log viewer first (what the panel opened on as tabs), then the generator. */
|
|
43
|
+
export const createDebugExtension = () =>
|
|
44
|
+
AppGraphBuilder.createExtension({
|
|
45
|
+
id: 'debug',
|
|
46
|
+
match: AppNodeMatcher.whenDebugGroup,
|
|
47
|
+
connector: () =>
|
|
48
|
+
Effect.succeed([
|
|
49
|
+
AppGraphNode.make({
|
|
50
|
+
id: DebugNodes.nodeId(DebugNodes.id),
|
|
51
|
+
data: null,
|
|
52
|
+
type: DebugNodes.id,
|
|
53
|
+
properties: {
|
|
54
|
+
label: ['debug.label', { ns: meta.profile.key }],
|
|
55
|
+
icon: 'ph--bug--regular',
|
|
56
|
+
// Before DevTools (10), whichever plugin registers first: the panel's own pages lead the tree.
|
|
57
|
+
position: 0,
|
|
58
|
+
},
|
|
59
|
+
nodes: [
|
|
30
60
|
AppGraphNode.make({
|
|
31
|
-
id: DebugNodes.nodeId(DebugNodes.
|
|
32
|
-
|
|
33
|
-
|
|
61
|
+
id: DebugNodes.nodeId(DebugNodes.Console),
|
|
62
|
+
type: DebugNodes.Console,
|
|
63
|
+
data: DebugNodes.Console,
|
|
34
64
|
properties: {
|
|
35
|
-
label: ['
|
|
36
|
-
icon: 'ph--
|
|
37
|
-
|
|
65
|
+
label: ['console.tab.label', { ns: meta.profile.key }],
|
|
66
|
+
icon: 'ph--terminal-window--regular',
|
|
67
|
+
// Explicit (not Position.first): -Infinity + 1 collapses back to -Infinity, tying with logs.
|
|
68
|
+
position: 0,
|
|
38
69
|
},
|
|
39
|
-
nodes: [
|
|
40
|
-
AppGraphNode.make({
|
|
41
|
-
id: DebugNodes.nodeId(DebugNodes.SpaceType),
|
|
42
|
-
type: DebugNodes.SpaceType,
|
|
43
|
-
data: { space, type: DebugNodes.SpaceType },
|
|
44
|
-
properties: {
|
|
45
|
-
label: ['generate-objects.label', { ns: meta.profile.key }],
|
|
46
|
-
icon: 'ph--dice-five--regular',
|
|
47
|
-
},
|
|
48
|
-
}),
|
|
49
|
-
],
|
|
50
70
|
}),
|
|
51
|
-
|
|
52
|
-
|
|
71
|
+
AppGraphNode.make({
|
|
72
|
+
id: DebugNodes.nodeId(DebugNodes.Logs),
|
|
73
|
+
type: DebugNodes.Logs,
|
|
74
|
+
data: DebugNodes.Logs,
|
|
75
|
+
properties: {
|
|
76
|
+
label: ['logs.tab.label', { ns: meta.profile.key }],
|
|
77
|
+
icon: 'ph--list-bullets--regular',
|
|
78
|
+
position: 1,
|
|
79
|
+
},
|
|
80
|
+
}),
|
|
81
|
+
AppGraphNode.make({
|
|
82
|
+
id: DebugNodes.nodeId(DebugNodes.SpaceType),
|
|
83
|
+
type: DebugNodes.SpaceType,
|
|
84
|
+
data: DebugNodes.SpaceType,
|
|
85
|
+
properties: {
|
|
86
|
+
label: ['generate-objects.label', { ns: meta.profile.key }],
|
|
87
|
+
icon: 'ph--dice-five--regular',
|
|
88
|
+
position: 2,
|
|
89
|
+
},
|
|
90
|
+
}),
|
|
91
|
+
],
|
|
92
|
+
}),
|
|
93
|
+
]),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export default Capability.makeModule(
|
|
97
|
+
Effect.fnUntraced(function* () {
|
|
98
|
+
const extensions = yield* Effect.all([
|
|
99
|
+
// The hidden root/debug category.
|
|
100
|
+
createDebugRootExtension(),
|
|
53
101
|
|
|
102
|
+
// The Debug node, under the debug category: the panel's own pages, then the generator.
|
|
103
|
+
createDebugExtension(),
|
|
54
104
|
// Debug object companion.
|
|
55
105
|
AppGraphBuilder.createExtension({
|
|
56
106
|
id: 'debugObject',
|
|
107
|
+
relation: AppNode.companion,
|
|
57
108
|
match: AppNodeMatcher.whenEchoObject,
|
|
58
109
|
connector: () =>
|
|
59
110
|
Effect.succeed([
|
|
@@ -70,6 +121,7 @@ export default Capability.makeModule(
|
|
|
70
121
|
// Object explorer deck companion.
|
|
71
122
|
AppGraphBuilder.createExtension({
|
|
72
123
|
id: 'spaceObjects',
|
|
124
|
+
relation: AppNode.companion,
|
|
73
125
|
match: GraphNodeMatcher.whenRoot,
|
|
74
126
|
connector: () =>
|
|
75
127
|
Effect.succeed([
|
|
@@ -79,22 +131,7 @@ export default Capability.makeModule(
|
|
|
79
131
|
icon: 'ph--cube--regular',
|
|
80
132
|
data: 'space-objects' as const,
|
|
81
133
|
position: Position.last,
|
|
82
|
-
|
|
83
|
-
]),
|
|
84
|
-
}),
|
|
85
|
-
|
|
86
|
-
// Log panel deck companion.
|
|
87
|
-
AppGraphBuilder.createExtension({
|
|
88
|
-
id: 'logs',
|
|
89
|
-
match: GraphNodeMatcher.whenRoot,
|
|
90
|
-
connector: () =>
|
|
91
|
-
Effect.succeed([
|
|
92
|
-
AppNode.makeDeckCompanion({
|
|
93
|
-
id: 'logs',
|
|
94
|
-
label: ['logs.label', { ns: meta.profile.key }],
|
|
95
|
-
icon: 'ph--list-magnifying-glass--regular',
|
|
96
|
-
data: 'logs' as const,
|
|
97
|
-
position: Position.last,
|
|
134
|
+
mount: 'open',
|
|
98
135
|
}),
|
|
99
136
|
]),
|
|
100
137
|
}),
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'browser' condition.
|
|
6
|
+
|
|
7
|
+
import * as ActivationEvents from '@dxos/app-framework/ActivationEvents';
|
|
8
|
+
import * as Capabilities from '@dxos/app-framework/Capabilities';
|
|
9
|
+
import * as Capability from '@dxos/app-framework/Capability';
|
|
10
|
+
import * as AppCapabilities from '@dxos/app-toolkit/AppCapabilities';
|
|
11
|
+
import * as AppCapability from '@dxos/app-toolkit/AppCapability';
|
|
12
|
+
import * as MarkdownCapabilities from '@dxos/plugin-markdown/MarkdownCapabilities';
|
|
13
|
+
|
|
14
|
+
import { meta } from '#meta';
|
|
15
|
+
import { translations } from '#translations';
|
|
16
|
+
import { Debug, DebugEvents } from '#types';
|
|
17
|
+
|
|
18
|
+
import pluginSpec from '../../../PLUGIN.mdl?raw';
|
|
19
|
+
|
|
20
|
+
export const AppGraphBuilder = AppCapability.appGraphBuilder(() => import('../app-graph-builder.ts'), {
|
|
21
|
+
environments: ['browser', 'node', 'tauri'],
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const ReactSurface = AppCapability.surface(() => import('../react-surface.ts'), {
|
|
25
|
+
roles: [
|
|
26
|
+
'org.dxos.plugin.debug.surface.page',
|
|
27
|
+
'org.dxos.plugin.debug.surface.stats',
|
|
28
|
+
'org.dxos.role.article',
|
|
29
|
+
'org.dxos.role.deckCompanion.spaceObjects',
|
|
30
|
+
'org.dxos.role.devtoolsOverview',
|
|
31
|
+
'org.dxos.role.drawer',
|
|
32
|
+
'org.dxos.role.section',
|
|
33
|
+
'org.dxos.role.statusIndicator',
|
|
34
|
+
],
|
|
35
|
+
requires: [Capabilities.AtomRegistry, Debug.DebugCapabilities.Settings, AppCapabilities.FileUploader],
|
|
36
|
+
props: ({ logStore }: Debug.DebugPluginOptions) => ({ logStore }),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export const DebugSettings = AppCapability.settings(() => import('../settings.ts'), {
|
|
40
|
+
activatesOn: ActivationEvents.Idle,
|
|
41
|
+
provides: [Debug.DebugCapabilities.Settings],
|
|
42
|
+
environments: ['browser', 'node', 'tauri'],
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export const GraphRetention = Capability.lazyModule(
|
|
46
|
+
'GraphRetention',
|
|
47
|
+
{ provides: [AppCapabilities.AppGraphRetention] },
|
|
48
|
+
() => import('../graph-retention.ts'),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export const StatsPanel = Capability.lazyModule(
|
|
52
|
+
'StatsPanel',
|
|
53
|
+
{
|
|
54
|
+
requires: [Capabilities.AtomRegistry],
|
|
55
|
+
provides: [AppCapabilities.StatsPanel],
|
|
56
|
+
props: ({ persistStats }: Debug.DebugPluginOptions) => ({ persist: persistStats ?? true }),
|
|
57
|
+
activatesOn: DebugEvents.Start,
|
|
58
|
+
},
|
|
59
|
+
() => import('../stats-panel.ts'),
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
export const OperationHandler = AppCapability.operationHandler(() => import('../operation-handler.ts'));
|
|
63
|
+
|
|
64
|
+
export const MarkdownMenu = Capability.lazyModule(
|
|
65
|
+
'MarkdownMenu',
|
|
66
|
+
{ provides: [MarkdownCapabilities.MenuExtension], activatesOn: DebugEvents.Start },
|
|
67
|
+
() => import('../markdown-menu.ts'),
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
export const SpaceTemplates = AppCapability.spaceTemplates(() => import('../space-templates.ts'));
|
|
71
|
+
|
|
72
|
+
export const LogRecording = Capability.lazyModule(
|
|
73
|
+
'LogRecording',
|
|
74
|
+
{ provides: [], activatesOn: DebugEvents.Start },
|
|
75
|
+
() => import('../log-recording.ts'),
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
export const Translations = AppCapability.translations(translations);
|
|
79
|
+
|
|
80
|
+
export const PluginAsset = AppCapability.pluginAsset({
|
|
81
|
+
pluginId: meta.profile.key,
|
|
82
|
+
path: 'PLUGIN.mdl',
|
|
83
|
+
content: pluginSpec,
|
|
84
|
+
mimeType: 'application/x-mdl',
|
|
85
|
+
});
|
|
@@ -14,16 +14,22 @@ import * as MarkdownCapabilities from '@dxos/plugin-markdown/MarkdownCapabilitie
|
|
|
14
14
|
import { translations } from '#translations';
|
|
15
15
|
import { Debug, DebugEvents } from '#types';
|
|
16
16
|
|
|
17
|
-
export const AppGraphBuilder = AppCapability.appGraphBuilder(() => import('../app-graph-builder'), {
|
|
18
|
-
environments: ['node'],
|
|
17
|
+
export const AppGraphBuilder = AppCapability.appGraphBuilder(() => import('../app-graph-builder.ts'), {
|
|
18
|
+
environments: ['browser', 'node', 'tauri'],
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
export const DebugSettings = AppCapability.settings(() => import('../settings'), {
|
|
21
|
+
export const DebugSettings = AppCapability.settings(() => import('../settings.ts'), {
|
|
22
22
|
activatesOn: ActivationEvents.Idle,
|
|
23
23
|
provides: [Debug.DebugCapabilities.Settings],
|
|
24
|
-
environments: ['node'],
|
|
24
|
+
environments: ['browser', 'node', 'tauri'],
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
+
export const GraphRetention = Capability.lazyModule(
|
|
28
|
+
'GraphRetention',
|
|
29
|
+
{ provides: [AppCapabilities.AppGraphRetention] },
|
|
30
|
+
() => import('../graph-retention.ts'),
|
|
31
|
+
);
|
|
32
|
+
|
|
27
33
|
export const StatsPanel = Capability.lazyModule(
|
|
28
34
|
'StatsPanel',
|
|
29
35
|
{
|
|
@@ -32,24 +38,25 @@ export const StatsPanel = Capability.lazyModule(
|
|
|
32
38
|
props: ({ persistStats }: Debug.DebugPluginOptions) => ({ persist: persistStats ?? true }),
|
|
33
39
|
activatesOn: DebugEvents.Start,
|
|
34
40
|
},
|
|
35
|
-
() => import('../stats-panel'),
|
|
41
|
+
() => import('../stats-panel.ts'),
|
|
36
42
|
);
|
|
37
43
|
|
|
38
|
-
export const OperationHandler = AppCapability.operationHandler(() => import('../operation-handler'));
|
|
44
|
+
export const OperationHandler = AppCapability.operationHandler(() => import('../operation-handler.ts'));
|
|
39
45
|
|
|
40
46
|
export const MarkdownMenu = Capability.lazyModule(
|
|
41
47
|
'MarkdownMenu',
|
|
42
48
|
{ provides: [MarkdownCapabilities.MenuExtension], activatesOn: DebugEvents.Start },
|
|
43
|
-
() => import('../markdown-menu'),
|
|
49
|
+
() => import('../markdown-menu.ts'),
|
|
44
50
|
);
|
|
45
51
|
|
|
46
52
|
export const LogRecording = Capability.lazyModule(
|
|
47
53
|
'LogRecording',
|
|
48
54
|
{ provides: [], activatesOn: DebugEvents.Start },
|
|
49
|
-
() => import('../log-recording'),
|
|
55
|
+
() => import('../log-recording.ts'),
|
|
50
56
|
);
|
|
51
57
|
|
|
52
58
|
export const Translations = AppCapability.translations(translations);
|
|
53
59
|
|
|
54
60
|
export const PluginAsset = undefined;
|
|
55
61
|
export const ReactSurface = undefined;
|
|
62
|
+
export const SpaceTemplates = undefined;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'tauri' condition.
|
|
6
|
+
|
|
7
|
+
import * as ActivationEvents from '@dxos/app-framework/ActivationEvents';
|
|
8
|
+
import * as Capabilities from '@dxos/app-framework/Capabilities';
|
|
9
|
+
import * as Capability from '@dxos/app-framework/Capability';
|
|
10
|
+
import * as AppCapabilities from '@dxos/app-toolkit/AppCapabilities';
|
|
11
|
+
import * as AppCapability from '@dxos/app-toolkit/AppCapability';
|
|
12
|
+
import * as MarkdownCapabilities from '@dxos/plugin-markdown/MarkdownCapabilities';
|
|
13
|
+
|
|
14
|
+
import { meta } from '#meta';
|
|
15
|
+
import { translations } from '#translations';
|
|
16
|
+
import { Debug, DebugEvents } from '#types';
|
|
17
|
+
|
|
18
|
+
import pluginSpec from '../../../PLUGIN.mdl?raw';
|
|
19
|
+
|
|
20
|
+
export const AppGraphBuilder = AppCapability.appGraphBuilder(() => import('../app-graph-builder.ts'), {
|
|
21
|
+
environments: ['browser', 'node', 'tauri'],
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const ReactSurface = AppCapability.surface(() => import('../react-surface.ts'), {
|
|
25
|
+
roles: [
|
|
26
|
+
'org.dxos.plugin.debug.surface.page',
|
|
27
|
+
'org.dxos.plugin.debug.surface.stats',
|
|
28
|
+
'org.dxos.role.article',
|
|
29
|
+
'org.dxos.role.deckCompanion.spaceObjects',
|
|
30
|
+
'org.dxos.role.devtoolsOverview',
|
|
31
|
+
'org.dxos.role.drawer',
|
|
32
|
+
'org.dxos.role.section',
|
|
33
|
+
'org.dxos.role.statusIndicator',
|
|
34
|
+
],
|
|
35
|
+
requires: [Capabilities.AtomRegistry, Debug.DebugCapabilities.Settings, AppCapabilities.FileUploader],
|
|
36
|
+
props: ({ logStore }: Debug.DebugPluginOptions) => ({ logStore }),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export const DebugSettings = AppCapability.settings(() => import('../settings.ts'), {
|
|
40
|
+
activatesOn: ActivationEvents.Idle,
|
|
41
|
+
provides: [Debug.DebugCapabilities.Settings],
|
|
42
|
+
environments: ['browser', 'node', 'tauri'],
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export const GraphRetention = Capability.lazyModule(
|
|
46
|
+
'GraphRetention',
|
|
47
|
+
{ provides: [AppCapabilities.AppGraphRetention] },
|
|
48
|
+
() => import('../graph-retention.ts'),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export const StatsPanel = Capability.lazyModule(
|
|
52
|
+
'StatsPanel',
|
|
53
|
+
{
|
|
54
|
+
requires: [Capabilities.AtomRegistry],
|
|
55
|
+
provides: [AppCapabilities.StatsPanel],
|
|
56
|
+
props: ({ persistStats }: Debug.DebugPluginOptions) => ({ persist: persistStats ?? true }),
|
|
57
|
+
activatesOn: DebugEvents.Start,
|
|
58
|
+
},
|
|
59
|
+
() => import('../stats-panel.ts'),
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
export const OperationHandler = AppCapability.operationHandler(() => import('../operation-handler.ts'));
|
|
63
|
+
|
|
64
|
+
export const MarkdownMenu = Capability.lazyModule(
|
|
65
|
+
'MarkdownMenu',
|
|
66
|
+
{ provides: [MarkdownCapabilities.MenuExtension], activatesOn: DebugEvents.Start },
|
|
67
|
+
() => import('../markdown-menu.ts'),
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
export const SpaceTemplates = AppCapability.spaceTemplates(() => import('../space-templates.ts'));
|
|
71
|
+
|
|
72
|
+
export const LogRecording = Capability.lazyModule(
|
|
73
|
+
'LogRecording',
|
|
74
|
+
{ provides: [], activatesOn: DebugEvents.Start },
|
|
75
|
+
() => import('../log-recording.ts'),
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
export const Translations = AppCapability.translations(translations);
|
|
79
|
+
|
|
80
|
+
export const PluginAsset = AppCapability.pluginAsset({
|
|
81
|
+
pluginId: meta.profile.key,
|
|
82
|
+
path: 'PLUGIN.mdl',
|
|
83
|
+
content: pluginSpec,
|
|
84
|
+
mimeType: 'application/x-mdl',
|
|
85
|
+
});
|
|
@@ -13,6 +13,12 @@ import * as MarkdownCapabilities from '@dxos/plugin-markdown/MarkdownCapabilitie
|
|
|
13
13
|
import { translations } from '#translations';
|
|
14
14
|
import { Debug, DebugEvents } from '#types';
|
|
15
15
|
|
|
16
|
+
export const GraphRetention = Capability.lazyModule(
|
|
17
|
+
'GraphRetention',
|
|
18
|
+
{ provides: [AppCapabilities.AppGraphRetention] },
|
|
19
|
+
() => import('../graph-retention.ts'),
|
|
20
|
+
);
|
|
21
|
+
|
|
16
22
|
export const StatsPanel = Capability.lazyModule(
|
|
17
23
|
'StatsPanel',
|
|
18
24
|
{
|
|
@@ -21,21 +27,21 @@ export const StatsPanel = Capability.lazyModule(
|
|
|
21
27
|
props: ({ persistStats }: Debug.DebugPluginOptions) => ({ persist: persistStats ?? true }),
|
|
22
28
|
activatesOn: DebugEvents.Start,
|
|
23
29
|
},
|
|
24
|
-
() => import('../stats-panel'),
|
|
30
|
+
() => import('../stats-panel.ts'),
|
|
25
31
|
);
|
|
26
32
|
|
|
27
|
-
export const OperationHandler = AppCapability.operationHandler(() => import('../operation-handler'));
|
|
33
|
+
export const OperationHandler = AppCapability.operationHandler(() => import('../operation-handler.ts'));
|
|
28
34
|
|
|
29
35
|
export const MarkdownMenu = Capability.lazyModule(
|
|
30
36
|
'MarkdownMenu',
|
|
31
37
|
{ provides: [MarkdownCapabilities.MenuExtension], activatesOn: DebugEvents.Start },
|
|
32
|
-
() => import('../markdown-menu'),
|
|
38
|
+
() => import('../markdown-menu.ts'),
|
|
33
39
|
);
|
|
34
40
|
|
|
35
41
|
export const LogRecording = Capability.lazyModule(
|
|
36
42
|
'LogRecording',
|
|
37
43
|
{ provides: [], activatesOn: DebugEvents.Start },
|
|
38
|
-
() => import('../log-recording'),
|
|
44
|
+
() => import('../log-recording.ts'),
|
|
39
45
|
);
|
|
40
46
|
|
|
41
47
|
export const Translations = AppCapability.translations(translations);
|
|
@@ -44,3 +50,4 @@ export const AppGraphBuilder = undefined;
|
|
|
44
50
|
export const DebugSettings = undefined;
|
|
45
51
|
export const PluginAsset = undefined;
|
|
46
52
|
export const ReactSurface = undefined;
|
|
53
|
+
export const SpaceTemplates = undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Atom from 'effect/reactivity/Atom';
|
|
7
|
+
|
|
8
|
+
import * as Capability from '@dxos/app-framework/Capability';
|
|
9
|
+
import * as AppCapabilities from '@dxos/app-toolkit/AppCapabilities';
|
|
10
|
+
|
|
11
|
+
import { DebugNodes } from '#types';
|
|
12
|
+
|
|
13
|
+
export default Capability.makeModule(
|
|
14
|
+
Effect.fnUntraced(function* () {
|
|
15
|
+
// Neither host of the panel — the deck's drawer nor the floating window — owns this subtree.
|
|
16
|
+
// TODO(wittjosiah): Release it when no host is showing it.
|
|
17
|
+
const retention: AppCapabilities.AppGraphRetention = {
|
|
18
|
+
retained: Atom.make([{ id: DebugNodes.DEBUG_ROOT_ID }]),
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
return Capability.contribute(AppCapabilities.AppGraphRetention, retention);
|
|
22
|
+
}),
|
|
23
|
+
);
|
|
@@ -16,26 +16,33 @@ import { Debug, DebugEvents } from '#types';
|
|
|
16
16
|
// eslint-disable-next-line import/no-relative-packages
|
|
17
17
|
import pluginSpec from '../../PLUGIN.mdl?raw';
|
|
18
18
|
|
|
19
|
-
export const AppGraphBuilder = AppCapability.appGraphBuilder(() => import('./app-graph-builder'), {
|
|
20
|
-
environments: ['node'],
|
|
19
|
+
export const AppGraphBuilder = AppCapability.appGraphBuilder(() => import('./app-graph-builder.ts'), {
|
|
20
|
+
environments: ['browser', 'node', 'tauri'],
|
|
21
21
|
});
|
|
22
|
-
export const ReactSurface = AppCapability.surface(() => import('./react-surface'), {
|
|
22
|
+
export const ReactSurface = AppCapability.surface(() => import('./react-surface.ts'), {
|
|
23
23
|
roles: [
|
|
24
|
+
'org.dxos.plugin.debug.surface.page',
|
|
24
25
|
'org.dxos.plugin.debug.surface.stats',
|
|
25
26
|
'org.dxos.role.article',
|
|
26
|
-
'org.dxos.role.deckCompanion.logs',
|
|
27
27
|
'org.dxos.role.deckCompanion.spaceObjects',
|
|
28
|
+
'org.dxos.role.devtoolsOverview',
|
|
29
|
+
'org.dxos.role.drawer',
|
|
28
30
|
'org.dxos.role.section',
|
|
29
31
|
'org.dxos.role.statusIndicator',
|
|
30
32
|
],
|
|
31
33
|
requires: [Capabilities.AtomRegistry, Debug.DebugCapabilities.Settings, AppCapabilities.FileUploader],
|
|
32
34
|
props: ({ logStore }: Debug.DebugPluginOptions) => ({ logStore }),
|
|
33
35
|
});
|
|
34
|
-
export const DebugSettings = AppCapability.settings(() => import('./settings'), {
|
|
36
|
+
export const DebugSettings = AppCapability.settings(() => import('./settings.ts'), {
|
|
35
37
|
activatesOn: ActivationEvents.Idle,
|
|
36
38
|
provides: [Debug.DebugCapabilities.Settings],
|
|
37
|
-
environments: ['node'],
|
|
39
|
+
environments: ['browser', 'node', 'tauri'],
|
|
38
40
|
});
|
|
41
|
+
export const GraphRetention = Capability.lazyModule(
|
|
42
|
+
'GraphRetention',
|
|
43
|
+
{ provides: [AppCapabilities.AppGraphRetention] },
|
|
44
|
+
() => import('./graph-retention.ts'),
|
|
45
|
+
);
|
|
39
46
|
export const StatsPanel = Capability.lazyModule(
|
|
40
47
|
'StatsPanel',
|
|
41
48
|
{
|
|
@@ -44,18 +51,19 @@ export const StatsPanel = Capability.lazyModule(
|
|
|
44
51
|
props: ({ persistStats }: Debug.DebugPluginOptions) => ({ persist: persistStats ?? true }),
|
|
45
52
|
activatesOn: DebugEvents.Start,
|
|
46
53
|
},
|
|
47
|
-
() => import('./stats-panel'),
|
|
54
|
+
() => import('./stats-panel.ts'),
|
|
48
55
|
);
|
|
49
|
-
export const OperationHandler = AppCapability.operationHandler(() => import('./operation-handler'));
|
|
56
|
+
export const OperationHandler = AppCapability.operationHandler(() => import('./operation-handler.ts'));
|
|
50
57
|
export const MarkdownMenu = Capability.lazyModule(
|
|
51
58
|
'MarkdownMenu',
|
|
52
59
|
{ provides: [MarkdownCapabilities.MenuExtension], activatesOn: DebugEvents.Start },
|
|
53
|
-
() => import('./markdown-menu'),
|
|
60
|
+
() => import('./markdown-menu.ts'),
|
|
54
61
|
);
|
|
62
|
+
export const SpaceTemplates = AppCapability.spaceTemplates(() => import('./space-templates.ts'));
|
|
55
63
|
export const LogRecording = Capability.lazyModule(
|
|
56
64
|
'LogRecording',
|
|
57
65
|
{ provides: [], activatesOn: DebugEvents.Start },
|
|
58
|
-
() => import('./log-recording'),
|
|
66
|
+
() => import('./log-recording.ts'),
|
|
59
67
|
);
|
|
60
68
|
export const Translations = AppCapability.translations(translations);
|
|
61
69
|
export const PluginAsset = AppCapability.pluginAsset({
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import * as Capability from '@dxos/app-framework/Capability';
|
|
8
|
+
import { log } from '@dxos/log';
|
|
8
9
|
// UI-free subpath: the root barrel reaches the panel components, which would pull React into the
|
|
9
10
|
// headless barrels this module is carried into.
|
|
10
11
|
import { logBuffer } from '@dxos/react-ui-debug/log-buffer';
|
|
@@ -13,11 +14,29 @@ import { logBuffer } from '@dxos/react-ui-debug/log-buffer';
|
|
|
13
14
|
* Start recording into the process-wide log buffer at startup, so the log companion shows what
|
|
14
15
|
* happened before it was opened. Recording deliberately does not follow the panel's mount: the
|
|
15
16
|
* entries worth reading are usually the ones from before you went looking.
|
|
17
|
+
*
|
|
18
|
+
* Uncaught errors and unhandled rejections bypass the log pipeline, so they are forwarded into it
|
|
19
|
+
* here: the buffer, and the snapshot operation reading it, are then the one record of what went
|
|
20
|
+
* wrong in the page.
|
|
16
21
|
*/
|
|
17
22
|
export default Capability.makeModule(
|
|
18
23
|
Effect.fnUntraced(function* () {
|
|
19
24
|
logBuffer.start();
|
|
20
|
-
|
|
25
|
+
const onError = (event: ErrorEvent) => log.error('uncaught error', { error: event.error ?? event.message });
|
|
26
|
+
const onRejection = (event: PromiseRejectionEvent) => log.error('unhandled rejection', { error: event.reason });
|
|
27
|
+
if (typeof window !== 'undefined') {
|
|
28
|
+
window.addEventListener('error', onError);
|
|
29
|
+
window.addEventListener('unhandledrejection', onRejection);
|
|
30
|
+
}
|
|
31
|
+
yield* Effect.addFinalizer(() =>
|
|
32
|
+
Effect.sync(() => {
|
|
33
|
+
if (typeof window !== 'undefined') {
|
|
34
|
+
window.removeEventListener('error', onError);
|
|
35
|
+
window.removeEventListener('unhandledrejection', onRejection);
|
|
36
|
+
}
|
|
37
|
+
logBuffer.stop();
|
|
38
|
+
}),
|
|
39
|
+
);
|
|
21
40
|
return [];
|
|
22
41
|
}),
|
|
23
42
|
);
|
|
@@ -6,11 +6,20 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import * as Capabilities from '@dxos/app-framework/Capabilities';
|
|
8
8
|
import * as Capability from '@dxos/app-framework/Capability';
|
|
9
|
+
import type * as Devtools from '@dxos/app-framework/Devtools';
|
|
9
10
|
|
|
10
11
|
import { DebugOperationHandlerSet } from '#operations';
|
|
11
12
|
|
|
12
13
|
export default Capability.makeModule(
|
|
13
14
|
Effect.fnUntraced(function* () {
|
|
15
|
+
setupDevtools();
|
|
14
16
|
return Capability.contribute(Capabilities.OperationHandler, DebugOperationHandlerSet.handlers);
|
|
15
17
|
}),
|
|
16
18
|
);
|
|
19
|
+
|
|
20
|
+
// Console sugar for the snapshot operation (see app-framework/docs/INTROSPECTION.md §3.1).
|
|
21
|
+
const setupDevtools = () => {
|
|
22
|
+
const composer: Devtools.ComposerDevtools = (globalThis.composer ??= {});
|
|
23
|
+
// `input` passes through, so a caller can scope the error window (`{ since }`).
|
|
24
|
+
composer.snapshot = (input: { since?: number } = {}) => composer.invoke?.('org.dxos.operation.debug.snapshot', input);
|
|
25
|
+
};
|