@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
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Kt as e, S as t, Vt as n, Wt as r, X as i, _ as a, at as o, mn as s, o as c, pn as l, v as u, x as ee, zt as te } from "./WorkspaceProvider-DcOiZU24.js";
|
|
2
2
|
import { t as d } from "./utils-BRcxFdrz.js";
|
|
3
|
-
import { Suspense as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { Maximize2 as
|
|
6
|
-
import { Button as
|
|
3
|
+
import { Suspense as ne, createContext as f, createElement as p, useCallback as m, useContext as h, useEffect as g, useMemo as _, useRef as v, useState as y, useSyncExternalStore as re } from "react";
|
|
4
|
+
import { Fragment as ie, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
5
|
+
import { ArrowLeft as ae, Maximize2 as oe, MessageSquare as se, Minimize2 as ce, PanelRightClose as S, PanelRightOpen as C, Plus as le, Search as w } from "lucide-react";
|
|
6
|
+
import { Button as T, IconButton as E, Kbd as ue, LoadingState as de, ResizeHandle as D } from "@hachej/boring-ui-kit";
|
|
7
7
|
//#region src/shared/plugins/appLeftOverlayChrome.ts
|
|
8
|
-
var
|
|
8
|
+
var O = f({
|
|
9
9
|
headerInsetStart: !1,
|
|
10
10
|
headerInsetEnd: !1
|
|
11
11
|
});
|
|
12
|
-
function
|
|
13
|
-
return p(
|
|
12
|
+
function fe({ value: e, children: t }) {
|
|
13
|
+
return p(O.Provider, { value: e }, t);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function k() {
|
|
16
|
+
return h(O);
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/shared/plugins/workspaceShellCapabilities.ts
|
|
20
|
-
var
|
|
20
|
+
var pe = (e) => ({
|
|
21
21
|
success: !1,
|
|
22
22
|
reason: "open-failed",
|
|
23
23
|
message: e
|
|
24
|
-
}), A =
|
|
24
|
+
}), A = f({
|
|
25
25
|
openArtifact: () => ({
|
|
26
26
|
success: !1,
|
|
27
27
|
reason: "no-artifact",
|
|
28
28
|
message: "No artifact is available."
|
|
29
29
|
}),
|
|
30
|
-
openDetachedChat: () =>
|
|
30
|
+
openDetachedChat: () => pe("Workspace shell capabilities are not available.")
|
|
31
31
|
});
|
|
32
32
|
function j({ value: e, children: t }) {
|
|
33
33
|
return p(A.Provider, { value: e }, t);
|
|
34
34
|
}
|
|
35
35
|
function M() {
|
|
36
|
-
return
|
|
36
|
+
return h(A);
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/front/store/localStorageValues.ts
|
|
@@ -46,12 +46,12 @@ function N(e, t, n = !0) {
|
|
|
46
46
|
} catch {}
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function me(e, t, n = !0) {
|
|
50
50
|
if (!(!n || typeof window > "u")) try {
|
|
51
51
|
window.localStorage.setItem(e, t ? "1" : "0");
|
|
52
52
|
} catch {}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function P(e, t, n = !0) {
|
|
55
55
|
if (!n || typeof window > "u") return t;
|
|
56
56
|
try {
|
|
57
57
|
let n = window.localStorage.getItem(e);
|
|
@@ -61,20 +61,20 @@ function F(e, t, n = !0) {
|
|
|
61
61
|
} catch {}
|
|
62
62
|
return t;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function F(e, t, n = !0) {
|
|
65
65
|
if (!(!n || typeof window > "u")) try {
|
|
66
66
|
window.localStorage.setItem(e, String(Math.round(t)));
|
|
67
67
|
} catch {}
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/front/layout/cornerChrome.tsx
|
|
71
|
-
var
|
|
71
|
+
var I = "pointer-events-auto relative border border-border/70 bg-muted text-muted-foreground transition-colors hover:bg-foreground/[0.06] hover:text-foreground", L = "border-border bg-foreground/[0.09] text-foreground";
|
|
72
72
|
function R({ label: e, hint: t, side: n = "bottom", onClick: r, pressed: a, pulse: o = !1, children: s }) {
|
|
73
73
|
return /* @__PURE__ */ b(i, {
|
|
74
74
|
label: e,
|
|
75
75
|
hint: t,
|
|
76
76
|
side: n,
|
|
77
|
-
children: /* @__PURE__ */ x(
|
|
77
|
+
children: /* @__PURE__ */ x(E, {
|
|
78
78
|
type: "button",
|
|
79
79
|
variant: "ghost",
|
|
80
80
|
size: "icon-xs",
|
|
@@ -82,7 +82,7 @@ function R({ label: e, hint: t, side: n = "bottom", onClick: r, pressed: a, puls
|
|
|
82
82
|
"aria-label": e,
|
|
83
83
|
"aria-pressed": a,
|
|
84
84
|
title: e,
|
|
85
|
-
className: d(
|
|
85
|
+
className: d(I, a && L),
|
|
86
86
|
children: [s, o ? /* @__PURE__ */ b("span", {
|
|
87
87
|
className: "absolute right-1 top-1 h-1.5 w-1.5 rounded-full bg-[color:var(--accent)] ring-1 ring-background",
|
|
88
88
|
"aria-hidden": "true"
|
|
@@ -91,6 +91,113 @@ function R({ label: e, hint: t, side: n = "bottom", onClick: r, pressed: a, puls
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
|
+
//#region src/front/layout/mobileShell.tsx
|
|
95
|
+
function he({ pane: e, totalPanes: t, topActions: n, onClosePane: r, renderPane: i }) {
|
|
96
|
+
return /* @__PURE__ */ x("div", {
|
|
97
|
+
"data-boring-workspace-part": "mobile-chat-pane",
|
|
98
|
+
className: "flex h-full min-h-0 flex-col bg-background",
|
|
99
|
+
children: [/* @__PURE__ */ x("div", {
|
|
100
|
+
className: "flex min-h-11 items-center gap-2 border-b border-border px-3 py-2",
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ x("div", {
|
|
103
|
+
className: "min-w-0 flex-1",
|
|
104
|
+
children: [/* @__PURE__ */ b("div", {
|
|
105
|
+
className: "truncate text-sm font-semibold",
|
|
106
|
+
children: u(e)
|
|
107
|
+
}), t > 1 ? /* @__PURE__ */ x("div", {
|
|
108
|
+
className: "text-[11px] font-medium text-muted-foreground",
|
|
109
|
+
children: [
|
|
110
|
+
"Showing 1 of ",
|
|
111
|
+
t,
|
|
112
|
+
" chats — split panes are disabled on mobile."
|
|
113
|
+
]
|
|
114
|
+
}) : null]
|
|
115
|
+
}),
|
|
116
|
+
n ? /* @__PURE__ */ b("div", {
|
|
117
|
+
className: "flex shrink-0 items-center gap-1",
|
|
118
|
+
children: n
|
|
119
|
+
}) : null,
|
|
120
|
+
t > 1 && r ? /* @__PURE__ */ b("button", {
|
|
121
|
+
type: "button",
|
|
122
|
+
className: "min-h-9 rounded-full border border-border px-3 text-xs font-semibold text-muted-foreground",
|
|
123
|
+
onClick: () => r(e.id),
|
|
124
|
+
children: "Close"
|
|
125
|
+
}) : null
|
|
126
|
+
]
|
|
127
|
+
}), /* @__PURE__ */ b("div", {
|
|
128
|
+
"data-boring-workspace-part": "chat-pane",
|
|
129
|
+
"data-boring-state": "active",
|
|
130
|
+
className: "min-h-0 flex-1 overflow-hidden",
|
|
131
|
+
children: i(e)
|
|
132
|
+
})]
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
function ge({ canOpenNav: e, canOpenWorkspace: t, onOpenNav: n, onOpenWorkspace: r }) {
|
|
136
|
+
return /* @__PURE__ */ x("div", {
|
|
137
|
+
"data-boring-workspace-part": "mobile-chat-bar",
|
|
138
|
+
className: "flex min-h-12 items-center gap-2 border-b border-border bg-background px-2 py-2",
|
|
139
|
+
style: { paddingLeft: "4rem" },
|
|
140
|
+
children: [
|
|
141
|
+
e ? /* @__PURE__ */ b("button", {
|
|
142
|
+
type: "button",
|
|
143
|
+
className: "inline-flex min-h-10 items-center rounded-full border border-border px-3 text-sm font-semibold text-foreground",
|
|
144
|
+
onClick: n,
|
|
145
|
+
children: "Sessions"
|
|
146
|
+
}) : null,
|
|
147
|
+
/* @__PURE__ */ x("div", {
|
|
148
|
+
className: "min-w-0 flex-1",
|
|
149
|
+
children: [/* @__PURE__ */ b("div", {
|
|
150
|
+
className: "truncate text-sm font-semibold",
|
|
151
|
+
children: "Chat"
|
|
152
|
+
}), /* @__PURE__ */ b("div", {
|
|
153
|
+
className: "truncate text-[11px] font-medium text-muted-foreground",
|
|
154
|
+
children: "One active thread on mobile"
|
|
155
|
+
})]
|
|
156
|
+
}),
|
|
157
|
+
t ? /* @__PURE__ */ b("button", {
|
|
158
|
+
type: "button",
|
|
159
|
+
className: "inline-flex min-h-10 items-center rounded-full border border-border px-3 text-sm font-semibold text-foreground",
|
|
160
|
+
onClick: r,
|
|
161
|
+
children: "Workspace"
|
|
162
|
+
}) : null
|
|
163
|
+
]
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function _e({ onBack: e }) {
|
|
167
|
+
return /* @__PURE__ */ x("div", {
|
|
168
|
+
"data-boring-workspace-part": "mobile-workspace-bar",
|
|
169
|
+
className: "flex min-h-12 items-center gap-2 border-b border-border bg-background px-2 py-2",
|
|
170
|
+
style: { paddingLeft: "4rem" },
|
|
171
|
+
children: [/* @__PURE__ */ x("button", {
|
|
172
|
+
type: "button",
|
|
173
|
+
className: "inline-flex min-h-10 items-center gap-1 rounded-full border border-border px-3 text-sm font-semibold text-foreground",
|
|
174
|
+
onClick: e,
|
|
175
|
+
children: [/* @__PURE__ */ b(ae, {
|
|
176
|
+
className: "size-4",
|
|
177
|
+
"aria-hidden": "true"
|
|
178
|
+
}), "Chat"]
|
|
179
|
+
}), /* @__PURE__ */ x("div", {
|
|
180
|
+
className: "min-w-0 flex-1",
|
|
181
|
+
children: [/* @__PURE__ */ b("div", {
|
|
182
|
+
className: "truncate text-sm font-semibold",
|
|
183
|
+
children: "Workspace"
|
|
184
|
+
}), /* @__PURE__ */ b("div", {
|
|
185
|
+
className: "truncate text-[11px] font-medium text-muted-foreground",
|
|
186
|
+
children: "One active panel on mobile"
|
|
187
|
+
})]
|
|
188
|
+
})]
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/front/layout/useViewportWidth.ts
|
|
193
|
+
function ve() {
|
|
194
|
+
let [e, t] = y(() => typeof window > "u" ? 1200 : window.innerWidth);
|
|
195
|
+
return g(() => {
|
|
196
|
+
let e = () => t(window.innerWidth);
|
|
197
|
+
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
198
|
+
}, []), e;
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
94
201
|
//#region src/front/layout/ChatLayout.tsx
|
|
95
202
|
function z(e = {}) {
|
|
96
203
|
let { nav: t = "session-list", navParams: n, center: r = "chat", centerParams: i, surface: a, surfaceParams: o, sidebar: s, sidebarParams: c } = e, l = [];
|
|
@@ -137,58 +244,58 @@ function z(e = {}) {
|
|
|
137
244
|
};
|
|
138
245
|
}
|
|
139
246
|
function B(i) {
|
|
140
|
-
let
|
|
141
|
-
if (
|
|
142
|
-
|
|
247
|
+
let s = i.nav !== null, c = i.surface !== void 0, u = !!i.surface, ne = i.nav || "session-list", f = i.center ?? "chat", p = i.surface || "artifact-surface", h = ve(), [re, ie] = ye(i.storageKey ? `${i.storageKey}:drawerWidth` : void 0, 260), [ae, oe] = ye(i.storageKey ? `${i.storageKey}:surfaceWidth` : void 0, 680), [se, ce] = ye(i.storageKey ? `${i.storageKey}:sidebarWidth` : void 0, 280), [S, C] = be(i.storageKey ? `${i.storageKey}:chatCollapsed` : void 0, !1), [le, w] = y(!1), { blockers: T } = ee(), E = i.activeChatPaneId ?? i.centerParams?.sessionId, ue = _(() => T.filter((e) => !e.sessionId || !E || e.sessionId === E), [E, T]), de = _(() => T.some((e) => !!e.sessionId && !!t(e)), [T]), D = l(), O = i.mobileShellEnabled === !0 && h < 640, fe = O ? Math.min(Math.max(280, Math.floor(h * .86)), 360) : V(re, 200, 360), k = O ? h : V(se, 200, Math.max(240, Math.floor(h * .5))), pe = O ? h : Math.max(480, Math.floor(h * .72)), A = O ? h : V(ae, 480, pe), j = H(i.centerParams, "getSurface"), M = H(i.centerParams, "isWorkbenchOpen"), N = H(i.centerParams, "openWorkbench"), me = H(i.centerParams, "openWorkbenchSources"), P = H(i.centerParams, "closeWorkbench"), F = Se(i.centerParams, "surfaceDispatch"), I = U(i.navParams, "onClose"), L = U(i.surfaceParams, "onClose"), R = U(i.sidebarParams, "onClose"), z = U(i.navParams, "onCreate"), B = i.chatPanes?.filter((e) => e.id.length > 0) ?? [], G = B.length > 0, De = G ? B.find((e) => e.id === i.activeChatPaneId) ?? B[0] : void 0, K = !!i.sidebar, q = s ? !!I : !!i.onOpenNav, J = u ? !!L : !!i.onOpenSurface, Y = K ? !!R : !!i.onOpenSidebar, X = m(() => {
|
|
248
|
+
if (s) {
|
|
249
|
+
I?.();
|
|
143
250
|
return;
|
|
144
251
|
}
|
|
145
252
|
i.onOpenNav?.();
|
|
146
253
|
}, [
|
|
147
|
-
|
|
148
|
-
|
|
254
|
+
I,
|
|
255
|
+
s,
|
|
149
256
|
i.onOpenNav
|
|
150
257
|
]), Z = m(() => {
|
|
151
|
-
if (
|
|
152
|
-
|
|
258
|
+
if (u) {
|
|
259
|
+
L?.();
|
|
153
260
|
return;
|
|
154
261
|
}
|
|
155
262
|
i.onOpenSurface?.();
|
|
156
263
|
}, [
|
|
157
|
-
|
|
264
|
+
L,
|
|
158
265
|
i.onOpenSurface,
|
|
159
|
-
|
|
160
|
-
]),
|
|
266
|
+
u
|
|
267
|
+
]), Oe = m(() => {
|
|
161
268
|
if (K) {
|
|
162
|
-
|
|
269
|
+
R?.();
|
|
163
270
|
return;
|
|
164
271
|
}
|
|
165
272
|
i.onOpenSidebar?.();
|
|
166
273
|
}, [
|
|
167
|
-
|
|
274
|
+
R,
|
|
168
275
|
i.onOpenSidebar,
|
|
169
276
|
K
|
|
170
|
-
]),
|
|
171
|
-
S && C(!1),
|
|
277
|
+
]), Q = m(() => {
|
|
278
|
+
S && C(!1), s && I?.(), u && L?.(), Ce(), we();
|
|
172
279
|
}, [
|
|
173
280
|
S,
|
|
281
|
+
I,
|
|
174
282
|
L,
|
|
175
|
-
|
|
176
|
-
l,
|
|
283
|
+
s,
|
|
177
284
|
C,
|
|
178
|
-
|
|
179
|
-
]),
|
|
180
|
-
!S && i.chatOverlay && (
|
|
285
|
+
u
|
|
286
|
+
]), ke = v(!1), Ae = m(() => {
|
|
287
|
+
!S && i.chatOverlay && (ke.current = !0), C((e) => {
|
|
181
288
|
let t = !e;
|
|
182
|
-
return t && !
|
|
289
|
+
return t && !u && i.onOpenSurface?.(), t;
|
|
183
290
|
}), w(!1);
|
|
184
291
|
}, [
|
|
185
292
|
S,
|
|
186
293
|
i.chatOverlay,
|
|
187
294
|
i.onOpenSurface,
|
|
188
295
|
C,
|
|
189
|
-
|
|
296
|
+
u
|
|
190
297
|
]);
|
|
191
|
-
|
|
298
|
+
o({ shortcuts: _(() => {
|
|
192
299
|
let e = [];
|
|
193
300
|
return q && e.push({
|
|
194
301
|
key: "1",
|
|
@@ -202,37 +309,37 @@ function B(i) {
|
|
|
202
309
|
key: "3",
|
|
203
310
|
mod: !0,
|
|
204
311
|
allowInEditable: !0,
|
|
205
|
-
handler:
|
|
206
|
-
}),
|
|
312
|
+
handler: Oe
|
|
313
|
+
}), f === "chat" && (e.push({
|
|
207
314
|
key: "Escape",
|
|
208
315
|
allowInEditable: !0,
|
|
209
|
-
handler:
|
|
316
|
+
handler: Q
|
|
210
317
|
}), e.push({
|
|
211
318
|
key: "\\",
|
|
212
319
|
mod: !0,
|
|
213
320
|
allowInEditable: !0,
|
|
214
|
-
handler:
|
|
321
|
+
handler: Ae
|
|
215
322
|
})), e;
|
|
216
323
|
}, [
|
|
217
324
|
q,
|
|
218
325
|
Y,
|
|
219
326
|
J,
|
|
220
|
-
|
|
221
|
-
$,
|
|
222
|
-
we,
|
|
223
|
-
X,
|
|
327
|
+
f,
|
|
224
328
|
Q,
|
|
329
|
+
Ae,
|
|
330
|
+
X,
|
|
331
|
+
Oe,
|
|
225
332
|
Z
|
|
226
|
-
]) }),
|
|
333
|
+
]) }), g(() => {
|
|
227
334
|
let e = "workspace:chat-layout", t = "agent:chat-layout";
|
|
228
335
|
return D.unregisterByPluginId(e), D.unregisterByPluginId(t), D.registerCommand({
|
|
229
336
|
id: "workspace:open-session-history",
|
|
230
|
-
title:
|
|
337
|
+
title: s ? "Close Session History" : "Open Session History",
|
|
231
338
|
keywords: [
|
|
232
339
|
"sessions",
|
|
233
340
|
"history",
|
|
234
341
|
"drawer",
|
|
235
|
-
|
|
342
|
+
s ? "close" : "open"
|
|
236
343
|
],
|
|
237
344
|
shortcut: "⌘1",
|
|
238
345
|
pluginId: e,
|
|
@@ -240,13 +347,13 @@ function B(i) {
|
|
|
240
347
|
run: X
|
|
241
348
|
}), D.registerCommand({
|
|
242
349
|
id: "workspace:open-workbench",
|
|
243
|
-
title:
|
|
350
|
+
title: u ? "Close Workbench" : "Open Workbench",
|
|
244
351
|
keywords: [
|
|
245
352
|
"surface",
|
|
246
353
|
"artifacts",
|
|
247
354
|
"sources",
|
|
248
355
|
"workbench",
|
|
249
|
-
|
|
356
|
+
u ? "close" : "open"
|
|
250
357
|
],
|
|
251
358
|
shortcut: "⌘2",
|
|
252
359
|
pluginId: e,
|
|
@@ -265,8 +372,8 @@ function B(i) {
|
|
|
265
372
|
shortcut: "⌘3",
|
|
266
373
|
pluginId: e,
|
|
267
374
|
when: () => Y,
|
|
268
|
-
run:
|
|
269
|
-
}),
|
|
375
|
+
run: Oe
|
|
376
|
+
}), f === "chat" && D.registerCommand({
|
|
270
377
|
id: "agent:focus-chat",
|
|
271
378
|
title: "Focus Chat",
|
|
272
379
|
keywords: [
|
|
@@ -278,8 +385,8 @@ function B(i) {
|
|
|
278
385
|
"focus"
|
|
279
386
|
],
|
|
280
387
|
pluginId: t,
|
|
281
|
-
run:
|
|
282
|
-
}),
|
|
388
|
+
run: Q
|
|
389
|
+
}), z && D.registerCommand({
|
|
283
390
|
id: "agent:new-chat",
|
|
284
391
|
title: "New Chat",
|
|
285
392
|
keywords: [
|
|
@@ -289,16 +396,16 @@ function B(i) {
|
|
|
289
396
|
"new"
|
|
290
397
|
],
|
|
291
398
|
pluginId: t,
|
|
292
|
-
run:
|
|
399
|
+
run: z
|
|
293
400
|
}), () => {
|
|
294
401
|
D.unregisterByPluginId(e), D.unregisterByPluginId(t);
|
|
295
402
|
};
|
|
296
403
|
}, [
|
|
297
404
|
D,
|
|
298
|
-
|
|
299
|
-
p,
|
|
300
|
-
u,
|
|
405
|
+
s,
|
|
301
406
|
f,
|
|
407
|
+
c,
|
|
408
|
+
u,
|
|
302
409
|
i.navParams,
|
|
303
410
|
i.surfaceParams,
|
|
304
411
|
i.onOpenNav,
|
|
@@ -307,67 +414,68 @@ function B(i) {
|
|
|
307
414
|
q,
|
|
308
415
|
J,
|
|
309
416
|
Y,
|
|
417
|
+
I,
|
|
310
418
|
L,
|
|
311
419
|
R,
|
|
312
420
|
z,
|
|
313
|
-
|
|
314
|
-
$,
|
|
421
|
+
Q,
|
|
315
422
|
K,
|
|
316
423
|
X,
|
|
317
424
|
Z,
|
|
318
|
-
|
|
319
|
-
]),
|
|
320
|
-
let
|
|
321
|
-
surface:
|
|
322
|
-
isWorkbenchOpen:
|
|
323
|
-
openWorkbench:
|
|
324
|
-
openWorkbenchSources:
|
|
325
|
-
closeWorkbench:
|
|
425
|
+
Oe
|
|
426
|
+
]), g(() => {
|
|
427
|
+
let t = F ?? (j && M && N ? {
|
|
428
|
+
surface: j,
|
|
429
|
+
isWorkbenchOpen: M,
|
|
430
|
+
openWorkbench: N,
|
|
431
|
+
openWorkbenchSources: me,
|
|
432
|
+
closeWorkbench: P,
|
|
326
433
|
shouldOpenSurface: (e) => e.meta?.openOnlyWhenSessionOpen !== !0
|
|
327
434
|
} : void 0);
|
|
328
|
-
if (
|
|
329
|
-
|
|
435
|
+
if (t) return te.on(r.uiCommand, ({ command: n }) => {
|
|
436
|
+
e(n, t);
|
|
330
437
|
});
|
|
331
438
|
}, [
|
|
332
|
-
|
|
439
|
+
F,
|
|
440
|
+
j,
|
|
333
441
|
M,
|
|
334
442
|
N,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
]), e(r.agentData, () => {
|
|
443
|
+
me,
|
|
444
|
+
P
|
|
445
|
+
]), n(r.agentData, () => {
|
|
339
446
|
S && w(!0);
|
|
340
|
-
}),
|
|
447
|
+
}), g(() => {
|
|
341
448
|
if (!S) {
|
|
342
449
|
w(!1);
|
|
343
450
|
return;
|
|
344
451
|
}
|
|
345
|
-
ue.length > 0 && (C(!1), w(!1),
|
|
452
|
+
ue.length > 0 && (C(!1), w(!1), we());
|
|
346
453
|
}, [
|
|
347
454
|
ue.length,
|
|
348
455
|
S,
|
|
349
456
|
C
|
|
350
457
|
]);
|
|
351
|
-
let
|
|
352
|
-
|
|
353
|
-
let e =
|
|
354
|
-
|
|
458
|
+
let je = v(E);
|
|
459
|
+
g(() => {
|
|
460
|
+
let e = je.current;
|
|
461
|
+
je.current = E, e !== void 0 && E !== void 0 && E !== e && S && C(!1);
|
|
355
462
|
}, [
|
|
356
463
|
E,
|
|
357
464
|
S,
|
|
358
465
|
C
|
|
359
|
-
]),
|
|
360
|
-
!
|
|
466
|
+
]), g(() => {
|
|
467
|
+
O || !u || S || i.chatOverlay || h < 1180 && C(!0);
|
|
361
468
|
}, [
|
|
362
469
|
S,
|
|
470
|
+
O,
|
|
363
471
|
i.chatOverlay,
|
|
364
472
|
C,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
]),
|
|
473
|
+
u,
|
|
474
|
+
h
|
|
475
|
+
]), g(() => {
|
|
368
476
|
if (!(!i.chatOverlay || !S)) {
|
|
369
|
-
if (
|
|
370
|
-
|
|
477
|
+
if (ke.current) {
|
|
478
|
+
ke.current = !1;
|
|
371
479
|
return;
|
|
372
480
|
}
|
|
373
481
|
C(!1);
|
|
@@ -377,38 +485,54 @@ function B(i) {
|
|
|
377
485
|
i.chatOverlay,
|
|
378
486
|
C
|
|
379
487
|
]);
|
|
380
|
-
let
|
|
381
|
-
|
|
382
|
-
let e =
|
|
383
|
-
|
|
488
|
+
let Me = v(u);
|
|
489
|
+
g(() => {
|
|
490
|
+
let e = Me.current;
|
|
491
|
+
Me.current = u, e && !u && S && C(!1);
|
|
384
492
|
}, [
|
|
385
|
-
|
|
493
|
+
u,
|
|
386
494
|
S,
|
|
387
495
|
C
|
|
388
|
-
])
|
|
496
|
+
]);
|
|
497
|
+
let $ = S || O && u, Ne = O && u;
|
|
498
|
+
return /* @__PURE__ */ x("div", {
|
|
389
499
|
"data-boring-workspace": "",
|
|
390
500
|
"data-boring-workspace-part": "shell",
|
|
501
|
+
"data-boring-mobile-shell": i.mobileShellEnabled === !0 ? "" : void 0,
|
|
502
|
+
"data-mobile-shell": O ? "true" : "false",
|
|
391
503
|
className: d("relative flex h-full min-h-0 w-full overflow-hidden bg-background", i.className),
|
|
392
504
|
children: [
|
|
505
|
+
O && s && I ? /* @__PURE__ */ b("div", {
|
|
506
|
+
"aria-hidden": "true",
|
|
507
|
+
"data-boring-workspace-part": "session-drawer-mobile-scrim",
|
|
508
|
+
className: "absolute inset-0 z-40 bg-foreground/30",
|
|
509
|
+
onClick: I
|
|
510
|
+
}) : null,
|
|
511
|
+
O && K && R ? /* @__PURE__ */ b("div", {
|
|
512
|
+
"aria-hidden": "true",
|
|
513
|
+
"data-boring-workspace-part": "workbench-left-mobile-scrim",
|
|
514
|
+
className: "absolute inset-0 z-30 bg-foreground/30",
|
|
515
|
+
onClick: R
|
|
516
|
+
}) : null,
|
|
393
517
|
/* @__PURE__ */ x("aside", {
|
|
394
518
|
"data-boring-workspace-part": "session-drawer",
|
|
395
|
-
"data-boring-state":
|
|
519
|
+
"data-boring-state": s ? "expanded" : "collapsed",
|
|
396
520
|
"aria-label": "Session browser",
|
|
397
|
-
"aria-hidden": !
|
|
398
|
-
className: d("
|
|
521
|
+
"aria-hidden": !s,
|
|
522
|
+
className: d(O ? "absolute inset-y-0 left-0 z-50 h-full shadow-2xl" : "relative h-full shrink-0", "min-h-0 overflow-hidden bg-background", "transition-[width,min-width,max-width] duration-[280ms] ease-[cubic-bezier(0.22,1,0.36,1)]", s ? "border-r border-[color:oklch(from_var(--border)_l_c_h/0.6)]" : "pointer-events-none z-0"),
|
|
399
523
|
style: {
|
|
400
|
-
width:
|
|
401
|
-
minWidth:
|
|
402
|
-
maxWidth:
|
|
524
|
+
width: s ? fe : 0,
|
|
525
|
+
minWidth: s ? fe : 0,
|
|
526
|
+
maxWidth: s ? fe : 0,
|
|
403
527
|
willChange: "width"
|
|
404
528
|
},
|
|
405
529
|
children: [/* @__PURE__ */ b("div", {
|
|
406
|
-
className: d("h-full min-h-0 overflow-hidden", "transition-opacity duration-[200ms] ease-[cubic-bezier(0.22,1,0.36,1)]",
|
|
530
|
+
className: d("h-full min-h-0 overflow-hidden", "transition-opacity duration-[200ms] ease-[cubic-bezier(0.22,1,0.36,1)]", s ? "opacity-100" : "invisible pointer-events-none opacity-0"),
|
|
407
531
|
children: /* @__PURE__ */ b(W, {
|
|
408
|
-
id:
|
|
532
|
+
id: ne,
|
|
409
533
|
params: i.navParams
|
|
410
534
|
})
|
|
411
|
-
}),
|
|
535
|
+
}), s && !O ? /* @__PURE__ */ b(xe, {
|
|
412
536
|
side: "drawer-right",
|
|
413
537
|
ariaLabel: "Resize sessions drawer",
|
|
414
538
|
onResize: (e) => ie((t) => V(t + e, 200, 360))
|
|
@@ -419,7 +543,7 @@ function B(i) {
|
|
|
419
543
|
"data-boring-state": K ? "expanded" : "collapsed",
|
|
420
544
|
"aria-label": K ? "Workbench left panel" : void 0,
|
|
421
545
|
"aria-hidden": !K,
|
|
422
|
-
className: d("relative h-full min-h-0
|
|
546
|
+
className: d(O ? "absolute inset-0 z-40 h-full" : "relative h-full shrink-0", "min-h-0 overflow-hidden bg-background", "transition-[width,min-width,max-width] duration-[280ms] ease-[cubic-bezier(0.22,1,0.36,1)]", K && "border-r border-[color:oklch(from_var(--border)_l_c_h/0.6)]"),
|
|
423
547
|
style: {
|
|
424
548
|
width: K ? k : 0,
|
|
425
549
|
minWidth: K ? k : 0,
|
|
@@ -432,87 +556,117 @@ function B(i) {
|
|
|
432
556
|
id: i.sidebar ?? "workbench-left",
|
|
433
557
|
params: i.sidebarParams
|
|
434
558
|
}) : null
|
|
435
|
-
}), K ? /* @__PURE__ */ b(
|
|
559
|
+
}), K && !O ? /* @__PURE__ */ b(xe, {
|
|
436
560
|
side: "drawer-right",
|
|
437
561
|
ariaLabel: "Resize workbench left panel",
|
|
438
|
-
onResize: (e) => ce((t) => V(t + e, 200, Math.max(240, Math.floor(
|
|
562
|
+
onResize: (e) => ce((t) => V(t + e, 200, Math.max(240, Math.floor(h * .5))))
|
|
439
563
|
}) : null]
|
|
440
564
|
}),
|
|
441
565
|
/* @__PURE__ */ x("div", {
|
|
442
566
|
className: "relative flex h-full min-h-0 min-w-0 flex-1 overflow-hidden bg-background",
|
|
443
567
|
children: [/* @__PURE__ */ x("main", {
|
|
444
568
|
"data-boring-workspace-part": "chat-stage",
|
|
445
|
-
"data-boring-state":
|
|
446
|
-
"aria-label":
|
|
447
|
-
"aria-hidden":
|
|
448
|
-
className: d("relative h-full min-h-0 min-w-0 overflow-hidden bg-background", "transition-[flex-grow,flex-basis,width,min-width,max-width] duration-[280ms] ease-[cubic-bezier(0.22,1,0.36,1)]",
|
|
449
|
-
children: [
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
569
|
+
"data-boring-state": $ ? "collapsed" : "expanded",
|
|
570
|
+
"aria-label": $ ? "Collapsed chat" : "Chat",
|
|
571
|
+
"aria-hidden": $,
|
|
572
|
+
className: d("relative h-full min-h-0 min-w-0 overflow-hidden bg-background", O && !$ && "flex flex-col", "transition-[flex-grow,flex-basis,width,min-width,max-width] duration-[280ms] ease-[cubic-bezier(0.22,1,0.36,1)]", $ ? "min-w-0 flex-[0_0_0px]" : "flex-1 border-r border-[color:oklch(from_var(--border)_l_c_h/0.6)]"),
|
|
573
|
+
children: [
|
|
574
|
+
O && !$ ? /* @__PURE__ */ b(ge, {
|
|
575
|
+
canOpenNav: !!i.onOpenNav,
|
|
576
|
+
canOpenWorkspace: J,
|
|
577
|
+
onOpenNav: i.onOpenNav,
|
|
578
|
+
onOpenWorkspace: Z
|
|
579
|
+
}) : null,
|
|
580
|
+
/* @__PURE__ */ b("div", {
|
|
581
|
+
className: d(O && !$ ? "min-h-0 flex-1 overflow-hidden" : "h-full min-h-0 overflow-hidden", "transition-opacity duration-[200ms] ease-[cubic-bezier(0.22,1,0.36,1)]", $ ? "opacity-0" : "opacity-100"),
|
|
582
|
+
children: G && O && De ? /* @__PURE__ */ b(he, {
|
|
583
|
+
pane: De,
|
|
584
|
+
totalPanes: B.length,
|
|
585
|
+
topActions: i.chatTopActions,
|
|
586
|
+
onClosePane: i.onCloseChatPane,
|
|
587
|
+
renderPane: (e) => /* @__PURE__ */ b(W, {
|
|
588
|
+
id: e.panel ?? f,
|
|
589
|
+
params: e.params ?? i.centerParams
|
|
590
|
+
})
|
|
591
|
+
}) : G ? /* @__PURE__ */ b(a, {
|
|
592
|
+
panes: B,
|
|
593
|
+
topActions: i.chatTopActions,
|
|
594
|
+
activePaneId: i.activeChatPaneId,
|
|
595
|
+
onActivePaneChange: i.onActiveChatPaneChange,
|
|
596
|
+
onClosePane: i.onCloseChatPane,
|
|
597
|
+
flashPaneId: i.flashChatPaneId,
|
|
598
|
+
storageKey: i.storageKey,
|
|
599
|
+
onDropSession: i.onDropChatSession,
|
|
600
|
+
renderPane: (e) => /* @__PURE__ */ b(W, {
|
|
601
|
+
id: e.panel ?? f,
|
|
602
|
+
params: e.params ?? i.centerParams
|
|
603
|
+
})
|
|
604
|
+
}) : /* @__PURE__ */ b(W, {
|
|
605
|
+
id: f,
|
|
606
|
+
params: i.centerParams
|
|
463
607
|
})
|
|
464
|
-
})
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}) : null]
|
|
477
|
-
}), u ? /* @__PURE__ */ x("aside", {
|
|
608
|
+
}),
|
|
609
|
+
i.chatOverlay ? /* @__PURE__ */ b("div", {
|
|
610
|
+
"data-boring-workspace-part": "chat-left-overlay",
|
|
611
|
+
"aria-hidden": S,
|
|
612
|
+
className: "absolute inset-0 z-40 flex bg-background",
|
|
613
|
+
children: /* @__PURE__ */ b("div", {
|
|
614
|
+
className: "flex h-full w-full flex-col border-r border-border bg-background",
|
|
615
|
+
children: i.chatOverlay
|
|
616
|
+
})
|
|
617
|
+
}) : null
|
|
618
|
+
]
|
|
619
|
+
}), c ? /* @__PURE__ */ x("aside", {
|
|
478
620
|
"data-boring-workspace-part": "workbench",
|
|
479
|
-
"data-boring-state":
|
|
480
|
-
"aria-label":
|
|
481
|
-
"aria-hidden": !
|
|
482
|
-
className: d("relative h-full min-h-0 overflow-hidden bg-background", S &&
|
|
483
|
-
style:
|
|
484
|
-
width:
|
|
485
|
-
minWidth:
|
|
486
|
-
maxWidth:
|
|
621
|
+
"data-boring-state": u ? "expanded" : "collapsed",
|
|
622
|
+
"aria-label": u ? "Surface" : void 0,
|
|
623
|
+
"aria-hidden": !u,
|
|
624
|
+
className: d(O ? "absolute inset-0 z-40" : "relative", "h-full min-h-0 overflow-hidden bg-background", (S || Ne) && u ? "min-w-0 flex-1" : "shrink-0", "transition-[flex-grow,flex-basis,width,min-width,max-width] duration-[280ms] ease-[cubic-bezier(0.22,1,0.36,1)]", u && !O && "border-l border-[color:oklch(from_var(--border)_l_c_h/0.6)]"),
|
|
625
|
+
style: {
|
|
626
|
+
width: u ? A : 0,
|
|
627
|
+
minWidth: u ? A : 0,
|
|
628
|
+
maxWidth: u ? A : 0,
|
|
487
629
|
willChange: "width"
|
|
488
630
|
},
|
|
489
631
|
children: [/* @__PURE__ */ b("div", {
|
|
490
|
-
className: d("h-full min-h-0 overflow-hidden", "transition-[opacity,padding] duration-[200ms] ease-[cubic-bezier(0.22,1,0.36,1)]",
|
|
491
|
-
children:
|
|
632
|
+
className: d("h-full min-h-0 overflow-hidden", "transition-[opacity,padding] duration-[200ms] ease-[cubic-bezier(0.22,1,0.36,1)]", u ? "opacity-100" : "opacity-0"),
|
|
633
|
+
children: Ne ? /* @__PURE__ */ x("div", {
|
|
634
|
+
className: "flex h-full min-h-0 flex-col",
|
|
635
|
+
children: [/* @__PURE__ */ b(_e, { onBack: Q }), /* @__PURE__ */ b("div", {
|
|
636
|
+
className: "min-h-0 flex-1 overflow-hidden",
|
|
637
|
+
children: i.surfaceOverlay ? /* @__PURE__ */ b("div", {
|
|
638
|
+
className: "relative h-full min-h-0",
|
|
639
|
+
children: i.surfaceOverlay
|
|
640
|
+
}) : /* @__PURE__ */ b(W, {
|
|
641
|
+
id: p,
|
|
642
|
+
params: i.surfaceParams
|
|
643
|
+
})
|
|
644
|
+
})]
|
|
645
|
+
}) : i.surfaceOverlay ? /* @__PURE__ */ b("div", {
|
|
492
646
|
className: "relative h-full min-h-0",
|
|
493
647
|
children: i.surfaceOverlay
|
|
494
648
|
}) : /* @__PURE__ */ b(W, {
|
|
495
|
-
id:
|
|
649
|
+
id: p,
|
|
496
650
|
params: i.surfaceParams
|
|
497
651
|
})
|
|
498
|
-
}),
|
|
652
|
+
}), u && !S && !O ? /* @__PURE__ */ b(xe, {
|
|
499
653
|
side: "surface-left",
|
|
500
654
|
ariaLabel: "Resize workbench",
|
|
501
|
-
onResize: (e) => oe((t) => V(t - e, 480,
|
|
655
|
+
onResize: (e) => oe((t) => V(t - e, 480, pe))
|
|
502
656
|
}) : null]
|
|
503
657
|
}) : null]
|
|
504
658
|
}),
|
|
505
|
-
/* @__PURE__ */ b(
|
|
506
|
-
surfaceOpen:
|
|
659
|
+
O ? null : /* @__PURE__ */ b(Te, {
|
|
660
|
+
surfaceOpen: u,
|
|
507
661
|
canToggleSurface: J,
|
|
508
662
|
onToggleSurface: Z,
|
|
509
663
|
chatCollapsed: S,
|
|
510
|
-
canToggleChat:
|
|
511
|
-
onToggleChat:
|
|
664
|
+
canToggleChat: f === "chat" && (!c || u && !S),
|
|
665
|
+
onToggleChat: Ae,
|
|
512
666
|
chatPulse: le || T.length > 0,
|
|
513
|
-
surfaceConfigured:
|
|
667
|
+
surfaceConfigured: c
|
|
514
668
|
}),
|
|
515
|
-
!
|
|
669
|
+
!O && !s && i.onOpenNav ? /* @__PURE__ */ b(Ee, {
|
|
516
670
|
side: "left",
|
|
517
671
|
icon: "sessions",
|
|
518
672
|
onClick: i.onOpenNav,
|
|
@@ -520,11 +674,11 @@ function B(i) {
|
|
|
520
674
|
hint: "⌘1",
|
|
521
675
|
pulse: de
|
|
522
676
|
}) : null,
|
|
523
|
-
!S && !
|
|
677
|
+
!O && !S && !s && G && i.onCreateChatPaneAfter ? /* @__PURE__ */ b(Ee, {
|
|
524
678
|
side: "left",
|
|
525
679
|
icon: "plus",
|
|
526
680
|
onClick: () => {
|
|
527
|
-
let e = i.activeChatPaneId ??
|
|
681
|
+
let e = i.activeChatPaneId ?? B[B.length - 1]?.id;
|
|
528
682
|
e && i.onCreateChatPaneAfter?.(e);
|
|
529
683
|
},
|
|
530
684
|
label: "New chat",
|
|
@@ -536,20 +690,20 @@ function B(i) {
|
|
|
536
690
|
function V(e, t, n) {
|
|
537
691
|
return Math.max(t, Math.min(n, e));
|
|
538
692
|
}
|
|
539
|
-
function
|
|
540
|
-
let [n, r] =
|
|
541
|
-
return
|
|
542
|
-
r(e ?
|
|
693
|
+
function ye(e, t) {
|
|
694
|
+
let [n, r] = y(() => e ? P(e, t) : t);
|
|
695
|
+
return g(() => {
|
|
696
|
+
r(e ? P(e, t) : t);
|
|
543
697
|
}, [e, t]), [n, m((t) => {
|
|
544
698
|
r((n) => {
|
|
545
699
|
let r = typeof t == "function" ? t(n) : t;
|
|
546
|
-
return e &&
|
|
700
|
+
return e && F(e, r), r;
|
|
547
701
|
});
|
|
548
702
|
}, [e])];
|
|
549
703
|
}
|
|
550
|
-
function
|
|
551
|
-
let [n, r] =
|
|
552
|
-
return
|
|
704
|
+
function be(e, t) {
|
|
705
|
+
let [n, r] = y(() => !e || typeof window > "u" ? t : window.localStorage.getItem(e) === "1");
|
|
706
|
+
return g(() => {
|
|
553
707
|
if (!e || typeof window > "u") {
|
|
554
708
|
r(t);
|
|
555
709
|
return;
|
|
@@ -563,15 +717,8 @@ function me(e, t) {
|
|
|
563
717
|
});
|
|
564
718
|
}, [e])];
|
|
565
719
|
}
|
|
566
|
-
function
|
|
567
|
-
let
|
|
568
|
-
return h(() => {
|
|
569
|
-
let e = () => t(window.innerWidth);
|
|
570
|
-
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
571
|
-
}, []), e;
|
|
572
|
-
}
|
|
573
|
-
function ge({ side: e, ariaLabel: t, onResize: n }) {
|
|
574
|
-
let r = _(null), i = m((e) => {
|
|
720
|
+
function xe({ side: e, ariaLabel: t, onResize: n }) {
|
|
721
|
+
let r = v(null), i = m((e) => {
|
|
575
722
|
e.preventDefault(), r.current = e.clientX, e.currentTarget.setPointerCapture(e.pointerId), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
576
723
|
}, []), a = m((e) => {
|
|
577
724
|
if (r.current === null) return;
|
|
@@ -580,7 +727,7 @@ function ge({ side: e, ariaLabel: t, onResize: n }) {
|
|
|
580
727
|
}, [n]), o = m((e) => {
|
|
581
728
|
r.current !== null && (r.current = null, e.currentTarget.releasePointerCapture(e.pointerId), document.body.style.cursor = "", document.body.style.userSelect = "");
|
|
582
729
|
}, []);
|
|
583
|
-
return /* @__PURE__ */ b(
|
|
730
|
+
return /* @__PURE__ */ b(D, {
|
|
584
731
|
"aria-label": t,
|
|
585
732
|
orientation: "vertical",
|
|
586
733
|
onResizeStart: i,
|
|
@@ -590,7 +737,7 @@ function ge({ side: e, ariaLabel: t, onResize: n }) {
|
|
|
590
737
|
className: d("absolute -top-px -bottom-px z-20 w-3 bg-transparent hover:!bg-transparent active:!bg-transparent", "after:absolute after:inset-y-2 after:left-1/2 after:w-px after:-translate-x-1/2 after:rounded-full after:bg-border/55", "after:transition-[width,background-color] after:duration-150 hover:after:w-1 hover:after:bg-foreground/35 active:after:w-1 active:after:bg-foreground/50", e === "drawer-right" ? "right-0" : "-left-1.5")
|
|
591
738
|
});
|
|
592
739
|
}
|
|
593
|
-
function
|
|
740
|
+
function Se(e, t) {
|
|
594
741
|
let n = e?.[t];
|
|
595
742
|
if (!n || typeof n != "object") return;
|
|
596
743
|
let r = n;
|
|
@@ -603,18 +750,18 @@ function H(e, t) {
|
|
|
603
750
|
function U(e, t) {
|
|
604
751
|
return H(e, t);
|
|
605
752
|
}
|
|
606
|
-
function
|
|
753
|
+
function Ce() {
|
|
607
754
|
typeof document > "u" || (document.querySelector("[data-boring-workspace-part=\"chat-pane\"][data-boring-state=\"active\"]") ?? document).querySelector("[data-boring-agent] textarea[name=\"message\"], textarea[name=\"message\"]")?.focus();
|
|
608
755
|
}
|
|
609
|
-
function
|
|
756
|
+
function we() {
|
|
610
757
|
typeof window > "u" || window.requestAnimationFrame(() => {
|
|
611
|
-
|
|
758
|
+
Ce(), window.setTimeout(Ce, 320);
|
|
612
759
|
});
|
|
613
760
|
}
|
|
614
761
|
function W({ id: e, params: t }) {
|
|
615
|
-
let n =
|
|
616
|
-
return i ? /* @__PURE__ */ b(
|
|
617
|
-
fallback: /* @__PURE__ */ b(
|
|
762
|
+
let n = s(), { debug: r } = c(), i = _(() => n.getComponents(), [n, re(n.subscribe, n.getSnapshot, n.getSnapshot)])[e], a = _(() => G(e), [e]);
|
|
763
|
+
return i ? /* @__PURE__ */ b(ne, {
|
|
764
|
+
fallback: /* @__PURE__ */ b(de, { centered: !0 }),
|
|
618
765
|
children: /* @__PURE__ */ b(i, {
|
|
619
766
|
params: {
|
|
620
767
|
...t,
|
|
@@ -646,7 +793,7 @@ function G(e) {
|
|
|
646
793
|
onDidConstraintsChange: () => ({ dispose() {} })
|
|
647
794
|
};
|
|
648
795
|
}
|
|
649
|
-
function
|
|
796
|
+
function Te({ surfaceOpen: e, canToggleSurface: t, onToggleSurface: n, chatCollapsed: r, canToggleChat: i, onToggleChat: a, chatPulse: o, surfaceConfigured: s }) {
|
|
650
797
|
let c = t, l = i;
|
|
651
798
|
return !c && !l ? null : /* @__PURE__ */ x("div", {
|
|
652
799
|
className: "pointer-events-none absolute right-3 top-2.5 z-[70] flex items-center gap-1",
|
|
@@ -656,7 +803,7 @@ function be({ surfaceOpen: e, canToggleSurface: t, onToggleSurface: n, chatColla
|
|
|
656
803
|
onClick: a,
|
|
657
804
|
pressed: r,
|
|
658
805
|
pulse: o,
|
|
659
|
-
children: b(r ?
|
|
806
|
+
children: b(r ? ce : oe, {
|
|
660
807
|
className: "size-3",
|
|
661
808
|
strokeWidth: 1.75
|
|
662
809
|
})
|
|
@@ -665,20 +812,20 @@ function be({ surfaceOpen: e, canToggleSurface: t, onToggleSurface: n, chatColla
|
|
|
665
812
|
hint: "⌘2",
|
|
666
813
|
onClick: n,
|
|
667
814
|
pressed: e,
|
|
668
|
-
children: b(e ?
|
|
815
|
+
children: b(e ? S : C, {
|
|
669
816
|
className: "size-3",
|
|
670
817
|
strokeWidth: 1.75
|
|
671
818
|
})
|
|
672
819
|
}) : null]
|
|
673
820
|
});
|
|
674
821
|
}
|
|
675
|
-
function
|
|
822
|
+
function Ee({ side: e, icon: t, onClick: n, label: r, hint: a, bottomOffset: o, stackIndex: s = 0, pulse: c = !1 }) {
|
|
676
823
|
let l = e === "right" && o !== void 0, u = s * 44;
|
|
677
824
|
return /* @__PURE__ */ b(i, {
|
|
678
825
|
label: r,
|
|
679
826
|
hint: a,
|
|
680
827
|
side: e === "left" ? "right" : "left",
|
|
681
|
-
children: /* @__PURE__ */ b(
|
|
828
|
+
children: /* @__PURE__ */ b(E, {
|
|
682
829
|
type: "button",
|
|
683
830
|
variant: "ghost",
|
|
684
831
|
size: "icon-sm",
|
|
@@ -713,7 +860,7 @@ function xe({ side: e, icon: t, onClick: n, label: r, hint: a, bottomOffset: o,
|
|
|
713
860
|
}) : null]
|
|
714
861
|
}) : t === "chat" ? /* @__PURE__ */ x("span", {
|
|
715
862
|
className: "relative flex items-center justify-center",
|
|
716
|
-
children: [/* @__PURE__ */ b(
|
|
863
|
+
children: [/* @__PURE__ */ b(se, {
|
|
717
864
|
className: "h-[15px] w-[15px]",
|
|
718
865
|
strokeWidth: 1.8,
|
|
719
866
|
"aria-hidden": "true"
|
|
@@ -751,7 +898,7 @@ function xe({ side: e, icon: t, onClick: n, label: r, hint: a, bottomOffset: o,
|
|
|
751
898
|
}
|
|
752
899
|
//#endregion
|
|
753
900
|
//#region src/front/layout/TopBar.tsx
|
|
754
|
-
function
|
|
901
|
+
function De({ appTitle: e = "Boring", sessionTitle: t, onCommandPalette: n, onNewChat: r, topBarLeft: i, topBarRight: a, className: o }) {
|
|
755
902
|
let s = a ?? null, c = t || e;
|
|
756
903
|
return /* @__PURE__ */ x("header", {
|
|
757
904
|
"data-boring-workspace-part": "topbar",
|
|
@@ -760,7 +907,7 @@ function Se({ appTitle: e = "Boring", sessionTitle: t, onCommandPalette: n, onNe
|
|
|
760
907
|
children: [
|
|
761
908
|
/* @__PURE__ */ b("div", {
|
|
762
909
|
className: "flex min-w-0 flex-1 items-center gap-2.5 leading-none",
|
|
763
|
-
children: i ?? /* @__PURE__ */ x(
|
|
910
|
+
children: i ?? /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ b("span", {
|
|
764
911
|
"aria-hidden": "true",
|
|
765
912
|
className: "grid size-[22px] shrink-0 place-items-center rounded-sm bg-foreground text-[11px] font-semibold leading-none tracking-tight text-background",
|
|
766
913
|
children: (c?.[0] ?? "B").toUpperCase()
|
|
@@ -769,7 +916,7 @@ function Se({ appTitle: e = "Boring", sessionTitle: t, onCommandPalette: n, onNe
|
|
|
769
916
|
children: c
|
|
770
917
|
})] })
|
|
771
918
|
}),
|
|
772
|
-
/* @__PURE__ */ x(
|
|
919
|
+
/* @__PURE__ */ x(T, {
|
|
773
920
|
type: "button",
|
|
774
921
|
variant: "ghost",
|
|
775
922
|
size: "sm",
|
|
@@ -778,7 +925,7 @@ function Se({ appTitle: e = "Boring", sessionTitle: t, onCommandPalette: n, onNe
|
|
|
778
925
|
"aria-label": "Search catalogs and commands",
|
|
779
926
|
title: "Command palette (⌘K)",
|
|
780
927
|
children: [
|
|
781
|
-
/* @__PURE__ */ b(
|
|
928
|
+
/* @__PURE__ */ b(w, {
|
|
782
929
|
className: "h-3.5 w-3.5 shrink-0 opacity-80",
|
|
783
930
|
strokeWidth: 1.75
|
|
784
931
|
}),
|
|
@@ -786,7 +933,7 @@ function Se({ appTitle: e = "Boring", sessionTitle: t, onCommandPalette: n, onNe
|
|
|
786
933
|
className: "font-normal tracking-tight",
|
|
787
934
|
children: "Search"
|
|
788
935
|
}),
|
|
789
|
-
/* @__PURE__ */ b(
|
|
936
|
+
/* @__PURE__ */ b(ue, {
|
|
790
937
|
className: "ml-0.5 bg-muted/40 leading-none shadow-none",
|
|
791
938
|
children: "⌘K"
|
|
792
939
|
})
|
|
@@ -794,14 +941,14 @@ function Se({ appTitle: e = "Boring", sessionTitle: t, onCommandPalette: n, onNe
|
|
|
794
941
|
}),
|
|
795
942
|
/* @__PURE__ */ x("div", {
|
|
796
943
|
className: "flex flex-1 shrink-0 items-center justify-end gap-1",
|
|
797
|
-
children: [r && /* @__PURE__ */ b(
|
|
944
|
+
children: [r && /* @__PURE__ */ b(E, {
|
|
798
945
|
type: "button",
|
|
799
946
|
variant: "ghost",
|
|
800
947
|
size: "icon-sm",
|
|
801
948
|
onClick: r,
|
|
802
949
|
"aria-label": "New chat",
|
|
803
950
|
title: "New chat",
|
|
804
|
-
children: /* @__PURE__ */ b(
|
|
951
|
+
children: /* @__PURE__ */ b(le, { className: "h-4 w-4" })
|
|
805
952
|
}), s]
|
|
806
953
|
})
|
|
807
954
|
]
|
|
@@ -844,4 +991,4 @@ function K({ title: e = "Loading workspace", description: t = "Preparing the wor
|
|
|
844
991
|
});
|
|
845
992
|
}
|
|
846
993
|
//#endregion
|
|
847
|
-
export {
|
|
994
|
+
export { ve as a, me as c, M as d, fe as f, z as i, F as l, De as n, N as o, k as p, B as r, P as s, K as t, j as u };
|