@elizaos/app-core 2.0.0-alpha.73 → 2.0.0-alpha.75
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 +5 -0
- package/App.d.ts.map +1 -0
- package/App.js +220 -0
- package/actions/character.d.ts +39 -0
- package/actions/character.d.ts.map +1 -0
- package/actions/character.js +247 -0
- package/actions/chat-helpers.d.ts +47 -0
- package/actions/chat-helpers.d.ts.map +1 -0
- package/actions/chat-helpers.js +79 -0
- package/actions/cloud.d.ts +17 -0
- package/actions/cloud.d.ts.map +1 -0
- package/actions/cloud.js +43 -0
- package/actions/index.d.ts +12 -0
- package/actions/index.d.ts.map +1 -0
- package/actions/index.js +11 -0
- package/actions/lifecycle.d.ts +43 -0
- package/actions/lifecycle.d.ts.map +1 -0
- package/actions/lifecycle.js +118 -0
- package/actions/onboarding.d.ts +12 -0
- package/actions/onboarding.d.ts.map +1 -0
- package/actions/onboarding.js +26 -0
- package/actions/triggers.d.ts +23 -0
- package/actions/triggers.d.ts.map +1 -0
- package/actions/triggers.js +148 -0
- package/api/client.d.ts +2736 -0
- package/api/client.d.ts.map +1 -0
- package/api/client.js +2492 -0
- package/api/index.d.ts +2 -0
- package/api/index.d.ts.map +1 -0
- package/autonomy/index.d.ts +48 -0
- package/autonomy/index.d.ts.map +1 -0
- package/autonomy/index.js +330 -0
- package/bridge/capacitor-bridge.d.ts +153 -0
- package/bridge/capacitor-bridge.d.ts.map +1 -0
- package/bridge/capacitor-bridge.js +193 -0
- package/bridge/electrobun-rpc.d.ts +28 -0
- package/bridge/electrobun-rpc.d.ts.map +1 -0
- package/bridge/electrobun-rpc.js +35 -0
- package/bridge/electrobun-runtime.d.ts +3 -0
- package/bridge/electrobun-runtime.d.ts.map +1 -0
- package/bridge/electrobun-runtime.js +17 -0
- package/bridge/index.d.ts +6 -0
- package/bridge/index.d.ts.map +1 -0
- package/bridge/native-plugins.d.ts +82 -0
- package/bridge/native-plugins.d.ts.map +1 -0
- package/bridge/native-plugins.js +39 -0
- package/bridge/plugin-bridge.d.ts +116 -0
- package/bridge/plugin-bridge.d.ts.map +1 -0
- package/bridge/plugin-bridge.js +203 -0
- package/bridge/storage-bridge.d.ts +39 -0
- package/bridge/storage-bridge.d.ts.map +1 -0
- package/bridge/storage-bridge.js +135 -0
- package/chat/index.d.ts +57 -0
- package/chat/index.d.ts.map +1 -0
- package/chat/index.js +160 -0
- package/coding/index.d.ts +25 -0
- package/coding/index.d.ts.map +1 -0
- package/coding/index.js +25 -0
- package/components/AdvancedPageView.d.ts +17 -0
- package/components/AdvancedPageView.d.ts.map +1 -0
- package/components/AdvancedPageView.js +146 -0
- package/components/AgentActivityBox.d.ts +7 -0
- package/components/AgentActivityBox.d.ts.map +1 -0
- package/components/AgentActivityBox.js +25 -0
- package/components/ApiKeyConfig.d.ts +26 -0
- package/components/ApiKeyConfig.d.ts.map +1 -0
- package/components/ApiKeyConfig.js +119 -0
- package/components/AppsPageView.d.ts +7 -0
- package/components/AppsPageView.d.ts.map +1 -0
- package/components/AppsPageView.js +31 -0
- package/components/AppsView.d.ts +8 -0
- package/components/AppsView.d.ts.map +1 -0
- package/components/AppsView.js +149 -0
- package/components/AvatarLoader.d.ts +13 -0
- package/components/AvatarLoader.d.ts.map +1 -0
- package/components/AvatarLoader.js +53 -0
- package/components/AvatarSelector.d.ts +23 -0
- package/components/AvatarSelector.d.ts.map +1 -0
- package/components/AvatarSelector.js +105 -0
- package/components/BscTradePanel.d.ts +22 -0
- package/components/BscTradePanel.d.ts.map +1 -0
- package/components/BscTradePanel.js +221 -0
- package/components/BugReportModal.d.ts +2 -0
- package/components/BugReportModal.d.ts.map +1 -0
- package/components/BugReportModal.js +219 -0
- package/components/CharacterRoster.d.ts +31 -0
- package/components/CharacterRoster.d.ts.map +1 -0
- package/components/CharacterRoster.js +41 -0
- package/components/CharacterView.d.ts +8 -0
- package/components/CharacterView.d.ts.map +1 -0
- package/components/CharacterView.js +685 -0
- package/components/ChatAvatar.d.ts +8 -0
- package/components/ChatAvatar.d.ts.map +1 -0
- package/components/ChatAvatar.js +89 -0
- package/components/ChatComposer.d.ts +37 -0
- package/components/ChatComposer.d.ts.map +1 -0
- package/components/ChatComposer.js +136 -0
- package/components/ChatMessage.d.ts +24 -0
- package/components/ChatMessage.d.ts.map +1 -0
- package/components/ChatMessage.js +167 -0
- package/components/ChatModalView.d.ts +10 -0
- package/components/ChatModalView.d.ts.map +1 -0
- package/components/ChatModalView.js +57 -0
- package/components/ChatView.d.ts +14 -0
- package/components/ChatView.d.ts.map +1 -0
- package/components/ChatView.js +526 -0
- package/components/CloudOnboarding.d.ts +7 -0
- package/components/CloudOnboarding.d.ts.map +1 -0
- package/components/CloudOnboarding.js +22 -0
- package/components/CloudSourceControls.d.ts +13 -0
- package/components/CloudSourceControls.d.ts.map +1 -0
- package/components/CloudSourceControls.js +16 -0
- package/components/CodingAgentSettingsSection.d.ts +2 -0
- package/components/CodingAgentSettingsSection.d.ts.map +1 -0
- package/components/CodingAgentSettingsSection.js +270 -0
- package/components/CommandPalette.d.ts +2 -0
- package/components/CommandPalette.d.ts.map +1 -0
- package/components/CommandPalette.js +181 -0
- package/components/CompanionSceneHost.d.ts +14 -0
- package/components/CompanionSceneHost.d.ts.map +1 -0
- package/components/CompanionSceneHost.js +360 -0
- package/components/CompanionShell.d.ts +17 -0
- package/components/CompanionShell.d.ts.map +1 -0
- package/components/CompanionShell.js +15 -0
- package/components/CompanionView.d.ts +2 -0
- package/components/CompanionView.d.ts.map +1 -0
- package/components/CompanionView.js +22 -0
- package/components/ConfigPageView.d.ts +11 -0
- package/components/ConfigPageView.d.ts.map +1 -0
- package/components/ConfigPageView.js +303 -0
- package/components/ConfigSaveFooter.d.ts +8 -0
- package/components/ConfigSaveFooter.d.ts.map +1 -0
- package/components/ConfigSaveFooter.js +10 -0
- package/components/ConfirmModal.d.ts +61 -0
- package/components/ConfirmModal.d.ts.map +1 -0
- package/components/ConfirmModal.js +164 -0
- package/components/ConnectionFailedBanner.d.ts +6 -0
- package/components/ConnectionFailedBanner.d.ts.map +1 -0
- package/components/ConnectionFailedBanner.js +22 -0
- package/components/ConnectorsPageView.d.ts +7 -0
- package/components/ConnectorsPageView.d.ts.map +1 -0
- package/components/ConnectorsPageView.js +8 -0
- package/components/ConversationsSidebar.d.ts +9 -0
- package/components/ConversationsSidebar.d.ts.map +1 -0
- package/components/ConversationsSidebar.js +116 -0
- package/components/CustomActionEditor.d.ts +10 -0
- package/components/CustomActionEditor.d.ts.map +1 -0
- package/components/CustomActionEditor.js +578 -0
- package/components/CustomActionsPanel.d.ts +9 -0
- package/components/CustomActionsPanel.d.ts.map +1 -0
- package/components/CustomActionsPanel.js +107 -0
- package/components/CustomActionsView.d.ts +2 -0
- package/components/CustomActionsView.d.ts.map +1 -0
- package/components/CustomActionsView.js +134 -0
- package/components/DatabasePageView.d.ts +5 -0
- package/components/DatabasePageView.d.ts.map +1 -0
- package/components/DatabasePageView.js +28 -0
- package/components/DatabaseView.d.ts +9 -0
- package/components/DatabaseView.d.ts.map +1 -0
- package/components/DatabaseView.js +311 -0
- package/components/ElizaCloudDashboard.d.ts +2 -0
- package/components/ElizaCloudDashboard.d.ts.map +1 -0
- package/components/ElizaCloudDashboard.js +657 -0
- package/components/EmotePicker.d.ts +2 -0
- package/components/EmotePicker.d.ts.map +1 -0
- package/components/EmotePicker.js +343 -0
- package/components/ErrorBoundary.d.ts +22 -0
- package/components/ErrorBoundary.d.ts.map +1 -0
- package/components/ErrorBoundary.js +31 -0
- package/components/FineTuningView.d.ts +2 -0
- package/components/FineTuningView.d.ts.map +1 -0
- package/components/FineTuningView.js +433 -0
- package/components/FlaminaGuide.d.ts +10 -0
- package/components/FlaminaGuide.d.ts.map +1 -0
- package/components/FlaminaGuide.js +64 -0
- package/components/GameView.d.ts +11 -0
- package/components/GameView.d.ts.map +1 -0
- package/components/GameView.js +294 -0
- package/components/GameViewOverlay.d.ts +8 -0
- package/components/GameViewOverlay.d.ts.map +1 -0
- package/components/GameViewOverlay.js +70 -0
- package/components/GlobalEmoteOverlay.d.ts +2 -0
- package/components/GlobalEmoteOverlay.d.ts.map +1 -0
- package/components/GlobalEmoteOverlay.js +112 -0
- package/components/Header.d.ts +9 -0
- package/components/Header.d.ts.map +1 -0
- package/components/Header.js +123 -0
- package/components/HeartbeatsView.d.ts +2 -0
- package/components/HeartbeatsView.d.ts.map +1 -0
- package/components/HeartbeatsView.js +378 -0
- package/components/InventoryView.d.ts +10 -0
- package/components/InventoryView.d.ts.map +1 -0
- package/components/InventoryView.js +176 -0
- package/components/KnowledgeView.d.ts +20 -0
- package/components/KnowledgeView.d.ts.map +1 -0
- package/components/KnowledgeView.js +480 -0
- package/components/LanguageDropdown.d.ts +30 -0
- package/components/LanguageDropdown.d.ts.map +1 -0
- package/components/LanguageDropdown.js +99 -0
- package/components/LifoMonitorPanel.d.ts +21 -0
- package/components/LifoMonitorPanel.d.ts.map +1 -0
- package/components/LifoMonitorPanel.js +24 -0
- package/components/LifoSandboxView.d.ts +5 -0
- package/components/LifoSandboxView.d.ts.map +1 -0
- package/components/LifoSandboxView.js +333 -0
- package/components/LoadingScreen.d.ts +13 -0
- package/components/LoadingScreen.d.ts.map +1 -0
- package/components/LoadingScreen.js +70 -0
- package/components/LogsPageView.d.ts +2 -0
- package/components/LogsPageView.d.ts.map +1 -0
- package/components/LogsPageView.js +7 -0
- package/components/LogsView.d.ts +5 -0
- package/components/LogsView.d.ts.map +1 -0
- package/components/LogsView.js +71 -0
- package/components/MediaGalleryView.d.ts +9 -0
- package/components/MediaGalleryView.d.ts.map +1 -0
- package/components/MediaGalleryView.js +236 -0
- package/components/MediaSettingsSection.d.ts +11 -0
- package/components/MediaSettingsSection.d.ts.map +1 -0
- package/components/MediaSettingsSection.js +329 -0
- package/components/MessageContent.d.ts +51 -0
- package/components/MessageContent.d.ts.map +1 -0
- package/components/MessageContent.js +553 -0
- package/components/OnboardingWizard.d.ts +2 -0
- package/components/OnboardingWizard.d.ts.map +1 -0
- package/components/OnboardingWizard.js +96 -0
- package/components/PairingView.d.ts +5 -0
- package/components/PairingView.d.ts.map +1 -0
- package/components/PairingView.js +29 -0
- package/components/PermissionsSection.d.ts +20 -0
- package/components/PermissionsSection.d.ts.map +1 -0
- package/components/PermissionsSection.js +573 -0
- package/components/PluginsPageView.d.ts +5 -0
- package/components/PluginsPageView.d.ts.map +1 -0
- package/components/PluginsPageView.js +8 -0
- package/components/PluginsView.d.ts +21 -0
- package/components/PluginsView.d.ts.map +1 -0
- package/components/PluginsView.js +1534 -0
- package/components/ProviderSwitcher.d.ts +42 -0
- package/components/ProviderSwitcher.d.ts.map +1 -0
- package/components/ProviderSwitcher.js +493 -0
- package/components/RestartBanner.d.ts +2 -0
- package/components/RestartBanner.d.ts.map +1 -0
- package/components/RestartBanner.js +36 -0
- package/components/RuntimeView.d.ts +10 -0
- package/components/RuntimeView.d.ts.map +1 -0
- package/components/RuntimeView.js +165 -0
- package/components/SaveCommandModal.d.ts +12 -0
- package/components/SaveCommandModal.d.ts.map +1 -0
- package/components/SaveCommandModal.js +84 -0
- package/components/SecretsView.d.ts +9 -0
- package/components/SecretsView.d.ts.map +1 -0
- package/components/SecretsView.js +249 -0
- package/components/SettingsView.d.ts +9 -0
- package/components/SettingsView.d.ts.map +1 -0
- package/components/SettingsView.js +230 -0
- package/components/ShellOverlays.d.ts +8 -0
- package/components/ShellOverlays.d.ts.map +1 -0
- package/components/ShellOverlays.js +10 -0
- package/components/ShortcutsOverlay.d.ts +2 -0
- package/components/ShortcutsOverlay.d.ts.map +1 -0
- package/components/ShortcutsOverlay.js +79 -0
- package/components/SkillsView.d.ts +11 -0
- package/components/SkillsView.d.ts.map +1 -0
- package/components/SkillsView.js +358 -0
- package/components/StartupFailureView.d.ts +8 -0
- package/components/StartupFailureView.d.ts.map +1 -0
- package/components/StartupFailureView.js +16 -0
- package/components/StreamView.d.ts +16 -0
- package/components/StreamView.d.ts.map +1 -0
- package/components/StreamView.js +300 -0
- package/components/StripeEmbeddedCheckout.d.ts +24 -0
- package/components/StripeEmbeddedCheckout.d.ts.map +1 -0
- package/components/StripeEmbeddedCheckout.js +101 -0
- package/components/SubscriptionStatus.d.ts +23 -0
- package/components/SubscriptionStatus.d.ts.map +1 -0
- package/components/SubscriptionStatus.js +301 -0
- package/components/SystemWarningBanner.d.ts +6 -0
- package/components/SystemWarningBanner.d.ts.map +1 -0
- package/components/SystemWarningBanner.js +46 -0
- package/components/ThemeToggle.d.ts +21 -0
- package/components/ThemeToggle.d.ts.map +1 -0
- package/components/ThemeToggle.js +24 -0
- package/components/TrajectoriesView.d.ts +12 -0
- package/components/TrajectoriesView.d.ts.map +1 -0
- package/components/TrajectoriesView.js +183 -0
- package/components/TrajectoryDetailView.d.ts +13 -0
- package/components/TrajectoryDetailView.d.ts.map +1 -0
- package/components/TrajectoryDetailView.js +112 -0
- package/components/TriggersView.d.ts +2 -0
- package/components/TriggersView.d.ts.map +1 -0
- package/components/VectorBrowserView.d.ts +10 -0
- package/components/VectorBrowserView.d.ts.map +1 -0
- package/components/VectorBrowserView.js +997 -0
- package/components/VoiceConfigView.d.ts +11 -0
- package/components/VoiceConfigView.d.ts.map +1 -0
- package/components/VoiceConfigView.js +329 -0
- package/components/VrmStage.d.ts +28 -0
- package/components/VrmStage.d.ts.map +1 -0
- package/components/VrmStage.js +178 -0
- package/components/WhatsAppQrOverlay.d.ts +8 -0
- package/components/WhatsAppQrOverlay.d.ts.map +1 -0
- package/components/WhatsAppQrOverlay.js +63 -0
- package/components/apps/AppDetailPane.d.ts +15 -0
- package/components/apps/AppDetailPane.d.ts.map +1 -0
- package/components/apps/AppDetailPane.js +13 -0
- package/components/apps/AppsCatalogGrid.d.ts +20 -0
- package/components/apps/AppsCatalogGrid.d.ts.map +1 -0
- package/components/apps/AppsCatalogGrid.js +18 -0
- package/components/apps/extensions/registry.d.ts +4 -0
- package/components/apps/extensions/registry.d.ts.map +1 -0
- package/components/apps/extensions/registry.js +7 -0
- package/components/apps/extensions/types.d.ts +7 -0
- package/components/apps/extensions/types.d.ts.map +1 -0
- package/components/apps/extensions/types.js +1 -0
- package/components/apps/helpers.d.ts +7 -0
- package/components/apps/helpers.d.ts.map +1 -0
- package/components/apps/helpers.js +44 -0
- package/components/avatar/VrmAnimationLoader.d.ts +30 -0
- package/components/avatar/VrmAnimationLoader.d.ts.map +1 -0
- package/components/avatar/VrmAnimationLoader.js +99 -0
- package/components/avatar/VrmBlinkController.d.ts +37 -0
- package/components/avatar/VrmBlinkController.d.ts.map +1 -0
- package/components/avatar/VrmBlinkController.js +98 -0
- package/components/avatar/VrmCameraManager.d.ts +57 -0
- package/components/avatar/VrmCameraManager.d.ts.map +1 -0
- package/components/avatar/VrmCameraManager.js +277 -0
- package/components/avatar/VrmEngine.d.ts +246 -0
- package/components/avatar/VrmEngine.d.ts.map +1 -0
- package/components/avatar/VrmEngine.js +2076 -0
- package/components/avatar/VrmFootShadow.d.ts +18 -0
- package/components/avatar/VrmFootShadow.d.ts.map +1 -0
- package/components/avatar/VrmFootShadow.js +83 -0
- package/components/avatar/VrmViewer.d.ts +60 -0
- package/components/avatar/VrmViewer.d.ts.map +1 -0
- package/components/avatar/VrmViewer.js +396 -0
- package/components/avatar/mixamoVRMRigMap.d.ts +3 -0
- package/components/avatar/mixamoVRMRigMap.d.ts.map +1 -0
- package/components/avatar/mixamoVRMRigMap.js +56 -0
- package/components/avatar/retargetMixamoFbxToVrm.d.ts +9 -0
- package/components/avatar/retargetMixamoFbxToVrm.d.ts.map +1 -0
- package/components/avatar/retargetMixamoFbxToVrm.js +88 -0
- package/components/avatar/retargetMixamoGltfToVrm.d.ts +11 -0
- package/components/avatar/retargetMixamoGltfToVrm.d.ts.map +1 -0
- package/components/avatar/retargetMixamoGltfToVrm.js +80 -0
- package/components/chainConfig.d.ts +89 -0
- package/components/chainConfig.d.ts.map +1 -0
- package/components/chainConfig.js +287 -0
- package/components/companion/CompanionHeader.d.ts +15 -0
- package/components/companion/CompanionHeader.d.ts.map +1 -0
- package/components/companion/CompanionHeader.js +7 -0
- package/components/companion/CompanionSceneHost.d.ts +2 -0
- package/components/companion/CompanionSceneHost.d.ts.map +1 -0
- package/components/companion/CompanionSceneHost.js +1 -0
- package/components/companion/VrmStage.d.ts +3 -0
- package/components/companion/VrmStage.d.ts.map +1 -0
- package/components/companion/VrmStage.js +1 -0
- package/components/companion/index.d.ts +18 -0
- package/components/companion/index.d.ts.map +1 -0
- package/components/companion/index.js +17 -0
- package/components/companion/walletUtils.d.ts +95 -0
- package/components/companion/walletUtils.d.ts.map +1 -0
- package/components/companion/walletUtils.js +167 -0
- package/components/companion-shell-styles.d.ts +38 -0
- package/components/companion-shell-styles.d.ts.map +1 -0
- package/components/companion-shell-styles.js +248 -0
- package/components/confirm-delete-control.d.ts +16 -0
- package/components/confirm-delete-control.d.ts.map +1 -0
- package/components/confirm-delete-control.js +12 -0
- package/components/conversations/ConversationListItem.d.ts +31 -0
- package/components/conversations/ConversationListItem.d.ts.map +1 -0
- package/components/conversations/ConversationListItem.js +52 -0
- package/components/conversations/conversation-utils.d.ts +9 -0
- package/components/conversations/conversation-utils.d.ts.map +1 -0
- package/components/conversations/conversation-utils.js +138 -0
- package/components/format.d.ts +54 -0
- package/components/format.d.ts.map +1 -0
- package/components/format.js +82 -0
- package/components/index.d.ts +96 -0
- package/components/index.d.ts.map +1 -0
- package/components/index.js +95 -0
- package/components/inventory/CopyableAddress.d.ts +8 -0
- package/components/inventory/CopyableAddress.d.ts.map +1 -0
- package/components/inventory/CopyableAddress.js +18 -0
- package/components/inventory/InventoryToolbar.d.ts +25 -0
- package/components/inventory/InventoryToolbar.d.ts.map +1 -0
- package/components/inventory/InventoryToolbar.js +28 -0
- package/components/inventory/NftGrid.d.ts +13 -0
- package/components/inventory/NftGrid.d.ts.map +1 -0
- package/components/inventory/NftGrid.js +29 -0
- package/components/inventory/TokenLogo.d.ts +12 -0
- package/components/inventory/TokenLogo.d.ts.map +1 -0
- package/components/inventory/TokenLogo.js +33 -0
- package/components/inventory/TokensTable.d.ts +24 -0
- package/components/inventory/TokensTable.d.ts.map +1 -0
- package/components/inventory/TokensTable.js +26 -0
- package/components/inventory/constants.d.ts +52 -0
- package/components/inventory/constants.d.ts.map +1 -0
- package/components/inventory/constants.js +121 -0
- package/components/inventory/index.d.ts +9 -0
- package/components/inventory/index.d.ts.map +1 -0
- package/components/inventory/index.js +8 -0
- package/components/inventory/media-url.d.ts +6 -0
- package/components/inventory/media-url.d.ts.map +1 -0
- package/components/inventory/media-url.js +28 -0
- package/components/inventory/useInventoryData.d.ts +53 -0
- package/components/inventory/useInventoryData.d.ts.map +1 -0
- package/components/inventory/useInventoryData.js +332 -0
- package/components/knowledge-upload-image.d.ts +27 -0
- package/components/knowledge-upload-image.d.ts.map +1 -0
- package/components/knowledge-upload-image.js +146 -0
- package/components/labels.d.ts +6 -0
- package/components/labels.d.ts.map +1 -0
- package/components/labels.js +40 -0
- package/components/onboarding/ActivateStep.d.ts +2 -0
- package/components/onboarding/ActivateStep.d.ts.map +1 -0
- package/components/onboarding/ActivateStep.js +10 -0
- package/components/onboarding/ConnectionStep.d.ts +2 -0
- package/components/onboarding/ConnectionStep.d.ts.map +1 -0
- package/components/onboarding/ConnectionStep.js +609 -0
- package/components/onboarding/IdentityStep.d.ts +2 -0
- package/components/onboarding/IdentityStep.d.ts.map +1 -0
- package/components/onboarding/IdentityStep.js +102 -0
- package/components/onboarding/OnboardingPanel.d.ts +9 -0
- package/components/onboarding/OnboardingPanel.d.ts.map +1 -0
- package/components/onboarding/OnboardingPanel.js +24 -0
- package/components/onboarding/OnboardingStepNav.d.ts +2 -0
- package/components/onboarding/OnboardingStepNav.d.ts.map +1 -0
- package/components/onboarding/OnboardingStepNav.js +23 -0
- package/components/onboarding/PermissionsStep.d.ts +2 -0
- package/components/onboarding/PermissionsStep.d.ts.map +1 -0
- package/components/onboarding/PermissionsStep.js +7 -0
- package/components/onboarding/RpcStep.d.ts +2 -0
- package/components/onboarding/RpcStep.d.ts.map +1 -0
- package/components/onboarding/RpcStep.js +125 -0
- package/components/permissions/PermissionIcon.d.ts +4 -0
- package/components/permissions/PermissionIcon.d.ts.map +1 -0
- package/components/permissions/PermissionIcon.js +12 -0
- package/components/permissions/StreamingPermissions.d.ts +20 -0
- package/components/permissions/StreamingPermissions.d.ts.map +1 -0
- package/components/permissions/StreamingPermissions.js +177 -0
- package/components/plugins/showcase-data.d.ts +7 -0
- package/components/plugins/showcase-data.d.ts.map +1 -0
- package/components/plugins/showcase-data.js +464 -0
- package/components/shared/ShellHeaderControls.d.ts +27 -0
- package/components/shared/ShellHeaderControls.d.ts.map +1 -0
- package/components/shared/ShellHeaderControls.js +60 -0
- package/components/shared-companion-scene-context.d.ts +3 -0
- package/components/shared-companion-scene-context.d.ts.map +1 -0
- package/components/shared-companion-scene-context.js +13 -0
- package/components/skeletons.d.ts +17 -0
- package/components/skeletons.d.ts.map +1 -0
- package/components/skeletons.js +22 -0
- package/components/stream/ActivityFeed.d.ts +5 -0
- package/components/stream/ActivityFeed.d.ts.map +1 -0
- package/components/stream/ActivityFeed.js +57 -0
- package/components/stream/AvatarPip.d.ts +5 -0
- package/components/stream/AvatarPip.d.ts.map +1 -0
- package/components/stream/AvatarPip.js +6 -0
- package/components/stream/ChatContent.d.ts +6 -0
- package/components/stream/ChatContent.d.ts.map +1 -0
- package/components/stream/ChatContent.js +69 -0
- package/components/stream/ChatTicker.d.ts +5 -0
- package/components/stream/ChatTicker.d.ts.map +1 -0
- package/components/stream/ChatTicker.js +34 -0
- package/components/stream/IdleContent.d.ts +5 -0
- package/components/stream/IdleContent.d.ts.map +1 -0
- package/components/stream/IdleContent.js +17 -0
- package/components/stream/StatusBar.d.ts +36 -0
- package/components/stream/StatusBar.d.ts.map +1 -0
- package/components/stream/StatusBar.js +140 -0
- package/components/stream/StreamSettings.d.ts +33 -0
- package/components/stream/StreamSettings.d.ts.map +1 -0
- package/components/stream/StreamSettings.js +99 -0
- package/components/stream/StreamTerminal.d.ts +2 -0
- package/components/stream/StreamTerminal.d.ts.map +1 -0
- package/components/stream/StreamTerminal.js +52 -0
- package/components/stream/StreamVoiceConfig.d.ts +10 -0
- package/components/stream/StreamVoiceConfig.d.ts.map +1 -0
- package/components/stream/StreamVoiceConfig.js +88 -0
- package/components/stream/helpers.d.ts +32 -0
- package/components/stream/helpers.d.ts.map +1 -0
- package/components/stream/helpers.js +110 -0
- package/components/stream/overlays/OverlayLayer.d.ts +20 -0
- package/components/stream/overlays/OverlayLayer.d.ts.map +1 -0
- package/components/stream/overlays/OverlayLayer.js +24 -0
- package/components/stream/overlays/built-in/ActionTickerWidget.d.ts +8 -0
- package/components/stream/overlays/built-in/ActionTickerWidget.d.ts.map +1 -0
- package/components/stream/overlays/built-in/ActionTickerWidget.js +44 -0
- package/components/stream/overlays/built-in/AlertPopupWidget.d.ts +7 -0
- package/components/stream/overlays/built-in/AlertPopupWidget.d.ts.map +1 -0
- package/components/stream/overlays/built-in/AlertPopupWidget.js +62 -0
- package/components/stream/overlays/built-in/BrandingWidget.d.ts +7 -0
- package/components/stream/overlays/built-in/BrandingWidget.d.ts.map +1 -0
- package/components/stream/overlays/built-in/BrandingWidget.js +36 -0
- package/components/stream/overlays/built-in/CustomHtmlWidget.d.ts +26 -0
- package/components/stream/overlays/built-in/CustomHtmlWidget.d.ts.map +1 -0
- package/components/stream/overlays/built-in/CustomHtmlWidget.js +78 -0
- package/components/stream/overlays/built-in/PeonGlassWidget.d.ts +11 -0
- package/components/stream/overlays/built-in/PeonGlassWidget.d.ts.map +1 -0
- package/components/stream/overlays/built-in/PeonGlassWidget.js +188 -0
- package/components/stream/overlays/built-in/PeonHudWidget.d.ts +10 -0
- package/components/stream/overlays/built-in/PeonHudWidget.d.ts.map +1 -0
- package/components/stream/overlays/built-in/PeonHudWidget.js +168 -0
- package/components/stream/overlays/built-in/PeonSakuraWidget.d.ts +11 -0
- package/components/stream/overlays/built-in/PeonSakuraWidget.d.ts.map +1 -0
- package/components/stream/overlays/built-in/PeonSakuraWidget.js +213 -0
- package/components/stream/overlays/built-in/ThoughtBubbleWidget.d.ts +8 -0
- package/components/stream/overlays/built-in/ThoughtBubbleWidget.d.ts.map +1 -0
- package/components/stream/overlays/built-in/ThoughtBubbleWidget.js +59 -0
- package/components/stream/overlays/built-in/ViewerCountWidget.d.ts +7 -0
- package/components/stream/overlays/built-in/ViewerCountWidget.d.ts.map +1 -0
- package/components/stream/overlays/built-in/ViewerCountWidget.js +34 -0
- package/components/stream/overlays/built-in/index.d.ts +13 -0
- package/components/stream/overlays/built-in/index.d.ts.map +1 -0
- package/components/stream/overlays/built-in/index.js +12 -0
- package/components/stream/overlays/registry.d.ts +11 -0
- package/components/stream/overlays/registry.d.ts.map +1 -0
- package/components/stream/overlays/registry.js +16 -0
- package/components/stream/overlays/types.d.ts +67 -0
- package/components/stream/overlays/types.d.ts.map +1 -0
- package/components/stream/overlays/types.js +7 -0
- package/components/stream/overlays/useOverlayLayout.d.ts +27 -0
- package/components/stream/overlays/useOverlayLayout.d.ts.map +1 -0
- package/components/stream/overlays/useOverlayLayout.js +162 -0
- package/components/trajectory-format.d.ts +6 -0
- package/components/trajectory-format.d.ts.map +1 -0
- package/components/trajectory-format.js +43 -0
- package/components/ui-badges.d.ts +23 -0
- package/components/ui-badges.d.ts.map +1 -0
- package/components/ui-badges.js +38 -0
- package/components/ui-switch.d.ts +14 -0
- package/components/ui-switch.d.ts.map +1 -0
- package/components/ui-switch.js +15 -0
- package/components/vector-browser-three.d.ts +4 -0
- package/components/vector-browser-three.d.ts.map +1 -0
- package/components/vector-browser-three.js +21 -0
- package/config/branding.d.ts +49 -0
- package/config/branding.d.ts.map +1 -0
- package/config/branding.js +16 -0
- package/config/config-catalog.d.ts +376 -0
- package/config/config-catalog.d.ts.map +1 -0
- package/config/config-catalog.js +724 -0
- package/config/config-field.d.ts +68 -0
- package/config/config-field.d.ts.map +1 -0
- package/config/config-field.js +840 -0
- package/config/config-renderer.d.ts +176 -0
- package/config/config-renderer.d.ts.map +1 -0
- package/config/config-renderer.js +405 -0
- package/config/index.d.ts +6 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +5 -0
- package/config/ui-renderer.d.ts +26 -0
- package/config/ui-renderer.d.ts.map +1 -0
- package/config/ui-renderer.js +815 -0
- package/config/ui-spec.d.ts +164 -0
- package/config/ui-spec.d.ts.map +1 -0
- package/config/ui-spec.js +13 -0
- package/events/index.d.ts +47 -0
- package/events/index.d.ts.map +1 -0
- package/events/index.js +43 -0
- package/hooks/index.d.ts +15 -0
- package/hooks/index.d.ts.map +1 -0
- package/hooks/useBugReport.d.ts +14 -0
- package/hooks/useBugReport.d.ts.map +1 -0
- package/hooks/useBugReport.js +18 -0
- package/hooks/useCanvasWindow.d.ts +38 -0
- package/hooks/useCanvasWindow.d.ts.map +1 -0
- package/hooks/useCanvasWindow.js +273 -0
- package/hooks/useChatAvatarVoice.d.ts +10 -0
- package/hooks/useChatAvatarVoice.d.ts.map +1 -0
- package/hooks/useChatAvatarVoice.js +71 -0
- package/hooks/useClickOutside.d.ts +6 -0
- package/hooks/useClickOutside.d.ts.map +1 -0
- package/hooks/useClickOutside.js +25 -0
- package/hooks/useContextMenu.d.ts +17 -0
- package/hooks/useContextMenu.d.ts.map +1 -0
- package/hooks/useContextMenu.js +100 -0
- package/hooks/useKeyboardShortcuts.d.ts +17 -0
- package/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/hooks/useKeyboardShortcuts.js +67 -0
- package/hooks/useLifoSync.d.ts +18 -0
- package/hooks/useLifoSync.d.ts.map +1 -0
- package/hooks/useLifoSync.js +113 -0
- package/hooks/useMemoryMonitor.d.ts +87 -0
- package/hooks/useMemoryMonitor.d.ts.map +1 -0
- package/hooks/useMemoryMonitor.js +209 -0
- package/hooks/useRenderGuard.d.ts +17 -0
- package/hooks/useRenderGuard.d.ts.map +1 -0
- package/hooks/useRenderGuard.js +36 -0
- package/hooks/useRetakeCapture.d.ts +12 -0
- package/hooks/useRetakeCapture.d.ts.map +1 -0
- package/hooks/useRetakeCapture.js +60 -0
- package/hooks/useStreamPopoutNavigation.d.ts +3 -0
- package/hooks/useStreamPopoutNavigation.d.ts.map +1 -0
- package/hooks/useStreamPopoutNavigation.js +17 -0
- package/hooks/useTimeout.d.ts +11 -0
- package/hooks/useTimeout.d.ts.map +1 -0
- package/hooks/useTimeout.js +32 -0
- package/hooks/useVoiceChat.d.ts +94 -0
- package/hooks/useVoiceChat.d.ts.map +1 -0
- package/hooks/useVoiceChat.js +1074 -0
- package/hooks/useWhatsAppPairing.d.ts +11 -0
- package/hooks/useWhatsAppPairing.d.ts.map +1 -0
- package/hooks/useWhatsAppPairing.js +95 -0
- package/i18n/index.d.ts +7 -0
- package/i18n/index.d.ts.map +1 -0
- package/i18n/index.js +53 -0
- package/i18n/locales/en.json +1239 -0
- package/i18n/locales/es.json +1236 -0
- package/i18n/locales/ko.json +1236 -0
- package/i18n/locales/pt.json +1236 -0
- package/i18n/locales/zh-CN.json +1236 -0
- package/i18n/messages.d.ts +6 -0
- package/i18n/messages.d.ts.map +1 -0
- package/i18n/messages.js +14 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -0
- package/navigation/index.d.ts +27 -0
- package/navigation/index.d.ts.map +1 -0
- package/navigation/index.js +232 -0
- package/onboarding-config.d.ts +25 -0
- package/onboarding-config.d.ts.map +1 -0
- package/onboarding-config.js +76 -0
- package/package.json +143 -53
- package/platform/browser-launch.d.ts +2 -0
- package/platform/browser-launch.d.ts.map +1 -0
- package/platform/browser-launch.js +109 -0
- package/platform/index.d.ts +14 -0
- package/platform/index.d.ts.map +1 -0
- package/platform/index.js +24 -0
- package/platform/init.d.ts +40 -0
- package/platform/init.d.ts.map +1 -0
- package/platform/init.js +160 -0
- package/platform/lifo.d.ts +51 -0
- package/platform/lifo.d.ts.map +1 -0
- package/platform/lifo.js +138 -0
- package/providers/index.d.ts +19 -0
- package/providers/index.d.ts.map +1 -0
- package/providers/index.js +80 -0
- package/shell-params.d.ts +12 -0
- package/shell-params.d.ts.map +1 -0
- package/shell-params.js +19 -0
- package/state/AppContext.d.ts +12 -0
- package/state/AppContext.d.ts.map +1 -0
- package/state/AppContext.js +5060 -0
- package/state/index.d.ts +7 -0
- package/state/index.d.ts.map +1 -0
- package/state/internal.d.ts +7 -0
- package/state/internal.d.ts.map +1 -0
- package/state/internal.js +6 -0
- package/state/onboarding-resume.d.ts +11 -0
- package/state/onboarding-resume.d.ts.map +1 -0
- package/state/onboarding-resume.js +189 -0
- package/state/parsers.d.ts +26 -0
- package/state/parsers.d.ts.map +1 -0
- package/state/parsers.js +255 -0
- package/state/persistence.d.ts +59 -0
- package/state/persistence.d.ts.map +1 -0
- package/state/persistence.js +326 -0
- package/state/shell-routing.d.ts +12 -0
- package/state/shell-routing.d.ts.map +1 -0
- package/state/shell-routing.js +25 -0
- package/state/types.d.ts +421 -0
- package/state/types.d.ts.map +1 -0
- package/state/types.js +75 -0
- package/state/ui-preferences.d.ts +3 -0
- package/state/ui-preferences.d.ts.map +1 -0
- package/state/ui-preferences.js +1 -0
- package/state/useApp.d.ts +4 -0
- package/state/useApp.d.ts.map +1 -0
- package/state/useApp.js +22 -0
- package/state/vrm.d.ts +30 -0
- package/state/vrm.d.ts.map +1 -0
- package/state/vrm.js +82 -0
- package/styles/anime.css +6321 -0
- package/styles/onboarding-game.css +1092 -0
- package/types/index.d.ts +657 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +1 -0
- package/utils/asset-url.d.ts +26 -0
- package/utils/asset-url.d.ts.map +1 -0
- package/utils/asset-url.js +99 -0
- package/utils/assistant-text.d.ts +2 -0
- package/utils/assistant-text.d.ts.map +1 -0
- package/utils/assistant-text.js +161 -0
- package/utils/clipboard.d.ts +2 -0
- package/utils/clipboard.d.ts.map +1 -0
- package/utils/clipboard.js +38 -0
- package/utils/desktop-dialogs.d.ts +19 -0
- package/utils/desktop-dialogs.d.ts.map +1 -0
- package/utils/desktop-dialogs.js +50 -0
- package/utils/eliza-globals.d.ts +11 -0
- package/utils/eliza-globals.d.ts.map +1 -0
- package/utils/eliza-globals.js +33 -0
- package/utils/index.d.ts +8 -0
- package/utils/index.d.ts.map +1 -0
- package/utils/number-parsing.d.ts +44 -0
- package/utils/number-parsing.d.ts.map +1 -0
- package/utils/number-parsing.js +56 -0
- package/utils/openExternalUrl.d.ts +2 -0
- package/utils/openExternalUrl.d.ts.map +1 -0
- package/utils/openExternalUrl.js +17 -0
- package/utils/spoken-text.d.ts +2 -0
- package/utils/spoken-text.d.ts.map +1 -0
- package/utils/spoken-text.js +56 -0
- package/utils/streaming-text.d.ts +3 -0
- package/utils/streaming-text.d.ts.map +1 -0
- package/utils/streaming-text.js +87 -0
- package/voice/index.d.ts +2 -0
- package/voice/index.d.ts.map +1 -0
- package/voice/types.d.ts +25 -0
- package/voice/types.d.ts.map +1 -0
- package/voice/types.js +166 -0
- package/wallet-rpc.d.ts +8 -0
- package/wallet-rpc.d.ts.map +1 -0
- package/wallet-rpc.js +131 -0
- package/.turbo/turbo-build.log +0 -5
- 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/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/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/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/index.ts +0 -96
- 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 -1591
- 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/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/es.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/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/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/onboarding-game.css +0 -976
- 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/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/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 -1409
- 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 -375
- 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/{src/api/index.ts → api/index.js} +0 -0
- /package/{src/bridge/index.ts → bridge/index.js} +0 -0
- /package/{src/components/TriggersView.tsx → components/TriggersView.js} +0 -0
- /package/{src/hooks/index.ts → hooks/index.js} +0 -0
- /package/{src/index.ts → index.js} +0 -0
- /package/{src/state/index.ts → state/index.js} +0 -0
- /package/{src/styles → styles}/base.css +0 -0
- /package/{src/styles → styles}/styles.css +0 -0
- /package/{src/styles → styles}/xterm.css +0 -0
- /package/{src/utils/index.ts → utils/index.js} +0 -0
- /package/{src/voice/index.ts → voice/index.js} +0 -0
|
@@ -1,940 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import TestRenderer, { act } from "react-test-renderer";
|
|
3
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
4
|
-
|
|
5
|
-
const { mockUseApp } = vi.hoisted(() => ({
|
|
6
|
-
mockUseApp: vi.fn(),
|
|
7
|
-
}));
|
|
8
|
-
|
|
9
|
-
vi.mock("@elizaos/app-core/state", () => ({
|
|
10
|
-
useApp: () => mockUseApp(),
|
|
11
|
-
}));
|
|
12
|
-
|
|
13
|
-
import { InventoryView } from "../../src/components/InventoryView";
|
|
14
|
-
|
|
15
|
-
function createWalletBalances(
|
|
16
|
-
bnbBalance = "0.006",
|
|
17
|
-
bscError: string | null = null,
|
|
18
|
-
) {
|
|
19
|
-
return {
|
|
20
|
-
evm: {
|
|
21
|
-
address: "0x1111111111111111111111111111111111111111",
|
|
22
|
-
chains: [
|
|
23
|
-
{
|
|
24
|
-
chain: "BSC",
|
|
25
|
-
chainId: 56,
|
|
26
|
-
nativeBalance: bnbBalance,
|
|
27
|
-
nativeSymbol: "BNB",
|
|
28
|
-
nativeValueUsd: "4.20",
|
|
29
|
-
tokens: [
|
|
30
|
-
{
|
|
31
|
-
symbol: "CAKE",
|
|
32
|
-
name: "PancakeSwap",
|
|
33
|
-
contractAddress: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
|
|
34
|
-
balance: "12.3",
|
|
35
|
-
decimals: 18,
|
|
36
|
-
valueUsd: "31.20",
|
|
37
|
-
logoUrl: "",
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
error: bscError,
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
chain: "Ethereum",
|
|
44
|
-
chainId: 1,
|
|
45
|
-
nativeBalance: "0.15",
|
|
46
|
-
nativeSymbol: "ETH",
|
|
47
|
-
nativeValueUsd: "460.00",
|
|
48
|
-
tokens: [],
|
|
49
|
-
error: null,
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
solana: {
|
|
54
|
-
address: "So11111111111111111111111111111111111111112",
|
|
55
|
-
solBalance: "1.0",
|
|
56
|
-
solValueUsd: "100.00",
|
|
57
|
-
tokens: [],
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function createEmptyWalletBalances() {
|
|
63
|
-
return {
|
|
64
|
-
evm: {
|
|
65
|
-
address: "0x1111111111111111111111111111111111111111",
|
|
66
|
-
chains: [
|
|
67
|
-
{
|
|
68
|
-
chain: "BSC",
|
|
69
|
-
chainId: 56,
|
|
70
|
-
nativeBalance: "0",
|
|
71
|
-
nativeSymbol: "BNB",
|
|
72
|
-
nativeValueUsd: "0",
|
|
73
|
-
tokens: [],
|
|
74
|
-
error: null,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
chain: "Ethereum",
|
|
78
|
-
chainId: 1,
|
|
79
|
-
nativeBalance: "0",
|
|
80
|
-
nativeSymbol: "ETH",
|
|
81
|
-
nativeValueUsd: "0",
|
|
82
|
-
tokens: [],
|
|
83
|
-
error: null,
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
solana: {
|
|
88
|
-
address: "So11111111111111111111111111111111111111112",
|
|
89
|
-
solBalance: "0",
|
|
90
|
-
solValueUsd: "0",
|
|
91
|
-
tokens: [],
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function createWalletConfig() {
|
|
97
|
-
return {
|
|
98
|
-
selectedRpcProviders: {
|
|
99
|
-
evm: "alchemy",
|
|
100
|
-
bsc: "nodereal",
|
|
101
|
-
solana: "eliza-cloud",
|
|
102
|
-
},
|
|
103
|
-
legacyCustomChains: [],
|
|
104
|
-
alchemyKeySet: true,
|
|
105
|
-
infuraKeySet: false,
|
|
106
|
-
ankrKeySet: true,
|
|
107
|
-
nodeRealBscRpcSet: true,
|
|
108
|
-
quickNodeBscRpcSet: true,
|
|
109
|
-
managedBscRpcReady: true,
|
|
110
|
-
cloudManagedAccess: true,
|
|
111
|
-
evmBalanceReady: true,
|
|
112
|
-
ethereumBalanceReady: true,
|
|
113
|
-
baseBalanceReady: true,
|
|
114
|
-
bscBalanceReady: true,
|
|
115
|
-
avalancheBalanceReady: true,
|
|
116
|
-
solanaBalanceReady: true,
|
|
117
|
-
heliusKeySet: false,
|
|
118
|
-
birdeyeKeySet: false,
|
|
119
|
-
evmChains: ["Ethereum", "Base", "BSC"],
|
|
120
|
-
evmAddress: "0x1111111111111111111111111111111111111111",
|
|
121
|
-
solanaAddress: "So11111111111111111111111111111111111111112",
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
function createPreflight(ok = true) {
|
|
126
|
-
return {
|
|
127
|
-
ok,
|
|
128
|
-
walletAddress: "0x1111111111111111111111111111111111111111",
|
|
129
|
-
rpcUrlHost: "bsc-mainnet.nodereal.io",
|
|
130
|
-
chainId: 56,
|
|
131
|
-
bnbBalance: "0.1",
|
|
132
|
-
minGasBnb: "0.005",
|
|
133
|
-
checks: {
|
|
134
|
-
walletReady: true,
|
|
135
|
-
rpcReady: true,
|
|
136
|
-
chainReady: true,
|
|
137
|
-
gasReady: true,
|
|
138
|
-
tokenAddressValid: true,
|
|
139
|
-
},
|
|
140
|
-
reasons: [] as string[],
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function createQuote(side: "buy" | "sell" = "buy") {
|
|
145
|
-
const isBuy = side === "buy";
|
|
146
|
-
return {
|
|
147
|
-
ok: true,
|
|
148
|
-
side,
|
|
149
|
-
routerAddress: "0x10ED43C718714eb63d5aA57B78B54704E256024E",
|
|
150
|
-
wrappedNativeAddress: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
|
151
|
-
tokenAddress: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
|
|
152
|
-
slippageBps: 500,
|
|
153
|
-
route: isBuy
|
|
154
|
-
? [
|
|
155
|
-
"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
|
156
|
-
"0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
|
|
157
|
-
]
|
|
158
|
-
: [
|
|
159
|
-
"0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
|
|
160
|
-
"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
|
161
|
-
],
|
|
162
|
-
quoteIn: isBuy
|
|
163
|
-
? { symbol: "BNB", amount: "0.1", amountWei: "100000000000000000" }
|
|
164
|
-
: { symbol: "CAKE", amount: "1.0", amountWei: "1000000000000000000" },
|
|
165
|
-
quoteOut: isBuy
|
|
166
|
-
? { symbol: "CAKE", amount: "2.5", amountWei: "2500000000000000000" }
|
|
167
|
-
: { symbol: "BNB", amount: "0.03", amountWei: "30000000000000000" },
|
|
168
|
-
minReceive: isBuy
|
|
169
|
-
? { symbol: "CAKE", amount: "2.375", amountWei: "2375000000000000000" }
|
|
170
|
-
: { symbol: "BNB", amount: "0.0285", amountWei: "28500000000000000" },
|
|
171
|
-
price: "25.0000",
|
|
172
|
-
preflight: createPreflight(true),
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
function createExecuteResult(
|
|
177
|
-
executed = true,
|
|
178
|
-
options?: {
|
|
179
|
-
side?: "buy" | "sell";
|
|
180
|
-
requiresApproval?: boolean;
|
|
181
|
-
executionStatus?: "success" | "pending";
|
|
182
|
-
},
|
|
183
|
-
) {
|
|
184
|
-
const side = options?.side ?? "buy";
|
|
185
|
-
const requiresApproval = options?.requiresApproval ?? false;
|
|
186
|
-
const executionStatus = options?.executionStatus ?? "success";
|
|
187
|
-
return {
|
|
188
|
-
ok: true,
|
|
189
|
-
side,
|
|
190
|
-
mode: executed ? ("local-key" as const) : ("user-sign" as const),
|
|
191
|
-
quote: createQuote(side),
|
|
192
|
-
executed,
|
|
193
|
-
requiresUserSignature: !executed,
|
|
194
|
-
unsignedTx: {
|
|
195
|
-
chainId: 56,
|
|
196
|
-
from: "0x1111111111111111111111111111111111111111",
|
|
197
|
-
to: "0x10ED43C718714eb63d5aA57B78B54704E256024E",
|
|
198
|
-
data: "0x1234",
|
|
199
|
-
valueWei: "100000000000000000",
|
|
200
|
-
deadline: Math.floor(Date.now() / 1000) + 600,
|
|
201
|
-
explorerUrl: "https://bscscan.com",
|
|
202
|
-
},
|
|
203
|
-
unsignedApprovalTx:
|
|
204
|
-
!executed && side === "sell" && requiresApproval
|
|
205
|
-
? {
|
|
206
|
-
chainId: 56,
|
|
207
|
-
from: "0x1111111111111111111111111111111111111111",
|
|
208
|
-
to: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
|
|
209
|
-
data: "0xabcd",
|
|
210
|
-
valueWei: "0",
|
|
211
|
-
explorerUrl: "https://bscscan.com",
|
|
212
|
-
spender: "0x10ED43C718714eb63d5aA57B78B54704E256024E",
|
|
213
|
-
amountWei: "1000000000000000000",
|
|
214
|
-
}
|
|
215
|
-
: undefined,
|
|
216
|
-
requiresApproval:
|
|
217
|
-
!executed && side === "sell" ? requiresApproval : undefined,
|
|
218
|
-
execution: executed
|
|
219
|
-
? {
|
|
220
|
-
hash: "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
221
|
-
nonce: 12,
|
|
222
|
-
gasLimit: "220000",
|
|
223
|
-
valueWei: "100000000000000000",
|
|
224
|
-
explorerUrl:
|
|
225
|
-
"https://bscscan.com/tx/0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
226
|
-
blockNumber: 51_234_567,
|
|
227
|
-
status: executionStatus,
|
|
228
|
-
}
|
|
229
|
-
: undefined,
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
function createContext(
|
|
234
|
-
overrides?: Partial<{
|
|
235
|
-
inventoryView: "tokens" | "nfts";
|
|
236
|
-
inventorySort: "chain" | "symbol" | "value";
|
|
237
|
-
inventoryChainFocus: "bsc" | "all";
|
|
238
|
-
walletBalances: ReturnType<typeof createWalletBalances> | null;
|
|
239
|
-
walletConfig: ReturnType<typeof createWalletConfig> | null;
|
|
240
|
-
elizaCloudConnected: boolean;
|
|
241
|
-
walletError: string | null;
|
|
242
|
-
t: (key: string) => string;
|
|
243
|
-
}>,
|
|
244
|
-
) {
|
|
245
|
-
const ctx: Record<string, unknown> = {
|
|
246
|
-
walletConfig: createWalletConfig(),
|
|
247
|
-
walletAddresses: {
|
|
248
|
-
evmAddress: "0x1111111111111111111111111111111111111111",
|
|
249
|
-
solanaAddress: "So11111111111111111111111111111111111111112",
|
|
250
|
-
},
|
|
251
|
-
walletBalances: createWalletBalances(),
|
|
252
|
-
walletNfts: { evm: [], solana: null },
|
|
253
|
-
walletLoading: false,
|
|
254
|
-
walletNftsLoading: false,
|
|
255
|
-
inventoryView: "tokens",
|
|
256
|
-
inventorySort: "value",
|
|
257
|
-
inventoryChainFocus: "all",
|
|
258
|
-
inventoryCollapseOtherEvm: true,
|
|
259
|
-
inventoryCollapseSolana: true,
|
|
260
|
-
walletError: null,
|
|
261
|
-
elizaCloudConnected: true,
|
|
262
|
-
loadBalances: vi.fn(async () => {}),
|
|
263
|
-
loadNfts: vi.fn(async () => {}),
|
|
264
|
-
getBscTradePreflight: vi.fn(async () => createPreflight(true)),
|
|
265
|
-
getBscTradeQuote: vi.fn(async (request?: { side?: "buy" | "sell" }) =>
|
|
266
|
-
createQuote(request?.side ?? "buy"),
|
|
267
|
-
),
|
|
268
|
-
executeBscTrade: vi.fn(async () => createExecuteResult(true)),
|
|
269
|
-
getBscTradeTxStatus: vi.fn(async () => ({
|
|
270
|
-
ok: true,
|
|
271
|
-
hash: "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
272
|
-
status: "success" as const,
|
|
273
|
-
explorerUrl:
|
|
274
|
-
"https://bscscan.com/tx/0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
275
|
-
chainId: 56,
|
|
276
|
-
blockNumber: 51_234_567,
|
|
277
|
-
confirmations: 7,
|
|
278
|
-
nonce: 12,
|
|
279
|
-
gasUsed: "180000",
|
|
280
|
-
effectiveGasPriceWei: "3000000000",
|
|
281
|
-
})),
|
|
282
|
-
setTab: vi.fn(),
|
|
283
|
-
setActionNotice: vi.fn(),
|
|
284
|
-
copyToClipboard: vi.fn(async () => {}),
|
|
285
|
-
uiLanguage: "en",
|
|
286
|
-
t: (k: string) => k,
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
if (overrides) {
|
|
290
|
-
Object.assign(ctx, overrides);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
ctx.setState = vi.fn((key: string, value: unknown) => {
|
|
294
|
-
ctx[key] = value;
|
|
295
|
-
});
|
|
296
|
-
|
|
297
|
-
return ctx;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
function text(node: TestRenderer.ReactTestInstance): string {
|
|
301
|
-
return node.children
|
|
302
|
-
.map((child) => (typeof child === "string" ? child : text(child)))
|
|
303
|
-
.join("");
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
async function flushAsync() {
|
|
307
|
-
await Promise.resolve();
|
|
308
|
-
await Promise.resolve();
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
beforeEach(() => {
|
|
312
|
-
try {
|
|
313
|
-
localStorage.removeItem("wt_tracked_bsc_tokens");
|
|
314
|
-
} catch {
|
|
315
|
-
// ignore in non-browser test runtime
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
|
|
319
|
-
describe("InventoryView unified wallets", () => {
|
|
320
|
-
it("defaults to a unified all-chains wallet view", async () => {
|
|
321
|
-
const ctx = createContext();
|
|
322
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
323
|
-
|
|
324
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
325
|
-
await act(async () => {
|
|
326
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
327
|
-
});
|
|
328
|
-
|
|
329
|
-
const content = text(tree?.root);
|
|
330
|
-
expect(content).not.toContain("wallet.portfolio");
|
|
331
|
-
expect(content).not.toContain("All Chains");
|
|
332
|
-
expect(content).toContain("wallet.tokens");
|
|
333
|
-
expect(content).toContain("wallet.nfts");
|
|
334
|
-
expect(content).toContain("wallet.all");
|
|
335
|
-
expect(content).toContain("tokenstable.nativeGasEthereum");
|
|
336
|
-
expect(content).toContain("tokenstable.nativeGasSolana");
|
|
337
|
-
expect(
|
|
338
|
-
tree?.root.findAll(
|
|
339
|
-
(node) =>
|
|
340
|
-
node.type === "button" &&
|
|
341
|
-
node.props["data-testid"] === "wallet-token-preflight",
|
|
342
|
-
),
|
|
343
|
-
).toHaveLength(0);
|
|
344
|
-
});
|
|
345
|
-
|
|
346
|
-
it("shows no balances when every chain is empty", async () => {
|
|
347
|
-
const ctx = createContext({
|
|
348
|
-
walletBalances: createEmptyWalletBalances(),
|
|
349
|
-
t: (key: string) =>
|
|
350
|
-
key === "wallet.noTokensFound"
|
|
351
|
-
? "No tokens yet. Send your agent some tokens!"
|
|
352
|
-
: key === "wallet.emptyTokensCta"
|
|
353
|
-
? "Use the wallet addresses below to fund this agent."
|
|
354
|
-
: key === "wallet.copyEvmAddress"
|
|
355
|
-
? "Copy EVM address"
|
|
356
|
-
: key === "wallet.copySolanaAddress"
|
|
357
|
-
? "Copy Solana address"
|
|
358
|
-
: key,
|
|
359
|
-
});
|
|
360
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
361
|
-
|
|
362
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
363
|
-
await act(async () => {
|
|
364
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
365
|
-
});
|
|
366
|
-
|
|
367
|
-
const content = text(tree?.root);
|
|
368
|
-
expect(content).toContain("No tokens yet. Send your agent some tokens!");
|
|
369
|
-
expect(content).toContain("Copy EVM address");
|
|
370
|
-
expect(content).toContain("Copy Solana address");
|
|
371
|
-
expect(content).not.toContain("tokenstable.nativeGasEthereum");
|
|
372
|
-
expect(content).not.toContain("tokenstable.nativeGasSolana");
|
|
373
|
-
});
|
|
374
|
-
|
|
375
|
-
it("switches focus with chain controls", async () => {
|
|
376
|
-
const ctx = createContext();
|
|
377
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
378
|
-
|
|
379
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
380
|
-
await act(async () => {
|
|
381
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
382
|
-
});
|
|
383
|
-
|
|
384
|
-
const chainSelect = tree?.root.findAll(
|
|
385
|
-
(node) =>
|
|
386
|
-
node.type === "select" &&
|
|
387
|
-
node.props["data-testid"] === "wallet-chain-select",
|
|
388
|
-
)[0];
|
|
389
|
-
expect(chainSelect).toBeDefined();
|
|
390
|
-
|
|
391
|
-
await act(async () => {
|
|
392
|
-
chainSelect.props.onChange({ target: { value: "bsc" } });
|
|
393
|
-
});
|
|
394
|
-
expect(ctx.setState).toHaveBeenCalledWith("inventoryChainFocus", "bsc");
|
|
395
|
-
|
|
396
|
-
await act(async () => {
|
|
397
|
-
tree?.update(React.createElement(InventoryView));
|
|
398
|
-
});
|
|
399
|
-
|
|
400
|
-
const content = text(tree?.root);
|
|
401
|
-
expect(content).not.toContain("All Chains");
|
|
402
|
-
expect(content).not.toContain("Ethereum native");
|
|
403
|
-
expect(
|
|
404
|
-
tree?.root.findAll(
|
|
405
|
-
(node) =>
|
|
406
|
-
node.type === "button" &&
|
|
407
|
-
node.props["data-testid"] === "wallet-token-preflight",
|
|
408
|
-
),
|
|
409
|
-
).toHaveLength(1);
|
|
410
|
-
});
|
|
411
|
-
|
|
412
|
-
it("applies BNB gas readiness threshold at 0.005", async () => {
|
|
413
|
-
const lowCtx = createContext({
|
|
414
|
-
inventoryChainFocus: "bsc",
|
|
415
|
-
walletBalances: createWalletBalances("0.0049"),
|
|
416
|
-
});
|
|
417
|
-
mockUseApp.mockImplementation(() => lowCtx);
|
|
418
|
-
|
|
419
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
420
|
-
await act(async () => {
|
|
421
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
422
|
-
});
|
|
423
|
-
let content = text(tree?.root);
|
|
424
|
-
expect(content).toContain("Trade Not Ready");
|
|
425
|
-
|
|
426
|
-
const readyCtx = createContext({
|
|
427
|
-
inventoryChainFocus: "bsc",
|
|
428
|
-
walletBalances: createWalletBalances("0.005"),
|
|
429
|
-
});
|
|
430
|
-
mockUseApp.mockImplementation(() => readyCtx);
|
|
431
|
-
await act(async () => {
|
|
432
|
-
tree?.update(React.createElement(InventoryView));
|
|
433
|
-
});
|
|
434
|
-
content = text(tree?.root);
|
|
435
|
-
expect(content).toContain("Trade Ready");
|
|
436
|
-
});
|
|
437
|
-
|
|
438
|
-
it("renders BSC chain errors and token preflight/quote actions", async () => {
|
|
439
|
-
const errorCtx = createContext({
|
|
440
|
-
inventoryChainFocus: "bsc",
|
|
441
|
-
walletBalances: createWalletBalances("0.006", "BSC RPC timeout"),
|
|
442
|
-
});
|
|
443
|
-
mockUseApp.mockImplementation(() => errorCtx);
|
|
444
|
-
|
|
445
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
446
|
-
await act(async () => {
|
|
447
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
448
|
-
});
|
|
449
|
-
|
|
450
|
-
const content = text(tree?.root);
|
|
451
|
-
expect(content).toContain("BSC: BSC RPC timeout");
|
|
452
|
-
|
|
453
|
-
const normalCtx = createContext({
|
|
454
|
-
inventoryChainFocus: "bsc",
|
|
455
|
-
walletBalances: createWalletBalances("0.006", null),
|
|
456
|
-
});
|
|
457
|
-
mockUseApp.mockImplementation(() => normalCtx);
|
|
458
|
-
await act(async () => {
|
|
459
|
-
tree?.update(React.createElement(InventoryView));
|
|
460
|
-
});
|
|
461
|
-
|
|
462
|
-
const preflightButton = tree?.root.findAll(
|
|
463
|
-
(node) =>
|
|
464
|
-
node.type === "button" &&
|
|
465
|
-
node.props["data-testid"] === "wallet-token-preflight",
|
|
466
|
-
)[0];
|
|
467
|
-
const tokenInput = tree?.root.findAll(
|
|
468
|
-
(node) =>
|
|
469
|
-
node.type === "input" &&
|
|
470
|
-
node.props["data-testid"] === "wallet-quick-token-input",
|
|
471
|
-
)[0];
|
|
472
|
-
const quoteButton = tree?.root.findAll(
|
|
473
|
-
(node) =>
|
|
474
|
-
node.type === "button" &&
|
|
475
|
-
node.props["data-testid"] === "wallet-token-quote",
|
|
476
|
-
)[0];
|
|
477
|
-
expect(preflightButton).toBeDefined();
|
|
478
|
-
expect(tokenInput).toBeDefined();
|
|
479
|
-
expect(quoteButton).toBeDefined();
|
|
480
|
-
|
|
481
|
-
await act(async () => {
|
|
482
|
-
tokenInput.props.onChange({
|
|
483
|
-
target: { value: "0x1234567890abcdef1234567890abcdef12345678" },
|
|
484
|
-
});
|
|
485
|
-
await flushAsync();
|
|
486
|
-
});
|
|
487
|
-
|
|
488
|
-
await act(async () => {
|
|
489
|
-
preflightButton.props.onClick();
|
|
490
|
-
quoteButton.props.onClick();
|
|
491
|
-
await flushAsync();
|
|
492
|
-
});
|
|
493
|
-
expect(normalCtx.getBscTradePreflight).toHaveBeenCalled();
|
|
494
|
-
expect(normalCtx.getBscTradeQuote).toHaveBeenCalled();
|
|
495
|
-
});
|
|
496
|
-
|
|
497
|
-
it("keeps the all-chains view free of BSC-only RPC warnings", async () => {
|
|
498
|
-
const balances = createWalletBalances("0.006", null);
|
|
499
|
-
balances.evm.chains = balances.evm.chains.filter(
|
|
500
|
-
(chain) => chain.chain !== "BSC",
|
|
501
|
-
);
|
|
502
|
-
const ctx = createContext({
|
|
503
|
-
elizaCloudConnected: false,
|
|
504
|
-
walletBalances: balances,
|
|
505
|
-
walletConfig: {
|
|
506
|
-
...createWalletConfig(),
|
|
507
|
-
ankrKeySet: false,
|
|
508
|
-
managedBscRpcReady: false,
|
|
509
|
-
bscBalanceReady: false,
|
|
510
|
-
},
|
|
511
|
-
});
|
|
512
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
513
|
-
|
|
514
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
515
|
-
await act(async () => {
|
|
516
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
517
|
-
});
|
|
518
|
-
|
|
519
|
-
const content = text(tree?.root);
|
|
520
|
-
expect(content).not.toContain("portfolioheader.ConnectViaElizaCl");
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
it("shows managed RPC setup guidance when BSC is focused and unavailable", async () => {
|
|
524
|
-
const balances = createWalletBalances("0.006", null);
|
|
525
|
-
balances.evm.chains = balances.evm.chains.filter(
|
|
526
|
-
(chain) => chain.chain !== "BSC",
|
|
527
|
-
);
|
|
528
|
-
const ctx = createContext({
|
|
529
|
-
inventoryChainFocus: "bsc",
|
|
530
|
-
elizaCloudConnected: false,
|
|
531
|
-
walletBalances: balances,
|
|
532
|
-
walletConfig: {
|
|
533
|
-
...createWalletConfig(),
|
|
534
|
-
alchemyKeySet: false,
|
|
535
|
-
ankrKeySet: false,
|
|
536
|
-
infuraKeySet: false,
|
|
537
|
-
nodeRealBscRpcSet: false,
|
|
538
|
-
quickNodeBscRpcSet: false,
|
|
539
|
-
managedBscRpcReady: false,
|
|
540
|
-
cloudManagedAccess: false,
|
|
541
|
-
bscBalanceReady: false,
|
|
542
|
-
},
|
|
543
|
-
});
|
|
544
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
545
|
-
|
|
546
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
547
|
-
await act(async () => {
|
|
548
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
549
|
-
});
|
|
550
|
-
|
|
551
|
-
const content = text(tree?.root);
|
|
552
|
-
expect(content).toContain("portfolioheader.ConnectViaElizaCl");
|
|
553
|
-
});
|
|
554
|
-
|
|
555
|
-
it("supports quick trade input and preset actions", async () => {
|
|
556
|
-
const ctx = createContext({
|
|
557
|
-
inventoryChainFocus: "bsc",
|
|
558
|
-
walletBalances: createWalletBalances("0.006", null),
|
|
559
|
-
});
|
|
560
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
561
|
-
|
|
562
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
563
|
-
await act(async () => {
|
|
564
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
565
|
-
});
|
|
566
|
-
|
|
567
|
-
const tokenInput = tree?.root.findAll(
|
|
568
|
-
(node) =>
|
|
569
|
-
node.type === "input" &&
|
|
570
|
-
node.props["data-testid"] === "wallet-quick-token-input",
|
|
571
|
-
)[0];
|
|
572
|
-
expect(tokenInput).toBeDefined();
|
|
573
|
-
|
|
574
|
-
await act(async () => {
|
|
575
|
-
tokenInput.props.onChange({
|
|
576
|
-
target: { value: "0x1234567890abcdef1234567890abcdef12345678" },
|
|
577
|
-
});
|
|
578
|
-
});
|
|
579
|
-
|
|
580
|
-
const amountPreset = tree?.root.findAll(
|
|
581
|
-
(node) =>
|
|
582
|
-
node.type === "button" &&
|
|
583
|
-
node.props["data-testid"] === "wallet-quick-amount-0.2",
|
|
584
|
-
)[0];
|
|
585
|
-
const quickBuy = tree?.root.findAll(
|
|
586
|
-
(node) =>
|
|
587
|
-
node.type === "button" &&
|
|
588
|
-
node.props["data-testid"] === "wallet-quick-buy",
|
|
589
|
-
)[0];
|
|
590
|
-
const quickSell = tree?.root.findAll(
|
|
591
|
-
(node) =>
|
|
592
|
-
node.type === "button" &&
|
|
593
|
-
node.props["data-testid"] === "wallet-quick-sell",
|
|
594
|
-
)[0];
|
|
595
|
-
expect(amountPreset).toBeDefined();
|
|
596
|
-
expect(quickBuy).toBeDefined();
|
|
597
|
-
expect(quickSell).toBeDefined();
|
|
598
|
-
|
|
599
|
-
await act(async () => {
|
|
600
|
-
amountPreset.props.onClick();
|
|
601
|
-
quickBuy.props.onClick();
|
|
602
|
-
await flushAsync();
|
|
603
|
-
});
|
|
604
|
-
|
|
605
|
-
expect(ctx.getBscTradeQuote).toHaveBeenCalled();
|
|
606
|
-
const content = text(tree?.root);
|
|
607
|
-
expect(content).toContain("bsctradepanel.LatestQuote");
|
|
608
|
-
|
|
609
|
-
await act(async () => {
|
|
610
|
-
quickSell.props.onClick();
|
|
611
|
-
await flushAsync();
|
|
612
|
-
});
|
|
613
|
-
expect(ctx.getBscTradeQuote).toHaveBeenCalledWith(
|
|
614
|
-
expect.objectContaining({ side: "sell" }),
|
|
615
|
-
);
|
|
616
|
-
});
|
|
617
|
-
|
|
618
|
-
it("supports manually adding a token contract to wallet rows", async () => {
|
|
619
|
-
const ctx = createContext({
|
|
620
|
-
inventoryChainFocus: "bsc",
|
|
621
|
-
walletBalances: createWalletBalances("0.006", null),
|
|
622
|
-
});
|
|
623
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
624
|
-
|
|
625
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
626
|
-
await act(async () => {
|
|
627
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
628
|
-
});
|
|
629
|
-
|
|
630
|
-
const tokenInput = tree?.root.findAll(
|
|
631
|
-
(node) =>
|
|
632
|
-
node.type === "input" &&
|
|
633
|
-
node.props["data-testid"] === "wallet-quick-token-input",
|
|
634
|
-
)[0];
|
|
635
|
-
const addButton = tree?.root.findAll(
|
|
636
|
-
(node) =>
|
|
637
|
-
node.type === "button" &&
|
|
638
|
-
node.props["data-testid"] === "wallet-quick-add-token",
|
|
639
|
-
)[0];
|
|
640
|
-
expect(addButton).toBeDefined();
|
|
641
|
-
|
|
642
|
-
await act(async () => {
|
|
643
|
-
tokenInput.props.onChange({
|
|
644
|
-
target: { value: "0x1111111111111111111111111111111111111112" },
|
|
645
|
-
});
|
|
646
|
-
await flushAsync();
|
|
647
|
-
});
|
|
648
|
-
|
|
649
|
-
const addButtonUpdated = tree?.root.findAll(
|
|
650
|
-
(node) =>
|
|
651
|
-
node.type === "button" &&
|
|
652
|
-
node.props["data-testid"] === "wallet-quick-add-token",
|
|
653
|
-
)[0];
|
|
654
|
-
|
|
655
|
-
await act(async () => {
|
|
656
|
-
addButtonUpdated.props.onClick();
|
|
657
|
-
await flushAsync();
|
|
658
|
-
});
|
|
659
|
-
|
|
660
|
-
expect(ctx.setActionNotice).toHaveBeenCalledWith(
|
|
661
|
-
"Token added to watchlist.",
|
|
662
|
-
"success",
|
|
663
|
-
2600,
|
|
664
|
-
);
|
|
665
|
-
expect(text(tree?.root)).toContain("TKN-1111");
|
|
666
|
-
|
|
667
|
-
const untrackButton = tree?.root.findAll(
|
|
668
|
-
(node) =>
|
|
669
|
-
node.type === "button" &&
|
|
670
|
-
node.props["data-testid"] === "wallet-token-untrack",
|
|
671
|
-
)[0];
|
|
672
|
-
expect(untrackButton).toBeDefined();
|
|
673
|
-
|
|
674
|
-
await act(async () => {
|
|
675
|
-
untrackButton.props.onClick();
|
|
676
|
-
await flushAsync();
|
|
677
|
-
});
|
|
678
|
-
|
|
679
|
-
expect(text(tree?.root)).not.toContain("TKN-1111");
|
|
680
|
-
});
|
|
681
|
-
|
|
682
|
-
it("executes latest quote via inline confirmation", async () => {
|
|
683
|
-
const ctx = createContext({
|
|
684
|
-
inventoryChainFocus: "bsc",
|
|
685
|
-
walletBalances: createWalletBalances("0.02", null),
|
|
686
|
-
});
|
|
687
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
688
|
-
|
|
689
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
690
|
-
await act(async () => {
|
|
691
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
692
|
-
});
|
|
693
|
-
|
|
694
|
-
const tokenInput = tree?.root.findAll(
|
|
695
|
-
(node) =>
|
|
696
|
-
node.type === "input" &&
|
|
697
|
-
node.props["data-testid"] === "wallet-quick-token-input",
|
|
698
|
-
)[0];
|
|
699
|
-
await act(async () => {
|
|
700
|
-
tokenInput.props.onChange({
|
|
701
|
-
target: { value: "0x1234567890abcdef1234567890abcdef12345678" },
|
|
702
|
-
});
|
|
703
|
-
});
|
|
704
|
-
|
|
705
|
-
const quickBuy = tree?.root.findAll(
|
|
706
|
-
(node) =>
|
|
707
|
-
node.type === "button" &&
|
|
708
|
-
node.props["data-testid"] === "wallet-quick-buy",
|
|
709
|
-
)[0];
|
|
710
|
-
await act(async () => {
|
|
711
|
-
quickBuy.props.onClick();
|
|
712
|
-
await flushAsync();
|
|
713
|
-
});
|
|
714
|
-
|
|
715
|
-
// Click Execute Trade to show inline confirmation
|
|
716
|
-
const executeButton = tree?.root.findAll(
|
|
717
|
-
(node) =>
|
|
718
|
-
node.type === "button" &&
|
|
719
|
-
node.props["data-testid"] === "wallet-quote-execute",
|
|
720
|
-
)[0];
|
|
721
|
-
await act(async () => {
|
|
722
|
-
executeButton.props.onClick();
|
|
723
|
-
await flushAsync();
|
|
724
|
-
});
|
|
725
|
-
|
|
726
|
-
const confirmButton = tree?.root.findAll(
|
|
727
|
-
(node) =>
|
|
728
|
-
node.type === "button" &&
|
|
729
|
-
node.props["data-testid"] === "wallet-quote-confirm",
|
|
730
|
-
)[0];
|
|
731
|
-
expect(confirmButton).toBeDefined();
|
|
732
|
-
const cancelButton = tree?.root.findAll(
|
|
733
|
-
(node) =>
|
|
734
|
-
node.type === "button" &&
|
|
735
|
-
node.props["data-testid"] === "wallet-quote-cancel",
|
|
736
|
-
)[0];
|
|
737
|
-
expect(cancelButton).toBeDefined();
|
|
738
|
-
|
|
739
|
-
// Click the Confirm button
|
|
740
|
-
await act(async () => {
|
|
741
|
-
confirmButton.props.onClick();
|
|
742
|
-
await flushAsync();
|
|
743
|
-
});
|
|
744
|
-
|
|
745
|
-
expect(ctx.executeBscTrade).toHaveBeenCalledTimes(1);
|
|
746
|
-
expect(text(tree?.root)).toContain("bsctradepanel.ViewTx 0xaaaaaaaa");
|
|
747
|
-
});
|
|
748
|
-
|
|
749
|
-
it("shows two-step notice for sell in user-sign mode", async () => {
|
|
750
|
-
const ctx = createContext({
|
|
751
|
-
inventoryChainFocus: "bsc",
|
|
752
|
-
walletBalances: createWalletBalances("0.02", null),
|
|
753
|
-
});
|
|
754
|
-
ctx.executeBscTrade = vi.fn(async () =>
|
|
755
|
-
createExecuteResult(false, { side: "sell", requiresApproval: true }),
|
|
756
|
-
);
|
|
757
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
758
|
-
|
|
759
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
760
|
-
await act(async () => {
|
|
761
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
762
|
-
});
|
|
763
|
-
|
|
764
|
-
const tokenInput = tree?.root.findAll(
|
|
765
|
-
(node) =>
|
|
766
|
-
node.type === "input" &&
|
|
767
|
-
node.props["data-testid"] === "wallet-quick-token-input",
|
|
768
|
-
)[0];
|
|
769
|
-
await act(async () => {
|
|
770
|
-
tokenInput.props.onChange({
|
|
771
|
-
target: { value: "0x1234567890abcdef1234567890abcdef12345678" },
|
|
772
|
-
});
|
|
773
|
-
});
|
|
774
|
-
|
|
775
|
-
const quickSell = tree?.root.findAll(
|
|
776
|
-
(node) =>
|
|
777
|
-
node.type === "button" &&
|
|
778
|
-
node.props["data-testid"] === "wallet-quick-sell",
|
|
779
|
-
)[0];
|
|
780
|
-
await act(async () => {
|
|
781
|
-
quickSell.props.onClick();
|
|
782
|
-
await flushAsync();
|
|
783
|
-
});
|
|
784
|
-
|
|
785
|
-
// Click Execute Trade to show inline confirmation
|
|
786
|
-
const executeButton = tree?.root.findAll(
|
|
787
|
-
(node) =>
|
|
788
|
-
node.type === "button" &&
|
|
789
|
-
node.props["data-testid"] === "wallet-quote-execute",
|
|
790
|
-
)[0];
|
|
791
|
-
await act(async () => {
|
|
792
|
-
executeButton.props.onClick();
|
|
793
|
-
await flushAsync();
|
|
794
|
-
});
|
|
795
|
-
|
|
796
|
-
// Click the Confirm button
|
|
797
|
-
const confirmButton = tree?.root.findAll(
|
|
798
|
-
(node) =>
|
|
799
|
-
node.type === "button" &&
|
|
800
|
-
node.props["data-testid"] === "wallet-quote-confirm",
|
|
801
|
-
)[0];
|
|
802
|
-
expect(confirmButton).toBeDefined();
|
|
803
|
-
await act(async () => {
|
|
804
|
-
confirmButton.props.onClick();
|
|
805
|
-
await flushAsync();
|
|
806
|
-
});
|
|
807
|
-
|
|
808
|
-
expect(ctx.executeBscTrade).toHaveBeenCalledWith(
|
|
809
|
-
expect.objectContaining({ side: "sell" }),
|
|
810
|
-
);
|
|
811
|
-
expect(ctx.setActionNotice).toHaveBeenCalledWith(
|
|
812
|
-
expect.stringContaining("Sign swap transaction"),
|
|
813
|
-
"info",
|
|
814
|
-
4600,
|
|
815
|
-
);
|
|
816
|
-
|
|
817
|
-
const approveCopy = tree?.root.findAll(
|
|
818
|
-
(node) =>
|
|
819
|
-
node.type === "button" &&
|
|
820
|
-
node.props["data-testid"] === "wallet-copy-approve-tx",
|
|
821
|
-
)[0];
|
|
822
|
-
const swapCopy = tree?.root.findAll(
|
|
823
|
-
(node) =>
|
|
824
|
-
node.type === "button" &&
|
|
825
|
-
node.props["data-testid"] === "wallet-copy-swap-tx",
|
|
826
|
-
)[0];
|
|
827
|
-
expect(approveCopy).toBeDefined();
|
|
828
|
-
expect(swapCopy).toBeDefined();
|
|
829
|
-
|
|
830
|
-
await act(async () => {
|
|
831
|
-
approveCopy.props.onClick();
|
|
832
|
-
swapCopy.props.onClick();
|
|
833
|
-
await flushAsync();
|
|
834
|
-
});
|
|
835
|
-
expect(ctx.copyToClipboard).toHaveBeenCalledTimes(2);
|
|
836
|
-
});
|
|
837
|
-
|
|
838
|
-
it("refreshes pending tx status after execute", async () => {
|
|
839
|
-
const ctx = createContext({
|
|
840
|
-
inventoryChainFocus: "bsc",
|
|
841
|
-
walletBalances: createWalletBalances("0.02", null),
|
|
842
|
-
});
|
|
843
|
-
ctx.executeBscTrade = vi.fn(async () =>
|
|
844
|
-
createExecuteResult(true, { executionStatus: "pending" }),
|
|
845
|
-
);
|
|
846
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
847
|
-
|
|
848
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
849
|
-
await act(async () => {
|
|
850
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
851
|
-
});
|
|
852
|
-
|
|
853
|
-
const tokenInput = tree?.root.findAll(
|
|
854
|
-
(node) =>
|
|
855
|
-
node.type === "input" &&
|
|
856
|
-
node.props["data-testid"] === "wallet-quick-token-input",
|
|
857
|
-
)[0];
|
|
858
|
-
await act(async () => {
|
|
859
|
-
tokenInput.props.onChange({
|
|
860
|
-
target: { value: "0x1234567890abcdef1234567890abcdef12345678" },
|
|
861
|
-
});
|
|
862
|
-
});
|
|
863
|
-
|
|
864
|
-
const quickBuy = tree?.root.findAll(
|
|
865
|
-
(node) =>
|
|
866
|
-
node.type === "button" &&
|
|
867
|
-
node.props["data-testid"] === "wallet-quick-buy",
|
|
868
|
-
)[0];
|
|
869
|
-
await act(async () => {
|
|
870
|
-
quickBuy.props.onClick();
|
|
871
|
-
await flushAsync();
|
|
872
|
-
});
|
|
873
|
-
|
|
874
|
-
// Click Execute Trade to show inline confirmation
|
|
875
|
-
const executeButton = tree?.root.findAll(
|
|
876
|
-
(node) =>
|
|
877
|
-
node.type === "button" &&
|
|
878
|
-
node.props["data-testid"] === "wallet-quote-execute",
|
|
879
|
-
)[0];
|
|
880
|
-
await act(async () => {
|
|
881
|
-
executeButton.props.onClick();
|
|
882
|
-
await flushAsync();
|
|
883
|
-
});
|
|
884
|
-
|
|
885
|
-
// Click the Confirm button to execute
|
|
886
|
-
const confirmButton = tree?.root.findAll(
|
|
887
|
-
(node) =>
|
|
888
|
-
node.type === "button" &&
|
|
889
|
-
node.props["data-testid"] === "wallet-quote-confirm",
|
|
890
|
-
)[0];
|
|
891
|
-
expect(confirmButton).toBeDefined();
|
|
892
|
-
await act(async () => {
|
|
893
|
-
confirmButton.props.onClick();
|
|
894
|
-
await flushAsync();
|
|
895
|
-
});
|
|
896
|
-
|
|
897
|
-
const refreshButton = tree?.root.findAll(
|
|
898
|
-
(node) =>
|
|
899
|
-
node.type === "button" &&
|
|
900
|
-
node.props["data-testid"] === "wallet-tx-refresh",
|
|
901
|
-
)[0];
|
|
902
|
-
expect(refreshButton).toBeDefined();
|
|
903
|
-
|
|
904
|
-
await act(async () => {
|
|
905
|
-
refreshButton.props.onClick();
|
|
906
|
-
await flushAsync();
|
|
907
|
-
});
|
|
908
|
-
|
|
909
|
-
expect(ctx.getBscTradeTxStatus).toHaveBeenCalledWith(
|
|
910
|
-
"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
911
|
-
);
|
|
912
|
-
expect(text(tree?.root)).toContain("bsctradepanel.Confirmations");
|
|
913
|
-
});
|
|
914
|
-
|
|
915
|
-
it("shows legacy raw RPC guidance when a focused chain is on legacy config", async () => {
|
|
916
|
-
const ctx = createContext({
|
|
917
|
-
inventoryChainFocus: "bsc",
|
|
918
|
-
walletConfig: {
|
|
919
|
-
...createWalletConfig(),
|
|
920
|
-
selectedRpcProviders: {
|
|
921
|
-
evm: "alchemy",
|
|
922
|
-
bsc: "nodereal",
|
|
923
|
-
solana: "eliza-cloud",
|
|
924
|
-
},
|
|
925
|
-
legacyCustomChains: ["bsc"],
|
|
926
|
-
bscBalanceReady: true,
|
|
927
|
-
},
|
|
928
|
-
});
|
|
929
|
-
mockUseApp.mockImplementation(() => ctx);
|
|
930
|
-
|
|
931
|
-
let tree: TestRenderer.ReactTestRenderer;
|
|
932
|
-
await act(async () => {
|
|
933
|
-
tree = TestRenderer.create(React.createElement(InventoryView));
|
|
934
|
-
});
|
|
935
|
-
|
|
936
|
-
const content = text(tree?.root);
|
|
937
|
-
expect(content).toContain("BSC is using legacy raw RPC config.");
|
|
938
|
-
expect(content).toContain("Re-save a supported provider in Settings");
|
|
939
|
-
});
|
|
940
|
-
});
|