@elizaos/app-core 2.0.0-alpha.74 → 2.0.0-alpha.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.d.ts.map +1 -0
- package/{dist/App.js → App.js} +3 -3
- package/{dist/components → components}/AdvancedPageView.d.ts.map +1 -1
- package/{dist/components → components}/AdvancedPageView.js +0 -10
- package/{dist/components → components}/CharacterView.d.ts.map +1 -1
- package/components/CharacterView.js +685 -0
- package/{dist/components → components}/ChatComposer.d.ts.map +1 -1
- package/{dist/components → components}/ChatComposer.js +4 -4
- package/{dist/components → components}/ChatView.d.ts.map +1 -1
- package/{dist/components → components}/ChatView.js +15 -0
- package/{dist/components → components}/CompanionView.js +1 -1
- package/{dist/components → components}/ConfigPageView.js +1 -1
- package/{dist/components → components}/ElizaCloudDashboard.js +1 -1
- package/{dist/components → components}/FlaminaGuide.js +1 -1
- package/{dist/components → components}/OnboardingWizard.d.ts.map +1 -1
- package/{dist/components → components}/OnboardingWizard.js +3 -2
- package/{dist/components → components}/PluginsView.d.ts.map +1 -1
- package/{dist/components → components}/PluginsView.js +1 -5
- package/{dist/components → components}/avatar/VrmEngine.d.ts +13 -0
- package/{dist/components → components}/avatar/VrmEngine.d.ts.map +1 -1
- package/{dist/components → components}/avatar/VrmEngine.js +66 -0
- package/{dist/components → components}/avatar/VrmViewer.d.ts +15 -0
- package/{dist/components → components}/avatar/VrmViewer.d.ts.map +1 -1
- package/{dist/components → components}/avatar/VrmViewer.js +56 -1
- package/{src/components/index.ts → components/index.d.ts} +1 -1
- package/{dist/components → components}/index.d.ts.map +1 -1
- package/{dist/components → components}/index.js +0 -1
- package/{dist/components → components}/onboarding/ConnectionStep.d.ts.map +1 -1
- package/{dist/components → components}/onboarding/ConnectionStep.js +12 -7
- package/{dist/components → components}/permissions/StreamingPermissions.d.ts.map +1 -1
- package/{dist/components → components}/permissions/StreamingPermissions.js +1 -1
- package/{dist/components → components}/ui-switch.js +4 -4
- package/{dist/i18n → i18n}/locales/en.json +45 -1
- package/{src/i18n → i18n}/locales/es.json +41 -0
- package/{dist/i18n → i18n}/locales/ko.json +41 -0
- package/{dist/i18n → i18n}/locales/pt.json +41 -0
- package/{dist/i18n → i18n}/locales/zh-CN.json +41 -0
- package/package.json +143 -53
- package/{dist/state → state}/AppContext.d.ts.map +1 -1
- package/{dist/state → state}/AppContext.js +38 -16
- package/{dist/styles → styles}/anime.css +1 -4
- package/{dist/styles → styles}/onboarding-game.css +125 -9
- package/.turbo/turbo-build.log +0 -2
- package/.turbo/turbo-lint$colon$check.log +0 -2
- package/.turbo/turbo-typecheck.log +0 -1
- package/dist/App.d.ts.map +0 -1
- package/dist/components/CharacterView.js +0 -719
- package/dist/components/MiladyBar.d.ts +0 -2
- package/dist/components/MiladyBar.d.ts.map +0 -1
- package/dist/components/MiladyBar.js +0 -50
- package/dist/components/MiladyBarSettings.d.ts +0 -2
- package/dist/components/MiladyBarSettings.d.ts.map +0 -1
- package/dist/components/MiladyBarSettings.js +0 -513
- package/dist/components/SecurityPageView.d.ts +0 -2
- package/dist/components/SecurityPageView.d.ts.map +0 -1
- package/dist/components/SecurityPageView.js +0 -81
- package/dist/components/index.d.ts +0 -97
- package/dist/components/milady-bar/CloudCreditsChip.d.ts +0 -2
- package/dist/components/milady-bar/CloudCreditsChip.d.ts.map +0 -1
- package/dist/components/milady-bar/CloudCreditsChip.js +0 -25
- package/dist/components/milady-bar/ProviderDropdown.d.ts +0 -13
- package/dist/components/milady-bar/ProviderDropdown.d.ts.map +0 -1
- package/dist/components/milady-bar/ProviderDropdown.js +0 -68
- package/dist/components/milady-bar/WalletSummary.d.ts +0 -2
- package/dist/components/milady-bar/WalletSummary.d.ts.map +0 -1
- package/dist/components/milady-bar/WalletSummary.js +0 -37
- package/dist/components/milady-bar/index.d.ts +0 -4
- package/dist/components/milady-bar/index.d.ts.map +0 -1
- package/dist/components/milady-bar/index.js +0 -3
- package/dist/hooks/useMiladyBar.d.ts +0 -2
- package/dist/hooks/useMiladyBar.d.ts.map +0 -1
- package/dist/hooks/useMiladyBar.js +0 -472
- package/dist/i18n/locales/es.json +0 -1195
- package/dist/package.json +0 -180
- package/src/App.tsx +0 -504
- package/src/actions/character.test.ts +0 -139
- package/src/actions/character.ts +0 -334
- package/src/actions/chat-helpers.ts +0 -100
- package/src/actions/cloud.ts +0 -59
- package/src/actions/index.ts +0 -12
- package/src/actions/lifecycle.ts +0 -175
- package/src/actions/onboarding.ts +0 -38
- package/src/actions/triggers.ts +0 -190
- package/src/ambient.d.ts +0 -33
- package/src/api/client.ts +0 -5659
- package/src/api/index.ts +0 -1
- package/src/autonomy/index.ts +0 -477
- package/src/bridge/capacitor-bridge.ts +0 -295
- package/src/bridge/electrobun-rpc.ts +0 -78
- package/src/bridge/electrobun-runtime.ts +0 -28
- package/src/bridge/index.ts +0 -5
- package/src/bridge/native-plugins.ts +0 -138
- package/src/bridge/plugin-bridge.ts +0 -352
- package/src/bridge/storage-bridge.ts +0 -162
- package/src/chat/index.ts +0 -250
- package/src/coding/index.ts +0 -43
- package/src/components/AdvancedPageView.tsx +0 -382
- package/src/components/AgentActivityBox.tsx +0 -49
- package/src/components/ApiKeyConfig.tsx +0 -222
- package/src/components/AppsPageView.tsx +0 -52
- package/src/components/AppsView.tsx +0 -293
- package/src/components/AvatarLoader.tsx +0 -104
- package/src/components/AvatarSelector.tsx +0 -223
- package/src/components/BscTradePanel.tsx +0 -549
- package/src/components/BugReportModal.tsx +0 -499
- package/src/components/CharacterRoster.tsx +0 -143
- package/src/components/CharacterView.tsx +0 -1575
- package/src/components/ChatAvatar.test.ts +0 -97
- package/src/components/ChatAvatar.tsx +0 -147
- package/src/components/ChatComposer.tsx +0 -330
- package/src/components/ChatMessage.tsx +0 -448
- package/src/components/ChatModalView.test.tsx +0 -118
- package/src/components/ChatModalView.tsx +0 -125
- package/src/components/ChatView.tsx +0 -992
- package/src/components/CloudOnboarding.tsx +0 -81
- package/src/components/CloudSourceControls.tsx +0 -85
- package/src/components/CodingAgentSettingsSection.tsx +0 -537
- package/src/components/CommandPalette.tsx +0 -284
- package/src/components/CompanionSceneHost.tsx +0 -517
- package/src/components/CompanionShell.tsx +0 -31
- package/src/components/CompanionView.tsx +0 -110
- package/src/components/ConfigPageView.tsx +0 -763
- package/src/components/ConfigSaveFooter.tsx +0 -41
- package/src/components/ConfirmModal.tsx +0 -379
- package/src/components/ConnectionFailedBanner.tsx +0 -91
- package/src/components/ConnectorsPageView.tsx +0 -13
- package/src/components/ConversationsSidebar.tsx +0 -279
- package/src/components/CustomActionEditor.tsx +0 -1127
- package/src/components/CustomActionsPanel.tsx +0 -288
- package/src/components/CustomActionsView.tsx +0 -325
- package/src/components/DatabasePageView.tsx +0 -55
- package/src/components/DatabaseView.tsx +0 -814
- package/src/components/ElizaCloudDashboard.tsx +0 -1696
- package/src/components/EmotePicker.tsx +0 -529
- package/src/components/ErrorBoundary.tsx +0 -76
- package/src/components/FineTuningView.tsx +0 -1080
- package/src/components/FlaminaGuide.test.tsx +0 -61
- package/src/components/FlaminaGuide.tsx +0 -212
- package/src/components/GameView.tsx +0 -551
- package/src/components/GameViewOverlay.tsx +0 -133
- package/src/components/GlobalEmoteOverlay.tsx +0 -152
- package/src/components/Header.test.tsx +0 -413
- package/src/components/Header.tsx +0 -400
- package/src/components/HeartbeatsView.tsx +0 -1003
- package/src/components/InventoryView.tsx +0 -393
- package/src/components/KnowledgeView.tsx +0 -1128
- package/src/components/LanguageDropdown.tsx +0 -192
- package/src/components/LifoMonitorPanel.tsx +0 -196
- package/src/components/LifoSandboxView.tsx +0 -499
- package/src/components/LoadingScreen.tsx +0 -112
- package/src/components/LogsPageView.tsx +0 -17
- package/src/components/LogsView.tsx +0 -239
- package/src/components/MediaGalleryView.tsx +0 -431
- package/src/components/MediaSettingsSection.tsx +0 -893
- package/src/components/MessageContent.tsx +0 -815
- package/src/components/MiladyBar.tsx +0 -103
- package/src/components/MiladyBarSettings.tsx +0 -872
- package/src/components/OnboardingWizard.test.tsx +0 -104
- package/src/components/OnboardingWizard.tsx +0 -249
- package/src/components/PairingView.tsx +0 -109
- package/src/components/PermissionsSection.tsx +0 -1184
- package/src/components/PluginsPageView.tsx +0 -9
- package/src/components/PluginsView.tsx +0 -3129
- package/src/components/ProviderSwitcher.tsx +0 -903
- package/src/components/RestartBanner.tsx +0 -76
- package/src/components/RuntimeView.tsx +0 -460
- package/src/components/SaveCommandModal.tsx +0 -211
- package/src/components/SecretsView.tsx +0 -569
- package/src/components/SecurityPageView.tsx +0 -242
- package/src/components/SettingsView.tsx +0 -825
- package/src/components/ShellOverlays.tsx +0 -41
- package/src/components/ShortcutsOverlay.tsx +0 -155
- package/src/components/SkillsView.tsx +0 -1435
- package/src/components/StartupFailureView.tsx +0 -63
- package/src/components/StreamView.tsx +0 -481
- package/src/components/StripeEmbeddedCheckout.tsx +0 -155
- package/src/components/SubscriptionStatus.tsx +0 -640
- package/src/components/SystemWarningBanner.tsx +0 -71
- package/src/components/ThemeToggle.tsx +0 -103
- package/src/components/TrajectoriesView.tsx +0 -526
- package/src/components/TrajectoryDetailView.tsx +0 -426
- package/src/components/TriggersView.tsx +0 -1
- package/src/components/VectorBrowserView.tsx +0 -1633
- package/src/components/VoiceConfigView.tsx +0 -674
- package/src/components/VrmStage.test.ts +0 -176
- package/src/components/VrmStage.tsx +0 -309
- package/src/components/WhatsAppQrOverlay.tsx +0 -230
- package/src/components/__tests__/chainConfig.test.ts +0 -220
- package/src/components/apps/AppDetailPane.tsx +0 -242
- package/src/components/apps/AppsCatalogGrid.tsx +0 -137
- package/src/components/apps/extensions/registry.ts +0 -13
- package/src/components/apps/extensions/types.ts +0 -9
- package/src/components/apps/helpers.ts +0 -43
- package/src/components/avatar/VrmAnimationLoader.test.ts +0 -164
- package/src/components/avatar/VrmAnimationLoader.ts +0 -151
- package/src/components/avatar/VrmBlinkController.ts +0 -118
- package/src/components/avatar/VrmCameraManager.ts +0 -407
- package/src/components/avatar/VrmEngine.ts +0 -2767
- package/src/components/avatar/VrmFootShadow.ts +0 -96
- package/src/components/avatar/VrmViewer.tsx +0 -421
- package/src/components/avatar/__tests__/VrmCameraManager.test.ts +0 -168
- package/src/components/avatar/__tests__/VrmEngine.test.ts +0 -1574
- package/src/components/avatar/mixamoVRMRigMap.ts +0 -62
- package/src/components/avatar/retargetMixamoFbxToVrm.ts +0 -144
- package/src/components/avatar/retargetMixamoGltfToVrm.ts +0 -119
- package/src/components/chainConfig.ts +0 -400
- package/src/components/companion/CompanionHeader.tsx +0 -50
- package/src/components/companion/CompanionSceneHost.tsx +0 -5
- package/src/components/companion/VrmStage.tsx +0 -2
- package/src/components/companion/__tests__/walletUtils.test.ts +0 -742
- package/src/components/companion/index.ts +0 -18
- package/src/components/companion/walletUtils.ts +0 -290
- package/src/components/companion-shell-styles.test.ts +0 -142
- package/src/components/companion-shell-styles.ts +0 -270
- package/src/components/confirm-delete-control.tsx +0 -69
- package/src/components/conversations/ConversationListItem.tsx +0 -185
- package/src/components/conversations/conversation-utils.ts +0 -151
- package/src/components/format.ts +0 -131
- package/src/components/inventory/CopyableAddress.tsx +0 -41
- package/src/components/inventory/InventoryToolbar.tsx +0 -142
- package/src/components/inventory/NftGrid.tsx +0 -99
- package/src/components/inventory/TokenLogo.tsx +0 -71
- package/src/components/inventory/TokensTable.tsx +0 -216
- package/src/components/inventory/constants.ts +0 -170
- package/src/components/inventory/index.ts +0 -29
- package/src/components/inventory/media-url.test.ts +0 -38
- package/src/components/inventory/media-url.ts +0 -36
- package/src/components/inventory/useInventoryData.ts +0 -460
- package/src/components/knowledge-upload-image.ts +0 -215
- package/src/components/labels.ts +0 -46
- package/src/components/milady-bar/CloudCreditsChip.tsx +0 -61
- package/src/components/milady-bar/ProviderDropdown.tsx +0 -166
- package/src/components/milady-bar/WalletSummary.tsx +0 -61
- package/src/components/milady-bar/index.ts +0 -3
- package/src/components/onboarding/ActivateStep.tsx +0 -34
- package/src/components/onboarding/ConnectionStep.tsx +0 -1590
- package/src/components/onboarding/IdentityStep.tsx +0 -251
- package/src/components/onboarding/OnboardingPanel.tsx +0 -39
- package/src/components/onboarding/OnboardingStepNav.tsx +0 -41
- package/src/components/onboarding/PermissionsStep.tsx +0 -20
- package/src/components/onboarding/RpcStep.tsx +0 -402
- package/src/components/permissions/PermissionIcon.tsx +0 -25
- package/src/components/permissions/StreamingPermissions.tsx +0 -413
- package/src/components/plugins/showcase-data.ts +0 -481
- package/src/components/shared/ShellHeaderControls.tsx +0 -198
- package/src/components/shared-companion-scene-context.ts +0 -15
- package/src/components/skeletons.tsx +0 -88
- package/src/components/stream/ActivityFeed.tsx +0 -113
- package/src/components/stream/AvatarPip.tsx +0 -10
- package/src/components/stream/ChatContent.tsx +0 -126
- package/src/components/stream/ChatTicker.tsx +0 -55
- package/src/components/stream/IdleContent.tsx +0 -73
- package/src/components/stream/StatusBar.tsx +0 -463
- package/src/components/stream/StreamSettings.tsx +0 -506
- package/src/components/stream/StreamTerminal.tsx +0 -94
- package/src/components/stream/StreamVoiceConfig.tsx +0 -160
- package/src/components/stream/helpers.ts +0 -134
- package/src/components/stream/overlays/OverlayLayer.tsx +0 -75
- package/src/components/stream/overlays/built-in/ActionTickerWidget.tsx +0 -64
- package/src/components/stream/overlays/built-in/AlertPopupWidget.tsx +0 -87
- package/src/components/stream/overlays/built-in/BrandingWidget.tsx +0 -51
- package/src/components/stream/overlays/built-in/CustomHtmlWidget.tsx +0 -105
- package/src/components/stream/overlays/built-in/PeonGlassWidget.tsx +0 -265
- package/src/components/stream/overlays/built-in/PeonHudWidget.tsx +0 -247
- package/src/components/stream/overlays/built-in/PeonSakuraWidget.tsx +0 -278
- package/src/components/stream/overlays/built-in/ThoughtBubbleWidget.tsx +0 -77
- package/src/components/stream/overlays/built-in/ViewerCountWidget.tsx +0 -46
- package/src/components/stream/overlays/built-in/index.ts +0 -13
- package/src/components/stream/overlays/registry.ts +0 -22
- package/src/components/stream/overlays/types.ts +0 -90
- package/src/components/stream/overlays/useOverlayLayout.ts +0 -218
- package/src/components/trajectory-format.ts +0 -50
- package/src/components/ui-badges.tsx +0 -109
- package/src/components/ui-switch.tsx +0 -57
- package/src/components/vector-browser-three.ts +0 -29
- package/src/config/branding.ts +0 -67
- package/src/config/config-catalog.ts +0 -1092
- package/src/config/config-field.tsx +0 -1924
- package/src/config/config-renderer.tsx +0 -734
- package/src/config/index.ts +0 -12
- package/src/config/ui-renderer.tsx +0 -1751
- package/src/config/ui-spec.ts +0 -256
- package/src/events/index.ts +0 -96
- package/src/hooks/index.ts +0 -14
- package/src/hooks/useBugReport.tsx +0 -43
- package/src/hooks/useCanvasWindow.ts +0 -372
- package/src/hooks/useChatAvatarVoice.ts +0 -111
- package/src/hooks/useClickOutside.ts +0 -31
- package/src/hooks/useContextMenu.ts +0 -127
- package/src/hooks/useKeyboardShortcuts.ts +0 -86
- package/src/hooks/useLifoSync.ts +0 -143
- package/src/hooks/useMemoryMonitor.ts +0 -334
- package/src/hooks/useMiladyBar.ts +0 -594
- package/src/hooks/useRenderGuard.ts +0 -43
- package/src/hooks/useRetakeCapture.ts +0 -68
- package/src/hooks/useStreamPopoutNavigation.ts +0 -27
- package/src/hooks/useTimeout.ts +0 -37
- package/src/hooks/useVoiceChat.ts +0 -1442
- package/src/hooks/useWhatsAppPairing.ts +0 -123
- package/src/i18n/index.ts +0 -76
- package/src/i18n/locales/en.json +0 -1195
- package/src/i18n/locales/ko.json +0 -1195
- package/src/i18n/locales/pt.json +0 -1195
- package/src/i18n/locales/zh-CN.json +0 -1195
- package/src/i18n/messages.ts +0 -21
- package/src/index.ts +0 -6
- package/src/navigation/index.ts +0 -286
- package/src/navigation.test.ts +0 -189
- package/src/onboarding-config.test.ts +0 -104
- package/src/onboarding-config.ts +0 -122
- package/src/platform/browser-launch.test.ts +0 -94
- package/src/platform/browser-launch.ts +0 -149
- package/src/platform/index.ts +0 -58
- package/src/platform/init.ts +0 -238
- package/src/platform/lifo.ts +0 -225
- package/src/providers/index.ts +0 -108
- package/src/shell-params.test.ts +0 -48
- package/src/shell-params.ts +0 -36
- package/src/state/AppContext.tsx +0 -6415
- package/src/state/index.ts +0 -6
- package/src/state/internal.ts +0 -91
- package/src/state/onboarding-resume.test.ts +0 -135
- package/src/state/onboarding-resume.ts +0 -263
- package/src/state/parsers.test.ts +0 -124
- package/src/state/parsers.ts +0 -309
- package/src/state/persistence.ts +0 -379
- package/src/state/shell-routing.ts +0 -39
- package/src/state/types.ts +0 -724
- package/src/state/ui-preferences.ts +0 -3
- package/src/state/useApp.ts +0 -23
- package/src/state/vrm.ts +0 -108
- package/src/styles/anime.css +0 -6324
- package/src/styles/base.css +0 -213
- package/src/styles/onboarding-game.css +0 -976
- package/src/styles/styles.css +0 -2087
- package/src/styles/xterm.css +0 -241
- package/src/types/index.ts +0 -715
- package/src/types/react-test-renderer.d.ts +0 -45
- package/src/utils/asset-url.ts +0 -110
- package/src/utils/assistant-text.ts +0 -172
- package/src/utils/clipboard.ts +0 -41
- package/src/utils/desktop-dialogs.ts +0 -80
- package/src/utils/eliza-globals.ts +0 -44
- package/src/utils/index.ts +0 -7
- package/src/utils/number-parsing.ts +0 -125
- package/src/utils/openExternalUrl.ts +0 -20
- package/src/utils/spoken-text.ts +0 -65
- package/src/utils/streaming-text.ts +0 -120
- package/src/voice/index.ts +0 -1
- package/src/voice/types.ts +0 -197
- package/src/wallet-rpc.ts +0 -176
- package/test/app/AppContext.pty-sessions.test.tsx +0 -143
- package/test/app/MessageContent.test.tsx +0 -366
- package/test/app/PermissionsOnboarding.test.tsx +0 -358
- package/test/app/PermissionsSection.test.tsx +0 -575
- package/test/app/advanced-trajectory-fine-tuning.e2e.test.ts +0 -396
- package/test/app/agent-activity-box.test.tsx +0 -132
- package/test/app/agent-transfer-lock.test.ts +0 -279
- package/test/app/api-client-electrobun-fallback.test.ts +0 -139
- package/test/app/api-client-electron-fallback.test.ts +0 -139
- package/test/app/api-client-timeout.test.ts +0 -75
- package/test/app/api-client-ws.test.ts +0 -98
- package/test/app/api-client.ws-max-reconnect.test.ts +0 -139
- package/test/app/api-client.ws-reconnect.test.ts +0 -157
- package/test/app/app-context-autonomy-events.test.ts +0 -559
- package/test/app/apps-page-view.test.ts +0 -114
- package/test/app/apps-view.test.ts +0 -768
- package/test/app/autonomous-workflows.e2e.test.ts +0 -765
- package/test/app/autonomy-events.test.ts +0 -150
- package/test/app/avatar-selector.test.tsx +0 -52
- package/test/app/bsc-trade-panel.test.tsx +0 -134
- package/test/app/bug-report-modal.test.tsx +0 -353
- package/test/app/character-action-bar-visibility.test.ts +0 -70
- package/test/app/character-customization.e2e.test.ts +0 -1384
- package/test/app/character-save-journey.test.ts +0 -1245
- package/test/app/chat-advanced-features.e2e.test.ts +0 -706
- package/test/app/chat-composer.test.tsx +0 -181
- package/test/app/chat-journey.test.ts +0 -1075
- package/test/app/chat-language-header.test.ts +0 -64
- package/test/app/chat-message.test.tsx +0 -222
- package/test/app/chat-modal-view.test.tsx +0 -191
- package/test/app/chat-routine-filter.test.ts +0 -96
- package/test/app/chat-send-lock.test.ts +0 -1465
- package/test/app/chat-stream-api-client.test.tsx +0 -390
- package/test/app/chat-view-game-modal.test.tsx +0 -661
- package/test/app/chat-view.test.tsx +0 -877
- package/test/app/cloud-api.e2e.test.ts +0 -258
- package/test/app/cloud-login-flow.e2e.test.ts +0 -494
- package/test/app/cloud-login-lock.test.ts +0 -416
- package/test/app/command-palette.test.tsx +0 -184
- package/test/app/command-registry.test.ts +0 -75
- package/test/app/companion-greeting-wave.test.tsx +0 -431
- package/test/app/companion-scene-host.test.tsx +0 -85
- package/test/app/companion-stale-conversation.test.tsx +0 -447
- package/test/app/companion-view.test.tsx +0 -690
- package/test/app/confirm-delete-control.test.ts +0 -79
- package/test/app/confirm-modal.test.tsx +0 -219
- package/test/app/connection-mode-persistence.test.ts +0 -411
- package/test/app/connectors-ui.e2e.test.ts +0 -508
- package/test/app/conversations-sidebar-game-modal.test.tsx +0 -265
- package/test/app/conversations-sidebar.test.tsx +0 -185
- package/test/app/custom-actions-smoke.test.ts +0 -387
- package/test/app/custom-avatar-api-client.test.ts +0 -207
- package/test/app/desktop-utils.test.ts +0 -145
- package/test/app/electrobun-rpc-bridge.test.ts +0 -83
- package/test/app/events.test.ts +0 -88
- package/test/app/export-import-flows.e2e.test.ts +0 -700
- package/test/app/fine-tuning-view.test.ts +0 -471
- package/test/app/game-view-auth-session.test.tsx +0 -187
- package/test/app/game-view.test.ts +0 -444
- package/test/app/global-emote-overlay.test.tsx +0 -106
- package/test/app/header-status.test.tsx +0 -149
- package/test/app/i18n.test.ts +0 -152
- package/test/app/inventory-bsc-view.test.ts +0 -940
- package/test/app/knowledge-ui.e2e.test.ts +0 -762
- package/test/app/knowledge-upload-helpers.test.ts +0 -124
- package/test/app/lifecycle-lock.test.ts +0 -267
- package/test/app/lifo-popout-utils.test.ts +0 -208
- package/test/app/lifo-safe-endpoint.test.ts +0 -34
- package/test/app/loading-screen.test.tsx +0 -45
- package/test/app/memory-monitor.test.ts +0 -331
- package/test/app/milady-bar-regression.test.tsx +0 -519
- package/test/app/milady-bar-settings.test.tsx +0 -1056
- package/test/app/milady-bar.test.tsx +0 -583
- package/test/app/navigation.test.tsx +0 -22
- package/test/app/onboarding-e2e-journey.test.ts +0 -1391
- package/test/app/onboarding-finish-lock.test.ts +0 -676
- package/test/app/onboarding-language.test.tsx +0 -160
- package/test/app/onboarding-steps.test.tsx +0 -376
- package/test/app/open-external-url.test.ts +0 -65
- package/test/app/pages-navigation-smoke.e2e.test.ts +0 -646
- package/test/app/pairing-lock.test.ts +0 -260
- package/test/app/pairing-view.test.tsx +0 -74
- package/test/app/permissions-section.test.ts +0 -432
- package/test/app/plugin-bridge.test.ts +0 -109
- package/test/app/plugins-ui.e2e.test.ts +0 -605
- package/test/app/plugins-view-game-modal.test.tsx +0 -686
- package/test/app/plugins-view-toggle-restart.test.ts +0 -129
- package/test/app/provider-dropdown-default.test.tsx +0 -300
- package/test/app/restart-banner.test.tsx +0 -205
- package/test/app/retake-capture.test.ts +0 -84
- package/test/app/sandbox-api-client.test.ts +0 -108
- package/test/app/save-command-modal.test.tsx +0 -109
- package/test/app/secrets-view.test.tsx +0 -92
- package/test/app/settings-control-styles.test.tsx +0 -142
- package/test/app/settings-reset.e2e.test.ts +0 -726
- package/test/app/settings-sections.e2e.test.ts +0 -614
- package/test/app/shared-format.test.ts +0 -44
- package/test/app/shared-switch.test.ts +0 -69
- package/test/app/shell-mode-switching.e2e.test.ts +0 -841
- package/test/app/shell-mode-tab-memory.test.tsx +0 -58
- package/test/app/shell-overlays.test.tsx +0 -50
- package/test/app/shortcuts-overlay.test.tsx +0 -111
- package/test/app/sse-interruption.test.ts +0 -122
- package/test/app/startup-asset-missing.e2e.test.ts +0 -126
- package/test/app/startup-backend-missing.e2e.test.ts +0 -126
- package/test/app/startup-chat.e2e.test.ts +0 -323
- package/test/app/startup-conversation-restore.test.tsx +0 -381
- package/test/app/startup-failure-view.test.tsx +0 -103
- package/test/app/startup-onboarding.e2e.test.ts +0 -712
- package/test/app/startup-timeout.test.tsx +0 -80
- package/test/app/startup-token-401.e2e.test.ts +0 -103
- package/test/app/stream-helpers.test.ts +0 -46
- package/test/app/stream-popout-navigation.test.tsx +0 -41
- package/test/app/stream-status-bar.test.tsx +0 -89
- package/test/app/theme-toggle.test.tsx +0 -40
- package/test/app/training-api-client.test.ts +0 -128
- package/test/app/trajectories-view.test.tsx +0 -220
- package/test/app/triggers-api-client.test.ts +0 -77
- package/test/app/triggers-navigation.test.ts +0 -113
- package/test/app/triggers-view.e2e.test.ts +0 -675
- package/test/app/update-channel-lock.test.ts +0 -259
- package/test/app/vector-browser.async-cleanup.test.tsx +0 -367
- package/test/app/vector-browser.e2e.test.ts +0 -653
- package/test/app/vrm-stage.test.tsx +0 -351
- package/test/app/vrm-viewer.test.tsx +0 -298
- package/test/app/wallet-api-save-lock.test.ts +0 -299
- package/test/app/wallet-hooks.test.ts +0 -405
- package/test/app/wallet-ui-flows.e2e.test.ts +0 -556
- package/test/avatar/asset-url.test.ts +0 -90
- package/test/avatar/avatar-selector.test.ts +0 -173
- package/test/avatar/mixamo-vrm-rig-map.test.ts +0 -111
- package/test/avatar/voice-chat-streaming-text.test.ts +0 -96
- package/test/avatar/voice-chat.test.ts +0 -391
- package/test/browser-extension/README.md +0 -138
- package/test/browser-extension/test-harness.ts +0 -499
- package/test/capacitor-plugins.e2e.test.ts +0 -168
- package/test/test-types.ts +0 -5
- package/test/ui/command-palette-commands.test.ts +0 -57
- package/test/ui/ui-renderer.test.ts +0 -39
- package/test/utils/assistant-text.test.ts +0 -68
- package/test/utils/eliza-globals.test.ts +0 -59
- package/test/utils/package-exports.test.ts +0 -70
- package/test/utils/streaming-text.test.ts +0 -89
- package/tsconfig.build.json +0 -19
- package/tsconfig.json +0 -20
- package/tsconfig.typecheck.json +0 -12
- /package/{dist/App.d.ts → App.d.ts} +0 -0
- /package/{dist/actions → actions}/character.d.ts +0 -0
- /package/{dist/actions → actions}/character.d.ts.map +0 -0
- /package/{dist/actions → actions}/character.js +0 -0
- /package/{dist/actions → actions}/chat-helpers.d.ts +0 -0
- /package/{dist/actions → actions}/chat-helpers.d.ts.map +0 -0
- /package/{dist/actions → actions}/chat-helpers.js +0 -0
- /package/{dist/actions → actions}/cloud.d.ts +0 -0
- /package/{dist/actions → actions}/cloud.d.ts.map +0 -0
- /package/{dist/actions → actions}/cloud.js +0 -0
- /package/{dist/actions → actions}/index.d.ts +0 -0
- /package/{dist/actions → actions}/index.d.ts.map +0 -0
- /package/{dist/actions → actions}/index.js +0 -0
- /package/{dist/actions → actions}/lifecycle.d.ts +0 -0
- /package/{dist/actions → actions}/lifecycle.d.ts.map +0 -0
- /package/{dist/actions → actions}/lifecycle.js +0 -0
- /package/{dist/actions → actions}/onboarding.d.ts +0 -0
- /package/{dist/actions → actions}/onboarding.d.ts.map +0 -0
- /package/{dist/actions → actions}/onboarding.js +0 -0
- /package/{dist/actions → actions}/triggers.d.ts +0 -0
- /package/{dist/actions → actions}/triggers.d.ts.map +0 -0
- /package/{dist/actions → actions}/triggers.js +0 -0
- /package/{dist/api → api}/client.d.ts +0 -0
- /package/{dist/api → api}/client.d.ts.map +0 -0
- /package/{dist/api → api}/client.js +0 -0
- /package/{dist/api → api}/index.d.ts +0 -0
- /package/{dist/api → api}/index.d.ts.map +0 -0
- /package/{dist/api → api}/index.js +0 -0
- /package/{dist/autonomy → autonomy}/index.d.ts +0 -0
- /package/{dist/autonomy → autonomy}/index.d.ts.map +0 -0
- /package/{dist/autonomy → autonomy}/index.js +0 -0
- /package/{dist/bridge → bridge}/capacitor-bridge.d.ts +0 -0
- /package/{dist/bridge → bridge}/capacitor-bridge.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/capacitor-bridge.js +0 -0
- /package/{dist/bridge → bridge}/electrobun-rpc.d.ts +0 -0
- /package/{dist/bridge → bridge}/electrobun-rpc.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/electrobun-rpc.js +0 -0
- /package/{dist/bridge → bridge}/electrobun-runtime.d.ts +0 -0
- /package/{dist/bridge → bridge}/electrobun-runtime.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/electrobun-runtime.js +0 -0
- /package/{dist/bridge → bridge}/index.d.ts +0 -0
- /package/{dist/bridge → bridge}/index.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/index.js +0 -0
- /package/{dist/bridge → bridge}/native-plugins.d.ts +0 -0
- /package/{dist/bridge → bridge}/native-plugins.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/native-plugins.js +0 -0
- /package/{dist/bridge → bridge}/plugin-bridge.d.ts +0 -0
- /package/{dist/bridge → bridge}/plugin-bridge.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/plugin-bridge.js +0 -0
- /package/{dist/bridge → bridge}/storage-bridge.d.ts +0 -0
- /package/{dist/bridge → bridge}/storage-bridge.d.ts.map +0 -0
- /package/{dist/bridge → bridge}/storage-bridge.js +0 -0
- /package/{dist/chat → chat}/index.d.ts +0 -0
- /package/{dist/chat → chat}/index.d.ts.map +0 -0
- /package/{dist/chat → chat}/index.js +0 -0
- /package/{dist/coding → coding}/index.d.ts +0 -0
- /package/{dist/coding → coding}/index.d.ts.map +0 -0
- /package/{dist/coding → coding}/index.js +0 -0
- /package/{dist/components → components}/AdvancedPageView.d.ts +0 -0
- /package/{dist/components → components}/AgentActivityBox.d.ts +0 -0
- /package/{dist/components → components}/AgentActivityBox.d.ts.map +0 -0
- /package/{dist/components → components}/AgentActivityBox.js +0 -0
- /package/{dist/components → components}/ApiKeyConfig.d.ts +0 -0
- /package/{dist/components → components}/ApiKeyConfig.d.ts.map +0 -0
- /package/{dist/components → components}/ApiKeyConfig.js +0 -0
- /package/{dist/components → components}/AppsPageView.d.ts +0 -0
- /package/{dist/components → components}/AppsPageView.d.ts.map +0 -0
- /package/{dist/components → components}/AppsPageView.js +0 -0
- /package/{dist/components → components}/AppsView.d.ts +0 -0
- /package/{dist/components → components}/AppsView.d.ts.map +0 -0
- /package/{dist/components → components}/AppsView.js +0 -0
- /package/{dist/components → components}/AvatarLoader.d.ts +0 -0
- /package/{dist/components → components}/AvatarLoader.d.ts.map +0 -0
- /package/{dist/components → components}/AvatarLoader.js +0 -0
- /package/{dist/components → components}/AvatarSelector.d.ts +0 -0
- /package/{dist/components → components}/AvatarSelector.d.ts.map +0 -0
- /package/{dist/components → components}/AvatarSelector.js +0 -0
- /package/{dist/components → components}/BscTradePanel.d.ts +0 -0
- /package/{dist/components → components}/BscTradePanel.d.ts.map +0 -0
- /package/{dist/components → components}/BscTradePanel.js +0 -0
- /package/{dist/components → components}/BugReportModal.d.ts +0 -0
- /package/{dist/components → components}/BugReportModal.d.ts.map +0 -0
- /package/{dist/components → components}/BugReportModal.js +0 -0
- /package/{dist/components → components}/CharacterRoster.d.ts +0 -0
- /package/{dist/components → components}/CharacterRoster.d.ts.map +0 -0
- /package/{dist/components → components}/CharacterRoster.js +0 -0
- /package/{dist/components → components}/CharacterView.d.ts +0 -0
- /package/{dist/components → components}/ChatAvatar.d.ts +0 -0
- /package/{dist/components → components}/ChatAvatar.d.ts.map +0 -0
- /package/{dist/components → components}/ChatAvatar.js +0 -0
- /package/{dist/components → components}/ChatComposer.d.ts +0 -0
- /package/{dist/components → components}/ChatMessage.d.ts +0 -0
- /package/{dist/components → components}/ChatMessage.d.ts.map +0 -0
- /package/{dist/components → components}/ChatMessage.js +0 -0
- /package/{dist/components → components}/ChatModalView.d.ts +0 -0
- /package/{dist/components → components}/ChatModalView.d.ts.map +0 -0
- /package/{dist/components → components}/ChatModalView.js +0 -0
- /package/{dist/components → components}/ChatView.d.ts +0 -0
- /package/{dist/components → components}/CloudOnboarding.d.ts +0 -0
- /package/{dist/components → components}/CloudOnboarding.d.ts.map +0 -0
- /package/{dist/components → components}/CloudOnboarding.js +0 -0
- /package/{dist/components → components}/CloudSourceControls.d.ts +0 -0
- /package/{dist/components → components}/CloudSourceControls.d.ts.map +0 -0
- /package/{dist/components → components}/CloudSourceControls.js +0 -0
- /package/{dist/components → components}/CodingAgentSettingsSection.d.ts +0 -0
- /package/{dist/components → components}/CodingAgentSettingsSection.d.ts.map +0 -0
- /package/{dist/components → components}/CodingAgentSettingsSection.js +0 -0
- /package/{dist/components → components}/CommandPalette.d.ts +0 -0
- /package/{dist/components → components}/CommandPalette.d.ts.map +0 -0
- /package/{dist/components → components}/CommandPalette.js +0 -0
- /package/{dist/components → components}/CompanionSceneHost.d.ts +0 -0
- /package/{dist/components → components}/CompanionSceneHost.d.ts.map +0 -0
- /package/{dist/components → components}/CompanionSceneHost.js +0 -0
- /package/{dist/components → components}/CompanionShell.d.ts +0 -0
- /package/{dist/components → components}/CompanionShell.d.ts.map +0 -0
- /package/{dist/components → components}/CompanionShell.js +0 -0
- /package/{dist/components → components}/CompanionView.d.ts +0 -0
- /package/{dist/components → components}/CompanionView.d.ts.map +0 -0
- /package/{dist/components → components}/ConfigPageView.d.ts +0 -0
- /package/{dist/components → components}/ConfigPageView.d.ts.map +0 -0
- /package/{dist/components → components}/ConfigSaveFooter.d.ts +0 -0
- /package/{dist/components → components}/ConfigSaveFooter.d.ts.map +0 -0
- /package/{dist/components → components}/ConfigSaveFooter.js +0 -0
- /package/{dist/components → components}/ConfirmModal.d.ts +0 -0
- /package/{dist/components → components}/ConfirmModal.d.ts.map +0 -0
- /package/{dist/components → components}/ConfirmModal.js +0 -0
- /package/{dist/components → components}/ConnectionFailedBanner.d.ts +0 -0
- /package/{dist/components → components}/ConnectionFailedBanner.d.ts.map +0 -0
- /package/{dist/components → components}/ConnectionFailedBanner.js +0 -0
- /package/{dist/components → components}/ConnectorsPageView.d.ts +0 -0
- /package/{dist/components → components}/ConnectorsPageView.d.ts.map +0 -0
- /package/{dist/components → components}/ConnectorsPageView.js +0 -0
- /package/{dist/components → components}/ConversationsSidebar.d.ts +0 -0
- /package/{dist/components → components}/ConversationsSidebar.d.ts.map +0 -0
- /package/{dist/components → components}/ConversationsSidebar.js +0 -0
- /package/{dist/components → components}/CustomActionEditor.d.ts +0 -0
- /package/{dist/components → components}/CustomActionEditor.d.ts.map +0 -0
- /package/{dist/components → components}/CustomActionEditor.js +0 -0
- /package/{dist/components → components}/CustomActionsPanel.d.ts +0 -0
- /package/{dist/components → components}/CustomActionsPanel.d.ts.map +0 -0
- /package/{dist/components → components}/CustomActionsPanel.js +0 -0
- /package/{dist/components → components}/CustomActionsView.d.ts +0 -0
- /package/{dist/components → components}/CustomActionsView.d.ts.map +0 -0
- /package/{dist/components → components}/CustomActionsView.js +0 -0
- /package/{dist/components → components}/DatabasePageView.d.ts +0 -0
- /package/{dist/components → components}/DatabasePageView.d.ts.map +0 -0
- /package/{dist/components → components}/DatabasePageView.js +0 -0
- /package/{dist/components → components}/DatabaseView.d.ts +0 -0
- /package/{dist/components → components}/DatabaseView.d.ts.map +0 -0
- /package/{dist/components → components}/DatabaseView.js +0 -0
- /package/{dist/components → components}/ElizaCloudDashboard.d.ts +0 -0
- /package/{dist/components → components}/ElizaCloudDashboard.d.ts.map +0 -0
- /package/{dist/components → components}/EmotePicker.d.ts +0 -0
- /package/{dist/components → components}/EmotePicker.d.ts.map +0 -0
- /package/{dist/components → components}/EmotePicker.js +0 -0
- /package/{dist/components → components}/ErrorBoundary.d.ts +0 -0
- /package/{dist/components → components}/ErrorBoundary.d.ts.map +0 -0
- /package/{dist/components → components}/ErrorBoundary.js +0 -0
- /package/{dist/components → components}/FineTuningView.d.ts +0 -0
- /package/{dist/components → components}/FineTuningView.d.ts.map +0 -0
- /package/{dist/components → components}/FineTuningView.js +0 -0
- /package/{dist/components → components}/FlaminaGuide.d.ts +0 -0
- /package/{dist/components → components}/FlaminaGuide.d.ts.map +0 -0
- /package/{dist/components → components}/GameView.d.ts +0 -0
- /package/{dist/components → components}/GameView.d.ts.map +0 -0
- /package/{dist/components → components}/GameView.js +0 -0
- /package/{dist/components → components}/GameViewOverlay.d.ts +0 -0
- /package/{dist/components → components}/GameViewOverlay.d.ts.map +0 -0
- /package/{dist/components → components}/GameViewOverlay.js +0 -0
- /package/{dist/components → components}/GlobalEmoteOverlay.d.ts +0 -0
- /package/{dist/components → components}/GlobalEmoteOverlay.d.ts.map +0 -0
- /package/{dist/components → components}/GlobalEmoteOverlay.js +0 -0
- /package/{dist/components → components}/Header.d.ts +0 -0
- /package/{dist/components → components}/Header.d.ts.map +0 -0
- /package/{dist/components → components}/Header.js +0 -0
- /package/{dist/components → components}/HeartbeatsView.d.ts +0 -0
- /package/{dist/components → components}/HeartbeatsView.d.ts.map +0 -0
- /package/{dist/components → components}/HeartbeatsView.js +0 -0
- /package/{dist/components → components}/InventoryView.d.ts +0 -0
- /package/{dist/components → components}/InventoryView.d.ts.map +0 -0
- /package/{dist/components → components}/InventoryView.js +0 -0
- /package/{dist/components → components}/KnowledgeView.d.ts +0 -0
- /package/{dist/components → components}/KnowledgeView.d.ts.map +0 -0
- /package/{dist/components → components}/KnowledgeView.js +0 -0
- /package/{dist/components → components}/LanguageDropdown.d.ts +0 -0
- /package/{dist/components → components}/LanguageDropdown.d.ts.map +0 -0
- /package/{dist/components → components}/LanguageDropdown.js +0 -0
- /package/{dist/components → components}/LifoMonitorPanel.d.ts +0 -0
- /package/{dist/components → components}/LifoMonitorPanel.d.ts.map +0 -0
- /package/{dist/components → components}/LifoMonitorPanel.js +0 -0
- /package/{dist/components → components}/LifoSandboxView.d.ts +0 -0
- /package/{dist/components → components}/LifoSandboxView.d.ts.map +0 -0
- /package/{dist/components → components}/LifoSandboxView.js +0 -0
- /package/{dist/components → components}/LoadingScreen.d.ts +0 -0
- /package/{dist/components → components}/LoadingScreen.d.ts.map +0 -0
- /package/{dist/components → components}/LoadingScreen.js +0 -0
- /package/{dist/components → components}/LogsPageView.d.ts +0 -0
- /package/{dist/components → components}/LogsPageView.d.ts.map +0 -0
- /package/{dist/components → components}/LogsPageView.js +0 -0
- /package/{dist/components → components}/LogsView.d.ts +0 -0
- /package/{dist/components → components}/LogsView.d.ts.map +0 -0
- /package/{dist/components → components}/LogsView.js +0 -0
- /package/{dist/components → components}/MediaGalleryView.d.ts +0 -0
- /package/{dist/components → components}/MediaGalleryView.d.ts.map +0 -0
- /package/{dist/components → components}/MediaGalleryView.js +0 -0
- /package/{dist/components → components}/MediaSettingsSection.d.ts +0 -0
- /package/{dist/components → components}/MediaSettingsSection.d.ts.map +0 -0
- /package/{dist/components → components}/MediaSettingsSection.js +0 -0
- /package/{dist/components → components}/MessageContent.d.ts +0 -0
- /package/{dist/components → components}/MessageContent.d.ts.map +0 -0
- /package/{dist/components → components}/MessageContent.js +0 -0
- /package/{dist/components → components}/OnboardingWizard.d.ts +0 -0
- /package/{dist/components → components}/PairingView.d.ts +0 -0
- /package/{dist/components → components}/PairingView.d.ts.map +0 -0
- /package/{dist/components → components}/PairingView.js +0 -0
- /package/{dist/components → components}/PermissionsSection.d.ts +0 -0
- /package/{dist/components → components}/PermissionsSection.d.ts.map +0 -0
- /package/{dist/components → components}/PermissionsSection.js +0 -0
- /package/{dist/components → components}/PluginsPageView.d.ts +0 -0
- /package/{dist/components → components}/PluginsPageView.d.ts.map +0 -0
- /package/{dist/components → components}/PluginsPageView.js +0 -0
- /package/{dist/components → components}/PluginsView.d.ts +0 -0
- /package/{dist/components → components}/ProviderSwitcher.d.ts +0 -0
- /package/{dist/components → components}/ProviderSwitcher.d.ts.map +0 -0
- /package/{dist/components → components}/ProviderSwitcher.js +0 -0
- /package/{dist/components → components}/RestartBanner.d.ts +0 -0
- /package/{dist/components → components}/RestartBanner.d.ts.map +0 -0
- /package/{dist/components → components}/RestartBanner.js +0 -0
- /package/{dist/components → components}/RuntimeView.d.ts +0 -0
- /package/{dist/components → components}/RuntimeView.d.ts.map +0 -0
- /package/{dist/components → components}/RuntimeView.js +0 -0
- /package/{dist/components → components}/SaveCommandModal.d.ts +0 -0
- /package/{dist/components → components}/SaveCommandModal.d.ts.map +0 -0
- /package/{dist/components → components}/SaveCommandModal.js +0 -0
- /package/{dist/components → components}/SecretsView.d.ts +0 -0
- /package/{dist/components → components}/SecretsView.d.ts.map +0 -0
- /package/{dist/components → components}/SecretsView.js +0 -0
- /package/{dist/components → components}/SettingsView.d.ts +0 -0
- /package/{dist/components → components}/SettingsView.d.ts.map +0 -0
- /package/{dist/components → components}/SettingsView.js +0 -0
- /package/{dist/components → components}/ShellOverlays.d.ts +0 -0
- /package/{dist/components → components}/ShellOverlays.d.ts.map +0 -0
- /package/{dist/components → components}/ShellOverlays.js +0 -0
- /package/{dist/components → components}/ShortcutsOverlay.d.ts +0 -0
- /package/{dist/components → components}/ShortcutsOverlay.d.ts.map +0 -0
- /package/{dist/components → components}/ShortcutsOverlay.js +0 -0
- /package/{dist/components → components}/SkillsView.d.ts +0 -0
- /package/{dist/components → components}/SkillsView.d.ts.map +0 -0
- /package/{dist/components → components}/SkillsView.js +0 -0
- /package/{dist/components → components}/StartupFailureView.d.ts +0 -0
- /package/{dist/components → components}/StartupFailureView.d.ts.map +0 -0
- /package/{dist/components → components}/StartupFailureView.js +0 -0
- /package/{dist/components → components}/StreamView.d.ts +0 -0
- /package/{dist/components → components}/StreamView.d.ts.map +0 -0
- /package/{dist/components → components}/StreamView.js +0 -0
- /package/{dist/components → components}/StripeEmbeddedCheckout.d.ts +0 -0
- /package/{dist/components → components}/StripeEmbeddedCheckout.d.ts.map +0 -0
- /package/{dist/components → components}/StripeEmbeddedCheckout.js +0 -0
- /package/{dist/components → components}/SubscriptionStatus.d.ts +0 -0
- /package/{dist/components → components}/SubscriptionStatus.d.ts.map +0 -0
- /package/{dist/components → components}/SubscriptionStatus.js +0 -0
- /package/{dist/components → components}/SystemWarningBanner.d.ts +0 -0
- /package/{dist/components → components}/SystemWarningBanner.d.ts.map +0 -0
- /package/{dist/components → components}/SystemWarningBanner.js +0 -0
- /package/{dist/components → components}/ThemeToggle.d.ts +0 -0
- /package/{dist/components → components}/ThemeToggle.d.ts.map +0 -0
- /package/{dist/components → components}/ThemeToggle.js +0 -0
- /package/{dist/components → components}/TrajectoriesView.d.ts +0 -0
- /package/{dist/components → components}/TrajectoriesView.d.ts.map +0 -0
- /package/{dist/components → components}/TrajectoriesView.js +0 -0
- /package/{dist/components → components}/TrajectoryDetailView.d.ts +0 -0
- /package/{dist/components → components}/TrajectoryDetailView.d.ts.map +0 -0
- /package/{dist/components → components}/TrajectoryDetailView.js +0 -0
- /package/{dist/components → components}/TriggersView.d.ts +0 -0
- /package/{dist/components → components}/TriggersView.d.ts.map +0 -0
- /package/{dist/components → components}/TriggersView.js +0 -0
- /package/{dist/components → components}/VectorBrowserView.d.ts +0 -0
- /package/{dist/components → components}/VectorBrowserView.d.ts.map +0 -0
- /package/{dist/components → components}/VectorBrowserView.js +0 -0
- /package/{dist/components → components}/VoiceConfigView.d.ts +0 -0
- /package/{dist/components → components}/VoiceConfigView.d.ts.map +0 -0
- /package/{dist/components → components}/VoiceConfigView.js +0 -0
- /package/{dist/components → components}/VrmStage.d.ts +0 -0
- /package/{dist/components → components}/VrmStage.d.ts.map +0 -0
- /package/{dist/components → components}/VrmStage.js +0 -0
- /package/{dist/components → components}/WhatsAppQrOverlay.d.ts +0 -0
- /package/{dist/components → components}/WhatsAppQrOverlay.d.ts.map +0 -0
- /package/{dist/components → components}/WhatsAppQrOverlay.js +0 -0
- /package/{dist/components → components}/apps/AppDetailPane.d.ts +0 -0
- /package/{dist/components → components}/apps/AppDetailPane.d.ts.map +0 -0
- /package/{dist/components → components}/apps/AppDetailPane.js +0 -0
- /package/{dist/components → components}/apps/AppsCatalogGrid.d.ts +0 -0
- /package/{dist/components → components}/apps/AppsCatalogGrid.d.ts.map +0 -0
- /package/{dist/components → components}/apps/AppsCatalogGrid.js +0 -0
- /package/{dist/components → components}/apps/extensions/registry.d.ts +0 -0
- /package/{dist/components → components}/apps/extensions/registry.d.ts.map +0 -0
- /package/{dist/components → components}/apps/extensions/registry.js +0 -0
- /package/{dist/components → components}/apps/extensions/types.d.ts +0 -0
- /package/{dist/components → components}/apps/extensions/types.d.ts.map +0 -0
- /package/{dist/components → components}/apps/extensions/types.js +0 -0
- /package/{dist/components → components}/apps/helpers.d.ts +0 -0
- /package/{dist/components → components}/apps/helpers.d.ts.map +0 -0
- /package/{dist/components → components}/apps/helpers.js +0 -0
- /package/{dist/components → components}/avatar/VrmAnimationLoader.d.ts +0 -0
- /package/{dist/components → components}/avatar/VrmAnimationLoader.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/VrmAnimationLoader.js +0 -0
- /package/{dist/components → components}/avatar/VrmBlinkController.d.ts +0 -0
- /package/{dist/components → components}/avatar/VrmBlinkController.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/VrmBlinkController.js +0 -0
- /package/{dist/components → components}/avatar/VrmCameraManager.d.ts +0 -0
- /package/{dist/components → components}/avatar/VrmCameraManager.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/VrmCameraManager.js +0 -0
- /package/{dist/components → components}/avatar/VrmFootShadow.d.ts +0 -0
- /package/{dist/components → components}/avatar/VrmFootShadow.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/VrmFootShadow.js +0 -0
- /package/{dist/components → components}/avatar/mixamoVRMRigMap.d.ts +0 -0
- /package/{dist/components → components}/avatar/mixamoVRMRigMap.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/mixamoVRMRigMap.js +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoFbxToVrm.d.ts +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoFbxToVrm.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoFbxToVrm.js +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoGltfToVrm.d.ts +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoGltfToVrm.d.ts.map +0 -0
- /package/{dist/components → components}/avatar/retargetMixamoGltfToVrm.js +0 -0
- /package/{dist/components → components}/chainConfig.d.ts +0 -0
- /package/{dist/components → components}/chainConfig.d.ts.map +0 -0
- /package/{dist/components → components}/chainConfig.js +0 -0
- /package/{dist/components → components}/companion/CompanionHeader.d.ts +0 -0
- /package/{dist/components → components}/companion/CompanionHeader.d.ts.map +0 -0
- /package/{dist/components → components}/companion/CompanionHeader.js +0 -0
- /package/{dist/components → components}/companion/CompanionSceneHost.d.ts +0 -0
- /package/{dist/components → components}/companion/CompanionSceneHost.d.ts.map +0 -0
- /package/{dist/components → components}/companion/CompanionSceneHost.js +0 -0
- /package/{dist/components → components}/companion/VrmStage.d.ts +0 -0
- /package/{dist/components → components}/companion/VrmStage.d.ts.map +0 -0
- /package/{dist/components → components}/companion/VrmStage.js +0 -0
- /package/{dist/components → components}/companion/index.d.ts +0 -0
- /package/{dist/components → components}/companion/index.d.ts.map +0 -0
- /package/{dist/components → components}/companion/index.js +0 -0
- /package/{dist/components → components}/companion/walletUtils.d.ts +0 -0
- /package/{dist/components → components}/companion/walletUtils.d.ts.map +0 -0
- /package/{dist/components → components}/companion/walletUtils.js +0 -0
- /package/{dist/components → components}/companion-shell-styles.d.ts +0 -0
- /package/{dist/components → components}/companion-shell-styles.d.ts.map +0 -0
- /package/{dist/components → components}/companion-shell-styles.js +0 -0
- /package/{dist/components → components}/confirm-delete-control.d.ts +0 -0
- /package/{dist/components → components}/confirm-delete-control.d.ts.map +0 -0
- /package/{dist/components → components}/confirm-delete-control.js +0 -0
- /package/{dist/components → components}/conversations/ConversationListItem.d.ts +0 -0
- /package/{dist/components → components}/conversations/ConversationListItem.d.ts.map +0 -0
- /package/{dist/components → components}/conversations/ConversationListItem.js +0 -0
- /package/{dist/components → components}/conversations/conversation-utils.d.ts +0 -0
- /package/{dist/components → components}/conversations/conversation-utils.d.ts.map +0 -0
- /package/{dist/components → components}/conversations/conversation-utils.js +0 -0
- /package/{dist/components → components}/format.d.ts +0 -0
- /package/{dist/components → components}/format.d.ts.map +0 -0
- /package/{dist/components → components}/format.js +0 -0
- /package/{dist/components → components}/inventory/CopyableAddress.d.ts +0 -0
- /package/{dist/components → components}/inventory/CopyableAddress.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/CopyableAddress.js +0 -0
- /package/{dist/components → components}/inventory/InventoryToolbar.d.ts +0 -0
- /package/{dist/components → components}/inventory/InventoryToolbar.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/InventoryToolbar.js +0 -0
- /package/{dist/components → components}/inventory/NftGrid.d.ts +0 -0
- /package/{dist/components → components}/inventory/NftGrid.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/NftGrid.js +0 -0
- /package/{dist/components → components}/inventory/TokenLogo.d.ts +0 -0
- /package/{dist/components → components}/inventory/TokenLogo.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/TokenLogo.js +0 -0
- /package/{dist/components → components}/inventory/TokensTable.d.ts +0 -0
- /package/{dist/components → components}/inventory/TokensTable.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/TokensTable.js +0 -0
- /package/{dist/components → components}/inventory/constants.d.ts +0 -0
- /package/{dist/components → components}/inventory/constants.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/constants.js +0 -0
- /package/{dist/components → components}/inventory/index.d.ts +0 -0
- /package/{dist/components → components}/inventory/index.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/index.js +0 -0
- /package/{dist/components → components}/inventory/media-url.d.ts +0 -0
- /package/{dist/components → components}/inventory/media-url.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/media-url.js +0 -0
- /package/{dist/components → components}/inventory/useInventoryData.d.ts +0 -0
- /package/{dist/components → components}/inventory/useInventoryData.d.ts.map +0 -0
- /package/{dist/components → components}/inventory/useInventoryData.js +0 -0
- /package/{dist/components → components}/knowledge-upload-image.d.ts +0 -0
- /package/{dist/components → components}/knowledge-upload-image.d.ts.map +0 -0
- /package/{dist/components → components}/knowledge-upload-image.js +0 -0
- /package/{dist/components → components}/labels.d.ts +0 -0
- /package/{dist/components → components}/labels.d.ts.map +0 -0
- /package/{dist/components → components}/labels.js +0 -0
- /package/{dist/components → components}/onboarding/ActivateStep.d.ts +0 -0
- /package/{dist/components → components}/onboarding/ActivateStep.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/ActivateStep.js +0 -0
- /package/{dist/components → components}/onboarding/ConnectionStep.d.ts +0 -0
- /package/{dist/components → components}/onboarding/IdentityStep.d.ts +0 -0
- /package/{dist/components → components}/onboarding/IdentityStep.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/IdentityStep.js +0 -0
- /package/{dist/components → components}/onboarding/OnboardingPanel.d.ts +0 -0
- /package/{dist/components → components}/onboarding/OnboardingPanel.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/OnboardingPanel.js +0 -0
- /package/{dist/components → components}/onboarding/OnboardingStepNav.d.ts +0 -0
- /package/{dist/components → components}/onboarding/OnboardingStepNav.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/OnboardingStepNav.js +0 -0
- /package/{dist/components → components}/onboarding/PermissionsStep.d.ts +0 -0
- /package/{dist/components → components}/onboarding/PermissionsStep.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/PermissionsStep.js +0 -0
- /package/{dist/components → components}/onboarding/RpcStep.d.ts +0 -0
- /package/{dist/components → components}/onboarding/RpcStep.d.ts.map +0 -0
- /package/{dist/components → components}/onboarding/RpcStep.js +0 -0
- /package/{dist/components → components}/permissions/PermissionIcon.d.ts +0 -0
- /package/{dist/components → components}/permissions/PermissionIcon.d.ts.map +0 -0
- /package/{dist/components → components}/permissions/PermissionIcon.js +0 -0
- /package/{dist/components → components}/permissions/StreamingPermissions.d.ts +0 -0
- /package/{dist/components → components}/plugins/showcase-data.d.ts +0 -0
- /package/{dist/components → components}/plugins/showcase-data.d.ts.map +0 -0
- /package/{dist/components → components}/plugins/showcase-data.js +0 -0
- /package/{dist/components → components}/shared/ShellHeaderControls.d.ts +0 -0
- /package/{dist/components → components}/shared/ShellHeaderControls.d.ts.map +0 -0
- /package/{dist/components → components}/shared/ShellHeaderControls.js +0 -0
- /package/{dist/components → components}/shared-companion-scene-context.d.ts +0 -0
- /package/{dist/components → components}/shared-companion-scene-context.d.ts.map +0 -0
- /package/{dist/components → components}/shared-companion-scene-context.js +0 -0
- /package/{dist/components → components}/skeletons.d.ts +0 -0
- /package/{dist/components → components}/skeletons.d.ts.map +0 -0
- /package/{dist/components → components}/skeletons.js +0 -0
- /package/{dist/components → components}/stream/ActivityFeed.d.ts +0 -0
- /package/{dist/components → components}/stream/ActivityFeed.d.ts.map +0 -0
- /package/{dist/components → components}/stream/ActivityFeed.js +0 -0
- /package/{dist/components → components}/stream/AvatarPip.d.ts +0 -0
- /package/{dist/components → components}/stream/AvatarPip.d.ts.map +0 -0
- /package/{dist/components → components}/stream/AvatarPip.js +0 -0
- /package/{dist/components → components}/stream/ChatContent.d.ts +0 -0
- /package/{dist/components → components}/stream/ChatContent.d.ts.map +0 -0
- /package/{dist/components → components}/stream/ChatContent.js +0 -0
- /package/{dist/components → components}/stream/ChatTicker.d.ts +0 -0
- /package/{dist/components → components}/stream/ChatTicker.d.ts.map +0 -0
- /package/{dist/components → components}/stream/ChatTicker.js +0 -0
- /package/{dist/components → components}/stream/IdleContent.d.ts +0 -0
- /package/{dist/components → components}/stream/IdleContent.d.ts.map +0 -0
- /package/{dist/components → components}/stream/IdleContent.js +0 -0
- /package/{dist/components → components}/stream/StatusBar.d.ts +0 -0
- /package/{dist/components → components}/stream/StatusBar.d.ts.map +0 -0
- /package/{dist/components → components}/stream/StatusBar.js +0 -0
- /package/{dist/components → components}/stream/StreamSettings.d.ts +0 -0
- /package/{dist/components → components}/stream/StreamSettings.d.ts.map +0 -0
- /package/{dist/components → components}/stream/StreamSettings.js +0 -0
- /package/{dist/components → components}/stream/StreamTerminal.d.ts +0 -0
- /package/{dist/components → components}/stream/StreamTerminal.d.ts.map +0 -0
- /package/{dist/components → components}/stream/StreamTerminal.js +0 -0
- /package/{dist/components → components}/stream/StreamVoiceConfig.d.ts +0 -0
- /package/{dist/components → components}/stream/StreamVoiceConfig.d.ts.map +0 -0
- /package/{dist/components → components}/stream/StreamVoiceConfig.js +0 -0
- /package/{dist/components → components}/stream/helpers.d.ts +0 -0
- /package/{dist/components → components}/stream/helpers.d.ts.map +0 -0
- /package/{dist/components → components}/stream/helpers.js +0 -0
- /package/{dist/components → components}/stream/overlays/OverlayLayer.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/OverlayLayer.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/OverlayLayer.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ActionTickerWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ActionTickerWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ActionTickerWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/AlertPopupWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/AlertPopupWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/AlertPopupWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/BrandingWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/BrandingWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/BrandingWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/CustomHtmlWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/CustomHtmlWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/CustomHtmlWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonGlassWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonGlassWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonGlassWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonHudWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonHudWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonHudWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonSakuraWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonSakuraWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/PeonSakuraWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ThoughtBubbleWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ThoughtBubbleWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ThoughtBubbleWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ViewerCountWidget.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ViewerCountWidget.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/ViewerCountWidget.js +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/index.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/index.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/built-in/index.js +0 -0
- /package/{dist/components → components}/stream/overlays/registry.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/registry.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/registry.js +0 -0
- /package/{dist/components → components}/stream/overlays/types.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/types.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/types.js +0 -0
- /package/{dist/components → components}/stream/overlays/useOverlayLayout.d.ts +0 -0
- /package/{dist/components → components}/stream/overlays/useOverlayLayout.d.ts.map +0 -0
- /package/{dist/components → components}/stream/overlays/useOverlayLayout.js +0 -0
- /package/{dist/components → components}/trajectory-format.d.ts +0 -0
- /package/{dist/components → components}/trajectory-format.d.ts.map +0 -0
- /package/{dist/components → components}/trajectory-format.js +0 -0
- /package/{dist/components → components}/ui-badges.d.ts +0 -0
- /package/{dist/components → components}/ui-badges.d.ts.map +0 -0
- /package/{dist/components → components}/ui-badges.js +0 -0
- /package/{dist/components → components}/ui-switch.d.ts +0 -0
- /package/{dist/components → components}/ui-switch.d.ts.map +0 -0
- /package/{dist/components → components}/vector-browser-three.d.ts +0 -0
- /package/{dist/components → components}/vector-browser-three.d.ts.map +0 -0
- /package/{dist/components → components}/vector-browser-three.js +0 -0
- /package/{dist/config → config}/branding.d.ts +0 -0
- /package/{dist/config → config}/branding.d.ts.map +0 -0
- /package/{dist/config → config}/branding.js +0 -0
- /package/{dist/config → config}/config-catalog.d.ts +0 -0
- /package/{dist/config → config}/config-catalog.d.ts.map +0 -0
- /package/{dist/config → config}/config-catalog.js +0 -0
- /package/{dist/config → config}/config-field.d.ts +0 -0
- /package/{dist/config → config}/config-field.d.ts.map +0 -0
- /package/{dist/config → config}/config-field.js +0 -0
- /package/{dist/config → config}/config-renderer.d.ts +0 -0
- /package/{dist/config → config}/config-renderer.d.ts.map +0 -0
- /package/{dist/config → config}/config-renderer.js +0 -0
- /package/{dist/config → config}/index.d.ts +0 -0
- /package/{dist/config → config}/index.d.ts.map +0 -0
- /package/{dist/config → config}/index.js +0 -0
- /package/{dist/config → config}/ui-renderer.d.ts +0 -0
- /package/{dist/config → config}/ui-renderer.d.ts.map +0 -0
- /package/{dist/config → config}/ui-renderer.js +0 -0
- /package/{dist/config → config}/ui-spec.d.ts +0 -0
- /package/{dist/config → config}/ui-spec.d.ts.map +0 -0
- /package/{dist/config → config}/ui-spec.js +0 -0
- /package/{dist/events → events}/index.d.ts +0 -0
- /package/{dist/events → events}/index.d.ts.map +0 -0
- /package/{dist/events → events}/index.js +0 -0
- /package/{dist/hooks → hooks}/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/index.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/index.js +0 -0
- /package/{dist/hooks → hooks}/useBugReport.d.ts +0 -0
- /package/{dist/hooks → hooks}/useBugReport.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useBugReport.js +0 -0
- /package/{dist/hooks → hooks}/useCanvasWindow.d.ts +0 -0
- /package/{dist/hooks → hooks}/useCanvasWindow.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useCanvasWindow.js +0 -0
- /package/{dist/hooks → hooks}/useChatAvatarVoice.d.ts +0 -0
- /package/{dist/hooks → hooks}/useChatAvatarVoice.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useChatAvatarVoice.js +0 -0
- /package/{dist/hooks → hooks}/useClickOutside.d.ts +0 -0
- /package/{dist/hooks → hooks}/useClickOutside.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useClickOutside.js +0 -0
- /package/{dist/hooks → hooks}/useContextMenu.d.ts +0 -0
- /package/{dist/hooks → hooks}/useContextMenu.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useContextMenu.js +0 -0
- /package/{dist/hooks → hooks}/useKeyboardShortcuts.d.ts +0 -0
- /package/{dist/hooks → hooks}/useKeyboardShortcuts.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useKeyboardShortcuts.js +0 -0
- /package/{dist/hooks → hooks}/useLifoSync.d.ts +0 -0
- /package/{dist/hooks → hooks}/useLifoSync.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useLifoSync.js +0 -0
- /package/{dist/hooks → hooks}/useMemoryMonitor.d.ts +0 -0
- /package/{dist/hooks → hooks}/useMemoryMonitor.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useMemoryMonitor.js +0 -0
- /package/{dist/hooks → hooks}/useRenderGuard.d.ts +0 -0
- /package/{dist/hooks → hooks}/useRenderGuard.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useRenderGuard.js +0 -0
- /package/{dist/hooks → hooks}/useRetakeCapture.d.ts +0 -0
- /package/{dist/hooks → hooks}/useRetakeCapture.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useRetakeCapture.js +0 -0
- /package/{dist/hooks → hooks}/useStreamPopoutNavigation.d.ts +0 -0
- /package/{dist/hooks → hooks}/useStreamPopoutNavigation.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useStreamPopoutNavigation.js +0 -0
- /package/{dist/hooks → hooks}/useTimeout.d.ts +0 -0
- /package/{dist/hooks → hooks}/useTimeout.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useTimeout.js +0 -0
- /package/{dist/hooks → hooks}/useVoiceChat.d.ts +0 -0
- /package/{dist/hooks → hooks}/useVoiceChat.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useVoiceChat.js +0 -0
- /package/{dist/hooks → hooks}/useWhatsAppPairing.d.ts +0 -0
- /package/{dist/hooks → hooks}/useWhatsAppPairing.d.ts.map +0 -0
- /package/{dist/hooks → hooks}/useWhatsAppPairing.js +0 -0
- /package/{dist/i18n → i18n}/index.d.ts +0 -0
- /package/{dist/i18n → i18n}/index.d.ts.map +0 -0
- /package/{dist/i18n → i18n}/index.js +0 -0
- /package/{dist/i18n → i18n}/messages.d.ts +0 -0
- /package/{dist/i18n → i18n}/messages.d.ts.map +0 -0
- /package/{dist/i18n → i18n}/messages.js +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/index.d.ts.map → index.d.ts.map} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/navigation → navigation}/index.d.ts +0 -0
- /package/{dist/navigation → navigation}/index.d.ts.map +0 -0
- /package/{dist/navigation → navigation}/index.js +0 -0
- /package/{dist/onboarding-config.d.ts → onboarding-config.d.ts} +0 -0
- /package/{dist/onboarding-config.d.ts.map → onboarding-config.d.ts.map} +0 -0
- /package/{dist/onboarding-config.js → onboarding-config.js} +0 -0
- /package/{dist/platform → platform}/browser-launch.d.ts +0 -0
- /package/{dist/platform → platform}/browser-launch.d.ts.map +0 -0
- /package/{dist/platform → platform}/browser-launch.js +0 -0
- /package/{dist/platform → platform}/index.d.ts +0 -0
- /package/{dist/platform → platform}/index.d.ts.map +0 -0
- /package/{dist/platform → platform}/index.js +0 -0
- /package/{dist/platform → platform}/init.d.ts +0 -0
- /package/{dist/platform → platform}/init.d.ts.map +0 -0
- /package/{dist/platform → platform}/init.js +0 -0
- /package/{dist/platform → platform}/lifo.d.ts +0 -0
- /package/{dist/platform → platform}/lifo.d.ts.map +0 -0
- /package/{dist/platform → platform}/lifo.js +0 -0
- /package/{dist/providers → providers}/index.d.ts +0 -0
- /package/{dist/providers → providers}/index.d.ts.map +0 -0
- /package/{dist/providers → providers}/index.js +0 -0
- /package/{dist/shell-params.d.ts → shell-params.d.ts} +0 -0
- /package/{dist/shell-params.d.ts.map → shell-params.d.ts.map} +0 -0
- /package/{dist/shell-params.js → shell-params.js} +0 -0
- /package/{dist/state → state}/AppContext.d.ts +0 -0
- /package/{dist/state → state}/index.d.ts +0 -0
- /package/{dist/state → state}/index.d.ts.map +0 -0
- /package/{dist/state → state}/index.js +0 -0
- /package/{dist/state → state}/internal.d.ts +0 -0
- /package/{dist/state → state}/internal.d.ts.map +0 -0
- /package/{dist/state → state}/internal.js +0 -0
- /package/{dist/state → state}/onboarding-resume.d.ts +0 -0
- /package/{dist/state → state}/onboarding-resume.d.ts.map +0 -0
- /package/{dist/state → state}/onboarding-resume.js +0 -0
- /package/{dist/state → state}/parsers.d.ts +0 -0
- /package/{dist/state → state}/parsers.d.ts.map +0 -0
- /package/{dist/state → state}/parsers.js +0 -0
- /package/{dist/state → state}/persistence.d.ts +0 -0
- /package/{dist/state → state}/persistence.d.ts.map +0 -0
- /package/{dist/state → state}/persistence.js +0 -0
- /package/{dist/state → state}/shell-routing.d.ts +0 -0
- /package/{dist/state → state}/shell-routing.d.ts.map +0 -0
- /package/{dist/state → state}/shell-routing.js +0 -0
- /package/{dist/state → state}/types.d.ts +0 -0
- /package/{dist/state → state}/types.d.ts.map +0 -0
- /package/{dist/state → state}/types.js +0 -0
- /package/{dist/state → state}/ui-preferences.d.ts +0 -0
- /package/{dist/state → state}/ui-preferences.d.ts.map +0 -0
- /package/{dist/state → state}/ui-preferences.js +0 -0
- /package/{dist/state → state}/useApp.d.ts +0 -0
- /package/{dist/state → state}/useApp.d.ts.map +0 -0
- /package/{dist/state → state}/useApp.js +0 -0
- /package/{dist/state → state}/vrm.d.ts +0 -0
- /package/{dist/state → state}/vrm.d.ts.map +0 -0
- /package/{dist/state → state}/vrm.js +0 -0
- /package/{dist/styles → styles}/base.css +0 -0
- /package/{dist/styles → styles}/styles.css +0 -0
- /package/{dist/styles → styles}/xterm.css +0 -0
- /package/{dist/types → types}/index.d.ts +0 -0
- /package/{dist/types → types}/index.d.ts.map +0 -0
- /package/{dist/types → types}/index.js +0 -0
- /package/{dist/utils → utils}/asset-url.d.ts +0 -0
- /package/{dist/utils → utils}/asset-url.d.ts.map +0 -0
- /package/{dist/utils → utils}/asset-url.js +0 -0
- /package/{dist/utils → utils}/assistant-text.d.ts +0 -0
- /package/{dist/utils → utils}/assistant-text.d.ts.map +0 -0
- /package/{dist/utils → utils}/assistant-text.js +0 -0
- /package/{dist/utils → utils}/clipboard.d.ts +0 -0
- /package/{dist/utils → utils}/clipboard.d.ts.map +0 -0
- /package/{dist/utils → utils}/clipboard.js +0 -0
- /package/{dist/utils → utils}/desktop-dialogs.d.ts +0 -0
- /package/{dist/utils → utils}/desktop-dialogs.d.ts.map +0 -0
- /package/{dist/utils → utils}/desktop-dialogs.js +0 -0
- /package/{dist/utils → utils}/eliza-globals.d.ts +0 -0
- /package/{dist/utils → utils}/eliza-globals.d.ts.map +0 -0
- /package/{dist/utils → utils}/eliza-globals.js +0 -0
- /package/{dist/utils → utils}/index.d.ts +0 -0
- /package/{dist/utils → utils}/index.d.ts.map +0 -0
- /package/{dist/utils → utils}/index.js +0 -0
- /package/{dist/utils → utils}/number-parsing.d.ts +0 -0
- /package/{dist/utils → utils}/number-parsing.d.ts.map +0 -0
- /package/{dist/utils → utils}/number-parsing.js +0 -0
- /package/{dist/utils → utils}/openExternalUrl.d.ts +0 -0
- /package/{dist/utils → utils}/openExternalUrl.d.ts.map +0 -0
- /package/{dist/utils → utils}/openExternalUrl.js +0 -0
- /package/{dist/utils → utils}/spoken-text.d.ts +0 -0
- /package/{dist/utils → utils}/spoken-text.d.ts.map +0 -0
- /package/{dist/utils → utils}/spoken-text.js +0 -0
- /package/{dist/utils → utils}/streaming-text.d.ts +0 -0
- /package/{dist/utils → utils}/streaming-text.d.ts.map +0 -0
- /package/{dist/utils → utils}/streaming-text.js +0 -0
- /package/{dist/voice → voice}/index.d.ts +0 -0
- /package/{dist/voice → voice}/index.d.ts.map +0 -0
- /package/{dist/voice → voice}/index.js +0 -0
- /package/{dist/voice → voice}/types.d.ts +0 -0
- /package/{dist/voice → voice}/types.d.ts.map +0 -0
- /package/{dist/voice → voice}/types.js +0 -0
- /package/{dist/wallet-rpc.d.ts → wallet-rpc.d.ts} +0 -0
- /package/{dist/wallet-rpc.d.ts.map → wallet-rpc.d.ts.map} +0 -0
- /package/{dist/wallet-rpc.js → wallet-rpc.js} +0 -0
|
@@ -1,1590 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
OpenRouterModelOption,
|
|
3
|
-
PiAiModelOption,
|
|
4
|
-
ProviderOption,
|
|
5
|
-
} from "@elizaos/app-core/api";
|
|
6
|
-
import { client } from "@elizaos/app-core/api";
|
|
7
|
-
import { useBranding } from "@elizaos/app-core/config";
|
|
8
|
-
import { isNative } from "@elizaos/app-core/platform";
|
|
9
|
-
import { getProviderLogo } from "@elizaos/app-core/providers";
|
|
10
|
-
import { useApp } from "@elizaos/app-core/state";
|
|
11
|
-
import { openExternalUrl } from "@elizaos/app-core/utils";
|
|
12
|
-
import { ONBOARDING_PROVIDER_CATALOG } from "@elizaos/autonomous/contracts/onboarding";
|
|
13
|
-
import { useEffect, useState } from "react";
|
|
14
|
-
|
|
15
|
-
function formatRequestError(err: unknown): string {
|
|
16
|
-
if (err instanceof Error) {
|
|
17
|
-
return err.message;
|
|
18
|
-
}
|
|
19
|
-
return String(err);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function ConnectionStep() {
|
|
23
|
-
const {
|
|
24
|
-
onboardingOptions,
|
|
25
|
-
onboardingRunMode,
|
|
26
|
-
onboardingCloudProvider,
|
|
27
|
-
onboardingProvider,
|
|
28
|
-
onboardingSubscriptionTab,
|
|
29
|
-
onboardingApiKey,
|
|
30
|
-
onboardingDetectedProviders,
|
|
31
|
-
onboardingRemoteApiBase,
|
|
32
|
-
onboardingRemoteToken,
|
|
33
|
-
onboardingRemoteConnecting,
|
|
34
|
-
onboardingRemoteError,
|
|
35
|
-
onboardingRemoteConnected,
|
|
36
|
-
onboardingPrimaryModel,
|
|
37
|
-
onboardingElizaCloudTab,
|
|
38
|
-
onboardingOpenRouterModel,
|
|
39
|
-
elizaCloudConnected,
|
|
40
|
-
elizaCloudLoginBusy,
|
|
41
|
-
elizaCloudLoginError,
|
|
42
|
-
handleCloudLogin,
|
|
43
|
-
handleOnboardingRemoteConnect,
|
|
44
|
-
handleOnboardingUseLocalBackend,
|
|
45
|
-
handleOnboardingNext,
|
|
46
|
-
handleOnboardingBack,
|
|
47
|
-
setState,
|
|
48
|
-
t,
|
|
49
|
-
} = useApp();
|
|
50
|
-
|
|
51
|
-
const branding = useBranding();
|
|
52
|
-
|
|
53
|
-
const [openaiOAuthStarted, setOpenaiOAuthStarted] = useState(false);
|
|
54
|
-
const [openaiCallbackUrl, setOpenaiCallbackUrl] = useState("");
|
|
55
|
-
const [openaiConnected, setOpenaiConnected] = useState(false);
|
|
56
|
-
const [openaiError, setOpenaiError] = useState("");
|
|
57
|
-
|
|
58
|
-
const [anthropicOAuthStarted, setAnthropicOAuthStarted] = useState(false);
|
|
59
|
-
const [anthropicCode, setAnthropicCode] = useState("");
|
|
60
|
-
const [anthropicConnected, setAnthropicConnected] = useState(false);
|
|
61
|
-
const [anthropicError, setAnthropicError] = useState("");
|
|
62
|
-
|
|
63
|
-
const [apiKeyFormatWarning, setApiKeyFormatWarning] = useState("");
|
|
64
|
-
|
|
65
|
-
const handleAnthropicStart = async () => {
|
|
66
|
-
setAnthropicError("");
|
|
67
|
-
try {
|
|
68
|
-
const { authUrl } = await client.startAnthropicLogin();
|
|
69
|
-
if (authUrl) {
|
|
70
|
-
await openExternalUrl(authUrl);
|
|
71
|
-
setAnthropicOAuthStarted(true);
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
setAnthropicError("Failed to get auth URL");
|
|
75
|
-
} catch (err) {
|
|
76
|
-
setAnthropicError(`Failed to start login: ${formatRequestError(err)}`);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const handleAnthropicExchange = async () => {
|
|
81
|
-
setAnthropicError("");
|
|
82
|
-
try {
|
|
83
|
-
const result = await client.exchangeAnthropicCode(anthropicCode);
|
|
84
|
-
if (result.success) {
|
|
85
|
-
setAnthropicConnected(true);
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
setAnthropicError(result.error ?? "Exchange failed");
|
|
89
|
-
} catch (err) {
|
|
90
|
-
setAnthropicError(`Exchange failed: ${formatRequestError(err)}`);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
const handleOpenAIStart = async () => {
|
|
95
|
-
try {
|
|
96
|
-
const { authUrl } = await client.startOpenAILogin();
|
|
97
|
-
if (authUrl) {
|
|
98
|
-
await openExternalUrl(authUrl);
|
|
99
|
-
setOpenaiOAuthStarted(true);
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
setOpenaiError("No auth URL returned from login");
|
|
103
|
-
} catch (err) {
|
|
104
|
-
setOpenaiError(`Failed to start login: ${formatRequestError(err)}`);
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
const handleOpenAIExchange = async () => {
|
|
109
|
-
setOpenaiError("");
|
|
110
|
-
try {
|
|
111
|
-
const data = await client.exchangeOpenAICode(openaiCallbackUrl);
|
|
112
|
-
if (data.success) {
|
|
113
|
-
setOpenaiOAuthStarted(false);
|
|
114
|
-
setOpenaiCallbackUrl("");
|
|
115
|
-
setOpenaiConnected(true);
|
|
116
|
-
setState("onboardingProvider", "openai-subscription");
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
const msg = data.error ?? "Exchange failed";
|
|
120
|
-
setOpenaiError(
|
|
121
|
-
msg.includes("No active flow")
|
|
122
|
-
? t("onboarding.loginSessionExpired")
|
|
123
|
-
: msg,
|
|
124
|
-
);
|
|
125
|
-
} catch (_err) {
|
|
126
|
-
setOpenaiError(t("onboarding.networkError"));
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
const validateApiKeyFormat = (key: string, providerId: string): string => {
|
|
131
|
-
if (!key || key.trim().length === 0) return "";
|
|
132
|
-
const trimmed = key.trim();
|
|
133
|
-
if (providerId === "openai" && !trimmed.startsWith("sk-")) {
|
|
134
|
-
return t("onboarding.keyFormatWarning");
|
|
135
|
-
}
|
|
136
|
-
if (providerId === "anthropic" && !trimmed.startsWith("sk-ant-")) {
|
|
137
|
-
return t("onboarding.keyFormatWarning");
|
|
138
|
-
}
|
|
139
|
-
if (trimmed.length < 20) {
|
|
140
|
-
return t("onboarding.keyFormatWarning");
|
|
141
|
-
}
|
|
142
|
-
return "";
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
const handleApiKeyChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
146
|
-
const newKey = e.target.value;
|
|
147
|
-
setState("onboardingApiKey", newKey);
|
|
148
|
-
setApiKeyFormatWarning(validateApiKeyFormat(newKey, onboardingProvider));
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
const handleOpenRouterModelSelect = (modelId: string) => {
|
|
152
|
-
setState("onboardingOpenRouterModel", modelId);
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
// Use the static provider catalog shipped in the frontend bundle — no API
|
|
156
|
-
// call needed. Runtime overrides from `onboardingOptions` (if available)
|
|
157
|
-
// take precedence so the server can still augment the list when present.
|
|
158
|
-
const catalogProviders: ProviderOption[] =
|
|
159
|
-
(onboardingOptions?.providers as ProviderOption[] | undefined)?.length
|
|
160
|
-
? (onboardingOptions!.providers as ProviderOption[])
|
|
161
|
-
: ([...ONBOARDING_PROVIDER_CATALOG] as unknown as ProviderOption[]);
|
|
162
|
-
// Merge custom providers from branding (app-injected) with the catalog.
|
|
163
|
-
// Custom providers are appended; duplicates (by id) are skipped.
|
|
164
|
-
const customProviders = branding.customProviders ?? [];
|
|
165
|
-
const catalogIds = new Set(catalogProviders.map((p: ProviderOption) => p.id));
|
|
166
|
-
const providers = [
|
|
167
|
-
...catalogProviders,
|
|
168
|
-
...customProviders.filter((cp) => !catalogIds.has(cp.id as never)),
|
|
169
|
-
] as ProviderOption[];
|
|
170
|
-
// Build a map of custom provider logos for getProviderLogo lookups.
|
|
171
|
-
const customLogoMap = new Map(
|
|
172
|
-
customProviders
|
|
173
|
-
.filter((cp) => cp.logoDark || cp.logoLight)
|
|
174
|
-
.map((cp) => [cp.id, { logoDark: cp.logoDark, logoLight: cp.logoLight }]),
|
|
175
|
-
);
|
|
176
|
-
const getCustomLogo = (id: string) => customLogoMap.get(id);
|
|
177
|
-
const elizaCloudReady =
|
|
178
|
-
elizaCloudConnected ||
|
|
179
|
-
(onboardingRunMode === "cloud" &&
|
|
180
|
-
onboardingCloudProvider === "elizacloud" &&
|
|
181
|
-
onboardingApiKey.trim().length > 0);
|
|
182
|
-
const showProviderSelection =
|
|
183
|
-
onboardingRemoteConnected || onboardingRunMode === "local";
|
|
184
|
-
|
|
185
|
-
const recommendedIds = new Set([
|
|
186
|
-
"elizacloud",
|
|
187
|
-
"anthropic-subscription",
|
|
188
|
-
"openai-subscription",
|
|
189
|
-
]);
|
|
190
|
-
|
|
191
|
-
const providerOverrides: Record<
|
|
192
|
-
string,
|
|
193
|
-
{ name: string; description?: string }
|
|
194
|
-
> = {
|
|
195
|
-
elizacloud: { name: "Eliza Cloud", description: "LLMs, RPCs & more included" },
|
|
196
|
-
"anthropic-subscription": {
|
|
197
|
-
name: "Claude Sub",
|
|
198
|
-
description: "Pro/Max subscription",
|
|
199
|
-
},
|
|
200
|
-
"openai-subscription": {
|
|
201
|
-
name: "ChatGPT Sub",
|
|
202
|
-
description: "Plus/Pro subscription",
|
|
203
|
-
},
|
|
204
|
-
anthropic: { name: "Anthropic", description: "Claude API key" },
|
|
205
|
-
openai: { name: "OpenAI", description: "GPT API key" },
|
|
206
|
-
openrouter: { name: "OpenRouter", description: "Multi-model API" },
|
|
207
|
-
gemini: { name: "Gemini", description: "Google AI" },
|
|
208
|
-
grok: { name: "xAI (Grok)" },
|
|
209
|
-
groq: { name: "Groq", description: "Fast inference" },
|
|
210
|
-
deepseek: { name: "DeepSeek" },
|
|
211
|
-
"pi-ai": { name: "Pi Credentials", description: "Local auth" },
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
const getProviderDisplay = (provider: ProviderOption) => {
|
|
215
|
-
const override = providerOverrides[provider.id];
|
|
216
|
-
return {
|
|
217
|
-
name: override?.name ?? provider.name,
|
|
218
|
-
description: override?.description ?? provider.description,
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
const handleSelectLocalHosting = () => {
|
|
223
|
-
setState("onboardingRunMode", "local");
|
|
224
|
-
setState("onboardingCloudProvider", "");
|
|
225
|
-
setState("onboardingRemoteError", null);
|
|
226
|
-
setState("onboardingRemoteConnecting", false);
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
const handleSelectCloudHosting = () => {
|
|
230
|
-
setState("onboardingRunMode", "cloud");
|
|
231
|
-
setState("onboardingProvider", "");
|
|
232
|
-
setState("onboardingApiKey", "");
|
|
233
|
-
setState("onboardingPrimaryModel", "");
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
const resetCloudSelection = () => {
|
|
237
|
-
setState("onboardingCloudProvider", "");
|
|
238
|
-
setState("onboardingApiKey", "");
|
|
239
|
-
setState("onboardingRemoteError", null);
|
|
240
|
-
setState("onboardingRemoteConnecting", false);
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
const resetHostingSelection = () => {
|
|
244
|
-
resetCloudSelection();
|
|
245
|
-
setState("onboardingRunMode", "");
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
const handleRemoteBack = () => {
|
|
249
|
-
if (onboardingRemoteConnected) {
|
|
250
|
-
handleOnboardingUseLocalBackend();
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
resetCloudSelection();
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
const detectedByProviderId = new Map(
|
|
257
|
-
(onboardingDetectedProviders ?? []).map((d) => [d.id, d]),
|
|
258
|
-
);
|
|
259
|
-
|
|
260
|
-
const getDetectedLabel = (providerId: string): string | null => {
|
|
261
|
-
const d = detectedByProviderId.get(providerId);
|
|
262
|
-
if (!d) return null;
|
|
263
|
-
if (d.source === "codex-auth") return "Detected from Codex";
|
|
264
|
-
if (d.source === "claude-credentials") return "Detected from Claude Code";
|
|
265
|
-
if (d.source === "keychain") return "Detected from Keychain";
|
|
266
|
-
if (d.source === "env") return "Detected from env";
|
|
267
|
-
return "Auto-detected";
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
const availableProviders = providers;
|
|
271
|
-
const recommendedProviders = availableProviders.filter((p: ProviderOption) =>
|
|
272
|
-
recommendedIds.has(p.id),
|
|
273
|
-
);
|
|
274
|
-
const otherProviders = availableProviders.filter(
|
|
275
|
-
(p: ProviderOption) => !recommendedIds.has(p.id),
|
|
276
|
-
);
|
|
277
|
-
const sortedProviders = [...recommendedProviders, ...otherProviders];
|
|
278
|
-
|
|
279
|
-
const piAiModels = onboardingOptions?.piAiModels ?? [];
|
|
280
|
-
const piAiDefaultModel = onboardingOptions?.piAiDefaultModel ?? "";
|
|
281
|
-
const normalizedPrimaryModel = onboardingPrimaryModel.trim();
|
|
282
|
-
const hasKnownPiAiModel = piAiModels.some(
|
|
283
|
-
(model: PiAiModelOption) => model.id === normalizedPrimaryModel,
|
|
284
|
-
);
|
|
285
|
-
const piAiSelectValue =
|
|
286
|
-
normalizedPrimaryModel.length === 0
|
|
287
|
-
? ""
|
|
288
|
-
: hasKnownPiAiModel
|
|
289
|
-
? normalizedPrimaryModel
|
|
290
|
-
: "__custom__";
|
|
291
|
-
|
|
292
|
-
const handleProviderSelect = (providerId: string) => {
|
|
293
|
-
setState("onboardingProvider", providerId);
|
|
294
|
-
// Auto-fill API key from detected credentials if available
|
|
295
|
-
const detected = detectedByProviderId.get(providerId);
|
|
296
|
-
setState("onboardingApiKey", detected?.apiKey ?? "");
|
|
297
|
-
setState("onboardingPrimaryModel", "");
|
|
298
|
-
if (providerId === "anthropic-subscription") {
|
|
299
|
-
setState("onboardingSubscriptionTab", "token");
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
// On native (mobile) or when branding requires cloud-only, skip the
|
|
304
|
-
// hosting choice screen and go straight to the provider selection grid.
|
|
305
|
-
// Eliza Cloud appears as the first recommended option alongside subscriptions.
|
|
306
|
-
const forceCloud = isNative || branding.cloudOnly;
|
|
307
|
-
useEffect(() => {
|
|
308
|
-
if (forceCloud && !onboardingRunMode) {
|
|
309
|
-
setState("onboardingRunMode", "local");
|
|
310
|
-
setState("onboardingProvider", "");
|
|
311
|
-
setState("onboardingApiKey", "");
|
|
312
|
-
setState("onboardingPrimaryModel", "");
|
|
313
|
-
}
|
|
314
|
-
}, [forceCloud, onboardingRunMode, setState]);
|
|
315
|
-
|
|
316
|
-
if (!showProviderSelection) {
|
|
317
|
-
if (!onboardingRunMode) {
|
|
318
|
-
return (
|
|
319
|
-
<>
|
|
320
|
-
<div className="onboarding-section-title">
|
|
321
|
-
{t("onboarding.hostingTitle")}
|
|
322
|
-
</div>
|
|
323
|
-
<div className="onboarding-divider">
|
|
324
|
-
<div className="onboarding-divider-diamond" />
|
|
325
|
-
</div>
|
|
326
|
-
<div className="onboarding-question">
|
|
327
|
-
{t("onboarding.hostingQuestion")}
|
|
328
|
-
</div>
|
|
329
|
-
<div className="onboarding-provider-grid">
|
|
330
|
-
{!isNative && !branding.cloudOnly && (
|
|
331
|
-
<button
|
|
332
|
-
type="button"
|
|
333
|
-
className="onboarding-provider-card onboarding-provider-card--recommended"
|
|
334
|
-
onClick={handleSelectLocalHosting}
|
|
335
|
-
>
|
|
336
|
-
<div>
|
|
337
|
-
<div className="onboarding-provider-name">
|
|
338
|
-
{t("onboarding.hostingLocal")}
|
|
339
|
-
</div>
|
|
340
|
-
<div className="onboarding-provider-desc">
|
|
341
|
-
{t("onboarding.hostingLocalDesc")}
|
|
342
|
-
</div>
|
|
343
|
-
</div>
|
|
344
|
-
<span className="onboarding-provider-badge">
|
|
345
|
-
{t("onboarding.recommended") ?? "Recommended"}
|
|
346
|
-
</span>
|
|
347
|
-
</button>
|
|
348
|
-
)}
|
|
349
|
-
<button
|
|
350
|
-
type="button"
|
|
351
|
-
className="onboarding-provider-card"
|
|
352
|
-
onClick={handleSelectCloudHosting}
|
|
353
|
-
>
|
|
354
|
-
<div>
|
|
355
|
-
<div className="onboarding-provider-name">
|
|
356
|
-
{t("onboarding.hostingCloud")}
|
|
357
|
-
</div>
|
|
358
|
-
<div className="onboarding-provider-desc">
|
|
359
|
-
{t("onboarding.hostingCloudDesc")}
|
|
360
|
-
</div>
|
|
361
|
-
</div>
|
|
362
|
-
</button>
|
|
363
|
-
</div>
|
|
364
|
-
<div className="onboarding-panel-footer">
|
|
365
|
-
<button
|
|
366
|
-
className="onboarding-back-link"
|
|
367
|
-
onClick={handleOnboardingBack}
|
|
368
|
-
type="button"
|
|
369
|
-
>
|
|
370
|
-
{t("onboarding.back")}
|
|
371
|
-
</button>
|
|
372
|
-
<span />
|
|
373
|
-
</div>
|
|
374
|
-
</>
|
|
375
|
-
);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
if (!onboardingCloudProvider) {
|
|
379
|
-
return (
|
|
380
|
-
<>
|
|
381
|
-
<div className="onboarding-section-title">
|
|
382
|
-
{t("onboarding.hostingCloud")}
|
|
383
|
-
</div>
|
|
384
|
-
<div className="onboarding-divider">
|
|
385
|
-
<div className="onboarding-divider-diamond" />
|
|
386
|
-
</div>
|
|
387
|
-
<div className="onboarding-question">
|
|
388
|
-
{t("onboarding.cloudQuestion")}
|
|
389
|
-
</div>
|
|
390
|
-
<div className="onboarding-provider-grid">
|
|
391
|
-
<button
|
|
392
|
-
type="button"
|
|
393
|
-
className="onboarding-provider-card onboarding-provider-card--recommended"
|
|
394
|
-
onClick={() => setState("onboardingCloudProvider", "elizacloud")}
|
|
395
|
-
>
|
|
396
|
-
<div>
|
|
397
|
-
<div className="onboarding-provider-name">
|
|
398
|
-
{t("onboarding.cloudManaged")}
|
|
399
|
-
</div>
|
|
400
|
-
<div className="onboarding-provider-desc">
|
|
401
|
-
{t("onboarding.cloudManagedDesc")}
|
|
402
|
-
</div>
|
|
403
|
-
</div>
|
|
404
|
-
<span className="onboarding-provider-badge">
|
|
405
|
-
{t("onboarding.recommended") ?? "Recommended"}
|
|
406
|
-
</span>
|
|
407
|
-
</button>
|
|
408
|
-
<button
|
|
409
|
-
type="button"
|
|
410
|
-
className="onboarding-provider-card"
|
|
411
|
-
onClick={() => setState("onboardingCloudProvider", "remote")}
|
|
412
|
-
>
|
|
413
|
-
<div>
|
|
414
|
-
<div className="onboarding-provider-name">
|
|
415
|
-
{t("onboarding.cloudRemote")}
|
|
416
|
-
</div>
|
|
417
|
-
<div className="onboarding-provider-desc">
|
|
418
|
-
{t("onboarding.cloudRemoteDesc")}
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
</button>
|
|
422
|
-
</div>
|
|
423
|
-
<div className="onboarding-panel-footer">
|
|
424
|
-
<button
|
|
425
|
-
className="onboarding-back-link"
|
|
426
|
-
onClick={resetHostingSelection}
|
|
427
|
-
type="button"
|
|
428
|
-
>
|
|
429
|
-
{t("onboarding.back")}
|
|
430
|
-
</button>
|
|
431
|
-
<span />
|
|
432
|
-
</div>
|
|
433
|
-
</>
|
|
434
|
-
);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
if (onboardingCloudProvider === "remote") {
|
|
438
|
-
return (
|
|
439
|
-
<>
|
|
440
|
-
<div className="onboarding-section-title">
|
|
441
|
-
{t("onboarding.remoteTitle")}
|
|
442
|
-
</div>
|
|
443
|
-
<div className="onboarding-divider">
|
|
444
|
-
<div className="onboarding-divider-diamond" />
|
|
445
|
-
</div>
|
|
446
|
-
<div
|
|
447
|
-
style={{
|
|
448
|
-
width: "100%",
|
|
449
|
-
textAlign: "left",
|
|
450
|
-
display: "flex",
|
|
451
|
-
flexDirection: "column",
|
|
452
|
-
gap: "0.875rem",
|
|
453
|
-
}}
|
|
454
|
-
>
|
|
455
|
-
<div>
|
|
456
|
-
<label
|
|
457
|
-
htmlFor="remote-api-base"
|
|
458
|
-
style={{
|
|
459
|
-
display: "block",
|
|
460
|
-
fontSize: "0.875rem",
|
|
461
|
-
marginBottom: "0.375rem",
|
|
462
|
-
color: "var(--muted)",
|
|
463
|
-
}}
|
|
464
|
-
>
|
|
465
|
-
{t("onboarding.remoteAddress")}
|
|
466
|
-
</label>
|
|
467
|
-
<input
|
|
468
|
-
id="remote-api-base"
|
|
469
|
-
type="text"
|
|
470
|
-
className="onboarding-input"
|
|
471
|
-
placeholder={t("onboarding.remoteAddressPlaceholder")}
|
|
472
|
-
value={onboardingRemoteApiBase}
|
|
473
|
-
onChange={(e) =>
|
|
474
|
-
setState("onboardingRemoteApiBase", e.target.value)
|
|
475
|
-
}
|
|
476
|
-
/>
|
|
477
|
-
</div>
|
|
478
|
-
|
|
479
|
-
<div>
|
|
480
|
-
<label
|
|
481
|
-
htmlFor="remote-api-token"
|
|
482
|
-
style={{
|
|
483
|
-
display: "block",
|
|
484
|
-
fontSize: "0.875rem",
|
|
485
|
-
marginBottom: "0.375rem",
|
|
486
|
-
color: "var(--muted)",
|
|
487
|
-
}}
|
|
488
|
-
>
|
|
489
|
-
{t("onboarding.remoteAccessKey")}
|
|
490
|
-
</label>
|
|
491
|
-
<input
|
|
492
|
-
id="remote-api-token"
|
|
493
|
-
type="password"
|
|
494
|
-
className="onboarding-input"
|
|
495
|
-
placeholder={t("onboarding.remoteAccessKeyPlaceholder")}
|
|
496
|
-
value={onboardingRemoteToken}
|
|
497
|
-
onChange={(e) =>
|
|
498
|
-
setState("onboardingRemoteToken", e.target.value)
|
|
499
|
-
}
|
|
500
|
-
/>
|
|
501
|
-
</div>
|
|
502
|
-
|
|
503
|
-
{onboardingRemoteError && (
|
|
504
|
-
<p
|
|
505
|
-
style={{
|
|
506
|
-
color: "var(--danger)",
|
|
507
|
-
fontSize: "0.8125rem",
|
|
508
|
-
}}
|
|
509
|
-
>
|
|
510
|
-
{onboardingRemoteError}
|
|
511
|
-
</p>
|
|
512
|
-
)}
|
|
513
|
-
</div>
|
|
514
|
-
<div className="onboarding-panel-footer">
|
|
515
|
-
<button
|
|
516
|
-
className="onboarding-back-link"
|
|
517
|
-
onClick={handleRemoteBack}
|
|
518
|
-
type="button"
|
|
519
|
-
>
|
|
520
|
-
{t("onboarding.back")}
|
|
521
|
-
</button>
|
|
522
|
-
<button
|
|
523
|
-
className="onboarding-confirm-btn"
|
|
524
|
-
onClick={() => void handleOnboardingRemoteConnect()}
|
|
525
|
-
disabled={onboardingRemoteConnecting}
|
|
526
|
-
type="button"
|
|
527
|
-
>
|
|
528
|
-
{onboardingRemoteConnecting
|
|
529
|
-
? t("onboarding.connecting")
|
|
530
|
-
: t("onboarding.remoteConnect")}
|
|
531
|
-
</button>
|
|
532
|
-
</div>
|
|
533
|
-
</>
|
|
534
|
-
);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
return (
|
|
538
|
-
<>
|
|
539
|
-
<div className="onboarding-section-title">Eliza Cloud</div>
|
|
540
|
-
<div className="onboarding-divider">
|
|
541
|
-
<div className="onboarding-divider-diamond" />
|
|
542
|
-
</div>
|
|
543
|
-
|
|
544
|
-
<div style={{ width: "100%", textAlign: "left" }}>
|
|
545
|
-
<div
|
|
546
|
-
style={{
|
|
547
|
-
display: "flex",
|
|
548
|
-
gap: "1rem",
|
|
549
|
-
borderBottom: "1px solid var(--border)",
|
|
550
|
-
marginBottom: "1rem",
|
|
551
|
-
}}
|
|
552
|
-
>
|
|
553
|
-
<button
|
|
554
|
-
type="button"
|
|
555
|
-
style={{
|
|
556
|
-
fontSize: "0.875rem",
|
|
557
|
-
paddingBottom: "0.5rem",
|
|
558
|
-
color:
|
|
559
|
-
onboardingElizaCloudTab === "login"
|
|
560
|
-
? "#f0b90b"
|
|
561
|
-
: "var(--muted)",
|
|
562
|
-
background: "none",
|
|
563
|
-
border: "none",
|
|
564
|
-
borderBottom:
|
|
565
|
-
onboardingElizaCloudTab === "login"
|
|
566
|
-
? "2px solid #f0b90b"
|
|
567
|
-
: "2px solid transparent",
|
|
568
|
-
cursor: "pointer",
|
|
569
|
-
}}
|
|
570
|
-
onClick={() => setState("onboardingElizaCloudTab", "login")}
|
|
571
|
-
>
|
|
572
|
-
{t("onboarding.login")}
|
|
573
|
-
</button>
|
|
574
|
-
<button
|
|
575
|
-
type="button"
|
|
576
|
-
style={{
|
|
577
|
-
fontSize: "0.875rem",
|
|
578
|
-
paddingBottom: "0.5rem",
|
|
579
|
-
borderBottom:
|
|
580
|
-
onboardingElizaCloudTab === "apikey"
|
|
581
|
-
? "2px solid #f0b90b"
|
|
582
|
-
: "2px solid transparent",
|
|
583
|
-
color:
|
|
584
|
-
onboardingElizaCloudTab === "apikey"
|
|
585
|
-
? "#f0b90b"
|
|
586
|
-
: "var(--muted)",
|
|
587
|
-
background: "none",
|
|
588
|
-
border: "none",
|
|
589
|
-
cursor: "pointer",
|
|
590
|
-
}}
|
|
591
|
-
onClick={() => setState("onboardingElizaCloudTab", "apikey")}
|
|
592
|
-
>
|
|
593
|
-
{t("onboarding.apiKey")}
|
|
594
|
-
</button>
|
|
595
|
-
</div>
|
|
596
|
-
|
|
597
|
-
{onboardingElizaCloudTab === "login" ? (
|
|
598
|
-
<div style={{ textAlign: "center" }}>
|
|
599
|
-
{elizaCloudConnected ? (
|
|
600
|
-
<div
|
|
601
|
-
style={{
|
|
602
|
-
display: "flex",
|
|
603
|
-
alignItems: "center",
|
|
604
|
-
gap: "0.5rem",
|
|
605
|
-
padding: "0.625rem 1rem",
|
|
606
|
-
border: "1px solid var(--ok-muted)",
|
|
607
|
-
background: "var(--ok-subtle)",
|
|
608
|
-
color: "var(--ok)",
|
|
609
|
-
fontSize: "0.875rem",
|
|
610
|
-
borderRadius: "0.5rem",
|
|
611
|
-
justifyContent: "center",
|
|
612
|
-
}}
|
|
613
|
-
>
|
|
614
|
-
<svg
|
|
615
|
-
width="16"
|
|
616
|
-
height="16"
|
|
617
|
-
viewBox="0 0 24 24"
|
|
618
|
-
fill="none"
|
|
619
|
-
stroke="currentColor"
|
|
620
|
-
strokeWidth="2.5"
|
|
621
|
-
strokeLinecap="round"
|
|
622
|
-
strokeLinejoin="round"
|
|
623
|
-
>
|
|
624
|
-
<title>{t("onboarding.connected")}</title>
|
|
625
|
-
<polyline points="20 6 9 17 4 12" />
|
|
626
|
-
</svg>
|
|
627
|
-
{t("onboarding.connected")}
|
|
628
|
-
</div>
|
|
629
|
-
) : (
|
|
630
|
-
<button
|
|
631
|
-
type="button"
|
|
632
|
-
className="onboarding-confirm-btn"
|
|
633
|
-
onClick={handleCloudLogin}
|
|
634
|
-
disabled={elizaCloudLoginBusy}
|
|
635
|
-
>
|
|
636
|
-
{elizaCloudLoginBusy
|
|
637
|
-
? t("onboarding.connecting")
|
|
638
|
-
: t("onboarding.connectAccount")}
|
|
639
|
-
</button>
|
|
640
|
-
)}
|
|
641
|
-
{elizaCloudLoginError &&
|
|
642
|
-
(() => {
|
|
643
|
-
const urlMatch = elizaCloudLoginError.match(
|
|
644
|
-
/^Open this link to log in: (.+)$/,
|
|
645
|
-
);
|
|
646
|
-
if (urlMatch) {
|
|
647
|
-
return (
|
|
648
|
-
<p
|
|
649
|
-
style={{
|
|
650
|
-
fontSize: "0.8125rem",
|
|
651
|
-
marginTop: "0.5rem",
|
|
652
|
-
color: "var(--text)",
|
|
653
|
-
}}
|
|
654
|
-
>
|
|
655
|
-
Open this link to log in:{" "}
|
|
656
|
-
<a
|
|
657
|
-
href={urlMatch[1]}
|
|
658
|
-
target="_blank"
|
|
659
|
-
rel="noopener noreferrer"
|
|
660
|
-
style={{
|
|
661
|
-
color: "var(--text)",
|
|
662
|
-
textDecoration: "underline",
|
|
663
|
-
}}
|
|
664
|
-
>
|
|
665
|
-
Click here
|
|
666
|
-
</a>
|
|
667
|
-
</p>
|
|
668
|
-
);
|
|
669
|
-
}
|
|
670
|
-
return (
|
|
671
|
-
<p
|
|
672
|
-
style={{
|
|
673
|
-
color: "var(--danger)",
|
|
674
|
-
fontSize: "0.8125rem",
|
|
675
|
-
marginTop: "0.5rem",
|
|
676
|
-
}}
|
|
677
|
-
>
|
|
678
|
-
{elizaCloudLoginError}
|
|
679
|
-
</p>
|
|
680
|
-
);
|
|
681
|
-
})()}
|
|
682
|
-
<p className="onboarding-desc">{t("onboarding.freeCredits")}</p>
|
|
683
|
-
</div>
|
|
684
|
-
) : (
|
|
685
|
-
<div>
|
|
686
|
-
<label
|
|
687
|
-
htmlFor="elizacloud-apikey"
|
|
688
|
-
style={{
|
|
689
|
-
display: "block",
|
|
690
|
-
fontSize: "0.875rem",
|
|
691
|
-
marginBottom: "0.375rem",
|
|
692
|
-
color: "var(--muted)",
|
|
693
|
-
}}
|
|
694
|
-
>
|
|
695
|
-
{t("onboarding.apiKey")}
|
|
696
|
-
</label>
|
|
697
|
-
<input
|
|
698
|
-
id="elizacloud-apikey"
|
|
699
|
-
type="password"
|
|
700
|
-
className="onboarding-input"
|
|
701
|
-
placeholder="ck-..."
|
|
702
|
-
value={onboardingApiKey}
|
|
703
|
-
onChange={handleApiKeyChange}
|
|
704
|
-
/>
|
|
705
|
-
<p className="onboarding-desc">
|
|
706
|
-
{t("onboarding.useExistingKey")}{" "}
|
|
707
|
-
<a
|
|
708
|
-
href="https://elizacloud.ai/dashboard/settings"
|
|
709
|
-
target="_blank"
|
|
710
|
-
rel="noopener noreferrer"
|
|
711
|
-
style={{ color: "var(--text)" }}
|
|
712
|
-
>
|
|
713
|
-
{t("onboarding.getOneHere")}
|
|
714
|
-
</a>
|
|
715
|
-
</p>
|
|
716
|
-
</div>
|
|
717
|
-
)}
|
|
718
|
-
</div>
|
|
719
|
-
|
|
720
|
-
<div className="onboarding-panel-footer">
|
|
721
|
-
<button
|
|
722
|
-
className="onboarding-back-link"
|
|
723
|
-
onClick={resetCloudSelection}
|
|
724
|
-
type="button"
|
|
725
|
-
>
|
|
726
|
-
{t("onboarding.back")}
|
|
727
|
-
</button>
|
|
728
|
-
<button
|
|
729
|
-
className="onboarding-confirm-btn"
|
|
730
|
-
onClick={() => void handleOnboardingNext()}
|
|
731
|
-
disabled={!elizaCloudReady}
|
|
732
|
-
type="button"
|
|
733
|
-
>
|
|
734
|
-
{t("onboarding.confirm")}
|
|
735
|
-
</button>
|
|
736
|
-
</div>
|
|
737
|
-
</>
|
|
738
|
-
);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
if (!onboardingProvider) {
|
|
742
|
-
return (
|
|
743
|
-
<>
|
|
744
|
-
<div className="onboarding-section-title">
|
|
745
|
-
{t("onboarding.neuralLinkTitle")}
|
|
746
|
-
</div>
|
|
747
|
-
<div className="onboarding-divider">
|
|
748
|
-
<div className="onboarding-divider-diamond" />
|
|
749
|
-
</div>
|
|
750
|
-
{onboardingRemoteConnected && (
|
|
751
|
-
<p className="onboarding-desc" style={{ marginBottom: "1rem" }}>
|
|
752
|
-
{t("onboarding.remoteConnectedDesc")}
|
|
753
|
-
</p>
|
|
754
|
-
)}
|
|
755
|
-
<div className="onboarding-question">
|
|
756
|
-
{t("onboarding.chooseProvider")}
|
|
757
|
-
</div>
|
|
758
|
-
<div className="onboarding-provider-grid">
|
|
759
|
-
{sortedProviders.map((p: ProviderOption) => {
|
|
760
|
-
const display = getProviderDisplay(p);
|
|
761
|
-
const isRecommended = recommendedIds.has(p.id);
|
|
762
|
-
const detectedLabel = getDetectedLabel(p.id);
|
|
763
|
-
return (
|
|
764
|
-
<button
|
|
765
|
-
type="button"
|
|
766
|
-
key={p.id}
|
|
767
|
-
className={`onboarding-provider-card${isRecommended ? " onboarding-provider-card--recommended" : ""}${detectedLabel ? " onboarding-provider-card--detected" : ""}`}
|
|
768
|
-
onClick={() => handleProviderSelect(p.id)}
|
|
769
|
-
>
|
|
770
|
-
<img
|
|
771
|
-
src={getProviderLogo(p.id, false, getCustomLogo(p.id))}
|
|
772
|
-
alt={display.name}
|
|
773
|
-
className="onboarding-provider-icon"
|
|
774
|
-
/>
|
|
775
|
-
<div>
|
|
776
|
-
<div className="onboarding-provider-name">{display.name}</div>
|
|
777
|
-
{display.description && (
|
|
778
|
-
<div className="onboarding-provider-desc">
|
|
779
|
-
{display.description}
|
|
780
|
-
</div>
|
|
781
|
-
)}
|
|
782
|
-
</div>
|
|
783
|
-
{detectedLabel && (
|
|
784
|
-
<span className="onboarding-provider-badge onboarding-provider-badge--detected">
|
|
785
|
-
{detectedLabel}
|
|
786
|
-
</span>
|
|
787
|
-
)}
|
|
788
|
-
{isRecommended && !detectedLabel && (
|
|
789
|
-
<span className="onboarding-provider-badge">
|
|
790
|
-
{t("onboarding.recommended") ?? "Recommended"}
|
|
791
|
-
</span>
|
|
792
|
-
)}
|
|
793
|
-
</button>
|
|
794
|
-
);
|
|
795
|
-
})}
|
|
796
|
-
</div>
|
|
797
|
-
<div className="onboarding-panel-footer">
|
|
798
|
-
<button
|
|
799
|
-
className="onboarding-back-link"
|
|
800
|
-
onClick={
|
|
801
|
-
onboardingRemoteConnected
|
|
802
|
-
? handleOnboardingUseLocalBackend
|
|
803
|
-
: resetHostingSelection
|
|
804
|
-
}
|
|
805
|
-
type="button"
|
|
806
|
-
>
|
|
807
|
-
{t("onboarding.back")}
|
|
808
|
-
</button>
|
|
809
|
-
<span />
|
|
810
|
-
</div>
|
|
811
|
-
</>
|
|
812
|
-
);
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
// Screen B: provider selected — show config UI
|
|
816
|
-
const selectedProvider = providers.find(
|
|
817
|
-
(p: ProviderOption) => p.id === onboardingProvider,
|
|
818
|
-
);
|
|
819
|
-
const selectedDisplay = selectedProvider
|
|
820
|
-
? getProviderDisplay(selectedProvider)
|
|
821
|
-
: { name: onboardingProvider, description: "" };
|
|
822
|
-
|
|
823
|
-
return (
|
|
824
|
-
<>
|
|
825
|
-
<div className="onboarding-section-title">
|
|
826
|
-
<span
|
|
827
|
-
style={{
|
|
828
|
-
display: "flex",
|
|
829
|
-
alignItems: "center",
|
|
830
|
-
gap: "0.5rem",
|
|
831
|
-
justifyContent: "center",
|
|
832
|
-
}}
|
|
833
|
-
>
|
|
834
|
-
{selectedProvider && (
|
|
835
|
-
<img
|
|
836
|
-
src={getProviderLogo(selectedProvider.id, false, getCustomLogo(selectedProvider.id))}
|
|
837
|
-
alt={selectedDisplay.name}
|
|
838
|
-
className="onboarding-provider-icon"
|
|
839
|
-
style={{ width: "1.5rem", height: "1.5rem" }}
|
|
840
|
-
/>
|
|
841
|
-
)}
|
|
842
|
-
{selectedDisplay.name}
|
|
843
|
-
<button
|
|
844
|
-
type="button"
|
|
845
|
-
className="onboarding-back-link"
|
|
846
|
-
style={{ marginLeft: "0.5rem", fontSize: "0.75rem" }}
|
|
847
|
-
onClick={() => {
|
|
848
|
-
setState("onboardingProvider", "");
|
|
849
|
-
setState("onboardingApiKey", "");
|
|
850
|
-
setState("onboardingPrimaryModel", "");
|
|
851
|
-
}}
|
|
852
|
-
>
|
|
853
|
-
{t("onboarding.change")}
|
|
854
|
-
</button>
|
|
855
|
-
</span>
|
|
856
|
-
</div>
|
|
857
|
-
<div className="onboarding-divider">
|
|
858
|
-
<div className="onboarding-divider-diamond" />
|
|
859
|
-
</div>
|
|
860
|
-
|
|
861
|
-
{/* elizacloud */}
|
|
862
|
-
{onboardingProvider === "elizacloud" && (
|
|
863
|
-
<div style={{ width: "100%", textAlign: "left" }}>
|
|
864
|
-
<div
|
|
865
|
-
style={{
|
|
866
|
-
display: "flex",
|
|
867
|
-
gap: "1rem",
|
|
868
|
-
borderBottom: "1px solid var(--border)",
|
|
869
|
-
marginBottom: "1rem",
|
|
870
|
-
}}
|
|
871
|
-
>
|
|
872
|
-
<button
|
|
873
|
-
type="button"
|
|
874
|
-
style={{
|
|
875
|
-
fontSize: "0.875rem",
|
|
876
|
-
paddingBottom: "0.5rem",
|
|
877
|
-
color:
|
|
878
|
-
onboardingElizaCloudTab === "login"
|
|
879
|
-
? "#f0b90b"
|
|
880
|
-
: "var(--muted)",
|
|
881
|
-
background: "none",
|
|
882
|
-
border: "none",
|
|
883
|
-
borderBottom:
|
|
884
|
-
onboardingElizaCloudTab === "login"
|
|
885
|
-
? "2px solid #f0b90b"
|
|
886
|
-
: "2px solid transparent",
|
|
887
|
-
cursor: "pointer",
|
|
888
|
-
}}
|
|
889
|
-
onClick={() => setState("onboardingElizaCloudTab", "login")}
|
|
890
|
-
>
|
|
891
|
-
{t("onboarding.login")}
|
|
892
|
-
</button>
|
|
893
|
-
<button
|
|
894
|
-
type="button"
|
|
895
|
-
style={{
|
|
896
|
-
fontSize: "0.875rem",
|
|
897
|
-
paddingBottom: "0.5rem",
|
|
898
|
-
borderBottom:
|
|
899
|
-
onboardingElizaCloudTab === "apikey"
|
|
900
|
-
? "2px solid #f0b90b"
|
|
901
|
-
: "2px solid transparent",
|
|
902
|
-
color:
|
|
903
|
-
onboardingElizaCloudTab === "apikey"
|
|
904
|
-
? "#f0b90b"
|
|
905
|
-
: "var(--muted)",
|
|
906
|
-
background: "none",
|
|
907
|
-
border: "none",
|
|
908
|
-
cursor: "pointer",
|
|
909
|
-
}}
|
|
910
|
-
onClick={() => setState("onboardingElizaCloudTab", "apikey")}
|
|
911
|
-
>
|
|
912
|
-
{t("onboarding.apiKey")}
|
|
913
|
-
</button>
|
|
914
|
-
</div>
|
|
915
|
-
|
|
916
|
-
{onboardingElizaCloudTab === "login" ? (
|
|
917
|
-
<div style={{ textAlign: "center" }}>
|
|
918
|
-
{elizaCloudConnected ? (
|
|
919
|
-
<div
|
|
920
|
-
style={{
|
|
921
|
-
display: "flex",
|
|
922
|
-
alignItems: "center",
|
|
923
|
-
gap: "0.5rem",
|
|
924
|
-
padding: "0.625rem 1rem",
|
|
925
|
-
border: "1px solid var(--ok-muted)",
|
|
926
|
-
background: "var(--ok-subtle)",
|
|
927
|
-
color: "var(--ok)",
|
|
928
|
-
fontSize: "0.875rem",
|
|
929
|
-
borderRadius: "0.5rem",
|
|
930
|
-
justifyContent: "center",
|
|
931
|
-
}}
|
|
932
|
-
>
|
|
933
|
-
<svg
|
|
934
|
-
width="16"
|
|
935
|
-
height="16"
|
|
936
|
-
viewBox="0 0 24 24"
|
|
937
|
-
fill="none"
|
|
938
|
-
stroke="currentColor"
|
|
939
|
-
strokeWidth="2.5"
|
|
940
|
-
strokeLinecap="round"
|
|
941
|
-
strokeLinejoin="round"
|
|
942
|
-
>
|
|
943
|
-
<title>{t("onboarding.connected")}</title>
|
|
944
|
-
<polyline points="20 6 9 17 4 12" />
|
|
945
|
-
</svg>
|
|
946
|
-
{t("onboarding.connected")}
|
|
947
|
-
</div>
|
|
948
|
-
) : (
|
|
949
|
-
<button
|
|
950
|
-
type="button"
|
|
951
|
-
className="onboarding-confirm-btn"
|
|
952
|
-
onClick={handleCloudLogin}
|
|
953
|
-
disabled={elizaCloudLoginBusy}
|
|
954
|
-
>
|
|
955
|
-
{elizaCloudLoginBusy
|
|
956
|
-
? t("onboarding.connecting")
|
|
957
|
-
: t("onboarding.connectAccount")}
|
|
958
|
-
</button>
|
|
959
|
-
)}
|
|
960
|
-
{elizaCloudLoginError &&
|
|
961
|
-
(() => {
|
|
962
|
-
const urlMatch = elizaCloudLoginError.match(
|
|
963
|
-
/^Open this link to log in: (.+)$/,
|
|
964
|
-
);
|
|
965
|
-
if (urlMatch) {
|
|
966
|
-
return (
|
|
967
|
-
<p
|
|
968
|
-
style={{
|
|
969
|
-
fontSize: "0.8125rem",
|
|
970
|
-
marginTop: "0.5rem",
|
|
971
|
-
color: "var(--text)",
|
|
972
|
-
}}
|
|
973
|
-
>
|
|
974
|
-
Open this link to log in:{" "}
|
|
975
|
-
<a
|
|
976
|
-
href={urlMatch[1]}
|
|
977
|
-
target="_blank"
|
|
978
|
-
rel="noopener noreferrer"
|
|
979
|
-
style={{
|
|
980
|
-
color: "var(--text)",
|
|
981
|
-
textDecoration: "underline",
|
|
982
|
-
}}
|
|
983
|
-
>
|
|
984
|
-
Click here
|
|
985
|
-
</a>
|
|
986
|
-
</p>
|
|
987
|
-
);
|
|
988
|
-
}
|
|
989
|
-
return (
|
|
990
|
-
<p
|
|
991
|
-
style={{
|
|
992
|
-
color: "var(--danger)",
|
|
993
|
-
fontSize: "0.8125rem",
|
|
994
|
-
marginTop: "0.5rem",
|
|
995
|
-
}}
|
|
996
|
-
>
|
|
997
|
-
{elizaCloudLoginError}
|
|
998
|
-
</p>
|
|
999
|
-
);
|
|
1000
|
-
})()}
|
|
1001
|
-
<p className="onboarding-desc">{t("onboarding.freeCredits")}</p>
|
|
1002
|
-
</div>
|
|
1003
|
-
) : (
|
|
1004
|
-
<div>
|
|
1005
|
-
<label
|
|
1006
|
-
htmlFor="elizacloud-apikey"
|
|
1007
|
-
style={{
|
|
1008
|
-
display: "block",
|
|
1009
|
-
fontSize: "0.875rem",
|
|
1010
|
-
marginBottom: "0.375rem",
|
|
1011
|
-
color: "var(--muted)",
|
|
1012
|
-
}}
|
|
1013
|
-
>
|
|
1014
|
-
{t("onboarding.apiKey")}
|
|
1015
|
-
</label>
|
|
1016
|
-
<input
|
|
1017
|
-
id="elizacloud-apikey"
|
|
1018
|
-
type="password"
|
|
1019
|
-
className="onboarding-input"
|
|
1020
|
-
placeholder="ec-..."
|
|
1021
|
-
value={onboardingApiKey}
|
|
1022
|
-
onChange={handleApiKeyChange}
|
|
1023
|
-
/>
|
|
1024
|
-
<p className="onboarding-desc">
|
|
1025
|
-
{t("onboarding.useExistingKey")}{" "}
|
|
1026
|
-
<a
|
|
1027
|
-
href="https://elizacloud.ai/dashboard/settings"
|
|
1028
|
-
target="_blank"
|
|
1029
|
-
rel="noopener noreferrer"
|
|
1030
|
-
style={{ color: "var(--text)" }}
|
|
1031
|
-
>
|
|
1032
|
-
{t("onboarding.getOneHere")}
|
|
1033
|
-
</a>
|
|
1034
|
-
</p>
|
|
1035
|
-
</div>
|
|
1036
|
-
)}
|
|
1037
|
-
</div>
|
|
1038
|
-
)}
|
|
1039
|
-
|
|
1040
|
-
{/* anthropic-subscription */}
|
|
1041
|
-
{onboardingProvider === "anthropic-subscription" && (
|
|
1042
|
-
<div style={{ textAlign: "left", width: "100%" }}>
|
|
1043
|
-
<div
|
|
1044
|
-
style={{
|
|
1045
|
-
display: "flex",
|
|
1046
|
-
gap: "1rem",
|
|
1047
|
-
borderBottom: "1px solid var(--border)",
|
|
1048
|
-
marginBottom: "0.75rem",
|
|
1049
|
-
}}
|
|
1050
|
-
>
|
|
1051
|
-
<button
|
|
1052
|
-
type="button"
|
|
1053
|
-
style={{
|
|
1054
|
-
fontSize: "0.875rem",
|
|
1055
|
-
paddingBottom: "0.5rem",
|
|
1056
|
-
background: "none",
|
|
1057
|
-
border: "none",
|
|
1058
|
-
borderBottom:
|
|
1059
|
-
onboardingSubscriptionTab === "token"
|
|
1060
|
-
? "2px solid #f0b90b"
|
|
1061
|
-
: "2px solid transparent",
|
|
1062
|
-
color:
|
|
1063
|
-
onboardingSubscriptionTab === "token"
|
|
1064
|
-
? "#f0b90b"
|
|
1065
|
-
: "var(--muted)",
|
|
1066
|
-
cursor: "pointer",
|
|
1067
|
-
}}
|
|
1068
|
-
onClick={() => setState("onboardingSubscriptionTab", "token")}
|
|
1069
|
-
>
|
|
1070
|
-
{t("onboarding.setupToken")}
|
|
1071
|
-
</button>
|
|
1072
|
-
<button
|
|
1073
|
-
type="button"
|
|
1074
|
-
style={{
|
|
1075
|
-
fontSize: "0.875rem",
|
|
1076
|
-
paddingBottom: "0.5rem",
|
|
1077
|
-
background: "none",
|
|
1078
|
-
border: "none",
|
|
1079
|
-
borderBottom:
|
|
1080
|
-
onboardingSubscriptionTab === "oauth"
|
|
1081
|
-
? "2px solid #f0b90b"
|
|
1082
|
-
: "2px solid transparent",
|
|
1083
|
-
color:
|
|
1084
|
-
onboardingSubscriptionTab === "oauth"
|
|
1085
|
-
? "#f0b90b"
|
|
1086
|
-
: "var(--muted)",
|
|
1087
|
-
cursor: "pointer",
|
|
1088
|
-
}}
|
|
1089
|
-
onClick={() => setState("onboardingSubscriptionTab", "oauth")}
|
|
1090
|
-
>
|
|
1091
|
-
{t("onboarding.oauthLogin")}
|
|
1092
|
-
</button>
|
|
1093
|
-
</div>
|
|
1094
|
-
|
|
1095
|
-
{onboardingSubscriptionTab === "token" ? (
|
|
1096
|
-
<>
|
|
1097
|
-
<span
|
|
1098
|
-
style={{
|
|
1099
|
-
fontSize: "0.8125rem",
|
|
1100
|
-
fontWeight: "bold",
|
|
1101
|
-
display: "block",
|
|
1102
|
-
marginBottom: "0.5rem",
|
|
1103
|
-
color: "var(--text)",
|
|
1104
|
-
}}
|
|
1105
|
-
>
|
|
1106
|
-
{t("onboarding.enterSetupToken")}
|
|
1107
|
-
</span>
|
|
1108
|
-
<input
|
|
1109
|
-
type="password"
|
|
1110
|
-
className="onboarding-input"
|
|
1111
|
-
value={onboardingApiKey}
|
|
1112
|
-
onChange={handleApiKeyChange}
|
|
1113
|
-
placeholder="sk-ant-oat01-..."
|
|
1114
|
-
/>
|
|
1115
|
-
<p
|
|
1116
|
-
className="onboarding-desc"
|
|
1117
|
-
style={{ whiteSpace: "pre-line", textAlign: "left" }}
|
|
1118
|
-
>
|
|
1119
|
-
{t("onboarding.setupTokenInstructions")}
|
|
1120
|
-
</p>
|
|
1121
|
-
</>
|
|
1122
|
-
) : anthropicConnected ? (
|
|
1123
|
-
<div
|
|
1124
|
-
style={{
|
|
1125
|
-
display: "flex",
|
|
1126
|
-
flexDirection: "column",
|
|
1127
|
-
alignItems: "center",
|
|
1128
|
-
gap: "0.75rem",
|
|
1129
|
-
}}
|
|
1130
|
-
>
|
|
1131
|
-
<div
|
|
1132
|
-
style={{
|
|
1133
|
-
display: "flex",
|
|
1134
|
-
alignItems: "center",
|
|
1135
|
-
gap: "0.5rem",
|
|
1136
|
-
padding: "0.75rem 1.5rem",
|
|
1137
|
-
border: "1px solid var(--ok-muted)",
|
|
1138
|
-
background: "var(--ok-subtle)",
|
|
1139
|
-
color: "var(--ok)",
|
|
1140
|
-
fontSize: "0.875rem",
|
|
1141
|
-
fontWeight: "500",
|
|
1142
|
-
width: "100%",
|
|
1143
|
-
maxWidth: "20rem",
|
|
1144
|
-
justifyContent: "center",
|
|
1145
|
-
}}
|
|
1146
|
-
>
|
|
1147
|
-
<svg
|
|
1148
|
-
width="18"
|
|
1149
|
-
height="18"
|
|
1150
|
-
viewBox="0 0 24 24"
|
|
1151
|
-
fill="none"
|
|
1152
|
-
stroke="currentColor"
|
|
1153
|
-
strokeWidth="2.5"
|
|
1154
|
-
strokeLinecap="round"
|
|
1155
|
-
strokeLinejoin="round"
|
|
1156
|
-
>
|
|
1157
|
-
<title>{t("onboarding.connected")}</title>
|
|
1158
|
-
<polyline points="20 6 9 17 4 12" />
|
|
1159
|
-
</svg>
|
|
1160
|
-
{t("onboarding.connectedToClaude")}
|
|
1161
|
-
</div>
|
|
1162
|
-
<p className="onboarding-desc" style={{ textAlign: "center" }}>
|
|
1163
|
-
{t("onboarding.claudeSubscriptionReady")}
|
|
1164
|
-
</p>
|
|
1165
|
-
</div>
|
|
1166
|
-
) : !anthropicOAuthStarted ? (
|
|
1167
|
-
<div
|
|
1168
|
-
style={{
|
|
1169
|
-
display: "flex",
|
|
1170
|
-
flexDirection: "column",
|
|
1171
|
-
alignItems: "center",
|
|
1172
|
-
gap: "0.75rem",
|
|
1173
|
-
}}
|
|
1174
|
-
>
|
|
1175
|
-
<button
|
|
1176
|
-
type="button"
|
|
1177
|
-
className="onboarding-confirm-btn"
|
|
1178
|
-
onClick={() => void handleAnthropicStart()}
|
|
1179
|
-
>
|
|
1180
|
-
{t("onboarding.loginWithAnthropic")}
|
|
1181
|
-
</button>
|
|
1182
|
-
<p className="onboarding-desc" style={{ textAlign: "center" }}>
|
|
1183
|
-
{t("onboarding.requiresClaudeSub")}
|
|
1184
|
-
</p>
|
|
1185
|
-
{anthropicError && (
|
|
1186
|
-
<p style={{ fontSize: "0.75rem", color: "var(--danger)" }}>
|
|
1187
|
-
{anthropicError}
|
|
1188
|
-
</p>
|
|
1189
|
-
)}
|
|
1190
|
-
</div>
|
|
1191
|
-
) : (
|
|
1192
|
-
<div
|
|
1193
|
-
style={{
|
|
1194
|
-
display: "flex",
|
|
1195
|
-
flexDirection: "column",
|
|
1196
|
-
alignItems: "center",
|
|
1197
|
-
gap: "0.75rem",
|
|
1198
|
-
}}
|
|
1199
|
-
>
|
|
1200
|
-
<p
|
|
1201
|
-
style={{
|
|
1202
|
-
fontSize: "0.875rem",
|
|
1203
|
-
textAlign: "center",
|
|
1204
|
-
color: "var(--text)",
|
|
1205
|
-
}}
|
|
1206
|
-
>
|
|
1207
|
-
{t("onboarding.authCodeInstructions")
|
|
1208
|
-
.split("\n")
|
|
1209
|
-
.map((line, i) => (
|
|
1210
|
-
<span key={line + String(i)}>
|
|
1211
|
-
{line}
|
|
1212
|
-
{i === 0 && <br />}
|
|
1213
|
-
</span>
|
|
1214
|
-
))}
|
|
1215
|
-
</p>
|
|
1216
|
-
<input
|
|
1217
|
-
type="text"
|
|
1218
|
-
className="onboarding-input"
|
|
1219
|
-
placeholder={t("onboarding.pasteAuthCode")}
|
|
1220
|
-
value={anthropicCode}
|
|
1221
|
-
onChange={(e) => setAnthropicCode(e.target.value)}
|
|
1222
|
-
style={{ textAlign: "center" }}
|
|
1223
|
-
/>
|
|
1224
|
-
{anthropicError && (
|
|
1225
|
-
<p style={{ fontSize: "0.75rem", color: "var(--danger)" }}>
|
|
1226
|
-
{anthropicError}
|
|
1227
|
-
</p>
|
|
1228
|
-
)}
|
|
1229
|
-
<button
|
|
1230
|
-
type="button"
|
|
1231
|
-
className="onboarding-confirm-btn"
|
|
1232
|
-
disabled={!anthropicCode}
|
|
1233
|
-
onClick={() => void handleAnthropicExchange()}
|
|
1234
|
-
>
|
|
1235
|
-
{t("onboarding.connect")}
|
|
1236
|
-
</button>
|
|
1237
|
-
</div>
|
|
1238
|
-
)}
|
|
1239
|
-
</div>
|
|
1240
|
-
)}
|
|
1241
|
-
|
|
1242
|
-
{/* openai-subscription */}
|
|
1243
|
-
{onboardingProvider === "openai-subscription" && (
|
|
1244
|
-
<div style={{ width: "100%" }}>
|
|
1245
|
-
{openaiConnected ? (
|
|
1246
|
-
<div
|
|
1247
|
-
style={{
|
|
1248
|
-
display: "flex",
|
|
1249
|
-
flexDirection: "column",
|
|
1250
|
-
alignItems: "center",
|
|
1251
|
-
gap: "0.75rem",
|
|
1252
|
-
}}
|
|
1253
|
-
>
|
|
1254
|
-
<div
|
|
1255
|
-
style={{
|
|
1256
|
-
display: "flex",
|
|
1257
|
-
alignItems: "center",
|
|
1258
|
-
gap: "0.5rem",
|
|
1259
|
-
padding: "0.75rem 1.5rem",
|
|
1260
|
-
border: "1px solid var(--ok-muted)",
|
|
1261
|
-
background: "var(--ok-subtle)",
|
|
1262
|
-
color: "var(--ok)",
|
|
1263
|
-
fontSize: "0.875rem",
|
|
1264
|
-
fontWeight: "500",
|
|
1265
|
-
width: "100%",
|
|
1266
|
-
maxWidth: "20rem",
|
|
1267
|
-
justifyContent: "center",
|
|
1268
|
-
}}
|
|
1269
|
-
>
|
|
1270
|
-
<svg
|
|
1271
|
-
width="18"
|
|
1272
|
-
height="18"
|
|
1273
|
-
viewBox="0 0 24 24"
|
|
1274
|
-
fill="none"
|
|
1275
|
-
stroke="currentColor"
|
|
1276
|
-
strokeWidth="2.5"
|
|
1277
|
-
strokeLinecap="round"
|
|
1278
|
-
strokeLinejoin="round"
|
|
1279
|
-
>
|
|
1280
|
-
<title>{t("onboarding.connected")}</title>
|
|
1281
|
-
<polyline points="20 6 9 17 4 12" />
|
|
1282
|
-
</svg>
|
|
1283
|
-
{t("onboarding.connectedToChatGPT")}
|
|
1284
|
-
</div>
|
|
1285
|
-
<p className="onboarding-desc" style={{ textAlign: "center" }}>
|
|
1286
|
-
{t("onboarding.chatgptSubscriptionReady")}
|
|
1287
|
-
</p>
|
|
1288
|
-
</div>
|
|
1289
|
-
) : !openaiOAuthStarted ? (
|
|
1290
|
-
<div
|
|
1291
|
-
style={{
|
|
1292
|
-
display: "flex",
|
|
1293
|
-
flexDirection: "column",
|
|
1294
|
-
alignItems: "center",
|
|
1295
|
-
gap: "0.75rem",
|
|
1296
|
-
}}
|
|
1297
|
-
>
|
|
1298
|
-
<button
|
|
1299
|
-
type="button"
|
|
1300
|
-
className="onboarding-confirm-btn"
|
|
1301
|
-
onClick={() => void handleOpenAIStart()}
|
|
1302
|
-
>
|
|
1303
|
-
{t("onboarding.loginWithOpenAI")}
|
|
1304
|
-
</button>
|
|
1305
|
-
<p className="onboarding-desc" style={{ textAlign: "center" }}>
|
|
1306
|
-
{t("onboarding.requiresChatGPTSub")}
|
|
1307
|
-
</p>
|
|
1308
|
-
</div>
|
|
1309
|
-
) : (
|
|
1310
|
-
<div
|
|
1311
|
-
style={{
|
|
1312
|
-
display: "flex",
|
|
1313
|
-
flexDirection: "column",
|
|
1314
|
-
gap: "0.75rem",
|
|
1315
|
-
}}
|
|
1316
|
-
>
|
|
1317
|
-
<div
|
|
1318
|
-
style={{
|
|
1319
|
-
padding: "0.75rem",
|
|
1320
|
-
border: "1px solid var(--border)",
|
|
1321
|
-
background: "var(--bg-hover)",
|
|
1322
|
-
fontSize: "0.875rem",
|
|
1323
|
-
borderRadius: "0.25rem",
|
|
1324
|
-
}}
|
|
1325
|
-
>
|
|
1326
|
-
<p
|
|
1327
|
-
style={{
|
|
1328
|
-
fontWeight: "500",
|
|
1329
|
-
marginBottom: "0.25rem",
|
|
1330
|
-
color: "var(--text)",
|
|
1331
|
-
}}
|
|
1332
|
-
>
|
|
1333
|
-
{t("onboarding.almostThere")}
|
|
1334
|
-
</p>
|
|
1335
|
-
<p
|
|
1336
|
-
className="onboarding-desc"
|
|
1337
|
-
style={{ lineHeight: "1.5", textAlign: "left" }}
|
|
1338
|
-
>
|
|
1339
|
-
{t("onboarding.redirectInstructions")}{" "}
|
|
1340
|
-
<code
|
|
1341
|
-
style={{
|
|
1342
|
-
background: "var(--bg-hover)",
|
|
1343
|
-
padding: "0 0.25rem",
|
|
1344
|
-
fontSize: "0.75rem",
|
|
1345
|
-
}}
|
|
1346
|
-
>
|
|
1347
|
-
localhost:1455
|
|
1348
|
-
</code>
|
|
1349
|
-
{t("onboarding.copyEntireUrl")}
|
|
1350
|
-
</p>
|
|
1351
|
-
</div>
|
|
1352
|
-
<input
|
|
1353
|
-
type="text"
|
|
1354
|
-
className="onboarding-input"
|
|
1355
|
-
placeholder="http://localhost:1455/..."
|
|
1356
|
-
value={openaiCallbackUrl}
|
|
1357
|
-
onChange={(e) => {
|
|
1358
|
-
setOpenaiCallbackUrl(e.target.value);
|
|
1359
|
-
setOpenaiError("");
|
|
1360
|
-
}}
|
|
1361
|
-
/>
|
|
1362
|
-
{openaiError && (
|
|
1363
|
-
<p style={{ fontSize: "0.75rem", color: "var(--danger)" }}>
|
|
1364
|
-
{openaiError}
|
|
1365
|
-
</p>
|
|
1366
|
-
)}
|
|
1367
|
-
<div
|
|
1368
|
-
style={{
|
|
1369
|
-
display: "flex",
|
|
1370
|
-
gap: "0.5rem",
|
|
1371
|
-
justifyContent: "center",
|
|
1372
|
-
}}
|
|
1373
|
-
>
|
|
1374
|
-
<button
|
|
1375
|
-
type="button"
|
|
1376
|
-
className="onboarding-confirm-btn"
|
|
1377
|
-
disabled={!openaiCallbackUrl}
|
|
1378
|
-
onClick={() => void handleOpenAIExchange()}
|
|
1379
|
-
>
|
|
1380
|
-
{t("onboarding.completeLogin")}
|
|
1381
|
-
</button>
|
|
1382
|
-
<button
|
|
1383
|
-
type="button"
|
|
1384
|
-
className="onboarding-back-link"
|
|
1385
|
-
onClick={() => {
|
|
1386
|
-
setOpenaiOAuthStarted(false);
|
|
1387
|
-
setOpenaiCallbackUrl("");
|
|
1388
|
-
}}
|
|
1389
|
-
>
|
|
1390
|
-
{t("onboarding.startOver")}
|
|
1391
|
-
</button>
|
|
1392
|
-
</div>
|
|
1393
|
-
</div>
|
|
1394
|
-
)}
|
|
1395
|
-
</div>
|
|
1396
|
-
)}
|
|
1397
|
-
|
|
1398
|
-
{/* Generic API key providers */}
|
|
1399
|
-
{onboardingProvider &&
|
|
1400
|
-
onboardingProvider !== "anthropic-subscription" &&
|
|
1401
|
-
onboardingProvider !== "openai-subscription" &&
|
|
1402
|
-
onboardingProvider !== "elizacloud" &&
|
|
1403
|
-
onboardingProvider !== "ollama" &&
|
|
1404
|
-
onboardingProvider !== "pi-ai" && (
|
|
1405
|
-
<div style={{ textAlign: "left", width: "100%" }}>
|
|
1406
|
-
<span
|
|
1407
|
-
style={{
|
|
1408
|
-
fontSize: "0.8125rem",
|
|
1409
|
-
fontWeight: "bold",
|
|
1410
|
-
display: "block",
|
|
1411
|
-
marginBottom: "0.5rem",
|
|
1412
|
-
color: "var(--text)",
|
|
1413
|
-
}}
|
|
1414
|
-
>
|
|
1415
|
-
{t("onboarding.apiKey")}
|
|
1416
|
-
</span>
|
|
1417
|
-
<input
|
|
1418
|
-
type="password"
|
|
1419
|
-
className="onboarding-input"
|
|
1420
|
-
value={onboardingApiKey}
|
|
1421
|
-
onChange={handleApiKeyChange}
|
|
1422
|
-
placeholder={t("onboarding.enterApiKey")}
|
|
1423
|
-
/>
|
|
1424
|
-
{apiKeyFormatWarning && (
|
|
1425
|
-
<p
|
|
1426
|
-
style={{
|
|
1427
|
-
fontSize: "0.75rem",
|
|
1428
|
-
color: "var(--danger)",
|
|
1429
|
-
marginTop: "0.5rem",
|
|
1430
|
-
}}
|
|
1431
|
-
>
|
|
1432
|
-
{apiKeyFormatWarning}
|
|
1433
|
-
</p>
|
|
1434
|
-
)}
|
|
1435
|
-
</div>
|
|
1436
|
-
)}
|
|
1437
|
-
|
|
1438
|
-
{/* ollama */}
|
|
1439
|
-
{onboardingProvider === "ollama" && (
|
|
1440
|
-
<p className="onboarding-desc">{t("onboarding.ollamaNoConfig")}</p>
|
|
1441
|
-
)}
|
|
1442
|
-
|
|
1443
|
-
{/* pi-ai */}
|
|
1444
|
-
{onboardingProvider === "pi-ai" && (
|
|
1445
|
-
<div style={{ textAlign: "left", width: "100%" }}>
|
|
1446
|
-
<span
|
|
1447
|
-
style={{
|
|
1448
|
-
fontSize: "0.8125rem",
|
|
1449
|
-
fontWeight: "bold",
|
|
1450
|
-
display: "block",
|
|
1451
|
-
marginBottom: "0.5rem",
|
|
1452
|
-
color: "var(--text)",
|
|
1453
|
-
}}
|
|
1454
|
-
>
|
|
1455
|
-
{t("onboarding.primaryModelOptional")}
|
|
1456
|
-
</span>
|
|
1457
|
-
{piAiModels.length > 0 ? (
|
|
1458
|
-
<>
|
|
1459
|
-
<select
|
|
1460
|
-
value={piAiSelectValue}
|
|
1461
|
-
onChange={(e) => {
|
|
1462
|
-
const next = e.target.value;
|
|
1463
|
-
if (next === "__custom__") {
|
|
1464
|
-
if (piAiSelectValue !== "__custom__") {
|
|
1465
|
-
setState("onboardingPrimaryModel", "");
|
|
1466
|
-
}
|
|
1467
|
-
return;
|
|
1468
|
-
}
|
|
1469
|
-
setState("onboardingPrimaryModel", next);
|
|
1470
|
-
}}
|
|
1471
|
-
className="onboarding-input"
|
|
1472
|
-
>
|
|
1473
|
-
<option value="">
|
|
1474
|
-
{t("onboarding.useDefaultModel")}
|
|
1475
|
-
{piAiDefaultModel ? ` (${piAiDefaultModel})` : ""}
|
|
1476
|
-
</option>
|
|
1477
|
-
{piAiModels.map((model: PiAiModelOption) => (
|
|
1478
|
-
<option key={model.id} value={model.id}>
|
|
1479
|
-
{model.name} ({model.provider})
|
|
1480
|
-
</option>
|
|
1481
|
-
))}
|
|
1482
|
-
<option value="__custom__">
|
|
1483
|
-
{t("onboarding.customModel")}
|
|
1484
|
-
</option>
|
|
1485
|
-
</select>
|
|
1486
|
-
{piAiSelectValue === "__custom__" && (
|
|
1487
|
-
<input
|
|
1488
|
-
type="text"
|
|
1489
|
-
className="onboarding-input"
|
|
1490
|
-
value={onboardingPrimaryModel}
|
|
1491
|
-
onChange={(e) =>
|
|
1492
|
-
setState("onboardingPrimaryModel", e.target.value)
|
|
1493
|
-
}
|
|
1494
|
-
placeholder="provider/model (e.g. anthropic/claude-3.5-sonnet)"
|
|
1495
|
-
style={{ marginTop: "0.5rem" }}
|
|
1496
|
-
/>
|
|
1497
|
-
)}
|
|
1498
|
-
</>
|
|
1499
|
-
) : (
|
|
1500
|
-
<input
|
|
1501
|
-
type="text"
|
|
1502
|
-
className="onboarding-input"
|
|
1503
|
-
value={onboardingPrimaryModel}
|
|
1504
|
-
onChange={(e) =>
|
|
1505
|
-
setState("onboardingPrimaryModel", e.target.value)
|
|
1506
|
-
}
|
|
1507
|
-
placeholder="provider/model (e.g. anthropic/claude-3.5-sonnet)"
|
|
1508
|
-
/>
|
|
1509
|
-
)}
|
|
1510
|
-
<p className="onboarding-desc" style={{ textAlign: "left" }}>
|
|
1511
|
-
{t("onboarding.piCredentialsHint")}
|
|
1512
|
-
{piAiModels.length > 0
|
|
1513
|
-
? t("onboarding.piDropdownHint")
|
|
1514
|
-
: t("onboarding.piManualHint")}
|
|
1515
|
-
</p>
|
|
1516
|
-
</div>
|
|
1517
|
-
)}
|
|
1518
|
-
|
|
1519
|
-
{/* openrouter model selection */}
|
|
1520
|
-
{onboardingProvider === "openrouter" &&
|
|
1521
|
-
onboardingApiKey.trim() &&
|
|
1522
|
-
onboardingOptions?.openrouterModels && (
|
|
1523
|
-
<div style={{ marginTop: "1rem", textAlign: "left", width: "100%" }}>
|
|
1524
|
-
<span
|
|
1525
|
-
style={{
|
|
1526
|
-
fontSize: "0.8125rem",
|
|
1527
|
-
fontWeight: "bold",
|
|
1528
|
-
display: "block",
|
|
1529
|
-
marginBottom: "0.5rem",
|
|
1530
|
-
color: "var(--text)",
|
|
1531
|
-
}}
|
|
1532
|
-
>
|
|
1533
|
-
{t("onboarding.selectModel")}
|
|
1534
|
-
</span>
|
|
1535
|
-
<div
|
|
1536
|
-
style={{
|
|
1537
|
-
display: "flex",
|
|
1538
|
-
flexDirection: "column",
|
|
1539
|
-
gap: "0.5rem",
|
|
1540
|
-
}}
|
|
1541
|
-
>
|
|
1542
|
-
{onboardingOptions?.openrouterModels?.map(
|
|
1543
|
-
(model: OpenRouterModelOption) => (
|
|
1544
|
-
<button
|
|
1545
|
-
type="button"
|
|
1546
|
-
key={model.id}
|
|
1547
|
-
className={`onboarding-provider-card${onboardingOpenRouterModel === model.id ? " onboarding-provider-card--selected" : ""}`}
|
|
1548
|
-
onClick={() => handleOpenRouterModelSelect(model.id)}
|
|
1549
|
-
style={{ width: "100%" }}
|
|
1550
|
-
>
|
|
1551
|
-
<div>
|
|
1552
|
-
<div className="onboarding-provider-name">
|
|
1553
|
-
{model.name}
|
|
1554
|
-
</div>
|
|
1555
|
-
{model.description && (
|
|
1556
|
-
<div className="onboarding-provider-desc">
|
|
1557
|
-
{model.description}
|
|
1558
|
-
</div>
|
|
1559
|
-
)}
|
|
1560
|
-
</div>
|
|
1561
|
-
</button>
|
|
1562
|
-
),
|
|
1563
|
-
)}
|
|
1564
|
-
</div>
|
|
1565
|
-
</div>
|
|
1566
|
-
)}
|
|
1567
|
-
|
|
1568
|
-
<div className="onboarding-panel-footer">
|
|
1569
|
-
<button
|
|
1570
|
-
className="onboarding-back-link"
|
|
1571
|
-
onClick={() => {
|
|
1572
|
-
setState("onboardingProvider", "");
|
|
1573
|
-
setState("onboardingApiKey", "");
|
|
1574
|
-
setState("onboardingPrimaryModel", "");
|
|
1575
|
-
}}
|
|
1576
|
-
type="button"
|
|
1577
|
-
>
|
|
1578
|
-
{t("onboarding.back")}
|
|
1579
|
-
</button>
|
|
1580
|
-
<button
|
|
1581
|
-
className="onboarding-confirm-btn"
|
|
1582
|
-
onClick={() => handleOnboardingNext()}
|
|
1583
|
-
type="button"
|
|
1584
|
-
>
|
|
1585
|
-
{t("onboarding.confirm")}
|
|
1586
|
-
</button>
|
|
1587
|
-
</div>
|
|
1588
|
-
</>
|
|
1589
|
-
);
|
|
1590
|
-
}
|