@elizaos/agent 2.0.0-alpha.520 → 2.0.0-alpha.522
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/apps/app-elizamaker/src/drop-service.d.ts +7 -2
- package/apps/app-elizamaker/src/drop-service.d.ts.map +1 -1
- package/package.json +4 -4
- package/packages/agent/src/api/registry-service.d.ts +1 -1
- package/packages/agent/src/api/registry-service.d.ts.map +1 -1
- package/packages/agent/src/api/server.d.ts.map +1 -1
- package/packages/agent/src/api/server.js +1 -1
- package/apps/app-companion/src/character-catalog.d.ts +0 -10
- package/apps/app-companion/src/character-catalog.d.ts.map +0 -1
- package/apps/app-companion/src/character-catalog.js +0 -32
- package/apps/app-companion/src/components/avatar/MathEnvironment.d.ts +0 -38
- package/apps/app-companion/src/components/avatar/MathEnvironment.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/MathEnvironment.js +0 -295
- package/apps/app-companion/src/components/avatar/SceneOverlayManager.d.ts +0 -36
- package/apps/app-companion/src/components/avatar/SceneOverlayManager.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/SceneOverlayManager.js +0 -305
- package/apps/app-companion/src/components/avatar/VrmAnimationLoader.d.ts +0 -30
- package/apps/app-companion/src/components/avatar/VrmAnimationLoader.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/VrmAnimationLoader.js +0 -99
- package/apps/app-companion/src/components/avatar/VrmBlinkController.d.ts +0 -37
- package/apps/app-companion/src/components/avatar/VrmBlinkController.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/VrmBlinkController.js +0 -98
- package/apps/app-companion/src/components/avatar/VrmCameraManager.d.ts +0 -57
- package/apps/app-companion/src/components/avatar/VrmCameraManager.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/VrmCameraManager.js +0 -256
- package/apps/app-companion/src/components/avatar/VrmEngine.d.ts +0 -283
- package/apps/app-companion/src/components/avatar/VrmEngine.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/VrmEngine.js +0 -2003
- package/apps/app-companion/src/components/avatar/VrmFootShadow.d.ts +0 -18
- package/apps/app-companion/src/components/avatar/VrmFootShadow.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/VrmFootShadow.js +0 -83
- package/apps/app-companion/src/components/avatar/VrmTeleportEffect.d.ts +0 -49
- package/apps/app-companion/src/components/avatar/VrmTeleportEffect.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/VrmTeleportEffect.js +0 -390
- package/apps/app-companion/src/components/avatar/VrmViewer.d.ts +0 -64
- package/apps/app-companion/src/components/avatar/VrmViewer.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/VrmViewer.js +0 -437
- package/apps/app-companion/src/components/avatar/mixamoVRMRigMap.d.ts +0 -3
- package/apps/app-companion/src/components/avatar/mixamoVRMRigMap.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/mixamoVRMRigMap.js +0 -56
- package/apps/app-companion/src/components/avatar/retargetMixamoFbxToVrm.d.ts +0 -9
- package/apps/app-companion/src/components/avatar/retargetMixamoFbxToVrm.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/retargetMixamoFbxToVrm.js +0 -127
- package/apps/app-companion/src/components/avatar/retargetMixamoGltfToVrm.d.ts +0 -11
- package/apps/app-companion/src/components/avatar/retargetMixamoGltfToVrm.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/retargetMixamoGltfToVrm.js +0 -97
- package/apps/app-companion/src/components/avatar/scene-overlay-renderer.d.ts +0 -37
- package/apps/app-companion/src/components/avatar/scene-overlay-renderer.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/scene-overlay-renderer.js +0 -337
- package/apps/app-companion/src/components/avatar/scene-theme-tokens.d.ts +0 -26
- package/apps/app-companion/src/components/avatar/scene-theme-tokens.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/scene-theme-tokens.js +0 -48
- package/apps/app-companion/src/components/avatar/vector-browser-three.d.ts +0 -9
- package/apps/app-companion/src/components/avatar/vector-browser-three.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/vector-browser-three.js +0 -21
- package/apps/app-companion/src/components/avatar/vector-browser-utils.d.ts +0 -52
- package/apps/app-companion/src/components/avatar/vector-browser-utils.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/vector-browser-utils.js +0 -245
- package/apps/app-companion/src/components/avatar/vrm-desktop-energy.d.ts +0 -40
- package/apps/app-companion/src/components/avatar/vrm-desktop-energy.d.ts.map +0 -1
- package/apps/app-companion/src/components/avatar/vrm-desktop-energy.js +0 -74
- package/apps/app-companion/src/components/chat/ChatAvatar.d.ts +0 -3
- package/apps/app-companion/src/components/chat/ChatAvatar.d.ts.map +0 -1
- package/apps/app-companion/src/components/chat/ChatAvatar.js +0 -80
- package/apps/app-companion/src/components/companion/CompanionAppView.d.ts +0 -9
- package/apps/app-companion/src/components/companion/CompanionAppView.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/CompanionAppView.js +0 -121
- package/apps/app-companion/src/components/companion/CompanionHeader.d.ts +0 -27
- package/apps/app-companion/src/components/companion/CompanionHeader.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/CompanionHeader.js +0 -67
- package/apps/app-companion/src/components/companion/CompanionPerformanceSettings.d.ts +0 -2
- package/apps/app-companion/src/components/companion/CompanionPerformanceSettings.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/CompanionPerformanceSettings.js +0 -33
- package/apps/app-companion/src/components/companion/CompanionSceneHost.d.ts +0 -15
- package/apps/app-companion/src/components/companion/CompanionSceneHost.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/CompanionSceneHost.js +0 -476
- package/apps/app-companion/src/components/companion/CompanionSettingsPanel.d.ts +0 -2
- package/apps/app-companion/src/components/companion/CompanionSettingsPanel.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/CompanionSettingsPanel.js +0 -7
- package/apps/app-companion/src/components/companion/CompanionShell.d.ts +0 -8
- package/apps/app-companion/src/components/companion/CompanionShell.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/CompanionShell.js +0 -9
- package/apps/app-companion/src/components/companion/CompanionView.d.ts +0 -7
- package/apps/app-companion/src/components/companion/CompanionView.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/CompanionView.js +0 -126
- package/apps/app-companion/src/components/companion/EmotePicker.d.ts +0 -2
- package/apps/app-companion/src/components/companion/EmotePicker.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/EmotePicker.js +0 -351
- package/apps/app-companion/src/components/companion/GlobalEmoteOverlay.d.ts +0 -2
- package/apps/app-companion/src/components/companion/GlobalEmoteOverlay.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/GlobalEmoteOverlay.js +0 -113
- package/apps/app-companion/src/components/companion/InferenceCloudAlertButton.d.ts +0 -9
- package/apps/app-companion/src/components/companion/InferenceCloudAlertButton.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/InferenceCloudAlertButton.js +0 -16
- package/apps/app-companion/src/components/companion/VrmStage.d.ts +0 -27
- package/apps/app-companion/src/components/companion/VrmStage.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/VrmStage.js +0 -179
- package/apps/app-companion/src/components/companion/companion-app.d.ts +0 -6
- package/apps/app-companion/src/components/companion/companion-app.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/companion-app.js +0 -15
- package/apps/app-companion/src/components/companion/companion-scene-status-context.d.ts +0 -7
- package/apps/app-companion/src/components/companion/companion-scene-status-context.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/companion-scene-status-context.js +0 -8
- package/apps/app-companion/src/components/companion/companion-shell-styles.d.ts +0 -38
- package/apps/app-companion/src/components/companion/companion-shell-styles.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/companion-shell-styles.js +0 -237
- package/apps/app-companion/src/components/companion/resolve-companion-inference-notice.d.ts +0 -19
- package/apps/app-companion/src/components/companion/resolve-companion-inference-notice.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/resolve-companion-inference-notice.js +0 -31
- package/apps/app-companion/src/components/companion/scene-overlay-bridge.d.ts +0 -6
- package/apps/app-companion/src/components/companion/scene-overlay-bridge.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/scene-overlay-bridge.js +0 -83
- package/apps/app-companion/src/components/companion/shared-companion-scene-context.d.ts +0 -3
- package/apps/app-companion/src/components/companion/shared-companion-scene-context.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/shared-companion-scene-context.js +0 -13
- package/apps/app-companion/src/components/companion/walletUtils.d.ts +0 -91
- package/apps/app-companion/src/components/companion/walletUtils.d.ts.map +0 -1
- package/apps/app-companion/src/components/companion/walletUtils.js +0 -152
- package/apps/app-companion/src/index.d.ts +0 -38
- package/apps/app-companion/src/index.d.ts.map +0 -1
- package/apps/app-companion/src/index.js +0 -37
- package/apps/app-companion/src/types/render-modes.d.ts +0 -4
- package/apps/app-companion/src/types/render-modes.d.ts.map +0 -1
- package/apps/app-companion/src/types/render-modes.js +0 -6
- package/apps/app-companion/src/vrm-assets.d.ts +0 -10
- package/apps/app-companion/src/vrm-assets.d.ts.map +0 -1
- package/apps/app-companion/src/vrm-assets.js +0 -70
- package/apps/app-lifeops/src/api/client-lifeops.d.ts +0 -406
- package/apps/app-lifeops/src/api/client-lifeops.d.ts.map +0 -1
- package/apps/app-lifeops/src/api/client-lifeops.js +0 -1070
- package/apps/app-steward/src/ApprovalQueue.d.ts +0 -18
- package/apps/app-steward/src/ApprovalQueue.d.ts.map +0 -1
- package/apps/app-steward/src/ApprovalQueue.js +0 -141
- package/apps/app-steward/src/StewardLogo.d.ts +0 -11
- package/apps/app-steward/src/StewardLogo.d.ts.map +0 -1
- package/apps/app-steward/src/StewardLogo.js +0 -4
- package/apps/app-steward/src/StewardView.d.ts +0 -6
- package/apps/app-steward/src/StewardView.d.ts.map +0 -1
- package/apps/app-steward/src/StewardView.js +0 -45
- package/apps/app-steward/src/TransactionHistory.d.ts +0 -22
- package/apps/app-steward/src/TransactionHistory.d.ts.map +0 -1
- package/apps/app-steward/src/TransactionHistory.js +0 -100
- package/apps/app-steward/src/actions/check-balance.d.ts +0 -17
- package/apps/app-steward/src/actions/check-balance.d.ts.map +0 -1
- package/apps/app-steward/src/actions/check-balance.js +0 -168
- package/apps/app-steward/src/actions/execute-trade.d.ts +0 -17
- package/apps/app-steward/src/actions/execute-trade.d.ts.map +0 -1
- package/apps/app-steward/src/actions/execute-trade.js +0 -307
- package/apps/app-steward/src/actions/get-receive-address.d.ts +0 -13
- package/apps/app-steward/src/actions/get-receive-address.d.ts.map +0 -1
- package/apps/app-steward/src/actions/get-receive-address.js +0 -127
- package/apps/app-steward/src/actions/prepare-swap.d.ts +0 -13
- package/apps/app-steward/src/actions/prepare-swap.d.ts.map +0 -1
- package/apps/app-steward/src/actions/prepare-swap.js +0 -303
- package/apps/app-steward/src/actions/prepare-transfer.d.ts +0 -14
- package/apps/app-steward/src/actions/prepare-transfer.d.ts.map +0 -1
- package/apps/app-steward/src/actions/prepare-transfer.js +0 -217
- package/apps/app-steward/src/actions/transfer-token.d.ts +0 -17
- package/apps/app-steward/src/actions/transfer-token.d.ts.map +0 -1
- package/apps/app-steward/src/actions/transfer-token.js +0 -479
- package/apps/app-steward/src/actions/wallet-action-shared.d.ts +0 -15
- package/apps/app-steward/src/actions/wallet-action-shared.d.ts.map +0 -1
- package/apps/app-steward/src/actions/wallet-action-shared.js +0 -24
- package/apps/app-steward/src/api/bsc-trade.d.ts +0 -36
- package/apps/app-steward/src/api/bsc-trade.d.ts.map +0 -1
- package/apps/app-steward/src/api/bsc-trade.js +0 -782
- package/apps/app-steward/src/api/tx-service.d.ts +0 -53
- package/apps/app-steward/src/api/tx-service.d.ts.map +0 -1
- package/apps/app-steward/src/api/tx-service.js +0 -217
- package/apps/app-steward/src/api/wallet-bsc-routes.d.ts +0 -63
- package/apps/app-steward/src/api/wallet-bsc-routes.d.ts.map +0 -1
- package/apps/app-steward/src/api/wallet-bsc-routes.js +0 -318
- package/apps/app-steward/src/api/wallet-trading-profile.d.ts +0 -31
- package/apps/app-steward/src/api/wallet-trading-profile.d.ts.map +0 -1
- package/apps/app-steward/src/api/wallet-trading-profile.js +0 -560
- package/apps/app-steward/src/browser-workspace-wallet.d.ts +0 -80
- package/apps/app-steward/src/browser-workspace-wallet.d.ts.map +0 -1
- package/apps/app-steward/src/browser-workspace-wallet.js +0 -135
- package/apps/app-steward/src/chain-utils.d.ts +0 -10
- package/apps/app-steward/src/chain-utils.d.ts.map +0 -1
- package/apps/app-steward/src/chain-utils.js +0 -83
- package/apps/app-steward/src/index.d.ts +0 -20
- package/apps/app-steward/src/index.d.ts.map +0 -1
- package/apps/app-steward/src/index.js +0 -19
- package/apps/app-steward/src/plugin.d.ts +0 -21
- package/apps/app-steward/src/plugin.d.ts.map +0 -1
- package/apps/app-steward/src/plugin.js +0 -325
- package/apps/app-steward/src/routes/steward-bridge.d.ts +0 -202
- package/apps/app-steward/src/routes/steward-bridge.d.ts.map +0 -1
- package/apps/app-steward/src/routes/steward-bridge.js +0 -858
- package/apps/app-steward/src/routes/steward-compat-routes.d.ts +0 -21
- package/apps/app-steward/src/routes/steward-compat-routes.d.ts.map +0 -1
- package/apps/app-steward/src/routes/steward-compat-routes.js +0 -372
- package/apps/app-steward/src/routes/wallet-browser-compat-routes.d.ts +0 -4
- package/apps/app-steward/src/routes/wallet-browser-compat-routes.d.ts.map +0 -1
- package/apps/app-steward/src/routes/wallet-browser-compat-routes.js +0 -387
- package/apps/app-steward/src/routes/wallet-bsc-core-routes.d.ts +0 -15
- package/apps/app-steward/src/routes/wallet-bsc-core-routes.d.ts.map +0 -1
- package/apps/app-steward/src/routes/wallet-bsc-core-routes.js +0 -42
- package/apps/app-steward/src/routes/wallet-compat-routes.d.ts +0 -13
- package/apps/app-steward/src/routes/wallet-compat-routes.d.ts.map +0 -1
- package/apps/app-steward/src/routes/wallet-compat-routes.js +0 -200
- package/apps/app-steward/src/routes/wallet-trade-compat-routes.d.ts +0 -11
- package/apps/app-steward/src/routes/wallet-trade-compat-routes.d.ts.map +0 -1
- package/apps/app-steward/src/routes/wallet-trade-compat-routes.js +0 -528
- package/apps/app-steward/src/security/hydrate-wallet-keys-from-platform-store.d.ts +0 -7
- package/apps/app-steward/src/security/hydrate-wallet-keys-from-platform-store.d.ts.map +0 -1
- package/apps/app-steward/src/security/hydrate-wallet-keys-from-platform-store.js +0 -40
- package/apps/app-steward/src/security/wallet-os-store-actions.d.ts +0 -14
- package/apps/app-steward/src/security/wallet-os-store-actions.d.ts.map +0 -1
- package/apps/app-steward/src/security/wallet-os-store-actions.js +0 -70
- package/apps/app-steward/src/services/steward-credentials.d.ts +0 -37
- package/apps/app-steward/src/services/steward-credentials.d.ts.map +0 -1
- package/apps/app-steward/src/services/steward-credentials.js +0 -91
- package/apps/app-steward/src/services/steward-sidecar/health-check.d.ts +0 -9
- package/apps/app-steward/src/services/steward-sidecar/health-check.d.ts.map +0 -1
- package/apps/app-steward/src/services/steward-sidecar/health-check.js +0 -34
- package/apps/app-steward/src/services/steward-sidecar/helpers.d.ts +0 -21
- package/apps/app-steward/src/services/steward-sidecar/helpers.d.ts.map +0 -1
- package/apps/app-steward/src/services/steward-sidecar/helpers.js +0 -71
- package/apps/app-steward/src/services/steward-sidecar/process-management.d.ts +0 -9
- package/apps/app-steward/src/services/steward-sidecar/process-management.d.ts.map +0 -1
- package/apps/app-steward/src/services/steward-sidecar/process-management.js +0 -53
- package/apps/app-steward/src/services/steward-sidecar/types.d.ts +0 -60
- package/apps/app-steward/src/services/steward-sidecar/types.d.ts.map +0 -1
- package/apps/app-steward/src/services/steward-sidecar/types.js +0 -17
- package/apps/app-steward/src/services/steward-sidecar/wallet-setup.d.ts +0 -9
- package/apps/app-steward/src/services/steward-sidecar/wallet-setup.d.ts.map +0 -1
- package/apps/app-steward/src/services/steward-sidecar/wallet-setup.js +0 -114
- package/apps/app-steward/src/services/steward-sidecar.d.ts +0 -69
- package/apps/app-steward/src/services/steward-sidecar.d.ts.map +0 -1
- package/apps/app-steward/src/services/steward-sidecar.js +0 -383
- package/apps/app-steward/src/services/steward-wallet.d.ts +0 -25
- package/apps/app-steward/src/services/steward-wallet.d.ts.map +0 -1
- package/apps/app-steward/src/services/steward-wallet.js +0 -332
- package/apps/app-steward/src/types/bsc-trade.d.ts +0 -181
- package/apps/app-steward/src/types/bsc-trade.d.ts.map +0 -1
- package/apps/app-steward/src/types/bsc-trade.js +0 -8
- package/apps/app-steward/src/types/index.d.ts +0 -3
- package/apps/app-steward/src/types/index.d.ts.map +0 -1
- package/apps/app-steward/src/types/index.js +0 -2
- package/apps/app-steward/src/types/steward.d.ts +0 -85
- package/apps/app-steward/src/types/steward.d.ts.map +0 -1
- package/apps/app-steward/src/types/steward.js +0 -9
- package/apps/app-vincent/src/client.d.ts +0 -17
- package/apps/app-vincent/src/client.d.ts.map +0 -1
- package/apps/app-vincent/src/client.js +0 -38
- package/apps/app-vincent/src/vincent-contracts.d.ts +0 -52
- package/apps/app-vincent/src/vincent-contracts.d.ts.map +0 -1
- package/apps/app-vincent/src/vincent-contracts.js +0 -4
- package/packages/app-core/src/App.d.ts +0 -6
- package/packages/app-core/src/App.d.ts.map +0 -1
- package/packages/app-core/src/App.js +0 -516
- package/packages/app-core/src/api/auth/audit.d.ts +0 -52
- package/packages/app-core/src/api/auth/audit.d.ts.map +0 -1
- package/packages/app-core/src/api/auth/audit.js +0 -126
- package/packages/app-core/src/api/auth/legacy-bearer.d.ts +0 -75
- package/packages/app-core/src/api/auth/legacy-bearer.d.ts.map +0 -1
- package/packages/app-core/src/api/auth/legacy-bearer.js +0 -126
- package/packages/app-core/src/api/auth/sessions.d.ts +0 -152
- package/packages/app-core/src/api/auth/sessions.d.ts.map +0 -1
- package/packages/app-core/src/api/auth/sessions.js +0 -298
- package/packages/app-core/src/api/auth/tokens.d.ts +0 -3
- package/packages/app-core/src/api/auth/tokens.d.ts.map +0 -1
- package/packages/app-core/src/api/auth/tokens.js +0 -13
- package/packages/app-core/src/api/auth-client.d.ts +0 -130
- package/packages/app-core/src/api/auth-client.d.ts.map +0 -1
- package/packages/app-core/src/api/auth-client.js +0 -301
- package/packages/app-core/src/api/auth.d.ts +0 -155
- package/packages/app-core/src/api/auth.d.ts.map +0 -1
- package/packages/app-core/src/api/auth.js +0 -326
- package/packages/app-core/src/api/client-agent.d.ts +0 -627
- package/packages/app-core/src/api/client-agent.d.ts.map +0 -1
- package/packages/app-core/src/api/client-agent.js +0 -1442
- package/packages/app-core/src/api/client-automations.d.ts +0 -8
- package/packages/app-core/src/api/client-automations.d.ts.map +0 -1
- package/packages/app-core/src/api/client-automations.js +0 -7
- package/packages/app-core/src/api/client-base.d.ts +0 -82
- package/packages/app-core/src/api/client-base.d.ts.map +0 -1
- package/packages/app-core/src/api/client-base.js +0 -729
- package/packages/app-core/src/api/client-browser-workspace.d.ts +0 -25
- package/packages/app-core/src/api/client-browser-workspace.d.ts.map +0 -1
- package/packages/app-core/src/api/client-browser-workspace.js +0 -98
- package/packages/app-core/src/api/client-chat.d.ts +0 -355
- package/packages/app-core/src/api/client-chat.d.ts.map +0 -1
- package/packages/app-core/src/api/client-chat.js +0 -582
- package/packages/app-core/src/api/client-cloud.d.ts +0 -286
- package/packages/app-core/src/api/client-cloud.d.ts.map +0 -1
- package/packages/app-core/src/api/client-cloud.js +0 -410
- package/packages/app-core/src/api/client-computeruse.d.ts +0 -32
- package/packages/app-core/src/api/client-computeruse.d.ts.map +0 -1
- package/packages/app-core/src/api/client-computeruse.js +0 -16
- package/packages/app-core/src/api/client-imessage.d.ts +0 -68
- package/packages/app-core/src/api/client-imessage.d.ts.map +0 -1
- package/packages/app-core/src/api/client-imessage.js +0 -74
- package/packages/app-core/src/api/client-local-inference.d.ts +0 -62
- package/packages/app-core/src/api/client-local-inference.d.ts.map +0 -1
- package/packages/app-core/src/api/client-local-inference.js +0 -87
- package/packages/app-core/src/api/client-n8n.d.ts +0 -27
- package/packages/app-core/src/api/client-n8n.d.ts.map +0 -1
- package/packages/app-core/src/api/client-n8n.js +0 -61
- package/packages/app-core/src/api/client-skills.d.ts +0 -475
- package/packages/app-core/src/api/client-skills.d.ts.map +0 -1
- package/packages/app-core/src/api/client-skills.js +0 -608
- package/packages/app-core/src/api/client-types-babylon.d.ts +0 -254
- package/packages/app-core/src/api/client-types-babylon.d.ts.map +0 -1
- package/packages/app-core/src/api/client-types-babylon.js +0 -2
- package/packages/app-core/src/api/client-types-character.d.ts +0 -39
- package/packages/app-core/src/api/client-types-character.d.ts.map +0 -1
- package/packages/app-core/src/api/client-types-character.js +0 -1
- package/packages/app-core/src/api/client-types-chat.d.ts +0 -428
- package/packages/app-core/src/api/client-types-chat.d.ts.map +0 -1
- package/packages/app-core/src/api/client-types-chat.js +0 -9
- package/packages/app-core/src/api/client-types-config.d.ts +0 -586
- package/packages/app-core/src/api/client-types-config.d.ts.map +0 -1
- package/packages/app-core/src/api/client-types-config.js +0 -5
- package/packages/app-core/src/api/client-types-experience.d.ts +0 -97
- package/packages/app-core/src/api/client-types-experience.d.ts.map +0 -1
- package/packages/app-core/src/api/client-types-experience.js +0 -1
- package/packages/app-core/src/api/client-types-relationships.d.ts +0 -181
- package/packages/app-core/src/api/client-types-relationships.d.ts.map +0 -1
- package/packages/app-core/src/api/client-types-relationships.js +0 -1
- package/packages/app-core/src/api/client-types.d.ts +0 -9
- package/packages/app-core/src/api/client-types.d.ts.map +0 -1
- package/packages/app-core/src/api/client-types.js +0 -12
- package/packages/app-core/src/api/client-wallet.d.ts +0 -129
- package/packages/app-core/src/api/client-wallet.d.ts.map +0 -1
- package/packages/app-core/src/api/client-wallet.js +0 -228
- package/packages/app-core/src/api/client.d.ts +0 -38
- package/packages/app-core/src/api/client.d.ts.map +0 -1
- package/packages/app-core/src/api/client.js +0 -38
- package/packages/app-core/src/api/csrf-client.d.ts +0 -29
- package/packages/app-core/src/api/csrf-client.d.ts.map +0 -1
- package/packages/app-core/src/api/csrf-client.js +0 -54
- package/packages/app-core/src/api/index.d.ts +0 -2
- package/packages/app-core/src/api/index.d.ts.map +0 -1
- package/packages/app-core/src/api/index.js +0 -1
- package/packages/app-core/src/app-shell/task-coordinator-slots.d.ts +0 -38
- package/packages/app-core/src/app-shell/task-coordinator-slots.d.ts.map +0 -1
- package/packages/app-core/src/app-shell/task-coordinator-slots.js +0 -21
- package/packages/app-core/src/autonomy/index.d.ts +0 -48
- package/packages/app-core/src/autonomy/index.d.ts.map +0 -1
- package/packages/app-core/src/autonomy/index.js +0 -336
- package/packages/app-core/src/bridge/capacitor-bridge.d.ts +0 -153
- package/packages/app-core/src/bridge/capacitor-bridge.d.ts.map +0 -1
- package/packages/app-core/src/bridge/capacitor-bridge.js +0 -195
- package/packages/app-core/src/bridge/electrobun-rpc.d.ts +0 -57
- package/packages/app-core/src/bridge/electrobun-rpc.d.ts.map +0 -1
- package/packages/app-core/src/bridge/electrobun-rpc.js +0 -87
- package/packages/app-core/src/bridge/electrobun-runtime.d.ts +0 -3
- package/packages/app-core/src/bridge/electrobun-runtime.d.ts.map +0 -1
- package/packages/app-core/src/bridge/electrobun-runtime.js +0 -34
- package/packages/app-core/src/bridge/gateway-discovery.d.ts +0 -17
- package/packages/app-core/src/bridge/gateway-discovery.d.ts.map +0 -1
- package/packages/app-core/src/bridge/gateway-discovery.js +0 -49
- package/packages/app-core/src/bridge/index.d.ts +0 -7
- package/packages/app-core/src/bridge/index.d.ts.map +0 -1
- package/packages/app-core/src/bridge/index.js +0 -6
- package/packages/app-core/src/bridge/native-plugins.d.ts +0 -504
- package/packages/app-core/src/bridge/native-plugins.d.ts.map +0 -1
- package/packages/app-core/src/bridge/native-plugins.js +0 -67
- package/packages/app-core/src/bridge/plugin-bridge.d.ts +0 -133
- package/packages/app-core/src/bridge/plugin-bridge.d.ts.map +0 -1
- package/packages/app-core/src/bridge/plugin-bridge.js +0 -241
- package/packages/app-core/src/bridge/storage-bridge.d.ts +0 -39
- package/packages/app-core/src/bridge/storage-bridge.d.ts.map +0 -1
- package/packages/app-core/src/bridge/storage-bridge.js +0 -142
- package/packages/app-core/src/character/character-draft-helpers.d.ts +0 -35
- package/packages/app-core/src/character/character-draft-helpers.d.ts.map +0 -1
- package/packages/app-core/src/character/character-draft-helpers.js +0 -270
- package/packages/app-core/src/chat/coding-agent-session-state.d.ts +0 -16
- package/packages/app-core/src/chat/coding-agent-session-state.d.ts.map +0 -1
- package/packages/app-core/src/chat/coding-agent-session-state.js +0 -27
- package/packages/app-core/src/chat/index.d.ts +0 -65
- package/packages/app-core/src/chat/index.d.ts.map +0 -1
- package/packages/app-core/src/chat/index.js +0 -225
- package/packages/app-core/src/components/accounts/AccountCard.d.ts +0 -30
- package/packages/app-core/src/components/accounts/AccountCard.d.ts.map +0 -1
- package/packages/app-core/src/components/accounts/AccountCard.js +0 -185
- package/packages/app-core/src/components/accounts/AccountList.d.ts +0 -15
- package/packages/app-core/src/components/accounts/AccountList.d.ts.map +0 -1
- package/packages/app-core/src/components/accounts/AccountList.js +0 -89
- package/packages/app-core/src/components/accounts/AddAccountDialog.d.ts +0 -33
- package/packages/app-core/src/components/accounts/AddAccountDialog.d.ts.map +0 -1
- package/packages/app-core/src/components/accounts/AddAccountDialog.js +0 -318
- package/packages/app-core/src/components/accounts/RotationStrategyPicker.d.ts +0 -16
- package/packages/app-core/src/components/accounts/RotationStrategyPicker.d.ts.map +0 -1
- package/packages/app-core/src/components/accounts/RotationStrategyPicker.js +0 -45
- package/packages/app-core/src/components/apps/AppsCatalogGrid.d.ts +0 -14
- package/packages/app-core/src/components/apps/AppsCatalogGrid.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/AppsCatalogGrid.js +0 -208
- package/packages/app-core/src/components/apps/AppsSidebar.d.ts +0 -22
- package/packages/app-core/src/components/apps/AppsSidebar.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/AppsSidebar.js +0 -98
- package/packages/app-core/src/components/apps/GameView.d.ts +0 -18
- package/packages/app-core/src/components/apps/GameView.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/GameView.js +0 -1133
- package/packages/app-core/src/components/apps/GameViewOverlay.d.ts +0 -2
- package/packages/app-core/src/components/apps/GameViewOverlay.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/GameViewOverlay.js +0 -120
- package/packages/app-core/src/components/apps/RunningAppsRow.d.ts +0 -12
- package/packages/app-core/src/components/apps/RunningAppsRow.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/RunningAppsRow.js +0 -35
- package/packages/app-core/src/components/apps/app-identity.d.ts +0 -32
- package/packages/app-core/src/components/apps/app-identity.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/app-identity.js +0 -182
- package/packages/app-core/src/components/apps/catalog-loader.d.ts +0 -7
- package/packages/app-core/src/components/apps/catalog-loader.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/catalog-loader.js +0 -30
- package/packages/app-core/src/components/apps/extensions/registry.d.ts +0 -12
- package/packages/app-core/src/components/apps/extensions/registry.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/extensions/registry.js +0 -23
- package/packages/app-core/src/components/apps/extensions/surface.d.ts +0 -34
- package/packages/app-core/src/components/apps/extensions/surface.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/extensions/surface.js +0 -96
- package/packages/app-core/src/components/apps/extensions/types.d.ts +0 -7
- package/packages/app-core/src/components/apps/extensions/types.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/extensions/types.js +0 -1
- package/packages/app-core/src/components/apps/helpers.d.ts +0 -53
- package/packages/app-core/src/components/apps/helpers.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/helpers.js +0 -364
- package/packages/app-core/src/components/apps/internal-tool-apps.d.ts +0 -18
- package/packages/app-core/src/components/apps/internal-tool-apps.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/internal-tool-apps.js +0 -173
- package/packages/app-core/src/components/apps/launch-history.d.ts +0 -16
- package/packages/app-core/src/components/apps/launch-history.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/launch-history.js +0 -77
- package/packages/app-core/src/components/apps/overlay-app-api.d.ts +0 -55
- package/packages/app-core/src/components/apps/overlay-app-api.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/overlay-app-api.js +0 -8
- package/packages/app-core/src/components/apps/overlay-app-registry.d.ts +0 -19
- package/packages/app-core/src/components/apps/overlay-app-registry.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/overlay-app-registry.js +0 -58
- package/packages/app-core/src/components/apps/per-app-config.d.ts +0 -19
- package/packages/app-core/src/components/apps/per-app-config.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/per-app-config.js +0 -99
- package/packages/app-core/src/components/apps/run-attention.d.ts +0 -3
- package/packages/app-core/src/components/apps/run-attention.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/run-attention.js +0 -77
- package/packages/app-core/src/components/apps/surfaces/GameOperatorShell.d.ts +0 -47
- package/packages/app-core/src/components/apps/surfaces/GameOperatorShell.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/surfaces/GameOperatorShell.js +0 -42
- package/packages/app-core/src/components/apps/surfaces/registry.d.ts +0 -11
- package/packages/app-core/src/components/apps/surfaces/registry.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/surfaces/registry.js +0 -23
- package/packages/app-core/src/components/apps/surfaces/types.d.ts +0 -10
- package/packages/app-core/src/components/apps/surfaces/types.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/surfaces/types.js +0 -1
- package/packages/app-core/src/components/apps/useRegistryCatalog.d.ts +0 -14
- package/packages/app-core/src/components/apps/useRegistryCatalog.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/useRegistryCatalog.js +0 -52
- package/packages/app-core/src/components/apps/viewer-auth.d.ts +0 -7
- package/packages/app-core/src/components/apps/viewer-auth.d.ts.map +0 -1
- package/packages/app-core/src/components/apps/viewer-auth.js +0 -55
- package/packages/app-core/src/components/auth/LoginView.d.ts +0 -17
- package/packages/app-core/src/components/auth/LoginView.d.ts.map +0 -1
- package/packages/app-core/src/components/auth/LoginView.js +0 -62
- package/packages/app-core/src/components/character/CharacterEditor.d.ts +0 -12
- package/packages/app-core/src/components/character/CharacterEditor.d.ts.map +0 -1
- package/packages/app-core/src/components/character/CharacterEditor.js +0 -885
- package/packages/app-core/src/components/character/CharacterEditorPanels.d.ts +0 -35
- package/packages/app-core/src/components/character/CharacterEditorPanels.d.ts.map +0 -1
- package/packages/app-core/src/components/character/CharacterEditorPanels.js +0 -250
- package/packages/app-core/src/components/character/CharacterExperienceWorkspace.d.ts +0 -11
- package/packages/app-core/src/components/character/CharacterExperienceWorkspace.d.ts.map +0 -1
- package/packages/app-core/src/components/character/CharacterExperienceWorkspace.js +0 -453
- package/packages/app-core/src/components/character/CharacterHubView.d.ts +0 -22
- package/packages/app-core/src/components/character/CharacterHubView.d.ts.map +0 -1
- package/packages/app-core/src/components/character/CharacterHubView.js +0 -688
- package/packages/app-core/src/components/character/CharacterLearnedSkillsSection.d.ts +0 -2
- package/packages/app-core/src/components/character/CharacterLearnedSkillsSection.d.ts.map +0 -1
- package/packages/app-core/src/components/character/CharacterLearnedSkillsSection.js +0 -76
- package/packages/app-core/src/components/character/CharacterOverviewSection.d.ts +0 -27
- package/packages/app-core/src/components/character/CharacterOverviewSection.d.ts.map +0 -1
- package/packages/app-core/src/components/character/CharacterOverviewSection.js +0 -36
- package/packages/app-core/src/components/character/CharacterRelationshipsSection.d.ts +0 -7
- package/packages/app-core/src/components/character/CharacterRelationshipsSection.d.ts.map +0 -1
- package/packages/app-core/src/components/character/CharacterRelationshipsSection.js +0 -4
- package/packages/app-core/src/components/character/CharacterRoster.d.ts +0 -32
- package/packages/app-core/src/components/character/CharacterRoster.d.ts.map +0 -1
- package/packages/app-core/src/components/character/CharacterRoster.js +0 -111
- package/packages/app-core/src/components/character/MusicLibraryCharacterWidget.d.ts +0 -3
- package/packages/app-core/src/components/character/MusicLibraryCharacterWidget.d.ts.map +0 -1
- package/packages/app-core/src/components/character/MusicLibraryCharacterWidget.js +0 -27
- package/packages/app-core/src/components/character/character-editor-helpers.d.ts +0 -42
- package/packages/app-core/src/components/character/character-editor-helpers.d.ts.map +0 -1
- package/packages/app-core/src/components/character/character-editor-helpers.js +0 -58
- package/packages/app-core/src/components/character/character-greeting.d.ts +0 -5
- package/packages/app-core/src/components/character/character-greeting.d.ts.map +0 -1
- package/packages/app-core/src/components/character/character-greeting.js +0 -22
- package/packages/app-core/src/components/character/character-hub-helpers.d.ts +0 -14
- package/packages/app-core/src/components/character/character-hub-helpers.d.ts.map +0 -1
- package/packages/app-core/src/components/character/character-hub-helpers.js +0 -140
- package/packages/app-core/src/components/character/character-hub-types.d.ts +0 -60
- package/packages/app-core/src/components/character/character-hub-types.d.ts.map +0 -1
- package/packages/app-core/src/components/character/character-hub-types.js +0 -1
- package/packages/app-core/src/components/character/character-voice-config.d.ts +0 -33
- package/packages/app-core/src/components/character/character-voice-config.d.ts.map +0 -1
- package/packages/app-core/src/components/character/character-voice-config.js +0 -95
- package/packages/app-core/src/components/chat/AgentActivityBox.d.ts +0 -8
- package/packages/app-core/src/components/chat/AgentActivityBox.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/AgentActivityBox.js +0 -33
- package/packages/app-core/src/components/chat/AppsSection.d.ts +0 -13
- package/packages/app-core/src/components/chat/AppsSection.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/AppsSection.js +0 -198
- package/packages/app-core/src/components/chat/MessageContent.d.ts +0 -41
- package/packages/app-core/src/components/chat/MessageContent.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/MessageContent.js +0 -691
- package/packages/app-core/src/components/chat/SaveCommandModal.d.ts +0 -9
- package/packages/app-core/src/components/chat/SaveCommandModal.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/SaveCommandModal.js +0 -59
- package/packages/app-core/src/components/chat/TasksEventsPanel.d.ts +0 -30
- package/packages/app-core/src/components/chat/TasksEventsPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/TasksEventsPanel.js +0 -139
- package/packages/app-core/src/components/chat/WidgetVisibilityPanel.d.ts +0 -25
- package/packages/app-core/src/components/chat/WidgetVisibilityPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/WidgetVisibilityPanel.js +0 -30
- package/packages/app-core/src/components/chat/chat-source-registration.d.ts +0 -1
- package/packages/app-core/src/components/chat/chat-source-registration.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/chat-source-registration.js +0 -1
- package/packages/app-core/src/components/chat/message-choice-parser.d.ts +0 -20
- package/packages/app-core/src/components/chat/message-choice-parser.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/message-choice-parser.js +0 -53
- package/packages/app-core/src/components/chat/widgets/ChoiceWidget.d.ts +0 -24
- package/packages/app-core/src/components/chat/widgets/ChoiceWidget.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/widgets/ChoiceWidget.js +0 -38
- package/packages/app-core/src/components/chat/widgets/agent-orchestrator.d.ts +0 -20
- package/packages/app-core/src/components/chat/widgets/agent-orchestrator.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/widgets/agent-orchestrator.js +0 -273
- package/packages/app-core/src/components/chat/widgets/browser-status.d.ts +0 -14
- package/packages/app-core/src/components/chat/widgets/browser-status.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/widgets/browser-status.js +0 -109
- package/packages/app-core/src/components/chat/widgets/music-player.d.ts +0 -4
- package/packages/app-core/src/components/chat/widgets/music-player.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/widgets/music-player.js +0 -132
- package/packages/app-core/src/components/chat/widgets/registry.d.ts +0 -8
- package/packages/app-core/src/components/chat/widgets/registry.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/widgets/registry.js +0 -7
- package/packages/app-core/src/components/chat/widgets/shared.d.ts +0 -17
- package/packages/app-core/src/components/chat/widgets/shared.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/widgets/shared.js +0 -8
- package/packages/app-core/src/components/chat/widgets/todo.d.ts +0 -3
- package/packages/app-core/src/components/chat/widgets/todo.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/widgets/todo.js +0 -109
- package/packages/app-core/src/components/chat/widgets/types.d.ts +0 -16
- package/packages/app-core/src/components/chat/widgets/types.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/widgets/types.js +0 -1
- package/packages/app-core/src/components/chat/widgets/wallet-status.d.ts +0 -4
- package/packages/app-core/src/components/chat/widgets/wallet-status.d.ts.map +0 -1
- package/packages/app-core/src/components/chat/widgets/wallet-status.js +0 -190
- package/packages/app-core/src/components/cloud/CloudSourceControls.d.ts +0 -13
- package/packages/app-core/src/components/cloud/CloudSourceControls.d.ts.map +0 -1
- package/packages/app-core/src/components/cloud/CloudSourceControls.js +0 -19
- package/packages/app-core/src/components/cloud/CloudStatusBadge.d.ts +0 -33
- package/packages/app-core/src/components/cloud/CloudStatusBadge.d.ts.map +0 -1
- package/packages/app-core/src/components/cloud/CloudStatusBadge.js +0 -98
- package/packages/app-core/src/components/cloud/FlaminaGuide.d.ts +0 -10
- package/packages/app-core/src/components/cloud/FlaminaGuide.d.ts.map +0 -1
- package/packages/app-core/src/components/cloud/FlaminaGuide.js +0 -86
- package/packages/app-core/src/components/cloud/StripeEmbeddedCheckout.d.ts +0 -24
- package/packages/app-core/src/components/cloud/StripeEmbeddedCheckout.d.ts.map +0 -1
- package/packages/app-core/src/components/cloud/StripeEmbeddedCheckout.js +0 -101
- package/packages/app-core/src/components/companion/injected.d.ts +0 -10
- package/packages/app-core/src/components/companion/injected.d.ts.map +0 -1
- package/packages/app-core/src/components/companion/injected.js +0 -25
- package/packages/app-core/src/components/config-ui/config-control-primitives.d.ts +0 -14
- package/packages/app-core/src/components/config-ui/config-control-primitives.d.ts.map +0 -1
- package/packages/app-core/src/components/config-ui/config-control-primitives.js +0 -22
- package/packages/app-core/src/components/config-ui/config-field.d.ts +0 -58
- package/packages/app-core/src/components/config-ui/config-field.d.ts.map +0 -1
- package/packages/app-core/src/components/config-ui/config-field.js +0 -874
- package/packages/app-core/src/components/config-ui/config-renderer.d.ts +0 -164
- package/packages/app-core/src/components/config-ui/config-renderer.d.ts.map +0 -1
- package/packages/app-core/src/components/config-ui/config-renderer.js +0 -397
- package/packages/app-core/src/components/config-ui/index.d.ts +0 -5
- package/packages/app-core/src/components/config-ui/index.d.ts.map +0 -1
- package/packages/app-core/src/components/config-ui/index.js +0 -4
- package/packages/app-core/src/components/config-ui/ui-renderer.d.ts +0 -15
- package/packages/app-core/src/components/config-ui/ui-renderer.d.ts.map +0 -1
- package/packages/app-core/src/components/config-ui/ui-renderer.js +0 -826
- package/packages/app-core/src/components/connectors/BlueBubblesStatusPanel.d.ts +0 -2
- package/packages/app-core/src/components/connectors/BlueBubblesStatusPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/connectors/BlueBubblesStatusPanel.js +0 -61
- package/packages/app-core/src/components/connectors/ConnectorModeSelector.d.ts +0 -35
- package/packages/app-core/src/components/connectors/ConnectorModeSelector.d.ts.map +0 -1
- package/packages/app-core/src/components/connectors/ConnectorModeSelector.js +0 -150
- package/packages/app-core/src/components/connectors/ConnectorSetupPanel.d.ts +0 -12
- package/packages/app-core/src/components/connectors/ConnectorSetupPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/connectors/ConnectorSetupPanel.js +0 -92
- package/packages/app-core/src/components/connectors/DiscordLocalConnectorPanel.d.ts +0 -2
- package/packages/app-core/src/components/connectors/DiscordLocalConnectorPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/connectors/DiscordLocalConnectorPanel.js +0 -249
- package/packages/app-core/src/components/connectors/IMessageStatusPanel.d.ts +0 -2
- package/packages/app-core/src/components/connectors/IMessageStatusPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/connectors/IMessageStatusPanel.js +0 -63
- package/packages/app-core/src/components/connectors/SignalQrOverlay.d.ts +0 -7
- package/packages/app-core/src/components/connectors/SignalQrOverlay.d.ts.map +0 -1
- package/packages/app-core/src/components/connectors/SignalQrOverlay.js +0 -63
- package/packages/app-core/src/components/connectors/TelegramAccountConnectorPanel.d.ts +0 -2
- package/packages/app-core/src/components/connectors/TelegramAccountConnectorPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/connectors/TelegramAccountConnectorPanel.js +0 -202
- package/packages/app-core/src/components/connectors/TelegramBotSetupPanel.d.ts +0 -2
- package/packages/app-core/src/components/connectors/TelegramBotSetupPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/connectors/TelegramBotSetupPanel.js +0 -81
- package/packages/app-core/src/components/connectors/WhatsAppQrOverlay.d.ts +0 -9
- package/packages/app-core/src/components/connectors/WhatsAppQrOverlay.d.ts.map +0 -1
- package/packages/app-core/src/components/connectors/WhatsAppQrOverlay.js +0 -53
- package/packages/app-core/src/components/conversations/ConversationRenameDialog.d.ts +0 -9
- package/packages/app-core/src/components/conversations/ConversationRenameDialog.d.ts.map +0 -1
- package/packages/app-core/src/components/conversations/ConversationRenameDialog.js +0 -46
- package/packages/app-core/src/components/conversations/ConversationsSidebar.d.ts +0 -9
- package/packages/app-core/src/components/conversations/ConversationsSidebar.d.ts.map +0 -1
- package/packages/app-core/src/components/conversations/ConversationsSidebar.js +0 -557
- package/packages/app-core/src/components/conversations/brand-icons.d.ts +0 -12
- package/packages/app-core/src/components/conversations/brand-icons.d.ts.map +0 -1
- package/packages/app-core/src/components/conversations/brand-icons.js +0 -49
- package/packages/app-core/src/components/conversations/conversation-sidebar-model.d.ts +0 -66
- package/packages/app-core/src/components/conversations/conversation-sidebar-model.d.ts.map +0 -1
- package/packages/app-core/src/components/conversations/conversation-sidebar-model.js +0 -340
- package/packages/app-core/src/components/conversations/conversation-utils.d.ts +0 -9
- package/packages/app-core/src/components/conversations/conversation-utils.d.ts.map +0 -1
- package/packages/app-core/src/components/conversations/conversation-utils.js +0 -142
- package/packages/app-core/src/components/custom-actions/CustomActionEditor.d.ts +0 -10
- package/packages/app-core/src/components/custom-actions/CustomActionEditor.d.ts.map +0 -1
- package/packages/app-core/src/components/custom-actions/CustomActionEditor.js +0 -385
- package/packages/app-core/src/components/custom-actions/CustomActionsPanel.d.ts +0 -9
- package/packages/app-core/src/components/custom-actions/CustomActionsPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/custom-actions/CustomActionsPanel.js +0 -158
- package/packages/app-core/src/components/custom-actions/CustomActionsView.d.ts +0 -2
- package/packages/app-core/src/components/custom-actions/CustomActionsView.d.ts.map +0 -1
- package/packages/app-core/src/components/custom-actions/CustomActionsView.js +0 -144
- package/packages/app-core/src/components/custom-actions/custom-action-form.d.ts +0 -44
- package/packages/app-core/src/components/custom-actions/custom-action-form.d.ts.map +0 -1
- package/packages/app-core/src/components/custom-actions/custom-action-form.js +0 -237
- package/packages/app-core/src/components/index.d.ts +0 -100
- package/packages/app-core/src/components/index.d.ts.map +0 -1
- package/packages/app-core/src/components/index.js +0 -101
- package/packages/app-core/src/components/inventory/ChainIcon.d.ts +0 -9
- package/packages/app-core/src/components/inventory/ChainIcon.d.ts.map +0 -1
- package/packages/app-core/src/components/inventory/ChainIcon.js +0 -58
- package/packages/app-core/src/components/inventory/TokenLogo.d.ts +0 -9
- package/packages/app-core/src/components/inventory/TokenLogo.d.ts.map +0 -1
- package/packages/app-core/src/components/inventory/TokenLogo.js +0 -26
- package/packages/app-core/src/components/inventory/chainConfig.d.ts +0 -89
- package/packages/app-core/src/components/inventory/chainConfig.d.ts.map +0 -1
- package/packages/app-core/src/components/inventory/chainConfig.js +0 -285
- package/packages/app-core/src/components/inventory/constants.d.ts +0 -30
- package/packages/app-core/src/components/inventory/constants.d.ts.map +0 -1
- package/packages/app-core/src/components/inventory/constants.js +0 -57
- package/packages/app-core/src/components/inventory/inventory-chain-filters.d.ts +0 -11
- package/packages/app-core/src/components/inventory/inventory-chain-filters.d.ts.map +0 -1
- package/packages/app-core/src/components/inventory/inventory-chain-filters.js +0 -41
- package/packages/app-core/src/components/inventory/media-url.d.ts +0 -6
- package/packages/app-core/src/components/inventory/media-url.d.ts.map +0 -1
- package/packages/app-core/src/components/inventory/media-url.js +0 -28
- package/packages/app-core/src/components/inventory/useInventoryData.d.ts +0 -38
- package/packages/app-core/src/components/inventory/useInventoryData.d.ts.map +0 -1
- package/packages/app-core/src/components/inventory/useInventoryData.js +0 -278
- package/packages/app-core/src/components/local-inference/ActiveModelBar.d.ts +0 -10
- package/packages/app-core/src/components/local-inference/ActiveModelBar.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/ActiveModelBar.js +0 -19
- package/packages/app-core/src/components/local-inference/DeviceBridgeStatus.d.ts +0 -2
- package/packages/app-core/src/components/local-inference/DeviceBridgeStatus.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/DeviceBridgeStatus.js +0 -39
- package/packages/app-core/src/components/local-inference/DevicesPanel.d.ts +0 -8
- package/packages/app-core/src/components/local-inference/DevicesPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/DevicesPanel.js +0 -44
- package/packages/app-core/src/components/local-inference/DownloadProgress.d.ts +0 -7
- package/packages/app-core/src/components/local-inference/DownloadProgress.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/DownloadProgress.js +0 -8
- package/packages/app-core/src/components/local-inference/DownloadQueue.d.ts +0 -15
- package/packages/app-core/src/components/local-inference/DownloadQueue.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/DownloadQueue.js +0 -21
- package/packages/app-core/src/components/local-inference/FirstRunOffer.d.ts +0 -11
- package/packages/app-core/src/components/local-inference/FirstRunOffer.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/FirstRunOffer.js +0 -49
- package/packages/app-core/src/components/local-inference/HardwareBadge.d.ts +0 -7
- package/packages/app-core/src/components/local-inference/HardwareBadge.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/HardwareBadge.js +0 -10
- package/packages/app-core/src/components/local-inference/HuggingFaceSearch.d.ts +0 -22
- package/packages/app-core/src/components/local-inference/HuggingFaceSearch.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/HuggingFaceSearch.js +0 -68
- package/packages/app-core/src/components/local-inference/LocalInferencePanel.d.ts +0 -5
- package/packages/app-core/src/components/local-inference/LocalInferencePanel.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/LocalInferencePanel.js +0 -225
- package/packages/app-core/src/components/local-inference/ModelCard.d.ts +0 -20
- package/packages/app-core/src/components/local-inference/ModelCard.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/ModelCard.js +0 -21
- package/packages/app-core/src/components/local-inference/ModelHubView.d.ts +0 -18
- package/packages/app-core/src/components/local-inference/ModelHubView.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/ModelHubView.js +0 -40
- package/packages/app-core/src/components/local-inference/ProvidersList.d.ts +0 -2
- package/packages/app-core/src/components/local-inference/ProvidersList.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/ProvidersList.js +0 -51
- package/packages/app-core/src/components/local-inference/RoutingMatrix.d.ts +0 -2
- package/packages/app-core/src/components/local-inference/RoutingMatrix.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/RoutingMatrix.js +0 -108
- package/packages/app-core/src/components/local-inference/SlotAssignments.d.ts +0 -15
- package/packages/app-core/src/components/local-inference/SlotAssignments.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/SlotAssignments.js +0 -58
- package/packages/app-core/src/components/local-inference/hub-utils.d.ts +0 -27
- package/packages/app-core/src/components/local-inference/hub-utils.d.ts.map +0 -1
- package/packages/app-core/src/components/local-inference/hub-utils.js +0 -86
- package/packages/app-core/src/components/onboarding/BootstrapStep.d.ts +0 -35
- package/packages/app-core/src/components/onboarding/BootstrapStep.d.ts.map +0 -1
- package/packages/app-core/src/components/onboarding/BootstrapStep.js +0 -150
- package/packages/app-core/src/components/onboarding/onboarding-form-primitives.d.ts +0 -54
- package/packages/app-core/src/components/onboarding/onboarding-form-primitives.d.ts.map +0 -1
- package/packages/app-core/src/components/onboarding/onboarding-form-primitives.js +0 -55
- package/packages/app-core/src/components/onboarding/onboarding-step-chrome.d.ts +0 -40
- package/packages/app-core/src/components/onboarding/onboarding-step-chrome.d.ts.map +0 -1
- package/packages/app-core/src/components/onboarding/onboarding-step-chrome.js +0 -74
- package/packages/app-core/src/components/pages/AdvancedPageView.d.ts +0 -4
- package/packages/app-core/src/components/pages/AdvancedPageView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/AdvancedPageView.js +0 -72
- package/packages/app-core/src/components/pages/AppDetailsView.d.ts +0 -34
- package/packages/app-core/src/components/pages/AppDetailsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/AppDetailsView.js +0 -350
- package/packages/app-core/src/components/pages/AppsPageView.d.ts +0 -12
- package/packages/app-core/src/components/pages/AppsPageView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/AppsPageView.js +0 -58
- package/packages/app-core/src/components/pages/AppsView.d.ts +0 -3
- package/packages/app-core/src/components/pages/AppsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/AppsView.js +0 -883
- package/packages/app-core/src/components/pages/AutomationsView.d.ts +0 -6
- package/packages/app-core/src/components/pages/AutomationsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/AutomationsView.js +0 -2512
- package/packages/app-core/src/components/pages/BrowserWorkspaceView.d.ts +0 -17
- package/packages/app-core/src/components/pages/BrowserWorkspaceView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/BrowserWorkspaceView.js +0 -1326
- package/packages/app-core/src/components/pages/ChatModalView.d.ts +0 -13
- package/packages/app-core/src/components/pages/ChatModalView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/ChatModalView.js +0 -17
- package/packages/app-core/src/components/pages/ChatView.d.ts +0 -24
- package/packages/app-core/src/components/pages/ChatView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/ChatView.js +0 -534
- package/packages/app-core/src/components/pages/ConfigPageView.d.ts +0 -12
- package/packages/app-core/src/components/pages/ConfigPageView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/ConfigPageView.js +0 -263
- package/packages/app-core/src/components/pages/ConnectorsPageView.d.ts +0 -8
- package/packages/app-core/src/components/pages/ConnectorsPageView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/ConnectorsPageView.js +0 -8
- package/packages/app-core/src/components/pages/DatabasePageView.d.ts +0 -5
- package/packages/app-core/src/components/pages/DatabasePageView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/DatabasePageView.js +0 -33
- package/packages/app-core/src/components/pages/DatabaseView.d.ts +0 -6
- package/packages/app-core/src/components/pages/DatabaseView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/DatabaseView.js +0 -247
- package/packages/app-core/src/components/pages/ElizaCloudDashboard.d.ts +0 -2
- package/packages/app-core/src/components/pages/ElizaCloudDashboard.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/ElizaCloudDashboard.js +0 -380
- package/packages/app-core/src/components/pages/HeartbeatForm.d.ts +0 -56
- package/packages/app-core/src/components/pages/HeartbeatForm.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/HeartbeatForm.js +0 -215
- package/packages/app-core/src/components/pages/HeartbeatsView.d.ts +0 -3
- package/packages/app-core/src/components/pages/HeartbeatsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/HeartbeatsView.js +0 -399
- package/packages/app-core/src/components/pages/InventoryView.d.ts +0 -2
- package/packages/app-core/src/components/pages/InventoryView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/InventoryView.js +0 -837
- package/packages/app-core/src/components/pages/KnowledgeView.d.ts +0 -12
- package/packages/app-core/src/components/pages/KnowledgeView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/KnowledgeView.js +0 -546
- package/packages/app-core/src/components/pages/LogsPageView.d.ts +0 -6
- package/packages/app-core/src/components/pages/LogsPageView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/LogsPageView.js +0 -6
- package/packages/app-core/src/components/pages/LogsView.d.ts +0 -2
- package/packages/app-core/src/components/pages/LogsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/LogsView.js +0 -81
- package/packages/app-core/src/components/pages/MediaGalleryView.d.ts +0 -6
- package/packages/app-core/src/components/pages/MediaGalleryView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/MediaGalleryView.js +0 -273
- package/packages/app-core/src/components/pages/MemoryDetailPanel.d.ts +0 -5
- package/packages/app-core/src/components/pages/MemoryDetailPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/MemoryDetailPanel.js +0 -17
- package/packages/app-core/src/components/pages/MemoryViewerView.d.ts +0 -5
- package/packages/app-core/src/components/pages/MemoryViewerView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/MemoryViewerView.js +0 -234
- package/packages/app-core/src/components/pages/MiladyOsAppsView.d.ts +0 -4
- package/packages/app-core/src/components/pages/MiladyOsAppsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/MiladyOsAppsView.js +0 -618
- package/packages/app-core/src/components/pages/PageScopedChatPane.d.ts +0 -48
- package/packages/app-core/src/components/pages/PageScopedChatPane.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/PageScopedChatPane.js +0 -503
- package/packages/app-core/src/components/pages/PluginCard.d.ts +0 -36
- package/packages/app-core/src/components/pages/PluginCard.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/PluginCard.js +0 -128
- package/packages/app-core/src/components/pages/PluginConfigForm.d.ts +0 -29
- package/packages/app-core/src/components/pages/PluginConfigForm.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/PluginConfigForm.js +0 -133
- package/packages/app-core/src/components/pages/PluginsPageView.d.ts +0 -9
- package/packages/app-core/src/components/pages/PluginsPageView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/PluginsPageView.js +0 -5
- package/packages/app-core/src/components/pages/PluginsView.d.ts +0 -11
- package/packages/app-core/src/components/pages/PluginsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/PluginsView.js +0 -813
- package/packages/app-core/src/components/pages/RelationshipsGraphPanel.d.ts +0 -8
- package/packages/app-core/src/components/pages/RelationshipsGraphPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/RelationshipsGraphPanel.js +0 -696
- package/packages/app-core/src/components/pages/RelationshipsIdentityCluster.d.ts +0 -5
- package/packages/app-core/src/components/pages/RelationshipsIdentityCluster.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/RelationshipsIdentityCluster.js +0 -17
- package/packages/app-core/src/components/pages/RelationshipsView.d.ts +0 -5
- package/packages/app-core/src/components/pages/RelationshipsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/RelationshipsView.js +0 -5
- package/packages/app-core/src/components/pages/ReleaseCenterView.d.ts +0 -2
- package/packages/app-core/src/components/pages/ReleaseCenterView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/ReleaseCenterView.js +0 -216
- package/packages/app-core/src/components/pages/RuntimeView.d.ts +0 -5
- package/packages/app-core/src/components/pages/RuntimeView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/RuntimeView.js +0 -283
- package/packages/app-core/src/components/pages/ScratchpadView.d.ts +0 -2
- package/packages/app-core/src/components/pages/ScratchpadView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/ScratchpadView.js +0 -364
- package/packages/app-core/src/components/pages/SecretsView.d.ts +0 -5
- package/packages/app-core/src/components/pages/SecretsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/SecretsView.js +0 -245
- package/packages/app-core/src/components/pages/SettingsView.d.ts +0 -6
- package/packages/app-core/src/components/pages/SettingsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/SettingsView.js +0 -498
- package/packages/app-core/src/components/pages/SkillsView.d.ts +0 -6
- package/packages/app-core/src/components/pages/SkillsView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/SkillsView.js +0 -205
- package/packages/app-core/src/components/pages/SqlEditorPanel.d.ts +0 -13
- package/packages/app-core/src/components/pages/SqlEditorPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/SqlEditorPanel.js +0 -19
- package/packages/app-core/src/components/pages/StreamView.d.ts +0 -4
- package/packages/app-core/src/components/pages/StreamView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/StreamView.js +0 -113
- package/packages/app-core/src/components/pages/TasksPageView.d.ts +0 -2
- package/packages/app-core/src/components/pages/TasksPageView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/TasksPageView.js +0 -10
- package/packages/app-core/src/components/pages/TrajectoriesView.d.ts +0 -9
- package/packages/app-core/src/components/pages/TrajectoriesView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/TrajectoriesView.js +0 -278
- package/packages/app-core/src/components/pages/TrajectoryDetailView.d.ts +0 -7
- package/packages/app-core/src/components/pages/TrajectoryDetailView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/TrajectoryDetailView.js +0 -173
- package/packages/app-core/src/components/pages/TriggersView.d.ts +0 -3
- package/packages/app-core/src/components/pages/TriggersView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/TriggersView.js +0 -2
- package/packages/app-core/src/components/pages/VectorBrowserView.d.ts +0 -13
- package/packages/app-core/src/components/pages/VectorBrowserView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/VectorBrowserView.js +0 -846
- package/packages/app-core/src/components/pages/WorkflowGraphViewer.d.ts +0 -15
- package/packages/app-core/src/components/pages/WorkflowGraphViewer.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/WorkflowGraphViewer.js +0 -403
- package/packages/app-core/src/components/pages/automation-conversations.d.ts +0 -16
- package/packages/app-core/src/components/pages/automation-conversations.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/automation-conversations.js +0 -204
- package/packages/app-core/src/components/pages/chat-view-hooks.d.ts +0 -63
- package/packages/app-core/src/components/pages/chat-view-hooks.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/chat-view-hooks.js +0 -531
- package/packages/app-core/src/components/pages/cloud-dashboard-utils.d.ts +0 -91
- package/packages/app-core/src/components/pages/cloud-dashboard-utils.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/cloud-dashboard-utils.js +0 -284
- package/packages/app-core/src/components/pages/config-page-sections.d.ts +0 -86
- package/packages/app-core/src/components/pages/config-page-sections.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/config-page-sections.js +0 -205
- package/packages/app-core/src/components/pages/database-utils.d.ts +0 -30
- package/packages/app-core/src/components/pages/database-utils.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/database-utils.js +0 -133
- package/packages/app-core/src/components/pages/heartbeat-utils.d.ts +0 -105
- package/packages/app-core/src/components/pages/heartbeat-utils.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/heartbeat-utils.js +0 -368
- package/packages/app-core/src/components/pages/knowledge-detail.d.ts +0 -9
- package/packages/app-core/src/components/pages/knowledge-detail.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/knowledge-detail.js +0 -149
- package/packages/app-core/src/components/pages/knowledge-upload.d.ts +0 -27
- package/packages/app-core/src/components/pages/knowledge-upload.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/knowledge-upload.js +0 -125
- package/packages/app-core/src/components/pages/page-scoped-conversations.d.ts +0 -62
- package/packages/app-core/src/components/pages/page-scoped-conversations.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/page-scoped-conversations.js +0 -266
- package/packages/app-core/src/components/pages/plugin-list-utils.d.ts +0 -67
- package/packages/app-core/src/components/pages/plugin-list-utils.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/plugin-list-utils.js +0 -665
- package/packages/app-core/src/components/pages/plugin-view-connectors.d.ts +0 -57
- package/packages/app-core/src/components/pages/plugin-view-connectors.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/plugin-view-connectors.js +0 -275
- package/packages/app-core/src/components/pages/plugin-view-dialogs.d.ts +0 -36
- package/packages/app-core/src/components/pages/plugin-view-dialogs.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/plugin-view-dialogs.js +0 -63
- package/packages/app-core/src/components/pages/plugin-view-modal.d.ts +0 -34
- package/packages/app-core/src/components/pages/plugin-view-modal.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/plugin-view-modal.js +0 -29
- package/packages/app-core/src/components/pages/plugin-view-sidebar.d.ts +0 -36
- package/packages/app-core/src/components/pages/plugin-view-sidebar.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/plugin-view-sidebar.js +0 -42
- package/packages/app-core/src/components/pages/relationships/RelationshipsActivityFeed.d.ts +0 -2
- package/packages/app-core/src/components/pages/relationships/RelationshipsActivityFeed.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/relationships/RelationshipsActivityFeed.js +0 -85
- package/packages/app-core/src/components/pages/relationships/RelationshipsCandidateMergesPanel.d.ts +0 -6
- package/packages/app-core/src/components/pages/relationships/RelationshipsCandidateMergesPanel.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/relationships/RelationshipsCandidateMergesPanel.js +0 -73
- package/packages/app-core/src/components/pages/relationships/RelationshipsPersonPanels.d.ts +0 -27
- package/packages/app-core/src/components/pages/relationships/RelationshipsPersonPanels.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/relationships/RelationshipsPersonPanels.js +0 -241
- package/packages/app-core/src/components/pages/relationships/RelationshipsSidebar.d.ts +0 -10
- package/packages/app-core/src/components/pages/relationships/RelationshipsSidebar.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/relationships/RelationshipsSidebar.js +0 -16
- package/packages/app-core/src/components/pages/relationships/RelationshipsWorkspaceView.d.ts +0 -7
- package/packages/app-core/src/components/pages/relationships/RelationshipsWorkspaceView.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/relationships/RelationshipsWorkspaceView.js +0 -130
- package/packages/app-core/src/components/pages/relationships/relationships-utils.d.ts +0 -16
- package/packages/app-core/src/components/pages/relationships/relationships-utils.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/relationships/relationships-utils.js +0 -105
- package/packages/app-core/src/components/pages/settings/IdentitySettingsSection.d.ts +0 -2
- package/packages/app-core/src/components/pages/settings/IdentitySettingsSection.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/settings/IdentitySettingsSection.js +0 -310
- package/packages/app-core/src/components/pages/skill-detail-panel.d.ts +0 -13
- package/packages/app-core/src/components/pages/skill-detail-panel.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/skill-detail-panel.js +0 -161
- package/packages/app-core/src/components/pages/skill-marketplace.d.ts +0 -38
- package/packages/app-core/src/components/pages/skill-marketplace.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/skill-marketplace.js +0 -114
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.d.ts +0 -43
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.js +0 -362
- package/packages/app-core/src/components/pages/vector-browser-utils.d.ts +0 -2
- package/packages/app-core/src/components/pages/vector-browser-utils.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/vector-browser-utils.js +0 -1
- package/packages/app-core/src/components/pages/workflow-graph-events.d.ts +0 -6
- package/packages/app-core/src/components/pages/workflow-graph-events.d.ts.map +0 -1
- package/packages/app-core/src/components/pages/workflow-graph-events.js +0 -7
- package/packages/app-core/src/components/permissions/PermissionIcon.d.ts +0 -4
- package/packages/app-core/src/components/permissions/PermissionIcon.d.ts.map +0 -1
- package/packages/app-core/src/components/permissions/PermissionIcon.js +0 -13
- package/packages/app-core/src/components/permissions/StreamingPermissions.d.ts +0 -21
- package/packages/app-core/src/components/permissions/StreamingPermissions.d.ts.map +0 -1
- package/packages/app-core/src/components/permissions/StreamingPermissions.js +0 -284
- package/packages/app-core/src/components/phone-companion/Chat.d.ts +0 -15
- package/packages/app-core/src/components/phone-companion/Chat.d.ts.map +0 -1
- package/packages/app-core/src/components/phone-companion/Chat.js +0 -76
- package/packages/app-core/src/components/phone-companion/Pairing.d.ts +0 -9
- package/packages/app-core/src/components/phone-companion/Pairing.d.ts.map +0 -1
- package/packages/app-core/src/components/phone-companion/Pairing.js +0 -124
- package/packages/app-core/src/components/phone-companion/PhoneCompanionApp.d.ts +0 -9
- package/packages/app-core/src/components/phone-companion/PhoneCompanionApp.d.ts.map +0 -1
- package/packages/app-core/src/components/phone-companion/PhoneCompanionApp.js +0 -108
- package/packages/app-core/src/components/phone-companion/RemoteSession.d.ts +0 -9
- package/packages/app-core/src/components/phone-companion/RemoteSession.d.ts.map +0 -1
- package/packages/app-core/src/components/phone-companion/RemoteSession.js +0 -364
- package/packages/app-core/src/components/phone-companion/index.d.ts +0 -5
- package/packages/app-core/src/components/phone-companion/index.d.ts.map +0 -1
- package/packages/app-core/src/components/phone-companion/index.js +0 -4
- package/packages/app-core/src/components/plugins/showcase-data.d.ts +0 -4
- package/packages/app-core/src/components/plugins/showcase-data.d.ts.map +0 -1
- package/packages/app-core/src/components/plugins/showcase-data.js +0 -461
- package/packages/app-core/src/components/policy-controls/ApprovedAddressesSection.d.ts +0 -7
- package/packages/app-core/src/components/policy-controls/ApprovedAddressesSection.d.ts.map +0 -1
- package/packages/app-core/src/components/policy-controls/ApprovedAddressesSection.js +0 -74
- package/packages/app-core/src/components/policy-controls/AutoApproveSection.d.ts +0 -7
- package/packages/app-core/src/components/policy-controls/AutoApproveSection.d.ts.map +0 -1
- package/packages/app-core/src/components/policy-controls/AutoApproveSection.js +0 -14
- package/packages/app-core/src/components/policy-controls/PolicyToggle.d.ts +0 -15
- package/packages/app-core/src/components/policy-controls/PolicyToggle.d.ts.map +0 -1
- package/packages/app-core/src/components/policy-controls/PolicyToggle.js +0 -12
- package/packages/app-core/src/components/policy-controls/RateLimitSection.d.ts +0 -7
- package/packages/app-core/src/components/policy-controls/RateLimitSection.d.ts.map +0 -1
- package/packages/app-core/src/components/policy-controls/RateLimitSection.js +0 -11
- package/packages/app-core/src/components/policy-controls/SpendingLimitSection.d.ts +0 -7
- package/packages/app-core/src/components/policy-controls/SpendingLimitSection.d.ts.map +0 -1
- package/packages/app-core/src/components/policy-controls/SpendingLimitSection.js +0 -15
- package/packages/app-core/src/components/policy-controls/TimeWindowSection.d.ts +0 -7
- package/packages/app-core/src/components/policy-controls/TimeWindowSection.d.ts.map +0 -1
- package/packages/app-core/src/components/policy-controls/TimeWindowSection.js +0 -40
- package/packages/app-core/src/components/policy-controls/constants.d.ts +0 -11
- package/packages/app-core/src/components/policy-controls/constants.d.ts.map +0 -1
- package/packages/app-core/src/components/policy-controls/constants.js +0 -41
- package/packages/app-core/src/components/policy-controls/helpers.d.ts +0 -13
- package/packages/app-core/src/components/policy-controls/helpers.d.ts.map +0 -1
- package/packages/app-core/src/components/policy-controls/helpers.js +0 -43
- package/packages/app-core/src/components/policy-controls/index.d.ts +0 -10
- package/packages/app-core/src/components/policy-controls/index.d.ts.map +0 -1
- package/packages/app-core/src/components/policy-controls/index.js +0 -9
- package/packages/app-core/src/components/policy-controls/types.d.ts +0 -58
- package/packages/app-core/src/components/policy-controls/types.d.ts.map +0 -1
- package/packages/app-core/src/components/policy-controls/types.js +0 -7
- package/packages/app-core/src/components/release-center/shared.d.ts +0 -13
- package/packages/app-core/src/components/release-center/shared.d.ts.map +0 -1
- package/packages/app-core/src/components/release-center/shared.js +0 -38
- package/packages/app-core/src/components/release-center/types.d.ts +0 -79
- package/packages/app-core/src/components/release-center/types.d.ts.map +0 -1
- package/packages/app-core/src/components/release-center/types.js +0 -5
- package/packages/app-core/src/components/settings/ApiKeyConfig.d.ts +0 -21
- package/packages/app-core/src/components/settings/ApiKeyConfig.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/ApiKeyConfig.js +0 -111
- package/packages/app-core/src/components/settings/AppearanceSettingsSection.d.ts +0 -2
- package/packages/app-core/src/components/settings/AppearanceSettingsSection.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/AppearanceSettingsSection.js +0 -253
- package/packages/app-core/src/components/settings/AppsManagementSection.d.ts +0 -12
- package/packages/app-core/src/components/settings/AppsManagementSection.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/AppsManagementSection.js +0 -285
- package/packages/app-core/src/components/settings/CapabilitiesSection.d.ts +0 -2
- package/packages/app-core/src/components/settings/CapabilitiesSection.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/CapabilitiesSection.js +0 -97
- package/packages/app-core/src/components/settings/DesktopWorkspaceSection.d.ts +0 -7
- package/packages/app-core/src/components/settings/DesktopWorkspaceSection.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/DesktopWorkspaceSection.js +0 -502
- package/packages/app-core/src/components/settings/PermissionsSection.d.ts +0 -8
- package/packages/app-core/src/components/settings/PermissionsSection.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/PermissionsSection.js +0 -310
- package/packages/app-core/src/components/settings/PolicyControlsView.d.ts +0 -2
- package/packages/app-core/src/components/settings/PolicyControlsView.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/PolicyControlsView.js +0 -231
- package/packages/app-core/src/components/settings/ProviderSwitcher.d.ts +0 -22
- package/packages/app-core/src/components/settings/ProviderSwitcher.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/ProviderSwitcher.js +0 -618
- package/packages/app-core/src/components/settings/SecuritySettingsSection.d.ts +0 -2
- package/packages/app-core/src/components/settings/SecuritySettingsSection.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/SecuritySettingsSection.js +0 -381
- package/packages/app-core/src/components/settings/SubscriptionStatus.d.ts +0 -28
- package/packages/app-core/src/components/settings/SubscriptionStatus.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/SubscriptionStatus.js +0 -266
- package/packages/app-core/src/components/settings/VoiceConfigView.d.ts +0 -5
- package/packages/app-core/src/components/settings/VoiceConfigView.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/VoiceConfigView.js +0 -505
- package/packages/app-core/src/components/settings/cloud-model-schema.d.ts +0 -26
- package/packages/app-core/src/components/settings/cloud-model-schema.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/cloud-model-schema.js +0 -103
- package/packages/app-core/src/components/settings/permission-controls.d.ts +0 -37
- package/packages/app-core/src/components/settings/permission-controls.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/permission-controls.js +0 -437
- package/packages/app-core/src/components/settings/permission-types.d.ts +0 -44
- package/packages/app-core/src/components/settings/permission-types.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/permission-types.js +0 -215
- package/packages/app-core/src/components/settings/settings-control-primitives.d.ts +0 -11
- package/packages/app-core/src/components/settings/settings-control-primitives.d.ts.map +0 -1
- package/packages/app-core/src/components/settings/settings-control-primitives.js +0 -14
- package/packages/app-core/src/components/shared/AppPageSidebar.d.ts +0 -12
- package/packages/app-core/src/components/shared/AppPageSidebar.d.ts.map +0 -1
- package/packages/app-core/src/components/shared/AppPageSidebar.js +0 -119
- package/packages/app-core/src/components/shared/CollapsibleSidebarSection.d.ts +0 -19
- package/packages/app-core/src/components/shared/CollapsibleSidebarSection.d.ts.map +0 -1
- package/packages/app-core/src/components/shared/CollapsibleSidebarSection.js +0 -12
- package/packages/app-core/src/components/shared/LanguageDropdown.d.ts +0 -24
- package/packages/app-core/src/components/shared/LanguageDropdown.d.ts.map +0 -1
- package/packages/app-core/src/components/shared/LanguageDropdown.js +0 -37
- package/packages/app-core/src/components/shared/ThemeToggle.d.ts +0 -14
- package/packages/app-core/src/components/shared/ThemeToggle.d.ts.map +0 -1
- package/packages/app-core/src/components/shared/ThemeToggle.js +0 -14
- package/packages/app-core/src/components/shared/confirm-delete-control.d.ts +0 -19
- package/packages/app-core/src/components/shared/confirm-delete-control.d.ts.map +0 -1
- package/packages/app-core/src/components/shared/confirm-delete-control.js +0 -19
- package/packages/app-core/src/components/shell/BugReportModal.d.ts +0 -2
- package/packages/app-core/src/components/shell/BugReportModal.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/BugReportModal.js +0 -366
- package/packages/app-core/src/components/shell/CommandPalette.d.ts +0 -2
- package/packages/app-core/src/components/shell/CommandPalette.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/CommandPalette.js +0 -185
- package/packages/app-core/src/components/shell/ComputerUseApprovalOverlay.d.ts +0 -2
- package/packages/app-core/src/components/shell/ComputerUseApprovalOverlay.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/ComputerUseApprovalOverlay.js +0 -171
- package/packages/app-core/src/components/shell/ConnectionFailedBanner.d.ts +0 -6
- package/packages/app-core/src/components/shell/ConnectionFailedBanner.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/ConnectionFailedBanner.js +0 -23
- package/packages/app-core/src/components/shell/ConnectionLostOverlay.d.ts +0 -2
- package/packages/app-core/src/components/shell/ConnectionLostOverlay.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/ConnectionLostOverlay.js +0 -49
- package/packages/app-core/src/components/shell/Header.d.ts +0 -13
- package/packages/app-core/src/components/shell/Header.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/Header.js +0 -298
- package/packages/app-core/src/components/shell/LoadingScreen.d.ts +0 -13
- package/packages/app-core/src/components/shell/LoadingScreen.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/LoadingScreen.js +0 -86
- package/packages/app-core/src/components/shell/PairingView.d.ts +0 -2
- package/packages/app-core/src/components/shell/PairingView.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/PairingView.js +0 -41
- package/packages/app-core/src/components/shell/RestartBanner.d.ts +0 -2
- package/packages/app-core/src/components/shell/RestartBanner.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/RestartBanner.js +0 -39
- package/packages/app-core/src/components/shell/RuntimeGate.d.ts +0 -22
- package/packages/app-core/src/components/shell/RuntimeGate.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/RuntimeGate.js +0 -640
- package/packages/app-core/src/components/shell/ShellHeaderControls.d.ts +0 -44
- package/packages/app-core/src/components/shell/ShellHeaderControls.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/ShellHeaderControls.js +0 -80
- package/packages/app-core/src/components/shell/ShellOverlays.d.ts +0 -5
- package/packages/app-core/src/components/shell/ShellOverlays.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/ShellOverlays.js +0 -15
- package/packages/app-core/src/components/shell/ShortcutsOverlay.d.ts +0 -2
- package/packages/app-core/src/components/shell/ShortcutsOverlay.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/ShortcutsOverlay.js +0 -58
- package/packages/app-core/src/components/shell/StartupFailureView.d.ts +0 -8
- package/packages/app-core/src/components/shell/StartupFailureView.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/StartupFailureView.js +0 -148
- package/packages/app-core/src/components/shell/StartupShell.d.ts +0 -12
- package/packages/app-core/src/components/shell/StartupShell.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/StartupShell.js +0 -230
- package/packages/app-core/src/components/shell/SystemWarningBanner.d.ts +0 -6
- package/packages/app-core/src/components/shell/SystemWarningBanner.d.ts.map +0 -1
- package/packages/app-core/src/components/shell/SystemWarningBanner.js +0 -44
- package/packages/app-core/src/components/steward/injected.d.ts +0 -5
- package/packages/app-core/src/components/steward/injected.d.ts.map +0 -1
- package/packages/app-core/src/components/steward/injected.js +0 -14
- package/packages/app-core/src/components/stream/StatusBar.d.ts +0 -10
- package/packages/app-core/src/components/stream/StatusBar.d.ts.map +0 -1
- package/packages/app-core/src/components/stream/StatusBar.js +0 -65
- package/packages/app-core/src/components/stream/helpers.d.ts +0 -15
- package/packages/app-core/src/components/stream/helpers.d.ts.map +0 -1
- package/packages/app-core/src/components/stream/helpers.js +0 -16
- package/packages/app-core/src/components/training/injected.d.ts +0 -3
- package/packages/app-core/src/components/training/injected.d.ts.map +0 -1
- package/packages/app-core/src/components/training/injected.js +0 -6
- package/packages/app-core/src/components/workspace/AppWorkspaceChrome.d.ts +0 -62
- package/packages/app-core/src/components/workspace/AppWorkspaceChrome.d.ts.map +0 -1
- package/packages/app-core/src/components/workspace/AppWorkspaceChrome.js +0 -220
- package/packages/app-core/src/config/app-config.d.ts +0 -121
- package/packages/app-core/src/config/app-config.d.ts.map +0 -1
- package/packages/app-core/src/config/app-config.js +0 -31
- package/packages/app-core/src/config/boot-config-react.d.ts +0 -5
- package/packages/app-core/src/config/boot-config-react.d.ts.map +0 -1
- package/packages/app-core/src/config/boot-config-react.js +0 -7
- package/packages/app-core/src/config/cloud-only.d.ts +0 -6
- package/packages/app-core/src/config/cloud-only.d.ts.map +0 -1
- package/packages/app-core/src/config/cloud-only.js +0 -15
- package/packages/app-core/src/config/config-catalog.d.ts +0 -376
- package/packages/app-core/src/config/config-catalog.d.ts.map +0 -1
- package/packages/app-core/src/config/config-catalog.js +0 -732
- package/packages/app-core/src/config/index.d.ts +0 -12
- package/packages/app-core/src/config/index.d.ts.map +0 -1
- package/packages/app-core/src/config/index.js +0 -11
- package/packages/app-core/src/config/plugin-auto-enable.d.ts +0 -5
- package/packages/app-core/src/config/plugin-auto-enable.d.ts.map +0 -1
- package/packages/app-core/src/config/plugin-auto-enable.js +0 -47
- package/packages/app-core/src/config/plugin-ui-spec.d.ts +0 -42
- package/packages/app-core/src/config/plugin-ui-spec.d.ts.map +0 -1
- package/packages/app-core/src/config/plugin-ui-spec.js +0 -256
- package/packages/app-core/src/config/ui-spec.d.ts +0 -164
- package/packages/app-core/src/config/ui-spec.d.ts.map +0 -1
- package/packages/app-core/src/config/ui-spec.js +0 -13
- package/packages/app-core/src/config/wechat-config.d.ts +0 -3
- package/packages/app-core/src/config/wechat-config.d.ts.map +0 -1
- package/packages/app-core/src/config/wechat-config.js +0 -21
- package/packages/app-core/src/content-packs/apply-pack.d.ts +0 -33
- package/packages/app-core/src/content-packs/apply-pack.d.ts.map +0 -1
- package/packages/app-core/src/content-packs/apply-pack.js +0 -96
- package/packages/app-core/src/content-packs/bundled-packs.d.ts +0 -14
- package/packages/app-core/src/content-packs/bundled-packs.d.ts.map +0 -1
- package/packages/app-core/src/content-packs/bundled-packs.js +0 -106
- package/packages/app-core/src/content-packs/index.d.ts +0 -4
- package/packages/app-core/src/content-packs/index.d.ts.map +0 -1
- package/packages/app-core/src/content-packs/index.js +0 -3
- package/packages/app-core/src/content-packs/load-pack.d.ts +0 -34
- package/packages/app-core/src/content-packs/load-pack.d.ts.map +0 -1
- package/packages/app-core/src/content-packs/load-pack.js +0 -151
- package/packages/app-core/src/events/index.d.ts +0 -62
- package/packages/app-core/src/events/index.d.ts.map +0 -1
- package/packages/app-core/src/events/index.js +0 -51
- package/packages/app-core/src/hooks/index.d.ts +0 -14
- package/packages/app-core/src/hooks/index.d.ts.map +0 -1
- package/packages/app-core/src/hooks/index.js +0 -13
- package/packages/app-core/src/hooks/useAccounts.d.ts +0 -41
- package/packages/app-core/src/hooks/useAccounts.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useAccounts.js +0 -250
- package/packages/app-core/src/hooks/useActivityEvents.d.ts +0 -20
- package/packages/app-core/src/hooks/useActivityEvents.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useActivityEvents.js +0 -126
- package/packages/app-core/src/hooks/useAuthStatus.d.ts +0 -49
- package/packages/app-core/src/hooks/useAuthStatus.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useAuthStatus.js +0 -90
- package/packages/app-core/src/hooks/useBugReport.d.ts +0 -26
- package/packages/app-core/src/hooks/useBugReport.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useBugReport.js +0 -28
- package/packages/app-core/src/hooks/useCanvasWindow.d.ts +0 -38
- package/packages/app-core/src/hooks/useCanvasWindow.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useCanvasWindow.js +0 -277
- package/packages/app-core/src/hooks/useChatAvatarVoiceBridge.d.ts +0 -12
- package/packages/app-core/src/hooks/useChatAvatarVoiceBridge.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useChatAvatarVoiceBridge.js +0 -21
- package/packages/app-core/src/hooks/useContextMenu.d.ts +0 -17
- package/packages/app-core/src/hooks/useContextMenu.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useContextMenu.js +0 -142
- package/packages/app-core/src/hooks/useKeyboardShortcuts.d.ts +0 -5
- package/packages/app-core/src/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useKeyboardShortcuts.js +0 -32
- package/packages/app-core/src/hooks/useMediaQuery.d.ts +0 -4
- package/packages/app-core/src/hooks/useMediaQuery.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useMediaQuery.js +0 -30
- package/packages/app-core/src/hooks/useMusicPlayer.d.ts +0 -54
- package/packages/app-core/src/hooks/useMusicPlayer.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useMusicPlayer.js +0 -117
- package/packages/app-core/src/hooks/useRenderGuard.d.ts +0 -17
- package/packages/app-core/src/hooks/useRenderGuard.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useRenderGuard.js +0 -36
- package/packages/app-core/src/hooks/useSignalPairing.d.ts +0 -12
- package/packages/app-core/src/hooks/useSignalPairing.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useSignalPairing.js +0 -129
- package/packages/app-core/src/hooks/useStreamPopoutNavigation.d.ts +0 -3
- package/packages/app-core/src/hooks/useStreamPopoutNavigation.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useStreamPopoutNavigation.js +0 -4
- package/packages/app-core/src/hooks/useVoiceChat.d.ts +0 -37
- package/packages/app-core/src/hooks/useVoiceChat.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useVoiceChat.js +0 -1310
- package/packages/app-core/src/hooks/useWhatsAppPairing.d.ts +0 -12
- package/packages/app-core/src/hooks/useWhatsAppPairing.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useWhatsAppPairing.js +0 -95
- package/packages/app-core/src/hooks/useWorkflowGenerationState.d.ts +0 -23
- package/packages/app-core/src/hooks/useWorkflowGenerationState.d.ts.map +0 -1
- package/packages/app-core/src/hooks/useWorkflowGenerationState.js +0 -46
- package/packages/app-core/src/hooks/voice-chat-playback.d.ts +0 -32
- package/packages/app-core/src/hooks/voice-chat-playback.d.ts.map +0 -1
- package/packages/app-core/src/hooks/voice-chat-playback.js +0 -203
- package/packages/app-core/src/hooks/voice-chat-recording.d.ts +0 -6
- package/packages/app-core/src/hooks/voice-chat-recording.d.ts.map +0 -1
- package/packages/app-core/src/hooks/voice-chat-recording.js +0 -46
- package/packages/app-core/src/hooks/voice-chat-types.d.ts +0 -193
- package/packages/app-core/src/hooks/voice-chat-types.d.ts.map +0 -1
- package/packages/app-core/src/hooks/voice-chat-types.js +0 -185
- package/packages/app-core/src/i18n/index.d.ts +0 -7
- package/packages/app-core/src/i18n/index.d.ts.map +0 -1
- package/packages/app-core/src/i18n/index.js +0 -57
- package/packages/app-core/src/i18n/locales/en.json +0 -3231
- package/packages/app-core/src/i18n/locales/es.json +0 -3231
- package/packages/app-core/src/i18n/locales/ko.json +0 -3231
- package/packages/app-core/src/i18n/locales/pt.json +0 -3231
- package/packages/app-core/src/i18n/locales/tl.json +0 -3231
- package/packages/app-core/src/i18n/locales/vi.json +0 -3231
- package/packages/app-core/src/i18n/locales/zh-CN.json +0 -3231
- package/packages/app-core/src/i18n/messages.d.ts +0 -6
- package/packages/app-core/src/i18n/messages.d.ts.map +0 -1
- package/packages/app-core/src/i18n/messages.js +0 -26
- package/packages/app-core/src/index.d.ts +0 -54
- package/packages/app-core/src/index.d.ts.map +0 -1
- package/packages/app-core/src/index.js +0 -50
- package/packages/app-core/src/onboarding/flow.d.ts +0 -66
- package/packages/app-core/src/onboarding/flow.d.ts.map +0 -1
- package/packages/app-core/src/onboarding/flow.js +0 -100
- package/packages/app-core/src/onboarding/mobile-runtime-mode.d.ts +0 -8
- package/packages/app-core/src/onboarding/mobile-runtime-mode.d.ts.map +0 -1
- package/packages/app-core/src/onboarding/mobile-runtime-mode.js +0 -57
- package/packages/app-core/src/onboarding/probe-local-agent.d.ts +0 -44
- package/packages/app-core/src/onboarding/probe-local-agent.d.ts.map +0 -1
- package/packages/app-core/src/onboarding/probe-local-agent.js +0 -126
- package/packages/app-core/src/onboarding/server-target.d.ts +0 -4
- package/packages/app-core/src/onboarding/server-target.d.ts.map +0 -1
- package/packages/app-core/src/onboarding/server-target.js +0 -13
- package/packages/app-core/src/onboarding-config.d.ts +0 -61
- package/packages/app-core/src/onboarding-config.d.ts.map +0 -1
- package/packages/app-core/src/onboarding-config.js +0 -172
- package/packages/app-core/src/platform/browser-launch.d.ts +0 -10
- package/packages/app-core/src/platform/browser-launch.d.ts.map +0 -1
- package/packages/app-core/src/platform/browser-launch.js +0 -147
- package/packages/app-core/src/platform/cloud-preference-patch.d.ts +0 -11
- package/packages/app-core/src/platform/cloud-preference-patch.d.ts.map +0 -1
- package/packages/app-core/src/platform/cloud-preference-patch.js +0 -85
- package/packages/app-core/src/platform/desktop-permissions-client.d.ts +0 -3
- package/packages/app-core/src/platform/desktop-permissions-client.d.ts.map +0 -1
- package/packages/app-core/src/platform/desktop-permissions-client.js +0 -128
- package/packages/app-core/src/platform/index.d.ts +0 -15
- package/packages/app-core/src/platform/index.d.ts.map +0 -1
- package/packages/app-core/src/platform/index.js +0 -23
- package/packages/app-core/src/platform/init.d.ts +0 -46
- package/packages/app-core/src/platform/init.d.ts.map +0 -1
- package/packages/app-core/src/platform/init.js +0 -169
- package/packages/app-core/src/platform/is-native-server.d.ts +0 -14
- package/packages/app-core/src/platform/is-native-server.d.ts.map +0 -1
- package/packages/app-core/src/platform/is-native-server.js +0 -16
- package/packages/app-core/src/platform/onboarding-reset.d.ts +0 -11
- package/packages/app-core/src/platform/onboarding-reset.d.ts.map +0 -1
- package/packages/app-core/src/platform/onboarding-reset.js +0 -127
- package/packages/app-core/src/platform/types.d.ts +0 -28
- package/packages/app-core/src/platform/types.d.ts.map +0 -1
- package/packages/app-core/src/platform/types.js +0 -1
- package/packages/app-core/src/platform/window-shell.d.ts +0 -28
- package/packages/app-core/src/platform/window-shell.d.ts.map +0 -1
- package/packages/app-core/src/platform/window-shell.js +0 -73
- package/packages/app-core/src/providers/index.d.ts +0 -26
- package/packages/app-core/src/providers/index.d.ts.map +0 -1
- package/packages/app-core/src/providers/index.js +0 -107
- package/packages/app-core/src/runtime/channel-plugin-map.d.ts +0 -6
- package/packages/app-core/src/runtime/channel-plugin-map.d.ts.map +0 -1
- package/packages/app-core/src/runtime/channel-plugin-map.js +0 -10
- package/packages/app-core/src/security/agent-vault-id.d.ts +0 -14
- package/packages/app-core/src/security/agent-vault-id.d.ts.map +0 -1
- package/packages/app-core/src/security/agent-vault-id.js +0 -32
- package/packages/app-core/src/security/platform-secure-store-node.d.ts +0 -15
- package/packages/app-core/src/security/platform-secure-store-node.d.ts.map +0 -1
- package/packages/app-core/src/security/platform-secure-store-node.js +0 -296
- package/packages/app-core/src/security/platform-secure-store.d.ts +0 -47
- package/packages/app-core/src/security/platform-secure-store.d.ts.map +0 -1
- package/packages/app-core/src/security/platform-secure-store.js +0 -10
- package/packages/app-core/src/services/account-pool.d.ts +0 -98
- package/packages/app-core/src/services/account-pool.d.ts.map +0 -1
- package/packages/app-core/src/services/account-pool.js +0 -506
- package/packages/app-core/src/services/account-usage.d.ts +0 -75
- package/packages/app-core/src/services/account-usage.d.ts.map +0 -1
- package/packages/app-core/src/services/account-usage.js +0 -179
- package/packages/app-core/src/services/auth-store.d.ts +0 -185
- package/packages/app-core/src/services/auth-store.d.ts.map +0 -1
- package/packages/app-core/src/services/auth-store.js +0 -418
- package/packages/app-core/src/services/cloud-jwks-store.d.ts +0 -62
- package/packages/app-core/src/services/cloud-jwks-store.d.ts.map +0 -1
- package/packages/app-core/src/services/cloud-jwks-store.js +0 -118
- package/packages/app-core/src/services/local-inference/active-model.d.ts +0 -59
- package/packages/app-core/src/services/local-inference/active-model.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/active-model.js +0 -120
- package/packages/app-core/src/services/local-inference/device-bridge.d.ts +0 -131
- package/packages/app-core/src/services/local-inference/device-bridge.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/device-bridge.js +0 -748
- package/packages/app-core/src/services/local-inference/engine.d.ts +0 -52
- package/packages/app-core/src/services/local-inference/engine.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/engine.js +0 -138
- package/packages/app-core/src/services/local-inference/external-scanner.d.ts +0 -17
- package/packages/app-core/src/services/local-inference/external-scanner.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/external-scanner.js +0 -261
- package/packages/app-core/src/services/local-inference/handler-registry.d.ts +0 -72
- package/packages/app-core/src/services/local-inference/handler-registry.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/handler-registry.js +0 -160
- package/packages/app-core/src/services/local-inference/hardware.d.ts +0 -26
- package/packages/app-core/src/services/local-inference/hardware.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/hardware.js +0 -139
- package/packages/app-core/src/services/local-inference/paths.d.ts +0 -24
- package/packages/app-core/src/services/local-inference/paths.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/paths.js +0 -41
- package/packages/app-core/src/services/local-inference/providers.d.ts +0 -61
- package/packages/app-core/src/services/local-inference/providers.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/providers.js +0 -277
- package/packages/app-core/src/services/local-inference/registry.d.ts +0 -35
- package/packages/app-core/src/services/local-inference/registry.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/registry.js +0 -108
- package/packages/app-core/src/services/local-inference/routing-preferences.d.ts +0 -31
- package/packages/app-core/src/services/local-inference/routing-preferences.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/routing-preferences.js +0 -72
- package/packages/app-core/src/services/local-inference/types.d.ts +0 -121
- package/packages/app-core/src/services/local-inference/types.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/types.js +0 -14
- package/packages/app-core/src/services/local-inference/verify.d.ts +0 -39
- package/packages/app-core/src/services/local-inference/verify.d.ts.map +0 -1
- package/packages/app-core/src/services/local-inference/verify.js +0 -104
- package/packages/app-core/src/services/phone-companion/env.d.ts +0 -11
- package/packages/app-core/src/services/phone-companion/env.d.ts.map +0 -1
- package/packages/app-core/src/services/phone-companion/env.js +0 -21
- package/packages/app-core/src/services/phone-companion/index.d.ts +0 -14
- package/packages/app-core/src/services/phone-companion/index.d.ts.map +0 -1
- package/packages/app-core/src/services/phone-companion/index.js +0 -13
- package/packages/app-core/src/services/phone-companion/logger.d.ts +0 -14
- package/packages/app-core/src/services/phone-companion/logger.d.ts.map +0 -1
- package/packages/app-core/src/services/phone-companion/logger.js +0 -57
- package/packages/app-core/src/services/phone-companion/milady-intent.d.ts +0 -63
- package/packages/app-core/src/services/phone-companion/milady-intent.d.ts.map +0 -1
- package/packages/app-core/src/services/phone-companion/milady-intent.js +0 -50
- package/packages/app-core/src/services/phone-companion/navigation.d.ts +0 -17
- package/packages/app-core/src/services/phone-companion/navigation.d.ts.map +0 -1
- package/packages/app-core/src/services/phone-companion/navigation.js +0 -99
- package/packages/app-core/src/services/phone-companion/push.d.ts +0 -27
- package/packages/app-core/src/services/phone-companion/push.d.ts.map +0 -1
- package/packages/app-core/src/services/phone-companion/push.js +0 -80
- package/packages/app-core/src/services/phone-companion/session-client.d.ts +0 -114
- package/packages/app-core/src/services/phone-companion/session-client.d.ts.map +0 -1
- package/packages/app-core/src/services/phone-companion/session-client.js +0 -211
- package/packages/app-core/src/shell/AppWindowRenderer.d.ts +0 -17
- package/packages/app-core/src/shell/AppWindowRenderer.d.ts.map +0 -1
- package/packages/app-core/src/shell/AppWindowRenderer.js +0 -319
- package/packages/app-core/src/shell/DesktopOnboardingRuntime.d.ts +0 -9
- package/packages/app-core/src/shell/DesktopOnboardingRuntime.d.ts.map +0 -1
- package/packages/app-core/src/shell/DesktopOnboardingRuntime.js +0 -10
- package/packages/app-core/src/shell/DesktopSurfaceNavigationRuntime.d.ts +0 -2
- package/packages/app-core/src/shell/DesktopSurfaceNavigationRuntime.d.ts.map +0 -1
- package/packages/app-core/src/shell/DesktopSurfaceNavigationRuntime.js +0 -48
- package/packages/app-core/src/shell/DesktopTrayRuntime.d.ts +0 -11
- package/packages/app-core/src/shell/DesktopTrayRuntime.d.ts.map +0 -1
- package/packages/app-core/src/shell/DesktopTrayRuntime.js +0 -265
- package/packages/app-core/src/shell/DetachedShellRoot.d.ts +0 -10
- package/packages/app-core/src/shell/DetachedShellRoot.d.ts.map +0 -1
- package/packages/app-core/src/shell/DetachedShellRoot.js +0 -114
- package/packages/app-core/src/shell/index.d.ts +0 -6
- package/packages/app-core/src/shell/index.d.ts.map +0 -1
- package/packages/app-core/src/shell/index.js +0 -5
- package/packages/app-core/src/state/AppContext.d.ts +0 -13
- package/packages/app-core/src/state/AppContext.d.ts.map +0 -1
- package/packages/app-core/src/state/AppContext.js +0 -1896
- package/packages/app-core/src/state/ChatComposerContext.d.ts +0 -28
- package/packages/app-core/src/state/ChatComposerContext.d.ts.map +0 -1
- package/packages/app-core/src/state/ChatComposerContext.js +0 -30
- package/packages/app-core/src/state/CompanionSceneConfigContext.d.ts +0 -27
- package/packages/app-core/src/state/CompanionSceneConfigContext.d.ts.map +0 -1
- package/packages/app-core/src/state/CompanionSceneConfigContext.js +0 -32
- package/packages/app-core/src/state/PtySessionsContext.d.ts +0 -15
- package/packages/app-core/src/state/PtySessionsContext.d.ts.map +0 -1
- package/packages/app-core/src/state/PtySessionsContext.js +0 -15
- package/packages/app-core/src/state/TranslationContext.d.ts +0 -29
- package/packages/app-core/src/state/TranslationContext.d.ts.map +0 -1
- package/packages/app-core/src/state/TranslationContext.js +0 -61
- package/packages/app-core/src/state/agent-profile-types.d.ts +0 -29
- package/packages/app-core/src/state/agent-profile-types.d.ts.map +0 -1
- package/packages/app-core/src/state/agent-profile-types.js +0 -1
- package/packages/app-core/src/state/agent-profiles.d.ts +0 -16
- package/packages/app-core/src/state/agent-profiles.d.ts.map +0 -1
- package/packages/app-core/src/state/agent-profiles.js +0 -119
- package/packages/app-core/src/state/agent-startup-timing.d.ts +0 -15
- package/packages/app-core/src/state/agent-startup-timing.d.ts.map +0 -1
- package/packages/app-core/src/state/agent-startup-timing.js +0 -28
- package/packages/app-core/src/state/chat-conversation-guards.d.ts +0 -6
- package/packages/app-core/src/state/chat-conversation-guards.d.ts.map +0 -1
- package/packages/app-core/src/state/chat-conversation-guards.js +0 -47
- package/packages/app-core/src/state/complete-reset-local-state-after-wipe.d.ts +0 -30
- package/packages/app-core/src/state/complete-reset-local-state-after-wipe.d.ts.map +0 -1
- package/packages/app-core/src/state/complete-reset-local-state-after-wipe.js +0 -24
- package/packages/app-core/src/state/config-readers.d.ts +0 -7
- package/packages/app-core/src/state/config-readers.d.ts.map +0 -1
- package/packages/app-core/src/state/config-readers.js +0 -8
- package/packages/app-core/src/state/connector-deeplink.d.ts +0 -30
- package/packages/app-core/src/state/connector-deeplink.d.ts.map +0 -1
- package/packages/app-core/src/state/connector-deeplink.js +0 -46
- package/packages/app-core/src/state/handle-reset-applied-from-main.d.ts +0 -31
- package/packages/app-core/src/state/handle-reset-applied-from-main.d.ts.map +0 -1
- package/packages/app-core/src/state/handle-reset-applied-from-main.js +0 -38
- package/packages/app-core/src/state/index.d.ts +0 -14
- package/packages/app-core/src/state/index.d.ts.map +0 -1
- package/packages/app-core/src/state/index.js +0 -13
- package/packages/app-core/src/state/internal.d.ts +0 -9
- package/packages/app-core/src/state/internal.d.ts.map +0 -1
- package/packages/app-core/src/state/internal.js +0 -9
- package/packages/app-core/src/state/navigation-events.d.ts +0 -12
- package/packages/app-core/src/state/navigation-events.d.ts.map +0 -1
- package/packages/app-core/src/state/navigation-events.js +0 -25
- package/packages/app-core/src/state/onboarding-bootstrap.d.ts +0 -28
- package/packages/app-core/src/state/onboarding-bootstrap.d.ts.map +0 -1
- package/packages/app-core/src/state/onboarding-bootstrap.js +0 -76
- package/packages/app-core/src/state/onboarding-resume.d.ts +0 -9
- package/packages/app-core/src/state/onboarding-resume.d.ts.map +0 -1
- package/packages/app-core/src/state/onboarding-resume.js +0 -93
- package/packages/app-core/src/state/parsers.d.ts +0 -33
- package/packages/app-core/src/state/parsers.d.ts.map +0 -1
- package/packages/app-core/src/state/parsers.js +0 -354
- package/packages/app-core/src/state/persistence.d.ts +0 -111
- package/packages/app-core/src/state/persistence.d.ts.map +0 -1
- package/packages/app-core/src/state/persistence.js +0 -749
- package/packages/app-core/src/state/shell-routing.d.ts +0 -12
- package/packages/app-core/src/state/shell-routing.d.ts.map +0 -1
- package/packages/app-core/src/state/shell-routing.js +0 -21
- package/packages/app-core/src/state/startup-coordinator.d.ts +0 -137
- package/packages/app-core/src/state/startup-coordinator.d.ts.map +0 -1
- package/packages/app-core/src/state/startup-coordinator.js +0 -247
- package/packages/app-core/src/state/startup-phase-hydrate.d.ts +0 -74
- package/packages/app-core/src/state/startup-phase-hydrate.d.ts.map +0 -1
- package/packages/app-core/src/state/startup-phase-hydrate.js +0 -494
- package/packages/app-core/src/state/startup-phase-poll.d.ts +0 -61
- package/packages/app-core/src/state/startup-phase-poll.d.ts.map +0 -1
- package/packages/app-core/src/state/startup-phase-poll.js +0 -272
- package/packages/app-core/src/state/startup-phase-restore.d.ts +0 -49
- package/packages/app-core/src/state/startup-phase-restore.d.ts.map +0 -1
- package/packages/app-core/src/state/startup-phase-restore.js +0 -145
- package/packages/app-core/src/state/startup-phase-runtime.d.ts +0 -34
- package/packages/app-core/src/state/startup-phase-runtime.d.ts.map +0 -1
- package/packages/app-core/src/state/startup-phase-runtime.js +0 -126
- package/packages/app-core/src/state/types.d.ts +0 -645
- package/packages/app-core/src/state/types.d.ts.map +0 -1
- package/packages/app-core/src/state/types.js +0 -62
- package/packages/app-core/src/state/ui-preferences.d.ts +0 -3
- package/packages/app-core/src/state/ui-preferences.d.ts.map +0 -1
- package/packages/app-core/src/state/ui-preferences.js +0 -1
- package/packages/app-core/src/state/useApp.d.ts +0 -4
- package/packages/app-core/src/state/useApp.d.ts.map +0 -1
- package/packages/app-core/src/state/useApp.js +0 -32
- package/packages/app-core/src/state/useCharacterState.d.ts +0 -52
- package/packages/app-core/src/state/useCharacterState.d.ts.map +0 -1
- package/packages/app-core/src/state/useCharacterState.js +0 -208
- package/packages/app-core/src/state/useChatCallbacks.d.ts +0 -168
- package/packages/app-core/src/state/useChatCallbacks.d.ts.map +0 -1
- package/packages/app-core/src/state/useChatCallbacks.js +0 -773
- package/packages/app-core/src/state/useChatLifecycle.d.ts +0 -104
- package/packages/app-core/src/state/useChatLifecycle.d.ts.map +0 -1
- package/packages/app-core/src/state/useChatLifecycle.js +0 -584
- package/packages/app-core/src/state/useChatSend.d.ts +0 -81
- package/packages/app-core/src/state/useChatSend.d.ts.map +0 -1
- package/packages/app-core/src/state/useChatSend.js +0 -924
- package/packages/app-core/src/state/useChatState.d.ts +0 -144
- package/packages/app-core/src/state/useChatState.d.ts.map +0 -1
- package/packages/app-core/src/state/useChatState.js +0 -251
- package/packages/app-core/src/state/useCloudState.d.ts +0 -71
- package/packages/app-core/src/state/useCloudState.d.ts.map +0 -1
- package/packages/app-core/src/state/useCloudState.js +0 -561
- package/packages/app-core/src/state/useDataLoaders.d.ts +0 -88
- package/packages/app-core/src/state/useDataLoaders.d.ts.map +0 -1
- package/packages/app-core/src/state/useDataLoaders.js +0 -394
- package/packages/app-core/src/state/useDisplayPreferences.d.ts +0 -23
- package/packages/app-core/src/state/useDisplayPreferences.d.ts.map +0 -1
- package/packages/app-core/src/state/useDisplayPreferences.js +0 -64
- package/packages/app-core/src/state/useExportImportState.d.ts +0 -32
- package/packages/app-core/src/state/useExportImportState.d.ts.map +0 -1
- package/packages/app-core/src/state/useExportImportState.js +0 -140
- package/packages/app-core/src/state/useLifecycleState.d.ts +0 -123
- package/packages/app-core/src/state/useLifecycleState.d.ts.map +0 -1
- package/packages/app-core/src/state/useLifecycleState.js +0 -258
- package/packages/app-core/src/state/useLogsState.d.ts +0 -24
- package/packages/app-core/src/state/useLogsState.d.ts.map +0 -1
- package/packages/app-core/src/state/useLogsState.js +0 -87
- package/packages/app-core/src/state/useMiscUiState.d.ts +0 -87
- package/packages/app-core/src/state/useMiscUiState.d.ts.map +0 -1
- package/packages/app-core/src/state/useMiscUiState.js +0 -150
- package/packages/app-core/src/state/useNavigationState.d.ts +0 -29
- package/packages/app-core/src/state/useNavigationState.d.ts.map +0 -1
- package/packages/app-core/src/state/useNavigationState.js +0 -122
- package/packages/app-core/src/state/useOnboardingCallbacks.d.ts +0 -100
- package/packages/app-core/src/state/useOnboardingCallbacks.d.ts.map +0 -1
- package/packages/app-core/src/state/useOnboardingCallbacks.js +0 -792
- package/packages/app-core/src/state/useOnboardingCompat.d.ts +0 -61
- package/packages/app-core/src/state/useOnboardingCompat.d.ts.map +0 -1
- package/packages/app-core/src/state/useOnboardingCompat.js +0 -110
- package/packages/app-core/src/state/useOnboardingState.d.ts +0 -126
- package/packages/app-core/src/state/useOnboardingState.d.ts.map +0 -1
- package/packages/app-core/src/state/useOnboardingState.js +0 -263
- package/packages/app-core/src/state/usePairingState.d.ts +0 -21
- package/packages/app-core/src/state/usePairingState.d.ts.map +0 -1
- package/packages/app-core/src/state/usePairingState.js +0 -60
- package/packages/app-core/src/state/usePluginsSkillsState.d.ts +0 -131
- package/packages/app-core/src/state/usePluginsSkillsState.d.ts.map +0 -1
- package/packages/app-core/src/state/usePluginsSkillsState.js +0 -572
- package/packages/app-core/src/state/useStartupCoordinator.d.ts +0 -40
- package/packages/app-core/src/state/useStartupCoordinator.d.ts.map +0 -1
- package/packages/app-core/src/state/useStartupCoordinator.js +0 -183
- package/packages/app-core/src/state/useTriggersState.d.ts +0 -29
- package/packages/app-core/src/state/useTriggersState.d.ts.map +0 -1
- package/packages/app-core/src/state/useTriggersState.js +0 -198
- package/packages/app-core/src/state/useVincentState.d.ts +0 -3
- package/packages/app-core/src/state/useVincentState.d.ts.map +0 -1
- package/packages/app-core/src/state/useVincentState.js +0 -13
- package/packages/app-core/src/state/useWalletState.d.ts +0 -97
- package/packages/app-core/src/state/useWalletState.d.ts.map +0 -1
- package/packages/app-core/src/state/useWalletState.js +0 -533
- package/packages/app-core/src/state/vrm.d.ts +0 -2
- package/packages/app-core/src/state/vrm.d.ts.map +0 -1
- package/packages/app-core/src/state/vrm.js +0 -1
- package/packages/app-core/src/test-support/test-helpers.d.ts +0 -111
- package/packages/app-core/src/test-support/test-helpers.d.ts.map +0 -1
- package/packages/app-core/src/test-support/test-helpers.js +0 -417
- package/packages/app-core/src/themes/apply-theme.d.ts +0 -24
- package/packages/app-core/src/themes/apply-theme.d.ts.map +0 -1
- package/packages/app-core/src/themes/apply-theme.js +0 -130
- package/packages/app-core/src/types/index.d.ts +0 -658
- package/packages/app-core/src/types/index.d.ts.map +0 -1
- package/packages/app-core/src/types/index.js +0 -4
- package/packages/app-core/src/utils/asset-url.d.ts +0 -24
- package/packages/app-core/src/utils/asset-url.d.ts.map +0 -1
- package/packages/app-core/src/utils/asset-url.js +0 -150
- package/packages/app-core/src/utils/assistant-text.d.ts +0 -2
- package/packages/app-core/src/utils/assistant-text.d.ts.map +0 -1
- package/packages/app-core/src/utils/assistant-text.js +0 -167
- package/packages/app-core/src/utils/browser-tabs-renderer-registry.d.ts +0 -56
- package/packages/app-core/src/utils/browser-tabs-renderer-registry.d.ts.map +0 -1
- package/packages/app-core/src/utils/browser-tabs-renderer-registry.js +0 -738
- package/packages/app-core/src/utils/character-message-examples.d.ts +0 -7
- package/packages/app-core/src/utils/character-message-examples.d.ts.map +0 -1
- package/packages/app-core/src/utils/character-message-examples.js +0 -122
- package/packages/app-core/src/utils/clipboard.d.ts +0 -2
- package/packages/app-core/src/utils/clipboard.d.ts.map +0 -1
- package/packages/app-core/src/utils/clipboard.js +0 -38
- package/packages/app-core/src/utils/cloud-status.d.ts +0 -3
- package/packages/app-core/src/utils/cloud-status.d.ts.map +0 -1
- package/packages/app-core/src/utils/cloud-status.js +0 -10
- package/packages/app-core/src/utils/desktop-bug-report.d.ts +0 -35
- package/packages/app-core/src/utils/desktop-bug-report.d.ts.map +0 -1
- package/packages/app-core/src/utils/desktop-bug-report.js +0 -47
- package/packages/app-core/src/utils/desktop-dialogs.d.ts +0 -24
- package/packages/app-core/src/utils/desktop-dialogs.d.ts.map +0 -1
- package/packages/app-core/src/utils/desktop-dialogs.js +0 -149
- package/packages/app-core/src/utils/desktop-workspace.d.ts +0 -86
- package/packages/app-core/src/utils/desktop-workspace.d.ts.map +0 -1
- package/packages/app-core/src/utils/desktop-workspace.js +0 -162
- package/packages/app-core/src/utils/eliza-cloud-model-route.d.ts +0 -3
- package/packages/app-core/src/utils/eliza-cloud-model-route.d.ts.map +0 -1
- package/packages/app-core/src/utils/eliza-cloud-model-route.js +0 -9
- package/packages/app-core/src/utils/eliza-globals.d.ts +0 -15
- package/packages/app-core/src/utils/eliza-globals.d.ts.map +0 -1
- package/packages/app-core/src/utils/eliza-globals.js +0 -50
- package/packages/app-core/src/utils/errors.d.ts +0 -13
- package/packages/app-core/src/utils/errors.d.ts.map +0 -1
- package/packages/app-core/src/utils/errors.js +0 -25
- package/packages/app-core/src/utils/format.d.ts +0 -66
- package/packages/app-core/src/utils/format.d.ts.map +0 -1
- package/packages/app-core/src/utils/format.js +0 -121
- package/packages/app-core/src/utils/index.d.ts +0 -15
- package/packages/app-core/src/utils/index.d.ts.map +0 -1
- package/packages/app-core/src/utils/index.js +0 -14
- package/packages/app-core/src/utils/knowledge-upload-image.d.ts +0 -27
- package/packages/app-core/src/utils/knowledge-upload-image.d.ts.map +0 -1
- package/packages/app-core/src/utils/knowledge-upload-image.js +0 -146
- package/packages/app-core/src/utils/labels.d.ts +0 -6
- package/packages/app-core/src/utils/labels.d.ts.map +0 -1
- package/packages/app-core/src/utils/labels.js +0 -41
- package/packages/app-core/src/utils/name-tokens.d.ts +0 -24
- package/packages/app-core/src/utils/name-tokens.d.ts.map +0 -1
- package/packages/app-core/src/utils/name-tokens.js +0 -36
- package/packages/app-core/src/utils/number-parsing.d.ts +0 -26
- package/packages/app-core/src/utils/number-parsing.d.ts.map +0 -1
- package/packages/app-core/src/utils/number-parsing.js +0 -51
- package/packages/app-core/src/utils/openExternalUrl.d.ts +0 -21
- package/packages/app-core/src/utils/openExternalUrl.d.ts.map +0 -1
- package/packages/app-core/src/utils/openExternalUrl.js +0 -67
- package/packages/app-core/src/utils/owner-name.d.ts +0 -3
- package/packages/app-core/src/utils/owner-name.d.ts.map +0 -1
- package/packages/app-core/src/utils/owner-name.js +0 -7
- package/packages/app-core/src/utils/streaming-text.d.ts +0 -9
- package/packages/app-core/src/utils/streaming-text.d.ts.map +0 -1
- package/packages/app-core/src/utils/streaming-text.js +0 -112
- package/packages/app-core/src/utils/subscription-auth.d.ts +0 -9
- package/packages/app-core/src/utils/subscription-auth.d.ts.map +0 -1
- package/packages/app-core/src/utils/subscription-auth.js +0 -48
- package/packages/app-core/src/utils/trajectory-format.d.ts +0 -6
- package/packages/app-core/src/utils/trajectory-format.d.ts.map +0 -1
- package/packages/app-core/src/utils/trajectory-format.js +0 -43
- package/packages/app-core/src/voice/character-voice-config.d.ts +0 -9
- package/packages/app-core/src/voice/character-voice-config.d.ts.map +0 -1
- package/packages/app-core/src/voice/character-voice-config.js +0 -83
- package/packages/app-core/src/voice/index.d.ts +0 -3
- package/packages/app-core/src/voice/index.d.ts.map +0 -1
- package/packages/app-core/src/voice/index.js +0 -2
- package/packages/app-core/src/voice/types.d.ts +0 -40
- package/packages/app-core/src/voice/types.d.ts.map +0 -1
- package/packages/app-core/src/voice/types.js +0 -295
- package/packages/app-core/src/wallet-rpc.d.ts +0 -9
- package/packages/app-core/src/wallet-rpc.d.ts.map +0 -1
- package/packages/app-core/src/wallet-rpc.js +0 -133
- package/packages/app-core/src/widgets/WidgetHost.d.ts +0 -32
- package/packages/app-core/src/widgets/WidgetHost.d.ts.map +0 -1
- package/packages/app-core/src/widgets/WidgetHost.js +0 -57
- package/packages/app-core/src/widgets/index.d.ts +0 -6
- package/packages/app-core/src/widgets/index.d.ts.map +0 -1
- package/packages/app-core/src/widgets/index.js +0 -2
- package/packages/app-core/src/widgets/registry.d.ts +0 -58
- package/packages/app-core/src/widgets/registry.d.ts.map +0 -1
- package/packages/app-core/src/widgets/registry.js +0 -221
- package/packages/app-core/src/widgets/types.d.ts +0 -50
- package/packages/app-core/src/widgets/types.d.ts.map +0 -1
- package/packages/app-core/src/widgets/types.js +0 -1
- package/packages/app-core/src/widgets/useChatSidebarVisibility.d.ts +0 -16
- package/packages/app-core/src/widgets/useChatSidebarVisibility.d.ts.map +0 -1
- package/packages/app-core/src/widgets/useChatSidebarVisibility.js +0 -54
- package/packages/app-core/src/widgets/visibility.d.ts +0 -55
- package/packages/app-core/src/widgets/visibility.d.ts.map +0 -1
- package/packages/app-core/src/widgets/visibility.js +0 -90
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts +0 -9
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.js +0 -8
- package/packages/ui/src/components/composites/chat/chat-bubble.d.ts +0 -14
- package/packages/ui/src/components/composites/chat/chat-bubble.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-bubble.js +0 -7
- package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts +0 -14
- package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-composer-shell.js +0 -25
- package/packages/ui/src/components/composites/chat/chat-composer.d.ts +0 -45
- package/packages/ui/src/components/composites/chat/chat-composer.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-composer.js +0 -297
- package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts +0 -21
- package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-conversation-item.js +0 -118
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts +0 -22
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.js +0 -14
- package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts +0 -19
- package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-empty-state.js +0 -8
- package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts +0 -14
- package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-message-actions.js +0 -10
- package/packages/ui/src/components/composites/chat/chat-message.d.ts +0 -18
- package/packages/ui/src/components/composites/chat/chat-message.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-message.js +0 -260
- package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts +0 -54
- package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-sidebar.js +0 -64
- package/packages/ui/src/components/composites/chat/chat-source.d.ts +0 -23
- package/packages/ui/src/components/composites/chat/chat-source.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-source.js +0 -60
- package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts +0 -22
- package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-thread-layout.js +0 -37
- package/packages/ui/src/components/composites/chat/chat-transcript.d.ts +0 -19
- package/packages/ui/src/components/composites/chat/chat-transcript.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-transcript.js +0 -88
- package/packages/ui/src/components/composites/chat/chat-types.d.ts +0 -91
- package/packages/ui/src/components/composites/chat/chat-types.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-types.js +0 -1
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts +0 -10
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.js +0 -10
- package/packages/ui/src/components/composites/chat/create-task-popover.d.ts +0 -13
- package/packages/ui/src/components/composites/chat/create-task-popover.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/create-task-popover.js +0 -44
- package/packages/ui/src/components/composites/chat/index.d.ts +0 -17
- package/packages/ui/src/components/composites/chat/index.d.ts.map +0 -1
- package/packages/ui/src/components/composites/chat/index.js +0 -16
- package/packages/ui/src/components/composites/form-field/form-field.d.ts +0 -14
- package/packages/ui/src/components/composites/form-field/form-field.d.ts.map +0 -1
- package/packages/ui/src/components/composites/form-field/form-field.js +0 -8
- package/packages/ui/src/components/composites/form-field/index.d.ts +0 -2
- package/packages/ui/src/components/composites/form-field/index.d.ts.map +0 -1
- package/packages/ui/src/components/composites/form-field/index.js +0 -1
- package/packages/ui/src/components/composites/index.d.ts +0 -27
- package/packages/ui/src/components/composites/index.d.ts.map +0 -1
- package/packages/ui/src/components/composites/index.js +0 -26
- package/packages/ui/src/components/composites/page-panel/index.d.ts +0 -29
- package/packages/ui/src/components/composites/page-panel/index.d.ts.map +0 -1
- package/packages/ui/src/components/composites/page-panel/index.js +0 -28
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts +0 -4
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts.map +0 -1
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.js +0 -60
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts +0 -3
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts.map +0 -1
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.js +0 -15
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts +0 -5
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts.map +0 -1
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.js +0 -9
- package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts +0 -7
- package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts.map +0 -1
- package/packages/ui/src/components/composites/page-panel/page-panel-header.js +0 -30
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts +0 -3
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts.map +0 -1
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.js +0 -13
- package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts +0 -7
- package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts.map +0 -1
- package/packages/ui/src/components/composites/page-panel/page-panel-root.js +0 -17
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts +0 -4
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts.map +0 -1
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.js +0 -6
- package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts +0 -66
- package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts.map +0 -1
- package/packages/ui/src/components/composites/page-panel/page-panel-types.js +0 -1
- package/packages/ui/src/components/composites/search/index.d.ts +0 -3
- package/packages/ui/src/components/composites/search/index.d.ts.map +0 -1
- package/packages/ui/src/components/composites/search/index.js +0 -2
- package/packages/ui/src/components/composites/search/search-input.d.ts +0 -11
- package/packages/ui/src/components/composites/search/search-input.d.ts.map +0 -1
- package/packages/ui/src/components/composites/search/search-input.js +0 -10
- package/packages/ui/src/components/composites/search/searchbar.d.ts +0 -18
- package/packages/ui/src/components/composites/search/searchbar.d.ts.map +0 -1
- package/packages/ui/src/components/composites/search/searchbar.js +0 -25
- package/packages/ui/src/components/composites/sidebar/index.d.ts +0 -11
- package/packages/ui/src/components/composites/sidebar/index.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/index.js +0 -10
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts +0 -15
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.js +0 -292
- package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts +0 -4
- package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-body.js +0 -7
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts +0 -11
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.js +0 -13
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts +0 -78
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-content.js +0 -94
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts +0 -3
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.js +0 -14
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts +0 -3
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.js +0 -6
- package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts +0 -9
- package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-header.js +0 -6
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts +0 -3
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.js +0 -18
- package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts +0 -4
- package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-root.js +0 -491
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts +0 -3
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.js +0 -18
- package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts +0 -77
- package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts.map +0 -1
- package/packages/ui/src/components/composites/sidebar/sidebar-types.js +0 -1
- package/packages/ui/src/components/composites/skills/index.d.ts +0 -2
- package/packages/ui/src/components/composites/skills/index.d.ts.map +0 -1
- package/packages/ui/src/components/composites/skills/index.js +0 -1
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts +0 -16
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts.map +0 -1
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.js +0 -7
- package/packages/ui/src/components/composites/trajectories/index.d.ts +0 -5
- package/packages/ui/src/components/composites/trajectories/index.d.ts.map +0 -1
- package/packages/ui/src/components/composites/trajectories/index.js +0 -4
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts +0 -13
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts.map +0 -1
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.js +0 -13
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts +0 -34
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts.map +0 -1
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.js +0 -14
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts +0 -26
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts.map +0 -1
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.js +0 -46
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts +0 -15
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts.map +0 -1
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.js +0 -8
- package/packages/ui/src/components/primitives/index.d.ts +0 -26
- package/packages/ui/src/components/primitives/index.d.ts.map +0 -1
- package/packages/ui/src/components/primitives/index.js +0 -25
- package/packages/ui/src/components/ui/admin-dialog.d.ts +0 -50
- package/packages/ui/src/components/ui/admin-dialog.d.ts.map +0 -1
- package/packages/ui/src/components/ui/admin-dialog.js +0 -48
- package/packages/ui/src/components/ui/badge.d.ts +0 -10
- package/packages/ui/src/components/ui/badge.d.ts.map +0 -1
- package/packages/ui/src/components/ui/badge.js +0 -21
- package/packages/ui/src/components/ui/banner.d.ts +0 -17
- package/packages/ui/src/components/ui/banner.d.ts.map +0 -1
- package/packages/ui/src/components/ui/banner.js +0 -29
- package/packages/ui/src/components/ui/button.d.ts +0 -13
- package/packages/ui/src/components/ui/button.d.ts.map +0 -1
- package/packages/ui/src/components/ui/button.js +0 -40
- package/packages/ui/src/components/ui/card.d.ts +0 -15
- package/packages/ui/src/components/ui/card.d.ts.map +0 -1
- package/packages/ui/src/components/ui/card.js +0 -32
- package/packages/ui/src/components/ui/checkbox.d.ts +0 -5
- package/packages/ui/src/components/ui/checkbox.d.ts.map +0 -1
- package/packages/ui/src/components/ui/checkbox.js +0 -8
- package/packages/ui/src/components/ui/confirm-delete.d.ts +0 -20
- package/packages/ui/src/components/ui/confirm-delete.d.ts.map +0 -1
- package/packages/ui/src/components/ui/confirm-delete.js +0 -16
- package/packages/ui/src/components/ui/confirm-dialog.d.ts +0 -49
- package/packages/ui/src/components/ui/confirm-dialog.d.ts.map +0 -1
- package/packages/ui/src/components/ui/confirm-dialog.js +0 -90
- package/packages/ui/src/components/ui/connection-status.d.ts +0 -15
- package/packages/ui/src/components/ui/connection-status.d.ts.map +0 -1
- package/packages/ui/src/components/ui/connection-status.js +0 -25
- package/packages/ui/src/components/ui/copy-button.d.ts +0 -13
- package/packages/ui/src/components/ui/copy-button.d.ts.map +0 -1
- package/packages/ui/src/components/ui/copy-button.js +0 -14
- package/packages/ui/src/components/ui/dialog.d.ts +0 -25
- package/packages/ui/src/components/ui/dialog.d.ts.map +0 -1
- package/packages/ui/src/components/ui/dialog.js +0 -23
- package/packages/ui/src/components/ui/drawer-sheet.d.ts +0 -19
- package/packages/ui/src/components/ui/drawer-sheet.d.ts.map +0 -1
- package/packages/ui/src/components/ui/drawer-sheet.js +0 -21
- package/packages/ui/src/components/ui/dropdown-menu.d.ts +0 -28
- package/packages/ui/src/components/ui/dropdown-menu.d.ts.map +0 -1
- package/packages/ui/src/components/ui/dropdown-menu.js +0 -35
- package/packages/ui/src/components/ui/empty-state.d.ts +0 -13
- package/packages/ui/src/components/ui/empty-state.d.ts.map +0 -1
- package/packages/ui/src/components/ui/empty-state.js +0 -5
- package/packages/ui/src/components/ui/error-boundary.d.ts +0 -22
- package/packages/ui/src/components/ui/error-boundary.d.ts.map +0 -1
- package/packages/ui/src/components/ui/error-boundary.js +0 -27
- package/packages/ui/src/components/ui/field-switch.d.ts +0 -8
- package/packages/ui/src/components/ui/field-switch.d.ts.map +0 -1
- package/packages/ui/src/components/ui/field-switch.js +0 -10
- package/packages/ui/src/components/ui/field.d.ts +0 -12
- package/packages/ui/src/components/ui/field.d.ts.map +0 -1
- package/packages/ui/src/components/ui/field.js +0 -21
- package/packages/ui/src/components/ui/form-select.d.ts +0 -14
- package/packages/ui/src/components/ui/form-select.d.ts.map +0 -1
- package/packages/ui/src/components/ui/form-select.js +0 -9
- package/packages/ui/src/components/ui/grid.d.ts +0 -10
- package/packages/ui/src/components/ui/grid.d.ts.map +0 -1
- package/packages/ui/src/components/ui/grid.js +0 -31
- package/packages/ui/src/components/ui/input.d.ts +0 -12
- package/packages/ui/src/components/ui/input.d.ts.map +0 -1
- package/packages/ui/src/components/ui/input.js +0 -29
- package/packages/ui/src/components/ui/label.d.ts +0 -5
- package/packages/ui/src/components/ui/label.d.ts.map +0 -1
- package/packages/ui/src/components/ui/label.js +0 -10
- package/packages/ui/src/components/ui/new-action-button.d.ts +0 -7
- package/packages/ui/src/components/ui/new-action-button.d.ts.map +0 -1
- package/packages/ui/src/components/ui/new-action-button.js +0 -13
- package/packages/ui/src/components/ui/popover.d.ts +0 -7
- package/packages/ui/src/components/ui/popover.d.ts.map +0 -1
- package/packages/ui/src/components/ui/popover.js +0 -9
- package/packages/ui/src/components/ui/save-footer.d.ts +0 -13
- package/packages/ui/src/components/ui/save-footer.d.ts.map +0 -1
- package/packages/ui/src/components/ui/save-footer.js +0 -10
- package/packages/ui/src/components/ui/section-card.d.ts +0 -15
- package/packages/ui/src/components/ui/section-card.d.ts.map +0 -1
- package/packages/ui/src/components/ui/section-card.js +0 -10
- package/packages/ui/src/components/ui/segmented-control.d.ts +0 -18
- package/packages/ui/src/components/ui/segmented-control.d.ts.map +0 -1
- package/packages/ui/src/components/ui/segmented-control.js +0 -10
- package/packages/ui/src/components/ui/select.d.ts +0 -14
- package/packages/ui/src/components/ui/select.d.ts.map +0 -1
- package/packages/ui/src/components/ui/select.js +0 -27
- package/packages/ui/src/components/ui/separator.d.ts +0 -5
- package/packages/ui/src/components/ui/separator.d.ts.map +0 -1
- package/packages/ui/src/components/ui/separator.js +0 -7
- package/packages/ui/src/components/ui/settings-controls.d.ts +0 -41
- package/packages/ui/src/components/ui/settings-controls.d.ts.map +0 -1
- package/packages/ui/src/components/ui/settings-controls.js +0 -60
- package/packages/ui/src/components/ui/skeleton.d.ts +0 -17
- package/packages/ui/src/components/ui/skeleton.d.ts.map +0 -1
- package/packages/ui/src/components/ui/skeleton.js +0 -24
- package/packages/ui/src/components/ui/slider.d.ts +0 -5
- package/packages/ui/src/components/ui/slider.d.ts.map +0 -1
- package/packages/ui/src/components/ui/slider.js +0 -7
- package/packages/ui/src/components/ui/sonner.d.ts +0 -2
- package/packages/ui/src/components/ui/sonner.d.ts.map +0 -1
- package/packages/ui/src/components/ui/sonner.js +0 -1
- package/packages/ui/src/components/ui/spinner.d.ts +0 -6
- package/packages/ui/src/components/ui/spinner.d.ts.map +0 -1
- package/packages/ui/src/components/ui/spinner.js +0 -8
- package/packages/ui/src/components/ui/stack.d.ts +0 -11
- package/packages/ui/src/components/ui/stack.d.ts.map +0 -1
- package/packages/ui/src/components/ui/stack.js +0 -40
- package/packages/ui/src/components/ui/status-badge.d.ts +0 -27
- package/packages/ui/src/components/ui/status-badge.d.ts.map +0 -1
- package/packages/ui/src/components/ui/status-badge.js +0 -70
- package/packages/ui/src/components/ui/switch.d.ts +0 -5
- package/packages/ui/src/components/ui/switch.d.ts.map +0 -1
- package/packages/ui/src/components/ui/switch.js +0 -7
- package/packages/ui/src/components/ui/tabs.d.ts +0 -8
- package/packages/ui/src/components/ui/tabs.d.ts.map +0 -1
- package/packages/ui/src/components/ui/tabs.js +0 -12
- package/packages/ui/src/components/ui/tag-editor.d.ts +0 -12
- package/packages/ui/src/components/ui/tag-editor.d.ts.map +0 -1
- package/packages/ui/src/components/ui/tag-editor.js +0 -34
- package/packages/ui/src/components/ui/tag-input.d.ts +0 -3
- package/packages/ui/src/components/ui/tag-input.d.ts.map +0 -1
- package/packages/ui/src/components/ui/tag-input.js +0 -1
- package/packages/ui/src/components/ui/textarea.d.ts +0 -12
- package/packages/ui/src/components/ui/textarea.d.ts.map +0 -1
- package/packages/ui/src/components/ui/textarea.js +0 -29
- package/packages/ui/src/components/ui/themed-select.d.ts +0 -22
- package/packages/ui/src/components/ui/themed-select.d.ts.map +0 -1
- package/packages/ui/src/components/ui/themed-select.js +0 -137
- package/packages/ui/src/components/ui/tooltip-extended.d.ts +0 -54
- package/packages/ui/src/components/ui/tooltip-extended.d.ts.map +0 -1
- package/packages/ui/src/components/ui/tooltip-extended.js +0 -114
- package/packages/ui/src/components/ui/tooltip.d.ts +0 -18
- package/packages/ui/src/components/ui/tooltip.d.ts.map +0 -1
- package/packages/ui/src/components/ui/tooltip.js +0 -13
- package/packages/ui/src/components/ui/typography.d.ts +0 -15
- package/packages/ui/src/components/ui/typography.d.ts.map +0 -1
- package/packages/ui/src/components/ui/typography.js +0 -46
- package/packages/ui/src/hooks/index.d.ts +0 -6
- package/packages/ui/src/hooks/index.d.ts.map +0 -1
- package/packages/ui/src/hooks/index.js +0 -5
- package/packages/ui/src/hooks/useClickOutside.d.ts +0 -3
- package/packages/ui/src/hooks/useClickOutside.d.ts.map +0 -1
- package/packages/ui/src/hooks/useClickOutside.js +0 -22
- package/packages/ui/src/hooks/useDocumentVisibility.d.ts +0 -3
- package/packages/ui/src/hooks/useDocumentVisibility.d.ts.map +0 -1
- package/packages/ui/src/hooks/useDocumentVisibility.js +0 -28
- package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts +0 -13
- package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/packages/ui/src/hooks/useKeyboardShortcuts.js +0 -34
- package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts +0 -16
- package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts.map +0 -1
- package/packages/ui/src/hooks/useLinkedSidebarSelection.js +0 -117
- package/packages/ui/src/hooks/useTimeout.d.ts +0 -5
- package/packages/ui/src/hooks/useTimeout.d.ts.map +0 -1
- package/packages/ui/src/hooks/useTimeout.js +0 -26
- package/packages/ui/src/index.d.ts +0 -8
- package/packages/ui/src/index.d.ts.map +0 -1
- package/packages/ui/src/index.js +0 -7
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts +0 -11
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts.map +0 -1
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.js +0 -37
- package/packages/ui/src/layouts/chat-panel-layout/index.d.ts +0 -2
- package/packages/ui/src/layouts/chat-panel-layout/index.d.ts.map +0 -1
- package/packages/ui/src/layouts/chat-panel-layout/index.js +0 -1
- package/packages/ui/src/layouts/content-layout/content-layout.d.ts +0 -21
- package/packages/ui/src/layouts/content-layout/content-layout.d.ts.map +0 -1
- package/packages/ui/src/layouts/content-layout/content-layout.js +0 -5
- package/packages/ui/src/layouts/content-layout/index.d.ts +0 -2
- package/packages/ui/src/layouts/content-layout/index.d.ts.map +0 -1
- package/packages/ui/src/layouts/content-layout/index.js +0 -1
- package/packages/ui/src/layouts/index.d.ts +0 -5
- package/packages/ui/src/layouts/index.d.ts.map +0 -1
- package/packages/ui/src/layouts/index.js +0 -4
- package/packages/ui/src/layouts/page-layout/index.d.ts +0 -5
- package/packages/ui/src/layouts/page-layout/index.d.ts.map +0 -1
- package/packages/ui/src/layouts/page-layout/index.js +0 -4
- package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts +0 -287
- package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts.map +0 -1
- package/packages/ui/src/layouts/page-layout/page-layout-header.js +0 -8
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts +0 -3
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts.map +0 -1
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.js +0 -37
- package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts +0 -15
- package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts.map +0 -1
- package/packages/ui/src/layouts/page-layout/page-layout-types.js +0 -1
- package/packages/ui/src/layouts/page-layout/page-layout.d.ts +0 -3
- package/packages/ui/src/layouts/page-layout/page-layout.d.ts.map +0 -1
- package/packages/ui/src/layouts/page-layout/page-layout.js +0 -5
- package/packages/ui/src/layouts/workspace-layout/index.d.ts +0 -4
- package/packages/ui/src/layouts/workspace-layout/index.d.ts.map +0 -1
- package/packages/ui/src/layouts/workspace-layout/index.js +0 -3
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts +0 -19
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts.map +0 -1
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.js +0 -1
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts +0 -3
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts.map +0 -1
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.js +0 -65
- package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.d.ts +0 -13
- package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.d.ts.map +0 -1
- package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.js +0 -5
- package/packages/ui/src/lib/floating-layers.d.ts +0 -17
- package/packages/ui/src/lib/floating-layers.d.ts.map +0 -1
- package/packages/ui/src/lib/floating-layers.js +0 -20
- package/packages/ui/src/lib/utils.d.ts +0 -3
- package/packages/ui/src/lib/utils.d.ts.map +0 -1
- package/packages/ui/src/lib/utils.js +0 -5
|
@@ -1,2003 +0,0 @@
|
|
|
1
|
-
import { resolveAppAssetUrl } from "@elizaos/app-core";
|
|
2
|
-
import { MToonMaterialLoaderPlugin, VRMLoaderPlugin, VRMUtils, } from "@pixiv/three-vrm";
|
|
3
|
-
import * as THREE from "three";
|
|
4
|
-
import { MathEnvironment } from "./MathEnvironment";
|
|
5
|
-
import { SceneOverlayManager } from "./SceneOverlayManager";
|
|
6
|
-
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
|
|
7
|
-
import { MeshoptDecoder } from "three/examples/jsm/libs/meshopt_decoder.module.js";
|
|
8
|
-
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader.js";
|
|
9
|
-
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js";
|
|
10
|
-
import { loadEmoteClip, loadIdleClip, } from "./VrmAnimationLoader";
|
|
11
|
-
import { VrmBlinkController } from "./VrmBlinkController";
|
|
12
|
-
import { VrmCameraManager, } from "./VrmCameraManager";
|
|
13
|
-
const DEFAULT_CAMERA_ANIMATION = {
|
|
14
|
-
enabled: false,
|
|
15
|
-
swayAmplitude: 0.06,
|
|
16
|
-
bobAmplitude: 0.03,
|
|
17
|
-
rotationAmplitude: 0.01,
|
|
18
|
-
speed: 0.8,
|
|
19
|
-
};
|
|
20
|
-
const CAMERA_PROFILE_TRANSITION_DURATION_SECONDS = 0.8;
|
|
21
|
-
const AVATAR_SWITCH_CAMERA_TRANSITION_DURATION_SECONDS = 3;
|
|
22
|
-
const TELEPORT_DISSOLVE_START_Y = -1.2;
|
|
23
|
-
const TELEPORT_DISSOLVE_END_Y = 1.0;
|
|
24
|
-
const COMPANION_ZOOM_NEAR_FACTOR = 0.25;
|
|
25
|
-
const COMPANION_ZOOM_MIN_RADIUS = 1.2;
|
|
26
|
-
const MAX_RENDERER_PIXEL_RATIO = 2;
|
|
27
|
-
const AVATAR_RENDERER_OVERRIDE_KEY = "eliza.avatarRenderer";
|
|
28
|
-
const KNOWN_VRM_WEBGPU_WARNING = 'TSL: "transformedNormalView" is deprecated. Use "normalView" instead.';
|
|
29
|
-
let knownVrmWebGpuWarningFilterRefs = 0;
|
|
30
|
-
let releaseKnownVrmWebGpuWarningFilterGlobal = null;
|
|
31
|
-
let sharedDracoLoader = null;
|
|
32
|
-
let teleportSparkleTexture = null;
|
|
33
|
-
let _cachedDracoDecoderPath = null;
|
|
34
|
-
/** Lazy + cached: module-load resolution can be wrong in bundled/desktop init order. */
|
|
35
|
-
function getDracoDecoderPath() {
|
|
36
|
-
_cachedDracoDecoderPath ??= resolveAppAssetUrl("vrm-decoders/draco/");
|
|
37
|
-
return _cachedDracoDecoderPath;
|
|
38
|
-
}
|
|
39
|
-
function getRendererPixelRatio() {
|
|
40
|
-
if (typeof window === "undefined")
|
|
41
|
-
return 1;
|
|
42
|
-
return Math.min(Math.max(window.devicePixelRatio || 1, 1), MAX_RENDERER_PIXEL_RATIO);
|
|
43
|
-
}
|
|
44
|
-
function isElectrobunAvatarRuntime() {
|
|
45
|
-
if (typeof window === "undefined")
|
|
46
|
-
return false;
|
|
47
|
-
const runtimeWindow = window;
|
|
48
|
-
return (typeof runtimeWindow.__electrobunWindowId === "number" ||
|
|
49
|
-
typeof runtimeWindow.__electrobunWebviewId === "number");
|
|
50
|
-
}
|
|
51
|
-
function getPreferredAvatarRendererBackend() {
|
|
52
|
-
if (typeof window === "undefined")
|
|
53
|
-
return "webgl";
|
|
54
|
-
const override = (() => {
|
|
55
|
-
try {
|
|
56
|
-
return window.localStorage.getItem(AVATAR_RENDERER_OVERRIDE_KEY);
|
|
57
|
-
}
|
|
58
|
-
catch {
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
})();
|
|
62
|
-
const normalizedOverride = override?.trim().toLowerCase();
|
|
63
|
-
if (normalizedOverride === "webgpu" || normalizedOverride === "webgl") {
|
|
64
|
-
return normalizedOverride;
|
|
65
|
-
}
|
|
66
|
-
return isElectrobunAvatarRuntime() ? "webgpu" : "webgl";
|
|
67
|
-
}
|
|
68
|
-
function installKnownVrmWebGpuWarningFilter() {
|
|
69
|
-
knownVrmWebGpuWarningFilterRefs += 1;
|
|
70
|
-
if (!releaseKnownVrmWebGpuWarningFilterGlobal) {
|
|
71
|
-
const originalWarn = console.warn.bind(console);
|
|
72
|
-
console.warn = (...args) => {
|
|
73
|
-
if (typeof args[0] === "string" &&
|
|
74
|
-
args[0].includes(KNOWN_VRM_WEBGPU_WARNING)) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
originalWarn(...args);
|
|
78
|
-
};
|
|
79
|
-
releaseKnownVrmWebGpuWarningFilterGlobal = () => {
|
|
80
|
-
knownVrmWebGpuWarningFilterRefs = Math.max(0, knownVrmWebGpuWarningFilterRefs - 1);
|
|
81
|
-
if (knownVrmWebGpuWarningFilterRefs === 0) {
|
|
82
|
-
console.warn = originalWarn;
|
|
83
|
-
releaseKnownVrmWebGpuWarningFilterGlobal = null;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
return () => {
|
|
88
|
-
releaseKnownVrmWebGpuWarningFilterGlobal?.();
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function getSharedDracoLoader() {
|
|
92
|
-
if (!sharedDracoLoader) {
|
|
93
|
-
sharedDracoLoader = new DRACOLoader();
|
|
94
|
-
sharedDracoLoader.setDecoderConfig({ type: "wasm" });
|
|
95
|
-
sharedDracoLoader.setDecoderPath(getDracoDecoderPath());
|
|
96
|
-
sharedDracoLoader.preload();
|
|
97
|
-
}
|
|
98
|
-
// three/examples and the current GLTF loader declarations diverge on the
|
|
99
|
-
// decoder surface, but this runtime instance is the loader we use in app.
|
|
100
|
-
return sharedDracoLoader;
|
|
101
|
-
}
|
|
102
|
-
function configureVrmGltfLoader(loader) {
|
|
103
|
-
// three/examples and the current GLTF loader declarations diverge on the
|
|
104
|
-
// meshopt decoder surface, but this runtime instance is the decoder we ship.
|
|
105
|
-
loader.setMeshoptDecoder(MeshoptDecoder);
|
|
106
|
-
loader.setDRACOLoader(getSharedDracoLoader());
|
|
107
|
-
}
|
|
108
|
-
function getTeleportSparkleTexture() {
|
|
109
|
-
if (teleportSparkleTexture)
|
|
110
|
-
return teleportSparkleTexture;
|
|
111
|
-
const canvas = document.createElement("canvas");
|
|
112
|
-
canvas.width = 128;
|
|
113
|
-
canvas.height = 128;
|
|
114
|
-
const context = canvas.getContext("2d");
|
|
115
|
-
if (!context) {
|
|
116
|
-
teleportSparkleTexture = new THREE.CanvasTexture(canvas);
|
|
117
|
-
return teleportSparkleTexture;
|
|
118
|
-
}
|
|
119
|
-
const gradient = context.createRadialGradient(64, 64, 6, 64, 64, 64);
|
|
120
|
-
gradient.addColorStop(0.0, "rgba(255,255,255,1)");
|
|
121
|
-
gradient.addColorStop(0.2, "rgba(190,245,255,0.95)");
|
|
122
|
-
gradient.addColorStop(0.55, "rgba(112,214,255,0.48)");
|
|
123
|
-
gradient.addColorStop(1.0, "rgba(112,214,255,0)");
|
|
124
|
-
context.fillStyle = gradient;
|
|
125
|
-
context.fillRect(0, 0, 128, 128);
|
|
126
|
-
teleportSparkleTexture = new THREE.CanvasTexture(canvas);
|
|
127
|
-
teleportSparkleTexture.needsUpdate = true;
|
|
128
|
-
return teleportSparkleTexture;
|
|
129
|
-
}
|
|
130
|
-
function isGzipBuffer(buffer) {
|
|
131
|
-
if (buffer.byteLength < 2)
|
|
132
|
-
return false;
|
|
133
|
-
const bytes = new Uint8Array(buffer, 0, 2);
|
|
134
|
-
return bytes[0] === 0x1f && bytes[1] === 0x8b;
|
|
135
|
-
}
|
|
136
|
-
async function decompressGzipBuffer(buffer) {
|
|
137
|
-
if (typeof DecompressionStream !== "function") {
|
|
138
|
-
throw new Error("This runtime does not support gzip-compressed VRM assets.");
|
|
139
|
-
}
|
|
140
|
-
const stream = new Blob([buffer])
|
|
141
|
-
.stream()
|
|
142
|
-
.pipeThrough(new DecompressionStream("gzip"));
|
|
143
|
-
return await new Response(stream).arrayBuffer();
|
|
144
|
-
}
|
|
145
|
-
const vrmBufferCache = new Map();
|
|
146
|
-
const VRM_BUFFER_CACHE_MAX = 8;
|
|
147
|
-
/**
|
|
148
|
-
* In-flight prefetch promises keyed by URL. Prevents duplicate concurrent
|
|
149
|
-
* downloads when `loadGltfAsset` runs while a prefetch for the same URL is
|
|
150
|
-
* still in progress.
|
|
151
|
-
*/
|
|
152
|
-
const vrmPrefetchInflight = new Map();
|
|
153
|
-
function touchVrmCacheEntry(url, buffer) {
|
|
154
|
-
vrmBufferCache.set(url, { buffer, lastUsed: performance.now() });
|
|
155
|
-
// Evict oldest entries when over capacity.
|
|
156
|
-
while (vrmBufferCache.size > VRM_BUFFER_CACHE_MAX) {
|
|
157
|
-
let oldestKey = null;
|
|
158
|
-
let oldestTime = Infinity;
|
|
159
|
-
for (const [key, entry] of vrmBufferCache) {
|
|
160
|
-
if (entry.lastUsed < oldestTime) {
|
|
161
|
-
oldestTime = entry.lastUsed;
|
|
162
|
-
oldestKey = key;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
if (oldestKey)
|
|
166
|
-
vrmBufferCache.delete(oldestKey);
|
|
167
|
-
else
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Prefetch a VRM file into the in-memory buffer cache without parsing it.
|
|
173
|
-
* Fire-and-forget: silently swallows errors since prefetch is best-effort.
|
|
174
|
-
* Calling this when the character tab opens means the buffer is ready before
|
|
175
|
-
* the user clicks a character, turning a ~3-8 s cold fetch into a <200 ms
|
|
176
|
-
* re-parse from cache.
|
|
177
|
-
*/
|
|
178
|
-
export async function prefetchVrmToCache(url) {
|
|
179
|
-
if (vrmBufferCache.has(url))
|
|
180
|
-
return; // already warm
|
|
181
|
-
// If a prefetch for this URL is already in flight, join it instead of
|
|
182
|
-
// starting a duplicate download.
|
|
183
|
-
const existing = vrmPrefetchInflight.get(url);
|
|
184
|
-
if (existing)
|
|
185
|
-
return existing;
|
|
186
|
-
const work = (async () => {
|
|
187
|
-
try {
|
|
188
|
-
const response = await fetch(url, { cache: "force-cache" });
|
|
189
|
-
if (!response.ok)
|
|
190
|
-
return;
|
|
191
|
-
let buffer = await response.arrayBuffer();
|
|
192
|
-
if (isGzipBuffer(buffer))
|
|
193
|
-
buffer = await decompressGzipBuffer(buffer);
|
|
194
|
-
touchVrmCacheEntry(url, buffer);
|
|
195
|
-
}
|
|
196
|
-
catch {
|
|
197
|
-
// Prefetch is best-effort — network errors are silently ignored.
|
|
198
|
-
}
|
|
199
|
-
finally {
|
|
200
|
-
vrmPrefetchInflight.delete(url);
|
|
201
|
-
}
|
|
202
|
-
})();
|
|
203
|
-
vrmPrefetchInflight.set(url, work);
|
|
204
|
-
return work;
|
|
205
|
-
}
|
|
206
|
-
async function loadGltfAsset(loader, url, onProgress) {
|
|
207
|
-
let buffer;
|
|
208
|
-
// If a prefetch for this URL is in flight, await it so we hit the
|
|
209
|
-
// in-memory cache instead of starting a duplicate network request.
|
|
210
|
-
const inflight = vrmPrefetchInflight.get(url);
|
|
211
|
-
if (inflight) {
|
|
212
|
-
await inflight;
|
|
213
|
-
}
|
|
214
|
-
const cached = vrmBufferCache.get(url);
|
|
215
|
-
if (cached) {
|
|
216
|
-
// Cache hit — skip network entirely, copy the buffer so the cache stays
|
|
217
|
-
// valid even if GLTFLoader transfers/neuters the original.
|
|
218
|
-
buffer = cached.buffer.slice(0);
|
|
219
|
-
touchVrmCacheEntry(url, cached.buffer);
|
|
220
|
-
onProgress?.(1);
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
// Cache miss — fetch from network/browser cache.
|
|
224
|
-
const response = await fetch(url, { cache: "force-cache" });
|
|
225
|
-
if (!response.ok) {
|
|
226
|
-
throw new Error(`Failed to fetch VRM asset: ${response.status}`);
|
|
227
|
-
}
|
|
228
|
-
const contentLength = Number(response.headers.get("content-length") || 0);
|
|
229
|
-
if (!contentLength || !response.body || !onProgress) {
|
|
230
|
-
buffer = await response.arrayBuffer();
|
|
231
|
-
onProgress?.(1);
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
const reader = response.body.getReader();
|
|
235
|
-
let received = 0;
|
|
236
|
-
const chunks = [];
|
|
237
|
-
for (;;) {
|
|
238
|
-
const { done, value } = await reader.read();
|
|
239
|
-
if (done)
|
|
240
|
-
break;
|
|
241
|
-
if (value) {
|
|
242
|
-
chunks.push(value);
|
|
243
|
-
received += value.length;
|
|
244
|
-
onProgress(Math.min(received / contentLength, 1));
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
const combined = new Uint8Array(received);
|
|
248
|
-
let offset = 0;
|
|
249
|
-
for (const chunk of chunks) {
|
|
250
|
-
combined.set(chunk, offset);
|
|
251
|
-
offset += chunk.length;
|
|
252
|
-
}
|
|
253
|
-
buffer = combined.buffer;
|
|
254
|
-
}
|
|
255
|
-
// Decompress gzip if needed, then store the decompressed bytes.
|
|
256
|
-
if (isGzipBuffer(buffer)) {
|
|
257
|
-
buffer = await decompressGzipBuffer(buffer);
|
|
258
|
-
}
|
|
259
|
-
// Store a copy in the cache (keep the original for parsing below).
|
|
260
|
-
touchVrmCacheEntry(url, buffer.slice(0));
|
|
261
|
-
}
|
|
262
|
-
const objectUrl = URL.createObjectURL(new Blob([buffer], { type: "model/gltf-binary" }));
|
|
263
|
-
try {
|
|
264
|
-
return await loader.loadAsync(objectUrl);
|
|
265
|
-
}
|
|
266
|
-
finally {
|
|
267
|
-
URL.revokeObjectURL(objectUrl);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Create the best available renderer for the canvas.
|
|
272
|
-
* Tries WebGPURenderer only when preference allows, Electrobun defaults prefer
|
|
273
|
-
* webgpu, and `navigator.gpu` exists; otherwise uses WebGL (also on WebGPU init failure).
|
|
274
|
-
* Non-Electrobun (e.g. browser dev) defaults preference to WebGL to reduce TSL noise.
|
|
275
|
-
* `localStorage` can force `webgpu` or `webgl`. WebGPURenderer is async; await `init()` when present.
|
|
276
|
-
*/
|
|
277
|
-
async function createRenderer(canvas, preference = "auto") {
|
|
278
|
-
if (preference !== "webgl" &&
|
|
279
|
-
getPreferredAvatarRendererBackend() === "webgpu" &&
|
|
280
|
-
typeof navigator !== "undefined" &&
|
|
281
|
-
navigator.gpu) {
|
|
282
|
-
try {
|
|
283
|
-
const { WebGPURenderer } = await import("three/webgpu");
|
|
284
|
-
const renderer = new WebGPURenderer({
|
|
285
|
-
canvas,
|
|
286
|
-
alpha: true,
|
|
287
|
-
antialias: true,
|
|
288
|
-
});
|
|
289
|
-
await renderer.init?.();
|
|
290
|
-
console.info("[VrmEngine] Using WebGPURenderer");
|
|
291
|
-
return { backend: "webgpu", renderer };
|
|
292
|
-
}
|
|
293
|
-
catch (err) {
|
|
294
|
-
console.warn("[VrmEngine] WebGPURenderer failed, falling back to WebGL:", err);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
const renderer = new THREE.WebGLRenderer({
|
|
298
|
-
canvas,
|
|
299
|
-
alpha: true,
|
|
300
|
-
antialias: true,
|
|
301
|
-
});
|
|
302
|
-
console.info("[VrmEngine] Using WebGLRenderer");
|
|
303
|
-
return { backend: "webgl", renderer };
|
|
304
|
-
}
|
|
305
|
-
export class VrmEngine {
|
|
306
|
-
renderer = null;
|
|
307
|
-
rendererBackend = "webgl";
|
|
308
|
-
rendererPreference = "auto";
|
|
309
|
-
scene = null;
|
|
310
|
-
mathEnvironment = null;
|
|
311
|
-
overlayManager = null;
|
|
312
|
-
avatarRoot = null;
|
|
313
|
-
camera = null;
|
|
314
|
-
clock = new THREE.Clock();
|
|
315
|
-
vrm = null;
|
|
316
|
-
mixer = null;
|
|
317
|
-
idleAction = null;
|
|
318
|
-
idleLoadPromise = null;
|
|
319
|
-
animationFrameId = null;
|
|
320
|
-
onUpdate = null;
|
|
321
|
-
initialized = false;
|
|
322
|
-
loadingAborted = false;
|
|
323
|
-
vrmLoadRequestId = 0;
|
|
324
|
-
vrmReady = false;
|
|
325
|
-
lastLoadError = null;
|
|
326
|
-
teleportProgress = 1.0;
|
|
327
|
-
loadingProgress = 0;
|
|
328
|
-
/** Timestamp (from elapsedTime) when the teleport dissolve finished. */
|
|
329
|
-
teleportCompleteTime = -Infinity;
|
|
330
|
-
teleportProgressUniform = null;
|
|
331
|
-
teleportDissolvedMaterials = [];
|
|
332
|
-
teleportFallbackShaders = [];
|
|
333
|
-
teleportSparkles = null;
|
|
334
|
-
revealStarted = false;
|
|
335
|
-
mouthValue = 0;
|
|
336
|
-
mouthSmoothed = 0;
|
|
337
|
-
vrmName = null;
|
|
338
|
-
lookAtTarget = new THREE.Vector3(0, 0.5, 0);
|
|
339
|
-
idleGlbUrl = resolveAppAssetUrl("animations/idle.glb.gz");
|
|
340
|
-
outgoingVrm = null;
|
|
341
|
-
outgoingMixer = null;
|
|
342
|
-
cameraAnimation = {
|
|
343
|
-
...DEFAULT_CAMERA_ANIMATION,
|
|
344
|
-
};
|
|
345
|
-
baseCameraPosition = new THREE.Vector3();
|
|
346
|
-
elapsedTime = 0;
|
|
347
|
-
speaking = false;
|
|
348
|
-
speakingStartTime = 0;
|
|
349
|
-
blinkController = new VrmBlinkController();
|
|
350
|
-
cameraManager = new VrmCameraManager();
|
|
351
|
-
emoteAction = null;
|
|
352
|
-
emoteTimeout = null;
|
|
353
|
-
emoteCompletionCleanup = null;
|
|
354
|
-
emoteClipCache = new Map();
|
|
355
|
-
emoteRequestId = 0;
|
|
356
|
-
controls = null;
|
|
357
|
-
/** Key light used for avatar shadows — toggled in low-power mode. */
|
|
358
|
-
keyDirectionalLight = null;
|
|
359
|
-
/** When true, cap effective `devicePixelRatio` at 1 (fewer shaded pixels on Retina). */
|
|
360
|
-
lowPowerRenderMode = false;
|
|
361
|
-
/**
|
|
362
|
-
* When true, skip every other animation tick (~half display rate). Independent
|
|
363
|
-
* of {@link lowPowerRenderMode}; `Clock.getDelta()` on active ticks absorbs skips.
|
|
364
|
-
*/
|
|
365
|
-
halfFramerateMode = false;
|
|
366
|
-
halfFramerateSkipNext = false;
|
|
367
|
-
paused = false;
|
|
368
|
-
/**
|
|
369
|
-
* When true, only VRM idle/physics keep running (document hidden + user opt-in).
|
|
370
|
-
*/
|
|
371
|
-
minimalBackgroundMode = false;
|
|
372
|
-
interactionEnabled = false;
|
|
373
|
-
interactionMode = "free";
|
|
374
|
-
cameraProfile = "chat";
|
|
375
|
-
pointerParallaxEnabled = false;
|
|
376
|
-
pointerParallaxTarget = new THREE.Vector2();
|
|
377
|
-
pointerParallaxCurrent = new THREE.Vector2();
|
|
378
|
-
pointerParallaxPosition = new THREE.Vector3();
|
|
379
|
-
pointerParallaxLookAt = new THREE.Vector3();
|
|
380
|
-
dragOrbitTarget = new THREE.Vector2();
|
|
381
|
-
dragOrbitCurrent = new THREE.Vector2();
|
|
382
|
-
companionZoomTarget = 0;
|
|
383
|
-
companionZoomCurrent = 0;
|
|
384
|
-
cameraXOffsetTarget = 0;
|
|
385
|
-
cameraXOffsetCurrent = 0;
|
|
386
|
-
/** Orbital yaw offset applied by the editor camera shift. */
|
|
387
|
-
cameraYawOffsetTarget = 0;
|
|
388
|
-
cameraYawOffsetCurrent = 0;
|
|
389
|
-
avatarLookTarget = null;
|
|
390
|
-
headLookTarget = new THREE.Vector2();
|
|
391
|
-
headLookCurrent = new THREE.Vector2();
|
|
392
|
-
clearEmoteTimeout() {
|
|
393
|
-
if (this.emoteTimeout !== null) {
|
|
394
|
-
clearTimeout(this.emoteTimeout);
|
|
395
|
-
this.emoteTimeout = null;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
clearEmoteCompletionCleanup() {
|
|
399
|
-
this.emoteCompletionCleanup?.();
|
|
400
|
-
this.emoteCompletionCleanup = null;
|
|
401
|
-
}
|
|
402
|
-
clearPendingEmoteCompletion() {
|
|
403
|
-
this.clearEmoteTimeout();
|
|
404
|
-
this.clearEmoteCompletionCleanup();
|
|
405
|
-
}
|
|
406
|
-
watchOneShotEmoteCompletion(mixer, action, requestId, fallbackDurationSeconds) {
|
|
407
|
-
const handleFinished = (event) => {
|
|
408
|
-
if (event.action !== action)
|
|
409
|
-
return;
|
|
410
|
-
if (this.emoteRequestId !== requestId || this.emoteAction !== action) {
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
this.stopEmote();
|
|
414
|
-
};
|
|
415
|
-
mixer.addEventListener("finished", handleFinished);
|
|
416
|
-
this.emoteCompletionCleanup = () => {
|
|
417
|
-
mixer.removeEventListener("finished", handleFinished);
|
|
418
|
-
};
|
|
419
|
-
const safeDuration = Number.isFinite(fallbackDurationSeconds) && fallbackDurationSeconds > 0
|
|
420
|
-
? fallbackDurationSeconds
|
|
421
|
-
: 3;
|
|
422
|
-
// Keep a timer fallback in case the mixer completion event is missed.
|
|
423
|
-
this.emoteTimeout = setTimeout(() => {
|
|
424
|
-
if (this.emoteRequestId !== requestId || this.emoteAction !== action) {
|
|
425
|
-
return;
|
|
426
|
-
}
|
|
427
|
-
this.stopEmote();
|
|
428
|
-
}, Math.max(0.25, safeDuration + 0.1) * 1000);
|
|
429
|
-
}
|
|
430
|
-
activateAction(action) {
|
|
431
|
-
action.enabled = true;
|
|
432
|
-
action.paused = false;
|
|
433
|
-
action.setEffectiveTimeScale(1);
|
|
434
|
-
action.setEffectiveWeight(1);
|
|
435
|
-
action.play();
|
|
436
|
-
}
|
|
437
|
-
async ensureIdleAction(vrm, mixer) {
|
|
438
|
-
if (this.idleAction)
|
|
439
|
-
return this.idleAction;
|
|
440
|
-
if (this.idleLoadPromise)
|
|
441
|
-
return this.idleLoadPromise;
|
|
442
|
-
this.idleLoadPromise = (async () => {
|
|
443
|
-
const clip = await loadIdleClip(vrm, this.idleGlbUrl, this.animationLoaderContext);
|
|
444
|
-
if (!clip || this.loadingAborted || this.vrm !== vrm) {
|
|
445
|
-
return null;
|
|
446
|
-
}
|
|
447
|
-
const activeMixer = this.mixer ?? mixer;
|
|
448
|
-
if (!activeMixer || this.vrm !== vrm) {
|
|
449
|
-
return null;
|
|
450
|
-
}
|
|
451
|
-
const action = activeMixer.clipAction(clip);
|
|
452
|
-
action.reset();
|
|
453
|
-
action.setLoop(THREE.LoopRepeat, Infinity);
|
|
454
|
-
action.timeScale = 1.0;
|
|
455
|
-
this.idleAction = action;
|
|
456
|
-
activeMixer.update(1 / 60);
|
|
457
|
-
return action;
|
|
458
|
-
})().finally(() => {
|
|
459
|
-
this.idleLoadPromise = null;
|
|
460
|
-
});
|
|
461
|
-
return this.idleLoadPromise;
|
|
462
|
-
}
|
|
463
|
-
restoreIdleAfterEmote(activeEmote, fadeDuration, vrm, mixer) {
|
|
464
|
-
void this.ensureIdleAction(vrm, mixer).then((idleAction) => {
|
|
465
|
-
if (!idleAction || this.loadingAborted || this.vrm !== vrm) {
|
|
466
|
-
activeEmote?.fadeOut(fadeDuration);
|
|
467
|
-
return;
|
|
468
|
-
}
|
|
469
|
-
this.activateAction(idleAction);
|
|
470
|
-
if (activeEmote && activeEmote !== idleAction) {
|
|
471
|
-
idleAction.crossFadeFrom(activeEmote, fadeDuration, false);
|
|
472
|
-
}
|
|
473
|
-
else {
|
|
474
|
-
idleAction.fadeIn(fadeDuration);
|
|
475
|
-
}
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
avatarLookRig = {
|
|
479
|
-
headBone: null,
|
|
480
|
-
neckBone: null,
|
|
481
|
-
spineBone: null,
|
|
482
|
-
};
|
|
483
|
-
tempCameraOrbitOffset = new THREE.Vector3();
|
|
484
|
-
tempCameraSpherical = new THREE.Spherical();
|
|
485
|
-
tempAvatarLookTarget = new THREE.Vector3();
|
|
486
|
-
tempAvatarLocalTarget = new THREE.Vector3();
|
|
487
|
-
tempAvatarLocalAnchor = new THREE.Vector3();
|
|
488
|
-
tempAvatarHeadWorld = new THREE.Vector3();
|
|
489
|
-
readyPromise = Promise.resolve();
|
|
490
|
-
resolveReady = null;
|
|
491
|
-
rejectReady = null;
|
|
492
|
-
releaseKnownWebGpuWarningFilter = null;
|
|
493
|
-
// Transition state
|
|
494
|
-
isCameraTransitioning = false;
|
|
495
|
-
transitionStartFov = 0;
|
|
496
|
-
transitionTargetFov = 0;
|
|
497
|
-
transitionStartPos = new THREE.Vector3();
|
|
498
|
-
transitionTargetPos = new THREE.Vector3();
|
|
499
|
-
transitionStartLookAt = new THREE.Vector3();
|
|
500
|
-
transitionTargetLookAt = new THREE.Vector3();
|
|
501
|
-
transitionProgress = 0;
|
|
502
|
-
transitionDuration = CAMERA_PROFILE_TRANSITION_DURATION_SECONDS;
|
|
503
|
-
handleControlStart = () => {
|
|
504
|
-
if (!this.interactionEnabled)
|
|
505
|
-
return;
|
|
506
|
-
};
|
|
507
|
-
handleControlEnd = () => {
|
|
508
|
-
if (!this.interactionEnabled)
|
|
509
|
-
return;
|
|
510
|
-
if (this.controls) {
|
|
511
|
-
this.lookAtTarget.copy(this.controls.target);
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
scheduleNextFrame() {
|
|
515
|
-
if (!this.initialized || this.paused || this.animationFrameId !== null) {
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
if (this.renderer?.setAnimationLoop) {
|
|
519
|
-
this.animationFrameId = 1;
|
|
520
|
-
this.renderer.setAnimationLoop(() => {
|
|
521
|
-
this.loop();
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
else {
|
|
525
|
-
this.animationFrameId = requestAnimationFrame(() => {
|
|
526
|
-
this.animationFrameId = null;
|
|
527
|
-
this.loop();
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
stopLoop() {
|
|
532
|
-
if (this.animationFrameId !== null) {
|
|
533
|
-
if (this.renderer?.setAnimationLoop) {
|
|
534
|
-
this.renderer.setAnimationLoop(null);
|
|
535
|
-
}
|
|
536
|
-
else {
|
|
537
|
-
cancelAnimationFrame(this.animationFrameId);
|
|
538
|
-
}
|
|
539
|
-
this.animationFrameId = null;
|
|
540
|
-
}
|
|
541
|
-
this.clock.stop();
|
|
542
|
-
}
|
|
543
|
-
/**
|
|
544
|
-
* Re-applies `setPixelRatio` from DPR and battery policy, then
|
|
545
|
-
* resizes the drawing buffer to match the canvas CSS size.
|
|
546
|
-
*
|
|
547
|
-
* **WHY:** `setPixelRatio` alone does not always refit the buffer after
|
|
548
|
-
* snapshot capture or when toggling low-power mode mid-session.
|
|
549
|
-
*/
|
|
550
|
-
applyRendererPixelRatio() {
|
|
551
|
-
if (!this.renderer || !this.camera)
|
|
552
|
-
return;
|
|
553
|
-
const base = getRendererPixelRatio();
|
|
554
|
-
const ratio = this.lowPowerRenderMode ? Math.min(base, 1) : base;
|
|
555
|
-
this.renderer.setPixelRatio(ratio);
|
|
556
|
-
const canvas = this.renderer.domElement;
|
|
557
|
-
if (!canvas)
|
|
558
|
-
return;
|
|
559
|
-
const w = canvas.clientWidth;
|
|
560
|
-
const h = canvas.clientHeight;
|
|
561
|
-
if (w > 0 && h > 0) {
|
|
562
|
-
this.resize(w, h);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
/** Disable expensive directional shadow maps on battery — big GPU savings. */
|
|
566
|
-
applyLowPowerShadowPolicy() {
|
|
567
|
-
const light = this.keyDirectionalLight;
|
|
568
|
-
if (!light)
|
|
569
|
-
return;
|
|
570
|
-
if (this.lowPowerRenderMode) {
|
|
571
|
-
light.castShadow = false;
|
|
572
|
-
}
|
|
573
|
-
else {
|
|
574
|
-
light.castShadow = true;
|
|
575
|
-
light.shadow.mapSize.setScalar(1024);
|
|
576
|
-
}
|
|
577
|
-
const r = this.renderer;
|
|
578
|
-
if (r?.shadowMap) {
|
|
579
|
-
r.shadowMap.needsUpdate = true;
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
resumeLoop() {
|
|
583
|
-
if (!this.initialized || this.paused)
|
|
584
|
-
return;
|
|
585
|
-
this.clock.start();
|
|
586
|
-
this.scheduleNextFrame();
|
|
587
|
-
}
|
|
588
|
-
applyCompanionZoom(camera, stableDelta) {
|
|
589
|
-
const isCompanionProfile = this.cameraProfile === "companion";
|
|
590
|
-
const follow = Math.min(1, stableDelta * 10);
|
|
591
|
-
const targetZoom = isCompanionProfile ? this.companionZoomTarget : 0;
|
|
592
|
-
this.companionZoomCurrent = THREE.MathUtils.lerp(this.companionZoomCurrent, targetZoom, follow);
|
|
593
|
-
if (this.companionZoomCurrent < 1e-4)
|
|
594
|
-
return;
|
|
595
|
-
const baseRadius = this.baseCameraPosition.distanceTo(this.lookAtTarget);
|
|
596
|
-
if (!Number.isFinite(baseRadius) || baseRadius < 1e-4)
|
|
597
|
-
return;
|
|
598
|
-
const orbitOffset = this.tempCameraOrbitOffset
|
|
599
|
-
.copy(camera.position)
|
|
600
|
-
.sub(this.lookAtTarget);
|
|
601
|
-
if (orbitOffset.lengthSq() < 1e-6)
|
|
602
|
-
return;
|
|
603
|
-
const spherical = this.tempCameraSpherical.setFromVector3(orbitOffset);
|
|
604
|
-
const nearRadius = Math.max(COMPANION_ZOOM_MIN_RADIUS, baseRadius * COMPANION_ZOOM_NEAR_FACTOR);
|
|
605
|
-
spherical.radius = THREE.MathUtils.lerp(baseRadius, nearRadius, this.companionZoomCurrent);
|
|
606
|
-
camera.position
|
|
607
|
-
.copy(this.lookAtTarget)
|
|
608
|
-
.add(orbitOffset.setFromSpherical(spherical));
|
|
609
|
-
}
|
|
610
|
-
configureAvatarLookTracking(vrm) {
|
|
611
|
-
const target = this.avatarLookTarget;
|
|
612
|
-
if (target) {
|
|
613
|
-
target.position.set(0, 1.5, 2);
|
|
614
|
-
target.updateMatrixWorld(true);
|
|
615
|
-
}
|
|
616
|
-
if (vrm.lookAt && target) {
|
|
617
|
-
vrm.lookAt.autoUpdate = true;
|
|
618
|
-
vrm.lookAt.target = target;
|
|
619
|
-
}
|
|
620
|
-
const headBone = vrm.humanoid?.getRawBoneNode("head") ?? null;
|
|
621
|
-
const neckBone = vrm.humanoid?.getRawBoneNode("neck") ?? null;
|
|
622
|
-
const spineBone = vrm.humanoid?.getRawBoneNode("upperChest") ??
|
|
623
|
-
vrm.humanoid?.getRawBoneNode("chest") ??
|
|
624
|
-
vrm.humanoid?.getRawBoneNode("spine") ??
|
|
625
|
-
null;
|
|
626
|
-
this.avatarLookRig = {
|
|
627
|
-
headBone,
|
|
628
|
-
neckBone,
|
|
629
|
-
spineBone,
|
|
630
|
-
};
|
|
631
|
-
this.headLookTarget.set(0, 0);
|
|
632
|
-
this.headLookCurrent.set(0, 0);
|
|
633
|
-
}
|
|
634
|
-
updateAvatarLookTarget(camera, stableDelta) {
|
|
635
|
-
const target = this.avatarLookTarget;
|
|
636
|
-
if (!target)
|
|
637
|
-
return;
|
|
638
|
-
this.tempAvatarLookTarget.copy(camera.position);
|
|
639
|
-
const follow = Math.min(1, stableDelta * 24);
|
|
640
|
-
target.position.lerp(this.tempAvatarLookTarget, follow);
|
|
641
|
-
target.updateMatrixWorld(true);
|
|
642
|
-
}
|
|
643
|
-
refreshAvatarEyeTracking() {
|
|
644
|
-
const vrm = this.vrm;
|
|
645
|
-
if (!vrm?.lookAt || !this.avatarLookTarget)
|
|
646
|
-
return;
|
|
647
|
-
vrm.lookAt.update(0);
|
|
648
|
-
vrm.expressionManager?.update();
|
|
649
|
-
}
|
|
650
|
-
applyAvatarHeadTracking(camera, stableDelta) {
|
|
651
|
-
const vrm = this.vrm;
|
|
652
|
-
const { headBone, neckBone, spineBone } = this.avatarLookRig;
|
|
653
|
-
if (!vrm || !headBone)
|
|
654
|
-
return;
|
|
655
|
-
const headParent = headBone.parent;
|
|
656
|
-
if (!headParent || typeof headParent.worldToLocal !== "function")
|
|
657
|
-
return;
|
|
658
|
-
if (typeof THREE.Euler !== "function" ||
|
|
659
|
-
typeof THREE.Quaternion !== "function" ||
|
|
660
|
-
typeof headBone.quaternion.clone !== "function") {
|
|
661
|
-
return;
|
|
662
|
-
}
|
|
663
|
-
const lookAtState = vrm.lookAt;
|
|
664
|
-
const lookAtYawDegrees = lookAtState?._yaw;
|
|
665
|
-
const lookAtPitchDegrees = lookAtState?._pitch;
|
|
666
|
-
if (Number.isFinite(lookAtYawDegrees) &&
|
|
667
|
-
Number.isFinite(lookAtPitchDegrees)) {
|
|
668
|
-
this.headLookTarget.set(THREE.MathUtils.clamp(THREE.MathUtils.degToRad(lookAtYawDegrees || 0), -0.55, 0.55), THREE.MathUtils.clamp(THREE.MathUtils.degToRad(lookAtPitchDegrees || 0), -0.3, 0.24));
|
|
669
|
-
}
|
|
670
|
-
else {
|
|
671
|
-
headBone.getWorldPosition(this.tempAvatarHeadWorld);
|
|
672
|
-
this.tempAvatarLocalTarget.copy(camera.position);
|
|
673
|
-
this.tempAvatarLocalTarget.y -= 0.04;
|
|
674
|
-
headParent.worldToLocal(this.tempAvatarLocalTarget);
|
|
675
|
-
headParent.worldToLocal(this.tempAvatarLocalAnchor.copy(this.tempAvatarHeadWorld));
|
|
676
|
-
this.tempAvatarLocalTarget.sub(this.tempAvatarLocalAnchor);
|
|
677
|
-
const planarDistance = Math.max(1e-4, Math.hypot(this.tempAvatarLocalTarget.x, this.tempAvatarLocalTarget.z));
|
|
678
|
-
this.headLookTarget.set(THREE.MathUtils.clamp(Math.atan2(-this.tempAvatarLocalTarget.x, Math.max(-this.tempAvatarLocalTarget.z, 1e-4)), -0.55, 0.55), THREE.MathUtils.clamp(Math.atan2(this.tempAvatarLocalTarget.y, planarDistance), -0.3, 0.24));
|
|
679
|
-
}
|
|
680
|
-
this.headLookCurrent.lerp(this.headLookTarget, Math.min(1, stableDelta * 4.5));
|
|
681
|
-
const applyTrackedBone = (bone, yawWeight, pitchWeight) => {
|
|
682
|
-
if (!bone?.quaternion || typeof bone.quaternion.clone !== "function") {
|
|
683
|
-
return;
|
|
684
|
-
}
|
|
685
|
-
const offsetEuler = new THREE.Euler(this.headLookCurrent.y * pitchWeight, this.headLookCurrent.x * yawWeight, 0, "YXZ");
|
|
686
|
-
const offsetQuaternion = new THREE.Quaternion().setFromEuler(offsetEuler);
|
|
687
|
-
const animatedPose = bone.quaternion.clone();
|
|
688
|
-
bone.quaternion.copy(animatedPose).multiply(offsetQuaternion);
|
|
689
|
-
};
|
|
690
|
-
applyTrackedBone(spineBone, 0.12, 0.06);
|
|
691
|
-
applyTrackedBone(neckBone, 0.3, 0.18);
|
|
692
|
-
applyTrackedBone(headBone, 0.52, 0.28);
|
|
693
|
-
}
|
|
694
|
-
toDebugVector3(vector) {
|
|
695
|
-
if (!vector)
|
|
696
|
-
return null;
|
|
697
|
-
return {
|
|
698
|
-
x: Number(vector.x.toFixed(4)),
|
|
699
|
-
y: Number(vector.y.toFixed(4)),
|
|
700
|
-
z: Number(vector.z.toFixed(4)),
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
toDebugBounds(object) {
|
|
704
|
-
if (!object)
|
|
705
|
-
return null;
|
|
706
|
-
const bounds = new THREE.Box3().setFromObject(object);
|
|
707
|
-
if (bounds.isEmpty())
|
|
708
|
-
return null;
|
|
709
|
-
return this.toDebugBoundsFromBox(bounds);
|
|
710
|
-
}
|
|
711
|
-
toDebugBoundsFromBox(bounds) {
|
|
712
|
-
if (!bounds || bounds.isEmpty())
|
|
713
|
-
return null;
|
|
714
|
-
const center = bounds.getCenter(new THREE.Vector3());
|
|
715
|
-
const size = bounds.getSize(new THREE.Vector3());
|
|
716
|
-
const min = this.toDebugVector3(bounds.min.clone());
|
|
717
|
-
const max = this.toDebugVector3(bounds.max.clone());
|
|
718
|
-
const centerVector = this.toDebugVector3(center);
|
|
719
|
-
const sizeVector = this.toDebugVector3(size);
|
|
720
|
-
if (!min || !max || !centerVector || !sizeVector)
|
|
721
|
-
return null;
|
|
722
|
-
return {
|
|
723
|
-
min,
|
|
724
|
-
max,
|
|
725
|
-
center: centerVector,
|
|
726
|
-
size: sizeVector,
|
|
727
|
-
};
|
|
728
|
-
}
|
|
729
|
-
getDebugInfo() {
|
|
730
|
-
this.scene?.updateMatrixWorld(true);
|
|
731
|
-
this.vrm?.scene.updateMatrixWorld(true);
|
|
732
|
-
const cameraRotation = this.camera
|
|
733
|
-
? new THREE.Vector3(this.camera.rotation.x, this.camera.rotation.y, this.camera.rotation.z)
|
|
734
|
-
: null;
|
|
735
|
-
const lookAtTarget = this.toDebugVector3(this.lookAtTarget) ??
|
|
736
|
-
{ x: 0, y: 0, z: 0 };
|
|
737
|
-
return {
|
|
738
|
-
initialized: this.initialized,
|
|
739
|
-
rendererBackend: this.rendererBackend,
|
|
740
|
-
cameraProfile: this.cameraProfile,
|
|
741
|
-
sceneChildren: this.scene?.children.map((child) => child.name || child.type) ?? [],
|
|
742
|
-
camera: {
|
|
743
|
-
parentName: this.camera?.parent?.name ?? null,
|
|
744
|
-
position: this.toDebugVector3(this.camera?.position ?? null),
|
|
745
|
-
rotation: this.toDebugVector3(cameraRotation),
|
|
746
|
-
fov: this.camera?.fov ?? null,
|
|
747
|
-
lookAtTarget,
|
|
748
|
-
},
|
|
749
|
-
avatar: {
|
|
750
|
-
loaded: this.vrm !== null,
|
|
751
|
-
ready: this.vrmReady,
|
|
752
|
-
parentName: this.vrm?.scene.parent?.name ?? null,
|
|
753
|
-
position: this.toDebugVector3(this.vrm?.scene.position ?? null),
|
|
754
|
-
scale: this.toDebugVector3(this.vrm?.scene.scale ?? null),
|
|
755
|
-
bounds: this.toDebugBounds(this.vrm?.scene ?? null),
|
|
756
|
-
},
|
|
757
|
-
};
|
|
758
|
-
}
|
|
759
|
-
setDebugAvatarVisible(visible) {
|
|
760
|
-
if (!this.vrm)
|
|
761
|
-
return;
|
|
762
|
-
this.vrm.scene.visible = visible;
|
|
763
|
-
}
|
|
764
|
-
setDebugCamera(position, target) {
|
|
765
|
-
if (!this.camera)
|
|
766
|
-
return;
|
|
767
|
-
this.isCameraTransitioning = false;
|
|
768
|
-
this.camera.position.copy(position);
|
|
769
|
-
this.baseCameraPosition.copy(position);
|
|
770
|
-
this.lookAtTarget.copy(target);
|
|
771
|
-
this.controls?.target.copy(target);
|
|
772
|
-
this.controls?.update();
|
|
773
|
-
this.camera.lookAt(target);
|
|
774
|
-
}
|
|
775
|
-
startCameraTransition(startPos, startLookAt, startFov, targetPos, targetLookAt, targetFov, durationSeconds) {
|
|
776
|
-
if (!this.camera)
|
|
777
|
-
return;
|
|
778
|
-
this.transitionStartFov = startFov;
|
|
779
|
-
this.transitionTargetFov = targetFov;
|
|
780
|
-
this.transitionStartPos.copy(startPos);
|
|
781
|
-
this.transitionTargetPos.copy(targetPos);
|
|
782
|
-
this.transitionStartLookAt.copy(startLookAt);
|
|
783
|
-
this.transitionTargetLookAt.copy(targetLookAt);
|
|
784
|
-
this.transitionDuration = Math.max(0.01, durationSeconds);
|
|
785
|
-
this.camera.fov = startFov;
|
|
786
|
-
this.camera.position.copy(startPos);
|
|
787
|
-
this.camera.updateProjectionMatrix();
|
|
788
|
-
this.baseCameraPosition.copy(startPos);
|
|
789
|
-
this.lookAtTarget.copy(startLookAt);
|
|
790
|
-
if (this.controls) {
|
|
791
|
-
this.controls.target.copy(startLookAt);
|
|
792
|
-
this.controls.update();
|
|
793
|
-
}
|
|
794
|
-
this.camera.lookAt(startLookAt);
|
|
795
|
-
this.isCameraTransitioning = true;
|
|
796
|
-
this.transitionProgress = 0;
|
|
797
|
-
}
|
|
798
|
-
transitionCameraToFramedAvatar(vrm, durationSeconds) {
|
|
799
|
-
if (!this.camera)
|
|
800
|
-
return;
|
|
801
|
-
const startPos = new THREE.Vector3().copy(this.baseCameraPosition);
|
|
802
|
-
const startLookAt = new THREE.Vector3().copy(this.lookAtTarget);
|
|
803
|
-
const startFov = this.camera.fov;
|
|
804
|
-
const targetLookAt = new THREE.Vector3();
|
|
805
|
-
const defaultProfileTargetPos = new THREE.Vector3();
|
|
806
|
-
const dummyCamera = this.camera.clone();
|
|
807
|
-
this.cameraManager.centerAndFrame(vrm, dummyCamera, this.controls, this.cameraProfile, targetLookAt, defaultProfileTargetPos, (c) => this.cameraManager.applyInteractionMode(c, this.interactionMode), true);
|
|
808
|
-
// To prevent frame-based dynamic offsets (yaw, sway, zoom) from accumulating and causing camera spin,
|
|
809
|
-
// compute the pristine tracking offset from baseCameraPosition, which is unaffected by post-process
|
|
810
|
-
// modifiers in applyCameraMotion. We do NOT use OrbitControls' getDistance/getAzimuthalAngle because
|
|
811
|
-
// OrbitControls reads from `camera.position` which has the temporary view shifts applied to it every frame.
|
|
812
|
-
const currentOffset = new THREE.Vector3();
|
|
813
|
-
currentOffset.copy(this.baseCameraPosition).sub(startLookAt);
|
|
814
|
-
const targetPos = new THREE.Vector3().copy(targetLookAt).add(currentOffset);
|
|
815
|
-
this.startCameraTransition(startPos, startLookAt, startFov, targetPos, targetLookAt, dummyCamera.fov, durationSeconds);
|
|
816
|
-
}
|
|
817
|
-
whenReady() {
|
|
818
|
-
return this.readyPromise;
|
|
819
|
-
}
|
|
820
|
-
resetReadyPromise() {
|
|
821
|
-
this.readyPromise = new Promise((resolve, reject) => {
|
|
822
|
-
this.resolveReady = resolve;
|
|
823
|
-
this.rejectReady = reject;
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
settleReady(error) {
|
|
827
|
-
if (error) {
|
|
828
|
-
this.rejectReady?.(error);
|
|
829
|
-
}
|
|
830
|
-
else {
|
|
831
|
-
this.resolveReady?.();
|
|
832
|
-
}
|
|
833
|
-
this.resolveReady = null;
|
|
834
|
-
this.rejectReady = null;
|
|
835
|
-
}
|
|
836
|
-
setup(canvas, onUpdate, options) {
|
|
837
|
-
if (this.initialized && this.renderer?.domElement === canvas) {
|
|
838
|
-
this.onUpdate = onUpdate;
|
|
839
|
-
return;
|
|
840
|
-
}
|
|
841
|
-
if (this.initialized)
|
|
842
|
-
this.dispose();
|
|
843
|
-
this.onUpdate = onUpdate;
|
|
844
|
-
this.loadingAborted = false;
|
|
845
|
-
this.rendererPreference = options?.rendererPreference ?? "auto";
|
|
846
|
-
this.resetReadyPromise();
|
|
847
|
-
// Async renderer creation: tries WebGPU, falls back to WebGL.
|
|
848
|
-
// setup() remains synchronous for callers; the loop starts after init resolves.
|
|
849
|
-
void (async () => {
|
|
850
|
-
try {
|
|
851
|
-
const { backend, renderer } = await createRenderer(canvas, this.rendererPreference);
|
|
852
|
-
const releaseKnownWebGpuWarningFilter = backend === "webgpu" ? installKnownVrmWebGpuWarningFilter() : null;
|
|
853
|
-
// Guard: if dispose() was called while we were awaiting, abort.
|
|
854
|
-
if (this.loadingAborted) {
|
|
855
|
-
releaseKnownWebGpuWarningFilter?.();
|
|
856
|
-
renderer.dispose();
|
|
857
|
-
this.settleReady();
|
|
858
|
-
return;
|
|
859
|
-
}
|
|
860
|
-
this.releaseKnownWebGpuWarningFilter = releaseKnownWebGpuWarningFilter;
|
|
861
|
-
this.renderer = renderer;
|
|
862
|
-
renderer.setClearColor(0x000000, 0);
|
|
863
|
-
if (backend === "webgl") {
|
|
864
|
-
const webglRenderer = renderer;
|
|
865
|
-
webglRenderer.shadowMap.enabled = true;
|
|
866
|
-
webglRenderer.shadowMap.type = THREE.PCFSoftShadowMap;
|
|
867
|
-
webglRenderer.toneMapping = THREE.NoToneMapping;
|
|
868
|
-
webglRenderer.toneMappingExposure = 1.0;
|
|
869
|
-
webglRenderer.outputColorSpace = THREE.SRGBColorSpace;
|
|
870
|
-
}
|
|
871
|
-
this.rendererBackend = backend;
|
|
872
|
-
const scene = new THREE.Scene();
|
|
873
|
-
this.scene = scene;
|
|
874
|
-
// Build construct environment (white void, floating screens, fog)
|
|
875
|
-
this.mathEnvironment = new MathEnvironment();
|
|
876
|
-
this.mathEnvironment.build(scene, "light");
|
|
877
|
-
const avatarRoot = new THREE.Group();
|
|
878
|
-
avatarRoot.name = "AvatarRoot";
|
|
879
|
-
scene.add(avatarRoot);
|
|
880
|
-
this.avatarRoot = avatarRoot;
|
|
881
|
-
const avatarLookTarget = new THREE.Group();
|
|
882
|
-
avatarLookTarget.name = "AvatarLookTarget";
|
|
883
|
-
scene.add(avatarLookTarget);
|
|
884
|
-
this.avatarLookTarget = avatarLookTarget;
|
|
885
|
-
const cameraRig = new THREE.Group();
|
|
886
|
-
cameraRig.name = "AvatarCameraRig";
|
|
887
|
-
scene.add(cameraRig);
|
|
888
|
-
const camera = new THREE.PerspectiveCamera(30, 1, 0.1, 20);
|
|
889
|
-
camera.position.set(0, 1.2, 5.0);
|
|
890
|
-
cameraRig.add(camera);
|
|
891
|
-
this.camera = camera;
|
|
892
|
-
const controls = new OrbitControls(camera, renderer.domElement);
|
|
893
|
-
controls.enableDamping = false;
|
|
894
|
-
controls.target.copy(this.lookAtTarget);
|
|
895
|
-
controls.addEventListener("start", this.handleControlStart);
|
|
896
|
-
controls.addEventListener("end", this.handleControlEnd);
|
|
897
|
-
this.cameraManager.applyInteractionMode(controls, this.interactionMode);
|
|
898
|
-
controls.update();
|
|
899
|
-
this.controls = controls;
|
|
900
|
-
this.setInteractionEnabled(this.interactionEnabled);
|
|
901
|
-
// Apply deferred camera profile (setCameraProfile may have been called
|
|
902
|
-
// before the camera existed) and initialize baseCameraPosition so that
|
|
903
|
-
// drag-orbit and companion-zoom have a valid reference point from the
|
|
904
|
-
// very first frame.
|
|
905
|
-
this.cameraManager.applyCameraProfileToCamera(camera, controls, this.cameraProfile);
|
|
906
|
-
this.baseCameraPosition.copy(camera.position);
|
|
907
|
-
this.lookAtTarget.copy(controls.target);
|
|
908
|
-
const ambient = new THREE.AmbientLight(0xffffff, 1.2);
|
|
909
|
-
scene.add(ambient);
|
|
910
|
-
const keyLight = new THREE.DirectionalLight(0xffffff, 1.0);
|
|
911
|
-
keyLight.position.set(1, 1.5, 1).normalize();
|
|
912
|
-
keyLight.castShadow = true;
|
|
913
|
-
keyLight.shadow.mapSize.setScalar(1024);
|
|
914
|
-
scene.add(keyLight);
|
|
915
|
-
this.keyDirectionalLight = keyLight;
|
|
916
|
-
const fillLight = new THREE.DirectionalLight(0xffffff, 0.6);
|
|
917
|
-
fillLight.position.set(-1, 0.5, -1).normalize();
|
|
918
|
-
scene.add(fillLight);
|
|
919
|
-
this.applyRendererPixelRatio();
|
|
920
|
-
if (this.lowPowerRenderMode) {
|
|
921
|
-
this.applyLowPowerShadowPolicy();
|
|
922
|
-
}
|
|
923
|
-
// Auto-create the scene overlay manager for floating HUD panels.
|
|
924
|
-
if (!this.overlayManager && this.scene) {
|
|
925
|
-
try {
|
|
926
|
-
this.overlayManager = new SceneOverlayManager();
|
|
927
|
-
this.overlayManager.attach(this.scene);
|
|
928
|
-
}
|
|
929
|
-
catch {
|
|
930
|
-
// Overlay panels require a full 2D canvas context; gracefully
|
|
931
|
-
// skip when running in headless / test environments.
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
this.initialized = true;
|
|
935
|
-
this.resumeLoop();
|
|
936
|
-
this.settleReady();
|
|
937
|
-
}
|
|
938
|
-
catch (error) {
|
|
939
|
-
this.initialized = false;
|
|
940
|
-
this.releaseKnownWebGpuWarningFilter?.();
|
|
941
|
-
this.releaseKnownWebGpuWarningFilter = null;
|
|
942
|
-
this.renderer = null;
|
|
943
|
-
this.rendererBackend = "webgl";
|
|
944
|
-
this.scene = null;
|
|
945
|
-
this.camera = null;
|
|
946
|
-
this.controls = null;
|
|
947
|
-
this.keyDirectionalLight = null;
|
|
948
|
-
console.error("[VrmEngine] Failed to initialize renderer:", error);
|
|
949
|
-
this.settleReady(error);
|
|
950
|
-
}
|
|
951
|
-
})();
|
|
952
|
-
}
|
|
953
|
-
isInitialized() {
|
|
954
|
-
return this.initialized && this.renderer !== null;
|
|
955
|
-
}
|
|
956
|
-
dispose() {
|
|
957
|
-
this.mathEnvironment?.dispose();
|
|
958
|
-
this.mathEnvironment = null;
|
|
959
|
-
this.overlayManager?.dispose();
|
|
960
|
-
this.overlayManager = null;
|
|
961
|
-
this.loadingAborted = true;
|
|
962
|
-
this.initialized = false;
|
|
963
|
-
this.settleReady();
|
|
964
|
-
this.releaseKnownWebGpuWarningFilter?.();
|
|
965
|
-
this.releaseKnownWebGpuWarningFilter = null;
|
|
966
|
-
if (this.animationFrameId !== null) {
|
|
967
|
-
cancelAnimationFrame(this.animationFrameId);
|
|
968
|
-
this.animationFrameId = null;
|
|
969
|
-
}
|
|
970
|
-
if (this.vrm?.scene.parent) {
|
|
971
|
-
this.vrm.scene.parent.remove(this.vrm.scene);
|
|
972
|
-
VRMUtils.deepDispose(this.vrm.scene);
|
|
973
|
-
}
|
|
974
|
-
if (this.controls) {
|
|
975
|
-
this.controls.removeEventListener("start", this.handleControlStart);
|
|
976
|
-
this.controls.removeEventListener("end", this.handleControlEnd);
|
|
977
|
-
this.controls.dispose();
|
|
978
|
-
this.controls = null;
|
|
979
|
-
}
|
|
980
|
-
this.vrm = null;
|
|
981
|
-
this.vrmReady = false;
|
|
982
|
-
this.vrmName = null;
|
|
983
|
-
this.lastLoadError = null;
|
|
984
|
-
this.mixer = null;
|
|
985
|
-
this.idleAction = null;
|
|
986
|
-
this.idleLoadPromise = null;
|
|
987
|
-
this.clearPendingEmoteCompletion();
|
|
988
|
-
this.emoteAction = null;
|
|
989
|
-
this.emoteClipCache.clear();
|
|
990
|
-
this.teleportProgress = 1.0;
|
|
991
|
-
this.cleanupTeleportDissolve();
|
|
992
|
-
this.cleanupTeleportSparkles();
|
|
993
|
-
this.avatarLookTarget?.parent?.remove(this.avatarLookTarget);
|
|
994
|
-
this.avatarLookTarget = null;
|
|
995
|
-
this.avatarLookRig = {
|
|
996
|
-
headBone: null,
|
|
997
|
-
neckBone: null,
|
|
998
|
-
spineBone: null,
|
|
999
|
-
};
|
|
1000
|
-
this.headLookTarget.set(0, 0);
|
|
1001
|
-
this.headLookCurrent.set(0, 0);
|
|
1002
|
-
if (this.renderer) {
|
|
1003
|
-
this.renderer.dispose();
|
|
1004
|
-
}
|
|
1005
|
-
this.renderer = null;
|
|
1006
|
-
this.rendererBackend = "webgl";
|
|
1007
|
-
this.keyDirectionalLight = null;
|
|
1008
|
-
this.scene = null;
|
|
1009
|
-
this.avatarRoot = null;
|
|
1010
|
-
this.camera = null;
|
|
1011
|
-
this.onUpdate = null;
|
|
1012
|
-
this.paused = false;
|
|
1013
|
-
}
|
|
1014
|
-
setPaused(paused) {
|
|
1015
|
-
if (this.paused === paused)
|
|
1016
|
-
return;
|
|
1017
|
-
this.paused = paused;
|
|
1018
|
-
if (paused) {
|
|
1019
|
-
this.stopLoop();
|
|
1020
|
-
return;
|
|
1021
|
-
}
|
|
1022
|
-
this.resumeLoop();
|
|
1023
|
-
}
|
|
1024
|
-
/**
|
|
1025
|
-
* Keeps the animation/render loop alive so the avatar keeps idling while
|
|
1026
|
-
* background is hidden. Restores prior state when disabled.
|
|
1027
|
-
*/
|
|
1028
|
-
setMinimalBackgroundMode(enabled) {
|
|
1029
|
-
if (this.minimalBackgroundMode === enabled)
|
|
1030
|
-
return;
|
|
1031
|
-
this.minimalBackgroundMode = enabled;
|
|
1032
|
-
}
|
|
1033
|
-
/**
|
|
1034
|
-
* When true, caps the WebGL/WebGPU pixel ratio at **1** on top of the usual
|
|
1035
|
-
* DPR clamp and applies cheaper shadows — primarily for
|
|
1036
|
-
* **battery** on Retina. Does **not** change frame cadence; use
|
|
1037
|
-
* {@link setHalfFramerateMode} for ~half refresh rate.
|
|
1038
|
-
*
|
|
1039
|
-
* **WHY:** shader cost scales with physical pixels; `desktopGetPowerState`
|
|
1040
|
-
* → `onBattery` toggles this from the Electrobun shell without a full reload.
|
|
1041
|
-
*/
|
|
1042
|
-
setLowPowerRenderMode(enabled) {
|
|
1043
|
-
if (this.lowPowerRenderMode === enabled)
|
|
1044
|
-
return;
|
|
1045
|
-
this.lowPowerRenderMode = enabled;
|
|
1046
|
-
this.applyRendererPixelRatio();
|
|
1047
|
-
this.applyLowPowerShadowPolicy();
|
|
1048
|
-
}
|
|
1049
|
-
/**
|
|
1050
|
-
* When true, the main loop skips every other tick so `renderer.render` runs at
|
|
1051
|
-
* roughly half the display refresh rate; skipped ticks do not call
|
|
1052
|
-
* `clock.getDelta()`, so the next tick’s delta spans two intervals.
|
|
1053
|
-
*/
|
|
1054
|
-
setHalfFramerateMode(enabled) {
|
|
1055
|
-
if (this.halfFramerateMode === enabled)
|
|
1056
|
-
return;
|
|
1057
|
-
this.halfFramerateMode = enabled;
|
|
1058
|
-
this.halfFramerateSkipNext = false;
|
|
1059
|
-
}
|
|
1060
|
-
setInteractionEnabled(enabled) {
|
|
1061
|
-
this.interactionEnabled = enabled;
|
|
1062
|
-
if (this.controls) {
|
|
1063
|
-
this.controls.enabled = enabled;
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
setInteractionMode(mode) {
|
|
1067
|
-
this.interactionMode = mode;
|
|
1068
|
-
if (this.controls) {
|
|
1069
|
-
this.cameraManager.applyInteractionMode(this.controls, mode);
|
|
1070
|
-
this.controls.update();
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
setCameraProfile(profile) {
|
|
1074
|
-
if (this.cameraProfile === profile)
|
|
1075
|
-
return;
|
|
1076
|
-
if (this.camera) {
|
|
1077
|
-
const startFov = this.camera.fov;
|
|
1078
|
-
const startPos = new THREE.Vector3().copy(this.camera.position);
|
|
1079
|
-
const startLookAt = new THREE.Vector3().copy(this.lookAtTarget);
|
|
1080
|
-
this.cameraProfile = profile;
|
|
1081
|
-
const targetLookAt = new THREE.Vector3().copy(this.lookAtTarget);
|
|
1082
|
-
const targetPos = new THREE.Vector3().copy(this.camera.position);
|
|
1083
|
-
let targetFov = this.camera.fov;
|
|
1084
|
-
if (this.vrm) {
|
|
1085
|
-
const dummyCamera = this.camera.clone();
|
|
1086
|
-
this.cameraManager.centerAndFrame(this.vrm, dummyCamera, this.controls, this.cameraProfile, targetLookAt, targetPos, (c) => this.cameraManager.applyInteractionMode(c, this.interactionMode), true);
|
|
1087
|
-
targetFov = dummyCamera.fov;
|
|
1088
|
-
}
|
|
1089
|
-
else {
|
|
1090
|
-
const dummyCamera = this.camera.clone();
|
|
1091
|
-
this.cameraManager.applyCameraProfileToCamera(dummyCamera, this.controls, this.cameraProfile);
|
|
1092
|
-
targetPos.copy(dummyCamera.position);
|
|
1093
|
-
targetFov = dummyCamera.fov;
|
|
1094
|
-
// controls.target handles lookAt internally or we just leap
|
|
1095
|
-
if (this.controls) {
|
|
1096
|
-
// Skipping instant snap of controls.target, we let transition handle it
|
|
1097
|
-
targetLookAt.copy(this.controls.target);
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
this.startCameraTransition(startPos, startLookAt, startFov, targetPos, targetLookAt, targetFov, CAMERA_PROFILE_TRANSITION_DURATION_SECONDS);
|
|
1101
|
-
}
|
|
1102
|
-
else {
|
|
1103
|
-
this.cameraProfile = profile;
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
resize(width, height) {
|
|
1107
|
-
if (!this.renderer || !this.camera)
|
|
1108
|
-
return;
|
|
1109
|
-
if (width <= 0 || height <= 0)
|
|
1110
|
-
return;
|
|
1111
|
-
const aspect = width / height;
|
|
1112
|
-
if (!Number.isFinite(aspect) || aspect <= 0)
|
|
1113
|
-
return;
|
|
1114
|
-
this.renderer.setSize(width, height, false);
|
|
1115
|
-
this.camera.aspect = aspect;
|
|
1116
|
-
this.camera.updateProjectionMatrix();
|
|
1117
|
-
}
|
|
1118
|
-
getState() {
|
|
1119
|
-
const idlePlaying = this.idleAction?.isRunning() ?? false;
|
|
1120
|
-
return {
|
|
1121
|
-
vrmLoaded: this.vrm !== null && this.vrmReady,
|
|
1122
|
-
vrmName: this.vrmName,
|
|
1123
|
-
loadError: this.lastLoadError,
|
|
1124
|
-
idlePlaying,
|
|
1125
|
-
idleTime: this.idleAction?.time ?? 0,
|
|
1126
|
-
idleTracks: this.idleAction?.getClip()?.tracks.length ?? 0,
|
|
1127
|
-
revealStarted: this.revealStarted,
|
|
1128
|
-
loadingProgress: this.loadingProgress,
|
|
1129
|
-
};
|
|
1130
|
-
}
|
|
1131
|
-
setMouthOpen(value) {
|
|
1132
|
-
this.mouthValue = Math.max(0, Math.min(1, value));
|
|
1133
|
-
}
|
|
1134
|
-
setSpeaking(speaking) {
|
|
1135
|
-
if (speaking && !this.speaking) {
|
|
1136
|
-
this.speakingStartTime = this.elapsedTime;
|
|
1137
|
-
}
|
|
1138
|
-
this.speaking = speaking;
|
|
1139
|
-
}
|
|
1140
|
-
attachOverlayManager(manager) {
|
|
1141
|
-
this.overlayManager = manager;
|
|
1142
|
-
if (this.scene)
|
|
1143
|
-
manager.attach(this.scene);
|
|
1144
|
-
}
|
|
1145
|
-
getOverlayManager() {
|
|
1146
|
-
return this.overlayManager;
|
|
1147
|
-
}
|
|
1148
|
-
setCameraAnimation(config) {
|
|
1149
|
-
this.cameraAnimation = { ...this.cameraAnimation, ...config };
|
|
1150
|
-
}
|
|
1151
|
-
setPointerParallaxEnabled(enabled) {
|
|
1152
|
-
this.pointerParallaxEnabled = enabled;
|
|
1153
|
-
if (!enabled) {
|
|
1154
|
-
this.pointerParallaxTarget.set(0, 0);
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
setPointerParallaxTarget(x, y) {
|
|
1158
|
-
this.pointerParallaxTarget.set(THREE.MathUtils.clamp(x, -1, 1), THREE.MathUtils.clamp(y, -1, 1));
|
|
1159
|
-
}
|
|
1160
|
-
resetPointerParallax() {
|
|
1161
|
-
this.pointerParallaxTarget.set(0, 0);
|
|
1162
|
-
}
|
|
1163
|
-
setDragOrbitTarget(yaw, pitch) {
|
|
1164
|
-
this.dragOrbitTarget.set(THREE.MathUtils.clamp(yaw, -0.6, 0.6), THREE.MathUtils.clamp(pitch, -0.35, 0.35));
|
|
1165
|
-
}
|
|
1166
|
-
resetDragOrbit() {
|
|
1167
|
-
this.dragOrbitTarget.set(0, 0);
|
|
1168
|
-
}
|
|
1169
|
-
setCompanionZoomNormalized(value) {
|
|
1170
|
-
this.companionZoomTarget = THREE.MathUtils.clamp(value, 0, 1);
|
|
1171
|
-
}
|
|
1172
|
-
setCameraXOffset(offset) {
|
|
1173
|
-
this.cameraXOffsetTarget = THREE.MathUtils.clamp(offset, -3, 3);
|
|
1174
|
-
// Map the X offset to an orbital yaw offset (radians).
|
|
1175
|
-
// Positive X offset → negative theta (orbit camera to the right so
|
|
1176
|
-
// character appears on the left).
|
|
1177
|
-
this.cameraYawOffsetTarget = -offset * 0.7;
|
|
1178
|
-
}
|
|
1179
|
-
async setWorldUrl(_url) {
|
|
1180
|
-
// World backgrounds removed — math environment managed separately.
|
|
1181
|
-
}
|
|
1182
|
-
/** Switch the mathematical environment theme. */
|
|
1183
|
-
setEnvironmentTheme(theme) {
|
|
1184
|
-
this.mathEnvironment?.setTheme(theme);
|
|
1185
|
-
}
|
|
1186
|
-
async playEmote(path, duration, loop) {
|
|
1187
|
-
const vrm = this.vrm;
|
|
1188
|
-
const mixer = this.mixer;
|
|
1189
|
-
if (!vrm || !mixer)
|
|
1190
|
-
return;
|
|
1191
|
-
// Don't start emotes while the teleport dissolve is still running or
|
|
1192
|
-
// within a short cooldown afterwards — the idle animation needs time
|
|
1193
|
-
// to settle into a stable pose before we can cross-fade from it.
|
|
1194
|
-
const POST_TELEPORT_COOLDOWN = 0.3; // seconds
|
|
1195
|
-
if (this.teleportProgress < 1.0 ||
|
|
1196
|
-
this.elapsedTime - this.teleportCompleteTime < POST_TELEPORT_COOLDOWN) {
|
|
1197
|
-
return;
|
|
1198
|
-
}
|
|
1199
|
-
this.clearPendingEmoteCompletion();
|
|
1200
|
-
this.emoteRequestId++;
|
|
1201
|
-
const requestId = this.emoteRequestId;
|
|
1202
|
-
const currentEmote = this.emoteAction;
|
|
1203
|
-
const clip = await this.loadEmoteClipCached(path, vrm);
|
|
1204
|
-
if (!clip || this.vrm !== vrm || this.mixer !== mixer)
|
|
1205
|
-
return;
|
|
1206
|
-
if (this.emoteRequestId !== requestId)
|
|
1207
|
-
return;
|
|
1208
|
-
const action = mixer.clipAction(clip);
|
|
1209
|
-
action.setLoop(loop ? THREE.LoopRepeat : THREE.LoopOnce, loop ? Infinity : 1);
|
|
1210
|
-
action.clampWhenFinished = !loop;
|
|
1211
|
-
const fadeDuration = 0.4;
|
|
1212
|
-
// Use explicit fadeOut + fadeIn instead of crossFadeFrom. crossFadeFrom
|
|
1213
|
-
// only blends tracks that exist in BOTH clips — emotes exported with
|
|
1214
|
-
// non-uniform keyframes (sparse Mixamo optimization) leave body/leg
|
|
1215
|
-
// bones without tracks, so idle's tracks for those bones continue at
|
|
1216
|
-
// full weight, creating visible overlap. Fading out the source
|
|
1217
|
-
// explicitly ensures ALL its tracks fade away cleanly.
|
|
1218
|
-
if (currentEmote && currentEmote !== action) {
|
|
1219
|
-
currentEmote.fadeOut(fadeDuration);
|
|
1220
|
-
}
|
|
1221
|
-
if (this.idleAction && this.idleAction !== action) {
|
|
1222
|
-
this.idleAction.fadeOut(fadeDuration);
|
|
1223
|
-
}
|
|
1224
|
-
action.reset();
|
|
1225
|
-
this.activateAction(action);
|
|
1226
|
-
action.fadeIn(fadeDuration);
|
|
1227
|
-
this.emoteAction = action;
|
|
1228
|
-
if (!loop) {
|
|
1229
|
-
const clipDuration = Number.isFinite(duration) && duration > 0 ? duration : clip.duration;
|
|
1230
|
-
this.watchOneShotEmoteCompletion(mixer, action, requestId, clipDuration);
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
stopEmote() {
|
|
1234
|
-
this.clearPendingEmoteCompletion();
|
|
1235
|
-
const fadeDuration = 0.4;
|
|
1236
|
-
const activeEmote = this.emoteAction;
|
|
1237
|
-
this.emoteAction = null;
|
|
1238
|
-
if (this.idleAction) {
|
|
1239
|
-
this.activateAction(this.idleAction);
|
|
1240
|
-
if (activeEmote && activeEmote !== this.idleAction) {
|
|
1241
|
-
this.idleAction.crossFadeFrom(activeEmote, fadeDuration, false);
|
|
1242
|
-
}
|
|
1243
|
-
else {
|
|
1244
|
-
this.idleAction.fadeIn(fadeDuration);
|
|
1245
|
-
}
|
|
1246
|
-
return;
|
|
1247
|
-
}
|
|
1248
|
-
if (this.vrm && this.mixer) {
|
|
1249
|
-
this.restoreIdleAfterEmote(activeEmote, fadeDuration, this.vrm, this.mixer);
|
|
1250
|
-
return;
|
|
1251
|
-
}
|
|
1252
|
-
activeEmote?.fadeOut(fadeDuration);
|
|
1253
|
-
}
|
|
1254
|
-
/** Play a one-shot wave greeting after the VRM becomes visible. */
|
|
1255
|
-
playWaveGreeting() {
|
|
1256
|
-
this.playEmote(resolveAppAssetUrl("animations/emotes/greeting.fbx"), 3, false);
|
|
1257
|
-
}
|
|
1258
|
-
async loadVrmFromUrl(url, name) {
|
|
1259
|
-
await this.whenReady();
|
|
1260
|
-
if (!this.scene)
|
|
1261
|
-
throw new Error("VrmEngine not initialized");
|
|
1262
|
-
if (!this.camera)
|
|
1263
|
-
throw new Error("VrmEngine not initialized");
|
|
1264
|
-
if (this.loadingAborted)
|
|
1265
|
-
return;
|
|
1266
|
-
const requestId = ++this.vrmLoadRequestId;
|
|
1267
|
-
const hadPreviousVrm = this.vrm !== null;
|
|
1268
|
-
if (this.vrm) {
|
|
1269
|
-
if (this.outgoingVrm) {
|
|
1270
|
-
this.outgoingVrm.scene.parent?.remove(this.outgoingVrm.scene);
|
|
1271
|
-
VRMUtils.deepDispose(this.outgoingVrm.scene);
|
|
1272
|
-
}
|
|
1273
|
-
this.outgoingVrm = this.vrm;
|
|
1274
|
-
this.outgoingMixer = this.mixer;
|
|
1275
|
-
this.vrm = null;
|
|
1276
|
-
this.vrmReady = false;
|
|
1277
|
-
this.vrmName = null;
|
|
1278
|
-
this.mixer = null;
|
|
1279
|
-
this.idleAction = null;
|
|
1280
|
-
this.idleLoadPromise = null;
|
|
1281
|
-
this.revealStarted = false;
|
|
1282
|
-
this.clearPendingEmoteCompletion();
|
|
1283
|
-
this.emoteAction = null;
|
|
1284
|
-
this.emoteClipCache.clear();
|
|
1285
|
-
}
|
|
1286
|
-
this.lastLoadError = null;
|
|
1287
|
-
this.loadingProgress = 0;
|
|
1288
|
-
this.onUpdate?.();
|
|
1289
|
-
const loader = new GLTFLoader();
|
|
1290
|
-
configureVrmGltfLoader(loader);
|
|
1291
|
-
const webGpuNodes = this.rendererBackend === "webgpu"
|
|
1292
|
-
? await import("@pixiv/three-vrm/nodes")
|
|
1293
|
-
: null;
|
|
1294
|
-
loader.register((parser) => {
|
|
1295
|
-
if (webGpuNodes) {
|
|
1296
|
-
const mtoonMaterialPlugin = new MToonMaterialLoaderPlugin(parser, {
|
|
1297
|
-
materialType: webGpuNodes.MToonNodeMaterial,
|
|
1298
|
-
});
|
|
1299
|
-
return new VRMLoaderPlugin(parser, { mtoonMaterialPlugin });
|
|
1300
|
-
}
|
|
1301
|
-
return new VRMLoaderPlugin(parser);
|
|
1302
|
-
});
|
|
1303
|
-
let gltf;
|
|
1304
|
-
try {
|
|
1305
|
-
gltf = await loadGltfAsset(loader, url, (progress) => {
|
|
1306
|
-
if (this.vrmLoadRequestId === requestId && !this.loadingAborted) {
|
|
1307
|
-
this.loadingProgress = progress;
|
|
1308
|
-
this.onUpdate?.();
|
|
1309
|
-
}
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
catch (error) {
|
|
1313
|
-
if (!this.loadingAborted && requestId === this.vrmLoadRequestId) {
|
|
1314
|
-
this.lastLoadError =
|
|
1315
|
-
error instanceof Error ? error.message : String(error);
|
|
1316
|
-
this.onUpdate?.();
|
|
1317
|
-
}
|
|
1318
|
-
throw error;
|
|
1319
|
-
}
|
|
1320
|
-
if (this.loadingAborted ||
|
|
1321
|
-
!this.scene ||
|
|
1322
|
-
requestId !== this.vrmLoadRequestId) {
|
|
1323
|
-
const staleVrm = gltf.userData.vrm;
|
|
1324
|
-
if (staleVrm)
|
|
1325
|
-
VRMUtils.deepDispose(staleVrm.scene);
|
|
1326
|
-
return;
|
|
1327
|
-
}
|
|
1328
|
-
const vrm = gltf.userData.vrm;
|
|
1329
|
-
if (!vrm)
|
|
1330
|
-
throw new Error("Loaded asset is not a VRM");
|
|
1331
|
-
VRMUtils.removeUnnecessaryVertices(vrm.scene);
|
|
1332
|
-
if (this.camera) {
|
|
1333
|
-
if (!hadPreviousVrm) {
|
|
1334
|
-
this.cameraManager.centerAndFrame(vrm, this.camera, this.controls, this.cameraProfile, this.lookAtTarget, this.baseCameraPosition, (c) => this.cameraManager.applyInteractionMode(c, this.interactionMode));
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
try {
|
|
1338
|
-
VRMUtils.rotateVRM0(vrm);
|
|
1339
|
-
}
|
|
1340
|
-
catch {
|
|
1341
|
-
/* optional in some versions */
|
|
1342
|
-
}
|
|
1343
|
-
this.cameraManager.ensureFacingCamera(vrm, this.camera);
|
|
1344
|
-
this.configureAvatarLookTracking(vrm);
|
|
1345
|
-
if (this.loadingAborted ||
|
|
1346
|
-
!this.scene ||
|
|
1347
|
-
requestId !== this.vrmLoadRequestId) {
|
|
1348
|
-
VRMUtils.deepDispose(vrm.scene);
|
|
1349
|
-
return;
|
|
1350
|
-
}
|
|
1351
|
-
vrm.scene.visible = false;
|
|
1352
|
-
vrm.scene.traverse((obj) => {
|
|
1353
|
-
obj.frustumCulled = false;
|
|
1354
|
-
});
|
|
1355
|
-
const avatarParent = this.avatarRoot ?? this.scene;
|
|
1356
|
-
avatarParent.add(vrm.scene);
|
|
1357
|
-
this.vrm = vrm;
|
|
1358
|
-
this.vrmName = name ?? null;
|
|
1359
|
-
this.lastLoadError = null;
|
|
1360
|
-
vrm.springBoneManager?.reset?.();
|
|
1361
|
-
this.blinkController.reset();
|
|
1362
|
-
try {
|
|
1363
|
-
await this.loadAndPlayIdle(vrm);
|
|
1364
|
-
if (!this.loadingAborted && this.vrm === vrm) {
|
|
1365
|
-
this.vrmReady = true;
|
|
1366
|
-
// Let the idle animation settle into a natural pose before revealing
|
|
1367
|
-
await new Promise((resolve) => setTimeout(resolve, 300));
|
|
1368
|
-
if (this.loadingAborted || this.vrm !== vrm)
|
|
1369
|
-
return;
|
|
1370
|
-
await this.playTeleportReveal(vrm);
|
|
1371
|
-
vrm.scene.visible = true;
|
|
1372
|
-
// Greeting animation is handled by CharacterEditor via vrm-teleport-complete event
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
catch {
|
|
1376
|
-
if (!this.loadingAborted && this.vrm === vrm) {
|
|
1377
|
-
this.vrmReady = true;
|
|
1378
|
-
vrm.scene.visible = true;
|
|
1379
|
-
// Teleport animation failed (e.g. WebGPU unavailable) — still notify
|
|
1380
|
-
// the app so companion UI (header, chat) becomes visible.
|
|
1381
|
-
if (typeof window !== "undefined") {
|
|
1382
|
-
window.dispatchEvent(new CustomEvent("eliza:vrm-teleport-complete"));
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
async playTeleportReveal(vrm) {
|
|
1388
|
-
if (this.outgoingVrm && this.camera) {
|
|
1389
|
-
this.transitionCameraToFramedAvatar(vrm, AVATAR_SWITCH_CAMERA_TRANSITION_DURATION_SECONDS);
|
|
1390
|
-
}
|
|
1391
|
-
this.teleportProgress = 0.0;
|
|
1392
|
-
this.cleanupTeleportDissolve();
|
|
1393
|
-
let appliedNodeDissolve = false;
|
|
1394
|
-
try {
|
|
1395
|
-
const tsl = await import("three/tsl");
|
|
1396
|
-
const uProgress = tsl.uniform(0.0);
|
|
1397
|
-
this.teleportProgressUniform = uProgress;
|
|
1398
|
-
const applyTslDissolve = (targetVrm, isOutgoing) => {
|
|
1399
|
-
targetVrm.scene.traverse((obj) => {
|
|
1400
|
-
if (!(obj instanceof THREE.Mesh))
|
|
1401
|
-
return;
|
|
1402
|
-
const mats = Array.isArray(obj.material)
|
|
1403
|
-
? obj.material
|
|
1404
|
-
: [obj.material];
|
|
1405
|
-
for (const mat of mats) {
|
|
1406
|
-
if (!mat.isNodeMaterial || mat.userData._dissolveApplied)
|
|
1407
|
-
continue;
|
|
1408
|
-
appliedNodeDissolve = true;
|
|
1409
|
-
mat.userData._dissolveApplied = true;
|
|
1410
|
-
mat.userData._origOpacityNode = mat.opacityNode ?? null;
|
|
1411
|
-
mat.userData._origEmissiveNode =
|
|
1412
|
-
mat.emissiveNode ?? null;
|
|
1413
|
-
mat.userData._origAlphaTest = mat.alphaTest;
|
|
1414
|
-
const worldY = tsl.positionWorld.y;
|
|
1415
|
-
const threshold = uProgress
|
|
1416
|
-
.mul(TELEPORT_DISSOLVE_END_Y - TELEPORT_DISSOLVE_START_Y)
|
|
1417
|
-
.add(TELEPORT_DISSOLVE_START_Y);
|
|
1418
|
-
const diff = worldY.sub(threshold);
|
|
1419
|
-
const nx = tsl.sin(tsl.positionWorld.x.mul(18.0).add(worldY.mul(12.0)));
|
|
1420
|
-
const ny = tsl.cos(worldY.mul(15.0).add(tsl.positionWorld.z.mul(10.0)));
|
|
1421
|
-
const nz = tsl.sin(tsl.positionWorld.z.mul(18.0).add(tsl.positionWorld.x.mul(10.0)));
|
|
1422
|
-
const noise = nx.add(ny).add(nz).div(3.0).add(1.0).mul(0.5);
|
|
1423
|
-
const ratio = diff.div(0.3).clamp(0.0, 1.0);
|
|
1424
|
-
const baseAlpha = tsl.step(ratio, noise);
|
|
1425
|
-
const dissolveAlpha = isOutgoing
|
|
1426
|
-
? tsl.float(1.0).sub(baseAlpha)
|
|
1427
|
-
: baseAlpha;
|
|
1428
|
-
const edgeDist = diff.abs();
|
|
1429
|
-
const glowWidth = tsl.float(0.08);
|
|
1430
|
-
const glowIntensity = tsl
|
|
1431
|
-
.float(1.0)
|
|
1432
|
-
.sub(edgeDist.div(glowWidth).clamp(0.0, 1.0));
|
|
1433
|
-
const hueShift = tsl.fract(worldY.mul(3.0).add(uProgress.mul(2.0)));
|
|
1434
|
-
const holoR = tsl
|
|
1435
|
-
.smoothstep(tsl.float(0.3), tsl.float(0.7), hueShift)
|
|
1436
|
-
.mul(0.8)
|
|
1437
|
-
.add(0.2);
|
|
1438
|
-
const holoG = tsl.float(0.9);
|
|
1439
|
-
const holoB = tsl
|
|
1440
|
-
.smoothstep(tsl.float(0.7), tsl.float(0.3), hueShift)
|
|
1441
|
-
.mul(0.8)
|
|
1442
|
-
.add(0.2);
|
|
1443
|
-
const holoColor = tsl.vec3(holoR, holoG, holoB);
|
|
1444
|
-
const glowActive = tsl
|
|
1445
|
-
.step(tsl.float(0.001), uProgress)
|
|
1446
|
-
.mul(tsl.float(1.0).sub(tsl.step(tsl.float(0.999), uProgress)));
|
|
1447
|
-
const emissiveBoost = holoColor.mul(glowIntensity.mul(10.0).mul(glowActive).mul(dissolveAlpha));
|
|
1448
|
-
const origOpacity = mat.opacityNode;
|
|
1449
|
-
mat.opacityNode = origOpacity
|
|
1450
|
-
? (origOpacity.mul(dissolveAlpha) ?? dissolveAlpha)
|
|
1451
|
-
: dissolveAlpha;
|
|
1452
|
-
const matWithEmissive = mat;
|
|
1453
|
-
const origEmissive = matWithEmissive.emissiveNode;
|
|
1454
|
-
matWithEmissive.emissiveNode = origEmissive
|
|
1455
|
-
? origEmissive.add(emissiveBoost)
|
|
1456
|
-
: emissiveBoost;
|
|
1457
|
-
mat.alphaTest = 0.01;
|
|
1458
|
-
mat.needsUpdate = true;
|
|
1459
|
-
this.teleportDissolvedMaterials.push(mat);
|
|
1460
|
-
}
|
|
1461
|
-
});
|
|
1462
|
-
};
|
|
1463
|
-
applyTslDissolve(vrm, false);
|
|
1464
|
-
if (this.outgoingVrm) {
|
|
1465
|
-
applyTslDissolve(this.outgoingVrm, true);
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
catch (err) {
|
|
1469
|
-
console.warn("[VrmEngine] TSL dissolve unavailable, showing instantly:", err);
|
|
1470
|
-
}
|
|
1471
|
-
if (!appliedNodeDissolve) {
|
|
1472
|
-
this.applyTeleportFallbackDissolve(vrm, false);
|
|
1473
|
-
if (this.outgoingVrm) {
|
|
1474
|
-
this.applyTeleportFallbackDissolve(this.outgoingVrm, true);
|
|
1475
|
-
}
|
|
1476
|
-
}
|
|
1477
|
-
// Force shader compilation by rendering invisible frames before displaying particles
|
|
1478
|
-
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
1479
|
-
if (typeof window !== "undefined") {
|
|
1480
|
-
await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
|
|
1481
|
-
}
|
|
1482
|
-
if (this.loadingAborted || this.vrm !== vrm)
|
|
1483
|
-
return;
|
|
1484
|
-
this.revealStarted = true;
|
|
1485
|
-
this.startTeleportSparkles(vrm);
|
|
1486
|
-
}
|
|
1487
|
-
applyTeleportFallbackDissolve(vrm, isOutgoing) {
|
|
1488
|
-
vrm.scene.traverse((obj) => {
|
|
1489
|
-
if (!(obj instanceof THREE.Mesh))
|
|
1490
|
-
return;
|
|
1491
|
-
const mats = Array.isArray(obj.material) ? obj.material : [obj.material];
|
|
1492
|
-
for (const mat of mats) {
|
|
1493
|
-
if (mat.userData._dissolveApplied)
|
|
1494
|
-
continue;
|
|
1495
|
-
mat.userData._dissolveApplied = true;
|
|
1496
|
-
mat.userData._origAlphaTest = mat.alphaTest;
|
|
1497
|
-
mat.userData._origOnBeforeCompile = mat.onBeforeCompile;
|
|
1498
|
-
mat.userData._origCustomProgramCacheKey = mat.customProgramCacheKey;
|
|
1499
|
-
const shaderRef = {
|
|
1500
|
-
uniforms: { uTeleportProgress: { value: this.teleportProgress } },
|
|
1501
|
-
isOutgoing,
|
|
1502
|
-
};
|
|
1503
|
-
this.teleportFallbackShaders.push(shaderRef);
|
|
1504
|
-
mat.alphaTest = Math.max(mat.alphaTest ?? 0, 0.01);
|
|
1505
|
-
mat.onBeforeCompile = (shader) => {
|
|
1506
|
-
shader.uniforms.uTeleportProgress =
|
|
1507
|
-
shaderRef.uniforms.uTeleportProgress;
|
|
1508
|
-
shader.vertexShader = `
|
|
1509
|
-
varying vec3 vTeleportWorldPosition;
|
|
1510
|
-
${shader.vertexShader}
|
|
1511
|
-
`.replace("#include <project_vertex>", `vec4 teleportWorldPosTemp = vec4( transformed, 1.0 );
|
|
1512
|
-
#ifdef USE_INSTANCING
|
|
1513
|
-
teleportWorldPosTemp = instanceMatrix * teleportWorldPosTemp;
|
|
1514
|
-
#endif
|
|
1515
|
-
teleportWorldPosTemp = modelMatrix * teleportWorldPosTemp;
|
|
1516
|
-
vTeleportWorldPosition = teleportWorldPosTemp.xyz;
|
|
1517
|
-
#include <project_vertex>`);
|
|
1518
|
-
shader.fragmentShader = `
|
|
1519
|
-
uniform float uTeleportProgress;
|
|
1520
|
-
varying vec3 vTeleportWorldPosition;
|
|
1521
|
-
float teleportSmoothNoise(vec3 p) {
|
|
1522
|
-
float nx = sin(p.x * 18.0 + p.y * 12.0);
|
|
1523
|
-
float ny = cos(p.y * 15.0 + p.z * 10.0);
|
|
1524
|
-
float nz = sin(p.z * 18.0 + p.x * 10.0);
|
|
1525
|
-
return (nx + ny + nz) / 3.0 * 0.5 + 0.5;
|
|
1526
|
-
}
|
|
1527
|
-
${shader.fragmentShader}
|
|
1528
|
-
`
|
|
1529
|
-
.replace("#include <alphatest_fragment>", `float teleportThreshold = mix(${TELEPORT_DISSOLVE_START_Y.toFixed(1)}, ${TELEPORT_DISSOLVE_END_Y.toFixed(1)}, uTeleportProgress);
|
|
1530
|
-
float teleportDiff = vTeleportWorldPosition.y - teleportThreshold;
|
|
1531
|
-
float teleportRatio = clamp(teleportDiff / 0.3, 0.0, 1.0);
|
|
1532
|
-
float teleportNoise = teleportSmoothNoise(vTeleportWorldPosition);
|
|
1533
|
-
${isOutgoing ? "if (teleportNoise >= teleportRatio) discard;" : "if (teleportNoise < teleportRatio) discard;"}
|
|
1534
|
-
#include <alphatest_fragment>`)
|
|
1535
|
-
.replace("#include <emissivemap_fragment>", `#include <emissivemap_fragment>
|
|
1536
|
-
float teleportGlowDist = abs(teleportDiff);
|
|
1537
|
-
float teleportGlowIntensity = 1.0 - clamp(teleportGlowDist / 0.08, 0.0, 1.0);
|
|
1538
|
-
vec3 teleportHoloColor = vec3(0.3, 0.9, 0.8);
|
|
1539
|
-
float teleportGlowActive = step(0.001, uTeleportProgress) * (1.0 - step(0.999, uTeleportProgress));
|
|
1540
|
-
float teleportDissolveAlpha = ${isOutgoing ? "1.0 - step(teleportRatio, teleportNoise)" : "step(teleportRatio, teleportNoise)"};
|
|
1541
|
-
totalEmissiveRadiance += teleportHoloColor * (teleportGlowIntensity * 10.0 * teleportGlowActive * teleportDissolveAlpha);`);
|
|
1542
|
-
const originalOnBeforeCompile = mat.userData._origOnBeforeCompile;
|
|
1543
|
-
if (typeof originalOnBeforeCompile === "function") {
|
|
1544
|
-
originalOnBeforeCompile(shader, this.renderer);
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
|
-
const origCacheKey = mat.userData._origCustomProgramCacheKey;
|
|
1548
|
-
mat.customProgramCacheKey = () => {
|
|
1549
|
-
const baseKey = typeof origCacheKey === "function" ? origCacheKey.call(mat) : "";
|
|
1550
|
-
return `${baseKey}:${mat.type}:teleport-dissolve-fallback:${isOutgoing ? "out" : "in"}`;
|
|
1551
|
-
};
|
|
1552
|
-
mat.needsUpdate = true;
|
|
1553
|
-
this.teleportDissolvedMaterials.push(mat);
|
|
1554
|
-
}
|
|
1555
|
-
});
|
|
1556
|
-
}
|
|
1557
|
-
startTeleportSparkles(vrm) {
|
|
1558
|
-
const parent = this.avatarRoot ?? this.scene;
|
|
1559
|
-
if (!parent)
|
|
1560
|
-
return;
|
|
1561
|
-
this.cleanupTeleportSparkles();
|
|
1562
|
-
const bounds = new THREE.Box3().setFromObject(vrm.scene);
|
|
1563
|
-
const center = bounds.getCenter(new THREE.Vector3());
|
|
1564
|
-
const size = bounds.getSize(new THREE.Vector3());
|
|
1565
|
-
const sparkleGroup = new THREE.Group();
|
|
1566
|
-
sparkleGroup.position.set(center.x, bounds.min.y + 0.06, center.z);
|
|
1567
|
-
parent.add(sparkleGroup);
|
|
1568
|
-
const texture = getTeleportSparkleTexture();
|
|
1569
|
-
const particleHeight = THREE.MathUtils.clamp(size.y * 0.82, 0.95, 1.75);
|
|
1570
|
-
const particles = [];
|
|
1571
|
-
// Central high-energy flash
|
|
1572
|
-
const flashMaterial = new THREE.SpriteMaterial({
|
|
1573
|
-
map: texture,
|
|
1574
|
-
color: new THREE.Color().setHSL(0.55, 0.95, 0.65),
|
|
1575
|
-
transparent: true,
|
|
1576
|
-
opacity: 0,
|
|
1577
|
-
depthWrite: false,
|
|
1578
|
-
depthTest: false,
|
|
1579
|
-
blending: THREE.AdditiveBlending,
|
|
1580
|
-
});
|
|
1581
|
-
const flashSprite = new THREE.Sprite(flashMaterial);
|
|
1582
|
-
flashSprite.visible = false;
|
|
1583
|
-
flashSprite.renderOrder = 9999;
|
|
1584
|
-
sparkleGroup.add(flashSprite);
|
|
1585
|
-
particles.push({
|
|
1586
|
-
sprite: flashSprite,
|
|
1587
|
-
material: flashMaterial,
|
|
1588
|
-
baseAngle: 0,
|
|
1589
|
-
baseRadius: 0,
|
|
1590
|
-
height: size.y * 0.5,
|
|
1591
|
-
start: 0,
|
|
1592
|
-
duration: 0.3,
|
|
1593
|
-
spin: 0,
|
|
1594
|
-
wobble: 0,
|
|
1595
|
-
wobbleSpeed: 0,
|
|
1596
|
-
baseSize: 1.8, // Massive size marks it as the central flash
|
|
1597
|
-
});
|
|
1598
|
-
// Vertical streaks
|
|
1599
|
-
for (let index = 0; index < 60; index += 1) {
|
|
1600
|
-
const hue = 0.52 + Math.random() * 0.08;
|
|
1601
|
-
const material = new THREE.SpriteMaterial({
|
|
1602
|
-
map: texture,
|
|
1603
|
-
color: new THREE.Color().setHSL(hue, 0.95, 0.8),
|
|
1604
|
-
transparent: true,
|
|
1605
|
-
opacity: 0,
|
|
1606
|
-
depthWrite: false,
|
|
1607
|
-
depthTest: false,
|
|
1608
|
-
blending: THREE.AdditiveBlending,
|
|
1609
|
-
});
|
|
1610
|
-
const sprite = new THREE.Sprite(material);
|
|
1611
|
-
sprite.visible = false;
|
|
1612
|
-
sprite.renderOrder = 9999;
|
|
1613
|
-
sparkleGroup.add(sprite);
|
|
1614
|
-
particles.push({
|
|
1615
|
-
sprite,
|
|
1616
|
-
material,
|
|
1617
|
-
baseAngle: Math.random() * Math.PI * 2,
|
|
1618
|
-
baseRadius: Math.random() * 0.4 + 0.05,
|
|
1619
|
-
height: particleHeight * (1.1 + Math.random() * 0.5),
|
|
1620
|
-
start: Math.random() * 0.3, // Fast start
|
|
1621
|
-
duration: 0.2 + Math.random() * 0.25, // Snappy duration
|
|
1622
|
-
spin: (Math.random() - 0.5) * 0.5,
|
|
1623
|
-
wobble: 0,
|
|
1624
|
-
wobbleSpeed: 0,
|
|
1625
|
-
baseSize: 0.02 + Math.random() * 0.05, // Thin width
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
this.teleportSparkles = {
|
|
1629
|
-
group: sparkleGroup,
|
|
1630
|
-
particles,
|
|
1631
|
-
};
|
|
1632
|
-
this.updateTeleportSparkles();
|
|
1633
|
-
}
|
|
1634
|
-
updateTeleportSparkles() {
|
|
1635
|
-
const system = this.teleportSparkles;
|
|
1636
|
-
if (!system)
|
|
1637
|
-
return;
|
|
1638
|
-
const progress = THREE.MathUtils.clamp(this.teleportProgress, 0, 1);
|
|
1639
|
-
let anyVisible = false;
|
|
1640
|
-
for (const particle of system.particles) {
|
|
1641
|
-
const localProgress = THREE.MathUtils.clamp((progress - particle.start) / particle.duration, 0, 1);
|
|
1642
|
-
if (localProgress <= 0 || localProgress >= 1) {
|
|
1643
|
-
particle.material.opacity = 0;
|
|
1644
|
-
particle.sprite.visible = false;
|
|
1645
|
-
continue;
|
|
1646
|
-
}
|
|
1647
|
-
anyVisible = true;
|
|
1648
|
-
const opacity = Math.sin(localProgress * Math.PI) * 1.5;
|
|
1649
|
-
if (particle.baseSize > 1.0) {
|
|
1650
|
-
// Central flash
|
|
1651
|
-
const scale = particle.baseSize * (1.0 + localProgress * 2.0);
|
|
1652
|
-
particle.sprite.position.set(0, particle.height, 0);
|
|
1653
|
-
particle.sprite.scale.setScalar(scale);
|
|
1654
|
-
particle.sprite.visible = opacity > 0.01;
|
|
1655
|
-
particle.material.opacity = Math.min(opacity, 1.0) * 0.45;
|
|
1656
|
-
}
|
|
1657
|
-
else {
|
|
1658
|
-
// Vertical streaks
|
|
1659
|
-
const rise = localProgress ** 1.5;
|
|
1660
|
-
const angle = particle.baseAngle + progress * particle.spin;
|
|
1661
|
-
const radial = particle.baseRadius * (1.0 + rise * 0.6);
|
|
1662
|
-
const x = Math.cos(angle) * radial;
|
|
1663
|
-
const z = Math.sin(angle) * radial;
|
|
1664
|
-
const y = particle.height * rise;
|
|
1665
|
-
const width = particle.baseSize * 0.6;
|
|
1666
|
-
const height = particle.baseSize * (8.0 + localProgress * 6.0);
|
|
1667
|
-
particle.sprite.position.set(x, y, z);
|
|
1668
|
-
particle.sprite.scale.set(width, height, 1);
|
|
1669
|
-
particle.sprite.visible = opacity > 0.01;
|
|
1670
|
-
particle.material.opacity = Math.min(opacity, 1.0);
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
if (!anyVisible && progress >= 1) {
|
|
1674
|
-
this.cleanupTeleportSparkles();
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
cleanupTeleportDissolve() {
|
|
1678
|
-
for (const mat of this.teleportDissolvedMaterials) {
|
|
1679
|
-
if (mat.userData._dissolveApplied) {
|
|
1680
|
-
if (mat.userData._origOpacityNode !== undefined) {
|
|
1681
|
-
mat.opacityNode =
|
|
1682
|
-
mat.userData._origOpacityNode ?? null;
|
|
1683
|
-
}
|
|
1684
|
-
if (mat.userData._origEmissiveNode !== undefined) {
|
|
1685
|
-
mat.emissiveNode =
|
|
1686
|
-
mat.userData._origEmissiveNode ?? null;
|
|
1687
|
-
}
|
|
1688
|
-
mat.alphaTest = mat.userData._origAlphaTest ?? 0;
|
|
1689
|
-
mat.onBeforeCompile =
|
|
1690
|
-
mat.userData._origOnBeforeCompile ?? mat.onBeforeCompile;
|
|
1691
|
-
mat.customProgramCacheKey =
|
|
1692
|
-
mat.userData._origCustomProgramCacheKey ?? mat.customProgramCacheKey;
|
|
1693
|
-
delete mat.userData._dissolveApplied;
|
|
1694
|
-
delete mat.userData._origOpacityNode;
|
|
1695
|
-
delete mat.userData._origEmissiveNode;
|
|
1696
|
-
delete mat.userData._origAlphaTest;
|
|
1697
|
-
delete mat.userData._origOnBeforeCompile;
|
|
1698
|
-
delete mat.userData._origCustomProgramCacheKey;
|
|
1699
|
-
mat.needsUpdate = true;
|
|
1700
|
-
}
|
|
1701
|
-
}
|
|
1702
|
-
this.teleportDissolvedMaterials = [];
|
|
1703
|
-
this.teleportProgressUniform = null;
|
|
1704
|
-
this.teleportFallbackShaders = [];
|
|
1705
|
-
}
|
|
1706
|
-
cleanupTeleportSparkles() {
|
|
1707
|
-
if (!this.teleportSparkles)
|
|
1708
|
-
return;
|
|
1709
|
-
for (const particle of this.teleportSparkles.particles) {
|
|
1710
|
-
particle.sprite.parent?.remove(particle.sprite);
|
|
1711
|
-
particle.material.dispose();
|
|
1712
|
-
}
|
|
1713
|
-
this.teleportSparkles.group.parent?.remove(this.teleportSparkles.group);
|
|
1714
|
-
this.teleportSparkles = null;
|
|
1715
|
-
}
|
|
1716
|
-
get animationLoaderContext() {
|
|
1717
|
-
return {
|
|
1718
|
-
isAborted: () => this.loadingAborted,
|
|
1719
|
-
isCurrentVrm: (vrm) => this.vrm === vrm,
|
|
1720
|
-
};
|
|
1721
|
-
}
|
|
1722
|
-
loop() {
|
|
1723
|
-
if (this.paused)
|
|
1724
|
-
return;
|
|
1725
|
-
this.scheduleNextFrame();
|
|
1726
|
-
const renderer = this.renderer;
|
|
1727
|
-
const scene = this.scene;
|
|
1728
|
-
const camera = this.camera;
|
|
1729
|
-
if (!renderer || !scene || !camera)
|
|
1730
|
-
return;
|
|
1731
|
-
if (this.halfFramerateMode) {
|
|
1732
|
-
if (this.halfFramerateSkipNext) {
|
|
1733
|
-
this.halfFramerateSkipNext = false;
|
|
1734
|
-
return;
|
|
1735
|
-
}
|
|
1736
|
-
this.halfFramerateSkipNext = true;
|
|
1737
|
-
}
|
|
1738
|
-
else {
|
|
1739
|
-
this.halfFramerateSkipNext = false;
|
|
1740
|
-
}
|
|
1741
|
-
// Reset camera to the pristine tracking base before processing this frame's
|
|
1742
|
-
// motion and offsets. This ensures OrbitControls and transitions never see
|
|
1743
|
-
// the temporary frame-based dynamic offsets (zoom, yaw, parallax),
|
|
1744
|
-
// which prevents them from being doubled or accumulated into the state.
|
|
1745
|
-
if (this.baseCameraPosition.lengthSq() > 1e-6) {
|
|
1746
|
-
camera.position.copy(this.baseCameraPosition);
|
|
1747
|
-
}
|
|
1748
|
-
const rawDelta = this.clock.getDelta();
|
|
1749
|
-
const stableDelta = Math.min(rawDelta, 1 / 30);
|
|
1750
|
-
this.elapsedTime += rawDelta;
|
|
1751
|
-
this.mixer?.update(rawDelta);
|
|
1752
|
-
this.outgoingMixer?.update(rawDelta);
|
|
1753
|
-
if (this.outgoingVrm) {
|
|
1754
|
-
this.applyMouthToVrm(this.outgoingVrm);
|
|
1755
|
-
this.outgoingVrm.update(stableDelta);
|
|
1756
|
-
}
|
|
1757
|
-
if (this.vrm) {
|
|
1758
|
-
if (this.teleportProgress < 1.0) {
|
|
1759
|
-
this.teleportProgress += stableDelta * 2.8; // ~0.35 seconds duration
|
|
1760
|
-
if (this.teleportProgress > 1.0)
|
|
1761
|
-
this.teleportProgress = 1.0;
|
|
1762
|
-
if (this.teleportProgressUniform) {
|
|
1763
|
-
this.teleportProgressUniform.value = this.teleportProgress;
|
|
1764
|
-
}
|
|
1765
|
-
for (const shader of this.teleportFallbackShaders) {
|
|
1766
|
-
shader.uniforms.uTeleportProgress.value = this.teleportProgress;
|
|
1767
|
-
}
|
|
1768
|
-
if (this.teleportProgress >= 1.0) {
|
|
1769
|
-
if (this.outgoingVrm) {
|
|
1770
|
-
this.outgoingVrm.scene.parent?.remove(this.outgoingVrm.scene);
|
|
1771
|
-
VRMUtils.deepDispose(this.outgoingVrm.scene);
|
|
1772
|
-
this.outgoingVrm = null;
|
|
1773
|
-
this.outgoingMixer = null;
|
|
1774
|
-
}
|
|
1775
|
-
this.cleanupTeleportDissolve();
|
|
1776
|
-
this.cleanupTeleportSparkles();
|
|
1777
|
-
this.teleportCompleteTime = this.elapsedTime;
|
|
1778
|
-
// Notify the app that the teleport-in animation has finished
|
|
1779
|
-
if (typeof window !== "undefined") {
|
|
1780
|
-
window.dispatchEvent(new CustomEvent("eliza:vrm-teleport-complete"));
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
|
-
this.updateTeleportSparkles();
|
|
1785
|
-
this.applyMouthToVrm(this.vrm);
|
|
1786
|
-
const blinkValue = this.blinkController.update(rawDelta);
|
|
1787
|
-
this.vrm.expressionManager?.setValue("blink", blinkValue);
|
|
1788
|
-
}
|
|
1789
|
-
// Process camera transition
|
|
1790
|
-
if (this.isCameraTransitioning) {
|
|
1791
|
-
this.transitionProgress += stableDelta / this.transitionDuration;
|
|
1792
|
-
let finished = false;
|
|
1793
|
-
if (this.transitionProgress >= 1.0) {
|
|
1794
|
-
this.transitionProgress = 1.0;
|
|
1795
|
-
this.isCameraTransitioning = false;
|
|
1796
|
-
finished = true;
|
|
1797
|
-
}
|
|
1798
|
-
// Smooth step easing
|
|
1799
|
-
const t = this.transitionProgress;
|
|
1800
|
-
const ease = t * t * (3.0 - 2.0 * t);
|
|
1801
|
-
camera.position.lerpVectors(this.transitionStartPos, this.transitionTargetPos, ease);
|
|
1802
|
-
this.baseCameraPosition.copy(camera.position);
|
|
1803
|
-
this.lookAtTarget.lerpVectors(this.transitionStartLookAt, this.transitionTargetLookAt, ease);
|
|
1804
|
-
camera.fov = THREE.MathUtils.lerp(this.transitionStartFov, this.transitionTargetFov, ease);
|
|
1805
|
-
camera.updateProjectionMatrix();
|
|
1806
|
-
if (this.controls) {
|
|
1807
|
-
this.controls.target.copy(this.lookAtTarget);
|
|
1808
|
-
if (finished) {
|
|
1809
|
-
this.controls.update(); // Sync once at the very end when bounds match
|
|
1810
|
-
}
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
const manualCameraActive = this.interactionEnabled;
|
|
1814
|
-
if (!manualCameraActive &&
|
|
1815
|
-
this.cameraAnimation.enabled &&
|
|
1816
|
-
this.baseCameraPosition.length() > 0) {
|
|
1817
|
-
this.cameraManager.applyCameraMotion(camera, this.baseCameraPosition, this.lookAtTarget, this.cameraAnimation, this.elapsedTime);
|
|
1818
|
-
}
|
|
1819
|
-
const dragOrbitFollow = Math.min(1, stableDelta * 9);
|
|
1820
|
-
this.dragOrbitCurrent.lerp(this.dragOrbitTarget, dragOrbitFollow);
|
|
1821
|
-
if (this.dragOrbitCurrent.lengthSq() > 1e-6 &&
|
|
1822
|
-
this.baseCameraPosition.lengthSq() > 1e-6) {
|
|
1823
|
-
const orbitOffset = this.tempCameraOrbitOffset
|
|
1824
|
-
.copy(camera.position)
|
|
1825
|
-
.sub(this.lookAtTarget);
|
|
1826
|
-
if (orbitOffset.lengthSq() > 1e-6) {
|
|
1827
|
-
const spherical = this.tempCameraSpherical.setFromVector3(orbitOffset);
|
|
1828
|
-
spherical.theta += this.dragOrbitCurrent.x;
|
|
1829
|
-
spherical.phi = THREE.MathUtils.clamp(spherical.phi + this.dragOrbitCurrent.y, 0.2, Math.PI - 0.2);
|
|
1830
|
-
orbitOffset.setFromSpherical(spherical);
|
|
1831
|
-
camera.position.copy(this.lookAtTarget).add(orbitOffset);
|
|
1832
|
-
}
|
|
1833
|
-
}
|
|
1834
|
-
this.applyCompanionZoom(camera, stableDelta);
|
|
1835
|
-
// Smoothly lerp camera orbital yaw offset (used by CharacterEditor to
|
|
1836
|
-
// rotate around the character so she appears on the left side).
|
|
1837
|
-
const editorFollow = Math.min(1, stableDelta * 5);
|
|
1838
|
-
this.cameraXOffsetCurrent = THREE.MathUtils.lerp(this.cameraXOffsetCurrent, this.cameraXOffsetTarget, editorFollow);
|
|
1839
|
-
this.cameraYawOffsetCurrent = THREE.MathUtils.lerp(this.cameraYawOffsetCurrent, this.cameraYawOffsetTarget, editorFollow);
|
|
1840
|
-
// Scale offset by inverse zoom: more shift when zoomed out, less when in
|
|
1841
|
-
const zoomScale = 1 - this.companionZoomCurrent * 0.8;
|
|
1842
|
-
if (Math.abs(this.cameraYawOffsetCurrent) > 1e-5) {
|
|
1843
|
-
const orbitVec = this.tempCameraOrbitOffset
|
|
1844
|
-
.copy(camera.position)
|
|
1845
|
-
.sub(this.lookAtTarget);
|
|
1846
|
-
if (orbitVec.lengthSq() > 1e-6) {
|
|
1847
|
-
const sph = this.tempCameraSpherical.setFromVector3(orbitVec);
|
|
1848
|
-
sph.theta += this.cameraYawOffsetCurrent * zoomScale;
|
|
1849
|
-
orbitVec.setFromSpherical(sph);
|
|
1850
|
-
camera.position.copy(this.lookAtTarget).add(orbitVec);
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
// Also translate camera on X for the positional shift
|
|
1854
|
-
const scaledXOffset = this.cameraXOffsetCurrent * zoomScale;
|
|
1855
|
-
if (Math.abs(scaledXOffset) > 1e-4) {
|
|
1856
|
-
camera.position.x += scaledXOffset;
|
|
1857
|
-
}
|
|
1858
|
-
if (this.pointerParallaxEnabled) {
|
|
1859
|
-
const follow = Math.min(1, stableDelta * 7.5);
|
|
1860
|
-
this.pointerParallaxCurrent.lerp(this.pointerParallaxTarget, follow);
|
|
1861
|
-
this.pointerParallaxPosition.set(this.pointerParallaxCurrent.x * 0.18, this.pointerParallaxCurrent.y * 0.12, 0);
|
|
1862
|
-
camera.position.add(this.pointerParallaxPosition);
|
|
1863
|
-
this.pointerParallaxLookAt
|
|
1864
|
-
.copy(this.lookAtTarget)
|
|
1865
|
-
.add(new THREE.Vector3(this.pointerParallaxCurrent.x * 0.08 + scaledXOffset, this.pointerParallaxCurrent.y * 0.05, 0));
|
|
1866
|
-
}
|
|
1867
|
-
else {
|
|
1868
|
-
this.pointerParallaxCurrent.lerp(this.pointerParallaxTarget, 0.12);
|
|
1869
|
-
this.pointerParallaxLookAt.copy(this.lookAtTarget);
|
|
1870
|
-
if (Math.abs(scaledXOffset) > 1e-4) {
|
|
1871
|
-
this.pointerParallaxLookAt.x += scaledXOffset;
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
if (this.controls) {
|
|
1875
|
-
if (manualCameraActive && !this.isCameraTransitioning) {
|
|
1876
|
-
this.controls.update();
|
|
1877
|
-
this.lookAtTarget.copy(this.controls.target);
|
|
1878
|
-
// Track the manual move in our clean base position
|
|
1879
|
-
this.baseCameraPosition.copy(camera.position);
|
|
1880
|
-
}
|
|
1881
|
-
else if (!this.isCameraTransitioning) {
|
|
1882
|
-
this.controls.target.copy(this.lookAtTarget);
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
if (!manualCameraActive || this.isCameraTransitioning) {
|
|
1886
|
-
camera.lookAt(this.pointerParallaxLookAt);
|
|
1887
|
-
}
|
|
1888
|
-
if (this.vrm) {
|
|
1889
|
-
this.updateAvatarLookTarget(camera, stableDelta);
|
|
1890
|
-
this.vrm.update(stableDelta);
|
|
1891
|
-
this.applyAvatarHeadTracking(camera, stableDelta);
|
|
1892
|
-
this.refreshAvatarEyeTracking();
|
|
1893
|
-
}
|
|
1894
|
-
this.mathEnvironment?.update(stableDelta, camera);
|
|
1895
|
-
this.overlayManager?.update(camera, stableDelta);
|
|
1896
|
-
renderer.render(scene, camera);
|
|
1897
|
-
this.onUpdate?.();
|
|
1898
|
-
}
|
|
1899
|
-
async loadAndPlayIdle(vrm) {
|
|
1900
|
-
if (this.loadingAborted)
|
|
1901
|
-
return;
|
|
1902
|
-
const mixer = this.mixer ?? new THREE.AnimationMixer(vrm.scene);
|
|
1903
|
-
this.mixer = mixer;
|
|
1904
|
-
const action = await this.ensureIdleAction(vrm, mixer);
|
|
1905
|
-
if (!action)
|
|
1906
|
-
return;
|
|
1907
|
-
action.fadeIn(0.25);
|
|
1908
|
-
action.play();
|
|
1909
|
-
mixer.update(1 / 60);
|
|
1910
|
-
}
|
|
1911
|
-
async loadEmoteClipCached(path, vrm) {
|
|
1912
|
-
const cached = this.emoteClipCache.get(path);
|
|
1913
|
-
if (cached)
|
|
1914
|
-
return cached;
|
|
1915
|
-
const clip = await loadEmoteClip(path, vrm, this.animationLoaderContext);
|
|
1916
|
-
if (clip) {
|
|
1917
|
-
this.emoteClipCache.set(path, clip);
|
|
1918
|
-
}
|
|
1919
|
-
return clip;
|
|
1920
|
-
}
|
|
1921
|
-
applyMouthToVrm(vrm) {
|
|
1922
|
-
const manager = vrm.expressionManager;
|
|
1923
|
-
if (!manager)
|
|
1924
|
-
return;
|
|
1925
|
-
let target;
|
|
1926
|
-
if (this.speaking) {
|
|
1927
|
-
const elapsed = this.elapsedTime - this.speakingStartTime;
|
|
1928
|
-
const base = Math.sin(elapsed * 12) * 0.3 + 0.4;
|
|
1929
|
-
const detail = Math.sin(elapsed * 18.7) * 0.15;
|
|
1930
|
-
const slow = Math.sin(elapsed * 4.2) * 0.1;
|
|
1931
|
-
target = Math.max(0, Math.min(1, base + detail + slow));
|
|
1932
|
-
}
|
|
1933
|
-
else {
|
|
1934
|
-
target = this.mouthValue;
|
|
1935
|
-
}
|
|
1936
|
-
const next = Math.max(0, Math.min(1, target));
|
|
1937
|
-
const alpha = next > this.mouthSmoothed ? 0.3 : 0.2;
|
|
1938
|
-
this.mouthSmoothed = this.mouthSmoothed * (1 - alpha) + next * alpha;
|
|
1939
|
-
manager.setValue("aa", this.mouthSmoothed);
|
|
1940
|
-
}
|
|
1941
|
-
/**
|
|
1942
|
-
* Capture a single-frame snapshot of the current VRM as a PNG Blob.
|
|
1943
|
-
*
|
|
1944
|
-
* When `disablePhysics` is true (the default), spring bone simulation is
|
|
1945
|
-
* frozen for the capture frame so hair and cloth render in their rest pose,
|
|
1946
|
-
* then restored afterwards. The render loop is paused during capture to
|
|
1947
|
-
* prevent physics from re-running between reset and canvas capture.
|
|
1948
|
-
*/
|
|
1949
|
-
async snapshot(options) {
|
|
1950
|
-
const renderer = this.renderer;
|
|
1951
|
-
const scene = this.scene;
|
|
1952
|
-
const camera = this.camera;
|
|
1953
|
-
if (!renderer || !scene || !camera)
|
|
1954
|
-
return null;
|
|
1955
|
-
const canvas = renderer.domElement;
|
|
1956
|
-
if (!canvas)
|
|
1957
|
-
return null;
|
|
1958
|
-
const disablePhysics = options?.disablePhysics ?? true;
|
|
1959
|
-
const width = options?.width ?? canvas.width;
|
|
1960
|
-
const height = options?.height ?? canvas.height;
|
|
1961
|
-
// Pause the render loop so physics doesn't re-run between reset and capture
|
|
1962
|
-
const wasPaused = this.paused;
|
|
1963
|
-
this.setPaused(true);
|
|
1964
|
-
// Cancel any pending animation frame to ensure the loop truly stops
|
|
1965
|
-
if (this.animationFrameId !== null) {
|
|
1966
|
-
cancelAnimationFrame(this.animationFrameId);
|
|
1967
|
-
this.animationFrameId = null;
|
|
1968
|
-
}
|
|
1969
|
-
// Reset spring bones to rest pose (hair/cloth at initial position)
|
|
1970
|
-
const springBoneManager = this.vrm?.springBoneManager ?? null;
|
|
1971
|
-
if (disablePhysics && springBoneManager) {
|
|
1972
|
-
springBoneManager.reset?.();
|
|
1973
|
-
}
|
|
1974
|
-
// Resize renderer for the capture resolution
|
|
1975
|
-
renderer.setPixelRatio(1);
|
|
1976
|
-
renderer.setSize(width, height);
|
|
1977
|
-
camera.aspect = width / height;
|
|
1978
|
-
camera.updateProjectionMatrix();
|
|
1979
|
-
// Update VRM transforms without physics
|
|
1980
|
-
if (this.vrm) {
|
|
1981
|
-
if (disablePhysics && springBoneManager) {
|
|
1982
|
-
// Update only the humanoid/expression without spring bones
|
|
1983
|
-
this.vrm.humanoid?.update?.();
|
|
1984
|
-
this.vrm.expressionManager?.update?.();
|
|
1985
|
-
}
|
|
1986
|
-
else {
|
|
1987
|
-
this.vrm.update(0);
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
// Render the frame (synchronous — captures immediately to canvas)
|
|
1991
|
-
renderer.render(scene, camera);
|
|
1992
|
-
// Capture the canvas
|
|
1993
|
-
const blob = await new Promise((resolve) => {
|
|
1994
|
-
canvas.toBlob((b) => resolve(b), "image/png");
|
|
1995
|
-
});
|
|
1996
|
-
// Restore drawing buffer + DPR policy (matches normal display, including
|
|
1997
|
-
// low-power cap) instead of raw `devicePixelRatio` alone.
|
|
1998
|
-
this.applyRendererPixelRatio();
|
|
1999
|
-
// Restore paused state — resume the render loop
|
|
2000
|
-
this.setPaused(wasPaused);
|
|
2001
|
-
return blob;
|
|
2002
|
-
}
|
|
2003
|
-
}
|