@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,82 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { Sparkles, RefreshCw } from 'lucide-react';
|
|
4
|
+
import { useTranslation } from '../i18n/index.js';
|
|
5
|
+
import { Section } from '../components/SettingsPrimitives.js';
|
|
6
|
+
import { SPLASH_THEMES, themeById } from './themes.js';
|
|
7
|
+
import { useSplashConfig } from './store.js';
|
|
8
|
+
import { DEFAULT_SPLASH } from './types.js';
|
|
9
|
+
/**
|
|
10
|
+
* SettingsPanel section node for the boot splash.
|
|
11
|
+
*
|
|
12
|
+
* The boot splash itself is rendered by `index.html` BEFORE React mounts —
|
|
13
|
+
* this section only writes the persisted config. A "应用并刷新预览" button
|
|
14
|
+
* triggers a full reload so the player can actually see the splash they
|
|
15
|
+
* just configured (the inline script reads localStorage on page-load).
|
|
16
|
+
*
|
|
17
|
+
* AI / external clients can also POST /api/boot-splash to mutate this same
|
|
18
|
+
* config — the store reconciles server → client on mount and writes back
|
|
19
|
+
* on every save.
|
|
20
|
+
*/
|
|
21
|
+
export function BootSplashSection() {
|
|
22
|
+
const { t } = useTranslation();
|
|
23
|
+
const [cfg, setCfg] = useSplashConfig();
|
|
24
|
+
const update = (patch) => {
|
|
25
|
+
setCfg({ ...cfg, ...patch });
|
|
26
|
+
};
|
|
27
|
+
const active = themeById(cfg.theme);
|
|
28
|
+
const preview = useMemo(() => (_jsxs("div", { style: {
|
|
29
|
+
marginTop: 8,
|
|
30
|
+
padding: '10px 12px',
|
|
31
|
+
borderRadius: 8,
|
|
32
|
+
border: `1px solid ${active.swatch}44`,
|
|
33
|
+
background: `linear-gradient(135deg, ${active.swatch}10, transparent 70%), rgba(20,24,28,0.6)`,
|
|
34
|
+
display: 'flex',
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
gap: 10,
|
|
37
|
+
}, "aria-label": "splash preview swatch", children: [_jsx("span", { style: {
|
|
38
|
+
width: 9,
|
|
39
|
+
height: 9,
|
|
40
|
+
borderRadius: '50%',
|
|
41
|
+
background: active.swatch,
|
|
42
|
+
boxShadow: `0 0 8px ${active.swatch}88`,
|
|
43
|
+
flexShrink: 0,
|
|
44
|
+
} }), _jsx("span", { style: { color: active.swatch, fontWeight: 600, fontSize: 13 }, children: cfg.title }), _jsx("span", { style: { marginLeft: 'auto', fontSize: 11, opacity: 0.55 }, children: cfg.subtitle })] })), [active, cfg.title, cfg.subtitle]);
|
|
45
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Section, { icon: _jsx(Sparkles, { size: 14 }), title: t('boot.theme.title'), hint: t('boot.theme.hint'), children: [_jsx("div", { style: { display: 'flex', flexDirection: 'column', gap: 8 }, children: SPLASH_THEMES.map((theme) => {
|
|
46
|
+
const checked = theme.id === cfg.theme;
|
|
47
|
+
return (_jsxs("label", { style: {
|
|
48
|
+
display: 'flex',
|
|
49
|
+
alignItems: 'flex-start',
|
|
50
|
+
gap: 10,
|
|
51
|
+
padding: '8px 10px',
|
|
52
|
+
borderRadius: 6,
|
|
53
|
+
border: `1px solid ${checked ? theme.swatch + '55' : 'rgba(255,255,255,0.06)'}`,
|
|
54
|
+
background: checked ? `${theme.swatch}0d` : 'transparent',
|
|
55
|
+
cursor: 'pointer',
|
|
56
|
+
}, children: [_jsx("input", { type: "radio", name: "splash-theme", checked: checked, onChange: () => update({ theme: theme.id }), style: { marginTop: 3, accentColor: theme.swatch } }), _jsx("span", { "aria-hidden": true, style: {
|
|
57
|
+
width: 10, height: 10, borderRadius: '50%',
|
|
58
|
+
background: theme.swatch,
|
|
59
|
+
boxShadow: `0 0 6px ${theme.swatch}88`,
|
|
60
|
+
flexShrink: 0,
|
|
61
|
+
marginTop: 5,
|
|
62
|
+
} }), _jsxs("span", { style: { display: 'flex', flexDirection: 'column' }, children: [_jsx("span", { style: { fontSize: 13, fontWeight: 600, color: checked ? theme.swatch : 'var(--text-secondary)' }, children: t(theme.labelKey) }), _jsx("span", { style: { fontSize: 11, opacity: 0.6, marginTop: 2 }, children: t(theme.descKey) })] })] }, theme.id));
|
|
63
|
+
}) }), preview] }), _jsx(Section, { icon: _jsx(Sparkles, { size: 14 }), title: t('boot.copy.title'), hint: t('boot.copy.hint'), children: _jsxs("div", { style: { display: 'grid', gridTemplateColumns: '90px 1fr', gap: 8, alignItems: 'center' }, children: [_jsx("label", { htmlFor: "splash-title", style: { fontSize: 12, opacity: 0.75 }, children: t('boot.copy.titleLabel') }), _jsx("input", { id: "splash-title", type: "text", value: cfg.title, onChange: (e) => update({ title: e.target.value }), placeholder: DEFAULT_SPLASH.title, style: inputStyle }), _jsx("label", { htmlFor: "splash-sub", style: { fontSize: 12, opacity: 0.75 }, children: t('boot.copy.subtitleLabel') }), _jsx("input", { id: "splash-sub", type: "text", value: cfg.subtitle, onChange: (e) => update({ subtitle: e.target.value }), placeholder: DEFAULT_SPLASH.subtitle, style: inputStyle })] }) }), _jsxs(Section, { icon: _jsx(Sparkles, { size: 14 }), title: t('boot.components.title'), hint: t('boot.components.hint'), children: [_jsxs("label", { style: toggleStyle, children: [_jsx("input", { type: "checkbox", checked: cfg.showProgressBar, onChange: (e) => update({ showProgressBar: e.target.checked }) }), _jsx("span", { children: t('boot.components.showProgressBar') }), _jsx("span", { style: { opacity: 0.5, fontSize: 11, marginLeft: 8 }, children: t('boot.components.showProgressBarHint') })] }), _jsxs("label", { style: toggleStyle, children: [_jsx("input", { type: "checkbox", checked: cfg.showBusInventory, onChange: (e) => update({ showBusInventory: e.target.checked }) }), _jsx("span", { children: t('boot.components.showBusInventory') }), _jsx("span", { style: { opacity: 0.5, fontSize: 11, marginLeft: 8 }, children: t('boot.components.showBusInventoryHint') })] })] }), _jsx(Section, { icon: _jsx(RefreshCw, { size: 14 }), title: t('boot.apply.title'), children: _jsxs("div", { style: { display: 'flex', gap: 8, alignItems: 'center', flexWrap: 'wrap' }, children: [_jsxs("button", { type: "button", className: "settings-edit-btn", onClick: () => window.location.reload(), title: t('boot.apply.reloadTooltip'), children: [_jsx(RefreshCw, { size: 12 }), " ", t('boot.apply.reloadButton')] }), _jsx("button", { type: "button", className: "settings-edit-btn", onClick: () => setCfg({ ...DEFAULT_SPLASH }), title: t('boot.apply.resetTooltip'), children: t('boot.apply.resetButton') }), _jsxs("span", { style: { fontSize: 11, opacity: 0.5, marginLeft: 'auto' }, children: [t('boot.apply.apiHintBefore'), " ", _jsx("code", { style: { background: 'rgba(255,255,255,0.04)', padding: '1px 4px', borderRadius: 3 }, children: "/api/boot-splash" }), " ", t('boot.apply.apiHintAfter')] })] }) })] }));
|
|
64
|
+
}
|
|
65
|
+
const inputStyle = {
|
|
66
|
+
background: 'rgba(0,0,0,0.4)',
|
|
67
|
+
border: '1px solid rgba(255,255,255,0.08)',
|
|
68
|
+
borderRadius: 5,
|
|
69
|
+
padding: '6px 9px',
|
|
70
|
+
color: 'var(--text-primary)',
|
|
71
|
+
fontSize: 12,
|
|
72
|
+
fontFamily: 'inherit',
|
|
73
|
+
outline: 'none',
|
|
74
|
+
};
|
|
75
|
+
const toggleStyle = {
|
|
76
|
+
display: 'flex',
|
|
77
|
+
alignItems: 'center',
|
|
78
|
+
gap: 8,
|
|
79
|
+
padding: '6px 0',
|
|
80
|
+
fontSize: 12,
|
|
81
|
+
cursor: 'pointer',
|
|
82
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// interface 广播流 boot 接线 —— 每页 boot 调一次 `bootBroadcast()`,拉起唯一公共 `/ws`
|
|
2
|
+
// 广播连接,并挂上 app-agnostic 的两类帧处理:
|
|
3
|
+
// - `telemetry` → 喂 telemetry slice(观测;P3 会随观测面下沉到 app)
|
|
4
|
+
// - `telemetry` → 喂 telemetry slice
|
|
5
|
+
//
|
|
6
|
+
// daemon-tick-* 帧不在这里处理 —— 那是 chat 的事,chat boot 调 subscribeDaemonTick()
|
|
7
|
+
// 自行订阅同一条广播流(见 packages/chat/src/session-store/daemon-tick.ts)。
|
|
8
|
+
//
|
|
9
|
+
// 取代了原 store.ts 里 module-load 自动 connectDaemonWs 的反模式:现在「建 socket」
|
|
10
|
+
// 由 boot 显式发起、全页单例,import store 不再有开 socket 的副作用。
|
|
11
|
+
import { connect, subscribeBroadcast } from '../lib/broadcast-stream.js';
|
|
12
|
+
import { useShellStore } from '../store.js';
|
|
13
|
+
const _BOOT_FLAG = '__FORGEAX_BOOT_BROADCAST__';
|
|
14
|
+
/** 幂等:多个 boot 路径/HMR 重复调只接线一次;connect 本身也幂等。 */
|
|
15
|
+
export function bootBroadcast() {
|
|
16
|
+
if (typeof window === 'undefined')
|
|
17
|
+
return;
|
|
18
|
+
const gt = globalThis;
|
|
19
|
+
if (!gt[_BOOT_FLAG]) {
|
|
20
|
+
gt[_BOOT_FLAG] = true;
|
|
21
|
+
// Telemetry (trace+log) 主信道:node sidecar → server → WS `{type:'telemetry', records}`。
|
|
22
|
+
subscribeBroadcast('telemetry', (m) => {
|
|
23
|
+
const records = Array.isArray(m.records)
|
|
24
|
+
? (m.records)
|
|
25
|
+
: [];
|
|
26
|
+
if (records.length)
|
|
27
|
+
useShellStore.getState().pushTelemetry(records);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
// 每次都确保连接活着(幂等)。
|
|
31
|
+
connect();
|
|
32
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Boot driver — the React-side half of the boot splash handshake.
|
|
3
|
+
*
|
|
4
|
+
* The inline bootstrap in index.html exposes `window.__forgeaxBoot` with two
|
|
5
|
+
* methods: `progress({pct, label})` and `done()`. While React is mounting we
|
|
6
|
+
* call these to drive the visible progress bar; after the first paint we
|
|
7
|
+
* fire `done()` so the splash fades out and the studio takes over.
|
|
8
|
+
*
|
|
9
|
+
* The contract is one-way and lossy: missing window.__forgeaxBoot (e.g. user
|
|
10
|
+
* loaded a stripped index.html) is silently ignored — the studio still works,
|
|
11
|
+
* just without splash control.
|
|
12
|
+
*/
|
|
13
|
+
function bootApi() {
|
|
14
|
+
if (typeof window === 'undefined')
|
|
15
|
+
return null;
|
|
16
|
+
return window.__forgeaxBoot ?? null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Called at the top of main.tsx (before createRoot.render) to mark "JS is
|
|
20
|
+
* executing, React is about to mount".
|
|
21
|
+
*/
|
|
22
|
+
export function bootStageEntry() {
|
|
23
|
+
bootApi()?.progress({ pct: 60, label: 'mounting shell' });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Called from <App/>'s first useEffect to mark "React tree is wired and
|
|
27
|
+
* client-side effects are firing". One rAF later we declare done().
|
|
28
|
+
*/
|
|
29
|
+
export function bootStageAppMounted() {
|
|
30
|
+
const api = bootApi();
|
|
31
|
+
if (!api)
|
|
32
|
+
return;
|
|
33
|
+
api.progress({ pct: 92, label: 'wiring panels' });
|
|
34
|
+
// Wait for the first composited paint so the splash fade lines up with
|
|
35
|
+
// the real studio appearing underneath — otherwise the player sees a
|
|
36
|
+
// brief blank flash.
|
|
37
|
+
if (typeof window === 'undefined' || typeof window.requestAnimationFrame !== 'function') {
|
|
38
|
+
api.done();
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
window.requestAnimationFrame(() => {
|
|
42
|
+
window.requestAnimationFrame(() => {
|
|
43
|
+
api.progress({ pct: 100, label: 'ready' });
|
|
44
|
+
api.done();
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Boot splash config store.
|
|
3
|
+
*
|
|
4
|
+
* Source of truth lives in two places:
|
|
5
|
+
* - localStorage `forgeax.boot.splash.v1` — read synchronously by the inline
|
|
6
|
+
* bootstrap in index.html BEFORE React mounts, so the chosen theme paints
|
|
7
|
+
* on the first frame.
|
|
8
|
+
* - `<projectRoot>/.forgeax/boot-splash.json` — persisted server-side so AI
|
|
9
|
+
* in ChatPanel can `curl POST /api/boot-splash` and the change carries
|
|
10
|
+
* across browsers / clean localStorage.
|
|
11
|
+
*
|
|
12
|
+
* On Settings panel mount we GET /api/boot-splash and reconcile to localStorage
|
|
13
|
+
* (server wins). On any save in Settings we write localStorage AND POST to the
|
|
14
|
+
* server. The inline bootstrap only ever reads localStorage — server fetch
|
|
15
|
+
* during boot is too slow.
|
|
16
|
+
*/
|
|
17
|
+
import { useEffect, useSyncExternalStore } from 'react';
|
|
18
|
+
import { DEFAULT_SPLASH, SPLASH_STORAGE_KEY, isValidSplashConfig, } from './types.js';
|
|
19
|
+
let cached = DEFAULT_SPLASH;
|
|
20
|
+
let initialized = false;
|
|
21
|
+
const listeners = new Set();
|
|
22
|
+
function readLocal() {
|
|
23
|
+
if (typeof window === 'undefined')
|
|
24
|
+
return DEFAULT_SPLASH;
|
|
25
|
+
try {
|
|
26
|
+
const raw = window.localStorage.getItem(SPLASH_STORAGE_KEY);
|
|
27
|
+
if (!raw)
|
|
28
|
+
return DEFAULT_SPLASH;
|
|
29
|
+
const parsed = JSON.parse(raw);
|
|
30
|
+
return isValidSplashConfig(parsed) ? parsed : DEFAULT_SPLASH;
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return DEFAULT_SPLASH;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function writeLocal(c) {
|
|
37
|
+
if (typeof window === 'undefined')
|
|
38
|
+
return;
|
|
39
|
+
try {
|
|
40
|
+
window.localStorage.setItem(SPLASH_STORAGE_KEY, JSON.stringify(c));
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
/* localStorage may throw in privacy mode — silently ignore, server still holds the truth */
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function emit() {
|
|
47
|
+
for (const fn of listeners)
|
|
48
|
+
fn();
|
|
49
|
+
}
|
|
50
|
+
function ensureInit() {
|
|
51
|
+
if (initialized)
|
|
52
|
+
return;
|
|
53
|
+
initialized = true;
|
|
54
|
+
cached = readLocal();
|
|
55
|
+
}
|
|
56
|
+
export const bootSplashStore = {
|
|
57
|
+
get() {
|
|
58
|
+
ensureInit();
|
|
59
|
+
return cached;
|
|
60
|
+
},
|
|
61
|
+
set(next) {
|
|
62
|
+
ensureInit();
|
|
63
|
+
cached = next;
|
|
64
|
+
writeLocal(next);
|
|
65
|
+
emit();
|
|
66
|
+
},
|
|
67
|
+
subscribe(fn) {
|
|
68
|
+
listeners.add(fn);
|
|
69
|
+
return () => {
|
|
70
|
+
listeners.delete(fn);
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* React hook exposing the current splash config + a setter. Setter writes
|
|
76
|
+
* localStorage immediately AND fires a POST to /api/boot-splash so AI's
|
|
77
|
+
* server-side view stays in sync. Server failure is silent — the user can
|
|
78
|
+
* still iterate locally; AI just won't see the change until next save.
|
|
79
|
+
*/
|
|
80
|
+
export function useSplashConfig() {
|
|
81
|
+
const value = useSyncExternalStore(bootSplashStore.subscribe, bootSplashStore.get, bootSplashStore.get);
|
|
82
|
+
// On first mount, reconcile from server (server wins if it has a saved file).
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
let cancelled = false;
|
|
85
|
+
void (async () => {
|
|
86
|
+
try {
|
|
87
|
+
const r = await fetch('/api/boot-splash');
|
|
88
|
+
if (!r.ok)
|
|
89
|
+
return;
|
|
90
|
+
const j = (await r.json());
|
|
91
|
+
if (cancelled)
|
|
92
|
+
return;
|
|
93
|
+
if (j.config && isValidSplashConfig(j.config)) {
|
|
94
|
+
bootSplashStore.set(j.config);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
/* server down — keep local copy */
|
|
99
|
+
}
|
|
100
|
+
})();
|
|
101
|
+
return () => { cancelled = true; };
|
|
102
|
+
}, []);
|
|
103
|
+
const setter = (next) => {
|
|
104
|
+
bootSplashStore.set(next);
|
|
105
|
+
// Fire-and-forget server save. AI reads from the same endpoint, so this
|
|
106
|
+
// keeps server side in sync. Errors don't block the UI.
|
|
107
|
+
void fetch('/api/boot-splash', {
|
|
108
|
+
method: 'POST',
|
|
109
|
+
headers: { 'content-type': 'application/json' },
|
|
110
|
+
body: JSON.stringify(next),
|
|
111
|
+
}).catch(() => { });
|
|
112
|
+
};
|
|
113
|
+
return [value, setter];
|
|
114
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const SPLASH_THEMES = [
|
|
2
|
+
{
|
|
3
|
+
id: 'classic-lime',
|
|
4
|
+
label: 'Classic Lime',
|
|
5
|
+
labelKey: 'themes.classicLime.label',
|
|
6
|
+
swatch: '#d4ff48',
|
|
7
|
+
desc: 'Current style · lime accent + horizontal progress bar',
|
|
8
|
+
descKey: 'themes.classicLime.desc',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: 'neon-pulse',
|
|
12
|
+
label: 'Neon Pulse',
|
|
13
|
+
labelKey: 'themes.neonPulse.label',
|
|
14
|
+
swatch: '#7dd3fc',
|
|
15
|
+
desc: 'Radial pulse animation + full-screen logo + arc progress bar',
|
|
16
|
+
descKey: 'themes.neonPulse.desc',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
export function themeById(id) {
|
|
20
|
+
return SPLASH_THEMES.find((t) => t.id === id) ?? SPLASH_THEMES[0];
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Boot splash config — small enough to live in localStorage AND server-side
|
|
3
|
+
* `.forgeax/boot-splash.json`. Schema versioned so future fields don't break
|
|
4
|
+
* older saves (load() drops anything with `v !== current` back to defaults).
|
|
5
|
+
*
|
|
6
|
+
* The inline splash bootstrap in `index.html` reads the localStorage entry
|
|
7
|
+
* BEFORE React loads, so this shape must stay JSON-serializable and free of
|
|
8
|
+
* any TS-side dependencies.
|
|
9
|
+
*/
|
|
10
|
+
export const SPLASH_SCHEMA_VERSION = 1;
|
|
11
|
+
export const DEFAULT_SPLASH = {
|
|
12
|
+
v: SPLASH_SCHEMA_VERSION,
|
|
13
|
+
theme: 'classic-lime',
|
|
14
|
+
title: 'forgeax · Studio',
|
|
15
|
+
subtitle: 'booting shell…',
|
|
16
|
+
showProgressBar: true,
|
|
17
|
+
showBusInventory: false,
|
|
18
|
+
};
|
|
19
|
+
export const SPLASH_STORAGE_KEY = 'forgeax.boot.splash.v1';
|
|
20
|
+
export function isValidSplashConfig(x) {
|
|
21
|
+
if (!x || typeof x !== 'object')
|
|
22
|
+
return false;
|
|
23
|
+
const o = x;
|
|
24
|
+
return (o.v === SPLASH_SCHEMA_VERSION &&
|
|
25
|
+
(o.theme === 'classic-lime' || o.theme === 'neon-pulse') &&
|
|
26
|
+
typeof o.title === 'string' &&
|
|
27
|
+
typeof o.subtitle === 'string' &&
|
|
28
|
+
typeof o.showProgressBar === 'boolean' &&
|
|
29
|
+
typeof o.showBusInventory === 'boolean');
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* BrandProvider + useBrand — React-side brand pack consumer.
|
|
4
|
+
*
|
|
5
|
+
* Wraps the app in main.tsx. Inside the tree, call `useBrand()` to read the
|
|
6
|
+
* active pack synchronously. Code outside React (module scope, store, vite
|
|
7
|
+
* plugin) should call `getBrandSync()` from ./runtime instead.
|
|
8
|
+
*
|
|
9
|
+
* The provider trusts `window.__BRAND__` (injected by vite-plugin-brand at
|
|
10
|
+
* dev/build time). It does not fetch /api/brand — the inline injection is
|
|
11
|
+
* synchronous and avoids a flash of un-branded content.
|
|
12
|
+
*/
|
|
13
|
+
import { createContext, useContext, useMemo } from 'react';
|
|
14
|
+
import { getBrandRuntimeSync, getBrandAssetUrl } from './runtime.js';
|
|
15
|
+
const BrandContext = createContext(null);
|
|
16
|
+
export function BrandProvider({ children }) {
|
|
17
|
+
const value = useMemo(() => getBrandRuntimeSync(), []);
|
|
18
|
+
return _jsx(BrandContext.Provider, { value: value, children: children });
|
|
19
|
+
}
|
|
20
|
+
export function useBrand() {
|
|
21
|
+
const ctx = useContext(BrandContext);
|
|
22
|
+
if (ctx)
|
|
23
|
+
return ctx.config;
|
|
24
|
+
return getBrandRuntimeSync().config;
|
|
25
|
+
}
|
|
26
|
+
export function useBrandRuntime() {
|
|
27
|
+
const ctx = useContext(BrandContext);
|
|
28
|
+
if (ctx)
|
|
29
|
+
return ctx;
|
|
30
|
+
return getBrandRuntimeSync();
|
|
31
|
+
}
|
|
32
|
+
export function useBrandAsset(key) {
|
|
33
|
+
// Re-derive on every render; getBrandAssetUrl is pure and cheap.
|
|
34
|
+
return getBrandAssetUrl(key);
|
|
35
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module-scope brand runtime.
|
|
3
|
+
*
|
|
4
|
+
* The vite plugin injects `window.__BRAND__` inline in `index.html` BEFORE
|
|
5
|
+
* the `main.tsx` module fetch starts, so `getBrandSync()` remains safe for
|
|
6
|
+
* early module callers.
|
|
7
|
+
*
|
|
8
|
+
* If `window.__BRAND__` is missing (e.g. the user stripped the inline script,
|
|
9
|
+
* or unit tests), `getBrandSync()` falls back to a hard-coded ForgeaX stub so
|
|
10
|
+
* UI code never throws. The fallback intentionally mirrors
|
|
11
|
+
* `brand/defaults.forgeax.json` — keep it in sync if you ever change the
|
|
12
|
+
* canonical defaults.
|
|
13
|
+
*/
|
|
14
|
+
const FALLBACK = {
|
|
15
|
+
id: 'forgeax',
|
|
16
|
+
schemaVersion: 1,
|
|
17
|
+
product: {
|
|
18
|
+
name: 'ForgeaX Studio',
|
|
19
|
+
shortName: 'forgeax',
|
|
20
|
+
tagline: 'AI-first game dev shell — open desktop edition',
|
|
21
|
+
},
|
|
22
|
+
assistant: {
|
|
23
|
+
name: 'Forge',
|
|
24
|
+
avatarSrc: null,
|
|
25
|
+
cardName: { zh: '主线制作人', en: 'Lead Producer' },
|
|
26
|
+
},
|
|
27
|
+
splash: {
|
|
28
|
+
title: 'ForgeaX · Studio',
|
|
29
|
+
subtitle: 'booting shell…',
|
|
30
|
+
theme: 'classic-lime',
|
|
31
|
+
},
|
|
32
|
+
providers: {
|
|
33
|
+
native: { id: 'forgeax', label: 'forgeax', title: 'ForgeaX native CLI provider' },
|
|
34
|
+
},
|
|
35
|
+
links: {
|
|
36
|
+
repoUrl: 'https://github.com/ForgeaXGame/forgeax-studio',
|
|
37
|
+
communityUrl: 'https://forge.games',
|
|
38
|
+
},
|
|
39
|
+
assets: {
|
|
40
|
+
favicon: 'assets/favicon.svg',
|
|
41
|
+
logo: 'assets/logo.svg',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
const FALLBACK_RUNTIME = {
|
|
45
|
+
config: FALLBACK,
|
|
46
|
+
source: { kind: 'default' },
|
|
47
|
+
assetBaseUrl: '/brand/',
|
|
48
|
+
};
|
|
49
|
+
export function getBrandRuntimeSync() {
|
|
50
|
+
if (typeof window !== 'undefined' && window.__BRAND__) {
|
|
51
|
+
return window.__BRAND__;
|
|
52
|
+
}
|
|
53
|
+
return FALLBACK_RUNTIME;
|
|
54
|
+
}
|
|
55
|
+
export function getBrandSync() {
|
|
56
|
+
return getBrandRuntimeSync().config;
|
|
57
|
+
}
|
|
58
|
+
export function getBrandAssetUrl(asset) {
|
|
59
|
+
const rt = getBrandRuntimeSync();
|
|
60
|
+
const map = {
|
|
61
|
+
favicon: rt.config.assets?.favicon,
|
|
62
|
+
logo: rt.config.assets?.logo,
|
|
63
|
+
avatar: rt.config.assistant.avatarSrc,
|
|
64
|
+
};
|
|
65
|
+
const rel = map[asset];
|
|
66
|
+
if (!rel)
|
|
67
|
+
return null;
|
|
68
|
+
// assets is published under `<base>/<asset-relative>` by the vite plugin.
|
|
69
|
+
const base = rt.assetBaseUrl.endsWith('/') ? rt.assetBaseUrl : `${rt.assetBaseUrl}/`;
|
|
70
|
+
return `${base}${rel.replace(/^\.?\/+/, '')}`;
|
|
71
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brand pack — interface-side type mirror.
|
|
3
|
+
*
|
|
4
|
+
* Structurally identical to `packages/server/src/brand/types.ts`. Kept as a
|
|
5
|
+
* standalone copy because vite + react interface is a separate package and
|
|
6
|
+
* does not depend on server. If you change a field, update both files (and
|
|
7
|
+
* `brand/schema.json` + `brand/defaults.forgeax.json`).
|
|
8
|
+
*/
|
|
9
|
+
export const BRAND_SCHEMA_VERSION = 1;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore, } from 'react';
|
|
3
|
+
import { MoreHorizontal, Pin, Search } from 'lucide-react';
|
|
4
|
+
import { useHost } from '../../core/app-shell/index.js';
|
|
5
|
+
import { STORAGE_KEYS } from '../../lib/storageKeys.js';
|
|
6
|
+
import { lucideIconOrBox } from '../../lib/lucide-icon.js';
|
|
7
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover.js';
|
|
8
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../ui/tooltip.js';
|
|
9
|
+
import { useTranslation } from '../../i18n/index.js';
|
|
10
|
+
import { activityRailCategory, addDefaultPinnedActivity, defaultPinnedActivityIds, groupDiscoverableActivities, localizeActivityRailEntries, migrateLegacyPinnedActivityIds, pinnedActivities, } from './activity-rail-model.js';
|
|
11
|
+
|
|
12
|
+
function readStoredIds(key) {
|
|
13
|
+
try {
|
|
14
|
+
const value = localStorage.getItem(key);
|
|
15
|
+
if (value === null)
|
|
16
|
+
return null;
|
|
17
|
+
const parsed = JSON.parse(value);
|
|
18
|
+
return Array.isArray(parsed) ? parsed.filter((id) => typeof id === 'string') : null;
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function writePinned(ids) {
|
|
25
|
+
try {
|
|
26
|
+
localStorage.setItem(STORAGE_KEYS.activityRailPinned, JSON.stringify(ids));
|
|
27
|
+
}
|
|
28
|
+
catch { /* quota */ }
|
|
29
|
+
}
|
|
30
|
+
function readMigrationFlag(key) {
|
|
31
|
+
try {
|
|
32
|
+
return localStorage.getItem(key) === '1';
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function writeMigrationFlag(key) {
|
|
39
|
+
try {
|
|
40
|
+
localStorage.setItem(key, '1');
|
|
41
|
+
}
|
|
42
|
+
catch { /* quota */ }
|
|
43
|
+
}
|
|
44
|
+
export function ActivityRail() {
|
|
45
|
+
const { t, i18n } = useTranslation();
|
|
46
|
+
const host = useHost();
|
|
47
|
+
const catalog = useSyncExternalStore(host.activities.subscribe, host.activities.getSnapshot, host.activities.getSnapshot);
|
|
48
|
+
const pages = useSyncExternalStore(host.pages.subscribe, host.pages.getSnapshot, host.pages.getSnapshot);
|
|
49
|
+
const [savedPinned, setSavedPinned] = useState(() => readStoredIds(STORAGE_KEYS.activityRailPinned));
|
|
50
|
+
const [moreOpen, setMoreOpen] = useState(false);
|
|
51
|
+
const [moreQuery, setMoreQuery] = useState('');
|
|
52
|
+
const [rovingId, setRovingId] = useState();
|
|
53
|
+
const moreSearchRef = useRef(null);
|
|
54
|
+
const firstMoreActionRef = useRef(null);
|
|
55
|
+
const pinnedRefs = useRef([]);
|
|
56
|
+
const migrationComplete = useRef(savedPinned !== null);
|
|
57
|
+
const videoGameDefaultMigrationComplete = useRef(readMigrationFlag(STORAGE_KEYS.activityRailPinnedVideoGameDefault));
|
|
58
|
+
const activities = useMemo(() => localizeActivityRailEntries(catalog.activities, i18n.language), [catalog.activities, i18n.language]);
|
|
59
|
+
const defaultPinnedIds = useMemo(() => defaultPinnedActivityIds(activities), [activities]);
|
|
60
|
+
const pinnedIds = savedPinned ?? defaultPinnedIds;
|
|
61
|
+
const pinned = useMemo(() => pinnedActivities(activities, pinnedIds), [activities, pinnedIds]);
|
|
62
|
+
const builtinPinned = useMemo(() => pinned.filter((activity) => activity.sourceLayer === 'builtin'), [pinned]);
|
|
63
|
+
const pluginPinned = useMemo(() => pinned.filter((activity) => activity.sourceLayer !== 'builtin'), [pinned]);
|
|
64
|
+
const groups = useMemo(() => groupDiscoverableActivities(activities, moreQuery), [activities, moreQuery]);
|
|
65
|
+
const activeTypeId = pages.instances.find((page) => page.encodedKey === pages.activeKey)?.typeId;
|
|
66
|
+
const activeActivityId = activities.find((activity) => activity.pageTypeId === activeTypeId)?.id;
|
|
67
|
+
const activePinned = pinned.some((activity) => activity.id === activeActivityId);
|
|
68
|
+
const moreActive = moreOpen || Boolean(activeActivityId && !activePinned);
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
if (migrationComplete.current || activities.length === 0)
|
|
71
|
+
return;
|
|
72
|
+
const legacyIds = readStoredIds(STORAGE_KEYS.activityRailPinnedLegacyV1);
|
|
73
|
+
if (legacyIds === null) {
|
|
74
|
+
migrationComplete.current = true;
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (!activities.some((activity) => activity.sourceLayer !== 'builtin'))
|
|
78
|
+
return;
|
|
79
|
+
const next = migrateLegacyPinnedActivityIds(legacyIds, activities);
|
|
80
|
+
migrationComplete.current = true;
|
|
81
|
+
setSavedPinned(next);
|
|
82
|
+
writePinned(next);
|
|
83
|
+
}, [activities]);
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
if (videoGameDefaultMigrationComplete.current || savedPinned === null || activities.length === 0)
|
|
86
|
+
return;
|
|
87
|
+
const next = addDefaultPinnedActivity(savedPinned, activities, 'video-game');
|
|
88
|
+
videoGameDefaultMigrationComplete.current = true;
|
|
89
|
+
writeMigrationFlag(STORAGE_KEYS.activityRailPinnedVideoGameDefault);
|
|
90
|
+
if (next.length === savedPinned.length)
|
|
91
|
+
return;
|
|
92
|
+
setSavedPinned(next);
|
|
93
|
+
writePinned(next);
|
|
94
|
+
}, [activities, savedPinned]);
|
|
95
|
+
useEffect(() => {
|
|
96
|
+
if (pinned.length === 0) {
|
|
97
|
+
setRovingId(undefined);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (rovingId && pinned.some((activity) => activity.id === rovingId))
|
|
101
|
+
return;
|
|
102
|
+
setRovingId(pinned.find((activity) => activity.id === activeActivityId)?.id
|
|
103
|
+
?? pinned[0]?.id);
|
|
104
|
+
}, [activeActivityId, pinned, rovingId]);
|
|
105
|
+
const togglePin = useCallback((id) => {
|
|
106
|
+
setSavedPinned((current) => {
|
|
107
|
+
const resolved = current ?? defaultPinnedIds;
|
|
108
|
+
const next = resolved.includes(id)
|
|
109
|
+
? resolved.filter((candidate) => candidate !== id)
|
|
110
|
+
: [...resolved, id];
|
|
111
|
+
writePinned(next);
|
|
112
|
+
return next;
|
|
113
|
+
});
|
|
114
|
+
}, [defaultPinnedIds]);
|
|
115
|
+
const onPinnedKeyDown = (event, index) => {
|
|
116
|
+
const count = pinned.length;
|
|
117
|
+
if (count === 0)
|
|
118
|
+
return;
|
|
119
|
+
let target;
|
|
120
|
+
if (event.key === 'ArrowDown' || event.key === 'ArrowRight')
|
|
121
|
+
target = (index + 1) % count;
|
|
122
|
+
else if (event.key === 'ArrowUp' || event.key === 'ArrowLeft')
|
|
123
|
+
target = (index - 1 + count) % count;
|
|
124
|
+
else if (event.key === 'Home')
|
|
125
|
+
target = 0;
|
|
126
|
+
else if (event.key === 'End')
|
|
127
|
+
target = count - 1;
|
|
128
|
+
else
|
|
129
|
+
return;
|
|
130
|
+
event.preventDefault();
|
|
131
|
+
const activity = pinned[target];
|
|
132
|
+
if (!activity)
|
|
133
|
+
return;
|
|
134
|
+
setRovingId(activity.id);
|
|
135
|
+
pinnedRefs.current[target]?.focus();
|
|
136
|
+
};
|
|
137
|
+
const pinnedButton = (activity, index) => {
|
|
138
|
+
const active = activity.pageTypeId === activeTypeId;
|
|
139
|
+
const Icon = lucideIconOrBox(activity.icon);
|
|
140
|
+
const category = activityRailCategory(activity);
|
|
141
|
+
return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("button", { ref: (element) => { pinnedRefs.current[index] = element; }, type: "button", className: `activity-rail-item${active ? ' active' : ''}`, "aria-label": activity.title, "aria-current": active ? 'page' : undefined, tabIndex: activity.id === rovingId ? 0 : -1, "data-activity-id": activity.id, onFocus: () => setRovingId(activity.id), onKeyDown: (event) => onPinnedKeyDown(event, index), onClick: () => void host.activities.launch(activity.id), children: [_jsx("span", { className: "activity-rail-item-ic", "aria-hidden": true, children: _jsx(Icon, { size: 22, strokeWidth: 1.7 }) }), _jsx("span", { className: "activity-rail-item-lb", children: activity.title })] }) }), _jsxs(TooltipContent, { side: "right", sideOffset: 10, className: "activity-rail-plugin-tip", children: [_jsx("div", { className: "activity-rail-plugin-tip-title", children: activity.title }), _jsx("div", { className: "activity-rail-plugin-tip-category", children: t(`sidebar.categories.${category}`) }), activity.description ? (_jsx("div", { className: "activity-rail-plugin-tip-description", children: activity.description })) : null] })] }, activity.id));
|
|
142
|
+
};
|
|
143
|
+
return (_jsx(TooltipProvider, { delayDuration: 260, skipDelayDuration: 80, children: _jsxs("nav", { className: "activity-rail thin-scrollbar", "aria-label": t('sidebar.extensionsHint'), "data-fx-slot": "ActivityRail", children: [_jsx("div", { className: "activity-rail-group", "data-category": "builtin", role: "toolbar", "aria-orientation": "vertical", "aria-label": t('sidebar.extensionsHint'), children: builtinPinned.map((activity) => pinnedButton(activity, pinned.indexOf(activity))) }), _jsx("div", { className: "activity-rail-group", "data-category": "pinned", role: "toolbar", "aria-orientation": "vertical", "aria-label": t('sidebar.extensionsHint'), children: pluginPinned.map((activity) => pinnedButton(activity, pinned.indexOf(activity))) }), _jsx("div", { className: "activity-rail-group activity-rail-group--more", children: _jsxs(Popover, { open: moreOpen, onOpenChange: (open) => {
|
|
144
|
+
setMoreOpen(open);
|
|
145
|
+
if (!open)
|
|
146
|
+
setMoreQuery('');
|
|
147
|
+
}, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", className: `activity-rail-item${moreActive ? ' active' : ''}`, title: t('sidebar.morePluginsHint'), "aria-label": t('sidebar.morePluginsHint'), "aria-haspopup": "dialog", "aria-expanded": moreOpen, "data-rail-action": "more-plugins", children: [_jsx("span", { className: "activity-rail-item-ic", "aria-hidden": true, children: _jsx(MoreHorizontal, { size: 22, strokeWidth: 1.7 }) }), _jsx("span", { className: "activity-rail-item-lb", children: t('sidebar.morePlugins') })] }) }), _jsxs(PopoverContent, { side: "right", align: "end", sideOffset: 10, className: "activity-rail-more", onOpenAutoFocus: (event) => {
|
|
148
|
+
event.preventDefault();
|
|
149
|
+
moreSearchRef.current?.focus();
|
|
150
|
+
}, children: [_jsx("div", { className: "activity-rail-more-hd", children: t('sidebar.morePlugins') }), _jsxs("div", { className: "activity-rail-more-search", children: [_jsx(Search, { size: 14, strokeWidth: 1.8, "aria-hidden": true }), _jsx("input", { ref: moreSearchRef, type: "search", className: "activity-rail-more-search-input", value: moreQuery, onChange: (event) => setMoreQuery(event.target.value), onKeyDown: (event) => {
|
|
151
|
+
if (event.key === 'ArrowDown') {
|
|
152
|
+
event.preventDefault();
|
|
153
|
+
firstMoreActionRef.current?.focus();
|
|
154
|
+
}
|
|
155
|
+
}, placeholder: t('sidebar.searchPlugins'), "aria-label": t('sidebar.searchPlugins') })] }), _jsx("div", { className: "activity-rail-more-body thin-scrollbar", children: groups.length === 0 ? (_jsx("div", { className: "activity-rail-more-empty", children: t('sidebar.noMatchingPlugins') })) : groups.map((group, groupIndex) => (_jsxs("section", { className: "activity-rail-more-sec", children: [_jsx("div", { className: "activity-rail-more-sec-hd", children: t(`sidebar.categories.${group.category}`) }), group.items.map((activity, itemIndex) => {
|
|
156
|
+
const isPinned = pinnedIds.includes(activity.id);
|
|
157
|
+
const active = activity.pageTypeId === activeTypeId;
|
|
158
|
+
const Icon = lucideIconOrBox(activity.icon);
|
|
159
|
+
return (_jsxs("div", { className: `activity-rail-more-row${active ? ' active' : ''}${isPinned ? ' pinned' : ''}`, children: [_jsxs("button", { ref: groupIndex === 0 && itemIndex === 0 ? firstMoreActionRef : undefined, type: "button", className: "activity-rail-more-open", onClick: async () => {
|
|
160
|
+
await host.activities.launch(activity.id);
|
|
161
|
+
setMoreOpen(false);
|
|
162
|
+
}, title: activity.description || activity.title, "aria-current": active ? 'page' : undefined, children: [_jsx("span", { className: "activity-rail-more-ic", "aria-hidden": true, children: _jsx(Icon, { size: 16, strokeWidth: 1.7 }) }), _jsxs("span", { className: "activity-rail-more-meta", children: [_jsx("span", { className: "activity-rail-more-name", children: activity.title }), activity.description ? (_jsx("span", { className: "activity-rail-more-desc", children: activity.description })) : null] })] }), _jsx("button", { type: "button", className: `activity-rail-more-pin${isPinned ? ' on' : ''}`, onClick: () => togglePin(activity.id), title: isPinned ? t('sidebar.unpinPlugin') : t('sidebar.pinPlugin'), "aria-label": `${isPinned ? t('sidebar.unpinPlugin') : t('sidebar.pinPlugin')}: ${activity.title}`, "aria-pressed": isPinned, children: _jsx(Pin, { size: 14, strokeWidth: isPinned ? 2.2 : 1.6 }) })] }, activity.id));
|
|
163
|
+
})] }, group.category))) })] })] }) })] }) }));
|
|
164
|
+
}
|