@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,1067 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.AgentSettingsPanel = AgentSettingsPanel;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _lucideReactNative = require("lucide-react-native");
10
+ var _connectorBrandIcons = require("./connectorBrandIcons.js");
11
+ var _editorShellStyles = require("./editorShellStyles.js");
12
+ var _nativeActionSheet = require("./nativeActionSheet");
13
+ var _styles = require("./styles.js");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ 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); }
16
+ const MODEL_OPTIONS = [{
17
+ id: 'default',
18
+ label: 'Auto',
19
+ description: 'Use the Superagent default model.'
20
+ }, {
21
+ id: 'claude_sonnet_4_6',
22
+ label: 'Claude Sonnet 4.6',
23
+ description: 'Balanced coding and reasoning.'
24
+ }, {
25
+ id: 'claude_opus_4_6',
26
+ label: 'Claude Opus 4.6',
27
+ description: 'Highest quality for complex work.'
28
+ }, {
29
+ id: 'gemini_3_1_pro',
30
+ label: 'Gemini 3.1 Pro',
31
+ description: 'Large-context Google model.'
32
+ }, {
33
+ id: 'gemini_2_5_flash',
34
+ label: 'Gemini 2.5 Flash',
35
+ description: 'Fast lower-cost responses.'
36
+ }, {
37
+ id: 'gpt_5_4',
38
+ label: 'GPT-5.4',
39
+ description: 'OpenAI reasoning model.'
40
+ }, {
41
+ id: 'gpt_5',
42
+ label: 'GPT-5',
43
+ description: 'General OpenAI model.'
44
+ }, {
45
+ id: 'kimi_k2p5',
46
+ label: 'Kimi K2.5',
47
+ description: 'Open-source model when enabled.'
48
+ }, {
49
+ id: 'deepseek_v3',
50
+ label: 'DeepSeek V3',
51
+ description: 'Open-source text model.'
52
+ }];
53
+ const TOOL_OPERATIONS = [{
54
+ body: 'Allow the agent to update app data without asking every time.',
55
+ id: 'update_entities',
56
+ title: 'Update data'
57
+ }, {
58
+ body: 'Allow the agent to delete app data without asking every time.',
59
+ id: 'delete_entities',
60
+ title: 'Delete data'
61
+ }];
62
+ function AgentSettingsPanel({
63
+ agent,
64
+ collaborators = [],
65
+ connectedConnectors = [],
66
+ isLoading,
67
+ isLoadingCollaborators,
68
+ onCloneAgent,
69
+ onDeleteAgent,
70
+ onDeleteSecret,
71
+ onRefreshAgentSettings,
72
+ onSaveSecret,
73
+ onShareAgentLink,
74
+ onUpdateAgentModel,
75
+ onUpdateToolPermissions,
76
+ secrets = []
77
+ }) {
78
+ const [guardDrafts, setGuardDrafts] = (0, _react.useState)({});
79
+ const [newSecretName, setNewSecretName] = (0, _react.useState)('');
80
+ const [newSecretValue, setNewSecretValue] = (0, _react.useState)('');
81
+ const [isModelPickerOpen, setIsModelPickerOpen] = (0, _react.useState)(false);
82
+ const [pendingAction, setPendingAction] = (0, _react.useState)(null);
83
+ const [visibleSecrets, setVisibleSecrets] = (0, _react.useState)(new Set());
84
+ const permissions = normalizePermissions(agent.toolsPermissionConfig);
85
+ const selectedModel = (0, _react.useMemo)(() => MODEL_OPTIONS.find(model => model.id === (agent.model || 'default')) ?? MODEL_OPTIONS[0], [agent.model]);
86
+ const activeConnectorIds = (0, _react.useMemo)(() => connectedConnectors.filter(connector => connector.status !== 'expired' && connector.status !== 'disconnected').map(connector => connector.id), [connectedConnectors]);
87
+ const guardDraftsDirty = (0, _react.useMemo)(() => JSON.stringify(cleanGuards(guardDrafts)) !== JSON.stringify(permissions.connector_guards), [guardDrafts, permissions.connector_guards]);
88
+ (0, _react.useEffect)(() => {
89
+ setGuardDrafts(permissions.connector_guards);
90
+ }, [agent.id, permissions.connector_guards]);
91
+ const runAction = async (action, handler) => {
92
+ if (pendingAction) {
93
+ return;
94
+ }
95
+ setPendingAction(action);
96
+ try {
97
+ await handler();
98
+ } finally {
99
+ setPendingAction(null);
100
+ }
101
+ };
102
+ const updatePermissions = async (nextConfig, action = 'toggle-permission') => {
103
+ if (!onUpdateToolPermissions) {
104
+ return;
105
+ }
106
+ await runAction(action, () => onUpdateToolPermissions({
107
+ agentId: agent.id,
108
+ config: {
109
+ auto_approved_operations: nextConfig.auto_approved_operations ?? [],
110
+ connector_guards: cleanGuards(nextConfig.connector_guards ?? {})
111
+ }
112
+ }));
113
+ };
114
+ const selectModel = model => {
115
+ if (!onUpdateAgentModel || pendingAction === 'model') {
116
+ return;
117
+ }
118
+ setIsModelPickerOpen(false);
119
+ if (model.id === selectedModel.id) {
120
+ return;
121
+ }
122
+ runAction('model', () => onUpdateAgentModel({
123
+ agentId: agent.id,
124
+ model: model.id
125
+ }));
126
+ };
127
+ const openModelPicker = () => {
128
+ if (!onUpdateAgentModel || pendingAction === 'model') {
129
+ return;
130
+ }
131
+ const didOpenNativePicker = (0, _nativeActionSheet.showNativeActionSheet)('Select model', MODEL_OPTIONS.map(model => ({
132
+ label: `${model.id === selectedModel.id ? '✓ ' : ''}${model.label}`,
133
+ onPress: () => selectModel(model)
134
+ })));
135
+ if (!didOpenNativePicker) {
136
+ setIsModelPickerOpen(true);
137
+ }
138
+ };
139
+ const addSecret = async () => {
140
+ const name = newSecretName.trim().toUpperCase();
141
+ const value = newSecretValue.trim();
142
+ if (!name || !value || !onSaveSecret) {
143
+ return;
144
+ }
145
+ await runAction('save-secret', async () => {
146
+ await onSaveSecret({
147
+ agentId: agent.id,
148
+ name,
149
+ value
150
+ });
151
+ setNewSecretName('');
152
+ setNewSecretValue('');
153
+ });
154
+ };
155
+ const deleteSecret = async secret => {
156
+ if (!onDeleteSecret) {
157
+ return;
158
+ }
159
+ await runAction('delete-secret', () => onDeleteSecret({
160
+ agentId: agent.id,
161
+ name: secret.name
162
+ }));
163
+ };
164
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
165
+ style: _editorShellStyles.editorShellStyles.settingsStack,
166
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(SettingsSection, {
167
+ icon: _lucideReactNative.Sparkles,
168
+ right: onRefreshAgentSettings ? /*#__PURE__*/(0, _jsxRuntime.jsx)(HeaderAction, {
169
+ icon: _lucideReactNative.RefreshCcw,
170
+ isLoading: pendingAction === 'refresh',
171
+ label: "Refresh",
172
+ onPress: () => runAction('refresh', () => onRefreshAgentSettings(agent.id))
173
+ }) : null,
174
+ subtitle: "Same model field the web builder saves on the app.",
175
+ title: "Model",
176
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
177
+ accessibilityLabel: `Current model: ${selectedModel.label}`,
178
+ accessibilityRole: "button",
179
+ disabled: !onUpdateAgentModel || pendingAction === 'model',
180
+ onPress: openModelPicker,
181
+ style: ({
182
+ pressed
183
+ }) => [localStyles.modelDropdown, (!onUpdateAgentModel || pendingAction === 'model') && localStyles.disabledButton, pressed && _styles.styles.pressed],
184
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
185
+ style: localStyles.modelDropdownLabel,
186
+ children: "Model"
187
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
188
+ numberOfLines: 1,
189
+ style: localStyles.modelDropdownValue,
190
+ children: selectedModel.label
191
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
192
+ style: localStyles.modelDropdownIcon,
193
+ children: pendingAction === 'model' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
194
+ color: "#F4F4F5",
195
+ size: "small"
196
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.ChevronDown, {
197
+ color: "#F4F4F5",
198
+ size: 20,
199
+ strokeWidth: 2.5
200
+ })
201
+ })]
202
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(ModelPickerModal, {
203
+ isVisible: isModelPickerOpen,
204
+ options: MODEL_OPTIONS,
205
+ selectedModelId: selectedModel.id,
206
+ onClose: () => setIsModelPickerOpen(false),
207
+ onSelect: selectModel
208
+ })]
209
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(SettingsSection, {
210
+ icon: _lucideReactNative.KeyRound,
211
+ isLoading: isLoading,
212
+ subtitle: "Environment variables available inside this agent.",
213
+ title: "Secrets",
214
+ children: [secrets.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
215
+ style: localStyles.secretList,
216
+ children: secrets.map(secret => {
217
+ const isVisible = visibleSecrets.has(secret.name);
218
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
219
+ style: localStyles.secretRow,
220
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
221
+ style: localStyles.secretText,
222
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
223
+ numberOfLines: 1,
224
+ style: localStyles.secretName,
225
+ children: secret.name
226
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
227
+ numberOfLines: 1,
228
+ style: localStyles.secretValue,
229
+ children: isVisible ? secret.value : '••••••••••••'
230
+ })]
231
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
232
+ accessibilityLabel: isVisible ? 'Hide secret' : 'Show secret',
233
+ accessibilityRole: "button",
234
+ onPress: () => setVisibleSecrets(current => toggleSecretVisibility(current, secret.name)),
235
+ style: ({
236
+ pressed
237
+ }) => [localStyles.iconButton, pressed && _styles.styles.pressed],
238
+ children: isVisible ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.EyeOff, {
239
+ color: "#E4E4E7",
240
+ size: 16,
241
+ strokeWidth: 2.4
242
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Eye, {
243
+ color: "#E4E4E7",
244
+ size: 16,
245
+ strokeWidth: 2.4
246
+ })
247
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
248
+ accessibilityLabel: `Delete ${secret.name}`,
249
+ accessibilityRole: "button",
250
+ disabled: !onDeleteSecret || pendingAction === 'delete-secret',
251
+ onPress: () => deleteSecret(secret),
252
+ style: ({
253
+ pressed
254
+ }) => [localStyles.iconButtonDanger, pressed && _styles.styles.pressed],
255
+ children: pendingAction === 'delete-secret' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
256
+ color: "#FCA5A5",
257
+ size: "small"
258
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Trash2, {
259
+ color: "#FCA5A5",
260
+ size: 16,
261
+ strokeWidth: 2.4
262
+ })
263
+ })]
264
+ }, secret.name);
265
+ })
266
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
267
+ style: localStyles.mutedText,
268
+ children: "No secrets yet."
269
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
270
+ style: localStyles.addSecretBox,
271
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
272
+ autoCapitalize: "characters",
273
+ onChangeText: value => setNewSecretName(value.toUpperCase()),
274
+ placeholder: "SECRET_NAME",
275
+ placeholderTextColor: "#71717A",
276
+ style: localStyles.textInput,
277
+ value: newSecretName
278
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
279
+ onChangeText: setNewSecretValue,
280
+ placeholder: "Value",
281
+ placeholderTextColor: "#71717A",
282
+ secureTextEntry: true,
283
+ style: localStyles.textInput,
284
+ value: newSecretValue
285
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
286
+ accessibilityLabel: "Add secret",
287
+ accessibilityRole: "button",
288
+ disabled: !onSaveSecret || pendingAction === 'save-secret' || !newSecretName.trim() || !newSecretValue.trim(),
289
+ onPress: addSecret,
290
+ style: ({
291
+ pressed
292
+ }) => [localStyles.primaryButton, (!onSaveSecret || !newSecretName.trim() || !newSecretValue.trim()) && localStyles.disabledButton, pressed && _styles.styles.pressed],
293
+ children: [pendingAction === 'save-secret' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
294
+ color: "#111111",
295
+ size: "small"
296
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Plus, {
297
+ color: "#111111",
298
+ size: 16,
299
+ strokeWidth: 2.6
300
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
301
+ style: localStyles.primaryButtonText,
302
+ children: "Add"
303
+ })]
304
+ })]
305
+ })]
306
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(SettingsSection, {
307
+ icon: _lucideReactNative.ShieldCheck,
308
+ subtitle: "Matches the web tool permission controls.",
309
+ title: "Tool Permissions",
310
+ children: TOOL_OPERATIONS.map(operation => {
311
+ const isEnabled = permissions.auto_approved_operations.includes(operation.id);
312
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
313
+ style: localStyles.permissionRow,
314
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
315
+ style: localStyles.permissionText,
316
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
317
+ style: localStyles.rowTitle,
318
+ children: operation.title
319
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
320
+ style: localStyles.rowBody,
321
+ children: operation.body
322
+ })]
323
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Switch, {
324
+ disabled: !onUpdateToolPermissions || pendingAction === 'toggle-permission',
325
+ ios_backgroundColor: "#2A2A2A",
326
+ onValueChange: enabled => {
327
+ const nextOps = new Set(permissions.auto_approved_operations);
328
+ if (enabled) {
329
+ nextOps.add(operation.id);
330
+ } else {
331
+ nextOps.delete(operation.id);
332
+ }
333
+ updatePermissions({
334
+ ...permissions,
335
+ auto_approved_operations: Array.from(nextOps)
336
+ });
337
+ },
338
+ thumbColor: "#F4F4F5",
339
+ trackColor: {
340
+ false: '#2A2A2A',
341
+ true: '#246B43'
342
+ },
343
+ value: isEnabled
344
+ })]
345
+ }, operation.id);
346
+ })
347
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(SettingsSection, {
348
+ icon: _lucideReactNative.Plug,
349
+ subtitle: "Per-connector guardrails injected before tool use.",
350
+ title: "Connector Guards",
351
+ children: [activeConnectorIds.length > 0 ? activeConnectorIds.map(connectorId => {
352
+ const connector = connectedConnectors.find(item => item.id === connectorId);
353
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
354
+ style: localStyles.connectorGuard,
355
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
356
+ style: localStyles.connectorHeader,
357
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
358
+ style: localStyles.connectorIcon,
359
+ children: (0, _connectorBrandIcons.hasConnectorBrandIcon)(connectorId) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_connectorBrandIcons.ConnectorBrandIcon, {
360
+ connectorId: connectorId,
361
+ size: 22
362
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
363
+ style: localStyles.connectorFallback,
364
+ children: connector?.iconFallbackLabel ?? connectorId.slice(0, 2).toUpperCase()
365
+ })
366
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
367
+ style: localStyles.connectorTitleWrap,
368
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
369
+ style: localStyles.rowTitle,
370
+ children: connector?.name ?? connectorId
371
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
372
+ numberOfLines: 1,
373
+ style: localStyles.rowBody,
374
+ children: connector?.accountIdentifier || 'Connected'
375
+ })]
376
+ })]
377
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
378
+ multiline: true,
379
+ onChangeText: value => {
380
+ setGuardDrafts(current => ({
381
+ ...current,
382
+ [connectorId]: value.slice(0, 500)
383
+ }));
384
+ },
385
+ placeholder: "Example: ask before sending email outside my domain.",
386
+ placeholderTextColor: "#71717A",
387
+ style: [localStyles.textInput, localStyles.guardInput],
388
+ value: guardDrafts[connectorId] ?? ''
389
+ })]
390
+ }, connectorId);
391
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
392
+ style: localStyles.mutedText,
393
+ children: "Connect a tool to add connector-specific rules."
394
+ }), activeConnectorIds.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
395
+ accessibilityLabel: "Save connector guards",
396
+ accessibilityRole: "button",
397
+ disabled: !onUpdateToolPermissions || !guardDraftsDirty || pendingAction === 'save-guards',
398
+ onPress: () => updatePermissions({
399
+ auto_approved_operations: permissions.auto_approved_operations,
400
+ connector_guards: guardDrafts
401
+ }, 'save-guards'),
402
+ style: ({
403
+ pressed
404
+ }) => [localStyles.secondaryButton, (!guardDraftsDirty || !onUpdateToolPermissions) && localStyles.disabledButton, pressed && _styles.styles.pressed],
405
+ children: [pendingAction === 'save-guards' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
406
+ color: "#F4F4F5",
407
+ size: "small"
408
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Check, {
409
+ color: "#F4F4F5",
410
+ size: 16,
411
+ strokeWidth: 2.6
412
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
413
+ style: localStyles.secondaryButtonText,
414
+ children: "Save rules"
415
+ })]
416
+ }) : null]
417
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(SettingsSection, {
418
+ icon: _lucideReactNative.Settings2,
419
+ subtitle: "Agent-level account actions.",
420
+ title: "Actions",
421
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ShareMembersSummary, {
422
+ collaborators: collaborators,
423
+ isLoading: isLoadingCollaborators,
424
+ isSharing: pendingAction === 'share',
425
+ onShare: onShareAgentLink ? () => runAction('share', () => onShareAgentLink({
426
+ agentId: agent.id
427
+ })) : undefined
428
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(ActionRow, {
429
+ body: "Open the clone flow for this Superagent.",
430
+ icon: _lucideReactNative.Copy,
431
+ isLoading: pendingAction === 'clone',
432
+ onPress: onCloneAgent ? () => runAction('clone', () => onCloneAgent({
433
+ agentId: agent.id
434
+ })) : undefined,
435
+ title: "Clone agent"
436
+ })]
437
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(SettingsSection, {
438
+ icon: _lucideReactNative.AlertCircle,
439
+ subtitle: "Permanent controls for this agent.",
440
+ title: "Danger Zone",
441
+ tone: "danger",
442
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ActionRow, {
443
+ body: "Permanently delete this Superagent and leave this screen.",
444
+ icon: _lucideReactNative.Trash2,
445
+ isLoading: pendingAction === 'delete-agent',
446
+ onPress: onDeleteAgent ? () => runAction('delete-agent', () => onDeleteAgent({
447
+ agentId: agent.id
448
+ })) : undefined,
449
+ title: "Delete agent",
450
+ tone: "danger"
451
+ })
452
+ })]
453
+ });
454
+ }
455
+ function SettingsSection({
456
+ children,
457
+ icon: Icon,
458
+ isLoading,
459
+ right,
460
+ subtitle,
461
+ title,
462
+ tone = 'default'
463
+ }) {
464
+ const isDanger = tone === 'danger';
465
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
466
+ style: [localStyles.sectionCard, isDanger && localStyles.dangerSectionCard],
467
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
468
+ style: localStyles.sectionHeader,
469
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
470
+ style: [localStyles.sectionIcon, isDanger && localStyles.sectionIconDanger],
471
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
472
+ color: isDanger ? '#FCA5A5' : '#F4F4F5',
473
+ size: 19,
474
+ strokeWidth: 2.35
475
+ })
476
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
477
+ style: localStyles.sectionTitleWrap,
478
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
479
+ style: localStyles.sectionTitle,
480
+ children: title
481
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
482
+ style: localStyles.sectionSubtitle,
483
+ children: subtitle
484
+ })]
485
+ }), right]
486
+ }), isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
487
+ style: localStyles.loadingRow,
488
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
489
+ color: "#FF5A1F"
490
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
491
+ style: localStyles.mutedText,
492
+ children: "Loading..."
493
+ })]
494
+ }) : children]
495
+ });
496
+ }
497
+ function HeaderAction({
498
+ icon: Icon,
499
+ isLoading,
500
+ label,
501
+ onPress
502
+ }) {
503
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
504
+ accessibilityLabel: label,
505
+ accessibilityRole: "button",
506
+ disabled: isLoading,
507
+ onPress: onPress,
508
+ style: ({
509
+ pressed
510
+ }) => [localStyles.headerAction, pressed && _styles.styles.pressed],
511
+ children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
512
+ color: "#F4F4F5",
513
+ size: "small"
514
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
515
+ color: "#F4F4F5",
516
+ size: 16,
517
+ strokeWidth: 2.4
518
+ })
519
+ });
520
+ }
521
+ function ModelPickerModal({
522
+ isVisible,
523
+ options,
524
+ selectedModelId,
525
+ onClose,
526
+ onSelect
527
+ }) {
528
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
529
+ animationType: "fade",
530
+ transparent: true,
531
+ visible: isVisible,
532
+ onRequestClose: onClose,
533
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
534
+ accessibilityRole: "button",
535
+ onPress: onClose,
536
+ style: localStyles.modelModalBackdrop,
537
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
538
+ accessibilityRole: "none",
539
+ onPress: () => undefined,
540
+ style: localStyles.modelModalCard,
541
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
542
+ style: localStyles.modelModalHeader,
543
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
544
+ style: localStyles.modelModalTitle,
545
+ children: "Select model"
546
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
547
+ accessibilityRole: "button",
548
+ onPress: onClose,
549
+ style: ({
550
+ pressed
551
+ }) => [localStyles.modelModalClose, pressed && _styles.styles.pressed],
552
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
553
+ style: localStyles.modelModalCloseText,
554
+ children: "Done"
555
+ })
556
+ })]
557
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
558
+ style: localStyles.modelModalList,
559
+ children: options.map(model => {
560
+ const isSelected = selectedModelId === model.id;
561
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
562
+ accessibilityRole: "button",
563
+ onPress: () => onSelect(model),
564
+ style: ({
565
+ pressed
566
+ }) => [localStyles.modelModalOption, isSelected && localStyles.modelModalOptionActive, pressed && _styles.styles.pressed],
567
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
568
+ style: localStyles.modelModalOptionText,
569
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
570
+ style: localStyles.modelModalOptionLabel,
571
+ children: model.label
572
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
573
+ numberOfLines: 2,
574
+ style: localStyles.modelDescription,
575
+ children: model.description
576
+ })]
577
+ }), isSelected ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Check, {
578
+ color: "#34D399",
579
+ size: 18,
580
+ strokeWidth: 2.7
581
+ }) : null]
582
+ }, model.id);
583
+ })
584
+ })]
585
+ })
586
+ })
587
+ });
588
+ }
589
+ function ActionRow({
590
+ body,
591
+ icon: Icon,
592
+ isLoading,
593
+ onPress,
594
+ title,
595
+ tone = 'default'
596
+ }) {
597
+ const isDanger = tone === 'danger';
598
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
599
+ accessibilityRole: "button",
600
+ disabled: !onPress || isLoading,
601
+ onPress: onPress,
602
+ style: ({
603
+ pressed
604
+ }) => [localStyles.actionRow, isDanger && localStyles.actionRowDanger, !onPress && localStyles.disabledButton, pressed && _styles.styles.pressed],
605
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
606
+ style: [localStyles.actionIcon, isDanger && localStyles.actionIconDanger],
607
+ children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
608
+ color: isDanger ? '#FCA5A5' : '#F4F4F5',
609
+ size: "small"
610
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
611
+ color: isDanger ? '#FCA5A5' : '#F4F4F5',
612
+ size: 18,
613
+ strokeWidth: 2.35
614
+ })
615
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
616
+ style: localStyles.actionText,
617
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
618
+ style: [localStyles.rowTitle, isDanger && localStyles.dangerText],
619
+ children: title
620
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
621
+ style: localStyles.rowBody,
622
+ children: body
623
+ })]
624
+ })]
625
+ });
626
+ }
627
+ function ShareMembersSummary({
628
+ collaborators,
629
+ isLoading,
630
+ isSharing,
631
+ onShare
632
+ }) {
633
+ const memberCount = collaborators?.length ?? 0;
634
+ const pendingCount = collaborators?.filter(collaborator => collaborator.is_pending).length ?? 0;
635
+ const body = isLoading ? 'Loading shared chat members...' : `${memberCount} ${memberCount === 1 ? 'person has' : 'people have'} access${pendingCount ? `, ${pendingCount} pending` : ''}. Share the Superagent link.`;
636
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
637
+ accessibilityLabel: "Share Superagent link",
638
+ accessibilityRole: "button",
639
+ disabled: !onShare || isLoading || isSharing,
640
+ onPress: onShare,
641
+ style: ({
642
+ pressed
643
+ }) => [localStyles.actionRow, (!onShare || isLoading || isSharing) && localStyles.disabledButton, pressed && _styles.styles.pressed],
644
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
645
+ style: localStyles.actionIcon,
646
+ children: isLoading || isSharing ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
647
+ color: "#F4F4F5",
648
+ size: "small"
649
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Share2, {
650
+ color: "#F4F4F5",
651
+ size: 18,
652
+ strokeWidth: 2.35
653
+ })
654
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
655
+ style: localStyles.actionText,
656
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
657
+ style: localStyles.rowTitle,
658
+ children: "Share agent"
659
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
660
+ style: localStyles.rowBody,
661
+ children: body
662
+ })]
663
+ })]
664
+ });
665
+ }
666
+ function normalizePermissions(config) {
667
+ return {
668
+ auto_approved_operations: config?.auto_approved_operations ?? [],
669
+ connector_guards: config?.connector_guards ?? {}
670
+ };
671
+ }
672
+ function cleanGuards(guards) {
673
+ return Object.fromEntries(Object.entries(guards).map(([key, value]) => [key, value.trim()]).filter(([, value]) => value));
674
+ }
675
+ function toggleSecretVisibility(current, name) {
676
+ const next = new Set(current);
677
+ if (next.has(name)) {
678
+ next.delete(name);
679
+ } else {
680
+ next.add(name);
681
+ }
682
+ return next;
683
+ }
684
+ const localStyles = _reactNative.StyleSheet.create({
685
+ actionIcon: {
686
+ alignItems: 'center',
687
+ backgroundColor: '#1F1F23',
688
+ borderRadius: 12,
689
+ height: 38,
690
+ justifyContent: 'center',
691
+ marginRight: 11,
692
+ width: 38
693
+ },
694
+ actionIconDanger: {
695
+ backgroundColor: '#351516'
696
+ },
697
+ actionRow: {
698
+ alignItems: 'center',
699
+ backgroundColor: '#151515',
700
+ borderColor: '#2A2A2A',
701
+ borderRadius: 13,
702
+ borderWidth: 1,
703
+ flexDirection: 'row',
704
+ marginTop: 9,
705
+ minHeight: 62,
706
+ paddingHorizontal: 11,
707
+ paddingVertical: 10
708
+ },
709
+ actionRowDanger: {
710
+ backgroundColor: '#1C0F10',
711
+ borderColor: '#552022'
712
+ },
713
+ actionText: {
714
+ flex: 1,
715
+ minWidth: 0
716
+ },
717
+ addSecretBox: {
718
+ gap: 8,
719
+ marginTop: 11
720
+ },
721
+ connectorFallback: {
722
+ color: '#F4F4F5',
723
+ fontSize: 10,
724
+ fontWeight: '900'
725
+ },
726
+ connectorGuard: {
727
+ marginTop: 10
728
+ },
729
+ connectorHeader: {
730
+ alignItems: 'center',
731
+ flexDirection: 'row',
732
+ marginBottom: 8
733
+ },
734
+ connectorIcon: {
735
+ alignItems: 'center',
736
+ backgroundColor: '#F4F4F5',
737
+ borderRadius: 10,
738
+ height: 34,
739
+ justifyContent: 'center',
740
+ marginRight: 10,
741
+ overflow: 'hidden',
742
+ width: 34
743
+ },
744
+ connectorTitleWrap: {
745
+ flex: 1,
746
+ minWidth: 0
747
+ },
748
+ dangerSectionCard: {
749
+ borderColor: '#552022'
750
+ },
751
+ dangerText: {
752
+ color: '#FCA5A5'
753
+ },
754
+ disabledButton: {
755
+ opacity: 0.55
756
+ },
757
+ guardInput: {
758
+ minHeight: 74,
759
+ paddingTop: 10,
760
+ textAlignVertical: 'top'
761
+ },
762
+ headerAction: {
763
+ alignItems: 'center',
764
+ backgroundColor: '#1F1F23',
765
+ borderColor: '#2A2A2A',
766
+ borderRadius: 11,
767
+ borderWidth: 1,
768
+ height: 34,
769
+ justifyContent: 'center',
770
+ marginLeft: 10,
771
+ width: 34
772
+ },
773
+ iconButton: {
774
+ alignItems: 'center',
775
+ backgroundColor: '#242427',
776
+ borderRadius: 10,
777
+ height: 34,
778
+ justifyContent: 'center',
779
+ marginLeft: 7,
780
+ width: 34
781
+ },
782
+ iconButtonDanger: {
783
+ alignItems: 'center',
784
+ backgroundColor: '#351516',
785
+ borderRadius: 10,
786
+ height: 34,
787
+ justifyContent: 'center',
788
+ marginLeft: 7,
789
+ width: 34
790
+ },
791
+ loadingRow: {
792
+ alignItems: 'center',
793
+ flexDirection: 'row',
794
+ gap: 9,
795
+ paddingVertical: 12
796
+ },
797
+ modelDescription: {
798
+ color: '#A1A1AA',
799
+ fontSize: 11,
800
+ fontWeight: '700',
801
+ lineHeight: 15,
802
+ marginTop: 4
803
+ },
804
+ modelDropdown: {
805
+ alignItems: 'center',
806
+ backgroundColor: '#151515',
807
+ borderColor: '#2A2A2A',
808
+ borderRadius: 13,
809
+ borderWidth: 1,
810
+ flexDirection: 'row',
811
+ minHeight: 54,
812
+ paddingLeft: 14,
813
+ paddingRight: 9,
814
+ paddingVertical: 9
815
+ },
816
+ modelDropdownIcon: {
817
+ alignItems: 'center',
818
+ backgroundColor: '#242427',
819
+ borderRadius: 11,
820
+ height: 34,
821
+ justifyContent: 'center',
822
+ marginLeft: 10,
823
+ width: 34
824
+ },
825
+ modelDropdownLabel: {
826
+ color: '#A1A1AA',
827
+ flexShrink: 0,
828
+ fontSize: 13,
829
+ fontWeight: '900',
830
+ marginRight: 12
831
+ },
832
+ modelDropdownValue: {
833
+ color: '#F4F4F5',
834
+ flex: 1,
835
+ fontSize: 16,
836
+ fontWeight: '900',
837
+ minWidth: 0,
838
+ textAlign: 'right'
839
+ },
840
+ modelModalBackdrop: {
841
+ backgroundColor: 'rgba(0, 0, 0, 0.58)',
842
+ flex: 1,
843
+ justifyContent: 'flex-end',
844
+ padding: 12
845
+ },
846
+ modelModalCard: {
847
+ backgroundColor: '#101012',
848
+ borderColor: '#2A2A2A',
849
+ borderRadius: 22,
850
+ borderWidth: 1,
851
+ maxHeight: '74%',
852
+ overflow: 'hidden'
853
+ },
854
+ modelModalClose: {
855
+ backgroundColor: '#242427',
856
+ borderRadius: 12,
857
+ paddingHorizontal: 12,
858
+ paddingVertical: 7
859
+ },
860
+ modelModalCloseText: {
861
+ color: '#F4F4F5',
862
+ fontSize: 12,
863
+ fontWeight: '900'
864
+ },
865
+ modelModalHeader: {
866
+ alignItems: 'center',
867
+ borderBottomColor: '#242427',
868
+ borderBottomWidth: 1,
869
+ flexDirection: 'row',
870
+ justifyContent: 'space-between',
871
+ paddingHorizontal: 14,
872
+ paddingVertical: 12
873
+ },
874
+ modelModalList: {
875
+ maxHeight: 430
876
+ },
877
+ modelModalOption: {
878
+ alignItems: 'center',
879
+ borderBottomColor: '#1F1F23',
880
+ borderBottomWidth: 1,
881
+ flexDirection: 'row',
882
+ minHeight: 64,
883
+ paddingHorizontal: 14,
884
+ paddingVertical: 10
885
+ },
886
+ modelModalOptionActive: {
887
+ backgroundColor: '#13231D'
888
+ },
889
+ modelModalOptionLabel: {
890
+ color: '#F4F4F5',
891
+ fontSize: 14,
892
+ fontWeight: '900'
893
+ },
894
+ modelModalOptionText: {
895
+ flex: 1,
896
+ minWidth: 0,
897
+ paddingRight: 12
898
+ },
899
+ modelModalTitle: {
900
+ color: '#F4F4F5',
901
+ fontSize: 16,
902
+ fontWeight: '900'
903
+ },
904
+ mutedText: {
905
+ color: '#A1A1AA',
906
+ fontSize: 12,
907
+ fontWeight: '700',
908
+ lineHeight: 17
909
+ },
910
+ permissionRow: {
911
+ alignItems: 'center',
912
+ backgroundColor: '#151515',
913
+ borderColor: '#2A2A2A',
914
+ borderRadius: 13,
915
+ borderWidth: 1,
916
+ flexDirection: 'row',
917
+ marginBottom: 9,
918
+ minHeight: 70,
919
+ paddingHorizontal: 12,
920
+ paddingVertical: 10
921
+ },
922
+ permissionText: {
923
+ flex: 1,
924
+ marginRight: 10,
925
+ minWidth: 0
926
+ },
927
+ primaryButton: {
928
+ alignItems: 'center',
929
+ alignSelf: 'flex-start',
930
+ backgroundColor: '#F4F4F5',
931
+ borderRadius: 12,
932
+ flexDirection: 'row',
933
+ minHeight: 38,
934
+ paddingHorizontal: 12
935
+ },
936
+ primaryButtonText: {
937
+ color: '#111111',
938
+ fontSize: 13,
939
+ fontWeight: '900',
940
+ marginLeft: 6
941
+ },
942
+ rowBody: {
943
+ color: '#A1A1AA',
944
+ fontSize: 12,
945
+ fontWeight: '700',
946
+ lineHeight: 17,
947
+ marginTop: 3
948
+ },
949
+ rowTitle: {
950
+ color: '#F4F4F5',
951
+ fontSize: 14,
952
+ fontWeight: '900'
953
+ },
954
+ secondaryButton: {
955
+ alignItems: 'center',
956
+ alignSelf: 'flex-start',
957
+ backgroundColor: '#242427',
958
+ borderColor: '#353539',
959
+ borderRadius: 12,
960
+ borderWidth: 1,
961
+ flexDirection: 'row',
962
+ marginTop: 11,
963
+ minHeight: 38,
964
+ paddingHorizontal: 12
965
+ },
966
+ secondaryButtonText: {
967
+ color: '#F4F4F5',
968
+ fontSize: 13,
969
+ fontWeight: '900',
970
+ marginLeft: 6
971
+ },
972
+ secretList: {
973
+ gap: 8
974
+ },
975
+ secretName: {
976
+ color: '#F4F4F5',
977
+ fontFamily: 'Courier',
978
+ fontSize: 12,
979
+ fontWeight: '900'
980
+ },
981
+ secretRow: {
982
+ alignItems: 'center',
983
+ backgroundColor: '#151515',
984
+ borderColor: '#2A2A2A',
985
+ borderRadius: 13,
986
+ borderWidth: 1,
987
+ flexDirection: 'row',
988
+ minHeight: 58,
989
+ paddingHorizontal: 11,
990
+ paddingVertical: 9
991
+ },
992
+ secretText: {
993
+ flex: 1,
994
+ minWidth: 0
995
+ },
996
+ secretValue: {
997
+ color: '#A1A1AA',
998
+ fontSize: 12,
999
+ fontWeight: '700',
1000
+ marginTop: 3
1001
+ },
1002
+ summaryRow: {
1003
+ alignItems: 'center',
1004
+ backgroundColor: '#151515',
1005
+ borderColor: '#2A2A2A',
1006
+ borderRadius: 14,
1007
+ borderWidth: 1,
1008
+ flexDirection: 'row',
1009
+ marginBottom: 8,
1010
+ minHeight: 64,
1011
+ paddingHorizontal: 12,
1012
+ paddingVertical: 10
1013
+ },
1014
+ sectionCard: {
1015
+ backgroundColor: '#0B0B0C',
1016
+ borderColor: '#242427',
1017
+ borderRadius: 18,
1018
+ borderWidth: 1,
1019
+ marginBottom: 14,
1020
+ padding: 12
1021
+ },
1022
+ sectionHeader: {
1023
+ alignItems: 'center',
1024
+ flexDirection: 'row',
1025
+ marginBottom: 12
1026
+ },
1027
+ sectionIcon: {
1028
+ alignItems: 'center',
1029
+ backgroundColor: '#1F1F23',
1030
+ borderRadius: 13,
1031
+ height: 40,
1032
+ justifyContent: 'center',
1033
+ marginRight: 11,
1034
+ width: 40
1035
+ },
1036
+ sectionIconDanger: {
1037
+ backgroundColor: '#351516'
1038
+ },
1039
+ sectionSubtitle: {
1040
+ color: '#8E8E93',
1041
+ fontSize: 12,
1042
+ fontWeight: '700',
1043
+ lineHeight: 16,
1044
+ marginTop: 2
1045
+ },
1046
+ sectionTitle: {
1047
+ color: '#F4F4F5',
1048
+ fontSize: 16,
1049
+ fontWeight: '900'
1050
+ },
1051
+ sectionTitleWrap: {
1052
+ flex: 1,
1053
+ minWidth: 0
1054
+ },
1055
+ textInput: {
1056
+ backgroundColor: '#151515',
1057
+ borderColor: '#2A2A2A',
1058
+ borderRadius: 12,
1059
+ borderWidth: 1,
1060
+ color: '#F4F4F5',
1061
+ fontSize: 13,
1062
+ fontWeight: '700',
1063
+ minHeight: 42,
1064
+ paddingHorizontal: 11
1065
+ }
1066
+ });
1067
+ //# sourceMappingURL=AgentSettingsPanel.js.map