@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.
Files changed (465) hide show
  1. package/README.md +132 -0
  2. package/lib/commonjs/AgentSettingsPanel.js +1067 -0
  3. package/lib/commonjs/AgentSettingsPanel.js.map +1 -0
  4. package/lib/commonjs/AgentSphereIcon.js +243 -0
  5. package/lib/commonjs/AgentSphereIcon.js.map +1 -0
  6. package/lib/commonjs/AttachmentPickerStatusModal.js +96 -0
  7. package/lib/commonjs/AttachmentPickerStatusModal.js.map +1 -0
  8. package/lib/commonjs/AttachmentPreviewStrip.js +49 -0
  9. package/lib/commonjs/AttachmentPreviewStrip.js.map +1 -0
  10. package/lib/commonjs/ChannelsPanel.js +733 -0
  11. package/lib/commonjs/ChannelsPanel.js.map +1 -0
  12. package/lib/commonjs/ConversationChat.js +219 -0
  13. package/lib/commonjs/ConversationChat.js.map +1 -0
  14. package/lib/commonjs/ConversationComposer.js +323 -0
  15. package/lib/commonjs/ConversationComposer.js.map +1 -0
  16. package/lib/commonjs/ConversationMessageList.js +105 -0
  17. package/lib/commonjs/ConversationMessageList.js.map +1 -0
  18. package/lib/commonjs/ConversationScreen.js +241 -0
  19. package/lib/commonjs/ConversationScreen.js.map +1 -0
  20. package/lib/commonjs/EditorDrawer.js +1127 -0
  21. package/lib/commonjs/EditorDrawer.js.map +1 -0
  22. package/lib/commonjs/EditorTabPanel.js +28 -0
  23. package/lib/commonjs/EditorTabPanel.js.map +1 -0
  24. package/lib/commonjs/FilesPanel.js +533 -0
  25. package/lib/commonjs/FilesPanel.js.map +1 -0
  26. package/lib/commonjs/MarkdownText.js +313 -0
  27. package/lib/commonjs/MarkdownText.js.map +1 -0
  28. package/lib/commonjs/MessageActionBar.js +90 -0
  29. package/lib/commonjs/MessageActionBar.js.map +1 -0
  30. package/lib/commonjs/RenameAgentModal.js +99 -0
  31. package/lib/commonjs/RenameAgentModal.js.map +1 -0
  32. package/lib/commonjs/ShareAgentModal.js +349 -0
  33. package/lib/commonjs/ShareAgentModal.js.map +1 -0
  34. package/lib/commonjs/ShareAgentModal.styles.js +236 -0
  35. package/lib/commonjs/ShareAgentModal.styles.js.map +1 -0
  36. package/lib/commonjs/SuperagentHomeScreen.js +316 -0
  37. package/lib/commonjs/SuperagentHomeScreen.js.map +1 -0
  38. package/lib/commonjs/ToolApprovalCard.js +542 -0
  39. package/lib/commonjs/ToolApprovalCard.js.map +1 -0
  40. package/lib/commonjs/ToolCallSummary.js +632 -0
  41. package/lib/commonjs/ToolCallSummary.js.map +1 -0
  42. package/lib/commonjs/agentSphereStyles.js +38 -0
  43. package/lib/commonjs/agentSphereStyles.js.map +1 -0
  44. package/lib/commonjs/apiClient.js +158 -0
  45. package/lib/commonjs/apiClient.js.map +1 -0
  46. package/lib/commonjs/attachmentFileHelpers.js +104 -0
  47. package/lib/commonjs/attachmentFileHelpers.js.map +1 -0
  48. package/lib/commonjs/attachmentUpload.js +87 -0
  49. package/lib/commonjs/attachmentUpload.js.map +1 -0
  50. package/lib/commonjs/composerStyles.js +248 -0
  51. package/lib/commonjs/composerStyles.js.map +1 -0
  52. package/lib/commonjs/connectorBrandIcons.js +82 -0
  53. package/lib/commonjs/connectorBrandIcons.js.map +1 -0
  54. package/lib/commonjs/connectorCatalog.js +377 -0
  55. package/lib/commonjs/connectorCatalog.js.map +1 -0
  56. package/lib/commonjs/constants.js +15 -0
  57. package/lib/commonjs/constants.js.map +1 -0
  58. package/lib/commonjs/conversationParts.js +273 -0
  59. package/lib/commonjs/conversationParts.js.map +1 -0
  60. package/lib/commonjs/conversationRuntime.js +144 -0
  61. package/lib/commonjs/conversationRuntime.js.map +1 -0
  62. package/lib/commonjs/conversationStyles.js +758 -0
  63. package/lib/commonjs/conversationStyles.js.map +1 -0
  64. package/lib/commonjs/editorShellStyles.js +1032 -0
  65. package/lib/commonjs/editorShellStyles.js.map +1 -0
  66. package/lib/commonjs/editorTabs.js +42 -0
  67. package/lib/commonjs/editorTabs.js.map +1 -0
  68. package/lib/commonjs/fileTreeUtils.js +133 -0
  69. package/lib/commonjs/fileTreeUtils.js.map +1 -0
  70. package/lib/commonjs/index.js +110 -0
  71. package/lib/commonjs/index.js.map +1 -0
  72. package/lib/commonjs/markdownStyles.js +157 -0
  73. package/lib/commonjs/markdownStyles.js.map +1 -0
  74. package/lib/commonjs/mediaUtils.js +61 -0
  75. package/lib/commonjs/mediaUtils.js.map +1 -0
  76. package/lib/commonjs/messageActionStyles.js +45 -0
  77. package/lib/commonjs/messageActionStyles.js.map +1 -0
  78. package/lib/commonjs/messageUtils.js +55 -0
  79. package/lib/commonjs/messageUtils.js.map +1 -0
  80. package/lib/commonjs/nativeActionSheet.js +21 -0
  81. package/lib/commonjs/nativeActionSheet.js.map +1 -0
  82. package/lib/commonjs/nativeActionSheet.web.js +10 -0
  83. package/lib/commonjs/nativeActionSheet.web.js.map +1 -0
  84. package/lib/commonjs/package.json +1 -0
  85. package/lib/commonjs/paperTheme.js +59 -0
  86. package/lib/commonjs/paperTheme.js.map +1 -0
  87. package/lib/commonjs/realtimeClient.js +99 -0
  88. package/lib/commonjs/realtimeClient.js.map +1 -0
  89. package/lib/commonjs/renameAgentModalStyles.js +83 -0
  90. package/lib/commonjs/renameAgentModalStyles.js.map +1 -0
  91. package/lib/commonjs/screenParts.js +220 -0
  92. package/lib/commonjs/screenParts.js.map +1 -0
  93. package/lib/commonjs/styles.js +343 -0
  94. package/lib/commonjs/styles.js.map +1 -0
  95. package/lib/commonjs/superagentApiClient.js +613 -0
  96. package/lib/commonjs/superagentApiClient.js.map +1 -0
  97. package/lib/commonjs/types.js +6 -0
  98. package/lib/commonjs/types.js.map +1 -0
  99. package/lib/commonjs/useSuperagentAttachmentPicker.js +80 -0
  100. package/lib/commonjs/useSuperagentAttachmentPicker.js.map +1 -0
  101. package/lib/commonjs/useSuperagentConversation.js +216 -0
  102. package/lib/commonjs/useSuperagentConversation.js.map +1 -0
  103. package/lib/commonjs/useSuperagentRuntime.js +1207 -0
  104. package/lib/commonjs/useSuperagentRuntime.js.map +1 -0
  105. package/lib/module/AgentSettingsPanel.js +1062 -0
  106. package/lib/module/AgentSettingsPanel.js.map +1 -0
  107. package/lib/module/AgentSphereIcon.js +237 -0
  108. package/lib/module/AgentSphereIcon.js.map +1 -0
  109. package/lib/module/AttachmentPickerStatusModal.js +91 -0
  110. package/lib/module/AttachmentPickerStatusModal.js.map +1 -0
  111. package/lib/module/AttachmentPreviewStrip.js +44 -0
  112. package/lib/module/AttachmentPreviewStrip.js.map +1 -0
  113. package/lib/module/ChannelsPanel.js +728 -0
  114. package/lib/module/ChannelsPanel.js.map +1 -0
  115. package/lib/module/ConversationChat.js +214 -0
  116. package/lib/module/ConversationChat.js.map +1 -0
  117. package/lib/module/ConversationComposer.js +318 -0
  118. package/lib/module/ConversationComposer.js.map +1 -0
  119. package/lib/module/ConversationMessageList.js +100 -0
  120. package/lib/module/ConversationMessageList.js.map +1 -0
  121. package/lib/module/ConversationScreen.js +236 -0
  122. package/lib/module/ConversationScreen.js.map +1 -0
  123. package/lib/module/EditorDrawer.js +1122 -0
  124. package/lib/module/EditorDrawer.js.map +1 -0
  125. package/lib/module/EditorTabPanel.js +23 -0
  126. package/lib/module/EditorTabPanel.js.map +1 -0
  127. package/lib/module/FilesPanel.js +528 -0
  128. package/lib/module/FilesPanel.js.map +1 -0
  129. package/lib/module/MarkdownText.js +308 -0
  130. package/lib/module/MarkdownText.js.map +1 -0
  131. package/lib/module/MessageActionBar.js +85 -0
  132. package/lib/module/MessageActionBar.js.map +1 -0
  133. package/lib/module/RenameAgentModal.js +94 -0
  134. package/lib/module/RenameAgentModal.js.map +1 -0
  135. package/lib/module/ShareAgentModal.js +344 -0
  136. package/lib/module/ShareAgentModal.js.map +1 -0
  137. package/lib/module/ShareAgentModal.styles.js +232 -0
  138. package/lib/module/ShareAgentModal.styles.js.map +1 -0
  139. package/lib/module/SuperagentHomeScreen.js +311 -0
  140. package/lib/module/SuperagentHomeScreen.js.map +1 -0
  141. package/lib/module/ToolApprovalCard.js +537 -0
  142. package/lib/module/ToolApprovalCard.js.map +1 -0
  143. package/lib/module/ToolCallSummary.js +627 -0
  144. package/lib/module/ToolCallSummary.js.map +1 -0
  145. package/lib/module/agentSphereStyles.js +34 -0
  146. package/lib/module/agentSphereStyles.js.map +1 -0
  147. package/lib/module/apiClient.js +154 -0
  148. package/lib/module/apiClient.js.map +1 -0
  149. package/lib/module/attachmentFileHelpers.js +97 -0
  150. package/lib/module/attachmentFileHelpers.js.map +1 -0
  151. package/lib/module/attachmentUpload.js +82 -0
  152. package/lib/module/attachmentUpload.js.map +1 -0
  153. package/lib/module/composerStyles.js +244 -0
  154. package/lib/module/composerStyles.js.map +1 -0
  155. package/lib/module/connectorBrandIcons.js +76 -0
  156. package/lib/module/connectorBrandIcons.js.map +1 -0
  157. package/lib/module/connectorCatalog.js +373 -0
  158. package/lib/module/connectorCatalog.js.map +1 -0
  159. package/lib/module/constants.js +10 -0
  160. package/lib/module/constants.js.map +1 -0
  161. package/lib/module/conversationParts.js +266 -0
  162. package/lib/module/conversationParts.js.map +1 -0
  163. package/lib/module/conversationRuntime.js +129 -0
  164. package/lib/module/conversationRuntime.js.map +1 -0
  165. package/lib/module/conversationStyles.js +754 -0
  166. package/lib/module/conversationStyles.js.map +1 -0
  167. package/lib/module/editorShellStyles.js +1028 -0
  168. package/lib/module/editorShellStyles.js.map +1 -0
  169. package/lib/module/editorTabs.js +37 -0
  170. package/lib/module/editorTabs.js.map +1 -0
  171. package/lib/module/fileTreeUtils.js +120 -0
  172. package/lib/module/fileTreeUtils.js.map +1 -0
  173. package/lib/module/index.js +17 -0
  174. package/lib/module/index.js.map +1 -0
  175. package/lib/module/markdownStyles.js +153 -0
  176. package/lib/module/markdownStyles.js.map +1 -0
  177. package/lib/module/mediaUtils.js +53 -0
  178. package/lib/module/mediaUtils.js.map +1 -0
  179. package/lib/module/messageActionStyles.js +41 -0
  180. package/lib/module/messageActionStyles.js.map +1 -0
  181. package/lib/module/messageUtils.js +46 -0
  182. package/lib/module/messageUtils.js.map +1 -0
  183. package/lib/module/nativeActionSheet.js +17 -0
  184. package/lib/module/nativeActionSheet.js.map +1 -0
  185. package/lib/module/nativeActionSheet.web.js +6 -0
  186. package/lib/module/nativeActionSheet.web.js.map +1 -0
  187. package/lib/module/package.json +1 -0
  188. package/lib/module/paperTheme.js +55 -0
  189. package/lib/module/paperTheme.js.map +1 -0
  190. package/lib/module/realtimeClient.js +95 -0
  191. package/lib/module/realtimeClient.js.map +1 -0
  192. package/lib/module/renameAgentModalStyles.js +79 -0
  193. package/lib/module/renameAgentModalStyles.js.map +1 -0
  194. package/lib/module/screenParts.js +210 -0
  195. package/lib/module/screenParts.js.map +1 -0
  196. package/lib/module/styles.js +339 -0
  197. package/lib/module/styles.js.map +1 -0
  198. package/lib/module/superagentApiClient.js +609 -0
  199. package/lib/module/superagentApiClient.js.map +1 -0
  200. package/lib/module/types.js +4 -0
  201. package/lib/module/types.js.map +1 -0
  202. package/lib/module/useSuperagentAttachmentPicker.js +75 -0
  203. package/lib/module/useSuperagentAttachmentPicker.js.map +1 -0
  204. package/lib/module/useSuperagentConversation.js +212 -0
  205. package/lib/module/useSuperagentConversation.js.map +1 -0
  206. package/lib/module/useSuperagentRuntime.js +1203 -0
  207. package/lib/module/useSuperagentRuntime.js.map +1 -0
  208. package/lib/typescript/commonjs/AgentSettingsPanel.d.ts +19 -0
  209. package/lib/typescript/commonjs/AgentSettingsPanel.d.ts.map +1 -0
  210. package/lib/typescript/commonjs/AgentSphereIcon.d.ts +15 -0
  211. package/lib/typescript/commonjs/AgentSphereIcon.d.ts.map +1 -0
  212. package/lib/typescript/commonjs/AttachmentPickerStatusModal.d.ts +8 -0
  213. package/lib/typescript/commonjs/AttachmentPickerStatusModal.d.ts.map +1 -0
  214. package/lib/typescript/commonjs/AttachmentPreviewStrip.d.ts +7 -0
  215. package/lib/typescript/commonjs/AttachmentPreviewStrip.d.ts.map +1 -0
  216. package/lib/typescript/commonjs/ChannelsPanel.d.ts +21 -0
  217. package/lib/typescript/commonjs/ChannelsPanel.d.ts.map +1 -0
  218. package/lib/typescript/commonjs/ConversationChat.d.ts +22 -0
  219. package/lib/typescript/commonjs/ConversationChat.d.ts.map +1 -0
  220. package/lib/typescript/commonjs/ConversationComposer.d.ts +24 -0
  221. package/lib/typescript/commonjs/ConversationComposer.d.ts.map +1 -0
  222. package/lib/typescript/commonjs/ConversationMessageList.d.ts +17 -0
  223. package/lib/typescript/commonjs/ConversationMessageList.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/ConversationScreen.d.ts +80 -0
  225. package/lib/typescript/commonjs/ConversationScreen.d.ts.map +1 -0
  226. package/lib/typescript/commonjs/EditorDrawer.d.ts +67 -0
  227. package/lib/typescript/commonjs/EditorDrawer.d.ts.map +1 -0
  228. package/lib/typescript/commonjs/EditorTabPanel.d.ts +6 -0
  229. package/lib/typescript/commonjs/EditorTabPanel.d.ts.map +1 -0
  230. package/lib/typescript/commonjs/FilesPanel.d.ts +14 -0
  231. package/lib/typescript/commonjs/FilesPanel.d.ts.map +1 -0
  232. package/lib/typescript/commonjs/MarkdownText.d.ts +10 -0
  233. package/lib/typescript/commonjs/MarkdownText.d.ts.map +1 -0
  234. package/lib/typescript/commonjs/MessageActionBar.d.ts +8 -0
  235. package/lib/typescript/commonjs/MessageActionBar.d.ts.map +1 -0
  236. package/lib/typescript/commonjs/RenameAgentModal.d.ts +10 -0
  237. package/lib/typescript/commonjs/RenameAgentModal.d.ts.map +1 -0
  238. package/lib/typescript/commonjs/ShareAgentModal.d.ts +15 -0
  239. package/lib/typescript/commonjs/ShareAgentModal.d.ts.map +1 -0
  240. package/lib/typescript/commonjs/ShareAgentModal.styles.d.ts +229 -0
  241. package/lib/typescript/commonjs/ShareAgentModal.styles.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/SuperagentHomeScreen.d.ts +4 -0
  243. package/lib/typescript/commonjs/SuperagentHomeScreen.d.ts.map +1 -0
  244. package/lib/typescript/commonjs/ToolApprovalCard.d.ts +13 -0
  245. package/lib/typescript/commonjs/ToolApprovalCard.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/ToolCallSummary.d.ts +16 -0
  247. package/lib/typescript/commonjs/ToolCallSummary.d.ts.map +1 -0
  248. package/lib/typescript/commonjs/agentSphereStyles.d.ts +31 -0
  249. package/lib/typescript/commonjs/agentSphereStyles.d.ts.map +1 -0
  250. package/lib/typescript/commonjs/apiClient.d.ts +4 -0
  251. package/lib/typescript/commonjs/apiClient.d.ts.map +1 -0
  252. package/lib/typescript/commonjs/attachmentFileHelpers.d.ts +6 -0
  253. package/lib/typescript/commonjs/attachmentFileHelpers.d.ts.map +1 -0
  254. package/lib/typescript/commonjs/attachmentUpload.d.ts +12 -0
  255. package/lib/typescript/commonjs/attachmentUpload.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/composerStyles.d.ts +241 -0
  257. package/lib/typescript/commonjs/composerStyles.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/connectorBrandIcons.d.ts +7 -0
  259. package/lib/typescript/commonjs/connectorBrandIcons.d.ts.map +1 -0
  260. package/lib/typescript/commonjs/connectorCatalog.d.ts +3 -0
  261. package/lib/typescript/commonjs/connectorCatalog.d.ts.map +1 -0
  262. package/lib/typescript/commonjs/constants.d.ts +4 -0
  263. package/lib/typescript/commonjs/constants.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/conversationParts.d.ts +29 -0
  265. package/lib/typescript/commonjs/conversationParts.d.ts.map +1 -0
  266. package/lib/typescript/commonjs/conversationRuntime.d.ts +67 -0
  267. package/lib/typescript/commonjs/conversationRuntime.d.ts.map +1 -0
  268. package/lib/typescript/commonjs/conversationStyles.d.ts +742 -0
  269. package/lib/typescript/commonjs/conversationStyles.d.ts.map +1 -0
  270. package/lib/typescript/commonjs/editorShellStyles.d.ts +1025 -0
  271. package/lib/typescript/commonjs/editorShellStyles.d.ts.map +1 -0
  272. package/lib/typescript/commonjs/editorTabs.d.ts +11 -0
  273. package/lib/typescript/commonjs/editorTabs.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/fileTreeUtils.d.ts +17 -0
  275. package/lib/typescript/commonjs/fileTreeUtils.d.ts.map +1 -0
  276. package/lib/typescript/commonjs/index.d.ts +20 -0
  277. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  278. package/lib/typescript/commonjs/markdownStyles.d.ts +150 -0
  279. package/lib/typescript/commonjs/markdownStyles.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/mediaUtils.d.ts +9 -0
  281. package/lib/typescript/commonjs/mediaUtils.d.ts.map +1 -0
  282. package/lib/typescript/commonjs/messageActionStyles.d.ts +38 -0
  283. package/lib/typescript/commonjs/messageActionStyles.d.ts.map +1 -0
  284. package/lib/typescript/commonjs/messageUtils.d.ts +8 -0
  285. package/lib/typescript/commonjs/messageUtils.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/nativeActionSheet.d.ts +6 -0
  287. package/lib/typescript/commonjs/nativeActionSheet.d.ts.map +1 -0
  288. package/lib/typescript/commonjs/nativeActionSheet.web.d.ts +3 -0
  289. package/lib/typescript/commonjs/nativeActionSheet.web.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/package.json +1 -0
  291. package/lib/typescript/commonjs/paperTheme.d.ts +3 -0
  292. package/lib/typescript/commonjs/paperTheme.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/realtimeClient.d.ts +16 -0
  294. package/lib/typescript/commonjs/realtimeClient.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/renameAgentModalStyles.d.ts +76 -0
  296. package/lib/typescript/commonjs/renameAgentModalStyles.d.ts.map +1 -0
  297. package/lib/typescript/commonjs/screenParts.d.ts +31 -0
  298. package/lib/typescript/commonjs/screenParts.d.ts.map +1 -0
  299. package/lib/typescript/commonjs/styles.d.ts +336 -0
  300. package/lib/typescript/commonjs/styles.d.ts.map +1 -0
  301. package/lib/typescript/commonjs/superagentApiClient.d.ts +66 -0
  302. package/lib/typescript/commonjs/superagentApiClient.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/types.d.ts +437 -0
  304. package/lib/typescript/commonjs/types.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/useSuperagentAttachmentPicker.d.ts +30 -0
  306. package/lib/typescript/commonjs/useSuperagentAttachmentPicker.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/useSuperagentConversation.d.ts +36 -0
  308. package/lib/typescript/commonjs/useSuperagentConversation.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/useSuperagentRuntime.d.ts +163 -0
  310. package/lib/typescript/commonjs/useSuperagentRuntime.d.ts.map +1 -0
  311. package/lib/typescript/module/AgentSettingsPanel.d.ts +19 -0
  312. package/lib/typescript/module/AgentSettingsPanel.d.ts.map +1 -0
  313. package/lib/typescript/module/AgentSphereIcon.d.ts +15 -0
  314. package/lib/typescript/module/AgentSphereIcon.d.ts.map +1 -0
  315. package/lib/typescript/module/AttachmentPickerStatusModal.d.ts +8 -0
  316. package/lib/typescript/module/AttachmentPickerStatusModal.d.ts.map +1 -0
  317. package/lib/typescript/module/AttachmentPreviewStrip.d.ts +7 -0
  318. package/lib/typescript/module/AttachmentPreviewStrip.d.ts.map +1 -0
  319. package/lib/typescript/module/ChannelsPanel.d.ts +21 -0
  320. package/lib/typescript/module/ChannelsPanel.d.ts.map +1 -0
  321. package/lib/typescript/module/ConversationChat.d.ts +22 -0
  322. package/lib/typescript/module/ConversationChat.d.ts.map +1 -0
  323. package/lib/typescript/module/ConversationComposer.d.ts +24 -0
  324. package/lib/typescript/module/ConversationComposer.d.ts.map +1 -0
  325. package/lib/typescript/module/ConversationMessageList.d.ts +17 -0
  326. package/lib/typescript/module/ConversationMessageList.d.ts.map +1 -0
  327. package/lib/typescript/module/ConversationScreen.d.ts +80 -0
  328. package/lib/typescript/module/ConversationScreen.d.ts.map +1 -0
  329. package/lib/typescript/module/EditorDrawer.d.ts +67 -0
  330. package/lib/typescript/module/EditorDrawer.d.ts.map +1 -0
  331. package/lib/typescript/module/EditorTabPanel.d.ts +6 -0
  332. package/lib/typescript/module/EditorTabPanel.d.ts.map +1 -0
  333. package/lib/typescript/module/FilesPanel.d.ts +14 -0
  334. package/lib/typescript/module/FilesPanel.d.ts.map +1 -0
  335. package/lib/typescript/module/MarkdownText.d.ts +10 -0
  336. package/lib/typescript/module/MarkdownText.d.ts.map +1 -0
  337. package/lib/typescript/module/MessageActionBar.d.ts +8 -0
  338. package/lib/typescript/module/MessageActionBar.d.ts.map +1 -0
  339. package/lib/typescript/module/RenameAgentModal.d.ts +10 -0
  340. package/lib/typescript/module/RenameAgentModal.d.ts.map +1 -0
  341. package/lib/typescript/module/ShareAgentModal.d.ts +15 -0
  342. package/lib/typescript/module/ShareAgentModal.d.ts.map +1 -0
  343. package/lib/typescript/module/ShareAgentModal.styles.d.ts +229 -0
  344. package/lib/typescript/module/ShareAgentModal.styles.d.ts.map +1 -0
  345. package/lib/typescript/module/SuperagentHomeScreen.d.ts +4 -0
  346. package/lib/typescript/module/SuperagentHomeScreen.d.ts.map +1 -0
  347. package/lib/typescript/module/ToolApprovalCard.d.ts +13 -0
  348. package/lib/typescript/module/ToolApprovalCard.d.ts.map +1 -0
  349. package/lib/typescript/module/ToolCallSummary.d.ts +16 -0
  350. package/lib/typescript/module/ToolCallSummary.d.ts.map +1 -0
  351. package/lib/typescript/module/agentSphereStyles.d.ts +31 -0
  352. package/lib/typescript/module/agentSphereStyles.d.ts.map +1 -0
  353. package/lib/typescript/module/apiClient.d.ts +4 -0
  354. package/lib/typescript/module/apiClient.d.ts.map +1 -0
  355. package/lib/typescript/module/attachmentFileHelpers.d.ts +6 -0
  356. package/lib/typescript/module/attachmentFileHelpers.d.ts.map +1 -0
  357. package/lib/typescript/module/attachmentUpload.d.ts +12 -0
  358. package/lib/typescript/module/attachmentUpload.d.ts.map +1 -0
  359. package/lib/typescript/module/composerStyles.d.ts +241 -0
  360. package/lib/typescript/module/composerStyles.d.ts.map +1 -0
  361. package/lib/typescript/module/connectorBrandIcons.d.ts +7 -0
  362. package/lib/typescript/module/connectorBrandIcons.d.ts.map +1 -0
  363. package/lib/typescript/module/connectorCatalog.d.ts +3 -0
  364. package/lib/typescript/module/connectorCatalog.d.ts.map +1 -0
  365. package/lib/typescript/module/constants.d.ts +4 -0
  366. package/lib/typescript/module/constants.d.ts.map +1 -0
  367. package/lib/typescript/module/conversationParts.d.ts +29 -0
  368. package/lib/typescript/module/conversationParts.d.ts.map +1 -0
  369. package/lib/typescript/module/conversationRuntime.d.ts +67 -0
  370. package/lib/typescript/module/conversationRuntime.d.ts.map +1 -0
  371. package/lib/typescript/module/conversationStyles.d.ts +742 -0
  372. package/lib/typescript/module/conversationStyles.d.ts.map +1 -0
  373. package/lib/typescript/module/editorShellStyles.d.ts +1025 -0
  374. package/lib/typescript/module/editorShellStyles.d.ts.map +1 -0
  375. package/lib/typescript/module/editorTabs.d.ts +11 -0
  376. package/lib/typescript/module/editorTabs.d.ts.map +1 -0
  377. package/lib/typescript/module/fileTreeUtils.d.ts +17 -0
  378. package/lib/typescript/module/fileTreeUtils.d.ts.map +1 -0
  379. package/lib/typescript/module/index.d.ts +20 -0
  380. package/lib/typescript/module/index.d.ts.map +1 -0
  381. package/lib/typescript/module/markdownStyles.d.ts +150 -0
  382. package/lib/typescript/module/markdownStyles.d.ts.map +1 -0
  383. package/lib/typescript/module/mediaUtils.d.ts +9 -0
  384. package/lib/typescript/module/mediaUtils.d.ts.map +1 -0
  385. package/lib/typescript/module/messageActionStyles.d.ts +38 -0
  386. package/lib/typescript/module/messageActionStyles.d.ts.map +1 -0
  387. package/lib/typescript/module/messageUtils.d.ts +8 -0
  388. package/lib/typescript/module/messageUtils.d.ts.map +1 -0
  389. package/lib/typescript/module/nativeActionSheet.d.ts +6 -0
  390. package/lib/typescript/module/nativeActionSheet.d.ts.map +1 -0
  391. package/lib/typescript/module/nativeActionSheet.web.d.ts +3 -0
  392. package/lib/typescript/module/nativeActionSheet.web.d.ts.map +1 -0
  393. package/lib/typescript/module/package.json +1 -0
  394. package/lib/typescript/module/paperTheme.d.ts +3 -0
  395. package/lib/typescript/module/paperTheme.d.ts.map +1 -0
  396. package/lib/typescript/module/realtimeClient.d.ts +16 -0
  397. package/lib/typescript/module/realtimeClient.d.ts.map +1 -0
  398. package/lib/typescript/module/renameAgentModalStyles.d.ts +76 -0
  399. package/lib/typescript/module/renameAgentModalStyles.d.ts.map +1 -0
  400. package/lib/typescript/module/screenParts.d.ts +31 -0
  401. package/lib/typescript/module/screenParts.d.ts.map +1 -0
  402. package/lib/typescript/module/styles.d.ts +336 -0
  403. package/lib/typescript/module/styles.d.ts.map +1 -0
  404. package/lib/typescript/module/superagentApiClient.d.ts +66 -0
  405. package/lib/typescript/module/superagentApiClient.d.ts.map +1 -0
  406. package/lib/typescript/module/types.d.ts +437 -0
  407. package/lib/typescript/module/types.d.ts.map +1 -0
  408. package/lib/typescript/module/useSuperagentAttachmentPicker.d.ts +30 -0
  409. package/lib/typescript/module/useSuperagentAttachmentPicker.d.ts.map +1 -0
  410. package/lib/typescript/module/useSuperagentConversation.d.ts +36 -0
  411. package/lib/typescript/module/useSuperagentConversation.d.ts.map +1 -0
  412. package/lib/typescript/module/useSuperagentRuntime.d.ts +163 -0
  413. package/lib/typescript/module/useSuperagentRuntime.d.ts.map +1 -0
  414. package/package.json +87 -0
  415. package/src/AgentSettingsPanel.tsx +1122 -0
  416. package/src/AgentSphereIcon.tsx +170 -0
  417. package/src/AttachmentPickerStatusModal.tsx +80 -0
  418. package/src/AttachmentPreviewStrip.tsx +38 -0
  419. package/src/ChannelsPanel.tsx +705 -0
  420. package/src/ConversationChat.tsx +245 -0
  421. package/src/ConversationComposer.tsx +368 -0
  422. package/src/ConversationMessageList.tsx +140 -0
  423. package/src/ConversationScreen.tsx +320 -0
  424. package/src/EditorDrawer.tsx +1297 -0
  425. package/src/EditorTabPanel.tsx +19 -0
  426. package/src/FilesPanel.tsx +577 -0
  427. package/src/MarkdownText.tsx +317 -0
  428. package/src/MessageActionBar.tsx +126 -0
  429. package/src/RenameAgentModal.tsx +107 -0
  430. package/src/ShareAgentModal.styles.ts +95 -0
  431. package/src/ShareAgentModal.tsx +320 -0
  432. package/src/SuperagentHomeScreen.tsx +318 -0
  433. package/src/ToolApprovalCard.tsx +592 -0
  434. package/src/ToolCallSummary.tsx +599 -0
  435. package/src/agentSphereStyles.ts +25 -0
  436. package/src/apiClient.ts +189 -0
  437. package/src/attachmentFileHelpers.ts +109 -0
  438. package/src/attachmentUpload.ts +112 -0
  439. package/src/composerStyles.ts +167 -0
  440. package/src/connectorBrandIcons.tsx +69 -0
  441. package/src/connectorCatalog.ts +414 -0
  442. package/src/constants.ts +9 -0
  443. package/src/conversationParts.tsx +307 -0
  444. package/src/conversationRuntime.ts +171 -0
  445. package/src/conversationStyles.ts +412 -0
  446. package/src/editorShellStyles.ts +1023 -0
  447. package/src/editorTabs.ts +26 -0
  448. package/src/fileTreeUtils.ts +165 -0
  449. package/src/index.ts +110 -0
  450. package/src/markdownStyles.ts +64 -0
  451. package/src/mediaUtils.ts +75 -0
  452. package/src/messageActionStyles.ts +26 -0
  453. package/src/messageUtils.ts +58 -0
  454. package/src/nativeActionSheet.ts +25 -0
  455. package/src/nativeActionSheet.web.ts +5 -0
  456. package/src/paperTheme.ts +52 -0
  457. package/src/realtimeClient.ts +149 -0
  458. package/src/renameAgentModalStyles.ts +77 -0
  459. package/src/screenParts.tsx +185 -0
  460. package/src/styles.ts +190 -0
  461. package/src/superagentApiClient.ts +895 -0
  462. package/src/types.ts +514 -0
  463. package/src/useSuperagentAttachmentPicker.tsx +117 -0
  464. package/src/useSuperagentConversation.ts +242 -0
  465. 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"],"sourceRoot":"../../src","sources":["FilesPanel.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,kBAAA,GAAAF,OAAA;AAiBA,IAAAG,cAAA,GAAAH,OAAA;AAUA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAAkC,IAA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