@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
|
@@ -6,39 +6,25 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import * as Capabilities from '@dxos/app-framework/Capabilities';
|
|
8
8
|
import * as Capability from '@dxos/app-framework/Capability';
|
|
9
|
-
import
|
|
9
|
+
import * as Surface from '@dxos/app-framework/Surface';
|
|
10
10
|
import * as AppCapabilities from '@dxos/app-toolkit/AppCapabilities';
|
|
11
|
-
import
|
|
11
|
+
import * as AppSurface from '@dxos/app-toolkit/AppSurface';
|
|
12
12
|
import { Obj } from '@dxos/echo';
|
|
13
13
|
import { type IdbLogStore } from '@dxos/log-store-idb';
|
|
14
|
-
import
|
|
15
|
-
import { Position } from '@dxos/util';
|
|
14
|
+
import * as Position from '@dxos/util/Position';
|
|
16
15
|
|
|
17
|
-
import { DebugStatus,
|
|
16
|
+
import { DebugPanelDrawer, DebugPanelStatus, DebugStatus, LoggerPanel, StatsPanel, Wireframe } from '#containers';
|
|
18
17
|
import { meta } from '#meta';
|
|
19
18
|
import { DebugNodes, DebugSurface } from '#types';
|
|
20
19
|
|
|
21
|
-
import { DebugCapabilities } from '../types/Debug';
|
|
20
|
+
import { DebugCapabilities } from '../types/Debug.ts';
|
|
22
21
|
import {
|
|
22
|
+
DebugConsoleArticle,
|
|
23
23
|
DebugSettingsSurface,
|
|
24
|
-
LoggerSurface,
|
|
25
24
|
ObjectDebugSurface,
|
|
26
25
|
SpaceGeneratorSurface,
|
|
27
26
|
SpaceObjectsSurface,
|
|
28
|
-
} from './DebugSurfaces';
|
|
29
|
-
|
|
30
|
-
type SpaceDebug = {
|
|
31
|
-
type: string;
|
|
32
|
-
space: Space;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const isSpaceDebug = (data: unknown): data is SpaceDebug =>
|
|
36
|
-
typeof data === 'object' &&
|
|
37
|
-
data !== null &&
|
|
38
|
-
'type' in data &&
|
|
39
|
-
data.type === DebugNodes.SpaceType &&
|
|
40
|
-
'space' in data &&
|
|
41
|
-
isSpace(data.space);
|
|
27
|
+
} from './DebugSurfaces.tsx';
|
|
42
28
|
|
|
43
29
|
type ReactSurfaceOptions = {
|
|
44
30
|
logStore?: IdbLogStore;
|
|
@@ -59,9 +45,9 @@ export default Capability.makeModule(
|
|
|
59
45
|
}),
|
|
60
46
|
Surface.create({
|
|
61
47
|
id: 'space',
|
|
62
|
-
filter: AppSurface.
|
|
48
|
+
filter: AppSurface.literal(DebugSurface.Page, DebugNodes.SpaceType),
|
|
63
49
|
component: SpaceGeneratorSurface,
|
|
64
|
-
props: ({ role
|
|
50
|
+
props: ({ role }) => ({ role }),
|
|
65
51
|
}),
|
|
66
52
|
Surface.create({
|
|
67
53
|
id: 'wireframe',
|
|
@@ -84,6 +70,16 @@ export default Capability.makeModule(
|
|
|
84
70
|
classNames: 'row-span-2 overflow-hidden',
|
|
85
71
|
}),
|
|
86
72
|
}),
|
|
73
|
+
Surface.create({
|
|
74
|
+
id: 'console',
|
|
75
|
+
filter: AppSurface.literal(DebugSurface.Page, DebugNodes.Console),
|
|
76
|
+
component: DebugConsoleArticle,
|
|
77
|
+
}),
|
|
78
|
+
Surface.create({
|
|
79
|
+
id: 'logsArticle',
|
|
80
|
+
filter: AppSurface.literal(DebugSurface.Page, DebugNodes.Logs),
|
|
81
|
+
component: LoggerPanel,
|
|
82
|
+
}),
|
|
87
83
|
Surface.create({
|
|
88
84
|
id: 'objectDebug',
|
|
89
85
|
filter: AppSurface.allOf(
|
|
@@ -105,20 +101,28 @@ export default Capability.makeModule(
|
|
|
105
101
|
component: DebugStatus,
|
|
106
102
|
}),
|
|
107
103
|
Surface.create({
|
|
108
|
-
id: '
|
|
109
|
-
filter: Surface.makeFilter(AppSurface.
|
|
110
|
-
component:
|
|
104
|
+
id: 'debugPanelStatus',
|
|
105
|
+
filter: Surface.makeFilter(AppSurface.StatusIndicator),
|
|
106
|
+
component: DebugPanelStatus,
|
|
111
107
|
}),
|
|
112
108
|
Surface.create({
|
|
113
|
-
id: '
|
|
114
|
-
filter: Surface.makeFilter(AppSurface.
|
|
115
|
-
component:
|
|
109
|
+
id: 'debugDrawer',
|
|
110
|
+
filter: Surface.makeFilter(AppSurface.Drawer),
|
|
111
|
+
component: DebugPanelDrawer,
|
|
116
112
|
}),
|
|
117
113
|
Surface.create({
|
|
118
114
|
id: 'statsPanel',
|
|
119
115
|
filter: Surface.makeFilter(DebugSurface.Stats),
|
|
120
116
|
component: StatsPanel,
|
|
121
117
|
}),
|
|
118
|
+
Surface.create({
|
|
119
|
+
id: 'statsCards',
|
|
120
|
+
filter: Surface.makeFilter(AppSurface.DevtoolsOverview),
|
|
121
|
+
// After the devtools cards (0–12) and before contributors that sit last.
|
|
122
|
+
position: 20,
|
|
123
|
+
component: StatsPanel,
|
|
124
|
+
props: () => ({ showEmpty: false }),
|
|
125
|
+
}),
|
|
122
126
|
]);
|
|
123
127
|
}),
|
|
124
128
|
);
|
|
@@ -6,14 +6,14 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import * as Capability from '@dxos/app-framework/Capability';
|
|
8
8
|
import * as AppCapabilities from '@dxos/app-toolkit/AppCapabilities';
|
|
9
|
-
import
|
|
9
|
+
import * as KvsStore from '@dxos/effect/KvsStore';
|
|
10
10
|
|
|
11
11
|
import { meta } from '#meta';
|
|
12
12
|
import { Debug, Settings } from '#types';
|
|
13
13
|
|
|
14
14
|
export default Capability.makeModule(() =>
|
|
15
15
|
Effect.sync(() => {
|
|
16
|
-
const settingsAtom =
|
|
16
|
+
const settingsAtom = KvsStore.make({
|
|
17
17
|
key: meta.profile.key,
|
|
18
18
|
schema: Settings.Settings,
|
|
19
19
|
defaultValue: () => ({}),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import type * as AppCapabilities from '@dxos/app-toolkit/AppCapabilities';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
IncidentSpace,
|
|
9
|
+
PipelineSpace,
|
|
10
|
+
ReviewSpace,
|
|
11
|
+
StockfishSpace,
|
|
12
|
+
TidepoolSpace,
|
|
13
|
+
WeatherSpace,
|
|
14
|
+
WorkerSpace,
|
|
15
|
+
} from '../samples/index.ts';
|
|
16
|
+
|
|
17
|
+
export default [
|
|
18
|
+
PipelineSpace.makeTemplate(),
|
|
19
|
+
TidepoolSpace.makeTemplate(),
|
|
20
|
+
StockfishSpace.makeTemplate(),
|
|
21
|
+
WorkerSpace.makeTemplate(),
|
|
22
|
+
WeatherSpace.makeTemplate(),
|
|
23
|
+
IncidentSpace.makeTemplate(),
|
|
24
|
+
ReviewSpace.makeTemplate(),
|
|
25
|
+
] satisfies ReadonlyArray<AppCapabilities.SpaceTemplate>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Atom from 'effect/
|
|
6
|
+
import * as Atom from 'effect/reactivity/Atom';
|
|
7
7
|
|
|
8
8
|
import * as Capabilities from '@dxos/app-framework/Capabilities';
|
|
9
9
|
import * as Capability from '@dxos/app-framework/Capability';
|
|
@@ -2,20 +2,50 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import React from 'react';
|
|
5
|
+
import React, { useCallback, useState } from 'react';
|
|
6
6
|
|
|
7
7
|
import { Type } from '@dxos/echo';
|
|
8
|
-
import {
|
|
8
|
+
import { log } from '@dxos/log';
|
|
9
|
+
import * as Button from '@dxos/react-ui/Button';
|
|
10
|
+
import * as Util from '@dxos/react-ui/Util';
|
|
9
11
|
import { mx } from '@dxos/ui-theme';
|
|
10
12
|
|
|
11
|
-
export type SchemaTableProps = ThemedClassName<{
|
|
13
|
+
export type SchemaTableProps = Util.ThemedClassName<{
|
|
12
14
|
types: any[];
|
|
13
15
|
objects?: Record<string, number | undefined>;
|
|
14
16
|
label: string;
|
|
15
|
-
|
|
17
|
+
/** May be async — the row awaits it, so a generator's failure is reported rather than unowned. */
|
|
18
|
+
onClick: (typename: string) => Promise<void> | void;
|
|
16
19
|
}>;
|
|
17
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Row display name: a preset descriptor may carry one, otherwise the key it is created by.
|
|
23
|
+
*
|
|
24
|
+
* The field is `presetLabel` rather than `name` because a class-based type entity already has a
|
|
25
|
+
* `name` — its JS class name — so keying off that suppressed the count on every real type row.
|
|
26
|
+
*/
|
|
27
|
+
const rowName = (type: { presetLabel?: string }, typename: string | undefined): string =>
|
|
28
|
+
(typeof type.presetLabel === 'string' ? type.presetLabel : undefined) ?? typename ?? '';
|
|
29
|
+
|
|
18
30
|
export const SchemaTable = ({ classNames, types, objects = {}, label, onClick }: SchemaTableProps) => {
|
|
31
|
+
const [pending, setPending] = useState<string>();
|
|
32
|
+
const handleClick = useCallback(
|
|
33
|
+
async (typename: string) => {
|
|
34
|
+
if (pending !== undefined) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
setPending(typename);
|
|
38
|
+
try {
|
|
39
|
+
await onClick(typename);
|
|
40
|
+
} catch (err) {
|
|
41
|
+
log.catch(err);
|
|
42
|
+
} finally {
|
|
43
|
+
setPending(undefined);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
[onClick, pending],
|
|
47
|
+
);
|
|
48
|
+
|
|
19
49
|
return (
|
|
20
50
|
<div className={mx('grid grid-cols-[1fr_80px_40px] gap-1 overflow-none', classNames)}>
|
|
21
51
|
<h2 className='p-2'>{label}</h2>
|
|
@@ -25,14 +55,18 @@ export const SchemaTable = ({ classNames, types, objects = {}, label, onClick }:
|
|
|
25
55
|
const typename = typeof type.typename === 'string' ? type.typename : Type.getTypename(type);
|
|
26
56
|
return (
|
|
27
57
|
<div key={typename} className='grid grid-cols-subgrid col-span-3 items-center'>
|
|
28
|
-
<div className='px-2 text-sm font-mono text-
|
|
29
|
-
|
|
30
|
-
<
|
|
58
|
+
<div className='px-2 text-sm font-mono text-fg-subtle'>{rowName(type, typename)}</div>
|
|
59
|
+
{/* A labelled row is a preset rather than a type, so it has no object count to show. */}
|
|
60
|
+
<div className='px-2 text-right font-mono'>
|
|
61
|
+
{typeof type.presetLabel === 'string' ? '—' : typename ? (objects[typename] ?? 0) : 0}
|
|
62
|
+
</div>
|
|
63
|
+
<Button.Root
|
|
31
64
|
variant='ghost'
|
|
32
|
-
icon='ph--plus--regular'
|
|
65
|
+
icon={pending === typename ? 'ph--spinner--regular' : 'ph--plus--regular'}
|
|
33
66
|
iconOnly
|
|
34
|
-
|
|
35
|
-
|
|
67
|
+
disabled={pending !== undefined}
|
|
68
|
+
label={`Create ${rowName(type, typename)}`}
|
|
69
|
+
onClick={() => typename && void handleClick(typename)}
|
|
36
70
|
/>
|
|
37
71
|
</div>
|
|
38
72
|
);
|
|
@@ -2,13 +2,19 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import type * as PluginManager from '@dxos/app-framework/PluginManager';
|
|
5
8
|
import { addressToA1Notation } from '@dxos/compute-hyperformula/types';
|
|
9
|
+
import * as Operation from '@dxos/compute/Operation';
|
|
6
10
|
import { ComputeGraph, ComputeGraphModel, DEFAULT_OUTPUT, NODE_INPUT, NODE_OUTPUT } from '@dxos/conductor';
|
|
7
11
|
import { EID, Filter, Key, Type, View } from '@dxos/echo';
|
|
12
|
+
import * as EffectEx from '@dxos/effect/EffectEx';
|
|
8
13
|
import { OperationInvoker } from '@dxos/operation';
|
|
9
14
|
import * as Drawing from '@dxos/plugin-illustrator/Drawing';
|
|
10
15
|
import * as Markdown from '@dxos/plugin-markdown/Markdown';
|
|
11
16
|
import * as Sheet from '@dxos/plugin-sheet/Sheet';
|
|
17
|
+
import * as SpaceCapabilities from '@dxos/plugin-space/SpaceCapabilities';
|
|
12
18
|
import * as SpaceOperation from '@dxos/plugin-space/SpaceOperation';
|
|
13
19
|
import * as Tldraw from '@dxos/plugin-tldraw/Tldraw';
|
|
14
20
|
import { random } from '@dxos/random';
|
|
@@ -28,7 +34,8 @@ export type ObjectGenerator<T> = (space: Space, n: number, cb?: (objects: T[]) =
|
|
|
28
34
|
|
|
29
35
|
export const createGenerator = <S extends Type.AnyObj>(
|
|
30
36
|
client: Client,
|
|
31
|
-
|
|
37
|
+
invoker: OperationInvoker.OperationInvoker,
|
|
38
|
+
manager: PluginManager.PluginManager,
|
|
32
39
|
schema: S,
|
|
33
40
|
): ObjectGenerator<Type.InstanceType<S>> => {
|
|
34
41
|
return async (space: Space, n: number): Promise<Type.InstanceType<S>[]> => {
|
|
@@ -44,7 +51,20 @@ export const createGenerator = <S extends Type.AnyObj>(
|
|
|
44
51
|
.find((s) => Type.getTypename(s) === typename)
|
|
45
52
|
: undefined;
|
|
46
53
|
if (!view && !staticSchema) {
|
|
47
|
-
|
|
54
|
+
const { data } = await invoker.invokePromise(
|
|
55
|
+
SpaceOperation.AddType,
|
|
56
|
+
{ type: schema, show: false },
|
|
57
|
+
{ spaceId: space.id },
|
|
58
|
+
);
|
|
59
|
+
// The operation's process cannot see the managers, so the plugins (e.g. the table for the type) are told here.
|
|
60
|
+
if (data && !data.notified) {
|
|
61
|
+
await EffectEx.runAndForwardErrors(
|
|
62
|
+
SpaceCapabilities.notifyTypeAdded(
|
|
63
|
+
{ plugins: manager, capabilities: manager.capabilities },
|
|
64
|
+
{ db: space.db, type: data.object, show: false },
|
|
65
|
+
).pipe(Effect.provideService(Operation.Service, invoker)),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
48
68
|
}
|
|
49
69
|
|
|
50
70
|
// Create objects.
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import * as AgentOperation from '@dxos/assistant-toolkit/AgentOperation';
|
|
8
|
+
import * as WebSearchSkill from '@dxos/assistant-toolkit/WebSearchSkill';
|
|
8
9
|
import * as Instructions from '@dxos/compute/Instructions';
|
|
9
10
|
import * as Operation from '@dxos/compute/Operation';
|
|
10
11
|
import * as Trigger from '@dxos/compute/Trigger';
|
|
@@ -38,7 +39,7 @@ import { ViewModel } from '@dxos/schema';
|
|
|
38
39
|
import { Message, Organization, Person, Pipeline } from '@dxos/types';
|
|
39
40
|
import { range, trim } from '@dxos/util';
|
|
40
41
|
|
|
41
|
-
import { type ObjectGenerator } from './ObjectGenerator';
|
|
42
|
+
import { type ObjectGenerator } from './ObjectGenerator.tsx';
|
|
42
43
|
|
|
43
44
|
export enum PresetName {
|
|
44
45
|
DXOS_TEAM = 'dxos-team',
|
|
@@ -162,7 +163,6 @@ export const generator = () => ({
|
|
|
162
163
|
const researchPrompt = space.db.add(
|
|
163
164
|
Instructions.make({
|
|
164
165
|
name: 'Research',
|
|
165
|
-
description: 'Research organization',
|
|
166
166
|
|
|
167
167
|
// TODO(dmaretskyi): This mocks research (returns pre-baked result), the actual research might take compute minutes.
|
|
168
168
|
// Remove the mock prompt to do the actual research.
|
|
@@ -179,7 +179,7 @@ export const generator = () => ({
|
|
|
179
179
|
Trigger.make({
|
|
180
180
|
enabled: true,
|
|
181
181
|
spec: Trigger.specSubscription(organizationsQuery),
|
|
182
|
-
runnable: Ref.make(Operation.serialize(RunInstructions)),
|
|
182
|
+
runnable: Ref.make(Operation.serialize(AgentOperation.RunInstructions)),
|
|
183
183
|
input: {
|
|
184
184
|
instructions: Ref.make(researchPrompt),
|
|
185
185
|
input: '{{event.subject}}',
|
package/src/components/index.ts
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
6
|
+
|
|
7
|
+
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
8
|
+
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
9
|
+
|
|
10
|
+
import { translations } from '#translations';
|
|
11
|
+
|
|
12
|
+
import { DebugConsole } from './DebugConsole.tsx';
|
|
13
|
+
|
|
14
|
+
const meta = {
|
|
15
|
+
title: 'plugins/plugin-debug/containers/DebugConsole',
|
|
16
|
+
component: DebugConsole,
|
|
17
|
+
decorators: [withPluginManager(), withTheme(), withLayout({ layout: 'centered' })],
|
|
18
|
+
parameters: { translations },
|
|
19
|
+
} satisfies Meta<typeof DebugConsole>;
|
|
20
|
+
|
|
21
|
+
export default meta;
|
|
22
|
+
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
|
|
25
|
+
export const Default: Story = {
|
|
26
|
+
args: {
|
|
27
|
+
onClose: () => {},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import React, { useCallback, useMemo, useRef } from 'react';
|
|
6
|
+
|
|
7
|
+
import * as PluginManagerProvider from '@dxos/app-framework/PluginManagerProvider';
|
|
8
|
+
import { Terminal, type TerminalApi } from '@dxos/react-ui-terminal';
|
|
9
|
+
import * as Button from '@dxos/react-ui/Button';
|
|
10
|
+
import * as Hooks from '@dxos/react-ui/Hooks';
|
|
11
|
+
import * as Panel from '@dxos/react-ui/Panel';
|
|
12
|
+
import * as SystemButton from '@dxos/react-ui/SystemButton';
|
|
13
|
+
import * as Toolbar from '@dxos/react-ui/Toolbar';
|
|
14
|
+
|
|
15
|
+
import { meta } from '#meta';
|
|
16
|
+
|
|
17
|
+
import { createDebugCli } from './cli.ts';
|
|
18
|
+
|
|
19
|
+
const BOLD = '\x1b[1m';
|
|
20
|
+
const DIM = '\x1b[2m';
|
|
21
|
+
const RESET = '\x1b[0m';
|
|
22
|
+
|
|
23
|
+
/** Sizes a host that has no size of its own; a host with a definite size passes `fit` instead. */
|
|
24
|
+
const FIXED_GRID = { cols: 100, rows: 24 };
|
|
25
|
+
|
|
26
|
+
const BANNER = `${BOLD}Debug console${RESET}\n${DIM}snapshot · plugins · enable · disable · ops · invoke · eval · port — "help" for details.${RESET}`;
|
|
27
|
+
|
|
28
|
+
export type DebugConsoleProps = {
|
|
29
|
+
/** Rendered as a close button in the toolbar when provided (the popover host closes itself). */
|
|
30
|
+
onClose?: () => void;
|
|
31
|
+
/** Fits the terminal to its container; without it the fixed grid sizes a content-sized host. */
|
|
32
|
+
fit?: boolean;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The debug console: the introspection surface an agent drives over the debug port (operations,
|
|
37
|
+
* snapshot, plugin management, eval), as an interactive Effect-CLI terminal.
|
|
38
|
+
*/
|
|
39
|
+
export const DebugConsole = ({ onClose, fit }: DebugConsoleProps) => {
|
|
40
|
+
const { t } = Hooks.useTranslation(meta.profile.key);
|
|
41
|
+
const manager = PluginManagerProvider.usePluginManager();
|
|
42
|
+
const apiRef = useRef<TerminalApi | null>(null);
|
|
43
|
+
const lastResultRef = useRef('');
|
|
44
|
+
const cli = useMemo(
|
|
45
|
+
() =>
|
|
46
|
+
createDebugCli(manager, {
|
|
47
|
+
onResult: (text) => {
|
|
48
|
+
lastResultRef.current = text;
|
|
49
|
+
},
|
|
50
|
+
}),
|
|
51
|
+
[manager],
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
const handleClear = useCallback(() => {
|
|
55
|
+
apiRef.current?.clear();
|
|
56
|
+
apiRef.current?.focus();
|
|
57
|
+
}, []);
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<Panel.Root>
|
|
61
|
+
<Panel.Body>
|
|
62
|
+
<Terminal
|
|
63
|
+
ref={apiRef}
|
|
64
|
+
command={cli.command}
|
|
65
|
+
layer={cli.layer}
|
|
66
|
+
name='debug'
|
|
67
|
+
banner={BANNER}
|
|
68
|
+
dimensions={fit ? undefined : FIXED_GRID}
|
|
69
|
+
/>
|
|
70
|
+
</Panel.Body>
|
|
71
|
+
<Panel.Footer>
|
|
72
|
+
<Toolbar.Root classNames='bg-transparent'>
|
|
73
|
+
<Button.Root
|
|
74
|
+
variant='ghost'
|
|
75
|
+
iconOnly
|
|
76
|
+
icon='ph--eraser--regular'
|
|
77
|
+
label={t('console.clear.label')}
|
|
78
|
+
onClick={handleClear}
|
|
79
|
+
/>
|
|
80
|
+
<SystemButton.Clipboard
|
|
81
|
+
variant='ghost'
|
|
82
|
+
iconOnly
|
|
83
|
+
label={t('console.copy.label')}
|
|
84
|
+
onCopy={() => lastResultRef.current}
|
|
85
|
+
/>
|
|
86
|
+
<Toolbar.Separator />
|
|
87
|
+
{onClose && <SystemButton.Close variant='ghost' iconOnly onClick={onClose} />}
|
|
88
|
+
</Toolbar.Root>
|
|
89
|
+
</Panel.Footer>
|
|
90
|
+
</Panel.Root>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
DebugConsole.displayName = 'DebugConsole';
|