@elizaos/app-core 2.0.0-alpha.37
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/.turbo/turbo-build.log +2 -0
- package/LICENSE +21 -0
- package/dist/App.d.ts +5 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/App.js +198 -0
- package/dist/actions/character.d.ts +27 -0
- package/dist/actions/character.d.ts.map +1 -0
- package/dist/actions/character.js +97 -0
- package/dist/actions/chat-helpers.d.ts +47 -0
- package/dist/actions/chat-helpers.d.ts.map +1 -0
- package/dist/actions/chat-helpers.js +79 -0
- package/dist/actions/cloud.d.ts +17 -0
- package/dist/actions/cloud.d.ts.map +1 -0
- package/dist/actions/cloud.js +43 -0
- package/dist/actions/index.d.ts +12 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +11 -0
- package/dist/actions/lifecycle.d.ts +43 -0
- package/dist/actions/lifecycle.d.ts.map +1 -0
- package/dist/actions/lifecycle.js +118 -0
- package/dist/actions/onboarding.d.ts +12 -0
- package/dist/actions/onboarding.d.ts.map +1 -0
- package/dist/actions/onboarding.js +28 -0
- package/dist/actions/triggers.d.ts +23 -0
- package/dist/actions/triggers.d.ts.map +1 -0
- package/dist/actions/triggers.js +148 -0
- package/dist/api/client.d.ts +2823 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +2392 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +1 -0
- package/dist/autonomy/index.d.ts +48 -0
- package/dist/autonomy/index.d.ts.map +1 -0
- package/dist/autonomy/index.js +330 -0
- package/dist/bridge/capacitor-bridge.d.ts +153 -0
- package/dist/bridge/capacitor-bridge.d.ts.map +1 -0
- package/dist/bridge/capacitor-bridge.js +193 -0
- package/dist/bridge/electrobun-rpc.d.ts +19 -0
- package/dist/bridge/electrobun-rpc.d.ts.map +1 -0
- package/dist/bridge/electrobun-rpc.js +27 -0
- package/dist/bridge/electrobun-runtime.d.ts +3 -0
- package/dist/bridge/electrobun-runtime.d.ts.map +1 -0
- package/dist/bridge/electrobun-runtime.js +17 -0
- package/dist/bridge/index.d.ts +6 -0
- package/dist/bridge/index.d.ts.map +1 -0
- package/dist/bridge/index.js +5 -0
- package/dist/bridge/native-plugins.d.ts +82 -0
- package/dist/bridge/native-plugins.d.ts.map +1 -0
- package/dist/bridge/native-plugins.js +39 -0
- package/dist/bridge/plugin-bridge.d.ts +116 -0
- package/dist/bridge/plugin-bridge.d.ts.map +1 -0
- package/dist/bridge/plugin-bridge.js +203 -0
- package/dist/bridge/storage-bridge.d.ts +39 -0
- package/dist/bridge/storage-bridge.d.ts.map +1 -0
- package/dist/bridge/storage-bridge.js +135 -0
- package/dist/chat/index.d.ts +57 -0
- package/dist/chat/index.d.ts.map +1 -0
- package/dist/chat/index.js +161 -0
- package/dist/coding/index.d.ts +25 -0
- package/dist/coding/index.d.ts.map +1 -0
- package/dist/coding/index.js +25 -0
- package/dist/components/AdvancedPageView.d.ts +17 -0
- package/dist/components/AdvancedPageView.d.ts.map +1 -0
- package/dist/components/AdvancedPageView.js +137 -0
- package/dist/components/AgentActivityBox.d.ts +7 -0
- package/dist/components/AgentActivityBox.d.ts.map +1 -0
- package/dist/components/AgentActivityBox.js +25 -0
- package/dist/components/ApiKeyConfig.d.ts +26 -0
- package/dist/components/ApiKeyConfig.d.ts.map +1 -0
- package/dist/components/ApiKeyConfig.js +121 -0
- package/dist/components/AppsPageView.d.ts +7 -0
- package/dist/components/AppsPageView.d.ts.map +1 -0
- package/dist/components/AppsPageView.js +31 -0
- package/dist/components/AppsView.d.ts +8 -0
- package/dist/components/AppsView.d.ts.map +1 -0
- package/dist/components/AppsView.js +149 -0
- package/dist/components/AvatarLoader.d.ts +9 -0
- package/dist/components/AvatarLoader.d.ts.map +1 -0
- package/dist/components/AvatarLoader.js +45 -0
- package/dist/components/AvatarSelector.d.ts +23 -0
- package/dist/components/AvatarSelector.d.ts.map +1 -0
- package/dist/components/AvatarSelector.js +105 -0
- package/dist/components/BscTradePanel.d.ts +22 -0
- package/dist/components/BscTradePanel.d.ts.map +1 -0
- package/dist/components/BscTradePanel.js +221 -0
- package/dist/components/BugReportModal.d.ts +2 -0
- package/dist/components/BugReportModal.d.ts.map +1 -0
- package/dist/components/BugReportModal.js +218 -0
- package/dist/components/CharacterView.d.ts +8 -0
- package/dist/components/CharacterView.d.ts.map +1 -0
- package/dist/components/CharacterView.js +703 -0
- package/dist/components/ChatAvatar.d.ts +8 -0
- package/dist/components/ChatAvatar.d.ts.map +1 -0
- package/dist/components/ChatAvatar.js +89 -0
- package/dist/components/ChatComposer.d.ts +37 -0
- package/dist/components/ChatComposer.d.ts.map +1 -0
- package/dist/components/ChatComposer.js +136 -0
- package/dist/components/ChatMessage.d.ts +24 -0
- package/dist/components/ChatMessage.d.ts.map +1 -0
- package/dist/components/ChatMessage.js +167 -0
- package/dist/components/ChatModalView.d.ts +10 -0
- package/dist/components/ChatModalView.d.ts.map +1 -0
- package/dist/components/ChatModalView.js +57 -0
- package/dist/components/ChatView.d.ts +14 -0
- package/dist/components/ChatView.d.ts.map +1 -0
- package/dist/components/ChatView.js +511 -0
- package/dist/components/CloudSourceControls.d.ts +13 -0
- package/dist/components/CloudSourceControls.d.ts.map +1 -0
- package/dist/components/CloudSourceControls.js +14 -0
- package/dist/components/CodingAgentSettingsSection.d.ts +2 -0
- package/dist/components/CodingAgentSettingsSection.d.ts.map +1 -0
- package/dist/components/CodingAgentSettingsSection.js +268 -0
- package/dist/components/CommandPalette.d.ts +2 -0
- package/dist/components/CommandPalette.d.ts.map +1 -0
- package/dist/components/CommandPalette.js +181 -0
- package/dist/components/CompanionSceneHost.d.ts +15 -0
- package/dist/components/CompanionSceneHost.d.ts.map +1 -0
- package/dist/components/CompanionSceneHost.js +343 -0
- package/dist/components/CompanionShell.d.ts +17 -0
- package/dist/components/CompanionShell.d.ts.map +1 -0
- package/dist/components/CompanionShell.js +15 -0
- package/dist/components/CompanionView.d.ts +2 -0
- package/dist/components/CompanionView.d.ts.map +1 -0
- package/dist/components/CompanionView.js +22 -0
- package/dist/components/ConfigPageView.d.ts +11 -0
- package/dist/components/ConfigPageView.d.ts.map +1 -0
- package/dist/components/ConfigPageView.js +275 -0
- package/dist/components/ConfigSaveFooter.d.ts +8 -0
- package/dist/components/ConfigSaveFooter.d.ts.map +1 -0
- package/dist/components/ConfigSaveFooter.js +10 -0
- package/dist/components/ConfirmModal.d.ts +61 -0
- package/dist/components/ConfirmModal.d.ts.map +1 -0
- package/dist/components/ConfirmModal.js +164 -0
- package/dist/components/ConnectionFailedBanner.d.ts +6 -0
- package/dist/components/ConnectionFailedBanner.d.ts.map +1 -0
- package/dist/components/ConnectionFailedBanner.js +22 -0
- package/dist/components/ConnectorsPageView.d.ts +7 -0
- package/dist/components/ConnectorsPageView.d.ts.map +1 -0
- package/dist/components/ConnectorsPageView.js +8 -0
- package/dist/components/ConversationsSidebar.d.ts +9 -0
- package/dist/components/ConversationsSidebar.d.ts.map +1 -0
- package/dist/components/ConversationsSidebar.js +116 -0
- package/dist/components/CustomActionEditor.d.ts +10 -0
- package/dist/components/CustomActionEditor.d.ts.map +1 -0
- package/dist/components/CustomActionEditor.js +578 -0
- package/dist/components/CustomActionsPanel.d.ts +9 -0
- package/dist/components/CustomActionsPanel.d.ts.map +1 -0
- package/dist/components/CustomActionsPanel.js +107 -0
- package/dist/components/CustomActionsView.d.ts +2 -0
- package/dist/components/CustomActionsView.d.ts.map +1 -0
- package/dist/components/CustomActionsView.js +134 -0
- package/dist/components/DatabasePageView.d.ts +5 -0
- package/dist/components/DatabasePageView.d.ts.map +1 -0
- package/dist/components/DatabasePageView.js +28 -0
- package/dist/components/DatabaseView.d.ts +9 -0
- package/dist/components/DatabaseView.d.ts.map +1 -0
- package/dist/components/DatabaseView.js +311 -0
- package/dist/components/ElizaCloudDashboard.d.ts +2 -0
- package/dist/components/ElizaCloudDashboard.d.ts.map +1 -0
- package/dist/components/ElizaCloudDashboard.js +657 -0
- package/dist/components/EmotePicker.d.ts +2 -0
- package/dist/components/EmotePicker.d.ts.map +1 -0
- package/dist/components/EmotePicker.js +343 -0
- package/dist/components/ErrorBoundary.d.ts +22 -0
- package/dist/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ErrorBoundary.js +31 -0
- package/dist/components/FineTuningView.d.ts +2 -0
- package/dist/components/FineTuningView.d.ts.map +1 -0
- package/dist/components/FineTuningView.js +433 -0
- package/dist/components/GameView.d.ts +11 -0
- package/dist/components/GameView.d.ts.map +1 -0
- package/dist/components/GameView.js +295 -0
- package/dist/components/GameViewOverlay.d.ts +8 -0
- package/dist/components/GameViewOverlay.d.ts.map +1 -0
- package/dist/components/GameViewOverlay.js +70 -0
- package/dist/components/GlobalEmoteOverlay.d.ts +2 -0
- package/dist/components/GlobalEmoteOverlay.d.ts.map +1 -0
- package/dist/components/GlobalEmoteOverlay.js +112 -0
- package/dist/components/Header.d.ts +8 -0
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/Header.js +121 -0
- package/dist/components/HeartbeatsView.d.ts +2 -0
- package/dist/components/HeartbeatsView.d.ts.map +1 -0
- package/dist/components/HeartbeatsView.js +378 -0
- package/dist/components/InventoryView.d.ts +10 -0
- package/dist/components/InventoryView.d.ts.map +1 -0
- package/dist/components/InventoryView.js +162 -0
- package/dist/components/KnowledgeView.d.ts +20 -0
- package/dist/components/KnowledgeView.d.ts.map +1 -0
- package/dist/components/KnowledgeView.js +480 -0
- package/dist/components/LanguageDropdown.d.ts +30 -0
- package/dist/components/LanguageDropdown.d.ts.map +1 -0
- package/dist/components/LanguageDropdown.js +98 -0
- package/dist/components/LifoMonitorPanel.d.ts +21 -0
- package/dist/components/LifoMonitorPanel.d.ts.map +1 -0
- package/dist/components/LifoMonitorPanel.js +24 -0
- package/dist/components/LifoSandboxView.d.ts +5 -0
- package/dist/components/LifoSandboxView.d.ts.map +1 -0
- package/dist/components/LifoSandboxView.js +333 -0
- package/dist/components/LoadingScreen.d.ts +13 -0
- package/dist/components/LoadingScreen.d.ts.map +1 -0
- package/dist/components/LoadingScreen.js +39 -0
- package/dist/components/LogsPageView.d.ts +2 -0
- package/dist/components/LogsPageView.d.ts.map +1 -0
- package/dist/components/LogsPageView.js +7 -0
- package/dist/components/LogsView.d.ts +5 -0
- package/dist/components/LogsView.d.ts.map +1 -0
- package/dist/components/LogsView.js +71 -0
- package/dist/components/MediaGalleryView.d.ts +9 -0
- package/dist/components/MediaGalleryView.d.ts.map +1 -0
- package/dist/components/MediaGalleryView.js +236 -0
- package/dist/components/MediaSettingsSection.d.ts +11 -0
- package/dist/components/MediaSettingsSection.d.ts.map +1 -0
- package/dist/components/MediaSettingsSection.js +329 -0
- package/dist/components/MessageContent.d.ts +51 -0
- package/dist/components/MessageContent.d.ts.map +1 -0
- package/dist/components/MessageContent.js +553 -0
- package/dist/components/OnboardingWizard.d.ts +2 -0
- package/dist/components/OnboardingWizard.d.ts.map +1 -0
- package/dist/components/OnboardingWizard.js +59 -0
- package/dist/components/PairingView.d.ts +5 -0
- package/dist/components/PairingView.d.ts.map +1 -0
- package/dist/components/PairingView.js +28 -0
- package/dist/components/PermissionsSection.d.ts +20 -0
- package/dist/components/PermissionsSection.d.ts.map +1 -0
- package/dist/components/PermissionsSection.js +368 -0
- package/dist/components/PluginsPageView.d.ts +5 -0
- package/dist/components/PluginsPageView.d.ts.map +1 -0
- package/dist/components/PluginsPageView.js +8 -0
- package/dist/components/PluginsView.d.ts +21 -0
- package/dist/components/PluginsView.d.ts.map +1 -0
- package/dist/components/PluginsView.js +1531 -0
- package/dist/components/ProviderSwitcher.d.ts +42 -0
- package/dist/components/ProviderSwitcher.d.ts.map +1 -0
- package/dist/components/ProviderSwitcher.js +480 -0
- package/dist/components/RestartBanner.d.ts +2 -0
- package/dist/components/RestartBanner.d.ts.map +1 -0
- package/dist/components/RestartBanner.js +36 -0
- package/dist/components/RuntimeView.d.ts +10 -0
- package/dist/components/RuntimeView.d.ts.map +1 -0
- package/dist/components/RuntimeView.js +165 -0
- package/dist/components/SaveCommandModal.d.ts +12 -0
- package/dist/components/SaveCommandModal.d.ts.map +1 -0
- package/dist/components/SaveCommandModal.js +84 -0
- package/dist/components/SecretsView.d.ts +9 -0
- package/dist/components/SecretsView.d.ts.map +1 -0
- package/dist/components/SecretsView.js +249 -0
- package/dist/components/SettingsView.d.ts +9 -0
- package/dist/components/SettingsView.d.ts.map +1 -0
- package/dist/components/SettingsView.js +230 -0
- package/dist/components/ShellOverlays.d.ts +8 -0
- package/dist/components/ShellOverlays.d.ts.map +1 -0
- package/dist/components/ShellOverlays.js +10 -0
- package/dist/components/ShortcutsOverlay.d.ts +2 -0
- package/dist/components/ShortcutsOverlay.d.ts.map +1 -0
- package/dist/components/ShortcutsOverlay.js +79 -0
- package/dist/components/SkillsView.d.ts +11 -0
- package/dist/components/SkillsView.d.ts.map +1 -0
- package/dist/components/SkillsView.js +358 -0
- package/dist/components/StartupFailureView.d.ts +8 -0
- package/dist/components/StartupFailureView.d.ts.map +1 -0
- package/dist/components/StartupFailureView.js +15 -0
- package/dist/components/StreamView.d.ts +16 -0
- package/dist/components/StreamView.d.ts.map +1 -0
- package/dist/components/StreamView.js +300 -0
- package/dist/components/StripeEmbeddedCheckout.d.ts +24 -0
- package/dist/components/StripeEmbeddedCheckout.d.ts.map +1 -0
- package/dist/components/StripeEmbeddedCheckout.js +101 -0
- package/dist/components/SubscriptionStatus.d.ts +22 -0
- package/dist/components/SubscriptionStatus.d.ts.map +1 -0
- package/dist/components/SubscriptionStatus.js +301 -0
- package/dist/components/SystemWarningBanner.d.ts +6 -0
- package/dist/components/SystemWarningBanner.d.ts.map +1 -0
- package/dist/components/SystemWarningBanner.js +46 -0
- package/dist/components/ThemeToggle.d.ts +21 -0
- package/dist/components/ThemeToggle.d.ts.map +1 -0
- package/dist/components/ThemeToggle.js +24 -0
- package/dist/components/TrajectoriesView.d.ts +12 -0
- package/dist/components/TrajectoriesView.d.ts.map +1 -0
- package/dist/components/TrajectoriesView.js +183 -0
- package/dist/components/TrajectoryDetailView.d.ts +13 -0
- package/dist/components/TrajectoryDetailView.d.ts.map +1 -0
- package/dist/components/TrajectoryDetailView.js +112 -0
- package/dist/components/TriggersView.d.ts +2 -0
- package/dist/components/TriggersView.d.ts.map +1 -0
- package/dist/components/TriggersView.js +1 -0
- package/dist/components/VectorBrowserView.d.ts +10 -0
- package/dist/components/VectorBrowserView.d.ts.map +1 -0
- package/dist/components/VectorBrowserView.js +997 -0
- package/dist/components/VoiceConfigView.d.ts +11 -0
- package/dist/components/VoiceConfigView.d.ts.map +1 -0
- package/dist/components/VoiceConfigView.js +329 -0
- package/dist/components/VrmStage.d.ts +21 -0
- package/dist/components/VrmStage.d.ts.map +1 -0
- package/dist/components/VrmStage.js +252 -0
- package/dist/components/WhatsAppQrOverlay.d.ts +8 -0
- package/dist/components/WhatsAppQrOverlay.d.ts.map +1 -0
- package/dist/components/WhatsAppQrOverlay.js +63 -0
- package/dist/components/apps/AppDetailPane.d.ts +15 -0
- package/dist/components/apps/AppDetailPane.d.ts.map +1 -0
- package/dist/components/apps/AppDetailPane.js +13 -0
- package/dist/components/apps/AppsCatalogGrid.d.ts +20 -0
- package/dist/components/apps/AppsCatalogGrid.d.ts.map +1 -0
- package/dist/components/apps/AppsCatalogGrid.js +18 -0
- package/dist/components/apps/extensions/HyperscapeAppDetailPanel.d.ts +3 -0
- package/dist/components/apps/extensions/HyperscapeAppDetailPanel.d.ts.map +1 -0
- package/dist/components/apps/extensions/HyperscapeAppDetailPanel.js +253 -0
- package/dist/components/apps/extensions/registry.d.ts +4 -0
- package/dist/components/apps/extensions/registry.d.ts.map +1 -0
- package/dist/components/apps/extensions/registry.js +10 -0
- package/dist/components/apps/extensions/types.d.ts +7 -0
- package/dist/components/apps/extensions/types.d.ts.map +1 -0
- package/dist/components/apps/extensions/types.js +1 -0
- package/dist/components/apps/helpers.d.ts +7 -0
- package/dist/components/apps/helpers.d.ts.map +1 -0
- package/dist/components/apps/helpers.js +46 -0
- package/dist/components/avatar/VrmAnimationLoader.d.ts +30 -0
- package/dist/components/avatar/VrmAnimationLoader.d.ts.map +1 -0
- package/dist/components/avatar/VrmAnimationLoader.js +99 -0
- package/dist/components/avatar/VrmBlinkController.d.ts +37 -0
- package/dist/components/avatar/VrmBlinkController.d.ts.map +1 -0
- package/dist/components/avatar/VrmBlinkController.js +98 -0
- package/dist/components/avatar/VrmCameraManager.d.ts +57 -0
- package/dist/components/avatar/VrmCameraManager.d.ts.map +1 -0
- package/dist/components/avatar/VrmCameraManager.js +277 -0
- package/dist/components/avatar/VrmEngine.d.ts +229 -0
- package/dist/components/avatar/VrmEngine.d.ts.map +1 -0
- package/dist/components/avatar/VrmEngine.js +1950 -0
- package/dist/components/avatar/VrmFootShadow.d.ts +18 -0
- package/dist/components/avatar/VrmFootShadow.d.ts.map +1 -0
- package/dist/components/avatar/VrmFootShadow.js +83 -0
- package/dist/components/avatar/VrmViewer.d.ts +45 -0
- package/dist/components/avatar/VrmViewer.d.ts.map +1 -0
- package/dist/components/avatar/VrmViewer.js +341 -0
- package/dist/components/avatar/mixamoVRMRigMap.d.ts +3 -0
- package/dist/components/avatar/mixamoVRMRigMap.d.ts.map +1 -0
- package/dist/components/avatar/mixamoVRMRigMap.js +56 -0
- package/dist/components/avatar/retargetMixamoFbxToVrm.d.ts +9 -0
- package/dist/components/avatar/retargetMixamoFbxToVrm.d.ts.map +1 -0
- package/dist/components/avatar/retargetMixamoFbxToVrm.js +88 -0
- package/dist/components/avatar/retargetMixamoGltfToVrm.d.ts +11 -0
- package/dist/components/avatar/retargetMixamoGltfToVrm.d.ts.map +1 -0
- package/dist/components/avatar/retargetMixamoGltfToVrm.js +80 -0
- package/dist/components/chainConfig.d.ts +84 -0
- package/dist/components/chainConfig.d.ts.map +1 -0
- package/dist/components/chainConfig.js +268 -0
- package/dist/components/companion/CompanionHeader.d.ts +15 -0
- package/dist/components/companion/CompanionHeader.d.ts.map +1 -0
- package/dist/components/companion/CompanionHeader.js +7 -0
- package/dist/components/companion/CompanionSceneHost.d.ts +2 -0
- package/dist/components/companion/CompanionSceneHost.d.ts.map +1 -0
- package/dist/components/companion/CompanionSceneHost.js +1 -0
- package/dist/components/companion/VrmStage.d.ts +3 -0
- package/dist/components/companion/VrmStage.d.ts.map +1 -0
- package/dist/components/companion/VrmStage.js +1 -0
- package/dist/components/companion/walletUtils.d.ts +95 -0
- package/dist/components/companion/walletUtils.d.ts.map +1 -0
- package/dist/components/companion/walletUtils.js +167 -0
- package/dist/components/companion-shell-styles.d.ts +38 -0
- package/dist/components/companion-shell-styles.d.ts.map +1 -0
- package/dist/components/companion-shell-styles.js +248 -0
- package/dist/components/confirm-delete-control.d.ts +16 -0
- package/dist/components/confirm-delete-control.d.ts.map +1 -0
- package/dist/components/confirm-delete-control.js +12 -0
- package/dist/components/conversations/ConversationListItem.d.ts +31 -0
- package/dist/components/conversations/ConversationListItem.d.ts.map +1 -0
- package/dist/components/conversations/ConversationListItem.js +52 -0
- package/dist/components/conversations/conversation-utils.d.ts +9 -0
- package/dist/components/conversations/conversation-utils.d.ts.map +1 -0
- package/dist/components/conversations/conversation-utils.js +138 -0
- package/dist/components/format.d.ts +54 -0
- package/dist/components/format.d.ts.map +1 -0
- package/dist/components/format.js +82 -0
- package/dist/components/index.d.ts +93 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +92 -0
- package/dist/components/inventory/CopyableAddress.d.ts +8 -0
- package/dist/components/inventory/CopyableAddress.d.ts.map +1 -0
- package/dist/components/inventory/CopyableAddress.js +18 -0
- package/dist/components/inventory/InventoryToolbar.d.ts +25 -0
- package/dist/components/inventory/InventoryToolbar.d.ts.map +1 -0
- package/dist/components/inventory/InventoryToolbar.js +28 -0
- package/dist/components/inventory/NftGrid.d.ts +13 -0
- package/dist/components/inventory/NftGrid.d.ts.map +1 -0
- package/dist/components/inventory/NftGrid.js +29 -0
- package/dist/components/inventory/TokenLogo.d.ts +12 -0
- package/dist/components/inventory/TokenLogo.d.ts.map +1 -0
- package/dist/components/inventory/TokenLogo.js +33 -0
- package/dist/components/inventory/TokensTable.d.ts +24 -0
- package/dist/components/inventory/TokensTable.d.ts.map +1 -0
- package/dist/components/inventory/TokensTable.js +26 -0
- package/dist/components/inventory/constants.d.ts +52 -0
- package/dist/components/inventory/constants.d.ts.map +1 -0
- package/dist/components/inventory/constants.js +121 -0
- package/dist/components/inventory/index.d.ts +9 -0
- package/dist/components/inventory/index.d.ts.map +1 -0
- package/dist/components/inventory/index.js +8 -0
- package/dist/components/inventory/media-url.d.ts +6 -0
- package/dist/components/inventory/media-url.d.ts.map +1 -0
- package/dist/components/inventory/media-url.js +28 -0
- package/dist/components/inventory/useInventoryData.d.ts +53 -0
- package/dist/components/inventory/useInventoryData.d.ts.map +1 -0
- package/dist/components/inventory/useInventoryData.js +332 -0
- package/dist/components/knowledge-upload-image.d.ts +27 -0
- package/dist/components/knowledge-upload-image.d.ts.map +1 -0
- package/dist/components/knowledge-upload-image.js +146 -0
- package/dist/components/labels.d.ts +6 -0
- package/dist/components/labels.d.ts.map +1 -0
- package/dist/components/labels.js +40 -0
- package/dist/components/onboarding/ActivateStep.d.ts +2 -0
- package/dist/components/onboarding/ActivateStep.d.ts.map +1 -0
- package/dist/components/onboarding/ActivateStep.js +6 -0
- package/dist/components/onboarding/ConnectionStep.d.ts +2 -0
- package/dist/components/onboarding/ConnectionStep.d.ts.map +1 -0
- package/dist/components/onboarding/ConnectionStep.js +552 -0
- package/dist/components/onboarding/OnboardingPanel.d.ts +9 -0
- package/dist/components/onboarding/OnboardingPanel.d.ts.map +1 -0
- package/dist/components/onboarding/OnboardingPanel.js +24 -0
- package/dist/components/onboarding/OnboardingStepNav.d.ts +2 -0
- package/dist/components/onboarding/OnboardingStepNav.d.ts.map +1 -0
- package/dist/components/onboarding/OnboardingStepNav.js +14 -0
- package/dist/components/onboarding/PermissionsStep.d.ts +2 -0
- package/dist/components/onboarding/PermissionsStep.d.ts.map +1 -0
- package/dist/components/onboarding/PermissionsStep.js +7 -0
- package/dist/components/onboarding/RpcStep.d.ts +2 -0
- package/dist/components/onboarding/RpcStep.d.ts.map +1 -0
- package/dist/components/onboarding/RpcStep.js +125 -0
- package/dist/components/onboarding/WakeUpStep.d.ts +2 -0
- package/dist/components/onboarding/WakeUpStep.d.ts.map +1 -0
- package/dist/components/onboarding/WakeUpStep.js +82 -0
- package/dist/components/permissions/PermissionIcon.d.ts +4 -0
- package/dist/components/permissions/PermissionIcon.d.ts.map +1 -0
- package/dist/components/permissions/PermissionIcon.js +12 -0
- package/dist/components/permissions/StreamingPermissions.d.ts +20 -0
- package/dist/components/permissions/StreamingPermissions.d.ts.map +1 -0
- package/dist/components/permissions/StreamingPermissions.js +173 -0
- package/dist/components/plugins/showcase-data.d.ts +7 -0
- package/dist/components/plugins/showcase-data.d.ts.map +1 -0
- package/dist/components/plugins/showcase-data.js +464 -0
- package/dist/components/shared/ShellHeaderControls.d.ts +27 -0
- package/dist/components/shared/ShellHeaderControls.d.ts.map +1 -0
- package/dist/components/shared/ShellHeaderControls.js +60 -0
- package/dist/components/skeletons.d.ts +17 -0
- package/dist/components/skeletons.d.ts.map +1 -0
- package/dist/components/skeletons.js +22 -0
- package/dist/components/stream/ActivityFeed.d.ts +5 -0
- package/dist/components/stream/ActivityFeed.d.ts.map +1 -0
- package/dist/components/stream/ActivityFeed.js +57 -0
- package/dist/components/stream/AvatarPip.d.ts +5 -0
- package/dist/components/stream/AvatarPip.d.ts.map +1 -0
- package/dist/components/stream/AvatarPip.js +6 -0
- package/dist/components/stream/ChatContent.d.ts +6 -0
- package/dist/components/stream/ChatContent.d.ts.map +1 -0
- package/dist/components/stream/ChatContent.js +69 -0
- package/dist/components/stream/ChatTicker.d.ts +5 -0
- package/dist/components/stream/ChatTicker.d.ts.map +1 -0
- package/dist/components/stream/ChatTicker.js +34 -0
- package/dist/components/stream/IdleContent.d.ts +5 -0
- package/dist/components/stream/IdleContent.d.ts.map +1 -0
- package/dist/components/stream/IdleContent.js +17 -0
- package/dist/components/stream/StatusBar.d.ts +36 -0
- package/dist/components/stream/StatusBar.d.ts.map +1 -0
- package/dist/components/stream/StatusBar.js +140 -0
- package/dist/components/stream/StreamSettings.d.ts +33 -0
- package/dist/components/stream/StreamSettings.d.ts.map +1 -0
- package/dist/components/stream/StreamSettings.js +99 -0
- package/dist/components/stream/StreamTerminal.d.ts +2 -0
- package/dist/components/stream/StreamTerminal.d.ts.map +1 -0
- package/dist/components/stream/StreamTerminal.js +52 -0
- package/dist/components/stream/StreamVoiceConfig.d.ts +10 -0
- package/dist/components/stream/StreamVoiceConfig.d.ts.map +1 -0
- package/dist/components/stream/StreamVoiceConfig.js +88 -0
- package/dist/components/stream/helpers.d.ts +32 -0
- package/dist/components/stream/helpers.d.ts.map +1 -0
- package/dist/components/stream/helpers.js +110 -0
- package/dist/components/stream/overlays/OverlayLayer.d.ts +20 -0
- package/dist/components/stream/overlays/OverlayLayer.d.ts.map +1 -0
- package/dist/components/stream/overlays/OverlayLayer.js +24 -0
- package/dist/components/stream/overlays/built-in/ActionTickerWidget.d.ts +8 -0
- package/dist/components/stream/overlays/built-in/ActionTickerWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/ActionTickerWidget.js +44 -0
- package/dist/components/stream/overlays/built-in/AlertPopupWidget.d.ts +7 -0
- package/dist/components/stream/overlays/built-in/AlertPopupWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/AlertPopupWidget.js +62 -0
- package/dist/components/stream/overlays/built-in/BrandingWidget.d.ts +7 -0
- package/dist/components/stream/overlays/built-in/BrandingWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/BrandingWidget.js +36 -0
- package/dist/components/stream/overlays/built-in/CustomHtmlWidget.d.ts +26 -0
- package/dist/components/stream/overlays/built-in/CustomHtmlWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/CustomHtmlWidget.js +78 -0
- package/dist/components/stream/overlays/built-in/PeonGlassWidget.d.ts +11 -0
- package/dist/components/stream/overlays/built-in/PeonGlassWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/PeonGlassWidget.js +188 -0
- package/dist/components/stream/overlays/built-in/PeonHudWidget.d.ts +10 -0
- package/dist/components/stream/overlays/built-in/PeonHudWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/PeonHudWidget.js +168 -0
- package/dist/components/stream/overlays/built-in/PeonSakuraWidget.d.ts +11 -0
- package/dist/components/stream/overlays/built-in/PeonSakuraWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/PeonSakuraWidget.js +213 -0
- package/dist/components/stream/overlays/built-in/ThoughtBubbleWidget.d.ts +8 -0
- package/dist/components/stream/overlays/built-in/ThoughtBubbleWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/ThoughtBubbleWidget.js +59 -0
- package/dist/components/stream/overlays/built-in/ViewerCountWidget.d.ts +7 -0
- package/dist/components/stream/overlays/built-in/ViewerCountWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/ViewerCountWidget.js +34 -0
- package/dist/components/stream/overlays/built-in/index.d.ts +13 -0
- package/dist/components/stream/overlays/built-in/index.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/index.js +12 -0
- package/dist/components/stream/overlays/registry.d.ts +11 -0
- package/dist/components/stream/overlays/registry.d.ts.map +1 -0
- package/dist/components/stream/overlays/registry.js +16 -0
- package/dist/components/stream/overlays/types.d.ts +67 -0
- package/dist/components/stream/overlays/types.d.ts.map +1 -0
- package/dist/components/stream/overlays/types.js +7 -0
- package/dist/components/stream/overlays/useOverlayLayout.d.ts +27 -0
- package/dist/components/stream/overlays/useOverlayLayout.d.ts.map +1 -0
- package/dist/components/stream/overlays/useOverlayLayout.js +162 -0
- package/dist/components/trajectory-format.d.ts +6 -0
- package/dist/components/trajectory-format.d.ts.map +1 -0
- package/dist/components/trajectory-format.js +43 -0
- package/dist/components/ui-badges.d.ts +23 -0
- package/dist/components/ui-badges.d.ts.map +1 -0
- package/dist/components/ui-badges.js +38 -0
- package/dist/components/ui-switch.d.ts +14 -0
- package/dist/components/ui-switch.d.ts.map +1 -0
- package/dist/components/ui-switch.js +15 -0
- package/dist/components/vector-browser-three.d.ts +4 -0
- package/dist/components/vector-browser-three.d.ts.map +1 -0
- package/dist/components/vector-browser-three.js +19 -0
- package/dist/config/config-catalog.d.ts +376 -0
- package/dist/config/config-catalog.d.ts.map +1 -0
- package/dist/config/config-catalog.js +724 -0
- package/dist/config/config-field.d.ts +68 -0
- package/dist/config/config-field.d.ts.map +1 -0
- package/dist/config/config-field.js +821 -0
- package/dist/config/config-renderer.d.ts +176 -0
- package/dist/config/config-renderer.d.ts.map +1 -0
- package/dist/config/config-renderer.js +403 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +4 -0
- package/dist/config/ui-renderer.d.ts +26 -0
- package/dist/config/ui-renderer.d.ts.map +1 -0
- package/dist/config/ui-renderer.js +815 -0
- package/dist/config/ui-spec.d.ts +164 -0
- package/dist/config/ui-spec.d.ts.map +1 -0
- package/dist/config/ui-spec.js +13 -0
- package/dist/events/index.d.ts +42 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +41 -0
- package/dist/hooks/index.d.ts +14 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +13 -0
- package/dist/hooks/useBugReport.d.ts +14 -0
- package/dist/hooks/useBugReport.d.ts.map +1 -0
- package/dist/hooks/useBugReport.js +18 -0
- package/dist/hooks/useCanvasWindow.d.ts +38 -0
- package/dist/hooks/useCanvasWindow.d.ts.map +1 -0
- package/dist/hooks/useCanvasWindow.js +273 -0
- package/dist/hooks/useChatAvatarVoice.d.ts +10 -0
- package/dist/hooks/useChatAvatarVoice.d.ts.map +1 -0
- package/dist/hooks/useChatAvatarVoice.js +71 -0
- package/dist/hooks/useContextMenu.d.ts +17 -0
- package/dist/hooks/useContextMenu.d.ts.map +1 -0
- package/dist/hooks/useContextMenu.js +100 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts +17 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/hooks/useKeyboardShortcuts.js +67 -0
- package/dist/hooks/useLifoSync.d.ts +18 -0
- package/dist/hooks/useLifoSync.d.ts.map +1 -0
- package/dist/hooks/useLifoSync.js +113 -0
- package/dist/hooks/useMemoryMonitor.d.ts +87 -0
- package/dist/hooks/useMemoryMonitor.d.ts.map +1 -0
- package/dist/hooks/useMemoryMonitor.js +210 -0
- package/dist/hooks/useRenderGuard.d.ts +17 -0
- package/dist/hooks/useRenderGuard.d.ts.map +1 -0
- package/dist/hooks/useRenderGuard.js +36 -0
- package/dist/hooks/useRetakeCapture.d.ts +12 -0
- package/dist/hooks/useRetakeCapture.d.ts.map +1 -0
- package/dist/hooks/useRetakeCapture.js +59 -0
- package/dist/hooks/useStreamPopoutNavigation.d.ts +3 -0
- package/dist/hooks/useStreamPopoutNavigation.d.ts.map +1 -0
- package/dist/hooks/useStreamPopoutNavigation.js +17 -0
- package/dist/hooks/useTimeout.d.ts +11 -0
- package/dist/hooks/useTimeout.d.ts.map +1 -0
- package/dist/hooks/useTimeout.js +32 -0
- package/dist/hooks/useVoiceChat.d.ts +129 -0
- package/dist/hooks/useVoiceChat.d.ts.map +1 -0
- package/dist/hooks/useVoiceChat.js +1071 -0
- package/dist/hooks/useWhatsAppPairing.d.ts +11 -0
- package/dist/hooks/useWhatsAppPairing.d.ts.map +1 -0
- package/dist/hooks/useWhatsAppPairing.js +95 -0
- package/dist/i18n/index.d.ts +7 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +53 -0
- package/dist/i18n/locales/en.json +1196 -0
- package/dist/i18n/locales/es.json +1196 -0
- package/dist/i18n/locales/ko.json +1196 -0
- package/dist/i18n/locales/pt.json +1196 -0
- package/dist/i18n/locales/zh-CN.json +1196 -0
- package/dist/i18n/messages.d.ts +6 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +14 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/navigation/index.d.ts +27 -0
- package/dist/navigation/index.d.ts.map +1 -0
- package/dist/navigation/index.js +230 -0
- package/dist/package.json +161 -0
- package/dist/platform/browser-launch.d.ts +2 -0
- package/dist/platform/browser-launch.d.ts.map +1 -0
- package/dist/platform/browser-launch.js +109 -0
- package/dist/platform/index.d.ts +64 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/index.js +155 -0
- package/dist/platform/init.d.ts +40 -0
- package/dist/platform/init.d.ts.map +1 -0
- package/dist/platform/init.js +158 -0
- package/dist/providers/index.d.ts +13 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +72 -0
- package/dist/state/AppContext.d.ts +11 -0
- package/dist/state/AppContext.d.ts.map +1 -0
- package/dist/state/AppContext.js +4496 -0
- package/dist/state/index.d.ts +7 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +6 -0
- package/dist/state/internal.d.ts +6 -0
- package/dist/state/internal.d.ts.map +1 -0
- package/dist/state/internal.js +5 -0
- package/dist/state/parsers.d.ts +26 -0
- package/dist/state/parsers.d.ts.map +1 -0
- package/dist/state/parsers.js +255 -0
- package/dist/state/persistence.d.ts +36 -0
- package/dist/state/persistence.d.ts.map +1 -0
- package/dist/state/persistence.js +254 -0
- package/dist/state/types.d.ts +402 -0
- package/dist/state/types.d.ts.map +1 -0
- package/dist/state/types.js +70 -0
- package/dist/state/ui-preferences.d.ts +3 -0
- package/dist/state/ui-preferences.d.ts.map +1 -0
- package/dist/state/ui-preferences.js +1 -0
- package/dist/state/useApp.d.ts +4 -0
- package/dist/state/useApp.d.ts.map +1 -0
- package/dist/state/useApp.js +22 -0
- package/dist/state/vrm.d.ts +19 -0
- package/dist/state/vrm.d.ts.map +1 -0
- package/dist/state/vrm.js +65 -0
- package/dist/stories/AppMockProvider.d.ts +15 -0
- package/dist/stories/AppMockProvider.d.ts.map +1 -0
- package/dist/stories/AppMockProvider.js +14 -0
- package/dist/styles/anime.css +6324 -0
- package/dist/styles/base.css +196 -0
- package/dist/styles/onboarding-game.css +716 -0
- package/dist/styles/styles.css +2085 -0
- package/dist/styles/xterm.css +241 -0
- package/dist/types/index.d.ts +657 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/asset-url.d.ts +26 -0
- package/dist/utils/asset-url.d.ts.map +1 -0
- package/dist/utils/asset-url.js +99 -0
- package/dist/utils/assistant-text.d.ts +2 -0
- package/dist/utils/assistant-text.d.ts.map +1 -0
- package/dist/utils/assistant-text.js +161 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +38 -0
- package/dist/utils/desktop-dialogs.d.ts +19 -0
- package/dist/utils/desktop-dialogs.d.ts.map +1 -0
- package/dist/utils/desktop-dialogs.js +50 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +6 -0
- package/dist/utils/number-parsing.d.ts +44 -0
- package/dist/utils/number-parsing.d.ts.map +1 -0
- package/dist/utils/number-parsing.js +56 -0
- package/dist/utils/openExternalUrl.d.ts +2 -0
- package/dist/utils/openExternalUrl.d.ts.map +1 -0
- package/dist/utils/openExternalUrl.js +17 -0
- package/dist/utils/spoken-text.d.ts +2 -0
- package/dist/utils/spoken-text.d.ts.map +1 -0
- package/dist/utils/spoken-text.js +56 -0
- package/dist/utils/streaming-text.d.ts +3 -0
- package/dist/utils/streaming-text.d.ts.map +1 -0
- package/dist/utils/streaming-text.js +87 -0
- package/dist/voice/index.d.ts +2 -0
- package/dist/voice/index.d.ts.map +1 -0
- package/dist/voice/index.js +1 -0
- package/dist/voice/types.d.ts +25 -0
- package/dist/voice/types.d.ts.map +1 -0
- package/dist/voice/types.js +166 -0
- package/package.json +86 -0
- package/src/App.tsx +469 -0
- package/src/actions/character.ts +113 -0
- package/src/actions/chat-helpers.ts +100 -0
- package/src/actions/cloud.ts +59 -0
- package/src/actions/index.ts +12 -0
- package/src/actions/lifecycle.ts +175 -0
- package/src/actions/onboarding.ts +46 -0
- package/src/actions/triggers.ts +190 -0
- package/src/ambient.d.ts +16 -0
- package/src/api/client.ts +5616 -0
- package/src/api/index.ts +1 -0
- package/src/autonomy/index.ts +477 -0
- package/src/bridge/capacitor-bridge.ts +295 -0
- package/src/bridge/electrobun-rpc.ts +58 -0
- package/src/bridge/electrobun-runtime.ts +28 -0
- package/src/bridge/index.ts +5 -0
- package/src/bridge/native-plugins.ts +134 -0
- package/src/bridge/plugin-bridge.ts +352 -0
- package/src/bridge/storage-bridge.ts +162 -0
- package/src/chat/index.ts +251 -0
- package/src/coding/index.ts +43 -0
- package/src/components/AdvancedPageView.tsx +362 -0
- package/src/components/AgentActivityBox.tsx +49 -0
- package/src/components/ApiKeyConfig.tsx +224 -0
- package/src/components/AppsPageView.tsx +52 -0
- package/src/components/AppsView.tsx +293 -0
- package/src/components/AvatarLoader.tsx +86 -0
- package/src/components/AvatarSelector.tsx +223 -0
- package/src/components/BscTradePanel.tsx +549 -0
- package/src/components/BugReportModal.tsx +499 -0
- package/src/components/CharacterView.tsx +1623 -0
- package/src/components/ChatAvatar.test.ts +96 -0
- package/src/components/ChatAvatar.tsx +147 -0
- package/src/components/ChatComposer.tsx +330 -0
- package/src/components/ChatMessage.tsx +448 -0
- package/src/components/ChatModalView.test.tsx +118 -0
- package/src/components/ChatModalView.tsx +125 -0
- package/src/components/ChatView.tsx +999 -0
- package/src/components/CloudSourceControls.tsx +80 -0
- package/src/components/CodingAgentSettingsSection.tsx +536 -0
- package/src/components/CommandPalette.tsx +284 -0
- package/src/components/CompanionSceneHost.tsx +498 -0
- package/src/components/CompanionShell.tsx +31 -0
- package/src/components/CompanionView.tsx +109 -0
- package/src/components/ConfigPageView.tsx +722 -0
- package/src/components/ConfigSaveFooter.tsx +41 -0
- package/src/components/ConfirmModal.tsx +379 -0
- package/src/components/ConnectionFailedBanner.tsx +91 -0
- package/src/components/ConnectorsPageView.tsx +13 -0
- package/src/components/ConversationsSidebar.tsx +279 -0
- package/src/components/CustomActionEditor.tsx +1125 -0
- package/src/components/CustomActionsPanel.tsx +288 -0
- package/src/components/CustomActionsView.tsx +322 -0
- package/src/components/DatabasePageView.tsx +55 -0
- package/src/components/DatabaseView.tsx +814 -0
- package/src/components/ElizaCloudDashboard.tsx +1696 -0
- package/src/components/EmotePicker.tsx +529 -0
- package/src/components/ErrorBoundary.tsx +76 -0
- package/src/components/FineTuningView.tsx +1080 -0
- package/src/components/GameView.tsx +551 -0
- package/src/components/GameViewOverlay.tsx +133 -0
- package/src/components/GlobalEmoteOverlay.tsx +152 -0
- package/src/components/Header.test.tsx +413 -0
- package/src/components/Header.tsx +400 -0
- package/src/components/HeartbeatsView.tsx +1002 -0
- package/src/components/InventoryView.tsx +372 -0
- package/src/components/KnowledgeView.tsx +1128 -0
- package/src/components/LanguageDropdown.tsx +187 -0
- package/src/components/LifoMonitorPanel.tsx +196 -0
- package/src/components/LifoSandboxView.tsx +499 -0
- package/src/components/LoadingScreen.tsx +77 -0
- package/src/components/LogsPageView.tsx +17 -0
- package/src/components/LogsView.tsx +239 -0
- package/src/components/MediaGalleryView.tsx +432 -0
- package/src/components/MediaSettingsSection.tsx +893 -0
- package/src/components/MessageContent.tsx +815 -0
- package/src/components/OnboardingWizard.test.tsx +107 -0
- package/src/components/OnboardingWizard.tsx +186 -0
- package/src/components/PairingView.tsx +110 -0
- package/src/components/PermissionsSection.tsx +818 -0
- package/src/components/PluginsPageView.tsx +9 -0
- package/src/components/PluginsView.tsx +3152 -0
- package/src/components/ProviderSwitcher.tsx +874 -0
- package/src/components/RestartBanner.tsx +76 -0
- package/src/components/RuntimeView.tsx +460 -0
- package/src/components/SaveCommandModal.tsx +211 -0
- package/src/components/SecretsView.tsx +569 -0
- package/src/components/SettingsView.tsx +825 -0
- package/src/components/ShellOverlays.tsx +41 -0
- package/src/components/ShortcutsOverlay.tsx +155 -0
- package/src/components/SkillsView.tsx +1435 -0
- package/src/components/StartupFailureView.tsx +63 -0
- package/src/components/StreamView.tsx +483 -0
- package/src/components/StripeEmbeddedCheckout.tsx +155 -0
- package/src/components/SubscriptionStatus.tsx +634 -0
- package/src/components/SystemWarningBanner.tsx +71 -0
- package/src/components/ThemeToggle.tsx +100 -0
- package/src/components/TrajectoriesView.tsx +526 -0
- package/src/components/TrajectoryDetailView.tsx +426 -0
- package/src/components/TriggersView.tsx +1 -0
- package/src/components/VectorBrowserView.tsx +1633 -0
- package/src/components/VoiceConfigView.tsx +674 -0
- package/src/components/VrmStage.test.ts +219 -0
- package/src/components/VrmStage.tsx +432 -0
- package/src/components/WhatsAppQrOverlay.tsx +230 -0
- package/src/components/__tests__/chainConfig.test.ts +220 -0
- package/src/components/apps/AppDetailPane.tsx +242 -0
- package/src/components/apps/AppsCatalogGrid.tsx +137 -0
- package/src/components/apps/extensions/HyperscapeAppDetailPanel.tsx +577 -0
- package/src/components/apps/extensions/registry.ts +16 -0
- package/src/components/apps/extensions/types.ts +9 -0
- package/src/components/apps/helpers.ts +44 -0
- package/src/components/avatar/VrmAnimationLoader.test.ts +164 -0
- package/src/components/avatar/VrmAnimationLoader.ts +151 -0
- package/src/components/avatar/VrmBlinkController.ts +118 -0
- package/src/components/avatar/VrmCameraManager.ts +407 -0
- package/src/components/avatar/VrmEngine.ts +2678 -0
- package/src/components/avatar/VrmFootShadow.ts +96 -0
- package/src/components/avatar/VrmViewer.tsx +421 -0
- package/src/components/avatar/__tests__/VrmCameraManager.test.ts +168 -0
- package/src/components/avatar/__tests__/VrmEngine.test.ts +1574 -0
- package/src/components/avatar/mixamoVRMRigMap.ts +62 -0
- package/src/components/avatar/retargetMixamoFbxToVrm.ts +144 -0
- package/src/components/avatar/retargetMixamoGltfToVrm.ts +119 -0
- package/src/components/chainConfig.ts +380 -0
- package/src/components/companion/CompanionHeader.tsx +47 -0
- package/src/components/companion/CompanionSceneHost.tsx +5 -0
- package/src/components/companion/VrmStage.tsx +2 -0
- package/src/components/companion/__tests__/walletUtils.test.ts +742 -0
- package/src/components/companion/walletUtils.ts +290 -0
- package/src/components/companion-shell-styles.test.ts +146 -0
- package/src/components/companion-shell-styles.ts +270 -0
- package/src/components/confirm-delete-control.tsx +69 -0
- package/src/components/conversations/ConversationListItem.tsx +185 -0
- package/src/components/conversations/conversation-utils.ts +151 -0
- package/src/components/format.ts +131 -0
- package/src/components/index.ts +92 -0
- package/src/components/inventory/CopyableAddress.tsx +41 -0
- package/src/components/inventory/InventoryToolbar.tsx +142 -0
- package/src/components/inventory/NftGrid.tsx +99 -0
- package/src/components/inventory/TokenLogo.tsx +71 -0
- package/src/components/inventory/TokensTable.tsx +216 -0
- package/src/components/inventory/constants.ts +170 -0
- package/src/components/inventory/index.ts +29 -0
- package/src/components/inventory/media-url.test.ts +38 -0
- package/src/components/inventory/media-url.ts +36 -0
- package/src/components/inventory/useInventoryData.ts +460 -0
- package/src/components/knowledge-upload-image.ts +215 -0
- package/src/components/labels.ts +46 -0
- package/src/components/onboarding/ActivateStep.tsx +30 -0
- package/src/components/onboarding/ConnectionStep.tsx +1530 -0
- package/src/components/onboarding/OnboardingPanel.tsx +39 -0
- package/src/components/onboarding/OnboardingStepNav.tsx +31 -0
- package/src/components/onboarding/PermissionsStep.tsx +20 -0
- package/src/components/onboarding/RpcStep.tsx +402 -0
- package/src/components/onboarding/WakeUpStep.tsx +184 -0
- package/src/components/permissions/PermissionIcon.tsx +25 -0
- package/src/components/permissions/StreamingPermissions.tsx +376 -0
- package/src/components/plugins/showcase-data.ts +481 -0
- package/src/components/shared/ShellHeaderControls.tsx +193 -0
- package/src/components/skeletons.tsx +88 -0
- package/src/components/stream/ActivityFeed.tsx +113 -0
- package/src/components/stream/AvatarPip.tsx +10 -0
- package/src/components/stream/ChatContent.tsx +126 -0
- package/src/components/stream/ChatTicker.tsx +55 -0
- package/src/components/stream/IdleContent.tsx +73 -0
- package/src/components/stream/StatusBar.tsx +469 -0
- package/src/components/stream/StreamSettings.tsx +506 -0
- package/src/components/stream/StreamTerminal.tsx +94 -0
- package/src/components/stream/StreamVoiceConfig.tsx +160 -0
- package/src/components/stream/helpers.ts +134 -0
- package/src/components/stream/overlays/OverlayLayer.tsx +75 -0
- package/src/components/stream/overlays/built-in/ActionTickerWidget.tsx +64 -0
- package/src/components/stream/overlays/built-in/AlertPopupWidget.tsx +87 -0
- package/src/components/stream/overlays/built-in/BrandingWidget.tsx +51 -0
- package/src/components/stream/overlays/built-in/CustomHtmlWidget.tsx +105 -0
- package/src/components/stream/overlays/built-in/PeonGlassWidget.tsx +265 -0
- package/src/components/stream/overlays/built-in/PeonHudWidget.tsx +247 -0
- package/src/components/stream/overlays/built-in/PeonSakuraWidget.tsx +278 -0
- package/src/components/stream/overlays/built-in/ThoughtBubbleWidget.tsx +77 -0
- package/src/components/stream/overlays/built-in/ViewerCountWidget.tsx +46 -0
- package/src/components/stream/overlays/built-in/index.ts +13 -0
- package/src/components/stream/overlays/registry.ts +22 -0
- package/src/components/stream/overlays/types.ts +90 -0
- package/src/components/stream/overlays/useOverlayLayout.ts +218 -0
- package/src/components/trajectory-format.ts +50 -0
- package/src/components/ui-badges.tsx +109 -0
- package/src/components/ui-switch.tsx +57 -0
- package/src/components/vector-browser-three.ts +27 -0
- package/src/config/config-catalog.ts +1092 -0
- package/src/config/config-field.tsx +1900 -0
- package/src/config/config-renderer.tsx +730 -0
- package/src/config/index.ts +11 -0
- package/src/config/ui-renderer.tsx +1751 -0
- package/src/config/ui-spec.ts +256 -0
- package/src/events/index.ts +89 -0
- package/src/hooks/index.ts +13 -0
- package/src/hooks/useBugReport.tsx +43 -0
- package/src/hooks/useCanvasWindow.ts +372 -0
- package/src/hooks/useChatAvatarVoice.ts +111 -0
- package/src/hooks/useContextMenu.ts +127 -0
- package/src/hooks/useKeyboardShortcuts.ts +86 -0
- package/src/hooks/useLifoSync.ts +143 -0
- package/src/hooks/useMemoryMonitor.ts +335 -0
- package/src/hooks/useRenderGuard.ts +43 -0
- package/src/hooks/useRetakeCapture.ts +67 -0
- package/src/hooks/useStreamPopoutNavigation.ts +27 -0
- package/src/hooks/useTimeout.ts +37 -0
- package/src/hooks/useVoiceChat.ts +1443 -0
- package/src/hooks/useWhatsAppPairing.ts +123 -0
- package/src/i18n/index.ts +76 -0
- package/src/i18n/locales/en.json +1196 -0
- package/src/i18n/locales/es.json +1196 -0
- package/src/i18n/locales/ko.json +1196 -0
- package/src/i18n/locales/pt.json +1196 -0
- package/src/i18n/locales/zh-CN.json +1196 -0
- package/src/i18n/messages.ts +21 -0
- package/src/index.ts +6 -0
- package/src/navigation/index.ts +282 -0
- package/src/navigation.test.ts +189 -0
- package/src/platform/browser-launch.test.ts +94 -0
- package/src/platform/browser-launch.ts +149 -0
- package/src/platform/index.ts +261 -0
- package/src/platform/init.ts +236 -0
- package/src/providers/index.ts +82 -0
- package/src/state/AppContext.tsx +5737 -0
- package/src/state/index.ts +6 -0
- package/src/state/internal.ts +77 -0
- package/src/state/parsers.test.ts +124 -0
- package/src/state/parsers.ts +309 -0
- package/src/state/persistence.ts +278 -0
- package/src/state/types.ts +694 -0
- package/src/state/ui-preferences.ts +3 -0
- package/src/state/useApp.ts +23 -0
- package/src/state/vrm.ts +76 -0
- package/src/stories/AppMockProvider.tsx +32 -0
- package/src/stories/ChatEmptyState.stories.tsx +27 -0
- package/src/stories/ChatMessage.stories.tsx +115 -0
- package/src/stories/CompanionHeader.stories.tsx +74 -0
- package/src/stories/CompanionView.stories.tsx +33 -0
- package/src/stories/ConversationListItem.stories.tsx +102 -0
- package/src/stories/TypingIndicator.stories.tsx +28 -0
- package/src/styles/anime.css +6324 -0
- package/src/styles/base.css +196 -0
- package/src/styles/onboarding-game.css +716 -0
- package/src/styles/styles.css +2085 -0
- package/src/styles/xterm.css +241 -0
- package/src/types/index.ts +715 -0
- package/src/types/react-test-renderer.d.ts +45 -0
- package/src/utils/asset-url.ts +110 -0
- package/src/utils/assistant-text.ts +172 -0
- package/src/utils/clipboard.ts +41 -0
- package/src/utils/desktop-dialogs.ts +80 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/number-parsing.ts +125 -0
- package/src/utils/openExternalUrl.ts +20 -0
- package/src/utils/spoken-text.ts +65 -0
- package/src/utils/streaming-text.ts +120 -0
- package/src/voice/index.ts +1 -0
- package/src/voice/types.ts +197 -0
- package/test/app/AppContext.pty-sessions.test.tsx +143 -0
- package/test/app/MessageContent.test.tsx +326 -0
- package/test/app/PermissionsOnboarding.test.tsx +216 -0
- package/test/app/PermissionsSection.test.tsx +186 -0
- package/test/app/advanced-trajectory-fine-tuning.e2e.test.ts +397 -0
- package/test/app/agent-activity-box.test.tsx +132 -0
- package/test/app/agent-transfer-lock.test.ts +274 -0
- package/test/app/api-client-electron-fallback.test.ts +139 -0
- package/test/app/api-client-timeout.test.ts +75 -0
- package/test/app/api-client-ws.test.ts +98 -0
- package/test/app/api-client.ws-max-reconnect.test.ts +139 -0
- package/test/app/api-client.ws-reconnect.test.ts +157 -0
- package/test/app/app-context-autonomy-events.test.ts +478 -0
- package/test/app/apps-page-view.test.ts +114 -0
- package/test/app/apps-view.test.ts +769 -0
- package/test/app/autonomous-workflows.e2e.test.ts +765 -0
- package/test/app/autonomy-events.test.ts +150 -0
- package/test/app/avatar-selector.test.tsx +52 -0
- package/test/app/bsc-trade-panel.test.tsx +134 -0
- package/test/app/bug-report-modal.test.tsx +353 -0
- package/test/app/character-customization.e2e.test.ts +1168 -0
- package/test/app/chat-advanced-features.e2e.test.ts +706 -0
- package/test/app/chat-composer.test.tsx +181 -0
- package/test/app/chat-language-header.test.ts +64 -0
- package/test/app/chat-message.test.tsx +222 -0
- package/test/app/chat-modal-view.test.tsx +191 -0
- package/test/app/chat-routine-filter.test.ts +96 -0
- package/test/app/chat-send-lock.test.ts +1302 -0
- package/test/app/chat-stream-api-client.test.tsx +390 -0
- package/test/app/chat-view-game-modal.test.tsx +661 -0
- package/test/app/chat-view.test.tsx +877 -0
- package/test/app/cloud-api.e2e.test.ts +258 -0
- package/test/app/cloud-login-flow.e2e.test.ts +494 -0
- package/test/app/cloud-login-lock.test.ts +411 -0
- package/test/app/command-palette.test.tsx +184 -0
- package/test/app/command-registry.test.ts +75 -0
- package/test/app/companion-greeting-wave.test.tsx +443 -0
- package/test/app/companion-stale-conversation.test.tsx +424 -0
- package/test/app/companion-view.test.tsx +686 -0
- package/test/app/confirm-delete-control.test.ts +79 -0
- package/test/app/confirm-modal.test.tsx +219 -0
- package/test/app/connectors-ui.e2e.test.ts +508 -0
- package/test/app/conversations-sidebar-game-modal.test.tsx +260 -0
- package/test/app/conversations-sidebar.test.tsx +160 -0
- package/test/app/custom-actions-smoke.test.ts +387 -0
- package/test/app/custom-avatar-api-client.test.ts +207 -0
- package/test/app/desktop-utils.test.ts +145 -0
- package/test/app/electrobun-rpc-bridge.test.ts +83 -0
- package/test/app/events.test.ts +88 -0
- package/test/app/export-import-flows.e2e.test.ts +700 -0
- package/test/app/fine-tuning-view.test.ts +471 -0
- package/test/app/game-view-auth-session.test.tsx +186 -0
- package/test/app/game-view.test.ts +444 -0
- package/test/app/global-emote-overlay.test.tsx +106 -0
- package/test/app/header-status.test.tsx +149 -0
- package/test/app/i18n.test.ts +152 -0
- package/test/app/inventory-bsc-view.test.ts +908 -0
- package/test/app/knowledge-ui.e2e.test.ts +762 -0
- package/test/app/knowledge-upload-helpers.test.ts +124 -0
- package/test/app/lifecycle-lock.test.ts +267 -0
- package/test/app/lifo-popout-utils.test.ts +208 -0
- package/test/app/lifo-safe-endpoint.test.ts +34 -0
- package/test/app/loading-screen.test.tsx +45 -0
- package/test/app/memory-monitor.test.ts +332 -0
- package/test/app/navigation.test.tsx +29 -0
- package/test/app/onboarding-finish-lock.test.ts +500 -0
- package/test/app/onboarding-language.test.tsx +161 -0
- package/test/app/onboarding-steps.test.tsx +371 -0
- package/test/app/open-external-url.test.ts +65 -0
- package/test/app/pages-navigation-smoke.e2e.test.ts +633 -0
- package/test/app/pairing-lock.test.ts +260 -0
- package/test/app/pairing-view.test.tsx +74 -0
- package/test/app/permissions-section.test.ts +432 -0
- package/test/app/plugin-bridge.test.ts +109 -0
- package/test/app/plugins-ui.e2e.test.ts +605 -0
- package/test/app/plugins-view-game-modal.test.tsx +650 -0
- package/test/app/plugins-view-toggle-restart.test.ts +129 -0
- package/test/app/provider-dropdown-default.test.tsx +164 -0
- package/test/app/restart-banner.test.tsx +197 -0
- package/test/app/retake-capture.test.ts +84 -0
- package/test/app/sandbox-api-client.test.ts +108 -0
- package/test/app/save-command-modal.test.tsx +109 -0
- package/test/app/secrets-view.test.tsx +92 -0
- package/test/app/settings-control-styles.test.tsx +142 -0
- package/test/app/settings-reset.e2e.test.ts +728 -0
- package/test/app/settings-sections.e2e.test.ts +614 -0
- package/test/app/shared-format.test.ts +44 -0
- package/test/app/shared-switch.test.ts +69 -0
- package/test/app/shell-mode-switching.e2e.test.ts +829 -0
- package/test/app/shell-mode-tab-memory.test.tsx +283 -0
- package/test/app/shell-overlays.test.tsx +50 -0
- package/test/app/shortcuts-overlay.test.tsx +111 -0
- package/test/app/sse-interruption.test.ts +122 -0
- package/test/app/startup-asset-missing.e2e.test.ts +126 -0
- package/test/app/startup-backend-missing.e2e.test.ts +118 -0
- package/test/app/startup-chat.e2e.test.ts +305 -0
- package/test/app/startup-conversation-restore.test.tsx +344 -0
- package/test/app/startup-failure-view.test.tsx +103 -0
- package/test/app/startup-onboarding.e2e.test.ts +612 -0
- package/test/app/startup-timeout.test.tsx +80 -0
- package/test/app/startup-token-401.e2e.test.ts +103 -0
- package/test/app/stream-helpers.test.ts +46 -0
- package/test/app/stream-popout-navigation.test.tsx +41 -0
- package/test/app/stream-status-bar.test.tsx +89 -0
- package/test/app/theme-toggle.test.tsx +33 -0
- package/test/app/training-api-client.test.ts +128 -0
- package/test/app/trajectories-view.test.tsx +220 -0
- package/test/app/triggers-api-client.test.ts +77 -0
- package/test/app/triggers-navigation.test.ts +118 -0
- package/test/app/triggers-view.e2e.test.ts +674 -0
- package/test/app/update-channel-lock.test.ts +259 -0
- package/test/app/vector-browser.async-cleanup.test.tsx +367 -0
- package/test/app/vector-browser.e2e.test.ts +653 -0
- package/test/app/vrm-stage.test.tsx +351 -0
- package/test/app/vrm-viewer.test.tsx +298 -0
- package/test/app/wallet-api-save-lock.test.ts +277 -0
- package/test/app/wallet-hooks.test.ts +405 -0
- package/test/app/wallet-ui-flows.e2e.test.ts +556 -0
- package/test/avatar/asset-url.test.ts +90 -0
- package/test/avatar/avatar-selector.test.ts +173 -0
- package/test/avatar/mixamo-vrm-rig-map.test.ts +111 -0
- package/test/avatar/voice-chat-streaming-text.test.ts +96 -0
- package/test/avatar/voice-chat.test.ts +391 -0
- package/test/ui/command-palette-commands.test.ts +57 -0
- package/test/ui/ui-renderer.test.ts +39 -0
- package/tsconfig.build.json +19 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Media Gallery — browse photos, videos, and audio stored in agent databases.
|
|
4
|
+
*
|
|
5
|
+
* Queries known tables for records containing media URLs (image/video/audio
|
|
6
|
+
* file extensions or data URIs). All data flows through the generic database
|
|
7
|
+
* APIs (getDatabaseTables, executeDatabaseQuery).
|
|
8
|
+
*/
|
|
9
|
+
import { Button, Input } from "@elizaos/ui";
|
|
10
|
+
import { useCallback, useEffect, useState } from "react";
|
|
11
|
+
import { client } from "../api";
|
|
12
|
+
import { useApp } from "../state";
|
|
13
|
+
import { resolveAppAssetUrl } from "../utils";
|
|
14
|
+
const IMAGE_EXTS = /\.(png|jpe?g|gif|webp|svg|bmp|ico|avif)(\?|$)/i;
|
|
15
|
+
const VIDEO_EXTS = /\.(mp4|webm|mov|avi|mkv|ogv)(\?|$)/i;
|
|
16
|
+
const AUDIO_EXTS = /\.(mp3|wav|ogg|flac|aac|m4a|opus)(\?|$)/i;
|
|
17
|
+
const DATA_URI_IMG = /^data:image\//i;
|
|
18
|
+
const DATA_URI_VID = /^data:video\//i;
|
|
19
|
+
const DATA_URI_AUD = /^data:audio\//i;
|
|
20
|
+
const MEDIA_URL_PREFIX = /^(https?:|data:|blob:|file:|capacitor:|capacitor-electron:|app:|\/|\.\/|\.\.\/)/i;
|
|
21
|
+
function classifyUrl(url) {
|
|
22
|
+
if (IMAGE_EXTS.test(url) || DATA_URI_IMG.test(url))
|
|
23
|
+
return "image";
|
|
24
|
+
if (VIDEO_EXTS.test(url) || DATA_URI_VID.test(url))
|
|
25
|
+
return "video";
|
|
26
|
+
if (AUDIO_EXTS.test(url) || DATA_URI_AUD.test(url))
|
|
27
|
+
return "audio";
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
function filenameFromUrl(url) {
|
|
31
|
+
try {
|
|
32
|
+
const path = new URL(url, "https://placeholder").pathname;
|
|
33
|
+
const segments = path.split("/").filter(Boolean);
|
|
34
|
+
return segments[segments.length - 1] || "media";
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return "media";
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function looksLikePotentialMediaUrl(value) {
|
|
41
|
+
const candidate = value.trim();
|
|
42
|
+
if (!candidate)
|
|
43
|
+
return false;
|
|
44
|
+
if (classifyUrl(candidate))
|
|
45
|
+
return true;
|
|
46
|
+
return MEDIA_URL_PREFIX.test(candidate);
|
|
47
|
+
}
|
|
48
|
+
function normalizeMediaUrl(url) {
|
|
49
|
+
const candidate = url.trim();
|
|
50
|
+
if (!candidate)
|
|
51
|
+
return candidate;
|
|
52
|
+
return MEDIA_URL_PREFIX.test(candidate)
|
|
53
|
+
? resolveAppAssetUrl(candidate)
|
|
54
|
+
: candidate;
|
|
55
|
+
}
|
|
56
|
+
const FILTER_CHIPS = [
|
|
57
|
+
{ id: "all", label: "All" },
|
|
58
|
+
{ id: "image", label: "Images" },
|
|
59
|
+
{ id: "video", label: "Video" },
|
|
60
|
+
{ id: "audio", label: "Audio" },
|
|
61
|
+
];
|
|
62
|
+
/** Extract media URLs from arbitrary row data by scanning all string values. */
|
|
63
|
+
function extractMediaFromRows(rows, tableName) {
|
|
64
|
+
const items = [];
|
|
65
|
+
const seen = new Set();
|
|
66
|
+
for (const row of rows) {
|
|
67
|
+
const createdAt = String(row.createdAt ?? row.created_at ?? row.timestamp ?? "");
|
|
68
|
+
for (const val of Object.values(row)) {
|
|
69
|
+
if (typeof val !== "string")
|
|
70
|
+
continue;
|
|
71
|
+
// Try parsing as JSON content field (elizaOS memories store JSON in content)
|
|
72
|
+
const urls = extractUrlsFromValue(val);
|
|
73
|
+
for (const url of urls) {
|
|
74
|
+
const mediaType = classifyUrl(url);
|
|
75
|
+
if (mediaType && !seen.has(url)) {
|
|
76
|
+
seen.add(url);
|
|
77
|
+
items.push({
|
|
78
|
+
url,
|
|
79
|
+
type: mediaType,
|
|
80
|
+
filename: filenameFromUrl(url),
|
|
81
|
+
source: tableName,
|
|
82
|
+
createdAt,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return items;
|
|
89
|
+
}
|
|
90
|
+
/** Pull URLs out of a string value — handles plain URLs and JSON blobs. */
|
|
91
|
+
function extractUrlsFromValue(val) {
|
|
92
|
+
const urls = new Set();
|
|
93
|
+
// If it looks like JSON, parse it and search recursively
|
|
94
|
+
if (val.startsWith("{") || val.startsWith("[")) {
|
|
95
|
+
try {
|
|
96
|
+
const parsed = JSON.parse(val);
|
|
97
|
+
collectStrings(parsed, urls);
|
|
98
|
+
return Array.from(urls);
|
|
99
|
+
}
|
|
100
|
+
catch {
|
|
101
|
+
// not JSON, fall through to regex
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
// Absolute URL/scheme match
|
|
105
|
+
const urlRegex = /(?:https?:\/\/|file:\/\/|blob:|capacitor(?:-electron)?:\/\/|app:\/\/)[^\s"'<>]+/gi;
|
|
106
|
+
const matches = val.match(urlRegex);
|
|
107
|
+
if (matches) {
|
|
108
|
+
for (const match of matches)
|
|
109
|
+
urls.add(match);
|
|
110
|
+
}
|
|
111
|
+
// Relative/path-like token match
|
|
112
|
+
const tokens = val
|
|
113
|
+
.split(/[\s"'<>]+/)
|
|
114
|
+
.map((token) => token.replace(/^[([{]+/, "").replace(/[)\]},;.!?]+$/, ""));
|
|
115
|
+
for (const token of tokens) {
|
|
116
|
+
if (looksLikePotentialMediaUrl(token))
|
|
117
|
+
urls.add(token);
|
|
118
|
+
}
|
|
119
|
+
// Data URI match
|
|
120
|
+
if (val.startsWith("data:"))
|
|
121
|
+
urls.add(val);
|
|
122
|
+
return Array.from(urls);
|
|
123
|
+
}
|
|
124
|
+
function collectStrings(obj, out) {
|
|
125
|
+
if (typeof obj === "string") {
|
|
126
|
+
if (looksLikePotentialMediaUrl(obj))
|
|
127
|
+
out.add(obj.trim());
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
if (Array.isArray(obj)) {
|
|
131
|
+
for (const item of obj)
|
|
132
|
+
collectStrings(item, out);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (obj && typeof obj === "object") {
|
|
136
|
+
for (const v of Object.values(obj))
|
|
137
|
+
collectStrings(v, out);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
export function MediaGalleryView() {
|
|
141
|
+
const { t } = useApp();
|
|
142
|
+
const [media, setMedia] = useState([]);
|
|
143
|
+
const [loading, setLoading] = useState(true);
|
|
144
|
+
const [error, setError] = useState("");
|
|
145
|
+
const [filter, setFilter] = useState("all");
|
|
146
|
+
const [search, setSearch] = useState("");
|
|
147
|
+
const [lightboxItem, setLightboxItem] = useState(null);
|
|
148
|
+
const loadMedia = useCallback(async () => {
|
|
149
|
+
setLoading(true);
|
|
150
|
+
setError("");
|
|
151
|
+
try {
|
|
152
|
+
// Discover tables
|
|
153
|
+
const { tables } = await client.getDatabaseTables();
|
|
154
|
+
const allMedia = [];
|
|
155
|
+
// Scan tables likely to contain media: memories, messages, media, attachments, files
|
|
156
|
+
const mediaTableNames = tables
|
|
157
|
+
.map((t) => t.name)
|
|
158
|
+
.filter((name) => {
|
|
159
|
+
const n = name.toLowerCase();
|
|
160
|
+
return (n.includes("memor") ||
|
|
161
|
+
n.includes("message") ||
|
|
162
|
+
n.includes("media") ||
|
|
163
|
+
n.includes("attach") ||
|
|
164
|
+
n.includes("file") ||
|
|
165
|
+
n.includes("asset") ||
|
|
166
|
+
n.includes("document"));
|
|
167
|
+
});
|
|
168
|
+
// If no likely tables found, scan all tables with modest limits
|
|
169
|
+
const tablesToScan = mediaTableNames.length > 0
|
|
170
|
+
? mediaTableNames
|
|
171
|
+
: tables.map((t) => t.name);
|
|
172
|
+
const scanLimit = mediaTableNames.length > 0 ? 500 : 100;
|
|
173
|
+
for (const tableName of tablesToScan.slice(0, 10)) {
|
|
174
|
+
try {
|
|
175
|
+
const result = await client.executeDatabaseQuery(`SELECT * FROM "${tableName}" LIMIT ${scanLimit}`);
|
|
176
|
+
const items = extractMediaFromRows(result.rows, tableName);
|
|
177
|
+
allMedia.push(...items);
|
|
178
|
+
}
|
|
179
|
+
catch {
|
|
180
|
+
// skip tables that fail
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
// Sort by date descending
|
|
184
|
+
allMedia.sort((a, b) => {
|
|
185
|
+
if (!a.createdAt && !b.createdAt)
|
|
186
|
+
return 0;
|
|
187
|
+
if (!a.createdAt)
|
|
188
|
+
return 1;
|
|
189
|
+
if (!b.createdAt)
|
|
190
|
+
return -1;
|
|
191
|
+
return b.createdAt.localeCompare(a.createdAt);
|
|
192
|
+
});
|
|
193
|
+
setMedia(allMedia);
|
|
194
|
+
}
|
|
195
|
+
catch (err) {
|
|
196
|
+
setError(`Failed to load media: ${err instanceof Error ? err.message : "error"}`);
|
|
197
|
+
}
|
|
198
|
+
setLoading(false);
|
|
199
|
+
}, []);
|
|
200
|
+
useEffect(() => {
|
|
201
|
+
loadMedia();
|
|
202
|
+
}, [loadMedia]);
|
|
203
|
+
const filtered = media.filter((m) => {
|
|
204
|
+
if (filter !== "all" && m.type !== filter)
|
|
205
|
+
return false;
|
|
206
|
+
if (search &&
|
|
207
|
+
!m.filename.toLowerCase().includes(search.toLowerCase()) &&
|
|
208
|
+
!m.url.toLowerCase().includes(search.toLowerCase()))
|
|
209
|
+
return false;
|
|
210
|
+
return true;
|
|
211
|
+
});
|
|
212
|
+
return (_jsxs("div", { children: [_jsxs("div", { className: "flex flex-wrap items-center gap-3 mb-4", children: [_jsx(Input, { type: "text", placeholder: t("mediagalleryview.SearchMedia"), value: search, onChange: (e) => setSearch(e.target.value), className: "px-2.5 py-1.5 h-8 text-xs w-[200px] shadow-sm bg-[var(--card)]" }), _jsx("div", { className: "flex gap-1", children: FILTER_CHIPS.map((chip) => (_jsx(Button, { variant: filter === chip.id ? "default" : "outline", size: "sm", className: `px-3 py-1 h-7 text-xs shadow-sm transition-colors ${filter === chip.id
|
|
213
|
+
? ""
|
|
214
|
+
: "bg-transparent text-[var(--muted)] hover:text-[var(--txt)] border-[var(--border)]"}`, onClick: () => setFilter(chip.id), children: chip.label }, chip.id))) }), _jsxs("span", { className: "text-[11px] text-[var(--muted)] ml-auto", children: [filtered.length, " ", t("mediagalleryview.item"), filtered.length !== 1 ? "s" : ""] })] }), error && (_jsx("div", { className: "p-2.5 border border-[var(--danger)] text-[var(--danger)] text-xs mb-3", children: error })), loading ? (_jsx("div", { className: "text-center py-16 text-[var(--muted)] text-sm italic", children: t("mediagalleryview.ScanningForMedia") })) : filtered.length === 0 ? (_jsxs("div", { className: "text-center py-16", children: [_jsx("div", { className: "text-[var(--muted)] text-sm mb-2", children: t("mediagalleryview.NoMediaFound") }), _jsx("div", { className: "text-[var(--muted)] text-xs", children: media.length === 0
|
|
215
|
+
? "No images, videos, or audio files were detected in the database."
|
|
216
|
+
: "No items match the current filter." })] })) : (_jsx("div", { className: "grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-3", children: filtered.map((item, i) => (_jsxs("button", { type: "button", className: "bg-[var(--card)] border border-[var(--border)] p-0 cursor-pointer text-left hover:border-[var(--accent)] transition-colors group", onClick: () => setLightboxItem(item), children: [_jsx("div", { className: "w-full aspect-square bg-[var(--bg)] flex items-center justify-center overflow-hidden", children: item.type === "image" ? (_jsx("img", { src: normalizeMediaUrl(item.url), alt: item.filename, className: "w-full h-full object-cover", loading: "lazy", onError: (e) => {
|
|
217
|
+
const image = e.target;
|
|
218
|
+
image.style.display = "none";
|
|
219
|
+
if (image.parentElement) {
|
|
220
|
+
image.parentElement.innerHTML =
|
|
221
|
+
'<span style="font-size:24px">🖼</span>';
|
|
222
|
+
}
|
|
223
|
+
} })) : item.type === "video" ? (_jsx("span", { className: "text-2xl opacity-50", children: "\uD83C\uDFAC" })) : (_jsx("span", { className: "text-2xl opacity-50", children: "\uD83C\uDFB5" })) }), _jsxs("div", { className: "p-2", children: [_jsx("div", { className: "text-[11px] text-[var(--txt)] truncate", children: item.filename }), _jsxs("div", { className: "flex items-center gap-1 mt-1", children: [_jsx("span", { className: `text-[9px] px-1.5 py-0.5 uppercase font-bold ${item.type === "image"
|
|
224
|
+
? "bg-blue-500/20 text-blue-400"
|
|
225
|
+
: item.type === "video"
|
|
226
|
+
? "bg-purple-500/20 text-purple-400"
|
|
227
|
+
: "bg-green-500/20 text-green-400"}`, children: item.type }), _jsx("span", { className: "text-[9px] text-[var(--muted)] truncate", children: item.source })] })] })] }, `${item.url}-${i}`))) })), lightboxItem && (_jsx("div", { className: "fixed inset-0 bg-black/80 z-50 flex items-center justify-center p-8", onClick: (e) => {
|
|
228
|
+
if (e.target === e.currentTarget)
|
|
229
|
+
setLightboxItem(null);
|
|
230
|
+
}, onKeyDown: (e) => {
|
|
231
|
+
if (e.key === "Escape" || e.key === "Enter" || e.key === " ") {
|
|
232
|
+
e.preventDefault();
|
|
233
|
+
setLightboxItem(null);
|
|
234
|
+
}
|
|
235
|
+
}, role: "dialog", "aria-modal": "true", children: _jsxs("div", { className: "bg-[var(--card)] border border-[var(--border)] max-w-[90vw] max-h-[90vh] overflow-auto", children: [_jsxs("div", { className: "flex items-center justify-between p-3 border-b border-[var(--border)]", children: [_jsx("div", { className: "text-xs text-[var(--txt)] font-medium truncate mr-4", children: lightboxItem.filename }), _jsx("button", { type: "button", className: "text-[var(--muted)] hover:text-[var(--txt)] bg-transparent border-0 cursor-pointer text-lg px-2", onClick: () => setLightboxItem(null), children: "\u00D7" })] }), _jsx("div", { className: "p-4 flex items-center justify-center min-h-[200px]", children: lightboxItem.type === "image" ? (_jsx("img", { src: normalizeMediaUrl(lightboxItem.url), alt: lightboxItem.filename, className: "max-w-full max-h-[70vh] object-contain" })) : lightboxItem.type === "video" ? (_jsx("video", { src: normalizeMediaUrl(lightboxItem.url), controls: true, className: "max-w-full max-h-[70vh]", children: _jsx("track", { kind: "captions" }) })) : (_jsx("audio", { src: normalizeMediaUrl(lightboxItem.url), controls: true, className: "w-full max-w-[400px]", children: _jsx("track", { kind: "captions" }) })) }), _jsxs("div", { className: "p-3 border-t border-[var(--border)] text-[11px] text-[var(--muted)] flex gap-4", children: [_jsxs("span", { children: [t("mediagalleryview.Type"), " ", lightboxItem.type] }), _jsxs("span", { children: [t("mediagalleryview.Source"), " ", lightboxItem.source] }), lightboxItem.createdAt && (_jsxs("span", { children: [t("mediagalleryview.Date"), " ", lightboxItem.createdAt] }))] })] }) }))] }));
|
|
236
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MediaSettingsSection — provider selection + config for media generation.
|
|
3
|
+
*
|
|
4
|
+
* Follows the TTS pattern from CharacterView:
|
|
5
|
+
* - "cloud" vs "own-key" mode toggle
|
|
6
|
+
* - Provider button grid
|
|
7
|
+
* - Conditional API key inputs
|
|
8
|
+
* - Status badges (Configured / Needs Setup)
|
|
9
|
+
*/
|
|
10
|
+
export declare function MediaSettingsSection(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=MediaSettingsSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaSettingsSection.d.ts","sourceRoot":"","sources":["../../src/components/MediaSettingsSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA+OH,wBAAgB,oBAAoB,4CAqoBnC"}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* MediaSettingsSection — provider selection + config for media generation.
|
|
4
|
+
*
|
|
5
|
+
* Follows the TTS pattern from CharacterView:
|
|
6
|
+
* - "cloud" vs "own-key" mode toggle
|
|
7
|
+
* - Provider button grid
|
|
8
|
+
* - Conditional API key inputs
|
|
9
|
+
* - Status badges (Configured / Needs Setup)
|
|
10
|
+
*/
|
|
11
|
+
import { Button, Input } from "@elizaos/ui";
|
|
12
|
+
import { useCallback, useEffect, useState } from "react";
|
|
13
|
+
import { client, } from "../api";
|
|
14
|
+
import { useTimeout } from "../hooks";
|
|
15
|
+
import { useApp } from "../state";
|
|
16
|
+
import { CloudConnectionStatus, CloudSourceModeToggle, } from "./CloudSourceControls";
|
|
17
|
+
import { ConfigSaveFooter } from "./ConfigSaveFooter";
|
|
18
|
+
const IMAGE_PROVIDERS = [
|
|
19
|
+
{
|
|
20
|
+
id: "cloud",
|
|
21
|
+
label: "Eliza Cloud",
|
|
22
|
+
hint: "mediasettingssection.ProviderHintNoSetup",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "fal",
|
|
26
|
+
label: "FAL.ai",
|
|
27
|
+
hint: "mediasettingssection.ProviderHintFalImage",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "openai",
|
|
31
|
+
label: "OpenAI",
|
|
32
|
+
hint: "mediasettingssection.ProviderHintOpenAIImage",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: "google",
|
|
36
|
+
label: "Google",
|
|
37
|
+
hint: "mediasettingssection.ProviderHintGoogleImage",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "xai",
|
|
41
|
+
label: "xAI",
|
|
42
|
+
hint: "mediasettingssection.ProviderHintXAIAurora",
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
const VIDEO_PROVIDERS = [
|
|
46
|
+
{
|
|
47
|
+
id: "cloud",
|
|
48
|
+
label: "Eliza Cloud",
|
|
49
|
+
hint: "mediasettingssection.ProviderHintNoSetup",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "fal",
|
|
53
|
+
label: "FAL.ai",
|
|
54
|
+
hint: "mediasettingssection.ProviderHintFalVideo",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "openai",
|
|
58
|
+
label: "OpenAI",
|
|
59
|
+
hint: "mediasettingssection.ProviderHintOpenAIVideo",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "google",
|
|
63
|
+
label: "Google",
|
|
64
|
+
hint: "mediasettingssection.ProviderHintGoogleVideo",
|
|
65
|
+
},
|
|
66
|
+
];
|
|
67
|
+
const AUDIO_PROVIDERS = [
|
|
68
|
+
{
|
|
69
|
+
id: "cloud",
|
|
70
|
+
label: "Eliza Cloud",
|
|
71
|
+
hint: "mediasettingssection.ProviderHintNoSetup",
|
|
72
|
+
},
|
|
73
|
+
{ id: "suno", label: "Suno", hint: "mediasettingssection.ProviderHintSuno" },
|
|
74
|
+
{
|
|
75
|
+
id: "elevenlabs",
|
|
76
|
+
label: "ElevenLabs",
|
|
77
|
+
hint: "mediasettingssection.ProviderHintElevenLabs",
|
|
78
|
+
},
|
|
79
|
+
];
|
|
80
|
+
const VISION_PROVIDERS = [
|
|
81
|
+
{
|
|
82
|
+
id: "cloud",
|
|
83
|
+
label: "Eliza Cloud",
|
|
84
|
+
hint: "mediasettingssection.ProviderHintNoSetup",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "openai",
|
|
88
|
+
label: "OpenAI",
|
|
89
|
+
hint: "mediasettingssection.ProviderHintOpenAIVision",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: "google",
|
|
93
|
+
label: "Google",
|
|
94
|
+
hint: "mediasettingssection.ProviderHintGoogleVision",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: "anthropic",
|
|
98
|
+
label: "Anthropic",
|
|
99
|
+
hint: "mediasettingssection.ProviderHintAnthropicVision",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: "xai",
|
|
103
|
+
label: "xAI",
|
|
104
|
+
hint: "mediasettingssection.ProviderHintXAIVision",
|
|
105
|
+
},
|
|
106
|
+
];
|
|
107
|
+
const CATEGORY_LABELS = {
|
|
108
|
+
image: "mediasettingssection.ImageGeneration",
|
|
109
|
+
video: "mediasettingssection.VideoGeneration",
|
|
110
|
+
audio: "mediasettingssection.AudioMusic",
|
|
111
|
+
vision: "mediasettingssection.VisionAnalysis",
|
|
112
|
+
};
|
|
113
|
+
function getProvidersForCategory(category) {
|
|
114
|
+
switch (category) {
|
|
115
|
+
case "image":
|
|
116
|
+
return IMAGE_PROVIDERS;
|
|
117
|
+
case "video":
|
|
118
|
+
return VIDEO_PROVIDERS;
|
|
119
|
+
case "audio":
|
|
120
|
+
return AUDIO_PROVIDERS;
|
|
121
|
+
case "vision":
|
|
122
|
+
return VISION_PROVIDERS;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
function getApiKeyField(category, provider) {
|
|
126
|
+
if (provider === "cloud")
|
|
127
|
+
return null;
|
|
128
|
+
switch (category) {
|
|
129
|
+
case "image":
|
|
130
|
+
case "video":
|
|
131
|
+
if (provider === "fal")
|
|
132
|
+
return {
|
|
133
|
+
path: `${category}.fal.apiKey`,
|
|
134
|
+
labelKey: "mediasettingssection.FalApiKey",
|
|
135
|
+
};
|
|
136
|
+
if (provider === "openai")
|
|
137
|
+
return {
|
|
138
|
+
path: `${category}.openai.apiKey`,
|
|
139
|
+
labelKey: "mediasettingssection.OpenAIApiKey",
|
|
140
|
+
};
|
|
141
|
+
if (provider === "google")
|
|
142
|
+
return {
|
|
143
|
+
path: `${category}.google.apiKey`,
|
|
144
|
+
labelKey: "mediasettingssection.GoogleApiKey",
|
|
145
|
+
};
|
|
146
|
+
if (provider === "xai")
|
|
147
|
+
return {
|
|
148
|
+
path: `${category}.xai.apiKey`,
|
|
149
|
+
labelKey: "mediasettingssection.XAIApiKey",
|
|
150
|
+
};
|
|
151
|
+
break;
|
|
152
|
+
case "audio":
|
|
153
|
+
if (provider === "suno")
|
|
154
|
+
return {
|
|
155
|
+
path: "audio.suno.apiKey",
|
|
156
|
+
labelKey: "mediasettingssection.SunoApiKey",
|
|
157
|
+
};
|
|
158
|
+
if (provider === "elevenlabs")
|
|
159
|
+
return {
|
|
160
|
+
path: "audio.elevenlabs.apiKey",
|
|
161
|
+
labelKey: "mediasettingssection.ElevenLabsApiKey",
|
|
162
|
+
};
|
|
163
|
+
break;
|
|
164
|
+
case "vision":
|
|
165
|
+
if (provider === "openai")
|
|
166
|
+
return {
|
|
167
|
+
path: "vision.openai.apiKey",
|
|
168
|
+
labelKey: "mediasettingssection.OpenAIApiKey",
|
|
169
|
+
};
|
|
170
|
+
if (provider === "google")
|
|
171
|
+
return {
|
|
172
|
+
path: "vision.google.apiKey",
|
|
173
|
+
labelKey: "mediasettingssection.GoogleApiKey",
|
|
174
|
+
};
|
|
175
|
+
if (provider === "anthropic")
|
|
176
|
+
return {
|
|
177
|
+
path: "vision.anthropic.apiKey",
|
|
178
|
+
labelKey: "mediasettingssection.AnthropicApiKey",
|
|
179
|
+
};
|
|
180
|
+
if (provider === "xai")
|
|
181
|
+
return {
|
|
182
|
+
path: "vision.xai.apiKey",
|
|
183
|
+
labelKey: "mediasettingssection.XAIApiKey",
|
|
184
|
+
};
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
189
|
+
function getNestedValue(obj, path) {
|
|
190
|
+
const parts = path.split(".");
|
|
191
|
+
let current = obj;
|
|
192
|
+
for (const part of parts) {
|
|
193
|
+
if (current == null || typeof current !== "object")
|
|
194
|
+
return undefined;
|
|
195
|
+
current = current[part];
|
|
196
|
+
}
|
|
197
|
+
return current;
|
|
198
|
+
}
|
|
199
|
+
function setNestedValue(obj, path, value) {
|
|
200
|
+
const parts = path.split(".");
|
|
201
|
+
const result = structuredClone(obj);
|
|
202
|
+
let current = result;
|
|
203
|
+
for (let i = 0; i < parts.length - 1; i++) {
|
|
204
|
+
const part = parts[i];
|
|
205
|
+
if (current[part] == null || typeof current[part] !== "object") {
|
|
206
|
+
current[part] = {};
|
|
207
|
+
}
|
|
208
|
+
current = current[part];
|
|
209
|
+
}
|
|
210
|
+
current[parts[parts.length - 1]] = value;
|
|
211
|
+
return result;
|
|
212
|
+
}
|
|
213
|
+
export function MediaSettingsSection() {
|
|
214
|
+
const { setTimeout } = useTimeout();
|
|
215
|
+
const { t } = useApp();
|
|
216
|
+
const { elizaCloudConnected } = useApp();
|
|
217
|
+
const [mediaConfig, setMediaConfig] = useState({});
|
|
218
|
+
const [loading, setLoading] = useState(true);
|
|
219
|
+
const [saving, setSaving] = useState(false);
|
|
220
|
+
const [saveSuccess, setSaveSuccess] = useState(false);
|
|
221
|
+
const [saveError, setSaveError] = useState(null);
|
|
222
|
+
const [activeTab, setActiveTab] = useState("image");
|
|
223
|
+
const [dirty, setDirty] = useState(false);
|
|
224
|
+
// Load config on mount
|
|
225
|
+
useEffect(() => {
|
|
226
|
+
void (async () => {
|
|
227
|
+
setLoading(true);
|
|
228
|
+
const cfg = await client.getConfig();
|
|
229
|
+
setMediaConfig(cfg.media ?? {});
|
|
230
|
+
setLoading(false);
|
|
231
|
+
})();
|
|
232
|
+
}, []);
|
|
233
|
+
// Get current category config
|
|
234
|
+
const getCategoryConfig = useCallback((category) => {
|
|
235
|
+
return (mediaConfig[category] ?? {});
|
|
236
|
+
}, [mediaConfig]);
|
|
237
|
+
// Get mode for category
|
|
238
|
+
const getMode = useCallback((category) => {
|
|
239
|
+
const cfg = getCategoryConfig(category);
|
|
240
|
+
return cfg.mode ?? "cloud";
|
|
241
|
+
}, [getCategoryConfig]);
|
|
242
|
+
// Get provider for category
|
|
243
|
+
const getProvider = useCallback((category) => {
|
|
244
|
+
const cfg = getCategoryConfig(category);
|
|
245
|
+
return cfg.provider ?? "cloud";
|
|
246
|
+
}, [getCategoryConfig]);
|
|
247
|
+
// Update category config
|
|
248
|
+
const updateCategoryConfig = useCallback((category, updates) => {
|
|
249
|
+
setMediaConfig((prev) => ({
|
|
250
|
+
...prev,
|
|
251
|
+
[category]: {
|
|
252
|
+
...(prev[category] ?? {}),
|
|
253
|
+
...updates,
|
|
254
|
+
},
|
|
255
|
+
}));
|
|
256
|
+
setDirty(true);
|
|
257
|
+
}, []);
|
|
258
|
+
// Update nested value in config
|
|
259
|
+
const updateNestedValue = useCallback((path, value) => {
|
|
260
|
+
setMediaConfig((prev) => setNestedValue(prev, path, value));
|
|
261
|
+
setDirty(true);
|
|
262
|
+
}, []);
|
|
263
|
+
// Save handler
|
|
264
|
+
const handleSave = useCallback(async () => {
|
|
265
|
+
setSaving(true);
|
|
266
|
+
setSaveError(null);
|
|
267
|
+
setSaveSuccess(false);
|
|
268
|
+
await client.updateConfig({ media: mediaConfig });
|
|
269
|
+
setSaveSuccess(true);
|
|
270
|
+
setDirty(false);
|
|
271
|
+
setTimeout(() => setSaveSuccess(false), 2500);
|
|
272
|
+
setSaving(false);
|
|
273
|
+
}, [mediaConfig, setTimeout]);
|
|
274
|
+
// Check if provider is configured
|
|
275
|
+
const isProviderConfigured = useCallback((category) => {
|
|
276
|
+
const mode = getMode(category);
|
|
277
|
+
if (mode === "cloud")
|
|
278
|
+
return elizaCloudConnected;
|
|
279
|
+
const provider = getProvider(category);
|
|
280
|
+
const apiKeyField = getApiKeyField(category, provider);
|
|
281
|
+
if (!apiKeyField)
|
|
282
|
+
return true;
|
|
283
|
+
const value = getNestedValue(mediaConfig, apiKeyField.path);
|
|
284
|
+
return typeof value === "string" && value.length > 0;
|
|
285
|
+
}, [getMode, getProvider, mediaConfig, elizaCloudConnected]);
|
|
286
|
+
if (loading) {
|
|
287
|
+
return (_jsx("div", { className: "py-8 text-center text-[var(--muted)] text-xs", children: t("mediasettingssection.LoadingMediaConfig") }));
|
|
288
|
+
}
|
|
289
|
+
const currentMode = getMode(activeTab);
|
|
290
|
+
const currentProvider = getProvider(activeTab);
|
|
291
|
+
const providers = getProvidersForCategory(activeTab);
|
|
292
|
+
const apiKeyField = getApiKeyField(activeTab, currentProvider);
|
|
293
|
+
const configured = isProviderConfigured(activeTab);
|
|
294
|
+
return (_jsxs("div", { className: "flex flex-col gap-4", children: [_jsx("div", { className: "flex gap-1 rounded-xl border border-border bg-card/50 p-1 shrink-0", children: ["image", "video", "audio", "vision"].map((cat) => {
|
|
295
|
+
const active = activeTab === cat;
|
|
296
|
+
const catConfigured = isProviderConfigured(cat);
|
|
297
|
+
return (_jsxs(Button, { variant: active ? "default" : "ghost", size: "sm", className: `flex-1 h-9 rounded-lg border border-transparent px-3 py-2 text-xs font-semibold ${active
|
|
298
|
+
? "bg-accent text-accent-foreground shadow-sm"
|
|
299
|
+
: "text-muted hover:bg-bg-hover hover:text-txt"}`, onClick: () => setActiveTab(cat), children: [_jsx("span", { children: t(CATEGORY_LABELS[cat]) }), _jsx("span", { className: `ml-1.5 inline-block w-1.5 h-1.5 rounded-full ${catConfigured ? "bg-green-500" : "bg-border-strong"}` })] }, cat));
|
|
300
|
+
}) }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("span", { className: "text-xs font-semibold text-[var(--muted)]", children: t("mediasettingssection.APISource") }), _jsx(CloudSourceModeToggle, { mode: currentMode, onChange: (mode) => {
|
|
301
|
+
if (mode === "cloud") {
|
|
302
|
+
updateCategoryConfig(activeTab, {
|
|
303
|
+
mode: "cloud",
|
|
304
|
+
provider: "cloud",
|
|
305
|
+
});
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
updateCategoryConfig(activeTab, { mode: "own-key" });
|
|
309
|
+
} }), _jsx("span", { className: `ml-auto rounded-full border px-2 py-0.5 text-[10px] ${configured
|
|
310
|
+
? "border-green-600 bg-green-600/10 text-[var(--text)]"
|
|
311
|
+
: "border-[var(--warn)] bg-[var(--warn-subtle)] text-[var(--text)]"}`, children: configured
|
|
312
|
+
? t("mediasettingssection.Configured")
|
|
313
|
+
: t("mediasettingssection.NeedsSetup") })] }), currentMode === "cloud" && (_jsx(CloudConnectionStatus, { connected: elizaCloudConnected, disconnectedText: t("elizaclouddashboard.ElizaCloudNotConnectedSettings") })), currentMode === "own-key" && (_jsxs("div", { className: "flex flex-col gap-3", children: [_jsx("div", { className: "text-xs font-semibold text-[var(--muted)]", children: t("mediasettingssection.Provider") }), _jsx("div", { className: "grid gap-1.5", style: { gridTemplateColumns: `repeat(${providers.length}, 1fr)` }, children: providers
|
|
314
|
+
.filter((p) => p.id !== "cloud")
|
|
315
|
+
.map((p) => {
|
|
316
|
+
const active = currentProvider === p.id;
|
|
317
|
+
return (_jsxs(Button, { variant: "outline", size: "sm", className: `h-auto px-3 py-2 text-xs font-normal rounded-lg border border-border ${active
|
|
318
|
+
? "bg-accent/10 border-accent text-txt"
|
|
319
|
+
: "bg-card text-txt hover:bg-bg-hover"}`, onClick: () => updateCategoryConfig(activeTab, {
|
|
320
|
+
provider: p.id,
|
|
321
|
+
}), children: [_jsx("div", { className: "font-semibold", children: p.id === "cloud"
|
|
322
|
+
? t("elizaclouddashboard.ElizaCloud")
|
|
323
|
+
: p.label }), _jsx("div", { className: "text-[10px] text-muted mt-0.5", children: p.id === "cloud"
|
|
324
|
+
? t("elizaclouddashboard.NoSetupNeeded")
|
|
325
|
+
: t(p.hint) })] }, p.id));
|
|
326
|
+
}) }), apiKeyField && (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("span", { className: "text-xs font-semibold", children: t(apiKeyField.labelKey) }), _jsx(Input, { type: "password", className: "h-9 px-3 py-2 bg-card border-border text-xs rounded-lg shadow-sm focus-visible:ring-1 focus-visible:ring-accent", placeholder: getNestedValue(mediaConfig, apiKeyField.path)
|
|
327
|
+
? t("mediasettingssection.ApiKeySetLeaveBlank")
|
|
328
|
+
: t("mediasettingssection.EnterApiKey"), onChange: (e) => updateNestedValue(apiKeyField.path, e.target.value || undefined) })] })), activeTab === "image" && currentProvider === "fal" && (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("span", { className: "text-xs font-semibold", children: t("mediasettingssection.Model") }), _jsxs("select", { className: "px-2.5 py-1.5 border border-[var(--border)] bg-[var(--card)] text-xs focus:border-[var(--accent)] focus:outline-none rounded-lg", value: getNestedValue(mediaConfig, "image.fal.model") ?? "fal-ai/flux-pro", onChange: (e) => updateNestedValue("image.fal.model", e.target.value), children: [_jsxs("optgroup", { label: t("mediasettingssection.Flux"), children: [_jsx("option", { value: "fal-ai/flux-pro", children: t("mediasettingssection.FluxPro") }), _jsx("option", { value: "fal-ai/flux-pro/v1.1", children: t("mediasettingssection.FluxProV11") }), _jsx("option", { value: "fal-ai/flux-pro/kontext", children: t("mediasettingssection.FluxKontextPro") }), _jsx("option", { value: "fal-ai/flux-2-flex", children: t("mediasettingssection.Flux2Flex") }), _jsx("option", { value: "fal-ai/flux/dev", children: t("mediasettingssection.FluxDev") }), _jsx("option", { value: "fal-ai/flux/schnell", children: t("mediasettingssection.FluxSchnell") }), _jsx("option", { value: "fal-ai/fast-flux", children: t("mediasettingssection.FastFlux") })] }), _jsxs("optgroup", { label: t("mediasettingssection.OtherModels"), children: [_jsx("option", { value: "fal-ai/nano-banana-pro", children: t("mediasettingssection.NanoBananaProGoo") }), _jsx("option", { value: "fal-ai/recraft/v3/text-to-image", children: t("mediasettingssection.RecraftV3") }), _jsx("option", { value: "fal-ai/kling-image/v3/text-to-image", children: t("mediasettingssection.KlingImageV3") }), _jsx("option", { value: "fal-ai/kling-image/o3/text-to-image", children: t("mediasettingssection.KlingImageO3") }), _jsx("option", { value: "xai/grok-imagine-image", children: t("mediasettingssection.GrokImagineXAI") }), _jsx("option", { value: "fal-ai/stable-diffusion-3", children: t("mediasettingssection.StableDiffusion3") })] })] })] })), activeTab === "image" && currentProvider === "openai" && (_jsxs("div", { className: "flex gap-3", children: [_jsxs("div", { className: "flex-1 flex flex-col gap-1.5", children: [_jsx("span", { className: "text-xs font-semibold", children: t("mediasettingssection.Model") }), _jsxs("select", { className: "px-2.5 py-1.5 border border-[var(--border)] bg-[var(--card)] text-xs focus:border-[var(--accent)] focus:outline-none rounded-lg", value: getNestedValue(mediaConfig, "image.openai.model") ?? "dall-e-3", onChange: (e) => updateNestedValue("image.openai.model", e.target.value), children: [_jsx("option", { value: "dall-e-3", children: t("mediasettingssection.DALLE3") }), _jsx("option", { value: "dall-e-2", children: t("mediasettingssection.DALLE2") })] })] }), _jsxs("div", { className: "flex-1 flex flex-col gap-1.5", children: [_jsx("span", { className: "text-xs font-semibold", children: t("mediasettingssection.Quality") }), _jsxs("select", { className: "px-2.5 py-1.5 border border-[var(--border)] bg-[var(--card)] text-xs focus:border-[var(--accent)] focus:outline-none rounded-lg", value: getNestedValue(mediaConfig, "image.openai.quality") ?? "standard", onChange: (e) => updateNestedValue("image.openai.quality", e.target.value), children: [_jsx("option", { value: "standard", children: t("mediasettingssection.Standard") }), _jsx("option", { value: "hd", children: "HD" })] })] })] })), activeTab === "video" && currentProvider === "fal" && (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("span", { className: "text-xs font-semibold", children: t("mediasettingssection.Model") }), _jsxs("select", { className: "px-2.5 py-1.5 border border-[var(--border)] bg-[var(--card)] text-xs focus:border-[var(--accent)] focus:outline-none rounded-lg", value: getNestedValue(mediaConfig, "video.fal.model") ?? "fal-ai/kling-video/v3/pro/text-to-video", onChange: (e) => updateNestedValue("video.fal.model", e.target.value), children: [_jsxs("optgroup", { label: t("mediasettingssection.TextToVideo"), children: [_jsx("option", { value: "fal-ai/veo3.1", children: t("mediasettingssection.Veo31Google") }), _jsx("option", { value: "fal-ai/veo3.1/fast", children: t("mediasettingssection.Veo31Fast") }), _jsx("option", { value: "fal-ai/sora-2/text-to-video", children: t("mediasettingssection.Sora2") }), _jsx("option", { value: "fal-ai/sora-2/text-to-video/pro", children: t("mediasettingssection.Sora2Pro") }), _jsx("option", { value: "fal-ai/kling-video/v3/pro/text-to-video", children: t("mediasettingssection.Kling30Pro") }), _jsx("option", { value: "fal-ai/kling-video/v3/standard/text-to-video", children: t("mediasettingssection.Kling30") }), _jsx("option", { value: "fal-ai/kling-video/o3/pro/text-to-video", children: t("mediasettingssection.KlingO3Pro") }), _jsx("option", { value: "fal-ai/kling-video/o3/standard/text-to-video", children: t("mediasettingssection.KlingO3") }), _jsx("option", { value: "xai/grok-imagine-video/text-to-video", children: t("mediasettingssection.GrokVideoXAI") }), _jsx("option", { value: "fal-ai/minimax/video-01-live", children: t("mediasettingssection.MinimaxHailuo") }), _jsx("option", { value: "fal-ai/hunyuan-video", children: t("mediasettingssection.HunyuanVideo") }), _jsx("option", { value: "fal-ai/mochi-v1", children: t("mediasettingssection.Mochi1") }), _jsx("option", { value: "fal-ai/wan/v2.2-a14b/text-to-video", children: t("mediasettingssection.Wan22") })] }), _jsxs("optgroup", { label: t("mediasettingssection.ImageToVideo"), children: [_jsx("option", { value: "fal-ai/kling-video/v3/pro/image-to-video", children: t("mediasettingssection.Kling30Pro") }), _jsx("option", { value: "fal-ai/kling-video/o3/standard/image-to-video", children: t("mediasettingssection.KlingO3") }), _jsx("option", { value: "fal-ai/veo3.1/image-to-video", children: t("mediasettingssection.Veo31") }), _jsx("option", { value: "fal-ai/veo3.1/fast/image-to-video", children: t("mediasettingssection.Veo31Fast") }), _jsx("option", { value: "fal-ai/sora-2/image-to-video", children: t("mediasettingssection.Sora2") }), _jsx("option", { value: "fal-ai/sora-2/image-to-video/pro", children: t("mediasettingssection.Sora2Pro") }), _jsx("option", { value: "xai/grok-imagine-video/image-to-video", children: t("mediasettingssection.GrokXAI") }), _jsx("option", { value: "fal-ai/minimax/video-01-live/image-to-video", children: t("mediasettingssection.MinimaxHailuo") }), _jsx("option", { value: "fal-ai/luma-dream-machine/image-to-video", children: t("mediasettingssection.LumaDreamMachine") }), _jsx("option", { value: "fal-ai/pixverse/v4.5/image-to-video", children: t("mediasettingssection.PixverseV45") }), _jsx("option", { value: "fal-ai/ltx-2-19b/image-to-video", children: t("mediasettingssection.LTX219B") })] })] })] })), activeTab === "audio" && currentProvider === "suno" && (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("span", { className: "text-xs font-semibold", children: t("mediasettingssection.Model") }), _jsxs("select", { className: "px-2.5 py-1.5 border border-[var(--border)] bg-[var(--card)] text-xs focus:border-[var(--accent)] focus:outline-none rounded-lg", value: getNestedValue(mediaConfig, "audio.suno.model") ?? "chirp-v3.5", onChange: (e) => updateNestedValue("audio.suno.model", e.target.value), children: [_jsx("option", { value: "chirp-v3.5", children: t("mediasettingssection.ChirpV35") }), _jsx("option", { value: "chirp-v3", children: t("mediasettingssection.ChirpV3") })] })] })), activeTab === "audio" && currentProvider === "elevenlabs" && (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("span", { className: "text-xs font-semibold", children: t("mediasettingssection.MaxDurationSecond") }), _jsx(Input, { type: "number", min: 0.5, max: 22, step: 0.5, className: "h-9 px-3 py-2 bg-card border-border text-xs rounded-lg shadow-sm focus-visible:ring-1 focus-visible:ring-accent w-24", value: getNestedValue(mediaConfig, "audio.elevenlabs.duration") ?? 5, onChange: (e) => updateNestedValue("audio.elevenlabs.duration", parseFloat(e.target.value)) })] })), activeTab === "vision" && currentProvider === "openai" && (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("span", { className: "text-xs font-semibold", children: t("mediasettingssection.Model") }), _jsxs("select", { className: "px-2.5 py-1.5 border border-[var(--border)] bg-[var(--card)] text-xs focus:border-[var(--accent)] focus:outline-none rounded-lg", value: getNestedValue(mediaConfig, "vision.openai.model") ?? "gpt-4o", onChange: (e) => updateNestedValue("vision.openai.model", e.target.value), children: [_jsx("option", { value: "gpt-4o", children: t("mediasettingssection.GPT4o") }), _jsx("option", { value: "gpt-4o-mini", children: t("mediasettingssection.GPT4oMini") }), _jsx("option", { value: "gpt-4-turbo", children: t("mediasettingssection.GPT4Turbo") })] })] })), activeTab === "vision" && currentProvider === "google" && (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("span", { className: "text-xs font-semibold", children: t("mediasettingssection.Model") }), _jsxs("select", { className: "px-2.5 py-1.5 border border-[var(--border)] bg-[var(--card)] text-xs focus:border-[var(--accent)] focus:outline-none rounded-lg", value: getNestedValue(mediaConfig, "vision.google.model") ?? "gemini-2.0-flash", onChange: (e) => updateNestedValue("vision.google.model", e.target.value), children: [_jsx("option", { value: "gemini-2.0-flash", children: t("mediasettingssection.Gemini20Flash") }), _jsx("option", { value: "gemini-1.5-pro", children: t("mediasettingssection.Gemini15Pro") }), _jsx("option", { value: "gemini-1.5-flash", children: t("mediasettingssection.Gemini15Flash") })] })] })), activeTab === "vision" && currentProvider === "anthropic" && (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx("span", { className: "text-xs font-semibold", children: t("mediasettingssection.Model") }), _jsxs("select", { className: "px-2.5 py-1.5 border border-[var(--border)] bg-[var(--card)] text-xs focus:border-[var(--accent)] focus:outline-none rounded-lg", value: getNestedValue(mediaConfig, "vision.anthropic.model") ?? "claude-sonnet-4-20250514", onChange: (e) => updateNestedValue("vision.anthropic.model", e.target.value), children: [_jsx("option", { value: "claude-sonnet-4-20250514", children: t("mediasettingssection.ClaudeSonnet4") }), _jsx("option", { value: "claude-3-5-sonnet-20241022", children: t("mediasettingssection.Claude35Sonnet") }), _jsx("option", { value: "claude-3-haiku-20240307", children: t("mediasettingssection.Claude3Haiku") })] })] }))] })), _jsx(ConfigSaveFooter, { dirty: dirty, saving: saving, saveError: saveError, saveSuccess: saveSuccess, onSave: () => void handleSave() })] }));
|
|
329
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MessageContent — Renders a chat message's content.
|
|
3
|
+
*
|
|
4
|
+
* Follows the json-render pattern: specs are rendered client-side from JSON
|
|
5
|
+
* in the agent's text response. No server-side block extraction needed.
|
|
6
|
+
*
|
|
7
|
+
* Client-side detection:
|
|
8
|
+
* 1. [CONFIG:pluginId] markers → inline plugin config form (ConfigRenderer)
|
|
9
|
+
* 2. Fenced UiSpec JSON → interactive UI (UiRenderer)
|
|
10
|
+
* 3. Everything else → plain text
|
|
11
|
+
*/
|
|
12
|
+
import type { ConversationMessage } from "@elizaos/app-core/api";
|
|
13
|
+
import { type PatchOp, type UiSpec } from "@elizaos/app-core/config";
|
|
14
|
+
interface MessageContentProps {
|
|
15
|
+
message: ConversationMessage;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Quick pre-check: does this line look like a JSON patch object?
|
|
19
|
+
* Handles both compact `{"op":` and spaced `{ "op":` formats.
|
|
20
|
+
*/
|
|
21
|
+
export declare function looksLikePatch(trimmed: string): boolean;
|
|
22
|
+
/** Try to parse a single line as an RFC 6902 JSON Patch operation. */
|
|
23
|
+
export declare function tryParsePatch(line: string): PatchOp | null;
|
|
24
|
+
/**
|
|
25
|
+
* Apply a list of RFC 6902 patches to build a UiSpec.
|
|
26
|
+
*
|
|
27
|
+
* Only handles the paths the catalog emits:
|
|
28
|
+
* /root → spec.root
|
|
29
|
+
* /elements/<id> → spec.elements[id]
|
|
30
|
+
* /state/<key> → spec.state[key]
|
|
31
|
+
* /state → spec.state (whole object)
|
|
32
|
+
*/
|
|
33
|
+
export declare function compilePatches(patches: PatchOp[]): UiSpec | null;
|
|
34
|
+
/**
|
|
35
|
+
* Scan `text` for blocks of consecutive JSONL patch lines and return
|
|
36
|
+
* their character regions plus the compiled UiSpec.
|
|
37
|
+
*
|
|
38
|
+
* A patch block is a run of lines where each non-empty line parses as a
|
|
39
|
+
* valid PatchOp. A single empty line between patch lines is allowed.
|
|
40
|
+
*/
|
|
41
|
+
export declare function findPatchRegions(text: string): Array<{
|
|
42
|
+
start: number;
|
|
43
|
+
end: number;
|
|
44
|
+
spec: UiSpec;
|
|
45
|
+
raw: string;
|
|
46
|
+
}>;
|
|
47
|
+
/** Normalize plugin ID: strip @scope/plugin- prefix so both "discord" and "@elizaos/plugin-discord" resolve. */
|
|
48
|
+
export declare function normalizePluginId(id: string): string;
|
|
49
|
+
export declare function MessageContent({ message }: MessageContentProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=MessageContent.d.ts.map
|