@base44/superagent-native 0.0.1
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/README.md +132 -0
- package/lib/commonjs/AgentSettingsPanel.js +1067 -0
- package/lib/commonjs/AgentSettingsPanel.js.map +1 -0
- package/lib/commonjs/AgentSphereIcon.js +243 -0
- package/lib/commonjs/AgentSphereIcon.js.map +1 -0
- package/lib/commonjs/AttachmentPickerStatusModal.js +96 -0
- package/lib/commonjs/AttachmentPickerStatusModal.js.map +1 -0
- package/lib/commonjs/AttachmentPreviewStrip.js +49 -0
- package/lib/commonjs/AttachmentPreviewStrip.js.map +1 -0
- package/lib/commonjs/ChannelsPanel.js +733 -0
- package/lib/commonjs/ChannelsPanel.js.map +1 -0
- package/lib/commonjs/ConversationChat.js +219 -0
- package/lib/commonjs/ConversationChat.js.map +1 -0
- package/lib/commonjs/ConversationComposer.js +323 -0
- package/lib/commonjs/ConversationComposer.js.map +1 -0
- package/lib/commonjs/ConversationMessageList.js +105 -0
- package/lib/commonjs/ConversationMessageList.js.map +1 -0
- package/lib/commonjs/ConversationScreen.js +241 -0
- package/lib/commonjs/ConversationScreen.js.map +1 -0
- package/lib/commonjs/EditorDrawer.js +1127 -0
- package/lib/commonjs/EditorDrawer.js.map +1 -0
- package/lib/commonjs/EditorTabPanel.js +28 -0
- package/lib/commonjs/EditorTabPanel.js.map +1 -0
- package/lib/commonjs/FilesPanel.js +533 -0
- package/lib/commonjs/FilesPanel.js.map +1 -0
- package/lib/commonjs/MarkdownText.js +313 -0
- package/lib/commonjs/MarkdownText.js.map +1 -0
- package/lib/commonjs/MessageActionBar.js +90 -0
- package/lib/commonjs/MessageActionBar.js.map +1 -0
- package/lib/commonjs/RenameAgentModal.js +99 -0
- package/lib/commonjs/RenameAgentModal.js.map +1 -0
- package/lib/commonjs/ShareAgentModal.js +349 -0
- package/lib/commonjs/ShareAgentModal.js.map +1 -0
- package/lib/commonjs/ShareAgentModal.styles.js +236 -0
- package/lib/commonjs/ShareAgentModal.styles.js.map +1 -0
- package/lib/commonjs/SuperagentHomeScreen.js +316 -0
- package/lib/commonjs/SuperagentHomeScreen.js.map +1 -0
- package/lib/commonjs/ToolApprovalCard.js +542 -0
- package/lib/commonjs/ToolApprovalCard.js.map +1 -0
- package/lib/commonjs/ToolCallSummary.js +632 -0
- package/lib/commonjs/ToolCallSummary.js.map +1 -0
- package/lib/commonjs/agentSphereStyles.js +38 -0
- package/lib/commonjs/agentSphereStyles.js.map +1 -0
- package/lib/commonjs/apiClient.js +158 -0
- package/lib/commonjs/apiClient.js.map +1 -0
- package/lib/commonjs/attachmentFileHelpers.js +104 -0
- package/lib/commonjs/attachmentFileHelpers.js.map +1 -0
- package/lib/commonjs/attachmentUpload.js +87 -0
- package/lib/commonjs/attachmentUpload.js.map +1 -0
- package/lib/commonjs/composerStyles.js +248 -0
- package/lib/commonjs/composerStyles.js.map +1 -0
- package/lib/commonjs/connectorBrandIcons.js +82 -0
- package/lib/commonjs/connectorBrandIcons.js.map +1 -0
- package/lib/commonjs/connectorCatalog.js +377 -0
- package/lib/commonjs/connectorCatalog.js.map +1 -0
- package/lib/commonjs/constants.js +15 -0
- package/lib/commonjs/constants.js.map +1 -0
- package/lib/commonjs/conversationParts.js +273 -0
- package/lib/commonjs/conversationParts.js.map +1 -0
- package/lib/commonjs/conversationRuntime.js +144 -0
- package/lib/commonjs/conversationRuntime.js.map +1 -0
- package/lib/commonjs/conversationStyles.js +758 -0
- package/lib/commonjs/conversationStyles.js.map +1 -0
- package/lib/commonjs/editorShellStyles.js +1032 -0
- package/lib/commonjs/editorShellStyles.js.map +1 -0
- package/lib/commonjs/editorTabs.js +42 -0
- package/lib/commonjs/editorTabs.js.map +1 -0
- package/lib/commonjs/fileTreeUtils.js +133 -0
- package/lib/commonjs/fileTreeUtils.js.map +1 -0
- package/lib/commonjs/index.js +110 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/markdownStyles.js +157 -0
- package/lib/commonjs/markdownStyles.js.map +1 -0
- package/lib/commonjs/mediaUtils.js +61 -0
- package/lib/commonjs/mediaUtils.js.map +1 -0
- package/lib/commonjs/messageActionStyles.js +45 -0
- package/lib/commonjs/messageActionStyles.js.map +1 -0
- package/lib/commonjs/messageUtils.js +55 -0
- package/lib/commonjs/messageUtils.js.map +1 -0
- package/lib/commonjs/nativeActionSheet.js +21 -0
- package/lib/commonjs/nativeActionSheet.js.map +1 -0
- package/lib/commonjs/nativeActionSheet.web.js +10 -0
- package/lib/commonjs/nativeActionSheet.web.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/paperTheme.js +59 -0
- package/lib/commonjs/paperTheme.js.map +1 -0
- package/lib/commonjs/realtimeClient.js +99 -0
- package/lib/commonjs/realtimeClient.js.map +1 -0
- package/lib/commonjs/renameAgentModalStyles.js +83 -0
- package/lib/commonjs/renameAgentModalStyles.js.map +1 -0
- package/lib/commonjs/screenParts.js +220 -0
- package/lib/commonjs/screenParts.js.map +1 -0
- package/lib/commonjs/styles.js +343 -0
- package/lib/commonjs/styles.js.map +1 -0
- package/lib/commonjs/superagentApiClient.js +613 -0
- package/lib/commonjs/superagentApiClient.js.map +1 -0
- package/lib/commonjs/types.js +6 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/useSuperagentAttachmentPicker.js +80 -0
- package/lib/commonjs/useSuperagentAttachmentPicker.js.map +1 -0
- package/lib/commonjs/useSuperagentConversation.js +216 -0
- package/lib/commonjs/useSuperagentConversation.js.map +1 -0
- package/lib/commonjs/useSuperagentRuntime.js +1207 -0
- package/lib/commonjs/useSuperagentRuntime.js.map +1 -0
- package/lib/module/AgentSettingsPanel.js +1062 -0
- package/lib/module/AgentSettingsPanel.js.map +1 -0
- package/lib/module/AgentSphereIcon.js +237 -0
- package/lib/module/AgentSphereIcon.js.map +1 -0
- package/lib/module/AttachmentPickerStatusModal.js +91 -0
- package/lib/module/AttachmentPickerStatusModal.js.map +1 -0
- package/lib/module/AttachmentPreviewStrip.js +44 -0
- package/lib/module/AttachmentPreviewStrip.js.map +1 -0
- package/lib/module/ChannelsPanel.js +728 -0
- package/lib/module/ChannelsPanel.js.map +1 -0
- package/lib/module/ConversationChat.js +214 -0
- package/lib/module/ConversationChat.js.map +1 -0
- package/lib/module/ConversationComposer.js +318 -0
- package/lib/module/ConversationComposer.js.map +1 -0
- package/lib/module/ConversationMessageList.js +100 -0
- package/lib/module/ConversationMessageList.js.map +1 -0
- package/lib/module/ConversationScreen.js +236 -0
- package/lib/module/ConversationScreen.js.map +1 -0
- package/lib/module/EditorDrawer.js +1122 -0
- package/lib/module/EditorDrawer.js.map +1 -0
- package/lib/module/EditorTabPanel.js +23 -0
- package/lib/module/EditorTabPanel.js.map +1 -0
- package/lib/module/FilesPanel.js +528 -0
- package/lib/module/FilesPanel.js.map +1 -0
- package/lib/module/MarkdownText.js +308 -0
- package/lib/module/MarkdownText.js.map +1 -0
- package/lib/module/MessageActionBar.js +85 -0
- package/lib/module/MessageActionBar.js.map +1 -0
- package/lib/module/RenameAgentModal.js +94 -0
- package/lib/module/RenameAgentModal.js.map +1 -0
- package/lib/module/ShareAgentModal.js +344 -0
- package/lib/module/ShareAgentModal.js.map +1 -0
- package/lib/module/ShareAgentModal.styles.js +232 -0
- package/lib/module/ShareAgentModal.styles.js.map +1 -0
- package/lib/module/SuperagentHomeScreen.js +311 -0
- package/lib/module/SuperagentHomeScreen.js.map +1 -0
- package/lib/module/ToolApprovalCard.js +537 -0
- package/lib/module/ToolApprovalCard.js.map +1 -0
- package/lib/module/ToolCallSummary.js +627 -0
- package/lib/module/ToolCallSummary.js.map +1 -0
- package/lib/module/agentSphereStyles.js +34 -0
- package/lib/module/agentSphereStyles.js.map +1 -0
- package/lib/module/apiClient.js +154 -0
- package/lib/module/apiClient.js.map +1 -0
- package/lib/module/attachmentFileHelpers.js +97 -0
- package/lib/module/attachmentFileHelpers.js.map +1 -0
- package/lib/module/attachmentUpload.js +82 -0
- package/lib/module/attachmentUpload.js.map +1 -0
- package/lib/module/composerStyles.js +244 -0
- package/lib/module/composerStyles.js.map +1 -0
- package/lib/module/connectorBrandIcons.js +76 -0
- package/lib/module/connectorBrandIcons.js.map +1 -0
- package/lib/module/connectorCatalog.js +373 -0
- package/lib/module/connectorCatalog.js.map +1 -0
- package/lib/module/constants.js +10 -0
- package/lib/module/constants.js.map +1 -0
- package/lib/module/conversationParts.js +266 -0
- package/lib/module/conversationParts.js.map +1 -0
- package/lib/module/conversationRuntime.js +129 -0
- package/lib/module/conversationRuntime.js.map +1 -0
- package/lib/module/conversationStyles.js +754 -0
- package/lib/module/conversationStyles.js.map +1 -0
- package/lib/module/editorShellStyles.js +1028 -0
- package/lib/module/editorShellStyles.js.map +1 -0
- package/lib/module/editorTabs.js +37 -0
- package/lib/module/editorTabs.js.map +1 -0
- package/lib/module/fileTreeUtils.js +120 -0
- package/lib/module/fileTreeUtils.js.map +1 -0
- package/lib/module/index.js +17 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/markdownStyles.js +153 -0
- package/lib/module/markdownStyles.js.map +1 -0
- package/lib/module/mediaUtils.js +53 -0
- package/lib/module/mediaUtils.js.map +1 -0
- package/lib/module/messageActionStyles.js +41 -0
- package/lib/module/messageActionStyles.js.map +1 -0
- package/lib/module/messageUtils.js +46 -0
- package/lib/module/messageUtils.js.map +1 -0
- package/lib/module/nativeActionSheet.js +17 -0
- package/lib/module/nativeActionSheet.js.map +1 -0
- package/lib/module/nativeActionSheet.web.js +6 -0
- package/lib/module/nativeActionSheet.web.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/paperTheme.js +55 -0
- package/lib/module/paperTheme.js.map +1 -0
- package/lib/module/realtimeClient.js +95 -0
- package/lib/module/realtimeClient.js.map +1 -0
- package/lib/module/renameAgentModalStyles.js +79 -0
- package/lib/module/renameAgentModalStyles.js.map +1 -0
- package/lib/module/screenParts.js +210 -0
- package/lib/module/screenParts.js.map +1 -0
- package/lib/module/styles.js +339 -0
- package/lib/module/styles.js.map +1 -0
- package/lib/module/superagentApiClient.js +609 -0
- package/lib/module/superagentApiClient.js.map +1 -0
- package/lib/module/types.js +4 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/useSuperagentAttachmentPicker.js +75 -0
- package/lib/module/useSuperagentAttachmentPicker.js.map +1 -0
- package/lib/module/useSuperagentConversation.js +212 -0
- package/lib/module/useSuperagentConversation.js.map +1 -0
- package/lib/module/useSuperagentRuntime.js +1203 -0
- package/lib/module/useSuperagentRuntime.js.map +1 -0
- package/lib/typescript/commonjs/AgentSettingsPanel.d.ts +19 -0
- package/lib/typescript/commonjs/AgentSettingsPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/AgentSphereIcon.d.ts +15 -0
- package/lib/typescript/commonjs/AgentSphereIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/AttachmentPickerStatusModal.d.ts +8 -0
- package/lib/typescript/commonjs/AttachmentPickerStatusModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/AttachmentPreviewStrip.d.ts +7 -0
- package/lib/typescript/commonjs/AttachmentPreviewStrip.d.ts.map +1 -0
- package/lib/typescript/commonjs/ChannelsPanel.d.ts +21 -0
- package/lib/typescript/commonjs/ChannelsPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ConversationChat.d.ts +22 -0
- package/lib/typescript/commonjs/ConversationChat.d.ts.map +1 -0
- package/lib/typescript/commonjs/ConversationComposer.d.ts +24 -0
- package/lib/typescript/commonjs/ConversationComposer.d.ts.map +1 -0
- package/lib/typescript/commonjs/ConversationMessageList.d.ts +17 -0
- package/lib/typescript/commonjs/ConversationMessageList.d.ts.map +1 -0
- package/lib/typescript/commonjs/ConversationScreen.d.ts +80 -0
- package/lib/typescript/commonjs/ConversationScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/EditorDrawer.d.ts +67 -0
- package/lib/typescript/commonjs/EditorDrawer.d.ts.map +1 -0
- package/lib/typescript/commonjs/EditorTabPanel.d.ts +6 -0
- package/lib/typescript/commonjs/EditorTabPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/FilesPanel.d.ts +14 -0
- package/lib/typescript/commonjs/FilesPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/MarkdownText.d.ts +10 -0
- package/lib/typescript/commonjs/MarkdownText.d.ts.map +1 -0
- package/lib/typescript/commonjs/MessageActionBar.d.ts +8 -0
- package/lib/typescript/commonjs/MessageActionBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/RenameAgentModal.d.ts +10 -0
- package/lib/typescript/commonjs/RenameAgentModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ShareAgentModal.d.ts +15 -0
- package/lib/typescript/commonjs/ShareAgentModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ShareAgentModal.styles.d.ts +229 -0
- package/lib/typescript/commonjs/ShareAgentModal.styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/SuperagentHomeScreen.d.ts +4 -0
- package/lib/typescript/commonjs/SuperagentHomeScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ToolApprovalCard.d.ts +13 -0
- package/lib/typescript/commonjs/ToolApprovalCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/ToolCallSummary.d.ts +16 -0
- package/lib/typescript/commonjs/ToolCallSummary.d.ts.map +1 -0
- package/lib/typescript/commonjs/agentSphereStyles.d.ts +31 -0
- package/lib/typescript/commonjs/agentSphereStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/apiClient.d.ts +4 -0
- package/lib/typescript/commonjs/apiClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/attachmentFileHelpers.d.ts +6 -0
- package/lib/typescript/commonjs/attachmentFileHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/attachmentUpload.d.ts +12 -0
- package/lib/typescript/commonjs/attachmentUpload.d.ts.map +1 -0
- package/lib/typescript/commonjs/composerStyles.d.ts +241 -0
- package/lib/typescript/commonjs/composerStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/connectorBrandIcons.d.ts +7 -0
- package/lib/typescript/commonjs/connectorBrandIcons.d.ts.map +1 -0
- package/lib/typescript/commonjs/connectorCatalog.d.ts +3 -0
- package/lib/typescript/commonjs/connectorCatalog.d.ts.map +1 -0
- package/lib/typescript/commonjs/constants.d.ts +4 -0
- package/lib/typescript/commonjs/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/conversationParts.d.ts +29 -0
- package/lib/typescript/commonjs/conversationParts.d.ts.map +1 -0
- package/lib/typescript/commonjs/conversationRuntime.d.ts +67 -0
- package/lib/typescript/commonjs/conversationRuntime.d.ts.map +1 -0
- package/lib/typescript/commonjs/conversationStyles.d.ts +742 -0
- package/lib/typescript/commonjs/conversationStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/editorShellStyles.d.ts +1025 -0
- package/lib/typescript/commonjs/editorShellStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/editorTabs.d.ts +11 -0
- package/lib/typescript/commonjs/editorTabs.d.ts.map +1 -0
- package/lib/typescript/commonjs/fileTreeUtils.d.ts +17 -0
- package/lib/typescript/commonjs/fileTreeUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +20 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/markdownStyles.d.ts +150 -0
- package/lib/typescript/commonjs/markdownStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/mediaUtils.d.ts +9 -0
- package/lib/typescript/commonjs/mediaUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/messageActionStyles.d.ts +38 -0
- package/lib/typescript/commonjs/messageActionStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/messageUtils.d.ts +8 -0
- package/lib/typescript/commonjs/messageUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/nativeActionSheet.d.ts +6 -0
- package/lib/typescript/commonjs/nativeActionSheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/nativeActionSheet.web.d.ts +3 -0
- package/lib/typescript/commonjs/nativeActionSheet.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/paperTheme.d.ts +3 -0
- package/lib/typescript/commonjs/paperTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/realtimeClient.d.ts +16 -0
- package/lib/typescript/commonjs/realtimeClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/renameAgentModalStyles.d.ts +76 -0
- package/lib/typescript/commonjs/renameAgentModalStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/screenParts.d.ts +31 -0
- package/lib/typescript/commonjs/screenParts.d.ts.map +1 -0
- package/lib/typescript/commonjs/styles.d.ts +336 -0
- package/lib/typescript/commonjs/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/superagentApiClient.d.ts +66 -0
- package/lib/typescript/commonjs/superagentApiClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/types.d.ts +437 -0
- package/lib/typescript/commonjs/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/useSuperagentAttachmentPicker.d.ts +30 -0
- package/lib/typescript/commonjs/useSuperagentAttachmentPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/useSuperagentConversation.d.ts +36 -0
- package/lib/typescript/commonjs/useSuperagentConversation.d.ts.map +1 -0
- package/lib/typescript/commonjs/useSuperagentRuntime.d.ts +163 -0
- package/lib/typescript/commonjs/useSuperagentRuntime.d.ts.map +1 -0
- package/lib/typescript/module/AgentSettingsPanel.d.ts +19 -0
- package/lib/typescript/module/AgentSettingsPanel.d.ts.map +1 -0
- package/lib/typescript/module/AgentSphereIcon.d.ts +15 -0
- package/lib/typescript/module/AgentSphereIcon.d.ts.map +1 -0
- package/lib/typescript/module/AttachmentPickerStatusModal.d.ts +8 -0
- package/lib/typescript/module/AttachmentPickerStatusModal.d.ts.map +1 -0
- package/lib/typescript/module/AttachmentPreviewStrip.d.ts +7 -0
- package/lib/typescript/module/AttachmentPreviewStrip.d.ts.map +1 -0
- package/lib/typescript/module/ChannelsPanel.d.ts +21 -0
- package/lib/typescript/module/ChannelsPanel.d.ts.map +1 -0
- package/lib/typescript/module/ConversationChat.d.ts +22 -0
- package/lib/typescript/module/ConversationChat.d.ts.map +1 -0
- package/lib/typescript/module/ConversationComposer.d.ts +24 -0
- package/lib/typescript/module/ConversationComposer.d.ts.map +1 -0
- package/lib/typescript/module/ConversationMessageList.d.ts +17 -0
- package/lib/typescript/module/ConversationMessageList.d.ts.map +1 -0
- package/lib/typescript/module/ConversationScreen.d.ts +80 -0
- package/lib/typescript/module/ConversationScreen.d.ts.map +1 -0
- package/lib/typescript/module/EditorDrawer.d.ts +67 -0
- package/lib/typescript/module/EditorDrawer.d.ts.map +1 -0
- package/lib/typescript/module/EditorTabPanel.d.ts +6 -0
- package/lib/typescript/module/EditorTabPanel.d.ts.map +1 -0
- package/lib/typescript/module/FilesPanel.d.ts +14 -0
- package/lib/typescript/module/FilesPanel.d.ts.map +1 -0
- package/lib/typescript/module/MarkdownText.d.ts +10 -0
- package/lib/typescript/module/MarkdownText.d.ts.map +1 -0
- package/lib/typescript/module/MessageActionBar.d.ts +8 -0
- package/lib/typescript/module/MessageActionBar.d.ts.map +1 -0
- package/lib/typescript/module/RenameAgentModal.d.ts +10 -0
- package/lib/typescript/module/RenameAgentModal.d.ts.map +1 -0
- package/lib/typescript/module/ShareAgentModal.d.ts +15 -0
- package/lib/typescript/module/ShareAgentModal.d.ts.map +1 -0
- package/lib/typescript/module/ShareAgentModal.styles.d.ts +229 -0
- package/lib/typescript/module/ShareAgentModal.styles.d.ts.map +1 -0
- package/lib/typescript/module/SuperagentHomeScreen.d.ts +4 -0
- package/lib/typescript/module/SuperagentHomeScreen.d.ts.map +1 -0
- package/lib/typescript/module/ToolApprovalCard.d.ts +13 -0
- package/lib/typescript/module/ToolApprovalCard.d.ts.map +1 -0
- package/lib/typescript/module/ToolCallSummary.d.ts +16 -0
- package/lib/typescript/module/ToolCallSummary.d.ts.map +1 -0
- package/lib/typescript/module/agentSphereStyles.d.ts +31 -0
- package/lib/typescript/module/agentSphereStyles.d.ts.map +1 -0
- package/lib/typescript/module/apiClient.d.ts +4 -0
- package/lib/typescript/module/apiClient.d.ts.map +1 -0
- package/lib/typescript/module/attachmentFileHelpers.d.ts +6 -0
- package/lib/typescript/module/attachmentFileHelpers.d.ts.map +1 -0
- package/lib/typescript/module/attachmentUpload.d.ts +12 -0
- package/lib/typescript/module/attachmentUpload.d.ts.map +1 -0
- package/lib/typescript/module/composerStyles.d.ts +241 -0
- package/lib/typescript/module/composerStyles.d.ts.map +1 -0
- package/lib/typescript/module/connectorBrandIcons.d.ts +7 -0
- package/lib/typescript/module/connectorBrandIcons.d.ts.map +1 -0
- package/lib/typescript/module/connectorCatalog.d.ts +3 -0
- package/lib/typescript/module/connectorCatalog.d.ts.map +1 -0
- package/lib/typescript/module/constants.d.ts +4 -0
- package/lib/typescript/module/constants.d.ts.map +1 -0
- package/lib/typescript/module/conversationParts.d.ts +29 -0
- package/lib/typescript/module/conversationParts.d.ts.map +1 -0
- package/lib/typescript/module/conversationRuntime.d.ts +67 -0
- package/lib/typescript/module/conversationRuntime.d.ts.map +1 -0
- package/lib/typescript/module/conversationStyles.d.ts +742 -0
- package/lib/typescript/module/conversationStyles.d.ts.map +1 -0
- package/lib/typescript/module/editorShellStyles.d.ts +1025 -0
- package/lib/typescript/module/editorShellStyles.d.ts.map +1 -0
- package/lib/typescript/module/editorTabs.d.ts +11 -0
- package/lib/typescript/module/editorTabs.d.ts.map +1 -0
- package/lib/typescript/module/fileTreeUtils.d.ts +17 -0
- package/lib/typescript/module/fileTreeUtils.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +20 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/markdownStyles.d.ts +150 -0
- package/lib/typescript/module/markdownStyles.d.ts.map +1 -0
- package/lib/typescript/module/mediaUtils.d.ts +9 -0
- package/lib/typescript/module/mediaUtils.d.ts.map +1 -0
- package/lib/typescript/module/messageActionStyles.d.ts +38 -0
- package/lib/typescript/module/messageActionStyles.d.ts.map +1 -0
- package/lib/typescript/module/messageUtils.d.ts +8 -0
- package/lib/typescript/module/messageUtils.d.ts.map +1 -0
- package/lib/typescript/module/nativeActionSheet.d.ts +6 -0
- package/lib/typescript/module/nativeActionSheet.d.ts.map +1 -0
- package/lib/typescript/module/nativeActionSheet.web.d.ts +3 -0
- package/lib/typescript/module/nativeActionSheet.web.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/paperTheme.d.ts +3 -0
- package/lib/typescript/module/paperTheme.d.ts.map +1 -0
- package/lib/typescript/module/realtimeClient.d.ts +16 -0
- package/lib/typescript/module/realtimeClient.d.ts.map +1 -0
- package/lib/typescript/module/renameAgentModalStyles.d.ts +76 -0
- package/lib/typescript/module/renameAgentModalStyles.d.ts.map +1 -0
- package/lib/typescript/module/screenParts.d.ts +31 -0
- package/lib/typescript/module/screenParts.d.ts.map +1 -0
- package/lib/typescript/module/styles.d.ts +336 -0
- package/lib/typescript/module/styles.d.ts.map +1 -0
- package/lib/typescript/module/superagentApiClient.d.ts +66 -0
- package/lib/typescript/module/superagentApiClient.d.ts.map +1 -0
- package/lib/typescript/module/types.d.ts +437 -0
- package/lib/typescript/module/types.d.ts.map +1 -0
- package/lib/typescript/module/useSuperagentAttachmentPicker.d.ts +30 -0
- package/lib/typescript/module/useSuperagentAttachmentPicker.d.ts.map +1 -0
- package/lib/typescript/module/useSuperagentConversation.d.ts +36 -0
- package/lib/typescript/module/useSuperagentConversation.d.ts.map +1 -0
- package/lib/typescript/module/useSuperagentRuntime.d.ts +163 -0
- package/lib/typescript/module/useSuperagentRuntime.d.ts.map +1 -0
- package/package.json +87 -0
- package/src/AgentSettingsPanel.tsx +1122 -0
- package/src/AgentSphereIcon.tsx +170 -0
- package/src/AttachmentPickerStatusModal.tsx +80 -0
- package/src/AttachmentPreviewStrip.tsx +38 -0
- package/src/ChannelsPanel.tsx +705 -0
- package/src/ConversationChat.tsx +245 -0
- package/src/ConversationComposer.tsx +368 -0
- package/src/ConversationMessageList.tsx +140 -0
- package/src/ConversationScreen.tsx +320 -0
- package/src/EditorDrawer.tsx +1297 -0
- package/src/EditorTabPanel.tsx +19 -0
- package/src/FilesPanel.tsx +577 -0
- package/src/MarkdownText.tsx +317 -0
- package/src/MessageActionBar.tsx +126 -0
- package/src/RenameAgentModal.tsx +107 -0
- package/src/ShareAgentModal.styles.ts +95 -0
- package/src/ShareAgentModal.tsx +320 -0
- package/src/SuperagentHomeScreen.tsx +318 -0
- package/src/ToolApprovalCard.tsx +592 -0
- package/src/ToolCallSummary.tsx +599 -0
- package/src/agentSphereStyles.ts +25 -0
- package/src/apiClient.ts +189 -0
- package/src/attachmentFileHelpers.ts +109 -0
- package/src/attachmentUpload.ts +112 -0
- package/src/composerStyles.ts +167 -0
- package/src/connectorBrandIcons.tsx +69 -0
- package/src/connectorCatalog.ts +414 -0
- package/src/constants.ts +9 -0
- package/src/conversationParts.tsx +307 -0
- package/src/conversationRuntime.ts +171 -0
- package/src/conversationStyles.ts +412 -0
- package/src/editorShellStyles.ts +1023 -0
- package/src/editorTabs.ts +26 -0
- package/src/fileTreeUtils.ts +165 -0
- package/src/index.ts +110 -0
- package/src/markdownStyles.ts +64 -0
- package/src/mediaUtils.ts +75 -0
- package/src/messageActionStyles.ts +26 -0
- package/src/messageUtils.ts +58 -0
- package/src/nativeActionSheet.ts +25 -0
- package/src/nativeActionSheet.web.ts +5 -0
- package/src/paperTheme.ts +52 -0
- package/src/realtimeClient.ts +149 -0
- package/src/renameAgentModalStyles.ts +77 -0
- package/src/screenParts.tsx +185 -0
- package/src/styles.ts +190 -0
- package/src/superagentApiClient.ts +895 -0
- package/src/types.ts +514 -0
- package/src/useSuperagentAttachmentPicker.tsx +117 -0
- package/src/useSuperagentConversation.ts +242 -0
- package/src/useSuperagentRuntime.ts +1371 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { type SuperagentSocketLike } from './realtimeClient';
|
|
2
|
+
import { type SuperagentAgent, type SuperagentAgentActionInput, type SuperagentAutomation, type SuperagentAutomationActionInput, type SuperagentAutomationCreditsSummary, type SuperagentChannelActionInput, type SuperagentChannelId, type SuperagentChannelStatus, type SuperagentChannelUrlActionInput, type SuperagentCollaborator, type SuperagentConnector, type SuperagentConnectorActionInput, type SuperagentShareAgentInput, type SuperagentIMessageCodeShareInput, type SuperagentLineCodeShareInput, type SuperagentLiveVoiceInput, type SuperagentModelUpdateInput, type SuperagentOpenWorkspaceMembersInput, type SuperagentRealtimeClient, type SuperagentRenameAgentInput, type SuperagentSandboxFileActionInput, type SuperagentSandboxFileSaveInput, type SuperagentSandboxFileUploadInput, type SuperagentSecret, type SuperagentSecretDeleteInput, type SuperagentSecretSaveInput, type SuperagentTelegramSetupInput, type SuperagentRoute, type SuperagentToolPermissionsUpdateInput } from './types';
|
|
3
|
+
export type SuperagentExternalAuthCallbackStatus = 'success' | 'error' | 'unknown';
|
|
4
|
+
export type SuperagentExternalAuthCallbackEvent = {
|
|
5
|
+
callbackUrl: string;
|
|
6
|
+
ok: boolean;
|
|
7
|
+
status: SuperagentExternalAuthCallbackStatus;
|
|
8
|
+
};
|
|
9
|
+
export type SuperagentRuntimeConfig = {
|
|
10
|
+
baseUrl: string;
|
|
11
|
+
currentUserAvatarUrl?: string | null;
|
|
12
|
+
currentUserId?: string | null;
|
|
13
|
+
currentUserName?: string;
|
|
14
|
+
getAccessToken: () => Promise<string | null | undefined> | string | null | undefined;
|
|
15
|
+
getHeaders?: () => Promise<Record<string, string> | undefined> | Record<string, string> | undefined;
|
|
16
|
+
webUrl?: string;
|
|
17
|
+
};
|
|
18
|
+
export type SuperagentSandboxPickedFile = {
|
|
19
|
+
content: string;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
export type SuperagentRealtimeSocketFactoryInput = {
|
|
23
|
+
appId: string;
|
|
24
|
+
baseUrl: string;
|
|
25
|
+
token: string;
|
|
26
|
+
};
|
|
27
|
+
export type SuperagentRuntimeSocket = SuperagentSocketLike & {
|
|
28
|
+
disconnect?: () => void;
|
|
29
|
+
};
|
|
30
|
+
export type SuperagentLiveAudioChunk = {
|
|
31
|
+
data: string;
|
|
32
|
+
mimeType?: string;
|
|
33
|
+
};
|
|
34
|
+
export type SuperagentLiveAudioCapture = {
|
|
35
|
+
stop?: () => Promise<void> | void;
|
|
36
|
+
};
|
|
37
|
+
export type SuperagentLiveAudioCaptureInput = {
|
|
38
|
+
mimeType: string;
|
|
39
|
+
onAudioChunk: (chunk: SuperagentLiveAudioChunk) => void;
|
|
40
|
+
onError?: (error: Error) => void;
|
|
41
|
+
onStop?: () => void;
|
|
42
|
+
sampleRate: number;
|
|
43
|
+
};
|
|
44
|
+
export type SuperagentLiveVoiceAudioAdapters = {
|
|
45
|
+
playAudioChunk?: (chunk: SuperagentLiveAudioChunk) => Promise<void> | void;
|
|
46
|
+
prepareAudioSession?: () => Promise<void> | void;
|
|
47
|
+
requestMicrophonePermission?: () => Promise<boolean> | boolean;
|
|
48
|
+
startAudioCapture: (input: SuperagentLiveAudioCaptureInput) => Promise<SuperagentLiveAudioCapture | void> | SuperagentLiveAudioCapture | void;
|
|
49
|
+
stopAudioCapture?: () => Promise<void> | void;
|
|
50
|
+
stopAudioPlayback?: () => Promise<void> | void;
|
|
51
|
+
};
|
|
52
|
+
export type SuperagentNativeRuntimeAdapters = {
|
|
53
|
+
alert?: (title: string, message?: string) => void;
|
|
54
|
+
completeExternalAuthCallback?: (url: string) => Promise<SuperagentExternalAuthCallbackEvent | null>;
|
|
55
|
+
confirm?: (input: {
|
|
56
|
+
confirmText?: string;
|
|
57
|
+
destructive?: boolean;
|
|
58
|
+
message?: string;
|
|
59
|
+
title: string;
|
|
60
|
+
}) => Promise<boolean> | boolean;
|
|
61
|
+
createRealtimeSocket?: (input: SuperagentRealtimeSocketFactoryInput) => SuperagentRuntimeSocket | null | undefined;
|
|
62
|
+
isAttachmentPickerCancel?: (error: unknown) => boolean;
|
|
63
|
+
isExternalAuthCallbackUrl?: (url: string) => boolean;
|
|
64
|
+
liveVoiceAudio?: SuperagentLiveVoiceAudioAdapters;
|
|
65
|
+
onAgentMessageDone?: () => Promise<void> | void;
|
|
66
|
+
openUrl?: (url: string) => Promise<void> | void;
|
|
67
|
+
openWebUrl?: (url: string) => Promise<void> | void;
|
|
68
|
+
pickSandboxFiles?: () => Promise<SuperagentSandboxPickedFile[] | null | undefined> | SuperagentSandboxPickedFile[] | null | undefined;
|
|
69
|
+
share?: (input: {
|
|
70
|
+
message: string;
|
|
71
|
+
title?: string;
|
|
72
|
+
url?: string;
|
|
73
|
+
}) => Promise<void> | void;
|
|
74
|
+
subscribeToAppResume?: (listener: () => void) => () => void;
|
|
75
|
+
subscribeToDeepLinks?: (listener: (url: string) => void) => () => void;
|
|
76
|
+
subscribeToExternalAuthCallbacks?: (listener: (event: SuperagentExternalAuthCallbackEvent) => void) => () => void;
|
|
77
|
+
};
|
|
78
|
+
type UseSuperagentRuntimeParams = {
|
|
79
|
+
config: SuperagentRuntimeConfig;
|
|
80
|
+
initialAgentId?: string;
|
|
81
|
+
nativeAdapters?: SuperagentNativeRuntimeAdapters;
|
|
82
|
+
};
|
|
83
|
+
export declare function useSuperagentRuntime({ config, initialAgentId, nativeAdapters, }: UseSuperagentRuntimeParams): {
|
|
84
|
+
agents: SuperagentAgent[];
|
|
85
|
+
apiClient: import("./types").SuperagentNativeClient | undefined;
|
|
86
|
+
availableConnectors: SuperagentConnector[];
|
|
87
|
+
automationCredits: Record<string, SuperagentAutomationCreditsSummary>;
|
|
88
|
+
automations: SuperagentAutomation[];
|
|
89
|
+
channelStatus: SuperagentChannelStatus;
|
|
90
|
+
collaborators: SuperagentCollaborator[];
|
|
91
|
+
connectingChannelId: SuperagentChannelId | null;
|
|
92
|
+
connectingConnectorId: string | null;
|
|
93
|
+
connectedConnectors: SuperagentConnector[];
|
|
94
|
+
currentRoute: SuperagentRoute;
|
|
95
|
+
currentUserAvatarUrl: string | null | undefined;
|
|
96
|
+
currentUserName: string | undefined;
|
|
97
|
+
fileLoadError: string | null;
|
|
98
|
+
fileLoadFailed: boolean;
|
|
99
|
+
filePaths: string[];
|
|
100
|
+
isLoadingAgentSettings: boolean;
|
|
101
|
+
isLoadingChannels: boolean;
|
|
102
|
+
isLoadingCollaborators: boolean;
|
|
103
|
+
isLoadingConnectors: boolean;
|
|
104
|
+
isLoadingAutomations: boolean;
|
|
105
|
+
isLoadingFiles: boolean;
|
|
106
|
+
isLoading: boolean;
|
|
107
|
+
latestMessages: never[];
|
|
108
|
+
loadError: string | null;
|
|
109
|
+
messagesByAgentId: {};
|
|
110
|
+
onAgentMessageDone: (() => Promise<void> | void) | undefined;
|
|
111
|
+
onCancelConnectorConnection: ({ agentId, connectorId }: {
|
|
112
|
+
agentId: string;
|
|
113
|
+
connectorId: string;
|
|
114
|
+
}) => void;
|
|
115
|
+
onArchiveAutomation: ({ agentId, automation }: SuperagentAutomationActionInput) => Promise<void>;
|
|
116
|
+
onCloneAgent: ({ agentId }: SuperagentAgentActionInput) => void;
|
|
117
|
+
onConnectConnector: ({ accessMode, agentId, connectorId, forceReconnect, scopes, }: SuperagentConnectorActionInput) => Promise<boolean>;
|
|
118
|
+
onCreateAgent: () => Promise<SuperagentAgent>;
|
|
119
|
+
onDeleteAgent: ({ agentId }: SuperagentAgentActionInput) => Promise<void>;
|
|
120
|
+
onDeleteAutomation: ({ agentId, automation }: SuperagentAutomationActionInput) => Promise<void>;
|
|
121
|
+
onDeleteSecret: ({ agentId, name }: SuperagentSecretDeleteInput) => Promise<void>;
|
|
122
|
+
onDisconnectConnector: ({ agentId, connectorId }: SuperagentConnectorActionInput) => Promise<void>;
|
|
123
|
+
onDisconnectIMessage: ({ agentId }: SuperagentChannelActionInput) => Promise<void>;
|
|
124
|
+
onDisconnectTelegram: ({ agentId }: SuperagentChannelActionInput) => Promise<void>;
|
|
125
|
+
onEditAutomation: ({ agentId }: SuperagentAutomationActionInput) => void;
|
|
126
|
+
onGenerateLineCode: ({ agentId }: SuperagentChannelActionInput) => Promise<void>;
|
|
127
|
+
onGenerateIMessageCode: ({ agentId }: SuperagentChannelActionInput) => Promise<import("./types").SuperagentIMessageActivation>;
|
|
128
|
+
onOpenIMessage: ({ code, phoneNumber }: SuperagentIMessageCodeShareInput) => Promise<void>;
|
|
129
|
+
onOpenLine: ({ url }: SuperagentChannelUrlActionInput) => Promise<void>;
|
|
130
|
+
onOpenAgent: (agentId: string) => void;
|
|
131
|
+
onOpenTelegram: ({ url }: SuperagentChannelUrlActionInput) => Promise<void>;
|
|
132
|
+
onOpenWhatsApp: ({ agentId }: SuperagentChannelActionInput) => Promise<void>;
|
|
133
|
+
onOpenSandboxFile: ({ agentId, path }: SuperagentSandboxFileActionInput) => Promise<import("./types").SuperagentSandboxFileContent>;
|
|
134
|
+
onOpenWorkspaceMembers: ({ organizationId }: SuperagentOpenWorkspaceMembersInput) => void;
|
|
135
|
+
onRemoveConnector: ({ agentId, connectorId }: SuperagentConnectorActionInput) => Promise<void>;
|
|
136
|
+
onRenameAgent: ({ agentId, name }: SuperagentRenameAgentInput) => Promise<SuperagentAgent>;
|
|
137
|
+
onRefreshAgentSettings: (agentId: string) => Promise<void>;
|
|
138
|
+
onRefreshAutomations: (agentId: string) => Promise<void>;
|
|
139
|
+
onRefreshCollaborators: (agentId: string) => Promise<void>;
|
|
140
|
+
onRefreshChannels: (agentId: string) => Promise<void>;
|
|
141
|
+
onRefreshFiles: (agentId: string) => Promise<void>;
|
|
142
|
+
onRestoreAutomation: ({ agentId, automation }: SuperagentAutomationActionInput) => Promise<void>;
|
|
143
|
+
onRouteChange: (route: SuperagentRoute) => void;
|
|
144
|
+
onRunAutomationNow: ({ agentId, automation }: SuperagentAutomationActionInput) => Promise<void>;
|
|
145
|
+
onSaveSandboxFile: ({ agentId, content, path }: SuperagentSandboxFileSaveInput) => Promise<void>;
|
|
146
|
+
onSaveSecret: ({ agentId, name, value }: SuperagentSecretSaveInput) => Promise<void>;
|
|
147
|
+
onShareAgent: ({ agentId, addAsGuest, emails }: SuperagentShareAgentInput) => Promise<import("./types").SuperagentInviteCollaboratorsResult>;
|
|
148
|
+
onShareAgentLink: ({ agentId }: SuperagentAgentActionInput) => Promise<void>;
|
|
149
|
+
onShareIMessageCode: ({ code, phoneNumber }: SuperagentIMessageCodeShareInput) => Promise<void>;
|
|
150
|
+
onShareLineCode: ({ addFriendUrl, code }: SuperagentLineCodeShareInput) => Promise<void>;
|
|
151
|
+
onStartLiveVoice: SuperagentLiveVoiceInput;
|
|
152
|
+
onSetupTelegram: ({ agentId, token }: SuperagentTelegramSetupInput) => Promise<void>;
|
|
153
|
+
onToggleAutomation: ({ agentId, automation }: SuperagentAutomationActionInput) => Promise<void>;
|
|
154
|
+
onUpdateAgentModel: ({ agentId, model }: SuperagentModelUpdateInput) => Promise<void>;
|
|
155
|
+
onUpdateToolPermissions: ({ agentId, config }: SuperagentToolPermissionsUpdateInput) => Promise<void>;
|
|
156
|
+
onUploadSandboxFiles: ({ agentId }: SuperagentSandboxFileUploadInput) => Promise<{
|
|
157
|
+
path: string;
|
|
158
|
+
}[]>;
|
|
159
|
+
realtimeClient: SuperagentRealtimeClient | undefined;
|
|
160
|
+
secrets: SuperagentSecret[];
|
|
161
|
+
};
|
|
162
|
+
export {};
|
|
163
|
+
//# sourceMappingURL=useSuperagentRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSuperagentRuntime.d.ts","sourceRoot":"","sources":["../../../src/useSuperagentRuntime.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC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DAyZ5B,8BAA8B;uCA7ezC,0BAA0B;sCA5P9B,MAAM;oCA2DL,MAAM;sCA/CP,MAAM;iCAwBX,MAAM;8BArDT,MAAM;mDA+ZkB,+BAA+B;2BAqF3D,eAAe;kDAjDY,+BAA+B;oDAiB7B,8BAA8B;6CAzKrC,yBAAyB;oDA4BlB,yBAAyB;oCAMzC,0BAA0B;iDA+Ub,gCAAgC;8CARnC,4BAA4B;;0CA5HhC,4BAA4B;kDAjJpB,+BAA+B;6CAlHpC,0BAA0B;mDAWpB,oCAAoC;wCA8L/C,gCAAgC;;;;;EAyX5F"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentAgent, SuperagentConnector, SuperagentHomeScreenProps, SuperagentSecret } from './types';
|
|
3
|
+
export declare function AgentSettingsPanel({ agent, collaborators, connectedConnectors, isLoading, isLoadingCollaborators, onCloneAgent, onDeleteAgent, onDeleteSecret, onRefreshAgentSettings, onSaveSecret, onShareAgentLink, onUpdateAgentModel, onUpdateToolPermissions, secrets, }: {
|
|
4
|
+
agent: SuperagentAgent;
|
|
5
|
+
collaborators?: SuperagentHomeScreenProps['collaborators'];
|
|
6
|
+
connectedConnectors?: SuperagentConnector[];
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
isLoadingCollaborators?: boolean;
|
|
9
|
+
onCloneAgent?: SuperagentHomeScreenProps['onCloneAgent'];
|
|
10
|
+
onDeleteAgent?: SuperagentHomeScreenProps['onDeleteAgent'];
|
|
11
|
+
onDeleteSecret?: SuperagentHomeScreenProps['onDeleteSecret'];
|
|
12
|
+
onRefreshAgentSettings?: SuperagentHomeScreenProps['onRefreshAgentSettings'];
|
|
13
|
+
onSaveSecret?: SuperagentHomeScreenProps['onSaveSecret'];
|
|
14
|
+
onShareAgentLink?: SuperagentHomeScreenProps['onShareAgentLink'];
|
|
15
|
+
onUpdateAgentModel?: SuperagentHomeScreenProps['onUpdateAgentModel'];
|
|
16
|
+
onUpdateToolPermissions?: SuperagentHomeScreenProps['onUpdateToolPermissions'];
|
|
17
|
+
secrets?: SuperagentSecret[];
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
//# sourceMappingURL=AgentSettingsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentSettingsPanel.d.ts","sourceRoot":"","sources":["../../../src/AgentSettingsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAmC5D,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAEzB,gBAAgB,EAEjB,MAAM,SAAS,CAAC;AA6CjB,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,aAAkB,EAClB,mBAAwB,EACxB,SAAS,EACT,sBAAsB,EACtB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,OAAY,GACb,EAAE;IACD,KAAK,EAAE,eAAe,CAAC;IACvB,aAAa,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAC;IAC3D,mBAAmB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,YAAY,CAAC,EAAE,yBAAyB,CAAC,cAAc,CAAC,CAAC;IACzD,aAAa,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAC;IAC3D,cAAc,CAAC,EAAE,yBAAyB,CAAC,gBAAgB,CAAC,CAAC;IAC7D,sBAAsB,CAAC,EAAE,yBAAyB,CAAC,wBAAwB,CAAC,CAAC;IAC7E,YAAY,CAAC,EAAE,yBAAyB,CAAC,cAAc,CAAC,CAAC;IACzD,gBAAgB,CAAC,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,CAAC;IACjE,kBAAkB,CAAC,EAAE,yBAAyB,CAAC,oBAAoB,CAAC,CAAC;IACrE,uBAAuB,CAAC,EAAE,yBAAyB,CAAC,yBAAyB,CAAC,CAAC;IAC/E,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B,qBAoYA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentAgent } from './types';
|
|
3
|
+
declare const SIZES: {
|
|
4
|
+
header: number;
|
|
5
|
+
md: number;
|
|
6
|
+
sm: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function AgentSphereIcon({ agent, isUser, size, userAvatarUrl, }: {
|
|
9
|
+
agent?: SuperagentAgent;
|
|
10
|
+
isUser?: boolean;
|
|
11
|
+
size?: keyof typeof SIZES;
|
|
12
|
+
userAvatarUrl?: string | null;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=AgentSphereIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentSphereIcon.d.ts","sourceRoot":"","sources":["../../../src/AgentSphereIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,QAAA,MAAM,KAAK;;;;CAAiC,CAAC;AAU7C,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,MAAc,EACd,IAAW,EACX,aAAa,GACd,EAAE;IACD,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,OAAO,KAAK,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,qBA0EA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function AttachmentPickerStatusModal({ isError, message, onClose, title, }: {
|
|
3
|
+
isError?: boolean;
|
|
4
|
+
message: string;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
title: string;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=AttachmentPickerStatusModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentPickerStatusModal.d.ts","sourceRoot":"","sources":["../../../src/AttachmentPickerStatusModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,wBAAgB,2BAA2B,CAAC,EAC1C,OAAO,EACP,OAAO,EACP,OAAO,EACP,KAAK,GACN,EAAE;IACD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,qBAiBA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentMediaAttachment } from './types';
|
|
3
|
+
export declare function AttachmentPreviewStrip({ attachments, onRemove, }: {
|
|
4
|
+
attachments: SuperagentMediaAttachment[];
|
|
5
|
+
onRemove: (index: number) => void;
|
|
6
|
+
}): React.JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=AttachmentPreviewStrip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentPreviewStrip.d.ts","sourceRoot":"","sources":["../../../src/AttachmentPreviewStrip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,wBAAgB,sBAAsB,CAAC,EACrC,WAAW,EACX,QAAQ,GACT,EAAE;IACD,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACzC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,4BAwBA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentAgent, SuperagentChannelId, SuperagentChannelStatus, SuperagentHomeScreenProps } from './types';
|
|
3
|
+
export declare function ChannelsPanel({ agent, channelStatus, connectingChannelId, isLoading, onDisconnectTelegram, onDisconnectIMessage, onGenerateIMessageCode, onGenerateLineCode, onOpenIMessage, onOpenLine, onOpenTelegram, onOpenWhatsApp, onRefreshChannels, onSetupTelegram, onShareIMessageCode, onShareLineCode, }: {
|
|
4
|
+
agent: SuperagentAgent;
|
|
5
|
+
channelStatus?: SuperagentChannelStatus;
|
|
6
|
+
connectingChannelId?: SuperagentChannelId | null;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
onDisconnectTelegram?: SuperagentHomeScreenProps['onDisconnectTelegram'];
|
|
9
|
+
onDisconnectIMessage?: SuperagentHomeScreenProps['onDisconnectIMessage'];
|
|
10
|
+
onGenerateIMessageCode?: SuperagentHomeScreenProps['onGenerateIMessageCode'];
|
|
11
|
+
onGenerateLineCode?: SuperagentHomeScreenProps['onGenerateLineCode'];
|
|
12
|
+
onOpenIMessage?: SuperagentHomeScreenProps['onOpenIMessage'];
|
|
13
|
+
onOpenLine?: SuperagentHomeScreenProps['onOpenLine'];
|
|
14
|
+
onOpenTelegram?: SuperagentHomeScreenProps['onOpenTelegram'];
|
|
15
|
+
onOpenWhatsApp?: SuperagentHomeScreenProps['onOpenWhatsApp'];
|
|
16
|
+
onRefreshChannels?: SuperagentHomeScreenProps['onRefreshChannels'];
|
|
17
|
+
onSetupTelegram?: SuperagentHomeScreenProps['onSetupTelegram'];
|
|
18
|
+
onShareIMessageCode?: SuperagentHomeScreenProps['onShareIMessageCode'];
|
|
19
|
+
onShareLineCode?: SuperagentHomeScreenProps['onShareLineCode'];
|
|
20
|
+
}): React.JSX.Element;
|
|
21
|
+
//# sourceMappingURL=ChannelsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelsPan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AAC,qBAAqB,CAAC,CAAC;IACvE,eAAe,CAAC,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;CAChE,qBAwEA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentAgent, SuperagentConnector, SuperagentConnectorActionInput, SuperagentCopyMessageInput, SuperagentLiveVoiceInput, SuperagentMarkdownRenderer, SuperagentMediaPicker, SuperagentToolRenderers, SuperagentVoiceInput } from './types';
|
|
3
|
+
import type { useSuperagentConversation } from './useSuperagentConversation';
|
|
4
|
+
type ConversationState = ReturnType<typeof useSuperagentConversation>;
|
|
5
|
+
export declare function ConversationChat({ agent, availableConnectors, conversation, currentUserAvatarUrl, onConnectConnector, onCopyMessage, onImportFromDrive, onPickFiles, onPickPhotos, onStartLiveVoice, onStartVoiceInput, onTakePhoto, renderMarkdown, toolRenderers, }: {
|
|
6
|
+
agent: SuperagentAgent;
|
|
7
|
+
availableConnectors?: SuperagentConnector[];
|
|
8
|
+
conversation: ConversationState;
|
|
9
|
+
currentUserAvatarUrl?: string | null;
|
|
10
|
+
onConnectConnector?: (input: SuperagentConnectorActionInput) => Promise<boolean | void> | boolean | void;
|
|
11
|
+
onImportFromDrive?: SuperagentMediaPicker;
|
|
12
|
+
onCopyMessage?: SuperagentCopyMessageInput;
|
|
13
|
+
onPickFiles?: SuperagentMediaPicker;
|
|
14
|
+
onPickPhotos?: SuperagentMediaPicker;
|
|
15
|
+
onStartLiveVoice?: SuperagentLiveVoiceInput;
|
|
16
|
+
onStartVoiceInput?: SuperagentVoiceInput;
|
|
17
|
+
onTakePhoto?: SuperagentMediaPicker;
|
|
18
|
+
renderMarkdown?: SuperagentMarkdownRenderer;
|
|
19
|
+
toolRenderers?: SuperagentToolRenderers;
|
|
20
|
+
}): React.JSX.Element;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=ConversationChat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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5C,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC,qBAmIA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentLiveVoiceInput, SuperagentMediaActionContext, SuperagentMediaAttachment, SuperagentMediaPicker, SuperagentReplyTo, SuperagentVoiceInput } from './types';
|
|
3
|
+
export declare function ConversationComposer({ attachments, canSend, context, draft, isSending, onAddAttachments, onAppendTranscript, onChangeDraft, onClearReply, onImportFromDrive, onPickFiles, onPickPhotos, onRemoveAttachment, onSend, onStartLiveVoice, onStartVoiceInput, onStop, onTakePhoto, replyTo, }: {
|
|
4
|
+
attachments: SuperagentMediaAttachment[];
|
|
5
|
+
canSend: boolean;
|
|
6
|
+
context: SuperagentMediaActionContext;
|
|
7
|
+
draft: string;
|
|
8
|
+
isSending: boolean;
|
|
9
|
+
onAddAttachments: (attachments: SuperagentMediaAttachment[]) => void;
|
|
10
|
+
onAppendTranscript: (transcript: string) => void;
|
|
11
|
+
onChangeDraft: (value: string) => void;
|
|
12
|
+
onClearReply: () => void;
|
|
13
|
+
onImportFromDrive?: SuperagentMediaPicker;
|
|
14
|
+
onPickFiles?: SuperagentMediaPicker;
|
|
15
|
+
onPickPhotos?: SuperagentMediaPicker;
|
|
16
|
+
onRemoveAttachment: (index: number) => void;
|
|
17
|
+
onSend: () => void;
|
|
18
|
+
onStartLiveVoice?: SuperagentLiveVoiceInput;
|
|
19
|
+
onStartVoiceInput?: SuperagentVoiceInput;
|
|
20
|
+
onStop: () => void;
|
|
21
|
+
onTakePhoto?: SuperagentMediaPicker;
|
|
22
|
+
replyTo: SuperagentReplyTo | null;
|
|
23
|
+
}): React.JSX.Element;
|
|
24
|
+
//# sourceMappingURL=ConversationComposer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationComposer.d.ts","sourceRoot":"","sources":["../../../src/ConversationComposer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAA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,qBAqHA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentAgent, SuperagentConnector, SuperagentConnectorActionInput, SuperagentConversation, SuperagentCopyMessageInput, SuperagentMarkdownRenderer, SuperagentMessage, SuperagentToolRenderers } from './types';
|
|
3
|
+
export declare function ConversationMessageList({ agent, availableConnectors, conversationId, currentUserAvatarUrl, messages, onConnectConnector, onCopyMessage, onDeleteMessage, onReplyMessage, renderMarkdown, submitToolCallInput, toolRenderers, }: {
|
|
4
|
+
agent: SuperagentAgent;
|
|
5
|
+
availableConnectors?: SuperagentConnector[];
|
|
6
|
+
conversationId: string | null;
|
|
7
|
+
currentUserAvatarUrl?: string | null;
|
|
8
|
+
messages: SuperagentMessage[];
|
|
9
|
+
onConnectConnector?: (input: SuperagentConnectorActionInput) => Promise<boolean | void> | boolean | void;
|
|
10
|
+
onCopyMessage?: SuperagentCopyMessageInput;
|
|
11
|
+
onDeleteMessage?: (messageId: string) => Promise<boolean> | boolean;
|
|
12
|
+
onReplyMessage?: (message: SuperagentMessage) => void;
|
|
13
|
+
renderMarkdown?: SuperagentMarkdownRenderer;
|
|
14
|
+
submitToolCallInput?: (toolCallId: string, approve: boolean, extraUserInput?: unknown, originRequestId?: string) => Promise<SuperagentConversation | null>;
|
|
15
|
+
toolRenderers?: SuperagentToolRenderers;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=ConversationMessageList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationMessageList.d.ts","sourceRoot":"","sources":["../../../src/ConversationMessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,QAAQ,EACR,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,aAAa,GACd,EAAE;IACD,KAAK,EAAE,eAAe,CAAC;IACvB,mBAAmB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC5C,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC;IACzG,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAC3C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACpE,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,0BAA0B,CAAC;IAC5C,mBAAmB,CAAC,EAAE,CACpB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,OAAO,EAChB,cAAc,CAAC,EAAE,OAAO,EACxB,eAAe,CAAC,EAAE,MAAM,KACrB,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;IAC5C,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC,qBA4CA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentAgent, SuperagentHomeScreenProps, SuperagentMessage } from './types';
|
|
3
|
+
export declare function ConversationScreen({ agent, apiClient, automations, automationCredits, availableConnectors, channelStatus, collaborators, connectingChannelId, connectedConnectors, connectingConnectorId, currentUserAvatarUrl, fileLoadError, fileLoadFailed, filePaths, isLoadingAgentSettings, isLoadingAutomations, isLoadingCollaborators, isLoadingConnectors, isLoadingFiles, messages, isSending, onAgentMessageDone, onCancelConnectorConnection, onArchiveAutomation, onCloneAgent, onCopyMessage, onBack, onConnectConnector, onDeleteAgent, onDeleteAutomation, onDeleteSecret, onDisconnectConnector, onDisconnectIMessage, onDisconnectTelegram, onEditAutomation, onGenerateLineCode, onGenerateIMessageCode, onImportFromDrive, onOpenIMessage, onOpenLine, onOpenTelegram, onOpenWhatsApp, onOpenSandboxFile, onOpenWorkspaceMembers, onPickFiles, onPickPhotos, onRemoveConnector, onRenameAgent, onRefreshAgentSettings, onRefreshAutomations, onRefreshChannels, onRefreshCollaborators, onRefreshFiles, onRestoreAutomation, onRunAutomationNow, onSaveSandboxFile, onSaveSecret, onSendMessage, onShareAgent, onShareAgentLink, onShareIMessageCode, onShareLineCode, onStartLiveVoice, onStartVoiceInput, onSetupTelegram, onTakePhoto, onToggleAutomation, onUpdateAgentModel, onUpdateToolPermissions, onUploadSandboxFiles, realtimeClient, renderMarkdown, secrets, toolRenderers, }: {
|
|
4
|
+
agent: SuperagentAgent;
|
|
5
|
+
apiClient: SuperagentHomeScreenProps['apiClient'];
|
|
6
|
+
automations: SuperagentHomeScreenProps['automations'];
|
|
7
|
+
automationCredits: SuperagentHomeScreenProps['automationCredits'];
|
|
8
|
+
availableConnectors: SuperagentHomeScreenProps['availableConnectors'];
|
|
9
|
+
channelStatus: SuperagentHomeScreenProps['channelStatus'];
|
|
10
|
+
collaborators: SuperagentHomeScreenProps['collaborators'];
|
|
11
|
+
connectingChannelId: SuperagentHomeScreenProps['connectingChannelId'];
|
|
12
|
+
connectedConnectors: SuperagentHomeScreenProps['connectedConnectors'];
|
|
13
|
+
connectingConnectorId: SuperagentHomeScreenProps['connectingConnectorId'];
|
|
14
|
+
currentUserAvatarUrl: SuperagentHomeScreenProps['currentUserAvatarUrl'];
|
|
15
|
+
fileLoadError: SuperagentHomeScreenProps['fileLoadError'];
|
|
16
|
+
fileLoadFailed: SuperagentHomeScreenProps['fileLoadFailed'];
|
|
17
|
+
filePaths: SuperagentHomeScreenProps['filePaths'];
|
|
18
|
+
isLoadingAgentSettings: SuperagentHomeScreenProps['isLoadingAgentSettings'];
|
|
19
|
+
isLoadingAutomations: SuperagentHomeScreenProps['isLoadingAutomations'];
|
|
20
|
+
isLoadingChannels: SuperagentHomeScreenProps['isLoadingChannels'];
|
|
21
|
+
isLoadingCollaborators: SuperagentHomeScreenProps['isLoadingCollaborators'];
|
|
22
|
+
isLoadingConnectors: SuperagentHomeScreenProps['isLoadingConnectors'];
|
|
23
|
+
isLoadingFiles: SuperagentHomeScreenProps['isLoadingFiles'];
|
|
24
|
+
messages: SuperagentMessage[];
|
|
25
|
+
isSending: boolean;
|
|
26
|
+
onBack: () => void;
|
|
27
|
+
onCancelConnectorConnection: SuperagentHomeScreenProps['onCancelConnectorConnection'];
|
|
28
|
+
onArchiveAutomation: SuperagentHomeScreenProps['onArchiveAutomation'];
|
|
29
|
+
onCloneAgent: SuperagentHomeScreenProps['onCloneAgent'];
|
|
30
|
+
onCopyMessage: SuperagentHomeScreenProps['onCopyMessage'];
|
|
31
|
+
onConnectConnector: SuperagentHomeScreenProps['onConnectConnector'];
|
|
32
|
+
onDeleteAgent: SuperagentHomeScreenProps['onDeleteAgent'];
|
|
33
|
+
onDeleteAutomation: SuperagentHomeScreenProps['onDeleteAutomation'];
|
|
34
|
+
onDeleteSecret: SuperagentHomeScreenProps['onDeleteSecret'];
|
|
35
|
+
onDisconnectConnector: SuperagentHomeScreenProps['onDisconnectConnector'];
|
|
36
|
+
onDisconnectIMessage: SuperagentHomeScreenProps['onDisconnectIMessage'];
|
|
37
|
+
onDisconnectTelegram: SuperagentHomeScreenProps['onDisconnectTelegram'];
|
|
38
|
+
onEditAutomation: SuperagentHomeScreenProps['onEditAutomation'];
|
|
39
|
+
onGenerateLineCode: SuperagentHomeScreenProps['onGenerateLineCode'];
|
|
40
|
+
onGenerateIMessageCode: SuperagentHomeScreenProps['onGenerateIMessageCode'];
|
|
41
|
+
onImportFromDrive: SuperagentHomeScreenProps['onImportFromDrive'];
|
|
42
|
+
onOpenIMessage: SuperagentHomeScreenProps['onOpenIMessage'];
|
|
43
|
+
onOpenLine: SuperagentHomeScreenProps['onOpenLine'];
|
|
44
|
+
onOpenTelegram: SuperagentHomeScreenProps['onOpenTelegram'];
|
|
45
|
+
onOpenWhatsApp: SuperagentHomeScreenProps['onOpenWhatsApp'];
|
|
46
|
+
onOpenSandboxFile: SuperagentHomeScreenProps['onOpenSandboxFile'];
|
|
47
|
+
onOpenWorkspaceMembers: SuperagentHomeScreenProps['onOpenWorkspaceMembers'];
|
|
48
|
+
onPickFiles: SuperagentHomeScreenProps['onPickFiles'];
|
|
49
|
+
onPickPhotos: SuperagentHomeScreenProps['onPickPhotos'];
|
|
50
|
+
onRemoveConnector: SuperagentHomeScreenProps['onRemoveConnector'];
|
|
51
|
+
onRenameAgent: SuperagentHomeScreenProps['onRenameAgent'];
|
|
52
|
+
onRefreshAgentSettings: SuperagentHomeScreenProps['onRefreshAgentSettings'];
|
|
53
|
+
onRefreshAutomations: SuperagentHomeScreenProps['onRefreshAutomations'];
|
|
54
|
+
onRefreshChannels: SuperagentHomeScreenProps['onRefreshChannels'];
|
|
55
|
+
onRefreshCollaborators: SuperagentHomeScreenProps['onRefreshCollaborators'];
|
|
56
|
+
onRefreshFiles: SuperagentHomeScreenProps['onRefreshFiles'];
|
|
57
|
+
onRestoreAutomation: SuperagentHomeScreenProps['onRestoreAutomation'];
|
|
58
|
+
onRunAutomationNow: SuperagentHomeScreenProps['onRunAutomationNow'];
|
|
59
|
+
onSaveSandboxFile: SuperagentHomeScreenProps['onSaveSandboxFile'];
|
|
60
|
+
onSaveSecret: SuperagentHomeScreenProps['onSaveSecret'];
|
|
61
|
+
onSendMessage: SuperagentHomeScreenProps['onSendMessage'];
|
|
62
|
+
onShareAgent: SuperagentHomeScreenProps['onShareAgent'];
|
|
63
|
+
onShareAgentLink: SuperagentHomeScreenProps['onShareAgentLink'];
|
|
64
|
+
onShareIMessageCode: SuperagentHomeScreenProps['onShareIMessageCode'];
|
|
65
|
+
onShareLineCode: SuperagentHomeScreenProps['onShareLineCode'];
|
|
66
|
+
onStartLiveVoice: SuperagentHomeScreenProps['onStartLiveVoice'];
|
|
67
|
+
onStartVoiceInput: SuperagentHomeScreenProps['onStartVoiceInput'];
|
|
68
|
+
onSetupTelegram: SuperagentHomeScreenProps['onSetupTelegram'];
|
|
69
|
+
onTakePhoto: SuperagentHomeScreenProps['onTakePhoto'];
|
|
70
|
+
onToggleAutomation: SuperagentHomeScreenProps['onToggleAutomation'];
|
|
71
|
+
onUpdateAgentModel: SuperagentHomeScreenProps['onUpdateAgentModel'];
|
|
72
|
+
onUpdateToolPermissions: SuperagentHomeScreenProps['onUpdateToolPermissions'];
|
|
73
|
+
onUploadSandboxFiles: SuperagentHomeScreenProps['onUploadSandboxFiles'];
|
|
74
|
+
onAgentMessageDone: SuperagentHomeScreenProps['onAgentMessageDone'];
|
|
75
|
+
realtimeClient: SuperagentHomeScreenProps['realtimeClient'];
|
|
76
|
+
renderMarkdown: SuperagentHomeScreenProps['renderMarkdown'];
|
|
77
|
+
secrets: SuperagentHomeScreenProps['secrets'];
|
|
78
|
+
toolRenderers: SuperagentHomeScreenProps['toolRenderers'];
|
|
79
|
+
}): React.JSX.Element;
|
|
80
|
+
//# sourceMappingURL=ConversationScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationScreen.d.ts","sourceRoot":"","sources":["../../../src/ConversationScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AASrD,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAGjB,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EAC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 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentAgent, SuperagentAutomationActionInput, SuperagentAutomationCreditsSummary, SuperagentAutomation, SuperagentConnector, SuperagentConnectorActionInput, SuperagentEditorTab, SuperagentHomeScreenProps } from './types';
|
|
3
|
+
export declare function EditorDrawer({ activeTab, agent, automations, automationCredits, availableConnectors, channelStatus, collaborators, connectedConnectors, connectingChannelId, connectingConnectorId, fileLoadError, fileLoadFailed, filePaths, isLoadingAgentSettings, isLoadingChannels, isLoadingCollaborators, isLoadingFiles, isLoadingAutomations, isLoadingConnectors, isVisible, secrets, onClose, onCancelConnectorConnection, onArchiveAutomation, onCloneAgent, onConnectConnector, onDeleteAgent, onDeleteAutomation, onDeleteSecret, onDisconnectConnector, onDisconnectIMessage, onDisconnectTelegram, onEditAutomation, onGenerateLineCode, onGenerateIMessageCode, onOpenIMessage, onOpenLine, onRemoveConnector, onOpenTelegram, onOpenWhatsApp, onOpenSandboxFile, onRefreshChannels, onRefreshAgentSettings, onRefreshAutomations, onRefreshCollaborators, onRefreshFiles, onRestoreAutomation, onRunAutomationNow, onSaveSandboxFile, onSaveSecret, onSelectTab, onShareAgentLink, onShareIMessageCode, onShareLineCode, onSetupTelegram, onToggleAutomation, onUpdateAgentModel, onUpdateToolPermissions, onUploadSandboxFiles, }: {
|
|
4
|
+
activeTab: SuperagentEditorTab;
|
|
5
|
+
agent: SuperagentAgent;
|
|
6
|
+
automations?: SuperagentAutomation[];
|
|
7
|
+
automationCredits?: Record<string, SuperagentAutomationCreditsSummary>;
|
|
8
|
+
availableConnectors?: SuperagentConnector[];
|
|
9
|
+
channelStatus?: SuperagentHomeScreenProps['channelStatus'];
|
|
10
|
+
collaborators?: SuperagentHomeScreenProps['collaborators'];
|
|
11
|
+
connectedConnectors?: SuperagentConnector[];
|
|
12
|
+
connectingChannelId?: SuperagentHomeScreenProps['connectingChannelId'];
|
|
13
|
+
connectingConnectorId?: string | null;
|
|
14
|
+
fileLoadError?: SuperagentHomeScreenProps['fileLoadError'];
|
|
15
|
+
fileLoadFailed?: SuperagentHomeScreenProps['fileLoadFailed'];
|
|
16
|
+
filePaths?: string[];
|
|
17
|
+
isLoadingAgentSettings?: boolean;
|
|
18
|
+
isLoadingChannels?: boolean;
|
|
19
|
+
isLoadingCollaborators?: boolean;
|
|
20
|
+
isLoadingFiles?: boolean;
|
|
21
|
+
isLoadingAutomations?: boolean;
|
|
22
|
+
isLoadingConnectors?: boolean;
|
|
23
|
+
isVisible: boolean;
|
|
24
|
+
secrets?: SuperagentHomeScreenProps['secrets'];
|
|
25
|
+
onClose: () => void;
|
|
26
|
+
onCancelConnectorConnection?: (input: {
|
|
27
|
+
agentId: string;
|
|
28
|
+
connectorId: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
onArchiveAutomation?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
31
|
+
onCloneAgent?: SuperagentHomeScreenProps['onCloneAgent'];
|
|
32
|
+
onConnectConnector?: (input: SuperagentConnectorActionInput) => Promise<boolean | void> | boolean | void;
|
|
33
|
+
onDeleteAgent?: SuperagentHomeScreenProps['onDeleteAgent'];
|
|
34
|
+
onDeleteAutomation?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
35
|
+
onDeleteSecret?: SuperagentHomeScreenProps['onDeleteSecret'];
|
|
36
|
+
onDisconnectConnector?: (input: SuperagentConnectorActionInput) => Promise<void> | void;
|
|
37
|
+
onDisconnectIMessage?: SuperagentHomeScreenProps['onDisconnectIMessage'];
|
|
38
|
+
onDisconnectTelegram?: SuperagentHomeScreenProps['onDisconnectTelegram'];
|
|
39
|
+
onEditAutomation?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
40
|
+
onGenerateLineCode?: SuperagentHomeScreenProps['onGenerateLineCode'];
|
|
41
|
+
onGenerateIMessageCode?: SuperagentHomeScreenProps['onGenerateIMessageCode'];
|
|
42
|
+
onOpenIMessage?: SuperagentHomeScreenProps['onOpenIMessage'];
|
|
43
|
+
onOpenLine?: SuperagentHomeScreenProps['onOpenLine'];
|
|
44
|
+
onRemoveConnector?: (input: SuperagentConnectorActionInput) => Promise<void> | void;
|
|
45
|
+
onOpenTelegram?: SuperagentHomeScreenProps['onOpenTelegram'];
|
|
46
|
+
onOpenWhatsApp?: SuperagentHomeScreenProps['onOpenWhatsApp'];
|
|
47
|
+
onOpenSandboxFile?: SuperagentHomeScreenProps['onOpenSandboxFile'];
|
|
48
|
+
onRefreshChannels?: SuperagentHomeScreenProps['onRefreshChannels'];
|
|
49
|
+
onRefreshAgentSettings?: SuperagentHomeScreenProps['onRefreshAgentSettings'];
|
|
50
|
+
onRefreshAutomations?: (agentId: string) => Promise<void> | void;
|
|
51
|
+
onRefreshCollaborators?: SuperagentHomeScreenProps['onRefreshCollaborators'];
|
|
52
|
+
onRefreshFiles?: SuperagentHomeScreenProps['onRefreshFiles'];
|
|
53
|
+
onRestoreAutomation?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
54
|
+
onRunAutomationNow?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
55
|
+
onSaveSandboxFile?: SuperagentHomeScreenProps['onSaveSandboxFile'];
|
|
56
|
+
onSaveSecret?: SuperagentHomeScreenProps['onSaveSecret'];
|
|
57
|
+
onSelectTab: (tab: SuperagentEditorTab) => void;
|
|
58
|
+
onShareAgentLink?: SuperagentHomeScreenProps['onShareAgentLink'];
|
|
59
|
+
onShareIMessageCode?: SuperagentHomeScreenProps['onShareIMessageCode'];
|
|
60
|
+
onShareLineCode?: SuperagentHomeScreenProps['onShareLineCode'];
|
|
61
|
+
onSetupTelegram?: SuperagentHomeScreenProps['onSetupTelegram'];
|
|
62
|
+
onToggleAutomation?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
63
|
+
onUpdateAgentModel?: SuperagentHomeScreenProps['onUpdateAgentModel'];
|
|
64
|
+
onUpdateToolPermissions?: SuperagentHomeScreenProps['onUpdateToolPermissions'];
|
|
65
|
+
onUploadSandboxFiles?: SuperagentHomeScreenProps['onUploadSandboxFiles'];
|
|
66
|
+
}): React.JSX.Element;
|
|
67
|
+
//# sourceMappingURL=EditorDrawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorDrawer.d.ts","sourceRoot":"","sources":["../../../src/EditorDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AA4C5D,OAAO,KAAK,EACV,eAAe,EACf,+BAA+B,EAC/B,kCAAkC,EAClC,oBAAoB,EACpB,mBAAmB,EAEnB,8BAA8B,EAC9B,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AA4BjB,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,KAAK,EACL,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,SAAS,EACT,sBAAsB,EACtB,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,OAAO,EACP,OAAO,EACP,2BAA2B,EAC3B,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,GAC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AAC;IAC/E,oBAAoB,CAAC,EAAE,yBAAyB,CAAC,sBAAsB,CAAC,CAAC;CAC1E,qBAuJA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorTabPanel.d.ts","sourceRoot":"","sources":["../../../src/EditorTabPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,mBAAmB,CAAA;CAAE,qBAWnE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentAgent, SuperagentSandboxFileActionInput, SuperagentSandboxFileContent, SuperagentSandboxFileSaveInput, SuperagentSandboxFileUploadInput, SuperagentSandboxFileUploadResult } from './types';
|
|
3
|
+
export declare function FilesPanel({ agent, fileLoadError, fileLoadFailed, filePaths, isLoading, onOpenSandboxFile, onRefreshFiles, onSaveSandboxFile, onUploadSandboxFiles, }: {
|
|
4
|
+
agent: SuperagentAgent;
|
|
5
|
+
fileLoadError?: string | null;
|
|
6
|
+
fileLoadFailed?: boolean;
|
|
7
|
+
filePaths?: string[];
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
onOpenSandboxFile?: (input: SuperagentSandboxFileActionInput) => Promise<SuperagentSandboxFileContent> | SuperagentSandboxFileContent;
|
|
10
|
+
onRefreshFiles?: (agentId: string) => Promise<void> | void;
|
|
11
|
+
onSaveSandboxFile?: (input: SuperagentSandboxFileSaveInput) => Promise<void> | void;
|
|
12
|
+
onUploadSandboxFiles?: (input: SuperagentSandboxFileUploadInput) => Promise<SuperagentSandboxFileUploadResult[] | void> | SuperagentSandboxFileUploadResult[] | void;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
//# sourceMappingURL=FilesPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilesPanel.d.ts","sourceRoot":"","sources":["../../../src/FilesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAwCjD,OAAO,KAAK,EACV,eAAe,EACf,gCAAgC,EAChC,4BAA4B,EAE5B,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EAClC,MAAM,SAAS,CAAC;AAEjB,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,aAAa,EACb,cAAc,EACd,SAAc,EACd,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,oBAAoB,GACrB,EAAE;IACD,KAAK,EAAE,eAAe,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,OAAO,CAAC,4BAA4B,CAAC,GAAG,4BAA4B,CAAC;IACtI,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC3D,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACpF,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,OAAO,CAAC,iCAAiC,EAAE,GAAG,IAAI,CAAC,GAAG,iCAAiC,EAAE,GAAG,IAAI,CAAC;CACtK,qBAgPA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentMarkdownRenderer, SuperagentMessage } from './types';
|
|
3
|
+
export declare function MarkdownText({ content, isUser, message, onLongPress, renderMarkdown, }: {
|
|
4
|
+
content: string;
|
|
5
|
+
isUser: boolean;
|
|
6
|
+
message: SuperagentMessage;
|
|
7
|
+
onLongPress?: () => void;
|
|
8
|
+
renderMarkdown?: SuperagentMarkdownRenderer;
|
|
9
|
+
}): React.JSX.Element | null;
|
|
10
|
+
//# sourceMappingURL=MarkdownText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownText.d.ts","sourceRoot":"","sources":["../../../src/MarkdownText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAI9C,OAAO,KAAK,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAU7E,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,MAAM,EACN,OAAO,EACP,WAAW,EACX,cAAc,GACf,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,0BAA0B,CAAC;CAC7C,4BAaA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SuperagentCopyMessageInput, SuperagentMessage } from './types';
|
|
2
|
+
export declare function showMessageActions({ message, onCopyMessage, onDeleteMessage, onReplyMessage, }: {
|
|
3
|
+
message: SuperagentMessage;
|
|
4
|
+
onCopyMessage?: SuperagentCopyMessageInput;
|
|
5
|
+
onDeleteMessage?: (messageId: string) => Promise<boolean> | boolean;
|
|
6
|
+
onReplyMessage?: (message: SuperagentMessage) => void;
|
|
7
|
+
}): void;
|
|
8
|
+
//# sourceMappingURL=MessageActionBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageActionBar.d.ts","sourceRoot":"","sources":["../../../src/MessageActionBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAuB7E,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,aAAa,EACb,eAAe,EACf,cAAc,GACf,EAAE;IACD,OAAO,EAAE,iBAAiB,CAAC;IAC3B,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAC3C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACpE,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACvD,QA+CA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function RenameAgentModal({ error, initialName, isSaving, isVisible, onClose, onSave, }: {
|
|
3
|
+
error?: string | null;
|
|
4
|
+
initialName: string;
|
|
5
|
+
isSaving: boolean;
|
|
6
|
+
isVisible: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onSave: (name: string) => void;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=RenameAgentModal.d.ts.map
|