@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
package/dx.config.ts
CHANGED
|
@@ -11,8 +11,9 @@ export default Config2.make({
|
|
|
11
11
|
name: 'Debug',
|
|
12
12
|
author: 'DXOS',
|
|
13
13
|
description: trim`
|
|
14
|
-
DebugPlugin bundles developer debugging utilities for DXOS Composer
|
|
15
|
-
|
|
14
|
+
DebugPlugin bundles developer debugging utilities for DXOS Composer in a floating debug panel
|
|
15
|
+
opened from the status bar: a navtree over a hidden debug category of the app graph, with the
|
|
16
|
+
console, the log viewer, the Devtools inspector, and the tools below as its pages.
|
|
16
17
|
|
|
17
18
|
Test-data generation is available via a SpaceGenerator article surface: developers can
|
|
18
19
|
create configurable batches of synthetic ECHO objects into any space collection, with a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-debug",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "DXOS developer debugging utilities plugin.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -10,19 +10,21 @@
|
|
|
10
10
|
},
|
|
11
11
|
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
|
-
"sideEffects":
|
|
13
|
+
"sideEffects": false,
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
16
|
"#capabilities": {
|
|
17
17
|
"source": {
|
|
18
18
|
"workerd": "./src/capabilities/gen/workerd.ts",
|
|
19
19
|
"node": "./src/capabilities/gen/node.ts",
|
|
20
|
-
"
|
|
20
|
+
"tauri": "./src/capabilities/gen/tauri.ts",
|
|
21
|
+
"browser": "./src/capabilities/gen/browser.ts"
|
|
21
22
|
},
|
|
22
23
|
"types": "./dist/types/src/capabilities/index.d.ts",
|
|
23
24
|
"workerd": "./dist/lib/capabilities.workerd.mjs",
|
|
24
25
|
"node": "./dist/lib/capabilities.node.mjs",
|
|
25
|
-
"
|
|
26
|
+
"tauri": "./dist/lib/capabilities.tauri.mjs",
|
|
27
|
+
"browser": "./dist/lib/capabilities.browser.mjs"
|
|
26
28
|
},
|
|
27
29
|
"#components": {
|
|
28
30
|
"source": "./src/components/index.ts",
|
|
@@ -66,13 +68,6 @@
|
|
|
66
68
|
"types": "./dist/types/src/index.d.ts",
|
|
67
69
|
"import": "./dist/lib/index.mjs"
|
|
68
70
|
},
|
|
69
|
-
"./assets/PLUGIN.mdl": "./PLUGIN.mdl",
|
|
70
|
-
"./package.json": "./package.json",
|
|
71
|
-
"./translations": {
|
|
72
|
-
"source": "./src/translations.ts",
|
|
73
|
-
"types": "./dist/types/src/translations.d.ts",
|
|
74
|
-
"import": "./dist/lib/translations.mjs"
|
|
75
|
-
},
|
|
76
71
|
"./Debug": {
|
|
77
72
|
"source": "./src/types/Debug.ts",
|
|
78
73
|
"types": "./dist/types/src/types/Debug.d.ts",
|
|
@@ -103,10 +98,52 @@
|
|
|
103
98
|
"types": "./dist/types/src/types/DebugSurface.d.ts",
|
|
104
99
|
"import": "./dist/lib/DebugSurface.mjs"
|
|
105
100
|
},
|
|
101
|
+
"./IncidentSpace": {
|
|
102
|
+
"source": "./src/samples/incident/IncidentSpace.ts",
|
|
103
|
+
"types": "./dist/types/src/samples/incident/IncidentSpace.d.ts",
|
|
104
|
+
"import": "./dist/lib/IncidentSpace.mjs"
|
|
105
|
+
},
|
|
106
|
+
"./PipelineSpace": {
|
|
107
|
+
"source": "./src/samples/crm/PipelineSpace.ts",
|
|
108
|
+
"types": "./dist/types/src/samples/crm/PipelineSpace.d.ts",
|
|
109
|
+
"import": "./dist/lib/PipelineSpace.mjs"
|
|
110
|
+
},
|
|
111
|
+
"./ReviewSpace": {
|
|
112
|
+
"source": "./src/samples/review/ReviewSpace.ts",
|
|
113
|
+
"types": "./dist/types/src/samples/review/ReviewSpace.d.ts",
|
|
114
|
+
"import": "./dist/lib/ReviewSpace.mjs"
|
|
115
|
+
},
|
|
106
116
|
"./Settings": {
|
|
107
117
|
"source": "./src/types/Settings.ts",
|
|
108
118
|
"types": "./dist/types/src/types/Settings.d.ts",
|
|
109
119
|
"import": "./dist/lib/Settings.mjs"
|
|
120
|
+
},
|
|
121
|
+
"./StockfishSpace": {
|
|
122
|
+
"source": "./src/samples/stockfish/StockfishSpace.ts",
|
|
123
|
+
"types": "./dist/types/src/samples/stockfish/StockfishSpace.d.ts",
|
|
124
|
+
"import": "./dist/lib/StockfishSpace.mjs"
|
|
125
|
+
},
|
|
126
|
+
"./TidepoolSpace": {
|
|
127
|
+
"source": "./src/samples/tidepool/TidepoolSpace.ts",
|
|
128
|
+
"types": "./dist/types/src/samples/tidepool/TidepoolSpace.d.ts",
|
|
129
|
+
"import": "./dist/lib/TidepoolSpace.mjs"
|
|
130
|
+
},
|
|
131
|
+
"./WeatherSpace": {
|
|
132
|
+
"source": "./src/samples/weather/WeatherSpace.ts",
|
|
133
|
+
"types": "./dist/types/src/samples/weather/WeatherSpace.d.ts",
|
|
134
|
+
"import": "./dist/lib/WeatherSpace.mjs"
|
|
135
|
+
},
|
|
136
|
+
"./WorkerSpace": {
|
|
137
|
+
"source": "./src/samples/worker/WorkerSpace.ts",
|
|
138
|
+
"types": "./dist/types/src/samples/worker/WorkerSpace.d.ts",
|
|
139
|
+
"import": "./dist/lib/WorkerSpace.mjs"
|
|
140
|
+
},
|
|
141
|
+
"./assets/PLUGIN.mdl": "./PLUGIN.mdl",
|
|
142
|
+
"./package.json": "./package.json",
|
|
143
|
+
"./translations": {
|
|
144
|
+
"source": "./src/translations.ts",
|
|
145
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
146
|
+
"import": "./dist/lib/translations.mjs"
|
|
110
147
|
}
|
|
111
148
|
},
|
|
112
149
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -133,83 +170,102 @@
|
|
|
133
170
|
"dist",
|
|
134
171
|
"dx.config.ts",
|
|
135
172
|
"src",
|
|
136
|
-
"PLUGIN.mdl"
|
|
173
|
+
"PLUGIN.mdl",
|
|
174
|
+
"scripts"
|
|
137
175
|
],
|
|
138
176
|
"dependencies": {
|
|
139
|
-
"@effect/atom-react": "4.0.0
|
|
177
|
+
"@effect/atom-react": "4.0.0",
|
|
140
178
|
"react-resize-detector": "^11.0.1",
|
|
141
|
-
"@dxos/app-
|
|
142
|
-
"@dxos/app-
|
|
143
|
-
"@dxos/
|
|
144
|
-
"@dxos/
|
|
145
|
-
"@dxos/
|
|
146
|
-
"@dxos/compute": "0.
|
|
147
|
-
"@dxos/
|
|
148
|
-
"@dxos/
|
|
149
|
-
"@dxos/config": "0.
|
|
150
|
-
"@dxos/devtools": "0.
|
|
151
|
-
"@dxos/echo
|
|
152
|
-
"@dxos/
|
|
153
|
-
"@dxos/
|
|
154
|
-
"@dxos/
|
|
155
|
-
"@dxos/
|
|
156
|
-
"@dxos/
|
|
157
|
-
"@dxos/
|
|
158
|
-
"@dxos/
|
|
159
|
-
"@dxos/log
|
|
160
|
-
"@dxos/
|
|
161
|
-
"@dxos/operation": "0.
|
|
162
|
-
"@dxos/plugin-
|
|
163
|
-
"@dxos/plugin-
|
|
164
|
-
"@dxos/plugin-
|
|
165
|
-
"@dxos/plugin-
|
|
166
|
-
"@dxos/plugin-
|
|
167
|
-
"@dxos/plugin-
|
|
168
|
-
"@dxos/
|
|
169
|
-
"@dxos/
|
|
170
|
-
"@dxos/
|
|
171
|
-
"@dxos/plugin-
|
|
172
|
-
"@dxos/plugin-
|
|
173
|
-
"@dxos/
|
|
174
|
-
"@dxos/
|
|
175
|
-
"@dxos/
|
|
176
|
-
"@dxos/
|
|
177
|
-
"@dxos/
|
|
178
|
-
"@dxos/react-
|
|
179
|
-
"@dxos/react-ui-
|
|
180
|
-
"@dxos/
|
|
181
|
-
"@dxos/
|
|
182
|
-
"@dxos/react-ui-
|
|
183
|
-
"@dxos/ui-
|
|
184
|
-
"@dxos/
|
|
185
|
-
"@dxos/
|
|
179
|
+
"@dxos/app-framework": "0.13.0",
|
|
180
|
+
"@dxos/app-graph": "0.13.0",
|
|
181
|
+
"@dxos/app-toolkit": "0.13.0",
|
|
182
|
+
"@dxos/assistant-toolkit": "0.13.0",
|
|
183
|
+
"@dxos/async": "0.13.0",
|
|
184
|
+
"@dxos/compute": "0.13.0",
|
|
185
|
+
"@dxos/compute-hyperformula": "0.13.0",
|
|
186
|
+
"@dxos/conductor": "0.13.0",
|
|
187
|
+
"@dxos/config": "0.13.0",
|
|
188
|
+
"@dxos/devtools": "0.13.0",
|
|
189
|
+
"@dxos/echo": "0.13.0",
|
|
190
|
+
"@dxos/echo-react": "0.13.0",
|
|
191
|
+
"@dxos/effect": "0.13.0",
|
|
192
|
+
"@dxos/errors": "0.13.0",
|
|
193
|
+
"@dxos/graph": "0.13.0",
|
|
194
|
+
"@dxos/invariant": "0.13.0",
|
|
195
|
+
"@dxos/keys": "0.13.0",
|
|
196
|
+
"@dxos/link": "0.13.0",
|
|
197
|
+
"@dxos/log": "0.13.0",
|
|
198
|
+
"@dxos/log-store-idb": "0.13.0",
|
|
199
|
+
"@dxos/operation": "0.13.0",
|
|
200
|
+
"@dxos/plugin-attention": "0.13.0",
|
|
201
|
+
"@dxos/plugin-chess": "0.13.0",
|
|
202
|
+
"@dxos/plugin-client": "0.13.0",
|
|
203
|
+
"@dxos/plugin-connector": "0.13.0",
|
|
204
|
+
"@dxos/plugin-game": "0.13.0",
|
|
205
|
+
"@dxos/plugin-google": "0.13.0",
|
|
206
|
+
"@dxos/plugin-graph": "0.13.0",
|
|
207
|
+
"@dxos/plugin-illustrator": "0.13.0",
|
|
208
|
+
"@dxos/plugin-inbox": "0.13.0",
|
|
209
|
+
"@dxos/plugin-markdown": "0.13.0",
|
|
210
|
+
"@dxos/plugin-sheet": "0.13.0",
|
|
211
|
+
"@dxos/plugin-space": "0.13.0",
|
|
212
|
+
"@dxos/plugin-status-bar": "0.13.0",
|
|
213
|
+
"@dxos/plugin-tldraw": "0.13.0",
|
|
214
|
+
"@dxos/protocols": "0.13.0",
|
|
215
|
+
"@dxos/random": "0.13.0",
|
|
216
|
+
"@dxos/react-client": "0.13.0",
|
|
217
|
+
"@dxos/react-ui-attention": "0.13.0",
|
|
218
|
+
"@dxos/react-ui-canvas-compute": "0.13.0",
|
|
219
|
+
"@dxos/react-ui-canvas-editor": "0.13.0",
|
|
220
|
+
"@dxos/react-ui-components": "0.13.0",
|
|
221
|
+
"@dxos/react-ui-debug": "0.13.0",
|
|
222
|
+
"@dxos/react-ui-form": "0.13.0",
|
|
223
|
+
"@dxos/react-ui-list": "0.13.0",
|
|
224
|
+
"@dxos/react-ui-menu": "0.13.0",
|
|
225
|
+
"@dxos/react-ui-terminal": "0.13.0",
|
|
226
|
+
"@dxos/types": "0.13.0",
|
|
227
|
+
"@dxos/ui-editor": "0.13.0",
|
|
228
|
+
"@dxos/util": "0.13.0",
|
|
229
|
+
"@dxos/tracing": "0.13.0",
|
|
230
|
+
"@dxos/schema": "0.13.0",
|
|
231
|
+
"@dxos/react-ui-syntax-highlighter": "0.13.0"
|
|
186
232
|
},
|
|
187
233
|
"devDependencies": {
|
|
188
|
-
"@effect/atom-react": "4.0.0
|
|
189
|
-
"@
|
|
234
|
+
"@effect/atom-react": "4.0.0",
|
|
235
|
+
"@effect/vitest": "4.0.0",
|
|
236
|
+
"@storybook/react-vite": "^10.6.0",
|
|
190
237
|
"@types/react": "~19.2.17",
|
|
191
238
|
"@types/react-dom": "~19.2.3",
|
|
192
|
-
"effect": "4.0.0
|
|
239
|
+
"effect": "4.0.0",
|
|
193
240
|
"react": "~19.2.7",
|
|
194
241
|
"react-dom": "~19.2.7",
|
|
195
|
-
"vite": "^8.2.
|
|
196
|
-
"@dxos/
|
|
197
|
-
"@dxos/
|
|
198
|
-
"@dxos/
|
|
199
|
-
"@dxos/
|
|
200
|
-
"@dxos/plugin-
|
|
201
|
-
"@dxos/
|
|
242
|
+
"vite": "^8.2.2",
|
|
243
|
+
"@dxos/agent-runtime": "0.13.0",
|
|
244
|
+
"@dxos/ai": "0.13.0",
|
|
245
|
+
"@dxos/assistant": "0.13.0",
|
|
246
|
+
"@dxos/client-protocol": "0.13.0",
|
|
247
|
+
"@dxos/plugin-inbox": "0.13.0",
|
|
248
|
+
"@dxos/plugin-progress": "0.13.0",
|
|
249
|
+
"@dxos/plugin-projects": "0.13.0",
|
|
250
|
+
"@dxos/plugin-sandbox": "0.13.0",
|
|
251
|
+
"@dxos/plugin-tasks": "0.13.0",
|
|
252
|
+
"@dxos/plugin-testing": "0.13.0",
|
|
253
|
+
"@dxos/react-ui": "0.13.0",
|
|
254
|
+
"@dxos/ui-theme": "0.13.0"
|
|
202
255
|
},
|
|
203
256
|
"peerDependencies": {
|
|
204
|
-
"@effect/atom-react": "4.0.0
|
|
205
|
-
"effect": "4.0.0
|
|
257
|
+
"@effect/atom-react": "4.0.0",
|
|
258
|
+
"effect": "4.0.0",
|
|
206
259
|
"react": "~19.2.7",
|
|
207
260
|
"react-dom": "~19.2.7",
|
|
208
|
-
"@dxos/random": "^0.
|
|
209
|
-
"@dxos/ui-theme": "^0.
|
|
210
|
-
"@dxos/react-ui": "^0.
|
|
261
|
+
"@dxos/random": "^0.13.0",
|
|
262
|
+
"@dxos/ui-theme": "^0.13.0",
|
|
263
|
+
"@dxos/react-ui": "^0.13.0"
|
|
211
264
|
},
|
|
212
265
|
"publishConfig": {
|
|
213
266
|
"access": "public"
|
|
267
|
+
},
|
|
268
|
+
"scripts": {
|
|
269
|
+
"build-template": "vite-node ./scripts/build-template-archive.ts"
|
|
214
270
|
}
|
|
215
271
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Builds one of the space templates and writes its JSON archive to disk.
|
|
7
|
+
*
|
|
8
|
+
* Produced on demand rather than committed, so there is no fixture to keep in step with the
|
|
9
|
+
* schemas; each template's `template.test.ts` asserts its shape instead.
|
|
10
|
+
*
|
|
11
|
+
* pnpm run build-template -- --space crm --out ./northwind.dx.json
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* Needs Node 22+ (`node:sqlite`) — run it through moon or with proto's Node on PATH.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import * as Effect from 'effect/Effect';
|
|
18
|
+
import { writeFile } from 'node:fs/promises';
|
|
19
|
+
import { dirname, resolve } from 'node:path';
|
|
20
|
+
import { fileURLToPath } from 'node:url';
|
|
21
|
+
|
|
22
|
+
import { buildArchive } from '@dxos/app-toolkit/testing';
|
|
23
|
+
import * as EffectEx from '@dxos/effect/EffectEx';
|
|
24
|
+
|
|
25
|
+
import { PipelineSpace, TidepoolSpace } from '../src/samples/index.ts';
|
|
26
|
+
|
|
27
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
28
|
+
|
|
29
|
+
// Only the output name is shared. Each definition has its own phase map, so the two `buildArchive`
|
|
30
|
+
// calls stay in separate branches below rather than behind one value whose type would unify to one
|
|
31
|
+
// of them.
|
|
32
|
+
const SPACES = {
|
|
33
|
+
crm: { file: 'northwind.dx.json' },
|
|
34
|
+
projects: { file: 'tidepool.dx.json' },
|
|
35
|
+
} as const;
|
|
36
|
+
|
|
37
|
+
type SpaceKey = keyof typeof SPACES;
|
|
38
|
+
|
|
39
|
+
const parseArgs = (argv: string[]): { space: SpaceKey; out: string } => {
|
|
40
|
+
const flag = (name: string): string | undefined => {
|
|
41
|
+
const index = argv.indexOf(`--${name}`);
|
|
42
|
+
return index >= 0 ? argv[index + 1] : undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const space = (flag('space') ?? 'crm') as SpaceKey;
|
|
46
|
+
if (!(space in SPACES)) {
|
|
47
|
+
throw new Error(`--space must be one of ${Object.keys(SPACES).join(', ')}, got "${space}"`);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const out = flag('out');
|
|
51
|
+
return { space, out: out ? resolve(out) : resolve(__dirname, SPACES[space].file) };
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const { space, out } = parseArgs(process.argv.slice(2));
|
|
55
|
+
|
|
56
|
+
await EffectEx.runPromise(
|
|
57
|
+
Effect.gen(function* () {
|
|
58
|
+
yield* Effect.log(`building ${space}…`);
|
|
59
|
+
const { json, objectCount } =
|
|
60
|
+
space === 'crm' ? yield* buildArchive(PipelineSpace.make()) : yield* buildArchive(TidepoolSpace.make());
|
|
61
|
+
|
|
62
|
+
yield* Effect.promise(() => writeFile(out, json + '\n', 'utf8'));
|
|
63
|
+
yield* Effect.log(`wrote ${out} (${json.length} bytes, ${objectCount} objects)`);
|
|
64
|
+
}),
|
|
65
|
+
);
|
package/src/DebugPlugin.ts
CHANGED
|
@@ -14,4 +14,4 @@ export const meta = pluginMeta;
|
|
|
14
14
|
/** Constructs the plugin; the body loads on first enable. */
|
|
15
15
|
export const make = Plugin.lazy(meta, () => import('#plugin'));
|
|
16
16
|
|
|
17
|
-
export type { DebugPluginOptions } from './types/Debug';
|
|
17
|
+
export type { DebugPluginOptions as Options } from './types/Debug.ts';
|
|
@@ -8,64 +8,34 @@ import { useAtomValue } from '@effect/atom-react/Hooks';
|
|
|
8
8
|
import * as Option from 'effect/Option';
|
|
9
9
|
import React, { useCallback, useMemo } from 'react';
|
|
10
10
|
|
|
11
|
-
import
|
|
11
|
+
import * as Hooks from '@dxos/app-framework/Hooks';
|
|
12
12
|
import * as AppAnnotation from '@dxos/app-toolkit/AppAnnotation';
|
|
13
13
|
import type * as AppCapabilities from '@dxos/app-toolkit/AppCapabilities';
|
|
14
14
|
import * as GraphPath from '@dxos/app-toolkit/GraphPath';
|
|
15
|
+
import * as ToolkitHooks from '@dxos/app-toolkit/Hooks';
|
|
15
16
|
import * as LayoutOperation from '@dxos/app-toolkit/LayoutOperation';
|
|
16
|
-
import
|
|
17
|
+
import * as SettingsScope from '@dxos/app-toolkit/SettingsScope';
|
|
18
|
+
import * as TypeOptions from '@dxos/app-toolkit/TypeOptions';
|
|
17
19
|
import { Annotation, Collection, Entity, Filter, Obj, Type } from '@dxos/echo';
|
|
18
|
-
import { HiddenAnnotation } from '@dxos/echo/Annotation';
|
|
19
20
|
import { type IdbLogStore } from '@dxos/log-store-idb';
|
|
20
21
|
import * as SpaceCapabilities from '@dxos/plugin-space/SpaceCapabilities';
|
|
21
22
|
import * as SpaceOperation from '@dxos/plugin-space/SpaceOperation';
|
|
22
23
|
import { useClient } from '@dxos/react-client';
|
|
23
|
-
import {
|
|
24
|
-
import { Panel } from '@dxos/react-ui';
|
|
25
|
-
import { Logger } from '@dxos/react-ui-debug';
|
|
24
|
+
import { SpaceState } from '@dxos/react-client/echo';
|
|
26
25
|
|
|
27
|
-
import { DebugObjectPanel, DebugSettings, DebugSpaceObjectsPanel, SpaceGenerator } from '#containers';
|
|
26
|
+
import { DebugConsole, DebugObjectPanel, DebugSettings, DebugSpaceObjectsPanel, SpaceGenerator } from '#containers';
|
|
28
27
|
import { Settings } from '#types';
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const spaceSettings = useAtomCapability(SpaceCapabilities.SettingsAtom);
|
|
34
|
-
const showHidden = spaceSettings?.showHidden ?? false;
|
|
35
|
-
|
|
36
|
-
const allTypes = useAtomValue(useMemo(() => client.graph.registry.query(Filter.type(Type.Type)).atom, [client]));
|
|
37
|
-
|
|
38
|
-
const hiddenTypenames = useMemo(() => {
|
|
39
|
-
const result = new Set<string>();
|
|
40
|
-
for (const typeEntity of allTypes) {
|
|
41
|
-
const schema = Type.getSchema(typeEntity);
|
|
42
|
-
if (HiddenAnnotation.get(schema).pipe(Option.getOrElse(() => false))) {
|
|
43
|
-
result.add(Type.getTypename(typeEntity));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return result;
|
|
47
|
-
}, [allTypes]);
|
|
48
|
-
|
|
49
|
-
const onOpen = useCallback(
|
|
50
|
-
(object: Obj.Unknown) => {
|
|
51
|
-
void invokePromise(LayoutOperation.Open, { subject: [GraphPath.getObjectPathFromObject(object)] });
|
|
52
|
-
},
|
|
53
|
-
[invokePromise],
|
|
54
|
-
);
|
|
29
|
+
//
|
|
30
|
+
// DebugConsoleArticle
|
|
31
|
+
//
|
|
55
32
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if (showHidden) {
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
const typename = Entity.getTypename(entity);
|
|
62
|
-
return !hiddenTypenames.has(typename ?? '');
|
|
63
|
-
},
|
|
64
|
-
[showHidden, hiddenTypenames],
|
|
65
|
-
);
|
|
33
|
+
/** `react-surface.ts` is a plain `.ts` file, so the JSX for the console page's article surface lives here. */
|
|
34
|
+
export const DebugConsoleArticle = () => <DebugConsole fit />;
|
|
66
35
|
|
|
67
|
-
|
|
68
|
-
|
|
36
|
+
//
|
|
37
|
+
// DebugSettings
|
|
38
|
+
//
|
|
69
39
|
|
|
70
40
|
export type DebugSettingsSurfaceProps = {
|
|
71
41
|
subject: AppCapabilities.Settings;
|
|
@@ -74,25 +44,36 @@ export type DebugSettingsSurfaceProps = {
|
|
|
74
44
|
};
|
|
75
45
|
|
|
76
46
|
export const DebugSettingsSurface = ({ subject, logStore, onUpload }: DebugSettingsSurfaceProps) => {
|
|
77
|
-
const { settings, updateSettings } = useSettingsState<Settings.Settings>(subject.atom);
|
|
47
|
+
const { settings, updateSettings } = Hooks.useSettingsState<Settings.Settings>(subject.atom);
|
|
78
48
|
|
|
79
49
|
return (
|
|
80
|
-
<DebugSettings
|
|
50
|
+
<DebugSettings
|
|
51
|
+
settings={settings}
|
|
52
|
+
onSettingsChange={updateSettings}
|
|
53
|
+
logStore={logStore}
|
|
54
|
+
onUpload={onUpload}
|
|
55
|
+
scope={<SettingsScope.Root prefix={subject.prefix} />}
|
|
56
|
+
/>
|
|
81
57
|
);
|
|
82
58
|
};
|
|
83
59
|
|
|
60
|
+
//
|
|
61
|
+
// SpaceGeneratorSurface
|
|
62
|
+
//
|
|
63
|
+
|
|
84
64
|
export type SpaceGeneratorSurfaceProps = {
|
|
85
65
|
role: string;
|
|
86
|
-
space: Space;
|
|
87
66
|
};
|
|
88
67
|
|
|
89
|
-
/** Generated objects are added to the space's root collection, resolved at invocation time. */
|
|
90
|
-
export const SpaceGeneratorSurface = ({ role
|
|
91
|
-
const
|
|
68
|
+
/** Generated objects are added to the active space's root collection, resolved at invocation time. */
|
|
69
|
+
export const SpaceGeneratorSurface = ({ role }: SpaceGeneratorSurfaceProps) => {
|
|
70
|
+
const space = ToolkitHooks.useActiveSpace();
|
|
71
|
+
const { invokePromise } = Hooks.useOperationInvoker();
|
|
72
|
+
|
|
92
73
|
const handleCreateObjects = useCallback(
|
|
93
74
|
(objects: Obj.Unknown[]) => {
|
|
94
75
|
const collection =
|
|
95
|
-
space
|
|
76
|
+
space?.state.get() === SpaceState.SPACE_READY &&
|
|
96
77
|
Annotation.get(space.properties, AppAnnotation.RootCollectionAnnotation).pipe(Option.getOrUndefined)?.target;
|
|
97
78
|
if (!Obj.instanceOf(Collection.Collection, collection)) {
|
|
98
79
|
return;
|
|
@@ -105,24 +86,36 @@ export const SpaceGeneratorSurface = ({ role, space }: SpaceGeneratorSurfaceProp
|
|
|
105
86
|
[space, invokePromise],
|
|
106
87
|
);
|
|
107
88
|
|
|
89
|
+
if (!space) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
|
|
108
93
|
return <SpaceGenerator role={role} space={space} onCreateObjects={handleCreateObjects} />;
|
|
109
94
|
};
|
|
110
95
|
|
|
96
|
+
//
|
|
97
|
+
// ObjectDebugSurface
|
|
98
|
+
//
|
|
99
|
+
|
|
111
100
|
export type ObjectDebugSurfaceProps = {
|
|
112
101
|
role: string;
|
|
113
102
|
companionTo: Obj.Unknown;
|
|
114
103
|
};
|
|
115
104
|
|
|
116
105
|
export const ObjectDebugSurface = ({ role, companionTo }: ObjectDebugSurfaceProps) => {
|
|
117
|
-
const { invokePromise } = useOperationInvoker();
|
|
106
|
+
const { invokePromise } = Hooks.useOperationInvoker();
|
|
118
107
|
const { onOpen, canOpen } = useObjectOpenAction(invokePromise);
|
|
119
108
|
|
|
120
109
|
return <DebugObjectPanel role={role} companionTo={companionTo} onOpen={onOpen} canOpen={canOpen} />;
|
|
121
110
|
};
|
|
122
111
|
|
|
112
|
+
//
|
|
113
|
+
// SpaceObjectsSurface
|
|
114
|
+
//
|
|
115
|
+
|
|
123
116
|
export const SpaceObjectsSurface = () => {
|
|
124
|
-
const space = useActiveSpace();
|
|
125
|
-
const { invokePromise } = useOperationInvoker();
|
|
117
|
+
const space = ToolkitHooks.useActiveSpace();
|
|
118
|
+
const { invokePromise } = Hooks.useOperationInvoker();
|
|
126
119
|
const { onOpen, canOpen } = useObjectOpenAction(invokePromise);
|
|
127
120
|
if (!space) {
|
|
128
121
|
return null;
|
|
@@ -131,20 +124,41 @@ export const SpaceObjectsSurface = () => {
|
|
|
131
124
|
return <DebugSpaceObjectsPanel space={space} onOpen={onOpen} canOpen={canOpen} />;
|
|
132
125
|
};
|
|
133
126
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
);
|
|
127
|
+
/** Returns `onOpen` and `canOpen` for the ObjectsTree "Open" action. */
|
|
128
|
+
const useObjectOpenAction = (invokePromise: ReturnType<typeof Hooks.useOperationInvoker>['invokePromise']) => {
|
|
129
|
+
const client = useClient();
|
|
130
|
+
const spaceSettings = Hooks.useAtomCapability(SpaceCapabilities.SettingsAtom);
|
|
131
|
+
const showHidden = spaceSettings?.showHidden ?? false;
|
|
132
|
+
|
|
133
|
+
const allTypes = useAtomValue(useMemo(() => client.graph.registry.query(Filter.type(Type.Type)).atom, [client]));
|
|
134
|
+
|
|
135
|
+
const hiddenTypenames = useMemo(() => {
|
|
136
|
+
const result = new Set<string>();
|
|
137
|
+
for (const typeEntity of allTypes) {
|
|
138
|
+
if (!TypeOptions.isUserType(typeEntity)) {
|
|
139
|
+
result.add(Type.getTypename(typeEntity));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return result;
|
|
143
|
+
}, [allTypes]);
|
|
144
|
+
|
|
145
|
+
const onOpen = useCallback(
|
|
146
|
+
(object: Obj.Unknown) => {
|
|
147
|
+
void invokePromise(LayoutOperation.Open, { subject: [GraphPath.getObjectPathFromObject(object)] });
|
|
148
|
+
},
|
|
149
|
+
[invokePromise],
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
const canOpen = useCallback(
|
|
153
|
+
(entity: Entity.Snapshot) => {
|
|
154
|
+
if (showHidden) {
|
|
155
|
+
return true;
|
|
156
|
+
}
|
|
157
|
+
const typename = Entity.getTypename(entity);
|
|
158
|
+
return !hiddenTypenames.has(typename ?? '');
|
|
159
|
+
},
|
|
160
|
+
[showHidden, hiddenTypenames],
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
return { onOpen, canOpen };
|
|
164
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Option from 'effect/Option';
|
|
6
|
+
import { describe, test } from 'vitest';
|
|
7
|
+
|
|
8
|
+
import * as AppGraph from '@dxos/app-graph/AppGraph';
|
|
9
|
+
import * as AppGraphNode from '@dxos/app-graph/AppGraphNode';
|
|
10
|
+
import { setupGraphBuilder } from '@dxos/app-graph/testing';
|
|
11
|
+
import * as EffectEx from '@dxos/effect/EffectEx';
|
|
12
|
+
import * as GraphNode from '@dxos/graph/GraphNode';
|
|
13
|
+
|
|
14
|
+
import { DebugNodes } from '#types';
|
|
15
|
+
|
|
16
|
+
import { createDebugExtension, createDebugRootExtension } from './app-graph-builder.ts';
|
|
17
|
+
|
|
18
|
+
describe('debug graph extensions', () => {
|
|
19
|
+
const setup = async () => {
|
|
20
|
+
const rootExtensions = await EffectEx.runPromise(createDebugRootExtension());
|
|
21
|
+
const debugExtensions = await EffectEx.runPromise(createDebugExtension());
|
|
22
|
+
const context = setupGraphBuilder({ extensions: [...rootExtensions, ...debugExtensions] });
|
|
23
|
+
await context.expand(GraphNode.RootId);
|
|
24
|
+
await context.expand(DebugNodes.DEBUG_ROOT_ID);
|
|
25
|
+
await context.expand(DebugNodes.DEBUG_NODE_ID);
|
|
26
|
+
return context;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
test('root/debug is a hidden root child', async ({ expect }) => {
|
|
30
|
+
const { graph } = await setup();
|
|
31
|
+
const node = Option.getOrThrow(AppGraph.getNode(graph, DebugNodes.DEBUG_ROOT_ID));
|
|
32
|
+
expect(AppGraphNode.hasDisposition(node, 'hidden')).toBe(true);
|
|
33
|
+
expect(node.data).toBeNull();
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
test('the Debug node hosts console, logs, then the generator', async ({ expect }) => {
|
|
37
|
+
const { getConnections } = await setup();
|
|
38
|
+
expect(getConnections(DebugNodes.DEBUG_ROOT_ID).map((node) => node.id)).toEqual([DebugNodes.DEBUG_NODE_ID]);
|
|
39
|
+
expect(getConnections(DebugNodes.DEBUG_NODE_ID).map((node) => node.id)).toEqual([
|
|
40
|
+
DebugNodes.CONSOLE_NODE_ID,
|
|
41
|
+
`${DebugNodes.DEBUG_NODE_ID}/${DebugNodes.nodeId(DebugNodes.Logs)}`,
|
|
42
|
+
`${DebugNodes.DEBUG_NODE_ID}/${DebugNodes.nodeId(DebugNodes.SpaceType)}`,
|
|
43
|
+
]);
|
|
44
|
+
});
|
|
45
|
+
});
|