@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
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as Schema from 'effect/Schema';
|
|
8
8
|
|
|
9
9
|
import * as Capability from '@dxos/app-framework/Capability';
|
|
10
|
+
import * as Plugin from '@dxos/app-framework/Plugin';
|
|
10
11
|
import * as Operation from '@dxos/compute/Operation';
|
|
11
12
|
import { DXN } from '@dxos/echo';
|
|
12
13
|
import * as MarkdownOperation from '@dxos/plugin-markdown/MarkdownOperation';
|
|
@@ -28,3 +29,208 @@ export const InsertLoremIpsum = Operation.make({
|
|
|
28
29
|
// operation layer to the editor.
|
|
29
30
|
services: [Capability.Service],
|
|
30
31
|
});
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Shows a page of the debug panel — a node under `root/debug`, which has no URL for
|
|
35
|
+
* `LayoutOperation.Open` — opening the docked drawer when the panel is docked.
|
|
36
|
+
*/
|
|
37
|
+
export const OpenPage = Operation.make({
|
|
38
|
+
meta: {
|
|
39
|
+
key: DXN.make('org.dxos.operation.debug.openPage'),
|
|
40
|
+
name: 'Open debug page',
|
|
41
|
+
description: 'Selects a page of the debug panel by its qualified graph id and shows the panel.',
|
|
42
|
+
icon: 'ph--terminal-window--regular',
|
|
43
|
+
},
|
|
44
|
+
services: [Capability.Service],
|
|
45
|
+
input: Schema.Struct({
|
|
46
|
+
nodeId: Schema.String.annotate({ description: 'Qualified graph id of the page, under `root/debug`.' }),
|
|
47
|
+
}),
|
|
48
|
+
output: Schema.Void,
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const LayoutSummary = Schema.Struct({
|
|
52
|
+
mode: Schema.String,
|
|
53
|
+
sidebarOpen: Schema.Boolean,
|
|
54
|
+
complementarySidebarOpen: Schema.Boolean,
|
|
55
|
+
dialogOpen: Schema.Boolean,
|
|
56
|
+
workspace: Schema.String,
|
|
57
|
+
active: Schema.Array(Schema.String).annotate({
|
|
58
|
+
description: 'Graph path ids of the open planks — the ids layout open/close operations accept.',
|
|
59
|
+
}),
|
|
60
|
+
inactive: Schema.Array(Schema.String),
|
|
61
|
+
scrollIntoView: Schema.optional(Schema.String),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const SubjectSummary = Schema.Struct({
|
|
65
|
+
id: Schema.optional(Schema.String),
|
|
66
|
+
dxn: Schema.optional(Schema.String),
|
|
67
|
+
typename: Schema.optional(Schema.String),
|
|
68
|
+
name: Schema.optional(Schema.String),
|
|
69
|
+
text: Schema.optional(Schema.String).annotate({
|
|
70
|
+
description: 'The current text of a markdown document, so an edit can be judged without the editor.',
|
|
71
|
+
}),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const ActionSummary = Schema.Struct({
|
|
75
|
+
id: Schema.String,
|
|
76
|
+
label: Schema.optional(Schema.String),
|
|
77
|
+
icon: Schema.optional(Schema.String),
|
|
78
|
+
disabled: Schema.optional(Schema.Boolean),
|
|
79
|
+
operation: Schema.optional(Schema.String).annotate({
|
|
80
|
+
description: 'Operation DXN embedded in the action id — invokable via the operation invoker.',
|
|
81
|
+
}),
|
|
82
|
+
group: Schema.optional(Schema.Boolean),
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
const CommentMessageSummary = Schema.Struct({
|
|
86
|
+
id: Schema.String,
|
|
87
|
+
sender: Schema.optional(Schema.String),
|
|
88
|
+
text: Schema.optional(Schema.String),
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
const CommentThreadSummary = Schema.Struct({
|
|
92
|
+
id: Schema.String,
|
|
93
|
+
anchorId: Schema.String.annotate({
|
|
94
|
+
description: 'Id of the `AnchoredTo` relation that ties the thread to the subject.',
|
|
95
|
+
}),
|
|
96
|
+
anchor: Schema.optional(Schema.String),
|
|
97
|
+
status: Schema.optional(Schema.String),
|
|
98
|
+
messages: Schema.Array(CommentMessageSummary),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
const PlankSummary = Schema.Struct({
|
|
102
|
+
id: Schema.String,
|
|
103
|
+
label: Schema.optional(Schema.String),
|
|
104
|
+
type: Schema.optional(Schema.String),
|
|
105
|
+
subject: Schema.optional(SubjectSummary),
|
|
106
|
+
actions: Schema.Array(ActionSummary),
|
|
107
|
+
comments: Schema.optional(Schema.Array(CommentThreadSummary)).annotate({
|
|
108
|
+
description: "Comment threads anchored to the plank's subject, when it is a database object.",
|
|
109
|
+
}),
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
const SurfaceSummary = Schema.Struct({
|
|
113
|
+
id: Schema.optional(Schema.String),
|
|
114
|
+
role: Schema.optional(Schema.String),
|
|
115
|
+
component: Schema.optional(Schema.String),
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
const SpaceSummary = Schema.Struct({
|
|
119
|
+
id: Schema.String,
|
|
120
|
+
name: Schema.optional(Schema.String),
|
|
121
|
+
state: Schema.String.annotate({ description: 'The `SpaceState` name, e.g. `SPACE_READY`.' }),
|
|
122
|
+
default: Schema.optional(Schema.Boolean),
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
const ToastSummary = Schema.Struct({
|
|
126
|
+
title: Schema.optional(Schema.String),
|
|
127
|
+
description: Schema.optional(Schema.String),
|
|
128
|
+
actions: Schema.Array(Schema.String).annotate({ description: "Labels of the toast's buttons." }),
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
const ErrorSummary = Schema.Struct({
|
|
132
|
+
timestamp: Schema.Number,
|
|
133
|
+
message: Schema.optional(Schema.String),
|
|
134
|
+
error: Schema.optional(Schema.String),
|
|
135
|
+
file: Schema.optional(Schema.String),
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* One JSON document describing the live UI state — layout, attention, open planks with their
|
|
140
|
+
* subjects and reachable actions, mounted surfaces, and plugin counts — so an agent can infer what
|
|
141
|
+
* the user sees and what it can do without screenshots. See app-framework/docs/INTROSPECTION.md.
|
|
142
|
+
*/
|
|
143
|
+
export const Snapshot = Operation.make({
|
|
144
|
+
meta: {
|
|
145
|
+
key: DXN.make('org.dxos.operation.debug.snapshot'),
|
|
146
|
+
name: 'UI Snapshot',
|
|
147
|
+
description:
|
|
148
|
+
'Returns a JSON snapshot of the live UI state: layout (mode, sidebars, open planks), attended ' +
|
|
149
|
+
'items, each open plank with its subject object and the actions the UI offers for it (with ' +
|
|
150
|
+
'their operation keys) and the comment threads on it, the mounted surfaces, the spaces, the visible toasts, the errors ' +
|
|
151
|
+
'logged since `since` (a timestamp; default: the last minute), and plugin counts. Read-only.',
|
|
152
|
+
icon: 'ph--camera--regular',
|
|
153
|
+
},
|
|
154
|
+
services: [Capability.Service, Plugin.Service],
|
|
155
|
+
input: Schema.Struct({
|
|
156
|
+
since: Schema.optional(Schema.Number).annotate({
|
|
157
|
+
description: 'Only errors logged at or after this unix timestamp (ms) are reported.',
|
|
158
|
+
}),
|
|
159
|
+
}),
|
|
160
|
+
output: Schema.Struct({
|
|
161
|
+
layout: Schema.optional(LayoutSummary),
|
|
162
|
+
attention: Schema.Array(Schema.String),
|
|
163
|
+
planks: Schema.Array(PlankSummary),
|
|
164
|
+
surfaces: Schema.Array(SurfaceSummary),
|
|
165
|
+
spaces: Schema.Array(SpaceSummary),
|
|
166
|
+
toasts: Schema.Array(ToastSummary),
|
|
167
|
+
errors: Schema.Array(ErrorSummary),
|
|
168
|
+
plugins: Schema.Struct({
|
|
169
|
+
installed: Schema.Number,
|
|
170
|
+
enabled: Schema.Number,
|
|
171
|
+
active: Schema.Number,
|
|
172
|
+
}),
|
|
173
|
+
}),
|
|
174
|
+
}).pipe(Operation.mutation('none'));
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Undoes the last undoable operation — what the notification toast's **Undo** button does — so an
|
|
178
|
+
* agent driving the app through operations can exercise the undo path it cannot click.
|
|
179
|
+
*/
|
|
180
|
+
export const Undo = Operation.make({
|
|
181
|
+
meta: {
|
|
182
|
+
key: DXN.make('org.dxos.operation.debug.revertLast'),
|
|
183
|
+
name: 'Revert last operation',
|
|
184
|
+
description: 'Undoes the last undoable operation, as the undo toast does. Fails when there is nothing to undo.',
|
|
185
|
+
icon: 'ph--arrow-counter-clockwise--regular',
|
|
186
|
+
},
|
|
187
|
+
services: [Capability.Service],
|
|
188
|
+
input: Schema.Struct({}),
|
|
189
|
+
output: Schema.Struct({
|
|
190
|
+
undone: Schema.Boolean,
|
|
191
|
+
}),
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
const SpaceTemplateSummary = Schema.Struct({
|
|
195
|
+
id: Schema.String,
|
|
196
|
+
label: Schema.String,
|
|
197
|
+
description: Schema.optional(Schema.String),
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Creates a space from one of the templates plugins contribute, so an agent driving the debug port
|
|
202
|
+
* can seed a realistic space without clicking through the generator panel.
|
|
203
|
+
*
|
|
204
|
+
* TODO(wittjosiah): Reconcile with `SpaceOperation.Create`, which also takes a `template`. This adds
|
|
205
|
+
* only the listing (call without `id`) and deleting the space when the apply fails; the rest it
|
|
206
|
+
* hand-rolls because `Create` applies the template before the caller holds the space. Rollback
|
|
207
|
+
* belongs in `Create` for every caller or nowhere, and the listing belongs in a read-only
|
|
208
|
+
* operation rather than in a create that means something else when an argument is absent.
|
|
209
|
+
*/
|
|
210
|
+
export const CreateSpaceFromTemplate = Operation.make({
|
|
211
|
+
meta: {
|
|
212
|
+
key: DXN.make('org.dxos.operation.debug.createSpaceFromTemplate'),
|
|
213
|
+
name: 'Create Space From Template',
|
|
214
|
+
description:
|
|
215
|
+
'Creates a new space and fills it from a themed space template. Call without `id` to list ' +
|
|
216
|
+
'what is available without creating anything; the listing is the only way to learn the ids.',
|
|
217
|
+
icon: 'ph--dice-five--regular',
|
|
218
|
+
},
|
|
219
|
+
// The contributing modules are demand-gated, so the handler fires the activation event itself.
|
|
220
|
+
services: [Capability.Service, Plugin.Service],
|
|
221
|
+
input: Schema.Struct({
|
|
222
|
+
id: Schema.optional(Schema.String).annotate({
|
|
223
|
+
description: 'Space template id. Omit to list the available templates without creating anything.',
|
|
224
|
+
}),
|
|
225
|
+
}),
|
|
226
|
+
output: Schema.Struct({
|
|
227
|
+
applied: Schema.optional(SpaceTemplateSummary).annotate({
|
|
228
|
+
description: 'The template that was written; absent when listing.',
|
|
229
|
+
}),
|
|
230
|
+
spaceId: Schema.optional(Schema.String),
|
|
231
|
+
subject: Schema.optional(Schema.Array(Schema.String)).annotate({
|
|
232
|
+
description: 'Navigation path of the new space, for a follow-up open.',
|
|
233
|
+
}),
|
|
234
|
+
available: Schema.Array(SpaceTemplateSummary),
|
|
235
|
+
}),
|
|
236
|
+
}).pipe(Operation.mutation('write'));
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// @import-as-namespace
|
|
6
6
|
|
|
7
7
|
import * as Role from '@dxos/app-framework/Role';
|
|
8
|
+
import type * as AppSurface from '@dxos/app-toolkit/AppSurface';
|
|
8
9
|
|
|
9
10
|
import { meta } from '#meta';
|
|
10
11
|
|
|
@@ -14,3 +15,9 @@ import { meta } from '#meta';
|
|
|
14
15
|
* the surface reads the store directly, so it needs no subject.
|
|
15
16
|
*/
|
|
16
17
|
export const Stats = Role.make<Record<string, unknown>>(`${meta.profile.key}.surface.stats`);
|
|
18
|
+
|
|
19
|
+
/** Article data for a page of the debug panel, whose nodes have no URL for `LayoutOperation.Open`. */
|
|
20
|
+
export type PageData = AppSurface.ArticleData<unknown, { onNavigate: (nodeId: string) => void }>;
|
|
21
|
+
|
|
22
|
+
/** Role token for a page of the debug panel; every node under `root/debug` registers its surface on it. */
|
|
23
|
+
export const Page = Role.make<PageData>(`${meta.profile.key}.surface.page`);
|
package/src/types/index.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// Copyright 2026 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
export * as Debug from './Debug';
|
|
6
|
-
export * as DebugEvents from './DebugEvents';
|
|
7
|
-
export * as DebugNodes from './DebugNodes';
|
|
8
|
-
export * as DebugOperation from './DebugOperation';
|
|
9
|
-
export * as DebugSurface from './DebugSurface';
|
|
10
|
-
export * as Settings from './Settings';
|
|
5
|
+
export * as Debug from './Debug.ts';
|
|
6
|
+
export * as DebugEvents from './DebugEvents.ts';
|
|
7
|
+
export * as DebugNodes from './DebugNodes.ts';
|
|
8
|
+
export * as DebugOperation from './DebugOperation.ts';
|
|
9
|
+
export * as DebugSurface from './DebugSurface.ts';
|
|
10
|
+
export * as Settings from './Settings.ts';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { meta } from "#meta";
|
|
2
|
-
import "react";
|
|
3
|
-
import { IconButton, Panel, Popover, useTranslation } from "@dxos/react-ui";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { Logger } from "@dxos/react-ui-debug";
|
|
6
|
-
import { StatusBar } from "@dxos/plugin-status-bar/components";
|
|
7
|
-
//#region src/containers/LogStatus/LogStatus.tsx
|
|
8
|
-
/** Status-bar button that opens the log panel in a popover for a quick glance. */
|
|
9
|
-
var LogStatus = () => {
|
|
10
|
-
const { t } = useTranslation(meta.profile.key);
|
|
11
|
-
return /* @__PURE__ */ jsxs(Popover.Root, { children: [/* @__PURE__ */ jsx(StatusBar.Item, { children: /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
12
|
-
asChild: true,
|
|
13
|
-
children: /* @__PURE__ */ jsx(IconButton, {
|
|
14
|
-
variant: "ghost",
|
|
15
|
-
icon: "ph--list-magnifying-glass--regular",
|
|
16
|
-
iconOnly: true,
|
|
17
|
-
label: t("open-logs.label")
|
|
18
|
-
})
|
|
19
|
-
}) }), /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsxs(Popover.Content, {
|
|
20
|
-
side: "top",
|
|
21
|
-
children: [/* @__PURE__ */ jsx(Popover.Viewport, {
|
|
22
|
-
classNames: "w-[40rem] h-[24rem]",
|
|
23
|
-
children: /* @__PURE__ */ jsx(Logger.Root, { children: /* @__PURE__ */ jsxs(Panel.Root, { children: [
|
|
24
|
-
/* @__PURE__ */ jsx(Panel.Toolbar, {
|
|
25
|
-
asChild: true,
|
|
26
|
-
children: /* @__PURE__ */ jsx(Logger.Toolbar, {})
|
|
27
|
-
}),
|
|
28
|
-
/* @__PURE__ */ jsx(Panel.Content, {
|
|
29
|
-
asChild: true,
|
|
30
|
-
children: /* @__PURE__ */ jsx(Logger.Content, { children: /* @__PURE__ */ jsx(Logger.List, {}) })
|
|
31
|
-
}),
|
|
32
|
-
/* @__PURE__ */ jsx(Panel.Statusbar, {
|
|
33
|
-
asChild: true,
|
|
34
|
-
children: /* @__PURE__ */ jsx(Logger.Filter, {})
|
|
35
|
-
})
|
|
36
|
-
] }) })
|
|
37
|
-
}), /* @__PURE__ */ jsx(Popover.Arrow, {})]
|
|
38
|
-
}) })] });
|
|
39
|
-
};
|
|
40
|
-
LogStatus.displayName = "LogStatus";
|
|
41
|
-
//#endregion
|
|
42
|
-
export { LogStatus };
|
|
43
|
-
|
|
44
|
-
//# sourceMappingURL=chunk-LogStatus.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-LogStatus.mjs","names":[],"sources":["../../src/containers/LogStatus/LogStatus.tsx"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport React from 'react';\n\nimport { StatusBar } from '@dxos/plugin-status-bar/components';\nimport { IconButton, Panel, Popover, useTranslation } from '@dxos/react-ui';\nimport { Logger } from '@dxos/react-ui-debug';\n\nimport { meta } from '#meta';\n\n/** Status-bar button that opens the log panel in a popover for a quick glance. */\nexport const LogStatus = () => {\n const { t } = useTranslation(meta.profile.key);\n\n return (\n <Popover.Root>\n {/* IconButton is the direct trigger child so the trigger ref/handlers/ARIA attach to the button, not the container. */}\n <StatusBar.Item>\n <Popover.Trigger asChild>\n <IconButton variant='ghost' icon='ph--list-magnifying-glass--regular' iconOnly label={t('open-logs.label')} />\n </Popover.Trigger>\n </StatusBar.Item>\n <Popover.Portal>\n <Popover.Content side='top'>\n <Popover.Viewport classNames='w-[40rem] h-[24rem]'>\n <Logger.Root>\n <Panel.Root>\n <Panel.Toolbar asChild>\n <Logger.Toolbar />\n </Panel.Toolbar>\n <Panel.Content asChild>\n <Logger.Content>\n <Logger.List />\n </Logger.Content>\n </Panel.Content>\n <Panel.Statusbar asChild>\n <Logger.Filter />\n </Panel.Statusbar>\n </Panel.Root>\n </Logger.Root>\n </Popover.Viewport>\n <Popover.Arrow />\n </Popover.Content>\n </Popover.Portal>\n </Popover.Root>\n );\n};\n\nLogStatus.displayName = 'LogStatus';\n"],"mappings":";;;;;;;;AAaA,IAAa,kBAAkB;CAC7B,MAAM,EAAE,MAAM,eAAe,KAAK,QAAQ,GAAG;CAE7C,OACE,qBAAC,QAAQ,MAAT,EAAA,UAAA,CAEE,oBAAC,UAAU,MAAX,EAAA,UACE,oBAAC,QAAQ,SAAT;EAAiB,SAAA;EACf,UAAA,oBAAC,YAAD;GAAY,SAAQ;GAAQ,MAAK;GAAqC,UAAA;GAAS,OAAO,EAAE,iBAAiB;EAAI,CAAA;CAC9F,CAAA,EACH,CAAA,GAChB,oBAAC,QAAQ,QAAT,EAAA,UACE,qBAAC,QAAQ,SAAT;EAAiB,MAAK;EAAtB,UAAA,CACE,oBAAC,QAAQ,UAAT;GAAkB,YAAW;GAC3B,UAAA,oBAAC,OAAO,MAAR,EAAA,UACE,qBAAC,MAAM,MAAP,EAAA,UAAA;IACE,oBAAC,MAAM,SAAP;KAAe,SAAA;KACb,UAAA,oBAAC,OAAO,SAAR,CAAiB,CAAA;IACJ,CAAA;IACf,oBAAC,MAAM,SAAP;KAAe,SAAA;KACb,UAAA,oBAAC,OAAO,SAAR,EAAA,UACE,oBAAC,OAAO,MAAR,CAAc,CAAA,EACA,CAAA;IACH,CAAA;IACf,oBAAC,MAAM,WAAP;KAAiB,SAAA;KACf,UAAA,oBAAC,OAAO,QAAR,CAAgB,CAAA;IACD,CAAA;GACP,EAAA,CAAA,EACD,CAAA;EACG,CAAA,GAClB,oBAAC,QAAQ,OAAT,CAAgB,CAAA,CACD;CACH,CAAA,EAAA,CAAA,CACJ,EAAA,CAAA;AAElB;AAEA,UAAU,cAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogStatus.d.ts","sourceRoot":"","sources":["../../../../../src/containers/LogStatus/LogStatus.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/LogStatus/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2026 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { StatusBar } from '@dxos/plugin-status-bar/components';
|
|
8
|
-
import { IconButton, Panel, Popover, useTranslation } from '@dxos/react-ui';
|
|
9
|
-
import { Logger } from '@dxos/react-ui-debug';
|
|
10
|
-
|
|
11
|
-
import { meta } from '#meta';
|
|
12
|
-
|
|
13
|
-
/** Status-bar button that opens the log panel in a popover for a quick glance. */
|
|
14
|
-
export const LogStatus = () => {
|
|
15
|
-
const { t } = useTranslation(meta.profile.key);
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<Popover.Root>
|
|
19
|
-
{/* IconButton is the direct trigger child so the trigger ref/handlers/ARIA attach to the button, not the container. */}
|
|
20
|
-
<StatusBar.Item>
|
|
21
|
-
<Popover.Trigger asChild>
|
|
22
|
-
<IconButton variant='ghost' icon='ph--list-magnifying-glass--regular' iconOnly label={t('open-logs.label')} />
|
|
23
|
-
</Popover.Trigger>
|
|
24
|
-
</StatusBar.Item>
|
|
25
|
-
<Popover.Portal>
|
|
26
|
-
<Popover.Content side='top'>
|
|
27
|
-
<Popover.Viewport classNames='w-[40rem] h-[24rem]'>
|
|
28
|
-
<Logger.Root>
|
|
29
|
-
<Panel.Root>
|
|
30
|
-
<Panel.Toolbar asChild>
|
|
31
|
-
<Logger.Toolbar />
|
|
32
|
-
</Panel.Toolbar>
|
|
33
|
-
<Panel.Content asChild>
|
|
34
|
-
<Logger.Content>
|
|
35
|
-
<Logger.List />
|
|
36
|
-
</Logger.Content>
|
|
37
|
-
</Panel.Content>
|
|
38
|
-
<Panel.Statusbar asChild>
|
|
39
|
-
<Logger.Filter />
|
|
40
|
-
</Panel.Statusbar>
|
|
41
|
-
</Panel.Root>
|
|
42
|
-
</Logger.Root>
|
|
43
|
-
</Popover.Viewport>
|
|
44
|
-
<Popover.Arrow />
|
|
45
|
-
</Popover.Content>
|
|
46
|
-
</Popover.Portal>
|
|
47
|
-
</Popover.Root>
|
|
48
|
-
);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
LogStatus.displayName = 'LogStatus';
|