@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,437 @@
|
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { ProviderProps } from 'react-native-paper';
|
|
3
|
+
export type SuperagentToolCall = {
|
|
4
|
+
id?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
arguments?: Record<string, unknown> | string;
|
|
7
|
+
arguments_string?: string;
|
|
8
|
+
results?: string | Record<string, unknown>;
|
|
9
|
+
status?: string;
|
|
10
|
+
user_input?: unknown;
|
|
11
|
+
grouped?: boolean;
|
|
12
|
+
toolCalls?: SuperagentToolCall[];
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
export type SuperagentReplyTo = {
|
|
16
|
+
messageId?: string;
|
|
17
|
+
content: string;
|
|
18
|
+
};
|
|
19
|
+
export type SuperagentAgent = {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
emoji?: string | null;
|
|
24
|
+
logoUrl?: string;
|
|
25
|
+
model?: SuperagentModelChoice | string | null;
|
|
26
|
+
organizationId?: string | null;
|
|
27
|
+
toolsPermissionConfig?: SuperagentToolPermissionConfig;
|
|
28
|
+
avatarIndex?: number | null;
|
|
29
|
+
updatedAt?: string;
|
|
30
|
+
};
|
|
31
|
+
export type SuperagentModelChoice = 'default' | 'claude_sonnet_4' | 'claude_sonnet_4_5' | 'claude_sonnet_4_6' | 'claude_opus_4_5' | 'claude_opus_4_6' | 'claude_3_7' | 'gemini_2_5_pro' | 'gemini_2_5_flash' | 'gemini_3_pro' | 'gemini_3_1_pro' | 'gpt_5' | 'gpt_5_4' | 'minimax_m2p5' | 'glm_5' | 'deepseek_v3' | 'kimi_k2p5';
|
|
32
|
+
export type SuperagentToolPermissionConfig = {
|
|
33
|
+
auto_approved_operations?: string[];
|
|
34
|
+
connector_guards?: Record<string, string>;
|
|
35
|
+
};
|
|
36
|
+
export type SuperagentSecret = {
|
|
37
|
+
name: string;
|
|
38
|
+
value: string;
|
|
39
|
+
};
|
|
40
|
+
export type SuperagentCollaborator = {
|
|
41
|
+
email: string;
|
|
42
|
+
full_name?: string | null;
|
|
43
|
+
id: string;
|
|
44
|
+
is_guest?: boolean;
|
|
45
|
+
is_owner?: boolean;
|
|
46
|
+
is_pending?: boolean;
|
|
47
|
+
profile_image_url?: string | null;
|
|
48
|
+
};
|
|
49
|
+
export type SuperagentAgentActionInput = {
|
|
50
|
+
agentId: string;
|
|
51
|
+
};
|
|
52
|
+
export type SuperagentShareAgentInput = SuperagentAgentActionInput & {
|
|
53
|
+
addAsGuest?: boolean;
|
|
54
|
+
emails: string[];
|
|
55
|
+
};
|
|
56
|
+
export type SuperagentOpenWorkspaceMembersInput = SuperagentAgentActionInput & {
|
|
57
|
+
organizationId?: string | null;
|
|
58
|
+
};
|
|
59
|
+
export type SuperagentInviteCollaboratorResult = {
|
|
60
|
+
email: string;
|
|
61
|
+
error?: string;
|
|
62
|
+
error_code?: string;
|
|
63
|
+
has_pending_invitation?: boolean;
|
|
64
|
+
success: boolean;
|
|
65
|
+
};
|
|
66
|
+
export type SuperagentInviteCollaboratorsResult = {
|
|
67
|
+
results: SuperagentInviteCollaboratorResult[];
|
|
68
|
+
};
|
|
69
|
+
export type SuperagentModelUpdateInput = SuperagentAgentActionInput & {
|
|
70
|
+
model: SuperagentModelChoice | string;
|
|
71
|
+
};
|
|
72
|
+
export type SuperagentSecretSaveInput = SuperagentAgentActionInput & SuperagentSecret;
|
|
73
|
+
export type SuperagentSecretDeleteInput = SuperagentAgentActionInput & {
|
|
74
|
+
name: string;
|
|
75
|
+
};
|
|
76
|
+
export type SuperagentToolPermissionsUpdateInput = SuperagentAgentActionInput & {
|
|
77
|
+
config: SuperagentToolPermissionConfig;
|
|
78
|
+
};
|
|
79
|
+
export type SuperagentMessage = {
|
|
80
|
+
id?: string;
|
|
81
|
+
role: 'user' | 'assistant' | 'system';
|
|
82
|
+
content: string;
|
|
83
|
+
createdAt?: string;
|
|
84
|
+
created_at?: number | string;
|
|
85
|
+
fileUrls?: string[];
|
|
86
|
+
file_urls?: string[];
|
|
87
|
+
hidden?: boolean;
|
|
88
|
+
metadata?: {
|
|
89
|
+
created_date?: number | string | Date;
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
};
|
|
92
|
+
replyTo?: SuperagentReplyTo;
|
|
93
|
+
additional_message_params?: {
|
|
94
|
+
reply_to?: {
|
|
95
|
+
message_id?: string;
|
|
96
|
+
content?: string;
|
|
97
|
+
};
|
|
98
|
+
} & Record<string, unknown>;
|
|
99
|
+
toolCalls?: SuperagentToolCall[];
|
|
100
|
+
tool_calls?: SuperagentToolCall[];
|
|
101
|
+
};
|
|
102
|
+
export type SuperagentRoute = {
|
|
103
|
+
name: 'home';
|
|
104
|
+
} | {
|
|
105
|
+
name: 'create-agent';
|
|
106
|
+
} | {
|
|
107
|
+
name: 'agent';
|
|
108
|
+
agentId: string;
|
|
109
|
+
};
|
|
110
|
+
export type SuperagentEditorTab = 'chat' | 'integrations' | 'tasks' | 'files' | 'channels' | 'agent_settings';
|
|
111
|
+
export type SuperagentConversation = {
|
|
112
|
+
id: string;
|
|
113
|
+
messages?: SuperagentMessage[];
|
|
114
|
+
};
|
|
115
|
+
export type SuperagentRealtimeHandlers = {
|
|
116
|
+
onMessage?: (message: SuperagentMessage) => void;
|
|
117
|
+
onConversation?: (conversation: SuperagentConversation) => void;
|
|
118
|
+
onAgentDone?: () => void;
|
|
119
|
+
onReconnect?: () => void;
|
|
120
|
+
onError?: (error: unknown) => void;
|
|
121
|
+
};
|
|
122
|
+
export type SuperagentRealtimeClient = {
|
|
123
|
+
subscribeToConversation(conversationId: string, handlers: SuperagentRealtimeHandlers): () => void;
|
|
124
|
+
};
|
|
125
|
+
export type SuperagentPaginatedMessages = {
|
|
126
|
+
messages: SuperagentMessage[];
|
|
127
|
+
has_more?: boolean;
|
|
128
|
+
hasMore?: boolean;
|
|
129
|
+
};
|
|
130
|
+
export type QueuedSuperagentMessage = {
|
|
131
|
+
id: string;
|
|
132
|
+
content: string;
|
|
133
|
+
position?: number;
|
|
134
|
+
};
|
|
135
|
+
export type SuperagentMediaAttachment = {
|
|
136
|
+
id?: string;
|
|
137
|
+
url: string;
|
|
138
|
+
name?: string;
|
|
139
|
+
mimeType?: string;
|
|
140
|
+
kind?: 'image' | 'file' | 'audio';
|
|
141
|
+
previewUri?: string;
|
|
142
|
+
};
|
|
143
|
+
export type SuperagentMediaActionContext = {
|
|
144
|
+
agentId: string;
|
|
145
|
+
conversationId: string | null;
|
|
146
|
+
};
|
|
147
|
+
export type SuperagentMediaPicker = (context: SuperagentMediaActionContext) => Promise<SuperagentMediaAttachment[] | SuperagentMediaAttachment | null | undefined> | SuperagentMediaAttachment[] | SuperagentMediaAttachment | null | undefined;
|
|
148
|
+
export type SuperagentVoiceInput = (context: SuperagentMediaActionContext) => Promise<string | null | undefined> | string | null | undefined;
|
|
149
|
+
export type SuperagentLiveVoiceInput = (context: SuperagentMediaActionContext) => Promise<void> | void;
|
|
150
|
+
export type SuperagentCopyMessageInput = (message: SuperagentMessage) => Promise<void> | void;
|
|
151
|
+
export type SuperagentConnectorAccessMode = 'read_only' | 'full_access';
|
|
152
|
+
export type SuperagentConnectorStatus = 'active' | 'disconnected' | 'expired';
|
|
153
|
+
export type SuperagentConnectorAccessModeConfig = {
|
|
154
|
+
fullAccess: string[];
|
|
155
|
+
readOnly: string[];
|
|
156
|
+
};
|
|
157
|
+
export type SuperagentConnector = {
|
|
158
|
+
accountIdentifier?: string | null;
|
|
159
|
+
accessMode?: SuperagentConnectorAccessMode | null;
|
|
160
|
+
accessModes?: SuperagentConnectorAccessModeConfig;
|
|
161
|
+
category?: string;
|
|
162
|
+
exampleScopes?: string[];
|
|
163
|
+
iconBackgroundColor?: string;
|
|
164
|
+
iconFallbackLabel?: string;
|
|
165
|
+
iconUrl?: string;
|
|
166
|
+
id: string;
|
|
167
|
+
name: string;
|
|
168
|
+
requiresConnectionConfig?: boolean;
|
|
169
|
+
scopes?: string[];
|
|
170
|
+
status?: SuperagentConnectorStatus;
|
|
171
|
+
subtitle?: string;
|
|
172
|
+
supportsReadOnly?: boolean;
|
|
173
|
+
};
|
|
174
|
+
export type SuperagentConnectorActionInput = {
|
|
175
|
+
accessMode?: SuperagentConnectorAccessMode;
|
|
176
|
+
agentId: string;
|
|
177
|
+
connectorId: string;
|
|
178
|
+
forceReconnect?: boolean;
|
|
179
|
+
scopes?: string[];
|
|
180
|
+
};
|
|
181
|
+
export type SuperagentChannelId = 'whatsapp' | 'telegram' | 'line' | 'imessage';
|
|
182
|
+
export type SuperagentTelegramChannelStatus = {
|
|
183
|
+
connected: boolean;
|
|
184
|
+
botLink?: string | null;
|
|
185
|
+
botName?: string | null;
|
|
186
|
+
botUsername?: string | null;
|
|
187
|
+
};
|
|
188
|
+
export type SuperagentWhatsAppChannelStatus = {
|
|
189
|
+
connected?: boolean;
|
|
190
|
+
connectUrl?: string | null;
|
|
191
|
+
};
|
|
192
|
+
export type SuperagentLineActivation = {
|
|
193
|
+
addFriendUrl: string;
|
|
194
|
+
code: string;
|
|
195
|
+
};
|
|
196
|
+
export type SuperagentLineChannelStatus = {
|
|
197
|
+
activation?: SuperagentLineActivation | null;
|
|
198
|
+
connected?: boolean;
|
|
199
|
+
};
|
|
200
|
+
export type SuperagentIMessageActivation = {
|
|
201
|
+
code: string;
|
|
202
|
+
phoneNumber: string;
|
|
203
|
+
};
|
|
204
|
+
export type SuperagentIMessageChannelStatus = {
|
|
205
|
+
activation?: SuperagentIMessageActivation | null;
|
|
206
|
+
connected?: boolean;
|
|
207
|
+
phoneNumber?: string | null;
|
|
208
|
+
};
|
|
209
|
+
export type SuperagentChannelStatus = {
|
|
210
|
+
imessage?: SuperagentIMessageChannelStatus;
|
|
211
|
+
line?: SuperagentLineChannelStatus;
|
|
212
|
+
telegram?: SuperagentTelegramChannelStatus;
|
|
213
|
+
whatsapp?: SuperagentWhatsAppChannelStatus;
|
|
214
|
+
};
|
|
215
|
+
export type SuperagentChannelActionInput = {
|
|
216
|
+
agentId: string;
|
|
217
|
+
};
|
|
218
|
+
export type SuperagentChannelUrlActionInput = SuperagentChannelActionInput & {
|
|
219
|
+
url: string;
|
|
220
|
+
};
|
|
221
|
+
export type SuperagentTelegramSetupInput = SuperagentChannelActionInput & {
|
|
222
|
+
token: string;
|
|
223
|
+
};
|
|
224
|
+
export type SuperagentLineCodeShareInput = SuperagentChannelActionInput & SuperagentLineActivation;
|
|
225
|
+
export type SuperagentIMessageCodeShareInput = SuperagentChannelActionInput & SuperagentIMessageActivation;
|
|
226
|
+
export type SuperagentAutomationType = 'scheduled' | 'entity' | 'connector';
|
|
227
|
+
export type SuperagentAutomation = {
|
|
228
|
+
app_id?: string;
|
|
229
|
+
automation_type: SuperagentAutomationType | string;
|
|
230
|
+
consecutive_failures?: number;
|
|
231
|
+
created_date?: string;
|
|
232
|
+
description?: string;
|
|
233
|
+
ends_after_count?: number;
|
|
234
|
+
ends_on_date?: string;
|
|
235
|
+
ends_type?: 'never' | 'on' | 'after' | string;
|
|
236
|
+
entity_name?: string;
|
|
237
|
+
event_types?: string[];
|
|
238
|
+
events?: string[];
|
|
239
|
+
failed_runs?: number;
|
|
240
|
+
function_args?: Record<string, unknown>;
|
|
241
|
+
function_name?: string;
|
|
242
|
+
id: string;
|
|
243
|
+
integration_type?: string;
|
|
244
|
+
is_active?: boolean;
|
|
245
|
+
is_archived?: boolean;
|
|
246
|
+
last_run_at?: string;
|
|
247
|
+
last_run_status?: 'success' | 'failed' | string;
|
|
248
|
+
name: string;
|
|
249
|
+
one_time_date?: string;
|
|
250
|
+
repeat_interval?: number;
|
|
251
|
+
repeat_on_day_of_month?: number;
|
|
252
|
+
repeat_on_days?: number[];
|
|
253
|
+
repeat_unit?: 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | string;
|
|
254
|
+
schedule_mode?: 'recurring' | 'one-time' | string;
|
|
255
|
+
schedule_type?: 'simple' | 'cron' | string;
|
|
256
|
+
start_time?: string;
|
|
257
|
+
successful_runs?: number;
|
|
258
|
+
total_runs?: number;
|
|
259
|
+
trigger_conditions?: Record<string, unknown> | null;
|
|
260
|
+
updated_date?: string;
|
|
261
|
+
[key: string]: unknown;
|
|
262
|
+
};
|
|
263
|
+
export type SuperagentAutomationCreditsSummary = {
|
|
264
|
+
since: string | null;
|
|
265
|
+
total: number;
|
|
266
|
+
};
|
|
267
|
+
export type SuperagentAutomationActionInput = {
|
|
268
|
+
agentId: string;
|
|
269
|
+
automation: SuperagentAutomation;
|
|
270
|
+
};
|
|
271
|
+
export type SuperagentSandboxFileNode = {
|
|
272
|
+
children?: SuperagentSandboxFileNode[];
|
|
273
|
+
name: string;
|
|
274
|
+
type: 'file' | 'folder';
|
|
275
|
+
};
|
|
276
|
+
export type SuperagentSandboxFileActionInput = {
|
|
277
|
+
agentId: string;
|
|
278
|
+
path: string;
|
|
279
|
+
};
|
|
280
|
+
export type SuperagentSandboxFileContent = {
|
|
281
|
+
content: string;
|
|
282
|
+
path: string;
|
|
283
|
+
};
|
|
284
|
+
export type SuperagentSandboxFileSaveInput = SuperagentSandboxFileActionInput & {
|
|
285
|
+
content: string;
|
|
286
|
+
};
|
|
287
|
+
export type SuperagentSandboxFileUploadInput = {
|
|
288
|
+
agentId: string;
|
|
289
|
+
};
|
|
290
|
+
export type SuperagentSandboxFileUploadResult = {
|
|
291
|
+
path: string;
|
|
292
|
+
};
|
|
293
|
+
export type SuperagentRenameAgentInput = {
|
|
294
|
+
agentId: string;
|
|
295
|
+
name: string;
|
|
296
|
+
};
|
|
297
|
+
export type SuperagentNativeClientConfig = {
|
|
298
|
+
apiBaseUrl: string;
|
|
299
|
+
appId: string;
|
|
300
|
+
getAuthToken: () => Promise<string | null | undefined> | string | null | undefined;
|
|
301
|
+
getHeaders?: () => Promise<Record<string, string> | undefined> | Record<string, string> | undefined;
|
|
302
|
+
};
|
|
303
|
+
export type SuperagentNativeClient = {
|
|
304
|
+
getConversations(limit?: number): Promise<SuperagentConversation[]>;
|
|
305
|
+
getConversation(conversationId: string): Promise<SuperagentConversation>;
|
|
306
|
+
getMessages(conversationId: string, params?: {
|
|
307
|
+
limit?: number;
|
|
308
|
+
before?: string;
|
|
309
|
+
}): Promise<SuperagentPaginatedMessages>;
|
|
310
|
+
createConversation(metadata?: Record<string, unknown>): Promise<SuperagentConversation>;
|
|
311
|
+
addMessage(conversationId: string, message: Partial<SuperagentMessage>): Promise<unknown>;
|
|
312
|
+
stopConversation(conversationId: string): Promise<void>;
|
|
313
|
+
getQueuedMessages(conversationId: string): Promise<{
|
|
314
|
+
messages: QueuedSuperagentMessage[];
|
|
315
|
+
}>;
|
|
316
|
+
editQueuedMessage(conversationId: string, messageId: string, content: string): Promise<{
|
|
317
|
+
ok: boolean;
|
|
318
|
+
}>;
|
|
319
|
+
deleteQueuedMessage(conversationId: string, messageId: string): Promise<{
|
|
320
|
+
ok: boolean;
|
|
321
|
+
}>;
|
|
322
|
+
deleteMessage(conversationId: string, messageId: string): Promise<{
|
|
323
|
+
message: string;
|
|
324
|
+
}>;
|
|
325
|
+
submitToolCallInput(conversationId: string, toolCallId: string, approve: boolean, extraUserInput?: unknown, originRequestId?: string): Promise<SuperagentConversation>;
|
|
326
|
+
};
|
|
327
|
+
export type SuperagentToolRendererProps = {
|
|
328
|
+
agent: SuperagentAgent;
|
|
329
|
+
conversationId: string | null;
|
|
330
|
+
message: SuperagentMessage;
|
|
331
|
+
submitToolCallInput?: (toolCallId: string, approve: boolean, extraUserInput?: unknown, originRequestId?: string) => Promise<SuperagentConversation | null>;
|
|
332
|
+
toolCall: SuperagentToolCall;
|
|
333
|
+
};
|
|
334
|
+
export type SuperagentToolRenderer = ComponentType<SuperagentToolRendererProps>;
|
|
335
|
+
export type SuperagentToolRenderers = Record<string, SuperagentToolRenderer>;
|
|
336
|
+
export type SuperagentMarkdownRendererProps = {
|
|
337
|
+
content: string;
|
|
338
|
+
isUser: boolean;
|
|
339
|
+
message: SuperagentMessage;
|
|
340
|
+
};
|
|
341
|
+
export type SuperagentMarkdownRenderer = ComponentType<SuperagentMarkdownRendererProps>;
|
|
342
|
+
export type SuperagentHomeScreenProps = {
|
|
343
|
+
agents?: SuperagentAgent[];
|
|
344
|
+
latestMessages?: SuperagentMessage[];
|
|
345
|
+
messagesByAgentId?: Record<string, SuperagentMessage[]>;
|
|
346
|
+
apiClient?: SuperagentNativeClient;
|
|
347
|
+
realtimeClient?: SuperagentRealtimeClient;
|
|
348
|
+
renderMarkdown?: SuperagentMarkdownRenderer;
|
|
349
|
+
toolRenderers?: SuperagentToolRenderers;
|
|
350
|
+
isLoading?: boolean;
|
|
351
|
+
isSendingMessage?: boolean;
|
|
352
|
+
navigationMode?: 'internal' | 'external';
|
|
353
|
+
paperTheme?: ProviderProps['theme'];
|
|
354
|
+
currentUserAvatarUrl?: string | null;
|
|
355
|
+
currentUserName?: string;
|
|
356
|
+
fileLoadError?: string | null;
|
|
357
|
+
fileLoadFailed?: boolean;
|
|
358
|
+
filePaths?: string[];
|
|
359
|
+
collaborators?: SuperagentCollaborator[];
|
|
360
|
+
headerAccessory?: ReactNode;
|
|
361
|
+
initialRoute?: SuperagentRoute;
|
|
362
|
+
isLoadingAgentSettings?: boolean;
|
|
363
|
+
isLoadingCollaborators?: boolean;
|
|
364
|
+
isLoadingFiles?: boolean;
|
|
365
|
+
secrets?: SuperagentSecret[];
|
|
366
|
+
onAgentBack?: () => void;
|
|
367
|
+
onAgentMessageDone?: () => Promise<void> | void;
|
|
368
|
+
onCreateAgent?: () => Promise<SuperagentAgent | void> | SuperagentAgent | void;
|
|
369
|
+
onOpenAgent?: (agentId: string) => void;
|
|
370
|
+
onOpenWorkspaceMembers?: (input: SuperagentOpenWorkspaceMembersInput) => Promise<void> | void;
|
|
371
|
+
onRouteChange?: (route: SuperagentRoute) => void;
|
|
372
|
+
onImportFromDrive?: SuperagentMediaPicker;
|
|
373
|
+
onPickFiles?: SuperagentMediaPicker;
|
|
374
|
+
onPickPhotos?: SuperagentMediaPicker;
|
|
375
|
+
onCopyMessage?: SuperagentCopyMessageInput;
|
|
376
|
+
automations?: SuperagentAutomation[];
|
|
377
|
+
automationCredits?: Record<string, SuperagentAutomationCreditsSummary>;
|
|
378
|
+
availableConnectors?: SuperagentConnector[];
|
|
379
|
+
channelStatus?: SuperagentChannelStatus;
|
|
380
|
+
connectedConnectors?: SuperagentConnector[];
|
|
381
|
+
connectingConnectorId?: string | null;
|
|
382
|
+
connectingChannelId?: SuperagentChannelId | null;
|
|
383
|
+
isLoadingAutomations?: boolean;
|
|
384
|
+
isLoadingChannels?: boolean;
|
|
385
|
+
isLoadingConnectors?: boolean;
|
|
386
|
+
onCancelConnectorConnection?: (input: {
|
|
387
|
+
agentId: string;
|
|
388
|
+
connectorId: string;
|
|
389
|
+
}) => void;
|
|
390
|
+
onConnectConnector?: (input: SuperagentConnectorActionInput) => Promise<boolean | void> | boolean | void;
|
|
391
|
+
onDisconnectConnector?: (input: SuperagentConnectorActionInput) => Promise<void> | void;
|
|
392
|
+
onArchiveAutomation?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
393
|
+
onCloneAgent?: (input: SuperagentAgentActionInput) => Promise<void> | void;
|
|
394
|
+
onDeleteAgent?: (input: SuperagentAgentActionInput) => Promise<void> | void;
|
|
395
|
+
onDeleteAutomation?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
396
|
+
onDeleteSecret?: (input: SuperagentSecretDeleteInput) => Promise<void> | void;
|
|
397
|
+
onEditAutomation?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
398
|
+
onRemoveConnector?: (input: SuperagentConnectorActionInput) => Promise<void> | void;
|
|
399
|
+
onRenameAgent?: (input: SuperagentRenameAgentInput) => Promise<SuperagentAgent | void> | SuperagentAgent | void;
|
|
400
|
+
onRefreshAgentSettings?: (agentId: string) => Promise<void> | void;
|
|
401
|
+
onRefreshAutomations?: (agentId: string) => Promise<void> | void;
|
|
402
|
+
onRefreshCollaborators?: (agentId: string) => Promise<void> | void;
|
|
403
|
+
onRefreshFiles?: (agentId: string) => Promise<void> | void;
|
|
404
|
+
onRestoreAutomation?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
405
|
+
onRunAutomationNow?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
406
|
+
onOpenSandboxFile?: (input: SuperagentSandboxFileActionInput) => Promise<SuperagentSandboxFileContent> | SuperagentSandboxFileContent;
|
|
407
|
+
onDisconnectTelegram?: (input: SuperagentChannelActionInput) => Promise<void> | void;
|
|
408
|
+
onGenerateLineCode?: (input: SuperagentChannelActionInput) => Promise<void> | void;
|
|
409
|
+
onGenerateIMessageCode?: (input: SuperagentChannelActionInput) => Promise<SuperagentIMessageActivation | void> | SuperagentIMessageActivation | void;
|
|
410
|
+
onDisconnectIMessage?: (input: SuperagentChannelActionInput) => Promise<void> | void;
|
|
411
|
+
onOpenIMessage?: (input: SuperagentIMessageCodeShareInput) => Promise<void> | void;
|
|
412
|
+
onOpenLine?: (input: SuperagentChannelUrlActionInput) => Promise<void> | void;
|
|
413
|
+
onOpenTelegram?: (input: SuperagentChannelUrlActionInput) => Promise<void> | void;
|
|
414
|
+
onOpenWhatsApp?: (input: SuperagentChannelActionInput) => Promise<void> | void;
|
|
415
|
+
onRefreshChannels?: (agentId: string) => Promise<void> | void;
|
|
416
|
+
onSaveSandboxFile?: (input: SuperagentSandboxFileSaveInput) => Promise<void> | void;
|
|
417
|
+
onSaveSecret?: (input: SuperagentSecretSaveInput) => Promise<void> | void;
|
|
418
|
+
onShareAgent?: (input: SuperagentShareAgentInput) => Promise<SuperagentInviteCollaboratorsResult | void> | SuperagentInviteCollaboratorsResult | void;
|
|
419
|
+
onShareAgentLink?: (input: SuperagentAgentActionInput) => Promise<void> | void;
|
|
420
|
+
onShareIMessageCode?: (input: SuperagentIMessageCodeShareInput) => Promise<void> | void;
|
|
421
|
+
onShareLineCode?: (input: SuperagentLineCodeShareInput) => Promise<void> | void;
|
|
422
|
+
onStartLiveVoice?: SuperagentLiveVoiceInput;
|
|
423
|
+
onStartVoiceInput?: SuperagentVoiceInput;
|
|
424
|
+
onSetupTelegram?: (input: SuperagentTelegramSetupInput) => Promise<void> | void;
|
|
425
|
+
onTakePhoto?: SuperagentMediaPicker;
|
|
426
|
+
onToggleAutomation?: (input: SuperagentAutomationActionInput) => Promise<void> | void;
|
|
427
|
+
onUpdateAgentModel?: (input: SuperagentModelUpdateInput) => Promise<void> | void;
|
|
428
|
+
onUpdateToolPermissions?: (input: SuperagentToolPermissionsUpdateInput) => Promise<void> | void;
|
|
429
|
+
onUploadSandboxFiles?: (input: SuperagentSandboxFileUploadInput) => Promise<SuperagentSandboxFileUploadResult[] | void> | SuperagentSandboxFileUploadResult[] | void;
|
|
430
|
+
onSendMessage?: (params: {
|
|
431
|
+
agentId: string;
|
|
432
|
+
fileUrls?: string[];
|
|
433
|
+
message: string;
|
|
434
|
+
replyTo?: SuperagentReplyTo;
|
|
435
|
+
}) => Promise<SuperagentMessage | SuperagentMessage[] | void> | SuperagentMessage | SuperagentMessage[] | void;
|
|
436
|
+
};
|
|
437
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB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 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SuperagentMediaPicker } from './types';
|
|
3
|
+
export type SuperagentAttachmentPickerMode = 'camera' | 'files' | 'photos';
|
|
4
|
+
export type SuperagentNativeMediaItem = {
|
|
5
|
+
mimeType?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
previewUri?: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
thumbnailUri?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
uploadUri?: string;
|
|
12
|
+
uri?: string;
|
|
13
|
+
};
|
|
14
|
+
export type SuperagentAttachmentPickerAdapters = {
|
|
15
|
+
isCancel?: (error: unknown) => boolean;
|
|
16
|
+
pickNativeMedia: (mode: SuperagentAttachmentPickerMode) => Promise<SuperagentNativeMediaItem[] | null | undefined>;
|
|
17
|
+
};
|
|
18
|
+
type UseSuperagentAttachmentPickerInput = {
|
|
19
|
+
baseUrl: string;
|
|
20
|
+
getAccessToken: () => Promise<string | null | undefined> | string | null | undefined;
|
|
21
|
+
nativeAdapters: SuperagentAttachmentPickerAdapters;
|
|
22
|
+
};
|
|
23
|
+
export declare function useSuperagentAttachmentPicker({ baseUrl, getAccessToken, nativeAdapters, }: UseSuperagentAttachmentPickerInput): {
|
|
24
|
+
attachmentPickerModal: React.JSX.Element | null;
|
|
25
|
+
onPickFiles: SuperagentMediaPicker;
|
|
26
|
+
onPickPhotos: SuperagentMediaPicker;
|
|
27
|
+
onTakePhoto: SuperagentMediaPicker;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=useSuperagentAttachmentPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSuperagentAttachmentPicker.d.ts","sourceRoot":"","sources":["../../../src/useSuperagentAttachmentPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAOjB,MAAM,MAAM,8BAA8B,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE3E,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,OAAO,CAAC,yBAAyB,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACpH,CAAC;AAQF,KAAK,kCAAkC,GAAG;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrF,cAAc,EAAE,kCAAkC,CAAC;CACpD,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,EAC5C,OAAO,EACP,cAAc,EACd,cAAc,GACf,EAAE,kCAAkC;;;;;EAwEpC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { QueuedSuperagentMessage, SuperagentConversation, SuperagentMessage, SuperagentNativeClient, SuperagentRealtimeClient, SuperagentReplyTo } from './types';
|
|
2
|
+
type SendMessageHandler = (params: {
|
|
3
|
+
agentId: string;
|
|
4
|
+
fileUrls?: string[];
|
|
5
|
+
message: string;
|
|
6
|
+
replyTo?: SuperagentReplyTo;
|
|
7
|
+
}) => Promise<SuperagentMessage | SuperagentMessage[] | void> | SuperagentMessage | SuperagentMessage[] | void;
|
|
8
|
+
type UseConversationParams = {
|
|
9
|
+
agentId: string;
|
|
10
|
+
apiClient?: SuperagentNativeClient;
|
|
11
|
+
realtimeClient?: SuperagentRealtimeClient;
|
|
12
|
+
fallbackMessages: SuperagentMessage[];
|
|
13
|
+
fallbackSending: boolean;
|
|
14
|
+
onAgentMessageDone?: () => Promise<void> | void;
|
|
15
|
+
onConversationSettled?: () => Promise<void> | void;
|
|
16
|
+
onSendMessage?: SendMessageHandler;
|
|
17
|
+
};
|
|
18
|
+
export declare function useSuperagentConversation({ agentId, apiClient, realtimeClient, fallbackMessages, fallbackSending, onAgentMessageDone, onConversationSettled, onSendMessage, }: UseConversationParams): {
|
|
19
|
+
conversationId: string | null;
|
|
20
|
+
deleteMessage: (messageId: string) => Promise<boolean>;
|
|
21
|
+
hasMoreMessages: boolean;
|
|
22
|
+
initError: string | null;
|
|
23
|
+
isLoading: boolean;
|
|
24
|
+
isSending: boolean;
|
|
25
|
+
loadPrevious: () => Promise<void>;
|
|
26
|
+
messages: SuperagentMessage[];
|
|
27
|
+
queuedMessages: QueuedSuperagentMessage[];
|
|
28
|
+
sendMessage: (content: string, options?: {
|
|
29
|
+
fileUrls?: string[];
|
|
30
|
+
replyTo?: SuperagentReplyTo;
|
|
31
|
+
}) => Promise<void>;
|
|
32
|
+
submitToolCallInput: (toolCallId: string, approve: boolean, extraUserInput?: unknown, originRequestId?: string) => Promise<SuperagentConversation | null>;
|
|
33
|
+
stop: () => Promise<void>;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=useSuperagentConversation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSuperagentConversation.d.ts","sourceRoot":"","sources":["../../../src/useSuperagentConversation.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,wBAAwB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