@elizaos/app-core 2.0.0-alpha.74 → 2.0.0-alpha.76
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/App.d.ts.map +1 -0
- package/{dist/App.js → App.js} +3 -3
- package/{dist/components → components}/AdvancedPageView.d.ts.map +1 -1
- package/{dist/components → components}/AdvancedPageView.js +0 -10
- package/{dist/components → components}/CharacterView.d.ts.map +1 -1
- package/components/CharacterView.js +685 -0
- package/{dist/components → components}/ChatComposer.d.ts.map +1 -1
- package/{dist/components → components}/ChatComposer.js +4 -4
- package/{dist/components → components}/ChatView.d.ts.map +1 -1
- package/{dist/components → components}/ChatView.js +15 -0
- package/{dist/components → components}/CompanionView.js +1 -1
- package/{dist/components → components}/ConfigPageView.js +1 -1
- package/{dist/components → components}/ElizaCloudDashboard.js +1 -1
- package/{dist/components → components}/FlaminaGuide.js +1 -1
- package/{dist/components → components}/OnboardingWizard.d.ts.map +1 -1
- package/{dist/components → components}/OnboardingWizard.js +3 -2
- package/{dist/components → components}/PluginsView.d.ts.map +1 -1
- package/{dist/components → components}/PluginsView.js +1 -5
- package/{dist/components → components}/avatar/VrmEngine.d.ts +13 -0
- package/{dist/components → components}/avatar/VrmEngine.d.ts.map +1 -1
- package/{dist/components → components}/avatar/VrmEngine.js +66 -0
- package/{dist/components → components}/avatar/VrmViewer.d.ts +15 -0
- package/{dist/components → components}/avatar/VrmViewer.d.ts.map +1 -1
- package/{dist/components → components}/avatar/VrmViewer.js +56 -1
- package/{src/components/index.ts → components/index.d.ts} +1 -1
- package/{dist/components → components}/index.d.ts.map +1 -1
- package/{dist/components → components}/index.js +0 -1
- package/{dist/components → components}/onboarding/ConnectionStep.d.ts.map +1 -1
- package/{dist/components → components}/onboarding/ConnectionStep.js +12 -7
- package/{dist/components → components}/permissions/StreamingPermissions.d.ts.map +1 -1
- package/{dist/components → components}/permissions/StreamingPermissions.js +1 -1
- package/{dist/components → components}/ui-switch.js +4 -4
- package/{dist/i18n → i18n}/locales/en.json +45 -1
- package/{src/i18n → i18n}/locales/es.json +41 -0
- package/{dist/i18n → i18n}/locales/ko.json +41 -0
- package/{dist/i18n → i18n}/locales/pt.json +41 -0
- package/{dist/i18n → i18n}/locales/zh-CN.json +41 -0
- package/package.json +143 -53
- package/{dist/state → state}/AppContext.d.ts.map +1 -1
- package/{dist/state → state}/AppContext.js +38 -16
- package/{dist/styles → styles}/anime.css +1 -4
- package/{dist/styles → styles}/onboarding-game.css +125 -9
- package/.turbo/turbo-build.log +0 -2
- package/.turbo/turbo-lint$colon$check.log +0 -2
- package/.turbo/turbo-typecheck.log +0 -1
- package/dist/App.d.ts.map +0 -1
- package/dist/components/CharacterView.js +0 -719
- package/dist/components/MiladyBar.d.ts +0 -2
- package/dist/components/MiladyBar.d.ts.map +0 -1
- package/dist/components/MiladyBar.js +0 -50
- package/dist/components/MiladyBarSettings.d.ts +0 -2
- package/dist/components/MiladyBarSettings.d.ts.map +0 -1
- package/dist/components/MiladyBarSettings.js +0 -513
- package/dist/components/SecurityPageView.d.ts +0 -2
- package/dist/components/SecurityPageView.d.ts.map +0 -1
- package/dist/components/SecurityPageView.js +0 -81
- package/dist/components/index.d.ts +0 -97
- package/dist/components/milady-bar/CloudCreditsChip.d.ts +0 -2
- package/dist/components/milady-bar/CloudCreditsChip.d.ts.map +0 -1
- package/dist/components/milady-bar/CloudCreditsChip.js +0 -25
- package/dist/components/milady-bar/ProviderDropdown.d.ts +0 -13
- package/dist/components/milady-bar/ProviderDropdown.d.ts.map +0 -1
- package/dist/components/milady-bar/ProviderDropdown.js +0 -68
- package/dist/components/milady-bar/WalletSummary.d.ts +0 -2
- package/dist/components/milady-bar/WalletSummary.d.ts.map +0 -1
- package/dist/components/milady-bar/WalletSummary.js +0 -37
- package/dist/components/milady-bar/index.d.ts +0 -4
- package/dist/components/milady-bar/index.d.ts.map +0 -1
- package/dist/components/milady-bar/index.js +0 -3
- package/dist/hooks/useMiladyBar.d.ts +0 -2
- package/dist/hooks/useMiladyBar.d.ts.map +0 -1
- package/dist/hooks/useMiladyBar.js +0 -472
- package/dist/i18n/locales/es.json +0 -1195
- package/dist/package.json +0 -180
- package/src/App.tsx +0 -504
- package/src/actions/character.test.ts +0 -139
- package/src/actions/character.ts +0 -334
- package/src/actions/chat-helpers.ts +0 -100
- package/src/actions/cloud.ts +0 -59
- package/src/actions/index.ts +0 -12
- package/src/actions/lifecycle.ts +0 -175
- package/src/actions/onboarding.ts +0 -38
- package/src/actions/triggers.ts +0 -190
- package/src/ambient.d.ts +0 -33
- package/src/api/client.ts +0 -5659
- package/src/api/index.ts +0 -1
- package/src/autonomy/index.ts +0 -477
- package/src/bridge/capacitor-bridge.ts +0 -295
- package/src/bridge/electrobun-rpc.ts +0 -78
- package/src/bridge/electrobun-runtime.ts +0 -28
- package/src/bridge/index.ts +0 -5
- package/src/bridge/native-plugins.ts +0 -138
- package/src/bridge/plugin-bridge.ts +0 -352
- package/src/bridge/storage-bridge.ts +0 -162
- package/src/chat/index.ts +0 -250
- package/src/coding/index.ts +0 -43
- package/src/components/AdvancedPageView.tsx +0 -382
- package/src/components/AgentActivityBox.tsx +0 -49
- package/src/components/ApiKeyConfig.tsx +0 -222
- package/src/components/AppsPageView.tsx +0 -52
- package/src/components/AppsView.tsx +0 -293
- package/src/components/AvatarLoader.tsx +0 -104
- package/src/components/AvatarSelector.tsx +0 -223
- package/src/components/BscTradePanel.tsx +0 -549
- package/src/components/BugReportModal.tsx +0 -499
- package/src/components/CharacterRoster.tsx +0 -143
- package/src/components/CharacterView.tsx +0 -1575
- package/src/components/ChatAvatar.test.ts +0 -97
- package/src/components/ChatAvatar.tsx +0 -147
- package/src/components/ChatComposer.tsx +0 -330
- package/src/components/ChatMessage.tsx +0 -448
- package/src/components/ChatModalView.test.tsx +0 -118
- package/src/components/ChatModalView.tsx +0 -125
- package/src/components/ChatView.tsx +0 -992
- package/src/components/CloudOnboarding.tsx +0 -81
- package/src/components/CloudSourceControls.tsx +0 -85
- package/src/components/CodingAgentSettingsSection.tsx +0 -537
- package/src/components/CommandPalette.tsx +0 -284
- package/src/components/CompanionSceneHost.tsx +0 -517
- package/src/components/CompanionShell.tsx +0 -31
- package/src/components/CompanionView.tsx +0 -110
- package/src/components/ConfigPageView.tsx +0 -763
- package/src/components/ConfigSaveFooter.tsx +0 -41
- package/src/components/ConfirmModal.tsx +0 -379
- package/src/components/ConnectionFailedBanner.tsx +0 -91
- package/src/components/ConnectorsPageView.tsx +0 -13
- package/src/components/ConversationsSidebar.tsx +0 -279
- package/src/components/CustomActionEditor.tsx +0 -1127
- package/src/components/CustomActionsPanel.tsx +0 -288
- package/src/components/CustomActionsView.tsx +0 -325
- package/src/components/DatabasePageView.tsx +0 -55
- package/src/components/DatabaseView.tsx +0 -814
- package/src/components/ElizaCloudDashboard.tsx +0 -1696
- package/src/components/EmotePicker.tsx +0 -529
- package/src/components/ErrorBoundary.tsx +0 -76
- package/src/components/FineTuningView.tsx +0 -1080
- package/src/components/FlaminaGuide.test.tsx +0 -61
- package/src/components/FlaminaGuide.tsx +0 -212
- package/src/components/GameView.tsx +0 -551
- package/src/components/GameViewOverlay.tsx +0 -133
- package/src/components/GlobalEmoteOverlay.tsx +0 -152
- package/src/components/Header.test.tsx +0 -413
- package/src/components/Header.tsx +0 -400
- package/src/components/HeartbeatsView.tsx +0 -1003
- package/src/components/InventoryView.tsx +0 -393
- package/src/components/KnowledgeView.tsx +0 -1128
- package/src/components/LanguageDropdown.tsx +0 -192
- package/src/components/LifoMonitorPanel.tsx +0 -196
- package/src/components/LifoSandboxView.tsx +0 -499
- package/src/components/LoadingScreen.tsx +0 -112
- package/src/components/LogsPageView.tsx +0 -17
- package/src/components/LogsView.tsx +0 -239
- package/src/components/MediaGalleryView.tsx +0 -431
- package/src/components/MediaSettingsSection.tsx +0 -893
- package/src/components/MessageContent.tsx +0 -815
- package/src/components/MiladyBar.tsx +0 -103
- package/src/components/MiladyBarSettings.tsx +0 -872
- package/src/components/OnboardingWizard.test.tsx +0 -104
- package/src/components/OnboardingWizard.tsx +0 -249
- package/src/components/PairingView.tsx +0 -109
- package/src/components/PermissionsSection.tsx +0 -1184
- package/src/components/PluginsPageView.tsx +0 -9
- package/src/components/PluginsView.tsx +0 -3129
- package/src/components/ProviderSwitcher.tsx +0 -903
- package/src/components/RestartBanner.tsx +0 -76
- package/src/components/RuntimeView.tsx +0 -460
- package/src/components/SaveCommandModal.tsx +0 -211
- package/src/components/SecretsView.tsx +0 -569
- package/src/components/SecurityPageView.tsx +0 -242
- package/src/components/SettingsView.tsx +0 -825
- package/src/components/ShellOverlays.tsx +0 -41
- package/src/components/ShortcutsOverlay.tsx +0 -155
- package/src/components/SkillsView.tsx +0 -1435
- package/src/components/StartupFailureView.tsx +0 -63
- package/src/components/StreamView.tsx +0 -481
- package/src/components/StripeEmbeddedCheckout.tsx +0 -155
- package/src/components/SubscriptionStatus.tsx +0 -640
- package/src/components/SystemWarningBanner.tsx +0 -71
- package/src/components/ThemeToggle.tsx +0 -103
- package/src/components/TrajectoriesView.tsx +0 -526
- package/src/components/TrajectoryDetailView.tsx +0 -426
- package/src/components/TriggersView.tsx +0 -1
- package/src/components/VectorBrowserView.tsx +0 -1633
- package/src/components/VoiceConfigView.tsx +0 -674
- package/src/components/VrmStage.test.ts +0 -176
- package/src/components/VrmStage.tsx +0 -309
- package/src/components/WhatsAppQrOverlay.tsx +0 -230
- package/src/components/__tests__/chainConfig.test.ts +0 -220
- package/src/components/apps/AppDetailPane.tsx +0 -242
- package/src/components/apps/AppsCatalogGrid.tsx +0 -137
- package/src/components/apps/extensions/registry.ts +0 -13
- package/src/components/apps/extensions/types.ts +0 -9
- package/src/components/apps/helpers.ts +0 -43
- package/src/components/avatar/VrmAnimationLoader.test.ts +0 -164
- package/src/components/avatar/VrmAnimationLoader.ts +0 -151
- package/src/components/avatar/VrmBlinkController.ts +0 -118
- package/src/components/avatar/VrmCameraManager.ts +0 -407
- package/src/components/avatar/VrmEngine.ts +0 -2767
- package/src/components/avatar/VrmFootShadow.ts +0 -96
- package/src/components/avatar/VrmViewer.tsx +0 -421
- package/src/components/avatar/__tests__/VrmCameraManager.test.ts +0 -168
- package/src/components/avatar/__tests__/VrmEngine.test.ts +0 -1574
- package/src/components/avatar/mixamoVRMRigMap.ts +0 -62
- package/src/components/avatar/retargetMixamoFbxToVrm.ts +0 -144
- package/src/components/avatar/retargetMixamoGltfToVrm.ts +0 -119
- package/src/components/chainConfig.ts +0 -400
- package/src/components/companion/CompanionHeader.tsx +0 -50
- package/src/components/companion/CompanionSceneHost.tsx +0 -5
- package/src/components/companion/VrmStage.tsx +0 -2
- package/src/components/companion/__tests__/walletUtils.test.ts +0 -742
- package/src/components/companion/index.ts +0 -18
- package/src/components/companion/walletUtils.ts +0 -290
- package/src/components/companion-shell-styles.test.ts +0 -142
- package/src/components/companion-shell-styles.ts +0 -270
- package/src/components/confirm-delete-control.tsx +0 -69
- package/src/components/conversations/ConversationListItem.tsx +0 -185
- package/src/components/conversations/conversation-utils.ts +0 -151
- package/src/components/format.ts +0 -131
- package/src/components/inventory/CopyableAddress.tsx +0 -41
- package/src/components/inventory/InventoryToolbar.tsx +0 -142
- package/src/components/inventory/NftGrid.tsx +0 -99
- package/src/components/inventory/TokenLogo.tsx +0 -71
- package/src/components/inventory/TokensTable.tsx +0 -216
- package/src/components/inventory/constants.ts +0 -170
- package/src/components/inventory/index.ts +0 -29
- package/src/components/inventory/media-url.test.ts +0 -38
- package/src/components/inventory/media-url.ts +0 -36
- package/src/components/inventory/useInventoryData.ts +0 -460
- package/src/components/knowledge-upload-image.ts +0 -215
- package/src/components/labels.ts +0 -46
- package/src/components/milady-bar/CloudCreditsChip.tsx +0 -61
- package/src/components/milady-bar/ProviderDropdown.tsx +0 -166
- package/src/components/milady-bar/WalletSummary.tsx +0 -61
- package/src/components/milady-bar/index.ts +0 -3
- package/src/components/onboarding/ActivateStep.tsx +0 -34
- package/src/components/onboarding/ConnectionStep.tsx +0 -1590
- package/src/components/onboarding/IdentityStep.tsx +0 -251
- package/src/components/onboarding/OnboardingPanel.tsx +0 -39
- package/src/components/onboarding/OnboardingStepNav.tsx +0 -41
- package/src/components/onboarding/PermissionsStep.tsx +0 -20
- package/src/components/onboarding/RpcStep.tsx +0 -402
- package/src/components/permissions/PermissionIcon.tsx +0 -25
- package/src/components/permissions/StreamingPermissions.tsx +0 -413
- package/src/components/plugins/showcase-data.ts +0 -481
- package/src/components/shared/ShellHeaderControls.tsx +0 -198
- package/src/components/shared-companion-scene-context.ts +0 -15
- package/src/components/skeletons.tsx +0 -88
- package/src/components/stream/ActivityFeed.tsx +0 -113
- package/src/components/stream/AvatarPip.tsx +0 -10
- package/src/components/stream/ChatContent.tsx +0 -126
- package/src/components/stream/ChatTicker.tsx +0 -55
- package/src/components/stream/IdleContent.tsx +0 -73
- package/src/components/stream/StatusBar.tsx +0 -463
- package/src/components/stream/StreamSettings.tsx +0 -506
- package/src/components/stream/StreamTerminal.tsx +0 -94
- package/src/components/stream/StreamVoiceConfig.tsx +0 -160
- package/src/components/stream/helpers.ts +0 -134
- package/src/components/stream/overlays/OverlayLayer.tsx +0 -75
- package/src/components/stream/overlays/built-in/ActionTickerWidget.tsx +0 -64
- package/src/components/stream/overlays/built-in/AlertPopupWidget.tsx +0 -87
- package/src/components/stream/overlays/built-in/BrandingWidget.tsx +0 -51
- package/src/components/stream/overlays/built-in/CustomHtmlWidget.tsx +0 -105
- package/src/components/stream/overlays/built-in/PeonGlassWidget.tsx +0 -265
- package/src/components/stream/overlays/built-in/PeonHudWidget.tsx +0 -247
- package/src/components/stream/overlays/built-in/PeonSakuraWidget.tsx +0 -278
- package/src/components/stream/overlays/built-in/ThoughtBubbleWidget.tsx +0 -77
- package/src/components/stream/overlays/built-in/ViewerCountWidget.tsx +0 -46
- package/src/components/stream/overlays/built-in/index.ts +0 -13
- package/src/components/stream/overlays/registry.ts +0 -22
- package/src/components/stream/overlays/types.ts +0 -90
- package/src/components/stream/overlays/useOverlayLayout.ts +0 -218
- package/src/components/trajectory-format.ts +0 -50
- package/src/components/ui-badges.tsx +0 -109
- package/src/components/ui-switch.tsx +0 -57
- package/src/components/vector-browser-three.ts +0 -29
- package/src/config/branding.ts +0 -67
- package/src/config/config-catalog.ts +0 -1092
- package/src/config/config-field.tsx +0 -1924
- package/src/config/config-renderer.tsx +0 -734
- package/src/config/index.ts +0 -12
- package/src/config/ui-renderer.tsx +0 -1751
- package/src/config/ui-spec.ts +0 -256
- package/src/events/index.ts +0 -96
- package/src/hooks/index.ts +0 -14
- package/src/hooks/useBugReport.tsx +0 -43
- package/src/hooks/useCanvasWindow.ts +0 -372
- package/src/hooks/useChatAvatarVoice.ts +0 -111
- package/src/hooks/useClickOutside.ts +0 -31
- package/src/hooks/useContextMenu.ts +0 -127
- package/src/hooks/useKeyboardShortcuts.ts +0 -86
- package/src/hooks/useLifoSync.ts +0 -143
- package/src/hooks/useMemoryMonitor.ts +0 -334
- package/src/hooks/useMiladyBar.ts +0 -594
- package/src/hooks/useRenderGuard.ts +0 -43
- package/src/hooks/useRetakeCapture.ts +0 -68
- package/src/hooks/useStreamPopoutNavigation.ts +0 -27
- package/src/hooks/useTimeout.ts +0 -37
- package/src/hooks/useVoiceChat.ts +0 -1442
- package/src/hooks/useWhatsAppPairing.ts +0 -123
- package/src/i18n/index.ts +0 -76
- package/src/i18n/locales/en.json +0 -1195
- package/src/i18n/locales/ko.json +0 -1195
- package/src/i18n/locales/pt.json +0 -1195
- package/src/i18n/locales/zh-CN.json +0 -1195
- package/src/i18n/messages.ts +0 -21
- package/src/index.ts +0 -6
- package/src/navigation/index.ts +0 -286
- package/src/navigation.test.ts +0 -189
- package/src/onboarding-config.test.ts +0 -104
- package/src/onboarding-config.ts +0 -122
- package/src/platform/browser-launch.test.ts +0 -94
- package/src/platform/browser-launch.ts +0 -149
- package/src/platform/index.ts +0 -58
- package/src/platform/init.ts +0 -238
- package/src/platform/lifo.ts +0 -225
- package/src/providers/index.ts +0 -108
- package/src/shell-params.test.ts +0 -48
- package/src/shell-params.ts +0 -36
- package/src/state/AppContext.tsx +0 -6415
- package/src/state/index.ts +0 -6
- package/src/state/internal.ts +0 -91
- package/src/state/onboarding-resume.test.ts +0 -135
- package/src/state/onboarding-resume.ts +0 -263
- package/src/state/parsers.test.ts +0 -124
- package/src/state/parsers.ts +0 -309
- package/src/state/persistence.ts +0 -379
- package/src/state/shell-routing.ts +0 -39
- package/src/state/types.ts +0 -724
- package/src/state/ui-preferences.ts +0 -3
- package/src/state/useApp.ts +0 -23
- package/src/state/vrm.ts +0 -108
- package/src/styles/anime.css +0 -6324
- package/src/styles/base.css +0 -213
- package/src/styles/onboarding-game.css +0 -976
- package/src/styles/styles.css +0 -2087
- package/src/styles/xterm.css +0 -241
- package/src/types/index.ts +0 -715
- package/src/types/react-test-renderer.d.ts +0 -45
- package/src/utils/asset-url.ts +0 -110
- package/src/utils/assistant-text.ts +0 -172
- package/src/utils/clipboard.ts +0 -41
- package/src/utils/desktop-dialogs.ts +0 -80
- package/src/utils/eliza-globals.ts +0 -44
- package/src/utils/index.ts +0 -7
- package/src/utils/number-parsing.ts +0 -125
- package/src/utils/openExternalUrl.ts +0 -20
- package/src/utils/spoken-text.ts +0 -65
- package/src/utils/streaming-text.ts +0 -120
- package/src/voice/index.ts +0 -1
- package/src/voice/types.ts +0 -197
- package/src/wallet-rpc.ts +0 -176
- package/test/app/AppContext.pty-sessions.test.tsx +0 -143
- package/test/app/MessageContent.test.tsx +0 -366
- package/test/app/PermissionsOnboarding.test.tsx +0 -358
- package/test/app/PermissionsSection.test.tsx +0 -575
- package/test/app/advanced-trajectory-fine-tuning.e2e.test.ts +0 -396
- package/test/app/agent-activity-box.test.tsx +0 -132
- package/test/app/agent-transfer-lock.test.ts +0 -279
- package/test/app/api-client-electrobun-fallback.test.ts +0 -139
- package/test/app/api-client-electron-fallback.test.ts +0 -139
- package/test/app/api-client-timeout.test.ts +0 -75
- package/test/app/api-client-ws.test.ts +0 -98
- package/test/app/api-client.ws-max-reconnect.test.ts +0 -139
- package/test/app/api-client.ws-reconnect.test.ts +0 -157
- package/test/app/app-context-autonomy-events.test.ts +0 -559
- package/test/app/apps-page-view.test.ts +0 -114
- package/test/app/apps-view.test.ts +0 -768
- package/test/app/autonomous-workflows.e2e.test.ts +0 -765
- package/test/app/autonomy-events.test.ts +0 -150
- package/test/app/avatar-selector.test.tsx +0 -52
- package/test/app/bsc-trade-panel.test.tsx +0 -134
- package/test/app/bug-report-modal.test.tsx +0 -353
- package/test/app/character-action-bar-visibility.test.ts +0 -70
- package/test/app/character-customization.e2e.test.ts +0 -1384
- package/test/app/character-save-journey.test.ts +0 -1245
- package/test/app/chat-advanced-features.e2e.test.ts +0 -706
- package/test/app/chat-composer.test.tsx +0 -181
- package/test/app/chat-journey.test.ts +0 -1075
- package/test/app/chat-language-header.test.ts +0 -64
- package/test/app/chat-message.test.tsx +0 -222
- package/test/app/chat-modal-view.test.tsx +0 -191
- package/test/app/chat-routine-filter.test.ts +0 -96
- package/test/app/chat-send-lock.test.ts +0 -1465
- package/test/app/chat-stream-api-client.test.tsx +0 -390
- package/test/app/chat-view-game-modal.test.tsx +0 -661
- package/test/app/chat-view.test.tsx +0 -877
- package/test/app/cloud-api.e2e.test.ts +0 -258
- package/test/app/cloud-login-flow.e2e.test.ts +0 -494
- package/test/app/cloud-login-lock.test.ts +0 -416
- package/test/app/command-palette.test.tsx +0 -184
- package/test/app/command-registry.test.ts +0 -75
- package/test/app/companion-greeting-wave.test.tsx +0 -431
- package/test/app/companion-scene-host.test.tsx +0 -85
- package/test/app/companion-stale-conversation.test.tsx +0 -447
- package/test/app/companion-view.test.tsx +0 -690
- package/test/app/confirm-delete-control.test.ts +0 -79
- package/test/app/confirm-modal.test.tsx +0 -219
- package/test/app/connection-mode-persistence.test.ts +0 -411
- package/test/app/connectors-ui.e2e.test.ts +0 -508
- package/test/app/conversations-sidebar-game-modal.test.tsx +0 -265
- package/test/app/conversations-sidebar.test.tsx +0 -185
- package/test/app/custom-actions-smoke.test.ts +0 -387
- package/test/app/custom-avatar-api-client.test.ts +0 -207
- package/test/app/desktop-utils.test.ts +0 -145
- package/test/app/electrobun-rpc-bridge.test.ts +0 -83
- package/test/app/events.test.ts +0 -88
- package/test/app/export-import-flows.e2e.test.ts +0 -700
- package/test/app/fine-tuning-view.test.ts +0 -471
- package/test/app/game-view-auth-session.test.tsx +0 -187
- package/test/app/game-view.test.ts +0 -444
- package/test/app/global-emote-overlay.test.tsx +0 -106
- package/test/app/header-status.test.tsx +0 -149
- package/test/app/i18n.test.ts +0 -152
- package/test/app/inventory-bsc-view.test.ts +0 -940
- package/test/app/knowledge-ui.e2e.test.ts +0 -762
- package/test/app/knowledge-upload-helpers.test.ts +0 -124
- package/test/app/lifecycle-lock.test.ts +0 -267
- package/test/app/lifo-popout-utils.test.ts +0 -208
- package/test/app/lifo-safe-endpoint.test.ts +0 -34
- package/test/app/loading-screen.test.tsx +0 -45
- package/test/app/memory-monitor.test.ts +0 -331
- package/test/app/milady-bar-regression.test.tsx +0 -519
- package/test/app/milady-bar-settings.test.tsx +0 -1056
- package/test/app/milady-bar.test.tsx +0 -583
- package/test/app/navigation.test.tsx +0 -22
- package/test/app/onboarding-e2e-journey.test.ts +0 -1391
- package/test/app/onboarding-finish-lock.test.ts +0 -676
- package/test/app/onboarding-language.test.tsx +0 -160
- package/test/app/onboarding-steps.test.tsx +0 -376
- package/test/app/open-external-url.test.ts +0 -65
- package/test/app/pages-navigation-smoke.e2e.test.ts +0 -646
- package/test/app/pairing-lock.test.ts +0 -260
- package/test/app/pairing-view.test.tsx +0 -74
- package/test/app/permissions-section.test.ts +0 -432
- package/test/app/plugin-bridge.test.ts +0 -109
- package/test/app/plugins-ui.e2e.test.ts +0 -605
- package/test/app/plugins-view-game-modal.test.tsx +0 -686
- package/test/app/plugins-view-toggle-restart.test.ts +0 -129
- package/test/app/provider-dropdown-default.test.tsx +0 -300
- package/test/app/restart-banner.test.tsx +0 -205
- package/test/app/retake-capture.test.ts +0 -84
- package/test/app/sandbox-api-client.test.ts +0 -108
- package/test/app/save-command-modal.test.tsx +0 -109
- package/test/app/secrets-view.test.tsx +0 -92
- package/test/app/settings-control-styles.test.tsx +0 -142
- package/test/app/settings-reset.e2e.test.ts +0 -726
- package/test/app/settings-sections.e2e.test.ts +0 -614
- package/test/app/shared-format.test.ts +0 -44
- package/test/app/shared-switch.test.ts +0 -69
- package/test/app/shell-mode-switching.e2e.test.ts +0 -841
- package/test/app/shell-mode-tab-memory.test.tsx +0 -58
- package/test/app/shell-overlays.test.tsx +0 -50
- package/test/app/shortcuts-overlay.test.tsx +0 -111
- package/test/app/sse-interruption.test.ts +0 -122
- package/test/app/startup-asset-missing.e2e.test.ts +0 -126
- package/test/app/startup-backend-missing.e2e.test.ts +0 -126
- package/test/app/startup-chat.e2e.test.ts +0 -323
- package/test/app/startup-conversation-restore.test.tsx +0 -381
- package/test/app/startup-failure-view.test.tsx +0 -103
- package/test/app/startup-onboarding.e2e.test.ts +0 -712
- package/test/app/startup-timeout.test.tsx +0 -80
- package/test/app/startup-token-401.e2e.test.ts +0 -103
- package/test/app/stream-helpers.test.ts +0 -46
- package/test/app/stream-popout-navigation.test.tsx +0 -41
- package/test/app/stream-status-bar.test.tsx +0 -89
- package/test/app/theme-toggle.test.tsx +0 -40
- package/test/app/training-api-client.test.ts +0 -128
- package/test/app/trajectories-view.test.tsx +0 -220
- package/test/app/triggers-api-client.test.ts +0 -77
- package/test/app/triggers-navigation.test.ts +0 -113
- package/test/app/triggers-view.e2e.test.ts +0 -675
- package/test/app/update-channel-lock.test.ts +0 -259
- package/test/app/vector-browser.async-cleanup.test.tsx +0 -367
- package/test/app/vector-browser.e2e.test.ts +0 -653
- package/test/app/vrm-stage.test.tsx +0 -351
- package/test/app/vrm-viewer.test.tsx +0 -298
- package/test/app/wallet-api-save-lock.test.ts +0 -299
- package/test/app/wallet-hooks.test.ts +0 -405
- package/test/app/wallet-ui-flows.e2e.test.ts +0 -556
- package/test/avatar/asset-url.test.ts +0 -90
- package/test/avatar/avatar-selector.test.ts +0 -173
- package/test/avatar/mixamo-vrm-rig-map.test.ts +0 -111
- package/test/avatar/voice-chat-streaming-text.test.ts +0 -96
- package/test/avatar/voice-chat.test.ts +0 -391
- package/test/browser-extension/README.md +0 -138
- package/test/browser-extension/test-harness.ts +0 -499
- package/test/capacitor-plugins.e2e.test.ts +0 -168
- package/test/test-types.ts +0 -5
- package/test/ui/command-palette-commands.test.ts +0 -57
- package/test/ui/ui-renderer.test.ts +0 -39
- package/test/utils/assistant-text.test.ts +0 -68
- package/test/utils/eliza-globals.test.ts +0 -59
- package/test/utils/package-exports.test.ts +0 -70
- package/test/utils/streaming-text.test.ts +0 -89
- package/tsconfig.build.json +0 -19
- package/tsconfig.json +0 -20
- package/tsconfig.typecheck.json +0 -12
- /package/{dist/App.d.ts → App.d.ts} +0 -0
- /package/{dist/actions → actions}/character.d.ts +0 -0
- /package/{dist/actions → actions}/character.d.ts.map +0 -0
- /package/{dist/actions → actions}/character.js +0 -0
- /package/{dist/actions → actions}/chat-helpers.d.ts +0 -0
- /package/{dist/actions → actions}/chat-helpers.d.ts.map +0 -0
- /package/{dist/actions → actions}/chat-helpers.js +0 -0
- /package/{dist/actions → actions}/cloud.d.ts +0 -0
- /package/{dist/actions → actions}/cloud.d.ts.map +0 -0
- /package/{dist/actions → actions}/cloud.js +0 -0
- /package/{dist/actions → actions}/index.d.ts +0 -0
- /package/{dist/actions → actions}/index.d.ts.map +0 -0
- /package/{dist/actions → actions}/index.js +0 -0
- /package/{dist/actions → actions}/lifecycle.d.ts +0 -0
- /package/{dist/actions → actions}/lifecycle.d.ts.map +0 -0
- /package/{dist/actions → actions}/lifecycle.js +0 -0
- /package/{dist/actions → actions}/onboarding.d.ts +0 -0
- /package/{dist/actions → actions}/onboarding.d.ts.map +0 -0
- /package/{dist/actions → actions}/onboarding.js +0 -0
- /package/{dist/actions → actions}/triggers.d.ts +0 -0
- /package/{dist/actions → actions}/triggers.d.ts.map +0 -0
- /package/{dist/actions → actions}/triggers.js +0 -0
- /package/{dist/api → api}/client.d.ts +0 -0
- /package/{dist/api → api}/client.d.ts.map +0 -0
- /package/{dist/api → api}/client.js +0 -0
- /package/{dist/api → api}/index.d.ts +0 -0
- /package/{dist/api → api}/index.d.ts.map +0 -0
- /package/{dist/api → api}/index.js +0 -0
- /package/{dist/autonomy → autonomy}/index.d.ts +0 -0
- /package/{dist/autonomy → autonomy}/index.d.ts.map +0 -0
- /package/{dist/autonomy → autonomy}/index.js +0 -0
- /package/{dist/bridge → bridge}/capacitor-bridge.d.ts +0 -0
- /package/{dist/bridge → bridge}/capacitor-bridge.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/capacitor-bridge.js +0 -0
- /package/{dist/bridge → bridge}/electrobun-rpc.d.ts +0 -0
- /package/{dist/bridge → bridge}/electrobun-rpc.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/electrobun-rpc.js +0 -0
- /package/{dist/bridge → bridge}/electrobun-runtime.d.ts +0 -0
- /package/{dist/bridge → bridge}/electrobun-runtime.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/electrobun-runtime.js +0 -0
- /package/{dist/bridge → bridge}/index.d.ts +0 -0
- /package/{dist/bridge → bridge}/index.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/index.js +0 -0
- /package/{dist/bridge → bridge}/native-plugins.d.ts +0 -0
- /package/{dist/bridge → bridge}/native-plugins.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/native-plugins.js +0 -0
- /package/{dist/bridge → bridge}/plugin-bridge.d.ts +0 -0
- /package/{dist/bridge → bridge}/plugin-bridge.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/plugin-bridge.js +0 -0
- /package/{dist/bridge → bridge}/storage-bridge.d.ts +0 -0
- /package/{dist/bridge → bridge}/storage-bridge.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/storage-bridge.js +0 -0
- /package/{dist/chat → chat}/index.d.ts +0 -0
- /package/{dist/chat → chat}/index.d.ts.map +0 -0
- /package/{dist/chat → chat}/index.js +0 -0
- /package/{dist/coding → coding}/index.d.ts +0 -0
- /package/{dist/coding → coding}/index.d.ts.map +0 -0
- /package/{dist/coding → coding}/index.js +0 -0
- /package/{dist/components → components}/AdvancedPageView.d.ts +0 -0
- /package/{dist/components → components}/AgentActivityBox.d.ts +0 -0
- /package/{dist/components → components}/AgentActivityBox.d.ts.map +0 -0
- /package/{dist/components → components}/AgentActivityBox.js +0 -0
- /package/{dist/components → components}/ApiKeyConfig.d.ts +0 -0
- /package/{dist/components → components}/ApiKeyConfig.d.ts.map +0 -0
- /package/{dist/components → components}/ApiKeyConfig.js +0 -0
- /package/{dist/components → components}/AppsPageView.d.ts +0 -0
- /package/{dist/components → components}/AppsPageView.d.ts.map +0 -0
- /package/{dist/components → components}/AppsPageView.js +0 -0
- /package/{dist/components → components}/AppsView.d.ts +0 -0
- /package/{dist/components → components}/AppsView.d.ts.map +0 -0
- /package/{dist/components → components}/AppsView.js +0 -0
- /package/{dist/components → components}/AvatarLoader.d.ts +0 -0
- /package/{dist/components → components}/AvatarLoader.d.ts.map +0 -0
- /package/{dist/components → components}/AvatarLoader.js +0 -0
- /package/{dist/components → components}/AvatarSelector.d.ts +0 -0
- /package/{dist/components → components}/AvatarSelector.d.ts.map +0 -0
- /package/{dist/components → components}/AvatarSelector.js +0 -0
- /package/{dist/components → components}/BscTradePanel.d.ts +0 -0
- /package/{dist/components → components}/BscTradePanel.d.ts.map +0 -0
- /package/{dist/components → components}/BscTradePanel.js +0 -0
- /package/{dist/components → components}/BugReportModal.d.ts +0 -0
- /package/{dist/components → components}/BugReportModal.d.ts.map +0 -0
- /package/{dist/components → components}/BugReportModal.js +0 -0
- /package/{dist/components → components}/CharacterRoster.d.ts +0 -0
- /package/{dist/components → components}/CharacterRoster.d.ts.map +0 -0
- /package/{dist/components → components}/CharacterRoster.js +0 -0
- /package/{dist/components → components}/CharacterView.d.ts +0 -0
- /package/{dist/components → components}/ChatAvatar.d.ts +0 -0
- /package/{dist/components → components}/ChatAvatar.d.ts.map +0 -0
- /package/{dist/components → components}/ChatAvatar.js +0 -0
- /package/{dist/components → components}/ChatComposer.d.ts +0 -0
- /package/{dist/components → components}/ChatMessage.d.ts +0 -0
- /package/{dist/components → components}/ChatMessage.d.ts.map +0 -0
- /package/{dist/components → components}/ChatMessage.js +0 -0
- /package/{dist/components → components}/ChatModalView.d.ts +0 -0
- /package/{dist/components → components}/ChatModalView.d.ts.map +0 -0
- /package/{dist/components → components}/ChatModalView.js +0 -0
- /package/{dist/components → components}/ChatView.d.ts +0 -0
- /package/{dist/components → components}/CloudOnboarding.d.ts +0 -0
- /package/{dist/components → components}/CloudOnboarding.d.ts.map +0 -0
- /package/{dist/components → components}/CloudOnboarding.js +0 -0
- /package/{dist/components → components}/CloudSourceControls.d.ts +0 -0
- /package/{dist/components → components}/CloudSourceControls.d.ts.map +0 -0
- /package/{dist/components → components}/CloudSourceControls.js +0 -0
- /package/{dist/components → components}/CodingAgentSettingsSection.d.ts +0 -0
- /package/{dist/components → components}/CodingAgentSettingsSection.d.ts.map +0 -0
- /package/{dist/components → components}/CodingAgentSettingsSection.js +0 -0
- /package/{dist/components → components}/CommandPalette.d.ts +0 -0
- /package/{dist/components → components}/CommandPalette.d.ts.map +0 -0
- /package/{dist/components → components}/CommandPalette.js +0 -0
- /package/{dist/components → components}/CompanionSceneHost.d.ts +0 -0
- /package/{dist/components → components}/CompanionSceneHost.d.ts.map +0 -0
- /package/{dist/components → components}/CompanionSceneHost.js +0 -0
- /package/{dist/components → components}/CompanionShell.d.ts +0 -0
- /package/{dist/components → components}/CompanionShell.d.ts.map +0 -0
- /package/{dist/components → components}/CompanionShell.js +0 -0
- /package/{dist/components → components}/CompanionView.d.ts +0 -0
- /package/{dist/components → components}/CompanionView.d.ts.map +0 -0
- /package/{dist/components → components}/ConfigPageView.d.ts +0 -0
- /package/{dist/components → components}/ConfigPageView.d.ts.map +0 -0
- /package/{dist/components → components}/ConfigSaveFooter.d.ts +0 -0
- /package/{dist/components → components}/ConfigSaveFooter.d.ts.map +0 -0
- /package/{dist/components → components}/ConfigSaveFooter.js +0 -0
- /package/{dist/components → components}/ConfirmModal.d.ts +0 -0
- /package/{dist/components → components}/ConfirmModal.d.ts.map +0 -0
- /package/{dist/components → components}/ConfirmModal.js +0 -0
- /package/{dist/components → components}/ConnectionFailedBanner.d.ts +0 -0
- /package/{dist/components → components}/ConnectionFailedBanner.d.ts.map +0 -0
- /package/{dist/components → components}/ConnectionFailedBanner.js +0 -0
- /package/{dist/components → components}/ConnectorsPageView.d.ts +0 -0
- /package/{dist/components → components}/ConnectorsPageView.d.ts.map +0 -0
- /package/{dist/components → components}/ConnectorsPageView.js +0 -0
- /package/{dist/components → components}/ConversationsSidebar.d.ts +0 -0
- /package/{dist/components → components}/ConversationsSidebar.d.ts.map +0 -0
- /package/{dist/components → components}/ConversationsSidebar.js +0 -0
- /package/{dist/components → components}/CustomActionEditor.d.ts +0 -0
- /package/{dist/components → components}/CustomActionEditor.d.ts.map +0 -0
- /package/{dist/components → components}/CustomActionEditor.js +0 -0
- /package/{dist/components → components}/CustomActionsPanel.d.ts +0 -0
- /package/{dist/components → components}/CustomActionsPanel.d.ts.map +0 -0
- /package/{dist/components → components}/CustomActionsPanel.js +0 -0
- /package/{dist/components → components}/CustomActionsView.d.ts +0 -0
- /package/{dist/components → components}/CustomActionsView.d.ts.map +0 -0
- /package/{dist/components → components}/CustomActionsView.js +0 -0
- /package/{dist/components → components}/DatabasePageView.d.ts +0 -0
- /package/{dist/components → components}/DatabasePageView.d.ts.map +0 -0
- /package/{dist/components → components}/DatabasePageView.js +0 -0
- /package/{dist/components → components}/DatabaseView.d.ts +0 -0
- /package/{dist/components → components}/DatabaseView.d.ts.map +0 -0
- /package/{dist/components → components}/DatabaseView.js +0 -0
- /package/{dist/components → components}/ElizaCloudDashboard.d.ts +0 -0
- /package/{dist/components → components}/ElizaCloudDashboard.d.ts.map +0 -0
- /package/{dist/components → components}/EmotePicker.d.ts +0 -0
- /package/{dist/components → components}/EmotePicker.d.ts.map +0 -0
- /package/{dist/components → components}/EmotePicker.js +0 -0
- /package/{dist/components → components}/ErrorBoundary.d.ts +0 -0
- /package/{dist/components → components}/ErrorBoundary.d.ts.map +0 -0
- /package/{dist/components → components}/ErrorBoundary.js +0 -0
- /package/{dist/components → components}/FineTuningView.d.ts +0 -0
- /package/{dist/components → components}/FineTuningView.d.ts.map +0 -0
- /package/{dist/components → components}/FineTuningView.js +0 -0
- /package/{dist/components → components}/FlaminaGuide.d.ts +0 -0
- /package/{dist/components → components}/FlaminaGuide.d.ts.map +0 -0
- /package/{dist/components → components}/GameView.d.ts +0 -0
- /package/{dist/components → components}/GameView.d.ts.map +0 -0
- /package/{dist/components → components}/GameView.js +0 -0
- /package/{dist/components → components}/GameViewOverlay.d.ts +0 -0
- /package/{dist/components → components}/GameViewOverlay.d.ts.map +0 -0
- /package/{dist/components → components}/GameViewOverlay.js +0 -0
- /package/{dist/components → components}/GlobalEmoteOverlay.d.ts +0 -0
- /package/{dist/components → components}/GlobalEmoteOverlay.d.ts.map +0 -0
- /package/{dist/components → components}/GlobalEmoteOverlay.js +0 -0
- /package/{dist/components → components}/Header.d.ts +0 -0
- /package/{dist/components → components}/Header.d.ts.map +0 -0
- /package/{dist/components → components}/Header.js +0 -0
- /package/{dist/components → components}/HeartbeatsView.d.ts +0 -0
- /package/{dist/components → components}/HeartbeatsView.d.ts.map +0 -0
- /package/{dist/components → components}/HeartbeatsView.js +0 -0
- /package/{dist/components → components}/InventoryView.d.ts +0 -0
- /package/{dist/components → components}/InventoryView.d.ts.map +0 -0
- /package/{dist/components → components}/InventoryView.js +0 -0
- /package/{dist/components → components}/KnowledgeView.d.ts +0 -0
- /package/{dist/components → components}/KnowledgeView.d.ts.map +0 -0
- /package/{dist/components → components}/KnowledgeView.js +0 -0
- /package/{dist/components → components}/LanguageDropdown.d.ts +0 -0
- /package/{dist/components → components}/LanguageDropdown.d.ts.map +0 -0
- /package/{dist/components → components}/LanguageDropdown.js +0 -0
- /package/{dist/components → components}/LifoMonitorPanel.d.ts +0 -0
- /package/{dist/components → components}/LifoMonitorPanel.d.ts.map +0 -0
- /package/{dist/components → components}/LifoMonitorPanel.js +0 -0
- /package/{dist/components → components}/LifoSandboxView.d.ts +0 -0
- /package/{dist/components → components}/LifoSandboxView.d.ts.map +0 -0
- /package/{dist/components → components}/LifoSandboxView.js +0 -0
- /package/{dist/components → components}/LoadingScreen.d.ts +0 -0
- /package/{dist/components → components}/LoadingScreen.d.ts.map +0 -0
- /package/{dist/components → components}/LoadingScreen.js +0 -0
- /package/{dist/components → components}/LogsPageView.d.ts +0 -0
- /package/{dist/components → components}/LogsPageView.d.ts.map +0 -0
- /package/{dist/components → components}/LogsPageView.js +0 -0
- /package/{dist/components → components}/LogsView.d.ts +0 -0
- /package/{dist/components → components}/LogsView.d.ts.map +0 -0
- /package/{dist/components → components}/LogsView.js +0 -0
- /package/{dist/components → components}/MediaGalleryView.d.ts +0 -0
- /package/{dist/components → components}/MediaGalleryView.d.ts.map +0 -0
- /package/{dist/components → components}/MediaGalleryView.js +0 -0
- /package/{dist/components → components}/MediaSettingsSection.d.ts +0 -0
- /package/{dist/components → components}/MediaSettingsSection.d.ts.map +0 -0
- /package/{dist/components → components}/MediaSettingsSection.js +0 -0
- /package/{dist/components → components}/MessageContent.d.ts +0 -0
- /package/{dist/components → components}/MessageContent.d.ts.map +0 -0
- /package/{dist/components → components}/MessageContent.js +0 -0
- /package/{dist/components → components}/OnboardingWizard.d.ts +0 -0
- /package/{dist/components → components}/PairingView.d.ts +0 -0
- /package/{dist/components → components}/PairingView.d.ts.map +0 -0
- /package/{dist/components → components}/PairingView.js +0 -0
- /package/{dist/components → components}/PermissionsSection.d.ts +0 -0
- /package/{dist/components → components}/PermissionsSection.d.ts.map +0 -0
- /package/{dist/components → components}/PermissionsSection.js +0 -0
- /package/{dist/components → components}/PluginsPageView.d.ts +0 -0
- /package/{dist/components → components}/PluginsPageView.d.ts.map +0 -0
- /package/{dist/components → components}/PluginsPageView.js +0 -0
- /package/{dist/components → components}/PluginsView.d.ts +0 -0
- /package/{dist/components → components}/ProviderSwitcher.d.ts +0 -0
- /package/{dist/components → components}/ProviderSwitcher.d.ts.map +0 -0
- /package/{dist/components → components}/ProviderSwitcher.js +0 -0
- /package/{dist/components → components}/RestartBanner.d.ts +0 -0
- /package/{dist/components → components}/RestartBanner.d.ts.map +0 -0
- /package/{dist/components → components}/RestartBanner.js +0 -0
- /package/{dist/components → components}/RuntimeView.d.ts +0 -0
- /package/{dist/components → components}/RuntimeView.d.ts.map +0 -0
- /package/{dist/components → components}/RuntimeView.js +0 -0
- /package/{dist/components → components}/SaveCommandModal.d.ts +0 -0
- /package/{dist/components → components}/SaveCommandModal.d.ts.map +0 -0
- /package/{dist/components → components}/SaveCommandModal.js +0 -0
- /package/{dist/components → components}/SecretsView.d.ts +0 -0
- /package/{dist/components → components}/SecretsView.d.ts.map +0 -0
- /package/{dist/components → components}/SecretsView.js +0 -0
- /package/{dist/components → components}/SettingsView.d.ts +0 -0
- /package/{dist/components → components}/SettingsView.d.ts.map +0 -0
- /package/{dist/components → components}/SettingsView.js +0 -0
- /package/{dist/components → components}/ShellOverlays.d.ts +0 -0
- /package/{dist/components → components}/ShellOverlays.d.ts.map +0 -0
- /package/{dist/components → components}/ShellOverlays.js +0 -0
- /package/{dist/components → components}/ShortcutsOverlay.d.ts +0 -0
- /package/{dist/components → components}/ShortcutsOverlay.d.ts.map +0 -0
- /package/{dist/components → components}/ShortcutsOverlay.js +0 -0
- /package/{dist/components → components}/SkillsView.d.ts +0 -0
- /package/{dist/components → components}/SkillsView.d.ts.map +0 -0
- /package/{dist/components → components}/SkillsView.js +0 -0
- /package/{dist/components → components}/StartupFailureView.d.ts +0 -0
- /package/{dist/components → components}/StartupFailureView.d.ts.map +0 -0
- /package/{dist/components → components}/StartupFailureView.js +0 -0
- /package/{dist/components → components}/StreamView.d.ts +0 -0
- /package/{dist/components → components}/StreamView.d.ts.map +0 -0
- /package/{dist/components → components}/StreamView.js +0 -0
- /package/{dist/components → components}/StripeEmbeddedCheckout.d.ts +0 -0
- /package/{dist/components → components}/StripeEmbeddedCheckout.d.ts.map +0 -0
- /package/{dist/components → components}/StripeEmbeddedCheckout.js +0 -0
- /package/{dist/components → components}/SubscriptionStatus.d.ts +0 -0
- /package/{dist/components → components}/SubscriptionStatus.d.ts.map +0 -0
- /package/{dist/components → components}/SubscriptionStatus.js +0 -0
- /package/{dist/components → components}/SystemWarningBanner.d.ts +0 -0
- /package/{dist/components → components}/SystemWarningBanner.d.ts.map +0 -0
- /package/{dist/components → components}/SystemWarningBanner.js +0 -0
- /package/{dist/components → components}/ThemeToggle.d.ts +0 -0
- /package/{dist/components → components}/ThemeToggle.d.ts.map +0 -0
- /package/{dist/components → components}/ThemeToggle.js +0 -0
- /package/{dist/components → components}/TrajectoriesView.d.ts +0 -0
- /package/{dist/components → components}/TrajectoriesView.d.ts.map +0 -0
- /package/{dist/components → components}/TrajectoriesView.js +0 -0
- /package/{dist/components → components}/TrajectoryDetailView.d.ts +0 -0
- /package/{dist/components → components}/TrajectoryDetailView.d.ts.map +0 -0
- /package/{dist/components → components}/TrajectoryDetailView.js +0 -0
- /package/{dist/components → components}/TriggersView.d.ts +0 -0
- /package/{dist/components → components}/TriggersView.d.ts.map +0 -0
- /package/{dist/components → components}/TriggersView.js +0 -0
- /package/{dist/components → components}/VectorBrowserView.d.ts +0 -0
- /package/{dist/components → components}/VectorBrowserView.d.ts.map +0 -0
- /package/{dist/components → components}/VectorBrowserView.js +0 -0
- /package/{dist/components → components}/VoiceConfigView.d.ts +0 -0
- /package/{dist/components → components}/VoiceConfigView.d.ts.map +0 -0
- /package/{dist/components → components}/VoiceConfigView.js +0 -0
- /package/{dist/components → components}/VrmStage.d.ts +0 -0
- /package/{dist/components → components}/VrmStage.d.ts.map +0 -0
- /package/{dist/components → components}/VrmStage.js +0 -0
- /package/{dist/components → components}/WhatsAppQrOverlay.d.ts +0 -0
- /package/{dist/components → components}/WhatsAppQrOverlay.d.ts.map +0 -0
- /package/{dist/components → components}/WhatsAppQrOverlay.js +0 -0
- /package/{dist/components → components}/apps/AppDetailPane.d.ts +0 -0
- /package/{dist/components → components}/apps/AppDetailPane.d.ts.map +0 -0
- /package/{dist/components → components}/apps/AppDetailPane.js +0 -0
- /package/{dist/components → components}/apps/AppsCatalogGrid.d.ts +0 -0
- /package/{dist/components → components}/apps/AppsCatalogGrid.d.ts.map +0 -0
- /package/{dist/components → components}/apps/AppsCatalogGrid.js +0 -0
- /package/{dist/components → components}/apps/extensions/registry.d.ts +0 -0
- /package/{dist/components → components}/apps/extensions/registry.d.ts.map +0 -0
- /package/{dist/components → components}/apps/extensions/registry.js +0 -0
- /package/{dist/components → components}/apps/extensions/types.d.ts +0 -0
- /package/{dist/components → components}/apps/extensions/types.d.ts.map +0 -0
- /package/{dist/components → components}/apps/extensions/types.js +0 -0
- /package/{dist/components → components}/apps/helpers.d.ts +0 -0
- /package/{dist/components → components}/apps/helpers.d.ts.map +0 -0
- /package/{dist/components → components}/apps/helpers.js +0 -0
- /package/{dist/components → components}/avatar/VrmAnimationLoader.d.ts +0 -0
- /package/{dist/components → components}/avatar/VrmAnimationLoader.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/VrmAnimationLoader.js +0 -0
- /package/{dist/components → components}/avatar/VrmBlinkController.d.ts +0 -0
- /package/{dist/components → components}/avatar/VrmBlinkController.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/VrmBlinkController.js +0 -0
- /package/{dist/components → components}/avatar/VrmCameraManager.d.ts +0 -0
- /package/{dist/components → components}/avatar/VrmCameraManager.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/VrmCameraManager.js +0 -0
- /package/{dist/components → components}/avatar/VrmFootShadow.d.ts +0 -0
- /package/{dist/components → components}/avatar/VrmFootShadow.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/VrmFootShadow.js +0 -0
- /package/{dist/components → components}/avatar/mixamoVRMRigMap.d.ts +0 -0
- /package/{dist/components → components}/avatar/mixamoVRMRigMap.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/mixamoVRMRigMap.js +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoFbxToVrm.d.ts +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoFbxToVrm.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoFbxToVrm.js +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoGltfToVrm.d.ts +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoGltfToVrm.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoGltfToVrm.js +0 -0
- /package/{dist/components → components}/chainConfig.d.ts +0 -0
- /package/{dist/components → components}/chainConfig.d.ts.map +0 -0
- /package/{dist/components → components}/chainConfig.js +0 -0
- /package/{dist/components → components}/companion/CompanionHeader.d.ts +0 -0
- /package/{dist/components → components}/companion/CompanionHeader.d.ts.map +0 -0
- /package/{dist/components → components}/companion/CompanionHeader.js +0 -0
- /package/{dist/components → components}/companion/CompanionSceneHost.d.ts +0 -0
- /package/{dist/components → components}/companion/CompanionSceneHost.d.ts.map +0 -0
- /package/{dist/components → components}/companion/CompanionSceneHost.js +0 -0
- /package/{dist/components → components}/companion/VrmStage.d.ts +0 -0
- /package/{dist/components → components}/companion/VrmStage.d.ts.map +0 -0
- /package/{dist/components → components}/companion/VrmStage.js +0 -0
- /package/{dist/components → components}/companion/index.d.ts +0 -0
- /package/{dist/components → components}/companion/index.d.ts.map +0 -0
- /package/{dist/components → components}/companion/index.js +0 -0
- /package/{dist/components → components}/companion/walletUtils.d.ts +0 -0
- /package/{dist/components → components}/companion/walletUtils.d.ts.map +0 -0
- /package/{dist/components → components}/companion/walletUtils.js +0 -0
- /package/{dist/components → components}/companion-shell-styles.d.ts +0 -0
- /package/{dist/components → components}/companion-shell-styles.d.ts.map +0 -0
- /package/{dist/components → components}/companion-shell-styles.js +0 -0
- /package/{dist/components → components}/confirm-delete-control.d.ts +0 -0
- /package/{dist/components → components}/confirm-delete-control.d.ts.map +0 -0
- /package/{dist/components → components}/confirm-delete-control.js +0 -0
- /package/{dist/components → components}/conversations/ConversationListItem.d.ts +0 -0
- /package/{dist/components → components}/conversations/ConversationListItem.d.ts.map +0 -0
- /package/{dist/components → components}/conversations/ConversationListItem.js +0 -0
- /package/{dist/components → components}/conversations/conversation-utils.d.ts +0 -0
- /package/{dist/components → components}/conversations/conversation-utils.d.ts.map +0 -0
- /package/{dist/components → components}/conversations/conversation-utils.js +0 -0
- /package/{dist/components → components}/format.d.ts +0 -0
- /package/{dist/components → components}/format.d.ts.map +0 -0
- /package/{dist/components → components}/format.js +0 -0
- /package/{dist/components → components}/inventory/CopyableAddress.d.ts +0 -0
- /package/{dist/components → components}/inventory/CopyableAddress.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/CopyableAddress.js +0 -0
- /package/{dist/components → components}/inventory/InventoryToolbar.d.ts +0 -0
- /package/{dist/components → components}/inventory/InventoryToolbar.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/InventoryToolbar.js +0 -0
- /package/{dist/components → components}/inventory/NftGrid.d.ts +0 -0
- /package/{dist/components → components}/inventory/NftGrid.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/NftGrid.js +0 -0
- /package/{dist/components → components}/inventory/TokenLogo.d.ts +0 -0
- /package/{dist/components → components}/inventory/TokenLogo.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/TokenLogo.js +0 -0
- /package/{dist/components → components}/inventory/TokensTable.d.ts +0 -0
- /package/{dist/components → components}/inventory/TokensTable.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/TokensTable.js +0 -0
- /package/{dist/components → components}/inventory/constants.d.ts +0 -0
- /package/{dist/components → components}/inventory/constants.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/constants.js +0 -0
- /package/{dist/components → components}/inventory/index.d.ts +0 -0
- /package/{dist/components → components}/inventory/index.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/index.js +0 -0
- /package/{dist/components → components}/inventory/media-url.d.ts +0 -0
- /package/{dist/components → components}/inventory/media-url.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/media-url.js +0 -0
- /package/{dist/components → components}/inventory/useInventoryData.d.ts +0 -0
- /package/{dist/components → components}/inventory/useInventoryData.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/useInventoryData.js +0 -0
- /package/{dist/components → components}/knowledge-upload-image.d.ts +0 -0
- /package/{dist/components → components}/knowledge-upload-image.d.ts.map +0 -0
- /package/{dist/components → components}/knowledge-upload-image.js +0 -0
- /package/{dist/components → components}/labels.d.ts +0 -0
- /package/{dist/components → components}/labels.d.ts.map +0 -0
- /package/{dist/components → components}/labels.js +0 -0
- /package/{dist/components → components}/onboarding/ActivateStep.d.ts +0 -0
- /package/{dist/components → components}/onboarding/ActivateStep.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/ActivateStep.js +0 -0
- /package/{dist/components → components}/onboarding/ConnectionStep.d.ts +0 -0
- /package/{dist/components → components}/onboarding/IdentityStep.d.ts +0 -0
- /package/{dist/components → components}/onboarding/IdentityStep.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/IdentityStep.js +0 -0
- /package/{dist/components → components}/onboarding/OnboardingPanel.d.ts +0 -0
- /package/{dist/components → components}/onboarding/OnboardingPanel.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/OnboardingPanel.js +0 -0
- /package/{dist/components → components}/onboarding/OnboardingStepNav.d.ts +0 -0
- /package/{dist/components → components}/onboarding/OnboardingStepNav.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/OnboardingStepNav.js +0 -0
- /package/{dist/components → components}/onboarding/PermissionsStep.d.ts +0 -0
- /package/{dist/components → components}/onboarding/PermissionsStep.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/PermissionsStep.js +0 -0
- /package/{dist/components → components}/onboarding/RpcStep.d.ts +0 -0
- /package/{dist/components → components}/onboarding/RpcStep.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/RpcStep.js +0 -0
- /package/{dist/components → components}/permissions/PermissionIcon.d.ts +0 -0
- /package/{dist/components → components}/permissions/PermissionIcon.d.ts.map +0 -0
- /package/{dist/components → components}/permissions/PermissionIcon.js +0 -0
- /package/{dist/components → components}/permissions/StreamingPermissions.d.ts +0 -0
- /package/{dist/components → components}/plugins/showcase-data.d.ts +0 -0
- /package/{dist/components → components}/plugins/showcase-data.d.ts.map +0 -0
- /package/{dist/components → components}/plugins/showcase-data.js +0 -0
- /package/{dist/components → components}/shared/ShellHeaderControls.d.ts +0 -0
- /package/{dist/components → components}/shared/ShellHeaderControls.d.ts.map +0 -0
- /package/{dist/components → components}/shared/ShellHeaderControls.js +0 -0
- /package/{dist/components → components}/shared-companion-scene-context.d.ts +0 -0
- /package/{dist/components → components}/shared-companion-scene-context.d.ts.map +0 -0
- /package/{dist/components → components}/shared-companion-scene-context.js +0 -0
- /package/{dist/components → components}/skeletons.d.ts +0 -0
- /package/{dist/components → components}/skeletons.d.ts.map +0 -0
- /package/{dist/components → components}/skeletons.js +0 -0
- /package/{dist/components → components}/stream/ActivityFeed.d.ts +0 -0
- /package/{dist/components → components}/stream/ActivityFeed.d.ts.map +0 -0
- /package/{dist/components → components}/stream/ActivityFeed.js +0 -0
- /package/{dist/components → components}/stream/AvatarPip.d.ts +0 -0
- /package/{dist/components → components}/stream/AvatarPip.d.ts.map +0 -0
- /package/{dist/components → components}/stream/AvatarPip.js +0 -0
- /package/{dist/components → components}/stream/ChatContent.d.ts +0 -0
- /package/{dist/components → components}/stream/ChatContent.d.ts.map +0 -0
- /package/{dist/components → components}/stream/ChatContent.js +0 -0
- /package/{dist/components → components}/stream/ChatTicker.d.ts +0 -0
- /package/{dist/components → components}/stream/ChatTicker.d.ts.map +0 -0
- /package/{dist/components → components}/stream/ChatTicker.js +0 -0
- /package/{dist/components → components}/stream/IdleContent.d.ts +0 -0
- /package/{dist/components → components}/stream/IdleContent.d.ts.map +0 -0
- /package/{dist/components → components}/stream/IdleContent.js +0 -0
- /package/{dist/components → components}/stream/StatusBar.d.ts +0 -0
- /package/{dist/components → components}/stream/StatusBar.d.ts.map +0 -0
- /package/{dist/components → components}/stream/StatusBar.js +0 -0
- /package/{dist/components → components}/stream/StreamSettings.d.ts +0 -0
- /package/{dist/components → components}/stream/StreamSettings.d.ts.map +0 -0
- /package/{dist/components → components}/stream/StreamSettings.js +0 -0
- /package/{dist/components → components}/stream/StreamTerminal.d.ts +0 -0
- /package/{dist/components → components}/stream/StreamTerminal.d.ts.map +0 -0
- /package/{dist/components → components}/stream/StreamTerminal.js +0 -0
- /package/{dist/components → components}/stream/StreamVoiceConfig.d.ts +0 -0
- /package/{dist/components → components}/stream/StreamVoiceConfig.d.ts.map +0 -0
- /package/{dist/components → components}/stream/StreamVoiceConfig.js +0 -0
- /package/{dist/components → components}/stream/helpers.d.ts +0 -0
- /package/{dist/components → components}/stream/helpers.d.ts.map +0 -0
- /package/{dist/components → components}/stream/helpers.js +0 -0
- /package/{dist/components → components}/stream/overlays/OverlayLayer.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/OverlayLayer.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/OverlayLayer.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ActionTickerWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ActionTickerWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ActionTickerWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/AlertPopupWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/AlertPopupWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/AlertPopupWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/BrandingWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/BrandingWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/BrandingWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/CustomHtmlWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/CustomHtmlWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/CustomHtmlWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonGlassWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonGlassWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonGlassWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonHudWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonHudWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonHudWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonSakuraWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonSakuraWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonSakuraWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ThoughtBubbleWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ThoughtBubbleWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ThoughtBubbleWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ViewerCountWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ViewerCountWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ViewerCountWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/index.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/index.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/index.js +0 -0
- /package/{dist/components → components}/stream/overlays/registry.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/registry.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/registry.js +0 -0
- /package/{dist/components → components}/stream/overlays/types.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/types.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/types.js +0 -0
- /package/{dist/components → components}/stream/overlays/useOverlayLayout.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/useOverlayLayout.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/useOverlayLayout.js +0 -0
- /package/{dist/components → components}/trajectory-format.d.ts +0 -0
- /package/{dist/components → components}/trajectory-format.d.ts.map +0 -0
- /package/{dist/components → components}/trajectory-format.js +0 -0
- /package/{dist/components → components}/ui-badges.d.ts +0 -0
- /package/{dist/components → components}/ui-badges.d.ts.map +0 -0
- /package/{dist/components → components}/ui-badges.js +0 -0
- /package/{dist/components → components}/ui-switch.d.ts +0 -0
- /package/{dist/components → components}/ui-switch.d.ts.map +0 -0
- /package/{dist/components → components}/vector-browser-three.d.ts +0 -0
- /package/{dist/components → components}/vector-browser-three.d.ts.map +0 -0
- /package/{dist/components → components}/vector-browser-three.js +0 -0
- /package/{dist/config → config}/branding.d.ts +0 -0
- /package/{dist/config → config}/branding.d.ts.map +0 -0
- /package/{dist/config → config}/branding.js +0 -0
- /package/{dist/config → config}/config-catalog.d.ts +0 -0
- /package/{dist/config → config}/config-catalog.d.ts.map +0 -0
- /package/{dist/config → config}/config-catalog.js +0 -0
- /package/{dist/config → config}/config-field.d.ts +0 -0
- /package/{dist/config → config}/config-field.d.ts.map +0 -0
- /package/{dist/config → config}/config-field.js +0 -0
- /package/{dist/config → config}/config-renderer.d.ts +0 -0
- /package/{dist/config → config}/config-renderer.d.ts.map +0 -0
- /package/{dist/config → config}/config-renderer.js +0 -0
- /package/{dist/config → config}/index.d.ts +0 -0
- /package/{dist/config → config}/index.d.ts.map +0 -0
- /package/{dist/config → config}/index.js +0 -0
- /package/{dist/config → config}/ui-renderer.d.ts +0 -0
- /package/{dist/config → config}/ui-renderer.d.ts.map +0 -0
- /package/{dist/config → config}/ui-renderer.js +0 -0
- /package/{dist/config → config}/ui-spec.d.ts +0 -0
- /package/{dist/config → config}/ui-spec.d.ts.map +0 -0
- /package/{dist/config → config}/ui-spec.js +0 -0
- /package/{dist/events → events}/index.d.ts +0 -0
- /package/{dist/events → events}/index.d.ts.map +0 -0
- /package/{dist/events → events}/index.js +0 -0
- /package/{dist/hooks → hooks}/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/index.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/index.js +0 -0
- /package/{dist/hooks → hooks}/useBugReport.d.ts +0 -0
- /package/{dist/hooks → hooks}/useBugReport.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useBugReport.js +0 -0
- /package/{dist/hooks → hooks}/useCanvasWindow.d.ts +0 -0
- /package/{dist/hooks → hooks}/useCanvasWindow.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useCanvasWindow.js +0 -0
- /package/{dist/hooks → hooks}/useChatAvatarVoice.d.ts +0 -0
- /package/{dist/hooks → hooks}/useChatAvatarVoice.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useChatAvatarVoice.js +0 -0
- /package/{dist/hooks → hooks}/useClickOutside.d.ts +0 -0
- /package/{dist/hooks → hooks}/useClickOutside.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useClickOutside.js +0 -0
- /package/{dist/hooks → hooks}/useContextMenu.d.ts +0 -0
- /package/{dist/hooks → hooks}/useContextMenu.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useContextMenu.js +0 -0
- /package/{dist/hooks → hooks}/useKeyboardShortcuts.d.ts +0 -0
- /package/{dist/hooks → hooks}/useKeyboardShortcuts.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useKeyboardShortcuts.js +0 -0
- /package/{dist/hooks → hooks}/useLifoSync.d.ts +0 -0
- /package/{dist/hooks → hooks}/useLifoSync.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useLifoSync.js +0 -0
- /package/{dist/hooks → hooks}/useMemoryMonitor.d.ts +0 -0
- /package/{dist/hooks → hooks}/useMemoryMonitor.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useMemoryMonitor.js +0 -0
- /package/{dist/hooks → hooks}/useRenderGuard.d.ts +0 -0
- /package/{dist/hooks → hooks}/useRenderGuard.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useRenderGuard.js +0 -0
- /package/{dist/hooks → hooks}/useRetakeCapture.d.ts +0 -0
- /package/{dist/hooks → hooks}/useRetakeCapture.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useRetakeCapture.js +0 -0
- /package/{dist/hooks → hooks}/useStreamPopoutNavigation.d.ts +0 -0
- /package/{dist/hooks → hooks}/useStreamPopoutNavigation.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useStreamPopoutNavigation.js +0 -0
- /package/{dist/hooks → hooks}/useTimeout.d.ts +0 -0
- /package/{dist/hooks → hooks}/useTimeout.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useTimeout.js +0 -0
- /package/{dist/hooks → hooks}/useVoiceChat.d.ts +0 -0
- /package/{dist/hooks → hooks}/useVoiceChat.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useVoiceChat.js +0 -0
- /package/{dist/hooks → hooks}/useWhatsAppPairing.d.ts +0 -0
- /package/{dist/hooks → hooks}/useWhatsAppPairing.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useWhatsAppPairing.js +0 -0
- /package/{dist/i18n → i18n}/index.d.ts +0 -0
- /package/{dist/i18n → i18n}/index.d.ts.map +0 -0
- /package/{dist/i18n → i18n}/index.js +0 -0
- /package/{dist/i18n → i18n}/messages.d.ts +0 -0
- /package/{dist/i18n → i18n}/messages.d.ts.map +0 -0
- /package/{dist/i18n → i18n}/messages.js +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/index.d.ts.map → index.d.ts.map} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/navigation → navigation}/index.d.ts +0 -0
- /package/{dist/navigation → navigation}/index.d.ts.map +0 -0
- /package/{dist/navigation → navigation}/index.js +0 -0
- /package/{dist/onboarding-config.d.ts → onboarding-config.d.ts} +0 -0
- /package/{dist/onboarding-config.d.ts.map → onboarding-config.d.ts.map} +0 -0
- /package/{dist/onboarding-config.js → onboarding-config.js} +0 -0
- /package/{dist/platform → platform}/browser-launch.d.ts +0 -0
- /package/{dist/platform → platform}/browser-launch.d.ts.map +0 -0
- /package/{dist/platform → platform}/browser-launch.js +0 -0
- /package/{dist/platform → platform}/index.d.ts +0 -0
- /package/{dist/platform → platform}/index.d.ts.map +0 -0
- /package/{dist/platform → platform}/index.js +0 -0
- /package/{dist/platform → platform}/init.d.ts +0 -0
- /package/{dist/platform → platform}/init.d.ts.map +0 -0
- /package/{dist/platform → platform}/init.js +0 -0
- /package/{dist/platform → platform}/lifo.d.ts +0 -0
- /package/{dist/platform → platform}/lifo.d.ts.map +0 -0
- /package/{dist/platform → platform}/lifo.js +0 -0
- /package/{dist/providers → providers}/index.d.ts +0 -0
- /package/{dist/providers → providers}/index.d.ts.map +0 -0
- /package/{dist/providers → providers}/index.js +0 -0
- /package/{dist/shell-params.d.ts → shell-params.d.ts} +0 -0
- /package/{dist/shell-params.d.ts.map → shell-params.d.ts.map} +0 -0
- /package/{dist/shell-params.js → shell-params.js} +0 -0
- /package/{dist/state → state}/AppContext.d.ts +0 -0
- /package/{dist/state → state}/index.d.ts +0 -0
- /package/{dist/state → state}/index.d.ts.map +0 -0
- /package/{dist/state → state}/index.js +0 -0
- /package/{dist/state → state}/internal.d.ts +0 -0
- /package/{dist/state → state}/internal.d.ts.map +0 -0
- /package/{dist/state → state}/internal.js +0 -0
- /package/{dist/state → state}/onboarding-resume.d.ts +0 -0
- /package/{dist/state → state}/onboarding-resume.d.ts.map +0 -0
- /package/{dist/state → state}/onboarding-resume.js +0 -0
- /package/{dist/state → state}/parsers.d.ts +0 -0
- /package/{dist/state → state}/parsers.d.ts.map +0 -0
- /package/{dist/state → state}/parsers.js +0 -0
- /package/{dist/state → state}/persistence.d.ts +0 -0
- /package/{dist/state → state}/persistence.d.ts.map +0 -0
- /package/{dist/state → state}/persistence.js +0 -0
- /package/{dist/state → state}/shell-routing.d.ts +0 -0
- /package/{dist/state → state}/shell-routing.d.ts.map +0 -0
- /package/{dist/state → state}/shell-routing.js +0 -0
- /package/{dist/state → state}/types.d.ts +0 -0
- /package/{dist/state → state}/types.d.ts.map +0 -0
- /package/{dist/state → state}/types.js +0 -0
- /package/{dist/state → state}/ui-preferences.d.ts +0 -0
- /package/{dist/state → state}/ui-preferences.d.ts.map +0 -0
- /package/{dist/state → state}/ui-preferences.js +0 -0
- /package/{dist/state → state}/useApp.d.ts +0 -0
- /package/{dist/state → state}/useApp.d.ts.map +0 -0
- /package/{dist/state → state}/useApp.js +0 -0
- /package/{dist/state → state}/vrm.d.ts +0 -0
- /package/{dist/state → state}/vrm.d.ts.map +0 -0
- /package/{dist/state → state}/vrm.js +0 -0
- /package/{dist/styles → styles}/base.css +0 -0
- /package/{dist/styles → styles}/styles.css +0 -0
- /package/{dist/styles → styles}/xterm.css +0 -0
- /package/{dist/types → types}/index.d.ts +0 -0
- /package/{dist/types → types}/index.d.ts.map +0 -0
- /package/{dist/types → types}/index.js +0 -0
- /package/{dist/utils → utils}/asset-url.d.ts +0 -0
- /package/{dist/utils → utils}/asset-url.d.ts.map +0 -0
- /package/{dist/utils → utils}/asset-url.js +0 -0
- /package/{dist/utils → utils}/assistant-text.d.ts +0 -0
- /package/{dist/utils → utils}/assistant-text.d.ts.map +0 -0
- /package/{dist/utils → utils}/assistant-text.js +0 -0
- /package/{dist/utils → utils}/clipboard.d.ts +0 -0
- /package/{dist/utils → utils}/clipboard.d.ts.map +0 -0
- /package/{dist/utils → utils}/clipboard.js +0 -0
- /package/{dist/utils → utils}/desktop-dialogs.d.ts +0 -0
- /package/{dist/utils → utils}/desktop-dialogs.d.ts.map +0 -0
- /package/{dist/utils → utils}/desktop-dialogs.js +0 -0
- /package/{dist/utils → utils}/eliza-globals.d.ts +0 -0
- /package/{dist/utils → utils}/eliza-globals.d.ts.map +0 -0
- /package/{dist/utils → utils}/eliza-globals.js +0 -0
- /package/{dist/utils → utils}/index.d.ts +0 -0
- /package/{dist/utils → utils}/index.d.ts.map +0 -0
- /package/{dist/utils → utils}/index.js +0 -0
- /package/{dist/utils → utils}/number-parsing.d.ts +0 -0
- /package/{dist/utils → utils}/number-parsing.d.ts.map +0 -0
- /package/{dist/utils → utils}/number-parsing.js +0 -0
- /package/{dist/utils → utils}/openExternalUrl.d.ts +0 -0
- /package/{dist/utils → utils}/openExternalUrl.d.ts.map +0 -0
- /package/{dist/utils → utils}/openExternalUrl.js +0 -0
- /package/{dist/utils → utils}/spoken-text.d.ts +0 -0
- /package/{dist/utils → utils}/spoken-text.d.ts.map +0 -0
- /package/{dist/utils → utils}/spoken-text.js +0 -0
- /package/{dist/utils → utils}/streaming-text.d.ts +0 -0
- /package/{dist/utils → utils}/streaming-text.d.ts.map +0 -0
- /package/{dist/utils → utils}/streaming-text.js +0 -0
- /package/{dist/voice → voice}/index.d.ts +0 -0
- /package/{dist/voice → voice}/index.d.ts.map +0 -0
- /package/{dist/voice → voice}/index.js +0 -0
- /package/{dist/voice → voice}/types.d.ts +0 -0
- /package/{dist/voice → voice}/types.d.ts.map +0 -0
- /package/{dist/voice → voice}/types.js +0 -0
- /package/{dist/wallet-rpc.d.ts → wallet-rpc.d.ts} +0 -0
- /package/{dist/wallet-rpc.d.ts.map → wallet-rpc.d.ts.map} +0 -0
- /package/{dist/wallet-rpc.js → wallet-rpc.js} +0 -0
|
@@ -1,877 +0,0 @@
|
|
|
1
|
-
// @vitest-environment jsdom
|
|
2
|
-
import React from "react";
|
|
3
|
-
import TestRenderer, { act } from "react-test-renderer";
|
|
4
|
-
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
|
5
|
-
|
|
6
|
-
interface ChatViewContextStub {
|
|
7
|
-
agentStatus: {
|
|
8
|
-
agentName: string;
|
|
9
|
-
state?: string;
|
|
10
|
-
} | null;
|
|
11
|
-
activeConversationId: string | null;
|
|
12
|
-
chatInput: string;
|
|
13
|
-
chatSending: boolean;
|
|
14
|
-
chatFirstTokenReceived: boolean;
|
|
15
|
-
companionMessageCutoffTs: number;
|
|
16
|
-
conversationMessages: Array<{
|
|
17
|
-
id: string;
|
|
18
|
-
role: "user" | "assistant";
|
|
19
|
-
text: string;
|
|
20
|
-
timestamp: number;
|
|
21
|
-
source?: string;
|
|
22
|
-
}>;
|
|
23
|
-
handleChatSend: (channelType?: string) => Promise<void>;
|
|
24
|
-
handleChatStop: () => void;
|
|
25
|
-
setState: (key: string, value: unknown) => void;
|
|
26
|
-
droppedFiles: string[];
|
|
27
|
-
shareIngestNotice: string;
|
|
28
|
-
selectedVrmIndex: number;
|
|
29
|
-
chatPendingImages: Array<{ data: string; mimeType: string; name: string }>;
|
|
30
|
-
setChatPendingImages: (
|
|
31
|
-
updater:
|
|
32
|
-
| Array<{ data: string; mimeType: string; name: string }>
|
|
33
|
-
| ((
|
|
34
|
-
prev: Array<{ data: string; mimeType: string; name: string }>,
|
|
35
|
-
) => Array<{ data: string; mimeType: string; name: string }>),
|
|
36
|
-
) => void;
|
|
37
|
-
uiLanguage: "en" | "zh-CN";
|
|
38
|
-
chatMode: "simple" | "power";
|
|
39
|
-
chatAgentVoiceMuted: boolean;
|
|
40
|
-
elizaCloudConnected: boolean;
|
|
41
|
-
t: (k: string) => string;
|
|
42
|
-
handleStart: () => Promise<void>;
|
|
43
|
-
|
|
44
|
-
handleRestart: () => Promise<void>;
|
|
45
|
-
handleChatRetry: (id: string) => void;
|
|
46
|
-
handleChatEdit: (id: string, text: string) => Promise<boolean>;
|
|
47
|
-
lifecycleBusy: boolean;
|
|
48
|
-
lifecycleAction: string | null;
|
|
49
|
-
autonomousEvents: unknown[];
|
|
50
|
-
workbench: unknown;
|
|
51
|
-
openEmotePicker: () => void;
|
|
52
|
-
ptySessions: unknown[];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const { mockClient, mockUseApp, mockUseVoiceChat, mockIsDesktopPlatform } =
|
|
56
|
-
vi.hoisted(() => ({
|
|
57
|
-
mockClient: {
|
|
58
|
-
getCodingAgentStatus: vi.fn(async () => null),
|
|
59
|
-
getConfig: vi.fn().mockResolvedValue({}),
|
|
60
|
-
},
|
|
61
|
-
mockUseApp: vi.fn(),
|
|
62
|
-
mockUseVoiceChat: vi.fn(),
|
|
63
|
-
mockIsDesktopPlatform: vi.fn(() => false),
|
|
64
|
-
}));
|
|
65
|
-
|
|
66
|
-
vi.mock("@elizaos/app-core/state", () => ({
|
|
67
|
-
useApp: () => mockUseApp(),
|
|
68
|
-
getVrmPreviewUrl: () => null,
|
|
69
|
-
}));
|
|
70
|
-
|
|
71
|
-
vi.mock("@elizaos/app-core/platform", () => ({
|
|
72
|
-
isDesktopPlatform: () => mockIsDesktopPlatform(),
|
|
73
|
-
}));
|
|
74
|
-
|
|
75
|
-
vi.mock("@elizaos/app-core/hooks", async () => {
|
|
76
|
-
const actual = await vi.importActual<typeof import("@elizaos/app-core/hooks")>(
|
|
77
|
-
"@elizaos/app-core/hooks",
|
|
78
|
-
);
|
|
79
|
-
return {
|
|
80
|
-
...actual,
|
|
81
|
-
useVoiceChat: (...args: unknown[]) => mockUseVoiceChat(...args),
|
|
82
|
-
};
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
vi.mock("../../src/components/ChatAvatar", () => ({
|
|
86
|
-
ChatAvatar: () => null,
|
|
87
|
-
}));
|
|
88
|
-
|
|
89
|
-
vi.mock("../../src/components/MessageContent", () => ({
|
|
90
|
-
MessageContent: ({ message }: { message: { text: string } }) =>
|
|
91
|
-
React.createElement("span", null, message.text),
|
|
92
|
-
}));
|
|
93
|
-
|
|
94
|
-
vi.mock("@elizaos/app-core/api", () => ({
|
|
95
|
-
client: mockClient,
|
|
96
|
-
}));
|
|
97
|
-
|
|
98
|
-
import { ChatView } from "../../src/components/ChatView";
|
|
99
|
-
|
|
100
|
-
function createContext(
|
|
101
|
-
overrides?: Partial<ChatViewContextStub>,
|
|
102
|
-
): ChatViewContextStub {
|
|
103
|
-
return {
|
|
104
|
-
agentStatus: { agentName: "Milady", state: "running" },
|
|
105
|
-
activeConversationId: "conv-1",
|
|
106
|
-
chatInput: "",
|
|
107
|
-
chatSending: false,
|
|
108
|
-
chatFirstTokenReceived: false,
|
|
109
|
-
companionMessageCutoffTs: 0,
|
|
110
|
-
conversationMessages: [],
|
|
111
|
-
handleChatSend: vi.fn(async () => { }),
|
|
112
|
-
handleChatStop: vi.fn(),
|
|
113
|
-
setState: vi.fn(),
|
|
114
|
-
droppedFiles: [],
|
|
115
|
-
shareIngestNotice: "",
|
|
116
|
-
selectedVrmIndex: 0,
|
|
117
|
-
chatPendingImages: [],
|
|
118
|
-
setChatPendingImages: vi.fn(),
|
|
119
|
-
chatMode: "simple",
|
|
120
|
-
chatAgentVoiceMuted: false,
|
|
121
|
-
elizaCloudConnected: false,
|
|
122
|
-
handleStart: vi.fn(async () => { }),
|
|
123
|
-
|
|
124
|
-
handleRestart: vi.fn(async () => { }),
|
|
125
|
-
handleChatRetry: vi.fn(),
|
|
126
|
-
handleChatEdit: vi.fn(async () => true),
|
|
127
|
-
lifecycleBusy: false,
|
|
128
|
-
lifecycleAction: null,
|
|
129
|
-
autonomousEvents: [],
|
|
130
|
-
workbench: null,
|
|
131
|
-
openEmotePicker: vi.fn(),
|
|
132
|
-
ptySessions: [],
|
|
133
|
-
uiLanguage: "en" as const,
|
|
134
|
-
t: (k: string) => k,
|
|
135
|
-
...overrides,
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function text(node: TestRenderer.ReactTestInstance): string {
|
|
140
|
-
return node.children
|
|
141
|
-
.map((child) => (typeof child === "string" ? child : ""))
|
|
142
|
-
.join("")
|
|
143
|
-
.trim();
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
async function flush(): Promise<void> {
|
|
147
|
-
await act(async () => {
|
|
148
|
-
await Promise.resolve();
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
describe("ChatView", () => {
|
|
153
|
-
beforeEach(() => {
|
|
154
|
-
mockUseApp.mockReset();
|
|
155
|
-
mockUseVoiceChat.mockReset();
|
|
156
|
-
mockIsDesktopPlatform.mockReset();
|
|
157
|
-
mockClient.getConfig.mockReset();
|
|
158
|
-
Object.defineProperty(window, "dispatchEvent", {
|
|
159
|
-
value: vi.fn(),
|
|
160
|
-
configurable: true,
|
|
161
|
-
writable: true,
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
const queueAssistantSpeech = vi.fn();
|
|
165
|
-
mockUseVoiceChat.mockReturnValue({
|
|
166
|
-
supported: false,
|
|
167
|
-
isListening: false,
|
|
168
|
-
captureMode: "idle",
|
|
169
|
-
interimTranscript: "",
|
|
170
|
-
toggleListening: vi.fn(),
|
|
171
|
-
startListening: vi.fn(),
|
|
172
|
-
stopListening: vi.fn(),
|
|
173
|
-
mouthOpen: 0,
|
|
174
|
-
isSpeaking: false,
|
|
175
|
-
usingAudioAnalysis: false,
|
|
176
|
-
speak: vi.fn(),
|
|
177
|
-
queueAssistantSpeech,
|
|
178
|
-
stopSpeaking: vi.fn(),
|
|
179
|
-
});
|
|
180
|
-
mockClient.getConfig.mockResolvedValue({});
|
|
181
|
-
mockIsDesktopPlatform.mockReturnValue(false);
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
afterEach(() => {
|
|
185
|
-
vi.restoreAllMocks();
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
it("does not render duplicate assistant headers before first token", async () => {
|
|
189
|
-
mockUseApp.mockReturnValue(
|
|
190
|
-
createContext({
|
|
191
|
-
chatSending: true,
|
|
192
|
-
chatFirstTokenReceived: false,
|
|
193
|
-
conversationMessages: [
|
|
194
|
-
{ id: "u1", role: "user", text: "hello", timestamp: 1 },
|
|
195
|
-
{ id: "a-temp", role: "assistant", text: "", timestamp: 2 },
|
|
196
|
-
],
|
|
197
|
-
}),
|
|
198
|
-
);
|
|
199
|
-
|
|
200
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
201
|
-
await act(async () => {
|
|
202
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
203
|
-
});
|
|
204
|
-
await flush();
|
|
205
|
-
|
|
206
|
-
const root = tree?.root;
|
|
207
|
-
const headerCount = root.findAll(
|
|
208
|
-
(node) => node.type === "div" && text(node) === "Milady",
|
|
209
|
-
).length;
|
|
210
|
-
expect(headerCount).toBe(1);
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
it("keeps optimistic user text visible before the first assistant token", async () => {
|
|
214
|
-
mockUseApp.mockReturnValue(
|
|
215
|
-
createContext({
|
|
216
|
-
chatSending: true,
|
|
217
|
-
chatFirstTokenReceived: false,
|
|
218
|
-
conversationMessages: [
|
|
219
|
-
{ id: "u1", role: "user", text: "stream me", timestamp: 1 },
|
|
220
|
-
{ id: "a-temp", role: "assistant", text: "", timestamp: 2 },
|
|
221
|
-
],
|
|
222
|
-
}),
|
|
223
|
-
);
|
|
224
|
-
|
|
225
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
226
|
-
await act(async () => {
|
|
227
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
228
|
-
});
|
|
229
|
-
await flush();
|
|
230
|
-
|
|
231
|
-
const root = tree?.root;
|
|
232
|
-
const userTextNodes = root.findAll(
|
|
233
|
-
(node) => node.type === "span" && text(node) === "stream me",
|
|
234
|
-
);
|
|
235
|
-
expect(userTextNodes.length).toBe(1);
|
|
236
|
-
});
|
|
237
|
-
|
|
238
|
-
it("does not auto-play assistant speech while stream is active in default chat", async () => {
|
|
239
|
-
const queueAssistantSpeech = vi.fn();
|
|
240
|
-
mockUseVoiceChat.mockReturnValue({
|
|
241
|
-
supported: false,
|
|
242
|
-
isListening: false,
|
|
243
|
-
captureMode: "idle",
|
|
244
|
-
interimTranscript: "",
|
|
245
|
-
toggleListening: vi.fn(),
|
|
246
|
-
startListening: vi.fn(),
|
|
247
|
-
stopListening: vi.fn(),
|
|
248
|
-
mouthOpen: 0,
|
|
249
|
-
isSpeaking: false,
|
|
250
|
-
usingAudioAnalysis: false,
|
|
251
|
-
speak: vi.fn(),
|
|
252
|
-
queueAssistantSpeech,
|
|
253
|
-
stopSpeaking: vi.fn(),
|
|
254
|
-
});
|
|
255
|
-
|
|
256
|
-
mockUseApp.mockReturnValue(
|
|
257
|
-
createContext({
|
|
258
|
-
chatSending: true,
|
|
259
|
-
conversationMessages: [
|
|
260
|
-
{ id: "a1", role: "assistant", text: "Hello world.", timestamp: 1 },
|
|
261
|
-
],
|
|
262
|
-
}),
|
|
263
|
-
);
|
|
264
|
-
|
|
265
|
-
await act(async () => {
|
|
266
|
-
TestRenderer.create(React.createElement(ChatView));
|
|
267
|
-
});
|
|
268
|
-
await flush();
|
|
269
|
-
|
|
270
|
-
expect(queueAssistantSpeech).not.toHaveBeenCalled();
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
it("does not auto-play assistant speech after stream completes in default chat", async () => {
|
|
274
|
-
const queueAssistantSpeech = vi.fn();
|
|
275
|
-
mockUseVoiceChat.mockReturnValue({
|
|
276
|
-
supported: false,
|
|
277
|
-
isListening: false,
|
|
278
|
-
captureMode: "idle",
|
|
279
|
-
interimTranscript: "",
|
|
280
|
-
toggleListening: vi.fn(),
|
|
281
|
-
startListening: vi.fn(),
|
|
282
|
-
stopListening: vi.fn(),
|
|
283
|
-
mouthOpen: 0,
|
|
284
|
-
isSpeaking: false,
|
|
285
|
-
usingAudioAnalysis: false,
|
|
286
|
-
speak: vi.fn(),
|
|
287
|
-
queueAssistantSpeech,
|
|
288
|
-
stopSpeaking: vi.fn(),
|
|
289
|
-
});
|
|
290
|
-
|
|
291
|
-
mockUseApp.mockReturnValue(
|
|
292
|
-
createContext({
|
|
293
|
-
chatSending: false,
|
|
294
|
-
conversationMessages: [
|
|
295
|
-
{ id: "a1", role: "assistant", text: "Hello world.", timestamp: 1 },
|
|
296
|
-
],
|
|
297
|
-
}),
|
|
298
|
-
);
|
|
299
|
-
|
|
300
|
-
await act(async () => {
|
|
301
|
-
TestRenderer.create(React.createElement(ChatView));
|
|
302
|
-
});
|
|
303
|
-
await flush();
|
|
304
|
-
|
|
305
|
-
expect(queueAssistantSpeech).not.toHaveBeenCalled();
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
it("does not auto-play assistant speech in desktop chat view", async () => {
|
|
309
|
-
const queueAssistantSpeech = vi.fn();
|
|
310
|
-
mockIsDesktopPlatform.mockReturnValue(true);
|
|
311
|
-
mockUseVoiceChat.mockReturnValue({
|
|
312
|
-
supported: false,
|
|
313
|
-
isListening: false,
|
|
314
|
-
captureMode: "idle",
|
|
315
|
-
interimTranscript: "",
|
|
316
|
-
toggleListening: vi.fn(),
|
|
317
|
-
startListening: vi.fn(),
|
|
318
|
-
stopListening: vi.fn(),
|
|
319
|
-
mouthOpen: 0,
|
|
320
|
-
isSpeaking: false,
|
|
321
|
-
usingAudioAnalysis: false,
|
|
322
|
-
speak: vi.fn(),
|
|
323
|
-
queueAssistantSpeech,
|
|
324
|
-
stopSpeaking: vi.fn(),
|
|
325
|
-
});
|
|
326
|
-
|
|
327
|
-
mockUseApp.mockReturnValue(
|
|
328
|
-
createContext({
|
|
329
|
-
chatSending: false,
|
|
330
|
-
conversationMessages: [
|
|
331
|
-
{ id: "a1", role: "assistant", text: "Hello world.", timestamp: 1 },
|
|
332
|
-
],
|
|
333
|
-
}),
|
|
334
|
-
);
|
|
335
|
-
|
|
336
|
-
await act(async () => {
|
|
337
|
-
TestRenderer.create(React.createElement(ChatView));
|
|
338
|
-
});
|
|
339
|
-
await flush();
|
|
340
|
-
|
|
341
|
-
expect(queueAssistantSpeech).not.toHaveBeenCalled();
|
|
342
|
-
});
|
|
343
|
-
|
|
344
|
-
it("does not render top-center voice or new chat controls in desktop chat view", async () => {
|
|
345
|
-
mockIsDesktopPlatform.mockReturnValue(true);
|
|
346
|
-
mockUseVoiceChat.mockReturnValue({
|
|
347
|
-
supported: true,
|
|
348
|
-
isListening: false,
|
|
349
|
-
captureMode: "idle",
|
|
350
|
-
interimTranscript: "",
|
|
351
|
-
toggleListening: vi.fn(),
|
|
352
|
-
startListening: vi.fn(),
|
|
353
|
-
stopListening: vi.fn(),
|
|
354
|
-
mouthOpen: 0,
|
|
355
|
-
isSpeaking: false,
|
|
356
|
-
usingAudioAnalysis: false,
|
|
357
|
-
speak: vi.fn(),
|
|
358
|
-
queueAssistantSpeech: vi.fn(),
|
|
359
|
-
stopSpeaking: vi.fn(),
|
|
360
|
-
});
|
|
361
|
-
mockUseApp.mockReturnValue(createContext());
|
|
362
|
-
|
|
363
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
364
|
-
await act(async () => {
|
|
365
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
366
|
-
});
|
|
367
|
-
await flush();
|
|
368
|
-
|
|
369
|
-
const voiceButtons = tree?.root.findAll(
|
|
370
|
-
(node) =>
|
|
371
|
-
node.type === "button" &&
|
|
372
|
-
(node.props["aria-label"] === "Agent voice on" ||
|
|
373
|
-
node.props["aria-label"] === "Agent voice off"),
|
|
374
|
-
);
|
|
375
|
-
const newChatButtons = tree?.root.findAll(
|
|
376
|
-
(node) =>
|
|
377
|
-
node.type === "button" && node.props["aria-label"] === "+ New Chat",
|
|
378
|
-
);
|
|
379
|
-
|
|
380
|
-
expect(voiceButtons?.length ?? 0).toBe(0);
|
|
381
|
-
expect(newChatButtons.length).toBe(0);
|
|
382
|
-
});
|
|
383
|
-
|
|
384
|
-
it("does not render a global agent voice toggle in default chat", async () => {
|
|
385
|
-
mockIsDesktopPlatform.mockReturnValue(false);
|
|
386
|
-
mockUseVoiceChat.mockReturnValue({
|
|
387
|
-
supported: true,
|
|
388
|
-
isListening: false,
|
|
389
|
-
captureMode: "idle",
|
|
390
|
-
interimTranscript: "",
|
|
391
|
-
toggleListening: vi.fn(),
|
|
392
|
-
startListening: vi.fn(),
|
|
393
|
-
stopListening: vi.fn(),
|
|
394
|
-
mouthOpen: 0,
|
|
395
|
-
isSpeaking: false,
|
|
396
|
-
usingAudioAnalysis: false,
|
|
397
|
-
speak: vi.fn(),
|
|
398
|
-
queueAssistantSpeech: vi.fn(),
|
|
399
|
-
stopSpeaking: vi.fn(),
|
|
400
|
-
});
|
|
401
|
-
mockUseApp.mockReturnValue(createContext());
|
|
402
|
-
|
|
403
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
404
|
-
await act(async () => {
|
|
405
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
406
|
-
});
|
|
407
|
-
await flush();
|
|
408
|
-
|
|
409
|
-
const voiceButtons = tree?.root.findAll(
|
|
410
|
-
(node) =>
|
|
411
|
-
node.type === "button" &&
|
|
412
|
-
(node.props["aria-label"] === "Agent voice on" ||
|
|
413
|
-
node.props["aria-label"] === "Agent voice off"),
|
|
414
|
-
);
|
|
415
|
-
|
|
416
|
-
expect(voiceButtons?.length ?? 0).toBe(0);
|
|
417
|
-
});
|
|
418
|
-
|
|
419
|
-
it("pins the native scrollbar to the edge while keeping message text inset", async () => {
|
|
420
|
-
mockUseApp.mockReturnValue(
|
|
421
|
-
createContext({
|
|
422
|
-
conversationMessages: [
|
|
423
|
-
{ id: "u1", role: "user", text: "hello", timestamp: 1 },
|
|
424
|
-
],
|
|
425
|
-
}),
|
|
426
|
-
);
|
|
427
|
-
|
|
428
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
429
|
-
await act(async () => {
|
|
430
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
431
|
-
});
|
|
432
|
-
await flush();
|
|
433
|
-
|
|
434
|
-
const scroller = tree?.root.findByProps({
|
|
435
|
-
"data-testid": "chat-messages-scroll",
|
|
436
|
-
});
|
|
437
|
-
expect(String(scroller.props.className)).toContain("chat-native-scrollbar");
|
|
438
|
-
expect(scroller.props.style?.scrollbarGutter).toBeUndefined();
|
|
439
|
-
});
|
|
440
|
-
|
|
441
|
-
it("auto-scrolls again when conversation messages update", async () => {
|
|
442
|
-
const scrollTo = vi.fn();
|
|
443
|
-
// Include scrollTop and clientHeight so the instant-vs-smooth branch
|
|
444
|
-
// is exercised correctly (nearBottom = scrollHeight - scrollTop - clientHeight < 150).
|
|
445
|
-
const scrollerMock = {
|
|
446
|
-
scrollHeight: 240,
|
|
447
|
-
scrollTop: 100,
|
|
448
|
-
clientHeight: 140,
|
|
449
|
-
scrollTo,
|
|
450
|
-
};
|
|
451
|
-
const textareaMock = {
|
|
452
|
-
style: { height: "", overflowY: "" },
|
|
453
|
-
scrollHeight: 38,
|
|
454
|
-
focus: vi.fn(),
|
|
455
|
-
};
|
|
456
|
-
const fileInputMock = { click: vi.fn() };
|
|
457
|
-
|
|
458
|
-
let currentContext = createContext({
|
|
459
|
-
conversationMessages: [
|
|
460
|
-
{ id: "u1", role: "user", text: "hello", timestamp: 1 },
|
|
461
|
-
],
|
|
462
|
-
});
|
|
463
|
-
mockUseApp.mockImplementation(() => currentContext);
|
|
464
|
-
|
|
465
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
466
|
-
await act(async () => {
|
|
467
|
-
tree = TestRenderer.create(React.createElement(ChatView), {
|
|
468
|
-
createNodeMock: (element) => {
|
|
469
|
-
const node = element as {
|
|
470
|
-
type: unknown;
|
|
471
|
-
props: Record<string, unknown>;
|
|
472
|
-
};
|
|
473
|
-
if (
|
|
474
|
-
node.type === "div" &&
|
|
475
|
-
node.props["data-testid"] === "chat-messages-scroll"
|
|
476
|
-
) {
|
|
477
|
-
return scrollerMock;
|
|
478
|
-
}
|
|
479
|
-
if (node.type === "textarea") {
|
|
480
|
-
return textareaMock;
|
|
481
|
-
}
|
|
482
|
-
if (node.type === "input" && node.props.type === "file") {
|
|
483
|
-
return fileInputMock;
|
|
484
|
-
}
|
|
485
|
-
return {};
|
|
486
|
-
},
|
|
487
|
-
});
|
|
488
|
-
});
|
|
489
|
-
await flush();
|
|
490
|
-
|
|
491
|
-
const callsAfterMount = scrollTo.mock.calls.length;
|
|
492
|
-
expect(callsAfterMount).toBeGreaterThan(0);
|
|
493
|
-
|
|
494
|
-
currentContext = createContext({
|
|
495
|
-
conversationMessages: [
|
|
496
|
-
{ id: "u1", role: "user", text: "hello", timestamp: 1 },
|
|
497
|
-
{ id: "a1", role: "assistant", text: "Hi there!", timestamp: 2 },
|
|
498
|
-
],
|
|
499
|
-
});
|
|
500
|
-
|
|
501
|
-
await act(async () => {
|
|
502
|
-
tree?.update(React.createElement(ChatView));
|
|
503
|
-
});
|
|
504
|
-
await flush();
|
|
505
|
-
|
|
506
|
-
expect(scrollTo.mock.calls.length).toBeGreaterThan(callsAfterMount);
|
|
507
|
-
});
|
|
508
|
-
|
|
509
|
-
it("uses instant scroll when near bottom, smooth when scrolled up", async () => {
|
|
510
|
-
const scrollTo = vi.fn();
|
|
511
|
-
// Near bottom: distance = 500 - 400 - 90 = 10 (< 150 → instant)
|
|
512
|
-
const scrollerMock = {
|
|
513
|
-
scrollHeight: 500,
|
|
514
|
-
scrollTop: 400,
|
|
515
|
-
clientHeight: 90,
|
|
516
|
-
scrollTo,
|
|
517
|
-
};
|
|
518
|
-
const textareaMock = {
|
|
519
|
-
style: { height: "", overflowY: "" },
|
|
520
|
-
scrollHeight: 38,
|
|
521
|
-
focus: vi.fn(),
|
|
522
|
-
};
|
|
523
|
-
const fileInputMock = { click: vi.fn() };
|
|
524
|
-
|
|
525
|
-
let currentContext = createContext({
|
|
526
|
-
conversationMessages: [
|
|
527
|
-
{ id: "u1", role: "user", text: "hello", timestamp: 1 },
|
|
528
|
-
],
|
|
529
|
-
});
|
|
530
|
-
mockUseApp.mockImplementation(() => currentContext);
|
|
531
|
-
|
|
532
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
533
|
-
await act(async () => {
|
|
534
|
-
tree = TestRenderer.create(React.createElement(ChatView), {
|
|
535
|
-
createNodeMock: (element) => {
|
|
536
|
-
const node = element as {
|
|
537
|
-
type: unknown;
|
|
538
|
-
props: Record<string, unknown>;
|
|
539
|
-
};
|
|
540
|
-
if (
|
|
541
|
-
node.type === "div" &&
|
|
542
|
-
node.props["data-testid"] === "chat-messages-scroll"
|
|
543
|
-
) {
|
|
544
|
-
return scrollerMock;
|
|
545
|
-
}
|
|
546
|
-
if (node.type === "textarea") return textareaMock;
|
|
547
|
-
if (node.type === "input" && node.props.type === "file")
|
|
548
|
-
return fileInputMock;
|
|
549
|
-
return {};
|
|
550
|
-
},
|
|
551
|
-
});
|
|
552
|
-
});
|
|
553
|
-
await flush();
|
|
554
|
-
|
|
555
|
-
// Near bottom → should use instant
|
|
556
|
-
const lastCall = scrollTo.mock.calls[scrollTo.mock.calls.length - 1];
|
|
557
|
-
expect(lastCall[0]).toMatchObject({ behavior: "instant" });
|
|
558
|
-
|
|
559
|
-
// Now simulate user scrolled up: distance = 500 - 50 - 90 = 360 (> 150 → smooth)
|
|
560
|
-
scrollerMock.scrollTop = 50;
|
|
561
|
-
scrollTo.mockClear();
|
|
562
|
-
|
|
563
|
-
currentContext = createContext({
|
|
564
|
-
conversationMessages: [
|
|
565
|
-
{ id: "u1", role: "user", text: "hello", timestamp: 1 },
|
|
566
|
-
{ id: "a1", role: "assistant", text: "Hi!", timestamp: 2 },
|
|
567
|
-
],
|
|
568
|
-
});
|
|
569
|
-
|
|
570
|
-
await act(async () => {
|
|
571
|
-
tree?.update(React.createElement(ChatView));
|
|
572
|
-
});
|
|
573
|
-
await flush();
|
|
574
|
-
|
|
575
|
-
const smoothCall = scrollTo.mock.calls[scrollTo.mock.calls.length - 1];
|
|
576
|
-
expect(smoothCall[0]).toMatchObject({ behavior: "smooth" });
|
|
577
|
-
});
|
|
578
|
-
|
|
579
|
-
it("auto-scrolls when content changes but length and trailing text stay the same", async () => {
|
|
580
|
-
const scrollTo = vi.fn();
|
|
581
|
-
const scrollerMock = {
|
|
582
|
-
scrollHeight: 240,
|
|
583
|
-
scrollTop: 100,
|
|
584
|
-
clientHeight: 140,
|
|
585
|
-
scrollTo,
|
|
586
|
-
};
|
|
587
|
-
const textareaMock = {
|
|
588
|
-
style: { height: "", overflowY: "" },
|
|
589
|
-
scrollHeight: 38,
|
|
590
|
-
focus: vi.fn(),
|
|
591
|
-
};
|
|
592
|
-
const fileInputMock = { click: vi.fn() };
|
|
593
|
-
|
|
594
|
-
let currentContext = createContext({
|
|
595
|
-
conversationMessages: [
|
|
596
|
-
{ id: "u1", role: "user", text: "first draft", timestamp: 1 },
|
|
597
|
-
{ id: "a1", role: "assistant", text: "same tail", timestamp: 2 },
|
|
598
|
-
],
|
|
599
|
-
});
|
|
600
|
-
mockUseApp.mockImplementation(() => currentContext);
|
|
601
|
-
|
|
602
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
603
|
-
await act(async () => {
|
|
604
|
-
tree = TestRenderer.create(React.createElement(ChatView), {
|
|
605
|
-
createNodeMock: (element) => {
|
|
606
|
-
const node = element as {
|
|
607
|
-
type: unknown;
|
|
608
|
-
props: Record<string, unknown>;
|
|
609
|
-
};
|
|
610
|
-
if (
|
|
611
|
-
node.type === "div" &&
|
|
612
|
-
node.props["data-testid"] === "chat-messages-scroll"
|
|
613
|
-
) {
|
|
614
|
-
return scrollerMock;
|
|
615
|
-
}
|
|
616
|
-
if (node.type === "textarea") {
|
|
617
|
-
return textareaMock;
|
|
618
|
-
}
|
|
619
|
-
if (node.type === "input" && node.props.type === "file") {
|
|
620
|
-
return fileInputMock;
|
|
621
|
-
}
|
|
622
|
-
return {};
|
|
623
|
-
},
|
|
624
|
-
});
|
|
625
|
-
});
|
|
626
|
-
await flush();
|
|
627
|
-
|
|
628
|
-
const callsAfterMount = scrollTo.mock.calls.length;
|
|
629
|
-
expect(callsAfterMount).toBeGreaterThan(0);
|
|
630
|
-
|
|
631
|
-
currentContext = createContext({
|
|
632
|
-
conversationMessages: [
|
|
633
|
-
{ id: "u2", role: "user", text: "updated body", timestamp: 101 },
|
|
634
|
-
{ id: "a2", role: "assistant", text: "same tail", timestamp: 102 },
|
|
635
|
-
],
|
|
636
|
-
});
|
|
637
|
-
|
|
638
|
-
await act(async () => {
|
|
639
|
-
tree?.update(React.createElement(ChatView));
|
|
640
|
-
});
|
|
641
|
-
await flush();
|
|
642
|
-
|
|
643
|
-
expect(scrollTo.mock.calls.length).toBeGreaterThan(callsAfterMount);
|
|
644
|
-
});
|
|
645
|
-
|
|
646
|
-
it("renders aria labels for chat composer controls", async () => {
|
|
647
|
-
mockUseVoiceChat.mockReturnValue({
|
|
648
|
-
supported: true,
|
|
649
|
-
isListening: false,
|
|
650
|
-
captureMode: "idle",
|
|
651
|
-
interimTranscript: "",
|
|
652
|
-
toggleListening: vi.fn(),
|
|
653
|
-
startListening: vi.fn(),
|
|
654
|
-
stopListening: vi.fn(),
|
|
655
|
-
mouthOpen: 0,
|
|
656
|
-
isSpeaking: false,
|
|
657
|
-
usingAudioAnalysis: false,
|
|
658
|
-
speak: vi.fn(),
|
|
659
|
-
queueAssistantSpeech: vi.fn(),
|
|
660
|
-
stopSpeaking: vi.fn(),
|
|
661
|
-
});
|
|
662
|
-
|
|
663
|
-
mockUseApp.mockReturnValue(createContext());
|
|
664
|
-
|
|
665
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
666
|
-
await act(async () => {
|
|
667
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
668
|
-
});
|
|
669
|
-
await flush();
|
|
670
|
-
|
|
671
|
-
const textarea = tree?.root.find((node) => node.type === "textarea");
|
|
672
|
-
expect(textarea).toBeDefined();
|
|
673
|
-
|
|
674
|
-
const buttons = tree?.root.findAllByType("button" as React.ElementType);
|
|
675
|
-
|
|
676
|
-
const attachButton = buttons.find(
|
|
677
|
-
(node) => node.props["aria-label"] === "Attach image",
|
|
678
|
-
);
|
|
679
|
-
expect(attachButton).toBeDefined();
|
|
680
|
-
|
|
681
|
-
const micButton = buttons.find(
|
|
682
|
-
(node) => node.props["aria-label"] === "chat.voiceInput",
|
|
683
|
-
);
|
|
684
|
-
expect(micButton).toBeDefined();
|
|
685
|
-
expect(micButton?.props["aria-pressed"]).toBe(false);
|
|
686
|
-
});
|
|
687
|
-
|
|
688
|
-
it("does not render the native fast/pro toggle", async () => {
|
|
689
|
-
mockUseApp.mockReturnValue(createContext({ chatMode: "power" }));
|
|
690
|
-
|
|
691
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
692
|
-
await act(async () => {
|
|
693
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
694
|
-
});
|
|
695
|
-
await flush();
|
|
696
|
-
|
|
697
|
-
expect(
|
|
698
|
-
tree?.root.findAllByProps({ "data-testid": "chat-mode-toggle-native" }),
|
|
699
|
-
).toHaveLength(0);
|
|
700
|
-
});
|
|
701
|
-
|
|
702
|
-
it("disables send when chat input is empty or whitespace", async () => {
|
|
703
|
-
mockUseApp.mockReturnValue(createContext({ chatInput: " " }));
|
|
704
|
-
|
|
705
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
706
|
-
await act(async () => {
|
|
707
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
708
|
-
});
|
|
709
|
-
await flush();
|
|
710
|
-
|
|
711
|
-
// Find send button by aria-label since we now use an icon instead of text
|
|
712
|
-
const buttons = tree?.root.findAllByType("button" as React.ElementType);
|
|
713
|
-
const sendButton = buttons.find(
|
|
714
|
-
(node) => node.props["aria-label"] === "chat.send",
|
|
715
|
-
);
|
|
716
|
-
expect(sendButton?.props.disabled).toBe(true);
|
|
717
|
-
});
|
|
718
|
-
|
|
719
|
-
it("uses vertical-only overflow for the native transcript pane", async () => {
|
|
720
|
-
mockUseApp.mockReturnValue(
|
|
721
|
-
createContext({
|
|
722
|
-
conversationMessages: [
|
|
723
|
-
{ id: "assistant-1", role: "assistant", text: "hello", timestamp: 1 },
|
|
724
|
-
],
|
|
725
|
-
}),
|
|
726
|
-
);
|
|
727
|
-
|
|
728
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
729
|
-
await act(async () => {
|
|
730
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
731
|
-
});
|
|
732
|
-
await flush();
|
|
733
|
-
|
|
734
|
-
const scrollRegion = tree?.root.findByProps({
|
|
735
|
-
"data-testid": "chat-messages-scroll",
|
|
736
|
-
});
|
|
737
|
-
expect(String(scrollRegion?.props.className)).toContain("overflow-y-auto");
|
|
738
|
-
expect(String(scrollRegion?.props.className)).toContain(
|
|
739
|
-
"overflow-x-hidden",
|
|
740
|
-
);
|
|
741
|
-
});
|
|
742
|
-
|
|
743
|
-
it("keeps the native composer action button level with the input row", async () => {
|
|
744
|
-
mockUseApp.mockReturnValue(createContext({ chatInput: "hello" }));
|
|
745
|
-
|
|
746
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
747
|
-
await act(async () => {
|
|
748
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
749
|
-
});
|
|
750
|
-
await flush();
|
|
751
|
-
|
|
752
|
-
const actionButton = tree?.root.findByProps({
|
|
753
|
-
"data-testid": "chat-composer-action",
|
|
754
|
-
});
|
|
755
|
-
expect(String(actionButton?.props.className)).not.toContain("mb-1.5");
|
|
756
|
-
});
|
|
757
|
-
|
|
758
|
-
it("renders a labeled pending-image remove button that stays visible on mobile", async () => {
|
|
759
|
-
mockUseApp.mockReturnValue(
|
|
760
|
-
createContext({
|
|
761
|
-
chatPendingImages: [
|
|
762
|
-
{ data: "abc123", mimeType: "image/png", name: "receipt.png" },
|
|
763
|
-
],
|
|
764
|
-
}),
|
|
765
|
-
);
|
|
766
|
-
|
|
767
|
-
let tree: TestRenderer.ReactTestRenderer | undefined;
|
|
768
|
-
await act(async () => {
|
|
769
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
770
|
-
});
|
|
771
|
-
await flush();
|
|
772
|
-
|
|
773
|
-
const removeButton = tree?.root.find(
|
|
774
|
-
(node) =>
|
|
775
|
-
node.type === "button" &&
|
|
776
|
-
node.props["aria-label"] === "Remove image receipt.png",
|
|
777
|
-
);
|
|
778
|
-
|
|
779
|
-
expect(removeButton.props["aria-label"]).toBe("Remove image receipt.png");
|
|
780
|
-
expect(String(removeButton.props.className)).toContain("opacity-100");
|
|
781
|
-
expect(String(removeButton.props.className)).toContain("sm:opacity-0");
|
|
782
|
-
});
|
|
783
|
-
});
|
|
784
|
-
|
|
785
|
-
// ---------------------------------------------------------------------------
|
|
786
|
-
// addImageFiles — functional updater (stale closure fix)
|
|
787
|
-
// ---------------------------------------------------------------------------
|
|
788
|
-
|
|
789
|
-
describe("addImageFiles functional updater", () => {
|
|
790
|
-
afterEach(() => {
|
|
791
|
-
vi.unstubAllGlobals();
|
|
792
|
-
vi.restoreAllMocks();
|
|
793
|
-
});
|
|
794
|
-
|
|
795
|
-
it("calls setChatPendingImages with a functional updater, not a static array", async () => {
|
|
796
|
-
mockUseVoiceChat.mockReturnValue({
|
|
797
|
-
supported: false,
|
|
798
|
-
isListening: false,
|
|
799
|
-
captureMode: "idle",
|
|
800
|
-
interimTranscript: "",
|
|
801
|
-
toggleListening: vi.fn(),
|
|
802
|
-
startListening: vi.fn(),
|
|
803
|
-
stopListening: vi.fn(),
|
|
804
|
-
mouthOpen: 0,
|
|
805
|
-
isSpeaking: false,
|
|
806
|
-
usingAudioAnalysis: false,
|
|
807
|
-
speak: vi.fn(),
|
|
808
|
-
queueAssistantSpeech: vi.fn(),
|
|
809
|
-
stopSpeaking: vi.fn(),
|
|
810
|
-
});
|
|
811
|
-
|
|
812
|
-
// Synchronous FileReader mock — calls onload immediately so we don't need
|
|
813
|
-
// to wait for real async I/O inside the test.
|
|
814
|
-
class MockFileReader {
|
|
815
|
-
onload: (() => void) | null = null;
|
|
816
|
-
result: string | ArrayBuffer | null = null;
|
|
817
|
-
|
|
818
|
-
readAsDataURL() {
|
|
819
|
-
this.result = "data:image/png;base64,abc123";
|
|
820
|
-
this.onload?.();
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
vi.stubGlobal("FileReader", MockFileReader as unknown as typeof FileReader);
|
|
824
|
-
|
|
825
|
-
const setChatPendingImages = vi.fn();
|
|
826
|
-
mockUseApp.mockReturnValue(
|
|
827
|
-
createContext({ chatPendingImages: [], setChatPendingImages }),
|
|
828
|
-
);
|
|
829
|
-
|
|
830
|
-
let tree: TestRenderer.ReactTestRenderer | null = null;
|
|
831
|
-
await act(async () => {
|
|
832
|
-
tree = TestRenderer.create(React.createElement(ChatView));
|
|
833
|
-
});
|
|
834
|
-
await flush();
|
|
835
|
-
|
|
836
|
-
// Find the hidden <input type="file"> and fire onChange with a fake File
|
|
837
|
-
if (!tree) {
|
|
838
|
-
throw new Error("ChatView test renderer did not initialize");
|
|
839
|
-
}
|
|
840
|
-
const fileInput = tree.root.find(
|
|
841
|
-
(node: TestRenderer.ReactTestInstance) =>
|
|
842
|
-
node.type === "input" && node.props.accept === "image/*",
|
|
843
|
-
);
|
|
844
|
-
|
|
845
|
-
const fakeFile = new Proxy(
|
|
846
|
-
{ type: "image/png", name: "test.png" },
|
|
847
|
-
{
|
|
848
|
-
get(target, prop) {
|
|
849
|
-
return (target as Record<string | symbol, unknown>)[prop as string];
|
|
850
|
-
},
|
|
851
|
-
},
|
|
852
|
-
) as unknown as File;
|
|
853
|
-
|
|
854
|
-
await act(async () => {
|
|
855
|
-
fileInput.props.onChange({
|
|
856
|
-
target: { files: [fakeFile], value: "" },
|
|
857
|
-
});
|
|
858
|
-
});
|
|
859
|
-
await flush();
|
|
860
|
-
|
|
861
|
-
// The fix: setChatPendingImages must be called with a function (functional
|
|
862
|
-
// updater), not a static array. This ensures rapid consecutive drops
|
|
863
|
-
// accumulate all images instead of overwriting with stale state.
|
|
864
|
-
expect(setChatPendingImages).toHaveBeenCalled();
|
|
865
|
-
const callArg = setChatPendingImages.mock.calls[0]?.[0];
|
|
866
|
-
expect(typeof callArg).toBe("function");
|
|
867
|
-
|
|
868
|
-
// Verify the updater correctly appends to the existing array
|
|
869
|
-
const prev = [
|
|
870
|
-
{ data: "existing", mimeType: "image/jpeg", name: "prev.jpg" },
|
|
871
|
-
];
|
|
872
|
-
const next = callArg(prev);
|
|
873
|
-
expect(next).toHaveLength(2);
|
|
874
|
-
expect(next[0]).toEqual(prev[0]);
|
|
875
|
-
expect(next[1]).toMatchObject({ mimeType: "image/png", name: "test.png" });
|
|
876
|
-
});
|
|
877
|
-
});
|