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