@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,55 @@
1
+ "use strict";
2
+
3
+ export const superagentPaperTheme = {
4
+ animation: {
5
+ scale: 1
6
+ },
7
+ dark: true,
8
+ isV3: true,
9
+ mode: 'adaptive',
10
+ roundness: 4,
11
+ version: 3,
12
+ colors: {
13
+ background: '#000000',
14
+ backdrop: 'rgba(0,0,0,0.5)',
15
+ elevation: {
16
+ level0: 'transparent',
17
+ level1: '#111111',
18
+ level2: '#151515',
19
+ level3: '#171717',
20
+ level4: '#1C1C1E',
21
+ level5: '#242427'
22
+ },
23
+ error: '#FCA5A5',
24
+ errorContainer: '#3F1212',
25
+ inverseOnSurface: '#111111',
26
+ inversePrimary: '#111111',
27
+ inverseSurface: '#F4F4F5',
28
+ onBackground: '#F4F4F5',
29
+ onError: '#111111',
30
+ onErrorContainer: '#FCA5A5',
31
+ onPrimary: '#111111',
32
+ onPrimaryContainer: '#F4F4F5',
33
+ onSecondary: '#111111',
34
+ onSecondaryContainer: '#F4F4F5',
35
+ onSurface: '#F4F4F5',
36
+ onSurfaceDisabled: 'rgba(244,244,245,0.38)',
37
+ onSurfaceVariant: '#A1A1AA',
38
+ onTertiary: '#111111',
39
+ onTertiaryContainer: '#F4F4F5',
40
+ outline: '#2A2A2A',
41
+ outlineVariant: '#242427',
42
+ primary: '#F4F4F5',
43
+ primaryContainer: '#242427',
44
+ scrim: 'rgba(0,0,0,0.6)',
45
+ secondary: '#D4D4D8',
46
+ secondaryContainer: '#171717',
47
+ shadow: '#000000',
48
+ surface: '#111111',
49
+ surfaceDisabled: 'rgba(244,244,245,0.12)',
50
+ surfaceVariant: '#171717',
51
+ tertiary: '#FF5A1F',
52
+ tertiaryContainer: '#3A180C'
53
+ }
54
+ };
55
+ //# sourceMappingURL=paperTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["superagentPaperTheme","animation","scale","dark","isV3","mode","roundness","version","colors","background","backdrop","elevation","level0","level1","level2","level3","level4","level5","error","errorContainer","inverseOnSurface","inversePrimary","inverseSurface","onBackground","onError","onErrorContainer","onPrimary","onPrimaryContainer","onSecondary","onSecondaryContainer","onSurface","onSurfaceDisabled","onSurfaceVariant","onTertiary","onTertiaryContainer","outline","outlineVariant","primary","primaryContainer","scrim","secondary","secondaryContainer","shadow","surface","surfaceDisabled","surface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AAwB;IACzCC,cAAc,EAAE,SAAS;IACzBC,QAAQ,EAAE,SAAS;IACnBC,iBAAiB,EAAE;EACrB;AACF,CAA2B","ignoreList":[]}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ export function createSuperagentSocketClient({
4
+ socket,
5
+ roomMetadata
6
+ }) {
7
+ const roomCounts = new Map();
8
+ return {
9
+ subscribeToConversation(conversationId, handlers) {
10
+ const room = getConversationRoom(conversationId);
11
+ const metadata = typeof roomMetadata === 'function' ? roomMetadata(conversationId) : roomMetadata;
12
+ addRoom(room, metadata);
13
+ const onUpdate = raw => {
14
+ const envelope = parseEnvelope(raw);
15
+ if (!envelope || envelope.room !== room) return;
16
+ dispatchUpdate(envelope.data, handlers);
17
+ };
18
+ const onAgentDone = raw => {
19
+ const envelope = parseEnvelope(raw);
20
+ if (!envelope || envelope.room !== room) return;
21
+ handlers.onAgentDone?.();
22
+ };
23
+ const onConnect = () => {
24
+ emitJoin(room, metadata);
25
+ handlers.onReconnect?.();
26
+ };
27
+ const onError = error => handlers.onError?.(error);
28
+ socket.on('update_model', onUpdate);
29
+ socket.on('agent_done', onAgentDone);
30
+ socket.on('connect', onConnect);
31
+ socket.on('error', onError);
32
+ return () => {
33
+ removeSocketListener(socket, 'update_model', onUpdate);
34
+ removeSocketListener(socket, 'agent_done', onAgentDone);
35
+ removeSocketListener(socket, 'connect', onConnect);
36
+ removeSocketListener(socket, 'error', onError);
37
+ removeRoom(room);
38
+ };
39
+ }
40
+ };
41
+ function addRoom(room, metadata) {
42
+ const currentCount = roomCounts.get(room) ?? 0;
43
+ roomCounts.set(room, currentCount + 1);
44
+ if (currentCount === 0) emitJoin(room, metadata);
45
+ }
46
+ function removeRoom(room) {
47
+ const nextCount = (roomCounts.get(room) ?? 1) - 1;
48
+ if (nextCount > 0) {
49
+ roomCounts.set(room, nextCount);
50
+ return;
51
+ }
52
+ roomCounts.delete(room);
53
+ socket.emit('leave', room);
54
+ }
55
+ function emitJoin(room, metadata) {
56
+ if (metadata) socket.emit('join', room, metadata);else socket.emit('join', room);
57
+ }
58
+ }
59
+ function dispatchUpdate(data, handlers) {
60
+ if (!data || typeof data !== 'object') return;
61
+ const payload = data;
62
+ if (payload._message) handlers.onMessage?.(payload._message);
63
+ if (payload.conversation) handlers.onConversation?.(payload.conversation);
64
+ if (typeof payload.id === 'string' && Array.isArray(payload.messages)) {
65
+ handlers.onConversation?.(payload);
66
+ }
67
+ }
68
+ function parseEnvelope(raw) {
69
+ if (!raw || typeof raw !== 'object') return null;
70
+ const message = raw;
71
+ if (typeof message.room !== 'string') return null;
72
+ return {
73
+ room: message.room,
74
+ data: parseData(message.data)
75
+ };
76
+ }
77
+ function parseData(data) {
78
+ if (typeof data !== 'string') return data;
79
+ try {
80
+ return JSON.parse(data);
81
+ } catch {
82
+ return undefined;
83
+ }
84
+ }
85
+ function getConversationRoom(conversationId) {
86
+ const segment = conversationId.trim();
87
+ if (!/^[A-Za-z0-9._:-]+$/.test(segment)) {
88
+ throw new Error('Invalid conversationId');
89
+ }
90
+ return `/agent-conversations/${segment}`;
91
+ }
92
+ function removeSocketListener(socket, event, listener) {
93
+ if (socket.off) socket.off(event, listener);else socket.removeListener?.(event, listener);
94
+ }
95
+ //# sourceMappingURL=realtimeClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createSuperagentSocketClient","socket","roomMetadata","roomCounts","Map","subscribeToConversation","conversationId","handlers","room","getConversationRoom","metadata","addRoom","onUpdate","raw","envelope","parseEnvelope","dispatchUpdate","data","onAgentDone","onConnect","emitJoin","onReconnect","onError","error","on","removeSocketListener","removeRoom","currentCount","get","set","nextCount","delete","emit","payload","_message","onMessage","conversation","onConversation","id","Array","isArray","messages","message","parseData","JSON","parse","undefined","segment","trim","test","Error","event","listener","off","removeListener"],"sourceRoot":"../../src","sources":["realtimeClient.ts"],"mappings":";;AA2BA,OAAO,SAASA,4BAA4BA,CAAC;EAC3CC,MAAM;EACNC;AAC4B,CAAC,EAA4B;EACzD,M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wB,CAAC;EAC3C;EAEA,OAAO,wBAAwBH,OAAO,EAAE;AAC1C;AAEA,SAAStB,oBAAoBA,CAACxB,MAA4B,EAAEkD,KAAa,EAAEC,QAAwB,EAAE;EACnG,IAAInD,MAAM,CAACoD,GAAG,EAAEpD,MAAM,CAACoD,GAAG,CAACF,KAAK,EAAEC,QAAQ,CAAC,CAAC,KACvCnD,MAAM,CAACqD,cAAc,GAAGH,KAAK,EAAEC,QAAQ,CAAC;AAC/C","ignoreList":[]}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ export const renameAgentModalStyles = StyleSheet.create({
5
+ actions: {
6
+ flexDirection: 'row',
7
+ gap: 10,
8
+ marginTop: 18
9
+ },
10
+ backdrop: {
11
+ alignItems: 'center',
12
+ backgroundColor: 'rgba(0, 0, 0, 0.58)',
13
+ flex: 1,
14
+ justifyContent: 'center',
15
+ padding: 22
16
+ },
17
+ button: {
18
+ alignItems: 'center',
19
+ borderRadius: 16,
20
+ flex: 1,
21
+ height: 48,
22
+ justifyContent: 'center'
23
+ },
24
+ card: {
25
+ backgroundColor: '#171717',
26
+ borderColor: '#2C2C2E',
27
+ borderRadius: 24,
28
+ borderWidth: 1,
29
+ padding: 18,
30
+ width: '100%'
31
+ },
32
+ error: {
33
+ color: '#FF6B6B',
34
+ fontSize: 13,
35
+ lineHeight: 18,
36
+ marginTop: 10
37
+ },
38
+ input: {
39
+ backgroundColor: '#0B0B0C',
40
+ borderColor: '#3A3A3C',
41
+ borderRadius: 16,
42
+ borderWidth: 1,
43
+ color: '#F7F7F7',
44
+ fontSize: 17,
45
+ fontWeight: '600',
46
+ height: 52,
47
+ marginTop: 16,
48
+ paddingHorizontal: 14
49
+ },
50
+ pressed: {
51
+ opacity: 0.76
52
+ },
53
+ primaryButton: {
54
+ backgroundColor: '#F4F4F5'
55
+ },
56
+ primaryButtonText: {
57
+ color: '#0B0B0C',
58
+ fontSize: 16,
59
+ fontWeight: '800'
60
+ },
61
+ primaryPressed: {
62
+ opacity: 0.82
63
+ },
64
+ secondaryButton: {
65
+ backgroundColor: '#2C2C2E'
66
+ },
67
+ secondaryButtonText: {
68
+ color: '#F7F7F7',
69
+ fontSize: 16,
70
+ fontWeight: '700'
71
+ },
72
+ title: {
73
+ color: '#F7F7F7',
74
+ fontSize: 20,
75
+ fontWeight: '800',
76
+ textAlign: 'center'
77
+ }
78
+ });
79
+ //# sourceMappingURL=renameAgentModalStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","renameAgentModalStyles","create","actions","flexDirection","gap","marginTop","backdrop","alignItems","backgroundColor","flex","justifyContent","padding","button","borderRadius","height","card","borderColor","borderWidth","width","error","color","fontSize","lineHeight","input","fontWeight","paddingHorizontal","pressed","opacity","primaryButton","primaryButtonText","primaryPressed","secondaryButton","secondaryButtonText","title","textAlign"],"sourceRoot":"../../src","sources":["renameAgentModalStyles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,sBAAsB,GAAGD,UAAU,CAACE,MAAM,CAAC;EACtDC,OAAO,EAAE;IACPC,aAAa,EAAE,KAAK;IACpBC,GAAG,EAAE,EAAE;IACPC,SAAS,EAAE;EACb,CAAC;EACDC,QAAQ,EAAE;IACRC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,qBAAqB;IACtCC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,OAAO,EAAE;EACX,CAAC;EACDC,MAAM,EAAE;IACNL,UAAU,EAAE,QAAQ;IACpBM,YAAY,EAAE,EAAE;IAChBJ,IAAI,EAAE,CAAC;IACPK,MAAM,EAAE,EAAE;IACVJ,cAAc,EAAE;EAClB,CAAC;EACDK,IAAI,EAAE;IACJP,eAAe,EAAE,SAAS;IAC1BQ,WAAW,EAAE,SAAS;IACtBH,YAAY,EAAE,EAAE;IAChBI,WAAW,EAAE,CAAC;IACdN,OAAO,EAAE,EAAE;IACXO,KAAK,EAAE;EACT,CAAC;EACDC,KAAK,EAAE;IACLC,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdjB,SAAS,EAAE;EACb,CAAC;EACDkB,KAAK,EAAE;IACLf,eAAe,EAAE,SAAS;IAC1BQ,WAAW,EAAE,SAAS;IACtBH,YAAY,EAAE,EAAE;IAChBI,WAAW,EAAE,CAAC;IACdG,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZG,UAAU,EAAE,KAAK;IACjBV,MAAM,EAAE,EAAE;IACVT,SAAS,EAAE,EAAE;IACboB,iBAAiB,EAAE;EACrB,CAAC;EACDC,OAAO,EAAE;IACPC,OAAO,EAAE;EACX,CAAC;EACDC,aAAa,EAAE;IACbpB,eAAe,EAAE;EACnB,CAAC;EACDqB,iBAAiB,EAAE;IACjBT,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZG,UAAU,EAAE;EACd,CAAC;EACDM,cAAc,EAAE;IACdH,OAAO,EAAE;EACX,CAAC;EACDI,eAAe,EAAE;IACfvB,eAAe,EAAE;EACnB,CAAC;EACDwB,mBAAmB,EAAE;IACnBZ,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZG,UAAU,EAAE;EACd,CAAC;EACDS,KAAK,EAAE;IACLb,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZG,UAAU,EAAE,KAAK;IACjBU,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,210 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { Pressable, SafeAreaView, Text, View } from 'react-native';
5
+ import { ChevronRight, Plus } from 'lucide-react-native';
6
+ import { AgentSphereIcon } from "./AgentSphereIcon.js";
7
+ import { styles } from "./styles.js";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ export function AgentCard({
10
+ agent,
11
+ automationCount = 0,
12
+ connectorCount = 0,
13
+ latestMessages,
14
+ onPress
15
+ }) {
16
+ const preview = getLatestMessagePreview(latestMessages);
17
+ const meta = [connectorCount > 0 ? `${connectorCount} connected` : 'Tools ready', automationCount > 0 ? `${automationCount} tasks` : 'No tasks yet'];
18
+ return /*#__PURE__*/_jsxs(Pressable, {
19
+ accessibilityRole: "button",
20
+ onPress: onPress,
21
+ style: ({
22
+ pressed
23
+ }) => [styles.heroPanel, pressed && styles.pressed],
24
+ children: [/*#__PURE__*/_jsx(View, {
25
+ style: styles.heroTopRow,
26
+ children: /*#__PURE__*/_jsx(Text, {
27
+ style: styles.heroLabel,
28
+ children: "Continue"
29
+ })
30
+ }), /*#__PURE__*/_jsxs(View, {
31
+ style: styles.agentCard,
32
+ children: [/*#__PURE__*/_jsx(View, {
33
+ style: styles.avatar,
34
+ children: /*#__PURE__*/_jsx(AgentSphereIcon, {
35
+ agent: agent,
36
+ size: "header"
37
+ })
38
+ }), /*#__PURE__*/_jsxs(View, {
39
+ style: styles.agentCardBody,
40
+ children: [/*#__PURE__*/_jsx(Text, {
41
+ style: styles.agentName,
42
+ numberOfLines: 1,
43
+ children: agent.name || 'Untitled Agent'
44
+ }), /*#__PURE__*/_jsx(Text, {
45
+ style: styles.agentDescription,
46
+ numberOfLines: 3,
47
+ children: preview || agent.description || 'Open your latest Superagent conversation.'
48
+ })]
49
+ }), /*#__PURE__*/_jsx(ChevronRight, {
50
+ color: "#8E8E93",
51
+ size: 24,
52
+ strokeWidth: 2.5
53
+ })]
54
+ }), /*#__PURE__*/_jsx(View, {
55
+ style: styles.agentMetaRow,
56
+ children: meta.map(item => /*#__PURE__*/_jsx(View, {
57
+ style: styles.agentMetaPill,
58
+ children: /*#__PURE__*/_jsx(Text, {
59
+ style: styles.agentMetaText,
60
+ children: item
61
+ })
62
+ }, item))
63
+ })]
64
+ });
65
+ }
66
+ export function EmptyState({
67
+ onCreateAgent,
68
+ isCreating
69
+ }) {
70
+ return /*#__PURE__*/_jsxs(View, {
71
+ style: styles.emptyPanel,
72
+ children: [/*#__PURE__*/_jsx(View, {
73
+ style: styles.avatar,
74
+ children: /*#__PURE__*/_jsx(AgentSphereIcon, {
75
+ size: "header"
76
+ })
77
+ }), /*#__PURE__*/_jsx(Text, {
78
+ style: styles.emptyTitle,
79
+ children: "Start with one task"
80
+ }), /*#__PURE__*/_jsx(Text, {
81
+ style: styles.emptyBody,
82
+ children: "Create a Superagent that can remember context, work with tools, and keep moving from your phone."
83
+ }), /*#__PURE__*/_jsx(View, {
84
+ style: styles.emptyChipRow,
85
+ children: ['Research', 'Sales', 'Support', 'Automations'].map(label => /*#__PURE__*/_jsx(View, {
86
+ style: styles.emptyChip,
87
+ children: /*#__PURE__*/_jsx(Text, {
88
+ style: styles.emptyChipText,
89
+ children: label
90
+ })
91
+ }, label))
92
+ }), /*#__PURE__*/_jsx(Pressable, {
93
+ accessibilityRole: "button",
94
+ disabled: isCreating,
95
+ onPress: onCreateAgent,
96
+ style: ({
97
+ pressed
98
+ }) => [styles.primaryButton, pressed && styles.pressed],
99
+ children: /*#__PURE__*/_jsx(Text, {
100
+ style: styles.primaryButtonText,
101
+ children: isCreating ? 'Creating...' : 'Create Superagent'
102
+ })
103
+ })]
104
+ });
105
+ }
106
+ export function AgentRow({
107
+ agent,
108
+ latestMessages,
109
+ onPress
110
+ }) {
111
+ const preview = getLatestMessagePreview(latestMessages ?? []);
112
+ return /*#__PURE__*/_jsxs(Pressable, {
113
+ accessibilityRole: "button",
114
+ onPress: onPress,
115
+ style: ({
116
+ pressed
117
+ }) => [styles.agentRow, pressed && styles.pressed],
118
+ children: [/*#__PURE__*/_jsx(View, {
119
+ style: styles.compactAvatar,
120
+ children: /*#__PURE__*/_jsx(AgentSphereIcon, {
121
+ agent: agent,
122
+ size: "sm"
123
+ })
124
+ }), /*#__PURE__*/_jsxs(View, {
125
+ style: styles.agentRowBody,
126
+ children: [/*#__PURE__*/_jsx(Text, {
127
+ style: styles.agentRowName,
128
+ numberOfLines: 1,
129
+ children: agent.name || 'Untitled Agent'
130
+ }), /*#__PURE__*/_jsx(Text, {
131
+ style: styles.agentRowDescription,
132
+ numberOfLines: 1,
133
+ children: preview || agent.description || 'Ready for the next instruction.'
134
+ })]
135
+ }), /*#__PURE__*/_jsx(ChevronRight, {
136
+ color: "#73737A",
137
+ size: 21,
138
+ strokeWidth: 2.5
139
+ })]
140
+ });
141
+ }
142
+ export function HeaderProfile({
143
+ userAvatarUrl
144
+ }) {
145
+ return /*#__PURE__*/_jsx(View, {
146
+ style: styles.headerAvatar,
147
+ children: /*#__PURE__*/_jsx(AgentSphereIcon, {
148
+ isUser: true,
149
+ size: "md",
150
+ userAvatarUrl: userAvatarUrl
151
+ })
152
+ });
153
+ }
154
+ export function CreateAgentButton({
155
+ isCreating,
156
+ onPress
157
+ }) {
158
+ return /*#__PURE__*/_jsxs(Pressable, {
159
+ accessibilityRole: "button",
160
+ disabled: isCreating,
161
+ onPress: onPress,
162
+ style: ({
163
+ pressed
164
+ }) => [styles.secondaryButton, pressed && styles.pressed],
165
+ children: [/*#__PURE__*/_jsx(Plus, {
166
+ color: "#F4F4F5",
167
+ size: 18,
168
+ strokeWidth: 2.6
169
+ }), /*#__PURE__*/_jsx(Text, {
170
+ style: styles.secondaryButtonText,
171
+ children: isCreating ? 'Creating...' : 'New Superagent'
172
+ })]
173
+ });
174
+ }
175
+ export function PlaceholderPage({
176
+ title,
177
+ body,
178
+ onBack
179
+ }) {
180
+ return /*#__PURE__*/_jsx(SafeAreaView, {
181
+ style: styles.safeArea,
182
+ children: /*#__PURE__*/_jsxs(View, {
183
+ style: styles.placeholder,
184
+ children: [/*#__PURE__*/_jsx(Pressable, {
185
+ accessibilityRole: "button",
186
+ onPress: onBack,
187
+ style: styles.backButton,
188
+ children: /*#__PURE__*/_jsx(Text, {
189
+ style: styles.backButtonText,
190
+ children: "Back"
191
+ })
192
+ }), /*#__PURE__*/_jsx(Text, {
193
+ style: styles.title,
194
+ children: title
195
+ }), /*#__PURE__*/_jsx(Text, {
196
+ style: styles.subtitle,
197
+ children: body
198
+ })]
199
+ })
200
+ });
201
+ }
202
+ function getLatestMessagePreview(messages) {
203
+ if (!messages?.length) return undefined;
204
+ for (let index = messages.length - 1; index >= 0; index -= 1) {
205
+ const content = messages[index]?.content.trim();
206
+ if (content) return content;
207
+ }
208
+ return undefined;
209
+ }
210
+ //# sourceMappingURL=screenParts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Pressable","SafeAreaView","Text","View","ChevronRight","Plus","AgentSphereIcon","styles","jsx","_jsx","jsxs","_jsxs","AgentCard","agent","automationCount","connectorCount","latestMessages","onPress","preview","getLatestMessagePreview","meta","accessibilityRole","style","pressed","heroPanel","children","heroTopRow","heroLabel","agentCard","avatar","size","agentCardBody","agentName","numberOfLines","name","agentDescription","description","color","strokeWidth","agentMetaRow","map","item","agentMetaPill","agentMetaText","EmptyState","onCreateAgent","isCreating","emptyPanel","emptyTitle","emptyBody","emptyChipRow","label","emptyChip","emptyChipText","disabled","primaryButton","primaryButtonText","AgentRow","agentRow","compactAvatar","agentRowBody","agentRowName","agentRowDescription","HeaderProfile","userAvatarUrl","headerAvatar","isUser","CreateAgentButton","secondaryButton","secondaryButtonText","PlaceholderPage","title","body","onBack","safeArea","placeholder","backButton","backButtonText","subtitle","messages","length","undefined","index","content","trim"],"sourceRoot":"../../src","sources":["screenParts.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,YAAY,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAClE,SAASC,YAAY,EAAEC,IAAI,QAAQ,qBAAqB;AAExD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,MAAM,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGlC,OAAO,SAASC,SAASA,CAAC;EACxBC,KAAK;EACLC,eAAe,GAAG,CAAC;EACnBC,cAAc,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