@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,533 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FilesPanel = FilesPanel;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _lucideReactNative = require("lucide-react-native");
|
|
10
|
+
var _fileTreeUtils = require("./fileTreeUtils.js");
|
|
11
|
+
var _editorShellStyles = require("./editorShellStyles.js");
|
|
12
|
+
var _styles = require("./styles.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
function FilesPanel({
|
|
16
|
+
agent,
|
|
17
|
+
fileLoadError,
|
|
18
|
+
fileLoadFailed,
|
|
19
|
+
filePaths = [],
|
|
20
|
+
isLoading,
|
|
21
|
+
onOpenSandboxFile,
|
|
22
|
+
onRefreshFiles,
|
|
23
|
+
onSaveSandboxFile,
|
|
24
|
+
onUploadSandboxFiles
|
|
25
|
+
}) {
|
|
26
|
+
const [query, setQuery] = (0, _react.useState)('');
|
|
27
|
+
const [openedFile, setOpenedFile] = (0, _react.useState)(null);
|
|
28
|
+
const [draftContent, setDraftContent] = (0, _react.useState)('');
|
|
29
|
+
const [fileError, setFileError] = (0, _react.useState)(null);
|
|
30
|
+
const [loadingPath, setLoadingPath] = (0, _react.useState)(null);
|
|
31
|
+
const [isRefreshing, setIsRefreshing] = (0, _react.useState)(false);
|
|
32
|
+
const [isSaving, setIsSaving] = (0, _react.useState)(false);
|
|
33
|
+
const [isUploading, setIsUploading] = (0, _react.useState)(false);
|
|
34
|
+
const [uploadStatus, setUploadStatus] = (0, _react.useState)(null);
|
|
35
|
+
const {
|
|
36
|
+
fileCount,
|
|
37
|
+
folderCount,
|
|
38
|
+
tree
|
|
39
|
+
} = (0, _react.useMemo)(() => {
|
|
40
|
+
const primaryTree = (0, _fileTreeUtils.buildFileTree)(filePaths);
|
|
41
|
+
if (primaryTree.fileCount > 0 || primaryTree.folderCount > 0 || primaryTree.tree.length > 0) {
|
|
42
|
+
return primaryTree;
|
|
43
|
+
}
|
|
44
|
+
return (0, _fileTreeUtils.buildFileTree)(_fileTreeUtils.DEFAULT_SANDBOX_FILE_PATHS);
|
|
45
|
+
}, [filePaths]);
|
|
46
|
+
const allFiles = (0, _react.useMemo)(() => (0, _fileTreeUtils.flattenFileTree)(tree), [tree]);
|
|
47
|
+
const filteredFiles = (0, _react.useMemo)(() => {
|
|
48
|
+
const normalizedQuery = query.trim().toLowerCase();
|
|
49
|
+
if (!normalizedQuery) {
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
return allFiles.filter(path => path.toLowerCase().includes(normalizedQuery));
|
|
53
|
+
}, [allFiles, query]);
|
|
54
|
+
const openFile = async path => {
|
|
55
|
+
if (!onOpenSandboxFile) {
|
|
56
|
+
setFileError('File opening is not connected in this app build.');
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
setLoadingPath(path);
|
|
60
|
+
setFileError(null);
|
|
61
|
+
try {
|
|
62
|
+
const file = await onOpenSandboxFile({
|
|
63
|
+
agentId: agent.id,
|
|
64
|
+
path
|
|
65
|
+
});
|
|
66
|
+
setOpenedFile(file);
|
|
67
|
+
setDraftContent(file.content);
|
|
68
|
+
} catch (error) {
|
|
69
|
+
setFileError(error instanceof Error ? error.message : 'Failed to open file.');
|
|
70
|
+
} finally {
|
|
71
|
+
setLoadingPath(null);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
const refreshFiles = async () => {
|
|
75
|
+
if (!onRefreshFiles) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
setIsRefreshing(true);
|
|
79
|
+
setFileError(null);
|
|
80
|
+
try {
|
|
81
|
+
await onRefreshFiles(agent.id);
|
|
82
|
+
} catch (error) {
|
|
83
|
+
setFileError(error instanceof Error ? error.message : 'Failed to refresh files.');
|
|
84
|
+
} finally {
|
|
85
|
+
setIsRefreshing(false);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const uploadFiles = async () => {
|
|
89
|
+
if (!onUploadSandboxFiles) {
|
|
90
|
+
setFileError('Native sandbox upload is not connected in this app build.');
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
setIsUploading(true);
|
|
94
|
+
setFileError(null);
|
|
95
|
+
setUploadStatus(null);
|
|
96
|
+
try {
|
|
97
|
+
const result = await onUploadSandboxFiles({
|
|
98
|
+
agentId: agent.id
|
|
99
|
+
});
|
|
100
|
+
const uploadedCount = Array.isArray(result) ? result.length : 0;
|
|
101
|
+
setUploadStatus(uploadedCount > 0 ? `Uploaded ${uploadedCount} file${uploadedCount === 1 ? '' : 's'}.` : null);
|
|
102
|
+
} catch (error) {
|
|
103
|
+
setFileError(error instanceof Error ? error.message : 'Failed to upload files.');
|
|
104
|
+
} finally {
|
|
105
|
+
setIsUploading(false);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
const closeOpenedFile = () => {
|
|
109
|
+
setOpenedFile(null);
|
|
110
|
+
setDraftContent('');
|
|
111
|
+
};
|
|
112
|
+
const saveOpenedFile = async () => {
|
|
113
|
+
if (!openedFile || !onSaveSandboxFile || !(0, _fileTreeUtils.isEditableFile)(openedFile.path)) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
setIsSaving(true);
|
|
117
|
+
setFileError(null);
|
|
118
|
+
try {
|
|
119
|
+
await onSaveSandboxFile({
|
|
120
|
+
agentId: agent.id,
|
|
121
|
+
content: draftContent,
|
|
122
|
+
path: openedFile.path
|
|
123
|
+
});
|
|
124
|
+
setOpenedFile({
|
|
125
|
+
content: draftContent,
|
|
126
|
+
path: openedFile.path
|
|
127
|
+
});
|
|
128
|
+
} catch (error) {
|
|
129
|
+
setFileError(error instanceof Error ? error.message : 'Failed to save file.');
|
|
130
|
+
} finally {
|
|
131
|
+
setIsSaving(false);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
135
|
+
style: _editorShellStyles.editorShellStyles.settingsStack,
|
|
136
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
137
|
+
style: _editorShellStyles.editorShellStyles.panel,
|
|
138
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
139
|
+
style: _editorShellStyles.editorShellStyles.panelHeader,
|
|
140
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
141
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
142
|
+
style: _editorShellStyles.editorShellStyles.panelTitle,
|
|
143
|
+
children: "Sandbox files"
|
|
144
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
145
|
+
style: _editorShellStyles.editorShellStyles.panelSubtitle,
|
|
146
|
+
children: [fileCount, " files \xB7 ", folderCount, " folders"]
|
|
147
|
+
})]
|
|
148
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
149
|
+
style: _editorShellStyles.editorShellStyles.fileHeaderActions,
|
|
150
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
151
|
+
accessibilityLabel: "Upload files",
|
|
152
|
+
accessibilityRole: "button",
|
|
153
|
+
disabled: isUploading,
|
|
154
|
+
onPress: uploadFiles,
|
|
155
|
+
style: ({
|
|
156
|
+
pressed
|
|
157
|
+
}) => [_editorShellStyles.editorShellStyles.fileIconButton, pressed && _styles.styles.pressed, isUploading && _editorShellStyles.editorShellStyles.disabledAction],
|
|
158
|
+
children: isUploading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
159
|
+
color: "#F4F4F5",
|
|
160
|
+
size: "small"
|
|
161
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Upload, {
|
|
162
|
+
color: "#F4F4F5",
|
|
163
|
+
size: 16,
|
|
164
|
+
strokeWidth: 2.4
|
|
165
|
+
})
|
|
166
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
167
|
+
accessibilityLabel: "Refresh files",
|
|
168
|
+
accessibilityRole: "button",
|
|
169
|
+
disabled: isRefreshing || isLoading,
|
|
170
|
+
onPress: refreshFiles,
|
|
171
|
+
style: ({
|
|
172
|
+
pressed
|
|
173
|
+
}) => [_editorShellStyles.editorShellStyles.fileIconButton, pressed && _styles.styles.pressed, (isRefreshing || isLoading) && _editorShellStyles.editorShellStyles.disabledAction],
|
|
174
|
+
children: isRefreshing || isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
175
|
+
color: "#F4F4F5",
|
|
176
|
+
size: "small"
|
|
177
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.RefreshCw, {
|
|
178
|
+
color: "#F4F4F5",
|
|
179
|
+
size: 16,
|
|
180
|
+
strokeWidth: 2.4
|
|
181
|
+
})
|
|
182
|
+
})]
|
|
183
|
+
})]
|
|
184
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
185
|
+
style: _editorShellStyles.editorShellStyles.fileSearchWrap,
|
|
186
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Search, {
|
|
187
|
+
color: "#A1A1AA",
|
|
188
|
+
size: 16,
|
|
189
|
+
strokeWidth: 2.4
|
|
190
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
191
|
+
autoCapitalize: "none",
|
|
192
|
+
autoCorrect: false,
|
|
193
|
+
clearButtonMode: "while-editing",
|
|
194
|
+
onChangeText: setQuery,
|
|
195
|
+
placeholder: "Search files",
|
|
196
|
+
placeholderTextColor: "#8E8E93",
|
|
197
|
+
returnKeyType: "search",
|
|
198
|
+
style: _editorShellStyles.editorShellStyles.fileSearchInput,
|
|
199
|
+
value: query
|
|
200
|
+
})]
|
|
201
|
+
}), fileError ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
202
|
+
style: _editorShellStyles.editorShellStyles.fileStatusError,
|
|
203
|
+
children: fileError
|
|
204
|
+
}) : null, uploadStatus ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
205
|
+
style: _editorShellStyles.editorShellStyles.fileStatusText,
|
|
206
|
+
children: uploadStatus
|
|
207
|
+
}) : null, fileLoadFailed ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
208
|
+
style: _editorShellStyles.editorShellStyles.fileStatusBanner,
|
|
209
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.AlertCircle, {
|
|
210
|
+
color: "#FBBF24",
|
|
211
|
+
size: 15,
|
|
212
|
+
strokeWidth: 2.4
|
|
213
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
214
|
+
style: _editorShellStyles.editorShellStyles.fileStatusBannerText,
|
|
215
|
+
children: "Files API did not return a list. Showing the default sandbox folders."
|
|
216
|
+
})]
|
|
217
|
+
}) : null, fileLoadFailed && fileLoadError ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
218
|
+
style: _editorShellStyles.editorShellStyles.fileStatusError,
|
|
219
|
+
children: fileLoadError
|
|
220
|
+
}) : null, isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
221
|
+
style: _editorShellStyles.editorShellStyles.loadingPanel,
|
|
222
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
223
|
+
color: "#FF5A1F"
|
|
224
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
225
|
+
style: _editorShellStyles.editorShellStyles.loadingText,
|
|
226
|
+
children: "Loading files..."
|
|
227
|
+
})]
|
|
228
|
+
}) : fileCount === 0 && folderCount === 0 && tree.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
229
|
+
style: _editorShellStyles.editorShellStyles.emptyPanel,
|
|
230
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Folder, {
|
|
231
|
+
color: "#8E8E93",
|
|
232
|
+
size: 22,
|
|
233
|
+
strokeWidth: 2.2
|
|
234
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
235
|
+
style: _editorShellStyles.editorShellStyles.emptyTitle,
|
|
236
|
+
children: "No files yet"
|
|
237
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
238
|
+
style: _editorShellStyles.editorShellStyles.emptyBody,
|
|
239
|
+
children: "Generated and uploaded sandbox files will appear here."
|
|
240
|
+
})]
|
|
241
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
242
|
+
style: _editorShellStyles.editorShellStyles.fileTreeWrap,
|
|
243
|
+
children: query.trim() ? filteredFiles.length > 0 ? filteredFiles.map(path => /*#__PURE__*/(0, _jsxRuntime.jsx)(FileSearchRow, {
|
|
244
|
+
isLoading: loadingPath === path,
|
|
245
|
+
onPress: () => openFile(path),
|
|
246
|
+
path: path
|
|
247
|
+
}, path)) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
248
|
+
style: _editorShellStyles.editorShellStyles.emptyPanel,
|
|
249
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Search, {
|
|
250
|
+
color: "#8E8E93",
|
|
251
|
+
size: 22,
|
|
252
|
+
strokeWidth: 2.2
|
|
253
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
254
|
+
style: _editorShellStyles.editorShellStyles.emptyTitle,
|
|
255
|
+
children: "No matching files"
|
|
256
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
257
|
+
style: _editorShellStyles.editorShellStyles.emptyBody,
|
|
258
|
+
children: "Try another folder or file name."
|
|
259
|
+
})]
|
|
260
|
+
}) : tree.map(node => /*#__PURE__*/(0, _jsxRuntime.jsx)(FileTreeNode, {
|
|
261
|
+
isLoadingPath: loadingPath,
|
|
262
|
+
node: node,
|
|
263
|
+
onFilePress: openFile
|
|
264
|
+
}, node.name))
|
|
265
|
+
})]
|
|
266
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(FileEditorModal, {
|
|
267
|
+
draftContent: draftContent,
|
|
268
|
+
file: openedFile,
|
|
269
|
+
isSaving: isSaving,
|
|
270
|
+
onChangeDraft: setDraftContent,
|
|
271
|
+
onClose: closeOpenedFile,
|
|
272
|
+
onSave: saveOpenedFile
|
|
273
|
+
})]
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
function FileTreeNode({
|
|
277
|
+
depth = 0,
|
|
278
|
+
isLoadingPath,
|
|
279
|
+
node,
|
|
280
|
+
onFilePress,
|
|
281
|
+
parentPath = ''
|
|
282
|
+
}) {
|
|
283
|
+
const [expanded, setExpanded] = (0, _react.useState)(depth < 1);
|
|
284
|
+
const isFolder = node.type === 'folder';
|
|
285
|
+
const path = parentPath ? `${parentPath}/${node.name}` : node.name;
|
|
286
|
+
if (!isFolder) {
|
|
287
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(FileTreeRow, {
|
|
288
|
+
depth: depth,
|
|
289
|
+
isLoading: isLoadingPath === path,
|
|
290
|
+
onPress: () => onFilePress(path),
|
|
291
|
+
path: path
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
295
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
296
|
+
accessibilityRole: "button",
|
|
297
|
+
onPress: () => setExpanded(current => !current),
|
|
298
|
+
style: ({
|
|
299
|
+
pressed
|
|
300
|
+
}) => [_editorShellStyles.editorShellStyles.fileTreeRow, {
|
|
301
|
+
paddingLeft: 10 + depth * 14
|
|
302
|
+
}, pressed && _styles.styles.pressed],
|
|
303
|
+
children: [expanded ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.ChevronDown, {
|
|
304
|
+
color: "#8E8E93",
|
|
305
|
+
size: 16,
|
|
306
|
+
strokeWidth: 2.5
|
|
307
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.ChevronRight, {
|
|
308
|
+
color: "#8E8E93",
|
|
309
|
+
size: 16,
|
|
310
|
+
strokeWidth: 2.5
|
|
311
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Folder, {
|
|
312
|
+
color: "#F59E0B",
|
|
313
|
+
size: 17,
|
|
314
|
+
strokeWidth: 2.3
|
|
315
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
316
|
+
numberOfLines: 1,
|
|
317
|
+
style: _editorShellStyles.editorShellStyles.fileFolderName,
|
|
318
|
+
children: node.name
|
|
319
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
320
|
+
style: _editorShellStyles.editorShellStyles.fileFolderCount,
|
|
321
|
+
children: (0, _fileTreeUtils.flattenFileTree)(node.children ?? []).length
|
|
322
|
+
})]
|
|
323
|
+
}), expanded ? node.children?.map(child => /*#__PURE__*/(0, _jsxRuntime.jsx)(FileTreeNode, {
|
|
324
|
+
depth: depth + 1,
|
|
325
|
+
isLoadingPath: isLoadingPath,
|
|
326
|
+
node: child,
|
|
327
|
+
onFilePress: onFilePress,
|
|
328
|
+
parentPath: path
|
|
329
|
+
}, child.name)) : null]
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
function FileSearchRow({
|
|
333
|
+
isLoading,
|
|
334
|
+
onPress,
|
|
335
|
+
path
|
|
336
|
+
}) {
|
|
337
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
338
|
+
accessibilityRole: "button",
|
|
339
|
+
onPress: onPress,
|
|
340
|
+
style: ({
|
|
341
|
+
pressed
|
|
342
|
+
}) => [_editorShellStyles.editorShellStyles.fileSearchRow, pressed && _styles.styles.pressed],
|
|
343
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(FileKindIcon, {
|
|
344
|
+
path: path
|
|
345
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
346
|
+
style: _editorShellStyles.editorShellStyles.fileRowText,
|
|
347
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
348
|
+
numberOfLines: 1,
|
|
349
|
+
style: _editorShellStyles.editorShellStyles.fileName,
|
|
350
|
+
children: (0, _fileTreeUtils.getFileName)(path)
|
|
351
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
352
|
+
numberOfLines: 1,
|
|
353
|
+
style: _editorShellStyles.editorShellStyles.filePath,
|
|
354
|
+
children: (0, _fileTreeUtils.getFolderPath)(path) || 'root'
|
|
355
|
+
})]
|
|
356
|
+
}), isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
357
|
+
color: "#F4F4F5",
|
|
358
|
+
size: "small"
|
|
359
|
+
}) : null]
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
function FileTreeRow({
|
|
363
|
+
depth,
|
|
364
|
+
isLoading,
|
|
365
|
+
onPress,
|
|
366
|
+
path
|
|
367
|
+
}) {
|
|
368
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
369
|
+
accessibilityRole: "button",
|
|
370
|
+
onPress: onPress,
|
|
371
|
+
style: ({
|
|
372
|
+
pressed
|
|
373
|
+
}) => [_editorShellStyles.editorShellStyles.fileTreeRow, {
|
|
374
|
+
paddingLeft: 32 + depth * 14
|
|
375
|
+
}, pressed && _styles.styles.pressed],
|
|
376
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(FileKindIcon, {
|
|
377
|
+
path: path
|
|
378
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
379
|
+
numberOfLines: 1,
|
|
380
|
+
style: _editorShellStyles.editorShellStyles.fileName,
|
|
381
|
+
children: (0, _fileTreeUtils.getFileName)(path)
|
|
382
|
+
}), isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
383
|
+
color: "#F4F4F5",
|
|
384
|
+
size: "small"
|
|
385
|
+
}) : null]
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
function FileKindIcon({
|
|
389
|
+
path
|
|
390
|
+
}) {
|
|
391
|
+
const category = (0, _fileTreeUtils.getFileCategory)(path);
|
|
392
|
+
const Icon = category === 'image' ? _lucideReactNative.FileImage : category === 'code' || category === 'html' ? _lucideReactNative.FileCode : category === 'markdown' || category === 'text' ? _lucideReactNative.FileText : _lucideReactNative.File;
|
|
393
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
|
394
|
+
color: category === 'image' ? '#67E8F9' : '#A1A1AA',
|
|
395
|
+
size: 16,
|
|
396
|
+
strokeWidth: 2.3
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
function FileEditorModal({
|
|
400
|
+
draftContent,
|
|
401
|
+
file,
|
|
402
|
+
isSaving,
|
|
403
|
+
onChangeDraft,
|
|
404
|
+
onClose,
|
|
405
|
+
onSave
|
|
406
|
+
}) {
|
|
407
|
+
if (!file) {
|
|
408
|
+
return null;
|
|
409
|
+
}
|
|
410
|
+
const editable = (0, _fileTreeUtils.isEditableFile)(file.path);
|
|
411
|
+
const isDirty = draftContent !== file.content;
|
|
412
|
+
const category = (0, _fileTreeUtils.getFileCategory)(file.path);
|
|
413
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
414
|
+
animationType: "slide",
|
|
415
|
+
presentationStyle: "pageSheet",
|
|
416
|
+
visible: !!file,
|
|
417
|
+
onRequestClose: onClose,
|
|
418
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
419
|
+
style: _editorShellStyles.editorShellStyles.fileModalRoot,
|
|
420
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
421
|
+
style: _editorShellStyles.editorShellStyles.fileModalHeader,
|
|
422
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
423
|
+
accessibilityLabel: "Close file",
|
|
424
|
+
accessibilityRole: "button",
|
|
425
|
+
onPress: onClose,
|
|
426
|
+
style: ({
|
|
427
|
+
pressed
|
|
428
|
+
}) => [_editorShellStyles.editorShellStyles.fileIconButton, pressed && _styles.styles.pressed],
|
|
429
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.X, {
|
|
430
|
+
color: "#F4F4F5",
|
|
431
|
+
size: 18,
|
|
432
|
+
strokeWidth: 2.5
|
|
433
|
+
})
|
|
434
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
435
|
+
style: _editorShellStyles.editorShellStyles.fileModalTitleWrap,
|
|
436
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
437
|
+
numberOfLines: 1,
|
|
438
|
+
style: _editorShellStyles.editorShellStyles.fileModalTitle,
|
|
439
|
+
children: (0, _fileTreeUtils.getFileName)(file.path)
|
|
440
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
441
|
+
numberOfLines: 1,
|
|
442
|
+
style: _editorShellStyles.editorShellStyles.fileModalPath,
|
|
443
|
+
children: file.path
|
|
444
|
+
})]
|
|
445
|
+
}), editable ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
446
|
+
accessibilityLabel: "Save file",
|
|
447
|
+
accessibilityRole: "button",
|
|
448
|
+
disabled: !isDirty || isSaving,
|
|
449
|
+
onPress: onSave,
|
|
450
|
+
style: ({
|
|
451
|
+
pressed
|
|
452
|
+
}) => [_editorShellStyles.editorShellStyles.fileSaveButton, (!isDirty || isSaving) && _editorShellStyles.editorShellStyles.disabledAction, pressed && _styles.styles.pressed],
|
|
453
|
+
children: [isSaving ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
454
|
+
color: "#111111",
|
|
455
|
+
size: "small"
|
|
456
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Save, {
|
|
457
|
+
color: "#111111",
|
|
458
|
+
size: 16,
|
|
459
|
+
strokeWidth: 2.5
|
|
460
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
461
|
+
style: _editorShellStyles.editorShellStyles.fileSaveText,
|
|
462
|
+
children: "Save"
|
|
463
|
+
})]
|
|
464
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
465
|
+
style: _editorShellStyles.editorShellStyles.fileReadOnlyBadge,
|
|
466
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
467
|
+
style: _editorShellStyles.editorShellStyles.fileReadOnlyText,
|
|
468
|
+
children: "Read only"
|
|
469
|
+
})
|
|
470
|
+
})]
|
|
471
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
472
|
+
style: _editorShellStyles.editorShellStyles.fileEditorBody,
|
|
473
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(FileContentView, {
|
|
474
|
+
category: category,
|
|
475
|
+
content: draftContent,
|
|
476
|
+
editable: editable,
|
|
477
|
+
onChangeText: onChangeDraft,
|
|
478
|
+
path: file.path
|
|
479
|
+
})
|
|
480
|
+
})]
|
|
481
|
+
})
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
function FileContentView({
|
|
485
|
+
category,
|
|
486
|
+
content,
|
|
487
|
+
editable,
|
|
488
|
+
onChangeText,
|
|
489
|
+
path
|
|
490
|
+
}) {
|
|
491
|
+
if (category === 'image' && (0, _fileTreeUtils.getImageMimeType)(path) !== 'image/svg+xml') {
|
|
492
|
+
const source = content.startsWith('data:') ? content : `data:${(0, _fileTreeUtils.getImageMimeType)(path)};base64,${content}`;
|
|
493
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
494
|
+
contentContainerStyle: _editorShellStyles.editorShellStyles.fileImagePreviewWrap,
|
|
495
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
496
|
+
resizeMode: "contain",
|
|
497
|
+
source: {
|
|
498
|
+
uri: source
|
|
499
|
+
},
|
|
500
|
+
style: _editorShellStyles.editorShellStyles.fileImagePreview
|
|
501
|
+
})
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
if (category === 'pdf') {
|
|
505
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
506
|
+
style: _editorShellStyles.editorShellStyles.fileUnsupportedPreview,
|
|
507
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.File, {
|
|
508
|
+
color: "#A1A1AA",
|
|
509
|
+
size: 32,
|
|
510
|
+
strokeWidth: 2.2
|
|
511
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
512
|
+
style: _editorShellStyles.editorShellStyles.fileUnsupportedTitle,
|
|
513
|
+
children: "PDF preview"
|
|
514
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
515
|
+
style: _editorShellStyles.editorShellStyles.fileUnsupportedBody,
|
|
516
|
+
children: "This file is available in the sandbox. Native PDF viewing is not enabled in this build yet."
|
|
517
|
+
})]
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
521
|
+
autoCapitalize: "none",
|
|
522
|
+
autoCorrect: false,
|
|
523
|
+
editable: editable,
|
|
524
|
+
multiline: true,
|
|
525
|
+
onChangeText: onChangeText,
|
|
526
|
+
scrollEnabled: true,
|
|
527
|
+
spellCheck: false,
|
|
528
|
+
style: [_editorShellStyles.editorShellStyles.fileSourceInput, !editable && _editorShellStyles.editorShellStyles.fileSourceInputReadOnly],
|
|
529
|
+
textAlignVertical: "top",
|
|
530
|
+
value: content
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
//# sourceMappingURL=FilesPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_lucideReactNative","_fileTreeUtils","_editorShellStyles","_styles","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FilesPanel","agent","fileLoadError","fileLoadFailed","filePaths","isLoading","onOpenSandboxFile","onRefreshFiles","onSaveSandboxFile","onUploadSandboxFiles","query","setQuery","useState","openedFile","setOpenedFile","draftContent","setDraftContent","fileError","setFileError","loadingPath","setLoadingPath","isRefreshing","setIsRefreshing","isSaving","setIsSaving","isUploading","setIsUploading","uploadStatus","setUploadStatus","fileCount","folderCount","tree","useMemo","primaryTree","buildFileTree","length","DEFAULT_SANDBOX_FILE_PATHS","allFiles","flattenFileTree","filteredFiles","normalizedQuery","trim","toLowerCase","filter","path","includes","openFile","file","agentId","id","content","error","Error","message","refreshFiles","uploadFiles","result","uploadedCount","Array","isArray","closeOpenedFile","saveOpenedFile","isEditableFile","jsxs","View","style","editorShellStyles","settingsStack","children","panel","panelHeader","jsx","Text","panelTitle","panelSubtitle","fileHeaderActions","Pressable","accessibilityLabel","accessibilityRole","disabled","onPress","pressed","fileIconButton","styles","disabledAction","ActivityIndicator","color","size","Upload","strokeWidth","RefreshCw","fileSearchWrap","Search","TextInput","autoCapitalize","autoCorrect","clearButtonMode","onChangeText","placeholder","placeholderTextColor","returnKeyType","fileSearchInput","value","fileStatusError","fileStatusText","fileStatusBanner","AlertCircle","fileStatusBannerText","loadingPanel","loadingText","emptyPanel","Folder","emptyTitle","emptyBody","fileTreeWrap","map","FileSearchRow","node","FileTreeNode","isLoadingPath","onFilePress","name","FileEditorModal","onChangeDraft","onClose","onSave","depth","parentPath","expanded","setExpanded","isFolder","type","FileTreeRow","current","fileTreeRow","paddingLeft","ChevronDown","ChevronRight","numberOfLines","fileFolderName","fileFolderCount","child","fileSearchRow","FileKindIcon","fileRowText","fileName","getFileName","filePath","getFolderPath","category","getFileCategory","Icon","FileImage","FileCode","FileText","File","editable","isDirty","Modal","animationType","presentationStyle","visible","onRequestClose","fileModalRoot","fileModalHeader","X","fileModalTitleWrap","fileModalTitle","fileModalPath","fileSaveButton","Save","fileSaveText","fileReadOnlyBadge","fileReadOnlyText","fileEditorBody","FileContentView","getImageMimeType","source","startsWith","ScrollView","contentContainerStyle","fileImagePreviewWrap","Image","resizeMode","uri","fileImagePreview","fileUnsupportedPreview","fileUnsupportedTitle","fileUnsupportedBody","multiline","scrollEnabled","spellCheck","fileSourceInput","fileSourceInputReadOnly","textAlignVertical"],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