@agent-native/core 0.79.25 → 0.79.27

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 (2048) hide show
  1. package/corpus/README.md +2 -2
  2. package/corpus/core/CHANGELOG.md +25 -0
  3. package/corpus/core/docs/content/a2a-protocol.mdx +97 -9
  4. package/corpus/core/docs/content/actions.mdx +65 -4
  5. package/corpus/core/docs/content/agent-mentions.mdx +68 -4
  6. package/corpus/core/docs/content/agent-surfaces.mdx +112 -8
  7. package/corpus/core/docs/content/agent-teams.mdx +171 -12
  8. package/corpus/core/docs/content/agent-web-surfaces.mdx +51 -4
  9. package/corpus/core/docs/content/authentication.mdx +122 -8
  10. package/corpus/core/docs/content/automations.mdx +110 -8
  11. package/corpus/core/docs/content/blueprint-installer.mdx +42 -4
  12. package/corpus/core/docs/content/cli-adapters.mdx +44 -4
  13. package/corpus/core/docs/content/client.mdx +79 -8
  14. package/corpus/core/docs/content/cloneable-saas.mdx +85 -8
  15. package/corpus/core/docs/content/code-agents-ui.mdx +98 -8
  16. package/corpus/core/docs/content/components.mdx +118 -8
  17. package/corpus/core/docs/content/context-awareness.mdx +98 -8
  18. package/corpus/core/docs/content/creating-templates.mdx +49 -4
  19. package/corpus/core/docs/content/cross-app-sso.mdx +109 -8
  20. package/corpus/core/docs/content/database.mdx +56 -4
  21. package/corpus/core/docs/content/deployment.mdx +103 -8
  22. package/corpus/core/docs/content/dispatch.mdx +134 -8
  23. package/corpus/core/docs/content/drop-in-agent.mdx +63 -4
  24. package/corpus/core/docs/content/durable-background-runs.mdx +98 -8
  25. package/corpus/core/docs/content/durable-resume.mdx +47 -4
  26. package/corpus/core/docs/content/embedding-sdk.mdx +83 -8
  27. package/corpus/core/docs/content/evals.mdx +102 -8
  28. package/corpus/core/docs/content/extensions.mdx +113 -9
  29. package/corpus/core/docs/content/external-agents.mdx +119 -8
  30. package/corpus/core/docs/content/faq.mdx +98 -8
  31. package/corpus/core/docs/content/file-uploads.mdx +61 -4
  32. package/corpus/core/docs/content/frames.mdx +90 -8
  33. package/corpus/core/docs/content/generative-ui.mdx +50 -4
  34. package/corpus/core/docs/content/getting-started.mdx +34 -4
  35. package/corpus/core/docs/content/harness-agents.mdx +77 -8
  36. package/corpus/core/docs/content/human-approval.mdx +50 -4
  37. package/corpus/core/docs/content/key-concepts.mdx +102 -8
  38. package/corpus/core/docs/content/local-file-mode.mdx +58 -4
  39. package/corpus/core/docs/content/locales/ar-SA/a2a-protocol.mdx +97 -9
  40. package/corpus/core/docs/content/locales/ar-SA/actions.mdx +65 -4
  41. package/corpus/core/docs/content/locales/ar-SA/agent-mentions.mdx +68 -4
  42. package/corpus/core/docs/content/locales/ar-SA/agent-surfaces.mdx +114 -8
  43. package/corpus/core/docs/content/locales/ar-SA/agent-teams.mdx +174 -12
  44. package/corpus/core/docs/content/locales/ar-SA/agent-web-surfaces.mdx +49 -4
  45. package/corpus/core/docs/content/locales/ar-SA/authentication.mdx +120 -8
  46. package/corpus/core/docs/content/locales/ar-SA/automations.mdx +110 -8
  47. package/corpus/core/docs/content/locales/ar-SA/blueprint-installer.mdx +42 -4
  48. package/corpus/core/docs/content/locales/ar-SA/cli-adapters.mdx +40 -4
  49. package/corpus/core/docs/content/locales/ar-SA/client.mdx +80 -8
  50. package/corpus/core/docs/content/locales/ar-SA/cloneable-saas.mdx +85 -8
  51. package/corpus/core/docs/content/locales/ar-SA/code-agents-ui.mdx +99 -8
  52. package/corpus/core/docs/content/locales/ar-SA/components.mdx +114 -8
  53. package/corpus/core/docs/content/locales/ar-SA/context-awareness.mdx +100 -8
  54. package/corpus/core/docs/content/locales/ar-SA/creating-templates.mdx +51 -4
  55. package/corpus/core/docs/content/locales/ar-SA/cross-app-sso.mdx +109 -8
  56. package/corpus/core/docs/content/locales/ar-SA/database.mdx +52 -4
  57. package/corpus/core/docs/content/locales/ar-SA/deployment.mdx +103 -8
  58. package/corpus/core/docs/content/locales/ar-SA/dispatch.mdx +134 -8
  59. package/corpus/core/docs/content/locales/ar-SA/drop-in-agent.mdx +63 -4
  60. package/corpus/core/docs/content/locales/ar-SA/durable-resume.mdx +47 -4
  61. package/corpus/core/docs/content/locales/ar-SA/embedding-sdk.mdx +83 -8
  62. package/corpus/core/docs/content/locales/ar-SA/evals.mdx +102 -8
  63. package/corpus/core/docs/content/locales/ar-SA/extensions.mdx +113 -9
  64. package/corpus/core/docs/content/locales/ar-SA/external-agents.mdx +119 -8
  65. package/corpus/core/docs/content/locales/ar-SA/faq.mdx +98 -8
  66. package/corpus/core/docs/content/locales/ar-SA/file-uploads.mdx +61 -4
  67. package/corpus/core/docs/content/locales/ar-SA/frames.mdx +88 -8
  68. package/corpus/core/docs/content/locales/ar-SA/getting-started.mdx +34 -4
  69. package/corpus/core/docs/content/locales/ar-SA/harness-agents.mdx +79 -8
  70. package/corpus/core/docs/content/locales/ar-SA/human-approval.mdx +50 -4
  71. package/corpus/core/docs/content/locales/ar-SA/key-concepts.mdx +107 -8
  72. package/corpus/core/docs/content/locales/ar-SA/local-file-mode.mdx +56 -4
  73. package/corpus/core/docs/content/locales/ar-SA/mcp-apps.mdx +120 -10
  74. package/corpus/core/docs/content/locales/ar-SA/mcp-clients.mdx +133 -8
  75. package/corpus/core/docs/content/locales/ar-SA/mcp-protocol.mdx +105 -8
  76. package/corpus/core/docs/content/locales/ar-SA/messaging.mdx +115 -8
  77. package/corpus/core/docs/content/locales/ar-SA/migration-workbench.mdx +47 -4
  78. package/corpus/core/docs/content/locales/ar-SA/multi-app-workspace.mdx +91 -8
  79. package/corpus/core/docs/content/locales/ar-SA/multi-tenancy.mdx +80 -8
  80. package/corpus/core/docs/content/locales/ar-SA/native-chat-ui.mdx +104 -8
  81. package/corpus/core/docs/content/locales/ar-SA/notifications.mdx +135 -8
  82. package/corpus/core/docs/content/locales/ar-SA/observability.mdx +102 -8
  83. package/corpus/core/docs/content/locales/ar-SA/observational-memory.mdx +87 -8
  84. package/corpus/core/docs/content/locales/ar-SA/onboarding.mdx +45 -4
  85. package/corpus/core/docs/content/locales/ar-SA/plan-plugin.mdx +99 -8
  86. package/corpus/core/docs/content/locales/ar-SA/pr-visual-recap.mdx +125 -8
  87. package/corpus/core/docs/content/locales/ar-SA/processors.mdx +41 -4
  88. package/corpus/core/docs/content/locales/ar-SA/progress.mdx +46 -4
  89. package/corpus/core/docs/content/locales/ar-SA/pure-agent-apps.mdx +48 -4
  90. package/corpus/core/docs/content/locales/ar-SA/real-time-collaboration.mdx +102 -8
  91. package/corpus/core/docs/content/locales/ar-SA/recurring-jobs.mdx +59 -4
  92. package/corpus/core/docs/content/locales/ar-SA/routing.mdx +44 -5
  93. package/corpus/core/docs/content/locales/ar-SA/sandbox-adapters.mdx +43 -4
  94. package/corpus/core/docs/content/locales/ar-SA/security.mdx +80 -8
  95. package/corpus/core/docs/content/locales/ar-SA/server.mdx +173 -12
  96. package/corpus/core/docs/content/locales/ar-SA/sharing.mdx +45 -4
  97. package/corpus/core/docs/content/locales/ar-SA/skills-guide.mdx +118 -9
  98. package/corpus/core/docs/content/locales/ar-SA/template-analytics.mdx +46 -4
  99. package/corpus/core/docs/content/locales/ar-SA/template-assets.mdx +62 -4
  100. package/corpus/core/docs/content/locales/ar-SA/template-brain.mdx +65 -4
  101. package/corpus/core/docs/content/locales/ar-SA/template-calendar.mdx +62 -4
  102. package/corpus/core/docs/content/locales/ar-SA/template-chat.mdx +61 -4
  103. package/corpus/core/docs/content/locales/ar-SA/template-clips.mdx +52 -4
  104. package/corpus/core/docs/content/locales/ar-SA/template-content.mdx +62 -4
  105. package/corpus/core/docs/content/locales/ar-SA/template-design.mdx +60 -4
  106. package/corpus/core/docs/content/locales/ar-SA/template-dispatch.mdx +57 -4
  107. package/corpus/core/docs/content/locales/ar-SA/template-forms.mdx +62 -4
  108. package/corpus/core/docs/content/locales/ar-SA/template-mail.mdx +60 -4
  109. package/corpus/core/docs/content/locales/ar-SA/template-plan.mdx +61 -4
  110. package/corpus/core/docs/content/locales/ar-SA/template-slides.mdx +49 -4
  111. package/corpus/core/docs/content/locales/ar-SA/template-videos.mdx +53 -4
  112. package/corpus/core/docs/content/locales/ar-SA/tracking.mdx +54 -4
  113. package/corpus/core/docs/content/locales/ar-SA/using-your-agent.mdx +51 -4
  114. package/corpus/core/docs/content/locales/ar-SA/voice-input.mdx +43 -4
  115. package/corpus/core/docs/content/locales/ar-SA/what-is-agent-native.mdx +96 -8
  116. package/corpus/core/docs/content/locales/ar-SA/workspace-connections.mdx +128 -8
  117. package/corpus/core/docs/content/locales/ar-SA/workspace-management.mdx +50 -4
  118. package/corpus/core/docs/content/locales/ar-SA/workspace.mdx +112 -8
  119. package/corpus/core/docs/content/locales/ar-SA/writing-agent-instructions.mdx +41 -4
  120. package/corpus/core/docs/content/locales/de-DE/a2a-protocol.mdx +99 -9
  121. package/corpus/core/docs/content/locales/de-DE/actions.mdx +67 -4
  122. package/corpus/core/docs/content/locales/de-DE/agent-mentions.mdx +68 -4
  123. package/corpus/core/docs/content/locales/de-DE/agent-surfaces.mdx +116 -8
  124. package/corpus/core/docs/content/locales/de-DE/agent-teams.mdx +171 -12
  125. package/corpus/core/docs/content/locales/de-DE/agent-web-surfaces.mdx +51 -4
  126. package/corpus/core/docs/content/locales/de-DE/authentication.mdx +122 -8
  127. package/corpus/core/docs/content/locales/de-DE/automations.mdx +110 -8
  128. package/corpus/core/docs/content/locales/de-DE/blueprint-installer.mdx +42 -4
  129. package/corpus/core/docs/content/locales/de-DE/cli-adapters.mdx +44 -4
  130. package/corpus/core/docs/content/locales/de-DE/client.mdx +79 -8
  131. package/corpus/core/docs/content/locales/de-DE/cloneable-saas.mdx +85 -8
  132. package/corpus/core/docs/content/locales/de-DE/code-agents-ui.mdx +100 -8
  133. package/corpus/core/docs/content/locales/de-DE/components.mdx +118 -8
  134. package/corpus/core/docs/content/locales/de-DE/context-awareness.mdx +98 -8
  135. package/corpus/core/docs/content/locales/de-DE/creating-templates.mdx +51 -4
  136. package/corpus/core/docs/content/locales/de-DE/cross-app-sso.mdx +109 -8
  137. package/corpus/core/docs/content/locales/de-DE/database.mdx +52 -4
  138. package/corpus/core/docs/content/locales/de-DE/deployment.mdx +103 -8
  139. package/corpus/core/docs/content/locales/de-DE/dispatch.mdx +134 -8
  140. package/corpus/core/docs/content/locales/de-DE/drop-in-agent.mdx +63 -4
  141. package/corpus/core/docs/content/locales/de-DE/durable-resume.mdx +47 -4
  142. package/corpus/core/docs/content/locales/de-DE/embedding-sdk.mdx +85 -8
  143. package/corpus/core/docs/content/locales/de-DE/evals.mdx +102 -8
  144. package/corpus/core/docs/content/locales/de-DE/extensions.mdx +113 -9
  145. package/corpus/core/docs/content/locales/de-DE/external-agents.mdx +119 -8
  146. package/corpus/core/docs/content/locales/de-DE/faq.mdx +98 -8
  147. package/corpus/core/docs/content/locales/de-DE/file-uploads.mdx +61 -4
  148. package/corpus/core/docs/content/locales/de-DE/frames.mdx +88 -8
  149. package/corpus/core/docs/content/locales/de-DE/getting-started.mdx +34 -4
  150. package/corpus/core/docs/content/locales/de-DE/harness-agents.mdx +79 -8
  151. package/corpus/core/docs/content/locales/de-DE/human-approval.mdx +50 -4
  152. package/corpus/core/docs/content/locales/de-DE/key-concepts.mdx +104 -8
  153. package/corpus/core/docs/content/locales/de-DE/local-file-mode.mdx +58 -4
  154. package/corpus/core/docs/content/locales/de-DE/mcp-apps.mdx +120 -10
  155. package/corpus/core/docs/content/locales/de-DE/mcp-clients.mdx +133 -8
  156. package/corpus/core/docs/content/locales/de-DE/mcp-protocol.mdx +105 -8
  157. package/corpus/core/docs/content/locales/de-DE/messaging.mdx +115 -8
  158. package/corpus/core/docs/content/locales/de-DE/migration-workbench.mdx +47 -4
  159. package/corpus/core/docs/content/locales/de-DE/multi-app-workspace.mdx +91 -8
  160. package/corpus/core/docs/content/locales/de-DE/multi-tenancy.mdx +80 -8
  161. package/corpus/core/docs/content/locales/de-DE/native-chat-ui.mdx +108 -8
  162. package/corpus/core/docs/content/locales/de-DE/notifications.mdx +135 -8
  163. package/corpus/core/docs/content/locales/de-DE/observability.mdx +102 -8
  164. package/corpus/core/docs/content/locales/de-DE/observational-memory.mdx +92 -8
  165. package/corpus/core/docs/content/locales/de-DE/onboarding.mdx +45 -4
  166. package/corpus/core/docs/content/locales/de-DE/plan-plugin.mdx +99 -8
  167. package/corpus/core/docs/content/locales/de-DE/pr-visual-recap.mdx +125 -8
  168. package/corpus/core/docs/content/locales/de-DE/processors.mdx +41 -4
  169. package/corpus/core/docs/content/locales/de-DE/progress.mdx +46 -4
  170. package/corpus/core/docs/content/locales/de-DE/pure-agent-apps.mdx +50 -4
  171. package/corpus/core/docs/content/locales/de-DE/real-time-collaboration.mdx +104 -8
  172. package/corpus/core/docs/content/locales/de-DE/recurring-jobs.mdx +59 -4
  173. package/corpus/core/docs/content/locales/de-DE/routing.mdx +44 -5
  174. package/corpus/core/docs/content/locales/de-DE/sandbox-adapters.mdx +43 -4
  175. package/corpus/core/docs/content/locales/de-DE/security.mdx +80 -8
  176. package/corpus/core/docs/content/locales/de-DE/server.mdx +171 -12
  177. package/corpus/core/docs/content/locales/de-DE/sharing.mdx +45 -4
  178. package/corpus/core/docs/content/locales/de-DE/skills-guide.mdx +118 -9
  179. package/corpus/core/docs/content/locales/de-DE/template-analytics.mdx +46 -4
  180. package/corpus/core/docs/content/locales/de-DE/template-assets.mdx +62 -4
  181. package/corpus/core/docs/content/locales/de-DE/template-brain.mdx +69 -4
  182. package/corpus/core/docs/content/locales/de-DE/template-calendar.mdx +62 -4
  183. package/corpus/core/docs/content/locales/de-DE/template-chat.mdx +61 -4
  184. package/corpus/core/docs/content/locales/de-DE/template-clips.mdx +52 -4
  185. package/corpus/core/docs/content/locales/de-DE/template-content.mdx +60 -4
  186. package/corpus/core/docs/content/locales/de-DE/template-design.mdx +58 -4
  187. package/corpus/core/docs/content/locales/de-DE/template-dispatch.mdx +57 -4
  188. package/corpus/core/docs/content/locales/de-DE/template-forms.mdx +64 -4
  189. package/corpus/core/docs/content/locales/de-DE/template-mail.mdx +60 -4
  190. package/corpus/core/docs/content/locales/de-DE/template-plan.mdx +63 -4
  191. package/corpus/core/docs/content/locales/de-DE/template-slides.mdx +49 -4
  192. package/corpus/core/docs/content/locales/de-DE/template-videos.mdx +53 -4
  193. package/corpus/core/docs/content/locales/de-DE/tracking.mdx +54 -4
  194. package/corpus/core/docs/content/locales/de-DE/using-your-agent.mdx +51 -4
  195. package/corpus/core/docs/content/locales/de-DE/voice-input.mdx +45 -4
  196. package/corpus/core/docs/content/locales/de-DE/what-is-agent-native.mdx +100 -8
  197. package/corpus/core/docs/content/locales/de-DE/workspace-connections.mdx +128 -8
  198. package/corpus/core/docs/content/locales/de-DE/workspace-management.mdx +50 -4
  199. package/corpus/core/docs/content/locales/de-DE/workspace.mdx +111 -8
  200. package/corpus/core/docs/content/locales/de-DE/writing-agent-instructions.mdx +45 -4
  201. package/corpus/core/docs/content/locales/es-ES/a2a-protocol.mdx +99 -9
  202. package/corpus/core/docs/content/locales/es-ES/actions.mdx +67 -4
  203. package/corpus/core/docs/content/locales/es-ES/agent-mentions.mdx +68 -4
  204. package/corpus/core/docs/content/locales/es-ES/agent-surfaces.mdx +120 -8
  205. package/corpus/core/docs/content/locales/es-ES/agent-teams.mdx +172 -12
  206. package/corpus/core/docs/content/locales/es-ES/agent-web-surfaces.mdx +51 -4
  207. package/corpus/core/docs/content/locales/es-ES/authentication.mdx +122 -8
  208. package/corpus/core/docs/content/locales/es-ES/automations.mdx +110 -8
  209. package/corpus/core/docs/content/locales/es-ES/blueprint-installer.mdx +42 -4
  210. package/corpus/core/docs/content/locales/es-ES/cli-adapters.mdx +44 -4
  211. package/corpus/core/docs/content/locales/es-ES/client.mdx +79 -8
  212. package/corpus/core/docs/content/locales/es-ES/cloneable-saas.mdx +85 -8
  213. package/corpus/core/docs/content/locales/es-ES/code-agents-ui.mdx +101 -8
  214. package/corpus/core/docs/content/locales/es-ES/components.mdx +118 -8
  215. package/corpus/core/docs/content/locales/es-ES/context-awareness.mdx +98 -8
  216. package/corpus/core/docs/content/locales/es-ES/creating-templates.mdx +51 -4
  217. package/corpus/core/docs/content/locales/es-ES/cross-app-sso.mdx +109 -8
  218. package/corpus/core/docs/content/locales/es-ES/database.mdx +52 -4
  219. package/corpus/core/docs/content/locales/es-ES/deployment.mdx +103 -8
  220. package/corpus/core/docs/content/locales/es-ES/dispatch.mdx +134 -8
  221. package/corpus/core/docs/content/locales/es-ES/drop-in-agent.mdx +63 -4
  222. package/corpus/core/docs/content/locales/es-ES/durable-resume.mdx +47 -4
  223. package/corpus/core/docs/content/locales/es-ES/embedding-sdk.mdx +87 -8
  224. package/corpus/core/docs/content/locales/es-ES/evals.mdx +102 -8
  225. package/corpus/core/docs/content/locales/es-ES/extensions.mdx +113 -9
  226. package/corpus/core/docs/content/locales/es-ES/external-agents.mdx +119 -8
  227. package/corpus/core/docs/content/locales/es-ES/faq.mdx +98 -8
  228. package/corpus/core/docs/content/locales/es-ES/file-uploads.mdx +61 -4
  229. package/corpus/core/docs/content/locales/es-ES/frames.mdx +88 -8
  230. package/corpus/core/docs/content/locales/es-ES/getting-started.mdx +34 -4
  231. package/corpus/core/docs/content/locales/es-ES/harness-agents.mdx +79 -8
  232. package/corpus/core/docs/content/locales/es-ES/human-approval.mdx +50 -4
  233. package/corpus/core/docs/content/locales/es-ES/key-concepts.mdx +104 -8
  234. package/corpus/core/docs/content/locales/es-ES/local-file-mode.mdx +60 -4
  235. package/corpus/core/docs/content/locales/es-ES/mcp-apps.mdx +120 -10
  236. package/corpus/core/docs/content/locales/es-ES/mcp-clients.mdx +135 -8
  237. package/corpus/core/docs/content/locales/es-ES/mcp-protocol.mdx +105 -8
  238. package/corpus/core/docs/content/locales/es-ES/messaging.mdx +115 -8
  239. package/corpus/core/docs/content/locales/es-ES/migration-workbench.mdx +47 -4
  240. package/corpus/core/docs/content/locales/es-ES/multi-app-workspace.mdx +91 -8
  241. package/corpus/core/docs/content/locales/es-ES/multi-tenancy.mdx +80 -8
  242. package/corpus/core/docs/content/locales/es-ES/native-chat-ui.mdx +108 -8
  243. package/corpus/core/docs/content/locales/es-ES/notifications.mdx +135 -8
  244. package/corpus/core/docs/content/locales/es-ES/observability.mdx +104 -8
  245. package/corpus/core/docs/content/locales/es-ES/observational-memory.mdx +92 -8
  246. package/corpus/core/docs/content/locales/es-ES/onboarding.mdx +45 -4
  247. package/corpus/core/docs/content/locales/es-ES/plan-plugin.mdx +99 -8
  248. package/corpus/core/docs/content/locales/es-ES/pr-visual-recap.mdx +125 -8
  249. package/corpus/core/docs/content/locales/es-ES/processors.mdx +41 -4
  250. package/corpus/core/docs/content/locales/es-ES/progress.mdx +46 -4
  251. package/corpus/core/docs/content/locales/es-ES/pure-agent-apps.mdx +50 -4
  252. package/corpus/core/docs/content/locales/es-ES/real-time-collaboration.mdx +109 -8
  253. package/corpus/core/docs/content/locales/es-ES/recurring-jobs.mdx +59 -4
  254. package/corpus/core/docs/content/locales/es-ES/routing.mdx +44 -5
  255. package/corpus/core/docs/content/locales/es-ES/sandbox-adapters.mdx +44 -4
  256. package/corpus/core/docs/content/locales/es-ES/security.mdx +82 -8
  257. package/corpus/core/docs/content/locales/es-ES/server.mdx +173 -12
  258. package/corpus/core/docs/content/locales/es-ES/sharing.mdx +45 -4
  259. package/corpus/core/docs/content/locales/es-ES/skills-guide.mdx +118 -9
  260. package/corpus/core/docs/content/locales/es-ES/template-analytics.mdx +46 -4
  261. package/corpus/core/docs/content/locales/es-ES/template-assets.mdx +64 -4
  262. package/corpus/core/docs/content/locales/es-ES/template-brain.mdx +69 -4
  263. package/corpus/core/docs/content/locales/es-ES/template-calendar.mdx +62 -4
  264. package/corpus/core/docs/content/locales/es-ES/template-chat.mdx +61 -4
  265. package/corpus/core/docs/content/locales/es-ES/template-clips.mdx +52 -4
  266. package/corpus/core/docs/content/locales/es-ES/template-content.mdx +64 -4
  267. package/corpus/core/docs/content/locales/es-ES/template-design.mdx +58 -4
  268. package/corpus/core/docs/content/locales/es-ES/template-dispatch.mdx +57 -4
  269. package/corpus/core/docs/content/locales/es-ES/template-forms.mdx +64 -4
  270. package/corpus/core/docs/content/locales/es-ES/template-mail.mdx +60 -4
  271. package/corpus/core/docs/content/locales/es-ES/template-plan.mdx +61 -4
  272. package/corpus/core/docs/content/locales/es-ES/template-slides.mdx +49 -4
  273. package/corpus/core/docs/content/locales/es-ES/template-videos.mdx +53 -4
  274. package/corpus/core/docs/content/locales/es-ES/tracking.mdx +54 -4
  275. package/corpus/core/docs/content/locales/es-ES/using-your-agent.mdx +51 -4
  276. package/corpus/core/docs/content/locales/es-ES/voice-input.mdx +45 -4
  277. package/corpus/core/docs/content/locales/es-ES/what-is-agent-native.mdx +99 -8
  278. package/corpus/core/docs/content/locales/es-ES/workspace-connections.mdx +128 -8
  279. package/corpus/core/docs/content/locales/es-ES/workspace-management.mdx +50 -4
  280. package/corpus/core/docs/content/locales/es-ES/workspace.mdx +112 -8
  281. package/corpus/core/docs/content/locales/es-ES/writing-agent-instructions.mdx +46 -4
  282. package/corpus/core/docs/content/locales/fr-FR/a2a-protocol.mdx +97 -9
  283. package/corpus/core/docs/content/locales/fr-FR/actions.mdx +67 -4
  284. package/corpus/core/docs/content/locales/fr-FR/agent-mentions.mdx +68 -4
  285. package/corpus/core/docs/content/locales/fr-FR/agent-surfaces.mdx +118 -8
  286. package/corpus/core/docs/content/locales/fr-FR/agent-teams.mdx +172 -12
  287. package/corpus/core/docs/content/locales/fr-FR/agent-web-surfaces.mdx +51 -4
  288. package/corpus/core/docs/content/locales/fr-FR/authentication.mdx +122 -8
  289. package/corpus/core/docs/content/locales/fr-FR/automations.mdx +110 -8
  290. package/corpus/core/docs/content/locales/fr-FR/blueprint-installer.mdx +42 -4
  291. package/corpus/core/docs/content/locales/fr-FR/cli-adapters.mdx +44 -4
  292. package/corpus/core/docs/content/locales/fr-FR/client.mdx +81 -8
  293. package/corpus/core/docs/content/locales/fr-FR/cloneable-saas.mdx +85 -8
  294. package/corpus/core/docs/content/locales/fr-FR/code-agents-ui.mdx +102 -8
  295. package/corpus/core/docs/content/locales/fr-FR/components.mdx +118 -8
  296. package/corpus/core/docs/content/locales/fr-FR/context-awareness.mdx +98 -8
  297. package/corpus/core/docs/content/locales/fr-FR/creating-templates.mdx +49 -4
  298. package/corpus/core/docs/content/locales/fr-FR/cross-app-sso.mdx +109 -8
  299. package/corpus/core/docs/content/locales/fr-FR/database.mdx +52 -4
  300. package/corpus/core/docs/content/locales/fr-FR/deployment.mdx +103 -8
  301. package/corpus/core/docs/content/locales/fr-FR/dispatch.mdx +134 -8
  302. package/corpus/core/docs/content/locales/fr-FR/drop-in-agent.mdx +63 -4
  303. package/corpus/core/docs/content/locales/fr-FR/durable-resume.mdx +47 -4
  304. package/corpus/core/docs/content/locales/fr-FR/embedding-sdk.mdx +87 -8
  305. package/corpus/core/docs/content/locales/fr-FR/evals.mdx +102 -8
  306. package/corpus/core/docs/content/locales/fr-FR/extensions.mdx +113 -9
  307. package/corpus/core/docs/content/locales/fr-FR/external-agents.mdx +119 -8
  308. package/corpus/core/docs/content/locales/fr-FR/faq.mdx +98 -8
  309. package/corpus/core/docs/content/locales/fr-FR/file-uploads.mdx +61 -4
  310. package/corpus/core/docs/content/locales/fr-FR/frames.mdx +90 -8
  311. package/corpus/core/docs/content/locales/fr-FR/getting-started.mdx +34 -4
  312. package/corpus/core/docs/content/locales/fr-FR/harness-agents.mdx +77 -8
  313. package/corpus/core/docs/content/locales/fr-FR/human-approval.mdx +50 -4
  314. package/corpus/core/docs/content/locales/fr-FR/key-concepts.mdx +106 -8
  315. package/corpus/core/docs/content/locales/fr-FR/local-file-mode.mdx +58 -4
  316. package/corpus/core/docs/content/locales/fr-FR/mcp-apps.mdx +120 -10
  317. package/corpus/core/docs/content/locales/fr-FR/mcp-clients.mdx +135 -8
  318. package/corpus/core/docs/content/locales/fr-FR/mcp-protocol.mdx +105 -8
  319. package/corpus/core/docs/content/locales/fr-FR/messaging.mdx +115 -8
  320. package/corpus/core/docs/content/locales/fr-FR/migration-workbench.mdx +47 -4
  321. package/corpus/core/docs/content/locales/fr-FR/multi-app-workspace.mdx +91 -8
  322. package/corpus/core/docs/content/locales/fr-FR/multi-tenancy.mdx +80 -8
  323. package/corpus/core/docs/content/locales/fr-FR/native-chat-ui.mdx +108 -8
  324. package/corpus/core/docs/content/locales/fr-FR/notifications.mdx +135 -8
  325. package/corpus/core/docs/content/locales/fr-FR/observability.mdx +104 -8
  326. package/corpus/core/docs/content/locales/fr-FR/observational-memory.mdx +89 -8
  327. package/corpus/core/docs/content/locales/fr-FR/onboarding.mdx +45 -4
  328. package/corpus/core/docs/content/locales/fr-FR/plan-plugin.mdx +99 -8
  329. package/corpus/core/docs/content/locales/fr-FR/pr-visual-recap.mdx +126 -8
  330. package/corpus/core/docs/content/locales/fr-FR/processors.mdx +41 -4
  331. package/corpus/core/docs/content/locales/fr-FR/progress.mdx +46 -4
  332. package/corpus/core/docs/content/locales/fr-FR/pure-agent-apps.mdx +48 -4
  333. package/corpus/core/docs/content/locales/fr-FR/real-time-collaboration.mdx +107 -8
  334. package/corpus/core/docs/content/locales/fr-FR/recurring-jobs.mdx +59 -4
  335. package/corpus/core/docs/content/locales/fr-FR/routing.mdx +44 -5
  336. package/corpus/core/docs/content/locales/fr-FR/sandbox-adapters.mdx +44 -4
  337. package/corpus/core/docs/content/locales/fr-FR/security.mdx +82 -8
  338. package/corpus/core/docs/content/locales/fr-FR/server.mdx +173 -12
  339. package/corpus/core/docs/content/locales/fr-FR/sharing.mdx +45 -4
  340. package/corpus/core/docs/content/locales/fr-FR/skills-guide.mdx +118 -9
  341. package/corpus/core/docs/content/locales/fr-FR/template-analytics.mdx +46 -4
  342. package/corpus/core/docs/content/locales/fr-FR/template-assets.mdx +66 -4
  343. package/corpus/core/docs/content/locales/fr-FR/template-brain.mdx +69 -4
  344. package/corpus/core/docs/content/locales/fr-FR/template-calendar.mdx +62 -4
  345. package/corpus/core/docs/content/locales/fr-FR/template-chat.mdx +61 -4
  346. package/corpus/core/docs/content/locales/fr-FR/template-clips.mdx +52 -4
  347. package/corpus/core/docs/content/locales/fr-FR/template-content.mdx +64 -4
  348. package/corpus/core/docs/content/locales/fr-FR/template-design.mdx +58 -4
  349. package/corpus/core/docs/content/locales/fr-FR/template-dispatch.mdx +57 -4
  350. package/corpus/core/docs/content/locales/fr-FR/template-forms.mdx +64 -4
  351. package/corpus/core/docs/content/locales/fr-FR/template-mail.mdx +60 -4
  352. package/corpus/core/docs/content/locales/fr-FR/template-plan.mdx +61 -4
  353. package/corpus/core/docs/content/locales/fr-FR/template-slides.mdx +49 -4
  354. package/corpus/core/docs/content/locales/fr-FR/template-videos.mdx +53 -4
  355. package/corpus/core/docs/content/locales/fr-FR/tracking.mdx +54 -4
  356. package/corpus/core/docs/content/locales/fr-FR/using-your-agent.mdx +51 -4
  357. package/corpus/core/docs/content/locales/fr-FR/voice-input.mdx +45 -4
  358. package/corpus/core/docs/content/locales/fr-FR/what-is-agent-native.mdx +101 -8
  359. package/corpus/core/docs/content/locales/fr-FR/workspace-connections.mdx +128 -8
  360. package/corpus/core/docs/content/locales/fr-FR/workspace-management.mdx +50 -4
  361. package/corpus/core/docs/content/locales/fr-FR/workspace.mdx +112 -8
  362. package/corpus/core/docs/content/locales/fr-FR/writing-agent-instructions.mdx +47 -4
  363. package/corpus/core/docs/content/locales/hi-IN/a2a-protocol.mdx +97 -9
  364. package/corpus/core/docs/content/locales/hi-IN/actions.mdx +63 -4
  365. package/corpus/core/docs/content/locales/hi-IN/agent-mentions.mdx +68 -4
  366. package/corpus/core/docs/content/locales/hi-IN/agent-surfaces.mdx +112 -8
  367. package/corpus/core/docs/content/locales/hi-IN/agent-teams.mdx +171 -12
  368. package/corpus/core/docs/content/locales/hi-IN/agent-web-surfaces.mdx +51 -4
  369. package/corpus/core/docs/content/locales/hi-IN/authentication.mdx +122 -8
  370. package/corpus/core/docs/content/locales/hi-IN/automations.mdx +110 -8
  371. package/corpus/core/docs/content/locales/hi-IN/blueprint-installer.mdx +42 -4
  372. package/corpus/core/docs/content/locales/hi-IN/cli-adapters.mdx +44 -4
  373. package/corpus/core/docs/content/locales/hi-IN/client.mdx +79 -8
  374. package/corpus/core/docs/content/locales/hi-IN/cloneable-saas.mdx +85 -8
  375. package/corpus/core/docs/content/locales/hi-IN/code-agents-ui.mdx +96 -8
  376. package/corpus/core/docs/content/locales/hi-IN/components.mdx +114 -8
  377. package/corpus/core/docs/content/locales/hi-IN/context-awareness.mdx +102 -8
  378. package/corpus/core/docs/content/locales/hi-IN/creating-templates.mdx +53 -4
  379. package/corpus/core/docs/content/locales/hi-IN/cross-app-sso.mdx +109 -8
  380. package/corpus/core/docs/content/locales/hi-IN/database.mdx +52 -4
  381. package/corpus/core/docs/content/locales/hi-IN/deployment.mdx +103 -8
  382. package/corpus/core/docs/content/locales/hi-IN/dispatch.mdx +134 -8
  383. package/corpus/core/docs/content/locales/hi-IN/drop-in-agent.mdx +63 -4
  384. package/corpus/core/docs/content/locales/hi-IN/durable-resume.mdx +47 -4
  385. package/corpus/core/docs/content/locales/hi-IN/embedding-sdk.mdx +83 -8
  386. package/corpus/core/docs/content/locales/hi-IN/evals.mdx +100 -8
  387. package/corpus/core/docs/content/locales/hi-IN/extensions.mdx +113 -9
  388. package/corpus/core/docs/content/locales/hi-IN/external-agents.mdx +119 -8
  389. package/corpus/core/docs/content/locales/hi-IN/faq.mdx +96 -8
  390. package/corpus/core/docs/content/locales/hi-IN/file-uploads.mdx +61 -4
  391. package/corpus/core/docs/content/locales/hi-IN/frames.mdx +88 -8
  392. package/corpus/core/docs/content/locales/hi-IN/getting-started.mdx +34 -4
  393. package/corpus/core/docs/content/locales/hi-IN/harness-agents.mdx +77 -8
  394. package/corpus/core/docs/content/locales/hi-IN/human-approval.mdx +51 -4
  395. package/corpus/core/docs/content/locales/hi-IN/key-concepts.mdx +104 -8
  396. package/corpus/core/docs/content/locales/hi-IN/local-file-mode.mdx +58 -4
  397. package/corpus/core/docs/content/locales/hi-IN/mcp-apps.mdx +120 -10
  398. package/corpus/core/docs/content/locales/hi-IN/mcp-clients.mdx +133 -8
  399. package/corpus/core/docs/content/locales/hi-IN/mcp-protocol.mdx +105 -8
  400. package/corpus/core/docs/content/locales/hi-IN/messaging.mdx +115 -8
  401. package/corpus/core/docs/content/locales/hi-IN/migration-workbench.mdx +45 -4
  402. package/corpus/core/docs/content/locales/hi-IN/multi-app-workspace.mdx +91 -8
  403. package/corpus/core/docs/content/locales/hi-IN/multi-tenancy.mdx +80 -8
  404. package/corpus/core/docs/content/locales/hi-IN/native-chat-ui.mdx +106 -8
  405. package/corpus/core/docs/content/locales/hi-IN/notifications.mdx +135 -8
  406. package/corpus/core/docs/content/locales/hi-IN/observability.mdx +102 -8
  407. package/corpus/core/docs/content/locales/hi-IN/observational-memory.mdx +89 -8
  408. package/corpus/core/docs/content/locales/hi-IN/onboarding.mdx +45 -4
  409. package/corpus/core/docs/content/locales/hi-IN/plan-plugin.mdx +99 -8
  410. package/corpus/core/docs/content/locales/hi-IN/pr-visual-recap.mdx +126 -8
  411. package/corpus/core/docs/content/locales/hi-IN/processors.mdx +41 -4
  412. package/corpus/core/docs/content/locales/hi-IN/progress.mdx +46 -4
  413. package/corpus/core/docs/content/locales/hi-IN/pure-agent-apps.mdx +48 -4
  414. package/corpus/core/docs/content/locales/hi-IN/real-time-collaboration.mdx +106 -8
  415. package/corpus/core/docs/content/locales/hi-IN/recurring-jobs.mdx +59 -4
  416. package/corpus/core/docs/content/locales/hi-IN/routing.mdx +44 -5
  417. package/corpus/core/docs/content/locales/hi-IN/sandbox-adapters.mdx +43 -4
  418. package/corpus/core/docs/content/locales/hi-IN/security.mdx +78 -8
  419. package/corpus/core/docs/content/locales/hi-IN/server.mdx +169 -12
  420. package/corpus/core/docs/content/locales/hi-IN/sharing.mdx +45 -4
  421. package/corpus/core/docs/content/locales/hi-IN/skills-guide.mdx +118 -9
  422. package/corpus/core/docs/content/locales/hi-IN/template-analytics.mdx +46 -4
  423. package/corpus/core/docs/content/locales/hi-IN/template-assets.mdx +62 -4
  424. package/corpus/core/docs/content/locales/hi-IN/template-brain.mdx +69 -4
  425. package/corpus/core/docs/content/locales/hi-IN/template-calendar.mdx +62 -4
  426. package/corpus/core/docs/content/locales/hi-IN/template-chat.mdx +59 -4
  427. package/corpus/core/docs/content/locales/hi-IN/template-clips.mdx +52 -4
  428. package/corpus/core/docs/content/locales/hi-IN/template-content.mdx +62 -4
  429. package/corpus/core/docs/content/locales/hi-IN/template-design.mdx +58 -4
  430. package/corpus/core/docs/content/locales/hi-IN/template-dispatch.mdx +57 -4
  431. package/corpus/core/docs/content/locales/hi-IN/template-forms.mdx +64 -4
  432. package/corpus/core/docs/content/locales/hi-IN/template-mail.mdx +64 -4
  433. package/corpus/core/docs/content/locales/hi-IN/template-plan.mdx +61 -4
  434. package/corpus/core/docs/content/locales/hi-IN/template-slides.mdx +49 -4
  435. package/corpus/core/docs/content/locales/hi-IN/template-videos.mdx +53 -4
  436. package/corpus/core/docs/content/locales/hi-IN/tracking.mdx +54 -4
  437. package/corpus/core/docs/content/locales/hi-IN/using-your-agent.mdx +51 -4
  438. package/corpus/core/docs/content/locales/hi-IN/voice-input.mdx +43 -4
  439. package/corpus/core/docs/content/locales/hi-IN/what-is-agent-native.mdx +97 -8
  440. package/corpus/core/docs/content/locales/hi-IN/workspace-connections.mdx +128 -8
  441. package/corpus/core/docs/content/locales/hi-IN/workspace-management.mdx +50 -4
  442. package/corpus/core/docs/content/locales/hi-IN/workspace.mdx +111 -8
  443. package/corpus/core/docs/content/locales/hi-IN/writing-agent-instructions.mdx +40 -4
  444. package/corpus/core/docs/content/locales/ja-JP/a2a-protocol.mdx +97 -9
  445. package/corpus/core/docs/content/locales/ja-JP/actions.mdx +67 -4
  446. package/corpus/core/docs/content/locales/ja-JP/agent-mentions.mdx +68 -4
  447. package/corpus/core/docs/content/locales/ja-JP/agent-surfaces.mdx +116 -8
  448. package/corpus/core/docs/content/locales/ja-JP/agent-teams.mdx +172 -12
  449. package/corpus/core/docs/content/locales/ja-JP/agent-web-surfaces.mdx +51 -4
  450. package/corpus/core/docs/content/locales/ja-JP/authentication.mdx +122 -8
  451. package/corpus/core/docs/content/locales/ja-JP/automations.mdx +110 -8
  452. package/corpus/core/docs/content/locales/ja-JP/blueprint-installer.mdx +44 -4
  453. package/corpus/core/docs/content/locales/ja-JP/cli-adapters.mdx +44 -4
  454. package/corpus/core/docs/content/locales/ja-JP/client.mdx +79 -8
  455. package/corpus/core/docs/content/locales/ja-JP/cloneable-saas.mdx +85 -8
  456. package/corpus/core/docs/content/locales/ja-JP/code-agents-ui.mdx +100 -8
  457. package/corpus/core/docs/content/locales/ja-JP/components.mdx +116 -8
  458. package/corpus/core/docs/content/locales/ja-JP/context-awareness.mdx +100 -8
  459. package/corpus/core/docs/content/locales/ja-JP/creating-templates.mdx +51 -4
  460. package/corpus/core/docs/content/locales/ja-JP/cross-app-sso.mdx +109 -8
  461. package/corpus/core/docs/content/locales/ja-JP/database.mdx +52 -4
  462. package/corpus/core/docs/content/locales/ja-JP/deployment.mdx +103 -8
  463. package/corpus/core/docs/content/locales/ja-JP/dispatch.mdx +134 -8
  464. package/corpus/core/docs/content/locales/ja-JP/drop-in-agent.mdx +63 -4
  465. package/corpus/core/docs/content/locales/ja-JP/durable-resume.mdx +47 -4
  466. package/corpus/core/docs/content/locales/ja-JP/embedding-sdk.mdx +85 -8
  467. package/corpus/core/docs/content/locales/ja-JP/evals.mdx +102 -8
  468. package/corpus/core/docs/content/locales/ja-JP/extensions.mdx +111 -9
  469. package/corpus/core/docs/content/locales/ja-JP/external-agents.mdx +119 -8
  470. package/corpus/core/docs/content/locales/ja-JP/faq.mdx +98 -8
  471. package/corpus/core/docs/content/locales/ja-JP/file-uploads.mdx +61 -4
  472. package/corpus/core/docs/content/locales/ja-JP/frames.mdx +88 -8
  473. package/corpus/core/docs/content/locales/ja-JP/getting-started.mdx +34 -4
  474. package/corpus/core/docs/content/locales/ja-JP/harness-agents.mdx +79 -8
  475. package/corpus/core/docs/content/locales/ja-JP/human-approval.mdx +50 -4
  476. package/corpus/core/docs/content/locales/ja-JP/key-concepts.mdx +105 -8
  477. package/corpus/core/docs/content/locales/ja-JP/local-file-mode.mdx +58 -4
  478. package/corpus/core/docs/content/locales/ja-JP/mcp-apps.mdx +119 -10
  479. package/corpus/core/docs/content/locales/ja-JP/mcp-clients.mdx +134 -8
  480. package/corpus/core/docs/content/locales/ja-JP/mcp-protocol.mdx +105 -8
  481. package/corpus/core/docs/content/locales/ja-JP/messaging.mdx +115 -8
  482. package/corpus/core/docs/content/locales/ja-JP/migration-workbench.mdx +47 -4
  483. package/corpus/core/docs/content/locales/ja-JP/multi-app-workspace.mdx +91 -8
  484. package/corpus/core/docs/content/locales/ja-JP/multi-tenancy.mdx +80 -8
  485. package/corpus/core/docs/content/locales/ja-JP/native-chat-ui.mdx +104 -8
  486. package/corpus/core/docs/content/locales/ja-JP/notifications.mdx +135 -8
  487. package/corpus/core/docs/content/locales/ja-JP/observability.mdx +104 -8
  488. package/corpus/core/docs/content/locales/ja-JP/observational-memory.mdx +89 -8
  489. package/corpus/core/docs/content/locales/ja-JP/onboarding.mdx +45 -4
  490. package/corpus/core/docs/content/locales/ja-JP/plan-plugin.mdx +99 -8
  491. package/corpus/core/docs/content/locales/ja-JP/pr-visual-recap.mdx +123 -8
  492. package/corpus/core/docs/content/locales/ja-JP/processors.mdx +39 -4
  493. package/corpus/core/docs/content/locales/ja-JP/progress.mdx +46 -4
  494. package/corpus/core/docs/content/locales/ja-JP/pure-agent-apps.mdx +48 -4
  495. package/corpus/core/docs/content/locales/ja-JP/real-time-collaboration.mdx +106 -8
  496. package/corpus/core/docs/content/locales/ja-JP/recurring-jobs.mdx +59 -4
  497. package/corpus/core/docs/content/locales/ja-JP/routing.mdx +44 -5
  498. package/corpus/core/docs/content/locales/ja-JP/sandbox-adapters.mdx +43 -4
  499. package/corpus/core/docs/content/locales/ja-JP/security.mdx +82 -8
  500. package/corpus/core/docs/content/locales/ja-JP/server.mdx +171 -12
  501. package/corpus/core/docs/content/locales/ja-JP/sharing.mdx +45 -4
  502. package/corpus/core/docs/content/locales/ja-JP/skills-guide.mdx +118 -9
  503. package/corpus/core/docs/content/locales/ja-JP/template-analytics.mdx +46 -4
  504. package/corpus/core/docs/content/locales/ja-JP/template-assets.mdx +64 -4
  505. package/corpus/core/docs/content/locales/ja-JP/template-brain.mdx +67 -4
  506. package/corpus/core/docs/content/locales/ja-JP/template-calendar.mdx +62 -4
  507. package/corpus/core/docs/content/locales/ja-JP/template-chat.mdx +61 -4
  508. package/corpus/core/docs/content/locales/ja-JP/template-clips.mdx +52 -4
  509. package/corpus/core/docs/content/locales/ja-JP/template-content.mdx +62 -4
  510. package/corpus/core/docs/content/locales/ja-JP/template-design.mdx +60 -4
  511. package/corpus/core/docs/content/locales/ja-JP/template-dispatch.mdx +57 -4
  512. package/corpus/core/docs/content/locales/ja-JP/template-forms.mdx +62 -4
  513. package/corpus/core/docs/content/locales/ja-JP/template-mail.mdx +62 -4
  514. package/corpus/core/docs/content/locales/ja-JP/template-plan.mdx +63 -4
  515. package/corpus/core/docs/content/locales/ja-JP/template-slides.mdx +49 -4
  516. package/corpus/core/docs/content/locales/ja-JP/template-videos.mdx +53 -4
  517. package/corpus/core/docs/content/locales/ja-JP/tracking.mdx +54 -4
  518. package/corpus/core/docs/content/locales/ja-JP/using-your-agent.mdx +51 -4
  519. package/corpus/core/docs/content/locales/ja-JP/voice-input.mdx +43 -4
  520. package/corpus/core/docs/content/locales/ja-JP/what-is-agent-native.mdx +96 -8
  521. package/corpus/core/docs/content/locales/ja-JP/workspace-connections.mdx +128 -8
  522. package/corpus/core/docs/content/locales/ja-JP/workspace-management.mdx +50 -4
  523. package/corpus/core/docs/content/locales/ja-JP/workspace.mdx +111 -8
  524. package/corpus/core/docs/content/locales/ja-JP/writing-agent-instructions.mdx +44 -4
  525. package/corpus/core/docs/content/locales/ko-KR/a2a-protocol.mdx +97 -9
  526. package/corpus/core/docs/content/locales/ko-KR/actions.mdx +63 -4
  527. package/corpus/core/docs/content/locales/ko-KR/agent-mentions.mdx +68 -4
  528. package/corpus/core/docs/content/locales/ko-KR/agent-surfaces.mdx +113 -8
  529. package/corpus/core/docs/content/locales/ko-KR/agent-teams.mdx +171 -12
  530. package/corpus/core/docs/content/locales/ko-KR/agent-web-surfaces.mdx +51 -4
  531. package/corpus/core/docs/content/locales/ko-KR/authentication.mdx +122 -8
  532. package/corpus/core/docs/content/locales/ko-KR/automations.mdx +110 -8
  533. package/corpus/core/docs/content/locales/ko-KR/blueprint-installer.mdx +42 -4
  534. package/corpus/core/docs/content/locales/ko-KR/cli-adapters.mdx +44 -4
  535. package/corpus/core/docs/content/locales/ko-KR/client.mdx +79 -8
  536. package/corpus/core/docs/content/locales/ko-KR/cloneable-saas.mdx +85 -8
  537. package/corpus/core/docs/content/locales/ko-KR/code-agents-ui.mdx +96 -8
  538. package/corpus/core/docs/content/locales/ko-KR/components.mdx +112 -8
  539. package/corpus/core/docs/content/locales/ko-KR/context-awareness.mdx +96 -8
  540. package/corpus/core/docs/content/locales/ko-KR/creating-templates.mdx +51 -4
  541. package/corpus/core/docs/content/locales/ko-KR/cross-app-sso.mdx +109 -8
  542. package/corpus/core/docs/content/locales/ko-KR/database.mdx +52 -4
  543. package/corpus/core/docs/content/locales/ko-KR/deployment.mdx +103 -8
  544. package/corpus/core/docs/content/locales/ko-KR/dispatch.mdx +132 -8
  545. package/corpus/core/docs/content/locales/ko-KR/drop-in-agent.mdx +63 -4
  546. package/corpus/core/docs/content/locales/ko-KR/durable-resume.mdx +47 -4
  547. package/corpus/core/docs/content/locales/ko-KR/embedding-sdk.mdx +81 -8
  548. package/corpus/core/docs/content/locales/ko-KR/evals.mdx +102 -8
  549. package/corpus/core/docs/content/locales/ko-KR/extensions.mdx +111 -9
  550. package/corpus/core/docs/content/locales/ko-KR/external-agents.mdx +119 -8
  551. package/corpus/core/docs/content/locales/ko-KR/faq.mdx +96 -8
  552. package/corpus/core/docs/content/locales/ko-KR/file-uploads.mdx +61 -4
  553. package/corpus/core/docs/content/locales/ko-KR/frames.mdx +86 -8
  554. package/corpus/core/docs/content/locales/ko-KR/getting-started.mdx +34 -4
  555. package/corpus/core/docs/content/locales/ko-KR/harness-agents.mdx +77 -8
  556. package/corpus/core/docs/content/locales/ko-KR/human-approval.mdx +50 -4
  557. package/corpus/core/docs/content/locales/ko-KR/key-concepts.mdx +104 -8
  558. package/corpus/core/docs/content/locales/ko-KR/local-file-mode.mdx +56 -4
  559. package/corpus/core/docs/content/locales/ko-KR/mcp-apps.mdx +120 -10
  560. package/corpus/core/docs/content/locales/ko-KR/mcp-clients.mdx +133 -8
  561. package/corpus/core/docs/content/locales/ko-KR/mcp-protocol.mdx +105 -8
  562. package/corpus/core/docs/content/locales/ko-KR/messaging.mdx +115 -8
  563. package/corpus/core/docs/content/locales/ko-KR/migration-workbench.mdx +45 -4
  564. package/corpus/core/docs/content/locales/ko-KR/multi-app-workspace.mdx +91 -8
  565. package/corpus/core/docs/content/locales/ko-KR/multi-tenancy.mdx +80 -8
  566. package/corpus/core/docs/content/locales/ko-KR/native-chat-ui.mdx +104 -8
  567. package/corpus/core/docs/content/locales/ko-KR/notifications.mdx +135 -8
  568. package/corpus/core/docs/content/locales/ko-KR/observability.mdx +102 -8
  569. package/corpus/core/docs/content/locales/ko-KR/observational-memory.mdx +87 -8
  570. package/corpus/core/docs/content/locales/ko-KR/onboarding.mdx +44 -4
  571. package/corpus/core/docs/content/locales/ko-KR/plan-plugin.mdx +99 -8
  572. package/corpus/core/docs/content/locales/ko-KR/pr-visual-recap.mdx +125 -8
  573. package/corpus/core/docs/content/locales/ko-KR/processors.mdx +39 -4
  574. package/corpus/core/docs/content/locales/ko-KR/progress.mdx +46 -4
  575. package/corpus/core/docs/content/locales/ko-KR/pure-agent-apps.mdx +46 -4
  576. package/corpus/core/docs/content/locales/ko-KR/real-time-collaboration.mdx +104 -8
  577. package/corpus/core/docs/content/locales/ko-KR/recurring-jobs.mdx +59 -4
  578. package/corpus/core/docs/content/locales/ko-KR/routing.mdx +44 -5
  579. package/corpus/core/docs/content/locales/ko-KR/sandbox-adapters.mdx +41 -4
  580. package/corpus/core/docs/content/locales/ko-KR/security.mdx +78 -8
  581. package/corpus/core/docs/content/locales/ko-KR/server.mdx +171 -12
  582. package/corpus/core/docs/content/locales/ko-KR/sharing.mdx +45 -4
  583. package/corpus/core/docs/content/locales/ko-KR/skills-guide.mdx +118 -9
  584. package/corpus/core/docs/content/locales/ko-KR/template-analytics.mdx +46 -4
  585. package/corpus/core/docs/content/locales/ko-KR/template-assets.mdx +62 -4
  586. package/corpus/core/docs/content/locales/ko-KR/template-brain.mdx +65 -4
  587. package/corpus/core/docs/content/locales/ko-KR/template-calendar.mdx +60 -4
  588. package/corpus/core/docs/content/locales/ko-KR/template-chat.mdx +59 -4
  589. package/corpus/core/docs/content/locales/ko-KR/template-clips.mdx +52 -4
  590. package/corpus/core/docs/content/locales/ko-KR/template-content.mdx +60 -4
  591. package/corpus/core/docs/content/locales/ko-KR/template-design.mdx +58 -4
  592. package/corpus/core/docs/content/locales/ko-KR/template-dispatch.mdx +57 -4
  593. package/corpus/core/docs/content/locales/ko-KR/template-forms.mdx +60 -4
  594. package/corpus/core/docs/content/locales/ko-KR/template-mail.mdx +60 -4
  595. package/corpus/core/docs/content/locales/ko-KR/template-plan.mdx +57 -4
  596. package/corpus/core/docs/content/locales/ko-KR/template-slides.mdx +49 -4
  597. package/corpus/core/docs/content/locales/ko-KR/template-videos.mdx +53 -4
  598. package/corpus/core/docs/content/locales/ko-KR/tracking.mdx +54 -4
  599. package/corpus/core/docs/content/locales/ko-KR/using-your-agent.mdx +51 -4
  600. package/corpus/core/docs/content/locales/ko-KR/voice-input.mdx +43 -4
  601. package/corpus/core/docs/content/locales/ko-KR/what-is-agent-native.mdx +95 -8
  602. package/corpus/core/docs/content/locales/ko-KR/workspace-connections.mdx +128 -8
  603. package/corpus/core/docs/content/locales/ko-KR/workspace-management.mdx +50 -4
  604. package/corpus/core/docs/content/locales/ko-KR/workspace.mdx +111 -8
  605. package/corpus/core/docs/content/locales/ko-KR/writing-agent-instructions.mdx +38 -4
  606. package/corpus/core/docs/content/locales/pt-BR/a2a-protocol.mdx +99 -9
  607. package/corpus/core/docs/content/locales/pt-BR/actions.mdx +67 -4
  608. package/corpus/core/docs/content/locales/pt-BR/agent-mentions.mdx +68 -4
  609. package/corpus/core/docs/content/locales/pt-BR/agent-surfaces.mdx +116 -8
  610. package/corpus/core/docs/content/locales/pt-BR/agent-teams.mdx +172 -12
  611. package/corpus/core/docs/content/locales/pt-BR/agent-web-surfaces.mdx +51 -4
  612. package/corpus/core/docs/content/locales/pt-BR/authentication.mdx +122 -8
  613. package/corpus/core/docs/content/locales/pt-BR/automations.mdx +110 -8
  614. package/corpus/core/docs/content/locales/pt-BR/blueprint-installer.mdx +42 -4
  615. package/corpus/core/docs/content/locales/pt-BR/cli-adapters.mdx +44 -4
  616. package/corpus/core/docs/content/locales/pt-BR/client.mdx +81 -8
  617. package/corpus/core/docs/content/locales/pt-BR/cloneable-saas.mdx +85 -8
  618. package/corpus/core/docs/content/locales/pt-BR/code-agents-ui.mdx +98 -8
  619. package/corpus/core/docs/content/locales/pt-BR/components.mdx +118 -8
  620. package/corpus/core/docs/content/locales/pt-BR/context-awareness.mdx +100 -8
  621. package/corpus/core/docs/content/locales/pt-BR/creating-templates.mdx +51 -4
  622. package/corpus/core/docs/content/locales/pt-BR/cross-app-sso.mdx +109 -8
  623. package/corpus/core/docs/content/locales/pt-BR/database.mdx +52 -4
  624. package/corpus/core/docs/content/locales/pt-BR/deployment.mdx +103 -8
  625. package/corpus/core/docs/content/locales/pt-BR/dispatch.mdx +134 -8
  626. package/corpus/core/docs/content/locales/pt-BR/drop-in-agent.mdx +63 -4
  627. package/corpus/core/docs/content/locales/pt-BR/durable-resume.mdx +47 -4
  628. package/corpus/core/docs/content/locales/pt-BR/embedding-sdk.mdx +87 -8
  629. package/corpus/core/docs/content/locales/pt-BR/evals.mdx +102 -8
  630. package/corpus/core/docs/content/locales/pt-BR/extensions.mdx +113 -9
  631. package/corpus/core/docs/content/locales/pt-BR/external-agents.mdx +119 -8
  632. package/corpus/core/docs/content/locales/pt-BR/faq.mdx +98 -8
  633. package/corpus/core/docs/content/locales/pt-BR/file-uploads.mdx +61 -4
  634. package/corpus/core/docs/content/locales/pt-BR/frames.mdx +88 -8
  635. package/corpus/core/docs/content/locales/pt-BR/getting-started.mdx +34 -4
  636. package/corpus/core/docs/content/locales/pt-BR/harness-agents.mdx +79 -8
  637. package/corpus/core/docs/content/locales/pt-BR/human-approval.mdx +50 -4
  638. package/corpus/core/docs/content/locales/pt-BR/key-concepts.mdx +104 -8
  639. package/corpus/core/docs/content/locales/pt-BR/local-file-mode.mdx +60 -4
  640. package/corpus/core/docs/content/locales/pt-BR/mcp-apps.mdx +120 -10
  641. package/corpus/core/docs/content/locales/pt-BR/mcp-clients.mdx +133 -8
  642. package/corpus/core/docs/content/locales/pt-BR/mcp-protocol.mdx +105 -8
  643. package/corpus/core/docs/content/locales/pt-BR/messaging.mdx +115 -8
  644. package/corpus/core/docs/content/locales/pt-BR/migration-workbench.mdx +47 -4
  645. package/corpus/core/docs/content/locales/pt-BR/multi-app-workspace.mdx +91 -8
  646. package/corpus/core/docs/content/locales/pt-BR/multi-tenancy.mdx +80 -8
  647. package/corpus/core/docs/content/locales/pt-BR/native-chat-ui.mdx +108 -8
  648. package/corpus/core/docs/content/locales/pt-BR/notifications.mdx +135 -8
  649. package/corpus/core/docs/content/locales/pt-BR/observability.mdx +104 -8
  650. package/corpus/core/docs/content/locales/pt-BR/observational-memory.mdx +92 -8
  651. package/corpus/core/docs/content/locales/pt-BR/onboarding.mdx +45 -4
  652. package/corpus/core/docs/content/locales/pt-BR/plan-plugin.mdx +99 -8
  653. package/corpus/core/docs/content/locales/pt-BR/pr-visual-recap.mdx +125 -8
  654. package/corpus/core/docs/content/locales/pt-BR/processors.mdx +41 -4
  655. package/corpus/core/docs/content/locales/pt-BR/progress.mdx +46 -4
  656. package/corpus/core/docs/content/locales/pt-BR/pure-agent-apps.mdx +48 -4
  657. package/corpus/core/docs/content/locales/pt-BR/real-time-collaboration.mdx +107 -8
  658. package/corpus/core/docs/content/locales/pt-BR/recurring-jobs.mdx +59 -4
  659. package/corpus/core/docs/content/locales/pt-BR/routing.mdx +44 -5
  660. package/corpus/core/docs/content/locales/pt-BR/sandbox-adapters.mdx +43 -4
  661. package/corpus/core/docs/content/locales/pt-BR/security.mdx +82 -8
  662. package/corpus/core/docs/content/locales/pt-BR/server.mdx +173 -12
  663. package/corpus/core/docs/content/locales/pt-BR/sharing.mdx +45 -4
  664. package/corpus/core/docs/content/locales/pt-BR/skills-guide.mdx +118 -9
  665. package/corpus/core/docs/content/locales/pt-BR/template-analytics.mdx +46 -4
  666. package/corpus/core/docs/content/locales/pt-BR/template-assets.mdx +64 -4
  667. package/corpus/core/docs/content/locales/pt-BR/template-brain.mdx +69 -4
  668. package/corpus/core/docs/content/locales/pt-BR/template-calendar.mdx +62 -4
  669. package/corpus/core/docs/content/locales/pt-BR/template-chat.mdx +61 -4
  670. package/corpus/core/docs/content/locales/pt-BR/template-clips.mdx +52 -4
  671. package/corpus/core/docs/content/locales/pt-BR/template-content.mdx +64 -4
  672. package/corpus/core/docs/content/locales/pt-BR/template-design.mdx +58 -4
  673. package/corpus/core/docs/content/locales/pt-BR/template-dispatch.mdx +57 -4
  674. package/corpus/core/docs/content/locales/pt-BR/template-forms.mdx +64 -4
  675. package/corpus/core/docs/content/locales/pt-BR/template-mail.mdx +60 -4
  676. package/corpus/core/docs/content/locales/pt-BR/template-plan.mdx +63 -4
  677. package/corpus/core/docs/content/locales/pt-BR/template-slides.mdx +49 -4
  678. package/corpus/core/docs/content/locales/pt-BR/template-videos.mdx +53 -4
  679. package/corpus/core/docs/content/locales/pt-BR/tracking.mdx +54 -4
  680. package/corpus/core/docs/content/locales/pt-BR/using-your-agent.mdx +51 -4
  681. package/corpus/core/docs/content/locales/pt-BR/voice-input.mdx +43 -4
  682. package/corpus/core/docs/content/locales/pt-BR/what-is-agent-native.mdx +101 -8
  683. package/corpus/core/docs/content/locales/pt-BR/workspace-connections.mdx +128 -8
  684. package/corpus/core/docs/content/locales/pt-BR/workspace-management.mdx +50 -4
  685. package/corpus/core/docs/content/locales/pt-BR/workspace.mdx +111 -8
  686. package/corpus/core/docs/content/locales/pt-BR/writing-agent-instructions.mdx +46 -4
  687. package/corpus/core/docs/content/locales/zh-CN/a2a-protocol.mdx +97 -9
  688. package/corpus/core/docs/content/locales/zh-CN/actions.mdx +65 -4
  689. package/corpus/core/docs/content/locales/zh-CN/agent-mentions.mdx +68 -4
  690. package/corpus/core/docs/content/locales/zh-CN/agent-surfaces.mdx +108 -8
  691. package/corpus/core/docs/content/locales/zh-CN/agent-teams.mdx +171 -12
  692. package/corpus/core/docs/content/locales/zh-CN/agent-web-surfaces.mdx +51 -4
  693. package/corpus/core/docs/content/locales/zh-CN/authentication.mdx +122 -8
  694. package/corpus/core/docs/content/locales/zh-CN/automations.mdx +110 -8
  695. package/corpus/core/docs/content/locales/zh-CN/blueprint-installer.mdx +42 -4
  696. package/corpus/core/docs/content/locales/zh-CN/cli-adapters.mdx +44 -4
  697. package/corpus/core/docs/content/locales/zh-CN/client.mdx +79 -8
  698. package/corpus/core/docs/content/locales/zh-CN/cloneable-saas.mdx +83 -8
  699. package/corpus/core/docs/content/locales/zh-CN/code-agents-ui.mdx +94 -8
  700. package/corpus/core/docs/content/locales/zh-CN/components.mdx +112 -8
  701. package/corpus/core/docs/content/locales/zh-CN/context-awareness.mdx +96 -8
  702. package/corpus/core/docs/content/locales/zh-CN/creating-templates.mdx +51 -4
  703. package/corpus/core/docs/content/locales/zh-CN/cross-app-sso.mdx +107 -8
  704. package/corpus/core/docs/content/locales/zh-CN/database.mdx +52 -4
  705. package/corpus/core/docs/content/locales/zh-CN/deployment.mdx +103 -8
  706. package/corpus/core/docs/content/locales/zh-CN/dispatch.mdx +134 -8
  707. package/corpus/core/docs/content/locales/zh-CN/drop-in-agent.mdx +63 -4
  708. package/corpus/core/docs/content/locales/zh-CN/durable-resume.mdx +45 -4
  709. package/corpus/core/docs/content/locales/zh-CN/embedding-sdk.mdx +81 -8
  710. package/corpus/core/docs/content/locales/zh-CN/evals.mdx +100 -8
  711. package/corpus/core/docs/content/locales/zh-CN/extensions.mdx +111 -9
  712. package/corpus/core/docs/content/locales/zh-CN/external-agents.mdx +119 -8
  713. package/corpus/core/docs/content/locales/zh-CN/faq.mdx +96 -8
  714. package/corpus/core/docs/content/locales/zh-CN/file-uploads.mdx +61 -4
  715. package/corpus/core/docs/content/locales/zh-CN/frames.mdx +86 -8
  716. package/corpus/core/docs/content/locales/zh-CN/getting-started.mdx +34 -4
  717. package/corpus/core/docs/content/locales/zh-CN/harness-agents.mdx +79 -8
  718. package/corpus/core/docs/content/locales/zh-CN/human-approval.mdx +50 -4
  719. package/corpus/core/docs/content/locales/zh-CN/key-concepts.mdx +100 -8
  720. package/corpus/core/docs/content/locales/zh-CN/local-file-mode.mdx +56 -4
  721. package/corpus/core/docs/content/locales/zh-CN/mcp-apps.mdx +120 -10
  722. package/corpus/core/docs/content/locales/zh-CN/mcp-clients.mdx +133 -8
  723. package/corpus/core/docs/content/locales/zh-CN/mcp-protocol.mdx +105 -8
  724. package/corpus/core/docs/content/locales/zh-CN/messaging.mdx +115 -8
  725. package/corpus/core/docs/content/locales/zh-CN/migration-workbench.mdx +45 -4
  726. package/corpus/core/docs/content/locales/zh-CN/multi-app-workspace.mdx +91 -8
  727. package/corpus/core/docs/content/locales/zh-CN/multi-tenancy.mdx +80 -8
  728. package/corpus/core/docs/content/locales/zh-CN/native-chat-ui.mdx +104 -8
  729. package/corpus/core/docs/content/locales/zh-CN/notifications.mdx +135 -8
  730. package/corpus/core/docs/content/locales/zh-CN/observability.mdx +102 -8
  731. package/corpus/core/docs/content/locales/zh-CN/observational-memory.mdx +85 -8
  732. package/corpus/core/docs/content/locales/zh-CN/onboarding.mdx +44 -4
  733. package/corpus/core/docs/content/locales/zh-CN/plan-plugin.mdx +97 -8
  734. package/corpus/core/docs/content/locales/zh-CN/pr-visual-recap.mdx +123 -8
  735. package/corpus/core/docs/content/locales/zh-CN/processors.mdx +39 -4
  736. package/corpus/core/docs/content/locales/zh-CN/progress.mdx +46 -4
  737. package/corpus/core/docs/content/locales/zh-CN/pure-agent-apps.mdx +46 -4
  738. package/corpus/core/docs/content/locales/zh-CN/real-time-collaboration.mdx +98 -8
  739. package/corpus/core/docs/content/locales/zh-CN/recurring-jobs.mdx +59 -4
  740. package/corpus/core/docs/content/locales/zh-CN/routing.mdx +42 -5
  741. package/corpus/core/docs/content/locales/zh-CN/sandbox-adapters.mdx +41 -4
  742. package/corpus/core/docs/content/locales/zh-CN/security.mdx +78 -8
  743. package/corpus/core/docs/content/locales/zh-CN/server.mdx +169 -12
  744. package/corpus/core/docs/content/locales/zh-CN/sharing.mdx +45 -4
  745. package/corpus/core/docs/content/locales/zh-CN/skills-guide.mdx +118 -9
  746. package/corpus/core/docs/content/locales/zh-CN/template-analytics.mdx +46 -4
  747. package/corpus/core/docs/content/locales/zh-CN/template-assets.mdx +58 -4
  748. package/corpus/core/docs/content/locales/zh-CN/template-brain.mdx +65 -4
  749. package/corpus/core/docs/content/locales/zh-CN/template-calendar.mdx +58 -4
  750. package/corpus/core/docs/content/locales/zh-CN/template-chat.mdx +57 -4
  751. package/corpus/core/docs/content/locales/zh-CN/template-clips.mdx +52 -4
  752. package/corpus/core/docs/content/locales/zh-CN/template-content.mdx +58 -4
  753. package/corpus/core/docs/content/locales/zh-CN/template-design.mdx +58 -4
  754. package/corpus/core/docs/content/locales/zh-CN/template-dispatch.mdx +57 -4
  755. package/corpus/core/docs/content/locales/zh-CN/template-forms.mdx +58 -4
  756. package/corpus/core/docs/content/locales/zh-CN/template-mail.mdx +60 -4
  757. package/corpus/core/docs/content/locales/zh-CN/template-plan.mdx +57 -4
  758. package/corpus/core/docs/content/locales/zh-CN/template-slides.mdx +49 -4
  759. package/corpus/core/docs/content/locales/zh-CN/template-videos.mdx +51 -4
  760. package/corpus/core/docs/content/locales/zh-CN/tracking.mdx +54 -4
  761. package/corpus/core/docs/content/locales/zh-CN/using-your-agent.mdx +51 -4
  762. package/corpus/core/docs/content/locales/zh-CN/voice-input.mdx +43 -4
  763. package/corpus/core/docs/content/locales/zh-CN/what-is-agent-native.mdx +94 -8
  764. package/corpus/core/docs/content/locales/zh-CN/workspace-connections.mdx +126 -8
  765. package/corpus/core/docs/content/locales/zh-CN/workspace-management.mdx +50 -4
  766. package/corpus/core/docs/content/locales/zh-CN/workspace.mdx +110 -8
  767. package/corpus/core/docs/content/locales/zh-CN/writing-agent-instructions.mdx +38 -4
  768. package/corpus/core/docs/content/locales/zh-TW/a2a-protocol.mdx +97 -9
  769. package/corpus/core/docs/content/locales/zh-TW/actions.mdx +63 -4
  770. package/corpus/core/docs/content/locales/zh-TW/agent-mentions.mdx +68 -4
  771. package/corpus/core/docs/content/locales/zh-TW/agent-surfaces.mdx +108 -8
  772. package/corpus/core/docs/content/locales/zh-TW/agent-teams.mdx +171 -12
  773. package/corpus/core/docs/content/locales/zh-TW/agent-web-surfaces.mdx +51 -4
  774. package/corpus/core/docs/content/locales/zh-TW/authentication.mdx +122 -8
  775. package/corpus/core/docs/content/locales/zh-TW/automations.mdx +110 -8
  776. package/corpus/core/docs/content/locales/zh-TW/blueprint-installer.mdx +42 -4
  777. package/corpus/core/docs/content/locales/zh-TW/cli-adapters.mdx +44 -4
  778. package/corpus/core/docs/content/locales/zh-TW/client.mdx +79 -8
  779. package/corpus/core/docs/content/locales/zh-TW/cloneable-saas.mdx +83 -8
  780. package/corpus/core/docs/content/locales/zh-TW/code-agents-ui.mdx +94 -8
  781. package/corpus/core/docs/content/locales/zh-TW/components.mdx +112 -8
  782. package/corpus/core/docs/content/locales/zh-TW/context-awareness.mdx +96 -8
  783. package/corpus/core/docs/content/locales/zh-TW/creating-templates.mdx +51 -4
  784. package/corpus/core/docs/content/locales/zh-TW/cross-app-sso.mdx +107 -8
  785. package/corpus/core/docs/content/locales/zh-TW/database.mdx +52 -4
  786. package/corpus/core/docs/content/locales/zh-TW/deployment.mdx +103 -8
  787. package/corpus/core/docs/content/locales/zh-TW/dispatch.mdx +134 -8
  788. package/corpus/core/docs/content/locales/zh-TW/drop-in-agent.mdx +63 -4
  789. package/corpus/core/docs/content/locales/zh-TW/durable-background-runs.mdx +88 -8
  790. package/corpus/core/docs/content/locales/zh-TW/durable-resume.mdx +45 -4
  791. package/corpus/core/docs/content/locales/zh-TW/embedding-sdk.mdx +83 -8
  792. package/corpus/core/docs/content/locales/zh-TW/evals.mdx +100 -8
  793. package/corpus/core/docs/content/locales/zh-TW/extensions.mdx +111 -9
  794. package/corpus/core/docs/content/locales/zh-TW/external-agents.mdx +119 -8
  795. package/corpus/core/docs/content/locales/zh-TW/faq.mdx +96 -8
  796. package/corpus/core/docs/content/locales/zh-TW/file-uploads.mdx +61 -4
  797. package/corpus/core/docs/content/locales/zh-TW/frames.mdx +86 -8
  798. package/corpus/core/docs/content/locales/zh-TW/getting-started.mdx +34 -4
  799. package/corpus/core/docs/content/locales/zh-TW/harness-agents.mdx +79 -8
  800. package/corpus/core/docs/content/locales/zh-TW/human-approval.mdx +50 -4
  801. package/corpus/core/docs/content/locales/zh-TW/key-concepts.mdx +100 -8
  802. package/corpus/core/docs/content/locales/zh-TW/local-file-mode.mdx +56 -4
  803. package/corpus/core/docs/content/locales/zh-TW/mcp-apps.mdx +120 -10
  804. package/corpus/core/docs/content/locales/zh-TW/mcp-clients.mdx +133 -8
  805. package/corpus/core/docs/content/locales/zh-TW/mcp-protocol.mdx +105 -8
  806. package/corpus/core/docs/content/locales/zh-TW/messaging.mdx +115 -8
  807. package/corpus/core/docs/content/locales/zh-TW/migration-workbench.mdx +45 -4
  808. package/corpus/core/docs/content/locales/zh-TW/multi-app-workspace.mdx +91 -8
  809. package/corpus/core/docs/content/locales/zh-TW/multi-tenancy.mdx +80 -8
  810. package/corpus/core/docs/content/locales/zh-TW/native-chat-ui.mdx +104 -8
  811. package/corpus/core/docs/content/locales/zh-TW/notifications.mdx +135 -8
  812. package/corpus/core/docs/content/locales/zh-TW/observability.mdx +102 -8
  813. package/corpus/core/docs/content/locales/zh-TW/observational-memory.mdx +85 -8
  814. package/corpus/core/docs/content/locales/zh-TW/onboarding.mdx +44 -4
  815. package/corpus/core/docs/content/locales/zh-TW/plan-plugin.mdx +97 -8
  816. package/corpus/core/docs/content/locales/zh-TW/pr-visual-recap.mdx +123 -8
  817. package/corpus/core/docs/content/locales/zh-TW/processors.mdx +39 -4
  818. package/corpus/core/docs/content/locales/zh-TW/progress.mdx +46 -4
  819. package/corpus/core/docs/content/locales/zh-TW/pure-agent-apps.mdx +46 -4
  820. package/corpus/core/docs/content/locales/zh-TW/real-time-collaboration.mdx +98 -8
  821. package/corpus/core/docs/content/locales/zh-TW/recurring-jobs.mdx +59 -4
  822. package/corpus/core/docs/content/locales/zh-TW/routing.mdx +42 -5
  823. package/corpus/core/docs/content/locales/zh-TW/sandbox-adapters.mdx +41 -4
  824. package/corpus/core/docs/content/locales/zh-TW/security.mdx +80 -8
  825. package/corpus/core/docs/content/locales/zh-TW/server.mdx +169 -12
  826. package/corpus/core/docs/content/locales/zh-TW/sharing.mdx +45 -4
  827. package/corpus/core/docs/content/locales/zh-TW/skills-guide.mdx +118 -9
  828. package/corpus/core/docs/content/locales/zh-TW/template-analytics.mdx +46 -4
  829. package/corpus/core/docs/content/locales/zh-TW/template-assets.mdx +58 -4
  830. package/corpus/core/docs/content/locales/zh-TW/template-brain.mdx +65 -4
  831. package/corpus/core/docs/content/locales/zh-TW/template-calendar.mdx +58 -4
  832. package/corpus/core/docs/content/locales/zh-TW/template-chat.mdx +59 -4
  833. package/corpus/core/docs/content/locales/zh-TW/template-clips.mdx +52 -4
  834. package/corpus/core/docs/content/locales/zh-TW/template-content.mdx +58 -4
  835. package/corpus/core/docs/content/locales/zh-TW/template-design.mdx +58 -4
  836. package/corpus/core/docs/content/locales/zh-TW/template-dispatch.mdx +57 -4
  837. package/corpus/core/docs/content/locales/zh-TW/template-forms.mdx +58 -4
  838. package/corpus/core/docs/content/locales/zh-TW/template-mail.mdx +60 -4
  839. package/corpus/core/docs/content/locales/zh-TW/template-plan.mdx +57 -4
  840. package/corpus/core/docs/content/locales/zh-TW/template-slides.mdx +49 -4
  841. package/corpus/core/docs/content/locales/zh-TW/template-videos.mdx +51 -4
  842. package/corpus/core/docs/content/locales/zh-TW/tracking.mdx +54 -4
  843. package/corpus/core/docs/content/locales/zh-TW/using-your-agent.mdx +51 -4
  844. package/corpus/core/docs/content/locales/zh-TW/voice-input.mdx +43 -4
  845. package/corpus/core/docs/content/locales/zh-TW/what-is-agent-native.mdx +94 -8
  846. package/corpus/core/docs/content/locales/zh-TW/workspace-connections.mdx +126 -8
  847. package/corpus/core/docs/content/locales/zh-TW/workspace-management.mdx +50 -4
  848. package/corpus/core/docs/content/locales/zh-TW/workspace.mdx +111 -8
  849. package/corpus/core/docs/content/locales/zh-TW/writing-agent-instructions.mdx +38 -4
  850. package/corpus/core/docs/content/mcp-apps.mdx +120 -10
  851. package/corpus/core/docs/content/mcp-clients.mdx +161 -8
  852. package/corpus/core/docs/content/mcp-protocol.mdx +105 -8
  853. package/corpus/core/docs/content/messaging.mdx +115 -8
  854. package/corpus/core/docs/content/migration-workbench.mdx +45 -4
  855. package/corpus/core/docs/content/multi-app-workspace.mdx +91 -8
  856. package/corpus/core/docs/content/multi-tenancy.mdx +80 -8
  857. package/corpus/core/docs/content/native-chat-ui.mdx +106 -8
  858. package/corpus/core/docs/content/notifications.mdx +135 -8
  859. package/corpus/core/docs/content/observability.mdx +102 -8
  860. package/corpus/core/docs/content/observational-memory.mdx +89 -8
  861. package/corpus/core/docs/content/onboarding.mdx +45 -4
  862. package/corpus/core/docs/content/plan-plugin.mdx +99 -8
  863. package/corpus/core/docs/content/pr-visual-recap.mdx +125 -8
  864. package/corpus/core/docs/content/processors.mdx +41 -4
  865. package/corpus/core/docs/content/progress.mdx +46 -4
  866. package/corpus/core/docs/content/pure-agent-apps.mdx +46 -4
  867. package/corpus/core/docs/content/real-time-collaboration.mdx +104 -8
  868. package/corpus/core/docs/content/recurring-jobs.mdx +59 -4
  869. package/corpus/core/docs/content/routing.mdx +44 -5
  870. package/corpus/core/docs/content/sandbox-adapters.mdx +43 -4
  871. package/corpus/core/docs/content/security.mdx +80 -8
  872. package/corpus/core/docs/content/server.mdx +173 -12
  873. package/corpus/core/docs/content/sharing.mdx +45 -4
  874. package/corpus/core/docs/content/skills-guide.mdx +118 -9
  875. package/corpus/core/docs/content/template-analytics.mdx +46 -4
  876. package/corpus/core/docs/content/template-assets.mdx +60 -4
  877. package/corpus/core/docs/content/template-brain.mdx +67 -4
  878. package/corpus/core/docs/content/template-calendar.mdx +62 -4
  879. package/corpus/core/docs/content/template-chat.mdx +61 -4
  880. package/corpus/core/docs/content/template-clips.mdx +52 -4
  881. package/corpus/core/docs/content/template-content.mdx +60 -4
  882. package/corpus/core/docs/content/template-design.mdx +58 -4
  883. package/corpus/core/docs/content/template-dispatch.mdx +57 -4
  884. package/corpus/core/docs/content/template-forms.mdx +62 -4
  885. package/corpus/core/docs/content/template-mail.mdx +60 -4
  886. package/corpus/core/docs/content/template-plan.mdx +61 -4
  887. package/corpus/core/docs/content/template-slides.mdx +49 -4
  888. package/corpus/core/docs/content/template-videos.mdx +51 -4
  889. package/corpus/core/docs/content/tracking.mdx +54 -4
  890. package/corpus/core/docs/content/using-your-agent.mdx +51 -4
  891. package/corpus/core/docs/content/voice-input.mdx +43 -4
  892. package/corpus/core/docs/content/what-is-agent-native.mdx +188 -8
  893. package/corpus/core/docs/content/workspace-connections.mdx +128 -8
  894. package/corpus/core/docs/content/workspace-management.mdx +50 -4
  895. package/corpus/core/docs/content/workspace.mdx +111 -8
  896. package/corpus/core/docs/content/writing-agent-instructions.mdx +45 -4
  897. package/corpus/core/package.json +1 -1
  898. package/corpus/core/src/application-state/store.ts +5 -5
  899. package/corpus/core/src/chat-threads/store.ts +2 -2
  900. package/corpus/core/src/cli/content-local.ts +374 -0
  901. package/corpus/core/src/cli/index.ts +17 -0
  902. package/corpus/core/src/cli/skills.ts +229 -197
  903. package/corpus/core/src/client/AssistantChat.tsx +4 -4
  904. package/corpus/core/src/client/MultiTabAssistantChat.tsx +11 -93
  905. package/corpus/core/src/client/analytics.ts +68 -15
  906. package/corpus/core/src/client/blocks/index.ts +2 -0
  907. package/corpus/core/src/client/blocks/library/diagram.config.ts +42 -18
  908. package/corpus/core/src/client/blocks/library/sanitize-html.ts +71 -6
  909. package/corpus/core/src/client/blocks/library/wireframe-kit.tsx +2 -2
  910. package/corpus/core/src/client/blocks/library/wireframe.tsx +8 -2
  911. package/corpus/core/src/client/blocks/mdx.ts +62 -1
  912. package/corpus/core/src/client/blocks/server.ts +2 -0
  913. package/corpus/core/src/client/blocks/types.ts +5 -4
  914. package/corpus/core/src/client/chat/message-components.tsx +3 -99
  915. package/corpus/core/src/client/chat-model-groups.ts +148 -0
  916. package/corpus/core/src/client/components/ui/dialog.tsx +91 -0
  917. package/corpus/core/src/client/composer/ComposerPlusMenu.tsx +33 -290
  918. package/corpus/core/src/client/index.ts +2 -0
  919. package/corpus/core/src/client/resources/McpIntegrationDialog.tsx +614 -0
  920. package/corpus/core/src/client/resources/ResourcesPanel.tsx +411 -644
  921. package/corpus/core/src/client/resources/mcp-integration-catalog.ts +239 -0
  922. package/corpus/core/src/client/settings/SettingsPanel.tsx +1 -1
  923. package/corpus/core/src/client/use-chat-models.ts +12 -104
  924. package/corpus/core/src/db/client.ts +0 -5
  925. package/corpus/core/src/integrations/adapters/email.ts +2 -2
  926. package/corpus/core/src/local-artifacts/index.ts +18 -0
  927. package/corpus/core/src/localization/default-messages.ts +81 -0
  928. package/corpus/core/src/localization/shared.ts +3 -3
  929. package/corpus/core/src/org/handlers.ts +2 -2
  930. package/corpus/core/src/resources/store.ts +7 -7
  931. package/corpus/core/src/server/auth.ts +7 -0
  932. package/corpus/core/src/server/core-routes-plugin.ts +34 -12
  933. package/corpus/core/src/shared/mcp-integration-config.ts +101 -0
  934. package/corpus/core/src/styles/agent-native.css +6 -104
  935. package/corpus/core/src/styles/blocks.css +15 -3
  936. package/corpus/core/src/vite/client.ts +17 -0
  937. package/corpus/templates/analytics/app/global.css +22 -0
  938. package/corpus/templates/analytics/app/i18n/zh-TW.ts +1 -0
  939. package/corpus/templates/analytics/app/i18n-data.ts +1 -0
  940. package/corpus/templates/analytics/app/pages/sessions/SessionsPage.tsx +25 -10
  941. package/corpus/templates/analytics/changelog/2026-06-28-sessions-shows-scoped-recordings-even-when-replay-events-are.md +6 -0
  942. package/corpus/templates/analytics/server/lib/session-replay.ts +1 -7
  943. package/corpus/templates/clips/AGENTS.md +4 -0
  944. package/corpus/templates/clips/actions/cleanup-transcript.ts +19 -1
  945. package/corpus/templates/clips/actions/get-builder-credit-status.ts +22 -0
  946. package/corpus/templates/clips/actions/get-recording-player-data.ts +18 -3
  947. package/corpus/templates/clips/actions/lib/builder-credits-state.ts +46 -0
  948. package/corpus/templates/clips/actions/lib/provider-transcript.ts +51 -0
  949. package/corpus/templates/clips/actions/regenerate-title.ts +18 -0
  950. package/corpus/templates/clips/actions/request-transcript.ts +56 -33
  951. package/corpus/templates/clips/actions/save-browser-transcript.ts +1 -17
  952. package/corpus/templates/clips/app/components/player/transcript-panel.tsx +120 -11
  953. package/corpus/templates/clips/app/i18n/ar-SA.ts +25 -0
  954. package/corpus/templates/clips/app/i18n/de-DE.ts +25 -0
  955. package/corpus/templates/clips/app/i18n/en-US.ts +25 -0
  956. package/corpus/templates/clips/app/i18n/es-ES.ts +25 -0
  957. package/corpus/templates/clips/app/i18n/fr-FR.ts +25 -0
  958. package/corpus/templates/clips/app/i18n/hi-IN.ts +25 -0
  959. package/corpus/templates/clips/app/i18n/ja-JP.ts +25 -0
  960. package/corpus/templates/clips/app/i18n/ko-KR.ts +25 -0
  961. package/corpus/templates/clips/app/i18n/pt-BR.ts +25 -0
  962. package/corpus/templates/clips/app/i18n/zh-CN.ts +23 -0
  963. package/corpus/templates/clips/app/i18n/zh-TW.ts +23 -0
  964. package/corpus/templates/clips/app/routes/_app.settings._index.tsx +69 -0
  965. package/corpus/templates/clips/app/routes/r.$recordingId.tsx +52 -2
  966. package/corpus/templates/clips/app/routes/record.tsx +26 -15
  967. package/corpus/templates/clips/changelog/2026-06-28-builder-credit-pauses-show-friendly-upgrade-guidance.md +6 -0
  968. package/corpus/templates/clips/changelog/2026-06-28-transcription-now-auto-detects-spoken-language-instead-of-following.md +6 -0
  969. package/corpus/templates/clips/changelog/2026-06-28-video-uploads-now-finish-when-duration-metadata-is-unavailable.md +6 -0
  970. package/corpus/templates/clips/desktop/src/lib/recorder.ts +40 -0
  971. package/corpus/templates/clips/desktop/src/lib/transcription-engine.ts +7 -3
  972. package/corpus/templates/clips/desktop/src-tauri/src/native_screen.rs +30 -2
  973. package/corpus/templates/clips/desktop/src-tauri/src/whisper_speech.rs +6 -19
  974. package/corpus/templates/clips/server/routes/api/uploads/[recordingId]/chunk.post.ts +4 -3
  975. package/corpus/templates/clips/shared/builder-credits.ts +120 -0
  976. package/corpus/templates/clips/shared/recording-core.ts +26 -8
  977. package/corpus/templates/content/AGENTS.md +23 -2
  978. package/corpus/templates/content/actions/_builder-docs-client.ts +952 -0
  979. package/corpus/templates/content/actions/_document-flush.ts +62 -0
  980. package/corpus/templates/content/actions/_local-file-documents.ts +115 -18
  981. package/corpus/templates/content/actions/check-builder-doc.ts +38 -0
  982. package/corpus/templates/content/actions/delete-document.ts +8 -0
  983. package/corpus/templates/content/actions/import-content-source.ts +12 -0
  984. package/corpus/templates/content/actions/list-builder-docs.ts +29 -0
  985. package/corpus/templates/content/actions/pull-builder-doc.ts +42 -0
  986. package/corpus/templates/content/actions/pull-document.ts +9 -59
  987. package/corpus/templates/content/actions/push-builder-doc.ts +45 -0
  988. package/corpus/templates/content/app/blocks/BuilderDocsBlocks.tsx +254 -0
  989. package/corpus/templates/content/app/blocks/contentBlockRegistry.tsx +4 -0
  990. package/corpus/templates/content/server/db/schema.ts +12 -0
  991. package/corpus/templates/content/server/plugins/db.ts +23 -0
  992. package/corpus/templates/content/shared/api.ts +1 -0
  993. package/corpus/templates/content/shared/builder-docs-blocks.ts +361 -0
  994. package/corpus/templates/content/shared/builder-mdx.ts +1037 -0
  995. package/corpus/templates/content/shared/content-source.ts +6 -0
  996. package/corpus/templates/content/shared/nfm-registry.ts +4 -0
  997. package/corpus/templates/content/vite.config.ts +13 -0
  998. package/corpus/templates/plan/.agents/skills/visual-plan/SKILL.md +25 -92
  999. package/corpus/templates/plan/.agents/skills/visual-plan/references/connection.md +51 -0
  1000. package/corpus/templates/plan/.agents/skills/visual-plan/references/document-quality.md +5 -1
  1001. package/corpus/templates/plan/.agents/skills/visual-plan/references/local-files.md +85 -0
  1002. package/corpus/templates/plan/.agents/skills/visual-plan/references/wireframe.md +21 -0
  1003. package/corpus/templates/plan/.agents/skills/visual-recap/SKILL.md +32 -104
  1004. package/corpus/templates/plan/.agents/skills/visual-recap/references/connection.md +51 -0
  1005. package/corpus/templates/plan/.agents/skills/visual-recap/references/local-files.md +85 -0
  1006. package/corpus/templates/plan/.agents/skills/visual-recap/references/wireframe.md +21 -0
  1007. package/corpus/templates/plan/actions/create-prototype-plan.ts +1 -1
  1008. package/corpus/templates/plan/actions/delete-visual-plan.ts +2 -2
  1009. package/corpus/templates/plan/actions/get-plan-blocks.ts +2 -0
  1010. package/corpus/templates/plan/app/components/plan/CanvasArea.tsx +25 -29
  1011. package/corpus/templates/plan/app/components/plan/wireframe/Wireframe.tsx +9 -4
  1012. package/corpus/templates/plan/app/components/plan/wireframe/html-artboard.css +15 -3
  1013. package/corpus/templates/plan/app/components/plan/wireframe/kit/rough.tsx +6 -6
  1014. package/corpus/templates/plan/app/components/plan/wireframe/sanitize-html.ts +71 -6
  1015. package/corpus/templates/plan/app/global.css +6 -3
  1016. package/corpus/templates/plan/app/root.tsx +31 -1
  1017. package/corpus/templates/plan/changelog/2026-06-28-plan-canvases-stay-stable-while-panning-and-zooming-in-chrom.md +6 -0
  1018. package/corpus/templates/plan/changelog/2026-06-28-plan-wireframes-avoid-overlapping-sketch-lines-in-dense-mockups.md +6 -0
  1019. package/corpus/templates/plan/changelog/2026-06-28-plan-wireframes-ignore-host-color-utility-classes-so-canvas-.md +6 -0
  1020. package/corpus/templates/plan/changelog/2026-06-28-wireframe-style-can-now-be-switched-between-sketchy-and-clean.md +6 -0
  1021. package/corpus/templates/plan/server/plan-content.ts +62 -3
  1022. package/corpus/templates/plan/server/plan-mdx.ts +177 -2
  1023. package/dist/application-state/store.js +5 -5
  1024. package/dist/application-state/store.js.map +1 -1
  1025. package/dist/chat-threads/store.js +2 -2
  1026. package/dist/chat-threads/store.js.map +1 -1
  1027. package/dist/cli/content-local.d.ts +31 -0
  1028. package/dist/cli/content-local.d.ts.map +1 -0
  1029. package/dist/cli/content-local.js +300 -0
  1030. package/dist/cli/content-local.js.map +1 -0
  1031. package/dist/cli/index.js +16 -0
  1032. package/dist/cli/index.js.map +1 -1
  1033. package/dist/cli/skills.d.ts +10 -4
  1034. package/dist/cli/skills.d.ts.map +1 -1
  1035. package/dist/cli/skills.js +227 -197
  1036. package/dist/cli/skills.js.map +1 -1
  1037. package/dist/client/AssistantChat.js +4 -4
  1038. package/dist/client/AssistantChat.js.map +1 -1
  1039. package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
  1040. package/dist/client/MultiTabAssistantChat.js +8 -69
  1041. package/dist/client/MultiTabAssistantChat.js.map +1 -1
  1042. package/dist/client/analytics.d.ts.map +1 -1
  1043. package/dist/client/analytics.js +48 -13
  1044. package/dist/client/analytics.js.map +1 -1
  1045. package/dist/client/blocks/index.d.ts +1 -1
  1046. package/dist/client/blocks/index.d.ts.map +1 -1
  1047. package/dist/client/blocks/index.js +1 -1
  1048. package/dist/client/blocks/index.js.map +1 -1
  1049. package/dist/client/blocks/library/diagram.config.d.ts +9 -9
  1050. package/dist/client/blocks/library/diagram.config.d.ts.map +1 -1
  1051. package/dist/client/blocks/library/diagram.config.js +36 -12
  1052. package/dist/client/blocks/library/diagram.config.js.map +1 -1
  1053. package/dist/client/blocks/library/sanitize-html.d.ts +3 -1
  1054. package/dist/client/blocks/library/sanitize-html.d.ts.map +1 -1
  1055. package/dist/client/blocks/library/sanitize-html.js +53 -5
  1056. package/dist/client/blocks/library/sanitize-html.js.map +1 -1
  1057. package/dist/client/blocks/library/wireframe-kit.d.ts +2 -2
  1058. package/dist/client/blocks/library/wireframe-kit.d.ts.map +1 -1
  1059. package/dist/client/blocks/library/wireframe-kit.js +2 -2
  1060. package/dist/client/blocks/library/wireframe-kit.js.map +1 -1
  1061. package/dist/client/blocks/library/wireframe.d.ts.map +1 -1
  1062. package/dist/client/blocks/library/wireframe.js +4 -1
  1063. package/dist/client/blocks/library/wireframe.js.map +1 -1
  1064. package/dist/client/blocks/mdx.d.ts +11 -0
  1065. package/dist/client/blocks/mdx.d.ts.map +1 -1
  1066. package/dist/client/blocks/mdx.js +47 -1
  1067. package/dist/client/blocks/mdx.js.map +1 -1
  1068. package/dist/client/blocks/server.d.ts +1 -1
  1069. package/dist/client/blocks/server.d.ts.map +1 -1
  1070. package/dist/client/blocks/server.js +1 -1
  1071. package/dist/client/blocks/server.js.map +1 -1
  1072. package/dist/client/blocks/types.d.ts +5 -4
  1073. package/dist/client/blocks/types.d.ts.map +1 -1
  1074. package/dist/client/blocks/types.js.map +1 -1
  1075. package/dist/client/chat/message-components.d.ts.map +1 -1
  1076. package/dist/client/chat/message-components.js +3 -13
  1077. package/dist/client/chat/message-components.js.map +1 -1
  1078. package/dist/client/chat-model-groups.d.ts +22 -0
  1079. package/dist/client/chat-model-groups.d.ts.map +1 -0
  1080. package/dist/client/chat-model-groups.js +94 -0
  1081. package/dist/client/chat-model-groups.js.map +1 -0
  1082. package/dist/client/components/ui/dialog.d.ts +14 -0
  1083. package/dist/client/components/ui/dialog.d.ts.map +1 -0
  1084. package/dist/client/components/ui/dialog.js +21 -0
  1085. package/dist/client/components/ui/dialog.js.map +1 -0
  1086. package/dist/client/composer/ComposerPlusMenu.d.ts.map +1 -1
  1087. package/dist/client/composer/ComposerPlusMenu.js +24 -149
  1088. package/dist/client/composer/ComposerPlusMenu.js.map +1 -1
  1089. package/dist/client/index.d.ts +1 -1
  1090. package/dist/client/index.d.ts.map +1 -1
  1091. package/dist/client/index.js +1 -1
  1092. package/dist/client/index.js.map +1 -1
  1093. package/dist/client/resources/McpIntegrationDialog.d.ts +13 -0
  1094. package/dist/client/resources/McpIntegrationDialog.d.ts.map +1 -0
  1095. package/dist/client/resources/McpIntegrationDialog.js +261 -0
  1096. package/dist/client/resources/McpIntegrationDialog.js.map +1 -0
  1097. package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
  1098. package/dist/client/resources/ResourcesPanel.js +74 -190
  1099. package/dist/client/resources/ResourcesPanel.js.map +1 -1
  1100. package/dist/client/resources/mcp-integration-catalog.d.ts +30 -0
  1101. package/dist/client/resources/mcp-integration-catalog.d.ts.map +1 -0
  1102. package/dist/client/resources/mcp-integration-catalog.js +191 -0
  1103. package/dist/client/resources/mcp-integration-catalog.js.map +1 -0
  1104. package/dist/client/settings/SettingsPanel.js +1 -1
  1105. package/dist/client/settings/SettingsPanel.js.map +1 -1
  1106. package/dist/client/use-chat-models.d.ts +2 -7
  1107. package/dist/client/use-chat-models.d.ts.map +1 -1
  1108. package/dist/client/use-chat-models.js +8 -78
  1109. package/dist/client/use-chat-models.js.map +1 -1
  1110. package/dist/collab/routes.d.ts +2 -2
  1111. package/dist/db/client.d.ts.map +1 -1
  1112. package/dist/db/client.js +0 -5
  1113. package/dist/db/client.js.map +1 -1
  1114. package/dist/file-upload/actions/upload-image.d.ts +2 -2
  1115. package/dist/integrations/adapters/email.js +2 -2
  1116. package/dist/integrations/adapters/email.js.map +1 -1
  1117. package/dist/local-artifacts/index.d.ts +6 -0
  1118. package/dist/local-artifacts/index.d.ts.map +1 -1
  1119. package/dist/local-artifacts/index.js +12 -0
  1120. package/dist/local-artifacts/index.js.map +1 -1
  1121. package/dist/localization/default-messages.d.ts +76 -0
  1122. package/dist/localization/default-messages.d.ts.map +1 -1
  1123. package/dist/localization/default-messages.js +76 -0
  1124. package/dist/localization/default-messages.js.map +1 -1
  1125. package/dist/localization/shared.d.ts +1 -1
  1126. package/dist/localization/shared.js +3 -3
  1127. package/dist/localization/shared.js.map +1 -1
  1128. package/dist/notifications/routes.d.ts +3 -3
  1129. package/dist/observability/routes.d.ts +5 -5
  1130. package/dist/org/handlers.js +2 -2
  1131. package/dist/org/handlers.js.map +1 -1
  1132. package/dist/provider-api/corpus-jobs.d.ts +2 -2
  1133. package/dist/resources/handlers.d.ts +1 -1
  1134. package/dist/resources/store.js +7 -7
  1135. package/dist/resources/store.js.map +1 -1
  1136. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  1137. package/dist/server/auth.d.ts.map +1 -1
  1138. package/dist/server/auth.js +8 -0
  1139. package/dist/server/auth.js.map +1 -1
  1140. package/dist/server/core-routes-plugin.d.ts +1 -0
  1141. package/dist/server/core-routes-plugin.d.ts.map +1 -1
  1142. package/dist/server/core-routes-plugin.js +29 -11
  1143. package/dist/server/core-routes-plugin.js.map +1 -1
  1144. package/dist/shared/mcp-integration-config.d.ts +27 -0
  1145. package/dist/shared/mcp-integration-config.d.ts.map +1 -0
  1146. package/dist/shared/mcp-integration-config.js +56 -0
  1147. package/dist/shared/mcp-integration-config.js.map +1 -0
  1148. package/dist/styles/agent-native.css +6 -104
  1149. package/dist/styles/blocks.css +15 -3
  1150. package/dist/vite/client.d.ts +11 -0
  1151. package/dist/vite/client.d.ts.map +1 -1
  1152. package/dist/vite/client.js +2 -0
  1153. package/dist/vite/client.js.map +1 -1
  1154. package/docs/content/a2a-protocol.mdx +97 -9
  1155. package/docs/content/actions.mdx +65 -4
  1156. package/docs/content/agent-mentions.mdx +68 -4
  1157. package/docs/content/agent-surfaces.mdx +112 -8
  1158. package/docs/content/agent-teams.mdx +171 -12
  1159. package/docs/content/agent-web-surfaces.mdx +51 -4
  1160. package/docs/content/authentication.mdx +122 -8
  1161. package/docs/content/automations.mdx +110 -8
  1162. package/docs/content/blueprint-installer.mdx +42 -4
  1163. package/docs/content/cli-adapters.mdx +44 -4
  1164. package/docs/content/client.mdx +79 -8
  1165. package/docs/content/cloneable-saas.mdx +85 -8
  1166. package/docs/content/code-agents-ui.mdx +98 -8
  1167. package/docs/content/components.mdx +118 -8
  1168. package/docs/content/context-awareness.mdx +98 -8
  1169. package/docs/content/creating-templates.mdx +49 -4
  1170. package/docs/content/cross-app-sso.mdx +109 -8
  1171. package/docs/content/database.mdx +56 -4
  1172. package/docs/content/deployment.mdx +103 -8
  1173. package/docs/content/dispatch.mdx +134 -8
  1174. package/docs/content/drop-in-agent.mdx +63 -4
  1175. package/docs/content/durable-background-runs.mdx +98 -8
  1176. package/docs/content/durable-resume.mdx +47 -4
  1177. package/docs/content/embedding-sdk.mdx +83 -8
  1178. package/docs/content/evals.mdx +102 -8
  1179. package/docs/content/extensions.mdx +113 -9
  1180. package/docs/content/external-agents.mdx +119 -8
  1181. package/docs/content/faq.mdx +98 -8
  1182. package/docs/content/file-uploads.mdx +61 -4
  1183. package/docs/content/frames.mdx +90 -8
  1184. package/docs/content/generative-ui.mdx +50 -4
  1185. package/docs/content/getting-started.mdx +34 -4
  1186. package/docs/content/harness-agents.mdx +77 -8
  1187. package/docs/content/human-approval.mdx +50 -4
  1188. package/docs/content/key-concepts.mdx +102 -8
  1189. package/docs/content/local-file-mode.mdx +58 -4
  1190. package/docs/content/locales/ar-SA/a2a-protocol.mdx +97 -9
  1191. package/docs/content/locales/ar-SA/actions.mdx +65 -4
  1192. package/docs/content/locales/ar-SA/agent-mentions.mdx +68 -4
  1193. package/docs/content/locales/ar-SA/agent-surfaces.mdx +114 -8
  1194. package/docs/content/locales/ar-SA/agent-teams.mdx +174 -12
  1195. package/docs/content/locales/ar-SA/agent-web-surfaces.mdx +49 -4
  1196. package/docs/content/locales/ar-SA/authentication.mdx +120 -8
  1197. package/docs/content/locales/ar-SA/automations.mdx +110 -8
  1198. package/docs/content/locales/ar-SA/blueprint-installer.mdx +42 -4
  1199. package/docs/content/locales/ar-SA/cli-adapters.mdx +40 -4
  1200. package/docs/content/locales/ar-SA/client.mdx +80 -8
  1201. package/docs/content/locales/ar-SA/cloneable-saas.mdx +85 -8
  1202. package/docs/content/locales/ar-SA/code-agents-ui.mdx +99 -8
  1203. package/docs/content/locales/ar-SA/components.mdx +114 -8
  1204. package/docs/content/locales/ar-SA/context-awareness.mdx +100 -8
  1205. package/docs/content/locales/ar-SA/creating-templates.mdx +51 -4
  1206. package/docs/content/locales/ar-SA/cross-app-sso.mdx +109 -8
  1207. package/docs/content/locales/ar-SA/database.mdx +52 -4
  1208. package/docs/content/locales/ar-SA/deployment.mdx +103 -8
  1209. package/docs/content/locales/ar-SA/dispatch.mdx +134 -8
  1210. package/docs/content/locales/ar-SA/drop-in-agent.mdx +63 -4
  1211. package/docs/content/locales/ar-SA/durable-resume.mdx +47 -4
  1212. package/docs/content/locales/ar-SA/embedding-sdk.mdx +83 -8
  1213. package/docs/content/locales/ar-SA/evals.mdx +102 -8
  1214. package/docs/content/locales/ar-SA/extensions.mdx +113 -9
  1215. package/docs/content/locales/ar-SA/external-agents.mdx +119 -8
  1216. package/docs/content/locales/ar-SA/faq.mdx +98 -8
  1217. package/docs/content/locales/ar-SA/file-uploads.mdx +61 -4
  1218. package/docs/content/locales/ar-SA/frames.mdx +88 -8
  1219. package/docs/content/locales/ar-SA/getting-started.mdx +34 -4
  1220. package/docs/content/locales/ar-SA/harness-agents.mdx +79 -8
  1221. package/docs/content/locales/ar-SA/human-approval.mdx +50 -4
  1222. package/docs/content/locales/ar-SA/key-concepts.mdx +107 -8
  1223. package/docs/content/locales/ar-SA/local-file-mode.mdx +56 -4
  1224. package/docs/content/locales/ar-SA/mcp-apps.mdx +120 -10
  1225. package/docs/content/locales/ar-SA/mcp-clients.mdx +133 -8
  1226. package/docs/content/locales/ar-SA/mcp-protocol.mdx +105 -8
  1227. package/docs/content/locales/ar-SA/messaging.mdx +115 -8
  1228. package/docs/content/locales/ar-SA/migration-workbench.mdx +47 -4
  1229. package/docs/content/locales/ar-SA/multi-app-workspace.mdx +91 -8
  1230. package/docs/content/locales/ar-SA/multi-tenancy.mdx +80 -8
  1231. package/docs/content/locales/ar-SA/native-chat-ui.mdx +104 -8
  1232. package/docs/content/locales/ar-SA/notifications.mdx +135 -8
  1233. package/docs/content/locales/ar-SA/observability.mdx +102 -8
  1234. package/docs/content/locales/ar-SA/observational-memory.mdx +87 -8
  1235. package/docs/content/locales/ar-SA/onboarding.mdx +45 -4
  1236. package/docs/content/locales/ar-SA/plan-plugin.mdx +99 -8
  1237. package/docs/content/locales/ar-SA/pr-visual-recap.mdx +125 -8
  1238. package/docs/content/locales/ar-SA/processors.mdx +41 -4
  1239. package/docs/content/locales/ar-SA/progress.mdx +46 -4
  1240. package/docs/content/locales/ar-SA/pure-agent-apps.mdx +48 -4
  1241. package/docs/content/locales/ar-SA/real-time-collaboration.mdx +102 -8
  1242. package/docs/content/locales/ar-SA/recurring-jobs.mdx +59 -4
  1243. package/docs/content/locales/ar-SA/routing.mdx +44 -5
  1244. package/docs/content/locales/ar-SA/sandbox-adapters.mdx +43 -4
  1245. package/docs/content/locales/ar-SA/security.mdx +80 -8
  1246. package/docs/content/locales/ar-SA/server.mdx +173 -12
  1247. package/docs/content/locales/ar-SA/sharing.mdx +45 -4
  1248. package/docs/content/locales/ar-SA/skills-guide.mdx +118 -9
  1249. package/docs/content/locales/ar-SA/template-analytics.mdx +46 -4
  1250. package/docs/content/locales/ar-SA/template-assets.mdx +62 -4
  1251. package/docs/content/locales/ar-SA/template-brain.mdx +65 -4
  1252. package/docs/content/locales/ar-SA/template-calendar.mdx +62 -4
  1253. package/docs/content/locales/ar-SA/template-chat.mdx +61 -4
  1254. package/docs/content/locales/ar-SA/template-clips.mdx +52 -4
  1255. package/docs/content/locales/ar-SA/template-content.mdx +62 -4
  1256. package/docs/content/locales/ar-SA/template-design.mdx +60 -4
  1257. package/docs/content/locales/ar-SA/template-dispatch.mdx +57 -4
  1258. package/docs/content/locales/ar-SA/template-forms.mdx +62 -4
  1259. package/docs/content/locales/ar-SA/template-mail.mdx +60 -4
  1260. package/docs/content/locales/ar-SA/template-plan.mdx +61 -4
  1261. package/docs/content/locales/ar-SA/template-slides.mdx +49 -4
  1262. package/docs/content/locales/ar-SA/template-videos.mdx +53 -4
  1263. package/docs/content/locales/ar-SA/tracking.mdx +54 -4
  1264. package/docs/content/locales/ar-SA/using-your-agent.mdx +51 -4
  1265. package/docs/content/locales/ar-SA/voice-input.mdx +43 -4
  1266. package/docs/content/locales/ar-SA/what-is-agent-native.mdx +96 -8
  1267. package/docs/content/locales/ar-SA/workspace-connections.mdx +128 -8
  1268. package/docs/content/locales/ar-SA/workspace-management.mdx +50 -4
  1269. package/docs/content/locales/ar-SA/workspace.mdx +112 -8
  1270. package/docs/content/locales/ar-SA/writing-agent-instructions.mdx +41 -4
  1271. package/docs/content/locales/de-DE/a2a-protocol.mdx +99 -9
  1272. package/docs/content/locales/de-DE/actions.mdx +67 -4
  1273. package/docs/content/locales/de-DE/agent-mentions.mdx +68 -4
  1274. package/docs/content/locales/de-DE/agent-surfaces.mdx +116 -8
  1275. package/docs/content/locales/de-DE/agent-teams.mdx +171 -12
  1276. package/docs/content/locales/de-DE/agent-web-surfaces.mdx +51 -4
  1277. package/docs/content/locales/de-DE/authentication.mdx +122 -8
  1278. package/docs/content/locales/de-DE/automations.mdx +110 -8
  1279. package/docs/content/locales/de-DE/blueprint-installer.mdx +42 -4
  1280. package/docs/content/locales/de-DE/cli-adapters.mdx +44 -4
  1281. package/docs/content/locales/de-DE/client.mdx +79 -8
  1282. package/docs/content/locales/de-DE/cloneable-saas.mdx +85 -8
  1283. package/docs/content/locales/de-DE/code-agents-ui.mdx +100 -8
  1284. package/docs/content/locales/de-DE/components.mdx +118 -8
  1285. package/docs/content/locales/de-DE/context-awareness.mdx +98 -8
  1286. package/docs/content/locales/de-DE/creating-templates.mdx +51 -4
  1287. package/docs/content/locales/de-DE/cross-app-sso.mdx +109 -8
  1288. package/docs/content/locales/de-DE/database.mdx +52 -4
  1289. package/docs/content/locales/de-DE/deployment.mdx +103 -8
  1290. package/docs/content/locales/de-DE/dispatch.mdx +134 -8
  1291. package/docs/content/locales/de-DE/drop-in-agent.mdx +63 -4
  1292. package/docs/content/locales/de-DE/durable-resume.mdx +47 -4
  1293. package/docs/content/locales/de-DE/embedding-sdk.mdx +85 -8
  1294. package/docs/content/locales/de-DE/evals.mdx +102 -8
  1295. package/docs/content/locales/de-DE/extensions.mdx +113 -9
  1296. package/docs/content/locales/de-DE/external-agents.mdx +119 -8
  1297. package/docs/content/locales/de-DE/faq.mdx +98 -8
  1298. package/docs/content/locales/de-DE/file-uploads.mdx +61 -4
  1299. package/docs/content/locales/de-DE/frames.mdx +88 -8
  1300. package/docs/content/locales/de-DE/getting-started.mdx +34 -4
  1301. package/docs/content/locales/de-DE/harness-agents.mdx +79 -8
  1302. package/docs/content/locales/de-DE/human-approval.mdx +50 -4
  1303. package/docs/content/locales/de-DE/key-concepts.mdx +104 -8
  1304. package/docs/content/locales/de-DE/local-file-mode.mdx +58 -4
  1305. package/docs/content/locales/de-DE/mcp-apps.mdx +120 -10
  1306. package/docs/content/locales/de-DE/mcp-clients.mdx +133 -8
  1307. package/docs/content/locales/de-DE/mcp-protocol.mdx +105 -8
  1308. package/docs/content/locales/de-DE/messaging.mdx +115 -8
  1309. package/docs/content/locales/de-DE/migration-workbench.mdx +47 -4
  1310. package/docs/content/locales/de-DE/multi-app-workspace.mdx +91 -8
  1311. package/docs/content/locales/de-DE/multi-tenancy.mdx +80 -8
  1312. package/docs/content/locales/de-DE/native-chat-ui.mdx +108 -8
  1313. package/docs/content/locales/de-DE/notifications.mdx +135 -8
  1314. package/docs/content/locales/de-DE/observability.mdx +102 -8
  1315. package/docs/content/locales/de-DE/observational-memory.mdx +92 -8
  1316. package/docs/content/locales/de-DE/onboarding.mdx +45 -4
  1317. package/docs/content/locales/de-DE/plan-plugin.mdx +99 -8
  1318. package/docs/content/locales/de-DE/pr-visual-recap.mdx +125 -8
  1319. package/docs/content/locales/de-DE/processors.mdx +41 -4
  1320. package/docs/content/locales/de-DE/progress.mdx +46 -4
  1321. package/docs/content/locales/de-DE/pure-agent-apps.mdx +50 -4
  1322. package/docs/content/locales/de-DE/real-time-collaboration.mdx +104 -8
  1323. package/docs/content/locales/de-DE/recurring-jobs.mdx +59 -4
  1324. package/docs/content/locales/de-DE/routing.mdx +44 -5
  1325. package/docs/content/locales/de-DE/sandbox-adapters.mdx +43 -4
  1326. package/docs/content/locales/de-DE/security.mdx +80 -8
  1327. package/docs/content/locales/de-DE/server.mdx +171 -12
  1328. package/docs/content/locales/de-DE/sharing.mdx +45 -4
  1329. package/docs/content/locales/de-DE/skills-guide.mdx +118 -9
  1330. package/docs/content/locales/de-DE/template-analytics.mdx +46 -4
  1331. package/docs/content/locales/de-DE/template-assets.mdx +62 -4
  1332. package/docs/content/locales/de-DE/template-brain.mdx +69 -4
  1333. package/docs/content/locales/de-DE/template-calendar.mdx +62 -4
  1334. package/docs/content/locales/de-DE/template-chat.mdx +61 -4
  1335. package/docs/content/locales/de-DE/template-clips.mdx +52 -4
  1336. package/docs/content/locales/de-DE/template-content.mdx +60 -4
  1337. package/docs/content/locales/de-DE/template-design.mdx +58 -4
  1338. package/docs/content/locales/de-DE/template-dispatch.mdx +57 -4
  1339. package/docs/content/locales/de-DE/template-forms.mdx +64 -4
  1340. package/docs/content/locales/de-DE/template-mail.mdx +60 -4
  1341. package/docs/content/locales/de-DE/template-plan.mdx +63 -4
  1342. package/docs/content/locales/de-DE/template-slides.mdx +49 -4
  1343. package/docs/content/locales/de-DE/template-videos.mdx +53 -4
  1344. package/docs/content/locales/de-DE/tracking.mdx +54 -4
  1345. package/docs/content/locales/de-DE/using-your-agent.mdx +51 -4
  1346. package/docs/content/locales/de-DE/voice-input.mdx +45 -4
  1347. package/docs/content/locales/de-DE/what-is-agent-native.mdx +100 -8
  1348. package/docs/content/locales/de-DE/workspace-connections.mdx +128 -8
  1349. package/docs/content/locales/de-DE/workspace-management.mdx +50 -4
  1350. package/docs/content/locales/de-DE/workspace.mdx +111 -8
  1351. package/docs/content/locales/de-DE/writing-agent-instructions.mdx +45 -4
  1352. package/docs/content/locales/es-ES/a2a-protocol.mdx +99 -9
  1353. package/docs/content/locales/es-ES/actions.mdx +67 -4
  1354. package/docs/content/locales/es-ES/agent-mentions.mdx +68 -4
  1355. package/docs/content/locales/es-ES/agent-surfaces.mdx +120 -8
  1356. package/docs/content/locales/es-ES/agent-teams.mdx +172 -12
  1357. package/docs/content/locales/es-ES/agent-web-surfaces.mdx +51 -4
  1358. package/docs/content/locales/es-ES/authentication.mdx +122 -8
  1359. package/docs/content/locales/es-ES/automations.mdx +110 -8
  1360. package/docs/content/locales/es-ES/blueprint-installer.mdx +42 -4
  1361. package/docs/content/locales/es-ES/cli-adapters.mdx +44 -4
  1362. package/docs/content/locales/es-ES/client.mdx +79 -8
  1363. package/docs/content/locales/es-ES/cloneable-saas.mdx +85 -8
  1364. package/docs/content/locales/es-ES/code-agents-ui.mdx +101 -8
  1365. package/docs/content/locales/es-ES/components.mdx +118 -8
  1366. package/docs/content/locales/es-ES/context-awareness.mdx +98 -8
  1367. package/docs/content/locales/es-ES/creating-templates.mdx +51 -4
  1368. package/docs/content/locales/es-ES/cross-app-sso.mdx +109 -8
  1369. package/docs/content/locales/es-ES/database.mdx +52 -4
  1370. package/docs/content/locales/es-ES/deployment.mdx +103 -8
  1371. package/docs/content/locales/es-ES/dispatch.mdx +134 -8
  1372. package/docs/content/locales/es-ES/drop-in-agent.mdx +63 -4
  1373. package/docs/content/locales/es-ES/durable-resume.mdx +47 -4
  1374. package/docs/content/locales/es-ES/embedding-sdk.mdx +87 -8
  1375. package/docs/content/locales/es-ES/evals.mdx +102 -8
  1376. package/docs/content/locales/es-ES/extensions.mdx +113 -9
  1377. package/docs/content/locales/es-ES/external-agents.mdx +119 -8
  1378. package/docs/content/locales/es-ES/faq.mdx +98 -8
  1379. package/docs/content/locales/es-ES/file-uploads.mdx +61 -4
  1380. package/docs/content/locales/es-ES/frames.mdx +88 -8
  1381. package/docs/content/locales/es-ES/getting-started.mdx +34 -4
  1382. package/docs/content/locales/es-ES/harness-agents.mdx +79 -8
  1383. package/docs/content/locales/es-ES/human-approval.mdx +50 -4
  1384. package/docs/content/locales/es-ES/key-concepts.mdx +104 -8
  1385. package/docs/content/locales/es-ES/local-file-mode.mdx +60 -4
  1386. package/docs/content/locales/es-ES/mcp-apps.mdx +120 -10
  1387. package/docs/content/locales/es-ES/mcp-clients.mdx +135 -8
  1388. package/docs/content/locales/es-ES/mcp-protocol.mdx +105 -8
  1389. package/docs/content/locales/es-ES/messaging.mdx +115 -8
  1390. package/docs/content/locales/es-ES/migration-workbench.mdx +47 -4
  1391. package/docs/content/locales/es-ES/multi-app-workspace.mdx +91 -8
  1392. package/docs/content/locales/es-ES/multi-tenancy.mdx +80 -8
  1393. package/docs/content/locales/es-ES/native-chat-ui.mdx +108 -8
  1394. package/docs/content/locales/es-ES/notifications.mdx +135 -8
  1395. package/docs/content/locales/es-ES/observability.mdx +104 -8
  1396. package/docs/content/locales/es-ES/observational-memory.mdx +92 -8
  1397. package/docs/content/locales/es-ES/onboarding.mdx +45 -4
  1398. package/docs/content/locales/es-ES/plan-plugin.mdx +99 -8
  1399. package/docs/content/locales/es-ES/pr-visual-recap.mdx +125 -8
  1400. package/docs/content/locales/es-ES/processors.mdx +41 -4
  1401. package/docs/content/locales/es-ES/progress.mdx +46 -4
  1402. package/docs/content/locales/es-ES/pure-agent-apps.mdx +50 -4
  1403. package/docs/content/locales/es-ES/real-time-collaboration.mdx +109 -8
  1404. package/docs/content/locales/es-ES/recurring-jobs.mdx +59 -4
  1405. package/docs/content/locales/es-ES/routing.mdx +44 -5
  1406. package/docs/content/locales/es-ES/sandbox-adapters.mdx +44 -4
  1407. package/docs/content/locales/es-ES/security.mdx +82 -8
  1408. package/docs/content/locales/es-ES/server.mdx +173 -12
  1409. package/docs/content/locales/es-ES/sharing.mdx +45 -4
  1410. package/docs/content/locales/es-ES/skills-guide.mdx +118 -9
  1411. package/docs/content/locales/es-ES/template-analytics.mdx +46 -4
  1412. package/docs/content/locales/es-ES/template-assets.mdx +64 -4
  1413. package/docs/content/locales/es-ES/template-brain.mdx +69 -4
  1414. package/docs/content/locales/es-ES/template-calendar.mdx +62 -4
  1415. package/docs/content/locales/es-ES/template-chat.mdx +61 -4
  1416. package/docs/content/locales/es-ES/template-clips.mdx +52 -4
  1417. package/docs/content/locales/es-ES/template-content.mdx +64 -4
  1418. package/docs/content/locales/es-ES/template-design.mdx +58 -4
  1419. package/docs/content/locales/es-ES/template-dispatch.mdx +57 -4
  1420. package/docs/content/locales/es-ES/template-forms.mdx +64 -4
  1421. package/docs/content/locales/es-ES/template-mail.mdx +60 -4
  1422. package/docs/content/locales/es-ES/template-plan.mdx +61 -4
  1423. package/docs/content/locales/es-ES/template-slides.mdx +49 -4
  1424. package/docs/content/locales/es-ES/template-videos.mdx +53 -4
  1425. package/docs/content/locales/es-ES/tracking.mdx +54 -4
  1426. package/docs/content/locales/es-ES/using-your-agent.mdx +51 -4
  1427. package/docs/content/locales/es-ES/voice-input.mdx +45 -4
  1428. package/docs/content/locales/es-ES/what-is-agent-native.mdx +99 -8
  1429. package/docs/content/locales/es-ES/workspace-connections.mdx +128 -8
  1430. package/docs/content/locales/es-ES/workspace-management.mdx +50 -4
  1431. package/docs/content/locales/es-ES/workspace.mdx +112 -8
  1432. package/docs/content/locales/es-ES/writing-agent-instructions.mdx +46 -4
  1433. package/docs/content/locales/fr-FR/a2a-protocol.mdx +97 -9
  1434. package/docs/content/locales/fr-FR/actions.mdx +67 -4
  1435. package/docs/content/locales/fr-FR/agent-mentions.mdx +68 -4
  1436. package/docs/content/locales/fr-FR/agent-surfaces.mdx +118 -8
  1437. package/docs/content/locales/fr-FR/agent-teams.mdx +172 -12
  1438. package/docs/content/locales/fr-FR/agent-web-surfaces.mdx +51 -4
  1439. package/docs/content/locales/fr-FR/authentication.mdx +122 -8
  1440. package/docs/content/locales/fr-FR/automations.mdx +110 -8
  1441. package/docs/content/locales/fr-FR/blueprint-installer.mdx +42 -4
  1442. package/docs/content/locales/fr-FR/cli-adapters.mdx +44 -4
  1443. package/docs/content/locales/fr-FR/client.mdx +81 -8
  1444. package/docs/content/locales/fr-FR/cloneable-saas.mdx +85 -8
  1445. package/docs/content/locales/fr-FR/code-agents-ui.mdx +102 -8
  1446. package/docs/content/locales/fr-FR/components.mdx +118 -8
  1447. package/docs/content/locales/fr-FR/context-awareness.mdx +98 -8
  1448. package/docs/content/locales/fr-FR/creating-templates.mdx +49 -4
  1449. package/docs/content/locales/fr-FR/cross-app-sso.mdx +109 -8
  1450. package/docs/content/locales/fr-FR/database.mdx +52 -4
  1451. package/docs/content/locales/fr-FR/deployment.mdx +103 -8
  1452. package/docs/content/locales/fr-FR/dispatch.mdx +134 -8
  1453. package/docs/content/locales/fr-FR/drop-in-agent.mdx +63 -4
  1454. package/docs/content/locales/fr-FR/durable-resume.mdx +47 -4
  1455. package/docs/content/locales/fr-FR/embedding-sdk.mdx +87 -8
  1456. package/docs/content/locales/fr-FR/evals.mdx +102 -8
  1457. package/docs/content/locales/fr-FR/extensions.mdx +113 -9
  1458. package/docs/content/locales/fr-FR/external-agents.mdx +119 -8
  1459. package/docs/content/locales/fr-FR/faq.mdx +98 -8
  1460. package/docs/content/locales/fr-FR/file-uploads.mdx +61 -4
  1461. package/docs/content/locales/fr-FR/frames.mdx +90 -8
  1462. package/docs/content/locales/fr-FR/getting-started.mdx +34 -4
  1463. package/docs/content/locales/fr-FR/harness-agents.mdx +77 -8
  1464. package/docs/content/locales/fr-FR/human-approval.mdx +50 -4
  1465. package/docs/content/locales/fr-FR/key-concepts.mdx +106 -8
  1466. package/docs/content/locales/fr-FR/local-file-mode.mdx +58 -4
  1467. package/docs/content/locales/fr-FR/mcp-apps.mdx +120 -10
  1468. package/docs/content/locales/fr-FR/mcp-clients.mdx +135 -8
  1469. package/docs/content/locales/fr-FR/mcp-protocol.mdx +105 -8
  1470. package/docs/content/locales/fr-FR/messaging.mdx +115 -8
  1471. package/docs/content/locales/fr-FR/migration-workbench.mdx +47 -4
  1472. package/docs/content/locales/fr-FR/multi-app-workspace.mdx +91 -8
  1473. package/docs/content/locales/fr-FR/multi-tenancy.mdx +80 -8
  1474. package/docs/content/locales/fr-FR/native-chat-ui.mdx +108 -8
  1475. package/docs/content/locales/fr-FR/notifications.mdx +135 -8
  1476. package/docs/content/locales/fr-FR/observability.mdx +104 -8
  1477. package/docs/content/locales/fr-FR/observational-memory.mdx +89 -8
  1478. package/docs/content/locales/fr-FR/onboarding.mdx +45 -4
  1479. package/docs/content/locales/fr-FR/plan-plugin.mdx +99 -8
  1480. package/docs/content/locales/fr-FR/pr-visual-recap.mdx +126 -8
  1481. package/docs/content/locales/fr-FR/processors.mdx +41 -4
  1482. package/docs/content/locales/fr-FR/progress.mdx +46 -4
  1483. package/docs/content/locales/fr-FR/pure-agent-apps.mdx +48 -4
  1484. package/docs/content/locales/fr-FR/real-time-collaboration.mdx +107 -8
  1485. package/docs/content/locales/fr-FR/recurring-jobs.mdx +59 -4
  1486. package/docs/content/locales/fr-FR/routing.mdx +44 -5
  1487. package/docs/content/locales/fr-FR/sandbox-adapters.mdx +44 -4
  1488. package/docs/content/locales/fr-FR/security.mdx +82 -8
  1489. package/docs/content/locales/fr-FR/server.mdx +173 -12
  1490. package/docs/content/locales/fr-FR/sharing.mdx +45 -4
  1491. package/docs/content/locales/fr-FR/skills-guide.mdx +118 -9
  1492. package/docs/content/locales/fr-FR/template-analytics.mdx +46 -4
  1493. package/docs/content/locales/fr-FR/template-assets.mdx +66 -4
  1494. package/docs/content/locales/fr-FR/template-brain.mdx +69 -4
  1495. package/docs/content/locales/fr-FR/template-calendar.mdx +62 -4
  1496. package/docs/content/locales/fr-FR/template-chat.mdx +61 -4
  1497. package/docs/content/locales/fr-FR/template-clips.mdx +52 -4
  1498. package/docs/content/locales/fr-FR/template-content.mdx +64 -4
  1499. package/docs/content/locales/fr-FR/template-design.mdx +58 -4
  1500. package/docs/content/locales/fr-FR/template-dispatch.mdx +57 -4
  1501. package/docs/content/locales/fr-FR/template-forms.mdx +64 -4
  1502. package/docs/content/locales/fr-FR/template-mail.mdx +60 -4
  1503. package/docs/content/locales/fr-FR/template-plan.mdx +61 -4
  1504. package/docs/content/locales/fr-FR/template-slides.mdx +49 -4
  1505. package/docs/content/locales/fr-FR/template-videos.mdx +53 -4
  1506. package/docs/content/locales/fr-FR/tracking.mdx +54 -4
  1507. package/docs/content/locales/fr-FR/using-your-agent.mdx +51 -4
  1508. package/docs/content/locales/fr-FR/voice-input.mdx +45 -4
  1509. package/docs/content/locales/fr-FR/what-is-agent-native.mdx +101 -8
  1510. package/docs/content/locales/fr-FR/workspace-connections.mdx +128 -8
  1511. package/docs/content/locales/fr-FR/workspace-management.mdx +50 -4
  1512. package/docs/content/locales/fr-FR/workspace.mdx +112 -8
  1513. package/docs/content/locales/fr-FR/writing-agent-instructions.mdx +47 -4
  1514. package/docs/content/locales/hi-IN/a2a-protocol.mdx +97 -9
  1515. package/docs/content/locales/hi-IN/actions.mdx +63 -4
  1516. package/docs/content/locales/hi-IN/agent-mentions.mdx +68 -4
  1517. package/docs/content/locales/hi-IN/agent-surfaces.mdx +112 -8
  1518. package/docs/content/locales/hi-IN/agent-teams.mdx +171 -12
  1519. package/docs/content/locales/hi-IN/agent-web-surfaces.mdx +51 -4
  1520. package/docs/content/locales/hi-IN/authentication.mdx +122 -8
  1521. package/docs/content/locales/hi-IN/automations.mdx +110 -8
  1522. package/docs/content/locales/hi-IN/blueprint-installer.mdx +42 -4
  1523. package/docs/content/locales/hi-IN/cli-adapters.mdx +44 -4
  1524. package/docs/content/locales/hi-IN/client.mdx +79 -8
  1525. package/docs/content/locales/hi-IN/cloneable-saas.mdx +85 -8
  1526. package/docs/content/locales/hi-IN/code-agents-ui.mdx +96 -8
  1527. package/docs/content/locales/hi-IN/components.mdx +114 -8
  1528. package/docs/content/locales/hi-IN/context-awareness.mdx +102 -8
  1529. package/docs/content/locales/hi-IN/creating-templates.mdx +53 -4
  1530. package/docs/content/locales/hi-IN/cross-app-sso.mdx +109 -8
  1531. package/docs/content/locales/hi-IN/database.mdx +52 -4
  1532. package/docs/content/locales/hi-IN/deployment.mdx +103 -8
  1533. package/docs/content/locales/hi-IN/dispatch.mdx +134 -8
  1534. package/docs/content/locales/hi-IN/drop-in-agent.mdx +63 -4
  1535. package/docs/content/locales/hi-IN/durable-resume.mdx +47 -4
  1536. package/docs/content/locales/hi-IN/embedding-sdk.mdx +83 -8
  1537. package/docs/content/locales/hi-IN/evals.mdx +100 -8
  1538. package/docs/content/locales/hi-IN/extensions.mdx +113 -9
  1539. package/docs/content/locales/hi-IN/external-agents.mdx +119 -8
  1540. package/docs/content/locales/hi-IN/faq.mdx +96 -8
  1541. package/docs/content/locales/hi-IN/file-uploads.mdx +61 -4
  1542. package/docs/content/locales/hi-IN/frames.mdx +88 -8
  1543. package/docs/content/locales/hi-IN/getting-started.mdx +34 -4
  1544. package/docs/content/locales/hi-IN/harness-agents.mdx +77 -8
  1545. package/docs/content/locales/hi-IN/human-approval.mdx +51 -4
  1546. package/docs/content/locales/hi-IN/key-concepts.mdx +104 -8
  1547. package/docs/content/locales/hi-IN/local-file-mode.mdx +58 -4
  1548. package/docs/content/locales/hi-IN/mcp-apps.mdx +120 -10
  1549. package/docs/content/locales/hi-IN/mcp-clients.mdx +133 -8
  1550. package/docs/content/locales/hi-IN/mcp-protocol.mdx +105 -8
  1551. package/docs/content/locales/hi-IN/messaging.mdx +115 -8
  1552. package/docs/content/locales/hi-IN/migration-workbench.mdx +45 -4
  1553. package/docs/content/locales/hi-IN/multi-app-workspace.mdx +91 -8
  1554. package/docs/content/locales/hi-IN/multi-tenancy.mdx +80 -8
  1555. package/docs/content/locales/hi-IN/native-chat-ui.mdx +106 -8
  1556. package/docs/content/locales/hi-IN/notifications.mdx +135 -8
  1557. package/docs/content/locales/hi-IN/observability.mdx +102 -8
  1558. package/docs/content/locales/hi-IN/observational-memory.mdx +89 -8
  1559. package/docs/content/locales/hi-IN/onboarding.mdx +45 -4
  1560. package/docs/content/locales/hi-IN/plan-plugin.mdx +99 -8
  1561. package/docs/content/locales/hi-IN/pr-visual-recap.mdx +126 -8
  1562. package/docs/content/locales/hi-IN/processors.mdx +41 -4
  1563. package/docs/content/locales/hi-IN/progress.mdx +46 -4
  1564. package/docs/content/locales/hi-IN/pure-agent-apps.mdx +48 -4
  1565. package/docs/content/locales/hi-IN/real-time-collaboration.mdx +106 -8
  1566. package/docs/content/locales/hi-IN/recurring-jobs.mdx +59 -4
  1567. package/docs/content/locales/hi-IN/routing.mdx +44 -5
  1568. package/docs/content/locales/hi-IN/sandbox-adapters.mdx +43 -4
  1569. package/docs/content/locales/hi-IN/security.mdx +78 -8
  1570. package/docs/content/locales/hi-IN/server.mdx +169 -12
  1571. package/docs/content/locales/hi-IN/sharing.mdx +45 -4
  1572. package/docs/content/locales/hi-IN/skills-guide.mdx +118 -9
  1573. package/docs/content/locales/hi-IN/template-analytics.mdx +46 -4
  1574. package/docs/content/locales/hi-IN/template-assets.mdx +62 -4
  1575. package/docs/content/locales/hi-IN/template-brain.mdx +69 -4
  1576. package/docs/content/locales/hi-IN/template-calendar.mdx +62 -4
  1577. package/docs/content/locales/hi-IN/template-chat.mdx +59 -4
  1578. package/docs/content/locales/hi-IN/template-clips.mdx +52 -4
  1579. package/docs/content/locales/hi-IN/template-content.mdx +62 -4
  1580. package/docs/content/locales/hi-IN/template-design.mdx +58 -4
  1581. package/docs/content/locales/hi-IN/template-dispatch.mdx +57 -4
  1582. package/docs/content/locales/hi-IN/template-forms.mdx +64 -4
  1583. package/docs/content/locales/hi-IN/template-mail.mdx +64 -4
  1584. package/docs/content/locales/hi-IN/template-plan.mdx +61 -4
  1585. package/docs/content/locales/hi-IN/template-slides.mdx +49 -4
  1586. package/docs/content/locales/hi-IN/template-videos.mdx +53 -4
  1587. package/docs/content/locales/hi-IN/tracking.mdx +54 -4
  1588. package/docs/content/locales/hi-IN/using-your-agent.mdx +51 -4
  1589. package/docs/content/locales/hi-IN/voice-input.mdx +43 -4
  1590. package/docs/content/locales/hi-IN/what-is-agent-native.mdx +97 -8
  1591. package/docs/content/locales/hi-IN/workspace-connections.mdx +128 -8
  1592. package/docs/content/locales/hi-IN/workspace-management.mdx +50 -4
  1593. package/docs/content/locales/hi-IN/workspace.mdx +111 -8
  1594. package/docs/content/locales/hi-IN/writing-agent-instructions.mdx +40 -4
  1595. package/docs/content/locales/ja-JP/a2a-protocol.mdx +97 -9
  1596. package/docs/content/locales/ja-JP/actions.mdx +67 -4
  1597. package/docs/content/locales/ja-JP/agent-mentions.mdx +68 -4
  1598. package/docs/content/locales/ja-JP/agent-surfaces.mdx +116 -8
  1599. package/docs/content/locales/ja-JP/agent-teams.mdx +172 -12
  1600. package/docs/content/locales/ja-JP/agent-web-surfaces.mdx +51 -4
  1601. package/docs/content/locales/ja-JP/authentication.mdx +122 -8
  1602. package/docs/content/locales/ja-JP/automations.mdx +110 -8
  1603. package/docs/content/locales/ja-JP/blueprint-installer.mdx +44 -4
  1604. package/docs/content/locales/ja-JP/cli-adapters.mdx +44 -4
  1605. package/docs/content/locales/ja-JP/client.mdx +79 -8
  1606. package/docs/content/locales/ja-JP/cloneable-saas.mdx +85 -8
  1607. package/docs/content/locales/ja-JP/code-agents-ui.mdx +100 -8
  1608. package/docs/content/locales/ja-JP/components.mdx +116 -8
  1609. package/docs/content/locales/ja-JP/context-awareness.mdx +100 -8
  1610. package/docs/content/locales/ja-JP/creating-templates.mdx +51 -4
  1611. package/docs/content/locales/ja-JP/cross-app-sso.mdx +109 -8
  1612. package/docs/content/locales/ja-JP/database.mdx +52 -4
  1613. package/docs/content/locales/ja-JP/deployment.mdx +103 -8
  1614. package/docs/content/locales/ja-JP/dispatch.mdx +134 -8
  1615. package/docs/content/locales/ja-JP/drop-in-agent.mdx +63 -4
  1616. package/docs/content/locales/ja-JP/durable-resume.mdx +47 -4
  1617. package/docs/content/locales/ja-JP/embedding-sdk.mdx +85 -8
  1618. package/docs/content/locales/ja-JP/evals.mdx +102 -8
  1619. package/docs/content/locales/ja-JP/extensions.mdx +111 -9
  1620. package/docs/content/locales/ja-JP/external-agents.mdx +119 -8
  1621. package/docs/content/locales/ja-JP/faq.mdx +98 -8
  1622. package/docs/content/locales/ja-JP/file-uploads.mdx +61 -4
  1623. package/docs/content/locales/ja-JP/frames.mdx +88 -8
  1624. package/docs/content/locales/ja-JP/getting-started.mdx +34 -4
  1625. package/docs/content/locales/ja-JP/harness-agents.mdx +79 -8
  1626. package/docs/content/locales/ja-JP/human-approval.mdx +50 -4
  1627. package/docs/content/locales/ja-JP/key-concepts.mdx +105 -8
  1628. package/docs/content/locales/ja-JP/local-file-mode.mdx +58 -4
  1629. package/docs/content/locales/ja-JP/mcp-apps.mdx +119 -10
  1630. package/docs/content/locales/ja-JP/mcp-clients.mdx +134 -8
  1631. package/docs/content/locales/ja-JP/mcp-protocol.mdx +105 -8
  1632. package/docs/content/locales/ja-JP/messaging.mdx +115 -8
  1633. package/docs/content/locales/ja-JP/migration-workbench.mdx +47 -4
  1634. package/docs/content/locales/ja-JP/multi-app-workspace.mdx +91 -8
  1635. package/docs/content/locales/ja-JP/multi-tenancy.mdx +80 -8
  1636. package/docs/content/locales/ja-JP/native-chat-ui.mdx +104 -8
  1637. package/docs/content/locales/ja-JP/notifications.mdx +135 -8
  1638. package/docs/content/locales/ja-JP/observability.mdx +104 -8
  1639. package/docs/content/locales/ja-JP/observational-memory.mdx +89 -8
  1640. package/docs/content/locales/ja-JP/onboarding.mdx +45 -4
  1641. package/docs/content/locales/ja-JP/plan-plugin.mdx +99 -8
  1642. package/docs/content/locales/ja-JP/pr-visual-recap.mdx +123 -8
  1643. package/docs/content/locales/ja-JP/processors.mdx +39 -4
  1644. package/docs/content/locales/ja-JP/progress.mdx +46 -4
  1645. package/docs/content/locales/ja-JP/pure-agent-apps.mdx +48 -4
  1646. package/docs/content/locales/ja-JP/real-time-collaboration.mdx +106 -8
  1647. package/docs/content/locales/ja-JP/recurring-jobs.mdx +59 -4
  1648. package/docs/content/locales/ja-JP/routing.mdx +44 -5
  1649. package/docs/content/locales/ja-JP/sandbox-adapters.mdx +43 -4
  1650. package/docs/content/locales/ja-JP/security.mdx +82 -8
  1651. package/docs/content/locales/ja-JP/server.mdx +171 -12
  1652. package/docs/content/locales/ja-JP/sharing.mdx +45 -4
  1653. package/docs/content/locales/ja-JP/skills-guide.mdx +118 -9
  1654. package/docs/content/locales/ja-JP/template-analytics.mdx +46 -4
  1655. package/docs/content/locales/ja-JP/template-assets.mdx +64 -4
  1656. package/docs/content/locales/ja-JP/template-brain.mdx +67 -4
  1657. package/docs/content/locales/ja-JP/template-calendar.mdx +62 -4
  1658. package/docs/content/locales/ja-JP/template-chat.mdx +61 -4
  1659. package/docs/content/locales/ja-JP/template-clips.mdx +52 -4
  1660. package/docs/content/locales/ja-JP/template-content.mdx +62 -4
  1661. package/docs/content/locales/ja-JP/template-design.mdx +60 -4
  1662. package/docs/content/locales/ja-JP/template-dispatch.mdx +57 -4
  1663. package/docs/content/locales/ja-JP/template-forms.mdx +62 -4
  1664. package/docs/content/locales/ja-JP/template-mail.mdx +62 -4
  1665. package/docs/content/locales/ja-JP/template-plan.mdx +63 -4
  1666. package/docs/content/locales/ja-JP/template-slides.mdx +49 -4
  1667. package/docs/content/locales/ja-JP/template-videos.mdx +53 -4
  1668. package/docs/content/locales/ja-JP/tracking.mdx +54 -4
  1669. package/docs/content/locales/ja-JP/using-your-agent.mdx +51 -4
  1670. package/docs/content/locales/ja-JP/voice-input.mdx +43 -4
  1671. package/docs/content/locales/ja-JP/what-is-agent-native.mdx +96 -8
  1672. package/docs/content/locales/ja-JP/workspace-connections.mdx +128 -8
  1673. package/docs/content/locales/ja-JP/workspace-management.mdx +50 -4
  1674. package/docs/content/locales/ja-JP/workspace.mdx +111 -8
  1675. package/docs/content/locales/ja-JP/writing-agent-instructions.mdx +44 -4
  1676. package/docs/content/locales/ko-KR/a2a-protocol.mdx +97 -9
  1677. package/docs/content/locales/ko-KR/actions.mdx +63 -4
  1678. package/docs/content/locales/ko-KR/agent-mentions.mdx +68 -4
  1679. package/docs/content/locales/ko-KR/agent-surfaces.mdx +113 -8
  1680. package/docs/content/locales/ko-KR/agent-teams.mdx +171 -12
  1681. package/docs/content/locales/ko-KR/agent-web-surfaces.mdx +51 -4
  1682. package/docs/content/locales/ko-KR/authentication.mdx +122 -8
  1683. package/docs/content/locales/ko-KR/automations.mdx +110 -8
  1684. package/docs/content/locales/ko-KR/blueprint-installer.mdx +42 -4
  1685. package/docs/content/locales/ko-KR/cli-adapters.mdx +44 -4
  1686. package/docs/content/locales/ko-KR/client.mdx +79 -8
  1687. package/docs/content/locales/ko-KR/cloneable-saas.mdx +85 -8
  1688. package/docs/content/locales/ko-KR/code-agents-ui.mdx +96 -8
  1689. package/docs/content/locales/ko-KR/components.mdx +112 -8
  1690. package/docs/content/locales/ko-KR/context-awareness.mdx +96 -8
  1691. package/docs/content/locales/ko-KR/creating-templates.mdx +51 -4
  1692. package/docs/content/locales/ko-KR/cross-app-sso.mdx +109 -8
  1693. package/docs/content/locales/ko-KR/database.mdx +52 -4
  1694. package/docs/content/locales/ko-KR/deployment.mdx +103 -8
  1695. package/docs/content/locales/ko-KR/dispatch.mdx +132 -8
  1696. package/docs/content/locales/ko-KR/drop-in-agent.mdx +63 -4
  1697. package/docs/content/locales/ko-KR/durable-resume.mdx +47 -4
  1698. package/docs/content/locales/ko-KR/embedding-sdk.mdx +81 -8
  1699. package/docs/content/locales/ko-KR/evals.mdx +102 -8
  1700. package/docs/content/locales/ko-KR/extensions.mdx +111 -9
  1701. package/docs/content/locales/ko-KR/external-agents.mdx +119 -8
  1702. package/docs/content/locales/ko-KR/faq.mdx +96 -8
  1703. package/docs/content/locales/ko-KR/file-uploads.mdx +61 -4
  1704. package/docs/content/locales/ko-KR/frames.mdx +86 -8
  1705. package/docs/content/locales/ko-KR/getting-started.mdx +34 -4
  1706. package/docs/content/locales/ko-KR/harness-agents.mdx +77 -8
  1707. package/docs/content/locales/ko-KR/human-approval.mdx +50 -4
  1708. package/docs/content/locales/ko-KR/key-concepts.mdx +104 -8
  1709. package/docs/content/locales/ko-KR/local-file-mode.mdx +56 -4
  1710. package/docs/content/locales/ko-KR/mcp-apps.mdx +120 -10
  1711. package/docs/content/locales/ko-KR/mcp-clients.mdx +133 -8
  1712. package/docs/content/locales/ko-KR/mcp-protocol.mdx +105 -8
  1713. package/docs/content/locales/ko-KR/messaging.mdx +115 -8
  1714. package/docs/content/locales/ko-KR/migration-workbench.mdx +45 -4
  1715. package/docs/content/locales/ko-KR/multi-app-workspace.mdx +91 -8
  1716. package/docs/content/locales/ko-KR/multi-tenancy.mdx +80 -8
  1717. package/docs/content/locales/ko-KR/native-chat-ui.mdx +104 -8
  1718. package/docs/content/locales/ko-KR/notifications.mdx +135 -8
  1719. package/docs/content/locales/ko-KR/observability.mdx +102 -8
  1720. package/docs/content/locales/ko-KR/observational-memory.mdx +87 -8
  1721. package/docs/content/locales/ko-KR/onboarding.mdx +44 -4
  1722. package/docs/content/locales/ko-KR/plan-plugin.mdx +99 -8
  1723. package/docs/content/locales/ko-KR/pr-visual-recap.mdx +125 -8
  1724. package/docs/content/locales/ko-KR/processors.mdx +39 -4
  1725. package/docs/content/locales/ko-KR/progress.mdx +46 -4
  1726. package/docs/content/locales/ko-KR/pure-agent-apps.mdx +46 -4
  1727. package/docs/content/locales/ko-KR/real-time-collaboration.mdx +104 -8
  1728. package/docs/content/locales/ko-KR/recurring-jobs.mdx +59 -4
  1729. package/docs/content/locales/ko-KR/routing.mdx +44 -5
  1730. package/docs/content/locales/ko-KR/sandbox-adapters.mdx +41 -4
  1731. package/docs/content/locales/ko-KR/security.mdx +78 -8
  1732. package/docs/content/locales/ko-KR/server.mdx +171 -12
  1733. package/docs/content/locales/ko-KR/sharing.mdx +45 -4
  1734. package/docs/content/locales/ko-KR/skills-guide.mdx +118 -9
  1735. package/docs/content/locales/ko-KR/template-analytics.mdx +46 -4
  1736. package/docs/content/locales/ko-KR/template-assets.mdx +62 -4
  1737. package/docs/content/locales/ko-KR/template-brain.mdx +65 -4
  1738. package/docs/content/locales/ko-KR/template-calendar.mdx +60 -4
  1739. package/docs/content/locales/ko-KR/template-chat.mdx +59 -4
  1740. package/docs/content/locales/ko-KR/template-clips.mdx +52 -4
  1741. package/docs/content/locales/ko-KR/template-content.mdx +60 -4
  1742. package/docs/content/locales/ko-KR/template-design.mdx +58 -4
  1743. package/docs/content/locales/ko-KR/template-dispatch.mdx +57 -4
  1744. package/docs/content/locales/ko-KR/template-forms.mdx +60 -4
  1745. package/docs/content/locales/ko-KR/template-mail.mdx +60 -4
  1746. package/docs/content/locales/ko-KR/template-plan.mdx +57 -4
  1747. package/docs/content/locales/ko-KR/template-slides.mdx +49 -4
  1748. package/docs/content/locales/ko-KR/template-videos.mdx +53 -4
  1749. package/docs/content/locales/ko-KR/tracking.mdx +54 -4
  1750. package/docs/content/locales/ko-KR/using-your-agent.mdx +51 -4
  1751. package/docs/content/locales/ko-KR/voice-input.mdx +43 -4
  1752. package/docs/content/locales/ko-KR/what-is-agent-native.mdx +95 -8
  1753. package/docs/content/locales/ko-KR/workspace-connections.mdx +128 -8
  1754. package/docs/content/locales/ko-KR/workspace-management.mdx +50 -4
  1755. package/docs/content/locales/ko-KR/workspace.mdx +111 -8
  1756. package/docs/content/locales/ko-KR/writing-agent-instructions.mdx +38 -4
  1757. package/docs/content/locales/pt-BR/a2a-protocol.mdx +99 -9
  1758. package/docs/content/locales/pt-BR/actions.mdx +67 -4
  1759. package/docs/content/locales/pt-BR/agent-mentions.mdx +68 -4
  1760. package/docs/content/locales/pt-BR/agent-surfaces.mdx +116 -8
  1761. package/docs/content/locales/pt-BR/agent-teams.mdx +172 -12
  1762. package/docs/content/locales/pt-BR/agent-web-surfaces.mdx +51 -4
  1763. package/docs/content/locales/pt-BR/authentication.mdx +122 -8
  1764. package/docs/content/locales/pt-BR/automations.mdx +110 -8
  1765. package/docs/content/locales/pt-BR/blueprint-installer.mdx +42 -4
  1766. package/docs/content/locales/pt-BR/cli-adapters.mdx +44 -4
  1767. package/docs/content/locales/pt-BR/client.mdx +81 -8
  1768. package/docs/content/locales/pt-BR/cloneable-saas.mdx +85 -8
  1769. package/docs/content/locales/pt-BR/code-agents-ui.mdx +98 -8
  1770. package/docs/content/locales/pt-BR/components.mdx +118 -8
  1771. package/docs/content/locales/pt-BR/context-awareness.mdx +100 -8
  1772. package/docs/content/locales/pt-BR/creating-templates.mdx +51 -4
  1773. package/docs/content/locales/pt-BR/cross-app-sso.mdx +109 -8
  1774. package/docs/content/locales/pt-BR/database.mdx +52 -4
  1775. package/docs/content/locales/pt-BR/deployment.mdx +103 -8
  1776. package/docs/content/locales/pt-BR/dispatch.mdx +134 -8
  1777. package/docs/content/locales/pt-BR/drop-in-agent.mdx +63 -4
  1778. package/docs/content/locales/pt-BR/durable-resume.mdx +47 -4
  1779. package/docs/content/locales/pt-BR/embedding-sdk.mdx +87 -8
  1780. package/docs/content/locales/pt-BR/evals.mdx +102 -8
  1781. package/docs/content/locales/pt-BR/extensions.mdx +113 -9
  1782. package/docs/content/locales/pt-BR/external-agents.mdx +119 -8
  1783. package/docs/content/locales/pt-BR/faq.mdx +98 -8
  1784. package/docs/content/locales/pt-BR/file-uploads.mdx +61 -4
  1785. package/docs/content/locales/pt-BR/frames.mdx +88 -8
  1786. package/docs/content/locales/pt-BR/getting-started.mdx +34 -4
  1787. package/docs/content/locales/pt-BR/harness-agents.mdx +79 -8
  1788. package/docs/content/locales/pt-BR/human-approval.mdx +50 -4
  1789. package/docs/content/locales/pt-BR/key-concepts.mdx +104 -8
  1790. package/docs/content/locales/pt-BR/local-file-mode.mdx +60 -4
  1791. package/docs/content/locales/pt-BR/mcp-apps.mdx +120 -10
  1792. package/docs/content/locales/pt-BR/mcp-clients.mdx +133 -8
  1793. package/docs/content/locales/pt-BR/mcp-protocol.mdx +105 -8
  1794. package/docs/content/locales/pt-BR/messaging.mdx +115 -8
  1795. package/docs/content/locales/pt-BR/migration-workbench.mdx +47 -4
  1796. package/docs/content/locales/pt-BR/multi-app-workspace.mdx +91 -8
  1797. package/docs/content/locales/pt-BR/multi-tenancy.mdx +80 -8
  1798. package/docs/content/locales/pt-BR/native-chat-ui.mdx +108 -8
  1799. package/docs/content/locales/pt-BR/notifications.mdx +135 -8
  1800. package/docs/content/locales/pt-BR/observability.mdx +104 -8
  1801. package/docs/content/locales/pt-BR/observational-memory.mdx +92 -8
  1802. package/docs/content/locales/pt-BR/onboarding.mdx +45 -4
  1803. package/docs/content/locales/pt-BR/plan-plugin.mdx +99 -8
  1804. package/docs/content/locales/pt-BR/pr-visual-recap.mdx +125 -8
  1805. package/docs/content/locales/pt-BR/processors.mdx +41 -4
  1806. package/docs/content/locales/pt-BR/progress.mdx +46 -4
  1807. package/docs/content/locales/pt-BR/pure-agent-apps.mdx +48 -4
  1808. package/docs/content/locales/pt-BR/real-time-collaboration.mdx +107 -8
  1809. package/docs/content/locales/pt-BR/recurring-jobs.mdx +59 -4
  1810. package/docs/content/locales/pt-BR/routing.mdx +44 -5
  1811. package/docs/content/locales/pt-BR/sandbox-adapters.mdx +43 -4
  1812. package/docs/content/locales/pt-BR/security.mdx +82 -8
  1813. package/docs/content/locales/pt-BR/server.mdx +173 -12
  1814. package/docs/content/locales/pt-BR/sharing.mdx +45 -4
  1815. package/docs/content/locales/pt-BR/skills-guide.mdx +118 -9
  1816. package/docs/content/locales/pt-BR/template-analytics.mdx +46 -4
  1817. package/docs/content/locales/pt-BR/template-assets.mdx +64 -4
  1818. package/docs/content/locales/pt-BR/template-brain.mdx +69 -4
  1819. package/docs/content/locales/pt-BR/template-calendar.mdx +62 -4
  1820. package/docs/content/locales/pt-BR/template-chat.mdx +61 -4
  1821. package/docs/content/locales/pt-BR/template-clips.mdx +52 -4
  1822. package/docs/content/locales/pt-BR/template-content.mdx +64 -4
  1823. package/docs/content/locales/pt-BR/template-design.mdx +58 -4
  1824. package/docs/content/locales/pt-BR/template-dispatch.mdx +57 -4
  1825. package/docs/content/locales/pt-BR/template-forms.mdx +64 -4
  1826. package/docs/content/locales/pt-BR/template-mail.mdx +60 -4
  1827. package/docs/content/locales/pt-BR/template-plan.mdx +63 -4
  1828. package/docs/content/locales/pt-BR/template-slides.mdx +49 -4
  1829. package/docs/content/locales/pt-BR/template-videos.mdx +53 -4
  1830. package/docs/content/locales/pt-BR/tracking.mdx +54 -4
  1831. package/docs/content/locales/pt-BR/using-your-agent.mdx +51 -4
  1832. package/docs/content/locales/pt-BR/voice-input.mdx +43 -4
  1833. package/docs/content/locales/pt-BR/what-is-agent-native.mdx +101 -8
  1834. package/docs/content/locales/pt-BR/workspace-connections.mdx +128 -8
  1835. package/docs/content/locales/pt-BR/workspace-management.mdx +50 -4
  1836. package/docs/content/locales/pt-BR/workspace.mdx +111 -8
  1837. package/docs/content/locales/pt-BR/writing-agent-instructions.mdx +46 -4
  1838. package/docs/content/locales/zh-CN/a2a-protocol.mdx +97 -9
  1839. package/docs/content/locales/zh-CN/actions.mdx +65 -4
  1840. package/docs/content/locales/zh-CN/agent-mentions.mdx +68 -4
  1841. package/docs/content/locales/zh-CN/agent-surfaces.mdx +108 -8
  1842. package/docs/content/locales/zh-CN/agent-teams.mdx +171 -12
  1843. package/docs/content/locales/zh-CN/agent-web-surfaces.mdx +51 -4
  1844. package/docs/content/locales/zh-CN/authentication.mdx +122 -8
  1845. package/docs/content/locales/zh-CN/automations.mdx +110 -8
  1846. package/docs/content/locales/zh-CN/blueprint-installer.mdx +42 -4
  1847. package/docs/content/locales/zh-CN/cli-adapters.mdx +44 -4
  1848. package/docs/content/locales/zh-CN/client.mdx +79 -8
  1849. package/docs/content/locales/zh-CN/cloneable-saas.mdx +83 -8
  1850. package/docs/content/locales/zh-CN/code-agents-ui.mdx +94 -8
  1851. package/docs/content/locales/zh-CN/components.mdx +112 -8
  1852. package/docs/content/locales/zh-CN/context-awareness.mdx +96 -8
  1853. package/docs/content/locales/zh-CN/creating-templates.mdx +51 -4
  1854. package/docs/content/locales/zh-CN/cross-app-sso.mdx +107 -8
  1855. package/docs/content/locales/zh-CN/database.mdx +52 -4
  1856. package/docs/content/locales/zh-CN/deployment.mdx +103 -8
  1857. package/docs/content/locales/zh-CN/dispatch.mdx +134 -8
  1858. package/docs/content/locales/zh-CN/drop-in-agent.mdx +63 -4
  1859. package/docs/content/locales/zh-CN/durable-resume.mdx +45 -4
  1860. package/docs/content/locales/zh-CN/embedding-sdk.mdx +81 -8
  1861. package/docs/content/locales/zh-CN/evals.mdx +100 -8
  1862. package/docs/content/locales/zh-CN/extensions.mdx +111 -9
  1863. package/docs/content/locales/zh-CN/external-agents.mdx +119 -8
  1864. package/docs/content/locales/zh-CN/faq.mdx +96 -8
  1865. package/docs/content/locales/zh-CN/file-uploads.mdx +61 -4
  1866. package/docs/content/locales/zh-CN/frames.mdx +86 -8
  1867. package/docs/content/locales/zh-CN/getting-started.mdx +34 -4
  1868. package/docs/content/locales/zh-CN/harness-agents.mdx +79 -8
  1869. package/docs/content/locales/zh-CN/human-approval.mdx +50 -4
  1870. package/docs/content/locales/zh-CN/key-concepts.mdx +100 -8
  1871. package/docs/content/locales/zh-CN/local-file-mode.mdx +56 -4
  1872. package/docs/content/locales/zh-CN/mcp-apps.mdx +120 -10
  1873. package/docs/content/locales/zh-CN/mcp-clients.mdx +133 -8
  1874. package/docs/content/locales/zh-CN/mcp-protocol.mdx +105 -8
  1875. package/docs/content/locales/zh-CN/messaging.mdx +115 -8
  1876. package/docs/content/locales/zh-CN/migration-workbench.mdx +45 -4
  1877. package/docs/content/locales/zh-CN/multi-app-workspace.mdx +91 -8
  1878. package/docs/content/locales/zh-CN/multi-tenancy.mdx +80 -8
  1879. package/docs/content/locales/zh-CN/native-chat-ui.mdx +104 -8
  1880. package/docs/content/locales/zh-CN/notifications.mdx +135 -8
  1881. package/docs/content/locales/zh-CN/observability.mdx +102 -8
  1882. package/docs/content/locales/zh-CN/observational-memory.mdx +85 -8
  1883. package/docs/content/locales/zh-CN/onboarding.mdx +44 -4
  1884. package/docs/content/locales/zh-CN/plan-plugin.mdx +97 -8
  1885. package/docs/content/locales/zh-CN/pr-visual-recap.mdx +123 -8
  1886. package/docs/content/locales/zh-CN/processors.mdx +39 -4
  1887. package/docs/content/locales/zh-CN/progress.mdx +46 -4
  1888. package/docs/content/locales/zh-CN/pure-agent-apps.mdx +46 -4
  1889. package/docs/content/locales/zh-CN/real-time-collaboration.mdx +98 -8
  1890. package/docs/content/locales/zh-CN/recurring-jobs.mdx +59 -4
  1891. package/docs/content/locales/zh-CN/routing.mdx +42 -5
  1892. package/docs/content/locales/zh-CN/sandbox-adapters.mdx +41 -4
  1893. package/docs/content/locales/zh-CN/security.mdx +78 -8
  1894. package/docs/content/locales/zh-CN/server.mdx +169 -12
  1895. package/docs/content/locales/zh-CN/sharing.mdx +45 -4
  1896. package/docs/content/locales/zh-CN/skills-guide.mdx +118 -9
  1897. package/docs/content/locales/zh-CN/template-analytics.mdx +46 -4
  1898. package/docs/content/locales/zh-CN/template-assets.mdx +58 -4
  1899. package/docs/content/locales/zh-CN/template-brain.mdx +65 -4
  1900. package/docs/content/locales/zh-CN/template-calendar.mdx +58 -4
  1901. package/docs/content/locales/zh-CN/template-chat.mdx +57 -4
  1902. package/docs/content/locales/zh-CN/template-clips.mdx +52 -4
  1903. package/docs/content/locales/zh-CN/template-content.mdx +58 -4
  1904. package/docs/content/locales/zh-CN/template-design.mdx +58 -4
  1905. package/docs/content/locales/zh-CN/template-dispatch.mdx +57 -4
  1906. package/docs/content/locales/zh-CN/template-forms.mdx +58 -4
  1907. package/docs/content/locales/zh-CN/template-mail.mdx +60 -4
  1908. package/docs/content/locales/zh-CN/template-plan.mdx +57 -4
  1909. package/docs/content/locales/zh-CN/template-slides.mdx +49 -4
  1910. package/docs/content/locales/zh-CN/template-videos.mdx +51 -4
  1911. package/docs/content/locales/zh-CN/tracking.mdx +54 -4
  1912. package/docs/content/locales/zh-CN/using-your-agent.mdx +51 -4
  1913. package/docs/content/locales/zh-CN/voice-input.mdx +43 -4
  1914. package/docs/content/locales/zh-CN/what-is-agent-native.mdx +94 -8
  1915. package/docs/content/locales/zh-CN/workspace-connections.mdx +126 -8
  1916. package/docs/content/locales/zh-CN/workspace-management.mdx +50 -4
  1917. package/docs/content/locales/zh-CN/workspace.mdx +110 -8
  1918. package/docs/content/locales/zh-CN/writing-agent-instructions.mdx +38 -4
  1919. package/docs/content/locales/zh-TW/a2a-protocol.mdx +97 -9
  1920. package/docs/content/locales/zh-TW/actions.mdx +63 -4
  1921. package/docs/content/locales/zh-TW/agent-mentions.mdx +68 -4
  1922. package/docs/content/locales/zh-TW/agent-surfaces.mdx +108 -8
  1923. package/docs/content/locales/zh-TW/agent-teams.mdx +171 -12
  1924. package/docs/content/locales/zh-TW/agent-web-surfaces.mdx +51 -4
  1925. package/docs/content/locales/zh-TW/authentication.mdx +122 -8
  1926. package/docs/content/locales/zh-TW/automations.mdx +110 -8
  1927. package/docs/content/locales/zh-TW/blueprint-installer.mdx +42 -4
  1928. package/docs/content/locales/zh-TW/cli-adapters.mdx +44 -4
  1929. package/docs/content/locales/zh-TW/client.mdx +79 -8
  1930. package/docs/content/locales/zh-TW/cloneable-saas.mdx +83 -8
  1931. package/docs/content/locales/zh-TW/code-agents-ui.mdx +94 -8
  1932. package/docs/content/locales/zh-TW/components.mdx +112 -8
  1933. package/docs/content/locales/zh-TW/context-awareness.mdx +96 -8
  1934. package/docs/content/locales/zh-TW/creating-templates.mdx +51 -4
  1935. package/docs/content/locales/zh-TW/cross-app-sso.mdx +107 -8
  1936. package/docs/content/locales/zh-TW/database.mdx +52 -4
  1937. package/docs/content/locales/zh-TW/deployment.mdx +103 -8
  1938. package/docs/content/locales/zh-TW/dispatch.mdx +134 -8
  1939. package/docs/content/locales/zh-TW/drop-in-agent.mdx +63 -4
  1940. package/docs/content/locales/zh-TW/durable-background-runs.mdx +88 -8
  1941. package/docs/content/locales/zh-TW/durable-resume.mdx +45 -4
  1942. package/docs/content/locales/zh-TW/embedding-sdk.mdx +83 -8
  1943. package/docs/content/locales/zh-TW/evals.mdx +100 -8
  1944. package/docs/content/locales/zh-TW/extensions.mdx +111 -9
  1945. package/docs/content/locales/zh-TW/external-agents.mdx +119 -8
  1946. package/docs/content/locales/zh-TW/faq.mdx +96 -8
  1947. package/docs/content/locales/zh-TW/file-uploads.mdx +61 -4
  1948. package/docs/content/locales/zh-TW/frames.mdx +86 -8
  1949. package/docs/content/locales/zh-TW/getting-started.mdx +34 -4
  1950. package/docs/content/locales/zh-TW/harness-agents.mdx +79 -8
  1951. package/docs/content/locales/zh-TW/human-approval.mdx +50 -4
  1952. package/docs/content/locales/zh-TW/key-concepts.mdx +100 -8
  1953. package/docs/content/locales/zh-TW/local-file-mode.mdx +56 -4
  1954. package/docs/content/locales/zh-TW/mcp-apps.mdx +120 -10
  1955. package/docs/content/locales/zh-TW/mcp-clients.mdx +133 -8
  1956. package/docs/content/locales/zh-TW/mcp-protocol.mdx +105 -8
  1957. package/docs/content/locales/zh-TW/messaging.mdx +115 -8
  1958. package/docs/content/locales/zh-TW/migration-workbench.mdx +45 -4
  1959. package/docs/content/locales/zh-TW/multi-app-workspace.mdx +91 -8
  1960. package/docs/content/locales/zh-TW/multi-tenancy.mdx +80 -8
  1961. package/docs/content/locales/zh-TW/native-chat-ui.mdx +104 -8
  1962. package/docs/content/locales/zh-TW/notifications.mdx +135 -8
  1963. package/docs/content/locales/zh-TW/observability.mdx +102 -8
  1964. package/docs/content/locales/zh-TW/observational-memory.mdx +85 -8
  1965. package/docs/content/locales/zh-TW/onboarding.mdx +44 -4
  1966. package/docs/content/locales/zh-TW/plan-plugin.mdx +97 -8
  1967. package/docs/content/locales/zh-TW/pr-visual-recap.mdx +123 -8
  1968. package/docs/content/locales/zh-TW/processors.mdx +39 -4
  1969. package/docs/content/locales/zh-TW/progress.mdx +46 -4
  1970. package/docs/content/locales/zh-TW/pure-agent-apps.mdx +46 -4
  1971. package/docs/content/locales/zh-TW/real-time-collaboration.mdx +98 -8
  1972. package/docs/content/locales/zh-TW/recurring-jobs.mdx +59 -4
  1973. package/docs/content/locales/zh-TW/routing.mdx +42 -5
  1974. package/docs/content/locales/zh-TW/sandbox-adapters.mdx +41 -4
  1975. package/docs/content/locales/zh-TW/security.mdx +80 -8
  1976. package/docs/content/locales/zh-TW/server.mdx +169 -12
  1977. package/docs/content/locales/zh-TW/sharing.mdx +45 -4
  1978. package/docs/content/locales/zh-TW/skills-guide.mdx +118 -9
  1979. package/docs/content/locales/zh-TW/template-analytics.mdx +46 -4
  1980. package/docs/content/locales/zh-TW/template-assets.mdx +58 -4
  1981. package/docs/content/locales/zh-TW/template-brain.mdx +65 -4
  1982. package/docs/content/locales/zh-TW/template-calendar.mdx +58 -4
  1983. package/docs/content/locales/zh-TW/template-chat.mdx +59 -4
  1984. package/docs/content/locales/zh-TW/template-clips.mdx +52 -4
  1985. package/docs/content/locales/zh-TW/template-content.mdx +58 -4
  1986. package/docs/content/locales/zh-TW/template-design.mdx +58 -4
  1987. package/docs/content/locales/zh-TW/template-dispatch.mdx +57 -4
  1988. package/docs/content/locales/zh-TW/template-forms.mdx +58 -4
  1989. package/docs/content/locales/zh-TW/template-mail.mdx +60 -4
  1990. package/docs/content/locales/zh-TW/template-plan.mdx +57 -4
  1991. package/docs/content/locales/zh-TW/template-slides.mdx +49 -4
  1992. package/docs/content/locales/zh-TW/template-videos.mdx +51 -4
  1993. package/docs/content/locales/zh-TW/tracking.mdx +54 -4
  1994. package/docs/content/locales/zh-TW/using-your-agent.mdx +51 -4
  1995. package/docs/content/locales/zh-TW/voice-input.mdx +43 -4
  1996. package/docs/content/locales/zh-TW/what-is-agent-native.mdx +94 -8
  1997. package/docs/content/locales/zh-TW/workspace-connections.mdx +126 -8
  1998. package/docs/content/locales/zh-TW/workspace-management.mdx +50 -4
  1999. package/docs/content/locales/zh-TW/workspace.mdx +111 -8
  2000. package/docs/content/locales/zh-TW/writing-agent-instructions.mdx +38 -4
  2001. package/docs/content/mcp-apps.mdx +120 -10
  2002. package/docs/content/mcp-clients.mdx +161 -8
  2003. package/docs/content/mcp-protocol.mdx +105 -8
  2004. package/docs/content/messaging.mdx +115 -8
  2005. package/docs/content/migration-workbench.mdx +45 -4
  2006. package/docs/content/multi-app-workspace.mdx +91 -8
  2007. package/docs/content/multi-tenancy.mdx +80 -8
  2008. package/docs/content/native-chat-ui.mdx +106 -8
  2009. package/docs/content/notifications.mdx +135 -8
  2010. package/docs/content/observability.mdx +102 -8
  2011. package/docs/content/observational-memory.mdx +89 -8
  2012. package/docs/content/onboarding.mdx +45 -4
  2013. package/docs/content/plan-plugin.mdx +99 -8
  2014. package/docs/content/pr-visual-recap.mdx +125 -8
  2015. package/docs/content/processors.mdx +41 -4
  2016. package/docs/content/progress.mdx +46 -4
  2017. package/docs/content/pure-agent-apps.mdx +46 -4
  2018. package/docs/content/real-time-collaboration.mdx +104 -8
  2019. package/docs/content/recurring-jobs.mdx +59 -4
  2020. package/docs/content/routing.mdx +44 -5
  2021. package/docs/content/sandbox-adapters.mdx +43 -4
  2022. package/docs/content/security.mdx +80 -8
  2023. package/docs/content/server.mdx +173 -12
  2024. package/docs/content/sharing.mdx +45 -4
  2025. package/docs/content/skills-guide.mdx +118 -9
  2026. package/docs/content/template-analytics.mdx +46 -4
  2027. package/docs/content/template-assets.mdx +60 -4
  2028. package/docs/content/template-brain.mdx +67 -4
  2029. package/docs/content/template-calendar.mdx +62 -4
  2030. package/docs/content/template-chat.mdx +61 -4
  2031. package/docs/content/template-clips.mdx +52 -4
  2032. package/docs/content/template-content.mdx +60 -4
  2033. package/docs/content/template-design.mdx +58 -4
  2034. package/docs/content/template-dispatch.mdx +57 -4
  2035. package/docs/content/template-forms.mdx +62 -4
  2036. package/docs/content/template-mail.mdx +60 -4
  2037. package/docs/content/template-plan.mdx +61 -4
  2038. package/docs/content/template-slides.mdx +49 -4
  2039. package/docs/content/template-videos.mdx +51 -4
  2040. package/docs/content/tracking.mdx +54 -4
  2041. package/docs/content/using-your-agent.mdx +51 -4
  2042. package/docs/content/voice-input.mdx +43 -4
  2043. package/docs/content/what-is-agent-native.mdx +188 -8
  2044. package/docs/content/workspace-connections.mdx +128 -8
  2045. package/docs/content/workspace-management.mdx +50 -4
  2046. package/docs/content/workspace.mdx +111 -8
  2047. package/docs/content/writing-agent-instructions.mdx +45 -4
  2048. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsPanel.js","sourceRoot":"","sources":["../../../src/client/settings/SettingsPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,aAAa,EACb,SAAS,EACT,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,cAAc,EACd,UAAU,EACV,QAAQ,EACR,SAAS,EACT,cAAc,EACd,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAc,EACZ,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,MAAM,GACP,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,GACf,MAAM,6BAA6B,CA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,IACb,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAC,2BAA2B,EAC1C,YAAY,EAAC,kBAAkB,GAC/B,GACc,CACnB,EAGD,KAAC,eAAe,IACd,IAAI,EAAE,KAAC,iBAAiB,IAAC,IAAI,EAAE,EAAE,GAAI,EACrC,KAAK,EAAC,cAAc,EACpB,QAAQ,EAAC,oDAAoD,EAC7D,IAAI,EAAE,WAAW,KAAK,cAAc,EACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,YAEtC,KAAC,QAAQ,IAAC,QAAQ,EAAE,IAAI,YACtB,KAAC,iBAAiB,KAAG,GACZ,GACK,EAGlB,KAAC,eAAe,IACd,IAAI,EAAE,KAAC,QAAQ,IAAC,IAAI,EAAE,EAAE,GAAI,EAC5B,KAAK,EAAC,OAAO,EACb,QAAQ,EAAC,0GAAqG,EAC9G,IAAI,EAAE,WAAW,KAAK,OAAO,EAC7B,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,YAE/B,KAAC,YAAY,KAAG,GACA,EAGlB,KAAC,eAAe,IACd,IAAI,EAAE,KAAC,iBAAiB,IAAC,IAAI,EAAE,EAAE,GAAI,EACrC,KAAK,EAAC,wBAAwB,EAC9B,QAAQ,EAAC,sDAAsD,EAC/D,IAAI,EAAE,WAAW,KAAK,KAAK,EAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,YAE7B,KAAC,aAAa,KAAG,GACD,IACd,CACP,CAAC;AACJ,CAAC","sourcesContent":["import * as SelectPrimitive from \"@radix-ui/react-select\";\nimport {\n IconChevronDown,\n IconChevronRight,\n IconCheck,\n IconExternalLink,\n IconBrain,\n IconBrowser,\n IconGitBranch,\n IconCloud,\n IconDatabase,\n IconShield,\n IconPlugConnected,\n IconTopologyRing2,\n IconLoader2,\n IconUpload,\n IconCoin,\n IconMail,\n IconKey,\n IconMicrophone,\n IconEyeOff,\n IconBolt,\n IconGauge,\n IconUserCircle,\n IconApps,\n} from \"@tabler/icons-react\";\nimport React, {\n Suspense,\n lazy,\n useState,\n useEffect,\n useCallback,\n useRef,\n} from \"react\";\n\nimport { PROVIDER_ENV_PLACEHOLDERS } from \"../../agent/engine/provider-env-vars.js\";\nimport { saveAgentEngineProviderSettings } from \"../agent-engine-key.js\";\nimport { agentNativePath } from \"../api-path.js\";\nimport { BuilderBMark } from \"../builder-mark.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\nimport { callAction } from \"../use-action.js\";\nimport { uploadAvatar, useAvatarUrl } from \"../use-avatar.js\";\nimport { useSession } from \"../use-session.js\";\nimport { AgentsSection } from \"./AgentsSection.js\";\nimport { AutomationsSection } from \"./AutomationsSection.js\";\nimport { DemoModeSection } from \"./DemoModeSection.js\";\nimport { SecretsSection } from \"./SecretsSection.js\";\nimport { SettingsSection } from \"./SettingsSection.js\";\nimport { UsageSection } from \"./UsageSection.js\";\nimport {\n type BuilderConnectFlow,\n useBuilderConnectFlow,\n useBuilderStatus,\n} from \"./useBuilderStatus.js\";\nimport { VoiceTranscriptionSection } from \"./VoiceTranscriptionSection.js\";\n\nconst IntegrationsPanel = lazy(() =>\n import(\"../integrations/IntegrationsPanel.js\").then((m) => ({\n default: m.IntegrationsPanel,\n })),\n);\n\n// ─── Shared helpers ─────────────────────────────────────────────────────────\n\nfunction SettingsSkeleton({ lines = 3 }: { lines?: number }) {\n return (\n <div className=\"space-y-3 animate-pulse\">\n {Array.from({ length: lines }, (_, i) => (\n <div key={i} className=\"space-y-1.5\">\n <div\n className=\"h-3 rounded bg-muted-foreground/10\"\n style={{ width: i === 0 ? \"30%\" : i === 1 ? \"100%\" : \"60%\" }}\n />\n {i < 2 && (\n <div className=\"h-9 rounded-md border border-border bg-muted-foreground/5\" />\n )}\n </div>\n ))}\n </div>\n );\n}\n\ninterface SettingsSelectOption {\n value: string;\n label: string;\n description?: string;\n}\n\nconst CONTROL_STYLE = {\n fontSize: 12,\n lineHeight: 1,\n} satisfies React.CSSProperties;\n\nfunction SettingsSelect({\n label,\n labelAdornment,\n value,\n options,\n onValueChange,\n}: {\n label: string;\n labelAdornment?: React.ReactNode;\n value: string;\n options: SettingsSelectOption[];\n onValueChange: (value: string) => void;\n}) {\n const selected = options.find((option) => option.value === value);\n\n return (\n <div className=\"space-y-1.5\">\n <div className=\"flex items-center justify-between\">\n <p className=\"text-[12px] font-medium text-foreground\">{label}</p>\n {labelAdornment}\n </div>\n <SelectPrimitive.Root value={value} onValueChange={onValueChange}>\n <SelectPrimitive.Trigger\n className=\"flex h-9 w-full items-center justify-between rounded-md border border-border bg-background px-3 text-start text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 data-[placeholder]:text-muted-foreground\"\n aria-label={label}\n style={CONTROL_STYLE}\n >\n <SelectPrimitive.Value>\n {selected?.label ?? value}\n </SelectPrimitive.Value>\n <SelectPrimitive.Icon asChild>\n <IconChevronDown size={14} className=\"text-muted-foreground\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n position=\"popper\"\n sideOffset={6}\n className=\"z-[9999] w-[var(--radix-select-trigger-width)] overflow-hidden rounded-lg border border-border bg-popover shadow-lg\"\n >\n <SelectPrimitive.Viewport className=\"p-1\">\n {options.map((option) => (\n <SelectPrimitive.Item\n key={option.value}\n value={option.value}\n className=\"relative flex w-full cursor-pointer select-none items-start gap-2 rounded-md px-8 py-2.5 text-[12px] outline-none data-[highlighted]:bg-accent/60 data-[state=checked]:bg-accent/40\"\n style={CONTROL_STYLE}\n >\n <span className=\"absolute start-2 top-2.5 flex h-4 w-4 items-center justify-center text-muted-foreground\">\n <SelectPrimitive.ItemIndicator>\n <IconCheck size={14} />\n </SelectPrimitive.ItemIndicator>\n </span>\n <div className=\"flex min-w-0 flex-col\">\n <SelectPrimitive.ItemText>\n <span className=\"text-foreground\">{option.label}</span>\n </SelectPrimitive.ItemText>\n {option.description ? (\n <span className=\"mt-0.5 text-[11px] leading-relaxed text-muted-foreground\">\n {option.description}\n </span>\n ) : null}\n </div>\n </SelectPrimitive.Item>\n ))}\n </SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n </SelectPrimitive.Root>\n </div>\n );\n}\n\n// ─── Disconnect button for the Builder card's connected state ───────────────\n//\n// Two-step confirmation: first click arms the button (\"Confirm?\"), second\n// click actually disconnects. Arm auto-reverts after 4s of idle so a user\n// who wandered off doesn't come back to a disconnect waiting for them.\n//\n// Hits /_agent-native/builder/disconnect which removes request-scoped\n// Builder credentials from app_secrets. Deployment env credentials are left\n// alone and remain as fallback. On success we dispatch\n// `agent-engine:configured-changed` so dependent cards refresh inline.\nfunction DisconnectBuilderButton() {\n const { status } = useBuilderStatus();\n const [phase, setPhase] = useState<\"idle\" | \"armed\" | \"busy\">(\"idle\");\n const [err, setErr] = useState<string | null>(null);\n const armedTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n const clearArmedTimer = useCallback(() => {\n if (armedTimerRef.current) {\n clearTimeout(armedTimerRef.current);\n armedTimerRef.current = null;\n }\n }, []);\n\n useEffect(() => {\n return () => clearArmedTimer();\n }, [clearArmedTimer]);\n\n const performDisconnect = useCallback(async () => {\n setPhase(\"busy\");\n setErr(null);\n clearArmedTimer();\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/builder/disconnect\"),\n {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n },\n );\n // Parse defensively — a nitro 404 fallback returns HTML, not JSON,\n // and res.json() on that would throw.\n const text = await res.text();\n let body: {\n ok?: boolean;\n error?: string;\n warnings?: Record<string, string>;\n } = {};\n if (text) {\n try {\n body = JSON.parse(text);\n } catch {\n // Non-JSON response — likely a 404/HTML fallback.\n }\n }\n if (!res.ok) {\n throw new Error(\n body.error ||\n `Failed (${res.status}). Is your dev server up to date?`,\n );\n }\n if (body.ok !== true) {\n throw new Error(body.error || \"Disconnect didn't confirm ok\");\n }\n if (body.warnings && Object.keys(body.warnings).length > 0) {\n // Disconnect flag persisted (we only reach here when ok:true), so\n // the user IS disconnected — but some ancillary cleanup failed.\n // Log so it's visible during dev; don't block the success path.\n console.warn(\n \"[builder-disconnect] completed with warnings:\",\n body.warnings,\n );\n }\n window.dispatchEvent(new CustomEvent(\"agent-engine:configured-changed\"));\n setPhase(\"idle\");\n } catch (e) {\n setErr(e instanceof Error ? e.message : \"Disconnect failed\");\n setPhase(\"idle\");\n }\n }, [clearArmedTimer]);\n\n const handleDisconnectClick = useCallback(() => {\n if (phase === \"busy\") return;\n if (phase === \"idle\") {\n // First click — arm the button. Auto-revert after 4s to avoid a\n // stale \"confirm\" state someone else could hit by accident.\n setPhase(\"armed\");\n setErr(null);\n clearArmedTimer();\n armedTimerRef.current = setTimeout(() => {\n setPhase(\"idle\");\n armedTimerRef.current = null;\n }, 4000);\n return;\n }\n // phase === \"armed\" — user confirmed, actually disconnect.\n void performDisconnect();\n }, [phase, performDisconnect, clearArmedTimer]);\n\n const handleCancel = useCallback(() => {\n clearArmedTimer();\n setPhase(\"idle\");\n }, [clearArmedTimer]);\n\n // When only the deploy fallback is active there is nothing request-scoped\n // for this button to remove. The early return MUST come after every hook\n // above to satisfy rules-of-hooks.\n if (status?.credentialSource === \"env\") return null;\n\n if (phase === \"armed\") {\n return (\n <>\n <button\n type=\"button\"\n onClick={handleDisconnectClick}\n className=\"inline-flex items-center gap-1 rounded border border-destructive/40 bg-destructive/10 px-2 py-0.5 text-[10px] font-medium text-destructive hover:bg-destructive/20\"\n >\n Confirm disconnect\n </button>\n <button\n type=\"button\"\n onClick={handleCancel}\n className=\"inline-flex items-center gap-1 rounded border border-border px-2 py-0.5 text-[10px] text-muted-foreground hover:text-foreground hover:bg-accent/40\"\n >\n Cancel\n </button>\n </>\n );\n }\n\n return (\n <>\n <button\n type=\"button\"\n onClick={handleDisconnectClick}\n disabled={phase === \"busy\"}\n className=\"inline-flex items-center gap-1 rounded border border-border px-2 py-0.5 text-[10px] text-muted-foreground hover:text-foreground hover:bg-accent/40 disabled:opacity-60 disabled:cursor-wait\"\n aria-busy={phase === \"busy\"}\n >\n {phase === \"busy\" ? (\n <>\n <IconLoader2 size={10} className=\"animate-spin\" />\n Disconnecting…\n </>\n ) : (\n \"Disconnect\"\n )}\n </button>\n {err && <span className=\"text-[10px] text-destructive\">{err}</span>}\n </>\n );\n}\n\n// ─── \"Connect Builder.io\" card (shared across all sections) ─────────────────\n\nfunction UseBuilderCard({\n builderFlow,\n connectUrl,\n connected,\n orgName,\n envManaged,\n credentialSource,\n trackingSource = \"settings_panel_builder_card\",\n trackingFlow = \"connect_llm\",\n label = \"Connect Builder.io\",\n subtitle = \"Free credits to start — no API key needed.\",\n dim,\n}: {\n builderFlow: BuilderConnectFlow;\n connectUrl?: string;\n connected: boolean;\n orgName?: string;\n envManaged?: boolean;\n credentialSource?: \"user\" | \"org\" | \"workspace\" | \"env\";\n trackingSource?: string;\n trackingFlow?: string;\n label?: string;\n subtitle?: string;\n dim?: boolean;\n}) {\n const effectiveConnected = connected || builderFlow.configured;\n const effectiveOrgName = builderFlow.orgName ?? orgName;\n const bgClass = dim ? \"\" : \"bg-accent/30\";\n\n if (effectiveConnected) {\n return (\n <div className={`rounded-md border border-border px-2.5 py-2 ${bgClass}`}>\n <div className=\"flex items-center justify-between\">\n <div className=\"text-[11px] font-medium text-foreground\">\n Builder.io\n </div>\n <span className=\"flex items-center gap-1 text-[10px] text-green-500\">\n <IconCheck size={10} />\n Connected\n </span>\n </div>\n {effectiveOrgName && (\n <p className=\"text-[10px] text-muted-foreground mt-0.5\">\n {effectiveOrgName}\n </p>\n )}\n {envManaged ? (\n <p className=\"text-[10px] text-muted-foreground mt-1\">\n {credentialSource === \"env\"\n ? \"Deployment fallback is available. Connect your own account to override it.\"\n : \"Using your connected Builder account. Deployment fallback is still available.\"}\n </p>\n ) : null}\n {connectUrl || credentialSource !== \"env\" ? (\n <div className=\"flex items-center gap-2 mt-2.5\">\n {connectUrl && (\n <button\n type=\"button\"\n onClick={() =>\n builderFlow.start({ trackingSource, trackingFlow })\n }\n disabled={builderFlow.connecting}\n className=\"inline-flex items-center gap-1 rounded border border-border px-2 py-0.5 text-[10px] no-underline text-muted-foreground hover:text-foreground hover:bg-accent/40 disabled:opacity-60\"\n >\n {builderFlow.connecting\n ? \"Connecting...\"\n : credentialSource === \"env\"\n ? \"Connect account\"\n : \"Reconnect\"}\n <IconExternalLink size={10} />\n </button>\n )}\n {credentialSource !== \"env\" ? <DisconnectBuilderButton /> : null}\n </div>\n ) : null}\n </div>\n );\n }\n\n if (!connectUrl) return null;\n\n return (\n <button\n type=\"button\"\n onClick={() => builderFlow.start({ trackingSource, trackingFlow })}\n disabled={builderFlow.connecting}\n className={`block w-full rounded-md border border-border px-3 py-3 text-start no-underline bg-gradient-to-br from-teal-500/10 via-transparent to-transparent hover:border-foreground/30 transition-colors disabled:cursor-wait disabled:opacity-70`}\n >\n <div className=\"flex items-start gap-2.5\">\n <div className=\"flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-foreground text-background\">\n <BuilderBMark className=\"h-3.5 w-3.5\" />\n </div>\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-1.5 flex-wrap\">\n <span className=\"text-[12px] font-semibold text-foreground\">\n {builderFlow.connecting ? \"Connecting Builder.io...\" : label}\n </span>\n {builderFlow.connecting && (\n <IconLoader2\n size={12}\n className=\"shrink-0 animate-spin text-muted-foreground\"\n />\n )}\n </div>\n <p className=\"text-[10.5px] text-muted-foreground mt-0.5 leading-snug\">\n {subtitle}\n </p>\n {builderFlow.error && (\n <p className=\"mt-1 text-[10px] text-destructive\">\n {builderFlow.error}\n </p>\n )}\n </div>\n <IconExternalLink\n size={12}\n className=\"shrink-0 text-muted-foreground mt-0.5\"\n />\n </div>\n </button>\n );\n}\n\n// ─── Manual setup card ──────────────────────────────────────────────────────\n\nfunction ManualSetupCard({\n hint,\n docsUrl,\n docsLabel = \"Read the docs\",\n children,\n dim,\n sourceBadge,\n}: {\n hint?: string;\n docsUrl?: string;\n docsLabel?: string;\n children?: React.ReactNode;\n dim?: boolean;\n /** Optional \"Connected via X\" badge shown in the header row. */\n sourceBadge?: string;\n}) {\n return (\n <div\n className={`rounded-md border border-border px-2.5 py-2 ${dim ? \"\" : \"bg-accent/30\"}`}\n >\n <div className=\"flex items-center justify-between mb-1\">\n <div className=\"text-[11px] font-medium text-foreground\">\n Set up manually\n </div>\n {sourceBadge ? (\n <span className=\"flex items-center gap-1 text-[10px] text-green-500\">\n <IconCheck size={10} />\n {sourceBadge}\n </span>\n ) : null}\n </div>\n {hint && (\n <p className=\"text-[10px] text-muted-foreground mb-1.5\">{hint}</p>\n )}\n {children}\n {docsUrl && (\n <a\n href={docsUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1 mt-1.5 rounded border border-border px-2.5 py-1 text-[10px] font-medium no-underline text-muted-foreground hover:text-foreground hover:bg-accent/40\"\n >\n {docsLabel}\n <IconExternalLink size={10} />\n </a>\n )}\n </div>\n );\n}\n\n// ─── LLM helpers ────────────────────────────────────────────────────────────\n\nfunction friendlyModelName(model: string): string {\n const claude = model.match(\n /^claude-(opus|sonnet|haiku)-(\\d+)-(\\d+)(?:-\\d{8,})?$/,\n );\n if (claude) {\n const tier = claude[1][0].toUpperCase() + claude[1].slice(1);\n return `${tier} ${claude[2]}.${claude[3]}`;\n }\n if (model.startsWith(\"gpt-\")) return `GPT-${model.slice(4)}`;\n if (/^o\\d/.test(model)) return model;\n const gemini = model.match(/^gemini-(.+?)(?:-preview)?$/);\n if (gemini) {\n const parts = gemini[1]\n .split(\"-\")\n .map((s) => s[0].toUpperCase() + s.slice(1))\n .join(\" \");\n return `Gemini ${parts}${model.endsWith(\"-preview\") ? \" (preview)\" : \"\"}`;\n }\n return model;\n}\n\ntype SettingsStatus = {\n engine: string;\n source: \"env\" | \"settings\";\n envVar: string | null;\n} | null;\n\nfunction computeSourceBadge(args: {\n settingsConfigured: boolean;\n settingsStatus: SettingsStatus;\n envConfigured: boolean;\n envVar: string | undefined;\n builderConnected: boolean;\n}): string | undefined {\n const { settingsConfigured, settingsStatus } = args;\n if (args.builderConnected) return \"Connected via Builder\";\n if (settingsConfigured) {\n if (settingsStatus?.source === \"env\") {\n return `Connected via ${settingsStatus.envVar ?? args.envVar ?? \"env\"}`;\n }\n return \"Connected via template (server-side)\";\n }\n if (args.envConfigured) return `Connected via ${args.envVar ?? \"env\"}`;\n return undefined;\n}\n\nfunction latestModelsOnly(models: string[]): string[] {\n const seen = new Set<string>();\n return models.filter((m) => {\n const claude = m.match(/^claude-(opus|sonnet|haiku)-/);\n if (claude) {\n if (seen.has(claude[1])) return false;\n seen.add(claude[1]);\n return true;\n }\n const gemini = m.match(/^gemini-(\\d+(?:\\.\\d+)?)-(.+?)(?:-preview)?$/);\n if (gemini) {\n const family = gemini[2];\n if (seen.has(`gemini-${family}`)) return false;\n seen.add(`gemini-${family}`);\n return true;\n }\n return true;\n });\n}\n\n// ─── LLM Section ────────────────────────────────────────────────────────────\n\ninterface EngineInfo {\n name: string;\n label: string;\n description: string;\n defaultModel: string;\n supportedModels: string[];\n requiredEnvVars: string[];\n installPackage?: string;\n packageInstalled?: boolean;\n}\n\nconst PROVIDER_DOCS: Record<string, string> = {\n anthropic: \"https://console.anthropic.com/settings/keys\",\n \"ai-sdk:anthropic\": \"https://console.anthropic.com/settings/keys\",\n \"ai-sdk:openai\": \"https://platform.openai.com/api-keys\",\n \"ai-sdk:google\": \"https://aistudio.google.com/apikey\",\n \"ai-sdk:openrouter\": \"https://openrouter.ai/keys\",\n \"ai-sdk:groq\": \"https://console.groq.com/keys\",\n \"ai-sdk:mistral\": \"https://console.mistral.ai/api-keys/\",\n \"ai-sdk:cohere\": \"https://dashboard.cohere.com/api-keys\",\n};\n\nfunction LLMSectionInner({\n builderFlow,\n builderLoading,\n connectUrl,\n connected,\n orgName,\n envManaged,\n credentialSource,\n open,\n onToggle,\n}: {\n builderFlow: BuilderConnectFlow;\n builderLoading?: boolean;\n connectUrl?: string;\n connected: boolean;\n orgName?: string;\n envManaged?: boolean;\n credentialSource?: \"user\" | \"org\" | \"workspace\" | \"env\";\n open?: boolean;\n onToggle?: () => void;\n}) {\n const [envKeys, setEnvKeys] = useState<\n Array<{ key: string; configured: boolean }>\n >([]);\n const [apiKey, setApiKey] = useState(\"\");\n const [saving, setSaving] = useState(false);\n const [saved, setSaved] = useState(false);\n const [engines, setEngines] = useState<EngineInfo[]>([]);\n const [currentEngine, setCurrentEngine] = useState(\"anthropic\");\n const [currentModel, setCurrentModel] = useState(\"\");\n const [selectedEngine, setSelectedEngine] = useState(\"anthropic\");\n const [selectedModel, setSelectedModel] = useState(\"\");\n const [baseUrl, setBaseUrl] = useState(\"\");\n const [baseUrlConfigured, setBaseUrlConfigured] = useState(false);\n const [clearBaseUrl, setClearBaseUrl] = useState(false);\n const [advancedOpen, setAdvancedOpen] = useState(false);\n const [applyNote, setApplyNote] = useState(false);\n const [testing, setTesting] = useState(false);\n const [testResult, setTestResult] = useState<\n | { ok: true; latencyMs: number; model: string }\n | { ok: false; error: string }\n | null\n >(null);\n const [settingsStatus, setSettingsStatus] = useState<SettingsStatus>(null);\n const [disconnectError, setDisconnectError] = useState<string | null>(null);\n const [envLoaded, setEnvLoaded] = useState(false);\n const [enginesLoaded, setEnginesLoaded] = useState(false);\n const [statusLoaded, setStatusLoaded] = useState(false);\n\n const initialLoading =\n !envLoaded || !enginesLoaded || !statusLoaded || !!builderLoading;\n\n useEffect(() => {\n fetch(agentNativePath(\"/_agent-native/env-status\"))\n .then((r) => (r.ok ? r.json() : []))\n .then(setEnvKeys)\n .catch(() => {})\n .finally(() => setEnvLoaded(true));\n }, [saved]);\n\n const notifyConfigChanged = useCallback(() => {\n window.dispatchEvent(new CustomEvent(\"agent-engine:configured-changed\"));\n }, []);\n\n const refreshSettingsStatus = useCallback(() => {\n fetch(agentNativePath(\"/_agent-native/agent-engine/status\"))\n .then((r) => (r.ok ? r.json() : null))\n .then((data) => {\n setBaseUrlConfigured(Boolean(data?.openAiBaseUrlConfigured));\n if (\n data?.configured &&\n typeof data.engine === \"string\" &&\n (data.source === \"env\" || data.source === \"settings\")\n ) {\n setSettingsStatus({\n engine: data.engine,\n source: data.source,\n envVar: typeof data.envVar === \"string\" ? data.envVar : null,\n });\n } else {\n setSettingsStatus(null);\n }\n })\n .catch(() => {})\n .finally(() => setStatusLoaded(true));\n }, []);\n\n useEffect(() => {\n refreshSettingsStatus();\n }, [refreshSettingsStatus]);\n\n useEffect(() => {\n callAction(\"manage-agent-engine\" as any, { action: \"list\" } as any)\n .then((data) => {\n if (!data) return;\n const engineData = data as {\n engines?: EngineInfo[];\n current?: { engine?: string; model?: string };\n };\n setEngines(engineData.engines ?? []);\n const cur = engineData.current ?? {};\n setCurrentEngine(cur.engine ?? \"anthropic\");\n setCurrentModel(cur.model ?? \"\");\n setSelectedEngine(cur.engine ?? \"anthropic\");\n setSelectedModel(cur.model ?? \"\");\n })\n .catch(() => {})\n .finally(() => setEnginesLoaded(true));\n }, []);\n\n const selectedEngineInfo = engines.find((e) => e.name === selectedEngine);\n const envVar = selectedEngineInfo?.requiredEnvVars?.[0];\n const selectedEnginePackageInstalled =\n selectedEngineInfo?.packageInstalled !== false;\n const envConfigured = envVar\n ? (envKeys.find((k) => k.key === envVar)?.configured ?? false)\n : false;\n const settingsConfigured =\n settingsStatus != null && settingsStatus.engine === currentEngine;\n const builderConnected = connected || builderFlow.configured;\n const anyKeyConfigured =\n builderConnected ||\n (selectedEnginePackageInstalled && (envConfigured || settingsConfigured));\n const sourceBadge = computeSourceBadge({\n settingsConfigured,\n settingsStatus,\n envConfigured,\n envVar,\n builderConnected,\n });\n\n const engineChanged =\n selectedEngine !== currentEngine || selectedModel !== currentModel;\n const isOpenAiEngine = selectedEngine === \"ai-sdk:openai\";\n const endpointChanged = isOpenAiEngine && (!!baseUrl.trim() || clearBaseUrl);\n const providerSettingsChanged = !!apiKey.trim() || endpointChanged;\n\n // Hide the Anthropic-via-AI-SDK alias (redundant with the native entry)\n // and Ollama (no API key to set here). The currently-selected engine is\n // always kept so a stale setting doesn't vanish from the picker.\n const providerOptions: SettingsSelectOption[] = engines\n .filter(\n (e) =>\n e.name === selectedEngine ||\n (e.name !== \"ai-sdk:anthropic\" && e.name !== \"ai-sdk:ollama\"),\n )\n .map((e) => ({ value: e.name, label: e.label }));\n\n const modelOptions: SettingsSelectOption[] = latestModelsOnly(\n selectedEngineInfo?.supportedModels ?? [],\n ).map((m) => ({ value: m, label: friendlyModelName(m) }));\n\n const handleSave = async () => {\n if (!providerSettingsChanged || !envVar) return;\n setSaving(true);\n try {\n const nextBaseUrl = isOpenAiEngine ? baseUrl.trim() : \"\";\n await saveAgentEngineProviderSettings({\n key: envVar,\n ...(apiKey.trim() ? { apiKey } : {}),\n ...(nextBaseUrl ? { baseUrl: nextBaseUrl } : {}),\n ...(isOpenAiEngine && clearBaseUrl ? { clearBaseUrl: true } : {}),\n });\n setSaved(true);\n setApiKey(\"\");\n setBaseUrl(\"\");\n setClearBaseUrl(false);\n if (nextBaseUrl) setBaseUrlConfigured(true);\n if (clearBaseUrl) setBaseUrlConfigured(false);\n refreshSettingsStatus();\n notifyConfigChanged();\n setTimeout(() => setSaved(false), 2000);\n } finally {\n setSaving(false);\n }\n };\n\n const handleDisconnect = async () => {\n setDisconnectError(null);\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/agent-engine/disconnect\"),\n {\n method: \"POST\",\n },\n );\n if (res.ok) {\n setTestResult(null);\n setApplyNote(false);\n refreshSettingsStatus();\n notifyConfigChanged();\n return;\n }\n const body = (await res.json().catch(() => null)) as {\n error?: string;\n } | null;\n setDisconnectError(\n body?.error ??\n (res.status === 401\n ? \"You must be signed in to disconnect.\"\n : `Disconnect failed (HTTP ${res.status})`),\n );\n } catch (err) {\n setDisconnectError(err instanceof Error ? err.message : String(err));\n }\n };\n\n const handleTest = async () => {\n setTesting(true);\n setTestResult(null);\n try {\n const data = await callAction(\n \"manage-agent-engine\" as any,\n {\n action: \"test\",\n engine: selectedEngine,\n model: selectedModel || selectedEngineInfo?.defaultModel,\n } as any,\n );\n // Older action paths wrapped tool output in { result }. Accept either\n // shape while the action route normalizes JSON-string script output.\n const parsed =\n typeof data === \"string\"\n ? JSON.parse(data)\n : typeof data?.result === \"string\"\n ? JSON.parse(data.result)\n : data;\n if (parsed?.ok) {\n setTestResult({\n ok: true,\n latencyMs: parsed.latencyMs ?? 0,\n model: parsed.model ?? selectedModel,\n });\n } else {\n setTestResult({\n ok: false,\n error: parsed?.error ?? \"Test failed (no error message)\",\n });\n }\n } catch (err) {\n setTestResult({\n ok: false,\n error: err instanceof Error ? err.message : String(err),\n });\n } finally {\n setTesting(false);\n }\n };\n\n const handleApply = async () => {\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/actions/manage-agent-engine\"),\n {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({\n action: \"set\",\n engine: selectedEngine,\n model: selectedModel,\n }),\n },\n );\n if (res.ok) {\n setCurrentEngine(selectedEngine);\n setCurrentModel(selectedModel);\n setApplyNote(true);\n refreshSettingsStatus();\n notifyConfigChanged();\n setTimeout(() => setApplyNote(false), 4000);\n }\n } catch {}\n };\n\n return (\n <SettingsSection\n icon={<IconBrain size={14} />}\n title=\"LLM\"\n subtitle=\"Connect any major LLM — Claude, GPT, Gemini, and more.\"\n required\n connected={initialLoading ? undefined : anyKeyConfigured}\n open={open}\n onToggle={onToggle}\n >\n {initialLoading ? (\n <SettingsSkeleton lines={3} />\n ) : (\n <div className=\"space-y-2\">\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"llm_settings\"\n trackingFlow=\"connect_llm\"\n label=\"Connect Builder.io\"\n />\n {!builderConnected && (\n <ManualSetupCard\n hint=\"Choose your AI provider and model.\"\n docsUrl={PROVIDER_DOCS[selectedEngine]}\n sourceBadge={sourceBadge}\n docsLabel=\"Get an API key\"\n >\n <div className=\"space-y-2 mb-1\">\n <SettingsSelect\n label=\"Provider\"\n value={selectedEngine}\n options={providerOptions}\n onValueChange={(val) => {\n setSelectedEngine(val);\n const info = engines.find((e) => e.name === val);\n setSelectedModel(info?.defaultModel ?? \"\");\n setApiKey(\"\");\n setBaseUrl(\"\");\n setClearBaseUrl(false);\n setAdvancedOpen(false);\n }}\n />\n\n {/* Free-form input so OpenRouter/Ollama custom model IDs can\n be typed — the registry's supportedModels is only suggestions. */}\n <div className=\"space-y-1.5\">\n <p className=\"text-[12px] font-medium text-foreground\">\n Model\n </p>\n <input\n type=\"text\"\n list={`model-suggestions-${selectedEngine}`}\n value={selectedModel}\n onChange={(e) => setSelectedModel(e.target.value)}\n placeholder={\n selectedEngineInfo?.defaultModel ?? \"e.g. model-id\"\n }\n spellCheck={false}\n autoComplete=\"off\"\n className=\"flex h-9 w-full rounded-md border border-border bg-background px-3 text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 focus:ring-1 focus:ring-accent placeholder:text-muted-foreground/50\"\n style={CONTROL_STYLE}\n />\n {modelOptions.length > 0 && (\n <datalist id={`model-suggestions-${selectedEngine}`}>\n {modelOptions.map((opt) => (\n <option\n key={opt.value}\n value={opt.value}\n label={opt.label}\n />\n ))}\n </datalist>\n )}\n </div>\n\n {isOpenAiEngine && (\n <div className=\"border-t border-border/70 pt-2\">\n <button\n type=\"button\"\n onClick={() => setAdvancedOpen((v) => !v)}\n className=\"flex w-full cursor-pointer items-center justify-between gap-2 rounded px-0.5 py-1 text-left hover:text-foreground\"\n >\n <span className=\"inline-flex min-w-0 items-center gap-1.5 text-[11px] font-medium text-foreground\">\n {advancedOpen ? (\n <IconChevronDown size={12} />\n ) : (\n <IconChevronRight\n size={12}\n className=\"rtl:-scale-x-100\"\n />\n )}\n Advanced\n </span>\n <span className=\"truncate text-[10px] text-muted-foreground\">\n OpenAI-compatible endpoint\n </span>\n </button>\n\n {advancedOpen && (\n <div className=\"mt-1.5 space-y-1.5\">\n <div className=\"flex items-center justify-between gap-2\">\n <p className=\"text-[12px] font-medium text-foreground\">\n Endpoint URL\n </p>\n <span className=\"text-[10px] text-muted-foreground\">\n {baseUrlConfigured ? \"Configured\" : \"Optional\"}\n </span>\n </div>\n <input\n type=\"url\"\n value={baseUrl}\n onChange={(e) => {\n setBaseUrl(e.target.value);\n if (e.target.value.trim()) setClearBaseUrl(false);\n }}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") handleSave();\n }}\n placeholder={\n baseUrlConfigured\n ? \"Leave blank to keep current endpoint\"\n : \"https://gateway.example/v1\"\n }\n disabled={clearBaseUrl}\n spellCheck={false}\n autoComplete=\"off\"\n className=\"flex h-9 w-full rounded-md border border-border bg-background px-3 text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 focus:ring-1 focus:ring-accent disabled:opacity-50 placeholder:text-muted-foreground/50\"\n style={CONTROL_STYLE}\n />\n <p className=\"text-[10px] leading-relaxed text-muted-foreground\">\n Use for LiteLLM or another OpenAI-compatible chat\n gateway. Leave blank for OpenAI.\n </p>\n {baseUrlConfigured && (\n <label className=\"flex items-center gap-1.5 text-[10px] text-muted-foreground\">\n <input\n type=\"checkbox\"\n checked={clearBaseUrl}\n onChange={(e) => {\n setClearBaseUrl(e.target.checked);\n if (e.target.checked) setBaseUrl(\"\");\n }}\n className=\"h-3 w-3 accent-current\"\n />\n Clear saved endpoint override\n </label>\n )}\n {envVar && envConfigured && endpointChanged && (\n <button\n type=\"button\"\n onClick={handleSave}\n disabled={saving}\n className=\"rounded bg-accent px-2.5 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save endpoint\"\n )}\n </button>\n )}\n </div>\n )}\n </div>\n )}\n\n {envVar && envConfigured ? (\n <div className=\"flex items-center gap-1.5 text-[10px] text-green-500\">\n <IconCheck size={10} />\n {envVar} configured\n </div>\n ) : envVar ? (\n <div className=\"flex gap-1.5\">\n <input\n type=\"password\"\n value={apiKey}\n onChange={(e) => setApiKey(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") handleSave();\n }}\n placeholder={PROVIDER_ENV_PLACEHOLDERS[envVar] ?? \"...\"}\n className=\"flex-1 rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none placeholder:text-muted-foreground/50 focus:ring-1 focus:ring-accent\"\n />\n <button\n onClick={handleSave}\n disabled={!providerSettingsChanged || saving}\n className=\"rounded bg-accent px-2 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n </div>\n ) : null}\n\n <div className=\"flex items-center gap-2\">\n <button\n onClick={handleTest}\n disabled={testing}\n className=\"rounded border border-border px-2.5 py-1 text-[10px] font-medium text-foreground hover:bg-accent/40 disabled:opacity-40\"\n >\n {testing ? (\n <span className=\"flex items-center gap-1\">\n <IconLoader2 size={10} className=\"animate-spin\" />\n Testing…\n </span>\n ) : (\n \"Test\"\n )}\n </button>\n {engineChanged && (\n <button\n onClick={handleApply}\n className=\"rounded bg-accent px-2.5 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80\"\n >\n Apply\n </button>\n )}\n {settingsStatus != null && (\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n onClick={handleDisconnect}\n className=\"ms-auto rounded border border-border px-2.5 py-1 text-[10px] font-medium text-muted-foreground hover:bg-destructive/10 hover:text-destructive hover:border-destructive/40\"\n >\n Disconnect\n </button>\n </TooltipTrigger>\n <TooltipContent>\n Clear the saved engine — the app will fall back to the\n default until you re-apply.\n </TooltipContent>\n </Tooltip>\n )}\n </div>\n {testResult && testResult.ok && (\n <p className=\"flex items-center gap-1 text-[10px] text-green-500\">\n <IconCheck size={10} />\n Test passed — {testResult.latencyMs}ms\n </p>\n )}\n {testResult && testResult.ok === false && (\n <p className=\"text-[10px] text-destructive\">\n Test failed: {testResult.error}\n </p>\n )}\n {disconnectError && (\n <p className=\"text-[10px] text-destructive\">\n Disconnect failed: {disconnectError}\n </p>\n )}\n {applyNote && (\n <p className=\"text-[10px] text-muted-foreground\">\n Changes take effect on next conversation\n </p>\n )}\n </div>\n </ManualSetupCard>\n )}\n </div>\n )}\n </SettingsSection>\n );\n}\n\n// ─── App Default Model Section ──────────────────────────────────────────────\n\ninterface AppModelDefaultEngine extends EngineInfo {\n configured: boolean;\n}\n\ninterface AppModelDefaultsResponse {\n appId: string;\n engine: string | null;\n model: string | null;\n scope: \"org\" | \"user\" | \"default\";\n source: \"org\" | \"user\" | \"default\";\n canUpdate: boolean;\n orgId?: string | null;\n orgName?: string | null;\n role?: string | null;\n engines: AppModelDefaultEngine[];\n}\n\nfunction friendlyAppName(appId: string): string {\n return appId\n .split(\"-\")\n .filter(Boolean)\n .map((part) => part[0]?.toUpperCase() + part.slice(1))\n .join(\" \");\n}\n\nfunction AppModelDefaultsSectionInner({\n open,\n onToggle,\n}: {\n open?: boolean;\n onToggle?: () => void;\n}) {\n const [settings, setSettings] = useState<AppModelDefaultsResponse | null>(\n null,\n );\n const [selectedEngine, setSelectedEngine] = useState(\"\");\n const [selectedModel, setSelectedModel] = useState(\"\");\n const [loading, setLoading] = useState(true);\n const [saving, setSaving] = useState(false);\n const [saved, setSaved] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n const load = useCallback(() => {\n let cancelled = false;\n setLoading(true);\n fetch(agentNativePath(\"/_agent-native/agent-model-defaults\"))\n .then((r) => (r.ok ? r.json() : null))\n .then((data: AppModelDefaultsResponse | null) => {\n if (cancelled || !data) return;\n setSettings(data);\n const firstConfigured =\n data.engines.find((engine) => engine.configured) ?? data.engines[0];\n const nextEngine = data.engine ?? firstConfigured?.name ?? \"\";\n const nextEngineInfo =\n data.engines.find((engine) => engine.name === nextEngine) ??\n firstConfigured;\n setSelectedEngine(nextEngine);\n setSelectedModel(data.model ?? nextEngineInfo?.defaultModel ?? \"\");\n })\n .catch(() => {})\n .finally(() => {\n if (!cancelled) setLoading(false);\n });\n return () => {\n cancelled = true;\n };\n }, []);\n\n useEffect(() => load(), [load]);\n\n const selectedEngineInfo =\n settings?.engines.find((engine) => engine.name === selectedEngine) ?? null;\n const engineOptions: SettingsSelectOption[] = (settings?.engines ?? [])\n .filter(\n (engine) =>\n engine.name === selectedEngine ||\n (engine.name !== \"ai-sdk:anthropic\" && engine.name !== \"ai-sdk:ollama\"),\n )\n .map((engine) => ({\n value: engine.name,\n label:\n engine.name === \"builder\"\n ? \"Builder.io Gateway\"\n : engine.label || engine.name,\n description: engine.configured\n ? \"Configured for this workspace\"\n : engine.packageInstalled === false\n ? `Install ${engine.installPackage ?? \"the provider packages\"} to use this provider`\n : \"Credentials not detected yet\",\n }));\n const modelOptions: SettingsSelectOption[] = latestModelsOnly(\n selectedEngineInfo?.supportedModels ?? [],\n ).map((model) => ({ value: model, label: friendlyModelName(model) }));\n const hasPendingChange =\n !!settings &&\n settings.canUpdate &&\n !!selectedEngine &&\n !!selectedModel.trim() &&\n (selectedEngine !== settings.engine ||\n selectedModel.trim() !== settings.model);\n const hasAppDefault = settings?.source !== \"default\";\n const scopeLabel =\n settings?.scope === \"org\"\n ? settings.orgName\n ? `${settings.orgName} organization`\n : \"organization\"\n : \"your account\";\n\n const notifyChanged = () => {\n window.dispatchEvent(new CustomEvent(\"agent-engine:configured-changed\"));\n };\n\n const save = async () => {\n if (!hasPendingChange) return;\n setSaving(true);\n setSaved(false);\n setError(null);\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/agent-model-defaults\"),\n {\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({\n engine: selectedEngine,\n model: selectedModel.trim(),\n }),\n },\n );\n const body = await res.json().catch(() => ({}));\n if (!res.ok)\n throw new Error(body?.error ?? `Save failed (${res.status})`);\n const next = body as AppModelDefaultsResponse;\n setSettings(next);\n setSelectedEngine(next.engine ?? selectedEngine);\n setSelectedModel(next.model ?? selectedModel.trim());\n setSaved(true);\n notifyChanged();\n setTimeout(() => setSaved(false), 2000);\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Save failed\");\n } finally {\n setSaving(false);\n }\n };\n\n const reset = async () => {\n if (!settings?.canUpdate || !hasAppDefault) return;\n setSaving(true);\n setSaved(false);\n setError(null);\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/agent-model-defaults\"),\n { method: \"DELETE\" },\n );\n const body = await res.json().catch(() => ({}));\n if (!res.ok)\n throw new Error(body?.error ?? `Reset failed (${res.status})`);\n const next = body as AppModelDefaultsResponse;\n setSettings(next);\n const fallback = next.engines.find((engine) => engine.configured);\n setSelectedEngine(next.engine ?? fallback?.name ?? selectedEngine);\n setSelectedModel(next.model ?? fallback?.defaultModel ?? selectedModel);\n notifyChanged();\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Reset failed\");\n } finally {\n setSaving(false);\n }\n };\n\n return (\n <SettingsSection\n id={settingsSectionDomId(\"app-models\")}\n icon={<IconApps size={14} />}\n title=\"App Default Model\"\n subtitle=\"Choose the default model for this app/template when no one-off composer model is selected.\"\n connected={loading ? undefined : hasAppDefault}\n open={open}\n onToggle={onToggle}\n >\n {loading ? (\n <SettingsSkeleton lines={2} />\n ) : settings ? (\n <div className=\"space-y-2\">\n <div className=\"rounded-md border border-border bg-accent/20 px-2.5 py-2\">\n <div className=\"mb-2 flex items-center justify-between gap-2\">\n <div className=\"min-w-0\">\n <p className=\"truncate text-[11px] font-medium text-foreground\">\n {friendlyAppName(settings.appId) || \"This app\"}\n </p>\n <p className=\"mt-0.5 text-[10px] text-muted-foreground\">\n {hasAppDefault\n ? `Applies to ${scopeLabel}.`\n : \"Using the global LLM default.\"}\n </p>\n </div>\n <span className=\"shrink-0 rounded-full bg-background px-2 py-0.5 text-[10px] font-medium text-muted-foreground\">\n {settings.source}\n </span>\n </div>\n\n <div className=\"space-y-2\">\n <SettingsSelect\n label=\"Provider\"\n value={selectedEngine}\n options={engineOptions}\n onValueChange={(value) => {\n setSelectedEngine(value);\n const info = settings.engines.find(\n (engine) => engine.name === value,\n );\n setSelectedModel(info?.defaultModel ?? \"\");\n setError(null);\n }}\n />\n\n <div className=\"space-y-1.5\">\n <p className=\"text-[12px] font-medium text-foreground\">Model</p>\n <input\n type=\"text\"\n list={`app-model-suggestions-${selectedEngine}`}\n value={selectedModel}\n disabled={!settings.canUpdate || saving}\n onChange={(event) => {\n setSelectedModel(event.target.value);\n setError(null);\n }}\n onKeyDown={(event) => {\n if (event.key === \"Enter\" && hasPendingChange) void save();\n }}\n placeholder={selectedEngineInfo?.defaultModel ?? \"model-id\"}\n spellCheck={false}\n autoComplete=\"off\"\n className=\"flex h-9 w-full rounded-md border border-border bg-background px-3 text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 focus:ring-1 focus:ring-accent placeholder:text-muted-foreground/50 disabled:opacity-60\"\n style={CONTROL_STYLE}\n />\n {modelOptions.length > 0 && (\n <datalist id={`app-model-suggestions-${selectedEngine}`}>\n {modelOptions.map((option) => (\n <option\n key={option.value}\n value={option.value}\n label={option.label}\n />\n ))}\n </datalist>\n )}\n </div>\n\n <div className=\"flex items-center gap-1.5\">\n <button\n type=\"button\"\n onClick={save}\n disabled={!hasPendingChange || saving}\n className=\"inline-flex h-8 items-center gap-1 rounded bg-accent px-2.5 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n <button\n type=\"button\"\n onClick={reset}\n disabled={!settings.canUpdate || !hasAppDefault || saving}\n className=\"h-8 rounded border border-border px-2.5 text-[10px] font-medium text-muted-foreground hover:bg-accent/40 hover:text-foreground disabled:opacity-40\"\n >\n Reset\n </button>\n </div>\n </div>\n\n {!settings.canUpdate && (\n <p className=\"mt-2 text-[10px] text-muted-foreground\">\n Only organization owners and admins can change app model\n defaults.\n </p>\n )}\n {selectedEngineInfo?.packageInstalled === false ? (\n <p className=\"mt-2 text-[10px] text-muted-foreground\">\n This app does not include the optional runtime packages for this\n provider.\n </p>\n ) : selectedEngineInfo && !selectedEngineInfo.configured ? (\n <p className=\"mt-2 text-[10px] text-muted-foreground\">\n Credentials for this provider were not detected; runtime will\n fall back if the model cannot be used.\n </p>\n ) : null}\n {error && (\n <p className=\"mt-2 text-[10px] text-destructive\">{error}</p>\n )}\n </div>\n </div>\n ) : (\n <p className=\"text-[10px] text-muted-foreground\">\n App model defaults are unavailable.\n </p>\n )}\n </SettingsSection>\n );\n}\n\n// ─── Email Section ──────────────────────────────────────────────────────────\n\nfunction EmailSectionInner({\n open,\n onToggle,\n}: {\n open?: boolean;\n onToggle?: () => void;\n}) {\n const [envKeys, setEnvKeys] = useState<\n Array<{ key: string; configured: boolean }>\n >([]);\n const [resendKey, setResendKey] = useState(\"\");\n const [sendgridKey, setSendgridKey] = useState(\"\");\n const [fromAddr, setFromAddr] = useState(\"\");\n const [saving, setSaving] = useState(false);\n const [saved, setSaved] = useState(false);\n const [emailProvider, setEmailProvider] = useState<\"resend\" | \"sendgrid\">(\n \"resend\",\n );\n const [envLoaded, setEnvLoaded] = useState(false);\n\n useEffect(() => {\n fetch(agentNativePath(\"/_agent-native/env-status\"))\n .then((r) => (r.ok ? r.json() : []))\n .then(setEnvKeys)\n .catch(() => {})\n .finally(() => setEnvLoaded(true));\n }, [saved]);\n\n const resendConfigured =\n envKeys.find((k) => k.key === \"RESEND_API_KEY\")?.configured ?? false;\n const sendgridConfigured =\n envKeys.find((k) => k.key === \"SENDGRID_API_KEY\")?.configured ?? false;\n const fromConfigured =\n envKeys.find((k) => k.key === \"EMAIL_FROM\")?.configured ?? false;\n const anyConfigured = resendConfigured || sendgridConfigured;\n\n useEffect(() => {\n if (sendgridConfigured && !resendConfigured) {\n setEmailProvider(\"sendgrid\");\n }\n }, [resendConfigured, sendgridConfigured]);\n\n const save = async (vars: Array<{ key: string; value: string }>) => {\n setSaving(true);\n try {\n const res = await fetch(agentNativePath(\"/_agent-native/env-vars\"), {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ vars }),\n });\n if (res.ok) {\n setSaved(true);\n setResendKey(\"\");\n setSendgridKey(\"\");\n setFromAddr(\"\");\n setTimeout(() => setSaved(false), 2000);\n }\n } finally {\n setSaving(false);\n }\n };\n\n const saveResend = () => {\n const vars: Array<{ key: string; value: string }> = [];\n if (resendKey.trim())\n vars.push({ key: \"RESEND_API_KEY\", value: resendKey.trim() });\n if (fromAddr.trim())\n vars.push({ key: \"EMAIL_FROM\", value: fromAddr.trim() });\n if (vars.length) save(vars);\n };\n\n const saveSendgrid = () => {\n const vars: Array<{ key: string; value: string }> = [];\n if (sendgridKey.trim())\n vars.push({ key: \"SENDGRID_API_KEY\", value: sendgridKey.trim() });\n if (fromAddr.trim())\n vars.push({ key: \"EMAIL_FROM\", value: fromAddr.trim() });\n if (vars.length) save(vars);\n };\n\n return (\n <SettingsSection\n icon={<IconMail size={14} />}\n title=\"Email\"\n subtitle=\"Needed before deploy for password resets, team invitations, and share notifications. Local development can run without it.\"\n connected={!envLoaded ? undefined : anyConfigured}\n open={open}\n onToggle={onToggle}\n >\n {!envLoaded ? (\n <SettingsSkeleton lines={2} />\n ) : (\n <div className=\"space-y-2\">\n <label className=\"block space-y-1\">\n <span className=\"text-[10px] uppercase tracking-wide text-muted-foreground\">\n Provider\n </span>\n <select\n value={emailProvider}\n onChange={(e) =>\n setEmailProvider(e.target.value as \"resend\" | \"sendgrid\")\n }\n className=\"w-full rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none focus:ring-1 focus:ring-accent\"\n >\n <option value=\"resend\">Resend</option>\n <option value=\"sendgrid\">SendGrid</option>\n </select>\n </label>\n\n {emailProvider === \"resend\" ? (\n <ManualSetupCard\n hint=\"Use Resend for transactional email.\"\n docsUrl=\"https://resend.com/api-keys\"\n docsLabel=\"Get a Resend key\"\n >\n {resendConfigured ? (\n <div className=\"mb-1 flex items-center gap-1.5 text-[10px] text-green-500\">\n <IconCheck size={10} />\n RESEND_API_KEY configured\n </div>\n ) : (\n <div className=\"mb-1 flex gap-1.5\">\n <input\n type=\"password\"\n value={resendKey}\n onChange={(e) => setResendKey(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") saveResend();\n }}\n placeholder=\"re_...\"\n className=\"flex-1 rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none placeholder:text-muted-foreground/50 focus:ring-1 focus:ring-accent\"\n />\n <button\n onClick={saveResend}\n disabled={!resendKey.trim() || saving}\n className=\"rounded bg-accent px-2 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n </div>\n )}\n {fromConfigured ? (\n <div className=\"flex items-center gap-1.5 text-[10px] text-green-500\">\n <IconCheck size={10} />\n EMAIL_FROM configured\n </div>\n ) : (\n <div className=\"flex gap-1.5\">\n <input\n type=\"text\"\n value={fromAddr}\n onChange={(e) => setFromAddr(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") saveResend();\n }}\n placeholder=\"From address - e.g. Acme <hi@acme.com>\"\n className=\"flex-1 rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none placeholder:text-muted-foreground/50 focus:ring-1 focus:ring-accent\"\n />\n {!resendConfigured ? null : (\n <button\n onClick={saveResend}\n disabled={!fromAddr.trim() || saving}\n className=\"rounded bg-accent px-2 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n )}\n </div>\n )}\n </ManualSetupCard>\n ) : (\n <ManualSetupCard\n hint=\"Use SendGrid for transactional email. SendGrid requires a verified from address.\"\n docsUrl=\"https://app.sendgrid.com/settings/api_keys\"\n docsLabel=\"Get a SendGrid key\"\n >\n {sendgridConfigured ? (\n <div className=\"mb-1 flex items-center gap-1.5 text-[10px] text-green-500\">\n <IconCheck size={10} />\n SENDGRID_API_KEY configured\n </div>\n ) : (\n <div className=\"mb-1 flex gap-1.5\">\n <input\n type=\"password\"\n value={sendgridKey}\n onChange={(e) => setSendgridKey(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") saveSendgrid();\n }}\n placeholder=\"SG....\"\n className=\"flex-1 rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none placeholder:text-muted-foreground/50 focus:ring-1 focus:ring-accent\"\n />\n <button\n onClick={saveSendgrid}\n disabled={!sendgridKey.trim() || saving}\n className=\"rounded bg-accent px-2 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n </div>\n )}\n {fromConfigured ? (\n <div className=\"flex items-center gap-1.5 text-[10px] text-green-500\">\n <IconCheck size={10} />\n EMAIL_FROM configured\n </div>\n ) : (\n <div className=\"flex gap-1.5\">\n <input\n type=\"text\"\n value={fromAddr}\n onChange={(e) => setFromAddr(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") saveSendgrid();\n }}\n placeholder=\"From address - e.g. Acme <hi@acme.com>\"\n className=\"flex-1 rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none placeholder:text-muted-foreground/50 focus:ring-1 focus:ring-accent\"\n />\n {!sendgridConfigured ? null : (\n <button\n onClick={saveSendgrid}\n disabled={!fromAddr.trim() || saving}\n className=\"rounded bg-accent px-2 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n )}\n </div>\n )}\n </ManualSetupCard>\n )}\n </div>\n )}\n </SettingsSection>\n );\n}\n\n// ─── Agent Limits Section ──────────────────────────────────────────────────\n\ninterface AgentLoopSettingsResponse {\n maxIterations: number;\n defaultMaxIterations: number;\n minMaxIterations: number;\n maxMaxIterations: number;\n scope: \"org\" | \"user\" | \"default\";\n source: \"org\" | \"user\" | \"env\" | \"default\";\n canUpdate: boolean;\n orgName?: string | null;\n role?: string | null;\n}\n\nfunction AgentLimitsSectionInner({\n open,\n onToggle,\n}: {\n open?: boolean;\n onToggle?: () => void;\n}) {\n const [settings, setSettings] = useState<AgentLoopSettingsResponse | null>(\n null,\n );\n const [value, setValue] = useState(\"\");\n const [loading, setLoading] = useState(true);\n const [saving, setSaving] = useState(false);\n const [saved, setSaved] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n const load = useCallback(() => {\n let cancelled = false;\n setLoading(true);\n fetch(agentNativePath(\"/_agent-native/agent-loop-settings\"))\n .then((r) => (r.ok ? r.json() : null))\n .then((data: AgentLoopSettingsResponse | null) => {\n if (cancelled || !data) return;\n setSettings(data);\n setValue(String(data.maxIterations));\n })\n .catch(() => {})\n .finally(() => {\n if (!cancelled) setLoading(false);\n });\n return () => {\n cancelled = true;\n };\n }, []);\n\n useEffect(() => load(), [load]);\n\n useEffect(() => {\n const handler = (event: Event) => {\n const detail = (event as CustomEvent).detail as\n | AgentLoopSettingsResponse\n | undefined;\n if (!detail?.maxIterations) return;\n setSettings(detail);\n setValue(String(detail.maxIterations));\n };\n window.addEventListener(\"agent-loop-settings:changed\", handler);\n return () =>\n window.removeEventListener(\"agent-loop-settings:changed\", handler);\n }, []);\n\n const numericValue = Number(value);\n const hasPendingChange =\n !!settings &&\n settings.canUpdate &&\n Number.isInteger(numericValue) &&\n numericValue !== settings.maxIterations;\n const scopeLabel =\n settings?.scope === \"org\"\n ? settings.orgName\n ? `${settings.orgName} organization`\n : \"organization\"\n : \"your account\";\n\n const save = async () => {\n if (!settings?.canUpdate) return;\n setSaving(true);\n setSaved(false);\n setError(null);\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/agent-loop-settings\"),\n {\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ maxIterations: numericValue }),\n },\n );\n const body = await res.json().catch(() => ({}));\n if (!res.ok) {\n throw new Error(body?.error ?? `Save failed (${res.status})`);\n }\n setSettings(body as AgentLoopSettingsResponse);\n setValue(String((body as AgentLoopSettingsResponse).maxIterations));\n setSaved(true);\n window.dispatchEvent(\n new CustomEvent(\"agent-loop-settings:changed\", { detail: body }),\n );\n setTimeout(() => setSaved(false), 2000);\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Save failed\");\n } finally {\n setSaving(false);\n }\n };\n\n const reset = async () => {\n if (!settings?.canUpdate) return;\n setSaving(true);\n setSaved(false);\n setError(null);\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/agent-loop-settings\"),\n { method: \"DELETE\" },\n );\n const body = await res.json().catch(() => ({}));\n if (!res.ok) {\n throw new Error(body?.error ?? `Reset failed (${res.status})`);\n }\n setSettings(body as AgentLoopSettingsResponse);\n setValue(String((body as AgentLoopSettingsResponse).maxIterations));\n window.dispatchEvent(\n new CustomEvent(\"agent-loop-settings:changed\", { detail: body }),\n );\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Reset failed\");\n } finally {\n setSaving(false);\n }\n };\n\n return (\n <SettingsSection\n icon={<IconGauge size={14} />}\n title=\"Agent Limits\"\n subtitle=\"Control how long a single agent response can work before pausing.\"\n connected={\n loading\n ? undefined\n : settings\n ? settings.maxIterations !== settings.defaultMaxIterations\n : false\n }\n open={open}\n onToggle={onToggle}\n >\n {loading ? (\n <SettingsSkeleton lines={2} />\n ) : settings ? (\n <div className=\"space-y-2\">\n <div className=\"rounded-md border border-border px-2.5 py-2 bg-accent/20\">\n <div className=\"flex items-center justify-between gap-2\">\n <div>\n <p className=\"text-[11px] font-medium text-foreground\">\n Max iterations\n </p>\n <p className=\"mt-0.5 text-[10px] text-muted-foreground\">\n Applies to {scopeLabel}. Default is{\" \"}\n {settings.defaultMaxIterations.toLocaleString()}.\n </p>\n </div>\n <span className=\"rounded-full bg-background px-2 py-0.5 text-[10px] font-medium text-muted-foreground\">\n {settings.source}\n </span>\n </div>\n <div className=\"mt-2 flex items-center gap-1.5\">\n <input\n type=\"number\"\n min={settings.minMaxIterations}\n max={settings.maxMaxIterations}\n value={value}\n disabled={!settings.canUpdate || saving}\n onChange={(e) => {\n setValue(e.target.value);\n setError(null);\n }}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" && hasPendingChange) void save();\n }}\n className=\"h-8 min-w-0 flex-1 rounded border border-border bg-background px-2 text-[11px] text-foreground outline-none focus:ring-1 focus:ring-accent disabled:opacity-60\"\n />\n <button\n type=\"button\"\n onClick={save}\n disabled={!hasPendingChange || saving}\n className=\"inline-flex h-8 items-center gap-1 rounded bg-accent px-2.5 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n <button\n type=\"button\"\n onClick={reset}\n disabled={\n !settings.canUpdate ||\n saving ||\n settings.maxIterations === settings.defaultMaxIterations\n }\n className=\"h-8 rounded border border-border px-2.5 text-[10px] font-medium text-muted-foreground hover:bg-accent/40 hover:text-foreground disabled:opacity-40\"\n >\n Reset\n </button>\n </div>\n {!settings.canUpdate && (\n <p className=\"mt-2 text-[10px] text-muted-foreground\">\n Only organization owners and admins can change this limit.\n </p>\n )}\n {error && (\n <p className=\"mt-2 text-[10px] text-destructive\">{error}</p>\n )}\n </div>\n </div>\n ) : (\n <p className=\"text-[10px] text-muted-foreground\">\n Agent limit settings are unavailable.\n </p>\n )}\n </SettingsSection>\n );\n}\n\n// ─── Main SettingsPanel ─────────────────────────────────────────────────────\n\nexport interface SettingsPanelProps {\n isDevMode: boolean;\n onToggleDevMode: () => void;\n showDevToggle: boolean;\n devAppUrl?: string;\n initialSection?: string | null;\n sectionRequestKey?: number;\n}\n\ntype SettingsSectionId =\n | \"account\"\n | \"llm\"\n | \"app-models\"\n | \"limits\"\n | \"voice\"\n | \"demo-mode\"\n | \"automations\"\n | \"secrets\"\n | \"hosting\"\n | \"database\"\n | \"uploads\"\n | \"auth\"\n | \"email\"\n | \"browser\"\n | \"background\"\n | \"integrations\"\n | \"usage\"\n | \"a2a\";\n\nconst SETTINGS_SECTION_IDS = new Set<SettingsSectionId>([\n \"account\",\n \"llm\",\n \"app-models\",\n \"limits\",\n \"voice\",\n \"demo-mode\",\n \"automations\",\n \"secrets\",\n \"hosting\",\n \"database\",\n \"uploads\",\n \"auth\",\n \"email\",\n \"browser\",\n \"background\",\n \"integrations\",\n \"usage\",\n \"a2a\",\n]);\n\nfunction normalizeSettingsSection(\n value?: string | null,\n): SettingsSectionId | null {\n const normalized = value?.replace(/^#/, \"\").toLowerCase() ?? \"\";\n if (!normalized) return null;\n if (normalized.startsWith(\"secrets\")) return \"secrets\";\n if (\n normalized === \"workspace\" ||\n normalized === \"workspace-settings\" ||\n normalized === \"organization\" ||\n normalized === \"org\"\n ) {\n return \"secrets\";\n }\n if (normalized === \"agent-engine\") return \"llm\";\n if (\n normalized === \"agent-model-defaults\" ||\n normalized === \"app-model-defaults\" ||\n normalized === \"models\"\n ) {\n return \"app-models\";\n }\n if (normalized === \"agent-limits\" || normalized === \"loop-settings\") {\n return \"limits\";\n }\n return SETTINGS_SECTION_IDS.has(normalized as SettingsSectionId)\n ? (normalized as SettingsSectionId)\n : null;\n}\n\nfunction settingsSectionDomId(section: SettingsSectionId): string {\n return `agent-settings-section-${section}`;\n}\n\nfunction initialOpenSection(): SettingsSectionId {\n if (typeof window === \"undefined\") return \"llm\";\n return normalizeSettingsSection(window.location.hash) ?? \"llm\";\n}\n\n// Agent capability modes. The internal values (\"production\"/\"development\") are\n// kept for back-compat with the AGENT_MODE wiring; only the visible labels\n// changed to \"App mode\" / \"Code mode\" so this control reads as the agent\n// capability it is — not the deployment environment (NODE_ENV).\nconst agentModeOptions: SettingsSelectOption[] = [\n {\n value: \"production\",\n label: \"App mode\",\n description:\n \"App tools only; code, bash, and files require Builder or a local clone.\",\n },\n {\n value: \"development\",\n label: \"Code mode\",\n description: \"Full access to code editing, bash, and files.\",\n },\n];\n\nfunction CapabilityStatusRow({\n label,\n value,\n active,\n}: {\n label: string;\n value: React.ReactNode;\n active: boolean;\n}) {\n return (\n <div className=\"flex items-center justify-between gap-2 text-[10px]\">\n <span className=\"flex items-center gap-1.5 text-muted-foreground\">\n <span\n className={`h-1.5 w-1.5 rounded-full ${active ? \"bg-green-500\" : \"bg-muted-foreground/30\"}`}\n aria-hidden=\"true\"\n />\n {label}\n </span>\n <span className=\"min-w-0 truncate text-end text-foreground\">{value}</span>\n </div>\n );\n}\n\nfunction CapabilityStatusStrip({\n isDevMode,\n builderConnected,\n builderLoading,\n builderBranchesAvailable,\n onOpenLlm,\n}: {\n isDevMode: boolean;\n builderConnected: boolean;\n builderLoading: boolean;\n builderBranchesAvailable: boolean;\n onOpenLlm: () => void;\n}) {\n const codeAvailable =\n isDevMode || (builderConnected && builderBranchesAvailable);\n const codeLabel = isDevMode\n ? \"Local tools\"\n : builderConnected && builderBranchesAvailable\n ? \"Builder branches\"\n : \"Desktop/local\";\n\n return (\n <div className=\"rounded-md border border-border bg-muted/20 px-2.5 py-2\">\n <div className=\"mb-1.5 text-[10px] font-medium text-muted-foreground\">\n Available now\n </div>\n <div className=\"space-y-1.5\">\n <CapabilityStatusRow label=\"App\" value=\"Chat + actions\" active />\n <CapabilityStatusRow\n label=\"Code\"\n value={codeLabel}\n active={codeAvailable}\n />\n <CapabilityStatusRow\n label=\"Builder\"\n active={builderConnected}\n value={\n builderLoading ? (\n \"Checking...\"\n ) : builderConnected ? (\n \"Connected\"\n ) : (\n <button\n type=\"button\"\n onClick={onOpenLlm}\n className=\"rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground transition-colors hover:bg-accent/40 hover:text-foreground\"\n >\n Connect\n </button>\n )\n }\n />\n </div>\n </div>\n );\n}\n\nfunction AccountSectionInner({\n open,\n onToggle,\n}: {\n open: boolean;\n onToggle: () => void;\n}) {\n const { session, isLoading } = useSession();\n const email = session?.email;\n const avatarUrl = useAvatarUrl(email);\n const fileInputRef = useRef<HTMLInputElement>(null);\n const [uploading, setUploading] = useState(false);\n const [status, setStatus] = useState<\"idle\" | \"saved\" | \"error\">(\"idle\");\n\n const displayName = session?.name || email || \"Signed out\";\n const initials = (session?.name || email || \"?\")\n .split(/[ @._-]+/)\n .filter(Boolean)\n .slice(0, 2)\n .map((part) => part[0]?.toUpperCase())\n .join(\"\");\n\n const handleAvatarChange = async (\n event: React.ChangeEvent<HTMLInputElement>,\n ) => {\n const file = event.target.files?.[0];\n event.target.value = \"\";\n if (!file || !email) return;\n setUploading(true);\n setStatus(\"idle\");\n try {\n await uploadAvatar(file, email);\n setStatus(\"saved\");\n } catch {\n setStatus(\"error\");\n } finally {\n setUploading(false);\n }\n };\n\n return (\n <SettingsSection\n icon={<IconUserCircle size={14} />}\n title=\"Account\"\n subtitle=\"Your profile photo and signed-in identity.\"\n open={open}\n onToggle={onToggle}\n >\n <div className=\"flex items-center gap-3\">\n <div className=\"flex h-12 w-12 shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-accent text-[13px] font-semibold text-muted-foreground\">\n {avatarUrl ? (\n <img\n src={avatarUrl}\n alt=\"\"\n className=\"h-full w-full object-cover\"\n />\n ) : (\n initials\n )}\n </div>\n <div className=\"min-w-0 flex-1\">\n <p className=\"truncate text-[12px] font-medium text-foreground\">\n {isLoading ? \"Loading...\" : displayName}\n </p>\n {email && (\n <p className=\"truncate text-[11px] text-muted-foreground\">\n {email}\n </p>\n )}\n {status === \"saved\" && (\n <p className=\"mt-1 text-[11px] text-green-600 dark:text-green-400\">\n Photo updated\n </p>\n )}\n {status === \"error\" && (\n <p className=\"mt-1 text-[11px] text-destructive\">\n Could not update photo\n </p>\n )}\n </div>\n <input\n ref={fileInputRef}\n type=\"file\"\n accept=\"image/*\"\n className=\"hidden\"\n onChange={handleAvatarChange}\n />\n <button\n type=\"button\"\n disabled={!email || uploading}\n onClick={() => fileInputRef.current?.click()}\n className=\"inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-border bg-background px-3 text-[12px] font-medium text-foreground transition-colors hover:bg-accent/50 disabled:cursor-not-allowed disabled:opacity-50\"\n >\n {uploading ? \"Uploading...\" : \"Change photo\"}\n </button>\n </div>\n </SettingsSection>\n );\n}\n\nexport function SettingsPanel({\n isDevMode,\n onToggleDevMode,\n showDevToggle,\n devAppUrl,\n initialSection,\n sectionRequestKey,\n}: SettingsPanelProps) {\n const { status: builder, loading: builderLoading } = useBuilderStatus();\n const connected = builder?.configured ?? false;\n const connectUrl = builder?.cliAuthUrl ?? builder?.connectUrl;\n const orgName = builder?.orgName;\n const envManaged = !!builder?.envManaged;\n const credentialSource = builder?.credentialSource;\n const builderBranchesAvailable = !!builder?.builderEnabled;\n const builderFlow = useBuilderConnectFlow({\n popupUrl: connectUrl,\n trackingSource: \"settings_panel_builder_card\",\n });\n\n // When opened via a `#secrets:<KEY>` hash, focus that specific secret input\n // inside the \"API Keys & Connections\" section.\n const [focusSecretKey, setFocusSecretKey] = useState<string | undefined>(\n undefined,\n );\n\n // Accordion: only one section open at a time (null = all closed)\n const [openSection, setOpenSection] = useState<string | null>(\n initialOpenSection,\n );\n const toggle = (id: string) =>\n setOpenSection((prev) => (prev === id ? null : id));\n\n const scrollSectionIntoView = useCallback((section: SettingsSectionId) => {\n window.requestAnimationFrame(() => {\n document.getElementById(settingsSectionDomId(section))?.scrollIntoView({\n block: \"start\",\n behavior: \"smooth\",\n });\n });\n }, []);\n\n const openSettingsSection = useCallback(\n (section: SettingsSectionId, scroll = false) => {\n setOpenSection(section);\n if (scroll) scrollSectionIntoView(section);\n },\n [scrollSectionIntoView],\n );\n\n useEffect(() => {\n const section = normalizeSettingsSection(initialSection);\n if (!section) return;\n if (section !== \"secrets\") setFocusSecretKey(undefined);\n openSettingsSection(section, true);\n }, [initialSection, sectionRequestKey, openSettingsSection]);\n\n // Support `#secrets:<KEY>` hash fragments from the onboarding CTA — opens\n // the section and focuses the matching input.\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n const handleHash = () => {\n const hash = window.location.hash?.replace(/^#/, \"\") ?? \"\";\n const section = normalizeSettingsSection(hash);\n if (!section) return;\n if (hash.startsWith(\"secrets:\") || hash === \"secrets\") {\n const key = hash.slice(\"secrets:\".length);\n setFocusSecretKey(key || undefined);\n } else {\n setFocusSecretKey(undefined);\n }\n openSettingsSection(section, true);\n };\n handleHash();\n window.addEventListener(\"hashchange\", handleHash);\n return () => window.removeEventListener(\"hashchange\", handleHash);\n }, [openSettingsSection]);\n\n return (\n <div\n className=\"flex-1 min-h-0 overflow-y-auto p-3 space-y-2\"\n style={{ overflowY: \"auto\" }}\n >\n {/* Agent capability mode (App vs Code) + app link */}\n {(showDevToggle || devAppUrl) && (\n <div className=\"space-y-2 pb-2 border-b border-border mb-2\">\n {showDevToggle && (\n <SettingsSelect\n label=\"Agent mode\"\n labelAdornment={\n devAppUrl ? (\n <Tooltip>\n <TooltipTrigger asChild>\n <a\n href={devAppUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-label=\"Open app in new tab\"\n className=\"flex items-center text-muted-foreground hover:text-foreground\"\n >\n <IconExternalLink size={14} />\n </a>\n </TooltipTrigger>\n <TooltipContent>Open app in new tab</TooltipContent>\n </Tooltip>\n ) : undefined\n }\n value={isDevMode ? \"development\" : \"production\"}\n options={agentModeOptions}\n onValueChange={(next) => {\n const nextIsDev = next === \"development\";\n if (nextIsDev !== isDevMode) onToggleDevMode();\n }}\n />\n )}\n </div>\n )}\n\n <CapabilityStatusStrip\n isDevMode={isDevMode}\n builderConnected={connected}\n builderLoading={builderLoading}\n builderBranchesAvailable={builderBranchesAvailable}\n onOpenLlm={() => openSettingsSection(\"llm\", true)}\n />\n\n {/* Account */}\n <AccountSectionInner\n open={openSection === \"account\"}\n onToggle={() => toggle(\"account\")}\n />\n\n {/* LLM */}\n <LLMSectionInner\n builderFlow={builderFlow}\n builderLoading={builderLoading}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n open={openSection === \"llm\"}\n onToggle={() => toggle(\"llm\")}\n />\n\n {/* App default model */}\n <AppModelDefaultsSectionInner\n open={openSection === \"app-models\"}\n onToggle={() => toggle(\"app-models\")}\n />\n\n {/* Agent limits */}\n <AgentLimitsSectionInner\n open={openSection === \"limits\"}\n onToggle={() => toggle(\"limits\")}\n />\n\n {/* Voice transcription */}\n <SettingsSection\n icon={<IconMicrophone size={14} />}\n title=\"Voice Transcription\"\n subtitle=\"How the composer microphone turns your voice into text.\"\n open={openSection === \"voice\"}\n onToggle={() => toggle(\"voice\")}\n >\n <VoiceTranscriptionSection />\n </SettingsSection>\n\n {/* Demo mode */}\n <SettingsSection\n icon={<IconEyeOff size={14} />}\n title=\"Demo mode\"\n subtitle=\"Replace names, emails, and numbers with realistic fake data everywhere — in the UI and what the agent sees. IDs and structure are preserved so the app keeps working.\"\n open={openSection === \"demo-mode\"}\n onToggle={() => toggle(\"demo-mode\")}\n >\n <DemoModeSection />\n </SettingsSection>\n\n {/* Automations */}\n <SettingsSection\n icon={<IconBolt size={14} />}\n title=\"Automations\"\n subtitle=\"Event-triggered and scheduled automations.\"\n open={openSection === \"automations\"}\n onToggle={() => toggle(\"automations\")}\n >\n <AutomationsSection />\n </SettingsSection>\n\n {/* API Keys & Connections */}\n <SettingsSection\n id={settingsSectionDomId(\"secrets\")}\n icon={<IconKey size={14} />}\n title=\"API Keys & Connections\"\n subtitle=\"Service credentials and automation keys.\"\n open={openSection === \"secrets\"}\n onToggle={() => toggle(\"secrets\")}\n >\n <SecretsSection focusKey={focusSecretKey} />\n </SettingsSection>\n\n {/* Hosting */}\n <SettingsSection\n icon={<IconCloud size={14} />}\n title=\"Hosting\"\n subtitle=\"Deploy your app to the cloud.\"\n connected={connected}\n open={openSection === \"hosting\"}\n onToggle={() => toggle(\"hosting\")}\n >\n <div className=\"space-y-2\">\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"hosting_settings\"\n trackingFlow=\"hosting\"\n />\n <ManualSetupCard\n hint=\"Deploy manually to Netlify, Vercel, Cloudflare, or any Nitro-supported target.\"\n docsUrl=\"https://www.builder.io/c/docs/agent-native-deployment\"\n dim={connected}\n />\n </div>\n </SettingsSection>\n\n {/* Database */}\n <SettingsSection\n icon={<IconDatabase size={14} />}\n title=\"Database\"\n subtitle=\"Connect a cloud database for persistent storage.\"\n connected={connected}\n open={openSection === \"database\"}\n onToggle={() => toggle(\"database\")}\n >\n <div className=\"space-y-2\">\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"database_settings\"\n trackingFlow=\"database\"\n />\n <ManualSetupCard\n hint=\"Set DATABASE_URL in your .env to connect Neon, Supabase, Turso, any Postgres/SQLite database, or local PGlite with pglite:./data/pglite.\"\n docsUrl=\"https://www.builder.io/c/docs/agent-native-database\"\n dim={connected}\n />\n </div>\n </SettingsSection>\n\n {/* File uploads */}\n <SettingsSection\n icon={<IconUpload size={14} />}\n title=\"File uploads\"\n subtitle=\"Where user-uploaded files (avatars, chat attachments) are stored.\"\n connected={connected}\n open={openSection === \"uploads\"}\n onToggle={() => toggle(\"uploads\")}\n >\n <div className=\"space-y-2\">\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"file_upload_settings\"\n trackingFlow=\"file_upload\"\n />\n <ManualSetupCard\n hint=\"Without a provider, files are stored as base64 in your database. Fine for dev, not recommended for production.\"\n docsUrl=\"https://www.builder.io/c/docs/agent-native-file-uploads\"\n dim={connected}\n />\n </div>\n </SettingsSection>\n\n {/* Authentication */}\n <SettingsSection\n icon={<IconShield size={14} />}\n title=\"Authentication\"\n subtitle=\"Set up user authentication and access control.\"\n connected={connected}\n open={openSection === \"auth\"}\n onToggle={() => toggle(\"auth\")}\n >\n <div className=\"space-y-2\">\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"auth_settings\"\n trackingFlow=\"auth\"\n />\n <ManualSetupCard\n hint=\"Configure Better Auth with BETTER_AUTH_SECRET and optional Google/GitHub OAuth providers.\"\n docsUrl=\"https://www.builder.io/c/docs/agent-native-authentication\"\n dim={connected}\n />\n </div>\n </SettingsSection>\n\n {/* Email */}\n <EmailSectionInner\n open={openSection === \"email\"}\n onToggle={() => toggle(\"email\")}\n />\n\n {/* Browser Automation */}\n <SettingsSection\n icon={<IconBrowser size={14} />}\n title=\"Browser Automation\"\n subtitle=\"Let agents control a real browser for web tasks.\"\n connected={connected}\n open={openSection === \"browser\"}\n onToggle={() => toggle(\"browser\")}\n >\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"browser_settings\"\n trackingFlow=\"browser_automation\"\n />\n </SettingsSection>\n\n {builderBranchesAvailable && (\n <SettingsSection\n icon={<IconGitBranch size={14} />}\n title=\"Background Agent\"\n subtitle=\"Make code changes from production mode via Builder.\"\n connected={connected}\n open={openSection === \"background\"}\n onToggle={() => toggle(\"background\")}\n >\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"background_agent_settings\"\n trackingFlow=\"background_agent\"\n />\n </SettingsSection>\n )}\n\n {/* Integrations */}\n <SettingsSection\n icon={<IconPlugConnected size={14} />}\n title=\"Integrations\"\n subtitle=\"Connect messaging platforms and external services.\"\n open={openSection === \"integrations\"}\n onToggle={() => toggle(\"integrations\")}\n >\n <Suspense fallback={null}>\n <IntegrationsPanel />\n </Suspense>\n </SettingsSection>\n\n {/* Usage & spend */}\n <SettingsSection\n icon={<IconCoin size={14} />}\n title=\"Usage\"\n subtitle=\"Track token consumption and estimated cost — broken down by chat, automations, and background jobs.\"\n open={openSection === \"usage\"}\n onToggle={() => toggle(\"usage\")}\n >\n <UsageSection />\n </SettingsSection>\n\n {/* A2A Agents */}\n <SettingsSection\n icon={<IconTopologyRing2 size={14} />}\n title=\"Connected Agents (A2A)\"\n subtitle=\"Manage remote agents connected via the A2A protocol.\"\n open={openSection === \"a2a\"}\n onToggle={() => toggle(\"a2a\")}\n >\n <AgentsSection />\n </SettingsSection>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"SettingsPanel.js","sourceRoot":"","sources":["../../../src/client/settings/SettingsPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,aAAa,EACb,SAAS,EACT,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,QAAQ,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CAAC,MAAM,CAAC,OAAO,CAAC,YAE/B,KAAC,YAAY,KAAG,GACA,EAGlB,KAAC,eAAe,IACd,IAAI,EAAE,KAAC,iBAAiB,IAAC,IAAI,EAAE,EAAE,GAAI,EACrC,KAAK,EAAC,wBAAwB,EAC9B,QAAQ,EAAC,sDAAsD,EAC/D,IAAI,EAAE,WAAW,KAAK,KAAK,EAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,YAE7B,KAAC,aAAa,KAAG,GACD,IACd,CACP,CAAC;AACJ,CAAC","sourcesContent":["import * as SelectPrimitive from \"@radix-ui/react-select\";\nimport {\n IconChevronDown,\n IconChevronRight,\n IconCheck,\n IconExternalLink,\n IconBrain,\n IconBrowser,\n IconGitBranch,\n IconCloud,\n IconDatabase,\n IconShield,\n IconPlugConnected,\n IconTopologyRing2,\n IconLoader2,\n IconUpload,\n IconCoin,\n IconMail,\n IconKey,\n IconMicrophone,\n IconEyeOff,\n IconBolt,\n IconGauge,\n IconUserCircle,\n IconApps,\n} from \"@tabler/icons-react\";\nimport React, {\n Suspense,\n lazy,\n useState,\n useEffect,\n useCallback,\n useRef,\n} from \"react\";\n\nimport { PROVIDER_ENV_PLACEHOLDERS } from \"../../agent/engine/provider-env-vars.js\";\nimport { saveAgentEngineProviderSettings } from \"../agent-engine-key.js\";\nimport { agentNativePath } from \"../api-path.js\";\nimport { BuilderBMark } from \"../builder-mark.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\nimport { callAction } from \"../use-action.js\";\nimport { uploadAvatar, useAvatarUrl } from \"../use-avatar.js\";\nimport { useSession } from \"../use-session.js\";\nimport { AgentsSection } from \"./AgentsSection.js\";\nimport { AutomationsSection } from \"./AutomationsSection.js\";\nimport { DemoModeSection } from \"./DemoModeSection.js\";\nimport { SecretsSection } from \"./SecretsSection.js\";\nimport { SettingsSection } from \"./SettingsSection.js\";\nimport { UsageSection } from \"./UsageSection.js\";\nimport {\n type BuilderConnectFlow,\n useBuilderConnectFlow,\n useBuilderStatus,\n} from \"./useBuilderStatus.js\";\nimport { VoiceTranscriptionSection } from \"./VoiceTranscriptionSection.js\";\n\nconst IntegrationsPanel = lazy(() =>\n import(\"../integrations/IntegrationsPanel.js\").then((m) => ({\n default: m.IntegrationsPanel,\n })),\n);\n\n// ─── Shared helpers ─────────────────────────────────────────────────────────\n\nfunction SettingsSkeleton({ lines = 3 }: { lines?: number }) {\n return (\n <div className=\"space-y-3 animate-pulse\">\n {Array.from({ length: lines }, (_, i) => (\n <div key={i} className=\"space-y-1.5\">\n <div\n className=\"h-3 rounded bg-muted-foreground/10\"\n style={{ width: i === 0 ? \"30%\" : i === 1 ? \"100%\" : \"60%\" }}\n />\n {i < 2 && (\n <div className=\"h-9 rounded-md border border-border bg-muted-foreground/5\" />\n )}\n </div>\n ))}\n </div>\n );\n}\n\ninterface SettingsSelectOption {\n value: string;\n label: string;\n description?: string;\n}\n\nconst CONTROL_STYLE = {\n fontSize: 12,\n lineHeight: 1,\n} satisfies React.CSSProperties;\n\nfunction SettingsSelect({\n label,\n labelAdornment,\n value,\n options,\n onValueChange,\n}: {\n label: string;\n labelAdornment?: React.ReactNode;\n value: string;\n options: SettingsSelectOption[];\n onValueChange: (value: string) => void;\n}) {\n const selected = options.find((option) => option.value === value);\n\n return (\n <div className=\"space-y-1.5\">\n <div className=\"flex items-center justify-between\">\n <p className=\"text-[12px] font-medium text-foreground\">{label}</p>\n {labelAdornment}\n </div>\n <SelectPrimitive.Root value={value} onValueChange={onValueChange}>\n <SelectPrimitive.Trigger\n className=\"flex h-9 w-full items-center justify-between rounded-md border border-border bg-background px-3 text-start text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 data-[placeholder]:text-muted-foreground\"\n aria-label={label}\n style={CONTROL_STYLE}\n >\n <SelectPrimitive.Value>\n {selected?.label ?? value}\n </SelectPrimitive.Value>\n <SelectPrimitive.Icon asChild>\n <IconChevronDown size={14} className=\"text-muted-foreground\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n position=\"popper\"\n sideOffset={6}\n className=\"z-[9999] w-[var(--radix-select-trigger-width)] overflow-hidden rounded-lg border border-border bg-popover shadow-lg\"\n >\n <SelectPrimitive.Viewport className=\"p-1\">\n {options.map((option) => (\n <SelectPrimitive.Item\n key={option.value}\n value={option.value}\n className=\"relative flex w-full cursor-pointer select-none items-start gap-2 rounded-md px-8 py-2.5 text-[12px] outline-none data-[highlighted]:bg-accent/60 data-[state=checked]:bg-accent/40\"\n style={CONTROL_STYLE}\n >\n <span className=\"absolute start-2 top-2.5 flex h-4 w-4 items-center justify-center text-muted-foreground\">\n <SelectPrimitive.ItemIndicator>\n <IconCheck size={14} />\n </SelectPrimitive.ItemIndicator>\n </span>\n <div className=\"flex min-w-0 flex-col\">\n <SelectPrimitive.ItemText>\n <span className=\"text-foreground\">{option.label}</span>\n </SelectPrimitive.ItemText>\n {option.description ? (\n <span className=\"mt-0.5 text-[11px] leading-relaxed text-muted-foreground\">\n {option.description}\n </span>\n ) : null}\n </div>\n </SelectPrimitive.Item>\n ))}\n </SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n </SelectPrimitive.Root>\n </div>\n );\n}\n\n// ─── Disconnect button for the Builder card's connected state ───────────────\n//\n// Two-step confirmation: first click arms the button (\"Confirm?\"), second\n// click actually disconnects. Arm auto-reverts after 4s of idle so a user\n// who wandered off doesn't come back to a disconnect waiting for them.\n//\n// Hits /_agent-native/builder/disconnect which removes request-scoped\n// Builder credentials from app_secrets. Deployment env credentials are left\n// alone and remain as fallback. On success we dispatch\n// `agent-engine:configured-changed` so dependent cards refresh inline.\nfunction DisconnectBuilderButton() {\n const { status } = useBuilderStatus();\n const [phase, setPhase] = useState<\"idle\" | \"armed\" | \"busy\">(\"idle\");\n const [err, setErr] = useState<string | null>(null);\n const armedTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n const clearArmedTimer = useCallback(() => {\n if (armedTimerRef.current) {\n clearTimeout(armedTimerRef.current);\n armedTimerRef.current = null;\n }\n }, []);\n\n useEffect(() => {\n return () => clearArmedTimer();\n }, [clearArmedTimer]);\n\n const performDisconnect = useCallback(async () => {\n setPhase(\"busy\");\n setErr(null);\n clearArmedTimer();\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/builder/disconnect\"),\n {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n },\n );\n // Parse defensively — a nitro 404 fallback returns HTML, not JSON,\n // and res.json() on that would throw.\n const text = await res.text();\n let body: {\n ok?: boolean;\n error?: string;\n warnings?: Record<string, string>;\n } = {};\n if (text) {\n try {\n body = JSON.parse(text);\n } catch {\n // Non-JSON response — likely a 404/HTML fallback.\n }\n }\n if (!res.ok) {\n throw new Error(\n body.error ||\n `Failed (${res.status}). Is your dev server up to date?`,\n );\n }\n if (body.ok !== true) {\n throw new Error(body.error || \"Disconnect didn't confirm ok\");\n }\n if (body.warnings && Object.keys(body.warnings).length > 0) {\n // Disconnect flag persisted (we only reach here when ok:true), so\n // the user IS disconnected — but some ancillary cleanup failed.\n // Log so it's visible during dev; don't block the success path.\n console.warn(\n \"[builder-disconnect] completed with warnings:\",\n body.warnings,\n );\n }\n window.dispatchEvent(new CustomEvent(\"agent-engine:configured-changed\"));\n setPhase(\"idle\");\n } catch (e) {\n setErr(e instanceof Error ? e.message : \"Disconnect failed\");\n setPhase(\"idle\");\n }\n }, [clearArmedTimer]);\n\n const handleDisconnectClick = useCallback(() => {\n if (phase === \"busy\") return;\n if (phase === \"idle\") {\n // First click — arm the button. Auto-revert after 4s to avoid a\n // stale \"confirm\" state someone else could hit by accident.\n setPhase(\"armed\");\n setErr(null);\n clearArmedTimer();\n armedTimerRef.current = setTimeout(() => {\n setPhase(\"idle\");\n armedTimerRef.current = null;\n }, 4000);\n return;\n }\n // phase === \"armed\" — user confirmed, actually disconnect.\n void performDisconnect();\n }, [phase, performDisconnect, clearArmedTimer]);\n\n const handleCancel = useCallback(() => {\n clearArmedTimer();\n setPhase(\"idle\");\n }, [clearArmedTimer]);\n\n // When only the deploy fallback is active there is nothing request-scoped\n // for this button to remove. The early return MUST come after every hook\n // above to satisfy rules-of-hooks.\n if (status?.credentialSource === \"env\") return null;\n\n if (phase === \"armed\") {\n return (\n <>\n <button\n type=\"button\"\n onClick={handleDisconnectClick}\n className=\"inline-flex items-center gap-1 rounded border border-destructive/40 bg-destructive/10 px-2 py-0.5 text-[10px] font-medium text-destructive hover:bg-destructive/20\"\n >\n Confirm disconnect\n </button>\n <button\n type=\"button\"\n onClick={handleCancel}\n className=\"inline-flex items-center gap-1 rounded border border-border px-2 py-0.5 text-[10px] text-muted-foreground hover:text-foreground hover:bg-accent/40\"\n >\n Cancel\n </button>\n </>\n );\n }\n\n return (\n <>\n <button\n type=\"button\"\n onClick={handleDisconnectClick}\n disabled={phase === \"busy\"}\n className=\"inline-flex items-center gap-1 rounded border border-border px-2 py-0.5 text-[10px] text-muted-foreground hover:text-foreground hover:bg-accent/40 disabled:opacity-60 disabled:cursor-wait\"\n aria-busy={phase === \"busy\"}\n >\n {phase === \"busy\" ? (\n <>\n <IconLoader2 size={10} className=\"animate-spin\" />\n Disconnecting…\n </>\n ) : (\n \"Disconnect\"\n )}\n </button>\n {err && <span className=\"text-[10px] text-destructive\">{err}</span>}\n </>\n );\n}\n\n// ─── \"Connect Builder.io\" card (shared across all sections) ─────────────────\n\nfunction UseBuilderCard({\n builderFlow,\n connectUrl,\n connected,\n orgName,\n envManaged,\n credentialSource,\n trackingSource = \"settings_panel_builder_card\",\n trackingFlow = \"connect_llm\",\n label = \"Connect Builder.io\",\n subtitle = \"Free credits to start — no API key needed.\",\n dim,\n}: {\n builderFlow: BuilderConnectFlow;\n connectUrl?: string;\n connected: boolean;\n orgName?: string;\n envManaged?: boolean;\n credentialSource?: \"user\" | \"org\" | \"workspace\" | \"env\";\n trackingSource?: string;\n trackingFlow?: string;\n label?: string;\n subtitle?: string;\n dim?: boolean;\n}) {\n const effectiveConnected = connected || builderFlow.configured;\n const effectiveOrgName = builderFlow.orgName ?? orgName;\n const bgClass = dim ? \"\" : \"bg-accent/30\";\n\n if (effectiveConnected) {\n return (\n <div className={`rounded-md border border-border px-2.5 py-2 ${bgClass}`}>\n <div className=\"flex items-center justify-between\">\n <div className=\"text-[11px] font-medium text-foreground\">\n Builder.io\n </div>\n <span className=\"flex items-center gap-1 text-[10px] text-green-500\">\n <IconCheck size={10} />\n Connected\n </span>\n </div>\n {effectiveOrgName && (\n <p className=\"text-[10px] text-muted-foreground mt-0.5\">\n {effectiveOrgName}\n </p>\n )}\n {envManaged ? (\n <p className=\"text-[10px] text-muted-foreground mt-1\">\n {credentialSource === \"env\"\n ? \"Deployment fallback is available. Connect your own account to override it.\"\n : \"Using your connected Builder account. Deployment fallback is still available.\"}\n </p>\n ) : null}\n {connectUrl || credentialSource !== \"env\" ? (\n <div className=\"flex items-center gap-2 mt-2.5\">\n {connectUrl && (\n <button\n type=\"button\"\n onClick={() =>\n builderFlow.start({ trackingSource, trackingFlow })\n }\n disabled={builderFlow.connecting}\n className=\"inline-flex items-center gap-1 rounded border border-border px-2 py-0.5 text-[10px] no-underline text-muted-foreground hover:text-foreground hover:bg-accent/40 disabled:opacity-60\"\n >\n {builderFlow.connecting\n ? \"Connecting...\"\n : credentialSource === \"env\"\n ? \"Connect account\"\n : \"Reconnect\"}\n <IconExternalLink size={10} />\n </button>\n )}\n {credentialSource !== \"env\" ? <DisconnectBuilderButton /> : null}\n </div>\n ) : null}\n </div>\n );\n }\n\n if (!connectUrl) return null;\n\n return (\n <button\n type=\"button\"\n onClick={() => builderFlow.start({ trackingSource, trackingFlow })}\n disabled={builderFlow.connecting}\n className={`block w-full rounded-md border border-border px-3 py-3 text-start no-underline bg-gradient-to-br from-teal-500/10 via-transparent to-transparent hover:border-foreground/30 transition-colors disabled:cursor-wait disabled:opacity-70`}\n >\n <div className=\"flex items-start gap-2.5\">\n <div className=\"flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-foreground text-background\">\n <BuilderBMark className=\"h-3.5 w-3.5\" />\n </div>\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-1.5 flex-wrap\">\n <span className=\"text-[12px] font-semibold text-foreground\">\n {builderFlow.connecting ? \"Connecting Builder.io...\" : label}\n </span>\n {builderFlow.connecting && (\n <IconLoader2\n size={12}\n className=\"shrink-0 animate-spin text-muted-foreground\"\n />\n )}\n </div>\n <p className=\"text-[10.5px] text-muted-foreground mt-0.5 leading-snug\">\n {subtitle}\n </p>\n {builderFlow.error && (\n <p className=\"mt-1 text-[10px] text-destructive\">\n {builderFlow.error}\n </p>\n )}\n </div>\n <IconExternalLink\n size={12}\n className=\"shrink-0 text-muted-foreground mt-0.5\"\n />\n </div>\n </button>\n );\n}\n\n// ─── Manual setup card ──────────────────────────────────────────────────────\n\nfunction ManualSetupCard({\n hint,\n docsUrl,\n docsLabel = \"Read the docs\",\n children,\n dim,\n sourceBadge,\n}: {\n hint?: string;\n docsUrl?: string;\n docsLabel?: string;\n children?: React.ReactNode;\n dim?: boolean;\n /** Optional \"Connected via X\" badge shown in the header row. */\n sourceBadge?: string;\n}) {\n return (\n <div\n className={`rounded-md border border-border px-2.5 py-2 ${dim ? \"\" : \"bg-accent/30\"}`}\n >\n <div className=\"flex items-center justify-between mb-1\">\n <div className=\"text-[11px] font-medium text-foreground\">\n Set up manually\n </div>\n {sourceBadge ? (\n <span className=\"flex items-center gap-1 text-[10px] text-green-500\">\n <IconCheck size={10} />\n {sourceBadge}\n </span>\n ) : null}\n </div>\n {hint && (\n <p className=\"text-[10px] text-muted-foreground mb-1.5\">{hint}</p>\n )}\n {children}\n {docsUrl && (\n <a\n href={docsUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1 mt-1.5 rounded border border-border px-2.5 py-1 text-[10px] font-medium no-underline text-muted-foreground hover:text-foreground hover:bg-accent/40\"\n >\n {docsLabel}\n <IconExternalLink size={10} />\n </a>\n )}\n </div>\n );\n}\n\n// ─── LLM helpers ────────────────────────────────────────────────────────────\n\nfunction friendlyModelName(model: string): string {\n const claude = model.match(\n /^claude-(opus|sonnet|haiku)-(\\d+)-(\\d+)(?:-\\d{8,})?$/,\n );\n if (claude) {\n const tier = claude[1][0].toUpperCase() + claude[1].slice(1);\n return `${tier} ${claude[2]}.${claude[3]}`;\n }\n if (model.startsWith(\"gpt-\")) return `GPT-${model.slice(4)}`;\n if (/^o\\d/.test(model)) return model;\n const gemini = model.match(/^gemini-(.+?)(?:-preview)?$/);\n if (gemini) {\n const parts = gemini[1]\n .split(\"-\")\n .map((s) => s[0].toUpperCase() + s.slice(1))\n .join(\" \");\n return `Gemini ${parts}${model.endsWith(\"-preview\") ? \" (preview)\" : \"\"}`;\n }\n return model;\n}\n\ntype SettingsStatus = {\n engine: string;\n source: \"env\" | \"settings\";\n envVar: string | null;\n} | null;\n\nfunction computeSourceBadge(args: {\n settingsConfigured: boolean;\n settingsStatus: SettingsStatus;\n envConfigured: boolean;\n envVar: string | undefined;\n builderConnected: boolean;\n}): string | undefined {\n const { settingsConfigured, settingsStatus } = args;\n if (args.builderConnected) return \"Connected via Builder\";\n if (settingsConfigured) {\n if (settingsStatus?.source === \"env\") {\n return `Connected via ${settingsStatus.envVar ?? args.envVar ?? \"env\"}`;\n }\n return \"Connected via template (server-side)\";\n }\n if (args.envConfigured) return `Connected via ${args.envVar ?? \"env\"}`;\n return undefined;\n}\n\nfunction latestModelsOnly(models: string[]): string[] {\n const seen = new Set<string>();\n return models.filter((m) => {\n const claude = m.match(/^claude-(opus|sonnet|haiku)-/);\n if (claude) {\n if (seen.has(claude[1])) return false;\n seen.add(claude[1]);\n return true;\n }\n const gemini = m.match(/^gemini-(\\d+(?:\\.\\d+)?)-(.+?)(?:-preview)?$/);\n if (gemini) {\n const family = gemini[2];\n if (seen.has(`gemini-${family}`)) return false;\n seen.add(`gemini-${family}`);\n return true;\n }\n return true;\n });\n}\n\n// ─── LLM Section ────────────────────────────────────────────────────────────\n\ninterface EngineInfo {\n name: string;\n label: string;\n description: string;\n defaultModel: string;\n supportedModels: string[];\n requiredEnvVars: string[];\n installPackage?: string;\n packageInstalled?: boolean;\n}\n\nconst PROVIDER_DOCS: Record<string, string> = {\n anthropic: \"https://console.anthropic.com/settings/keys\",\n \"ai-sdk:anthropic\": \"https://console.anthropic.com/settings/keys\",\n \"ai-sdk:openai\": \"https://platform.openai.com/api-keys\",\n \"ai-sdk:google\": \"https://aistudio.google.com/apikey\",\n \"ai-sdk:openrouter\": \"https://openrouter.ai/keys\",\n \"ai-sdk:groq\": \"https://console.groq.com/keys\",\n \"ai-sdk:mistral\": \"https://console.mistral.ai/api-keys/\",\n \"ai-sdk:cohere\": \"https://dashboard.cohere.com/api-keys\",\n};\n\nfunction LLMSectionInner({\n builderFlow,\n builderLoading,\n connectUrl,\n connected,\n orgName,\n envManaged,\n credentialSource,\n open,\n onToggle,\n}: {\n builderFlow: BuilderConnectFlow;\n builderLoading?: boolean;\n connectUrl?: string;\n connected: boolean;\n orgName?: string;\n envManaged?: boolean;\n credentialSource?: \"user\" | \"org\" | \"workspace\" | \"env\";\n open?: boolean;\n onToggle?: () => void;\n}) {\n const [envKeys, setEnvKeys] = useState<\n Array<{ key: string; configured: boolean }>\n >([]);\n const [apiKey, setApiKey] = useState(\"\");\n const [saving, setSaving] = useState(false);\n const [saved, setSaved] = useState(false);\n const [engines, setEngines] = useState<EngineInfo[]>([]);\n const [currentEngine, setCurrentEngine] = useState(\"anthropic\");\n const [currentModel, setCurrentModel] = useState(\"\");\n const [selectedEngine, setSelectedEngine] = useState(\"anthropic\");\n const [selectedModel, setSelectedModel] = useState(\"\");\n const [baseUrl, setBaseUrl] = useState(\"\");\n const [baseUrlConfigured, setBaseUrlConfigured] = useState(false);\n const [clearBaseUrl, setClearBaseUrl] = useState(false);\n const [advancedOpen, setAdvancedOpen] = useState(false);\n const [applyNote, setApplyNote] = useState(false);\n const [testing, setTesting] = useState(false);\n const [testResult, setTestResult] = useState<\n | { ok: true; latencyMs: number; model: string }\n | { ok: false; error: string }\n | null\n >(null);\n const [settingsStatus, setSettingsStatus] = useState<SettingsStatus>(null);\n const [disconnectError, setDisconnectError] = useState<string | null>(null);\n const [envLoaded, setEnvLoaded] = useState(false);\n const [enginesLoaded, setEnginesLoaded] = useState(false);\n const [statusLoaded, setStatusLoaded] = useState(false);\n\n const initialLoading =\n !envLoaded || !enginesLoaded || !statusLoaded || !!builderLoading;\n\n useEffect(() => {\n fetch(agentNativePath(\"/_agent-native/env-status\"))\n .then((r) => (r.ok ? r.json() : []))\n .then(setEnvKeys)\n .catch(() => {})\n .finally(() => setEnvLoaded(true));\n }, [saved]);\n\n const notifyConfigChanged = useCallback(() => {\n window.dispatchEvent(new CustomEvent(\"agent-engine:configured-changed\"));\n }, []);\n\n const refreshSettingsStatus = useCallback(() => {\n fetch(agentNativePath(\"/_agent-native/agent-engine/status\"))\n .then((r) => (r.ok ? r.json() : null))\n .then((data) => {\n setBaseUrlConfigured(Boolean(data?.openAiBaseUrlConfigured));\n if (\n data?.configured &&\n typeof data.engine === \"string\" &&\n (data.source === \"env\" || data.source === \"settings\")\n ) {\n setSettingsStatus({\n engine: data.engine,\n source: data.source,\n envVar: typeof data.envVar === \"string\" ? data.envVar : null,\n });\n } else {\n setSettingsStatus(null);\n }\n })\n .catch(() => {})\n .finally(() => setStatusLoaded(true));\n }, []);\n\n useEffect(() => {\n refreshSettingsStatus();\n }, [refreshSettingsStatus]);\n\n useEffect(() => {\n callAction(\"manage-agent-engine\" as any, { action: \"list\" } as any)\n .then((data) => {\n if (!data) return;\n const engineData = data as {\n engines?: EngineInfo[];\n current?: { engine?: string; model?: string };\n };\n setEngines(engineData.engines ?? []);\n const cur = engineData.current ?? {};\n setCurrentEngine(cur.engine ?? \"anthropic\");\n setCurrentModel(cur.model ?? \"\");\n setSelectedEngine(cur.engine ?? \"anthropic\");\n setSelectedModel(cur.model ?? \"\");\n })\n .catch(() => {})\n .finally(() => setEnginesLoaded(true));\n }, []);\n\n const selectedEngineInfo = engines.find((e) => e.name === selectedEngine);\n const envVar = selectedEngineInfo?.requiredEnvVars?.[0];\n const selectedEnginePackageInstalled =\n selectedEngineInfo?.packageInstalled !== false;\n const envConfigured = envVar\n ? (envKeys.find((k) => k.key === envVar)?.configured ?? false)\n : false;\n const settingsConfigured =\n settingsStatus != null && settingsStatus.engine === currentEngine;\n const builderConnected = connected || builderFlow.configured;\n const anyKeyConfigured =\n builderConnected ||\n (selectedEnginePackageInstalled && (envConfigured || settingsConfigured));\n const sourceBadge = computeSourceBadge({\n settingsConfigured,\n settingsStatus,\n envConfigured,\n envVar,\n builderConnected,\n });\n\n const engineChanged =\n selectedEngine !== currentEngine || selectedModel !== currentModel;\n const isOpenAiEngine = selectedEngine === \"ai-sdk:openai\";\n const endpointChanged = isOpenAiEngine && (!!baseUrl.trim() || clearBaseUrl);\n const providerSettingsChanged = !!apiKey.trim() || endpointChanged;\n\n // Hide the Anthropic-via-AI-SDK alias (redundant with the native entry)\n // and Ollama (no API key to set here). The currently-selected engine is\n // always kept so a stale setting doesn't vanish from the picker.\n const providerOptions: SettingsSelectOption[] = engines\n .filter(\n (e) =>\n e.name === selectedEngine ||\n (e.name !== \"ai-sdk:anthropic\" && e.name !== \"ai-sdk:ollama\"),\n )\n .map((e) => ({ value: e.name, label: e.label }));\n\n const modelOptions: SettingsSelectOption[] = latestModelsOnly(\n selectedEngineInfo?.supportedModels ?? [],\n ).map((m) => ({ value: m, label: friendlyModelName(m) }));\n\n const handleSave = async () => {\n if (!providerSettingsChanged || !envVar) return;\n setSaving(true);\n try {\n const nextBaseUrl = isOpenAiEngine ? baseUrl.trim() : \"\";\n await saveAgentEngineProviderSettings({\n key: envVar,\n ...(apiKey.trim() ? { apiKey } : {}),\n ...(nextBaseUrl ? { baseUrl: nextBaseUrl } : {}),\n ...(isOpenAiEngine && clearBaseUrl ? { clearBaseUrl: true } : {}),\n });\n setSaved(true);\n setApiKey(\"\");\n setBaseUrl(\"\");\n setClearBaseUrl(false);\n if (nextBaseUrl) setBaseUrlConfigured(true);\n if (clearBaseUrl) setBaseUrlConfigured(false);\n refreshSettingsStatus();\n notifyConfigChanged();\n setTimeout(() => setSaved(false), 2000);\n } finally {\n setSaving(false);\n }\n };\n\n const handleDisconnect = async () => {\n setDisconnectError(null);\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/agent-engine/disconnect\"),\n {\n method: \"POST\",\n },\n );\n if (res.ok) {\n setTestResult(null);\n setApplyNote(false);\n refreshSettingsStatus();\n notifyConfigChanged();\n return;\n }\n const body = (await res.json().catch(() => null)) as {\n error?: string;\n } | null;\n setDisconnectError(\n body?.error ??\n (res.status === 401\n ? \"You must be signed in to disconnect.\"\n : `Disconnect failed (HTTP ${res.status})`),\n );\n } catch (err) {\n setDisconnectError(err instanceof Error ? err.message : String(err));\n }\n };\n\n const handleTest = async () => {\n setTesting(true);\n setTestResult(null);\n try {\n const data = await callAction(\n \"manage-agent-engine\" as any,\n {\n action: \"test\",\n engine: selectedEngine,\n model: selectedModel || selectedEngineInfo?.defaultModel,\n } as any,\n );\n // Older action paths wrapped tool output in { result }. Accept either\n // shape while the action route normalizes JSON-string script output.\n const parsed =\n typeof data === \"string\"\n ? JSON.parse(data)\n : typeof data?.result === \"string\"\n ? JSON.parse(data.result)\n : data;\n if (parsed?.ok) {\n setTestResult({\n ok: true,\n latencyMs: parsed.latencyMs ?? 0,\n model: parsed.model ?? selectedModel,\n });\n } else {\n setTestResult({\n ok: false,\n error: parsed?.error ?? \"Test failed (no error message)\",\n });\n }\n } catch (err) {\n setTestResult({\n ok: false,\n error: err instanceof Error ? err.message : String(err),\n });\n } finally {\n setTesting(false);\n }\n };\n\n const handleApply = async () => {\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/actions/manage-agent-engine\"),\n {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({\n action: \"set\",\n engine: selectedEngine,\n model: selectedModel,\n }),\n },\n );\n if (res.ok) {\n setCurrentEngine(selectedEngine);\n setCurrentModel(selectedModel);\n setApplyNote(true);\n refreshSettingsStatus();\n notifyConfigChanged();\n setTimeout(() => setApplyNote(false), 4000);\n }\n } catch {}\n };\n\n return (\n <SettingsSection\n icon={<IconBrain size={14} />}\n title=\"LLM\"\n subtitle=\"Connect any major LLM — Claude, GPT, Gemini, and more.\"\n required\n connected={initialLoading ? undefined : anyKeyConfigured}\n open={open}\n onToggle={onToggle}\n >\n {initialLoading ? (\n <SettingsSkeleton lines={3} />\n ) : (\n <div className=\"space-y-2\">\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"llm_settings\"\n trackingFlow=\"connect_llm\"\n label=\"Connect Builder.io\"\n />\n {!builderConnected && (\n <ManualSetupCard\n hint=\"Choose your AI provider and model.\"\n docsUrl={PROVIDER_DOCS[selectedEngine]}\n sourceBadge={sourceBadge}\n docsLabel=\"Get an API key\"\n >\n <div className=\"space-y-2 mb-1\">\n <SettingsSelect\n label=\"Provider\"\n value={selectedEngine}\n options={providerOptions}\n onValueChange={(val) => {\n setSelectedEngine(val);\n const info = engines.find((e) => e.name === val);\n setSelectedModel(info?.defaultModel ?? \"\");\n setApiKey(\"\");\n setBaseUrl(\"\");\n setClearBaseUrl(false);\n setAdvancedOpen(false);\n }}\n />\n\n {/* Free-form input so OpenRouter/Ollama custom model IDs can\n be typed — the registry's supportedModels is only suggestions. */}\n <div className=\"space-y-1.5\">\n <p className=\"text-[12px] font-medium text-foreground\">\n Model\n </p>\n <input\n type=\"text\"\n list={`model-suggestions-${selectedEngine}`}\n value={selectedModel}\n onChange={(e) => setSelectedModel(e.target.value)}\n placeholder={\n selectedEngineInfo?.defaultModel ?? \"e.g. model-id\"\n }\n spellCheck={false}\n autoComplete=\"off\"\n className=\"flex h-9 w-full rounded-md border border-border bg-background px-3 text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 focus:ring-1 focus:ring-accent placeholder:text-muted-foreground/50\"\n style={CONTROL_STYLE}\n />\n {modelOptions.length > 0 && (\n <datalist id={`model-suggestions-${selectedEngine}`}>\n {modelOptions.map((opt) => (\n <option\n key={opt.value}\n value={opt.value}\n label={opt.label}\n />\n ))}\n </datalist>\n )}\n </div>\n\n {isOpenAiEngine && (\n <div className=\"border-t border-border/70 pt-2\">\n <button\n type=\"button\"\n onClick={() => setAdvancedOpen((v) => !v)}\n className=\"flex w-full cursor-pointer items-center justify-between gap-2 rounded px-0.5 py-1 text-left hover:text-foreground\"\n >\n <span className=\"inline-flex min-w-0 items-center gap-1.5 text-[11px] font-medium text-foreground\">\n {advancedOpen ? (\n <IconChevronDown size={12} />\n ) : (\n <IconChevronRight\n size={12}\n className=\"rtl:-scale-x-100\"\n />\n )}\n Advanced\n </span>\n <span className=\"truncate text-[10px] text-muted-foreground\">\n OpenAI-compatible endpoint\n </span>\n </button>\n\n {advancedOpen && (\n <div className=\"mt-1.5 space-y-1.5\">\n <div className=\"flex items-center justify-between gap-2\">\n <p className=\"text-[12px] font-medium text-foreground\">\n Endpoint URL\n </p>\n <span className=\"text-[10px] text-muted-foreground\">\n {baseUrlConfigured ? \"Configured\" : \"Optional\"}\n </span>\n </div>\n <input\n type=\"url\"\n value={baseUrl}\n onChange={(e) => {\n setBaseUrl(e.target.value);\n if (e.target.value.trim()) setClearBaseUrl(false);\n }}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") handleSave();\n }}\n placeholder={\n baseUrlConfigured\n ? \"Leave blank to keep current endpoint\"\n : \"https://gateway.example/v1\"\n }\n disabled={clearBaseUrl}\n spellCheck={false}\n autoComplete=\"off\"\n className=\"flex h-9 w-full rounded-md border border-border bg-background px-3 text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 focus:ring-1 focus:ring-accent disabled:opacity-50 placeholder:text-muted-foreground/50\"\n style={CONTROL_STYLE}\n />\n <p className=\"text-[10px] leading-relaxed text-muted-foreground\">\n Use for LiteLLM or another OpenAI-compatible chat\n gateway. Leave blank for OpenAI.\n </p>\n {baseUrlConfigured && (\n <label className=\"flex items-center gap-1.5 text-[10px] text-muted-foreground\">\n <input\n type=\"checkbox\"\n checked={clearBaseUrl}\n onChange={(e) => {\n setClearBaseUrl(e.target.checked);\n if (e.target.checked) setBaseUrl(\"\");\n }}\n className=\"h-3 w-3 accent-current\"\n />\n Clear saved endpoint override\n </label>\n )}\n {envVar && envConfigured && endpointChanged && (\n <button\n type=\"button\"\n onClick={handleSave}\n disabled={saving}\n className=\"rounded bg-accent px-2.5 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save endpoint\"\n )}\n </button>\n )}\n </div>\n )}\n </div>\n )}\n\n {envVar && envConfigured ? (\n <div className=\"flex items-center gap-1.5 text-[10px] text-green-500\">\n <IconCheck size={10} />\n {envVar} configured\n </div>\n ) : envVar ? (\n <div className=\"flex gap-1.5\">\n <input\n type=\"password\"\n value={apiKey}\n onChange={(e) => setApiKey(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") handleSave();\n }}\n placeholder={PROVIDER_ENV_PLACEHOLDERS[envVar] ?? \"...\"}\n className=\"flex-1 rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none placeholder:text-muted-foreground/50 focus:ring-1 focus:ring-accent\"\n />\n <button\n onClick={handleSave}\n disabled={!providerSettingsChanged || saving}\n className=\"rounded bg-accent px-2 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n </div>\n ) : null}\n\n <div className=\"flex items-center gap-2\">\n <button\n onClick={handleTest}\n disabled={testing}\n className=\"rounded border border-border px-2.5 py-1 text-[10px] font-medium text-foreground hover:bg-accent/40 disabled:opacity-40\"\n >\n {testing ? (\n <span className=\"flex items-center gap-1\">\n <IconLoader2 size={10} className=\"animate-spin\" />\n Testing…\n </span>\n ) : (\n \"Test\"\n )}\n </button>\n {engineChanged && (\n <button\n onClick={handleApply}\n className=\"rounded bg-accent px-2.5 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80\"\n >\n Apply\n </button>\n )}\n {settingsStatus != null && (\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n onClick={handleDisconnect}\n className=\"ms-auto rounded border border-border px-2.5 py-1 text-[10px] font-medium text-muted-foreground hover:bg-destructive/10 hover:text-destructive hover:border-destructive/40\"\n >\n Disconnect\n </button>\n </TooltipTrigger>\n <TooltipContent>\n Clear the saved engine — the app will fall back to the\n default until you re-apply.\n </TooltipContent>\n </Tooltip>\n )}\n </div>\n {testResult && testResult.ok && (\n <p className=\"flex items-center gap-1 text-[10px] text-green-500\">\n <IconCheck size={10} />\n Test passed — {testResult.latencyMs}ms\n </p>\n )}\n {testResult && testResult.ok === false && (\n <p className=\"text-[10px] text-destructive\">\n Test failed: {testResult.error}\n </p>\n )}\n {disconnectError && (\n <p className=\"text-[10px] text-destructive\">\n Disconnect failed: {disconnectError}\n </p>\n )}\n {applyNote && (\n <p className=\"text-[10px] text-muted-foreground\">\n Changes take effect on next conversation\n </p>\n )}\n </div>\n </ManualSetupCard>\n )}\n </div>\n )}\n </SettingsSection>\n );\n}\n\n// ─── App Default Model Section ──────────────────────────────────────────────\n\ninterface AppModelDefaultEngine extends EngineInfo {\n configured: boolean;\n}\n\ninterface AppModelDefaultsResponse {\n appId: string;\n engine: string | null;\n model: string | null;\n scope: \"org\" | \"user\" | \"default\";\n source: \"org\" | \"user\" | \"default\";\n canUpdate: boolean;\n orgId?: string | null;\n orgName?: string | null;\n role?: string | null;\n engines: AppModelDefaultEngine[];\n}\n\nfunction friendlyAppName(appId: string): string {\n return appId\n .split(\"-\")\n .filter(Boolean)\n .map((part) => part[0]?.toUpperCase() + part.slice(1))\n .join(\" \");\n}\n\nfunction AppModelDefaultsSectionInner({\n open,\n onToggle,\n}: {\n open?: boolean;\n onToggle?: () => void;\n}) {\n const [settings, setSettings] = useState<AppModelDefaultsResponse | null>(\n null,\n );\n const [selectedEngine, setSelectedEngine] = useState(\"\");\n const [selectedModel, setSelectedModel] = useState(\"\");\n const [loading, setLoading] = useState(true);\n const [saving, setSaving] = useState(false);\n const [saved, setSaved] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n const load = useCallback(() => {\n let cancelled = false;\n setLoading(true);\n fetch(agentNativePath(\"/_agent-native/agent-model-defaults\"))\n .then((r) => (r.ok ? r.json() : null))\n .then((data: AppModelDefaultsResponse | null) => {\n if (cancelled || !data) return;\n setSettings(data);\n const firstConfigured =\n data.engines.find((engine) => engine.configured) ?? data.engines[0];\n const nextEngine = data.engine ?? firstConfigured?.name ?? \"\";\n const nextEngineInfo =\n data.engines.find((engine) => engine.name === nextEngine) ??\n firstConfigured;\n setSelectedEngine(nextEngine);\n setSelectedModel(data.model ?? nextEngineInfo?.defaultModel ?? \"\");\n })\n .catch(() => {})\n .finally(() => {\n if (!cancelled) setLoading(false);\n });\n return () => {\n cancelled = true;\n };\n }, []);\n\n useEffect(() => load(), [load]);\n\n const selectedEngineInfo =\n settings?.engines.find((engine) => engine.name === selectedEngine) ?? null;\n const engineOptions: SettingsSelectOption[] = (settings?.engines ?? [])\n .filter(\n (engine) =>\n engine.name === selectedEngine ||\n (engine.name !== \"ai-sdk:anthropic\" && engine.name !== \"ai-sdk:ollama\"),\n )\n .map((engine) => ({\n value: engine.name,\n label:\n engine.name === \"builder\"\n ? \"Builder.io Gateway\"\n : engine.label || engine.name,\n description: engine.configured\n ? \"Configured for this workspace\"\n : engine.packageInstalled === false\n ? `Install ${engine.installPackage ?? \"the provider packages\"} to use this provider`\n : \"Credentials not detected yet\",\n }));\n const modelOptions: SettingsSelectOption[] = latestModelsOnly(\n selectedEngineInfo?.supportedModels ?? [],\n ).map((model) => ({ value: model, label: friendlyModelName(model) }));\n const hasPendingChange =\n !!settings &&\n settings.canUpdate &&\n !!selectedEngine &&\n !!selectedModel.trim() &&\n (selectedEngine !== settings.engine ||\n selectedModel.trim() !== settings.model);\n const hasAppDefault = settings?.source !== \"default\";\n const scopeLabel =\n settings?.scope === \"org\"\n ? settings.orgName\n ? `${settings.orgName} organization`\n : \"organization\"\n : \"your account\";\n\n const notifyChanged = () => {\n window.dispatchEvent(new CustomEvent(\"agent-engine:configured-changed\"));\n };\n\n const save = async () => {\n if (!hasPendingChange) return;\n setSaving(true);\n setSaved(false);\n setError(null);\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/agent-model-defaults\"),\n {\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({\n engine: selectedEngine,\n model: selectedModel.trim(),\n }),\n },\n );\n const body = await res.json().catch(() => ({}));\n if (!res.ok)\n throw new Error(body?.error ?? `Save failed (${res.status})`);\n const next = body as AppModelDefaultsResponse;\n setSettings(next);\n setSelectedEngine(next.engine ?? selectedEngine);\n setSelectedModel(next.model ?? selectedModel.trim());\n setSaved(true);\n notifyChanged();\n setTimeout(() => setSaved(false), 2000);\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Save failed\");\n } finally {\n setSaving(false);\n }\n };\n\n const reset = async () => {\n if (!settings?.canUpdate || !hasAppDefault) return;\n setSaving(true);\n setSaved(false);\n setError(null);\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/agent-model-defaults\"),\n { method: \"DELETE\" },\n );\n const body = await res.json().catch(() => ({}));\n if (!res.ok)\n throw new Error(body?.error ?? `Reset failed (${res.status})`);\n const next = body as AppModelDefaultsResponse;\n setSettings(next);\n const fallback = next.engines.find((engine) => engine.configured);\n setSelectedEngine(next.engine ?? fallback?.name ?? selectedEngine);\n setSelectedModel(next.model ?? fallback?.defaultModel ?? selectedModel);\n notifyChanged();\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Reset failed\");\n } finally {\n setSaving(false);\n }\n };\n\n return (\n <SettingsSection\n id={settingsSectionDomId(\"app-models\")}\n icon={<IconApps size={14} />}\n title=\"App Default Model\"\n subtitle=\"Choose the default model for this app/template when no one-off composer model is selected.\"\n connected={loading ? undefined : hasAppDefault}\n open={open}\n onToggle={onToggle}\n >\n {loading ? (\n <SettingsSkeleton lines={2} />\n ) : settings ? (\n <div className=\"space-y-2\">\n <div className=\"rounded-md border border-border bg-accent/20 px-2.5 py-2\">\n <div className=\"mb-2 flex items-center justify-between gap-2\">\n <div className=\"min-w-0\">\n <p className=\"truncate text-[11px] font-medium text-foreground\">\n {friendlyAppName(settings.appId) || \"This app\"}\n </p>\n <p className=\"mt-0.5 text-[10px] text-muted-foreground\">\n {hasAppDefault\n ? `Applies to ${scopeLabel}.`\n : \"Using the global LLM default.\"}\n </p>\n </div>\n <span className=\"shrink-0 rounded-full bg-background px-2 py-0.5 text-[10px] font-medium text-muted-foreground\">\n {settings.source}\n </span>\n </div>\n\n <div className=\"space-y-2\">\n <SettingsSelect\n label=\"Provider\"\n value={selectedEngine}\n options={engineOptions}\n onValueChange={(value) => {\n setSelectedEngine(value);\n const info = settings.engines.find(\n (engine) => engine.name === value,\n );\n setSelectedModel(info?.defaultModel ?? \"\");\n setError(null);\n }}\n />\n\n <div className=\"space-y-1.5\">\n <p className=\"text-[12px] font-medium text-foreground\">Model</p>\n <input\n type=\"text\"\n list={`app-model-suggestions-${selectedEngine}`}\n value={selectedModel}\n disabled={!settings.canUpdate || saving}\n onChange={(event) => {\n setSelectedModel(event.target.value);\n setError(null);\n }}\n onKeyDown={(event) => {\n if (event.key === \"Enter\" && hasPendingChange) void save();\n }}\n placeholder={selectedEngineInfo?.defaultModel ?? \"model-id\"}\n spellCheck={false}\n autoComplete=\"off\"\n className=\"flex h-9 w-full rounded-md border border-border bg-background px-3 text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 focus:ring-1 focus:ring-accent placeholder:text-muted-foreground/50 disabled:opacity-60\"\n style={CONTROL_STYLE}\n />\n {modelOptions.length > 0 && (\n <datalist id={`app-model-suggestions-${selectedEngine}`}>\n {modelOptions.map((option) => (\n <option\n key={option.value}\n value={option.value}\n label={option.label}\n />\n ))}\n </datalist>\n )}\n </div>\n\n <div className=\"flex items-center gap-1.5\">\n <button\n type=\"button\"\n onClick={save}\n disabled={!hasPendingChange || saving}\n className=\"inline-flex h-8 items-center gap-1 rounded bg-accent px-2.5 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n <button\n type=\"button\"\n onClick={reset}\n disabled={!settings.canUpdate || !hasAppDefault || saving}\n className=\"h-8 rounded border border-border px-2.5 text-[10px] font-medium text-muted-foreground hover:bg-accent/40 hover:text-foreground disabled:opacity-40\"\n >\n Reset\n </button>\n </div>\n </div>\n\n {!settings.canUpdate && (\n <p className=\"mt-2 text-[10px] text-muted-foreground\">\n Only organization owners and admins can change app model\n defaults.\n </p>\n )}\n {selectedEngineInfo?.packageInstalled === false ? (\n <p className=\"mt-2 text-[10px] text-muted-foreground\">\n This app does not include the optional runtime packages for this\n provider.\n </p>\n ) : selectedEngineInfo && !selectedEngineInfo.configured ? (\n <p className=\"mt-2 text-[10px] text-muted-foreground\">\n Credentials for this provider were not detected; runtime will\n fall back if the model cannot be used.\n </p>\n ) : null}\n {error && (\n <p className=\"mt-2 text-[10px] text-destructive\">{error}</p>\n )}\n </div>\n </div>\n ) : (\n <p className=\"text-[10px] text-muted-foreground\">\n App model defaults are unavailable.\n </p>\n )}\n </SettingsSection>\n );\n}\n\n// ─── Email Section ──────────────────────────────────────────────────────────\n\nfunction EmailSectionInner({\n open,\n onToggle,\n}: {\n open?: boolean;\n onToggle?: () => void;\n}) {\n const [envKeys, setEnvKeys] = useState<\n Array<{ key: string; configured: boolean }>\n >([]);\n const [resendKey, setResendKey] = useState(\"\");\n const [sendgridKey, setSendgridKey] = useState(\"\");\n const [fromAddr, setFromAddr] = useState(\"\");\n const [saving, setSaving] = useState(false);\n const [saved, setSaved] = useState(false);\n const [emailProvider, setEmailProvider] = useState<\"resend\" | \"sendgrid\">(\n \"resend\",\n );\n const [envLoaded, setEnvLoaded] = useState(false);\n\n useEffect(() => {\n fetch(agentNativePath(\"/_agent-native/env-status\"))\n .then((r) => (r.ok ? r.json() : []))\n .then(setEnvKeys)\n .catch(() => {})\n .finally(() => setEnvLoaded(true));\n }, [saved]);\n\n const resendConfigured =\n envKeys.find((k) => k.key === \"RESEND_API_KEY\")?.configured ?? false;\n const sendgridConfigured =\n envKeys.find((k) => k.key === \"SENDGRID_API_KEY\")?.configured ?? false;\n const fromConfigured =\n envKeys.find((k) => k.key === \"EMAIL_FROM\")?.configured ?? false;\n const anyConfigured = resendConfigured || sendgridConfigured;\n\n useEffect(() => {\n if (sendgridConfigured && !resendConfigured) {\n setEmailProvider(\"sendgrid\");\n }\n }, [resendConfigured, sendgridConfigured]);\n\n const save = async (vars: Array<{ key: string; value: string }>) => {\n setSaving(true);\n try {\n const res = await fetch(agentNativePath(\"/_agent-native/env-vars\"), {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ vars }),\n });\n if (res.ok) {\n setSaved(true);\n setResendKey(\"\");\n setSendgridKey(\"\");\n setFromAddr(\"\");\n setTimeout(() => setSaved(false), 2000);\n }\n } finally {\n setSaving(false);\n }\n };\n\n const saveResend = () => {\n const vars: Array<{ key: string; value: string }> = [];\n if (resendKey.trim())\n vars.push({ key: \"RESEND_API_KEY\", value: resendKey.trim() });\n if (fromAddr.trim())\n vars.push({ key: \"EMAIL_FROM\", value: fromAddr.trim() });\n if (vars.length) save(vars);\n };\n\n const saveSendgrid = () => {\n const vars: Array<{ key: string; value: string }> = [];\n if (sendgridKey.trim())\n vars.push({ key: \"SENDGRID_API_KEY\", value: sendgridKey.trim() });\n if (fromAddr.trim())\n vars.push({ key: \"EMAIL_FROM\", value: fromAddr.trim() });\n if (vars.length) save(vars);\n };\n\n return (\n <SettingsSection\n icon={<IconMail size={14} />}\n title=\"Email\"\n subtitle=\"Needed before deploy for password resets, team invitations, share notifications, and dashboard email reports. Local development can run without it.\"\n connected={!envLoaded ? undefined : anyConfigured}\n open={open}\n onToggle={onToggle}\n >\n {!envLoaded ? (\n <SettingsSkeleton lines={2} />\n ) : (\n <div className=\"space-y-2\">\n <label className=\"block space-y-1\">\n <span className=\"text-[10px] uppercase tracking-wide text-muted-foreground\">\n Provider\n </span>\n <select\n value={emailProvider}\n onChange={(e) =>\n setEmailProvider(e.target.value as \"resend\" | \"sendgrid\")\n }\n className=\"w-full rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none focus:ring-1 focus:ring-accent\"\n >\n <option value=\"resend\">Resend</option>\n <option value=\"sendgrid\">SendGrid</option>\n </select>\n </label>\n\n {emailProvider === \"resend\" ? (\n <ManualSetupCard\n hint=\"Use Resend for transactional email.\"\n docsUrl=\"https://resend.com/api-keys\"\n docsLabel=\"Get a Resend key\"\n >\n {resendConfigured ? (\n <div className=\"mb-1 flex items-center gap-1.5 text-[10px] text-green-500\">\n <IconCheck size={10} />\n RESEND_API_KEY configured\n </div>\n ) : (\n <div className=\"mb-1 flex gap-1.5\">\n <input\n type=\"password\"\n value={resendKey}\n onChange={(e) => setResendKey(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") saveResend();\n }}\n placeholder=\"re_...\"\n className=\"flex-1 rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none placeholder:text-muted-foreground/50 focus:ring-1 focus:ring-accent\"\n />\n <button\n onClick={saveResend}\n disabled={!resendKey.trim() || saving}\n className=\"rounded bg-accent px-2 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n </div>\n )}\n {fromConfigured ? (\n <div className=\"flex items-center gap-1.5 text-[10px] text-green-500\">\n <IconCheck size={10} />\n EMAIL_FROM configured\n </div>\n ) : (\n <div className=\"flex gap-1.5\">\n <input\n type=\"text\"\n value={fromAddr}\n onChange={(e) => setFromAddr(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") saveResend();\n }}\n placeholder=\"From address - e.g. Acme <hi@acme.com>\"\n className=\"flex-1 rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none placeholder:text-muted-foreground/50 focus:ring-1 focus:ring-accent\"\n />\n {!resendConfigured ? null : (\n <button\n onClick={saveResend}\n disabled={!fromAddr.trim() || saving}\n className=\"rounded bg-accent px-2 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n )}\n </div>\n )}\n </ManualSetupCard>\n ) : (\n <ManualSetupCard\n hint=\"Use SendGrid for transactional email. SendGrid requires a verified from address.\"\n docsUrl=\"https://app.sendgrid.com/settings/api_keys\"\n docsLabel=\"Get a SendGrid key\"\n >\n {sendgridConfigured ? (\n <div className=\"mb-1 flex items-center gap-1.5 text-[10px] text-green-500\">\n <IconCheck size={10} />\n SENDGRID_API_KEY configured\n </div>\n ) : (\n <div className=\"mb-1 flex gap-1.5\">\n <input\n type=\"password\"\n value={sendgridKey}\n onChange={(e) => setSendgridKey(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") saveSendgrid();\n }}\n placeholder=\"SG....\"\n className=\"flex-1 rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none placeholder:text-muted-foreground/50 focus:ring-1 focus:ring-accent\"\n />\n <button\n onClick={saveSendgrid}\n disabled={!sendgridKey.trim() || saving}\n className=\"rounded bg-accent px-2 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n </div>\n )}\n {fromConfigured ? (\n <div className=\"flex items-center gap-1.5 text-[10px] text-green-500\">\n <IconCheck size={10} />\n EMAIL_FROM configured\n </div>\n ) : (\n <div className=\"flex gap-1.5\">\n <input\n type=\"text\"\n value={fromAddr}\n onChange={(e) => setFromAddr(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") saveSendgrid();\n }}\n placeholder=\"From address - e.g. Acme <hi@acme.com>\"\n className=\"flex-1 rounded border border-border bg-background px-2 py-1 text-[11px] text-foreground outline-none placeholder:text-muted-foreground/50 focus:ring-1 focus:ring-accent\"\n />\n {!sendgridConfigured ? null : (\n <button\n onClick={saveSendgrid}\n disabled={!fromAddr.trim() || saving}\n className=\"rounded bg-accent px-2 py-1 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n )}\n </div>\n )}\n </ManualSetupCard>\n )}\n </div>\n )}\n </SettingsSection>\n );\n}\n\n// ─── Agent Limits Section ──────────────────────────────────────────────────\n\ninterface AgentLoopSettingsResponse {\n maxIterations: number;\n defaultMaxIterations: number;\n minMaxIterations: number;\n maxMaxIterations: number;\n scope: \"org\" | \"user\" | \"default\";\n source: \"org\" | \"user\" | \"env\" | \"default\";\n canUpdate: boolean;\n orgName?: string | null;\n role?: string | null;\n}\n\nfunction AgentLimitsSectionInner({\n open,\n onToggle,\n}: {\n open?: boolean;\n onToggle?: () => void;\n}) {\n const [settings, setSettings] = useState<AgentLoopSettingsResponse | null>(\n null,\n );\n const [value, setValue] = useState(\"\");\n const [loading, setLoading] = useState(true);\n const [saving, setSaving] = useState(false);\n const [saved, setSaved] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n const load = useCallback(() => {\n let cancelled = false;\n setLoading(true);\n fetch(agentNativePath(\"/_agent-native/agent-loop-settings\"))\n .then((r) => (r.ok ? r.json() : null))\n .then((data: AgentLoopSettingsResponse | null) => {\n if (cancelled || !data) return;\n setSettings(data);\n setValue(String(data.maxIterations));\n })\n .catch(() => {})\n .finally(() => {\n if (!cancelled) setLoading(false);\n });\n return () => {\n cancelled = true;\n };\n }, []);\n\n useEffect(() => load(), [load]);\n\n useEffect(() => {\n const handler = (event: Event) => {\n const detail = (event as CustomEvent).detail as\n | AgentLoopSettingsResponse\n | undefined;\n if (!detail?.maxIterations) return;\n setSettings(detail);\n setValue(String(detail.maxIterations));\n };\n window.addEventListener(\"agent-loop-settings:changed\", handler);\n return () =>\n window.removeEventListener(\"agent-loop-settings:changed\", handler);\n }, []);\n\n const numericValue = Number(value);\n const hasPendingChange =\n !!settings &&\n settings.canUpdate &&\n Number.isInteger(numericValue) &&\n numericValue !== settings.maxIterations;\n const scopeLabel =\n settings?.scope === \"org\"\n ? settings.orgName\n ? `${settings.orgName} organization`\n : \"organization\"\n : \"your account\";\n\n const save = async () => {\n if (!settings?.canUpdate) return;\n setSaving(true);\n setSaved(false);\n setError(null);\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/agent-loop-settings\"),\n {\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ maxIterations: numericValue }),\n },\n );\n const body = await res.json().catch(() => ({}));\n if (!res.ok) {\n throw new Error(body?.error ?? `Save failed (${res.status})`);\n }\n setSettings(body as AgentLoopSettingsResponse);\n setValue(String((body as AgentLoopSettingsResponse).maxIterations));\n setSaved(true);\n window.dispatchEvent(\n new CustomEvent(\"agent-loop-settings:changed\", { detail: body }),\n );\n setTimeout(() => setSaved(false), 2000);\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Save failed\");\n } finally {\n setSaving(false);\n }\n };\n\n const reset = async () => {\n if (!settings?.canUpdate) return;\n setSaving(true);\n setSaved(false);\n setError(null);\n try {\n const res = await fetch(\n agentNativePath(\"/_agent-native/agent-loop-settings\"),\n { method: \"DELETE\" },\n );\n const body = await res.json().catch(() => ({}));\n if (!res.ok) {\n throw new Error(body?.error ?? `Reset failed (${res.status})`);\n }\n setSettings(body as AgentLoopSettingsResponse);\n setValue(String((body as AgentLoopSettingsResponse).maxIterations));\n window.dispatchEvent(\n new CustomEvent(\"agent-loop-settings:changed\", { detail: body }),\n );\n } catch (err) {\n setError(err instanceof Error ? err.message : \"Reset failed\");\n } finally {\n setSaving(false);\n }\n };\n\n return (\n <SettingsSection\n icon={<IconGauge size={14} />}\n title=\"Agent Limits\"\n subtitle=\"Control how long a single agent response can work before pausing.\"\n connected={\n loading\n ? undefined\n : settings\n ? settings.maxIterations !== settings.defaultMaxIterations\n : false\n }\n open={open}\n onToggle={onToggle}\n >\n {loading ? (\n <SettingsSkeleton lines={2} />\n ) : settings ? (\n <div className=\"space-y-2\">\n <div className=\"rounded-md border border-border px-2.5 py-2 bg-accent/20\">\n <div className=\"flex items-center justify-between gap-2\">\n <div>\n <p className=\"text-[11px] font-medium text-foreground\">\n Max iterations\n </p>\n <p className=\"mt-0.5 text-[10px] text-muted-foreground\">\n Applies to {scopeLabel}. Default is{\" \"}\n {settings.defaultMaxIterations.toLocaleString()}.\n </p>\n </div>\n <span className=\"rounded-full bg-background px-2 py-0.5 text-[10px] font-medium text-muted-foreground\">\n {settings.source}\n </span>\n </div>\n <div className=\"mt-2 flex items-center gap-1.5\">\n <input\n type=\"number\"\n min={settings.minMaxIterations}\n max={settings.maxMaxIterations}\n value={value}\n disabled={!settings.canUpdate || saving}\n onChange={(e) => {\n setValue(e.target.value);\n setError(null);\n }}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" && hasPendingChange) void save();\n }}\n className=\"h-8 min-w-0 flex-1 rounded border border-border bg-background px-2 text-[11px] text-foreground outline-none focus:ring-1 focus:ring-accent disabled:opacity-60\"\n />\n <button\n type=\"button\"\n onClick={save}\n disabled={!hasPendingChange || saving}\n className=\"inline-flex h-8 items-center gap-1 rounded bg-accent px-2.5 text-[10px] font-medium text-foreground hover:bg-accent/80 disabled:opacity-40\"\n >\n {saving ? (\n <IconLoader2 size={10} className=\"animate-spin\" />\n ) : saved ? (\n <IconCheck size={10} />\n ) : (\n \"Save\"\n )}\n </button>\n <button\n type=\"button\"\n onClick={reset}\n disabled={\n !settings.canUpdate ||\n saving ||\n settings.maxIterations === settings.defaultMaxIterations\n }\n className=\"h-8 rounded border border-border px-2.5 text-[10px] font-medium text-muted-foreground hover:bg-accent/40 hover:text-foreground disabled:opacity-40\"\n >\n Reset\n </button>\n </div>\n {!settings.canUpdate && (\n <p className=\"mt-2 text-[10px] text-muted-foreground\">\n Only organization owners and admins can change this limit.\n </p>\n )}\n {error && (\n <p className=\"mt-2 text-[10px] text-destructive\">{error}</p>\n )}\n </div>\n </div>\n ) : (\n <p className=\"text-[10px] text-muted-foreground\">\n Agent limit settings are unavailable.\n </p>\n )}\n </SettingsSection>\n );\n}\n\n// ─── Main SettingsPanel ─────────────────────────────────────────────────────\n\nexport interface SettingsPanelProps {\n isDevMode: boolean;\n onToggleDevMode: () => void;\n showDevToggle: boolean;\n devAppUrl?: string;\n initialSection?: string | null;\n sectionRequestKey?: number;\n}\n\ntype SettingsSectionId =\n | \"account\"\n | \"llm\"\n | \"app-models\"\n | \"limits\"\n | \"voice\"\n | \"demo-mode\"\n | \"automations\"\n | \"secrets\"\n | \"hosting\"\n | \"database\"\n | \"uploads\"\n | \"auth\"\n | \"email\"\n | \"browser\"\n | \"background\"\n | \"integrations\"\n | \"usage\"\n | \"a2a\";\n\nconst SETTINGS_SECTION_IDS = new Set<SettingsSectionId>([\n \"account\",\n \"llm\",\n \"app-models\",\n \"limits\",\n \"voice\",\n \"demo-mode\",\n \"automations\",\n \"secrets\",\n \"hosting\",\n \"database\",\n \"uploads\",\n \"auth\",\n \"email\",\n \"browser\",\n \"background\",\n \"integrations\",\n \"usage\",\n \"a2a\",\n]);\n\nfunction normalizeSettingsSection(\n value?: string | null,\n): SettingsSectionId | null {\n const normalized = value?.replace(/^#/, \"\").toLowerCase() ?? \"\";\n if (!normalized) return null;\n if (normalized.startsWith(\"secrets\")) return \"secrets\";\n if (\n normalized === \"workspace\" ||\n normalized === \"workspace-settings\" ||\n normalized === \"organization\" ||\n normalized === \"org\"\n ) {\n return \"secrets\";\n }\n if (normalized === \"agent-engine\") return \"llm\";\n if (\n normalized === \"agent-model-defaults\" ||\n normalized === \"app-model-defaults\" ||\n normalized === \"models\"\n ) {\n return \"app-models\";\n }\n if (normalized === \"agent-limits\" || normalized === \"loop-settings\") {\n return \"limits\";\n }\n return SETTINGS_SECTION_IDS.has(normalized as SettingsSectionId)\n ? (normalized as SettingsSectionId)\n : null;\n}\n\nfunction settingsSectionDomId(section: SettingsSectionId): string {\n return `agent-settings-section-${section}`;\n}\n\nfunction initialOpenSection(): SettingsSectionId {\n if (typeof window === \"undefined\") return \"llm\";\n return normalizeSettingsSection(window.location.hash) ?? \"llm\";\n}\n\n// Agent capability modes. The internal values (\"production\"/\"development\") are\n// kept for back-compat with the AGENT_MODE wiring; only the visible labels\n// changed to \"App mode\" / \"Code mode\" so this control reads as the agent\n// capability it is — not the deployment environment (NODE_ENV).\nconst agentModeOptions: SettingsSelectOption[] = [\n {\n value: \"production\",\n label: \"App mode\",\n description:\n \"App tools only; code, bash, and files require Builder or a local clone.\",\n },\n {\n value: \"development\",\n label: \"Code mode\",\n description: \"Full access to code editing, bash, and files.\",\n },\n];\n\nfunction CapabilityStatusRow({\n label,\n value,\n active,\n}: {\n label: string;\n value: React.ReactNode;\n active: boolean;\n}) {\n return (\n <div className=\"flex items-center justify-between gap-2 text-[10px]\">\n <span className=\"flex items-center gap-1.5 text-muted-foreground\">\n <span\n className={`h-1.5 w-1.5 rounded-full ${active ? \"bg-green-500\" : \"bg-muted-foreground/30\"}`}\n aria-hidden=\"true\"\n />\n {label}\n </span>\n <span className=\"min-w-0 truncate text-end text-foreground\">{value}</span>\n </div>\n );\n}\n\nfunction CapabilityStatusStrip({\n isDevMode,\n builderConnected,\n builderLoading,\n builderBranchesAvailable,\n onOpenLlm,\n}: {\n isDevMode: boolean;\n builderConnected: boolean;\n builderLoading: boolean;\n builderBranchesAvailable: boolean;\n onOpenLlm: () => void;\n}) {\n const codeAvailable =\n isDevMode || (builderConnected && builderBranchesAvailable);\n const codeLabel = isDevMode\n ? \"Local tools\"\n : builderConnected && builderBranchesAvailable\n ? \"Builder branches\"\n : \"Desktop/local\";\n\n return (\n <div className=\"rounded-md border border-border bg-muted/20 px-2.5 py-2\">\n <div className=\"mb-1.5 text-[10px] font-medium text-muted-foreground\">\n Available now\n </div>\n <div className=\"space-y-1.5\">\n <CapabilityStatusRow label=\"App\" value=\"Chat + actions\" active />\n <CapabilityStatusRow\n label=\"Code\"\n value={codeLabel}\n active={codeAvailable}\n />\n <CapabilityStatusRow\n label=\"Builder\"\n active={builderConnected}\n value={\n builderLoading ? (\n \"Checking...\"\n ) : builderConnected ? (\n \"Connected\"\n ) : (\n <button\n type=\"button\"\n onClick={onOpenLlm}\n className=\"rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground transition-colors hover:bg-accent/40 hover:text-foreground\"\n >\n Connect\n </button>\n )\n }\n />\n </div>\n </div>\n );\n}\n\nfunction AccountSectionInner({\n open,\n onToggle,\n}: {\n open: boolean;\n onToggle: () => void;\n}) {\n const { session, isLoading } = useSession();\n const email = session?.email;\n const avatarUrl = useAvatarUrl(email);\n const fileInputRef = useRef<HTMLInputElement>(null);\n const [uploading, setUploading] = useState(false);\n const [status, setStatus] = useState<\"idle\" | \"saved\" | \"error\">(\"idle\");\n\n const displayName = session?.name || email || \"Signed out\";\n const initials = (session?.name || email || \"?\")\n .split(/[ @._-]+/)\n .filter(Boolean)\n .slice(0, 2)\n .map((part) => part[0]?.toUpperCase())\n .join(\"\");\n\n const handleAvatarChange = async (\n event: React.ChangeEvent<HTMLInputElement>,\n ) => {\n const file = event.target.files?.[0];\n event.target.value = \"\";\n if (!file || !email) return;\n setUploading(true);\n setStatus(\"idle\");\n try {\n await uploadAvatar(file, email);\n setStatus(\"saved\");\n } catch {\n setStatus(\"error\");\n } finally {\n setUploading(false);\n }\n };\n\n return (\n <SettingsSection\n icon={<IconUserCircle size={14} />}\n title=\"Account\"\n subtitle=\"Your profile photo and signed-in identity.\"\n open={open}\n onToggle={onToggle}\n >\n <div className=\"flex items-center gap-3\">\n <div className=\"flex h-12 w-12 shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-accent text-[13px] font-semibold text-muted-foreground\">\n {avatarUrl ? (\n <img\n src={avatarUrl}\n alt=\"\"\n className=\"h-full w-full object-cover\"\n />\n ) : (\n initials\n )}\n </div>\n <div className=\"min-w-0 flex-1\">\n <p className=\"truncate text-[12px] font-medium text-foreground\">\n {isLoading ? \"Loading...\" : displayName}\n </p>\n {email && (\n <p className=\"truncate text-[11px] text-muted-foreground\">\n {email}\n </p>\n )}\n {status === \"saved\" && (\n <p className=\"mt-1 text-[11px] text-green-600 dark:text-green-400\">\n Photo updated\n </p>\n )}\n {status === \"error\" && (\n <p className=\"mt-1 text-[11px] text-destructive\">\n Could not update photo\n </p>\n )}\n </div>\n <input\n ref={fileInputRef}\n type=\"file\"\n accept=\"image/*\"\n className=\"hidden\"\n onChange={handleAvatarChange}\n />\n <button\n type=\"button\"\n disabled={!email || uploading}\n onClick={() => fileInputRef.current?.click()}\n className=\"inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-border bg-background px-3 text-[12px] font-medium text-foreground transition-colors hover:bg-accent/50 disabled:cursor-not-allowed disabled:opacity-50\"\n >\n {uploading ? \"Uploading...\" : \"Change photo\"}\n </button>\n </div>\n </SettingsSection>\n );\n}\n\nexport function SettingsPanel({\n isDevMode,\n onToggleDevMode,\n showDevToggle,\n devAppUrl,\n initialSection,\n sectionRequestKey,\n}: SettingsPanelProps) {\n const { status: builder, loading: builderLoading } = useBuilderStatus();\n const connected = builder?.configured ?? false;\n const connectUrl = builder?.cliAuthUrl ?? builder?.connectUrl;\n const orgName = builder?.orgName;\n const envManaged = !!builder?.envManaged;\n const credentialSource = builder?.credentialSource;\n const builderBranchesAvailable = !!builder?.builderEnabled;\n const builderFlow = useBuilderConnectFlow({\n popupUrl: connectUrl,\n trackingSource: \"settings_panel_builder_card\",\n });\n\n // When opened via a `#secrets:<KEY>` hash, focus that specific secret input\n // inside the \"API Keys & Connections\" section.\n const [focusSecretKey, setFocusSecretKey] = useState<string | undefined>(\n undefined,\n );\n\n // Accordion: only one section open at a time (null = all closed)\n const [openSection, setOpenSection] = useState<string | null>(\n initialOpenSection,\n );\n const toggle = (id: string) =>\n setOpenSection((prev) => (prev === id ? null : id));\n\n const scrollSectionIntoView = useCallback((section: SettingsSectionId) => {\n window.requestAnimationFrame(() => {\n document.getElementById(settingsSectionDomId(section))?.scrollIntoView({\n block: \"start\",\n behavior: \"smooth\",\n });\n });\n }, []);\n\n const openSettingsSection = useCallback(\n (section: SettingsSectionId, scroll = false) => {\n setOpenSection(section);\n if (scroll) scrollSectionIntoView(section);\n },\n [scrollSectionIntoView],\n );\n\n useEffect(() => {\n const section = normalizeSettingsSection(initialSection);\n if (!section) return;\n if (section !== \"secrets\") setFocusSecretKey(undefined);\n openSettingsSection(section, true);\n }, [initialSection, sectionRequestKey, openSettingsSection]);\n\n // Support `#secrets:<KEY>` hash fragments from the onboarding CTA — opens\n // the section and focuses the matching input.\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n const handleHash = () => {\n const hash = window.location.hash?.replace(/^#/, \"\") ?? \"\";\n const section = normalizeSettingsSection(hash);\n if (!section) return;\n if (hash.startsWith(\"secrets:\") || hash === \"secrets\") {\n const key = hash.slice(\"secrets:\".length);\n setFocusSecretKey(key || undefined);\n } else {\n setFocusSecretKey(undefined);\n }\n openSettingsSection(section, true);\n };\n handleHash();\n window.addEventListener(\"hashchange\", handleHash);\n return () => window.removeEventListener(\"hashchange\", handleHash);\n }, [openSettingsSection]);\n\n return (\n <div\n className=\"flex-1 min-h-0 overflow-y-auto p-3 space-y-2\"\n style={{ overflowY: \"auto\" }}\n >\n {/* Agent capability mode (App vs Code) + app link */}\n {(showDevToggle || devAppUrl) && (\n <div className=\"space-y-2 pb-2 border-b border-border mb-2\">\n {showDevToggle && (\n <SettingsSelect\n label=\"Agent mode\"\n labelAdornment={\n devAppUrl ? (\n <Tooltip>\n <TooltipTrigger asChild>\n <a\n href={devAppUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-label=\"Open app in new tab\"\n className=\"flex items-center text-muted-foreground hover:text-foreground\"\n >\n <IconExternalLink size={14} />\n </a>\n </TooltipTrigger>\n <TooltipContent>Open app in new tab</TooltipContent>\n </Tooltip>\n ) : undefined\n }\n value={isDevMode ? \"development\" : \"production\"}\n options={agentModeOptions}\n onValueChange={(next) => {\n const nextIsDev = next === \"development\";\n if (nextIsDev !== isDevMode) onToggleDevMode();\n }}\n />\n )}\n </div>\n )}\n\n <CapabilityStatusStrip\n isDevMode={isDevMode}\n builderConnected={connected}\n builderLoading={builderLoading}\n builderBranchesAvailable={builderBranchesAvailable}\n onOpenLlm={() => openSettingsSection(\"llm\", true)}\n />\n\n {/* Account */}\n <AccountSectionInner\n open={openSection === \"account\"}\n onToggle={() => toggle(\"account\")}\n />\n\n {/* LLM */}\n <LLMSectionInner\n builderFlow={builderFlow}\n builderLoading={builderLoading}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n open={openSection === \"llm\"}\n onToggle={() => toggle(\"llm\")}\n />\n\n {/* App default model */}\n <AppModelDefaultsSectionInner\n open={openSection === \"app-models\"}\n onToggle={() => toggle(\"app-models\")}\n />\n\n {/* Agent limits */}\n <AgentLimitsSectionInner\n open={openSection === \"limits\"}\n onToggle={() => toggle(\"limits\")}\n />\n\n {/* Voice transcription */}\n <SettingsSection\n icon={<IconMicrophone size={14} />}\n title=\"Voice Transcription\"\n subtitle=\"How the composer microphone turns your voice into text.\"\n open={openSection === \"voice\"}\n onToggle={() => toggle(\"voice\")}\n >\n <VoiceTranscriptionSection />\n </SettingsSection>\n\n {/* Demo mode */}\n <SettingsSection\n icon={<IconEyeOff size={14} />}\n title=\"Demo mode\"\n subtitle=\"Replace names, emails, and numbers with realistic fake data everywhere — in the UI and what the agent sees. IDs and structure are preserved so the app keeps working.\"\n open={openSection === \"demo-mode\"}\n onToggle={() => toggle(\"demo-mode\")}\n >\n <DemoModeSection />\n </SettingsSection>\n\n {/* Automations */}\n <SettingsSection\n icon={<IconBolt size={14} />}\n title=\"Automations\"\n subtitle=\"Event-triggered and scheduled automations.\"\n open={openSection === \"automations\"}\n onToggle={() => toggle(\"automations\")}\n >\n <AutomationsSection />\n </SettingsSection>\n\n {/* API Keys & Connections */}\n <SettingsSection\n id={settingsSectionDomId(\"secrets\")}\n icon={<IconKey size={14} />}\n title=\"API Keys & Connections\"\n subtitle=\"Service credentials and automation keys.\"\n open={openSection === \"secrets\"}\n onToggle={() => toggle(\"secrets\")}\n >\n <SecretsSection focusKey={focusSecretKey} />\n </SettingsSection>\n\n {/* Hosting */}\n <SettingsSection\n icon={<IconCloud size={14} />}\n title=\"Hosting\"\n subtitle=\"Deploy your app to the cloud.\"\n connected={connected}\n open={openSection === \"hosting\"}\n onToggle={() => toggle(\"hosting\")}\n >\n <div className=\"space-y-2\">\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"hosting_settings\"\n trackingFlow=\"hosting\"\n />\n <ManualSetupCard\n hint=\"Deploy manually to Netlify, Vercel, Cloudflare, or any Nitro-supported target.\"\n docsUrl=\"https://www.builder.io/c/docs/agent-native-deployment\"\n dim={connected}\n />\n </div>\n </SettingsSection>\n\n {/* Database */}\n <SettingsSection\n icon={<IconDatabase size={14} />}\n title=\"Database\"\n subtitle=\"Connect a cloud database for persistent storage.\"\n connected={connected}\n open={openSection === \"database\"}\n onToggle={() => toggle(\"database\")}\n >\n <div className=\"space-y-2\">\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"database_settings\"\n trackingFlow=\"database\"\n />\n <ManualSetupCard\n hint=\"Set DATABASE_URL in your .env to connect Neon, Supabase, Turso, any Postgres/SQLite database, or local PGlite with pglite:./data/pglite.\"\n docsUrl=\"https://www.builder.io/c/docs/agent-native-database\"\n dim={connected}\n />\n </div>\n </SettingsSection>\n\n {/* File uploads */}\n <SettingsSection\n icon={<IconUpload size={14} />}\n title=\"File uploads\"\n subtitle=\"Where user-uploaded files (avatars, chat attachments) are stored.\"\n connected={connected}\n open={openSection === \"uploads\"}\n onToggle={() => toggle(\"uploads\")}\n >\n <div className=\"space-y-2\">\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"file_upload_settings\"\n trackingFlow=\"file_upload\"\n />\n <ManualSetupCard\n hint=\"Without a provider, files are stored as base64 in your database. Fine for dev, not recommended for production.\"\n docsUrl=\"https://www.builder.io/c/docs/agent-native-file-uploads\"\n dim={connected}\n />\n </div>\n </SettingsSection>\n\n {/* Authentication */}\n <SettingsSection\n icon={<IconShield size={14} />}\n title=\"Authentication\"\n subtitle=\"Set up user authentication and access control.\"\n connected={connected}\n open={openSection === \"auth\"}\n onToggle={() => toggle(\"auth\")}\n >\n <div className=\"space-y-2\">\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"auth_settings\"\n trackingFlow=\"auth\"\n />\n <ManualSetupCard\n hint=\"Configure Better Auth with BETTER_AUTH_SECRET and optional Google/GitHub OAuth providers.\"\n docsUrl=\"https://www.builder.io/c/docs/agent-native-authentication\"\n dim={connected}\n />\n </div>\n </SettingsSection>\n\n {/* Email */}\n <EmailSectionInner\n open={openSection === \"email\"}\n onToggle={() => toggle(\"email\")}\n />\n\n {/* Browser Automation */}\n <SettingsSection\n icon={<IconBrowser size={14} />}\n title=\"Browser Automation\"\n subtitle=\"Let agents control a real browser for web tasks.\"\n connected={connected}\n open={openSection === \"browser\"}\n onToggle={() => toggle(\"browser\")}\n >\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"browser_settings\"\n trackingFlow=\"browser_automation\"\n />\n </SettingsSection>\n\n {builderBranchesAvailable && (\n <SettingsSection\n icon={<IconGitBranch size={14} />}\n title=\"Background Agent\"\n subtitle=\"Make code changes from production mode via Builder.\"\n connected={connected}\n open={openSection === \"background\"}\n onToggle={() => toggle(\"background\")}\n >\n <UseBuilderCard\n builderFlow={builderFlow}\n connectUrl={connectUrl}\n connected={connected}\n orgName={orgName}\n envManaged={envManaged}\n credentialSource={credentialSource}\n trackingSource=\"background_agent_settings\"\n trackingFlow=\"background_agent\"\n />\n </SettingsSection>\n )}\n\n {/* Integrations */}\n <SettingsSection\n icon={<IconPlugConnected size={14} />}\n title=\"Integrations\"\n subtitle=\"Connect messaging platforms and external services.\"\n open={openSection === \"integrations\"}\n onToggle={() => toggle(\"integrations\")}\n >\n <Suspense fallback={null}>\n <IntegrationsPanel />\n </Suspense>\n </SettingsSection>\n\n {/* Usage & spend */}\n <SettingsSection\n icon={<IconCoin size={14} />}\n title=\"Usage\"\n subtitle=\"Track token consumption and estimated cost — broken down by chat, automations, and background jobs.\"\n open={openSection === \"usage\"}\n onToggle={() => toggle(\"usage\")}\n >\n <UsageSection />\n </SettingsSection>\n\n {/* A2A Agents */}\n <SettingsSection\n icon={<IconTopologyRing2 size={14} />}\n title=\"Connected Agents (A2A)\"\n subtitle=\"Manage remote agents connected via the A2A protocol.\"\n open={openSection === \"a2a\"}\n onToggle={() => toggle(\"a2a\")}\n >\n <AgentsSection />\n </SettingsSection>\n </div>\n );\n}\n"]}