@agent-native/core 0.76.5 → 0.76.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1706) hide show
  1. package/corpus/README.md +1 -1
  2. package/corpus/core/CHANGELOG.md +8 -0
  3. package/corpus/core/docs/content/extensions.md +16 -0
  4. package/corpus/core/docs/content/locales/ar-SA/a2a-protocol.md +392 -0
  5. package/corpus/core/docs/content/locales/ar-SA/actions.md +583 -0
  6. package/corpus/core/docs/content/locales/ar-SA/agent-mentions.md +164 -0
  7. package/corpus/core/docs/content/locales/ar-SA/agent-surfaces.md +397 -0
  8. package/corpus/core/docs/content/locales/ar-SA/agent-teams.md +171 -0
  9. package/corpus/core/docs/content/locales/ar-SA/agent-web-surfaces.md +161 -0
  10. package/corpus/core/docs/content/locales/ar-SA/audit-log.md +111 -0
  11. package/corpus/core/docs/content/locales/ar-SA/authentication.md +332 -0
  12. package/corpus/core/docs/content/locales/ar-SA/automations.md +268 -0
  13. package/corpus/core/docs/content/locales/ar-SA/blueprint-installer.md +83 -0
  14. package/corpus/core/docs/content/locales/ar-SA/cli-adapters.md +129 -0
  15. package/corpus/core/docs/content/locales/ar-SA/client.md +398 -0
  16. package/corpus/core/docs/content/locales/ar-SA/cloneable-saas.md +114 -0
  17. package/corpus/core/docs/content/locales/ar-SA/code-agents-ui.md +436 -0
  18. package/corpus/core/docs/content/locales/ar-SA/components.md +368 -0
  19. package/corpus/core/docs/content/locales/ar-SA/context-awareness.md +373 -0
  20. package/corpus/core/docs/content/locales/ar-SA/creating-templates.md +411 -0
  21. package/corpus/core/docs/content/locales/ar-SA/cross-app-sso.md +185 -0
  22. package/corpus/core/docs/content/locales/ar-SA/database.md +183 -0
  23. package/corpus/core/docs/content/locales/ar-SA/deployment.md +349 -0
  24. package/corpus/core/docs/content/locales/ar-SA/dispatch.md +146 -0
  25. package/corpus/core/docs/content/locales/ar-SA/drop-in-agent.md +260 -0
  26. package/corpus/core/docs/content/locales/ar-SA/durable-resume.md +65 -0
  27. package/corpus/core/docs/content/locales/ar-SA/embedding-sdk.md +597 -0
  28. package/corpus/core/docs/content/locales/ar-SA/evals.md +155 -0
  29. package/corpus/core/docs/content/locales/ar-SA/extensions.md +360 -0
  30. package/corpus/core/docs/content/locales/ar-SA/external-agents.md +619 -0
  31. package/corpus/core/docs/content/locales/ar-SA/faq.md +142 -0
  32. package/corpus/core/docs/content/locales/ar-SA/file-uploads.md +122 -0
  33. package/corpus/core/docs/content/locales/ar-SA/frames.md +153 -0
  34. package/corpus/core/docs/content/locales/ar-SA/getting-started.md +199 -0
  35. package/corpus/core/docs/content/locales/ar-SA/harness-agents.md +349 -0
  36. package/corpus/core/docs/content/locales/ar-SA/human-approval.md +86 -0
  37. package/corpus/core/docs/content/locales/ar-SA/internationalization.md +68 -25
  38. package/corpus/core/docs/content/locales/ar-SA/key-concepts.md +312 -0
  39. package/corpus/core/docs/content/locales/ar-SA/local-file-mode.md +433 -0
  40. package/corpus/core/docs/content/locales/ar-SA/mcp-apps.md +147 -0
  41. package/corpus/core/docs/content/locales/ar-SA/mcp-clients.md +330 -0
  42. package/corpus/core/docs/content/locales/ar-SA/mcp-protocol.md +279 -0
  43. package/corpus/core/docs/content/locales/ar-SA/messaging.md +461 -0
  44. package/corpus/core/docs/content/locales/ar-SA/migration-workbench.md +33 -0
  45. package/corpus/core/docs/content/locales/ar-SA/multi-app-workspace.md +312 -0
  46. package/corpus/core/docs/content/locales/ar-SA/multi-tenancy.md +52 -0
  47. package/corpus/core/docs/content/locales/ar-SA/native-chat-ui.md +321 -0
  48. package/corpus/core/docs/content/locales/ar-SA/notifications.md +231 -0
  49. package/corpus/core/docs/content/locales/ar-SA/observability.md +294 -0
  50. package/corpus/core/docs/content/locales/ar-SA/observational-memory.md +77 -0
  51. package/corpus/core/docs/content/locales/ar-SA/onboarding.md +216 -0
  52. package/corpus/core/docs/content/locales/ar-SA/plan-plugin.md +200 -0
  53. package/corpus/core/docs/content/locales/ar-SA/pr-visual-recap.md +384 -0
  54. package/corpus/core/docs/content/locales/ar-SA/processors.md +106 -0
  55. package/corpus/core/docs/content/locales/ar-SA/progress.md +199 -0
  56. package/corpus/core/docs/content/locales/ar-SA/pure-agent-apps.md +39 -0
  57. package/corpus/core/docs/content/locales/ar-SA/real-time-collaboration.md +676 -0
  58. package/corpus/core/docs/content/locales/ar-SA/recurring-jobs.md +142 -0
  59. package/corpus/core/docs/content/locales/ar-SA/routing.md +79 -0
  60. package/corpus/core/docs/content/locales/ar-SA/sandbox-adapters.md +227 -0
  61. package/corpus/core/docs/content/locales/ar-SA/security.md +330 -0
  62. package/corpus/core/docs/content/locales/ar-SA/server.md +253 -0
  63. package/corpus/core/docs/content/locales/ar-SA/sharing.md +219 -0
  64. package/corpus/core/docs/content/locales/ar-SA/skills-guide.md +281 -0
  65. package/corpus/core/docs/content/locales/ar-SA/template-analytics.md +259 -0
  66. package/corpus/core/docs/content/locales/ar-SA/template-assets.md +303 -0
  67. package/corpus/core/docs/content/locales/ar-SA/template-brain.md +324 -0
  68. package/corpus/core/docs/content/locales/ar-SA/template-calendar.md +194 -0
  69. package/corpus/core/docs/content/locales/ar-SA/template-chat.md +129 -0
  70. package/corpus/core/docs/content/locales/ar-SA/template-clips.md +368 -0
  71. package/corpus/core/docs/content/locales/ar-SA/template-content.md +402 -0
  72. package/corpus/core/docs/content/locales/ar-SA/template-design.md +173 -0
  73. package/corpus/core/docs/content/locales/ar-SA/template-dispatch.md +220 -0
  74. package/corpus/core/docs/content/locales/ar-SA/template-forms.md +178 -0
  75. package/corpus/core/docs/content/locales/ar-SA/template-mail.md +239 -0
  76. package/corpus/core/docs/content/locales/ar-SA/template-plan.md +815 -0
  77. package/corpus/core/docs/content/locales/ar-SA/template-slides.md +293 -0
  78. package/corpus/core/docs/content/locales/ar-SA/template-videos.md +222 -0
  79. package/corpus/core/docs/content/locales/ar-SA/tracking.md +236 -0
  80. package/corpus/core/docs/content/locales/ar-SA/using-your-agent.md +71 -0
  81. package/corpus/core/docs/content/locales/ar-SA/voice-input.md +81 -0
  82. package/corpus/core/docs/content/locales/ar-SA/what-is-agent-native.md +202 -0
  83. package/corpus/core/docs/content/locales/ar-SA/workspace-connections.md +321 -0
  84. package/corpus/core/docs/content/locales/ar-SA/workspace-management.md +175 -0
  85. package/corpus/core/docs/content/locales/ar-SA/workspace.md +323 -0
  86. package/corpus/core/docs/content/locales/ar-SA/writing-agent-instructions.md +173 -0
  87. package/corpus/core/docs/content/locales/de-DE/a2a-protocol.md +392 -0
  88. package/corpus/core/docs/content/locales/de-DE/actions.md +583 -0
  89. package/corpus/core/docs/content/locales/de-DE/agent-mentions.md +164 -0
  90. package/corpus/core/docs/content/locales/de-DE/agent-surfaces.md +397 -0
  91. package/corpus/core/docs/content/locales/de-DE/agent-teams.md +171 -0
  92. package/corpus/core/docs/content/locales/de-DE/agent-web-surfaces.md +161 -0
  93. package/corpus/core/docs/content/locales/de-DE/audit-log.md +111 -0
  94. package/corpus/core/docs/content/locales/de-DE/authentication.md +332 -0
  95. package/corpus/core/docs/content/locales/de-DE/automations.md +268 -0
  96. package/corpus/core/docs/content/locales/de-DE/blueprint-installer.md +83 -0
  97. package/corpus/core/docs/content/locales/de-DE/cli-adapters.md +129 -0
  98. package/corpus/core/docs/content/locales/de-DE/client.md +398 -0
  99. package/corpus/core/docs/content/locales/de-DE/cloneable-saas.md +114 -0
  100. package/corpus/core/docs/content/locales/de-DE/code-agents-ui.md +436 -0
  101. package/corpus/core/docs/content/locales/de-DE/components.md +368 -0
  102. package/corpus/core/docs/content/locales/de-DE/context-awareness.md +373 -0
  103. package/corpus/core/docs/content/locales/de-DE/creating-templates.md +411 -0
  104. package/corpus/core/docs/content/locales/de-DE/cross-app-sso.md +185 -0
  105. package/corpus/core/docs/content/locales/de-DE/database.md +183 -0
  106. package/corpus/core/docs/content/locales/de-DE/deployment.md +349 -0
  107. package/corpus/core/docs/content/locales/de-DE/dispatch.md +146 -0
  108. package/corpus/core/docs/content/locales/de-DE/drop-in-agent.md +260 -0
  109. package/corpus/core/docs/content/locales/de-DE/durable-resume.md +65 -0
  110. package/corpus/core/docs/content/locales/de-DE/embedding-sdk.md +597 -0
  111. package/corpus/core/docs/content/locales/de-DE/evals.md +155 -0
  112. package/corpus/core/docs/content/locales/de-DE/extensions.md +360 -0
  113. package/corpus/core/docs/content/locales/de-DE/external-agents.md +619 -0
  114. package/corpus/core/docs/content/locales/de-DE/faq.md +142 -0
  115. package/corpus/core/docs/content/locales/de-DE/file-uploads.md +122 -0
  116. package/corpus/core/docs/content/locales/de-DE/frames.md +153 -0
  117. package/corpus/core/docs/content/locales/de-DE/getting-started.md +199 -0
  118. package/corpus/core/docs/content/locales/de-DE/harness-agents.md +349 -0
  119. package/corpus/core/docs/content/locales/de-DE/human-approval.md +86 -0
  120. package/corpus/core/docs/content/locales/de-DE/internationalization.md +65 -22
  121. package/corpus/core/docs/content/locales/de-DE/key-concepts.md +312 -0
  122. package/corpus/core/docs/content/locales/de-DE/local-file-mode.md +433 -0
  123. package/corpus/core/docs/content/locales/de-DE/mcp-apps.md +147 -0
  124. package/corpus/core/docs/content/locales/de-DE/mcp-clients.md +330 -0
  125. package/corpus/core/docs/content/locales/de-DE/mcp-protocol.md +279 -0
  126. package/corpus/core/docs/content/locales/de-DE/messaging.md +461 -0
  127. package/corpus/core/docs/content/locales/de-DE/migration-workbench.md +33 -0
  128. package/corpus/core/docs/content/locales/de-DE/multi-app-workspace.md +312 -0
  129. package/corpus/core/docs/content/locales/de-DE/multi-tenancy.md +52 -0
  130. package/corpus/core/docs/content/locales/de-DE/native-chat-ui.md +321 -0
  131. package/corpus/core/docs/content/locales/de-DE/notifications.md +231 -0
  132. package/corpus/core/docs/content/locales/de-DE/observability.md +294 -0
  133. package/corpus/core/docs/content/locales/de-DE/observational-memory.md +77 -0
  134. package/corpus/core/docs/content/locales/de-DE/onboarding.md +216 -0
  135. package/corpus/core/docs/content/locales/de-DE/plan-plugin.md +200 -0
  136. package/corpus/core/docs/content/locales/de-DE/pr-visual-recap.md +384 -0
  137. package/corpus/core/docs/content/locales/de-DE/processors.md +106 -0
  138. package/corpus/core/docs/content/locales/de-DE/progress.md +199 -0
  139. package/corpus/core/docs/content/locales/de-DE/pure-agent-apps.md +39 -0
  140. package/corpus/core/docs/content/locales/de-DE/real-time-collaboration.md +676 -0
  141. package/corpus/core/docs/content/locales/de-DE/recurring-jobs.md +142 -0
  142. package/corpus/core/docs/content/locales/de-DE/routing.md +79 -0
  143. package/corpus/core/docs/content/locales/de-DE/sandbox-adapters.md +227 -0
  144. package/corpus/core/docs/content/locales/de-DE/security.md +330 -0
  145. package/corpus/core/docs/content/locales/de-DE/server.md +253 -0
  146. package/corpus/core/docs/content/locales/de-DE/sharing.md +219 -0
  147. package/corpus/core/docs/content/locales/de-DE/skills-guide.md +281 -0
  148. package/corpus/core/docs/content/locales/de-DE/template-analytics.md +259 -0
  149. package/corpus/core/docs/content/locales/de-DE/template-assets.md +303 -0
  150. package/corpus/core/docs/content/locales/de-DE/template-brain.md +324 -0
  151. package/corpus/core/docs/content/locales/de-DE/template-calendar.md +194 -0
  152. package/corpus/core/docs/content/locales/de-DE/template-chat.md +129 -0
  153. package/corpus/core/docs/content/locales/de-DE/template-clips.md +368 -0
  154. package/corpus/core/docs/content/locales/de-DE/template-content.md +402 -0
  155. package/corpus/core/docs/content/locales/de-DE/template-design.md +173 -0
  156. package/corpus/core/docs/content/locales/de-DE/template-dispatch.md +220 -0
  157. package/corpus/core/docs/content/locales/de-DE/template-forms.md +178 -0
  158. package/corpus/core/docs/content/locales/de-DE/template-mail.md +239 -0
  159. package/corpus/core/docs/content/locales/de-DE/template-plan.md +814 -0
  160. package/corpus/core/docs/content/locales/de-DE/template-slides.md +293 -0
  161. package/corpus/core/docs/content/locales/de-DE/template-videos.md +222 -0
  162. package/corpus/core/docs/content/locales/de-DE/tracking.md +236 -0
  163. package/corpus/core/docs/content/locales/de-DE/using-your-agent.md +71 -0
  164. package/corpus/core/docs/content/locales/de-DE/voice-input.md +81 -0
  165. package/corpus/core/docs/content/locales/de-DE/what-is-agent-native.md +202 -0
  166. package/corpus/core/docs/content/locales/de-DE/workspace-connections.md +321 -0
  167. package/corpus/core/docs/content/locales/de-DE/workspace-management.md +175 -0
  168. package/corpus/core/docs/content/locales/de-DE/workspace.md +323 -0
  169. package/corpus/core/docs/content/locales/de-DE/writing-agent-instructions.md +173 -0
  170. package/corpus/core/docs/content/locales/es-ES/a2a-protocol.md +392 -0
  171. package/corpus/core/docs/content/locales/es-ES/actions.md +583 -0
  172. package/corpus/core/docs/content/locales/es-ES/agent-mentions.md +164 -0
  173. package/corpus/core/docs/content/locales/es-ES/agent-surfaces.md +397 -0
  174. package/corpus/core/docs/content/locales/es-ES/agent-teams.md +171 -0
  175. package/corpus/core/docs/content/locales/es-ES/agent-web-surfaces.md +161 -0
  176. package/corpus/core/docs/content/locales/es-ES/audit-log.md +111 -0
  177. package/corpus/core/docs/content/locales/es-ES/authentication.md +332 -0
  178. package/corpus/core/docs/content/locales/es-ES/automations.md +268 -0
  179. package/corpus/core/docs/content/locales/es-ES/blueprint-installer.md +83 -0
  180. package/corpus/core/docs/content/locales/es-ES/cli-adapters.md +129 -0
  181. package/corpus/core/docs/content/locales/es-ES/client.md +398 -0
  182. package/corpus/core/docs/content/locales/es-ES/cloneable-saas.md +114 -0
  183. package/corpus/core/docs/content/locales/es-ES/code-agents-ui.md +436 -0
  184. package/corpus/core/docs/content/locales/es-ES/components.md +368 -0
  185. package/corpus/core/docs/content/locales/es-ES/context-awareness.md +373 -0
  186. package/corpus/core/docs/content/locales/es-ES/creating-templates.md +411 -0
  187. package/corpus/core/docs/content/locales/es-ES/cross-app-sso.md +185 -0
  188. package/corpus/core/docs/content/locales/es-ES/database.md +183 -0
  189. package/corpus/core/docs/content/locales/es-ES/deployment.md +349 -0
  190. package/corpus/core/docs/content/locales/es-ES/dispatch.md +146 -0
  191. package/corpus/core/docs/content/locales/es-ES/drop-in-agent.md +260 -0
  192. package/corpus/core/docs/content/locales/es-ES/durable-resume.md +65 -0
  193. package/corpus/core/docs/content/locales/es-ES/embedding-sdk.md +597 -0
  194. package/corpus/core/docs/content/locales/es-ES/evals.md +155 -0
  195. package/corpus/core/docs/content/locales/es-ES/extensions.md +360 -0
  196. package/corpus/core/docs/content/locales/es-ES/external-agents.md +619 -0
  197. package/corpus/core/docs/content/locales/es-ES/faq.md +142 -0
  198. package/corpus/core/docs/content/locales/es-ES/file-uploads.md +122 -0
  199. package/corpus/core/docs/content/locales/es-ES/frames.md +153 -0
  200. package/corpus/core/docs/content/locales/es-ES/getting-started.md +199 -0
  201. package/corpus/core/docs/content/locales/es-ES/harness-agents.md +349 -0
  202. package/corpus/core/docs/content/locales/es-ES/human-approval.md +86 -0
  203. package/corpus/core/docs/content/locales/es-ES/internationalization.md +67 -24
  204. package/corpus/core/docs/content/locales/es-ES/key-concepts.md +312 -0
  205. package/corpus/core/docs/content/locales/es-ES/local-file-mode.md +433 -0
  206. package/corpus/core/docs/content/locales/es-ES/mcp-apps.md +147 -0
  207. package/corpus/core/docs/content/locales/es-ES/mcp-clients.md +330 -0
  208. package/corpus/core/docs/content/locales/es-ES/mcp-protocol.md +279 -0
  209. package/corpus/core/docs/content/locales/es-ES/messaging.md +461 -0
  210. package/corpus/core/docs/content/locales/es-ES/migration-workbench.md +33 -0
  211. package/corpus/core/docs/content/locales/es-ES/multi-app-workspace.md +312 -0
  212. package/corpus/core/docs/content/locales/es-ES/multi-tenancy.md +52 -0
  213. package/corpus/core/docs/content/locales/es-ES/native-chat-ui.md +321 -0
  214. package/corpus/core/docs/content/locales/es-ES/notifications.md +231 -0
  215. package/corpus/core/docs/content/locales/es-ES/observability.md +294 -0
  216. package/corpus/core/docs/content/locales/es-ES/observational-memory.md +77 -0
  217. package/corpus/core/docs/content/locales/es-ES/onboarding.md +216 -0
  218. package/corpus/core/docs/content/locales/es-ES/plan-plugin.md +200 -0
  219. package/corpus/core/docs/content/locales/es-ES/pr-visual-recap.md +384 -0
  220. package/corpus/core/docs/content/locales/es-ES/processors.md +106 -0
  221. package/corpus/core/docs/content/locales/es-ES/progress.md +199 -0
  222. package/corpus/core/docs/content/locales/es-ES/pure-agent-apps.md +39 -0
  223. package/corpus/core/docs/content/locales/es-ES/real-time-collaboration.md +676 -0
  224. package/corpus/core/docs/content/locales/es-ES/recurring-jobs.md +142 -0
  225. package/corpus/core/docs/content/locales/es-ES/routing.md +79 -0
  226. package/corpus/core/docs/content/locales/es-ES/sandbox-adapters.md +227 -0
  227. package/corpus/core/docs/content/locales/es-ES/security.md +330 -0
  228. package/corpus/core/docs/content/locales/es-ES/server.md +253 -0
  229. package/corpus/core/docs/content/locales/es-ES/sharing.md +219 -0
  230. package/corpus/core/docs/content/locales/es-ES/skills-guide.md +281 -0
  231. package/corpus/core/docs/content/locales/es-ES/template-analytics.md +259 -0
  232. package/corpus/core/docs/content/locales/es-ES/template-assets.md +303 -0
  233. package/corpus/core/docs/content/locales/es-ES/template-brain.md +324 -0
  234. package/corpus/core/docs/content/locales/es-ES/template-calendar.md +194 -0
  235. package/corpus/core/docs/content/locales/es-ES/template-chat.md +129 -0
  236. package/corpus/core/docs/content/locales/es-ES/template-clips.md +368 -0
  237. package/corpus/core/docs/content/locales/es-ES/template-content.md +402 -0
  238. package/corpus/core/docs/content/locales/es-ES/template-design.md +173 -0
  239. package/corpus/core/docs/content/locales/es-ES/template-dispatch.md +220 -0
  240. package/corpus/core/docs/content/locales/es-ES/template-forms.md +178 -0
  241. package/corpus/core/docs/content/locales/es-ES/template-mail.md +239 -0
  242. package/corpus/core/docs/content/locales/es-ES/template-plan.md +815 -0
  243. package/corpus/core/docs/content/locales/es-ES/template-slides.md +293 -0
  244. package/corpus/core/docs/content/locales/es-ES/template-videos.md +222 -0
  245. package/corpus/core/docs/content/locales/es-ES/tracking.md +236 -0
  246. package/corpus/core/docs/content/locales/es-ES/using-your-agent.md +71 -0
  247. package/corpus/core/docs/content/locales/es-ES/voice-input.md +81 -0
  248. package/corpus/core/docs/content/locales/es-ES/what-is-agent-native.md +202 -0
  249. package/corpus/core/docs/content/locales/es-ES/workspace-connections.md +321 -0
  250. package/corpus/core/docs/content/locales/es-ES/workspace-management.md +175 -0
  251. package/corpus/core/docs/content/locales/es-ES/workspace.md +323 -0
  252. package/corpus/core/docs/content/locales/es-ES/writing-agent-instructions.md +173 -0
  253. package/corpus/core/docs/content/locales/fr-FR/a2a-protocol.md +392 -0
  254. package/corpus/core/docs/content/locales/fr-FR/actions.md +583 -0
  255. package/corpus/core/docs/content/locales/fr-FR/agent-mentions.md +164 -0
  256. package/corpus/core/docs/content/locales/fr-FR/agent-surfaces.md +397 -0
  257. package/corpus/core/docs/content/locales/fr-FR/agent-teams.md +171 -0
  258. package/corpus/core/docs/content/locales/fr-FR/agent-web-surfaces.md +161 -0
  259. package/corpus/core/docs/content/locales/fr-FR/audit-log.md +111 -0
  260. package/corpus/core/docs/content/locales/fr-FR/authentication.md +332 -0
  261. package/corpus/core/docs/content/locales/fr-FR/automations.md +268 -0
  262. package/corpus/core/docs/content/locales/fr-FR/blueprint-installer.md +83 -0
  263. package/corpus/core/docs/content/locales/fr-FR/cli-adapters.md +129 -0
  264. package/corpus/core/docs/content/locales/fr-FR/client.md +398 -0
  265. package/corpus/core/docs/content/locales/fr-FR/cloneable-saas.md +114 -0
  266. package/corpus/core/docs/content/locales/fr-FR/code-agents-ui.md +436 -0
  267. package/corpus/core/docs/content/locales/fr-FR/components.md +368 -0
  268. package/corpus/core/docs/content/locales/fr-FR/context-awareness.md +373 -0
  269. package/corpus/core/docs/content/locales/fr-FR/creating-templates.md +411 -0
  270. package/corpus/core/docs/content/locales/fr-FR/cross-app-sso.md +185 -0
  271. package/corpus/core/docs/content/locales/fr-FR/database.md +183 -0
  272. package/corpus/core/docs/content/locales/fr-FR/deployment.md +349 -0
  273. package/corpus/core/docs/content/locales/fr-FR/dispatch.md +146 -0
  274. package/corpus/core/docs/content/locales/fr-FR/drop-in-agent.md +260 -0
  275. package/corpus/core/docs/content/locales/fr-FR/durable-resume.md +65 -0
  276. package/corpus/core/docs/content/locales/fr-FR/embedding-sdk.md +597 -0
  277. package/corpus/core/docs/content/locales/fr-FR/evals.md +155 -0
  278. package/corpus/core/docs/content/locales/fr-FR/extensions.md +360 -0
  279. package/corpus/core/docs/content/locales/fr-FR/external-agents.md +619 -0
  280. package/corpus/core/docs/content/locales/fr-FR/faq.md +142 -0
  281. package/corpus/core/docs/content/locales/fr-FR/file-uploads.md +122 -0
  282. package/corpus/core/docs/content/locales/fr-FR/frames.md +153 -0
  283. package/corpus/core/docs/content/locales/fr-FR/getting-started.md +199 -0
  284. package/corpus/core/docs/content/locales/fr-FR/harness-agents.md +349 -0
  285. package/corpus/core/docs/content/locales/fr-FR/human-approval.md +86 -0
  286. package/corpus/core/docs/content/locales/fr-FR/internationalization.md +67 -24
  287. package/corpus/core/docs/content/locales/fr-FR/key-concepts.md +312 -0
  288. package/corpus/core/docs/content/locales/fr-FR/local-file-mode.md +433 -0
  289. package/corpus/core/docs/content/locales/fr-FR/mcp-apps.md +147 -0
  290. package/corpus/core/docs/content/locales/fr-FR/mcp-clients.md +330 -0
  291. package/corpus/core/docs/content/locales/fr-FR/mcp-protocol.md +279 -0
  292. package/corpus/core/docs/content/locales/fr-FR/messaging.md +461 -0
  293. package/corpus/core/docs/content/locales/fr-FR/migration-workbench.md +33 -0
  294. package/corpus/core/docs/content/locales/fr-FR/multi-app-workspace.md +312 -0
  295. package/corpus/core/docs/content/locales/fr-FR/multi-tenancy.md +52 -0
  296. package/corpus/core/docs/content/locales/fr-FR/native-chat-ui.md +321 -0
  297. package/corpus/core/docs/content/locales/fr-FR/notifications.md +231 -0
  298. package/corpus/core/docs/content/locales/fr-FR/observability.md +294 -0
  299. package/corpus/core/docs/content/locales/fr-FR/observational-memory.md +77 -0
  300. package/corpus/core/docs/content/locales/fr-FR/onboarding.md +216 -0
  301. package/corpus/core/docs/content/locales/fr-FR/plan-plugin.md +200 -0
  302. package/corpus/core/docs/content/locales/fr-FR/pr-visual-recap.md +384 -0
  303. package/corpus/core/docs/content/locales/fr-FR/processors.md +106 -0
  304. package/corpus/core/docs/content/locales/fr-FR/progress.md +199 -0
  305. package/corpus/core/docs/content/locales/fr-FR/pure-agent-apps.md +39 -0
  306. package/corpus/core/docs/content/locales/fr-FR/real-time-collaboration.md +676 -0
  307. package/corpus/core/docs/content/locales/fr-FR/recurring-jobs.md +142 -0
  308. package/corpus/core/docs/content/locales/fr-FR/routing.md +79 -0
  309. package/corpus/core/docs/content/locales/fr-FR/sandbox-adapters.md +227 -0
  310. package/corpus/core/docs/content/locales/fr-FR/security.md +330 -0
  311. package/corpus/core/docs/content/locales/fr-FR/server.md +253 -0
  312. package/corpus/core/docs/content/locales/fr-FR/sharing.md +219 -0
  313. package/corpus/core/docs/content/locales/fr-FR/skills-guide.md +281 -0
  314. package/corpus/core/docs/content/locales/fr-FR/template-analytics.md +259 -0
  315. package/corpus/core/docs/content/locales/fr-FR/template-assets.md +303 -0
  316. package/corpus/core/docs/content/locales/fr-FR/template-brain.md +324 -0
  317. package/corpus/core/docs/content/locales/fr-FR/template-calendar.md +194 -0
  318. package/corpus/core/docs/content/locales/fr-FR/template-chat.md +129 -0
  319. package/corpus/core/docs/content/locales/fr-FR/template-clips.md +368 -0
  320. package/corpus/core/docs/content/locales/fr-FR/template-content.md +402 -0
  321. package/corpus/core/docs/content/locales/fr-FR/template-design.md +173 -0
  322. package/corpus/core/docs/content/locales/fr-FR/template-dispatch.md +220 -0
  323. package/corpus/core/docs/content/locales/fr-FR/template-forms.md +178 -0
  324. package/corpus/core/docs/content/locales/fr-FR/template-mail.md +239 -0
  325. package/corpus/core/docs/content/locales/fr-FR/template-plan.md +815 -0
  326. package/corpus/core/docs/content/locales/fr-FR/template-slides.md +293 -0
  327. package/corpus/core/docs/content/locales/fr-FR/template-videos.md +222 -0
  328. package/corpus/core/docs/content/locales/fr-FR/tracking.md +236 -0
  329. package/corpus/core/docs/content/locales/fr-FR/using-your-agent.md +71 -0
  330. package/corpus/core/docs/content/locales/fr-FR/voice-input.md +81 -0
  331. package/corpus/core/docs/content/locales/fr-FR/what-is-agent-native.md +202 -0
  332. package/corpus/core/docs/content/locales/fr-FR/workspace-connections.md +321 -0
  333. package/corpus/core/docs/content/locales/fr-FR/workspace-management.md +175 -0
  334. package/corpus/core/docs/content/locales/fr-FR/workspace.md +323 -0
  335. package/corpus/core/docs/content/locales/fr-FR/writing-agent-instructions.md +173 -0
  336. package/corpus/core/docs/content/locales/hi-IN/a2a-protocol.md +392 -0
  337. package/corpus/core/docs/content/locales/hi-IN/actions.md +583 -0
  338. package/corpus/core/docs/content/locales/hi-IN/agent-mentions.md +164 -0
  339. package/corpus/core/docs/content/locales/hi-IN/agent-surfaces.md +397 -0
  340. package/corpus/core/docs/content/locales/hi-IN/agent-teams.md +171 -0
  341. package/corpus/core/docs/content/locales/hi-IN/agent-web-surfaces.md +161 -0
  342. package/corpus/core/docs/content/locales/hi-IN/audit-log.md +111 -0
  343. package/corpus/core/docs/content/locales/hi-IN/authentication.md +332 -0
  344. package/corpus/core/docs/content/locales/hi-IN/automations.md +268 -0
  345. package/corpus/core/docs/content/locales/hi-IN/blueprint-installer.md +83 -0
  346. package/corpus/core/docs/content/locales/hi-IN/cli-adapters.md +129 -0
  347. package/corpus/core/docs/content/locales/hi-IN/client.md +398 -0
  348. package/corpus/core/docs/content/locales/hi-IN/cloneable-saas.md +114 -0
  349. package/corpus/core/docs/content/locales/hi-IN/code-agents-ui.md +436 -0
  350. package/corpus/core/docs/content/locales/hi-IN/components.md +368 -0
  351. package/corpus/core/docs/content/locales/hi-IN/context-awareness.md +373 -0
  352. package/corpus/core/docs/content/locales/hi-IN/creating-templates.md +411 -0
  353. package/corpus/core/docs/content/locales/hi-IN/cross-app-sso.md +185 -0
  354. package/corpus/core/docs/content/locales/hi-IN/database.md +183 -0
  355. package/corpus/core/docs/content/locales/hi-IN/deployment.md +349 -0
  356. package/corpus/core/docs/content/locales/hi-IN/dispatch.md +146 -0
  357. package/corpus/core/docs/content/locales/hi-IN/drop-in-agent.md +260 -0
  358. package/corpus/core/docs/content/locales/hi-IN/durable-resume.md +65 -0
  359. package/corpus/core/docs/content/locales/hi-IN/embedding-sdk.md +597 -0
  360. package/corpus/core/docs/content/locales/hi-IN/evals.md +155 -0
  361. package/corpus/core/docs/content/locales/hi-IN/extensions.md +360 -0
  362. package/corpus/core/docs/content/locales/hi-IN/external-agents.md +619 -0
  363. package/corpus/core/docs/content/locales/hi-IN/faq.md +142 -0
  364. package/corpus/core/docs/content/locales/hi-IN/file-uploads.md +122 -0
  365. package/corpus/core/docs/content/locales/hi-IN/frames.md +153 -0
  366. package/corpus/core/docs/content/locales/hi-IN/getting-started.md +199 -0
  367. package/corpus/core/docs/content/locales/hi-IN/harness-agents.md +349 -0
  368. package/corpus/core/docs/content/locales/hi-IN/human-approval.md +86 -0
  369. package/corpus/core/docs/content/locales/hi-IN/internationalization.md +70 -27
  370. package/corpus/core/docs/content/locales/hi-IN/key-concepts.md +312 -0
  371. package/corpus/core/docs/content/locales/hi-IN/local-file-mode.md +433 -0
  372. package/corpus/core/docs/content/locales/hi-IN/mcp-apps.md +147 -0
  373. package/corpus/core/docs/content/locales/hi-IN/mcp-clients.md +330 -0
  374. package/corpus/core/docs/content/locales/hi-IN/mcp-protocol.md +279 -0
  375. package/corpus/core/docs/content/locales/hi-IN/messaging.md +461 -0
  376. package/corpus/core/docs/content/locales/hi-IN/migration-workbench.md +33 -0
  377. package/corpus/core/docs/content/locales/hi-IN/multi-app-workspace.md +312 -0
  378. package/corpus/core/docs/content/locales/hi-IN/multi-tenancy.md +52 -0
  379. package/corpus/core/docs/content/locales/hi-IN/native-chat-ui.md +321 -0
  380. package/corpus/core/docs/content/locales/hi-IN/notifications.md +231 -0
  381. package/corpus/core/docs/content/locales/hi-IN/observability.md +294 -0
  382. package/corpus/core/docs/content/locales/hi-IN/observational-memory.md +77 -0
  383. package/corpus/core/docs/content/locales/hi-IN/onboarding.md +216 -0
  384. package/corpus/core/docs/content/locales/hi-IN/plan-plugin.md +200 -0
  385. package/corpus/core/docs/content/locales/hi-IN/pr-visual-recap.md +384 -0
  386. package/corpus/core/docs/content/locales/hi-IN/processors.md +106 -0
  387. package/corpus/core/docs/content/locales/hi-IN/progress.md +199 -0
  388. package/corpus/core/docs/content/locales/hi-IN/pure-agent-apps.md +39 -0
  389. package/corpus/core/docs/content/locales/hi-IN/real-time-collaboration.md +676 -0
  390. package/corpus/core/docs/content/locales/hi-IN/recurring-jobs.md +142 -0
  391. package/corpus/core/docs/content/locales/hi-IN/routing.md +79 -0
  392. package/corpus/core/docs/content/locales/hi-IN/sandbox-adapters.md +227 -0
  393. package/corpus/core/docs/content/locales/hi-IN/security.md +330 -0
  394. package/corpus/core/docs/content/locales/hi-IN/server.md +253 -0
  395. package/corpus/core/docs/content/locales/hi-IN/sharing.md +219 -0
  396. package/corpus/core/docs/content/locales/hi-IN/skills-guide.md +281 -0
  397. package/corpus/core/docs/content/locales/hi-IN/template-analytics.md +259 -0
  398. package/corpus/core/docs/content/locales/hi-IN/template-assets.md +303 -0
  399. package/corpus/core/docs/content/locales/hi-IN/template-brain.md +324 -0
  400. package/corpus/core/docs/content/locales/hi-IN/template-calendar.md +194 -0
  401. package/corpus/core/docs/content/locales/hi-IN/template-chat.md +129 -0
  402. package/corpus/core/docs/content/locales/hi-IN/template-clips.md +368 -0
  403. package/corpus/core/docs/content/locales/hi-IN/template-content.md +402 -0
  404. package/corpus/core/docs/content/locales/hi-IN/template-design.md +173 -0
  405. package/corpus/core/docs/content/locales/hi-IN/template-dispatch.md +220 -0
  406. package/corpus/core/docs/content/locales/hi-IN/template-forms.md +178 -0
  407. package/corpus/core/docs/content/locales/hi-IN/template-mail.md +239 -0
  408. package/corpus/core/docs/content/locales/hi-IN/template-plan.md +815 -0
  409. package/corpus/core/docs/content/locales/hi-IN/template-slides.md +293 -0
  410. package/corpus/core/docs/content/locales/hi-IN/template-videos.md +222 -0
  411. package/corpus/core/docs/content/locales/hi-IN/tracking.md +236 -0
  412. package/corpus/core/docs/content/locales/hi-IN/using-your-agent.md +71 -0
  413. package/corpus/core/docs/content/locales/hi-IN/voice-input.md +81 -0
  414. package/corpus/core/docs/content/locales/hi-IN/what-is-agent-native.md +202 -0
  415. package/corpus/core/docs/content/locales/hi-IN/workspace-connections.md +321 -0
  416. package/corpus/core/docs/content/locales/hi-IN/workspace-management.md +175 -0
  417. package/corpus/core/docs/content/locales/hi-IN/workspace.md +323 -0
  418. package/corpus/core/docs/content/locales/hi-IN/writing-agent-instructions.md +173 -0
  419. package/corpus/core/docs/content/locales/ja-JP/a2a-protocol.md +392 -0
  420. package/corpus/core/docs/content/locales/ja-JP/actions.md +583 -0
  421. package/corpus/core/docs/content/locales/ja-JP/agent-mentions.md +164 -0
  422. package/corpus/core/docs/content/locales/ja-JP/agent-surfaces.md +397 -0
  423. package/corpus/core/docs/content/locales/ja-JP/agent-teams.md +171 -0
  424. package/corpus/core/docs/content/locales/ja-JP/agent-web-surfaces.md +161 -0
  425. package/corpus/core/docs/content/locales/ja-JP/audit-log.md +111 -0
  426. package/corpus/core/docs/content/locales/ja-JP/authentication.md +332 -0
  427. package/corpus/core/docs/content/locales/ja-JP/automations.md +268 -0
  428. package/corpus/core/docs/content/locales/ja-JP/blueprint-installer.md +83 -0
  429. package/corpus/core/docs/content/locales/ja-JP/cli-adapters.md +129 -0
  430. package/corpus/core/docs/content/locales/ja-JP/client.md +398 -0
  431. package/corpus/core/docs/content/locales/ja-JP/cloneable-saas.md +114 -0
  432. package/corpus/core/docs/content/locales/ja-JP/code-agents-ui.md +436 -0
  433. package/corpus/core/docs/content/locales/ja-JP/components.md +368 -0
  434. package/corpus/core/docs/content/locales/ja-JP/context-awareness.md +373 -0
  435. package/corpus/core/docs/content/locales/ja-JP/creating-templates.md +411 -0
  436. package/corpus/core/docs/content/locales/ja-JP/cross-app-sso.md +185 -0
  437. package/corpus/core/docs/content/locales/ja-JP/database.md +183 -0
  438. package/corpus/core/docs/content/locales/ja-JP/deployment.md +349 -0
  439. package/corpus/core/docs/content/locales/ja-JP/dispatch.md +146 -0
  440. package/corpus/core/docs/content/locales/ja-JP/drop-in-agent.md +260 -0
  441. package/corpus/core/docs/content/locales/ja-JP/durable-resume.md +65 -0
  442. package/corpus/core/docs/content/locales/ja-JP/embedding-sdk.md +597 -0
  443. package/corpus/core/docs/content/locales/ja-JP/evals.md +155 -0
  444. package/corpus/core/docs/content/locales/ja-JP/extensions.md +360 -0
  445. package/corpus/core/docs/content/locales/ja-JP/external-agents.md +619 -0
  446. package/corpus/core/docs/content/locales/ja-JP/faq.md +142 -0
  447. package/corpus/core/docs/content/locales/ja-JP/file-uploads.md +122 -0
  448. package/corpus/core/docs/content/locales/ja-JP/frames.md +153 -0
  449. package/corpus/core/docs/content/locales/ja-JP/getting-started.md +199 -0
  450. package/corpus/core/docs/content/locales/ja-JP/harness-agents.md +349 -0
  451. package/corpus/core/docs/content/locales/ja-JP/human-approval.md +86 -0
  452. package/corpus/core/docs/content/locales/ja-JP/internationalization.md +54 -23
  453. package/corpus/core/docs/content/locales/ja-JP/key-concepts.md +312 -0
  454. package/corpus/core/docs/content/locales/ja-JP/local-file-mode.md +433 -0
  455. package/corpus/core/docs/content/locales/ja-JP/mcp-apps.md +147 -0
  456. package/corpus/core/docs/content/locales/ja-JP/mcp-clients.md +330 -0
  457. package/corpus/core/docs/content/locales/ja-JP/mcp-protocol.md +279 -0
  458. package/corpus/core/docs/content/locales/ja-JP/messaging.md +461 -0
  459. package/corpus/core/docs/content/locales/ja-JP/migration-workbench.md +33 -0
  460. package/corpus/core/docs/content/locales/ja-JP/multi-app-workspace.md +312 -0
  461. package/corpus/core/docs/content/locales/ja-JP/multi-tenancy.md +52 -0
  462. package/corpus/core/docs/content/locales/ja-JP/native-chat-ui.md +321 -0
  463. package/corpus/core/docs/content/locales/ja-JP/notifications.md +231 -0
  464. package/corpus/core/docs/content/locales/ja-JP/observability.md +294 -0
  465. package/corpus/core/docs/content/locales/ja-JP/observational-memory.md +77 -0
  466. package/corpus/core/docs/content/locales/ja-JP/onboarding.md +216 -0
  467. package/corpus/core/docs/content/locales/ja-JP/plan-plugin.md +200 -0
  468. package/corpus/core/docs/content/locales/ja-JP/pr-visual-recap.md +384 -0
  469. package/corpus/core/docs/content/locales/ja-JP/processors.md +106 -0
  470. package/corpus/core/docs/content/locales/ja-JP/progress.md +199 -0
  471. package/corpus/core/docs/content/locales/ja-JP/pure-agent-apps.md +39 -0
  472. package/corpus/core/docs/content/locales/ja-JP/real-time-collaboration.md +676 -0
  473. package/corpus/core/docs/content/locales/ja-JP/recurring-jobs.md +142 -0
  474. package/corpus/core/docs/content/locales/ja-JP/routing.md +79 -0
  475. package/corpus/core/docs/content/locales/ja-JP/sandbox-adapters.md +227 -0
  476. package/corpus/core/docs/content/locales/ja-JP/security.md +330 -0
  477. package/corpus/core/docs/content/locales/ja-JP/server.md +253 -0
  478. package/corpus/core/docs/content/locales/ja-JP/sharing.md +219 -0
  479. package/corpus/core/docs/content/locales/ja-JP/skills-guide.md +281 -0
  480. package/corpus/core/docs/content/locales/ja-JP/template-analytics.md +259 -0
  481. package/corpus/core/docs/content/locales/ja-JP/template-assets.md +303 -0
  482. package/corpus/core/docs/content/locales/ja-JP/template-brain.md +324 -0
  483. package/corpus/core/docs/content/locales/ja-JP/template-calendar.md +194 -0
  484. package/corpus/core/docs/content/locales/ja-JP/template-chat.md +129 -0
  485. package/corpus/core/docs/content/locales/ja-JP/template-clips.md +368 -0
  486. package/corpus/core/docs/content/locales/ja-JP/template-content.md +402 -0
  487. package/corpus/core/docs/content/locales/ja-JP/template-design.md +173 -0
  488. package/corpus/core/docs/content/locales/ja-JP/template-dispatch.md +220 -0
  489. package/corpus/core/docs/content/locales/ja-JP/template-forms.md +178 -0
  490. package/corpus/core/docs/content/locales/ja-JP/template-mail.md +239 -0
  491. package/corpus/core/docs/content/locales/ja-JP/template-plan.md +814 -0
  492. package/corpus/core/docs/content/locales/ja-JP/template-slides.md +293 -0
  493. package/corpus/core/docs/content/locales/ja-JP/template-videos.md +222 -0
  494. package/corpus/core/docs/content/locales/ja-JP/tracking.md +236 -0
  495. package/corpus/core/docs/content/locales/ja-JP/using-your-agent.md +71 -0
  496. package/corpus/core/docs/content/locales/ja-JP/voice-input.md +81 -0
  497. package/corpus/core/docs/content/locales/ja-JP/what-is-agent-native.md +202 -0
  498. package/corpus/core/docs/content/locales/ja-JP/workspace-connections.md +321 -0
  499. package/corpus/core/docs/content/locales/ja-JP/workspace-management.md +175 -0
  500. package/corpus/core/docs/content/locales/ja-JP/workspace.md +323 -0
  501. package/corpus/core/docs/content/locales/ja-JP/writing-agent-instructions.md +173 -0
  502. package/corpus/core/docs/content/locales/ko-KR/a2a-protocol.md +392 -0
  503. package/corpus/core/docs/content/locales/ko-KR/actions.md +583 -0
  504. package/corpus/core/docs/content/locales/ko-KR/agent-mentions.md +164 -0
  505. package/corpus/core/docs/content/locales/ko-KR/agent-surfaces.md +397 -0
  506. package/corpus/core/docs/content/locales/ko-KR/agent-teams.md +171 -0
  507. package/corpus/core/docs/content/locales/ko-KR/agent-web-surfaces.md +161 -0
  508. package/corpus/core/docs/content/locales/ko-KR/audit-log.md +111 -0
  509. package/corpus/core/docs/content/locales/ko-KR/authentication.md +332 -0
  510. package/corpus/core/docs/content/locales/ko-KR/automations.md +268 -0
  511. package/corpus/core/docs/content/locales/ko-KR/blueprint-installer.md +83 -0
  512. package/corpus/core/docs/content/locales/ko-KR/cli-adapters.md +129 -0
  513. package/corpus/core/docs/content/locales/ko-KR/client.md +398 -0
  514. package/corpus/core/docs/content/locales/ko-KR/cloneable-saas.md +114 -0
  515. package/corpus/core/docs/content/locales/ko-KR/code-agents-ui.md +436 -0
  516. package/corpus/core/docs/content/locales/ko-KR/components.md +368 -0
  517. package/corpus/core/docs/content/locales/ko-KR/context-awareness.md +373 -0
  518. package/corpus/core/docs/content/locales/ko-KR/creating-templates.md +411 -0
  519. package/corpus/core/docs/content/locales/ko-KR/cross-app-sso.md +187 -0
  520. package/corpus/core/docs/content/locales/ko-KR/database.md +183 -0
  521. package/corpus/core/docs/content/locales/ko-KR/deployment.md +349 -0
  522. package/corpus/core/docs/content/locales/ko-KR/dispatch.md +146 -0
  523. package/corpus/core/docs/content/locales/ko-KR/drop-in-agent.md +260 -0
  524. package/corpus/core/docs/content/locales/ko-KR/durable-resume.md +65 -0
  525. package/corpus/core/docs/content/locales/ko-KR/embedding-sdk.md +597 -0
  526. package/corpus/core/docs/content/locales/ko-KR/evals.md +155 -0
  527. package/corpus/core/docs/content/locales/ko-KR/extensions.md +360 -0
  528. package/corpus/core/docs/content/locales/ko-KR/external-agents.md +621 -0
  529. package/corpus/core/docs/content/locales/ko-KR/faq.md +142 -0
  530. package/corpus/core/docs/content/locales/ko-KR/file-uploads.md +122 -0
  531. package/corpus/core/docs/content/locales/ko-KR/frames.md +153 -0
  532. package/corpus/core/docs/content/locales/ko-KR/getting-started.md +199 -0
  533. package/corpus/core/docs/content/locales/ko-KR/harness-agents.md +349 -0
  534. package/corpus/core/docs/content/locales/ko-KR/human-approval.md +88 -0
  535. package/corpus/core/docs/content/locales/ko-KR/internationalization.md +66 -23
  536. package/corpus/core/docs/content/locales/ko-KR/key-concepts.md +312 -0
  537. package/corpus/core/docs/content/locales/ko-KR/local-file-mode.md +433 -0
  538. package/corpus/core/docs/content/locales/ko-KR/mcp-apps.md +147 -0
  539. package/corpus/core/docs/content/locales/ko-KR/mcp-clients.md +330 -0
  540. package/corpus/core/docs/content/locales/ko-KR/mcp-protocol.md +279 -0
  541. package/corpus/core/docs/content/locales/ko-KR/messaging.md +464 -0
  542. package/corpus/core/docs/content/locales/ko-KR/migration-workbench.md +33 -0
  543. package/corpus/core/docs/content/locales/ko-KR/multi-app-workspace.md +312 -0
  544. package/corpus/core/docs/content/locales/ko-KR/multi-tenancy.md +52 -0
  545. package/corpus/core/docs/content/locales/ko-KR/native-chat-ui.md +321 -0
  546. package/corpus/core/docs/content/locales/ko-KR/notifications.md +231 -0
  547. package/corpus/core/docs/content/locales/ko-KR/observability.md +294 -0
  548. package/corpus/core/docs/content/locales/ko-KR/observational-memory.md +77 -0
  549. package/corpus/core/docs/content/locales/ko-KR/onboarding.md +216 -0
  550. package/corpus/core/docs/content/locales/ko-KR/plan-plugin.md +200 -0
  551. package/corpus/core/docs/content/locales/ko-KR/pr-visual-recap.md +384 -0
  552. package/corpus/core/docs/content/locales/ko-KR/processors.md +106 -0
  553. package/corpus/core/docs/content/locales/ko-KR/progress.md +199 -0
  554. package/corpus/core/docs/content/locales/ko-KR/pure-agent-apps.md +39 -0
  555. package/corpus/core/docs/content/locales/ko-KR/real-time-collaboration.md +676 -0
  556. package/corpus/core/docs/content/locales/ko-KR/recurring-jobs.md +142 -0
  557. package/corpus/core/docs/content/locales/ko-KR/routing.md +79 -0
  558. package/corpus/core/docs/content/locales/ko-KR/sandbox-adapters.md +227 -0
  559. package/corpus/core/docs/content/locales/ko-KR/security.md +330 -0
  560. package/corpus/core/docs/content/locales/ko-KR/server.md +253 -0
  561. package/corpus/core/docs/content/locales/ko-KR/sharing.md +219 -0
  562. package/corpus/core/docs/content/locales/ko-KR/skills-guide.md +281 -0
  563. package/corpus/core/docs/content/locales/ko-KR/template-analytics.md +259 -0
  564. package/corpus/core/docs/content/locales/ko-KR/template-assets.md +307 -0
  565. package/corpus/core/docs/content/locales/ko-KR/template-brain.md +324 -0
  566. package/corpus/core/docs/content/locales/ko-KR/template-calendar.md +194 -0
  567. package/corpus/core/docs/content/locales/ko-KR/template-chat.md +129 -0
  568. package/corpus/core/docs/content/locales/ko-KR/template-clips.md +372 -0
  569. package/corpus/core/docs/content/locales/ko-KR/template-content.md +402 -0
  570. package/corpus/core/docs/content/locales/ko-KR/template-design.md +173 -0
  571. package/corpus/core/docs/content/locales/ko-KR/template-dispatch.md +220 -0
  572. package/corpus/core/docs/content/locales/ko-KR/template-forms.md +178 -0
  573. package/corpus/core/docs/content/locales/ko-KR/template-mail.md +239 -0
  574. package/corpus/core/docs/content/locales/ko-KR/template-plan.md +815 -0
  575. package/corpus/core/docs/content/locales/ko-KR/template-slides.md +293 -0
  576. package/corpus/core/docs/content/locales/ko-KR/template-videos.md +222 -0
  577. package/corpus/core/docs/content/locales/ko-KR/tracking.md +236 -0
  578. package/corpus/core/docs/content/locales/ko-KR/using-your-agent.md +71 -0
  579. package/corpus/core/docs/content/locales/ko-KR/voice-input.md +81 -0
  580. package/corpus/core/docs/content/locales/ko-KR/what-is-agent-native.md +202 -0
  581. package/corpus/core/docs/content/locales/ko-KR/workspace-connections.md +321 -0
  582. package/corpus/core/docs/content/locales/ko-KR/workspace-management.md +175 -0
  583. package/corpus/core/docs/content/locales/ko-KR/workspace.md +323 -0
  584. package/corpus/core/docs/content/locales/ko-KR/writing-agent-instructions.md +173 -0
  585. package/corpus/core/docs/content/locales/pt-BR/a2a-protocol.md +392 -0
  586. package/corpus/core/docs/content/locales/pt-BR/actions.md +583 -0
  587. package/corpus/core/docs/content/locales/pt-BR/agent-mentions.md +164 -0
  588. package/corpus/core/docs/content/locales/pt-BR/agent-surfaces.md +397 -0
  589. package/corpus/core/docs/content/locales/pt-BR/agent-teams.md +171 -0
  590. package/corpus/core/docs/content/locales/pt-BR/agent-web-surfaces.md +161 -0
  591. package/corpus/core/docs/content/locales/pt-BR/audit-log.md +111 -0
  592. package/corpus/core/docs/content/locales/pt-BR/authentication.md +332 -0
  593. package/corpus/core/docs/content/locales/pt-BR/automations.md +268 -0
  594. package/corpus/core/docs/content/locales/pt-BR/blueprint-installer.md +83 -0
  595. package/corpus/core/docs/content/locales/pt-BR/cli-adapters.md +129 -0
  596. package/corpus/core/docs/content/locales/pt-BR/client.md +398 -0
  597. package/corpus/core/docs/content/locales/pt-BR/cloneable-saas.md +114 -0
  598. package/corpus/core/docs/content/locales/pt-BR/code-agents-ui.md +436 -0
  599. package/corpus/core/docs/content/locales/pt-BR/components.md +368 -0
  600. package/corpus/core/docs/content/locales/pt-BR/context-awareness.md +373 -0
  601. package/corpus/core/docs/content/locales/pt-BR/creating-templates.md +411 -0
  602. package/corpus/core/docs/content/locales/pt-BR/cross-app-sso.md +185 -0
  603. package/corpus/core/docs/content/locales/pt-BR/database.md +183 -0
  604. package/corpus/core/docs/content/locales/pt-BR/deployment.md +349 -0
  605. package/corpus/core/docs/content/locales/pt-BR/dispatch.md +146 -0
  606. package/corpus/core/docs/content/locales/pt-BR/drop-in-agent.md +260 -0
  607. package/corpus/core/docs/content/locales/pt-BR/durable-resume.md +65 -0
  608. package/corpus/core/docs/content/locales/pt-BR/embedding-sdk.md +597 -0
  609. package/corpus/core/docs/content/locales/pt-BR/evals.md +155 -0
  610. package/corpus/core/docs/content/locales/pt-BR/extensions.md +360 -0
  611. package/corpus/core/docs/content/locales/pt-BR/external-agents.md +619 -0
  612. package/corpus/core/docs/content/locales/pt-BR/faq.md +142 -0
  613. package/corpus/core/docs/content/locales/pt-BR/file-uploads.md +122 -0
  614. package/corpus/core/docs/content/locales/pt-BR/frames.md +153 -0
  615. package/corpus/core/docs/content/locales/pt-BR/getting-started.md +199 -0
  616. package/corpus/core/docs/content/locales/pt-BR/harness-agents.md +349 -0
  617. package/corpus/core/docs/content/locales/pt-BR/human-approval.md +86 -0
  618. package/corpus/core/docs/content/locales/pt-BR/internationalization.md +67 -24
  619. package/corpus/core/docs/content/locales/pt-BR/key-concepts.md +312 -0
  620. package/corpus/core/docs/content/locales/pt-BR/local-file-mode.md +433 -0
  621. package/corpus/core/docs/content/locales/pt-BR/mcp-apps.md +147 -0
  622. package/corpus/core/docs/content/locales/pt-BR/mcp-clients.md +330 -0
  623. package/corpus/core/docs/content/locales/pt-BR/mcp-protocol.md +279 -0
  624. package/corpus/core/docs/content/locales/pt-BR/messaging.md +461 -0
  625. package/corpus/core/docs/content/locales/pt-BR/migration-workbench.md +33 -0
  626. package/corpus/core/docs/content/locales/pt-BR/multi-app-workspace.md +312 -0
  627. package/corpus/core/docs/content/locales/pt-BR/multi-tenancy.md +52 -0
  628. package/corpus/core/docs/content/locales/pt-BR/native-chat-ui.md +321 -0
  629. package/corpus/core/docs/content/locales/pt-BR/notifications.md +231 -0
  630. package/corpus/core/docs/content/locales/pt-BR/observability.md +294 -0
  631. package/corpus/core/docs/content/locales/pt-BR/observational-memory.md +77 -0
  632. package/corpus/core/docs/content/locales/pt-BR/onboarding.md +216 -0
  633. package/corpus/core/docs/content/locales/pt-BR/plan-plugin.md +200 -0
  634. package/corpus/core/docs/content/locales/pt-BR/pr-visual-recap.md +384 -0
  635. package/corpus/core/docs/content/locales/pt-BR/processors.md +106 -0
  636. package/corpus/core/docs/content/locales/pt-BR/progress.md +199 -0
  637. package/corpus/core/docs/content/locales/pt-BR/pure-agent-apps.md +39 -0
  638. package/corpus/core/docs/content/locales/pt-BR/real-time-collaboration.md +676 -0
  639. package/corpus/core/docs/content/locales/pt-BR/recurring-jobs.md +142 -0
  640. package/corpus/core/docs/content/locales/pt-BR/routing.md +79 -0
  641. package/corpus/core/docs/content/locales/pt-BR/sandbox-adapters.md +227 -0
  642. package/corpus/core/docs/content/locales/pt-BR/security.md +330 -0
  643. package/corpus/core/docs/content/locales/pt-BR/server.md +253 -0
  644. package/corpus/core/docs/content/locales/pt-BR/sharing.md +219 -0
  645. package/corpus/core/docs/content/locales/pt-BR/skills-guide.md +281 -0
  646. package/corpus/core/docs/content/locales/pt-BR/template-analytics.md +259 -0
  647. package/corpus/core/docs/content/locales/pt-BR/template-assets.md +303 -0
  648. package/corpus/core/docs/content/locales/pt-BR/template-brain.md +324 -0
  649. package/corpus/core/docs/content/locales/pt-BR/template-calendar.md +194 -0
  650. package/corpus/core/docs/content/locales/pt-BR/template-chat.md +129 -0
  651. package/corpus/core/docs/content/locales/pt-BR/template-clips.md +368 -0
  652. package/corpus/core/docs/content/locales/pt-BR/template-content.md +402 -0
  653. package/corpus/core/docs/content/locales/pt-BR/template-design.md +173 -0
  654. package/corpus/core/docs/content/locales/pt-BR/template-dispatch.md +220 -0
  655. package/corpus/core/docs/content/locales/pt-BR/template-forms.md +178 -0
  656. package/corpus/core/docs/content/locales/pt-BR/template-mail.md +239 -0
  657. package/corpus/core/docs/content/locales/pt-BR/template-plan.md +815 -0
  658. package/corpus/core/docs/content/locales/pt-BR/template-slides.md +293 -0
  659. package/corpus/core/docs/content/locales/pt-BR/template-videos.md +222 -0
  660. package/corpus/core/docs/content/locales/pt-BR/tracking.md +236 -0
  661. package/corpus/core/docs/content/locales/pt-BR/using-your-agent.md +71 -0
  662. package/corpus/core/docs/content/locales/pt-BR/voice-input.md +81 -0
  663. package/corpus/core/docs/content/locales/pt-BR/what-is-agent-native.md +202 -0
  664. package/corpus/core/docs/content/locales/pt-BR/workspace-connections.md +321 -0
  665. package/corpus/core/docs/content/locales/pt-BR/workspace-management.md +175 -0
  666. package/corpus/core/docs/content/locales/pt-BR/workspace.md +323 -0
  667. package/corpus/core/docs/content/locales/pt-BR/writing-agent-instructions.md +173 -0
  668. package/corpus/core/docs/content/locales/zh-CN/a2a-protocol.md +392 -0
  669. package/corpus/core/docs/content/locales/zh-CN/actions.md +583 -0
  670. package/corpus/core/docs/content/locales/zh-CN/agent-mentions.md +164 -0
  671. package/corpus/core/docs/content/locales/zh-CN/agent-surfaces.md +397 -0
  672. package/corpus/core/docs/content/locales/zh-CN/agent-teams.md +171 -0
  673. package/corpus/core/docs/content/locales/zh-CN/agent-web-surfaces.md +161 -0
  674. package/corpus/core/docs/content/locales/zh-CN/audit-log.md +111 -0
  675. package/corpus/core/docs/content/locales/zh-CN/authentication.md +332 -0
  676. package/corpus/core/docs/content/locales/zh-CN/automations.md +268 -0
  677. package/corpus/core/docs/content/locales/zh-CN/blueprint-installer.md +83 -0
  678. package/corpus/core/docs/content/locales/zh-CN/cli-adapters.md +129 -0
  679. package/corpus/core/docs/content/locales/zh-CN/client.md +398 -0
  680. package/corpus/core/docs/content/locales/zh-CN/cloneable-saas.md +114 -0
  681. package/corpus/core/docs/content/locales/zh-CN/code-agents-ui.md +436 -0
  682. package/corpus/core/docs/content/locales/zh-CN/components.md +368 -0
  683. package/corpus/core/docs/content/locales/zh-CN/context-awareness.md +373 -0
  684. package/corpus/core/docs/content/locales/zh-CN/creating-templates.md +411 -0
  685. package/corpus/core/docs/content/locales/zh-CN/cross-app-sso.md +188 -0
  686. package/corpus/core/docs/content/locales/zh-CN/database.md +183 -0
  687. package/corpus/core/docs/content/locales/zh-CN/deployment.md +349 -0
  688. package/corpus/core/docs/content/locales/zh-CN/dispatch.md +146 -0
  689. package/corpus/core/docs/content/locales/zh-CN/drop-in-agent.md +260 -0
  690. package/corpus/core/docs/content/locales/zh-CN/durable-resume.md +65 -0
  691. package/corpus/core/docs/content/locales/zh-CN/embedding-sdk.md +597 -0
  692. package/corpus/core/docs/content/locales/zh-CN/evals.md +155 -0
  693. package/corpus/core/docs/content/locales/zh-CN/extensions.md +360 -0
  694. package/corpus/core/docs/content/locales/zh-CN/external-agents.md +619 -0
  695. package/corpus/core/docs/content/locales/zh-CN/faq.md +142 -0
  696. package/corpus/core/docs/content/locales/zh-CN/file-uploads.md +122 -0
  697. package/corpus/core/docs/content/locales/zh-CN/frames.md +153 -0
  698. package/corpus/core/docs/content/locales/zh-CN/getting-started.md +199 -0
  699. package/corpus/core/docs/content/locales/zh-CN/harness-agents.md +349 -0
  700. package/corpus/core/docs/content/locales/zh-CN/human-approval.md +86 -0
  701. package/corpus/core/docs/content/locales/zh-CN/internationalization.md +67 -24
  702. package/corpus/core/docs/content/locales/zh-CN/key-concepts.md +312 -0
  703. package/corpus/core/docs/content/locales/zh-CN/local-file-mode.md +433 -0
  704. package/corpus/core/docs/content/locales/zh-CN/mcp-apps.md +147 -0
  705. package/corpus/core/docs/content/locales/zh-CN/mcp-clients.md +330 -0
  706. package/corpus/core/docs/content/locales/zh-CN/mcp-protocol.md +279 -0
  707. package/corpus/core/docs/content/locales/zh-CN/messaging.md +461 -0
  708. package/corpus/core/docs/content/locales/zh-CN/migration-workbench.md +33 -0
  709. package/corpus/core/docs/content/locales/zh-CN/multi-app-workspace.md +312 -0
  710. package/corpus/core/docs/content/locales/zh-CN/multi-tenancy.md +52 -0
  711. package/corpus/core/docs/content/locales/zh-CN/native-chat-ui.md +321 -0
  712. package/corpus/core/docs/content/locales/zh-CN/notifications.md +231 -0
  713. package/corpus/core/docs/content/locales/zh-CN/observability.md +294 -0
  714. package/corpus/core/docs/content/locales/zh-CN/observational-memory.md +77 -0
  715. package/corpus/core/docs/content/locales/zh-CN/onboarding.md +216 -0
  716. package/corpus/core/docs/content/locales/zh-CN/plan-plugin.md +200 -0
  717. package/corpus/core/docs/content/locales/zh-CN/pr-visual-recap.md +384 -0
  718. package/corpus/core/docs/content/locales/zh-CN/processors.md +106 -0
  719. package/corpus/core/docs/content/locales/zh-CN/progress.md +199 -0
  720. package/corpus/core/docs/content/locales/zh-CN/pure-agent-apps.md +39 -0
  721. package/corpus/core/docs/content/locales/zh-CN/real-time-collaboration.md +676 -0
  722. package/corpus/core/docs/content/locales/zh-CN/recurring-jobs.md +142 -0
  723. package/corpus/core/docs/content/locales/zh-CN/routing.md +79 -0
  724. package/corpus/core/docs/content/locales/zh-CN/sandbox-adapters.md +227 -0
  725. package/corpus/core/docs/content/locales/zh-CN/security.md +330 -0
  726. package/corpus/core/docs/content/locales/zh-CN/server.md +253 -0
  727. package/corpus/core/docs/content/locales/zh-CN/sharing.md +219 -0
  728. package/corpus/core/docs/content/locales/zh-CN/skills-guide.md +281 -0
  729. package/corpus/core/docs/content/locales/zh-CN/template-analytics.md +259 -0
  730. package/corpus/core/docs/content/locales/zh-CN/template-assets.md +303 -0
  731. package/corpus/core/docs/content/locales/zh-CN/template-brain.md +324 -0
  732. package/corpus/core/docs/content/locales/zh-CN/template-calendar.md +194 -0
  733. package/corpus/core/docs/content/locales/zh-CN/template-chat.md +129 -0
  734. package/corpus/core/docs/content/locales/zh-CN/template-clips.md +368 -0
  735. package/corpus/core/docs/content/locales/zh-CN/template-content.md +402 -0
  736. package/corpus/core/docs/content/locales/zh-CN/template-design.md +173 -0
  737. package/corpus/core/docs/content/locales/zh-CN/template-dispatch.md +220 -0
  738. package/corpus/core/docs/content/locales/zh-CN/template-forms.md +178 -0
  739. package/corpus/core/docs/content/locales/zh-CN/template-mail.md +239 -0
  740. package/corpus/core/docs/content/locales/zh-CN/template-plan.md +814 -0
  741. package/corpus/core/docs/content/locales/zh-CN/template-slides.md +293 -0
  742. package/corpus/core/docs/content/locales/zh-CN/template-videos.md +222 -0
  743. package/corpus/core/docs/content/locales/zh-CN/tracking.md +236 -0
  744. package/corpus/core/docs/content/locales/zh-CN/using-your-agent.md +71 -0
  745. package/corpus/core/docs/content/locales/zh-CN/voice-input.md +81 -0
  746. package/corpus/core/docs/content/locales/zh-CN/what-is-agent-native.md +202 -0
  747. package/corpus/core/docs/content/locales/zh-CN/workspace-connections.md +321 -0
  748. package/corpus/core/docs/content/locales/zh-CN/workspace-management.md +175 -0
  749. package/corpus/core/docs/content/locales/zh-CN/workspace.md +323 -0
  750. package/corpus/core/docs/content/locales/zh-CN/writing-agent-instructions.md +173 -0
  751. package/corpus/core/package.json +1 -1
  752. package/corpus/core/src/agent/run-store.ts +13 -0
  753. package/corpus/core/src/client/components/CodeRequiredDialog.tsx +37 -23
  754. package/corpus/core/src/client/extensions/EmbeddedExtension.tsx +13 -9
  755. package/corpus/core/src/client/extensions/ExtensionEditor.tsx +43 -33
  756. package/corpus/core/src/client/extensions/ExtensionSlot.tsx +16 -12
  757. package/corpus/core/src/client/extensions/ExtensionsListPage.tsx +52 -37
  758. package/corpus/core/src/client/i18n.tsx +87 -2
  759. package/corpus/core/src/client/integrations/IntegrationCard.tsx +13 -8
  760. package/corpus/core/src/client/integrations/IntegrationsPanel.tsx +34 -30
  761. package/corpus/core/src/client/observability/ObservabilityDashboard.tsx +90 -65
  762. package/corpus/core/src/client/org/RequireActiveOrg.tsx +24 -18
  763. package/corpus/core/src/client/org/TeamPage.tsx +37 -26
  764. package/corpus/core/src/client/progress/RunsTray.tsx +67 -33
  765. package/corpus/core/src/extensions/routes.ts +45 -25
  766. package/corpus/core/src/templates/default/app/i18n/ar-SA.ts +356 -0
  767. package/corpus/core/src/templates/default/app/i18n/de-DE.ts +332 -0
  768. package/corpus/core/src/templates/default/app/i18n/en-US.ts +303 -0
  769. package/corpus/core/src/templates/default/app/i18n/es-ES.ts +339 -0
  770. package/corpus/core/src/templates/default/app/i18n/fr-FR.ts +339 -0
  771. package/corpus/core/src/templates/default/app/i18n/hi-IN.ts +332 -0
  772. package/corpus/core/src/templates/default/app/i18n/index.ts +18 -0
  773. package/corpus/core/src/templates/default/app/i18n/ja-JP.ts +326 -0
  774. package/corpus/core/src/templates/default/app/i18n/ko-KR.ts +326 -0
  775. package/corpus/core/src/templates/default/app/i18n/pt-BR.ts +339 -0
  776. package/corpus/core/src/templates/default/app/i18n/zh-CN.ts +324 -0
  777. package/corpus/core/src/templates/default/app/root.tsx +109 -6
  778. package/corpus/core/src/templates/workspace-core/.agents/skills/extensions/references/api.md +34 -12
  779. package/corpus/templates/analytics/app/components/layout/NewAnalysisDialog.tsx +16 -10
  780. package/corpus/templates/analytics/app/components/layout/NewDashboardDialog.tsx +9 -4
  781. package/corpus/templates/analytics/app/i18n-data.ts +16 -0
  782. package/corpus/templates/assets/app/i18n-data.ts +101 -0
  783. package/corpus/templates/assets/app/routes/asset.$id.tsx +60 -36
  784. package/corpus/templates/assets/app/routes/brand-kits._index.tsx +19 -16
  785. package/corpus/templates/assets/app/routes/settings.tsx +58 -37
  786. package/corpus/templates/brain/app/i18n-data.ts +114 -0
  787. package/corpus/templates/brain/app/routes/_index.tsx +7 -4
  788. package/corpus/templates/brain/app/routes/ops.tsx +88 -60
  789. package/corpus/templates/brain/app/routes/search.tsx +97 -56
  790. package/corpus/templates/calendar/app/components/calendar/DeleteEventDialog.tsx +33 -21
  791. package/corpus/templates/calendar/app/components/calendar/EventDialog.tsx +25 -30
  792. package/corpus/templates/calendar/app/i18n/index.ts +3 -24
  793. package/corpus/templates/calendar/app/i18n-data.ts +61 -0
  794. package/corpus/templates/calendar/app/pages/Settings.tsx +23 -23
  795. package/corpus/templates/chat/app/i18n-data.ts +78 -0
  796. package/corpus/templates/chat/app/routes/database.tsx +3 -1
  797. package/corpus/templates/chat/app/routes/observability.tsx +3 -2
  798. package/corpus/templates/chat/app/routes/team.tsx +4 -2
  799. package/corpus/templates/clips/app/i18n/ar-SA.ts +17 -0
  800. package/corpus/templates/clips/app/i18n/de-DE.ts +17 -0
  801. package/corpus/templates/clips/app/i18n/en-US.ts +17 -0
  802. package/corpus/templates/clips/app/i18n/es-ES.ts +17 -0
  803. package/corpus/templates/clips/app/i18n/fr-FR.ts +17 -0
  804. package/corpus/templates/clips/app/i18n/hi-IN.ts +17 -0
  805. package/corpus/templates/clips/app/i18n/ja-JP.ts +17 -0
  806. package/corpus/templates/clips/app/i18n/ko-KR.ts +17 -0
  807. package/corpus/templates/clips/app/i18n/pt-BR.ts +17 -0
  808. package/corpus/templates/clips/app/i18n/zh-CN.ts +15 -0
  809. package/corpus/templates/clips/app/routes/_app.trash.tsx +33 -20
  810. package/corpus/templates/content/app/i18n-data.ts +100 -0
  811. package/corpus/templates/content/app/routes/_app.team.tsx +7 -6
  812. package/corpus/templates/design/app/i18n-data.ts +58 -0
  813. package/corpus/templates/design/app/pages/Present.tsx +4 -3
  814. package/corpus/templates/design/app/routes/team.tsx +3 -1
  815. package/corpus/templates/forms/app/i18n/ar-SA.ts +88 -0
  816. package/corpus/templates/forms/app/i18n/de-DE.ts +88 -0
  817. package/corpus/templates/forms/app/i18n/en-US.ts +88 -0
  818. package/corpus/templates/forms/app/i18n/es-ES.ts +90 -0
  819. package/corpus/templates/forms/app/i18n/fr-FR.ts +88 -0
  820. package/corpus/templates/forms/app/i18n/hi-IN.ts +88 -0
  821. package/corpus/templates/forms/app/i18n/ja-JP.ts +88 -0
  822. package/corpus/templates/forms/app/i18n/ko-KR.ts +88 -0
  823. package/corpus/templates/forms/app/i18n/pt-BR.ts +88 -0
  824. package/corpus/templates/forms/app/i18n/zh-CN.ts +88 -0
  825. package/corpus/templates/forms/app/pages/FormsListPage.tsx +92 -63
  826. package/corpus/templates/forms/app/pages/ResponsesPage.tsx +37 -20
  827. package/corpus/templates/forms/app/routes/_index.tsx +15 -14
  828. package/corpus/templates/macros/app/i18n/ar-SA.ts +22 -0
  829. package/corpus/templates/macros/app/i18n/de-DE.ts +22 -0
  830. package/corpus/templates/macros/app/i18n/en-US.ts +22 -0
  831. package/corpus/templates/macros/app/i18n/es-ES.ts +22 -0
  832. package/corpus/templates/macros/app/i18n/fr-FR.ts +22 -0
  833. package/corpus/templates/macros/app/i18n/hi-IN.ts +22 -0
  834. package/corpus/templates/macros/app/i18n/ja-JP.ts +22 -0
  835. package/corpus/templates/macros/app/i18n/ko-KR.ts +22 -0
  836. package/corpus/templates/macros/app/i18n/pt-BR.ts +22 -0
  837. package/corpus/templates/macros/app/i18n/zh-CN.ts +22 -0
  838. package/corpus/templates/macros/app/routes/analytics.tsx +54 -27
  839. package/corpus/templates/mail/app/components/layout/CommandPalette.tsx +34 -26
  840. package/corpus/templates/mail/app/i18n/ar-SA.ts +30 -0
  841. package/corpus/templates/mail/app/i18n/de-DE.ts +30 -0
  842. package/corpus/templates/mail/app/i18n/en-US.ts +30 -0
  843. package/corpus/templates/mail/app/i18n/es-ES.ts +30 -0
  844. package/corpus/templates/mail/app/i18n/fr-FR.ts +30 -0
  845. package/corpus/templates/mail/app/i18n/hi-IN.ts +30 -0
  846. package/corpus/templates/mail/app/i18n/ja-JP.ts +30 -0
  847. package/corpus/templates/mail/app/i18n/ko-KR.ts +30 -0
  848. package/corpus/templates/mail/app/i18n/pt-BR.ts +30 -0
  849. package/corpus/templates/mail/app/i18n/zh-CN.ts +30 -0
  850. package/corpus/templates/mail/app/pages/NotFound.tsx +6 -2
  851. package/corpus/templates/plan/app/components/plan/GuestModeBanner.tsx +4 -3
  852. package/corpus/templates/plan/app/i18n/ar-SA.ts +17 -0
  853. package/corpus/templates/plan/app/i18n/de-DE.ts +17 -0
  854. package/corpus/templates/plan/app/i18n/en-US.ts +17 -0
  855. package/corpus/templates/plan/app/i18n/es-ES.ts +17 -0
  856. package/corpus/templates/plan/app/i18n/fr-FR.ts +17 -0
  857. package/corpus/templates/plan/app/i18n/hi-IN.ts +17 -0
  858. package/corpus/templates/plan/app/i18n/ja-JP.ts +17 -0
  859. package/corpus/templates/plan/app/i18n/ko-KR.ts +17 -0
  860. package/corpus/templates/plan/app/i18n/pt-BR.ts +17 -0
  861. package/corpus/templates/plan/app/i18n/zh-CN.ts +17 -0
  862. package/corpus/templates/plan/app/pages/PlanChatPage.tsx +12 -13
  863. package/corpus/templates/slides/app/i18n/ar-SA.ts +11 -0
  864. package/corpus/templates/slides/app/i18n/de-DE.ts +11 -0
  865. package/corpus/templates/slides/app/i18n/en-US.ts +11 -0
  866. package/corpus/templates/slides/app/i18n/es-ES.ts +11 -0
  867. package/corpus/templates/slides/app/i18n/fr-FR.ts +11 -0
  868. package/corpus/templates/slides/app/i18n/hi-IN.ts +11 -0
  869. package/corpus/templates/slides/app/i18n/ja-JP.ts +11 -0
  870. package/corpus/templates/slides/app/i18n/ko-KR.ts +11 -0
  871. package/corpus/templates/slides/app/i18n/pt-BR.ts +11 -0
  872. package/corpus/templates/slides/app/i18n/zh-CN.ts +11 -0
  873. package/corpus/templates/slides/app/pages/DesignSystems.tsx +10 -9
  874. package/corpus/templates/slides/app/pages/NotFound.tsx +4 -2
  875. package/corpus/templates/videos/app/i18n/ar-SA.ts +14 -0
  876. package/corpus/templates/videos/app/i18n/de-DE.ts +14 -0
  877. package/corpus/templates/videos/app/i18n/en-US.ts +14 -0
  878. package/corpus/templates/videos/app/i18n/es-ES.ts +14 -0
  879. package/corpus/templates/videos/app/i18n/fr-FR.ts +14 -0
  880. package/corpus/templates/videos/app/i18n/hi-IN.ts +14 -0
  881. package/corpus/templates/videos/app/i18n/ja-JP.ts +14 -0
  882. package/corpus/templates/videos/app/i18n/ko-KR.ts +14 -0
  883. package/corpus/templates/videos/app/i18n/pt-BR.ts +14 -0
  884. package/corpus/templates/videos/app/i18n/zh-CN.ts +14 -0
  885. package/corpus/templates/videos/app/pages/DesignSystems.tsx +10 -9
  886. package/corpus/templates/videos/app/pages/NewComposition.tsx +9 -9
  887. package/corpus/templates/videos/app/pages/NotFound.tsx +4 -2
  888. package/dist/agent/run-store.d.ts +13 -0
  889. package/dist/agent/run-store.d.ts.map +1 -1
  890. package/dist/agent/run-store.js +13 -0
  891. package/dist/agent/run-store.js.map +1 -1
  892. package/dist/client/components/CodeRequiredDialog.d.ts.map +1 -1
  893. package/dist/client/components/CodeRequiredDialog.js +12 -9
  894. package/dist/client/components/CodeRequiredDialog.js.map +1 -1
  895. package/dist/client/extensions/EmbeddedExtension.d.ts.map +1 -1
  896. package/dist/client/extensions/EmbeddedExtension.js +4 -2
  897. package/dist/client/extensions/EmbeddedExtension.js.map +1 -1
  898. package/dist/client/extensions/ExtensionEditor.d.ts.map +1 -1
  899. package/dist/client/extensions/ExtensionEditor.js +22 -12
  900. package/dist/client/extensions/ExtensionEditor.js.map +1 -1
  901. package/dist/client/extensions/ExtensionSlot.d.ts.map +1 -1
  902. package/dist/client/extensions/ExtensionSlot.js +9 -7
  903. package/dist/client/extensions/ExtensionSlot.js.map +1 -1
  904. package/dist/client/extensions/ExtensionsListPage.d.ts.map +1 -1
  905. package/dist/client/extensions/ExtensionsListPage.js +28 -15
  906. package/dist/client/extensions/ExtensionsListPage.js.map +1 -1
  907. package/dist/client/i18n.d.ts +1 -1
  908. package/dist/client/i18n.d.ts.map +1 -1
  909. package/dist/client/i18n.js +68 -2
  910. package/dist/client/i18n.js.map +1 -1
  911. package/dist/client/integrations/IntegrationCard.d.ts.map +1 -1
  912. package/dist/client/integrations/IntegrationCard.js +8 -4
  913. package/dist/client/integrations/IntegrationCard.js.map +1 -1
  914. package/dist/client/integrations/IntegrationsPanel.d.ts.map +1 -1
  915. package/dist/client/integrations/IntegrationsPanel.js +15 -8
  916. package/dist/client/integrations/IntegrationsPanel.js.map +1 -1
  917. package/dist/client/observability/ObservabilityDashboard.d.ts.map +1 -1
  918. package/dist/client/observability/ObservabilityDashboard.js +40 -17
  919. package/dist/client/observability/ObservabilityDashboard.js.map +1 -1
  920. package/dist/client/org/RequireActiveOrg.d.ts.map +1 -1
  921. package/dist/client/org/RequireActiveOrg.js +14 -8
  922. package/dist/client/org/RequireActiveOrg.js.map +1 -1
  923. package/dist/client/org/TeamPage.d.ts.map +1 -1
  924. package/dist/client/org/TeamPage.js +21 -14
  925. package/dist/client/org/TeamPage.js.map +1 -1
  926. package/dist/client/progress/RunsTray.d.ts.map +1 -1
  927. package/dist/client/progress/RunsTray.js +49 -30
  928. package/dist/client/progress/RunsTray.js.map +1 -1
  929. package/dist/extensions/routes.d.ts.map +1 -1
  930. package/dist/extensions/routes.js +38 -24
  931. package/dist/extensions/routes.js.map +1 -1
  932. package/dist/templates/default/app/i18n/ar-SA.ts +356 -0
  933. package/dist/templates/default/app/i18n/de-DE.ts +332 -0
  934. package/dist/templates/default/app/i18n/en-US.ts +303 -0
  935. package/dist/templates/default/app/i18n/es-ES.ts +339 -0
  936. package/dist/templates/default/app/i18n/fr-FR.ts +339 -0
  937. package/dist/templates/default/app/i18n/hi-IN.ts +332 -0
  938. package/dist/templates/default/app/i18n/index.ts +18 -0
  939. package/dist/templates/default/app/i18n/ja-JP.ts +326 -0
  940. package/dist/templates/default/app/i18n/ko-KR.ts +326 -0
  941. package/dist/templates/default/app/i18n/pt-BR.ts +339 -0
  942. package/dist/templates/default/app/i18n/zh-CN.ts +324 -0
  943. package/dist/templates/default/app/root.tsx +109 -6
  944. package/dist/templates/workspace-core/.agents/skills/extensions/references/api.md +34 -12
  945. package/docs/content/extensions.md +16 -0
  946. package/docs/content/locales/ar-SA/a2a-protocol.md +392 -0
  947. package/docs/content/locales/ar-SA/actions.md +583 -0
  948. package/docs/content/locales/ar-SA/agent-mentions.md +164 -0
  949. package/docs/content/locales/ar-SA/agent-surfaces.md +397 -0
  950. package/docs/content/locales/ar-SA/agent-teams.md +171 -0
  951. package/docs/content/locales/ar-SA/agent-web-surfaces.md +161 -0
  952. package/docs/content/locales/ar-SA/audit-log.md +111 -0
  953. package/docs/content/locales/ar-SA/authentication.md +332 -0
  954. package/docs/content/locales/ar-SA/automations.md +268 -0
  955. package/docs/content/locales/ar-SA/blueprint-installer.md +83 -0
  956. package/docs/content/locales/ar-SA/cli-adapters.md +129 -0
  957. package/docs/content/locales/ar-SA/client.md +398 -0
  958. package/docs/content/locales/ar-SA/cloneable-saas.md +114 -0
  959. package/docs/content/locales/ar-SA/code-agents-ui.md +436 -0
  960. package/docs/content/locales/ar-SA/components.md +368 -0
  961. package/docs/content/locales/ar-SA/context-awareness.md +373 -0
  962. package/docs/content/locales/ar-SA/creating-templates.md +411 -0
  963. package/docs/content/locales/ar-SA/cross-app-sso.md +185 -0
  964. package/docs/content/locales/ar-SA/database.md +183 -0
  965. package/docs/content/locales/ar-SA/deployment.md +349 -0
  966. package/docs/content/locales/ar-SA/dispatch.md +146 -0
  967. package/docs/content/locales/ar-SA/drop-in-agent.md +260 -0
  968. package/docs/content/locales/ar-SA/durable-resume.md +65 -0
  969. package/docs/content/locales/ar-SA/embedding-sdk.md +597 -0
  970. package/docs/content/locales/ar-SA/evals.md +155 -0
  971. package/docs/content/locales/ar-SA/extensions.md +360 -0
  972. package/docs/content/locales/ar-SA/external-agents.md +619 -0
  973. package/docs/content/locales/ar-SA/faq.md +142 -0
  974. package/docs/content/locales/ar-SA/file-uploads.md +122 -0
  975. package/docs/content/locales/ar-SA/frames.md +153 -0
  976. package/docs/content/locales/ar-SA/getting-started.md +199 -0
  977. package/docs/content/locales/ar-SA/harness-agents.md +349 -0
  978. package/docs/content/locales/ar-SA/human-approval.md +86 -0
  979. package/docs/content/locales/ar-SA/internationalization.md +68 -25
  980. package/docs/content/locales/ar-SA/key-concepts.md +312 -0
  981. package/docs/content/locales/ar-SA/local-file-mode.md +433 -0
  982. package/docs/content/locales/ar-SA/mcp-apps.md +147 -0
  983. package/docs/content/locales/ar-SA/mcp-clients.md +330 -0
  984. package/docs/content/locales/ar-SA/mcp-protocol.md +279 -0
  985. package/docs/content/locales/ar-SA/messaging.md +461 -0
  986. package/docs/content/locales/ar-SA/migration-workbench.md +33 -0
  987. package/docs/content/locales/ar-SA/multi-app-workspace.md +312 -0
  988. package/docs/content/locales/ar-SA/multi-tenancy.md +52 -0
  989. package/docs/content/locales/ar-SA/native-chat-ui.md +321 -0
  990. package/docs/content/locales/ar-SA/notifications.md +231 -0
  991. package/docs/content/locales/ar-SA/observability.md +294 -0
  992. package/docs/content/locales/ar-SA/observational-memory.md +77 -0
  993. package/docs/content/locales/ar-SA/onboarding.md +216 -0
  994. package/docs/content/locales/ar-SA/plan-plugin.md +200 -0
  995. package/docs/content/locales/ar-SA/pr-visual-recap.md +384 -0
  996. package/docs/content/locales/ar-SA/processors.md +106 -0
  997. package/docs/content/locales/ar-SA/progress.md +199 -0
  998. package/docs/content/locales/ar-SA/pure-agent-apps.md +39 -0
  999. package/docs/content/locales/ar-SA/real-time-collaboration.md +676 -0
  1000. package/docs/content/locales/ar-SA/recurring-jobs.md +142 -0
  1001. package/docs/content/locales/ar-SA/routing.md +79 -0
  1002. package/docs/content/locales/ar-SA/sandbox-adapters.md +227 -0
  1003. package/docs/content/locales/ar-SA/security.md +330 -0
  1004. package/docs/content/locales/ar-SA/server.md +253 -0
  1005. package/docs/content/locales/ar-SA/sharing.md +219 -0
  1006. package/docs/content/locales/ar-SA/skills-guide.md +281 -0
  1007. package/docs/content/locales/ar-SA/template-analytics.md +259 -0
  1008. package/docs/content/locales/ar-SA/template-assets.md +303 -0
  1009. package/docs/content/locales/ar-SA/template-brain.md +324 -0
  1010. package/docs/content/locales/ar-SA/template-calendar.md +194 -0
  1011. package/docs/content/locales/ar-SA/template-chat.md +129 -0
  1012. package/docs/content/locales/ar-SA/template-clips.md +368 -0
  1013. package/docs/content/locales/ar-SA/template-content.md +402 -0
  1014. package/docs/content/locales/ar-SA/template-design.md +173 -0
  1015. package/docs/content/locales/ar-SA/template-dispatch.md +220 -0
  1016. package/docs/content/locales/ar-SA/template-forms.md +178 -0
  1017. package/docs/content/locales/ar-SA/template-mail.md +239 -0
  1018. package/docs/content/locales/ar-SA/template-plan.md +815 -0
  1019. package/docs/content/locales/ar-SA/template-slides.md +293 -0
  1020. package/docs/content/locales/ar-SA/template-videos.md +222 -0
  1021. package/docs/content/locales/ar-SA/tracking.md +236 -0
  1022. package/docs/content/locales/ar-SA/using-your-agent.md +71 -0
  1023. package/docs/content/locales/ar-SA/voice-input.md +81 -0
  1024. package/docs/content/locales/ar-SA/what-is-agent-native.md +202 -0
  1025. package/docs/content/locales/ar-SA/workspace-connections.md +321 -0
  1026. package/docs/content/locales/ar-SA/workspace-management.md +175 -0
  1027. package/docs/content/locales/ar-SA/workspace.md +323 -0
  1028. package/docs/content/locales/ar-SA/writing-agent-instructions.md +173 -0
  1029. package/docs/content/locales/de-DE/a2a-protocol.md +392 -0
  1030. package/docs/content/locales/de-DE/actions.md +583 -0
  1031. package/docs/content/locales/de-DE/agent-mentions.md +164 -0
  1032. package/docs/content/locales/de-DE/agent-surfaces.md +397 -0
  1033. package/docs/content/locales/de-DE/agent-teams.md +171 -0
  1034. package/docs/content/locales/de-DE/agent-web-surfaces.md +161 -0
  1035. package/docs/content/locales/de-DE/audit-log.md +111 -0
  1036. package/docs/content/locales/de-DE/authentication.md +332 -0
  1037. package/docs/content/locales/de-DE/automations.md +268 -0
  1038. package/docs/content/locales/de-DE/blueprint-installer.md +83 -0
  1039. package/docs/content/locales/de-DE/cli-adapters.md +129 -0
  1040. package/docs/content/locales/de-DE/client.md +398 -0
  1041. package/docs/content/locales/de-DE/cloneable-saas.md +114 -0
  1042. package/docs/content/locales/de-DE/code-agents-ui.md +436 -0
  1043. package/docs/content/locales/de-DE/components.md +368 -0
  1044. package/docs/content/locales/de-DE/context-awareness.md +373 -0
  1045. package/docs/content/locales/de-DE/creating-templates.md +411 -0
  1046. package/docs/content/locales/de-DE/cross-app-sso.md +185 -0
  1047. package/docs/content/locales/de-DE/database.md +183 -0
  1048. package/docs/content/locales/de-DE/deployment.md +349 -0
  1049. package/docs/content/locales/de-DE/dispatch.md +146 -0
  1050. package/docs/content/locales/de-DE/drop-in-agent.md +260 -0
  1051. package/docs/content/locales/de-DE/durable-resume.md +65 -0
  1052. package/docs/content/locales/de-DE/embedding-sdk.md +597 -0
  1053. package/docs/content/locales/de-DE/evals.md +155 -0
  1054. package/docs/content/locales/de-DE/extensions.md +360 -0
  1055. package/docs/content/locales/de-DE/external-agents.md +619 -0
  1056. package/docs/content/locales/de-DE/faq.md +142 -0
  1057. package/docs/content/locales/de-DE/file-uploads.md +122 -0
  1058. package/docs/content/locales/de-DE/frames.md +153 -0
  1059. package/docs/content/locales/de-DE/getting-started.md +199 -0
  1060. package/docs/content/locales/de-DE/harness-agents.md +349 -0
  1061. package/docs/content/locales/de-DE/human-approval.md +86 -0
  1062. package/docs/content/locales/de-DE/internationalization.md +65 -22
  1063. package/docs/content/locales/de-DE/key-concepts.md +312 -0
  1064. package/docs/content/locales/de-DE/local-file-mode.md +433 -0
  1065. package/docs/content/locales/de-DE/mcp-apps.md +147 -0
  1066. package/docs/content/locales/de-DE/mcp-clients.md +330 -0
  1067. package/docs/content/locales/de-DE/mcp-protocol.md +279 -0
  1068. package/docs/content/locales/de-DE/messaging.md +461 -0
  1069. package/docs/content/locales/de-DE/migration-workbench.md +33 -0
  1070. package/docs/content/locales/de-DE/multi-app-workspace.md +312 -0
  1071. package/docs/content/locales/de-DE/multi-tenancy.md +52 -0
  1072. package/docs/content/locales/de-DE/native-chat-ui.md +321 -0
  1073. package/docs/content/locales/de-DE/notifications.md +231 -0
  1074. package/docs/content/locales/de-DE/observability.md +294 -0
  1075. package/docs/content/locales/de-DE/observational-memory.md +77 -0
  1076. package/docs/content/locales/de-DE/onboarding.md +216 -0
  1077. package/docs/content/locales/de-DE/plan-plugin.md +200 -0
  1078. package/docs/content/locales/de-DE/pr-visual-recap.md +384 -0
  1079. package/docs/content/locales/de-DE/processors.md +106 -0
  1080. package/docs/content/locales/de-DE/progress.md +199 -0
  1081. package/docs/content/locales/de-DE/pure-agent-apps.md +39 -0
  1082. package/docs/content/locales/de-DE/real-time-collaboration.md +676 -0
  1083. package/docs/content/locales/de-DE/recurring-jobs.md +142 -0
  1084. package/docs/content/locales/de-DE/routing.md +79 -0
  1085. package/docs/content/locales/de-DE/sandbox-adapters.md +227 -0
  1086. package/docs/content/locales/de-DE/security.md +330 -0
  1087. package/docs/content/locales/de-DE/server.md +253 -0
  1088. package/docs/content/locales/de-DE/sharing.md +219 -0
  1089. package/docs/content/locales/de-DE/skills-guide.md +281 -0
  1090. package/docs/content/locales/de-DE/template-analytics.md +259 -0
  1091. package/docs/content/locales/de-DE/template-assets.md +303 -0
  1092. package/docs/content/locales/de-DE/template-brain.md +324 -0
  1093. package/docs/content/locales/de-DE/template-calendar.md +194 -0
  1094. package/docs/content/locales/de-DE/template-chat.md +129 -0
  1095. package/docs/content/locales/de-DE/template-clips.md +368 -0
  1096. package/docs/content/locales/de-DE/template-content.md +402 -0
  1097. package/docs/content/locales/de-DE/template-design.md +173 -0
  1098. package/docs/content/locales/de-DE/template-dispatch.md +220 -0
  1099. package/docs/content/locales/de-DE/template-forms.md +178 -0
  1100. package/docs/content/locales/de-DE/template-mail.md +239 -0
  1101. package/docs/content/locales/de-DE/template-plan.md +814 -0
  1102. package/docs/content/locales/de-DE/template-slides.md +293 -0
  1103. package/docs/content/locales/de-DE/template-videos.md +222 -0
  1104. package/docs/content/locales/de-DE/tracking.md +236 -0
  1105. package/docs/content/locales/de-DE/using-your-agent.md +71 -0
  1106. package/docs/content/locales/de-DE/voice-input.md +81 -0
  1107. package/docs/content/locales/de-DE/what-is-agent-native.md +202 -0
  1108. package/docs/content/locales/de-DE/workspace-connections.md +321 -0
  1109. package/docs/content/locales/de-DE/workspace-management.md +175 -0
  1110. package/docs/content/locales/de-DE/workspace.md +323 -0
  1111. package/docs/content/locales/de-DE/writing-agent-instructions.md +173 -0
  1112. package/docs/content/locales/es-ES/a2a-protocol.md +392 -0
  1113. package/docs/content/locales/es-ES/actions.md +583 -0
  1114. package/docs/content/locales/es-ES/agent-mentions.md +164 -0
  1115. package/docs/content/locales/es-ES/agent-surfaces.md +397 -0
  1116. package/docs/content/locales/es-ES/agent-teams.md +171 -0
  1117. package/docs/content/locales/es-ES/agent-web-surfaces.md +161 -0
  1118. package/docs/content/locales/es-ES/audit-log.md +111 -0
  1119. package/docs/content/locales/es-ES/authentication.md +332 -0
  1120. package/docs/content/locales/es-ES/automations.md +268 -0
  1121. package/docs/content/locales/es-ES/blueprint-installer.md +83 -0
  1122. package/docs/content/locales/es-ES/cli-adapters.md +129 -0
  1123. package/docs/content/locales/es-ES/client.md +398 -0
  1124. package/docs/content/locales/es-ES/cloneable-saas.md +114 -0
  1125. package/docs/content/locales/es-ES/code-agents-ui.md +436 -0
  1126. package/docs/content/locales/es-ES/components.md +368 -0
  1127. package/docs/content/locales/es-ES/context-awareness.md +373 -0
  1128. package/docs/content/locales/es-ES/creating-templates.md +411 -0
  1129. package/docs/content/locales/es-ES/cross-app-sso.md +185 -0
  1130. package/docs/content/locales/es-ES/database.md +183 -0
  1131. package/docs/content/locales/es-ES/deployment.md +349 -0
  1132. package/docs/content/locales/es-ES/dispatch.md +146 -0
  1133. package/docs/content/locales/es-ES/drop-in-agent.md +260 -0
  1134. package/docs/content/locales/es-ES/durable-resume.md +65 -0
  1135. package/docs/content/locales/es-ES/embedding-sdk.md +597 -0
  1136. package/docs/content/locales/es-ES/evals.md +155 -0
  1137. package/docs/content/locales/es-ES/extensions.md +360 -0
  1138. package/docs/content/locales/es-ES/external-agents.md +619 -0
  1139. package/docs/content/locales/es-ES/faq.md +142 -0
  1140. package/docs/content/locales/es-ES/file-uploads.md +122 -0
  1141. package/docs/content/locales/es-ES/frames.md +153 -0
  1142. package/docs/content/locales/es-ES/getting-started.md +199 -0
  1143. package/docs/content/locales/es-ES/harness-agents.md +349 -0
  1144. package/docs/content/locales/es-ES/human-approval.md +86 -0
  1145. package/docs/content/locales/es-ES/internationalization.md +67 -24
  1146. package/docs/content/locales/es-ES/key-concepts.md +312 -0
  1147. package/docs/content/locales/es-ES/local-file-mode.md +433 -0
  1148. package/docs/content/locales/es-ES/mcp-apps.md +147 -0
  1149. package/docs/content/locales/es-ES/mcp-clients.md +330 -0
  1150. package/docs/content/locales/es-ES/mcp-protocol.md +279 -0
  1151. package/docs/content/locales/es-ES/messaging.md +461 -0
  1152. package/docs/content/locales/es-ES/migration-workbench.md +33 -0
  1153. package/docs/content/locales/es-ES/multi-app-workspace.md +312 -0
  1154. package/docs/content/locales/es-ES/multi-tenancy.md +52 -0
  1155. package/docs/content/locales/es-ES/native-chat-ui.md +321 -0
  1156. package/docs/content/locales/es-ES/notifications.md +231 -0
  1157. package/docs/content/locales/es-ES/observability.md +294 -0
  1158. package/docs/content/locales/es-ES/observational-memory.md +77 -0
  1159. package/docs/content/locales/es-ES/onboarding.md +216 -0
  1160. package/docs/content/locales/es-ES/plan-plugin.md +200 -0
  1161. package/docs/content/locales/es-ES/pr-visual-recap.md +384 -0
  1162. package/docs/content/locales/es-ES/processors.md +106 -0
  1163. package/docs/content/locales/es-ES/progress.md +199 -0
  1164. package/docs/content/locales/es-ES/pure-agent-apps.md +39 -0
  1165. package/docs/content/locales/es-ES/real-time-collaboration.md +676 -0
  1166. package/docs/content/locales/es-ES/recurring-jobs.md +142 -0
  1167. package/docs/content/locales/es-ES/routing.md +79 -0
  1168. package/docs/content/locales/es-ES/sandbox-adapters.md +227 -0
  1169. package/docs/content/locales/es-ES/security.md +330 -0
  1170. package/docs/content/locales/es-ES/server.md +253 -0
  1171. package/docs/content/locales/es-ES/sharing.md +219 -0
  1172. package/docs/content/locales/es-ES/skills-guide.md +281 -0
  1173. package/docs/content/locales/es-ES/template-analytics.md +259 -0
  1174. package/docs/content/locales/es-ES/template-assets.md +303 -0
  1175. package/docs/content/locales/es-ES/template-brain.md +324 -0
  1176. package/docs/content/locales/es-ES/template-calendar.md +194 -0
  1177. package/docs/content/locales/es-ES/template-chat.md +129 -0
  1178. package/docs/content/locales/es-ES/template-clips.md +368 -0
  1179. package/docs/content/locales/es-ES/template-content.md +402 -0
  1180. package/docs/content/locales/es-ES/template-design.md +173 -0
  1181. package/docs/content/locales/es-ES/template-dispatch.md +220 -0
  1182. package/docs/content/locales/es-ES/template-forms.md +178 -0
  1183. package/docs/content/locales/es-ES/template-mail.md +239 -0
  1184. package/docs/content/locales/es-ES/template-plan.md +815 -0
  1185. package/docs/content/locales/es-ES/template-slides.md +293 -0
  1186. package/docs/content/locales/es-ES/template-videos.md +222 -0
  1187. package/docs/content/locales/es-ES/tracking.md +236 -0
  1188. package/docs/content/locales/es-ES/using-your-agent.md +71 -0
  1189. package/docs/content/locales/es-ES/voice-input.md +81 -0
  1190. package/docs/content/locales/es-ES/what-is-agent-native.md +202 -0
  1191. package/docs/content/locales/es-ES/workspace-connections.md +321 -0
  1192. package/docs/content/locales/es-ES/workspace-management.md +175 -0
  1193. package/docs/content/locales/es-ES/workspace.md +323 -0
  1194. package/docs/content/locales/es-ES/writing-agent-instructions.md +173 -0
  1195. package/docs/content/locales/fr-FR/a2a-protocol.md +392 -0
  1196. package/docs/content/locales/fr-FR/actions.md +583 -0
  1197. package/docs/content/locales/fr-FR/agent-mentions.md +164 -0
  1198. package/docs/content/locales/fr-FR/agent-surfaces.md +397 -0
  1199. package/docs/content/locales/fr-FR/agent-teams.md +171 -0
  1200. package/docs/content/locales/fr-FR/agent-web-surfaces.md +161 -0
  1201. package/docs/content/locales/fr-FR/audit-log.md +111 -0
  1202. package/docs/content/locales/fr-FR/authentication.md +332 -0
  1203. package/docs/content/locales/fr-FR/automations.md +268 -0
  1204. package/docs/content/locales/fr-FR/blueprint-installer.md +83 -0
  1205. package/docs/content/locales/fr-FR/cli-adapters.md +129 -0
  1206. package/docs/content/locales/fr-FR/client.md +398 -0
  1207. package/docs/content/locales/fr-FR/cloneable-saas.md +114 -0
  1208. package/docs/content/locales/fr-FR/code-agents-ui.md +436 -0
  1209. package/docs/content/locales/fr-FR/components.md +368 -0
  1210. package/docs/content/locales/fr-FR/context-awareness.md +373 -0
  1211. package/docs/content/locales/fr-FR/creating-templates.md +411 -0
  1212. package/docs/content/locales/fr-FR/cross-app-sso.md +185 -0
  1213. package/docs/content/locales/fr-FR/database.md +183 -0
  1214. package/docs/content/locales/fr-FR/deployment.md +349 -0
  1215. package/docs/content/locales/fr-FR/dispatch.md +146 -0
  1216. package/docs/content/locales/fr-FR/drop-in-agent.md +260 -0
  1217. package/docs/content/locales/fr-FR/durable-resume.md +65 -0
  1218. package/docs/content/locales/fr-FR/embedding-sdk.md +597 -0
  1219. package/docs/content/locales/fr-FR/evals.md +155 -0
  1220. package/docs/content/locales/fr-FR/extensions.md +360 -0
  1221. package/docs/content/locales/fr-FR/external-agents.md +619 -0
  1222. package/docs/content/locales/fr-FR/faq.md +142 -0
  1223. package/docs/content/locales/fr-FR/file-uploads.md +122 -0
  1224. package/docs/content/locales/fr-FR/frames.md +153 -0
  1225. package/docs/content/locales/fr-FR/getting-started.md +199 -0
  1226. package/docs/content/locales/fr-FR/harness-agents.md +349 -0
  1227. package/docs/content/locales/fr-FR/human-approval.md +86 -0
  1228. package/docs/content/locales/fr-FR/internationalization.md +67 -24
  1229. package/docs/content/locales/fr-FR/key-concepts.md +312 -0
  1230. package/docs/content/locales/fr-FR/local-file-mode.md +433 -0
  1231. package/docs/content/locales/fr-FR/mcp-apps.md +147 -0
  1232. package/docs/content/locales/fr-FR/mcp-clients.md +330 -0
  1233. package/docs/content/locales/fr-FR/mcp-protocol.md +279 -0
  1234. package/docs/content/locales/fr-FR/messaging.md +461 -0
  1235. package/docs/content/locales/fr-FR/migration-workbench.md +33 -0
  1236. package/docs/content/locales/fr-FR/multi-app-workspace.md +312 -0
  1237. package/docs/content/locales/fr-FR/multi-tenancy.md +52 -0
  1238. package/docs/content/locales/fr-FR/native-chat-ui.md +321 -0
  1239. package/docs/content/locales/fr-FR/notifications.md +231 -0
  1240. package/docs/content/locales/fr-FR/observability.md +294 -0
  1241. package/docs/content/locales/fr-FR/observational-memory.md +77 -0
  1242. package/docs/content/locales/fr-FR/onboarding.md +216 -0
  1243. package/docs/content/locales/fr-FR/plan-plugin.md +200 -0
  1244. package/docs/content/locales/fr-FR/pr-visual-recap.md +384 -0
  1245. package/docs/content/locales/fr-FR/processors.md +106 -0
  1246. package/docs/content/locales/fr-FR/progress.md +199 -0
  1247. package/docs/content/locales/fr-FR/pure-agent-apps.md +39 -0
  1248. package/docs/content/locales/fr-FR/real-time-collaboration.md +676 -0
  1249. package/docs/content/locales/fr-FR/recurring-jobs.md +142 -0
  1250. package/docs/content/locales/fr-FR/routing.md +79 -0
  1251. package/docs/content/locales/fr-FR/sandbox-adapters.md +227 -0
  1252. package/docs/content/locales/fr-FR/security.md +330 -0
  1253. package/docs/content/locales/fr-FR/server.md +253 -0
  1254. package/docs/content/locales/fr-FR/sharing.md +219 -0
  1255. package/docs/content/locales/fr-FR/skills-guide.md +281 -0
  1256. package/docs/content/locales/fr-FR/template-analytics.md +259 -0
  1257. package/docs/content/locales/fr-FR/template-assets.md +303 -0
  1258. package/docs/content/locales/fr-FR/template-brain.md +324 -0
  1259. package/docs/content/locales/fr-FR/template-calendar.md +194 -0
  1260. package/docs/content/locales/fr-FR/template-chat.md +129 -0
  1261. package/docs/content/locales/fr-FR/template-clips.md +368 -0
  1262. package/docs/content/locales/fr-FR/template-content.md +402 -0
  1263. package/docs/content/locales/fr-FR/template-design.md +173 -0
  1264. package/docs/content/locales/fr-FR/template-dispatch.md +220 -0
  1265. package/docs/content/locales/fr-FR/template-forms.md +178 -0
  1266. package/docs/content/locales/fr-FR/template-mail.md +239 -0
  1267. package/docs/content/locales/fr-FR/template-plan.md +815 -0
  1268. package/docs/content/locales/fr-FR/template-slides.md +293 -0
  1269. package/docs/content/locales/fr-FR/template-videos.md +222 -0
  1270. package/docs/content/locales/fr-FR/tracking.md +236 -0
  1271. package/docs/content/locales/fr-FR/using-your-agent.md +71 -0
  1272. package/docs/content/locales/fr-FR/voice-input.md +81 -0
  1273. package/docs/content/locales/fr-FR/what-is-agent-native.md +202 -0
  1274. package/docs/content/locales/fr-FR/workspace-connections.md +321 -0
  1275. package/docs/content/locales/fr-FR/workspace-management.md +175 -0
  1276. package/docs/content/locales/fr-FR/workspace.md +323 -0
  1277. package/docs/content/locales/fr-FR/writing-agent-instructions.md +173 -0
  1278. package/docs/content/locales/hi-IN/a2a-protocol.md +392 -0
  1279. package/docs/content/locales/hi-IN/actions.md +583 -0
  1280. package/docs/content/locales/hi-IN/agent-mentions.md +164 -0
  1281. package/docs/content/locales/hi-IN/agent-surfaces.md +397 -0
  1282. package/docs/content/locales/hi-IN/agent-teams.md +171 -0
  1283. package/docs/content/locales/hi-IN/agent-web-surfaces.md +161 -0
  1284. package/docs/content/locales/hi-IN/audit-log.md +111 -0
  1285. package/docs/content/locales/hi-IN/authentication.md +332 -0
  1286. package/docs/content/locales/hi-IN/automations.md +268 -0
  1287. package/docs/content/locales/hi-IN/blueprint-installer.md +83 -0
  1288. package/docs/content/locales/hi-IN/cli-adapters.md +129 -0
  1289. package/docs/content/locales/hi-IN/client.md +398 -0
  1290. package/docs/content/locales/hi-IN/cloneable-saas.md +114 -0
  1291. package/docs/content/locales/hi-IN/code-agents-ui.md +436 -0
  1292. package/docs/content/locales/hi-IN/components.md +368 -0
  1293. package/docs/content/locales/hi-IN/context-awareness.md +373 -0
  1294. package/docs/content/locales/hi-IN/creating-templates.md +411 -0
  1295. package/docs/content/locales/hi-IN/cross-app-sso.md +185 -0
  1296. package/docs/content/locales/hi-IN/database.md +183 -0
  1297. package/docs/content/locales/hi-IN/deployment.md +349 -0
  1298. package/docs/content/locales/hi-IN/dispatch.md +146 -0
  1299. package/docs/content/locales/hi-IN/drop-in-agent.md +260 -0
  1300. package/docs/content/locales/hi-IN/durable-resume.md +65 -0
  1301. package/docs/content/locales/hi-IN/embedding-sdk.md +597 -0
  1302. package/docs/content/locales/hi-IN/evals.md +155 -0
  1303. package/docs/content/locales/hi-IN/extensions.md +360 -0
  1304. package/docs/content/locales/hi-IN/external-agents.md +619 -0
  1305. package/docs/content/locales/hi-IN/faq.md +142 -0
  1306. package/docs/content/locales/hi-IN/file-uploads.md +122 -0
  1307. package/docs/content/locales/hi-IN/frames.md +153 -0
  1308. package/docs/content/locales/hi-IN/getting-started.md +199 -0
  1309. package/docs/content/locales/hi-IN/harness-agents.md +349 -0
  1310. package/docs/content/locales/hi-IN/human-approval.md +86 -0
  1311. package/docs/content/locales/hi-IN/internationalization.md +70 -27
  1312. package/docs/content/locales/hi-IN/key-concepts.md +312 -0
  1313. package/docs/content/locales/hi-IN/local-file-mode.md +433 -0
  1314. package/docs/content/locales/hi-IN/mcp-apps.md +147 -0
  1315. package/docs/content/locales/hi-IN/mcp-clients.md +330 -0
  1316. package/docs/content/locales/hi-IN/mcp-protocol.md +279 -0
  1317. package/docs/content/locales/hi-IN/messaging.md +461 -0
  1318. package/docs/content/locales/hi-IN/migration-workbench.md +33 -0
  1319. package/docs/content/locales/hi-IN/multi-app-workspace.md +312 -0
  1320. package/docs/content/locales/hi-IN/multi-tenancy.md +52 -0
  1321. package/docs/content/locales/hi-IN/native-chat-ui.md +321 -0
  1322. package/docs/content/locales/hi-IN/notifications.md +231 -0
  1323. package/docs/content/locales/hi-IN/observability.md +294 -0
  1324. package/docs/content/locales/hi-IN/observational-memory.md +77 -0
  1325. package/docs/content/locales/hi-IN/onboarding.md +216 -0
  1326. package/docs/content/locales/hi-IN/plan-plugin.md +200 -0
  1327. package/docs/content/locales/hi-IN/pr-visual-recap.md +384 -0
  1328. package/docs/content/locales/hi-IN/processors.md +106 -0
  1329. package/docs/content/locales/hi-IN/progress.md +199 -0
  1330. package/docs/content/locales/hi-IN/pure-agent-apps.md +39 -0
  1331. package/docs/content/locales/hi-IN/real-time-collaboration.md +676 -0
  1332. package/docs/content/locales/hi-IN/recurring-jobs.md +142 -0
  1333. package/docs/content/locales/hi-IN/routing.md +79 -0
  1334. package/docs/content/locales/hi-IN/sandbox-adapters.md +227 -0
  1335. package/docs/content/locales/hi-IN/security.md +330 -0
  1336. package/docs/content/locales/hi-IN/server.md +253 -0
  1337. package/docs/content/locales/hi-IN/sharing.md +219 -0
  1338. package/docs/content/locales/hi-IN/skills-guide.md +281 -0
  1339. package/docs/content/locales/hi-IN/template-analytics.md +259 -0
  1340. package/docs/content/locales/hi-IN/template-assets.md +303 -0
  1341. package/docs/content/locales/hi-IN/template-brain.md +324 -0
  1342. package/docs/content/locales/hi-IN/template-calendar.md +194 -0
  1343. package/docs/content/locales/hi-IN/template-chat.md +129 -0
  1344. package/docs/content/locales/hi-IN/template-clips.md +368 -0
  1345. package/docs/content/locales/hi-IN/template-content.md +402 -0
  1346. package/docs/content/locales/hi-IN/template-design.md +173 -0
  1347. package/docs/content/locales/hi-IN/template-dispatch.md +220 -0
  1348. package/docs/content/locales/hi-IN/template-forms.md +178 -0
  1349. package/docs/content/locales/hi-IN/template-mail.md +239 -0
  1350. package/docs/content/locales/hi-IN/template-plan.md +815 -0
  1351. package/docs/content/locales/hi-IN/template-slides.md +293 -0
  1352. package/docs/content/locales/hi-IN/template-videos.md +222 -0
  1353. package/docs/content/locales/hi-IN/tracking.md +236 -0
  1354. package/docs/content/locales/hi-IN/using-your-agent.md +71 -0
  1355. package/docs/content/locales/hi-IN/voice-input.md +81 -0
  1356. package/docs/content/locales/hi-IN/what-is-agent-native.md +202 -0
  1357. package/docs/content/locales/hi-IN/workspace-connections.md +321 -0
  1358. package/docs/content/locales/hi-IN/workspace-management.md +175 -0
  1359. package/docs/content/locales/hi-IN/workspace.md +323 -0
  1360. package/docs/content/locales/hi-IN/writing-agent-instructions.md +173 -0
  1361. package/docs/content/locales/ja-JP/a2a-protocol.md +392 -0
  1362. package/docs/content/locales/ja-JP/actions.md +583 -0
  1363. package/docs/content/locales/ja-JP/agent-mentions.md +164 -0
  1364. package/docs/content/locales/ja-JP/agent-surfaces.md +397 -0
  1365. package/docs/content/locales/ja-JP/agent-teams.md +171 -0
  1366. package/docs/content/locales/ja-JP/agent-web-surfaces.md +161 -0
  1367. package/docs/content/locales/ja-JP/audit-log.md +111 -0
  1368. package/docs/content/locales/ja-JP/authentication.md +332 -0
  1369. package/docs/content/locales/ja-JP/automations.md +268 -0
  1370. package/docs/content/locales/ja-JP/blueprint-installer.md +83 -0
  1371. package/docs/content/locales/ja-JP/cli-adapters.md +129 -0
  1372. package/docs/content/locales/ja-JP/client.md +398 -0
  1373. package/docs/content/locales/ja-JP/cloneable-saas.md +114 -0
  1374. package/docs/content/locales/ja-JP/code-agents-ui.md +436 -0
  1375. package/docs/content/locales/ja-JP/components.md +368 -0
  1376. package/docs/content/locales/ja-JP/context-awareness.md +373 -0
  1377. package/docs/content/locales/ja-JP/creating-templates.md +411 -0
  1378. package/docs/content/locales/ja-JP/cross-app-sso.md +185 -0
  1379. package/docs/content/locales/ja-JP/database.md +183 -0
  1380. package/docs/content/locales/ja-JP/deployment.md +349 -0
  1381. package/docs/content/locales/ja-JP/dispatch.md +146 -0
  1382. package/docs/content/locales/ja-JP/drop-in-agent.md +260 -0
  1383. package/docs/content/locales/ja-JP/durable-resume.md +65 -0
  1384. package/docs/content/locales/ja-JP/embedding-sdk.md +597 -0
  1385. package/docs/content/locales/ja-JP/evals.md +155 -0
  1386. package/docs/content/locales/ja-JP/extensions.md +360 -0
  1387. package/docs/content/locales/ja-JP/external-agents.md +619 -0
  1388. package/docs/content/locales/ja-JP/faq.md +142 -0
  1389. package/docs/content/locales/ja-JP/file-uploads.md +122 -0
  1390. package/docs/content/locales/ja-JP/frames.md +153 -0
  1391. package/docs/content/locales/ja-JP/getting-started.md +199 -0
  1392. package/docs/content/locales/ja-JP/harness-agents.md +349 -0
  1393. package/docs/content/locales/ja-JP/human-approval.md +86 -0
  1394. package/docs/content/locales/ja-JP/internationalization.md +54 -23
  1395. package/docs/content/locales/ja-JP/key-concepts.md +312 -0
  1396. package/docs/content/locales/ja-JP/local-file-mode.md +433 -0
  1397. package/docs/content/locales/ja-JP/mcp-apps.md +147 -0
  1398. package/docs/content/locales/ja-JP/mcp-clients.md +330 -0
  1399. package/docs/content/locales/ja-JP/mcp-protocol.md +279 -0
  1400. package/docs/content/locales/ja-JP/messaging.md +461 -0
  1401. package/docs/content/locales/ja-JP/migration-workbench.md +33 -0
  1402. package/docs/content/locales/ja-JP/multi-app-workspace.md +312 -0
  1403. package/docs/content/locales/ja-JP/multi-tenancy.md +52 -0
  1404. package/docs/content/locales/ja-JP/native-chat-ui.md +321 -0
  1405. package/docs/content/locales/ja-JP/notifications.md +231 -0
  1406. package/docs/content/locales/ja-JP/observability.md +294 -0
  1407. package/docs/content/locales/ja-JP/observational-memory.md +77 -0
  1408. package/docs/content/locales/ja-JP/onboarding.md +216 -0
  1409. package/docs/content/locales/ja-JP/plan-plugin.md +200 -0
  1410. package/docs/content/locales/ja-JP/pr-visual-recap.md +384 -0
  1411. package/docs/content/locales/ja-JP/processors.md +106 -0
  1412. package/docs/content/locales/ja-JP/progress.md +199 -0
  1413. package/docs/content/locales/ja-JP/pure-agent-apps.md +39 -0
  1414. package/docs/content/locales/ja-JP/real-time-collaboration.md +676 -0
  1415. package/docs/content/locales/ja-JP/recurring-jobs.md +142 -0
  1416. package/docs/content/locales/ja-JP/routing.md +79 -0
  1417. package/docs/content/locales/ja-JP/sandbox-adapters.md +227 -0
  1418. package/docs/content/locales/ja-JP/security.md +330 -0
  1419. package/docs/content/locales/ja-JP/server.md +253 -0
  1420. package/docs/content/locales/ja-JP/sharing.md +219 -0
  1421. package/docs/content/locales/ja-JP/skills-guide.md +281 -0
  1422. package/docs/content/locales/ja-JP/template-analytics.md +259 -0
  1423. package/docs/content/locales/ja-JP/template-assets.md +303 -0
  1424. package/docs/content/locales/ja-JP/template-brain.md +324 -0
  1425. package/docs/content/locales/ja-JP/template-calendar.md +194 -0
  1426. package/docs/content/locales/ja-JP/template-chat.md +129 -0
  1427. package/docs/content/locales/ja-JP/template-clips.md +368 -0
  1428. package/docs/content/locales/ja-JP/template-content.md +402 -0
  1429. package/docs/content/locales/ja-JP/template-design.md +173 -0
  1430. package/docs/content/locales/ja-JP/template-dispatch.md +220 -0
  1431. package/docs/content/locales/ja-JP/template-forms.md +178 -0
  1432. package/docs/content/locales/ja-JP/template-mail.md +239 -0
  1433. package/docs/content/locales/ja-JP/template-plan.md +814 -0
  1434. package/docs/content/locales/ja-JP/template-slides.md +293 -0
  1435. package/docs/content/locales/ja-JP/template-videos.md +222 -0
  1436. package/docs/content/locales/ja-JP/tracking.md +236 -0
  1437. package/docs/content/locales/ja-JP/using-your-agent.md +71 -0
  1438. package/docs/content/locales/ja-JP/voice-input.md +81 -0
  1439. package/docs/content/locales/ja-JP/what-is-agent-native.md +202 -0
  1440. package/docs/content/locales/ja-JP/workspace-connections.md +321 -0
  1441. package/docs/content/locales/ja-JP/workspace-management.md +175 -0
  1442. package/docs/content/locales/ja-JP/workspace.md +323 -0
  1443. package/docs/content/locales/ja-JP/writing-agent-instructions.md +173 -0
  1444. package/docs/content/locales/ko-KR/a2a-protocol.md +392 -0
  1445. package/docs/content/locales/ko-KR/actions.md +583 -0
  1446. package/docs/content/locales/ko-KR/agent-mentions.md +164 -0
  1447. package/docs/content/locales/ko-KR/agent-surfaces.md +397 -0
  1448. package/docs/content/locales/ko-KR/agent-teams.md +171 -0
  1449. package/docs/content/locales/ko-KR/agent-web-surfaces.md +161 -0
  1450. package/docs/content/locales/ko-KR/audit-log.md +111 -0
  1451. package/docs/content/locales/ko-KR/authentication.md +332 -0
  1452. package/docs/content/locales/ko-KR/automations.md +268 -0
  1453. package/docs/content/locales/ko-KR/blueprint-installer.md +83 -0
  1454. package/docs/content/locales/ko-KR/cli-adapters.md +129 -0
  1455. package/docs/content/locales/ko-KR/client.md +398 -0
  1456. package/docs/content/locales/ko-KR/cloneable-saas.md +114 -0
  1457. package/docs/content/locales/ko-KR/code-agents-ui.md +436 -0
  1458. package/docs/content/locales/ko-KR/components.md +368 -0
  1459. package/docs/content/locales/ko-KR/context-awareness.md +373 -0
  1460. package/docs/content/locales/ko-KR/creating-templates.md +411 -0
  1461. package/docs/content/locales/ko-KR/cross-app-sso.md +187 -0
  1462. package/docs/content/locales/ko-KR/database.md +183 -0
  1463. package/docs/content/locales/ko-KR/deployment.md +349 -0
  1464. package/docs/content/locales/ko-KR/dispatch.md +146 -0
  1465. package/docs/content/locales/ko-KR/drop-in-agent.md +260 -0
  1466. package/docs/content/locales/ko-KR/durable-resume.md +65 -0
  1467. package/docs/content/locales/ko-KR/embedding-sdk.md +597 -0
  1468. package/docs/content/locales/ko-KR/evals.md +155 -0
  1469. package/docs/content/locales/ko-KR/extensions.md +360 -0
  1470. package/docs/content/locales/ko-KR/external-agents.md +621 -0
  1471. package/docs/content/locales/ko-KR/faq.md +142 -0
  1472. package/docs/content/locales/ko-KR/file-uploads.md +122 -0
  1473. package/docs/content/locales/ko-KR/frames.md +153 -0
  1474. package/docs/content/locales/ko-KR/getting-started.md +199 -0
  1475. package/docs/content/locales/ko-KR/harness-agents.md +349 -0
  1476. package/docs/content/locales/ko-KR/human-approval.md +88 -0
  1477. package/docs/content/locales/ko-KR/internationalization.md +66 -23
  1478. package/docs/content/locales/ko-KR/key-concepts.md +312 -0
  1479. package/docs/content/locales/ko-KR/local-file-mode.md +433 -0
  1480. package/docs/content/locales/ko-KR/mcp-apps.md +147 -0
  1481. package/docs/content/locales/ko-KR/mcp-clients.md +330 -0
  1482. package/docs/content/locales/ko-KR/mcp-protocol.md +279 -0
  1483. package/docs/content/locales/ko-KR/messaging.md +464 -0
  1484. package/docs/content/locales/ko-KR/migration-workbench.md +33 -0
  1485. package/docs/content/locales/ko-KR/multi-app-workspace.md +312 -0
  1486. package/docs/content/locales/ko-KR/multi-tenancy.md +52 -0
  1487. package/docs/content/locales/ko-KR/native-chat-ui.md +321 -0
  1488. package/docs/content/locales/ko-KR/notifications.md +231 -0
  1489. package/docs/content/locales/ko-KR/observability.md +294 -0
  1490. package/docs/content/locales/ko-KR/observational-memory.md +77 -0
  1491. package/docs/content/locales/ko-KR/onboarding.md +216 -0
  1492. package/docs/content/locales/ko-KR/plan-plugin.md +200 -0
  1493. package/docs/content/locales/ko-KR/pr-visual-recap.md +384 -0
  1494. package/docs/content/locales/ko-KR/processors.md +106 -0
  1495. package/docs/content/locales/ko-KR/progress.md +199 -0
  1496. package/docs/content/locales/ko-KR/pure-agent-apps.md +39 -0
  1497. package/docs/content/locales/ko-KR/real-time-collaboration.md +676 -0
  1498. package/docs/content/locales/ko-KR/recurring-jobs.md +142 -0
  1499. package/docs/content/locales/ko-KR/routing.md +79 -0
  1500. package/docs/content/locales/ko-KR/sandbox-adapters.md +227 -0
  1501. package/docs/content/locales/ko-KR/security.md +330 -0
  1502. package/docs/content/locales/ko-KR/server.md +253 -0
  1503. package/docs/content/locales/ko-KR/sharing.md +219 -0
  1504. package/docs/content/locales/ko-KR/skills-guide.md +281 -0
  1505. package/docs/content/locales/ko-KR/template-analytics.md +259 -0
  1506. package/docs/content/locales/ko-KR/template-assets.md +307 -0
  1507. package/docs/content/locales/ko-KR/template-brain.md +324 -0
  1508. package/docs/content/locales/ko-KR/template-calendar.md +194 -0
  1509. package/docs/content/locales/ko-KR/template-chat.md +129 -0
  1510. package/docs/content/locales/ko-KR/template-clips.md +372 -0
  1511. package/docs/content/locales/ko-KR/template-content.md +402 -0
  1512. package/docs/content/locales/ko-KR/template-design.md +173 -0
  1513. package/docs/content/locales/ko-KR/template-dispatch.md +220 -0
  1514. package/docs/content/locales/ko-KR/template-forms.md +178 -0
  1515. package/docs/content/locales/ko-KR/template-mail.md +239 -0
  1516. package/docs/content/locales/ko-KR/template-plan.md +815 -0
  1517. package/docs/content/locales/ko-KR/template-slides.md +293 -0
  1518. package/docs/content/locales/ko-KR/template-videos.md +222 -0
  1519. package/docs/content/locales/ko-KR/tracking.md +236 -0
  1520. package/docs/content/locales/ko-KR/using-your-agent.md +71 -0
  1521. package/docs/content/locales/ko-KR/voice-input.md +81 -0
  1522. package/docs/content/locales/ko-KR/what-is-agent-native.md +202 -0
  1523. package/docs/content/locales/ko-KR/workspace-connections.md +321 -0
  1524. package/docs/content/locales/ko-KR/workspace-management.md +175 -0
  1525. package/docs/content/locales/ko-KR/workspace.md +323 -0
  1526. package/docs/content/locales/ko-KR/writing-agent-instructions.md +173 -0
  1527. package/docs/content/locales/pt-BR/a2a-protocol.md +392 -0
  1528. package/docs/content/locales/pt-BR/actions.md +583 -0
  1529. package/docs/content/locales/pt-BR/agent-mentions.md +164 -0
  1530. package/docs/content/locales/pt-BR/agent-surfaces.md +397 -0
  1531. package/docs/content/locales/pt-BR/agent-teams.md +171 -0
  1532. package/docs/content/locales/pt-BR/agent-web-surfaces.md +161 -0
  1533. package/docs/content/locales/pt-BR/audit-log.md +111 -0
  1534. package/docs/content/locales/pt-BR/authentication.md +332 -0
  1535. package/docs/content/locales/pt-BR/automations.md +268 -0
  1536. package/docs/content/locales/pt-BR/blueprint-installer.md +83 -0
  1537. package/docs/content/locales/pt-BR/cli-adapters.md +129 -0
  1538. package/docs/content/locales/pt-BR/client.md +398 -0
  1539. package/docs/content/locales/pt-BR/cloneable-saas.md +114 -0
  1540. package/docs/content/locales/pt-BR/code-agents-ui.md +436 -0
  1541. package/docs/content/locales/pt-BR/components.md +368 -0
  1542. package/docs/content/locales/pt-BR/context-awareness.md +373 -0
  1543. package/docs/content/locales/pt-BR/creating-templates.md +411 -0
  1544. package/docs/content/locales/pt-BR/cross-app-sso.md +185 -0
  1545. package/docs/content/locales/pt-BR/database.md +183 -0
  1546. package/docs/content/locales/pt-BR/deployment.md +349 -0
  1547. package/docs/content/locales/pt-BR/dispatch.md +146 -0
  1548. package/docs/content/locales/pt-BR/drop-in-agent.md +260 -0
  1549. package/docs/content/locales/pt-BR/durable-resume.md +65 -0
  1550. package/docs/content/locales/pt-BR/embedding-sdk.md +597 -0
  1551. package/docs/content/locales/pt-BR/evals.md +155 -0
  1552. package/docs/content/locales/pt-BR/extensions.md +360 -0
  1553. package/docs/content/locales/pt-BR/external-agents.md +619 -0
  1554. package/docs/content/locales/pt-BR/faq.md +142 -0
  1555. package/docs/content/locales/pt-BR/file-uploads.md +122 -0
  1556. package/docs/content/locales/pt-BR/frames.md +153 -0
  1557. package/docs/content/locales/pt-BR/getting-started.md +199 -0
  1558. package/docs/content/locales/pt-BR/harness-agents.md +349 -0
  1559. package/docs/content/locales/pt-BR/human-approval.md +86 -0
  1560. package/docs/content/locales/pt-BR/internationalization.md +67 -24
  1561. package/docs/content/locales/pt-BR/key-concepts.md +312 -0
  1562. package/docs/content/locales/pt-BR/local-file-mode.md +433 -0
  1563. package/docs/content/locales/pt-BR/mcp-apps.md +147 -0
  1564. package/docs/content/locales/pt-BR/mcp-clients.md +330 -0
  1565. package/docs/content/locales/pt-BR/mcp-protocol.md +279 -0
  1566. package/docs/content/locales/pt-BR/messaging.md +461 -0
  1567. package/docs/content/locales/pt-BR/migration-workbench.md +33 -0
  1568. package/docs/content/locales/pt-BR/multi-app-workspace.md +312 -0
  1569. package/docs/content/locales/pt-BR/multi-tenancy.md +52 -0
  1570. package/docs/content/locales/pt-BR/native-chat-ui.md +321 -0
  1571. package/docs/content/locales/pt-BR/notifications.md +231 -0
  1572. package/docs/content/locales/pt-BR/observability.md +294 -0
  1573. package/docs/content/locales/pt-BR/observational-memory.md +77 -0
  1574. package/docs/content/locales/pt-BR/onboarding.md +216 -0
  1575. package/docs/content/locales/pt-BR/plan-plugin.md +200 -0
  1576. package/docs/content/locales/pt-BR/pr-visual-recap.md +384 -0
  1577. package/docs/content/locales/pt-BR/processors.md +106 -0
  1578. package/docs/content/locales/pt-BR/progress.md +199 -0
  1579. package/docs/content/locales/pt-BR/pure-agent-apps.md +39 -0
  1580. package/docs/content/locales/pt-BR/real-time-collaboration.md +676 -0
  1581. package/docs/content/locales/pt-BR/recurring-jobs.md +142 -0
  1582. package/docs/content/locales/pt-BR/routing.md +79 -0
  1583. package/docs/content/locales/pt-BR/sandbox-adapters.md +227 -0
  1584. package/docs/content/locales/pt-BR/security.md +330 -0
  1585. package/docs/content/locales/pt-BR/server.md +253 -0
  1586. package/docs/content/locales/pt-BR/sharing.md +219 -0
  1587. package/docs/content/locales/pt-BR/skills-guide.md +281 -0
  1588. package/docs/content/locales/pt-BR/template-analytics.md +259 -0
  1589. package/docs/content/locales/pt-BR/template-assets.md +303 -0
  1590. package/docs/content/locales/pt-BR/template-brain.md +324 -0
  1591. package/docs/content/locales/pt-BR/template-calendar.md +194 -0
  1592. package/docs/content/locales/pt-BR/template-chat.md +129 -0
  1593. package/docs/content/locales/pt-BR/template-clips.md +368 -0
  1594. package/docs/content/locales/pt-BR/template-content.md +402 -0
  1595. package/docs/content/locales/pt-BR/template-design.md +173 -0
  1596. package/docs/content/locales/pt-BR/template-dispatch.md +220 -0
  1597. package/docs/content/locales/pt-BR/template-forms.md +178 -0
  1598. package/docs/content/locales/pt-BR/template-mail.md +239 -0
  1599. package/docs/content/locales/pt-BR/template-plan.md +815 -0
  1600. package/docs/content/locales/pt-BR/template-slides.md +293 -0
  1601. package/docs/content/locales/pt-BR/template-videos.md +222 -0
  1602. package/docs/content/locales/pt-BR/tracking.md +236 -0
  1603. package/docs/content/locales/pt-BR/using-your-agent.md +71 -0
  1604. package/docs/content/locales/pt-BR/voice-input.md +81 -0
  1605. package/docs/content/locales/pt-BR/what-is-agent-native.md +202 -0
  1606. package/docs/content/locales/pt-BR/workspace-connections.md +321 -0
  1607. package/docs/content/locales/pt-BR/workspace-management.md +175 -0
  1608. package/docs/content/locales/pt-BR/workspace.md +323 -0
  1609. package/docs/content/locales/pt-BR/writing-agent-instructions.md +173 -0
  1610. package/docs/content/locales/zh-CN/a2a-protocol.md +392 -0
  1611. package/docs/content/locales/zh-CN/actions.md +583 -0
  1612. package/docs/content/locales/zh-CN/agent-mentions.md +164 -0
  1613. package/docs/content/locales/zh-CN/agent-surfaces.md +397 -0
  1614. package/docs/content/locales/zh-CN/agent-teams.md +171 -0
  1615. package/docs/content/locales/zh-CN/agent-web-surfaces.md +161 -0
  1616. package/docs/content/locales/zh-CN/audit-log.md +111 -0
  1617. package/docs/content/locales/zh-CN/authentication.md +332 -0
  1618. package/docs/content/locales/zh-CN/automations.md +268 -0
  1619. package/docs/content/locales/zh-CN/blueprint-installer.md +83 -0
  1620. package/docs/content/locales/zh-CN/cli-adapters.md +129 -0
  1621. package/docs/content/locales/zh-CN/client.md +398 -0
  1622. package/docs/content/locales/zh-CN/cloneable-saas.md +114 -0
  1623. package/docs/content/locales/zh-CN/code-agents-ui.md +436 -0
  1624. package/docs/content/locales/zh-CN/components.md +368 -0
  1625. package/docs/content/locales/zh-CN/context-awareness.md +373 -0
  1626. package/docs/content/locales/zh-CN/creating-templates.md +411 -0
  1627. package/docs/content/locales/zh-CN/cross-app-sso.md +188 -0
  1628. package/docs/content/locales/zh-CN/database.md +183 -0
  1629. package/docs/content/locales/zh-CN/deployment.md +349 -0
  1630. package/docs/content/locales/zh-CN/dispatch.md +146 -0
  1631. package/docs/content/locales/zh-CN/drop-in-agent.md +260 -0
  1632. package/docs/content/locales/zh-CN/durable-resume.md +65 -0
  1633. package/docs/content/locales/zh-CN/embedding-sdk.md +597 -0
  1634. package/docs/content/locales/zh-CN/evals.md +155 -0
  1635. package/docs/content/locales/zh-CN/extensions.md +360 -0
  1636. package/docs/content/locales/zh-CN/external-agents.md +619 -0
  1637. package/docs/content/locales/zh-CN/faq.md +142 -0
  1638. package/docs/content/locales/zh-CN/file-uploads.md +122 -0
  1639. package/docs/content/locales/zh-CN/frames.md +153 -0
  1640. package/docs/content/locales/zh-CN/getting-started.md +199 -0
  1641. package/docs/content/locales/zh-CN/harness-agents.md +349 -0
  1642. package/docs/content/locales/zh-CN/human-approval.md +86 -0
  1643. package/docs/content/locales/zh-CN/internationalization.md +67 -24
  1644. package/docs/content/locales/zh-CN/key-concepts.md +312 -0
  1645. package/docs/content/locales/zh-CN/local-file-mode.md +433 -0
  1646. package/docs/content/locales/zh-CN/mcp-apps.md +147 -0
  1647. package/docs/content/locales/zh-CN/mcp-clients.md +330 -0
  1648. package/docs/content/locales/zh-CN/mcp-protocol.md +279 -0
  1649. package/docs/content/locales/zh-CN/messaging.md +461 -0
  1650. package/docs/content/locales/zh-CN/migration-workbench.md +33 -0
  1651. package/docs/content/locales/zh-CN/multi-app-workspace.md +312 -0
  1652. package/docs/content/locales/zh-CN/multi-tenancy.md +52 -0
  1653. package/docs/content/locales/zh-CN/native-chat-ui.md +321 -0
  1654. package/docs/content/locales/zh-CN/notifications.md +231 -0
  1655. package/docs/content/locales/zh-CN/observability.md +294 -0
  1656. package/docs/content/locales/zh-CN/observational-memory.md +77 -0
  1657. package/docs/content/locales/zh-CN/onboarding.md +216 -0
  1658. package/docs/content/locales/zh-CN/plan-plugin.md +200 -0
  1659. package/docs/content/locales/zh-CN/pr-visual-recap.md +384 -0
  1660. package/docs/content/locales/zh-CN/processors.md +106 -0
  1661. package/docs/content/locales/zh-CN/progress.md +199 -0
  1662. package/docs/content/locales/zh-CN/pure-agent-apps.md +39 -0
  1663. package/docs/content/locales/zh-CN/real-time-collaboration.md +676 -0
  1664. package/docs/content/locales/zh-CN/recurring-jobs.md +142 -0
  1665. package/docs/content/locales/zh-CN/routing.md +79 -0
  1666. package/docs/content/locales/zh-CN/sandbox-adapters.md +227 -0
  1667. package/docs/content/locales/zh-CN/security.md +330 -0
  1668. package/docs/content/locales/zh-CN/server.md +253 -0
  1669. package/docs/content/locales/zh-CN/sharing.md +219 -0
  1670. package/docs/content/locales/zh-CN/skills-guide.md +281 -0
  1671. package/docs/content/locales/zh-CN/template-analytics.md +259 -0
  1672. package/docs/content/locales/zh-CN/template-assets.md +303 -0
  1673. package/docs/content/locales/zh-CN/template-brain.md +324 -0
  1674. package/docs/content/locales/zh-CN/template-calendar.md +194 -0
  1675. package/docs/content/locales/zh-CN/template-chat.md +129 -0
  1676. package/docs/content/locales/zh-CN/template-clips.md +368 -0
  1677. package/docs/content/locales/zh-CN/template-content.md +402 -0
  1678. package/docs/content/locales/zh-CN/template-design.md +173 -0
  1679. package/docs/content/locales/zh-CN/template-dispatch.md +220 -0
  1680. package/docs/content/locales/zh-CN/template-forms.md +178 -0
  1681. package/docs/content/locales/zh-CN/template-mail.md +239 -0
  1682. package/docs/content/locales/zh-CN/template-plan.md +814 -0
  1683. package/docs/content/locales/zh-CN/template-slides.md +293 -0
  1684. package/docs/content/locales/zh-CN/template-videos.md +222 -0
  1685. package/docs/content/locales/zh-CN/tracking.md +236 -0
  1686. package/docs/content/locales/zh-CN/using-your-agent.md +71 -0
  1687. package/docs/content/locales/zh-CN/voice-input.md +81 -0
  1688. package/docs/content/locales/zh-CN/what-is-agent-native.md +202 -0
  1689. package/docs/content/locales/zh-CN/workspace-connections.md +321 -0
  1690. package/docs/content/locales/zh-CN/workspace-management.md +175 -0
  1691. package/docs/content/locales/zh-CN/workspace.md +323 -0
  1692. package/docs/content/locales/zh-CN/writing-agent-instructions.md +173 -0
  1693. package/package.json +1 -1
  1694. package/src/templates/default/app/i18n/ar-SA.ts +356 -0
  1695. package/src/templates/default/app/i18n/de-DE.ts +332 -0
  1696. package/src/templates/default/app/i18n/en-US.ts +303 -0
  1697. package/src/templates/default/app/i18n/es-ES.ts +339 -0
  1698. package/src/templates/default/app/i18n/fr-FR.ts +339 -0
  1699. package/src/templates/default/app/i18n/hi-IN.ts +332 -0
  1700. package/src/templates/default/app/i18n/index.ts +18 -0
  1701. package/src/templates/default/app/i18n/ja-JP.ts +326 -0
  1702. package/src/templates/default/app/i18n/ko-KR.ts +326 -0
  1703. package/src/templates/default/app/i18n/pt-BR.ts +339 -0
  1704. package/src/templates/default/app/i18n/zh-CN.ts +324 -0
  1705. package/src/templates/default/app/root.tsx +109 -6
  1706. package/src/templates/workspace-core/.agents/skills/extensions/references/api.md +34 -12
@@ -9,12 +9,13 @@ import { AgentToggleButton } from "../AgentPanel.js";
9
9
  import { NotificationsBell } from "../notifications/NotificationsBell.js";
10
10
  import { sendToAgentChat } from "../agent-chat.js";
11
11
  import { PromptComposer } from "../composer/PromptComposer.js";
12
+ import { useT } from "../i18n.js";
12
13
  import { Popover, PopoverContent, PopoverTrigger, } from "../components/ui/popover.js";
13
14
  import { TOOLS_ORDER_CHANGE_EVENT, applyToolsOrder, getToolsOrder, } from "./extension-order.js";
14
15
  import { deleteOrHideExtension, invalidateExtensionRemoval, } from "./delete-extension.js";
15
16
  import { extensionPath } from "../../extensions/path.js";
16
17
  let lastCreateSubmission = null;
17
- function submitCreateTool(prompt) {
18
+ function submitCreateTool(prompt, messageForPrompt) {
18
19
  const trimmed = prompt.trim();
19
20
  if (!trimmed)
20
21
  return;
@@ -26,16 +27,18 @@ function submitCreateTool(prompt) {
26
27
  }
27
28
  lastCreateSubmission = { prompt: trimmed, at: now };
28
29
  sendToAgentChat({
29
- message: `Create an extension: ${trimmed}`,
30
+ message: messageForPrompt(trimmed),
30
31
  submit: true,
31
32
  openSidebar: true,
32
33
  newTab: true,
33
34
  });
34
35
  }
35
36
  function CreateToolInput({ className }) {
36
- return (_jsxs("div", { className: cn("flex flex-col gap-2 text-left", className), children: [_jsx("p", { className: "px-1 text-sm font-medium text-foreground", children: "What should it do?" }), _jsx(PromptComposer, { autoFocus: true, className: "text-left", placeholder: "A todo list, API dashboard, calculator...", draftScope: "extensions:create", onSubmit: (text) => submitCreateTool(text) })] }));
37
+ const t = useT();
38
+ return (_jsxs("div", { className: cn("flex flex-col gap-2 text-left", className), children: [_jsx("p", { className: "px-1 text-sm font-medium text-foreground", children: t("extensions.whatShouldItDo") }), _jsx(PromptComposer, { autoFocus: true, className: "text-left", placeholder: t("extensions.createPlaceholder"), draftScope: "extensions:create", onSubmit: (text) => submitCreateTool(text, (prompt) => t("extensions.createPrompt", { prompt })) })] }));
37
39
  }
38
40
  export function ExtensionsListPage() {
41
+ const t = useT();
39
42
  const [showCreate, setShowCreate] = useState(false);
40
43
  const [confirmDeleteId, setConfirmDeleteId] = useState(null);
41
44
  const [deletingId, setDeletingId] = useState(null);
@@ -75,7 +78,7 @@ export function ExtensionsListPage() {
75
78
  ? applyToolsOrder(extensions ?? [], toolOrderState)
76
79
  : (extensions ?? []);
77
80
  const handleCreate = (text) => {
78
- submitCreateTool(text);
81
+ submitCreateTool(text, (prompt) => t("extensions.createPrompt", { prompt }));
79
82
  setShowCreate(false);
80
83
  };
81
84
  const handleDelete = async (extension) => {
@@ -106,21 +109,31 @@ export function ExtensionsListPage() {
106
109
  queryClient.invalidateQueries({ queryKey: ["extensions"] });
107
110
  }
108
111
  };
109
- return (_jsxs("div", { className: "flex h-full w-full flex-col", children: [_jsxs("header", { className: "flex h-12 items-center justify-between border-b px-4 shrink-0", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Link, { to: "/", className: "inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground", "aria-label": "Back to app", children: _jsx(IconArrowLeft, { className: "h-4 w-4" }) }), _jsx("h1", { className: "text-sm font-semibold", children: "Extensions" })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs("button", { type: "button", onClick: () => setShowGloballyHidden((prev) => !prev), "aria-pressed": showGloballyHidden, className: cn("inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium", showGloballyHidden
112
+ return (_jsxs("div", { className: "flex h-full w-full flex-col", children: [_jsxs("header", { className: "flex h-12 items-center justify-between border-b px-4 shrink-0", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Link, { to: "/", className: "inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground", "aria-label": t("extensions.backToApp"), children: _jsx(IconArrowLeft, { className: "h-4 w-4" }) }), _jsx("h1", { className: "text-sm font-semibold", children: t("extensions.title") })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs("button", { type: "button", onClick: () => setShowGloballyHidden((prev) => !prev), "aria-pressed": showGloballyHidden, className: cn("inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium", showGloballyHidden
110
113
  ? "bg-accent text-foreground"
111
- : "text-muted-foreground hover:bg-accent hover:text-foreground"), children: [showGloballyHidden ? (_jsx(IconEye, { className: "h-4 w-4" })) : (_jsx(IconEyeOff, { className: "h-4 w-4" })), showGloballyHidden ? "Hiding shown" : "Show hidden"] }), _jsxs(Popover, { open: showCreate, onOpenChange: setShowCreate, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", className: "inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground hover:bg-primary/90", children: [_jsx(IconPlus, { className: "h-4 w-4" }), "New Extension"] }) }), _jsxs(PopoverContent, { align: "end", sideOffset: 6, className: "w-[420px] p-3", children: [_jsx("p", { className: "px-1 pb-2 text-sm font-semibold text-foreground", children: "New extension" }), _jsx(PromptComposer, { autoFocus: true, placeholder: "Describe what you'd like to build...", draftScope: "extensions:create-popover", onSubmit: handleCreate })] })] }), _jsx(NotificationsBell, {}), _jsx(AgentToggleButton, {})] })] }), _jsx("div", { className: "flex-1 overflow-auto px-5 py-8 sm:px-8 sm:py-10", children: isLoading ? (_jsx("div", { className: "grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 6 }).map((_, i) => (_jsxs("div", { className: "rounded-lg border border-border bg-card p-5", children: [_jsx("div", { className: "mb-3 h-10 w-10 rounded-lg bg-muted animate-pulse" }), _jsx("div", { className: "mb-2 h-4 w-2/3 rounded bg-muted animate-pulse" }), _jsx("div", { className: "h-3 w-4/5 rounded bg-muted animate-pulse" })] }, i))) })) : toolList.length === 0 ? (_jsx("div", { className: "flex min-h-[calc(100vh-9rem)] flex-col items-center justify-start px-2 pb-12 pt-[clamp(5rem,18vh,11rem)] sm:pb-16", children: _jsxs("div", { className: "mx-auto flex w-full max-w-[34rem] flex-col gap-7", children: [_jsxs("div", { className: "flex flex-col items-center gap-3 text-center", children: [_jsx(IconTool, { className: "h-10 w-10 text-muted-foreground/40" }), _jsxs("div", { className: "space-y-1.5", children: [_jsx("p", { className: "text-base font-semibold text-foreground", children: "Create your first extension" }), _jsx("p", { className: "mx-auto max-w-sm text-sm text-muted-foreground", children: "Describe a small app and the agent will build it." })] })] }), _jsx(CreateToolInput, { className: "w-full" })] }) })) : (_jsx("div", { className: "grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3", children: toolList.map((extension) => {
114
+ : "text-muted-foreground hover:bg-accent hover:text-foreground"), children: [showGloballyHidden ? (_jsx(IconEye, { className: "h-4 w-4" })) : (_jsx(IconEyeOff, { className: "h-4 w-4" })), showGloballyHidden
115
+ ? t("extensions.hiddenShown")
116
+ : t("extensions.showHidden")] }), _jsxs(Popover, { open: showCreate, onOpenChange: setShowCreate, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", className: "inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground hover:bg-primary/90", children: [_jsx(IconPlus, { className: "h-4 w-4" }), t("extensions.newExtension")] }) }), _jsxs(PopoverContent, { align: "end", sideOffset: 6, className: "w-[420px] p-3", children: [_jsx("p", { className: "px-1 pb-2 text-sm font-semibold text-foreground", children: t("extensions.newExtensionTitle") }), _jsx(PromptComposer, { autoFocus: true, placeholder: t("extensions.buildPlaceholder"), draftScope: "extensions:create-popover", onSubmit: handleCreate })] })] }), _jsx(NotificationsBell, {}), _jsx(AgentToggleButton, {})] })] }), _jsx("div", { className: "flex-1 overflow-auto px-5 py-8 sm:px-8 sm:py-10", children: isLoading ? (_jsx("div", { className: "grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 6 }).map((_, i) => (_jsxs("div", { className: "rounded-lg border border-border bg-card p-5", children: [_jsx("div", { className: "mb-3 h-10 w-10 rounded-lg bg-muted animate-pulse" }), _jsx("div", { className: "mb-2 h-4 w-2/3 rounded bg-muted animate-pulse" }), _jsx("div", { className: "h-3 w-4/5 rounded bg-muted animate-pulse" })] }, i))) })) : toolList.length === 0 ? (_jsx("div", { className: "flex min-h-[calc(100vh-9rem)] flex-col items-center justify-start px-2 pb-12 pt-[clamp(5rem,18vh,11rem)] sm:pb-16", children: _jsxs("div", { className: "mx-auto flex w-full max-w-[34rem] flex-col gap-7", children: [_jsxs("div", { className: "flex flex-col items-center gap-3 text-center", children: [_jsx(IconTool, { className: "h-10 w-10 text-muted-foreground/40" }), _jsxs("div", { className: "space-y-1.5", children: [_jsx("p", { className: "text-base font-semibold text-foreground", children: t("extensions.emptyTitle") }), _jsx("p", { className: "mx-auto max-w-sm text-sm text-muted-foreground", children: t("extensions.emptyDescription") })] })] }), _jsx(CreateToolInput, { className: "w-full" })] }) })) : (_jsx("div", { className: "grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3", children: toolList.map((extension) => {
112
117
  const isLocalExtension = extension.source?.mode === "local-files";
113
- return (_jsxs("div", { className: cn("group relative rounded-lg border border-border bg-card", "hover:border-primary/30 hover:shadow-sm", extension.globallyHidden && "opacity-60"), children: [_jsxs(Link, { to: extensionPath(extension.id, extension.name), className: "block p-5 pr-12", children: [_jsx("div", { className: "mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-muted text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary", children: _jsx(IconTool, { className: "h-5 w-5" }) }), _jsxs("h3", { className: "mb-1 flex items-center gap-1.5 text-sm font-semibold text-foreground", children: [extension.globallyHidden && (_jsx(IconEyeOff, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground", "aria-label": "Hidden from everyone" })), _jsx("span", { className: "truncate", children: extension.name })] }), extension.description && (_jsx("p", { className: "line-clamp-2 text-xs text-muted-foreground", children: extension.description })), isLocalExtension && (_jsx("p", { className: "mt-3 inline-flex rounded-md border border-border px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground", children: "Local file" }))] }), _jsxs(Popover, { open: confirmDeleteId === extension.id, onOpenChange: (open) => setConfirmDeleteId(open ? extension.id : null), children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx("button", { type: "button", className: "absolute right-3 top-3 inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground opacity-0 hover:bg-accent hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring group-hover:opacity-100", "aria-label": `Options for ${extension.name}`, children: _jsx(IconDotsVertical, { className: "h-4 w-4" }) }) }), _jsxs(PopoverContent, { align: "end", sideOffset: 4, className: "w-64 p-0", children: [!isLocalExtension && extension.canDelete !== false && (_jsx("div", { className: "border-b p-1", children: _jsx("button", { type: "button", onClick: () => handleGlobalHideToggle(extension), className: "flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[12px] hover:bg-accent", children: extension.globallyHidden ? (_jsxs(_Fragment, { children: [_jsx(IconEye, { className: "h-3.5 w-3.5" }), "Unhide for everyone"] })) : (_jsxs(_Fragment, { children: [_jsx(IconEyeOff, { className: "h-3.5 w-3.5" }), "Hide from everyone"] })) }) })), isLocalExtension ? (_jsxs("div", { className: "p-3 text-[12px] text-muted-foreground", children: ["This extension is backed by", " ", _jsx("span", { className: "font-mono text-foreground", children: extension.source?.entryPath ?? "local files" }), ". Edit or remove it from the workspace."] })) : (_jsxs("div", { className: "p-3", children: [_jsxs("p", { className: "text-[12px]", children: [extension.canDelete === false
114
- ? "Remove "
115
- : "Delete ", _jsx("span", { className: "font-medium", children: extension.name }), "?", extension.canDelete === false
116
- ? " This hides it from your Extensions list without deleting it for anyone else."
117
- : " This removes it everywhere it is shared."] }), _jsxs("div", { className: "mt-3 flex justify-end gap-1", children: [_jsx("button", { type: "button", onClick: () => setConfirmDeleteId(null), className: "rounded-md px-2 py-1 text-[12px] hover:bg-accent", children: "Cancel" }), _jsxs("button", { type: "button", onClick: () => handleDelete(extension), disabled: deletingId === extension.id, className: cn("inline-flex items-center gap-1.5 rounded-md bg-destructive px-2 py-1 text-[12px] text-destructive-foreground hover:bg-destructive/90", deletingId === extension.id && "opacity-60"), children: [_jsx(IconTrash, { className: "h-3.5 w-3.5" }), deletingId === extension.id
118
+ return (_jsxs("div", { className: cn("group relative rounded-lg border border-border bg-card", "hover:border-primary/30 hover:shadow-sm", extension.globallyHidden && "opacity-60"), children: [_jsxs(Link, { to: extensionPath(extension.id, extension.name), className: "block p-5 pr-12", children: [_jsx("div", { className: "mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-muted text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary", children: _jsx(IconTool, { className: "h-5 w-5" }) }), _jsxs("h3", { className: "mb-1 flex items-center gap-1.5 text-sm font-semibold text-foreground", children: [extension.globallyHidden && (_jsx(IconEyeOff, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground", "aria-label": t("extensions.hiddenFromEveryone") })), _jsx("span", { className: "truncate", children: extension.name })] }), extension.description && (_jsx("p", { className: "line-clamp-2 text-xs text-muted-foreground", children: extension.description })), isLocalExtension && (_jsx("p", { className: "mt-3 inline-flex rounded-md border border-border px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground", children: t("extensions.localFile") }))] }), _jsxs(Popover, { open: confirmDeleteId === extension.id, onOpenChange: (open) => setConfirmDeleteId(open ? extension.id : null), children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx("button", { type: "button", className: "absolute right-3 top-3 inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground opacity-0 hover:bg-accent hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring group-hover:opacity-100", "aria-label": t("extensions.optionsFor", {
119
+ name: extension.name,
120
+ }), children: _jsx(IconDotsVertical, { className: "h-4 w-4" }) }) }), _jsxs(PopoverContent, { align: "end", sideOffset: 4, className: "w-64 p-0", children: [!isLocalExtension && extension.canDelete !== false && (_jsx("div", { className: "border-b p-1", children: _jsx("button", { type: "button", onClick: () => handleGlobalHideToggle(extension), className: "flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[12px] hover:bg-accent", children: extension.globallyHidden ? (_jsxs(_Fragment, { children: [_jsx(IconEye, { className: "h-3.5 w-3.5" }), t("extensions.unhideEveryone")] })) : (_jsxs(_Fragment, { children: [_jsx(IconEyeOff, { className: "h-3.5 w-3.5" }), t("extensions.hideEveryone")] })) }) })), isLocalExtension ? (_jsx("div", { className: "p-3 text-[12px] text-muted-foreground", children: t("extensions.localFileDescription", {
121
+ entryPath: extension.source?.entryPath ?? "local files",
122
+ }) })) : (_jsxs("div", { className: "p-3", children: [_jsxs("p", { className: "text-[12px]", children: [extension.canDelete === false
123
+ ? t("extensions.removeQuestion", {
124
+ name: extension.name,
125
+ })
126
+ : t("extensions.deleteQuestion", {
127
+ name: extension.name,
128
+ }), " ", extension.canDelete === false
129
+ ? t("extensions.hideForYouDescription")
130
+ : t("extensions.removeEverywhereDescription")] }), _jsxs("div", { className: "mt-3 flex justify-end gap-1", children: [_jsx("button", { type: "button", onClick: () => setConfirmDeleteId(null), className: "rounded-md px-2 py-1 text-[12px] hover:bg-accent", children: t("extensions.cancel") }), _jsxs("button", { type: "button", onClick: () => handleDelete(extension), disabled: deletingId === extension.id, className: cn("inline-flex items-center gap-1.5 rounded-md bg-destructive px-2 py-1 text-[12px] text-destructive-foreground hover:bg-destructive/90", deletingId === extension.id && "opacity-60"), children: [_jsx(IconTrash, { className: "h-3.5 w-3.5" }), deletingId === extension.id
118
131
  ? extension.canDelete === false
119
- ? "Removing..."
120
- : "Deleting..."
132
+ ? t("extensions.removing")
133
+ : t("extensions.deleting")
121
134
  : extension.canDelete === false
122
- ? "Remove"
123
- : "Delete"] })] })] }))] })] })] }, extension.id));
135
+ ? t("extensions.remove")
136
+ : t("extensions.delete")] })] })] }))] })] })] }, extension.id));
124
137
  }) })) })] }));
125
138
  }
126
139
  //# sourceMappingURL=ExtensionsListPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExtensionsListPage.js","sourceRoot":"","sources":["../../../src/client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A6B,aAC1C,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,EACvC,SAAS,EAAC,kDAAkD,uBAGrD,EACT,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,EACtC,QAAQ,EAAE,UAAU,KAAK,SAAS,CAAC,EAAE,EACrC,SAAS,EAAE,EAAE,CACX,sIAAsI,EACtI,UAAU,KAAK,SAAS,CAAC,EAAE,IAAI,YAAY,CAC5C,aAED,KAAC,SAAS,IAAC,SAAS,EAAC,aAAa,GAAG,EACpC,UAAU,KAAK,SAAS,CAAC,EAAE;4EAC1B,CAAC,CAAC,SAAS,CAAC,SAAS,KAAK,KAAK;gFAC7B,CAAC,CAAC,aAAa;gFACf,CAAC,CAAC,aAAa;4EACjB,CAAC,CAAC,SAAS,CAAC,SAAS,KAAK,KAAK;gFAC7B,CAAC,CAAC,QAAQ;gFACV,CAAC,CAAC,QAAQ,IACP,IACL,IACF,CACP,IACc,IACT,KA/HL,SAAS,CAAC,EAAE,CAgIb,CACP,CAAC;oBACJ,CAAC,CAAC,GACE,CACP,GACG,IACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { agentNativePath } from \"../api-path.js\";\nimport { useState, useEffect } from \"react\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { Link } from \"react-router\";\nimport {\n IconArrowLeft,\n IconDotsVertical,\n IconEye,\n IconEyeOff,\n IconPlus,\n IconTool,\n IconTrash,\n} from \"@tabler/icons-react\";\nimport { cn } from \"../utils.js\";\nimport { AgentToggleButton } from \"../AgentPanel.js\";\nimport { NotificationsBell } from \"../notifications/NotificationsBell.js\";\nimport { sendToAgentChat } from \"../agent-chat.js\";\nimport { PromptComposer } from \"../composer/PromptComposer.js\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"../components/ui/popover.js\";\nimport {\n TOOLS_ORDER_CHANGE_EVENT,\n applyToolsOrder,\n getToolsOrder,\n} from \"./extension-order.js\";\nimport {\n deleteOrHideExtension,\n invalidateExtensionRemoval,\n} from \"./delete-extension.js\";\nimport { extensionPath } from \"../../extensions/path.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\nlet lastCreateSubmission: { prompt: string; at: number } | null = null;\n\nfunction submitCreateTool(prompt: string) {\n const trimmed = prompt.trim();\n if (!trimmed) return;\n const now = Date.now();\n if (\n lastCreateSubmission &&\n lastCreateSubmission.prompt === trimmed &&\n now - lastCreateSubmission.at < 2_000\n ) {\n return;\n }\n lastCreateSubmission = { prompt: trimmed, at: now };\n sendToAgentChat({\n message: `Create an extension: ${trimmed}`,\n submit: true,\n openSidebar: true,\n newTab: true,\n });\n}\n\nfunction CreateToolInput({ className }: { className?: string }) {\n return (\n <div className={cn(\"flex flex-col gap-2 text-left\", className)}>\n <p className=\"px-1 text-sm font-medium text-foreground\">\n What should it do?\n </p>\n <PromptComposer\n autoFocus\n className=\"text-left\"\n placeholder=\"A todo list, API dashboard, calculator...\"\n draftScope=\"extensions:create\"\n onSubmit={(text) => submitCreateTool(text)}\n />\n </div>\n );\n}\n\nexport function ExtensionsListPage() {\n const [showCreate, setShowCreate] = useState(false);\n const [confirmDeleteId, setConfirmDeleteId] = useState<string | null>(null);\n const [deletingId, setDeletingId] = useState<string | null>(null);\n const [showGloballyHidden, setShowGloballyHidden] = useState(false);\n const queryClient = useQueryClient();\n const [toolOrderState, setToolOrderState] = useState<string[]>(() =>\n typeof window !== \"undefined\" ? getToolsOrder() : [],\n );\n\n useEffect(() => {\n fetch(agentNativePath(\"/_agent-native/application-state/navigation\"), {\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ view: \"extensions\" }),\n }).catch(() => {});\n }, []);\n\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n const syncOrder = () => setToolOrderState(getToolsOrder());\n window.addEventListener(TOOLS_ORDER_CHANGE_EVENT, syncOrder);\n window.addEventListener(\"storage\", syncOrder);\n return () => {\n window.removeEventListener(TOOLS_ORDER_CHANGE_EVENT, syncOrder);\n window.removeEventListener(\"storage\", syncOrder);\n };\n }, []);\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 toolList =\n toolOrderState.length > 0\n ? applyToolsOrder(extensions ?? [], toolOrderState)\n : (extensions ?? []);\n\n const handleCreate = (text: string) => {\n submitCreateTool(text);\n setShowCreate(false);\n };\n\n const handleDelete = async (extension: Extension) => {\n setDeletingId(extension.id);\n const previous = queryClient.getQueryData<Extension[]>([\"extensions\"]);\n queryClient.setQueryData<Extension[]>([\"extensions\"], (old) =>\n (old ?? []).filter((item) => item.id !== extension.id),\n );\n try {\n await deleteOrHideExtension(extension);\n invalidateExtensionRemoval(queryClient, extension.id);\n } catch {\n if (previous) queryClient.setQueryData([\"extensions\"], previous);\n } finally {\n setDeletingId(null);\n setConfirmDeleteId(null);\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n }\n };\n\n const handleGlobalHideToggle = async (extension: Extension) => {\n setConfirmDeleteId(null);\n const action = extension.globallyHidden ? \"global-unhide\" : \"global-hide\";\n try {\n await fetch(\n agentNativePath(`/_agent-native/extensions/${extension.id}/${action}`),\n { method: \"POST\" },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n }\n };\n\n return (\n <div className=\"flex h-full w-full flex-col\">\n <header className=\"flex h-12 items-center justify-between border-b px-4 shrink-0\">\n <div className=\"flex items-center gap-2\">\n <Link\n to=\"/\"\n className=\"inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground\"\n aria-label=\"Back to app\"\n >\n <IconArrowLeft className=\"h-4 w-4\" />\n </Link>\n <h1 className=\"text-sm font-semibold\">Extensions</h1>\n </div>\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={() => setShowGloballyHidden((prev) => !prev)}\n aria-pressed={showGloballyHidden}\n className={cn(\n \"inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium\",\n showGloballyHidden\n ? \"bg-accent text-foreground\"\n : \"text-muted-foreground hover:bg-accent hover:text-foreground\",\n )}\n >\n {showGloballyHidden ? (\n <IconEye className=\"h-4 w-4\" />\n ) : (\n <IconEyeOff className=\"h-4 w-4\" />\n )}\n {showGloballyHidden ? \"Hiding shown\" : \"Show hidden\"}\n </button>\n <Popover open={showCreate} onOpenChange={setShowCreate}>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground hover:bg-primary/90\"\n >\n <IconPlus className=\"h-4 w-4\" />\n New Extension\n </button>\n </PopoverTrigger>\n <PopoverContent\n align=\"end\"\n sideOffset={6}\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:create-popover\"\n onSubmit={handleCreate}\n />\n </PopoverContent>\n </Popover>\n <NotificationsBell />\n <AgentToggleButton />\n </div>\n </header>\n\n <div className=\"flex-1 overflow-auto px-5 py-8 sm:px-8 sm:py-10\">\n {isLoading ? (\n <div className=\"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3\">\n {Array.from({ length: 6 }).map((_, i) => (\n <div\n key={i}\n className=\"rounded-lg border border-border bg-card p-5\"\n >\n <div className=\"mb-3 h-10 w-10 rounded-lg bg-muted animate-pulse\" />\n <div className=\"mb-2 h-4 w-2/3 rounded bg-muted animate-pulse\" />\n <div className=\"h-3 w-4/5 rounded bg-muted animate-pulse\" />\n </div>\n ))}\n </div>\n ) : toolList.length === 0 ? (\n <div className=\"flex min-h-[calc(100vh-9rem)] flex-col items-center justify-start px-2 pb-12 pt-[clamp(5rem,18vh,11rem)] sm:pb-16\">\n <div className=\"mx-auto flex w-full max-w-[34rem] flex-col gap-7\">\n <div className=\"flex flex-col items-center gap-3 text-center\">\n <IconTool className=\"h-10 w-10 text-muted-foreground/40\" />\n <div className=\"space-y-1.5\">\n <p className=\"text-base font-semibold text-foreground\">\n Create your first extension\n </p>\n <p className=\"mx-auto max-w-sm text-sm text-muted-foreground\">\n Describe a small app and the agent will build it.\n </p>\n </div>\n </div>\n <CreateToolInput className=\"w-full\" />\n </div>\n </div>\n ) : (\n <div className=\"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3\">\n {toolList.map((extension) => {\n const isLocalExtension = extension.source?.mode === \"local-files\";\n return (\n <div\n key={extension.id}\n className={cn(\n \"group relative rounded-lg border border-border bg-card\",\n \"hover:border-primary/30 hover:shadow-sm\",\n extension.globallyHidden && \"opacity-60\",\n )}\n >\n <Link\n to={extensionPath(extension.id, extension.name)}\n className=\"block p-5 pr-12\"\n >\n <div className=\"mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-muted text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary\">\n <IconTool className=\"h-5 w-5\" />\n </div>\n <h3 className=\"mb-1 flex items-center gap-1.5 text-sm font-semibold text-foreground\">\n {extension.globallyHidden && (\n <IconEyeOff\n className=\"h-3.5 w-3.5 shrink-0 text-muted-foreground\"\n aria-label=\"Hidden from everyone\"\n />\n )}\n <span className=\"truncate\">{extension.name}</span>\n </h3>\n {extension.description && (\n <p className=\"line-clamp-2 text-xs text-muted-foreground\">\n {extension.description}\n </p>\n )}\n {isLocalExtension && (\n <p className=\"mt-3 inline-flex rounded-md border border-border px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground\">\n Local file\n </p>\n )}\n </Link>\n <Popover\n open={confirmDeleteId === extension.id}\n onOpenChange={(open) =>\n setConfirmDeleteId(open ? extension.id : null)\n }\n >\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"absolute right-3 top-3 inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground opacity-0 hover:bg-accent hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring group-hover:opacity-100\"\n aria-label={`Options for ${extension.name}`}\n >\n <IconDotsVertical className=\"h-4 w-4\" />\n </button>\n </PopoverTrigger>\n <PopoverContent\n align=\"end\"\n sideOffset={4}\n className=\"w-64 p-0\"\n >\n {!isLocalExtension && extension.canDelete !== false && (\n <div className=\"border-b p-1\">\n <button\n type=\"button\"\n onClick={() => handleGlobalHideToggle(extension)}\n className=\"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[12px] hover:bg-accent\"\n >\n {extension.globallyHidden ? (\n <>\n <IconEye className=\"h-3.5 w-3.5\" />\n Unhide for everyone\n </>\n ) : (\n <>\n <IconEyeOff className=\"h-3.5 w-3.5\" />\n Hide from everyone\n </>\n )}\n </button>\n </div>\n )}\n {isLocalExtension ? (\n <div className=\"p-3 text-[12px] text-muted-foreground\">\n This extension is backed by{\" \"}\n <span className=\"font-mono text-foreground\">\n {extension.source?.entryPath ?? \"local files\"}\n </span>\n . Edit or remove it from the workspace.\n </div>\n ) : (\n <div className=\"p-3\">\n <p className=\"text-[12px]\">\n {extension.canDelete === false\n ? \"Remove \"\n : \"Delete \"}\n <span className=\"font-medium\">\n {extension.name}\n </span>\n ?\n {extension.canDelete === false\n ? \" This hides it from your Extensions list without deleting it for anyone else.\"\n : \" This removes it everywhere it is shared.\"}\n </p>\n <div className=\"mt-3 flex justify-end gap-1\">\n <button\n type=\"button\"\n onClick={() => setConfirmDeleteId(null)}\n className=\"rounded-md px-2 py-1 text-[12px] hover:bg-accent\"\n >\n Cancel\n </button>\n <button\n type=\"button\"\n onClick={() => handleDelete(extension)}\n disabled={deletingId === extension.id}\n className={cn(\n \"inline-flex items-center gap-1.5 rounded-md bg-destructive px-2 py-1 text-[12px] text-destructive-foreground hover:bg-destructive/90\",\n deletingId === extension.id && \"opacity-60\",\n )}\n >\n <IconTrash className=\"h-3.5 w-3.5\" />\n {deletingId === extension.id\n ? extension.canDelete === false\n ? \"Removing...\"\n : \"Deleting...\"\n : extension.canDelete === false\n ? \"Remove\"\n : \"Delete\"}\n </button>\n </div>\n </div>\n )}\n </PopoverContent>\n </Popover>\n </div>\n );\n })}\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"ExtensionsListPage.js","sourceRoot":"","sources":["../../../src/client/extensions/ExtensionsListPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EACL,OAAO,EACP,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,IAAI;qEACrB,CAAC,EAAE,GAAG,EACV,SAAS,CAAC,SAAS,KAAK,KAAK;oEAC5B,CAAC,CAAC,CAAC,CAAC,kCAAkC,CAAC;oEACvC,CAAC,CAAC,CAAC,CAAC,wCAAwC,CAAC,IAC7C,EACJ,eAAK,SAAS,EAAC,6BAA6B,aAC1C,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,EACvC,SAAS,EAAC,kDAAkD,YAE3D,CAAC,CAAC,mBAAmB,CAAC,GAChB,EACT,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,EACtC,QAAQ,EAAE,UAAU,KAAK,SAAS,CAAC,EAAE,EACrC,SAAS,EAAE,EAAE,CACX,sIAAsI,EACtI,UAAU,KAAK,SAAS,CAAC,EAAE,IAAI,YAAY,CAC5C,aAED,KAAC,SAAS,IAAC,SAAS,EAAC,aAAa,GAAG,EACpC,UAAU,KAAK,SAAS,CAAC,EAAE;4EAC1B,CAAC,CAAC,SAAS,CAAC,SAAS,KAAK,KAAK;gFAC7B,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC;gFAC1B,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC;4EAC5B,CAAC,CAAC,SAAS,CAAC,SAAS,KAAK,KAAK;gFAC7B,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC;gFACxB,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,IACrB,IACL,IACF,CACP,IACc,IACT,KAhIL,SAAS,CAAC,EAAE,CAiIb,CACP,CAAC;oBACJ,CAAC,CAAC,GACE,CACP,GACG,IACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { agentNativePath } from \"../api-path.js\";\nimport { useState, useEffect } from \"react\";\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport { Link } from \"react-router\";\nimport {\n IconArrowLeft,\n IconDotsVertical,\n IconEye,\n IconEyeOff,\n IconPlus,\n IconTool,\n IconTrash,\n} from \"@tabler/icons-react\";\nimport { cn } from \"../utils.js\";\nimport { AgentToggleButton } from \"../AgentPanel.js\";\nimport { NotificationsBell } from \"../notifications/NotificationsBell.js\";\nimport { sendToAgentChat } from \"../agent-chat.js\";\nimport { PromptComposer } from \"../composer/PromptComposer.js\";\nimport { useT } from \"../i18n.js\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"../components/ui/popover.js\";\nimport {\n TOOLS_ORDER_CHANGE_EVENT,\n applyToolsOrder,\n getToolsOrder,\n} from \"./extension-order.js\";\nimport {\n deleteOrHideExtension,\n invalidateExtensionRemoval,\n} from \"./delete-extension.js\";\nimport { extensionPath } from \"../../extensions/path.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\nlet lastCreateSubmission: { prompt: string; at: number } | null = null;\n\nfunction submitCreateTool(\n prompt: string,\n messageForPrompt: (prompt: string) => string,\n) {\n const trimmed = prompt.trim();\n if (!trimmed) return;\n const now = Date.now();\n if (\n lastCreateSubmission &&\n lastCreateSubmission.prompt === trimmed &&\n now - lastCreateSubmission.at < 2_000\n ) {\n return;\n }\n lastCreateSubmission = { prompt: trimmed, at: now };\n sendToAgentChat({\n message: messageForPrompt(trimmed),\n submit: true,\n openSidebar: true,\n newTab: true,\n });\n}\n\nfunction CreateToolInput({ className }: { className?: string }) {\n const t = useT();\n return (\n <div className={cn(\"flex flex-col gap-2 text-left\", className)}>\n <p className=\"px-1 text-sm font-medium text-foreground\">\n {t(\"extensions.whatShouldItDo\")}\n </p>\n <PromptComposer\n autoFocus\n className=\"text-left\"\n placeholder={t(\"extensions.createPlaceholder\")}\n draftScope=\"extensions:create\"\n onSubmit={(text) =>\n submitCreateTool(text, (prompt) =>\n t(\"extensions.createPrompt\", { prompt }),\n )\n }\n />\n </div>\n );\n}\n\nexport function ExtensionsListPage() {\n const t = useT();\n const [showCreate, setShowCreate] = useState(false);\n const [confirmDeleteId, setConfirmDeleteId] = useState<string | null>(null);\n const [deletingId, setDeletingId] = useState<string | null>(null);\n const [showGloballyHidden, setShowGloballyHidden] = useState(false);\n const queryClient = useQueryClient();\n const [toolOrderState, setToolOrderState] = useState<string[]>(() =>\n typeof window !== \"undefined\" ? getToolsOrder() : [],\n );\n\n useEffect(() => {\n fetch(agentNativePath(\"/_agent-native/application-state/navigation\"), {\n method: \"PUT\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ view: \"extensions\" }),\n }).catch(() => {});\n }, []);\n\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n const syncOrder = () => setToolOrderState(getToolsOrder());\n window.addEventListener(TOOLS_ORDER_CHANGE_EVENT, syncOrder);\n window.addEventListener(\"storage\", syncOrder);\n return () => {\n window.removeEventListener(TOOLS_ORDER_CHANGE_EVENT, syncOrder);\n window.removeEventListener(\"storage\", syncOrder);\n };\n }, []);\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 toolList =\n toolOrderState.length > 0\n ? applyToolsOrder(extensions ?? [], toolOrderState)\n : (extensions ?? []);\n\n const handleCreate = (text: string) => {\n submitCreateTool(text, (prompt) =>\n t(\"extensions.createPrompt\", { prompt }),\n );\n setShowCreate(false);\n };\n\n const handleDelete = async (extension: Extension) => {\n setDeletingId(extension.id);\n const previous = queryClient.getQueryData<Extension[]>([\"extensions\"]);\n queryClient.setQueryData<Extension[]>([\"extensions\"], (old) =>\n (old ?? []).filter((item) => item.id !== extension.id),\n );\n try {\n await deleteOrHideExtension(extension);\n invalidateExtensionRemoval(queryClient, extension.id);\n } catch {\n if (previous) queryClient.setQueryData([\"extensions\"], previous);\n } finally {\n setDeletingId(null);\n setConfirmDeleteId(null);\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n }\n };\n\n const handleGlobalHideToggle = async (extension: Extension) => {\n setConfirmDeleteId(null);\n const action = extension.globallyHidden ? \"global-unhide\" : \"global-hide\";\n try {\n await fetch(\n agentNativePath(`/_agent-native/extensions/${extension.id}/${action}`),\n { method: \"POST\" },\n );\n } finally {\n queryClient.invalidateQueries({ queryKey: [\"extensions\"] });\n }\n };\n\n return (\n <div className=\"flex h-full w-full flex-col\">\n <header className=\"flex h-12 items-center justify-between border-b px-4 shrink-0\">\n <div className=\"flex items-center gap-2\">\n <Link\n to=\"/\"\n className=\"inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground\"\n aria-label={t(\"extensions.backToApp\")}\n >\n <IconArrowLeft className=\"h-4 w-4\" />\n </Link>\n <h1 className=\"text-sm font-semibold\">{t(\"extensions.title\")}</h1>\n </div>\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={() => setShowGloballyHidden((prev) => !prev)}\n aria-pressed={showGloballyHidden}\n className={cn(\n \"inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium\",\n showGloballyHidden\n ? \"bg-accent text-foreground\"\n : \"text-muted-foreground hover:bg-accent hover:text-foreground\",\n )}\n >\n {showGloballyHidden ? (\n <IconEye className=\"h-4 w-4\" />\n ) : (\n <IconEyeOff className=\"h-4 w-4\" />\n )}\n {showGloballyHidden\n ? t(\"extensions.hiddenShown\")\n : t(\"extensions.showHidden\")}\n </button>\n <Popover open={showCreate} onOpenChange={setShowCreate}>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"inline-flex cursor-pointer items-center justify-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground hover:bg-primary/90\"\n >\n <IconPlus className=\"h-4 w-4\" />\n {t(\"extensions.newExtension\")}\n </button>\n </PopoverTrigger>\n <PopoverContent\n align=\"end\"\n sideOffset={6}\n className=\"w-[420px] p-3\"\n >\n <p className=\"px-1 pb-2 text-sm font-semibold text-foreground\">\n {t(\"extensions.newExtensionTitle\")}\n </p>\n <PromptComposer\n autoFocus\n placeholder={t(\"extensions.buildPlaceholder\")}\n draftScope=\"extensions:create-popover\"\n onSubmit={handleCreate}\n />\n </PopoverContent>\n </Popover>\n <NotificationsBell />\n <AgentToggleButton />\n </div>\n </header>\n\n <div className=\"flex-1 overflow-auto px-5 py-8 sm:px-8 sm:py-10\">\n {isLoading ? (\n <div className=\"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3\">\n {Array.from({ length: 6 }).map((_, i) => (\n <div\n key={i}\n className=\"rounded-lg border border-border bg-card p-5\"\n >\n <div className=\"mb-3 h-10 w-10 rounded-lg bg-muted animate-pulse\" />\n <div className=\"mb-2 h-4 w-2/3 rounded bg-muted animate-pulse\" />\n <div className=\"h-3 w-4/5 rounded bg-muted animate-pulse\" />\n </div>\n ))}\n </div>\n ) : toolList.length === 0 ? (\n <div className=\"flex min-h-[calc(100vh-9rem)] flex-col items-center justify-start px-2 pb-12 pt-[clamp(5rem,18vh,11rem)] sm:pb-16\">\n <div className=\"mx-auto flex w-full max-w-[34rem] flex-col gap-7\">\n <div className=\"flex flex-col items-center gap-3 text-center\">\n <IconTool className=\"h-10 w-10 text-muted-foreground/40\" />\n <div className=\"space-y-1.5\">\n <p className=\"text-base font-semibold text-foreground\">\n {t(\"extensions.emptyTitle\")}\n </p>\n <p className=\"mx-auto max-w-sm text-sm text-muted-foreground\">\n {t(\"extensions.emptyDescription\")}\n </p>\n </div>\n </div>\n <CreateToolInput className=\"w-full\" />\n </div>\n </div>\n ) : (\n <div className=\"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3\">\n {toolList.map((extension) => {\n const isLocalExtension = extension.source?.mode === \"local-files\";\n return (\n <div\n key={extension.id}\n className={cn(\n \"group relative rounded-lg border border-border bg-card\",\n \"hover:border-primary/30 hover:shadow-sm\",\n extension.globallyHidden && \"opacity-60\",\n )}\n >\n <Link\n to={extensionPath(extension.id, extension.name)}\n className=\"block p-5 pr-12\"\n >\n <div className=\"mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-muted text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary\">\n <IconTool className=\"h-5 w-5\" />\n </div>\n <h3 className=\"mb-1 flex items-center gap-1.5 text-sm font-semibold text-foreground\">\n {extension.globallyHidden && (\n <IconEyeOff\n className=\"h-3.5 w-3.5 shrink-0 text-muted-foreground\"\n aria-label={t(\"extensions.hiddenFromEveryone\")}\n />\n )}\n <span className=\"truncate\">{extension.name}</span>\n </h3>\n {extension.description && (\n <p className=\"line-clamp-2 text-xs text-muted-foreground\">\n {extension.description}\n </p>\n )}\n {isLocalExtension && (\n <p className=\"mt-3 inline-flex rounded-md border border-border px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground\">\n {t(\"extensions.localFile\")}\n </p>\n )}\n </Link>\n <Popover\n open={confirmDeleteId === extension.id}\n onOpenChange={(open) =>\n setConfirmDeleteId(open ? extension.id : null)\n }\n >\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"absolute right-3 top-3 inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground opacity-0 hover:bg-accent hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring group-hover:opacity-100\"\n aria-label={t(\"extensions.optionsFor\", {\n name: extension.name,\n })}\n >\n <IconDotsVertical className=\"h-4 w-4\" />\n </button>\n </PopoverTrigger>\n <PopoverContent\n align=\"end\"\n sideOffset={4}\n className=\"w-64 p-0\"\n >\n {!isLocalExtension && extension.canDelete !== false && (\n <div className=\"border-b p-1\">\n <button\n type=\"button\"\n onClick={() => handleGlobalHideToggle(extension)}\n className=\"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[12px] hover:bg-accent\"\n >\n {extension.globallyHidden ? (\n <>\n <IconEye className=\"h-3.5 w-3.5\" />\n {t(\"extensions.unhideEveryone\")}\n </>\n ) : (\n <>\n <IconEyeOff className=\"h-3.5 w-3.5\" />\n {t(\"extensions.hideEveryone\")}\n </>\n )}\n </button>\n </div>\n )}\n {isLocalExtension ? (\n <div className=\"p-3 text-[12px] text-muted-foreground\">\n {t(\"extensions.localFileDescription\", {\n entryPath:\n extension.source?.entryPath ?? \"local files\",\n })}\n </div>\n ) : (\n <div className=\"p-3\">\n <p className=\"text-[12px]\">\n {extension.canDelete === false\n ? t(\"extensions.removeQuestion\", {\n name: extension.name,\n })\n : t(\"extensions.deleteQuestion\", {\n name: extension.name,\n })}{\" \"}\n {extension.canDelete === false\n ? t(\"extensions.hideForYouDescription\")\n : t(\"extensions.removeEverywhereDescription\")}\n </p>\n <div className=\"mt-3 flex justify-end gap-1\">\n <button\n type=\"button\"\n onClick={() => setConfirmDeleteId(null)}\n className=\"rounded-md px-2 py-1 text-[12px] hover:bg-accent\"\n >\n {t(\"extensions.cancel\")}\n </button>\n <button\n type=\"button\"\n onClick={() => handleDelete(extension)}\n disabled={deletingId === extension.id}\n className={cn(\n \"inline-flex items-center gap-1.5 rounded-md bg-destructive px-2 py-1 text-[12px] text-destructive-foreground hover:bg-destructive/90\",\n deletingId === extension.id && \"opacity-60\",\n )}\n >\n <IconTrash className=\"h-3.5 w-3.5\" />\n {deletingId === extension.id\n ? extension.canDelete === false\n ? t(\"extensions.removing\")\n : t(\"extensions.deleting\")\n : extension.canDelete === false\n ? t(\"extensions.remove\")\n : t(\"extensions.delete\")}\n </button>\n </div>\n </div>\n )}\n </PopoverContent>\n </Popover>\n </div>\n );\n })}\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
@@ -38,7 +38,7 @@ declare global {
38
38
  }
39
39
  export declare function AgentNativeI18nProvider({ children, catalog, initialLocale, initialPreference, initialMessages, persistPreference, }: AgentNativeI18nProviderProps): import("react/jsx-runtime").JSX.Element;
40
40
  export declare function useLocale(): LocaleContextValue;
41
- export declare function useT(): import("i18next").TFunction<"translation", undefined>;
41
+ export declare function useT(): (key: string, options?: Record<string, unknown>) => string;
42
42
  export declare function useFormatters(): {
43
43
  formatDate(value: Date | number | string, options?: Intl.DateTimeFormatOptions): string;
44
44
  formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/client/i18n.tsx"],"names":[],"mappings":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAC;AAQf,OAAO,EAUL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,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,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC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E;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,2CAiGA"}
@@ -302,11 +302,77 @@ export function useLocale() {
302
302
  }
303
303
  return value;
304
304
  }
305
+ const CORE_FALLBACK_MESSAGES = {
306
+ "runsTray.runs": "Runs",
307
+ "runsTray.agentRuns": "Agent runs",
308
+ "runsTray.activeRun_one": "{{count}} active run",
309
+ "runsTray.activeRun_other": "{{count}} active runs",
310
+ "runsTray.failedRun_one": "{{count}} failed run",
311
+ "runsTray.failedRun_other": "{{count}} failed runs",
312
+ "runsTray.recentRuns": "Recent runs",
313
+ "runsTray.noRecentRuns": "No recent runs",
314
+ "runsTray.ariaAgentRuns": "Agent runs, {{label}}",
315
+ "runsTray.summaryRunning": "{{activeCount}} running",
316
+ "runsTray.summaryRunningRecent": "{{activeCount}} running · {{terminalCount}} recent",
317
+ "runsTray.summaryRecent_one": "{{count}} recent run",
318
+ "runsTray.summaryRecent_other": "{{count}} recent runs",
319
+ "runsTray.noTrackedWorkYet": "No tracked work yet",
320
+ "runsTray.emptyDescription": "Background agent work will appear here while it runs and after it finishes.",
321
+ "runsTray.open": "Open",
322
+ "runsTray.stopRun": "Stop {{title}}",
323
+ "runsTray.hideRun": "Hide {{title}}",
324
+ "runsTray.statusRunning": "Running",
325
+ "runsTray.statusDone": "Done",
326
+ "runsTray.statusFailed": "Failed",
327
+ "runsTray.statusStopped": "Stopped",
328
+ "runsTray.updatedJustNow": "Updated just now",
329
+ "runsTray.finishedJustNow": "Finished just now",
330
+ "runsTray.updatedMinutes": "Updated {{count}}m ago",
331
+ "runsTray.finishedMinutes": "Finished {{count}}m ago",
332
+ "runsTray.updatedHours": "Updated {{count}}h ago",
333
+ "runsTray.finishedHours": "Finished {{count}}h ago",
334
+ "runsTray.updatedDate": "Updated {{date}}",
335
+ "runsTray.finishedDate": "Finished {{date}}",
336
+ "codeRequired.fallbackDetail": "Edit locally or use Builder.io to edit this code in the cloud and continue customizing the app any way you like.",
337
+ "codeRequired.defaultFeature": "Make the requested code changes to this app",
338
+ "codeRequired.branchError": "Failed to create branch",
339
+ "codeRequired.title": "Code changes required",
340
+ "codeRequired.subtitleWithFeature": '"{{feature}}" creates or modifies source code, which needs Desktop or Builder from this surface.',
341
+ "codeRequired.subtitle": "This action creates or modifies source code, which needs Desktop or Builder from this surface.",
342
+ "codeRequired.desktopTitle": "Use Agent Native Desktop",
343
+ "codeRequired.desktopDescription": "Open the project in the desktop app to enable source edits and CLI access.",
344
+ "codeRequired.builderAgentTitle": "Use Builder.io Agent",
345
+ "codeRequired.builderAgentDescription": "Let our cloud agent make the changes for you. You'll get a link to preview and deploy.",
346
+ "codeRequired.codeChangeTitle": "This requires a code change",
347
+ "codeRequired.codeChangeBadge": "Code change",
348
+ "codeRequired.connectBuilderTitle": "Connect Builder.io",
349
+ "codeRequired.connectBuilderDescription": "Connect Builder to enable cloud-based code changes from this app.",
350
+ "codeRequired.setupRequired": "Setup required",
351
+ "codeRequired.branchCreated": "Branch created",
352
+ "codeRequired.close": "Close",
353
+ };
354
+ function interpolateFallbackMessage(template, options) {
355
+ return template.replace(/\{\{(\w+)\}\}/g, (_, name) => {
356
+ const value = options?.[name];
357
+ return value == null ? "" : String(value);
358
+ });
359
+ }
360
+ function fallbackMessage(key, options) {
361
+ const count = Number(options?.count);
362
+ const pluralKey = Number.isFinite(count) && count === 1 ? `${key}_one` : `${key}_other`;
363
+ const template = CORE_FALLBACK_MESSAGES[pluralKey] ?? CORE_FALLBACK_MESSAGES[key];
364
+ return template ? interpolateFallbackMessage(template, options) : key;
365
+ }
305
366
  export function useT() {
306
- return useTranslation().t;
367
+ const { t } = useTranslation();
368
+ return useCallback((key, options) => {
369
+ const translated = t(key, options);
370
+ return translated === key ? fallbackMessage(key, options) : translated;
371
+ }, [t]);
307
372
  }
308
373
  export function useFormatters() {
309
- const { locale } = useLocale();
374
+ const context = useContext(LocaleContext);
375
+ const locale = context?.locale ?? DEFAULT_LOCALE;
310
376
  return useMemo(() => ({
311
377
  formatDate(value, options) {
312
378
  return new Intl.DateTimeFormat(locale, options).format(value instanceof Date ? value : new Date(value));
@@ -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;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,GAK5B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,GAK5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AA0ChE,MAAM,aAAa,GAAG,aAA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AAiB,YAAE,MAAM,CAAC,KAAK,GAAQ,GAC9B,EAC3B,eAAM,SAAS,EAAC,0DAA0D,YACvE,MAAM,CAAC,WAAW,GACd,IACH,KAhBD,MAAM,CAAC,KAAK,CAiBI,CACxB,CAAC,GACuB,GACH,GACH,IACJ,GACnB,CACP,CAAC;AACJ,CAAC","sourcesContent":["import * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { IconCheck, IconChevronDown, IconLanguage } from \"@tabler/icons-react\";\nimport i18next, { type i18n as I18nInstance } from \"i18next\";\nimport React, {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport {\n I18nextProvider,\n initReactI18next,\n useTranslation,\n} from \"react-i18next\";\nimport { callAction } from \"./use-action.js\";\nimport { setClientAppState } from \"./application-state.js\";\nimport {\n DEFAULT_LOCALE,\n LOCALE_HYDRATION_GLOBAL,\n LOCALE_METADATA,\n LOCALE_STORAGE_KEY,\n SUPPORTED_LOCALES,\n localeDirection,\n normalizeLocalizationPreference,\n resolveLocaleFromCandidates,\n resolveLocaleFromPreference,\n type LocaleCode,\n type LocaleMetadata,\n type LocalePreference,\n type LocalizationPreference,\n} from \"../localization/shared.js\";\n\nexport {\n DEFAULT_LOCALE,\n LOCALE_HYDRATION_GLOBAL,\n LOCALE_METADATA,\n LOCALE_STORAGE_KEY,\n SUPPORTED_LOCALES,\n localeDirection,\n normalizeLocaleCode,\n normalizeLocalePreference,\n normalizeLocalizationPreference,\n resolveLocaleFromCandidates,\n resolveLocaleFromPreference,\n type LocaleCode,\n type LocaleMetadata,\n type LocalePreference,\n type LocalizationPreference,\n} from \"../localization/shared.js\";\nexport { getLocaleInitScript } from \"../localization/server.js\";\n\nexport type LocaleMessages = Record<string, unknown>;\n\nexport interface LocaleHydrationPayload {\n locale?: LocaleCode;\n preference?: LocalizationPreference;\n dir?: \"ltr\" | \"rtl\";\n messages?: LocaleMessages;\n}\n\nexport interface AgentNativeI18nCatalog {\n namespace?: string;\n sourceLocale?: LocaleCode;\n messages?: LocaleMessages;\n loadMessages?: (locale: LocaleCode) => Promise<LocaleMessages | null>;\n}\n\nexport interface AgentNativeI18nProviderProps {\n children: React.ReactNode;\n catalog?: AgentNativeI18nCatalog;\n initialLocale?: LocaleCode;\n initialPreference?: LocalizationPreference | LocalePreference;\n initialMessages?: LocaleMessages | null;\n persistPreference?: boolean;\n}\n\ninterface LocaleContextValue {\n locale: LocaleCode;\n preference: LocalePreference;\n dir: \"ltr\" | \"rtl\";\n metadata: LocaleMetadata;\n setPreference: (preference: LocalePreference) => Promise<void>;\n loading: boolean;\n}\n\ndeclare global {\n interface Window {\n __AGENT_NATIVE_LOCALE__?: LocaleHydrationPayload;\n }\n}\n\nconst LocaleContext = createContext<LocaleContextValue | null>(null);\n\nconst LANGUAGE_PICKER_COPY: Record<\n LocaleCode,\n { label: string; system: string; systemDescription: string }\n> = {\n \"en-US\": {\n label: \"Language\",\n system: \"System\",\n systemDescription: \"Use your browser language\",\n },\n \"zh-CN\": {\n label: \"语言\",\n system: \"系统\",\n systemDescription: \"使用浏览器语言\",\n },\n \"es-ES\": {\n label: \"Idioma\",\n system: \"Sistema\",\n systemDescription: \"Usar el idioma del navegador\",\n },\n \"fr-FR\": {\n label: \"Langue\",\n system: \"Système\",\n systemDescription: \"Utiliser la langue du navigateur\",\n },\n \"de-DE\": {\n label: \"Sprache\",\n system: \"System\",\n systemDescription: \"Browsersprache verwenden\",\n },\n \"ja-JP\": {\n label: \"言語\",\n system: \"システム\",\n systemDescription: \"ブラウザーの言語を使用\",\n },\n \"ko-KR\": {\n label: \"언어\",\n system: \"시스템\",\n systemDescription: \"브라우저 언어 사용\",\n },\n \"pt-BR\": {\n label: \"Idioma\",\n system: \"Sistema\",\n systemDescription: \"Usar o idioma do navegador\",\n },\n \"hi-IN\": {\n label: \"भाषा\",\n system: \"सिस्टम\",\n systemDescription: \"ब्राउज़र की भाषा का उपयोग करें\",\n },\n \"ar-SA\": {\n label: \"اللغة\",\n system: \"النظام\",\n systemDescription: \"استخدام لغة المتصفح\",\n },\n};\n\nfunction browserLanguageCandidates(): string[] {\n if (typeof navigator === \"undefined\") return [];\n return navigator.languages?.length\n ? [...navigator.languages]\n : navigator.language\n ? [navigator.language]\n : [];\n}\n\nfunction readStoredPreference(): LocalePreference | null {\n if (typeof window === \"undefined\") return null;\n try {\n return normalizeLocalizationPreference(\n window.localStorage.getItem(LOCALE_STORAGE_KEY),\n ).locale;\n } catch {\n return null;\n }\n}\n\nfunction writeStoredPreference(preference: LocalePreference) {\n if (typeof window === \"undefined\") return;\n try {\n window.localStorage.setItem(LOCALE_STORAGE_KEY, preference);\n } catch {\n // Ignore storage-denied browsers; the in-memory provider state still works.\n }\n}\n\nfunction readHydrationPayload(): LocaleHydrationPayload {\n if (typeof window === \"undefined\") return {};\n return window[LOCALE_HYDRATION_GLOBAL] ?? {};\n}\n\nfunction resolveInitialState(args: {\n initialLocale?: LocaleCode;\n initialPreference?: LocalizationPreference | LocalePreference;\n}): { locale: LocaleCode; preference: LocalePreference } {\n const hydration = readHydrationPayload();\n const preference = normalizeLocalizationPreference(\n args.initialPreference ?? hydration.preference ?? readStoredPreference(),\n ).locale;\n const locale =\n args.initialLocale ??\n hydration.locale ??\n resolveLocaleFromPreference(preference, browserLanguageCandidates());\n return { locale, preference };\n}\n\nfunction normalizeLoadedMessages(value: unknown): LocaleMessages | null {\n if (!value || typeof value !== \"object\" || Array.isArray(value)) return null;\n const maybeDefault = (value as { default?: unknown }).default;\n if (\n maybeDefault &&\n typeof maybeDefault === \"object\" &&\n !Array.isArray(maybeDefault)\n ) {\n return maybeDefault as LocaleMessages;\n }\n return value as LocaleMessages;\n}\n\nfunction createI18nInstance(args: {\n namespace: string;\n sourceLocale: LocaleCode;\n messages: LocaleMessages;\n initialLocale: LocaleCode;\n initialMessages?: LocaleMessages | null;\n}): I18nInstance {\n const instance = i18next.createInstance();\n const resources: Record<string, Record<string, LocaleMessages>> = {\n [args.sourceLocale]: {\n [args.namespace]: args.messages,\n },\n };\n if (args.initialLocale !== args.sourceLocale && args.initialMessages) {\n resources[args.initialLocale] = {\n [args.namespace]: args.initialMessages,\n };\n }\n void instance.use(initReactI18next).init({\n resources,\n lng: args.initialLocale,\n fallbackLng: args.sourceLocale,\n defaultNS: args.namespace,\n ns: [args.namespace],\n interpolation: { escapeValue: false },\n react: { useSuspense: false },\n returnNull: false,\n initAsync: false,\n });\n return instance;\n}\n\nexport function AgentNativeI18nProvider({\n children,\n catalog,\n initialLocale,\n initialPreference,\n initialMessages,\n persistPreference = true,\n}: AgentNativeI18nProviderProps) {\n const namespace = catalog?.namespace ?? \"translation\";\n const sourceLocale = catalog?.sourceLocale ?? DEFAULT_LOCALE;\n const sourceMessages = catalog?.messages ?? {};\n const loadMessages = catalog?.loadMessages;\n const hydration = readHydrationPayload();\n const initialState = useMemo(\n () => resolveInitialState({ initialLocale, initialPreference }),\n [initialLocale, initialPreference],\n );\n const [preference, setPreferenceState] = useState<LocalePreference>(\n initialState.preference,\n );\n const [locale, setLocale] = useState<LocaleCode>(initialState.locale);\n const [loading, setLoading] = useState(false);\n const i18nRef = useRef<I18nInstance | null>(null);\n\n if (!i18nRef.current) {\n const preloadedMessages = normalizeLoadedMessages(\n hydration.locale === initialState.locale && hydration.messages\n ? hydration.messages\n : initialMessages,\n );\n i18nRef.current = createI18nInstance({\n namespace,\n sourceLocale,\n messages:\n hydration.locale === sourceLocale && hydration.messages\n ? hydration.messages\n : sourceMessages,\n initialLocale: initialState.locale,\n initialMessages: preloadedMessages,\n });\n }\n\n const i18n = i18nRef.current;\n\n useEffect(() => {\n if (i18n.hasResourceBundle(sourceLocale, namespace)) {\n i18n.addResourceBundle(\n sourceLocale,\n namespace,\n sourceMessages,\n true,\n true,\n );\n }\n }, [i18n, namespace, sourceLocale, sourceMessages]);\n\n useEffect(() => {\n const nextLocale =\n preference === \"system\"\n ? resolveLocaleFromCandidates(browserLanguageCandidates())\n : preference;\n setLocale(nextLocale);\n }, [preference]);\n\n useEffect(() => {\n let cancelled = false;\n\n async function applyLocale() {\n setLoading(true);\n try {\n if (\n locale !== sourceLocale &&\n !i18n.hasResourceBundle(locale, namespace)\n ) {\n const preloaded =\n hydration.locale === locale && hydration.messages\n ? hydration.messages\n : initialLocale === locale && initialMessages\n ? initialMessages\n : null;\n const loaded = preloaded ?? (await loadMessages?.(locale));\n const messages = normalizeLoadedMessages(loaded);\n if (messages) {\n i18n.addResourceBundle(locale, namespace, messages, true, true);\n }\n }\n if (!cancelled) {\n await i18n.changeLanguage(locale);\n }\n } finally {\n if (!cancelled) setLoading(false);\n }\n }\n\n void applyLocale();\n return () => {\n cancelled = true;\n };\n }, [\n hydration.locale,\n hydration.messages,\n i18n,\n initialLocale,\n initialMessages,\n loadMessages,\n locale,\n namespace,\n sourceLocale,\n ]);\n\n useEffect(() => {\n if (typeof document === \"undefined\") return;\n const dir = localeDirection(locale);\n const root = document.documentElement;\n root.setAttribute(\"lang\", locale);\n root.setAttribute(\"dir\", dir);\n root.setAttribute(\"data-locale\", locale);\n }, [locale]);\n\n useEffect(() => {\n if (!persistPreference) return;\n let cancelled = false;\n callAction<LocalizationPreference>(\n \"get-localization-preference\",\n undefined,\n { method: \"GET\" },\n )\n .then((value) => {\n if (cancelled) return;\n const normalized = normalizeLocalizationPreference(value).locale;\n setPreferenceState(normalized);\n writeStoredPreference(normalized);\n })\n .catch(() => {\n // Anonymous/public routes use localStorage/browser language only.\n });\n return () => {\n cancelled = true;\n };\n }, [persistPreference]);\n\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n const onStorage = (event: StorageEvent) => {\n if (event.key !== LOCALE_STORAGE_KEY || event.newValue == null) return;\n setPreferenceState(\n normalizeLocalizationPreference(event.newValue).locale,\n );\n };\n window.addEventListener(\"storage\", onStorage);\n return () => window.removeEventListener(\"storage\", onStorage);\n }, []);\n\n useEffect(() => {\n void setClientAppState(\n \"localization\",\n {\n locale,\n preference,\n dir: localeDirection(locale),\n },\n { requestSource: \"localization\" },\n ).catch(() => {\n // Public/anonymous pages cannot write app-state; localization still works.\n });\n }, [locale, preference]);\n\n const setPreference = useCallback(\n async (next: LocalePreference) => {\n const normalized = normalizeLocalizationPreference(next).locale;\n setPreferenceState(normalized);\n writeStoredPreference(normalized);\n if (!persistPreference) return;\n try {\n await callAction<LocalizationPreference>(\n \"set-localization-preference\",\n {\n locale: normalized,\n },\n );\n } catch (error) {\n const status = (error as { status?: unknown })?.status;\n if (status !== 401 && status !== 403) {\n throw error;\n }\n }\n },\n [persistPreference],\n );\n\n const context = useMemo<LocaleContextValue>(\n () => ({\n locale,\n preference,\n dir: localeDirection(locale),\n metadata: LOCALE_METADATA[locale],\n setPreference,\n loading,\n }),\n [loading, locale, preference, setPreference],\n );\n\n return (\n <LocaleContext.Provider value={context}>\n <I18nextProvider i18n={i18n}>{children}</I18nextProvider>\n </LocaleContext.Provider>\n );\n}\n\nexport function useLocale(): LocaleContextValue {\n const value = useContext(LocaleContext);\n if (!value) {\n throw new Error(\"useLocale must be used within AgentNativeI18nProvider\");\n }\n return value;\n}\n\nexport function useT() {\n return useTranslation().t;\n}\n\nexport function useFormatters() {\n const { locale } = useLocale();\n return useMemo(\n () => ({\n formatDate(\n value: Date | number | string,\n options?: Intl.DateTimeFormatOptions,\n ) {\n return new Intl.DateTimeFormat(locale, options).format(\n value instanceof Date ? value : new Date(value),\n );\n },\n formatNumber(value: number, options?: Intl.NumberFormatOptions) {\n return new Intl.NumberFormat(locale, options).format(value);\n },\n formatRelativeTime(\n value: number,\n unit: Intl.RelativeTimeFormatUnit,\n options?: Intl.RelativeTimeFormatOptions,\n ) {\n return new Intl.RelativeTimeFormat(locale, options).format(value, unit);\n },\n formatList(value: string[], options?: Intl.ListFormatOptions) {\n return new Intl.ListFormat(locale, options).format(value);\n },\n }),\n [locale],\n );\n}\n\nexport function LanguagePicker({\n className,\n includeSystem = true,\n label,\n variant = \"select\",\n}: {\n className?: string;\n includeSystem?: boolean;\n label?: string;\n variant?: \"select\" | \"icon\";\n}) {\n const { locale, preference, setPreference } = useLocale();\n const copy =\n LANGUAGE_PICKER_COPY[locale] ?? LANGUAGE_PICKER_COPY[DEFAULT_LOCALE];\n const resolvedLabel = label ?? copy.label;\n const options = [\n ...(includeSystem\n ? [\n {\n value: \"system\" as const,\n label: copy.system,\n description: copy.systemDescription,\n },\n ]\n : []),\n ...SUPPORTED_LOCALES.map((code) => ({\n value: code,\n label:\n LOCALE_METADATA[code].nativeName === LOCALE_METADATA[code].englishName\n ? LOCALE_METADATA[code].nativeName\n : `${LOCALE_METADATA[code].nativeName} (${LOCALE_METADATA[code].englishName})`,\n description: code,\n })),\n ];\n const selected = options.find((option) => option.value === preference);\n\n return (\n <div className={className}>\n <SelectPrimitive.Root\n value={preference}\n onValueChange={(value) =>\n void setPreference(normalizeLocalizationPreference(value).locale)\n }\n >\n <SelectPrimitive.Trigger\n className={\n variant === \"icon\"\n ? \"flex h-8 w-8 items-center justify-center rounded-md border border-border bg-background text-foreground outline-none transition-colors hover:bg-accent/40 data-[placeholder]:text-muted-foreground\"\n : \"flex h-9 w-full items-center justify-between rounded-md border border-border bg-background px-3 text-start text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 data-[placeholder]:text-muted-foreground\"\n }\n aria-label={resolvedLabel}\n title={selected?.label ?? resolvedLabel}\n >\n <span className=\"flex min-w-0 items-center gap-2\">\n <IconLanguage className=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n {variant === \"select\" ? (\n <SelectPrimitive.Value>\n <span className=\"truncate\">\n {selected?.label ?? preference}\n </span>\n </SelectPrimitive.Value>\n ) : null}\n </span>\n {variant === \"select\" ? (\n <SelectPrimitive.Icon asChild>\n <IconChevronDown className=\"h-3.5 w-3.5 text-muted-foreground\" />\n </SelectPrimitive.Icon>\n ) : null}\n </SelectPrimitive.Trigger>\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n position=\"popper\"\n sideOffset={6}\n className={\n variant === \"icon\"\n ? \"z-[9999] min-w-56 overflow-hidden rounded-lg border border-border bg-popover shadow-lg\"\n : \"z-[9999] w-[var(--radix-select-trigger-width)] overflow-hidden rounded-lg border border-border bg-popover shadow-lg\"\n }\n >\n <SelectPrimitive.Viewport className=\"p-1\">\n {options.map((option) => (\n <SelectPrimitive.Item\n key={option.value}\n value={option.value}\n className=\"relative flex w-full cursor-pointer select-none items-start gap-2 rounded-md px-8 py-2.5 text-[12px] outline-none data-[highlighted]:bg-accent/60 data-[state=checked]:bg-accent/40\"\n >\n <span className=\"absolute start-2 top-2.5 flex h-4 w-4 items-center justify-center text-muted-foreground\">\n <SelectPrimitive.ItemIndicator>\n <IconCheck className=\"h-3.5 w-3.5\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <div className=\"flex min-w-0 flex-col\">\n <SelectPrimitive.ItemText>\n <span className=\"text-foreground\">{option.label}</span>\n </SelectPrimitive.ItemText>\n <span className=\"mt-0.5 text-[11px] leading-relaxed text-muted-foreground\">\n {option.description}\n </span>\n </div>\n </SelectPrimitive.Item>\n ))}\n </SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n </SelectPrimitive.Root>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/client/i18n.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,OAAsC,MAAM,SAAS,CAAC;AAC7D,OAAc,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,cAAc,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAA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C,QAAQ,EACjB,UAAU,EAAE,CAAC,EACb,SAAS,EACP,OAAO,KAAK,MAAM;4BAChB,CAAC,CAAC,wFAAwF;4BAC1F,CAAC,CAAC,qHAAqH,YAG3H,KAAC,eAAe,CAAC,QAAQ,IAAC,SAAS,EAAC,KAAK,YACtC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,MAAC,eAAe,CAAC,IAAI,IAEnB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,SAAS,EAAC,qLAAqL,aAE/L,eAAM,SAAS,EAAC,yFAAyF,YACvG,KAAC,eAAe,CAAC,aAAa,cAC5B,KAAC,SAAS,IAAC,SAAS,EAAC,aAAa,GAAG,GACP,GAC3B,EACP,eAAK,SAAS,EAAC,uBAAuB,aACpC,KAAC,eAAe,CAAC,QAAQ,cACvB,eAAM,SAAS,EAAC,iBAAiB,YAAE,MAAM,CAAC,KAAK,GAAQ,GAC9B,EAC3B,eAAM,SAAS,EAAC,0DAA0D,YACvE,MAAM,CAAC,WAAW,GACd,IACH,KAhBD,MAAM,CAAC,KAAK,CAiBI,CACxB,CAAC,GACuB,GACH,GACH,IACJ,GACnB,CACP,CAAC;AACJ,CAAC","sourcesContent":["import * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { IconCheck, IconChevronDown, IconLanguage } from \"@tabler/icons-react\";\nimport i18next, { type i18n as I18nInstance } from \"i18next\";\nimport React, {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport {\n I18nextProvider,\n initReactI18next,\n useTranslation,\n} from \"react-i18next\";\nimport { callAction } from \"./use-action.js\";\nimport { setClientAppState } from \"./application-state.js\";\nimport {\n DEFAULT_LOCALE,\n LOCALE_HYDRATION_GLOBAL,\n LOCALE_METADATA,\n LOCALE_STORAGE_KEY,\n SUPPORTED_LOCALES,\n localeDirection,\n normalizeLocalizationPreference,\n resolveLocaleFromCandidates,\n resolveLocaleFromPreference,\n type LocaleCode,\n type LocaleMetadata,\n type LocalePreference,\n type LocalizationPreference,\n} from \"../localization/shared.js\";\n\nexport {\n DEFAULT_LOCALE,\n LOCALE_HYDRATION_GLOBAL,\n LOCALE_METADATA,\n LOCALE_STORAGE_KEY,\n SUPPORTED_LOCALES,\n localeDirection,\n normalizeLocaleCode,\n normalizeLocalePreference,\n normalizeLocalizationPreference,\n resolveLocaleFromCandidates,\n resolveLocaleFromPreference,\n type LocaleCode,\n type LocaleMetadata,\n type LocalePreference,\n type LocalizationPreference,\n} from \"../localization/shared.js\";\nexport { getLocaleInitScript } from \"../localization/server.js\";\n\nexport type LocaleMessages = Record<string, unknown>;\n\nexport interface LocaleHydrationPayload {\n locale?: LocaleCode;\n preference?: LocalizationPreference;\n dir?: \"ltr\" | \"rtl\";\n messages?: LocaleMessages;\n}\n\nexport interface AgentNativeI18nCatalog {\n namespace?: string;\n sourceLocale?: LocaleCode;\n messages?: LocaleMessages;\n loadMessages?: (locale: LocaleCode) => Promise<LocaleMessages | null>;\n}\n\nexport interface AgentNativeI18nProviderProps {\n children: React.ReactNode;\n catalog?: AgentNativeI18nCatalog;\n initialLocale?: LocaleCode;\n initialPreference?: LocalizationPreference | LocalePreference;\n initialMessages?: LocaleMessages | null;\n persistPreference?: boolean;\n}\n\ninterface LocaleContextValue {\n locale: LocaleCode;\n preference: LocalePreference;\n dir: \"ltr\" | \"rtl\";\n metadata: LocaleMetadata;\n setPreference: (preference: LocalePreference) => Promise<void>;\n loading: boolean;\n}\n\ndeclare global {\n interface Window {\n __AGENT_NATIVE_LOCALE__?: LocaleHydrationPayload;\n }\n}\n\nconst LocaleContext = createContext<LocaleContextValue | null>(null);\n\nconst LANGUAGE_PICKER_COPY: Record<\n LocaleCode,\n { label: string; system: string; systemDescription: string }\n> = {\n \"en-US\": {\n label: \"Language\",\n system: \"System\",\n systemDescription: \"Use your browser language\",\n },\n \"zh-CN\": {\n label: \"语言\",\n system: \"系统\",\n systemDescription: \"使用浏览器语言\",\n },\n \"es-ES\": {\n label: \"Idioma\",\n system: \"Sistema\",\n systemDescription: \"Usar el idioma del navegador\",\n },\n \"fr-FR\": {\n label: \"Langue\",\n system: \"Système\",\n systemDescription: \"Utiliser la langue du navigateur\",\n },\n \"de-DE\": {\n label: \"Sprache\",\n system: \"System\",\n systemDescription: \"Browsersprache verwenden\",\n },\n \"ja-JP\": {\n label: \"言語\",\n system: \"システム\",\n systemDescription: \"ブラウザーの言語を使用\",\n },\n \"ko-KR\": {\n label: \"언어\",\n system: \"시스템\",\n systemDescription: \"브라우저 언어 사용\",\n },\n \"pt-BR\": {\n label: \"Idioma\",\n system: \"Sistema\",\n systemDescription: \"Usar o idioma do navegador\",\n },\n \"hi-IN\": {\n label: \"भाषा\",\n system: \"सिस्टम\",\n systemDescription: \"ब्राउज़र की भाषा का उपयोग करें\",\n },\n \"ar-SA\": {\n label: \"اللغة\",\n system: \"النظام\",\n systemDescription: \"استخدام لغة المتصفح\",\n },\n};\n\nfunction browserLanguageCandidates(): string[] {\n if (typeof navigator === \"undefined\") return [];\n return navigator.languages?.length\n ? [...navigator.languages]\n : navigator.language\n ? [navigator.language]\n : [];\n}\n\nfunction readStoredPreference(): LocalePreference | null {\n if (typeof window === \"undefined\") return null;\n try {\n return normalizeLocalizationPreference(\n window.localStorage.getItem(LOCALE_STORAGE_KEY),\n ).locale;\n } catch {\n return null;\n }\n}\n\nfunction writeStoredPreference(preference: LocalePreference) {\n if (typeof window === \"undefined\") return;\n try {\n window.localStorage.setItem(LOCALE_STORAGE_KEY, preference);\n } catch {\n // Ignore storage-denied browsers; the in-memory provider state still works.\n }\n}\n\nfunction readHydrationPayload(): LocaleHydrationPayload {\n if (typeof window === \"undefined\") return {};\n return window[LOCALE_HYDRATION_GLOBAL] ?? {};\n}\n\nfunction resolveInitialState(args: {\n initialLocale?: LocaleCode;\n initialPreference?: LocalizationPreference | LocalePreference;\n}): { locale: LocaleCode; preference: LocalePreference } {\n const hydration = readHydrationPayload();\n const preference = normalizeLocalizationPreference(\n args.initialPreference ?? hydration.preference ?? readStoredPreference(),\n ).locale;\n const locale =\n args.initialLocale ??\n hydration.locale ??\n resolveLocaleFromPreference(preference, browserLanguageCandidates());\n return { locale, preference };\n}\n\nfunction normalizeLoadedMessages(value: unknown): LocaleMessages | null {\n if (!value || typeof value !== \"object\" || Array.isArray(value)) return null;\n const maybeDefault = (value as { default?: unknown }).default;\n if (\n maybeDefault &&\n typeof maybeDefault === \"object\" &&\n !Array.isArray(maybeDefault)\n ) {\n return maybeDefault as LocaleMessages;\n }\n return value as LocaleMessages;\n}\n\nfunction createI18nInstance(args: {\n namespace: string;\n sourceLocale: LocaleCode;\n messages: LocaleMessages;\n initialLocale: LocaleCode;\n initialMessages?: LocaleMessages | null;\n}): I18nInstance {\n const instance = i18next.createInstance();\n const resources: Record<string, Record<string, LocaleMessages>> = {\n [args.sourceLocale]: {\n [args.namespace]: args.messages,\n },\n };\n if (args.initialLocale !== args.sourceLocale && args.initialMessages) {\n resources[args.initialLocale] = {\n [args.namespace]: args.initialMessages,\n };\n }\n void instance.use(initReactI18next).init({\n resources,\n lng: args.initialLocale,\n fallbackLng: args.sourceLocale,\n defaultNS: args.namespace,\n ns: [args.namespace],\n interpolation: { escapeValue: false },\n react: { useSuspense: false },\n returnNull: false,\n initAsync: false,\n });\n return instance;\n}\n\nexport function AgentNativeI18nProvider({\n children,\n catalog,\n initialLocale,\n initialPreference,\n initialMessages,\n persistPreference = true,\n}: AgentNativeI18nProviderProps) {\n const namespace = catalog?.namespace ?? \"translation\";\n const sourceLocale = catalog?.sourceLocale ?? DEFAULT_LOCALE;\n const sourceMessages = catalog?.messages ?? {};\n const loadMessages = catalog?.loadMessages;\n const hydration = readHydrationPayload();\n const initialState = useMemo(\n () => resolveInitialState({ initialLocale, initialPreference }),\n [initialLocale, initialPreference],\n );\n const [preference, setPreferenceState] = useState<LocalePreference>(\n initialState.preference,\n );\n const [locale, setLocale] = useState<LocaleCode>(initialState.locale);\n const [loading, setLoading] = useState(false);\n const i18nRef = useRef<I18nInstance | null>(null);\n\n if (!i18nRef.current) {\n const preloadedMessages = normalizeLoadedMessages(\n hydration.locale === initialState.locale && hydration.messages\n ? hydration.messages\n : initialMessages,\n );\n i18nRef.current = createI18nInstance({\n namespace,\n sourceLocale,\n messages:\n hydration.locale === sourceLocale && hydration.messages\n ? hydration.messages\n : sourceMessages,\n initialLocale: initialState.locale,\n initialMessages: preloadedMessages,\n });\n }\n\n const i18n = i18nRef.current;\n\n useEffect(() => {\n if (i18n.hasResourceBundle(sourceLocale, namespace)) {\n i18n.addResourceBundle(\n sourceLocale,\n namespace,\n sourceMessages,\n true,\n true,\n );\n }\n }, [i18n, namespace, sourceLocale, sourceMessages]);\n\n useEffect(() => {\n const nextLocale =\n preference === \"system\"\n ? resolveLocaleFromCandidates(browserLanguageCandidates())\n : preference;\n setLocale(nextLocale);\n }, [preference]);\n\n useEffect(() => {\n let cancelled = false;\n\n async function applyLocale() {\n setLoading(true);\n try {\n if (\n locale !== sourceLocale &&\n !i18n.hasResourceBundle(locale, namespace)\n ) {\n const preloaded =\n hydration.locale === locale && hydration.messages\n ? hydration.messages\n : initialLocale === locale && initialMessages\n ? initialMessages\n : null;\n const loaded = preloaded ?? (await loadMessages?.(locale));\n const messages = normalizeLoadedMessages(loaded);\n if (messages) {\n i18n.addResourceBundle(locale, namespace, messages, true, true);\n }\n }\n if (!cancelled) {\n await i18n.changeLanguage(locale);\n }\n } finally {\n if (!cancelled) setLoading(false);\n }\n }\n\n void applyLocale();\n return () => {\n cancelled = true;\n };\n }, [\n hydration.locale,\n hydration.messages,\n i18n,\n initialLocale,\n initialMessages,\n loadMessages,\n locale,\n namespace,\n sourceLocale,\n ]);\n\n useEffect(() => {\n if (typeof document === \"undefined\") return;\n const dir = localeDirection(locale);\n const root = document.documentElement;\n root.setAttribute(\"lang\", locale);\n root.setAttribute(\"dir\", dir);\n root.setAttribute(\"data-locale\", locale);\n }, [locale]);\n\n useEffect(() => {\n if (!persistPreference) return;\n let cancelled = false;\n callAction<LocalizationPreference>(\n \"get-localization-preference\",\n undefined,\n { method: \"GET\" },\n )\n .then((value) => {\n if (cancelled) return;\n const normalized = normalizeLocalizationPreference(value).locale;\n setPreferenceState(normalized);\n writeStoredPreference(normalized);\n })\n .catch(() => {\n // Anonymous/public routes use localStorage/browser language only.\n });\n return () => {\n cancelled = true;\n };\n }, [persistPreference]);\n\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n const onStorage = (event: StorageEvent) => {\n if (event.key !== LOCALE_STORAGE_KEY || event.newValue == null) return;\n setPreferenceState(\n normalizeLocalizationPreference(event.newValue).locale,\n );\n };\n window.addEventListener(\"storage\", onStorage);\n return () => window.removeEventListener(\"storage\", onStorage);\n }, []);\n\n useEffect(() => {\n void setClientAppState(\n \"localization\",\n {\n locale,\n preference,\n dir: localeDirection(locale),\n },\n { requestSource: \"localization\" },\n ).catch(() => {\n // Public/anonymous pages cannot write app-state; localization still works.\n });\n }, [locale, preference]);\n\n const setPreference = useCallback(\n async (next: LocalePreference) => {\n const normalized = normalizeLocalizationPreference(next).locale;\n setPreferenceState(normalized);\n writeStoredPreference(normalized);\n if (!persistPreference) return;\n try {\n await callAction<LocalizationPreference>(\n \"set-localization-preference\",\n {\n locale: normalized,\n },\n );\n } catch (error) {\n const status = (error as { status?: unknown })?.status;\n if (status !== 401 && status !== 403) {\n throw error;\n }\n }\n },\n [persistPreference],\n );\n\n const context = useMemo<LocaleContextValue>(\n () => ({\n locale,\n preference,\n dir: localeDirection(locale),\n metadata: LOCALE_METADATA[locale],\n setPreference,\n loading,\n }),\n [loading, locale, preference, setPreference],\n );\n\n return (\n <LocaleContext.Provider value={context}>\n <I18nextProvider i18n={i18n}>{children}</I18nextProvider>\n </LocaleContext.Provider>\n );\n}\n\nexport function useLocale(): LocaleContextValue {\n const value = useContext(LocaleContext);\n if (!value) {\n throw new Error(\"useLocale must be used within AgentNativeI18nProvider\");\n }\n return value;\n}\n\nconst CORE_FALLBACK_MESSAGES: Record<string, string> = {\n \"runsTray.runs\": \"Runs\",\n \"runsTray.agentRuns\": \"Agent runs\",\n \"runsTray.activeRun_one\": \"{{count}} active run\",\n \"runsTray.activeRun_other\": \"{{count}} active runs\",\n \"runsTray.failedRun_one\": \"{{count}} failed run\",\n \"runsTray.failedRun_other\": \"{{count}} failed runs\",\n \"runsTray.recentRuns\": \"Recent runs\",\n \"runsTray.noRecentRuns\": \"No recent runs\",\n \"runsTray.ariaAgentRuns\": \"Agent runs, {{label}}\",\n \"runsTray.summaryRunning\": \"{{activeCount}} running\",\n \"runsTray.summaryRunningRecent\":\n \"{{activeCount}} running · {{terminalCount}} recent\",\n \"runsTray.summaryRecent_one\": \"{{count}} recent run\",\n \"runsTray.summaryRecent_other\": \"{{count}} recent runs\",\n \"runsTray.noTrackedWorkYet\": \"No tracked work yet\",\n \"runsTray.emptyDescription\":\n \"Background agent work will appear here while it runs and after it finishes.\",\n \"runsTray.open\": \"Open\",\n \"runsTray.stopRun\": \"Stop {{title}}\",\n \"runsTray.hideRun\": \"Hide {{title}}\",\n \"runsTray.statusRunning\": \"Running\",\n \"runsTray.statusDone\": \"Done\",\n \"runsTray.statusFailed\": \"Failed\",\n \"runsTray.statusStopped\": \"Stopped\",\n \"runsTray.updatedJustNow\": \"Updated just now\",\n \"runsTray.finishedJustNow\": \"Finished just now\",\n \"runsTray.updatedMinutes\": \"Updated {{count}}m ago\",\n \"runsTray.finishedMinutes\": \"Finished {{count}}m ago\",\n \"runsTray.updatedHours\": \"Updated {{count}}h ago\",\n \"runsTray.finishedHours\": \"Finished {{count}}h ago\",\n \"runsTray.updatedDate\": \"Updated {{date}}\",\n \"runsTray.finishedDate\": \"Finished {{date}}\",\n \"codeRequired.fallbackDetail\":\n \"Edit locally or use Builder.io to edit this code in the cloud and continue customizing the app any way you like.\",\n \"codeRequired.defaultFeature\": \"Make the requested code changes to this app\",\n \"codeRequired.branchError\": \"Failed to create branch\",\n \"codeRequired.title\": \"Code changes required\",\n \"codeRequired.subtitleWithFeature\":\n '\"{{feature}}\" creates or modifies source code, which needs Desktop or Builder from this surface.',\n \"codeRequired.subtitle\":\n \"This action creates or modifies source code, which needs Desktop or Builder from this surface.\",\n \"codeRequired.desktopTitle\": \"Use Agent Native Desktop\",\n \"codeRequired.desktopDescription\":\n \"Open the project in the desktop app to enable source edits and CLI access.\",\n \"codeRequired.builderAgentTitle\": \"Use Builder.io Agent\",\n \"codeRequired.builderAgentDescription\":\n \"Let our cloud agent make the changes for you. You'll get a link to preview and deploy.\",\n \"codeRequired.codeChangeTitle\": \"This requires a code change\",\n \"codeRequired.codeChangeBadge\": \"Code change\",\n \"codeRequired.connectBuilderTitle\": \"Connect Builder.io\",\n \"codeRequired.connectBuilderDescription\":\n \"Connect Builder to enable cloud-based code changes from this app.\",\n \"codeRequired.setupRequired\": \"Setup required\",\n \"codeRequired.branchCreated\": \"Branch created\",\n \"codeRequired.close\": \"Close\",\n};\n\nfunction interpolateFallbackMessage(\n template: string,\n options?: Record<string, unknown>,\n) {\n return template.replace(/\\{\\{(\\w+)\\}\\}/g, (_, name: string) => {\n const value = options?.[name];\n return value == null ? \"\" : String(value);\n });\n}\n\nfunction fallbackMessage(key: string, options?: Record<string, unknown>) {\n const count = Number(options?.count);\n const pluralKey =\n Number.isFinite(count) && count === 1 ? `${key}_one` : `${key}_other`;\n const template =\n CORE_FALLBACK_MESSAGES[pluralKey] ?? CORE_FALLBACK_MESSAGES[key];\n return template ? interpolateFallbackMessage(template, options) : key;\n}\n\nexport function useT() {\n const { t } = useTranslation();\n return useCallback(\n (key: string, options?: Record<string, unknown>) => {\n const translated = t(key, options);\n return translated === key ? fallbackMessage(key, options) : translated;\n },\n [t],\n );\n}\n\nexport function useFormatters() {\n const context = useContext(LocaleContext);\n const locale = context?.locale ?? DEFAULT_LOCALE;\n return useMemo(\n () => ({\n formatDate(\n value: Date | number | string,\n options?: Intl.DateTimeFormatOptions,\n ) {\n return new Intl.DateTimeFormat(locale, options).format(\n value instanceof Date ? value : new Date(value),\n );\n },\n formatNumber(value: number, options?: Intl.NumberFormatOptions) {\n return new Intl.NumberFormat(locale, options).format(value);\n },\n formatRelativeTime(\n value: number,\n unit: Intl.RelativeTimeFormatUnit,\n options?: Intl.RelativeTimeFormatOptions,\n ) {\n return new Intl.RelativeTimeFormat(locale, options).format(value, unit);\n },\n formatList(value: string[], options?: Intl.ListFormatOptions) {\n return new Intl.ListFormat(locale, options).format(value);\n },\n }),\n [locale],\n );\n}\n\nexport function LanguagePicker({\n className,\n includeSystem = true,\n label,\n variant = \"select\",\n}: {\n className?: string;\n includeSystem?: boolean;\n label?: string;\n variant?: \"select\" | \"icon\";\n}) {\n const { locale, preference, setPreference } = useLocale();\n const copy =\n LANGUAGE_PICKER_COPY[locale] ?? LANGUAGE_PICKER_COPY[DEFAULT_LOCALE];\n const resolvedLabel = label ?? copy.label;\n const options = [\n ...(includeSystem\n ? [\n {\n value: \"system\" as const,\n label: copy.system,\n description: copy.systemDescription,\n },\n ]\n : []),\n ...SUPPORTED_LOCALES.map((code) => ({\n value: code,\n label:\n LOCALE_METADATA[code].nativeName === LOCALE_METADATA[code].englishName\n ? LOCALE_METADATA[code].nativeName\n : `${LOCALE_METADATA[code].nativeName} (${LOCALE_METADATA[code].englishName})`,\n description: code,\n })),\n ];\n const selected = options.find((option) => option.value === preference);\n\n return (\n <div className={className}>\n <SelectPrimitive.Root\n value={preference}\n onValueChange={(value) =>\n void setPreference(normalizeLocalizationPreference(value).locale)\n }\n >\n <SelectPrimitive.Trigger\n className={\n variant === \"icon\"\n ? \"flex h-8 w-8 items-center justify-center rounded-md border border-border bg-background text-foreground outline-none transition-colors hover:bg-accent/40 data-[placeholder]:text-muted-foreground\"\n : \"flex h-9 w-full items-center justify-between rounded-md border border-border bg-background px-3 text-start text-[12px] text-foreground outline-none transition-colors hover:bg-accent/40 data-[placeholder]:text-muted-foreground\"\n }\n aria-label={resolvedLabel}\n title={selected?.label ?? resolvedLabel}\n >\n <span className=\"flex min-w-0 items-center gap-2\">\n <IconLanguage className=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n {variant === \"select\" ? (\n <SelectPrimitive.Value>\n <span className=\"truncate\">\n {selected?.label ?? preference}\n </span>\n </SelectPrimitive.Value>\n ) : null}\n </span>\n {variant === \"select\" ? (\n <SelectPrimitive.Icon asChild>\n <IconChevronDown className=\"h-3.5 w-3.5 text-muted-foreground\" />\n </SelectPrimitive.Icon>\n ) : null}\n </SelectPrimitive.Trigger>\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n position=\"popper\"\n sideOffset={6}\n className={\n variant === \"icon\"\n ? \"z-[9999] min-w-56 overflow-hidden rounded-lg border border-border bg-popover shadow-lg\"\n : \"z-[9999] w-[var(--radix-select-trigger-width)] overflow-hidden rounded-lg border border-border bg-popover shadow-lg\"\n }\n >\n <SelectPrimitive.Viewport className=\"p-1\">\n {options.map((option) => (\n <SelectPrimitive.Item\n key={option.value}\n value={option.value}\n className=\"relative flex w-full cursor-pointer select-none items-start gap-2 rounded-md px-8 py-2.5 text-[12px] outline-none data-[highlighted]:bg-accent/60 data-[state=checked]:bg-accent/40\"\n >\n <span className=\"absolute start-2 top-2.5 flex h-4 w-4 items-center justify-center text-muted-foreground\">\n <SelectPrimitive.ItemIndicator>\n <IconCheck className=\"h-3.5 w-3.5\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <div className=\"flex min-w-0 flex-col\">\n <SelectPrimitive.ItemText>\n <span className=\"text-foreground\">{option.label}</span>\n </SelectPrimitive.ItemText>\n <span className=\"mt-0.5 text-[11px] leading-relaxed text-muted-foreground\">\n {option.description}\n </span>\n </div>\n </SelectPrimitive.Item>\n ))}\n </SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n </SelectPrimitive.Root>\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationCard.d.ts","sourceRoot":"","sources":["../../../src/client/integrations/IntegrationCard.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AA+BnE,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,2CAmIA"}
1
+ {"version":3,"file":"IntegrationCard.d.ts","sourceRoot":"","sources":["../../../src/client/integrations/IntegrationCard.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAgCnE,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,2CAuIA"}
@@ -3,6 +3,7 @@ import { useState, useCallback } from "react";
3
3
  import { IconBrandSlack, IconBrandTelegram, IconBrandWhatsapp, IconMessageCircle, IconChevronDown, IconChevronRight, IconCopy, IconCheck, } from "@tabler/icons-react";
4
4
  import { agentNativePath } from "../api-path.js";
5
5
  import { Tooltip, TooltipContent, TooltipTrigger, } from "../components/ui/tooltip.js";
6
+ import { useT } from "../i18n.js";
6
7
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7
8
  const platformIcons = {
8
9
  slack: IconBrandSlack,
@@ -18,6 +19,7 @@ function StatusDot({ enabled, configured, }) {
18
19
  return _jsx("span", { className: `inline-block h-2 w-2 rounded-full ${color}` });
19
20
  }
20
21
  export function IntegrationCard({ status, onRefresh, }) {
22
+ const t = useT();
21
23
  const [expanded, setExpanded] = useState(false);
22
24
  const [toggling, setToggling] = useState(false);
23
25
  const [copied, setCopied] = useState(false);
@@ -39,9 +41,7 @@ export function IntegrationCard({ status, onRefresh, }) {
39
41
  `Couldn't ${action} ${status.label} (HTTP ${res.status})`);
40
42
  }
41
43
  catch (err) {
42
- setToggleError(err instanceof Error
43
- ? err.message
44
- : "Network error reaching the server");
44
+ setToggleError(err instanceof Error ? err.message : t("integrations.networkError"));
45
45
  }
46
46
  finally {
47
47
  setToggling(false);
@@ -54,6 +54,10 @@ export function IntegrationCard({ status, onRefresh, }) {
54
54
  setCopied(true);
55
55
  setTimeout(() => setCopied(false), 2000);
56
56
  }, [status.webhookUrl]);
57
- return (_jsxs("div", { className: "rounded-md border border-border bg-background", children: [_jsxs("button", { onClick: () => setExpanded(!expanded), className: "flex w-full items-center gap-2 px-2.5 py-2 text-start hover:bg-accent/50", children: [expanded ? (_jsx(IconChevronDown, { size: 12, className: "text-muted-foreground shrink-0" })) : (_jsx(IconChevronRight, { size: 12, className: "text-muted-foreground shrink-0 rtl:-scale-x-100" })), _jsx(Icon, { size: 16, className: "text-muted-foreground shrink-0" }), _jsx("span", { className: "flex-1 text-xs font-medium text-foreground", children: status.label }), _jsx(StatusDot, { enabled: status.enabled, configured: status.configured })] }), expanded && (_jsxs("div", { className: "border-t border-border px-2.5 py-2 space-y-2", children: [status.webhookUrl && (_jsxs("div", { children: [_jsx("div", { className: "text-[10px] font-medium text-muted-foreground mb-1", children: "Webhook URL" }), _jsxs("div", { className: "flex items-center gap-1", children: [_jsx("code", { className: "flex-1 truncate rounded bg-muted px-1.5 py-0.5 text-[10px] text-foreground", children: status.webhookUrl }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { onClick: handleCopy, className: "shrink-0 rounded p-0.5 text-muted-foreground hover:text-foreground hover:bg-accent/50", children: copied ? (_jsx(IconCheck, { size: 12 })) : (_jsx(IconCopy, { size: 12 })) }) }), _jsx(TooltipContent, { children: "Copy webhook URL" })] })] })] })), status.error && (_jsx("p", { className: "text-[10px] text-destructive", children: status.error })), toggleError && (_jsx("p", { className: "text-[10px] text-destructive", children: toggleError })), !status.configured && !status.error && (_jsx("p", { className: "text-[10px] text-muted-foreground", children: "Not configured. Set the required secrets to enable this integration." })), status.configured && (_jsx("button", { onClick: handleToggle, disabled: toggling, className: "w-full rounded-md border border-border px-2 py-1 text-[11px] font-medium text-foreground hover:bg-accent/50 disabled:opacity-50", children: toggling ? "..." : status.enabled ? "Disable" : "Enable" }))] }))] }));
57
+ return (_jsxs("div", { className: "rounded-md border border-border bg-background", children: [_jsxs("button", { onClick: () => setExpanded(!expanded), className: "flex w-full items-center gap-2 px-2.5 py-2 text-start hover:bg-accent/50", children: [expanded ? (_jsx(IconChevronDown, { size: 12, className: "text-muted-foreground shrink-0" })) : (_jsx(IconChevronRight, { size: 12, className: "text-muted-foreground shrink-0 rtl:-scale-x-100" })), _jsx(Icon, { size: 16, className: "text-muted-foreground shrink-0" }), _jsx("span", { className: "flex-1 text-xs font-medium text-foreground", children: status.label }), _jsx(StatusDot, { enabled: status.enabled, configured: status.configured })] }), expanded && (_jsxs("div", { className: "border-t border-border px-2.5 py-2 space-y-2", children: [status.webhookUrl && (_jsxs("div", { children: [_jsx("div", { className: "text-[10px] font-medium text-muted-foreground mb-1", children: t("integrations.webhookUrl") }), _jsxs("div", { className: "flex items-center gap-1", children: [_jsx("code", { className: "flex-1 truncate rounded bg-muted px-1.5 py-0.5 text-[10px] text-foreground", children: status.webhookUrl }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { onClick: handleCopy, className: "shrink-0 rounded p-0.5 text-muted-foreground hover:text-foreground hover:bg-accent/50", children: copied ? (_jsx(IconCheck, { size: 12 })) : (_jsx(IconCopy, { size: 12 })) }) }), _jsx(TooltipContent, { children: t("integrations.copyWebhookUrl") })] })] })] })), status.error && (_jsx("p", { className: "text-[10px] text-destructive", children: status.error })), toggleError && (_jsx("p", { className: "text-[10px] text-destructive", children: toggleError })), !status.configured && !status.error && (_jsx("p", { className: "text-[10px] text-muted-foreground", children: t("integrations.notConfigured") })), status.configured && (_jsx("button", { onClick: handleToggle, disabled: toggling, className: "w-full rounded-md border border-border px-2 py-1 text-[11px] font-medium text-foreground hover:bg-accent/50 disabled:opacity-50", children: toggling
58
+ ? t("integrations.toggling")
59
+ : status.enabled
60
+ ? t("integrations.disable")
61
+ : t("integrations.enable") }))] }))] }));
58
62
  }
59
63
  //# sourceMappingURL=IntegrationCard.js.map