@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
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { BscTradeTxStatusResponse } from "@elizaos/app-core/api";
|
|
2
|
+
export type TranslatorFn = (key: string, vars?: Record<string, string | number>) => string;
|
|
3
|
+
export declare function getWalletTxStatusLabel(status: string, t: TranslatorFn): string;
|
|
4
|
+
export declare function mapWalletTradeError(err: unknown, t: TranslatorFn, fallbackKey: string): string;
|
|
5
|
+
export declare const BSC_GAS_READY_THRESHOLD = 0.005;
|
|
6
|
+
export declare const BSC_SWAP_GAS_RESERVE = 0.002;
|
|
7
|
+
export declare const HEX_ADDRESS_RE: RegExp;
|
|
8
|
+
export declare const ELIZA_BSC_TOKEN_ADDRESS = "0xc20e45e49e0e79f0fc81e71f05fd2772d6587777";
|
|
9
|
+
export declare const BSC_USDT_TOKEN_ADDRESS = "0x55d398326f99059fF775485246999027B3197955";
|
|
10
|
+
export declare const BSC_USDC_TOKEN_ADDRESS = "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d";
|
|
11
|
+
export declare const BSC_NATIVE_LOGO_URL = "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/smartchain/info/logo.png";
|
|
12
|
+
export declare const SOL_NATIVE_LOGO_URL = "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/solana/info/logo.png";
|
|
13
|
+
export declare const AVAX_NATIVE_LOGO_URL = "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/info/logo.png";
|
|
14
|
+
export declare const WALLET_RECENT_TRADES_KEY = "anime_wallet_recent_trades";
|
|
15
|
+
export declare const MAX_WALLET_RECENT_TRADES = 10;
|
|
16
|
+
export type WalletPortfolioChainFilter = "all" | "bsc" | "evm" | "solana" | "avax" | (string & {});
|
|
17
|
+
export type WalletTokenRow = {
|
|
18
|
+
key: string;
|
|
19
|
+
symbol: string;
|
|
20
|
+
name: string;
|
|
21
|
+
chain: string;
|
|
22
|
+
chainKey: Exclude<WalletPortfolioChainFilter, "all">;
|
|
23
|
+
assetAddress: string | null;
|
|
24
|
+
isNative: boolean;
|
|
25
|
+
valueUsd: number;
|
|
26
|
+
balance: string;
|
|
27
|
+
logoUrl: string | null;
|
|
28
|
+
};
|
|
29
|
+
export type WalletCollectibleRow = {
|
|
30
|
+
key: string;
|
|
31
|
+
chain: string;
|
|
32
|
+
chainKey: Exclude<WalletPortfolioChainFilter, "all">;
|
|
33
|
+
name: string;
|
|
34
|
+
collectionName: string;
|
|
35
|
+
imageUrl: string | null;
|
|
36
|
+
};
|
|
37
|
+
export type WalletRecentTrade = {
|
|
38
|
+
hash: string;
|
|
39
|
+
side: "buy" | "sell";
|
|
40
|
+
tokenAddress: string;
|
|
41
|
+
amount: string;
|
|
42
|
+
inputSymbol: string;
|
|
43
|
+
outputSymbol: string;
|
|
44
|
+
createdAt: number;
|
|
45
|
+
status: BscTradeTxStatusResponse["status"];
|
|
46
|
+
confirmations: number;
|
|
47
|
+
nonce: number | null;
|
|
48
|
+
reason: string | null;
|
|
49
|
+
explorerUrl: string;
|
|
50
|
+
};
|
|
51
|
+
export type WalletRecentFilter = "all" | BscTradeTxStatusResponse["status"];
|
|
52
|
+
export type TokenMetadata = {
|
|
53
|
+
symbol: string;
|
|
54
|
+
name: string;
|
|
55
|
+
logoUrl: string | null;
|
|
56
|
+
};
|
|
57
|
+
export declare function isBscChainName(chain: string): boolean;
|
|
58
|
+
export declare function isAvaxChainName(chain: string): boolean;
|
|
59
|
+
export declare function resolvePortfolioChainKey(chain: string): Exclude<WalletPortfolioChainFilter, "all">;
|
|
60
|
+
export declare function formatRouteAddress(address: string): string;
|
|
61
|
+
export declare function getTokenExplorerUrl(row: WalletTokenRow): string | null;
|
|
62
|
+
export declare function loadRecentTrades(): WalletRecentTrade[];
|
|
63
|
+
export declare function persistRecentTrades(rows: WalletRecentTrade[]): void;
|
|
64
|
+
/**
|
|
65
|
+
* Returns a safe explorer URL, falling back to a configurable explorer
|
|
66
|
+
* (defaults to bscscan) if the provided URL does not use an https/http
|
|
67
|
+
* scheme (prevents javascript: URI injection).
|
|
68
|
+
*/
|
|
69
|
+
export declare function safeExplorerHref(explorerUrl: string | undefined | null, hash: string, fallbackBaseUrl?: string): string;
|
|
70
|
+
export declare function shortHash(hash: string): string;
|
|
71
|
+
export declare function getRecentTradeGroupKey(createdAt: number, nowMs?: number): "today" | "yesterday" | "earlier";
|
|
72
|
+
export type DexScreenerTokenRef = {
|
|
73
|
+
address?: string;
|
|
74
|
+
symbol?: string;
|
|
75
|
+
name?: string;
|
|
76
|
+
};
|
|
77
|
+
export type DexScreenerPair = {
|
|
78
|
+
chainId?: string;
|
|
79
|
+
baseToken?: DexScreenerTokenRef;
|
|
80
|
+
quoteToken?: DexScreenerTokenRef;
|
|
81
|
+
info?: {
|
|
82
|
+
imageUrl?: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export type DexScreenerTokenResponse = {
|
|
86
|
+
pairs?: DexScreenerPair[];
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Fetch token metadata from DexScreener for any supported chain.
|
|
90
|
+
* Falls back to `fetchBscTokenMetadata` signature when no chainId given.
|
|
91
|
+
*/
|
|
92
|
+
export declare function fetchTokenMetadata(contractAddress: string, dexScreenerChainId?: string): Promise<TokenMetadata | null>;
|
|
93
|
+
/** @deprecated Use `fetchTokenMetadata(address, "bsc")` instead. */
|
|
94
|
+
export declare const fetchBscTokenMetadata: (contractAddress: string) => Promise<TokenMetadata | null>;
|
|
95
|
+
//# sourceMappingURL=walletUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletUtils.d.ts","sourceRoot":"","sources":["../../../src/components/companion/walletUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAGtE,MAAM,MAAM,YAAY,GAAG,CACzB,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACnC,MAAM,CAAC;AAEZ,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,YAAY,GACd,MAAM,CAIR;AAED,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,OAAO,EACZ,CAAC,EAAE,YAAY,EACf,WAAW,EAAE,MAAM,GAClB,MAAM,CAIR;AAED,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAC7C,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAC1C,eAAO,MAAM,cAAc,QAAwB,CAAC;AACpD,eAAO,MAAM,uBAAuB,+CACU,CAAC;AAC/C,eAAO,MAAM,sBAAsB,+CACW,CAAC;AAC/C,eAAO,MAAM,sBAAsB,+CACW,CAAC;AAC/C,eAAO,MAAM,mBAAmB,qGACoE,CAAC;AACrG,eAAO,MAAM,mBAAmB,iGACgE,CAAC;AACjG,eAAO,MAAM,oBAAoB,qGACmE,CAAC;AACrG,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,MAAM,MAAM,0BAA0B,GAClC,KAAK,GACL,KAAK,GACL,KAAK,GACL,QAAQ,GACR,MAAM,GACN,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC;IACrD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC;AAE5E,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAOrD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAQtD;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAM5C;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAI1D;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,GAAG,IAAI,CAItE;AAED,wBAAgB,gBAAgB,IAAI,iBAAiB,EAAE,CAqBtD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAUnE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EACtC,IAAI,EAAE,MAAM,EACZ,eAAe,SAAwB,GACtC,MAAM,CAIR;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAI9C;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAmB,GACzB,OAAO,GAAG,WAAW,GAAG,SAAS,CAiBnC;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,eAAe,EAAE,MAAM,EACvB,kBAAkB,SAAQ,GACzB,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAyC/B;AAED,oEAAoE;AACpE,eAAO,MAAM,qBAAqB,GAChC,iBAAiB,MAAM,KACtB,OAAO,CAAC,aAAa,GAAG,IAAI,CAA+C,CAAC"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { getExplorerTokenUrl } from "../chainConfig";
|
|
2
|
+
export function getWalletTxStatusLabel(status, t) {
|
|
3
|
+
const key = `wallet.txStatus.${status}`;
|
|
4
|
+
const translated = t(key);
|
|
5
|
+
return translated === key ? status : translated;
|
|
6
|
+
}
|
|
7
|
+
export function mapWalletTradeError(err, t, fallbackKey) {
|
|
8
|
+
if (err instanceof Error && err.message)
|
|
9
|
+
return err.message;
|
|
10
|
+
if (typeof err === "string" && err.length > 0)
|
|
11
|
+
return err;
|
|
12
|
+
return t(fallbackKey);
|
|
13
|
+
}
|
|
14
|
+
export const BSC_GAS_READY_THRESHOLD = 0.005;
|
|
15
|
+
export const BSC_SWAP_GAS_RESERVE = 0.002;
|
|
16
|
+
export const HEX_ADDRESS_RE = /^0x[a-fA-F0-9]{40}$/;
|
|
17
|
+
export const ELIZA_BSC_TOKEN_ADDRESS = "0xc20e45e49e0e79f0fc81e71f05fd2772d6587777";
|
|
18
|
+
export const BSC_USDT_TOKEN_ADDRESS = "0x55d398326f99059fF775485246999027B3197955";
|
|
19
|
+
export const BSC_USDC_TOKEN_ADDRESS = "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d";
|
|
20
|
+
export const BSC_NATIVE_LOGO_URL = "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/smartchain/info/logo.png";
|
|
21
|
+
export const SOL_NATIVE_LOGO_URL = "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/solana/info/logo.png";
|
|
22
|
+
export const AVAX_NATIVE_LOGO_URL = "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/info/logo.png";
|
|
23
|
+
export const WALLET_RECENT_TRADES_KEY = "anime_wallet_recent_trades";
|
|
24
|
+
export const MAX_WALLET_RECENT_TRADES = 10;
|
|
25
|
+
export function isBscChainName(chain) {
|
|
26
|
+
const normalized = chain.trim().toLowerCase();
|
|
27
|
+
return (normalized === "bsc" ||
|
|
28
|
+
normalized === "bnb chain" ||
|
|
29
|
+
normalized === "bnb smart chain");
|
|
30
|
+
}
|
|
31
|
+
export function isAvaxChainName(chain) {
|
|
32
|
+
const normalized = chain.trim().toLowerCase();
|
|
33
|
+
return (normalized === "avax" ||
|
|
34
|
+
normalized === "avalanche" ||
|
|
35
|
+
normalized === "c-chain" ||
|
|
36
|
+
normalized === "avalanche c-chain");
|
|
37
|
+
}
|
|
38
|
+
export function resolvePortfolioChainKey(chain) {
|
|
39
|
+
const normalized = chain.trim().toLowerCase();
|
|
40
|
+
if (isBscChainName(chain))
|
|
41
|
+
return "bsc";
|
|
42
|
+
if (isAvaxChainName(chain))
|
|
43
|
+
return "avax";
|
|
44
|
+
if (normalized.includes("solana") || normalized === "sol")
|
|
45
|
+
return "solana";
|
|
46
|
+
return "evm";
|
|
47
|
+
}
|
|
48
|
+
export function formatRouteAddress(address) {
|
|
49
|
+
const trimmed = address.trim();
|
|
50
|
+
if (trimmed.length <= 14)
|
|
51
|
+
return trimmed;
|
|
52
|
+
return `${trimmed.slice(0, 6)}...${trimmed.slice(-4)}`;
|
|
53
|
+
}
|
|
54
|
+
export function getTokenExplorerUrl(row) {
|
|
55
|
+
if (!row.assetAddress)
|
|
56
|
+
return null;
|
|
57
|
+
// Delegate to the central chain config registry
|
|
58
|
+
return getExplorerTokenUrl(row.chain, row.assetAddress);
|
|
59
|
+
}
|
|
60
|
+
export function loadRecentTrades() {
|
|
61
|
+
if (typeof localStorage === "undefined")
|
|
62
|
+
return [];
|
|
63
|
+
try {
|
|
64
|
+
const raw = localStorage.getItem(WALLET_RECENT_TRADES_KEY);
|
|
65
|
+
const parsed = raw ? JSON.parse(raw) : [];
|
|
66
|
+
if (!Array.isArray(parsed))
|
|
67
|
+
return [];
|
|
68
|
+
return parsed
|
|
69
|
+
.filter((entry) => Boolean(entry) &&
|
|
70
|
+
typeof entry === "object" &&
|
|
71
|
+
typeof entry.hash === "string" &&
|
|
72
|
+
typeof entry.side === "string" &&
|
|
73
|
+
(entry.side === "buy" || entry.side === "sell") &&
|
|
74
|
+
typeof entry.createdAt === "number" &&
|
|
75
|
+
typeof entry.status === "string")
|
|
76
|
+
.slice(0, MAX_WALLET_RECENT_TRADES);
|
|
77
|
+
}
|
|
78
|
+
catch {
|
|
79
|
+
return [];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export function persistRecentTrades(rows) {
|
|
83
|
+
if (typeof localStorage === "undefined")
|
|
84
|
+
return;
|
|
85
|
+
try {
|
|
86
|
+
localStorage.setItem(WALLET_RECENT_TRADES_KEY, JSON.stringify(rows.slice(0, MAX_WALLET_RECENT_TRADES)));
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
// Ignore persistence errors so wallet actions remain usable.
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Returns a safe explorer URL, falling back to a configurable explorer
|
|
94
|
+
* (defaults to bscscan) if the provided URL does not use an https/http
|
|
95
|
+
* scheme (prevents javascript: URI injection).
|
|
96
|
+
*/
|
|
97
|
+
export function safeExplorerHref(explorerUrl, hash, fallbackBaseUrl = "https://bscscan.com") {
|
|
98
|
+
const fallback = `${fallbackBaseUrl}/tx/${hash}`;
|
|
99
|
+
if (!explorerUrl)
|
|
100
|
+
return fallback;
|
|
101
|
+
return /^https?:\/\//i.test(explorerUrl) ? explorerUrl : fallback;
|
|
102
|
+
}
|
|
103
|
+
export function shortHash(hash) {
|
|
104
|
+
const normalized = hash.trim();
|
|
105
|
+
if (normalized.length <= 14)
|
|
106
|
+
return normalized;
|
|
107
|
+
return `${normalized.slice(0, 8)}...${normalized.slice(-6)}`;
|
|
108
|
+
}
|
|
109
|
+
export function getRecentTradeGroupKey(createdAt, nowMs = Date.now()) {
|
|
110
|
+
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
111
|
+
const now = new Date(nowMs);
|
|
112
|
+
const startOfToday = new Date(now.getFullYear(), now.getMonth(), now.getDate()).getTime();
|
|
113
|
+
const startOfCreatedAt = new Date(createdAt);
|
|
114
|
+
const createdDayStart = new Date(startOfCreatedAt.getFullYear(), startOfCreatedAt.getMonth(), startOfCreatedAt.getDate()).getTime();
|
|
115
|
+
if (createdDayStart >= startOfToday)
|
|
116
|
+
return "today";
|
|
117
|
+
if (createdDayStart >= startOfToday - DAY_MS)
|
|
118
|
+
return "yesterday";
|
|
119
|
+
return "earlier";
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Fetch token metadata from DexScreener for any supported chain.
|
|
123
|
+
* Falls back to `fetchBscTokenMetadata` signature when no chainId given.
|
|
124
|
+
*/
|
|
125
|
+
export async function fetchTokenMetadata(contractAddress, dexScreenerChainId = "bsc") {
|
|
126
|
+
if (typeof fetch !== "function")
|
|
127
|
+
return null;
|
|
128
|
+
const trimmed = contractAddress.trim();
|
|
129
|
+
if (!HEX_ADDRESS_RE.test(trimmed))
|
|
130
|
+
return null;
|
|
131
|
+
const controller = new AbortController();
|
|
132
|
+
const timeout = globalThis.setTimeout(() => controller.abort(), 3500);
|
|
133
|
+
const normalized = trimmed.toLowerCase();
|
|
134
|
+
const targetChainId = dexScreenerChainId.toLowerCase();
|
|
135
|
+
try {
|
|
136
|
+
const response = await fetch(`https://api.dexscreener.com/latest/dex/tokens/${trimmed}`, {
|
|
137
|
+
signal: controller.signal,
|
|
138
|
+
});
|
|
139
|
+
if (!response.ok)
|
|
140
|
+
return null;
|
|
141
|
+
const payload = (await response.json());
|
|
142
|
+
const pairs = Array.isArray(payload.pairs) ? payload.pairs : [];
|
|
143
|
+
const pair = pairs.find((item) => (item.chainId ?? "").toLowerCase() === targetChainId);
|
|
144
|
+
if (!pair)
|
|
145
|
+
return null;
|
|
146
|
+
const baseAddr = pair.baseToken?.address?.trim().toLowerCase();
|
|
147
|
+
const quoteAddr = pair.quoteToken?.address?.trim().toLowerCase();
|
|
148
|
+
const tokenRef = baseAddr === normalized
|
|
149
|
+
? pair.baseToken
|
|
150
|
+
: quoteAddr === normalized
|
|
151
|
+
? pair.quoteToken
|
|
152
|
+
: pair.baseToken;
|
|
153
|
+
return {
|
|
154
|
+
symbol: tokenRef?.symbol?.trim() || "TOKEN",
|
|
155
|
+
name: tokenRef?.name?.trim() || "Unknown Token",
|
|
156
|
+
logoUrl: pair.info?.imageUrl?.trim() || null,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
catch {
|
|
160
|
+
return null;
|
|
161
|
+
}
|
|
162
|
+
finally {
|
|
163
|
+
clearTimeout(timeout);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/** @deprecated Use `fetchTokenMetadata(address, "bsc")` instead. */
|
|
167
|
+
export const fetchBscTokenMetadata = (contractAddress) => fetchTokenMetadata(contractAddress, "bsc");
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Style helpers and constants for the companion shell overlay.
|
|
3
|
+
*/
|
|
4
|
+
import type { Tab } from "@elizaos/app-core/navigation";
|
|
5
|
+
import type React from "react";
|
|
6
|
+
/** Only "companion" uses the companion shell. Settings, character, etc. require native (advanced) mode. */
|
|
7
|
+
export declare const COMPANION_OVERLAY_TABS: Set<Tab>;
|
|
8
|
+
export declare const ACCENT_COLORS: Record<string, string>;
|
|
9
|
+
export declare const TOP_BAR_COLORS: Record<string, string>;
|
|
10
|
+
export declare function tabFlags(tab: Tab): {
|
|
11
|
+
isSkills: boolean;
|
|
12
|
+
isSettings: boolean;
|
|
13
|
+
isPlugins: boolean;
|
|
14
|
+
isLifo: boolean;
|
|
15
|
+
isStream: boolean;
|
|
16
|
+
isWallets: boolean;
|
|
17
|
+
isApps: boolean;
|
|
18
|
+
isConnectors: boolean;
|
|
19
|
+
isKnowledge: boolean;
|
|
20
|
+
isAdvancedOverlay: boolean;
|
|
21
|
+
isPluginsLike: boolean;
|
|
22
|
+
isCentered: boolean;
|
|
23
|
+
isCharacter: boolean;
|
|
24
|
+
};
|
|
25
|
+
export type TabFlags = ReturnType<typeof tabFlags>;
|
|
26
|
+
export declare function overlayBackdropClass(f: TabFlags): "opacity-100" | "opacity-100 backdrop-blur-xl bg-black/35 pointer-events-auto" | "opacity-100 backdrop-blur-2xl bg-black/50 pointer-events-auto" | "opacity-0";
|
|
27
|
+
export declare function cardSizeClass(f: TabFlags): "w-[97vw] h-[92vh] md:w-[88vw] md:h-[80vh] max-w-[1460px] overflow-visible" | "w-[95vw] h-[95vh] max-w-[1500px] backdrop-blur-3xl border rounded-2xl overflow-hidden" | "w-[90vw] h-[90vh] max-w-5xl backdrop-blur-3xl border rounded-2xl overflow-hidden" | "w-[65vw] min-w-[700px] h-[100vh] border-l backdrop-blur-2xl";
|
|
28
|
+
export declare function cardBackground(f: TabFlags): "transparent" | "rgba(18, 22, 32, 0.92)" | "linear-gradient(to left, rgba(6, 8, 12, 0.95) 40%, rgba(6, 8, 12, 0.7) 80%, rgba(6, 8, 12, 0.2) 100%)";
|
|
29
|
+
export declare function cardBorderColor(f: TabFlags): "transparent" | "rgba(255, 255, 255, 0.08)" | "rgba(255,255,255,0.05)";
|
|
30
|
+
export declare function cardBoxShadow(f: TabFlags, _shadowFx: string): "none" | "0 8px 60px rgba(0,0,0,0.6), 0 2px 24px rgba(0,0,0,0.4)" | "-60px 0 100px -20px rgba(0,0,0,0.8)";
|
|
31
|
+
export declare function accentVar(f: TabFlags): "#ef4444" | "#f0b232" | "#7b8fb5" | "#10b981" | "#a78bfa" | "#f0b90b" | "#8b5cf6";
|
|
32
|
+
export declare function accentSubtleVar(f: TabFlags): "rgba(123, 143, 181, 0.12)" | "rgba(16, 185, 129, 0.12)" | "rgba(240, 178, 50, 0.12)" | "rgba(167, 139, 250, 0.12)" | "rgba(240, 185, 11, 0.12)" | "rgba(139, 92, 246, 0.12)" | "rgba(239, 68, 68, 0.12)";
|
|
33
|
+
export declare function accentRgbVar(f: TabFlags): "240, 178, 50" | "16, 185, 129" | "167, 139, 250" | "240, 185, 11" | "139, 92, 246" | "239, 68, 68" | "123, 143, 181";
|
|
34
|
+
export declare function accentForegroundVar(f: TabFlags): "#1a1f26" | "#ffffff";
|
|
35
|
+
export declare function viewWrapperOverflow(f: TabFlags): "overflow-visible" | "overflow-hidden" | "overflow-y-auto";
|
|
36
|
+
export declare function viewWrapperPadding(f: TabFlags): "p-0" | "px-8 py-8" | "px-16 pt-32 pb-16";
|
|
37
|
+
export declare function viewWrapperStyle(f: TabFlags, accentColor: string): React.CSSProperties;
|
|
38
|
+
//# sourceMappingURL=companion-shell-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion-shell-styles.d.ts","sourceRoot":"","sources":["../../src/components/companion-shell-styles.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,2GAA2G;AAC3G,eAAO,MAAM,sBAAsB,UAA8B,CAAC;AAIlE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAShD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CASjD,CAAC;AAIF,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG;;;;;;;;;;;;;;EAiDhC;AAED,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAInD,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,QAAQ,kKAe/C;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,QAAQ,8TAQxC;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,QAAQ,sJAWzC;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,QAAQ,0EAW1C;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6GAW3D;AAID,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,qFAQpC;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,QAAQ,6MAQ1C;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,QAAQ,yHAQvC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,QAAQ,yBAG9C;AAID,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,QAAQ,8DAW9C;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,6CAa7C;AAED,wBAAgB,gBAAgB,CAC9B,CAAC,EAAE,QAAQ,EACX,WAAW,EAAE,MAAM,GAClB,KAAK,CAAC,aAAa,CAwCrB"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Style helpers and constants for the companion shell overlay.
|
|
3
|
+
*/
|
|
4
|
+
/* ── Overlay tab set ───────────────────────────────────────────────── */
|
|
5
|
+
/** Only "companion" uses the companion shell. Settings, character, etc. require native (advanced) mode. */
|
|
6
|
+
export const COMPANION_OVERLAY_TABS = new Set(["companion"]);
|
|
7
|
+
/* ── Per-tab accent / color config ─────────────────────────────────── */
|
|
8
|
+
export const ACCENT_COLORS = {
|
|
9
|
+
skills: "#f0b232",
|
|
10
|
+
apps: "#10b981",
|
|
11
|
+
plugins: "#f0b232",
|
|
12
|
+
connectors: "#f0b232",
|
|
13
|
+
knowledge: "#a78bfa",
|
|
14
|
+
wallets: "#f0b90b",
|
|
15
|
+
stream: "#ef4444",
|
|
16
|
+
lifo: "#8b5cf6",
|
|
17
|
+
};
|
|
18
|
+
export const TOP_BAR_COLORS = {
|
|
19
|
+
skills: "#f0b232",
|
|
20
|
+
wallets: "rgba(240, 185, 11, 0.7)",
|
|
21
|
+
lifo: "rgba(139, 92, 246, 0.7)",
|
|
22
|
+
stream: "rgba(239, 68, 68, 0.7)",
|
|
23
|
+
plugins: "#f0b232",
|
|
24
|
+
connectors: "#f0b232",
|
|
25
|
+
apps: "rgba(16, 185, 129, 0.7)",
|
|
26
|
+
knowledge: "rgba(167, 139, 250, 0.7)",
|
|
27
|
+
};
|
|
28
|
+
/* ── Tab flags ─────────────────────────────────────────────────────── */
|
|
29
|
+
export function tabFlags(tab) {
|
|
30
|
+
const isSkills = tab === "skills";
|
|
31
|
+
const isSettings = tab === "settings" || tab === "triggers";
|
|
32
|
+
const isPlugins = tab === "plugins";
|
|
33
|
+
const isLifo = tab === "lifo";
|
|
34
|
+
const isStream = tab === "stream";
|
|
35
|
+
const isWallets = tab === "wallets";
|
|
36
|
+
const isApps = tab === "apps";
|
|
37
|
+
const isConnectors = tab === "connectors";
|
|
38
|
+
const isKnowledge = tab === "knowledge";
|
|
39
|
+
const isAdvancedOverlay = tab === "advanced" ||
|
|
40
|
+
tab === "actions" ||
|
|
41
|
+
tab === "fine-tuning" ||
|
|
42
|
+
tab === "trajectories" ||
|
|
43
|
+
tab === "runtime" ||
|
|
44
|
+
tab === "database" ||
|
|
45
|
+
tab === "logs" ||
|
|
46
|
+
tab === "security" ||
|
|
47
|
+
isLifo;
|
|
48
|
+
const isPluginsLike = isPlugins || isConnectors || isSkills;
|
|
49
|
+
const isCentered = isSkills ||
|
|
50
|
+
isSettings ||
|
|
51
|
+
isPlugins ||
|
|
52
|
+
isAdvancedOverlay ||
|
|
53
|
+
isApps ||
|
|
54
|
+
isConnectors ||
|
|
55
|
+
isKnowledge ||
|
|
56
|
+
isLifo ||
|
|
57
|
+
isStream ||
|
|
58
|
+
isWallets;
|
|
59
|
+
const isCharacter = tab === "character" || tab === "character-select";
|
|
60
|
+
return {
|
|
61
|
+
isSkills,
|
|
62
|
+
isSettings,
|
|
63
|
+
isPlugins,
|
|
64
|
+
isLifo,
|
|
65
|
+
isStream,
|
|
66
|
+
isWallets,
|
|
67
|
+
isApps,
|
|
68
|
+
isConnectors,
|
|
69
|
+
isKnowledge,
|
|
70
|
+
isAdvancedOverlay,
|
|
71
|
+
isPluginsLike,
|
|
72
|
+
isCentered,
|
|
73
|
+
isCharacter,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/* ── Layout helpers ────────────────────────────────────────────────── */
|
|
77
|
+
export function overlayBackdropClass(f) {
|
|
78
|
+
if (f.isPluginsLike)
|
|
79
|
+
return "opacity-100 backdrop-blur-xl bg-black/35 pointer-events-auto";
|
|
80
|
+
if (f.isSettings ||
|
|
81
|
+
f.isAdvancedOverlay ||
|
|
82
|
+
f.isApps ||
|
|
83
|
+
f.isKnowledge ||
|
|
84
|
+
f.isLifo ||
|
|
85
|
+
f.isStream ||
|
|
86
|
+
f.isWallets)
|
|
87
|
+
return "opacity-100 backdrop-blur-2xl bg-black/50 pointer-events-auto";
|
|
88
|
+
if (f.isCharacter)
|
|
89
|
+
return "opacity-100";
|
|
90
|
+
return "opacity-0";
|
|
91
|
+
}
|
|
92
|
+
export function cardSizeClass(f) {
|
|
93
|
+
if (f.isPluginsLike)
|
|
94
|
+
return "w-[97vw] h-[92vh] md:w-[88vw] md:h-[80vh] max-w-[1460px] overflow-visible";
|
|
95
|
+
if (f.isAdvancedOverlay)
|
|
96
|
+
return "w-[95vw] h-[95vh] max-w-[1500px] backdrop-blur-3xl border rounded-2xl overflow-hidden";
|
|
97
|
+
if (f.isSettings || f.isApps || f.isKnowledge || f.isWallets)
|
|
98
|
+
return "w-[90vw] h-[90vh] max-w-5xl backdrop-blur-3xl border rounded-2xl overflow-hidden";
|
|
99
|
+
return "w-[65vw] min-w-[700px] h-[100vh] border-l backdrop-blur-2xl";
|
|
100
|
+
}
|
|
101
|
+
export function cardBackground(f) {
|
|
102
|
+
if (f.isPluginsLike)
|
|
103
|
+
return "transparent";
|
|
104
|
+
if (f.isSettings ||
|
|
105
|
+
f.isAdvancedOverlay ||
|
|
106
|
+
f.isApps ||
|
|
107
|
+
f.isKnowledge ||
|
|
108
|
+
f.isWallets)
|
|
109
|
+
return "rgba(18, 22, 32, 0.92)";
|
|
110
|
+
return "linear-gradient(to left, rgba(6, 8, 12, 0.95) 40%, rgba(6, 8, 12, 0.7) 80%, rgba(6, 8, 12, 0.2) 100%)";
|
|
111
|
+
}
|
|
112
|
+
export function cardBorderColor(f) {
|
|
113
|
+
if (f.isPluginsLike)
|
|
114
|
+
return "transparent";
|
|
115
|
+
if (f.isSettings ||
|
|
116
|
+
f.isAdvancedOverlay ||
|
|
117
|
+
f.isApps ||
|
|
118
|
+
f.isKnowledge ||
|
|
119
|
+
f.isWallets)
|
|
120
|
+
return "rgba(255, 255, 255, 0.08)";
|
|
121
|
+
return "rgba(255,255,255,0.05)";
|
|
122
|
+
}
|
|
123
|
+
export function cardBoxShadow(f, _shadowFx) {
|
|
124
|
+
if (f.isPluginsLike)
|
|
125
|
+
return "none";
|
|
126
|
+
if (f.isSettings ||
|
|
127
|
+
f.isAdvancedOverlay ||
|
|
128
|
+
f.isApps ||
|
|
129
|
+
f.isKnowledge ||
|
|
130
|
+
f.isWallets)
|
|
131
|
+
return "0 8px 60px rgba(0,0,0,0.6), 0 2px 24px rgba(0,0,0,0.4)";
|
|
132
|
+
return "-60px 0 100px -20px rgba(0,0,0,0.8)";
|
|
133
|
+
}
|
|
134
|
+
/* ── Accent color helpers ──────────────────────────────────────────── */
|
|
135
|
+
export function accentVar(f) {
|
|
136
|
+
if (f.isPluginsLike)
|
|
137
|
+
return "#f0b232";
|
|
138
|
+
if (f.isApps)
|
|
139
|
+
return "#10b981";
|
|
140
|
+
if (f.isKnowledge)
|
|
141
|
+
return "#a78bfa";
|
|
142
|
+
if (f.isWallets)
|
|
143
|
+
return "#f0b90b";
|
|
144
|
+
if (f.isLifo)
|
|
145
|
+
return "#8b5cf6";
|
|
146
|
+
if (f.isStream)
|
|
147
|
+
return "#ef4444";
|
|
148
|
+
return "#7b8fb5";
|
|
149
|
+
}
|
|
150
|
+
export function accentSubtleVar(f) {
|
|
151
|
+
if (f.isPluginsLike)
|
|
152
|
+
return "rgba(240, 178, 50, 0.12)";
|
|
153
|
+
if (f.isApps)
|
|
154
|
+
return "rgba(16, 185, 129, 0.12)";
|
|
155
|
+
if (f.isKnowledge)
|
|
156
|
+
return "rgba(167, 139, 250, 0.12)";
|
|
157
|
+
if (f.isWallets)
|
|
158
|
+
return "rgba(240, 185, 11, 0.12)";
|
|
159
|
+
if (f.isLifo)
|
|
160
|
+
return "rgba(139, 92, 246, 0.12)";
|
|
161
|
+
if (f.isStream)
|
|
162
|
+
return "rgba(239, 68, 68, 0.12)";
|
|
163
|
+
return "rgba(123, 143, 181, 0.12)";
|
|
164
|
+
}
|
|
165
|
+
export function accentRgbVar(f) {
|
|
166
|
+
if (f.isPluginsLike)
|
|
167
|
+
return "240, 178, 50";
|
|
168
|
+
if (f.isApps)
|
|
169
|
+
return "16, 185, 129";
|
|
170
|
+
if (f.isKnowledge)
|
|
171
|
+
return "167, 139, 250";
|
|
172
|
+
if (f.isWallets)
|
|
173
|
+
return "240, 185, 11";
|
|
174
|
+
if (f.isLifo)
|
|
175
|
+
return "139, 92, 246";
|
|
176
|
+
if (f.isStream)
|
|
177
|
+
return "239, 68, 68";
|
|
178
|
+
return "123, 143, 181";
|
|
179
|
+
}
|
|
180
|
+
export function accentForegroundVar(f) {
|
|
181
|
+
if (f.isPluginsLike || f.isWallets)
|
|
182
|
+
return "#1a1f26";
|
|
183
|
+
return "#ffffff";
|
|
184
|
+
}
|
|
185
|
+
/* ── View wrapper helpers ──────────────────────────────────────────── */
|
|
186
|
+
export function viewWrapperOverflow(f) {
|
|
187
|
+
if (f.isPluginsLike)
|
|
188
|
+
return "overflow-visible";
|
|
189
|
+
if (f.isSettings ||
|
|
190
|
+
f.isAdvancedOverlay ||
|
|
191
|
+
f.isApps ||
|
|
192
|
+
f.isConnectors ||
|
|
193
|
+
f.isWallets)
|
|
194
|
+
return "overflow-hidden";
|
|
195
|
+
return "overflow-y-auto";
|
|
196
|
+
}
|
|
197
|
+
export function viewWrapperPadding(f) {
|
|
198
|
+
// Skills now uses isPluginsLike path (p-0)
|
|
199
|
+
if (f.isSettings ||
|
|
200
|
+
f.isAdvancedOverlay ||
|
|
201
|
+
f.isApps ||
|
|
202
|
+
f.isConnectors ||
|
|
203
|
+
f.isPlugins ||
|
|
204
|
+
f.isWallets)
|
|
205
|
+
return "p-0";
|
|
206
|
+
if (f.isKnowledge)
|
|
207
|
+
return "px-8 py-8";
|
|
208
|
+
return "px-16 pt-32 pb-16";
|
|
209
|
+
}
|
|
210
|
+
export function viewWrapperStyle(f, accentColor) {
|
|
211
|
+
if (f.isSettings ||
|
|
212
|
+
f.isPlugins ||
|
|
213
|
+
f.isSkills ||
|
|
214
|
+
f.isAdvancedOverlay ||
|
|
215
|
+
f.isApps ||
|
|
216
|
+
f.isConnectors ||
|
|
217
|
+
f.isKnowledge ||
|
|
218
|
+
f.isWallets) {
|
|
219
|
+
return {
|
|
220
|
+
"--bg": "transparent",
|
|
221
|
+
"--card": "rgba(255, 255, 255, 0.05)",
|
|
222
|
+
"--border": "rgba(255, 255, 255, 0.08)",
|
|
223
|
+
"--accent": accentVar(f),
|
|
224
|
+
"--accent-foreground": accentForegroundVar(f),
|
|
225
|
+
"--accent-subtle": accentSubtleVar(f),
|
|
226
|
+
"--accent-rgb": accentRgbVar(f),
|
|
227
|
+
"--muted": "rgba(255, 255, 255, 0.45)",
|
|
228
|
+
"--txt": "rgba(240, 238, 250, 0.92)",
|
|
229
|
+
"--text": "rgba(240, 238, 250, 0.92)",
|
|
230
|
+
"--danger": "#ef4444",
|
|
231
|
+
"--ok": "#22c55e",
|
|
232
|
+
"--warning": "#f59e0b",
|
|
233
|
+
"--surface": "rgba(255, 255, 255, 0.06)",
|
|
234
|
+
"--bg-hover": "rgba(255, 255, 255, 0.04)",
|
|
235
|
+
"--bg-muted": "rgba(255, 255, 255, 0.03)",
|
|
236
|
+
"--border-hover": "rgba(255, 255, 255, 0.15)",
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
return {
|
|
240
|
+
"--bg": "transparent",
|
|
241
|
+
"--card": "rgba(255, 255, 255, 0.05)",
|
|
242
|
+
"--border": f.isSkills ? "rgba(0,225,255,0.3)" : "rgba(255,255,255,0.08)",
|
|
243
|
+
"--accent": accentColor,
|
|
244
|
+
"--accent-foreground": accentForegroundVar(f),
|
|
245
|
+
"--muted": "rgba(255, 255, 255, 0.55)",
|
|
246
|
+
"--txt": "#ffffff",
|
|
247
|
+
};
|
|
248
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type ConfirmDeleteControlProps = {
|
|
2
|
+
onConfirm: () => void;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
triggerLabel?: string;
|
|
5
|
+
confirmLabel?: string;
|
|
6
|
+
cancelLabel?: string;
|
|
7
|
+
busyLabel?: string;
|
|
8
|
+
promptText?: string;
|
|
9
|
+
triggerClassName: string;
|
|
10
|
+
confirmClassName: string;
|
|
11
|
+
cancelClassName: string;
|
|
12
|
+
promptClassName?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function ConfirmDeleteControl({ onConfirm, disabled, triggerLabel, confirmLabel, cancelLabel, busyLabel, promptText, triggerClassName, confirmClassName, cancelClassName, promptClassName, }: ConfirmDeleteControlProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=confirm-delete-control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm-delete-control.d.ts","sourceRoot":"","sources":["../../src/components/confirm-delete-control.tsx"],"names":[],"mappings":"AAEA,KAAK,yBAAyB,GAAG;IAC/B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,QAAgB,EAChB,YAAuB,EACvB,YAAwB,EACxB,WAAsB,EACtB,SAAS,EACT,UAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,eAAmD,GACpD,EAAE,yBAAyB,2CAwC3B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
export function ConfirmDeleteControl({ onConfirm, disabled = false, triggerLabel = "Delete", confirmLabel = "Confirm", cancelLabel = "Cancel", busyLabel, promptText = "Delete?", triggerClassName, confirmClassName, cancelClassName, promptClassName = "text-[11px] text-[#e74c3c] ml-1", }) {
|
|
4
|
+
const [confirming, setConfirming] = useState(false);
|
|
5
|
+
if (!confirming) {
|
|
6
|
+
return (_jsx("button", { type: "button", className: triggerClassName, onClick: () => setConfirming(true), disabled: disabled, children: triggerLabel }));
|
|
7
|
+
}
|
|
8
|
+
return (_jsxs(_Fragment, { children: [_jsx("span", { className: promptClassName, children: promptText }), _jsx("button", { type: "button", className: confirmClassName, onClick: () => {
|
|
9
|
+
onConfirm();
|
|
10
|
+
setConfirming(false);
|
|
11
|
+
}, disabled: disabled, children: disabled && busyLabel ? busyLabel : confirmLabel }), _jsx("button", { type: "button", className: cancelClassName, onClick: () => setConfirming(false), disabled: disabled, children: cancelLabel })] }));
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
interface ConversationListItemProps {
|
|
3
|
+
conv: {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
};
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
isEditing: boolean;
|
|
10
|
+
isUnread: boolean;
|
|
11
|
+
isGameModal: boolean;
|
|
12
|
+
editingTitle: string;
|
|
13
|
+
confirmDeleteId: string | null;
|
|
14
|
+
deletingId: string | null;
|
|
15
|
+
inputRef: React.RefObject<HTMLInputElement | null>;
|
|
16
|
+
t: (key: string, vars?: Record<string, string | number | boolean | null | undefined>) => string;
|
|
17
|
+
mobile: boolean;
|
|
18
|
+
onSelect: (id: string) => void;
|
|
19
|
+
onEditingTitleChange: (value: string) => void;
|
|
20
|
+
onEditSubmit: (id: string) => void;
|
|
21
|
+
onEditKeyDown: (e: React.KeyboardEvent<HTMLInputElement>, id: string) => void;
|
|
22
|
+
onConfirmDelete: (id: string) => void;
|
|
23
|
+
onCancelDelete: () => void;
|
|
24
|
+
onOpenActions: (event: React.MouseEvent<HTMLButtonElement | HTMLDivElement> | React.TouchEvent<HTMLButtonElement | HTMLDivElement>, conv: {
|
|
25
|
+
id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
}) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare function ConversationListItem({ conv, isActive, isEditing, isUnread, isGameModal, editingTitle, confirmDeleteId, deletingId, inputRef, t, mobile, onSelect, onEditingTitleChange, onEditSubmit, onEditKeyDown, onConfirmDelete, onCancelDelete, onOpenActions, }: ConversationListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=ConversationListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationListItem.d.ts","sourceRoot":"","sources":["../../../src/components/conversations/ConversationListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,yBAAyB;IACjC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IACvD,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACnD,CAAC,EAAE,CACD,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,KAChE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9E,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,CACb,KAAK,EACD,KAAK,CAAC,UAAU,CAAC,iBAAiB,GAAG,cAAc,CAAC,GACpD,KAAK,CAAC,UAAU,CAAC,iBAAiB,GAAG,cAAc,CAAC,EACxD,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAChC,IAAI,CAAC;CACX;AAED,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,eAAe,EACf,UAAU,EACV,QAAQ,EACR,CAAC,EACD,MAAM,EACN,QAAQ,EACR,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,cAAc,EACd,aAAa,GACd,EAAE,yBAAyB,2CAmI3B"}
|