@agent-native/core 0.76.7 → 0.76.9

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 (1622) hide show
  1. package/corpus/core/CHANGELOG.md +44 -0
  2. package/corpus/core/docs/content/deployment.md +8 -9
  3. package/corpus/core/docs/content/internationalization.md +6 -0
  4. package/corpus/core/docs/content/locales/ar-SA/a2a-protocol.md +20 -8
  5. package/corpus/core/docs/content/locales/ar-SA/actions.md +18 -6
  6. package/corpus/core/docs/content/locales/ar-SA/agent-mentions.md +18 -6
  7. package/corpus/core/docs/content/locales/ar-SA/agent-surfaces.md +4 -4
  8. package/corpus/core/docs/content/locales/ar-SA/agent-teams.md +6 -6
  9. package/corpus/core/docs/content/locales/ar-SA/agent-web-surfaces.md +13 -5
  10. package/corpus/core/docs/content/locales/ar-SA/authentication.md +4 -4
  11. package/corpus/core/docs/content/locales/ar-SA/automations.md +25 -9
  12. package/corpus/core/docs/content/locales/ar-SA/blueprint-installer.md +2 -2
  13. package/corpus/core/docs/content/locales/ar-SA/cli-adapters.md +2 -2
  14. package/corpus/core/docs/content/locales/ar-SA/client.md +4 -4
  15. package/corpus/core/docs/content/locales/ar-SA/cloneable-saas.md +4 -4
  16. package/corpus/core/docs/content/locales/ar-SA/code-agents-ui.md +4 -4
  17. package/corpus/core/docs/content/locales/ar-SA/components.md +4 -4
  18. package/corpus/core/docs/content/locales/ar-SA/context-awareness.md +25 -9
  19. package/corpus/core/docs/content/locales/ar-SA/creating-templates.md +16 -16
  20. package/corpus/core/docs/content/locales/ar-SA/cross-app-sso.md +2 -2
  21. package/corpus/core/docs/content/locales/ar-SA/database.md +2 -2
  22. package/corpus/core/docs/content/locales/ar-SA/deployment.md +15 -16
  23. package/corpus/core/docs/content/locales/ar-SA/dispatch.md +2 -2
  24. package/corpus/core/docs/content/locales/ar-SA/drop-in-agent.md +2 -2
  25. package/corpus/core/docs/content/locales/ar-SA/durable-resume.md +1 -1
  26. package/corpus/core/docs/content/locales/ar-SA/embedding-sdk.md +2 -2
  27. package/corpus/core/docs/content/locales/ar-SA/evals.md +2 -2
  28. package/corpus/core/docs/content/locales/ar-SA/extensions.md +2 -2
  29. package/corpus/core/docs/content/locales/ar-SA/external-agents.md +2 -2
  30. package/corpus/core/docs/content/locales/ar-SA/faq.md +2 -2
  31. package/corpus/core/docs/content/locales/ar-SA/file-uploads.md +1 -1
  32. package/corpus/core/docs/content/locales/ar-SA/frames.md +2 -2
  33. package/corpus/core/docs/content/locales/ar-SA/getting-started.md +5 -5
  34. package/corpus/core/docs/content/locales/ar-SA/harness-agents.md +2 -2
  35. package/corpus/core/docs/content/locales/ar-SA/human-approval.md +2 -2
  36. package/corpus/core/docs/content/locales/ar-SA/internationalization.md +2 -0
  37. package/corpus/core/docs/content/locales/ar-SA/key-concepts.md +7 -7
  38. package/corpus/core/docs/content/locales/ar-SA/local-file-mode.md +8 -8
  39. package/corpus/core/docs/content/locales/ar-SA/mcp-apps.md +3 -3
  40. package/corpus/core/docs/content/locales/ar-SA/mcp-clients.md +3 -3
  41. package/corpus/core/docs/content/locales/ar-SA/mcp-protocol.md +2 -2
  42. package/corpus/core/docs/content/locales/ar-SA/messaging.md +2 -2
  43. package/corpus/core/docs/content/locales/ar-SA/migration-workbench.md +1 -1
  44. package/corpus/core/docs/content/locales/ar-SA/multi-app-workspace.md +8 -8
  45. package/corpus/core/docs/content/locales/ar-SA/multi-tenancy.md +2 -2
  46. package/corpus/core/docs/content/locales/ar-SA/native-chat-ui.md +2 -2
  47. package/corpus/core/docs/content/locales/ar-SA/notifications.md +2 -2
  48. package/corpus/core/docs/content/locales/ar-SA/observability.md +3 -3
  49. package/corpus/core/docs/content/locales/ar-SA/observational-memory.md +2 -2
  50. package/corpus/core/docs/content/locales/ar-SA/onboarding.md +2 -2
  51. package/corpus/core/docs/content/locales/ar-SA/plan-plugin.md +2 -2
  52. package/corpus/core/docs/content/locales/ar-SA/pr-visual-recap.md +2 -2
  53. package/corpus/core/docs/content/locales/ar-SA/processors.md +1 -1
  54. package/corpus/core/docs/content/locales/ar-SA/progress.md +1 -1
  55. package/corpus/core/docs/content/locales/ar-SA/pure-agent-apps.md +1 -1
  56. package/corpus/core/docs/content/locales/ar-SA/real-time-collaboration.md +7 -3
  57. package/corpus/core/docs/content/locales/ar-SA/recurring-jobs.md +1 -1
  58. package/corpus/core/docs/content/locales/ar-SA/routing.md +1 -1
  59. package/corpus/core/docs/content/locales/ar-SA/sandbox-adapters.md +6 -6
  60. package/corpus/core/docs/content/locales/ar-SA/security.md +2 -2
  61. package/corpus/core/docs/content/locales/ar-SA/server.md +22 -10
  62. package/corpus/core/docs/content/locales/ar-SA/sharing.md +1 -1
  63. package/corpus/core/docs/content/locales/ar-SA/skills-guide.md +3 -3
  64. package/corpus/core/docs/content/locales/ar-SA/template-analytics.md +1 -1
  65. package/corpus/core/docs/content/locales/ar-SA/template-assets.md +2 -2
  66. package/corpus/core/docs/content/locales/ar-SA/template-brain.md +1 -1
  67. package/corpus/core/docs/content/locales/ar-SA/template-calendar.md +2 -2
  68. package/corpus/core/docs/content/locales/ar-SA/template-chat.md +7 -7
  69. package/corpus/core/docs/content/locales/ar-SA/template-clips.md +3 -3
  70. package/corpus/core/docs/content/locales/ar-SA/template-content.md +2 -2
  71. package/corpus/core/docs/content/locales/ar-SA/template-design.md +3 -3
  72. package/corpus/core/docs/content/locales/ar-SA/template-dispatch.md +1 -1
  73. package/corpus/core/docs/content/locales/ar-SA/template-forms.md +2 -2
  74. package/corpus/core/docs/content/locales/ar-SA/template-mail.md +2 -2
  75. package/corpus/core/docs/content/locales/ar-SA/template-plan.md +2 -2
  76. package/corpus/core/docs/content/locales/ar-SA/template-slides.md +3 -3
  77. package/corpus/core/docs/content/locales/ar-SA/template-videos.md +1 -1
  78. package/corpus/core/docs/content/locales/ar-SA/tracking.md +1 -1
  79. package/corpus/core/docs/content/locales/ar-SA/using-your-agent.md +1 -1
  80. package/corpus/core/docs/content/locales/ar-SA/voice-input.md +1 -1
  81. package/corpus/core/docs/content/locales/ar-SA/what-is-agent-native.md +5 -5
  82. package/corpus/core/docs/content/locales/ar-SA/workspace-connections.md +2 -2
  83. package/corpus/core/docs/content/locales/ar-SA/workspace-management.md +6 -6
  84. package/corpus/core/docs/content/locales/ar-SA/workspace.md +4 -4
  85. package/corpus/core/docs/content/locales/ar-SA/writing-agent-instructions.md +1 -1
  86. package/corpus/core/docs/content/locales/de-DE/a2a-protocol.md +3 -3
  87. package/corpus/core/docs/content/locales/de-DE/actions.md +3 -3
  88. package/corpus/core/docs/content/locales/de-DE/agent-mentions.md +2 -2
  89. package/corpus/core/docs/content/locales/de-DE/agent-surfaces.md +2 -2
  90. package/corpus/core/docs/content/locales/de-DE/agent-teams.md +3 -3
  91. package/corpus/core/docs/content/locales/de-DE/agent-web-surfaces.md +2 -2
  92. package/corpus/core/docs/content/locales/de-DE/authentication.md +2 -2
  93. package/corpus/core/docs/content/locales/de-DE/automations.md +3 -3
  94. package/corpus/core/docs/content/locales/de-DE/blueprint-installer.md +1 -1
  95. package/corpus/core/docs/content/locales/de-DE/cli-adapters.md +1 -1
  96. package/corpus/core/docs/content/locales/de-DE/client.md +3 -3
  97. package/corpus/core/docs/content/locales/de-DE/cloneable-saas.md +3 -3
  98. package/corpus/core/docs/content/locales/de-DE/code-agents-ui.md +3 -3
  99. package/corpus/core/docs/content/locales/de-DE/components.md +2 -2
  100. package/corpus/core/docs/content/locales/de-DE/context-awareness.md +3 -3
  101. package/corpus/core/docs/content/locales/de-DE/creating-templates.md +16 -16
  102. package/corpus/core/docs/content/locales/de-DE/cross-app-sso.md +2 -2
  103. package/corpus/core/docs/content/locales/de-DE/database.md +2 -2
  104. package/corpus/core/docs/content/locales/de-DE/deployment.md +15 -16
  105. package/corpus/core/docs/content/locales/de-DE/dispatch.md +2 -2
  106. package/corpus/core/docs/content/locales/de-DE/drop-in-agent.md +2 -2
  107. package/corpus/core/docs/content/locales/de-DE/durable-resume.md +1 -1
  108. package/corpus/core/docs/content/locales/de-DE/embedding-sdk.md +2 -2
  109. package/corpus/core/docs/content/locales/de-DE/evals.md +2 -2
  110. package/corpus/core/docs/content/locales/de-DE/extensions.md +2 -2
  111. package/corpus/core/docs/content/locales/de-DE/external-agents.md +2 -2
  112. package/corpus/core/docs/content/locales/de-DE/faq.md +2 -2
  113. package/corpus/core/docs/content/locales/de-DE/file-uploads.md +1 -1
  114. package/corpus/core/docs/content/locales/de-DE/frames.md +2 -2
  115. package/corpus/core/docs/content/locales/de-DE/getting-started.md +5 -5
  116. package/corpus/core/docs/content/locales/de-DE/harness-agents.md +2 -2
  117. package/corpus/core/docs/content/locales/de-DE/human-approval.md +2 -2
  118. package/corpus/core/docs/content/locales/de-DE/internationalization.md +2 -0
  119. package/corpus/core/docs/content/locales/de-DE/key-concepts.md +7 -7
  120. package/corpus/core/docs/content/locales/de-DE/local-file-mode.md +8 -8
  121. package/corpus/core/docs/content/locales/de-DE/mcp-apps.md +3 -3
  122. package/corpus/core/docs/content/locales/de-DE/mcp-clients.md +3 -3
  123. package/corpus/core/docs/content/locales/de-DE/mcp-protocol.md +2 -2
  124. package/corpus/core/docs/content/locales/de-DE/messaging.md +2 -2
  125. package/corpus/core/docs/content/locales/de-DE/migration-workbench.md +1 -1
  126. package/corpus/core/docs/content/locales/de-DE/multi-app-workspace.md +8 -8
  127. package/corpus/core/docs/content/locales/de-DE/multi-tenancy.md +2 -2
  128. package/corpus/core/docs/content/locales/de-DE/native-chat-ui.md +2 -2
  129. package/corpus/core/docs/content/locales/de-DE/notifications.md +2 -2
  130. package/corpus/core/docs/content/locales/de-DE/observability.md +3 -3
  131. package/corpus/core/docs/content/locales/de-DE/observational-memory.md +2 -2
  132. package/corpus/core/docs/content/locales/de-DE/onboarding.md +2 -2
  133. package/corpus/core/docs/content/locales/de-DE/plan-plugin.md +2 -2
  134. package/corpus/core/docs/content/locales/de-DE/pr-visual-recap.md +2 -2
  135. package/corpus/core/docs/content/locales/de-DE/processors.md +1 -1
  136. package/corpus/core/docs/content/locales/de-DE/progress.md +1 -1
  137. package/corpus/core/docs/content/locales/de-DE/pure-agent-apps.md +1 -1
  138. package/corpus/core/docs/content/locales/de-DE/real-time-collaboration.md +7 -3
  139. package/corpus/core/docs/content/locales/de-DE/recurring-jobs.md +1 -1
  140. package/corpus/core/docs/content/locales/de-DE/routing.md +1 -1
  141. package/corpus/core/docs/content/locales/de-DE/sandbox-adapters.md +6 -6
  142. package/corpus/core/docs/content/locales/de-DE/security.md +2 -2
  143. package/corpus/core/docs/content/locales/de-DE/server.md +22 -10
  144. package/corpus/core/docs/content/locales/de-DE/sharing.md +1 -1
  145. package/corpus/core/docs/content/locales/de-DE/skills-guide.md +3 -3
  146. package/corpus/core/docs/content/locales/de-DE/template-analytics.md +1 -1
  147. package/corpus/core/docs/content/locales/de-DE/template-assets.md +1 -1
  148. package/corpus/core/docs/content/locales/de-DE/template-brain.md +1 -1
  149. package/corpus/core/docs/content/locales/de-DE/template-calendar.md +2 -2
  150. package/corpus/core/docs/content/locales/de-DE/template-chat.md +7 -7
  151. package/corpus/core/docs/content/locales/de-DE/template-clips.md +3 -3
  152. package/corpus/core/docs/content/locales/de-DE/template-content.md +2 -2
  153. package/corpus/core/docs/content/locales/de-DE/template-design.md +1 -1
  154. package/corpus/core/docs/content/locales/de-DE/template-dispatch.md +1 -1
  155. package/corpus/core/docs/content/locales/de-DE/template-forms.md +2 -2
  156. package/corpus/core/docs/content/locales/de-DE/template-mail.md +2 -2
  157. package/corpus/core/docs/content/locales/de-DE/template-plan.md +2 -2
  158. package/corpus/core/docs/content/locales/de-DE/template-slides.md +3 -3
  159. package/corpus/core/docs/content/locales/de-DE/template-videos.md +1 -1
  160. package/corpus/core/docs/content/locales/de-DE/tracking.md +1 -1
  161. package/corpus/core/docs/content/locales/de-DE/using-your-agent.md +1 -1
  162. package/corpus/core/docs/content/locales/de-DE/voice-input.md +1 -1
  163. package/corpus/core/docs/content/locales/de-DE/what-is-agent-native.md +5 -5
  164. package/corpus/core/docs/content/locales/de-DE/workspace-connections.md +2 -2
  165. package/corpus/core/docs/content/locales/de-DE/workspace-management.md +6 -6
  166. package/corpus/core/docs/content/locales/de-DE/workspace.md +4 -4
  167. package/corpus/core/docs/content/locales/de-DE/writing-agent-instructions.md +1 -1
  168. package/corpus/core/docs/content/locales/es-ES/a2a-protocol.md +3 -3
  169. package/corpus/core/docs/content/locales/es-ES/actions.md +3 -3
  170. package/corpus/core/docs/content/locales/es-ES/agent-mentions.md +2 -2
  171. package/corpus/core/docs/content/locales/es-ES/agent-surfaces.md +2 -2
  172. package/corpus/core/docs/content/locales/es-ES/agent-teams.md +3 -3
  173. package/corpus/core/docs/content/locales/es-ES/agent-web-surfaces.md +2 -2
  174. package/corpus/core/docs/content/locales/es-ES/authentication.md +2 -2
  175. package/corpus/core/docs/content/locales/es-ES/automations.md +3 -3
  176. package/corpus/core/docs/content/locales/es-ES/blueprint-installer.md +1 -1
  177. package/corpus/core/docs/content/locales/es-ES/cli-adapters.md +1 -1
  178. package/corpus/core/docs/content/locales/es-ES/client.md +3 -3
  179. package/corpus/core/docs/content/locales/es-ES/cloneable-saas.md +3 -3
  180. package/corpus/core/docs/content/locales/es-ES/code-agents-ui.md +3 -3
  181. package/corpus/core/docs/content/locales/es-ES/components.md +2 -2
  182. package/corpus/core/docs/content/locales/es-ES/context-awareness.md +3 -3
  183. package/corpus/core/docs/content/locales/es-ES/creating-templates.md +16 -16
  184. package/corpus/core/docs/content/locales/es-ES/cross-app-sso.md +2 -2
  185. package/corpus/core/docs/content/locales/es-ES/database.md +2 -2
  186. package/corpus/core/docs/content/locales/es-ES/deployment.md +15 -16
  187. package/corpus/core/docs/content/locales/es-ES/dispatch.md +2 -2
  188. package/corpus/core/docs/content/locales/es-ES/drop-in-agent.md +2 -2
  189. package/corpus/core/docs/content/locales/es-ES/durable-resume.md +1 -1
  190. package/corpus/core/docs/content/locales/es-ES/embedding-sdk.md +2 -2
  191. package/corpus/core/docs/content/locales/es-ES/evals.md +2 -2
  192. package/corpus/core/docs/content/locales/es-ES/extensions.md +2 -2
  193. package/corpus/core/docs/content/locales/es-ES/external-agents.md +2 -2
  194. package/corpus/core/docs/content/locales/es-ES/faq.md +2 -2
  195. package/corpus/core/docs/content/locales/es-ES/file-uploads.md +1 -1
  196. package/corpus/core/docs/content/locales/es-ES/frames.md +2 -2
  197. package/corpus/core/docs/content/locales/es-ES/getting-started.md +5 -5
  198. package/corpus/core/docs/content/locales/es-ES/harness-agents.md +2 -2
  199. package/corpus/core/docs/content/locales/es-ES/human-approval.md +2 -2
  200. package/corpus/core/docs/content/locales/es-ES/internationalization.md +2 -0
  201. package/corpus/core/docs/content/locales/es-ES/key-concepts.md +7 -7
  202. package/corpus/core/docs/content/locales/es-ES/local-file-mode.md +8 -8
  203. package/corpus/core/docs/content/locales/es-ES/mcp-apps.md +3 -3
  204. package/corpus/core/docs/content/locales/es-ES/mcp-clients.md +3 -3
  205. package/corpus/core/docs/content/locales/es-ES/mcp-protocol.md +2 -2
  206. package/corpus/core/docs/content/locales/es-ES/messaging.md +2 -2
  207. package/corpus/core/docs/content/locales/es-ES/migration-workbench.md +1 -1
  208. package/corpus/core/docs/content/locales/es-ES/multi-app-workspace.md +8 -8
  209. package/corpus/core/docs/content/locales/es-ES/multi-tenancy.md +2 -2
  210. package/corpus/core/docs/content/locales/es-ES/native-chat-ui.md +2 -2
  211. package/corpus/core/docs/content/locales/es-ES/notifications.md +2 -2
  212. package/corpus/core/docs/content/locales/es-ES/observability.md +3 -3
  213. package/corpus/core/docs/content/locales/es-ES/observational-memory.md +2 -2
  214. package/corpus/core/docs/content/locales/es-ES/onboarding.md +2 -2
  215. package/corpus/core/docs/content/locales/es-ES/plan-plugin.md +2 -2
  216. package/corpus/core/docs/content/locales/es-ES/pr-visual-recap.md +2 -2
  217. package/corpus/core/docs/content/locales/es-ES/processors.md +1 -1
  218. package/corpus/core/docs/content/locales/es-ES/progress.md +1 -1
  219. package/corpus/core/docs/content/locales/es-ES/pure-agent-apps.md +1 -1
  220. package/corpus/core/docs/content/locales/es-ES/real-time-collaboration.md +7 -3
  221. package/corpus/core/docs/content/locales/es-ES/recurring-jobs.md +1 -1
  222. package/corpus/core/docs/content/locales/es-ES/routing.md +1 -1
  223. package/corpus/core/docs/content/locales/es-ES/sandbox-adapters.md +6 -6
  224. package/corpus/core/docs/content/locales/es-ES/security.md +2 -2
  225. package/corpus/core/docs/content/locales/es-ES/server.md +22 -10
  226. package/corpus/core/docs/content/locales/es-ES/sharing.md +1 -1
  227. package/corpus/core/docs/content/locales/es-ES/skills-guide.md +3 -3
  228. package/corpus/core/docs/content/locales/es-ES/template-analytics.md +1 -1
  229. package/corpus/core/docs/content/locales/es-ES/template-assets.md +1 -1
  230. package/corpus/core/docs/content/locales/es-ES/template-brain.md +1 -1
  231. package/corpus/core/docs/content/locales/es-ES/template-calendar.md +2 -2
  232. package/corpus/core/docs/content/locales/es-ES/template-chat.md +7 -7
  233. package/corpus/core/docs/content/locales/es-ES/template-clips.md +3 -3
  234. package/corpus/core/docs/content/locales/es-ES/template-content.md +2 -2
  235. package/corpus/core/docs/content/locales/es-ES/template-design.md +1 -1
  236. package/corpus/core/docs/content/locales/es-ES/template-dispatch.md +1 -1
  237. package/corpus/core/docs/content/locales/es-ES/template-forms.md +2 -2
  238. package/corpus/core/docs/content/locales/es-ES/template-mail.md +2 -2
  239. package/corpus/core/docs/content/locales/es-ES/template-plan.md +2 -2
  240. package/corpus/core/docs/content/locales/es-ES/template-slides.md +3 -3
  241. package/corpus/core/docs/content/locales/es-ES/template-videos.md +1 -1
  242. package/corpus/core/docs/content/locales/es-ES/tracking.md +1 -1
  243. package/corpus/core/docs/content/locales/es-ES/using-your-agent.md +1 -1
  244. package/corpus/core/docs/content/locales/es-ES/voice-input.md +1 -1
  245. package/corpus/core/docs/content/locales/es-ES/what-is-agent-native.md +5 -5
  246. package/corpus/core/docs/content/locales/es-ES/workspace-connections.md +2 -2
  247. package/corpus/core/docs/content/locales/es-ES/workspace-management.md +6 -6
  248. package/corpus/core/docs/content/locales/es-ES/workspace.md +4 -4
  249. package/corpus/core/docs/content/locales/es-ES/writing-agent-instructions.md +1 -1
  250. package/corpus/core/docs/content/locales/fr-FR/a2a-protocol.md +3 -3
  251. package/corpus/core/docs/content/locales/fr-FR/actions.md +3 -3
  252. package/corpus/core/docs/content/locales/fr-FR/agent-mentions.md +2 -2
  253. package/corpus/core/docs/content/locales/fr-FR/agent-surfaces.md +2 -2
  254. package/corpus/core/docs/content/locales/fr-FR/agent-teams.md +3 -3
  255. package/corpus/core/docs/content/locales/fr-FR/agent-web-surfaces.md +2 -2
  256. package/corpus/core/docs/content/locales/fr-FR/authentication.md +2 -2
  257. package/corpus/core/docs/content/locales/fr-FR/automations.md +3 -3
  258. package/corpus/core/docs/content/locales/fr-FR/blueprint-installer.md +1 -1
  259. package/corpus/core/docs/content/locales/fr-FR/cli-adapters.md +1 -1
  260. package/corpus/core/docs/content/locales/fr-FR/client.md +3 -3
  261. package/corpus/core/docs/content/locales/fr-FR/cloneable-saas.md +3 -3
  262. package/corpus/core/docs/content/locales/fr-FR/code-agents-ui.md +3 -3
  263. package/corpus/core/docs/content/locales/fr-FR/components.md +2 -2
  264. package/corpus/core/docs/content/locales/fr-FR/context-awareness.md +3 -3
  265. package/corpus/core/docs/content/locales/fr-FR/creating-templates.md +16 -16
  266. package/corpus/core/docs/content/locales/fr-FR/cross-app-sso.md +2 -2
  267. package/corpus/core/docs/content/locales/fr-FR/database.md +2 -2
  268. package/corpus/core/docs/content/locales/fr-FR/deployment.md +15 -16
  269. package/corpus/core/docs/content/locales/fr-FR/dispatch.md +2 -2
  270. package/corpus/core/docs/content/locales/fr-FR/drop-in-agent.md +2 -2
  271. package/corpus/core/docs/content/locales/fr-FR/durable-resume.md +1 -1
  272. package/corpus/core/docs/content/locales/fr-FR/embedding-sdk.md +2 -2
  273. package/corpus/core/docs/content/locales/fr-FR/evals.md +2 -2
  274. package/corpus/core/docs/content/locales/fr-FR/extensions.md +2 -2
  275. package/corpus/core/docs/content/locales/fr-FR/external-agents.md +2 -2
  276. package/corpus/core/docs/content/locales/fr-FR/faq.md +2 -2
  277. package/corpus/core/docs/content/locales/fr-FR/file-uploads.md +1 -1
  278. package/corpus/core/docs/content/locales/fr-FR/frames.md +2 -2
  279. package/corpus/core/docs/content/locales/fr-FR/getting-started.md +5 -5
  280. package/corpus/core/docs/content/locales/fr-FR/harness-agents.md +2 -2
  281. package/corpus/core/docs/content/locales/fr-FR/human-approval.md +2 -2
  282. package/corpus/core/docs/content/locales/fr-FR/internationalization.md +2 -0
  283. package/corpus/core/docs/content/locales/fr-FR/key-concepts.md +7 -7
  284. package/corpus/core/docs/content/locales/fr-FR/local-file-mode.md +8 -8
  285. package/corpus/core/docs/content/locales/fr-FR/mcp-apps.md +3 -3
  286. package/corpus/core/docs/content/locales/fr-FR/mcp-clients.md +3 -3
  287. package/corpus/core/docs/content/locales/fr-FR/mcp-protocol.md +2 -2
  288. package/corpus/core/docs/content/locales/fr-FR/messaging.md +2 -2
  289. package/corpus/core/docs/content/locales/fr-FR/migration-workbench.md +1 -1
  290. package/corpus/core/docs/content/locales/fr-FR/multi-app-workspace.md +8 -8
  291. package/corpus/core/docs/content/locales/fr-FR/multi-tenancy.md +2 -2
  292. package/corpus/core/docs/content/locales/fr-FR/native-chat-ui.md +2 -2
  293. package/corpus/core/docs/content/locales/fr-FR/notifications.md +2 -2
  294. package/corpus/core/docs/content/locales/fr-FR/observability.md +3 -3
  295. package/corpus/core/docs/content/locales/fr-FR/observational-memory.md +2 -2
  296. package/corpus/core/docs/content/locales/fr-FR/onboarding.md +2 -2
  297. package/corpus/core/docs/content/locales/fr-FR/plan-plugin.md +2 -2
  298. package/corpus/core/docs/content/locales/fr-FR/pr-visual-recap.md +2 -2
  299. package/corpus/core/docs/content/locales/fr-FR/processors.md +1 -1
  300. package/corpus/core/docs/content/locales/fr-FR/progress.md +1 -1
  301. package/corpus/core/docs/content/locales/fr-FR/pure-agent-apps.md +1 -1
  302. package/corpus/core/docs/content/locales/fr-FR/real-time-collaboration.md +7 -3
  303. package/corpus/core/docs/content/locales/fr-FR/recurring-jobs.md +1 -1
  304. package/corpus/core/docs/content/locales/fr-FR/routing.md +1 -1
  305. package/corpus/core/docs/content/locales/fr-FR/sandbox-adapters.md +6 -6
  306. package/corpus/core/docs/content/locales/fr-FR/security.md +2 -2
  307. package/corpus/core/docs/content/locales/fr-FR/server.md +22 -10
  308. package/corpus/core/docs/content/locales/fr-FR/sharing.md +1 -1
  309. package/corpus/core/docs/content/locales/fr-FR/skills-guide.md +3 -3
  310. package/corpus/core/docs/content/locales/fr-FR/template-analytics.md +1 -1
  311. package/corpus/core/docs/content/locales/fr-FR/template-assets.md +2 -2
  312. package/corpus/core/docs/content/locales/fr-FR/template-brain.md +1 -1
  313. package/corpus/core/docs/content/locales/fr-FR/template-calendar.md +2 -2
  314. package/corpus/core/docs/content/locales/fr-FR/template-chat.md +7 -7
  315. package/corpus/core/docs/content/locales/fr-FR/template-clips.md +3 -3
  316. package/corpus/core/docs/content/locales/fr-FR/template-content.md +2 -2
  317. package/corpus/core/docs/content/locales/fr-FR/template-design.md +2 -2
  318. package/corpus/core/docs/content/locales/fr-FR/template-dispatch.md +1 -1
  319. package/corpus/core/docs/content/locales/fr-FR/template-forms.md +2 -2
  320. package/corpus/core/docs/content/locales/fr-FR/template-mail.md +2 -2
  321. package/corpus/core/docs/content/locales/fr-FR/template-plan.md +2 -2
  322. package/corpus/core/docs/content/locales/fr-FR/template-slides.md +3 -3
  323. package/corpus/core/docs/content/locales/fr-FR/template-videos.md +1 -1
  324. package/corpus/core/docs/content/locales/fr-FR/tracking.md +1 -1
  325. package/corpus/core/docs/content/locales/fr-FR/using-your-agent.md +1 -1
  326. package/corpus/core/docs/content/locales/fr-FR/voice-input.md +1 -1
  327. package/corpus/core/docs/content/locales/fr-FR/what-is-agent-native.md +5 -5
  328. package/corpus/core/docs/content/locales/fr-FR/workspace-connections.md +2 -2
  329. package/corpus/core/docs/content/locales/fr-FR/workspace-management.md +6 -6
  330. package/corpus/core/docs/content/locales/fr-FR/workspace.md +4 -4
  331. package/corpus/core/docs/content/locales/fr-FR/writing-agent-instructions.md +1 -1
  332. package/corpus/core/docs/content/locales/hi-IN/a2a-protocol.md +3 -3
  333. package/corpus/core/docs/content/locales/hi-IN/actions.md +3 -3
  334. package/corpus/core/docs/content/locales/hi-IN/agent-mentions.md +2 -2
  335. package/corpus/core/docs/content/locales/hi-IN/agent-surfaces.md +2 -2
  336. package/corpus/core/docs/content/locales/hi-IN/agent-teams.md +3 -3
  337. package/corpus/core/docs/content/locales/hi-IN/agent-web-surfaces.md +2 -2
  338. package/corpus/core/docs/content/locales/hi-IN/authentication.md +2 -2
  339. package/corpus/core/docs/content/locales/hi-IN/automations.md +3 -3
  340. package/corpus/core/docs/content/locales/hi-IN/blueprint-installer.md +1 -1
  341. package/corpus/core/docs/content/locales/hi-IN/cli-adapters.md +1 -1
  342. package/corpus/core/docs/content/locales/hi-IN/client.md +3 -3
  343. package/corpus/core/docs/content/locales/hi-IN/cloneable-saas.md +3 -3
  344. package/corpus/core/docs/content/locales/hi-IN/code-agents-ui.md +3 -3
  345. package/corpus/core/docs/content/locales/hi-IN/components.md +2 -2
  346. package/corpus/core/docs/content/locales/hi-IN/context-awareness.md +3 -3
  347. package/corpus/core/docs/content/locales/hi-IN/creating-templates.md +16 -16
  348. package/corpus/core/docs/content/locales/hi-IN/cross-app-sso.md +2 -2
  349. package/corpus/core/docs/content/locales/hi-IN/database.md +2 -2
  350. package/corpus/core/docs/content/locales/hi-IN/deployment.md +15 -16
  351. package/corpus/core/docs/content/locales/hi-IN/dispatch.md +2 -2
  352. package/corpus/core/docs/content/locales/hi-IN/drop-in-agent.md +2 -2
  353. package/corpus/core/docs/content/locales/hi-IN/durable-resume.md +1 -1
  354. package/corpus/core/docs/content/locales/hi-IN/embedding-sdk.md +2 -2
  355. package/corpus/core/docs/content/locales/hi-IN/evals.md +2 -2
  356. package/corpus/core/docs/content/locales/hi-IN/extensions.md +2 -2
  357. package/corpus/core/docs/content/locales/hi-IN/external-agents.md +2 -2
  358. package/corpus/core/docs/content/locales/hi-IN/faq.md +2 -2
  359. package/corpus/core/docs/content/locales/hi-IN/file-uploads.md +1 -1
  360. package/corpus/core/docs/content/locales/hi-IN/frames.md +2 -2
  361. package/corpus/core/docs/content/locales/hi-IN/getting-started.md +6 -6
  362. package/corpus/core/docs/content/locales/hi-IN/harness-agents.md +2 -2
  363. package/corpus/core/docs/content/locales/hi-IN/human-approval.md +2 -2
  364. package/corpus/core/docs/content/locales/hi-IN/internationalization.md +2 -0
  365. package/corpus/core/docs/content/locales/hi-IN/key-concepts.md +7 -7
  366. package/corpus/core/docs/content/locales/hi-IN/local-file-mode.md +8 -8
  367. package/corpus/core/docs/content/locales/hi-IN/mcp-apps.md +3 -3
  368. package/corpus/core/docs/content/locales/hi-IN/mcp-clients.md +3 -3
  369. package/corpus/core/docs/content/locales/hi-IN/mcp-protocol.md +2 -2
  370. package/corpus/core/docs/content/locales/hi-IN/messaging.md +2 -2
  371. package/corpus/core/docs/content/locales/hi-IN/migration-workbench.md +1 -1
  372. package/corpus/core/docs/content/locales/hi-IN/multi-app-workspace.md +8 -8
  373. package/corpus/core/docs/content/locales/hi-IN/multi-tenancy.md +2 -2
  374. package/corpus/core/docs/content/locales/hi-IN/native-chat-ui.md +2 -2
  375. package/corpus/core/docs/content/locales/hi-IN/notifications.md +2 -2
  376. package/corpus/core/docs/content/locales/hi-IN/observability.md +3 -3
  377. package/corpus/core/docs/content/locales/hi-IN/observational-memory.md +2 -2
  378. package/corpus/core/docs/content/locales/hi-IN/onboarding.md +2 -2
  379. package/corpus/core/docs/content/locales/hi-IN/plan-plugin.md +2 -2
  380. package/corpus/core/docs/content/locales/hi-IN/pr-visual-recap.md +2 -2
  381. package/corpus/core/docs/content/locales/hi-IN/processors.md +1 -1
  382. package/corpus/core/docs/content/locales/hi-IN/progress.md +1 -1
  383. package/corpus/core/docs/content/locales/hi-IN/pure-agent-apps.md +1 -1
  384. package/corpus/core/docs/content/locales/hi-IN/real-time-collaboration.md +7 -3
  385. package/corpus/core/docs/content/locales/hi-IN/recurring-jobs.md +1 -1
  386. package/corpus/core/docs/content/locales/hi-IN/routing.md +1 -1
  387. package/corpus/core/docs/content/locales/hi-IN/sandbox-adapters.md +6 -6
  388. package/corpus/core/docs/content/locales/hi-IN/security.md +2 -2
  389. package/corpus/core/docs/content/locales/hi-IN/server.md +22 -10
  390. package/corpus/core/docs/content/locales/hi-IN/sharing.md +1 -1
  391. package/corpus/core/docs/content/locales/hi-IN/skills-guide.md +3 -3
  392. package/corpus/core/docs/content/locales/hi-IN/template-analytics.md +1 -1
  393. package/corpus/core/docs/content/locales/hi-IN/template-assets.md +2 -2
  394. package/corpus/core/docs/content/locales/hi-IN/template-brain.md +1 -1
  395. package/corpus/core/docs/content/locales/hi-IN/template-calendar.md +2 -2
  396. package/corpus/core/docs/content/locales/hi-IN/template-chat.md +7 -7
  397. package/corpus/core/docs/content/locales/hi-IN/template-clips.md +3 -3
  398. package/corpus/core/docs/content/locales/hi-IN/template-content.md +2 -2
  399. package/corpus/core/docs/content/locales/hi-IN/template-design.md +2 -2
  400. package/corpus/core/docs/content/locales/hi-IN/template-dispatch.md +1 -1
  401. package/corpus/core/docs/content/locales/hi-IN/template-forms.md +2 -2
  402. package/corpus/core/docs/content/locales/hi-IN/template-mail.md +2 -2
  403. package/corpus/core/docs/content/locales/hi-IN/template-plan.md +2 -2
  404. package/corpus/core/docs/content/locales/hi-IN/template-slides.md +3 -3
  405. package/corpus/core/docs/content/locales/hi-IN/template-videos.md +1 -1
  406. package/corpus/core/docs/content/locales/hi-IN/tracking.md +1 -1
  407. package/corpus/core/docs/content/locales/hi-IN/using-your-agent.md +1 -1
  408. package/corpus/core/docs/content/locales/hi-IN/voice-input.md +1 -1
  409. package/corpus/core/docs/content/locales/hi-IN/what-is-agent-native.md +5 -5
  410. package/corpus/core/docs/content/locales/hi-IN/workspace-connections.md +2 -2
  411. package/corpus/core/docs/content/locales/hi-IN/workspace-management.md +6 -6
  412. package/corpus/core/docs/content/locales/hi-IN/workspace.md +4 -4
  413. package/corpus/core/docs/content/locales/hi-IN/writing-agent-instructions.md +1 -1
  414. package/corpus/core/docs/content/locales/ja-JP/a2a-protocol.md +3 -3
  415. package/corpus/core/docs/content/locales/ja-JP/actions.md +3 -3
  416. package/corpus/core/docs/content/locales/ja-JP/agent-mentions.md +2 -2
  417. package/corpus/core/docs/content/locales/ja-JP/agent-surfaces.md +2 -2
  418. package/corpus/core/docs/content/locales/ja-JP/agent-teams.md +3 -3
  419. package/corpus/core/docs/content/locales/ja-JP/agent-web-surfaces.md +2 -2
  420. package/corpus/core/docs/content/locales/ja-JP/authentication.md +2 -2
  421. package/corpus/core/docs/content/locales/ja-JP/automations.md +3 -3
  422. package/corpus/core/docs/content/locales/ja-JP/blueprint-installer.md +1 -1
  423. package/corpus/core/docs/content/locales/ja-JP/cli-adapters.md +1 -1
  424. package/corpus/core/docs/content/locales/ja-JP/client.md +3 -3
  425. package/corpus/core/docs/content/locales/ja-JP/cloneable-saas.md +3 -3
  426. package/corpus/core/docs/content/locales/ja-JP/code-agents-ui.md +3 -3
  427. package/corpus/core/docs/content/locales/ja-JP/components.md +2 -2
  428. package/corpus/core/docs/content/locales/ja-JP/context-awareness.md +3 -3
  429. package/corpus/core/docs/content/locales/ja-JP/creating-templates.md +16 -16
  430. package/corpus/core/docs/content/locales/ja-JP/cross-app-sso.md +2 -2
  431. package/corpus/core/docs/content/locales/ja-JP/database.md +2 -2
  432. package/corpus/core/docs/content/locales/ja-JP/deployment.md +15 -16
  433. package/corpus/core/docs/content/locales/ja-JP/dispatch.md +2 -2
  434. package/corpus/core/docs/content/locales/ja-JP/drop-in-agent.md +2 -2
  435. package/corpus/core/docs/content/locales/ja-JP/durable-resume.md +1 -1
  436. package/corpus/core/docs/content/locales/ja-JP/embedding-sdk.md +2 -2
  437. package/corpus/core/docs/content/locales/ja-JP/evals.md +2 -2
  438. package/corpus/core/docs/content/locales/ja-JP/extensions.md +2 -2
  439. package/corpus/core/docs/content/locales/ja-JP/external-agents.md +2 -2
  440. package/corpus/core/docs/content/locales/ja-JP/faq.md +2 -2
  441. package/corpus/core/docs/content/locales/ja-JP/file-uploads.md +1 -1
  442. package/corpus/core/docs/content/locales/ja-JP/frames.md +2 -2
  443. package/corpus/core/docs/content/locales/ja-JP/getting-started.md +5 -5
  444. package/corpus/core/docs/content/locales/ja-JP/harness-agents.md +2 -2
  445. package/corpus/core/docs/content/locales/ja-JP/human-approval.md +2 -2
  446. package/corpus/core/docs/content/locales/ja-JP/internationalization.md +2 -0
  447. package/corpus/core/docs/content/locales/ja-JP/key-concepts.md +7 -7
  448. package/corpus/core/docs/content/locales/ja-JP/local-file-mode.md +8 -8
  449. package/corpus/core/docs/content/locales/ja-JP/mcp-apps.md +3 -3
  450. package/corpus/core/docs/content/locales/ja-JP/mcp-clients.md +3 -3
  451. package/corpus/core/docs/content/locales/ja-JP/mcp-protocol.md +2 -2
  452. package/corpus/core/docs/content/locales/ja-JP/messaging.md +2 -2
  453. package/corpus/core/docs/content/locales/ja-JP/migration-workbench.md +1 -1
  454. package/corpus/core/docs/content/locales/ja-JP/multi-app-workspace.md +8 -8
  455. package/corpus/core/docs/content/locales/ja-JP/multi-tenancy.md +2 -2
  456. package/corpus/core/docs/content/locales/ja-JP/native-chat-ui.md +2 -2
  457. package/corpus/core/docs/content/locales/ja-JP/notifications.md +2 -2
  458. package/corpus/core/docs/content/locales/ja-JP/observability.md +3 -3
  459. package/corpus/core/docs/content/locales/ja-JP/observational-memory.md +2 -2
  460. package/corpus/core/docs/content/locales/ja-JP/onboarding.md +2 -2
  461. package/corpus/core/docs/content/locales/ja-JP/plan-plugin.md +2 -2
  462. package/corpus/core/docs/content/locales/ja-JP/pr-visual-recap.md +2 -2
  463. package/corpus/core/docs/content/locales/ja-JP/processors.md +1 -1
  464. package/corpus/core/docs/content/locales/ja-JP/progress.md +1 -1
  465. package/corpus/core/docs/content/locales/ja-JP/pure-agent-apps.md +1 -1
  466. package/corpus/core/docs/content/locales/ja-JP/real-time-collaboration.md +7 -3
  467. package/corpus/core/docs/content/locales/ja-JP/recurring-jobs.md +1 -1
  468. package/corpus/core/docs/content/locales/ja-JP/routing.md +1 -1
  469. package/corpus/core/docs/content/locales/ja-JP/sandbox-adapters.md +6 -6
  470. package/corpus/core/docs/content/locales/ja-JP/security.md +2 -2
  471. package/corpus/core/docs/content/locales/ja-JP/server.md +22 -10
  472. package/corpus/core/docs/content/locales/ja-JP/sharing.md +1 -1
  473. package/corpus/core/docs/content/locales/ja-JP/skills-guide.md +3 -3
  474. package/corpus/core/docs/content/locales/ja-JP/template-analytics.md +1 -1
  475. package/corpus/core/docs/content/locales/ja-JP/template-assets.md +2 -2
  476. package/corpus/core/docs/content/locales/ja-JP/template-brain.md +1 -1
  477. package/corpus/core/docs/content/locales/ja-JP/template-calendar.md +2 -2
  478. package/corpus/core/docs/content/locales/ja-JP/template-chat.md +7 -7
  479. package/corpus/core/docs/content/locales/ja-JP/template-clips.md +3 -3
  480. package/corpus/core/docs/content/locales/ja-JP/template-content.md +2 -2
  481. package/corpus/core/docs/content/locales/ja-JP/template-design.md +2 -2
  482. package/corpus/core/docs/content/locales/ja-JP/template-dispatch.md +1 -1
  483. package/corpus/core/docs/content/locales/ja-JP/template-forms.md +2 -2
  484. package/corpus/core/docs/content/locales/ja-JP/template-mail.md +2 -2
  485. package/corpus/core/docs/content/locales/ja-JP/template-plan.md +2 -2
  486. package/corpus/core/docs/content/locales/ja-JP/template-slides.md +3 -3
  487. package/corpus/core/docs/content/locales/ja-JP/template-videos.md +1 -1
  488. package/corpus/core/docs/content/locales/ja-JP/tracking.md +1 -1
  489. package/corpus/core/docs/content/locales/ja-JP/using-your-agent.md +1 -1
  490. package/corpus/core/docs/content/locales/ja-JP/voice-input.md +1 -1
  491. package/corpus/core/docs/content/locales/ja-JP/what-is-agent-native.md +5 -5
  492. package/corpus/core/docs/content/locales/ja-JP/workspace-connections.md +2 -2
  493. package/corpus/core/docs/content/locales/ja-JP/workspace-management.md +6 -6
  494. package/corpus/core/docs/content/locales/ja-JP/workspace.md +4 -4
  495. package/corpus/core/docs/content/locales/ja-JP/writing-agent-instructions.md +1 -1
  496. package/corpus/core/docs/content/locales/ko-KR/a2a-protocol.md +3 -3
  497. package/corpus/core/docs/content/locales/ko-KR/actions.md +3 -3
  498. package/corpus/core/docs/content/locales/ko-KR/agent-mentions.md +2 -2
  499. package/corpus/core/docs/content/locales/ko-KR/agent-surfaces.md +2 -2
  500. package/corpus/core/docs/content/locales/ko-KR/agent-teams.md +3 -3
  501. package/corpus/core/docs/content/locales/ko-KR/agent-web-surfaces.md +2 -2
  502. package/corpus/core/docs/content/locales/ko-KR/authentication.md +2 -2
  503. package/corpus/core/docs/content/locales/ko-KR/automations.md +3 -3
  504. package/corpus/core/docs/content/locales/ko-KR/blueprint-installer.md +1 -1
  505. package/corpus/core/docs/content/locales/ko-KR/cli-adapters.md +1 -1
  506. package/corpus/core/docs/content/locales/ko-KR/client.md +3 -3
  507. package/corpus/core/docs/content/locales/ko-KR/cloneable-saas.md +3 -3
  508. package/corpus/core/docs/content/locales/ko-KR/code-agents-ui.md +3 -3
  509. package/corpus/core/docs/content/locales/ko-KR/components.md +2 -2
  510. package/corpus/core/docs/content/locales/ko-KR/context-awareness.md +3 -3
  511. package/corpus/core/docs/content/locales/ko-KR/creating-templates.md +16 -16
  512. package/corpus/core/docs/content/locales/ko-KR/cross-app-sso.md +2 -2
  513. package/corpus/core/docs/content/locales/ko-KR/database.md +2 -2
  514. package/corpus/core/docs/content/locales/ko-KR/deployment.md +15 -16
  515. package/corpus/core/docs/content/locales/ko-KR/dispatch.md +2 -2
  516. package/corpus/core/docs/content/locales/ko-KR/drop-in-agent.md +2 -2
  517. package/corpus/core/docs/content/locales/ko-KR/durable-resume.md +1 -1
  518. package/corpus/core/docs/content/locales/ko-KR/embedding-sdk.md +2 -2
  519. package/corpus/core/docs/content/locales/ko-KR/evals.md +2 -2
  520. package/corpus/core/docs/content/locales/ko-KR/extensions.md +2 -2
  521. package/corpus/core/docs/content/locales/ko-KR/external-agents.md +2 -2
  522. package/corpus/core/docs/content/locales/ko-KR/faq.md +2 -2
  523. package/corpus/core/docs/content/locales/ko-KR/file-uploads.md +1 -1
  524. package/corpus/core/docs/content/locales/ko-KR/frames.md +2 -2
  525. package/corpus/core/docs/content/locales/ko-KR/getting-started.md +5 -5
  526. package/corpus/core/docs/content/locales/ko-KR/harness-agents.md +2 -2
  527. package/corpus/core/docs/content/locales/ko-KR/human-approval.md +2 -2
  528. package/corpus/core/docs/content/locales/ko-KR/internationalization.md +2 -0
  529. package/corpus/core/docs/content/locales/ko-KR/key-concepts.md +7 -7
  530. package/corpus/core/docs/content/locales/ko-KR/local-file-mode.md +8 -8
  531. package/corpus/core/docs/content/locales/ko-KR/mcp-apps.md +3 -3
  532. package/corpus/core/docs/content/locales/ko-KR/mcp-clients.md +3 -3
  533. package/corpus/core/docs/content/locales/ko-KR/mcp-protocol.md +2 -2
  534. package/corpus/core/docs/content/locales/ko-KR/messaging.md +2 -2
  535. package/corpus/core/docs/content/locales/ko-KR/migration-workbench.md +1 -1
  536. package/corpus/core/docs/content/locales/ko-KR/multi-app-workspace.md +8 -8
  537. package/corpus/core/docs/content/locales/ko-KR/multi-tenancy.md +2 -2
  538. package/corpus/core/docs/content/locales/ko-KR/native-chat-ui.md +2 -2
  539. package/corpus/core/docs/content/locales/ko-KR/notifications.md +2 -2
  540. package/corpus/core/docs/content/locales/ko-KR/observability.md +3 -3
  541. package/corpus/core/docs/content/locales/ko-KR/observational-memory.md +2 -2
  542. package/corpus/core/docs/content/locales/ko-KR/onboarding.md +2 -2
  543. package/corpus/core/docs/content/locales/ko-KR/plan-plugin.md +2 -2
  544. package/corpus/core/docs/content/locales/ko-KR/pr-visual-recap.md +2 -2
  545. package/corpus/core/docs/content/locales/ko-KR/processors.md +1 -1
  546. package/corpus/core/docs/content/locales/ko-KR/progress.md +1 -1
  547. package/corpus/core/docs/content/locales/ko-KR/pure-agent-apps.md +1 -1
  548. package/corpus/core/docs/content/locales/ko-KR/real-time-collaboration.md +7 -3
  549. package/corpus/core/docs/content/locales/ko-KR/recurring-jobs.md +1 -1
  550. package/corpus/core/docs/content/locales/ko-KR/routing.md +1 -1
  551. package/corpus/core/docs/content/locales/ko-KR/sandbox-adapters.md +6 -6
  552. package/corpus/core/docs/content/locales/ko-KR/security.md +2 -2
  553. package/corpus/core/docs/content/locales/ko-KR/server.md +22 -10
  554. package/corpus/core/docs/content/locales/ko-KR/sharing.md +1 -1
  555. package/corpus/core/docs/content/locales/ko-KR/skills-guide.md +3 -3
  556. package/corpus/core/docs/content/locales/ko-KR/template-analytics.md +1 -1
  557. package/corpus/core/docs/content/locales/ko-KR/template-assets.md +2 -2
  558. package/corpus/core/docs/content/locales/ko-KR/template-brain.md +1 -1
  559. package/corpus/core/docs/content/locales/ko-KR/template-calendar.md +2 -2
  560. package/corpus/core/docs/content/locales/ko-KR/template-chat.md +7 -7
  561. package/corpus/core/docs/content/locales/ko-KR/template-clips.md +3 -3
  562. package/corpus/core/docs/content/locales/ko-KR/template-content.md +2 -2
  563. package/corpus/core/docs/content/locales/ko-KR/template-design.md +2 -2
  564. package/corpus/core/docs/content/locales/ko-KR/template-dispatch.md +1 -1
  565. package/corpus/core/docs/content/locales/ko-KR/template-forms.md +2 -2
  566. package/corpus/core/docs/content/locales/ko-KR/template-mail.md +2 -2
  567. package/corpus/core/docs/content/locales/ko-KR/template-plan.md +2 -2
  568. package/corpus/core/docs/content/locales/ko-KR/template-slides.md +3 -3
  569. package/corpus/core/docs/content/locales/ko-KR/template-videos.md +1 -1
  570. package/corpus/core/docs/content/locales/ko-KR/tracking.md +1 -1
  571. package/corpus/core/docs/content/locales/ko-KR/using-your-agent.md +1 -1
  572. package/corpus/core/docs/content/locales/ko-KR/voice-input.md +1 -1
  573. package/corpus/core/docs/content/locales/ko-KR/what-is-agent-native.md +5 -5
  574. package/corpus/core/docs/content/locales/ko-KR/workspace-connections.md +2 -2
  575. package/corpus/core/docs/content/locales/ko-KR/workspace-management.md +6 -6
  576. package/corpus/core/docs/content/locales/ko-KR/workspace.md +4 -4
  577. package/corpus/core/docs/content/locales/ko-KR/writing-agent-instructions.md +1 -1
  578. package/corpus/core/docs/content/locales/pt-BR/a2a-protocol.md +3 -3
  579. package/corpus/core/docs/content/locales/pt-BR/actions.md +3 -3
  580. package/corpus/core/docs/content/locales/pt-BR/agent-mentions.md +2 -2
  581. package/corpus/core/docs/content/locales/pt-BR/agent-surfaces.md +2 -2
  582. package/corpus/core/docs/content/locales/pt-BR/agent-teams.md +3 -3
  583. package/corpus/core/docs/content/locales/pt-BR/agent-web-surfaces.md +2 -2
  584. package/corpus/core/docs/content/locales/pt-BR/authentication.md +2 -2
  585. package/corpus/core/docs/content/locales/pt-BR/automations.md +3 -3
  586. package/corpus/core/docs/content/locales/pt-BR/blueprint-installer.md +1 -1
  587. package/corpus/core/docs/content/locales/pt-BR/cli-adapters.md +1 -1
  588. package/corpus/core/docs/content/locales/pt-BR/client.md +3 -3
  589. package/corpus/core/docs/content/locales/pt-BR/cloneable-saas.md +3 -3
  590. package/corpus/core/docs/content/locales/pt-BR/code-agents-ui.md +3 -3
  591. package/corpus/core/docs/content/locales/pt-BR/components.md +2 -2
  592. package/corpus/core/docs/content/locales/pt-BR/context-awareness.md +3 -3
  593. package/corpus/core/docs/content/locales/pt-BR/creating-templates.md +16 -16
  594. package/corpus/core/docs/content/locales/pt-BR/cross-app-sso.md +2 -2
  595. package/corpus/core/docs/content/locales/pt-BR/database.md +2 -2
  596. package/corpus/core/docs/content/locales/pt-BR/deployment.md +15 -16
  597. package/corpus/core/docs/content/locales/pt-BR/dispatch.md +2 -2
  598. package/corpus/core/docs/content/locales/pt-BR/drop-in-agent.md +2 -2
  599. package/corpus/core/docs/content/locales/pt-BR/durable-resume.md +1 -1
  600. package/corpus/core/docs/content/locales/pt-BR/embedding-sdk.md +2 -2
  601. package/corpus/core/docs/content/locales/pt-BR/evals.md +2 -2
  602. package/corpus/core/docs/content/locales/pt-BR/extensions.md +2 -2
  603. package/corpus/core/docs/content/locales/pt-BR/external-agents.md +2 -2
  604. package/corpus/core/docs/content/locales/pt-BR/faq.md +2 -2
  605. package/corpus/core/docs/content/locales/pt-BR/file-uploads.md +1 -1
  606. package/corpus/core/docs/content/locales/pt-BR/frames.md +2 -2
  607. package/corpus/core/docs/content/locales/pt-BR/getting-started.md +5 -5
  608. package/corpus/core/docs/content/locales/pt-BR/harness-agents.md +2 -2
  609. package/corpus/core/docs/content/locales/pt-BR/human-approval.md +2 -2
  610. package/corpus/core/docs/content/locales/pt-BR/internationalization.md +2 -0
  611. package/corpus/core/docs/content/locales/pt-BR/key-concepts.md +7 -7
  612. package/corpus/core/docs/content/locales/pt-BR/local-file-mode.md +8 -8
  613. package/corpus/core/docs/content/locales/pt-BR/mcp-apps.md +3 -3
  614. package/corpus/core/docs/content/locales/pt-BR/mcp-clients.md +3 -3
  615. package/corpus/core/docs/content/locales/pt-BR/mcp-protocol.md +2 -2
  616. package/corpus/core/docs/content/locales/pt-BR/messaging.md +2 -2
  617. package/corpus/core/docs/content/locales/pt-BR/migration-workbench.md +1 -1
  618. package/corpus/core/docs/content/locales/pt-BR/multi-app-workspace.md +8 -8
  619. package/corpus/core/docs/content/locales/pt-BR/multi-tenancy.md +2 -2
  620. package/corpus/core/docs/content/locales/pt-BR/native-chat-ui.md +2 -2
  621. package/corpus/core/docs/content/locales/pt-BR/notifications.md +2 -2
  622. package/corpus/core/docs/content/locales/pt-BR/observability.md +3 -3
  623. package/corpus/core/docs/content/locales/pt-BR/observational-memory.md +2 -2
  624. package/corpus/core/docs/content/locales/pt-BR/onboarding.md +2 -2
  625. package/corpus/core/docs/content/locales/pt-BR/plan-plugin.md +2 -2
  626. package/corpus/core/docs/content/locales/pt-BR/pr-visual-recap.md +2 -2
  627. package/corpus/core/docs/content/locales/pt-BR/processors.md +1 -1
  628. package/corpus/core/docs/content/locales/pt-BR/progress.md +1 -1
  629. package/corpus/core/docs/content/locales/pt-BR/pure-agent-apps.md +1 -1
  630. package/corpus/core/docs/content/locales/pt-BR/real-time-collaboration.md +7 -3
  631. package/corpus/core/docs/content/locales/pt-BR/recurring-jobs.md +1 -1
  632. package/corpus/core/docs/content/locales/pt-BR/routing.md +1 -1
  633. package/corpus/core/docs/content/locales/pt-BR/sandbox-adapters.md +6 -6
  634. package/corpus/core/docs/content/locales/pt-BR/security.md +2 -2
  635. package/corpus/core/docs/content/locales/pt-BR/server.md +22 -10
  636. package/corpus/core/docs/content/locales/pt-BR/sharing.md +1 -1
  637. package/corpus/core/docs/content/locales/pt-BR/skills-guide.md +3 -3
  638. package/corpus/core/docs/content/locales/pt-BR/template-analytics.md +1 -1
  639. package/corpus/core/docs/content/locales/pt-BR/template-assets.md +1 -1
  640. package/corpus/core/docs/content/locales/pt-BR/template-brain.md +1 -1
  641. package/corpus/core/docs/content/locales/pt-BR/template-calendar.md +2 -2
  642. package/corpus/core/docs/content/locales/pt-BR/template-chat.md +7 -7
  643. package/corpus/core/docs/content/locales/pt-BR/template-clips.md +3 -3
  644. package/corpus/core/docs/content/locales/pt-BR/template-content.md +2 -2
  645. package/corpus/core/docs/content/locales/pt-BR/template-design.md +1 -1
  646. package/corpus/core/docs/content/locales/pt-BR/template-dispatch.md +1 -1
  647. package/corpus/core/docs/content/locales/pt-BR/template-forms.md +2 -2
  648. package/corpus/core/docs/content/locales/pt-BR/template-mail.md +2 -2
  649. package/corpus/core/docs/content/locales/pt-BR/template-plan.md +2 -2
  650. package/corpus/core/docs/content/locales/pt-BR/template-slides.md +3 -3
  651. package/corpus/core/docs/content/locales/pt-BR/template-videos.md +1 -1
  652. package/corpus/core/docs/content/locales/pt-BR/tracking.md +1 -1
  653. package/corpus/core/docs/content/locales/pt-BR/using-your-agent.md +1 -1
  654. package/corpus/core/docs/content/locales/pt-BR/voice-input.md +1 -1
  655. package/corpus/core/docs/content/locales/pt-BR/what-is-agent-native.md +5 -5
  656. package/corpus/core/docs/content/locales/pt-BR/workspace-connections.md +2 -2
  657. package/corpus/core/docs/content/locales/pt-BR/workspace-management.md +6 -6
  658. package/corpus/core/docs/content/locales/pt-BR/workspace.md +4 -4
  659. package/corpus/core/docs/content/locales/pt-BR/writing-agent-instructions.md +1 -1
  660. package/corpus/core/docs/content/locales/zh-CN/a2a-protocol.md +3 -3
  661. package/corpus/core/docs/content/locales/zh-CN/actions.md +3 -3
  662. package/corpus/core/docs/content/locales/zh-CN/agent-mentions.md +2 -2
  663. package/corpus/core/docs/content/locales/zh-CN/agent-surfaces.md +2 -2
  664. package/corpus/core/docs/content/locales/zh-CN/agent-teams.md +3 -3
  665. package/corpus/core/docs/content/locales/zh-CN/agent-web-surfaces.md +2 -2
  666. package/corpus/core/docs/content/locales/zh-CN/authentication.md +2 -2
  667. package/corpus/core/docs/content/locales/zh-CN/automations.md +3 -3
  668. package/corpus/core/docs/content/locales/zh-CN/blueprint-installer.md +1 -1
  669. package/corpus/core/docs/content/locales/zh-CN/cli-adapters.md +1 -1
  670. package/corpus/core/docs/content/locales/zh-CN/client.md +3 -3
  671. package/corpus/core/docs/content/locales/zh-CN/cloneable-saas.md +3 -3
  672. package/corpus/core/docs/content/locales/zh-CN/code-agents-ui.md +3 -3
  673. package/corpus/core/docs/content/locales/zh-CN/components.md +2 -2
  674. package/corpus/core/docs/content/locales/zh-CN/context-awareness.md +3 -3
  675. package/corpus/core/docs/content/locales/zh-CN/creating-templates.md +16 -16
  676. package/corpus/core/docs/content/locales/zh-CN/cross-app-sso.md +2 -2
  677. package/corpus/core/docs/content/locales/zh-CN/database.md +2 -2
  678. package/corpus/core/docs/content/locales/zh-CN/deployment.md +15 -16
  679. package/corpus/core/docs/content/locales/zh-CN/dispatch.md +2 -2
  680. package/corpus/core/docs/content/locales/zh-CN/drop-in-agent.md +2 -2
  681. package/corpus/core/docs/content/locales/zh-CN/durable-resume.md +1 -1
  682. package/corpus/core/docs/content/locales/zh-CN/embedding-sdk.md +2 -2
  683. package/corpus/core/docs/content/locales/zh-CN/evals.md +2 -2
  684. package/corpus/core/docs/content/locales/zh-CN/extensions.md +2 -2
  685. package/corpus/core/docs/content/locales/zh-CN/external-agents.md +2 -2
  686. package/corpus/core/docs/content/locales/zh-CN/faq.md +2 -2
  687. package/corpus/core/docs/content/locales/zh-CN/file-uploads.md +1 -1
  688. package/corpus/core/docs/content/locales/zh-CN/frames.md +2 -2
  689. package/corpus/core/docs/content/locales/zh-CN/getting-started.md +5 -5
  690. package/corpus/core/docs/content/locales/zh-CN/harness-agents.md +2 -2
  691. package/corpus/core/docs/content/locales/zh-CN/human-approval.md +2 -2
  692. package/corpus/core/docs/content/locales/zh-CN/internationalization.md +2 -0
  693. package/corpus/core/docs/content/locales/zh-CN/key-concepts.md +7 -7
  694. package/corpus/core/docs/content/locales/zh-CN/local-file-mode.md +8 -8
  695. package/corpus/core/docs/content/locales/zh-CN/mcp-apps.md +3 -3
  696. package/corpus/core/docs/content/locales/zh-CN/mcp-clients.md +3 -3
  697. package/corpus/core/docs/content/locales/zh-CN/mcp-protocol.md +2 -2
  698. package/corpus/core/docs/content/locales/zh-CN/messaging.md +2 -2
  699. package/corpus/core/docs/content/locales/zh-CN/migration-workbench.md +1 -1
  700. package/corpus/core/docs/content/locales/zh-CN/multi-app-workspace.md +8 -8
  701. package/corpus/core/docs/content/locales/zh-CN/multi-tenancy.md +2 -2
  702. package/corpus/core/docs/content/locales/zh-CN/native-chat-ui.md +2 -2
  703. package/corpus/core/docs/content/locales/zh-CN/notifications.md +2 -2
  704. package/corpus/core/docs/content/locales/zh-CN/observability.md +3 -3
  705. package/corpus/core/docs/content/locales/zh-CN/observational-memory.md +2 -2
  706. package/corpus/core/docs/content/locales/zh-CN/onboarding.md +2 -2
  707. package/corpus/core/docs/content/locales/zh-CN/plan-plugin.md +2 -2
  708. package/corpus/core/docs/content/locales/zh-CN/pr-visual-recap.md +2 -2
  709. package/corpus/core/docs/content/locales/zh-CN/processors.md +1 -1
  710. package/corpus/core/docs/content/locales/zh-CN/progress.md +1 -1
  711. package/corpus/core/docs/content/locales/zh-CN/pure-agent-apps.md +1 -1
  712. package/corpus/core/docs/content/locales/zh-CN/real-time-collaboration.md +7 -3
  713. package/corpus/core/docs/content/locales/zh-CN/recurring-jobs.md +1 -1
  714. package/corpus/core/docs/content/locales/zh-CN/routing.md +1 -1
  715. package/corpus/core/docs/content/locales/zh-CN/sandbox-adapters.md +6 -6
  716. package/corpus/core/docs/content/locales/zh-CN/security.md +2 -2
  717. package/corpus/core/docs/content/locales/zh-CN/server.md +22 -10
  718. package/corpus/core/docs/content/locales/zh-CN/sharing.md +1 -1
  719. package/corpus/core/docs/content/locales/zh-CN/skills-guide.md +3 -3
  720. package/corpus/core/docs/content/locales/zh-CN/template-analytics.md +1 -1
  721. package/corpus/core/docs/content/locales/zh-CN/template-assets.md +2 -2
  722. package/corpus/core/docs/content/locales/zh-CN/template-brain.md +1 -1
  723. package/corpus/core/docs/content/locales/zh-CN/template-calendar.md +2 -2
  724. package/corpus/core/docs/content/locales/zh-CN/template-chat.md +7 -7
  725. package/corpus/core/docs/content/locales/zh-CN/template-clips.md +3 -3
  726. package/corpus/core/docs/content/locales/zh-CN/template-content.md +2 -2
  727. package/corpus/core/docs/content/locales/zh-CN/template-design.md +2 -2
  728. package/corpus/core/docs/content/locales/zh-CN/template-dispatch.md +1 -1
  729. package/corpus/core/docs/content/locales/zh-CN/template-forms.md +2 -2
  730. package/corpus/core/docs/content/locales/zh-CN/template-mail.md +2 -2
  731. package/corpus/core/docs/content/locales/zh-CN/template-plan.md +2 -2
  732. package/corpus/core/docs/content/locales/zh-CN/template-slides.md +3 -3
  733. package/corpus/core/docs/content/locales/zh-CN/template-videos.md +1 -1
  734. package/corpus/core/docs/content/locales/zh-CN/tracking.md +1 -1
  735. package/corpus/core/docs/content/locales/zh-CN/using-your-agent.md +1 -1
  736. package/corpus/core/docs/content/locales/zh-CN/voice-input.md +1 -1
  737. package/corpus/core/docs/content/locales/zh-CN/what-is-agent-native.md +5 -5
  738. package/corpus/core/docs/content/locales/zh-CN/workspace-connections.md +2 -2
  739. package/corpus/core/docs/content/locales/zh-CN/workspace-management.md +6 -6
  740. package/corpus/core/docs/content/locales/zh-CN/workspace.md +4 -4
  741. package/corpus/core/docs/content/locales/zh-CN/writing-agent-instructions.md +1 -1
  742. package/corpus/core/docs/content/real-time-collaboration.md +5 -1
  743. package/corpus/core/package.json +1 -1
  744. package/corpus/core/src/agent/run-store.ts +21 -0
  745. package/corpus/core/src/client/AgentPanel.tsx +130 -70
  746. package/corpus/core/src/client/i18n.tsx +67 -5
  747. package/corpus/core/src/client/sharing/ShareDialog.tsx +98 -57
  748. package/corpus/core/src/server/agent-chat-plugin.ts +26 -0
  749. package/corpus/core/src/styles/agent-native.css +59 -0
  750. package/corpus/core/src/templates/default/app/i18n/ar-SA.ts +155 -0
  751. package/corpus/core/src/templates/default/app/i18n/de-DE.ts +155 -0
  752. package/corpus/core/src/templates/default/app/i18n/en-US.ts +155 -0
  753. package/corpus/core/src/templates/default/app/i18n/es-ES.ts +155 -0
  754. package/corpus/core/src/templates/default/app/i18n/fr-FR.ts +155 -0
  755. package/corpus/core/src/templates/default/app/i18n/hi-IN.ts +155 -0
  756. package/corpus/core/src/templates/default/app/i18n/ja-JP.ts +155 -0
  757. package/corpus/core/src/templates/default/app/i18n/ko-KR.ts +155 -0
  758. package/corpus/core/src/templates/default/app/i18n/pt-BR.ts +155 -0
  759. package/corpus/core/src/templates/default/app/i18n/zh-CN.ts +155 -0
  760. package/corpus/core/src/templates/default/vite.config.ts +10 -5
  761. package/corpus/core/src/vite/client.ts +259 -114
  762. package/corpus/core/src/vite/index.ts +2 -0
  763. package/corpus/templates/analytics/vite.config.ts +10 -5
  764. package/corpus/templates/assets/vite.config.ts +11 -6
  765. package/corpus/templates/brain/vite.config.ts +3 -2
  766. package/corpus/templates/calendar/vite.config.ts +10 -5
  767. package/corpus/templates/chat/vite.config.ts +10 -5
  768. package/corpus/templates/clips/app/components/library/library-layout.tsx +2 -0
  769. package/corpus/templates/clips/vite.config.ts +11 -6
  770. package/corpus/templates/content/vite.config.ts +14 -9
  771. package/corpus/templates/design/vite.config.ts +10 -5
  772. package/corpus/templates/dispatch/vite.config.ts +10 -5
  773. package/corpus/templates/forms/app/i18n/ar-SA.ts +2 -2
  774. package/corpus/templates/forms/app/i18n/de-DE.ts +2 -2
  775. package/corpus/templates/forms/app/i18n/fr-FR.ts +2 -2
  776. package/corpus/templates/forms/app/i18n/hi-IN.ts +2 -2
  777. package/corpus/templates/forms/app/i18n/ja-JP.ts +2 -2
  778. package/corpus/templates/forms/app/i18n/ko-KR.ts +2 -2
  779. package/corpus/templates/forms/app/i18n/pt-BR.ts +2 -2
  780. package/corpus/templates/forms/app/i18n/zh-CN.ts +2 -2
  781. package/corpus/templates/forms/vite.config.ts +10 -5
  782. package/corpus/templates/macros/app/i18n/ar-SA.ts +19 -19
  783. package/corpus/templates/macros/app/i18n/de-DE.ts +19 -19
  784. package/corpus/templates/macros/app/i18n/es-ES.ts +19 -19
  785. package/corpus/templates/macros/app/i18n/fr-FR.ts +20 -19
  786. package/corpus/templates/macros/app/i18n/hi-IN.ts +19 -19
  787. package/corpus/templates/macros/app/i18n/ja-JP.ts +19 -19
  788. package/corpus/templates/macros/app/i18n/ko-KR.ts +19 -19
  789. package/corpus/templates/macros/app/i18n/pt-BR.ts +19 -19
  790. package/corpus/templates/macros/app/i18n/zh-CN.ts +19 -20
  791. package/corpus/templates/macros/vite.config.ts +10 -5
  792. package/corpus/templates/mail/app/i18n/ar-SA.ts +26 -26
  793. package/corpus/templates/mail/app/i18n/de-DE.ts +26 -26
  794. package/corpus/templates/mail/app/i18n/es-ES.ts +26 -26
  795. package/corpus/templates/mail/app/i18n/fr-FR.ts +25 -25
  796. package/corpus/templates/mail/app/i18n/hi-IN.ts +26 -26
  797. package/corpus/templates/mail/app/i18n/ja-JP.ts +26 -26
  798. package/corpus/templates/mail/app/i18n/ko-KR.ts +26 -26
  799. package/corpus/templates/mail/app/i18n/pt-BR.ts +26 -26
  800. package/corpus/templates/mail/app/i18n/zh-CN.ts +26 -26
  801. package/corpus/templates/mail/vite.config.ts +10 -5
  802. package/corpus/templates/plan/app/i18n/ar-SA.ts +10 -11
  803. package/corpus/templates/plan/app/i18n/de-DE.ts +10 -10
  804. package/corpus/templates/plan/app/i18n/es-ES.ts +10 -10
  805. package/corpus/templates/plan/app/i18n/fr-FR.ts +10 -10
  806. package/corpus/templates/plan/app/i18n/hi-IN.ts +10 -10
  807. package/corpus/templates/plan/app/i18n/ja-JP.ts +10 -11
  808. package/corpus/templates/plan/app/i18n/ko-KR.ts +10 -10
  809. package/corpus/templates/plan/app/i18n/pt-BR.ts +10 -10
  810. package/corpus/templates/plan/app/i18n/zh-CN.ts +10 -12
  811. package/corpus/templates/plan/vite.config.ts +14 -9
  812. package/corpus/templates/slides/app/i18n/ar-SA.ts +6 -6
  813. package/corpus/templates/slides/app/i18n/de-DE.ts +6 -6
  814. package/corpus/templates/slides/app/i18n/es-ES.ts +6 -6
  815. package/corpus/templates/slides/app/i18n/fr-FR.ts +6 -6
  816. package/corpus/templates/slides/app/i18n/hi-IN.ts +6 -6
  817. package/corpus/templates/slides/app/i18n/ja-JP.ts +6 -6
  818. package/corpus/templates/slides/app/i18n/ko-KR.ts +6 -6
  819. package/corpus/templates/slides/app/i18n/pt-BR.ts +6 -6
  820. package/corpus/templates/slides/app/i18n/zh-CN.ts +6 -6
  821. package/corpus/templates/slides/vite.config.ts +17 -12
  822. package/corpus/templates/videos/app/i18n/ar-SA.ts +8 -8
  823. package/corpus/templates/videos/app/i18n/de-DE.ts +9 -8
  824. package/corpus/templates/videos/app/i18n/es-ES.ts +9 -8
  825. package/corpus/templates/videos/app/i18n/fr-FR.ts +9 -8
  826. package/corpus/templates/videos/app/i18n/hi-IN.ts +8 -9
  827. package/corpus/templates/videos/app/i18n/ja-JP.ts +8 -8
  828. package/corpus/templates/videos/app/i18n/ko-KR.ts +8 -8
  829. package/corpus/templates/videos/app/i18n/pt-BR.ts +8 -8
  830. package/corpus/templates/videos/app/i18n/zh-CN.ts +8 -9
  831. package/corpus/templates/videos/vite.config.ts +10 -5
  832. package/dist/agent/run-store.d.ts +11 -0
  833. package/dist/agent/run-store.d.ts.map +1 -1
  834. package/dist/agent/run-store.js +20 -0
  835. package/dist/agent/run-store.js.map +1 -1
  836. package/dist/client/AgentPanel.d.ts +4 -2
  837. package/dist/client/AgentPanel.d.ts.map +1 -1
  838. package/dist/client/AgentPanel.js +77 -36
  839. package/dist/client/AgentPanel.js.map +1 -1
  840. package/dist/client/i18n.d.ts +1 -0
  841. package/dist/client/i18n.d.ts.map +1 -1
  842. package/dist/client/i18n.js +60 -5
  843. package/dist/client/i18n.js.map +1 -1
  844. package/dist/client/sharing/ShareDialog.d.ts.map +1 -1
  845. package/dist/client/sharing/ShareDialog.js +76 -43
  846. package/dist/client/sharing/ShareDialog.js.map +1 -1
  847. package/dist/server/agent-chat-plugin.d.ts.map +1 -1
  848. package/dist/server/agent-chat-plugin.js +26 -0
  849. package/dist/server/agent-chat-plugin.js.map +1 -1
  850. package/dist/styles/agent-native.css +59 -0
  851. package/dist/templates/default/app/i18n/ar-SA.ts +155 -0
  852. package/dist/templates/default/app/i18n/de-DE.ts +155 -0
  853. package/dist/templates/default/app/i18n/en-US.ts +155 -0
  854. package/dist/templates/default/app/i18n/es-ES.ts +155 -0
  855. package/dist/templates/default/app/i18n/fr-FR.ts +155 -0
  856. package/dist/templates/default/app/i18n/hi-IN.ts +155 -0
  857. package/dist/templates/default/app/i18n/ja-JP.ts +155 -0
  858. package/dist/templates/default/app/i18n/ko-KR.ts +155 -0
  859. package/dist/templates/default/app/i18n/pt-BR.ts +155 -0
  860. package/dist/templates/default/app/i18n/zh-CN.ts +155 -0
  861. package/dist/templates/default/vite.config.ts +10 -5
  862. package/dist/vite/client.d.ts +29 -5
  863. package/dist/vite/client.d.ts.map +1 -1
  864. package/dist/vite/client.js +201 -106
  865. package/dist/vite/client.js.map +1 -1
  866. package/dist/vite/index.d.ts +1 -1
  867. package/dist/vite/index.d.ts.map +1 -1
  868. package/dist/vite/index.js +1 -1
  869. package/dist/vite/index.js.map +1 -1
  870. package/docs/content/deployment.md +8 -9
  871. package/docs/content/internationalization.md +6 -0
  872. package/docs/content/locales/ar-SA/a2a-protocol.md +20 -8
  873. package/docs/content/locales/ar-SA/actions.md +18 -6
  874. package/docs/content/locales/ar-SA/agent-mentions.md +18 -6
  875. package/docs/content/locales/ar-SA/agent-surfaces.md +4 -4
  876. package/docs/content/locales/ar-SA/agent-teams.md +6 -6
  877. package/docs/content/locales/ar-SA/agent-web-surfaces.md +13 -5
  878. package/docs/content/locales/ar-SA/authentication.md +4 -4
  879. package/docs/content/locales/ar-SA/automations.md +25 -9
  880. package/docs/content/locales/ar-SA/blueprint-installer.md +2 -2
  881. package/docs/content/locales/ar-SA/cli-adapters.md +2 -2
  882. package/docs/content/locales/ar-SA/client.md +4 -4
  883. package/docs/content/locales/ar-SA/cloneable-saas.md +4 -4
  884. package/docs/content/locales/ar-SA/code-agents-ui.md +4 -4
  885. package/docs/content/locales/ar-SA/components.md +4 -4
  886. package/docs/content/locales/ar-SA/context-awareness.md +25 -9
  887. package/docs/content/locales/ar-SA/creating-templates.md +16 -16
  888. package/docs/content/locales/ar-SA/cross-app-sso.md +2 -2
  889. package/docs/content/locales/ar-SA/database.md +2 -2
  890. package/docs/content/locales/ar-SA/deployment.md +15 -16
  891. package/docs/content/locales/ar-SA/dispatch.md +2 -2
  892. package/docs/content/locales/ar-SA/drop-in-agent.md +2 -2
  893. package/docs/content/locales/ar-SA/durable-resume.md +1 -1
  894. package/docs/content/locales/ar-SA/embedding-sdk.md +2 -2
  895. package/docs/content/locales/ar-SA/evals.md +2 -2
  896. package/docs/content/locales/ar-SA/extensions.md +2 -2
  897. package/docs/content/locales/ar-SA/external-agents.md +2 -2
  898. package/docs/content/locales/ar-SA/faq.md +2 -2
  899. package/docs/content/locales/ar-SA/file-uploads.md +1 -1
  900. package/docs/content/locales/ar-SA/frames.md +2 -2
  901. package/docs/content/locales/ar-SA/getting-started.md +5 -5
  902. package/docs/content/locales/ar-SA/harness-agents.md +2 -2
  903. package/docs/content/locales/ar-SA/human-approval.md +2 -2
  904. package/docs/content/locales/ar-SA/internationalization.md +2 -0
  905. package/docs/content/locales/ar-SA/key-concepts.md +7 -7
  906. package/docs/content/locales/ar-SA/local-file-mode.md +8 -8
  907. package/docs/content/locales/ar-SA/mcp-apps.md +3 -3
  908. package/docs/content/locales/ar-SA/mcp-clients.md +3 -3
  909. package/docs/content/locales/ar-SA/mcp-protocol.md +2 -2
  910. package/docs/content/locales/ar-SA/messaging.md +2 -2
  911. package/docs/content/locales/ar-SA/migration-workbench.md +1 -1
  912. package/docs/content/locales/ar-SA/multi-app-workspace.md +8 -8
  913. package/docs/content/locales/ar-SA/multi-tenancy.md +2 -2
  914. package/docs/content/locales/ar-SA/native-chat-ui.md +2 -2
  915. package/docs/content/locales/ar-SA/notifications.md +2 -2
  916. package/docs/content/locales/ar-SA/observability.md +3 -3
  917. package/docs/content/locales/ar-SA/observational-memory.md +2 -2
  918. package/docs/content/locales/ar-SA/onboarding.md +2 -2
  919. package/docs/content/locales/ar-SA/plan-plugin.md +2 -2
  920. package/docs/content/locales/ar-SA/pr-visual-recap.md +2 -2
  921. package/docs/content/locales/ar-SA/processors.md +1 -1
  922. package/docs/content/locales/ar-SA/progress.md +1 -1
  923. package/docs/content/locales/ar-SA/pure-agent-apps.md +1 -1
  924. package/docs/content/locales/ar-SA/real-time-collaboration.md +7 -3
  925. package/docs/content/locales/ar-SA/recurring-jobs.md +1 -1
  926. package/docs/content/locales/ar-SA/routing.md +1 -1
  927. package/docs/content/locales/ar-SA/sandbox-adapters.md +6 -6
  928. package/docs/content/locales/ar-SA/security.md +2 -2
  929. package/docs/content/locales/ar-SA/server.md +22 -10
  930. package/docs/content/locales/ar-SA/sharing.md +1 -1
  931. package/docs/content/locales/ar-SA/skills-guide.md +3 -3
  932. package/docs/content/locales/ar-SA/template-analytics.md +1 -1
  933. package/docs/content/locales/ar-SA/template-assets.md +2 -2
  934. package/docs/content/locales/ar-SA/template-brain.md +1 -1
  935. package/docs/content/locales/ar-SA/template-calendar.md +2 -2
  936. package/docs/content/locales/ar-SA/template-chat.md +7 -7
  937. package/docs/content/locales/ar-SA/template-clips.md +3 -3
  938. package/docs/content/locales/ar-SA/template-content.md +2 -2
  939. package/docs/content/locales/ar-SA/template-design.md +3 -3
  940. package/docs/content/locales/ar-SA/template-dispatch.md +1 -1
  941. package/docs/content/locales/ar-SA/template-forms.md +2 -2
  942. package/docs/content/locales/ar-SA/template-mail.md +2 -2
  943. package/docs/content/locales/ar-SA/template-plan.md +2 -2
  944. package/docs/content/locales/ar-SA/template-slides.md +3 -3
  945. package/docs/content/locales/ar-SA/template-videos.md +1 -1
  946. package/docs/content/locales/ar-SA/tracking.md +1 -1
  947. package/docs/content/locales/ar-SA/using-your-agent.md +1 -1
  948. package/docs/content/locales/ar-SA/voice-input.md +1 -1
  949. package/docs/content/locales/ar-SA/what-is-agent-native.md +5 -5
  950. package/docs/content/locales/ar-SA/workspace-connections.md +2 -2
  951. package/docs/content/locales/ar-SA/workspace-management.md +6 -6
  952. package/docs/content/locales/ar-SA/workspace.md +4 -4
  953. package/docs/content/locales/ar-SA/writing-agent-instructions.md +1 -1
  954. package/docs/content/locales/de-DE/a2a-protocol.md +3 -3
  955. package/docs/content/locales/de-DE/actions.md +3 -3
  956. package/docs/content/locales/de-DE/agent-mentions.md +2 -2
  957. package/docs/content/locales/de-DE/agent-surfaces.md +2 -2
  958. package/docs/content/locales/de-DE/agent-teams.md +3 -3
  959. package/docs/content/locales/de-DE/agent-web-surfaces.md +2 -2
  960. package/docs/content/locales/de-DE/authentication.md +2 -2
  961. package/docs/content/locales/de-DE/automations.md +3 -3
  962. package/docs/content/locales/de-DE/blueprint-installer.md +1 -1
  963. package/docs/content/locales/de-DE/cli-adapters.md +1 -1
  964. package/docs/content/locales/de-DE/client.md +3 -3
  965. package/docs/content/locales/de-DE/cloneable-saas.md +3 -3
  966. package/docs/content/locales/de-DE/code-agents-ui.md +3 -3
  967. package/docs/content/locales/de-DE/components.md +2 -2
  968. package/docs/content/locales/de-DE/context-awareness.md +3 -3
  969. package/docs/content/locales/de-DE/creating-templates.md +16 -16
  970. package/docs/content/locales/de-DE/cross-app-sso.md +2 -2
  971. package/docs/content/locales/de-DE/database.md +2 -2
  972. package/docs/content/locales/de-DE/deployment.md +15 -16
  973. package/docs/content/locales/de-DE/dispatch.md +2 -2
  974. package/docs/content/locales/de-DE/drop-in-agent.md +2 -2
  975. package/docs/content/locales/de-DE/durable-resume.md +1 -1
  976. package/docs/content/locales/de-DE/embedding-sdk.md +2 -2
  977. package/docs/content/locales/de-DE/evals.md +2 -2
  978. package/docs/content/locales/de-DE/extensions.md +2 -2
  979. package/docs/content/locales/de-DE/external-agents.md +2 -2
  980. package/docs/content/locales/de-DE/faq.md +2 -2
  981. package/docs/content/locales/de-DE/file-uploads.md +1 -1
  982. package/docs/content/locales/de-DE/frames.md +2 -2
  983. package/docs/content/locales/de-DE/getting-started.md +5 -5
  984. package/docs/content/locales/de-DE/harness-agents.md +2 -2
  985. package/docs/content/locales/de-DE/human-approval.md +2 -2
  986. package/docs/content/locales/de-DE/internationalization.md +2 -0
  987. package/docs/content/locales/de-DE/key-concepts.md +7 -7
  988. package/docs/content/locales/de-DE/local-file-mode.md +8 -8
  989. package/docs/content/locales/de-DE/mcp-apps.md +3 -3
  990. package/docs/content/locales/de-DE/mcp-clients.md +3 -3
  991. package/docs/content/locales/de-DE/mcp-protocol.md +2 -2
  992. package/docs/content/locales/de-DE/messaging.md +2 -2
  993. package/docs/content/locales/de-DE/migration-workbench.md +1 -1
  994. package/docs/content/locales/de-DE/multi-app-workspace.md +8 -8
  995. package/docs/content/locales/de-DE/multi-tenancy.md +2 -2
  996. package/docs/content/locales/de-DE/native-chat-ui.md +2 -2
  997. package/docs/content/locales/de-DE/notifications.md +2 -2
  998. package/docs/content/locales/de-DE/observability.md +3 -3
  999. package/docs/content/locales/de-DE/observational-memory.md +2 -2
  1000. package/docs/content/locales/de-DE/onboarding.md +2 -2
  1001. package/docs/content/locales/de-DE/plan-plugin.md +2 -2
  1002. package/docs/content/locales/de-DE/pr-visual-recap.md +2 -2
  1003. package/docs/content/locales/de-DE/processors.md +1 -1
  1004. package/docs/content/locales/de-DE/progress.md +1 -1
  1005. package/docs/content/locales/de-DE/pure-agent-apps.md +1 -1
  1006. package/docs/content/locales/de-DE/real-time-collaboration.md +7 -3
  1007. package/docs/content/locales/de-DE/recurring-jobs.md +1 -1
  1008. package/docs/content/locales/de-DE/routing.md +1 -1
  1009. package/docs/content/locales/de-DE/sandbox-adapters.md +6 -6
  1010. package/docs/content/locales/de-DE/security.md +2 -2
  1011. package/docs/content/locales/de-DE/server.md +22 -10
  1012. package/docs/content/locales/de-DE/sharing.md +1 -1
  1013. package/docs/content/locales/de-DE/skills-guide.md +3 -3
  1014. package/docs/content/locales/de-DE/template-analytics.md +1 -1
  1015. package/docs/content/locales/de-DE/template-assets.md +1 -1
  1016. package/docs/content/locales/de-DE/template-brain.md +1 -1
  1017. package/docs/content/locales/de-DE/template-calendar.md +2 -2
  1018. package/docs/content/locales/de-DE/template-chat.md +7 -7
  1019. package/docs/content/locales/de-DE/template-clips.md +3 -3
  1020. package/docs/content/locales/de-DE/template-content.md +2 -2
  1021. package/docs/content/locales/de-DE/template-design.md +1 -1
  1022. package/docs/content/locales/de-DE/template-dispatch.md +1 -1
  1023. package/docs/content/locales/de-DE/template-forms.md +2 -2
  1024. package/docs/content/locales/de-DE/template-mail.md +2 -2
  1025. package/docs/content/locales/de-DE/template-plan.md +2 -2
  1026. package/docs/content/locales/de-DE/template-slides.md +3 -3
  1027. package/docs/content/locales/de-DE/template-videos.md +1 -1
  1028. package/docs/content/locales/de-DE/tracking.md +1 -1
  1029. package/docs/content/locales/de-DE/using-your-agent.md +1 -1
  1030. package/docs/content/locales/de-DE/voice-input.md +1 -1
  1031. package/docs/content/locales/de-DE/what-is-agent-native.md +5 -5
  1032. package/docs/content/locales/de-DE/workspace-connections.md +2 -2
  1033. package/docs/content/locales/de-DE/workspace-management.md +6 -6
  1034. package/docs/content/locales/de-DE/workspace.md +4 -4
  1035. package/docs/content/locales/de-DE/writing-agent-instructions.md +1 -1
  1036. package/docs/content/locales/es-ES/a2a-protocol.md +3 -3
  1037. package/docs/content/locales/es-ES/actions.md +3 -3
  1038. package/docs/content/locales/es-ES/agent-mentions.md +2 -2
  1039. package/docs/content/locales/es-ES/agent-surfaces.md +2 -2
  1040. package/docs/content/locales/es-ES/agent-teams.md +3 -3
  1041. package/docs/content/locales/es-ES/agent-web-surfaces.md +2 -2
  1042. package/docs/content/locales/es-ES/authentication.md +2 -2
  1043. package/docs/content/locales/es-ES/automations.md +3 -3
  1044. package/docs/content/locales/es-ES/blueprint-installer.md +1 -1
  1045. package/docs/content/locales/es-ES/cli-adapters.md +1 -1
  1046. package/docs/content/locales/es-ES/client.md +3 -3
  1047. package/docs/content/locales/es-ES/cloneable-saas.md +3 -3
  1048. package/docs/content/locales/es-ES/code-agents-ui.md +3 -3
  1049. package/docs/content/locales/es-ES/components.md +2 -2
  1050. package/docs/content/locales/es-ES/context-awareness.md +3 -3
  1051. package/docs/content/locales/es-ES/creating-templates.md +16 -16
  1052. package/docs/content/locales/es-ES/cross-app-sso.md +2 -2
  1053. package/docs/content/locales/es-ES/database.md +2 -2
  1054. package/docs/content/locales/es-ES/deployment.md +15 -16
  1055. package/docs/content/locales/es-ES/dispatch.md +2 -2
  1056. package/docs/content/locales/es-ES/drop-in-agent.md +2 -2
  1057. package/docs/content/locales/es-ES/durable-resume.md +1 -1
  1058. package/docs/content/locales/es-ES/embedding-sdk.md +2 -2
  1059. package/docs/content/locales/es-ES/evals.md +2 -2
  1060. package/docs/content/locales/es-ES/extensions.md +2 -2
  1061. package/docs/content/locales/es-ES/external-agents.md +2 -2
  1062. package/docs/content/locales/es-ES/faq.md +2 -2
  1063. package/docs/content/locales/es-ES/file-uploads.md +1 -1
  1064. package/docs/content/locales/es-ES/frames.md +2 -2
  1065. package/docs/content/locales/es-ES/getting-started.md +5 -5
  1066. package/docs/content/locales/es-ES/harness-agents.md +2 -2
  1067. package/docs/content/locales/es-ES/human-approval.md +2 -2
  1068. package/docs/content/locales/es-ES/internationalization.md +2 -0
  1069. package/docs/content/locales/es-ES/key-concepts.md +7 -7
  1070. package/docs/content/locales/es-ES/local-file-mode.md +8 -8
  1071. package/docs/content/locales/es-ES/mcp-apps.md +3 -3
  1072. package/docs/content/locales/es-ES/mcp-clients.md +3 -3
  1073. package/docs/content/locales/es-ES/mcp-protocol.md +2 -2
  1074. package/docs/content/locales/es-ES/messaging.md +2 -2
  1075. package/docs/content/locales/es-ES/migration-workbench.md +1 -1
  1076. package/docs/content/locales/es-ES/multi-app-workspace.md +8 -8
  1077. package/docs/content/locales/es-ES/multi-tenancy.md +2 -2
  1078. package/docs/content/locales/es-ES/native-chat-ui.md +2 -2
  1079. package/docs/content/locales/es-ES/notifications.md +2 -2
  1080. package/docs/content/locales/es-ES/observability.md +3 -3
  1081. package/docs/content/locales/es-ES/observational-memory.md +2 -2
  1082. package/docs/content/locales/es-ES/onboarding.md +2 -2
  1083. package/docs/content/locales/es-ES/plan-plugin.md +2 -2
  1084. package/docs/content/locales/es-ES/pr-visual-recap.md +2 -2
  1085. package/docs/content/locales/es-ES/processors.md +1 -1
  1086. package/docs/content/locales/es-ES/progress.md +1 -1
  1087. package/docs/content/locales/es-ES/pure-agent-apps.md +1 -1
  1088. package/docs/content/locales/es-ES/real-time-collaboration.md +7 -3
  1089. package/docs/content/locales/es-ES/recurring-jobs.md +1 -1
  1090. package/docs/content/locales/es-ES/routing.md +1 -1
  1091. package/docs/content/locales/es-ES/sandbox-adapters.md +6 -6
  1092. package/docs/content/locales/es-ES/security.md +2 -2
  1093. package/docs/content/locales/es-ES/server.md +22 -10
  1094. package/docs/content/locales/es-ES/sharing.md +1 -1
  1095. package/docs/content/locales/es-ES/skills-guide.md +3 -3
  1096. package/docs/content/locales/es-ES/template-analytics.md +1 -1
  1097. package/docs/content/locales/es-ES/template-assets.md +1 -1
  1098. package/docs/content/locales/es-ES/template-brain.md +1 -1
  1099. package/docs/content/locales/es-ES/template-calendar.md +2 -2
  1100. package/docs/content/locales/es-ES/template-chat.md +7 -7
  1101. package/docs/content/locales/es-ES/template-clips.md +3 -3
  1102. package/docs/content/locales/es-ES/template-content.md +2 -2
  1103. package/docs/content/locales/es-ES/template-design.md +1 -1
  1104. package/docs/content/locales/es-ES/template-dispatch.md +1 -1
  1105. package/docs/content/locales/es-ES/template-forms.md +2 -2
  1106. package/docs/content/locales/es-ES/template-mail.md +2 -2
  1107. package/docs/content/locales/es-ES/template-plan.md +2 -2
  1108. package/docs/content/locales/es-ES/template-slides.md +3 -3
  1109. package/docs/content/locales/es-ES/template-videos.md +1 -1
  1110. package/docs/content/locales/es-ES/tracking.md +1 -1
  1111. package/docs/content/locales/es-ES/using-your-agent.md +1 -1
  1112. package/docs/content/locales/es-ES/voice-input.md +1 -1
  1113. package/docs/content/locales/es-ES/what-is-agent-native.md +5 -5
  1114. package/docs/content/locales/es-ES/workspace-connections.md +2 -2
  1115. package/docs/content/locales/es-ES/workspace-management.md +6 -6
  1116. package/docs/content/locales/es-ES/workspace.md +4 -4
  1117. package/docs/content/locales/es-ES/writing-agent-instructions.md +1 -1
  1118. package/docs/content/locales/fr-FR/a2a-protocol.md +3 -3
  1119. package/docs/content/locales/fr-FR/actions.md +3 -3
  1120. package/docs/content/locales/fr-FR/agent-mentions.md +2 -2
  1121. package/docs/content/locales/fr-FR/agent-surfaces.md +2 -2
  1122. package/docs/content/locales/fr-FR/agent-teams.md +3 -3
  1123. package/docs/content/locales/fr-FR/agent-web-surfaces.md +2 -2
  1124. package/docs/content/locales/fr-FR/authentication.md +2 -2
  1125. package/docs/content/locales/fr-FR/automations.md +3 -3
  1126. package/docs/content/locales/fr-FR/blueprint-installer.md +1 -1
  1127. package/docs/content/locales/fr-FR/cli-adapters.md +1 -1
  1128. package/docs/content/locales/fr-FR/client.md +3 -3
  1129. package/docs/content/locales/fr-FR/cloneable-saas.md +3 -3
  1130. package/docs/content/locales/fr-FR/code-agents-ui.md +3 -3
  1131. package/docs/content/locales/fr-FR/components.md +2 -2
  1132. package/docs/content/locales/fr-FR/context-awareness.md +3 -3
  1133. package/docs/content/locales/fr-FR/creating-templates.md +16 -16
  1134. package/docs/content/locales/fr-FR/cross-app-sso.md +2 -2
  1135. package/docs/content/locales/fr-FR/database.md +2 -2
  1136. package/docs/content/locales/fr-FR/deployment.md +15 -16
  1137. package/docs/content/locales/fr-FR/dispatch.md +2 -2
  1138. package/docs/content/locales/fr-FR/drop-in-agent.md +2 -2
  1139. package/docs/content/locales/fr-FR/durable-resume.md +1 -1
  1140. package/docs/content/locales/fr-FR/embedding-sdk.md +2 -2
  1141. package/docs/content/locales/fr-FR/evals.md +2 -2
  1142. package/docs/content/locales/fr-FR/extensions.md +2 -2
  1143. package/docs/content/locales/fr-FR/external-agents.md +2 -2
  1144. package/docs/content/locales/fr-FR/faq.md +2 -2
  1145. package/docs/content/locales/fr-FR/file-uploads.md +1 -1
  1146. package/docs/content/locales/fr-FR/frames.md +2 -2
  1147. package/docs/content/locales/fr-FR/getting-started.md +5 -5
  1148. package/docs/content/locales/fr-FR/harness-agents.md +2 -2
  1149. package/docs/content/locales/fr-FR/human-approval.md +2 -2
  1150. package/docs/content/locales/fr-FR/internationalization.md +2 -0
  1151. package/docs/content/locales/fr-FR/key-concepts.md +7 -7
  1152. package/docs/content/locales/fr-FR/local-file-mode.md +8 -8
  1153. package/docs/content/locales/fr-FR/mcp-apps.md +3 -3
  1154. package/docs/content/locales/fr-FR/mcp-clients.md +3 -3
  1155. package/docs/content/locales/fr-FR/mcp-protocol.md +2 -2
  1156. package/docs/content/locales/fr-FR/messaging.md +2 -2
  1157. package/docs/content/locales/fr-FR/migration-workbench.md +1 -1
  1158. package/docs/content/locales/fr-FR/multi-app-workspace.md +8 -8
  1159. package/docs/content/locales/fr-FR/multi-tenancy.md +2 -2
  1160. package/docs/content/locales/fr-FR/native-chat-ui.md +2 -2
  1161. package/docs/content/locales/fr-FR/notifications.md +2 -2
  1162. package/docs/content/locales/fr-FR/observability.md +3 -3
  1163. package/docs/content/locales/fr-FR/observational-memory.md +2 -2
  1164. package/docs/content/locales/fr-FR/onboarding.md +2 -2
  1165. package/docs/content/locales/fr-FR/plan-plugin.md +2 -2
  1166. package/docs/content/locales/fr-FR/pr-visual-recap.md +2 -2
  1167. package/docs/content/locales/fr-FR/processors.md +1 -1
  1168. package/docs/content/locales/fr-FR/progress.md +1 -1
  1169. package/docs/content/locales/fr-FR/pure-agent-apps.md +1 -1
  1170. package/docs/content/locales/fr-FR/real-time-collaboration.md +7 -3
  1171. package/docs/content/locales/fr-FR/recurring-jobs.md +1 -1
  1172. package/docs/content/locales/fr-FR/routing.md +1 -1
  1173. package/docs/content/locales/fr-FR/sandbox-adapters.md +6 -6
  1174. package/docs/content/locales/fr-FR/security.md +2 -2
  1175. package/docs/content/locales/fr-FR/server.md +22 -10
  1176. package/docs/content/locales/fr-FR/sharing.md +1 -1
  1177. package/docs/content/locales/fr-FR/skills-guide.md +3 -3
  1178. package/docs/content/locales/fr-FR/template-analytics.md +1 -1
  1179. package/docs/content/locales/fr-FR/template-assets.md +2 -2
  1180. package/docs/content/locales/fr-FR/template-brain.md +1 -1
  1181. package/docs/content/locales/fr-FR/template-calendar.md +2 -2
  1182. package/docs/content/locales/fr-FR/template-chat.md +7 -7
  1183. package/docs/content/locales/fr-FR/template-clips.md +3 -3
  1184. package/docs/content/locales/fr-FR/template-content.md +2 -2
  1185. package/docs/content/locales/fr-FR/template-design.md +2 -2
  1186. package/docs/content/locales/fr-FR/template-dispatch.md +1 -1
  1187. package/docs/content/locales/fr-FR/template-forms.md +2 -2
  1188. package/docs/content/locales/fr-FR/template-mail.md +2 -2
  1189. package/docs/content/locales/fr-FR/template-plan.md +2 -2
  1190. package/docs/content/locales/fr-FR/template-slides.md +3 -3
  1191. package/docs/content/locales/fr-FR/template-videos.md +1 -1
  1192. package/docs/content/locales/fr-FR/tracking.md +1 -1
  1193. package/docs/content/locales/fr-FR/using-your-agent.md +1 -1
  1194. package/docs/content/locales/fr-FR/voice-input.md +1 -1
  1195. package/docs/content/locales/fr-FR/what-is-agent-native.md +5 -5
  1196. package/docs/content/locales/fr-FR/workspace-connections.md +2 -2
  1197. package/docs/content/locales/fr-FR/workspace-management.md +6 -6
  1198. package/docs/content/locales/fr-FR/workspace.md +4 -4
  1199. package/docs/content/locales/fr-FR/writing-agent-instructions.md +1 -1
  1200. package/docs/content/locales/hi-IN/a2a-protocol.md +3 -3
  1201. package/docs/content/locales/hi-IN/actions.md +3 -3
  1202. package/docs/content/locales/hi-IN/agent-mentions.md +2 -2
  1203. package/docs/content/locales/hi-IN/agent-surfaces.md +2 -2
  1204. package/docs/content/locales/hi-IN/agent-teams.md +3 -3
  1205. package/docs/content/locales/hi-IN/agent-web-surfaces.md +2 -2
  1206. package/docs/content/locales/hi-IN/authentication.md +2 -2
  1207. package/docs/content/locales/hi-IN/automations.md +3 -3
  1208. package/docs/content/locales/hi-IN/blueprint-installer.md +1 -1
  1209. package/docs/content/locales/hi-IN/cli-adapters.md +1 -1
  1210. package/docs/content/locales/hi-IN/client.md +3 -3
  1211. package/docs/content/locales/hi-IN/cloneable-saas.md +3 -3
  1212. package/docs/content/locales/hi-IN/code-agents-ui.md +3 -3
  1213. package/docs/content/locales/hi-IN/components.md +2 -2
  1214. package/docs/content/locales/hi-IN/context-awareness.md +3 -3
  1215. package/docs/content/locales/hi-IN/creating-templates.md +16 -16
  1216. package/docs/content/locales/hi-IN/cross-app-sso.md +2 -2
  1217. package/docs/content/locales/hi-IN/database.md +2 -2
  1218. package/docs/content/locales/hi-IN/deployment.md +15 -16
  1219. package/docs/content/locales/hi-IN/dispatch.md +2 -2
  1220. package/docs/content/locales/hi-IN/drop-in-agent.md +2 -2
  1221. package/docs/content/locales/hi-IN/durable-resume.md +1 -1
  1222. package/docs/content/locales/hi-IN/embedding-sdk.md +2 -2
  1223. package/docs/content/locales/hi-IN/evals.md +2 -2
  1224. package/docs/content/locales/hi-IN/extensions.md +2 -2
  1225. package/docs/content/locales/hi-IN/external-agents.md +2 -2
  1226. package/docs/content/locales/hi-IN/faq.md +2 -2
  1227. package/docs/content/locales/hi-IN/file-uploads.md +1 -1
  1228. package/docs/content/locales/hi-IN/frames.md +2 -2
  1229. package/docs/content/locales/hi-IN/getting-started.md +6 -6
  1230. package/docs/content/locales/hi-IN/harness-agents.md +2 -2
  1231. package/docs/content/locales/hi-IN/human-approval.md +2 -2
  1232. package/docs/content/locales/hi-IN/internationalization.md +2 -0
  1233. package/docs/content/locales/hi-IN/key-concepts.md +7 -7
  1234. package/docs/content/locales/hi-IN/local-file-mode.md +8 -8
  1235. package/docs/content/locales/hi-IN/mcp-apps.md +3 -3
  1236. package/docs/content/locales/hi-IN/mcp-clients.md +3 -3
  1237. package/docs/content/locales/hi-IN/mcp-protocol.md +2 -2
  1238. package/docs/content/locales/hi-IN/messaging.md +2 -2
  1239. package/docs/content/locales/hi-IN/migration-workbench.md +1 -1
  1240. package/docs/content/locales/hi-IN/multi-app-workspace.md +8 -8
  1241. package/docs/content/locales/hi-IN/multi-tenancy.md +2 -2
  1242. package/docs/content/locales/hi-IN/native-chat-ui.md +2 -2
  1243. package/docs/content/locales/hi-IN/notifications.md +2 -2
  1244. package/docs/content/locales/hi-IN/observability.md +3 -3
  1245. package/docs/content/locales/hi-IN/observational-memory.md +2 -2
  1246. package/docs/content/locales/hi-IN/onboarding.md +2 -2
  1247. package/docs/content/locales/hi-IN/plan-plugin.md +2 -2
  1248. package/docs/content/locales/hi-IN/pr-visual-recap.md +2 -2
  1249. package/docs/content/locales/hi-IN/processors.md +1 -1
  1250. package/docs/content/locales/hi-IN/progress.md +1 -1
  1251. package/docs/content/locales/hi-IN/pure-agent-apps.md +1 -1
  1252. package/docs/content/locales/hi-IN/real-time-collaboration.md +7 -3
  1253. package/docs/content/locales/hi-IN/recurring-jobs.md +1 -1
  1254. package/docs/content/locales/hi-IN/routing.md +1 -1
  1255. package/docs/content/locales/hi-IN/sandbox-adapters.md +6 -6
  1256. package/docs/content/locales/hi-IN/security.md +2 -2
  1257. package/docs/content/locales/hi-IN/server.md +22 -10
  1258. package/docs/content/locales/hi-IN/sharing.md +1 -1
  1259. package/docs/content/locales/hi-IN/skills-guide.md +3 -3
  1260. package/docs/content/locales/hi-IN/template-analytics.md +1 -1
  1261. package/docs/content/locales/hi-IN/template-assets.md +2 -2
  1262. package/docs/content/locales/hi-IN/template-brain.md +1 -1
  1263. package/docs/content/locales/hi-IN/template-calendar.md +2 -2
  1264. package/docs/content/locales/hi-IN/template-chat.md +7 -7
  1265. package/docs/content/locales/hi-IN/template-clips.md +3 -3
  1266. package/docs/content/locales/hi-IN/template-content.md +2 -2
  1267. package/docs/content/locales/hi-IN/template-design.md +2 -2
  1268. package/docs/content/locales/hi-IN/template-dispatch.md +1 -1
  1269. package/docs/content/locales/hi-IN/template-forms.md +2 -2
  1270. package/docs/content/locales/hi-IN/template-mail.md +2 -2
  1271. package/docs/content/locales/hi-IN/template-plan.md +2 -2
  1272. package/docs/content/locales/hi-IN/template-slides.md +3 -3
  1273. package/docs/content/locales/hi-IN/template-videos.md +1 -1
  1274. package/docs/content/locales/hi-IN/tracking.md +1 -1
  1275. package/docs/content/locales/hi-IN/using-your-agent.md +1 -1
  1276. package/docs/content/locales/hi-IN/voice-input.md +1 -1
  1277. package/docs/content/locales/hi-IN/what-is-agent-native.md +5 -5
  1278. package/docs/content/locales/hi-IN/workspace-connections.md +2 -2
  1279. package/docs/content/locales/hi-IN/workspace-management.md +6 -6
  1280. package/docs/content/locales/hi-IN/workspace.md +4 -4
  1281. package/docs/content/locales/hi-IN/writing-agent-instructions.md +1 -1
  1282. package/docs/content/locales/ja-JP/a2a-protocol.md +3 -3
  1283. package/docs/content/locales/ja-JP/actions.md +3 -3
  1284. package/docs/content/locales/ja-JP/agent-mentions.md +2 -2
  1285. package/docs/content/locales/ja-JP/agent-surfaces.md +2 -2
  1286. package/docs/content/locales/ja-JP/agent-teams.md +3 -3
  1287. package/docs/content/locales/ja-JP/agent-web-surfaces.md +2 -2
  1288. package/docs/content/locales/ja-JP/authentication.md +2 -2
  1289. package/docs/content/locales/ja-JP/automations.md +3 -3
  1290. package/docs/content/locales/ja-JP/blueprint-installer.md +1 -1
  1291. package/docs/content/locales/ja-JP/cli-adapters.md +1 -1
  1292. package/docs/content/locales/ja-JP/client.md +3 -3
  1293. package/docs/content/locales/ja-JP/cloneable-saas.md +3 -3
  1294. package/docs/content/locales/ja-JP/code-agents-ui.md +3 -3
  1295. package/docs/content/locales/ja-JP/components.md +2 -2
  1296. package/docs/content/locales/ja-JP/context-awareness.md +3 -3
  1297. package/docs/content/locales/ja-JP/creating-templates.md +16 -16
  1298. package/docs/content/locales/ja-JP/cross-app-sso.md +2 -2
  1299. package/docs/content/locales/ja-JP/database.md +2 -2
  1300. package/docs/content/locales/ja-JP/deployment.md +15 -16
  1301. package/docs/content/locales/ja-JP/dispatch.md +2 -2
  1302. package/docs/content/locales/ja-JP/drop-in-agent.md +2 -2
  1303. package/docs/content/locales/ja-JP/durable-resume.md +1 -1
  1304. package/docs/content/locales/ja-JP/embedding-sdk.md +2 -2
  1305. package/docs/content/locales/ja-JP/evals.md +2 -2
  1306. package/docs/content/locales/ja-JP/extensions.md +2 -2
  1307. package/docs/content/locales/ja-JP/external-agents.md +2 -2
  1308. package/docs/content/locales/ja-JP/faq.md +2 -2
  1309. package/docs/content/locales/ja-JP/file-uploads.md +1 -1
  1310. package/docs/content/locales/ja-JP/frames.md +2 -2
  1311. package/docs/content/locales/ja-JP/getting-started.md +5 -5
  1312. package/docs/content/locales/ja-JP/harness-agents.md +2 -2
  1313. package/docs/content/locales/ja-JP/human-approval.md +2 -2
  1314. package/docs/content/locales/ja-JP/internationalization.md +2 -0
  1315. package/docs/content/locales/ja-JP/key-concepts.md +7 -7
  1316. package/docs/content/locales/ja-JP/local-file-mode.md +8 -8
  1317. package/docs/content/locales/ja-JP/mcp-apps.md +3 -3
  1318. package/docs/content/locales/ja-JP/mcp-clients.md +3 -3
  1319. package/docs/content/locales/ja-JP/mcp-protocol.md +2 -2
  1320. package/docs/content/locales/ja-JP/messaging.md +2 -2
  1321. package/docs/content/locales/ja-JP/migration-workbench.md +1 -1
  1322. package/docs/content/locales/ja-JP/multi-app-workspace.md +8 -8
  1323. package/docs/content/locales/ja-JP/multi-tenancy.md +2 -2
  1324. package/docs/content/locales/ja-JP/native-chat-ui.md +2 -2
  1325. package/docs/content/locales/ja-JP/notifications.md +2 -2
  1326. package/docs/content/locales/ja-JP/observability.md +3 -3
  1327. package/docs/content/locales/ja-JP/observational-memory.md +2 -2
  1328. package/docs/content/locales/ja-JP/onboarding.md +2 -2
  1329. package/docs/content/locales/ja-JP/plan-plugin.md +2 -2
  1330. package/docs/content/locales/ja-JP/pr-visual-recap.md +2 -2
  1331. package/docs/content/locales/ja-JP/processors.md +1 -1
  1332. package/docs/content/locales/ja-JP/progress.md +1 -1
  1333. package/docs/content/locales/ja-JP/pure-agent-apps.md +1 -1
  1334. package/docs/content/locales/ja-JP/real-time-collaboration.md +7 -3
  1335. package/docs/content/locales/ja-JP/recurring-jobs.md +1 -1
  1336. package/docs/content/locales/ja-JP/routing.md +1 -1
  1337. package/docs/content/locales/ja-JP/sandbox-adapters.md +6 -6
  1338. package/docs/content/locales/ja-JP/security.md +2 -2
  1339. package/docs/content/locales/ja-JP/server.md +22 -10
  1340. package/docs/content/locales/ja-JP/sharing.md +1 -1
  1341. package/docs/content/locales/ja-JP/skills-guide.md +3 -3
  1342. package/docs/content/locales/ja-JP/template-analytics.md +1 -1
  1343. package/docs/content/locales/ja-JP/template-assets.md +2 -2
  1344. package/docs/content/locales/ja-JP/template-brain.md +1 -1
  1345. package/docs/content/locales/ja-JP/template-calendar.md +2 -2
  1346. package/docs/content/locales/ja-JP/template-chat.md +7 -7
  1347. package/docs/content/locales/ja-JP/template-clips.md +3 -3
  1348. package/docs/content/locales/ja-JP/template-content.md +2 -2
  1349. package/docs/content/locales/ja-JP/template-design.md +2 -2
  1350. package/docs/content/locales/ja-JP/template-dispatch.md +1 -1
  1351. package/docs/content/locales/ja-JP/template-forms.md +2 -2
  1352. package/docs/content/locales/ja-JP/template-mail.md +2 -2
  1353. package/docs/content/locales/ja-JP/template-plan.md +2 -2
  1354. package/docs/content/locales/ja-JP/template-slides.md +3 -3
  1355. package/docs/content/locales/ja-JP/template-videos.md +1 -1
  1356. package/docs/content/locales/ja-JP/tracking.md +1 -1
  1357. package/docs/content/locales/ja-JP/using-your-agent.md +1 -1
  1358. package/docs/content/locales/ja-JP/voice-input.md +1 -1
  1359. package/docs/content/locales/ja-JP/what-is-agent-native.md +5 -5
  1360. package/docs/content/locales/ja-JP/workspace-connections.md +2 -2
  1361. package/docs/content/locales/ja-JP/workspace-management.md +6 -6
  1362. package/docs/content/locales/ja-JP/workspace.md +4 -4
  1363. package/docs/content/locales/ja-JP/writing-agent-instructions.md +1 -1
  1364. package/docs/content/locales/ko-KR/a2a-protocol.md +3 -3
  1365. package/docs/content/locales/ko-KR/actions.md +3 -3
  1366. package/docs/content/locales/ko-KR/agent-mentions.md +2 -2
  1367. package/docs/content/locales/ko-KR/agent-surfaces.md +2 -2
  1368. package/docs/content/locales/ko-KR/agent-teams.md +3 -3
  1369. package/docs/content/locales/ko-KR/agent-web-surfaces.md +2 -2
  1370. package/docs/content/locales/ko-KR/authentication.md +2 -2
  1371. package/docs/content/locales/ko-KR/automations.md +3 -3
  1372. package/docs/content/locales/ko-KR/blueprint-installer.md +1 -1
  1373. package/docs/content/locales/ko-KR/cli-adapters.md +1 -1
  1374. package/docs/content/locales/ko-KR/client.md +3 -3
  1375. package/docs/content/locales/ko-KR/cloneable-saas.md +3 -3
  1376. package/docs/content/locales/ko-KR/code-agents-ui.md +3 -3
  1377. package/docs/content/locales/ko-KR/components.md +2 -2
  1378. package/docs/content/locales/ko-KR/context-awareness.md +3 -3
  1379. package/docs/content/locales/ko-KR/creating-templates.md +16 -16
  1380. package/docs/content/locales/ko-KR/cross-app-sso.md +2 -2
  1381. package/docs/content/locales/ko-KR/database.md +2 -2
  1382. package/docs/content/locales/ko-KR/deployment.md +15 -16
  1383. package/docs/content/locales/ko-KR/dispatch.md +2 -2
  1384. package/docs/content/locales/ko-KR/drop-in-agent.md +2 -2
  1385. package/docs/content/locales/ko-KR/durable-resume.md +1 -1
  1386. package/docs/content/locales/ko-KR/embedding-sdk.md +2 -2
  1387. package/docs/content/locales/ko-KR/evals.md +2 -2
  1388. package/docs/content/locales/ko-KR/extensions.md +2 -2
  1389. package/docs/content/locales/ko-KR/external-agents.md +2 -2
  1390. package/docs/content/locales/ko-KR/faq.md +2 -2
  1391. package/docs/content/locales/ko-KR/file-uploads.md +1 -1
  1392. package/docs/content/locales/ko-KR/frames.md +2 -2
  1393. package/docs/content/locales/ko-KR/getting-started.md +5 -5
  1394. package/docs/content/locales/ko-KR/harness-agents.md +2 -2
  1395. package/docs/content/locales/ko-KR/human-approval.md +2 -2
  1396. package/docs/content/locales/ko-KR/internationalization.md +2 -0
  1397. package/docs/content/locales/ko-KR/key-concepts.md +7 -7
  1398. package/docs/content/locales/ko-KR/local-file-mode.md +8 -8
  1399. package/docs/content/locales/ko-KR/mcp-apps.md +3 -3
  1400. package/docs/content/locales/ko-KR/mcp-clients.md +3 -3
  1401. package/docs/content/locales/ko-KR/mcp-protocol.md +2 -2
  1402. package/docs/content/locales/ko-KR/messaging.md +2 -2
  1403. package/docs/content/locales/ko-KR/migration-workbench.md +1 -1
  1404. package/docs/content/locales/ko-KR/multi-app-workspace.md +8 -8
  1405. package/docs/content/locales/ko-KR/multi-tenancy.md +2 -2
  1406. package/docs/content/locales/ko-KR/native-chat-ui.md +2 -2
  1407. package/docs/content/locales/ko-KR/notifications.md +2 -2
  1408. package/docs/content/locales/ko-KR/observability.md +3 -3
  1409. package/docs/content/locales/ko-KR/observational-memory.md +2 -2
  1410. package/docs/content/locales/ko-KR/onboarding.md +2 -2
  1411. package/docs/content/locales/ko-KR/plan-plugin.md +2 -2
  1412. package/docs/content/locales/ko-KR/pr-visual-recap.md +2 -2
  1413. package/docs/content/locales/ko-KR/processors.md +1 -1
  1414. package/docs/content/locales/ko-KR/progress.md +1 -1
  1415. package/docs/content/locales/ko-KR/pure-agent-apps.md +1 -1
  1416. package/docs/content/locales/ko-KR/real-time-collaboration.md +7 -3
  1417. package/docs/content/locales/ko-KR/recurring-jobs.md +1 -1
  1418. package/docs/content/locales/ko-KR/routing.md +1 -1
  1419. package/docs/content/locales/ko-KR/sandbox-adapters.md +6 -6
  1420. package/docs/content/locales/ko-KR/security.md +2 -2
  1421. package/docs/content/locales/ko-KR/server.md +22 -10
  1422. package/docs/content/locales/ko-KR/sharing.md +1 -1
  1423. package/docs/content/locales/ko-KR/skills-guide.md +3 -3
  1424. package/docs/content/locales/ko-KR/template-analytics.md +1 -1
  1425. package/docs/content/locales/ko-KR/template-assets.md +2 -2
  1426. package/docs/content/locales/ko-KR/template-brain.md +1 -1
  1427. package/docs/content/locales/ko-KR/template-calendar.md +2 -2
  1428. package/docs/content/locales/ko-KR/template-chat.md +7 -7
  1429. package/docs/content/locales/ko-KR/template-clips.md +3 -3
  1430. package/docs/content/locales/ko-KR/template-content.md +2 -2
  1431. package/docs/content/locales/ko-KR/template-design.md +2 -2
  1432. package/docs/content/locales/ko-KR/template-dispatch.md +1 -1
  1433. package/docs/content/locales/ko-KR/template-forms.md +2 -2
  1434. package/docs/content/locales/ko-KR/template-mail.md +2 -2
  1435. package/docs/content/locales/ko-KR/template-plan.md +2 -2
  1436. package/docs/content/locales/ko-KR/template-slides.md +3 -3
  1437. package/docs/content/locales/ko-KR/template-videos.md +1 -1
  1438. package/docs/content/locales/ko-KR/tracking.md +1 -1
  1439. package/docs/content/locales/ko-KR/using-your-agent.md +1 -1
  1440. package/docs/content/locales/ko-KR/voice-input.md +1 -1
  1441. package/docs/content/locales/ko-KR/what-is-agent-native.md +5 -5
  1442. package/docs/content/locales/ko-KR/workspace-connections.md +2 -2
  1443. package/docs/content/locales/ko-KR/workspace-management.md +6 -6
  1444. package/docs/content/locales/ko-KR/workspace.md +4 -4
  1445. package/docs/content/locales/ko-KR/writing-agent-instructions.md +1 -1
  1446. package/docs/content/locales/pt-BR/a2a-protocol.md +3 -3
  1447. package/docs/content/locales/pt-BR/actions.md +3 -3
  1448. package/docs/content/locales/pt-BR/agent-mentions.md +2 -2
  1449. package/docs/content/locales/pt-BR/agent-surfaces.md +2 -2
  1450. package/docs/content/locales/pt-BR/agent-teams.md +3 -3
  1451. package/docs/content/locales/pt-BR/agent-web-surfaces.md +2 -2
  1452. package/docs/content/locales/pt-BR/authentication.md +2 -2
  1453. package/docs/content/locales/pt-BR/automations.md +3 -3
  1454. package/docs/content/locales/pt-BR/blueprint-installer.md +1 -1
  1455. package/docs/content/locales/pt-BR/cli-adapters.md +1 -1
  1456. package/docs/content/locales/pt-BR/client.md +3 -3
  1457. package/docs/content/locales/pt-BR/cloneable-saas.md +3 -3
  1458. package/docs/content/locales/pt-BR/code-agents-ui.md +3 -3
  1459. package/docs/content/locales/pt-BR/components.md +2 -2
  1460. package/docs/content/locales/pt-BR/context-awareness.md +3 -3
  1461. package/docs/content/locales/pt-BR/creating-templates.md +16 -16
  1462. package/docs/content/locales/pt-BR/cross-app-sso.md +2 -2
  1463. package/docs/content/locales/pt-BR/database.md +2 -2
  1464. package/docs/content/locales/pt-BR/deployment.md +15 -16
  1465. package/docs/content/locales/pt-BR/dispatch.md +2 -2
  1466. package/docs/content/locales/pt-BR/drop-in-agent.md +2 -2
  1467. package/docs/content/locales/pt-BR/durable-resume.md +1 -1
  1468. package/docs/content/locales/pt-BR/embedding-sdk.md +2 -2
  1469. package/docs/content/locales/pt-BR/evals.md +2 -2
  1470. package/docs/content/locales/pt-BR/extensions.md +2 -2
  1471. package/docs/content/locales/pt-BR/external-agents.md +2 -2
  1472. package/docs/content/locales/pt-BR/faq.md +2 -2
  1473. package/docs/content/locales/pt-BR/file-uploads.md +1 -1
  1474. package/docs/content/locales/pt-BR/frames.md +2 -2
  1475. package/docs/content/locales/pt-BR/getting-started.md +5 -5
  1476. package/docs/content/locales/pt-BR/harness-agents.md +2 -2
  1477. package/docs/content/locales/pt-BR/human-approval.md +2 -2
  1478. package/docs/content/locales/pt-BR/internationalization.md +2 -0
  1479. package/docs/content/locales/pt-BR/key-concepts.md +7 -7
  1480. package/docs/content/locales/pt-BR/local-file-mode.md +8 -8
  1481. package/docs/content/locales/pt-BR/mcp-apps.md +3 -3
  1482. package/docs/content/locales/pt-BR/mcp-clients.md +3 -3
  1483. package/docs/content/locales/pt-BR/mcp-protocol.md +2 -2
  1484. package/docs/content/locales/pt-BR/messaging.md +2 -2
  1485. package/docs/content/locales/pt-BR/migration-workbench.md +1 -1
  1486. package/docs/content/locales/pt-BR/multi-app-workspace.md +8 -8
  1487. package/docs/content/locales/pt-BR/multi-tenancy.md +2 -2
  1488. package/docs/content/locales/pt-BR/native-chat-ui.md +2 -2
  1489. package/docs/content/locales/pt-BR/notifications.md +2 -2
  1490. package/docs/content/locales/pt-BR/observability.md +3 -3
  1491. package/docs/content/locales/pt-BR/observational-memory.md +2 -2
  1492. package/docs/content/locales/pt-BR/onboarding.md +2 -2
  1493. package/docs/content/locales/pt-BR/plan-plugin.md +2 -2
  1494. package/docs/content/locales/pt-BR/pr-visual-recap.md +2 -2
  1495. package/docs/content/locales/pt-BR/processors.md +1 -1
  1496. package/docs/content/locales/pt-BR/progress.md +1 -1
  1497. package/docs/content/locales/pt-BR/pure-agent-apps.md +1 -1
  1498. package/docs/content/locales/pt-BR/real-time-collaboration.md +7 -3
  1499. package/docs/content/locales/pt-BR/recurring-jobs.md +1 -1
  1500. package/docs/content/locales/pt-BR/routing.md +1 -1
  1501. package/docs/content/locales/pt-BR/sandbox-adapters.md +6 -6
  1502. package/docs/content/locales/pt-BR/security.md +2 -2
  1503. package/docs/content/locales/pt-BR/server.md +22 -10
  1504. package/docs/content/locales/pt-BR/sharing.md +1 -1
  1505. package/docs/content/locales/pt-BR/skills-guide.md +3 -3
  1506. package/docs/content/locales/pt-BR/template-analytics.md +1 -1
  1507. package/docs/content/locales/pt-BR/template-assets.md +1 -1
  1508. package/docs/content/locales/pt-BR/template-brain.md +1 -1
  1509. package/docs/content/locales/pt-BR/template-calendar.md +2 -2
  1510. package/docs/content/locales/pt-BR/template-chat.md +7 -7
  1511. package/docs/content/locales/pt-BR/template-clips.md +3 -3
  1512. package/docs/content/locales/pt-BR/template-content.md +2 -2
  1513. package/docs/content/locales/pt-BR/template-design.md +1 -1
  1514. package/docs/content/locales/pt-BR/template-dispatch.md +1 -1
  1515. package/docs/content/locales/pt-BR/template-forms.md +2 -2
  1516. package/docs/content/locales/pt-BR/template-mail.md +2 -2
  1517. package/docs/content/locales/pt-BR/template-plan.md +2 -2
  1518. package/docs/content/locales/pt-BR/template-slides.md +3 -3
  1519. package/docs/content/locales/pt-BR/template-videos.md +1 -1
  1520. package/docs/content/locales/pt-BR/tracking.md +1 -1
  1521. package/docs/content/locales/pt-BR/using-your-agent.md +1 -1
  1522. package/docs/content/locales/pt-BR/voice-input.md +1 -1
  1523. package/docs/content/locales/pt-BR/what-is-agent-native.md +5 -5
  1524. package/docs/content/locales/pt-BR/workspace-connections.md +2 -2
  1525. package/docs/content/locales/pt-BR/workspace-management.md +6 -6
  1526. package/docs/content/locales/pt-BR/workspace.md +4 -4
  1527. package/docs/content/locales/pt-BR/writing-agent-instructions.md +1 -1
  1528. package/docs/content/locales/zh-CN/a2a-protocol.md +3 -3
  1529. package/docs/content/locales/zh-CN/actions.md +3 -3
  1530. package/docs/content/locales/zh-CN/agent-mentions.md +2 -2
  1531. package/docs/content/locales/zh-CN/agent-surfaces.md +2 -2
  1532. package/docs/content/locales/zh-CN/agent-teams.md +3 -3
  1533. package/docs/content/locales/zh-CN/agent-web-surfaces.md +2 -2
  1534. package/docs/content/locales/zh-CN/authentication.md +2 -2
  1535. package/docs/content/locales/zh-CN/automations.md +3 -3
  1536. package/docs/content/locales/zh-CN/blueprint-installer.md +1 -1
  1537. package/docs/content/locales/zh-CN/cli-adapters.md +1 -1
  1538. package/docs/content/locales/zh-CN/client.md +3 -3
  1539. package/docs/content/locales/zh-CN/cloneable-saas.md +3 -3
  1540. package/docs/content/locales/zh-CN/code-agents-ui.md +3 -3
  1541. package/docs/content/locales/zh-CN/components.md +2 -2
  1542. package/docs/content/locales/zh-CN/context-awareness.md +3 -3
  1543. package/docs/content/locales/zh-CN/creating-templates.md +16 -16
  1544. package/docs/content/locales/zh-CN/cross-app-sso.md +2 -2
  1545. package/docs/content/locales/zh-CN/database.md +2 -2
  1546. package/docs/content/locales/zh-CN/deployment.md +15 -16
  1547. package/docs/content/locales/zh-CN/dispatch.md +2 -2
  1548. package/docs/content/locales/zh-CN/drop-in-agent.md +2 -2
  1549. package/docs/content/locales/zh-CN/durable-resume.md +1 -1
  1550. package/docs/content/locales/zh-CN/embedding-sdk.md +2 -2
  1551. package/docs/content/locales/zh-CN/evals.md +2 -2
  1552. package/docs/content/locales/zh-CN/extensions.md +2 -2
  1553. package/docs/content/locales/zh-CN/external-agents.md +2 -2
  1554. package/docs/content/locales/zh-CN/faq.md +2 -2
  1555. package/docs/content/locales/zh-CN/file-uploads.md +1 -1
  1556. package/docs/content/locales/zh-CN/frames.md +2 -2
  1557. package/docs/content/locales/zh-CN/getting-started.md +5 -5
  1558. package/docs/content/locales/zh-CN/harness-agents.md +2 -2
  1559. package/docs/content/locales/zh-CN/human-approval.md +2 -2
  1560. package/docs/content/locales/zh-CN/internationalization.md +2 -0
  1561. package/docs/content/locales/zh-CN/key-concepts.md +7 -7
  1562. package/docs/content/locales/zh-CN/local-file-mode.md +8 -8
  1563. package/docs/content/locales/zh-CN/mcp-apps.md +3 -3
  1564. package/docs/content/locales/zh-CN/mcp-clients.md +3 -3
  1565. package/docs/content/locales/zh-CN/mcp-protocol.md +2 -2
  1566. package/docs/content/locales/zh-CN/messaging.md +2 -2
  1567. package/docs/content/locales/zh-CN/migration-workbench.md +1 -1
  1568. package/docs/content/locales/zh-CN/multi-app-workspace.md +8 -8
  1569. package/docs/content/locales/zh-CN/multi-tenancy.md +2 -2
  1570. package/docs/content/locales/zh-CN/native-chat-ui.md +2 -2
  1571. package/docs/content/locales/zh-CN/notifications.md +2 -2
  1572. package/docs/content/locales/zh-CN/observability.md +3 -3
  1573. package/docs/content/locales/zh-CN/observational-memory.md +2 -2
  1574. package/docs/content/locales/zh-CN/onboarding.md +2 -2
  1575. package/docs/content/locales/zh-CN/plan-plugin.md +2 -2
  1576. package/docs/content/locales/zh-CN/pr-visual-recap.md +2 -2
  1577. package/docs/content/locales/zh-CN/processors.md +1 -1
  1578. package/docs/content/locales/zh-CN/progress.md +1 -1
  1579. package/docs/content/locales/zh-CN/pure-agent-apps.md +1 -1
  1580. package/docs/content/locales/zh-CN/real-time-collaboration.md +7 -3
  1581. package/docs/content/locales/zh-CN/recurring-jobs.md +1 -1
  1582. package/docs/content/locales/zh-CN/routing.md +1 -1
  1583. package/docs/content/locales/zh-CN/sandbox-adapters.md +6 -6
  1584. package/docs/content/locales/zh-CN/security.md +2 -2
  1585. package/docs/content/locales/zh-CN/server.md +22 -10
  1586. package/docs/content/locales/zh-CN/sharing.md +1 -1
  1587. package/docs/content/locales/zh-CN/skills-guide.md +3 -3
  1588. package/docs/content/locales/zh-CN/template-analytics.md +1 -1
  1589. package/docs/content/locales/zh-CN/template-assets.md +2 -2
  1590. package/docs/content/locales/zh-CN/template-brain.md +1 -1
  1591. package/docs/content/locales/zh-CN/template-calendar.md +2 -2
  1592. package/docs/content/locales/zh-CN/template-chat.md +7 -7
  1593. package/docs/content/locales/zh-CN/template-clips.md +3 -3
  1594. package/docs/content/locales/zh-CN/template-content.md +2 -2
  1595. package/docs/content/locales/zh-CN/template-design.md +2 -2
  1596. package/docs/content/locales/zh-CN/template-dispatch.md +1 -1
  1597. package/docs/content/locales/zh-CN/template-forms.md +2 -2
  1598. package/docs/content/locales/zh-CN/template-mail.md +2 -2
  1599. package/docs/content/locales/zh-CN/template-plan.md +2 -2
  1600. package/docs/content/locales/zh-CN/template-slides.md +3 -3
  1601. package/docs/content/locales/zh-CN/template-videos.md +1 -1
  1602. package/docs/content/locales/zh-CN/tracking.md +1 -1
  1603. package/docs/content/locales/zh-CN/using-your-agent.md +1 -1
  1604. package/docs/content/locales/zh-CN/voice-input.md +1 -1
  1605. package/docs/content/locales/zh-CN/what-is-agent-native.md +5 -5
  1606. package/docs/content/locales/zh-CN/workspace-connections.md +2 -2
  1607. package/docs/content/locales/zh-CN/workspace-management.md +6 -6
  1608. package/docs/content/locales/zh-CN/workspace.md +4 -4
  1609. package/docs/content/locales/zh-CN/writing-agent-instructions.md +1 -1
  1610. package/docs/content/real-time-collaboration.md +5 -1
  1611. package/package.json +1 -1
  1612. package/src/templates/default/app/i18n/ar-SA.ts +155 -0
  1613. package/src/templates/default/app/i18n/de-DE.ts +155 -0
  1614. package/src/templates/default/app/i18n/en-US.ts +155 -0
  1615. package/src/templates/default/app/i18n/es-ES.ts +155 -0
  1616. package/src/templates/default/app/i18n/fr-FR.ts +155 -0
  1617. package/src/templates/default/app/i18n/hi-IN.ts +155 -0
  1618. package/src/templates/default/app/i18n/ja-JP.ts +155 -0
  1619. package/src/templates/default/app/i18n/ko-KR.ts +155 -0
  1620. package/src/templates/default/app/i18n/pt-BR.ts +155 -0
  1621. package/src/templates/default/app/i18n/zh-CN.ts +155 -0
  1622. package/src/templates/default/vite.config.ts +10 -5
@@ -25,6 +25,7 @@ export interface AgentNativeI18nProviderProps {
25
25
  }
26
26
  interface LocaleContextValue {
27
27
  locale: LocaleCode;
28
+ sourceLocale: LocaleCode;
28
29
  preference: LocalePreference;
29
30
  dir: "ltr" | "rtl";
30
31
  metadata: LocaleM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,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC7B,2CAiGA"}
@@ -6,6 +6,7 @@ import { createContext, useCallback, useContext, useEffect, useMemo, useRef, use
6
6
  import { I18nextProvider, initReactI18next, useTranslation, } from "react-i18next";
7
7
  import { callAction } from "./use-action.js";
8
8
  import { setClientAppState } from "./application-state.js";
9
+ import defaultEnglishMessages from "../templates/default/app/i18n/en-US.js";
9
10
  import { DEFAULT_LOCALE, LOCALE_HYDRATION_GLOBAL, LOCALE_METADATA, LOCALE_STORAGE_KEY, SUPPORTED_LOCALES, localeDirection, normalizeLocalizationPreference, resolveLocaleFromCandidates, resolveLocaleFromPreference, } from "../localization/shared.js";
10
11
  export { DEFAULT_LOCALE, LOCALE_HYDRATION_GLOBAL, LOCALE_METADATA, LOCALE_STORAGE_KEY, SUPPORTED_LOCALES, localeDirection, normalizeLocaleCode, normalizeLocalePreference, normalizeLocalizationPreference, resolveLocaleFromCandidates, resolveLocaleFromPreference, } from "../localization/shared.js";
11
12
  export { getLocaleInitScript } from "../localization/server.js";
@@ -287,12 +288,13 @@ export function AgentNativeI18nProvider({ children, catalog, initialLocale, init
287
288
  }, [persistPreference]);
288
289
  const context = useMemo(() => ({
289
290
  locale,
291
+ sourceLocale,
290
292
  preference,
291
293
  dir: localeDirection(locale),
292
294
  metadata: LOCALE_METADATA[locale],
293
295
  setPreference,
294
296
  loading,
295
- }), [loading, locale, preference, setPreference]);
297
+ }), [loading, locale, preference, setPreference, sourceLocale]);
296
298
  return (_jsx(LocaleContext.Provider, { value: context, children: _jsx(I18nextProvider, { i18n: i18n, children: children }) }));
297
299
  }
298
300
  export function useLocale() {
@@ -350,7 +352,49 @@ const CORE_FALLBACK_MESSAGES = {
350
352
  "codeRequired.setupRequired": "Setup required",
351
353
  "codeRequired.branchCreated": "Branch created",
352
354
  "codeRequired.close": "Close",
355
+ "agentPanel.useBuilder": "Use Builder",
356
+ "agentPanel.openDesktopToEditCode": "Open Desktop to edit code",
357
+ "agentPanel.codeUnavailableDescription": "Source-code changes and CLI access are available in the Agent Native Desktop app.",
358
+ "agentPanel.downloadDesktop": "Download Desktop",
359
+ "agentPanel.chatMode": "Chat mode",
360
+ "agentPanel.chat": "Chat",
361
+ "agentPanel.cliTerminalMode": "CLI terminal mode",
362
+ "agentPanel.cli": "CLI",
363
+ "agentPanel.workspaceMode": "Workspace files, agents, skills, and tasks",
364
+ "agentPanel.workspace": "Workspace",
365
+ "agentPanel.newChat": "New chat",
366
+ "agentPanel.newTerminal": "New terminal",
367
+ "agentPanel.panelOptions": "Agent panel options",
368
+ "agentPanel.collapseSidebar": "Collapse sidebar",
369
+ "agentPanel.hideChats": "Hide chats",
370
+ "agentPanel.allChats": "All chats",
371
+ "agentPanel.settings": "Settings",
372
+ "agentPanel.feedback": "Feedback",
373
+ "agentPanel.exitFullscreen": "Exit fullscreen",
374
+ "agentPanel.fullscreen": "Fullscreen",
375
+ "agentPanel.closeTab": "Close tab",
376
+ "agentPanel.closeOtherTabs": "Close other tabs",
377
+ "agentPanel.closeAllTabs": "Close all tabs",
378
+ "agentPanel.clearChat": "Clear chat",
379
+ "agentPanel.cliRequiresDevMode": "CLI requires dev mode",
380
+ "agentPanel.cliRequiresDevModeDescription": "Run this app locally with pnpm dev or use Builder.io to access the CLI terminal.",
381
+ "agentPanel.toggleAgent": "Toggle agent",
353
382
  };
383
+ function flattenMessages(value, prefix = "", out = {}) {
384
+ if (!value || typeof value !== "object" || Array.isArray(value))
385
+ return out;
386
+ for (const [key, child] of Object.entries(value)) {
387
+ const nextKey = prefix ? `${prefix}.${key}` : key;
388
+ if (typeof child === "string") {
389
+ out[nextKey] = child;
390
+ }
391
+ else {
392
+ flattenMessages(child, nextKey, out);
393
+ }
394
+ }
395
+ return out;
396
+ }
397
+ const DEFAULT_ENGLISH_MESSAGES = flattenMessages(defaultEnglishMessages);
354
398
  function interpolateFallbackMessage(template, options) {
355
399
  return template.replace(/\{\{(\w+)\}\}/g, (_, name) => {
356
400
  const value = options?.[name];
@@ -360,15 +404,26 @@ function interpolateFallbackMessage(template, options) {
360
404
  function fallbackMessage(key, options) {
361
405
  const count = Number(options?.count);
362
406
  const pluralKey = Number.isFinite(count) && count === 1 ? `${key}_one` : `${key}_other`;
363
- const template = CORE_FALLBACK_MESSAGES[pluralKey] ?? CORE_FALLBACK_MESSAGES[key];
407
+ const template = DEFAULT_ENGLISH_MESSAGES[pluralKey] ??
408
+ DEFAULT_ENGLISH_MESSAGES[key] ??
409
+ CORE_FALLBACK_MESSAGES[pluralKey] ??
410
+ CORE_FALLBACK_MESSAGES[key];
364
411
  return template ? interpolateFallbackMessage(template, options) : key;
365
412
  }
366
413
  export function useT() {
367
- const { t } = useTranslation();
414
+ const { i18n, t } = useTranslation();
415
+ const context = useContext(LocaleContext);
416
+ const sourceLocale = context?.sourceLocale ?? DEFAULT_LOCALE;
368
417
  return useCallback((key, options) => {
369
418
  const translated = t(key, options);
370
- return translated === key ? fallbackMessage(key, options) : translated;
371
- }, [t]);
419
+ if (translated !== key)
420
+ return translated;
421
+ const getFixedT = i18n.getFixedT;
422
+ const sourceFallback = getFixedT?.(sourceLocale)(key, options);
423
+ if (sourceFallback && sourceFallback !== key)
424
+ return sourceFallback;
425
+ return fallbackMessage(key, options);
426
+ }, [i18n, sourceLocale, t]);
372
427
  }
373
428
  export function useFormatters() {
374
429
  const context = useContext(LocaleContext);
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/client/i18n.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,OAAsC,MAAM,SAAS,CAAC;AAC7D,OAAc,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAA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,KAAC,eAAe,IAAC,SAAS,EAAC,mCAAmC,GAAG,GAC5C,CACxB,CAAC,CAAC,CAAC,IAAI,IACgB,EAC1B,KAAC,eAAe,CAAC,MAAM,cACrB,KAAC,eAAe,CAAC,OAAO,IACtB,QAAQ,EAAC,QAAQ,EACjB,UAAU,EAAE,CAAC,EACb,SAAS,EACP,OAAO,KAAK,MAAM;4BAChB,CAAC,CAAC,wFAAwF;4BAC1F,CAAC,CAAC,qHAAqH,YAG3H,KAAC,eAAe,CAAC,QAAQ,IAAC,SAAS,EAAC,KAAK,YACtC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,MAAC,eAAe,CAAC,IAAI,IAEnB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,SAAS,EAAC,qLAAqL,aAE/L,eAAM,SAAS,EAAC,yFAAyF,YACvG,KAAC,eAAe,CAAC,aAAa,cAC5B,KAAC,SAAS,IAAC,SAAS,EAAC,aAAa,GAAG,GACP,GAC3B,EACP,eAAK,SAAS,EAAC,uBAAuB,aACpC,KAAC,eAAe,CAAC,QAAQ,cACvB,eAAM,SAAS,EAAC,iBAAiB,YAAE,MAAM,CAAC,KAAK,GAAQ,GAC9B,EAC3B,eAAM,SAAS,EAAC,0DAA0D,YACvE,MAAM,CAAC,WAAW,GACd,IACH,KAhBD,MAAM,CAAC,KAAK,CAiBI,CACxB,CAAC,GACuB,GACH,GACH,IACJ,GACnB,CACP,CAAC;AACJ,CAAC","sourcesContent":["import * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { IconCheck, IconChevronDown, IconLanguage } from \"@tabler/icons-react\";\nimport i18next, { type i18n as I18nInstance } from \"i18next\";\nimport React, {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport {\n I18nextProvider,\n initReactI18next,\n useTranslation,\n} from \"react-i18next\";\nimport { callAction } from \"./use-action.js\";\nimport { setClientAppState } from \"./application-state.js\";\nimport {\n DEFAULT_LOCALE,\n LOCALE_HYDRATION_GLOBAL,\n LOCALE_METADATA,\n LOCALE_STORAGE_KEY,\n SUPPORTED_LOCALES,\n localeDirection,\n normalizeLocalizationPreference,\n resolveLocaleFromCandidates,\n resolveLocaleFromPreference,\n type LocaleCode,\n type LocaleMetadata,\n type LocalePreference,\n type LocalizationPreference,\n} from \"../localization/shared.js\";\n\nexport {\n DEFAULT_LOCALE,\n LOCALE_HYDRATION_GLOBAL,\n LOCALE_METADATA,\n LOCALE_STORAGE_KEY,\n SUPPORTED_LOCALES,\n localeDirection,\n normalizeLocaleCode,\n normalizeLocalePreference,\n normalizeLocalizationPreference,\n resolveLocaleFromCandidates,\n resolveLocaleFromPreference,\n type LocaleCode,\n type LocaleMetadata,\n type LocalePreference,\n type LocalizationPreference,\n} from \"../localization/shared.js\";\nexport { getLocaleInitScript } from \"../localization/server.js\";\n\nexport type LocaleMessages = Record<string, unknown>;\n\nexport interface LocaleHydrationPayload {\n locale?: LocaleCode;\n preference?: LocalizationPreference;\n dir?: \"ltr\" | \"rtl\";\n messages?: LocaleMessages;\n}\n\nexport interface AgentNativeI18nCatalog {\n namespace?: string;\n sourceLocale?: LocaleCode;\n messages?: LocaleMessages;\n loadMessages?: (locale: LocaleCode) => Promise<LocaleMessages | null>;\n}\n\nexport interface AgentNativeI18nProviderProps {\n children: React.ReactNode;\n catalog?: AgentNativeI18nCatalog;\n initialLocale?: LocaleCode;\n initialPreference?: LocalizationPreference | LocalePreference;\n initialMessages?: LocaleMessages | null;\n persistPreference?: boolean;\n}\n\ninterface LocaleContextValue {\n locale: LocaleCode;\n preference: LocalePreference;\n dir: \"ltr\" | \"rtl\";\n metadata: LocaleMetadata;\n setPreference: (preference: LocalePreference) => Promise<void>;\n loading: boolean;\n}\n\ndeclare global {\n interface Window {\n __AGENT_NATIVE_LOCALE__?: LocaleHydrationPayload;\n }\n}\n\nconst LocaleContext = createContext<LocaleContextValue | null>(null);\n\nconst LANGUAGE_PICKER_COPY: Record<\n LocaleCode,\n { label: string; system: string; systemDescription: string }\n> = {\n \"en-US\": {\n label: \"Language\",\n system: \"System\",\n systemDescription: \"Use your browser language\",\n },\n \"zh-CN\": {\n label: \"语言\",\n system: \"系统\",\n systemDescription: \"使用浏览器语言\",\n },\n \"es-ES\": {\n label: \"Idioma\",\n system: \"Sistema\",\n systemDescription: \"Usar el idioma del navegador\",\n },\n \"fr-FR\": {\n label: \"Langue\",\n system: \"Système\",\n systemDescription: \"Utiliser la langue du navigateur\",\n },\n \"de-DE\": {\n label: \"Sprache\",\n system: \"System\",\n systemDescription: \"Browsersprache verwenden\",\n },\n \"ja-JP\": {\n label: \"言語\",\n system: \"システム\",\n systemDescription: \"ブラウザーの言語を使用\",\n },\n \"ko-KR\": {\n label: \"언어\",\n system: \"시스템\",\n systemDescription: \"브라우저 언어 사용\",\n },\n \"pt-BR\": {\n label: \"Idioma\",\n system: \"Sistema\",\n systemDescription: \"Usar o idioma do navegador\",\n },\n \"hi-IN\": {\n label: \"भाषा\",\n system: \"सिस्टम\",\n systemDescription: \"ब्राउज़र की भाषा का उपयोग करें\",\n },\n \"ar-SA\": {\n label: \"اللغة\",\n system: \"النظام\",\n systemDescription: \"استخدام لغة المتصفح\",\n },\n};\n\nfunction browserLanguageCandidates(): string[] {\n if (typeof navigator === \"undefined\") return [];\n return navigator.languages?.length\n ? [...navigator.languages]\n : navigator.language\n ? [navigator.language]\n : [];\n}\n\nfunction readStoredPreference(): LocalePreference | null {\n if (typeof window === \"undefined\") return null;\n try {\n return normalizeLocalizationPreference(\n window.localStorage.getItem(LOCALE_STORAGE_KEY),\n ).locale;\n } catch {\n return null;\n }\n}\n\nfunction writeStoredPreference(preference: LocalePreference) {\n if (typeof window === \"undefined\") return;\n try {\n window.localStorage.setItem(LOCALE_STORAGE_KEY, preference);\n } catch {\n // Ignore storage-denied browsers; the in-memory provider state still works.\n }\n}\n\nfunction readHydrationPayload(): LocaleHydrationPayload {\n if (typeof window === \"undefined\") return {};\n return window[LOCALE_HYDRATION_GLOBAL] ?? {};\n}\n\nfunction resolveInitialState(args: {\n initialLocale?: LocaleCode;\n initialPreference?: LocalizationPreference | LocalePreference;\n}): { locale: LocaleCode; preference: LocalePreference } {\n const hydration = readHydrationPayload();\n const preference = normalizeLocalizationPreference(\n args.initialPreference ?? hydration.preference ?? readStoredPreference(),\n ).locale;\n const locale =\n args.initialLocale ??\n hydration.locale ??\n resolveLocaleFromPreference(preference, browserLanguageCandidates());\n return { locale, preference };\n}\n\nfunction normalizeLoadedMessages(value: unknown): LocaleMessages | null {\n if (!value || typeof value !== \"object\" || Array.isArray(value)) return null;\n const maybeDefault = (value as { default?: unknown }).default;\n if (\n maybeDefault &&\n typeof maybeDefault === \"object\" &&\n !Array.isArray(maybeDefault)\n ) {\n return maybeDefault as LocaleMessages;\n }\n return value as LocaleMessages;\n}\n\nfunction createI18nInstance(args: {\n namespace: string;\n sourceLocale: LocaleCode;\n messages: LocaleMessages;\n initialLocale: LocaleCode;\n initialMessages?: LocaleMessages | null;\n}): I18nInstance {\n const instance = i18next.createInstance();\n const resources: Record<string, Record<string, LocaleMessages>> = {\n [args.sourceLocale]: {\n [args.namespace]: args.messages,\n },\n };\n if (args.initialLocale !== args.sourceLocale && args.initialMessages) {\n resources[args.initialLocale] = {\n [args.namespace]: args.initialMessages,\n };\n }\n void instance.use(initReactI18next).init({\n resources,\n lng: args.initialLocale,\n fallbackLng: args.sourceLocale,\n defaultNS: args.namespace,\n ns: [args.namespace],\n interpolation: { escapeValue: false },\n react: { useSuspense: false },\n returnNull: false,\n initAsync: false,\n });\n return instance;\n}\n\nexport function AgentNativeI18nProvider({\n children,\n catalog,\n initialLocale,\n initialPreference,\n initialMessages,\n persistPreference = true,\n}: AgentNativeI18nProviderProps) {\n const namespace = catalog?.namespace ?? \"translation\";\n const sourceLocale = catalog?.sourceLocale ?? DEFAULT_LOCALE;\n const sourceMessages = catalog?.messages ?? {};\n const loadMessages = catalog?.loadMessages;\n const hydration = readHydrationPayload();\n const initialState = useMemo(\n () => resolveInitialState({ initialLocale, initialPreference }),\n [initialLocale, initialPreference],\n );\n const [preference, setPreferenceState] = useState<LocalePreference>(\n initialState.preference,\n );\n const [locale, setLocale] = useState<LocaleCode>(initialState.locale);\n const [loading, setLoading] = useState(false);\n const i18nRef = useRef<I18nInstance | null>(null);\n\n if (!i18nRef.current) {\n const preloadedMessages = normalizeLoadedMessages(\n hydration.locale === initialState.locale && hydration.messages\n ? hydration.messages\n : initialMessages,\n );\n i18nRef.current = createI18nInstance({\n namespace,\n sourceLocale,\n messages:\n hydration.locale === sourceLocale && hydration.messages\n ? hydration.messages\n : sourceMessages,\n initialLocale: initialState.locale,\n initialMessages: preloadedMessages,\n });\n }\n\n const i18n = i18nRef.current;\n\n useEffect(() => {\n if (i18n.hasResourceBundle(sourceLocale, namespace)) {\n i18n.addResourceBundle(\n sourceLocale,\n namespace,\n sourceMessages,\n true,\n true,\n );\n }\n }, [i18n, namespace, sourceLocale, sourceMessages]);\n\n useEffect(() => {\n const nextLocale =\n preference === \"system\"\n ? resolveLocaleFromCandidates(browserLanguageCandidates())\n : preference;\n setLocale(nextLocale);\n }, [preference]);\n\n useEffect(() => {\n let cancelled = false;\n\n async function applyLocale() {\n setLoading(true);\n try {\n if (\n locale !== sourceLocale &&\n !i18n.hasResourceBundle(locale, namespace)\n ) {\n const preloaded =\n hydration.locale === locale && hydration.messages\n ? hydration.messages\n : initialLocale === locale && initialMessages\n ? initialMessages\n : null;\n const loaded = preloaded ?? (await loadMessages?.(locale));\n const messages = normalizeLoadedMessages(loaded);\n if (messages) {\n i18n.addResourceBundle(locale, namespace, messages, true, true);\n }\n }\n if (!cancelled) {\n await i18n.changeLanguage(locale);\n }\n } finally {\n if (!cancelled) setLoading(false);\n }\n }\n\n void applyLocale();\n return () => {\n cancelled = true;\n };\n }, [\n hydration.locale,\n hydration.messages,\n i18n,\n initialLocale,\n initialMessages,\n loadMessages,\n locale,\n namespace,\n sourceLocale,\n ]);\n\n useEffect(() => {\n if (typeof document === \"undefined\") return;\n const dir = localeDirection(locale);\n const root = document.documentElement;\n root.setAttribute(\"lang\", locale);\n root.setAttribute(\"dir\", dir);\n root.setAttribute(\"data-locale\", locale);\n }, [locale]);\n\n useEffect(() => {\n if (!persistPreference) return;\n let cancelled = false;\n callAction<LocalizationPreference>(\n \"get-localization-preference\",\n undefined,\n { method: \"GET\" },\n )\n .then((value) => {\n if (cancelled) return;\n const normalized = normalizeLocalizationPreference(value).locale;\n setPreferenceState(normalized);\n writeStoredPreference(normalized);\n })\n .catch(() => {\n // Anonymous/public routes use localStorage/browser language only.\n });\n return () => {\n cancelled = true;\n };\n }, [persistPreference]);\n\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n const onStorage = (event: StorageEvent) => {\n if (event.key !== LOCALE_STORAGE_KEY || event.newValue == null) return;\n setPreferenceState(\n normalizeLocalizationPreference(event.newValue).locale,\n );\n };\n window.addEventListener(\"storage\", onStorage);\n return () => window.removeEventListener(\"storage\", onStorage);\n }, []);\n\n useEffect(() => {\n void setClientAppState(\n \"localization\",\n {\n locale,\n preference,\n dir: localeDirection(locale),\n },\n { requestSource: \"localization\" },\n ).catch(() => {\n // Public/anonymous pages cannot write app-state; localization still works.\n });\n }, [locale, preference]);\n\n const setPreference = useCallback(\n async (next: LocalePreference) => {\n const normalized = normalizeLocalizationPreference(next).locale;\n setPreferenceState(normalized);\n writeStoredPreference(normalized);\n if (!persistPreference) return;\n try {\n await callAction<LocalizationPreference>(\n \"set-localization-preference\",\n {\n locale: normalized,\n },\n );\n } catch (error) {\n const status = (error as { status?: unknown })?.status;\n if (status !== 401 && status !== 403) {\n throw error;\n }\n }\n },\n [persistPreference],\n );\n\n const context = useMemo<LocaleContextValue>(\n () => ({\n locale,\n preference,\n dir: localeDirection(locale),\n metadata: LOCALE_METADATA[locale],\n setPreference,\n loading,\n }),\n [loading, locale, preference, setPreference],\n );\n\n return (\n <LocaleContext.Provider value={context}>\n <I18nextProvider i18n={i18n}>{children}</I18nextProvider>\n </LocaleContext.Provider>\n );\n}\n\nexport function useLocale(): LocaleContextValue {\n const value = useContext(LocaleContext);\n if (!value) {\n throw new Error(\"useLocale must be used within AgentNativeI18nProvider\");\n }\n return value;\n}\n\nconst CORE_FALLBACK_MESSAGES: Record<string, string> = {\n \"runsTray.runs\": \"Runs\",\n \"runsTray.agentRuns\": \"Agent runs\",\n \"runsTray.activeRun_one\": \"{{count}} active run\",\n \"runsTray.activeRun_other\": \"{{count}} active runs\",\n \"runsTray.failedRun_one\": \"{{count}} failed run\",\n \"runsTray.failedRun_other\": \"{{count}} failed runs\",\n \"runsTray.recentRuns\": \"Recent runs\",\n \"runsTray.noRecentRuns\": \"No recent runs\",\n \"runsTray.ariaAgentRuns\": \"Agent runs, {{label}}\",\n \"runsTray.summaryRunning\": \"{{activeCount}} running\",\n \"runsTray.summaryRunningRecent\":\n \"{{activeCount}} running · {{terminalCount}} recent\",\n \"runsTray.summaryRecent_one\": \"{{count}} recent run\",\n \"runsTray.summaryRecent_other\": \"{{count}} recent runs\",\n \"runsTray.noTrackedWorkYet\": \"No tracked work yet\",\n \"runsTray.emptyDescription\":\n \"Background agent work will appear here while it runs and after it finishes.\",\n \"runsTray.open\": \"Open\",\n \"runsTray.stopRun\": \"Stop {{title}}\",\n \"runsTray.hideRun\": \"Hide {{title}}\",\n \"runsTray.statusRunning\": \"Running\",\n \"runsTray.statusDone\": \"Done\",\n \"runsTray.statusFailed\": \"Failed\",\n \"runsTray.statusStopped\": \"Stopped\",\n \"runsTray.updatedJustNow\": \"Updated just now\",\n \"runsTray.finishedJustNow\": \"Finished just now\",\n \"runsTray.updatedMinutes\": \"Updated {{count}}m ago\",\n \"runsTray.finishedMinutes\": \"Finished {{count}}m ago\",\n \"runsTray.updatedHours\": \"Updated {{count}}h ago\",\n \"runsTray.finishedHours\": \"Finished {{count}}h ago\",\n \"runsTray.updatedDate\": \"Updated {{date}}\",\n \"runsTray.finishedDate\": \"Finished {{date}}\",\n \"codeRequired.fallbackDetail\":\n \"Edit locally or use Builder.io to edit this code in the cloud and continue customizing the app any way you like.\",\n \"codeRequired.defaultFeature\": \"Make the requested code changes to this app\",\n \"codeRequired.branchError\": \"Failed to create branch\",\n \"codeRequired.title\": \"Code changes required\",\n \"codeRequired.subtitleWithFeature\":\n '\"{{feature}}\" creates or modifies source code, which needs Desktop or Builder from this surface.',\n \"codeRequired.subtitle\":\n \"This action creates or modifies source code, which needs Desktop or Builder from this surface.\",\n \"codeRequired.desktopTitle\": \"Use Agent Native Desktop\",\n \"codeRequired.desktopDescription\":\n \"Open the project in the desktop app to enable source edits and CLI access.\",\n \"codeRequired.builderAgentTitle\": \"Use Builder.io Agent\",\n \"codeRequired.builderAgentDescription\":\n \"Let our cloud agent make the changes for you. You'll get a link to preview and deploy.\",\n \"codeRequired.codeChangeTitle\": \"This requires a code change\",\n \"codeRequired.codeChangeBadge\": \"Code change\",\n \"codeRequired.connectBuilderTitle\": \"Connect Builder.io\",\n \"codeRequired.connectBuilderDescription\":\n \"Connect Builder to enable cloud-based code changes from this app.\",\n \"codeRequired.setupRequired\": \"Setup required\",\n \"codeRequired.branchCreated\": \"Branch created\",\n \"codeRequired.close\": \"Close\",\n};\n\nfunction interpolateFallbackMessage(\n template: string,\n options?: Record<string, unknown>,\n) {\n return template.replace(/\\{\\{(\\w+)\\}\\}/g, (_, name: string) => {\n const value = options?.[name];\n return value == null ? \"\" : String(value);\n });\n}\n\nfunction fallbackMessage(key: string, options?: Record<string, unknown>) {\n const count = Number(options?.count);\n const pluralKey =\n Number.isFinite(count) && count === 1 ? `${key}_one` : `${key}_other`;\n const template =\n CORE_FALLBACK_MESSAGES[pluralKey] ?? CORE_FALLBACK_MESSAGES[key];\n return template ? interpolateFallbackMessage(template, options) : key;\n}\n\nexport function useT() {\n const { t } = useTranslation();\n return useCallback(\n (key: string, options?: Record<string, unknown>) => {\n const translated = t(key, options);\n return translated === key ? fallbackMessage(key, options) : translated;\n },\n [t],\n );\n}\n\nexport function useFormatters() {\n const context = useContext(LocaleContext);\n const locale = context?.locale ?? DEFAULT_LOCALE;\n return useMemo(\n () => ({\n formatDate(\n value: Date | number | string,\n options?: Intl.DateTimeFormatOptions,\n ) {\n return new Intl.DateTimeFormat(locale, options).format(\n value instanceof Date ? value : new Date(value),\n );\n },\n formatNumber(value: number, options?: Intl.NumberFormatOptions) {\n return new Intl.NumberFormat(locale, options).format(value);\n },\n formatRelativeTime(\n value: number,\n unit: Intl.RelativeTimeFormatUnit,\n options?: Intl.RelativeTimeFormatOptions,\n ) {\n return new Intl.RelativeTimeFormat(locale, options).format(value, unit);\n },\n formatList(value: string[], options?: Intl.ListFormatOptions) {\n return new Intl.ListFormat(locale, options).format(value);\n },\n }),\n [locale],\n );\n}\n\nexport function LanguagePicker({\n className,\n includeSystem = true,\n label,\n variant = \"select\",\n}: {\n className?: string;\n includeSystem?: boolean;\n label?: string;\n variant?: \"select\" | \"icon\";\n}) {\n const { locale, preference, setPreference } = useLocale();\n const copy =\n LANGUAGE_PICKER_COPY[locale] ?? LANGUAGE_PICKER_COPY[DEFAULT_LOCALE];\n const resolvedLabel = label ?? copy.label;\n const options = [\n ...(includeSystem\n ? [\n {\n value: \"system\" as const,\n label: copy.system,\n description: copy.systemDescription,\n },\n ]\n : []),\n ...SUPPORTED_LOCALES.map((code) => ({\n value: code,\n label:\n LOCALE_METADATA[code].nativeName === LOCALE_METADATA[code].englishName\n ? LOCALE_METADATA[code].nativeName\n : `${LOCALE_METADATA[code].nativeName} (${LOCALE_METADATA[code].englishName})`,\n description: code,\n })),\n ];\n const selected = options.find((option) => option.value === preference);\n\n return (\n <div className={className}>\n <SelectPrimitive.Root\n value={preference}\n onValueChange={(value) =>\n void setPreference(normalizeLocalizationPreference(value).locale)\n }\n >\n <SelectPrimitive.Trigger\n className={\n variant === \"icon\"\n ? \"flex h-8 w-8 items-center justify-center rounded-md border border-border bg-background text-foreground outline-none transition-colors hover:bg-accent/40 data-[placeholder]:text-muted-foreground\"\n : \"flex h-9 w-full items-center justify-between rounded-md border border-border bg-background px-3 text-start text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 data-[placeholder]:text-muted-foreground\"\n }\n aria-label={resolvedLabel}\n title={selected?.label ?? resolvedLabel}\n >\n <span className=\"flex min-w-0 items-center gap-2\">\n <IconLanguage className=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n {variant === \"select\" ? (\n <SelectPrimitive.Value>\n <span className=\"truncate\">\n {selected?.label ?? preference}\n </span>\n </SelectPrimitive.Value>\n ) : null}\n </span>\n {variant === \"select\" ? (\n <SelectPrimitive.Icon asChild>\n <IconChevronDown className=\"h-3.5 w-3.5 text-muted-foreground\" />\n </SelectPrimitive.Icon>\n ) : null}\n </SelectPrimitive.Trigger>\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n position=\"popper\"\n sideOffset={6}\n className={\n variant === \"icon\"\n ? \"z-[9999] min-w-56 overflow-hidden rounded-lg border border-border bg-popover shadow-lg\"\n : \"z-[9999] w-[var(--radix-select-trigger-width)] overflow-hidden rounded-lg border border-border bg-popover shadow-lg\"\n }\n >\n <SelectPrimitive.Viewport className=\"p-1\">\n {options.map((option) => (\n <SelectPrimitive.Item\n key={option.value}\n value={option.value}\n className=\"relative flex w-full cursor-pointer select-none items-start gap-2 rounded-md px-8 py-2.5 text-[12px] outline-none data-[highlighted]:bg-accent/60 data-[state=checked]:bg-accent/40\"\n >\n <span className=\"absolute start-2 top-2.5 flex h-4 w-4 items-center justify-center text-muted-foreground\">\n <SelectPrimitive.ItemIndicator>\n <IconCheck className=\"h-3.5 w-3.5\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <div className=\"flex min-w-0 flex-col\">\n <SelectPrimitive.ItemText>\n <span className=\"text-foreground\">{option.label}</span>\n </SelectPrimitive.ItemText>\n <span className=\"mt-0.5 text-[11px] leading-relaxed text-muted-foreground\">\n {option.description}\n </span>\n </div>\n </SelectPrimitive.Item>\n ))}\n </SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n </SelectPrimitive.Root>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/client/i18n.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,OAAsC,MAAM,SAAS,CAAC;AAC7D,OAAc,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,cAAc,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,sBAAsB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,GAK5B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,GAK5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AA2ChE,MAAM,aAAa,GAAG,aAAa,CAA4B,IAAI,CAAC,CAAC;AAErE,MAAM,oBAAoB,GAGtB;IACF,OAAO,EAAE;QACP,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE,QAAQ;QAChB,iBAAiB,EAAE,2BAA2B;KAC/C;IACD,OAAO,EAAE;QACP,K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C,eAAe,CAAC,OAAO,IACtB,QAAQ,EAAC,QAAQ,EACjB,UAAU,EAAE,CAAC,EACb,SAAS,EACP,OAAO,KAAK,MAAM;4BAChB,CAAC,CAAC,wFAAwF;4BAC1F,CAAC,CAAC,qHAAqH,YAG3H,KAAC,eAAe,CAAC,QAAQ,IAAC,SAAS,EAAC,KAAK,YACtC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,MAAC,eAAe,CAAC,IAAI,IAEnB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,SAAS,EAAC,qLAAqL,aAE/L,eAAM,SAAS,EAAC,yFAAyF,YACvG,KAAC,eAAe,CAAC,aAAa,cAC5B,KAAC,SAAS,IAAC,SAAS,EAAC,aAAa,GAAG,GACP,GAC3B,EACP,eAAK,SAAS,EAAC,uBAAuB,aACpC,KAAC,eAAe,CAAC,QAAQ,cACvB,eAAM,SAAS,EAAC,iBAAiB,YAAE,MAAM,CAAC,KAAK,GAAQ,GAC9B,EAC3B,eAAM,SAAS,EAAC,0DAA0D,YACvE,MAAM,CAAC,WAAW,GACd,IACH,KAhBD,MAAM,CAAC,KAAK,CAiBI,CACxB,CAAC,GACuB,GACH,GACH,IACJ,GACnB,CACP,CAAC;AACJ,CAAC","sourcesContent":["import * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { IconCheck, IconChevronDown, IconLanguage } from \"@tabler/icons-react\";\nimport i18next, { type i18n as I18nInstance } from \"i18next\";\nimport React, {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport {\n I18nextProvider,\n initReactI18next,\n useTranslation,\n} from \"react-i18next\";\nimport { callAction } from \"./use-action.js\";\nimport { setClientAppState } from \"./application-state.js\";\nimport defaultEnglishMessages from \"../templates/default/app/i18n/en-US.js\";\nimport {\n DEFAULT_LOCALE,\n LOCALE_HYDRATION_GLOBAL,\n LOCALE_METADATA,\n LOCALE_STORAGE_KEY,\n SUPPORTED_LOCALES,\n localeDirection,\n normalizeLocalizationPreference,\n resolveLocaleFromCandidates,\n resolveLocaleFromPreference,\n type LocaleCode,\n type LocaleMetadata,\n type LocalePreference,\n type LocalizationPreference,\n} from \"../localization/shared.js\";\n\nexport {\n DEFAULT_LOCALE,\n LOCALE_HYDRATION_GLOBAL,\n LOCALE_METADATA,\n LOCALE_STORAGE_KEY,\n SUPPORTED_LOCALES,\n localeDirection,\n normalizeLocaleCode,\n normalizeLocalePreference,\n normalizeLocalizationPreference,\n resolveLocaleFromCandidates,\n resolveLocaleFromPreference,\n type LocaleCode,\n type LocaleMetadata,\n type LocalePreference,\n type LocalizationPreference,\n} from \"../localization/shared.js\";\nexport { getLocaleInitScript } from \"../localization/server.js\";\n\nexport type LocaleMessages = Record<string, unknown>;\n\nexport interface LocaleHydrationPayload {\n locale?: LocaleCode;\n preference?: LocalizationPreference;\n dir?: \"ltr\" | \"rtl\";\n messages?: LocaleMessages;\n}\n\nexport interface AgentNativeI18nCatalog {\n namespace?: string;\n sourceLocale?: LocaleCode;\n messages?: LocaleMessages;\n loadMessages?: (locale: LocaleCode) => Promise<LocaleMessages | null>;\n}\n\nexport interface AgentNativeI18nProviderProps {\n children: React.ReactNode;\n catalog?: AgentNativeI18nCatalog;\n initialLocale?: LocaleCode;\n initialPreference?: LocalizationPreference | LocalePreference;\n initialMessages?: LocaleMessages | null;\n persistPreference?: boolean;\n}\n\ninterface LocaleContextValue {\n locale: LocaleCode;\n sourceLocale: LocaleCode;\n preference: LocalePreference;\n dir: \"ltr\" | \"rtl\";\n metadata: LocaleMetadata;\n setPreference: (preference: LocalePreference) => Promise<void>;\n loading: boolean;\n}\n\ndeclare global {\n interface Window {\n __AGENT_NATIVE_LOCALE__?: LocaleHydrationPayload;\n }\n}\n\nconst LocaleContext = createContext<LocaleContextValue | null>(null);\n\nconst LANGUAGE_PICKER_COPY: Record<\n LocaleCode,\n { label: string; system: string; systemDescription: string }\n> = {\n \"en-US\": {\n label: \"Language\",\n system: \"System\",\n systemDescription: \"Use your browser language\",\n },\n \"zh-CN\": {\n label: \"语言\",\n system: \"系统\",\n systemDescription: \"使用浏览器语言\",\n },\n \"es-ES\": {\n label: \"Idioma\",\n system: \"Sistema\",\n systemDescription: \"Usar el idioma del navegador\",\n },\n \"fr-FR\": {\n label: \"Langue\",\n system: \"Système\",\n systemDescription: \"Utiliser la langue du navigateur\",\n },\n \"de-DE\": {\n label: \"Sprache\",\n system: \"System\",\n systemDescription: \"Browsersprache verwenden\",\n },\n \"ja-JP\": {\n label: \"言語\",\n system: \"システム\",\n systemDescription: \"ブラウザーの言語を使用\",\n },\n \"ko-KR\": {\n label: \"언어\",\n system: \"시스템\",\n systemDescription: \"브라우저 언어 사용\",\n },\n \"pt-BR\": {\n label: \"Idioma\",\n system: \"Sistema\",\n systemDescription: \"Usar o idioma do navegador\",\n },\n \"hi-IN\": {\n label: \"भाषा\",\n system: \"सिस्टम\",\n systemDescription: \"ब्राउज़र की भाषा का उपयोग करें\",\n },\n \"ar-SA\": {\n label: \"اللغة\",\n system: \"النظام\",\n systemDescription: \"استخدام لغة المتصفح\",\n },\n};\n\nfunction browserLanguageCandidates(): string[] {\n if (typeof navigator === \"undefined\") return [];\n return navigator.languages?.length\n ? [...navigator.languages]\n : navigator.language\n ? [navigator.language]\n : [];\n}\n\nfunction readStoredPreference(): LocalePreference | null {\n if (typeof window === \"undefined\") return null;\n try {\n return normalizeLocalizationPreference(\n window.localStorage.getItem(LOCALE_STORAGE_KEY),\n ).locale;\n } catch {\n return null;\n }\n}\n\nfunction writeStoredPreference(preference: LocalePreference) {\n if (typeof window === \"undefined\") return;\n try {\n window.localStorage.setItem(LOCALE_STORAGE_KEY, preference);\n } catch {\n // Ignore storage-denied browsers; the in-memory provider state still works.\n }\n}\n\nfunction readHydrationPayload(): LocaleHydrationPayload {\n if (typeof window === \"undefined\") return {};\n return window[LOCALE_HYDRATION_GLOBAL] ?? {};\n}\n\nfunction resolveInitialState(args: {\n initialLocale?: LocaleCode;\n initialPreference?: LocalizationPreference | LocalePreference;\n}): { locale: LocaleCode; preference: LocalePreference } {\n const hydration = readHydrationPayload();\n const preference = normalizeLocalizationPreference(\n args.initialPreference ?? hydration.preference ?? readStoredPreference(),\n ).locale;\n const locale =\n args.initialLocale ??\n hydration.locale ??\n resolveLocaleFromPreference(preference, browserLanguageCandidates());\n return { locale, preference };\n}\n\nfunction normalizeLoadedMessages(value: unknown): LocaleMessages | null {\n if (!value || typeof value !== \"object\" || Array.isArray(value)) return null;\n const maybeDefault = (value as { default?: unknown }).default;\n if (\n maybeDefault &&\n typeof maybeDefault === \"object\" &&\n !Array.isArray(maybeDefault)\n ) {\n return maybeDefault as LocaleMessages;\n }\n return value as LocaleMessages;\n}\n\nfunction createI18nInstance(args: {\n namespace: string;\n sourceLocale: LocaleCode;\n messages: LocaleMessages;\n initialLocale: LocaleCode;\n initialMessages?: LocaleMessages | null;\n}): I18nInstance {\n const instance = i18next.createInstance();\n const resources: Record<string, Record<string, LocaleMessages>> = {\n [args.sourceLocale]: {\n [args.namespace]: args.messages,\n },\n };\n if (args.initialLocale !== args.sourceLocale && args.initialMessages) {\n resources[args.initialLocale] = {\n [args.namespace]: args.initialMessages,\n };\n }\n void instance.use(initReactI18next).init({\n resources,\n lng: args.initialLocale,\n fallbackLng: args.sourceLocale,\n defaultNS: args.namespace,\n ns: [args.namespace],\n interpolation: { escapeValue: false },\n react: { useSuspense: false },\n returnNull: false,\n initAsync: false,\n });\n return instance;\n}\n\nexport function AgentNativeI18nProvider({\n children,\n catalog,\n initialLocale,\n initialPreference,\n initialMessages,\n persistPreference = true,\n}: AgentNativeI18nProviderProps) {\n const namespace = catalog?.namespace ?? \"translation\";\n const sourceLocale = catalog?.sourceLocale ?? DEFAULT_LOCALE;\n const sourceMessages = catalog?.messages ?? {};\n const loadMessages = catalog?.loadMessages;\n const hydration = readHydrationPayload();\n const initialState = useMemo(\n () => resolveInitialState({ initialLocale, initialPreference }),\n [initialLocale, initialPreference],\n );\n const [preference, setPreferenceState] = useState<LocalePreference>(\n initialState.preference,\n );\n const [locale, setLocale] = useState<LocaleCode>(initialState.locale);\n const [loading, setLoading] = useState(false);\n const i18nRef = useRef<I18nInstance | null>(null);\n\n if (!i18nRef.current) {\n const preloadedMessages = normalizeLoadedMessages(\n hydration.locale === initialState.locale && hydration.messages\n ? hydration.messages\n : initialMessages,\n );\n i18nRef.current = createI18nInstance({\n namespace,\n sourceLocale,\n messages:\n hydration.locale === sourceLocale && hydration.messages\n ? hydration.messages\n : sourceMessages,\n initialLocale: initialState.locale,\n initialMessages: preloadedMessages,\n });\n }\n\n const i18n = i18nRef.current;\n\n useEffect(() => {\n if (i18n.hasResourceBundle(sourceLocale, namespace)) {\n i18n.addResourceBundle(\n sourceLocale,\n namespace,\n sourceMessages,\n true,\n true,\n );\n }\n }, [i18n, namespace, sourceLocale, sourceMessages]);\n\n useEffect(() => {\n const nextLocale =\n preference === \"system\"\n ? resolveLocaleFromCandidates(browserLanguageCandidates())\n : preference;\n setLocale(nextLocale);\n }, [preference]);\n\n useEffect(() => {\n let cancelled = false;\n\n async function applyLocale() {\n setLoading(true);\n try {\n if (\n locale !== sourceLocale &&\n !i18n.hasResourceBundle(locale, namespace)\n ) {\n const preloaded =\n hydration.locale === locale && hydration.messages\n ? hydration.messages\n : initialLocale === locale && initialMessages\n ? initialMessages\n : null;\n const loaded = preloaded ?? (await loadMessages?.(locale));\n const messages = normalizeLoadedMessages(loaded);\n if (messages) {\n i18n.addResourceBundle(locale, namespace, messages, true, true);\n }\n }\n if (!cancelled) {\n await i18n.changeLanguage(locale);\n }\n } finally {\n if (!cancelled) setLoading(false);\n }\n }\n\n void applyLocale();\n return () => {\n cancelled = true;\n };\n }, [\n hydration.locale,\n hydration.messages,\n i18n,\n initialLocale,\n initialMessages,\n loadMessages,\n locale,\n namespace,\n sourceLocale,\n ]);\n\n useEffect(() => {\n if (typeof document === \"undefined\") return;\n const dir = localeDirection(locale);\n const root = document.documentElement;\n root.setAttribute(\"lang\", locale);\n root.setAttribute(\"dir\", dir);\n root.setAttribute(\"data-locale\", locale);\n }, [locale]);\n\n useEffect(() => {\n if (!persistPreference) return;\n let cancelled = false;\n callAction<LocalizationPreference>(\n \"get-localization-preference\",\n undefined,\n { method: \"GET\" },\n )\n .then((value) => {\n if (cancelled) return;\n const normalized = normalizeLocalizationPreference(value).locale;\n setPreferenceState(normalized);\n writeStoredPreference(normalized);\n })\n .catch(() => {\n // Anonymous/public routes use localStorage/browser language only.\n });\n return () => {\n cancelled = true;\n };\n }, [persistPreference]);\n\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n const onStorage = (event: StorageEvent) => {\n if (event.key !== LOCALE_STORAGE_KEY || event.newValue == null) return;\n setPreferenceState(\n normalizeLocalizationPreference(event.newValue).locale,\n );\n };\n window.addEventListener(\"storage\", onStorage);\n return () => window.removeEventListener(\"storage\", onStorage);\n }, []);\n\n useEffect(() => {\n void setClientAppState(\n \"localization\",\n {\n locale,\n preference,\n dir: localeDirection(locale),\n },\n { requestSource: \"localization\" },\n ).catch(() => {\n // Public/anonymous pages cannot write app-state; localization still works.\n });\n }, [locale, preference]);\n\n const setPreference = useCallback(\n async (next: LocalePreference) => {\n const normalized = normalizeLocalizationPreference(next).locale;\n setPreferenceState(normalized);\n writeStoredPreference(normalized);\n if (!persistPreference) return;\n try {\n await callAction<LocalizationPreference>(\n \"set-localization-preference\",\n {\n locale: normalized,\n },\n );\n } catch (error) {\n const status = (error as { status?: unknown })?.status;\n if (status !== 401 && status !== 403) {\n throw error;\n }\n }\n },\n [persistPreference],\n );\n\n const context = useMemo<LocaleContextValue>(\n () => ({\n locale,\n sourceLocale,\n preference,\n dir: localeDirection(locale),\n metadata: LOCALE_METADATA[locale],\n setPreference,\n loading,\n }),\n [loading, locale, preference, setPreference, sourceLocale],\n );\n\n return (\n <LocaleContext.Provider value={context}>\n <I18nextProvider i18n={i18n}>{children}</I18nextProvider>\n </LocaleContext.Provider>\n );\n}\n\nexport function useLocale(): LocaleContextValue {\n const value = useContext(LocaleContext);\n if (!value) {\n throw new Error(\"useLocale must be used within AgentNativeI18nProvider\");\n }\n return value;\n}\n\nconst CORE_FALLBACK_MESSAGES: Record<string, string> = {\n \"runsTray.runs\": \"Runs\",\n \"runsTray.agentRuns\": \"Agent runs\",\n \"runsTray.activeRun_one\": \"{{count}} active run\",\n \"runsTray.activeRun_other\": \"{{count}} active runs\",\n \"runsTray.failedRun_one\": \"{{count}} failed run\",\n \"runsTray.failedRun_other\": \"{{count}} failed runs\",\n \"runsTray.recentRuns\": \"Recent runs\",\n \"runsTray.noRecentRuns\": \"No recent runs\",\n \"runsTray.ariaAgentRuns\": \"Agent runs, {{label}}\",\n \"runsTray.summaryRunning\": \"{{activeCount}} running\",\n \"runsTray.summaryRunningRecent\":\n \"{{activeCount}} running · {{terminalCount}} recent\",\n \"runsTray.summaryRecent_one\": \"{{count}} recent run\",\n \"runsTray.summaryRecent_other\": \"{{count}} recent runs\",\n \"runsTray.noTrackedWorkYet\": \"No tracked work yet\",\n \"runsTray.emptyDescription\":\n \"Background agent work will appear here while it runs and after it finishes.\",\n \"runsTray.open\": \"Open\",\n \"runsTray.stopRun\": \"Stop {{title}}\",\n \"runsTray.hideRun\": \"Hide {{title}}\",\n \"runsTray.statusRunning\": \"Running\",\n \"runsTray.statusDone\": \"Done\",\n \"runsTray.statusFailed\": \"Failed\",\n \"runsTray.statusStopped\": \"Stopped\",\n \"runsTray.updatedJustNow\": \"Updated just now\",\n \"runsTray.finishedJustNow\": \"Finished just now\",\n \"runsTray.updatedMinutes\": \"Updated {{count}}m ago\",\n \"runsTray.finishedMinutes\": \"Finished {{count}}m ago\",\n \"runsTray.updatedHours\": \"Updated {{count}}h ago\",\n \"runsTray.finishedHours\": \"Finished {{count}}h ago\",\n \"runsTray.updatedDate\": \"Updated {{date}}\",\n \"runsTray.finishedDate\": \"Finished {{date}}\",\n \"codeRequired.fallbackDetail\":\n \"Edit locally or use Builder.io to edit this code in the cloud and continue customizing the app any way you like.\",\n \"codeRequired.defaultFeature\": \"Make the requested code changes to this app\",\n \"codeRequired.branchError\": \"Failed to create branch\",\n \"codeRequired.title\": \"Code changes required\",\n \"codeRequired.subtitleWithFeature\":\n '\"{{feature}}\" creates or modifies source code, which needs Desktop or Builder from this surface.',\n \"codeRequired.subtitle\":\n \"This action creates or modifies source code, which needs Desktop or Builder from this surface.\",\n \"codeRequired.desktopTitle\": \"Use Agent Native Desktop\",\n \"codeRequired.desktopDescription\":\n \"Open the project in the desktop app to enable source edits and CLI access.\",\n \"codeRequired.builderAgentTitle\": \"Use Builder.io Agent\",\n \"codeRequired.builderAgentDescription\":\n \"Let our cloud agent make the changes for you. You'll get a link to preview and deploy.\",\n \"codeRequired.codeChangeTitle\": \"This requires a code change\",\n \"codeRequired.codeChangeBadge\": \"Code change\",\n \"codeRequired.connectBuilderTitle\": \"Connect Builder.io\",\n \"codeRequired.connectBuilderDescription\":\n \"Connect Builder to enable cloud-based code changes from this app.\",\n \"codeRequired.setupRequired\": \"Setup required\",\n \"codeRequired.branchCreated\": \"Branch created\",\n \"codeRequired.close\": \"Close\",\n \"agentPanel.useBuilder\": \"Use Builder\",\n \"agentPanel.openDesktopToEditCode\": \"Open Desktop to edit code\",\n \"agentPanel.codeUnavailableDescription\":\n \"Source-code changes and CLI access are available in the Agent Native Desktop app.\",\n \"agentPanel.downloadDesktop\": \"Download Desktop\",\n \"agentPanel.chatMode\": \"Chat mode\",\n \"agentPanel.chat\": \"Chat\",\n \"agentPanel.cliTerminalMode\": \"CLI terminal mode\",\n \"agentPanel.cli\": \"CLI\",\n \"agentPanel.workspaceMode\": \"Workspace files, agents, skills, and tasks\",\n \"agentPanel.workspace\": \"Workspace\",\n \"agentPanel.newChat\": \"New chat\",\n \"agentPanel.newTerminal\": \"New terminal\",\n \"agentPanel.panelOptions\": \"Agent panel options\",\n \"agentPanel.collapseSidebar\": \"Collapse sidebar\",\n \"agentPanel.hideChats\": \"Hide chats\",\n \"agentPanel.allChats\": \"All chats\",\n \"agentPanel.settings\": \"Settings\",\n \"agentPanel.feedback\": \"Feedback\",\n \"agentPanel.exitFullscreen\": \"Exit fullscreen\",\n \"agentPanel.fullscreen\": \"Fullscreen\",\n \"agentPanel.closeTab\": \"Close tab\",\n \"agentPanel.closeOtherTabs\": \"Close other tabs\",\n \"agentPanel.closeAllTabs\": \"Close all tabs\",\n \"agentPanel.clearChat\": \"Clear chat\",\n \"agentPanel.cliRequiresDevMode\": \"CLI requires dev mode\",\n \"agentPanel.cliRequiresDevModeDescription\":\n \"Run this app locally with pnpm dev or use Builder.io to access the CLI terminal.\",\n \"agentPanel.toggleAgent\": \"Toggle agent\",\n};\n\nfunction flattenMessages(\n value: unknown,\n prefix = \"\",\n out: Record<string, string> = {},\n) {\n if (!value || typeof value !== \"object\" || Array.isArray(value)) return out;\n for (const [key, child] of Object.entries(value)) {\n const nextKey = prefix ? `${prefix}.${key}` : key;\n if (typeof child === \"string\") {\n out[nextKey] = child;\n } else {\n flattenMessages(child, nextKey, out);\n }\n }\n return out;\n}\n\nconst DEFAULT_ENGLISH_MESSAGES = flattenMessages(defaultEnglishMessages);\n\nfunction interpolateFallbackMessage(\n template: string,\n options?: Record<string, unknown>,\n) {\n return template.replace(/\\{\\{(\\w+)\\}\\}/g, (_, name: string) => {\n const value = options?.[name];\n return value == null ? \"\" : String(value);\n });\n}\n\nfunction fallbackMessage(key: string, options?: Record<string, unknown>) {\n const count = Number(options?.count);\n const pluralKey =\n Number.isFinite(count) && count === 1 ? `${key}_one` : `${key}_other`;\n const template =\n DEFAULT_ENGLISH_MESSAGES[pluralKey] ??\n DEFAULT_ENGLISH_MESSAGES[key] ??\n CORE_FALLBACK_MESSAGES[pluralKey] ??\n CORE_FALLBACK_MESSAGES[key];\n return template ? interpolateFallbackMessage(template, options) : key;\n}\n\nexport function useT() {\n const { i18n, t } = useTranslation();\n const context = useContext(LocaleContext);\n const sourceLocale = context?.sourceLocale ?? DEFAULT_LOCALE;\n return useCallback(\n (key: string, options?: Record<string, unknown>) => {\n const translated = t(key, options);\n if (translated !== key) return translated;\n const getFixedT = (\n i18n as { getFixedT?: (locale: LocaleCode) => typeof t }\n ).getFixedT;\n const sourceFallback = getFixedT?.(sourceLocale)(key, options);\n if (sourceFallback && sourceFallback !== key) return sourceFallback;\n return fallbackMessage(key, options);\n },\n [i18n, sourceLocale, t],\n );\n}\n\nexport function useFormatters() {\n const context = useContext(LocaleContext);\n const locale = context?.locale ?? DEFAULT_LOCALE;\n return useMemo(\n () => ({\n formatDate(\n value: Date | number | string,\n options?: Intl.DateTimeFormatOptions,\n ) {\n return new Intl.DateTimeFormat(locale, options).format(\n value instanceof Date ? value : new Date(value),\n );\n },\n formatNumber(value: number, options?: Intl.NumberFormatOptions) {\n return new Intl.NumberFormat(locale, options).format(value);\n },\n formatRelativeTime(\n value: number,\n unit: Intl.RelativeTimeFormatUnit,\n options?: Intl.RelativeTimeFormatOptions,\n ) {\n return new Intl.RelativeTimeFormat(locale, options).format(value, unit);\n },\n formatList(value: string[], options?: Intl.ListFormatOptions) {\n return new Intl.ListFormat(locale, options).format(value);\n },\n }),\n [locale],\n );\n}\n\nexport function LanguagePicker({\n className,\n includeSystem = true,\n label,\n variant = \"select\",\n}: {\n className?: string;\n includeSystem?: boolean;\n label?: string;\n variant?: \"select\" | \"icon\";\n}) {\n const { locale, preference, setPreference } = useLocale();\n const copy =\n LANGUAGE_PICKER_COPY[locale] ?? LANGUAGE_PICKER_COPY[DEFAULT_LOCALE];\n const resolvedLabel = label ?? copy.label;\n const options = [\n ...(includeSystem\n ? [\n {\n value: \"system\" as const,\n label: copy.system,\n description: copy.systemDescription,\n },\n ]\n : []),\n ...SUPPORTED_LOCALES.map((code) => ({\n value: code,\n label:\n LOCALE_METADATA[code].nativeName === LOCALE_METADATA[code].englishName\n ? LOCALE_METADATA[code].nativeName\n : `${LOCALE_METADATA[code].nativeName} (${LOCALE_METADATA[code].englishName})`,\n description: code,\n })),\n ];\n const selected = options.find((option) => option.value === preference);\n\n return (\n <div className={className}>\n <SelectPrimitive.Root\n value={preference}\n onValueChange={(value) =>\n void setPreference(normalizeLocalizationPreference(value).locale)\n }\n >\n <SelectPrimitive.Trigger\n className={\n variant === \"icon\"\n ? \"flex h-8 w-8 items-center justify-center rounded-md border border-border bg-background text-foreground outline-none transition-colors hover:bg-accent/40 data-[placeholder]:text-muted-foreground\"\n : \"flex h-9 w-full items-center justify-between rounded-md border border-border bg-background px-3 text-start text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 data-[placeholder]:text-muted-foreground\"\n }\n aria-label={resolvedLabel}\n title={selected?.label ?? resolvedLabel}\n >\n <span className=\"flex min-w-0 items-center gap-2\">\n <IconLanguage className=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n {variant === \"select\" ? (\n <SelectPrimitive.Value>\n <span className=\"truncate\">\n {selected?.label ?? preference}\n </span>\n </SelectPrimitive.Value>\n ) : null}\n </span>\n {variant === \"select\" ? (\n <SelectPrimitive.Icon asChild>\n <IconChevronDown className=\"h-3.5 w-3.5 text-muted-foreground\" />\n </SelectPrimitive.Icon>\n ) : null}\n </SelectPrimitive.Trigger>\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n position=\"popper\"\n sideOffset={6}\n className={\n variant === \"icon\"\n ? \"z-[9999] min-w-56 overflow-hidden rounded-lg border border-border bg-popover shadow-lg\"\n : \"z-[9999] w-[var(--radix-select-trigger-width)] overflow-hidden rounded-lg border border-border bg-popover shadow-lg\"\n }\n >\n <SelectPrimitive.Viewport className=\"p-1\">\n {options.map((option) => (\n <SelectPrimitive.Item\n key={option.value}\n value={option.value}\n className=\"relative flex w-full cursor-pointer select-none items-start gap-2 rounded-md px-8 py-2.5 text-[12px] outline-none data-[highlighted]:bg-accent/60 data-[state=checked]:bg-accent/40\"\n >\n <span className=\"absolute start-2 top-2.5 flex h-4 w-4 items-center justify-center text-muted-foreground\">\n <SelectPrimitive.ItemIndicator>\n <IconCheck className=\"h-3.5 w-3.5\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <div className=\"flex min-w-0 flex-col\">\n <SelectPrimitive.ItemText>\n <span className=\"text-foreground\">{option.label}</span>\n </SelectPrimitive.ItemText>\n <span className=\"mt-0.5 text-[11px] leading-relaxed text-muted-foreground\">\n {option.description}\n </span>\n </div>\n </SelectPrimitive.Item>\n ))}\n </SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n </SelectPrimitive.Root>\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ShareDialog.d.ts","sourceRoot":"","sources":["../../../src/client/sharing/ShareDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAqB5D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oFAAoF;IACpF,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,oFAAoF;IACpF,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B;AAwGD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,sCAiJlD"}
1
+ {"version":3,"file":"ShareDialog.d.ts","sourceRoot":"","sources":["../../../src/client/sharing/ShareDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAsB5D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oFAAoF;IACpF,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,oFAAoF;IACpF,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B;AA2HD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,sCAoJlD"}
@@ -7,6 +7,7 @@ import { writeClipboardText } from "../clipboard.js";
7
7
  import { useActionQuery, useActionMutation } from "../use-action.js";
8
8
  import { cn } from "../utils.js";
9
9
  import { agentNativePath } from "../api-path.js";
10
+ import { useT } from "../i18n.js";
10
11
  function useOrgMembers() {
11
12
  const [members, setMembers] = useState([]);
12
13
  useEffect(() => {
@@ -41,32 +42,51 @@ const BUTTON_BASE = "inline-flex items-center justify-center gap-2 whitespace-no
41
42
  const BUTTON_OUTLINE_SM = cn(BUTTON_BASE, "h-9 px-3 border border-input bg-background hover:bg-accent hover:text-accent-foreground");
42
43
  const BUTTON_PRIMARY_SM = cn(BUTTON_BASE, "h-9 px-4 bg-primary text-primary-foreground hover:bg-primary/90");
43
44
  const BUTTON_GHOST_ICON = cn(BUTTON_BASE, "h-8 w-8 p-0 text-muted-foreground hover:bg-accent hover:text-accent-foreground");
44
- const VIS_META = {
45
- private: {
46
- label: "Private",
47
- description: "Only people with access can view",
48
- Icon: IconLock,
49
- },
50
- org: {
51
- label: "Organization",
52
- description: "Anyone in your organization can view",
53
- Icon: IconBuilding,
54
- },
55
- public: {
56
- label: "Public",
57
- description: "Anyone signed in with the link can view",
58
- Icon: IconWorld,
59
- },
45
+ const VIS_ICONS = {
46
+ private: IconLock,
47
+ org: IconBuilding,
48
+ public: IconWorld,
60
49
  };
61
- const ROLE_OPTIONS = [
62
- { value: "viewer", label: "Viewer", description: "Can view" },
63
- { value: "editor", label: "Editor", description: "Can edit" },
64
- {
65
- value: "admin",
66
- label: "Admin",
67
- description: "Can edit and manage access",
68
- },
69
- ];
50
+ function useVisibilityMeta() {
51
+ const t = useT();
52
+ return {
53
+ private: {
54
+ label: t("share.private"),
55
+ description: t("share.privateDescription"),
56
+ Icon: VIS_ICONS.private,
57
+ },
58
+ org: {
59
+ label: t("share.organization"),
60
+ description: t("share.organizationDescription"),
61
+ Icon: VIS_ICONS.org,
62
+ },
63
+ public: {
64
+ label: t("share.public"),
65
+ description: t("share.publicDescription"),
66
+ Icon: VIS_ICONS.public,
67
+ },
68
+ };
69
+ }
70
+ function useRoleOptions() {
71
+ const t = useT();
72
+ return [
73
+ {
74
+ value: "viewer",
75
+ label: t("share.viewer"),
76
+ description: t("share.viewerDescription"),
77
+ },
78
+ {
79
+ value: "editor",
80
+ label: t("share.editor"),
81
+ description: t("share.editorDescription"),
82
+ },
83
+ {
84
+ value: "admin",
85
+ label: t("share.admin"),
86
+ description: t("share.adminDescription"),
87
+ },
88
+ ];
89
+ }
70
90
  /**
71
91
  * Framework share dialog. Drop into any template via
72
92
  * `<ShareDialog open onClose resourceType resourceId />`. Passing
@@ -76,6 +96,7 @@ const ROLE_OPTIONS = [
76
96
  */
77
97
  export function ShareDialog(props) {
78
98
  const { open, onClose, resourceType, resourceId, resourceTitle, shareUrl, embedUrl, embedTabContent, linkTabExtras, } = props;
99
+ const t = useT();
79
100
  const sharesQuery = useActionQuery("list-resource-shares", {
80
101
  resourceType,
81
102
  resourceId,
@@ -103,11 +124,13 @@ export function ShareDialog(props) {
103
124
  if (!open)
104
125
  return null;
105
126
  const titleText = resourceTitle
106
- ? `Share "${resourceTitle}"`
107
- : `Share ${resourceType}`;
108
- return createPortal(_jsx("div", { className: "fixed inset-0 z-[2000] flex items-start justify-center bg-black/40 p-4 sm:items-center", onClick: onClose, children: _jsxs("div", { role: "dialog", "aria-modal": "true", "aria-label": titleText, className: "w-full max-w-lg rounded-xl border border-border bg-popover text-popover-foreground shadow-2xl outline-none", onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "flex items-start justify-between gap-3 px-5 pt-4 pb-3", children: [_jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate text-base font-semibold", title: titleText, children: titleText }), sharesQuery.data?.ownerEmail ? (_jsxs("div", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: ["Owner: ", displayName(sharesQuery.data.ownerEmail, orgMembers)] })) : null] }), _jsx("button", { type: "button", "aria-label": "Close", onClick: onClose, className: BUTTON_GHOST_ICON, children: _jsx(IconX, { size: 16 }) })] }), tabsEnabled ? (_jsxs("div", { role: "tablist", "aria-label": "Share options", className: "mx-5 mt-1 flex gap-1 border-b border-border", children: [hasLinkTab ? (_jsx(TabTrigger, { active: tab === "link", onClick: () => setTab("link"), icon: _jsx(IconLink, { size: 14, strokeWidth: 1.75 }), label: "Link" })) : null, _jsx(TabTrigger, { active: tab === "invite", onClick: () => setTab("invite"), icon: _jsx(IconMail, { size: 14, strokeWidth: 1.75 }), label: "Invite" }), hasEmbedTab ? (_jsx(TabTrigger, { active: tab === "embed", onClick: () => setTab("embed"), icon: _jsx(IconCode, { size: 14, strokeWidth: 1.75 }), label: "Embed" })) : null] })) : null, _jsxs("div", { className: "px-5 py-4", children: [tabsEnabled && tab === "link" && hasLinkTab ? (_jsx(LinkTab, { resourceType: resourceType, resourceId: resourceId, shareUrl: shareUrl, sharesQuery: sharesQuery, extras: linkTabExtras })) : null, !tabsEnabled || tab === "invite" ? (_jsx(InviteTab, { resourceType: resourceType, resourceId: resourceId, shareUrl: shareUrl, sharesQuery: sharesQuery, showVisibility: !tabsEnabled, orgMembers: orgMembers })) : null, tabsEnabled && tab === "embed" && hasEmbedTab
127
+ ? t("share.titleWithResource", { title: resourceTitle })
128
+ : t("share.titleWithType", { type: resourceType });
129
+ return createPortal(_jsx("div", { className: "fixed inset-0 z-[2000] flex items-start justify-center bg-black/40 p-4 sm:items-center", onClick: onClose, children: _jsxs("div", { role: "dialog", "aria-modal": "true", "aria-label": titleText, className: "w-full max-w-lg rounded-xl border border-border bg-popover text-popover-foreground shadow-2xl outline-none", onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "flex items-start justify-between gap-3 px-5 pt-4 pb-3", children: [_jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate text-base font-semibold", title: titleText, children: titleText }), sharesQuery.data?.ownerEmail ? (_jsx("div", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: t("share.owner", {
130
+ name: displayName(sharesQuery.data.ownerEmail, orgMembers),
131
+ }) })) : null] }), _jsx("button", { type: "button", "aria-label": t("share.close"), onClick: onClose, className: BUTTON_GHOST_ICON, children: _jsx(IconX, { size: 16 }) })] }), tabsEnabled ? (_jsxs("div", { role: "tablist", "aria-label": t("share.shareOptions"), className: "mx-5 mt-1 flex gap-1 border-b border-border", children: [hasLinkTab ? (_jsx(TabTrigger, { active: tab === "link", onClick: () => setTab("link"), icon: _jsx(IconLink, { size: 14, strokeWidth: 1.75 }), label: t("share.link") })) : null, _jsx(TabTrigger, { active: tab === "invite", onClick: () => setTab("invite"), icon: _jsx(IconMail, { size: 14, strokeWidth: 1.75 }), label: t("share.invite") }), hasEmbedTab ? (_jsx(TabTrigger, { active: tab === "embed", onClick: () => setTab("embed"), icon: _jsx(IconCode, { size: 14, strokeWidth: 1.75 }), label: t("share.embed") })) : null] })) : null, _jsxs("div", { className: "px-5 py-4", children: [tabsEnabled && tab === "link" && hasLinkTab ? (_jsx(LinkTab, { resourceType: resourceType, resourceId: resourceId, shareUrl: shareUrl, sharesQuery: sharesQuery, extras: linkTabExtras })) : null, !tabsEnabled || tab === "invite" ? (_jsx(InviteTab, { resourceType: resourceType, resourceId: resourceId, shareUrl: shareUrl, sharesQuery: sharesQuery, showVisibility: !tabsEnabled, orgMembers: orgMembers })) : null, tabsEnabled && tab === "embed" && hasEmbedTab
109
132
  ? (embedTabContent ?? _jsx(DefaultEmbedBody, { embedUrl: embedUrl }))
110
- : null] }), _jsx("div", { className: "flex justify-end border-t border-border px-5 py-3", children: _jsx("button", { type: "button", onClick: onClose, className: BUTTON_PRIMARY_SM, children: "Done" }) })] }) }), document.body);
133
+ : null] }), _jsx("div", { className: "flex justify-end border-t border-border px-5 py-3", children: _jsx("button", { type: "button", onClick: onClose, className: BUTTON_PRIMARY_SM, children: t("share.done") }) })] }) }), document.body);
111
134
  }
112
135
  // ---------------------------------------------------------------------------
113
136
  // Tabs
@@ -122,23 +145,27 @@ function TabTrigger(props) {
122
145
  // ---------------------------------------------------------------------------
123
146
  function LinkTab(props) {
124
147
  const { resourceType, resourceId, shareUrl, sharesQuery, extras } = props;
148
+ const t = useT();
149
+ const visibilityMeta = useVisibilityMeta();
125
150
  const setVisibility = useActionMutation("set-resource-visibility");
126
151
  const data = sharesQuery.data;
127
152
  const visibility = data?.visibility ?? "private";
128
153
  const canManage = data?.role === "owner" || data?.role === "admin";
129
- const meta = VIS_META[visibility];
154
+ const meta = visibilityMeta[visibility];
130
155
  const handleVisibility = (next) => {
131
156
  if (next === visibility)
132
157
  return;
133
158
  setVisibility.mutate({ resourceType, resourceId, visibility: next }, { onSuccess: () => sharesQuery.refetch() });
134
159
  };
135
- return (_jsxs("div", { className: "space-y-4", children: [_jsxs("div", { children: [_jsx("div", { className: "mb-2 text-sm font-semibold", children: "General access" }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("span", { "aria-hidden": true, className: "inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground", children: _jsx(meta.Icon, { size: 16, strokeWidth: 1.75 }) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(VisibilitySelect, { value: visibility, onChange: handleVisibility, disabled: !canManage }), _jsx("div", { className: "mt-0.5 text-xs text-muted-foreground", children: meta.description })] })] })] }), _jsx(CopyField, { label: "Share link", value: shareUrl }), extras] }));
160
+ return (_jsxs("div", { className: "space-y-4", children: [_jsxs("div", { children: [_jsx("div", { className: "mb-2 text-sm font-semibold", children: t("share.generalAccess") }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("span", { "aria-hidden": true, className: "inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground", children: _jsx(meta.Icon, { size: 16, strokeWidth: 1.75 }) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(VisibilitySelect, { value: visibility, onChange: handleVisibility, disabled: !canManage }), _jsx("div", { className: "mt-0.5 text-xs text-muted-foreground", children: meta.description })] })] })] }), _jsx(CopyField, { label: t("share.shareLink"), value: shareUrl }), extras] }));
136
161
  }
137
162
  // ---------------------------------------------------------------------------
138
163
  // Invite tab — invite-by-email + shares list + (optional) visibility
139
164
  // ---------------------------------------------------------------------------
140
165
  function InviteTab(props) {
141
166
  const { resourceType, resourceId, shareUrl, sharesQuery, showVisibility, orgMembers, } = props;
167
+ const t = useT();
168
+ const visibilityMeta = useVisibilityMeta();
142
169
  const share = useActionMutation("share-resource");
143
170
  const unshare = useActionMutation("unshare-resource");
144
171
  const setVisibility = useActionMutation("set-resource-visibility");
@@ -150,7 +177,7 @@ function InviteTab(props) {
150
177
  const shares = data?.shares ?? [];
151
178
  const visibility = data?.visibility ?? "private";
152
179
  const canManage = data?.role === "owner" || data?.role === "admin";
153
- const meta = VIS_META[visibility];
180
+ const meta = visibilityMeta[visibility];
154
181
  const handleAdd = () => {
155
182
  const trimmed = email.trim();
156
183
  if (!trimmed)
@@ -183,27 +210,29 @@ function InviteTab(props) {
183
210
  return;
184
211
  setVisibility.mutate({ resourceType, resourceId, visibility: next }, { onSuccess: () => sharesQuery.refetch() });
185
212
  };
186
- return (_jsxs("div", { className: "space-y-4", children: [canManage ? (_jsxs("div", { className: "space-y-2", children: [_jsxs("div", { className: "flex items-stretch gap-2", children: [_jsx("input", { type: "email", placeholder: "Add people by email", value: email, onChange: (e) => setEmail(e.target.value), onKeyDown: (e) => {
213
+ return (_jsxs("div", { className: "space-y-4", children: [canManage ? (_jsxs("div", { className: "space-y-2", children: [_jsxs("div", { className: "flex items-stretch gap-2", children: [_jsx("input", { type: "email", placeholder: t("share.addPeopleByEmail"), value: email, onChange: (e) => setEmail(e.target.value), onKeyDown: (e) => {
187
214
  if (e.key === "Enter")
188
215
  handleAdd();
189
- }, autoComplete: "off", className: "flex-1 min-w-0 h-9 rounded-md border border-input bg-background px-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background" }), _jsx(RoleSelect, { value: role, onChange: setRole })] }), hasInviteEmail ? (_jsxs("label", { className: "inline-flex items-center gap-2 text-xs text-muted-foreground", children: [_jsx("input", { type: "checkbox", checked: notifyPeople, onChange: (e) => setNotifyPeople(e.target.checked), className: "h-4 w-4 rounded border-input accent-primary" }), "Notify people"] })) : null] })) : null, _jsxs("div", { children: [_jsx("div", { className: "mb-2 text-sm font-semibold", children: "People with access" }), _jsxs("ul", { className: "flex flex-col gap-1 list-none p-0 m-0", children: [data?.ownerEmail ? (_jsxs("li", { className: "flex items-center gap-3 px-1 py-1.5 text-sm", children: [_jsx(Avatar, { label: displayName(data.ownerEmail, orgMembers) }), _jsx("span", { className: "flex-1 min-w-0 truncate", children: displayName(data.ownerEmail, orgMembers) }), _jsx("span", { className: "text-xs text-muted-foreground", children: "Owner" })] })) : null, shares.map((s) => (_jsxs("li", { className: "flex items-center gap-3 px-1 py-1.5 text-sm", children: [_jsx(Avatar, { label: s.principalType === "org"
216
+ }, autoComplete: "off", className: "flex-1 min-w-0 h-9 rounded-md border border-input bg-background px-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background" }), _jsx(RoleSelect, { value: role, onChange: setRole })] }), hasInviteEmail ? (_jsxs("label", { className: "inline-flex items-center gap-2 text-xs text-muted-foreground", children: [_jsx("input", { type: "checkbox", checked: notifyPeople, onChange: (e) => setNotifyPeople(e.target.checked), className: "h-4 w-4 rounded border-input accent-primary" }), t("share.notifyPeople")] })) : null] })) : null, _jsxs("div", { children: [_jsx("div", { className: "mb-2 text-sm font-semibold", children: t("share.peopleWithAccess") }), _jsxs("ul", { className: "flex flex-col gap-1 list-none p-0 m-0", children: [data?.ownerEmail ? (_jsxs("li", { className: "flex items-center gap-3 px-1 py-1.5 text-sm", children: [_jsx(Avatar, { label: displayName(data.ownerEmail, orgMembers) }), _jsx("span", { className: "flex-1 min-w-0 truncate", children: displayName(data.ownerEmail, orgMembers) }), _jsx("span", { className: "text-xs text-muted-foreground", children: t("share.ownerRole") })] })) : null, shares.map((s) => (_jsxs("li", { className: "flex items-center gap-3 px-1 py-1.5 text-sm", children: [_jsx(Avatar, { label: s.principalType === "org"
190
217
  ? s.principalId
191
218
  : displayName(s.principalId, orgMembers), org: s.principalType === "org" }), _jsx("span", { className: "flex-1 min-w-0 truncate", children: s.principalType === "org"
192
219
  ? s.principalId
193
- : displayName(s.principalId, orgMembers) }), _jsx("span", { className: "text-xs text-muted-foreground", children: cap(s.role) }), canManage ? (_jsx("button", { type: "button", "aria-label": "Remove", onClick: () => handleRemove(s), className: BUTTON_GHOST_ICON, children: _jsx(IconTrash, { size: 14 }) })) : null] }, `${s.principalType}:${s.principalId}`))), !shares.length && !data?.ownerEmail ? (_jsx("li", { className: "px-1 py-1.5 text-sm text-muted-foreground", children: "No one has access yet." })) : null] })] }), showVisibility ? (_jsxs("div", { children: [_jsx("div", { className: "mb-2 text-sm font-semibold", children: "General access" }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("span", { "aria-hidden": true, className: "inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground", children: _jsx(meta.Icon, { size: 16, strokeWidth: 1.75 }) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(VisibilitySelect, { value: visibility, onChange: handleVisibility, disabled: !canManage }), _jsx("div", { className: "mt-0.5 text-xs text-muted-foreground", children: meta.description })] })] })] })) : null] }));
220
+ : displayName(s.principalId, orgMembers) }), _jsx("span", { className: "text-xs text-muted-foreground", children: cap(s.role) }), canManage ? (_jsx("button", { type: "button", "aria-label": t("share.remove"), onClick: () => handleRemove(s), className: BUTTON_GHOST_ICON, children: _jsx(IconTrash, { size: 14 }) })) : null] }, `${s.principalType}:${s.principalId}`))), !shares.length && !data?.ownerEmail ? (_jsx("li", { className: "px-1 py-1.5 text-sm text-muted-foreground", children: t("share.noAccess") })) : null] })] }), showVisibility ? (_jsxs("div", { children: [_jsx("div", { className: "mb-2 text-sm font-semibold", children: t("share.generalAccess") }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsx("span", { "aria-hidden": true, className: "inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground", children: _jsx(meta.Icon, { size: 16, strokeWidth: 1.75 }) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(VisibilitySelect, { value: visibility, onChange: handleVisibility, disabled: !canManage }), _jsx("div", { className: "mt-0.5 text-xs text-muted-foreground", children: meta.description })] })] })] })) : null] }));
194
221
  }
195
222
  // ---------------------------------------------------------------------------
196
223
  // Default Embed body (simple responsive iframe snippet)
197
224
  // ---------------------------------------------------------------------------
198
225
  function DefaultEmbedBody({ embedUrl }) {
226
+ const t = useT();
199
227
  const code = `<div style="position:relative;padding-bottom:56.25%;height:0"><iframe src="${embedUrl}" frameborder="0" allowfullscreen allow="autoplay; picture-in-picture" style="position:absolute;inset:0;width:100%;height:100%"></iframe></div>`;
200
- return (_jsxs("div", { className: "space-y-3", children: [_jsx(CopyField, { label: "Embed URL", value: embedUrl }), _jsx(CopyField, { label: "Embed code", value: code, multiline: true })] }));
228
+ return (_jsxs("div", { className: "space-y-3", children: [_jsx(CopyField, { label: t("share.embedUrl"), value: embedUrl }), _jsx(CopyField, { label: t("share.embedCode"), value: code, multiline: true })] }));
201
229
  }
202
230
  // ---------------------------------------------------------------------------
203
231
  // Primitives
204
232
  // ---------------------------------------------------------------------------
205
233
  function CopyField({ label, value, multiline, }) {
206
234
  const [copied, setCopied] = useState(false);
235
+ const t = useT();
207
236
  const copy = async () => {
208
237
  if (!(await writeClipboardText(value))) {
209
238
  setCopied(false);
@@ -212,7 +241,7 @@ function CopyField({ label, value, multiline, }) {
212
241
  setCopied(true);
213
242
  setTimeout(() => setCopied(false), 1400);
214
243
  };
215
- return (_jsxs("div", { children: [_jsx("div", { className: "mb-1 text-xs font-medium text-muted-foreground", children: label }), _jsxs("div", { className: "flex items-stretch gap-2", children: [multiline ? (_jsx("textarea", { readOnly: true, value: value, className: "flex-1 h-20 rounded-md border border-input bg-background px-3 py-2 text-xs font-mono text-foreground resize-none focus:outline-none focus:ring-2 focus:ring-ring" })) : (_jsx("input", { readOnly: true, value: value, className: "flex-1 min-w-0 h-9 rounded-md border border-input bg-background px-3 text-xs font-mono text-foreground focus:outline-none focus:ring-2 focus:ring-ring" })), _jsx("button", { type: "button", onClick: copy, "aria-label": "Copy", className: cn(BUTTON_OUTLINE_SM, "w-9 px-0"), children: copied ? _jsx(IconCheck, { size: 14 }) : _jsx(IconCopy, { size: 14 }) })] })] }));
244
+ return (_jsxs("div", { children: [_jsx("div", { className: "mb-1 text-xs font-medium text-muted-foreground", children: label }), _jsxs("div", { className: "flex items-stretch gap-2", children: [multiline ? (_jsx("textarea", { readOnly: true, value: value, className: "flex-1 h-20 rounded-md border border-input bg-background px-3 py-2 text-xs font-mono text-foreground resize-none focus:outline-none focus:ring-2 focus:ring-ring" })) : (_jsx("input", { readOnly: true, value: value, className: "flex-1 min-w-0 h-9 rounded-md border border-input bg-background px-3 text-xs font-mono text-foreground focus:outline-none focus:ring-2 focus:ring-ring" })), _jsx("button", { type: "button", onClick: copy, "aria-label": t("share.copy"), className: cn(BUTTON_OUTLINE_SM, "w-9 px-0"), children: copied ? _jsx(IconCheck, { size: 14 }) : _jsx(IconCopy, { size: 14 }) })] })] }));
216
245
  }
217
246
  const selectContentClass = "z-[2100] min-w-[12rem] overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md";
218
247
  const selectItemClass = "relative flex w-full cursor-pointer select-none items-start gap-2 rounded-sm py-2 ps-8 pe-3 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
@@ -220,15 +249,19 @@ function SelectItems({ items, }) {
220
249
  return (_jsx(_Fragment, { children: items.map((it) => (_jsxs(Select.Item, { value: it.value, className: selectItemClass, children: [_jsx("span", { className: "absolute start-2 top-2 flex h-4 w-4 items-center justify-center", children: _jsx(Select.ItemIndicator, { children: _jsx(IconCheck, { size: 14 }) }) }), _jsxs("span", { className: "flex flex-col", children: [_jsx(Select.ItemText, { children: it.label }), it.description ? (_jsx("span", { className: "text-xs text-muted-foreground", children: it.description })) : null] })] }, it.value))) }));
221
250
  }
222
251
  function RoleSelect(props) {
223
- const current = ROLE_OPTIONS.find((o) => o.value === props.value) ?? ROLE_OPTIONS[0];
224
- return (_jsxs(Select.Root, { value: props.value, onValueChange: (v) => props.onChange(v), children: [_jsxs(Select.Trigger, { "aria-label": "Role", className: cn(BUTTON_BASE, "h-9 px-3 border border-input bg-background hover:bg-accent hover:text-accent-foreground"), children: [_jsx(Select.Value, { children: current.label }), _jsx(Select.Icon, { children: _jsx(IconChevronDown, { size: 14 }) })] }), _jsx(Select.Portal, { children: _jsx(Select.Content, { className: selectContentClass, position: "popper", sideOffset: 4, children: _jsx(Select.Viewport, { children: _jsx(SelectItems, { items: ROLE_OPTIONS }) }) }) })] }));
252
+ const t = useT();
253
+ const roleOptions = useRoleOptions();
254
+ const current = roleOptions.find((o) => o.value === props.value) ?? roleOptions[0];
255
+ return (_jsxs(Select.Root, { value: props.value, onValueChange: (v) => props.onChange(v), children: [_jsxs(Select.Trigger, { "aria-label": t("share.role"), className: cn(BUTTON_BASE, "h-9 px-3 border border-input bg-background hover:bg-accent hover:text-accent-foreground"), children: [_jsx(Select.Value, { children: current.label }), _jsx(Select.Icon, { children: _jsx(IconChevronDown, { size: 14 }) })] }), _jsx(Select.Portal, { children: _jsx(Select.Content, { className: selectContentClass, position: "popper", sideOffset: 4, children: _jsx(Select.Viewport, { children: _jsx(SelectItems, { items: roleOptions }) }) }) })] }));
225
256
  }
226
257
  function VisibilitySelect(props) {
227
- const current = VIS_META[props.value];
228
- return (_jsxs(Select.Root, { value: props.value, onValueChange: (v) => props.onChange(v), disabled: props.disabled, children: [_jsxs(Select.Trigger, { "aria-label": "General access", className: cn(BUTTON_BASE, "h-7 px-1 -ms-1 bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground"), children: [_jsx(Select.Value, { children: current.label }), _jsx(Select.Icon, { children: _jsx(IconChevronDown, { size: 14 }) })] }), _jsx(Select.Portal, { children: _jsx(Select.Content, { className: selectContentClass, position: "popper", sideOffset: 4, children: _jsx(Select.Viewport, { children: _jsx(SelectItems, { items: Object.keys(VIS_META).map((k) => ({
258
+ const t = useT();
259
+ const visibilityMeta = useVisibilityMeta();
260
+ const current = visibilityMeta[props.value];
261
+ return (_jsxs(Select.Root, { value: props.value, onValueChange: (v) => props.onChange(v), disabled: props.disabled, children: [_jsxs(Select.Trigger, { "aria-label": t("share.generalAccess"), className: cn(BUTTON_BASE, "h-7 px-1 -ms-1 bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground"), children: [_jsx(Select.Value, { children: current.label }), _jsx(Select.Icon, { children: _jsx(IconChevronDown, { size: 14 }) })] }), _jsx(Select.Portal, { children: _jsx(Select.Content, { className: selectContentClass, position: "popper", sideOffset: 4, children: _jsx(Select.Viewport, { children: _jsx(SelectItems, { items: Object.keys(VIS_ICONS).map((k) => ({
229
262
  value: k,
230
- label: VIS_META[k].label,
231
- description: VIS_META[k].description,
263
+ label: visibilityMeta[k].label,
264
+ description: visibilityMeta[k].description,
232
265
  })) }) }) }) })] }));
233
266
  }
234
267
  function Avatar({ label, org }) {