@hachej/boring-workspace 0.1.71 → 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 +4 -4
package/dist/app-server.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PiPackageSource, PiExtensionFactory, CreateAgentAppOptions, ProvisionWorkspaceRuntimeOptions } from '@hachej/boring-agent/server';
|
|
2
2
|
export { PiPackageSource as WorkspacePiPackageSource } from '@hachej/boring-agent/server';
|
|
3
3
|
import { FastifyInstance } from 'fastify';
|
|
4
|
-
import { W as WorkspaceServerPlugin, S as ServerBootstrapOptions, a as WorkspaceBridgeRegistry, B as BridgeAuthPolicy, b as WorkspaceBridgeHandler, c as WorkspaceBridgeRuntimeEnvOptions, d as BoringPluginSourceInput, e as BoringPluginFrontTargetResolver, f as createInMemoryBridge, g as WorkspaceProvisioningContribution, h as WorkspaceRouteContribution } from './runtimeEnv-
|
|
5
|
-
export { i as ServerWorkspaceRuntimeProvisioningInput } from './runtimeEnv-
|
|
6
|
-
import { W as WorkspaceBridgeOperationDefinition } from './workspace-bridge-rpc-
|
|
4
|
+
import { W as WorkspaceServerPlugin, S as ServerBootstrapOptions, a as WorkspaceBridgeRegistry, B as BridgeAuthPolicy, b as WorkspaceBridgeHandler, c as WorkspaceBridgeRuntimeEnvOptions, d as BoringPluginSourceInput, e as BoringPluginFrontTargetResolver, f as createInMemoryBridge, g as WorkspaceProvisioningContribution, h as WorkspaceRouteContribution } from './runtimeEnv-DKtVLBXo.js';
|
|
5
|
+
export { i as ServerWorkspaceRuntimeProvisioningInput } from './runtimeEnv-DKtVLBXo.js';
|
|
6
|
+
import { W as WorkspaceBridgeOperationDefinition } from './workspace-bridge-rpc-BHsOJMlW.js';
|
|
7
7
|
import './manifest-C2vVgH_e.js';
|
|
8
8
|
import './agent-tool-CB0RQyx9.js';
|
|
9
|
-
import './ui-bridge-
|
|
9
|
+
import './ui-bridge-C4CyIrQA.js';
|
|
10
10
|
import './filesystem-vhLA0ERd.js';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/bridge-client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as WorkspaceBridgeErrorCode } from './workspace-bridge-rpc-BHsOJMlW.js';
|
|
2
|
+
export { b as WORKSPACE_BRIDGE_DISABLED_ENV, c as WORKSPACE_BRIDGE_REFRESH_TOKEN_ENV, d as WORKSPACE_BRIDGE_TOKEN_ENV, e as WORKSPACE_BRIDGE_TOKEN_URL_ENV, f as WORKSPACE_BRIDGE_URL_ENV, g as WorkspaceBridgeCallFailure, h as WorkspaceBridgeCallRequest, i as WorkspaceBridgeCallResponse, j as WorkspaceBridgeCallSuccess, k as WorkspaceBridgeError } from './workspace-bridge-rpc-BHsOJMlW.js';
|
|
3
3
|
|
|
4
4
|
declare enum WorkspaceBridgeClientErrorCode {
|
|
5
5
|
Config = "WORKSPACE_BRIDGE_CLIENT_CONFIG_ERROR",
|
package/dist/charts.d.ts
CHANGED
|
@@ -1,119 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const boringAreaProps: {
|
|
5
|
-
readonly type: "monotone";
|
|
6
|
-
readonly strokeWidth: 2;
|
|
7
|
-
readonly dot: false;
|
|
8
|
-
readonly connectNulls: true;
|
|
9
|
-
readonly isAnimationActive: false;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export declare const boringBarProps: {
|
|
13
|
-
readonly radius: [number, number, number, number];
|
|
14
|
-
readonly isAnimationActive: false;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export declare const boringCartesianAxisProps: {
|
|
18
|
-
readonly tick: {
|
|
19
|
-
readonly fill: string;
|
|
20
|
-
readonly fontSize: 11;
|
|
21
|
-
};
|
|
22
|
-
readonly axisLine: {
|
|
23
|
-
readonly stroke: string;
|
|
24
|
-
};
|
|
25
|
-
readonly tickLine: {
|
|
26
|
-
readonly stroke: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export declare const boringCartesianGridProps: {
|
|
31
|
-
readonly stroke: string;
|
|
32
|
-
readonly strokeDasharray: "3 3";
|
|
33
|
-
readonly vertical: false;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export declare function BoringChartFrame({ title, subtitle, source, height, className, children, }: BoringChartFrameProps): JSX.Element;
|
|
37
|
-
|
|
38
|
-
export declare interface BoringChartFrameProps {
|
|
39
|
-
title?: string;
|
|
40
|
-
subtitle?: string;
|
|
41
|
-
source?: string;
|
|
42
|
-
height?: number | string;
|
|
43
|
-
className?: string;
|
|
44
|
-
children: ReactNode;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export declare const boringChartPalette: readonly string[];
|
|
48
|
-
|
|
49
|
-
export declare interface BoringChartTheme {
|
|
50
|
-
background: string;
|
|
51
|
-
foreground: string;
|
|
52
|
-
mutedForeground: string;
|
|
53
|
-
border: string;
|
|
54
|
-
grid: string;
|
|
55
|
-
tooltipBackground: string;
|
|
56
|
-
tooltipBorder: string;
|
|
57
|
-
tooltipForeground: string;
|
|
58
|
-
palette: readonly string[];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export declare const boringChartTheme: BoringChartTheme;
|
|
62
|
-
|
|
63
|
-
export declare type BoringChartValueFormatter = (value: unknown) => string;
|
|
64
|
-
|
|
65
|
-
export declare const boringLegendProps: {
|
|
66
|
-
readonly wrapperStyle: {
|
|
67
|
-
readonly color: string;
|
|
68
|
-
readonly fontSize: 12;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export declare const boringLineProps: {
|
|
73
|
-
readonly type: "monotone";
|
|
74
|
-
readonly strokeWidth: 2;
|
|
75
|
-
readonly dot: false;
|
|
76
|
-
readonly activeDot: {
|
|
77
|
-
readonly r: 4;
|
|
78
|
-
};
|
|
79
|
-
readonly connectNulls: true;
|
|
80
|
-
readonly isAnimationActive: false;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export declare const boringPieProps: {
|
|
84
|
-
readonly innerRadius: "58%";
|
|
85
|
-
readonly outerRadius: "82%";
|
|
86
|
-
readonly paddingAngle: 2;
|
|
87
|
-
readonly isAnimationActive: false;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export declare const boringReferenceAreaProps: {
|
|
91
|
-
readonly fill: "oklch(from var(--accent) l c h / 0.20)";
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export declare function BoringTooltip({ active, payload, label, valueFormatter, }: BoringTooltipProps): JSX.Element | null;
|
|
95
|
-
|
|
96
|
-
export declare interface BoringTooltipPayloadItem {
|
|
97
|
-
color?: string;
|
|
98
|
-
dataKey?: string | number;
|
|
99
|
-
name?: string | number;
|
|
100
|
-
value?: unknown;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export declare interface BoringTooltipProps {
|
|
104
|
-
active?: boolean;
|
|
105
|
-
payload?: BoringTooltipPayloadItem[];
|
|
106
|
-
label?: unknown;
|
|
107
|
-
valueFormatter?: BoringChartValueFormatter;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export declare function defaultBoringChartValueFormatter(value: unknown): string;
|
|
111
|
-
|
|
112
|
-
export declare function getBoringChartColor(index: number, theme?: BoringChartTheme): string;
|
|
113
|
-
|
|
114
|
-
export { }
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
declare global {
|
|
118
|
-
var __BORING_RUNTIME_SINGLETONS__: Record<string, unknown> | undefined;
|
|
119
|
-
}
|
|
1
|
+
export * from './src/front/charts/index.js'
|
|
2
|
+
export {}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { P as PaneProps, a as PanelConfig,
|
|
3
|
-
export {
|
|
2
|
+
import { P as PaneProps, a as PanelConfig, W as WorkspaceSourceProps, S as SurfaceResolverExample, b as SurfaceOpenRequest, c as SurfacePanelResolution } from './surface-h6IgrsK5.js';
|
|
3
|
+
export { d as WORKSPACE_OPEN_PATH_SURFACE_KIND, e as WorkspaceSourceOpenPanelConfig } from './surface-h6IgrsK5.js';
|
|
4
4
|
export { B as BoringPackageBoringField, a as BoringPackagePiField, b as BoringPackagePiSource, c as BoringPackagePiSourceObject, d as BoringPluginManifestErrorCode, e as BoringPluginManifestIssue, f as BoringPluginManifestValidationResult, g as BoringPluginPackageJson, i as isSafePluginRelativePath, h as isValidBoringPluginId, v as validateBoringPluginManifest } from './manifest-C2vVgH_e.js';
|
|
5
|
-
import {
|
|
5
|
+
import { U as UiCommand, C as CommandResult, a as UiBridge } from './ui-bridge-C4CyIrQA.js';
|
|
6
6
|
import 'dockview-react';
|
|
7
7
|
import './filesystem-vhLA0ERd.js';
|
|
8
8
|
|
|
@@ -2,8 +2,8 @@ import { B as BoringPackageBoringField, a as BoringPackagePiField } from './mani
|
|
|
2
2
|
import { PiPackageSource, PluginSkillSource, ProvisionWorkspaceRuntimeOptions, RuntimeModeId, RuntimeEnvContribution } from '@hachej/boring-agent/server';
|
|
3
3
|
import { FastifyPluginAsync } from 'fastify';
|
|
4
4
|
import { A as AgentTool } from './agent-tool-CB0RQyx9.js';
|
|
5
|
-
import { B as BridgeAuthContext, W as WorkspaceBridgeOperationDefinition,
|
|
6
|
-
import {
|
|
5
|
+
import { B as BridgeAuthContext, W as WorkspaceBridgeOperationDefinition, h as WorkspaceBridgeCallRequest, i as WorkspaceBridgeCallResponse, l as BridgeCallerClass } from './workspace-bridge-rpc-BHsOJMlW.js';
|
|
6
|
+
import { U as UiCommand, C as CommandResult, W as WorkspaceBridge } from './ui-bridge-C4CyIrQA.js';
|
|
7
7
|
|
|
8
8
|
type BoringPluginNativeFrontTargetTrust$1 = "local-trusted-native";
|
|
9
9
|
/**
|
package/dist/server.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as WorkspaceServerPluginAsset, a as WorkspaceBridgeRegistry, B as BridgeAuthPolicy, b as WorkspaceBridgeHandler, k as BoringServerPluginManifest, d as BoringPluginSourceInput, e as BoringPluginFrontTargetResolver, l as BoringPluginListEntry, m as BoringPluginFrontTarget, n as BoringPluginSource, o as BoringPluginEvent, P as PluginRestartSurface } from './runtimeEnv-
|
|
2
|
-
export { p as BoringPluginFrontTargetResolverContext, q as BoringPluginNativeFrontTarget, r as BoringPluginNativeFrontTargetTrust, s as BoringPluginSourceKind, t as BridgeAuthPolicyInput, u as BridgeAuthPolicyRequestLike, v as BridgeAuthResolution, w as BridgePrincipal, x as BridgeWorkspaceGrant, y as BrowserBridgeAuthPolicyOptions, C as CreateWorkspaceBridgeRuntimeEnvContributionOptions, L as LocalCliBridgeAuthPolicyOptions, R as RegisterWorkspaceBridgeHandlerOptions, S as ServerBootstrapOptions, z as ServerBootstrapResult, A as WorkspaceBridgeCallContext, D as WorkspaceBridgeHandlerArgs, E as WorkspaceBridgeHandlerContribution, F as WorkspaceBridgeRegistryCallOptions, G as WorkspaceBridgeRegistryLogger, H as WorkspaceBridgeRegistryOptions, I as WorkspaceBridgeRuntimeEnvDisabledReason, c as WorkspaceBridgeRuntimeEnvOptions, J as WorkspaceBridgeRuntimePlacement, g as WorkspaceProvisioningContribution, h as WorkspaceRouteContribution, W as WorkspaceServerPlugin, K as bootstrapServer, M as createBrowserBridgeAuthPolicy, f as createInMemoryBridge, N as createLocalCliBridgeAuthPolicy, O as createWorkspaceBridgeRegistry, Q as createWorkspaceBridgeRuntimeEnvContribution, T as defineServerPlugin, U as resolveBridgeCallUrl, V as resolveBridgeTokenUrl, X as validateServerPlugin, Y as validateWorkspaceBridgeOperationDefinition } from './runtimeEnv-
|
|
1
|
+
import { j as WorkspaceServerPluginAsset, a as WorkspaceBridgeRegistry, B as BridgeAuthPolicy, b as WorkspaceBridgeHandler, k as BoringServerPluginManifest, d as BoringPluginSourceInput, e as BoringPluginFrontTargetResolver, l as BoringPluginListEntry, m as BoringPluginFrontTarget, n as BoringPluginSource, o as BoringPluginEvent, P as PluginRestartSurface } from './runtimeEnv-DKtVLBXo.js';
|
|
2
|
+
export { p as BoringPluginFrontTargetResolverContext, q as BoringPluginNativeFrontTarget, r as BoringPluginNativeFrontTargetTrust, s as BoringPluginSourceKind, t as BridgeAuthPolicyInput, u as BridgeAuthPolicyRequestLike, v as BridgeAuthResolution, w as BridgePrincipal, x as BridgeWorkspaceGrant, y as BrowserBridgeAuthPolicyOptions, C as CreateWorkspaceBridgeRuntimeEnvContributionOptions, L as LocalCliBridgeAuthPolicyOptions, R as RegisterWorkspaceBridgeHandlerOptions, S as ServerBootstrapOptions, z as ServerBootstrapResult, A as WorkspaceBridgeCallContext, D as WorkspaceBridgeHandlerArgs, E as WorkspaceBridgeHandlerContribution, F as WorkspaceBridgeRegistryCallOptions, G as WorkspaceBridgeRegistryLogger, H as WorkspaceBridgeRegistryOptions, I as WorkspaceBridgeRuntimeEnvDisabledReason, c as WorkspaceBridgeRuntimeEnvOptions, J as WorkspaceBridgeRuntimePlacement, g as WorkspaceProvisioningContribution, h as WorkspaceRouteContribution, W as WorkspaceServerPlugin, K as bootstrapServer, M as createBrowserBridgeAuthPolicy, f as createInMemoryBridge, N as createLocalCliBridgeAuthPolicy, O as createWorkspaceBridgeRegistry, Q as createWorkspaceBridgeRuntimeEnvContribution, T as defineServerPlugin, U as resolveBridgeCallUrl, V as resolveBridgeTokenUrl, X as validateServerPlugin, Y as validateWorkspaceBridgeOperationDefinition } from './runtimeEnv-DKtVLBXo.js';
|
|
3
3
|
import { FastifyRequest, FastifyInstance } from 'fastify';
|
|
4
|
-
import {
|
|
5
|
-
export { C as CommandResult,
|
|
4
|
+
import { a as UiBridge, W as WorkspaceBridge } from './ui-bridge-C4CyIrQA.js';
|
|
5
|
+
export { C as CommandResult, U as UiCommand, b as UiState } from './ui-bridge-C4CyIrQA.js';
|
|
6
6
|
import { A as AgentTool } from './agent-tool-CB0RQyx9.js';
|
|
7
|
-
import { W as WorkspaceBridgeOperationDefinition,
|
|
8
|
-
export {
|
|
7
|
+
import { W as WorkspaceBridgeOperationDefinition, h as WorkspaceBridgeCallRequest, B as BridgeAuthContext, i as WorkspaceBridgeCallResponse, k as WorkspaceBridgeError, l as BridgeCallerClass, m as BridgeIdempotencyPolicy } from './workspace-bridge-rpc-BHsOJMlW.js';
|
|
8
|
+
export { n as BridgeActorAttribution, o as BridgeActorKind, p as BridgeRedactedActorRef, g as WorkspaceBridgeCallFailure, j as WorkspaceBridgeCallSuccess, a as WorkspaceBridgeErrorCode, q as WorkspaceBridgeFileAssetPointer, r as WorkspaceBridgeJsonValue, s as createWorkspaceBridgeError } from './workspace-bridge-rpc-BHsOJMlW.js';
|
|
9
9
|
import { PiPackageSource } from '@hachej/boring-agent/server';
|
|
10
10
|
export { PiPackageSource as WorkspacePiPackageSource } from '@hachej/boring-agent/server';
|
|
11
11
|
import { PluginLogger } from './runtime-server.js';
|
package/dist/shared.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as CommandResult,
|
|
2
|
-
export {
|
|
3
|
-
export { C as CommandConfig, P as PaneProps, a as PanelConfig,
|
|
1
|
+
export { C as CommandResult, U as UiCommand, b as UiState, W as WorkspaceBridge } from './ui-bridge-C4CyIrQA.js';
|
|
2
|
+
export { n as BridgeActorAttribution, o as BridgeActorKind, B as BridgeAuthContext, l as BridgeCallerClass, m as BridgeIdempotencyPolicy, p as BridgeRedactedActorRef, g as WorkspaceBridgeCallFailure, h as WorkspaceBridgeCallRequest, i as WorkspaceBridgeCallResponse, j as WorkspaceBridgeCallSuccess, k as WorkspaceBridgeError, a as WorkspaceBridgeErrorCode, q as WorkspaceBridgeFileAssetPointer, r as WorkspaceBridgeJsonValue, W as WorkspaceBridgeOperationDefinition, s as createWorkspaceBridgeError } from './workspace-bridge-rpc-BHsOJMlW.js';
|
|
3
|
+
export { C as CommandConfig, P as PaneProps, a as PanelConfig, f as PanelRegistration, b as SurfaceOpenRequest, c as SurfacePanelResolution, g as SurfaceResolverConfig, h as SurfaceResolverRegistration, d as WORKSPACE_OPEN_PATH_SURFACE_KIND, i as definePanel } from './surface-h6IgrsK5.js';
|
|
4
4
|
export { C as COMPANY_CONTEXT_FILESYSTEM_ID, F as FilesystemId, U as USER_FILESYSTEM_ID, a as UiFileResource, b as UiFileResourceInput, n as normalizeUiFileResource, c as normalizeUiFilesystem, u as uiFileResourceKey, w as withUiFileResource } from './filesystem-vhLA0ERd.js';
|
|
5
5
|
export { A as AgentTool, J as JSONSchema, T as ToolExecContext, a as ToolResult } from './agent-tool-CB0RQyx9.js';
|
|
6
6
|
import 'react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Close the workbench's default-open left pane when a plugin says one of its
|
|
3
|
+
* attention blockers needs the main content area. Fires only on the transition
|
|
4
|
+
* into that state so re-opening the pane while the blocker is pending is not
|
|
5
|
+
* fought. Renders inside WorkspaceProvider (needs the attention context).
|
|
6
|
+
*/
|
|
7
|
+
export declare function CloseLeftPaneOnAttention({ activeSessionId, onAttentionOpen }: {
|
|
8
|
+
activeSessionId?: string | null;
|
|
9
|
+
onAttentionOpen: () => void;
|
|
10
|
+
}): null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CapturedFrontPlugin } from '../../shared/plugins/frontFactory';
|
|
3
|
+
import { AppLeftPaneAction } from '../../front/layout/plugin-tabs/AppLeftPane';
|
|
4
|
+
export type AppLeftOverlayId = string | null;
|
|
5
|
+
export declare function pluginAppLeftActionIds(plugins: readonly CapturedFrontPlugin[]): ReadonlySet<string>;
|
|
6
|
+
export declare function assertUniqueAppLeftActionIds(actions: readonly AppLeftPaneAction[]): void;
|
|
7
|
+
export declare function usePluginAppLeftActions({ plugins, activeOverlay, setActiveOverlay, }: {
|
|
8
|
+
plugins: readonly CapturedFrontPlugin[];
|
|
9
|
+
activeOverlay: AppLeftOverlayId;
|
|
10
|
+
setActiveOverlay: (next: AppLeftOverlayId | ((current: AppLeftOverlayId) => AppLeftOverlayId)) => void;
|
|
11
|
+
}): AppLeftPaneAction[];
|
|
12
|
+
export declare function PluginAppLeftOverlayHost({ plugins, activeOverlay, onClose, headerInsetStart, headerInsetEnd, }: {
|
|
13
|
+
plugins: readonly CapturedFrontPlugin[];
|
|
14
|
+
activeOverlay: AppLeftOverlayId;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
headerInsetStart?: boolean;
|
|
17
|
+
headerInsetEnd?: boolean;
|
|
18
|
+
}): ReactNode;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { SlashCommand } from '@hachej/boring-agent/front';
|
|
3
|
+
import { WorkspaceProviderProps } from '../../front/provider/WorkspaceProvider';
|
|
4
|
+
import { ChatLayoutProps } from '../../front/layout';
|
|
5
|
+
import { WorkspaceChatPanelProps } from '../../front/chrome/chat/types';
|
|
6
|
+
import { SurfaceShellProps } from '../../front/chrome/artifact-surface/SurfaceShell';
|
|
7
|
+
import { WorkspaceWarmupStatus } from './workspacePreload';
|
|
8
|
+
export interface WorkspaceAgentSession {
|
|
9
|
+
id: string;
|
|
10
|
+
title?: string | null;
|
|
11
|
+
updatedAt?: string | number;
|
|
12
|
+
turnCount?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface WorkspaceAgentSessionsApi<TSession extends WorkspaceAgentSession = WorkspaceAgentSession> {
|
|
15
|
+
sessions: TSession[];
|
|
16
|
+
loading: boolean;
|
|
17
|
+
loadingMore?: boolean;
|
|
18
|
+
hasMore?: boolean;
|
|
19
|
+
error?: Error | null;
|
|
20
|
+
activeSessionId?: string | null;
|
|
21
|
+
activeSession?: TSession | null;
|
|
22
|
+
workspaceId?: string | null;
|
|
23
|
+
switch: (id: string) => void;
|
|
24
|
+
create: (input?: {
|
|
25
|
+
title?: string;
|
|
26
|
+
}) => void | Promise<unknown>;
|
|
27
|
+
delete: (id: string) => void | Promise<unknown>;
|
|
28
|
+
loadMore?: () => void | Promise<unknown>;
|
|
29
|
+
refresh?: (options?: {
|
|
30
|
+
background?: boolean;
|
|
31
|
+
}) => void | Promise<unknown>;
|
|
32
|
+
}
|
|
33
|
+
export type UseWorkspaceAgentSessions<TSession extends WorkspaceAgentSession = WorkspaceAgentSession> = (options: {
|
|
34
|
+
requestHeaders: Record<string, string>;
|
|
35
|
+
storageKey: string;
|
|
36
|
+
workspaceId?: string;
|
|
37
|
+
apiBaseUrl?: string;
|
|
38
|
+
enabled?: boolean;
|
|
39
|
+
refreshKey?: unknown;
|
|
40
|
+
}) => WorkspaceAgentSessionsApi<TSession>;
|
|
41
|
+
export type WorkspaceAgentLayout = "classic" | "plugin-tabs";
|
|
42
|
+
export type WorkspaceAgentAppLeftLayoutMode = "single-project" | "multi-project";
|
|
43
|
+
export type WorkspaceAgentAppLeftHeaderMode = "full" | "workspace" | "hidden";
|
|
44
|
+
export interface WorkspaceAgentAppLeftProjectSession {
|
|
45
|
+
id: string;
|
|
46
|
+
title?: string | null;
|
|
47
|
+
updatedAt?: string | number;
|
|
48
|
+
}
|
|
49
|
+
export interface WorkspaceAgentAppLeftProject {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
available?: boolean;
|
|
53
|
+
sessionCount?: number;
|
|
54
|
+
blockedCount?: number;
|
|
55
|
+
sessions?: WorkspaceAgentAppLeftProjectSession[];
|
|
56
|
+
hasMoreSessions?: boolean;
|
|
57
|
+
loadingSessions?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface WorkspaceAgentAppLeftAction {
|
|
60
|
+
id: string;
|
|
61
|
+
label: string;
|
|
62
|
+
icon: ReactNode;
|
|
63
|
+
onClick: () => void;
|
|
64
|
+
trailing?: ReactNode;
|
|
65
|
+
emphasis?: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface WorkspaceAgentAppLeftOverlayRenderProps {
|
|
68
|
+
onClose: () => void;
|
|
69
|
+
headerInsetStart: boolean;
|
|
70
|
+
headerInsetEnd: boolean;
|
|
71
|
+
workspaceId: string;
|
|
72
|
+
}
|
|
73
|
+
export interface WorkspaceAgentAppLeftOverlayAction {
|
|
74
|
+
id: string;
|
|
75
|
+
label: string;
|
|
76
|
+
icon: ReactNode;
|
|
77
|
+
trailing?: ReactNode;
|
|
78
|
+
emphasis?: boolean;
|
|
79
|
+
render: (props: WorkspaceAgentAppLeftOverlayRenderProps) => ReactNode;
|
|
80
|
+
}
|
|
81
|
+
export interface WorkspaceAgentFrontProps<TSession extends WorkspaceAgentSession = WorkspaceAgentSession> extends Omit<WorkspaceProviderProps, "children" | "workspaceId" | "storageKey" | "chatPanel" | "commandPaletteSessionSearch">, Omit<ChatLayoutProps, "nav" | "navParams" | "center" | "centerParams" | "chatPanes" | "chatTopActions" | "activeChatPaneId" | "onActiveChatPaneChange" | "onCloseChatPane" | "onCreateChatPaneAfter" | "onDropChatSession" | "flashChatPaneId" | "surface" | "surfaceParams" | "sidebar" | "sidebarParams" | "storageKey"> {
|
|
82
|
+
workspaceId: string;
|
|
83
|
+
chatPanel?: ComponentType<WorkspaceChatPanelProps>;
|
|
84
|
+
useSessions?: UseWorkspaceAgentSessions<TSession>;
|
|
85
|
+
requestHeaders?: Record<string, string>;
|
|
86
|
+
sessionStorageKey?: string;
|
|
87
|
+
providerStorageKey?: string;
|
|
88
|
+
surfaceStorageKey?: string;
|
|
89
|
+
beforeShell?: ReactNode;
|
|
90
|
+
afterShell?: ReactNode;
|
|
91
|
+
appTitle?: string;
|
|
92
|
+
workspaceLabel?: string;
|
|
93
|
+
/** App-left workspace/project section title. Defaults to "Workspaces". */
|
|
94
|
+
workspaceSectionTitle?: string;
|
|
95
|
+
/** App-left layout mode. single-project uses the workspace dropdown; multi-project renders workspaces inline. */
|
|
96
|
+
appLeftLayoutMode?: WorkspaceAgentAppLeftLayoutMode;
|
|
97
|
+
/** App-left header mode: full brand, workspace picker only, or hidden with collapse-button clearance. */
|
|
98
|
+
appLeftHeaderMode?: WorkspaceAgentAppLeftHeaderMode;
|
|
99
|
+
/** Optional cross-project overview rendered in the app-left workspace/project section. */
|
|
100
|
+
appLeftProjects?: WorkspaceAgentAppLeftProject[];
|
|
101
|
+
appLeftActiveProjectId?: string | null;
|
|
102
|
+
onSwitchAppLeftProject?: (projectId: string) => void;
|
|
103
|
+
onOpenAppLeftProjectSession?: (projectId: string, sessionId: string) => void;
|
|
104
|
+
onShowMoreAppLeftProjectSessions?: (projectId: string) => void;
|
|
105
|
+
onCreateAppLeftProject?: () => void;
|
|
106
|
+
/** Open a project's workspace settings (host wires routing — workspace pkg has no router). */
|
|
107
|
+
onOpenAppLeftProjectSettings?: (projectId: string) => void;
|
|
108
|
+
/** Open a project in a new browser tab (host builds the href). */
|
|
109
|
+
onOpenAppLeftProjectInNewTab?: (projectId: string) => void;
|
|
110
|
+
defaultSessionTitle?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Opt into the Phase 2 app/session left-pane shell. Defaults to the
|
|
113
|
+
* existing classic top-bar + session-drawer workspace layout.
|
|
114
|
+
*/
|
|
115
|
+
workspaceLayout?: WorkspaceAgentLayout;
|
|
116
|
+
navEnabled?: boolean;
|
|
117
|
+
defaultNavOpen?: boolean;
|
|
118
|
+
/** Initial collapsed state for the plugin-tabs app-left pane. */
|
|
119
|
+
defaultAppLeftPaneCollapsed?: boolean;
|
|
120
|
+
defaultSurfaceOpen?: boolean;
|
|
121
|
+
defaultWorkbenchLeftTab?: string;
|
|
122
|
+
defaultWorkbenchLeftOpen?: boolean;
|
|
123
|
+
surfaceInitialPanels?: SurfaceShellProps["initialPanels"];
|
|
124
|
+
topBarLeft?: ReactNode;
|
|
125
|
+
topBarRight?: ReactNode;
|
|
126
|
+
/**
|
|
127
|
+
* Show the built-in top-bar theme toggle. Defaults to true for standalone
|
|
128
|
+
* hosts (e.g. the workspace playground) that have no other theme control.
|
|
129
|
+
* Full apps that already expose theme switching elsewhere (e.g. the core
|
|
130
|
+
* UserMenu) should set this to false to avoid a duplicate control.
|
|
131
|
+
*/
|
|
132
|
+
showThemeToggle?: boolean;
|
|
133
|
+
/** Initial plugin-tabs overlay, useful for demos/deep links. */
|
|
134
|
+
defaultLeftOverlay?: string | null;
|
|
135
|
+
/** Show the plugin-tabs Skills action/overlay. Defaults to true. */
|
|
136
|
+
showSkills?: boolean;
|
|
137
|
+
/** Show the plugin-tabs Plugins action/overlay. Defaults to true. */
|
|
138
|
+
showPlugins?: boolean;
|
|
139
|
+
/** Extra actions inserted into the app-left primary action list before built-in management actions. */
|
|
140
|
+
appLeftActions?: readonly WorkspaceAgentAppLeftAction[];
|
|
141
|
+
/** Extra chat-hosted management overlays opened from the app-left primary action list. */
|
|
142
|
+
appLeftOverlayActions?: readonly WorkspaceAgentAppLeftOverlayAction[];
|
|
143
|
+
sessions?: Array<{
|
|
144
|
+
id: string;
|
|
145
|
+
title?: string | null;
|
|
146
|
+
updatedAt?: string | number;
|
|
147
|
+
turnCount?: number;
|
|
148
|
+
}>;
|
|
149
|
+
activeSessionId?: string | null;
|
|
150
|
+
onSwitchSession?: (id: string) => void;
|
|
151
|
+
onCreateSession?: () => unknown | Promise<unknown>;
|
|
152
|
+
onDeleteSession?: (id: string) => void;
|
|
153
|
+
onActiveSessionIdChange?: (sessionId: string | null) => void;
|
|
154
|
+
chatParams?: Record<string, unknown>;
|
|
155
|
+
/**
|
|
156
|
+
* Enable user-authored external plugin UX in the frontend. When `false`,
|
|
157
|
+
* disables front plugin hot reload and hides the chat `/reload` UX. App/
|
|
158
|
+
* internal statically composed plugins still work.
|
|
159
|
+
*/
|
|
160
|
+
externalPlugins?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Forward to ChatPanel — when `false`, the `/reload` slash command is
|
|
163
|
+
* hidden and the PluginUpdateStatus banner above the composer is
|
|
164
|
+
* suppressed. Production apps that don't ship live plugin editing
|
|
165
|
+
* should pass `false`. Defaults to `true` (dev/playground default).
|
|
166
|
+
*/
|
|
167
|
+
hotReloadEnabled?: boolean;
|
|
168
|
+
extraPanels?: string[];
|
|
169
|
+
extraCommands?: SlashCommand[];
|
|
170
|
+
provisionWorkspace?: boolean;
|
|
171
|
+
bootPreloadPaths?: string[];
|
|
172
|
+
onWorkspaceWarmupStatusChange?: (status: WorkspaceWarmupStatus) => void;
|
|
173
|
+
}
|
|
174
|
+
export declare function WorkspaceAgentFront<TSession extends WorkspaceAgentSession = WorkspaceAgentSession>({ workspaceId, chatPanel: chatPanelProp, useSessions: useSessionsProp, requestHeaders, sessionStorageKey, providerStorageKey, surfaceStorageKey, beforeShell, afterShell, panels, commands, catalogs, plugins, excludeDefaults, capabilities, apiBaseUrl, authHeaders, apiTimeout, defaultTheme, onThemeChange, persistenceEnabled, debug, bridgeEndpoint, fullPageBasePath, onAuthError, sessions, activeSessionId, onSwitchSession, onCreateSession, onDeleteSession, onActiveSessionIdChange, appTitle, workspaceLabel, workspaceSectionTitle, appLeftLayoutMode, appLeftHeaderMode, appLeftProjects, appLeftActiveProjectId, onSwitchAppLeftProject, onOpenAppLeftProjectSession, onShowMoreAppLeftProjectSessions, onCreateAppLeftProject, onOpenAppLeftProjectSettings, onOpenAppLeftProjectInNewTab, defaultSessionTitle, workspaceLayout, navEnabled, defaultNavOpen, defaultAppLeftPaneCollapsed, defaultSurfaceOpen, defaultWorkbenchLeftTab, defaultWorkbenchLeftOpen, surfaceInitialPanels, topBarLeft, topBarRight, showThemeToggle, defaultLeftOverlay, showSkills, showPlugins, appLeftActions, appLeftOverlayActions, chatParams, externalPlugins, hotReloadEnabled, frontPluginHotReload, extraPanels, extraCommands, provisionWorkspace, bootPreloadPaths, onWorkspaceWarmupStatusChange, onOpenNav, onOpenSurface, surfaceButtonBottomOffset, mobileShellEnabled, className, }: WorkspaceAgentFrontProps<TSession>): import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { WorkspaceWarmupStatus } from './workspacePreload';
|
|
2
|
+
export declare function WorkbenchWarmupOverlay({ status }: {
|
|
3
|
+
status: WorkspaceWarmupStatus;
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
|
+
export declare function ChatSessionTransitionState(): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WorkspaceWarmupStatus } from './workspacePreload';
|
|
2
|
+
export interface WorkspaceBackgroundBootProps {
|
|
3
|
+
workspaceId: string;
|
|
4
|
+
requestHeaders?: Record<string, string>;
|
|
5
|
+
apiBaseUrl?: string | null;
|
|
6
|
+
preloadPaths?: string[];
|
|
7
|
+
provisionWorkspace?: boolean;
|
|
8
|
+
onStatusChange?: (status: WorkspaceWarmupStatus) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function WorkspaceBackgroundBoot({ workspaceId, requestHeaders, apiBaseUrl, preloadPaths, provisionWorkspace, onStatusChange, }: WorkspaceBackgroundBootProps): null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface WorkspaceBootGateProps {
|
|
3
|
+
workspaceId: string;
|
|
4
|
+
requestHeaders?: Record<string, string>;
|
|
5
|
+
apiBaseUrl?: string | null;
|
|
6
|
+
preloadPaths?: string[];
|
|
7
|
+
provisionWorkspace?: boolean;
|
|
8
|
+
loadingFallback?: ReactNode | ((status: string) => ReactNode);
|
|
9
|
+
errorFallback?: ReactNode | ((message: string) => ReactNode);
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function WorkspaceBootGate({ workspaceId, requestHeaders, apiBaseUrl, preloadPaths, provisionWorkspace, loadingFallback, errorFallback, children, }: WorkspaceBootGateProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DispatchContext } from '../../front/bridge';
|
|
3
|
+
import { WorkspaceShellCapabilities } from '../../front/shell/WorkspaceShellCapabilitiesContext';
|
|
4
|
+
export interface WorkspaceShellCapabilitiesHostResult {
|
|
5
|
+
floatingChatNode: ReactNode;
|
|
6
|
+
shellCapabilities: WorkspaceShellCapabilities;
|
|
7
|
+
}
|
|
8
|
+
export declare function useWorkspaceShellCapabilitiesHost({ appLeftPaneCollapsed, workspaceId, effectiveAppLeftPaneWidth, sessionTitleById, defaultSessionTitle, makeCenterParams, openChatPane, surfaceDispatch, onDockOverlay, }: {
|
|
9
|
+
appLeftPaneCollapsed: boolean;
|
|
10
|
+
workspaceId: string;
|
|
11
|
+
effectiveAppLeftPaneWidth: number;
|
|
12
|
+
sessionTitleById: Map<string, string | null | undefined>;
|
|
13
|
+
defaultSessionTitle: string;
|
|
14
|
+
makeCenterParams: (sessionId: string, options?: {
|
|
15
|
+
bridgeEnabled?: boolean;
|
|
16
|
+
}) => unknown;
|
|
17
|
+
openChatPane: (sessionId: string) => void;
|
|
18
|
+
surfaceDispatch: DispatchContext;
|
|
19
|
+
onDockOverlay?: () => void;
|
|
20
|
+
}): WorkspaceShellCapabilitiesHostResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SurfaceShellSnapshot } from '../../front/chrome/artifact-surface/SurfaceShell';
|
|
2
|
+
export declare function WorkspaceUiStateSync({ bridgeEndpoint, requestHeaders, navOpen, surfaceOpen, surfaceReady, snapshot, }: {
|
|
3
|
+
bridgeEndpoint?: string | null;
|
|
4
|
+
requestHeaders: Record<string, string>;
|
|
5
|
+
navOpen: boolean;
|
|
6
|
+
surfaceOpen: boolean;
|
|
7
|
+
surfaceReady: boolean;
|
|
8
|
+
snapshot: SurfaceShellSnapshot;
|
|
9
|
+
}): null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface ChatPaneState {
|
|
2
|
+
workspaceId: string;
|
|
3
|
+
ids: string[];
|
|
4
|
+
activeId: string | null;
|
|
5
|
+
}
|
|
6
|
+
export declare function createdSessionId(value: unknown): string | null;
|
|
7
|
+
export declare function insertPaneAfter(ids: string[], afterId: string | null | undefined, nextId: string): string[];
|
|
8
|
+
export declare function replaceActivePane(ids: string[], activeId: string | null | undefined, nextId: string): string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WorkspaceFullPageRouteErrorCode } from './fullPageRouteErrors';
|
|
2
|
+
export interface ParsedFullPagePanelLocation {
|
|
3
|
+
componentId: string | null;
|
|
4
|
+
params: Record<string, unknown>;
|
|
5
|
+
error?: {
|
|
6
|
+
code: WorkspaceFullPageRouteErrorCode;
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare function parseFullPagePanelLocation(search: string): ParsedFullPagePanelLocation;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const FULL_PAGE_PANEL_MISSING_COMPONENT = "FULL_PAGE_PANEL_MISSING_COMPONENT";
|
|
2
|
+
export declare const FULL_PAGE_PANEL_INVALID_PARAMS_JSON = "FULL_PAGE_PANEL_INVALID_PARAMS_JSON";
|
|
3
|
+
export declare const FULL_PAGE_PANEL_PARAMS_NOT_OBJECT = "FULL_PAGE_PANEL_PARAMS_NOT_OBJECT";
|
|
4
|
+
export declare const FULL_PAGE_PANEL_UNKNOWN_COMPONENT = "FULL_PAGE_PANEL_UNKNOWN_COMPONENT";
|
|
5
|
+
export declare const FULL_PAGE_PANEL_NOT_SUPPORTED = "FULL_PAGE_PANEL_NOT_SUPPORTED";
|
|
6
|
+
export declare const FULL_PAGE_PANEL_RENDER_FAILED = "FULL_PAGE_PANEL_RENDER_FAILED";
|
|
7
|
+
export type WorkspaceFullPageRouteErrorCode = typeof FULL_PAGE_PANEL_MISSING_COMPONENT | typeof FULL_PAGE_PANEL_INVALID_PARAMS_JSON | typeof FULL_PAGE_PANEL_PARAMS_NOT_OBJECT | typeof FULL_PAGE_PANEL_UNKNOWN_COMPONENT | typeof FULL_PAGE_PANEL_NOT_SUPPORTED | typeof FULL_PAGE_PANEL_RENDER_FAILED;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { WorkspaceAgentFront, type WorkspaceAgentFrontProps, type WorkspaceAgentLayout, type WorkspaceAgentSession, type WorkspaceAgentSessionsApi, type UseWorkspaceAgentSessions, } from './WorkspaceAgentFront';
|
|
2
|
+
export { WorkspaceBootGate, type WorkspaceBootGateProps, } from './WorkspaceBootGate';
|
|
3
|
+
export { WorkspaceBackgroundBoot, type WorkspaceBackgroundBootProps, } from './WorkspaceBackgroundBoot';
|
|
4
|
+
export type { WorkspaceWarmupStatus } from './workspacePreload';
|
|
5
|
+
export { createLocalStorageSessions, useLocalStorageSessions, type CreateLocalStorageSessionsOptions, type WorkspaceLocalSessionsState, type WorkspaceLocalSessionsStore, } from './localStorageSessions';
|
|
6
|
+
export { WorkspaceFullPagePanel, type WorkspaceFullPagePanelProps, } from './WorkspaceFullPagePanel';
|
|
7
|
+
export { parseFullPagePanelLocation, type ParsedFullPagePanelLocation, } from './fullPageRoute';
|
|
8
|
+
export { FULL_PAGE_PANEL_INVALID_PARAMS_JSON, FULL_PAGE_PANEL_MISSING_COMPONENT, FULL_PAGE_PANEL_NOT_SUPPORTED, FULL_PAGE_PANEL_PARAMS_NOT_OBJECT, FULL_PAGE_PANEL_RENDER_FAILED, FULL_PAGE_PANEL_UNKNOWN_COMPONENT, type WorkspaceFullPageRouteErrorCode, } from './fullPageRouteErrors';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SessionItem } from '../../front/components/SessionList';
|
|
2
|
+
export interface WorkspaceLocalSessionsState {
|
|
3
|
+
sessions: SessionItem[];
|
|
4
|
+
activeId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface WorkspaceLocalSessionsStore {
|
|
7
|
+
getState: () => WorkspaceLocalSessionsState;
|
|
8
|
+
subscribe: (fn: () => void) => () => void;
|
|
9
|
+
switchTo: (id: string) => void;
|
|
10
|
+
create: () => void;
|
|
11
|
+
remove: (id: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface CreateLocalStorageSessionsOptions {
|
|
14
|
+
storageKey?: string;
|
|
15
|
+
initial?: () => WorkspaceLocalSessionsState;
|
|
16
|
+
}
|
|
17
|
+
export declare function createLocalStorageSessions(opts?: CreateLocalStorageSessionsOptions): WorkspaceLocalSessionsStore;
|
|
18
|
+
export declare function useLocalStorageSessions(store: WorkspaceLocalSessionsStore): WorkspaceLocalSessionsState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { DispatchContext } from '../../front/bridge';
|
|
3
|
+
import { WorkspaceShellCapabilities } from '../../front/shell/WorkspaceShellCapabilitiesContext';
|
|
4
|
+
export declare function useWorkspaceShellCapabilitiesController({ setFloatingChatSessionId, openChatPane, surfaceDispatch, }: {
|
|
5
|
+
setFloatingChatSessionId: Dispatch<SetStateAction<string | null>>;
|
|
6
|
+
openChatPane: (sessionId: string) => void;
|
|
7
|
+
surfaceDispatch: DispatchContext;
|
|
8
|
+
}): WorkspaceShellCapabilities;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BoringFrontFactoryWithId, CapturedFrontPlugin } from '../../shared/plugins/frontFactory';
|
|
2
|
+
export interface CaptureWorkspaceFrontPluginsOptions {
|
|
3
|
+
plugins?: BoringFrontFactoryWithId[];
|
|
4
|
+
excludeDefaults?: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare function captureWorkspaceFrontPlugins({ plugins, excludeDefaults, }: CaptureWorkspaceFrontPluginsOptions): CapturedFrontPlugin[];
|