@agent-native/core 0.76.5 → 0.76.6

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 (1706) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/core/CHANGELOG.md +8 -0
  3. package/corpus/core/docs/content/extensions.md +16 -0
  4. package/corpus/core/docs/content/locales/ar-SA/a2a-protocol.md +392 -0
  5. package/corpus/core/docs/content/locales/ar-SA/actions.md +583 -0
  6. package/corpus/core/docs/content/locales/ar-SA/agent-mentions.md +164 -0
  7. package/corpus/core/docs/content/locales/ar-SA/agent-surfaces.md +397 -0
  8. package/corpus/core/docs/content/locales/ar-SA/agent-teams.md +171 -0
  9. package/corpus/core/docs/content/locales/ar-SA/agent-web-surfaces.md +161 -0
  10. package/corpus/core/docs/content/locales/ar-SA/audit-log.md +111 -0
  11. package/corpus/core/docs/content/locales/ar-SA/authentication.md +332 -0
  12. package/corpus/core/docs/content/locales/ar-SA/automations.md +268 -0
  13. package/corpus/core/docs/content/locales/ar-SA/blueprint-installer.md +83 -0
  14. package/corpus/core/docs/content/locales/ar-SA/cli-adapters.md +129 -0
  15. package/corpus/core/docs/content/locales/ar-SA/client.md +398 -0
  16. package/corpus/core/docs/content/locales/ar-SA/cloneable-saas.md +114 -0
  17. package/corpus/core/docs/content/locales/ar-SA/code-agents-ui.md +436 -0
  18. package/corpus/core/docs/content/locales/ar-SA/components.md +368 -0
  19. package/corpus/core/docs/content/locales/ar-SA/context-awareness.md +373 -0
  20. package/corpus/core/docs/content/locales/ar-SA/creating-templates.md +411 -0
  21. package/corpus/core/docs/content/locales/ar-SA/cross-app-sso.md +185 -0
  22. package/corpus/core/docs/content/locales/ar-SA/database.md +183 -0
  23. package/corpus/core/docs/content/locales/ar-SA/deployment.md +349 -0
  24. package/corpus/core/docs/content/locales/ar-SA/dispatch.md +146 -0
  25. package/corpus/core/docs/content/locales/ar-SA/drop-in-agent.md +260 -0
  26. package/corpus/core/docs/content/locales/ar-SA/durable-resume.md +65 -0
  27. package/corpus/core/docs/content/locales/ar-SA/embedding-sdk.md +597 -0
  28. package/corpus/core/docs/content/locales/ar-SA/evals.md +155 -0
  29. package/corpus/core/docs/content/locales/ar-SA/extensions.md +360 -0
  30. package/corpus/core/docs/content/locales/ar-SA/external-agents.md +619 -0
  31. package/corpus/core/docs/content/locales/ar-SA/faq.md +142 -0
  32. package/corpus/core/docs/content/locales/ar-SA/file-uploads.md +122 -0
  33. package/corpus/core/docs/content/locales/ar-SA/frames.md +153 -0
  34. package/corpus/core/docs/content/locales/ar-SA/getting-started.md +199 -0
  35. package/corpus/core/docs/content/locales/ar-SA/harness-agents.md +349 -0
  36. package/corpus/core/docs/content/locales/ar-SA/human-approval.md +86 -0
  37. package/corpus/core/docs/content/locales/ar-SA/internationalization.md +68 -25
  38. package/corpus/core/docs/content/locales/ar-SA/key-concepts.md +312 -0
  39. package/corpus/core/docs/content/locales/ar-SA/local-file-mode.md +433 -0
  40. package/corpus/core/docs/content/locales/ar-SA/mcp-apps.md +147 -0
  41. package/corpus/core/docs/content/locales/ar-SA/mcp-clients.md +330 -0
  42. package/corpus/core/docs/content/locales/ar-SA/mcp-protocol.md +279 -0
  43. package/corpus/core/docs/content/locales/ar-SA/messaging.md +461 -0
  44. package/corpus/core/docs/content/locales/ar-SA/migration-workbench.md +33 -0
  45. package/corpus/core/docs/content/locales/ar-SA/multi-app-workspace.md +312 -0
  46. package/corpus/core/docs/content/locales/ar-SA/multi-tenancy.md +52 -0
  47. package/corpus/core/docs/content/locales/ar-SA/native-chat-ui.md +321 -0
  48. package/corpus/core/docs/content/locales/ar-SA/notifications.md +231 -0
  49. package/corpus/core/docs/content/locales/ar-SA/observability.md +294 -0
  50. package/corpus/core/docs/content/locales/ar-SA/observational-memory.md +77 -0
  51. package/corpus/core/docs/content/locales/ar-SA/onboarding.md +216 -0
  52. package/corpus/core/docs/content/locales/ar-SA/plan-plugin.md +200 -0
  53. package/corpus/core/docs/content/locales/ar-SA/pr-visual-recap.md +384 -0
  54. package/corpus/core/docs/content/locales/ar-SA/processors.md +106 -0
  55. package/corpus/core/docs/content/locales/ar-SA/progress.md +199 -0
  56. package/corpus/core/docs/content/locales/ar-SA/pure-agent-apps.md +39 -0
  57. package/corpus/core/docs/content/locales/ar-SA/real-time-collaboration.md +676 -0
  58. package/corpus/core/docs/content/locales/ar-SA/recurring-jobs.md +142 -0
  59. package/corpus/core/docs/content/locales/ar-SA/routing.md +79 -0
  60. package/corpus/core/docs/content/locales/ar-SA/sandbox-adapters.md +227 -0
  61. package/corpus/core/docs/content/locales/ar-SA/security.md +330 -0
  62. package/corpus/core/docs/content/locales/ar-SA/server.md +253 -0
  63. package/corpus/core/docs/content/locales/ar-SA/sharing.md +219 -0
  64. package/corpus/core/docs/content/locales/ar-SA/skills-guide.md +281 -0
  65. package/corpus/core/docs/content/locales/ar-SA/template-analytics.md +259 -0
  66. package/corpus/core/docs/content/locales/ar-SA/template-assets.md +303 -0
  67. package/corpus/core/docs/content/locales/ar-SA/template-brain.md +324 -0
  68. package/corpus/core/docs/content/locales/ar-SA/template-calendar.md +194 -0
  69. package/corpus/core/docs/content/locales/ar-SA/template-chat.md +129 -0
  70. package/corpus/core/docs/content/locales/ar-SA/template-clips.md +368 -0
  71. package/corpus/core/docs/content/locales/ar-SA/template-content.md +402 -0
  72. package/corpus/core/docs/content/locales/ar-SA/template-design.md +173 -0
  73. package/corpus/core/docs/content/locales/ar-SA/template-dispatch.md +220 -0
  74. package/corpus/core/docs/content/locales/ar-SA/template-forms.md +178 -0
  75. package/corpus/core/docs/content/locales/ar-SA/template-mail.md +239 -0
  76. package/corpus/core/docs/content/locales/ar-SA/template-plan.md +815 -0
  77. package/corpus/core/docs/content/locales/ar-SA/template-slides.md +293 -0
  78. package/corpus/core/docs/content/locales/ar-SA/template-videos.md +222 -0
  79. package/corpus/core/docs/content/locales/ar-SA/tracking.md +236 -0
  80. package/corpus/core/docs/content/locales/ar-SA/using-your-agent.md +71 -0
  81. package/corpus/core/docs/content/locales/ar-SA/voice-input.md +81 -0
  82. package/corpus/core/docs/content/locales/ar-SA/what-is-agent-native.md +202 -0
  83. package/corpus/core/docs/content/locales/ar-SA/workspace-connections.md +321 -0
  84. package/corpus/core/docs/content/locales/ar-SA/workspace-management.md +175 -0
  85. package/corpus/core/docs/content/locales/ar-SA/workspace.md +323 -0
  86. package/corpus/core/docs/content/locales/ar-SA/writing-agent-instructions.md +173 -0
  87. package/corpus/core/docs/content/locales/de-DE/a2a-protocol.md +392 -0
  88. package/corpus/core/docs/content/locales/de-DE/actions.md +583 -0
  89. package/corpus/core/docs/content/locales/de-DE/agent-mentions.md +164 -0
  90. package/corpus/core/docs/content/locales/de-DE/agent-surfaces.md +397 -0
  91. package/corpus/core/docs/content/locales/de-DE/agent-teams.md +171 -0
  92. package/corpus/core/docs/content/locales/de-DE/agent-web-surfaces.md +161 -0
  93. package/corpus/core/docs/content/locales/de-DE/audit-log.md +111 -0
  94. package/corpus/core/docs/content/locales/de-DE/authentication.md +332 -0
  95. package/corpus/core/docs/content/locales/de-DE/automations.md +268 -0
  96. package/corpus/core/docs/content/locales/de-DE/blueprint-installer.md +83 -0
  97. package/corpus/core/docs/content/locales/de-DE/cli-adapters.md +129 -0
  98. package/corpus/core/docs/content/locales/de-DE/client.md +398 -0
  99. package/corpus/core/docs/content/locales/de-DE/cloneable-saas.md +114 -0
  100. package/corpus/core/docs/content/locales/de-DE/code-agents-ui.md +436 -0
  101. package/corpus/core/docs/content/locales/de-DE/components.md +368 -0
  102. package/corpus/core/docs/content/locales/de-DE/context-awareness.md +373 -0
  103. package/corpus/core/docs/content/locales/de-DE/creating-templates.md +411 -0
  104. package/corpus/core/docs/content/locales/de-DE/cross-app-sso.md +185 -0
  105. package/corpus/core/docs/content/locales/de-DE/database.md +183 -0
  106. package/corpus/core/docs/content/locales/de-DE/deployment.md +349 -0
  107. package/corpus/core/docs/content/locales/de-DE/dispatch.md +146 -0
  108. package/corpus/core/docs/content/locales/de-DE/drop-in-agent.md +260 -0
  109. package/corpus/core/docs/content/locales/de-DE/durable-resume.md +65 -0
  110. package/corpus/core/docs/content/locales/de-DE/embedding-sdk.md +597 -0
  111. package/corpus/core/docs/content/locales/de-DE/evals.md +155 -0
  112. package/corpus/core/docs/content/locales/de-DE/extensions.md +360 -0
  113. package/corpus/core/docs/content/locales/de-DE/external-agents.md +619 -0
  114. package/corpus/core/docs/content/locales/de-DE/faq.md +142 -0
  115. package/corpus/core/docs/content/locales/de-DE/file-uploads.md +122 -0
  116. package/corpus/core/docs/content/locales/de-DE/frames.md +153 -0
  117. package/corpus/core/docs/content/locales/de-DE/getting-started.md +199 -0
  118. package/corpus/core/docs/content/locales/de-DE/harness-agents.md +349 -0
  119. package/corpus/core/docs/content/locales/de-DE/human-approval.md +86 -0
  120. package/corpus/core/docs/content/locales/de-DE/internationalization.md +65 -22
  121. package/corpus/core/docs/content/locales/de-DE/key-concepts.md +312 -0
  122. package/corpus/core/docs/content/locales/de-DE/local-file-mode.md +433 -0
  123. package/corpus/core/docs/content/locales/de-DE/mcp-apps.md +147 -0
  124. package/corpus/core/docs/content/locales/de-DE/mcp-clients.md +330 -0
  125. package/corpus/core/docs/content/locales/de-DE/mcp-protocol.md +279 -0
  126. package/corpus/core/docs/content/locales/de-DE/messaging.md +461 -0
  127. package/corpus/core/docs/content/locales/de-DE/migration-workbench.md +33 -0
  128. package/corpus/core/docs/content/locales/de-DE/multi-app-workspace.md +312 -0
  129. package/corpus/core/docs/content/locales/de-DE/multi-tenancy.md +52 -0
  130. package/corpus/core/docs/content/locales/de-DE/native-chat-ui.md +321 -0
  131. package/corpus/core/docs/content/locales/de-DE/notifications.md +231 -0
  132. package/corpus/core/docs/content/locales/de-DE/observability.md +294 -0
  133. package/corpus/core/docs/content/locales/de-DE/observational-memory.md +77 -0
  134. package/corpus/core/docs/content/locales/de-DE/onboarding.md +216 -0
  135. package/corpus/core/docs/content/locales/de-DE/plan-plugin.md +200 -0
  136. package/corpus/core/docs/content/locales/de-DE/pr-visual-recap.md +384 -0
  137. package/corpus/core/docs/content/locales/de-DE/processors.md +106 -0
  138. package/corpus/core/docs/content/locales/de-DE/progress.md +199 -0
  139. package/corpus/core/docs/content/locales/de-DE/pure-agent-apps.md +39 -0
  140. package/corpus/core/docs/content/locales/de-DE/real-time-collaboration.md +676 -0
  141. package/corpus/core/docs/content/locales/de-DE/recurring-jobs.md +142 -0
  142. package/corpus/core/docs/content/locales/de-DE/routing.md +79 -0
  143. package/corpus/core/docs/content/locales/de-DE/sandbox-adapters.md +227 -0
  144. package/corpus/core/docs/content/locales/de-DE/security.md +330 -0
  145. package/corpus/core/docs/content/locales/de-DE/server.md +253 -0
  146. package/corpus/core/docs/content/locales/de-DE/sharing.md +219 -0
  147. package/corpus/core/docs/content/locales/de-DE/skills-guide.md +281 -0
  148. package/corpus/core/docs/content/locales/de-DE/template-analytics.md +259 -0
  149. package/corpus/core/docs/content/locales/de-DE/template-assets.md +303 -0
  150. package/corpus/core/docs/content/locales/de-DE/template-brain.md +324 -0
  151. package/corpus/core/docs/content/locales/de-DE/template-calendar.md +194 -0
  152. package/corpus/core/docs/content/locales/de-DE/template-chat.md +129 -0
  153. package/corpus/core/docs/content/locales/de-DE/template-clips.md +368 -0
  154. package/corpus/core/docs/content/locales/de-DE/template-content.md +402 -0
  155. package/corpus/core/docs/content/locales/de-DE/template-design.md +173 -0
  156. package/corpus/core/docs/content/locales/de-DE/template-dispatch.md +220 -0
  157. package/corpus/core/docs/content/locales/de-DE/template-forms.md +178 -0
  158. package/corpus/core/docs/content/locales/de-DE/template-mail.md +239 -0
  159. package/corpus/core/docs/content/locales/de-DE/template-plan.md +814 -0
  160. package/corpus/core/docs/content/locales/de-DE/template-slides.md +293 -0
  161. package/corpus/core/docs/content/locales/de-DE/template-videos.md +222 -0
  162. package/corpus/core/docs/content/locales/de-DE/tracking.md +236 -0
  163. package/corpus/core/docs/content/locales/de-DE/using-your-agent.md +71 -0
  164. package/corpus/core/docs/content/locales/de-DE/voice-input.md +81 -0
  165. package/corpus/core/docs/content/locales/de-DE/what-is-agent-native.md +202 -0
  166. package/corpus/core/docs/content/locales/de-DE/workspace-connections.md +321 -0
  167. package/corpus/core/docs/content/locales/de-DE/workspace-management.md +175 -0
  168. package/corpus/core/docs/content/locales/de-DE/workspace.md +323 -0
  169. package/corpus/core/docs/content/locales/de-DE/writing-agent-instructions.md +173 -0
  170. package/corpus/core/docs/content/locales/es-ES/a2a-protocol.md +392 -0
  171. package/corpus/core/docs/content/locales/es-ES/actions.md +583 -0
  172. package/corpus/core/docs/content/locales/es-ES/agent-mentions.md +164 -0
  173. package/corpus/core/docs/content/locales/es-ES/agent-surfaces.md +397 -0
  174. package/corpus/core/docs/content/locales/es-ES/agent-teams.md +171 -0
  175. package/corpus/core/docs/content/locales/es-ES/agent-web-surfaces.md +161 -0
  176. package/corpus/core/docs/content/locales/es-ES/audit-log.md +111 -0
  177. package/corpus/core/docs/content/locales/es-ES/authentication.md +332 -0
  178. package/corpus/core/docs/content/locales/es-ES/automations.md +268 -0
  179. package/corpus/core/docs/content/locales/es-ES/blueprint-installer.md +83 -0
  180. package/corpus/core/docs/content/locales/es-ES/cli-adapters.md +129 -0
  181. package/corpus/core/docs/content/locales/es-ES/client.md +398 -0
  182. package/corpus/core/docs/content/locales/es-ES/cloneable-saas.md +114 -0
  183. package/corpus/core/docs/content/locales/es-ES/code-agents-ui.md +436 -0
  184. package/corpus/core/docs/content/locales/es-ES/components.md +368 -0
  185. package/corpus/core/docs/content/locales/es-ES/context-awareness.md +373 -0
  186. package/corpus/core/docs/content/locales/es-ES/creating-templates.md +411 -0
  187. package/corpus/core/docs/content/locales/es-ES/cross-app-sso.md +185 -0
  188. package/corpus/core/docs/content/locales/es-ES/database.md +183 -0
  189. package/corpus/core/docs/content/locales/es-ES/deployment.md +349 -0
  190. package/corpus/core/docs/content/locales/es-ES/dispatch.md +146 -0
  191. package/corpus/core/docs/content/locales/es-ES/drop-in-agent.md +260 -0
  192. package/corpus/core/docs/content/locales/es-ES/durable-resume.md +65 -0
  193. package/corpus/core/docs/content/locales/es-ES/embedding-sdk.md +597 -0
  194. package/corpus/core/docs/content/locales/es-ES/evals.md +155 -0
  195. package/corpus/core/docs/content/locales/es-ES/extensions.md +360 -0
  196. package/corpus/core/docs/content/locales/es-ES/external-agents.md +619 -0
  197. package/corpus/core/docs/content/locales/es-ES/faq.md +142 -0
  198. package/corpus/core/docs/content/locales/es-ES/file-uploads.md +122 -0
  199. package/corpus/core/docs/content/locales/es-ES/frames.md +153 -0
  200. package/corpus/core/docs/content/locales/es-ES/getting-started.md +199 -0
  201. package/corpus/core/docs/content/locales/es-ES/harness-agents.md +349 -0
  202. package/corpus/core/docs/content/locales/es-ES/human-approval.md +86 -0
  203. package/corpus/core/docs/content/locales/es-ES/internationalization.md +67 -24
  204. package/corpus/core/docs/content/locales/es-ES/key-concepts.md +312 -0
  205. package/corpus/core/docs/content/locales/es-ES/local-file-mode.md +433 -0
  206. package/corpus/core/docs/content/locales/es-ES/mcp-apps.md +147 -0
  207. package/corpus/core/docs/content/locales/es-ES/mcp-clients.md +330 -0
  208. package/corpus/core/docs/content/locales/es-ES/mcp-protocol.md +279 -0
  209. package/corpus/core/docs/content/locales/es-ES/messaging.md +461 -0
  210. package/corpus/core/docs/content/locales/es-ES/migration-workbench.md +33 -0
  211. package/corpus/core/docs/content/locales/es-ES/multi-app-workspace.md +312 -0
  212. package/corpus/core/docs/content/locales/es-ES/multi-tenancy.md +52 -0
  213. package/corpus/core/docs/content/locales/es-ES/native-chat-ui.md +321 -0
  214. package/corpus/core/docs/content/locales/es-ES/notifications.md +231 -0
  215. package/corpus/core/docs/content/locales/es-ES/observability.md +294 -0
  216. package/corpus/core/docs/content/locales/es-ES/observational-memory.md +77 -0
  217. package/corpus/core/docs/content/locales/es-ES/onboarding.md +216 -0
  218. package/corpus/core/docs/content/locales/es-ES/plan-plugin.md +200 -0
  219. package/corpus/core/docs/content/locales/es-ES/pr-visual-recap.md +384 -0
  220. package/corpus/core/docs/content/locales/es-ES/processors.md +106 -0
  221. package/corpus/core/docs/content/locales/es-ES/progress.md +199 -0
  222. package/corpus/core/docs/content/locales/es-ES/pure-agent-apps.md +39 -0
  223. package/corpus/core/docs/content/locales/es-ES/real-time-collaboration.md +676 -0
  224. package/corpus/core/docs/content/locales/es-ES/recurring-jobs.md +142 -0
  225. package/corpus/core/docs/content/locales/es-ES/routing.md +79 -0
  226. package/corpus/core/docs/content/locales/es-ES/sandbox-adapters.md +227 -0
  227. package/corpus/core/docs/content/locales/es-ES/security.md +330 -0
  228. package/corpus/core/docs/content/locales/es-ES/server.md +253 -0
  229. package/corpus/core/docs/content/locales/es-ES/sharing.md +219 -0
  230. package/corpus/core/docs/content/locales/es-ES/skills-guide.md +281 -0
  231. package/corpus/core/docs/content/locales/es-ES/template-analytics.md +259 -0
  232. package/corpus/core/docs/content/locales/es-ES/template-assets.md +303 -0
  233. package/corpus/core/docs/content/locales/es-ES/template-brain.md +324 -0
  234. package/corpus/core/docs/content/locales/es-ES/template-calendar.md +194 -0
  235. package/corpus/core/docs/content/locales/es-ES/template-chat.md +129 -0
  236. package/corpus/core/docs/content/locales/es-ES/template-clips.md +368 -0
  237. package/corpus/core/docs/content/locales/es-ES/template-content.md +402 -0
  238. package/corpus/core/docs/content/locales/es-ES/template-design.md +173 -0
  239. package/corpus/core/docs/content/locales/es-ES/template-dispatch.md +220 -0
  240. package/corpus/core/docs/content/locales/es-ES/template-forms.md +178 -0
  241. package/corpus/core/docs/content/locales/es-ES/template-mail.md +239 -0
  242. package/corpus/core/docs/content/locales/es-ES/template-plan.md +815 -0
  243. package/corpus/core/docs/content/locales/es-ES/template-slides.md +293 -0
  244. package/corpus/core/docs/content/locales/es-ES/template-videos.md +222 -0
  245. package/corpus/core/docs/content/locales/es-ES/tracking.md +236 -0
  246. package/corpus/core/docs/content/locales/es-ES/using-your-agent.md +71 -0
  247. package/corpus/core/docs/content/locales/es-ES/voice-input.md +81 -0
  248. package/corpus/core/docs/content/locales/es-ES/what-is-agent-native.md +202 -0
  249. package/corpus/core/docs/content/locales/es-ES/workspace-connections.md +321 -0
  250. package/corpus/core/docs/content/locales/es-ES/workspace-management.md +175 -0
  251. package/corpus/core/docs/content/locales/es-ES/workspace.md +323 -0
  252. package/corpus/core/docs/content/locales/es-ES/writing-agent-instructions.md +173 -0
  253. package/corpus/core/docs/content/locales/fr-FR/a2a-protocol.md +392 -0
  254. package/corpus/core/docs/content/locales/fr-FR/actions.md +583 -0
  255. package/corpus/core/docs/content/locales/fr-FR/agent-mentions.md +164 -0
  256. package/corpus/core/docs/content/locales/fr-FR/agent-surfaces.md +397 -0
  257. package/corpus/core/docs/content/locales/fr-FR/agent-teams.md +171 -0
  258. package/corpus/core/docs/content/locales/fr-FR/agent-web-surfaces.md +161 -0
  259. package/corpus/core/docs/content/locales/fr-FR/audit-log.md +111 -0
  260. package/corpus/core/docs/content/locales/fr-FR/authentication.md +332 -0
  261. package/corpus/core/docs/content/locales/fr-FR/automations.md +268 -0
  262. package/corpus/core/docs/content/locales/fr-FR/blueprint-installer.md +83 -0
  263. package/corpus/core/docs/content/locales/fr-FR/cli-adapters.md +129 -0
  264. package/corpus/core/docs/content/locales/fr-FR/client.md +398 -0
  265. package/corpus/core/docs/content/locales/fr-FR/cloneable-saas.md +114 -0
  266. package/corpus/core/docs/content/locales/fr-FR/code-agents-ui.md +436 -0
  267. package/corpus/core/docs/content/locales/fr-FR/components.md +368 -0
  268. package/corpus/core/docs/content/locales/fr-FR/context-awareness.md +373 -0
  269. package/corpus/core/docs/content/locales/fr-FR/creating-templates.md +411 -0
  270. package/corpus/core/docs/content/locales/fr-FR/cross-app-sso.md +185 -0
  271. package/corpus/core/docs/content/locales/fr-FR/database.md +183 -0
  272. package/corpus/core/docs/content/locales/fr-FR/deployment.md +349 -0
  273. package/corpus/core/docs/content/locales/fr-FR/dispatch.md +146 -0
  274. package/corpus/core/docs/content/locales/fr-FR/drop-in-agent.md +260 -0
  275. package/corpus/core/docs/content/locales/fr-FR/durable-resume.md +65 -0
  276. package/corpus/core/docs/content/locales/fr-FR/embedding-sdk.md +597 -0
  277. package/corpus/core/docs/content/locales/fr-FR/evals.md +155 -0
  278. package/corpus/core/docs/content/locales/fr-FR/extensions.md +360 -0
  279. package/corpus/core/docs/content/locales/fr-FR/external-agents.md +619 -0
  280. package/corpus/core/docs/content/locales/fr-FR/faq.md +142 -0
  281. package/corpus/core/docs/content/locales/fr-FR/file-uploads.md +122 -0
  282. package/corpus/core/docs/content/locales/fr-FR/frames.md +153 -0
  283. package/corpus/core/docs/content/locales/fr-FR/getting-started.md +199 -0
  284. package/corpus/core/docs/content/locales/fr-FR/harness-agents.md +349 -0
  285. package/corpus/core/docs/content/locales/fr-FR/human-approval.md +86 -0
  286. package/corpus/core/docs/content/locales/fr-FR/internationalization.md +67 -24
  287. package/corpus/core/docs/content/locales/fr-FR/key-concepts.md +312 -0
  288. package/corpus/core/docs/content/locales/fr-FR/local-file-mode.md +433 -0
  289. package/corpus/core/docs/content/locales/fr-FR/mcp-apps.md +147 -0
  290. package/corpus/core/docs/content/locales/fr-FR/mcp-clients.md +330 -0
  291. package/corpus/core/docs/content/locales/fr-FR/mcp-protocol.md +279 -0
  292. package/corpus/core/docs/content/locales/fr-FR/messaging.md +461 -0
  293. package/corpus/core/docs/content/locales/fr-FR/migration-workbench.md +33 -0
  294. package/corpus/core/docs/content/locales/fr-FR/multi-app-workspace.md +312 -0
  295. package/corpus/core/docs/content/locales/fr-FR/multi-tenancy.md +52 -0
  296. package/corpus/core/docs/content/locales/fr-FR/native-chat-ui.md +321 -0
  297. package/corpus/core/docs/content/locales/fr-FR/notifications.md +231 -0
  298. package/corpus/core/docs/content/locales/fr-FR/observability.md +294 -0
  299. package/corpus/core/docs/content/locales/fr-FR/observational-memory.md +77 -0
  300. package/corpus/core/docs/content/locales/fr-FR/onboarding.md +216 -0
  301. package/corpus/core/docs/content/locales/fr-FR/plan-plugin.md +200 -0
  302. package/corpus/core/docs/content/locales/fr-FR/pr-visual-recap.md +384 -0
  303. package/corpus/core/docs/content/locales/fr-FR/processors.md +106 -0
  304. package/corpus/core/docs/content/locales/fr-FR/progress.md +199 -0
  305. package/corpus/core/docs/content/locales/fr-FR/pure-agent-apps.md +39 -0
  306. package/corpus/core/docs/content/locales/fr-FR/real-time-collaboration.md +676 -0
  307. package/corpus/core/docs/content/locales/fr-FR/recurring-jobs.md +142 -0
  308. package/corpus/core/docs/content/locales/fr-FR/routing.md +79 -0
  309. package/corpus/core/docs/content/locales/fr-FR/sandbox-adapters.md +227 -0
  310. package/corpus/core/docs/content/locales/fr-FR/security.md +330 -0
  311. package/corpus/core/docs/content/locales/fr-FR/server.md +253 -0
  312. package/corpus/core/docs/content/locales/fr-FR/sharing.md +219 -0
  313. package/corpus/core/docs/content/locales/fr-FR/skills-guide.md +281 -0
  314. package/corpus/core/docs/content/locales/fr-FR/template-analytics.md +259 -0
  315. package/corpus/core/docs/content/locales/fr-FR/template-assets.md +303 -0
  316. package/corpus/core/docs/content/locales/fr-FR/template-brain.md +324 -0
  317. package/corpus/core/docs/content/locales/fr-FR/template-calendar.md +194 -0
  318. package/corpus/core/docs/content/locales/fr-FR/template-chat.md +129 -0
  319. package/corpus/core/docs/content/locales/fr-FR/template-clips.md +368 -0
  320. package/corpus/core/docs/content/locales/fr-FR/template-content.md +402 -0
  321. package/corpus/core/docs/content/locales/fr-FR/template-design.md +173 -0
  322. package/corpus/core/docs/content/locales/fr-FR/template-dispatch.md +220 -0
  323. package/corpus/core/docs/content/locales/fr-FR/template-forms.md +178 -0
  324. package/corpus/core/docs/content/locales/fr-FR/template-mail.md +239 -0
  325. package/corpus/core/docs/content/locales/fr-FR/template-plan.md +815 -0
  326. package/corpus/core/docs/content/locales/fr-FR/template-slides.md +293 -0
  327. package/corpus/core/docs/content/locales/fr-FR/template-videos.md +222 -0
  328. package/corpus/core/docs/content/locales/fr-FR/tracking.md +236 -0
  329. package/corpus/core/docs/content/locales/fr-FR/using-your-agent.md +71 -0
  330. package/corpus/core/docs/content/locales/fr-FR/voice-input.md +81 -0
  331. package/corpus/core/docs/content/locales/fr-FR/what-is-agent-native.md +202 -0
  332. package/corpus/core/docs/content/locales/fr-FR/workspace-connections.md +321 -0
  333. package/corpus/core/docs/content/locales/fr-FR/workspace-management.md +175 -0
  334. package/corpus/core/docs/content/locales/fr-FR/workspace.md +323 -0
  335. package/corpus/core/docs/content/locales/fr-FR/writing-agent-instructions.md +173 -0
  336. package/corpus/core/docs/content/locales/hi-IN/a2a-protocol.md +392 -0
  337. package/corpus/core/docs/content/locales/hi-IN/actions.md +583 -0
  338. package/corpus/core/docs/content/locales/hi-IN/agent-mentions.md +164 -0
  339. package/corpus/core/docs/content/locales/hi-IN/agent-surfaces.md +397 -0
  340. package/corpus/core/docs/content/locales/hi-IN/agent-teams.md +171 -0
  341. package/corpus/core/docs/content/locales/hi-IN/agent-web-surfaces.md +161 -0
  342. package/corpus/core/docs/content/locales/hi-IN/audit-log.md +111 -0
  343. package/corpus/core/docs/content/locales/hi-IN/authentication.md +332 -0
  344. package/corpus/core/docs/content/locales/hi-IN/automations.md +268 -0
  345. package/corpus/core/docs/content/locales/hi-IN/blueprint-installer.md +83 -0
  346. package/corpus/core/docs/content/locales/hi-IN/cli-adapters.md +129 -0
  347. package/corpus/core/docs/content/locales/hi-IN/client.md +398 -0
  348. package/corpus/core/docs/content/locales/hi-IN/cloneable-saas.md +114 -0
  349. package/corpus/core/docs/content/locales/hi-IN/code-agents-ui.md +436 -0
  350. package/corpus/core/docs/content/locales/hi-IN/components.md +368 -0
  351. package/corpus/core/docs/content/locales/hi-IN/context-awareness.md +373 -0
  352. package/corpus/core/docs/content/locales/hi-IN/creating-templates.md +411 -0
  353. package/corpus/core/docs/content/locales/hi-IN/cross-app-sso.md +185 -0
  354. package/corpus/core/docs/content/locales/hi-IN/database.md +183 -0
  355. package/corpus/core/docs/content/locales/hi-IN/deployment.md +349 -0
  356. package/corpus/core/docs/content/locales/hi-IN/dispatch.md +146 -0
  357. package/corpus/core/docs/content/locales/hi-IN/drop-in-agent.md +260 -0
  358. package/corpus/core/docs/content/locales/hi-IN/durable-resume.md +65 -0
  359. package/corpus/core/docs/content/locales/hi-IN/embedding-sdk.md +597 -0
  360. package/corpus/core/docs/content/locales/hi-IN/evals.md +155 -0
  361. package/corpus/core/docs/content/locales/hi-IN/extensions.md +360 -0
  362. package/corpus/core/docs/content/locales/hi-IN/external-agents.md +619 -0
  363. package/corpus/core/docs/content/locales/hi-IN/faq.md +142 -0
  364. package/corpus/core/docs/content/locales/hi-IN/file-uploads.md +122 -0
  365. package/corpus/core/docs/content/locales/hi-IN/frames.md +153 -0
  366. package/corpus/core/docs/content/locales/hi-IN/getting-started.md +199 -0
  367. package/corpus/core/docs/content/locales/hi-IN/harness-agents.md +349 -0
  368. package/corpus/core/docs/content/locales/hi-IN/human-approval.md +86 -0
  369. package/corpus/core/docs/content/locales/hi-IN/internationalization.md +70 -27
  370. package/corpus/core/docs/content/locales/hi-IN/key-concepts.md +312 -0
  371. package/corpus/core/docs/content/locales/hi-IN/local-file-mode.md +433 -0
  372. package/corpus/core/docs/content/locales/hi-IN/mcp-apps.md +147 -0
  373. package/corpus/core/docs/content/locales/hi-IN/mcp-clients.md +330 -0
  374. package/corpus/core/docs/content/locales/hi-IN/mcp-protocol.md +279 -0
  375. package/corpus/core/docs/content/locales/hi-IN/messaging.md +461 -0
  376. package/corpus/core/docs/content/locales/hi-IN/migration-workbench.md +33 -0
  377. package/corpus/core/docs/content/locales/hi-IN/multi-app-workspace.md +312 -0
  378. package/corpus/core/docs/content/locales/hi-IN/multi-tenancy.md +52 -0
  379. package/corpus/core/docs/content/locales/hi-IN/native-chat-ui.md +321 -0
  380. package/corpus/core/docs/content/locales/hi-IN/notifications.md +231 -0
  381. package/corpus/core/docs/content/locales/hi-IN/observability.md +294 -0
  382. package/corpus/core/docs/content/locales/hi-IN/observational-memory.md +77 -0
  383. package/corpus/core/docs/content/locales/hi-IN/onboarding.md +216 -0
  384. package/corpus/core/docs/content/locales/hi-IN/plan-plugin.md +200 -0
  385. package/corpus/core/docs/content/locales/hi-IN/pr-visual-recap.md +384 -0
  386. package/corpus/core/docs/content/locales/hi-IN/processors.md +106 -0
  387. package/corpus/core/docs/content/locales/hi-IN/progress.md +199 -0
  388. package/corpus/core/docs/content/locales/hi-IN/pure-agent-apps.md +39 -0
  389. package/corpus/core/docs/content/locales/hi-IN/real-time-collaboration.md +676 -0
  390. package/corpus/core/docs/content/locales/hi-IN/recurring-jobs.md +142 -0
  391. package/corpus/core/docs/content/locales/hi-IN/routing.md +79 -0
  392. package/corpus/core/docs/content/locales/hi-IN/sandbox-adapters.md +227 -0
  393. package/corpus/core/docs/content/locales/hi-IN/security.md +330 -0
  394. package/corpus/core/docs/content/locales/hi-IN/server.md +253 -0
  395. package/corpus/core/docs/content/locales/hi-IN/sharing.md +219 -0
  396. package/corpus/core/docs/content/locales/hi-IN/skills-guide.md +281 -0
  397. package/corpus/core/docs/content/locales/hi-IN/template-analytics.md +259 -0
  398. package/corpus/core/docs/content/locales/hi-IN/template-assets.md +303 -0
  399. package/corpus/core/docs/content/locales/hi-IN/template-brain.md +324 -0
  400. package/corpus/core/docs/content/locales/hi-IN/template-calendar.md +194 -0
  401. package/corpus/core/docs/content/locales/hi-IN/template-chat.md +129 -0
  402. package/corpus/core/docs/content/locales/hi-IN/template-clips.md +368 -0
  403. package/corpus/core/docs/content/locales/hi-IN/template-content.md +402 -0
  404. package/corpus/core/docs/content/locales/hi-IN/template-design.md +173 -0
  405. package/corpus/core/docs/content/locales/hi-IN/template-dispatch.md +220 -0
  406. package/corpus/core/docs/content/locales/hi-IN/template-forms.md +178 -0
  407. package/corpus/core/docs/content/locales/hi-IN/template-mail.md +239 -0
  408. package/corpus/core/docs/content/locales/hi-IN/template-plan.md +815 -0
  409. package/corpus/core/docs/content/locales/hi-IN/template-slides.md +293 -0
  410. package/corpus/core/docs/content/locales/hi-IN/template-videos.md +222 -0
  411. package/corpus/core/docs/content/locales/hi-IN/tracking.md +236 -0
  412. package/corpus/core/docs/content/locales/hi-IN/using-your-agent.md +71 -0
  413. package/corpus/core/docs/content/locales/hi-IN/voice-input.md +81 -0
  414. package/corpus/core/docs/content/locales/hi-IN/what-is-agent-native.md +202 -0
  415. package/corpus/core/docs/content/locales/hi-IN/workspace-connections.md +321 -0
  416. package/corpus/core/docs/content/locales/hi-IN/workspace-management.md +175 -0
  417. package/corpus/core/docs/content/locales/hi-IN/workspace.md +323 -0
  418. package/corpus/core/docs/content/locales/hi-IN/writing-agent-instructions.md +173 -0
  419. package/corpus/core/docs/content/locales/ja-JP/a2a-protocol.md +392 -0
  420. package/corpus/core/docs/content/locales/ja-JP/actions.md +583 -0
  421. package/corpus/core/docs/content/locales/ja-JP/agent-mentions.md +164 -0
  422. package/corpus/core/docs/content/locales/ja-JP/agent-surfaces.md +397 -0
  423. package/corpus/core/docs/content/locales/ja-JP/agent-teams.md +171 -0
  424. package/corpus/core/docs/content/locales/ja-JP/agent-web-surfaces.md +161 -0
  425. package/corpus/core/docs/content/locales/ja-JP/audit-log.md +111 -0
  426. package/corpus/core/docs/content/locales/ja-JP/authentication.md +332 -0
  427. package/corpus/core/docs/content/locales/ja-JP/automations.md +268 -0
  428. package/corpus/core/docs/content/locales/ja-JP/blueprint-installer.md +83 -0
  429. package/corpus/core/docs/content/locales/ja-JP/cli-adapters.md +129 -0
  430. package/corpus/core/docs/content/locales/ja-JP/client.md +398 -0
  431. package/corpus/core/docs/content/locales/ja-JP/cloneable-saas.md +114 -0
  432. package/corpus/core/docs/content/locales/ja-JP/code-agents-ui.md +436 -0
  433. package/corpus/core/docs/content/locales/ja-JP/components.md +368 -0
  434. package/corpus/core/docs/content/locales/ja-JP/context-awareness.md +373 -0
  435. package/corpus/core/docs/content/locales/ja-JP/creating-templates.md +411 -0
  436. package/corpus/core/docs/content/locales/ja-JP/cross-app-sso.md +185 -0
  437. package/corpus/core/docs/content/locales/ja-JP/database.md +183 -0
  438. package/corpus/core/docs/content/locales/ja-JP/deployment.md +349 -0
  439. package/corpus/core/docs/content/locales/ja-JP/dispatch.md +146 -0
  440. package/corpus/core/docs/content/locales/ja-JP/drop-in-agent.md +260 -0
  441. package/corpus/core/docs/content/locales/ja-JP/durable-resume.md +65 -0
  442. package/corpus/core/docs/content/locales/ja-JP/embedding-sdk.md +597 -0
  443. package/corpus/core/docs/content/locales/ja-JP/evals.md +155 -0
  444. package/corpus/core/docs/content/locales/ja-JP/extensions.md +360 -0
  445. package/corpus/core/docs/content/locales/ja-JP/external-agents.md +619 -0
  446. package/corpus/core/docs/content/locales/ja-JP/faq.md +142 -0
  447. package/corpus/core/docs/content/locales/ja-JP/file-uploads.md +122 -0
  448. package/corpus/core/docs/content/locales/ja-JP/frames.md +153 -0
  449. package/corpus/core/docs/content/locales/ja-JP/getting-started.md +199 -0
  450. package/corpus/core/docs/content/locales/ja-JP/harness-agents.md +349 -0
  451. package/corpus/core/docs/content/locales/ja-JP/human-approval.md +86 -0
  452. package/corpus/core/docs/content/locales/ja-JP/internationalization.md +54 -23
  453. package/corpus/core/docs/content/locales/ja-JP/key-concepts.md +312 -0
  454. package/corpus/core/docs/content/locales/ja-JP/local-file-mode.md +433 -0
  455. package/corpus/core/docs/content/locales/ja-JP/mcp-apps.md +147 -0
  456. package/corpus/core/docs/content/locales/ja-JP/mcp-clients.md +330 -0
  457. package/corpus/core/docs/content/locales/ja-JP/mcp-protocol.md +279 -0
  458. package/corpus/core/docs/content/locales/ja-JP/messaging.md +461 -0
  459. package/corpus/core/docs/content/locales/ja-JP/migration-workbench.md +33 -0
  460. package/corpus/core/docs/content/locales/ja-JP/multi-app-workspace.md +312 -0
  461. package/corpus/core/docs/content/locales/ja-JP/multi-tenancy.md +52 -0
  462. package/corpus/core/docs/content/locales/ja-JP/native-chat-ui.md +321 -0
  463. package/corpus/core/docs/content/locales/ja-JP/notifications.md +231 -0
  464. package/corpus/core/docs/content/locales/ja-JP/observability.md +294 -0
  465. package/corpus/core/docs/content/locales/ja-JP/observational-memory.md +77 -0
  466. package/corpus/core/docs/content/locales/ja-JP/onboarding.md +216 -0
  467. package/corpus/core/docs/content/locales/ja-JP/plan-plugin.md +200 -0
  468. package/corpus/core/docs/content/locales/ja-JP/pr-visual-recap.md +384 -0
  469. package/corpus/core/docs/content/locales/ja-JP/processors.md +106 -0
  470. package/corpus/core/docs/content/locales/ja-JP/progress.md +199 -0
  471. package/corpus/core/docs/content/locales/ja-JP/pure-agent-apps.md +39 -0
  472. package/corpus/core/docs/content/locales/ja-JP/real-time-collaboration.md +676 -0
  473. package/corpus/core/docs/content/locales/ja-JP/recurring-jobs.md +142 -0
  474. package/corpus/core/docs/content/locales/ja-JP/routing.md +79 -0
  475. package/corpus/core/docs/content/locales/ja-JP/sandbox-adapters.md +227 -0
  476. package/corpus/core/docs/content/locales/ja-JP/security.md +330 -0
  477. package/corpus/core/docs/content/locales/ja-JP/server.md +253 -0
  478. package/corpus/core/docs/content/locales/ja-JP/sharing.md +219 -0
  479. package/corpus/core/docs/content/locales/ja-JP/skills-guide.md +281 -0
  480. package/corpus/core/docs/content/locales/ja-JP/template-analytics.md +259 -0
  481. package/corpus/core/docs/content/locales/ja-JP/template-assets.md +303 -0
  482. package/corpus/core/docs/content/locales/ja-JP/template-brain.md +324 -0
  483. package/corpus/core/docs/content/locales/ja-JP/template-calendar.md +194 -0
  484. package/corpus/core/docs/content/locales/ja-JP/template-chat.md +129 -0
  485. package/corpus/core/docs/content/locales/ja-JP/template-clips.md +368 -0
  486. package/corpus/core/docs/content/locales/ja-JP/template-content.md +402 -0
  487. package/corpus/core/docs/content/locales/ja-JP/template-design.md +173 -0
  488. package/corpus/core/docs/content/locales/ja-JP/template-dispatch.md +220 -0
  489. package/corpus/core/docs/content/locales/ja-JP/template-forms.md +178 -0
  490. package/corpus/core/docs/content/locales/ja-JP/template-mail.md +239 -0
  491. package/corpus/core/docs/content/locales/ja-JP/template-plan.md +814 -0
  492. package/corpus/core/docs/content/locales/ja-JP/template-slides.md +293 -0
  493. package/corpus/core/docs/content/locales/ja-JP/template-videos.md +222 -0
  494. package/corpus/core/docs/content/locales/ja-JP/tracking.md +236 -0
  495. package/corpus/core/docs/content/locales/ja-JP/using-your-agent.md +71 -0
  496. package/corpus/core/docs/content/locales/ja-JP/voice-input.md +81 -0
  497. package/corpus/core/docs/content/locales/ja-JP/what-is-agent-native.md +202 -0
  498. package/corpus/core/docs/content/locales/ja-JP/workspace-connections.md +321 -0
  499. package/corpus/core/docs/content/locales/ja-JP/workspace-management.md +175 -0
  500. package/corpus/core/docs/content/locales/ja-JP/workspace.md +323 -0
  501. package/corpus/core/docs/content/locales/ja-JP/writing-agent-instructions.md +173 -0
  502. package/corpus/core/docs/content/locales/ko-KR/a2a-protocol.md +392 -0
  503. package/corpus/core/docs/content/locales/ko-KR/actions.md +583 -0
  504. package/corpus/core/docs/content/locales/ko-KR/agent-mentions.md +164 -0
  505. package/corpus/core/docs/content/locales/ko-KR/agent-surfaces.md +397 -0
  506. package/corpus/core/docs/content/locales/ko-KR/agent-teams.md +171 -0
  507. package/corpus/core/docs/content/locales/ko-KR/agent-web-surfaces.md +161 -0
  508. package/corpus/core/docs/content/locales/ko-KR/audit-log.md +111 -0
  509. package/corpus/core/docs/content/locales/ko-KR/authentication.md +332 -0
  510. package/corpus/core/docs/content/locales/ko-KR/automations.md +268 -0
  511. package/corpus/core/docs/content/locales/ko-KR/blueprint-installer.md +83 -0
  512. package/corpus/core/docs/content/locales/ko-KR/cli-adapters.md +129 -0
  513. package/corpus/core/docs/content/locales/ko-KR/client.md +398 -0
  514. package/corpus/core/docs/content/locales/ko-KR/cloneable-saas.md +114 -0
  515. package/corpus/core/docs/content/locales/ko-KR/code-agents-ui.md +436 -0
  516. package/corpus/core/docs/content/locales/ko-KR/components.md +368 -0
  517. package/corpus/core/docs/content/locales/ko-KR/context-awareness.md +373 -0
  518. package/corpus/core/docs/content/locales/ko-KR/creating-templates.md +411 -0
  519. package/corpus/core/docs/content/locales/ko-KR/cross-app-sso.md +187 -0
  520. package/corpus/core/docs/content/locales/ko-KR/database.md +183 -0
  521. package/corpus/core/docs/content/locales/ko-KR/deployment.md +349 -0
  522. package/corpus/core/docs/content/locales/ko-KR/dispatch.md +146 -0
  523. package/corpus/core/docs/content/locales/ko-KR/drop-in-agent.md +260 -0
  524. package/corpus/core/docs/content/locales/ko-KR/durable-resume.md +65 -0
  525. package/corpus/core/docs/content/locales/ko-KR/embedding-sdk.md +597 -0
  526. package/corpus/core/docs/content/locales/ko-KR/evals.md +155 -0
  527. package/corpus/core/docs/content/locales/ko-KR/extensions.md +360 -0
  528. package/corpus/core/docs/content/locales/ko-KR/external-agents.md +621 -0
  529. package/corpus/core/docs/content/locales/ko-KR/faq.md +142 -0
  530. package/corpus/core/docs/content/locales/ko-KR/file-uploads.md +122 -0
  531. package/corpus/core/docs/content/locales/ko-KR/frames.md +153 -0
  532. package/corpus/core/docs/content/locales/ko-KR/getting-started.md +199 -0
  533. package/corpus/core/docs/content/locales/ko-KR/harness-agents.md +349 -0
  534. package/corpus/core/docs/content/locales/ko-KR/human-approval.md +88 -0
  535. package/corpus/core/docs/content/locales/ko-KR/internationalization.md +66 -23
  536. package/corpus/core/docs/content/locales/ko-KR/key-concepts.md +312 -0
  537. package/corpus/core/docs/content/locales/ko-KR/local-file-mode.md +433 -0
  538. package/corpus/core/docs/content/locales/ko-KR/mcp-apps.md +147 -0
  539. package/corpus/core/docs/content/locales/ko-KR/mcp-clients.md +330 -0
  540. package/corpus/core/docs/content/locales/ko-KR/mcp-protocol.md +279 -0
  541. package/corpus/core/docs/content/locales/ko-KR/messaging.md +464 -0
  542. package/corpus/core/docs/content/locales/ko-KR/migration-workbench.md +33 -0
  543. package/corpus/core/docs/content/locales/ko-KR/multi-app-workspace.md +312 -0
  544. package/corpus/core/docs/content/locales/ko-KR/multi-tenancy.md +52 -0
  545. package/corpus/core/docs/content/locales/ko-KR/native-chat-ui.md +321 -0
  546. package/corpus/core/docs/content/locales/ko-KR/notifications.md +231 -0
  547. package/corpus/core/docs/content/locales/ko-KR/observability.md +294 -0
  548. package/corpus/core/docs/content/locales/ko-KR/observational-memory.md +77 -0
  549. package/corpus/core/docs/content/locales/ko-KR/onboarding.md +216 -0
  550. package/corpus/core/docs/content/locales/ko-KR/plan-plugin.md +200 -0
  551. package/corpus/core/docs/content/locales/ko-KR/pr-visual-recap.md +384 -0
  552. package/corpus/core/docs/content/locales/ko-KR/processors.md +106 -0
  553. package/corpus/core/docs/content/locales/ko-KR/progress.md +199 -0
  554. package/corpus/core/docs/content/locales/ko-KR/pure-agent-apps.md +39 -0
  555. package/corpus/core/docs/content/locales/ko-KR/real-time-collaboration.md +676 -0
  556. package/corpus/core/docs/content/locales/ko-KR/recurring-jobs.md +142 -0
  557. package/corpus/core/docs/content/locales/ko-KR/routing.md +79 -0
  558. package/corpus/core/docs/content/locales/ko-KR/sandbox-adapters.md +227 -0
  559. package/corpus/core/docs/content/locales/ko-KR/security.md +330 -0
  560. package/corpus/core/docs/content/locales/ko-KR/server.md +253 -0
  561. package/corpus/core/docs/content/locales/ko-KR/sharing.md +219 -0
  562. package/corpus/core/docs/content/locales/ko-KR/skills-guide.md +281 -0
  563. package/corpus/core/docs/content/locales/ko-KR/template-analytics.md +259 -0
  564. package/corpus/core/docs/content/locales/ko-KR/template-assets.md +307 -0
  565. package/corpus/core/docs/content/locales/ko-KR/template-brain.md +324 -0
  566. package/corpus/core/docs/content/locales/ko-KR/template-calendar.md +194 -0
  567. package/corpus/core/docs/content/locales/ko-KR/template-chat.md +129 -0
  568. package/corpus/core/docs/content/locales/ko-KR/template-clips.md +372 -0
  569. package/corpus/core/docs/content/locales/ko-KR/template-content.md +402 -0
  570. package/corpus/core/docs/content/locales/ko-KR/template-design.md +173 -0
  571. package/corpus/core/docs/content/locales/ko-KR/template-dispatch.md +220 -0
  572. package/corpus/core/docs/content/locales/ko-KR/template-forms.md +178 -0
  573. package/corpus/core/docs/content/locales/ko-KR/template-mail.md +239 -0
  574. package/corpus/core/docs/content/locales/ko-KR/template-plan.md +815 -0
  575. package/corpus/core/docs/content/locales/ko-KR/template-slides.md +293 -0
  576. package/corpus/core/docs/content/locales/ko-KR/template-videos.md +222 -0
  577. package/corpus/core/docs/content/locales/ko-KR/tracking.md +236 -0
  578. package/corpus/core/docs/content/locales/ko-KR/using-your-agent.md +71 -0
  579. package/corpus/core/docs/content/locales/ko-KR/voice-input.md +81 -0
  580. package/corpus/core/docs/content/locales/ko-KR/what-is-agent-native.md +202 -0
  581. package/corpus/core/docs/content/locales/ko-KR/workspace-connections.md +321 -0
  582. package/corpus/core/docs/content/locales/ko-KR/workspace-management.md +175 -0
  583. package/corpus/core/docs/content/locales/ko-KR/workspace.md +323 -0
  584. package/corpus/core/docs/content/locales/ko-KR/writing-agent-instructions.md +173 -0
  585. package/corpus/core/docs/content/locales/pt-BR/a2a-protocol.md +392 -0
  586. package/corpus/core/docs/content/locales/pt-BR/actions.md +583 -0
  587. package/corpus/core/docs/content/locales/pt-BR/agent-mentions.md +164 -0
  588. package/corpus/core/docs/content/locales/pt-BR/agent-surfaces.md +397 -0
  589. package/corpus/core/docs/content/locales/pt-BR/agent-teams.md +171 -0
  590. package/corpus/core/docs/content/locales/pt-BR/agent-web-surfaces.md +161 -0
  591. package/corpus/core/docs/content/locales/pt-BR/audit-log.md +111 -0
  592. package/corpus/core/docs/content/locales/pt-BR/authentication.md +332 -0
  593. package/corpus/core/docs/content/locales/pt-BR/automations.md +268 -0
  594. package/corpus/core/docs/content/locales/pt-BR/blueprint-installer.md +83 -0
  595. package/corpus/core/docs/content/locales/pt-BR/cli-adapters.md +129 -0
  596. package/corpus/core/docs/content/locales/pt-BR/client.md +398 -0
  597. package/corpus/core/docs/content/locales/pt-BR/cloneable-saas.md +114 -0
  598. package/corpus/core/docs/content/locales/pt-BR/code-agents-ui.md +436 -0
  599. package/corpus/core/docs/content/locales/pt-BR/components.md +368 -0
  600. package/corpus/core/docs/content/locales/pt-BR/context-awareness.md +373 -0
  601. package/corpus/core/docs/content/locales/pt-BR/creating-templates.md +411 -0
  602. package/corpus/core/docs/content/locales/pt-BR/cross-app-sso.md +185 -0
  603. package/corpus/core/docs/content/locales/pt-BR/database.md +183 -0
  604. package/corpus/core/docs/content/locales/pt-BR/deployment.md +349 -0
  605. package/corpus/core/docs/content/locales/pt-BR/dispatch.md +146 -0
  606. package/corpus/core/docs/content/locales/pt-BR/drop-in-agent.md +260 -0
  607. package/corpus/core/docs/content/locales/pt-BR/durable-resume.md +65 -0
  608. package/corpus/core/docs/content/locales/pt-BR/embedding-sdk.md +597 -0
  609. package/corpus/core/docs/content/locales/pt-BR/evals.md +155 -0
  610. package/corpus/core/docs/content/locales/pt-BR/extensions.md +360 -0
  611. package/corpus/core/docs/content/locales/pt-BR/external-agents.md +619 -0
  612. package/corpus/core/docs/content/locales/pt-BR/faq.md +142 -0
  613. package/corpus/core/docs/content/locales/pt-BR/file-uploads.md +122 -0
  614. package/corpus/core/docs/content/locales/pt-BR/frames.md +153 -0
  615. package/corpus/core/docs/content/locales/pt-BR/getting-started.md +199 -0
  616. package/corpus/core/docs/content/locales/pt-BR/harness-agents.md +349 -0
  617. package/corpus/core/docs/content/locales/pt-BR/human-approval.md +86 -0
  618. package/corpus/core/docs/content/locales/pt-BR/internationalization.md +67 -24
  619. package/corpus/core/docs/content/locales/pt-BR/key-concepts.md +312 -0
  620. package/corpus/core/docs/content/locales/pt-BR/local-file-mode.md +433 -0
  621. package/corpus/core/docs/content/locales/pt-BR/mcp-apps.md +147 -0
  622. package/corpus/core/docs/content/locales/pt-BR/mcp-clients.md +330 -0
  623. package/corpus/core/docs/content/locales/pt-BR/mcp-protocol.md +279 -0
  624. package/corpus/core/docs/content/locales/pt-BR/messaging.md +461 -0
  625. package/corpus/core/docs/content/locales/pt-BR/migration-workbench.md +33 -0
  626. package/corpus/core/docs/content/locales/pt-BR/multi-app-workspace.md +312 -0
  627. package/corpus/core/docs/content/locales/pt-BR/multi-tenancy.md +52 -0
  628. package/corpus/core/docs/content/locales/pt-BR/native-chat-ui.md +321 -0
  629. package/corpus/core/docs/content/locales/pt-BR/notifications.md +231 -0
  630. package/corpus/core/docs/content/locales/pt-BR/observability.md +294 -0
  631. package/corpus/core/docs/content/locales/pt-BR/observational-memory.md +77 -0
  632. package/corpus/core/docs/content/locales/pt-BR/onboarding.md +216 -0
  633. package/corpus/core/docs/content/locales/pt-BR/plan-plugin.md +200 -0
  634. package/corpus/core/docs/content/locales/pt-BR/pr-visual-recap.md +384 -0
  635. package/corpus/core/docs/content/locales/pt-BR/processors.md +106 -0
  636. package/corpus/core/docs/content/locales/pt-BR/progress.md +199 -0
  637. package/corpus/core/docs/content/locales/pt-BR/pure-agent-apps.md +39 -0
  638. package/corpus/core/docs/content/locales/pt-BR/real-time-collaboration.md +676 -0
  639. package/corpus/core/docs/content/locales/pt-BR/recurring-jobs.md +142 -0
  640. package/corpus/core/docs/content/locales/pt-BR/routing.md +79 -0
  641. package/corpus/core/docs/content/locales/pt-BR/sandbox-adapters.md +227 -0
  642. package/corpus/core/docs/content/locales/pt-BR/security.md +330 -0
  643. package/corpus/core/docs/content/locales/pt-BR/server.md +253 -0
  644. package/corpus/core/docs/content/locales/pt-BR/sharing.md +219 -0
  645. package/corpus/core/docs/content/locales/pt-BR/skills-guide.md +281 -0
  646. package/corpus/core/docs/content/locales/pt-BR/template-analytics.md +259 -0
  647. package/corpus/core/docs/content/locales/pt-BR/template-assets.md +303 -0
  648. package/corpus/core/docs/content/locales/pt-BR/template-brain.md +324 -0
  649. package/corpus/core/docs/content/locales/pt-BR/template-calendar.md +194 -0
  650. package/corpus/core/docs/content/locales/pt-BR/template-chat.md +129 -0
  651. package/corpus/core/docs/content/locales/pt-BR/template-clips.md +368 -0
  652. package/corpus/core/docs/content/locales/pt-BR/template-content.md +402 -0
  653. package/corpus/core/docs/content/locales/pt-BR/template-design.md +173 -0
  654. package/corpus/core/docs/content/locales/pt-BR/template-dispatch.md +220 -0
  655. package/corpus/core/docs/content/locales/pt-BR/template-forms.md +178 -0
  656. package/corpus/core/docs/content/locales/pt-BR/template-mail.md +239 -0
  657. package/corpus/core/docs/content/locales/pt-BR/template-plan.md +815 -0
  658. package/corpus/core/docs/content/locales/pt-BR/template-slides.md +293 -0
  659. package/corpus/core/docs/content/locales/pt-BR/template-videos.md +222 -0
  660. package/corpus/core/docs/content/locales/pt-BR/tracking.md +236 -0
  661. package/corpus/core/docs/content/locales/pt-BR/using-your-agent.md +71 -0
  662. package/corpus/core/docs/content/locales/pt-BR/voice-input.md +81 -0
  663. package/corpus/core/docs/content/locales/pt-BR/what-is-agent-native.md +202 -0
  664. package/corpus/core/docs/content/locales/pt-BR/workspace-connections.md +321 -0
  665. package/corpus/core/docs/content/locales/pt-BR/workspace-management.md +175 -0
  666. package/corpus/core/docs/content/locales/pt-BR/workspace.md +323 -0
  667. package/corpus/core/docs/content/locales/pt-BR/writing-agent-instructions.md +173 -0
  668. package/corpus/core/docs/content/locales/zh-CN/a2a-protocol.md +392 -0
  669. package/corpus/core/docs/content/locales/zh-CN/actions.md +583 -0
  670. package/corpus/core/docs/content/locales/zh-CN/agent-mentions.md +164 -0
  671. package/corpus/core/docs/content/locales/zh-CN/agent-surfaces.md +397 -0
  672. package/corpus/core/docs/content/locales/zh-CN/agent-teams.md +171 -0
  673. package/corpus/core/docs/content/locales/zh-CN/agent-web-surfaces.md +161 -0
  674. package/corpus/core/docs/content/locales/zh-CN/audit-log.md +111 -0
  675. package/corpus/core/docs/content/locales/zh-CN/authentication.md +332 -0
  676. package/corpus/core/docs/content/locales/zh-CN/automations.md +268 -0
  677. package/corpus/core/docs/content/locales/zh-CN/blueprint-installer.md +83 -0
  678. package/corpus/core/docs/content/locales/zh-CN/cli-adapters.md +129 -0
  679. package/corpus/core/docs/content/locales/zh-CN/client.md +398 -0
  680. package/corpus/core/docs/content/locales/zh-CN/cloneable-saas.md +114 -0
  681. package/corpus/core/docs/content/locales/zh-CN/code-agents-ui.md +436 -0
  682. package/corpus/core/docs/content/locales/zh-CN/components.md +368 -0
  683. package/corpus/core/docs/content/locales/zh-CN/context-awareness.md +373 -0
  684. package/corpus/core/docs/content/locales/zh-CN/creating-templates.md +411 -0
  685. package/corpus/core/docs/content/locales/zh-CN/cross-app-sso.md +188 -0
  686. package/corpus/core/docs/content/locales/zh-CN/database.md +183 -0
  687. package/corpus/core/docs/content/locales/zh-CN/deployment.md +349 -0
  688. package/corpus/core/docs/content/locales/zh-CN/dispatch.md +146 -0
  689. package/corpus/core/docs/content/locales/zh-CN/drop-in-agent.md +260 -0
  690. package/corpus/core/docs/content/locales/zh-CN/durable-resume.md +65 -0
  691. package/corpus/core/docs/content/locales/zh-CN/embedding-sdk.md +597 -0
  692. package/corpus/core/docs/content/locales/zh-CN/evals.md +155 -0
  693. package/corpus/core/docs/content/locales/zh-CN/extensions.md +360 -0
  694. package/corpus/core/docs/content/locales/zh-CN/external-agents.md +619 -0
  695. package/corpus/core/docs/content/locales/zh-CN/faq.md +142 -0
  696. package/corpus/core/docs/content/locales/zh-CN/file-uploads.md +122 -0
  697. package/corpus/core/docs/content/locales/zh-CN/frames.md +153 -0
  698. package/corpus/core/docs/content/locales/zh-CN/getting-started.md +199 -0
  699. package/corpus/core/docs/content/locales/zh-CN/harness-agents.md +349 -0
  700. package/corpus/core/docs/content/locales/zh-CN/human-approval.md +86 -0
  701. package/corpus/core/docs/content/locales/zh-CN/internationalization.md +67 -24
  702. package/corpus/core/docs/content/locales/zh-CN/key-concepts.md +312 -0
  703. package/corpus/core/docs/content/locales/zh-CN/local-file-mode.md +433 -0
  704. package/corpus/core/docs/content/locales/zh-CN/mcp-apps.md +147 -0
  705. package/corpus/core/docs/content/locales/zh-CN/mcp-clients.md +330 -0
  706. package/corpus/core/docs/content/locales/zh-CN/mcp-protocol.md +279 -0
  707. package/corpus/core/docs/content/locales/zh-CN/messaging.md +461 -0
  708. package/corpus/core/docs/content/locales/zh-CN/migration-workbench.md +33 -0
  709. package/corpus/core/docs/content/locales/zh-CN/multi-app-workspace.md +312 -0
  710. package/corpus/core/docs/content/locales/zh-CN/multi-tenancy.md +52 -0
  711. package/corpus/core/docs/content/locales/zh-CN/native-chat-ui.md +321 -0
  712. package/corpus/core/docs/content/locales/zh-CN/notifications.md +231 -0
  713. package/corpus/core/docs/content/locales/zh-CN/observability.md +294 -0
  714. package/corpus/core/docs/content/locales/zh-CN/observational-memory.md +77 -0
  715. package/corpus/core/docs/content/locales/zh-CN/onboarding.md +216 -0
  716. package/corpus/core/docs/content/locales/zh-CN/plan-plugin.md +200 -0
  717. package/corpus/core/docs/content/locales/zh-CN/pr-visual-recap.md +384 -0
  718. package/corpus/core/docs/content/locales/zh-CN/processors.md +106 -0
  719. package/corpus/core/docs/content/locales/zh-CN/progress.md +199 -0
  720. package/corpus/core/docs/content/locales/zh-CN/pure-agent-apps.md +39 -0
  721. package/corpus/core/docs/content/locales/zh-CN/real-time-collaboration.md +676 -0
  722. package/corpus/core/docs/content/locales/zh-CN/recurring-jobs.md +142 -0
  723. package/corpus/core/docs/content/locales/zh-CN/routing.md +79 -0
  724. package/corpus/core/docs/content/locales/zh-CN/sandbox-adapters.md +227 -0
  725. package/corpus/core/docs/content/locales/zh-CN/security.md +330 -0
  726. package/corpus/core/docs/content/locales/zh-CN/server.md +253 -0
  727. package/corpus/core/docs/content/locales/zh-CN/sharing.md +219 -0
  728. package/corpus/core/docs/content/locales/zh-CN/skills-guide.md +281 -0
  729. package/corpus/core/docs/content/locales/zh-CN/template-analytics.md +259 -0
  730. package/corpus/core/docs/content/locales/zh-CN/template-assets.md +303 -0
  731. package/corpus/core/docs/content/locales/zh-CN/template-brain.md +324 -0
  732. package/corpus/core/docs/content/locales/zh-CN/template-calendar.md +194 -0
  733. package/corpus/core/docs/content/locales/zh-CN/template-chat.md +129 -0
  734. package/corpus/core/docs/content/locales/zh-CN/template-clips.md +368 -0
  735. package/corpus/core/docs/content/locales/zh-CN/template-content.md +402 -0
  736. package/corpus/core/docs/content/locales/zh-CN/template-design.md +173 -0
  737. package/corpus/core/docs/content/locales/zh-CN/template-dispatch.md +220 -0
  738. package/corpus/core/docs/content/locales/zh-CN/template-forms.md +178 -0
  739. package/corpus/core/docs/content/locales/zh-CN/template-mail.md +239 -0
  740. package/corpus/core/docs/content/locales/zh-CN/template-plan.md +814 -0
  741. package/corpus/core/docs/content/locales/zh-CN/template-slides.md +293 -0
  742. package/corpus/core/docs/content/locales/zh-CN/template-videos.md +222 -0
  743. package/corpus/core/docs/content/locales/zh-CN/tracking.md +236 -0
  744. package/corpus/core/docs/content/locales/zh-CN/using-your-agent.md +71 -0
  745. package/corpus/core/docs/content/locales/zh-CN/voice-input.md +81 -0
  746. package/corpus/core/docs/content/locales/zh-CN/what-is-agent-native.md +202 -0
  747. package/corpus/core/docs/content/locales/zh-CN/workspace-connections.md +321 -0
  748. package/corpus/core/docs/content/locales/zh-CN/workspace-management.md +175 -0
  749. package/corpus/core/docs/content/locales/zh-CN/workspace.md +323 -0
  750. package/corpus/core/docs/content/locales/zh-CN/writing-agent-instructions.md +173 -0
  751. package/corpus/core/package.json +1 -1
  752. package/corpus/core/src/agent/run-store.ts +13 -0
  753. package/corpus/core/src/client/components/CodeRequiredDialog.tsx +37 -23
  754. package/corpus/core/src/client/extensions/EmbeddedExtension.tsx +13 -9
  755. package/corpus/core/src/client/extensions/ExtensionEditor.tsx +43 -33
  756. package/corpus/core/src/client/extensions/ExtensionSlot.tsx +16 -12
  757. package/corpus/core/src/client/extensions/ExtensionsListPage.tsx +52 -37
  758. package/corpus/core/src/client/i18n.tsx +87 -2
  759. package/corpus/core/src/client/integrations/IntegrationCard.tsx +13 -8
  760. package/corpus/core/src/client/integrations/IntegrationsPanel.tsx +34 -30
  761. package/corpus/core/src/client/observability/ObservabilityDashboard.tsx +90 -65
  762. package/corpus/core/src/client/org/RequireActiveOrg.tsx +24 -18
  763. package/corpus/core/src/client/org/TeamPage.tsx +37 -26
  764. package/corpus/core/src/client/progress/RunsTray.tsx +67 -33
  765. package/corpus/core/src/extensions/routes.ts +45 -25
  766. package/corpus/core/src/templates/default/app/i18n/ar-SA.ts +356 -0
  767. package/corpus/core/src/templates/default/app/i18n/de-DE.ts +332 -0
  768. package/corpus/core/src/templates/default/app/i18n/en-US.ts +303 -0
  769. package/corpus/core/src/templates/default/app/i18n/es-ES.ts +339 -0
  770. package/corpus/core/src/templates/default/app/i18n/fr-FR.ts +339 -0
  771. package/corpus/core/src/templates/default/app/i18n/hi-IN.ts +332 -0
  772. package/corpus/core/src/templates/default/app/i18n/index.ts +18 -0
  773. package/corpus/core/src/templates/default/app/i18n/ja-JP.ts +326 -0
  774. package/corpus/core/src/templates/default/app/i18n/ko-KR.ts +326 -0
  775. package/corpus/core/src/templates/default/app/i18n/pt-BR.ts +339 -0
  776. package/corpus/core/src/templates/default/app/i18n/zh-CN.ts +324 -0
  777. package/corpus/core/src/templates/default/app/root.tsx +109 -6
  778. package/corpus/core/src/templates/workspace-core/.agents/skills/extensions/references/api.md +34 -12
  779. package/corpus/templates/analytics/app/components/layout/NewAnalysisDialog.tsx +16 -10
  780. package/corpus/templates/analytics/app/components/layout/NewDashboardDialog.tsx +9 -4
  781. package/corpus/templates/analytics/app/i18n-data.ts +16 -0
  782. package/corpus/templates/assets/app/i18n-data.ts +101 -0
  783. package/corpus/templates/assets/app/routes/asset.$id.tsx +60 -36
  784. package/corpus/templates/assets/app/routes/brand-kits._index.tsx +19 -16
  785. package/corpus/templates/assets/app/routes/settings.tsx +58 -37
  786. package/corpus/templates/brain/app/i18n-data.ts +114 -0
  787. package/corpus/templates/brain/app/routes/_index.tsx +7 -4
  788. package/corpus/templates/brain/app/routes/ops.tsx +88 -60
  789. package/corpus/templates/brain/app/routes/search.tsx +97 -56
  790. package/corpus/templates/calendar/app/components/calendar/DeleteEventDialog.tsx +33 -21
  791. package/corpus/templates/calendar/app/components/calendar/EventDialog.tsx +25 -30
  792. package/corpus/templates/calendar/app/i18n/index.ts +3 -24
  793. package/corpus/templates/calendar/app/i18n-data.ts +61 -0
  794. package/corpus/templates/calendar/app/pages/Settings.tsx +23 -23
  795. package/corpus/templates/chat/app/i18n-data.ts +78 -0
  796. package/corpus/templates/chat/app/routes/database.tsx +3 -1
  797. package/corpus/templates/chat/app/routes/observability.tsx +3 -2
  798. package/corpus/templates/chat/app/routes/team.tsx +4 -2
  799. package/corpus/templates/clips/app/i18n/ar-SA.ts +17 -0
  800. package/corpus/templates/clips/app/i18n/de-DE.ts +17 -0
  801. package/corpus/templates/clips/app/i18n/en-US.ts +17 -0
  802. package/corpus/templates/clips/app/i18n/es-ES.ts +17 -0
  803. package/corpus/templates/clips/app/i18n/fr-FR.ts +17 -0
  804. package/corpus/templates/clips/app/i18n/hi-IN.ts +17 -0
  805. package/corpus/templates/clips/app/i18n/ja-JP.ts +17 -0
  806. package/corpus/templates/clips/app/i18n/ko-KR.ts +17 -0
  807. package/corpus/templates/clips/app/i18n/pt-BR.ts +17 -0
  808. package/corpus/templates/clips/app/i18n/zh-CN.ts +15 -0
  809. package/corpus/templates/clips/app/routes/_app.trash.tsx +33 -20
  810. package/corpus/templates/content/app/i18n-data.ts +100 -0
  811. package/corpus/templates/content/app/routes/_app.team.tsx +7 -6
  812. package/corpus/templates/design/app/i18n-data.ts +58 -0
  813. package/corpus/templates/design/app/pages/Present.tsx +4 -3
  814. package/corpus/templates/design/app/routes/team.tsx +3 -1
  815. package/corpus/templates/forms/app/i18n/ar-SA.ts +88 -0
  816. package/corpus/templates/forms/app/i18n/de-DE.ts +88 -0
  817. package/corpus/templates/forms/app/i18n/en-US.ts +88 -0
  818. package/corpus/templates/forms/app/i18n/es-ES.ts +90 -0
  819. package/corpus/templates/forms/app/i18n/fr-FR.ts +88 -0
  820. package/corpus/templates/forms/app/i18n/hi-IN.ts +88 -0
  821. package/corpus/templates/forms/app/i18n/ja-JP.ts +88 -0
  822. package/corpus/templates/forms/app/i18n/ko-KR.ts +88 -0
  823. package/corpus/templates/forms/app/i18n/pt-BR.ts +88 -0
  824. package/corpus/templates/forms/app/i18n/zh-CN.ts +88 -0
  825. package/corpus/templates/forms/app/pages/FormsListPage.tsx +92 -63
  826. package/corpus/templates/forms/app/pages/ResponsesPage.tsx +37 -20
  827. package/corpus/templates/forms/app/routes/_index.tsx +15 -14
  828. package/corpus/templates/macros/app/i18n/ar-SA.ts +22 -0
  829. package/corpus/templates/macros/app/i18n/de-DE.ts +22 -0
  830. package/corpus/templates/macros/app/i18n/en-US.ts +22 -0
  831. package/corpus/templates/macros/app/i18n/es-ES.ts +22 -0
  832. package/corpus/templates/macros/app/i18n/fr-FR.ts +22 -0
  833. package/corpus/templates/macros/app/i18n/hi-IN.ts +22 -0
  834. package/corpus/templates/macros/app/i18n/ja-JP.ts +22 -0
  835. package/corpus/templates/macros/app/i18n/ko-KR.ts +22 -0
  836. package/corpus/templates/macros/app/i18n/pt-BR.ts +22 -0
  837. package/corpus/templates/macros/app/i18n/zh-CN.ts +22 -0
  838. package/corpus/templates/macros/app/routes/analytics.tsx +54 -27
  839. package/corpus/templates/mail/app/components/layout/CommandPalette.tsx +34 -26
  840. package/corpus/templates/mail/app/i18n/ar-SA.ts +30 -0
  841. package/corpus/templates/mail/app/i18n/de-DE.ts +30 -0
  842. package/corpus/templates/mail/app/i18n/en-US.ts +30 -0
  843. package/corpus/templates/mail/app/i18n/es-ES.ts +30 -0
  844. package/corpus/templates/mail/app/i18n/fr-FR.ts +30 -0
  845. package/corpus/templates/mail/app/i18n/hi-IN.ts +30 -0
  846. package/corpus/templates/mail/app/i18n/ja-JP.ts +30 -0
  847. package/corpus/templates/mail/app/i18n/ko-KR.ts +30 -0
  848. package/corpus/templates/mail/app/i18n/pt-BR.ts +30 -0
  849. package/corpus/templates/mail/app/i18n/zh-CN.ts +30 -0
  850. package/corpus/templates/mail/app/pages/NotFound.tsx +6 -2
  851. package/corpus/templates/plan/app/components/plan/GuestModeBanner.tsx +4 -3
  852. package/corpus/templates/plan/app/i18n/ar-SA.ts +17 -0
  853. package/corpus/templates/plan/app/i18n/de-DE.ts +17 -0
  854. package/corpus/templates/plan/app/i18n/en-US.ts +17 -0
  855. package/corpus/templates/plan/app/i18n/es-ES.ts +17 -0
  856. package/corpus/templates/plan/app/i18n/fr-FR.ts +17 -0
  857. package/corpus/templates/plan/app/i18n/hi-IN.ts +17 -0
  858. package/corpus/templates/plan/app/i18n/ja-JP.ts +17 -0
  859. package/corpus/templates/plan/app/i18n/ko-KR.ts +17 -0
  860. package/corpus/templates/plan/app/i18n/pt-BR.ts +17 -0
  861. package/corpus/templates/plan/app/i18n/zh-CN.ts +17 -0
  862. package/corpus/templates/plan/app/pages/PlanChatPage.tsx +12 -13
  863. package/corpus/templates/slides/app/i18n/ar-SA.ts +11 -0
  864. package/corpus/templates/slides/app/i18n/de-DE.ts +11 -0
  865. package/corpus/templates/slides/app/i18n/en-US.ts +11 -0
  866. package/corpus/templates/slides/app/i18n/es-ES.ts +11 -0
  867. package/corpus/templates/slides/app/i18n/fr-FR.ts +11 -0
  868. package/corpus/templates/slides/app/i18n/hi-IN.ts +11 -0
  869. package/corpus/templates/slides/app/i18n/ja-JP.ts +11 -0
  870. package/corpus/templates/slides/app/i18n/ko-KR.ts +11 -0
  871. package/corpus/templates/slides/app/i18n/pt-BR.ts +11 -0
  872. package/corpus/templates/slides/app/i18n/zh-CN.ts +11 -0
  873. package/corpus/templates/slides/app/pages/DesignSystems.tsx +10 -9
  874. package/corpus/templates/slides/app/pages/NotFound.tsx +4 -2
  875. package/corpus/templates/videos/app/i18n/ar-SA.ts +14 -0
  876. package/corpus/templates/videos/app/i18n/de-DE.ts +14 -0
  877. package/corpus/templates/videos/app/i18n/en-US.ts +14 -0
  878. package/corpus/templates/videos/app/i18n/es-ES.ts +14 -0
  879. package/corpus/templates/videos/app/i18n/fr-FR.ts +14 -0
  880. package/corpus/templates/videos/app/i18n/hi-IN.ts +14 -0
  881. package/corpus/templates/videos/app/i18n/ja-JP.ts +14 -0
  882. package/corpus/templates/videos/app/i18n/ko-KR.ts +14 -0
  883. package/corpus/templates/videos/app/i18n/pt-BR.ts +14 -0
  884. package/corpus/templates/videos/app/i18n/zh-CN.ts +14 -0
  885. package/corpus/templates/videos/app/pages/DesignSystems.tsx +10 -9
  886. package/corpus/templates/videos/app/pages/NewComposition.tsx +9 -9
  887. package/corpus/templates/videos/app/pages/NotFound.tsx +4 -2
  888. package/dist/agent/run-store.d.ts +13 -0
  889. package/dist/agent/run-store.d.ts.map +1 -1
  890. package/dist/agent/run-store.js +13 -0
  891. package/dist/agent/run-store.js.map +1 -1
  892. package/dist/client/components/CodeRequiredDialog.d.ts.map +1 -1
  893. package/dist/client/components/CodeRequiredDialog.js +12 -9
  894. package/dist/client/components/CodeRequiredDialog.js.map +1 -1
  895. package/dist/client/extensions/EmbeddedExtension.d.ts.map +1 -1
  896. package/dist/client/extensions/EmbeddedExtension.js +4 -2
  897. package/dist/client/extensions/EmbeddedExtension.js.map +1 -1
  898. package/dist/client/extensions/ExtensionEditor.d.ts.map +1 -1
  899. package/dist/client/extensions/ExtensionEditor.js +22 -12
  900. package/dist/client/extensions/ExtensionEditor.js.map +1 -1
  901. package/dist/client/extensions/ExtensionSlot.d.ts.map +1 -1
  902. package/dist/client/extensions/ExtensionSlot.js +9 -7
  903. package/dist/client/extensions/ExtensionSlot.js.map +1 -1
  904. package/dist/client/extensions/ExtensionsListPage.d.ts.map +1 -1
  905. package/dist/client/extensions/ExtensionsListPage.js +28 -15
  906. package/dist/client/extensions/ExtensionsListPage.js.map +1 -1
  907. package/dist/client/i18n.d.ts +1 -1
  908. package/dist/client/i18n.d.ts.map +1 -1
  909. package/dist/client/i18n.js +68 -2
  910. package/dist/client/i18n.js.map +1 -1
  911. package/dist/client/integrations/IntegrationCard.d.ts.map +1 -1
  912. package/dist/client/integrations/IntegrationCard.js +8 -4
  913. package/dist/client/integrations/IntegrationCard.js.map +1 -1
  914. package/dist/client/integrations/IntegrationsPanel.d.ts.map +1 -1
  915. package/dist/client/integrations/IntegrationsPanel.js +15 -8
  916. package/dist/client/integrations/IntegrationsPanel.js.map +1 -1
  917. package/dist/client/observability/ObservabilityDashboard.d.ts.map +1 -1
  918. package/dist/client/observability/ObservabilityDashboard.js +40 -17
  919. package/dist/client/observability/ObservabilityDashboard.js.map +1 -1
  920. package/dist/client/org/RequireActiveOrg.d.ts.map +1 -1
  921. package/dist/client/org/RequireActiveOrg.js +14 -8
  922. package/dist/client/org/RequireActiveOrg.js.map +1 -1
  923. package/dist/client/org/TeamPage.d.ts.map +1 -1
  924. package/dist/client/org/TeamPage.js +21 -14
  925. package/dist/client/org/TeamPage.js.map +1 -1
  926. package/dist/client/progress/RunsTray.d.ts.map +1 -1
  927. package/dist/client/progress/RunsTray.js +49 -30
  928. package/dist/client/progress/RunsTray.js.map +1 -1
  929. package/dist/extensions/routes.d.ts.map +1 -1
  930. package/dist/extensions/routes.js +38 -24
  931. package/dist/extensions/routes.js.map +1 -1
  932. package/dist/templates/default/app/i18n/ar-SA.ts +356 -0
  933. package/dist/templates/default/app/i18n/de-DE.ts +332 -0
  934. package/dist/templates/default/app/i18n/en-US.ts +303 -0
  935. package/dist/templates/default/app/i18n/es-ES.ts +339 -0
  936. package/dist/templates/default/app/i18n/fr-FR.ts +339 -0
  937. package/dist/templates/default/app/i18n/hi-IN.ts +332 -0
  938. package/dist/templates/default/app/i18n/index.ts +18 -0
  939. package/dist/templates/default/app/i18n/ja-JP.ts +326 -0
  940. package/dist/templates/default/app/i18n/ko-KR.ts +326 -0
  941. package/dist/templates/default/app/i18n/pt-BR.ts +339 -0
  942. package/dist/templates/default/app/i18n/zh-CN.ts +324 -0
  943. package/dist/templates/default/app/root.tsx +109 -6
  944. package/dist/templates/workspace-core/.agents/skills/extensions/references/api.md +34 -12
  945. package/docs/content/extensions.md +16 -0
  946. package/docs/content/locales/ar-SA/a2a-protocol.md +392 -0
  947. package/docs/content/locales/ar-SA/actions.md +583 -0
  948. package/docs/content/locales/ar-SA/agent-mentions.md +164 -0
  949. package/docs/content/locales/ar-SA/agent-surfaces.md +397 -0
  950. package/docs/content/locales/ar-SA/agent-teams.md +171 -0
  951. package/docs/content/locales/ar-SA/agent-web-surfaces.md +161 -0
  952. package/docs/content/locales/ar-SA/audit-log.md +111 -0
  953. package/docs/content/locales/ar-SA/authentication.md +332 -0
  954. package/docs/content/locales/ar-SA/automations.md +268 -0
  955. package/docs/content/locales/ar-SA/blueprint-installer.md +83 -0
  956. package/docs/content/locales/ar-SA/cli-adapters.md +129 -0
  957. package/docs/content/locales/ar-SA/client.md +398 -0
  958. package/docs/content/locales/ar-SA/cloneable-saas.md +114 -0
  959. package/docs/content/locales/ar-SA/code-agents-ui.md +436 -0
  960. package/docs/content/locales/ar-SA/components.md +368 -0
  961. package/docs/content/locales/ar-SA/context-awareness.md +373 -0
  962. package/docs/content/locales/ar-SA/creating-templates.md +411 -0
  963. package/docs/content/locales/ar-SA/cross-app-sso.md +185 -0
  964. package/docs/content/locales/ar-SA/database.md +183 -0
  965. package/docs/content/locales/ar-SA/deployment.md +349 -0
  966. package/docs/content/locales/ar-SA/dispatch.md +146 -0
  967. package/docs/content/locales/ar-SA/drop-in-agent.md +260 -0
  968. package/docs/content/locales/ar-SA/durable-resume.md +65 -0
  969. package/docs/content/locales/ar-SA/embedding-sdk.md +597 -0
  970. package/docs/content/locales/ar-SA/evals.md +155 -0
  971. package/docs/content/locales/ar-SA/extensions.md +360 -0
  972. package/docs/content/locales/ar-SA/external-agents.md +619 -0
  973. package/docs/content/locales/ar-SA/faq.md +142 -0
  974. package/docs/content/locales/ar-SA/file-uploads.md +122 -0
  975. package/docs/content/locales/ar-SA/frames.md +153 -0
  976. package/docs/content/locales/ar-SA/getting-started.md +199 -0
  977. package/docs/content/locales/ar-SA/harness-agents.md +349 -0
  978. package/docs/content/locales/ar-SA/human-approval.md +86 -0
  979. package/docs/content/locales/ar-SA/internationalization.md +68 -25
  980. package/docs/content/locales/ar-SA/key-concepts.md +312 -0
  981. package/docs/content/locales/ar-SA/local-file-mode.md +433 -0
  982. package/docs/content/locales/ar-SA/mcp-apps.md +147 -0
  983. package/docs/content/locales/ar-SA/mcp-clients.md +330 -0
  984. package/docs/content/locales/ar-SA/mcp-protocol.md +279 -0
  985. package/docs/content/locales/ar-SA/messaging.md +461 -0
  986. package/docs/content/locales/ar-SA/migration-workbench.md +33 -0
  987. package/docs/content/locales/ar-SA/multi-app-workspace.md +312 -0
  988. package/docs/content/locales/ar-SA/multi-tenancy.md +52 -0
  989. package/docs/content/locales/ar-SA/native-chat-ui.md +321 -0
  990. package/docs/content/locales/ar-SA/notifications.md +231 -0
  991. package/docs/content/locales/ar-SA/observability.md +294 -0
  992. package/docs/content/locales/ar-SA/observational-memory.md +77 -0
  993. package/docs/content/locales/ar-SA/onboarding.md +216 -0
  994. package/docs/content/locales/ar-SA/plan-plugin.md +200 -0
  995. package/docs/content/locales/ar-SA/pr-visual-recap.md +384 -0
  996. package/docs/content/locales/ar-SA/processors.md +106 -0
  997. package/docs/content/locales/ar-SA/progress.md +199 -0
  998. package/docs/content/locales/ar-SA/pure-agent-apps.md +39 -0
  999. package/docs/content/locales/ar-SA/real-time-collaboration.md +676 -0
  1000. package/docs/content/locales/ar-SA/recurring-jobs.md +142 -0
  1001. package/docs/content/locales/ar-SA/routing.md +79 -0
  1002. package/docs/content/locales/ar-SA/sandbox-adapters.md +227 -0
  1003. package/docs/content/locales/ar-SA/security.md +330 -0
  1004. package/docs/content/locales/ar-SA/server.md +253 -0
  1005. package/docs/content/locales/ar-SA/sharing.md +219 -0
  1006. package/docs/content/locales/ar-SA/skills-guide.md +281 -0
  1007. package/docs/content/locales/ar-SA/template-analytics.md +259 -0
  1008. package/docs/content/locales/ar-SA/template-assets.md +303 -0
  1009. package/docs/content/locales/ar-SA/template-brain.md +324 -0
  1010. package/docs/content/locales/ar-SA/template-calendar.md +194 -0
  1011. package/docs/content/locales/ar-SA/template-chat.md +129 -0
  1012. package/docs/content/locales/ar-SA/template-clips.md +368 -0
  1013. package/docs/content/locales/ar-SA/template-content.md +402 -0
  1014. package/docs/content/locales/ar-SA/template-design.md +173 -0
  1015. package/docs/content/locales/ar-SA/template-dispatch.md +220 -0
  1016. package/docs/content/locales/ar-SA/template-forms.md +178 -0
  1017. package/docs/content/locales/ar-SA/template-mail.md +239 -0
  1018. package/docs/content/locales/ar-SA/template-plan.md +815 -0
  1019. package/docs/content/locales/ar-SA/template-slides.md +293 -0
  1020. package/docs/content/locales/ar-SA/template-videos.md +222 -0
  1021. package/docs/content/locales/ar-SA/tracking.md +236 -0
  1022. package/docs/content/locales/ar-SA/using-your-agent.md +71 -0
  1023. package/docs/content/locales/ar-SA/voice-input.md +81 -0
  1024. package/docs/content/locales/ar-SA/what-is-agent-native.md +202 -0
  1025. package/docs/content/locales/ar-SA/workspace-connections.md +321 -0
  1026. package/docs/content/locales/ar-SA/workspace-management.md +175 -0
  1027. package/docs/content/locales/ar-SA/workspace.md +323 -0
  1028. package/docs/content/locales/ar-SA/writing-agent-instructions.md +173 -0
  1029. package/docs/content/locales/de-DE/a2a-protocol.md +392 -0
  1030. package/docs/content/locales/de-DE/actions.md +583 -0
  1031. package/docs/content/locales/de-DE/agent-mentions.md +164 -0
  1032. package/docs/content/locales/de-DE/agent-surfaces.md +397 -0
  1033. package/docs/content/locales/de-DE/agent-teams.md +171 -0
  1034. package/docs/content/locales/de-DE/agent-web-surfaces.md +161 -0
  1035. package/docs/content/locales/de-DE/audit-log.md +111 -0
  1036. package/docs/content/locales/de-DE/authentication.md +332 -0
  1037. package/docs/content/locales/de-DE/automations.md +268 -0
  1038. package/docs/content/locales/de-DE/blueprint-installer.md +83 -0
  1039. package/docs/content/locales/de-DE/cli-adapters.md +129 -0
  1040. package/docs/content/locales/de-DE/client.md +398 -0
  1041. package/docs/content/locales/de-DE/cloneable-saas.md +114 -0
  1042. package/docs/content/locales/de-DE/code-agents-ui.md +436 -0
  1043. package/docs/content/locales/de-DE/components.md +368 -0
  1044. package/docs/content/locales/de-DE/context-awareness.md +373 -0
  1045. package/docs/content/locales/de-DE/creating-templates.md +411 -0
  1046. package/docs/content/locales/de-DE/cross-app-sso.md +185 -0
  1047. package/docs/content/locales/de-DE/database.md +183 -0
  1048. package/docs/content/locales/de-DE/deployment.md +349 -0
  1049. package/docs/content/locales/de-DE/dispatch.md +146 -0
  1050. package/docs/content/locales/de-DE/drop-in-agent.md +260 -0
  1051. package/docs/content/locales/de-DE/durable-resume.md +65 -0
  1052. package/docs/content/locales/de-DE/embedding-sdk.md +597 -0
  1053. package/docs/content/locales/de-DE/evals.md +155 -0
  1054. package/docs/content/locales/de-DE/extensions.md +360 -0
  1055. package/docs/content/locales/de-DE/external-agents.md +619 -0
  1056. package/docs/content/locales/de-DE/faq.md +142 -0
  1057. package/docs/content/locales/de-DE/file-uploads.md +122 -0
  1058. package/docs/content/locales/de-DE/frames.md +153 -0
  1059. package/docs/content/locales/de-DE/getting-started.md +199 -0
  1060. package/docs/content/locales/de-DE/harness-agents.md +349 -0
  1061. package/docs/content/locales/de-DE/human-approval.md +86 -0
  1062. package/docs/content/locales/de-DE/internationalization.md +65 -22
  1063. package/docs/content/locales/de-DE/key-concepts.md +312 -0
  1064. package/docs/content/locales/de-DE/local-file-mode.md +433 -0
  1065. package/docs/content/locales/de-DE/mcp-apps.md +147 -0
  1066. package/docs/content/locales/de-DE/mcp-clients.md +330 -0
  1067. package/docs/content/locales/de-DE/mcp-protocol.md +279 -0
  1068. package/docs/content/locales/de-DE/messaging.md +461 -0
  1069. package/docs/content/locales/de-DE/migration-workbench.md +33 -0
  1070. package/docs/content/locales/de-DE/multi-app-workspace.md +312 -0
  1071. package/docs/content/locales/de-DE/multi-tenancy.md +52 -0
  1072. package/docs/content/locales/de-DE/native-chat-ui.md +321 -0
  1073. package/docs/content/locales/de-DE/notifications.md +231 -0
  1074. package/docs/content/locales/de-DE/observability.md +294 -0
  1075. package/docs/content/locales/de-DE/observational-memory.md +77 -0
  1076. package/docs/content/locales/de-DE/onboarding.md +216 -0
  1077. package/docs/content/locales/de-DE/plan-plugin.md +200 -0
  1078. package/docs/content/locales/de-DE/pr-visual-recap.md +384 -0
  1079. package/docs/content/locales/de-DE/processors.md +106 -0
  1080. package/docs/content/locales/de-DE/progress.md +199 -0
  1081. package/docs/content/locales/de-DE/pure-agent-apps.md +39 -0
  1082. package/docs/content/locales/de-DE/real-time-collaboration.md +676 -0
  1083. package/docs/content/locales/de-DE/recurring-jobs.md +142 -0
  1084. package/docs/content/locales/de-DE/routing.md +79 -0
  1085. package/docs/content/locales/de-DE/sandbox-adapters.md +227 -0
  1086. package/docs/content/locales/de-DE/security.md +330 -0
  1087. package/docs/content/locales/de-DE/server.md +253 -0
  1088. package/docs/content/locales/de-DE/sharing.md +219 -0
  1089. package/docs/content/locales/de-DE/skills-guide.md +281 -0
  1090. package/docs/content/locales/de-DE/template-analytics.md +259 -0
  1091. package/docs/content/locales/de-DE/template-assets.md +303 -0
  1092. package/docs/content/locales/de-DE/template-brain.md +324 -0
  1093. package/docs/content/locales/de-DE/template-calendar.md +194 -0
  1094. package/docs/content/locales/de-DE/template-chat.md +129 -0
  1095. package/docs/content/locales/de-DE/template-clips.md +368 -0
  1096. package/docs/content/locales/de-DE/template-content.md +402 -0
  1097. package/docs/content/locales/de-DE/template-design.md +173 -0
  1098. package/docs/content/locales/de-DE/template-dispatch.md +220 -0
  1099. package/docs/content/locales/de-DE/template-forms.md +178 -0
  1100. package/docs/content/locales/de-DE/template-mail.md +239 -0
  1101. package/docs/content/locales/de-DE/template-plan.md +814 -0
  1102. package/docs/content/locales/de-DE/template-slides.md +293 -0
  1103. package/docs/content/locales/de-DE/template-videos.md +222 -0
  1104. package/docs/content/locales/de-DE/tracking.md +236 -0
  1105. package/docs/content/locales/de-DE/using-your-agent.md +71 -0
  1106. package/docs/content/locales/de-DE/voice-input.md +81 -0
  1107. package/docs/content/locales/de-DE/what-is-agent-native.md +202 -0
  1108. package/docs/content/locales/de-DE/workspace-connections.md +321 -0
  1109. package/docs/content/locales/de-DE/workspace-management.md +175 -0
  1110. package/docs/content/locales/de-DE/workspace.md +323 -0
  1111. package/docs/content/locales/de-DE/writing-agent-instructions.md +173 -0
  1112. package/docs/content/locales/es-ES/a2a-protocol.md +392 -0
  1113. package/docs/content/locales/es-ES/actions.md +583 -0
  1114. package/docs/content/locales/es-ES/agent-mentions.md +164 -0
  1115. package/docs/content/locales/es-ES/agent-surfaces.md +397 -0
  1116. package/docs/content/locales/es-ES/agent-teams.md +171 -0
  1117. package/docs/content/locales/es-ES/agent-web-surfaces.md +161 -0
  1118. package/docs/content/locales/es-ES/audit-log.md +111 -0
  1119. package/docs/content/locales/es-ES/authentication.md +332 -0
  1120. package/docs/content/locales/es-ES/automations.md +268 -0
  1121. package/docs/content/locales/es-ES/blueprint-installer.md +83 -0
  1122. package/docs/content/locales/es-ES/cli-adapters.md +129 -0
  1123. package/docs/content/locales/es-ES/client.md +398 -0
  1124. package/docs/content/locales/es-ES/cloneable-saas.md +114 -0
  1125. package/docs/content/locales/es-ES/code-agents-ui.md +436 -0
  1126. package/docs/content/locales/es-ES/components.md +368 -0
  1127. package/docs/content/locales/es-ES/context-awareness.md +373 -0
  1128. package/docs/content/locales/es-ES/creating-templates.md +411 -0
  1129. package/docs/content/locales/es-ES/cross-app-sso.md +185 -0
  1130. package/docs/content/locales/es-ES/database.md +183 -0
  1131. package/docs/content/locales/es-ES/deployment.md +349 -0
  1132. package/docs/content/locales/es-ES/dispatch.md +146 -0
  1133. package/docs/content/locales/es-ES/drop-in-agent.md +260 -0
  1134. package/docs/content/locales/es-ES/durable-resume.md +65 -0
  1135. package/docs/content/locales/es-ES/embedding-sdk.md +597 -0
  1136. package/docs/content/locales/es-ES/evals.md +155 -0
  1137. package/docs/content/locales/es-ES/extensions.md +360 -0
  1138. package/docs/content/locales/es-ES/external-agents.md +619 -0
  1139. package/docs/content/locales/es-ES/faq.md +142 -0
  1140. package/docs/content/locales/es-ES/file-uploads.md +122 -0
  1141. package/docs/content/locales/es-ES/frames.md +153 -0
  1142. package/docs/content/locales/es-ES/getting-started.md +199 -0
  1143. package/docs/content/locales/es-ES/harness-agents.md +349 -0
  1144. package/docs/content/locales/es-ES/human-approval.md +86 -0
  1145. package/docs/content/locales/es-ES/internationalization.md +67 -24
  1146. package/docs/content/locales/es-ES/key-concepts.md +312 -0
  1147. package/docs/content/locales/es-ES/local-file-mode.md +433 -0
  1148. package/docs/content/locales/es-ES/mcp-apps.md +147 -0
  1149. package/docs/content/locales/es-ES/mcp-clients.md +330 -0
  1150. package/docs/content/locales/es-ES/mcp-protocol.md +279 -0
  1151. package/docs/content/locales/es-ES/messaging.md +461 -0
  1152. package/docs/content/locales/es-ES/migration-workbench.md +33 -0
  1153. package/docs/content/locales/es-ES/multi-app-workspace.md +312 -0
  1154. package/docs/content/locales/es-ES/multi-tenancy.md +52 -0
  1155. package/docs/content/locales/es-ES/native-chat-ui.md +321 -0
  1156. package/docs/content/locales/es-ES/notifications.md +231 -0
  1157. package/docs/content/locales/es-ES/observability.md +294 -0
  1158. package/docs/content/locales/es-ES/observational-memory.md +77 -0
  1159. package/docs/content/locales/es-ES/onboarding.md +216 -0
  1160. package/docs/content/locales/es-ES/plan-plugin.md +200 -0
  1161. package/docs/content/locales/es-ES/pr-visual-recap.md +384 -0
  1162. package/docs/content/locales/es-ES/processors.md +106 -0
  1163. package/docs/content/locales/es-ES/progress.md +199 -0
  1164. package/docs/content/locales/es-ES/pure-agent-apps.md +39 -0
  1165. package/docs/content/locales/es-ES/real-time-collaboration.md +676 -0
  1166. package/docs/content/locales/es-ES/recurring-jobs.md +142 -0
  1167. package/docs/content/locales/es-ES/routing.md +79 -0
  1168. package/docs/content/locales/es-ES/sandbox-adapters.md +227 -0
  1169. package/docs/content/locales/es-ES/security.md +330 -0
  1170. package/docs/content/locales/es-ES/server.md +253 -0
  1171. package/docs/content/locales/es-ES/sharing.md +219 -0
  1172. package/docs/content/locales/es-ES/skills-guide.md +281 -0
  1173. package/docs/content/locales/es-ES/template-analytics.md +259 -0
  1174. package/docs/content/locales/es-ES/template-assets.md +303 -0
  1175. package/docs/content/locales/es-ES/template-brain.md +324 -0
  1176. package/docs/content/locales/es-ES/template-calendar.md +194 -0
  1177. package/docs/content/locales/es-ES/template-chat.md +129 -0
  1178. package/docs/content/locales/es-ES/template-clips.md +368 -0
  1179. package/docs/content/locales/es-ES/template-content.md +402 -0
  1180. package/docs/content/locales/es-ES/template-design.md +173 -0
  1181. package/docs/content/locales/es-ES/template-dispatch.md +220 -0
  1182. package/docs/content/locales/es-ES/template-forms.md +178 -0
  1183. package/docs/content/locales/es-ES/template-mail.md +239 -0
  1184. package/docs/content/locales/es-ES/template-plan.md +815 -0
  1185. package/docs/content/locales/es-ES/template-slides.md +293 -0
  1186. package/docs/content/locales/es-ES/template-videos.md +222 -0
  1187. package/docs/content/locales/es-ES/tracking.md +236 -0
  1188. package/docs/content/locales/es-ES/using-your-agent.md +71 -0
  1189. package/docs/content/locales/es-ES/voice-input.md +81 -0
  1190. package/docs/content/locales/es-ES/what-is-agent-native.md +202 -0
  1191. package/docs/content/locales/es-ES/workspace-connections.md +321 -0
  1192. package/docs/content/locales/es-ES/workspace-management.md +175 -0
  1193. package/docs/content/locales/es-ES/workspace.md +323 -0
  1194. package/docs/content/locales/es-ES/writing-agent-instructions.md +173 -0
  1195. package/docs/content/locales/fr-FR/a2a-protocol.md +392 -0
  1196. package/docs/content/locales/fr-FR/actions.md +583 -0
  1197. package/docs/content/locales/fr-FR/agent-mentions.md +164 -0
  1198. package/docs/content/locales/fr-FR/agent-surfaces.md +397 -0
  1199. package/docs/content/locales/fr-FR/agent-teams.md +171 -0
  1200. package/docs/content/locales/fr-FR/agent-web-surfaces.md +161 -0
  1201. package/docs/content/locales/fr-FR/audit-log.md +111 -0
  1202. package/docs/content/locales/fr-FR/authentication.md +332 -0
  1203. package/docs/content/locales/fr-FR/automations.md +268 -0
  1204. package/docs/content/locales/fr-FR/blueprint-installer.md +83 -0
  1205. package/docs/content/locales/fr-FR/cli-adapters.md +129 -0
  1206. package/docs/content/locales/fr-FR/client.md +398 -0
  1207. package/docs/content/locales/fr-FR/cloneable-saas.md +114 -0
  1208. package/docs/content/locales/fr-FR/code-agents-ui.md +436 -0
  1209. package/docs/content/locales/fr-FR/components.md +368 -0
  1210. package/docs/content/locales/fr-FR/context-awareness.md +373 -0
  1211. package/docs/content/locales/fr-FR/creating-templates.md +411 -0
  1212. package/docs/content/locales/fr-FR/cross-app-sso.md +185 -0
  1213. package/docs/content/locales/fr-FR/database.md +183 -0
  1214. package/docs/content/locales/fr-FR/deployment.md +349 -0
  1215. package/docs/content/locales/fr-FR/dispatch.md +146 -0
  1216. package/docs/content/locales/fr-FR/drop-in-agent.md +260 -0
  1217. package/docs/content/locales/fr-FR/durable-resume.md +65 -0
  1218. package/docs/content/locales/fr-FR/embedding-sdk.md +597 -0
  1219. package/docs/content/locales/fr-FR/evals.md +155 -0
  1220. package/docs/content/locales/fr-FR/extensions.md +360 -0
  1221. package/docs/content/locales/fr-FR/external-agents.md +619 -0
  1222. package/docs/content/locales/fr-FR/faq.md +142 -0
  1223. package/docs/content/locales/fr-FR/file-uploads.md +122 -0
  1224. package/docs/content/locales/fr-FR/frames.md +153 -0
  1225. package/docs/content/locales/fr-FR/getting-started.md +199 -0
  1226. package/docs/content/locales/fr-FR/harness-agents.md +349 -0
  1227. package/docs/content/locales/fr-FR/human-approval.md +86 -0
  1228. package/docs/content/locales/fr-FR/internationalization.md +67 -24
  1229. package/docs/content/locales/fr-FR/key-concepts.md +312 -0
  1230. package/docs/content/locales/fr-FR/local-file-mode.md +433 -0
  1231. package/docs/content/locales/fr-FR/mcp-apps.md +147 -0
  1232. package/docs/content/locales/fr-FR/mcp-clients.md +330 -0
  1233. package/docs/content/locales/fr-FR/mcp-protocol.md +279 -0
  1234. package/docs/content/locales/fr-FR/messaging.md +461 -0
  1235. package/docs/content/locales/fr-FR/migration-workbench.md +33 -0
  1236. package/docs/content/locales/fr-FR/multi-app-workspace.md +312 -0
  1237. package/docs/content/locales/fr-FR/multi-tenancy.md +52 -0
  1238. package/docs/content/locales/fr-FR/native-chat-ui.md +321 -0
  1239. package/docs/content/locales/fr-FR/notifications.md +231 -0
  1240. package/docs/content/locales/fr-FR/observability.md +294 -0
  1241. package/docs/content/locales/fr-FR/observational-memory.md +77 -0
  1242. package/docs/content/locales/fr-FR/onboarding.md +216 -0
  1243. package/docs/content/locales/fr-FR/plan-plugin.md +200 -0
  1244. package/docs/content/locales/fr-FR/pr-visual-recap.md +384 -0
  1245. package/docs/content/locales/fr-FR/processors.md +106 -0
  1246. package/docs/content/locales/fr-FR/progress.md +199 -0
  1247. package/docs/content/locales/fr-FR/pure-agent-apps.md +39 -0
  1248. package/docs/content/locales/fr-FR/real-time-collaboration.md +676 -0
  1249. package/docs/content/locales/fr-FR/recurring-jobs.md +142 -0
  1250. package/docs/content/locales/fr-FR/routing.md +79 -0
  1251. package/docs/content/locales/fr-FR/sandbox-adapters.md +227 -0
  1252. package/docs/content/locales/fr-FR/security.md +330 -0
  1253. package/docs/content/locales/fr-FR/server.md +253 -0
  1254. package/docs/content/locales/fr-FR/sharing.md +219 -0
  1255. package/docs/content/locales/fr-FR/skills-guide.md +281 -0
  1256. package/docs/content/locales/fr-FR/template-analytics.md +259 -0
  1257. package/docs/content/locales/fr-FR/template-assets.md +303 -0
  1258. package/docs/content/locales/fr-FR/template-brain.md +324 -0
  1259. package/docs/content/locales/fr-FR/template-calendar.md +194 -0
  1260. package/docs/content/locales/fr-FR/template-chat.md +129 -0
  1261. package/docs/content/locales/fr-FR/template-clips.md +368 -0
  1262. package/docs/content/locales/fr-FR/template-content.md +402 -0
  1263. package/docs/content/locales/fr-FR/template-design.md +173 -0
  1264. package/docs/content/locales/fr-FR/template-dispatch.md +220 -0
  1265. package/docs/content/locales/fr-FR/template-forms.md +178 -0
  1266. package/docs/content/locales/fr-FR/template-mail.md +239 -0
  1267. package/docs/content/locales/fr-FR/template-plan.md +815 -0
  1268. package/docs/content/locales/fr-FR/template-slides.md +293 -0
  1269. package/docs/content/locales/fr-FR/template-videos.md +222 -0
  1270. package/docs/content/locales/fr-FR/tracking.md +236 -0
  1271. package/docs/content/locales/fr-FR/using-your-agent.md +71 -0
  1272. package/docs/content/locales/fr-FR/voice-input.md +81 -0
  1273. package/docs/content/locales/fr-FR/what-is-agent-native.md +202 -0
  1274. package/docs/content/locales/fr-FR/workspace-connections.md +321 -0
  1275. package/docs/content/locales/fr-FR/workspace-management.md +175 -0
  1276. package/docs/content/locales/fr-FR/workspace.md +323 -0
  1277. package/docs/content/locales/fr-FR/writing-agent-instructions.md +173 -0
  1278. package/docs/content/locales/hi-IN/a2a-protocol.md +392 -0
  1279. package/docs/content/locales/hi-IN/actions.md +583 -0
  1280. package/docs/content/locales/hi-IN/agent-mentions.md +164 -0
  1281. package/docs/content/locales/hi-IN/agent-surfaces.md +397 -0
  1282. package/docs/content/locales/hi-IN/agent-teams.md +171 -0
  1283. package/docs/content/locales/hi-IN/agent-web-surfaces.md +161 -0
  1284. package/docs/content/locales/hi-IN/audit-log.md +111 -0
  1285. package/docs/content/locales/hi-IN/authentication.md +332 -0
  1286. package/docs/content/locales/hi-IN/automations.md +268 -0
  1287. package/docs/content/locales/hi-IN/blueprint-installer.md +83 -0
  1288. package/docs/content/locales/hi-IN/cli-adapters.md +129 -0
  1289. package/docs/content/locales/hi-IN/client.md +398 -0
  1290. package/docs/content/locales/hi-IN/cloneable-saas.md +114 -0
  1291. package/docs/content/locales/hi-IN/code-agents-ui.md +436 -0
  1292. package/docs/content/locales/hi-IN/components.md +368 -0
  1293. package/docs/content/locales/hi-IN/context-awareness.md +373 -0
  1294. package/docs/content/locales/hi-IN/creating-templates.md +411 -0
  1295. package/docs/content/locales/hi-IN/cross-app-sso.md +185 -0
  1296. package/docs/content/locales/hi-IN/database.md +183 -0
  1297. package/docs/content/locales/hi-IN/deployment.md +349 -0
  1298. package/docs/content/locales/hi-IN/dispatch.md +146 -0
  1299. package/docs/content/locales/hi-IN/drop-in-agent.md +260 -0
  1300. package/docs/content/locales/hi-IN/durable-resume.md +65 -0
  1301. package/docs/content/locales/hi-IN/embedding-sdk.md +597 -0
  1302. package/docs/content/locales/hi-IN/evals.md +155 -0
  1303. package/docs/content/locales/hi-IN/extensions.md +360 -0
  1304. package/docs/content/locales/hi-IN/external-agents.md +619 -0
  1305. package/docs/content/locales/hi-IN/faq.md +142 -0
  1306. package/docs/content/locales/hi-IN/file-uploads.md +122 -0
  1307. package/docs/content/locales/hi-IN/frames.md +153 -0
  1308. package/docs/content/locales/hi-IN/getting-started.md +199 -0
  1309. package/docs/content/locales/hi-IN/harness-agents.md +349 -0
  1310. package/docs/content/locales/hi-IN/human-approval.md +86 -0
  1311. package/docs/content/locales/hi-IN/internationalization.md +70 -27
  1312. package/docs/content/locales/hi-IN/key-concepts.md +312 -0
  1313. package/docs/content/locales/hi-IN/local-file-mode.md +433 -0
  1314. package/docs/content/locales/hi-IN/mcp-apps.md +147 -0
  1315. package/docs/content/locales/hi-IN/mcp-clients.md +330 -0
  1316. package/docs/content/locales/hi-IN/mcp-protocol.md +279 -0
  1317. package/docs/content/locales/hi-IN/messaging.md +461 -0
  1318. package/docs/content/locales/hi-IN/migration-workbench.md +33 -0
  1319. package/docs/content/locales/hi-IN/multi-app-workspace.md +312 -0
  1320. package/docs/content/locales/hi-IN/multi-tenancy.md +52 -0
  1321. package/docs/content/locales/hi-IN/native-chat-ui.md +321 -0
  1322. package/docs/content/locales/hi-IN/notifications.md +231 -0
  1323. package/docs/content/locales/hi-IN/observability.md +294 -0
  1324. package/docs/content/locales/hi-IN/observational-memory.md +77 -0
  1325. package/docs/content/locales/hi-IN/onboarding.md +216 -0
  1326. package/docs/content/locales/hi-IN/plan-plugin.md +200 -0
  1327. package/docs/content/locales/hi-IN/pr-visual-recap.md +384 -0
  1328. package/docs/content/locales/hi-IN/processors.md +106 -0
  1329. package/docs/content/locales/hi-IN/progress.md +199 -0
  1330. package/docs/content/locales/hi-IN/pure-agent-apps.md +39 -0
  1331. package/docs/content/locales/hi-IN/real-time-collaboration.md +676 -0
  1332. package/docs/content/locales/hi-IN/recurring-jobs.md +142 -0
  1333. package/docs/content/locales/hi-IN/routing.md +79 -0
  1334. package/docs/content/locales/hi-IN/sandbox-adapters.md +227 -0
  1335. package/docs/content/locales/hi-IN/security.md +330 -0
  1336. package/docs/content/locales/hi-IN/server.md +253 -0
  1337. package/docs/content/locales/hi-IN/sharing.md +219 -0
  1338. package/docs/content/locales/hi-IN/skills-guide.md +281 -0
  1339. package/docs/content/locales/hi-IN/template-analytics.md +259 -0
  1340. package/docs/content/locales/hi-IN/template-assets.md +303 -0
  1341. package/docs/content/locales/hi-IN/template-brain.md +324 -0
  1342. package/docs/content/locales/hi-IN/template-calendar.md +194 -0
  1343. package/docs/content/locales/hi-IN/template-chat.md +129 -0
  1344. package/docs/content/locales/hi-IN/template-clips.md +368 -0
  1345. package/docs/content/locales/hi-IN/template-content.md +402 -0
  1346. package/docs/content/locales/hi-IN/template-design.md +173 -0
  1347. package/docs/content/locales/hi-IN/template-dispatch.md +220 -0
  1348. package/docs/content/locales/hi-IN/template-forms.md +178 -0
  1349. package/docs/content/locales/hi-IN/template-mail.md +239 -0
  1350. package/docs/content/locales/hi-IN/template-plan.md +815 -0
  1351. package/docs/content/locales/hi-IN/template-slides.md +293 -0
  1352. package/docs/content/locales/hi-IN/template-videos.md +222 -0
  1353. package/docs/content/locales/hi-IN/tracking.md +236 -0
  1354. package/docs/content/locales/hi-IN/using-your-agent.md +71 -0
  1355. package/docs/content/locales/hi-IN/voice-input.md +81 -0
  1356. package/docs/content/locales/hi-IN/what-is-agent-native.md +202 -0
  1357. package/docs/content/locales/hi-IN/workspace-connections.md +321 -0
  1358. package/docs/content/locales/hi-IN/workspace-management.md +175 -0
  1359. package/docs/content/locales/hi-IN/workspace.md +323 -0
  1360. package/docs/content/locales/hi-IN/writing-agent-instructions.md +173 -0
  1361. package/docs/content/locales/ja-JP/a2a-protocol.md +392 -0
  1362. package/docs/content/locales/ja-JP/actions.md +583 -0
  1363. package/docs/content/locales/ja-JP/agent-mentions.md +164 -0
  1364. package/docs/content/locales/ja-JP/agent-surfaces.md +397 -0
  1365. package/docs/content/locales/ja-JP/agent-teams.md +171 -0
  1366. package/docs/content/locales/ja-JP/agent-web-surfaces.md +161 -0
  1367. package/docs/content/locales/ja-JP/audit-log.md +111 -0
  1368. package/docs/content/locales/ja-JP/authentication.md +332 -0
  1369. package/docs/content/locales/ja-JP/automations.md +268 -0
  1370. package/docs/content/locales/ja-JP/blueprint-installer.md +83 -0
  1371. package/docs/content/locales/ja-JP/cli-adapters.md +129 -0
  1372. package/docs/content/locales/ja-JP/client.md +398 -0
  1373. package/docs/content/locales/ja-JP/cloneable-saas.md +114 -0
  1374. package/docs/content/locales/ja-JP/code-agents-ui.md +436 -0
  1375. package/docs/content/locales/ja-JP/components.md +368 -0
  1376. package/docs/content/locales/ja-JP/context-awareness.md +373 -0
  1377. package/docs/content/locales/ja-JP/creating-templates.md +411 -0
  1378. package/docs/content/locales/ja-JP/cross-app-sso.md +185 -0
  1379. package/docs/content/locales/ja-JP/database.md +183 -0
  1380. package/docs/content/locales/ja-JP/deployment.md +349 -0
  1381. package/docs/content/locales/ja-JP/dispatch.md +146 -0
  1382. package/docs/content/locales/ja-JP/drop-in-agent.md +260 -0
  1383. package/docs/content/locales/ja-JP/durable-resume.md +65 -0
  1384. package/docs/content/locales/ja-JP/embedding-sdk.md +597 -0
  1385. package/docs/content/locales/ja-JP/evals.md +155 -0
  1386. package/docs/content/locales/ja-JP/extensions.md +360 -0
  1387. package/docs/content/locales/ja-JP/external-agents.md +619 -0
  1388. package/docs/content/locales/ja-JP/faq.md +142 -0
  1389. package/docs/content/locales/ja-JP/file-uploads.md +122 -0
  1390. package/docs/content/locales/ja-JP/frames.md +153 -0
  1391. package/docs/content/locales/ja-JP/getting-started.md +199 -0
  1392. package/docs/content/locales/ja-JP/harness-agents.md +349 -0
  1393. package/docs/content/locales/ja-JP/human-approval.md +86 -0
  1394. package/docs/content/locales/ja-JP/internationalization.md +54 -23
  1395. package/docs/content/locales/ja-JP/key-concepts.md +312 -0
  1396. package/docs/content/locales/ja-JP/local-file-mode.md +433 -0
  1397. package/docs/content/locales/ja-JP/mcp-apps.md +147 -0
  1398. package/docs/content/locales/ja-JP/mcp-clients.md +330 -0
  1399. package/docs/content/locales/ja-JP/mcp-protocol.md +279 -0
  1400. package/docs/content/locales/ja-JP/messaging.md +461 -0
  1401. package/docs/content/locales/ja-JP/migration-workbench.md +33 -0
  1402. package/docs/content/locales/ja-JP/multi-app-workspace.md +312 -0
  1403. package/docs/content/locales/ja-JP/multi-tenancy.md +52 -0
  1404. package/docs/content/locales/ja-JP/native-chat-ui.md +321 -0
  1405. package/docs/content/locales/ja-JP/notifications.md +231 -0
  1406. package/docs/content/locales/ja-JP/observability.md +294 -0
  1407. package/docs/content/locales/ja-JP/observational-memory.md +77 -0
  1408. package/docs/content/locales/ja-JP/onboarding.md +216 -0
  1409. package/docs/content/locales/ja-JP/plan-plugin.md +200 -0
  1410. package/docs/content/locales/ja-JP/pr-visual-recap.md +384 -0
  1411. package/docs/content/locales/ja-JP/processors.md +106 -0
  1412. package/docs/content/locales/ja-JP/progress.md +199 -0
  1413. package/docs/content/locales/ja-JP/pure-agent-apps.md +39 -0
  1414. package/docs/content/locales/ja-JP/real-time-collaboration.md +676 -0
  1415. package/docs/content/locales/ja-JP/recurring-jobs.md +142 -0
  1416. package/docs/content/locales/ja-JP/routing.md +79 -0
  1417. package/docs/content/locales/ja-JP/sandbox-adapters.md +227 -0
  1418. package/docs/content/locales/ja-JP/security.md +330 -0
  1419. package/docs/content/locales/ja-JP/server.md +253 -0
  1420. package/docs/content/locales/ja-JP/sharing.md +219 -0
  1421. package/docs/content/locales/ja-JP/skills-guide.md +281 -0
  1422. package/docs/content/locales/ja-JP/template-analytics.md +259 -0
  1423. package/docs/content/locales/ja-JP/template-assets.md +303 -0
  1424. package/docs/content/locales/ja-JP/template-brain.md +324 -0
  1425. package/docs/content/locales/ja-JP/template-calendar.md +194 -0
  1426. package/docs/content/locales/ja-JP/template-chat.md +129 -0
  1427. package/docs/content/locales/ja-JP/template-clips.md +368 -0
  1428. package/docs/content/locales/ja-JP/template-content.md +402 -0
  1429. package/docs/content/locales/ja-JP/template-design.md +173 -0
  1430. package/docs/content/locales/ja-JP/template-dispatch.md +220 -0
  1431. package/docs/content/locales/ja-JP/template-forms.md +178 -0
  1432. package/docs/content/locales/ja-JP/template-mail.md +239 -0
  1433. package/docs/content/locales/ja-JP/template-plan.md +814 -0
  1434. package/docs/content/locales/ja-JP/template-slides.md +293 -0
  1435. package/docs/content/locales/ja-JP/template-videos.md +222 -0
  1436. package/docs/content/locales/ja-JP/tracking.md +236 -0
  1437. package/docs/content/locales/ja-JP/using-your-agent.md +71 -0
  1438. package/docs/content/locales/ja-JP/voice-input.md +81 -0
  1439. package/docs/content/locales/ja-JP/what-is-agent-native.md +202 -0
  1440. package/docs/content/locales/ja-JP/workspace-connections.md +321 -0
  1441. package/docs/content/locales/ja-JP/workspace-management.md +175 -0
  1442. package/docs/content/locales/ja-JP/workspace.md +323 -0
  1443. package/docs/content/locales/ja-JP/writing-agent-instructions.md +173 -0
  1444. package/docs/content/locales/ko-KR/a2a-protocol.md +392 -0
  1445. package/docs/content/locales/ko-KR/actions.md +583 -0
  1446. package/docs/content/locales/ko-KR/agent-mentions.md +164 -0
  1447. package/docs/content/locales/ko-KR/agent-surfaces.md +397 -0
  1448. package/docs/content/locales/ko-KR/agent-teams.md +171 -0
  1449. package/docs/content/locales/ko-KR/agent-web-surfaces.md +161 -0
  1450. package/docs/content/locales/ko-KR/audit-log.md +111 -0
  1451. package/docs/content/locales/ko-KR/authentication.md +332 -0
  1452. package/docs/content/locales/ko-KR/automations.md +268 -0
  1453. package/docs/content/locales/ko-KR/blueprint-installer.md +83 -0
  1454. package/docs/content/locales/ko-KR/cli-adapters.md +129 -0
  1455. package/docs/content/locales/ko-KR/client.md +398 -0
  1456. package/docs/content/locales/ko-KR/cloneable-saas.md +114 -0
  1457. package/docs/content/locales/ko-KR/code-agents-ui.md +436 -0
  1458. package/docs/content/locales/ko-KR/components.md +368 -0
  1459. package/docs/content/locales/ko-KR/context-awareness.md +373 -0
  1460. package/docs/content/locales/ko-KR/creating-templates.md +411 -0
  1461. package/docs/content/locales/ko-KR/cross-app-sso.md +187 -0
  1462. package/docs/content/locales/ko-KR/database.md +183 -0
  1463. package/docs/content/locales/ko-KR/deployment.md +349 -0
  1464. package/docs/content/locales/ko-KR/dispatch.md +146 -0
  1465. package/docs/content/locales/ko-KR/drop-in-agent.md +260 -0
  1466. package/docs/content/locales/ko-KR/durable-resume.md +65 -0
  1467. package/docs/content/locales/ko-KR/embedding-sdk.md +597 -0
  1468. package/docs/content/locales/ko-KR/evals.md +155 -0
  1469. package/docs/content/locales/ko-KR/extensions.md +360 -0
  1470. package/docs/content/locales/ko-KR/external-agents.md +621 -0
  1471. package/docs/content/locales/ko-KR/faq.md +142 -0
  1472. package/docs/content/locales/ko-KR/file-uploads.md +122 -0
  1473. package/docs/content/locales/ko-KR/frames.md +153 -0
  1474. package/docs/content/locales/ko-KR/getting-started.md +199 -0
  1475. package/docs/content/locales/ko-KR/harness-agents.md +349 -0
  1476. package/docs/content/locales/ko-KR/human-approval.md +88 -0
  1477. package/docs/content/locales/ko-KR/internationalization.md +66 -23
  1478. package/docs/content/locales/ko-KR/key-concepts.md +312 -0
  1479. package/docs/content/locales/ko-KR/local-file-mode.md +433 -0
  1480. package/docs/content/locales/ko-KR/mcp-apps.md +147 -0
  1481. package/docs/content/locales/ko-KR/mcp-clients.md +330 -0
  1482. package/docs/content/locales/ko-KR/mcp-protocol.md +279 -0
  1483. package/docs/content/locales/ko-KR/messaging.md +464 -0
  1484. package/docs/content/locales/ko-KR/migration-workbench.md +33 -0
  1485. package/docs/content/locales/ko-KR/multi-app-workspace.md +312 -0
  1486. package/docs/content/locales/ko-KR/multi-tenancy.md +52 -0
  1487. package/docs/content/locales/ko-KR/native-chat-ui.md +321 -0
  1488. package/docs/content/locales/ko-KR/notifications.md +231 -0
  1489. package/docs/content/locales/ko-KR/observability.md +294 -0
  1490. package/docs/content/locales/ko-KR/observational-memory.md +77 -0
  1491. package/docs/content/locales/ko-KR/onboarding.md +216 -0
  1492. package/docs/content/locales/ko-KR/plan-plugin.md +200 -0
  1493. package/docs/content/locales/ko-KR/pr-visual-recap.md +384 -0
  1494. package/docs/content/locales/ko-KR/processors.md +106 -0
  1495. package/docs/content/locales/ko-KR/progress.md +199 -0
  1496. package/docs/content/locales/ko-KR/pure-agent-apps.md +39 -0
  1497. package/docs/content/locales/ko-KR/real-time-collaboration.md +676 -0
  1498. package/docs/content/locales/ko-KR/recurring-jobs.md +142 -0
  1499. package/docs/content/locales/ko-KR/routing.md +79 -0
  1500. package/docs/content/locales/ko-KR/sandbox-adapters.md +227 -0
  1501. package/docs/content/locales/ko-KR/security.md +330 -0
  1502. package/docs/content/locales/ko-KR/server.md +253 -0
  1503. package/docs/content/locales/ko-KR/sharing.md +219 -0
  1504. package/docs/content/locales/ko-KR/skills-guide.md +281 -0
  1505. package/docs/content/locales/ko-KR/template-analytics.md +259 -0
  1506. package/docs/content/locales/ko-KR/template-assets.md +307 -0
  1507. package/docs/content/locales/ko-KR/template-brain.md +324 -0
  1508. package/docs/content/locales/ko-KR/template-calendar.md +194 -0
  1509. package/docs/content/locales/ko-KR/template-chat.md +129 -0
  1510. package/docs/content/locales/ko-KR/template-clips.md +372 -0
  1511. package/docs/content/locales/ko-KR/template-content.md +402 -0
  1512. package/docs/content/locales/ko-KR/template-design.md +173 -0
  1513. package/docs/content/locales/ko-KR/template-dispatch.md +220 -0
  1514. package/docs/content/locales/ko-KR/template-forms.md +178 -0
  1515. package/docs/content/locales/ko-KR/template-mail.md +239 -0
  1516. package/docs/content/locales/ko-KR/template-plan.md +815 -0
  1517. package/docs/content/locales/ko-KR/template-slides.md +293 -0
  1518. package/docs/content/locales/ko-KR/template-videos.md +222 -0
  1519. package/docs/content/locales/ko-KR/tracking.md +236 -0
  1520. package/docs/content/locales/ko-KR/using-your-agent.md +71 -0
  1521. package/docs/content/locales/ko-KR/voice-input.md +81 -0
  1522. package/docs/content/locales/ko-KR/what-is-agent-native.md +202 -0
  1523. package/docs/content/locales/ko-KR/workspace-connections.md +321 -0
  1524. package/docs/content/locales/ko-KR/workspace-management.md +175 -0
  1525. package/docs/content/locales/ko-KR/workspace.md +323 -0
  1526. package/docs/content/locales/ko-KR/writing-agent-instructions.md +173 -0
  1527. package/docs/content/locales/pt-BR/a2a-protocol.md +392 -0
  1528. package/docs/content/locales/pt-BR/actions.md +583 -0
  1529. package/docs/content/locales/pt-BR/agent-mentions.md +164 -0
  1530. package/docs/content/locales/pt-BR/agent-surfaces.md +397 -0
  1531. package/docs/content/locales/pt-BR/agent-teams.md +171 -0
  1532. package/docs/content/locales/pt-BR/agent-web-surfaces.md +161 -0
  1533. package/docs/content/locales/pt-BR/audit-log.md +111 -0
  1534. package/docs/content/locales/pt-BR/authentication.md +332 -0
  1535. package/docs/content/locales/pt-BR/automations.md +268 -0
  1536. package/docs/content/locales/pt-BR/blueprint-installer.md +83 -0
  1537. package/docs/content/locales/pt-BR/cli-adapters.md +129 -0
  1538. package/docs/content/locales/pt-BR/client.md +398 -0
  1539. package/docs/content/locales/pt-BR/cloneable-saas.md +114 -0
  1540. package/docs/content/locales/pt-BR/code-agents-ui.md +436 -0
  1541. package/docs/content/locales/pt-BR/components.md +368 -0
  1542. package/docs/content/locales/pt-BR/context-awareness.md +373 -0
  1543. package/docs/content/locales/pt-BR/creating-templates.md +411 -0
  1544. package/docs/content/locales/pt-BR/cross-app-sso.md +185 -0
  1545. package/docs/content/locales/pt-BR/database.md +183 -0
  1546. package/docs/content/locales/pt-BR/deployment.md +349 -0
  1547. package/docs/content/locales/pt-BR/dispatch.md +146 -0
  1548. package/docs/content/locales/pt-BR/drop-in-agent.md +260 -0
  1549. package/docs/content/locales/pt-BR/durable-resume.md +65 -0
  1550. package/docs/content/locales/pt-BR/embedding-sdk.md +597 -0
  1551. package/docs/content/locales/pt-BR/evals.md +155 -0
  1552. package/docs/content/locales/pt-BR/extensions.md +360 -0
  1553. package/docs/content/locales/pt-BR/external-agents.md +619 -0
  1554. package/docs/content/locales/pt-BR/faq.md +142 -0
  1555. package/docs/content/locales/pt-BR/file-uploads.md +122 -0
  1556. package/docs/content/locales/pt-BR/frames.md +153 -0
  1557. package/docs/content/locales/pt-BR/getting-started.md +199 -0
  1558. package/docs/content/locales/pt-BR/harness-agents.md +349 -0
  1559. package/docs/content/locales/pt-BR/human-approval.md +86 -0
  1560. package/docs/content/locales/pt-BR/internationalization.md +67 -24
  1561. package/docs/content/locales/pt-BR/key-concepts.md +312 -0
  1562. package/docs/content/locales/pt-BR/local-file-mode.md +433 -0
  1563. package/docs/content/locales/pt-BR/mcp-apps.md +147 -0
  1564. package/docs/content/locales/pt-BR/mcp-clients.md +330 -0
  1565. package/docs/content/locales/pt-BR/mcp-protocol.md +279 -0
  1566. package/docs/content/locales/pt-BR/messaging.md +461 -0
  1567. package/docs/content/locales/pt-BR/migration-workbench.md +33 -0
  1568. package/docs/content/locales/pt-BR/multi-app-workspace.md +312 -0
  1569. package/docs/content/locales/pt-BR/multi-tenancy.md +52 -0
  1570. package/docs/content/locales/pt-BR/native-chat-ui.md +321 -0
  1571. package/docs/content/locales/pt-BR/notifications.md +231 -0
  1572. package/docs/content/locales/pt-BR/observability.md +294 -0
  1573. package/docs/content/locales/pt-BR/observational-memory.md +77 -0
  1574. package/docs/content/locales/pt-BR/onboarding.md +216 -0
  1575. package/docs/content/locales/pt-BR/plan-plugin.md +200 -0
  1576. package/docs/content/locales/pt-BR/pr-visual-recap.md +384 -0
  1577. package/docs/content/locales/pt-BR/processors.md +106 -0
  1578. package/docs/content/locales/pt-BR/progress.md +199 -0
  1579. package/docs/content/locales/pt-BR/pure-agent-apps.md +39 -0
  1580. package/docs/content/locales/pt-BR/real-time-collaboration.md +676 -0
  1581. package/docs/content/locales/pt-BR/recurring-jobs.md +142 -0
  1582. package/docs/content/locales/pt-BR/routing.md +79 -0
  1583. package/docs/content/locales/pt-BR/sandbox-adapters.md +227 -0
  1584. package/docs/content/locales/pt-BR/security.md +330 -0
  1585. package/docs/content/locales/pt-BR/server.md +253 -0
  1586. package/docs/content/locales/pt-BR/sharing.md +219 -0
  1587. package/docs/content/locales/pt-BR/skills-guide.md +281 -0
  1588. package/docs/content/locales/pt-BR/template-analytics.md +259 -0
  1589. package/docs/content/locales/pt-BR/template-assets.md +303 -0
  1590. package/docs/content/locales/pt-BR/template-brain.md +324 -0
  1591. package/docs/content/locales/pt-BR/template-calendar.md +194 -0
  1592. package/docs/content/locales/pt-BR/template-chat.md +129 -0
  1593. package/docs/content/locales/pt-BR/template-clips.md +368 -0
  1594. package/docs/content/locales/pt-BR/template-content.md +402 -0
  1595. package/docs/content/locales/pt-BR/template-design.md +173 -0
  1596. package/docs/content/locales/pt-BR/template-dispatch.md +220 -0
  1597. package/docs/content/locales/pt-BR/template-forms.md +178 -0
  1598. package/docs/content/locales/pt-BR/template-mail.md +239 -0
  1599. package/docs/content/locales/pt-BR/template-plan.md +815 -0
  1600. package/docs/content/locales/pt-BR/template-slides.md +293 -0
  1601. package/docs/content/locales/pt-BR/template-videos.md +222 -0
  1602. package/docs/content/locales/pt-BR/tracking.md +236 -0
  1603. package/docs/content/locales/pt-BR/using-your-agent.md +71 -0
  1604. package/docs/content/locales/pt-BR/voice-input.md +81 -0
  1605. package/docs/content/locales/pt-BR/what-is-agent-native.md +202 -0
  1606. package/docs/content/locales/pt-BR/workspace-connections.md +321 -0
  1607. package/docs/content/locales/pt-BR/workspace-management.md +175 -0
  1608. package/docs/content/locales/pt-BR/workspace.md +323 -0
  1609. package/docs/content/locales/pt-BR/writing-agent-instructions.md +173 -0
  1610. package/docs/content/locales/zh-CN/a2a-protocol.md +392 -0
  1611. package/docs/content/locales/zh-CN/actions.md +583 -0
  1612. package/docs/content/locales/zh-CN/agent-mentions.md +164 -0
  1613. package/docs/content/locales/zh-CN/agent-surfaces.md +397 -0
  1614. package/docs/content/locales/zh-CN/agent-teams.md +171 -0
  1615. package/docs/content/locales/zh-CN/agent-web-surfaces.md +161 -0
  1616. package/docs/content/locales/zh-CN/audit-log.md +111 -0
  1617. package/docs/content/locales/zh-CN/authentication.md +332 -0
  1618. package/docs/content/locales/zh-CN/automations.md +268 -0
  1619. package/docs/content/locales/zh-CN/blueprint-installer.md +83 -0
  1620. package/docs/content/locales/zh-CN/cli-adapters.md +129 -0
  1621. package/docs/content/locales/zh-CN/client.md +398 -0
  1622. package/docs/content/locales/zh-CN/cloneable-saas.md +114 -0
  1623. package/docs/content/locales/zh-CN/code-agents-ui.md +436 -0
  1624. package/docs/content/locales/zh-CN/components.md +368 -0
  1625. package/docs/content/locales/zh-CN/context-awareness.md +373 -0
  1626. package/docs/content/locales/zh-CN/creating-templates.md +411 -0
  1627. package/docs/content/locales/zh-CN/cross-app-sso.md +188 -0
  1628. package/docs/content/locales/zh-CN/database.md +183 -0
  1629. package/docs/content/locales/zh-CN/deployment.md +349 -0
  1630. package/docs/content/locales/zh-CN/dispatch.md +146 -0
  1631. package/docs/content/locales/zh-CN/drop-in-agent.md +260 -0
  1632. package/docs/content/locales/zh-CN/durable-resume.md +65 -0
  1633. package/docs/content/locales/zh-CN/embedding-sdk.md +597 -0
  1634. package/docs/content/locales/zh-CN/evals.md +155 -0
  1635. package/docs/content/locales/zh-CN/extensions.md +360 -0
  1636. package/docs/content/locales/zh-CN/external-agents.md +619 -0
  1637. package/docs/content/locales/zh-CN/faq.md +142 -0
  1638. package/docs/content/locales/zh-CN/file-uploads.md +122 -0
  1639. package/docs/content/locales/zh-CN/frames.md +153 -0
  1640. package/docs/content/locales/zh-CN/getting-started.md +199 -0
  1641. package/docs/content/locales/zh-CN/harness-agents.md +349 -0
  1642. package/docs/content/locales/zh-CN/human-approval.md +86 -0
  1643. package/docs/content/locales/zh-CN/internationalization.md +67 -24
  1644. package/docs/content/locales/zh-CN/key-concepts.md +312 -0
  1645. package/docs/content/locales/zh-CN/local-file-mode.md +433 -0
  1646. package/docs/content/locales/zh-CN/mcp-apps.md +147 -0
  1647. package/docs/content/locales/zh-CN/mcp-clients.md +330 -0
  1648. package/docs/content/locales/zh-CN/mcp-protocol.md +279 -0
  1649. package/docs/content/locales/zh-CN/messaging.md +461 -0
  1650. package/docs/content/locales/zh-CN/migration-workbench.md +33 -0
  1651. package/docs/content/locales/zh-CN/multi-app-workspace.md +312 -0
  1652. package/docs/content/locales/zh-CN/multi-tenancy.md +52 -0
  1653. package/docs/content/locales/zh-CN/native-chat-ui.md +321 -0
  1654. package/docs/content/locales/zh-CN/notifications.md +231 -0
  1655. package/docs/content/locales/zh-CN/observability.md +294 -0
  1656. package/docs/content/locales/zh-CN/observational-memory.md +77 -0
  1657. package/docs/content/locales/zh-CN/onboarding.md +216 -0
  1658. package/docs/content/locales/zh-CN/plan-plugin.md +200 -0
  1659. package/docs/content/locales/zh-CN/pr-visual-recap.md +384 -0
  1660. package/docs/content/locales/zh-CN/processors.md +106 -0
  1661. package/docs/content/locales/zh-CN/progress.md +199 -0
  1662. package/docs/content/locales/zh-CN/pure-agent-apps.md +39 -0
  1663. package/docs/content/locales/zh-CN/real-time-collaboration.md +676 -0
  1664. package/docs/content/locales/zh-CN/recurring-jobs.md +142 -0
  1665. package/docs/content/locales/zh-CN/routing.md +79 -0
  1666. package/docs/content/locales/zh-CN/sandbox-adapters.md +227 -0
  1667. package/docs/content/locales/zh-CN/security.md +330 -0
  1668. package/docs/content/locales/zh-CN/server.md +253 -0
  1669. package/docs/content/locales/zh-CN/sharing.md +219 -0
  1670. package/docs/content/locales/zh-CN/skills-guide.md +281 -0
  1671. package/docs/content/locales/zh-CN/template-analytics.md +259 -0
  1672. package/docs/content/locales/zh-CN/template-assets.md +303 -0
  1673. package/docs/content/locales/zh-CN/template-brain.md +324 -0
  1674. package/docs/content/locales/zh-CN/template-calendar.md +194 -0
  1675. package/docs/content/locales/zh-CN/template-chat.md +129 -0
  1676. package/docs/content/locales/zh-CN/template-clips.md +368 -0
  1677. package/docs/content/locales/zh-CN/template-content.md +402 -0
  1678. package/docs/content/locales/zh-CN/template-design.md +173 -0
  1679. package/docs/content/locales/zh-CN/template-dispatch.md +220 -0
  1680. package/docs/content/locales/zh-CN/template-forms.md +178 -0
  1681. package/docs/content/locales/zh-CN/template-mail.md +239 -0
  1682. package/docs/content/locales/zh-CN/template-plan.md +814 -0
  1683. package/docs/content/locales/zh-CN/template-slides.md +293 -0
  1684. package/docs/content/locales/zh-CN/template-videos.md +222 -0
  1685. package/docs/content/locales/zh-CN/tracking.md +236 -0
  1686. package/docs/content/locales/zh-CN/using-your-agent.md +71 -0
  1687. package/docs/content/locales/zh-CN/voice-input.md +81 -0
  1688. package/docs/content/locales/zh-CN/what-is-agent-native.md +202 -0
  1689. package/docs/content/locales/zh-CN/workspace-connections.md +321 -0
  1690. package/docs/content/locales/zh-CN/workspace-management.md +175 -0
  1691. package/docs/content/locales/zh-CN/workspace.md +323 -0
  1692. package/docs/content/locales/zh-CN/writing-agent-instructions.md +173 -0
  1693. package/package.json +1 -1
  1694. package/src/templates/default/app/i18n/ar-SA.ts +356 -0
  1695. package/src/templates/default/app/i18n/de-DE.ts +332 -0
  1696. package/src/templates/default/app/i18n/en-US.ts +303 -0
  1697. package/src/templates/default/app/i18n/es-ES.ts +339 -0
  1698. package/src/templates/default/app/i18n/fr-FR.ts +339 -0
  1699. package/src/templates/default/app/i18n/hi-IN.ts +332 -0
  1700. package/src/templates/default/app/i18n/index.ts +18 -0
  1701. package/src/templates/default/app/i18n/ja-JP.ts +326 -0
  1702. package/src/templates/default/app/i18n/ko-KR.ts +326 -0
  1703. package/src/templates/default/app/i18n/pt-BR.ts +339 -0
  1704. package/src/templates/default/app/i18n/zh-CN.ts +324 -0
  1705. package/src/templates/default/app/root.tsx +109 -6
  1706. package/src/templates/workspace-core/.agents/skills/extensions/references/api.md +34 -12
@@ -3,6 +3,7 @@ import { useMemo, useRef, useState } from "react";
3
3
  import { IconBuilding, IconUserPlus, IconTrash, IconCrown, IconShieldCheck, IconLoader2, IconCheck, IconPencil, IconAt, IconX, IconKey, IconCopy, IconRefresh, IconEye, IconEyeOff, IconCloudUpload, IconFileImport, IconPlus, IconAlertTriangle, } from "@tabler/icons-react";
4
4
  import { useOrg, useOrgMembers, useOrgInvitations, useCreateOrg, useUpdateOrg, useBulkInviteMembers, useChangeMemberRole, useAcceptInvitation, useRemoveMember, useSwitchOrg, useSetOrgDomain, useSetA2ASecret, useSyncA2ASecret, useJoinByDomain, } from "./hooks.js";
5
5
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "../components/ui/tooltip.js";
6
+ import { useT } from "../i18n.js";
6
7
  function RoleIcon({ role }) {
7
8
  if (role === "owner")
8
9
  return _jsx(IconCrown, { className: "h-3.5 w-3.5 text-amber-500" });
@@ -16,37 +17,40 @@ function ErrorText({ error }) {
16
17
  return (_jsx("p", { className: "text-xs text-red-500", children: error instanceof Error ? error.message : String(error) }));
17
18
  }
18
19
  function PendingInvitationsCard() {
20
+ const t = useT();
19
21
  const { data: org } = useOrg();
20
22
  const acceptInvitation = useAcceptInvitation();
21
23
  if (!org?.pendingInvitations?.length)
22
24
  return null;
23
- return (_jsxs("section", { className: "rounded-lg border border-border bg-card p-4 space-y-3", children: [_jsx("h3", { className: "text-sm font-medium", children: "Pending Invitations" }), org.pendingInvitations.map((inv) => (_jsxs("div", { className: "flex items-center justify-between rounded-md border border-border p-3", children: [_jsxs("div", { children: [_jsx("div", { className: "text-sm font-medium", children: inv.orgName }), _jsxs("div", { className: "text-xs text-muted-foreground", children: ["Invited by ", inv.invitedBy] })] }), _jsx("button", { type: "button", onClick: () => acceptInvitation.mutate(inv.id), disabled: acceptInvitation.isPending, className: "rounded-md bg-green-600 px-3 py-1.5 text-xs font-medium text-white hover:bg-green-700 disabled:opacity-50", children: acceptInvitation.isPending ? (_jsx(IconLoader2, { className: "h-3.5 w-3.5 animate-spin" })) : ("Accept") })] }, inv.id))), _jsx(ErrorText, { error: acceptInvitation.error })] }));
25
+ return (_jsxs("section", { className: "rounded-lg border border-border bg-card p-4 space-y-3", children: [_jsx("h3", { className: "text-sm font-medium", children: t("org.pendingInvitations") }), org.pendingInvitations.map((inv) => (_jsxs("div", { className: "flex items-center justify-between rounded-md border border-border p-3", children: [_jsxs("div", { children: [_jsx("div", { className: "text-sm font-medium", children: inv.orgName }), _jsx("div", { className: "text-xs text-muted-foreground", children: t("org.invitedByLabel", { name: inv.invitedBy }) })] }), _jsx("button", { type: "button", onClick: () => acceptInvitation.mutate(inv.id), disabled: acceptInvitation.isPending, className: "rounded-md bg-green-600 px-3 py-1.5 text-xs font-medium text-white hover:bg-green-700 disabled:opacity-50", children: acceptInvitation.isPending ? (_jsx(IconLoader2, { className: "h-3.5 w-3.5 animate-spin" })) : (t("org.accept")) })] }, inv.id))), _jsx(ErrorText, { error: acceptInvitation.error })] }));
24
26
  }
25
27
  function JoinByDomainCard({ matches }) {
28
+ const t = useT();
26
29
  const joinByDomain = useJoinByDomain();
27
30
  const [pendingId, setPendingId] = useState(null);
28
- return (_jsxs("section", { className: "rounded-lg border border-border bg-card p-4 space-y-3", children: [_jsx("h3", { className: "text-sm font-medium", children: "Join your team" }), _jsx("p", { className: "text-sm text-muted-foreground", children: matches.length === 1
29
- ? `An organization matching your email domain already exists. Join it to collaborate with your teammates.`
30
- : `Organizations matching your email domain already exist. Join one to collaborate with your teammates.` }), _jsx("div", { className: "space-y-2", children: matches.map((m) => (_jsxs("div", { className: "flex items-center justify-between rounded-md border border-border p-3", children: [_jsxs("div", { className: "flex items-center gap-2.5", children: [_jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-md bg-blue-600/10", children: _jsx(IconBuilding, { className: "h-4 w-4 text-blue-600" }) }), _jsx("div", { className: "text-sm font-medium", children: m.orgName })] }), _jsx("button", { type: "button", disabled: joinByDomain.isPending && pendingId === m.orgId, onClick: () => {
31
+ return (_jsxs("section", { className: "rounded-lg border border-border bg-card p-4 space-y-3", children: [_jsx("h3", { className: "text-sm font-medium", children: t("org.joinYourTeam") }), _jsx("p", { className: "text-sm text-muted-foreground", children: matches.length === 1
32
+ ? t("org.joinDomainOne")
33
+ : t("org.joinDomainMany") }), _jsx("div", { className: "space-y-2", children: matches.map((m) => (_jsxs("div", { className: "flex items-center justify-between rounded-md border border-border p-3", children: [_jsxs("div", { className: "flex items-center gap-2.5", children: [_jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-md bg-blue-600/10", children: _jsx(IconBuilding, { className: "h-4 w-4 text-blue-600" }) }), _jsx("div", { className: "text-sm font-medium", children: m.orgName })] }), _jsx("button", { type: "button", disabled: joinByDomain.isPending && pendingId === m.orgId, onClick: () => {
31
34
  setPendingId(m.orgId);
32
35
  joinByDomain.mutate(m.orgId, {
33
36
  onSettled: () => setPendingId(null),
34
37
  });
35
- }, className: "rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50", children: joinByDomain.isPending && pendingId === m.orgId ? (_jsx(IconLoader2, { className: "h-3.5 w-3.5 animate-spin" })) : ("Join") })] }, m.orgId))) }), _jsx(ErrorText, { error: joinByDomain.error })] }));
38
+ }, className: "rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50", children: joinByDomain.isPending && pendingId === m.orgId ? (_jsx(IconLoader2, { className: "h-3.5 w-3.5 animate-spin" })) : (t("org.join")) })] }, m.orgId))) }), _jsx(ErrorText, { error: joinByDomain.error })] }));
36
39
  }
37
40
  function CreateOrgCard({ description }) {
41
+ const t = useT();
38
42
  const createOrg = useCreateOrg();
39
43
  const [name, setName] = useState("");
40
44
  const [showForm, setShowForm] = useState(false);
41
- return (_jsxs("section", { className: "rounded-lg border border-border bg-card p-4 space-y-3", children: [_jsx("h3", { className: "text-sm font-medium", children: "Create an Organization" }), _jsx("p", { className: "text-sm text-muted-foreground", children: description || "Set up a team to collaborate with your colleagues." }), !showForm ? (_jsx("button", { type: "button", onClick: () => setShowForm(true), className: "rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90", children: "Create organization" })) : (_jsxs("div", { className: "space-y-2", children: [_jsx("input", { type: "text", value: name, onChange: (e) => setName(e.target.value), placeholder: "e.g. Acme Inc.", className: "w-full rounded-md border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-foreground", autoFocus: true }), _jsxs("div", { className: "flex gap-2", children: [_jsx("button", { type: "button", disabled: !name.trim() || createOrg.isPending, onClick: () => createOrg.mutate(name.trim(), {
45
+ return (_jsxs("section", { className: "rounded-lg border border-border bg-card p-4 space-y-3", children: [_jsx("h3", { className: "text-sm font-medium", children: t("org.createOrgCardTitle") }), _jsx("p", { className: "text-sm text-muted-foreground", children: description || t("org.createOrgCardDescription") }), !showForm ? (_jsx("button", { type: "button", onClick: () => setShowForm(true), className: "rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90", children: t("org.createOrganization") })) : (_jsxs("div", { className: "space-y-2", children: [_jsx("input", { type: "text", value: name, onChange: (e) => setName(e.target.value), placeholder: "e.g. Acme Inc.", className: "w-full rounded-md border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-foreground", autoFocus: true }), _jsxs("div", { className: "flex gap-2", children: [_jsx("button", { type: "button", disabled: !name.trim() || createOrg.isPending, onClick: () => createOrg.mutate(name.trim(), {
42
46
  onSuccess: () => {
43
47
  setName("");
44
48
  setShowForm(false);
45
49
  },
46
- }), className: "rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50", children: createOrg.isPending ? (_jsx(IconLoader2, { className: "h-3.5 w-3.5 animate-spin" })) : ("Create") }), _jsx("button", { type: "button", onClick: () => {
50
+ }), className: "rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50", children: createOrg.isPending ? (_jsx(IconLoader2, { className: "h-3.5 w-3.5 animate-spin" })) : (t("org.create")) }), _jsx("button", { type: "button", onClick: () => {
47
51
  setShowForm(false);
48
52
  setName("");
49
- }, className: "rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground", children: "Cancel" })] }), _jsx(ErrorText, { error: createOrg.error })] }))] }));
53
+ }, className: "rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground", children: t("org.cancel") })] }), _jsx(ErrorText, { error: createOrg.error })] }))] }));
50
54
  }
51
55
  function OrgNameDisplay({ name, canEdit }) {
52
56
  const [editing, setEditing] = useState(false);
@@ -76,6 +80,7 @@ function OrgNameDisplay({ name, canEdit }) {
76
80
  }, onBlur: save, className: "rounded border border-border bg-background px-1.5 py-0.5 text-sm font-medium focus:outline-none focus:ring-1 focus:ring-foreground", autoFocus: true }), _jsx(ErrorText, { error: updateOrg.error })] }));
77
81
  }
78
82
  function MembersCard() {
83
+ const t = useT();
79
84
  const { data: org } = useOrg();
80
85
  const { data: membersData, isLoading: isLoadingMembers } = useOrgMembers();
81
86
  const { data: invitationsData } = useOrgInvitations();
@@ -89,9 +94,10 @@ function MembersCard() {
89
94
  const members = membersData?.members ?? [];
90
95
  const pendingInvites = invitationsData?.invitations ?? [];
91
96
  const hasMultipleOrgs = (org.orgs?.length ?? 0) > 1;
92
- return (_jsxs("section", { className: "rounded-lg border border-border bg-card p-4 space-y-4", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-blue-600/10", children: _jsx(IconBuilding, { className: "h-5 w-5 text-blue-600" }) }), _jsxs("div", { children: [_jsx(OrgNameDisplay, { name: org.orgName ?? "", canEdit: isOwnerOrAdmin }), _jsxs("div", { className: "text-xs text-muted-foreground", children: [members.length, " member", members.length !== 1 ? "s" : "", " \u00B7 You are", " ", org.role] })] })] }), hasMultipleOrgs && (_jsx("select", { value: org.orgId ?? "", onChange: (e) => switchOrg.mutate(e.target.value || null), disabled: switchOrg.isPending, className: "rounded-md border border-border bg-background px-2.5 py-1.5 text-xs", children: org.orgs.map((o) => (_jsx("option", { value: o.orgId, children: o.orgName }, o.orgId))) }))] }), _jsxs("div", { className: "border-t border-border pt-3 space-y-1", children: [_jsx("div", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2", children: "Members" }), isLoadingMembers && members.length === 0 && (_jsx(_Fragment, { children: [0, 1, 2].map((i) => (_jsx("div", { className: "flex items-center justify-between py-1.5 px-2", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("div", { className: "h-3.5 rounded bg-muted animate-pulse", style: { width: `${140 + i * 30}px` } }), _jsx("div", { className: "h-3.5 w-3.5 rounded bg-muted animate-pulse" })] }) }, i))) })), members.map((m) => (_jsx(MemberRow, { email: m.email, role: m.role, isCurrentUser: m.email === org.email, currentUserRole: org.role ?? null }, m.email))), pendingInvites.map((inv) => (_jsx("div", { className: "flex items-center justify-between py-1.5 px-2 opacity-60", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-sm", children: inv.email }), _jsx(RoleIcon, { role: inv.role }), _jsxs("span", { className: "rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: ["Invited", inv.role === "admin" ? " · admin" : ""] })] }) }, inv.id)))] }), isOwnerOrAdmin && (_jsx("div", { className: "border-t border-border pt-3", children: !showInviteForm ? (_jsxs("button", { type: "button", onClick: () => setShowInviteForm(true), className: "flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50", children: [_jsx(IconUserPlus, { className: "h-3.5 w-3.5" }), "Invite members"] })) : (_jsx(BulkInviteForm, { currentUserRole: org.role, onClose: () => setShowInviteForm(false) })) })), isOwnerOrAdmin && (_jsx(DomainSettingsSection, { domain: org.allowedDomain, ownerEmail: org.email })), isOwner && _jsx(A2ASecretSection, { secret: org.a2aSecret }), _jsx(ErrorText, { error: removeMember.error }), _jsx(ErrorText, { error: switchOrg.error })] }));
97
+ return (_jsxs("section", { className: "rounded-lg border border-border bg-card p-4 space-y-4", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-blue-600/10", children: _jsx(IconBuilding, { className: "h-5 w-5 text-blue-600" }) }), _jsxs("div", { children: [_jsx(OrgNameDisplay, { name: org.orgName ?? "", canEdit: isOwnerOrAdmin }), _jsxs("div", { className: "text-xs text-muted-foreground", children: [t("org.memberCount", { count: members.length }), " \u00B7", " ", t("org.youAreRole", { role: org.role })] })] })] }), hasMultipleOrgs && (_jsx("select", { value: org.orgId ?? "", onChange: (e) => switchOrg.mutate(e.target.value || null), disabled: switchOrg.isPending, className: "rounded-md border border-border bg-background px-2.5 py-1.5 text-xs", children: org.orgs.map((o) => (_jsx("option", { value: o.orgId, children: o.orgName }, o.orgId))) }))] }), _jsxs("div", { className: "border-t border-border pt-3 space-y-1", children: [_jsx("div", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2", children: t("org.members") }), isLoadingMembers && members.length === 0 && (_jsx(_Fragment, { children: [0, 1, 2].map((i) => (_jsx("div", { className: "flex items-center justify-between py-1.5 px-2", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("div", { className: "h-3.5 rounded bg-muted animate-pulse", style: { width: `${140 + i * 30}px` } }), _jsx("div", { className: "h-3.5 w-3.5 rounded bg-muted animate-pulse" })] }) }, i))) })), members.map((m) => (_jsx(MemberRow, { email: m.email, role: m.role, isCurrentUser: m.email === org.email, currentUserRole: org.role ?? null }, m.email))), pendingInvites.map((inv) => (_jsx("div", { className: "flex items-center justify-between py-1.5 px-2 opacity-60", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-sm", children: inv.email }), _jsx(RoleIcon, { role: inv.role }), _jsxs("span", { className: "rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: ["Invited", inv.role === "admin" ? " · admin" : ""] })] }) }, inv.id)))] }), isOwnerOrAdmin && (_jsx("div", { className: "border-t border-border pt-3", children: !showInviteForm ? (_jsxs("button", { type: "button", onClick: () => setShowInviteForm(true), className: "flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50", children: [_jsx(IconUserPlus, { className: "h-3.5 w-3.5" }), "Invite members"] })) : (_jsx(BulkInviteForm, { currentUserRole: org.role, onClose: () => setShowInviteForm(false) })) })), isOwnerOrAdmin && (_jsx(DomainSettingsSection, { domain: org.allowedDomain, ownerEmail: org.email })), isOwner && _jsx(A2ASecretSection, { secret: org.a2aSecret }), _jsx(ErrorText, { error: removeMember.error }), _jsx(ErrorText, { error: switchOrg.error })] }));
93
98
  }
94
99
  function MemberRow({ email, role, isCurrentUser, currentUserRole, }) {
100
+ const t = useT();
95
101
  const removeMember = useRemoveMember();
96
102
  const changeRole = useChangeMemberRole();
97
103
  const [editing, setEditing] = useState(false);
@@ -103,7 +109,7 @@ function MemberRow({ email, role, isCurrentUser, currentUserRole, }) {
103
109
  !isCurrentUser &&
104
110
  (currentUserRole === "owner" ||
105
111
  (currentUserRole === "admin" && role === "member"));
106
- return (_jsxs("div", { className: "flex items-center justify-between py-1.5 px-2 rounded hover:bg-accent/30", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-sm", children: email }), _jsx(RoleIcon, { role: role }), isCurrentUser && (_jsx("span", { className: "rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: "You" })), role === "admin" && (_jsx("span", { className: "rounded border border-border px-1.5 py-0.5 text-[10px] text-blue-600", children: "Admin" }))] }), canManage && (_jsxs("div", { className: "flex items-center gap-1", children: [editing ? (_jsxs("select", { autoFocus: true, value: role, onChange: (e) => {
112
+ return (_jsxs("div", { className: "flex items-center justify-between py-1.5 px-2 rounded hover:bg-accent/30", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-sm", children: email }), _jsx(RoleIcon, { role: role }), isCurrentUser && (_jsx("span", { className: "rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: t("org.you") })), role === "admin" && (_jsx("span", { className: "rounded border border-border px-1.5 py-0.5 text-[10px] text-blue-600", children: t("org.admin") }))] }), canManage && (_jsxs("div", { className: "flex items-center gap-1", children: [editing ? (_jsxs("select", { autoFocus: true, value: role, onChange: (e) => {
107
113
  const next = e.target.value === "admin" ? "admin" : "member";
108
114
  if (next !== role) {
109
115
  changeRole.mutate({ email, role: next }, { onSuccess: () => setEditing(false) });
@@ -111,9 +117,9 @@ function MemberRow({ email, role, isCurrentUser, currentUserRole, }) {
111
117
  else {
112
118
  setEditing(false);
113
119
  }
114
- }, onBlur: () => setEditing(false), disabled: changeRole.isPending, className: "rounded-md border border-border bg-background px-1.5 py-0.5 text-[11px]", children: [_jsx("option", { value: "member", children: "Member" }), _jsx("option", { value: "admin", children: "Admin" })] })) : (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: () => setEditing(true), className: "text-muted-foreground hover:text-foreground", children: _jsx(IconPencil, { className: "h-3.5 w-3.5" }) }) }), _jsx(TooltipContent, { children: "Change role" })] })), confirmingRemove ? (_jsxs("div", { className: "flex items-center gap-1", children: [_jsx("button", { type: "button", onClick: () => setConfirmingRemove(false), className: "rounded px-1.5 py-0.5 text-[11px] text-muted-foreground hover:bg-accent hover:text-foreground", children: "Cancel" }), _jsx("button", { type: "button", disabled: removeMember.isPending, onClick: () => removeMember.mutate(email, {
120
+ }, onBlur: () => setEditing(false), disabled: changeRole.isPending, className: "rounded-md border border-border bg-background px-1.5 py-0.5 text-[11px]", children: [_jsx("option", { value: "member", children: t("org.member") }), _jsx("option", { value: "admin", children: t("org.admin") })] })) : (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: () => setEditing(true), className: "text-muted-foreground hover:text-foreground", children: _jsx(IconPencil, { className: "h-3.5 w-3.5" }) }) }), _jsx(TooltipContent, { children: t("org.changeRole") })] })), confirmingRemove ? (_jsxs("div", { className: "flex items-center gap-1", children: [_jsx("button", { type: "button", onClick: () => setConfirmingRemove(false), className: "rounded px-1.5 py-0.5 text-[11px] text-muted-foreground hover:bg-accent hover:text-foreground", children: t("org.cancel") }), _jsx("button", { type: "button", disabled: removeMember.isPending, onClick: () => removeMember.mutate(email, {
115
121
  onSettled: () => setConfirmingRemove(false),
116
- }), className: "rounded bg-red-500 px-1.5 py-0.5 text-[11px] text-white hover:bg-red-600 disabled:opacity-50", children: "Remove" })] })) : (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", disabled: removeMember.isPending, onClick: () => setConfirmingRemove(true), className: "text-muted-foreground hover:text-red-500 disabled:opacity-50", children: _jsx(IconTrash, { className: "h-3.5 w-3.5" }) }) }), _jsx(TooltipContent, { children: "Remove member" })] }))] }))] }));
122
+ }), className: "rounded bg-red-500 px-1.5 py-0.5 text-[11px] text-white hover:bg-red-600 disabled:opacity-50", children: t("org.remove") })] })) : (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", disabled: removeMember.isPending, onClick: () => setConfirmingRemove(true), className: "text-muted-foreground hover:text-red-500 disabled:opacity-50", children: _jsx(IconTrash, { className: "h-3.5 w-3.5" }) }) }), _jsx(TooltipContent, { children: t("org.removeMember") })] }))] }))] }));
117
123
  }
118
124
  const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
119
125
  function parseEmailList(input) {
@@ -334,9 +340,10 @@ function A2ASecretSection({ secret }) {
334
340
  * Default Team management page. Templates can route directly to this component
335
341
  * or wrap it with their own Layout via the `layout` prop.
336
342
  */
337
- export function TeamPage({ layout, title = "Team", createOrgDescription, className, }) {
343
+ export function TeamPage({ layout, title, createOrgDescription, className, }) {
344
+ const t = useT();
338
345
  const { data: org, isLoading } = useOrg();
339
- const content = (_jsxs("div", { className: `space-y-6 max-w-2xl ${className ?? ""}`, children: [_jsx("h2", { className: "text-2xl font-bold tracking-tight", children: title }), isLoading && (_jsx("section", { className: "rounded-lg border border-border bg-card p-6", children: _jsx("div", { className: "text-sm text-muted-foreground", children: "Loading\u2026" }) })), !isLoading && (_jsxs(_Fragment, { children: [_jsx(PendingInvitationsCard, {}), !org?.orgId ? (_jsxs(_Fragment, { children: [org?.domainMatches && org.domainMatches.length > 0 && (_jsx(JoinByDomainCard, { matches: org.domainMatches })), _jsx(CreateOrgCard, { description: createOrgDescription })] })) : (_jsx(MembersCard, {}))] }))] }));
346
+ const content = (_jsxs("div", { className: `space-y-6 max-w-2xl ${className ?? ""}`, children: [_jsx("h2", { className: "text-2xl font-bold tracking-tight", children: title ?? t("org.team") }), isLoading && (_jsx("section", { className: "rounded-lg border border-border bg-card p-6", children: _jsx("div", { className: "text-sm text-muted-foreground", children: t("org.loading") }) })), !isLoading && (_jsxs(_Fragment, { children: [_jsx(PendingInvitationsCard, {}), !org?.orgId ? (_jsxs(_Fragment, { children: [org?.domainMatches && org.domainMatches.length > 0 && (_jsx(JoinByDomainCard, { matches: org.domainMatches })), _jsx(CreateOrgCard, { description: createOrgDescription })] })) : (_jsx(MembersCard, {}))] }))] }));
340
347
  const wrapped = (_jsx(TooltipProvider, { delayDuration: 200, children: content }));
341
348
  return layout ? _jsx(_Fragment, { children: layout(wrapped) }) : wrapped;
342
349
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TeamPage.js","sourceRoot":"","sources":["../../../src/client/org/TeamPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,SAAS,EACT,eAAe,EACf,WAAW,EACX,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACL,OAAO,EACP,QAAQ,EACR,WAAW,EACX,OAAO,EACP,UAAU,EACV,eAAe,EACf,cAAc,EACd,QAAQ,EACR,iBAAi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,CACJ,IACG,CACP,CAAC;IAEF,MAAM,OAAO,GAAG,CACd,KAAC,eAAe,IAAC,aAAa,EAAE,GAAG,YAAG,OAAO,GAAmB,CACjE,CAAC;IAEF,OAAO,MAAM,CAAC,CAAC,CAAC,4BAAG,MAAM,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,OAAO,CAAC;AACnD,CAAC","sourcesContent":["import { useMemo, useRef, useState, type ReactNode } from \"react\";\nimport {\n IconBuilding,\n IconUserPlus,\n IconTrash,\n IconCrown,\n IconShieldCheck,\n IconLoader2,\n IconCheck,\n IconPencil,\n IconAt,\n IconX,\n IconKey,\n IconCopy,\n IconRefresh,\n IconEye,\n IconEyeOff,\n IconCloudUpload,\n IconFileImport,\n IconPlus,\n IconAlertTriangle,\n} from \"@tabler/icons-react\";\nimport {\n useOrg,\n useOrgMembers,\n useOrgInvitations,\n useCreateOrg,\n useUpdateOrg,\n useBulkInviteMembers,\n useChangeMemberRole,\n useAcceptInvitation,\n useRemoveMember,\n useSwitchOrg,\n useSetOrgDomain,\n useSetA2ASecret,\n useSyncA2ASecret,\n useJoinByDomain,\n type InviteRole,\n type SyncA2ASecretResult,\n} from \"./hooks.js\";\nimport type { DomainMatchOrg } from \"../../org/types.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\n\nexport interface TeamPageProps {\n /**\n * Optional wrapper around the page contents. Templates pass their own Layout\n * component so the Team page renders inside the template's chrome.\n */\n layout?: (children: ReactNode) => ReactNode;\n /**\n * Title shown at the top of the page. Defaults to \"Team\".\n */\n title?: string;\n /**\n * Description shown on the \"Create an Organization\" card. Defaults to\n * \"Set up a team to collaborate with your colleagues.\"\n */\n createOrgDescription?: string;\n /**\n * Class applied to the outer max-width container. Templates can use this to\n * tweak page width.\n */\n className?: string;\n}\n\nfunction RoleIcon({ role }: { role: string }) {\n if (role === \"owner\")\n return <IconCrown className=\"h-3.5 w-3.5 text-amber-500\" />;\n if (role === \"admin\")\n return <IconShieldCheck className=\"h-3.5 w-3.5 text-blue-500\" />;\n return null;\n}\n\nfunction ErrorText({ error }: { error: unknown }) {\n if (!error) return null;\n return (\n <p className=\"text-xs text-red-500\">\n {error instanceof Error ? error.message : String(error)}\n </p>\n );\n}\n\nfunction PendingInvitationsCard() {\n const { data: org } = useOrg();\n const acceptInvitation = useAcceptInvitation();\n\n if (!org?.pendingInvitations?.length) return null;\n\n return (\n <section className=\"rounded-lg border border-border bg-card p-4 space-y-3\">\n <h3 className=\"text-sm font-medium\">Pending Invitations</h3>\n {org.pendingInvitations.map((inv) => (\n <div\n key={inv.id}\n className=\"flex items-center justify-between rounded-md border border-border p-3\"\n >\n <div>\n <div className=\"text-sm font-medium\">{inv.orgName}</div>\n <div className=\"text-xs text-muted-foreground\">\n Invited by {inv.invitedBy}\n </div>\n </div>\n <button\n type=\"button\"\n onClick={() => acceptInvitation.mutate(inv.id)}\n disabled={acceptInvitation.isPending}\n className=\"rounded-md bg-green-600 px-3 py-1.5 text-xs font-medium text-white hover:bg-green-700 disabled:opacity-50\"\n >\n {acceptInvitation.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n \"Accept\"\n )}\n </button>\n </div>\n ))}\n <ErrorText error={acceptInvitation.error} />\n </section>\n );\n}\n\nfunction JoinByDomainCard({ matches }: { matches: DomainMatchOrg[] }) {\n const joinByDomain = useJoinByDomain();\n const [pendingId, setPendingId] = useState<string | null>(null);\n\n return (\n <section className=\"rounded-lg border border-border bg-card p-4 space-y-3\">\n <h3 className=\"text-sm font-medium\">Join your team</h3>\n <p className=\"text-sm text-muted-foreground\">\n {matches.length === 1\n ? `An organization matching your email domain already exists. Join it to collaborate with your teammates.`\n : `Organizations matching your email domain already exist. Join one to collaborate with your teammates.`}\n </p>\n <div className=\"space-y-2\">\n {matches.map((m) => (\n <div\n key={m.orgId}\n className=\"flex items-center justify-between rounded-md border border-border p-3\"\n >\n <div className=\"flex items-center gap-2.5\">\n <div className=\"flex h-8 w-8 items-center justify-center rounded-md bg-blue-600/10\">\n <IconBuilding className=\"h-4 w-4 text-blue-600\" />\n </div>\n <div className=\"text-sm font-medium\">{m.orgName}</div>\n </div>\n <button\n type=\"button\"\n disabled={joinByDomain.isPending && pendingId === m.orgId}\n onClick={() => {\n setPendingId(m.orgId);\n joinByDomain.mutate(m.orgId, {\n onSettled: () => setPendingId(null),\n });\n }}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n {joinByDomain.isPending && pendingId === m.orgId ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n \"Join\"\n )}\n </button>\n </div>\n ))}\n </div>\n <ErrorText error={joinByDomain.error} />\n </section>\n );\n}\n\nfunction CreateOrgCard({ description }: { description?: string }) {\n const createOrg = useCreateOrg();\n const [name, setName] = useState(\"\");\n const [showForm, setShowForm] = useState(false);\n\n return (\n <section className=\"rounded-lg border border-border bg-card p-4 space-y-3\">\n <h3 className=\"text-sm font-medium\">Create an Organization</h3>\n <p className=\"text-sm text-muted-foreground\">\n {description || \"Set up a team to collaborate with your colleagues.\"}\n </p>\n {!showForm ? (\n <button\n type=\"button\"\n onClick={() => setShowForm(true)}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90\"\n >\n Create organization\n </button>\n ) : (\n <div className=\"space-y-2\">\n <input\n type=\"text\"\n value={name}\n onChange={(e) => setName(e.target.value)}\n placeholder=\"e.g. Acme Inc.\"\n className=\"w-full rounded-md border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-foreground\"\n autoFocus\n />\n <div className=\"flex gap-2\">\n <button\n type=\"button\"\n disabled={!name.trim() || createOrg.isPending}\n onClick={() =>\n createOrg.mutate(name.trim(), {\n onSuccess: () => {\n setName(\"\");\n setShowForm(false);\n },\n })\n }\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n {createOrg.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n \"Create\"\n )}\n </button>\n <button\n type=\"button\"\n onClick={() => {\n setShowForm(false);\n setName(\"\");\n }}\n className=\"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground\"\n >\n Cancel\n </button>\n </div>\n <ErrorText error={createOrg.error} />\n </div>\n )}\n </section>\n );\n}\n\nfunction OrgNameDisplay({ name, canEdit }: { name: string; canEdit: boolean }) {\n const [editing, setEditing] = useState(false);\n const [draft, setDraft] = useState(name);\n const updateOrg = useUpdateOrg();\n\n if (!canEdit) return <div className=\"text-sm font-medium\">{name}</div>;\n\n if (!editing) {\n return (\n <button\n type=\"button\"\n onClick={() => {\n setDraft(name);\n setEditing(true);\n }}\n className=\"group flex items-center gap-1.5 text-sm font-medium hover:text-foreground/80\"\n >\n {name}\n <IconPencil className=\"h-3 w-3 text-muted-foreground opacity-0 group-hover:opacity-100\" />\n </button>\n );\n }\n\n function save() {\n const trimmed = draft.trim();\n if (!trimmed || trimmed === name) {\n setEditing(false);\n return;\n }\n updateOrg.mutate(trimmed, { onSuccess: () => setEditing(false) });\n }\n\n return (\n <div className=\"flex items-center gap-1.5\">\n <input\n type=\"text\"\n value={draft}\n onChange={(e) => setDraft(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") save();\n if (e.key === \"Escape\") setEditing(false);\n }}\n onBlur={save}\n className=\"rounded border border-border bg-background px-1.5 py-0.5 text-sm font-medium focus:outline-none focus:ring-1 focus:ring-foreground\"\n autoFocus\n />\n <ErrorText error={updateOrg.error} />\n </div>\n );\n}\n\nfunction MembersCard() {\n const { data: org } = useOrg();\n const { data: membersData, isLoading: isLoadingMembers } = useOrgMembers();\n const { data: invitationsData } = useOrgInvitations();\n const removeMember = useRemoveMember();\n const switchOrg = useSwitchOrg();\n\n const [showInviteForm, setShowInviteForm] = useState(false);\n\n if (!org?.orgId) return null;\n\n const isOwner = org.role === \"owner\";\n const isOwnerOrAdmin = isOwner || org.role === \"admin\";\n const members = membersData?.members ?? [];\n const pendingInvites = invitationsData?.invitations ?? [];\n const hasMultipleOrgs = (org.orgs?.length ?? 0) > 1;\n\n return (\n <section className=\"rounded-lg border border-border bg-card p-4 space-y-4\">\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-3\">\n <div className=\"flex h-9 w-9 items-center justify-center rounded-lg bg-blue-600/10\">\n <IconBuilding className=\"h-5 w-5 text-blue-600\" />\n </div>\n <div>\n <OrgNameDisplay name={org.orgName ?? \"\"} canEdit={isOwnerOrAdmin} />\n <div className=\"text-xs text-muted-foreground\">\n {members.length} member{members.length !== 1 ? \"s\" : \"\"} · You are{\" \"}\n {org.role}\n </div>\n </div>\n </div>\n {hasMultipleOrgs && (\n <select\n value={org.orgId ?? \"\"}\n onChange={(e) => switchOrg.mutate(e.target.value || null)}\n disabled={switchOrg.isPending}\n className=\"rounded-md border border-border bg-background px-2.5 py-1.5 text-xs\"\n >\n {org.orgs.map((o) => (\n <option key={o.orgId} value={o.orgId}>\n {o.orgName}\n </option>\n ))}\n </select>\n )}\n </div>\n\n <div className=\"border-t border-border pt-3 space-y-1\">\n <div className=\"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2\">\n Members\n </div>\n {isLoadingMembers && members.length === 0 && (\n <>\n {[0, 1, 2].map((i) => (\n <div\n key={i}\n className=\"flex items-center justify-between py-1.5 px-2\"\n >\n <div className=\"flex items-center gap-2\">\n <div\n className=\"h-3.5 rounded bg-muted animate-pulse\"\n style={{ width: `${140 + i * 30}px` }}\n />\n <div className=\"h-3.5 w-3.5 rounded bg-muted animate-pulse\" />\n </div>\n </div>\n ))}\n </>\n )}\n {members.map((m) => (\n <MemberRow\n key={m.email}\n email={m.email}\n role={m.role}\n isCurrentUser={m.email === org.email}\n currentUserRole={org.role ?? null}\n />\n ))}\n {pendingInvites.map((inv) => (\n <div\n key={inv.id}\n className=\"flex items-center justify-between py-1.5 px-2 opacity-60\"\n >\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm\">{inv.email}</span>\n <RoleIcon role={inv.role} />\n <span className=\"rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground\">\n Invited{inv.role === \"admin\" ? \" · admin\" : \"\"}\n </span>\n </div>\n </div>\n ))}\n </div>\n\n {isOwnerOrAdmin && (\n <div className=\"border-t border-border pt-3\">\n {!showInviteForm ? (\n <button\n type=\"button\"\n onClick={() => setShowInviteForm(true)}\n className=\"flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconUserPlus className=\"h-3.5 w-3.5\" />\n Invite members\n </button>\n ) : (\n <BulkInviteForm\n currentUserRole={org.role}\n onClose={() => setShowInviteForm(false)}\n />\n )}\n </div>\n )}\n\n {isOwnerOrAdmin && (\n <DomainSettingsSection\n domain={org.allowedDomain}\n ownerEmail={org.email}\n />\n )}\n\n {isOwner && <A2ASecretSection secret={org.a2aSecret} />}\n\n <ErrorText error={removeMember.error} />\n <ErrorText error={switchOrg.error} />\n </section>\n );\n}\n\nfunction MemberRow({\n email,\n role,\n isCurrentUser,\n currentUserRole,\n}: {\n email: string;\n role: string;\n isCurrentUser: boolean;\n currentUserRole: string | null;\n}) {\n const removeMember = useRemoveMember();\n const changeRole = useChangeMemberRole();\n const [editing, setEditing] = useState(false);\n const [confirmingRemove, setConfirmingRemove] = useState(false);\n\n // Owners can manage admins + members. Admins can only manage members.\n // Owners themselves are immutable through this UI; current user can't\n // edit their own role here.\n const canManage =\n role !== \"owner\" &&\n !isCurrentUser &&\n (currentUserRole === \"owner\" ||\n (currentUserRole === \"admin\" && role === \"member\"));\n\n return (\n <div className=\"flex items-center justify-between py-1.5 px-2 rounded hover:bg-accent/30\">\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm\">{email}</span>\n <RoleIcon role={role} />\n {isCurrentUser && (\n <span className=\"rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground\">\n You\n </span>\n )}\n {role === \"admin\" && (\n <span className=\"rounded border border-border px-1.5 py-0.5 text-[10px] text-blue-600\">\n Admin\n </span>\n )}\n </div>\n {canManage && (\n <div className=\"flex items-center gap-1\">\n {editing ? (\n <select\n autoFocus\n value={role}\n onChange={(e) => {\n const next = e.target.value === \"admin\" ? \"admin\" : \"member\";\n if (next !== role) {\n changeRole.mutate(\n { email, role: next },\n { onSuccess: () => setEditing(false) },\n );\n } else {\n setEditing(false);\n }\n }}\n onBlur={() => setEditing(false)}\n disabled={changeRole.isPending}\n className=\"rounded-md border border-border bg-background px-1.5 py-0.5 text-[11px]\"\n >\n <option value=\"member\">Member</option>\n <option value=\"admin\">Admin</option>\n </select>\n ) : (\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() => setEditing(true)}\n className=\"text-muted-foreground hover:text-foreground\"\n >\n <IconPencil className=\"h-3.5 w-3.5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>Change role</TooltipContent>\n </Tooltip>\n )}\n {confirmingRemove ? (\n <div className=\"flex items-center gap-1\">\n <button\n type=\"button\"\n onClick={() => setConfirmingRemove(false)}\n className=\"rounded px-1.5 py-0.5 text-[11px] text-muted-foreground hover:bg-accent hover:text-foreground\"\n >\n Cancel\n </button>\n <button\n type=\"button\"\n disabled={removeMember.isPending}\n onClick={() =>\n removeMember.mutate(email, {\n onSettled: () => setConfirmingRemove(false),\n })\n }\n className=\"rounded bg-red-500 px-1.5 py-0.5 text-[11px] text-white hover:bg-red-600 disabled:opacity-50\"\n >\n Remove\n </button>\n </div>\n ) : (\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={removeMember.isPending}\n onClick={() => setConfirmingRemove(true)}\n className=\"text-muted-foreground hover:text-red-500 disabled:opacity-50\"\n >\n <IconTrash className=\"h-3.5 w-3.5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>Remove member</TooltipContent>\n </Tooltip>\n )}\n </div>\n )}\n </div>\n );\n}\n\ninterface DraftInvite {\n email: string;\n role: InviteRole;\n}\n\nconst EMAIL_RE = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\nfunction parseEmailList(input: string): string[] {\n return Array.from(\n new Set(\n input\n .split(/[\\s,;]+/)\n .map((s) => s.trim().toLowerCase())\n .filter(Boolean),\n ),\n );\n}\n\nfunction parseCsvEmails(text: string): string[] {\n // Tolerant CSV parse — split on lines, then on commas, take any cell\n // that looks like an email. Handles \"name,email,role\" rows or just\n // \"email\" per line. A robust full CSV parser would be overkill here.\n const cells: string[] = [];\n for (const line of text.split(/\\r?\\n/)) {\n for (const cell of line.split(\",\")) {\n const trimmed = cell.trim().replace(/^\"|\"$/g, \"\");\n if (trimmed) cells.push(trimmed);\n }\n }\n return Array.from(\n new Set(cells.filter((c) => EMAIL_RE.test(c)).map((c) => c.toLowerCase())),\n );\n}\n\nfunction BulkInviteForm({\n currentUserRole,\n onClose,\n}: {\n currentUserRole: string | null;\n onClose: () => void;\n}) {\n const bulkInvite = useBulkInviteMembers();\n const fileRef = useRef<HTMLInputElement>(null);\n const [drafts, setDrafts] = useState<DraftInvite[]>([\n { email: \"\", role: \"member\" },\n ]);\n const [pasteOpen, setPasteOpen] = useState(false);\n const [pasteValue, setPasteValue] = useState(\"\");\n const [pasteRole, setPasteRole] = useState<InviteRole>(\"member\");\n const [resultBanner, setResultBanner] = useState<{\n succeeded: number;\n failed: { email: string; error: string }[];\n } | null>(null);\n\n const canSetAdmin = currentUserRole === \"owner\";\n\n const validDrafts = useMemo(\n () =>\n drafts\n .map((d) => ({ ...d, email: d.email.trim().toLowerCase() }))\n .filter((d) => EMAIL_RE.test(d.email)),\n [drafts],\n );\n\n function setDraft(index: number, patch: Partial<DraftInvite>) {\n setDrafts((prev) =>\n prev.map((d, i) => (i === index ? { ...d, ...patch } : d)),\n );\n }\n\n function appendEmails(emails: string[], role: InviteRole) {\n if (!emails.length) return;\n setDrafts((prev) => {\n const existing = new Set(\n prev.map((d) => d.email.trim().toLowerCase()).filter(Boolean),\n );\n const fresh: DraftInvite[] = [];\n for (const e of emails) {\n if (!existing.has(e)) {\n fresh.push({ email: e, role });\n existing.add(e);\n }\n }\n // If the only existing row is an empty placeholder, drop it.\n const cleaned = prev.filter(\n (d, i) => !(i === 0 && !d.email.trim() && prev.length === 1),\n );\n return [...cleaned, ...fresh];\n });\n }\n\n function handleFile(file: File) {\n file.text().then((text) => {\n const emails = parseCsvEmails(text);\n if (emails.length) {\n appendEmails(emails, \"member\");\n } else {\n setResultBanner({\n succeeded: 0,\n failed: [{ email: file.name, error: \"No valid emails found in CSV\" }],\n });\n }\n });\n }\n\n async function submit() {\n setResultBanner(null);\n const dedup = new Map<string, DraftInvite>();\n for (const d of validDrafts) {\n // canSetAdmin guard mirrors server-side enforcement so an admin-only\n // user editing the form can't even attempt to grant admin (they'd\n // get a 403 anyway).\n const role = canSetAdmin ? d.role : \"member\";\n dedup.set(d.email, { ...d, role });\n }\n const invites = Array.from(dedup.values());\n if (invites.length === 0) return;\n\n const result = await bulkInvite.mutateAsync(invites);\n setResultBanner({\n succeeded: result.succeeded.length,\n failed: result.failed,\n });\n\n // Wipe drafts that succeeded; leave failed ones so the user can fix\n // and retry. If everything succeeded, reset to a single blank row.\n const failedEmails = new Set(result.failed.map((f) => f.email));\n setDrafts((prev) => {\n const remaining = prev.filter((d) =>\n failedEmails.has(d.email.trim().toLowerCase()),\n );\n return remaining.length > 0 ? remaining : [{ email: \"\", role: \"member\" }];\n });\n\n // Auto-close on full success.\n if (result.failed.length === 0 && result.succeeded.length > 0) {\n setTimeout(() => onClose(), 1200);\n }\n }\n\n return (\n <div className=\"space-y-3\">\n <div className=\"space-y-2\">\n {drafts.map((draft, i) => (\n <div key={i} className=\"flex items-center gap-2\">\n <input\n type=\"email\"\n value={draft.email}\n onChange={(e) => setDraft(i, { email: e.target.value })}\n placeholder=\"colleague@company.com\"\n className=\"flex-1 rounded-md border border-border bg-background px-3 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-foreground\"\n autoFocus={i === drafts.length - 1}\n />\n <select\n value={draft.role}\n onChange={(e) =>\n setDraft(i, {\n role: e.target.value === \"admin\" ? \"admin\" : \"member\",\n })\n }\n disabled={!canSetAdmin}\n title={\n canSetAdmin\n ? undefined\n : \"Only the organization owner can invite admins\"\n }\n className=\"rounded-md border border-border bg-background px-2 py-1.5 text-xs disabled:opacity-50\"\n >\n <option value=\"member\">Member</option>\n <option value=\"admin\">Admin</option>\n </select>\n {drafts.length > 1 && (\n <button\n type=\"button\"\n onClick={() =>\n setDrafts((prev) => prev.filter((_, j) => j !== i))\n }\n className=\"text-muted-foreground hover:text-red-500\"\n >\n <IconX className=\"h-3.5 w-3.5\" />\n </button>\n )}\n </div>\n ))}\n </div>\n\n <div className=\"flex flex-wrap items-center gap-2\">\n <button\n type=\"button\"\n onClick={() =>\n setDrafts((prev) => [...prev, { email: \"\", role: \"member\" }])\n }\n className=\"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconPlus className=\"h-3.5 w-3.5\" />\n Add another\n </button>\n <button\n type=\"button\"\n onClick={() => setPasteOpen((v) => !v)}\n className=\"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconUserPlus className=\"h-3.5 w-3.5\" />\n Paste many\n </button>\n <button\n type=\"button\"\n onClick={() => fileRef.current?.click()}\n className=\"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconFileImport className=\"h-3.5 w-3.5\" />\n Import CSV\n </button>\n <input\n ref={fileRef}\n type=\"file\"\n accept=\".csv,text/csv,text/plain\"\n className=\"hidden\"\n onChange={(e) => {\n const file = e.target.files?.[0];\n if (file) handleFile(file);\n // reset so re-uploading the same file re-fires onChange\n e.target.value = \"\";\n }}\n />\n </div>\n\n {pasteOpen && (\n <div className=\"space-y-2 rounded-md border border-border p-3\">\n <div className=\"text-xs font-medium text-muted-foreground\">\n Paste emails (comma, space, or newline separated)\n </div>\n <textarea\n value={pasteValue}\n onChange={(e) => setPasteValue(e.target.value)}\n rows={4}\n placeholder=\"alice@acme.com, bob@acme.com&#10;charlie@acme.com\"\n className=\"w-full rounded-md border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-foreground\"\n />\n <div className=\"flex items-center gap-2\">\n <select\n value={pasteRole}\n onChange={(e) =>\n setPasteRole(e.target.value === \"admin\" ? \"admin\" : \"member\")\n }\n disabled={!canSetAdmin}\n className=\"rounded-md border border-border bg-background px-2 py-1.5 text-xs disabled:opacity-50\"\n >\n <option value=\"member\">Add as members</option>\n <option value=\"admin\">Add as admins</option>\n </select>\n <button\n type=\"button\"\n onClick={() => {\n appendEmails(parseEmailList(pasteValue), pasteRole);\n setPasteValue(\"\");\n setPasteOpen(false);\n }}\n disabled={parseEmailList(pasteValue).length === 0}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n Add\n </button>\n <button\n type=\"button\"\n onClick={() => {\n setPasteValue(\"\");\n setPasteOpen(false);\n }}\n className=\"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground\"\n >\n Cancel\n </button>\n </div>\n </div>\n )}\n\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n disabled={validDrafts.length === 0 || bulkInvite.isPending}\n onClick={submit}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n {bulkInvite.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n <span className=\"inline-flex items-center gap-1\">\n <IconCheck className=\"h-3.5 w-3.5\" />\n Send {validDrafts.length || \"\"}{\" \"}\n {validDrafts.length === 1 ? \"invite\" : \"invites\"}\n </span>\n )}\n </button>\n <button\n type=\"button\"\n onClick={onClose}\n className=\"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground\"\n >\n Close\n </button>\n </div>\n\n <p className=\"text-[11px] text-muted-foreground\">\n Each invitee signs in with this exact email to accept.\n {canSetAdmin\n ? \" Admins can manage members and workspace settings.\"\n : \" Only the organization owner can grant admin access.\"}\n </p>\n\n {resultBanner && (\n <div className=\"space-y-1 rounded-md border border-border bg-accent/30 p-2.5\">\n {resultBanner.succeeded > 0 && (\n <p className=\"text-[11px] text-green-600\">\n <IconCheck className=\"inline h-3 w-3 -mt-0.5\" /> Sent{\" \"}\n {resultBanner.succeeded}{\" \"}\n {resultBanner.succeeded === 1 ? \"invite\" : \"invites\"}.\n </p>\n )}\n {resultBanner.failed.length > 0 && (\n <ul className=\"space-y-0.5 text-[11px] text-red-500\">\n {resultBanner.failed.map((f) => (\n <li key={f.email}>\n <IconAlertTriangle className=\"inline h-3 w-3 -mt-0.5 me-1\" />\n {f.email}: {f.error}\n </li>\n ))}\n </ul>\n )}\n </div>\n )}\n\n <ErrorText error={bulkInvite.error} />\n </div>\n );\n}\n\nfunction DomainSettingsSection({\n domain,\n ownerEmail,\n}: {\n domain: string | null;\n ownerEmail: string;\n}) {\n const setOrgDomain = useSetOrgDomain();\n const [editing, setEditing] = useState(false);\n const [draft, setDraft] = useState(domain ?? \"\");\n\n const ownDomain = ownerEmail.split(\"@\")[1]?.toLowerCase() ?? \"\";\n\n function save() {\n const trimmed = draft.trim().toLowerCase();\n if (trimmed === (domain ?? \"\")) {\n setEditing(false);\n return;\n }\n setOrgDomain.mutate(trimmed || null, {\n onSuccess: () => setEditing(false),\n });\n }\n\n return (\n <div className=\"border-t border-border pt-3 space-y-2\">\n <div className=\"text-xs font-medium text-muted-foreground uppercase tracking-wide\">\n Email domain auto-join\n </div>\n <p className=\"text-[11px] text-muted-foreground\">\n Anyone who signs up with an email at this domain will join your\n organization automatically. You can only set your own email domain (\n {ownDomain || \"—\"}); free email providers like gmail.com or outlook.com\n aren&apos;t allowed.\n </p>\n {!editing ? (\n <div className=\"flex items-center gap-2\">\n {domain ? (\n <>\n <span className=\"inline-flex items-center gap-1.5 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm\">\n <IconAt className=\"h-3.5 w-3.5 text-muted-foreground\" />\n {domain}\n </span>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() => {\n setDraft(domain);\n setEditing(true);\n }}\n className=\"text-muted-foreground hover:text-foreground\"\n >\n <IconPencil className=\"h-3.5 w-3.5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>Edit domain</TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={setOrgDomain.isPending}\n onClick={() => setOrgDomain.mutate(null)}\n className=\"text-muted-foreground hover:text-red-500 disabled:opacity-50\"\n >\n <IconX className=\"h-3.5 w-3.5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>Remove domain</TooltipContent>\n </Tooltip>\n </>\n ) : (\n <button\n type=\"button\"\n onClick={() => {\n setDraft(ownDomain);\n setEditing(true);\n }}\n className=\"flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconAt className=\"h-3.5 w-3.5\" />\n Allow {ownDomain || \"your domain\"} to auto-join\n </button>\n )}\n </div>\n ) : (\n <div className=\"flex items-center gap-2\">\n <input\n type=\"text\"\n value={draft}\n onChange={(e) => setDraft(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") save();\n if (e.key === \"Escape\") setEditing(false);\n }}\n placeholder={ownDomain || \"example.com\"}\n className=\"rounded-md border border-border bg-background px-2.5 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-foreground\"\n autoFocus\n />\n <button\n type=\"button\"\n disabled={setOrgDomain.isPending}\n onClick={save}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n {setOrgDomain.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n \"Save\"\n )}\n </button>\n <button\n type=\"button\"\n onClick={() => setEditing(false)}\n className=\"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground\"\n >\n Cancel\n </button>\n </div>\n )}\n <ErrorText error={setOrgDomain.error} />\n </div>\n );\n}\n\nfunction A2ASecretSection({ secret }: { secret: string | null | undefined }) {\n const setA2ASecret = useSetA2ASecret();\n const syncA2ASecret = useSyncA2ASecret();\n const [revealed, setRevealed] = useState(false);\n const [copied, setCopied] = useState(false);\n const [pasteMode, setPasteMode] = useState(false);\n const [pasteValue, setPasteValue] = useState(\"\");\n const [syncResult, setSyncResult] = useState<SyncA2ASecretResult | null>(\n null,\n );\n\n function copyToClipboard() {\n if (!secret) return;\n navigator.clipboard.writeText(secret).then(() => {\n setCopied(true);\n setTimeout(() => setCopied(false), 2000);\n });\n }\n\n // Push the current secret to all connected apps. Optionally pass the\n // PREVIOUS secret as `signSecret` so the receiving apps (which still\n // hold the previous value) can verify the JWT.\n function syncToApps(signSecret?: string) {\n setSyncResult(null);\n syncA2ASecret.mutate(signSecret ? { signSecret } : undefined, {\n onSuccess: (result) => {\n setSyncResult(result);\n },\n });\n }\n\n function regenerate() {\n setA2ASecret.mutate(undefined, {\n onSuccess: (result) => {\n setRevealed(false);\n // Auto-sync the new secret to all connected apps. Sign with the\n // PREVIOUS secret (which peers still hold) so verification on\n // their side succeeds and they accept the new value.\n syncToApps(result.previousSecret ?? undefined);\n },\n });\n }\n\n function saveSecret() {\n const trimmed = pasteValue.trim();\n if (!trimmed) return;\n setA2ASecret.mutate(trimmed, {\n onSuccess: (result) => {\n setPasteMode(false);\n setPasteValue(\"\");\n // Same auto-sync flow as regenerate: peers verify with the\n // previous secret, then update to the new pasted value.\n syncToApps(result.previousSecret ?? undefined);\n },\n });\n }\n\n const masked = secret ? \"****\" + secret.slice(-8) : \"Not set\";\n\n return (\n <div className=\"border-t border-border pt-3 space-y-2\">\n <div className=\"text-xs font-medium text-muted-foreground uppercase tracking-wide\">\n Cross-app authentication\n </div>\n <p className=\"text-[11px] text-muted-foreground\">\n This secret authenticates cross-app delegation (e.g. Dispatch to\n Analytics). All apps in your organization need the same secret.\n </p>\n\n <div className=\"flex items-center gap-2 flex-wrap\">\n <span className=\"inline-flex items-center gap-1.5 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm font-mono\">\n <IconKey className=\"h-3.5 w-3.5 text-muted-foreground\" />\n {revealed && secret ? secret : masked}\n </span>\n {secret && (\n <>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() => setRevealed(!revealed)}\n className=\"text-muted-foreground hover:text-foreground\"\n >\n {revealed ? (\n <IconEyeOff className=\"h-3.5 w-3.5\" />\n ) : (\n <IconEye className=\"h-3.5 w-3.5\" />\n )}\n </button>\n </TooltipTrigger>\n <TooltipContent>\n {revealed ? \"Hide secret\" : \"Reveal secret\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={copyToClipboard}\n className=\"text-muted-foreground hover:text-foreground\"\n >\n {copied ? (\n <IconCheck className=\"h-3.5 w-3.5 text-green-500\" />\n ) : (\n <IconCopy className=\"h-3.5 w-3.5\" />\n )}\n </button>\n </TooltipTrigger>\n <TooltipContent>Copy secret</TooltipContent>\n </Tooltip>\n </>\n )}\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={regenerate}\n disabled={setA2ASecret.isPending || syncA2ASecret.isPending}\n className=\"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50 disabled:opacity-50\"\n >\n {setA2ASecret.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n <IconRefresh className=\"h-3.5 w-3.5\" />\n )}\n Regenerate\n </button>\n </TooltipTrigger>\n <TooltipContent>\n Regenerate secret and sync to connected apps\n </TooltipContent>\n </Tooltip>\n {secret && (\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() => syncToApps()}\n disabled={setA2ASecret.isPending || syncA2ASecret.isPending}\n className=\"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50 disabled:opacity-50\"\n >\n {syncA2ASecret.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n <IconCloudUpload className=\"h-3.5 w-3.5\" />\n )}\n Sync to apps\n </button>\n </TooltipTrigger>\n <TooltipContent>\n Push this secret to every connected app\n </TooltipContent>\n </Tooltip>\n )}\n </div>\n\n {syncA2ASecret.isPending && (\n <p className=\"text-[11px] text-muted-foreground\">\n Syncing to connected apps…\n </p>\n )}\n\n {syncResult && !syncA2ASecret.isPending && (\n <div className=\"space-y-1\">\n <p className=\"text-[11px] text-muted-foreground\">\n Synced to {syncResult.succeeded}/{syncResult.total} app\n {syncResult.total === 1 ? \"\" : \"s\"}\n {syncResult.failed > 0 ? ` (${syncResult.failed} failed)` : \"\"}.\n </p>\n {syncResult.failed > 0 && (\n <ul className=\"text-[11px] text-red-500 list-disc ps-5 space-y-0.5\">\n {syncResult.results\n .filter((r) => !r.ok)\n .map((r) => (\n <li key={r.id}>\n {r.name}: {r.error || `HTTP ${r.status ?? \"?\"}`}\n </li>\n ))}\n </ul>\n )}\n </div>\n )}\n\n {!pasteMode ? (\n <button\n type=\"button\"\n onClick={() => setPasteMode(true)}\n className=\"flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconKey className=\"h-3.5 w-3.5\" />\n Paste secret from another app\n </button>\n ) : (\n <div className=\"flex items-center gap-2\">\n <input\n type=\"text\"\n value={pasteValue}\n onChange={(e) => setPasteValue(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") saveSecret();\n if (e.key === \"Escape\") {\n setPasteMode(false);\n setPasteValue(\"\");\n }\n }}\n placeholder=\"Paste A2A secret\"\n className=\"flex-1 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm font-mono focus:outline-none focus:ring-1 focus:ring-foreground\"\n autoFocus\n />\n <button\n type=\"button\"\n disabled={!pasteValue.trim() || setA2ASecret.isPending}\n onClick={saveSecret}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n {setA2ASecret.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n \"Save\"\n )}\n </button>\n <button\n type=\"button\"\n onClick={() => {\n setPasteMode(false);\n setPasteValue(\"\");\n }}\n className=\"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground\"\n >\n Cancel\n </button>\n </div>\n )}\n\n <ErrorText error={setA2ASecret.error} />\n <ErrorText error={syncA2ASecret.error} />\n </div>\n );\n}\n\n/**\n * Default Team management page. Templates can route directly to this component\n * or wrap it with their own Layout via the `layout` prop.\n */\nexport function TeamPage({\n layout,\n title = \"Team\",\n createOrgDescription,\n className,\n}: TeamPageProps) {\n const { data: org, isLoading } = useOrg();\n\n const content = (\n <div className={`space-y-6 max-w-2xl ${className ?? \"\"}`}>\n <h2 className=\"text-2xl font-bold tracking-tight\">{title}</h2>\n\n {isLoading && (\n <section className=\"rounded-lg border border-border bg-card p-6\">\n <div className=\"text-sm text-muted-foreground\">Loading…</div>\n </section>\n )}\n\n {!isLoading && (\n <>\n <PendingInvitationsCard />\n {!org?.orgId ? (\n <>\n {org?.domainMatches && org.domainMatches.length > 0 && (\n <JoinByDomainCard matches={org.domainMatches} />\n )}\n <CreateOrgCard description={createOrgDescription} />\n </>\n ) : (\n <MembersCard />\n )}\n </>\n )}\n </div>\n );\n\n const wrapped = (\n <TooltipProvider delayDuration={200}>{content}</TooltipProvider>\n );\n\n return layout ? <>{layout(wrapped)}</> : wrapped;\n}\n"]}
1
+ {"version":3,"file":"TeamPage.js","sourceRoot":"","sources":["../../../src/client/org/TeamPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,SAAS,EACT,eAAe,EACf,WAAW,EACX,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACL,OAAO,EACP,QAAQ,EACR,WAAW,EACX,OAAO,EACP,UAAU,EACV,eAAe,EACf,cAAc,EACd,QAAQ,EACR,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,eAAe,GAGhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,OAAO,EACP,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAwBlC,SAAS,QAAQ,CAAC,EAAE,IAAI,EAAoB;IAC1C,IAAI,IAAI,KAAK,OAAO;QAClB,OAAO,KAAC,SAAS,IAAC,SAAS,EAAC,4BAA4B,GAAG,CAAC;IAC9D,IAAI,IAAI,KAAK,OAAO;QAClB,OAAO,KAAC,eAAe,IAAC,SAAS,EAAC,2BAA2B,GAAG,CAAC;IACnE,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,SAAS,CAAC,EAAE,KAAK,EAAsB;IAC9C,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,OAAO,CACL,YAAG,SAAS,EAAC,sBAAsB,YAChC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,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,aAAa,IAAC,WAAW,EAAE,oBAAoB,GAAI,IACnD,CACJ,CAAC,CAAC,CAAC,CACF,KAAC,WAAW,KAAG,CAChB,IACA,CACJ,IACG,CACP,CAAC;IAEF,MAAM,OAAO,GAAG,CACd,KAAC,eAAe,IAAC,aAAa,EAAE,GAAG,YAAG,OAAO,GAAmB,CACjE,CAAC;IAEF,OAAO,MAAM,CAAC,CAAC,CAAC,4BAAG,MAAM,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,OAAO,CAAC;AACnD,CAAC","sourcesContent":["import { useMemo, useRef, useState, type ReactNode } from \"react\";\nimport {\n IconBuilding,\n IconUserPlus,\n IconTrash,\n IconCrown,\n IconShieldCheck,\n IconLoader2,\n IconCheck,\n IconPencil,\n IconAt,\n IconX,\n IconKey,\n IconCopy,\n IconRefresh,\n IconEye,\n IconEyeOff,\n IconCloudUpload,\n IconFileImport,\n IconPlus,\n IconAlertTriangle,\n} from \"@tabler/icons-react\";\nimport {\n useOrg,\n useOrgMembers,\n useOrgInvitations,\n useCreateOrg,\n useUpdateOrg,\n useBulkInviteMembers,\n useChangeMemberRole,\n useAcceptInvitation,\n useRemoveMember,\n useSwitchOrg,\n useSetOrgDomain,\n useSetA2ASecret,\n useSyncA2ASecret,\n useJoinByDomain,\n type InviteRole,\n type SyncA2ASecretResult,\n} from \"./hooks.js\";\nimport type { DomainMatchOrg } from \"../../org/types.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\nimport { useT } from \"../i18n.js\";\n\nexport interface TeamPageProps {\n /**\n * Optional wrapper around the page contents. Templates pass their own Layout\n * component so the Team page renders inside the template's chrome.\n */\n layout?: (children: ReactNode) => ReactNode;\n /**\n * Title shown at the top of the page. Defaults to \"Team\".\n */\n title?: string;\n /**\n * Description shown on the \"Create an Organization\" card. Defaults to\n * \"Set up a team to collaborate with your colleagues.\"\n */\n createOrgDescription?: string;\n /**\n * Class applied to the outer max-width container. Templates can use this to\n * tweak page width.\n */\n className?: string;\n}\n\nfunction RoleIcon({ role }: { role: string }) {\n if (role === \"owner\")\n return <IconCrown className=\"h-3.5 w-3.5 text-amber-500\" />;\n if (role === \"admin\")\n return <IconShieldCheck className=\"h-3.5 w-3.5 text-blue-500\" />;\n return null;\n}\n\nfunction ErrorText({ error }: { error: unknown }) {\n if (!error) return null;\n return (\n <p className=\"text-xs text-red-500\">\n {error instanceof Error ? error.message : String(error)}\n </p>\n );\n}\n\nfunction PendingInvitationsCard() {\n const t = useT();\n const { data: org } = useOrg();\n const acceptInvitation = useAcceptInvitation();\n\n if (!org?.pendingInvitations?.length) return null;\n\n return (\n <section className=\"rounded-lg border border-border bg-card p-4 space-y-3\">\n <h3 className=\"text-sm font-medium\">{t(\"org.pendingInvitations\")}</h3>\n {org.pendingInvitations.map((inv) => (\n <div\n key={inv.id}\n className=\"flex items-center justify-between rounded-md border border-border p-3\"\n >\n <div>\n <div className=\"text-sm font-medium\">{inv.orgName}</div>\n <div className=\"text-xs text-muted-foreground\">\n {t(\"org.invitedByLabel\", { name: inv.invitedBy })}\n </div>\n </div>\n <button\n type=\"button\"\n onClick={() => acceptInvitation.mutate(inv.id)}\n disabled={acceptInvitation.isPending}\n className=\"rounded-md bg-green-600 px-3 py-1.5 text-xs font-medium text-white hover:bg-green-700 disabled:opacity-50\"\n >\n {acceptInvitation.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n t(\"org.accept\")\n )}\n </button>\n </div>\n ))}\n <ErrorText error={acceptInvitation.error} />\n </section>\n );\n}\n\nfunction JoinByDomainCard({ matches }: { matches: DomainMatchOrg[] }) {\n const t = useT();\n const joinByDomain = useJoinByDomain();\n const [pendingId, setPendingId] = useState<string | null>(null);\n\n return (\n <section className=\"rounded-lg border border-border bg-card p-4 space-y-3\">\n <h3 className=\"text-sm font-medium\">{t(\"org.joinYourTeam\")}</h3>\n <p className=\"text-sm text-muted-foreground\">\n {matches.length === 1\n ? t(\"org.joinDomainOne\")\n : t(\"org.joinDomainMany\")}\n </p>\n <div className=\"space-y-2\">\n {matches.map((m) => (\n <div\n key={m.orgId}\n className=\"flex items-center justify-between rounded-md border border-border p-3\"\n >\n <div className=\"flex items-center gap-2.5\">\n <div className=\"flex h-8 w-8 items-center justify-center rounded-md bg-blue-600/10\">\n <IconBuilding className=\"h-4 w-4 text-blue-600\" />\n </div>\n <div className=\"text-sm font-medium\">{m.orgName}</div>\n </div>\n <button\n type=\"button\"\n disabled={joinByDomain.isPending && pendingId === m.orgId}\n onClick={() => {\n setPendingId(m.orgId);\n joinByDomain.mutate(m.orgId, {\n onSettled: () => setPendingId(null),\n });\n }}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n {joinByDomain.isPending && pendingId === m.orgId ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n t(\"org.join\")\n )}\n </button>\n </div>\n ))}\n </div>\n <ErrorText error={joinByDomain.error} />\n </section>\n );\n}\n\nfunction CreateOrgCard({ description }: { description?: string }) {\n const t = useT();\n const createOrg = useCreateOrg();\n const [name, setName] = useState(\"\");\n const [showForm, setShowForm] = useState(false);\n\n return (\n <section className=\"rounded-lg border border-border bg-card p-4 space-y-3\">\n <h3 className=\"text-sm font-medium\">{t(\"org.createOrgCardTitle\")}</h3>\n <p className=\"text-sm text-muted-foreground\">\n {description || t(\"org.createOrgCardDescription\")}\n </p>\n {!showForm ? (\n <button\n type=\"button\"\n onClick={() => setShowForm(true)}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90\"\n >\n {t(\"org.createOrganization\")}\n </button>\n ) : (\n <div className=\"space-y-2\">\n <input\n type=\"text\"\n value={name}\n onChange={(e) => setName(e.target.value)}\n placeholder=\"e.g. Acme Inc.\"\n className=\"w-full rounded-md border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-foreground\"\n autoFocus\n />\n <div className=\"flex gap-2\">\n <button\n type=\"button\"\n disabled={!name.trim() || createOrg.isPending}\n onClick={() =>\n createOrg.mutate(name.trim(), {\n onSuccess: () => {\n setName(\"\");\n setShowForm(false);\n },\n })\n }\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n {createOrg.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n t(\"org.create\")\n )}\n </button>\n <button\n type=\"button\"\n onClick={() => {\n setShowForm(false);\n setName(\"\");\n }}\n className=\"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground\"\n >\n {t(\"org.cancel\")}\n </button>\n </div>\n <ErrorText error={createOrg.error} />\n </div>\n )}\n </section>\n );\n}\n\nfunction OrgNameDisplay({ name, canEdit }: { name: string; canEdit: boolean }) {\n const [editing, setEditing] = useState(false);\n const [draft, setDraft] = useState(name);\n const updateOrg = useUpdateOrg();\n\n if (!canEdit) return <div className=\"text-sm font-medium\">{name}</div>;\n\n if (!editing) {\n return (\n <button\n type=\"button\"\n onClick={() => {\n setDraft(name);\n setEditing(true);\n }}\n className=\"group flex items-center gap-1.5 text-sm font-medium hover:text-foreground/80\"\n >\n {name}\n <IconPencil className=\"h-3 w-3 text-muted-foreground opacity-0 group-hover:opacity-100\" />\n </button>\n );\n }\n\n function save() {\n const trimmed = draft.trim();\n if (!trimmed || trimmed === name) {\n setEditing(false);\n return;\n }\n updateOrg.mutate(trimmed, { onSuccess: () => setEditing(false) });\n }\n\n return (\n <div className=\"flex items-center gap-1.5\">\n <input\n type=\"text\"\n value={draft}\n onChange={(e) => setDraft(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") save();\n if (e.key === \"Escape\") setEditing(false);\n }}\n onBlur={save}\n className=\"rounded border border-border bg-background px-1.5 py-0.5 text-sm font-medium focus:outline-none focus:ring-1 focus:ring-foreground\"\n autoFocus\n />\n <ErrorText error={updateOrg.error} />\n </div>\n );\n}\n\nfunction MembersCard() {\n const t = useT();\n const { data: org } = useOrg();\n const { data: membersData, isLoading: isLoadingMembers } = useOrgMembers();\n const { data: invitationsData } = useOrgInvitations();\n const removeMember = useRemoveMember();\n const switchOrg = useSwitchOrg();\n\n const [showInviteForm, setShowInviteForm] = useState(false);\n\n if (!org?.orgId) return null;\n\n const isOwner = org.role === \"owner\";\n const isOwnerOrAdmin = isOwner || org.role === \"admin\";\n const members = membersData?.members ?? [];\n const pendingInvites = invitationsData?.invitations ?? [];\n const hasMultipleOrgs = (org.orgs?.length ?? 0) > 1;\n\n return (\n <section className=\"rounded-lg border border-border bg-card p-4 space-y-4\">\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-3\">\n <div className=\"flex h-9 w-9 items-center justify-center rounded-lg bg-blue-600/10\">\n <IconBuilding className=\"h-5 w-5 text-blue-600\" />\n </div>\n <div>\n <OrgNameDisplay name={org.orgName ?? \"\"} canEdit={isOwnerOrAdmin} />\n <div className=\"text-xs text-muted-foreground\">\n {t(\"org.memberCount\", { count: members.length })} ·{\" \"}\n {t(\"org.youAreRole\", { role: org.role })}\n </div>\n </div>\n </div>\n {hasMultipleOrgs && (\n <select\n value={org.orgId ?? \"\"}\n onChange={(e) => switchOrg.mutate(e.target.value || null)}\n disabled={switchOrg.isPending}\n className=\"rounded-md border border-border bg-background px-2.5 py-1.5 text-xs\"\n >\n {org.orgs.map((o) => (\n <option key={o.orgId} value={o.orgId}>\n {o.orgName}\n </option>\n ))}\n </select>\n )}\n </div>\n\n <div className=\"border-t border-border pt-3 space-y-1\">\n <div className=\"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2\">\n {t(\"org.members\")}\n </div>\n {isLoadingMembers && members.length === 0 && (\n <>\n {[0, 1, 2].map((i) => (\n <div\n key={i}\n className=\"flex items-center justify-between py-1.5 px-2\"\n >\n <div className=\"flex items-center gap-2\">\n <div\n className=\"h-3.5 rounded bg-muted animate-pulse\"\n style={{ width: `${140 + i * 30}px` }}\n />\n <div className=\"h-3.5 w-3.5 rounded bg-muted animate-pulse\" />\n </div>\n </div>\n ))}\n </>\n )}\n {members.map((m) => (\n <MemberRow\n key={m.email}\n email={m.email}\n role={m.role}\n isCurrentUser={m.email === org.email}\n currentUserRole={org.role ?? null}\n />\n ))}\n {pendingInvites.map((inv) => (\n <div\n key={inv.id}\n className=\"flex items-center justify-between py-1.5 px-2 opacity-60\"\n >\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm\">{inv.email}</span>\n <RoleIcon role={inv.role} />\n <span className=\"rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground\">\n Invited{inv.role === \"admin\" ? \" · admin\" : \"\"}\n </span>\n </div>\n </div>\n ))}\n </div>\n\n {isOwnerOrAdmin && (\n <div className=\"border-t border-border pt-3\">\n {!showInviteForm ? (\n <button\n type=\"button\"\n onClick={() => setShowInviteForm(true)}\n className=\"flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconUserPlus className=\"h-3.5 w-3.5\" />\n Invite members\n </button>\n ) : (\n <BulkInviteForm\n currentUserRole={org.role}\n onClose={() => setShowInviteForm(false)}\n />\n )}\n </div>\n )}\n\n {isOwnerOrAdmin && (\n <DomainSettingsSection\n domain={org.allowedDomain}\n ownerEmail={org.email}\n />\n )}\n\n {isOwner && <A2ASecretSection secret={org.a2aSecret} />}\n\n <ErrorText error={removeMember.error} />\n <ErrorText error={switchOrg.error} />\n </section>\n );\n}\n\nfunction MemberRow({\n email,\n role,\n isCurrentUser,\n currentUserRole,\n}: {\n email: string;\n role: string;\n isCurrentUser: boolean;\n currentUserRole: string | null;\n}) {\n const t = useT();\n const removeMember = useRemoveMember();\n const changeRole = useChangeMemberRole();\n const [editing, setEditing] = useState(false);\n const [confirmingRemove, setConfirmingRemove] = useState(false);\n\n // Owners can manage admins + members. Admins can only manage members.\n // Owners themselves are immutable through this UI; current user can't\n // edit their own role here.\n const canManage =\n role !== \"owner\" &&\n !isCurrentUser &&\n (currentUserRole === \"owner\" ||\n (currentUserRole === \"admin\" && role === \"member\"));\n\n return (\n <div className=\"flex items-center justify-between py-1.5 px-2 rounded hover:bg-accent/30\">\n <div className=\"flex items-center gap-2\">\n <span className=\"text-sm\">{email}</span>\n <RoleIcon role={role} />\n {isCurrentUser && (\n <span className=\"rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground\">\n {t(\"org.you\")}\n </span>\n )}\n {role === \"admin\" && (\n <span className=\"rounded border border-border px-1.5 py-0.5 text-[10px] text-blue-600\">\n {t(\"org.admin\")}\n </span>\n )}\n </div>\n {canManage && (\n <div className=\"flex items-center gap-1\">\n {editing ? (\n <select\n autoFocus\n value={role}\n onChange={(e) => {\n const next = e.target.value === \"admin\" ? \"admin\" : \"member\";\n if (next !== role) {\n changeRole.mutate(\n { email, role: next },\n { onSuccess: () => setEditing(false) },\n );\n } else {\n setEditing(false);\n }\n }}\n onBlur={() => setEditing(false)}\n disabled={changeRole.isPending}\n className=\"rounded-md border border-border bg-background px-1.5 py-0.5 text-[11px]\"\n >\n <option value=\"member\">{t(\"org.member\")}</option>\n <option value=\"admin\">{t(\"org.admin\")}</option>\n </select>\n ) : (\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() => setEditing(true)}\n className=\"text-muted-foreground hover:text-foreground\"\n >\n <IconPencil className=\"h-3.5 w-3.5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>{t(\"org.changeRole\")}</TooltipContent>\n </Tooltip>\n )}\n {confirmingRemove ? (\n <div className=\"flex items-center gap-1\">\n <button\n type=\"button\"\n onClick={() => setConfirmingRemove(false)}\n className=\"rounded px-1.5 py-0.5 text-[11px] text-muted-foreground hover:bg-accent hover:text-foreground\"\n >\n {t(\"org.cancel\")}\n </button>\n <button\n type=\"button\"\n disabled={removeMember.isPending}\n onClick={() =>\n removeMember.mutate(email, {\n onSettled: () => setConfirmingRemove(false),\n })\n }\n className=\"rounded bg-red-500 px-1.5 py-0.5 text-[11px] text-white hover:bg-red-600 disabled:opacity-50\"\n >\n {t(\"org.remove\")}\n </button>\n </div>\n ) : (\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={removeMember.isPending}\n onClick={() => setConfirmingRemove(true)}\n className=\"text-muted-foreground hover:text-red-500 disabled:opacity-50\"\n >\n <IconTrash className=\"h-3.5 w-3.5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>{t(\"org.removeMember\")}</TooltipContent>\n </Tooltip>\n )}\n </div>\n )}\n </div>\n );\n}\n\ninterface DraftInvite {\n email: string;\n role: InviteRole;\n}\n\nconst EMAIL_RE = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\nfunction parseEmailList(input: string): string[] {\n return Array.from(\n new Set(\n input\n .split(/[\\s,;]+/)\n .map((s) => s.trim().toLowerCase())\n .filter(Boolean),\n ),\n );\n}\n\nfunction parseCsvEmails(text: string): string[] {\n // Tolerant CSV parse — split on lines, then on commas, take any cell\n // that looks like an email. Handles \"name,email,role\" rows or just\n // \"email\" per line. A robust full CSV parser would be overkill here.\n const cells: string[] = [];\n for (const line of text.split(/\\r?\\n/)) {\n for (const cell of line.split(\",\")) {\n const trimmed = cell.trim().replace(/^\"|\"$/g, \"\");\n if (trimmed) cells.push(trimmed);\n }\n }\n return Array.from(\n new Set(cells.filter((c) => EMAIL_RE.test(c)).map((c) => c.toLowerCase())),\n );\n}\n\nfunction BulkInviteForm({\n currentUserRole,\n onClose,\n}: {\n currentUserRole: string | null;\n onClose: () => void;\n}) {\n const bulkInvite = useBulkInviteMembers();\n const fileRef = useRef<HTMLInputElement>(null);\n const [drafts, setDrafts] = useState<DraftInvite[]>([\n { email: \"\", role: \"member\" },\n ]);\n const [pasteOpen, setPasteOpen] = useState(false);\n const [pasteValue, setPasteValue] = useState(\"\");\n const [pasteRole, setPasteRole] = useState<InviteRole>(\"member\");\n const [resultBanner, setResultBanner] = useState<{\n succeeded: number;\n failed: { email: string; error: string }[];\n } | null>(null);\n\n const canSetAdmin = currentUserRole === \"owner\";\n\n const validDrafts = useMemo(\n () =>\n drafts\n .map((d) => ({ ...d, email: d.email.trim().toLowerCase() }))\n .filter((d) => EMAIL_RE.test(d.email)),\n [drafts],\n );\n\n function setDraft(index: number, patch: Partial<DraftInvite>) {\n setDrafts((prev) =>\n prev.map((d, i) => (i === index ? { ...d, ...patch } : d)),\n );\n }\n\n function appendEmails(emails: string[], role: InviteRole) {\n if (!emails.length) return;\n setDrafts((prev) => {\n const existing = new Set(\n prev.map((d) => d.email.trim().toLowerCase()).filter(Boolean),\n );\n const fresh: DraftInvite[] = [];\n for (const e of emails) {\n if (!existing.has(e)) {\n fresh.push({ email: e, role });\n existing.add(e);\n }\n }\n // If the only existing row is an empty placeholder, drop it.\n const cleaned = prev.filter(\n (d, i) => !(i === 0 && !d.email.trim() && prev.length === 1),\n );\n return [...cleaned, ...fresh];\n });\n }\n\n function handleFile(file: File) {\n file.text().then((text) => {\n const emails = parseCsvEmails(text);\n if (emails.length) {\n appendEmails(emails, \"member\");\n } else {\n setResultBanner({\n succeeded: 0,\n failed: [{ email: file.name, error: \"No valid emails found in CSV\" }],\n });\n }\n });\n }\n\n async function submit() {\n setResultBanner(null);\n const dedup = new Map<string, DraftInvite>();\n for (const d of validDrafts) {\n // canSetAdmin guard mirrors server-side enforcement so an admin-only\n // user editing the form can't even attempt to grant admin (they'd\n // get a 403 anyway).\n const role = canSetAdmin ? d.role : \"member\";\n dedup.set(d.email, { ...d, role });\n }\n const invites = Array.from(dedup.values());\n if (invites.length === 0) return;\n\n const result = await bulkInvite.mutateAsync(invites);\n setResultBanner({\n succeeded: result.succeeded.length,\n failed: result.failed,\n });\n\n // Wipe drafts that succeeded; leave failed ones so the user can fix\n // and retry. If everything succeeded, reset to a single blank row.\n const failedEmails = new Set(result.failed.map((f) => f.email));\n setDrafts((prev) => {\n const remaining = prev.filter((d) =>\n failedEmails.has(d.email.trim().toLowerCase()),\n );\n return remaining.length > 0 ? remaining : [{ email: \"\", role: \"member\" }];\n });\n\n // Auto-close on full success.\n if (result.failed.length === 0 && result.succeeded.length > 0) {\n setTimeout(() => onClose(), 1200);\n }\n }\n\n return (\n <div className=\"space-y-3\">\n <div className=\"space-y-2\">\n {drafts.map((draft, i) => (\n <div key={i} className=\"flex items-center gap-2\">\n <input\n type=\"email\"\n value={draft.email}\n onChange={(e) => setDraft(i, { email: e.target.value })}\n placeholder=\"colleague@company.com\"\n className=\"flex-1 rounded-md border border-border bg-background px-3 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-foreground\"\n autoFocus={i === drafts.length - 1}\n />\n <select\n value={draft.role}\n onChange={(e) =>\n setDraft(i, {\n role: e.target.value === \"admin\" ? \"admin\" : \"member\",\n })\n }\n disabled={!canSetAdmin}\n title={\n canSetAdmin\n ? undefined\n : \"Only the organization owner can invite admins\"\n }\n className=\"rounded-md border border-border bg-background px-2 py-1.5 text-xs disabled:opacity-50\"\n >\n <option value=\"member\">Member</option>\n <option value=\"admin\">Admin</option>\n </select>\n {drafts.length > 1 && (\n <button\n type=\"button\"\n onClick={() =>\n setDrafts((prev) => prev.filter((_, j) => j !== i))\n }\n className=\"text-muted-foreground hover:text-red-500\"\n >\n <IconX className=\"h-3.5 w-3.5\" />\n </button>\n )}\n </div>\n ))}\n </div>\n\n <div className=\"flex flex-wrap items-center gap-2\">\n <button\n type=\"button\"\n onClick={() =>\n setDrafts((prev) => [...prev, { email: \"\", role: \"member\" }])\n }\n className=\"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconPlus className=\"h-3.5 w-3.5\" />\n Add another\n </button>\n <button\n type=\"button\"\n onClick={() => setPasteOpen((v) => !v)}\n className=\"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconUserPlus className=\"h-3.5 w-3.5\" />\n Paste many\n </button>\n <button\n type=\"button\"\n onClick={() => fileRef.current?.click()}\n className=\"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconFileImport className=\"h-3.5 w-3.5\" />\n Import CSV\n </button>\n <input\n ref={fileRef}\n type=\"file\"\n accept=\".csv,text/csv,text/plain\"\n className=\"hidden\"\n onChange={(e) => {\n const file = e.target.files?.[0];\n if (file) handleFile(file);\n // reset so re-uploading the same file re-fires onChange\n e.target.value = \"\";\n }}\n />\n </div>\n\n {pasteOpen && (\n <div className=\"space-y-2 rounded-md border border-border p-3\">\n <div className=\"text-xs font-medium text-muted-foreground\">\n Paste emails (comma, space, or newline separated)\n </div>\n <textarea\n value={pasteValue}\n onChange={(e) => setPasteValue(e.target.value)}\n rows={4}\n placeholder=\"alice@acme.com, bob@acme.com&#10;charlie@acme.com\"\n className=\"w-full rounded-md border border-border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-foreground\"\n />\n <div className=\"flex items-center gap-2\">\n <select\n value={pasteRole}\n onChange={(e) =>\n setPasteRole(e.target.value === \"admin\" ? \"admin\" : \"member\")\n }\n disabled={!canSetAdmin}\n className=\"rounded-md border border-border bg-background px-2 py-1.5 text-xs disabled:opacity-50\"\n >\n <option value=\"member\">Add as members</option>\n <option value=\"admin\">Add as admins</option>\n </select>\n <button\n type=\"button\"\n onClick={() => {\n appendEmails(parseEmailList(pasteValue), pasteRole);\n setPasteValue(\"\");\n setPasteOpen(false);\n }}\n disabled={parseEmailList(pasteValue).length === 0}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n Add\n </button>\n <button\n type=\"button\"\n onClick={() => {\n setPasteValue(\"\");\n setPasteOpen(false);\n }}\n className=\"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground\"\n >\n Cancel\n </button>\n </div>\n </div>\n )}\n\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n disabled={validDrafts.length === 0 || bulkInvite.isPending}\n onClick={submit}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n {bulkInvite.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n <span className=\"inline-flex items-center gap-1\">\n <IconCheck className=\"h-3.5 w-3.5\" />\n Send {validDrafts.length || \"\"}{\" \"}\n {validDrafts.length === 1 ? \"invite\" : \"invites\"}\n </span>\n )}\n </button>\n <button\n type=\"button\"\n onClick={onClose}\n className=\"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground\"\n >\n Close\n </button>\n </div>\n\n <p className=\"text-[11px] text-muted-foreground\">\n Each invitee signs in with this exact email to accept.\n {canSetAdmin\n ? \" Admins can manage members and workspace settings.\"\n : \" Only the organization owner can grant admin access.\"}\n </p>\n\n {resultBanner && (\n <div className=\"space-y-1 rounded-md border border-border bg-accent/30 p-2.5\">\n {resultBanner.succeeded > 0 && (\n <p className=\"text-[11px] text-green-600\">\n <IconCheck className=\"inline h-3 w-3 -mt-0.5\" /> Sent{\" \"}\n {resultBanner.succeeded}{\" \"}\n {resultBanner.succeeded === 1 ? \"invite\" : \"invites\"}.\n </p>\n )}\n {resultBanner.failed.length > 0 && (\n <ul className=\"space-y-0.5 text-[11px] text-red-500\">\n {resultBanner.failed.map((f) => (\n <li key={f.email}>\n <IconAlertTriangle className=\"inline h-3 w-3 -mt-0.5 me-1\" />\n {f.email}: {f.error}\n </li>\n ))}\n </ul>\n )}\n </div>\n )}\n\n <ErrorText error={bulkInvite.error} />\n </div>\n );\n}\n\nfunction DomainSettingsSection({\n domain,\n ownerEmail,\n}: {\n domain: string | null;\n ownerEmail: string;\n}) {\n const setOrgDomain = useSetOrgDomain();\n const [editing, setEditing] = useState(false);\n const [draft, setDraft] = useState(domain ?? \"\");\n\n const ownDomain = ownerEmail.split(\"@\")[1]?.toLowerCase() ?? \"\";\n\n function save() {\n const trimmed = draft.trim().toLowerCase();\n if (trimmed === (domain ?? \"\")) {\n setEditing(false);\n return;\n }\n setOrgDomain.mutate(trimmed || null, {\n onSuccess: () => setEditing(false),\n });\n }\n\n return (\n <div className=\"border-t border-border pt-3 space-y-2\">\n <div className=\"text-xs font-medium text-muted-foreground uppercase tracking-wide\">\n Email domain auto-join\n </div>\n <p className=\"text-[11px] text-muted-foreground\">\n Anyone who signs up with an email at this domain will join your\n organization automatically. You can only set your own email domain (\n {ownDomain || \"—\"}); free email providers like gmail.com or outlook.com\n aren&apos;t allowed.\n </p>\n {!editing ? (\n <div className=\"flex items-center gap-2\">\n {domain ? (\n <>\n <span className=\"inline-flex items-center gap-1.5 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm\">\n <IconAt className=\"h-3.5 w-3.5 text-muted-foreground\" />\n {domain}\n </span>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() => {\n setDraft(domain);\n setEditing(true);\n }}\n className=\"text-muted-foreground hover:text-foreground\"\n >\n <IconPencil className=\"h-3.5 w-3.5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>Edit domain</TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={setOrgDomain.isPending}\n onClick={() => setOrgDomain.mutate(null)}\n className=\"text-muted-foreground hover:text-red-500 disabled:opacity-50\"\n >\n <IconX className=\"h-3.5 w-3.5\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>Remove domain</TooltipContent>\n </Tooltip>\n </>\n ) : (\n <button\n type=\"button\"\n onClick={() => {\n setDraft(ownDomain);\n setEditing(true);\n }}\n className=\"flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconAt className=\"h-3.5 w-3.5\" />\n Allow {ownDomain || \"your domain\"} to auto-join\n </button>\n )}\n </div>\n ) : (\n <div className=\"flex items-center gap-2\">\n <input\n type=\"text\"\n value={draft}\n onChange={(e) => setDraft(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") save();\n if (e.key === \"Escape\") setEditing(false);\n }}\n placeholder={ownDomain || \"example.com\"}\n className=\"rounded-md border border-border bg-background px-2.5 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-foreground\"\n autoFocus\n />\n <button\n type=\"button\"\n disabled={setOrgDomain.isPending}\n onClick={save}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n {setOrgDomain.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n \"Save\"\n )}\n </button>\n <button\n type=\"button\"\n onClick={() => setEditing(false)}\n className=\"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground\"\n >\n Cancel\n </button>\n </div>\n )}\n <ErrorText error={setOrgDomain.error} />\n </div>\n );\n}\n\nfunction A2ASecretSection({ secret }: { secret: string | null | undefined }) {\n const setA2ASecret = useSetA2ASecret();\n const syncA2ASecret = useSyncA2ASecret();\n const [revealed, setRevealed] = useState(false);\n const [copied, setCopied] = useState(false);\n const [pasteMode, setPasteMode] = useState(false);\n const [pasteValue, setPasteValue] = useState(\"\");\n const [syncResult, setSyncResult] = useState<SyncA2ASecretResult | null>(\n null,\n );\n\n function copyToClipboard() {\n if (!secret) return;\n navigator.clipboard.writeText(secret).then(() => {\n setCopied(true);\n setTimeout(() => setCopied(false), 2000);\n });\n }\n\n // Push the current secret to all connected apps. Optionally pass the\n // PREVIOUS secret as `signSecret` so the receiving apps (which still\n // hold the previous value) can verify the JWT.\n function syncToApps(signSecret?: string) {\n setSyncResult(null);\n syncA2ASecret.mutate(signSecret ? { signSecret } : undefined, {\n onSuccess: (result) => {\n setSyncResult(result);\n },\n });\n }\n\n function regenerate() {\n setA2ASecret.mutate(undefined, {\n onSuccess: (result) => {\n setRevealed(false);\n // Auto-sync the new secret to all connected apps. Sign with the\n // PREVIOUS secret (which peers still hold) so verification on\n // their side succeeds and they accept the new value.\n syncToApps(result.previousSecret ?? undefined);\n },\n });\n }\n\n function saveSecret() {\n const trimmed = pasteValue.trim();\n if (!trimmed) return;\n setA2ASecret.mutate(trimmed, {\n onSuccess: (result) => {\n setPasteMode(false);\n setPasteValue(\"\");\n // Same auto-sync flow as regenerate: peers verify with the\n // previous secret, then update to the new pasted value.\n syncToApps(result.previousSecret ?? undefined);\n },\n });\n }\n\n const masked = secret ? \"****\" + secret.slice(-8) : \"Not set\";\n\n return (\n <div className=\"border-t border-border pt-3 space-y-2\">\n <div className=\"text-xs font-medium text-muted-foreground uppercase tracking-wide\">\n Cross-app authentication\n </div>\n <p className=\"text-[11px] text-muted-foreground\">\n This secret authenticates cross-app delegation (e.g. Dispatch to\n Analytics). All apps in your organization need the same secret.\n </p>\n\n <div className=\"flex items-center gap-2 flex-wrap\">\n <span className=\"inline-flex items-center gap-1.5 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm font-mono\">\n <IconKey className=\"h-3.5 w-3.5 text-muted-foreground\" />\n {revealed && secret ? secret : masked}\n </span>\n {secret && (\n <>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() => setRevealed(!revealed)}\n className=\"text-muted-foreground hover:text-foreground\"\n >\n {revealed ? (\n <IconEyeOff className=\"h-3.5 w-3.5\" />\n ) : (\n <IconEye className=\"h-3.5 w-3.5\" />\n )}\n </button>\n </TooltipTrigger>\n <TooltipContent>\n {revealed ? \"Hide secret\" : \"Reveal secret\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={copyToClipboard}\n className=\"text-muted-foreground hover:text-foreground\"\n >\n {copied ? (\n <IconCheck className=\"h-3.5 w-3.5 text-green-500\" />\n ) : (\n <IconCopy className=\"h-3.5 w-3.5\" />\n )}\n </button>\n </TooltipTrigger>\n <TooltipContent>Copy secret</TooltipContent>\n </Tooltip>\n </>\n )}\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={regenerate}\n disabled={setA2ASecret.isPending || syncA2ASecret.isPending}\n className=\"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50 disabled:opacity-50\"\n >\n {setA2ASecret.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n <IconRefresh className=\"h-3.5 w-3.5\" />\n )}\n Regenerate\n </button>\n </TooltipTrigger>\n <TooltipContent>\n Regenerate secret and sync to connected apps\n </TooltipContent>\n </Tooltip>\n {secret && (\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n onClick={() => syncToApps()}\n disabled={setA2ASecret.isPending || syncA2ASecret.isPending}\n className=\"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50 disabled:opacity-50\"\n >\n {syncA2ASecret.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n <IconCloudUpload className=\"h-3.5 w-3.5\" />\n )}\n Sync to apps\n </button>\n </TooltipTrigger>\n <TooltipContent>\n Push this secret to every connected app\n </TooltipContent>\n </Tooltip>\n )}\n </div>\n\n {syncA2ASecret.isPending && (\n <p className=\"text-[11px] text-muted-foreground\">\n Syncing to connected apps…\n </p>\n )}\n\n {syncResult && !syncA2ASecret.isPending && (\n <div className=\"space-y-1\">\n <p className=\"text-[11px] text-muted-foreground\">\n Synced to {syncResult.succeeded}/{syncResult.total} app\n {syncResult.total === 1 ? \"\" : \"s\"}\n {syncResult.failed > 0 ? ` (${syncResult.failed} failed)` : \"\"}.\n </p>\n {syncResult.failed > 0 && (\n <ul className=\"text-[11px] text-red-500 list-disc ps-5 space-y-0.5\">\n {syncResult.results\n .filter((r) => !r.ok)\n .map((r) => (\n <li key={r.id}>\n {r.name}: {r.error || `HTTP ${r.status ?? \"?\"}`}\n </li>\n ))}\n </ul>\n )}\n </div>\n )}\n\n {!pasteMode ? (\n <button\n type=\"button\"\n onClick={() => setPasteMode(true)}\n className=\"flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs font-medium hover:bg-accent/50\"\n >\n <IconKey className=\"h-3.5 w-3.5\" />\n Paste secret from another app\n </button>\n ) : (\n <div className=\"flex items-center gap-2\">\n <input\n type=\"text\"\n value={pasteValue}\n onChange={(e) => setPasteValue(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") saveSecret();\n if (e.key === \"Escape\") {\n setPasteMode(false);\n setPasteValue(\"\");\n }\n }}\n placeholder=\"Paste A2A secret\"\n className=\"flex-1 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm font-mono focus:outline-none focus:ring-1 focus:ring-foreground\"\n autoFocus\n />\n <button\n type=\"button\"\n disabled={!pasteValue.trim() || setA2ASecret.isPending}\n onClick={saveSecret}\n className=\"rounded-md bg-foreground px-3 py-1.5 text-xs font-medium text-background hover:opacity-90 disabled:opacity-50\"\n >\n {setA2ASecret.isPending ? (\n <IconLoader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n \"Save\"\n )}\n </button>\n <button\n type=\"button\"\n onClick={() => {\n setPasteMode(false);\n setPasteValue(\"\");\n }}\n className=\"rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground\"\n >\n Cancel\n </button>\n </div>\n )}\n\n <ErrorText error={setA2ASecret.error} />\n <ErrorText error={syncA2ASecret.error} />\n </div>\n );\n}\n\n/**\n * Default Team management page. Templates can route directly to this component\n * or wrap it with their own Layout via the `layout` prop.\n */\nexport function TeamPage({\n layout,\n title,\n createOrgDescription,\n className,\n}: TeamPageProps) {\n const t = useT();\n const { data: org, isLoading } = useOrg();\n\n const content = (\n <div className={`space-y-6 max-w-2xl ${className ?? \"\"}`}>\n <h2 className=\"text-2xl font-bold tracking-tight\">\n {title ?? t(\"org.team\")}\n </h2>\n\n {isLoading && (\n <section className=\"rounded-lg border border-border bg-card p-6\">\n <div className=\"text-sm text-muted-foreground\">\n {t(\"org.loading\")}\n </div>\n </section>\n )}\n\n {!isLoading && (\n <>\n <PendingInvitationsCard />\n {!org?.orgId ? (\n <>\n {org?.domainMatches && org.domainMatches.length > 0 && (\n <JoinByDomainCard matches={org.domainMatches} />\n )}\n <CreateOrgCard description={createOrgDescription} />\n </>\n ) : (\n <MembersCard />\n )}\n </>\n )}\n </div>\n );\n\n const wrapped = (\n <TooltipProvider delayDuration={200}>{content}</TooltipProvider>\n );\n\n return layout ? <>{layout(wrapped)}</> : wrapped;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"RunsTray.d.ts","sourceRoot":"","sources":["../../../src/client/progress/RunsTray.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAkB,MAAM,yBAAyB,CAAC;AAmBxE,KAAK,WAAW,GAAG,QAAQ,CAAC;AAC5B,KAAK,sBAAsB,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9C,UAAU,aAAa;IACrB,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,8DAA8D;IAC9D,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5D,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2ID;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EACvB,MAAa,EACb,KAAS,EACT,YAAmB,EACnB,UAAU,EACV,cAAuB,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