@elizaos/app-core 2.0.0-alpha.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -0
- package/LICENSE +21 -0
- package/dist/App.d.ts +5 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/App.js +198 -0
- package/dist/actions/character.d.ts +27 -0
- package/dist/actions/character.d.ts.map +1 -0
- package/dist/actions/character.js +97 -0
- package/dist/actions/chat-helpers.d.ts +47 -0
- package/dist/actions/chat-helpers.d.ts.map +1 -0
- package/dist/actions/chat-helpers.js +79 -0
- package/dist/actions/cloud.d.ts +17 -0
- package/dist/actions/cloud.d.ts.map +1 -0
- package/dist/actions/cloud.js +43 -0
- package/dist/actions/index.d.ts +12 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +11 -0
- package/dist/actions/lifecycle.d.ts +43 -0
- package/dist/actions/lifecycle.d.ts.map +1 -0
- package/dist/actions/lifecycle.js +118 -0
- package/dist/actions/onboarding.d.ts +12 -0
- package/dist/actions/onboarding.d.ts.map +1 -0
- package/dist/actions/onboarding.js +28 -0
- package/dist/actions/triggers.d.ts +23 -0
- package/dist/actions/triggers.d.ts.map +1 -0
- package/dist/actions/triggers.js +148 -0
- package/dist/api/client.d.ts +2823 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +2392 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +1 -0
- package/dist/autonomy/index.d.ts +48 -0
- package/dist/autonomy/index.d.ts.map +1 -0
- package/dist/autonomy/index.js +330 -0
- package/dist/bridge/capacitor-bridge.d.ts +153 -0
- package/dist/bridge/capacitor-bridge.d.ts.map +1 -0
- package/dist/bridge/capacitor-bridge.js +193 -0
- package/dist/bridge/electrobun-rpc.d.ts +19 -0
- package/dist/bridge/electrobun-rpc.d.ts.map +1 -0
- package/dist/bridge/electrobun-rpc.js +27 -0
- package/dist/bridge/electrobun-runtime.d.ts +3 -0
- package/dist/bridge/electrobun-runtime.d.ts.map +1 -0
- package/dist/bridge/electrobun-runtime.js +17 -0
- package/dist/bridge/index.d.ts +6 -0
- package/dist/bridge/index.d.ts.map +1 -0
- package/dist/bridge/index.js +5 -0
- package/dist/bridge/native-plugins.d.ts +82 -0
- package/dist/bridge/native-plugins.d.ts.map +1 -0
- package/dist/bridge/native-plugins.js +39 -0
- package/dist/bridge/plugin-bridge.d.ts +116 -0
- package/dist/bridge/plugin-bridge.d.ts.map +1 -0
- package/dist/bridge/plugin-bridge.js +203 -0
- package/dist/bridge/storage-bridge.d.ts +39 -0
- package/dist/bridge/storage-bridge.d.ts.map +1 -0
- package/dist/bridge/storage-bridge.js +135 -0
- package/dist/chat/index.d.ts +57 -0
- package/dist/chat/index.d.ts.map +1 -0
- package/dist/chat/index.js +161 -0
- package/dist/coding/index.d.ts +25 -0
- package/dist/coding/index.d.ts.map +1 -0
- package/dist/coding/index.js +25 -0
- package/dist/components/AdvancedPageView.d.ts +17 -0
- package/dist/components/AdvancedPageView.d.ts.map +1 -0
- package/dist/components/AdvancedPageView.js +137 -0
- package/dist/components/AgentActivityBox.d.ts +7 -0
- package/dist/components/AgentActivityBox.d.ts.map +1 -0
- package/dist/components/AgentActivityBox.js +25 -0
- package/dist/components/ApiKeyConfig.d.ts +26 -0
- package/dist/components/ApiKeyConfig.d.ts.map +1 -0
- package/dist/components/ApiKeyConfig.js +121 -0
- package/dist/components/AppsPageView.d.ts +7 -0
- package/dist/components/AppsPageView.d.ts.map +1 -0
- package/dist/components/AppsPageView.js +31 -0
- package/dist/components/AppsView.d.ts +8 -0
- package/dist/components/AppsView.d.ts.map +1 -0
- package/dist/components/AppsView.js +149 -0
- package/dist/components/AvatarLoader.d.ts +9 -0
- package/dist/components/AvatarLoader.d.ts.map +1 -0
- package/dist/components/AvatarLoader.js +45 -0
- package/dist/components/AvatarSelector.d.ts +23 -0
- package/dist/components/AvatarSelector.d.ts.map +1 -0
- package/dist/components/AvatarSelector.js +105 -0
- package/dist/components/BscTradePanel.d.ts +22 -0
- package/dist/components/BscTradePanel.d.ts.map +1 -0
- package/dist/components/BscTradePanel.js +221 -0
- package/dist/components/BugReportModal.d.ts +2 -0
- package/dist/components/BugReportModal.d.ts.map +1 -0
- package/dist/components/BugReportModal.js +218 -0
- package/dist/components/CharacterView.d.ts +8 -0
- package/dist/components/CharacterView.d.ts.map +1 -0
- package/dist/components/CharacterView.js +703 -0
- package/dist/components/ChatAvatar.d.ts +8 -0
- package/dist/components/ChatAvatar.d.ts.map +1 -0
- package/dist/components/ChatAvatar.js +89 -0
- package/dist/components/ChatComposer.d.ts +37 -0
- package/dist/components/ChatComposer.d.ts.map +1 -0
- package/dist/components/ChatComposer.js +136 -0
- package/dist/components/ChatMessage.d.ts +24 -0
- package/dist/components/ChatMessage.d.ts.map +1 -0
- package/dist/components/ChatMessage.js +167 -0
- package/dist/components/ChatModalView.d.ts +10 -0
- package/dist/components/ChatModalView.d.ts.map +1 -0
- package/dist/components/ChatModalView.js +57 -0
- package/dist/components/ChatView.d.ts +14 -0
- package/dist/components/ChatView.d.ts.map +1 -0
- package/dist/components/ChatView.js +511 -0
- package/dist/components/CloudSourceControls.d.ts +13 -0
- package/dist/components/CloudSourceControls.d.ts.map +1 -0
- package/dist/components/CloudSourceControls.js +14 -0
- package/dist/components/CodingAgentSettingsSection.d.ts +2 -0
- package/dist/components/CodingAgentSettingsSection.d.ts.map +1 -0
- package/dist/components/CodingAgentSettingsSection.js +268 -0
- package/dist/components/CommandPalette.d.ts +2 -0
- package/dist/components/CommandPalette.d.ts.map +1 -0
- package/dist/components/CommandPalette.js +181 -0
- package/dist/components/CompanionSceneHost.d.ts +15 -0
- package/dist/components/CompanionSceneHost.d.ts.map +1 -0
- package/dist/components/CompanionSceneHost.js +343 -0
- package/dist/components/CompanionShell.d.ts +17 -0
- package/dist/components/CompanionShell.d.ts.map +1 -0
- package/dist/components/CompanionShell.js +15 -0
- package/dist/components/CompanionView.d.ts +2 -0
- package/dist/components/CompanionView.d.ts.map +1 -0
- package/dist/components/CompanionView.js +22 -0
- package/dist/components/ConfigPageView.d.ts +11 -0
- package/dist/components/ConfigPageView.d.ts.map +1 -0
- package/dist/components/ConfigPageView.js +275 -0
- package/dist/components/ConfigSaveFooter.d.ts +8 -0
- package/dist/components/ConfigSaveFooter.d.ts.map +1 -0
- package/dist/components/ConfigSaveFooter.js +10 -0
- package/dist/components/ConfirmModal.d.ts +61 -0
- package/dist/components/ConfirmModal.d.ts.map +1 -0
- package/dist/components/ConfirmModal.js +164 -0
- package/dist/components/ConnectionFailedBanner.d.ts +6 -0
- package/dist/components/ConnectionFailedBanner.d.ts.map +1 -0
- package/dist/components/ConnectionFailedBanner.js +22 -0
- package/dist/components/ConnectorsPageView.d.ts +7 -0
- package/dist/components/ConnectorsPageView.d.ts.map +1 -0
- package/dist/components/ConnectorsPageView.js +8 -0
- package/dist/components/ConversationsSidebar.d.ts +9 -0
- package/dist/components/ConversationsSidebar.d.ts.map +1 -0
- package/dist/components/ConversationsSidebar.js +116 -0
- package/dist/components/CustomActionEditor.d.ts +10 -0
- package/dist/components/CustomActionEditor.d.ts.map +1 -0
- package/dist/components/CustomActionEditor.js +578 -0
- package/dist/components/CustomActionsPanel.d.ts +9 -0
- package/dist/components/CustomActionsPanel.d.ts.map +1 -0
- package/dist/components/CustomActionsPanel.js +107 -0
- package/dist/components/CustomActionsView.d.ts +2 -0
- package/dist/components/CustomActionsView.d.ts.map +1 -0
- package/dist/components/CustomActionsView.js +134 -0
- package/dist/components/DatabasePageView.d.ts +5 -0
- package/dist/components/DatabasePageView.d.ts.map +1 -0
- package/dist/components/DatabasePageView.js +28 -0
- package/dist/components/DatabaseView.d.ts +9 -0
- package/dist/components/DatabaseView.d.ts.map +1 -0
- package/dist/components/DatabaseView.js +311 -0
- package/dist/components/ElizaCloudDashboard.d.ts +2 -0
- package/dist/components/ElizaCloudDashboard.d.ts.map +1 -0
- package/dist/components/ElizaCloudDashboard.js +657 -0
- package/dist/components/EmotePicker.d.ts +2 -0
- package/dist/components/EmotePicker.d.ts.map +1 -0
- package/dist/components/EmotePicker.js +343 -0
- package/dist/components/ErrorBoundary.d.ts +22 -0
- package/dist/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ErrorBoundary.js +31 -0
- package/dist/components/FineTuningView.d.ts +2 -0
- package/dist/components/FineTuningView.d.ts.map +1 -0
- package/dist/components/FineTuningView.js +433 -0
- package/dist/components/GameView.d.ts +11 -0
- package/dist/components/GameView.d.ts.map +1 -0
- package/dist/components/GameView.js +295 -0
- package/dist/components/GameViewOverlay.d.ts +8 -0
- package/dist/components/GameViewOverlay.d.ts.map +1 -0
- package/dist/components/GameViewOverlay.js +70 -0
- package/dist/components/GlobalEmoteOverlay.d.ts +2 -0
- package/dist/components/GlobalEmoteOverlay.d.ts.map +1 -0
- package/dist/components/GlobalEmoteOverlay.js +112 -0
- package/dist/components/Header.d.ts +8 -0
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/Header.js +121 -0
- package/dist/components/HeartbeatsView.d.ts +2 -0
- package/dist/components/HeartbeatsView.d.ts.map +1 -0
- package/dist/components/HeartbeatsView.js +378 -0
- package/dist/components/InventoryView.d.ts +10 -0
- package/dist/components/InventoryView.d.ts.map +1 -0
- package/dist/components/InventoryView.js +162 -0
- package/dist/components/KnowledgeView.d.ts +20 -0
- package/dist/components/KnowledgeView.d.ts.map +1 -0
- package/dist/components/KnowledgeView.js +480 -0
- package/dist/components/LanguageDropdown.d.ts +30 -0
- package/dist/components/LanguageDropdown.d.ts.map +1 -0
- package/dist/components/LanguageDropdown.js +98 -0
- package/dist/components/LifoMonitorPanel.d.ts +21 -0
- package/dist/components/LifoMonitorPanel.d.ts.map +1 -0
- package/dist/components/LifoMonitorPanel.js +24 -0
- package/dist/components/LifoSandboxView.d.ts +5 -0
- package/dist/components/LifoSandboxView.d.ts.map +1 -0
- package/dist/components/LifoSandboxView.js +333 -0
- package/dist/components/LoadingScreen.d.ts +13 -0
- package/dist/components/LoadingScreen.d.ts.map +1 -0
- package/dist/components/LoadingScreen.js +39 -0
- package/dist/components/LogsPageView.d.ts +2 -0
- package/dist/components/LogsPageView.d.ts.map +1 -0
- package/dist/components/LogsPageView.js +7 -0
- package/dist/components/LogsView.d.ts +5 -0
- package/dist/components/LogsView.d.ts.map +1 -0
- package/dist/components/LogsView.js +71 -0
- package/dist/components/MediaGalleryView.d.ts +9 -0
- package/dist/components/MediaGalleryView.d.ts.map +1 -0
- package/dist/components/MediaGalleryView.js +236 -0
- package/dist/components/MediaSettingsSection.d.ts +11 -0
- package/dist/components/MediaSettingsSection.d.ts.map +1 -0
- package/dist/components/MediaSettingsSection.js +329 -0
- package/dist/components/MessageContent.d.ts +51 -0
- package/dist/components/MessageContent.d.ts.map +1 -0
- package/dist/components/MessageContent.js +553 -0
- package/dist/components/OnboardingWizard.d.ts +2 -0
- package/dist/components/OnboardingWizard.d.ts.map +1 -0
- package/dist/components/OnboardingWizard.js +59 -0
- package/dist/components/PairingView.d.ts +5 -0
- package/dist/components/PairingView.d.ts.map +1 -0
- package/dist/components/PairingView.js +28 -0
- package/dist/components/PermissionsSection.d.ts +20 -0
- package/dist/components/PermissionsSection.d.ts.map +1 -0
- package/dist/components/PermissionsSection.js +368 -0
- package/dist/components/PluginsPageView.d.ts +5 -0
- package/dist/components/PluginsPageView.d.ts.map +1 -0
- package/dist/components/PluginsPageView.js +8 -0
- package/dist/components/PluginsView.d.ts +21 -0
- package/dist/components/PluginsView.d.ts.map +1 -0
- package/dist/components/PluginsView.js +1531 -0
- package/dist/components/ProviderSwitcher.d.ts +42 -0
- package/dist/components/ProviderSwitcher.d.ts.map +1 -0
- package/dist/components/ProviderSwitcher.js +480 -0
- package/dist/components/RestartBanner.d.ts +2 -0
- package/dist/components/RestartBanner.d.ts.map +1 -0
- package/dist/components/RestartBanner.js +36 -0
- package/dist/components/RuntimeView.d.ts +10 -0
- package/dist/components/RuntimeView.d.ts.map +1 -0
- package/dist/components/RuntimeView.js +165 -0
- package/dist/components/SaveCommandModal.d.ts +12 -0
- package/dist/components/SaveCommandModal.d.ts.map +1 -0
- package/dist/components/SaveCommandModal.js +84 -0
- package/dist/components/SecretsView.d.ts +9 -0
- package/dist/components/SecretsView.d.ts.map +1 -0
- package/dist/components/SecretsView.js +249 -0
- package/dist/components/SettingsView.d.ts +9 -0
- package/dist/components/SettingsView.d.ts.map +1 -0
- package/dist/components/SettingsView.js +230 -0
- package/dist/components/ShellOverlays.d.ts +8 -0
- package/dist/components/ShellOverlays.d.ts.map +1 -0
- package/dist/components/ShellOverlays.js +10 -0
- package/dist/components/ShortcutsOverlay.d.ts +2 -0
- package/dist/components/ShortcutsOverlay.d.ts.map +1 -0
- package/dist/components/ShortcutsOverlay.js +79 -0
- package/dist/components/SkillsView.d.ts +11 -0
- package/dist/components/SkillsView.d.ts.map +1 -0
- package/dist/components/SkillsView.js +358 -0
- package/dist/components/StartupFailureView.d.ts +8 -0
- package/dist/components/StartupFailureView.d.ts.map +1 -0
- package/dist/components/StartupFailureView.js +15 -0
- package/dist/components/StreamView.d.ts +16 -0
- package/dist/components/StreamView.d.ts.map +1 -0
- package/dist/components/StreamView.js +300 -0
- package/dist/components/StripeEmbeddedCheckout.d.ts +24 -0
- package/dist/components/StripeEmbeddedCheckout.d.ts.map +1 -0
- package/dist/components/StripeEmbeddedCheckout.js +101 -0
- package/dist/components/SubscriptionStatus.d.ts +22 -0
- package/dist/components/SubscriptionStatus.d.ts.map +1 -0
- package/dist/components/SubscriptionStatus.js +301 -0
- package/dist/components/SystemWarningBanner.d.ts +6 -0
- package/dist/components/SystemWarningBanner.d.ts.map +1 -0
- package/dist/components/SystemWarningBanner.js +46 -0
- package/dist/components/ThemeToggle.d.ts +21 -0
- package/dist/components/ThemeToggle.d.ts.map +1 -0
- package/dist/components/ThemeToggle.js +24 -0
- package/dist/components/TrajectoriesView.d.ts +12 -0
- package/dist/components/TrajectoriesView.d.ts.map +1 -0
- package/dist/components/TrajectoriesView.js +183 -0
- package/dist/components/TrajectoryDetailView.d.ts +13 -0
- package/dist/components/TrajectoryDetailView.d.ts.map +1 -0
- package/dist/components/TrajectoryDetailView.js +112 -0
- package/dist/components/TriggersView.d.ts +2 -0
- package/dist/components/TriggersView.d.ts.map +1 -0
- package/dist/components/TriggersView.js +1 -0
- package/dist/components/VectorBrowserView.d.ts +10 -0
- package/dist/components/VectorBrowserView.d.ts.map +1 -0
- package/dist/components/VectorBrowserView.js +997 -0
- package/dist/components/VoiceConfigView.d.ts +11 -0
- package/dist/components/VoiceConfigView.d.ts.map +1 -0
- package/dist/components/VoiceConfigView.js +329 -0
- package/dist/components/VrmStage.d.ts +21 -0
- package/dist/components/VrmStage.d.ts.map +1 -0
- package/dist/components/VrmStage.js +252 -0
- package/dist/components/WhatsAppQrOverlay.d.ts +8 -0
- package/dist/components/WhatsAppQrOverlay.d.ts.map +1 -0
- package/dist/components/WhatsAppQrOverlay.js +63 -0
- package/dist/components/apps/AppDetailPane.d.ts +15 -0
- package/dist/components/apps/AppDetailPane.d.ts.map +1 -0
- package/dist/components/apps/AppDetailPane.js +13 -0
- package/dist/components/apps/AppsCatalogGrid.d.ts +20 -0
- package/dist/components/apps/AppsCatalogGrid.d.ts.map +1 -0
- package/dist/components/apps/AppsCatalogGrid.js +18 -0
- package/dist/components/apps/extensions/HyperscapeAppDetailPanel.d.ts +3 -0
- package/dist/components/apps/extensions/HyperscapeAppDetailPanel.d.ts.map +1 -0
- package/dist/components/apps/extensions/HyperscapeAppDetailPanel.js +253 -0
- package/dist/components/apps/extensions/registry.d.ts +4 -0
- package/dist/components/apps/extensions/registry.d.ts.map +1 -0
- package/dist/components/apps/extensions/registry.js +10 -0
- package/dist/components/apps/extensions/types.d.ts +7 -0
- package/dist/components/apps/extensions/types.d.ts.map +1 -0
- package/dist/components/apps/extensions/types.js +1 -0
- package/dist/components/apps/helpers.d.ts +7 -0
- package/dist/components/apps/helpers.d.ts.map +1 -0
- package/dist/components/apps/helpers.js +46 -0
- package/dist/components/avatar/VrmAnimationLoader.d.ts +30 -0
- package/dist/components/avatar/VrmAnimationLoader.d.ts.map +1 -0
- package/dist/components/avatar/VrmAnimationLoader.js +99 -0
- package/dist/components/avatar/VrmBlinkController.d.ts +37 -0
- package/dist/components/avatar/VrmBlinkController.d.ts.map +1 -0
- package/dist/components/avatar/VrmBlinkController.js +98 -0
- package/dist/components/avatar/VrmCameraManager.d.ts +57 -0
- package/dist/components/avatar/VrmCameraManager.d.ts.map +1 -0
- package/dist/components/avatar/VrmCameraManager.js +277 -0
- package/dist/components/avatar/VrmEngine.d.ts +229 -0
- package/dist/components/avatar/VrmEngine.d.ts.map +1 -0
- package/dist/components/avatar/VrmEngine.js +1950 -0
- package/dist/components/avatar/VrmFootShadow.d.ts +18 -0
- package/dist/components/avatar/VrmFootShadow.d.ts.map +1 -0
- package/dist/components/avatar/VrmFootShadow.js +83 -0
- package/dist/components/avatar/VrmViewer.d.ts +45 -0
- package/dist/components/avatar/VrmViewer.d.ts.map +1 -0
- package/dist/components/avatar/VrmViewer.js +341 -0
- package/dist/components/avatar/mixamoVRMRigMap.d.ts +3 -0
- package/dist/components/avatar/mixamoVRMRigMap.d.ts.map +1 -0
- package/dist/components/avatar/mixamoVRMRigMap.js +56 -0
- package/dist/components/avatar/retargetMixamoFbxToVrm.d.ts +9 -0
- package/dist/components/avatar/retargetMixamoFbxToVrm.d.ts.map +1 -0
- package/dist/components/avatar/retargetMixamoFbxToVrm.js +88 -0
- package/dist/components/avatar/retargetMixamoGltfToVrm.d.ts +11 -0
- package/dist/components/avatar/retargetMixamoGltfToVrm.d.ts.map +1 -0
- package/dist/components/avatar/retargetMixamoGltfToVrm.js +80 -0
- package/dist/components/chainConfig.d.ts +84 -0
- package/dist/components/chainConfig.d.ts.map +1 -0
- package/dist/components/chainConfig.js +268 -0
- package/dist/components/companion/CompanionHeader.d.ts +15 -0
- package/dist/components/companion/CompanionHeader.d.ts.map +1 -0
- package/dist/components/companion/CompanionHeader.js +7 -0
- package/dist/components/companion/CompanionSceneHost.d.ts +2 -0
- package/dist/components/companion/CompanionSceneHost.d.ts.map +1 -0
- package/dist/components/companion/CompanionSceneHost.js +1 -0
- package/dist/components/companion/VrmStage.d.ts +3 -0
- package/dist/components/companion/VrmStage.d.ts.map +1 -0
- package/dist/components/companion/VrmStage.js +1 -0
- package/dist/components/companion/walletUtils.d.ts +95 -0
- package/dist/components/companion/walletUtils.d.ts.map +1 -0
- package/dist/components/companion/walletUtils.js +167 -0
- package/dist/components/companion-shell-styles.d.ts +38 -0
- package/dist/components/companion-shell-styles.d.ts.map +1 -0
- package/dist/components/companion-shell-styles.js +248 -0
- package/dist/components/confirm-delete-control.d.ts +16 -0
- package/dist/components/confirm-delete-control.d.ts.map +1 -0
- package/dist/components/confirm-delete-control.js +12 -0
- package/dist/components/conversations/ConversationListItem.d.ts +31 -0
- package/dist/components/conversations/ConversationListItem.d.ts.map +1 -0
- package/dist/components/conversations/ConversationListItem.js +52 -0
- package/dist/components/conversations/conversation-utils.d.ts +9 -0
- package/dist/components/conversations/conversation-utils.d.ts.map +1 -0
- package/dist/components/conversations/conversation-utils.js +138 -0
- package/dist/components/format.d.ts +54 -0
- package/dist/components/format.d.ts.map +1 -0
- package/dist/components/format.js +82 -0
- package/dist/components/index.d.ts +93 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +92 -0
- package/dist/components/inventory/CopyableAddress.d.ts +8 -0
- package/dist/components/inventory/CopyableAddress.d.ts.map +1 -0
- package/dist/components/inventory/CopyableAddress.js +18 -0
- package/dist/components/inventory/InventoryToolbar.d.ts +25 -0
- package/dist/components/inventory/InventoryToolbar.d.ts.map +1 -0
- package/dist/components/inventory/InventoryToolbar.js +28 -0
- package/dist/components/inventory/NftGrid.d.ts +13 -0
- package/dist/components/inventory/NftGrid.d.ts.map +1 -0
- package/dist/components/inventory/NftGrid.js +29 -0
- package/dist/components/inventory/TokenLogo.d.ts +12 -0
- package/dist/components/inventory/TokenLogo.d.ts.map +1 -0
- package/dist/components/inventory/TokenLogo.js +33 -0
- package/dist/components/inventory/TokensTable.d.ts +24 -0
- package/dist/components/inventory/TokensTable.d.ts.map +1 -0
- package/dist/components/inventory/TokensTable.js +26 -0
- package/dist/components/inventory/constants.d.ts +52 -0
- package/dist/components/inventory/constants.d.ts.map +1 -0
- package/dist/components/inventory/constants.js +121 -0
- package/dist/components/inventory/index.d.ts +9 -0
- package/dist/components/inventory/index.d.ts.map +1 -0
- package/dist/components/inventory/index.js +8 -0
- package/dist/components/inventory/media-url.d.ts +6 -0
- package/dist/components/inventory/media-url.d.ts.map +1 -0
- package/dist/components/inventory/media-url.js +28 -0
- package/dist/components/inventory/useInventoryData.d.ts +53 -0
- package/dist/components/inventory/useInventoryData.d.ts.map +1 -0
- package/dist/components/inventory/useInventoryData.js +332 -0
- package/dist/components/knowledge-upload-image.d.ts +27 -0
- package/dist/components/knowledge-upload-image.d.ts.map +1 -0
- package/dist/components/knowledge-upload-image.js +146 -0
- package/dist/components/labels.d.ts +6 -0
- package/dist/components/labels.d.ts.map +1 -0
- package/dist/components/labels.js +40 -0
- package/dist/components/onboarding/ActivateStep.d.ts +2 -0
- package/dist/components/onboarding/ActivateStep.d.ts.map +1 -0
- package/dist/components/onboarding/ActivateStep.js +6 -0
- package/dist/components/onboarding/ConnectionStep.d.ts +2 -0
- package/dist/components/onboarding/ConnectionStep.d.ts.map +1 -0
- package/dist/components/onboarding/ConnectionStep.js +552 -0
- package/dist/components/onboarding/OnboardingPanel.d.ts +9 -0
- package/dist/components/onboarding/OnboardingPanel.d.ts.map +1 -0
- package/dist/components/onboarding/OnboardingPanel.js +24 -0
- package/dist/components/onboarding/OnboardingStepNav.d.ts +2 -0
- package/dist/components/onboarding/OnboardingStepNav.d.ts.map +1 -0
- package/dist/components/onboarding/OnboardingStepNav.js +14 -0
- package/dist/components/onboarding/PermissionsStep.d.ts +2 -0
- package/dist/components/onboarding/PermissionsStep.d.ts.map +1 -0
- package/dist/components/onboarding/PermissionsStep.js +7 -0
- package/dist/components/onboarding/RpcStep.d.ts +2 -0
- package/dist/components/onboarding/RpcStep.d.ts.map +1 -0
- package/dist/components/onboarding/RpcStep.js +125 -0
- package/dist/components/onboarding/WakeUpStep.d.ts +2 -0
- package/dist/components/onboarding/WakeUpStep.d.ts.map +1 -0
- package/dist/components/onboarding/WakeUpStep.js +82 -0
- package/dist/components/permissions/PermissionIcon.d.ts +4 -0
- package/dist/components/permissions/PermissionIcon.d.ts.map +1 -0
- package/dist/components/permissions/PermissionIcon.js +12 -0
- package/dist/components/permissions/StreamingPermissions.d.ts +20 -0
- package/dist/components/permissions/StreamingPermissions.d.ts.map +1 -0
- package/dist/components/permissions/StreamingPermissions.js +173 -0
- package/dist/components/plugins/showcase-data.d.ts +7 -0
- package/dist/components/plugins/showcase-data.d.ts.map +1 -0
- package/dist/components/plugins/showcase-data.js +464 -0
- package/dist/components/shared/ShellHeaderControls.d.ts +27 -0
- package/dist/components/shared/ShellHeaderControls.d.ts.map +1 -0
- package/dist/components/shared/ShellHeaderControls.js +60 -0
- package/dist/components/skeletons.d.ts +17 -0
- package/dist/components/skeletons.d.ts.map +1 -0
- package/dist/components/skeletons.js +22 -0
- package/dist/components/stream/ActivityFeed.d.ts +5 -0
- package/dist/components/stream/ActivityFeed.d.ts.map +1 -0
- package/dist/components/stream/ActivityFeed.js +57 -0
- package/dist/components/stream/AvatarPip.d.ts +5 -0
- package/dist/components/stream/AvatarPip.d.ts.map +1 -0
- package/dist/components/stream/AvatarPip.js +6 -0
- package/dist/components/stream/ChatContent.d.ts +6 -0
- package/dist/components/stream/ChatContent.d.ts.map +1 -0
- package/dist/components/stream/ChatContent.js +69 -0
- package/dist/components/stream/ChatTicker.d.ts +5 -0
- package/dist/components/stream/ChatTicker.d.ts.map +1 -0
- package/dist/components/stream/ChatTicker.js +34 -0
- package/dist/components/stream/IdleContent.d.ts +5 -0
- package/dist/components/stream/IdleContent.d.ts.map +1 -0
- package/dist/components/stream/IdleContent.js +17 -0
- package/dist/components/stream/StatusBar.d.ts +36 -0
- package/dist/components/stream/StatusBar.d.ts.map +1 -0
- package/dist/components/stream/StatusBar.js +140 -0
- package/dist/components/stream/StreamSettings.d.ts +33 -0
- package/dist/components/stream/StreamSettings.d.ts.map +1 -0
- package/dist/components/stream/StreamSettings.js +99 -0
- package/dist/components/stream/StreamTerminal.d.ts +2 -0
- package/dist/components/stream/StreamTerminal.d.ts.map +1 -0
- package/dist/components/stream/StreamTerminal.js +52 -0
- package/dist/components/stream/StreamVoiceConfig.d.ts +10 -0
- package/dist/components/stream/StreamVoiceConfig.d.ts.map +1 -0
- package/dist/components/stream/StreamVoiceConfig.js +88 -0
- package/dist/components/stream/helpers.d.ts +32 -0
- package/dist/components/stream/helpers.d.ts.map +1 -0
- package/dist/components/stream/helpers.js +110 -0
- package/dist/components/stream/overlays/OverlayLayer.d.ts +20 -0
- package/dist/components/stream/overlays/OverlayLayer.d.ts.map +1 -0
- package/dist/components/stream/overlays/OverlayLayer.js +24 -0
- package/dist/components/stream/overlays/built-in/ActionTickerWidget.d.ts +8 -0
- package/dist/components/stream/overlays/built-in/ActionTickerWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/ActionTickerWidget.js +44 -0
- package/dist/components/stream/overlays/built-in/AlertPopupWidget.d.ts +7 -0
- package/dist/components/stream/overlays/built-in/AlertPopupWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/AlertPopupWidget.js +62 -0
- package/dist/components/stream/overlays/built-in/BrandingWidget.d.ts +7 -0
- package/dist/components/stream/overlays/built-in/BrandingWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/BrandingWidget.js +36 -0
- package/dist/components/stream/overlays/built-in/CustomHtmlWidget.d.ts +26 -0
- package/dist/components/stream/overlays/built-in/CustomHtmlWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/CustomHtmlWidget.js +78 -0
- package/dist/components/stream/overlays/built-in/PeonGlassWidget.d.ts +11 -0
- package/dist/components/stream/overlays/built-in/PeonGlassWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/PeonGlassWidget.js +188 -0
- package/dist/components/stream/overlays/built-in/PeonHudWidget.d.ts +10 -0
- package/dist/components/stream/overlays/built-in/PeonHudWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/PeonHudWidget.js +168 -0
- package/dist/components/stream/overlays/built-in/PeonSakuraWidget.d.ts +11 -0
- package/dist/components/stream/overlays/built-in/PeonSakuraWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/PeonSakuraWidget.js +213 -0
- package/dist/components/stream/overlays/built-in/ThoughtBubbleWidget.d.ts +8 -0
- package/dist/components/stream/overlays/built-in/ThoughtBubbleWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/ThoughtBubbleWidget.js +59 -0
- package/dist/components/stream/overlays/built-in/ViewerCountWidget.d.ts +7 -0
- package/dist/components/stream/overlays/built-in/ViewerCountWidget.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/ViewerCountWidget.js +34 -0
- package/dist/components/stream/overlays/built-in/index.d.ts +13 -0
- package/dist/components/stream/overlays/built-in/index.d.ts.map +1 -0
- package/dist/components/stream/overlays/built-in/index.js +12 -0
- package/dist/components/stream/overlays/registry.d.ts +11 -0
- package/dist/components/stream/overlays/registry.d.ts.map +1 -0
- package/dist/components/stream/overlays/registry.js +16 -0
- package/dist/components/stream/overlays/types.d.ts +67 -0
- package/dist/components/stream/overlays/types.d.ts.map +1 -0
- package/dist/components/stream/overlays/types.js +7 -0
- package/dist/components/stream/overlays/useOverlayLayout.d.ts +27 -0
- package/dist/components/stream/overlays/useOverlayLayout.d.ts.map +1 -0
- package/dist/components/stream/overlays/useOverlayLayout.js +162 -0
- package/dist/components/trajectory-format.d.ts +6 -0
- package/dist/components/trajectory-format.d.ts.map +1 -0
- package/dist/components/trajectory-format.js +43 -0
- package/dist/components/ui-badges.d.ts +23 -0
- package/dist/components/ui-badges.d.ts.map +1 -0
- package/dist/components/ui-badges.js +38 -0
- package/dist/components/ui-switch.d.ts +14 -0
- package/dist/components/ui-switch.d.ts.map +1 -0
- package/dist/components/ui-switch.js +15 -0
- package/dist/components/vector-browser-three.d.ts +4 -0
- package/dist/components/vector-browser-three.d.ts.map +1 -0
- package/dist/components/vector-browser-three.js +19 -0
- package/dist/config/config-catalog.d.ts +376 -0
- package/dist/config/config-catalog.d.ts.map +1 -0
- package/dist/config/config-catalog.js +724 -0
- package/dist/config/config-field.d.ts +68 -0
- package/dist/config/config-field.d.ts.map +1 -0
- package/dist/config/config-field.js +821 -0
- package/dist/config/config-renderer.d.ts +176 -0
- package/dist/config/config-renderer.d.ts.map +1 -0
- package/dist/config/config-renderer.js +403 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +4 -0
- package/dist/config/ui-renderer.d.ts +26 -0
- package/dist/config/ui-renderer.d.ts.map +1 -0
- package/dist/config/ui-renderer.js +815 -0
- package/dist/config/ui-spec.d.ts +164 -0
- package/dist/config/ui-spec.d.ts.map +1 -0
- package/dist/config/ui-spec.js +13 -0
- package/dist/events/index.d.ts +42 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +41 -0
- package/dist/hooks/index.d.ts +14 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +13 -0
- package/dist/hooks/useBugReport.d.ts +14 -0
- package/dist/hooks/useBugReport.d.ts.map +1 -0
- package/dist/hooks/useBugReport.js +18 -0
- package/dist/hooks/useCanvasWindow.d.ts +38 -0
- package/dist/hooks/useCanvasWindow.d.ts.map +1 -0
- package/dist/hooks/useCanvasWindow.js +273 -0
- package/dist/hooks/useChatAvatarVoice.d.ts +10 -0
- package/dist/hooks/useChatAvatarVoice.d.ts.map +1 -0
- package/dist/hooks/useChatAvatarVoice.js +71 -0
- package/dist/hooks/useContextMenu.d.ts +17 -0
- package/dist/hooks/useContextMenu.d.ts.map +1 -0
- package/dist/hooks/useContextMenu.js +100 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts +17 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/hooks/useKeyboardShortcuts.js +67 -0
- package/dist/hooks/useLifoSync.d.ts +18 -0
- package/dist/hooks/useLifoSync.d.ts.map +1 -0
- package/dist/hooks/useLifoSync.js +113 -0
- package/dist/hooks/useMemoryMonitor.d.ts +87 -0
- package/dist/hooks/useMemoryMonitor.d.ts.map +1 -0
- package/dist/hooks/useMemoryMonitor.js +210 -0
- package/dist/hooks/useRenderGuard.d.ts +17 -0
- package/dist/hooks/useRenderGuard.d.ts.map +1 -0
- package/dist/hooks/useRenderGuard.js +36 -0
- package/dist/hooks/useRetakeCapture.d.ts +12 -0
- package/dist/hooks/useRetakeCapture.d.ts.map +1 -0
- package/dist/hooks/useRetakeCapture.js +59 -0
- package/dist/hooks/useStreamPopoutNavigation.d.ts +3 -0
- package/dist/hooks/useStreamPopoutNavigation.d.ts.map +1 -0
- package/dist/hooks/useStreamPopoutNavigation.js +17 -0
- package/dist/hooks/useTimeout.d.ts +11 -0
- package/dist/hooks/useTimeout.d.ts.map +1 -0
- package/dist/hooks/useTimeout.js +32 -0
- package/dist/hooks/useVoiceChat.d.ts +129 -0
- package/dist/hooks/useVoiceChat.d.ts.map +1 -0
- package/dist/hooks/useVoiceChat.js +1071 -0
- package/dist/hooks/useWhatsAppPairing.d.ts +11 -0
- package/dist/hooks/useWhatsAppPairing.d.ts.map +1 -0
- package/dist/hooks/useWhatsAppPairing.js +95 -0
- package/dist/i18n/index.d.ts +7 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +53 -0
- package/dist/i18n/locales/en.json +1196 -0
- package/dist/i18n/locales/es.json +1196 -0
- package/dist/i18n/locales/ko.json +1196 -0
- package/dist/i18n/locales/pt.json +1196 -0
- package/dist/i18n/locales/zh-CN.json +1196 -0
- package/dist/i18n/messages.d.ts +6 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +14 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/navigation/index.d.ts +27 -0
- package/dist/navigation/index.d.ts.map +1 -0
- package/dist/navigation/index.js +230 -0
- package/dist/package.json +161 -0
- package/dist/platform/browser-launch.d.ts +2 -0
- package/dist/platform/browser-launch.d.ts.map +1 -0
- package/dist/platform/browser-launch.js +109 -0
- package/dist/platform/index.d.ts +64 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/index.js +155 -0
- package/dist/platform/init.d.ts +40 -0
- package/dist/platform/init.d.ts.map +1 -0
- package/dist/platform/init.js +158 -0
- package/dist/providers/index.d.ts +13 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +72 -0
- package/dist/state/AppContext.d.ts +11 -0
- package/dist/state/AppContext.d.ts.map +1 -0
- package/dist/state/AppContext.js +4496 -0
- package/dist/state/index.d.ts +7 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +6 -0
- package/dist/state/internal.d.ts +6 -0
- package/dist/state/internal.d.ts.map +1 -0
- package/dist/state/internal.js +5 -0
- package/dist/state/parsers.d.ts +26 -0
- package/dist/state/parsers.d.ts.map +1 -0
- package/dist/state/parsers.js +255 -0
- package/dist/state/persistence.d.ts +36 -0
- package/dist/state/persistence.d.ts.map +1 -0
- package/dist/state/persistence.js +254 -0
- package/dist/state/types.d.ts +402 -0
- package/dist/state/types.d.ts.map +1 -0
- package/dist/state/types.js +70 -0
- package/dist/state/ui-preferences.d.ts +3 -0
- package/dist/state/ui-preferences.d.ts.map +1 -0
- package/dist/state/ui-preferences.js +1 -0
- package/dist/state/useApp.d.ts +4 -0
- package/dist/state/useApp.d.ts.map +1 -0
- package/dist/state/useApp.js +22 -0
- package/dist/state/vrm.d.ts +19 -0
- package/dist/state/vrm.d.ts.map +1 -0
- package/dist/state/vrm.js +65 -0
- package/dist/stories/AppMockProvider.d.ts +15 -0
- package/dist/stories/AppMockProvider.d.ts.map +1 -0
- package/dist/stories/AppMockProvider.js +14 -0
- package/dist/styles/anime.css +6324 -0
- package/dist/styles/base.css +196 -0
- package/dist/styles/onboarding-game.css +716 -0
- package/dist/styles/styles.css +2085 -0
- package/dist/styles/xterm.css +241 -0
- package/dist/types/index.d.ts +657 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/asset-url.d.ts +26 -0
- package/dist/utils/asset-url.d.ts.map +1 -0
- package/dist/utils/asset-url.js +99 -0
- package/dist/utils/assistant-text.d.ts +2 -0
- package/dist/utils/assistant-text.d.ts.map +1 -0
- package/dist/utils/assistant-text.js +161 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +38 -0
- package/dist/utils/desktop-dialogs.d.ts +19 -0
- package/dist/utils/desktop-dialogs.d.ts.map +1 -0
- package/dist/utils/desktop-dialogs.js +50 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +6 -0
- package/dist/utils/number-parsing.d.ts +44 -0
- package/dist/utils/number-parsing.d.ts.map +1 -0
- package/dist/utils/number-parsing.js +56 -0
- package/dist/utils/openExternalUrl.d.ts +2 -0
- package/dist/utils/openExternalUrl.d.ts.map +1 -0
- package/dist/utils/openExternalUrl.js +17 -0
- package/dist/utils/spoken-text.d.ts +2 -0
- package/dist/utils/spoken-text.d.ts.map +1 -0
- package/dist/utils/spoken-text.js +56 -0
- package/dist/utils/streaming-text.d.ts +3 -0
- package/dist/utils/streaming-text.d.ts.map +1 -0
- package/dist/utils/streaming-text.js +87 -0
- package/dist/voice/index.d.ts +2 -0
- package/dist/voice/index.d.ts.map +1 -0
- package/dist/voice/index.js +1 -0
- package/dist/voice/types.d.ts +25 -0
- package/dist/voice/types.d.ts.map +1 -0
- package/dist/voice/types.js +166 -0
- package/package.json +86 -0
- package/src/App.tsx +469 -0
- package/src/actions/character.ts +113 -0
- package/src/actions/chat-helpers.ts +100 -0
- package/src/actions/cloud.ts +59 -0
- package/src/actions/index.ts +12 -0
- package/src/actions/lifecycle.ts +175 -0
- package/src/actions/onboarding.ts +46 -0
- package/src/actions/triggers.ts +190 -0
- package/src/ambient.d.ts +16 -0
- package/src/api/client.ts +5616 -0
- package/src/api/index.ts +1 -0
- package/src/autonomy/index.ts +477 -0
- package/src/bridge/capacitor-bridge.ts +295 -0
- package/src/bridge/electrobun-rpc.ts +58 -0
- package/src/bridge/electrobun-runtime.ts +28 -0
- package/src/bridge/index.ts +5 -0
- package/src/bridge/native-plugins.ts +134 -0
- package/src/bridge/plugin-bridge.ts +352 -0
- package/src/bridge/storage-bridge.ts +162 -0
- package/src/chat/index.ts +251 -0
- package/src/coding/index.ts +43 -0
- package/src/components/AdvancedPageView.tsx +362 -0
- package/src/components/AgentActivityBox.tsx +49 -0
- package/src/components/ApiKeyConfig.tsx +224 -0
- package/src/components/AppsPageView.tsx +52 -0
- package/src/components/AppsView.tsx +293 -0
- package/src/components/AvatarLoader.tsx +86 -0
- package/src/components/AvatarSelector.tsx +223 -0
- package/src/components/BscTradePanel.tsx +549 -0
- package/src/components/BugReportModal.tsx +499 -0
- package/src/components/CharacterView.tsx +1623 -0
- package/src/components/ChatAvatar.test.ts +96 -0
- package/src/components/ChatAvatar.tsx +147 -0
- package/src/components/ChatComposer.tsx +330 -0
- package/src/components/ChatMessage.tsx +448 -0
- package/src/components/ChatModalView.test.tsx +118 -0
- package/src/components/ChatModalView.tsx +125 -0
- package/src/components/ChatView.tsx +999 -0
- package/src/components/CloudSourceControls.tsx +80 -0
- package/src/components/CodingAgentSettingsSection.tsx +536 -0
- package/src/components/CommandPalette.tsx +284 -0
- package/src/components/CompanionSceneHost.tsx +498 -0
- package/src/components/CompanionShell.tsx +31 -0
- package/src/components/CompanionView.tsx +109 -0
- package/src/components/ConfigPageView.tsx +722 -0
- package/src/components/ConfigSaveFooter.tsx +41 -0
- package/src/components/ConfirmModal.tsx +379 -0
- package/src/components/ConnectionFailedBanner.tsx +91 -0
- package/src/components/ConnectorsPageView.tsx +13 -0
- package/src/components/ConversationsSidebar.tsx +279 -0
- package/src/components/CustomActionEditor.tsx +1125 -0
- package/src/components/CustomActionsPanel.tsx +288 -0
- package/src/components/CustomActionsView.tsx +322 -0
- package/src/components/DatabasePageView.tsx +55 -0
- package/src/components/DatabaseView.tsx +814 -0
- package/src/components/ElizaCloudDashboard.tsx +1696 -0
- package/src/components/EmotePicker.tsx +529 -0
- package/src/components/ErrorBoundary.tsx +76 -0
- package/src/components/FineTuningView.tsx +1080 -0
- package/src/components/GameView.tsx +551 -0
- package/src/components/GameViewOverlay.tsx +133 -0
- package/src/components/GlobalEmoteOverlay.tsx +152 -0
- package/src/components/Header.test.tsx +413 -0
- package/src/components/Header.tsx +400 -0
- package/src/components/HeartbeatsView.tsx +1002 -0
- package/src/components/InventoryView.tsx +372 -0
- package/src/components/KnowledgeView.tsx +1128 -0
- package/src/components/LanguageDropdown.tsx +187 -0
- package/src/components/LifoMonitorPanel.tsx +196 -0
- package/src/components/LifoSandboxView.tsx +499 -0
- package/src/components/LoadingScreen.tsx +77 -0
- package/src/components/LogsPageView.tsx +17 -0
- package/src/components/LogsView.tsx +239 -0
- package/src/components/MediaGalleryView.tsx +432 -0
- package/src/components/MediaSettingsSection.tsx +893 -0
- package/src/components/MessageContent.tsx +815 -0
- package/src/components/OnboardingWizard.test.tsx +107 -0
- package/src/components/OnboardingWizard.tsx +186 -0
- package/src/components/PairingView.tsx +110 -0
- package/src/components/PermissionsSection.tsx +818 -0
- package/src/components/PluginsPageView.tsx +9 -0
- package/src/components/PluginsView.tsx +3152 -0
- package/src/components/ProviderSwitcher.tsx +874 -0
- package/src/components/RestartBanner.tsx +76 -0
- package/src/components/RuntimeView.tsx +460 -0
- package/src/components/SaveCommandModal.tsx +211 -0
- package/src/components/SecretsView.tsx +569 -0
- package/src/components/SettingsView.tsx +825 -0
- package/src/components/ShellOverlays.tsx +41 -0
- package/src/components/ShortcutsOverlay.tsx +155 -0
- package/src/components/SkillsView.tsx +1435 -0
- package/src/components/StartupFailureView.tsx +63 -0
- package/src/components/StreamView.tsx +483 -0
- package/src/components/StripeEmbeddedCheckout.tsx +155 -0
- package/src/components/SubscriptionStatus.tsx +634 -0
- package/src/components/SystemWarningBanner.tsx +71 -0
- package/src/components/ThemeToggle.tsx +100 -0
- package/src/components/TrajectoriesView.tsx +526 -0
- package/src/components/TrajectoryDetailView.tsx +426 -0
- package/src/components/TriggersView.tsx +1 -0
- package/src/components/VectorBrowserView.tsx +1633 -0
- package/src/components/VoiceConfigView.tsx +674 -0
- package/src/components/VrmStage.test.ts +219 -0
- package/src/components/VrmStage.tsx +432 -0
- package/src/components/WhatsAppQrOverlay.tsx +230 -0
- package/src/components/__tests__/chainConfig.test.ts +220 -0
- package/src/components/apps/AppDetailPane.tsx +242 -0
- package/src/components/apps/AppsCatalogGrid.tsx +137 -0
- package/src/components/apps/extensions/HyperscapeAppDetailPanel.tsx +577 -0
- package/src/components/apps/extensions/registry.ts +16 -0
- package/src/components/apps/extensions/types.ts +9 -0
- package/src/components/apps/helpers.ts +44 -0
- package/src/components/avatar/VrmAnimationLoader.test.ts +164 -0
- package/src/components/avatar/VrmAnimationLoader.ts +151 -0
- package/src/components/avatar/VrmBlinkController.ts +118 -0
- package/src/components/avatar/VrmCameraManager.ts +407 -0
- package/src/components/avatar/VrmEngine.ts +2678 -0
- package/src/components/avatar/VrmFootShadow.ts +96 -0
- package/src/components/avatar/VrmViewer.tsx +421 -0
- package/src/components/avatar/__tests__/VrmCameraManager.test.ts +168 -0
- package/src/components/avatar/__tests__/VrmEngine.test.ts +1574 -0
- package/src/components/avatar/mixamoVRMRigMap.ts +62 -0
- package/src/components/avatar/retargetMixamoFbxToVrm.ts +144 -0
- package/src/components/avatar/retargetMixamoGltfToVrm.ts +119 -0
- package/src/components/chainConfig.ts +380 -0
- package/src/components/companion/CompanionHeader.tsx +47 -0
- package/src/components/companion/CompanionSceneHost.tsx +5 -0
- package/src/components/companion/VrmStage.tsx +2 -0
- package/src/components/companion/__tests__/walletUtils.test.ts +742 -0
- package/src/components/companion/walletUtils.ts +290 -0
- package/src/components/companion-shell-styles.test.ts +146 -0
- package/src/components/companion-shell-styles.ts +270 -0
- package/src/components/confirm-delete-control.tsx +69 -0
- package/src/components/conversations/ConversationListItem.tsx +185 -0
- package/src/components/conversations/conversation-utils.ts +151 -0
- package/src/components/format.ts +131 -0
- package/src/components/index.ts +92 -0
- package/src/components/inventory/CopyableAddress.tsx +41 -0
- package/src/components/inventory/InventoryToolbar.tsx +142 -0
- package/src/components/inventory/NftGrid.tsx +99 -0
- package/src/components/inventory/TokenLogo.tsx +71 -0
- package/src/components/inventory/TokensTable.tsx +216 -0
- package/src/components/inventory/constants.ts +170 -0
- package/src/components/inventory/index.ts +29 -0
- package/src/components/inventory/media-url.test.ts +38 -0
- package/src/components/inventory/media-url.ts +36 -0
- package/src/components/inventory/useInventoryData.ts +460 -0
- package/src/components/knowledge-upload-image.ts +215 -0
- package/src/components/labels.ts +46 -0
- package/src/components/onboarding/ActivateStep.tsx +30 -0
- package/src/components/onboarding/ConnectionStep.tsx +1530 -0
- package/src/components/onboarding/OnboardingPanel.tsx +39 -0
- package/src/components/onboarding/OnboardingStepNav.tsx +31 -0
- package/src/components/onboarding/PermissionsStep.tsx +20 -0
- package/src/components/onboarding/RpcStep.tsx +402 -0
- package/src/components/onboarding/WakeUpStep.tsx +184 -0
- package/src/components/permissions/PermissionIcon.tsx +25 -0
- package/src/components/permissions/StreamingPermissions.tsx +376 -0
- package/src/components/plugins/showcase-data.ts +481 -0
- package/src/components/shared/ShellHeaderControls.tsx +193 -0
- package/src/components/skeletons.tsx +88 -0
- package/src/components/stream/ActivityFeed.tsx +113 -0
- package/src/components/stream/AvatarPip.tsx +10 -0
- package/src/components/stream/ChatContent.tsx +126 -0
- package/src/components/stream/ChatTicker.tsx +55 -0
- package/src/components/stream/IdleContent.tsx +73 -0
- package/src/components/stream/StatusBar.tsx +469 -0
- package/src/components/stream/StreamSettings.tsx +506 -0
- package/src/components/stream/StreamTerminal.tsx +94 -0
- package/src/components/stream/StreamVoiceConfig.tsx +160 -0
- package/src/components/stream/helpers.ts +134 -0
- package/src/components/stream/overlays/OverlayLayer.tsx +75 -0
- package/src/components/stream/overlays/built-in/ActionTickerWidget.tsx +64 -0
- package/src/components/stream/overlays/built-in/AlertPopupWidget.tsx +87 -0
- package/src/components/stream/overlays/built-in/BrandingWidget.tsx +51 -0
- package/src/components/stream/overlays/built-in/CustomHtmlWidget.tsx +105 -0
- package/src/components/stream/overlays/built-in/PeonGlassWidget.tsx +265 -0
- package/src/components/stream/overlays/built-in/PeonHudWidget.tsx +247 -0
- package/src/components/stream/overlays/built-in/PeonSakuraWidget.tsx +278 -0
- package/src/components/stream/overlays/built-in/ThoughtBubbleWidget.tsx +77 -0
- package/src/components/stream/overlays/built-in/ViewerCountWidget.tsx +46 -0
- package/src/components/stream/overlays/built-in/index.ts +13 -0
- package/src/components/stream/overlays/registry.ts +22 -0
- package/src/components/stream/overlays/types.ts +90 -0
- package/src/components/stream/overlays/useOverlayLayout.ts +218 -0
- package/src/components/trajectory-format.ts +50 -0
- package/src/components/ui-badges.tsx +109 -0
- package/src/components/ui-switch.tsx +57 -0
- package/src/components/vector-browser-three.ts +27 -0
- package/src/config/config-catalog.ts +1092 -0
- package/src/config/config-field.tsx +1900 -0
- package/src/config/config-renderer.tsx +730 -0
- package/src/config/index.ts +11 -0
- package/src/config/ui-renderer.tsx +1751 -0
- package/src/config/ui-spec.ts +256 -0
- package/src/events/index.ts +89 -0
- package/src/hooks/index.ts +13 -0
- package/src/hooks/useBugReport.tsx +43 -0
- package/src/hooks/useCanvasWindow.ts +372 -0
- package/src/hooks/useChatAvatarVoice.ts +111 -0
- package/src/hooks/useContextMenu.ts +127 -0
- package/src/hooks/useKeyboardShortcuts.ts +86 -0
- package/src/hooks/useLifoSync.ts +143 -0
- package/src/hooks/useMemoryMonitor.ts +335 -0
- package/src/hooks/useRenderGuard.ts +43 -0
- package/src/hooks/useRetakeCapture.ts +67 -0
- package/src/hooks/useStreamPopoutNavigation.ts +27 -0
- package/src/hooks/useTimeout.ts +37 -0
- package/src/hooks/useVoiceChat.ts +1443 -0
- package/src/hooks/useWhatsAppPairing.ts +123 -0
- package/src/i18n/index.ts +76 -0
- package/src/i18n/locales/en.json +1196 -0
- package/src/i18n/locales/es.json +1196 -0
- package/src/i18n/locales/ko.json +1196 -0
- package/src/i18n/locales/pt.json +1196 -0
- package/src/i18n/locales/zh-CN.json +1196 -0
- package/src/i18n/messages.ts +21 -0
- package/src/index.ts +6 -0
- package/src/navigation/index.ts +282 -0
- package/src/navigation.test.ts +189 -0
- package/src/platform/browser-launch.test.ts +94 -0
- package/src/platform/browser-launch.ts +149 -0
- package/src/platform/index.ts +261 -0
- package/src/platform/init.ts +236 -0
- package/src/providers/index.ts +82 -0
- package/src/state/AppContext.tsx +5737 -0
- package/src/state/index.ts +6 -0
- package/src/state/internal.ts +77 -0
- package/src/state/parsers.test.ts +124 -0
- package/src/state/parsers.ts +309 -0
- package/src/state/persistence.ts +278 -0
- package/src/state/types.ts +694 -0
- package/src/state/ui-preferences.ts +3 -0
- package/src/state/useApp.ts +23 -0
- package/src/state/vrm.ts +76 -0
- package/src/stories/AppMockProvider.tsx +32 -0
- package/src/stories/ChatEmptyState.stories.tsx +27 -0
- package/src/stories/ChatMessage.stories.tsx +115 -0
- package/src/stories/CompanionHeader.stories.tsx +74 -0
- package/src/stories/CompanionView.stories.tsx +33 -0
- package/src/stories/ConversationListItem.stories.tsx +102 -0
- package/src/stories/TypingIndicator.stories.tsx +28 -0
- package/src/styles/anime.css +6324 -0
- package/src/styles/base.css +196 -0
- package/src/styles/onboarding-game.css +716 -0
- package/src/styles/styles.css +2085 -0
- package/src/styles/xterm.css +241 -0
- package/src/types/index.ts +715 -0
- package/src/types/react-test-renderer.d.ts +45 -0
- package/src/utils/asset-url.ts +110 -0
- package/src/utils/assistant-text.ts +172 -0
- package/src/utils/clipboard.ts +41 -0
- package/src/utils/desktop-dialogs.ts +80 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/number-parsing.ts +125 -0
- package/src/utils/openExternalUrl.ts +20 -0
- package/src/utils/spoken-text.ts +65 -0
- package/src/utils/streaming-text.ts +120 -0
- package/src/voice/index.ts +1 -0
- package/src/voice/types.ts +197 -0
- package/test/app/AppContext.pty-sessions.test.tsx +143 -0
- package/test/app/MessageContent.test.tsx +326 -0
- package/test/app/PermissionsOnboarding.test.tsx +216 -0
- package/test/app/PermissionsSection.test.tsx +186 -0
- package/test/app/advanced-trajectory-fine-tuning.e2e.test.ts +397 -0
- package/test/app/agent-activity-box.test.tsx +132 -0
- package/test/app/agent-transfer-lock.test.ts +274 -0
- package/test/app/api-client-electron-fallback.test.ts +139 -0
- package/test/app/api-client-timeout.test.ts +75 -0
- package/test/app/api-client-ws.test.ts +98 -0
- package/test/app/api-client.ws-max-reconnect.test.ts +139 -0
- package/test/app/api-client.ws-reconnect.test.ts +157 -0
- package/test/app/app-context-autonomy-events.test.ts +478 -0
- package/test/app/apps-page-view.test.ts +114 -0
- package/test/app/apps-view.test.ts +769 -0
- package/test/app/autonomous-workflows.e2e.test.ts +765 -0
- package/test/app/autonomy-events.test.ts +150 -0
- package/test/app/avatar-selector.test.tsx +52 -0
- package/test/app/bsc-trade-panel.test.tsx +134 -0
- package/test/app/bug-report-modal.test.tsx +353 -0
- package/test/app/character-customization.e2e.test.ts +1168 -0
- package/test/app/chat-advanced-features.e2e.test.ts +706 -0
- package/test/app/chat-composer.test.tsx +181 -0
- package/test/app/chat-language-header.test.ts +64 -0
- package/test/app/chat-message.test.tsx +222 -0
- package/test/app/chat-modal-view.test.tsx +191 -0
- package/test/app/chat-routine-filter.test.ts +96 -0
- package/test/app/chat-send-lock.test.ts +1302 -0
- package/test/app/chat-stream-api-client.test.tsx +390 -0
- package/test/app/chat-view-game-modal.test.tsx +661 -0
- package/test/app/chat-view.test.tsx +877 -0
- package/test/app/cloud-api.e2e.test.ts +258 -0
- package/test/app/cloud-login-flow.e2e.test.ts +494 -0
- package/test/app/cloud-login-lock.test.ts +411 -0
- package/test/app/command-palette.test.tsx +184 -0
- package/test/app/command-registry.test.ts +75 -0
- package/test/app/companion-greeting-wave.test.tsx +443 -0
- package/test/app/companion-stale-conversation.test.tsx +424 -0
- package/test/app/companion-view.test.tsx +686 -0
- package/test/app/confirm-delete-control.test.ts +79 -0
- package/test/app/confirm-modal.test.tsx +219 -0
- package/test/app/connectors-ui.e2e.test.ts +508 -0
- package/test/app/conversations-sidebar-game-modal.test.tsx +260 -0
- package/test/app/conversations-sidebar.test.tsx +160 -0
- package/test/app/custom-actions-smoke.test.ts +387 -0
- package/test/app/custom-avatar-api-client.test.ts +207 -0
- package/test/app/desktop-utils.test.ts +145 -0
- package/test/app/electrobun-rpc-bridge.test.ts +83 -0
- package/test/app/events.test.ts +88 -0
- package/test/app/export-import-flows.e2e.test.ts +700 -0
- package/test/app/fine-tuning-view.test.ts +471 -0
- package/test/app/game-view-auth-session.test.tsx +186 -0
- package/test/app/game-view.test.ts +444 -0
- package/test/app/global-emote-overlay.test.tsx +106 -0
- package/test/app/header-status.test.tsx +149 -0
- package/test/app/i18n.test.ts +152 -0
- package/test/app/inventory-bsc-view.test.ts +908 -0
- package/test/app/knowledge-ui.e2e.test.ts +762 -0
- package/test/app/knowledge-upload-helpers.test.ts +124 -0
- package/test/app/lifecycle-lock.test.ts +267 -0
- package/test/app/lifo-popout-utils.test.ts +208 -0
- package/test/app/lifo-safe-endpoint.test.ts +34 -0
- package/test/app/loading-screen.test.tsx +45 -0
- package/test/app/memory-monitor.test.ts +332 -0
- package/test/app/navigation.test.tsx +29 -0
- package/test/app/onboarding-finish-lock.test.ts +500 -0
- package/test/app/onboarding-language.test.tsx +161 -0
- package/test/app/onboarding-steps.test.tsx +371 -0
- package/test/app/open-external-url.test.ts +65 -0
- package/test/app/pages-navigation-smoke.e2e.test.ts +633 -0
- package/test/app/pairing-lock.test.ts +260 -0
- package/test/app/pairing-view.test.tsx +74 -0
- package/test/app/permissions-section.test.ts +432 -0
- package/test/app/plugin-bridge.test.ts +109 -0
- package/test/app/plugins-ui.e2e.test.ts +605 -0
- package/test/app/plugins-view-game-modal.test.tsx +650 -0
- package/test/app/plugins-view-toggle-restart.test.ts +129 -0
- package/test/app/provider-dropdown-default.test.tsx +164 -0
- package/test/app/restart-banner.test.tsx +197 -0
- package/test/app/retake-capture.test.ts +84 -0
- package/test/app/sandbox-api-client.test.ts +108 -0
- package/test/app/save-command-modal.test.tsx +109 -0
- package/test/app/secrets-view.test.tsx +92 -0
- package/test/app/settings-control-styles.test.tsx +142 -0
- package/test/app/settings-reset.e2e.test.ts +728 -0
- package/test/app/settings-sections.e2e.test.ts +614 -0
- package/test/app/shared-format.test.ts +44 -0
- package/test/app/shared-switch.test.ts +69 -0
- package/test/app/shell-mode-switching.e2e.test.ts +829 -0
- package/test/app/shell-mode-tab-memory.test.tsx +283 -0
- package/test/app/shell-overlays.test.tsx +50 -0
- package/test/app/shortcuts-overlay.test.tsx +111 -0
- package/test/app/sse-interruption.test.ts +122 -0
- package/test/app/startup-asset-missing.e2e.test.ts +126 -0
- package/test/app/startup-backend-missing.e2e.test.ts +118 -0
- package/test/app/startup-chat.e2e.test.ts +305 -0
- package/test/app/startup-conversation-restore.test.tsx +344 -0
- package/test/app/startup-failure-view.test.tsx +103 -0
- package/test/app/startup-onboarding.e2e.test.ts +612 -0
- package/test/app/startup-timeout.test.tsx +80 -0
- package/test/app/startup-token-401.e2e.test.ts +103 -0
- package/test/app/stream-helpers.test.ts +46 -0
- package/test/app/stream-popout-navigation.test.tsx +41 -0
- package/test/app/stream-status-bar.test.tsx +89 -0
- package/test/app/theme-toggle.test.tsx +33 -0
- package/test/app/training-api-client.test.ts +128 -0
- package/test/app/trajectories-view.test.tsx +220 -0
- package/test/app/triggers-api-client.test.ts +77 -0
- package/test/app/triggers-navigation.test.ts +118 -0
- package/test/app/triggers-view.e2e.test.ts +674 -0
- package/test/app/update-channel-lock.test.ts +259 -0
- package/test/app/vector-browser.async-cleanup.test.tsx +367 -0
- package/test/app/vector-browser.e2e.test.ts +653 -0
- package/test/app/vrm-stage.test.tsx +351 -0
- package/test/app/vrm-viewer.test.tsx +298 -0
- package/test/app/wallet-api-save-lock.test.ts +277 -0
- package/test/app/wallet-hooks.test.ts +405 -0
- package/test/app/wallet-ui-flows.e2e.test.ts +556 -0
- package/test/avatar/asset-url.test.ts +90 -0
- package/test/avatar/avatar-selector.test.ts +173 -0
- package/test/avatar/mixamo-vrm-rig-map.test.ts +111 -0
- package/test/avatar/voice-chat-streaming-text.test.ts +96 -0
- package/test/avatar/voice-chat.test.ts +391 -0
- package/test/ui/command-palette-commands.test.ts +57 -0
- package/test/ui/ui-renderer.test.ts +39 -0
- package/tsconfig.build.json +19 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,2823 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API client for the Milady backend.
|
|
3
|
+
*
|
|
4
|
+
* Thin fetch wrapper + WebSocket for real-time chat/events.
|
|
5
|
+
* Replaces the gateway WebSocket protocol entirely.
|
|
6
|
+
*/
|
|
7
|
+
import type { AudioGenConfig, AudioGenProvider, CustomActionDef, CustomActionHandler, DatabaseProviderType, ImageConfig, ImageProvider, MediaConfig, MediaMode, ReleaseChannel, VideoConfig, VideoProvider, VisionConfig, VisionProvider } from "@elizaos/autonomous/contracts/config";
|
|
8
|
+
import type { DropStatus, MintResult } from "@elizaos/autonomous/contracts/drop";
|
|
9
|
+
import type { StylePreset } from "@elizaos/autonomous/contracts/onboarding";
|
|
10
|
+
import type { AllPermissionsState, PermissionState, PermissionStatus, SystemPermissionDefinition, SystemPermissionId } from "@elizaos/autonomous/contracts/permissions";
|
|
11
|
+
import type { VerificationResult } from "@elizaos/autonomous/contracts/verification";
|
|
12
|
+
import type { BscTradeExecuteRequest, BscTradeExecuteResponse, BscTradePreflightResponse, BscTradeQuoteRequest, BscTradeQuoteResponse, BscTradeTxStatusResponse, BscTransferExecuteRequest, BscTransferExecuteResponse, EvmChainBalance, EvmNft, EvmTokenBalance, SolanaNft, SolanaTokenBalance, WalletAddresses, WalletBalancesResponse, WalletConfigStatus, WalletNftsResponse, TradePermissionMode as WalletTradePermissionMode, WalletTradingProfileResponse, WalletTradingProfileSourceFilter, WalletTradingProfileWindow } from "@elizaos/autonomous/contracts/wallet";
|
|
13
|
+
import type { ConfigUiHint } from "../types";
|
|
14
|
+
export type { AudioGenConfig, AudioGenProvider, CustomActionDef, CustomActionHandler, DatabaseProviderType, ImageConfig, ImageProvider, MediaConfig, MediaMode, ReleaseChannel, VideoConfig, VideoProvider, VisionConfig, VisionProvider, };
|
|
15
|
+
export type { StylePreset };
|
|
16
|
+
export type { BscTradeExecuteRequest, BscTradeExecuteResponse, BscTransferExecuteRequest, BscTransferExecuteResponse, BscTradePreflightResponse, BscTradeQuoteRequest, BscTradeQuoteResponse, BscTradeTxStatusResponse, EvmChainBalance, EvmNft, EvmTokenBalance, SolanaNft, SolanaTokenBalance, WalletAddresses, WalletBalancesResponse, WalletConfigStatus, WalletNftsResponse, WalletTradingProfileResponse, WalletTradingProfileSourceFilter, WalletTradingProfileWindow, };
|
|
17
|
+
export type { DropStatus, MintResult };
|
|
18
|
+
export type { VerificationResult };
|
|
19
|
+
export type { AllPermissionsState, PermissionState, PermissionStatus, SystemPermissionId, SystemPermissionDefinition as PermissionDefinition, };
|
|
20
|
+
export interface DatabaseStatus {
|
|
21
|
+
provider: DatabaseProviderType;
|
|
22
|
+
connected: boolean;
|
|
23
|
+
serverVersion: string | null;
|
|
24
|
+
tableCount: number;
|
|
25
|
+
pgliteDataDir: string | null;
|
|
26
|
+
postgresHost: string | null;
|
|
27
|
+
}
|
|
28
|
+
export interface DatabaseConfigResponse {
|
|
29
|
+
config: {
|
|
30
|
+
provider?: DatabaseProviderType;
|
|
31
|
+
pglite?: {
|
|
32
|
+
dataDir?: string;
|
|
33
|
+
};
|
|
34
|
+
postgres?: {
|
|
35
|
+
connectionString?: string;
|
|
36
|
+
host?: string;
|
|
37
|
+
port?: number;
|
|
38
|
+
database?: string;
|
|
39
|
+
user?: string;
|
|
40
|
+
password?: string;
|
|
41
|
+
ssl?: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
activeProvider: DatabaseProviderType;
|
|
45
|
+
needsRestart: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface ConnectionTestResult {
|
|
48
|
+
success: boolean;
|
|
49
|
+
serverVersion: string | null;
|
|
50
|
+
error: string | null;
|
|
51
|
+
durationMs: number;
|
|
52
|
+
}
|
|
53
|
+
export interface TableInfo {
|
|
54
|
+
name: string;
|
|
55
|
+
schema: string;
|
|
56
|
+
rowCount: number;
|
|
57
|
+
columns: ColumnInfo[];
|
|
58
|
+
}
|
|
59
|
+
export interface ColumnInfo {
|
|
60
|
+
name: string;
|
|
61
|
+
type: string;
|
|
62
|
+
nullable: boolean;
|
|
63
|
+
defaultValue: string | null;
|
|
64
|
+
isPrimaryKey: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface TableRowsResponse {
|
|
67
|
+
table: string;
|
|
68
|
+
rows: Record<string, unknown>[];
|
|
69
|
+
columns: string[];
|
|
70
|
+
total: number;
|
|
71
|
+
offset: number;
|
|
72
|
+
limit: number;
|
|
73
|
+
}
|
|
74
|
+
export interface QueryResult {
|
|
75
|
+
columns: string[];
|
|
76
|
+
rows: Record<string, unknown>[];
|
|
77
|
+
rowCount: number;
|
|
78
|
+
durationMs: number;
|
|
79
|
+
}
|
|
80
|
+
export type AgentState = "not_started" | "starting" | "running" | "stopped" | "restarting" | "error";
|
|
81
|
+
export interface AgentStartupDiagnostics {
|
|
82
|
+
phase: string;
|
|
83
|
+
attempt: number;
|
|
84
|
+
lastError?: string;
|
|
85
|
+
lastErrorAt?: number;
|
|
86
|
+
nextRetryAt?: number;
|
|
87
|
+
}
|
|
88
|
+
export interface AgentStatus {
|
|
89
|
+
state: AgentState;
|
|
90
|
+
agentName: string;
|
|
91
|
+
model: string | undefined;
|
|
92
|
+
uptime: number | undefined;
|
|
93
|
+
startedAt: number | undefined;
|
|
94
|
+
pendingRestart?: boolean;
|
|
95
|
+
pendingRestartReasons?: string[];
|
|
96
|
+
startup?: AgentStartupDiagnostics;
|
|
97
|
+
}
|
|
98
|
+
export type AgentAutomationMode = "connectors-only" | "full";
|
|
99
|
+
export type TradePermissionMode = WalletTradePermissionMode;
|
|
100
|
+
export interface AgentAutomationModeResponse {
|
|
101
|
+
mode: AgentAutomationMode;
|
|
102
|
+
options: AgentAutomationMode[];
|
|
103
|
+
}
|
|
104
|
+
export interface TradePermissionModeResponse {
|
|
105
|
+
mode: TradePermissionMode;
|
|
106
|
+
options: TradePermissionMode[];
|
|
107
|
+
}
|
|
108
|
+
export interface ApplyProductionWalletDefaultsResponse {
|
|
109
|
+
ok: boolean;
|
|
110
|
+
profile: "pure-privy-safe";
|
|
111
|
+
walletMode: "privy";
|
|
112
|
+
tradePermissionMode: "user-sign-only";
|
|
113
|
+
bscExecutionEnabled: false;
|
|
114
|
+
clearedSecrets: string[];
|
|
115
|
+
}
|
|
116
|
+
export interface AgentSelfStatusSnapshot {
|
|
117
|
+
generatedAt: string;
|
|
118
|
+
state: AgentState;
|
|
119
|
+
agentName: string;
|
|
120
|
+
model: string | null;
|
|
121
|
+
provider: string | null;
|
|
122
|
+
automationMode: AgentAutomationMode;
|
|
123
|
+
tradePermissionMode: TradePermissionMode;
|
|
124
|
+
shellEnabled: boolean;
|
|
125
|
+
wallet: {
|
|
126
|
+
mode: "privy" | "hybrid";
|
|
127
|
+
evmAddress: string | null;
|
|
128
|
+
evmAddressShort: string | null;
|
|
129
|
+
solanaAddress: string | null;
|
|
130
|
+
solanaAddressShort: string | null;
|
|
131
|
+
hasWallet: boolean;
|
|
132
|
+
hasEvm: boolean;
|
|
133
|
+
hasSolana: boolean;
|
|
134
|
+
localSignerAvailable: boolean;
|
|
135
|
+
managedBscRpcReady: boolean;
|
|
136
|
+
};
|
|
137
|
+
plugins: {
|
|
138
|
+
totalActive: number;
|
|
139
|
+
active: string[];
|
|
140
|
+
aiProviders: string[];
|
|
141
|
+
connectors: string[];
|
|
142
|
+
};
|
|
143
|
+
capabilities: {
|
|
144
|
+
canTrade: boolean;
|
|
145
|
+
canLocalTrade: boolean;
|
|
146
|
+
canAutoTrade: boolean;
|
|
147
|
+
canUseBrowser: boolean;
|
|
148
|
+
canUseComputer: boolean;
|
|
149
|
+
canRunTerminal: boolean;
|
|
150
|
+
canInstallPlugins: boolean;
|
|
151
|
+
canConfigurePlugins: boolean;
|
|
152
|
+
canConfigureConnectors: boolean;
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
export type WebSocketConnectionState = "connected" | "disconnected" | "reconnecting" | "failed";
|
|
156
|
+
export interface ConnectionStateInfo {
|
|
157
|
+
state: WebSocketConnectionState;
|
|
158
|
+
reconnectAttempt: number;
|
|
159
|
+
maxReconnectAttempts: number;
|
|
160
|
+
disconnectedAt: number | null;
|
|
161
|
+
}
|
|
162
|
+
export type ApiErrorKind = "timeout" | "network" | "http";
|
|
163
|
+
export declare class ApiError extends Error {
|
|
164
|
+
readonly kind: ApiErrorKind;
|
|
165
|
+
readonly status?: number;
|
|
166
|
+
readonly path: string;
|
|
167
|
+
constructor(options: {
|
|
168
|
+
kind: ApiErrorKind;
|
|
169
|
+
path: string;
|
|
170
|
+
message: string;
|
|
171
|
+
status?: number;
|
|
172
|
+
cause?: unknown;
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
export declare function isApiError(value: unknown): value is ApiError;
|
|
176
|
+
export interface RuntimeOrderItem {
|
|
177
|
+
index: number;
|
|
178
|
+
name: string;
|
|
179
|
+
className: string;
|
|
180
|
+
id: string | null;
|
|
181
|
+
}
|
|
182
|
+
export interface RuntimeServiceOrderItem {
|
|
183
|
+
index: number;
|
|
184
|
+
serviceType: string;
|
|
185
|
+
count: number;
|
|
186
|
+
instances: RuntimeOrderItem[];
|
|
187
|
+
}
|
|
188
|
+
export interface RuntimeDebugSnapshot {
|
|
189
|
+
runtimeAvailable: boolean;
|
|
190
|
+
generatedAt: number;
|
|
191
|
+
settings: {
|
|
192
|
+
maxDepth: number;
|
|
193
|
+
maxArrayLength: number;
|
|
194
|
+
maxObjectEntries: number;
|
|
195
|
+
maxStringLength: number;
|
|
196
|
+
};
|
|
197
|
+
meta: {
|
|
198
|
+
agentId?: string;
|
|
199
|
+
agentState: AgentState;
|
|
200
|
+
agentName: string;
|
|
201
|
+
model: string | null;
|
|
202
|
+
pluginCount: number;
|
|
203
|
+
actionCount: number;
|
|
204
|
+
providerCount: number;
|
|
205
|
+
evaluatorCount: number;
|
|
206
|
+
serviceTypeCount: number;
|
|
207
|
+
serviceCount: number;
|
|
208
|
+
};
|
|
209
|
+
order: {
|
|
210
|
+
plugins: RuntimeOrderItem[];
|
|
211
|
+
actions: RuntimeOrderItem[];
|
|
212
|
+
providers: RuntimeOrderItem[];
|
|
213
|
+
evaluators: RuntimeOrderItem[];
|
|
214
|
+
services: RuntimeServiceOrderItem[];
|
|
215
|
+
};
|
|
216
|
+
sections: {
|
|
217
|
+
runtime: unknown;
|
|
218
|
+
plugins: unknown;
|
|
219
|
+
actions: unknown;
|
|
220
|
+
providers: unknown;
|
|
221
|
+
evaluators: unknown;
|
|
222
|
+
services: unknown;
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
export type TriggerType = "interval" | "once" | "cron";
|
|
226
|
+
export type TriggerWakeMode = "inject_now" | "next_autonomy_cycle";
|
|
227
|
+
export type TriggerLastStatus = "success" | "error" | "skipped";
|
|
228
|
+
export interface TriggerSummary {
|
|
229
|
+
id: string;
|
|
230
|
+
taskId: string;
|
|
231
|
+
displayName: string;
|
|
232
|
+
instructions: string;
|
|
233
|
+
triggerType: TriggerType;
|
|
234
|
+
enabled: boolean;
|
|
235
|
+
wakeMode: TriggerWakeMode;
|
|
236
|
+
createdBy: string;
|
|
237
|
+
timezone?: string;
|
|
238
|
+
intervalMs?: number;
|
|
239
|
+
scheduledAtIso?: string;
|
|
240
|
+
cronExpression?: string;
|
|
241
|
+
maxRuns?: number;
|
|
242
|
+
runCount: number;
|
|
243
|
+
nextRunAtMs?: number;
|
|
244
|
+
lastRunAtIso?: string;
|
|
245
|
+
lastStatus?: TriggerLastStatus;
|
|
246
|
+
lastError?: string;
|
|
247
|
+
updatedAt?: number;
|
|
248
|
+
updateInterval?: number;
|
|
249
|
+
}
|
|
250
|
+
export interface TriggerRunRecord {
|
|
251
|
+
triggerRunId: string;
|
|
252
|
+
triggerId: string;
|
|
253
|
+
taskId: string;
|
|
254
|
+
startedAt: number;
|
|
255
|
+
finishedAt: number;
|
|
256
|
+
status: TriggerLastStatus;
|
|
257
|
+
error?: string;
|
|
258
|
+
latencyMs: number;
|
|
259
|
+
source: "scheduler" | "manual";
|
|
260
|
+
}
|
|
261
|
+
export interface TriggerHealthSnapshot {
|
|
262
|
+
triggersEnabled: boolean;
|
|
263
|
+
activeTriggers: number;
|
|
264
|
+
disabledTriggers: number;
|
|
265
|
+
totalExecutions: number;
|
|
266
|
+
totalFailures: number;
|
|
267
|
+
totalSkipped: number;
|
|
268
|
+
lastExecutionAt?: number;
|
|
269
|
+
}
|
|
270
|
+
export interface CreateTriggerRequest {
|
|
271
|
+
displayName?: string;
|
|
272
|
+
instructions?: string;
|
|
273
|
+
triggerType?: TriggerType;
|
|
274
|
+
wakeMode?: TriggerWakeMode;
|
|
275
|
+
enabled?: boolean;
|
|
276
|
+
createdBy?: string;
|
|
277
|
+
timezone?: string;
|
|
278
|
+
intervalMs?: number;
|
|
279
|
+
scheduledAtIso?: string;
|
|
280
|
+
cronExpression?: string;
|
|
281
|
+
maxRuns?: number;
|
|
282
|
+
}
|
|
283
|
+
export interface UpdateTriggerRequest {
|
|
284
|
+
displayName?: string;
|
|
285
|
+
instructions?: string;
|
|
286
|
+
triggerType?: TriggerType;
|
|
287
|
+
wakeMode?: TriggerWakeMode;
|
|
288
|
+
enabled?: boolean;
|
|
289
|
+
timezone?: string;
|
|
290
|
+
intervalMs?: number;
|
|
291
|
+
scheduledAtIso?: string;
|
|
292
|
+
cronExpression?: string;
|
|
293
|
+
maxRuns?: number;
|
|
294
|
+
}
|
|
295
|
+
export interface MessageExample {
|
|
296
|
+
user: string;
|
|
297
|
+
content: {
|
|
298
|
+
text: string;
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
export interface ProviderOption {
|
|
302
|
+
id: string;
|
|
303
|
+
name: string;
|
|
304
|
+
envKey: string | null;
|
|
305
|
+
pluginName: string;
|
|
306
|
+
keyPrefix: string | null;
|
|
307
|
+
description: string;
|
|
308
|
+
}
|
|
309
|
+
export interface CloudProviderOption {
|
|
310
|
+
id: string;
|
|
311
|
+
name: string;
|
|
312
|
+
description: string;
|
|
313
|
+
}
|
|
314
|
+
export interface ModelOption {
|
|
315
|
+
id: string;
|
|
316
|
+
name: string;
|
|
317
|
+
provider: string;
|
|
318
|
+
description: string;
|
|
319
|
+
}
|
|
320
|
+
export interface RpcProviderOption {
|
|
321
|
+
id: string;
|
|
322
|
+
name: string;
|
|
323
|
+
description: string;
|
|
324
|
+
envKey: string | null;
|
|
325
|
+
requiresKey: boolean;
|
|
326
|
+
}
|
|
327
|
+
export interface InventoryProviderOption {
|
|
328
|
+
id: string;
|
|
329
|
+
name: string;
|
|
330
|
+
description: string;
|
|
331
|
+
rpcProviders: RpcProviderOption[];
|
|
332
|
+
}
|
|
333
|
+
export interface OpenRouterModelOption {
|
|
334
|
+
id: string;
|
|
335
|
+
name: string;
|
|
336
|
+
description: string;
|
|
337
|
+
}
|
|
338
|
+
export interface PiAiModelOption {
|
|
339
|
+
id: string;
|
|
340
|
+
name: string;
|
|
341
|
+
provider: string;
|
|
342
|
+
isDefault: boolean;
|
|
343
|
+
}
|
|
344
|
+
export interface OnboardingOptions {
|
|
345
|
+
names: string[];
|
|
346
|
+
styles: StylePreset[];
|
|
347
|
+
providers: ProviderOption[];
|
|
348
|
+
cloudProviders: CloudProviderOption[];
|
|
349
|
+
models: {
|
|
350
|
+
small: ModelOption[];
|
|
351
|
+
large: ModelOption[];
|
|
352
|
+
};
|
|
353
|
+
openrouterModels?: OpenRouterModelOption[];
|
|
354
|
+
piAiModels?: PiAiModelOption[];
|
|
355
|
+
piAiDefaultModel?: string | null;
|
|
356
|
+
inventoryProviders: InventoryProviderOption[];
|
|
357
|
+
sharedStyleRules: string;
|
|
358
|
+
githubOAuthAvailable?: boolean;
|
|
359
|
+
}
|
|
360
|
+
/** Configuration for a single messaging connector. */
|
|
361
|
+
export interface ConnectorConfig {
|
|
362
|
+
enabled?: boolean;
|
|
363
|
+
botToken?: string;
|
|
364
|
+
token?: string;
|
|
365
|
+
apiKey?: string;
|
|
366
|
+
[key: string]: string | boolean | number | string[] | Record<string, unknown> | undefined;
|
|
367
|
+
}
|
|
368
|
+
export interface OnboardingData {
|
|
369
|
+
name: string;
|
|
370
|
+
runMode: "local" | "cloud";
|
|
371
|
+
/** Sandbox execution mode: "off" (rawdog), "light" (cloud), "standard" (local sandbox), "max". */
|
|
372
|
+
sandboxMode?: "off" | "light" | "standard" | "max";
|
|
373
|
+
bio: string[];
|
|
374
|
+
systemPrompt: string;
|
|
375
|
+
style?: {
|
|
376
|
+
all: string[];
|
|
377
|
+
chat: string[];
|
|
378
|
+
post: string[];
|
|
379
|
+
};
|
|
380
|
+
adjectives?: string[];
|
|
381
|
+
topics?: string[];
|
|
382
|
+
postExamples?: string[];
|
|
383
|
+
messageExamples?: MessageExample[][];
|
|
384
|
+
cloudProvider?: string;
|
|
385
|
+
smallModel?: string;
|
|
386
|
+
largeModel?: string;
|
|
387
|
+
provider?: string;
|
|
388
|
+
providerApiKey?: string;
|
|
389
|
+
/** Optional primary model override (provider/model), used by pi-ai mode. */
|
|
390
|
+
primaryModel?: string;
|
|
391
|
+
openrouterModel?: string;
|
|
392
|
+
subscriptionProvider?: string;
|
|
393
|
+
channels?: Record<string, unknown>;
|
|
394
|
+
inventoryProviders?: Array<{
|
|
395
|
+
chain: string;
|
|
396
|
+
rpcProvider: string;
|
|
397
|
+
rpcApiKey?: string;
|
|
398
|
+
}>;
|
|
399
|
+
connectors?: Record<string, ConnectorConfig>;
|
|
400
|
+
telegramToken?: string;
|
|
401
|
+
discordToken?: string;
|
|
402
|
+
whatsappSessionPath?: string;
|
|
403
|
+
twilioAccountSid?: string;
|
|
404
|
+
twilioAuthToken?: string;
|
|
405
|
+
twilioPhoneNumber?: string;
|
|
406
|
+
blooioApiKey?: string;
|
|
407
|
+
blooioPhoneNumber?: string;
|
|
408
|
+
githubToken?: string;
|
|
409
|
+
}
|
|
410
|
+
export interface SubscriptionProviderStatus {
|
|
411
|
+
provider: string;
|
|
412
|
+
configured: boolean;
|
|
413
|
+
valid: boolean;
|
|
414
|
+
expiresAt: number | null;
|
|
415
|
+
}
|
|
416
|
+
export interface SubscriptionStatusResponse {
|
|
417
|
+
providers: SubscriptionProviderStatus[];
|
|
418
|
+
}
|
|
419
|
+
export interface SandboxPlatformStatus {
|
|
420
|
+
platform: string;
|
|
421
|
+
arch?: string;
|
|
422
|
+
dockerInstalled?: boolean;
|
|
423
|
+
dockerAvailable?: boolean;
|
|
424
|
+
dockerRunning?: boolean;
|
|
425
|
+
appleContainerAvailable?: boolean;
|
|
426
|
+
wsl2?: boolean;
|
|
427
|
+
recommended?: string;
|
|
428
|
+
}
|
|
429
|
+
export interface SandboxStartResponse {
|
|
430
|
+
success: boolean;
|
|
431
|
+
message: string;
|
|
432
|
+
waitMs?: number;
|
|
433
|
+
error?: string;
|
|
434
|
+
}
|
|
435
|
+
export interface SandboxBrowserEndpoints {
|
|
436
|
+
cdpEndpoint?: string | null;
|
|
437
|
+
wsEndpoint?: string | null;
|
|
438
|
+
noVncEndpoint?: string | null;
|
|
439
|
+
}
|
|
440
|
+
export interface SandboxScreenshotRegion {
|
|
441
|
+
x: number;
|
|
442
|
+
y: number;
|
|
443
|
+
width: number;
|
|
444
|
+
height: number;
|
|
445
|
+
}
|
|
446
|
+
export interface SandboxScreenshotPayload {
|
|
447
|
+
format: string;
|
|
448
|
+
encoding: string;
|
|
449
|
+
width: number | null;
|
|
450
|
+
height: number | null;
|
|
451
|
+
data: string;
|
|
452
|
+
}
|
|
453
|
+
export interface SandboxWindowInfo {
|
|
454
|
+
id: string;
|
|
455
|
+
title: string;
|
|
456
|
+
app: string;
|
|
457
|
+
}
|
|
458
|
+
export interface SecretInfo {
|
|
459
|
+
key: string;
|
|
460
|
+
description: string;
|
|
461
|
+
category: string;
|
|
462
|
+
sensitive: boolean;
|
|
463
|
+
required: boolean;
|
|
464
|
+
isSet: boolean;
|
|
465
|
+
maskedValue: string | null;
|
|
466
|
+
usedBy: Array<{
|
|
467
|
+
pluginId: string;
|
|
468
|
+
pluginName: string;
|
|
469
|
+
enabled: boolean;
|
|
470
|
+
}>;
|
|
471
|
+
}
|
|
472
|
+
export interface PluginParamDef {
|
|
473
|
+
key: string;
|
|
474
|
+
type: string;
|
|
475
|
+
description: string;
|
|
476
|
+
required: boolean;
|
|
477
|
+
sensitive: boolean;
|
|
478
|
+
default?: string;
|
|
479
|
+
/** Predefined options for dropdown selection (e.g. model names). */
|
|
480
|
+
options?: string[];
|
|
481
|
+
currentValue: string | null;
|
|
482
|
+
isSet: boolean;
|
|
483
|
+
}
|
|
484
|
+
export interface PluginInfo {
|
|
485
|
+
id: string;
|
|
486
|
+
name: string;
|
|
487
|
+
description: string;
|
|
488
|
+
tags?: string[];
|
|
489
|
+
enabled: boolean;
|
|
490
|
+
configured: boolean;
|
|
491
|
+
envKey: string | null;
|
|
492
|
+
category: "ai-provider" | "connector" | "streaming" | "database" | "app" | "feature";
|
|
493
|
+
source: "bundled" | "store";
|
|
494
|
+
parameters: PluginParamDef[];
|
|
495
|
+
validationErrors: Array<{
|
|
496
|
+
field: string;
|
|
497
|
+
message: string;
|
|
498
|
+
}>;
|
|
499
|
+
validationWarnings: Array<{
|
|
500
|
+
field: string;
|
|
501
|
+
message: string;
|
|
502
|
+
}>;
|
|
503
|
+
npmName?: string;
|
|
504
|
+
version?: string;
|
|
505
|
+
pluginDeps?: string[];
|
|
506
|
+
/** Whether this plugin is actually loaded and running in the runtime. */
|
|
507
|
+
isActive?: boolean;
|
|
508
|
+
/** Error message when plugin is installed but failed to load. */
|
|
509
|
+
loadError?: string;
|
|
510
|
+
/** Server-provided UI hints for plugin configuration fields. */
|
|
511
|
+
configUiHints?: Record<string, ConfigUiHint>;
|
|
512
|
+
/** Optional icon URL or emoji for the plugin card header. */
|
|
513
|
+
icon?: string | null;
|
|
514
|
+
homepage?: string;
|
|
515
|
+
repository?: string;
|
|
516
|
+
setupGuideUrl?: string;
|
|
517
|
+
}
|
|
518
|
+
export interface CorePluginEntry {
|
|
519
|
+
npmName: string;
|
|
520
|
+
id: string;
|
|
521
|
+
name: string;
|
|
522
|
+
isCore: boolean;
|
|
523
|
+
loaded: boolean;
|
|
524
|
+
enabled: boolean;
|
|
525
|
+
}
|
|
526
|
+
export interface CorePluginsResponse {
|
|
527
|
+
core: CorePluginEntry[];
|
|
528
|
+
optional: CorePluginEntry[];
|
|
529
|
+
}
|
|
530
|
+
export interface ChatMessage {
|
|
531
|
+
role: "user" | "assistant";
|
|
532
|
+
text: string;
|
|
533
|
+
timestamp: number;
|
|
534
|
+
}
|
|
535
|
+
export interface Conversation {
|
|
536
|
+
id: string;
|
|
537
|
+
title: string;
|
|
538
|
+
roomId: string;
|
|
539
|
+
createdAt: string;
|
|
540
|
+
updatedAt: string;
|
|
541
|
+
}
|
|
542
|
+
export interface ConversationGreeting {
|
|
543
|
+
text: string;
|
|
544
|
+
agentName: string;
|
|
545
|
+
generated: boolean;
|
|
546
|
+
persisted?: boolean;
|
|
547
|
+
}
|
|
548
|
+
export interface CreateConversationOptions {
|
|
549
|
+
bootstrapGreeting?: boolean;
|
|
550
|
+
lang?: string;
|
|
551
|
+
}
|
|
552
|
+
/** A plain text content block. */
|
|
553
|
+
export interface TextBlock {
|
|
554
|
+
type: "text";
|
|
555
|
+
text: string;
|
|
556
|
+
}
|
|
557
|
+
/** An inline config form block — renders ConfigRenderer in chat. */
|
|
558
|
+
export interface ConfigFormBlock {
|
|
559
|
+
type: "config-form";
|
|
560
|
+
pluginId: string;
|
|
561
|
+
pluginName?: string;
|
|
562
|
+
schema: Record<string, unknown>;
|
|
563
|
+
hints?: Record<string, unknown>;
|
|
564
|
+
values?: Record<string, unknown>;
|
|
565
|
+
}
|
|
566
|
+
/** A UiSpec interactive UI block extracted from agent response. */
|
|
567
|
+
export interface UiSpecBlock {
|
|
568
|
+
type: "ui-spec";
|
|
569
|
+
spec: Record<string, unknown>;
|
|
570
|
+
raw?: string;
|
|
571
|
+
}
|
|
572
|
+
/** Union of all content block types. */
|
|
573
|
+
export type ContentBlock = TextBlock | ConfigFormBlock | UiSpecBlock;
|
|
574
|
+
/** An image attachment to send with a chat message. */
|
|
575
|
+
export interface ImageAttachment {
|
|
576
|
+
/** Base64-encoded image data (no data URL prefix). */
|
|
577
|
+
data: string;
|
|
578
|
+
mimeType: string;
|
|
579
|
+
name: string;
|
|
580
|
+
}
|
|
581
|
+
export interface ConfigSchemaResponse {
|
|
582
|
+
schema: unknown;
|
|
583
|
+
uiHints: Record<string, unknown>;
|
|
584
|
+
version: string;
|
|
585
|
+
generatedAt: string;
|
|
586
|
+
}
|
|
587
|
+
export interface ConversationMessage {
|
|
588
|
+
id: string;
|
|
589
|
+
role: "user" | "assistant";
|
|
590
|
+
text: string;
|
|
591
|
+
timestamp: number;
|
|
592
|
+
/** Structured content blocks (A2UI). When present, `text` is the fallback. */
|
|
593
|
+
blocks?: ContentBlock[];
|
|
594
|
+
/** Source channel when forwarded from another channel (e.g. "autonomy"). */
|
|
595
|
+
source?: string;
|
|
596
|
+
/** Username of the sender (e.g. retake viewer username, discord username). */
|
|
597
|
+
from?: string;
|
|
598
|
+
/** True when the SSE stream was interrupted before receiving a "done" event. */
|
|
599
|
+
interrupted?: boolean;
|
|
600
|
+
}
|
|
601
|
+
export type ConversationChannelType = "DM" | "GROUP" | "VOICE_DM" | "VOICE_GROUP" | "API";
|
|
602
|
+
export interface ChatTokenUsage {
|
|
603
|
+
promptTokens: number;
|
|
604
|
+
completionTokens: number;
|
|
605
|
+
totalTokens: number;
|
|
606
|
+
llmCalls?: number;
|
|
607
|
+
model?: string;
|
|
608
|
+
}
|
|
609
|
+
export type ConversationMode = "simple" | "power";
|
|
610
|
+
export interface SkillInfo {
|
|
611
|
+
id: string;
|
|
612
|
+
name: string;
|
|
613
|
+
description: string;
|
|
614
|
+
enabled: boolean;
|
|
615
|
+
scanStatus?: "clean" | "warning" | "critical" | "blocked" | null;
|
|
616
|
+
}
|
|
617
|
+
export interface SkillScanReportSummary {
|
|
618
|
+
scannedAt: string;
|
|
619
|
+
status: "clean" | "warning" | "critical" | "blocked";
|
|
620
|
+
summary: {
|
|
621
|
+
scannedFiles: number;
|
|
622
|
+
critical: number;
|
|
623
|
+
warn: number;
|
|
624
|
+
info: number;
|
|
625
|
+
};
|
|
626
|
+
findings: Array<{
|
|
627
|
+
ruleId: string;
|
|
628
|
+
severity: string;
|
|
629
|
+
file: string;
|
|
630
|
+
line: number;
|
|
631
|
+
message: string;
|
|
632
|
+
evidence: string;
|
|
633
|
+
}>;
|
|
634
|
+
manifestFindings: Array<{
|
|
635
|
+
ruleId: string;
|
|
636
|
+
severity: string;
|
|
637
|
+
file: string;
|
|
638
|
+
message: string;
|
|
639
|
+
}>;
|
|
640
|
+
skillPath: string;
|
|
641
|
+
}
|
|
642
|
+
export interface CatalogSkillStats {
|
|
643
|
+
comments: number;
|
|
644
|
+
downloads: number;
|
|
645
|
+
installsAllTime: number;
|
|
646
|
+
installsCurrent: number;
|
|
647
|
+
stars: number;
|
|
648
|
+
versions: number;
|
|
649
|
+
}
|
|
650
|
+
export interface CatalogSkillVersion {
|
|
651
|
+
version: string;
|
|
652
|
+
createdAt: number;
|
|
653
|
+
changelog: string;
|
|
654
|
+
}
|
|
655
|
+
export interface CatalogSkill {
|
|
656
|
+
slug: string;
|
|
657
|
+
displayName: string;
|
|
658
|
+
summary: string | null;
|
|
659
|
+
tags: Record<string, string>;
|
|
660
|
+
stats: CatalogSkillStats;
|
|
661
|
+
createdAt: number;
|
|
662
|
+
updatedAt: number;
|
|
663
|
+
latestVersion: CatalogSkillVersion | null;
|
|
664
|
+
installed?: boolean;
|
|
665
|
+
}
|
|
666
|
+
export interface CatalogSearchResult {
|
|
667
|
+
slug: string;
|
|
668
|
+
displayName: string;
|
|
669
|
+
summary: string | null;
|
|
670
|
+
score: number;
|
|
671
|
+
latestVersion: string | null;
|
|
672
|
+
downloads: number;
|
|
673
|
+
stars: number;
|
|
674
|
+
installs: number;
|
|
675
|
+
}
|
|
676
|
+
export interface LogEntry {
|
|
677
|
+
timestamp: number;
|
|
678
|
+
level: string;
|
|
679
|
+
message: string;
|
|
680
|
+
source: string;
|
|
681
|
+
tags: string[];
|
|
682
|
+
}
|
|
683
|
+
export interface LogsResponse {
|
|
684
|
+
entries: LogEntry[];
|
|
685
|
+
sources: string[];
|
|
686
|
+
tags: string[];
|
|
687
|
+
}
|
|
688
|
+
export interface LogsFilter {
|
|
689
|
+
source?: string;
|
|
690
|
+
level?: string;
|
|
691
|
+
tag?: string;
|
|
692
|
+
since?: number;
|
|
693
|
+
}
|
|
694
|
+
export type SecurityAuditSeverity = "info" | "warn" | "error" | "critical";
|
|
695
|
+
export type SecurityAuditEventType = "sandbox_mode_transition" | "secret_token_replacement_outbound" | "secret_sanitization_inbound" | "privileged_capability_invocation" | "policy_decision" | "signing_request_submitted" | "signing_request_rejected" | "signing_request_approved" | "plugin_fallback_attempt" | "security_kill_switch" | "sandbox_lifecycle" | "fetch_proxy_error";
|
|
696
|
+
export interface SecurityAuditEntry {
|
|
697
|
+
timestamp: string;
|
|
698
|
+
type: SecurityAuditEventType;
|
|
699
|
+
summary: string;
|
|
700
|
+
metadata?: Record<string, string | number | boolean | null>;
|
|
701
|
+
severity: SecurityAuditSeverity;
|
|
702
|
+
traceId?: string;
|
|
703
|
+
}
|
|
704
|
+
export interface SecurityAuditFilter {
|
|
705
|
+
type?: SecurityAuditEventType;
|
|
706
|
+
severity?: SecurityAuditSeverity;
|
|
707
|
+
since?: number | string | Date;
|
|
708
|
+
limit?: number;
|
|
709
|
+
}
|
|
710
|
+
export interface SecurityAuditResponse {
|
|
711
|
+
entries: SecurityAuditEntry[];
|
|
712
|
+
totalBuffered: number;
|
|
713
|
+
replayed: true;
|
|
714
|
+
}
|
|
715
|
+
export type SecurityAuditStreamEvent = {
|
|
716
|
+
type: "snapshot";
|
|
717
|
+
entries: SecurityAuditEntry[];
|
|
718
|
+
totalBuffered: number;
|
|
719
|
+
} | {
|
|
720
|
+
type: "entry";
|
|
721
|
+
entry: SecurityAuditEntry;
|
|
722
|
+
};
|
|
723
|
+
export type StreamEventType = "agent_event" | "heartbeat_event" | "training_event";
|
|
724
|
+
export interface StreamEventEnvelope {
|
|
725
|
+
type: StreamEventType;
|
|
726
|
+
version: 1;
|
|
727
|
+
eventId: string;
|
|
728
|
+
ts: number;
|
|
729
|
+
runId?: string;
|
|
730
|
+
seq?: number;
|
|
731
|
+
stream?: string;
|
|
732
|
+
sessionKey?: string;
|
|
733
|
+
agentId?: string;
|
|
734
|
+
roomId?: string;
|
|
735
|
+
payload: object;
|
|
736
|
+
}
|
|
737
|
+
export type TrainingJobStatus = "queued" | "running" | "completed" | "failed" | "cancelled";
|
|
738
|
+
export interface TrainingStatus {
|
|
739
|
+
runningJobs: number;
|
|
740
|
+
queuedJobs: number;
|
|
741
|
+
completedJobs: number;
|
|
742
|
+
failedJobs: number;
|
|
743
|
+
modelCount: number;
|
|
744
|
+
datasetCount: number;
|
|
745
|
+
runtimeAvailable: boolean;
|
|
746
|
+
}
|
|
747
|
+
export interface TrainingTrajectorySummary {
|
|
748
|
+
id: string;
|
|
749
|
+
trajectoryId: string;
|
|
750
|
+
agentId: string;
|
|
751
|
+
archetype: string | null;
|
|
752
|
+
createdAt: string;
|
|
753
|
+
totalReward: number | null;
|
|
754
|
+
aiJudgeReward: number | null;
|
|
755
|
+
episodeLength: number | null;
|
|
756
|
+
hasLlmCalls: boolean;
|
|
757
|
+
llmCallCount: number;
|
|
758
|
+
}
|
|
759
|
+
export interface TrainingTrajectoryDetail extends TrainingTrajectorySummary {
|
|
760
|
+
stepsJson: string;
|
|
761
|
+
aiJudgeReasoning: string | null;
|
|
762
|
+
}
|
|
763
|
+
export interface TrainingTrajectoryList {
|
|
764
|
+
available: boolean;
|
|
765
|
+
reason?: string;
|
|
766
|
+
total: number;
|
|
767
|
+
trajectories: TrainingTrajectorySummary[];
|
|
768
|
+
}
|
|
769
|
+
export interface TrainingDatasetRecord {
|
|
770
|
+
id: string;
|
|
771
|
+
createdAt: string;
|
|
772
|
+
jsonlPath: string;
|
|
773
|
+
trajectoryDir: string;
|
|
774
|
+
metadataPath: string;
|
|
775
|
+
sampleCount: number;
|
|
776
|
+
trajectoryCount: number;
|
|
777
|
+
}
|
|
778
|
+
export interface StartTrainingOptions {
|
|
779
|
+
datasetId?: string;
|
|
780
|
+
maxTrajectories?: number;
|
|
781
|
+
backend?: "mlx" | "cuda" | "cpu";
|
|
782
|
+
model?: string;
|
|
783
|
+
iterations?: number;
|
|
784
|
+
batchSize?: number;
|
|
785
|
+
learningRate?: number;
|
|
786
|
+
}
|
|
787
|
+
export interface TrainingJobRecord {
|
|
788
|
+
id: string;
|
|
789
|
+
createdAt: string;
|
|
790
|
+
startedAt: string | null;
|
|
791
|
+
completedAt: string | null;
|
|
792
|
+
status: TrainingJobStatus;
|
|
793
|
+
phase: string;
|
|
794
|
+
progress: number;
|
|
795
|
+
error: string | null;
|
|
796
|
+
exitCode: number | null;
|
|
797
|
+
signal: string | null;
|
|
798
|
+
options: StartTrainingOptions;
|
|
799
|
+
datasetId: string;
|
|
800
|
+
pythonRoot: string;
|
|
801
|
+
scriptPath: string;
|
|
802
|
+
outputDir: string;
|
|
803
|
+
logPath: string;
|
|
804
|
+
modelPath: string | null;
|
|
805
|
+
adapterPath: string | null;
|
|
806
|
+
modelId: string | null;
|
|
807
|
+
logs: string[];
|
|
808
|
+
}
|
|
809
|
+
export interface TrainingModelRecord {
|
|
810
|
+
id: string;
|
|
811
|
+
createdAt: string;
|
|
812
|
+
jobId: string;
|
|
813
|
+
outputDir: string;
|
|
814
|
+
modelPath: string;
|
|
815
|
+
adapterPath: string | null;
|
|
816
|
+
sourceModel: string | null;
|
|
817
|
+
backend: "mlx" | "cuda" | "cpu";
|
|
818
|
+
ollamaModel: string | null;
|
|
819
|
+
active: boolean;
|
|
820
|
+
benchmark: {
|
|
821
|
+
status: "not_run" | "passed" | "failed";
|
|
822
|
+
lastRunAt: string | null;
|
|
823
|
+
output: string | null;
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
export type TrainingEventKind = "job_started" | "job_progress" | "job_log" | "job_completed" | "job_failed" | "job_cancelled" | "dataset_built" | "model_activated" | "model_imported";
|
|
827
|
+
export interface TrainingStreamEvent {
|
|
828
|
+
kind: TrainingEventKind;
|
|
829
|
+
ts: number;
|
|
830
|
+
message: string;
|
|
831
|
+
jobId?: string;
|
|
832
|
+
modelId?: string;
|
|
833
|
+
datasetId?: string;
|
|
834
|
+
progress?: number;
|
|
835
|
+
phase?: string;
|
|
836
|
+
}
|
|
837
|
+
export interface AgentEventsResponse {
|
|
838
|
+
events: StreamEventEnvelope[];
|
|
839
|
+
latestEventId: string | null;
|
|
840
|
+
totalBuffered: number;
|
|
841
|
+
replayed: boolean;
|
|
842
|
+
}
|
|
843
|
+
export interface ExtensionStatus {
|
|
844
|
+
relayReachable: boolean;
|
|
845
|
+
relayPort: number;
|
|
846
|
+
extensionPath: string | null;
|
|
847
|
+
}
|
|
848
|
+
export interface RegistryPlugin {
|
|
849
|
+
name: string;
|
|
850
|
+
gitRepo: string;
|
|
851
|
+
gitUrl: string;
|
|
852
|
+
description: string;
|
|
853
|
+
homepage: string | null;
|
|
854
|
+
topics: string[];
|
|
855
|
+
stars: number;
|
|
856
|
+
language: string;
|
|
857
|
+
npm: {
|
|
858
|
+
package: string;
|
|
859
|
+
v0Version: string | null;
|
|
860
|
+
v1Version: string | null;
|
|
861
|
+
v2Version: string | null;
|
|
862
|
+
};
|
|
863
|
+
git: {
|
|
864
|
+
v0Branch: string | null;
|
|
865
|
+
v1Branch: string | null;
|
|
866
|
+
v2Branch: string | null;
|
|
867
|
+
};
|
|
868
|
+
supports: {
|
|
869
|
+
v0: boolean;
|
|
870
|
+
v1: boolean;
|
|
871
|
+
v2: boolean;
|
|
872
|
+
};
|
|
873
|
+
installed: boolean;
|
|
874
|
+
installedVersion: string | null;
|
|
875
|
+
loaded: boolean;
|
|
876
|
+
bundled: boolean;
|
|
877
|
+
compatibility?: {
|
|
878
|
+
releaseAvailability: "bundled" | "post-release";
|
|
879
|
+
installSurface: "runtime" | "app";
|
|
880
|
+
postReleaseInstallable: boolean;
|
|
881
|
+
requiresDesktopRuntime: boolean;
|
|
882
|
+
requiresLocalRuntime: boolean;
|
|
883
|
+
note?: string;
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
export interface RegistrySearchResult {
|
|
887
|
+
name: string;
|
|
888
|
+
description: string;
|
|
889
|
+
score: number;
|
|
890
|
+
tags: string[];
|
|
891
|
+
latestVersion: string | null;
|
|
892
|
+
stars: number;
|
|
893
|
+
supports: {
|
|
894
|
+
v0: boolean;
|
|
895
|
+
v1: boolean;
|
|
896
|
+
v2: boolean;
|
|
897
|
+
};
|
|
898
|
+
repository: string;
|
|
899
|
+
}
|
|
900
|
+
export interface InstalledPlugin {
|
|
901
|
+
name: string;
|
|
902
|
+
version: string;
|
|
903
|
+
installPath: string;
|
|
904
|
+
installedAt: string;
|
|
905
|
+
}
|
|
906
|
+
export interface PluginInstallResult {
|
|
907
|
+
ok: boolean;
|
|
908
|
+
plugin?: {
|
|
909
|
+
name: string;
|
|
910
|
+
version: string;
|
|
911
|
+
installPath: string;
|
|
912
|
+
};
|
|
913
|
+
requiresRestart?: boolean;
|
|
914
|
+
message?: string;
|
|
915
|
+
error?: string;
|
|
916
|
+
}
|
|
917
|
+
export interface WalletExportResult {
|
|
918
|
+
evm: {
|
|
919
|
+
privateKey: string;
|
|
920
|
+
address: string | null;
|
|
921
|
+
} | null;
|
|
922
|
+
solana: {
|
|
923
|
+
privateKey: string;
|
|
924
|
+
address: string | null;
|
|
925
|
+
} | null;
|
|
926
|
+
}
|
|
927
|
+
export interface UpdateStatus {
|
|
928
|
+
currentVersion: string;
|
|
929
|
+
channel: ReleaseChannel;
|
|
930
|
+
installMethod: string;
|
|
931
|
+
updateAvailable: boolean;
|
|
932
|
+
latestVersion: string | null;
|
|
933
|
+
channels: Record<ReleaseChannel, string | null>;
|
|
934
|
+
distTags: Record<ReleaseChannel, string>;
|
|
935
|
+
lastCheckAt: string | null;
|
|
936
|
+
error: string | null;
|
|
937
|
+
}
|
|
938
|
+
export interface CloudStatus {
|
|
939
|
+
connected: boolean;
|
|
940
|
+
enabled?: boolean;
|
|
941
|
+
hasApiKey?: boolean;
|
|
942
|
+
userId?: string;
|
|
943
|
+
organizationId?: string;
|
|
944
|
+
topUpUrl?: string;
|
|
945
|
+
reason?: string;
|
|
946
|
+
}
|
|
947
|
+
export interface CloudCredits {
|
|
948
|
+
connected: boolean;
|
|
949
|
+
balance: number | null;
|
|
950
|
+
low?: boolean;
|
|
951
|
+
critical?: boolean;
|
|
952
|
+
topUpUrl?: string;
|
|
953
|
+
}
|
|
954
|
+
export interface CloudBillingPaymentMethod {
|
|
955
|
+
id: string;
|
|
956
|
+
type: string;
|
|
957
|
+
label?: string;
|
|
958
|
+
brand?: string;
|
|
959
|
+
last4?: string;
|
|
960
|
+
expiryMonth?: number;
|
|
961
|
+
expiryYear?: number;
|
|
962
|
+
isDefault?: boolean;
|
|
963
|
+
walletAddress?: string;
|
|
964
|
+
network?: string;
|
|
965
|
+
}
|
|
966
|
+
export interface CloudBillingHistoryItem {
|
|
967
|
+
id: string;
|
|
968
|
+
kind?: string;
|
|
969
|
+
provider?: string;
|
|
970
|
+
status: string;
|
|
971
|
+
amount: number;
|
|
972
|
+
currency: string;
|
|
973
|
+
description?: string;
|
|
974
|
+
receiptUrl?: string;
|
|
975
|
+
createdAt: string;
|
|
976
|
+
}
|
|
977
|
+
export interface CloudBillingSummary {
|
|
978
|
+
balance: number | null;
|
|
979
|
+
currency?: string;
|
|
980
|
+
low?: boolean;
|
|
981
|
+
critical?: boolean;
|
|
982
|
+
topUpUrl?: string;
|
|
983
|
+
embeddedCheckoutEnabled?: boolean;
|
|
984
|
+
hostedCheckoutEnabled?: boolean;
|
|
985
|
+
cryptoEnabled?: boolean;
|
|
986
|
+
paymentMethods?: CloudBillingPaymentMethod[];
|
|
987
|
+
history?: CloudBillingHistoryItem[];
|
|
988
|
+
[key: string]: unknown;
|
|
989
|
+
}
|
|
990
|
+
export interface CloudBillingSettings {
|
|
991
|
+
success?: boolean;
|
|
992
|
+
message?: string;
|
|
993
|
+
error?: string;
|
|
994
|
+
settings?: {
|
|
995
|
+
autoTopUp?: {
|
|
996
|
+
enabled?: boolean;
|
|
997
|
+
amount?: number | null;
|
|
998
|
+
threshold?: number | null;
|
|
999
|
+
hasPaymentMethod?: boolean;
|
|
1000
|
+
};
|
|
1001
|
+
limits?: {
|
|
1002
|
+
minAmount?: number;
|
|
1003
|
+
maxAmount?: number;
|
|
1004
|
+
minThreshold?: number;
|
|
1005
|
+
maxThreshold?: number;
|
|
1006
|
+
};
|
|
1007
|
+
};
|
|
1008
|
+
[key: string]: unknown;
|
|
1009
|
+
}
|
|
1010
|
+
export interface CloudBillingSettingsUpdateRequest {
|
|
1011
|
+
autoTopUp?: {
|
|
1012
|
+
enabled?: boolean;
|
|
1013
|
+
amount?: number;
|
|
1014
|
+
threshold?: number;
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
export interface CloudBillingCheckoutRequest {
|
|
1018
|
+
amountUsd: number;
|
|
1019
|
+
mode?: "embedded" | "hosted";
|
|
1020
|
+
}
|
|
1021
|
+
export interface CloudBillingCheckoutResponse {
|
|
1022
|
+
success?: boolean;
|
|
1023
|
+
provider?: string;
|
|
1024
|
+
mode?: "embedded" | "hosted";
|
|
1025
|
+
checkoutUrl?: string;
|
|
1026
|
+
url?: string;
|
|
1027
|
+
publishableKey?: string;
|
|
1028
|
+
clientSecret?: string;
|
|
1029
|
+
sessionId?: string;
|
|
1030
|
+
message?: string;
|
|
1031
|
+
[key: string]: unknown;
|
|
1032
|
+
}
|
|
1033
|
+
export interface CloudBillingCryptoQuoteRequest {
|
|
1034
|
+
amountUsd: number;
|
|
1035
|
+
currency?: string;
|
|
1036
|
+
network?: string;
|
|
1037
|
+
walletAddress?: string;
|
|
1038
|
+
}
|
|
1039
|
+
export interface CloudBillingCryptoQuoteResponse {
|
|
1040
|
+
success?: boolean;
|
|
1041
|
+
provider?: string;
|
|
1042
|
+
invoiceId?: string;
|
|
1043
|
+
network?: string;
|
|
1044
|
+
currency?: string;
|
|
1045
|
+
amount?: string;
|
|
1046
|
+
amountUsd?: number;
|
|
1047
|
+
payToAddress?: string;
|
|
1048
|
+
tokenAddress?: string;
|
|
1049
|
+
paymentLinkUrl?: string;
|
|
1050
|
+
expiresAt?: string;
|
|
1051
|
+
memo?: string;
|
|
1052
|
+
[key: string]: unknown;
|
|
1053
|
+
}
|
|
1054
|
+
export interface CloudLoginResponse {
|
|
1055
|
+
ok: boolean;
|
|
1056
|
+
sessionId: string;
|
|
1057
|
+
browserUrl: string;
|
|
1058
|
+
error?: string;
|
|
1059
|
+
}
|
|
1060
|
+
export interface CloudLoginPollResponse {
|
|
1061
|
+
status: "pending" | "authenticated" | "expired" | "error";
|
|
1062
|
+
keyPrefix?: string;
|
|
1063
|
+
error?: string;
|
|
1064
|
+
}
|
|
1065
|
+
export interface CloudCompatAgent {
|
|
1066
|
+
agent_id: string;
|
|
1067
|
+
agent_name: string;
|
|
1068
|
+
node_id: string | null;
|
|
1069
|
+
container_id: string | null;
|
|
1070
|
+
headscale_ip: string | null;
|
|
1071
|
+
bridge_url: string | null;
|
|
1072
|
+
web_ui_url: string | null;
|
|
1073
|
+
status: string;
|
|
1074
|
+
agent_config: Record<string, unknown>;
|
|
1075
|
+
created_at: string;
|
|
1076
|
+
updated_at: string;
|
|
1077
|
+
containerUrl: string;
|
|
1078
|
+
webUiUrl: string | null;
|
|
1079
|
+
database_status: string;
|
|
1080
|
+
error_message: string | null;
|
|
1081
|
+
last_heartbeat_at: string | null;
|
|
1082
|
+
}
|
|
1083
|
+
export interface CloudCompatAgentStatus {
|
|
1084
|
+
status: string;
|
|
1085
|
+
lastHeartbeat: string | null;
|
|
1086
|
+
bridgeUrl: string | null;
|
|
1087
|
+
webUiUrl: string | null;
|
|
1088
|
+
currentNode: string | null;
|
|
1089
|
+
suspendedReason: string | null;
|
|
1090
|
+
databaseStatus: string;
|
|
1091
|
+
}
|
|
1092
|
+
export interface CloudCompatJob {
|
|
1093
|
+
jobId: string;
|
|
1094
|
+
type: string;
|
|
1095
|
+
status: "queued" | "processing" | "completed" | "failed" | "retrying";
|
|
1096
|
+
data: Record<string, unknown>;
|
|
1097
|
+
result: Record<string, unknown> | null;
|
|
1098
|
+
error: string | null;
|
|
1099
|
+
createdAt: string;
|
|
1100
|
+
startedAt: string | null;
|
|
1101
|
+
completedAt: string | null;
|
|
1102
|
+
retryCount: number;
|
|
1103
|
+
id: string;
|
|
1104
|
+
name: string;
|
|
1105
|
+
state: string;
|
|
1106
|
+
created_on: string;
|
|
1107
|
+
completed_on: string | null;
|
|
1108
|
+
}
|
|
1109
|
+
export interface CloudCompatLaunchResult {
|
|
1110
|
+
agentId: string;
|
|
1111
|
+
agentName: string;
|
|
1112
|
+
appUrl: string;
|
|
1113
|
+
launchSessionId: string | null;
|
|
1114
|
+
issuedAt: string;
|
|
1115
|
+
connection: {
|
|
1116
|
+
apiBase: string;
|
|
1117
|
+
token: string;
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
export interface SkillMarketplaceResult {
|
|
1121
|
+
id: string;
|
|
1122
|
+
slug?: string;
|
|
1123
|
+
name: string;
|
|
1124
|
+
description: string;
|
|
1125
|
+
githubUrl?: string;
|
|
1126
|
+
repository?: string;
|
|
1127
|
+
path?: string;
|
|
1128
|
+
tags?: string[];
|
|
1129
|
+
score?: number;
|
|
1130
|
+
source?: string;
|
|
1131
|
+
}
|
|
1132
|
+
export interface ShareIngestPayload {
|
|
1133
|
+
title?: string;
|
|
1134
|
+
url?: string;
|
|
1135
|
+
text?: string;
|
|
1136
|
+
files?: Array<{
|
|
1137
|
+
name: string;
|
|
1138
|
+
}>;
|
|
1139
|
+
}
|
|
1140
|
+
export interface ShareIngestItem {
|
|
1141
|
+
suggestedPrompt: string;
|
|
1142
|
+
files: Array<{
|
|
1143
|
+
name: string;
|
|
1144
|
+
}>;
|
|
1145
|
+
}
|
|
1146
|
+
export interface WorkbenchTask {
|
|
1147
|
+
id: string;
|
|
1148
|
+
name: string;
|
|
1149
|
+
description: string;
|
|
1150
|
+
tags: string[];
|
|
1151
|
+
isCompleted: boolean;
|
|
1152
|
+
updatedAt?: number;
|
|
1153
|
+
}
|
|
1154
|
+
export interface WorkbenchTodo {
|
|
1155
|
+
id: string;
|
|
1156
|
+
name: string;
|
|
1157
|
+
description: string;
|
|
1158
|
+
priority: number | null;
|
|
1159
|
+
isUrgent: boolean;
|
|
1160
|
+
isCompleted: boolean;
|
|
1161
|
+
type: string;
|
|
1162
|
+
}
|
|
1163
|
+
export interface WorkbenchOverview {
|
|
1164
|
+
tasks: WorkbenchTask[];
|
|
1165
|
+
triggers: TriggerSummary[];
|
|
1166
|
+
todos: WorkbenchTodo[];
|
|
1167
|
+
autonomy?: {
|
|
1168
|
+
enabled: boolean;
|
|
1169
|
+
thinking: boolean;
|
|
1170
|
+
lastEventAt?: number | null;
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
export interface CodingAgentSession {
|
|
1174
|
+
sessionId: string;
|
|
1175
|
+
agentType: string;
|
|
1176
|
+
label: string;
|
|
1177
|
+
originalTask: string;
|
|
1178
|
+
workdir: string;
|
|
1179
|
+
status: "active" | "blocked" | "completed" | "stopped" | "error" | "tool_running";
|
|
1180
|
+
decisionCount: number;
|
|
1181
|
+
autoResolvedCount: number;
|
|
1182
|
+
/** Description of the active tool when status is "tool_running". */
|
|
1183
|
+
toolDescription?: string;
|
|
1184
|
+
/** Latest activity text for the agent activity box. */
|
|
1185
|
+
lastActivity?: string;
|
|
1186
|
+
}
|
|
1187
|
+
export interface CodingAgentScratchWorkspace {
|
|
1188
|
+
sessionId: string;
|
|
1189
|
+
label: string;
|
|
1190
|
+
path: string;
|
|
1191
|
+
status: "pending_decision" | "kept" | "promoted";
|
|
1192
|
+
createdAt: number;
|
|
1193
|
+
terminalAt: number;
|
|
1194
|
+
terminalEvent: "stopped" | "task_complete" | "error";
|
|
1195
|
+
expiresAt?: number;
|
|
1196
|
+
}
|
|
1197
|
+
export interface AgentPreflightResult {
|
|
1198
|
+
adapter?: string;
|
|
1199
|
+
installed?: boolean;
|
|
1200
|
+
installCommand?: string;
|
|
1201
|
+
docsUrl?: string;
|
|
1202
|
+
}
|
|
1203
|
+
export interface CodingAgentStatus {
|
|
1204
|
+
supervisionLevel: string;
|
|
1205
|
+
taskCount: number;
|
|
1206
|
+
tasks: CodingAgentSession[];
|
|
1207
|
+
pendingConfirmations: number;
|
|
1208
|
+
}
|
|
1209
|
+
export interface McpServerConfig {
|
|
1210
|
+
type: "stdio" | "streamable-http" | "sse";
|
|
1211
|
+
command?: string;
|
|
1212
|
+
args?: string[];
|
|
1213
|
+
url?: string;
|
|
1214
|
+
env?: Record<string, string>;
|
|
1215
|
+
headers?: Record<string, string>;
|
|
1216
|
+
}
|
|
1217
|
+
export interface McpMarketplaceResult {
|
|
1218
|
+
name: string;
|
|
1219
|
+
description?: string;
|
|
1220
|
+
connectionType: string;
|
|
1221
|
+
npmPackage?: string;
|
|
1222
|
+
dockerImage?: string;
|
|
1223
|
+
}
|
|
1224
|
+
export interface McpRegistryServerDetail {
|
|
1225
|
+
packages?: Array<{
|
|
1226
|
+
environmentVariables: Array<{
|
|
1227
|
+
name: string;
|
|
1228
|
+
default?: string;
|
|
1229
|
+
isRequired?: boolean;
|
|
1230
|
+
}>;
|
|
1231
|
+
packageArguments?: Array<{
|
|
1232
|
+
default?: string;
|
|
1233
|
+
}>;
|
|
1234
|
+
}>;
|
|
1235
|
+
remotes?: Array<{
|
|
1236
|
+
type?: string;
|
|
1237
|
+
url: string;
|
|
1238
|
+
headers: Array<{
|
|
1239
|
+
name: string;
|
|
1240
|
+
isRequired?: boolean;
|
|
1241
|
+
}>;
|
|
1242
|
+
}>;
|
|
1243
|
+
}
|
|
1244
|
+
export interface McpServerStatus {
|
|
1245
|
+
name: string;
|
|
1246
|
+
connected: boolean;
|
|
1247
|
+
error?: string;
|
|
1248
|
+
}
|
|
1249
|
+
export type VoiceProvider = "elevenlabs" | "simple-voice" | "edge";
|
|
1250
|
+
export type VoiceMode = "cloud" | "own-key";
|
|
1251
|
+
export interface VoiceConfig {
|
|
1252
|
+
provider?: VoiceProvider;
|
|
1253
|
+
mode?: VoiceMode;
|
|
1254
|
+
elevenlabs?: {
|
|
1255
|
+
apiKey?: string;
|
|
1256
|
+
voiceId?: string;
|
|
1257
|
+
modelId?: string;
|
|
1258
|
+
stability?: number;
|
|
1259
|
+
similarityBoost?: number;
|
|
1260
|
+
speed?: number;
|
|
1261
|
+
};
|
|
1262
|
+
edge?: {
|
|
1263
|
+
voice?: string;
|
|
1264
|
+
lang?: string;
|
|
1265
|
+
rate?: string;
|
|
1266
|
+
pitch?: string;
|
|
1267
|
+
volume?: string;
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
export interface CharacterData {
|
|
1271
|
+
name?: string;
|
|
1272
|
+
username?: string;
|
|
1273
|
+
bio?: string | string[];
|
|
1274
|
+
system?: string;
|
|
1275
|
+
adjectives?: string[];
|
|
1276
|
+
topics?: string[];
|
|
1277
|
+
style?: {
|
|
1278
|
+
all?: string[];
|
|
1279
|
+
chat?: string[];
|
|
1280
|
+
post?: string[];
|
|
1281
|
+
};
|
|
1282
|
+
messageExamples?: Array<{
|
|
1283
|
+
examples: Array<{
|
|
1284
|
+
name: string;
|
|
1285
|
+
content: {
|
|
1286
|
+
text: string;
|
|
1287
|
+
};
|
|
1288
|
+
}>;
|
|
1289
|
+
}>;
|
|
1290
|
+
postExamples?: string[];
|
|
1291
|
+
}
|
|
1292
|
+
export interface RegistryPluginItem {
|
|
1293
|
+
name: string;
|
|
1294
|
+
description: string;
|
|
1295
|
+
stars: number;
|
|
1296
|
+
repository: string;
|
|
1297
|
+
topics: string[];
|
|
1298
|
+
latestVersion: string | null;
|
|
1299
|
+
supports: {
|
|
1300
|
+
v0: boolean;
|
|
1301
|
+
v1: boolean;
|
|
1302
|
+
v2: boolean;
|
|
1303
|
+
};
|
|
1304
|
+
npm: {
|
|
1305
|
+
package: string;
|
|
1306
|
+
v0Version: string | null;
|
|
1307
|
+
v1Version: string | null;
|
|
1308
|
+
v2Version: string | null;
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
export interface AppViewerAuthMessage {
|
|
1312
|
+
type: string;
|
|
1313
|
+
authToken?: string;
|
|
1314
|
+
sessionToken?: string;
|
|
1315
|
+
agentId?: string;
|
|
1316
|
+
}
|
|
1317
|
+
export interface AppViewerConfig {
|
|
1318
|
+
url: string;
|
|
1319
|
+
embedParams?: Record<string, string>;
|
|
1320
|
+
postMessageAuth?: boolean;
|
|
1321
|
+
sandbox?: string;
|
|
1322
|
+
authMessage?: AppViewerAuthMessage;
|
|
1323
|
+
}
|
|
1324
|
+
export interface AppUiExtensionConfig {
|
|
1325
|
+
detailPanelId: string;
|
|
1326
|
+
}
|
|
1327
|
+
export interface RegistryAppInfo {
|
|
1328
|
+
name: string;
|
|
1329
|
+
displayName: string;
|
|
1330
|
+
description: string;
|
|
1331
|
+
category: string;
|
|
1332
|
+
launchType: string;
|
|
1333
|
+
launchUrl: string | null;
|
|
1334
|
+
icon: string | null;
|
|
1335
|
+
capabilities: string[];
|
|
1336
|
+
stars: number;
|
|
1337
|
+
repository: string;
|
|
1338
|
+
latestVersion: string | null;
|
|
1339
|
+
supports: {
|
|
1340
|
+
v0: boolean;
|
|
1341
|
+
v1: boolean;
|
|
1342
|
+
v2: boolean;
|
|
1343
|
+
};
|
|
1344
|
+
npm: {
|
|
1345
|
+
package: string;
|
|
1346
|
+
v0Version: string | null;
|
|
1347
|
+
v1Version: string | null;
|
|
1348
|
+
v2Version: string | null;
|
|
1349
|
+
};
|
|
1350
|
+
uiExtension?: AppUiExtensionConfig;
|
|
1351
|
+
viewer?: AppViewerConfig;
|
|
1352
|
+
}
|
|
1353
|
+
export interface InstalledAppInfo {
|
|
1354
|
+
name: string;
|
|
1355
|
+
displayName: string;
|
|
1356
|
+
version: string;
|
|
1357
|
+
installPath: string;
|
|
1358
|
+
installedAt: string;
|
|
1359
|
+
isRunning: boolean;
|
|
1360
|
+
}
|
|
1361
|
+
export interface AppLaunchResult {
|
|
1362
|
+
pluginInstalled: boolean;
|
|
1363
|
+
needsRestart: boolean;
|
|
1364
|
+
displayName: string;
|
|
1365
|
+
launchType: string;
|
|
1366
|
+
launchUrl: string | null;
|
|
1367
|
+
viewer: AppViewerConfig | null;
|
|
1368
|
+
}
|
|
1369
|
+
export interface AppStopResult {
|
|
1370
|
+
success: boolean;
|
|
1371
|
+
appName: string;
|
|
1372
|
+
stoppedAt: string;
|
|
1373
|
+
pluginUninstalled: boolean;
|
|
1374
|
+
needsRestart: boolean;
|
|
1375
|
+
stopScope: "plugin-uninstalled" | "viewer-session" | "no-op";
|
|
1376
|
+
message: string;
|
|
1377
|
+
}
|
|
1378
|
+
export type HyperscapeScriptedRole = "combat" | "woodcutting" | "fishing" | "mining" | "balanced";
|
|
1379
|
+
export type HyperscapeEmbeddedAgentControlAction = "start" | "stop" | "pause" | "resume";
|
|
1380
|
+
export type HyperscapeJsonValue = string | number | boolean | null | HyperscapeJsonValue[] | {
|
|
1381
|
+
[key: string]: HyperscapeJsonValue;
|
|
1382
|
+
};
|
|
1383
|
+
export type HyperscapePosition = [number, number, number] | {
|
|
1384
|
+
x: number;
|
|
1385
|
+
y: number;
|
|
1386
|
+
z: number;
|
|
1387
|
+
};
|
|
1388
|
+
export interface HyperscapeEmbeddedAgent {
|
|
1389
|
+
agentId: string;
|
|
1390
|
+
characterId: string;
|
|
1391
|
+
accountId: string;
|
|
1392
|
+
name: string;
|
|
1393
|
+
scriptedRole: HyperscapeScriptedRole | null;
|
|
1394
|
+
state: string;
|
|
1395
|
+
entityId: string | null;
|
|
1396
|
+
position: HyperscapePosition | null;
|
|
1397
|
+
health: number | null;
|
|
1398
|
+
maxHealth: number | null;
|
|
1399
|
+
startedAt: number | null;
|
|
1400
|
+
lastActivity: number | null;
|
|
1401
|
+
error: string | null;
|
|
1402
|
+
}
|
|
1403
|
+
export interface HyperscapeEmbeddedAgentsResponse {
|
|
1404
|
+
success: boolean;
|
|
1405
|
+
agents: HyperscapeEmbeddedAgent[];
|
|
1406
|
+
count: number;
|
|
1407
|
+
error?: string;
|
|
1408
|
+
}
|
|
1409
|
+
export interface HyperscapeActionResponse {
|
|
1410
|
+
success: boolean;
|
|
1411
|
+
message?: string;
|
|
1412
|
+
error?: string;
|
|
1413
|
+
}
|
|
1414
|
+
export interface HyperscapeEmbeddedAgentMutationResponse extends HyperscapeActionResponse {
|
|
1415
|
+
agent?: HyperscapeEmbeddedAgent | null;
|
|
1416
|
+
}
|
|
1417
|
+
export interface HyperscapeAvailableGoal {
|
|
1418
|
+
id: string;
|
|
1419
|
+
type: string;
|
|
1420
|
+
description: string;
|
|
1421
|
+
priority: number;
|
|
1422
|
+
}
|
|
1423
|
+
export interface HyperscapeGoalState {
|
|
1424
|
+
type?: string;
|
|
1425
|
+
description?: string;
|
|
1426
|
+
progress?: number;
|
|
1427
|
+
target?: number;
|
|
1428
|
+
progressPercent?: number;
|
|
1429
|
+
elapsedMs?: number;
|
|
1430
|
+
startedAt?: number;
|
|
1431
|
+
locked?: boolean;
|
|
1432
|
+
lockedBy?: string;
|
|
1433
|
+
}
|
|
1434
|
+
export interface HyperscapeAgentGoalResponse {
|
|
1435
|
+
success: boolean;
|
|
1436
|
+
goal: HyperscapeGoalState | null;
|
|
1437
|
+
availableGoals?: HyperscapeAvailableGoal[];
|
|
1438
|
+
goalsPaused?: boolean;
|
|
1439
|
+
message?: string;
|
|
1440
|
+
error?: string;
|
|
1441
|
+
}
|
|
1442
|
+
export interface HyperscapeQuickCommand {
|
|
1443
|
+
id: string;
|
|
1444
|
+
label: string;
|
|
1445
|
+
command: string;
|
|
1446
|
+
icon: string;
|
|
1447
|
+
available: boolean;
|
|
1448
|
+
reason?: string;
|
|
1449
|
+
}
|
|
1450
|
+
export interface HyperscapeNearbyLocation {
|
|
1451
|
+
id: string;
|
|
1452
|
+
name: string;
|
|
1453
|
+
type: string;
|
|
1454
|
+
distance: number;
|
|
1455
|
+
}
|
|
1456
|
+
export interface HyperscapeInventoryItem {
|
|
1457
|
+
id: string;
|
|
1458
|
+
name: string;
|
|
1459
|
+
slot: number;
|
|
1460
|
+
quantity: number;
|
|
1461
|
+
canEquip: boolean;
|
|
1462
|
+
canUse: boolean;
|
|
1463
|
+
canDrop: boolean;
|
|
1464
|
+
}
|
|
1465
|
+
export interface HyperscapeQuickActionsResponse {
|
|
1466
|
+
success: boolean;
|
|
1467
|
+
nearbyLocations: HyperscapeNearbyLocation[];
|
|
1468
|
+
availableGoals: HyperscapeAvailableGoal[];
|
|
1469
|
+
quickCommands: HyperscapeQuickCommand[];
|
|
1470
|
+
inventory: HyperscapeInventoryItem[];
|
|
1471
|
+
playerPosition: [number, number, number] | null;
|
|
1472
|
+
message?: string;
|
|
1473
|
+
error?: string;
|
|
1474
|
+
}
|
|
1475
|
+
export interface TrajectoryRecord {
|
|
1476
|
+
id: string;
|
|
1477
|
+
agentId: string;
|
|
1478
|
+
roomId: string | null;
|
|
1479
|
+
entityId: string | null;
|
|
1480
|
+
conversationId: string | null;
|
|
1481
|
+
source: string;
|
|
1482
|
+
status: "active" | "completed" | "error";
|
|
1483
|
+
startTime: number;
|
|
1484
|
+
endTime: number | null;
|
|
1485
|
+
durationMs: number | null;
|
|
1486
|
+
llmCallCount: number;
|
|
1487
|
+
providerAccessCount: number;
|
|
1488
|
+
totalPromptTokens: number;
|
|
1489
|
+
totalCompletionTokens: number;
|
|
1490
|
+
metadata: Record<string, unknown>;
|
|
1491
|
+
createdAt: string;
|
|
1492
|
+
updatedAt: string;
|
|
1493
|
+
}
|
|
1494
|
+
export interface TrajectoryLlmCall {
|
|
1495
|
+
id: string;
|
|
1496
|
+
trajectoryId: string;
|
|
1497
|
+
stepId: string;
|
|
1498
|
+
model: string;
|
|
1499
|
+
systemPrompt: string;
|
|
1500
|
+
userPrompt: string;
|
|
1501
|
+
response: string;
|
|
1502
|
+
temperature: number;
|
|
1503
|
+
maxTokens: number;
|
|
1504
|
+
purpose: string;
|
|
1505
|
+
actionType: string;
|
|
1506
|
+
latencyMs: number;
|
|
1507
|
+
promptTokens?: number;
|
|
1508
|
+
completionTokens?: number;
|
|
1509
|
+
timestamp: number;
|
|
1510
|
+
createdAt: string;
|
|
1511
|
+
}
|
|
1512
|
+
export interface TrajectoryProviderAccess {
|
|
1513
|
+
id: string;
|
|
1514
|
+
trajectoryId: string;
|
|
1515
|
+
stepId: string;
|
|
1516
|
+
providerName: string;
|
|
1517
|
+
purpose: string;
|
|
1518
|
+
data: Record<string, unknown>;
|
|
1519
|
+
query?: Record<string, unknown>;
|
|
1520
|
+
timestamp: number;
|
|
1521
|
+
createdAt: string;
|
|
1522
|
+
}
|
|
1523
|
+
export interface TrajectoryListOptions {
|
|
1524
|
+
limit?: number;
|
|
1525
|
+
offset?: number;
|
|
1526
|
+
source?: string;
|
|
1527
|
+
status?: "active" | "completed" | "error";
|
|
1528
|
+
startDate?: string;
|
|
1529
|
+
endDate?: string;
|
|
1530
|
+
search?: string;
|
|
1531
|
+
}
|
|
1532
|
+
export interface TrajectoryListResult {
|
|
1533
|
+
trajectories: TrajectoryRecord[];
|
|
1534
|
+
total: number;
|
|
1535
|
+
offset: number;
|
|
1536
|
+
limit: number;
|
|
1537
|
+
}
|
|
1538
|
+
export interface TrajectoryDetailResult {
|
|
1539
|
+
trajectory: TrajectoryRecord;
|
|
1540
|
+
llmCalls: TrajectoryLlmCall[];
|
|
1541
|
+
providerAccesses: TrajectoryProviderAccess[];
|
|
1542
|
+
}
|
|
1543
|
+
export interface TrajectoryStats {
|
|
1544
|
+
totalTrajectories: number;
|
|
1545
|
+
totalLlmCalls: number;
|
|
1546
|
+
totalProviderAccesses: number;
|
|
1547
|
+
totalPromptTokens: number;
|
|
1548
|
+
totalCompletionTokens: number;
|
|
1549
|
+
averageDurationMs: number;
|
|
1550
|
+
bySource: Record<string, number>;
|
|
1551
|
+
byModel: Record<string, number>;
|
|
1552
|
+
}
|
|
1553
|
+
export interface TrajectoryConfig {
|
|
1554
|
+
enabled: boolean;
|
|
1555
|
+
}
|
|
1556
|
+
export type TrajectoryExportFormat = "json" | "csv" | "zip";
|
|
1557
|
+
export interface TrajectoryExportOptions {
|
|
1558
|
+
format: TrajectoryExportFormat;
|
|
1559
|
+
includePrompts?: boolean;
|
|
1560
|
+
trajectoryIds?: string[];
|
|
1561
|
+
startDate?: string;
|
|
1562
|
+
endDate?: string;
|
|
1563
|
+
}
|
|
1564
|
+
export interface KnowledgeStats {
|
|
1565
|
+
documentCount: number;
|
|
1566
|
+
fragmentCount: number;
|
|
1567
|
+
agentId: string;
|
|
1568
|
+
}
|
|
1569
|
+
export interface KnowledgeDocument {
|
|
1570
|
+
id: string;
|
|
1571
|
+
filename: string;
|
|
1572
|
+
contentType: string;
|
|
1573
|
+
fileSize: number;
|
|
1574
|
+
createdAt: number;
|
|
1575
|
+
fragmentCount: number;
|
|
1576
|
+
source: string;
|
|
1577
|
+
url?: string;
|
|
1578
|
+
content?: {
|
|
1579
|
+
text?: string;
|
|
1580
|
+
};
|
|
1581
|
+
}
|
|
1582
|
+
export interface KnowledgeDocumentDetail extends KnowledgeDocument {
|
|
1583
|
+
content: {
|
|
1584
|
+
text?: string;
|
|
1585
|
+
};
|
|
1586
|
+
}
|
|
1587
|
+
export interface KnowledgeDocumentsResponse {
|
|
1588
|
+
documents: KnowledgeDocument[];
|
|
1589
|
+
total: number;
|
|
1590
|
+
limit: number;
|
|
1591
|
+
offset: number;
|
|
1592
|
+
}
|
|
1593
|
+
export interface KnowledgeFragment {
|
|
1594
|
+
id: string;
|
|
1595
|
+
text: string;
|
|
1596
|
+
position?: number;
|
|
1597
|
+
createdAt: number;
|
|
1598
|
+
}
|
|
1599
|
+
export interface KnowledgeFragmentsResponse {
|
|
1600
|
+
documentId: string;
|
|
1601
|
+
fragments: KnowledgeFragment[];
|
|
1602
|
+
count: number;
|
|
1603
|
+
}
|
|
1604
|
+
export interface KnowledgeSearchResult {
|
|
1605
|
+
id: string;
|
|
1606
|
+
text: string;
|
|
1607
|
+
similarity: number;
|
|
1608
|
+
documentId?: string;
|
|
1609
|
+
documentTitle?: string;
|
|
1610
|
+
position?: number;
|
|
1611
|
+
}
|
|
1612
|
+
export interface KnowledgeSearchResponse {
|
|
1613
|
+
query: string;
|
|
1614
|
+
threshold: number;
|
|
1615
|
+
results: KnowledgeSearchResult[];
|
|
1616
|
+
count: number;
|
|
1617
|
+
}
|
|
1618
|
+
export interface KnowledgeUploadResult {
|
|
1619
|
+
ok: boolean;
|
|
1620
|
+
documentId: string;
|
|
1621
|
+
fragmentCount: number;
|
|
1622
|
+
filename?: string;
|
|
1623
|
+
contentType?: string;
|
|
1624
|
+
isYouTubeTranscript?: boolean;
|
|
1625
|
+
warnings?: string[];
|
|
1626
|
+
}
|
|
1627
|
+
export interface KnowledgeBulkUploadItemResult {
|
|
1628
|
+
index: number;
|
|
1629
|
+
ok: boolean;
|
|
1630
|
+
filename: string;
|
|
1631
|
+
documentId?: string;
|
|
1632
|
+
fragmentCount?: number;
|
|
1633
|
+
error?: string;
|
|
1634
|
+
warnings?: string[];
|
|
1635
|
+
}
|
|
1636
|
+
export interface KnowledgeBulkUploadResult {
|
|
1637
|
+
ok: boolean;
|
|
1638
|
+
total: number;
|
|
1639
|
+
successCount: number;
|
|
1640
|
+
failureCount: number;
|
|
1641
|
+
results: KnowledgeBulkUploadItemResult[];
|
|
1642
|
+
}
|
|
1643
|
+
export interface MemorySearchResult {
|
|
1644
|
+
id: string;
|
|
1645
|
+
text: string;
|
|
1646
|
+
createdAt: number;
|
|
1647
|
+
score: number;
|
|
1648
|
+
}
|
|
1649
|
+
export interface MemorySearchResponse {
|
|
1650
|
+
query: string;
|
|
1651
|
+
results: MemorySearchResult[];
|
|
1652
|
+
count: number;
|
|
1653
|
+
limit: number;
|
|
1654
|
+
}
|
|
1655
|
+
export interface MemoryRememberResponse {
|
|
1656
|
+
ok: boolean;
|
|
1657
|
+
id: string;
|
|
1658
|
+
text: string;
|
|
1659
|
+
createdAt: number;
|
|
1660
|
+
}
|
|
1661
|
+
export interface QuickContextResponse {
|
|
1662
|
+
query: string;
|
|
1663
|
+
answer: string;
|
|
1664
|
+
memories: MemorySearchResult[];
|
|
1665
|
+
knowledge: KnowledgeSearchResult[];
|
|
1666
|
+
}
|
|
1667
|
+
export type WsEventHandler = (data: Record<string, unknown>) => void;
|
|
1668
|
+
export interface RegistryStatus {
|
|
1669
|
+
registered: boolean;
|
|
1670
|
+
tokenId: number;
|
|
1671
|
+
agentName: string;
|
|
1672
|
+
agentEndpoint: string;
|
|
1673
|
+
capabilitiesHash: string;
|
|
1674
|
+
isActive: boolean;
|
|
1675
|
+
tokenURI: string;
|
|
1676
|
+
walletAddress: string;
|
|
1677
|
+
totalAgents: number;
|
|
1678
|
+
configured: boolean;
|
|
1679
|
+
}
|
|
1680
|
+
export interface RegistrationResult {
|
|
1681
|
+
tokenId: number;
|
|
1682
|
+
txHash: string;
|
|
1683
|
+
}
|
|
1684
|
+
export interface RegistryConfig {
|
|
1685
|
+
configured: boolean;
|
|
1686
|
+
chainId: number;
|
|
1687
|
+
registryAddress: string | null;
|
|
1688
|
+
collectionAddress: string | null;
|
|
1689
|
+
explorerUrl: string;
|
|
1690
|
+
}
|
|
1691
|
+
export interface WhitelistStatus {
|
|
1692
|
+
eligible: boolean;
|
|
1693
|
+
twitterVerified: boolean;
|
|
1694
|
+
ogCode: string | null;
|
|
1695
|
+
walletAddress: string;
|
|
1696
|
+
}
|
|
1697
|
+
export interface VerificationMessageResponse {
|
|
1698
|
+
message: string;
|
|
1699
|
+
walletAddress: string;
|
|
1700
|
+
}
|
|
1701
|
+
declare global {
|
|
1702
|
+
interface Window {
|
|
1703
|
+
__MILADY_API_BASE__?: string;
|
|
1704
|
+
__MILADY_API_TOKEN__?: string;
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
export declare class MiladyClient {
|
|
1708
|
+
private _baseUrl;
|
|
1709
|
+
private _explicitBase;
|
|
1710
|
+
private _token;
|
|
1711
|
+
private readonly clientId;
|
|
1712
|
+
private ws;
|
|
1713
|
+
private wsHandlers;
|
|
1714
|
+
private wsSendQueue;
|
|
1715
|
+
private readonly wsSendQueueLimit;
|
|
1716
|
+
private reconnectTimer;
|
|
1717
|
+
private backoffMs;
|
|
1718
|
+
private wsHasConnectedOnce;
|
|
1719
|
+
private connectionState;
|
|
1720
|
+
private reconnectAttempt;
|
|
1721
|
+
private disconnectedAt;
|
|
1722
|
+
private connectionStateListeners;
|
|
1723
|
+
private readonly maxReconnectAttempts;
|
|
1724
|
+
private _uiLanguage;
|
|
1725
|
+
/** Store the current UI language so it can be sent as a header on every request. */
|
|
1726
|
+
setUiLanguage(lang: string): void;
|
|
1727
|
+
private static resolveElectronLocalFallbackBase;
|
|
1728
|
+
private static generateClientId;
|
|
1729
|
+
constructor(baseUrl?: string, token?: string);
|
|
1730
|
+
/**
|
|
1731
|
+
* Resolve the API base URL lazily.
|
|
1732
|
+
* In Electron the main process injects window.__MILADY_API_BASE__ after the
|
|
1733
|
+
* page loads (once the agent runtime starts). Re-checking on every call
|
|
1734
|
+
* ensures we pick up the injected value even if it wasn't set at construction.
|
|
1735
|
+
*/
|
|
1736
|
+
private get baseUrl();
|
|
1737
|
+
private get apiToken();
|
|
1738
|
+
hasToken(): boolean;
|
|
1739
|
+
setToken(token: string | null): void;
|
|
1740
|
+
setBaseUrl(baseUrl: string | null): void;
|
|
1741
|
+
/** True when we have a usable HTTP(S) API endpoint. */
|
|
1742
|
+
get apiAvailable(): boolean;
|
|
1743
|
+
private rawRequest;
|
|
1744
|
+
private fetch;
|
|
1745
|
+
getStatus(): Promise<AgentStatus>;
|
|
1746
|
+
getAgentSelfStatus(): Promise<AgentSelfStatusSnapshot>;
|
|
1747
|
+
getRuntimeSnapshot(opts?: {
|
|
1748
|
+
depth?: number;
|
|
1749
|
+
maxArrayLength?: number;
|
|
1750
|
+
maxObjectEntries?: number;
|
|
1751
|
+
maxStringLength?: number;
|
|
1752
|
+
}): Promise<RuntimeDebugSnapshot>;
|
|
1753
|
+
setAutomationMode(mode: "connectors-only" | "full"): Promise<{
|
|
1754
|
+
mode: string;
|
|
1755
|
+
}>;
|
|
1756
|
+
setTradeMode(mode: string): Promise<{
|
|
1757
|
+
ok: boolean;
|
|
1758
|
+
tradePermissionMode: string;
|
|
1759
|
+
}>;
|
|
1760
|
+
playEmote(emoteId: string): Promise<{
|
|
1761
|
+
ok: boolean;
|
|
1762
|
+
}>;
|
|
1763
|
+
runTerminalCommand(command: string): Promise<{
|
|
1764
|
+
ok: boolean;
|
|
1765
|
+
}>;
|
|
1766
|
+
getOnboardingStatus(): Promise<{
|
|
1767
|
+
complete: boolean;
|
|
1768
|
+
}>;
|
|
1769
|
+
getAuthStatus(): Promise<{
|
|
1770
|
+
required: boolean;
|
|
1771
|
+
pairingEnabled: boolean;
|
|
1772
|
+
expiresAt: number | null;
|
|
1773
|
+
}>;
|
|
1774
|
+
pair(code: string): Promise<{
|
|
1775
|
+
token: string;
|
|
1776
|
+
}>;
|
|
1777
|
+
getOnboardingOptions(): Promise<OnboardingOptions>;
|
|
1778
|
+
submitOnboarding(data: OnboardingData): Promise<void>;
|
|
1779
|
+
startAnthropicLogin(): Promise<{
|
|
1780
|
+
authUrl: string;
|
|
1781
|
+
}>;
|
|
1782
|
+
exchangeAnthropicCode(code: string): Promise<{
|
|
1783
|
+
success: boolean;
|
|
1784
|
+
expiresAt?: string;
|
|
1785
|
+
error?: string;
|
|
1786
|
+
}>;
|
|
1787
|
+
submitAnthropicSetupToken(token: string): Promise<{
|
|
1788
|
+
success: boolean;
|
|
1789
|
+
}>;
|
|
1790
|
+
getSubscriptionStatus(): Promise<SubscriptionStatusResponse>;
|
|
1791
|
+
deleteSubscription(provider: string): Promise<{
|
|
1792
|
+
success: boolean;
|
|
1793
|
+
}>;
|
|
1794
|
+
switchProvider(provider: string, apiKey?: string): Promise<{
|
|
1795
|
+
success: boolean;
|
|
1796
|
+
provider: string;
|
|
1797
|
+
restarting: boolean;
|
|
1798
|
+
}>;
|
|
1799
|
+
startOpenAILogin(): Promise<{
|
|
1800
|
+
authUrl: string;
|
|
1801
|
+
state: string;
|
|
1802
|
+
instructions: string;
|
|
1803
|
+
}>;
|
|
1804
|
+
exchangeOpenAICode(code: string): Promise<{
|
|
1805
|
+
success: boolean;
|
|
1806
|
+
expiresAt?: string;
|
|
1807
|
+
accountId?: string;
|
|
1808
|
+
error?: string;
|
|
1809
|
+
}>;
|
|
1810
|
+
getSandboxPlatform(): Promise<SandboxPlatformStatus>;
|
|
1811
|
+
getSandboxBrowser(): Promise<SandboxBrowserEndpoints>;
|
|
1812
|
+
getSandboxScreenshot(region?: SandboxScreenshotRegion): Promise<SandboxScreenshotPayload>;
|
|
1813
|
+
getSandboxWindows(): Promise<{
|
|
1814
|
+
windows: SandboxWindowInfo[];
|
|
1815
|
+
error?: string;
|
|
1816
|
+
}>;
|
|
1817
|
+
startDocker(): Promise<SandboxStartResponse>;
|
|
1818
|
+
startAgent(): Promise<AgentStatus>;
|
|
1819
|
+
stopAgent(): Promise<AgentStatus>;
|
|
1820
|
+
pauseAgent(): Promise<AgentStatus>;
|
|
1821
|
+
resumeAgent(): Promise<AgentStatus>;
|
|
1822
|
+
restartAgent(): Promise<AgentStatus>;
|
|
1823
|
+
/**
|
|
1824
|
+
* Restart the agent if possible, or wait for an in-progress restart to finish.
|
|
1825
|
+
* Polls status until the agent state is "running".
|
|
1826
|
+
*/
|
|
1827
|
+
restartAndWait(maxWaitMs?: number): Promise<AgentStatus>;
|
|
1828
|
+
resetAgent(): Promise<void>;
|
|
1829
|
+
getConfig(): Promise<Record<string, unknown>>;
|
|
1830
|
+
getConfigSchema(): Promise<ConfigSchemaResponse>;
|
|
1831
|
+
updateConfig(patch: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1832
|
+
uploadCustomVrm(file: File): Promise<void>;
|
|
1833
|
+
/** Uses raw fetch instead of this.fetch() because HEAD returns no JSON body. */
|
|
1834
|
+
hasCustomVrm(): Promise<boolean>;
|
|
1835
|
+
uploadCustomBackground(file: File): Promise<void>;
|
|
1836
|
+
/** Uses raw fetch instead of this.fetch() because HEAD returns no JSON body. */
|
|
1837
|
+
hasCustomBackground(): Promise<boolean>;
|
|
1838
|
+
getConnectors(): Promise<{
|
|
1839
|
+
connectors: Record<string, ConnectorConfig>;
|
|
1840
|
+
}>;
|
|
1841
|
+
saveConnector(name: string, config: ConnectorConfig): Promise<{
|
|
1842
|
+
connectors: Record<string, ConnectorConfig>;
|
|
1843
|
+
}>;
|
|
1844
|
+
deleteConnector(name: string): Promise<{
|
|
1845
|
+
connectors: Record<string, ConnectorConfig>;
|
|
1846
|
+
}>;
|
|
1847
|
+
getTriggers(): Promise<{
|
|
1848
|
+
triggers: TriggerSummary[];
|
|
1849
|
+
}>;
|
|
1850
|
+
getTrigger(id: string): Promise<{
|
|
1851
|
+
trigger: TriggerSummary;
|
|
1852
|
+
}>;
|
|
1853
|
+
createTrigger(request: CreateTriggerRequest): Promise<{
|
|
1854
|
+
trigger: TriggerSummary;
|
|
1855
|
+
}>;
|
|
1856
|
+
updateTrigger(id: string, request: UpdateTriggerRequest): Promise<{
|
|
1857
|
+
trigger: TriggerSummary;
|
|
1858
|
+
}>;
|
|
1859
|
+
deleteTrigger(id: string): Promise<{
|
|
1860
|
+
ok: boolean;
|
|
1861
|
+
}>;
|
|
1862
|
+
runTriggerNow(id: string): Promise<{
|
|
1863
|
+
ok: boolean;
|
|
1864
|
+
result: {
|
|
1865
|
+
status: TriggerLastStatus;
|
|
1866
|
+
error?: string;
|
|
1867
|
+
taskDeleted: boolean;
|
|
1868
|
+
};
|
|
1869
|
+
trigger?: TriggerSummary;
|
|
1870
|
+
}>;
|
|
1871
|
+
getTriggerRuns(id: string): Promise<{
|
|
1872
|
+
runs: TriggerRunRecord[];
|
|
1873
|
+
}>;
|
|
1874
|
+
getTriggerHealth(): Promise<TriggerHealthSnapshot>;
|
|
1875
|
+
getTrainingStatus(): Promise<TrainingStatus>;
|
|
1876
|
+
listTrainingTrajectories(opts?: {
|
|
1877
|
+
limit?: number;
|
|
1878
|
+
offset?: number;
|
|
1879
|
+
}): Promise<TrainingTrajectoryList>;
|
|
1880
|
+
getTrainingTrajectory(trajectoryId: string): Promise<{
|
|
1881
|
+
trajectory: TrainingTrajectoryDetail;
|
|
1882
|
+
}>;
|
|
1883
|
+
listTrainingDatasets(): Promise<{
|
|
1884
|
+
datasets: TrainingDatasetRecord[];
|
|
1885
|
+
}>;
|
|
1886
|
+
buildTrainingDataset(options?: {
|
|
1887
|
+
limit?: number;
|
|
1888
|
+
minLlmCallsPerTrajectory?: number;
|
|
1889
|
+
}): Promise<{
|
|
1890
|
+
dataset: TrainingDatasetRecord;
|
|
1891
|
+
}>;
|
|
1892
|
+
listTrainingJobs(): Promise<{
|
|
1893
|
+
jobs: TrainingJobRecord[];
|
|
1894
|
+
}>;
|
|
1895
|
+
startTrainingJob(options?: StartTrainingOptions): Promise<{
|
|
1896
|
+
job: TrainingJobRecord;
|
|
1897
|
+
}>;
|
|
1898
|
+
getTrainingJob(jobId: string): Promise<{
|
|
1899
|
+
job: TrainingJobRecord;
|
|
1900
|
+
}>;
|
|
1901
|
+
cancelTrainingJob(jobId: string): Promise<{
|
|
1902
|
+
job: TrainingJobRecord;
|
|
1903
|
+
}>;
|
|
1904
|
+
listTrainingModels(): Promise<{
|
|
1905
|
+
models: TrainingModelRecord[];
|
|
1906
|
+
}>;
|
|
1907
|
+
importTrainingModelToOllama(modelId: string, options?: {
|
|
1908
|
+
modelName?: string;
|
|
1909
|
+
baseModel?: string;
|
|
1910
|
+
ollamaUrl?: string;
|
|
1911
|
+
}): Promise<{
|
|
1912
|
+
model: TrainingModelRecord;
|
|
1913
|
+
}>;
|
|
1914
|
+
activateTrainingModel(modelId: string, providerModel?: string): Promise<{
|
|
1915
|
+
modelId: string;
|
|
1916
|
+
providerModel: string;
|
|
1917
|
+
needsRestart: boolean;
|
|
1918
|
+
}>;
|
|
1919
|
+
benchmarkTrainingModel(modelId: string): Promise<{
|
|
1920
|
+
status: "passed" | "failed";
|
|
1921
|
+
output: string;
|
|
1922
|
+
}>;
|
|
1923
|
+
getPlugins(): Promise<{
|
|
1924
|
+
plugins: PluginInfo[];
|
|
1925
|
+
}>;
|
|
1926
|
+
fetchModels(provider: string, refresh?: boolean): Promise<{
|
|
1927
|
+
provider: string;
|
|
1928
|
+
models: unknown[];
|
|
1929
|
+
}>;
|
|
1930
|
+
getCorePlugins(): Promise<CorePluginsResponse>;
|
|
1931
|
+
toggleCorePlugin(npmName: string, enabled: boolean): Promise<{
|
|
1932
|
+
ok: boolean;
|
|
1933
|
+
restarting?: boolean;
|
|
1934
|
+
message?: string;
|
|
1935
|
+
}>;
|
|
1936
|
+
updatePlugin(id: string, config: Record<string, unknown>): Promise<{
|
|
1937
|
+
ok: boolean;
|
|
1938
|
+
restarting?: boolean;
|
|
1939
|
+
}>;
|
|
1940
|
+
getSecrets(): Promise<{
|
|
1941
|
+
secrets: SecretInfo[];
|
|
1942
|
+
}>;
|
|
1943
|
+
updateSecrets(secrets: Record<string, string>): Promise<{
|
|
1944
|
+
ok: boolean;
|
|
1945
|
+
updated: string[];
|
|
1946
|
+
}>;
|
|
1947
|
+
testPluginConnection(id: string): Promise<{
|
|
1948
|
+
success: boolean;
|
|
1949
|
+
pluginId: string;
|
|
1950
|
+
message?: string;
|
|
1951
|
+
error?: string;
|
|
1952
|
+
durationMs: number;
|
|
1953
|
+
}>;
|
|
1954
|
+
restart(): Promise<{
|
|
1955
|
+
ok: boolean;
|
|
1956
|
+
}>;
|
|
1957
|
+
getSkills(): Promise<{
|
|
1958
|
+
skills: SkillInfo[];
|
|
1959
|
+
}>;
|
|
1960
|
+
refreshSkills(): Promise<{
|
|
1961
|
+
ok: boolean;
|
|
1962
|
+
skills: SkillInfo[];
|
|
1963
|
+
}>;
|
|
1964
|
+
getLogs(filter?: LogsFilter): Promise<LogsResponse>;
|
|
1965
|
+
private buildSecurityAuditParams;
|
|
1966
|
+
getSecurityAudit(filter?: SecurityAuditFilter): Promise<SecurityAuditResponse>;
|
|
1967
|
+
streamSecurityAudit(onEvent: (event: SecurityAuditStreamEvent) => void, filter?: SecurityAuditFilter, signal?: AbortSignal): Promise<void>;
|
|
1968
|
+
getAgentEvents(opts?: {
|
|
1969
|
+
afterEventId?: string;
|
|
1970
|
+
limit?: number;
|
|
1971
|
+
runId?: string;
|
|
1972
|
+
fromSeq?: number;
|
|
1973
|
+
}): Promise<AgentEventsResponse>;
|
|
1974
|
+
getExtensionStatus(): Promise<ExtensionStatus>;
|
|
1975
|
+
getSkillCatalog(opts?: {
|
|
1976
|
+
page?: number;
|
|
1977
|
+
perPage?: number;
|
|
1978
|
+
sort?: string;
|
|
1979
|
+
}): Promise<{
|
|
1980
|
+
total: number;
|
|
1981
|
+
page: number;
|
|
1982
|
+
perPage: number;
|
|
1983
|
+
totalPages: number;
|
|
1984
|
+
skills: CatalogSkill[];
|
|
1985
|
+
}>;
|
|
1986
|
+
searchSkillCatalog(query: string, limit?: number): Promise<{
|
|
1987
|
+
query: string;
|
|
1988
|
+
count: number;
|
|
1989
|
+
results: CatalogSearchResult[];
|
|
1990
|
+
}>;
|
|
1991
|
+
getSkillCatalogDetail(slug: string): Promise<{
|
|
1992
|
+
skill: CatalogSkill;
|
|
1993
|
+
}>;
|
|
1994
|
+
refreshSkillCatalog(): Promise<{
|
|
1995
|
+
ok: boolean;
|
|
1996
|
+
count: number;
|
|
1997
|
+
}>;
|
|
1998
|
+
installCatalogSkill(slug: string, version?: string): Promise<{
|
|
1999
|
+
ok: boolean;
|
|
2000
|
+
slug: string;
|
|
2001
|
+
message: string;
|
|
2002
|
+
alreadyInstalled?: boolean;
|
|
2003
|
+
}>;
|
|
2004
|
+
uninstallCatalogSkill(slug: string): Promise<{
|
|
2005
|
+
ok: boolean;
|
|
2006
|
+
slug: string;
|
|
2007
|
+
message: string;
|
|
2008
|
+
}>;
|
|
2009
|
+
getRegistryPlugins(): Promise<{
|
|
2010
|
+
count: number;
|
|
2011
|
+
plugins: RegistryPlugin[];
|
|
2012
|
+
}>;
|
|
2013
|
+
getRegistryPluginInfo(name: string): Promise<{
|
|
2014
|
+
plugin: RegistryPlugin;
|
|
2015
|
+
}>;
|
|
2016
|
+
getInstalledPlugins(): Promise<{
|
|
2017
|
+
count: number;
|
|
2018
|
+
plugins: InstalledPlugin[];
|
|
2019
|
+
}>;
|
|
2020
|
+
installRegistryPlugin(name: string, autoRestart?: boolean): Promise<PluginInstallResult>;
|
|
2021
|
+
uninstallRegistryPlugin(name: string, autoRestart?: boolean): Promise<{
|
|
2022
|
+
ok: boolean;
|
|
2023
|
+
pluginName: string;
|
|
2024
|
+
message: string;
|
|
2025
|
+
error?: string;
|
|
2026
|
+
}>;
|
|
2027
|
+
/**
|
|
2028
|
+
* Export the agent as a password-encrypted .eliza-agent file.
|
|
2029
|
+
* Returns the raw Response so the caller can stream the binary body.
|
|
2030
|
+
*/
|
|
2031
|
+
exportAgent(password: string, includeLogs?: boolean): Promise<Response>;
|
|
2032
|
+
/** Get an estimate of the export size. */
|
|
2033
|
+
getExportEstimate(): Promise<{
|
|
2034
|
+
estimatedBytes: number;
|
|
2035
|
+
memoriesCount: number;
|
|
2036
|
+
entitiesCount: number;
|
|
2037
|
+
roomsCount: number;
|
|
2038
|
+
worldsCount: number;
|
|
2039
|
+
tasksCount: number;
|
|
2040
|
+
}>;
|
|
2041
|
+
/**
|
|
2042
|
+
* Import an agent from a password-encrypted .eliza-agent file.
|
|
2043
|
+
* Encodes the password and file into a binary envelope.
|
|
2044
|
+
*/
|
|
2045
|
+
importAgent(password: string, fileBuffer: ArrayBuffer): Promise<{
|
|
2046
|
+
success: boolean;
|
|
2047
|
+
agentId: string;
|
|
2048
|
+
agentName: string;
|
|
2049
|
+
counts: Record<string, number>;
|
|
2050
|
+
}>;
|
|
2051
|
+
getCharacter(): Promise<{
|
|
2052
|
+
character: CharacterData;
|
|
2053
|
+
agentName: string;
|
|
2054
|
+
}>;
|
|
2055
|
+
getRandomName(): Promise<{
|
|
2056
|
+
name: string;
|
|
2057
|
+
}>;
|
|
2058
|
+
generateCharacterField(field: string, context: {
|
|
2059
|
+
name?: string;
|
|
2060
|
+
system?: string;
|
|
2061
|
+
bio?: string;
|
|
2062
|
+
topics?: string[];
|
|
2063
|
+
style?: {
|
|
2064
|
+
all?: string[];
|
|
2065
|
+
chat?: string[];
|
|
2066
|
+
post?: string[];
|
|
2067
|
+
};
|
|
2068
|
+
postExamples?: string[];
|
|
2069
|
+
}, mode?: "append" | "replace"): Promise<{
|
|
2070
|
+
generated: string;
|
|
2071
|
+
}>;
|
|
2072
|
+
updateCharacter(character: CharacterData): Promise<{
|
|
2073
|
+
ok: boolean;
|
|
2074
|
+
character: CharacterData;
|
|
2075
|
+
agentName: string;
|
|
2076
|
+
}>;
|
|
2077
|
+
getWalletAddresses(): Promise<WalletAddresses>;
|
|
2078
|
+
getWalletBalances(): Promise<WalletBalancesResponse>;
|
|
2079
|
+
getWalletNfts(): Promise<WalletNftsResponse>;
|
|
2080
|
+
getWalletConfig(): Promise<WalletConfigStatus>;
|
|
2081
|
+
updateWalletConfig(config: Record<string, string>): Promise<{
|
|
2082
|
+
ok: boolean;
|
|
2083
|
+
}>;
|
|
2084
|
+
exportWalletKeys(exportToken: string): Promise<WalletExportResult>;
|
|
2085
|
+
getBscTradePreflight(tokenAddress?: string): Promise<BscTradePreflightResponse>;
|
|
2086
|
+
getBscTradeQuote(request: BscTradeQuoteRequest): Promise<BscTradeQuoteResponse>;
|
|
2087
|
+
executeBscTrade(request: BscTradeExecuteRequest): Promise<BscTradeExecuteResponse>;
|
|
2088
|
+
executeBscTransfer(request: BscTransferExecuteRequest): Promise<BscTransferExecuteResponse>;
|
|
2089
|
+
getBscTradeTxStatus(hash: string): Promise<BscTradeTxStatusResponse>;
|
|
2090
|
+
getWalletTradingProfile(window?: WalletTradingProfileWindow, source?: WalletTradingProfileSourceFilter): Promise<WalletTradingProfileResponse>;
|
|
2091
|
+
applyProductionWalletDefaults(): Promise<ApplyProductionWalletDefaultsResponse>;
|
|
2092
|
+
getUpdateStatus(force?: boolean): Promise<UpdateStatus>;
|
|
2093
|
+
setUpdateChannel(channel: "stable" | "beta" | "nightly"): Promise<{
|
|
2094
|
+
channel: string;
|
|
2095
|
+
}>;
|
|
2096
|
+
getCloudStatus(): Promise<CloudStatus>;
|
|
2097
|
+
getCloudCredits(): Promise<CloudCredits>;
|
|
2098
|
+
getCloudBillingSummary(): Promise<CloudBillingSummary>;
|
|
2099
|
+
getCloudBillingSettings(): Promise<CloudBillingSettings>;
|
|
2100
|
+
updateCloudBillingSettings(request: CloudBillingSettingsUpdateRequest): Promise<CloudBillingSettings>;
|
|
2101
|
+
getCloudBillingPaymentMethods(): Promise<{
|
|
2102
|
+
success?: boolean;
|
|
2103
|
+
data?: CloudBillingPaymentMethod[];
|
|
2104
|
+
items?: CloudBillingPaymentMethod[];
|
|
2105
|
+
paymentMethods?: CloudBillingPaymentMethod[];
|
|
2106
|
+
[key: string]: unknown;
|
|
2107
|
+
}>;
|
|
2108
|
+
getCloudBillingHistory(): Promise<{
|
|
2109
|
+
success?: boolean;
|
|
2110
|
+
data?: CloudBillingHistoryItem[];
|
|
2111
|
+
items?: CloudBillingHistoryItem[];
|
|
2112
|
+
history?: CloudBillingHistoryItem[];
|
|
2113
|
+
[key: string]: unknown;
|
|
2114
|
+
}>;
|
|
2115
|
+
createCloudBillingCheckout(request: CloudBillingCheckoutRequest): Promise<CloudBillingCheckoutResponse>;
|
|
2116
|
+
createCloudBillingCryptoQuote(request: CloudBillingCryptoQuoteRequest): Promise<CloudBillingCryptoQuoteResponse>;
|
|
2117
|
+
cloudLogin(): Promise<CloudLoginResponse>;
|
|
2118
|
+
cloudLoginPoll(sessionId: string): Promise<CloudLoginPollResponse>;
|
|
2119
|
+
cloudDisconnect(): Promise<{
|
|
2120
|
+
ok: boolean;
|
|
2121
|
+
}>;
|
|
2122
|
+
/** List all cloud-hosted agents for the authenticated user. */
|
|
2123
|
+
getCloudCompatAgents(): Promise<{
|
|
2124
|
+
success: boolean;
|
|
2125
|
+
data: CloudCompatAgent[];
|
|
2126
|
+
}>;
|
|
2127
|
+
/** Create a new cloud-hosted agent. */
|
|
2128
|
+
createCloudCompatAgent(opts: {
|
|
2129
|
+
agentName: string;
|
|
2130
|
+
agentConfig?: Record<string, unknown>;
|
|
2131
|
+
environmentVars?: Record<string, string>;
|
|
2132
|
+
}): Promise<{
|
|
2133
|
+
success: boolean;
|
|
2134
|
+
data: {
|
|
2135
|
+
agentId: string;
|
|
2136
|
+
agentName: string;
|
|
2137
|
+
jobId: string;
|
|
2138
|
+
status: string;
|
|
2139
|
+
nodeId: string | null;
|
|
2140
|
+
message: string;
|
|
2141
|
+
};
|
|
2142
|
+
}>;
|
|
2143
|
+
/** Get a specific cloud-hosted agent by ID. */
|
|
2144
|
+
getCloudCompatAgent(agentId: string): Promise<{
|
|
2145
|
+
success: boolean;
|
|
2146
|
+
data: CloudCompatAgent;
|
|
2147
|
+
}>;
|
|
2148
|
+
/** Delete a cloud-hosted agent. */
|
|
2149
|
+
deleteCloudCompatAgent(agentId: string): Promise<{
|
|
2150
|
+
success: boolean;
|
|
2151
|
+
data: {
|
|
2152
|
+
jobId: string;
|
|
2153
|
+
status: string;
|
|
2154
|
+
message: string;
|
|
2155
|
+
};
|
|
2156
|
+
}>;
|
|
2157
|
+
/** Get status of a cloud-hosted agent. */
|
|
2158
|
+
getCloudCompatAgentStatus(agentId: string): Promise<{
|
|
2159
|
+
success: boolean;
|
|
2160
|
+
data: CloudCompatAgentStatus;
|
|
2161
|
+
}>;
|
|
2162
|
+
/** Get logs from a cloud-hosted agent. */
|
|
2163
|
+
getCloudCompatAgentLogs(agentId: string, tail?: number): Promise<{
|
|
2164
|
+
success: boolean;
|
|
2165
|
+
data: string;
|
|
2166
|
+
}>;
|
|
2167
|
+
/** Restart a cloud-hosted agent. */
|
|
2168
|
+
restartCloudCompatAgent(agentId: string): Promise<{
|
|
2169
|
+
success: boolean;
|
|
2170
|
+
data: {
|
|
2171
|
+
jobId: string;
|
|
2172
|
+
status: string;
|
|
2173
|
+
message: string;
|
|
2174
|
+
};
|
|
2175
|
+
}>;
|
|
2176
|
+
/** Suspend a cloud-hosted agent. */
|
|
2177
|
+
suspendCloudCompatAgent(agentId: string): Promise<{
|
|
2178
|
+
success: boolean;
|
|
2179
|
+
data: {
|
|
2180
|
+
jobId: string;
|
|
2181
|
+
status: string;
|
|
2182
|
+
message: string;
|
|
2183
|
+
};
|
|
2184
|
+
}>;
|
|
2185
|
+
/** Resume a cloud-hosted agent. */
|
|
2186
|
+
resumeCloudCompatAgent(agentId: string): Promise<{
|
|
2187
|
+
success: boolean;
|
|
2188
|
+
data: {
|
|
2189
|
+
jobId: string;
|
|
2190
|
+
status: string;
|
|
2191
|
+
message: string;
|
|
2192
|
+
};
|
|
2193
|
+
}>;
|
|
2194
|
+
/** Launch a managed cloud agent into the Milady app. */
|
|
2195
|
+
launchCloudCompatAgent(agentId: string): Promise<{
|
|
2196
|
+
success: boolean;
|
|
2197
|
+
data: CloudCompatLaunchResult;
|
|
2198
|
+
}>;
|
|
2199
|
+
/** Get cloud availability (capacity info). */
|
|
2200
|
+
getCloudCompatAvailability(): Promise<{
|
|
2201
|
+
success: boolean;
|
|
2202
|
+
data: {
|
|
2203
|
+
totalSlots: number;
|
|
2204
|
+
usedSlots: number;
|
|
2205
|
+
availableSlots: number;
|
|
2206
|
+
acceptingNewAgents: boolean;
|
|
2207
|
+
};
|
|
2208
|
+
}>;
|
|
2209
|
+
/** Poll a cloud job status by job ID. */
|
|
2210
|
+
getCloudCompatJobStatus(jobId: string): Promise<{
|
|
2211
|
+
success: boolean;
|
|
2212
|
+
data: CloudCompatJob;
|
|
2213
|
+
}>;
|
|
2214
|
+
listApps(): Promise<RegistryAppInfo[]>;
|
|
2215
|
+
searchApps(query: string): Promise<RegistryAppInfo[]>;
|
|
2216
|
+
listInstalledApps(): Promise<InstalledAppInfo[]>;
|
|
2217
|
+
stopApp(name: string): Promise<AppStopResult>;
|
|
2218
|
+
getAppInfo(name: string): Promise<RegistryAppInfo>;
|
|
2219
|
+
/** Launch an app: installs its plugin (if needed), returns viewer config for iframe. */
|
|
2220
|
+
launchApp(name: string): Promise<AppLaunchResult>;
|
|
2221
|
+
listRegistryPlugins(): Promise<RegistryPluginItem[]>;
|
|
2222
|
+
searchRegistryPlugins(query: string): Promise<RegistryPluginItem[]>;
|
|
2223
|
+
listHyperscapeEmbeddedAgents(): Promise<HyperscapeEmbeddedAgentsResponse>;
|
|
2224
|
+
createHyperscapeEmbeddedAgent(input: {
|
|
2225
|
+
characterId: string;
|
|
2226
|
+
autoStart?: boolean;
|
|
2227
|
+
scriptedRole?: HyperscapeScriptedRole;
|
|
2228
|
+
}): Promise<HyperscapeEmbeddedAgentMutationResponse>;
|
|
2229
|
+
controlHyperscapeEmbeddedAgent(characterId: string, action: HyperscapeEmbeddedAgentControlAction): Promise<HyperscapeEmbeddedAgentMutationResponse>;
|
|
2230
|
+
sendHyperscapeEmbeddedAgentCommand(characterId: string, command: string, data?: {
|
|
2231
|
+
[key: string]: HyperscapeJsonValue;
|
|
2232
|
+
}): Promise<HyperscapeActionResponse>;
|
|
2233
|
+
sendHyperscapeAgentMessage(agentId: string, content: string): Promise<HyperscapeActionResponse>;
|
|
2234
|
+
getHyperscapeAgentGoal(agentId: string): Promise<HyperscapeAgentGoalResponse>;
|
|
2235
|
+
getHyperscapeAgentQuickActions(agentId: string): Promise<HyperscapeQuickActionsResponse>;
|
|
2236
|
+
searchSkillsMarketplace(query: string, installed: boolean, limit: number): Promise<{
|
|
2237
|
+
results: SkillMarketplaceResult[];
|
|
2238
|
+
}>;
|
|
2239
|
+
getSkillsMarketplaceConfig(): Promise<{
|
|
2240
|
+
keySet: boolean;
|
|
2241
|
+
}>;
|
|
2242
|
+
updateSkillsMarketplaceConfig(apiKey: string): Promise<{
|
|
2243
|
+
keySet: boolean;
|
|
2244
|
+
}>;
|
|
2245
|
+
installMarketplaceSkill(data: {
|
|
2246
|
+
slug?: string;
|
|
2247
|
+
githubUrl?: string;
|
|
2248
|
+
repository?: string;
|
|
2249
|
+
path?: string;
|
|
2250
|
+
name?: string;
|
|
2251
|
+
description?: string;
|
|
2252
|
+
source: string;
|
|
2253
|
+
autoRefresh?: boolean;
|
|
2254
|
+
}): Promise<void>;
|
|
2255
|
+
uninstallMarketplaceSkill(skillId: string, autoRefresh: boolean): Promise<void>;
|
|
2256
|
+
updateSkill(skillId: string, enabled: boolean): Promise<{
|
|
2257
|
+
skill: SkillInfo;
|
|
2258
|
+
}>;
|
|
2259
|
+
createSkill(name: string, description: string): Promise<{
|
|
2260
|
+
ok: boolean;
|
|
2261
|
+
skill: SkillInfo;
|
|
2262
|
+
path: string;
|
|
2263
|
+
}>;
|
|
2264
|
+
openSkill(id: string): Promise<{
|
|
2265
|
+
ok: boolean;
|
|
2266
|
+
path: string;
|
|
2267
|
+
}>;
|
|
2268
|
+
getSkillSource(id: string): Promise<{
|
|
2269
|
+
ok: boolean;
|
|
2270
|
+
skillId: string;
|
|
2271
|
+
content: string;
|
|
2272
|
+
path: string;
|
|
2273
|
+
}>;
|
|
2274
|
+
saveSkillSource(id: string, content: string): Promise<{
|
|
2275
|
+
ok: boolean;
|
|
2276
|
+
skillId: string;
|
|
2277
|
+
skill: SkillInfo;
|
|
2278
|
+
}>;
|
|
2279
|
+
deleteSkill(id: string): Promise<{
|
|
2280
|
+
ok: boolean;
|
|
2281
|
+
skillId: string;
|
|
2282
|
+
source: string;
|
|
2283
|
+
}>;
|
|
2284
|
+
getSkillScanReport(id: string): Promise<{
|
|
2285
|
+
ok: boolean;
|
|
2286
|
+
report: SkillScanReportSummary | null;
|
|
2287
|
+
acknowledged: boolean;
|
|
2288
|
+
acknowledgment: {
|
|
2289
|
+
acknowledgedAt: string;
|
|
2290
|
+
findingCount: number;
|
|
2291
|
+
} | null;
|
|
2292
|
+
}>;
|
|
2293
|
+
acknowledgeSkill(id: string, enable: boolean): Promise<{
|
|
2294
|
+
ok: boolean;
|
|
2295
|
+
skillId: string;
|
|
2296
|
+
acknowledged: boolean;
|
|
2297
|
+
enabled: boolean;
|
|
2298
|
+
findingCount: number;
|
|
2299
|
+
}>;
|
|
2300
|
+
getWorkbenchOverview(): Promise<WorkbenchOverview & {
|
|
2301
|
+
tasksAvailable?: boolean;
|
|
2302
|
+
triggersAvailable?: boolean;
|
|
2303
|
+
todosAvailable?: boolean;
|
|
2304
|
+
}>;
|
|
2305
|
+
listWorkbenchTasks(): Promise<{
|
|
2306
|
+
tasks: WorkbenchTask[];
|
|
2307
|
+
}>;
|
|
2308
|
+
getWorkbenchTask(taskId: string): Promise<{
|
|
2309
|
+
task: WorkbenchTask;
|
|
2310
|
+
}>;
|
|
2311
|
+
createWorkbenchTask(data: {
|
|
2312
|
+
name: string;
|
|
2313
|
+
description?: string;
|
|
2314
|
+
tags?: string[];
|
|
2315
|
+
isCompleted?: boolean;
|
|
2316
|
+
}): Promise<{
|
|
2317
|
+
task: WorkbenchTask;
|
|
2318
|
+
}>;
|
|
2319
|
+
updateWorkbenchTask(taskId: string, data: {
|
|
2320
|
+
name?: string;
|
|
2321
|
+
description?: string;
|
|
2322
|
+
tags?: string[];
|
|
2323
|
+
isCompleted?: boolean;
|
|
2324
|
+
}): Promise<{
|
|
2325
|
+
task: WorkbenchTask;
|
|
2326
|
+
}>;
|
|
2327
|
+
deleteWorkbenchTask(taskId: string): Promise<{
|
|
2328
|
+
ok: boolean;
|
|
2329
|
+
}>;
|
|
2330
|
+
listWorkbenchTodos(): Promise<{
|
|
2331
|
+
todos: WorkbenchTodo[];
|
|
2332
|
+
}>;
|
|
2333
|
+
getWorkbenchTodo(todoId: string): Promise<{
|
|
2334
|
+
todo: WorkbenchTodo;
|
|
2335
|
+
}>;
|
|
2336
|
+
createWorkbenchTodo(data: {
|
|
2337
|
+
name: string;
|
|
2338
|
+
description?: string;
|
|
2339
|
+
priority?: number;
|
|
2340
|
+
isUrgent?: boolean;
|
|
2341
|
+
type?: string;
|
|
2342
|
+
isCompleted?: boolean;
|
|
2343
|
+
}): Promise<{
|
|
2344
|
+
todo: WorkbenchTodo;
|
|
2345
|
+
}>;
|
|
2346
|
+
updateWorkbenchTodo(todoId: string, data: {
|
|
2347
|
+
name?: string;
|
|
2348
|
+
description?: string;
|
|
2349
|
+
priority?: number;
|
|
2350
|
+
isUrgent?: boolean;
|
|
2351
|
+
type?: string;
|
|
2352
|
+
isCompleted?: boolean;
|
|
2353
|
+
}): Promise<{
|
|
2354
|
+
todo: WorkbenchTodo;
|
|
2355
|
+
}>;
|
|
2356
|
+
setWorkbenchTodoCompleted(todoId: string, isCompleted: boolean): Promise<void>;
|
|
2357
|
+
deleteWorkbenchTodo(todoId: string): Promise<{
|
|
2358
|
+
ok: boolean;
|
|
2359
|
+
}>;
|
|
2360
|
+
refreshRegistry(): Promise<void>;
|
|
2361
|
+
getKnowledgeStats(): Promise<KnowledgeStats>;
|
|
2362
|
+
listKnowledgeDocuments(options?: {
|
|
2363
|
+
limit?: number;
|
|
2364
|
+
offset?: number;
|
|
2365
|
+
}): Promise<KnowledgeDocumentsResponse>;
|
|
2366
|
+
getKnowledgeDocument(documentId: string): Promise<{
|
|
2367
|
+
document: KnowledgeDocumentDetail;
|
|
2368
|
+
}>;
|
|
2369
|
+
deleteKnowledgeDocument(documentId: string): Promise<{
|
|
2370
|
+
ok: boolean;
|
|
2371
|
+
deletedFragments: number;
|
|
2372
|
+
}>;
|
|
2373
|
+
uploadKnowledgeDocument(data: {
|
|
2374
|
+
content: string;
|
|
2375
|
+
filename: string;
|
|
2376
|
+
contentType?: string;
|
|
2377
|
+
metadata?: Record<string, unknown>;
|
|
2378
|
+
}): Promise<KnowledgeUploadResult>;
|
|
2379
|
+
uploadKnowledgeDocumentsBulk(data: {
|
|
2380
|
+
documents: Array<{
|
|
2381
|
+
content: string;
|
|
2382
|
+
filename: string;
|
|
2383
|
+
contentType?: string;
|
|
2384
|
+
metadata?: Record<string, unknown>;
|
|
2385
|
+
}>;
|
|
2386
|
+
}): Promise<KnowledgeBulkUploadResult>;
|
|
2387
|
+
uploadKnowledgeFromUrl(url: string, metadata?: Record<string, unknown>): Promise<KnowledgeUploadResult>;
|
|
2388
|
+
searchKnowledge(query: string, options?: {
|
|
2389
|
+
threshold?: number;
|
|
2390
|
+
limit?: number;
|
|
2391
|
+
}): Promise<KnowledgeSearchResponse>;
|
|
2392
|
+
getKnowledgeFragments(documentId: string): Promise<KnowledgeFragmentsResponse>;
|
|
2393
|
+
rememberMemory(text: string): Promise<MemoryRememberResponse>;
|
|
2394
|
+
searchMemory(query: string, options?: {
|
|
2395
|
+
limit?: number;
|
|
2396
|
+
}): Promise<MemorySearchResponse>;
|
|
2397
|
+
quickContext(query: string, options?: {
|
|
2398
|
+
limit?: number;
|
|
2399
|
+
}): Promise<QuickContextResponse>;
|
|
2400
|
+
getMcpConfig(): Promise<{
|
|
2401
|
+
servers: Record<string, McpServerConfig>;
|
|
2402
|
+
}>;
|
|
2403
|
+
getMcpStatus(): Promise<{
|
|
2404
|
+
servers: McpServerStatus[];
|
|
2405
|
+
}>;
|
|
2406
|
+
searchMcpMarketplace(query: string, limit: number): Promise<{
|
|
2407
|
+
results: McpMarketplaceResult[];
|
|
2408
|
+
}>;
|
|
2409
|
+
getMcpServerDetails(name: string): Promise<{
|
|
2410
|
+
server: McpRegistryServerDetail;
|
|
2411
|
+
}>;
|
|
2412
|
+
addMcpServer(name: string, config: McpServerConfig): Promise<void>;
|
|
2413
|
+
removeMcpServer(name: string): Promise<void>;
|
|
2414
|
+
ingestShare(payload: ShareIngestPayload): Promise<{
|
|
2415
|
+
item: ShareIngestItem;
|
|
2416
|
+
}>;
|
|
2417
|
+
consumeShareIngest(): Promise<{
|
|
2418
|
+
items: ShareIngestItem[];
|
|
2419
|
+
}>;
|
|
2420
|
+
connectWs(): void;
|
|
2421
|
+
private scheduleReconnect;
|
|
2422
|
+
private emitConnectionStateChange;
|
|
2423
|
+
/** Get the current WebSocket connection state. */
|
|
2424
|
+
getConnectionState(): ConnectionStateInfo;
|
|
2425
|
+
/** Subscribe to connection state changes. Returns an unsubscribe function. */
|
|
2426
|
+
onConnectionStateChange(listener: (state: ConnectionStateInfo) => void): () => void;
|
|
2427
|
+
/** Reset connection state and restart reconnection attempts. */
|
|
2428
|
+
resetConnection(): void;
|
|
2429
|
+
/** Send an arbitrary JSON message over the WebSocket connection. */
|
|
2430
|
+
sendWsMessage(data: Record<string, unknown>): void;
|
|
2431
|
+
onWsEvent(type: string, handler: WsEventHandler): () => void;
|
|
2432
|
+
private normalizeAssistantText;
|
|
2433
|
+
private normalizeGreetingText;
|
|
2434
|
+
private normalizeConversationMessage;
|
|
2435
|
+
private streamChatEndpoint;
|
|
2436
|
+
/**
|
|
2437
|
+
* Send a chat message via the REST endpoint (reliable — does not depend on
|
|
2438
|
+
* a WebSocket connection). Returns the agent's response text.
|
|
2439
|
+
*/
|
|
2440
|
+
sendChatRest(text: string, channelType?: ConversationChannelType, conversationMode?: ConversationMode): Promise<{
|
|
2441
|
+
text: string;
|
|
2442
|
+
agentName: string;
|
|
2443
|
+
}>;
|
|
2444
|
+
sendChatStream(text: string, onToken: (token: string, accumulatedText?: string) => void, channelType?: ConversationChannelType, signal?: AbortSignal, conversationMode?: ConversationMode): Promise<{
|
|
2445
|
+
text: string;
|
|
2446
|
+
agentName: string;
|
|
2447
|
+
completed: boolean;
|
|
2448
|
+
usage?: ChatTokenUsage;
|
|
2449
|
+
}>;
|
|
2450
|
+
listConversations(): Promise<{
|
|
2451
|
+
conversations: Conversation[];
|
|
2452
|
+
}>;
|
|
2453
|
+
createConversation(title?: string, options?: CreateConversationOptions): Promise<{
|
|
2454
|
+
conversation: Conversation;
|
|
2455
|
+
greeting?: ConversationGreeting;
|
|
2456
|
+
}>;
|
|
2457
|
+
getConversationMessages(id: string): Promise<{
|
|
2458
|
+
messages: ConversationMessage[];
|
|
2459
|
+
}>;
|
|
2460
|
+
truncateConversationMessages(id: string, messageId: string, options?: {
|
|
2461
|
+
inclusive?: boolean;
|
|
2462
|
+
}): Promise<{
|
|
2463
|
+
ok: boolean;
|
|
2464
|
+
deletedCount: number;
|
|
2465
|
+
}>;
|
|
2466
|
+
sendConversationMessage(id: string, text: string, channelType?: ConversationChannelType, images?: ImageAttachment[], conversationMode?: ConversationMode): Promise<{
|
|
2467
|
+
text: string;
|
|
2468
|
+
agentName: string;
|
|
2469
|
+
blocks?: ContentBlock[];
|
|
2470
|
+
}>;
|
|
2471
|
+
sendConversationMessageStream(id: string, text: string, onToken: (token: string, accumulatedText?: string) => void, channelType?: ConversationChannelType, signal?: AbortSignal, images?: ImageAttachment[], conversationMode?: ConversationMode): Promise<{
|
|
2472
|
+
text: string;
|
|
2473
|
+
agentName: string;
|
|
2474
|
+
completed: boolean;
|
|
2475
|
+
usage?: ChatTokenUsage;
|
|
2476
|
+
}>;
|
|
2477
|
+
requestGreeting(id: string, lang?: string): Promise<{
|
|
2478
|
+
text: string;
|
|
2479
|
+
agentName: string;
|
|
2480
|
+
generated: boolean;
|
|
2481
|
+
persisted?: boolean;
|
|
2482
|
+
}>;
|
|
2483
|
+
renameConversation(id: string, title: string): Promise<{
|
|
2484
|
+
conversation: Conversation;
|
|
2485
|
+
}>;
|
|
2486
|
+
deleteConversation(id: string): Promise<{
|
|
2487
|
+
ok: boolean;
|
|
2488
|
+
}>;
|
|
2489
|
+
/** @deprecated Prefer {@link sendChatRest} — WebSocket chat may silently drop messages. */
|
|
2490
|
+
sendChat(text: string): void;
|
|
2491
|
+
getDatabaseStatus(): Promise<DatabaseStatus>;
|
|
2492
|
+
getDatabaseConfig(): Promise<DatabaseConfigResponse>;
|
|
2493
|
+
saveDatabaseConfig(config: {
|
|
2494
|
+
provider?: DatabaseProviderType;
|
|
2495
|
+
pglite?: {
|
|
2496
|
+
dataDir?: string;
|
|
2497
|
+
};
|
|
2498
|
+
postgres?: {
|
|
2499
|
+
connectionString?: string;
|
|
2500
|
+
host?: string;
|
|
2501
|
+
port?: number;
|
|
2502
|
+
database?: string;
|
|
2503
|
+
user?: string;
|
|
2504
|
+
password?: string;
|
|
2505
|
+
ssl?: boolean;
|
|
2506
|
+
};
|
|
2507
|
+
}): Promise<{
|
|
2508
|
+
saved: boolean;
|
|
2509
|
+
needsRestart: boolean;
|
|
2510
|
+
}>;
|
|
2511
|
+
testDatabaseConnection(creds: {
|
|
2512
|
+
connectionString?: string;
|
|
2513
|
+
host?: string;
|
|
2514
|
+
port?: number;
|
|
2515
|
+
database?: string;
|
|
2516
|
+
user?: string;
|
|
2517
|
+
password?: string;
|
|
2518
|
+
ssl?: boolean;
|
|
2519
|
+
}): Promise<ConnectionTestResult>;
|
|
2520
|
+
getDatabaseTables(): Promise<{
|
|
2521
|
+
tables: TableInfo[];
|
|
2522
|
+
}>;
|
|
2523
|
+
getDatabaseRows(table: string, opts?: {
|
|
2524
|
+
offset?: number;
|
|
2525
|
+
limit?: number;
|
|
2526
|
+
sort?: string;
|
|
2527
|
+
order?: "asc" | "desc";
|
|
2528
|
+
search?: string;
|
|
2529
|
+
}): Promise<TableRowsResponse>;
|
|
2530
|
+
insertDatabaseRow(table: string, data: Record<string, unknown>): Promise<{
|
|
2531
|
+
inserted: boolean;
|
|
2532
|
+
row: Record<string, unknown> | null;
|
|
2533
|
+
}>;
|
|
2534
|
+
updateDatabaseRow(table: string, where: Record<string, unknown>, data: Record<string, unknown>): Promise<{
|
|
2535
|
+
updated: boolean;
|
|
2536
|
+
row: Record<string, unknown>;
|
|
2537
|
+
}>;
|
|
2538
|
+
deleteDatabaseRow(table: string, where: Record<string, unknown>): Promise<{
|
|
2539
|
+
deleted: boolean;
|
|
2540
|
+
row: Record<string, unknown>;
|
|
2541
|
+
}>;
|
|
2542
|
+
executeDatabaseQuery(sql: string, readOnly?: boolean): Promise<QueryResult>;
|
|
2543
|
+
getTrajectories(options?: TrajectoryListOptions): Promise<TrajectoryListResult>;
|
|
2544
|
+
getTrajectoryDetail(trajectoryId: string): Promise<TrajectoryDetailResult>;
|
|
2545
|
+
getTrajectoryStats(): Promise<TrajectoryStats>;
|
|
2546
|
+
getTrajectoryConfig(): Promise<TrajectoryConfig>;
|
|
2547
|
+
updateTrajectoryConfig(config: Partial<TrajectoryConfig>): Promise<TrajectoryConfig>;
|
|
2548
|
+
exportTrajectories(options: TrajectoryExportOptions): Promise<Blob>;
|
|
2549
|
+
deleteTrajectories(trajectoryIds: string[]): Promise<{
|
|
2550
|
+
deleted: number;
|
|
2551
|
+
}>;
|
|
2552
|
+
clearAllTrajectories(): Promise<{
|
|
2553
|
+
deleted: number;
|
|
2554
|
+
}>;
|
|
2555
|
+
/**
|
|
2556
|
+
* Get all system permission states.
|
|
2557
|
+
*/
|
|
2558
|
+
getPermissions(): Promise<AllPermissionsState>;
|
|
2559
|
+
/**
|
|
2560
|
+
* Get a single permission state.
|
|
2561
|
+
*/
|
|
2562
|
+
getPermission(id: SystemPermissionId): Promise<PermissionState>;
|
|
2563
|
+
/**
|
|
2564
|
+
* Request a specific permission (triggers OS prompt if applicable).
|
|
2565
|
+
*/
|
|
2566
|
+
requestPermission(id: SystemPermissionId): Promise<PermissionState>;
|
|
2567
|
+
/**
|
|
2568
|
+
* Open system settings for a specific permission.
|
|
2569
|
+
*/
|
|
2570
|
+
openPermissionSettings(id: SystemPermissionId): Promise<void>;
|
|
2571
|
+
/**
|
|
2572
|
+
* Refresh all permission states from the OS.
|
|
2573
|
+
*/
|
|
2574
|
+
refreshPermissions(): Promise<AllPermissionsState>;
|
|
2575
|
+
/**
|
|
2576
|
+
* Enable or disable shell access.
|
|
2577
|
+
*/
|
|
2578
|
+
setShellEnabled(enabled: boolean): Promise<PermissionState>;
|
|
2579
|
+
/**
|
|
2580
|
+
* Get shell enabled status.
|
|
2581
|
+
*/
|
|
2582
|
+
isShellEnabled(): Promise<boolean>;
|
|
2583
|
+
/**
|
|
2584
|
+
* Get agent automation permission mode.
|
|
2585
|
+
*/
|
|
2586
|
+
getAgentAutomationMode(): Promise<AgentAutomationModeResponse>;
|
|
2587
|
+
/**
|
|
2588
|
+
* Set agent automation permission mode.
|
|
2589
|
+
*/
|
|
2590
|
+
setAgentAutomationMode(mode: AgentAutomationMode): Promise<AgentAutomationModeResponse>;
|
|
2591
|
+
/**
|
|
2592
|
+
* Get wallet trade execution permission mode.
|
|
2593
|
+
*/
|
|
2594
|
+
getTradePermissionMode(): Promise<TradePermissionModeResponse>;
|
|
2595
|
+
/**
|
|
2596
|
+
* Set wallet trade execution permission mode.
|
|
2597
|
+
*/
|
|
2598
|
+
setTradePermissionMode(mode: TradePermissionMode): Promise<TradePermissionModeResponse>;
|
|
2599
|
+
disconnectWs(): void;
|
|
2600
|
+
getRegistryStatus(): Promise<RegistryStatus>;
|
|
2601
|
+
registerAgent(params?: {
|
|
2602
|
+
name?: string;
|
|
2603
|
+
endpoint?: string;
|
|
2604
|
+
tokenURI?: string;
|
|
2605
|
+
}): Promise<RegistrationResult>;
|
|
2606
|
+
updateRegistryTokenURI(tokenURI: string): Promise<{
|
|
2607
|
+
ok: boolean;
|
|
2608
|
+
txHash: string;
|
|
2609
|
+
}>;
|
|
2610
|
+
syncRegistryProfile(params?: {
|
|
2611
|
+
name?: string;
|
|
2612
|
+
endpoint?: string;
|
|
2613
|
+
tokenURI?: string;
|
|
2614
|
+
}): Promise<{
|
|
2615
|
+
ok: boolean;
|
|
2616
|
+
txHash: string;
|
|
2617
|
+
}>;
|
|
2618
|
+
getRegistryConfig(): Promise<RegistryConfig>;
|
|
2619
|
+
getDropStatus(): Promise<DropStatus>;
|
|
2620
|
+
mintAgent(params?: {
|
|
2621
|
+
name?: string;
|
|
2622
|
+
endpoint?: string;
|
|
2623
|
+
shiny?: boolean;
|
|
2624
|
+
}): Promise<MintResult>;
|
|
2625
|
+
mintAgentWhitelist(params: {
|
|
2626
|
+
name?: string;
|
|
2627
|
+
endpoint?: string;
|
|
2628
|
+
proof: string[];
|
|
2629
|
+
}): Promise<MintResult>;
|
|
2630
|
+
getWhitelistStatus(): Promise<WhitelistStatus>;
|
|
2631
|
+
generateTwitterVerificationMessage(): Promise<VerificationMessageResponse>;
|
|
2632
|
+
verifyTwitter(tweetUrl: string): Promise<VerificationResult>;
|
|
2633
|
+
listCustomActions(): Promise<CustomActionDef[]>;
|
|
2634
|
+
createCustomAction(action: Omit<CustomActionDef, "id" | "createdAt" | "updatedAt">): Promise<CustomActionDef>;
|
|
2635
|
+
updateCustomAction(id: string, action: Partial<CustomActionDef>): Promise<CustomActionDef>;
|
|
2636
|
+
deleteCustomAction(id: string): Promise<void>;
|
|
2637
|
+
testCustomAction(id: string, params: Record<string, string>): Promise<{
|
|
2638
|
+
ok: boolean;
|
|
2639
|
+
output: string;
|
|
2640
|
+
error?: string;
|
|
2641
|
+
durationMs: number;
|
|
2642
|
+
}>;
|
|
2643
|
+
generateCustomAction(prompt: string): Promise<{
|
|
2644
|
+
ok: boolean;
|
|
2645
|
+
generated: Record<string, unknown>;
|
|
2646
|
+
}>;
|
|
2647
|
+
getWhatsAppStatus(accountId?: string): Promise<{
|
|
2648
|
+
accountId: string;
|
|
2649
|
+
status: string;
|
|
2650
|
+
authExists: boolean;
|
|
2651
|
+
serviceConnected: boolean;
|
|
2652
|
+
servicePhone: string | null;
|
|
2653
|
+
}>;
|
|
2654
|
+
startWhatsAppPairing(accountId?: string): Promise<{
|
|
2655
|
+
ok: boolean;
|
|
2656
|
+
accountId: string;
|
|
2657
|
+
status: string;
|
|
2658
|
+
error?: string;
|
|
2659
|
+
}>;
|
|
2660
|
+
stopWhatsAppPairing(accountId?: string): Promise<{
|
|
2661
|
+
ok: boolean;
|
|
2662
|
+
accountId: string;
|
|
2663
|
+
status: string;
|
|
2664
|
+
}>;
|
|
2665
|
+
disconnectWhatsApp(accountId?: string): Promise<{
|
|
2666
|
+
ok: boolean;
|
|
2667
|
+
accountId: string;
|
|
2668
|
+
}>;
|
|
2669
|
+
checkBugReportInfo(): Promise<{
|
|
2670
|
+
nodeVersion?: string;
|
|
2671
|
+
platform?: string;
|
|
2672
|
+
}>;
|
|
2673
|
+
submitBugReport(report: {
|
|
2674
|
+
description: string;
|
|
2675
|
+
stepsToReproduce: string;
|
|
2676
|
+
expectedBehavior?: string;
|
|
2677
|
+
actualBehavior?: string;
|
|
2678
|
+
environment?: string;
|
|
2679
|
+
nodeVersion?: string;
|
|
2680
|
+
modelProvider?: string;
|
|
2681
|
+
logs?: string;
|
|
2682
|
+
}): Promise<{
|
|
2683
|
+
url?: string;
|
|
2684
|
+
fallback?: string;
|
|
2685
|
+
}>;
|
|
2686
|
+
getCodingAgentStatus(): Promise<CodingAgentStatus | null>;
|
|
2687
|
+
stopCodingAgent(sessionId: string): Promise<boolean>;
|
|
2688
|
+
listCodingAgentScratchWorkspaces(): Promise<CodingAgentScratchWorkspace[]>;
|
|
2689
|
+
keepCodingAgentScratchWorkspace(sessionId: string): Promise<boolean>;
|
|
2690
|
+
deleteCodingAgentScratchWorkspace(sessionId: string): Promise<boolean>;
|
|
2691
|
+
promoteCodingAgentScratchWorkspace(sessionId: string, name?: string): Promise<CodingAgentScratchWorkspace | null>;
|
|
2692
|
+
/** Subscribe to live PTY output for a session over WebSocket. */
|
|
2693
|
+
subscribePtyOutput(sessionId: string): void;
|
|
2694
|
+
/** Unsubscribe from live PTY output for a session. */
|
|
2695
|
+
unsubscribePtyOutput(sessionId: string): void;
|
|
2696
|
+
/** Send raw keyboard input to a PTY session. */
|
|
2697
|
+
sendPtyInput(sessionId: string, data: string): void;
|
|
2698
|
+
/** Resize a PTY session's terminal dimensions. */
|
|
2699
|
+
resizePty(sessionId: string, cols: number, rows: number): void;
|
|
2700
|
+
/** Fetch buffered terminal output (raw ANSI) for xterm.js hydration. */
|
|
2701
|
+
getPtyBufferedOutput(sessionId: string): Promise<string>;
|
|
2702
|
+
streamGoLive(): Promise<{
|
|
2703
|
+
ok: boolean;
|
|
2704
|
+
live: boolean;
|
|
2705
|
+
rtmpUrl?: string;
|
|
2706
|
+
inputMode?: string;
|
|
2707
|
+
audioSource?: string;
|
|
2708
|
+
message?: string;
|
|
2709
|
+
destination?: string;
|
|
2710
|
+
}>;
|
|
2711
|
+
streamGoOffline(): Promise<{
|
|
2712
|
+
ok: boolean;
|
|
2713
|
+
live: boolean;
|
|
2714
|
+
}>;
|
|
2715
|
+
streamStatus(): Promise<{
|
|
2716
|
+
ok: boolean;
|
|
2717
|
+
running: boolean;
|
|
2718
|
+
ffmpegAlive: boolean;
|
|
2719
|
+
uptime: number;
|
|
2720
|
+
frameCount: number;
|
|
2721
|
+
volume: number;
|
|
2722
|
+
muted: boolean;
|
|
2723
|
+
audioSource: string;
|
|
2724
|
+
inputMode: string | null;
|
|
2725
|
+
destination?: {
|
|
2726
|
+
id: string;
|
|
2727
|
+
name: string;
|
|
2728
|
+
} | null;
|
|
2729
|
+
}>;
|
|
2730
|
+
getStreamingDestinations(): Promise<{
|
|
2731
|
+
ok: boolean;
|
|
2732
|
+
destinations: Array<{
|
|
2733
|
+
id: string;
|
|
2734
|
+
name: string;
|
|
2735
|
+
}>;
|
|
2736
|
+
}>;
|
|
2737
|
+
setActiveDestination(destinationId: string): Promise<{
|
|
2738
|
+
ok: boolean;
|
|
2739
|
+
destination?: {
|
|
2740
|
+
id: string;
|
|
2741
|
+
name: string;
|
|
2742
|
+
};
|
|
2743
|
+
}>;
|
|
2744
|
+
setStreamVolume(volume: number): Promise<{
|
|
2745
|
+
ok: boolean;
|
|
2746
|
+
volume: number;
|
|
2747
|
+
muted: boolean;
|
|
2748
|
+
}>;
|
|
2749
|
+
muteStream(): Promise<{
|
|
2750
|
+
ok: boolean;
|
|
2751
|
+
muted: boolean;
|
|
2752
|
+
volume: number;
|
|
2753
|
+
}>;
|
|
2754
|
+
unmuteStream(): Promise<{
|
|
2755
|
+
ok: boolean;
|
|
2756
|
+
muted: boolean;
|
|
2757
|
+
volume: number;
|
|
2758
|
+
}>;
|
|
2759
|
+
getStreamVoice(): Promise<{
|
|
2760
|
+
ok: boolean;
|
|
2761
|
+
enabled: boolean;
|
|
2762
|
+
autoSpeak: boolean;
|
|
2763
|
+
provider: string | null;
|
|
2764
|
+
configuredProvider: string | null;
|
|
2765
|
+
hasApiKey: boolean;
|
|
2766
|
+
isSpeaking: boolean;
|
|
2767
|
+
isAttached: boolean;
|
|
2768
|
+
}>;
|
|
2769
|
+
saveStreamVoice(settings: {
|
|
2770
|
+
enabled?: boolean;
|
|
2771
|
+
autoSpeak?: boolean;
|
|
2772
|
+
provider?: string;
|
|
2773
|
+
}): Promise<{
|
|
2774
|
+
ok: boolean;
|
|
2775
|
+
voice: {
|
|
2776
|
+
enabled: boolean;
|
|
2777
|
+
autoSpeak: boolean;
|
|
2778
|
+
};
|
|
2779
|
+
}>;
|
|
2780
|
+
streamVoiceSpeak(text: string): Promise<{
|
|
2781
|
+
ok: boolean;
|
|
2782
|
+
speaking: boolean;
|
|
2783
|
+
}>;
|
|
2784
|
+
getOverlayLayout(destinationId?: string | null): Promise<{
|
|
2785
|
+
ok: boolean;
|
|
2786
|
+
layout: unknown;
|
|
2787
|
+
destinationId?: string;
|
|
2788
|
+
}>;
|
|
2789
|
+
saveOverlayLayout(layout: unknown, destinationId?: string | null): Promise<{
|
|
2790
|
+
ok: boolean;
|
|
2791
|
+
layout: unknown;
|
|
2792
|
+
destinationId?: string;
|
|
2793
|
+
}>;
|
|
2794
|
+
getStreamSource(): Promise<{
|
|
2795
|
+
source: {
|
|
2796
|
+
type: string;
|
|
2797
|
+
url?: string;
|
|
2798
|
+
};
|
|
2799
|
+
}>;
|
|
2800
|
+
setStreamSource(sourceType: string, customUrl?: string): Promise<{
|
|
2801
|
+
ok: boolean;
|
|
2802
|
+
source: {
|
|
2803
|
+
type: string;
|
|
2804
|
+
url?: string;
|
|
2805
|
+
};
|
|
2806
|
+
}>;
|
|
2807
|
+
getStreamSettings(): Promise<{
|
|
2808
|
+
ok: boolean;
|
|
2809
|
+
settings: {
|
|
2810
|
+
theme?: string;
|
|
2811
|
+
avatarIndex?: number;
|
|
2812
|
+
};
|
|
2813
|
+
}>;
|
|
2814
|
+
saveStreamSettings(settings: {
|
|
2815
|
+
theme?: string;
|
|
2816
|
+
avatarIndex?: number;
|
|
2817
|
+
}): Promise<{
|
|
2818
|
+
ok: boolean;
|
|
2819
|
+
settings: unknown;
|
|
2820
|
+
}>;
|
|
2821
|
+
}
|
|
2822
|
+
export declare const client: MiladyClient;
|
|
2823
|
+
//# sourceMappingURL=client.d.ts.map
|