@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/index.js';
|
|
23
|
+
import { useHealthStore, collapseEntries, entryToText, } from './healthStore.js';
|
|
24
|
+
|
|
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,13 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
|
|
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.js';
|
|
28
|
+
import { useHost } from '../../core/app-shell/index.js';
|
|
29
|
+
|
|
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,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
|
+
|
|
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,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/index.js';
|
|
15
|
+
import { useShellStore } from '../../../store.js';
|
|
16
|
+
import { emitDeepLink } from '../../../lib/deep-link-bus.js';
|
|
17
|
+
import { useSharedExtensionCounts } from '../../../lib/shell-live-data.js';
|
|
18
|
+
import { StatusChip } from '../StatusChip.js';
|
|
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.js';
|
|
17
|
+
import { fetchCheckpoints } from '../../../lib/checkpoint-api.js';
|
|
18
|
+
|
|
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
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* DiagnosticsPopover — the right-side footer entry (demo `data-sb-pop="diag"`).
|
|
4
|
+
* A status-bar chip that opens an upward card summarizing device / runtime /
|
|
5
|
+
* project environment info. Same demo layout; data swapped to real sources:
|
|
6
|
+
*
|
|
7
|
+
* - Device/memory/GPU: browser probes (navigator.platform / hardwareConcurrency;
|
|
8
|
+
* performance.memory JS heap for the meter; WebGPU adapter info for GPU).
|
|
9
|
+
* - Runtime: server RSS / uptime / WS from dashApi.health() (5s).
|
|
10
|
+
* - Project: engine / project / scene / assets from the editor-facts bus
|
|
11
|
+
* (useEditorFacts). The scene value has no public transport source and shows "—".
|
|
12
|
+
*
|
|
13
|
+
* Lives in interface, auto-registered by chrome-statusbar; sits far-right.
|
|
14
|
+
*/
|
|
15
|
+
import { useEffect, useState } from 'react';
|
|
16
|
+
import { Gauge, Circle } from 'lucide-react';
|
|
17
|
+
import { StripPopover } from '../StripPopover.js';
|
|
18
|
+
import { useSharedHealth } from '../../../lib/shell-live-data.js';
|
|
19
|
+
import { useEditorFacts } from '../../../lib/editor-facts-bus.js';
|
|
20
|
+
import { useTranslation } from '../../../i18n/index.js';
|
|
21
|
+
|
|
22
|
+
/** Compact uptime: "2h13m" / "13m" / "<1m". */
|
|
23
|
+
function fmtUptime(s) {
|
|
24
|
+
if (s < 60)
|
|
25
|
+
return '<1m';
|
|
26
|
+
const h = Math.floor(s / 3600);
|
|
27
|
+
const m = Math.floor((s % 3600) / 60);
|
|
28
|
+
return h > 0 ? `${h}h${m}m` : `${m}m`;
|
|
29
|
+
}
|
|
30
|
+
function deviceLabel(unknownDevice, coreUnit) {
|
|
31
|
+
const nav = navigator;
|
|
32
|
+
const cores = nav.hardwareConcurrency;
|
|
33
|
+
const plat = nav.platform || unknownDevice;
|
|
34
|
+
return cores ? `${plat} · ${cores} ${coreUnit}` : plat;
|
|
35
|
+
}
|
|
36
|
+
function readHeap() {
|
|
37
|
+
const m = performance.memory;
|
|
38
|
+
if (!m || !m.jsHeapSizeLimit)
|
|
39
|
+
return null;
|
|
40
|
+
return {
|
|
41
|
+
usedMB: Math.round(m.usedJSHeapSize / 1048576),
|
|
42
|
+
totalMB: Math.round(m.jsHeapSizeLimit / 1048576),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
async function probeGpu(unavailable) {
|
|
46
|
+
try {
|
|
47
|
+
const gpu = navigator.gpu;
|
|
48
|
+
if (!gpu?.requestAdapter)
|
|
49
|
+
return unavailable;
|
|
50
|
+
const adapter = await gpu.requestAdapter();
|
|
51
|
+
if (!adapter)
|
|
52
|
+
return unavailable;
|
|
53
|
+
const info = adapter.info ??
|
|
54
|
+
(typeof adapter.requestAdapterInfo === 'function' ? await adapter.requestAdapterInfo() : undefined);
|
|
55
|
+
if (!info)
|
|
56
|
+
return 'WebGPU';
|
|
57
|
+
const parts = [info.vendor, info.architecture].filter((x) => typeof x === 'string' && x.length > 0);
|
|
58
|
+
return parts.length ? parts.join(' · ') : 'WebGPU';
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
return unavailable;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export function DiagnosticsChip() {
|
|
65
|
+
const facts = useEditorFacts();
|
|
66
|
+
const sharedHealth = useSharedHealth();
|
|
67
|
+
const { t, i18n } = useTranslation();
|
|
68
|
+
const [gpu, setGpu] = useState(() => t('statusBar.diagnostics.checking'));
|
|
69
|
+
const [heap, setHeap] = useState(null);
|
|
70
|
+
const [resState, setResState] = useState('loading');
|
|
71
|
+
const [res, setRes] = useState(null);
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
let cancelled = false;
|
|
74
|
+
setGpu(t('statusBar.diagnostics.checking'));
|
|
75
|
+
void probeGpu(t('statusBar.diagnostics.webgpuUnavailable')).then((g) => {
|
|
76
|
+
if (!cancelled)
|
|
77
|
+
setGpu(g);
|
|
78
|
+
});
|
|
79
|
+
return () => {
|
|
80
|
+
cancelled = true;
|
|
81
|
+
};
|
|
82
|
+
}, [i18n.language, t]);
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
setHeap(readHeap());
|
|
85
|
+
if (sharedHealth.state === 'loading')
|
|
86
|
+
return;
|
|
87
|
+
if (sharedHealth.state === 'down') {
|
|
88
|
+
setResState('down');
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const h = sharedHealth.value;
|
|
92
|
+
const rss = typeof h.mem?.rss === 'number' ? h.mem.rss : 0;
|
|
93
|
+
setRes({ rssMB: Math.round(rss / 1048576), uptime: h.uptime ?? 0, ws: h.wsClients ?? 0 });
|
|
94
|
+
setResState('ok');
|
|
95
|
+
}, [sharedHealth]);
|
|
96
|
+
const memPct = heap && heap.totalMB ? Math.round((heap.usedMB / heap.totalMB) * 100) : 0;
|
|
97
|
+
const resText = (fmt) => resState === 'loading' ? '—' : resState === 'down' ? '!' : res ? fmt(res) : '—';
|
|
98
|
+
return (_jsxs(StripPopover, { icon: "Gauge", label: t('statusBar.diagnostics.title'), tooltip: t('statusBar.diagnostics.tooltip'), title: _jsxs(_Fragment, { children: [_jsx(Gauge, { size: 13 }), t('statusBar.diagnostics.title')] }), children: [_jsxs("div", { className: "fx-pop-sec", children: [_jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: t('statusBar.diagnostics.device') }), _jsx("b", { children: deviceLabel(t('statusBar.diagnostics.unknownDevice'), t('statusBar.diagnostics.cores')) })] }), _jsxs("div", { className: "fx-meter", children: [_jsxs("div", { className: "fx-meter-top", children: [_jsx("span", { children: t('statusBar.diagnostics.memory') }), _jsx("b", { children: heap ? `${heap.usedMB} / ${heap.totalMB} MB` : t('statusBar.diagnostics.unavailable') })] }), _jsx("div", { className: "fx-meter-bar", children: _jsx("i", { style: { width: `${memPct}%` } }) })] }), _jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: "GPU" }), _jsx("b", { children: gpu })] }), _jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: t('statusBar.diagnostics.engine') }), _jsxs("b", { className: facts ? 'ok' : undefined, children: [facts ? _jsx(Circle, { size: 12 }) : null, facts?.engine ?? '—'] })] })] }), _jsx("div", { className: "fx-pop-div" }), _jsxs("div", { className: "fx-pop-sec", children: [_jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: t('statusBar.diagnostics.processMemory') }), _jsx("b", { children: resText((r) => `${r.rssMB} MB`) })] }), _jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: t('statusBar.diagnostics.uptime') }), _jsx("b", { children: resText((r) => fmtUptime(r.uptime)) })] }), _jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: t('statusBar.diagnostics.wsConnections') }), _jsx("b", { children: resText((r) => String(r.ws)) })] })] }), _jsx("div", { className: "fx-pop-div" }), _jsxs("div", { className: "fx-pop-sec", children: [_jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: t('statusBar.diagnostics.project') }), _jsx("b", { children: facts?.project ?? '—' })] }), _jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: t('statusBar.diagnostics.scene') }), _jsx("b", { children: facts?.scene ?? '—' })] }), _jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: t('statusBar.diagnostics.assets') }), _jsx("b", { children: facts ? facts.assets : '—' })] })] })] }));
|
|
99
|
+
}
|
|
100
|
+
// Pulse chips and diagnostics share statusbar.right. Its lower priority keeps
|
|
101
|
+
// diagnostics after MB / SKILL / TOOL / AGENT and immediately before Version.
|
|
102
|
+
export const diagnosticsStatusItem = {
|
|
103
|
+
kind: 'status-item',
|
|
104
|
+
id: 'diagnostics',
|
|
105
|
+
location: 'statusbar.right',
|
|
106
|
+
priority: 5,
|
|
107
|
+
item: { type: 'custom', render: () => _jsx(DiagnosticsChip, {}) },
|
|
108
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useGatewayRuns } from '../../../lib/editor-facts-bus.js';
|
|
3
|
+
|
|
4
|
+
/** epoch ms → "HH:MM:SS"; empty ts renders as a dash. */
|
|
5
|
+
function fmtTime(ms) {
|
|
6
|
+
if (!ms)
|
|
7
|
+
return '—';
|
|
8
|
+
const d = new Date(ms);
|
|
9
|
+
return d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false });
|
|
10
|
+
}
|
|
11
|
+
export function EventsDrawer() {
|
|
12
|
+
const runs = useGatewayRuns();
|
|
13
|
+
if (runs.length === 0) {
|
|
14
|
+
return (_jsx("div", { className: "fx-drawer-content", children: _jsx("div", { className: "fx-empty", children: "\u6682\u65E0\u4E8B\u4EF6 \u00B7 \u5F15\u64CE\u672A\u8FD0\u884C\u6216\u65E0 gateway \u8C03\u7528" }) }));
|
|
15
|
+
}
|
|
16
|
+
return (_jsx("div", { className: "fx-drawer-content", children: runs.map((r) => (_jsxs("div", { className: "fx-ev", children: [_jsx("span", { className: "t", children: fmtTime(r.ts) }), _jsx("span", { className: "ev", children: r.operationId }), _jsx("span", { className: "msg", children: r.error ? `${r.status} · ${r.error}` : r.status })] }, r.runId))) }));
|
|
17
|
+
}
|
|
18
|
+
export const eventsDrawerPanel = {
|
|
19
|
+
id: 'events',
|
|
20
|
+
title: 'Events',
|
|
21
|
+
titleKey: 'footerPanel.events',
|
|
22
|
+
icon: 'Activity',
|
|
23
|
+
order: 2,
|
|
24
|
+
render: () => _jsx(EventsDrawer, {}),
|
|
25
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* ForgeaX build projection for the footer.
|
|
4
|
+
*
|
|
5
|
+
* This is application build metadata from `/api/version`, not the current
|
|
6
|
+
* game's Git version. Game version control is contributed by edit-runtime.
|
|
7
|
+
*/
|
|
8
|
+
import { useEffect, useState } from 'react';
|
|
9
|
+
import { createIntervalTaskLifecycle } from '@forgeax/app-shell/react';
|
|
10
|
+
import { Layers } from 'lucide-react';
|
|
11
|
+
import { StripPopover } from '../StripPopover.js';
|
|
12
|
+
|
|
13
|
+
const FALLBACK = { version: 'v0.?.?.?', sha: '?', date: '?', totalCommits: 0, branch: '?' };
|
|
14
|
+
export function ForgeaxBuildChip() {
|
|
15
|
+
const [info, setInfo] = useState(FALLBACK);
|
|
16
|
+
const [tags, setTags] = useState([]);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
let cancelled = false;
|
|
19
|
+
const refresh = () => {
|
|
20
|
+
fetch('/api/version')
|
|
21
|
+
.then((response) => (response.ok ? response.json() : null))
|
|
22
|
+
.then((data) => {
|
|
23
|
+
if (!cancelled && data)
|
|
24
|
+
setInfo(data);
|
|
25
|
+
})
|
|
26
|
+
.catch(() => { });
|
|
27
|
+
fetch('/api/version/tags')
|
|
28
|
+
.then((response) => (response.ok ? response.json() : null))
|
|
29
|
+
.then((data) => {
|
|
30
|
+
if (!cancelled && data)
|
|
31
|
+
setTags(data.tags ?? []);
|
|
32
|
+
})
|
|
33
|
+
.catch(() => { });
|
|
34
|
+
};
|
|
35
|
+
refresh();
|
|
36
|
+
const onVisibility = () => {
|
|
37
|
+
if (document.visibilityState === 'visible')
|
|
38
|
+
refresh();
|
|
39
|
+
};
|
|
40
|
+
document.addEventListener('visibilitychange', onVisibility);
|
|
41
|
+
window.addEventListener('focus', refresh);
|
|
42
|
+
const poll = createIntervalTaskLifecycle({
|
|
43
|
+
task: refresh,
|
|
44
|
+
intervalMs: 60_000,
|
|
45
|
+
});
|
|
46
|
+
poll.start();
|
|
47
|
+
return () => {
|
|
48
|
+
cancelled = true;
|
|
49
|
+
document.removeEventListener('visibilitychange', onVisibility);
|
|
50
|
+
window.removeEventListener('focus', refresh);
|
|
51
|
+
poll.dispose();
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
54
|
+
return (_jsxs(StripPopover, { icon: "Layers", label: info.version, tooltip: "ForgeaX build version", title: _jsxs(_Fragment, { children: [_jsx(Layers, { size: 13 }), "ForgeaX build"] }), children: [_jsxs("div", { className: "fx-pop-sec", children: [_jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: "Build version" }), _jsx("b", { children: info.version })] }), _jsxs("div", { className: "fx-kv", children: [_jsx("span", { children: "Build identity" }), _jsxs("b", { children: [info.branch, " \u00B7 ", info.sha] })] })] }), _jsx("div", { className: "fx-pop-div" }), tags.length === 0 ? (_jsx("div", { className: "fx-empty", children: "No build tags" })) : (tags.map((tag) => (_jsxs("div", { className: "fx-ver", children: [_jsx("span", { className: "ver", children: tag.tag }), _jsx("span", { className: "lbl", children: tag.message }), _jsx("span", { className: "t", children: tag.date })] }, tag.tag))))] }));
|
|
55
|
+
}
|
|
56
|
+
export const forgeaxBuildVersionStatusItem = {
|
|
57
|
+
kind: 'status-item',
|
|
58
|
+
id: 'forgeax-build-version',
|
|
59
|
+
location: 'statusbar.right',
|
|
60
|
+
priority: 1000,
|
|
61
|
+
item: { type: 'custom', render: () => _jsx(ForgeaxBuildChip, {}) },
|
|
62
|
+
};
|