@elizaos/app-core 2.0.0-alpha.10

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.
Files changed (399) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +90 -0
  3. package/src/App.tsx +472 -0
  4. package/src/actions/character.test.ts +139 -0
  5. package/src/actions/character.ts +152 -0
  6. package/src/actions/chat-helpers.ts +100 -0
  7. package/src/actions/cloud.ts +59 -0
  8. package/src/actions/index.ts +12 -0
  9. package/src/actions/lifecycle.ts +175 -0
  10. package/src/actions/onboarding.ts +46 -0
  11. package/src/actions/triggers.ts +190 -0
  12. package/src/ambient.d.ts +16 -0
  13. package/src/api/client.ts +5516 -0
  14. package/src/api/index.ts +1 -0
  15. package/src/autonomy/index.ts +477 -0
  16. package/src/bridge/capacitor-bridge.ts +295 -0
  17. package/src/bridge/electrobun-rpc.ts +58 -0
  18. package/src/bridge/electrobun-runtime.ts +28 -0
  19. package/src/bridge/index.ts +5 -0
  20. package/src/bridge/native-plugins.ts +134 -0
  21. package/src/bridge/plugin-bridge.ts +352 -0
  22. package/src/bridge/storage-bridge.ts +162 -0
  23. package/src/chat/index.ts +250 -0
  24. package/src/coding/index.ts +43 -0
  25. package/src/components/AdvancedPageView.tsx +362 -0
  26. package/src/components/AgentActivityBox.tsx +49 -0
  27. package/src/components/ApiKeyConfig.tsx +224 -0
  28. package/src/components/AppsPageView.tsx +52 -0
  29. package/src/components/AppsView.tsx +293 -0
  30. package/src/components/AvatarLoader.tsx +86 -0
  31. package/src/components/AvatarSelector.tsx +223 -0
  32. package/src/components/BscTradePanel.tsx +549 -0
  33. package/src/components/BugReportModal.tsx +499 -0
  34. package/src/components/CharacterView.tsx +1645 -0
  35. package/src/components/ChatAvatar.test.ts +96 -0
  36. package/src/components/ChatAvatar.tsx +147 -0
  37. package/src/components/ChatComposer.tsx +330 -0
  38. package/src/components/ChatMessage.tsx +448 -0
  39. package/src/components/ChatModalView.test.tsx +118 -0
  40. package/src/components/ChatModalView.tsx +125 -0
  41. package/src/components/ChatView.tsx +992 -0
  42. package/src/components/CloudSourceControls.tsx +80 -0
  43. package/src/components/CodingAgentSettingsSection.tsx +536 -0
  44. package/src/components/CommandPalette.tsx +284 -0
  45. package/src/components/CompanionSceneHost.tsx +497 -0
  46. package/src/components/CompanionShell.tsx +31 -0
  47. package/src/components/CompanionView.tsx +109 -0
  48. package/src/components/ConfigPageView.tsx +758 -0
  49. package/src/components/ConfigSaveFooter.tsx +41 -0
  50. package/src/components/ConfirmModal.tsx +379 -0
  51. package/src/components/ConnectionFailedBanner.tsx +91 -0
  52. package/src/components/ConnectorsPageView.tsx +13 -0
  53. package/src/components/ConversationsSidebar.tsx +279 -0
  54. package/src/components/CustomActionEditor.tsx +1125 -0
  55. package/src/components/CustomActionsPanel.tsx +288 -0
  56. package/src/components/CustomActionsView.tsx +322 -0
  57. package/src/components/DatabasePageView.tsx +55 -0
  58. package/src/components/DatabaseView.tsx +814 -0
  59. package/src/components/ElizaCloudDashboard.tsx +1696 -0
  60. package/src/components/EmotePicker.tsx +529 -0
  61. package/src/components/ErrorBoundary.tsx +76 -0
  62. package/src/components/FineTuningView.tsx +1077 -0
  63. package/src/components/GameView.tsx +552 -0
  64. package/src/components/GameViewOverlay.tsx +133 -0
  65. package/src/components/GlobalEmoteOverlay.tsx +155 -0
  66. package/src/components/Header.test.tsx +413 -0
  67. package/src/components/Header.tsx +403 -0
  68. package/src/components/HeartbeatsView.tsx +1003 -0
  69. package/src/components/InventoryView.tsx +385 -0
  70. package/src/components/KnowledgeView.tsx +1128 -0
  71. package/src/components/LanguageDropdown.tsx +188 -0
  72. package/src/components/LifoMonitorPanel.tsx +196 -0
  73. package/src/components/LifoSandboxView.tsx +499 -0
  74. package/src/components/LoadingScreen.tsx +77 -0
  75. package/src/components/LogsPageView.tsx +17 -0
  76. package/src/components/LogsView.tsx +239 -0
  77. package/src/components/MediaGalleryView.tsx +433 -0
  78. package/src/components/MediaSettingsSection.tsx +893 -0
  79. package/src/components/MessageContent.tsx +815 -0
  80. package/src/components/OnboardingWizard.test.tsx +107 -0
  81. package/src/components/OnboardingWizard.tsx +189 -0
  82. package/src/components/PairingView.tsx +110 -0
  83. package/src/components/PermissionsSection.tsx +1186 -0
  84. package/src/components/PluginsPageView.tsx +9 -0
  85. package/src/components/PluginsView.tsx +3157 -0
  86. package/src/components/ProviderSwitcher.tsx +908 -0
  87. package/src/components/RestartBanner.tsx +76 -0
  88. package/src/components/RuntimeView.tsx +460 -0
  89. package/src/components/SaveCommandModal.tsx +211 -0
  90. package/src/components/SecretsView.tsx +569 -0
  91. package/src/components/SettingsView.tsx +825 -0
  92. package/src/components/ShellOverlays.tsx +41 -0
  93. package/src/components/ShortcutsOverlay.tsx +155 -0
  94. package/src/components/SkillsView.tsx +1435 -0
  95. package/src/components/StartupFailureView.tsx +63 -0
  96. package/src/components/StreamView.tsx +483 -0
  97. package/src/components/StripeEmbeddedCheckout.tsx +155 -0
  98. package/src/components/SubscriptionStatus.tsx +640 -0
  99. package/src/components/SystemWarningBanner.tsx +71 -0
  100. package/src/components/ThemeToggle.tsx +100 -0
  101. package/src/components/TrajectoriesView.tsx +526 -0
  102. package/src/components/TrajectoryDetailView.tsx +426 -0
  103. package/src/components/TriggersView.tsx +1 -0
  104. package/src/components/VectorBrowserView.tsx +1633 -0
  105. package/src/components/VoiceConfigView.tsx +675 -0
  106. package/src/components/VrmStage.test.ts +219 -0
  107. package/src/components/VrmStage.tsx +432 -0
  108. package/src/components/WhatsAppQrOverlay.tsx +230 -0
  109. package/src/components/__tests__/chainConfig.test.ts +220 -0
  110. package/src/components/apps/AppDetailPane.tsx +242 -0
  111. package/src/components/apps/AppsCatalogGrid.tsx +137 -0
  112. package/src/components/apps/extensions/HyperscapeAppDetailPanel.tsx +577 -0
  113. package/src/components/apps/extensions/registry.ts +16 -0
  114. package/src/components/apps/extensions/types.ts +9 -0
  115. package/src/components/apps/helpers.ts +44 -0
  116. package/src/components/avatar/VrmAnimationLoader.test.ts +164 -0
  117. package/src/components/avatar/VrmAnimationLoader.ts +151 -0
  118. package/src/components/avatar/VrmBlinkController.ts +118 -0
  119. package/src/components/avatar/VrmCameraManager.ts +407 -0
  120. package/src/components/avatar/VrmEngine.ts +2678 -0
  121. package/src/components/avatar/VrmFootShadow.ts +96 -0
  122. package/src/components/avatar/VrmViewer.tsx +421 -0
  123. package/src/components/avatar/__tests__/VrmCameraManager.test.ts +168 -0
  124. package/src/components/avatar/__tests__/VrmEngine.test.ts +1574 -0
  125. package/src/components/avatar/mixamoVRMRigMap.ts +62 -0
  126. package/src/components/avatar/retargetMixamoFbxToVrm.ts +144 -0
  127. package/src/components/avatar/retargetMixamoGltfToVrm.ts +119 -0
  128. package/src/components/chainConfig.ts +380 -0
  129. package/src/components/companion/CompanionHeader.tsx +47 -0
  130. package/src/components/companion/CompanionSceneHost.tsx +1 -0
  131. package/src/components/companion/VrmStage.tsx +2 -0
  132. package/src/components/companion/__tests__/walletUtils.test.ts +742 -0
  133. package/src/components/companion/walletUtils.ts +290 -0
  134. package/src/components/companion-shell-styles.test.ts +142 -0
  135. package/src/components/companion-shell-styles.ts +270 -0
  136. package/src/components/confirm-delete-control.tsx +69 -0
  137. package/src/components/conversations/ConversationListItem.tsx +185 -0
  138. package/src/components/conversations/conversation-utils.ts +151 -0
  139. package/src/components/format.ts +131 -0
  140. package/src/components/index.ts +94 -0
  141. package/src/components/inventory/CopyableAddress.tsx +41 -0
  142. package/src/components/inventory/InventoryToolbar.tsx +142 -0
  143. package/src/components/inventory/NftGrid.tsx +99 -0
  144. package/src/components/inventory/TokenLogo.tsx +71 -0
  145. package/src/components/inventory/TokensTable.tsx +216 -0
  146. package/src/components/inventory/constants.ts +170 -0
  147. package/src/components/inventory/index.ts +29 -0
  148. package/src/components/inventory/media-url.test.ts +38 -0
  149. package/src/components/inventory/media-url.ts +36 -0
  150. package/src/components/inventory/useInventoryData.ts +460 -0
  151. package/src/components/knowledge-upload-image.ts +215 -0
  152. package/src/components/labels.ts +46 -0
  153. package/src/components/onboarding/ActivateStep.tsx +30 -0
  154. package/src/components/onboarding/ConnectionStep.tsx +1530 -0
  155. package/src/components/onboarding/IdentityStep.tsx +147 -0
  156. package/src/components/onboarding/OnboardingPanel.tsx +39 -0
  157. package/src/components/onboarding/OnboardingStepNav.tsx +31 -0
  158. package/src/components/onboarding/PermissionsStep.tsx +20 -0
  159. package/src/components/onboarding/RpcStep.tsx +402 -0
  160. package/src/components/onboarding/WakeUpStep.tsx +184 -0
  161. package/src/components/permissions/PermissionIcon.tsx +25 -0
  162. package/src/components/permissions/StreamingPermissions.tsx +413 -0
  163. package/src/components/plugins/showcase-data.ts +481 -0
  164. package/src/components/shared/ShellHeaderControls.tsx +193 -0
  165. package/src/components/shared-companion-scene-context.ts +15 -0
  166. package/src/components/skeletons.tsx +88 -0
  167. package/src/components/stream/ActivityFeed.tsx +113 -0
  168. package/src/components/stream/AvatarPip.tsx +10 -0
  169. package/src/components/stream/ChatContent.tsx +126 -0
  170. package/src/components/stream/ChatTicker.tsx +55 -0
  171. package/src/components/stream/IdleContent.tsx +73 -0
  172. package/src/components/stream/StatusBar.tsx +469 -0
  173. package/src/components/stream/StreamSettings.tsx +506 -0
  174. package/src/components/stream/StreamTerminal.tsx +94 -0
  175. package/src/components/stream/StreamVoiceConfig.tsx +160 -0
  176. package/src/components/stream/helpers.ts +134 -0
  177. package/src/components/stream/overlays/OverlayLayer.tsx +75 -0
  178. package/src/components/stream/overlays/built-in/ActionTickerWidget.tsx +64 -0
  179. package/src/components/stream/overlays/built-in/AlertPopupWidget.tsx +87 -0
  180. package/src/components/stream/overlays/built-in/BrandingWidget.tsx +51 -0
  181. package/src/components/stream/overlays/built-in/CustomHtmlWidget.tsx +105 -0
  182. package/src/components/stream/overlays/built-in/PeonGlassWidget.tsx +265 -0
  183. package/src/components/stream/overlays/built-in/PeonHudWidget.tsx +247 -0
  184. package/src/components/stream/overlays/built-in/PeonSakuraWidget.tsx +278 -0
  185. package/src/components/stream/overlays/built-in/ThoughtBubbleWidget.tsx +77 -0
  186. package/src/components/stream/overlays/built-in/ViewerCountWidget.tsx +46 -0
  187. package/src/components/stream/overlays/built-in/index.ts +13 -0
  188. package/src/components/stream/overlays/registry.ts +22 -0
  189. package/src/components/stream/overlays/types.ts +90 -0
  190. package/src/components/stream/overlays/useOverlayLayout.ts +218 -0
  191. package/src/components/trajectory-format.ts +50 -0
  192. package/src/components/ui-badges.tsx +109 -0
  193. package/src/components/ui-switch.tsx +57 -0
  194. package/src/components/vector-browser-three.ts +27 -0
  195. package/src/config/config-catalog.ts +1092 -0
  196. package/src/config/config-field.tsx +1901 -0
  197. package/src/config/config-renderer.tsx +730 -0
  198. package/src/config/index.ts +11 -0
  199. package/src/config/ui-renderer.tsx +1751 -0
  200. package/src/config/ui-spec.ts +256 -0
  201. package/src/events/index.ts +89 -0
  202. package/src/hooks/index.ts +13 -0
  203. package/src/hooks/useBugReport.tsx +43 -0
  204. package/src/hooks/useCanvasWindow.ts +372 -0
  205. package/src/hooks/useChatAvatarVoice.ts +111 -0
  206. package/src/hooks/useContextMenu.ts +127 -0
  207. package/src/hooks/useKeyboardShortcuts.ts +86 -0
  208. package/src/hooks/useLifoSync.ts +143 -0
  209. package/src/hooks/useMemoryMonitor.ts +334 -0
  210. package/src/hooks/useRenderGuard.ts +43 -0
  211. package/src/hooks/useRetakeCapture.ts +67 -0
  212. package/src/hooks/useStreamPopoutNavigation.ts +27 -0
  213. package/src/hooks/useTimeout.ts +37 -0
  214. package/src/hooks/useVoiceChat.ts +1441 -0
  215. package/src/hooks/useWhatsAppPairing.ts +123 -0
  216. package/src/i18n/index.ts +76 -0
  217. package/src/i18n/locales/en.json +1194 -0
  218. package/src/i18n/locales/es.json +1194 -0
  219. package/src/i18n/locales/ko.json +1194 -0
  220. package/src/i18n/locales/pt.json +1194 -0
  221. package/src/i18n/locales/zh-CN.json +1194 -0
  222. package/src/i18n/messages.ts +21 -0
  223. package/src/index.ts +6 -0
  224. package/src/navigation/index.ts +282 -0
  225. package/src/navigation.test.ts +189 -0
  226. package/src/onboarding-config.test.ts +104 -0
  227. package/src/onboarding-config.ts +114 -0
  228. package/src/platform/browser-launch.test.ts +94 -0
  229. package/src/platform/browser-launch.ts +149 -0
  230. package/src/platform/index.ts +58 -0
  231. package/src/platform/init.ts +236 -0
  232. package/src/platform/lifo.ts +215 -0
  233. package/src/providers/index.ts +99 -0
  234. package/src/state/AppContext.tsx +5846 -0
  235. package/src/state/index.ts +6 -0
  236. package/src/state/internal.ts +86 -0
  237. package/src/state/onboarding-resume.test.ts +135 -0
  238. package/src/state/onboarding-resume.ts +263 -0
  239. package/src/state/parsers.test.ts +124 -0
  240. package/src/state/parsers.ts +308 -0
  241. package/src/state/persistence.ts +321 -0
  242. package/src/state/shell-routing.ts +32 -0
  243. package/src/state/types.ts +701 -0
  244. package/src/state/ui-preferences.ts +3 -0
  245. package/src/state/useApp.ts +23 -0
  246. package/src/state/vrm.ts +76 -0
  247. package/src/stories/AppMockProvider.tsx +32 -0
  248. package/src/stories/ChatEmptyState.stories.tsx +27 -0
  249. package/src/stories/ChatMessage.stories.tsx +115 -0
  250. package/src/stories/CompanionHeader.stories.tsx +74 -0
  251. package/src/stories/CompanionView.stories.tsx +33 -0
  252. package/src/stories/ConversationListItem.stories.tsx +102 -0
  253. package/src/stories/TypingIndicator.stories.tsx +28 -0
  254. package/src/styles/anime.css +6324 -0
  255. package/src/styles/base.css +196 -0
  256. package/src/styles/onboarding-game.css +738 -0
  257. package/src/styles/styles.css +2087 -0
  258. package/src/styles/xterm.css +241 -0
  259. package/src/types/index.ts +715 -0
  260. package/src/types/react-test-renderer.d.ts +45 -0
  261. package/src/utils/asset-url.ts +110 -0
  262. package/src/utils/assistant-text.ts +172 -0
  263. package/src/utils/clipboard.ts +41 -0
  264. package/src/utils/desktop-dialogs.ts +80 -0
  265. package/src/utils/index.ts +6 -0
  266. package/src/utils/number-parsing.ts +125 -0
  267. package/src/utils/openExternalUrl.ts +20 -0
  268. package/src/utils/spoken-text.ts +65 -0
  269. package/src/utils/streaming-text.ts +120 -0
  270. package/src/voice/index.ts +1 -0
  271. package/src/voice/types.ts +197 -0
  272. package/src/wallet-rpc.ts +176 -0
  273. package/test/app/AppContext.pty-sessions.test.tsx +143 -0
  274. package/test/app/MessageContent.test.tsx +326 -0
  275. package/test/app/PermissionsOnboarding.test.tsx +356 -0
  276. package/test/app/PermissionsSection.test.tsx +573 -0
  277. package/test/app/advanced-trajectory-fine-tuning.e2e.test.ts +393 -0
  278. package/test/app/agent-activity-box.test.tsx +132 -0
  279. package/test/app/agent-transfer-lock.test.ts +274 -0
  280. package/test/app/api-client-electron-fallback.test.ts +139 -0
  281. package/test/app/api-client-timeout.test.ts +75 -0
  282. package/test/app/api-client-ws.test.ts +98 -0
  283. package/test/app/api-client.ws-max-reconnect.test.ts +139 -0
  284. package/test/app/api-client.ws-reconnect.test.ts +157 -0
  285. package/test/app/app-context-autonomy-events.test.ts +478 -0
  286. package/test/app/apps-page-view.test.ts +114 -0
  287. package/test/app/apps-view.test.ts +769 -0
  288. package/test/app/autonomous-workflows.e2e.test.ts +765 -0
  289. package/test/app/autonomy-events.test.ts +150 -0
  290. package/test/app/avatar-selector.test.tsx +52 -0
  291. package/test/app/bsc-trade-panel.test.tsx +134 -0
  292. package/test/app/bug-report-modal.test.tsx +353 -0
  293. package/test/app/character-customization.e2e.test.ts +1199 -0
  294. package/test/app/chat-advanced-features.e2e.test.ts +706 -0
  295. package/test/app/chat-composer.test.tsx +181 -0
  296. package/test/app/chat-language-header.test.ts +64 -0
  297. package/test/app/chat-message.test.tsx +222 -0
  298. package/test/app/chat-modal-view.test.tsx +191 -0
  299. package/test/app/chat-routine-filter.test.ts +96 -0
  300. package/test/app/chat-send-lock.test.ts +1465 -0
  301. package/test/app/chat-stream-api-client.test.tsx +390 -0
  302. package/test/app/chat-view-game-modal.test.tsx +661 -0
  303. package/test/app/chat-view.test.tsx +877 -0
  304. package/test/app/cloud-api.e2e.test.ts +258 -0
  305. package/test/app/cloud-login-flow.e2e.test.ts +494 -0
  306. package/test/app/cloud-login-lock.test.ts +411 -0
  307. package/test/app/command-palette.test.tsx +184 -0
  308. package/test/app/command-registry.test.ts +75 -0
  309. package/test/app/companion-greeting-wave.test.tsx +425 -0
  310. package/test/app/companion-stale-conversation.test.tsx +447 -0
  311. package/test/app/companion-view.test.tsx +686 -0
  312. package/test/app/confirm-delete-control.test.ts +79 -0
  313. package/test/app/confirm-modal.test.tsx +219 -0
  314. package/test/app/connectors-ui.e2e.test.ts +508 -0
  315. package/test/app/conversations-sidebar-game-modal.test.tsx +260 -0
  316. package/test/app/conversations-sidebar.test.tsx +160 -0
  317. package/test/app/custom-actions-smoke.test.ts +387 -0
  318. package/test/app/custom-avatar-api-client.test.ts +207 -0
  319. package/test/app/desktop-utils.test.ts +145 -0
  320. package/test/app/electrobun-rpc-bridge.test.ts +83 -0
  321. package/test/app/events.test.ts +88 -0
  322. package/test/app/export-import-flows.e2e.test.ts +700 -0
  323. package/test/app/fine-tuning-view.test.ts +471 -0
  324. package/test/app/game-view-auth-session.test.tsx +186 -0
  325. package/test/app/game-view.test.ts +444 -0
  326. package/test/app/global-emote-overlay.test.tsx +106 -0
  327. package/test/app/header-status.test.tsx +149 -0
  328. package/test/app/i18n.test.ts +152 -0
  329. package/test/app/inventory-bsc-view.test.ts +940 -0
  330. package/test/app/knowledge-ui.e2e.test.ts +762 -0
  331. package/test/app/knowledge-upload-helpers.test.ts +124 -0
  332. package/test/app/lifecycle-lock.test.ts +267 -0
  333. package/test/app/lifo-popout-utils.test.ts +208 -0
  334. package/test/app/lifo-safe-endpoint.test.ts +34 -0
  335. package/test/app/loading-screen.test.tsx +45 -0
  336. package/test/app/memory-monitor.test.ts +332 -0
  337. package/test/app/navigation.test.tsx +22 -0
  338. package/test/app/onboarding-finish-lock.test.ts +663 -0
  339. package/test/app/onboarding-language.test.tsx +160 -0
  340. package/test/app/onboarding-steps.test.tsx +375 -0
  341. package/test/app/open-external-url.test.ts +65 -0
  342. package/test/app/pages-navigation-smoke.e2e.test.ts +633 -0
  343. package/test/app/pairing-lock.test.ts +260 -0
  344. package/test/app/pairing-view.test.tsx +74 -0
  345. package/test/app/permissions-section.test.ts +432 -0
  346. package/test/app/plugin-bridge.test.ts +109 -0
  347. package/test/app/plugins-ui.e2e.test.ts +605 -0
  348. package/test/app/plugins-view-game-modal.test.tsx +650 -0
  349. package/test/app/plugins-view-toggle-restart.test.ts +129 -0
  350. package/test/app/provider-dropdown-default.test.tsx +302 -0
  351. package/test/app/restart-banner.test.tsx +197 -0
  352. package/test/app/retake-capture.test.ts +84 -0
  353. package/test/app/sandbox-api-client.test.ts +108 -0
  354. package/test/app/save-command-modal.test.tsx +109 -0
  355. package/test/app/secrets-view.test.tsx +92 -0
  356. package/test/app/settings-control-styles.test.tsx +142 -0
  357. package/test/app/settings-reset.e2e.test.ts +726 -0
  358. package/test/app/settings-sections.e2e.test.ts +614 -0
  359. package/test/app/shared-format.test.ts +44 -0
  360. package/test/app/shared-switch.test.ts +69 -0
  361. package/test/app/shell-mode-switching.e2e.test.ts +829 -0
  362. package/test/app/shell-mode-tab-memory.test.tsx +58 -0
  363. package/test/app/shell-overlays.test.tsx +50 -0
  364. package/test/app/shortcuts-overlay.test.tsx +111 -0
  365. package/test/app/sse-interruption.test.ts +122 -0
  366. package/test/app/startup-asset-missing.e2e.test.ts +126 -0
  367. package/test/app/startup-backend-missing.e2e.test.ts +118 -0
  368. package/test/app/startup-chat.e2e.test.ts +305 -0
  369. package/test/app/startup-conversation-restore.test.tsx +344 -0
  370. package/test/app/startup-failure-view.test.tsx +103 -0
  371. package/test/app/startup-onboarding.e2e.test.ts +618 -0
  372. package/test/app/startup-timeout.test.tsx +80 -0
  373. package/test/app/startup-token-401.e2e.test.ts +103 -0
  374. package/test/app/stream-helpers.test.ts +46 -0
  375. package/test/app/stream-popout-navigation.test.tsx +41 -0
  376. package/test/app/stream-status-bar.test.tsx +89 -0
  377. package/test/app/theme-toggle.test.tsx +33 -0
  378. package/test/app/training-api-client.test.ts +128 -0
  379. package/test/app/trajectories-view.test.tsx +220 -0
  380. package/test/app/triggers-api-client.test.ts +77 -0
  381. package/test/app/triggers-navigation.test.ts +113 -0
  382. package/test/app/triggers-view.e2e.test.ts +674 -0
  383. package/test/app/update-channel-lock.test.ts +259 -0
  384. package/test/app/vector-browser.async-cleanup.test.tsx +367 -0
  385. package/test/app/vector-browser.e2e.test.ts +653 -0
  386. package/test/app/vrm-stage.test.tsx +351 -0
  387. package/test/app/vrm-viewer.test.tsx +298 -0
  388. package/test/app/wallet-api-save-lock.test.ts +298 -0
  389. package/test/app/wallet-hooks.test.ts +405 -0
  390. package/test/app/wallet-ui-flows.e2e.test.ts +556 -0
  391. package/test/avatar/asset-url.test.ts +90 -0
  392. package/test/avatar/avatar-selector.test.ts +173 -0
  393. package/test/avatar/mixamo-vrm-rig-map.test.ts +111 -0
  394. package/test/avatar/voice-chat-streaming-text.test.ts +96 -0
  395. package/test/avatar/voice-chat.test.ts +391 -0
  396. package/test/ui/command-palette-commands.test.ts +57 -0
  397. package/test/ui/ui-renderer.test.ts +39 -0
  398. package/tsconfig.build.json +19 -0
  399. package/tsconfig.json +20 -0
@@ -0,0 +1,224 @@
1
+ /**
2
+ * ApiKeyConfig — Local AI provider settings (API key input forms).
3
+ *
4
+ * Extracted from SettingsView.tsx for decomposition (P2 §10).
5
+ */
6
+
7
+ import { useCallback, useState } from "react";
8
+ import { client, type PluginParamDef } from "../api";
9
+ import {
10
+ ConfigRenderer,
11
+ defaultRegistry,
12
+ type JsonSchemaObject,
13
+ } from "../config";
14
+ import { useTimeout } from "../hooks";
15
+ import { useApp } from "../state";
16
+ import type { ConfigUiHint } from "../types";
17
+ import { autoLabel } from "./labels";
18
+
19
+ interface ProviderPlugin {
20
+ id: string;
21
+ name: string;
22
+ parameters: PluginParamDef[];
23
+ configured: boolean;
24
+ configUiHints?: Record<string, ConfigUiHint>;
25
+ enabled: boolean;
26
+ category: string;
27
+ }
28
+
29
+ export interface ApiKeyConfigProps {
30
+ selectedProvider: ProviderPlugin | null;
31
+ pluginSaving: Set<string>;
32
+ pluginSaveSuccess: Set<string>;
33
+ handlePluginConfigSave: (
34
+ pluginId: string,
35
+ values: Record<string, string>,
36
+ ) => void;
37
+ loadPlugins: () => Promise<void>;
38
+ }
39
+
40
+ export function ApiKeyConfig({
41
+ selectedProvider,
42
+ pluginSaving,
43
+ pluginSaveSuccess,
44
+ handlePluginConfigSave,
45
+ loadPlugins,
46
+ }: ApiKeyConfigProps) {
47
+ const { setTimeout } = useTimeout();
48
+
49
+ const { t } = useApp();
50
+ const [pluginFieldValues, setPluginFieldValues] = useState<
51
+ Record<string, Record<string, string>>
52
+ >({});
53
+ const [modelsFetching, setModelsFetching] = useState(false);
54
+ const [modelsFetchResult, setModelsFetchResult] = useState<{
55
+ tone: "error" | "success";
56
+ message: string;
57
+ } | null>(null);
58
+
59
+ const handlePluginFieldChange = useCallback(
60
+ (pluginId: string, key: string, value: string) => {
61
+ setPluginFieldValues((prev) => ({
62
+ ...prev,
63
+ [pluginId]: { ...(prev[pluginId] ?? {}), [key]: value },
64
+ }));
65
+ },
66
+ [],
67
+ );
68
+
69
+ const handlePluginSave = useCallback(
70
+ (pluginId: string) => {
71
+ const values = pluginFieldValues[pluginId] ?? {};
72
+ void handlePluginConfigSave(pluginId, values);
73
+ },
74
+ [pluginFieldValues, handlePluginConfigSave],
75
+ );
76
+
77
+ const handleFetchModels = useCallback(
78
+ async (providerId: string) => {
79
+ setModelsFetching(true);
80
+ setModelsFetchResult(null);
81
+ try {
82
+ const result = await client.fetchModels(providerId, true);
83
+ const count = Array.isArray(result?.models) ? result.models.length : 0;
84
+ setModelsFetchResult({
85
+ tone: "success",
86
+ message: t("apikeyconfig.loadedModels", { count }),
87
+ });
88
+ await loadPlugins();
89
+ setTimeout(() => setModelsFetchResult(null), 3000);
90
+ } catch (err) {
91
+ setModelsFetchResult({
92
+ tone: "error",
93
+ message: t("apikeyconfig.error", {
94
+ message:
95
+ err instanceof Error ? err.message : t("apikeyconfig.failed"),
96
+ }),
97
+ });
98
+ setTimeout(() => setModelsFetchResult(null), 5000);
99
+ }
100
+ setModelsFetching(false);
101
+ },
102
+ [loadPlugins, setTimeout, t],
103
+ );
104
+
105
+ if (!selectedProvider || selectedProvider.parameters.length === 0)
106
+ return null;
107
+
108
+ const isSaving = pluginSaving.has(selectedProvider.id);
109
+ const saveSuccess = pluginSaveSuccess.has(selectedProvider.id);
110
+ const params = selectedProvider.parameters;
111
+ const setCount = params.filter((p: PluginParamDef) => p.isSet).length;
112
+
113
+ const properties: Record<string, Record<string, unknown>> = {};
114
+ const required: string[] = [];
115
+ const hints: Record<string, ConfigUiHint> = {};
116
+ const serverHints = selectedProvider.configUiHints ?? {};
117
+ for (const p of params) {
118
+ const prop: Record<string, unknown> = {};
119
+ if (p.type === "boolean") prop.type = "boolean";
120
+ else if (p.type === "number") prop.type = "number";
121
+ else prop.type = "string";
122
+ if (p.description) prop.description = p.description;
123
+ if (p.default != null) prop.default = p.default;
124
+ if (p.options?.length) prop.enum = p.options;
125
+ const k = p.key.toUpperCase();
126
+ if (k.includes("URL") || k.includes("ENDPOINT")) prop.format = "uri";
127
+ properties[p.key] = prop;
128
+ if (p.required) required.push(p.key);
129
+ hints[p.key] = {
130
+ label: autoLabel(p.key, selectedProvider.id),
131
+ sensitive: p.sensitive ?? false,
132
+ ...serverHints[p.key],
133
+ };
134
+ if (p.description && !hints[p.key].help) hints[p.key].help = p.description;
135
+ }
136
+ const schema = { type: "object", properties, required } as JsonSchemaObject;
137
+ const values: Record<string, unknown> = {};
138
+ const setKeys = new Set<string>();
139
+ for (const p of params) {
140
+ const cv = pluginFieldValues[selectedProvider.id]?.[p.key];
141
+ if (cv !== undefined) {
142
+ values[p.key] = cv;
143
+ } else if (p.isSet && !p.sensitive && p.currentValue != null) {
144
+ values[p.key] = p.currentValue;
145
+ }
146
+ if (p.isSet) setKeys.add(p.key);
147
+ }
148
+
149
+ return (
150
+ <div className="mt-4 pt-4 border-t border-[var(--border)]">
151
+ <div className="flex justify-between items-center mb-3">
152
+ <div className="text-xs font-semibold">
153
+ {selectedProvider.name} {t("nav.settings")}
154
+ </div>
155
+ <div className="flex items-center gap-2">
156
+ <span className="text-[11px] text-[var(--muted)]">
157
+ {setCount}/{params.length} {t("apikeyconfig.configured")}
158
+ </span>
159
+ <span
160
+ className="text-[11px] px-2 py-[3px] border"
161
+ style={{
162
+ borderColor: selectedProvider.configured
163
+ ? "#2d8a4e"
164
+ : "var(--warning,#f39c12)",
165
+ color: selectedProvider.configured
166
+ ? "#2d8a4e"
167
+ : "var(--warning,#f39c12)",
168
+ }}
169
+ >
170
+ {selectedProvider.configured
171
+ ? t("mediasettingssection.Configured")
172
+ : t("mediasettingssection.NeedsSetup")}
173
+ </span>
174
+ </div>
175
+ </div>
176
+
177
+ <ConfigRenderer
178
+ schema={schema}
179
+ hints={hints}
180
+ values={values}
181
+ setKeys={setKeys}
182
+ registry={defaultRegistry}
183
+ pluginId={selectedProvider.id}
184
+ onChange={(key, value) =>
185
+ handlePluginFieldChange(selectedProvider.id, key, String(value ?? ""))
186
+ }
187
+ />
188
+
189
+ <div className="flex justify-between items-center mt-3">
190
+ <div className="flex items-center gap-2">
191
+ <button
192
+ type="button"
193
+ className="btn text-xs py-[5px] px-3.5 !mt-0 !bg-transparent !border-[var(--border)] !text-[var(--muted)] hover:!text-[var(--text)] hover:!border-[var(--accent)]"
194
+ onClick={() => void handleFetchModels(selectedProvider.id)}
195
+ disabled={modelsFetching}
196
+ >
197
+ {modelsFetching
198
+ ? t("apikeyconfig.fetching")
199
+ : t("apikeyconfig.fetchModels")}
200
+ </button>
201
+ {modelsFetchResult && (
202
+ <span
203
+ className={`text-[11px] ${modelsFetchResult.tone === "error" ? "text-[var(--danger,#e74c3c)]" : "text-[var(--ok,#16a34a)]"}`}
204
+ >
205
+ {modelsFetchResult.message}
206
+ </span>
207
+ )}
208
+ </div>
209
+ <button
210
+ type="button"
211
+ className={`btn text-xs py-[5px] px-4 !mt-0 ${saveSuccess ? "!bg-[var(--ok,#16a34a)] !border-[var(--ok,#16a34a)]" : ""}`}
212
+ onClick={() => handlePluginSave(selectedProvider.id)}
213
+ disabled={isSaving}
214
+ >
215
+ {isSaving
216
+ ? t("apikeyconfig.saving")
217
+ : saveSuccess
218
+ ? t("apikeyconfig.saved")
219
+ : t("apikeyconfig.save")}
220
+ </button>
221
+ </div>
222
+ </div>
223
+ );
224
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Apps page — single-surface app browser with optional full-screen game mode.
3
+ */
4
+
5
+ import type React from "react";
6
+ import { useEffect } from "react";
7
+ import { useApp } from "../state";
8
+ import { AppsView } from "./AppsView";
9
+ import { GameView } from "./GameView";
10
+
11
+ export function AppsPageView({ inModal }: { inModal?: boolean } = {}) {
12
+ const { appsSubTab, activeGameViewerUrl, setState } = useApp();
13
+ const hasActiveGame =
14
+ typeof activeGameViewerUrl === "string" &&
15
+ activeGameViewerUrl.trim().length > 0;
16
+
17
+ useEffect(() => {
18
+ if (appsSubTab === "games" && !hasActiveGame) {
19
+ setState("appsSubTab", "browse");
20
+ }
21
+ }, [appsSubTab, hasActiveGame, setState]);
22
+
23
+ if (appsSubTab === "games" && hasActiveGame) {
24
+ return <GameView />;
25
+ }
26
+
27
+ if (inModal) {
28
+ return (
29
+ <div
30
+ className="settings-content-area"
31
+ style={
32
+ {
33
+ "--accent": "#10b981",
34
+ "--surface": "rgba(255, 255, 255, 0.06)",
35
+ "--s-accent": "#10b981",
36
+ "--s-text-txt": "#10b981",
37
+ "--s-accent-glow": "rgba(16, 185, 129, 0.35)",
38
+ "--s-accent-subtle": "rgba(16, 185, 129, 0.12)",
39
+ "--s-grid-line": "rgba(16, 185, 129, 0.02)",
40
+ "--s-glow-edge": "rgba(16, 185, 129, 0.08)",
41
+ } as React.CSSProperties
42
+ }
43
+ >
44
+ <div className="settings-section-pane pt-4">
45
+ <AppsView />
46
+ </div>
47
+ </div>
48
+ );
49
+ }
50
+
51
+ return <AppsView />;
52
+ }
@@ -0,0 +1,293 @@
1
+ /**
2
+ * Apps View — browse and launch agent games/experiences.
3
+ *
4
+ * Fetches apps from the registry API and shows them as cards.
5
+ */
6
+
7
+ import { useCallback, useEffect, useMemo, useState } from "react";
8
+ import { client, type RegistryAppInfo } from "../api";
9
+ import { useApp } from "../state";
10
+ import { openExternalUrl } from "../utils";
11
+ import { AppDetailPane } from "./apps/AppDetailPane";
12
+ import { AppsCatalogGrid } from "./apps/AppsCatalogGrid";
13
+ import {
14
+ DEFAULT_VIEWER_SANDBOX,
15
+ shouldShowAppInAppsView,
16
+ } from "./apps/helpers";
17
+
18
+ export { shouldShowAppInAppsView } from "./apps/helpers";
19
+
20
+ function AppsEmptyState() {
21
+ return (
22
+ <div className="flex flex-col items-center justify-center h-full text-center py-20">
23
+ <span className="text-4xl mb-4 opacity-30">📱</span>
24
+ <span className="text-[13px] text-muted">
25
+ Select an app to view details
26
+ </span>
27
+ </div>
28
+ );
29
+ }
30
+
31
+ export function AppsView() {
32
+ const {
33
+ activeGameApp,
34
+ activeGameDisplayName,
35
+ activeGameViewerUrl,
36
+ setState,
37
+ setActionNotice,
38
+ } = useApp();
39
+ const [apps, setApps] = useState<RegistryAppInfo[]>([]);
40
+ const [loading, setLoading] = useState(true);
41
+ const [error, setError] = useState<string | null>(null);
42
+ const [searchQuery, setSearchQuery] = useState("");
43
+ const [showActiveOnly, setShowActiveOnly] = useState(false);
44
+ const [activeAppNames, setActiveAppNames] = useState<Set<string>>(new Set());
45
+ const [selectedAppName, setSelectedAppName] = useState<string | null>(null);
46
+ const [busyApp, setBusyApp] = useState<string | null>(null);
47
+ const currentGameViewerUrl =
48
+ typeof activeGameViewerUrl === "string" ? activeGameViewerUrl : "";
49
+ const hasCurrentGame = currentGameViewerUrl.trim().length > 0;
50
+
51
+ const selectedApp = useMemo(
52
+ () => apps.find((app) => app.name === selectedAppName) ?? null,
53
+ [apps, selectedAppName],
54
+ );
55
+
56
+ const selectedAppHasActiveViewer =
57
+ !!selectedApp && hasCurrentGame && activeGameApp === selectedApp.name;
58
+ const selectedAppIsActive =
59
+ !!selectedApp && activeAppNames.has(selectedApp.name);
60
+
61
+ const loadApps = useCallback(async () => {
62
+ setLoading(true);
63
+ setError(null);
64
+ try {
65
+ const [list, installed] = await Promise.all([
66
+ client.listApps(),
67
+ client.listInstalledApps().catch(() => []),
68
+ ]);
69
+ setApps(list);
70
+ setActiveAppNames(new Set(installed.map((app) => app.name)));
71
+ setSelectedAppName((current) => {
72
+ if (!current) return list[0]?.name ?? null;
73
+ return list.some((app) => app.name === current)
74
+ ? current
75
+ : (list[0]?.name ?? null);
76
+ });
77
+ } catch (err) {
78
+ setError(
79
+ `Failed to load apps: ${err instanceof Error ? err.message : "network error"}`,
80
+ );
81
+ } finally {
82
+ setLoading(false);
83
+ }
84
+ }, []);
85
+
86
+ const clearActiveGameState = useCallback(() => {
87
+ setState("activeGameApp", "");
88
+ setState("activeGameDisplayName", "");
89
+ setState("activeGameViewerUrl", "");
90
+ setState("activeGameSandbox", DEFAULT_VIEWER_SANDBOX);
91
+ setState("activeGamePostMessageAuth", false);
92
+ setState("activeGamePostMessagePayload", null);
93
+ }, [setState]);
94
+
95
+ useEffect(() => {
96
+ void loadApps();
97
+ }, [loadApps]);
98
+
99
+ const handleLaunch = useCallback(
100
+ async (app: RegistryAppInfo) => {
101
+ setBusyApp(app.name);
102
+ try {
103
+ const result = await client.launchApp(app.name);
104
+ setActiveAppNames((previous) => {
105
+ const next = new Set(previous);
106
+ next.add(app.name);
107
+ return next;
108
+ });
109
+ if (result.viewer?.url) {
110
+ setState("activeGameApp", app.name);
111
+ setState("activeGameDisplayName", app.displayName ?? app.name);
112
+ setState("activeGameViewerUrl", result.viewer.url);
113
+ setState(
114
+ "activeGameSandbox",
115
+ result.viewer.sandbox ?? DEFAULT_VIEWER_SANDBOX,
116
+ );
117
+ setState(
118
+ "activeGamePostMessageAuth",
119
+ Boolean(result.viewer.postMessageAuth),
120
+ );
121
+ setState(
122
+ "activeGamePostMessagePayload",
123
+ result.viewer.authMessage ?? null,
124
+ );
125
+ if (result.viewer.postMessageAuth && !result.viewer.authMessage) {
126
+ setActionNotice(
127
+ `${app.displayName ?? app.name} requires iframe auth, but no auth payload is configured.`,
128
+ "error",
129
+ 4800,
130
+ );
131
+ }
132
+ setState("tab", "apps");
133
+ setState("appsSubTab", "games");
134
+ return;
135
+ }
136
+ clearActiveGameState();
137
+ const targetUrl = result.launchUrl ?? app.launchUrl;
138
+ if (targetUrl) {
139
+ try {
140
+ await openExternalUrl(targetUrl);
141
+ setActionNotice(
142
+ `${app.displayName ?? app.name} opened in a new tab.`,
143
+ "success",
144
+ 2600,
145
+ );
146
+ } catch {
147
+ setActionNotice(
148
+ `Popup blocked while opening ${app.displayName ?? app.name}. Allow popups and try again.`,
149
+ "error",
150
+ 4200,
151
+ );
152
+ }
153
+ return;
154
+ }
155
+ setActionNotice(
156
+ `${app.displayName ?? app.name} launched, but no viewer or URL is configured.`,
157
+ "error",
158
+ 4000,
159
+ );
160
+ } catch (err) {
161
+ setActionNotice(
162
+ `Failed to launch ${app.displayName ?? app.name}: ${err instanceof Error ? err.message : "error"}`,
163
+ "error",
164
+ 4000,
165
+ );
166
+ } finally {
167
+ setBusyApp(null);
168
+ }
169
+ },
170
+ [clearActiveGameState, setActionNotice, setState],
171
+ );
172
+
173
+ const handleOpenCurrentGame = useCallback(() => {
174
+ if (!hasCurrentGame) return;
175
+ setState("tab", "apps");
176
+ setState("appsSubTab", "games");
177
+ }, [hasCurrentGame, setState]);
178
+
179
+ const handleOpenCurrentGameInNewTab = useCallback(async () => {
180
+ if (!hasCurrentGame) return;
181
+ try {
182
+ await openExternalUrl(currentGameViewerUrl);
183
+ setActionNotice("Current game opened in a new tab.", "success", 2600);
184
+ } catch {
185
+ setActionNotice(
186
+ "Popup blocked. Allow popups and try again.",
187
+ "error",
188
+ 4200,
189
+ );
190
+ }
191
+ }, [currentGameViewerUrl, hasCurrentGame, setActionNotice]);
192
+
193
+ const visibleApps = useMemo(() => {
194
+ const normalizedSearch = searchQuery.trim().toLowerCase();
195
+ return apps.filter((app) => {
196
+ if (!shouldShowAppInAppsView(app)) {
197
+ return false;
198
+ }
199
+ if (
200
+ normalizedSearch &&
201
+ !app.name.toLowerCase().includes(normalizedSearch) &&
202
+ !(app.displayName ?? "").toLowerCase().includes(normalizedSearch) &&
203
+ !(app.description ?? "").toLowerCase().includes(normalizedSearch)
204
+ ) {
205
+ return false;
206
+ }
207
+ if (showActiveOnly && !activeAppNames.has(app.name)) {
208
+ return false;
209
+ }
210
+ return true;
211
+ });
212
+ }, [activeAppNames, apps, searchQuery, showActiveOnly]);
213
+
214
+ return (
215
+ <div className="device-layout">
216
+ <div className="phone-frame">
217
+ <div className="phone-status-bar">
218
+ <span className="font-semibold">9:41</span>
219
+ <span className="opacity-50">📶 🔋</span>
220
+ </div>
221
+
222
+ <div className="phone-content">
223
+ {selectedApp ? (
224
+ <AppDetailPane
225
+ app={selectedApp}
226
+ compact
227
+ busy={busyApp === selectedApp.name}
228
+ hasActiveViewer={selectedAppHasActiveViewer}
229
+ isActive={selectedAppIsActive}
230
+ onBack={() => setSelectedAppName(null)}
231
+ onLaunch={() => void handleLaunch(selectedApp)}
232
+ onOpenCurrentGame={handleOpenCurrentGame}
233
+ onOpenCurrentGameInNewTab={() =>
234
+ void handleOpenCurrentGameInNewTab()
235
+ }
236
+ />
237
+ ) : null}
238
+
239
+ <div className={selectedApp ? "phone-grid-when-detail" : ""}>
240
+ <AppsCatalogGrid
241
+ activeAppNames={activeAppNames}
242
+ activeGameDisplayName={activeGameDisplayName}
243
+ error={error}
244
+ hasCurrentGame={hasCurrentGame}
245
+ loading={loading}
246
+ searchQuery={searchQuery}
247
+ selectedAppName={selectedAppName}
248
+ showActiveOnly={showActiveOnly}
249
+ visibleApps={visibleApps}
250
+ onOpenCurrentGame={handleOpenCurrentGame}
251
+ onRefresh={() => void loadApps()}
252
+ onSearchQueryChange={setSearchQuery}
253
+ onSelectApp={setSelectedAppName}
254
+ onToggleActiveOnly={() =>
255
+ setShowActiveOnly((current) => !current)
256
+ }
257
+ />
258
+ </div>
259
+ </div>
260
+
261
+ <div className="phone-home-indicator" />
262
+ </div>
263
+
264
+ <div className="pad-frame">
265
+ <div className="phone-status-bar">
266
+ <span className="font-semibold">9:41</span>
267
+ <span className="opacity-50">📶 🔋</span>
268
+ </div>
269
+
270
+ <div className="phone-content">
271
+ {selectedApp ? (
272
+ <AppDetailPane
273
+ app={selectedApp}
274
+ busy={busyApp === selectedApp.name}
275
+ hasActiveViewer={selectedAppHasActiveViewer}
276
+ isActive={selectedAppIsActive}
277
+ onBack={() => setSelectedAppName(null)}
278
+ onLaunch={() => void handleLaunch(selectedApp)}
279
+ onOpenCurrentGame={handleOpenCurrentGame}
280
+ onOpenCurrentGameInNewTab={() =>
281
+ void handleOpenCurrentGameInNewTab()
282
+ }
283
+ />
284
+ ) : (
285
+ <AppsEmptyState />
286
+ )}
287
+ </div>
288
+
289
+ <div className="phone-home-indicator" />
290
+ </div>
291
+ </div>
292
+ );
293
+ }
@@ -0,0 +1,86 @@
1
+ interface AvatarLoaderProps {
2
+ /** Sub-label text below the progress bar */
3
+ label?: string;
4
+ /** When true, renders as a full-screen loader instead of an overlay */
5
+ fullScreen?: boolean;
6
+ }
7
+
8
+ export function AvatarLoader({
9
+ label = "Initializing entity",
10
+ fullScreen = false,
11
+ }: AvatarLoaderProps) {
12
+ return (
13
+ <div
14
+ style={{
15
+ position: fullScreen ? "fixed" : "absolute",
16
+ inset: 0,
17
+ display: "flex",
18
+ alignItems: "center",
19
+ justifyContent: "center",
20
+ background: fullScreen ? "#0c0e14" : "transparent",
21
+ zIndex: 10,
22
+ }}
23
+ >
24
+ <div
25
+ style={{
26
+ display: "flex",
27
+ flexDirection: "column",
28
+ alignItems: "flex-start",
29
+ gap: 12,
30
+ width: 280,
31
+ }}
32
+ >
33
+ {/* LOADING label */}
34
+ <div
35
+ style={{
36
+ fontFamily: "var(--mono, monospace)",
37
+ fontSize: 12,
38
+ fontWeight: 400,
39
+ letterSpacing: "0.35em",
40
+ textTransform: "uppercase",
41
+ color: "rgba(255, 255, 255, 0.7)",
42
+ userSelect: "none",
43
+ }}
44
+ >
45
+ LOADING
46
+ <span className="loading-screen__dots" />
47
+ </div>
48
+
49
+ {/* Progress bar */}
50
+ <div
51
+ style={{
52
+ width: "100%",
53
+ height: 3,
54
+ background: "rgba(255, 255, 255, 0.1)",
55
+ overflow: "hidden",
56
+ }}
57
+ >
58
+ <div
59
+ style={{
60
+ width: "60%",
61
+ height: "100%",
62
+ background: "rgba(255, 255, 255, 0.85)",
63
+ boxShadow: "0 0 8px rgba(255, 255, 255, 0.3)",
64
+ animation: "avatar-loader-progress 2s ease-in-out infinite",
65
+ }}
66
+ />
67
+ </div>
68
+
69
+ {/* Sub label */}
70
+ <div
71
+ style={{
72
+ fontFamily: "var(--mono, monospace)",
73
+ fontSize: 10,
74
+ fontWeight: 400,
75
+ letterSpacing: "0.12em",
76
+ textTransform: "uppercase",
77
+ color: "rgba(255, 255, 255, 0.3)",
78
+ userSelect: "none",
79
+ }}
80
+ >
81
+ {label}
82
+ </div>
83
+ </div>
84
+ </div>
85
+ );
86
+ }