@hachej/boring-workspace 0.1.70 → 0.1.72
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/dist/{FileTree-B_fRS4Om.js → FileTree-C8JPlZtS.js} +1 -1
- package/dist/{MarkdownEditor-C55gVDyW.js → MarkdownEditor-B9wN6tGH.js} +14 -14
- package/dist/{WorkspaceLoadingState-D3i4X-eH.js → WorkspaceLoadingState-TgOWTNJC.js} +350 -203
- package/dist/{WorkspaceProvider-Ddx7GByq.js → WorkspaceProvider-DcOiZU24.js} +9 -9
- package/dist/app-front.d.ts +2 -883
- package/dist/app-front.js +1049 -1033
- package/dist/app-server.d.ts +4 -4
- package/dist/bridge-client.d.ts +2 -2
- package/dist/charts.d.ts +2 -119
- package/dist/plugin.d.ts +3 -3
- package/dist/{runtimeEnv-CU-c4kaV.d.ts → runtimeEnv-DKtVLBXo.d.ts} +2 -2
- package/dist/server.d.ts +6 -6
- package/dist/shared.d.ts +3 -3
- package/dist/src/__tests__/WorkspaceProvider.test.d.ts +1 -0
- package/dist/src/__tests__/exploration.property.test.d.ts +1 -0
- package/dist/src/__tests__/plugin-integration.test.d.ts +1 -0
- package/dist/src/__tests__/public-api.test.d.ts +1 -0
- package/dist/src/__tests__/publicFileStateApi.test.d.ts +1 -0
- package/dist/src/__tests__/theme-system.test.d.ts +1 -0
- package/dist/src/app/front/CloseLeftPaneOnAttention.d.ts +10 -0
- package/dist/src/app/front/PluginAppLeftHost.d.ts +18 -0
- package/dist/src/app/front/WorkspaceAgentFront.d.ts +174 -0
- package/dist/src/app/front/WorkspaceAgentStatusStates.d.ts +5 -0
- package/dist/src/app/front/WorkspaceBackgroundBoot.d.ts +10 -0
- package/dist/src/app/front/WorkspaceBootGate.d.ts +12 -0
- package/dist/src/app/front/WorkspaceFullPagePanel.d.ts +5 -0
- package/dist/src/app/front/WorkspaceShellCapabilitiesHost.d.ts +20 -0
- package/dist/src/app/front/WorkspaceUiStateSync.d.ts +9 -0
- package/dist/src/app/front/__tests__/WorkspaceAgentFront.test.d.ts +1 -0
- package/dist/src/app/front/__tests__/WorkspaceBackgroundBoot.test.d.ts +1 -0
- package/dist/src/app/front/__tests__/WorkspaceBootGate.test.d.ts +1 -0
- package/dist/src/app/front/__tests__/WorkspaceFullPagePanel.test.d.ts +1 -0
- package/dist/src/app/front/__tests__/chatPaneState.property.test.d.ts +1 -0
- package/dist/src/app/front/__tests__/useWorkspaceShellCapabilitiesController.test.d.ts +1 -0
- package/dist/src/app/front/__tests__/workspacePreload.test.d.ts +1 -0
- package/dist/src/app/front/chatPaneState.d.ts +8 -0
- package/dist/src/app/front/fullPageRoute.d.ts +10 -0
- package/dist/src/app/front/fullPageRouteErrors.d.ts +7 -0
- package/dist/src/app/front/index.d.ts +8 -0
- package/dist/src/app/front/localStorageSessions.d.ts +18 -0
- package/dist/src/app/front/useWorkspaceShellCapabilitiesController.d.ts +8 -0
- package/dist/src/app/front/workspaceBuiltinPlugins.d.ts +6 -0
- package/dist/src/app/front/workspacePreload.d.ts +64 -0
- package/dist/src/bridge-client/__tests__/client.test.d.ts +1 -0
- package/dist/src/bridge-client/index.d.ts +65 -0
- package/dist/src/front/agentPlugins/__tests__/registerAgentPlugin.test.d.ts +1 -0
- package/dist/src/front/agentPlugins/registerAgentPlugin.d.ts +26 -0
- package/dist/src/front/agentPlugins/reloadEvent.d.ts +7 -0
- package/dist/src/front/attention/WorkspaceAttentionProvider.d.ts +71 -0
- package/dist/src/front/attention/__tests__/WorkspaceAttentionProvider.test.d.ts +1 -0
- package/dist/src/front/attention/index.d.ts +2 -0
- package/dist/src/front/bridge/WorkspaceLink.d.ts +35 -0
- package/dist/src/front/bridge/__tests__/WorkspaceLink.test.d.ts +1 -0
- package/dist/src/front/bridge/__tests__/bridge.property.test.d.ts +1 -0
- package/dist/src/front/bridge/__tests__/bridge.test.d.ts +1 -0
- package/dist/src/front/bridge/__tests__/client.test.d.ts +1 -0
- package/dist/src/front/bridge/__tests__/uiCommandDispatcher.test.d.ts +1 -0
- package/dist/src/front/bridge/__tests__/uiCommandStream.test.d.ts +1 -0
- package/dist/src/front/bridge/client.d.ts +33 -0
- package/dist/src/front/bridge/createBridge.d.ts +8 -0
- package/dist/src/front/bridge/index.d.ts +12 -0
- package/dist/src/front/bridge/types.d.ts +92 -0
- package/dist/src/front/bridge/uiCommandBus.d.ts +3 -0
- package/dist/src/front/bridge/uiCommandDispatcher.d.ts +44 -0
- package/dist/src/front/bridge/uiCommandStream.d.ts +41 -0
- package/dist/src/front/bridge/validation.d.ts +66 -0
- package/dist/src/front/charts/__tests__/charts.test.d.ts +1 -0
- package/dist/src/front/charts/index.d.ts +92 -0
- package/dist/src/front/chrome/artifact-surface/ArtifactSurfacePane.d.ts +18 -0
- package/dist/src/front/chrome/artifact-surface/SurfaceShell.d.ts +84 -0
- package/dist/src/front/chrome/artifact-surface/__tests__/ArtifactSurfacePane.persistence.test.d.ts +1 -0
- package/dist/src/front/chrome/artifact-surface/__tests__/ArtifactSurfacePane.test.d.ts +1 -0
- package/dist/src/front/chrome/artifact-surface/__tests__/SurfaceShell.test.d.ts +1 -0
- package/dist/src/front/chrome/artifact-surface/__tests__/resolvePanelForPath.test.d.ts +1 -0
- package/dist/src/front/chrome/artifact-surface/definition.d.ts +12 -0
- package/dist/src/front/chrome/artifact-surface/surfaceShellHelpers.d.ts +10 -0
- package/dist/src/front/chrome/chat/ChatPanelHost.d.ts +16 -0
- package/dist/src/front/chrome/chat/DetachedChatPopover.d.ts +11 -0
- package/dist/src/front/chrome/chat/__tests__/ChatPanelHost.test.d.ts +1 -0
- package/dist/src/front/chrome/chat/composerStop.d.ts +19 -0
- package/dist/src/front/chrome/chat/definition.d.ts +16 -0
- package/dist/src/front/chrome/chat/types.d.ts +30 -0
- package/dist/src/front/chrome/empty-pane/EmptyPane.d.ts +5 -0
- package/dist/src/front/chrome/empty-pane/__tests__/EmptyPane.test.d.ts +1 -0
- package/dist/src/front/chrome/management/ManagementOverlaySurface.d.ts +16 -0
- package/dist/src/front/chrome/plugins/PluginsOverlay.d.ts +16 -0
- package/dist/src/front/chrome/session-list/SessionBrowser.d.ts +20 -0
- package/dist/src/front/chrome/session-list/__tests__/SessionBrowser.test.d.ts +1 -0
- package/dist/src/front/chrome/session-list/definition.d.ts +28 -0
- package/dist/src/front/chrome/skills/SkillsPage.d.ts +11 -0
- package/dist/src/front/chrome/skills/definition.d.ts +3 -0
- package/dist/src/front/chrome/workbench-left/WorkbenchLeftPane.d.ts +28 -0
- package/dist/src/front/chrome/workbench-left/__tests__/WorkbenchLeftPane.test.d.ts +1 -0
- package/dist/src/front/chrome/workbench-left/definition.d.ts +12 -0
- package/dist/src/front/chrome/workbench-left/useWorkspaceLeftPaneActions.d.ts +48 -0
- package/dist/src/front/components/CommandPalette.d.ts +21 -0
- package/dist/src/front/components/ControlTooltip.d.ts +12 -0
- package/dist/src/front/components/ErrorChip.d.ts +6 -0
- package/dist/src/front/components/PanelErrorBoundary.d.ts +22 -0
- package/dist/src/front/components/SessionList.d.ts +15 -0
- package/dist/src/front/components/WorkspaceLoadingState.d.ts +8 -0
- package/dist/src/front/components/__tests__/CommandPalette.test.d.ts +1 -0
- package/dist/src/front/components/__tests__/PanelErrorBoundary.test.d.ts +1 -0
- package/dist/src/front/components/__tests__/SessionList.test.d.ts +1 -0
- package/dist/src/front/components/__tests__/WorkspaceLoadingState.test.d.ts +1 -0
- package/dist/src/front/components/commandPaletteHelpers.d.ts +16 -0
- package/dist/src/front/components/recent/__tests__/migrate.test.d.ts +1 -0
- package/dist/src/front/components/recent/__tests__/recentStore.test.d.ts +1 -0
- package/dist/src/front/components/recent/index.d.ts +2 -0
- package/dist/src/front/components/recent/recentStore.d.ts +9 -0
- package/dist/src/front/components/recent/types.d.ts +23 -0
- package/dist/src/front/components/useCommandPaletteCatalogSearch.d.ts +7 -0
- package/dist/src/front/components/useCommandPaletteChrome.d.ts +14 -0
- package/dist/src/front/components/useCommandPaletteSelection.d.ts +15 -0
- package/dist/src/front/detached/DetachedPanelPopover.d.ts +2 -0
- package/dist/src/front/detached/detachedPanelTypes.d.ts +21 -0
- package/dist/src/front/detached/useDetachedPanelPosition.d.ts +10 -0
- package/dist/src/front/dock/DockviewShell.d.ts +6 -0
- package/dist/src/front/dock/PanelChrome.d.ts +16 -0
- package/dist/src/front/dock/ShadcnTab.d.ts +2 -0
- package/dist/src/front/dock/__tests__/dock.test.d.ts +1 -0
- package/dist/src/front/dock/index.d.ts +3 -0
- package/dist/src/front/dock/types.d.ts +69 -0
- package/dist/src/front/events/__tests__/agentBridge.test.d.ts +1 -0
- package/dist/src/front/events/__tests__/bus.test.d.ts +1 -0
- package/dist/src/front/events/__tests__/types.test.d.ts +1 -0
- package/dist/src/front/events/__tests__/useEvent.test.d.ts +1 -0
- package/dist/src/front/events/agentBridge.d.ts +1 -0
- package/dist/src/front/events/bus.d.ts +21 -0
- package/dist/src/front/events/index.d.ts +7 -0
- package/dist/src/front/events/types.d.ts +137 -0
- package/dist/src/front/events/useEvent.d.ts +7 -0
- package/dist/src/front/fullPage.d.ts +24 -0
- package/dist/src/front/hooks/__tests__/useArtifactPanels.test.d.ts +1 -0
- package/dist/src/front/hooks/__tests__/useArtifactRouting.test.d.ts +1 -0
- package/dist/src/front/hooks/__tests__/useEditorLifecycle.test.d.ts +1 -0
- package/dist/src/front/hooks/__tests__/useKeyboardShortcuts.test.d.ts +1 -0
- package/dist/src/front/hooks/__tests__/useViewportBreakpoint.test.d.ts +1 -0
- package/dist/src/front/hooks/index.d.ts +6 -0
- package/dist/src/front/hooks/useArtifactPanels.d.ts +14 -0
- package/dist/src/front/hooks/useArtifactRouting.d.ts +12 -0
- package/dist/src/front/hooks/useEditorLifecycle.d.ts +27 -0
- package/dist/src/front/hooks/useKeyboardShortcuts.d.ts +13 -0
- package/dist/src/front/hooks/useResponsiveSidebarCollapse.d.ts +6 -0
- package/dist/src/front/hooks/useViewportBreakpoint.d.ts +1 -0
- package/dist/src/front/layout/ChatLayout.d.ts +4 -0
- package/dist/src/front/layout/ChatPaneStage.d.ts +59 -0
- package/dist/src/front/layout/ChatPaneStageDock.d.ts +5 -0
- package/dist/src/front/layout/IdeLayout.d.ts +4 -0
- package/dist/src/front/layout/ResponsiveDockviewShell.d.ts +6 -0
- package/dist/src/front/layout/ThemeToggle.d.ts +10 -0
- package/dist/src/front/layout/TopBar.d.ts +17 -0
- package/dist/src/front/layout/__tests__/ChatPaneStageDock.test.d.ts +1 -0
- package/dist/src/front/layout/__tests__/TopBar.test.d.ts +1 -0
- package/dist/src/front/layout/__tests__/presets.test.d.ts +1 -0
- package/dist/src/front/layout/cornerChrome.d.ts +10 -0
- package/dist/src/front/layout/index.d.ts +9 -0
- package/dist/src/front/layout/mobileShell.d.ts +18 -0
- package/dist/src/front/layout/paneCollapseButton.d.ts +15 -0
- package/dist/src/front/layout/plugin-tabs/AppLeftOverlayChromeContext.d.ts +1 -0
- package/dist/src/front/layout/plugin-tabs/AppLeftPane.d.ts +75 -0
- package/dist/src/front/layout/plugin-tabs/AppLeftPaneActions.d.ts +13 -0
- package/dist/src/front/layout/plugin-tabs/AppLeftPaneHeader.d.ts +7 -0
- package/dist/src/front/layout/plugin-tabs/AppLeftPaneProjects.d.ts +18 -0
- package/dist/src/front/layout/plugin-tabs/AppLeftPaneSections.d.ts +6 -0
- package/dist/src/front/layout/plugin-tabs/AppLeftPaneSessionRow.d.ts +18 -0
- package/dist/src/front/layout/plugin-tabs/PluginTabsWorkspaceShell.d.ts +15 -0
- package/dist/src/front/layout/plugin-tabs/__tests__/AppLeftPane.test.d.ts +1 -0
- package/dist/src/front/layout/types.d.ts +40 -0
- package/dist/src/front/layout/useViewportWidth.d.ts +1 -0
- package/dist/src/front/lib/utils.d.ts +2 -0
- package/dist/src/front/lib/utils.test.d.ts +1 -0
- package/dist/src/front/lib/validation.d.ts +189 -0
- package/dist/src/front/plugin/PluginErrorBoundary.d.ts +21 -0
- package/dist/src/front/plugin/PluginErrorContext.d.ts +19 -0
- package/dist/src/front/plugin/PluginInspector.d.ts +8 -0
- package/dist/src/front/plugin/__tests__/CatalogRegistry.test.d.ts +1 -0
- package/dist/src/front/plugin/__tests__/PluginErrorBoundary.test.d.ts +1 -0
- package/dist/src/front/plugin/__tests__/PluginInspector.test.d.ts +1 -0
- package/dist/src/front/plugin/__tests__/useWorkspacePluginClient.test.d.ts +1 -0
- package/dist/src/front/plugin/index.d.ts +10 -0
- package/dist/src/front/plugin/useActivePanels.d.ts +2 -0
- package/dist/src/front/plugin/useCatalogs.d.ts +2 -0
- package/dist/src/front/plugin/useCommands.d.ts +2 -0
- package/dist/src/front/plugin/useWorkspacePluginClient.d.ts +29 -0
- package/dist/src/front/provider/WorkspaceProvider.d.ts +84 -0
- package/dist/src/front/provider/index.d.ts +9 -0
- package/dist/src/front/provider/workspaceTitle.d.ts +5 -0
- package/dist/src/front/registry/PanelRegistry.d.ts +39 -0
- package/dist/src/front/registry/PanelRenderStatusBoundary.d.ts +38 -0
- package/dist/src/front/registry/RegistryProvider.d.ts +21 -0
- package/dist/src/front/registry/WorkspaceSourceRegistry.d.ts +25 -0
- package/dist/src/front/registry/__tests__/registry.test.d.ts +1 -0
- package/dist/src/front/registry/__tests__/replaceByPluginId.test.d.ts +1 -0
- package/dist/src/front/registry/__tests__/subscribe.test.d.ts +1 -0
- package/dist/src/front/registry/coreRegistrations.d.ts +2 -0
- package/dist/src/front/registry/getFileIcon.d.ts +2 -0
- package/dist/src/front/registry/index.d.ts +7 -0
- package/dist/src/front/registry/types.d.ts +2 -0
- package/dist/src/front/shell/WorkspaceShellCapabilitiesContext.d.ts +1 -0
- package/dist/src/front/store/__tests__/store.property.test.d.ts +1 -0
- package/dist/src/front/store/__tests__/store.test.d.ts +1 -0
- package/dist/src/front/store/index.d.ts +35 -0
- package/dist/src/front/store/localStorageValues.d.ts +4 -0
- package/dist/src/front/store/selectors.d.ts +21 -0
- package/dist/src/front/store/types.d.ts +53 -0
- package/dist/src/front/testing/TestWorkspaceProvider.d.ts +13 -0
- package/dist/src/front/testing/__tests__/testing.test.d.ts +1 -0
- package/dist/src/front/testing/createLocalStorageSessions.d.ts +16 -0
- package/dist/src/front/testing/createMockBridge.d.ts +20 -0
- package/dist/src/front/testing/createMockPaneProps.d.ts +11 -0
- package/dist/src/front/testing/createMockRegistry.d.ts +7 -0
- package/dist/src/front/testing/createMockSessions.d.ts +24 -0
- package/dist/src/front/testing/e2e.d.ts +61 -0
- package/dist/src/front/testing/index.d.ts +17 -0
- package/dist/src/front/testing/mockApi.d.ts +9 -0
- package/dist/src/front/testing/renderPane.d.ts +20 -0
- package/dist/src/front/theme/codemirror-theme.d.ts +4 -0
- package/dist/src/front/theme/index.d.ts +1 -0
- package/dist/src/front/toast/__tests__/toast.test.d.ts +1 -0
- package/dist/src/front/toast/index.d.ts +1 -0
- package/dist/src/index.d.ts +90 -0
- package/dist/src/plugin.d.ts +19 -0
- package/dist/src/plugins/filesystemPlugin/front/ConflictBanner.d.ts +14 -0
- package/dist/src/plugins/filesystemPlugin/front/FilePaneShell.d.ts +73 -0
- package/dist/src/plugins/filesystemPlugin/front/__tests__/agentFileBridge.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/__tests__/filePanelBinding.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/__tests__/filesystemPlugin.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/__tests__/search.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/__tests__/useFilePane.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/agentFileBridge.d.ts +12 -0
- package/dist/src/plugins/filesystemPlugin/front/catalogs.d.ts +9 -0
- package/dist/src/plugins/filesystemPlugin/front/code-editor/CodeEditor.d.ts +10 -0
- package/dist/src/plugins/filesystemPlugin/front/code-editor/CodeEditorPane.d.ts +8 -0
- package/dist/src/plugins/filesystemPlugin/front/code-editor/__tests__/CodeEditor.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/code-editor/__tests__/CodeEditorPane.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/data/DataProvider.d.ts +16 -0
- package/dist/src/plugins/filesystemPlugin/front/data/__tests__/fetchClient.integration.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/data/__tests__/fetchClient.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/data/__tests__/fileRecords.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/data/__tests__/hooks.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/data/__tests__/useFileEventInvalidation.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/data/__tests__/useFileEventStream.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/data/__tests__/useFileUpload.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/data/fetchClient.d.ts +63 -0
- package/dist/src/plugins/filesystemPlugin/front/data/fileRecords.d.ts +34 -0
- package/dist/src/plugins/filesystemPlugin/front/data/filesystemErrorRedaction.d.ts +2 -0
- package/dist/src/plugins/filesystemPlugin/front/data/hooks.d.ts +48 -0
- package/dist/src/plugins/filesystemPlugin/front/data/index.d.ts +9 -0
- package/dist/src/plugins/filesystemPlugin/front/data/treePreloadCache.d.ts +3 -0
- package/dist/src/plugins/filesystemPlugin/front/data/types.d.ts +37 -0
- package/dist/src/plugins/filesystemPlugin/front/data/useFileEventInvalidation.d.ts +28 -0
- package/dist/src/plugins/filesystemPlugin/front/data/useFileEventStream.d.ts +27 -0
- package/dist/src/plugins/filesystemPlugin/front/data/useFileUpload.d.ts +12 -0
- package/dist/src/plugins/filesystemPlugin/front/empty-file-panel/EmptyFilePanel.d.ts +6 -0
- package/dist/src/plugins/filesystemPlugin/front/empty-file-panel/definition.d.ts +8 -0
- package/dist/src/plugins/filesystemPlugin/front/events.d.ts +6 -0
- package/dist/src/plugins/filesystemPlugin/front/file-tree/FileTree.d.ts +59 -0
- package/dist/src/plugins/filesystemPlugin/front/file-tree/FileTreeView.d.ts +83 -0
- package/dist/src/plugins/filesystemPlugin/front/file-tree/__tests__/FileTree.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/file-tree/__tests__/FileTreePane.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/file-tree/__tests__/copyToClipboard.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/file-tree/clipboard.d.ts +6 -0
- package/dist/src/plugins/filesystemPlugin/front/file-tree/dndManager.d.ts +8 -0
- package/dist/src/plugins/filesystemPlugin/front/file-tree/treeModel.d.ts +20 -0
- package/dist/src/plugins/filesystemPlugin/front/filePanelBinding.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/html-viewer/HtmlViewer.d.ts +18 -0
- package/dist/src/plugins/filesystemPlugin/front/html-viewer/HtmlViewer.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/html-viewer/HtmlViewerPane.d.ts +7 -0
- package/dist/src/plugins/filesystemPlugin/front/index.d.ts +11 -0
- package/dist/src/plugins/filesystemPlugin/front/markdown-editor/MarkdownEditor.d.ts +44 -0
- package/dist/src/plugins/filesystemPlugin/front/markdown-editor/MarkdownEditorPane.d.ts +8 -0
- package/dist/src/plugins/filesystemPlugin/front/markdown-editor/ResizableImage.d.ts +10 -0
- package/dist/src/plugins/filesystemPlugin/front/markdown-editor/__tests__/MarkdownEditor.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/markdown-editor/__tests__/MarkdownEditorPane.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/media-viewer/MediaViewer.d.ts +9 -0
- package/dist/src/plugins/filesystemPlugin/front/media-viewer/MediaViewer.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/media-viewer/MediaViewerPane.d.ts +8 -0
- package/dist/src/plugins/filesystemPlugin/front/media-viewer/useMediaViewerReload.d.ts +8 -0
- package/dist/src/plugins/filesystemPlugin/front/media-viewer/useMediaViewerReload.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/search.d.ts +5 -0
- package/dist/src/plugins/filesystemPlugin/front/search.test.d.ts +1 -0
- package/dist/src/plugins/filesystemPlugin/front/surfaceResolver.d.ts +10 -0
- package/dist/src/plugins/filesystemPlugin/front/useFilePane.d.ts +61 -0
- package/dist/src/plugins/filesystemPlugin/shared/constants.d.ts +12 -0
- package/dist/src/plugins/filesystemPlugin/shared/events.d.ts +39 -0
- package/dist/src/shared/__tests__/filesystem.test.d.ts +1 -0
- package/dist/src/shared/__tests__/telemetry.test.d.ts +1 -0
- package/dist/src/shared/__tests__/workspaceBridgeRpc.test.d.ts +1 -0
- package/dist/src/shared/index.d.ts +25 -0
- package/dist/src/shared/plugins/CatalogRegistry.d.ts +28 -0
- package/dist/src/shared/plugins/CommandRegistry.d.ts +23 -0
- package/dist/src/shared/plugins/SurfaceResolverRegistry.d.ts +24 -0
- package/dist/src/shared/plugins/__tests__/bootstrap.test.d.ts +1 -0
- package/dist/src/shared/plugins/__tests__/frontFactory.test.d.ts +1 -0
- package/dist/src/shared/plugins/__tests__/manifest.test.d.ts +1 -0
- package/dist/src/shared/plugins/__tests__/uiBridgeRegistry.test.d.ts +1 -0
- package/dist/src/shared/plugins/appLeftOverlayChrome.d.ts +10 -0
- package/dist/src/shared/plugins/bootstrap.d.ts +41 -0
- package/dist/src/shared/plugins/errors.d.ts +5 -0
- package/dist/src/shared/plugins/frontFactory.d.ts +166 -0
- package/dist/src/shared/plugins/index.d.ts +5 -0
- package/dist/src/shared/plugins/manifest.d.ts +58 -0
- package/dist/src/shared/plugins/runtimePluginTypes.d.ts +51 -0
- package/dist/src/shared/plugins/types.d.ts +84 -0
- package/dist/src/shared/plugins/uiBridgeRegistry.d.ts +44 -0
- package/dist/src/shared/plugins/workspaceShellCapabilities.d.ts +44 -0
- package/dist/src/shared/telemetry.d.ts +11 -0
- package/dist/src/shared/types/agent-tool.d.ts +30 -0
- package/dist/src/shared/types/boring-core-front.d.ts +2 -0
- package/dist/src/shared/types/filesystem.d.ts +15 -0
- package/dist/src/shared/types/panel.d.ts +123 -0
- package/dist/src/shared/types/surface.d.ts +42 -0
- package/dist/src/shared/ui-bridge.d.ts +77 -0
- package/dist/src/shared/workspace-bridge-rpc.d.ts +122 -0
- package/dist/{surface-aLQ_Hryw.d.ts → surface-h6IgrsK5.d.ts} +1 -1
- package/dist/testing-e2e.d.ts +2 -73
- package/dist/testing.d.ts +2 -433
- package/dist/testing.js +11 -11
- package/dist/{ui-bridge-D2eO3epD.d.ts → ui-bridge-C4CyIrQA.d.ts} +1 -1
- package/dist/{workspace-bridge-rpc-A98RA5o6.d.ts → workspace-bridge-rpc-BHsOJMlW.d.ts} +1 -1
- package/dist/workspace.css +21 -0
- package/dist/workspace.d.ts +2 -2649
- package/dist/workspace.js +40 -40
- package/package.json +5 -5
package/dist/testing.d.ts
CHANGED
|
@@ -1,433 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { DockviewPanelApi } from 'dockview-react';
|
|
4
|
-
import { JSX } from 'react';
|
|
5
|
-
import { Page } from '@playwright/test';
|
|
6
|
-
import { ReactElement } from 'react';
|
|
7
|
-
import { ReactNode } from 'react';
|
|
8
|
-
import { RenderOptions } from '@testing-library/react';
|
|
9
|
-
import { RenderResult } from '@testing-library/react';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Land on the app with a clean localStorage so persistence-sensitive tests
|
|
13
|
-
* start from defaults. Pre-opens the workbench surface unless told
|
|
14
|
-
* otherwise — see `openWorkbenchAtBoot`.
|
|
15
|
-
*
|
|
16
|
-
* Also drains the server-side bridge command queue. The bridge is process-
|
|
17
|
-
* global on a shared dev server (E2E_EXTERNAL_SERVER=1); without an
|
|
18
|
-
* explicit drain, a leftover command from a previous test (e.g. an
|
|
19
|
-
* openPanel posted just before that test ended) gets re-delivered to the
|
|
20
|
-
* next test's SSE subscriber and mounts an unexpected pane. The drain is
|
|
21
|
-
* a no-op when the queue is already empty.
|
|
22
|
-
*/
|
|
23
|
-
export declare function bootClean(page: Page, opts: BootCleanOptions): Promise<void>;
|
|
24
|
-
|
|
25
|
-
export declare interface BootCleanOptions {
|
|
26
|
-
/**
|
|
27
|
-
* Storage prefix used by declarative chat shells. The
|
|
28
|
-
* bootClean default is to pre-seed `${shellKey}:surface=1` so the
|
|
29
|
-
* workbench mounts at boot — required for any test that posts an
|
|
30
|
-
* openPanel via the bridge (the dispatcher early-returns when no
|
|
31
|
-
* surface is mounted).
|
|
32
|
-
*/
|
|
33
|
-
shellKey: string;
|
|
34
|
-
/** Extra localStorage entries to seed after the clear. */
|
|
35
|
-
seed?: Record<string, string>;
|
|
36
|
-
/**
|
|
37
|
-
* If false, surface=1 is NOT pre-seeded — the test starts with the
|
|
38
|
-
* workbench closed. Default: true.
|
|
39
|
-
*/
|
|
40
|
-
openWorkbenchAtBoot?: boolean;
|
|
41
|
-
/** Vite + dockview cold-mount allowance. Default 2500ms. */
|
|
42
|
-
mountSettleMs?: number;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare interface BridgeEventMap {
|
|
46
|
-
"panel:opened": {
|
|
47
|
-
panelId: string;
|
|
48
|
-
params: Record<string, unknown>;
|
|
49
|
-
};
|
|
50
|
-
"panel:closed": {
|
|
51
|
-
panelId: string;
|
|
52
|
-
};
|
|
53
|
-
"panel:activated": {
|
|
54
|
-
panelId: string;
|
|
55
|
-
previousPanelId: string | null;
|
|
56
|
-
};
|
|
57
|
-
"file:opened": {
|
|
58
|
-
path: string;
|
|
59
|
-
mode: "view" | "edit" | "diff";
|
|
60
|
-
filesystem?: FilesystemId;
|
|
61
|
-
};
|
|
62
|
-
"file:saved": {
|
|
63
|
-
path: string;
|
|
64
|
-
};
|
|
65
|
-
"file:dirty": {
|
|
66
|
-
path: string;
|
|
67
|
-
dirty: boolean;
|
|
68
|
-
};
|
|
69
|
-
"sidebar:toggled": {
|
|
70
|
-
collapsed: boolean;
|
|
71
|
-
};
|
|
72
|
-
"tree:expand": {
|
|
73
|
-
path: string;
|
|
74
|
-
};
|
|
75
|
-
"notification:shown": {
|
|
76
|
-
message: string;
|
|
77
|
-
level: "info" | "warn" | "error";
|
|
78
|
-
};
|
|
79
|
-
"pane:error": {
|
|
80
|
-
panelId: string;
|
|
81
|
-
error: string;
|
|
82
|
-
stack?: string;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
declare interface CommandResult {
|
|
87
|
-
seq: number;
|
|
88
|
-
status: "ok" | "error";
|
|
89
|
-
error?: {
|
|
90
|
-
code: string;
|
|
91
|
-
message: string;
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export declare function createLocalStorageSessions(opts?: CreateLocalStorageSessionsOptions): MockSessionsStore;
|
|
96
|
-
|
|
97
|
-
export declare interface CreateLocalStorageSessionsOptions {
|
|
98
|
-
/** localStorage key prefix. Defaults to `"workspace:sessions"`. */
|
|
99
|
-
storageKey?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Seed used the first time we run (no value at `storageKey` yet).
|
|
102
|
-
* Defaults to a single "New session" row with `id = "s${Date.now()}"`.
|
|
103
|
-
*/
|
|
104
|
-
initial?: () => MockSessionsState;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export declare function createMockBridge(options?: CreateMockBridgeOptions): MockWorkspaceBridge;
|
|
108
|
-
|
|
109
|
-
export declare interface CreateMockBridgeOptions {
|
|
110
|
-
state?: Partial<MockBridgeState>;
|
|
111
|
-
fn?: SpyFactory;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export declare interface CreateMockPaneOptions<T> {
|
|
115
|
-
params: T;
|
|
116
|
-
panelId?: string;
|
|
117
|
-
className?: string;
|
|
118
|
-
/** Override individual `api` fields without re-stubbing the whole surface. */
|
|
119
|
-
apiOverrides?: Partial<PaneProps<T>["api"]>;
|
|
120
|
-
/** Override individual `containerApi` fields. */
|
|
121
|
-
containerApiOverrides?: Partial<PaneProps<T>["containerApi"]>;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export declare function createMockPaneProps<T>(optsOrParams: T | CreateMockPaneOptions<T>): PaneProps<T>;
|
|
125
|
-
|
|
126
|
-
export declare function createMockRegistry(options?: CreateMockRegistryOptions): PanelRegistry;
|
|
127
|
-
|
|
128
|
-
export declare interface CreateMockRegistryOptions {
|
|
129
|
-
panels?: PanelConfig[];
|
|
130
|
-
capabilities?: Record<string, boolean>;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export declare function createMockSessions(opts?: CreateMockSessionsOptions): MockSessionsStore;
|
|
134
|
-
|
|
135
|
-
export declare interface CreateMockSessionsOptions {
|
|
136
|
-
/** Initial sessions. Defaults to a 5-row demo set with descending updatedAt. */
|
|
137
|
-
initial?: SessionItem[];
|
|
138
|
-
/** Initial active session id. Defaults to the first session's id. */
|
|
139
|
-
activeId?: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
declare interface DynamicPaneConfig {
|
|
143
|
-
id: string;
|
|
144
|
-
component: string;
|
|
145
|
-
params?: Record<string, unknown>;
|
|
146
|
-
title?: string;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
declare type FilesystemId = "user" | "company_context" | (string & {});
|
|
150
|
-
|
|
151
|
-
export declare interface MockBridgeState {
|
|
152
|
-
openPanels: PanelState[];
|
|
153
|
-
activeFile: string | null;
|
|
154
|
-
dirtyFiles: string[];
|
|
155
|
-
visibleFiles: string[];
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export declare interface MockDataFixtures {
|
|
159
|
-
files?: MockFileFixture[];
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export declare interface MockFileFixture {
|
|
163
|
-
path: string;
|
|
164
|
-
content: string;
|
|
165
|
-
mtimeMs?: number;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export declare interface MockSessionsState {
|
|
169
|
-
sessions: SessionItem[];
|
|
170
|
-
activeId: string;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export declare interface MockSessionsStore {
|
|
174
|
-
getState: () => MockSessionsState;
|
|
175
|
-
subscribe: (fn: () => void) => () => void;
|
|
176
|
-
switchTo: (id: string) => void;
|
|
177
|
-
create: () => void;
|
|
178
|
-
remove: (id: string) => void;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export declare type MockWorkspaceBridge = WorkspaceBridge & {
|
|
182
|
-
emit<K extends keyof BridgeEventMap>(event: K, payload: BridgeEventMap[K]): void;
|
|
183
|
-
setState(next: Partial<MockBridgeState>): void;
|
|
184
|
-
getStateSnapshot(): MockBridgeState;
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
declare interface Notification_2 {
|
|
188
|
-
id: string;
|
|
189
|
-
message: string;
|
|
190
|
-
type: "info" | "warning" | "error";
|
|
191
|
-
timestamp: number;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Push an openPanel command through the workspace UI bridge, then poll
|
|
196
|
-
* until the corresponding dockview tab actually appears. The chat shell
|
|
197
|
-
* receives commands over an SSE stream; subscribe latency is
|
|
198
|
-
* non-deterministic (cold Vite, ClickHouse warm-up, EventSource reconnect
|
|
199
|
-
* budget), so we wait on the rendered tab rather than a fixed sleep.
|
|
200
|
-
*/
|
|
201
|
-
export declare function openPaneViaBridge(page: Page, cfg: OpenPaneViaBridgeConfig): Promise<void>;
|
|
202
|
-
|
|
203
|
-
export declare interface OpenPaneViaBridgeConfig {
|
|
204
|
-
/** Tab/panel instance id (e.g. `"chart:CPIAUCSL"`, `"deck:intro.md"`). */
|
|
205
|
-
id: string;
|
|
206
|
-
/** Registered panel component id. Must appear in `extraPanels`. */
|
|
207
|
-
component: string;
|
|
208
|
-
/** Tab title to wait for. */
|
|
209
|
-
title: string;
|
|
210
|
-
/** Forwarded to the panel component as its `params`. */
|
|
211
|
-
params: Record<string, unknown>;
|
|
212
|
-
/** Override the dockview-tab wait timeout. Default 10s. */
|
|
213
|
-
paneMountTimeoutMs?: number;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Ensure the workbench surface is OPEN. Idempotent — checks the persisted
|
|
218
|
-
* flag rather than blindly toggling, so it's safe to call after bootClean
|
|
219
|
-
* (which pre-seeds the open flag by default) or independently.
|
|
220
|
-
*/
|
|
221
|
-
export declare function openWorkbench(page: Page, opts: {
|
|
222
|
-
shellKey: string;
|
|
223
|
-
}): Promise<void>;
|
|
224
|
-
|
|
225
|
-
declare interface PanelConfig<T = any> {
|
|
226
|
-
id: string;
|
|
227
|
-
title: string;
|
|
228
|
-
icon?: ComponentType<{
|
|
229
|
-
className?: string;
|
|
230
|
-
}>;
|
|
231
|
-
/** Placement hint. Public plugin placements: "workspace-page" | "shared-dockview". */
|
|
232
|
-
placement?: PanelPlacement | string;
|
|
233
|
-
requiresCapabilities?: string[];
|
|
234
|
-
essential?: boolean;
|
|
235
|
-
chromeless?: boolean;
|
|
236
|
-
supportsFullPage?: boolean;
|
|
237
|
-
/** Source: "builtin" | "app" */
|
|
238
|
-
source?: string;
|
|
239
|
-
pluginId?: string;
|
|
240
|
-
/** Revision emitted by the runtime plugin asset manager for hot-loaded panels. */
|
|
241
|
-
pluginRevision?: number;
|
|
242
|
-
/**
|
|
243
|
-
* Whether to wrap the component with React.lazy + Suspense. Omit to let
|
|
244
|
-
* the registry auto-detect: zero-arg functions (factories) are treated as
|
|
245
|
-
* lazy; components that accept a props argument are treated as eager.
|
|
246
|
-
*/
|
|
247
|
-
lazy?: boolean;
|
|
248
|
-
component: ComponentType<PaneProps<T>> | (() => Promise<{
|
|
249
|
-
default: ComponentType<PaneProps<T>>;
|
|
250
|
-
}>);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
declare type PanelPlacement = "left" | "center" | "right" | "bottom" | "shared-dockview" | "workspace-page" | "right-tab";
|
|
254
|
-
|
|
255
|
-
declare type PanelRegistration<T = any> = Omit<PanelConfig<T>, 'id'>;
|
|
256
|
-
|
|
257
|
-
declare class PanelRegistry {
|
|
258
|
-
private panels;
|
|
259
|
-
private registrationOrder;
|
|
260
|
-
private capabilities;
|
|
261
|
-
private listeners;
|
|
262
|
-
private snapshotCache;
|
|
263
|
-
private lazyComponentCache;
|
|
264
|
-
private wrapperComponentCache;
|
|
265
|
-
private generation;
|
|
266
|
-
constructor(capabilities?: Record<string, boolean>);
|
|
267
|
-
register(id: string, config: PanelRegistration): void;
|
|
268
|
-
unregister(id: string): void;
|
|
269
|
-
/**
|
|
270
|
-
* Atomic replace: unregister all panels owned by `pluginId`, then register
|
|
271
|
-
* the new set, in one emit cycle. Subscribers see exactly one intermediate
|
|
272
|
-
* state — never an empty registry between unregister and re-register.
|
|
273
|
-
*
|
|
274
|
-
* Collision policy: a new registration whose id is already owned by a
|
|
275
|
-
* DIFFERENT pluginId is skipped with a warning. Preserves cross-plugin
|
|
276
|
-
* isolation during reload — a renamed plugin can't silently steal another
|
|
277
|
-
* plugin's panel id. Teardown + rebuild as a single observable transition,
|
|
278
|
-
* driven by the front-side SSE reload subscriber.
|
|
279
|
-
*/
|
|
280
|
-
replaceByPluginId(pluginId: string, panels: PanelConfig[]): void;
|
|
281
|
-
get(id: string): PanelConfig | undefined;
|
|
282
|
-
has(id: string): boolean;
|
|
283
|
-
list(): PanelConfig[];
|
|
284
|
-
listAll(): PanelConfig[];
|
|
285
|
-
getComponents(): Record<string, ComponentType<any>>;
|
|
286
|
-
subscribe: (cb: () => void) => (() => void);
|
|
287
|
-
getSnapshot: () => readonly PanelConfig[];
|
|
288
|
-
private getWrappedComponent;
|
|
289
|
-
private getLazyComponent;
|
|
290
|
-
private emit;
|
|
291
|
-
private filteredPanels;
|
|
292
|
-
private satisfiesCapabilities;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
declare interface PanelState {
|
|
296
|
-
id: string;
|
|
297
|
-
component: string;
|
|
298
|
-
params?: Record<string, unknown>;
|
|
299
|
-
groupId?: string;
|
|
300
|
-
essential?: boolean;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Unified prop shape for panel components rendered inside DockviewShell.
|
|
305
|
-
*
|
|
306
|
-
* Structurally mirrors dockview's `IDockviewPanelProps<T>` so dockview
|
|
307
|
-
* can render registered components directly — no wrapper, no field
|
|
308
|
-
* renaming, no `as` casts. We re-state the shape (rather than re-export
|
|
309
|
-
* dockview's type) so the workspace package owns its public contract:
|
|
310
|
-
* if dockview's type ever drifts, only the wiring inside DockviewShell
|
|
311
|
-
* needs to change.
|
|
312
|
-
*
|
|
313
|
-
* Use {@link definePanel} for type-safe registration.
|
|
314
|
-
*
|
|
315
|
-
* @typeParam T - Shape of the panel-specific `params` payload. Defaults
|
|
316
|
-
* to `unknown` because layouts restored from JSON are inherently
|
|
317
|
-
* un-typed at runtime; use a generic param when you control the
|
|
318
|
-
* addPanel call site, otherwise read defensively.
|
|
319
|
-
*/
|
|
320
|
-
declare interface PaneProps<T = unknown> {
|
|
321
|
-
/** App-supplied data for this panel instance (e.g. `{ path: string }`). */
|
|
322
|
-
params: T;
|
|
323
|
-
/** Per-panel control surface (close, setActive, setTitle, …). */
|
|
324
|
-
api: DockviewPanelApi;
|
|
325
|
-
/** Top-level dockview API (groups, addPanel, removePanel, fromJSON, …). */
|
|
326
|
-
containerApi: DockviewApi;
|
|
327
|
-
/** Optional className forwarded to the pane's root element. */
|
|
328
|
-
className?: string;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export declare function renderPane(ui: ReactElement, options?: RenderPaneOptions): RenderPaneResult;
|
|
332
|
-
|
|
333
|
-
export declare interface RenderPaneOptions extends Omit<RenderOptions, "wrapper"> {
|
|
334
|
-
fixtures?: MockDataFixtures;
|
|
335
|
-
bridge?: MockWorkspaceBridge;
|
|
336
|
-
registry?: PanelRegistry;
|
|
337
|
-
apiBaseUrl?: string;
|
|
338
|
-
authHeaders?: Record<string, string>;
|
|
339
|
-
defaultTheme?: "light" | "dark";
|
|
340
|
-
timeout?: number;
|
|
341
|
-
injectBridgeProp?: boolean;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
export declare type RenderPaneResult = RenderResult & {
|
|
345
|
-
bridge: MockWorkspaceBridge;
|
|
346
|
-
registry: PanelRegistry;
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
declare interface SessionItem {
|
|
350
|
-
id: string;
|
|
351
|
-
title: string;
|
|
352
|
-
updatedAt?: string | number;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
declare interface SidebarState {
|
|
356
|
-
collapsed: boolean;
|
|
357
|
-
width: number;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
declare type SpyFactory = <T extends (...args: any[]) => any>(implementation?: T) => any;
|
|
361
|
-
|
|
362
|
-
export declare function TestWorkspaceProvider({ children, fixtures, registry, apiBaseUrl, authHeaders, defaultTheme, timeout, }: TestWorkspaceProviderProps): JSX.Element;
|
|
363
|
-
|
|
364
|
-
export declare interface TestWorkspaceProviderProps {
|
|
365
|
-
children: ReactNode;
|
|
366
|
-
fixtures?: MockDataFixtures;
|
|
367
|
-
registry?: PanelRegistry;
|
|
368
|
-
apiBaseUrl?: string;
|
|
369
|
-
authHeaders?: Record<string, string>;
|
|
370
|
-
defaultTheme?: "light" | "dark";
|
|
371
|
-
timeout?: number;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
declare type Unsubscribe = () => void;
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* React hook bound to a specific store instance. Identical signature to
|
|
378
|
-
* `useMockSessions` — both stores share the `MockSessionsStore` type.
|
|
379
|
-
*/
|
|
380
|
-
export declare function useLocalStorageSessions(store: MockSessionsStore): MockSessionsState;
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Convenience hook bound to a specific store instance. Subscribes via
|
|
384
|
-
* useSyncExternalStore so React only re-renders on actual state changes.
|
|
385
|
-
*/
|
|
386
|
-
export declare function useMockSessions(store: MockSessionsStore): MockSessionsState;
|
|
387
|
-
|
|
388
|
-
declare interface WorkspaceBridge {
|
|
389
|
-
getOpenPanels(): PanelState[];
|
|
390
|
-
getActiveFile(): string | null;
|
|
391
|
-
getDirtyFiles(): string[];
|
|
392
|
-
getVisibleFiles(): string[];
|
|
393
|
-
openFile(path: string, opts?: {
|
|
394
|
-
mode?: "view" | "edit" | "diff";
|
|
395
|
-
filesystem?: FilesystemId;
|
|
396
|
-
}): Promise<CommandResult>;
|
|
397
|
-
openPanel(config: DynamicPaneConfig): Promise<CommandResult>;
|
|
398
|
-
closePanel(id: string): Promise<CommandResult>;
|
|
399
|
-
closeWorkbenchLeftPane(): Promise<CommandResult>;
|
|
400
|
-
showNotification(msg: string, level?: "info" | "warn" | "error"): Promise<CommandResult>;
|
|
401
|
-
navigateToLine(file: string, line: number): Promise<CommandResult>;
|
|
402
|
-
expandToFile(path: string): Promise<CommandResult>;
|
|
403
|
-
markDirty(path: string): void;
|
|
404
|
-
markClean(path: string): void;
|
|
405
|
-
subscribe<K extends keyof BridgeEventMap>(event: K, handler: (data: BridgeEventMap[K]) => void): Unsubscribe;
|
|
406
|
-
select<T>(selector: (state: WorkspaceState) => T, handler: (value: T) => void): Unsubscribe;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
declare interface WorkspaceState {
|
|
410
|
-
hydrationComplete: boolean;
|
|
411
|
-
layout: unknown | null;
|
|
412
|
-
sidebar: SidebarState;
|
|
413
|
-
panelSizes: Record<string, number>;
|
|
414
|
-
preferences: {
|
|
415
|
-
theme: "light" | "dark";
|
|
416
|
-
};
|
|
417
|
-
panels: PanelState[];
|
|
418
|
-
activePanel: string | null;
|
|
419
|
-
activeFile: string | null;
|
|
420
|
-
visibleFiles: string[];
|
|
421
|
-
dirtyFiles: Record<string, {
|
|
422
|
-
panelId: string;
|
|
423
|
-
savedAt: number | null;
|
|
424
|
-
}>;
|
|
425
|
-
notifications: Notification_2[];
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export { }
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
declare global {
|
|
432
|
-
var __BORING_RUNTIME_SINGLETONS__: Record<string, unknown> | undefined;
|
|
433
|
-
}
|
|
1
|
+
export * from './src/front/testing/index.js'
|
|
2
|
+
export {}
|
package/dist/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e, t } from "./rolldown-runtime-Dqa2HsxW.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Mt as n, jt as r, n as i, p as a } from "./WorkspaceProvider-DcOiZU24.js";
|
|
3
3
|
import { bootClean as o, openPaneViaBridge as s, openWorkbench as c } from "./testing-e2e.js";
|
|
4
4
|
import * as l from "react";
|
|
5
5
|
import { cloneElement as u, createElement as d, isValidElement as f, useLayoutEffect as p, useMemo as m, useSyncExternalStore as h } from "react";
|
|
@@ -19,8 +19,8 @@ var x = [a({
|
|
|
19
19
|
placement: "center"
|
|
20
20
|
})];
|
|
21
21
|
function S(e = {}) {
|
|
22
|
-
let t = new
|
|
23
|
-
for (let e of
|
|
22
|
+
let t = new r(e.capabilities), n = e.panels ?? x;
|
|
23
|
+
for (let e of n) {
|
|
24
24
|
let { id: n, ...r } = e;
|
|
25
25
|
t.register(n, r);
|
|
26
26
|
}
|
|
@@ -193,8 +193,8 @@ function te(e = {}, t) {
|
|
|
193
193
|
}
|
|
194
194
|
//#endregion
|
|
195
195
|
//#region src/front/testing/TestWorkspaceProvider.tsx
|
|
196
|
-
function M({ children: e, fixtures: t, registry:
|
|
197
|
-
let l = m(() =>
|
|
196
|
+
function M({ children: e, fixtures: t, registry: r, apiBaseUrl: a = "", authHeaders: o = {}, defaultTheme: s = "dark", timeout: c = 1e3 }) {
|
|
197
|
+
let l = m(() => r ?? S(), [r]), u = m(() => l.list(), [l]);
|
|
198
198
|
return p(() => {
|
|
199
199
|
if (typeof globalThis.fetch != "function") return;
|
|
200
200
|
let e = globalThis.fetch.bind(globalThis), n = te(t, e);
|
|
@@ -211,7 +211,7 @@ function M({ children: e, fixtures: t, registry: n, apiBaseUrl: a = "", authHead
|
|
|
211
211
|
defaultTheme: s,
|
|
212
212
|
persistenceEnabled: !1,
|
|
213
213
|
bridgeEndpoint: null,
|
|
214
|
-
children: /* @__PURE__ */ g(
|
|
214
|
+
children: /* @__PURE__ */ g(n, {
|
|
215
215
|
apiBaseUrl: a,
|
|
216
216
|
authHeaders: o,
|
|
217
217
|
timeout: c,
|
|
@@ -1480,7 +1480,7 @@ function gt(e) {
|
|
|
1480
1480
|
return t.length === 0 ? F(e.childNodes) : t;
|
|
1481
1481
|
}
|
|
1482
1482
|
function _t(e) {
|
|
1483
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = new Ne(), r = Ke(e), i = t.compute, a = i === void 0 ? "name" : i, o = t.computedStyleSupportsPseudoElements, s = o === void 0 ? t.getComputedStyle !== void 0 : o, c = t.getComputedStyle, l = c === void 0 ? r.getComputedStyle.bind(r) : c, u = t.hidden, d = u
|
|
1483
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = new Ne(), r = Ke(e), i = t.compute, a = i === void 0 ? "name" : i, o = t.computedStyleSupportsPseudoElements, s = o === void 0 ? t.getComputedStyle !== void 0 : o, c = t.getComputedStyle, l = c === void 0 ? r.getComputedStyle.bind(r) : c, u = t.hidden, d = u !== void 0 && u;
|
|
1484
1484
|
function f(e, t) {
|
|
1485
1485
|
var n = "";
|
|
1486
1486
|
if (L(e) && s && (n = `${dt(l(e, "::before"))} ${n}`), (Ye(e) ? gt(e) : F(e.childNodes).concat($e(e, "aria-owns"))).forEach(function(e) {
|
|
@@ -7518,7 +7518,7 @@ function Ii(e) {
|
|
|
7518
7518
|
var Li = null, Ri = null, zi = null;
|
|
7519
7519
|
try {
|
|
7520
7520
|
let e = module && module.require;
|
|
7521
|
-
Ri = e.call(module, "fs").readFileSync, zi = e.call(module, "@babel/code-frame").codeFrameColumns, Li = e.call(module, "
|
|
7521
|
+
Ri = e.call(module, "fs").readFileSync, zi = e.call(module, "@babel/code-frame").codeFrameColumns, Li = e.call(module, "chalk");
|
|
7522
7522
|
} catch {}
|
|
7523
7523
|
function Bi(e) {
|
|
7524
7524
|
let t = e.indexOf("(") + 1, n = e.indexOf(")"), r = e.slice(t, n), i = r.split(":"), [a, o, s] = [
|
|
@@ -7762,7 +7762,7 @@ function _a(e, t) {
|
|
|
7762
7762
|
function r(e) {
|
|
7763
7763
|
return [e, ...Array.from(e.children).reduce((e, t) => [...e, ...r(t)], [])];
|
|
7764
7764
|
}
|
|
7765
|
-
return r(e).filter((e) => n
|
|
7765
|
+
return r(e).filter((e) => n !== !1 || ma(e) === !1).reduce((e, t) => {
|
|
7766
7766
|
let n = [];
|
|
7767
7767
|
return n = t.hasAttribute("role") ? t.getAttribute("role").split(" ").slice(0, 1) : ha(t), n.reduce((e, n) => Array.isArray(e[n]) ? {
|
|
7768
7768
|
...e,
|
|
@@ -8171,7 +8171,7 @@ var Za = (e, t) => "Found multiple elements with the text of: " + t, Qa = Ga(Va(
|
|
|
8171
8171
|
return m !== void 0 && (t &&= m === Da(e)), g !== void 0 && (t &&= g === Oa(e)), h !== void 0 && (t &&= h === ka(e)), _ !== void 0 && (t &&= W(Aa(e) ?? null, e, _, (e) => e)), t;
|
|
8172
8172
|
}
|
|
8173
8173
|
return !0;
|
|
8174
|
-
}).filter((e) => i === void 0
|
|
8174
|
+
}).filter((e) => i === void 0 || W(Et(e, { computedStyleSupportsPseudoElements: U().computedStyleSupportsPseudoElements }), e, i, (e) => e)).filter((e) => a === void 0 || W(wt(e, { computedStyleSupportsPseudoElements: U().computedStyleSupportsPseudoElements }), e, a, (e) => e)).filter((e) => r !== !1 || ma(e, { isSubtreeInaccessible: y }) === !1);
|
|
8175
8175
|
};
|
|
8176
8176
|
function es(e) {
|
|
8177
8177
|
let t = "*[role~=\"" + e + "\"]", n = B.roleElements.get(e) ?? /* @__PURE__ */ new Set(), r = new Set(Array.from(n).map((e) => {
|
|
@@ -9022,7 +9022,7 @@ typeof document < "u" && document.body ? xs(document.body, bs, As) : Object.keys
|
|
|
9022
9022
|
throw TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error");
|
|
9023
9023
|
}, e), As);
|
|
9024
9024
|
//#endregion
|
|
9025
|
-
//#region ../../node_modules/.pnpm/@testing-library+react@16.3.2_@testing-library+dom@10.4.
|
|
9025
|
+
//#region ../../node_modules/.pnpm/@testing-library+react@16.3.2_@testing-library+dom@10.4.0_@types+react-dom@19.2.3_@type_ba8587520443101ef3292115a57d0340/node_modules/@testing-library/react/dist/@testing-library/react.esm.js
|
|
9026
9026
|
var js = typeof l.act == "function" ? l.act : y.act;
|
|
9027
9027
|
function Ms() {
|
|
9028
9028
|
/* istanbul ignore else */
|
|
@@ -121,4 +121,4 @@ type WorkspaceBridgeJsonValue = null | boolean | number | string | WorkspaceBrid
|
|
|
121
121
|
[key: string]: WorkspaceBridgeJsonValue;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
export { type BridgeAuthContext as B, type WorkspaceBridgeOperationDefinition as W,
|
|
124
|
+
export { type BridgeAuthContext as B, type WorkspaceBridgeOperationDefinition as W, WorkspaceBridgeErrorCode as a, WORKSPACE_BRIDGE_DISABLED_ENV as b, WORKSPACE_BRIDGE_REFRESH_TOKEN_ENV as c, WORKSPACE_BRIDGE_TOKEN_ENV as d, WORKSPACE_BRIDGE_TOKEN_URL_ENV as e, WORKSPACE_BRIDGE_URL_ENV as f, type WorkspaceBridgeCallFailure as g, type WorkspaceBridgeCallRequest as h, type WorkspaceBridgeCallResponse as i, type WorkspaceBridgeCallSuccess as j, type WorkspaceBridgeError as k, type BridgeCallerClass as l, type BridgeIdempotencyPolicy as m, type BridgeActorAttribution as n, type BridgeActorKind as o, type BridgeRedactedActorRef as p, type WorkspaceBridgeFileAssetPointer as q, type WorkspaceBridgeJsonValue as r, createWorkspaceBridgeError as s };
|
package/dist/workspace.css
CHANGED
|
@@ -3768,6 +3768,9 @@
|
|
|
3768
3768
|
.z-\[60\] {
|
|
3769
3769
|
z-index: 60;
|
|
3770
3770
|
}
|
|
3771
|
+
.z-\[64\] {
|
|
3772
|
+
z-index: 64;
|
|
3773
|
+
}
|
|
3771
3774
|
.z-\[65\] {
|
|
3772
3775
|
z-index: 65;
|
|
3773
3776
|
}
|
|
@@ -4010,6 +4013,18 @@
|
|
|
4010
4013
|
.min-h-8 {
|
|
4011
4014
|
min-height: calc(var(--spacing) * 8);
|
|
4012
4015
|
}
|
|
4016
|
+
.min-h-9 {
|
|
4017
|
+
min-height: calc(var(--spacing) * 9);
|
|
4018
|
+
}
|
|
4019
|
+
.min-h-10 {
|
|
4020
|
+
min-height: calc(var(--spacing) * 10);
|
|
4021
|
+
}
|
|
4022
|
+
.min-h-11 {
|
|
4023
|
+
min-height: calc(var(--spacing) * 11);
|
|
4024
|
+
}
|
|
4025
|
+
.min-h-12 {
|
|
4026
|
+
min-height: calc(var(--spacing) * 12);
|
|
4027
|
+
}
|
|
4013
4028
|
.min-h-\[180px\] {
|
|
4014
4029
|
min-height: 180px;
|
|
4015
4030
|
}
|
|
@@ -4079,6 +4094,9 @@
|
|
|
4079
4094
|
.w-\[360px\] {
|
|
4080
4095
|
width: 360px;
|
|
4081
4096
|
}
|
|
4097
|
+
.w-\[min\(86vw\,360px\)\] {
|
|
4098
|
+
width: min(86vw, 360px);
|
|
4099
|
+
}
|
|
4082
4100
|
.w-auto {
|
|
4083
4101
|
width: auto;
|
|
4084
4102
|
}
|
|
@@ -4094,6 +4112,9 @@
|
|
|
4094
4112
|
.max-w-\[280px\] {
|
|
4095
4113
|
max-width: 280px;
|
|
4096
4114
|
}
|
|
4115
|
+
.max-w-\[360px\] {
|
|
4116
|
+
max-width: 360px;
|
|
4117
|
+
}
|
|
4097
4118
|
.max-w-\[calc\(100vw-2rem\)\] {
|
|
4098
4119
|
max-width: calc(100vw - 2rem);
|
|
4099
4120
|
}
|