@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,606 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useRef, useMemo } from 'react';
|
|
3
|
+
import { createIntervalTaskLifecycle, createRestartableTimeoutTaskLifecycle, } from '@forgeax/app-shell/react';
|
|
4
|
+
import { SessionSwitcher } from './SessionSwitcher';
|
|
5
|
+
import { MenuBar } from '../MenuBar';
|
|
6
|
+
import { AndroidPackageDialog } from './AndroidPackageDialog';
|
|
7
|
+
import { IosPackageDialog } from './IosPackageDialog';
|
|
8
|
+
import { STORAGE_KEYS } from '../../lib/storageKeys';
|
|
9
|
+
import { CircleGauge, LayoutGrid, MessageSquare, Rocket, Settings, ShieldAlert, Check, X, Globe, Monitor, Laptop, Smartphone, Apple, ChevronDown, History, RefreshCw, Trash2, Loader2, Wrench, Eraser, UploadCloud, PlayCircle, FolderOpen, Copy, HelpCircle, Info, ChevronRight, CheckCircle2, Megaphone } from 'lucide-react';
|
|
10
|
+
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, } from '../ui/dropdown-menu';
|
|
11
|
+
import { useConfirmToast } from '../../lib/useConfirmToast';
|
|
12
|
+
import { useSurface } from '../../lib/surface';
|
|
13
|
+
import { useShellStore } from '../../store';
|
|
14
|
+
import { useCommand } from '../../core/app-shell';
|
|
15
|
+
import { getStudioBuildClient, getStudioProjectClient } from '../../store';
|
|
16
|
+
import { usePanelRenderers } from '../DockShell/panelRenderers';
|
|
17
|
+
import { dashApi } from '../../lib/dashboard-api';
|
|
18
|
+
import { alertDialog, confirmDialog } from '../../lib/dialog';
|
|
19
|
+
import { listExtensions } from '../../lib/extension-api';
|
|
20
|
+
import { useTranslation } from '../../i18n';
|
|
21
|
+
import { FeedbackPanel } from '../Feedback/FeedbackPanel';
|
|
22
|
+
import { useFeedbackStore } from '../Feedback/store';
|
|
23
|
+
import { PublishOnboarding } from './PublishOnboarding';
|
|
24
|
+
import { publishDoc } from './publish-options';
|
|
25
|
+
import './TopBar.css';
|
|
26
|
+
function formatPackageError(value) {
|
|
27
|
+
if (typeof value === 'string')
|
|
28
|
+
return value;
|
|
29
|
+
try {
|
|
30
|
+
return JSON.stringify(value, null, 2);
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return String(value);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function useBusExtensionCount() {
|
|
37
|
+
const [state, setState] = useState({ kind: 'loading' });
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
let cancelled = false;
|
|
40
|
+
const tick = async () => {
|
|
41
|
+
try {
|
|
42
|
+
const r = await dashApi.health();
|
|
43
|
+
if (cancelled)
|
|
44
|
+
return;
|
|
45
|
+
if (!r.bus) {
|
|
46
|
+
setState({ kind: 'down' });
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
setState({ kind: 'ok', extensionCount: r.bus.extensionCount, brokenCount: r.bus.brokenCount });
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
if (cancelled)
|
|
53
|
+
return;
|
|
54
|
+
setState({ kind: 'down' });
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
tick();
|
|
58
|
+
const poll = createIntervalTaskLifecycle({
|
|
59
|
+
task: () => { void tick(); },
|
|
60
|
+
intervalMs: 5_000,
|
|
61
|
+
});
|
|
62
|
+
poll.start();
|
|
63
|
+
return () => {
|
|
64
|
+
cancelled = true;
|
|
65
|
+
poll.dispose();
|
|
66
|
+
};
|
|
67
|
+
}, []);
|
|
68
|
+
return state;
|
|
69
|
+
}
|
|
70
|
+
function usePreviewWsCount() {
|
|
71
|
+
const [state, setState] = useState({ kind: 'loading' });
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
let cancelled = false;
|
|
74
|
+
const tick = async () => {
|
|
75
|
+
try {
|
|
76
|
+
const r = await dashApi.health();
|
|
77
|
+
if (cancelled)
|
|
78
|
+
return;
|
|
79
|
+
setState({ kind: 'ok', wsClients: r.wsClients });
|
|
80
|
+
}
|
|
81
|
+
catch {
|
|
82
|
+
if (cancelled)
|
|
83
|
+
return;
|
|
84
|
+
setState({ kind: 'down' });
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
tick();
|
|
88
|
+
const poll = createIntervalTaskLifecycle({
|
|
89
|
+
task: () => { void tick(); },
|
|
90
|
+
intervalMs: 5_000,
|
|
91
|
+
});
|
|
92
|
+
poll.start();
|
|
93
|
+
return () => {
|
|
94
|
+
cancelled = true;
|
|
95
|
+
poll.dispose();
|
|
96
|
+
};
|
|
97
|
+
}, []);
|
|
98
|
+
return state;
|
|
99
|
+
}
|
|
100
|
+
function useModelBindingCount() {
|
|
101
|
+
const [state, setState] = useState({ kind: 'loading' });
|
|
102
|
+
useEffect(() => {
|
|
103
|
+
let cancelled = false;
|
|
104
|
+
const tick = async () => {
|
|
105
|
+
try {
|
|
106
|
+
const r = await listExtensions('model-binding');
|
|
107
|
+
if (cancelled)
|
|
108
|
+
return;
|
|
109
|
+
setState({ kind: 'ok', count: r.count, ids: r.items.map((p) => p.id) });
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
if (cancelled)
|
|
113
|
+
return;
|
|
114
|
+
setState({ kind: 'down' });
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
tick();
|
|
118
|
+
const poll = createIntervalTaskLifecycle({
|
|
119
|
+
task: () => { void tick(); },
|
|
120
|
+
intervalMs: 12_000,
|
|
121
|
+
});
|
|
122
|
+
poll.start();
|
|
123
|
+
return () => {
|
|
124
|
+
cancelled = true;
|
|
125
|
+
poll.dispose();
|
|
126
|
+
};
|
|
127
|
+
}, []);
|
|
128
|
+
return state;
|
|
129
|
+
}
|
|
130
|
+
function useCliProvidersHealth() {
|
|
131
|
+
const [state, setState] = useState({ kind: 'loading' });
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
let cancelled = false;
|
|
134
|
+
const tick = async () => {
|
|
135
|
+
try {
|
|
136
|
+
const r = await dashApi.providers();
|
|
137
|
+
if (cancelled)
|
|
138
|
+
return;
|
|
139
|
+
const rows = r.providers.map((p) => ({
|
|
140
|
+
id: p.id,
|
|
141
|
+
ok: !!p.health?.ok,
|
|
142
|
+
detail: p.health?.detail,
|
|
143
|
+
}));
|
|
144
|
+
const ok = rows.filter((p) => p.ok).length;
|
|
145
|
+
setState({ kind: 'ok', ok, total: rows.length, rows });
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
if (cancelled)
|
|
149
|
+
return;
|
|
150
|
+
setState({ kind: 'down' });
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
tick();
|
|
154
|
+
const poll = createIntervalTaskLifecycle({
|
|
155
|
+
task: () => { void tick(); },
|
|
156
|
+
intervalMs: 10_000,
|
|
157
|
+
});
|
|
158
|
+
poll.start();
|
|
159
|
+
return () => {
|
|
160
|
+
cancelled = true;
|
|
161
|
+
poll.dispose();
|
|
162
|
+
};
|
|
163
|
+
}, []);
|
|
164
|
+
return state;
|
|
165
|
+
}
|
|
166
|
+
function TbDivider() {
|
|
167
|
+
return _jsx("span", { className: "tb-divider", "aria-hidden": "true" });
|
|
168
|
+
}
|
|
169
|
+
// DUAL-MODALITY 9.9 — host.toast surface schema. Mirrors the pending-confirm
|
|
170
|
+
// list rendered by ConfirmToastList so AI can read what the player currently
|
|
171
|
+
// sees as a confirm prompt. allow / deny actions are NOT exposed to AI on
|
|
172
|
+
// purpose: AI must not auto-confirm its own pending tool calls.
|
|
173
|
+
const HOST_TOAST_SCHEMA = {
|
|
174
|
+
type: 'object',
|
|
175
|
+
properties: {
|
|
176
|
+
pending: {
|
|
177
|
+
type: 'array',
|
|
178
|
+
items: {
|
|
179
|
+
type: 'object',
|
|
180
|
+
required: ['token', 'toolId', 'callerKind', 'receivedAt'],
|
|
181
|
+
properties: {
|
|
182
|
+
token: { type: 'string' },
|
|
183
|
+
toolId: { type: 'string' },
|
|
184
|
+
callerKind: { type: 'string' },
|
|
185
|
+
reason: { type: 'string' },
|
|
186
|
+
receivedAt: { type: 'number' },
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
function ConfirmToastList({ confirms, onAck, onDeny }) {
|
|
193
|
+
if (confirms.length === 0)
|
|
194
|
+
return null;
|
|
195
|
+
return (_jsx("div", { className: "tb-confirm-list", role: "status", "aria-live": "polite", children: confirms.map((c) => (_jsxs("div", { className: "tb-confirm-toast", role: "alert", children: [_jsx(ShieldAlert, { size: 14, className: "tb-confirm-icon" }), _jsxs("span", { className: "tb-confirm-label", children: [_jsx("strong", { children: c.toolId }), _jsx("span", { className: "tb-confirm-caller", children: c.caller.kind }), c.message && _jsx("span", { className: "tb-confirm-reason", children: c.message }), !c.message && c.reason && _jsx("span", { className: "tb-confirm-reason", children: c.reason })] }), _jsxs("div", { className: "tb-confirm-actions", children: [_jsxs("button", { type: "button", className: "tb-confirm-btn tb-confirm-btn--allow", onClick: () => onAck(c.token), title: `Allow tool: ${c.toolId}`, children: [_jsx(Check, { size: 12 }), "Allow"] }), _jsxs("button", { type: "button", className: "tb-confirm-btn tb-confirm-btn--deny", onClick: () => onDeny(c.token), title: `Deny tool: ${c.toolId}`, children: [_jsx(X, { size: 12 }), "Deny"] })] })] }, c.token))) }));
|
|
196
|
+
}
|
|
197
|
+
export function TopBar() {
|
|
198
|
+
const { t } = useTranslation();
|
|
199
|
+
const hasChatSurface = Boolean(usePanelRenderers().panels?.chat);
|
|
200
|
+
const openOverlay = useShellStore((s) => s.openOverlay);
|
|
201
|
+
const activeGameSlug = useShellStore((s) => s.activeGameSlug);
|
|
202
|
+
const chatpanelCollapsed = useShellStore((s) => s.chatpanelCollapsed);
|
|
203
|
+
const toggleChatpanel = useShellStore((s) => s.toggleChatpanel);
|
|
204
|
+
// Route the LayoutGrid button through the command bus so keyboard / palette /
|
|
205
|
+
// iframe all share one entry (was: window.dispatchEvent(APP_EVENTS.dockLayoutToggle)).
|
|
206
|
+
const dockLayoutToggle = useCommand('app.dock.layoutToggle');
|
|
207
|
+
const [packaging, setPackaging] = useState(false);
|
|
208
|
+
const [packagingPlatform, setPackagingPlatform] = useState('');
|
|
209
|
+
const [rebuildEngine, setRebuildEngine] = useState(false);
|
|
210
|
+
const [engineRoots, setEngineRoots] = useState([]);
|
|
211
|
+
const [selectedEngineRoot, setSelectedEngineRoot] = useState(undefined);
|
|
212
|
+
const [showHistory, setShowHistory] = useState(false);
|
|
213
|
+
const [showProgress, setShowProgress] = useState(false);
|
|
214
|
+
const [progressPhase, setProgressPhase] = useState('');
|
|
215
|
+
const [progressLogs, setProgressLogs] = useState([]);
|
|
216
|
+
const [cleaning, setCleaning] = useState(false);
|
|
217
|
+
const [androidDialog, setAndroidDialog] = useState(null);
|
|
218
|
+
const [iosDialog, setIosDialog] = useState(null);
|
|
219
|
+
const [menuOpen, setMenuOpen] = useState(false);
|
|
220
|
+
const [onboardActive, setOnboardActive] = useState(false);
|
|
221
|
+
const { pendingConfirms, ack, deny } = useConfirmToast();
|
|
222
|
+
// Publish dropdown open-state is controlled so the first-run coach-mark can
|
|
223
|
+
// drive it (open it on option steps, close it on the intro). While the tour
|
|
224
|
+
// is active it owns menuOpen entirely — Radix's own open/close requests are
|
|
225
|
+
// ignored. On the very first open we kick off the tour instead.
|
|
226
|
+
const handleMenuOpenChange = (open) => {
|
|
227
|
+
if (onboardActive)
|
|
228
|
+
return;
|
|
229
|
+
if (open && !localStorage.getItem(STORAGE_KEYS.publishOnboarded)) {
|
|
230
|
+
localStorage.setItem(STORAGE_KEYS.publishOnboarded, '1');
|
|
231
|
+
setMenuOpen(false);
|
|
232
|
+
setOnboardActive(true);
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
setMenuOpen(open);
|
|
236
|
+
};
|
|
237
|
+
// Detect engine-root candidates for the standalone export. The export script
|
|
238
|
+
// must run inside an engine root that has its deps (vite, @forgeax/*) — the
|
|
239
|
+
// live one is play-runtime, not the legacy engine-src.
|
|
240
|
+
useEffect(() => {
|
|
241
|
+
let cancelled = false;
|
|
242
|
+
(async () => {
|
|
243
|
+
try {
|
|
244
|
+
const j = await getStudioBuildClient().getEngineRoots();
|
|
245
|
+
if (cancelled)
|
|
246
|
+
return;
|
|
247
|
+
const roots = (j.roots ?? []);
|
|
248
|
+
setEngineRoots(roots);
|
|
249
|
+
const recommended = roots.find((x) => x.recommended) ?? roots.find((x) => x.valid);
|
|
250
|
+
if (recommended)
|
|
251
|
+
setSelectedEngineRoot(recommended.path);
|
|
252
|
+
}
|
|
253
|
+
catch { /* leave empty — backend auto-detects on package */ }
|
|
254
|
+
})();
|
|
255
|
+
return () => { cancelled = true; };
|
|
256
|
+
}, []);
|
|
257
|
+
// Package the server-authoritative active game.
|
|
258
|
+
const resolvePackageSlug = async () => {
|
|
259
|
+
let slug = activeGameSlug;
|
|
260
|
+
if (!slug) {
|
|
261
|
+
try {
|
|
262
|
+
const j = await getStudioProjectClient().getActiveProject();
|
|
263
|
+
slug = j.activeSlug ?? null;
|
|
264
|
+
}
|
|
265
|
+
catch { /* fall through */ }
|
|
266
|
+
}
|
|
267
|
+
return slug ?? null;
|
|
268
|
+
};
|
|
269
|
+
// Android needs user config (applicationId / name / icon / orientation) before
|
|
270
|
+
// packaging, so it opens a dialog first and calls onPackageGame from onConfirm.
|
|
271
|
+
const openAndroidDialog = async () => {
|
|
272
|
+
if (packaging)
|
|
273
|
+
return;
|
|
274
|
+
const slug = await resolvePackageSlug();
|
|
275
|
+
if (!slug) {
|
|
276
|
+
await alertDialog({ title: t('topbar.package.title'), body: t('topbar.package.noGame') });
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
setAndroidDialog({ slug, defaultAppName: slug });
|
|
280
|
+
};
|
|
281
|
+
// iOS also needs user config (bundleId / name / icon / orientation) before
|
|
282
|
+
// packaging, so it opens a dialog first and calls onPackageGame from onConfirm.
|
|
283
|
+
const openIosDialog = async () => {
|
|
284
|
+
if (packaging)
|
|
285
|
+
return;
|
|
286
|
+
const slug = await resolvePackageSlug();
|
|
287
|
+
if (!slug) {
|
|
288
|
+
await alertDialog({ title: t('topbar.package.title'), body: t('topbar.package.noGame') });
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
setIosDialog({ slug, defaultAppName: slug });
|
|
292
|
+
};
|
|
293
|
+
const onPackageGame = async (platform, cfg) => {
|
|
294
|
+
if (packaging)
|
|
295
|
+
return;
|
|
296
|
+
const slug = await resolvePackageSlug();
|
|
297
|
+
if (!slug) {
|
|
298
|
+
await alertDialog({ title: t('topbar.package.title'), body: t('topbar.package.noGame') });
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
setPackaging(true);
|
|
302
|
+
setPackagingPlatform(platform);
|
|
303
|
+
try {
|
|
304
|
+
const j = await getStudioBuildClient().buildProject(slug, {
|
|
305
|
+
targetPlatform: platform,
|
|
306
|
+
rebuildEngine,
|
|
307
|
+
forceRebuild: false,
|
|
308
|
+
engineRoot: selectedEngineRoot,
|
|
309
|
+
...(cfg ?? {}),
|
|
310
|
+
});
|
|
311
|
+
// Async job (Windows / native platforms)
|
|
312
|
+
if (j.async && typeof j.jobId === 'string') {
|
|
313
|
+
setShowProgress(true);
|
|
314
|
+
setProgressPhase('starting');
|
|
315
|
+
setProgressLogs([]);
|
|
316
|
+
await pollJob(j.jobId, slug, platform);
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
// Synchronous result (Web)
|
|
320
|
+
if (!j.ok) {
|
|
321
|
+
const detail = formatPackageError(j.detail || j.error || t('topbar.package.unknownError'));
|
|
322
|
+
console.error('[packager] build failed', { slug, platform, result: j, detail });
|
|
323
|
+
await alertDialog({
|
|
324
|
+
title: t('topbar.package.failed'),
|
|
325
|
+
body: _jsx("pre", { className: "tb-package-error", children: detail }),
|
|
326
|
+
});
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
await alertDialog({
|
|
330
|
+
title: t('topbar.package.done', { slug, platform }),
|
|
331
|
+
body: (_jsx(PackageSuccessBody, { outDir: String(j.outDir ?? ''), runHint: String(j.runHint ?? ''), platform: platform, slug: slug, t: t })),
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
catch (e) {
|
|
335
|
+
const detail = formatPackageError(e?.message ?? e);
|
|
336
|
+
console.error('[packager] request failed', { slug, platform, error: e, detail });
|
|
337
|
+
await alertDialog({ title: t('topbar.package.failed'), body: _jsx("pre", { className: "tb-package-error", children: detail }) });
|
|
338
|
+
}
|
|
339
|
+
finally {
|
|
340
|
+
setPackaging(false);
|
|
341
|
+
setPackagingPlatform('');
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
const pollJob = async (jobId, slug, platform) => {
|
|
345
|
+
const INTERVAL = 1500;
|
|
346
|
+
const MAX_POLLS = 400;
|
|
347
|
+
for (let i = 0; i < MAX_POLLS; i++) {
|
|
348
|
+
await new Promise(r => setTimeout(r, INTERVAL));
|
|
349
|
+
try {
|
|
350
|
+
const job = (await getStudioBuildClient().pollBuildJob(jobId));
|
|
351
|
+
setProgressPhase(job.phase);
|
|
352
|
+
setProgressLogs(job.logTail.slice(-30));
|
|
353
|
+
if (job.status === 'success' || job.status === 'failed') {
|
|
354
|
+
setShowProgress(false);
|
|
355
|
+
setPackaging(false);
|
|
356
|
+
setPackagingPlatform('');
|
|
357
|
+
if (job.status === 'success') {
|
|
358
|
+
const res = job.result ?? {};
|
|
359
|
+
await alertDialog({
|
|
360
|
+
title: t('topbar.package.done', { slug, platform }),
|
|
361
|
+
body: (_jsx(PackageSuccessBody, { outDir: String(res.outDir ?? ''), runHint: String(res.runHint ?? ''), platform: platform, slug: slug, usedCachedShell: Boolean(res.usedCachedShell), t: t })),
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
const res = job.result ?? {};
|
|
366
|
+
const detail = formatPackageError(res.detail || res.error || t('topbar.package.unknownError'));
|
|
367
|
+
console.error('[packager] build failed', { slug, platform, job, detail });
|
|
368
|
+
await alertDialog({
|
|
369
|
+
title: t('topbar.package.failed'),
|
|
370
|
+
body: _jsx("pre", { className: "tb-package-error", children: detail }),
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
catch (e) {
|
|
377
|
+
console.error('[packager] polling failed', { jobId, slug, platform, error: e });
|
|
378
|
+
/* continue polling */
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
setShowProgress(false);
|
|
382
|
+
setPackaging(false);
|
|
383
|
+
setPackagingPlatform('');
|
|
384
|
+
};
|
|
385
|
+
const onRetryPackage = async (slug, platform) => {
|
|
386
|
+
setPackaging(true);
|
|
387
|
+
setPackagingPlatform(platform);
|
|
388
|
+
setShowHistory(false);
|
|
389
|
+
try {
|
|
390
|
+
const j = await getStudioBuildClient().buildProject(slug, {
|
|
391
|
+
targetPlatform: platform,
|
|
392
|
+
forceRebuild: true,
|
|
393
|
+
engineRoot: selectedEngineRoot,
|
|
394
|
+
});
|
|
395
|
+
if (j.async && typeof j.jobId === 'string') {
|
|
396
|
+
setShowProgress(true);
|
|
397
|
+
setProgressPhase('starting');
|
|
398
|
+
setProgressLogs([]);
|
|
399
|
+
await pollJob(j.jobId, slug, platform);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
catch (e) {
|
|
403
|
+
const detail = formatPackageError(e?.message ?? e);
|
|
404
|
+
console.error('[packager] retry failed', { slug, platform, error: e, detail });
|
|
405
|
+
await alertDialog({ title: t('topbar.package.failed'), body: _jsx("pre", { className: "tb-package-error", children: detail }) });
|
|
406
|
+
}
|
|
407
|
+
finally {
|
|
408
|
+
setPackaging(false);
|
|
409
|
+
setPackagingPlatform('');
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
const onCleanCache = async () => {
|
|
413
|
+
if (packaging)
|
|
414
|
+
return;
|
|
415
|
+
if (!(await confirmDialog({
|
|
416
|
+
title: t('topbar.package.cleanTitle'),
|
|
417
|
+
body: (_jsxs("div", { style: { fontSize: 13, lineHeight: 1.6 }, children: [_jsx("div", { children: t('topbar.package.cleanBody') }), _jsxs("ul", { style: { margin: '6px 0 0', paddingLeft: 18, opacity: 0.85 }, children: [_jsx("li", { children: t('topbar.package.cleanItemToolchain') }), _jsx("li", { children: t('topbar.package.cleanItemShell') }), _jsx("li", { children: t('topbar.package.cleanItemTmp') })] }), _jsx("div", { style: { marginTop: 8, opacity: 0.7 }, children: t('topbar.package.cleanKeepHint') })] })),
|
|
418
|
+
danger: true,
|
|
419
|
+
confirmText: t('topbar.package.cleanConfirm'),
|
|
420
|
+
})))
|
|
421
|
+
return;
|
|
422
|
+
setCleaning(true);
|
|
423
|
+
try {
|
|
424
|
+
const j = await getStudioBuildClient().cleanBuilds();
|
|
425
|
+
const fmtSize = (b) => {
|
|
426
|
+
if (b <= 0)
|
|
427
|
+
return '0 B';
|
|
428
|
+
const u = ['B', 'KB', 'MB', 'GB'];
|
|
429
|
+
let i = 0;
|
|
430
|
+
let n = b;
|
|
431
|
+
while (n >= 1024 && i < u.length - 1) {
|
|
432
|
+
n /= 1024;
|
|
433
|
+
i++;
|
|
434
|
+
}
|
|
435
|
+
return `${n.toFixed(n >= 10 || i === 0 ? 0 : 1)} ${u[i]}`;
|
|
436
|
+
};
|
|
437
|
+
const anyError = j.targets.some((tg) => Boolean(tg.error));
|
|
438
|
+
setCleaning(false);
|
|
439
|
+
await alertDialog({
|
|
440
|
+
title: anyError ? t('topbar.package.cleanPartial') : t('topbar.package.cleanDone'),
|
|
441
|
+
body: (_jsxs("div", { style: { fontSize: 13, lineHeight: 1.6 }, children: [_jsx("div", { children: t('topbar.package.cleanFreed', { size: fmtSize(j.totalBytes) }) }), _jsx("ul", { style: { margin: '6px 0 0', paddingLeft: 18, fontSize: 12 }, children: j.targets.map((tg) => (_jsxs("li", { style: { opacity: tg.existed ? 1 : 0.5 }, children: [tg.error ? '✗' : tg.removed ? '✓' : '·', " ", tg.path, tg.removed && tg.bytes > 0 ? ` (${fmtSize(tg.bytes)})` : '', tg.error ? ` — ${tg.error}` : ''] }, tg.path))) })] })),
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
catch (e) {
|
|
445
|
+
setCleaning(false);
|
|
446
|
+
await alertDialog({ title: t('topbar.package.cleanFailed'), body: String(e?.message ?? e) });
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
// DUAL-MODALITY 9.9 — register host.toast surface so the AI can read the
|
|
450
|
+
// pending-confirm prompts the player currently sees. Snapshot mirrors
|
|
451
|
+
// pendingConfirms (slim shape — drops the caller blob besides kind). Actions
|
|
452
|
+
// allow/deny are exposedToAI=false to prevent AI from greenlighting its own
|
|
453
|
+
// gated tool calls; only the player path (button click) drives them.
|
|
454
|
+
const toastPendingSlim = useMemo(() => pendingConfirms.map((c) => ({
|
|
455
|
+
token: c.token,
|
|
456
|
+
toolId: c.toolId,
|
|
457
|
+
callerKind: c.caller.kind,
|
|
458
|
+
reason: c.reason,
|
|
459
|
+
receivedAt: c.receivedAt,
|
|
460
|
+
})), [pendingConfirms]);
|
|
461
|
+
const toastSurface = useSurface({
|
|
462
|
+
id: 'host.toast',
|
|
463
|
+
layer: 'host',
|
|
464
|
+
schema: HOST_TOAST_SCHEMA,
|
|
465
|
+
initialSnapshot: { pending: toastPendingSlim },
|
|
466
|
+
actions: {
|
|
467
|
+
allow: {
|
|
468
|
+
id: 'allow',
|
|
469
|
+
exposedToAI: false,
|
|
470
|
+
argsSchema: { type: 'object', required: ['token'], properties: { token: { type: 'string' } } },
|
|
471
|
+
run: (raw) => {
|
|
472
|
+
const a = (raw ?? {});
|
|
473
|
+
if (typeof a.token !== 'string')
|
|
474
|
+
return;
|
|
475
|
+
void ack(a.token);
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
deny: {
|
|
479
|
+
id: 'deny',
|
|
480
|
+
exposedToAI: false,
|
|
481
|
+
argsSchema: { type: 'object', required: ['token'], properties: { token: { type: 'string' } } },
|
|
482
|
+
run: (raw) => {
|
|
483
|
+
const a = (raw ?? {});
|
|
484
|
+
if (typeof a.token !== 'string')
|
|
485
|
+
return;
|
|
486
|
+
void deny(a.token);
|
|
487
|
+
},
|
|
488
|
+
},
|
|
489
|
+
},
|
|
490
|
+
});
|
|
491
|
+
useEffect(() => {
|
|
492
|
+
toastSurface.setSnapshot({ pending: toastPendingSlim });
|
|
493
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
494
|
+
}, [toastPendingSlim]);
|
|
495
|
+
// 2026-05-21 — TopBar 不再渲染模型选择器。原本 tb-right 挂了
|
|
496
|
+
// `<ModelPicker variant="pill">` 当真实选择器,但 Composer 底部也有一份,
|
|
497
|
+
// 两个 picker 各自跟 agent.json 异步轮询时会出现展示不一致(顶部还显示
|
|
498
|
+
// 上一次的 selected,底部已经切了),用户明确反馈"为什么有好几个选模型
|
|
499
|
+
// 的地方"。SSOT 收回 Composer (`ChatPanel/Composer.tsx <ModelPicker>`),
|
|
500
|
+
// TopBar 只留 Settings 入口和 cli-provider admin 快捷键。
|
|
501
|
+
// 2026-05-17 — useBusExtensionCount / usePageExtensionCount / usePreviewWsCount
|
|
502
|
+
// hooks no longer wired (count badges were removed). The function bodies are
|
|
503
|
+
// kept in this file for the moment in case future TopBar widgets want them;
|
|
504
|
+
// the unused-imports lint warning is tolerated.
|
|
505
|
+
// provHealth / mbCount hooks removed — pills collapsed to icon buttons (no count badges).
|
|
506
|
+
// Workspace tabs replace the old fixed mode tabs.
|
|
507
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "topbar", "data-tour-id": "topbar", children: [_jsxs("div", { className: "tb-left", "data-tour-id": "tb-left", children: [_jsx(MenuBar, {}), hasChatSurface && (_jsx("span", { "data-testid": "forge-entry", style: { display: 'contents' }, children: _jsx(SessionSwitcher, {}) }))] }), _jsxs("div", { className: "tb-right", "data-tour-id": "tb-right", children: [_jsxs("button", { type: "button", className: "tb-feedback-btn", title: t('feedback.tooltip'), onClick: () => useFeedbackStore.getState().openPanel('write'), children: [_jsx(Megaphone, { size: 16 }), _jsx("span", { children: t('feedback.button') })] }), _jsx(TbDivider, {}), hasChatSurface && (_jsx("button", { type: "button", className: "tb-icon-btn", "data-testid": "chat-panel-toggle", "aria-label": t(chatpanelCollapsed ? 'topbar.chatToggle.expand' : 'topbar.chatToggle.collapse'), "aria-pressed": !chatpanelCollapsed, title: t(chatpanelCollapsed ? 'topbar.chatToggle.expand' : 'topbar.chatToggle.collapse'), onClick: toggleChatpanel, children: _jsx(MessageSquare, { size: 16, fill: chatpanelCollapsed ? 'none' : 'currentColor', stroke: chatpanelCollapsed ? 'currentColor' : 'none' }) })), hasChatSurface && _jsx(TbDivider, {}), _jsx(DashboardToggle, {}), _jsx(TbDivider, {}), _jsx("button", { type: "button", className: "tb-icon-btn", title: t('topbar.layout.tooltip'), onClick: (e) => {
|
|
508
|
+
const r = e.currentTarget.getBoundingClientRect();
|
|
509
|
+
void dockLayoutToggle({ rect: { top: r.top, bottom: r.bottom, left: r.left, right: r.right } });
|
|
510
|
+
}, children: _jsx(LayoutGrid, { size: 16 }) }), _jsx(TbDivider, {}), _jsx("button", { type: "button", className: "tb-icon-btn", onClick: () => openOverlay('settings'), title: t('topbar.settings.tooltip'), children: _jsx(Settings, { size: 16 }) }), _jsx(TbDivider, {}), _jsxs(DropdownMenu, { open: menuOpen, onOpenChange: handleMenuOpenChange, modal: false, children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs("button", { type: "button", className: "tb-publish-btn", disabled: packaging, title: packaging ? t('topbar.publish.packaging', { platform: packagingPlatform }) : t('topbar.publish.tooltip'), children: [_jsx(Rocket, { size: 16 }), _jsx(ChevronDown, { size: 10, style: { marginLeft: 2, opacity: 0.6 } })] }) }), _jsxs(DropdownMenuContent, { align: "end", sideOffset: 6, className: "tb-publish-menu", children: [_jsx(DropdownMenuLabel, { children: t('topbar.package.menuTitle') }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { "data-onboard": "web", title: publishDoc(t, 'web').what, onClick: () => onPackageGame('web'), children: [_jsx(Globe, { size: 14 }), _jsxs("span", { className: "tb-mi-txt", children: [_jsx("span", { className: "tb-mi-title", children: t('topbar.package.platformWeb') }), _jsx("span", { className: "tb-mi-sub", children: publishDoc(t, 'web').when })] })] }), _jsxs(DropdownMenuItem, { "data-onboard": "windows", title: publishDoc(t, 'windows').what, onClick: () => onPackageGame('windows'), children: [_jsx(Monitor, { size: 14 }), _jsxs("span", { className: "tb-mi-txt", children: [_jsx("span", { className: "tb-mi-title", children: t('topbar.package.platformWindows') }), _jsx("span", { className: "tb-mi-sub", children: publishDoc(t, 'windows').when })] })] }), _jsxs(DropdownMenuItem, { "data-onboard": "macos", title: publishDoc(t, 'macos').what, onClick: () => onPackageGame('macos'), children: [_jsx(Laptop, { size: 14 }), _jsxs("span", { className: "tb-mi-txt", children: [_jsx("span", { className: "tb-mi-title", children: t('topbar.package.platformMac') }), _jsx("span", { className: "tb-mi-sub", children: publishDoc(t, 'macos').when })] })] }), _jsxs(DropdownMenuItem, { "data-onboard": "android", disabled: packaging, title: publishDoc(t, 'android').what, onClick: () => { void openAndroidDialog(); }, children: [_jsx(Smartphone, { size: 14 }), _jsxs("span", { className: "tb-mi-txt", children: [_jsx("span", { className: "tb-mi-title", children: t('topbar.package.platformAndroid') }), _jsx("span", { className: "tb-mi-sub", children: publishDoc(t, 'android').when })] })] }), _jsxs(DropdownMenuItem, { "data-onboard": "ios", disabled: packaging, title: publishDoc(t, 'ios').what, onClick: () => { void openIosDialog(); }, children: [_jsx(Apple, { size: 14 }), _jsxs("span", { className: "tb-mi-txt", children: [_jsx("span", { className: "tb-mi-title", children: t('topbar.package.platformIos') }), _jsx("span", { className: "tb-mi-sub", children: publishDoc(t, 'ios').when })] })] }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { disabled: true, title: publishDoc(t, 'cloud').what, children: [_jsx(UploadCloud, { size: 14 }), _jsxs("span", { className: "tb-mi-txt", children: [_jsx("span", { className: "tb-mi-title", children: t('topbar.package.platformCloud') }), _jsx("span", { className: "tb-mi-sub", children: t('topbar.package.comingSoon') })] })] }), _jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuLabel, { style: { fontSize: 11, opacity: 0.6 }, title: publishDoc(t, 'engineRoot').what, children: t('topbar.package.engineRoot') }), engineRoots.length === 0 ? (_jsx(DropdownMenuItem, { disabled: true, style: { fontSize: 11, opacity: 0.5 }, children: t('topbar.package.engineRootNone') })) : (engineRoots.map((root) => (_jsxs(DropdownMenuItem, { disabled: !root.valid, onClick: (e) => { e.preventDefault(); if (root.valid)
|
|
511
|
+
setSelectedEngineRoot(root.path); }, style: { gap: 6, opacity: root.valid ? 1 : 0.45 }, title: root.path, children: [_jsxs("span", { style: { flex: 1, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }, children: [root.label, !root.valid && _jsxs("span", { style: { marginLeft: 4, fontSize: 10, opacity: 0.7 }, children: ["(", t('topbar.package.engineRootInvalid'), ")"] })] }), _jsx("span", { style: { width: 14, height: 14, borderRadius: 3, border: '1px solid #666', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: 10 }, children: selectedEngineRoot === root.path ? '✓' : '' })] }, root.path)))), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { "data-onboard": "engine", title: publishDoc(t, 'engine').what, onClick: (e) => { e.preventDefault(); setRebuildEngine(!rebuildEngine); }, style: { gap: 6 }, children: [_jsx(Wrench, { size: 14 }), _jsxs("span", { className: "tb-mi-txt", children: [_jsx("span", { className: "tb-mi-title", children: t('topbar.package.rebuildEngine') }), _jsx("span", { className: "tb-mi-sub", children: publishDoc(t, 'engine').when })] }), _jsx("span", { style: { width: 14, height: 14, borderRadius: 3, border: '1px solid #666', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: 10 }, children: rebuildEngine ? '✓' : '' })] }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { "data-onboard": "history", title: publishDoc(t, 'history').what, onClick: () => setShowHistory(true), children: [_jsx(History, { size: 14 }), t('topbar.package.history')] }), _jsxs(DropdownMenuItem, { "data-onboard": "clean", title: publishDoc(t, 'clean').what, onClick: (e) => { e.preventDefault(); void onCleanCache(); }, style: { gap: 6, color: 'var(--destructive, #e05260)' }, children: [_jsx(Eraser, { size: 14 }), t('topbar.package.clean')] }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { onClick: (e) => { e.preventDefault(); setOnboardActive(true); }, children: [_jsx(HelpCircle, { size: 14 }), t('topbar.package.viewGuide')] })] })] }), _jsx(PublishOnboarding, { active: onboardActive, onClose: () => setOnboardActive(false), setMenuOpen: setMenuOpen, t: t })] })] }), _jsx(ConfirmToastList, { confirms: pendingConfirms, onAck: ack, onDeny: deny }), _jsx(FeedbackPanel, {}), cleaning && (_jsx("div", { className: "tb-progress-overlay", children: _jsxs("div", { className: "tb-progress-dialog", children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: 8 }, children: [_jsx(Loader2, { size: 16, className: "tb-spinner" }), _jsx("span", { style: { fontWeight: 600 }, children: t('topbar.package.cleaning') })] }), _jsx("div", { style: { fontSize: 12, opacity: 0.75, marginTop: 6 }, children: t('topbar.package.cleaningHint') })] }) })), showProgress && _jsx(PackageProgressOverlay, { phase: progressPhase, logs: progressLogs, platform: packagingPlatform, onClose: () => { setShowProgress(false); }, t: t }), showHistory && _jsx(PackageHistoryDialog, { onClose: () => setShowHistory(false), onRetry: onRetryPackage, t: t }), androidDialog && (_jsx(AndroidPackageDialog, { slug: androidDialog.slug, defaultAppName: androidDialog.defaultAppName, t: t, onCancel: () => setAndroidDialog(null), onConfirm: (cfg) => { setAndroidDialog(null); void onPackageGame('android', cfg); } })), iosDialog && (_jsx(IosPackageDialog, { slug: iosDialog.slug, defaultAppName: iosDialog.defaultAppName, t: t, onCancel: () => setIosDialog(null), onConfirm: (cfg) => { setIosDialog(null); void onPackageGame('ios', cfg); } }))] }));
|
|
512
|
+
}
|
|
513
|
+
// GameSwitcher + NewGameModal + timeSince extracted → ./GameSwitcher (§D).
|
|
514
|
+
// ── PackageSuccessBody ──
|
|
515
|
+
// The body of the "packaging done" dialog. Turns the old read-only outDir /
|
|
516
|
+
// runHint text into actionable buttons: one-click playtest (web), open the
|
|
517
|
+
// product folder in the OS file manager, and copy the path / run command.
|
|
518
|
+
function PackageSuccessBody({ outDir, runHint, platform, slug, usedCachedShell, t }) {
|
|
519
|
+
const [copied, setCopied] = useState(null);
|
|
520
|
+
const copiedResetTaskRef = useRef(null);
|
|
521
|
+
useEffect(() => {
|
|
522
|
+
const task = createRestartableTimeoutTaskLifecycle({
|
|
523
|
+
delayMs: 1600,
|
|
524
|
+
task: () => setCopied(null),
|
|
525
|
+
});
|
|
526
|
+
copiedResetTaskRef.current = task;
|
|
527
|
+
return () => {
|
|
528
|
+
copiedResetTaskRef.current = null;
|
|
529
|
+
task.dispose();
|
|
530
|
+
};
|
|
531
|
+
}, []);
|
|
532
|
+
const copy = async (text, which) => {
|
|
533
|
+
try {
|
|
534
|
+
await navigator.clipboard.writeText(text);
|
|
535
|
+
setCopied(which);
|
|
536
|
+
copiedResetTaskRef.current?.schedule();
|
|
537
|
+
}
|
|
538
|
+
catch { /* ignore */ }
|
|
539
|
+
};
|
|
540
|
+
const reveal = async () => {
|
|
541
|
+
try {
|
|
542
|
+
await fetch('/api/builds/reveal', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ path: outDir }) });
|
|
543
|
+
}
|
|
544
|
+
catch { /* ignore */ }
|
|
545
|
+
};
|
|
546
|
+
// Playtest is served by the studio server itself (same-origin, secure
|
|
547
|
+
// localhost context, correct .wasm MIME) — no npx/serve.sh spawn, so the tab
|
|
548
|
+
// opens instantly onto a ready server instead of a maybe-not-bound one.
|
|
549
|
+
const play = () => {
|
|
550
|
+
window.open(`/api/builds/play/${encodeURIComponent(slug)}/`, '_blank');
|
|
551
|
+
};
|
|
552
|
+
const isWeb = platform === 'web';
|
|
553
|
+
return (_jsxs("div", { className: "tb-pkg-success", children: [_jsxs("div", { className: "tb-pkg-head", children: [_jsx(CheckCircle2, { size: 20, className: "tb-pkg-head-ic" }), _jsx("span", { className: "tb-pkg-head-txt", children: t('topbar.package.success.ready') })] }), _jsxs("div", { className: "tb-pkg-path", children: [_jsx(FolderOpen, { size: 14, className: "tb-pkg-path-ic" }), _jsx("code", { className: "tb-pkg-path-txt", children: outDir })] }), _jsxs("div", { className: "tb-success-actions", children: [isWeb && (_jsxs("button", { type: "button", className: "tb-sa-btn primary", onClick: play, children: [_jsx(PlayCircle, { size: 18 }), _jsx("span", { children: t('topbar.package.success.play') })] })), _jsxs("button", { type: "button", className: `tb-sa-btn${isWeb ? '' : ' primary'}`, onClick: () => { void reveal(); }, children: [_jsx(FolderOpen, { size: 18 }), _jsx("span", { children: t('topbar.package.success.open') })] }), _jsxs("button", { type: "button", className: "tb-sa-btn", onClick: () => { void copy(outDir, 'path'); }, children: [copied === 'path' ? _jsx(Check, { size: 18 }) : _jsx(Copy, { size: 18 }), _jsx("span", { children: copied === 'path' ? t('topbar.package.success.copied') : t('topbar.package.success.copyPath') })] }), runHint && (_jsxs("button", { type: "button", className: "tb-sa-btn", onClick: () => { void copy(runHint, 'cmd'); }, children: [copied === 'cmd' ? _jsx(Check, { size: 18 }) : _jsx(Copy, { size: 18 }), _jsx("span", { children: copied === 'cmd' ? t('topbar.package.success.copied') : t('topbar.package.success.copyCmd') })] }))] }), runHint && (_jsxs("details", { className: "tb-pkg-cmd", children: [_jsxs("summary", { children: [_jsx(ChevronRight, { size: 13, className: "tb-pkg-cmd-caret" }), t('topbar.package.runLocally')] }), _jsx("pre", { children: runHint })] })), usedCachedShell && (_jsxs("div", { className: "tb-pkg-hint", children: [_jsx(Info, { size: 13 }), _jsx("span", { children: t('topbar.package.cachedShell') })] })), isWeb && (_jsxs("div", { className: "tb-pkg-hint", children: [_jsx(Info, { size: 13 }), _jsx("span", { children: t('topbar.package.webgpuHint') })] }))] }));
|
|
554
|
+
}
|
|
555
|
+
// ── PackageProgressOverlay ──
|
|
556
|
+
// A polished "packaging in progress" card: an animated orb + humanized phase
|
|
557
|
+
// label, an indeterminate shimmer bar (we have no % from the backend), the
|
|
558
|
+
// latest build line, a reassuring hint, and a collapsible terminal log.
|
|
559
|
+
function PackageProgressOverlay({ phase, logs, platform, onClose, t }) {
|
|
560
|
+
const logsRef = useRef(null);
|
|
561
|
+
const [showLogs, setShowLogs] = useState(false);
|
|
562
|
+
useEffect(() => {
|
|
563
|
+
if (logsRef.current)
|
|
564
|
+
logsRef.current.scrollTop = logsRef.current.scrollHeight;
|
|
565
|
+
}, [logs, showLogs]);
|
|
566
|
+
// Humanize the phase; fall back to the raw phase if no label key exists.
|
|
567
|
+
const labelKey = `topbar.package.phaseLabel.${phase}`;
|
|
568
|
+
const label = t(labelKey);
|
|
569
|
+
const phaseText = label === labelKey || label.startsWith('topbar.') ? phase : label;
|
|
570
|
+
const lastLine = logs.length ? logs[logs.length - 1] : '';
|
|
571
|
+
return (_jsx("div", { className: "tb-progress-overlay", onClick: (e) => { if (e.target === e.currentTarget)
|
|
572
|
+
onClose(); }, children: _jsxs("div", { className: "tb-progress-dialog tb-prog", children: [_jsxs("div", { className: "tb-prog-head", children: [_jsx("span", { className: "tb-prog-orb", children: _jsx(Loader2, { size: 20, className: "tb-spinner" }) }), _jsxs("div", { className: "tb-prog-headtxt", children: [_jsxs("div", { className: "tb-prog-title", children: [t('topbar.package.progressTitle'), platform && _jsx("span", { className: "tb-prog-badge", children: platform })] }), _jsx("div", { className: "tb-prog-phase", children: phaseText })] })] }), _jsx("div", { className: "tb-prog-bar", role: "progressbar", "aria-label": phaseText, children: _jsx("span", {}) }), lastLine && _jsx("div", { className: "tb-prog-line", children: lastLine }), _jsx("div", { className: "tb-prog-hint", children: t('topbar.package.progressHint') }), _jsxs("details", { className: "tb-prog-logbox", onToggle: (e) => setShowLogs(e.currentTarget.open), children: [_jsxs("summary", { children: [_jsx(ChevronRight, { size: 13, className: "tb-prog-caret" }), t('topbar.package.progressLogs')] }), _jsx("pre", { ref: logsRef, children: logs.join('\n') || '…' })] }), _jsx("div", { className: "tb-prog-foot", children: _jsx("button", { type: "button", className: "tb-prog-close", onClick: onClose, children: t('topbar.package.progressClose') }) })] }) }));
|
|
573
|
+
}
|
|
574
|
+
function PackageHistoryDialog({ onClose, onRetry, t }) {
|
|
575
|
+
const [records, setRecords] = useState([]);
|
|
576
|
+
const [loading, setLoading] = useState(true);
|
|
577
|
+
const fetchHistory = async () => {
|
|
578
|
+
try {
|
|
579
|
+
const j = await getStudioBuildClient().listBuildHistory();
|
|
580
|
+
setRecords((j.records ?? []));
|
|
581
|
+
}
|
|
582
|
+
catch { /* empty */ }
|
|
583
|
+
setLoading(false);
|
|
584
|
+
};
|
|
585
|
+
useEffect(() => { fetchHistory(); }, []);
|
|
586
|
+
const handleDelete = async (id) => {
|
|
587
|
+
try {
|
|
588
|
+
await getStudioBuildClient().deleteBuildHistory(id, { clean: true });
|
|
589
|
+
setRecords(prev => prev.filter(r => r.id !== id));
|
|
590
|
+
}
|
|
591
|
+
catch { /* ignore */ }
|
|
592
|
+
};
|
|
593
|
+
const fmtDate = (ts) => new Date(ts).toLocaleString();
|
|
594
|
+
const fmtDuration = (ms) => ms >= 60000 ? `${(ms / 60000).toFixed(1)}m` : `${(ms / 1000).toFixed(1)}s`;
|
|
595
|
+
return (_jsx("div", { className: "tb-progress-overlay", onClick: (e) => { if (e.target === e.currentTarget)
|
|
596
|
+
onClose(); }, children: _jsxs("div", { className: "tb-progress-dialog", style: { minWidth: 420, maxHeight: '70vh' }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', marginBottom: 12 }, children: [_jsx("span", { style: { fontWeight: 600, fontSize: 14 }, children: t('topbar.package.history') }), _jsx("button", { type: "button", onClick: onClose, style: { fontSize: 12, cursor: 'pointer', background: 'none', border: 'none', color: 'inherit' }, children: "\u2715" })] }), loading && _jsx("div", { style: { textAlign: 'center', padding: 20, opacity: 0.6 }, children: "\u2026" }), !loading && records.length === 0 && (_jsx("div", { style: { textAlign: 'center', padding: 20, opacity: 0.6 }, children: t('topbar.package.historyEmpty') })), _jsx("div", { style: { overflowY: 'auto', maxHeight: 'calc(70vh - 80px)' }, children: records.map((rec) => (_jsxs("div", { style: {
|
|
597
|
+
padding: '8px 10px', borderBottom: '1px solid rgba(255,255,255,0.06)',
|
|
598
|
+
display: 'flex', alignItems: 'center', gap: 8, fontSize: 12,
|
|
599
|
+
}, children: [_jsx("span", { style: { width: 8, height: 8, borderRadius: '50%', background: rec.status === 'success' ? '#4ade80' : '#f87171', flexShrink: 0 } }), _jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [_jsxs("div", { style: { fontWeight: 500 }, children: [rec.slug, " \u2014 ", rec.platform, rec.usedCachedShell && _jsx("span", { style: { opacity: 0.5, marginLeft: 4 }, children: "(cached)" })] }), _jsxs("div", { style: { opacity: 0.6 }, children: [fmtDate(rec.createdAt), " \u00B7 ", fmtDuration(rec.durationMs), rec.error && _jsx("span", { style: { color: '#f87171', marginLeft: 4 }, children: rec.error.slice(0, 60) })] })] }), rec.status === 'failed' && (_jsxs("button", { type: "button", onClick: () => onRetry(rec.slug, rec.platform), style: { fontSize: 11, cursor: 'pointer', display: 'flex', alignItems: 'center', gap: 3, padding: '2px 6px', borderRadius: 3, border: '1px solid rgba(255,255,255,0.15)', background: 'transparent', color: 'inherit' }, title: t('topbar.package.historyRetry'), children: [_jsx(RefreshCw, { size: 11 }), " ", t('topbar.package.historyRetry')] })), _jsx("button", { type: "button", onClick: () => handleDelete(rec.id), style: { fontSize: 11, cursor: 'pointer', display: 'flex', alignItems: 'center', gap: 3, padding: '2px 6px', borderRadius: 3, border: '1px solid rgba(255,255,255,0.1)', background: 'transparent', color: 'inherit', opacity: 0.6 }, title: t('topbar.package.historyDelete'), children: _jsx(Trash2, { size: 11 }) })] }, rec.id))) })] }) }));
|
|
600
|
+
}
|
|
601
|
+
function DashboardToggle() {
|
|
602
|
+
const dashboardOpen = useShellStore((s) => s.activeOverlay === 'dashboard');
|
|
603
|
+
const openOverlay = useShellStore((s) => s.openOverlay);
|
|
604
|
+
const closeOverlay = useShellStore((s) => s.closeOverlay);
|
|
605
|
+
return (_jsx("button", { className: `tb-icon-btn${dashboardOpen ? ' active' : ''}`, onClick: () => (dashboardOpen ? closeOverlay() : openOverlay('dashboard')), title: "Dashboard \u2014 Run/Thread/Provider monitoring", children: _jsx(CircleGauge, { size: 16 }) }));
|
|
606
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type PublishOptionKind = 'target' | 'option' | 'tool';
|
|
2
|
+
export interface PublishOptionMeta {
|
|
3
|
+
/** Stable id — also the `data-onboard` DOM anchor + i18n doc key. */
|
|
4
|
+
id: string;
|
|
5
|
+
kind: PublishOptionKind;
|
|
6
|
+
/** Coming-soon / disabled (iOS, platform publish) — grayed, skipped by the tour. */
|
|
7
|
+
gray?: boolean;
|
|
8
|
+
/** Coach-mark callout placement relative to the anchored element. */
|
|
9
|
+
place: 'below' | 'left';
|
|
10
|
+
}
|
|
11
|
+
/** Ordered as they appear in the dropdown. `gray` items render but the tour skips them. */
|
|
12
|
+
export declare const PUBLISH_OPTIONS: PublishOptionMeta[];
|
|
13
|
+
export interface PublishDoc {
|
|
14
|
+
what: string;
|
|
15
|
+
when: string;
|
|
16
|
+
}
|
|
17
|
+
type Translate = (key: string, opts?: Record<string, string | number>) => string;
|
|
18
|
+
/** Resolve the what/when copy for an option from i18n (falls back to empty). */
|
|
19
|
+
export declare function publishDoc(t: Translate, id: string): PublishDoc;
|
|
20
|
+
export {};
|