@agent-native/core 0.77.3 → 0.77.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2019) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/core/CHANGELOG.md +27 -0
  3. package/corpus/core/docs/content/locales/ar-SA/a2a-protocol.md +2 -2
  4. package/corpus/core/docs/content/locales/ar-SA/actions.md +6 -6
  5. package/corpus/core/docs/content/locales/ar-SA/agent-surfaces.md +5 -5
  6. package/corpus/core/docs/content/locales/ar-SA/agent-teams.md +4 -4
  7. package/corpus/core/docs/content/locales/ar-SA/agent-web-surfaces.md +2 -2
  8. package/corpus/core/docs/content/locales/ar-SA/authentication.md +4 -4
  9. package/corpus/core/docs/content/locales/ar-SA/automations.md +3 -3
  10. package/corpus/core/docs/content/locales/ar-SA/blueprint-installer.md +2 -2
  11. package/corpus/core/docs/content/locales/ar-SA/cli-adapters.md +1 -1
  12. package/corpus/core/docs/content/locales/ar-SA/code-agents-ui.md +2 -2
  13. package/corpus/core/docs/content/locales/ar-SA/components.md +14 -14
  14. package/corpus/core/docs/content/locales/ar-SA/context-awareness.md +3 -3
  15. package/corpus/core/docs/content/locales/ar-SA/creating-templates.md +12 -12
  16. package/corpus/core/docs/content/locales/ar-SA/cross-app-sso.md +3 -3
  17. package/corpus/core/docs/content/locales/ar-SA/database.md +7 -7
  18. package/corpus/core/docs/content/locales/ar-SA/deployment.md +4 -4
  19. package/corpus/core/docs/content/locales/ar-SA/dispatch.md +3 -3
  20. package/corpus/core/docs/content/locales/ar-SA/drop-in-agent.md +8 -8
  21. package/corpus/core/docs/content/locales/ar-SA/durable-resume.md +1 -1
  22. package/corpus/core/docs/content/locales/ar-SA/embedding-sdk.md +2 -2
  23. package/corpus/core/docs/content/locales/ar-SA/evals.md +3 -3
  24. package/corpus/core/docs/content/locales/ar-SA/extensions.md +2 -2
  25. package/corpus/core/docs/content/locales/ar-SA/external-agents.md +8 -8
  26. package/corpus/core/docs/content/locales/ar-SA/faq.md +3 -3
  27. package/corpus/core/docs/content/locales/ar-SA/file-uploads.md +4 -4
  28. package/corpus/core/docs/content/locales/ar-SA/frames.md +1 -1
  29. package/corpus/core/docs/content/locales/ar-SA/getting-started.md +13 -13
  30. package/corpus/core/docs/content/locales/ar-SA/harness-agents.md +3 -3
  31. package/corpus/core/docs/content/locales/ar-SA/human-approval.md +3 -3
  32. package/corpus/core/docs/content/locales/ar-SA/key-concepts.md +14 -14
  33. package/corpus/core/docs/content/locales/ar-SA/local-file-mode.md +5 -5
  34. package/corpus/core/docs/content/locales/ar-SA/mcp-apps.md +9 -9
  35. package/corpus/core/docs/content/locales/ar-SA/mcp-clients.md +9 -9
  36. package/corpus/core/docs/content/locales/ar-SA/mcp-protocol.md +5 -5
  37. package/corpus/core/docs/content/locales/ar-SA/messaging.md +5 -5
  38. package/corpus/core/docs/content/locales/ar-SA/migration-workbench.md +1 -1
  39. package/corpus/core/docs/content/locales/ar-SA/multi-app-workspace.md +1 -1
  40. package/corpus/core/docs/content/locales/ar-SA/multi-tenancy.md +2 -2
  41. package/corpus/core/docs/content/locales/ar-SA/native-chat-ui.md +4 -4
  42. package/corpus/core/docs/content/locales/ar-SA/notifications.md +5 -5
  43. package/corpus/core/docs/content/locales/ar-SA/observability.md +1 -1
  44. package/corpus/core/docs/content/locales/ar-SA/observational-memory.md +2 -2
  45. package/corpus/core/docs/content/locales/ar-SA/onboarding.md +8 -8
  46. package/corpus/core/docs/content/locales/ar-SA/plan-plugin.md +3 -3
  47. package/corpus/core/docs/content/locales/ar-SA/pr-visual-recap.md +11 -11
  48. package/corpus/core/docs/content/locales/ar-SA/processors.md +2 -2
  49. package/corpus/core/docs/content/locales/ar-SA/progress.md +3 -3
  50. package/corpus/core/docs/content/locales/ar-SA/pure-agent-apps.md +1 -1
  51. package/corpus/core/docs/content/locales/ar-SA/real-time-collaboration.md +6 -6
  52. package/corpus/core/docs/content/locales/ar-SA/recurring-jobs.md +5 -5
  53. package/corpus/core/docs/content/locales/ar-SA/routing.md +1 -1
  54. package/corpus/core/docs/content/locales/ar-SA/sandbox-adapters.md +3 -3
  55. package/corpus/core/docs/content/locales/ar-SA/security.md +10 -10
  56. package/corpus/core/docs/content/locales/ar-SA/server.md +9 -9
  57. package/corpus/core/docs/content/locales/ar-SA/sharing.md +7 -7
  58. package/corpus/core/docs/content/locales/ar-SA/skills-guide.md +16 -16
  59. package/corpus/core/docs/content/locales/ar-SA/template-analytics.md +10 -10
  60. package/corpus/core/docs/content/locales/ar-SA/template-assets.md +19 -19
  61. package/corpus/core/docs/content/locales/ar-SA/template-brain.md +11 -11
  62. package/corpus/core/docs/content/locales/ar-SA/template-calendar.md +9 -9
  63. package/corpus/core/docs/content/locales/ar-SA/template-chat.md +3 -3
  64. package/corpus/core/docs/content/locales/ar-SA/template-clips.md +13 -13
  65. package/corpus/core/docs/content/locales/ar-SA/template-content.md +15 -15
  66. package/corpus/core/docs/content/locales/ar-SA/template-design.md +7 -7
  67. package/corpus/core/docs/content/locales/ar-SA/template-dispatch.md +8 -8
  68. package/corpus/core/docs/content/locales/ar-SA/template-forms.md +9 -9
  69. package/corpus/core/docs/content/locales/ar-SA/template-mail.md +7 -7
  70. package/corpus/core/docs/content/locales/ar-SA/template-plan.md +3 -3
  71. package/corpus/core/docs/content/locales/ar-SA/template-slides.md +8 -8
  72. package/corpus/core/docs/content/locales/ar-SA/template-videos.md +5 -5
  73. package/corpus/core/docs/content/locales/ar-SA/tracking.md +6 -6
  74. package/corpus/core/docs/content/locales/ar-SA/using-your-agent.md +4 -4
  75. package/corpus/core/docs/content/locales/ar-SA/voice-input.md +4 -4
  76. package/corpus/core/docs/content/locales/ar-SA/what-is-agent-native.md +4 -4
  77. package/corpus/core/docs/content/locales/ar-SA/workspace-connections.md +8 -8
  78. package/corpus/core/docs/content/locales/ar-SA/workspace-management.md +4 -4
  79. package/corpus/core/docs/content/locales/ar-SA/workspace.md +24 -24
  80. package/corpus/core/docs/content/locales/ar-SA/writing-agent-instructions.md +18 -18
  81. package/corpus/core/docs/content/locales/de-DE/a2a-protocol.md +7 -7
  82. package/corpus/core/docs/content/locales/de-DE/actions.md +5 -5
  83. package/corpus/core/docs/content/locales/de-DE/agent-mentions.md +4 -4
  84. package/corpus/core/docs/content/locales/de-DE/agent-surfaces.md +22 -22
  85. package/corpus/core/docs/content/locales/de-DE/agent-teams.md +4 -4
  86. package/corpus/core/docs/content/locales/de-DE/agent-web-surfaces.md +4 -4
  87. package/corpus/core/docs/content/locales/de-DE/authentication.md +6 -6
  88. package/corpus/core/docs/content/locales/de-DE/automations.md +8 -8
  89. package/corpus/core/docs/content/locales/de-DE/blueprint-installer.md +2 -2
  90. package/corpus/core/docs/content/locales/de-DE/client.md +6 -6
  91. package/corpus/core/docs/content/locales/de-DE/cloneable-saas.md +2 -2
  92. package/corpus/core/docs/content/locales/de-DE/code-agents-ui.md +9 -9
  93. package/corpus/core/docs/content/locales/de-DE/components.md +15 -15
  94. package/corpus/core/docs/content/locales/de-DE/context-awareness.md +8 -8
  95. package/corpus/core/docs/content/locales/de-DE/creating-templates.md +13 -13
  96. package/corpus/core/docs/content/locales/de-DE/cross-app-sso.md +3 -3
  97. package/corpus/core/docs/content/locales/de-DE/database.md +5 -5
  98. package/corpus/core/docs/content/locales/de-DE/deployment.md +6 -6
  99. package/corpus/core/docs/content/locales/de-DE/dispatch.md +3 -3
  100. package/corpus/core/docs/content/locales/de-DE/drop-in-agent.md +14 -14
  101. package/corpus/core/docs/content/locales/de-DE/durable-resume.md +1 -1
  102. package/corpus/core/docs/content/locales/de-DE/embedding-sdk.md +2 -2
  103. package/corpus/core/docs/content/locales/de-DE/evals.md +2 -2
  104. package/corpus/core/docs/content/locales/de-DE/extensions.md +2 -2
  105. package/corpus/core/docs/content/locales/de-DE/external-agents.md +6 -6
  106. package/corpus/core/docs/content/locales/de-DE/faq.md +5 -5
  107. package/corpus/core/docs/content/locales/de-DE/file-uploads.md +4 -4
  108. package/corpus/core/docs/content/locales/de-DE/frames.md +2 -2
  109. package/corpus/core/docs/content/locales/de-DE/getting-started.md +16 -16
  110. package/corpus/core/docs/content/locales/de-DE/harness-agents.md +3 -3
  111. package/corpus/core/docs/content/locales/de-DE/human-approval.md +4 -4
  112. package/corpus/core/docs/content/locales/de-DE/key-concepts.md +14 -14
  113. package/corpus/core/docs/content/locales/de-DE/local-file-mode.md +8 -8
  114. package/corpus/core/docs/content/locales/de-DE/mcp-apps.md +4 -4
  115. package/corpus/core/docs/content/locales/de-DE/mcp-clients.md +7 -7
  116. package/corpus/core/docs/content/locales/de-DE/mcp-protocol.md +3 -3
  117. package/corpus/core/docs/content/locales/de-DE/messaging.md +5 -5
  118. package/corpus/core/docs/content/locales/de-DE/migration-workbench.md +1 -1
  119. package/corpus/core/docs/content/locales/de-DE/multi-app-workspace.md +2 -2
  120. package/corpus/core/docs/content/locales/de-DE/multi-tenancy.md +1 -1
  121. package/corpus/core/docs/content/locales/de-DE/native-chat-ui.md +8 -8
  122. package/corpus/core/docs/content/locales/de-DE/notifications.md +3 -3
  123. package/corpus/core/docs/content/locales/de-DE/observability.md +2 -2
  124. package/corpus/core/docs/content/locales/de-DE/observational-memory.md +2 -2
  125. package/corpus/core/docs/content/locales/de-DE/onboarding.md +8 -8
  126. package/corpus/core/docs/content/locales/de-DE/plan-plugin.md +3 -3
  127. package/corpus/core/docs/content/locales/de-DE/pr-visual-recap.md +11 -11
  128. package/corpus/core/docs/content/locales/de-DE/processors.md +1 -1
  129. package/corpus/core/docs/content/locales/de-DE/progress.md +2 -2
  130. package/corpus/core/docs/content/locales/de-DE/pure-agent-apps.md +1 -1
  131. package/corpus/core/docs/content/locales/de-DE/real-time-collaboration.md +8 -8
  132. package/corpus/core/docs/content/locales/de-DE/recurring-jobs.md +5 -5
  133. package/corpus/core/docs/content/locales/de-DE/routing.md +1 -1
  134. package/corpus/core/docs/content/locales/de-DE/sandbox-adapters.md +2 -2
  135. package/corpus/core/docs/content/locales/de-DE/security.md +10 -10
  136. package/corpus/core/docs/content/locales/de-DE/server.md +10 -10
  137. package/corpus/core/docs/content/locales/de-DE/sharing.md +6 -6
  138. package/corpus/core/docs/content/locales/de-DE/skills-guide.md +17 -17
  139. package/corpus/core/docs/content/locales/de-DE/template-analytics.md +10 -10
  140. package/corpus/core/docs/content/locales/de-DE/template-assets.md +21 -21
  141. package/corpus/core/docs/content/locales/de-DE/template-brain.md +11 -11
  142. package/corpus/core/docs/content/locales/de-DE/template-calendar.md +10 -10
  143. package/corpus/core/docs/content/locales/de-DE/template-chat.md +5 -5
  144. package/corpus/core/docs/content/locales/de-DE/template-clips.md +14 -14
  145. package/corpus/core/docs/content/locales/de-DE/template-content.md +14 -14
  146. package/corpus/core/docs/content/locales/de-DE/template-design.md +7 -7
  147. package/corpus/core/docs/content/locales/de-DE/template-dispatch.md +12 -12
  148. package/corpus/core/docs/content/locales/de-DE/template-forms.md +9 -9
  149. package/corpus/core/docs/content/locales/de-DE/template-mail.md +6 -6
  150. package/corpus/core/docs/content/locales/de-DE/template-plan.md +3 -3
  151. package/corpus/core/docs/content/locales/de-DE/template-slides.md +8 -8
  152. package/corpus/core/docs/content/locales/de-DE/template-videos.md +6 -6
  153. package/corpus/core/docs/content/locales/de-DE/tracking.md +3 -3
  154. package/corpus/core/docs/content/locales/de-DE/using-your-agent.md +6 -6
  155. package/corpus/core/docs/content/locales/de-DE/voice-input.md +9 -9
  156. package/corpus/core/docs/content/locales/de-DE/what-is-agent-native.md +6 -6
  157. package/corpus/core/docs/content/locales/de-DE/workspace-connections.md +9 -9
  158. package/corpus/core/docs/content/locales/de-DE/workspace-management.md +5 -5
  159. package/corpus/core/docs/content/locales/de-DE/workspace.md +23 -23
  160. package/corpus/core/docs/content/locales/de-DE/writing-agent-instructions.md +30 -30
  161. package/corpus/core/docs/content/locales/es-ES/a2a-protocol.md +7 -7
  162. package/corpus/core/docs/content/locales/es-ES/actions.md +2 -2
  163. package/corpus/core/docs/content/locales/es-ES/agent-mentions.md +3 -3
  164. package/corpus/core/docs/content/locales/es-ES/agent-surfaces.md +7 -7
  165. package/corpus/core/docs/content/locales/es-ES/agent-teams.md +3 -3
  166. package/corpus/core/docs/content/locales/es-ES/agent-web-surfaces.md +5 -5
  167. package/corpus/core/docs/content/locales/es-ES/authentication.md +6 -6
  168. package/corpus/core/docs/content/locales/es-ES/automations.md +8 -8
  169. package/corpus/core/docs/content/locales/es-ES/blueprint-installer.md +2 -2
  170. package/corpus/core/docs/content/locales/es-ES/client.md +1 -1
  171. package/corpus/core/docs/content/locales/es-ES/cloneable-saas.md +2 -2
  172. package/corpus/core/docs/content/locales/es-ES/code-agents-ui.md +4 -4
  173. package/corpus/core/docs/content/locales/es-ES/components.md +5 -5
  174. package/corpus/core/docs/content/locales/es-ES/context-awareness.md +8 -8
  175. package/corpus/core/docs/content/locales/es-ES/creating-templates.md +12 -12
  176. package/corpus/core/docs/content/locales/es-ES/cross-app-sso.md +3 -3
  177. package/corpus/core/docs/content/locales/es-ES/database.md +5 -5
  178. package/corpus/core/docs/content/locales/es-ES/deployment.md +4 -4
  179. package/corpus/core/docs/content/locales/es-ES/dispatch.md +3 -3
  180. package/corpus/core/docs/content/locales/es-ES/drop-in-agent.md +8 -8
  181. package/corpus/core/docs/content/locales/es-ES/durable-resume.md +1 -1
  182. package/corpus/core/docs/content/locales/es-ES/embedding-sdk.md +2 -2
  183. package/corpus/core/docs/content/locales/es-ES/evals.md +2 -2
  184. package/corpus/core/docs/content/locales/es-ES/extensions.md +2 -2
  185. package/corpus/core/docs/content/locales/es-ES/external-agents.md +5 -5
  186. package/corpus/core/docs/content/locales/es-ES/faq.md +3 -3
  187. package/corpus/core/docs/content/locales/es-ES/file-uploads.md +4 -4
  188. package/corpus/core/docs/content/locales/es-ES/frames.md +1 -1
  189. package/corpus/core/docs/content/locales/es-ES/getting-started.md +13 -13
  190. package/corpus/core/docs/content/locales/es-ES/harness-agents.md +3 -3
  191. package/corpus/core/docs/content/locales/es-ES/human-approval.md +3 -3
  192. package/corpus/core/docs/content/locales/es-ES/key-concepts.md +14 -14
  193. package/corpus/core/docs/content/locales/es-ES/local-file-mode.md +6 -6
  194. package/corpus/core/docs/content/locales/es-ES/mcp-apps.md +4 -4
  195. package/corpus/core/docs/content/locales/es-ES/mcp-clients.md +8 -8
  196. package/corpus/core/docs/content/locales/es-ES/mcp-protocol.md +3 -3
  197. package/corpus/core/docs/content/locales/es-ES/messaging.md +4 -4
  198. package/corpus/core/docs/content/locales/es-ES/migration-workbench.md +1 -1
  199. package/corpus/core/docs/content/locales/es-ES/multi-app-workspace.md +1 -1
  200. package/corpus/core/docs/content/locales/es-ES/multi-tenancy.md +1 -1
  201. package/corpus/core/docs/content/locales/es-ES/native-chat-ui.md +3 -3
  202. package/corpus/core/docs/content/locales/es-ES/notifications.md +3 -3
  203. package/corpus/core/docs/content/locales/es-ES/observability.md +2 -2
  204. package/corpus/core/docs/content/locales/es-ES/observational-memory.md +2 -2
  205. package/corpus/core/docs/content/locales/es-ES/onboarding.md +8 -8
  206. package/corpus/core/docs/content/locales/es-ES/plan-plugin.md +3 -3
  207. package/corpus/core/docs/content/locales/es-ES/pr-visual-recap.md +11 -11
  208. package/corpus/core/docs/content/locales/es-ES/processors.md +1 -1
  209. package/corpus/core/docs/content/locales/es-ES/progress.md +2 -2
  210. package/corpus/core/docs/content/locales/es-ES/pure-agent-apps.md +1 -1
  211. package/corpus/core/docs/content/locales/es-ES/real-time-collaboration.md +6 -6
  212. package/corpus/core/docs/content/locales/es-ES/recurring-jobs.md +5 -5
  213. package/corpus/core/docs/content/locales/es-ES/routing.md +1 -1
  214. package/corpus/core/docs/content/locales/es-ES/sandbox-adapters.md +2 -2
  215. package/corpus/core/docs/content/locales/es-ES/security.md +8 -8
  216. package/corpus/core/docs/content/locales/es-ES/server.md +11 -11
  217. package/corpus/core/docs/content/locales/es-ES/sharing.md +6 -6
  218. package/corpus/core/docs/content/locales/es-ES/skills-guide.md +16 -16
  219. package/corpus/core/docs/content/locales/es-ES/template-analytics.md +10 -10
  220. package/corpus/core/docs/content/locales/es-ES/template-assets.md +19 -19
  221. package/corpus/core/docs/content/locales/es-ES/template-brain.md +11 -11
  222. package/corpus/core/docs/content/locales/es-ES/template-calendar.md +9 -9
  223. package/corpus/core/docs/content/locales/es-ES/template-chat.md +3 -3
  224. package/corpus/core/docs/content/locales/es-ES/template-clips.md +14 -14
  225. package/corpus/core/docs/content/locales/es-ES/template-content.md +13 -13
  226. package/corpus/core/docs/content/locales/es-ES/template-design.md +7 -7
  227. package/corpus/core/docs/content/locales/es-ES/template-dispatch.md +8 -8
  228. package/corpus/core/docs/content/locales/es-ES/template-forms.md +9 -9
  229. package/corpus/core/docs/content/locales/es-ES/template-mail.md +6 -6
  230. package/corpus/core/docs/content/locales/es-ES/template-plan.md +3 -3
  231. package/corpus/core/docs/content/locales/es-ES/template-slides.md +8 -8
  232. package/corpus/core/docs/content/locales/es-ES/template-videos.md +5 -5
  233. package/corpus/core/docs/content/locales/es-ES/tracking.md +3 -3
  234. package/corpus/core/docs/content/locales/es-ES/using-your-agent.md +5 -5
  235. package/corpus/core/docs/content/locales/es-ES/voice-input.md +4 -4
  236. package/corpus/core/docs/content/locales/es-ES/what-is-agent-native.md +6 -6
  237. package/corpus/core/docs/content/locales/es-ES/workspace-connections.md +8 -8
  238. package/corpus/core/docs/content/locales/es-ES/workspace-management.md +4 -4
  239. package/corpus/core/docs/content/locales/es-ES/workspace.md +23 -23
  240. package/corpus/core/docs/content/locales/es-ES/writing-agent-instructions.md +18 -18
  241. package/corpus/core/docs/content/locales/fr-FR/a2a-protocol.md +7 -7
  242. package/corpus/core/docs/content/locales/fr-FR/actions.md +2 -2
  243. package/corpus/core/docs/content/locales/fr-FR/agent-mentions.md +3 -3
  244. package/corpus/core/docs/content/locales/fr-FR/agent-surfaces.md +7 -7
  245. package/corpus/core/docs/content/locales/fr-FR/agent-teams.md +3 -3
  246. package/corpus/core/docs/content/locales/fr-FR/agent-web-surfaces.md +5 -5
  247. package/corpus/core/docs/content/locales/fr-FR/authentication.md +6 -6
  248. package/corpus/core/docs/content/locales/fr-FR/automations.md +8 -8
  249. package/corpus/core/docs/content/locales/fr-FR/blueprint-installer.md +2 -2
  250. package/corpus/core/docs/content/locales/fr-FR/client.md +1 -1
  251. package/corpus/core/docs/content/locales/fr-FR/cloneable-saas.md +2 -2
  252. package/corpus/core/docs/content/locales/fr-FR/code-agents-ui.md +4 -4
  253. package/corpus/core/docs/content/locales/fr-FR/components.md +5 -5
  254. package/corpus/core/docs/content/locales/fr-FR/context-awareness.md +8 -8
  255. package/corpus/core/docs/content/locales/fr-FR/creating-templates.md +12 -12
  256. package/corpus/core/docs/content/locales/fr-FR/cross-app-sso.md +4 -4
  257. package/corpus/core/docs/content/locales/fr-FR/database.md +5 -5
  258. package/corpus/core/docs/content/locales/fr-FR/deployment.md +5 -5
  259. package/corpus/core/docs/content/locales/fr-FR/dispatch.md +3 -3
  260. package/corpus/core/docs/content/locales/fr-FR/drop-in-agent.md +9 -9
  261. package/corpus/core/docs/content/locales/fr-FR/durable-resume.md +1 -1
  262. package/corpus/core/docs/content/locales/fr-FR/embedding-sdk.md +7 -7
  263. package/corpus/core/docs/content/locales/fr-FR/evals.md +2 -2
  264. package/corpus/core/docs/content/locales/fr-FR/extensions.md +2 -2
  265. package/corpus/core/docs/content/locales/fr-FR/external-agents.md +5 -5
  266. package/corpus/core/docs/content/locales/fr-FR/faq.md +3 -3
  267. package/corpus/core/docs/content/locales/fr-FR/file-uploads.md +5 -5
  268. package/corpus/core/docs/content/locales/fr-FR/frames.md +1 -1
  269. package/corpus/core/docs/content/locales/fr-FR/getting-started.md +13 -13
  270. package/corpus/core/docs/content/locales/fr-FR/harness-agents.md +3 -3
  271. package/corpus/core/docs/content/locales/fr-FR/human-approval.md +3 -3
  272. package/corpus/core/docs/content/locales/fr-FR/key-concepts.md +15 -15
  273. package/corpus/core/docs/content/locales/fr-FR/local-file-mode.md +5 -5
  274. package/corpus/core/docs/content/locales/fr-FR/mcp-apps.md +4 -4
  275. package/corpus/core/docs/content/locales/fr-FR/mcp-clients.md +8 -8
  276. package/corpus/core/docs/content/locales/fr-FR/mcp-protocol.md +3 -3
  277. package/corpus/core/docs/content/locales/fr-FR/messaging.md +4 -4
  278. package/corpus/core/docs/content/locales/fr-FR/migration-workbench.md +1 -1
  279. package/corpus/core/docs/content/locales/fr-FR/multi-app-workspace.md +1 -1
  280. package/corpus/core/docs/content/locales/fr-FR/multi-tenancy.md +1 -1
  281. package/corpus/core/docs/content/locales/fr-FR/native-chat-ui.md +3 -3
  282. package/corpus/core/docs/content/locales/fr-FR/notifications.md +3 -3
  283. package/corpus/core/docs/content/locales/fr-FR/observability.md +2 -2
  284. package/corpus/core/docs/content/locales/fr-FR/observational-memory.md +2 -2
  285. package/corpus/core/docs/content/locales/fr-FR/onboarding.md +8 -8
  286. package/corpus/core/docs/content/locales/fr-FR/plan-plugin.md +3 -3
  287. package/corpus/core/docs/content/locales/fr-FR/pr-visual-recap.md +11 -11
  288. package/corpus/core/docs/content/locales/fr-FR/processors.md +1 -1
  289. package/corpus/core/docs/content/locales/fr-FR/progress.md +2 -2
  290. package/corpus/core/docs/content/locales/fr-FR/pure-agent-apps.md +1 -1
  291. package/corpus/core/docs/content/locales/fr-FR/real-time-collaboration.md +8 -8
  292. package/corpus/core/docs/content/locales/fr-FR/recurring-jobs.md +5 -5
  293. package/corpus/core/docs/content/locales/fr-FR/routing.md +1 -1
  294. package/corpus/core/docs/content/locales/fr-FR/sandbox-adapters.md +2 -2
  295. package/corpus/core/docs/content/locales/fr-FR/security.md +8 -8
  296. package/corpus/core/docs/content/locales/fr-FR/server.md +10 -10
  297. package/corpus/core/docs/content/locales/fr-FR/sharing.md +6 -6
  298. package/corpus/core/docs/content/locales/fr-FR/skills-guide.md +16 -16
  299. package/corpus/core/docs/content/locales/fr-FR/template-analytics.md +10 -10
  300. package/corpus/core/docs/content/locales/fr-FR/template-assets.md +20 -20
  301. package/corpus/core/docs/content/locales/fr-FR/template-brain.md +11 -11
  302. package/corpus/core/docs/content/locales/fr-FR/template-calendar.md +9 -9
  303. package/corpus/core/docs/content/locales/fr-FR/template-chat.md +3 -3
  304. package/corpus/core/docs/content/locales/fr-FR/template-clips.md +15 -15
  305. package/corpus/core/docs/content/locales/fr-FR/template-content.md +13 -13
  306. package/corpus/core/docs/content/locales/fr-FR/template-design.md +8 -8
  307. package/corpus/core/docs/content/locales/fr-FR/template-dispatch.md +8 -8
  308. package/corpus/core/docs/content/locales/fr-FR/template-forms.md +10 -10
  309. package/corpus/core/docs/content/locales/fr-FR/template-mail.md +6 -6
  310. package/corpus/core/docs/content/locales/fr-FR/template-plan.md +3 -3
  311. package/corpus/core/docs/content/locales/fr-FR/template-slides.md +9 -9
  312. package/corpus/core/docs/content/locales/fr-FR/template-videos.md +5 -5
  313. package/corpus/core/docs/content/locales/fr-FR/tracking.md +3 -3
  314. package/corpus/core/docs/content/locales/fr-FR/using-your-agent.md +5 -5
  315. package/corpus/core/docs/content/locales/fr-FR/voice-input.md +4 -4
  316. package/corpus/core/docs/content/locales/fr-FR/what-is-agent-native.md +6 -6
  317. package/corpus/core/docs/content/locales/fr-FR/workspace-connections.md +8 -8
  318. package/corpus/core/docs/content/locales/fr-FR/workspace-management.md +5 -5
  319. package/corpus/core/docs/content/locales/fr-FR/workspace.md +23 -23
  320. package/corpus/core/docs/content/locales/fr-FR/writing-agent-instructions.md +18 -18
  321. package/corpus/core/docs/content/locales/hi-IN/a2a-protocol.md +7 -7
  322. package/corpus/core/docs/content/locales/hi-IN/actions.md +3 -3
  323. package/corpus/core/docs/content/locales/hi-IN/agent-mentions.md +3 -3
  324. package/corpus/core/docs/content/locales/hi-IN/agent-surfaces.md +7 -7
  325. package/corpus/core/docs/content/locales/hi-IN/agent-teams.md +3 -3
  326. package/corpus/core/docs/content/locales/hi-IN/agent-web-surfaces.md +5 -5
  327. package/corpus/core/docs/content/locales/hi-IN/authentication.md +6 -6
  328. package/corpus/core/docs/content/locales/hi-IN/automations.md +8 -8
  329. package/corpus/core/docs/content/locales/hi-IN/blueprint-installer.md +2 -2
  330. package/corpus/core/docs/content/locales/hi-IN/client.md +1 -1
  331. package/corpus/core/docs/content/locales/hi-IN/cloneable-saas.md +2 -2
  332. package/corpus/core/docs/content/locales/hi-IN/code-agents-ui.md +4 -4
  333. package/corpus/core/docs/content/locales/hi-IN/components.md +5 -5
  334. package/corpus/core/docs/content/locales/hi-IN/context-awareness.md +8 -8
  335. package/corpus/core/docs/content/locales/hi-IN/creating-templates.md +14 -14
  336. package/corpus/core/docs/content/locales/hi-IN/cross-app-sso.md +3 -3
  337. package/corpus/core/docs/content/locales/hi-IN/database.md +5 -5
  338. package/corpus/core/docs/content/locales/hi-IN/deployment.md +5 -5
  339. package/corpus/core/docs/content/locales/hi-IN/dispatch.md +4 -4
  340. package/corpus/core/docs/content/locales/hi-IN/drop-in-agent.md +8 -8
  341. package/corpus/core/docs/content/locales/hi-IN/durable-resume.md +1 -1
  342. package/corpus/core/docs/content/locales/hi-IN/embedding-sdk.md +2 -2
  343. package/corpus/core/docs/content/locales/hi-IN/evals.md +2 -2
  344. package/corpus/core/docs/content/locales/hi-IN/extensions.md +2 -2
  345. package/corpus/core/docs/content/locales/hi-IN/external-agents.md +5 -5
  346. package/corpus/core/docs/content/locales/hi-IN/faq.md +3 -3
  347. package/corpus/core/docs/content/locales/hi-IN/file-uploads.md +4 -4
  348. package/corpus/core/docs/content/locales/hi-IN/frames.md +1 -1
  349. package/corpus/core/docs/content/locales/hi-IN/getting-started.md +14 -14
  350. package/corpus/core/docs/content/locales/hi-IN/harness-agents.md +3 -3
  351. package/corpus/core/docs/content/locales/hi-IN/human-approval.md +3 -3
  352. package/corpus/core/docs/content/locales/hi-IN/key-concepts.md +14 -14
  353. package/corpus/core/docs/content/locales/hi-IN/local-file-mode.md +5 -5
  354. package/corpus/core/docs/content/locales/hi-IN/mcp-apps.md +4 -4
  355. package/corpus/core/docs/content/locales/hi-IN/mcp-clients.md +7 -7
  356. package/corpus/core/docs/content/locales/hi-IN/mcp-protocol.md +3 -3
  357. package/corpus/core/docs/content/locales/hi-IN/messaging.md +6 -6
  358. package/corpus/core/docs/content/locales/hi-IN/migration-workbench.md +1 -1
  359. package/corpus/core/docs/content/locales/hi-IN/multi-app-workspace.md +1 -1
  360. package/corpus/core/docs/content/locales/hi-IN/multi-tenancy.md +1 -1
  361. package/corpus/core/docs/content/locales/hi-IN/native-chat-ui.md +3 -3
  362. package/corpus/core/docs/content/locales/hi-IN/notifications.md +3 -3
  363. package/corpus/core/docs/content/locales/hi-IN/observability.md +2 -2
  364. package/corpus/core/docs/content/locales/hi-IN/observational-memory.md +2 -2
  365. package/corpus/core/docs/content/locales/hi-IN/onboarding.md +8 -8
  366. package/corpus/core/docs/content/locales/hi-IN/plan-plugin.md +3 -3
  367. package/corpus/core/docs/content/locales/hi-IN/pr-visual-recap.md +11 -11
  368. package/corpus/core/docs/content/locales/hi-IN/processors.md +1 -1
  369. package/corpus/core/docs/content/locales/hi-IN/progress.md +2 -2
  370. package/corpus/core/docs/content/locales/hi-IN/pure-agent-apps.md +1 -1
  371. package/corpus/core/docs/content/locales/hi-IN/real-time-collaboration.md +6 -6
  372. package/corpus/core/docs/content/locales/hi-IN/recurring-jobs.md +5 -5
  373. package/corpus/core/docs/content/locales/hi-IN/routing.md +1 -1
  374. package/corpus/core/docs/content/locales/hi-IN/sandbox-adapters.md +2 -2
  375. package/corpus/core/docs/content/locales/hi-IN/security.md +8 -8
  376. package/corpus/core/docs/content/locales/hi-IN/server.md +10 -10
  377. package/corpus/core/docs/content/locales/hi-IN/sharing.md +6 -6
  378. package/corpus/core/docs/content/locales/hi-IN/skills-guide.md +16 -16
  379. package/corpus/core/docs/content/locales/hi-IN/template-analytics.md +10 -10
  380. package/corpus/core/docs/content/locales/hi-IN/template-assets.md +19 -19
  381. package/corpus/core/docs/content/locales/hi-IN/template-brain.md +11 -11
  382. package/corpus/core/docs/content/locales/hi-IN/template-calendar.md +9 -9
  383. package/corpus/core/docs/content/locales/hi-IN/template-chat.md +3 -3
  384. package/corpus/core/docs/content/locales/hi-IN/template-clips.md +14 -14
  385. package/corpus/core/docs/content/locales/hi-IN/template-content.md +13 -13
  386. package/corpus/core/docs/content/locales/hi-IN/template-design.md +7 -7
  387. package/corpus/core/docs/content/locales/hi-IN/template-dispatch.md +9 -9
  388. package/corpus/core/docs/content/locales/hi-IN/template-forms.md +9 -9
  389. package/corpus/core/docs/content/locales/hi-IN/template-mail.md +6 -6
  390. package/corpus/core/docs/content/locales/hi-IN/template-plan.md +3 -3
  391. package/corpus/core/docs/content/locales/hi-IN/template-slides.md +8 -8
  392. package/corpus/core/docs/content/locales/hi-IN/template-videos.md +5 -5
  393. package/corpus/core/docs/content/locales/hi-IN/tracking.md +3 -3
  394. package/corpus/core/docs/content/locales/hi-IN/using-your-agent.md +1 -1
  395. package/corpus/core/docs/content/locales/hi-IN/voice-input.md +4 -4
  396. package/corpus/core/docs/content/locales/hi-IN/what-is-agent-native.md +4 -4
  397. package/corpus/core/docs/content/locales/hi-IN/workspace-connections.md +8 -8
  398. package/corpus/core/docs/content/locales/hi-IN/workspace-management.md +4 -4
  399. package/corpus/core/docs/content/locales/hi-IN/workspace.md +23 -23
  400. package/corpus/core/docs/content/locales/hi-IN/writing-agent-instructions.md +18 -18
  401. package/corpus/core/docs/content/locales/ja-JP/a2a-protocol.md +7 -7
  402. package/corpus/core/docs/content/locales/ja-JP/actions.md +3 -3
  403. package/corpus/core/docs/content/locales/ja-JP/agent-mentions.md +3 -3
  404. package/corpus/core/docs/content/locales/ja-JP/agent-surfaces.md +7 -7
  405. package/corpus/core/docs/content/locales/ja-JP/agent-teams.md +3 -3
  406. package/corpus/core/docs/content/locales/ja-JP/agent-web-surfaces.md +5 -5
  407. package/corpus/core/docs/content/locales/ja-JP/authentication.md +6 -6
  408. package/corpus/core/docs/content/locales/ja-JP/automations.md +8 -8
  409. package/corpus/core/docs/content/locales/ja-JP/blueprint-installer.md +2 -2
  410. package/corpus/core/docs/content/locales/ja-JP/client.md +1 -1
  411. package/corpus/core/docs/content/locales/ja-JP/cloneable-saas.md +2 -2
  412. package/corpus/core/docs/content/locales/ja-JP/code-agents-ui.md +4 -4
  413. package/corpus/core/docs/content/locales/ja-JP/components.md +5 -5
  414. package/corpus/core/docs/content/locales/ja-JP/context-awareness.md +8 -8
  415. package/corpus/core/docs/content/locales/ja-JP/creating-templates.md +12 -12
  416. package/corpus/core/docs/content/locales/ja-JP/cross-app-sso.md +3 -3
  417. package/corpus/core/docs/content/locales/ja-JP/database.md +7 -7
  418. package/corpus/core/docs/content/locales/ja-JP/deployment.md +4 -4
  419. package/corpus/core/docs/content/locales/ja-JP/dispatch.md +4 -4
  420. package/corpus/core/docs/content/locales/ja-JP/drop-in-agent.md +8 -8
  421. package/corpus/core/docs/content/locales/ja-JP/durable-resume.md +1 -1
  422. package/corpus/core/docs/content/locales/ja-JP/embedding-sdk.md +2 -2
  423. package/corpus/core/docs/content/locales/ja-JP/evals.md +2 -2
  424. package/corpus/core/docs/content/locales/ja-JP/extensions.md +2 -2
  425. package/corpus/core/docs/content/locales/ja-JP/external-agents.md +5 -5
  426. package/corpus/core/docs/content/locales/ja-JP/faq.md +3 -3
  427. package/corpus/core/docs/content/locales/ja-JP/file-uploads.md +4 -4
  428. package/corpus/core/docs/content/locales/ja-JP/frames.md +1 -1
  429. package/corpus/core/docs/content/locales/ja-JP/getting-started.md +13 -13
  430. package/corpus/core/docs/content/locales/ja-JP/harness-agents.md +3 -3
  431. package/corpus/core/docs/content/locales/ja-JP/human-approval.md +3 -3
  432. package/corpus/core/docs/content/locales/ja-JP/key-concepts.md +14 -14
  433. package/corpus/core/docs/content/locales/ja-JP/local-file-mode.md +5 -5
  434. package/corpus/core/docs/content/locales/ja-JP/mcp-apps.md +4 -4
  435. package/corpus/core/docs/content/locales/ja-JP/mcp-clients.md +8 -8
  436. package/corpus/core/docs/content/locales/ja-JP/mcp-protocol.md +3 -3
  437. package/corpus/core/docs/content/locales/ja-JP/messaging.md +6 -6
  438. package/corpus/core/docs/content/locales/ja-JP/migration-workbench.md +1 -1
  439. package/corpus/core/docs/content/locales/ja-JP/multi-app-workspace.md +1 -1
  440. package/corpus/core/docs/content/locales/ja-JP/multi-tenancy.md +1 -1
  441. package/corpus/core/docs/content/locales/ja-JP/native-chat-ui.md +3 -3
  442. package/corpus/core/docs/content/locales/ja-JP/notifications.md +3 -3
  443. package/corpus/core/docs/content/locales/ja-JP/observability.md +2 -2
  444. package/corpus/core/docs/content/locales/ja-JP/observational-memory.md +2 -2
  445. package/corpus/core/docs/content/locales/ja-JP/onboarding.md +8 -8
  446. package/corpus/core/docs/content/locales/ja-JP/plan-plugin.md +3 -3
  447. package/corpus/core/docs/content/locales/ja-JP/pr-visual-recap.md +11 -11
  448. package/corpus/core/docs/content/locales/ja-JP/processors.md +1 -1
  449. package/corpus/core/docs/content/locales/ja-JP/progress.md +2 -2
  450. package/corpus/core/docs/content/locales/ja-JP/pure-agent-apps.md +1 -1
  451. package/corpus/core/docs/content/locales/ja-JP/real-time-collaboration.md +6 -6
  452. package/corpus/core/docs/content/locales/ja-JP/recurring-jobs.md +5 -5
  453. package/corpus/core/docs/content/locales/ja-JP/routing.md +1 -1
  454. package/corpus/core/docs/content/locales/ja-JP/sandbox-adapters.md +2 -2
  455. package/corpus/core/docs/content/locales/ja-JP/security.md +8 -8
  456. package/corpus/core/docs/content/locales/ja-JP/server.md +10 -10
  457. package/corpus/core/docs/content/locales/ja-JP/sharing.md +6 -6
  458. package/corpus/core/docs/content/locales/ja-JP/skills-guide.md +16 -16
  459. package/corpus/core/docs/content/locales/ja-JP/template-analytics.md +10 -10
  460. package/corpus/core/docs/content/locales/ja-JP/template-assets.md +19 -19
  461. package/corpus/core/docs/content/locales/ja-JP/template-brain.md +11 -11
  462. package/corpus/core/docs/content/locales/ja-JP/template-calendar.md +9 -9
  463. package/corpus/core/docs/content/locales/ja-JP/template-chat.md +3 -3
  464. package/corpus/core/docs/content/locales/ja-JP/template-clips.md +14 -14
  465. package/corpus/core/docs/content/locales/ja-JP/template-content.md +13 -13
  466. package/corpus/core/docs/content/locales/ja-JP/template-design.md +7 -7
  467. package/corpus/core/docs/content/locales/ja-JP/template-dispatch.md +12 -12
  468. package/corpus/core/docs/content/locales/ja-JP/template-forms.md +9 -9
  469. package/corpus/core/docs/content/locales/ja-JP/template-mail.md +6 -6
  470. package/corpus/core/docs/content/locales/ja-JP/template-plan.md +3 -3
  471. package/corpus/core/docs/content/locales/ja-JP/template-slides.md +8 -8
  472. package/corpus/core/docs/content/locales/ja-JP/template-videos.md +5 -5
  473. package/corpus/core/docs/content/locales/ja-JP/tracking.md +3 -3
  474. package/corpus/core/docs/content/locales/ja-JP/using-your-agent.md +4 -4
  475. package/corpus/core/docs/content/locales/ja-JP/voice-input.md +4 -4
  476. package/corpus/core/docs/content/locales/ja-JP/what-is-agent-native.md +4 -4
  477. package/corpus/core/docs/content/locales/ja-JP/workspace-connections.md +8 -8
  478. package/corpus/core/docs/content/locales/ja-JP/workspace-management.md +5 -5
  479. package/corpus/core/docs/content/locales/ja-JP/workspace.md +23 -23
  480. package/corpus/core/docs/content/locales/ja-JP/writing-agent-instructions.md +18 -18
  481. package/corpus/core/docs/content/locales/ko-KR/a2a-protocol.md +7 -7
  482. package/corpus/core/docs/content/locales/ko-KR/actions.md +3 -3
  483. package/corpus/core/docs/content/locales/ko-KR/agent-mentions.md +3 -3
  484. package/corpus/core/docs/content/locales/ko-KR/agent-surfaces.md +15 -15
  485. package/corpus/core/docs/content/locales/ko-KR/agent-teams.md +3 -3
  486. package/corpus/core/docs/content/locales/ko-KR/agent-web-surfaces.md +5 -5
  487. package/corpus/core/docs/content/locales/ko-KR/authentication.md +13 -13
  488. package/corpus/core/docs/content/locales/ko-KR/automations.md +8 -8
  489. package/corpus/core/docs/content/locales/ko-KR/blueprint-installer.md +2 -2
  490. package/corpus/core/docs/content/locales/ko-KR/client.md +1 -1
  491. package/corpus/core/docs/content/locales/ko-KR/cloneable-saas.md +2 -2
  492. package/corpus/core/docs/content/locales/ko-KR/code-agents-ui.md +4 -4
  493. package/corpus/core/docs/content/locales/ko-KR/components.md +5 -5
  494. package/corpus/core/docs/content/locales/ko-KR/context-awareness.md +8 -8
  495. package/corpus/core/docs/content/locales/ko-KR/creating-templates.md +12 -12
  496. package/corpus/core/docs/content/locales/ko-KR/cross-app-sso.md +3 -3
  497. package/corpus/core/docs/content/locales/ko-KR/database.md +7 -7
  498. package/corpus/core/docs/content/locales/ko-KR/deployment.md +4 -4
  499. package/corpus/core/docs/content/locales/ko-KR/dispatch.md +4 -4
  500. package/corpus/core/docs/content/locales/ko-KR/drop-in-agent.md +8 -8
  501. package/corpus/core/docs/content/locales/ko-KR/durable-resume.md +1 -1
  502. package/corpus/core/docs/content/locales/ko-KR/embedding-sdk.md +2 -2
  503. package/corpus/core/docs/content/locales/ko-KR/evals.md +2 -2
  504. package/corpus/core/docs/content/locales/ko-KR/extensions.md +2 -2
  505. package/corpus/core/docs/content/locales/ko-KR/external-agents.md +5 -5
  506. package/corpus/core/docs/content/locales/ko-KR/faq.md +3 -3
  507. package/corpus/core/docs/content/locales/ko-KR/file-uploads.md +4 -4
  508. package/corpus/core/docs/content/locales/ko-KR/frames.md +1 -1
  509. package/corpus/core/docs/content/locales/ko-KR/getting-started.md +13 -13
  510. package/corpus/core/docs/content/locales/ko-KR/harness-agents.md +3 -3
  511. package/corpus/core/docs/content/locales/ko-KR/human-approval.md +3 -3
  512. package/corpus/core/docs/content/locales/ko-KR/key-concepts.md +14 -14
  513. package/corpus/core/docs/content/locales/ko-KR/local-file-mode.md +5 -5
  514. package/corpus/core/docs/content/locales/ko-KR/mcp-apps.md +4 -4
  515. package/corpus/core/docs/content/locales/ko-KR/mcp-clients.md +8 -8
  516. package/corpus/core/docs/content/locales/ko-KR/mcp-protocol.md +3 -3
  517. package/corpus/core/docs/content/locales/ko-KR/messaging.md +6 -6
  518. package/corpus/core/docs/content/locales/ko-KR/migration-workbench.md +1 -1
  519. package/corpus/core/docs/content/locales/ko-KR/multi-app-workspace.md +1 -1
  520. package/corpus/core/docs/content/locales/ko-KR/multi-tenancy.md +1 -1
  521. package/corpus/core/docs/content/locales/ko-KR/native-chat-ui.md +3 -3
  522. package/corpus/core/docs/content/locales/ko-KR/notifications.md +3 -3
  523. package/corpus/core/docs/content/locales/ko-KR/observability.md +2 -2
  524. package/corpus/core/docs/content/locales/ko-KR/observational-memory.md +2 -2
  525. package/corpus/core/docs/content/locales/ko-KR/onboarding.md +8 -8
  526. package/corpus/core/docs/content/locales/ko-KR/plan-plugin.md +3 -3
  527. package/corpus/core/docs/content/locales/ko-KR/pr-visual-recap.md +11 -11
  528. package/corpus/core/docs/content/locales/ko-KR/processors.md +1 -1
  529. package/corpus/core/docs/content/locales/ko-KR/progress.md +2 -2
  530. package/corpus/core/docs/content/locales/ko-KR/pure-agent-apps.md +1 -1
  531. package/corpus/core/docs/content/locales/ko-KR/real-time-collaboration.md +6 -6
  532. package/corpus/core/docs/content/locales/ko-KR/recurring-jobs.md +5 -5
  533. package/corpus/core/docs/content/locales/ko-KR/routing.md +1 -1
  534. package/corpus/core/docs/content/locales/ko-KR/sandbox-adapters.md +2 -2
  535. package/corpus/core/docs/content/locales/ko-KR/security.md +8 -8
  536. package/corpus/core/docs/content/locales/ko-KR/server.md +10 -10
  537. package/corpus/core/docs/content/locales/ko-KR/sharing.md +6 -6
  538. package/corpus/core/docs/content/locales/ko-KR/skills-guide.md +16 -16
  539. package/corpus/core/docs/content/locales/ko-KR/template-analytics.md +10 -10
  540. package/corpus/core/docs/content/locales/ko-KR/template-assets.md +19 -19
  541. package/corpus/core/docs/content/locales/ko-KR/template-brain.md +11 -11
  542. package/corpus/core/docs/content/locales/ko-KR/template-calendar.md +9 -9
  543. package/corpus/core/docs/content/locales/ko-KR/template-chat.md +3 -3
  544. package/corpus/core/docs/content/locales/ko-KR/template-clips.md +14 -14
  545. package/corpus/core/docs/content/locales/ko-KR/template-content.md +13 -13
  546. package/corpus/core/docs/content/locales/ko-KR/template-design.md +7 -7
  547. package/corpus/core/docs/content/locales/ko-KR/template-dispatch.md +11 -11
  548. package/corpus/core/docs/content/locales/ko-KR/template-forms.md +9 -9
  549. package/corpus/core/docs/content/locales/ko-KR/template-mail.md +6 -6
  550. package/corpus/core/docs/content/locales/ko-KR/template-plan.md +3 -3
  551. package/corpus/core/docs/content/locales/ko-KR/template-slides.md +8 -8
  552. package/corpus/core/docs/content/locales/ko-KR/template-videos.md +5 -5
  553. package/corpus/core/docs/content/locales/ko-KR/tracking.md +3 -3
  554. package/corpus/core/docs/content/locales/ko-KR/using-your-agent.md +5 -5
  555. package/corpus/core/docs/content/locales/ko-KR/voice-input.md +4 -4
  556. package/corpus/core/docs/content/locales/ko-KR/what-is-agent-native.md +6 -6
  557. package/corpus/core/docs/content/locales/ko-KR/workspace-connections.md +8 -8
  558. package/corpus/core/docs/content/locales/ko-KR/workspace-management.md +4 -4
  559. package/corpus/core/docs/content/locales/ko-KR/workspace.md +23 -23
  560. package/corpus/core/docs/content/locales/ko-KR/writing-agent-instructions.md +18 -18
  561. package/corpus/core/docs/content/locales/pt-BR/a2a-protocol.md +7 -7
  562. package/corpus/core/docs/content/locales/pt-BR/actions.md +2 -2
  563. package/corpus/core/docs/content/locales/pt-BR/agent-mentions.md +3 -3
  564. package/corpus/core/docs/content/locales/pt-BR/agent-surfaces.md +7 -7
  565. package/corpus/core/docs/content/locales/pt-BR/agent-teams.md +3 -3
  566. package/corpus/core/docs/content/locales/pt-BR/agent-web-surfaces.md +5 -5
  567. package/corpus/core/docs/content/locales/pt-BR/authentication.md +6 -6
  568. package/corpus/core/docs/content/locales/pt-BR/automations.md +8 -8
  569. package/corpus/core/docs/content/locales/pt-BR/blueprint-installer.md +2 -2
  570. package/corpus/core/docs/content/locales/pt-BR/client.md +2 -2
  571. package/corpus/core/docs/content/locales/pt-BR/cloneable-saas.md +2 -2
  572. package/corpus/core/docs/content/locales/pt-BR/code-agents-ui.md +4 -4
  573. package/corpus/core/docs/content/locales/pt-BR/components.md +5 -5
  574. package/corpus/core/docs/content/locales/pt-BR/context-awareness.md +8 -8
  575. package/corpus/core/docs/content/locales/pt-BR/creating-templates.md +12 -12
  576. package/corpus/core/docs/content/locales/pt-BR/cross-app-sso.md +3 -3
  577. package/corpus/core/docs/content/locales/pt-BR/database.md +5 -5
  578. package/corpus/core/docs/content/locales/pt-BR/deployment.md +5 -5
  579. package/corpus/core/docs/content/locales/pt-BR/dispatch.md +3 -3
  580. package/corpus/core/docs/content/locales/pt-BR/drop-in-agent.md +9 -9
  581. package/corpus/core/docs/content/locales/pt-BR/durable-resume.md +1 -1
  582. package/corpus/core/docs/content/locales/pt-BR/embedding-sdk.md +2 -2
  583. package/corpus/core/docs/content/locales/pt-BR/evals.md +2 -2
  584. package/corpus/core/docs/content/locales/pt-BR/extensions.md +2 -2
  585. package/corpus/core/docs/content/locales/pt-BR/external-agents.md +5 -5
  586. package/corpus/core/docs/content/locales/pt-BR/faq.md +3 -3
  587. package/corpus/core/docs/content/locales/pt-BR/file-uploads.md +4 -4
  588. package/corpus/core/docs/content/locales/pt-BR/frames.md +2 -2
  589. package/corpus/core/docs/content/locales/pt-BR/getting-started.md +13 -13
  590. package/corpus/core/docs/content/locales/pt-BR/harness-agents.md +3 -3
  591. package/corpus/core/docs/content/locales/pt-BR/human-approval.md +3 -3
  592. package/corpus/core/docs/content/locales/pt-BR/key-concepts.md +15 -15
  593. package/corpus/core/docs/content/locales/pt-BR/local-file-mode.md +5 -5
  594. package/corpus/core/docs/content/locales/pt-BR/mcp-apps.md +4 -4
  595. package/corpus/core/docs/content/locales/pt-BR/mcp-clients.md +8 -8
  596. package/corpus/core/docs/content/locales/pt-BR/mcp-protocol.md +3 -3
  597. package/corpus/core/docs/content/locales/pt-BR/messaging.md +4 -4
  598. package/corpus/core/docs/content/locales/pt-BR/migration-workbench.md +1 -1
  599. package/corpus/core/docs/content/locales/pt-BR/multi-app-workspace.md +1 -1
  600. package/corpus/core/docs/content/locales/pt-BR/multi-tenancy.md +1 -1
  601. package/corpus/core/docs/content/locales/pt-BR/native-chat-ui.md +3 -3
  602. package/corpus/core/docs/content/locales/pt-BR/notifications.md +3 -3
  603. package/corpus/core/docs/content/locales/pt-BR/observability.md +2 -2
  604. package/corpus/core/docs/content/locales/pt-BR/observational-memory.md +2 -2
  605. package/corpus/core/docs/content/locales/pt-BR/onboarding.md +8 -8
  606. package/corpus/core/docs/content/locales/pt-BR/plan-plugin.md +3 -3
  607. package/corpus/core/docs/content/locales/pt-BR/pr-visual-recap.md +11 -11
  608. package/corpus/core/docs/content/locales/pt-BR/processors.md +1 -1
  609. package/corpus/core/docs/content/locales/pt-BR/progress.md +2 -2
  610. package/corpus/core/docs/content/locales/pt-BR/pure-agent-apps.md +1 -1
  611. package/corpus/core/docs/content/locales/pt-BR/real-time-collaboration.md +6 -6
  612. package/corpus/core/docs/content/locales/pt-BR/recurring-jobs.md +5 -5
  613. package/corpus/core/docs/content/locales/pt-BR/routing.md +1 -1
  614. package/corpus/core/docs/content/locales/pt-BR/sandbox-adapters.md +2 -2
  615. package/corpus/core/docs/content/locales/pt-BR/security.md +9 -9
  616. package/corpus/core/docs/content/locales/pt-BR/server.md +10 -10
  617. package/corpus/core/docs/content/locales/pt-BR/sharing.md +6 -6
  618. package/corpus/core/docs/content/locales/pt-BR/skills-guide.md +16 -16
  619. package/corpus/core/docs/content/locales/pt-BR/template-analytics.md +10 -10
  620. package/corpus/core/docs/content/locales/pt-BR/template-assets.md +20 -20
  621. package/corpus/core/docs/content/locales/pt-BR/template-brain.md +11 -11
  622. package/corpus/core/docs/content/locales/pt-BR/template-calendar.md +9 -9
  623. package/corpus/core/docs/content/locales/pt-BR/template-chat.md +3 -3
  624. package/corpus/core/docs/content/locales/pt-BR/template-clips.md +15 -15
  625. package/corpus/core/docs/content/locales/pt-BR/template-content.md +13 -13
  626. package/corpus/core/docs/content/locales/pt-BR/template-design.md +8 -8
  627. package/corpus/core/docs/content/locales/pt-BR/template-dispatch.md +8 -8
  628. package/corpus/core/docs/content/locales/pt-BR/template-forms.md +10 -10
  629. package/corpus/core/docs/content/locales/pt-BR/template-mail.md +6 -6
  630. package/corpus/core/docs/content/locales/pt-BR/template-plan.md +3 -3
  631. package/corpus/core/docs/content/locales/pt-BR/template-slides.md +9 -9
  632. package/corpus/core/docs/content/locales/pt-BR/template-videos.md +5 -5
  633. package/corpus/core/docs/content/locales/pt-BR/tracking.md +3 -3
  634. package/corpus/core/docs/content/locales/pt-BR/using-your-agent.md +5 -5
  635. package/corpus/core/docs/content/locales/pt-BR/voice-input.md +4 -4
  636. package/corpus/core/docs/content/locales/pt-BR/what-is-agent-native.md +5 -5
  637. package/corpus/core/docs/content/locales/pt-BR/workspace-connections.md +8 -8
  638. package/corpus/core/docs/content/locales/pt-BR/workspace-management.md +4 -4
  639. package/corpus/core/docs/content/locales/pt-BR/workspace.md +23 -23
  640. package/corpus/core/docs/content/locales/pt-BR/writing-agent-instructions.md +18 -18
  641. package/corpus/core/docs/content/locales/zh-CN/a2a-protocol.md +7 -7
  642. package/corpus/core/docs/content/locales/zh-CN/actions.md +3 -3
  643. package/corpus/core/docs/content/locales/zh-CN/agent-mentions.md +3 -3
  644. package/corpus/core/docs/content/locales/zh-CN/agent-surfaces.md +7 -7
  645. package/corpus/core/docs/content/locales/zh-CN/agent-teams.md +3 -3
  646. package/corpus/core/docs/content/locales/zh-CN/agent-web-surfaces.md +5 -5
  647. package/corpus/core/docs/content/locales/zh-CN/authentication.md +13 -13
  648. package/corpus/core/docs/content/locales/zh-CN/automations.md +8 -8
  649. package/corpus/core/docs/content/locales/zh-CN/blueprint-installer.md +2 -2
  650. package/corpus/core/docs/content/locales/zh-CN/client.md +1 -1
  651. package/corpus/core/docs/content/locales/zh-CN/cloneable-saas.md +2 -2
  652. package/corpus/core/docs/content/locales/zh-CN/code-agents-ui.md +4 -4
  653. package/corpus/core/docs/content/locales/zh-CN/components.md +7 -7
  654. package/corpus/core/docs/content/locales/zh-CN/context-awareness.md +8 -8
  655. package/corpus/core/docs/content/locales/zh-CN/creating-templates.md +12 -12
  656. package/corpus/core/docs/content/locales/zh-CN/cross-app-sso.md +3 -3
  657. package/corpus/core/docs/content/locales/zh-CN/database.md +7 -7
  658. package/corpus/core/docs/content/locales/zh-CN/deployment.md +4 -4
  659. package/corpus/core/docs/content/locales/zh-CN/dispatch.md +4 -4
  660. package/corpus/core/docs/content/locales/zh-CN/drop-in-agent.md +8 -8
  661. package/corpus/core/docs/content/locales/zh-CN/durable-resume.md +1 -1
  662. package/corpus/core/docs/content/locales/zh-CN/embedding-sdk.md +2 -2
  663. package/corpus/core/docs/content/locales/zh-CN/evals.md +2 -2
  664. package/corpus/core/docs/content/locales/zh-CN/extensions.md +2 -2
  665. package/corpus/core/docs/content/locales/zh-CN/external-agents.md +5 -5
  666. package/corpus/core/docs/content/locales/zh-CN/faq.md +3 -3
  667. package/corpus/core/docs/content/locales/zh-CN/file-uploads.md +4 -4
  668. package/corpus/core/docs/content/locales/zh-CN/frames.md +2 -2
  669. package/corpus/core/docs/content/locales/zh-CN/getting-started.md +13 -13
  670. package/corpus/core/docs/content/locales/zh-CN/harness-agents.md +3 -3
  671. package/corpus/core/docs/content/locales/zh-CN/human-approval.md +3 -3
  672. package/corpus/core/docs/content/locales/zh-CN/key-concepts.md +14 -14
  673. package/corpus/core/docs/content/locales/zh-CN/local-file-mode.md +5 -5
  674. package/corpus/core/docs/content/locales/zh-CN/mcp-apps.md +4 -4
  675. package/corpus/core/docs/content/locales/zh-CN/mcp-clients.md +7 -7
  676. package/corpus/core/docs/content/locales/zh-CN/mcp-protocol.md +3 -3
  677. package/corpus/core/docs/content/locales/zh-CN/messaging.md +6 -6
  678. package/corpus/core/docs/content/locales/zh-CN/migration-workbench.md +1 -1
  679. package/corpus/core/docs/content/locales/zh-CN/multi-app-workspace.md +1 -1
  680. package/corpus/core/docs/content/locales/zh-CN/multi-tenancy.md +1 -1
  681. package/corpus/core/docs/content/locales/zh-CN/native-chat-ui.md +3 -3
  682. package/corpus/core/docs/content/locales/zh-CN/notifications.md +3 -3
  683. package/corpus/core/docs/content/locales/zh-CN/observability.md +2 -2
  684. package/corpus/core/docs/content/locales/zh-CN/observational-memory.md +2 -2
  685. package/corpus/core/docs/content/locales/zh-CN/onboarding.md +8 -8
  686. package/corpus/core/docs/content/locales/zh-CN/plan-plugin.md +3 -3
  687. package/corpus/core/docs/content/locales/zh-CN/pr-visual-recap.md +11 -11
  688. package/corpus/core/docs/content/locales/zh-CN/processors.md +1 -1
  689. package/corpus/core/docs/content/locales/zh-CN/progress.md +2 -2
  690. package/corpus/core/docs/content/locales/zh-CN/pure-agent-apps.md +1 -1
  691. package/corpus/core/docs/content/locales/zh-CN/real-time-collaboration.md +6 -6
  692. package/corpus/core/docs/content/locales/zh-CN/recurring-jobs.md +5 -5
  693. package/corpus/core/docs/content/locales/zh-CN/routing.md +1 -1
  694. package/corpus/core/docs/content/locales/zh-CN/sandbox-adapters.md +2 -2
  695. package/corpus/core/docs/content/locales/zh-CN/security.md +8 -8
  696. package/corpus/core/docs/content/locales/zh-CN/server.md +10 -10
  697. package/corpus/core/docs/content/locales/zh-CN/sharing.md +6 -6
  698. package/corpus/core/docs/content/locales/zh-CN/skills-guide.md +16 -16
  699. package/corpus/core/docs/content/locales/zh-CN/template-analytics.md +10 -10
  700. package/corpus/core/docs/content/locales/zh-CN/template-assets.md +20 -20
  701. package/corpus/core/docs/content/locales/zh-CN/template-brain.md +11 -11
  702. package/corpus/core/docs/content/locales/zh-CN/template-calendar.md +9 -9
  703. package/corpus/core/docs/content/locales/zh-CN/template-chat.md +3 -3
  704. package/corpus/core/docs/content/locales/zh-CN/template-clips.md +14 -14
  705. package/corpus/core/docs/content/locales/zh-CN/template-content.md +13 -13
  706. package/corpus/core/docs/content/locales/zh-CN/template-design.md +7 -7
  707. package/corpus/core/docs/content/locales/zh-CN/template-dispatch.md +11 -11
  708. package/corpus/core/docs/content/locales/zh-CN/template-forms.md +9 -9
  709. package/corpus/core/docs/content/locales/zh-CN/template-mail.md +6 -6
  710. package/corpus/core/docs/content/locales/zh-CN/template-plan.md +3 -3
  711. package/corpus/core/docs/content/locales/zh-CN/template-slides.md +8 -8
  712. package/corpus/core/docs/content/locales/zh-CN/template-videos.md +5 -5
  713. package/corpus/core/docs/content/locales/zh-CN/tracking.md +3 -3
  714. package/corpus/core/docs/content/locales/zh-CN/using-your-agent.md +5 -5
  715. package/corpus/core/docs/content/locales/zh-CN/voice-input.md +4 -4
  716. package/corpus/core/docs/content/locales/zh-CN/what-is-agent-native.md +5 -5
  717. package/corpus/core/docs/content/locales/zh-CN/workspace-connections.md +8 -8
  718. package/corpus/core/docs/content/locales/zh-CN/workspace-management.md +5 -5
  719. package/corpus/core/docs/content/locales/zh-CN/workspace.md +23 -23
  720. package/corpus/core/docs/content/locales/zh-CN/writing-agent-instructions.md +18 -18
  721. package/corpus/core/package.json +1 -1
  722. package/corpus/core/src/agent/production-agent.ts +35 -0
  723. package/corpus/core/src/agent/run-store.ts +2 -0
  724. package/corpus/core/src/client/changelog/Changelog.tsx +22 -10
  725. package/corpus/core/src/client/extensions/ExtensionsSidebarSection.tsx +405 -35
  726. package/corpus/core/src/client/i18n.tsx +13 -1
  727. package/corpus/core/src/templates/default/app/i18n/ar-SA.ts +275 -274
  728. package/corpus/core/src/templates/default/app/i18n/de-DE.ts +270 -260
  729. package/corpus/core/src/templates/default/app/i18n/es-ES.ts +282 -270
  730. package/corpus/core/src/templates/default/app/i18n/fr-FR.ts +275 -266
  731. package/corpus/core/src/templates/default/app/i18n/hi-IN.ts +274 -276
  732. package/corpus/core/src/templates/default/app/i18n/ja-JP.ts +280 -273
  733. package/corpus/core/src/templates/default/app/i18n/ko-KR.ts +274 -274
  734. package/corpus/core/src/templates/default/app/i18n/pt-BR.ts +273 -266
  735. package/corpus/core/src/templates/default/app/i18n/zh-CN.ts +273 -285
  736. package/corpus/templates/analytics/app/components/Markdown.tsx +36 -10
  737. package/corpus/templates/analytics/app/components/ProviderCorpusJobNotifier.tsx +41 -17
  738. package/corpus/templates/analytics/app/components/dashboard/CumulativeNetChart.tsx +3 -1
  739. package/corpus/templates/analytics/app/components/dashboard/DataTable.tsx +4 -2
  740. package/corpus/templates/analytics/app/components/dashboard/RecentActivity.tsx +13 -7
  741. package/corpus/templates/analytics/app/components/dashboard/RevenueChart.tsx +4 -1
  742. package/corpus/templates/analytics/app/components/dashboard/RevenueComparisonChart.tsx +3 -1
  743. package/corpus/templates/analytics/app/components/dashboard/SqlChart.tsx +13 -50
  744. package/corpus/templates/analytics/app/components/dashboard/TimeSeriesChart.tsx +3 -1
  745. package/corpus/templates/analytics/app/i18n-data.ts +5172 -1
  746. package/corpus/templates/analytics/app/pages/Ask.tsx +7 -4
  747. package/corpus/templates/analytics/app/pages/DataDictionary.tsx +66 -59
  748. package/corpus/templates/analytics/app/pages/DataSources.tsx +131 -96
  749. package/corpus/templates/analytics/app/pages/NotFound.tsx +8 -3
  750. package/corpus/templates/analytics/app/pages/Placeholder.tsx +4 -3
  751. package/corpus/templates/analytics/app/pages/adhoc/BlankDashboard.tsx +8 -5
  752. package/corpus/templates/analytics/app/pages/adhoc/_shared/KpiChart.tsx +4 -2
  753. package/corpus/templates/analytics/app/pages/adhoc/explorer/components/EventCombobox.tsx +16 -6
  754. package/corpus/templates/analytics/app/pages/adhoc/explorer/components/EventPanel.tsx +6 -2
  755. package/corpus/templates/analytics/app/pages/adhoc/explorer/components/ExplorerChart.tsx +14 -5
  756. package/corpus/templates/analytics/app/pages/adhoc/explorer/components/FilterBuilder.tsx +6 -3
  757. package/corpus/templates/analytics/app/pages/adhoc/explorer/components/GroupByPicker.tsx +7 -3
  758. package/corpus/templates/analytics/app/pages/adhoc/explorer/components/PropertyCombobox.tsx +12 -6
  759. package/corpus/templates/analytics/app/pages/adhoc/explorer/components/PropertyValueCombobox.tsx +9 -5
  760. package/corpus/templates/analytics/app/pages/adhoc/explorer/components/SqlPreview.tsx +3 -1
  761. package/corpus/templates/analytics/app/pages/adhoc/explorer/index.tsx +25 -15
  762. package/corpus/templates/analytics/app/pages/adhoc/explorer/types.ts +32 -30
  763. package/corpus/templates/analytics/app/pages/adhoc/explorer/use-explorer-config.ts +10 -6
  764. package/corpus/templates/analytics/app/pages/adhoc/explorer-dashboard/ChartCard.tsx +20 -10
  765. package/corpus/templates/analytics/app/pages/adhoc/explorer-dashboard/index.tsx +50 -33
  766. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/DashboardFilterBar.tsx +23 -14
  767. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/PanelEditorDialog.tsx +61 -55
  768. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/SqlChartCard.tsx +88 -106
  769. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/ViewSqlPopover.tsx +37 -49
  770. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/ViewsMenu.tsx +23 -16
  771. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/index.tsx +46 -40
  772. package/corpus/templates/analytics/app/pages/analyses/AnalysesList.tsx +11 -8
  773. package/corpus/templates/analytics/app/pages/analyses/AnalysisDetail.tsx +25 -21
  774. package/corpus/templates/analytics/app/pages/analyses/LegacyFusionAnalysis.tsx +175 -99
  775. package/corpus/templates/analytics/app/pages/overview/OverviewPage.tsx +30 -12
  776. package/corpus/templates/analytics/app/routes/$.tsx +2 -1
  777. package/corpus/templates/analytics/app/routes/analyses.$id.tsx +2 -1
  778. package/corpus/templates/analytics/app/routes/analyses._index.tsx +2 -1
  779. package/corpus/templates/analytics/app/routes/ask.tsx +2 -1
  780. package/corpus/templates/analytics/app/routes/catalog.tsx +38 -16
  781. package/corpus/templates/analytics/app/routes/chart.tsx +12 -3
  782. package/corpus/templates/analytics/app/routes/dashboards.$id.tsx +2 -1
  783. package/corpus/templates/analytics/app/routes/data-dictionary.tsx +2 -1
  784. package/corpus/templates/analytics/app/routes/data-sources.tsx +2 -1
  785. package/corpus/templates/analytics/app/routes/extensions.$id.tsx +3 -1
  786. package/corpus/templates/analytics/app/routes/extensions._index.tsx +3 -1
  787. package/corpus/templates/analytics/app/routes/overview.tsx +2 -1
  788. package/corpus/templates/analytics/app/routes/settings.tsx +2 -1
  789. package/corpus/templates/analytics/app/routes/team.tsx +2 -1
  790. package/corpus/templates/assets/app/components/library/CreateLibraryDialog.tsx +25 -15
  791. package/corpus/templates/assets/app/components/library/EditLibraryDialog.tsx +17 -10
  792. package/corpus/templates/assets/app/components/library/LibraryCard.tsx +20 -8
  793. package/corpus/templates/assets/app/i18n-data.ts +4065 -1
  794. package/corpus/templates/assets/app/routes/_index.tsx +15 -4
  795. package/corpus/templates/assets/app/routes/audit.tsx +79 -56
  796. package/corpus/templates/assets/app/routes/brand-kits.$id.tsx +565 -330
  797. package/corpus/templates/assets/app/routes/brand-kits.tsx +3 -1
  798. package/corpus/templates/assets/app/routes/extensions.$id.tsx +3 -1
  799. package/corpus/templates/assets/app/routes/extensions._index.tsx +3 -1
  800. package/corpus/templates/assets/app/routes/extensions.tsx +3 -1
  801. package/corpus/templates/assets/app/routes/library.tsx +107 -74
  802. package/corpus/templates/assets/app/routes/team.tsx +6 -3
  803. package/corpus/templates/brain/app/components/brain/CanonicalPreviewSheet.tsx +14 -10
  804. package/corpus/templates/brain/app/i18n-data.ts +5609 -1
  805. package/corpus/templates/brain/app/routes/extensions.$id.tsx +3 -1
  806. package/corpus/templates/brain/app/routes/extensions._index.tsx +3 -1
  807. package/corpus/templates/brain/app/routes/extensions.tsx +3 -1
  808. package/corpus/templates/brain/app/routes/knowledge.tsx +51 -38
  809. package/corpus/templates/brain/app/routes/review.tsx +259 -154
  810. package/corpus/templates/brain/app/routes/settings.tsx +114 -116
  811. package/corpus/templates/brain/app/routes/sources.tsx +421 -352
  812. package/corpus/templates/brain/app/routes/team.tsx +6 -2
  813. package/corpus/templates/calendar/app/components/CloudUpgrade.tsx +33 -51
  814. package/corpus/templates/calendar/app/components/ThemeToggle.tsx +3 -1
  815. package/corpus/templates/calendar/app/components/TimezoneCombobox.tsx +5 -3
  816. package/corpus/templates/calendar/app/components/booking/BookingConfirmation.tsx +27 -13
  817. package/corpus/templates/calendar/app/components/booking/BookingForm.tsx +25 -13
  818. package/corpus/templates/calendar/app/components/booking/TimeSlotPicker.tsx +4 -1
  819. package/corpus/templates/calendar/app/components/calendar/AddCalendarDialog.tsx +22 -16
  820. package/corpus/templates/calendar/app/components/calendar/ApolloPanel.tsx +14 -13
  821. package/corpus/templates/calendar/app/components/calendar/AttendeeAutocomplete.tsx +22 -11
  822. package/corpus/templates/calendar/app/components/calendar/CommandPalette.tsx +19 -16
  823. package/corpus/templates/calendar/app/components/calendar/CreateEventDialog.tsx +112 -72
  824. package/corpus/templates/calendar/app/components/calendar/DayView.tsx +3 -1
  825. package/corpus/templates/calendar/app/components/calendar/EventAttendeesSection.tsx +62 -24
  826. package/corpus/templates/calendar/app/components/calendar/EventDescription.tsx +4 -2
  827. package/corpus/templates/calendar/app/components/calendar/EventDetailPanel.tsx +17 -11
  828. package/corpus/templates/calendar/app/components/calendar/EventDetailPopover.tsx +167 -97
  829. package/corpus/templates/calendar/app/components/calendar/EventOptionControls.tsx +39 -25
  830. package/corpus/templates/calendar/app/components/calendar/FindTimePanel.tsx +28 -16
  831. package/corpus/templates/calendar/app/components/calendar/GoogleConnectBanner.tsx +90 -74
  832. package/corpus/templates/calendar/app/components/calendar/GoogleSetupWizard.tsx +42 -34
  833. package/corpus/templates/calendar/app/components/calendar/GoogleSyncButton.tsx +6 -6
  834. package/corpus/templates/calendar/app/components/calendar/GuestNotificationDialog.tsx +44 -37
  835. package/corpus/templates/calendar/app/components/calendar/IntegrationsSidebar.tsx +46 -52
  836. package/corpus/templates/calendar/app/components/calendar/KeyboardShortcutsHelp.tsx +31 -19
  837. package/corpus/templates/calendar/app/components/calendar/PeopleSearchDialog.tsx +13 -9
  838. package/corpus/templates/calendar/app/components/calendar/WeekView.tsx +6 -4
  839. package/corpus/templates/calendar/app/components/layout/AppLayout.tsx +13 -7
  840. package/corpus/templates/calendar/app/components/layout/Sidebar.tsx +19 -18
  841. package/corpus/templates/calendar/app/i18n/ar-SA.ts +2 -56
  842. package/corpus/templates/calendar/app/i18n/de-DE.ts +2 -57
  843. package/corpus/templates/calendar/app/i18n/en-US.ts +2 -56
  844. package/corpus/templates/calendar/app/i18n/es-ES.ts +2 -57
  845. package/corpus/templates/calendar/app/i18n/fr-FR.ts +2 -57
  846. package/corpus/templates/calendar/app/i18n/hi-IN.ts +2 -56
  847. package/corpus/templates/calendar/app/i18n/ja-JP.ts +2 -57
  848. package/corpus/templates/calendar/app/i18n/ko-KR.ts +2 -56
  849. package/corpus/templates/calendar/app/i18n/pt-BR.ts +2 -56
  850. package/corpus/templates/calendar/app/i18n/zh-CN.ts +2 -56
  851. package/corpus/templates/calendar/app/i18n-data.ts +8680 -7
  852. package/corpus/templates/calendar/app/pages/AvailabilitySettings.tsx +66 -34
  853. package/corpus/templates/calendar/app/pages/BookingLinksPage.tsx +286 -186
  854. package/corpus/templates/calendar/app/pages/BookingPage.tsx +37 -21
  855. package/corpus/templates/calendar/app/pages/BookingsList.tsx +36 -25
  856. package/corpus/templates/calendar/app/pages/CalendarView.tsx +66 -49
  857. package/corpus/templates/calendar/app/pages/ManageBookingPage.tsx +41 -29
  858. package/corpus/templates/calendar/app/pages/NotFound.tsx +4 -2
  859. package/corpus/templates/calendar/app/routes/_app.$.tsx +2 -1
  860. package/corpus/templates/calendar/app/routes/_app.booking-links.tsx +3 -1
  861. package/corpus/templates/calendar/app/routes/_app.settings.tsx +6 -3
  862. package/corpus/templates/calendar/app/routes/_app.team.tsx +8 -3
  863. package/corpus/templates/calendar/app/routes/booking-og-meta.ts +7 -4
  864. package/corpus/templates/calendar/app/routes/booking.manage.$token.tsx +2 -1
  865. package/corpus/templates/calendar/app/routes/event.tsx +14 -8
  866. package/corpus/templates/chat/app/i18n/ar-SA.ts +29 -23
  867. package/corpus/templates/chat/app/i18n/de-DE.ts +30 -22
  868. package/corpus/templates/chat/app/i18n/en-US.ts +7 -0
  869. package/corpus/templates/chat/app/i18n/es-ES.ts +30 -22
  870. package/corpus/templates/chat/app/i18n/fr-FR.ts +33 -25
  871. package/corpus/templates/chat/app/i18n/hi-IN.ts +30 -23
  872. package/corpus/templates/chat/app/i18n/ja-JP.ts +30 -23
  873. package/corpus/templates/chat/app/i18n/ko-KR.ts +30 -23
  874. package/corpus/templates/chat/app/i18n/pt-BR.ts +30 -22
  875. package/corpus/templates/chat/app/i18n/zh-CN.ts +29 -23
  876. package/corpus/templates/chat/app/routes/observability.tsx +2 -1
  877. package/corpus/templates/clips/app/components/capture-install-options.tsx +16 -11
  878. package/corpus/templates/clips/app/components/editable-recording-title.tsx +8 -7
  879. package/corpus/templates/clips/app/components/editor/chapters-editor.tsx +12 -9
  880. package/corpus/templates/clips/app/components/editor/editor-layout.tsx +15 -9
  881. package/corpus/templates/clips/app/components/editor/editor-toolbar.tsx +71 -57
  882. package/corpus/templates/clips/app/components/editor/split-button.tsx +6 -5
  883. package/corpus/templates/clips/app/components/editor/stitch-manager.tsx +21 -19
  884. package/corpus/templates/clips/app/components/editor/thumbnail-picker.tsx +39 -26
  885. package/corpus/templates/clips/app/components/editor/transcript-editor.tsx +10 -6
  886. package/corpus/templates/clips/app/components/library/bulk-action-toolbar.tsx +11 -7
  887. package/corpus/templates/clips/app/components/library/create-space-dialog.tsx +13 -9
  888. package/corpus/templates/clips/app/components/library/folder-tree.tsx +26 -24
  889. package/corpus/templates/clips/app/components/library/library-grid.tsx +118 -14
  890. package/corpus/templates/clips/app/components/library/library-layout.tsx +3 -1
  891. package/corpus/templates/clips/app/components/library/organization-switcher.tsx +24 -13
  892. package/corpus/templates/clips/app/components/library/recording-card.tsx +51 -34
  893. package/corpus/templates/clips/app/components/library/search-bar.tsx +14 -11
  894. package/corpus/templates/clips/app/components/meetings/auto-record-prompt.tsx +10 -6
  895. package/corpus/templates/clips/app/components/meetings/canvas-editor.tsx +8 -4
  896. package/corpus/templates/clips/app/components/meetings/meeting-card.tsx +32 -16
  897. package/corpus/templates/clips/app/components/meetings/quick-ask-sidebar.tsx +23 -23
  898. package/corpus/templates/clips/app/components/meetings/share-meeting-dialog.tsx +11 -7
  899. package/corpus/templates/clips/app/components/meetings/transcript-bubbles.tsx +8 -4
  900. package/corpus/templates/clips/app/components/player/access-password-prompt.tsx +6 -4
  901. package/corpus/templates/clips/app/components/player/comments-panel.tsx +22 -13
  902. package/corpus/templates/clips/app/components/player/delete-recording-menu.tsx +24 -79
  903. package/corpus/templates/clips/app/components/player/insights-panel.tsx +29 -15
  904. package/corpus/templates/clips/app/components/player/player-controls.tsx +3 -1
  905. package/corpus/templates/clips/app/components/player/settings-panel.tsx +44 -27
  906. package/corpus/templates/clips/app/components/player/share-dialog.tsx +38 -32
  907. package/corpus/templates/clips/app/components/player/sign-in-prompt-dialog.tsx +7 -5
  908. package/corpus/templates/clips/app/components/player/transcript-panel.tsx +46 -35
  909. package/corpus/templates/clips/app/components/player/video-player.tsx +11 -5
  910. package/corpus/templates/clips/app/components/recorder/camera-visualizer.tsx +20 -6
  911. package/corpus/templates/clips/app/components/recorder/countdown-overlay.tsx +6 -4
  912. package/corpus/templates/clips/app/components/recorder/microphone-visualizer.tsx +3 -1
  913. package/corpus/templates/clips/app/components/recorder/pre-record-panel.tsx +120 -156
  914. package/corpus/templates/clips/app/components/recorder/recording-toolbar.tsx +16 -8
  915. package/corpus/templates/clips/app/components/recorder/storage-setup-card.tsx +8 -8
  916. package/corpus/templates/clips/app/components/sharing/share-ui.tsx +33 -31
  917. package/corpus/templates/clips/app/components/sharing/slack-share-hint.tsx +15 -8
  918. package/corpus/templates/clips/app/components/workspace/branding-editor.tsx +35 -20
  919. package/corpus/templates/clips/app/components/workspace/engagement-chart.tsx +6 -4
  920. package/corpus/templates/clips/app/components/workspace/insights-hub.tsx +35 -22
  921. package/corpus/templates/clips/app/components/workspace/invite-dialog.tsx +27 -17
  922. package/corpus/templates/clips/app/components/workspace/members-list.tsx +30 -19
  923. package/corpus/templates/clips/app/components/workspace/notifications-list.tsx +37 -25
  924. package/corpus/templates/clips/app/components/workspace/top-creators-table.tsx +14 -5
  925. package/corpus/templates/clips/app/i18n/ar-SA.ts +1117 -1
  926. package/corpus/templates/clips/app/i18n/de-DE.ts +1147 -1
  927. package/corpus/templates/clips/app/i18n/en-US.ts +1110 -0
  928. package/corpus/templates/clips/app/i18n/es-ES.ts +1139 -0
  929. package/corpus/templates/clips/app/i18n/fr-FR.ts +1145 -5
  930. package/corpus/templates/clips/app/i18n/hi-IN.ts +1113 -1
  931. package/corpus/templates/clips/app/i18n/ja-JP.ts +1138 -2
  932. package/corpus/templates/clips/app/i18n/ko-KR.ts +1124 -1
  933. package/corpus/templates/clips/app/i18n/pt-BR.ts +1137 -1
  934. package/corpus/templates/clips/app/i18n/zh-CN.ts +1094 -2
  935. package/corpus/templates/clips/app/root.tsx +2 -2
  936. package/corpus/templates/clips/app/routes/_app.archive.tsx +12 -2
  937. package/corpus/templates/clips/app/routes/_app.dictate.tsx +71 -49
  938. package/corpus/templates/clips/app/routes/_app.extensions.$id.tsx +4 -1
  939. package/corpus/templates/clips/app/routes/_app.extensions._index.tsx +4 -1
  940. package/corpus/templates/clips/app/routes/_app.insights._index.tsx +2 -1
  941. package/corpus/templates/clips/app/routes/_app.library.folder.$folderId.tsx +5 -2
  942. package/corpus/templates/clips/app/routes/_app.meetings.$meetingId.tsx +54 -38
  943. package/corpus/templates/clips/app/routes/_app.meetings._index.tsx +41 -30
  944. package/corpus/templates/clips/app/routes/_app.notifications.tsx +34 -19
  945. package/corpus/templates/clips/app/routes/_app.settings._index.tsx +28 -17
  946. package/corpus/templates/clips/app/routes/_app.settings.organization.tsx +25 -18
  947. package/corpus/templates/clips/app/routes/_app.spaces.$spaceId.folder.$folderId.tsx +5 -2
  948. package/corpus/templates/clips/app/routes/_app.spaces.$spaceId.tsx +8 -5
  949. package/corpus/templates/clips/app/routes/_app.spaces._index.tsx +8 -3
  950. package/corpus/templates/clips/app/routes/_app.trash.tsx +2 -1
  951. package/corpus/templates/clips/app/routes/download.tsx +39 -30
  952. package/corpus/templates/clips/app/routes/embed.$shareId.tsx +4 -3
  953. package/corpus/templates/clips/app/routes/invite.$token.tsx +41 -32
  954. package/corpus/templates/clips/app/routes/r.$recordingId.tsx +111 -106
  955. package/corpus/templates/clips/app/routes/record.tsx +101 -87
  956. package/corpus/templates/clips/app/routes/share.$shareId.tsx +78 -62
  957. package/corpus/templates/clips/app/routes/share.meeting.$meetingId.tsx +15 -12
  958. package/corpus/templates/clips/changelog/2026-06-25-localized-clips-settings-changelog-and-extension-sidebar-lab.md +6 -0
  959. package/corpus/templates/clips/desktop/src/overlays/countdown.tsx +4 -2
  960. package/corpus/templates/clips/desktop/src/styles.css +15 -1
  961. package/corpus/templates/content/app/components/ThemeToggle.tsx +3 -3
  962. package/corpus/templates/content/app/components/editor/BubbleToolbar.tsx +14 -12
  963. package/corpus/templates/content/app/components/editor/CommentsSidebar.tsx +19 -14
  964. package/corpus/templates/content/app/components/editor/DocumentBlockFields.tsx +16 -4
  965. package/corpus/templates/content/app/components/editor/DocumentDatabase.tsx +13670 -10
  966. package/corpus/templates/content/app/components/editor/DocumentEditor.tsx +15 -12
  967. package/corpus/templates/content/app/components/editor/DocumentProperties.tsx +219 -135
  968. package/corpus/templates/content/app/components/editor/DocumentToolbar.tsx +114 -81
  969. package/corpus/templates/content/app/components/editor/EmojiPicker.tsx +27 -9
  970. package/corpus/templates/content/app/components/editor/LinkHoverPreview.tsx +7 -5
  971. package/corpus/templates/content/app/components/editor/NotionConflictBanner.tsx +12 -6
  972. package/corpus/templates/content/app/components/editor/NotionSyncBar.tsx +54 -34
  973. package/corpus/templates/content/app/components/editor/SlashCommandMenu.tsx +111 -122
  974. package/corpus/templates/content/app/components/editor/TableHoverControls.tsx +27 -22
  975. package/corpus/templates/content/app/components/editor/VersionHistoryPanel.tsx +23 -19
  976. package/corpus/templates/content/app/components/editor/VisualEditor.tsx +6 -2
  977. package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +245 -238
  978. package/corpus/templates/content/app/components/editor/database/calculations.ts +1 -0
  979. package/corpus/templates/content/app/components/editor/database/filter-sort.ts +1 -0
  980. package/corpus/templates/content/app/components/editor/database/grouping.ts +1 -0
  981. package/corpus/templates/content/app/components/editor/database/navigation-state.ts +1 -0
  982. package/corpus/templates/content/app/components/editor/database/shared.tsx +1 -0
  983. package/corpus/templates/content/app/components/editor/database-sources/BuilderSourceReviewDialog.tsx +92 -53
  984. package/corpus/templates/content/app/components/editor/extensions/AudioBlock.tsx +86 -49
  985. package/corpus/templates/content/app/components/editor/extensions/CodeBlockNode.tsx +22 -12
  986. package/corpus/templates/content/app/components/editor/extensions/ImageBlock.tsx +138 -74
  987. package/corpus/templates/content/app/components/editor/extensions/LocalMdxComponentNode.tsx +16 -7
  988. package/corpus/templates/content/app/components/editor/extensions/VideoBlock.tsx +86 -49
  989. package/corpus/templates/content/app/components/editor/image-upload.ts +3 -3
  990. package/corpus/templates/content/app/components/editor/localComponentSlashItems.ts +2 -1
  991. package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +205 -484
  992. package/corpus/templates/content/app/components/sidebar/DocumentTreeItem.tsx +34 -110
  993. package/corpus/templates/content/app/components/sidebar/NotionButton.tsx +56 -43
  994. package/corpus/templates/content/app/i18n-data.ts +6977 -10
  995. package/corpus/templates/content/app/routes/_app.local-files.tsx +111 -85
  996. package/corpus/templates/content/app/routes/_app.page.$id.tsx +7 -7
  997. package/corpus/templates/content/app/routes/_app.settings.tsx +2 -1
  998. package/corpus/templates/content/app/routes/_app.team.tsx +2 -1
  999. package/corpus/templates/content/app/routes/_app.tsx +4 -6
  1000. package/corpus/templates/content/app/routes/p.$id.tsx +9 -6
  1001. package/corpus/templates/design/app/components/ThemeToggle.tsx +3 -1
  1002. package/corpus/templates/design/app/components/design/DesignCanvas.tsx +6 -4
  1003. package/corpus/templates/design/app/components/design/DesignToolbar.tsx +27 -22
  1004. package/corpus/templates/design/app/components/design/DrawOverlay.tsx +4 -2
  1005. package/corpus/templates/design/app/components/design/EditPanel.tsx +130 -100
  1006. package/corpus/templates/design/app/components/design/PresentMode.tsx +3 -1
  1007. package/corpus/templates/design/app/components/design/TweaksPanel.tsx +8 -6
  1008. package/corpus/templates/design/app/components/design/VariantGrid.tsx +6 -4
  1009. package/corpus/templates/design/app/components/design/VariantHandoffCard.tsx +8 -4
  1010. package/corpus/templates/design/app/components/design/ViewportTabs.tsx +5 -3
  1011. package/corpus/templates/design/app/components/design/ZoomControls.tsx +3 -1
  1012. package/corpus/templates/design/app/components/editor/PromptDialog.tsx +31 -18
  1013. package/corpus/templates/design/app/components/visual-editor/CanvasCommentPins.tsx +12 -8
  1014. package/corpus/templates/design/app/components/visual-editor/DrawOverlay.tsx +14 -10
  1015. package/corpus/templates/design/app/components/visual-editor/SaveStatusIndicator.tsx +4 -2
  1016. package/corpus/templates/design/app/i18n-data.ts +6107 -332
  1017. package/corpus/templates/design/app/pages/DesignEditor.tsx +106 -81
  1018. package/corpus/templates/design/app/pages/DesignSystemSetup.tsx +110 -115
  1019. package/corpus/templates/design/app/pages/DesignSystems.tsx +154 -83
  1020. package/corpus/templates/design/app/pages/Index.tsx +69 -57
  1021. package/corpus/templates/design/app/pages/NotFound.tsx +4 -2
  1022. package/corpus/templates/design/app/pages/Present.tsx +1 -1
  1023. package/corpus/templates/design/app/pages/Templates.tsx +18 -12
  1024. package/corpus/templates/design/app/routes/$.tsx +2 -1
  1025. package/corpus/templates/design/app/routes/design-systems.tsx +2 -1
  1026. package/corpus/templates/design/app/routes/design-systems_.setup.tsx +2 -1
  1027. package/corpus/templates/design/app/routes/design.$id.tsx +2 -1
  1028. package/corpus/templates/design/app/routes/examples.tsx +3 -1
  1029. package/corpus/templates/design/app/routes/extensions.$id.tsx +3 -1
  1030. package/corpus/templates/design/app/routes/extensions._index.tsx +3 -1
  1031. package/corpus/templates/design/app/routes/extensions.tsx +3 -1
  1032. package/corpus/templates/design/app/routes/observability.tsx +3 -1
  1033. package/corpus/templates/design/app/routes/present.$id.tsx +2 -1
  1034. package/corpus/templates/design/app/routes/settings.tsx +2 -1
  1035. package/corpus/templates/design/app/routes/team.tsx +3 -1
  1036. package/corpus/templates/design/app/routes/templates.tsx +2 -1
  1037. package/corpus/templates/dispatch/app/i18n-data.ts +1881 -1
  1038. package/corpus/templates/dispatch/app/routes/chat.$threadId.tsx +10 -7
  1039. package/corpus/templates/dispatch/app/routes/chat.tsx +9 -7
  1040. package/corpus/templates/dispatch/app/routes/extensions.$id.tsx +2 -1
  1041. package/corpus/templates/dispatch/app/routes/extensions._index.tsx +2 -1
  1042. package/corpus/templates/dispatch/app/routes/integrations.tsx +327 -209
  1043. package/corpus/templates/dispatch/app/routes/settings.tsx +3 -1
  1044. package/corpus/templates/dispatch/app/routes/tools.$id.tsx +2 -1
  1045. package/corpus/templates/dispatch/app/routes/tools._index.tsx +2 -1
  1046. package/corpus/templates/forms/app/components/CloudUpgrade.tsx +38 -28
  1047. package/corpus/templates/forms/app/components/ThemeToggle.tsx +3 -1
  1048. package/corpus/templates/forms/app/components/builder/FieldPropertiesPanel.tsx +33 -29
  1049. package/corpus/templates/forms/app/i18n/ar-SA.ts +279 -53
  1050. package/corpus/templates/forms/app/i18n/de-DE.ts +287 -53
  1051. package/corpus/templates/forms/app/i18n/en-US.ts +225 -0
  1052. package/corpus/templates/forms/app/i18n/es-ES.ts +233 -1
  1053. package/corpus/templates/forms/app/i18n/fr-FR.ts +290 -54
  1054. package/corpus/templates/forms/app/i18n/hi-IN.ts +275 -55
  1055. package/corpus/templates/forms/app/i18n/ja-JP.ts +278 -55
  1056. package/corpus/templates/forms/app/i18n/ko-KR.ts +271 -55
  1057. package/corpus/templates/forms/app/i18n/pt-BR.ts +286 -52
  1058. package/corpus/templates/forms/app/i18n/zh-CN.ts +261 -56
  1059. package/corpus/templates/forms/app/pages/FormBuilderPage.tsx +214 -148
  1060. package/corpus/templates/forms/app/pages/FormFillPage.tsx +12 -7
  1061. package/corpus/templates/forms/app/pages/ResponseInsightsPage.tsx +8 -4
  1062. package/corpus/templates/forms/app/routes/_app.extensions.$id.tsx +3 -1
  1063. package/corpus/templates/forms/app/routes/_app.extensions._index.tsx +3 -1
  1064. package/corpus/templates/forms/app/routes/_app.forms.$id.tsx +2 -1
  1065. package/corpus/templates/forms/app/routes/_app.forms.$id_.responses.tsx +2 -1
  1066. package/corpus/templates/forms/app/routes/_app.forms._index.tsx +3 -4
  1067. package/corpus/templates/forms/app/routes/_app.response-insights.tsx +3 -2
  1068. package/corpus/templates/forms/app/routes/_app.settings.tsx +2 -1
  1069. package/corpus/templates/forms/app/routes/_index.tsx +3 -4
  1070. package/corpus/templates/forms/app/routes/form-preview.tsx +25 -26
  1071. package/corpus/templates/macros/app/components/AddExerciseDialog.tsx +18 -15
  1072. package/corpus/templates/macros/app/components/AddMealDialog.tsx +22 -19
  1073. package/corpus/templates/macros/app/components/AddWeightDialog.tsx +17 -16
  1074. package/corpus/templates/macros/app/components/DailyProgress.tsx +24 -18
  1075. package/corpus/templates/macros/app/components/ExerciseCard.tsx +5 -3
  1076. package/corpus/templates/macros/app/components/MealCard.tsx +5 -3
  1077. package/corpus/templates/macros/app/components/VoiceDictation.tsx +14 -13
  1078. package/corpus/templates/macros/app/components/WeeklyCaloriesChart.tsx +37 -20
  1079. package/corpus/templates/macros/app/components/WeightCard.tsx +16 -9
  1080. package/corpus/templates/macros/app/components/WeightTracker.tsx +13 -6
  1081. package/corpus/templates/macros/app/i18n/ar-SA.ts +154 -2
  1082. package/corpus/templates/macros/app/i18n/de-DE.ts +158 -2
  1083. package/corpus/templates/macros/app/i18n/en-US.ts +152 -0
  1084. package/corpus/templates/macros/app/i18n/es-ES.ts +154 -0
  1085. package/corpus/templates/macros/app/i18n/fr-FR.ts +157 -2
  1086. package/corpus/templates/macros/app/i18n/hi-IN.ts +154 -3
  1087. package/corpus/templates/macros/app/i18n/ja-JP.ts +153 -2
  1088. package/corpus/templates/macros/app/i18n/ko-KR.ts +153 -2
  1089. package/corpus/templates/macros/app/i18n/pt-BR.ts +155 -0
  1090. package/corpus/templates/macros/app/i18n/zh-CN.ts +152 -2
  1091. package/corpus/templates/macros/app/routes/_index.tsx +20 -16
  1092. package/corpus/templates/macros/app/routes/analytics.tsx +3 -3
  1093. package/corpus/templates/macros/app/routes/extensions.$id.tsx +3 -1
  1094. package/corpus/templates/macros/app/routes/extensions._index.tsx +3 -1
  1095. package/corpus/templates/macros/app/routes/settings.tsx +2 -1
  1096. package/corpus/templates/macros/app/routes/team.tsx +6 -3
  1097. package/corpus/templates/mail/app/components/GoogleConnectBanner.tsx +69 -62
  1098. package/corpus/templates/mail/app/components/ThemeToggle.tsx +10 -3
  1099. package/corpus/templates/mail/app/components/agent-engine-picker.tsx +6 -5
  1100. package/corpus/templates/mail/app/components/email/CodeBlockLangPicker.tsx +1 -1
  1101. package/corpus/templates/mail/app/components/email/ComposeModal.tsx +6 -8
  1102. package/corpus/templates/mail/app/components/email/ComposeSlashMenu.tsx +45 -34
  1103. package/corpus/templates/mail/app/components/email/EmailThread.tsx +5 -3
  1104. package/corpus/templates/mail/app/components/email/InlineReplyComposer.tsx +4 -6
  1105. package/corpus/templates/mail/app/components/email/IntegrationsSidebar.tsx +16 -10
  1106. package/corpus/templates/mail/app/components/email/MobileActionBar.tsx +28 -20
  1107. package/corpus/templates/mail/app/components/email/SendLaterButton.tsx +12 -7
  1108. package/corpus/templates/mail/app/components/email/SnoozeModal.tsx +9 -6
  1109. package/corpus/templates/mail/app/components/email/SnoozePopover.tsx +9 -9
  1110. package/corpus/templates/mail/app/components/layout/AppLayout.tsx +2 -2
  1111. package/corpus/templates/mail/app/components/settings/GmailFiltersSection.tsx +40 -30
  1112. package/corpus/templates/mail/app/i18n/ar-SA.ts +435 -134
  1113. package/corpus/templates/mail/app/i18n/de-DE.ts +441 -131
  1114. package/corpus/templates/mail/app/i18n/en-US.ts +300 -1
  1115. package/corpus/templates/mail/app/i18n/es-ES.ts +443 -134
  1116. package/corpus/templates/mail/app/i18n/fr-FR.ts +444 -134
  1117. package/corpus/templates/mail/app/i18n/hi-IN.ts +441 -138
  1118. package/corpus/templates/mail/app/i18n/ja-JP.ts +437 -134
  1119. package/corpus/templates/mail/app/i18n/ko-KR.ts +437 -134
  1120. package/corpus/templates/mail/app/i18n/pt-BR.ts +440 -133
  1121. package/corpus/templates/mail/app/i18n/zh-CN.ts +361 -70
  1122. package/corpus/templates/mail/app/pages/DraftQueuePage.tsx +66 -41
  1123. package/corpus/templates/mail/app/pages/InboxPage.tsx +5 -1
  1124. package/corpus/templates/mail/app/pages/SettingsPage.tsx +125 -108
  1125. package/corpus/templates/mail/app/routes/$.tsx +2 -1
  1126. package/corpus/templates/mail/app/routes/draft-queue.$id.tsx +2 -1
  1127. package/corpus/templates/mail/app/routes/draft-queue.tsx +2 -1
  1128. package/corpus/templates/mail/app/routes/email.tsx +10 -7
  1129. package/corpus/templates/mail/app/routes/settings.tsx +2 -1
  1130. package/corpus/templates/mail/app/routes/team.tsx +2 -1
  1131. package/corpus/templates/plan/app/components/editor/PlanDocumentEditor.tsx +7 -4
  1132. package/corpus/templates/plan/app/components/editor/planSlashCommands.ts +51 -26
  1133. package/corpus/templates/plan/app/components/layout/Sidebar.tsx +2 -2
  1134. package/corpus/templates/plan/app/components/plan/CanvasArea.tsx +7 -4
  1135. package/corpus/templates/plan/app/components/plan/DocumentArea.tsx +19 -15
  1136. package/corpus/templates/plan/app/components/plan/LocalCodebasePicker.tsx +34 -17
  1137. package/corpus/templates/plan/app/components/plan/PlanContentRenderer.tsx +9 -5
  1138. package/corpus/templates/plan/app/components/plan/PlanImageNode.tsx +9 -4
  1139. package/corpus/templates/plan/app/components/plan/PlanImageViewer.tsx +47 -20
  1140. package/corpus/templates/plan/app/components/plan/PlanMarkdownReader.tsx +4 -2
  1141. package/corpus/templates/plan/app/components/plan/PlanTableOfContents.tsx +6 -1
  1142. package/corpus/templates/plan/app/components/plan/PlanVisualSurface.tsx +10 -5
  1143. package/corpus/templates/plan/app/components/plan/PrototypeViewer.tsx +3 -1
  1144. package/corpus/templates/plan/app/components/plan/image-actions.ts +29 -7
  1145. package/corpus/templates/plan/app/components/plan/planBlocks.tsx +16 -8
  1146. package/corpus/templates/plan/app/components/plan/wireframe/LegacyRegionWireframe.tsx +27 -18
  1147. package/corpus/templates/plan/app/components/plan/wireframe/Wireframe.tsx +3 -1
  1148. package/corpus/templates/plan/app/components/plan/wireframe/wireframe-icons.ts +1 -0
  1149. package/corpus/templates/plan/app/i18n/ar-SA.ts +663 -1
  1150. package/corpus/templates/plan/app/i18n/de-DE.ts +670 -0
  1151. package/corpus/templates/plan/app/i18n/en-US.ts +643 -0
  1152. package/corpus/templates/plan/app/i18n/es-ES.ts +667 -0
  1153. package/corpus/templates/plan/app/i18n/fr-FR.ts +672 -2
  1154. package/corpus/templates/plan/app/i18n/hi-IN.ts +641 -1
  1155. package/corpus/templates/plan/app/i18n/ja-JP.ts +633 -1
  1156. package/corpus/templates/plan/app/i18n/ko-KR.ts +623 -1
  1157. package/corpus/templates/plan/app/i18n/pt-BR.ts +671 -3
  1158. package/corpus/templates/plan/app/i18n/zh-CN.ts +620 -1
  1159. package/corpus/templates/plan/app/pages/PlansPage.tsx +697 -488
  1160. package/corpus/templates/slides/app/components/CloudUpgrade.tsx +16 -13
  1161. package/corpus/templates/slides/app/components/ThemeToggle.tsx +3 -1
  1162. package/corpus/templates/slides/app/components/comments/SlideCommentsPanel.tsx +37 -25
  1163. package/corpus/templates/slides/app/components/deck/DeckCard.tsx +3 -2
  1164. package/corpus/templates/slides/app/components/deck/SlideRenderer.tsx +3 -1
  1165. package/corpus/templates/slides/app/components/design-system/DesignSystemPreview.tsx +6 -4
  1166. package/corpus/templates/slides/app/components/design-system/DesignSystemSetup.tsx +104 -73
  1167. package/corpus/templates/slides/app/components/editor/AnimationsPanel.tsx +21 -17
  1168. package/corpus/templates/slides/app/components/editor/AssetLibraryPanel.tsx +6 -3
  1169. package/corpus/templates/slides/app/components/editor/BlockBubbleMenu.tsx +4 -2
  1170. package/corpus/templates/slides/app/components/editor/CodeEditor.tsx +7 -4
  1171. package/corpus/templates/slides/app/components/editor/EditorSidebar.tsx +26 -18
  1172. package/corpus/templates/slides/app/components/editor/EditorToolbar.tsx +116 -91
  1173. package/corpus/templates/slides/app/components/editor/ExportMenu.tsx +21 -21
  1174. package/corpus/templates/slides/app/components/editor/GenerateSlidesDialog.tsx +16 -16
  1175. package/corpus/templates/slides/app/components/editor/GeneratingOverlay.tsx +4 -2
  1176. package/corpus/templates/slides/app/components/editor/GoogleDocImportHint.tsx +9 -5
  1177. package/corpus/templates/slides/app/components/editor/HistoryPanel.tsx +44 -54
  1178. package/corpus/templates/slides/app/components/editor/ImageDropPromptPopover.tsx +10 -11
  1179. package/corpus/templates/slides/app/components/editor/ImageGenPanel.tsx +4 -2
  1180. package/corpus/templates/slides/app/components/editor/ImageOverlay.tsx +3 -1
  1181. package/corpus/templates/slides/app/components/editor/ImageSearchPanel.tsx +8 -5
  1182. package/corpus/templates/slides/app/components/editor/ImportButton.tsx +3 -2
  1183. package/corpus/templates/slides/app/components/editor/LogoSearchPanel.tsx +20 -10
  1184. package/corpus/templates/slides/app/components/editor/MermaidToExcalidrawPanel.tsx +3 -1
  1185. package/corpus/templates/slides/app/components/editor/PromptDialog.tsx +5 -4
  1186. package/corpus/templates/slides/app/components/editor/ShareDialog.tsx +22 -21
  1187. package/corpus/templates/slides/app/components/editor/SlideBubbleMenu.tsx +32 -21
  1188. package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +19 -34
  1189. package/corpus/templates/slides/app/components/editor/SlideInlineEditor.tsx +9 -8
  1190. package/corpus/templates/slides/app/components/editor/SlideSlashMenu.tsx +32 -27
  1191. package/corpus/templates/slides/app/components/editor/SpeakerNotesPanel.tsx +7 -2
  1192. package/corpus/templates/slides/app/components/layout/AgentWorkIndicator.tsx +6 -3
  1193. package/corpus/templates/slides/app/components/presentation/PresentationView.tsx +11 -8
  1194. package/corpus/templates/slides/app/components/visual-editor/CanvasCommentPins.tsx +6 -5
  1195. package/corpus/templates/slides/app/components/visual-editor/DrawOverlay.tsx +8 -6
  1196. package/corpus/templates/slides/app/components/visual-editor/MultiSelectChip.tsx +7 -3
  1197. package/corpus/templates/slides/app/components/visual-editor/SaveStatusIndicator.tsx +4 -2
  1198. package/corpus/templates/slides/app/i18n/ar-SA.ts +525 -3
  1199. package/corpus/templates/slides/app/i18n/de-DE.ts +504 -4
  1200. package/corpus/templates/slides/app/i18n/en-US.ts +490 -0
  1201. package/corpus/templates/slides/app/i18n/es-ES.ts +514 -4
  1202. package/corpus/templates/slides/app/i18n/fr-FR.ts +519 -5
  1203. package/corpus/templates/slides/app/i18n/hi-IN.ts +489 -4
  1204. package/corpus/templates/slides/app/i18n/ja-JP.ts +485 -3
  1205. package/corpus/templates/slides/app/i18n/ko-KR.ts +481 -3
  1206. package/corpus/templates/slides/app/i18n/pt-BR.ts +507 -2
  1207. package/corpus/templates/slides/app/i18n/zh-CN.ts +475 -3
  1208. package/corpus/templates/slides/app/pages/DeckEditor.tsx +25 -21
  1209. package/corpus/templates/slides/app/pages/Index.tsx +47 -45
  1210. package/corpus/templates/slides/app/pages/SharedPresentation.tsx +4 -3
  1211. package/corpus/templates/slides/app/routes/$.tsx +2 -1
  1212. package/corpus/templates/slides/app/routes/deck.$id.tsx +2 -1
  1213. package/corpus/templates/slides/app/routes/design-systems.tsx +2 -1
  1214. package/corpus/templates/slides/app/routes/settings.tsx +2 -1
  1215. package/corpus/templates/slides/app/routes/share.$token.tsx +2 -1
  1216. package/corpus/templates/slides/app/routes/slide.tsx +11 -5
  1217. package/corpus/templates/slides/app/routes/team.tsx +6 -3
  1218. package/corpus/templates/videos/app/components/CameraControls.tsx +11 -7
  1219. package/corpus/templates/videos/app/components/CameraToolbar.tsx +13 -11
  1220. package/corpus/templates/videos/app/components/CloudUpgrade.tsx +19 -16
  1221. package/corpus/templates/videos/app/components/CompSettingsEditor.tsx +6 -1
  1222. package/corpus/templates/videos/app/components/ComponentLibrarySidebar.tsx +29 -29
  1223. package/corpus/templates/videos/app/components/ComponentPropsPanel.tsx +37 -17
  1224. package/corpus/templates/videos/app/components/ComponentsSidebar.tsx +8 -3
  1225. package/corpus/templates/videos/app/components/CompositionCard.tsx +11 -3
  1226. package/corpus/templates/videos/app/components/CurrentElementPanel.tsx +45 -42
  1227. package/corpus/templates/videos/app/components/CursorControls.tsx +37 -18
  1228. package/corpus/templates/videos/app/components/CursorPositioningOverlay.tsx +3 -1
  1229. package/corpus/templates/videos/app/components/LibraryFolderRow.tsx +8 -4
  1230. package/corpus/templates/videos/app/components/MotionCurveSelect.tsx +9 -6
  1231. package/corpus/templates/videos/app/components/PropsEditor.tsx +6 -2
  1232. package/corpus/templates/videos/app/components/Sidebar.tsx +7 -7
  1233. package/corpus/templates/videos/app/components/Timeline.tsx +8 -6
  1234. package/corpus/templates/videos/app/components/TrackPropertiesPanel.tsx +50 -33
  1235. package/corpus/templates/videos/app/components/TweaksPanel.tsx +18 -9
  1236. package/corpus/templates/videos/app/components/VideoPlayer.tsx +9 -5
  1237. package/corpus/templates/videos/app/components/design-system/DesignSystemPreview.tsx +14 -12
  1238. package/corpus/templates/videos/app/components/design-system/DesignSystemSetup.tsx +31 -29
  1239. package/corpus/templates/videos/app/components/keyframes/KeyframeActionButtons.tsx +11 -7
  1240. package/corpus/templates/videos/app/i18n/ar-SA.ts +358 -1
  1241. package/corpus/templates/videos/app/i18n/de-DE.ts +378 -0
  1242. package/corpus/templates/videos/app/i18n/en-US.ts +362 -0
  1243. package/corpus/templates/videos/app/i18n/es-ES.ts +377 -1
  1244. package/corpus/templates/videos/app/i18n/fr-FR.ts +379 -2
  1245. package/corpus/templates/videos/app/i18n/hi-IN.ts +359 -1
  1246. package/corpus/templates/videos/app/i18n/ja-JP.ts +371 -1
  1247. package/corpus/templates/videos/app/i18n/ko-KR.ts +364 -1
  1248. package/corpus/templates/videos/app/i18n/pt-BR.ts +371 -1
  1249. package/corpus/templates/videos/app/i18n/zh-CN.ts +351 -1
  1250. package/corpus/templates/videos/app/pages/ComponentLibrary.tsx +6 -2
  1251. package/corpus/templates/videos/app/pages/ComponentLibraryView.tsx +45 -24
  1252. package/corpus/templates/videos/app/pages/CompositionView.tsx +61 -34
  1253. package/corpus/templates/videos/app/routes/$.tsx +2 -1
  1254. package/corpus/templates/videos/app/routes/c.$compositionId.tsx +2 -1
  1255. package/corpus/templates/videos/app/routes/components.tsx +2 -1
  1256. package/corpus/templates/videos/app/routes/design-systems.tsx +2 -1
  1257. package/corpus/templates/videos/app/routes/settings.tsx +2 -1
  1258. package/corpus/templates/videos/app/routes/team.tsx +2 -1
  1259. package/dist/agent/production-agent.d.ts.map +1 -1
  1260. package/dist/agent/production-agent.js +31 -0
  1261. package/dist/agent/production-agent.js.map +1 -1
  1262. package/dist/agent/run-store.d.ts +2 -0
  1263. package/dist/agent/run-store.d.ts.map +1 -1
  1264. package/dist/agent/run-store.js +2 -0
  1265. package/dist/agent/run-store.js.map +1 -1
  1266. package/dist/client/changelog/Changelog.d.ts +7 -2
  1267. package/dist/client/changelog/Changelog.d.ts.map +1 -1
  1268. package/dist/client/changelog/Changelog.js +9 -7
  1269. package/dist/client/changelog/Changelog.js.map +1 -1
  1270. package/dist/client/extensions/ExtensionsSidebarSection.d.ts.map +1 -1
  1271. package/dist/client/extensions/ExtensionsSidebarSection.js +339 -11
  1272. package/dist/client/extensions/ExtensionsSidebarSection.js.map +1 -1
  1273. package/dist/client/i18n.d.ts.map +1 -1
  1274. package/dist/client/i18n.js +12 -1
  1275. package/dist/client/i18n.js.map +1 -1
  1276. package/dist/collab/routes.d.ts +1 -1
  1277. package/dist/notifications/routes.d.ts +1 -1
  1278. package/dist/observability/routes.d.ts +5 -5
  1279. package/dist/progress/routes.d.ts +1 -1
  1280. package/dist/resources/handlers.d.ts +3 -3
  1281. package/dist/server/agent-engine-api-key-route.d.ts +2 -2
  1282. package/dist/server/transcribe-voice.d.ts +1 -1
  1283. package/dist/templates/default/app/i18n/ar-SA.ts +275 -274
  1284. package/dist/templates/default/app/i18n/de-DE.ts +270 -260
  1285. package/dist/templates/default/app/i18n/es-ES.ts +282 -270
  1286. package/dist/templates/default/app/i18n/fr-FR.ts +275 -266
  1287. package/dist/templates/default/app/i18n/hi-IN.ts +274 -276
  1288. package/dist/templates/default/app/i18n/ja-JP.ts +280 -273
  1289. package/dist/templates/default/app/i18n/ko-KR.ts +274 -274
  1290. package/dist/templates/default/app/i18n/pt-BR.ts +273 -266
  1291. package/dist/templates/default/app/i18n/zh-CN.ts +273 -285
  1292. package/docs/content/locales/ar-SA/a2a-protocol.md +2 -2
  1293. package/docs/content/locales/ar-SA/actions.md +6 -6
  1294. package/docs/content/locales/ar-SA/agent-surfaces.md +5 -5
  1295. package/docs/content/locales/ar-SA/agent-teams.md +4 -4
  1296. package/docs/content/locales/ar-SA/agent-web-surfaces.md +2 -2
  1297. package/docs/content/locales/ar-SA/authentication.md +4 -4
  1298. package/docs/content/locales/ar-SA/automations.md +3 -3
  1299. package/docs/content/locales/ar-SA/blueprint-installer.md +2 -2
  1300. package/docs/content/locales/ar-SA/cli-adapters.md +1 -1
  1301. package/docs/content/locales/ar-SA/code-agents-ui.md +2 -2
  1302. package/docs/content/locales/ar-SA/components.md +14 -14
  1303. package/docs/content/locales/ar-SA/context-awareness.md +3 -3
  1304. package/docs/content/locales/ar-SA/creating-templates.md +12 -12
  1305. package/docs/content/locales/ar-SA/cross-app-sso.md +3 -3
  1306. package/docs/content/locales/ar-SA/database.md +7 -7
  1307. package/docs/content/locales/ar-SA/deployment.md +4 -4
  1308. package/docs/content/locales/ar-SA/dispatch.md +3 -3
  1309. package/docs/content/locales/ar-SA/drop-in-agent.md +8 -8
  1310. package/docs/content/locales/ar-SA/durable-resume.md +1 -1
  1311. package/docs/content/locales/ar-SA/embedding-sdk.md +2 -2
  1312. package/docs/content/locales/ar-SA/evals.md +3 -3
  1313. package/docs/content/locales/ar-SA/extensions.md +2 -2
  1314. package/docs/content/locales/ar-SA/external-agents.md +8 -8
  1315. package/docs/content/locales/ar-SA/faq.md +3 -3
  1316. package/docs/content/locales/ar-SA/file-uploads.md +4 -4
  1317. package/docs/content/locales/ar-SA/frames.md +1 -1
  1318. package/docs/content/locales/ar-SA/getting-started.md +13 -13
  1319. package/docs/content/locales/ar-SA/harness-agents.md +3 -3
  1320. package/docs/content/locales/ar-SA/human-approval.md +3 -3
  1321. package/docs/content/locales/ar-SA/key-concepts.md +14 -14
  1322. package/docs/content/locales/ar-SA/local-file-mode.md +5 -5
  1323. package/docs/content/locales/ar-SA/mcp-apps.md +9 -9
  1324. package/docs/content/locales/ar-SA/mcp-clients.md +9 -9
  1325. package/docs/content/locales/ar-SA/mcp-protocol.md +5 -5
  1326. package/docs/content/locales/ar-SA/messaging.md +5 -5
  1327. package/docs/content/locales/ar-SA/migration-workbench.md +1 -1
  1328. package/docs/content/locales/ar-SA/multi-app-workspace.md +1 -1
  1329. package/docs/content/locales/ar-SA/multi-tenancy.md +2 -2
  1330. package/docs/content/locales/ar-SA/native-chat-ui.md +4 -4
  1331. package/docs/content/locales/ar-SA/notifications.md +5 -5
  1332. package/docs/content/locales/ar-SA/observability.md +1 -1
  1333. package/docs/content/locales/ar-SA/observational-memory.md +2 -2
  1334. package/docs/content/locales/ar-SA/onboarding.md +8 -8
  1335. package/docs/content/locales/ar-SA/plan-plugin.md +3 -3
  1336. package/docs/content/locales/ar-SA/pr-visual-recap.md +11 -11
  1337. package/docs/content/locales/ar-SA/processors.md +2 -2
  1338. package/docs/content/locales/ar-SA/progress.md +3 -3
  1339. package/docs/content/locales/ar-SA/pure-agent-apps.md +1 -1
  1340. package/docs/content/locales/ar-SA/real-time-collaboration.md +6 -6
  1341. package/docs/content/locales/ar-SA/recurring-jobs.md +5 -5
  1342. package/docs/content/locales/ar-SA/routing.md +1 -1
  1343. package/docs/content/locales/ar-SA/sandbox-adapters.md +3 -3
  1344. package/docs/content/locales/ar-SA/security.md +10 -10
  1345. package/docs/content/locales/ar-SA/server.md +9 -9
  1346. package/docs/content/locales/ar-SA/sharing.md +7 -7
  1347. package/docs/content/locales/ar-SA/skills-guide.md +16 -16
  1348. package/docs/content/locales/ar-SA/template-analytics.md +10 -10
  1349. package/docs/content/locales/ar-SA/template-assets.md +19 -19
  1350. package/docs/content/locales/ar-SA/template-brain.md +11 -11
  1351. package/docs/content/locales/ar-SA/template-calendar.md +9 -9
  1352. package/docs/content/locales/ar-SA/template-chat.md +3 -3
  1353. package/docs/content/locales/ar-SA/template-clips.md +13 -13
  1354. package/docs/content/locales/ar-SA/template-content.md +15 -15
  1355. package/docs/content/locales/ar-SA/template-design.md +7 -7
  1356. package/docs/content/locales/ar-SA/template-dispatch.md +8 -8
  1357. package/docs/content/locales/ar-SA/template-forms.md +9 -9
  1358. package/docs/content/locales/ar-SA/template-mail.md +7 -7
  1359. package/docs/content/locales/ar-SA/template-plan.md +3 -3
  1360. package/docs/content/locales/ar-SA/template-slides.md +8 -8
  1361. package/docs/content/locales/ar-SA/template-videos.md +5 -5
  1362. package/docs/content/locales/ar-SA/tracking.md +6 -6
  1363. package/docs/content/locales/ar-SA/using-your-agent.md +4 -4
  1364. package/docs/content/locales/ar-SA/voice-input.md +4 -4
  1365. package/docs/content/locales/ar-SA/what-is-agent-native.md +4 -4
  1366. package/docs/content/locales/ar-SA/workspace-connections.md +8 -8
  1367. package/docs/content/locales/ar-SA/workspace-management.md +4 -4
  1368. package/docs/content/locales/ar-SA/workspace.md +24 -24
  1369. package/docs/content/locales/ar-SA/writing-agent-instructions.md +18 -18
  1370. package/docs/content/locales/de-DE/a2a-protocol.md +7 -7
  1371. package/docs/content/locales/de-DE/actions.md +5 -5
  1372. package/docs/content/locales/de-DE/agent-mentions.md +4 -4
  1373. package/docs/content/locales/de-DE/agent-surfaces.md +22 -22
  1374. package/docs/content/locales/de-DE/agent-teams.md +4 -4
  1375. package/docs/content/locales/de-DE/agent-web-surfaces.md +4 -4
  1376. package/docs/content/locales/de-DE/authentication.md +6 -6
  1377. package/docs/content/locales/de-DE/automations.md +8 -8
  1378. package/docs/content/locales/de-DE/blueprint-installer.md +2 -2
  1379. package/docs/content/locales/de-DE/client.md +6 -6
  1380. package/docs/content/locales/de-DE/cloneable-saas.md +2 -2
  1381. package/docs/content/locales/de-DE/code-agents-ui.md +9 -9
  1382. package/docs/content/locales/de-DE/components.md +15 -15
  1383. package/docs/content/locales/de-DE/context-awareness.md +8 -8
  1384. package/docs/content/locales/de-DE/creating-templates.md +13 -13
  1385. package/docs/content/locales/de-DE/cross-app-sso.md +3 -3
  1386. package/docs/content/locales/de-DE/database.md +5 -5
  1387. package/docs/content/locales/de-DE/deployment.md +6 -6
  1388. package/docs/content/locales/de-DE/dispatch.md +3 -3
  1389. package/docs/content/locales/de-DE/drop-in-agent.md +14 -14
  1390. package/docs/content/locales/de-DE/durable-resume.md +1 -1
  1391. package/docs/content/locales/de-DE/embedding-sdk.md +2 -2
  1392. package/docs/content/locales/de-DE/evals.md +2 -2
  1393. package/docs/content/locales/de-DE/extensions.md +2 -2
  1394. package/docs/content/locales/de-DE/external-agents.md +6 -6
  1395. package/docs/content/locales/de-DE/faq.md +5 -5
  1396. package/docs/content/locales/de-DE/file-uploads.md +4 -4
  1397. package/docs/content/locales/de-DE/frames.md +2 -2
  1398. package/docs/content/locales/de-DE/getting-started.md +16 -16
  1399. package/docs/content/locales/de-DE/harness-agents.md +3 -3
  1400. package/docs/content/locales/de-DE/human-approval.md +4 -4
  1401. package/docs/content/locales/de-DE/key-concepts.md +14 -14
  1402. package/docs/content/locales/de-DE/local-file-mode.md +8 -8
  1403. package/docs/content/locales/de-DE/mcp-apps.md +4 -4
  1404. package/docs/content/locales/de-DE/mcp-clients.md +7 -7
  1405. package/docs/content/locales/de-DE/mcp-protocol.md +3 -3
  1406. package/docs/content/locales/de-DE/messaging.md +5 -5
  1407. package/docs/content/locales/de-DE/migration-workbench.md +1 -1
  1408. package/docs/content/locales/de-DE/multi-app-workspace.md +2 -2
  1409. package/docs/content/locales/de-DE/multi-tenancy.md +1 -1
  1410. package/docs/content/locales/de-DE/native-chat-ui.md +8 -8
  1411. package/docs/content/locales/de-DE/notifications.md +3 -3
  1412. package/docs/content/locales/de-DE/observability.md +2 -2
  1413. package/docs/content/locales/de-DE/observational-memory.md +2 -2
  1414. package/docs/content/locales/de-DE/onboarding.md +8 -8
  1415. package/docs/content/locales/de-DE/plan-plugin.md +3 -3
  1416. package/docs/content/locales/de-DE/pr-visual-recap.md +11 -11
  1417. package/docs/content/locales/de-DE/processors.md +1 -1
  1418. package/docs/content/locales/de-DE/progress.md +2 -2
  1419. package/docs/content/locales/de-DE/pure-agent-apps.md +1 -1
  1420. package/docs/content/locales/de-DE/real-time-collaboration.md +8 -8
  1421. package/docs/content/locales/de-DE/recurring-jobs.md +5 -5
  1422. package/docs/content/locales/de-DE/routing.md +1 -1
  1423. package/docs/content/locales/de-DE/sandbox-adapters.md +2 -2
  1424. package/docs/content/locales/de-DE/security.md +10 -10
  1425. package/docs/content/locales/de-DE/server.md +10 -10
  1426. package/docs/content/locales/de-DE/sharing.md +6 -6
  1427. package/docs/content/locales/de-DE/skills-guide.md +17 -17
  1428. package/docs/content/locales/de-DE/template-analytics.md +10 -10
  1429. package/docs/content/locales/de-DE/template-assets.md +21 -21
  1430. package/docs/content/locales/de-DE/template-brain.md +11 -11
  1431. package/docs/content/locales/de-DE/template-calendar.md +10 -10
  1432. package/docs/content/locales/de-DE/template-chat.md +5 -5
  1433. package/docs/content/locales/de-DE/template-clips.md +14 -14
  1434. package/docs/content/locales/de-DE/template-content.md +14 -14
  1435. package/docs/content/locales/de-DE/template-design.md +7 -7
  1436. package/docs/content/locales/de-DE/template-dispatch.md +12 -12
  1437. package/docs/content/locales/de-DE/template-forms.md +9 -9
  1438. package/docs/content/locales/de-DE/template-mail.md +6 -6
  1439. package/docs/content/locales/de-DE/template-plan.md +3 -3
  1440. package/docs/content/locales/de-DE/template-slides.md +8 -8
  1441. package/docs/content/locales/de-DE/template-videos.md +6 -6
  1442. package/docs/content/locales/de-DE/tracking.md +3 -3
  1443. package/docs/content/locales/de-DE/using-your-agent.md +6 -6
  1444. package/docs/content/locales/de-DE/voice-input.md +9 -9
  1445. package/docs/content/locales/de-DE/what-is-agent-native.md +6 -6
  1446. package/docs/content/locales/de-DE/workspace-connections.md +9 -9
  1447. package/docs/content/locales/de-DE/workspace-management.md +5 -5
  1448. package/docs/content/locales/de-DE/workspace.md +23 -23
  1449. package/docs/content/locales/de-DE/writing-agent-instructions.md +30 -30
  1450. package/docs/content/locales/es-ES/a2a-protocol.md +7 -7
  1451. package/docs/content/locales/es-ES/actions.md +2 -2
  1452. package/docs/content/locales/es-ES/agent-mentions.md +3 -3
  1453. package/docs/content/locales/es-ES/agent-surfaces.md +7 -7
  1454. package/docs/content/locales/es-ES/agent-teams.md +3 -3
  1455. package/docs/content/locales/es-ES/agent-web-surfaces.md +5 -5
  1456. package/docs/content/locales/es-ES/authentication.md +6 -6
  1457. package/docs/content/locales/es-ES/automations.md +8 -8
  1458. package/docs/content/locales/es-ES/blueprint-installer.md +2 -2
  1459. package/docs/content/locales/es-ES/client.md +1 -1
  1460. package/docs/content/locales/es-ES/cloneable-saas.md +2 -2
  1461. package/docs/content/locales/es-ES/code-agents-ui.md +4 -4
  1462. package/docs/content/locales/es-ES/components.md +5 -5
  1463. package/docs/content/locales/es-ES/context-awareness.md +8 -8
  1464. package/docs/content/locales/es-ES/creating-templates.md +12 -12
  1465. package/docs/content/locales/es-ES/cross-app-sso.md +3 -3
  1466. package/docs/content/locales/es-ES/database.md +5 -5
  1467. package/docs/content/locales/es-ES/deployment.md +4 -4
  1468. package/docs/content/locales/es-ES/dispatch.md +3 -3
  1469. package/docs/content/locales/es-ES/drop-in-agent.md +8 -8
  1470. package/docs/content/locales/es-ES/durable-resume.md +1 -1
  1471. package/docs/content/locales/es-ES/embedding-sdk.md +2 -2
  1472. package/docs/content/locales/es-ES/evals.md +2 -2
  1473. package/docs/content/locales/es-ES/extensions.md +2 -2
  1474. package/docs/content/locales/es-ES/external-agents.md +5 -5
  1475. package/docs/content/locales/es-ES/faq.md +3 -3
  1476. package/docs/content/locales/es-ES/file-uploads.md +4 -4
  1477. package/docs/content/locales/es-ES/frames.md +1 -1
  1478. package/docs/content/locales/es-ES/getting-started.md +13 -13
  1479. package/docs/content/locales/es-ES/harness-agents.md +3 -3
  1480. package/docs/content/locales/es-ES/human-approval.md +3 -3
  1481. package/docs/content/locales/es-ES/key-concepts.md +14 -14
  1482. package/docs/content/locales/es-ES/local-file-mode.md +6 -6
  1483. package/docs/content/locales/es-ES/mcp-apps.md +4 -4
  1484. package/docs/content/locales/es-ES/mcp-clients.md +8 -8
  1485. package/docs/content/locales/es-ES/mcp-protocol.md +3 -3
  1486. package/docs/content/locales/es-ES/messaging.md +4 -4
  1487. package/docs/content/locales/es-ES/migration-workbench.md +1 -1
  1488. package/docs/content/locales/es-ES/multi-app-workspace.md +1 -1
  1489. package/docs/content/locales/es-ES/multi-tenancy.md +1 -1
  1490. package/docs/content/locales/es-ES/native-chat-ui.md +3 -3
  1491. package/docs/content/locales/es-ES/notifications.md +3 -3
  1492. package/docs/content/locales/es-ES/observability.md +2 -2
  1493. package/docs/content/locales/es-ES/observational-memory.md +2 -2
  1494. package/docs/content/locales/es-ES/onboarding.md +8 -8
  1495. package/docs/content/locales/es-ES/plan-plugin.md +3 -3
  1496. package/docs/content/locales/es-ES/pr-visual-recap.md +11 -11
  1497. package/docs/content/locales/es-ES/processors.md +1 -1
  1498. package/docs/content/locales/es-ES/progress.md +2 -2
  1499. package/docs/content/locales/es-ES/pure-agent-apps.md +1 -1
  1500. package/docs/content/locales/es-ES/real-time-collaboration.md +6 -6
  1501. package/docs/content/locales/es-ES/recurring-jobs.md +5 -5
  1502. package/docs/content/locales/es-ES/routing.md +1 -1
  1503. package/docs/content/locales/es-ES/sandbox-adapters.md +2 -2
  1504. package/docs/content/locales/es-ES/security.md +8 -8
  1505. package/docs/content/locales/es-ES/server.md +11 -11
  1506. package/docs/content/locales/es-ES/sharing.md +6 -6
  1507. package/docs/content/locales/es-ES/skills-guide.md +16 -16
  1508. package/docs/content/locales/es-ES/template-analytics.md +10 -10
  1509. package/docs/content/locales/es-ES/template-assets.md +19 -19
  1510. package/docs/content/locales/es-ES/template-brain.md +11 -11
  1511. package/docs/content/locales/es-ES/template-calendar.md +9 -9
  1512. package/docs/content/locales/es-ES/template-chat.md +3 -3
  1513. package/docs/content/locales/es-ES/template-clips.md +14 -14
  1514. package/docs/content/locales/es-ES/template-content.md +13 -13
  1515. package/docs/content/locales/es-ES/template-design.md +7 -7
  1516. package/docs/content/locales/es-ES/template-dispatch.md +8 -8
  1517. package/docs/content/locales/es-ES/template-forms.md +9 -9
  1518. package/docs/content/locales/es-ES/template-mail.md +6 -6
  1519. package/docs/content/locales/es-ES/template-plan.md +3 -3
  1520. package/docs/content/locales/es-ES/template-slides.md +8 -8
  1521. package/docs/content/locales/es-ES/template-videos.md +5 -5
  1522. package/docs/content/locales/es-ES/tracking.md +3 -3
  1523. package/docs/content/locales/es-ES/using-your-agent.md +5 -5
  1524. package/docs/content/locales/es-ES/voice-input.md +4 -4
  1525. package/docs/content/locales/es-ES/what-is-agent-native.md +6 -6
  1526. package/docs/content/locales/es-ES/workspace-connections.md +8 -8
  1527. package/docs/content/locales/es-ES/workspace-management.md +4 -4
  1528. package/docs/content/locales/es-ES/workspace.md +23 -23
  1529. package/docs/content/locales/es-ES/writing-agent-instructions.md +18 -18
  1530. package/docs/content/locales/fr-FR/a2a-protocol.md +7 -7
  1531. package/docs/content/locales/fr-FR/actions.md +2 -2
  1532. package/docs/content/locales/fr-FR/agent-mentions.md +3 -3
  1533. package/docs/content/locales/fr-FR/agent-surfaces.md +7 -7
  1534. package/docs/content/locales/fr-FR/agent-teams.md +3 -3
  1535. package/docs/content/locales/fr-FR/agent-web-surfaces.md +5 -5
  1536. package/docs/content/locales/fr-FR/authentication.md +6 -6
  1537. package/docs/content/locales/fr-FR/automations.md +8 -8
  1538. package/docs/content/locales/fr-FR/blueprint-installer.md +2 -2
  1539. package/docs/content/locales/fr-FR/client.md +1 -1
  1540. package/docs/content/locales/fr-FR/cloneable-saas.md +2 -2
  1541. package/docs/content/locales/fr-FR/code-agents-ui.md +4 -4
  1542. package/docs/content/locales/fr-FR/components.md +5 -5
  1543. package/docs/content/locales/fr-FR/context-awareness.md +8 -8
  1544. package/docs/content/locales/fr-FR/creating-templates.md +12 -12
  1545. package/docs/content/locales/fr-FR/cross-app-sso.md +4 -4
  1546. package/docs/content/locales/fr-FR/database.md +5 -5
  1547. package/docs/content/locales/fr-FR/deployment.md +5 -5
  1548. package/docs/content/locales/fr-FR/dispatch.md +3 -3
  1549. package/docs/content/locales/fr-FR/drop-in-agent.md +9 -9
  1550. package/docs/content/locales/fr-FR/durable-resume.md +1 -1
  1551. package/docs/content/locales/fr-FR/embedding-sdk.md +7 -7
  1552. package/docs/content/locales/fr-FR/evals.md +2 -2
  1553. package/docs/content/locales/fr-FR/extensions.md +2 -2
  1554. package/docs/content/locales/fr-FR/external-agents.md +5 -5
  1555. package/docs/content/locales/fr-FR/faq.md +3 -3
  1556. package/docs/content/locales/fr-FR/file-uploads.md +5 -5
  1557. package/docs/content/locales/fr-FR/frames.md +1 -1
  1558. package/docs/content/locales/fr-FR/getting-started.md +13 -13
  1559. package/docs/content/locales/fr-FR/harness-agents.md +3 -3
  1560. package/docs/content/locales/fr-FR/human-approval.md +3 -3
  1561. package/docs/content/locales/fr-FR/key-concepts.md +15 -15
  1562. package/docs/content/locales/fr-FR/local-file-mode.md +5 -5
  1563. package/docs/content/locales/fr-FR/mcp-apps.md +4 -4
  1564. package/docs/content/locales/fr-FR/mcp-clients.md +8 -8
  1565. package/docs/content/locales/fr-FR/mcp-protocol.md +3 -3
  1566. package/docs/content/locales/fr-FR/messaging.md +4 -4
  1567. package/docs/content/locales/fr-FR/migration-workbench.md +1 -1
  1568. package/docs/content/locales/fr-FR/multi-app-workspace.md +1 -1
  1569. package/docs/content/locales/fr-FR/multi-tenancy.md +1 -1
  1570. package/docs/content/locales/fr-FR/native-chat-ui.md +3 -3
  1571. package/docs/content/locales/fr-FR/notifications.md +3 -3
  1572. package/docs/content/locales/fr-FR/observability.md +2 -2
  1573. package/docs/content/locales/fr-FR/observational-memory.md +2 -2
  1574. package/docs/content/locales/fr-FR/onboarding.md +8 -8
  1575. package/docs/content/locales/fr-FR/plan-plugin.md +3 -3
  1576. package/docs/content/locales/fr-FR/pr-visual-recap.md +11 -11
  1577. package/docs/content/locales/fr-FR/processors.md +1 -1
  1578. package/docs/content/locales/fr-FR/progress.md +2 -2
  1579. package/docs/content/locales/fr-FR/pure-agent-apps.md +1 -1
  1580. package/docs/content/locales/fr-FR/real-time-collaboration.md +8 -8
  1581. package/docs/content/locales/fr-FR/recurring-jobs.md +5 -5
  1582. package/docs/content/locales/fr-FR/routing.md +1 -1
  1583. package/docs/content/locales/fr-FR/sandbox-adapters.md +2 -2
  1584. package/docs/content/locales/fr-FR/security.md +8 -8
  1585. package/docs/content/locales/fr-FR/server.md +10 -10
  1586. package/docs/content/locales/fr-FR/sharing.md +6 -6
  1587. package/docs/content/locales/fr-FR/skills-guide.md +16 -16
  1588. package/docs/content/locales/fr-FR/template-analytics.md +10 -10
  1589. package/docs/content/locales/fr-FR/template-assets.md +20 -20
  1590. package/docs/content/locales/fr-FR/template-brain.md +11 -11
  1591. package/docs/content/locales/fr-FR/template-calendar.md +9 -9
  1592. package/docs/content/locales/fr-FR/template-chat.md +3 -3
  1593. package/docs/content/locales/fr-FR/template-clips.md +15 -15
  1594. package/docs/content/locales/fr-FR/template-content.md +13 -13
  1595. package/docs/content/locales/fr-FR/template-design.md +8 -8
  1596. package/docs/content/locales/fr-FR/template-dispatch.md +8 -8
  1597. package/docs/content/locales/fr-FR/template-forms.md +10 -10
  1598. package/docs/content/locales/fr-FR/template-mail.md +6 -6
  1599. package/docs/content/locales/fr-FR/template-plan.md +3 -3
  1600. package/docs/content/locales/fr-FR/template-slides.md +9 -9
  1601. package/docs/content/locales/fr-FR/template-videos.md +5 -5
  1602. package/docs/content/locales/fr-FR/tracking.md +3 -3
  1603. package/docs/content/locales/fr-FR/using-your-agent.md +5 -5
  1604. package/docs/content/locales/fr-FR/voice-input.md +4 -4
  1605. package/docs/content/locales/fr-FR/what-is-agent-native.md +6 -6
  1606. package/docs/content/locales/fr-FR/workspace-connections.md +8 -8
  1607. package/docs/content/locales/fr-FR/workspace-management.md +5 -5
  1608. package/docs/content/locales/fr-FR/workspace.md +23 -23
  1609. package/docs/content/locales/fr-FR/writing-agent-instructions.md +18 -18
  1610. package/docs/content/locales/hi-IN/a2a-protocol.md +7 -7
  1611. package/docs/content/locales/hi-IN/actions.md +3 -3
  1612. package/docs/content/locales/hi-IN/agent-mentions.md +3 -3
  1613. package/docs/content/locales/hi-IN/agent-surfaces.md +7 -7
  1614. package/docs/content/locales/hi-IN/agent-teams.md +3 -3
  1615. package/docs/content/locales/hi-IN/agent-web-surfaces.md +5 -5
  1616. package/docs/content/locales/hi-IN/authentication.md +6 -6
  1617. package/docs/content/locales/hi-IN/automations.md +8 -8
  1618. package/docs/content/locales/hi-IN/blueprint-installer.md +2 -2
  1619. package/docs/content/locales/hi-IN/client.md +1 -1
  1620. package/docs/content/locales/hi-IN/cloneable-saas.md +2 -2
  1621. package/docs/content/locales/hi-IN/code-agents-ui.md +4 -4
  1622. package/docs/content/locales/hi-IN/components.md +5 -5
  1623. package/docs/content/locales/hi-IN/context-awareness.md +8 -8
  1624. package/docs/content/locales/hi-IN/creating-templates.md +14 -14
  1625. package/docs/content/locales/hi-IN/cross-app-sso.md +3 -3
  1626. package/docs/content/locales/hi-IN/database.md +5 -5
  1627. package/docs/content/locales/hi-IN/deployment.md +5 -5
  1628. package/docs/content/locales/hi-IN/dispatch.md +4 -4
  1629. package/docs/content/locales/hi-IN/drop-in-agent.md +8 -8
  1630. package/docs/content/locales/hi-IN/durable-resume.md +1 -1
  1631. package/docs/content/locales/hi-IN/embedding-sdk.md +2 -2
  1632. package/docs/content/locales/hi-IN/evals.md +2 -2
  1633. package/docs/content/locales/hi-IN/extensions.md +2 -2
  1634. package/docs/content/locales/hi-IN/external-agents.md +5 -5
  1635. package/docs/content/locales/hi-IN/faq.md +3 -3
  1636. package/docs/content/locales/hi-IN/file-uploads.md +4 -4
  1637. package/docs/content/locales/hi-IN/frames.md +1 -1
  1638. package/docs/content/locales/hi-IN/getting-started.md +14 -14
  1639. package/docs/content/locales/hi-IN/harness-agents.md +3 -3
  1640. package/docs/content/locales/hi-IN/human-approval.md +3 -3
  1641. package/docs/content/locales/hi-IN/key-concepts.md +14 -14
  1642. package/docs/content/locales/hi-IN/local-file-mode.md +5 -5
  1643. package/docs/content/locales/hi-IN/mcp-apps.md +4 -4
  1644. package/docs/content/locales/hi-IN/mcp-clients.md +7 -7
  1645. package/docs/content/locales/hi-IN/mcp-protocol.md +3 -3
  1646. package/docs/content/locales/hi-IN/messaging.md +6 -6
  1647. package/docs/content/locales/hi-IN/migration-workbench.md +1 -1
  1648. package/docs/content/locales/hi-IN/multi-app-workspace.md +1 -1
  1649. package/docs/content/locales/hi-IN/multi-tenancy.md +1 -1
  1650. package/docs/content/locales/hi-IN/native-chat-ui.md +3 -3
  1651. package/docs/content/locales/hi-IN/notifications.md +3 -3
  1652. package/docs/content/locales/hi-IN/observability.md +2 -2
  1653. package/docs/content/locales/hi-IN/observational-memory.md +2 -2
  1654. package/docs/content/locales/hi-IN/onboarding.md +8 -8
  1655. package/docs/content/locales/hi-IN/plan-plugin.md +3 -3
  1656. package/docs/content/locales/hi-IN/pr-visual-recap.md +11 -11
  1657. package/docs/content/locales/hi-IN/processors.md +1 -1
  1658. package/docs/content/locales/hi-IN/progress.md +2 -2
  1659. package/docs/content/locales/hi-IN/pure-agent-apps.md +1 -1
  1660. package/docs/content/locales/hi-IN/real-time-collaboration.md +6 -6
  1661. package/docs/content/locales/hi-IN/recurring-jobs.md +5 -5
  1662. package/docs/content/locales/hi-IN/routing.md +1 -1
  1663. package/docs/content/locales/hi-IN/sandbox-adapters.md +2 -2
  1664. package/docs/content/locales/hi-IN/security.md +8 -8
  1665. package/docs/content/locales/hi-IN/server.md +10 -10
  1666. package/docs/content/locales/hi-IN/sharing.md +6 -6
  1667. package/docs/content/locales/hi-IN/skills-guide.md +16 -16
  1668. package/docs/content/locales/hi-IN/template-analytics.md +10 -10
  1669. package/docs/content/locales/hi-IN/template-assets.md +19 -19
  1670. package/docs/content/locales/hi-IN/template-brain.md +11 -11
  1671. package/docs/content/locales/hi-IN/template-calendar.md +9 -9
  1672. package/docs/content/locales/hi-IN/template-chat.md +3 -3
  1673. package/docs/content/locales/hi-IN/template-clips.md +14 -14
  1674. package/docs/content/locales/hi-IN/template-content.md +13 -13
  1675. package/docs/content/locales/hi-IN/template-design.md +7 -7
  1676. package/docs/content/locales/hi-IN/template-dispatch.md +9 -9
  1677. package/docs/content/locales/hi-IN/template-forms.md +9 -9
  1678. package/docs/content/locales/hi-IN/template-mail.md +6 -6
  1679. package/docs/content/locales/hi-IN/template-plan.md +3 -3
  1680. package/docs/content/locales/hi-IN/template-slides.md +8 -8
  1681. package/docs/content/locales/hi-IN/template-videos.md +5 -5
  1682. package/docs/content/locales/hi-IN/tracking.md +3 -3
  1683. package/docs/content/locales/hi-IN/using-your-agent.md +1 -1
  1684. package/docs/content/locales/hi-IN/voice-input.md +4 -4
  1685. package/docs/content/locales/hi-IN/what-is-agent-native.md +4 -4
  1686. package/docs/content/locales/hi-IN/workspace-connections.md +8 -8
  1687. package/docs/content/locales/hi-IN/workspace-management.md +4 -4
  1688. package/docs/content/locales/hi-IN/workspace.md +23 -23
  1689. package/docs/content/locales/hi-IN/writing-agent-instructions.md +18 -18
  1690. package/docs/content/locales/ja-JP/a2a-protocol.md +7 -7
  1691. package/docs/content/locales/ja-JP/actions.md +3 -3
  1692. package/docs/content/locales/ja-JP/agent-mentions.md +3 -3
  1693. package/docs/content/locales/ja-JP/agent-surfaces.md +7 -7
  1694. package/docs/content/locales/ja-JP/agent-teams.md +3 -3
  1695. package/docs/content/locales/ja-JP/agent-web-surfaces.md +5 -5
  1696. package/docs/content/locales/ja-JP/authentication.md +6 -6
  1697. package/docs/content/locales/ja-JP/automations.md +8 -8
  1698. package/docs/content/locales/ja-JP/blueprint-installer.md +2 -2
  1699. package/docs/content/locales/ja-JP/client.md +1 -1
  1700. package/docs/content/locales/ja-JP/cloneable-saas.md +2 -2
  1701. package/docs/content/locales/ja-JP/code-agents-ui.md +4 -4
  1702. package/docs/content/locales/ja-JP/components.md +5 -5
  1703. package/docs/content/locales/ja-JP/context-awareness.md +8 -8
  1704. package/docs/content/locales/ja-JP/creating-templates.md +12 -12
  1705. package/docs/content/locales/ja-JP/cross-app-sso.md +3 -3
  1706. package/docs/content/locales/ja-JP/database.md +7 -7
  1707. package/docs/content/locales/ja-JP/deployment.md +4 -4
  1708. package/docs/content/locales/ja-JP/dispatch.md +4 -4
  1709. package/docs/content/locales/ja-JP/drop-in-agent.md +8 -8
  1710. package/docs/content/locales/ja-JP/durable-resume.md +1 -1
  1711. package/docs/content/locales/ja-JP/embedding-sdk.md +2 -2
  1712. package/docs/content/locales/ja-JP/evals.md +2 -2
  1713. package/docs/content/locales/ja-JP/extensions.md +2 -2
  1714. package/docs/content/locales/ja-JP/external-agents.md +5 -5
  1715. package/docs/content/locales/ja-JP/faq.md +3 -3
  1716. package/docs/content/locales/ja-JP/file-uploads.md +4 -4
  1717. package/docs/content/locales/ja-JP/frames.md +1 -1
  1718. package/docs/content/locales/ja-JP/getting-started.md +13 -13
  1719. package/docs/content/locales/ja-JP/harness-agents.md +3 -3
  1720. package/docs/content/locales/ja-JP/human-approval.md +3 -3
  1721. package/docs/content/locales/ja-JP/key-concepts.md +14 -14
  1722. package/docs/content/locales/ja-JP/local-file-mode.md +5 -5
  1723. package/docs/content/locales/ja-JP/mcp-apps.md +4 -4
  1724. package/docs/content/locales/ja-JP/mcp-clients.md +8 -8
  1725. package/docs/content/locales/ja-JP/mcp-protocol.md +3 -3
  1726. package/docs/content/locales/ja-JP/messaging.md +6 -6
  1727. package/docs/content/locales/ja-JP/migration-workbench.md +1 -1
  1728. package/docs/content/locales/ja-JP/multi-app-workspace.md +1 -1
  1729. package/docs/content/locales/ja-JP/multi-tenancy.md +1 -1
  1730. package/docs/content/locales/ja-JP/native-chat-ui.md +3 -3
  1731. package/docs/content/locales/ja-JP/notifications.md +3 -3
  1732. package/docs/content/locales/ja-JP/observability.md +2 -2
  1733. package/docs/content/locales/ja-JP/observational-memory.md +2 -2
  1734. package/docs/content/locales/ja-JP/onboarding.md +8 -8
  1735. package/docs/content/locales/ja-JP/plan-plugin.md +3 -3
  1736. package/docs/content/locales/ja-JP/pr-visual-recap.md +11 -11
  1737. package/docs/content/locales/ja-JP/processors.md +1 -1
  1738. package/docs/content/locales/ja-JP/progress.md +2 -2
  1739. package/docs/content/locales/ja-JP/pure-agent-apps.md +1 -1
  1740. package/docs/content/locales/ja-JP/real-time-collaboration.md +6 -6
  1741. package/docs/content/locales/ja-JP/recurring-jobs.md +5 -5
  1742. package/docs/content/locales/ja-JP/routing.md +1 -1
  1743. package/docs/content/locales/ja-JP/sandbox-adapters.md +2 -2
  1744. package/docs/content/locales/ja-JP/security.md +8 -8
  1745. package/docs/content/locales/ja-JP/server.md +10 -10
  1746. package/docs/content/locales/ja-JP/sharing.md +6 -6
  1747. package/docs/content/locales/ja-JP/skills-guide.md +16 -16
  1748. package/docs/content/locales/ja-JP/template-analytics.md +10 -10
  1749. package/docs/content/locales/ja-JP/template-assets.md +19 -19
  1750. package/docs/content/locales/ja-JP/template-brain.md +11 -11
  1751. package/docs/content/locales/ja-JP/template-calendar.md +9 -9
  1752. package/docs/content/locales/ja-JP/template-chat.md +3 -3
  1753. package/docs/content/locales/ja-JP/template-clips.md +14 -14
  1754. package/docs/content/locales/ja-JP/template-content.md +13 -13
  1755. package/docs/content/locales/ja-JP/template-design.md +7 -7
  1756. package/docs/content/locales/ja-JP/template-dispatch.md +12 -12
  1757. package/docs/content/locales/ja-JP/template-forms.md +9 -9
  1758. package/docs/content/locales/ja-JP/template-mail.md +6 -6
  1759. package/docs/content/locales/ja-JP/template-plan.md +3 -3
  1760. package/docs/content/locales/ja-JP/template-slides.md +8 -8
  1761. package/docs/content/locales/ja-JP/template-videos.md +5 -5
  1762. package/docs/content/locales/ja-JP/tracking.md +3 -3
  1763. package/docs/content/locales/ja-JP/using-your-agent.md +4 -4
  1764. package/docs/content/locales/ja-JP/voice-input.md +4 -4
  1765. package/docs/content/locales/ja-JP/what-is-agent-native.md +4 -4
  1766. package/docs/content/locales/ja-JP/workspace-connections.md +8 -8
  1767. package/docs/content/locales/ja-JP/workspace-management.md +5 -5
  1768. package/docs/content/locales/ja-JP/workspace.md +23 -23
  1769. package/docs/content/locales/ja-JP/writing-agent-instructions.md +18 -18
  1770. package/docs/content/locales/ko-KR/a2a-protocol.md +7 -7
  1771. package/docs/content/locales/ko-KR/actions.md +3 -3
  1772. package/docs/content/locales/ko-KR/agent-mentions.md +3 -3
  1773. package/docs/content/locales/ko-KR/agent-surfaces.md +15 -15
  1774. package/docs/content/locales/ko-KR/agent-teams.md +3 -3
  1775. package/docs/content/locales/ko-KR/agent-web-surfaces.md +5 -5
  1776. package/docs/content/locales/ko-KR/authentication.md +13 -13
  1777. package/docs/content/locales/ko-KR/automations.md +8 -8
  1778. package/docs/content/locales/ko-KR/blueprint-installer.md +2 -2
  1779. package/docs/content/locales/ko-KR/client.md +1 -1
  1780. package/docs/content/locales/ko-KR/cloneable-saas.md +2 -2
  1781. package/docs/content/locales/ko-KR/code-agents-ui.md +4 -4
  1782. package/docs/content/locales/ko-KR/components.md +5 -5
  1783. package/docs/content/locales/ko-KR/context-awareness.md +8 -8
  1784. package/docs/content/locales/ko-KR/creating-templates.md +12 -12
  1785. package/docs/content/locales/ko-KR/cross-app-sso.md +3 -3
  1786. package/docs/content/locales/ko-KR/database.md +7 -7
  1787. package/docs/content/locales/ko-KR/deployment.md +4 -4
  1788. package/docs/content/locales/ko-KR/dispatch.md +4 -4
  1789. package/docs/content/locales/ko-KR/drop-in-agent.md +8 -8
  1790. package/docs/content/locales/ko-KR/durable-resume.md +1 -1
  1791. package/docs/content/locales/ko-KR/embedding-sdk.md +2 -2
  1792. package/docs/content/locales/ko-KR/evals.md +2 -2
  1793. package/docs/content/locales/ko-KR/extensions.md +2 -2
  1794. package/docs/content/locales/ko-KR/external-agents.md +5 -5
  1795. package/docs/content/locales/ko-KR/faq.md +3 -3
  1796. package/docs/content/locales/ko-KR/file-uploads.md +4 -4
  1797. package/docs/content/locales/ko-KR/frames.md +1 -1
  1798. package/docs/content/locales/ko-KR/getting-started.md +13 -13
  1799. package/docs/content/locales/ko-KR/harness-agents.md +3 -3
  1800. package/docs/content/locales/ko-KR/human-approval.md +3 -3
  1801. package/docs/content/locales/ko-KR/key-concepts.md +14 -14
  1802. package/docs/content/locales/ko-KR/local-file-mode.md +5 -5
  1803. package/docs/content/locales/ko-KR/mcp-apps.md +4 -4
  1804. package/docs/content/locales/ko-KR/mcp-clients.md +8 -8
  1805. package/docs/content/locales/ko-KR/mcp-protocol.md +3 -3
  1806. package/docs/content/locales/ko-KR/messaging.md +6 -6
  1807. package/docs/content/locales/ko-KR/migration-workbench.md +1 -1
  1808. package/docs/content/locales/ko-KR/multi-app-workspace.md +1 -1
  1809. package/docs/content/locales/ko-KR/multi-tenancy.md +1 -1
  1810. package/docs/content/locales/ko-KR/native-chat-ui.md +3 -3
  1811. package/docs/content/locales/ko-KR/notifications.md +3 -3
  1812. package/docs/content/locales/ko-KR/observability.md +2 -2
  1813. package/docs/content/locales/ko-KR/observational-memory.md +2 -2
  1814. package/docs/content/locales/ko-KR/onboarding.md +8 -8
  1815. package/docs/content/locales/ko-KR/plan-plugin.md +3 -3
  1816. package/docs/content/locales/ko-KR/pr-visual-recap.md +11 -11
  1817. package/docs/content/locales/ko-KR/processors.md +1 -1
  1818. package/docs/content/locales/ko-KR/progress.md +2 -2
  1819. package/docs/content/locales/ko-KR/pure-agent-apps.md +1 -1
  1820. package/docs/content/locales/ko-KR/real-time-collaboration.md +6 -6
  1821. package/docs/content/locales/ko-KR/recurring-jobs.md +5 -5
  1822. package/docs/content/locales/ko-KR/routing.md +1 -1
  1823. package/docs/content/locales/ko-KR/sandbox-adapters.md +2 -2
  1824. package/docs/content/locales/ko-KR/security.md +8 -8
  1825. package/docs/content/locales/ko-KR/server.md +10 -10
  1826. package/docs/content/locales/ko-KR/sharing.md +6 -6
  1827. package/docs/content/locales/ko-KR/skills-guide.md +16 -16
  1828. package/docs/content/locales/ko-KR/template-analytics.md +10 -10
  1829. package/docs/content/locales/ko-KR/template-assets.md +19 -19
  1830. package/docs/content/locales/ko-KR/template-brain.md +11 -11
  1831. package/docs/content/locales/ko-KR/template-calendar.md +9 -9
  1832. package/docs/content/locales/ko-KR/template-chat.md +3 -3
  1833. package/docs/content/locales/ko-KR/template-clips.md +14 -14
  1834. package/docs/content/locales/ko-KR/template-content.md +13 -13
  1835. package/docs/content/locales/ko-KR/template-design.md +7 -7
  1836. package/docs/content/locales/ko-KR/template-dispatch.md +11 -11
  1837. package/docs/content/locales/ko-KR/template-forms.md +9 -9
  1838. package/docs/content/locales/ko-KR/template-mail.md +6 -6
  1839. package/docs/content/locales/ko-KR/template-plan.md +3 -3
  1840. package/docs/content/locales/ko-KR/template-slides.md +8 -8
  1841. package/docs/content/locales/ko-KR/template-videos.md +5 -5
  1842. package/docs/content/locales/ko-KR/tracking.md +3 -3
  1843. package/docs/content/locales/ko-KR/using-your-agent.md +5 -5
  1844. package/docs/content/locales/ko-KR/voice-input.md +4 -4
  1845. package/docs/content/locales/ko-KR/what-is-agent-native.md +6 -6
  1846. package/docs/content/locales/ko-KR/workspace-connections.md +8 -8
  1847. package/docs/content/locales/ko-KR/workspace-management.md +4 -4
  1848. package/docs/content/locales/ko-KR/workspace.md +23 -23
  1849. package/docs/content/locales/ko-KR/writing-agent-instructions.md +18 -18
  1850. package/docs/content/locales/pt-BR/a2a-protocol.md +7 -7
  1851. package/docs/content/locales/pt-BR/actions.md +2 -2
  1852. package/docs/content/locales/pt-BR/agent-mentions.md +3 -3
  1853. package/docs/content/locales/pt-BR/agent-surfaces.md +7 -7
  1854. package/docs/content/locales/pt-BR/agent-teams.md +3 -3
  1855. package/docs/content/locales/pt-BR/agent-web-surfaces.md +5 -5
  1856. package/docs/content/locales/pt-BR/authentication.md +6 -6
  1857. package/docs/content/locales/pt-BR/automations.md +8 -8
  1858. package/docs/content/locales/pt-BR/blueprint-installer.md +2 -2
  1859. package/docs/content/locales/pt-BR/client.md +2 -2
  1860. package/docs/content/locales/pt-BR/cloneable-saas.md +2 -2
  1861. package/docs/content/locales/pt-BR/code-agents-ui.md +4 -4
  1862. package/docs/content/locales/pt-BR/components.md +5 -5
  1863. package/docs/content/locales/pt-BR/context-awareness.md +8 -8
  1864. package/docs/content/locales/pt-BR/creating-templates.md +12 -12
  1865. package/docs/content/locales/pt-BR/cross-app-sso.md +3 -3
  1866. package/docs/content/locales/pt-BR/database.md +5 -5
  1867. package/docs/content/locales/pt-BR/deployment.md +5 -5
  1868. package/docs/content/locales/pt-BR/dispatch.md +3 -3
  1869. package/docs/content/locales/pt-BR/drop-in-agent.md +9 -9
  1870. package/docs/content/locales/pt-BR/durable-resume.md +1 -1
  1871. package/docs/content/locales/pt-BR/embedding-sdk.md +2 -2
  1872. package/docs/content/locales/pt-BR/evals.md +2 -2
  1873. package/docs/content/locales/pt-BR/extensions.md +2 -2
  1874. package/docs/content/locales/pt-BR/external-agents.md +5 -5
  1875. package/docs/content/locales/pt-BR/faq.md +3 -3
  1876. package/docs/content/locales/pt-BR/file-uploads.md +4 -4
  1877. package/docs/content/locales/pt-BR/frames.md +2 -2
  1878. package/docs/content/locales/pt-BR/getting-started.md +13 -13
  1879. package/docs/content/locales/pt-BR/harness-agents.md +3 -3
  1880. package/docs/content/locales/pt-BR/human-approval.md +3 -3
  1881. package/docs/content/locales/pt-BR/key-concepts.md +15 -15
  1882. package/docs/content/locales/pt-BR/local-file-mode.md +5 -5
  1883. package/docs/content/locales/pt-BR/mcp-apps.md +4 -4
  1884. package/docs/content/locales/pt-BR/mcp-clients.md +8 -8
  1885. package/docs/content/locales/pt-BR/mcp-protocol.md +3 -3
  1886. package/docs/content/locales/pt-BR/messaging.md +4 -4
  1887. package/docs/content/locales/pt-BR/migration-workbench.md +1 -1
  1888. package/docs/content/locales/pt-BR/multi-app-workspace.md +1 -1
  1889. package/docs/content/locales/pt-BR/multi-tenancy.md +1 -1
  1890. package/docs/content/locales/pt-BR/native-chat-ui.md +3 -3
  1891. package/docs/content/locales/pt-BR/notifications.md +3 -3
  1892. package/docs/content/locales/pt-BR/observability.md +2 -2
  1893. package/docs/content/locales/pt-BR/observational-memory.md +2 -2
  1894. package/docs/content/locales/pt-BR/onboarding.md +8 -8
  1895. package/docs/content/locales/pt-BR/plan-plugin.md +3 -3
  1896. package/docs/content/locales/pt-BR/pr-visual-recap.md +11 -11
  1897. package/docs/content/locales/pt-BR/processors.md +1 -1
  1898. package/docs/content/locales/pt-BR/progress.md +2 -2
  1899. package/docs/content/locales/pt-BR/pure-agent-apps.md +1 -1
  1900. package/docs/content/locales/pt-BR/real-time-collaboration.md +6 -6
  1901. package/docs/content/locales/pt-BR/recurring-jobs.md +5 -5
  1902. package/docs/content/locales/pt-BR/routing.md +1 -1
  1903. package/docs/content/locales/pt-BR/sandbox-adapters.md +2 -2
  1904. package/docs/content/locales/pt-BR/security.md +9 -9
  1905. package/docs/content/locales/pt-BR/server.md +10 -10
  1906. package/docs/content/locales/pt-BR/sharing.md +6 -6
  1907. package/docs/content/locales/pt-BR/skills-guide.md +16 -16
  1908. package/docs/content/locales/pt-BR/template-analytics.md +10 -10
  1909. package/docs/content/locales/pt-BR/template-assets.md +20 -20
  1910. package/docs/content/locales/pt-BR/template-brain.md +11 -11
  1911. package/docs/content/locales/pt-BR/template-calendar.md +9 -9
  1912. package/docs/content/locales/pt-BR/template-chat.md +3 -3
  1913. package/docs/content/locales/pt-BR/template-clips.md +15 -15
  1914. package/docs/content/locales/pt-BR/template-content.md +13 -13
  1915. package/docs/content/locales/pt-BR/template-design.md +8 -8
  1916. package/docs/content/locales/pt-BR/template-dispatch.md +8 -8
  1917. package/docs/content/locales/pt-BR/template-forms.md +10 -10
  1918. package/docs/content/locales/pt-BR/template-mail.md +6 -6
  1919. package/docs/content/locales/pt-BR/template-plan.md +3 -3
  1920. package/docs/content/locales/pt-BR/template-slides.md +9 -9
  1921. package/docs/content/locales/pt-BR/template-videos.md +5 -5
  1922. package/docs/content/locales/pt-BR/tracking.md +3 -3
  1923. package/docs/content/locales/pt-BR/using-your-agent.md +5 -5
  1924. package/docs/content/locales/pt-BR/voice-input.md +4 -4
  1925. package/docs/content/locales/pt-BR/what-is-agent-native.md +5 -5
  1926. package/docs/content/locales/pt-BR/workspace-connections.md +8 -8
  1927. package/docs/content/locales/pt-BR/workspace-management.md +4 -4
  1928. package/docs/content/locales/pt-BR/workspace.md +23 -23
  1929. package/docs/content/locales/pt-BR/writing-agent-instructions.md +18 -18
  1930. package/docs/content/locales/zh-CN/a2a-protocol.md +7 -7
  1931. package/docs/content/locales/zh-CN/actions.md +3 -3
  1932. package/docs/content/locales/zh-CN/agent-mentions.md +3 -3
  1933. package/docs/content/locales/zh-CN/agent-surfaces.md +7 -7
  1934. package/docs/content/locales/zh-CN/agent-teams.md +3 -3
  1935. package/docs/content/locales/zh-CN/agent-web-surfaces.md +5 -5
  1936. package/docs/content/locales/zh-CN/authentication.md +13 -13
  1937. package/docs/content/locales/zh-CN/automations.md +8 -8
  1938. package/docs/content/locales/zh-CN/blueprint-installer.md +2 -2
  1939. package/docs/content/locales/zh-CN/client.md +1 -1
  1940. package/docs/content/locales/zh-CN/cloneable-saas.md +2 -2
  1941. package/docs/content/locales/zh-CN/code-agents-ui.md +4 -4
  1942. package/docs/content/locales/zh-CN/components.md +7 -7
  1943. package/docs/content/locales/zh-CN/context-awareness.md +8 -8
  1944. package/docs/content/locales/zh-CN/creating-templates.md +12 -12
  1945. package/docs/content/locales/zh-CN/cross-app-sso.md +3 -3
  1946. package/docs/content/locales/zh-CN/database.md +7 -7
  1947. package/docs/content/locales/zh-CN/deployment.md +4 -4
  1948. package/docs/content/locales/zh-CN/dispatch.md +4 -4
  1949. package/docs/content/locales/zh-CN/drop-in-agent.md +8 -8
  1950. package/docs/content/locales/zh-CN/durable-resume.md +1 -1
  1951. package/docs/content/locales/zh-CN/embedding-sdk.md +2 -2
  1952. package/docs/content/locales/zh-CN/evals.md +2 -2
  1953. package/docs/content/locales/zh-CN/extensions.md +2 -2
  1954. package/docs/content/locales/zh-CN/external-agents.md +5 -5
  1955. package/docs/content/locales/zh-CN/faq.md +3 -3
  1956. package/docs/content/locales/zh-CN/file-uploads.md +4 -4
  1957. package/docs/content/locales/zh-CN/frames.md +2 -2
  1958. package/docs/content/locales/zh-CN/getting-started.md +13 -13
  1959. package/docs/content/locales/zh-CN/harness-agents.md +3 -3
  1960. package/docs/content/locales/zh-CN/human-approval.md +3 -3
  1961. package/docs/content/locales/zh-CN/key-concepts.md +14 -14
  1962. package/docs/content/locales/zh-CN/local-file-mode.md +5 -5
  1963. package/docs/content/locales/zh-CN/mcp-apps.md +4 -4
  1964. package/docs/content/locales/zh-CN/mcp-clients.md +7 -7
  1965. package/docs/content/locales/zh-CN/mcp-protocol.md +3 -3
  1966. package/docs/content/locales/zh-CN/messaging.md +6 -6
  1967. package/docs/content/locales/zh-CN/migration-workbench.md +1 -1
  1968. package/docs/content/locales/zh-CN/multi-app-workspace.md +1 -1
  1969. package/docs/content/locales/zh-CN/multi-tenancy.md +1 -1
  1970. package/docs/content/locales/zh-CN/native-chat-ui.md +3 -3
  1971. package/docs/content/locales/zh-CN/notifications.md +3 -3
  1972. package/docs/content/locales/zh-CN/observability.md +2 -2
  1973. package/docs/content/locales/zh-CN/observational-memory.md +2 -2
  1974. package/docs/content/locales/zh-CN/onboarding.md +8 -8
  1975. package/docs/content/locales/zh-CN/plan-plugin.md +3 -3
  1976. package/docs/content/locales/zh-CN/pr-visual-recap.md +11 -11
  1977. package/docs/content/locales/zh-CN/processors.md +1 -1
  1978. package/docs/content/locales/zh-CN/progress.md +2 -2
  1979. package/docs/content/locales/zh-CN/pure-agent-apps.md +1 -1
  1980. package/docs/content/locales/zh-CN/real-time-collaboration.md +6 -6
  1981. package/docs/content/locales/zh-CN/recurring-jobs.md +5 -5
  1982. package/docs/content/locales/zh-CN/routing.md +1 -1
  1983. package/docs/content/locales/zh-CN/sandbox-adapters.md +2 -2
  1984. package/docs/content/locales/zh-CN/security.md +8 -8
  1985. package/docs/content/locales/zh-CN/server.md +10 -10
  1986. package/docs/content/locales/zh-CN/sharing.md +6 -6
  1987. package/docs/content/locales/zh-CN/skills-guide.md +16 -16
  1988. package/docs/content/locales/zh-CN/template-analytics.md +10 -10
  1989. package/docs/content/locales/zh-CN/template-assets.md +20 -20
  1990. package/docs/content/locales/zh-CN/template-brain.md +11 -11
  1991. package/docs/content/locales/zh-CN/template-calendar.md +9 -9
  1992. package/docs/content/locales/zh-CN/template-chat.md +3 -3
  1993. package/docs/content/locales/zh-CN/template-clips.md +14 -14
  1994. package/docs/content/locales/zh-CN/template-content.md +13 -13
  1995. package/docs/content/locales/zh-CN/template-design.md +7 -7
  1996. package/docs/content/locales/zh-CN/template-dispatch.md +11 -11
  1997. package/docs/content/locales/zh-CN/template-forms.md +9 -9
  1998. package/docs/content/locales/zh-CN/template-mail.md +6 -6
  1999. package/docs/content/locales/zh-CN/template-plan.md +3 -3
  2000. package/docs/content/locales/zh-CN/template-slides.md +8 -8
  2001. package/docs/content/locales/zh-CN/template-videos.md +5 -5
  2002. package/docs/content/locales/zh-CN/tracking.md +3 -3
  2003. package/docs/content/locales/zh-CN/using-your-agent.md +5 -5
  2004. package/docs/content/locales/zh-CN/voice-input.md +4 -4
  2005. package/docs/content/locales/zh-CN/what-is-agent-native.md +5 -5
  2006. package/docs/content/locales/zh-CN/workspace-connections.md +8 -8
  2007. package/docs/content/locales/zh-CN/workspace-management.md +5 -5
  2008. package/docs/content/locales/zh-CN/workspace.md +23 -23
  2009. package/docs/content/locales/zh-CN/writing-agent-instructions.md +18 -18
  2010. package/package.json +1 -1
  2011. package/src/templates/default/app/i18n/ar-SA.ts +275 -274
  2012. package/src/templates/default/app/i18n/de-DE.ts +270 -260
  2013. package/src/templates/default/app/i18n/es-ES.ts +282 -270
  2014. package/src/templates/default/app/i18n/fr-FR.ts +275 -266
  2015. package/src/templates/default/app/i18n/hi-IN.ts +274 -276
  2016. package/src/templates/default/app/i18n/ja-JP.ts +280 -273
  2017. package/src/templates/default/app/i18n/ko-KR.ts +274 -274
  2018. package/src/templates/default/app/i18n/pt-BR.ts +273 -266
  2019. package/src/templates/default/app/i18n/zh-CN.ts +273 -285
@@ -1 +1 @@
1
- {"version":3,"file":"ExtensionsSidebarSection.js","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionsSidebarSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,SAAS,EACT,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,OAAO,EACP,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,qB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AC,UAAU,IAAC,SAAS,EAAC,aAAa,GAAG,0BAErB,CACpB,CAAC,EACH,CAAC,gBAAgB,IAAI,CACpB,MAAC,gBAAgB,IACf,QAAQ,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,EACvC,SAAS,EAAC,yCAAyC,aAEnD,KAAC,SAAS,IAAC,SAAS,EAAC,aAAa,GAAG,EACpC,SAAS,CAAC,SAAS,KAAK,KAAK;4EAC5B,CAAC,CAAC,qBAAqB;4EACvB,CAAC,CAAC,QAAQ,IACK,CACpB,IACmB,IACT,IACX,KA5LD,SAAS,CAAC,EAAE,CA6Lb,CACP,CAAC;4BACJ,CAAC,CAAC,EACD,iBAAiB,IAAI,CACpB,iBACE,IAAI,EAAC,QAAQ,mBACE,iBAAiB,EAChC,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,EAC1D,SAAS,EAAC,0PAA0P,YAEnQ,iBAAiB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,GACvC,CACV,IACG,CACP,CAAC,IACA,GACU,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import {\n IconChevronDown,\n IconPlus,\n IconSettings,\n IconStar,\n IconStarFilled,\n IconTrash,\n IconDots,\n IconPencil,\n IconGripVertical,\n IconTool,\n IconEye,\n IconEyeOff,\n} from \"@tabler/icons-react\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { useState, useCallback, useMemo } from \"react\";\nimport { Link, useLocation, useNavigate } from \"react-router\";\n\nimport { extensionPath, isExtensionPathname } from \"../../extensions/path.js\";\nimport { sendToAgentChat } from \"../agent-chat.js\";\nimport { agentNativePath } from \"../api-path.js\";\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"../components/ui/dropdown-menu.js\";\nimport {\n HoverCard,\n HoverCardContent,\n HoverCardTrigger,\n} from \"../components/ui/hover-card.js\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"../components/ui/popover.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\nimport { PromptComposer } from \"../composer/PromptComposer.js\";\nimport { cn } from \"../utils.js\";\nimport {\n deleteOrHideExtension,\n invalidateExtensionRemoval,\n} from \"./delete-extension.js\";\nimport {\n applyToolsOrder,\n getToolsOrder,\n setToolsOrder,\n} from \"./extension-order.js\";\nimport {\n extensionPopularityOf,\n useExtensionPopularity,\n} from \"./extension-popularity.js\";\n\ninterface Extension {\n id: string;\n name: string;\n description?: string;\n icon?: string;\n canDelete?: boolean;\n globallyHidden?: boolean;\n source?: {\n mode?: \"database\" | \"local-files\";\n entryPath?: string;\n };\n}\n\nconst FAVORITES_KEY = \"extensions-favorites\";\nconst COLLAPSED_EXTENSION_COUNT = 3;\nconst EXTENSIONS_OPEN_KEY = \"extensions-sidebar-open\";\nconst EXTENSIONS_SORT_MODE_KEY = \"extensions-sort-mode\";\n\ntype ExtensionSortMode = \"most-used\" | \"alphabetical\" | \"manual\";\n\nfunction getFavorites(): Set<string> {\n try {\n const raw = localStorage.getItem(FAVORITES_KEY);\n if (!raw) return new Set();\n const parsed = JSON.parse(raw);\n return new Set(Array.isArray(parsed) ? parsed : []);\n } catch {\n return new Set();\n }\n}\n\nfunction saveFavorites(ids: Set<string>) {\n try {\n localStorage.setItem(FAVORITES_KEY, JSON.stringify(Array.from(ids)));\n } catch {\n // localStorage unavailable — ignore\n }\n}\n\nfunction getStoredBoolean(key: string, fallback: boolean): boolean {\n if (typeof window === \"undefined\") return fallback;\n const raw = window.localStorage.getItem(key);\n if (raw === \"true\") return true;\n if (raw === \"false\") return false;\n return fallback;\n}\n\nfunction setStoredBoolean(key: string, value: boolean): void {\n if (typeof window === \"undefined\") return;\n try {\n window.localStorage.setItem(key, String(value));\n } catch {\n // localStorage unavailable — ignore\n }\n}\n\nfunction getSortMode(): ExtensionSortMode {\n if (typeof window === \"undefined\") return \"most-used\";\n const raw = window.localStorage.getItem(EXTENSIONS_SORT_MODE_KEY);\n if (raw === \"alphabetical\" || raw === \"manual\" || raw === \"most-used\") {\n return raw;\n }\n return \"most-used\";\n}\n\nfunction setSortMode(mode: ExtensionSortMode): void {\n if (typeof window === \"undefined\") return;\n try {\n window.localStorage.setItem(EXTENSIONS_SORT_MODE_KEY, mode);\n } catch {\n // localStorage unavailable — ignore\n }\n}\n\nfunction sortByName<T extends { id: string; name: string }>(items: T[]): T[] {\n return [...items].sort((a, b) => {\n const name = a.name.localeCompare(b.name);\n return name !== 0 ? name : a.id.localeCompare(b.id);\n });\n}\n\nfunction ExtensionSortMenu({\n value,\n onChange,\n showHidden,\n onShowHiddenChange,\n}: {\n value: ExtensionSortMode;\n onChange: (value: ExtensionSortMode) => void;\n showHidden: boolean;\n onShowHiddenChange: (next: boolean) => void;\n}) {\n return (\n <DropdownMenu>\n <Tooltip>\n <TooltipTrigger asChild>\n <DropdownMenuTrigger asChild>\n <button\n type=\"button\"\n className=\"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-muted-foreground/45 opacity-0 transition-all hover:bg-accent hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring group-hover/extensions-section:opacity-100\"\n aria-label=\"Extensions sort options\"\n >\n <IconSettings className=\"h-3.5 w-3.5\" />\n </button>\n </DropdownMenuTrigger>\n </TooltipTrigger>\n <TooltipContent>Extensions sort</TooltipContent>\n </Tooltip>\n <DropdownMenuContent side=\"right\" align=\"start\" className=\"w-44\">\n <DropdownMenuLabel>Sort by</DropdownMenuLabel>\n <DropdownMenuRadioGroup\n value={value}\n onValueChange={(next) => {\n if (\n next === \"most-used\" ||\n next === \"alphabetical\" ||\n next === \"manual\"\n ) {\n onChange(next);\n }\n }}\n >\n <DropdownMenuRadioItem value=\"most-used\">\n Most used\n </DropdownMenuRadioItem>\n <DropdownMenuRadioItem value=\"alphabetical\">\n Alphabetical\n </DropdownMenuRadioItem>\n <DropdownMenuSeparator />\n <DropdownMenuRadioItem value=\"manual\">\n Manual order\n </DropdownMenuRadioItem>\n </DropdownMenuRadioGroup>\n <DropdownMenuSeparator />\n <DropdownMenuCheckboxItem\n checked={showHidden}\n onCheckedChange={(checked) => onShowHiddenChange(Boolean(checked))}\n >\n Show hidden\n </DropdownMenuCheckboxItem>\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\nexport function ExtensionsSidebarSection() {\n const location = useLocation();\n const navigate = useNavigate();\n const queryClient = useQueryClient();\n const popularity = useExtensionPopularity();\n const [favoriteIds, setFavoriteIds] = useState<Set<string>>(() =>\n typeof window !== \"undefined\" ? getFavorites() : new Set(),\n );\n const [extensionsOpen, setExtensionsOpen] = useState(() =>\n getStoredBoolean(EXTENSIONS_OPEN_KEY, true),\n );\n const [sortModeState, setSortModeState] =\n useState<ExtensionSortMode>(getSortMode);\n const [menuOpenId, setMenuOpenId] = useState<string | null>(null);\n const [renamingId, setRenamingId] = useState<string | null>(null);\n const [renameValue, setRenameValue] = useState(\"\");\n const [showCreate, setShowCreate] = useState(false);\n const [toolOrderState, setToolOrderState] = useState<string[]>(() =>\n typeof window !== \"undefined\" ? getToolsOrder() : [],\n );\n const [draggingId, setDraggingId] = useState<string | null>(null);\n const [dragOverId, setDragOverId] = useState<string | null>(null);\n const [showAllExtensions, setShowAllExtensions] = useState(false);\n const [showGloballyHidden, setShowGloballyHidden] = useState(false);\n\n const { data: extensions, isLoading } = useQuery<Extension[]>({\n queryKey: [\"extensions\", { includeGloballyHidden: showGloballyHidden }],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(\n showGloballyHidden\n ? \"/_agent-native/extensions?includeGloballyHidden=true\"\n : \"/_agent-native/extensions\",\n ),\n );\n if (!res.ok) return [];\n return res.json();\n },\n });\n\n const toggleFavorite = useCallback((id: string) => {\n setFavoriteIds((prev) => {\n const next = new Set(prev);\n if (next.has(id)) {\n next.delete(id);\n } else {\n next.add(id);\n }\n saveFavorites(next);\n return next;\n });\n }, []);\n\n const setExtensionSortMode = useCallback((mode: ExtensionSortMode) => {\n setSortMode(mode);\n setSortModeState(mode);\n }, []);\n\n const toggleExtensionsOpen = useCallback(() => {\n setExtensionsOpen((current) => {\n const next = !current;\n setStoredBoolean(EXTENSIONS_OPEN_KEY, next);\n return next;\n });\n }, []);\n\n const handleDelete = useCallback(\n async (extension: Extension) => {\n const extensionId = extension.id;\n setMenuOpenId(null);\n const prev = queryClient.getQueryData<Extension[]>([\"extensions\"]);\n queryClient.setQueryData<Extension[]>([\"extensions\"], (old) =>\n (old ?? []).filter((t) => t.id !== extensionId),\n );\n try {\n await deleteOrHideExtension(extension);\n invalidateExtensionRemoval(queryClient, extensionId);\n setFavoriteIds((prev) => {\n const next = new Set(prev);\n next.delete(extensionId);\n saveFavorites(next);\n return next;\n });\n setToolOrderState((prev) => {\n const next = prev.filter((id) => id !== extensionId);\n if (next.length !== prev.length) setToolsOrder(next);\n return next;\n });\n if (isExtensionPathname(location.pathname, extensionId)) {\n navigate(\"/extensions\");\n }\n } catch {\n if (prev) queryClient.setQueryData([\"extensions\"], prev);\n }\n },\n [location.pathname, navigate, queryClient],\n );\n\n const handleGlobalHide = useCallback(\n async (extension: Extension) => {\n setMenuOpenId(null);\n try {\n await fetch(\n agentNativePath(\n `/_agent-native/extensions/${extension.id}/global-hide`,\n ),\n { method: \"POST\" },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n }\n },\n [queryClient],\n );\n\n const handleGlobalUnhide = useCallback(\n async (extension: Extension) => {\n setMenuOpenId(null);\n try {\n await fetch(\n agentNativePath(\n `/_agent-native/extensions/${extension.id}/global-unhide`,\n ),\n { method: \"POST\" },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n }\n },\n [queryClient],\n );\n\n const startRename = useCallback((extension: Extension) => {\n setMenuOpenId(null);\n setRenameValue(extension.name);\n setRenamingId(extension.id);\n }, []);\n\n const submitRename = useCallback(\n async (extensionId: string) => {\n const trimmed = renameValue.trim();\n setRenamingId(null);\n if (!trimmed) return;\n const prev = queryClient.getQueryData<Extension[]>([\"extensions\"]);\n const existing = prev?.find((t) => t.id === extensionId);\n if (!existing || trimmed === existing.name) return;\n queryClient.setQueryData<Extension[]>([\"extensions\"], (old) =>\n (old ?? []).map((t) =>\n t.id === extensionId ? { ...t, name: trimmed } : t,\n ),\n );\n queryClient.setQueryData<Extension>([\"extension\", extensionId], (old) =>\n old ? { ...old, name: trimmed } : old,\n );\n try {\n await fetch(\n agentNativePath(`/_agent-native/extensions/${extensionId}`),\n {\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ name: trimmed }),\n },\n );\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n queryClient.invalidateQueries({ queryKey: [\"extension\", extensionId] });\n } catch {\n if (prev) queryClient.setQueryData([\"extensions\"], prev);\n queryClient.invalidateQueries({ queryKey: [\"extension\", extensionId] });\n }\n },\n [renameValue, queryClient],\n );\n\n const sortedTools = useMemo(() => {\n if (!extensions) return [];\n if (sortModeState === \"alphabetical\") {\n return sortByName(extensions);\n }\n const mostUsed = [...extensions].sort((a, b) => {\n const aPop = extensionPopularityOf(popularity, a.id);\n const bPop = extensionPopularityOf(popularity, b.id);\n if (aPop !== bPop) return bPop - aPop;\n const aFav = favoriteIds.has(a.id) ? 0 : 1;\n const bFav = favoriteIds.has(b.id) ? 0 : 1;\n if (aFav !== bFav) return aFav - bFav;\n return a.name.localeCompare(b.name);\n });\n return sortModeState === \"manual\" && toolOrderState.length > 0\n ? applyToolsOrder(mostUsed, toolOrderState)\n : mostUsed;\n }, [extensions, favoriteIds, popularity, sortModeState, toolOrderState]);\n\n const activeExtensionId = useMemo(\n () =>\n sortedTools.find((extension) =>\n isExtensionPathname(location.pathname, extension.id),\n )?.id ?? null,\n [location.pathname, sortedTools],\n );\n\n const visibleTools = useMemo(() => {\n if (showAllExtensions || sortedTools.length <= COLLAPSED_EXTENSION_COUNT) {\n return sortedTools;\n }\n\n const defaultVisible = sortedTools.slice(0, COLLAPSED_EXTENSION_COUNT);\n if (!activeExtensionId) return defaultVisible;\n\n const activeTool = sortedTools.find(\n (extension) => extension.id === activeExtensionId,\n );\n if (!activeTool || defaultVisible.some((tool) => tool.id === activeTool.id))\n return defaultVisible;\n\n return [\n ...defaultVisible.slice(0, COLLAPSED_EXTENSION_COUNT - 1),\n activeTool,\n ];\n }, [activeExtensionId, showAllExtensions, sortedTools]);\n\n const hasMoreExtensions = sortedTools.length > COLLAPSED_EXTENSION_COUNT;\n\n const reorderTool = useCallback(\n (activeId: string, overId: string) => {\n if (activeId === overId) return;\n const ids = sortedTools.map((extension) => extension.id);\n const oldIndex = ids.indexOf(activeId);\n const newIndex = ids.indexOf(overId);\n if (oldIndex === -1 || newIndex === -1) return;\n const next = [...ids];\n const [moved] = next.splice(oldIndex, 1);\n if (!moved) return;\n next.splice(newIndex, 0, moved);\n setToolsOrder(next);\n setToolOrderState(next);\n setExtensionSortMode(\"manual\");\n },\n [setExtensionSortMode, sortedTools],\n );\n\n const handleCreate = (text: string) => {\n const trimmed = text.trim();\n if (!trimmed) return;\n sendToAgentChat({\n message: `Create an extension: ${trimmed}`,\n submit: true,\n openSidebar: true,\n newTab: true,\n });\n setShowCreate(false);\n };\n\n return (\n <TooltipProvider delayDuration={200}>\n <div className=\"relative min-w-0 py-1\">\n <div\n className={cn(\n \"group/extensions-section relative flex w-full min-w-0 items-center rounded-md text-sm font-medium transition-all hover:text-primary\",\n location.pathname.startsWith(\"/extensions\")\n ? \"text-sidebar-accent-foreground\"\n : \"text-muted-foreground hover:bg-sidebar-accent/50\",\n extensionsOpen && sortedTools.length > 0 && \"mb-1\",\n )}\n >\n <button\n type=\"button\"\n onClick={toggleExtensionsOpen}\n className=\"absolute inset-0 rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n aria-label={\n extensionsOpen ? \"Collapse extensions\" : \"Expand extensions\"\n }\n aria-expanded={extensionsOpen}\n />\n <div className=\"pointer-events-none relative z-10 flex min-w-0 flex-1 items-center gap-2 px-3 py-1.5 pr-20\">\n <IconTool className=\"h-4 w-4 shrink-0\" />\n <HoverCard openDelay={1200} closeDelay={200}>\n <HoverCardTrigger asChild>\n <span\n className=\"pointer-events-auto min-w-0 select-none truncate\"\n onClick={toggleExtensionsOpen}\n >\n Extensions\n </span>\n </HoverCardTrigger>\n <HoverCardContent\n side=\"top\"\n align=\"start\"\n sideOffset={8}\n className=\"w-72 space-y-3 p-3\"\n >\n <div>\n <p className=\"text-sm font-semibold text-foreground\">\n Extensions\n </p>\n <p className=\"mt-1 text-xs leading-relaxed text-muted-foreground\">\n Build small sandboxed apps that can read app data, call\n actions, and save their own state.\n </p>\n </div>\n <div className=\"flex items-center gap-2\">\n <Link\n to=\"/extensions\"\n className=\"inline-flex h-8 items-center rounded-md border px-2.5 text-xs font-medium text-foreground transition-colors hover:bg-accent\"\n >\n Open extensions\n </Link>\n <a\n href=\"https://agent-native.com/docs/extensions\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex h-8 items-center rounded-md px-2.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground\"\n >\n Learn more\n </a>\n </div>\n </HoverCardContent>\n </HoverCard>\n </div>\n <div className=\"absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center\">\n <ExtensionSortMenu\n value={sortModeState}\n onChange={setExtensionSortMode}\n showHidden={showGloballyHidden}\n onShowHiddenChange={setShowGloballyHidden}\n />\n <Popover open={showCreate} onOpenChange={setShowCreate}>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground/70 transition-colors hover:bg-accent hover:text-accent-foreground\"\n aria-label=\"New extension\"\n >\n <IconPlus className=\"h-3.5 w-3.5\" />\n </button>\n </PopoverTrigger>\n <PopoverContent\n side=\"right\"\n align=\"start\"\n className=\"w-[420px] p-3\"\n >\n <p className=\"px-1 pb-2 text-sm font-semibold text-foreground\">\n New extension\n </p>\n <PromptComposer\n autoFocus\n placeholder=\"Describe what you'd like to build...\"\n draftScope=\"extensions:sidebar-create\"\n onSubmit={handleCreate}\n />\n </PopoverContent>\n </Popover>\n <button\n type=\"button\"\n onClick={toggleExtensionsOpen}\n className=\"flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-muted-foreground/70 hover:bg-accent hover:text-foreground\"\n aria-label={\n extensionsOpen ? \"Collapse extensions\" : \"Expand extensions\"\n }\n aria-expanded={extensionsOpen}\n >\n <IconChevronDown\n className={cn(\n \"h-3.5 w-3.5 shrink-0 transition-transform\",\n !extensionsOpen && \"-rotate-90\",\n )}\n />\n </button>\n </div>\n </div>\n\n {extensionsOpen &&\n (isLoading ? (\n <div className=\"min-w-0 space-y-0.5 px-0.5\">\n {[1, 2, 3].map((i) => (\n <div\n key={i}\n className=\"flex items-center rounded-md px-2 py-1.5\"\n >\n <div\n className=\"h-3 rounded bg-muted animate-pulse\"\n style={{ width: `${60 + i * 20}px` }}\n />\n </div>\n ))}\n </div>\n ) : sortedTools.length === 0 ? null : (\n <div className=\"min-w-0 space-y-0.5 px-0.5\">\n {visibleTools.map((extension) => {\n const isActive = isExtensionPathname(\n location.pathname,\n extension.id,\n );\n const isFav = favoriteIds.has(extension.id);\n const isRenamingThis = renamingId === extension.id;\n const isLocalExtension =\n extension.source?.mode === \"local-files\";\n const actionsVisible =\n menuOpenId === extension.id || isRenamingThis;\n\n return (\n <div\n key={extension.id}\n onDragOver={(e) => {\n if (!draggingId || draggingId === extension.id) return;\n e.preventDefault();\n e.dataTransfer.dropEffect = \"move\";\n setDragOverId(extension.id);\n }}\n onDragLeave={() => {\n setDragOverId((current) =>\n current === extension.id ? null : current,\n );\n }}\n onDrop={(e) => {\n e.preventDefault();\n const activeId =\n draggingId || e.dataTransfer.getData(\"text/plain\");\n setDraggingId(null);\n setDragOverId(null);\n if (activeId) reorderTool(activeId, extension.id);\n }}\n className={cn(\n \"group/extension relative flex items-center min-w-0 rounded-md\",\n draggingId === extension.id && \"opacity-50\",\n dragOverId === extension.id &&\n draggingId !== extension.id &&\n \"bg-accent/60\",\n )}\n >\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n draggable\n onDragStart={(e) => {\n setDraggingId(extension.id);\n setDragOverId(null);\n e.dataTransfer.effectAllowed = \"move\";\n e.dataTransfer.setData(\"text/plain\", extension.id);\n }}\n onDragEnd={() => {\n setDraggingId(null);\n setDragOverId(null);\n }}\n className=\"-ml-2 cursor-grab rounded p-0.5 text-muted-foreground/30 opacity-0 transition-colors hover:text-muted-foreground/70 active:cursor-grabbing group-hover/extension:opacity-100 group-focus-within/extension:opacity-100\"\n aria-label={`Reorder ${extension.name}`}\n >\n <IconGripVertical className=\"h-3 w-3\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>Drag to reorder</TooltipContent>\n </Tooltip>\n <Link\n to={extensionPath(extension.id, extension.name)}\n className={cn(\n \"flex min-w-0 flex-1 items-center rounded-md px-2 py-1.5 pr-12 text-xs transition-[padding,color,background-color] md:pr-2 md:group-hover/extension:pr-12 md:group-focus-within/extension:pr-12\",\n actionsVisible && \"md:pr-12\",\n isActive\n ? \"bg-accent text-accent-foreground font-medium\"\n : \"text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground\",\n )}\n >\n {isRenamingThis ? (\n <input\n autoFocus\n value={renameValue}\n onChange={(e) => setRenameValue(e.target.value)}\n onBlur={() => submitRename(extension.id)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") submitRename(extension.id);\n if (e.key === \"Escape\") setRenamingId(null);\n }}\n onClick={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n className=\"min-w-0 flex-1 truncate border-b border-primary bg-transparent px-0 py-0 text-xs outline-none\"\n />\n ) : (\n <span className=\"flex min-w-0 items-center gap-1.5\">\n {extension.globallyHidden && (\n <IconEyeOff\n className=\"h-3 w-3 shrink-0 text-muted-foreground/60\"\n aria-label=\"Hidden from everyone\"\n />\n )}\n <span className=\"block truncate\">\n {extension.name}\n </span>\n {isLocalExtension && (\n <span className=\"shrink-0 rounded border border-border px-1 text-[9px] font-medium uppercase tracking-wide text-muted-foreground/70\">\n File\n </span>\n )}\n </span>\n )}\n </Link>\n\n <div\n className={cn(\n \"pointer-events-none absolute right-1 top-1/2 flex -translate-y-1/2 items-center gap-0.5 opacity-100 transition-opacity md:opacity-0 md:group-hover/extension:opacity-100 md:group-focus-within/extension:opacity-100\",\n actionsVisible && \"md:opacity-100\",\n )}\n >\n <button\n type=\"button\"\n onClick={(e) => {\n e.preventDefault();\n e.stopPropagation();\n toggleFavorite(extension.id);\n }}\n className={cn(\n \"pointer-events-auto cursor-pointer rounded p-0.5 transition-colors\",\n isFav\n ? \"text-yellow-500\"\n : \"text-muted-foreground/40 hover:text-yellow-500\",\n )}\n aria-label={isFav ? \"Unfavorite\" : \"Favorite\"}\n >\n {isFav ? (\n <IconStarFilled className=\"h-3 w-3\" />\n ) : (\n <IconStar className=\"h-3 w-3\" />\n )}\n </button>\n\n <DropdownMenu\n open={menuOpenId === extension.id}\n onOpenChange={(open) =>\n setMenuOpenId(open ? extension.id : null)\n }\n >\n <DropdownMenuTrigger asChild>\n <button\n type=\"button\"\n className=\"pointer-events-auto cursor-pointer rounded p-0.5 text-muted-foreground/40 transition-colors hover:text-foreground\"\n aria-label=\"Extension actions\"\n >\n <IconDots className=\"h-3 w-3\" />\n </button>\n </DropdownMenuTrigger>\n <DropdownMenuContent\n align=\"end\"\n sideOffset={4}\n className=\"min-w-[140px]\"\n >\n {isLocalExtension ? (\n <DropdownMenuItem disabled>\n <IconPencil className=\"h-3.5 w-3.5\" />\n Edit in files\n </DropdownMenuItem>\n ) : (\n <DropdownMenuItem\n onSelect={() => startRename(extension)}\n >\n <IconPencil className=\"h-3.5 w-3.5\" />\n Rename\n </DropdownMenuItem>\n )}\n {!isLocalExtension &&\n extension.canDelete !== false &&\n (extension.globallyHidden ? (\n <DropdownMenuItem\n onSelect={() => handleGlobalUnhide(extension)}\n >\n <IconEye className=\"h-3.5 w-3.5\" />\n Unhide for everyone\n </DropdownMenuItem>\n ) : (\n <DropdownMenuItem\n onSelect={() => handleGlobalHide(extension)}\n >\n <IconEyeOff className=\"h-3.5 w-3.5\" />\n Hide from everyone\n </DropdownMenuItem>\n ))}\n {!isLocalExtension && (\n <DropdownMenuItem\n onSelect={() => handleDelete(extension)}\n className=\"text-destructive focus:text-destructive\"\n >\n <IconTrash className=\"h-3.5 w-3.5\" />\n {extension.canDelete === false\n ? \"Remove from my list\"\n : \"Delete\"}\n </DropdownMenuItem>\n )}\n </DropdownMenuContent>\n </DropdownMenu>\n </div>\n </div>\n );\n })}\n {hasMoreExtensions && (\n <button\n type=\"button\"\n aria-expanded={showAllExtensions}\n onClick={() => setShowAllExtensions((current) => !current)}\n className=\"ml-5 mt-1 inline-flex h-5 items-center rounded px-1.5 text-[11px] font-medium text-muted-foreground/60 transition-colors hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1\"\n >\n {showAllExtensions ? \"show less\" : \"show more\"}\n </button>\n )}\n </div>\n ))}\n </div>\n </TooltipProvider>\n );\n}\n"]}
1
+ {"version":3,"file":"ExtensionsSidebarSection.js","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionsSidebarSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,SAAS,EACT,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,OAAO,EACP,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAu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E,CAAC,YAAY,CAAC,SAAS,CAAC,EACvC,SAAS,EAAC,yCAAyC,aAEnD,KAAC,SAAS,IAAC,SAAS,EAAC,aAAa,GAAG,EACpC,SAAS,CAAC,SAAS,KAAK,KAAK;4EAC5B,CAAC,CAAC,IAAI,CAAC,gBAAgB;4EACvB,CAAC,CAAC,IAAI,CAAC,MAAM,IACE,CACpB,IACmB,IACT,IACX,KA5LD,SAAS,CAAC,EAAE,CA6Lb,CACP,CAAC;4BACJ,CAAC,CAAC,EACD,iBAAiB,IAAI,CACpB,iBACE,IAAI,EAAC,QAAQ,mBACE,iBAAiB,EAChC,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,EAC1D,SAAS,EAAC,0PAA0P,YAEnQ,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,GAC3C,CACV,IACG,CACP,CAAC,IACA,GACU,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import {\n IconChevronDown,\n IconPlus,\n IconSettings,\n IconStar,\n IconStarFilled,\n IconTrash,\n IconDots,\n IconPencil,\n IconGripVertical,\n IconTool,\n IconEye,\n IconEyeOff,\n} from \"@tabler/icons-react\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { useState, useCallback, useMemo } from \"react\";\nimport { Link, useLocation, useNavigate } from \"react-router\";\n\nimport { extensionPath, isExtensionPathname } from \"../../extensions/path.js\";\nimport { sendToAgentChat } from \"../agent-chat.js\";\nimport { agentNativePath } from \"../api-path.js\";\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"../components/ui/dropdown-menu.js\";\nimport {\n HoverCard,\n HoverCardContent,\n HoverCardTrigger,\n} from \"../components/ui/hover-card.js\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"../components/ui/popover.js\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../components/ui/tooltip.js\";\nimport { PromptComposer } from \"../composer/PromptComposer.js\";\nimport { DEFAULT_LOCALE, useOptionalLocale, type LocaleCode } from \"../i18n.js\";\nimport { cn } from \"../utils.js\";\nimport {\n deleteOrHideExtension,\n invalidateExtensionRemoval,\n} from \"./delete-extension.js\";\nimport {\n applyToolsOrder,\n getToolsOrder,\n setToolsOrder,\n} from \"./extension-order.js\";\nimport {\n extensionPopularityOf,\n useExtensionPopularity,\n} from \"./extension-popularity.js\";\n\ninterface Extension {\n id: string;\n name: string;\n description?: string;\n icon?: string;\n canDelete?: boolean;\n globallyHidden?: boolean;\n source?: {\n mode?: \"database\" | \"local-files\";\n entryPath?: string;\n };\n}\n\nconst FAVORITES_KEY = \"extensions-favorites\";\nconst COLLAPSED_EXTENSION_COUNT = 3;\nconst EXTENSIONS_OPEN_KEY = \"extensions-sidebar-open\";\nconst EXTENSIONS_SORT_MODE_KEY = \"extensions-sort-mode\";\n\ntype ExtensionSortMode = \"most-used\" | \"alphabetical\" | \"manual\";\n\ntype ExtensionsCopy = {\n title: string;\n description: string;\n open: string;\n learnMore: string;\n sortOptions: string;\n sortTooltip: string;\n sortBy: string;\n mostUsed: string;\n alphabetical: string;\n manualOrder: string;\n showHidden: string;\n newExtension: string;\n createPlaceholder: string;\n collapse: string;\n expand: string;\n reorder: (name: string) => string;\n dragToReorder: string;\n hiddenFromEveryone: string;\n file: string;\n unfavorite: string;\n favorite: string;\n actions: string;\n editInFiles: string;\n rename: string;\n unhideForEveryone: string;\n hideFromEveryone: string;\n removeFromMyList: string;\n delete: string;\n showLess: string;\n showMore: string;\n};\n\nconst EXTENSIONS_COPY: Record<LocaleCode, ExtensionsCopy> = {\n \"en-US\": {\n title: \"Extensions\",\n description:\n \"Build small sandboxed apps that can read app data, call actions, and save their own state.\",\n open: \"Open extensions\",\n learnMore: \"Learn more\",\n sortOptions: \"Extensions sort options\",\n sortTooltip: \"Extensions sort\",\n sortBy: \"Sort by\",\n mostUsed: \"Most used\",\n alphabetical: \"Alphabetical\",\n manualOrder: \"Manual order\",\n showHidden: \"Show hidden\",\n newExtension: \"New extension\",\n createPlaceholder: \"Describe what you'd like to build...\",\n collapse: \"Collapse extensions\",\n expand: \"Expand extensions\",\n reorder: (name) => `Reorder ${name}`,\n dragToReorder: \"Drag to reorder\",\n hiddenFromEveryone: \"Hidden from everyone\",\n file: \"File\",\n unfavorite: \"Unfavorite\",\n favorite: \"Favorite\",\n actions: \"Extension actions\",\n editInFiles: \"Edit in files\",\n rename: \"Rename\",\n unhideForEveryone: \"Unhide for everyone\",\n hideFromEveryone: \"Hide from everyone\",\n removeFromMyList: \"Remove from my list\",\n delete: \"Delete\",\n showLess: \"show less\",\n showMore: \"show more\",\n },\n \"zh-CN\": {\n title: \"扩展\",\n description: \"构建可读取应用数据、调用操作并保存自身状态的小型沙盒应用。\",\n open: \"打开扩展\",\n learnMore: \"了解更多\",\n sortOptions: \"扩展排序选项\",\n sortTooltip: \"扩展排序\",\n sortBy: \"排序方式\",\n mostUsed: \"最常用\",\n alphabetical: \"按字母顺序\",\n manualOrder: \"手动排序\",\n showHidden: \"显示隐藏项\",\n newExtension: \"新建扩展\",\n createPlaceholder: \"描述你想构建的内容...\",\n collapse: \"收起扩展\",\n expand: \"展开扩展\",\n reorder: (name) => `重新排序 ${name}`,\n dragToReorder: \"拖动以重新排序\",\n hiddenFromEveryone: \"已对所有人隐藏\",\n file: \"文件\",\n unfavorite: \"取消收藏\",\n favorite: \"收藏\",\n actions: \"扩展操作\",\n editInFiles: \"在文件中编辑\",\n rename: \"重命名\",\n unhideForEveryone: \"对所有人取消隐藏\",\n hideFromEveryone: \"对所有人隐藏\",\n removeFromMyList: \"从我的列表中移除\",\n delete: \"删除\",\n showLess: \"收起\",\n showMore: \"显示更多\",\n },\n \"es-ES\": {\n title: \"Extensiones\",\n description:\n \"Crea pequeñas apps aisladas que pueden leer datos de la app, llamar acciones y guardar su propio estado.\",\n open: \"Abrir extensiones\",\n learnMore: \"Más información\",\n sortOptions: \"Opciones de orden de extensiones\",\n sortTooltip: \"Orden de extensiones\",\n sortBy: \"Ordenar por\",\n mostUsed: \"Más usadas\",\n alphabetical: \"Alfabético\",\n manualOrder: \"Orden manual\",\n showHidden: \"Mostrar ocultas\",\n newExtension: \"Nueva extensión\",\n createPlaceholder: \"Describe lo que quieres crear...\",\n collapse: \"Contraer extensiones\",\n expand: \"Expandir extensiones\",\n reorder: (name) => `Reordenar ${name}`,\n dragToReorder: \"Arrastra para reordenar\",\n hiddenFromEveryone: \"Oculta para todos\",\n file: \"Archivo\",\n unfavorite: \"Quitar de favoritos\",\n favorite: \"Favorito\",\n actions: \"Acciones de extensión\",\n editInFiles: \"Editar en archivos\",\n rename: \"Renombrar\",\n unhideForEveryone: \"Mostrar para todos\",\n hideFromEveryone: \"Ocultar para todos\",\n removeFromMyList: \"Quitar de mi lista\",\n delete: \"Eliminar\",\n showLess: \"mostrar menos\",\n showMore: \"mostrar más\",\n },\n \"fr-FR\": {\n title: \"Extensions\",\n description:\n \"Créez de petites apps sandboxées capables de lire les données de l'app, d'appeler des actions et d'enregistrer leur propre état.\",\n open: \"Ouvrir les extensions\",\n learnMore: \"En savoir plus\",\n sortOptions: \"Options de tri des extensions\",\n sortTooltip: \"Tri des extensions\",\n sortBy: \"Trier par\",\n mostUsed: \"Les plus utilisées\",\n alphabetical: \"Alphabétique\",\n manualOrder: \"Ordre manuel\",\n showHidden: \"Afficher les masquées\",\n newExtension: \"Nouvelle extension\",\n createPlaceholder: \"Décrivez ce que vous voulez créer...\",\n collapse: \"Replier les extensions\",\n expand: \"Déplier les extensions\",\n reorder: (name) => `Réordonner ${name}`,\n dragToReorder: \"Faire glisser pour réordonner\",\n hiddenFromEveryone: \"Masquée pour tout le monde\",\n file: \"Fichier\",\n unfavorite: \"Retirer des favoris\",\n favorite: \"Favori\",\n actions: \"Actions de l'extension\",\n editInFiles: \"Modifier dans les fichiers\",\n rename: \"Renommer\",\n unhideForEveryone: \"Afficher pour tout le monde\",\n hideFromEveryone: \"Masquer pour tout le monde\",\n removeFromMyList: \"Retirer de ma liste\",\n delete: \"Supprimer\",\n showLess: \"afficher moins\",\n showMore: \"afficher plus\",\n },\n \"de-DE\": {\n title: \"Erweiterungen\",\n description:\n \"Erstelle kleine Sandbox-Apps, die App-Daten lesen, Aktionen aufrufen und ihren eigenen Zustand speichern können.\",\n open: \"Erweiterungen öffnen\",\n learnMore: \"Mehr erfahren\",\n sortOptions: \"Sortieroptionen für Erweiterungen\",\n sortTooltip: \"Erweiterungen sortieren\",\n sortBy: \"Sortieren nach\",\n mostUsed: \"Am häufigsten genutzt\",\n alphabetical: \"Alphabetisch\",\n manualOrder: \"Manuelle Reihenfolge\",\n showHidden: \"Ausgeblendete anzeigen\",\n newExtension: \"Neue Erweiterung\",\n createPlaceholder: \"Beschreibe, was du erstellen möchtest...\",\n collapse: \"Erweiterungen einklappen\",\n expand: \"Erweiterungen ausklappen\",\n reorder: (name) => `${name} neu anordnen`,\n dragToReorder: \"Zum Neuordnen ziehen\",\n hiddenFromEveryone: \"Für alle ausgeblendet\",\n file: \"Datei\",\n unfavorite: \"Aus Favoriten entfernen\",\n favorite: \"Favorisieren\",\n actions: \"Erweiterungsaktionen\",\n editInFiles: \"In Dateien bearbeiten\",\n rename: \"Umbenennen\",\n unhideForEveryone: \"Für alle einblenden\",\n hideFromEveryone: \"Für alle ausblenden\",\n removeFromMyList: \"Aus meiner Liste entfernen\",\n delete: \"Löschen\",\n showLess: \"weniger anzeigen\",\n showMore: \"mehr anzeigen\",\n },\n \"ja-JP\": {\n title: \"拡張機能\",\n description:\n \"アプリデータを読み取り、アクションを呼び出し、独自の状態を保存できる小さなサンドボックスアプリを作成します。\",\n open: \"拡張機能を開く\",\n learnMore: \"詳しく見る\",\n sortOptions: \"拡張機能の並べ替えオプション\",\n sortTooltip: \"拡張機能の並べ替え\",\n sortBy: \"並べ替え\",\n mostUsed: \"よく使う順\",\n alphabetical: \"アルファベット順\",\n manualOrder: \"手動順\",\n showHidden: \"非表示を表示\",\n newExtension: \"新しい拡張機能\",\n createPlaceholder: \"作りたいものを説明してください...\",\n collapse: \"拡張機能を折りたたむ\",\n expand: \"拡張機能を展開\",\n reorder: (name) => `${name} を並べ替え`,\n dragToReorder: \"ドラッグして並べ替え\",\n hiddenFromEveryone: \"全員に非表示\",\n file: \"ファイル\",\n unfavorite: \"お気に入り解除\",\n favorite: \"お気に入り\",\n actions: \"拡張機能の操作\",\n editInFiles: \"ファイルで編集\",\n rename: \"名前を変更\",\n unhideForEveryone: \"全員に表示\",\n hideFromEveryone: \"全員に非表示\",\n removeFromMyList: \"自分のリストから削除\",\n delete: \"削除\",\n showLess: \"少なく表示\",\n showMore: \"さらに表示\",\n },\n \"ko-KR\": {\n title: \"확장\",\n description:\n \"앱 데이터를 읽고, 액션을 호출하고, 자체 상태를 저장할 수 있는 작은 샌드박스 앱을 만듭니다.\",\n open: \"확장 열기\",\n learnMore: \"자세히 알아보기\",\n sortOptions: \"확장 정렬 옵션\",\n sortTooltip: \"확장 정렬\",\n sortBy: \"정렬 기준\",\n mostUsed: \"가장 많이 사용\",\n alphabetical: \"가나다순\",\n manualOrder: \"수동 순서\",\n showHidden: \"숨김 항목 표시\",\n newExtension: \"새 확장\",\n createPlaceholder: \"만들고 싶은 것을 설명하세요...\",\n collapse: \"확장 접기\",\n expand: \"확장 펼치기\",\n reorder: (name) => `${name} 순서 변경`,\n dragToReorder: \"드래그하여 순서 변경\",\n hiddenFromEveryone: \"모두에게 숨김\",\n file: \"파일\",\n unfavorite: \"즐겨찾기 해제\",\n favorite: \"즐겨찾기\",\n actions: \"확장 작업\",\n editInFiles: \"파일에서 편집\",\n rename: \"이름 변경\",\n unhideForEveryone: \"모두에게 표시\",\n hideFromEveryone: \"모두에게 숨기기\",\n removeFromMyList: \"내 목록에서 제거\",\n delete: \"삭제\",\n showLess: \"덜 보기\",\n showMore: \"더 보기\",\n },\n \"pt-BR\": {\n title: \"Extensões\",\n description:\n \"Crie pequenos apps isolados que podem ler dados do app, chamar ações e salvar o próprio estado.\",\n open: \"Abrir extensões\",\n learnMore: \"Saiba mais\",\n sortOptions: \"Opções de ordenação das extensões\",\n sortTooltip: \"Ordenação das extensões\",\n sortBy: \"Ordenar por\",\n mostUsed: \"Mais usadas\",\n alphabetical: \"Alfabética\",\n manualOrder: \"Ordem manual\",\n showHidden: \"Mostrar ocultas\",\n newExtension: \"Nova extensão\",\n createPlaceholder: \"Descreva o que você quer criar...\",\n collapse: \"Recolher extensões\",\n expand: \"Expandir extensões\",\n reorder: (name) => `Reordenar ${name}`,\n dragToReorder: \"Arraste para reordenar\",\n hiddenFromEveryone: \"Oculta para todos\",\n file: \"Arquivo\",\n unfavorite: \"Remover dos favoritos\",\n favorite: \"Favoritar\",\n actions: \"Ações da extensão\",\n editInFiles: \"Editar em arquivos\",\n rename: \"Renomear\",\n unhideForEveryone: \"Mostrar para todos\",\n hideFromEveryone: \"Ocultar para todos\",\n removeFromMyList: \"Remover da minha lista\",\n delete: \"Excluir\",\n showLess: \"mostrar menos\",\n showMore: \"mostrar mais\",\n },\n \"hi-IN\": {\n title: \"एक्सटेंशन\",\n description:\n \"छोटे सैंडबॉक्स ऐप बनाएं जो ऐप डेटा पढ़ सकते हैं, कार्रवाइयां चला सकते हैं और अपना स्टेट सहेज सकते हैं।\",\n open: \"एक्सटेंशन खोलें\",\n learnMore: \"और जानें\",\n sortOptions: \"एक्सटेंशन क्रम विकल्प\",\n sortTooltip: \"एक्सटेंशन क्रम\",\n sortBy: \"इसके अनुसार क्रमबद्ध करें\",\n mostUsed: \"सबसे अधिक उपयोग\",\n alphabetical: \"वर्णानुक्रम\",\n manualOrder: \"मैन्युअल क्रम\",\n showHidden: \"छिपे हुए दिखाएं\",\n newExtension: \"नया एक्सटेंशन\",\n createPlaceholder: \"बताएं कि आप क्या बनाना चाहते हैं...\",\n collapse: \"एक्सटेंशन समेटें\",\n expand: \"एक्सटेंशन फैलाएं\",\n reorder: (name) => `${name} का क्रम बदलें`,\n dragToReorder: \"क्रम बदलने के लिए खींचें\",\n hiddenFromEveryone: \"सभी से छिपा हुआ\",\n file: \"फ़ाइल\",\n unfavorite: \"पसंदीदा से हटाएं\",\n favorite: \"पसंदीदा\",\n actions: \"एक्सटेंशन कार्रवाइयां\",\n editInFiles: \"फ़ाइलों में संपादित करें\",\n rename: \"नाम बदलें\",\n unhideForEveryone: \"सभी के लिए दिखाएं\",\n hideFromEveryone: \"सभी से छिपाएं\",\n removeFromMyList: \"मेरी सूची से हटाएं\",\n delete: \"हटाएं\",\n showLess: \"कम दिखाएं\",\n showMore: \"और दिखाएं\",\n },\n \"ar-SA\": {\n title: \"الإضافات\",\n description:\n \"أنشئ تطبيقات صغيرة معزولة يمكنها قراءة بيانات التطبيق واستدعاء الإجراءات وحفظ حالتها الخاصة.\",\n open: \"فتح الإضافات\",\n learnMore: \"معرفة المزيد\",\n sortOptions: \"خيارات ترتيب الإضافات\",\n sortTooltip: \"ترتيب الإضافات\",\n sortBy: \"ترتيب حسب\",\n mostUsed: \"الأكثر استخدامًا\",\n alphabetical: \"أبجديًا\",\n manualOrder: \"ترتيب يدوي\",\n showHidden: \"إظهار المخفية\",\n newExtension: \"إضافة جديدة\",\n createPlaceholder: \"صف ما تريد إنشاءه...\",\n collapse: \"طي الإضافات\",\n expand: \"توسيع الإضافات\",\n reorder: (name) => `إعادة ترتيب ${name}`,\n dragToReorder: \"اسحب لإعادة الترتيب\",\n hiddenFromEveryone: \"مخفية عن الجميع\",\n file: \"ملف\",\n unfavorite: \"إزالة من المفضلة\",\n favorite: \"إضافة إلى المفضلة\",\n actions: \"إجراءات الإضافة\",\n editInFiles: \"تحرير في الملفات\",\n rename: \"إعادة تسمية\",\n unhideForEveryone: \"إظهار للجميع\",\n hideFromEveryone: \"إخفاء عن الجميع\",\n removeFromMyList: \"إزالة من قائمتي\",\n delete: \"حذف\",\n showLess: \"إظهار أقل\",\n showMore: \"إظهار المزيد\",\n },\n};\n\nfunction useExtensionsCopy() {\n const locale = useOptionalLocale()?.locale ?? DEFAULT_LOCALE;\n return EXTENSIONS_COPY[locale] ?? EXTENSIONS_COPY[DEFAULT_LOCALE];\n}\n\nfunction getFavorites(): Set<string> {\n try {\n const raw = localStorage.getItem(FAVORITES_KEY);\n if (!raw) return new Set();\n const parsed = JSON.parse(raw);\n return new Set(Array.isArray(parsed) ? parsed : []);\n } catch {\n return new Set();\n }\n}\n\nfunction saveFavorites(ids: Set<string>) {\n try {\n localStorage.setItem(FAVORITES_KEY, JSON.stringify(Array.from(ids)));\n } catch {\n // localStorage unavailable — ignore\n }\n}\n\nfunction getStoredBoolean(key: string, fallback: boolean): boolean {\n if (typeof window === \"undefined\") return fallback;\n const raw = window.localStorage.getItem(key);\n if (raw === \"true\") return true;\n if (raw === \"false\") return false;\n return fallback;\n}\n\nfunction setStoredBoolean(key: string, value: boolean): void {\n if (typeof window === \"undefined\") return;\n try {\n window.localStorage.setItem(key, String(value));\n } catch {\n // localStorage unavailable — ignore\n }\n}\n\nfunction getSortMode(): ExtensionSortMode {\n if (typeof window === \"undefined\") return \"most-used\";\n const raw = window.localStorage.getItem(EXTENSIONS_SORT_MODE_KEY);\n if (raw === \"alphabetical\" || raw === \"manual\" || raw === \"most-used\") {\n return raw;\n }\n return \"most-used\";\n}\n\nfunction setSortMode(mode: ExtensionSortMode): void {\n if (typeof window === \"undefined\") return;\n try {\n window.localStorage.setItem(EXTENSIONS_SORT_MODE_KEY, mode);\n } catch {\n // localStorage unavailable — ignore\n }\n}\n\nfunction sortByName<T extends { id: string; name: string }>(items: T[]): T[] {\n return [...items].sort((a, b) => {\n const name = a.name.localeCompare(b.name);\n return name !== 0 ? name : a.id.localeCompare(b.id);\n });\n}\n\nfunction ExtensionSortMenu({\n value,\n onChange,\n showHidden,\n onShowHiddenChange,\n copy,\n}: {\n value: ExtensionSortMode;\n onChange: (value: ExtensionSortMode) => void;\n showHidden: boolean;\n onShowHiddenChange: (next: boolean) => void;\n copy: ExtensionsCopy;\n}) {\n return (\n <DropdownMenu>\n <Tooltip>\n <TooltipTrigger asChild>\n <DropdownMenuTrigger asChild>\n <button\n type=\"button\"\n className=\"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-muted-foreground/45 opacity-0 transition-all hover:bg-accent hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring group-hover/extensions-section:opacity-100\"\n aria-label={copy.sortOptions}\n >\n <IconSettings className=\"h-3.5 w-3.5\" />\n </button>\n </DropdownMenuTrigger>\n </TooltipTrigger>\n <TooltipContent>{copy.sortTooltip}</TooltipContent>\n </Tooltip>\n <DropdownMenuContent side=\"right\" align=\"start\" className=\"w-44\">\n <DropdownMenuLabel>{copy.sortBy}</DropdownMenuLabel>\n <DropdownMenuRadioGroup\n value={value}\n onValueChange={(next) => {\n if (\n next === \"most-used\" ||\n next === \"alphabetical\" ||\n next === \"manual\"\n ) {\n onChange(next);\n }\n }}\n >\n <DropdownMenuRadioItem value=\"most-used\">\n {copy.mostUsed}\n </DropdownMenuRadioItem>\n <DropdownMenuRadioItem value=\"alphabetical\">\n {copy.alphabetical}\n </DropdownMenuRadioItem>\n <DropdownMenuSeparator />\n <DropdownMenuRadioItem value=\"manual\">\n {copy.manualOrder}\n </DropdownMenuRadioItem>\n </DropdownMenuRadioGroup>\n <DropdownMenuSeparator />\n <DropdownMenuCheckboxItem\n checked={showHidden}\n onCheckedChange={(checked) => onShowHiddenChange(Boolean(checked))}\n >\n {copy.showHidden}\n </DropdownMenuCheckboxItem>\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n\nexport function ExtensionsSidebarSection() {\n const copy = useExtensionsCopy();\n const location = useLocation();\n const navigate = useNavigate();\n const queryClient = useQueryClient();\n const popularity = useExtensionPopularity();\n const [favoriteIds, setFavoriteIds] = useState<Set<string>>(() =>\n typeof window !== \"undefined\" ? getFavorites() : new Set(),\n );\n const [extensionsOpen, setExtensionsOpen] = useState(() =>\n getStoredBoolean(EXTENSIONS_OPEN_KEY, true),\n );\n const [sortModeState, setSortModeState] =\n useState<ExtensionSortMode>(getSortMode);\n const [menuOpenId, setMenuOpenId] = useState<string | null>(null);\n const [renamingId, setRenamingId] = useState<string | null>(null);\n const [renameValue, setRenameValue] = useState(\"\");\n const [showCreate, setShowCreate] = useState(false);\n const [toolOrderState, setToolOrderState] = useState<string[]>(() =>\n typeof window !== \"undefined\" ? getToolsOrder() : [],\n );\n const [draggingId, setDraggingId] = useState<string | null>(null);\n const [dragOverId, setDragOverId] = useState<string | null>(null);\n const [showAllExtensions, setShowAllExtensions] = useState(false);\n const [showGloballyHidden, setShowGloballyHidden] = useState(false);\n\n const { data: extensions, isLoading } = useQuery<Extension[]>({\n queryKey: [\"extensions\", { includeGloballyHidden: showGloballyHidden }],\n queryFn: async () => {\n const res = await fetch(\n agentNativePath(\n showGloballyHidden\n ? \"/_agent-native/extensions?includeGloballyHidden=true\"\n : \"/_agent-native/extensions\",\n ),\n );\n if (!res.ok) return [];\n return res.json();\n },\n });\n\n const toggleFavorite = useCallback((id: string) => {\n setFavoriteIds((prev) => {\n const next = new Set(prev);\n if (next.has(id)) {\n next.delete(id);\n } else {\n next.add(id);\n }\n saveFavorites(next);\n return next;\n });\n }, []);\n\n const setExtensionSortMode = useCallback((mode: ExtensionSortMode) => {\n setSortMode(mode);\n setSortModeState(mode);\n }, []);\n\n const toggleExtensionsOpen = useCallback(() => {\n setExtensionsOpen((current) => {\n const next = !current;\n setStoredBoolean(EXTENSIONS_OPEN_KEY, next);\n return next;\n });\n }, []);\n\n const handleDelete = useCallback(\n async (extension: Extension) => {\n const extensionId = extension.id;\n setMenuOpenId(null);\n const prev = queryClient.getQueryData<Extension[]>([\"extensions\"]);\n queryClient.setQueryData<Extension[]>([\"extensions\"], (old) =>\n (old ?? []).filter((t) => t.id !== extensionId),\n );\n try {\n await deleteOrHideExtension(extension);\n invalidateExtensionRemoval(queryClient, extensionId);\n setFavoriteIds((prev) => {\n const next = new Set(prev);\n next.delete(extensionId);\n saveFavorites(next);\n return next;\n });\n setToolOrderState((prev) => {\n const next = prev.filter((id) => id !== extensionId);\n if (next.length !== prev.length) setToolsOrder(next);\n return next;\n });\n if (isExtensionPathname(location.pathname, extensionId)) {\n navigate(\"/extensions\");\n }\n } catch {\n if (prev) queryClient.setQueryData([\"extensions\"], prev);\n }\n },\n [location.pathname, navigate, queryClient],\n );\n\n const handleGlobalHide = useCallback(\n async (extension: Extension) => {\n setMenuOpenId(null);\n try {\n await fetch(\n agentNativePath(\n `/_agent-native/extensions/${extension.id}/global-hide`,\n ),\n { method: \"POST\" },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n }\n },\n [queryClient],\n );\n\n const handleGlobalUnhide = useCallback(\n async (extension: Extension) => {\n setMenuOpenId(null);\n try {\n await fetch(\n agentNativePath(\n `/_agent-native/extensions/${extension.id}/global-unhide`,\n ),\n { method: \"POST\" },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n }\n },\n [queryClient],\n );\n\n const startRename = useCallback((extension: Extension) => {\n setMenuOpenId(null);\n setRenameValue(extension.name);\n setRenamingId(extension.id);\n }, []);\n\n const submitRename = useCallback(\n async (extensionId: string) => {\n const trimmed = renameValue.trim();\n setRenamingId(null);\n if (!trimmed) return;\n const prev = queryClient.getQueryData<Extension[]>([\"extensions\"]);\n const existing = prev?.find((t) => t.id === extensionId);\n if (!existing || trimmed === existing.name) return;\n queryClient.setQueryData<Extension[]>([\"extensions\"], (old) =>\n (old ?? []).map((t) =>\n t.id === extensionId ? { ...t, name: trimmed } : t,\n ),\n );\n queryClient.setQueryData<Extension>([\"extension\", extensionId], (old) =>\n old ? { ...old, name: trimmed } : old,\n );\n try {\n await fetch(\n agentNativePath(`/_agent-native/extensions/${extensionId}`),\n {\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ name: trimmed }),\n },\n );\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n queryClient.invalidateQueries({ queryKey: [\"extension\", extensionId] });\n } catch {\n if (prev) queryClient.setQueryData([\"extensions\"], prev);\n queryClient.invalidateQueries({ queryKey: [\"extension\", extensionId] });\n }\n },\n [renameValue, queryClient],\n );\n\n const sortedTools = useMemo(() => {\n if (!extensions) return [];\n if (sortModeState === \"alphabetical\") {\n return sortByName(extensions);\n }\n const mostUsed = [...extensions].sort((a, b) => {\n const aPop = extensionPopularityOf(popularity, a.id);\n const bPop = extensionPopularityOf(popularity, b.id);\n if (aPop !== bPop) return bPop - aPop;\n const aFav = favoriteIds.has(a.id) ? 0 : 1;\n const bFav = favoriteIds.has(b.id) ? 0 : 1;\n if (aFav !== bFav) return aFav - bFav;\n return a.name.localeCompare(b.name);\n });\n return sortModeState === \"manual\" && toolOrderState.length > 0\n ? applyToolsOrder(mostUsed, toolOrderState)\n : mostUsed;\n }, [extensions, favoriteIds, popularity, sortModeState, toolOrderState]);\n\n const activeExtensionId = useMemo(\n () =>\n sortedTools.find((extension) =>\n isExtensionPathname(location.pathname, extension.id),\n )?.id ?? null,\n [location.pathname, sortedTools],\n );\n\n const visibleTools = useMemo(() => {\n if (showAllExtensions || sortedTools.length <= COLLAPSED_EXTENSION_COUNT) {\n return sortedTools;\n }\n\n const defaultVisible = sortedTools.slice(0, COLLAPSED_EXTENSION_COUNT);\n if (!activeExtensionId) return defaultVisible;\n\n const activeTool = sortedTools.find(\n (extension) => extension.id === activeExtensionId,\n );\n if (!activeTool || defaultVisible.some((tool) => tool.id === activeTool.id))\n return defaultVisible;\n\n return [\n ...defaultVisible.slice(0, COLLAPSED_EXTENSION_COUNT - 1),\n activeTool,\n ];\n }, [activeExtensionId, showAllExtensions, sortedTools]);\n\n const hasMoreExtensions = sortedTools.length > COLLAPSED_EXTENSION_COUNT;\n\n const reorderTool = useCallback(\n (activeId: string, overId: string) => {\n if (activeId === overId) return;\n const ids = sortedTools.map((extension) => extension.id);\n const oldIndex = ids.indexOf(activeId);\n const newIndex = ids.indexOf(overId);\n if (oldIndex === -1 || newIndex === -1) return;\n const next = [...ids];\n const [moved] = next.splice(oldIndex, 1);\n if (!moved) return;\n next.splice(newIndex, 0, moved);\n setToolsOrder(next);\n setToolOrderState(next);\n setExtensionSortMode(\"manual\");\n },\n [setExtensionSortMode, sortedTools],\n );\n\n const handleCreate = (text: string) => {\n const trimmed = text.trim();\n if (!trimmed) return;\n sendToAgentChat({\n message: `Create an extension: ${trimmed}`,\n submit: true,\n openSidebar: true,\n newTab: true,\n });\n setShowCreate(false);\n };\n\n return (\n <TooltipProvider delayDuration={200}>\n <div className=\"relative min-w-0 py-1\">\n <div\n className={cn(\n \"group/extensions-section relative flex w-full min-w-0 items-center rounded-md text-sm font-medium transition-all hover:text-primary\",\n location.pathname.startsWith(\"/extensions\")\n ? \"text-sidebar-accent-foreground\"\n : \"text-muted-foreground hover:bg-sidebar-accent/50\",\n extensionsOpen && sortedTools.length > 0 && \"mb-1\",\n )}\n >\n <button\n type=\"button\"\n onClick={toggleExtensionsOpen}\n className=\"absolute inset-0 rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n aria-label={extensionsOpen ? copy.collapse : copy.expand}\n aria-expanded={extensionsOpen}\n />\n <div className=\"pointer-events-none relative z-10 flex min-w-0 flex-1 items-center gap-2 px-3 py-1.5 pr-20\">\n <IconTool className=\"h-4 w-4 shrink-0\" />\n <HoverCard openDelay={1200} closeDelay={200}>\n <HoverCardTrigger asChild>\n <span\n className=\"pointer-events-auto min-w-0 select-none truncate\"\n onClick={toggleExtensionsOpen}\n >\n {copy.title}\n </span>\n </HoverCardTrigger>\n <HoverCardContent\n side=\"top\"\n align=\"start\"\n sideOffset={8}\n className=\"w-72 space-y-3 p-3\"\n >\n <div>\n <p className=\"text-sm font-semibold text-foreground\">\n {copy.title}\n </p>\n <p className=\"mt-1 text-xs leading-relaxed text-muted-foreground\">\n {copy.description}\n </p>\n </div>\n <div className=\"flex items-center gap-2\">\n <Link\n to=\"/extensions\"\n className=\"inline-flex h-8 items-center rounded-md border px-2.5 text-xs font-medium text-foreground transition-colors hover:bg-accent\"\n >\n {copy.open}\n </Link>\n <a\n href=\"https://agent-native.com/docs/extensions\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex h-8 items-center rounded-md px-2.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground\"\n >\n {copy.learnMore}\n </a>\n </div>\n </HoverCardContent>\n </HoverCard>\n </div>\n <div className=\"absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center\">\n <ExtensionSortMenu\n value={sortModeState}\n onChange={setExtensionSortMode}\n showHidden={showGloballyHidden}\n onShowHiddenChange={setShowGloballyHidden}\n copy={copy}\n />\n <Popover open={showCreate} onOpenChange={setShowCreate}>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground/70 transition-colors hover:bg-accent hover:text-accent-foreground\"\n aria-label={copy.newExtension}\n >\n <IconPlus className=\"h-3.5 w-3.5\" />\n </button>\n </PopoverTrigger>\n <PopoverContent\n side=\"right\"\n align=\"start\"\n className=\"w-[420px] p-3\"\n >\n <p className=\"px-1 pb-2 text-sm font-semibold text-foreground\">\n {copy.newExtension}\n </p>\n <PromptComposer\n autoFocus\n placeholder={copy.createPlaceholder}\n draftScope=\"extensions:sidebar-create\"\n onSubmit={handleCreate}\n />\n </PopoverContent>\n </Popover>\n <button\n type=\"button\"\n onClick={toggleExtensionsOpen}\n className=\"flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-muted-foreground/70 hover:bg-accent hover:text-foreground\"\n aria-label={extensionsOpen ? copy.collapse : copy.expand}\n aria-expanded={extensionsOpen}\n >\n <IconChevronDown\n className={cn(\n \"h-3.5 w-3.5 shrink-0 transition-transform\",\n !extensionsOpen && \"-rotate-90\",\n )}\n />\n </button>\n </div>\n </div>\n\n {extensionsOpen &&\n (isLoading ? (\n <div className=\"min-w-0 space-y-0.5 px-0.5\">\n {[1, 2, 3].map((i) => (\n <div\n key={i}\n className=\"flex items-center rounded-md px-2 py-1.5\"\n >\n <div\n className=\"h-3 rounded bg-muted animate-pulse\"\n style={{ width: `${60 + i * 20}px` }}\n />\n </div>\n ))}\n </div>\n ) : sortedTools.length === 0 ? null : (\n <div className=\"min-w-0 space-y-0.5 px-0.5\">\n {visibleTools.map((extension) => {\n const isActive = isExtensionPathname(\n location.pathname,\n extension.id,\n );\n const isFav = favoriteIds.has(extension.id);\n const isRenamingThis = renamingId === extension.id;\n const isLocalExtension =\n extension.source?.mode === \"local-files\";\n const actionsVisible =\n menuOpenId === extension.id || isRenamingThis;\n\n return (\n <div\n key={extension.id}\n onDragOver={(e) => {\n if (!draggingId || draggingId === extension.id) return;\n e.preventDefault();\n e.dataTransfer.dropEffect = \"move\";\n setDragOverId(extension.id);\n }}\n onDragLeave={() => {\n setDragOverId((current) =>\n current === extension.id ? null : current,\n );\n }}\n onDrop={(e) => {\n e.preventDefault();\n const activeId =\n draggingId || e.dataTransfer.getData(\"text/plain\");\n setDraggingId(null);\n setDragOverId(null);\n if (activeId) reorderTool(activeId, extension.id);\n }}\n className={cn(\n \"group/extension relative flex items-center min-w-0 rounded-md\",\n draggingId === extension.id && \"opacity-50\",\n dragOverId === extension.id &&\n draggingId !== extension.id &&\n \"bg-accent/60\",\n )}\n >\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n draggable\n onDragStart={(e) => {\n setDraggingId(extension.id);\n setDragOverId(null);\n e.dataTransfer.effectAllowed = \"move\";\n e.dataTransfer.setData(\"text/plain\", extension.id);\n }}\n onDragEnd={() => {\n setDraggingId(null);\n setDragOverId(null);\n }}\n className=\"-ml-2 cursor-grab rounded p-0.5 text-muted-foreground/30 opacity-0 transition-colors hover:text-muted-foreground/70 active:cursor-grabbing group-hover/extension:opacity-100 group-focus-within/extension:opacity-100\"\n aria-label={copy.reorder(extension.name)}\n >\n <IconGripVertical className=\"h-3 w-3\" />\n </button>\n </TooltipTrigger>\n <TooltipContent>{copy.dragToReorder}</TooltipContent>\n </Tooltip>\n <Link\n to={extensionPath(extension.id, extension.name)}\n className={cn(\n \"flex min-w-0 flex-1 items-center rounded-md px-2 py-1.5 pr-12 text-xs transition-[padding,color,background-color] md:pr-2 md:group-hover/extension:pr-12 md:group-focus-within/extension:pr-12\",\n actionsVisible && \"md:pr-12\",\n isActive\n ? \"bg-accent text-accent-foreground font-medium\"\n : \"text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground\",\n )}\n >\n {isRenamingThis ? (\n <input\n autoFocus\n value={renameValue}\n onChange={(e) => setRenameValue(e.target.value)}\n onBlur={() => submitRename(extension.id)}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") submitRename(extension.id);\n if (e.key === \"Escape\") setRenamingId(null);\n }}\n onClick={(e) => {\n e.preventDefault();\n e.stopPropagation();\n }}\n className=\"min-w-0 flex-1 truncate border-b border-primary bg-transparent px-0 py-0 text-xs outline-none\"\n />\n ) : (\n <span className=\"flex min-w-0 items-center gap-1.5\">\n {extension.globallyHidden && (\n <IconEyeOff\n className=\"h-3 w-3 shrink-0 text-muted-foreground/60\"\n aria-label={copy.hiddenFromEveryone}\n />\n )}\n <span className=\"block truncate\">\n {extension.name}\n </span>\n {isLocalExtension && (\n <span className=\"shrink-0 rounded border border-border px-1 text-[9px] font-medium uppercase tracking-wide text-muted-foreground/70\">\n {copy.file}\n </span>\n )}\n </span>\n )}\n </Link>\n\n <div\n className={cn(\n \"pointer-events-none absolute right-1 top-1/2 flex -translate-y-1/2 items-center gap-0.5 opacity-100 transition-opacity md:opacity-0 md:group-hover/extension:opacity-100 md:group-focus-within/extension:opacity-100\",\n actionsVisible && \"md:opacity-100\",\n )}\n >\n <button\n type=\"button\"\n onClick={(e) => {\n e.preventDefault();\n e.stopPropagation();\n toggleFavorite(extension.id);\n }}\n className={cn(\n \"pointer-events-auto cursor-pointer rounded p-0.5 transition-colors\",\n isFav\n ? \"text-yellow-500\"\n : \"text-muted-foreground/40 hover:text-yellow-500\",\n )}\n aria-label={isFav ? copy.unfavorite : copy.favorite}\n >\n {isFav ? (\n <IconStarFilled className=\"h-3 w-3\" />\n ) : (\n <IconStar className=\"h-3 w-3\" />\n )}\n </button>\n\n <DropdownMenu\n open={menuOpenId === extension.id}\n onOpenChange={(open) =>\n setMenuOpenId(open ? extension.id : null)\n }\n >\n <DropdownMenuTrigger asChild>\n <button\n type=\"button\"\n className=\"pointer-events-auto cursor-pointer rounded p-0.5 text-muted-foreground/40 transition-colors hover:text-foreground\"\n aria-label={copy.actions}\n >\n <IconDots className=\"h-3 w-3\" />\n </button>\n </DropdownMenuTrigger>\n <DropdownMenuContent\n align=\"end\"\n sideOffset={4}\n className=\"min-w-[140px]\"\n >\n {isLocalExtension ? (\n <DropdownMenuItem disabled>\n <IconPencil className=\"h-3.5 w-3.5\" />\n {copy.editInFiles}\n </DropdownMenuItem>\n ) : (\n <DropdownMenuItem\n onSelect={() => startRename(extension)}\n >\n <IconPencil className=\"h-3.5 w-3.5\" />\n {copy.rename}\n </DropdownMenuItem>\n )}\n {!isLocalExtension &&\n extension.canDelete !== false &&\n (extension.globallyHidden ? (\n <DropdownMenuItem\n onSelect={() => handleGlobalUnhide(extension)}\n >\n <IconEye className=\"h-3.5 w-3.5\" />\n {copy.unhideForEveryone}\n </DropdownMenuItem>\n ) : (\n <DropdownMenuItem\n onSelect={() => handleGlobalHide(extension)}\n >\n <IconEyeOff className=\"h-3.5 w-3.5\" />\n {copy.hideFromEveryone}\n </DropdownMenuItem>\n ))}\n {!isLocalExtension && (\n <DropdownMenuItem\n onSelect={() => handleDelete(extension)}\n className=\"text-destructive focus:text-destructive\"\n >\n <IconTrash className=\"h-3.5 w-3.5\" />\n {extension.canDelete === false\n ? copy.removeFromMyList\n : copy.delete}\n </DropdownMenuItem>\n )}\n </DropdownMenuContent>\n </DropdownMenu>\n </div>\n </div>\n );\n })}\n {hasMoreExtensions && (\n <button\n type=\"button\"\n aria-expanded={showAllExtensions}\n onClick={() => setShowAllExtensions((current) => !current)}\n className=\"ml-5 mt-1 inline-flex h-5 items-center rounded px-1.5 text-[11px] font-medium text-muted-foreground/60 transition-colors hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1\"\n >\n {showAllExtensions ? copy.showLess : copy.showMore}\n </button>\n )}\n </div>\n ))}\n </div>\n </TooltipProvider>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/client/i18n.tsx"],"names":[],"mappings":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAC;AAOf,OAAO,EAUL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC5B,MAAM,2BAA2B,CAAC;AAKnC,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,EAC3B,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAErD,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED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B,IAAI,kBAAkB,GAAG,IAAI,CAE7D;AA8ID,wBAAgB,IAAI,UAKV,MAAM,YAAY,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAYlD;AAED,wBAAgB,aAAa;sBAMd,IAAI,GAAG,MAAM,GAAG,MAAM,YACnB,IAAI,CAAC,qBAAqB;wBAMlB,MAAM,YAAY,IAAI,CAAC,mBAAmB;8BAIrD,MAAM,QACP,IAAI,CAAC,sBAAsB,YACvB,IAAI,CAAC,yBAAyB;sBAIxB,MAAM,EAAE,YAAY,IAAI,CAAC,iBAAiB;EAMjE;AAED,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,aAAoB,EACpB,KAAK,EACL,OAAkB,GACnB,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC7B,qBAiGA"}
@@ -404,6 +404,15 @@ function interpolateFallbackMessage(template, options) {
404
404
  return value == null ? "" : String(value);
405
405
  });
406
406
  }
407
+ function humanizeFallbackKey(key) {
408
+ const lastSegment = key.split(".").filter(Boolean).pop() ?? key;
409
+ const words = lastSegment
410
+ .replace(/[_-]+/g, " ")
411
+ .replace(/([a-z0-9])([A-Z])/g, "$1 $2")
412
+ .trim()
413
+ .toLowerCase();
414
+ return words ? words.charAt(0).toUpperCase() + words.slice(1) : key;
415
+ }
407
416
  function fallbackMessage(key, options) {
408
417
  const count = Number(options?.count);
409
418
  const pluralKey = Number.isFinite(count) && count === 1 ? `${key}_one` : `${key}_other`;
@@ -411,7 +420,9 @@ function fallbackMessage(key, options) {
411
420
  DEFAULT_ENGLISH_MESSAGES[key] ??
412
421
  CORE_FALLBACK_MESSAGES[pluralKey] ??
413
422
  CORE_FALLBACK_MESSAGES[key];
414
- return template ? interpolateFallbackMessage(template, options) : key;
423
+ return template
424
+ ? interpolateFallbackMessage(template, options)
425
+ : humanizeFallbackKey(key);
415
426
  }
416
427
  export function useT() {
417
428
  const { i18n, t } = useTranslation();
@@ -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,CAAC;AACf,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,cAAc,GACf,MAAM,eAAe,CAAC;AAEvB,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;AACnC,OAAO,sBAAsB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,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,2B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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\";\n\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\";\nimport defaultEnglishMessages from \"../templates/default/app/i18n/en-US.js\";\nimport { setClientAppState } from \"./application-state.js\";\nimport { callAction } from \"./use-action.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\nexport function useOptionalLocale(): LocaleContextValue | null {\n return useContext(LocaleContext);\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
+ {"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;AAEvB,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;AACnC,OAAO,sBAAsB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EACL,cAAc,EAC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AAC,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\";\n\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\";\nimport defaultEnglishMessages from \"../templates/default/app/i18n/en-US.js\";\nimport { setClientAppState } from \"./application-state.js\";\nimport { callAction } from \"./use-action.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\nexport function useOptionalLocale(): LocaleContextValue | null {\n return useContext(LocaleContext);\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 humanizeFallbackKey(key: string) {\n const lastSegment = key.split(\".\").filter(Boolean).pop() ?? key;\n const words = lastSegment\n .replace(/[_-]+/g, \" \")\n .replace(/([a-z0-9])([A-Z])/g, \"$1 $2\")\n .trim()\n .toLowerCase();\n return words ? words.charAt(0).toUpperCase() + words.slice(1) : key;\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\n ? interpolateFallbackMessage(template, options)\n : humanizeFallbackKey(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"]}
@@ -26,8 +26,8 @@ export declare const getCollabState: import("h3").EventHandlerWithFetch<import("
26
26
  * Body: { update: string (base64), requestSource?: string }
27
27
  */
28
28
  export declare const postCollabUpdate: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
29
- ok?: undefined;
30
29
  error: string;
30
+ ok?: undefined;
31
31
  } | {
32
32
  error?: undefined;
33
33
  ok: boolean;
@@ -28,7 +28,7 @@ export declare function createNotificationsHandler(): import("h3").EventHandlerW
28
28
  } | {
29
29
  count?: undefined;
30
30
  updated?: undefined;
31
- ok: boolean;
32
31
  error?: undefined;
32
+ ok: boolean;
33
33
  }>>;
34
34
  //# sourceMappingURL=routes.d.ts.map