@forgeax/interface 0.4.1
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/LICENSE +202 -0
- package/NOTICE +9 -0
- package/README.md +111 -0
- package/dist/package/browser/App.css +192 -0
- package/dist/package/browser/App.d.ts +11 -0
- package/dist/package/browser/App.js +11 -0
- package/dist/package/browser/ApplicationDetachedShell.d.ts +13 -0
- package/dist/package/browser/ApplicationDetachedShell.js +10 -0
- package/dist/package/browser/ApplicationShell.d.ts +19 -0
- package/dist/package/browser/ApplicationShell.js +62 -0
- package/dist/package/browser/app-kit.d.ts +1 -0
- package/dist/package/browser/app-kit.js +4 -0
- package/dist/package/browser/appHostBootstrap.d.ts +16 -0
- package/dist/package/browser/appHostBootstrap.js +145 -0
- package/dist/package/browser/application.d.ts +35 -0
- package/dist/package/browser/application.js +64 -0
- package/dist/package/browser/assets/icons/agent-icon.png +0 -0
- package/dist/package/browser/assets/icons/at.svg +3 -0
- package/dist/package/browser/assets/icons/chevron-collapse.svg +3 -0
- package/dist/package/browser/assets/icons/chevron-expand.svg +3 -0
- package/dist/package/browser/assets/icons/chevron-up.svg +3 -0
- package/dist/package/browser/assets/icons/close-x.svg +3 -0
- package/dist/package/browser/assets/icons/close.svg +3 -0
- package/dist/package/browser/assets/icons/copy.svg +4 -0
- package/dist/package/browser/assets/icons/edit.svg +3 -0
- package/dist/package/browser/assets/icons/fullscreen.svg +3 -0
- package/dist/package/browser/assets/icons/pause.svg +4 -0
- package/dist/package/browser/assets/icons/play.svg +3 -0
- package/dist/package/browser/assets/icons/select.svg +3 -0
- package/dist/package/browser/assets/icons/sendMessage-enable.svg +4 -0
- package/dist/package/browser/assets/icons/sendMessage.svg +4 -0
- package/dist/package/browser/assets/icons/status-done.svg +11 -0
- package/dist/package/browser/assets/icons/status-running.svg +10 -0
- package/dist/package/browser/assets/icons/status-waiting.svg +10 -0
- package/dist/package/browser/assets/icons/tool-execute-script.svg +3 -0
- package/dist/package/browser/assets/icons/tool-other.svg +10 -0
- package/dist/package/browser/assets/icons/tool-read-file.svg +3 -0
- package/dist/package/browser/assets/icons/tool-resource-search.svg +3 -0
- package/dist/package/browser/assets/icons/tool-task-todo.svg +4 -0
- package/dist/package/browser/assets/icons/tool-write-file.svg +3 -0
- package/dist/package/browser/boot/SettingsSection.d.ts +14 -0
- package/dist/package/browser/boot/SettingsSection.js +82 -0
- package/dist/package/browser/boot/broadcast.d.ts +2 -0
- package/dist/package/browser/boot/broadcast.js +32 -0
- package/dist/package/browser/boot/driver.d.ts +22 -0
- package/dist/package/browser/boot/driver.js +47 -0
- package/dist/package/browser/boot/store.d.ts +29 -0
- package/dist/package/browser/boot/store.js +114 -0
- package/dist/package/browser/boot/themes.d.ts +19 -0
- package/dist/package/browser/boot/themes.js +21 -0
- package/dist/package/browser/boot/types.d.ts +22 -0
- package/dist/package/browser/boot/types.js +30 -0
- package/dist/package/browser/brand/BrandProvider.d.ts +19 -0
- package/dist/package/browser/brand/BrandProvider.js +35 -0
- package/dist/package/browser/brand/index.d.ts +4 -0
- package/dist/package/browser/brand/index.js +3 -0
- package/dist/package/browser/brand/runtime.d.ts +17 -0
- package/dist/package/browser/brand/runtime.js +71 -0
- package/dist/package/browser/brand/types.d.ts +77 -0
- package/dist/package/browser/brand/types.js +9 -0
- package/dist/package/browser/components/ActivityRail/ActivityRail.css +294 -0
- package/dist/package/browser/components/ActivityRail/ActivityRail.d.ts +2 -0
- package/dist/package/browser/components/ActivityRail/ActivityRail.js +164 -0
- package/dist/package/browser/components/ActivityRail/activity-rail-model.d.ts +18 -0
- package/dist/package/browser/components/ActivityRail/activity-rail-model.js +144 -0
- package/dist/package/browser/components/AgentAvatar/AgentAvatar.d.ts +17 -0
- package/dist/package/browser/components/AgentAvatar/AgentAvatar.js +50 -0
- package/dist/package/browser/components/BuildBadge/BuildBadge.d.ts +1 -0
- package/dist/package/browser/components/BuildBadge/BuildBadge.js +279 -0
- package/dist/package/browser/components/Bus/BusAdminPanel.css +2425 -0
- package/dist/package/browser/components/Bus/BusAdminPanel.d.ts +2 -0
- package/dist/package/browser/components/Bus/BusAdminPanel.js +1385 -0
- package/dist/package/browser/components/Bus/CapabilityOverview.d.ts +3 -0
- package/dist/package/browser/components/Bus/CapabilityOverview.js +50 -0
- package/dist/package/browser/components/ChatColumn/ChatColumn.d.ts +2 -0
- package/dist/package/browser/components/ChatColumn/ChatColumn.js +18 -0
- package/dist/package/browser/components/ChatColumn/SessionTabStrip.d.ts +1 -0
- package/dist/package/browser/components/ChatColumn/SessionTabStrip.js +103 -0
- package/dist/package/browser/components/ChatColumn/useChatWidth.d.ts +5 -0
- package/dist/package/browser/components/ChatColumn/useChatWidth.js +13 -0
- package/dist/package/browser/components/CommandPalette/CommandPalette.css +199 -0
- package/dist/package/browser/components/CommandPalette/CommandPalette.d.ts +2 -0
- package/dist/package/browser/components/CommandPalette/CommandPalette.js +242 -0
- package/dist/package/browser/components/Confirm/ConfirmDialog.d.ts +2 -0
- package/dist/package/browser/components/Confirm/ConfirmDialog.js +113 -0
- package/dist/package/browser/components/ContextMenu/ContextMenu.d.ts +10 -0
- package/dist/package/browser/components/ContextMenu/ContextMenu.js +218 -0
- package/dist/package/browser/components/ContextMenu/menuRegistry.d.ts +18 -0
- package/dist/package/browser/components/ContextMenu/menuRegistry.js +152 -0
- package/dist/package/browser/components/DetachedSurface.d.ts +20 -0
- package/dist/package/browser/components/DetachedSurface.js +102 -0
- package/dist/package/browser/components/DockShell/DockPanelHost.d.ts +4 -0
- package/dist/package/browser/components/DockShell/DockPanelHost.js +7 -0
- package/dist/package/browser/components/DockShell/DockRegion.d.ts +7 -0
- package/dist/package/browser/components/DockShell/DockRegion.js +315 -0
- package/dist/package/browser/components/DockShell/DockShell.css +1018 -0
- package/dist/package/browser/components/DockShell/DockTab.d.ts +3 -0
- package/dist/package/browser/components/DockShell/DockTab.js +139 -0
- package/dist/package/browser/components/DockShell/ExtensionHostPanel.d.ts +9 -0
- package/dist/package/browser/components/DockShell/ExtensionHostPanel.js +68 -0
- package/dist/package/browser/components/DockShell/ExtensionRuntimeFrame.d.ts +14 -0
- package/dist/package/browser/components/DockShell/ExtensionRuntimeFrame.js +56 -0
- package/dist/package/browser/components/DockShell/PanelWindowingBoundary.d.ts +6 -0
- package/dist/package/browser/components/DockShell/PanelWindowingBoundary.js +9 -0
- package/dist/package/browser/components/DockShell/chatDockAnimation.d.ts +45 -0
- package/dist/package/browser/components/DockShell/chatDockAnimation.js +101 -0
- package/dist/package/browser/components/DockShell/chatDockFullscreen.d.ts +17 -0
- package/dist/package/browser/components/DockShell/chatDockFullscreen.js +22 -0
- package/dist/package/browser/components/DockShell/chatDockLayout.d.ts +10 -0
- package/dist/package/browser/components/DockShell/chatDockLayout.js +11 -0
- package/dist/package/browser/components/DockShell/compact-empty-dock-groups.d.ts +16 -0
- package/dist/package/browser/components/DockShell/compact-empty-dock-groups.js +28 -0
- package/dist/package/browser/components/DockShell/crossInstanceDrop.d.ts +1 -0
- package/dist/package/browser/components/DockShell/crossInstanceDrop.js +1 -0
- package/dist/package/browser/components/DockShell/dockResetEpoch.d.ts +2 -0
- package/dist/package/browser/components/DockShell/dockResetEpoch.js +13 -0
- package/dist/package/browser/components/DockShell/dockTitle.d.ts +12 -0
- package/dist/package/browser/components/DockShell/dockTitle.js +36 -0
- package/dist/package/browser/components/DockShell/dockviewRegistry.d.ts +1 -0
- package/dist/package/browser/components/DockShell/dockviewRegistry.js +1 -0
- package/dist/package/browser/components/DockShell/edgeDrawer.d.ts +24 -0
- package/dist/package/browser/components/DockShell/edgeDrawer.js +1144 -0
- package/dist/package/browser/components/DockShell/edgePinStore.d.ts +12 -0
- package/dist/package/browser/components/DockShell/edgePinStore.js +37 -0
- package/dist/package/browser/components/DockShell/extension-editor-bridge.d.ts +13 -0
- package/dist/package/browser/components/DockShell/extension-editor-bridge.js +100 -0
- package/dist/package/browser/components/DockShell/extension-runtime-selection.d.ts +8 -0
- package/dist/package/browser/components/DockShell/extension-runtime-selection.js +6 -0
- package/dist/package/browser/components/DockShell/extensionRuntime.d.ts +17 -0
- package/dist/package/browser/components/DockShell/extensionRuntime.js +84 -0
- package/dist/package/browser/components/DockShell/footer-panel-visibility.d.ts +7 -0
- package/dist/package/browser/components/DockShell/footer-panel-visibility.js +43 -0
- package/dist/package/browser/components/DockShell/footer-panels.d.ts +2 -0
- package/dist/package/browser/components/DockShell/footer-panels.js +7 -0
- package/dist/package/browser/components/DockShell/panelRegistry.d.ts +37 -0
- package/dist/package/browser/components/DockShell/panelRegistry.js +126 -0
- package/dist/package/browser/components/DockShell/panelRenderers.d.ts +325 -0
- package/dist/package/browser/components/DockShell/panelRenderers.js +25 -0
- package/dist/package/browser/components/DockShell/panelTabCommands.d.ts +18 -0
- package/dist/package/browser/components/DockShell/panelTabCommands.js +133 -0
- package/dist/package/browser/components/DockShell/panelWindowing.d.ts +32 -0
- package/dist/package/browser/components/DockShell/panelWindowing.js +42 -0
- package/dist/package/browser/components/DockShell/regions.d.ts +1 -0
- package/dist/package/browser/components/DockShell/regions.js +1 -0
- package/dist/package/browser/components/DockShell/resolveRegion.d.ts +1 -0
- package/dist/package/browser/components/DockShell/resolveRegion.js +1 -0
- package/dist/package/browser/components/DockShell/sanitizeDockLayout.d.ts +3 -0
- package/dist/package/browser/components/DockShell/sanitizeDockLayout.js +46 -0
- package/dist/package/browser/components/DockShell/sideEdgeMove.d.ts +1 -0
- package/dist/package/browser/components/DockShell/sideEdgeMove.js +1 -0
- package/dist/package/browser/components/DockShell/studioTabMenuProvider.d.ts +13 -0
- package/dist/package/browser/components/DockShell/studioTabMenuProvider.js +39 -0
- package/dist/package/browser/components/DockShell/tabContextMenu.d.ts +29 -0
- package/dist/package/browser/components/DockShell/tabContextMenu.js +68 -0
- package/dist/package/browser/components/DockShell/ueDrag/controller.d.ts +80 -0
- package/dist/package/browser/components/DockShell/ueDrag/controller.js +785 -0
- package/dist/package/browser/components/DockShell/ueDrag/geometry.d.ts +94 -0
- package/dist/package/browser/components/DockShell/ueDrag/geometry.js +217 -0
- package/dist/package/browser/components/DockShell/ueDrag/overlay.d.ts +32 -0
- package/dist/package/browser/components/DockShell/ueDrag/overlay.js +206 -0
- package/dist/package/browser/components/DockShell/ueDrag/ueDrag.css +199 -0
- package/dist/package/browser/components/DockShell/useAuxBarWidth.d.ts +5 -0
- package/dist/package/browser/components/DockShell/useAuxBarWidth.js +13 -0
- package/dist/package/browser/components/Drawer/DrawerHostView.css +143 -0
- package/dist/package/browser/components/Drawer/DrawerHostView.d.ts +19 -0
- package/dist/package/browser/components/Drawer/DrawerHostView.js +93 -0
- package/dist/package/browser/components/Drawer/DrawerLauncher.d.ts +12 -0
- package/dist/package/browser/components/Drawer/DrawerLauncher.js +22 -0
- package/dist/package/browser/components/Drawer/useDrawerStore.d.ts +15 -0
- package/dist/package/browser/components/Drawer/useDrawerStore.js +80 -0
- package/dist/package/browser/components/ErrorBoundary.d.ts +55 -0
- package/dist/package/browser/components/ErrorBoundary.js +131 -0
- package/dist/package/browser/components/ExtensionHost/ExtensionIframeHost.d.ts +28 -0
- package/dist/package/browser/components/ExtensionHost/ExtensionIframeHost.js +179 -0
- package/dist/package/browser/components/ExtensionHost/NativeExtensionHost.d.ts +14 -0
- package/dist/package/browser/components/ExtensionHost/NativeExtensionHost.js +152 -0
- package/dist/package/browser/components/Feedback/FeedbackPanel.css +640 -0
- package/dist/package/browser/components/Feedback/FeedbackPanel.d.ts +8 -0
- package/dist/package/browser/components/Feedback/FeedbackPanel.js +118 -0
- package/dist/package/browser/components/Feedback/PassiveFeedback.css +179 -0
- package/dist/package/browser/components/Feedback/PassiveFeedback.d.ts +2 -0
- package/dist/package/browser/components/Feedback/PassiveFeedback.js +218 -0
- package/dist/package/browser/components/Feedback/collect.d.ts +15 -0
- package/dist/package/browser/components/Feedback/collect.js +80 -0
- package/dist/package/browser/components/Feedback/store.d.ts +61 -0
- package/dist/package/browser/components/Feedback/store.js +174 -0
- package/dist/package/browser/components/LangSwitcher/LangSwitcher.css +78 -0
- package/dist/package/browser/components/LangSwitcher/LangSwitcher.d.ts +14 -0
- package/dist/package/browser/components/LangSwitcher/LangSwitcher.js +44 -0
- package/dist/package/browser/components/MainArea/ConsolePanel.d.ts +1 -0
- package/dist/package/browser/components/MainArea/ConsolePanel.js +16 -0
- package/dist/package/browser/components/MainArea/MainArea.css +2130 -0
- package/dist/package/browser/components/MainArea/MainArea.d.ts +2 -0
- package/dist/package/browser/components/MainArea/MainArea.js +20 -0
- package/dist/package/browser/components/MainArea/StandaloneExtensionIframe.d.ts +25 -0
- package/dist/package/browser/components/MainArea/StandaloneExtensionIframe.js +155 -0
- package/dist/package/browser/components/MainArea/SurfacePanels.d.ts +3 -0
- package/dist/package/browser/components/MainArea/SurfacePanels.js +27 -0
- package/dist/package/browser/components/MainArea/TelemetryViewer.css +122 -0
- package/dist/package/browser/components/MainArea/TelemetryViewer.d.ts +36 -0
- package/dist/package/browser/components/MainArea/TelemetryViewer.js +116 -0
- package/dist/package/browser/components/MenuBar/MenuBar.css +186 -0
- package/dist/package/browser/components/MenuBar/MenuBar.d.ts +27 -0
- package/dist/package/browser/components/MenuBar/MenuBar.js +286 -0
- package/dist/package/browser/components/MenuBar/index.d.ts +1 -0
- package/dist/package/browser/components/MenuBar/index.js +1 -0
- package/dist/package/browser/components/MenuBar/menubar-open-state.d.ts +8 -0
- package/dist/package/browser/components/MenuBar/menubar-open-state.js +11 -0
- package/dist/package/browser/components/MenuBar/menubar-surface.d.ts +30 -0
- package/dist/package/browser/components/MenuBar/menubar-surface.js +201 -0
- package/dist/package/browser/components/ModelPicker/index.d.ts +1 -0
- package/dist/package/browser/components/ModelPicker/index.js +1 -0
- package/dist/package/browser/components/ModelPicker/useModelCatalog.d.ts +22 -0
- package/dist/package/browser/components/ModelPicker/useModelCatalog.js +100 -0
- package/dist/package/browser/components/Onboarding/ConnectModelPrompt.d.ts +2 -0
- package/dist/package/browser/components/Onboarding/ConnectModelPrompt.js +40 -0
- package/dist/package/browser/components/Onboarding/Onboarding.css +232 -0
- package/dist/package/browser/components/Onboarding/OnboardingController.d.ts +10 -0
- package/dist/package/browser/components/Onboarding/OnboardingController.js +549 -0
- package/dist/package/browser/components/Onboarding/connect-selection.d.ts +17 -0
- package/dist/package/browser/components/Onboarding/connect-selection.js +18 -0
- package/dist/package/browser/components/Onboarding/home-transition.d.ts +9 -0
- package/dist/package/browser/components/Onboarding/home-transition.js +20 -0
- package/dist/package/browser/components/Onboarding/index.d.ts +4 -0
- package/dist/package/browser/components/Onboarding/index.js +3 -0
- package/dist/package/browser/components/Onboarding/prepareTourShell.d.ts +5 -0
- package/dist/package/browser/components/Onboarding/prepareTourShell.js +11 -0
- package/dist/package/browser/components/Onboarding/project-name.d.ts +17 -0
- package/dist/package/browser/components/Onboarding/project-name.js +29 -0
- package/dist/package/browser/components/Onboarding/types.d.ts +31 -0
- package/dist/package/browser/components/Onboarding/types.js +77 -0
- package/dist/package/browser/components/PageTabs/PageTabStrip.css +221 -0
- package/dist/package/browser/components/PageTabs/PageTabStrip.d.ts +3 -0
- package/dist/package/browser/components/PageTabs/PageTabStrip.js +214 -0
- package/dist/package/browser/components/PageTabs/openablePageTypes.d.ts +9 -0
- package/dist/package/browser/components/PageTabs/openablePageTypes.js +13 -0
- package/dist/package/browser/components/PanelShell/PanelShell.css +517 -0
- package/dist/package/browser/components/PanelShell/PanelShell.d.ts +7 -0
- package/dist/package/browser/components/PanelShell/PanelShell.js +459 -0
- package/dist/package/browser/components/Resize/ResizeHandle.d.ts +1 -0
- package/dist/package/browser/components/Resize/ResizeHandle.js +1 -0
- package/dist/package/browser/components/SceneBackground/SceneBackground.d.ts +2 -0
- package/dist/package/browser/components/SceneBackground/SceneBackground.js +5 -0
- package/dist/package/browser/components/SchemaForm/SchemaForm.css +138 -0
- package/dist/package/browser/components/SchemaForm/SchemaForm.d.ts +17 -0
- package/dist/package/browser/components/SchemaForm/SchemaForm.js +86 -0
- package/dist/package/browser/components/SchemaForm/schema-form-utils.d.ts +30 -0
- package/dist/package/browser/components/SchemaForm/schema-form-utils.js +51 -0
- package/dist/package/browser/components/SettingsPrimitives.d.ts +24 -0
- package/dist/package/browser/components/SettingsPrimitives.js +145 -0
- package/dist/package/browser/components/Sidebar/BusHealthLamp.d.ts +1 -0
- package/dist/package/browser/components/Sidebar/BusHealthLamp.js +72 -0
- package/dist/package/browser/components/Sidebar/FilesPanel.d.ts +1 -0
- package/dist/package/browser/components/Sidebar/FilesPanel.js +234 -0
- package/dist/package/browser/components/Sidebar/Sidebar.css +1393 -0
- package/dist/package/browser/components/Sidebar/Sidebar.d.ts +3 -0
- package/dist/package/browser/components/Sidebar/Sidebar.js +8 -0
- package/dist/package/browser/components/Sidebar/sidebar-types.d.ts +18 -0
- package/dist/package/browser/components/Sidebar/sidebar-types.js +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/SlotDebugOverlay.d.ts +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/SlotDebugOverlay.js +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/hashHue.d.ts +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/hashHue.js +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/index.d.ts +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/index.js +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/isSlotDebugEnabled.d.ts +1 -0
- package/dist/package/browser/components/SlotDebugOverlay/isSlotDebugEnabled.js +1 -0
- package/dist/package/browser/components/StatusBar/FatalBanner.d.ts +25 -0
- package/dist/package/browser/components/StatusBar/FatalBanner.js +52 -0
- package/dist/package/browser/components/StatusBar/GlobalStatusBar.css +304 -0
- package/dist/package/browser/components/StatusBar/InfoPanel.css +174 -0
- package/dist/package/browser/components/StatusBar/InfoPanel.d.ts +19 -0
- package/dist/package/browser/components/StatusBar/InfoPanel.js +128 -0
- package/dist/package/browser/components/StatusBar/StatusChip.css +52 -0
- package/dist/package/browser/components/StatusBar/StatusChip.d.ts +40 -0
- package/dist/package/browser/components/StatusBar/StatusChip.js +13 -0
- package/dist/package/browser/components/StatusBar/StripHostView.d.ts +2 -0
- package/dist/package/browser/components/StatusBar/StripHostView.js +91 -0
- package/dist/package/browser/components/StatusBar/StripPopover.css +58 -0
- package/dist/package/browser/components/StatusBar/StripPopover.d.ts +16 -0
- package/dist/package/browser/components/StatusBar/StripPopover.js +15 -0
- package/dist/package/browser/components/StatusBar/feeds/PulseFeeds.d.ts +16 -0
- package/dist/package/browser/components/StatusBar/feeds/PulseFeeds.js +88 -0
- package/dist/package/browser/components/StatusBar/footer/CheckpointsDrawer.d.ts +4 -0
- package/dist/package/browser/components/StatusBar/footer/CheckpointsDrawer.js +77 -0
- package/dist/package/browser/components/StatusBar/footer/DiagnosticsPopover.d.ts +4 -0
- package/dist/package/browser/components/StatusBar/footer/DiagnosticsPopover.js +108 -0
- package/dist/package/browser/components/StatusBar/footer/EventsDrawer.d.ts +14 -0
- package/dist/package/browser/components/StatusBar/footer/EventsDrawer.js +25 -0
- package/dist/package/browser/components/StatusBar/footer/ForgeaxBuildPopover.d.ts +4 -0
- package/dist/package/browser/components/StatusBar/footer/ForgeaxBuildPopover.js +62 -0
- package/dist/package/browser/components/StatusBar/footer/footer.css +178 -0
- package/dist/package/browser/components/StatusBar/healthBridge.d.ts +38 -0
- package/dist/package/browser/components/StatusBar/healthBridge.js +245 -0
- package/dist/package/browser/components/StatusBar/healthStore.d.ts +80 -0
- package/dist/package/browser/components/StatusBar/healthStore.js +129 -0
- package/dist/package/browser/components/StatusBar/useStatusItem.d.ts +10 -0
- package/dist/package/browser/components/StatusBar/useStatusItem.js +35 -0
- package/dist/package/browser/components/Surfaces/SurfaceKeepAlive.css +34 -0
- package/dist/package/browser/components/Surfaces/SurfaceKeepAliveLayer.d.ts +3 -0
- package/dist/package/browser/components/Surfaces/SurfaceKeepAliveLayer.js +218 -0
- package/dist/package/browser/components/Surfaces/SurfaceOverlay.css +160 -0
- package/dist/package/browser/components/Surfaces/SurfaceOverlay.d.ts +9 -0
- package/dist/package/browser/components/Surfaces/SurfaceOverlay.js +144 -0
- package/dist/package/browser/components/TopBar/AndroidPackageDialog.d.ts +23 -0
- package/dist/package/browser/components/TopBar/AndroidPackageDialog.js +115 -0
- package/dist/package/browser/components/TopBar/FsBrowser.css +156 -0
- package/dist/package/browser/components/TopBar/FsBrowser.d.ts +8 -0
- package/dist/package/browser/components/TopBar/FsBrowser.js +93 -0
- package/dist/package/browser/components/TopBar/GameSwitcher.d.ts +29 -0
- package/dist/package/browser/components/TopBar/GameSwitcher.js +157 -0
- package/dist/package/browser/components/TopBar/IosPackageDialog.d.ts +23 -0
- package/dist/package/browser/components/TopBar/IosPackageDialog.js +115 -0
- package/dist/package/browser/components/TopBar/ProjectSwitcher.d.ts +3 -0
- package/dist/package/browser/components/TopBar/ProjectSwitcher.js +41 -0
- package/dist/package/browser/components/TopBar/PublishOnboarding.css +133 -0
- package/dist/package/browser/components/TopBar/PublishOnboarding.d.ts +10 -0
- package/dist/package/browser/components/TopBar/PublishOnboarding.js +144 -0
- package/dist/package/browser/components/TopBar/SessionSwitcher.d.ts +2 -0
- package/dist/package/browser/components/TopBar/SessionSwitcher.js +124 -0
- package/dist/package/browser/components/TopBar/TopBar.css +1672 -0
- package/dist/package/browser/components/TopBar/TopBar.d.ts +2 -0
- package/dist/package/browser/components/TopBar/TopBar.js +606 -0
- package/dist/package/browser/components/TopBar/publish-options.d.ts +20 -0
- package/dist/package/browser/components/TopBar/publish-options.js +28 -0
- package/dist/package/browser/components/TourOverlay/TourOverlay.css +122 -0
- package/dist/package/browser/components/TourOverlay/TourOverlay.d.ts +26 -0
- package/dist/package/browser/components/TourOverlay/TourOverlay.js +233 -0
- package/dist/package/browser/components/TourOverlay/index.d.ts +2 -0
- package/dist/package/browser/components/TourOverlay/index.js +1 -0
- package/dist/package/browser/components/ownership.d.ts +7 -0
- package/dist/package/browser/components/ownership.js +7 -0
- package/dist/package/browser/components/ui/SearchableMenu.css +143 -0
- package/dist/package/browser/components/ui/SearchableMenu.d.ts +30 -0
- package/dist/package/browser/components/ui/SearchableMenu.js +40 -0
- package/dist/package/browser/components/ui/alert-dialog.d.ts +20 -0
- package/dist/package/browser/components/ui/alert-dialog.js +38 -0
- package/dist/package/browser/components/ui/button.d.ts +11 -0
- package/dist/package/browser/components/ui/button.js +33 -0
- package/dist/package/browser/components/ui/checkbox.d.ts +4 -0
- package/dist/package/browser/components/ui/checkbox.js +8 -0
- package/dist/package/browser/components/ui/command.d.ts +74 -0
- package/dist/package/browser/components/ui/command.js +20 -0
- package/dist/package/browser/components/ui/dialog.d.ts +21 -0
- package/dist/package/browser/components/ui/dialog.js +34 -0
- package/dist/package/browser/components/ui/dropdown-menu.d.ts +18 -0
- package/dist/package/browser/components/ui/dropdown-menu.js +30 -0
- package/dist/package/browser/components/ui/input.d.ts +3 -0
- package/dist/package/browser/components/ui/input.js +8 -0
- package/dist/package/browser/components/ui/label.d.ts +4 -0
- package/dist/package/browser/components/ui/label.js +7 -0
- package/dist/package/browser/components/ui/popover.d.ts +7 -0
- package/dist/package/browser/components/ui/popover.js +10 -0
- package/dist/package/browser/components/ui/select.d.ts +11 -0
- package/dist/package/browser/components/ui/select.js +31 -0
- package/dist/package/browser/components/ui/tabs.d.ts +7 -0
- package/dist/package/browser/components/ui/tabs.js +12 -0
- package/dist/package/browser/components/ui/textarea.d.ts +3 -0
- package/dist/package/browser/components/ui/textarea.js +8 -0
- package/dist/package/browser/components/ui/tooltip.d.ts +7 -0
- package/dist/package/browser/components/ui/tooltip.js +10 -0
- package/dist/package/browser/core/app-shell/catalog-page-extensions.d.ts +28 -0
- package/dist/package/browser/core/app-shell/catalog-page-extensions.js +234 -0
- package/dist/package/browser/core/app-shell/derive-panel-renderers.d.ts +2 -0
- package/dist/package/browser/core/app-shell/derive-panel-renderers.js +17 -0
- package/dist/package/browser/core/app-shell/host.d.ts +31 -0
- package/dist/package/browser/core/app-shell/host.js +188 -0
- package/dist/package/browser/core/app-shell/index.d.ts +7 -0
- package/dist/package/browser/core/app-shell/index.js +8 -0
- package/dist/package/browser/core/app-shell/logger.d.ts +2 -0
- package/dist/package/browser/core/app-shell/logger.js +6 -0
- package/dist/package/browser/core/app-shell/ownership.d.ts +7 -0
- package/dist/package/browser/core/app-shell/ownership.js +7 -0
- package/dist/package/browser/core/app-shell/react/HostProvider.d.ts +10 -0
- package/dist/package/browser/core/app-shell/react/HostProvider.js +35 -0
- package/dist/package/browser/core/app-shell/surface-extension.d.ts +17 -0
- package/dist/package/browser/core/app-shell/surface-extension.js +33 -0
- package/dist/package/browser/core/app-shell/types.d.ts +176 -0
- package/dist/package/browser/core/app-shell/types.js +1 -0
- package/dist/package/browser/core/contextual-keybindings.d.ts +71 -0
- package/dist/package/browser/core/contextual-keybindings.js +198 -0
- package/dist/package/browser/core/extension-foundation/bus.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/bus.js +3 -0
- package/dist/package/browser/core/extension-foundation/capabilities.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/capabilities.js +3 -0
- package/dist/package/browser/core/extension-foundation/commands.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/commands.js +3 -0
- package/dist/package/browser/core/extension-foundation/context-keys.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/context-keys.js +3 -0
- package/dist/package/browser/core/extension-foundation/contribution-registry.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/contribution-registry.js +3 -0
- package/dist/package/browser/core/extension-foundation/errors.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/errors.js +3 -0
- package/dist/package/browser/core/extension-foundation/index.d.ts +8 -0
- package/dist/package/browser/core/extension-foundation/index.js +9 -0
- package/dist/package/browser/core/extension-foundation/loader.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/loader.js +3 -0
- package/dist/package/browser/core/extension-foundation/storage.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/storage.js +3 -0
- package/dist/package/browser/core/extension-foundation/types.d.ts +2 -0
- package/dist/package/browser/core/extension-foundation/types.js +1 -0
- package/dist/package/browser/core/extensions/builtin-commands.d.ts +2 -0
- package/dist/package/browser/core/extensions/builtin-commands.js +256 -0
- package/dist/package/browser/core/extensions/builtin-menus.d.ts +2 -0
- package/dist/package/browser/core/extensions/builtin-menus.js +252 -0
- package/dist/package/browser/core/extensions/chrome-drawer.d.ts +3 -0
- package/dist/package/browser/core/extensions/chrome-drawer.js +45 -0
- package/dist/package/browser/core/extensions/chrome-statusbar.d.ts +6 -0
- package/dist/package/browser/core/extensions/chrome-statusbar.js +26 -0
- package/dist/package/browser/core/extensions/detached-agents-browser.d.ts +3 -0
- package/dist/package/browser/core/extensions/detached-agents-browser.js +9 -0
- package/dist/package/browser/core/extensions/detached-files-browser.d.ts +3 -0
- package/dist/package/browser/core/extensions/detached-files-browser.js +6 -0
- package/dist/package/browser/core/extensions/editor-commands.d.ts +2 -0
- package/dist/package/browser/core/extensions/editor-commands.js +182 -0
- package/dist/package/browser/core/extensions/foundation-bus.d.ts +2 -0
- package/dist/package/browser/core/extensions/foundation-bus.js +3 -0
- package/dist/package/browser/core/extensions/foundation-commands.d.ts +2 -0
- package/dist/package/browser/core/extensions/foundation-commands.js +6 -0
- package/dist/package/browser/core/extensions/foundation-storage.d.ts +2 -0
- package/dist/package/browser/core/extensions/foundation-storage.js +3 -0
- package/dist/package/browser/core/extensions/host-commands.d.ts +18 -0
- package/dist/package/browser/core/extensions/host-commands.js +52 -0
- package/dist/package/browser/core/extensions/observability.d.ts +14 -0
- package/dist/package/browser/core/extensions/observability.js +18 -0
- package/dist/package/browser/core/extensions/panels-chat.d.ts +2 -0
- package/dist/package/browser/core/extensions/panels-chat.js +41 -0
- package/dist/package/browser/core/extensions/panels-editor.d.ts +8 -0
- package/dist/package/browser/core/extensions/panels-editor.js +26 -0
- package/dist/package/browser/core/extensions/panels-viewport.d.ts +2 -0
- package/dist/package/browser/core/extensions/panels-viewport.js +20 -0
- package/dist/package/browser/core/extensions/session-client.d.ts +29 -0
- package/dist/package/browser/core/extensions/session-client.js +42 -0
- package/dist/package/browser/core/extensions/slots-corner-agent-picker.d.ts +5 -0
- package/dist/package/browser/core/extensions/slots-corner-agent-picker.js +6 -0
- package/dist/package/browser/core/extensions/slots-main-area-body.d.ts +3 -0
- package/dist/package/browser/core/extensions/slots-main-area-body.js +6 -0
- package/dist/package/browser/core/extensions/slots-sidebar-agents.d.ts +3 -0
- package/dist/package/browser/core/extensions/slots-sidebar-agents.js +6 -0
- package/dist/package/browser/core/extensions/studio-domain-clients.d.ts +12 -0
- package/dist/package/browser/core/extensions/studio-domain-clients.js +15 -0
- package/dist/package/browser/core/extensions/surfaces-scene-editor.d.ts +3 -0
- package/dist/package/browser/core/extensions/surfaces-scene-editor.js +6 -0
- package/dist/package/browser/core/extensions/trajectory.d.ts +2 -0
- package/dist/package/browser/core/extensions/trajectory.js +50 -0
- package/dist/package/browser/core/page-navigation.d.ts +1 -0
- package/dist/package/browser/core/page-navigation.js +1 -0
- package/dist/package/browser/core/page-platform/activity.d.ts +4 -0
- package/dist/package/browser/core/page-platform/activity.js +46 -0
- package/dist/package/browser/core/page-platform/dockview-layout.d.ts +7 -0
- package/dist/package/browser/core/page-platform/dockview-layout.js +63 -0
- package/dist/package/browser/core/page-platform/index.d.ts +8 -0
- package/dist/package/browser/core/page-platform/index.js +8 -0
- package/dist/package/browser/core/page-platform/layout-store.d.ts +18 -0
- package/dist/package/browser/core/page-platform/layout-store.js +54 -0
- package/dist/package/browser/core/page-platform/page-dirty-probe.d.ts +1 -0
- package/dist/package/browser/core/page-platform/page-dirty-probe.js +4 -0
- package/dist/package/browser/core/page-platform/registry.d.ts +3 -0
- package/dist/package/browser/core/page-platform/registry.js +194 -0
- package/dist/package/browser/core/page-platform/resource-editor.d.ts +3 -0
- package/dist/package/browser/core/page-platform/resource-editor.js +74 -0
- package/dist/package/browser/core/page-platform/session.d.ts +10 -0
- package/dist/package/browser/core/page-platform/session.js +327 -0
- package/dist/package/browser/core/page-platform/types.d.ts +242 -0
- package/dist/package/browser/core/page-platform/types.js +10 -0
- package/dist/package/browser/core/panels/context-expression.d.ts +1 -0
- package/dist/package/browser/core/panels/context-expression.js +1 -0
- package/dist/package/browser/core/panels/drawer.d.ts +23 -0
- package/dist/package/browser/core/panels/drawer.js +1 -0
- package/dist/package/browser/core/panels/index.d.ts +7 -0
- package/dist/package/browser/core/panels/index.js +7 -0
- package/dist/package/browser/core/panels/panel-action-registry.d.ts +6 -0
- package/dist/package/browser/core/panels/panel-action-registry.js +62 -0
- package/dist/package/browser/core/panels/panel-control-registry.d.ts +6 -0
- package/dist/package/browser/core/panels/panel-control-registry.js +54 -0
- package/dist/package/browser/core/panels/resolve-panel-action-state.d.ts +10 -0
- package/dist/package/browser/core/panels/resolve-panel-action-state.js +9 -0
- package/dist/package/browser/core/panels/strip.d.ts +40 -0
- package/dist/package/browser/core/panels/strip.js +1 -0
- package/dist/package/browser/core/panels/types.d.ts +143 -0
- package/dist/package/browser/core/panels/types.js +1 -0
- package/dist/package/browser/i18n/index.d.ts +50 -0
- package/dist/package/browser/i18n/index.js +207 -0
- package/dist/package/browser/i18n/locales/en.json +1959 -0
- package/dist/package/browser/i18n/locales/zh.json +1959 -0
- package/dist/package/browser/index.d.ts +2 -0
- package/dist/package/browser/index.js +2 -0
- package/dist/package/browser/lib/a11y-summary.d.ts +17 -0
- package/dist/package/browser/lib/a11y-summary.js +66 -0
- package/dist/package/browser/lib/action-dom-discovery.d.ts +2 -0
- package/dist/package/browser/lib/action-dom-discovery.js +84 -0
- package/dist/package/browser/lib/action-registry.d.ts +94 -0
- package/dist/package/browser/lib/action-registry.js +210 -0
- package/dist/package/browser/lib/aegis.d.ts +40 -0
- package/dist/package/browser/lib/aegis.js +230 -0
- package/dist/package/browser/lib/agent-catalog-url.d.ts +9 -0
- package/dist/package/browser/lib/agent-catalog-url.js +24 -0
- package/dist/package/browser/lib/agent-cli-provider.d.ts +10 -0
- package/dist/package/browser/lib/agent-cli-provider.js +81 -0
- package/dist/package/browser/lib/ai-intents.d.ts +30 -0
- package/dist/package/browser/lib/ai-intents.js +52 -0
- package/dist/package/browser/lib/broadcast-stream.d.ts +17 -0
- package/dist/package/browser/lib/broadcast-stream.js +163 -0
- package/dist/package/browser/lib/browser-prefs-sync.d.ts +16 -0
- package/dist/package/browser/lib/browser-prefs-sync.js +151 -0
- package/dist/package/browser/lib/builtin-actions.d.ts +2 -0
- package/dist/package/browser/lib/builtin-actions.js +558 -0
- package/dist/package/browser/lib/bus.d.ts +25 -0
- package/dist/package/browser/lib/bus.js +71 -0
- package/dist/package/browser/lib/checkpoint-api.d.ts +54 -0
- package/dist/package/browser/lib/checkpoint-api.js +41 -0
- package/dist/package/browser/lib/cli-providers.d.ts +33 -0
- package/dist/package/browser/lib/cli-providers.js +61 -0
- package/dist/package/browser/lib/command-palette-store.d.ts +5 -0
- package/dist/package/browser/lib/command-palette-store.js +22 -0
- package/dist/package/browser/lib/composer-bridge.d.ts +103 -0
- package/dist/package/browser/lib/composer-bridge.js +448 -0
- package/dist/package/browser/lib/dashboard-api.d.ts +104 -0
- package/dist/package/browser/lib/dashboard-api.js +125 -0
- package/dist/package/browser/lib/deep-link-bus.d.ts +10 -0
- package/dist/package/browser/lib/deep-link-bus.js +35 -0
- package/dist/package/browser/lib/dialog.d.ts +40 -0
- package/dist/package/browser/lib/dialog.js +103 -0
- package/dist/package/browser/lib/editor-facts-bus.d.ts +27 -0
- package/dist/package/browser/lib/editor-facts-bus.js +25 -0
- package/dist/package/browser/lib/extension-api.d.ts +140 -0
- package/dist/package/browser/lib/extension-api.js +90 -0
- package/dist/package/browser/lib/file-activity-stream.d.ts +54 -0
- package/dist/package/browser/lib/file-activity-stream.js +123 -0
- package/dist/package/browser/lib/file-family.d.ts +15 -0
- package/dist/package/browser/lib/file-family.js +25 -0
- package/dist/package/browser/lib/game-templates.d.ts +7 -0
- package/dist/package/browser/lib/game-templates.js +15 -0
- package/dist/package/browser/lib/global-shortcuts.d.ts +121 -0
- package/dist/package/browser/lib/global-shortcuts.js +551 -0
- package/dist/package/browser/lib/logSink.d.ts +16 -0
- package/dist/package/browser/lib/logSink.js +128 -0
- package/dist/package/browser/lib/lucide-icon.d.ts +5 -0
- package/dist/package/browser/lib/lucide-icon.js +20 -0
- package/dist/package/browser/lib/menu-registry.d.ts +113 -0
- package/dist/package/browser/lib/menu-registry.js +197 -0
- package/dist/package/browser/lib/model-config.d.ts +89 -0
- package/dist/package/browser/lib/model-config.js +72 -0
- package/dist/package/browser/lib/model-prefs.d.ts +5 -0
- package/dist/package/browser/lib/model-prefs.js +53 -0
- package/dist/package/browser/lib/model-route/index.d.ts +81 -0
- package/dist/package/browser/lib/model-route/index.js +175 -0
- package/dist/package/browser/lib/narrative-copilot.d.ts +20 -0
- package/dist/package/browser/lib/narrative-copilot.js +105 -0
- package/dist/package/browser/lib/native-menu-bridge.d.ts +37 -0
- package/dist/package/browser/lib/native-menu-bridge.js +151 -0
- package/dist/package/browser/lib/page-tab-icons.d.ts +21 -0
- package/dist/package/browser/lib/page-tab-icons.js +64 -0
- package/dist/package/browser/lib/panel-tab-icons.d.ts +21 -0
- package/dist/package/browser/lib/panel-tab-icons.js +49 -0
- package/dist/package/browser/lib/passive-feedback.d.ts +50 -0
- package/dist/package/browser/lib/passive-feedback.js +171 -0
- package/dist/package/browser/lib/perception-stream.d.ts +27 -0
- package/dist/package/browser/lib/perception-stream.js +42 -0
- package/dist/package/browser/lib/platform/index.d.ts +14 -0
- package/dist/package/browser/lib/platform/index.js +13 -0
- package/dist/package/browser/lib/platform/runtime.d.ts +22 -0
- package/dist/package/browser/lib/platform/runtime.js +42 -0
- package/dist/package/browser/lib/platform/shell-adapter.d.ts +24 -0
- package/dist/package/browser/lib/platform/shell-adapter.js +74 -0
- package/dist/package/browser/lib/platform/surface-windowing.d.ts +4 -0
- package/dist/package/browser/lib/platform/surface-windowing.js +16 -0
- package/dist/package/browser/lib/platform/surface.d.ts +13 -0
- package/dist/package/browser/lib/platform/surface.js +27 -0
- package/dist/package/browser/lib/platform/use-surface-windowing.d.ts +1 -0
- package/dist/package/browser/lib/platform/use-surface-windowing.js +6 -0
- package/dist/package/browser/lib/platform/window-manager.d.ts +2 -0
- package/dist/package/browser/lib/platform/window-manager.js +82 -0
- package/dist/package/browser/lib/project-context.d.ts +4 -0
- package/dist/package/browser/lib/project-context.js +42 -0
- package/dist/package/browser/lib/project.d.ts +5 -0
- package/dist/package/browser/lib/project.js +8 -0
- package/dist/package/browser/lib/recent-games.d.ts +24 -0
- package/dist/package/browser/lib/recent-games.js +50 -0
- package/dist/package/browser/lib/repair-builtin-menus.d.ts +6 -0
- package/dist/package/browser/lib/repair-builtin-menus.js +18 -0
- package/dist/package/browser/lib/reply-language.d.ts +9 -0
- package/dist/package/browser/lib/reply-language.js +11 -0
- package/dist/package/browser/lib/resilient-polling.d.ts +9 -0
- package/dist/package/browser/lib/resilient-polling.js +16 -0
- package/dist/package/browser/lib/session-time.d.ts +8 -0
- package/dist/package/browser/lib/session-time.js +40 -0
- package/dist/package/browser/lib/shell-live-data.d.ts +12 -0
- package/dist/package/browser/lib/shell-live-data.js +66 -0
- package/dist/package/browser/lib/sse.d.ts +5 -0
- package/dist/package/browser/lib/sse.js +42 -0
- package/dist/package/browser/lib/storageKeys.d.ts +70 -0
- package/dist/package/browser/lib/storageKeys.js +89 -0
- package/dist/package/browser/lib/surface-store.d.ts +38 -0
- package/dist/package/browser/lib/surface-store.js +62 -0
- package/dist/package/browser/lib/surface.d.ts +56 -0
- package/dist/package/browser/lib/surface.js +225 -0
- package/dist/package/browser/lib/surfaceAnchors.d.ts +16 -0
- package/dist/package/browser/lib/surfaceAnchors.js +76 -0
- package/dist/package/browser/lib/surfaceKeepAliveLayout.d.ts +7 -0
- package/dist/package/browser/lib/surfaceKeepAliveLayout.js +12 -0
- package/dist/package/browser/lib/telemetry-test-prelude.d.ts +0 -0
- package/dist/package/browser/lib/telemetry-test-prelude.js +14 -0
- package/dist/package/browser/lib/text-edit-actions.d.ts +14 -0
- package/dist/package/browser/lib/text-edit-actions.js +184 -0
- package/dist/package/browser/lib/trace.d.ts +34 -0
- package/dist/package/browser/lib/trace.js +273 -0
- package/dist/package/browser/lib/trustedOrigins.d.ts +4 -0
- package/dist/package/browser/lib/trustedOrigins.js +36 -0
- package/dist/package/browser/lib/ui-action-highlight.d.ts +2 -0
- package/dist/package/browser/lib/ui-action-highlight.js +93 -0
- package/dist/package/browser/lib/ui-bridge.d.ts +2 -0
- package/dist/package/browser/lib/ui-bridge.js +224 -0
- package/dist/package/browser/lib/ui-screenshot.d.ts +31 -0
- package/dist/package/browser/lib/ui-screenshot.js +155 -0
- package/dist/package/browser/lib/ui-trajectory.d.ts +47 -0
- package/dist/package/browser/lib/ui-trajectory.js +99 -0
- package/dist/package/browser/lib/use-bus-snapshot.d.ts +3 -0
- package/dist/package/browser/lib/use-bus-snapshot.js +13 -0
- package/dist/package/browser/lib/use-extension-manifest.d.ts +19 -0
- package/dist/package/browser/lib/use-extension-manifest.js +67 -0
- package/dist/package/browser/lib/useConfirmToast.d.ts +26 -0
- package/dist/package/browser/lib/useConfirmToast.js +120 -0
- package/dist/package/browser/lib/utils.d.ts +2 -0
- package/dist/package/browser/lib/utils.js +5 -0
- package/dist/package/browser/lib/vag-action-bridge.d.ts +2 -0
- package/dist/package/browser/lib/vag-action-bridge.js +130 -0
- package/dist/package/browser/main.d.ts +1 -0
- package/dist/package/browser/main.js +157 -0
- package/dist/package/browser/store-parts/domain-clients.d.ts +149 -0
- package/dist/package/browser/store-parts/domain-clients.js +17 -0
- package/dist/package/browser/store-parts/observability.d.ts +4 -0
- package/dist/package/browser/store-parts/observability.js +35 -0
- package/dist/package/browser/store-parts/persistence.d.ts +40 -0
- package/dist/package/browser/store-parts/persistence.js +245 -0
- package/dist/package/browser/store-parts/session-client.d.ts +73 -0
- package/dist/package/browser/store-parts/session-client.js +17 -0
- package/dist/package/browser/store-parts/session-pick.d.ts +8 -0
- package/dist/package/browser/store-parts/session-pick.js +21 -0
- package/dist/package/browser/store-parts/shell.d.ts +5 -0
- package/dist/package/browser/store-parts/shell.js +37 -0
- package/dist/package/browser/store.d.ts +455 -0
- package/dist/package/browser/store.js +890 -0
- package/dist/package/browser/styles/forgeax-preview/agent-avatar.css +69 -0
- package/dist/package/browser/styles/forgeax-preview/aliases.css +21 -0
- package/dist/package/browser/styles/forgeax-preview/chat-popover.css +141 -0
- package/dist/package/browser/styles/forgeax-preview/chat-session.css +896 -0
- package/dist/package/browser/styles/forgeax-preview/composer-port.css +531 -0
- package/dist/package/browser/styles/forgeax-preview/design-tokens.css +25 -0
- package/dist/package/browser/styles/forgeax-preview/index.css +9 -0
- package/dist/package/browser/styles/forgeax-preview/scene-fx.css +117 -0
- package/dist/package/browser/styles/forgeax-preview/shell-layout.css +280 -0
- package/dist/package/browser/styles/forgeax-preview/shell-skin.css +128 -0
- package/dist/package/browser/styles/foundation.tokens.json +2755 -0
- package/dist/package/browser/styles/global.css +196 -0
- package/dist/package/browser/styles/motion.css +558 -0
- package/dist/package/browser/styles/plugin-token-bridge.css +19 -0
- package/dist/package/browser/styles/primitive.css +197 -0
- package/dist/package/browser/styles/semantic.tokens.json +1524 -0
- package/dist/package/browser/styles/tokens.css +304 -0
- package/dist/package/node/App.js +11 -0
- package/dist/package/node/ApplicationDetachedShell.js +10 -0
- package/dist/package/node/ApplicationShell.js +62 -0
- package/dist/package/node/app-kit.js +4 -0
- package/dist/package/node/appHostBootstrap.js +145 -0
- package/dist/package/node/application.js +64 -0
- package/dist/package/node/boot/SettingsSection.js +82 -0
- package/dist/package/node/boot/broadcast.js +32 -0
- package/dist/package/node/boot/driver.js +47 -0
- package/dist/package/node/boot/store.js +114 -0
- package/dist/package/node/boot/themes.js +21 -0
- package/dist/package/node/boot/types.js +30 -0
- package/dist/package/node/brand/BrandProvider.js +35 -0
- package/dist/package/node/brand/index.js +3 -0
- package/dist/package/node/brand/runtime.js +71 -0
- package/dist/package/node/brand/types.js +9 -0
- package/dist/package/node/components/ActivityRail/ActivityRail.js +164 -0
- package/dist/package/node/components/ActivityRail/activity-rail-model.js +144 -0
- package/dist/package/node/components/AgentAvatar/AgentAvatar.js +50 -0
- package/dist/package/node/components/BuildBadge/BuildBadge.js +279 -0
- package/dist/package/node/components/Bus/BusAdminPanel.js +1385 -0
- package/dist/package/node/components/Bus/CapabilityOverview.js +50 -0
- package/dist/package/node/components/ChatColumn/ChatColumn.js +18 -0
- package/dist/package/node/components/ChatColumn/SessionTabStrip.js +103 -0
- package/dist/package/node/components/ChatColumn/useChatWidth.js +13 -0
- package/dist/package/node/components/CommandPalette/CommandPalette.js +242 -0
- package/dist/package/node/components/Confirm/ConfirmDialog.js +113 -0
- package/dist/package/node/components/ContextMenu/ContextMenu.js +218 -0
- package/dist/package/node/components/ContextMenu/menuRegistry.js +152 -0
- package/dist/package/node/components/DetachedSurface.js +102 -0
- package/dist/package/node/components/DockShell/DockPanelHost.js +7 -0
- package/dist/package/node/components/DockShell/DockRegion.js +315 -0
- package/dist/package/node/components/DockShell/DockTab.js +139 -0
- package/dist/package/node/components/DockShell/ExtensionHostPanel.js +68 -0
- package/dist/package/node/components/DockShell/ExtensionRuntimeFrame.js +56 -0
- package/dist/package/node/components/DockShell/PanelWindowingBoundary.js +9 -0
- package/dist/package/node/components/DockShell/chatDockAnimation.js +101 -0
- package/dist/package/node/components/DockShell/chatDockFullscreen.js +22 -0
- package/dist/package/node/components/DockShell/chatDockLayout.js +11 -0
- package/dist/package/node/components/DockShell/compact-empty-dock-groups.js +28 -0
- package/dist/package/node/components/DockShell/crossInstanceDrop.js +1 -0
- package/dist/package/node/components/DockShell/dockResetEpoch.js +13 -0
- package/dist/package/node/components/DockShell/dockTitle.js +36 -0
- package/dist/package/node/components/DockShell/dockviewRegistry.js +1 -0
- package/dist/package/node/components/DockShell/edgeDrawer.js +1144 -0
- package/dist/package/node/components/DockShell/edgePinStore.js +37 -0
- package/dist/package/node/components/DockShell/extension-editor-bridge.js +100 -0
- package/dist/package/node/components/DockShell/extension-runtime-selection.js +6 -0
- package/dist/package/node/components/DockShell/extensionRuntime.js +84 -0
- package/dist/package/node/components/DockShell/footer-panel-visibility.js +43 -0
- package/dist/package/node/components/DockShell/footer-panels.js +7 -0
- package/dist/package/node/components/DockShell/panelRegistry.js +126 -0
- package/dist/package/node/components/DockShell/panelRenderers.js +25 -0
- package/dist/package/node/components/DockShell/panelTabCommands.js +133 -0
- package/dist/package/node/components/DockShell/panelWindowing.js +42 -0
- package/dist/package/node/components/DockShell/regions.js +1 -0
- package/dist/package/node/components/DockShell/resolveRegion.js +1 -0
- package/dist/package/node/components/DockShell/sanitizeDockLayout.js +46 -0
- package/dist/package/node/components/DockShell/sideEdgeMove.js +1 -0
- package/dist/package/node/components/DockShell/studioTabMenuProvider.js +39 -0
- package/dist/package/node/components/DockShell/tabContextMenu.js +68 -0
- package/dist/package/node/components/DockShell/ueDrag/controller.js +785 -0
- package/dist/package/node/components/DockShell/ueDrag/geometry.js +217 -0
- package/dist/package/node/components/DockShell/ueDrag/overlay.js +206 -0
- package/dist/package/node/components/DockShell/useAuxBarWidth.js +13 -0
- package/dist/package/node/components/Drawer/DrawerHostView.js +93 -0
- package/dist/package/node/components/Drawer/DrawerLauncher.js +22 -0
- package/dist/package/node/components/Drawer/useDrawerStore.js +80 -0
- package/dist/package/node/components/ErrorBoundary.js +131 -0
- package/dist/package/node/components/ExtensionHost/ExtensionIframeHost.js +179 -0
- package/dist/package/node/components/ExtensionHost/NativeExtensionHost.js +152 -0
- package/dist/package/node/components/Feedback/FeedbackPanel.js +118 -0
- package/dist/package/node/components/Feedback/PassiveFeedback.js +218 -0
- package/dist/package/node/components/Feedback/collect.js +80 -0
- package/dist/package/node/components/Feedback/store.js +174 -0
- package/dist/package/node/components/LangSwitcher/LangSwitcher.js +44 -0
- package/dist/package/node/components/MainArea/ConsolePanel.js +16 -0
- package/dist/package/node/components/MainArea/MainArea.js +20 -0
- package/dist/package/node/components/MainArea/StandaloneExtensionIframe.js +155 -0
- package/dist/package/node/components/MainArea/SurfacePanels.js +27 -0
- package/dist/package/node/components/MainArea/TelemetryViewer.js +116 -0
- package/dist/package/node/components/MenuBar/MenuBar.js +286 -0
- package/dist/package/node/components/MenuBar/index.js +1 -0
- package/dist/package/node/components/MenuBar/menubar-open-state.js +11 -0
- package/dist/package/node/components/MenuBar/menubar-surface.js +201 -0
- package/dist/package/node/components/ModelPicker/index.js +1 -0
- package/dist/package/node/components/ModelPicker/useModelCatalog.js +100 -0
- package/dist/package/node/components/Onboarding/ConnectModelPrompt.js +40 -0
- package/dist/package/node/components/Onboarding/OnboardingController.js +549 -0
- package/dist/package/node/components/Onboarding/connect-selection.js +18 -0
- package/dist/package/node/components/Onboarding/home-transition.js +20 -0
- package/dist/package/node/components/Onboarding/index.js +3 -0
- package/dist/package/node/components/Onboarding/prepareTourShell.js +11 -0
- package/dist/package/node/components/Onboarding/project-name.js +29 -0
- package/dist/package/node/components/Onboarding/types.js +77 -0
- package/dist/package/node/components/PageTabs/PageTabStrip.js +214 -0
- package/dist/package/node/components/PageTabs/openablePageTypes.js +13 -0
- package/dist/package/node/components/PanelShell/PanelShell.js +459 -0
- package/dist/package/node/components/Resize/ResizeHandle.js +1 -0
- package/dist/package/node/components/SceneBackground/SceneBackground.js +5 -0
- package/dist/package/node/components/SchemaForm/SchemaForm.js +86 -0
- package/dist/package/node/components/SchemaForm/schema-form-utils.js +51 -0
- package/dist/package/node/components/SettingsPrimitives.js +145 -0
- package/dist/package/node/components/Sidebar/BusHealthLamp.js +72 -0
- package/dist/package/node/components/Sidebar/FilesPanel.js +234 -0
- package/dist/package/node/components/Sidebar/Sidebar.js +8 -0
- package/dist/package/node/components/Sidebar/sidebar-types.js +1 -0
- package/dist/package/node/components/SlotDebugOverlay/SlotDebugOverlay.js +1 -0
- package/dist/package/node/components/SlotDebugOverlay/hashHue.js +1 -0
- package/dist/package/node/components/SlotDebugOverlay/index.js +1 -0
- package/dist/package/node/components/SlotDebugOverlay/isSlotDebugEnabled.js +1 -0
- package/dist/package/node/components/StatusBar/FatalBanner.js +52 -0
- package/dist/package/node/components/StatusBar/InfoPanel.js +128 -0
- package/dist/package/node/components/StatusBar/StatusChip.js +13 -0
- package/dist/package/node/components/StatusBar/StripHostView.js +91 -0
- package/dist/package/node/components/StatusBar/StripPopover.js +15 -0
- package/dist/package/node/components/StatusBar/feeds/PulseFeeds.js +88 -0
- package/dist/package/node/components/StatusBar/footer/CheckpointsDrawer.js +77 -0
- package/dist/package/node/components/StatusBar/footer/DiagnosticsPopover.js +108 -0
- package/dist/package/node/components/StatusBar/footer/EventsDrawer.js +25 -0
- package/dist/package/node/components/StatusBar/footer/ForgeaxBuildPopover.js +62 -0
- package/dist/package/node/components/StatusBar/healthBridge.js +245 -0
- package/dist/package/node/components/StatusBar/healthStore.js +129 -0
- package/dist/package/node/components/StatusBar/useStatusItem.js +35 -0
- package/dist/package/node/components/Surfaces/SurfaceKeepAliveLayer.js +218 -0
- package/dist/package/node/components/Surfaces/SurfaceOverlay.js +144 -0
- package/dist/package/node/components/TopBar/AndroidPackageDialog.js +115 -0
- package/dist/package/node/components/TopBar/FsBrowser.js +93 -0
- package/dist/package/node/components/TopBar/GameSwitcher.js +157 -0
- package/dist/package/node/components/TopBar/IosPackageDialog.js +115 -0
- package/dist/package/node/components/TopBar/ProjectSwitcher.js +41 -0
- package/dist/package/node/components/TopBar/PublishOnboarding.js +144 -0
- package/dist/package/node/components/TopBar/SessionSwitcher.js +124 -0
- package/dist/package/node/components/TopBar/TopBar.js +606 -0
- package/dist/package/node/components/TopBar/publish-options.js +28 -0
- package/dist/package/node/components/TourOverlay/TourOverlay.js +233 -0
- package/dist/package/node/components/TourOverlay/index.js +1 -0
- package/dist/package/node/components/ownership.js +7 -0
- package/dist/package/node/components/ui/SearchableMenu.js +40 -0
- package/dist/package/node/components/ui/alert-dialog.js +38 -0
- package/dist/package/node/components/ui/button.js +33 -0
- package/dist/package/node/components/ui/checkbox.js +8 -0
- package/dist/package/node/components/ui/command.js +20 -0
- package/dist/package/node/components/ui/dialog.js +34 -0
- package/dist/package/node/components/ui/dropdown-menu.js +30 -0
- package/dist/package/node/components/ui/input.js +8 -0
- package/dist/package/node/components/ui/label.js +7 -0
- package/dist/package/node/components/ui/popover.js +10 -0
- package/dist/package/node/components/ui/select.js +31 -0
- package/dist/package/node/components/ui/tabs.js +12 -0
- package/dist/package/node/components/ui/textarea.js +8 -0
- package/dist/package/node/components/ui/tooltip.js +10 -0
- package/dist/package/node/core/app-shell/catalog-page-extensions.js +234 -0
- package/dist/package/node/core/app-shell/derive-panel-renderers.js +17 -0
- package/dist/package/node/core/app-shell/host.js +188 -0
- package/dist/package/node/core/app-shell/index.js +8 -0
- package/dist/package/node/core/app-shell/logger.js +6 -0
- package/dist/package/node/core/app-shell/ownership.js +7 -0
- package/dist/package/node/core/app-shell/react/HostProvider.js +35 -0
- package/dist/package/node/core/app-shell/surface-extension.js +33 -0
- package/dist/package/node/core/app-shell/types.js +1 -0
- package/dist/package/node/core/contextual-keybindings.js +198 -0
- package/dist/package/node/core/extension-foundation/bus.js +3 -0
- package/dist/package/node/core/extension-foundation/capabilities.js +3 -0
- package/dist/package/node/core/extension-foundation/commands.js +3 -0
- package/dist/package/node/core/extension-foundation/context-keys.js +3 -0
- package/dist/package/node/core/extension-foundation/contribution-registry.js +3 -0
- package/dist/package/node/core/extension-foundation/errors.js +3 -0
- package/dist/package/node/core/extension-foundation/index.js +9 -0
- package/dist/package/node/core/extension-foundation/loader.js +3 -0
- package/dist/package/node/core/extension-foundation/storage.js +3 -0
- package/dist/package/node/core/extension-foundation/types.js +1 -0
- package/dist/package/node/core/extensions/builtin-commands.js +256 -0
- package/dist/package/node/core/extensions/builtin-menus.js +252 -0
- package/dist/package/node/core/extensions/chrome-drawer.js +45 -0
- package/dist/package/node/core/extensions/chrome-statusbar.js +26 -0
- package/dist/package/node/core/extensions/detached-agents-browser.js +9 -0
- package/dist/package/node/core/extensions/detached-files-browser.js +6 -0
- package/dist/package/node/core/extensions/editor-commands.js +182 -0
- package/dist/package/node/core/extensions/foundation-bus.js +3 -0
- package/dist/package/node/core/extensions/foundation-commands.js +6 -0
- package/dist/package/node/core/extensions/foundation-storage.js +3 -0
- package/dist/package/node/core/extensions/host-commands.js +52 -0
- package/dist/package/node/core/extensions/observability.js +18 -0
- package/dist/package/node/core/extensions/panels-chat.js +41 -0
- package/dist/package/node/core/extensions/panels-editor.js +26 -0
- package/dist/package/node/core/extensions/panels-viewport.js +20 -0
- package/dist/package/node/core/extensions/session-client.js +42 -0
- package/dist/package/node/core/extensions/slots-corner-agent-picker.js +6 -0
- package/dist/package/node/core/extensions/slots-main-area-body.js +6 -0
- package/dist/package/node/core/extensions/slots-sidebar-agents.js +6 -0
- package/dist/package/node/core/extensions/studio-domain-clients.js +15 -0
- package/dist/package/node/core/extensions/surfaces-scene-editor.js +6 -0
- package/dist/package/node/core/extensions/trajectory.js +50 -0
- package/dist/package/node/core/page-navigation.js +1 -0
- package/dist/package/node/core/page-platform/activity.js +46 -0
- package/dist/package/node/core/page-platform/dockview-layout.js +63 -0
- package/dist/package/node/core/page-platform/index.js +8 -0
- package/dist/package/node/core/page-platform/layout-store.js +54 -0
- package/dist/package/node/core/page-platform/page-dirty-probe.js +4 -0
- package/dist/package/node/core/page-platform/registry.js +194 -0
- package/dist/package/node/core/page-platform/resource-editor.js +74 -0
- package/dist/package/node/core/page-platform/session.js +327 -0
- package/dist/package/node/core/page-platform/types.js +10 -0
- package/dist/package/node/core/panels/context-expression.js +1 -0
- package/dist/package/node/core/panels/drawer.js +1 -0
- package/dist/package/node/core/panels/index.js +7 -0
- package/dist/package/node/core/panels/panel-action-registry.js +62 -0
- package/dist/package/node/core/panels/panel-control-registry.js +54 -0
- package/dist/package/node/core/panels/resolve-panel-action-state.js +9 -0
- package/dist/package/node/core/panels/strip.js +1 -0
- package/dist/package/node/core/panels/types.js +1 -0
- package/dist/package/node/i18n/index.js +207 -0
- package/dist/package/node/i18n/locales/en.json +1959 -0
- package/dist/package/node/i18n/locales/zh.json +1959 -0
- package/dist/package/node/index.js +2 -0
- package/dist/package/node/lib/a11y-summary.js +66 -0
- package/dist/package/node/lib/action-dom-discovery.js +84 -0
- package/dist/package/node/lib/action-registry.js +210 -0
- package/dist/package/node/lib/aegis.js +230 -0
- package/dist/package/node/lib/agent-catalog-url.js +24 -0
- package/dist/package/node/lib/agent-cli-provider.js +81 -0
- package/dist/package/node/lib/ai-intents.js +52 -0
- package/dist/package/node/lib/broadcast-stream.js +163 -0
- package/dist/package/node/lib/browser-prefs-sync.js +151 -0
- package/dist/package/node/lib/builtin-actions.js +558 -0
- package/dist/package/node/lib/bus.js +71 -0
- package/dist/package/node/lib/checkpoint-api.js +41 -0
- package/dist/package/node/lib/cli-providers.js +61 -0
- package/dist/package/node/lib/command-palette-store.js +22 -0
- package/dist/package/node/lib/composer-bridge.js +448 -0
- package/dist/package/node/lib/dashboard-api.js +125 -0
- package/dist/package/node/lib/deep-link-bus.js +35 -0
- package/dist/package/node/lib/dialog.js +103 -0
- package/dist/package/node/lib/editor-facts-bus.js +25 -0
- package/dist/package/node/lib/extension-api.js +90 -0
- package/dist/package/node/lib/file-activity-stream.js +123 -0
- package/dist/package/node/lib/file-family.js +25 -0
- package/dist/package/node/lib/game-templates.js +15 -0
- package/dist/package/node/lib/global-shortcuts.js +551 -0
- package/dist/package/node/lib/logSink.js +128 -0
- package/dist/package/node/lib/lucide-icon.js +20 -0
- package/dist/package/node/lib/menu-registry.js +197 -0
- package/dist/package/node/lib/model-config.js +72 -0
- package/dist/package/node/lib/model-prefs.js +53 -0
- package/dist/package/node/lib/model-route/index.js +175 -0
- package/dist/package/node/lib/narrative-copilot.js +105 -0
- package/dist/package/node/lib/native-menu-bridge.js +151 -0
- package/dist/package/node/lib/page-tab-icons.js +64 -0
- package/dist/package/node/lib/panel-tab-icons.js +49 -0
- package/dist/package/node/lib/passive-feedback.js +171 -0
- package/dist/package/node/lib/perception-stream.js +42 -0
- package/dist/package/node/lib/platform/index.js +13 -0
- package/dist/package/node/lib/platform/runtime.js +42 -0
- package/dist/package/node/lib/platform/shell-adapter.js +74 -0
- package/dist/package/node/lib/platform/surface-windowing.js +16 -0
- package/dist/package/node/lib/platform/surface.js +27 -0
- package/dist/package/node/lib/platform/use-surface-windowing.js +6 -0
- package/dist/package/node/lib/platform/window-manager.js +82 -0
- package/dist/package/node/lib/project-context.js +42 -0
- package/dist/package/node/lib/project.js +8 -0
- package/dist/package/node/lib/recent-games.js +50 -0
- package/dist/package/node/lib/repair-builtin-menus.js +18 -0
- package/dist/package/node/lib/reply-language.js +11 -0
- package/dist/package/node/lib/resilient-polling.js +16 -0
- package/dist/package/node/lib/session-time.js +40 -0
- package/dist/package/node/lib/shell-live-data.js +66 -0
- package/dist/package/node/lib/sse.js +42 -0
- package/dist/package/node/lib/storageKeys.js +89 -0
- package/dist/package/node/lib/surface-store.js +62 -0
- package/dist/package/node/lib/surface.js +225 -0
- package/dist/package/node/lib/surfaceAnchors.js +76 -0
- package/dist/package/node/lib/surfaceKeepAliveLayout.js +12 -0
- package/dist/package/node/lib/telemetry-test-prelude.js +14 -0
- package/dist/package/node/lib/text-edit-actions.js +184 -0
- package/dist/package/node/lib/trace.js +273 -0
- package/dist/package/node/lib/trustedOrigins.js +36 -0
- package/dist/package/node/lib/ui-action-highlight.js +93 -0
- package/dist/package/node/lib/ui-bridge.js +224 -0
- package/dist/package/node/lib/ui-screenshot.js +155 -0
- package/dist/package/node/lib/ui-trajectory.js +99 -0
- package/dist/package/node/lib/use-bus-snapshot.js +13 -0
- package/dist/package/node/lib/use-extension-manifest.js +67 -0
- package/dist/package/node/lib/useConfirmToast.js +120 -0
- package/dist/package/node/lib/utils.js +5 -0
- package/dist/package/node/lib/vag-action-bridge.js +130 -0
- package/dist/package/node/main.js +157 -0
- package/dist/package/node/store-parts/domain-clients.js +17 -0
- package/dist/package/node/store-parts/observability.js +35 -0
- package/dist/package/node/store-parts/persistence.js +245 -0
- package/dist/package/node/store-parts/session-client.js +17 -0
- package/dist/package/node/store-parts/session-pick.js +21 -0
- package/dist/package/node/store-parts/shell.js +37 -0
- package/dist/package/node/store.js +890 -0
- package/dist/package/node/styles/foundation.tokens.json +2755 -0
- package/dist/package/node/styles/semantic.tokens.json +1524 -0
- package/dist/package/packages/design/styles/fx-bridge.css +25 -0
- package/dist/package/packages/design/styles/primitive.css +199 -0
- package/dist/package/packages/design/styles/semantic.css +262 -0
- package/dist/package/packages/design/theme.d.ts +15 -0
- package/dist/package/packages/design/theme.js +31 -0
- package/dist/package/packages/design/tokens.css +14 -0
- package/package.json +145 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* InfoPanel — a Blender-INFO-editor-style log panel.
|
|
4
|
+
*
|
|
5
|
+
* Registered as the footer-merged bottom-edge 'info' panel (ADR-0030 §2.3, see
|
|
6
|
+
* core/extensions/chrome-drawer.tsx): its footer tab expands it upward. Content
|
|
7
|
+
* is the full health feed with the affordances Blender's INFO editor has:
|
|
8
|
+
*
|
|
9
|
+
* - one row per entry: severity icon + time + source badge + message, newest
|
|
10
|
+
* at the bottom, auto-scrolled to the latest;
|
|
11
|
+
* - CLICK A ROW to copy its full text (source · time · message) to the
|
|
12
|
+
* clipboard, with a brief "copied" flash;
|
|
13
|
+
* - consecutive identical entries fold into ONE row + an `×N` count badge so a
|
|
14
|
+
* flood (e.g. `PickError ... has no Camera component`) occupies one line;
|
|
15
|
+
* - severity / source filters + a copy-all + clear button.
|
|
16
|
+
*
|
|
17
|
+
* Pure presentation over healthStore — no engine coupling.
|
|
18
|
+
*/
|
|
19
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
20
|
+
import { createRestartableTimeoutTaskLifecycle } from '@forgeax/app-shell/react';
|
|
21
|
+
import { Info, CheckCircle2, AlertTriangle, XCircle, Trash2, Copy, Check } from 'lucide-react';
|
|
22
|
+
import { useTranslation } from '../../i18n';
|
|
23
|
+
import { useHealthStore, collapseEntries, entryToText, } from './healthStore';
|
|
24
|
+
import './InfoPanel.css';
|
|
25
|
+
const ICONS = {
|
|
26
|
+
info: Info,
|
|
27
|
+
success: CheckCircle2,
|
|
28
|
+
warn: AlertTriangle,
|
|
29
|
+
error: XCircle,
|
|
30
|
+
};
|
|
31
|
+
const LEVELS = ['info', 'success', 'warn', 'error'];
|
|
32
|
+
const SOURCES = ['play', 'edit', 'plugin', 'shell', 'engine'];
|
|
33
|
+
function fmtTime(ts) {
|
|
34
|
+
const d = new Date(ts);
|
|
35
|
+
const p = (n) => String(n).padStart(2, '0');
|
|
36
|
+
return `${p(d.getHours())}:${p(d.getMinutes())}:${p(d.getSeconds())}`;
|
|
37
|
+
}
|
|
38
|
+
function CopyRow({ ce, latest, onCopy, copied, }) {
|
|
39
|
+
const { t } = useTranslation();
|
|
40
|
+
const { entry, count } = ce;
|
|
41
|
+
const Icon = ICONS[entry.level];
|
|
42
|
+
return (_jsxs("div", { className: `ip-row ip-row--${entry.level}${latest ? ' ip-row--latest' : ''}${copied ? ' ip-row--copied' : ''}`, "data-code": entry.code, role: "button", tabIndex: 0, title: t('infoPanel.clickToCopy'), onClick: () => onCopy(ce), onKeyDown: (e) => {
|
|
43
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
44
|
+
e.preventDefault();
|
|
45
|
+
onCopy(ce);
|
|
46
|
+
}
|
|
47
|
+
}, children: [_jsx(Icon, { className: "ip-icon", size: 13 }), _jsx("span", { className: "ip-time", children: fmtTime(entry.ts) }), _jsx("span", { className: `ip-source ip-source--${entry.source}`, children: entry.source }), _jsx("span", { className: "ip-msg", children: entry.message }), count > 1 && _jsxs("span", { className: "ip-count", title: t('infoPanel.repeatedTimes', { count }), children: ["\u00D7", count] }), _jsx("span", { className: "ip-copy-hint", children: copied ? _jsx(Check, { size: 12 }) : _jsx(Copy, { size: 12 }) })] }));
|
|
48
|
+
}
|
|
49
|
+
export function InfoPanel() {
|
|
50
|
+
const { t } = useTranslation();
|
|
51
|
+
const entries = useHealthStore((s) => s.entries);
|
|
52
|
+
const clear = useHealthStore((s) => s.clear);
|
|
53
|
+
const listRef = useRef(null);
|
|
54
|
+
// key of the row most recently copied → flashes a "copied" state briefly.
|
|
55
|
+
const [copiedKey, setCopiedKey] = useState(null);
|
|
56
|
+
const [allCopied, setAllCopied] = useState(false);
|
|
57
|
+
const rowCopyResetTaskRef = useRef(null);
|
|
58
|
+
const allCopyResetTaskRef = useRef(null);
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
const rowTask = createRestartableTimeoutTaskLifecycle({
|
|
61
|
+
delayMs: 900,
|
|
62
|
+
task: () => setCopiedKey(null),
|
|
63
|
+
});
|
|
64
|
+
const allTask = createRestartableTimeoutTaskLifecycle({
|
|
65
|
+
delayMs: 900,
|
|
66
|
+
task: () => setAllCopied(false),
|
|
67
|
+
});
|
|
68
|
+
rowCopyResetTaskRef.current = rowTask;
|
|
69
|
+
allCopyResetTaskRef.current = allTask;
|
|
70
|
+
return () => {
|
|
71
|
+
rowCopyResetTaskRef.current = null;
|
|
72
|
+
allCopyResetTaskRef.current = null;
|
|
73
|
+
rowTask.dispose();
|
|
74
|
+
allTask.dispose();
|
|
75
|
+
};
|
|
76
|
+
}, []);
|
|
77
|
+
// Severity / source filters. null entries mean "show all of that axis".
|
|
78
|
+
const [levelFilter, setLevelFilter] = useState(new Set());
|
|
79
|
+
const [sourceFilter, setSourceFilter] = useState(new Set());
|
|
80
|
+
const filtered = useMemo(() => {
|
|
81
|
+
if (levelFilter.size === 0 && sourceFilter.size === 0)
|
|
82
|
+
return entries;
|
|
83
|
+
return entries.filter((e) => (levelFilter.size === 0 || levelFilter.has(e.level)) &&
|
|
84
|
+
(sourceFilter.size === 0 || sourceFilter.has(e.source)));
|
|
85
|
+
}, [entries, levelFilter, sourceFilter]);
|
|
86
|
+
// Fold consecutive identical entries into ×N rows.
|
|
87
|
+
const collapsed = useMemo(() => collapseEntries(filtered), [filtered]);
|
|
88
|
+
// Auto-scroll to newest whenever the visible set grows.
|
|
89
|
+
useEffect(() => {
|
|
90
|
+
if (listRef.current)
|
|
91
|
+
listRef.current.scrollTop = listRef.current.scrollHeight;
|
|
92
|
+
}, [collapsed.length, entries.length]);
|
|
93
|
+
const copyText = (text) => {
|
|
94
|
+
try {
|
|
95
|
+
void navigator.clipboard?.writeText(text);
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
/* clipboard may be unavailable (insecure ctx) — fail silently */
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const handleCopyRow = (ce) => {
|
|
102
|
+
copyText(entryToText(ce.entry, ce.count));
|
|
103
|
+
setCopiedKey(ce.key);
|
|
104
|
+
rowCopyResetTaskRef.current?.schedule();
|
|
105
|
+
};
|
|
106
|
+
const handleCopyAll = () => {
|
|
107
|
+
const text = collapsed.map((ce) => entryToText(ce.entry, ce.count)).join('\n');
|
|
108
|
+
copyText(text);
|
|
109
|
+
setAllCopied(true);
|
|
110
|
+
allCopyResetTaskRef.current?.schedule();
|
|
111
|
+
};
|
|
112
|
+
const toggleLevel = (l) => setLevelFilter((s) => {
|
|
113
|
+
const n = new Set(s);
|
|
114
|
+
n.has(l) ? n.delete(l) : n.add(l);
|
|
115
|
+
return n;
|
|
116
|
+
});
|
|
117
|
+
const toggleSource = (src) => setSourceFilter((s) => {
|
|
118
|
+
const n = new Set(s);
|
|
119
|
+
n.has(src) ? n.delete(src) : n.add(src);
|
|
120
|
+
return n;
|
|
121
|
+
});
|
|
122
|
+
return (_jsxs("div", { className: "info-panel", children: [_jsxs("div", { className: "ip-toolbar", children: [_jsxs("div", { className: "ip-filters", children: [LEVELS.map((l) => {
|
|
123
|
+
const Icon = ICONS[l];
|
|
124
|
+
return (_jsx("button", { type: "button", className: `ip-filter ip-filter--${l}${levelFilter.has(l) ? ' on' : ''}`, title: t('infoPanel.filterLevel', { level: l }), onClick: () => toggleLevel(l), children: _jsx(Icon, { size: 12 }) }, l));
|
|
125
|
+
}), _jsx("span", { className: "ip-filter-sep" }), SOURCES.map((src) => (_jsx("button", { type: "button", className: `ip-filter ip-filter--src ip-source--${src}${sourceFilter.has(src) ? ' on' : ''}`, title: t('infoPanel.filterSource', { source: src }), onClick: () => toggleSource(src), children: src }, src)))] }), _jsx("span", { className: "ip-spacer" }), _jsxs("button", { type: "button", className: "ip-tb-btn", title: t('infoPanel.copyAll'), onClick: handleCopyAll, disabled: collapsed.length === 0, children: [allCopied ? _jsx(Check, { size: 13 }) : _jsx(Copy, { size: 13 }), " ", t('infoPanel.copyAll')] }), _jsxs("button", { type: "button", className: "ip-tb-btn", title: t('infoPanel.clear'), onClick: () => clear(), disabled: entries.length === 0, children: [_jsx(Trash2, { size: 13 }), " ", t('infoPanel.clear')] })] }), _jsxs("div", { className: "ip-list thin-scrollbar", ref: listRef, role: "log", "aria-live": "polite", "aria-label": "forgeax INFO log", children: [collapsed.length === 0 && (_jsx("div", { className: "ip-empty", children: entries.length === 0
|
|
126
|
+
? t('infoPanel.emptyNoMessages')
|
|
127
|
+
: t('infoPanel.emptyNoMatch') })), collapsed.map((ce, i) => (_jsx(CopyRow, { ce: ce, latest: i === collapsed.length - 1, onCopy: handleCopyRow, copied: copiedKey === ce.key }, ce.key)))] })] }));
|
|
128
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* StatusChip — Figma: badge px-12, gap-4, Fira Mono 12px.
|
|
2
|
+
Each chip is a label + value pair; no dots, no icons, no color tones. */
|
|
3
|
+
|
|
4
|
+
.sb-chip {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: 4px;
|
|
8
|
+
height: 100%;
|
|
9
|
+
padding: 0 12px;
|
|
10
|
+
background: transparent;
|
|
11
|
+
border: none;
|
|
12
|
+
font-family: var(--font-mono);
|
|
13
|
+
font-size: 12px;
|
|
14
|
+
line-height: 1;
|
|
15
|
+
color: var(--color-text-secondary);
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
letter-spacing: 0;
|
|
18
|
+
transition: background 120ms ease;
|
|
19
|
+
cursor: default;
|
|
20
|
+
}
|
|
21
|
+
/* Any clickable chip — an explicit link, a command button, or any <button>
|
|
22
|
+
rendered as a chip (StripPopover trigger, is-button status items) — gets the
|
|
23
|
+
pointer affordance + hover. Non-interactive text chips (<span>) stay default. */
|
|
24
|
+
.sb-chip.is-link,
|
|
25
|
+
.sb-chip.is-button,
|
|
26
|
+
button.sb-chip {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
.sb-chip.is-link:hover,
|
|
30
|
+
.sb-chip.is-button:hover,
|
|
31
|
+
button.sb-chip:hover {
|
|
32
|
+
background: var(--color-interaction-hover);
|
|
33
|
+
}
|
|
34
|
+
.sb-chip.is-link:focus-visible,
|
|
35
|
+
.sb-chip.is-button:focus-visible,
|
|
36
|
+
button.sb-chip:focus-visible {
|
|
37
|
+
outline: 1px solid var(--color-border-strong);
|
|
38
|
+
outline-offset: -1px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Version badge — <a> reset */
|
|
42
|
+
a.sb-chip { text-decoration: none; }
|
|
43
|
+
|
|
44
|
+
.sb-chip-label {
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
color: var(--color-text-secondary);
|
|
47
|
+
}
|
|
48
|
+
.sb-chip-value {
|
|
49
|
+
font-size: 12px;
|
|
50
|
+
font-variant-numeric: tabular-nums;
|
|
51
|
+
color: var(--color-text-tertiary);
|
|
52
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StatusChip — the single visual primitive for chips inside GlobalStatusBar.
|
|
3
|
+
*
|
|
4
|
+
* Every feed that wants to appear on the status bar should render exactly one
|
|
5
|
+
* of these so the bar reads as a coherent strip (uniform height, font, dot
|
|
6
|
+
* size, value alignment). The only thing that varies is the `tone` color —
|
|
7
|
+
* which gets applied to the leading dot + icon + label uppercase mono; the
|
|
8
|
+
* `value` stays neutral (`--text`) so numbers across kinds are scannable at
|
|
9
|
+
* a glance.
|
|
10
|
+
*
|
|
11
|
+
* Why a dedicated component instead of inline JSX in PulseFeeds: when chips
|
|
12
|
+
* are spread across multiple feed files (and eventually multiple plugins),
|
|
13
|
+
* having a single component means visual drift is bounded — any change here
|
|
14
|
+
* propagates everywhere without per-feed CSS churn.
|
|
15
|
+
*
|
|
16
|
+
* ● BUS 2,076 ● MB 1 ● PROV 2/4 ● SKILL 1 ● TOOL 1 ● AGENT 1
|
|
17
|
+
* ─┬──┬─ ─┬───
|
|
18
|
+
* │ │ └ value (neutral, mono, tabular)
|
|
19
|
+
* │ └ label (toned, mono, uppercase)
|
|
20
|
+
* └ dot (toned, optional flash keyframe)
|
|
21
|
+
*/
|
|
22
|
+
import type { LucideIcon } from 'lucide-react';
|
|
23
|
+
import type { ReactElement } from 'react';
|
|
24
|
+
import './StatusChip.css';
|
|
25
|
+
export type ChipTone = 'lime' | 'teal' | 'amber' | 'gold' | 'orange' | 'violet' | 'red' | 'mute';
|
|
26
|
+
export type ChipState = 'ok' | 'down' | 'loading' | 'empty' | 'warn';
|
|
27
|
+
export interface StatusChipProps {
|
|
28
|
+
tone: ChipTone;
|
|
29
|
+
state?: ChipState;
|
|
30
|
+
icon?: LucideIcon | null;
|
|
31
|
+
label: string;
|
|
32
|
+
value: string;
|
|
33
|
+
title?: string;
|
|
34
|
+
onClick?: () => void;
|
|
35
|
+
/** Bus pulse uses this — bumps a key to retrigger the dot's flash keyframe. */
|
|
36
|
+
flashKey?: number;
|
|
37
|
+
/** Optional aria override; defaults to `${label} ${value}`. */
|
|
38
|
+
ariaLabel?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare function StatusChip({ tone, state, icon: Icon, label, value, title, onClick, flashKey, ariaLabel, }: StatusChipProps): ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import './StatusChip.css';
|
|
3
|
+
export function StatusChip({ tone, state = 'ok', icon: Icon, label, value, title, onClick, flashKey = 0, ariaLabel, }) {
|
|
4
|
+
const className = [
|
|
5
|
+
'sb-chip',
|
|
6
|
+
onClick ? 'is-link' : '',
|
|
7
|
+
].filter(Boolean).join(' ');
|
|
8
|
+
const inner = (_jsxs(_Fragment, { children: [_jsx("span", { className: "sb-chip-label", children: label }), _jsx("span", { className: "sb-chip-value", children: value })] }));
|
|
9
|
+
if (onClick) {
|
|
10
|
+
return (_jsx("button", { type: "button", className: className, title: title, onClick: onClick, "aria-label": ariaLabel ?? `${label} ${value}`, children: inner }));
|
|
11
|
+
}
|
|
12
|
+
return (_jsx("div", { className: className, title: title, role: "status", "aria-label": ariaLabel ?? `${label} ${value}`, children: inner }));
|
|
13
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* StripHostView — the footer host view for `kind:'strip'` locations
|
|
4
|
+
* (ADR-0030 §2.3). Renders StatusItemContributions from the SINGLE derived
|
|
5
|
+
* panels snapshot (host.panels.stripItems) instead of the retired module-level
|
|
6
|
+
* statusBarStore, so every footer chip flows through the one contribution
|
|
7
|
+
* channel with owner-tagged, reversible lifecycle.
|
|
8
|
+
*
|
|
9
|
+
* ┌────────────────────────────────────────────────────────────────────┐
|
|
10
|
+
* │ CB · Info · … │ Ready · MB · … · Diagnostics · version │
|
|
11
|
+
* └────────────────────────────────────────────────────────────────────┘
|
|
12
|
+
* bottom dock tabs center · right · left (visual order)
|
|
13
|
+
*
|
|
14
|
+
* Each slot has a VISIBLE_PER_SLOT capacity. On overflow the trailing visible
|
|
15
|
+
* position rotates through the low-priority surplus every CAROUSEL_INTERVAL_MS
|
|
16
|
+
* (a deterministic rotating window — no re-mount, no state loss), preserving
|
|
17
|
+
* the legacy GlobalStatusBar behavior.
|
|
18
|
+
*
|
|
19
|
+
* Item bodies (ADR-0030 §2.2):
|
|
20
|
+
* - text → static label + tooltip
|
|
21
|
+
* - button → command-driven button (host.commands.execute)
|
|
22
|
+
* - custom → in-process live chip (owns its own subscriptions)
|
|
23
|
+
*/
|
|
24
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
25
|
+
import { createIntervalTaskLifecycle } from '@forgeax/app-shell/react';
|
|
26
|
+
import { icons as LucideIcons } from 'lucide-react';
|
|
27
|
+
import { usePanelRenderers } from '../DockShell/panelRenderers';
|
|
28
|
+
import { useHost } from '../../core/app-shell';
|
|
29
|
+
import './GlobalStatusBar.css';
|
|
30
|
+
/** Mirrors GlobalStatusBar.css and makes the real consumer's visual order
|
|
31
|
+
* inspectable in DOM evidence without treating a slot name as geometry. */
|
|
32
|
+
const VISUAL_ORDER = { left: 4, center: 2, right: 3 };
|
|
33
|
+
const SLOT_OF = {
|
|
34
|
+
'statusbar.left': 'left',
|
|
35
|
+
'statusbar.center': 'center',
|
|
36
|
+
'statusbar.right': 'right',
|
|
37
|
+
};
|
|
38
|
+
const VISIBLE_PER_SLOT = { left: 4, center: 2, right: 6 };
|
|
39
|
+
const CAROUSEL_INTERVAL_MS = 4000;
|
|
40
|
+
export function StripHostView() {
|
|
41
|
+
const renderers = usePanelRenderers();
|
|
42
|
+
const [tick, setTick] = useState(0);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
const carousel = createIntervalTaskLifecycle({
|
|
45
|
+
intervalMs: CAROUSEL_INTERVAL_MS,
|
|
46
|
+
task: () => setTick((x) => x + 1),
|
|
47
|
+
});
|
|
48
|
+
carousel.start();
|
|
49
|
+
return () => carousel.dispose();
|
|
50
|
+
}, []);
|
|
51
|
+
const bySlot = useMemo(() => {
|
|
52
|
+
const out = { left: [], center: [], right: [] };
|
|
53
|
+
const items = Object.values(renderers.stripItems ?? {});
|
|
54
|
+
for (const it of items) {
|
|
55
|
+
if (it.when && !it.when())
|
|
56
|
+
continue;
|
|
57
|
+
out[SLOT_OF[it.location]].push(it);
|
|
58
|
+
}
|
|
59
|
+
for (const slot of Object.keys(out)) {
|
|
60
|
+
out[slot].sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
|
|
61
|
+
}
|
|
62
|
+
return out;
|
|
63
|
+
}, [renderers.stripItems]);
|
|
64
|
+
return (_jsxs("div", { className: "global-status-bar", role: "status", "aria-live": "polite", "aria-label": "forgeax status bar", "data-fx-slot": "StatusBar", "data-tour-id": "footer", children: [_jsx("div", { className: "sb-slot sb-slot-dock", "data-fx-dock-bottom-host": true, "aria-hidden": "true" }), _jsx(Slot, { slot: "left", items: bySlot.left, tick: tick }), _jsx(Slot, { slot: "center", items: bySlot.center, tick: tick }), _jsx(Slot, { slot: "right", items: bySlot.right, tick: tick })] }));
|
|
65
|
+
}
|
|
66
|
+
function Slot({ slot, items, tick }) {
|
|
67
|
+
const cap = VISIBLE_PER_SLOT[slot];
|
|
68
|
+
const isOverflow = items.length > cap;
|
|
69
|
+
const visible = useMemo(() => {
|
|
70
|
+
if (!isOverflow)
|
|
71
|
+
return items;
|
|
72
|
+
const anchored = items.slice(0, cap - 1);
|
|
73
|
+
const rotatingPool = items.slice(cap - 1);
|
|
74
|
+
const rotated = rotatingPool[tick % rotatingPool.length];
|
|
75
|
+
return [...anchored, rotated];
|
|
76
|
+
}, [items, isOverflow, cap, tick]);
|
|
77
|
+
const hiddenCount = isOverflow ? items.length - cap : 0;
|
|
78
|
+
return (_jsxs("div", { className: `sb-slot sb-slot-${slot}`, "data-slot-count": items.length, "data-slot-visible": visible.length, "data-slot-order": VISUAL_ORDER[slot], children: [visible.map((it) => (_jsx("div", { className: "sb-item", "data-item-id": it.id, children: _jsx(StatusItemView, { item: it }) }, it.id))), hiddenCount > 0 && (_jsxs("span", { className: "sb-overflow", title: `${hiddenCount} more chip(s) cycling every ${CAROUSEL_INTERVAL_MS / 1000}s · low priority items rotate through the last visible slot`, "aria-label": `${hiddenCount} hidden status items, rotating`, children: ["+", hiddenCount, "\u21BB"] }))] }));
|
|
79
|
+
}
|
|
80
|
+
function StatusItemView({ item }) {
|
|
81
|
+
const host = useHost();
|
|
82
|
+
const body = item.item;
|
|
83
|
+
if (body.type === 'custom')
|
|
84
|
+
return body.render();
|
|
85
|
+
if (body.type === 'text') {
|
|
86
|
+
return (_jsx("span", { className: "sb-chip", title: body.tooltip, children: body.text }));
|
|
87
|
+
}
|
|
88
|
+
// button
|
|
89
|
+
const Icon = body.icon ? LucideIcons[body.icon] : undefined;
|
|
90
|
+
return (_jsxs("button", { type: "button", className: "sb-chip is-button", title: body.tooltip, onClick: () => { void host.commands.execute(body.command, body.args); }, children: [Icon ? _jsx(Icon, { size: 12, className: "sb-chip-icon" }) : null, body.label ? _jsx("span", { className: "sb-chip-label", children: body.label }) : null] }));
|
|
91
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* StripPopover — status-bar chip + upward-anchored card (ADR-0030 §2.2 custom
|
|
2
|
+
* chip shape). This file owns ONLY the shell (button active state + card frame
|
|
3
|
+
* + entry animation); the card's inner content styles (kv rows, version rows,
|
|
4
|
+
* meters) are owned by the caller so this stays business-agnostic. */
|
|
5
|
+
|
|
6
|
+
.fx-strip-pop-btn.sb-chip[data-state='open'] {
|
|
7
|
+
color: var(--color-text-primary);
|
|
8
|
+
background: var(--color-interaction-hover);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.fx-strip-pop {
|
|
12
|
+
z-index: var(--z-popover, 60);
|
|
13
|
+
min-width: 240px;
|
|
14
|
+
max-width: 308px;
|
|
15
|
+
padding: 8px;
|
|
16
|
+
background: var(--color-background-floating);
|
|
17
|
+
border: 1px solid var(--color-border-default);
|
|
18
|
+
border-radius: 10px;
|
|
19
|
+
box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
|
|
20
|
+
font-family: var(--font-mono);
|
|
21
|
+
font-size: 11.5px;
|
|
22
|
+
color: var(--color-text-secondary);
|
|
23
|
+
animation: fx-strip-pop-in 140ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.fx-strip-pop[data-state='closed'] {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes fx-strip-pop-in {
|
|
31
|
+
from {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
transform: translateY(6px);
|
|
34
|
+
}
|
|
35
|
+
to {
|
|
36
|
+
opacity: 1;
|
|
37
|
+
transform: translateY(0);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.fx-strip-pop-h {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 8px;
|
|
45
|
+
font-size: 11px;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
color: var(--color-text-primary);
|
|
48
|
+
padding: 2px 4px 8px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.fx-strip-pop-h svg {
|
|
52
|
+
width: 13px;
|
|
53
|
+
height: 13px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.fx-strip-pop-h-act {
|
|
57
|
+
margin-left: auto;
|
|
58
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import './StripPopover.css';
|
|
3
|
+
export interface StripPopoverProps {
|
|
4
|
+
/** lucide icon name for the chip button. */
|
|
5
|
+
readonly icon?: string;
|
|
6
|
+
/** chip button label (text or node, e.g. version + draft badge). */
|
|
7
|
+
readonly label?: ReactNode;
|
|
8
|
+
/** popover header content (icon + title). */
|
|
9
|
+
readonly title: ReactNode;
|
|
10
|
+
/** native title/tooltip on the chip button. */
|
|
11
|
+
readonly tooltip?: string;
|
|
12
|
+
/** right-aligned header slot (e.g. a primary action button). */
|
|
13
|
+
readonly headerAction?: ReactNode;
|
|
14
|
+
readonly children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function StripPopover({ icon, label, title, tooltip, headerAction, children, }: StripPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Business-agnostic status-bar popover shell.
|
|
4
|
+
*
|
|
5
|
+
* The shell owns only the trigger, Radix portal/content, focus handling, and
|
|
6
|
+
* the header slots. Callers provide the label, title, and body; no product or
|
|
7
|
+
* Host dependency belongs here.
|
|
8
|
+
*/
|
|
9
|
+
import * as Popover from '@radix-ui/react-popover';
|
|
10
|
+
import { icons as LucideIcons } from 'lucide-react';
|
|
11
|
+
import './StripPopover.css';
|
|
12
|
+
export function StripPopover({ icon, label, title, tooltip, headerAction, children, }) {
|
|
13
|
+
const Icon = icon ? LucideIcons[icon] : undefined;
|
|
14
|
+
return (_jsxs(Popover.Root, { children: [_jsx(Popover.Trigger, { asChild: true, children: _jsxs("button", { type: "button", className: "sb-chip is-button fx-strip-pop-btn", title: tooltip, "aria-label": typeof label === 'string' ? label : tooltip, children: [Icon ? _jsx(Icon, { size: 12, className: "sb-chip-icon" }) : null, label != null ? _jsx("span", { className: "sb-chip-label", children: label }) : null] }) }), _jsx(Popover.Portal, { children: _jsxs(Popover.Content, { className: "fx-strip-pop", side: "top", align: "center", sideOffset: 6, collisionPadding: 8, onOpenAutoFocus: (event) => event.preventDefault(), children: [_jsxs("div", { className: "fx-strip-pop-h", children: [title, headerAction ? _jsx("span", { className: "fx-strip-pop-h-act", children: headerAction }) : null] }), children] }) })] }));
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bus-kind pulse chips — the live MB / SKILL / TOOL / AGENT extension-registry
|
|
3
|
+
* counters (originally PreviewMode's pt-right toolbar, moved to the global
|
|
4
|
+
* status bar 2026-05-17). The former RES (system resource) chip was folded into
|
|
5
|
+
* the diagnostics popover, since server mem/uptime/WS is environment-diagnostic
|
|
6
|
+
* data, not a bus-kind count.
|
|
7
|
+
*
|
|
8
|
+
* Each `*Feed` polls its source, then renders a `<StatusChip>`. The visual
|
|
9
|
+
* primitive is shared so the strip reads as a coherent unit; only the `tone`
|
|
10
|
+
* color changes between kinds (teal/gold/orange/violet).
|
|
11
|
+
*/
|
|
12
|
+
import type { StatusItemContribution } from '../../../core/panels';
|
|
13
|
+
/** ADR-0030 §2.2 — the live MB/SKILL/TOOL/AGENT pulse chips as `custom`
|
|
14
|
+
* status-item contributions. Each chip owns its own polling (the in-process
|
|
15
|
+
* escape hatch); chrome-statusbar folds these into the footer's strip channel. */
|
|
16
|
+
export declare const pulseStatusItems: readonly StatusItemContribution[];
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Bus-kind pulse chips — the live MB / SKILL / TOOL / AGENT extension-registry
|
|
4
|
+
* counters (originally PreviewMode's pt-right toolbar, moved to the global
|
|
5
|
+
* status bar 2026-05-17). The former RES (system resource) chip was folded into
|
|
6
|
+
* the diagnostics popover, since server mem/uptime/WS is environment-diagnostic
|
|
7
|
+
* data, not a bus-kind count.
|
|
8
|
+
*
|
|
9
|
+
* Each `*Feed` polls its source, then renders a `<StatusChip>`. The visual
|
|
10
|
+
* primitive is shared so the strip reads as a coherent unit; only the `tone`
|
|
11
|
+
* color changes between kinds (teal/gold/orange/violet).
|
|
12
|
+
*/
|
|
13
|
+
import { Brain, Sparkles, Wrench, Bot } from 'lucide-react';
|
|
14
|
+
import { useTranslation } from '../../../i18n';
|
|
15
|
+
import { useShellStore } from '../../../store';
|
|
16
|
+
import { emitDeepLink } from '../../../lib/deep-link-bus';
|
|
17
|
+
import { useSharedExtensionCounts } from '../../../lib/shell-live-data';
|
|
18
|
+
import { StatusChip } from '../StatusChip';
|
|
19
|
+
/** ADR-0030 §2.2 — the live MB/SKILL/TOOL/AGENT pulse chips as `custom`
|
|
20
|
+
* status-item contributions. Each chip owns its own polling (the in-process
|
|
21
|
+
* escape hatch); chrome-statusbar folds these into the footer's strip channel. */
|
|
22
|
+
export const pulseStatusItems = [
|
|
23
|
+
{ kind: 'status-item', id: 'bus.mb', location: 'statusbar.right', priority: 90, item: { type: 'custom', render: () => _jsx(ModelBindingPulseFeed, {}) } },
|
|
24
|
+
{ kind: 'status-item', id: 'bus.skill', location: 'statusbar.right', priority: 50, item: { type: 'custom', render: () => _jsx(SkillPulseFeed, {}) } },
|
|
25
|
+
{ kind: 'status-item', id: 'bus.tool', location: 'statusbar.right', priority: 45, item: { type: 'custom', render: () => _jsx(ToolPulseFeed, {}) } },
|
|
26
|
+
{ kind: 'status-item', id: 'bus.agent', location: 'statusbar.right', priority: 40, item: { type: 'custom', render: () => _jsx(AgentPulseFeed, {}) } },
|
|
27
|
+
];
|
|
28
|
+
function usePulseKind(kind) {
|
|
29
|
+
const snapshot = useSharedExtensionCounts();
|
|
30
|
+
if (snapshot.state === 'loading')
|
|
31
|
+
return { state: 'loading', count: 0, ids: [] };
|
|
32
|
+
if (snapshot.state === 'down')
|
|
33
|
+
return { state: 'down', count: 0, ids: [] };
|
|
34
|
+
const row = snapshot.value[kind];
|
|
35
|
+
return { state: row.count > 0 ? 'ok' : 'empty', count: row.count, ids: row.ids };
|
|
36
|
+
}
|
|
37
|
+
// ─── MB · model-binding kind count ────────────────────────────────────────
|
|
38
|
+
function ModelBindingPulseFeed() {
|
|
39
|
+
const { t } = useTranslation();
|
|
40
|
+
const openOverlay = useShellStore((s) => s.openOverlay);
|
|
41
|
+
const { state, count, ids } = usePulseKind('model-binding');
|
|
42
|
+
const value = state === 'loading' ? '—' : state === 'down' ? '!' : count.toString();
|
|
43
|
+
const title = state === 'ok' || state === 'empty'
|
|
44
|
+
? count > 0
|
|
45
|
+
? t('pulse.mb.title.some', { count: String(count) }) + '\n' + ids.map((id) => `· ${id}`).join('\n')
|
|
46
|
+
: t('pulse.mb.title.none')
|
|
47
|
+
: state === 'down' ? t('pulse.mb.title.down') : t('pulse.mb.title.loading');
|
|
48
|
+
return (_jsx(StatusChip, { tone: "teal", state: state, icon: Brain, label: "MB", value: value, title: title, onClick: () => { openOverlay('settings', 'plugins'); emitDeepLink('bus:filter-kind', 'model-binding'); } }));
|
|
49
|
+
}
|
|
50
|
+
// ─── SKILL ────────────────────────────────────────────────────────────────
|
|
51
|
+
function SkillPulseFeed() {
|
|
52
|
+
const { t } = useTranslation();
|
|
53
|
+
const openOverlay = useShellStore((s) => s.openOverlay);
|
|
54
|
+
const { state, count, ids } = usePulseKind('skill');
|
|
55
|
+
const value = state === 'loading' ? '—' : state === 'down' ? '!' : count.toString();
|
|
56
|
+
const title = state === 'ok' || state === 'empty'
|
|
57
|
+
? count > 0
|
|
58
|
+
? t('pulse.skill.title.some', { count: String(count) }) + '\n' + ids.map((id) => `· ${id}`).join('\n')
|
|
59
|
+
: t('pulse.skill.title.none')
|
|
60
|
+
: state === 'down' ? t('pulse.skill.title.down') : t('pulse.skill.title.loading');
|
|
61
|
+
return (_jsx(StatusChip, { tone: "gold", state: state, icon: Sparkles, label: "SKILL", value: value, title: title, onClick: () => { openOverlay('settings', 'plugins'); emitDeepLink('bus:filter-kind', 'skill'); } }));
|
|
62
|
+
}
|
|
63
|
+
// ─── TOOL ─────────────────────────────────────────────────────────────────
|
|
64
|
+
function ToolPulseFeed() {
|
|
65
|
+
const { t } = useTranslation();
|
|
66
|
+
const openOverlay = useShellStore((s) => s.openOverlay);
|
|
67
|
+
const { state, count, ids } = usePulseKind('tool');
|
|
68
|
+
const value = state === 'loading' ? '—' : state === 'down' ? '!' : count.toString();
|
|
69
|
+
const title = state === 'ok' || state === 'empty'
|
|
70
|
+
? count > 0
|
|
71
|
+
? t('pulse.tool.title.some', { count: String(count) }) + '\n' + ids.map((id) => `· ${id}`).join('\n')
|
|
72
|
+
: t('pulse.tool.title.none')
|
|
73
|
+
: state === 'down' ? t('pulse.tool.title.down') : t('pulse.tool.title.loading');
|
|
74
|
+
return (_jsx(StatusChip, { tone: "orange", state: state, icon: Wrench, label: "TOOL", value: value, title: title, onClick: () => { openOverlay('settings', 'plugins'); emitDeepLink('bus:filter-kind', 'tool'); } }));
|
|
75
|
+
}
|
|
76
|
+
// ─── AGENT ────────────────────────────────────────────────────────────────
|
|
77
|
+
function AgentPulseFeed() {
|
|
78
|
+
const { t } = useTranslation();
|
|
79
|
+
const openOverlay = useShellStore((s) => s.openOverlay);
|
|
80
|
+
const { state, count, ids } = usePulseKind('agent');
|
|
81
|
+
const value = state === 'loading' ? '—' : state === 'down' ? '!' : count.toString();
|
|
82
|
+
const title = state === 'ok' || state === 'empty'
|
|
83
|
+
? count > 0
|
|
84
|
+
? t('pulse.agent.title.some', { count: String(count) }) + '\n' + ids.map((id) => `· ${id}`).join('\n')
|
|
85
|
+
: t('pulse.agent.title.none')
|
|
86
|
+
: state === 'down' ? t('pulse.agent.title.down') : t('pulse.agent.title.loading');
|
|
87
|
+
return (_jsx(StatusChip, { tone: "violet", state: state, icon: Bot, label: "AGENT", value: value, title: title, onClick: () => { openOverlay('settings', 'plugins'); emitDeepLink('bus:filter-kind', 'agent'); } }));
|
|
88
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* CheckpointsDrawer — the "检查点" bottom-drawer panel (demo `data-rt=
|
|
4
|
+
* "checkpoints"`). A timeline of the active session's rewind checkpoints, newest
|
|
5
|
+
* at the top, with the current HEAD highlighted.
|
|
6
|
+
*
|
|
7
|
+
* REAL data: session-level rewind anchors via checkpoint-api
|
|
8
|
+
* (GET /api/sessions/:sid/checkpoints). Each user message snapshots the game dir
|
|
9
|
+
* (CheckpointManager); `hasCode=false` means a pure-conversation turn. The list
|
|
10
|
+
* has no commit-message text (only msgId), so rows show a code/conversation
|
|
11
|
+
* label + short id + time. A `drawer` panel (ADR-0030 §2.3), contributed by
|
|
12
|
+
* chrome-drawer.tsx next to Info.
|
|
13
|
+
*/
|
|
14
|
+
import { useEffect, useState } from 'react';
|
|
15
|
+
import { createSettledPollingLifecycle } from '@forgeax/app-shell/react';
|
|
16
|
+
import { useShellStore } from '../../../store';
|
|
17
|
+
import { fetchCheckpoints } from '../../../lib/checkpoint-api';
|
|
18
|
+
import './footer.css';
|
|
19
|
+
/** epoch ms → "HH:MM:SS". */
|
|
20
|
+
function fmtTime(ms) {
|
|
21
|
+
const d = new Date(ms);
|
|
22
|
+
return d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false });
|
|
23
|
+
}
|
|
24
|
+
export function CheckpointsDrawer() {
|
|
25
|
+
const activeSid = useShellStore((s) => s.activeSid);
|
|
26
|
+
const [items, setItems] = useState([]);
|
|
27
|
+
const [pending, setPending] = useState(null);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (!activeSid) {
|
|
30
|
+
setItems([]);
|
|
31
|
+
setPending(null);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const poll = createSettledPollingLifecycle({
|
|
35
|
+
task: async (signal) => {
|
|
36
|
+
try {
|
|
37
|
+
const { checkpoints, pending: p } = await fetchCheckpoints(activeSid, signal);
|
|
38
|
+
setItems(checkpoints);
|
|
39
|
+
setPending(p);
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
if (signal.aborted)
|
|
43
|
+
throw new Error('checkpoint request timed out');
|
|
44
|
+
setItems([]);
|
|
45
|
+
setPending(null);
|
|
46
|
+
throw new Error('checkpoint request failed');
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
intervalMs: 5_000,
|
|
50
|
+
timeoutMs: 5_000,
|
|
51
|
+
});
|
|
52
|
+
poll.start();
|
|
53
|
+
return poll.dispose;
|
|
54
|
+
}, [activeSid]);
|
|
55
|
+
if (items.length === 0) {
|
|
56
|
+
return _jsx("div", { className: "fx-drawer-content", children: _jsx("div", { className: "fx-empty", children: activeSid ? '暂无检查点' : '未连接会话' }) });
|
|
57
|
+
}
|
|
58
|
+
// API order is chronological (oldest first); show newest at the top. The
|
|
59
|
+
// current HEAD is the pending rewind target if any, else the latest anchor.
|
|
60
|
+
const total = items.length;
|
|
61
|
+
const headMsgId = pending?.targetMsgId ?? items[total - 1]?.msgId;
|
|
62
|
+
return (_jsx("div", { className: "fx-drawer-content", children: items
|
|
63
|
+
.map((c, i) => ({ c, n: i + 1 }))
|
|
64
|
+
.reverse()
|
|
65
|
+
.map(({ c, n }) => {
|
|
66
|
+
const head = c.msgId === headMsgId;
|
|
67
|
+
return (_jsxs("div", { className: `fx-ck${head ? ' head' : ''}`, children: [_jsx("div", { className: "dot" }), _jsxs("div", { children: [_jsx("div", { className: "ck-msg", children: c.hasCode ? '代码 + 会话快照' : '会话快照' }), _jsxs("div", { className: "ck-meta", children: [`#${n}`, " \u00B7 ", c.msgId.slice(0, 8), " \u00B7 ", fmtTime(c.ts), head ? (_jsxs(_Fragment, { children: [' · ', _jsx("span", { className: "cur", children: "\u5F53\u524D HEAD" })] })) : null] })] })] }, c.msgId));
|
|
68
|
+
}) }));
|
|
69
|
+
}
|
|
70
|
+
export const checkpointsDrawerPanel = {
|
|
71
|
+
id: 'checkpoints',
|
|
72
|
+
title: 'Checkpoints',
|
|
73
|
+
titleKey: 'footerPanel.checkpoints',
|
|
74
|
+
icon: 'History',
|
|
75
|
+
order: 1,
|
|
76
|
+
render: () => _jsx(CheckpointsDrawer, {}),
|
|
77
|
+
};
|