@agent-native/core 0.79.26 → 0.80.0

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 (2322) hide show
  1. package/corpus/README.md +2 -2
  2. package/corpus/core/CHANGELOG.md +39 -0
  3. package/corpus/core/docs/content/a2a-protocol.mdx +97 -9
  4. package/corpus/core/docs/content/actions.mdx +65 -4
  5. package/corpus/core/docs/content/agent-mentions.mdx +68 -4
  6. package/corpus/core/docs/content/agent-surfaces.mdx +112 -8
  7. package/corpus/core/docs/content/agent-teams.mdx +171 -12
  8. package/corpus/core/docs/content/agent-web-surfaces.mdx +51 -4
  9. package/corpus/core/docs/content/authentication.mdx +122 -8
  10. package/corpus/core/docs/content/automations.mdx +110 -8
  11. package/corpus/core/docs/content/blueprint-installer.mdx +42 -4
  12. package/corpus/core/docs/content/cli-adapters.mdx +44 -4
  13. package/corpus/core/docs/content/client.mdx +79 -8
  14. package/corpus/core/docs/content/cloneable-saas.mdx +85 -8
  15. package/corpus/core/docs/content/code-agents-ui.mdx +98 -8
  16. package/corpus/core/docs/content/components.mdx +118 -8
  17. package/corpus/core/docs/content/context-awareness.mdx +98 -8
  18. package/corpus/core/docs/content/creating-templates.mdx +49 -4
  19. package/corpus/core/docs/content/cross-app-sso.mdx +109 -8
  20. package/corpus/core/docs/content/database.mdx +56 -4
  21. package/corpus/core/docs/content/deployment.mdx +103 -8
  22. package/corpus/core/docs/content/dispatch.mdx +134 -8
  23. package/corpus/core/docs/content/drop-in-agent.mdx +63 -4
  24. package/corpus/core/docs/content/durable-background-runs.mdx +98 -8
  25. package/corpus/core/docs/content/durable-resume.mdx +47 -4
  26. package/corpus/core/docs/content/embedding-sdk.mdx +83 -8
  27. package/corpus/core/docs/content/evals.mdx +102 -8
  28. package/corpus/core/docs/content/extensions.mdx +113 -9
  29. package/corpus/core/docs/content/external-agents.mdx +119 -8
  30. package/corpus/core/docs/content/faq.mdx +98 -8
  31. package/corpus/core/docs/content/file-uploads.mdx +61 -4
  32. package/corpus/core/docs/content/frames.mdx +90 -8
  33. package/corpus/core/docs/content/generative-ui.mdx +50 -4
  34. package/corpus/core/docs/content/getting-started.mdx +34 -4
  35. package/corpus/core/docs/content/harness-agents.mdx +77 -8
  36. package/corpus/core/docs/content/human-approval.mdx +50 -4
  37. package/corpus/core/docs/content/key-concepts.mdx +102 -8
  38. package/corpus/core/docs/content/local-file-mode.mdx +58 -4
  39. package/corpus/core/docs/content/locales/ar-SA/a2a-protocol.mdx +97 -9
  40. package/corpus/core/docs/content/locales/ar-SA/actions.mdx +65 -4
  41. package/corpus/core/docs/content/locales/ar-SA/agent-mentions.mdx +68 -4
  42. package/corpus/core/docs/content/locales/ar-SA/agent-surfaces.mdx +114 -8
  43. package/corpus/core/docs/content/locales/ar-SA/agent-teams.mdx +174 -12
  44. package/corpus/core/docs/content/locales/ar-SA/agent-web-surfaces.mdx +49 -4
  45. package/corpus/core/docs/content/locales/ar-SA/authentication.mdx +120 -8
  46. package/corpus/core/docs/content/locales/ar-SA/automations.mdx +110 -8
  47. package/corpus/core/docs/content/locales/ar-SA/blueprint-installer.mdx +42 -4
  48. package/corpus/core/docs/content/locales/ar-SA/cli-adapters.mdx +40 -4
  49. package/corpus/core/docs/content/locales/ar-SA/client.mdx +80 -8
  50. package/corpus/core/docs/content/locales/ar-SA/cloneable-saas.mdx +85 -8
  51. package/corpus/core/docs/content/locales/ar-SA/code-agents-ui.mdx +99 -8
  52. package/corpus/core/docs/content/locales/ar-SA/components.mdx +114 -8
  53. package/corpus/core/docs/content/locales/ar-SA/context-awareness.mdx +100 -8
  54. package/corpus/core/docs/content/locales/ar-SA/creating-templates.mdx +51 -4
  55. package/corpus/core/docs/content/locales/ar-SA/cross-app-sso.mdx +109 -8
  56. package/corpus/core/docs/content/locales/ar-SA/database.mdx +52 -4
  57. package/corpus/core/docs/content/locales/ar-SA/deployment.mdx +103 -8
  58. package/corpus/core/docs/content/locales/ar-SA/dispatch.mdx +134 -8
  59. package/corpus/core/docs/content/locales/ar-SA/drop-in-agent.mdx +63 -4
  60. package/corpus/core/docs/content/locales/ar-SA/durable-resume.mdx +47 -4
  61. package/corpus/core/docs/content/locales/ar-SA/embedding-sdk.mdx +83 -8
  62. package/corpus/core/docs/content/locales/ar-SA/evals.mdx +102 -8
  63. package/corpus/core/docs/content/locales/ar-SA/extensions.mdx +113 -9
  64. package/corpus/core/docs/content/locales/ar-SA/external-agents.mdx +119 -8
  65. package/corpus/core/docs/content/locales/ar-SA/faq.mdx +98 -8
  66. package/corpus/core/docs/content/locales/ar-SA/file-uploads.mdx +61 -4
  67. package/corpus/core/docs/content/locales/ar-SA/frames.mdx +88 -8
  68. package/corpus/core/docs/content/locales/ar-SA/getting-started.mdx +34 -4
  69. package/corpus/core/docs/content/locales/ar-SA/harness-agents.mdx +79 -8
  70. package/corpus/core/docs/content/locales/ar-SA/human-approval.mdx +50 -4
  71. package/corpus/core/docs/content/locales/ar-SA/key-concepts.mdx +107 -8
  72. package/corpus/core/docs/content/locales/ar-SA/local-file-mode.mdx +56 -4
  73. package/corpus/core/docs/content/locales/ar-SA/mcp-apps.mdx +120 -10
  74. package/corpus/core/docs/content/locales/ar-SA/mcp-clients.mdx +133 -8
  75. package/corpus/core/docs/content/locales/ar-SA/mcp-protocol.mdx +105 -8
  76. package/corpus/core/docs/content/locales/ar-SA/messaging.mdx +115 -8
  77. package/corpus/core/docs/content/locales/ar-SA/migration-workbench.mdx +47 -4
  78. package/corpus/core/docs/content/locales/ar-SA/multi-app-workspace.mdx +91 -8
  79. package/corpus/core/docs/content/locales/ar-SA/multi-tenancy.mdx +80 -8
  80. package/corpus/core/docs/content/locales/ar-SA/native-chat-ui.mdx +104 -8
  81. package/corpus/core/docs/content/locales/ar-SA/notifications.mdx +135 -8
  82. package/corpus/core/docs/content/locales/ar-SA/observability.mdx +102 -8
  83. package/corpus/core/docs/content/locales/ar-SA/observational-memory.mdx +87 -8
  84. package/corpus/core/docs/content/locales/ar-SA/onboarding.mdx +45 -4
  85. package/corpus/core/docs/content/locales/ar-SA/plan-plugin.mdx +99 -8
  86. package/corpus/core/docs/content/locales/ar-SA/pr-visual-recap.mdx +125 -8
  87. package/corpus/core/docs/content/locales/ar-SA/processors.mdx +41 -4
  88. package/corpus/core/docs/content/locales/ar-SA/progress.mdx +46 -4
  89. package/corpus/core/docs/content/locales/ar-SA/pure-agent-apps.mdx +48 -4
  90. package/corpus/core/docs/content/locales/ar-SA/real-time-collaboration.mdx +102 -8
  91. package/corpus/core/docs/content/locales/ar-SA/recurring-jobs.mdx +59 -4
  92. package/corpus/core/docs/content/locales/ar-SA/routing.mdx +44 -5
  93. package/corpus/core/docs/content/locales/ar-SA/sandbox-adapters.mdx +43 -4
  94. package/corpus/core/docs/content/locales/ar-SA/security.mdx +80 -8
  95. package/corpus/core/docs/content/locales/ar-SA/server.mdx +173 -12
  96. package/corpus/core/docs/content/locales/ar-SA/sharing.mdx +45 -4
  97. package/corpus/core/docs/content/locales/ar-SA/skills-guide.mdx +118 -9
  98. package/corpus/core/docs/content/locales/ar-SA/template-analytics.mdx +46 -4
  99. package/corpus/core/docs/content/locales/ar-SA/template-assets.mdx +62 -4
  100. package/corpus/core/docs/content/locales/ar-SA/template-brain.mdx +65 -4
  101. package/corpus/core/docs/content/locales/ar-SA/template-calendar.mdx +62 -4
  102. package/corpus/core/docs/content/locales/ar-SA/template-chat.mdx +61 -4
  103. package/corpus/core/docs/content/locales/ar-SA/template-clips.mdx +52 -4
  104. package/corpus/core/docs/content/locales/ar-SA/template-content.mdx +62 -4
  105. package/corpus/core/docs/content/locales/ar-SA/template-design.mdx +101 -4
  106. package/corpus/core/docs/content/locales/ar-SA/template-dispatch.mdx +57 -4
  107. package/corpus/core/docs/content/locales/ar-SA/template-forms.mdx +62 -4
  108. package/corpus/core/docs/content/locales/ar-SA/template-mail.mdx +60 -4
  109. package/corpus/core/docs/content/locales/ar-SA/template-plan.mdx +61 -4
  110. package/corpus/core/docs/content/locales/ar-SA/template-slides.mdx +49 -4
  111. package/corpus/core/docs/content/locales/ar-SA/template-videos.mdx +53 -4
  112. package/corpus/core/docs/content/locales/ar-SA/tracking.mdx +54 -4
  113. package/corpus/core/docs/content/locales/ar-SA/using-your-agent.mdx +51 -4
  114. package/corpus/core/docs/content/locales/ar-SA/voice-input.mdx +43 -4
  115. package/corpus/core/docs/content/locales/ar-SA/what-is-agent-native.mdx +96 -8
  116. package/corpus/core/docs/content/locales/ar-SA/workspace-connections.mdx +128 -8
  117. package/corpus/core/docs/content/locales/ar-SA/workspace-management.mdx +50 -4
  118. package/corpus/core/docs/content/locales/ar-SA/workspace.mdx +112 -8
  119. package/corpus/core/docs/content/locales/ar-SA/writing-agent-instructions.mdx +41 -4
  120. package/corpus/core/docs/content/locales/de-DE/a2a-protocol.mdx +99 -9
  121. package/corpus/core/docs/content/locales/de-DE/actions.mdx +67 -4
  122. package/corpus/core/docs/content/locales/de-DE/agent-mentions.mdx +68 -4
  123. package/corpus/core/docs/content/locales/de-DE/agent-surfaces.mdx +116 -8
  124. package/corpus/core/docs/content/locales/de-DE/agent-teams.mdx +171 -12
  125. package/corpus/core/docs/content/locales/de-DE/agent-web-surfaces.mdx +51 -4
  126. package/corpus/core/docs/content/locales/de-DE/authentication.mdx +122 -8
  127. package/corpus/core/docs/content/locales/de-DE/automations.mdx +110 -8
  128. package/corpus/core/docs/content/locales/de-DE/blueprint-installer.mdx +42 -4
  129. package/corpus/core/docs/content/locales/de-DE/cli-adapters.mdx +44 -4
  130. package/corpus/core/docs/content/locales/de-DE/client.mdx +79 -8
  131. package/corpus/core/docs/content/locales/de-DE/cloneable-saas.mdx +85 -8
  132. package/corpus/core/docs/content/locales/de-DE/code-agents-ui.mdx +100 -8
  133. package/corpus/core/docs/content/locales/de-DE/components.mdx +118 -8
  134. package/corpus/core/docs/content/locales/de-DE/context-awareness.mdx +98 -8
  135. package/corpus/core/docs/content/locales/de-DE/creating-templates.mdx +51 -4
  136. package/corpus/core/docs/content/locales/de-DE/cross-app-sso.mdx +109 -8
  137. package/corpus/core/docs/content/locales/de-DE/database.mdx +52 -4
  138. package/corpus/core/docs/content/locales/de-DE/deployment.mdx +103 -8
  139. package/corpus/core/docs/content/locales/de-DE/dispatch.mdx +134 -8
  140. package/corpus/core/docs/content/locales/de-DE/drop-in-agent.mdx +63 -4
  141. package/corpus/core/docs/content/locales/de-DE/durable-resume.mdx +47 -4
  142. package/corpus/core/docs/content/locales/de-DE/embedding-sdk.mdx +85 -8
  143. package/corpus/core/docs/content/locales/de-DE/evals.mdx +102 -8
  144. package/corpus/core/docs/content/locales/de-DE/extensions.mdx +113 -9
  145. package/corpus/core/docs/content/locales/de-DE/external-agents.mdx +119 -8
  146. package/corpus/core/docs/content/locales/de-DE/faq.mdx +98 -8
  147. package/corpus/core/docs/content/locales/de-DE/file-uploads.mdx +61 -4
  148. package/corpus/core/docs/content/locales/de-DE/frames.mdx +88 -8
  149. package/corpus/core/docs/content/locales/de-DE/getting-started.mdx +34 -4
  150. package/corpus/core/docs/content/locales/de-DE/harness-agents.mdx +79 -8
  151. package/corpus/core/docs/content/locales/de-DE/human-approval.mdx +50 -4
  152. package/corpus/core/docs/content/locales/de-DE/key-concepts.mdx +104 -8
  153. package/corpus/core/docs/content/locales/de-DE/local-file-mode.mdx +58 -4
  154. package/corpus/core/docs/content/locales/de-DE/mcp-apps.mdx +120 -10
  155. package/corpus/core/docs/content/locales/de-DE/mcp-clients.mdx +133 -8
  156. package/corpus/core/docs/content/locales/de-DE/mcp-protocol.mdx +105 -8
  157. package/corpus/core/docs/content/locales/de-DE/messaging.mdx +115 -8
  158. package/corpus/core/docs/content/locales/de-DE/migration-workbench.mdx +47 -4
  159. package/corpus/core/docs/content/locales/de-DE/multi-app-workspace.mdx +91 -8
  160. package/corpus/core/docs/content/locales/de-DE/multi-tenancy.mdx +80 -8
  161. package/corpus/core/docs/content/locales/de-DE/native-chat-ui.mdx +108 -8
  162. package/corpus/core/docs/content/locales/de-DE/notifications.mdx +135 -8
  163. package/corpus/core/docs/content/locales/de-DE/observability.mdx +102 -8
  164. package/corpus/core/docs/content/locales/de-DE/observational-memory.mdx +92 -8
  165. package/corpus/core/docs/content/locales/de-DE/onboarding.mdx +45 -4
  166. package/corpus/core/docs/content/locales/de-DE/plan-plugin.mdx +99 -8
  167. package/corpus/core/docs/content/locales/de-DE/pr-visual-recap.mdx +125 -8
  168. package/corpus/core/docs/content/locales/de-DE/processors.mdx +41 -4
  169. package/corpus/core/docs/content/locales/de-DE/progress.mdx +46 -4
  170. package/corpus/core/docs/content/locales/de-DE/pure-agent-apps.mdx +50 -4
  171. package/corpus/core/docs/content/locales/de-DE/real-time-collaboration.mdx +104 -8
  172. package/corpus/core/docs/content/locales/de-DE/recurring-jobs.mdx +59 -4
  173. package/corpus/core/docs/content/locales/de-DE/routing.mdx +44 -5
  174. package/corpus/core/docs/content/locales/de-DE/sandbox-adapters.mdx +43 -4
  175. package/corpus/core/docs/content/locales/de-DE/security.mdx +80 -8
  176. package/corpus/core/docs/content/locales/de-DE/server.mdx +171 -12
  177. package/corpus/core/docs/content/locales/de-DE/sharing.mdx +45 -4
  178. package/corpus/core/docs/content/locales/de-DE/skills-guide.mdx +118 -9
  179. package/corpus/core/docs/content/locales/de-DE/template-analytics.mdx +46 -4
  180. package/corpus/core/docs/content/locales/de-DE/template-assets.mdx +62 -4
  181. package/corpus/core/docs/content/locales/de-DE/template-brain.mdx +69 -4
  182. package/corpus/core/docs/content/locales/de-DE/template-calendar.mdx +62 -4
  183. package/corpus/core/docs/content/locales/de-DE/template-chat.mdx +61 -4
  184. package/corpus/core/docs/content/locales/de-DE/template-clips.mdx +52 -4
  185. package/corpus/core/docs/content/locales/de-DE/template-content.mdx +60 -4
  186. package/corpus/core/docs/content/locales/de-DE/template-design.mdx +109 -4
  187. package/corpus/core/docs/content/locales/de-DE/template-dispatch.mdx +57 -4
  188. package/corpus/core/docs/content/locales/de-DE/template-forms.mdx +64 -4
  189. package/corpus/core/docs/content/locales/de-DE/template-mail.mdx +60 -4
  190. package/corpus/core/docs/content/locales/de-DE/template-plan.mdx +63 -4
  191. package/corpus/core/docs/content/locales/de-DE/template-slides.mdx +49 -4
  192. package/corpus/core/docs/content/locales/de-DE/template-videos.mdx +53 -4
  193. package/corpus/core/docs/content/locales/de-DE/tracking.mdx +54 -4
  194. package/corpus/core/docs/content/locales/de-DE/using-your-agent.mdx +51 -4
  195. package/corpus/core/docs/content/locales/de-DE/voice-input.mdx +45 -4
  196. package/corpus/core/docs/content/locales/de-DE/what-is-agent-native.mdx +100 -8
  197. package/corpus/core/docs/content/locales/de-DE/workspace-connections.mdx +128 -8
  198. package/corpus/core/docs/content/locales/de-DE/workspace-management.mdx +50 -4
  199. package/corpus/core/docs/content/locales/de-DE/workspace.mdx +111 -8
  200. package/corpus/core/docs/content/locales/de-DE/writing-agent-instructions.mdx +45 -4
  201. package/corpus/core/docs/content/locales/es-ES/a2a-protocol.mdx +99 -9
  202. package/corpus/core/docs/content/locales/es-ES/actions.mdx +67 -4
  203. package/corpus/core/docs/content/locales/es-ES/agent-mentions.mdx +68 -4
  204. package/corpus/core/docs/content/locales/es-ES/agent-surfaces.mdx +120 -8
  205. package/corpus/core/docs/content/locales/es-ES/agent-teams.mdx +172 -12
  206. package/corpus/core/docs/content/locales/es-ES/agent-web-surfaces.mdx +51 -4
  207. package/corpus/core/docs/content/locales/es-ES/authentication.mdx +122 -8
  208. package/corpus/core/docs/content/locales/es-ES/automations.mdx +110 -8
  209. package/corpus/core/docs/content/locales/es-ES/blueprint-installer.mdx +42 -4
  210. package/corpus/core/docs/content/locales/es-ES/cli-adapters.mdx +44 -4
  211. package/corpus/core/docs/content/locales/es-ES/client.mdx +79 -8
  212. package/corpus/core/docs/content/locales/es-ES/cloneable-saas.mdx +85 -8
  213. package/corpus/core/docs/content/locales/es-ES/code-agents-ui.mdx +101 -8
  214. package/corpus/core/docs/content/locales/es-ES/components.mdx +118 -8
  215. package/corpus/core/docs/content/locales/es-ES/context-awareness.mdx +98 -8
  216. package/corpus/core/docs/content/locales/es-ES/creating-templates.mdx +51 -4
  217. package/corpus/core/docs/content/locales/es-ES/cross-app-sso.mdx +109 -8
  218. package/corpus/core/docs/content/locales/es-ES/database.mdx +52 -4
  219. package/corpus/core/docs/content/locales/es-ES/deployment.mdx +103 -8
  220. package/corpus/core/docs/content/locales/es-ES/dispatch.mdx +134 -8
  221. package/corpus/core/docs/content/locales/es-ES/drop-in-agent.mdx +63 -4
  222. package/corpus/core/docs/content/locales/es-ES/durable-resume.mdx +47 -4
  223. package/corpus/core/docs/content/locales/es-ES/embedding-sdk.mdx +87 -8
  224. package/corpus/core/docs/content/locales/es-ES/evals.mdx +102 -8
  225. package/corpus/core/docs/content/locales/es-ES/extensions.mdx +113 -9
  226. package/corpus/core/docs/content/locales/es-ES/external-agents.mdx +119 -8
  227. package/corpus/core/docs/content/locales/es-ES/faq.mdx +98 -8
  228. package/corpus/core/docs/content/locales/es-ES/file-uploads.mdx +61 -4
  229. package/corpus/core/docs/content/locales/es-ES/frames.mdx +88 -8
  230. package/corpus/core/docs/content/locales/es-ES/getting-started.mdx +34 -4
  231. package/corpus/core/docs/content/locales/es-ES/harness-agents.mdx +79 -8
  232. package/corpus/core/docs/content/locales/es-ES/human-approval.mdx +50 -4
  233. package/corpus/core/docs/content/locales/es-ES/key-concepts.mdx +104 -8
  234. package/corpus/core/docs/content/locales/es-ES/local-file-mode.mdx +60 -4
  235. package/corpus/core/docs/content/locales/es-ES/mcp-apps.mdx +120 -10
  236. package/corpus/core/docs/content/locales/es-ES/mcp-clients.mdx +135 -8
  237. package/corpus/core/docs/content/locales/es-ES/mcp-protocol.mdx +105 -8
  238. package/corpus/core/docs/content/locales/es-ES/messaging.mdx +115 -8
  239. package/corpus/core/docs/content/locales/es-ES/migration-workbench.mdx +47 -4
  240. package/corpus/core/docs/content/locales/es-ES/multi-app-workspace.mdx +91 -8
  241. package/corpus/core/docs/content/locales/es-ES/multi-tenancy.mdx +80 -8
  242. package/corpus/core/docs/content/locales/es-ES/native-chat-ui.mdx +108 -8
  243. package/corpus/core/docs/content/locales/es-ES/notifications.mdx +135 -8
  244. package/corpus/core/docs/content/locales/es-ES/observability.mdx +104 -8
  245. package/corpus/core/docs/content/locales/es-ES/observational-memory.mdx +92 -8
  246. package/corpus/core/docs/content/locales/es-ES/onboarding.mdx +45 -4
  247. package/corpus/core/docs/content/locales/es-ES/plan-plugin.mdx +99 -8
  248. package/corpus/core/docs/content/locales/es-ES/pr-visual-recap.mdx +125 -8
  249. package/corpus/core/docs/content/locales/es-ES/processors.mdx +41 -4
  250. package/corpus/core/docs/content/locales/es-ES/progress.mdx +46 -4
  251. package/corpus/core/docs/content/locales/es-ES/pure-agent-apps.mdx +50 -4
  252. package/corpus/core/docs/content/locales/es-ES/real-time-collaboration.mdx +109 -8
  253. package/corpus/core/docs/content/locales/es-ES/recurring-jobs.mdx +59 -4
  254. package/corpus/core/docs/content/locales/es-ES/routing.mdx +44 -5
  255. package/corpus/core/docs/content/locales/es-ES/sandbox-adapters.mdx +44 -4
  256. package/corpus/core/docs/content/locales/es-ES/security.mdx +82 -8
  257. package/corpus/core/docs/content/locales/es-ES/server.mdx +173 -12
  258. package/corpus/core/docs/content/locales/es-ES/sharing.mdx +45 -4
  259. package/corpus/core/docs/content/locales/es-ES/skills-guide.mdx +118 -9
  260. package/corpus/core/docs/content/locales/es-ES/template-analytics.mdx +46 -4
  261. package/corpus/core/docs/content/locales/es-ES/template-assets.mdx +64 -4
  262. package/corpus/core/docs/content/locales/es-ES/template-brain.mdx +69 -4
  263. package/corpus/core/docs/content/locales/es-ES/template-calendar.mdx +62 -4
  264. package/corpus/core/docs/content/locales/es-ES/template-chat.mdx +61 -4
  265. package/corpus/core/docs/content/locales/es-ES/template-clips.mdx +52 -4
  266. package/corpus/core/docs/content/locales/es-ES/template-content.mdx +64 -4
  267. package/corpus/core/docs/content/locales/es-ES/template-design.mdx +108 -4
  268. package/corpus/core/docs/content/locales/es-ES/template-dispatch.mdx +57 -4
  269. package/corpus/core/docs/content/locales/es-ES/template-forms.mdx +64 -4
  270. package/corpus/core/docs/content/locales/es-ES/template-mail.mdx +60 -4
  271. package/corpus/core/docs/content/locales/es-ES/template-plan.mdx +61 -4
  272. package/corpus/core/docs/content/locales/es-ES/template-slides.mdx +49 -4
  273. package/corpus/core/docs/content/locales/es-ES/template-videos.mdx +53 -4
  274. package/corpus/core/docs/content/locales/es-ES/tracking.mdx +54 -4
  275. package/corpus/core/docs/content/locales/es-ES/using-your-agent.mdx +51 -4
  276. package/corpus/core/docs/content/locales/es-ES/voice-input.mdx +45 -4
  277. package/corpus/core/docs/content/locales/es-ES/what-is-agent-native.mdx +99 -8
  278. package/corpus/core/docs/content/locales/es-ES/workspace-connections.mdx +128 -8
  279. package/corpus/core/docs/content/locales/es-ES/workspace-management.mdx +50 -4
  280. package/corpus/core/docs/content/locales/es-ES/workspace.mdx +112 -8
  281. package/corpus/core/docs/content/locales/es-ES/writing-agent-instructions.mdx +46 -4
  282. package/corpus/core/docs/content/locales/fr-FR/a2a-protocol.mdx +97 -9
  283. package/corpus/core/docs/content/locales/fr-FR/actions.mdx +67 -4
  284. package/corpus/core/docs/content/locales/fr-FR/agent-mentions.mdx +68 -4
  285. package/corpus/core/docs/content/locales/fr-FR/agent-surfaces.mdx +118 -8
  286. package/corpus/core/docs/content/locales/fr-FR/agent-teams.mdx +172 -12
  287. package/corpus/core/docs/content/locales/fr-FR/agent-web-surfaces.mdx +51 -4
  288. package/corpus/core/docs/content/locales/fr-FR/authentication.mdx +122 -8
  289. package/corpus/core/docs/content/locales/fr-FR/automations.mdx +110 -8
  290. package/corpus/core/docs/content/locales/fr-FR/blueprint-installer.mdx +42 -4
  291. package/corpus/core/docs/content/locales/fr-FR/cli-adapters.mdx +44 -4
  292. package/corpus/core/docs/content/locales/fr-FR/client.mdx +81 -8
  293. package/corpus/core/docs/content/locales/fr-FR/cloneable-saas.mdx +85 -8
  294. package/corpus/core/docs/content/locales/fr-FR/code-agents-ui.mdx +102 -8
  295. package/corpus/core/docs/content/locales/fr-FR/components.mdx +118 -8
  296. package/corpus/core/docs/content/locales/fr-FR/context-awareness.mdx +98 -8
  297. package/corpus/core/docs/content/locales/fr-FR/creating-templates.mdx +49 -4
  298. package/corpus/core/docs/content/locales/fr-FR/cross-app-sso.mdx +109 -8
  299. package/corpus/core/docs/content/locales/fr-FR/database.mdx +52 -4
  300. package/corpus/core/docs/content/locales/fr-FR/deployment.mdx +103 -8
  301. package/corpus/core/docs/content/locales/fr-FR/dispatch.mdx +134 -8
  302. package/corpus/core/docs/content/locales/fr-FR/drop-in-agent.mdx +63 -4
  303. package/corpus/core/docs/content/locales/fr-FR/durable-resume.mdx +47 -4
  304. package/corpus/core/docs/content/locales/fr-FR/embedding-sdk.mdx +87 -8
  305. package/corpus/core/docs/content/locales/fr-FR/evals.mdx +102 -8
  306. package/corpus/core/docs/content/locales/fr-FR/extensions.mdx +113 -9
  307. package/corpus/core/docs/content/locales/fr-FR/external-agents.mdx +119 -8
  308. package/corpus/core/docs/content/locales/fr-FR/faq.mdx +98 -8
  309. package/corpus/core/docs/content/locales/fr-FR/file-uploads.mdx +61 -4
  310. package/corpus/core/docs/content/locales/fr-FR/frames.mdx +90 -8
  311. package/corpus/core/docs/content/locales/fr-FR/getting-started.mdx +34 -4
  312. package/corpus/core/docs/content/locales/fr-FR/harness-agents.mdx +77 -8
  313. package/corpus/core/docs/content/locales/fr-FR/human-approval.mdx +50 -4
  314. package/corpus/core/docs/content/locales/fr-FR/key-concepts.mdx +106 -8
  315. package/corpus/core/docs/content/locales/fr-FR/local-file-mode.mdx +58 -4
  316. package/corpus/core/docs/content/locales/fr-FR/mcp-apps.mdx +120 -10
  317. package/corpus/core/docs/content/locales/fr-FR/mcp-clients.mdx +135 -8
  318. package/corpus/core/docs/content/locales/fr-FR/mcp-protocol.mdx +105 -8
  319. package/corpus/core/docs/content/locales/fr-FR/messaging.mdx +115 -8
  320. package/corpus/core/docs/content/locales/fr-FR/migration-workbench.mdx +47 -4
  321. package/corpus/core/docs/content/locales/fr-FR/multi-app-workspace.mdx +91 -8
  322. package/corpus/core/docs/content/locales/fr-FR/multi-tenancy.mdx +80 -8
  323. package/corpus/core/docs/content/locales/fr-FR/native-chat-ui.mdx +108 -8
  324. package/corpus/core/docs/content/locales/fr-FR/notifications.mdx +135 -8
  325. package/corpus/core/docs/content/locales/fr-FR/observability.mdx +104 -8
  326. package/corpus/core/docs/content/locales/fr-FR/observational-memory.mdx +89 -8
  327. package/corpus/core/docs/content/locales/fr-FR/onboarding.mdx +45 -4
  328. package/corpus/core/docs/content/locales/fr-FR/plan-plugin.mdx +99 -8
  329. package/corpus/core/docs/content/locales/fr-FR/pr-visual-recap.mdx +126 -8
  330. package/corpus/core/docs/content/locales/fr-FR/processors.mdx +41 -4
  331. package/corpus/core/docs/content/locales/fr-FR/progress.mdx +46 -4
  332. package/corpus/core/docs/content/locales/fr-FR/pure-agent-apps.mdx +48 -4
  333. package/corpus/core/docs/content/locales/fr-FR/real-time-collaboration.mdx +107 -8
  334. package/corpus/core/docs/content/locales/fr-FR/recurring-jobs.mdx +59 -4
  335. package/corpus/core/docs/content/locales/fr-FR/routing.mdx +44 -5
  336. package/corpus/core/docs/content/locales/fr-FR/sandbox-adapters.mdx +44 -4
  337. package/corpus/core/docs/content/locales/fr-FR/security.mdx +82 -8
  338. package/corpus/core/docs/content/locales/fr-FR/server.mdx +173 -12
  339. package/corpus/core/docs/content/locales/fr-FR/sharing.mdx +45 -4
  340. package/corpus/core/docs/content/locales/fr-FR/skills-guide.mdx +118 -9
  341. package/corpus/core/docs/content/locales/fr-FR/template-analytics.mdx +46 -4
  342. package/corpus/core/docs/content/locales/fr-FR/template-assets.mdx +66 -4
  343. package/corpus/core/docs/content/locales/fr-FR/template-brain.mdx +69 -4
  344. package/corpus/core/docs/content/locales/fr-FR/template-calendar.mdx +62 -4
  345. package/corpus/core/docs/content/locales/fr-FR/template-chat.mdx +61 -4
  346. package/corpus/core/docs/content/locales/fr-FR/template-clips.mdx +52 -4
  347. package/corpus/core/docs/content/locales/fr-FR/template-content.mdx +64 -4
  348. package/corpus/core/docs/content/locales/fr-FR/template-design.mdx +107 -4
  349. package/corpus/core/docs/content/locales/fr-FR/template-dispatch.mdx +57 -4
  350. package/corpus/core/docs/content/locales/fr-FR/template-forms.mdx +64 -4
  351. package/corpus/core/docs/content/locales/fr-FR/template-mail.mdx +60 -4
  352. package/corpus/core/docs/content/locales/fr-FR/template-plan.mdx +61 -4
  353. package/corpus/core/docs/content/locales/fr-FR/template-slides.mdx +49 -4
  354. package/corpus/core/docs/content/locales/fr-FR/template-videos.mdx +53 -4
  355. package/corpus/core/docs/content/locales/fr-FR/tracking.mdx +54 -4
  356. package/corpus/core/docs/content/locales/fr-FR/using-your-agent.mdx +51 -4
  357. package/corpus/core/docs/content/locales/fr-FR/voice-input.mdx +45 -4
  358. package/corpus/core/docs/content/locales/fr-FR/what-is-agent-native.mdx +101 -8
  359. package/corpus/core/docs/content/locales/fr-FR/workspace-connections.mdx +128 -8
  360. package/corpus/core/docs/content/locales/fr-FR/workspace-management.mdx +50 -4
  361. package/corpus/core/docs/content/locales/fr-FR/workspace.mdx +112 -8
  362. package/corpus/core/docs/content/locales/fr-FR/writing-agent-instructions.mdx +47 -4
  363. package/corpus/core/docs/content/locales/hi-IN/a2a-protocol.mdx +97 -9
  364. package/corpus/core/docs/content/locales/hi-IN/actions.mdx +63 -4
  365. package/corpus/core/docs/content/locales/hi-IN/agent-mentions.mdx +68 -4
  366. package/corpus/core/docs/content/locales/hi-IN/agent-surfaces.mdx +112 -8
  367. package/corpus/core/docs/content/locales/hi-IN/agent-teams.mdx +171 -12
  368. package/corpus/core/docs/content/locales/hi-IN/agent-web-surfaces.mdx +51 -4
  369. package/corpus/core/docs/content/locales/hi-IN/authentication.mdx +122 -8
  370. package/corpus/core/docs/content/locales/hi-IN/automations.mdx +110 -8
  371. package/corpus/core/docs/content/locales/hi-IN/blueprint-installer.mdx +42 -4
  372. package/corpus/core/docs/content/locales/hi-IN/cli-adapters.mdx +44 -4
  373. package/corpus/core/docs/content/locales/hi-IN/client.mdx +79 -8
  374. package/corpus/core/docs/content/locales/hi-IN/cloneable-saas.mdx +85 -8
  375. package/corpus/core/docs/content/locales/hi-IN/code-agents-ui.mdx +96 -8
  376. package/corpus/core/docs/content/locales/hi-IN/components.mdx +114 -8
  377. package/corpus/core/docs/content/locales/hi-IN/context-awareness.mdx +102 -8
  378. package/corpus/core/docs/content/locales/hi-IN/creating-templates.mdx +53 -4
  379. package/corpus/core/docs/content/locales/hi-IN/cross-app-sso.mdx +109 -8
  380. package/corpus/core/docs/content/locales/hi-IN/database.mdx +52 -4
  381. package/corpus/core/docs/content/locales/hi-IN/deployment.mdx +103 -8
  382. package/corpus/core/docs/content/locales/hi-IN/dispatch.mdx +134 -8
  383. package/corpus/core/docs/content/locales/hi-IN/drop-in-agent.mdx +63 -4
  384. package/corpus/core/docs/content/locales/hi-IN/durable-resume.mdx +47 -4
  385. package/corpus/core/docs/content/locales/hi-IN/embedding-sdk.mdx +83 -8
  386. package/corpus/core/docs/content/locales/hi-IN/evals.mdx +100 -8
  387. package/corpus/core/docs/content/locales/hi-IN/extensions.mdx +113 -9
  388. package/corpus/core/docs/content/locales/hi-IN/external-agents.mdx +119 -8
  389. package/corpus/core/docs/content/locales/hi-IN/faq.mdx +96 -8
  390. package/corpus/core/docs/content/locales/hi-IN/file-uploads.mdx +61 -4
  391. package/corpus/core/docs/content/locales/hi-IN/frames.mdx +88 -8
  392. package/corpus/core/docs/content/locales/hi-IN/getting-started.mdx +34 -4
  393. package/corpus/core/docs/content/locales/hi-IN/harness-agents.mdx +77 -8
  394. package/corpus/core/docs/content/locales/hi-IN/human-approval.mdx +51 -4
  395. package/corpus/core/docs/content/locales/hi-IN/key-concepts.mdx +104 -8
  396. package/corpus/core/docs/content/locales/hi-IN/local-file-mode.mdx +58 -4
  397. package/corpus/core/docs/content/locales/hi-IN/mcp-apps.mdx +120 -10
  398. package/corpus/core/docs/content/locales/hi-IN/mcp-clients.mdx +133 -8
  399. package/corpus/core/docs/content/locales/hi-IN/mcp-protocol.mdx +105 -8
  400. package/corpus/core/docs/content/locales/hi-IN/messaging.mdx +115 -8
  401. package/corpus/core/docs/content/locales/hi-IN/migration-workbench.mdx +45 -4
  402. package/corpus/core/docs/content/locales/hi-IN/multi-app-workspace.mdx +91 -8
  403. package/corpus/core/docs/content/locales/hi-IN/multi-tenancy.mdx +80 -8
  404. package/corpus/core/docs/content/locales/hi-IN/native-chat-ui.mdx +106 -8
  405. package/corpus/core/docs/content/locales/hi-IN/notifications.mdx +135 -8
  406. package/corpus/core/docs/content/locales/hi-IN/observability.mdx +102 -8
  407. package/corpus/core/docs/content/locales/hi-IN/observational-memory.mdx +89 -8
  408. package/corpus/core/docs/content/locales/hi-IN/onboarding.mdx +45 -4
  409. package/corpus/core/docs/content/locales/hi-IN/plan-plugin.mdx +99 -8
  410. package/corpus/core/docs/content/locales/hi-IN/pr-visual-recap.mdx +126 -8
  411. package/corpus/core/docs/content/locales/hi-IN/processors.mdx +41 -4
  412. package/corpus/core/docs/content/locales/hi-IN/progress.mdx +46 -4
  413. package/corpus/core/docs/content/locales/hi-IN/pure-agent-apps.mdx +48 -4
  414. package/corpus/core/docs/content/locales/hi-IN/real-time-collaboration.mdx +106 -8
  415. package/corpus/core/docs/content/locales/hi-IN/recurring-jobs.mdx +59 -4
  416. package/corpus/core/docs/content/locales/hi-IN/routing.mdx +44 -5
  417. package/corpus/core/docs/content/locales/hi-IN/sandbox-adapters.mdx +43 -4
  418. package/corpus/core/docs/content/locales/hi-IN/security.mdx +78 -8
  419. package/corpus/core/docs/content/locales/hi-IN/server.mdx +169 -12
  420. package/corpus/core/docs/content/locales/hi-IN/sharing.mdx +45 -4
  421. package/corpus/core/docs/content/locales/hi-IN/skills-guide.mdx +118 -9
  422. package/corpus/core/docs/content/locales/hi-IN/template-analytics.mdx +46 -4
  423. package/corpus/core/docs/content/locales/hi-IN/template-assets.mdx +62 -4
  424. package/corpus/core/docs/content/locales/hi-IN/template-brain.mdx +69 -4
  425. package/corpus/core/docs/content/locales/hi-IN/template-calendar.mdx +62 -4
  426. package/corpus/core/docs/content/locales/hi-IN/template-chat.mdx +59 -4
  427. package/corpus/core/docs/content/locales/hi-IN/template-clips.mdx +52 -4
  428. package/corpus/core/docs/content/locales/hi-IN/template-content.mdx +62 -4
  429. package/corpus/core/docs/content/locales/hi-IN/template-design.mdx +102 -4
  430. package/corpus/core/docs/content/locales/hi-IN/template-dispatch.mdx +57 -4
  431. package/corpus/core/docs/content/locales/hi-IN/template-forms.mdx +64 -4
  432. package/corpus/core/docs/content/locales/hi-IN/template-mail.mdx +64 -4
  433. package/corpus/core/docs/content/locales/hi-IN/template-plan.mdx +61 -4
  434. package/corpus/core/docs/content/locales/hi-IN/template-slides.mdx +49 -4
  435. package/corpus/core/docs/content/locales/hi-IN/template-videos.mdx +53 -4
  436. package/corpus/core/docs/content/locales/hi-IN/tracking.mdx +54 -4
  437. package/corpus/core/docs/content/locales/hi-IN/using-your-agent.mdx +51 -4
  438. package/corpus/core/docs/content/locales/hi-IN/voice-input.mdx +43 -4
  439. package/corpus/core/docs/content/locales/hi-IN/what-is-agent-native.mdx +97 -8
  440. package/corpus/core/docs/content/locales/hi-IN/workspace-connections.mdx +128 -8
  441. package/corpus/core/docs/content/locales/hi-IN/workspace-management.mdx +50 -4
  442. package/corpus/core/docs/content/locales/hi-IN/workspace.mdx +111 -8
  443. package/corpus/core/docs/content/locales/hi-IN/writing-agent-instructions.mdx +40 -4
  444. package/corpus/core/docs/content/locales/ja-JP/a2a-protocol.mdx +97 -9
  445. package/corpus/core/docs/content/locales/ja-JP/actions.mdx +67 -4
  446. package/corpus/core/docs/content/locales/ja-JP/agent-mentions.mdx +68 -4
  447. package/corpus/core/docs/content/locales/ja-JP/agent-surfaces.mdx +116 -8
  448. package/corpus/core/docs/content/locales/ja-JP/agent-teams.mdx +172 -12
  449. package/corpus/core/docs/content/locales/ja-JP/agent-web-surfaces.mdx +51 -4
  450. package/corpus/core/docs/content/locales/ja-JP/authentication.mdx +122 -8
  451. package/corpus/core/docs/content/locales/ja-JP/automations.mdx +110 -8
  452. package/corpus/core/docs/content/locales/ja-JP/blueprint-installer.mdx +44 -4
  453. package/corpus/core/docs/content/locales/ja-JP/cli-adapters.mdx +44 -4
  454. package/corpus/core/docs/content/locales/ja-JP/client.mdx +79 -8
  455. package/corpus/core/docs/content/locales/ja-JP/cloneable-saas.mdx +85 -8
  456. package/corpus/core/docs/content/locales/ja-JP/code-agents-ui.mdx +100 -8
  457. package/corpus/core/docs/content/locales/ja-JP/components.mdx +116 -8
  458. package/corpus/core/docs/content/locales/ja-JP/context-awareness.mdx +100 -8
  459. package/corpus/core/docs/content/locales/ja-JP/creating-templates.mdx +51 -4
  460. package/corpus/core/docs/content/locales/ja-JP/cross-app-sso.mdx +109 -8
  461. package/corpus/core/docs/content/locales/ja-JP/database.mdx +52 -4
  462. package/corpus/core/docs/content/locales/ja-JP/deployment.mdx +103 -8
  463. package/corpus/core/docs/content/locales/ja-JP/dispatch.mdx +134 -8
  464. package/corpus/core/docs/content/locales/ja-JP/drop-in-agent.mdx +63 -4
  465. package/corpus/core/docs/content/locales/ja-JP/durable-resume.mdx +47 -4
  466. package/corpus/core/docs/content/locales/ja-JP/embedding-sdk.mdx +85 -8
  467. package/corpus/core/docs/content/locales/ja-JP/evals.mdx +102 -8
  468. package/corpus/core/docs/content/locales/ja-JP/extensions.mdx +111 -9
  469. package/corpus/core/docs/content/locales/ja-JP/external-agents.mdx +119 -8
  470. package/corpus/core/docs/content/locales/ja-JP/faq.mdx +98 -8
  471. package/corpus/core/docs/content/locales/ja-JP/file-uploads.mdx +61 -4
  472. package/corpus/core/docs/content/locales/ja-JP/frames.mdx +88 -8
  473. package/corpus/core/docs/content/locales/ja-JP/getting-started.mdx +34 -4
  474. package/corpus/core/docs/content/locales/ja-JP/harness-agents.mdx +79 -8
  475. package/corpus/core/docs/content/locales/ja-JP/human-approval.mdx +50 -4
  476. package/corpus/core/docs/content/locales/ja-JP/key-concepts.mdx +105 -8
  477. package/corpus/core/docs/content/locales/ja-JP/local-file-mode.mdx +58 -4
  478. package/corpus/core/docs/content/locales/ja-JP/mcp-apps.mdx +119 -10
  479. package/corpus/core/docs/content/locales/ja-JP/mcp-clients.mdx +134 -8
  480. package/corpus/core/docs/content/locales/ja-JP/mcp-protocol.mdx +105 -8
  481. package/corpus/core/docs/content/locales/ja-JP/messaging.mdx +115 -8
  482. package/corpus/core/docs/content/locales/ja-JP/migration-workbench.mdx +47 -4
  483. package/corpus/core/docs/content/locales/ja-JP/multi-app-workspace.mdx +91 -8
  484. package/corpus/core/docs/content/locales/ja-JP/multi-tenancy.mdx +80 -8
  485. package/corpus/core/docs/content/locales/ja-JP/native-chat-ui.mdx +104 -8
  486. package/corpus/core/docs/content/locales/ja-JP/notifications.mdx +135 -8
  487. package/corpus/core/docs/content/locales/ja-JP/observability.mdx +104 -8
  488. package/corpus/core/docs/content/locales/ja-JP/observational-memory.mdx +89 -8
  489. package/corpus/core/docs/content/locales/ja-JP/onboarding.mdx +45 -4
  490. package/corpus/core/docs/content/locales/ja-JP/plan-plugin.mdx +99 -8
  491. package/corpus/core/docs/content/locales/ja-JP/pr-visual-recap.mdx +123 -8
  492. package/corpus/core/docs/content/locales/ja-JP/processors.mdx +39 -4
  493. package/corpus/core/docs/content/locales/ja-JP/progress.mdx +46 -4
  494. package/corpus/core/docs/content/locales/ja-JP/pure-agent-apps.mdx +48 -4
  495. package/corpus/core/docs/content/locales/ja-JP/real-time-collaboration.mdx +106 -8
  496. package/corpus/core/docs/content/locales/ja-JP/recurring-jobs.mdx +59 -4
  497. package/corpus/core/docs/content/locales/ja-JP/routing.mdx +44 -5
  498. package/corpus/core/docs/content/locales/ja-JP/sandbox-adapters.mdx +43 -4
  499. package/corpus/core/docs/content/locales/ja-JP/security.mdx +82 -8
  500. package/corpus/core/docs/content/locales/ja-JP/server.mdx +171 -12
  501. package/corpus/core/docs/content/locales/ja-JP/sharing.mdx +45 -4
  502. package/corpus/core/docs/content/locales/ja-JP/skills-guide.mdx +118 -9
  503. package/corpus/core/docs/content/locales/ja-JP/template-analytics.mdx +46 -4
  504. package/corpus/core/docs/content/locales/ja-JP/template-assets.mdx +64 -4
  505. package/corpus/core/docs/content/locales/ja-JP/template-brain.mdx +67 -4
  506. package/corpus/core/docs/content/locales/ja-JP/template-calendar.mdx +62 -4
  507. package/corpus/core/docs/content/locales/ja-JP/template-chat.mdx +61 -4
  508. package/corpus/core/docs/content/locales/ja-JP/template-clips.mdx +52 -4
  509. package/corpus/core/docs/content/locales/ja-JP/template-content.mdx +62 -4
  510. package/corpus/core/docs/content/locales/ja-JP/template-design.mdx +106 -4
  511. package/corpus/core/docs/content/locales/ja-JP/template-dispatch.mdx +57 -4
  512. package/corpus/core/docs/content/locales/ja-JP/template-forms.mdx +62 -4
  513. package/corpus/core/docs/content/locales/ja-JP/template-mail.mdx +62 -4
  514. package/corpus/core/docs/content/locales/ja-JP/template-plan.mdx +63 -4
  515. package/corpus/core/docs/content/locales/ja-JP/template-slides.mdx +49 -4
  516. package/corpus/core/docs/content/locales/ja-JP/template-videos.mdx +53 -4
  517. package/corpus/core/docs/content/locales/ja-JP/tracking.mdx +54 -4
  518. package/corpus/core/docs/content/locales/ja-JP/using-your-agent.mdx +51 -4
  519. package/corpus/core/docs/content/locales/ja-JP/voice-input.mdx +43 -4
  520. package/corpus/core/docs/content/locales/ja-JP/what-is-agent-native.mdx +96 -8
  521. package/corpus/core/docs/content/locales/ja-JP/workspace-connections.mdx +128 -8
  522. package/corpus/core/docs/content/locales/ja-JP/workspace-management.mdx +50 -4
  523. package/corpus/core/docs/content/locales/ja-JP/workspace.mdx +111 -8
  524. package/corpus/core/docs/content/locales/ja-JP/writing-agent-instructions.mdx +44 -4
  525. package/corpus/core/docs/content/locales/ko-KR/a2a-protocol.mdx +97 -9
  526. package/corpus/core/docs/content/locales/ko-KR/actions.mdx +63 -4
  527. package/corpus/core/docs/content/locales/ko-KR/agent-mentions.mdx +68 -4
  528. package/corpus/core/docs/content/locales/ko-KR/agent-surfaces.mdx +113 -8
  529. package/corpus/core/docs/content/locales/ko-KR/agent-teams.mdx +171 -12
  530. package/corpus/core/docs/content/locales/ko-KR/agent-web-surfaces.mdx +51 -4
  531. package/corpus/core/docs/content/locales/ko-KR/authentication.mdx +122 -8
  532. package/corpus/core/docs/content/locales/ko-KR/automations.mdx +110 -8
  533. package/corpus/core/docs/content/locales/ko-KR/blueprint-installer.mdx +42 -4
  534. package/corpus/core/docs/content/locales/ko-KR/cli-adapters.mdx +44 -4
  535. package/corpus/core/docs/content/locales/ko-KR/client.mdx +79 -8
  536. package/corpus/core/docs/content/locales/ko-KR/cloneable-saas.mdx +85 -8
  537. package/corpus/core/docs/content/locales/ko-KR/code-agents-ui.mdx +96 -8
  538. package/corpus/core/docs/content/locales/ko-KR/components.mdx +112 -8
  539. package/corpus/core/docs/content/locales/ko-KR/context-awareness.mdx +96 -8
  540. package/corpus/core/docs/content/locales/ko-KR/creating-templates.mdx +51 -4
  541. package/corpus/core/docs/content/locales/ko-KR/cross-app-sso.mdx +109 -8
  542. package/corpus/core/docs/content/locales/ko-KR/database.mdx +52 -4
  543. package/corpus/core/docs/content/locales/ko-KR/deployment.mdx +103 -8
  544. package/corpus/core/docs/content/locales/ko-KR/dispatch.mdx +132 -8
  545. package/corpus/core/docs/content/locales/ko-KR/drop-in-agent.mdx +63 -4
  546. package/corpus/core/docs/content/locales/ko-KR/durable-resume.mdx +47 -4
  547. package/corpus/core/docs/content/locales/ko-KR/embedding-sdk.mdx +81 -8
  548. package/corpus/core/docs/content/locales/ko-KR/evals.mdx +102 -8
  549. package/corpus/core/docs/content/locales/ko-KR/extensions.mdx +111 -9
  550. package/corpus/core/docs/content/locales/ko-KR/external-agents.mdx +119 -8
  551. package/corpus/core/docs/content/locales/ko-KR/faq.mdx +96 -8
  552. package/corpus/core/docs/content/locales/ko-KR/file-uploads.mdx +61 -4
  553. package/corpus/core/docs/content/locales/ko-KR/frames.mdx +86 -8
  554. package/corpus/core/docs/content/locales/ko-KR/getting-started.mdx +34 -4
  555. package/corpus/core/docs/content/locales/ko-KR/harness-agents.mdx +77 -8
  556. package/corpus/core/docs/content/locales/ko-KR/human-approval.mdx +50 -4
  557. package/corpus/core/docs/content/locales/ko-KR/key-concepts.mdx +104 -8
  558. package/corpus/core/docs/content/locales/ko-KR/local-file-mode.mdx +56 -4
  559. package/corpus/core/docs/content/locales/ko-KR/mcp-apps.mdx +120 -10
  560. package/corpus/core/docs/content/locales/ko-KR/mcp-clients.mdx +133 -8
  561. package/corpus/core/docs/content/locales/ko-KR/mcp-protocol.mdx +105 -8
  562. package/corpus/core/docs/content/locales/ko-KR/messaging.mdx +115 -8
  563. package/corpus/core/docs/content/locales/ko-KR/migration-workbench.mdx +45 -4
  564. package/corpus/core/docs/content/locales/ko-KR/multi-app-workspace.mdx +91 -8
  565. package/corpus/core/docs/content/locales/ko-KR/multi-tenancy.mdx +80 -8
  566. package/corpus/core/docs/content/locales/ko-KR/native-chat-ui.mdx +104 -8
  567. package/corpus/core/docs/content/locales/ko-KR/notifications.mdx +135 -8
  568. package/corpus/core/docs/content/locales/ko-KR/observability.mdx +102 -8
  569. package/corpus/core/docs/content/locales/ko-KR/observational-memory.mdx +87 -8
  570. package/corpus/core/docs/content/locales/ko-KR/onboarding.mdx +44 -4
  571. package/corpus/core/docs/content/locales/ko-KR/plan-plugin.mdx +99 -8
  572. package/corpus/core/docs/content/locales/ko-KR/pr-visual-recap.mdx +125 -8
  573. package/corpus/core/docs/content/locales/ko-KR/processors.mdx +39 -4
  574. package/corpus/core/docs/content/locales/ko-KR/progress.mdx +46 -4
  575. package/corpus/core/docs/content/locales/ko-KR/pure-agent-apps.mdx +46 -4
  576. package/corpus/core/docs/content/locales/ko-KR/real-time-collaboration.mdx +104 -8
  577. package/corpus/core/docs/content/locales/ko-KR/recurring-jobs.mdx +59 -4
  578. package/corpus/core/docs/content/locales/ko-KR/routing.mdx +44 -5
  579. package/corpus/core/docs/content/locales/ko-KR/sandbox-adapters.mdx +41 -4
  580. package/corpus/core/docs/content/locales/ko-KR/security.mdx +78 -8
  581. package/corpus/core/docs/content/locales/ko-KR/server.mdx +171 -12
  582. package/corpus/core/docs/content/locales/ko-KR/sharing.mdx +45 -4
  583. package/corpus/core/docs/content/locales/ko-KR/skills-guide.mdx +118 -9
  584. package/corpus/core/docs/content/locales/ko-KR/template-analytics.mdx +46 -4
  585. package/corpus/core/docs/content/locales/ko-KR/template-assets.mdx +62 -4
  586. package/corpus/core/docs/content/locales/ko-KR/template-brain.mdx +65 -4
  587. package/corpus/core/docs/content/locales/ko-KR/template-calendar.mdx +60 -4
  588. package/corpus/core/docs/content/locales/ko-KR/template-chat.mdx +59 -4
  589. package/corpus/core/docs/content/locales/ko-KR/template-clips.mdx +52 -4
  590. package/corpus/core/docs/content/locales/ko-KR/template-content.mdx +60 -4
  591. package/corpus/core/docs/content/locales/ko-KR/template-design.mdx +102 -4
  592. package/corpus/core/docs/content/locales/ko-KR/template-dispatch.mdx +57 -4
  593. package/corpus/core/docs/content/locales/ko-KR/template-forms.mdx +60 -4
  594. package/corpus/core/docs/content/locales/ko-KR/template-mail.mdx +60 -4
  595. package/corpus/core/docs/content/locales/ko-KR/template-plan.mdx +57 -4
  596. package/corpus/core/docs/content/locales/ko-KR/template-slides.mdx +49 -4
  597. package/corpus/core/docs/content/locales/ko-KR/template-videos.mdx +53 -4
  598. package/corpus/core/docs/content/locales/ko-KR/tracking.mdx +54 -4
  599. package/corpus/core/docs/content/locales/ko-KR/using-your-agent.mdx +51 -4
  600. package/corpus/core/docs/content/locales/ko-KR/voice-input.mdx +43 -4
  601. package/corpus/core/docs/content/locales/ko-KR/what-is-agent-native.mdx +95 -8
  602. package/corpus/core/docs/content/locales/ko-KR/workspace-connections.mdx +128 -8
  603. package/corpus/core/docs/content/locales/ko-KR/workspace-management.mdx +50 -4
  604. package/corpus/core/docs/content/locales/ko-KR/workspace.mdx +111 -8
  605. package/corpus/core/docs/content/locales/ko-KR/writing-agent-instructions.mdx +38 -4
  606. package/corpus/core/docs/content/locales/pt-BR/a2a-protocol.mdx +99 -9
  607. package/corpus/core/docs/content/locales/pt-BR/actions.mdx +67 -4
  608. package/corpus/core/docs/content/locales/pt-BR/agent-mentions.mdx +68 -4
  609. package/corpus/core/docs/content/locales/pt-BR/agent-surfaces.mdx +116 -8
  610. package/corpus/core/docs/content/locales/pt-BR/agent-teams.mdx +172 -12
  611. package/corpus/core/docs/content/locales/pt-BR/agent-web-surfaces.mdx +51 -4
  612. package/corpus/core/docs/content/locales/pt-BR/authentication.mdx +122 -8
  613. package/corpus/core/docs/content/locales/pt-BR/automations.mdx +110 -8
  614. package/corpus/core/docs/content/locales/pt-BR/blueprint-installer.mdx +42 -4
  615. package/corpus/core/docs/content/locales/pt-BR/cli-adapters.mdx +44 -4
  616. package/corpus/core/docs/content/locales/pt-BR/client.mdx +81 -8
  617. package/corpus/core/docs/content/locales/pt-BR/cloneable-saas.mdx +85 -8
  618. package/corpus/core/docs/content/locales/pt-BR/code-agents-ui.mdx +98 -8
  619. package/corpus/core/docs/content/locales/pt-BR/components.mdx +118 -8
  620. package/corpus/core/docs/content/locales/pt-BR/context-awareness.mdx +100 -8
  621. package/corpus/core/docs/content/locales/pt-BR/creating-templates.mdx +51 -4
  622. package/corpus/core/docs/content/locales/pt-BR/cross-app-sso.mdx +109 -8
  623. package/corpus/core/docs/content/locales/pt-BR/database.mdx +52 -4
  624. package/corpus/core/docs/content/locales/pt-BR/deployment.mdx +103 -8
  625. package/corpus/core/docs/content/locales/pt-BR/dispatch.mdx +134 -8
  626. package/corpus/core/docs/content/locales/pt-BR/drop-in-agent.mdx +63 -4
  627. package/corpus/core/docs/content/locales/pt-BR/durable-resume.mdx +47 -4
  628. package/corpus/core/docs/content/locales/pt-BR/embedding-sdk.mdx +87 -8
  629. package/corpus/core/docs/content/locales/pt-BR/evals.mdx +102 -8
  630. package/corpus/core/docs/content/locales/pt-BR/extensions.mdx +113 -9
  631. package/corpus/core/docs/content/locales/pt-BR/external-agents.mdx +119 -8
  632. package/corpus/core/docs/content/locales/pt-BR/faq.mdx +98 -8
  633. package/corpus/core/docs/content/locales/pt-BR/file-uploads.mdx +61 -4
  634. package/corpus/core/docs/content/locales/pt-BR/frames.mdx +88 -8
  635. package/corpus/core/docs/content/locales/pt-BR/getting-started.mdx +34 -4
  636. package/corpus/core/docs/content/locales/pt-BR/harness-agents.mdx +79 -8
  637. package/corpus/core/docs/content/locales/pt-BR/human-approval.mdx +50 -4
  638. package/corpus/core/docs/content/locales/pt-BR/key-concepts.mdx +104 -8
  639. package/corpus/core/docs/content/locales/pt-BR/local-file-mode.mdx +60 -4
  640. package/corpus/core/docs/content/locales/pt-BR/mcp-apps.mdx +120 -10
  641. package/corpus/core/docs/content/locales/pt-BR/mcp-clients.mdx +133 -8
  642. package/corpus/core/docs/content/locales/pt-BR/mcp-protocol.mdx +105 -8
  643. package/corpus/core/docs/content/locales/pt-BR/messaging.mdx +115 -8
  644. package/corpus/core/docs/content/locales/pt-BR/migration-workbench.mdx +47 -4
  645. package/corpus/core/docs/content/locales/pt-BR/multi-app-workspace.mdx +91 -8
  646. package/corpus/core/docs/content/locales/pt-BR/multi-tenancy.mdx +80 -8
  647. package/corpus/core/docs/content/locales/pt-BR/native-chat-ui.mdx +108 -8
  648. package/corpus/core/docs/content/locales/pt-BR/notifications.mdx +135 -8
  649. package/corpus/core/docs/content/locales/pt-BR/observability.mdx +104 -8
  650. package/corpus/core/docs/content/locales/pt-BR/observational-memory.mdx +92 -8
  651. package/corpus/core/docs/content/locales/pt-BR/onboarding.mdx +45 -4
  652. package/corpus/core/docs/content/locales/pt-BR/plan-plugin.mdx +99 -8
  653. package/corpus/core/docs/content/locales/pt-BR/pr-visual-recap.mdx +125 -8
  654. package/corpus/core/docs/content/locales/pt-BR/processors.mdx +41 -4
  655. package/corpus/core/docs/content/locales/pt-BR/progress.mdx +46 -4
  656. package/corpus/core/docs/content/locales/pt-BR/pure-agent-apps.mdx +48 -4
  657. package/corpus/core/docs/content/locales/pt-BR/real-time-collaboration.mdx +107 -8
  658. package/corpus/core/docs/content/locales/pt-BR/recurring-jobs.mdx +59 -4
  659. package/corpus/core/docs/content/locales/pt-BR/routing.mdx +44 -5
  660. package/corpus/core/docs/content/locales/pt-BR/sandbox-adapters.mdx +43 -4
  661. package/corpus/core/docs/content/locales/pt-BR/security.mdx +82 -8
  662. package/corpus/core/docs/content/locales/pt-BR/server.mdx +173 -12
  663. package/corpus/core/docs/content/locales/pt-BR/sharing.mdx +45 -4
  664. package/corpus/core/docs/content/locales/pt-BR/skills-guide.mdx +118 -9
  665. package/corpus/core/docs/content/locales/pt-BR/template-analytics.mdx +46 -4
  666. package/corpus/core/docs/content/locales/pt-BR/template-assets.mdx +64 -4
  667. package/corpus/core/docs/content/locales/pt-BR/template-brain.mdx +69 -4
  668. package/corpus/core/docs/content/locales/pt-BR/template-calendar.mdx +62 -4
  669. package/corpus/core/docs/content/locales/pt-BR/template-chat.mdx +61 -4
  670. package/corpus/core/docs/content/locales/pt-BR/template-clips.mdx +52 -4
  671. package/corpus/core/docs/content/locales/pt-BR/template-content.mdx +64 -4
  672. package/corpus/core/docs/content/locales/pt-BR/template-design.mdx +106 -4
  673. package/corpus/core/docs/content/locales/pt-BR/template-dispatch.mdx +57 -4
  674. package/corpus/core/docs/content/locales/pt-BR/template-forms.mdx +64 -4
  675. package/corpus/core/docs/content/locales/pt-BR/template-mail.mdx +60 -4
  676. package/corpus/core/docs/content/locales/pt-BR/template-plan.mdx +63 -4
  677. package/corpus/core/docs/content/locales/pt-BR/template-slides.mdx +49 -4
  678. package/corpus/core/docs/content/locales/pt-BR/template-videos.mdx +53 -4
  679. package/corpus/core/docs/content/locales/pt-BR/tracking.mdx +54 -4
  680. package/corpus/core/docs/content/locales/pt-BR/using-your-agent.mdx +51 -4
  681. package/corpus/core/docs/content/locales/pt-BR/voice-input.mdx +43 -4
  682. package/corpus/core/docs/content/locales/pt-BR/what-is-agent-native.mdx +101 -8
  683. package/corpus/core/docs/content/locales/pt-BR/workspace-connections.mdx +128 -8
  684. package/corpus/core/docs/content/locales/pt-BR/workspace-management.mdx +50 -4
  685. package/corpus/core/docs/content/locales/pt-BR/workspace.mdx +111 -8
  686. package/corpus/core/docs/content/locales/pt-BR/writing-agent-instructions.mdx +46 -4
  687. package/corpus/core/docs/content/locales/zh-CN/a2a-protocol.mdx +97 -9
  688. package/corpus/core/docs/content/locales/zh-CN/actions.mdx +65 -4
  689. package/corpus/core/docs/content/locales/zh-CN/agent-mentions.mdx +68 -4
  690. package/corpus/core/docs/content/locales/zh-CN/agent-surfaces.mdx +108 -8
  691. package/corpus/core/docs/content/locales/zh-CN/agent-teams.mdx +171 -12
  692. package/corpus/core/docs/content/locales/zh-CN/agent-web-surfaces.mdx +51 -4
  693. package/corpus/core/docs/content/locales/zh-CN/authentication.mdx +122 -8
  694. package/corpus/core/docs/content/locales/zh-CN/automations.mdx +110 -8
  695. package/corpus/core/docs/content/locales/zh-CN/blueprint-installer.mdx +42 -4
  696. package/corpus/core/docs/content/locales/zh-CN/cli-adapters.mdx +44 -4
  697. package/corpus/core/docs/content/locales/zh-CN/client.mdx +79 -8
  698. package/corpus/core/docs/content/locales/zh-CN/cloneable-saas.mdx +83 -8
  699. package/corpus/core/docs/content/locales/zh-CN/code-agents-ui.mdx +94 -8
  700. package/corpus/core/docs/content/locales/zh-CN/components.mdx +112 -8
  701. package/corpus/core/docs/content/locales/zh-CN/context-awareness.mdx +96 -8
  702. package/corpus/core/docs/content/locales/zh-CN/creating-templates.mdx +51 -4
  703. package/corpus/core/docs/content/locales/zh-CN/cross-app-sso.mdx +107 -8
  704. package/corpus/core/docs/content/locales/zh-CN/database.mdx +52 -4
  705. package/corpus/core/docs/content/locales/zh-CN/deployment.mdx +103 -8
  706. package/corpus/core/docs/content/locales/zh-CN/dispatch.mdx +134 -8
  707. package/corpus/core/docs/content/locales/zh-CN/drop-in-agent.mdx +63 -4
  708. package/corpus/core/docs/content/locales/zh-CN/durable-resume.mdx +45 -4
  709. package/corpus/core/docs/content/locales/zh-CN/embedding-sdk.mdx +81 -8
  710. package/corpus/core/docs/content/locales/zh-CN/evals.mdx +100 -8
  711. package/corpus/core/docs/content/locales/zh-CN/extensions.mdx +111 -9
  712. package/corpus/core/docs/content/locales/zh-CN/external-agents.mdx +119 -8
  713. package/corpus/core/docs/content/locales/zh-CN/faq.mdx +96 -8
  714. package/corpus/core/docs/content/locales/zh-CN/file-uploads.mdx +61 -4
  715. package/corpus/core/docs/content/locales/zh-CN/frames.mdx +86 -8
  716. package/corpus/core/docs/content/locales/zh-CN/getting-started.mdx +34 -4
  717. package/corpus/core/docs/content/locales/zh-CN/harness-agents.mdx +79 -8
  718. package/corpus/core/docs/content/locales/zh-CN/human-approval.mdx +50 -4
  719. package/corpus/core/docs/content/locales/zh-CN/key-concepts.mdx +100 -8
  720. package/corpus/core/docs/content/locales/zh-CN/local-file-mode.mdx +56 -4
  721. package/corpus/core/docs/content/locales/zh-CN/mcp-apps.mdx +120 -10
  722. package/corpus/core/docs/content/locales/zh-CN/mcp-clients.mdx +133 -8
  723. package/corpus/core/docs/content/locales/zh-CN/mcp-protocol.mdx +105 -8
  724. package/corpus/core/docs/content/locales/zh-CN/messaging.mdx +115 -8
  725. package/corpus/core/docs/content/locales/zh-CN/migration-workbench.mdx +45 -4
  726. package/corpus/core/docs/content/locales/zh-CN/multi-app-workspace.mdx +91 -8
  727. package/corpus/core/docs/content/locales/zh-CN/multi-tenancy.mdx +80 -8
  728. package/corpus/core/docs/content/locales/zh-CN/native-chat-ui.mdx +104 -8
  729. package/corpus/core/docs/content/locales/zh-CN/notifications.mdx +135 -8
  730. package/corpus/core/docs/content/locales/zh-CN/observability.mdx +102 -8
  731. package/corpus/core/docs/content/locales/zh-CN/observational-memory.mdx +85 -8
  732. package/corpus/core/docs/content/locales/zh-CN/onboarding.mdx +44 -4
  733. package/corpus/core/docs/content/locales/zh-CN/plan-plugin.mdx +97 -8
  734. package/corpus/core/docs/content/locales/zh-CN/pr-visual-recap.mdx +123 -8
  735. package/corpus/core/docs/content/locales/zh-CN/processors.mdx +39 -4
  736. package/corpus/core/docs/content/locales/zh-CN/progress.mdx +46 -4
  737. package/corpus/core/docs/content/locales/zh-CN/pure-agent-apps.mdx +46 -4
  738. package/corpus/core/docs/content/locales/zh-CN/real-time-collaboration.mdx +98 -8
  739. package/corpus/core/docs/content/locales/zh-CN/recurring-jobs.mdx +59 -4
  740. package/corpus/core/docs/content/locales/zh-CN/routing.mdx +42 -5
  741. package/corpus/core/docs/content/locales/zh-CN/sandbox-adapters.mdx +41 -4
  742. package/corpus/core/docs/content/locales/zh-CN/security.mdx +78 -8
  743. package/corpus/core/docs/content/locales/zh-CN/server.mdx +169 -12
  744. package/corpus/core/docs/content/locales/zh-CN/sharing.mdx +45 -4
  745. package/corpus/core/docs/content/locales/zh-CN/skills-guide.mdx +118 -9
  746. package/corpus/core/docs/content/locales/zh-CN/template-analytics.mdx +46 -4
  747. package/corpus/core/docs/content/locales/zh-CN/template-assets.mdx +58 -4
  748. package/corpus/core/docs/content/locales/zh-CN/template-brain.mdx +65 -4
  749. package/corpus/core/docs/content/locales/zh-CN/template-calendar.mdx +58 -4
  750. package/corpus/core/docs/content/locales/zh-CN/template-chat.mdx +57 -4
  751. package/corpus/core/docs/content/locales/zh-CN/template-clips.mdx +52 -4
  752. package/corpus/core/docs/content/locales/zh-CN/template-content.mdx +58 -4
  753. package/corpus/core/docs/content/locales/zh-CN/template-design.mdx +94 -4
  754. package/corpus/core/docs/content/locales/zh-CN/template-dispatch.mdx +57 -4
  755. package/corpus/core/docs/content/locales/zh-CN/template-forms.mdx +58 -4
  756. package/corpus/core/docs/content/locales/zh-CN/template-mail.mdx +60 -4
  757. package/corpus/core/docs/content/locales/zh-CN/template-plan.mdx +57 -4
  758. package/corpus/core/docs/content/locales/zh-CN/template-slides.mdx +49 -4
  759. package/corpus/core/docs/content/locales/zh-CN/template-videos.mdx +51 -4
  760. package/corpus/core/docs/content/locales/zh-CN/tracking.mdx +54 -4
  761. package/corpus/core/docs/content/locales/zh-CN/using-your-agent.mdx +51 -4
  762. package/corpus/core/docs/content/locales/zh-CN/voice-input.mdx +43 -4
  763. package/corpus/core/docs/content/locales/zh-CN/what-is-agent-native.mdx +94 -8
  764. package/corpus/core/docs/content/locales/zh-CN/workspace-connections.mdx +126 -8
  765. package/corpus/core/docs/content/locales/zh-CN/workspace-management.mdx +50 -4
  766. package/corpus/core/docs/content/locales/zh-CN/workspace.mdx +110 -8
  767. package/corpus/core/docs/content/locales/zh-CN/writing-agent-instructions.mdx +38 -4
  768. package/corpus/core/docs/content/locales/zh-TW/a2a-protocol.mdx +97 -9
  769. package/corpus/core/docs/content/locales/zh-TW/actions.mdx +63 -4
  770. package/corpus/core/docs/content/locales/zh-TW/agent-mentions.mdx +68 -4
  771. package/corpus/core/docs/content/locales/zh-TW/agent-surfaces.mdx +108 -8
  772. package/corpus/core/docs/content/locales/zh-TW/agent-teams.mdx +171 -12
  773. package/corpus/core/docs/content/locales/zh-TW/agent-web-surfaces.mdx +51 -4
  774. package/corpus/core/docs/content/locales/zh-TW/authentication.mdx +122 -8
  775. package/corpus/core/docs/content/locales/zh-TW/automations.mdx +110 -8
  776. package/corpus/core/docs/content/locales/zh-TW/blueprint-installer.mdx +42 -4
  777. package/corpus/core/docs/content/locales/zh-TW/cli-adapters.mdx +44 -4
  778. package/corpus/core/docs/content/locales/zh-TW/client.mdx +79 -8
  779. package/corpus/core/docs/content/locales/zh-TW/cloneable-saas.mdx +83 -8
  780. package/corpus/core/docs/content/locales/zh-TW/code-agents-ui.mdx +94 -8
  781. package/corpus/core/docs/content/locales/zh-TW/components.mdx +112 -8
  782. package/corpus/core/docs/content/locales/zh-TW/context-awareness.mdx +96 -8
  783. package/corpus/core/docs/content/locales/zh-TW/creating-templates.mdx +51 -4
  784. package/corpus/core/docs/content/locales/zh-TW/cross-app-sso.mdx +107 -8
  785. package/corpus/core/docs/content/locales/zh-TW/database.mdx +52 -4
  786. package/corpus/core/docs/content/locales/zh-TW/deployment.mdx +103 -8
  787. package/corpus/core/docs/content/locales/zh-TW/dispatch.mdx +134 -8
  788. package/corpus/core/docs/content/locales/zh-TW/drop-in-agent.mdx +63 -4
  789. package/corpus/core/docs/content/locales/zh-TW/durable-background-runs.mdx +88 -8
  790. package/corpus/core/docs/content/locales/zh-TW/durable-resume.mdx +45 -4
  791. package/corpus/core/docs/content/locales/zh-TW/embedding-sdk.mdx +83 -8
  792. package/corpus/core/docs/content/locales/zh-TW/evals.mdx +100 -8
  793. package/corpus/core/docs/content/locales/zh-TW/extensions.mdx +111 -9
  794. package/corpus/core/docs/content/locales/zh-TW/external-agents.mdx +119 -8
  795. package/corpus/core/docs/content/locales/zh-TW/faq.mdx +96 -8
  796. package/corpus/core/docs/content/locales/zh-TW/file-uploads.mdx +61 -4
  797. package/corpus/core/docs/content/locales/zh-TW/frames.mdx +86 -8
  798. package/corpus/core/docs/content/locales/zh-TW/getting-started.mdx +34 -4
  799. package/corpus/core/docs/content/locales/zh-TW/harness-agents.mdx +79 -8
  800. package/corpus/core/docs/content/locales/zh-TW/human-approval.mdx +50 -4
  801. package/corpus/core/docs/content/locales/zh-TW/key-concepts.mdx +100 -8
  802. package/corpus/core/docs/content/locales/zh-TW/local-file-mode.mdx +56 -4
  803. package/corpus/core/docs/content/locales/zh-TW/mcp-apps.mdx +120 -10
  804. package/corpus/core/docs/content/locales/zh-TW/mcp-clients.mdx +133 -8
  805. package/corpus/core/docs/content/locales/zh-TW/mcp-protocol.mdx +105 -8
  806. package/corpus/core/docs/content/locales/zh-TW/messaging.mdx +115 -8
  807. package/corpus/core/docs/content/locales/zh-TW/migration-workbench.mdx +45 -4
  808. package/corpus/core/docs/content/locales/zh-TW/multi-app-workspace.mdx +91 -8
  809. package/corpus/core/docs/content/locales/zh-TW/multi-tenancy.mdx +80 -8
  810. package/corpus/core/docs/content/locales/zh-TW/native-chat-ui.mdx +104 -8
  811. package/corpus/core/docs/content/locales/zh-TW/notifications.mdx +135 -8
  812. package/corpus/core/docs/content/locales/zh-TW/observability.mdx +102 -8
  813. package/corpus/core/docs/content/locales/zh-TW/observational-memory.mdx +85 -8
  814. package/corpus/core/docs/content/locales/zh-TW/onboarding.mdx +44 -4
  815. package/corpus/core/docs/content/locales/zh-TW/plan-plugin.mdx +97 -8
  816. package/corpus/core/docs/content/locales/zh-TW/pr-visual-recap.mdx +123 -8
  817. package/corpus/core/docs/content/locales/zh-TW/processors.mdx +39 -4
  818. package/corpus/core/docs/content/locales/zh-TW/progress.mdx +46 -4
  819. package/corpus/core/docs/content/locales/zh-TW/pure-agent-apps.mdx +46 -4
  820. package/corpus/core/docs/content/locales/zh-TW/real-time-collaboration.mdx +98 -8
  821. package/corpus/core/docs/content/locales/zh-TW/recurring-jobs.mdx +59 -4
  822. package/corpus/core/docs/content/locales/zh-TW/routing.mdx +42 -5
  823. package/corpus/core/docs/content/locales/zh-TW/sandbox-adapters.mdx +41 -4
  824. package/corpus/core/docs/content/locales/zh-TW/security.mdx +80 -8
  825. package/corpus/core/docs/content/locales/zh-TW/server.mdx +169 -12
  826. package/corpus/core/docs/content/locales/zh-TW/sharing.mdx +45 -4
  827. package/corpus/core/docs/content/locales/zh-TW/skills-guide.mdx +118 -9
  828. package/corpus/core/docs/content/locales/zh-TW/template-analytics.mdx +46 -4
  829. package/corpus/core/docs/content/locales/zh-TW/template-assets.mdx +58 -4
  830. package/corpus/core/docs/content/locales/zh-TW/template-brain.mdx +65 -4
  831. package/corpus/core/docs/content/locales/zh-TW/template-calendar.mdx +58 -4
  832. package/corpus/core/docs/content/locales/zh-TW/template-chat.mdx +59 -4
  833. package/corpus/core/docs/content/locales/zh-TW/template-clips.mdx +52 -4
  834. package/corpus/core/docs/content/locales/zh-TW/template-content.mdx +58 -4
  835. package/corpus/core/docs/content/locales/zh-TW/template-design.mdx +96 -4
  836. package/corpus/core/docs/content/locales/zh-TW/template-dispatch.mdx +57 -4
  837. package/corpus/core/docs/content/locales/zh-TW/template-forms.mdx +58 -4
  838. package/corpus/core/docs/content/locales/zh-TW/template-mail.mdx +60 -4
  839. package/corpus/core/docs/content/locales/zh-TW/template-plan.mdx +57 -4
  840. package/corpus/core/docs/content/locales/zh-TW/template-slides.mdx +49 -4
  841. package/corpus/core/docs/content/locales/zh-TW/template-videos.mdx +51 -4
  842. package/corpus/core/docs/content/locales/zh-TW/tracking.mdx +54 -4
  843. package/corpus/core/docs/content/locales/zh-TW/using-your-agent.mdx +51 -4
  844. package/corpus/core/docs/content/locales/zh-TW/voice-input.mdx +43 -4
  845. package/corpus/core/docs/content/locales/zh-TW/what-is-agent-native.mdx +94 -8
  846. package/corpus/core/docs/content/locales/zh-TW/workspace-connections.mdx +126 -8
  847. package/corpus/core/docs/content/locales/zh-TW/workspace-management.mdx +50 -4
  848. package/corpus/core/docs/content/locales/zh-TW/workspace.mdx +111 -8
  849. package/corpus/core/docs/content/locales/zh-TW/writing-agent-instructions.mdx +38 -4
  850. package/corpus/core/docs/content/mcp-apps.mdx +120 -10
  851. package/corpus/core/docs/content/mcp-clients.mdx +161 -8
  852. package/corpus/core/docs/content/mcp-protocol.mdx +105 -8
  853. package/corpus/core/docs/content/messaging.mdx +115 -8
  854. package/corpus/core/docs/content/migration-workbench.mdx +45 -4
  855. package/corpus/core/docs/content/multi-app-workspace.mdx +91 -8
  856. package/corpus/core/docs/content/multi-tenancy.mdx +80 -8
  857. package/corpus/core/docs/content/native-chat-ui.mdx +106 -8
  858. package/corpus/core/docs/content/notifications.mdx +135 -8
  859. package/corpus/core/docs/content/observability.mdx +102 -8
  860. package/corpus/core/docs/content/observational-memory.mdx +89 -8
  861. package/corpus/core/docs/content/onboarding.mdx +45 -4
  862. package/corpus/core/docs/content/plan-plugin.mdx +99 -8
  863. package/corpus/core/docs/content/pr-visual-recap.mdx +125 -8
  864. package/corpus/core/docs/content/processors.mdx +41 -4
  865. package/corpus/core/docs/content/progress.mdx +46 -4
  866. package/corpus/core/docs/content/pure-agent-apps.mdx +46 -4
  867. package/corpus/core/docs/content/real-time-collaboration.mdx +104 -8
  868. package/corpus/core/docs/content/recurring-jobs.mdx +59 -4
  869. package/corpus/core/docs/content/routing.mdx +44 -5
  870. package/corpus/core/docs/content/sandbox-adapters.mdx +43 -4
  871. package/corpus/core/docs/content/security.mdx +80 -8
  872. package/corpus/core/docs/content/server.mdx +173 -12
  873. package/corpus/core/docs/content/sharing.mdx +45 -4
  874. package/corpus/core/docs/content/skills-guide.mdx +118 -9
  875. package/corpus/core/docs/content/template-analytics.mdx +46 -4
  876. package/corpus/core/docs/content/template-assets.mdx +60 -4
  877. package/corpus/core/docs/content/template-brain.mdx +67 -4
  878. package/corpus/core/docs/content/template-calendar.mdx +62 -4
  879. package/corpus/core/docs/content/template-chat.mdx +61 -4
  880. package/corpus/core/docs/content/template-clips.mdx +52 -4
  881. package/corpus/core/docs/content/template-content.mdx +60 -4
  882. package/corpus/core/docs/content/template-design.mdx +103 -4
  883. package/corpus/core/docs/content/template-dispatch.mdx +57 -4
  884. package/corpus/core/docs/content/template-forms.mdx +62 -4
  885. package/corpus/core/docs/content/template-mail.mdx +60 -4
  886. package/corpus/core/docs/content/template-plan.mdx +61 -4
  887. package/corpus/core/docs/content/template-slides.mdx +49 -4
  888. package/corpus/core/docs/content/template-videos.mdx +51 -4
  889. package/corpus/core/docs/content/tracking.mdx +54 -4
  890. package/corpus/core/docs/content/using-your-agent.mdx +51 -4
  891. package/corpus/core/docs/content/voice-input.mdx +43 -4
  892. package/corpus/core/docs/content/what-is-agent-native.mdx +188 -8
  893. package/corpus/core/docs/content/workspace-connections.mdx +128 -8
  894. package/corpus/core/docs/content/workspace-management.mdx +50 -4
  895. package/corpus/core/docs/content/workspace.mdx +111 -8
  896. package/corpus/core/docs/content/writing-agent-instructions.mdx +45 -4
  897. package/corpus/core/package.json +2 -1
  898. package/corpus/core/src/agent/engine/index.ts +1 -0
  899. package/corpus/core/src/agent/engine/registry.ts +40 -0
  900. package/corpus/core/src/agent/production-agent.ts +6 -2
  901. package/corpus/core/src/application-state/store.ts +5 -5
  902. package/corpus/core/src/chat-threads/store.ts +2 -2
  903. package/corpus/core/src/cli/content-local.ts +374 -0
  904. package/corpus/core/src/cli/design-connect.ts +490 -0
  905. package/corpus/core/src/cli/index.ts +33 -0
  906. package/corpus/core/src/cli/skills.ts +355 -200
  907. package/corpus/core/src/client/AssistantChat.tsx +39 -3
  908. package/corpus/core/src/client/MultiTabAssistantChat.tsx +11 -93
  909. package/corpus/core/src/client/agent-chat.ts +27 -3
  910. package/corpus/core/src/client/analytics.ts +68 -15
  911. package/corpus/core/src/client/blocks/index.ts +2 -0
  912. package/corpus/core/src/client/blocks/library/MermaidBlock.tsx +1 -1
  913. package/corpus/core/src/client/blocks/library/diagram.config.ts +42 -18
  914. package/corpus/core/src/client/blocks/library/diagram.tsx +2 -2
  915. package/corpus/core/src/client/blocks/library/sanitize-html.ts +71 -6
  916. package/corpus/core/src/client/blocks/library/wireframe-kit.tsx +2 -2
  917. package/corpus/core/src/client/blocks/library/wireframe.tsx +9 -3
  918. package/corpus/core/src/client/blocks/mdx.ts +62 -1
  919. package/corpus/core/src/client/blocks/server.ts +2 -0
  920. package/corpus/core/src/client/blocks/types.ts +5 -4
  921. package/corpus/core/src/client/chat/message-components.tsx +2 -98
  922. package/corpus/core/src/client/chat-model-groups.ts +147 -0
  923. package/corpus/core/src/client/components/LiveCursorOverlay.tsx +33 -66
  924. package/corpus/core/src/client/components/ui/dialog.tsx +91 -0
  925. package/corpus/core/src/client/composer/ComposerPlusMenu.tsx +33 -290
  926. package/corpus/core/src/client/composer/TiptapComposer.tsx +99 -24
  927. package/corpus/core/src/client/composer/useVoiceDictation.ts +429 -260
  928. package/corpus/core/src/client/frame-protocol.ts +17 -2
  929. package/corpus/core/src/client/index.ts +2 -0
  930. package/corpus/core/src/client/resources/McpIntegrationDialog.tsx +614 -0
  931. package/corpus/core/src/client/resources/ResourcesPanel.tsx +411 -644
  932. package/corpus/core/src/client/resources/mcp-integration-catalog.ts +239 -0
  933. package/corpus/core/src/client/rich-markdown-editor/RegistryBlockNode.tsx +2 -2
  934. package/corpus/core/src/client/settings/SettingsPanel.tsx +1 -1
  935. package/corpus/core/src/client/sharing/ShareButton.tsx +20 -15
  936. package/corpus/core/src/client/use-agent-engine-configured.ts +80 -28
  937. package/corpus/core/src/client/use-chat-models.ts +12 -104
  938. package/corpus/core/src/db/client.ts +0 -5
  939. package/corpus/core/src/integrations/adapters/email.ts +2 -2
  940. package/corpus/core/src/local-artifacts/index.ts +18 -0
  941. package/corpus/core/src/localization/default-messages.ts +81 -0
  942. package/corpus/core/src/localization/shared.ts +3 -3
  943. package/corpus/core/src/org/handlers.ts +2 -2
  944. package/corpus/core/src/resources/store.ts +7 -7
  945. package/corpus/core/src/server/core-routes-plugin.ts +34 -12
  946. package/corpus/core/src/server/transcribe-voice.ts +57 -22
  947. package/corpus/core/src/shared/mcp-embed-headers.ts +23 -1
  948. package/corpus/core/src/shared/mcp-integration-config.ts +101 -0
  949. package/corpus/core/src/styles/agent-native.css +58 -107
  950. package/corpus/core/src/styles/blocks.css +15 -3
  951. package/corpus/core/src/templates/workspace-core/.agents/skills/voice-transcription/SKILL.md +10 -0
  952. package/corpus/core/src/vite/client.ts +19 -0
  953. package/corpus/core/src/voice/index.ts +18 -0
  954. package/corpus/core/src/voice/voice-cleanup-prompt.ts +38 -0
  955. package/corpus/core/src/voice/voice-context.ts +217 -0
  956. package/corpus/core/src/voice/voice-replacements.ts +75 -0
  957. package/corpus/templates/analytics/AGENTS.md +4 -3
  958. package/corpus/templates/analytics/actions/list-session-recordings.ts +6 -1
  959. package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +557 -400
  960. package/corpus/templates/analytics/app/global.css +22 -4
  961. package/corpus/templates/analytics/app/i18n/zh-TW.ts +3 -0
  962. package/corpus/templates/analytics/app/i18n-data.ts +21 -0
  963. package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/index.tsx +33 -8
  964. package/corpus/templates/analytics/app/pages/sessions/SessionDetailPage.tsx +7 -0
  965. package/corpus/templates/analytics/app/pages/sessions/SessionsPage.tsx +32 -10
  966. package/corpus/templates/analytics/changelog/2026-06-28-ask-tab-now-matches-the-darker-app-background.md +6 -0
  967. package/corpus/templates/analytics/changelog/2026-06-28-dashboard-email-reports-now-use-cleaner-light-mode-snapshots.md +6 -0
  968. package/corpus/templates/analytics/changelog/2026-06-28-left-sidebar-collapses-into-an-animated-icon-rail.md +6 -0
  969. package/corpus/templates/analytics/changelog/2026-06-28-sessions-now-show-only-signed-in-recordings-with-playable-re.md +6 -0
  970. package/corpus/templates/analytics/changelog/2026-06-28-sessions-shows-scoped-recordings-even-when-replay-events-are.md +6 -0
  971. package/corpus/templates/analytics/seeds/dashboards/agent-native-templates-first-party.json +3 -3
  972. package/corpus/templates/analytics/server/lib/dashboard-report.ts +29 -7
  973. package/corpus/templates/analytics/server/lib/first-party-metric-catalog.ts +5 -2
  974. package/corpus/templates/analytics/server/lib/session-replay.ts +21 -7
  975. package/corpus/templates/assets/app/components/layout/Sidebar.tsx +4 -4
  976. package/corpus/templates/assets/changelog/2026-06-28-left-sidebar-collapse-motion-and-footer-chrome-are-quieter.md +6 -0
  977. package/corpus/templates/brain/app/components/layout/Layout.tsx +29 -2
  978. package/corpus/templates/brain/app/components/layout/Sidebar.tsx +131 -42
  979. package/corpus/templates/brain/app/i18n/zh-TW.ts +2 -0
  980. package/corpus/templates/brain/app/i18n-data.ts +20 -0
  981. package/corpus/templates/brain/changelog/2026-06-28-left-sidebar-collapses-into-an-animated-icon-rail.md +6 -0
  982. package/corpus/templates/calendar/app/components/layout/AppLayout.tsx +29 -1
  983. package/corpus/templates/calendar/app/components/layout/Sidebar.tsx +417 -299
  984. package/corpus/templates/calendar/app/i18n/zh-TW.ts +2 -0
  985. package/corpus/templates/calendar/app/i18n-data.ts +20 -0
  986. package/corpus/templates/calendar/changelog/2026-06-28-left-sidebar-collapses-into-an-animated-icon-rail.md +6 -0
  987. package/corpus/templates/chat/app/components/layout/Sidebar.tsx +6 -19
  988. package/corpus/templates/chat/changelog/2026-06-28-left-sidebar-collapse-motion-and-footer-chrome-are-quieter.md +6 -0
  989. package/corpus/templates/clips/AGENTS.md +8 -0
  990. package/corpus/templates/clips/actions/cleanup-transcript.ts +58 -10
  991. package/corpus/templates/clips/actions/finalize-meeting.ts +81 -12
  992. package/corpus/templates/clips/actions/get-builder-credit-status.ts +22 -0
  993. package/corpus/templates/clips/actions/get-recording-player-data.ts +18 -3
  994. package/corpus/templates/clips/actions/lib/agents-md-context.ts +4 -1
  995. package/corpus/templates/clips/actions/lib/builder-credits-state.ts +46 -0
  996. package/corpus/templates/clips/actions/lib/provider-transcript.ts +51 -0
  997. package/corpus/templates/clips/actions/regenerate-title.ts +18 -0
  998. package/corpus/templates/clips/actions/request-transcript.ts +56 -33
  999. package/corpus/templates/clips/actions/save-browser-transcript.ts +1 -17
  1000. package/corpus/templates/clips/app/components/library/library-layout.tsx +3 -3
  1001. package/corpus/templates/clips/app/components/meetings/share-meeting-dialog.tsx +1 -1
  1002. package/corpus/templates/clips/app/components/player/share-dialog.tsx +2 -2
  1003. package/corpus/templates/clips/app/components/player/transcript-panel.tsx +120 -11
  1004. package/corpus/templates/clips/app/i18n/ar-SA.ts +25 -0
  1005. package/corpus/templates/clips/app/i18n/de-DE.ts +25 -0
  1006. package/corpus/templates/clips/app/i18n/en-US.ts +25 -0
  1007. package/corpus/templates/clips/app/i18n/es-ES.ts +25 -0
  1008. package/corpus/templates/clips/app/i18n/fr-FR.ts +25 -0
  1009. package/corpus/templates/clips/app/i18n/hi-IN.ts +25 -0
  1010. package/corpus/templates/clips/app/i18n/ja-JP.ts +25 -0
  1011. package/corpus/templates/clips/app/i18n/ko-KR.ts +25 -0
  1012. package/corpus/templates/clips/app/i18n/pt-BR.ts +25 -0
  1013. package/corpus/templates/clips/app/i18n/zh-CN.ts +23 -0
  1014. package/corpus/templates/clips/app/i18n/zh-TW.ts +23 -0
  1015. package/corpus/templates/clips/app/routes/_app.settings._index.tsx +69 -0
  1016. package/corpus/templates/clips/app/routes/r.$recordingId.tsx +52 -2
  1017. package/corpus/templates/clips/app/routes/record.tsx +26 -15
  1018. package/corpus/templates/clips/changelog/2026-06-28-builder-credit-pauses-show-friendly-upgrade-guidance.md +6 -0
  1019. package/corpus/templates/clips/changelog/2026-06-28-left-sidebar-footer-controls-use-less-divider-chrome.md +6 -0
  1020. package/corpus/templates/clips/changelog/2026-06-28-transcription-now-auto-detects-spoken-language-instead-of-following.md +6 -0
  1021. package/corpus/templates/clips/changelog/2026-06-28-video-uploads-now-finish-when-duration-metadata-is-unavailable.md +6 -0
  1022. package/corpus/templates/clips/desktop/src/lib/personal-vocabulary.ts +13 -8
  1023. package/corpus/templates/clips/desktop/src/lib/transcription-engine.ts +7 -3
  1024. package/corpus/templates/clips/desktop/src/lib/voice-dictation.ts +60 -1
  1025. package/corpus/templates/clips/desktop/src-tauri/src/native_screen.rs +30 -12
  1026. package/corpus/templates/clips/desktop/src-tauri/src/whisper_speech.rs +6 -19
  1027. package/corpus/templates/clips/server/routes/api/uploads/[recordingId]/chunk.post.ts +4 -3
  1028. package/corpus/templates/clips/shared/builder-credits.ts +120 -0
  1029. package/corpus/templates/clips/shared/recording-core.ts +26 -8
  1030. package/corpus/templates/content/AGENTS.md +23 -2
  1031. package/corpus/templates/content/actions/_builder-docs-client.ts +952 -0
  1032. package/corpus/templates/content/actions/_document-flush.ts +62 -0
  1033. package/corpus/templates/content/actions/_local-file-documents.ts +115 -18
  1034. package/corpus/templates/content/actions/check-builder-doc.ts +38 -0
  1035. package/corpus/templates/content/actions/delete-document.ts +8 -0
  1036. package/corpus/templates/content/actions/import-content-source.ts +12 -0
  1037. package/corpus/templates/content/actions/list-builder-docs.ts +29 -0
  1038. package/corpus/templates/content/actions/pull-builder-doc.ts +42 -0
  1039. package/corpus/templates/content/actions/pull-document.ts +9 -59
  1040. package/corpus/templates/content/actions/push-builder-doc.ts +45 -0
  1041. package/corpus/templates/content/app/blocks/BuilderDocsBlocks.tsx +254 -0
  1042. package/corpus/templates/content/app/blocks/contentBlockRegistry.tsx +4 -0
  1043. package/corpus/templates/content/app/components/editor/DocumentDatabase.tsx +1 -1
  1044. package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +1 -1
  1045. package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +5 -5
  1046. package/corpus/templates/content/changelog/2026-06-28-left-sidebar-collapse-motion-and-footer-chrome-are-quieter.md +6 -0
  1047. package/corpus/templates/content/server/db/schema.ts +12 -0
  1048. package/corpus/templates/content/server/plugins/db.ts +23 -0
  1049. package/corpus/templates/content/shared/api.ts +1 -0
  1050. package/corpus/templates/content/shared/builder-docs-blocks.ts +361 -0
  1051. package/corpus/templates/content/shared/builder-mdx.ts +1037 -0
  1052. package/corpus/templates/content/shared/content-source.ts +6 -0
  1053. package/corpus/templates/content/shared/nfm-registry.ts +4 -0
  1054. package/corpus/templates/content/vite.config.ts +13 -0
  1055. package/corpus/templates/design/.agents/skills/visual-edit/SKILL.md +137 -0
  1056. package/corpus/templates/design/AGENTS.md +95 -5
  1057. package/corpus/templates/design/DESIGN.md +82 -0
  1058. package/corpus/templates/design/DEVELOPING.md +43 -0
  1059. package/corpus/templates/design/actions/add-localhost-screens.ts +426 -0
  1060. package/corpus/templates/design/actions/apply-shader.ts +277 -0
  1061. package/corpus/templates/design/actions/apply-visual-edit.ts +303 -0
  1062. package/corpus/templates/design/actions/connect-localhost.ts +183 -0
  1063. package/corpus/templates/design/actions/edit-design.ts +195 -42
  1064. package/corpus/templates/design/actions/generate-design.ts +71 -1
  1065. package/corpus/templates/design/actions/generate-screens.ts +193 -0
  1066. package/corpus/templates/design/actions/get-code-layer-projection.ts +191 -0
  1067. package/corpus/templates/design/actions/get-shader.ts +119 -0
  1068. package/corpus/templates/design/actions/list-localhost-connections.ts +95 -0
  1069. package/corpus/templates/design/actions/navigate.ts +55 -2
  1070. package/corpus/templates/design/actions/view-screen.ts +68 -1
  1071. package/corpus/templates/design/agent-native.app-skill.json +10 -0
  1072. package/corpus/templates/design/app/components/design/CanvasContextMenu.tsx +761 -0
  1073. package/corpus/templates/design/app/components/design/DesignCanvas.tsx +2057 -103
  1074. package/corpus/templates/design/app/components/design/DesignEditorSkeleton.tsx +74 -38
  1075. package/corpus/templates/design/app/components/design/DesignExtensionsPanel.tsx +399 -0
  1076. package/corpus/templates/design/app/components/design/EditPanel.tsx +3185 -439
  1077. package/corpus/templates/design/app/components/design/LayersPanel.tsx +1124 -0
  1078. package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +3116 -147
  1079. package/corpus/templates/design/app/components/design/QuestionFlow.tsx +700 -13
  1080. package/corpus/templates/design/app/components/design/TweaksPanel.tsx +107 -63
  1081. package/corpus/templates/design/app/components/design/index.ts +0 -5
  1082. package/corpus/templates/design/app/components/design/inspector/AlignmentMatrix.tsx +286 -0
  1083. package/corpus/templates/design/app/components/design/inspector/AutoLayoutMatrix.tsx +699 -0
  1084. package/corpus/templates/design/app/components/design/inspector/ConstraintsWidget.tsx +461 -0
  1085. package/corpus/templates/design/app/components/design/inspector/ExportSettingsPanel.tsx +166 -0
  1086. package/corpus/templates/design/app/components/design/inspector/FigmaColorPicker.tsx +1420 -0
  1087. package/corpus/templates/design/app/components/design/inspector/SHADER_INTEGRATION.md +420 -0
  1088. package/corpus/templates/design/app/components/design/inspector/ScrubInput.tsx +215 -0
  1089. package/corpus/templates/design/app/components/design/inspector/ShaderControls.stories.tsx +71 -0
  1090. package/corpus/templates/design/app/components/design/inspector/ShaderControls.tsx +518 -0
  1091. package/corpus/templates/design/app/components/design/inspector/ShaderEffectRow.tsx +106 -0
  1092. package/corpus/templates/design/app/components/design/inspector/figma-icons.tsx +361 -0
  1093. package/corpus/templates/design/app/components/design/inspector/index.ts +60 -0
  1094. package/corpus/templates/design/app/components/design/inspector/scrub-input-utils.ts +201 -0
  1095. package/corpus/templates/design/app/components/design/types.ts +23 -0
  1096. package/corpus/templates/design/app/components/layout/Layout.tsx +24 -13
  1097. package/corpus/templates/design/app/components/layout/Sidebar.tsx +4 -4
  1098. package/corpus/templates/design/app/components/visual-editor/CanvasCommentPins.tsx +474 -36
  1099. package/corpus/templates/design/app/components/visual-editor/DrawOverlay.tsx +22 -5
  1100. package/corpus/templates/design/app/components/visual-editor/SaveStatusIndicator.tsx +24 -11
  1101. package/corpus/templates/design/app/global.css +121 -3
  1102. package/corpus/templates/design/app/hooks/use-agent-generating.ts +4 -0
  1103. package/corpus/templates/design/app/hooks/use-navigation-state.ts +130 -8
  1104. package/corpus/templates/design/app/hooks/useDesignHotkeys.ts +329 -0
  1105. package/corpus/templates/design/app/i18n/zh-TW.ts +264 -0
  1106. package/corpus/templates/design/app/i18n-data.ts +2790 -1
  1107. package/corpus/templates/design/app/pages/DesignEditor.tsx +5108 -851
  1108. package/corpus/templates/design/changelog/2026-06-28-annotate-mode-now-combines-drawing-and-comment-pins-in-one-c.md +6 -0
  1109. package/corpus/templates/design/changelog/2026-06-28-design-editor-panel-borders-are-cleaner-so-the-canvas-edge-s.md +6 -0
  1110. package/corpus/templates/design/changelog/2026-06-28-drawing-prompts-now-reliably-open-and-submit-to-the-design-a.md +6 -0
  1111. package/corpus/templates/design/changelog/2026-06-28-editor-app-menus-now-use-an-outline-agent-native-mark-with-b.md +6 -0
  1112. package/corpus/templates/design/changelog/2026-06-28-figma-style-code-design-mode.md +6 -0
  1113. package/corpus/templates/design/changelog/2026-06-28-layer-selection-now-updates-chat-context-without-opening-the.md +6 -0
  1114. package/corpus/templates/design/changelog/2026-06-28-layer-selections-now-preserve-hidden-and-locked-canvas-state.md +6 -0
  1115. package/corpus/templates/design/changelog/2026-06-28-left-sidebar-collapse-motion-and-footer-chrome-are-quieter.md +6 -0
  1116. package/corpus/templates/design/changelog/2026-06-28-live-cursors-now-keep-names-beside-a-cleaner-pointer-marker.md +6 -0
  1117. package/corpus/templates/design/changelog/2026-06-28-mode-switching-now-lives-in-a-compact-bottom-right-icon-dock.md +6 -0
  1118. package/corpus/templates/design/changelog/2026-06-28-screen-overview-now-handles-zooming-drawing-opening-and-dele.md +6 -0
  1119. package/corpus/templates/design/changelog/2026-06-28-screen-overview-now-selects-screens-on-click-and-opens-them-.md +6 -0
  1120. package/corpus/templates/design/changelog/2026-06-28-screen-overview-zooms-into-the-active-screen-with-smoother-e.md +6 -0
  1121. package/corpus/templates/design/changelog/2026-06-28-selected-element-chips-in-chat-are-shorter-and-easier-to-sca.md +6 -0
  1122. package/corpus/templates/design/changelog/2026-06-28-the-design-editor-toolbar-is-more-compact-and-the-app-menu-m.md +6 -0
  1123. package/corpus/templates/design/changelog/2026-06-28-tweaks-now-live-at-the-top-of-the-design-sidebar-instead-of-.md +6 -0
  1124. package/corpus/templates/design/changelog/2026-06-28-tweaks-now-live-in-the-right-inspector-beside-the-design-tab.md +6 -0
  1125. package/corpus/templates/design/changelog/2026-06-29-active-sidebar-rows-use-soft-highlights.md +6 -0
  1126. package/corpus/templates/design/changelog/2026-06-29-agents-can-now-open-screen-overview-focus-screens-and-add.md +6 -0
  1127. package/corpus/templates/design/changelog/2026-06-29-design-agents-now-edit-broad-copy-changes-more-reliably.md +6 -0
  1128. package/corpus/templates/design/changelog/2026-06-29-design-editor-extensions-now-run-inline-beside-the-artboard.md +6 -0
  1129. package/corpus/templates/design/changelog/2026-06-29-sidebars-use-darker-chrome-and-chat-warns-immediately.md +6 -0
  1130. package/corpus/templates/design/changelog/2026-06-29-visual-edit-can-open-localhost-routes-as-url-backed-screens.md +6 -0
  1131. package/corpus/templates/design/package.json +1 -0
  1132. package/corpus/templates/design/server/db/schema.ts +26 -0
  1133. package/corpus/templates/design/server/lib/design-snapshot.ts +1 -1
  1134. package/corpus/templates/design/server/plugins/agent-chat.ts +3 -0
  1135. package/corpus/templates/design/shared/api.ts +27 -0
  1136. package/corpus/templates/design/shared/canvas-frames.ts +103 -0
  1137. package/corpus/templates/design/shared/canvas-math.ts +1058 -0
  1138. package/corpus/templates/design/shared/code-layer.ts +2212 -0
  1139. package/corpus/templates/design/shared/color-utils.ts +180 -0
  1140. package/corpus/templates/design/shared/generation-session.ts +61 -0
  1141. package/corpus/templates/design/shared/shader-presets.ts +782 -0
  1142. package/corpus/templates/design/shared/shader-safety.ts +137 -0
  1143. package/corpus/templates/design/shared/source-mode.ts +237 -0
  1144. package/corpus/templates/forms/app/components/layout/Sidebar.tsx +149 -6
  1145. package/corpus/templates/forms/app/i18n/ar-SA.ts +2 -0
  1146. package/corpus/templates/forms/app/i18n/de-DE.ts +2 -0
  1147. package/corpus/templates/forms/app/i18n/en-US.ts +2 -0
  1148. package/corpus/templates/forms/app/i18n/es-ES.ts +2 -0
  1149. package/corpus/templates/forms/app/i18n/fr-FR.ts +2 -0
  1150. package/corpus/templates/forms/app/i18n/hi-IN.ts +2 -0
  1151. package/corpus/templates/forms/app/i18n/ja-JP.ts +2 -0
  1152. package/corpus/templates/forms/app/i18n/ko-KR.ts +2 -0
  1153. package/corpus/templates/forms/app/i18n/pt-BR.ts +2 -0
  1154. package/corpus/templates/forms/app/i18n/zh-CN.ts +2 -0
  1155. package/corpus/templates/forms/app/i18n/zh-TW.ts +2 -0
  1156. package/corpus/templates/forms/changelog/2026-06-28-left-sidebar-collapses-into-an-animated-icon-rail.md +6 -0
  1157. package/corpus/templates/macros/app/components/layout/AppLayout.tsx +2 -2
  1158. package/corpus/templates/macros/changelog/2026-06-28-left-sidebar-footer-controls-use-less-divider-chrome.md +6 -0
  1159. package/corpus/templates/mail/app/components/layout/AppLayout.tsx +408 -247
  1160. package/corpus/templates/mail/app/i18n/ar-SA.ts +4 -0
  1161. package/corpus/templates/mail/app/i18n/de-DE.ts +4 -0
  1162. package/corpus/templates/mail/app/i18n/en-US.ts +4 -0
  1163. package/corpus/templates/mail/app/i18n/es-ES.ts +4 -0
  1164. package/corpus/templates/mail/app/i18n/fr-FR.ts +4 -0
  1165. package/corpus/templates/mail/app/i18n/hi-IN.ts +4 -0
  1166. package/corpus/templates/mail/app/i18n/ja-JP.ts +4 -0
  1167. package/corpus/templates/mail/app/i18n/ko-KR.ts +4 -0
  1168. package/corpus/templates/mail/app/i18n/pt-BR.ts +4 -0
  1169. package/corpus/templates/mail/app/i18n/zh-CN.ts +4 -0
  1170. package/corpus/templates/mail/app/i18n/zh-TW.ts +4 -0
  1171. package/corpus/templates/mail/changelog/2026-06-28-pinned-sidebar-collapses-into-an-animated-icon-rail.md +6 -0
  1172. package/corpus/templates/plan/.agents/skills/visual-plan/SKILL.md +25 -92
  1173. package/corpus/templates/plan/.agents/skills/visual-plan/references/connection.md +51 -0
  1174. package/corpus/templates/plan/.agents/skills/visual-plan/references/document-quality.md +5 -1
  1175. package/corpus/templates/plan/.agents/skills/visual-plan/references/local-files.md +85 -0
  1176. package/corpus/templates/plan/.agents/skills/visual-plan/references/wireframe.md +21 -0
  1177. package/corpus/templates/plan/.agents/skills/visual-recap/SKILL.md +32 -104
  1178. package/corpus/templates/plan/.agents/skills/visual-recap/references/connection.md +51 -0
  1179. package/corpus/templates/plan/.agents/skills/visual-recap/references/local-files.md +85 -0
  1180. package/corpus/templates/plan/.agents/skills/visual-recap/references/wireframe.md +21 -0
  1181. package/corpus/templates/plan/actions/create-prototype-plan.ts +1 -1
  1182. package/corpus/templates/plan/actions/delete-visual-plan.ts +2 -2
  1183. package/corpus/templates/plan/actions/get-plan-blocks.ts +2 -0
  1184. package/corpus/templates/plan/app/components/layout/Sidebar.tsx +6 -8
  1185. package/corpus/templates/plan/app/components/plan/CanvasArea.tsx +25 -29
  1186. package/corpus/templates/plan/app/components/plan/wireframe/Wireframe.tsx +10 -5
  1187. package/corpus/templates/plan/app/components/plan/wireframe/html-artboard.css +15 -3
  1188. package/corpus/templates/plan/app/components/plan/wireframe/kit/rough.tsx +6 -6
  1189. package/corpus/templates/plan/app/components/plan/wireframe/sanitize-html.ts +71 -6
  1190. package/corpus/templates/plan/app/global.css +67 -81
  1191. package/corpus/templates/plan/app/pages/PlansPage.tsx +8 -0
  1192. package/corpus/templates/plan/app/root.tsx +31 -1
  1193. package/corpus/templates/plan/changelog/2026-06-28-left-sidebar-collapse-motion-and-footer-chrome-are-quieter.md +6 -0
  1194. package/corpus/templates/plan/changelog/2026-06-28-plan-canvases-stay-stable-while-panning-and-zooming-in-chrom.md +6 -0
  1195. package/corpus/templates/plan/changelog/2026-06-28-plan-wireframes-avoid-overlapping-sketch-lines-in-dense-mockups.md +6 -0
  1196. package/corpus/templates/plan/changelog/2026-06-28-plan-wireframes-ignore-host-color-utility-classes-so-canvas-.md +6 -0
  1197. package/corpus/templates/plan/changelog/2026-06-28-plans-use-the-shared-neutral-light-and-dark-theme.md +6 -0
  1198. package/corpus/templates/plan/changelog/2026-06-28-sending-open-feedback-from-a-plan-now-opens-the-inline-plan-.md +6 -0
  1199. package/corpus/templates/plan/changelog/2026-06-28-wireframe-style-can-now-be-switched-between-sketchy-and-clean.md +6 -0
  1200. package/corpus/templates/plan/server/plan-content.ts +62 -3
  1201. package/corpus/templates/plan/server/plan-mdx.ts +177 -2
  1202. package/corpus/templates/slides/app/components/layout/Sidebar.tsx +5 -5
  1203. package/corpus/templates/slides/changelog/2026-06-28-left-sidebar-collapse-motion-and-footer-chrome-are-quieter.md +6 -0
  1204. package/corpus/templates/videos/app/components/Sidebar.tsx +2 -2
  1205. package/corpus/templates/videos/app/components/layout/Layout.tsx +29 -2
  1206. package/corpus/templates/videos/app/components/layout/NavSidebar.tsx +113 -30
  1207. package/corpus/templates/videos/app/i18n/ar-SA.ts +2 -0
  1208. package/corpus/templates/videos/app/i18n/de-DE.ts +2 -0
  1209. package/corpus/templates/videos/app/i18n/en-US.ts +2 -0
  1210. package/corpus/templates/videos/app/i18n/es-ES.ts +2 -0
  1211. package/corpus/templates/videos/app/i18n/fr-FR.ts +2 -0
  1212. package/corpus/templates/videos/app/i18n/hi-IN.ts +2 -0
  1213. package/corpus/templates/videos/app/i18n/ja-JP.ts +2 -0
  1214. package/corpus/templates/videos/app/i18n/ko-KR.ts +2 -0
  1215. package/corpus/templates/videos/app/i18n/pt-BR.ts +2 -0
  1216. package/corpus/templates/videos/app/i18n/zh-CN.ts +2 -0
  1217. package/corpus/templates/videos/app/i18n/zh-TW.ts +2 -0
  1218. package/corpus/templates/videos/changelog/2026-06-28-left-sidebar-collapses-into-an-animated-icon-rail.md +6 -0
  1219. package/dist/agent/engine/index.d.ts +1 -1
  1220. package/dist/agent/engine/index.d.ts.map +1 -1
  1221. package/dist/agent/engine/index.js +1 -1
  1222. package/dist/agent/engine/index.js.map +1 -1
  1223. package/dist/agent/engine/registry.d.ts +9 -0
  1224. package/dist/agent/engine/registry.d.ts.map +1 -1
  1225. package/dist/agent/engine/registry.js +37 -0
  1226. package/dist/agent/engine/registry.js.map +1 -1
  1227. package/dist/agent/production-agent.d.ts.map +1 -1
  1228. package/dist/agent/production-agent.js +4 -3
  1229. package/dist/agent/production-agent.js.map +1 -1
  1230. package/dist/application-state/store.js +5 -5
  1231. package/dist/application-state/store.js.map +1 -1
  1232. package/dist/chat-threads/store.js +2 -2
  1233. package/dist/chat-threads/store.js.map +1 -1
  1234. package/dist/cli/content-local.d.ts +31 -0
  1235. package/dist/cli/content-local.d.ts.map +1 -0
  1236. package/dist/cli/content-local.js +300 -0
  1237. package/dist/cli/content-local.js.map +1 -0
  1238. package/dist/cli/design-connect.d.ts +52 -0
  1239. package/dist/cli/design-connect.d.ts.map +1 -0
  1240. package/dist/cli/design-connect.js +409 -0
  1241. package/dist/cli/design-connect.js.map +1 -0
  1242. package/dist/cli/index.js +31 -0
  1243. package/dist/cli/index.js.map +1 -1
  1244. package/dist/cli/skills.d.ts +13 -4
  1245. package/dist/cli/skills.d.ts.map +1 -1
  1246. package/dist/cli/skills.js +348 -200
  1247. package/dist/cli/skills.js.map +1 -1
  1248. package/dist/client/AssistantChat.d.ts.map +1 -1
  1249. package/dist/client/AssistantChat.js +34 -4
  1250. package/dist/client/AssistantChat.js.map +1 -1
  1251. package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
  1252. package/dist/client/MultiTabAssistantChat.js +8 -69
  1253. package/dist/client/MultiTabAssistantChat.js.map +1 -1
  1254. package/dist/client/agent-chat.d.ts +6 -0
  1255. package/dist/client/agent-chat.d.ts.map +1 -1
  1256. package/dist/client/agent-chat.js +17 -3
  1257. package/dist/client/agent-chat.js.map +1 -1
  1258. package/dist/client/analytics.d.ts.map +1 -1
  1259. package/dist/client/analytics.js +48 -13
  1260. package/dist/client/analytics.js.map +1 -1
  1261. package/dist/client/blocks/index.d.ts +1 -1
  1262. package/dist/client/blocks/index.d.ts.map +1 -1
  1263. package/dist/client/blocks/index.js +1 -1
  1264. package/dist/client/blocks/index.js.map +1 -1
  1265. package/dist/client/blocks/library/MermaidBlock.js +1 -1
  1266. package/dist/client/blocks/library/MermaidBlock.js.map +1 -1
  1267. package/dist/client/blocks/library/diagram.config.d.ts +9 -9
  1268. package/dist/client/blocks/library/diagram.config.d.ts.map +1 -1
  1269. package/dist/client/blocks/library/diagram.config.js +36 -12
  1270. package/dist/client/blocks/library/diagram.config.js.map +1 -1
  1271. package/dist/client/blocks/library/diagram.js +1 -1
  1272. package/dist/client/blocks/library/diagram.js.map +1 -1
  1273. package/dist/client/blocks/library/sanitize-html.d.ts +3 -1
  1274. package/dist/client/blocks/library/sanitize-html.d.ts.map +1 -1
  1275. package/dist/client/blocks/library/sanitize-html.js +53 -5
  1276. package/dist/client/blocks/library/sanitize-html.js.map +1 -1
  1277. package/dist/client/blocks/library/wireframe-kit.d.ts +2 -2
  1278. package/dist/client/blocks/library/wireframe-kit.d.ts.map +1 -1
  1279. package/dist/client/blocks/library/wireframe-kit.js +2 -2
  1280. package/dist/client/blocks/library/wireframe-kit.js.map +1 -1
  1281. package/dist/client/blocks/library/wireframe.d.ts.map +1 -1
  1282. package/dist/client/blocks/library/wireframe.js +5 -2
  1283. package/dist/client/blocks/library/wireframe.js.map +1 -1
  1284. package/dist/client/blocks/mdx.d.ts +11 -0
  1285. package/dist/client/blocks/mdx.d.ts.map +1 -1
  1286. package/dist/client/blocks/mdx.js +47 -1
  1287. package/dist/client/blocks/mdx.js.map +1 -1
  1288. package/dist/client/blocks/server.d.ts +1 -1
  1289. package/dist/client/blocks/server.d.ts.map +1 -1
  1290. package/dist/client/blocks/server.js +1 -1
  1291. package/dist/client/blocks/server.js.map +1 -1
  1292. package/dist/client/blocks/types.d.ts +5 -4
  1293. package/dist/client/blocks/types.d.ts.map +1 -1
  1294. package/dist/client/blocks/types.js.map +1 -1
  1295. package/dist/client/chat/message-components.d.ts.map +1 -1
  1296. package/dist/client/chat/message-components.js +2 -12
  1297. package/dist/client/chat/message-components.js.map +1 -1
  1298. package/dist/client/chat-model-groups.d.ts +22 -0
  1299. package/dist/client/chat-model-groups.d.ts.map +1 -0
  1300. package/dist/client/chat-model-groups.js +93 -0
  1301. package/dist/client/chat-model-groups.js.map +1 -0
  1302. package/dist/client/components/LiveCursorOverlay.d.ts +1 -2
  1303. package/dist/client/components/LiveCursorOverlay.d.ts.map +1 -1
  1304. package/dist/client/components/LiveCursorOverlay.js +19 -40
  1305. package/dist/client/components/LiveCursorOverlay.js.map +1 -1
  1306. package/dist/client/components/ui/dialog.d.ts +14 -0
  1307. package/dist/client/components/ui/dialog.d.ts.map +1 -0
  1308. package/dist/client/components/ui/dialog.js +21 -0
  1309. package/dist/client/components/ui/dialog.js.map +1 -0
  1310. package/dist/client/composer/ComposerPlusMenu.d.ts.map +1 -1
  1311. package/dist/client/composer/ComposerPlusMenu.js +24 -149
  1312. package/dist/client/composer/ComposerPlusMenu.js.map +1 -1
  1313. package/dist/client/composer/TiptapComposer.d.ts +3 -1
  1314. package/dist/client/composer/TiptapComposer.d.ts.map +1 -1
  1315. package/dist/client/composer/TiptapComposer.js +86 -24
  1316. package/dist/client/composer/TiptapComposer.js.map +1 -1
  1317. package/dist/client/composer/useVoiceDictation.d.ts +9 -0
  1318. package/dist/client/composer/useVoiceDictation.d.ts.map +1 -1
  1319. package/dist/client/composer/useVoiceDictation.js +154 -32
  1320. package/dist/client/composer/useVoiceDictation.js.map +1 -1
  1321. package/dist/client/frame-protocol.d.ts +17 -2
  1322. package/dist/client/frame-protocol.d.ts.map +1 -1
  1323. package/dist/client/frame-protocol.js.map +1 -1
  1324. package/dist/client/index.d.ts +1 -1
  1325. package/dist/client/index.d.ts.map +1 -1
  1326. package/dist/client/index.js +1 -1
  1327. package/dist/client/index.js.map +1 -1
  1328. package/dist/client/resources/McpIntegrationDialog.d.ts +13 -0
  1329. package/dist/client/resources/McpIntegrationDialog.d.ts.map +1 -0
  1330. package/dist/client/resources/McpIntegrationDialog.js +261 -0
  1331. package/dist/client/resources/McpIntegrationDialog.js.map +1 -0
  1332. package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
  1333. package/dist/client/resources/ResourcesPanel.js +74 -190
  1334. package/dist/client/resources/ResourcesPanel.js.map +1 -1
  1335. package/dist/client/resources/mcp-integration-catalog.d.ts +30 -0
  1336. package/dist/client/resources/mcp-integration-catalog.d.ts.map +1 -0
  1337. package/dist/client/resources/mcp-integration-catalog.js +191 -0
  1338. package/dist/client/resources/mcp-integration-catalog.js.map +1 -0
  1339. package/dist/client/rich-markdown-editor/RegistryBlockNode.js +2 -2
  1340. package/dist/client/rich-markdown-editor/RegistryBlockNode.js.map +1 -1
  1341. package/dist/client/settings/SettingsPanel.js +1 -1
  1342. package/dist/client/settings/SettingsPanel.js.map +1 -1
  1343. package/dist/client/sharing/ShareButton.d.ts +2 -0
  1344. package/dist/client/sharing/ShareButton.d.ts.map +1 -1
  1345. package/dist/client/sharing/ShareButton.js +7 -6
  1346. package/dist/client/sharing/ShareButton.js.map +1 -1
  1347. package/dist/client/use-agent-engine-configured.d.ts +5 -0
  1348. package/dist/client/use-agent-engine-configured.d.ts.map +1 -1
  1349. package/dist/client/use-agent-engine-configured.js +51 -25
  1350. package/dist/client/use-agent-engine-configured.js.map +1 -1
  1351. package/dist/client/use-chat-models.d.ts +2 -7
  1352. package/dist/client/use-chat-models.d.ts.map +1 -1
  1353. package/dist/client/use-chat-models.js +8 -78
  1354. package/dist/client/use-chat-models.js.map +1 -1
  1355. package/dist/collab/awareness.d.ts +2 -2
  1356. package/dist/collab/awareness.d.ts.map +1 -1
  1357. package/dist/collab/routes.d.ts +2 -2
  1358. package/dist/db/client.d.ts.map +1 -1
  1359. package/dist/db/client.js +0 -5
  1360. package/dist/db/client.js.map +1 -1
  1361. package/dist/integrations/adapters/email.js +2 -2
  1362. package/dist/integrations/adapters/email.js.map +1 -1
  1363. package/dist/local-artifacts/index.d.ts +6 -0
  1364. package/dist/local-artifacts/index.d.ts.map +1 -1
  1365. package/dist/local-artifacts/index.js +12 -0
  1366. package/dist/local-artifacts/index.js.map +1 -1
  1367. package/dist/localization/default-messages.d.ts +76 -0
  1368. package/dist/localization/default-messages.d.ts.map +1 -1
  1369. package/dist/localization/default-messages.js +76 -0
  1370. package/dist/localization/default-messages.js.map +1 -1
  1371. package/dist/localization/shared.d.ts +1 -1
  1372. package/dist/localization/shared.js +3 -3
  1373. package/dist/localization/shared.js.map +1 -1
  1374. package/dist/notifications/routes.d.ts +3 -3
  1375. package/dist/observability/routes.d.ts +6 -6
  1376. package/dist/org/handlers.js +2 -2
  1377. package/dist/org/handlers.js.map +1 -1
  1378. package/dist/progress/routes.d.ts +1 -1
  1379. package/dist/provider-api/corpus-jobs.d.ts +2 -2
  1380. package/dist/resources/handlers.d.ts +2 -2
  1381. package/dist/resources/store.js +7 -7
  1382. package/dist/resources/store.js.map +1 -1
  1383. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  1384. package/dist/server/core-routes-plugin.d.ts +1 -0
  1385. package/dist/server/core-routes-plugin.d.ts.map +1 -1
  1386. package/dist/server/core-routes-plugin.js +29 -11
  1387. package/dist/server/core-routes-plugin.js.map +1 -1
  1388. package/dist/server/transcribe-voice.d.ts +1 -1
  1389. package/dist/server/transcribe-voice.d.ts.map +1 -1
  1390. package/dist/server/transcribe-voice.js +40 -24
  1391. package/dist/server/transcribe-voice.js.map +1 -1
  1392. package/dist/shared/mcp-embed-headers.d.ts +1 -0
  1393. package/dist/shared/mcp-embed-headers.d.ts.map +1 -1
  1394. package/dist/shared/mcp-embed-headers.js +20 -1
  1395. package/dist/shared/mcp-embed-headers.js.map +1 -1
  1396. package/dist/shared/mcp-integration-config.d.ts +27 -0
  1397. package/dist/shared/mcp-integration-config.d.ts.map +1 -0
  1398. package/dist/shared/mcp-integration-config.js +56 -0
  1399. package/dist/shared/mcp-integration-config.js.map +1 -0
  1400. package/dist/styles/agent-native.css +58 -107
  1401. package/dist/styles/blocks.css +15 -3
  1402. package/dist/templates/workspace-core/.agents/skills/voice-transcription/SKILL.md +10 -0
  1403. package/dist/vite/client.d.ts +11 -0
  1404. package/dist/vite/client.d.ts.map +1 -1
  1405. package/dist/vite/client.js +4 -0
  1406. package/dist/vite/client.js.map +1 -1
  1407. package/dist/voice/index.d.ts +5 -0
  1408. package/dist/voice/index.d.ts.map +1 -0
  1409. package/dist/voice/index.js +4 -0
  1410. package/dist/voice/index.js.map +1 -0
  1411. package/dist/voice/voice-cleanup-prompt.d.ts +6 -0
  1412. package/dist/voice/voice-cleanup-prompt.d.ts.map +1 -0
  1413. package/dist/voice/voice-cleanup-prompt.js +26 -0
  1414. package/dist/voice/voice-cleanup-prompt.js.map +1 -0
  1415. package/dist/voice/voice-context.d.ts +25 -0
  1416. package/dist/voice/voice-context.d.ts.map +1 -0
  1417. package/dist/voice/voice-context.js +156 -0
  1418. package/dist/voice/voice-context.js.map +1 -0
  1419. package/dist/voice/voice-replacements.d.ts +4 -0
  1420. package/dist/voice/voice-replacements.d.ts.map +1 -0
  1421. package/dist/voice/voice-replacements.js +52 -0
  1422. package/dist/voice/voice-replacements.js.map +1 -0
  1423. package/docs/content/a2a-protocol.mdx +97 -9
  1424. package/docs/content/actions.mdx +65 -4
  1425. package/docs/content/agent-mentions.mdx +68 -4
  1426. package/docs/content/agent-surfaces.mdx +112 -8
  1427. package/docs/content/agent-teams.mdx +171 -12
  1428. package/docs/content/agent-web-surfaces.mdx +51 -4
  1429. package/docs/content/authentication.mdx +122 -8
  1430. package/docs/content/automations.mdx +110 -8
  1431. package/docs/content/blueprint-installer.mdx +42 -4
  1432. package/docs/content/cli-adapters.mdx +44 -4
  1433. package/docs/content/client.mdx +79 -8
  1434. package/docs/content/cloneable-saas.mdx +85 -8
  1435. package/docs/content/code-agents-ui.mdx +98 -8
  1436. package/docs/content/components.mdx +118 -8
  1437. package/docs/content/context-awareness.mdx +98 -8
  1438. package/docs/content/creating-templates.mdx +49 -4
  1439. package/docs/content/cross-app-sso.mdx +109 -8
  1440. package/docs/content/database.mdx +56 -4
  1441. package/docs/content/deployment.mdx +103 -8
  1442. package/docs/content/dispatch.mdx +134 -8
  1443. package/docs/content/drop-in-agent.mdx +63 -4
  1444. package/docs/content/durable-background-runs.mdx +98 -8
  1445. package/docs/content/durable-resume.mdx +47 -4
  1446. package/docs/content/embedding-sdk.mdx +83 -8
  1447. package/docs/content/evals.mdx +102 -8
  1448. package/docs/content/extensions.mdx +113 -9
  1449. package/docs/content/external-agents.mdx +119 -8
  1450. package/docs/content/faq.mdx +98 -8
  1451. package/docs/content/file-uploads.mdx +61 -4
  1452. package/docs/content/frames.mdx +90 -8
  1453. package/docs/content/generative-ui.mdx +50 -4
  1454. package/docs/content/getting-started.mdx +34 -4
  1455. package/docs/content/harness-agents.mdx +77 -8
  1456. package/docs/content/human-approval.mdx +50 -4
  1457. package/docs/content/key-concepts.mdx +102 -8
  1458. package/docs/content/local-file-mode.mdx +58 -4
  1459. package/docs/content/locales/ar-SA/a2a-protocol.mdx +97 -9
  1460. package/docs/content/locales/ar-SA/actions.mdx +65 -4
  1461. package/docs/content/locales/ar-SA/agent-mentions.mdx +68 -4
  1462. package/docs/content/locales/ar-SA/agent-surfaces.mdx +114 -8
  1463. package/docs/content/locales/ar-SA/agent-teams.mdx +174 -12
  1464. package/docs/content/locales/ar-SA/agent-web-surfaces.mdx +49 -4
  1465. package/docs/content/locales/ar-SA/authentication.mdx +120 -8
  1466. package/docs/content/locales/ar-SA/automations.mdx +110 -8
  1467. package/docs/content/locales/ar-SA/blueprint-installer.mdx +42 -4
  1468. package/docs/content/locales/ar-SA/cli-adapters.mdx +40 -4
  1469. package/docs/content/locales/ar-SA/client.mdx +80 -8
  1470. package/docs/content/locales/ar-SA/cloneable-saas.mdx +85 -8
  1471. package/docs/content/locales/ar-SA/code-agents-ui.mdx +99 -8
  1472. package/docs/content/locales/ar-SA/components.mdx +114 -8
  1473. package/docs/content/locales/ar-SA/context-awareness.mdx +100 -8
  1474. package/docs/content/locales/ar-SA/creating-templates.mdx +51 -4
  1475. package/docs/content/locales/ar-SA/cross-app-sso.mdx +109 -8
  1476. package/docs/content/locales/ar-SA/database.mdx +52 -4
  1477. package/docs/content/locales/ar-SA/deployment.mdx +103 -8
  1478. package/docs/content/locales/ar-SA/dispatch.mdx +134 -8
  1479. package/docs/content/locales/ar-SA/drop-in-agent.mdx +63 -4
  1480. package/docs/content/locales/ar-SA/durable-resume.mdx +47 -4
  1481. package/docs/content/locales/ar-SA/embedding-sdk.mdx +83 -8
  1482. package/docs/content/locales/ar-SA/evals.mdx +102 -8
  1483. package/docs/content/locales/ar-SA/extensions.mdx +113 -9
  1484. package/docs/content/locales/ar-SA/external-agents.mdx +119 -8
  1485. package/docs/content/locales/ar-SA/faq.mdx +98 -8
  1486. package/docs/content/locales/ar-SA/file-uploads.mdx +61 -4
  1487. package/docs/content/locales/ar-SA/frames.mdx +88 -8
  1488. package/docs/content/locales/ar-SA/getting-started.mdx +34 -4
  1489. package/docs/content/locales/ar-SA/harness-agents.mdx +79 -8
  1490. package/docs/content/locales/ar-SA/human-approval.mdx +50 -4
  1491. package/docs/content/locales/ar-SA/key-concepts.mdx +107 -8
  1492. package/docs/content/locales/ar-SA/local-file-mode.mdx +56 -4
  1493. package/docs/content/locales/ar-SA/mcp-apps.mdx +120 -10
  1494. package/docs/content/locales/ar-SA/mcp-clients.mdx +133 -8
  1495. package/docs/content/locales/ar-SA/mcp-protocol.mdx +105 -8
  1496. package/docs/content/locales/ar-SA/messaging.mdx +115 -8
  1497. package/docs/content/locales/ar-SA/migration-workbench.mdx +47 -4
  1498. package/docs/content/locales/ar-SA/multi-app-workspace.mdx +91 -8
  1499. package/docs/content/locales/ar-SA/multi-tenancy.mdx +80 -8
  1500. package/docs/content/locales/ar-SA/native-chat-ui.mdx +104 -8
  1501. package/docs/content/locales/ar-SA/notifications.mdx +135 -8
  1502. package/docs/content/locales/ar-SA/observability.mdx +102 -8
  1503. package/docs/content/locales/ar-SA/observational-memory.mdx +87 -8
  1504. package/docs/content/locales/ar-SA/onboarding.mdx +45 -4
  1505. package/docs/content/locales/ar-SA/plan-plugin.mdx +99 -8
  1506. package/docs/content/locales/ar-SA/pr-visual-recap.mdx +125 -8
  1507. package/docs/content/locales/ar-SA/processors.mdx +41 -4
  1508. package/docs/content/locales/ar-SA/progress.mdx +46 -4
  1509. package/docs/content/locales/ar-SA/pure-agent-apps.mdx +48 -4
  1510. package/docs/content/locales/ar-SA/real-time-collaboration.mdx +102 -8
  1511. package/docs/content/locales/ar-SA/recurring-jobs.mdx +59 -4
  1512. package/docs/content/locales/ar-SA/routing.mdx +44 -5
  1513. package/docs/content/locales/ar-SA/sandbox-adapters.mdx +43 -4
  1514. package/docs/content/locales/ar-SA/security.mdx +80 -8
  1515. package/docs/content/locales/ar-SA/server.mdx +173 -12
  1516. package/docs/content/locales/ar-SA/sharing.mdx +45 -4
  1517. package/docs/content/locales/ar-SA/skills-guide.mdx +118 -9
  1518. package/docs/content/locales/ar-SA/template-analytics.mdx +46 -4
  1519. package/docs/content/locales/ar-SA/template-assets.mdx +62 -4
  1520. package/docs/content/locales/ar-SA/template-brain.mdx +65 -4
  1521. package/docs/content/locales/ar-SA/template-calendar.mdx +62 -4
  1522. package/docs/content/locales/ar-SA/template-chat.mdx +61 -4
  1523. package/docs/content/locales/ar-SA/template-clips.mdx +52 -4
  1524. package/docs/content/locales/ar-SA/template-content.mdx +62 -4
  1525. package/docs/content/locales/ar-SA/template-design.mdx +101 -4
  1526. package/docs/content/locales/ar-SA/template-dispatch.mdx +57 -4
  1527. package/docs/content/locales/ar-SA/template-forms.mdx +62 -4
  1528. package/docs/content/locales/ar-SA/template-mail.mdx +60 -4
  1529. package/docs/content/locales/ar-SA/template-plan.mdx +61 -4
  1530. package/docs/content/locales/ar-SA/template-slides.mdx +49 -4
  1531. package/docs/content/locales/ar-SA/template-videos.mdx +53 -4
  1532. package/docs/content/locales/ar-SA/tracking.mdx +54 -4
  1533. package/docs/content/locales/ar-SA/using-your-agent.mdx +51 -4
  1534. package/docs/content/locales/ar-SA/voice-input.mdx +43 -4
  1535. package/docs/content/locales/ar-SA/what-is-agent-native.mdx +96 -8
  1536. package/docs/content/locales/ar-SA/workspace-connections.mdx +128 -8
  1537. package/docs/content/locales/ar-SA/workspace-management.mdx +50 -4
  1538. package/docs/content/locales/ar-SA/workspace.mdx +112 -8
  1539. package/docs/content/locales/ar-SA/writing-agent-instructions.mdx +41 -4
  1540. package/docs/content/locales/de-DE/a2a-protocol.mdx +99 -9
  1541. package/docs/content/locales/de-DE/actions.mdx +67 -4
  1542. package/docs/content/locales/de-DE/agent-mentions.mdx +68 -4
  1543. package/docs/content/locales/de-DE/agent-surfaces.mdx +116 -8
  1544. package/docs/content/locales/de-DE/agent-teams.mdx +171 -12
  1545. package/docs/content/locales/de-DE/agent-web-surfaces.mdx +51 -4
  1546. package/docs/content/locales/de-DE/authentication.mdx +122 -8
  1547. package/docs/content/locales/de-DE/automations.mdx +110 -8
  1548. package/docs/content/locales/de-DE/blueprint-installer.mdx +42 -4
  1549. package/docs/content/locales/de-DE/cli-adapters.mdx +44 -4
  1550. package/docs/content/locales/de-DE/client.mdx +79 -8
  1551. package/docs/content/locales/de-DE/cloneable-saas.mdx +85 -8
  1552. package/docs/content/locales/de-DE/code-agents-ui.mdx +100 -8
  1553. package/docs/content/locales/de-DE/components.mdx +118 -8
  1554. package/docs/content/locales/de-DE/context-awareness.mdx +98 -8
  1555. package/docs/content/locales/de-DE/creating-templates.mdx +51 -4
  1556. package/docs/content/locales/de-DE/cross-app-sso.mdx +109 -8
  1557. package/docs/content/locales/de-DE/database.mdx +52 -4
  1558. package/docs/content/locales/de-DE/deployment.mdx +103 -8
  1559. package/docs/content/locales/de-DE/dispatch.mdx +134 -8
  1560. package/docs/content/locales/de-DE/drop-in-agent.mdx +63 -4
  1561. package/docs/content/locales/de-DE/durable-resume.mdx +47 -4
  1562. package/docs/content/locales/de-DE/embedding-sdk.mdx +85 -8
  1563. package/docs/content/locales/de-DE/evals.mdx +102 -8
  1564. package/docs/content/locales/de-DE/extensions.mdx +113 -9
  1565. package/docs/content/locales/de-DE/external-agents.mdx +119 -8
  1566. package/docs/content/locales/de-DE/faq.mdx +98 -8
  1567. package/docs/content/locales/de-DE/file-uploads.mdx +61 -4
  1568. package/docs/content/locales/de-DE/frames.mdx +88 -8
  1569. package/docs/content/locales/de-DE/getting-started.mdx +34 -4
  1570. package/docs/content/locales/de-DE/harness-agents.mdx +79 -8
  1571. package/docs/content/locales/de-DE/human-approval.mdx +50 -4
  1572. package/docs/content/locales/de-DE/key-concepts.mdx +104 -8
  1573. package/docs/content/locales/de-DE/local-file-mode.mdx +58 -4
  1574. package/docs/content/locales/de-DE/mcp-apps.mdx +120 -10
  1575. package/docs/content/locales/de-DE/mcp-clients.mdx +133 -8
  1576. package/docs/content/locales/de-DE/mcp-protocol.mdx +105 -8
  1577. package/docs/content/locales/de-DE/messaging.mdx +115 -8
  1578. package/docs/content/locales/de-DE/migration-workbench.mdx +47 -4
  1579. package/docs/content/locales/de-DE/multi-app-workspace.mdx +91 -8
  1580. package/docs/content/locales/de-DE/multi-tenancy.mdx +80 -8
  1581. package/docs/content/locales/de-DE/native-chat-ui.mdx +108 -8
  1582. package/docs/content/locales/de-DE/notifications.mdx +135 -8
  1583. package/docs/content/locales/de-DE/observability.mdx +102 -8
  1584. package/docs/content/locales/de-DE/observational-memory.mdx +92 -8
  1585. package/docs/content/locales/de-DE/onboarding.mdx +45 -4
  1586. package/docs/content/locales/de-DE/plan-plugin.mdx +99 -8
  1587. package/docs/content/locales/de-DE/pr-visual-recap.mdx +125 -8
  1588. package/docs/content/locales/de-DE/processors.mdx +41 -4
  1589. package/docs/content/locales/de-DE/progress.mdx +46 -4
  1590. package/docs/content/locales/de-DE/pure-agent-apps.mdx +50 -4
  1591. package/docs/content/locales/de-DE/real-time-collaboration.mdx +104 -8
  1592. package/docs/content/locales/de-DE/recurring-jobs.mdx +59 -4
  1593. package/docs/content/locales/de-DE/routing.mdx +44 -5
  1594. package/docs/content/locales/de-DE/sandbox-adapters.mdx +43 -4
  1595. package/docs/content/locales/de-DE/security.mdx +80 -8
  1596. package/docs/content/locales/de-DE/server.mdx +171 -12
  1597. package/docs/content/locales/de-DE/sharing.mdx +45 -4
  1598. package/docs/content/locales/de-DE/skills-guide.mdx +118 -9
  1599. package/docs/content/locales/de-DE/template-analytics.mdx +46 -4
  1600. package/docs/content/locales/de-DE/template-assets.mdx +62 -4
  1601. package/docs/content/locales/de-DE/template-brain.mdx +69 -4
  1602. package/docs/content/locales/de-DE/template-calendar.mdx +62 -4
  1603. package/docs/content/locales/de-DE/template-chat.mdx +61 -4
  1604. package/docs/content/locales/de-DE/template-clips.mdx +52 -4
  1605. package/docs/content/locales/de-DE/template-content.mdx +60 -4
  1606. package/docs/content/locales/de-DE/template-design.mdx +109 -4
  1607. package/docs/content/locales/de-DE/template-dispatch.mdx +57 -4
  1608. package/docs/content/locales/de-DE/template-forms.mdx +64 -4
  1609. package/docs/content/locales/de-DE/template-mail.mdx +60 -4
  1610. package/docs/content/locales/de-DE/template-plan.mdx +63 -4
  1611. package/docs/content/locales/de-DE/template-slides.mdx +49 -4
  1612. package/docs/content/locales/de-DE/template-videos.mdx +53 -4
  1613. package/docs/content/locales/de-DE/tracking.mdx +54 -4
  1614. package/docs/content/locales/de-DE/using-your-agent.mdx +51 -4
  1615. package/docs/content/locales/de-DE/voice-input.mdx +45 -4
  1616. package/docs/content/locales/de-DE/what-is-agent-native.mdx +100 -8
  1617. package/docs/content/locales/de-DE/workspace-connections.mdx +128 -8
  1618. package/docs/content/locales/de-DE/workspace-management.mdx +50 -4
  1619. package/docs/content/locales/de-DE/workspace.mdx +111 -8
  1620. package/docs/content/locales/de-DE/writing-agent-instructions.mdx +45 -4
  1621. package/docs/content/locales/es-ES/a2a-protocol.mdx +99 -9
  1622. package/docs/content/locales/es-ES/actions.mdx +67 -4
  1623. package/docs/content/locales/es-ES/agent-mentions.mdx +68 -4
  1624. package/docs/content/locales/es-ES/agent-surfaces.mdx +120 -8
  1625. package/docs/content/locales/es-ES/agent-teams.mdx +172 -12
  1626. package/docs/content/locales/es-ES/agent-web-surfaces.mdx +51 -4
  1627. package/docs/content/locales/es-ES/authentication.mdx +122 -8
  1628. package/docs/content/locales/es-ES/automations.mdx +110 -8
  1629. package/docs/content/locales/es-ES/blueprint-installer.mdx +42 -4
  1630. package/docs/content/locales/es-ES/cli-adapters.mdx +44 -4
  1631. package/docs/content/locales/es-ES/client.mdx +79 -8
  1632. package/docs/content/locales/es-ES/cloneable-saas.mdx +85 -8
  1633. package/docs/content/locales/es-ES/code-agents-ui.mdx +101 -8
  1634. package/docs/content/locales/es-ES/components.mdx +118 -8
  1635. package/docs/content/locales/es-ES/context-awareness.mdx +98 -8
  1636. package/docs/content/locales/es-ES/creating-templates.mdx +51 -4
  1637. package/docs/content/locales/es-ES/cross-app-sso.mdx +109 -8
  1638. package/docs/content/locales/es-ES/database.mdx +52 -4
  1639. package/docs/content/locales/es-ES/deployment.mdx +103 -8
  1640. package/docs/content/locales/es-ES/dispatch.mdx +134 -8
  1641. package/docs/content/locales/es-ES/drop-in-agent.mdx +63 -4
  1642. package/docs/content/locales/es-ES/durable-resume.mdx +47 -4
  1643. package/docs/content/locales/es-ES/embedding-sdk.mdx +87 -8
  1644. package/docs/content/locales/es-ES/evals.mdx +102 -8
  1645. package/docs/content/locales/es-ES/extensions.mdx +113 -9
  1646. package/docs/content/locales/es-ES/external-agents.mdx +119 -8
  1647. package/docs/content/locales/es-ES/faq.mdx +98 -8
  1648. package/docs/content/locales/es-ES/file-uploads.mdx +61 -4
  1649. package/docs/content/locales/es-ES/frames.mdx +88 -8
  1650. package/docs/content/locales/es-ES/getting-started.mdx +34 -4
  1651. package/docs/content/locales/es-ES/harness-agents.mdx +79 -8
  1652. package/docs/content/locales/es-ES/human-approval.mdx +50 -4
  1653. package/docs/content/locales/es-ES/key-concepts.mdx +104 -8
  1654. package/docs/content/locales/es-ES/local-file-mode.mdx +60 -4
  1655. package/docs/content/locales/es-ES/mcp-apps.mdx +120 -10
  1656. package/docs/content/locales/es-ES/mcp-clients.mdx +135 -8
  1657. package/docs/content/locales/es-ES/mcp-protocol.mdx +105 -8
  1658. package/docs/content/locales/es-ES/messaging.mdx +115 -8
  1659. package/docs/content/locales/es-ES/migration-workbench.mdx +47 -4
  1660. package/docs/content/locales/es-ES/multi-app-workspace.mdx +91 -8
  1661. package/docs/content/locales/es-ES/multi-tenancy.mdx +80 -8
  1662. package/docs/content/locales/es-ES/native-chat-ui.mdx +108 -8
  1663. package/docs/content/locales/es-ES/notifications.mdx +135 -8
  1664. package/docs/content/locales/es-ES/observability.mdx +104 -8
  1665. package/docs/content/locales/es-ES/observational-memory.mdx +92 -8
  1666. package/docs/content/locales/es-ES/onboarding.mdx +45 -4
  1667. package/docs/content/locales/es-ES/plan-plugin.mdx +99 -8
  1668. package/docs/content/locales/es-ES/pr-visual-recap.mdx +125 -8
  1669. package/docs/content/locales/es-ES/processors.mdx +41 -4
  1670. package/docs/content/locales/es-ES/progress.mdx +46 -4
  1671. package/docs/content/locales/es-ES/pure-agent-apps.mdx +50 -4
  1672. package/docs/content/locales/es-ES/real-time-collaboration.mdx +109 -8
  1673. package/docs/content/locales/es-ES/recurring-jobs.mdx +59 -4
  1674. package/docs/content/locales/es-ES/routing.mdx +44 -5
  1675. package/docs/content/locales/es-ES/sandbox-adapters.mdx +44 -4
  1676. package/docs/content/locales/es-ES/security.mdx +82 -8
  1677. package/docs/content/locales/es-ES/server.mdx +173 -12
  1678. package/docs/content/locales/es-ES/sharing.mdx +45 -4
  1679. package/docs/content/locales/es-ES/skills-guide.mdx +118 -9
  1680. package/docs/content/locales/es-ES/template-analytics.mdx +46 -4
  1681. package/docs/content/locales/es-ES/template-assets.mdx +64 -4
  1682. package/docs/content/locales/es-ES/template-brain.mdx +69 -4
  1683. package/docs/content/locales/es-ES/template-calendar.mdx +62 -4
  1684. package/docs/content/locales/es-ES/template-chat.mdx +61 -4
  1685. package/docs/content/locales/es-ES/template-clips.mdx +52 -4
  1686. package/docs/content/locales/es-ES/template-content.mdx +64 -4
  1687. package/docs/content/locales/es-ES/template-design.mdx +108 -4
  1688. package/docs/content/locales/es-ES/template-dispatch.mdx +57 -4
  1689. package/docs/content/locales/es-ES/template-forms.mdx +64 -4
  1690. package/docs/content/locales/es-ES/template-mail.mdx +60 -4
  1691. package/docs/content/locales/es-ES/template-plan.mdx +61 -4
  1692. package/docs/content/locales/es-ES/template-slides.mdx +49 -4
  1693. package/docs/content/locales/es-ES/template-videos.mdx +53 -4
  1694. package/docs/content/locales/es-ES/tracking.mdx +54 -4
  1695. package/docs/content/locales/es-ES/using-your-agent.mdx +51 -4
  1696. package/docs/content/locales/es-ES/voice-input.mdx +45 -4
  1697. package/docs/content/locales/es-ES/what-is-agent-native.mdx +99 -8
  1698. package/docs/content/locales/es-ES/workspace-connections.mdx +128 -8
  1699. package/docs/content/locales/es-ES/workspace-management.mdx +50 -4
  1700. package/docs/content/locales/es-ES/workspace.mdx +112 -8
  1701. package/docs/content/locales/es-ES/writing-agent-instructions.mdx +46 -4
  1702. package/docs/content/locales/fr-FR/a2a-protocol.mdx +97 -9
  1703. package/docs/content/locales/fr-FR/actions.mdx +67 -4
  1704. package/docs/content/locales/fr-FR/agent-mentions.mdx +68 -4
  1705. package/docs/content/locales/fr-FR/agent-surfaces.mdx +118 -8
  1706. package/docs/content/locales/fr-FR/agent-teams.mdx +172 -12
  1707. package/docs/content/locales/fr-FR/agent-web-surfaces.mdx +51 -4
  1708. package/docs/content/locales/fr-FR/authentication.mdx +122 -8
  1709. package/docs/content/locales/fr-FR/automations.mdx +110 -8
  1710. package/docs/content/locales/fr-FR/blueprint-installer.mdx +42 -4
  1711. package/docs/content/locales/fr-FR/cli-adapters.mdx +44 -4
  1712. package/docs/content/locales/fr-FR/client.mdx +81 -8
  1713. package/docs/content/locales/fr-FR/cloneable-saas.mdx +85 -8
  1714. package/docs/content/locales/fr-FR/code-agents-ui.mdx +102 -8
  1715. package/docs/content/locales/fr-FR/components.mdx +118 -8
  1716. package/docs/content/locales/fr-FR/context-awareness.mdx +98 -8
  1717. package/docs/content/locales/fr-FR/creating-templates.mdx +49 -4
  1718. package/docs/content/locales/fr-FR/cross-app-sso.mdx +109 -8
  1719. package/docs/content/locales/fr-FR/database.mdx +52 -4
  1720. package/docs/content/locales/fr-FR/deployment.mdx +103 -8
  1721. package/docs/content/locales/fr-FR/dispatch.mdx +134 -8
  1722. package/docs/content/locales/fr-FR/drop-in-agent.mdx +63 -4
  1723. package/docs/content/locales/fr-FR/durable-resume.mdx +47 -4
  1724. package/docs/content/locales/fr-FR/embedding-sdk.mdx +87 -8
  1725. package/docs/content/locales/fr-FR/evals.mdx +102 -8
  1726. package/docs/content/locales/fr-FR/extensions.mdx +113 -9
  1727. package/docs/content/locales/fr-FR/external-agents.mdx +119 -8
  1728. package/docs/content/locales/fr-FR/faq.mdx +98 -8
  1729. package/docs/content/locales/fr-FR/file-uploads.mdx +61 -4
  1730. package/docs/content/locales/fr-FR/frames.mdx +90 -8
  1731. package/docs/content/locales/fr-FR/getting-started.mdx +34 -4
  1732. package/docs/content/locales/fr-FR/harness-agents.mdx +77 -8
  1733. package/docs/content/locales/fr-FR/human-approval.mdx +50 -4
  1734. package/docs/content/locales/fr-FR/key-concepts.mdx +106 -8
  1735. package/docs/content/locales/fr-FR/local-file-mode.mdx +58 -4
  1736. package/docs/content/locales/fr-FR/mcp-apps.mdx +120 -10
  1737. package/docs/content/locales/fr-FR/mcp-clients.mdx +135 -8
  1738. package/docs/content/locales/fr-FR/mcp-protocol.mdx +105 -8
  1739. package/docs/content/locales/fr-FR/messaging.mdx +115 -8
  1740. package/docs/content/locales/fr-FR/migration-workbench.mdx +47 -4
  1741. package/docs/content/locales/fr-FR/multi-app-workspace.mdx +91 -8
  1742. package/docs/content/locales/fr-FR/multi-tenancy.mdx +80 -8
  1743. package/docs/content/locales/fr-FR/native-chat-ui.mdx +108 -8
  1744. package/docs/content/locales/fr-FR/notifications.mdx +135 -8
  1745. package/docs/content/locales/fr-FR/observability.mdx +104 -8
  1746. package/docs/content/locales/fr-FR/observational-memory.mdx +89 -8
  1747. package/docs/content/locales/fr-FR/onboarding.mdx +45 -4
  1748. package/docs/content/locales/fr-FR/plan-plugin.mdx +99 -8
  1749. package/docs/content/locales/fr-FR/pr-visual-recap.mdx +126 -8
  1750. package/docs/content/locales/fr-FR/processors.mdx +41 -4
  1751. package/docs/content/locales/fr-FR/progress.mdx +46 -4
  1752. package/docs/content/locales/fr-FR/pure-agent-apps.mdx +48 -4
  1753. package/docs/content/locales/fr-FR/real-time-collaboration.mdx +107 -8
  1754. package/docs/content/locales/fr-FR/recurring-jobs.mdx +59 -4
  1755. package/docs/content/locales/fr-FR/routing.mdx +44 -5
  1756. package/docs/content/locales/fr-FR/sandbox-adapters.mdx +44 -4
  1757. package/docs/content/locales/fr-FR/security.mdx +82 -8
  1758. package/docs/content/locales/fr-FR/server.mdx +173 -12
  1759. package/docs/content/locales/fr-FR/sharing.mdx +45 -4
  1760. package/docs/content/locales/fr-FR/skills-guide.mdx +118 -9
  1761. package/docs/content/locales/fr-FR/template-analytics.mdx +46 -4
  1762. package/docs/content/locales/fr-FR/template-assets.mdx +66 -4
  1763. package/docs/content/locales/fr-FR/template-brain.mdx +69 -4
  1764. package/docs/content/locales/fr-FR/template-calendar.mdx +62 -4
  1765. package/docs/content/locales/fr-FR/template-chat.mdx +61 -4
  1766. package/docs/content/locales/fr-FR/template-clips.mdx +52 -4
  1767. package/docs/content/locales/fr-FR/template-content.mdx +64 -4
  1768. package/docs/content/locales/fr-FR/template-design.mdx +107 -4
  1769. package/docs/content/locales/fr-FR/template-dispatch.mdx +57 -4
  1770. package/docs/content/locales/fr-FR/template-forms.mdx +64 -4
  1771. package/docs/content/locales/fr-FR/template-mail.mdx +60 -4
  1772. package/docs/content/locales/fr-FR/template-plan.mdx +61 -4
  1773. package/docs/content/locales/fr-FR/template-slides.mdx +49 -4
  1774. package/docs/content/locales/fr-FR/template-videos.mdx +53 -4
  1775. package/docs/content/locales/fr-FR/tracking.mdx +54 -4
  1776. package/docs/content/locales/fr-FR/using-your-agent.mdx +51 -4
  1777. package/docs/content/locales/fr-FR/voice-input.mdx +45 -4
  1778. package/docs/content/locales/fr-FR/what-is-agent-native.mdx +101 -8
  1779. package/docs/content/locales/fr-FR/workspace-connections.mdx +128 -8
  1780. package/docs/content/locales/fr-FR/workspace-management.mdx +50 -4
  1781. package/docs/content/locales/fr-FR/workspace.mdx +112 -8
  1782. package/docs/content/locales/fr-FR/writing-agent-instructions.mdx +47 -4
  1783. package/docs/content/locales/hi-IN/a2a-protocol.mdx +97 -9
  1784. package/docs/content/locales/hi-IN/actions.mdx +63 -4
  1785. package/docs/content/locales/hi-IN/agent-mentions.mdx +68 -4
  1786. package/docs/content/locales/hi-IN/agent-surfaces.mdx +112 -8
  1787. package/docs/content/locales/hi-IN/agent-teams.mdx +171 -12
  1788. package/docs/content/locales/hi-IN/agent-web-surfaces.mdx +51 -4
  1789. package/docs/content/locales/hi-IN/authentication.mdx +122 -8
  1790. package/docs/content/locales/hi-IN/automations.mdx +110 -8
  1791. package/docs/content/locales/hi-IN/blueprint-installer.mdx +42 -4
  1792. package/docs/content/locales/hi-IN/cli-adapters.mdx +44 -4
  1793. package/docs/content/locales/hi-IN/client.mdx +79 -8
  1794. package/docs/content/locales/hi-IN/cloneable-saas.mdx +85 -8
  1795. package/docs/content/locales/hi-IN/code-agents-ui.mdx +96 -8
  1796. package/docs/content/locales/hi-IN/components.mdx +114 -8
  1797. package/docs/content/locales/hi-IN/context-awareness.mdx +102 -8
  1798. package/docs/content/locales/hi-IN/creating-templates.mdx +53 -4
  1799. package/docs/content/locales/hi-IN/cross-app-sso.mdx +109 -8
  1800. package/docs/content/locales/hi-IN/database.mdx +52 -4
  1801. package/docs/content/locales/hi-IN/deployment.mdx +103 -8
  1802. package/docs/content/locales/hi-IN/dispatch.mdx +134 -8
  1803. package/docs/content/locales/hi-IN/drop-in-agent.mdx +63 -4
  1804. package/docs/content/locales/hi-IN/durable-resume.mdx +47 -4
  1805. package/docs/content/locales/hi-IN/embedding-sdk.mdx +83 -8
  1806. package/docs/content/locales/hi-IN/evals.mdx +100 -8
  1807. package/docs/content/locales/hi-IN/extensions.mdx +113 -9
  1808. package/docs/content/locales/hi-IN/external-agents.mdx +119 -8
  1809. package/docs/content/locales/hi-IN/faq.mdx +96 -8
  1810. package/docs/content/locales/hi-IN/file-uploads.mdx +61 -4
  1811. package/docs/content/locales/hi-IN/frames.mdx +88 -8
  1812. package/docs/content/locales/hi-IN/getting-started.mdx +34 -4
  1813. package/docs/content/locales/hi-IN/harness-agents.mdx +77 -8
  1814. package/docs/content/locales/hi-IN/human-approval.mdx +51 -4
  1815. package/docs/content/locales/hi-IN/key-concepts.mdx +104 -8
  1816. package/docs/content/locales/hi-IN/local-file-mode.mdx +58 -4
  1817. package/docs/content/locales/hi-IN/mcp-apps.mdx +120 -10
  1818. package/docs/content/locales/hi-IN/mcp-clients.mdx +133 -8
  1819. package/docs/content/locales/hi-IN/mcp-protocol.mdx +105 -8
  1820. package/docs/content/locales/hi-IN/messaging.mdx +115 -8
  1821. package/docs/content/locales/hi-IN/migration-workbench.mdx +45 -4
  1822. package/docs/content/locales/hi-IN/multi-app-workspace.mdx +91 -8
  1823. package/docs/content/locales/hi-IN/multi-tenancy.mdx +80 -8
  1824. package/docs/content/locales/hi-IN/native-chat-ui.mdx +106 -8
  1825. package/docs/content/locales/hi-IN/notifications.mdx +135 -8
  1826. package/docs/content/locales/hi-IN/observability.mdx +102 -8
  1827. package/docs/content/locales/hi-IN/observational-memory.mdx +89 -8
  1828. package/docs/content/locales/hi-IN/onboarding.mdx +45 -4
  1829. package/docs/content/locales/hi-IN/plan-plugin.mdx +99 -8
  1830. package/docs/content/locales/hi-IN/pr-visual-recap.mdx +126 -8
  1831. package/docs/content/locales/hi-IN/processors.mdx +41 -4
  1832. package/docs/content/locales/hi-IN/progress.mdx +46 -4
  1833. package/docs/content/locales/hi-IN/pure-agent-apps.mdx +48 -4
  1834. package/docs/content/locales/hi-IN/real-time-collaboration.mdx +106 -8
  1835. package/docs/content/locales/hi-IN/recurring-jobs.mdx +59 -4
  1836. package/docs/content/locales/hi-IN/routing.mdx +44 -5
  1837. package/docs/content/locales/hi-IN/sandbox-adapters.mdx +43 -4
  1838. package/docs/content/locales/hi-IN/security.mdx +78 -8
  1839. package/docs/content/locales/hi-IN/server.mdx +169 -12
  1840. package/docs/content/locales/hi-IN/sharing.mdx +45 -4
  1841. package/docs/content/locales/hi-IN/skills-guide.mdx +118 -9
  1842. package/docs/content/locales/hi-IN/template-analytics.mdx +46 -4
  1843. package/docs/content/locales/hi-IN/template-assets.mdx +62 -4
  1844. package/docs/content/locales/hi-IN/template-brain.mdx +69 -4
  1845. package/docs/content/locales/hi-IN/template-calendar.mdx +62 -4
  1846. package/docs/content/locales/hi-IN/template-chat.mdx +59 -4
  1847. package/docs/content/locales/hi-IN/template-clips.mdx +52 -4
  1848. package/docs/content/locales/hi-IN/template-content.mdx +62 -4
  1849. package/docs/content/locales/hi-IN/template-design.mdx +102 -4
  1850. package/docs/content/locales/hi-IN/template-dispatch.mdx +57 -4
  1851. package/docs/content/locales/hi-IN/template-forms.mdx +64 -4
  1852. package/docs/content/locales/hi-IN/template-mail.mdx +64 -4
  1853. package/docs/content/locales/hi-IN/template-plan.mdx +61 -4
  1854. package/docs/content/locales/hi-IN/template-slides.mdx +49 -4
  1855. package/docs/content/locales/hi-IN/template-videos.mdx +53 -4
  1856. package/docs/content/locales/hi-IN/tracking.mdx +54 -4
  1857. package/docs/content/locales/hi-IN/using-your-agent.mdx +51 -4
  1858. package/docs/content/locales/hi-IN/voice-input.mdx +43 -4
  1859. package/docs/content/locales/hi-IN/what-is-agent-native.mdx +97 -8
  1860. package/docs/content/locales/hi-IN/workspace-connections.mdx +128 -8
  1861. package/docs/content/locales/hi-IN/workspace-management.mdx +50 -4
  1862. package/docs/content/locales/hi-IN/workspace.mdx +111 -8
  1863. package/docs/content/locales/hi-IN/writing-agent-instructions.mdx +40 -4
  1864. package/docs/content/locales/ja-JP/a2a-protocol.mdx +97 -9
  1865. package/docs/content/locales/ja-JP/actions.mdx +67 -4
  1866. package/docs/content/locales/ja-JP/agent-mentions.mdx +68 -4
  1867. package/docs/content/locales/ja-JP/agent-surfaces.mdx +116 -8
  1868. package/docs/content/locales/ja-JP/agent-teams.mdx +172 -12
  1869. package/docs/content/locales/ja-JP/agent-web-surfaces.mdx +51 -4
  1870. package/docs/content/locales/ja-JP/authentication.mdx +122 -8
  1871. package/docs/content/locales/ja-JP/automations.mdx +110 -8
  1872. package/docs/content/locales/ja-JP/blueprint-installer.mdx +44 -4
  1873. package/docs/content/locales/ja-JP/cli-adapters.mdx +44 -4
  1874. package/docs/content/locales/ja-JP/client.mdx +79 -8
  1875. package/docs/content/locales/ja-JP/cloneable-saas.mdx +85 -8
  1876. package/docs/content/locales/ja-JP/code-agents-ui.mdx +100 -8
  1877. package/docs/content/locales/ja-JP/components.mdx +116 -8
  1878. package/docs/content/locales/ja-JP/context-awareness.mdx +100 -8
  1879. package/docs/content/locales/ja-JP/creating-templates.mdx +51 -4
  1880. package/docs/content/locales/ja-JP/cross-app-sso.mdx +109 -8
  1881. package/docs/content/locales/ja-JP/database.mdx +52 -4
  1882. package/docs/content/locales/ja-JP/deployment.mdx +103 -8
  1883. package/docs/content/locales/ja-JP/dispatch.mdx +134 -8
  1884. package/docs/content/locales/ja-JP/drop-in-agent.mdx +63 -4
  1885. package/docs/content/locales/ja-JP/durable-resume.mdx +47 -4
  1886. package/docs/content/locales/ja-JP/embedding-sdk.mdx +85 -8
  1887. package/docs/content/locales/ja-JP/evals.mdx +102 -8
  1888. package/docs/content/locales/ja-JP/extensions.mdx +111 -9
  1889. package/docs/content/locales/ja-JP/external-agents.mdx +119 -8
  1890. package/docs/content/locales/ja-JP/faq.mdx +98 -8
  1891. package/docs/content/locales/ja-JP/file-uploads.mdx +61 -4
  1892. package/docs/content/locales/ja-JP/frames.mdx +88 -8
  1893. package/docs/content/locales/ja-JP/getting-started.mdx +34 -4
  1894. package/docs/content/locales/ja-JP/harness-agents.mdx +79 -8
  1895. package/docs/content/locales/ja-JP/human-approval.mdx +50 -4
  1896. package/docs/content/locales/ja-JP/key-concepts.mdx +105 -8
  1897. package/docs/content/locales/ja-JP/local-file-mode.mdx +58 -4
  1898. package/docs/content/locales/ja-JP/mcp-apps.mdx +119 -10
  1899. package/docs/content/locales/ja-JP/mcp-clients.mdx +134 -8
  1900. package/docs/content/locales/ja-JP/mcp-protocol.mdx +105 -8
  1901. package/docs/content/locales/ja-JP/messaging.mdx +115 -8
  1902. package/docs/content/locales/ja-JP/migration-workbench.mdx +47 -4
  1903. package/docs/content/locales/ja-JP/multi-app-workspace.mdx +91 -8
  1904. package/docs/content/locales/ja-JP/multi-tenancy.mdx +80 -8
  1905. package/docs/content/locales/ja-JP/native-chat-ui.mdx +104 -8
  1906. package/docs/content/locales/ja-JP/notifications.mdx +135 -8
  1907. package/docs/content/locales/ja-JP/observability.mdx +104 -8
  1908. package/docs/content/locales/ja-JP/observational-memory.mdx +89 -8
  1909. package/docs/content/locales/ja-JP/onboarding.mdx +45 -4
  1910. package/docs/content/locales/ja-JP/plan-plugin.mdx +99 -8
  1911. package/docs/content/locales/ja-JP/pr-visual-recap.mdx +123 -8
  1912. package/docs/content/locales/ja-JP/processors.mdx +39 -4
  1913. package/docs/content/locales/ja-JP/progress.mdx +46 -4
  1914. package/docs/content/locales/ja-JP/pure-agent-apps.mdx +48 -4
  1915. package/docs/content/locales/ja-JP/real-time-collaboration.mdx +106 -8
  1916. package/docs/content/locales/ja-JP/recurring-jobs.mdx +59 -4
  1917. package/docs/content/locales/ja-JP/routing.mdx +44 -5
  1918. package/docs/content/locales/ja-JP/sandbox-adapters.mdx +43 -4
  1919. package/docs/content/locales/ja-JP/security.mdx +82 -8
  1920. package/docs/content/locales/ja-JP/server.mdx +171 -12
  1921. package/docs/content/locales/ja-JP/sharing.mdx +45 -4
  1922. package/docs/content/locales/ja-JP/skills-guide.mdx +118 -9
  1923. package/docs/content/locales/ja-JP/template-analytics.mdx +46 -4
  1924. package/docs/content/locales/ja-JP/template-assets.mdx +64 -4
  1925. package/docs/content/locales/ja-JP/template-brain.mdx +67 -4
  1926. package/docs/content/locales/ja-JP/template-calendar.mdx +62 -4
  1927. package/docs/content/locales/ja-JP/template-chat.mdx +61 -4
  1928. package/docs/content/locales/ja-JP/template-clips.mdx +52 -4
  1929. package/docs/content/locales/ja-JP/template-content.mdx +62 -4
  1930. package/docs/content/locales/ja-JP/template-design.mdx +106 -4
  1931. package/docs/content/locales/ja-JP/template-dispatch.mdx +57 -4
  1932. package/docs/content/locales/ja-JP/template-forms.mdx +62 -4
  1933. package/docs/content/locales/ja-JP/template-mail.mdx +62 -4
  1934. package/docs/content/locales/ja-JP/template-plan.mdx +63 -4
  1935. package/docs/content/locales/ja-JP/template-slides.mdx +49 -4
  1936. package/docs/content/locales/ja-JP/template-videos.mdx +53 -4
  1937. package/docs/content/locales/ja-JP/tracking.mdx +54 -4
  1938. package/docs/content/locales/ja-JP/using-your-agent.mdx +51 -4
  1939. package/docs/content/locales/ja-JP/voice-input.mdx +43 -4
  1940. package/docs/content/locales/ja-JP/what-is-agent-native.mdx +96 -8
  1941. package/docs/content/locales/ja-JP/workspace-connections.mdx +128 -8
  1942. package/docs/content/locales/ja-JP/workspace-management.mdx +50 -4
  1943. package/docs/content/locales/ja-JP/workspace.mdx +111 -8
  1944. package/docs/content/locales/ja-JP/writing-agent-instructions.mdx +44 -4
  1945. package/docs/content/locales/ko-KR/a2a-protocol.mdx +97 -9
  1946. package/docs/content/locales/ko-KR/actions.mdx +63 -4
  1947. package/docs/content/locales/ko-KR/agent-mentions.mdx +68 -4
  1948. package/docs/content/locales/ko-KR/agent-surfaces.mdx +113 -8
  1949. package/docs/content/locales/ko-KR/agent-teams.mdx +171 -12
  1950. package/docs/content/locales/ko-KR/agent-web-surfaces.mdx +51 -4
  1951. package/docs/content/locales/ko-KR/authentication.mdx +122 -8
  1952. package/docs/content/locales/ko-KR/automations.mdx +110 -8
  1953. package/docs/content/locales/ko-KR/blueprint-installer.mdx +42 -4
  1954. package/docs/content/locales/ko-KR/cli-adapters.mdx +44 -4
  1955. package/docs/content/locales/ko-KR/client.mdx +79 -8
  1956. package/docs/content/locales/ko-KR/cloneable-saas.mdx +85 -8
  1957. package/docs/content/locales/ko-KR/code-agents-ui.mdx +96 -8
  1958. package/docs/content/locales/ko-KR/components.mdx +112 -8
  1959. package/docs/content/locales/ko-KR/context-awareness.mdx +96 -8
  1960. package/docs/content/locales/ko-KR/creating-templates.mdx +51 -4
  1961. package/docs/content/locales/ko-KR/cross-app-sso.mdx +109 -8
  1962. package/docs/content/locales/ko-KR/database.mdx +52 -4
  1963. package/docs/content/locales/ko-KR/deployment.mdx +103 -8
  1964. package/docs/content/locales/ko-KR/dispatch.mdx +132 -8
  1965. package/docs/content/locales/ko-KR/drop-in-agent.mdx +63 -4
  1966. package/docs/content/locales/ko-KR/durable-resume.mdx +47 -4
  1967. package/docs/content/locales/ko-KR/embedding-sdk.mdx +81 -8
  1968. package/docs/content/locales/ko-KR/evals.mdx +102 -8
  1969. package/docs/content/locales/ko-KR/extensions.mdx +111 -9
  1970. package/docs/content/locales/ko-KR/external-agents.mdx +119 -8
  1971. package/docs/content/locales/ko-KR/faq.mdx +96 -8
  1972. package/docs/content/locales/ko-KR/file-uploads.mdx +61 -4
  1973. package/docs/content/locales/ko-KR/frames.mdx +86 -8
  1974. package/docs/content/locales/ko-KR/getting-started.mdx +34 -4
  1975. package/docs/content/locales/ko-KR/harness-agents.mdx +77 -8
  1976. package/docs/content/locales/ko-KR/human-approval.mdx +50 -4
  1977. package/docs/content/locales/ko-KR/key-concepts.mdx +104 -8
  1978. package/docs/content/locales/ko-KR/local-file-mode.mdx +56 -4
  1979. package/docs/content/locales/ko-KR/mcp-apps.mdx +120 -10
  1980. package/docs/content/locales/ko-KR/mcp-clients.mdx +133 -8
  1981. package/docs/content/locales/ko-KR/mcp-protocol.mdx +105 -8
  1982. package/docs/content/locales/ko-KR/messaging.mdx +115 -8
  1983. package/docs/content/locales/ko-KR/migration-workbench.mdx +45 -4
  1984. package/docs/content/locales/ko-KR/multi-app-workspace.mdx +91 -8
  1985. package/docs/content/locales/ko-KR/multi-tenancy.mdx +80 -8
  1986. package/docs/content/locales/ko-KR/native-chat-ui.mdx +104 -8
  1987. package/docs/content/locales/ko-KR/notifications.mdx +135 -8
  1988. package/docs/content/locales/ko-KR/observability.mdx +102 -8
  1989. package/docs/content/locales/ko-KR/observational-memory.mdx +87 -8
  1990. package/docs/content/locales/ko-KR/onboarding.mdx +44 -4
  1991. package/docs/content/locales/ko-KR/plan-plugin.mdx +99 -8
  1992. package/docs/content/locales/ko-KR/pr-visual-recap.mdx +125 -8
  1993. package/docs/content/locales/ko-KR/processors.mdx +39 -4
  1994. package/docs/content/locales/ko-KR/progress.mdx +46 -4
  1995. package/docs/content/locales/ko-KR/pure-agent-apps.mdx +46 -4
  1996. package/docs/content/locales/ko-KR/real-time-collaboration.mdx +104 -8
  1997. package/docs/content/locales/ko-KR/recurring-jobs.mdx +59 -4
  1998. package/docs/content/locales/ko-KR/routing.mdx +44 -5
  1999. package/docs/content/locales/ko-KR/sandbox-adapters.mdx +41 -4
  2000. package/docs/content/locales/ko-KR/security.mdx +78 -8
  2001. package/docs/content/locales/ko-KR/server.mdx +171 -12
  2002. package/docs/content/locales/ko-KR/sharing.mdx +45 -4
  2003. package/docs/content/locales/ko-KR/skills-guide.mdx +118 -9
  2004. package/docs/content/locales/ko-KR/template-analytics.mdx +46 -4
  2005. package/docs/content/locales/ko-KR/template-assets.mdx +62 -4
  2006. package/docs/content/locales/ko-KR/template-brain.mdx +65 -4
  2007. package/docs/content/locales/ko-KR/template-calendar.mdx +60 -4
  2008. package/docs/content/locales/ko-KR/template-chat.mdx +59 -4
  2009. package/docs/content/locales/ko-KR/template-clips.mdx +52 -4
  2010. package/docs/content/locales/ko-KR/template-content.mdx +60 -4
  2011. package/docs/content/locales/ko-KR/template-design.mdx +102 -4
  2012. package/docs/content/locales/ko-KR/template-dispatch.mdx +57 -4
  2013. package/docs/content/locales/ko-KR/template-forms.mdx +60 -4
  2014. package/docs/content/locales/ko-KR/template-mail.mdx +60 -4
  2015. package/docs/content/locales/ko-KR/template-plan.mdx +57 -4
  2016. package/docs/content/locales/ko-KR/template-slides.mdx +49 -4
  2017. package/docs/content/locales/ko-KR/template-videos.mdx +53 -4
  2018. package/docs/content/locales/ko-KR/tracking.mdx +54 -4
  2019. package/docs/content/locales/ko-KR/using-your-agent.mdx +51 -4
  2020. package/docs/content/locales/ko-KR/voice-input.mdx +43 -4
  2021. package/docs/content/locales/ko-KR/what-is-agent-native.mdx +95 -8
  2022. package/docs/content/locales/ko-KR/workspace-connections.mdx +128 -8
  2023. package/docs/content/locales/ko-KR/workspace-management.mdx +50 -4
  2024. package/docs/content/locales/ko-KR/workspace.mdx +111 -8
  2025. package/docs/content/locales/ko-KR/writing-agent-instructions.mdx +38 -4
  2026. package/docs/content/locales/pt-BR/a2a-protocol.mdx +99 -9
  2027. package/docs/content/locales/pt-BR/actions.mdx +67 -4
  2028. package/docs/content/locales/pt-BR/agent-mentions.mdx +68 -4
  2029. package/docs/content/locales/pt-BR/agent-surfaces.mdx +116 -8
  2030. package/docs/content/locales/pt-BR/agent-teams.mdx +172 -12
  2031. package/docs/content/locales/pt-BR/agent-web-surfaces.mdx +51 -4
  2032. package/docs/content/locales/pt-BR/authentication.mdx +122 -8
  2033. package/docs/content/locales/pt-BR/automations.mdx +110 -8
  2034. package/docs/content/locales/pt-BR/blueprint-installer.mdx +42 -4
  2035. package/docs/content/locales/pt-BR/cli-adapters.mdx +44 -4
  2036. package/docs/content/locales/pt-BR/client.mdx +81 -8
  2037. package/docs/content/locales/pt-BR/cloneable-saas.mdx +85 -8
  2038. package/docs/content/locales/pt-BR/code-agents-ui.mdx +98 -8
  2039. package/docs/content/locales/pt-BR/components.mdx +118 -8
  2040. package/docs/content/locales/pt-BR/context-awareness.mdx +100 -8
  2041. package/docs/content/locales/pt-BR/creating-templates.mdx +51 -4
  2042. package/docs/content/locales/pt-BR/cross-app-sso.mdx +109 -8
  2043. package/docs/content/locales/pt-BR/database.mdx +52 -4
  2044. package/docs/content/locales/pt-BR/deployment.mdx +103 -8
  2045. package/docs/content/locales/pt-BR/dispatch.mdx +134 -8
  2046. package/docs/content/locales/pt-BR/drop-in-agent.mdx +63 -4
  2047. package/docs/content/locales/pt-BR/durable-resume.mdx +47 -4
  2048. package/docs/content/locales/pt-BR/embedding-sdk.mdx +87 -8
  2049. package/docs/content/locales/pt-BR/evals.mdx +102 -8
  2050. package/docs/content/locales/pt-BR/extensions.mdx +113 -9
  2051. package/docs/content/locales/pt-BR/external-agents.mdx +119 -8
  2052. package/docs/content/locales/pt-BR/faq.mdx +98 -8
  2053. package/docs/content/locales/pt-BR/file-uploads.mdx +61 -4
  2054. package/docs/content/locales/pt-BR/frames.mdx +88 -8
  2055. package/docs/content/locales/pt-BR/getting-started.mdx +34 -4
  2056. package/docs/content/locales/pt-BR/harness-agents.mdx +79 -8
  2057. package/docs/content/locales/pt-BR/human-approval.mdx +50 -4
  2058. package/docs/content/locales/pt-BR/key-concepts.mdx +104 -8
  2059. package/docs/content/locales/pt-BR/local-file-mode.mdx +60 -4
  2060. package/docs/content/locales/pt-BR/mcp-apps.mdx +120 -10
  2061. package/docs/content/locales/pt-BR/mcp-clients.mdx +133 -8
  2062. package/docs/content/locales/pt-BR/mcp-protocol.mdx +105 -8
  2063. package/docs/content/locales/pt-BR/messaging.mdx +115 -8
  2064. package/docs/content/locales/pt-BR/migration-workbench.mdx +47 -4
  2065. package/docs/content/locales/pt-BR/multi-app-workspace.mdx +91 -8
  2066. package/docs/content/locales/pt-BR/multi-tenancy.mdx +80 -8
  2067. package/docs/content/locales/pt-BR/native-chat-ui.mdx +108 -8
  2068. package/docs/content/locales/pt-BR/notifications.mdx +135 -8
  2069. package/docs/content/locales/pt-BR/observability.mdx +104 -8
  2070. package/docs/content/locales/pt-BR/observational-memory.mdx +92 -8
  2071. package/docs/content/locales/pt-BR/onboarding.mdx +45 -4
  2072. package/docs/content/locales/pt-BR/plan-plugin.mdx +99 -8
  2073. package/docs/content/locales/pt-BR/pr-visual-recap.mdx +125 -8
  2074. package/docs/content/locales/pt-BR/processors.mdx +41 -4
  2075. package/docs/content/locales/pt-BR/progress.mdx +46 -4
  2076. package/docs/content/locales/pt-BR/pure-agent-apps.mdx +48 -4
  2077. package/docs/content/locales/pt-BR/real-time-collaboration.mdx +107 -8
  2078. package/docs/content/locales/pt-BR/recurring-jobs.mdx +59 -4
  2079. package/docs/content/locales/pt-BR/routing.mdx +44 -5
  2080. package/docs/content/locales/pt-BR/sandbox-adapters.mdx +43 -4
  2081. package/docs/content/locales/pt-BR/security.mdx +82 -8
  2082. package/docs/content/locales/pt-BR/server.mdx +173 -12
  2083. package/docs/content/locales/pt-BR/sharing.mdx +45 -4
  2084. package/docs/content/locales/pt-BR/skills-guide.mdx +118 -9
  2085. package/docs/content/locales/pt-BR/template-analytics.mdx +46 -4
  2086. package/docs/content/locales/pt-BR/template-assets.mdx +64 -4
  2087. package/docs/content/locales/pt-BR/template-brain.mdx +69 -4
  2088. package/docs/content/locales/pt-BR/template-calendar.mdx +62 -4
  2089. package/docs/content/locales/pt-BR/template-chat.mdx +61 -4
  2090. package/docs/content/locales/pt-BR/template-clips.mdx +52 -4
  2091. package/docs/content/locales/pt-BR/template-content.mdx +64 -4
  2092. package/docs/content/locales/pt-BR/template-design.mdx +106 -4
  2093. package/docs/content/locales/pt-BR/template-dispatch.mdx +57 -4
  2094. package/docs/content/locales/pt-BR/template-forms.mdx +64 -4
  2095. package/docs/content/locales/pt-BR/template-mail.mdx +60 -4
  2096. package/docs/content/locales/pt-BR/template-plan.mdx +63 -4
  2097. package/docs/content/locales/pt-BR/template-slides.mdx +49 -4
  2098. package/docs/content/locales/pt-BR/template-videos.mdx +53 -4
  2099. package/docs/content/locales/pt-BR/tracking.mdx +54 -4
  2100. package/docs/content/locales/pt-BR/using-your-agent.mdx +51 -4
  2101. package/docs/content/locales/pt-BR/voice-input.mdx +43 -4
  2102. package/docs/content/locales/pt-BR/what-is-agent-native.mdx +101 -8
  2103. package/docs/content/locales/pt-BR/workspace-connections.mdx +128 -8
  2104. package/docs/content/locales/pt-BR/workspace-management.mdx +50 -4
  2105. package/docs/content/locales/pt-BR/workspace.mdx +111 -8
  2106. package/docs/content/locales/pt-BR/writing-agent-instructions.mdx +46 -4
  2107. package/docs/content/locales/zh-CN/a2a-protocol.mdx +97 -9
  2108. package/docs/content/locales/zh-CN/actions.mdx +65 -4
  2109. package/docs/content/locales/zh-CN/agent-mentions.mdx +68 -4
  2110. package/docs/content/locales/zh-CN/agent-surfaces.mdx +108 -8
  2111. package/docs/content/locales/zh-CN/agent-teams.mdx +171 -12
  2112. package/docs/content/locales/zh-CN/agent-web-surfaces.mdx +51 -4
  2113. package/docs/content/locales/zh-CN/authentication.mdx +122 -8
  2114. package/docs/content/locales/zh-CN/automations.mdx +110 -8
  2115. package/docs/content/locales/zh-CN/blueprint-installer.mdx +42 -4
  2116. package/docs/content/locales/zh-CN/cli-adapters.mdx +44 -4
  2117. package/docs/content/locales/zh-CN/client.mdx +79 -8
  2118. package/docs/content/locales/zh-CN/cloneable-saas.mdx +83 -8
  2119. package/docs/content/locales/zh-CN/code-agents-ui.mdx +94 -8
  2120. package/docs/content/locales/zh-CN/components.mdx +112 -8
  2121. package/docs/content/locales/zh-CN/context-awareness.mdx +96 -8
  2122. package/docs/content/locales/zh-CN/creating-templates.mdx +51 -4
  2123. package/docs/content/locales/zh-CN/cross-app-sso.mdx +107 -8
  2124. package/docs/content/locales/zh-CN/database.mdx +52 -4
  2125. package/docs/content/locales/zh-CN/deployment.mdx +103 -8
  2126. package/docs/content/locales/zh-CN/dispatch.mdx +134 -8
  2127. package/docs/content/locales/zh-CN/drop-in-agent.mdx +63 -4
  2128. package/docs/content/locales/zh-CN/durable-resume.mdx +45 -4
  2129. package/docs/content/locales/zh-CN/embedding-sdk.mdx +81 -8
  2130. package/docs/content/locales/zh-CN/evals.mdx +100 -8
  2131. package/docs/content/locales/zh-CN/extensions.mdx +111 -9
  2132. package/docs/content/locales/zh-CN/external-agents.mdx +119 -8
  2133. package/docs/content/locales/zh-CN/faq.mdx +96 -8
  2134. package/docs/content/locales/zh-CN/file-uploads.mdx +61 -4
  2135. package/docs/content/locales/zh-CN/frames.mdx +86 -8
  2136. package/docs/content/locales/zh-CN/getting-started.mdx +34 -4
  2137. package/docs/content/locales/zh-CN/harness-agents.mdx +79 -8
  2138. package/docs/content/locales/zh-CN/human-approval.mdx +50 -4
  2139. package/docs/content/locales/zh-CN/key-concepts.mdx +100 -8
  2140. package/docs/content/locales/zh-CN/local-file-mode.mdx +56 -4
  2141. package/docs/content/locales/zh-CN/mcp-apps.mdx +120 -10
  2142. package/docs/content/locales/zh-CN/mcp-clients.mdx +133 -8
  2143. package/docs/content/locales/zh-CN/mcp-protocol.mdx +105 -8
  2144. package/docs/content/locales/zh-CN/messaging.mdx +115 -8
  2145. package/docs/content/locales/zh-CN/migration-workbench.mdx +45 -4
  2146. package/docs/content/locales/zh-CN/multi-app-workspace.mdx +91 -8
  2147. package/docs/content/locales/zh-CN/multi-tenancy.mdx +80 -8
  2148. package/docs/content/locales/zh-CN/native-chat-ui.mdx +104 -8
  2149. package/docs/content/locales/zh-CN/notifications.mdx +135 -8
  2150. package/docs/content/locales/zh-CN/observability.mdx +102 -8
  2151. package/docs/content/locales/zh-CN/observational-memory.mdx +85 -8
  2152. package/docs/content/locales/zh-CN/onboarding.mdx +44 -4
  2153. package/docs/content/locales/zh-CN/plan-plugin.mdx +97 -8
  2154. package/docs/content/locales/zh-CN/pr-visual-recap.mdx +123 -8
  2155. package/docs/content/locales/zh-CN/processors.mdx +39 -4
  2156. package/docs/content/locales/zh-CN/progress.mdx +46 -4
  2157. package/docs/content/locales/zh-CN/pure-agent-apps.mdx +46 -4
  2158. package/docs/content/locales/zh-CN/real-time-collaboration.mdx +98 -8
  2159. package/docs/content/locales/zh-CN/recurring-jobs.mdx +59 -4
  2160. package/docs/content/locales/zh-CN/routing.mdx +42 -5
  2161. package/docs/content/locales/zh-CN/sandbox-adapters.mdx +41 -4
  2162. package/docs/content/locales/zh-CN/security.mdx +78 -8
  2163. package/docs/content/locales/zh-CN/server.mdx +169 -12
  2164. package/docs/content/locales/zh-CN/sharing.mdx +45 -4
  2165. package/docs/content/locales/zh-CN/skills-guide.mdx +118 -9
  2166. package/docs/content/locales/zh-CN/template-analytics.mdx +46 -4
  2167. package/docs/content/locales/zh-CN/template-assets.mdx +58 -4
  2168. package/docs/content/locales/zh-CN/template-brain.mdx +65 -4
  2169. package/docs/content/locales/zh-CN/template-calendar.mdx +58 -4
  2170. package/docs/content/locales/zh-CN/template-chat.mdx +57 -4
  2171. package/docs/content/locales/zh-CN/template-clips.mdx +52 -4
  2172. package/docs/content/locales/zh-CN/template-content.mdx +58 -4
  2173. package/docs/content/locales/zh-CN/template-design.mdx +94 -4
  2174. package/docs/content/locales/zh-CN/template-dispatch.mdx +57 -4
  2175. package/docs/content/locales/zh-CN/template-forms.mdx +58 -4
  2176. package/docs/content/locales/zh-CN/template-mail.mdx +60 -4
  2177. package/docs/content/locales/zh-CN/template-plan.mdx +57 -4
  2178. package/docs/content/locales/zh-CN/template-slides.mdx +49 -4
  2179. package/docs/content/locales/zh-CN/template-videos.mdx +51 -4
  2180. package/docs/content/locales/zh-CN/tracking.mdx +54 -4
  2181. package/docs/content/locales/zh-CN/using-your-agent.mdx +51 -4
  2182. package/docs/content/locales/zh-CN/voice-input.mdx +43 -4
  2183. package/docs/content/locales/zh-CN/what-is-agent-native.mdx +94 -8
  2184. package/docs/content/locales/zh-CN/workspace-connections.mdx +126 -8
  2185. package/docs/content/locales/zh-CN/workspace-management.mdx +50 -4
  2186. package/docs/content/locales/zh-CN/workspace.mdx +110 -8
  2187. package/docs/content/locales/zh-CN/writing-agent-instructions.mdx +38 -4
  2188. package/docs/content/locales/zh-TW/a2a-protocol.mdx +97 -9
  2189. package/docs/content/locales/zh-TW/actions.mdx +63 -4
  2190. package/docs/content/locales/zh-TW/agent-mentions.mdx +68 -4
  2191. package/docs/content/locales/zh-TW/agent-surfaces.mdx +108 -8
  2192. package/docs/content/locales/zh-TW/agent-teams.mdx +171 -12
  2193. package/docs/content/locales/zh-TW/agent-web-surfaces.mdx +51 -4
  2194. package/docs/content/locales/zh-TW/authentication.mdx +122 -8
  2195. package/docs/content/locales/zh-TW/automations.mdx +110 -8
  2196. package/docs/content/locales/zh-TW/blueprint-installer.mdx +42 -4
  2197. package/docs/content/locales/zh-TW/cli-adapters.mdx +44 -4
  2198. package/docs/content/locales/zh-TW/client.mdx +79 -8
  2199. package/docs/content/locales/zh-TW/cloneable-saas.mdx +83 -8
  2200. package/docs/content/locales/zh-TW/code-agents-ui.mdx +94 -8
  2201. package/docs/content/locales/zh-TW/components.mdx +112 -8
  2202. package/docs/content/locales/zh-TW/context-awareness.mdx +96 -8
  2203. package/docs/content/locales/zh-TW/creating-templates.mdx +51 -4
  2204. package/docs/content/locales/zh-TW/cross-app-sso.mdx +107 -8
  2205. package/docs/content/locales/zh-TW/database.mdx +52 -4
  2206. package/docs/content/locales/zh-TW/deployment.mdx +103 -8
  2207. package/docs/content/locales/zh-TW/dispatch.mdx +134 -8
  2208. package/docs/content/locales/zh-TW/drop-in-agent.mdx +63 -4
  2209. package/docs/content/locales/zh-TW/durable-background-runs.mdx +88 -8
  2210. package/docs/content/locales/zh-TW/durable-resume.mdx +45 -4
  2211. package/docs/content/locales/zh-TW/embedding-sdk.mdx +83 -8
  2212. package/docs/content/locales/zh-TW/evals.mdx +100 -8
  2213. package/docs/content/locales/zh-TW/extensions.mdx +111 -9
  2214. package/docs/content/locales/zh-TW/external-agents.mdx +119 -8
  2215. package/docs/content/locales/zh-TW/faq.mdx +96 -8
  2216. package/docs/content/locales/zh-TW/file-uploads.mdx +61 -4
  2217. package/docs/content/locales/zh-TW/frames.mdx +86 -8
  2218. package/docs/content/locales/zh-TW/getting-started.mdx +34 -4
  2219. package/docs/content/locales/zh-TW/harness-agents.mdx +79 -8
  2220. package/docs/content/locales/zh-TW/human-approval.mdx +50 -4
  2221. package/docs/content/locales/zh-TW/key-concepts.mdx +100 -8
  2222. package/docs/content/locales/zh-TW/local-file-mode.mdx +56 -4
  2223. package/docs/content/locales/zh-TW/mcp-apps.mdx +120 -10
  2224. package/docs/content/locales/zh-TW/mcp-clients.mdx +133 -8
  2225. package/docs/content/locales/zh-TW/mcp-protocol.mdx +105 -8
  2226. package/docs/content/locales/zh-TW/messaging.mdx +115 -8
  2227. package/docs/content/locales/zh-TW/migration-workbench.mdx +45 -4
  2228. package/docs/content/locales/zh-TW/multi-app-workspace.mdx +91 -8
  2229. package/docs/content/locales/zh-TW/multi-tenancy.mdx +80 -8
  2230. package/docs/content/locales/zh-TW/native-chat-ui.mdx +104 -8
  2231. package/docs/content/locales/zh-TW/notifications.mdx +135 -8
  2232. package/docs/content/locales/zh-TW/observability.mdx +102 -8
  2233. package/docs/content/locales/zh-TW/observational-memory.mdx +85 -8
  2234. package/docs/content/locales/zh-TW/onboarding.mdx +44 -4
  2235. package/docs/content/locales/zh-TW/plan-plugin.mdx +97 -8
  2236. package/docs/content/locales/zh-TW/pr-visual-recap.mdx +123 -8
  2237. package/docs/content/locales/zh-TW/processors.mdx +39 -4
  2238. package/docs/content/locales/zh-TW/progress.mdx +46 -4
  2239. package/docs/content/locales/zh-TW/pure-agent-apps.mdx +46 -4
  2240. package/docs/content/locales/zh-TW/real-time-collaboration.mdx +98 -8
  2241. package/docs/content/locales/zh-TW/recurring-jobs.mdx +59 -4
  2242. package/docs/content/locales/zh-TW/routing.mdx +42 -5
  2243. package/docs/content/locales/zh-TW/sandbox-adapters.mdx +41 -4
  2244. package/docs/content/locales/zh-TW/security.mdx +80 -8
  2245. package/docs/content/locales/zh-TW/server.mdx +169 -12
  2246. package/docs/content/locales/zh-TW/sharing.mdx +45 -4
  2247. package/docs/content/locales/zh-TW/skills-guide.mdx +118 -9
  2248. package/docs/content/locales/zh-TW/template-analytics.mdx +46 -4
  2249. package/docs/content/locales/zh-TW/template-assets.mdx +58 -4
  2250. package/docs/content/locales/zh-TW/template-brain.mdx +65 -4
  2251. package/docs/content/locales/zh-TW/template-calendar.mdx +58 -4
  2252. package/docs/content/locales/zh-TW/template-chat.mdx +59 -4
  2253. package/docs/content/locales/zh-TW/template-clips.mdx +52 -4
  2254. package/docs/content/locales/zh-TW/template-content.mdx +58 -4
  2255. package/docs/content/locales/zh-TW/template-design.mdx +96 -4
  2256. package/docs/content/locales/zh-TW/template-dispatch.mdx +57 -4
  2257. package/docs/content/locales/zh-TW/template-forms.mdx +58 -4
  2258. package/docs/content/locales/zh-TW/template-mail.mdx +60 -4
  2259. package/docs/content/locales/zh-TW/template-plan.mdx +57 -4
  2260. package/docs/content/locales/zh-TW/template-slides.mdx +49 -4
  2261. package/docs/content/locales/zh-TW/template-videos.mdx +51 -4
  2262. package/docs/content/locales/zh-TW/tracking.mdx +54 -4
  2263. package/docs/content/locales/zh-TW/using-your-agent.mdx +51 -4
  2264. package/docs/content/locales/zh-TW/voice-input.mdx +43 -4
  2265. package/docs/content/locales/zh-TW/what-is-agent-native.mdx +94 -8
  2266. package/docs/content/locales/zh-TW/workspace-connections.mdx +126 -8
  2267. package/docs/content/locales/zh-TW/workspace-management.mdx +50 -4
  2268. package/docs/content/locales/zh-TW/workspace.mdx +111 -8
  2269. package/docs/content/locales/zh-TW/writing-agent-instructions.mdx +38 -4
  2270. package/docs/content/mcp-apps.mdx +120 -10
  2271. package/docs/content/mcp-clients.mdx +161 -8
  2272. package/docs/content/mcp-protocol.mdx +105 -8
  2273. package/docs/content/messaging.mdx +115 -8
  2274. package/docs/content/migration-workbench.mdx +45 -4
  2275. package/docs/content/multi-app-workspace.mdx +91 -8
  2276. package/docs/content/multi-tenancy.mdx +80 -8
  2277. package/docs/content/native-chat-ui.mdx +106 -8
  2278. package/docs/content/notifications.mdx +135 -8
  2279. package/docs/content/observability.mdx +102 -8
  2280. package/docs/content/observational-memory.mdx +89 -8
  2281. package/docs/content/onboarding.mdx +45 -4
  2282. package/docs/content/plan-plugin.mdx +99 -8
  2283. package/docs/content/pr-visual-recap.mdx +125 -8
  2284. package/docs/content/processors.mdx +41 -4
  2285. package/docs/content/progress.mdx +46 -4
  2286. package/docs/content/pure-agent-apps.mdx +46 -4
  2287. package/docs/content/real-time-collaboration.mdx +104 -8
  2288. package/docs/content/recurring-jobs.mdx +59 -4
  2289. package/docs/content/routing.mdx +44 -5
  2290. package/docs/content/sandbox-adapters.mdx +43 -4
  2291. package/docs/content/security.mdx +80 -8
  2292. package/docs/content/server.mdx +173 -12
  2293. package/docs/content/sharing.mdx +45 -4
  2294. package/docs/content/skills-guide.mdx +118 -9
  2295. package/docs/content/template-analytics.mdx +46 -4
  2296. package/docs/content/template-assets.mdx +60 -4
  2297. package/docs/content/template-brain.mdx +67 -4
  2298. package/docs/content/template-calendar.mdx +62 -4
  2299. package/docs/content/template-chat.mdx +61 -4
  2300. package/docs/content/template-clips.mdx +52 -4
  2301. package/docs/content/template-content.mdx +60 -4
  2302. package/docs/content/template-design.mdx +103 -4
  2303. package/docs/content/template-dispatch.mdx +57 -4
  2304. package/docs/content/template-forms.mdx +62 -4
  2305. package/docs/content/template-mail.mdx +60 -4
  2306. package/docs/content/template-plan.mdx +61 -4
  2307. package/docs/content/template-slides.mdx +49 -4
  2308. package/docs/content/template-videos.mdx +51 -4
  2309. package/docs/content/tracking.mdx +54 -4
  2310. package/docs/content/using-your-agent.mdx +51 -4
  2311. package/docs/content/voice-input.mdx +43 -4
  2312. package/docs/content/what-is-agent-native.mdx +188 -8
  2313. package/docs/content/workspace-connections.mdx +128 -8
  2314. package/docs/content/workspace-management.mdx +50 -4
  2315. package/docs/content/workspace.mdx +111 -8
  2316. package/docs/content/writing-agent-instructions.mdx +45 -4
  2317. package/package.json +2 -1
  2318. package/src/templates/workspace-core/.agents/skills/voice-transcription/SKILL.md +10 -0
  2319. package/corpus/templates/design/app/components/design/DesignToolbar.tsx +0 -339
  2320. package/corpus/templates/design/app/components/design/PresentMode.tsx +0 -68
  2321. package/corpus/templates/design/app/components/design/ViewportTabs.tsx +0 -149
  2322. package/corpus/templates/design/app/components/design/ZoomControls.tsx +0 -157
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/vite/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAIpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,+BAA+B,GAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,8BAA8B,EAC9B,6BAA6B,EAC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I,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;oBACrE,IAAI;oBACJ,WAAW;iBACZ,CAAC,CAAC;gBACH,GAAG,cAAc,CAAE,UAAU,CAAC,OAA+B,EAAE,KAAK,CAAC;aACtE;SACF;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,WAAW,CACzB,OAAO,GAAiC,EAAE;IAE1C,OAAO;QACL;YACE,IAAI,EAAE,qBAAqB;YAC3B,OAAO,EAAE,KAAK;YACd,MAAM,CAAC,MAAkB,EAAE,GAAc;gBACvC,OAAO,uBAAuB,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAC/D,CAAC;SACF;QACD,GAAG,wBAAwB,CAAC,OAAO,EAAE;YACnC,qBAAqB,EAAE,OAAO,CAAC,SAAS,KAAK,IAAI;YACjD,uBAAuB,EAAE,IAAI;SAC9B,CAAC;KACS,CAAC;AAChB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,OAAO,GAAwB,EAAE;IAC5D,MAAM,qBAAqB,GACzB,CAAC,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;IACjE,OAAO;QACL,GAAG,uBAAuB,CAAC,OAAO,CAAC;QACnC,OAAO,EAAE,wBAAwB,CAAC,OAAO,EAAE;YACzC,qBAAqB;YACrB,WAAW,EAAE,OAAO,CAAC,OAAO;SAC7B,CAAC;KACH,CAAC;AACJ,CAAC;AAED,OAAO,EACL,eAAe,IAAI,gBAAgB,EACnC,sBAAsB,IAAI,uBAAuB,EACjD,mBAAmB,IAAI,oBAAoB,EAC3C,qBAAqB,IAAI,sBAAsB,GAChD,CAAC","sourcesContent":["import fs from \"fs\";\nimport type { IncomingMessage, ServerResponse } from \"http\";\nimport { createRequire, syncBuiltinESMExports } from \"module\";\nimport path from \"path\";\nimport { fileURLToPath } from \"url\";\n\nimport type { ConfigEnv, Plugin, UserConfig } from \"vite\";\n\nimport { getViteDevRecoveryScript } from \"../client/vite-dev-recovery-script.js\";\nimport { findWorkspaceRoot } from \"../scripts/utils.js\";\nimport { verifyEmbedSessionToken } from \"../server/embed-session.js\";\nimport {\n EMBED_SESSION_COOKIE,\n EMBED_TOKEN_QUERY_PARAM,\n MCP_APP_CHAT_BRIDGE_QUERY_PARAM,\n} from \"../shared/embed-auth.js\";\nimport {\n isMcpEmbedCorsOrigin,\n MCP_EMBED_CORS_ALLOW_HEADERS,\n MCP_EMBED_STATIC_ASSET_HEADERS,\n mcpEmbedStaticAssetRouteRules,\n shouldAllowMcpEmbedCredentials,\n} from \"../shared/mcp-embed-headers.js\";\nimport {\n normalizeAgentNativeRouteWarmupConfig,\n type AgentNativeRouteWarmupConfigInput,\n} from \"../shared/route-warmup-config.js\";\nimport { actionTypesPlugin } from \"./action-types-plugin.js\";\nimport { agentsBundlePlugin } from \"./agents-bundle-plugin.js\";\n\nconst require = createRequire(import.meta.url);\nconst __dirname = path.dirname(fileURLToPath(import.meta.url));\nlet nitroFsWatchGuardInstalled = false;\n\nfunction installNitroFsWatchGuard(): void {\n if (nitroFsWatchGuardInstalled) return;\n nitroFsWatchGuardInstalled = true;\n\n const originalWatch = fs.watch.bind(fs) as (...args: any[]) => fs.FSWatcher;\n (fs as typeof fs & { watch: (...args: any[]) => fs.FSWatcher }).watch = (\n ...args: any[]\n ) => {\n let watcher: fs.FSWatcher;\n try {\n watcher = originalWatch(...args);\n } catch (error) {\n const err = error as NodeJS.ErrnoException;\n if (err.code !== \"EMFILE\" && err.code !== \"ENOSPC\") throw error;\n console.warn(\n `[agent-native] Disabled Nitro fs.watch for ${String(args[0])}: ${err.message}`,\n );\n return {\n close() {},\n on() {\n return this as fs.FSWatcher;\n },\n } as unknown as fs.FSWatcher;\n }\n\n const originalEmit = watcher.emit.bind(watcher);\n watcher.emit = ((eventName: string | symbol, ...eventArgs: any[]) => {\n const err = eventArgs[0] as NodeJS.ErrnoException | undefined;\n if (\n eventName === \"error\" &&\n (err?.code === \"EMFILE\" || err?.code === \"ENOSPC\")\n ) {\n console.warn(\n `[agent-native] Disabled Nitro fs.watch for ${String(args[0])}: ${err.message}`,\n );\n watcher.close();\n return false;\n }\n return originalEmit(eventName, ...eventArgs);\n }) as fs.FSWatcher[\"emit\"];\n return watcher;\n };\n syncBuiltinESMExports();\n}\n\nfunction nitroVitePlugin(\n ...args: Parameters<typeof import(\"nitro/vite\").nitro>\n) {\n installNitroFsWatchGuard();\n return require(\"nitro/vite\").nitro(...args);\n}\n\n/**\n * Sync discovery for the workspace-core in an enterprise monorepo.\n *\n * Mirrors `getWorkspaceCoreExports` in deploy/workspace-core.ts but stays\n * synchronous so it can run inline in `defineConfig`. Returns the workspace\n * core's package name + absolute directory, or null if no workspace core is\n * declared in the ancestor chain.\n *\n * Walks up from `startDir` looking for a package.json with\n * `agent-native.workspaceCore`. Resolves the declared package name through\n * `<workspaceRoot>/node_modules/<name>` (pnpm symlink, fastest) or by\n * scanning `packages/*` for a matching `name` field (fallback for\n * pre-install scenarios).\n */\nfunction findWorkspaceCoreSync(\n startDir: string,\n): { packageName: string; packageDir: string; workspaceRoot: string } | null {\n // 1) Walk up looking for the root package.json that declares workspaceCore.\n let dir = path.resolve(startDir);\n let workspaceRoot: string | null = null;\n let packageName: string | null = null;\n for (let i = 0; i < 20; i++) {\n const pkgPath = path.join(dir, \"package.json\");\n if (fs.existsSync(pkgPath)) {\n try {\n const pkg = JSON.parse(fs.readFileSync(pkgPath, \"utf-8\"));\n const declared = pkg?.[\"agent-native\"]?.workspaceCore;\n if (typeof declared === \"string\" && declared.length > 0) {\n workspaceRoot = dir;\n packageName = declared;\n break;\n }\n } catch {\n // Malformed package.json — keep walking up.\n }\n }\n const parent = path.dirname(dir);\n if (parent === dir) break;\n dir = parent;\n }\n if (!workspaceRoot || !packageName) return null;\n\n // 2a) pnpm/npm symlink under workspaceRoot/node_modules.\n const nm = path.join(workspaceRoot, \"node_modules\", packageName);\n if (fs.existsSync(path.join(nm, \"package.json\"))) {\n return { packageName, packageDir: fs.realpathSync(nm), workspaceRoot };\n }\n\n // 2b) Scan packages/* and packages/@scope/* for a matching `name`.\n const packagesDir = path.join(workspaceRoot, \"packages\");\n if (fs.existsSync(packagesDir)) {\n const candidates: string[] = [];\n for (const entry of fs.readdirSync(packagesDir, { withFileTypes: true })) {\n if (!entry.isDirectory()) continue;\n candidates.push(path.join(packagesDir, entry.name));\n if (entry.name.startsWith(\"@\")) {\n const scopeDir = path.join(packagesDir, entry.name);\n for (const sub of fs.readdirSync(scopeDir, { withFileTypes: true })) {\n if (sub.isDirectory()) candidates.push(path.join(scopeDir, sub.name));\n }\n }\n }\n for (const c of candidates) {\n const p = path.join(c, \"package.json\");\n if (!fs.existsSync(p)) continue;\n try {\n const pkg = JSON.parse(fs.readFileSync(p, \"utf-8\"));\n if (pkg?.name === packageName)\n return { packageName, packageDir: fs.realpathSync(c), workspaceRoot };\n } catch {\n // ignore malformed package.json\n }\n }\n }\n return null;\n}\n\nfunction findLocalWorkspacePackageDeps(\n startDir: string,\n workspaceRoot: string | null,\n): Array<{ packageName: string; packageDir: string }> {\n if (!workspaceRoot) return [];\n const pkgPath = path.join(startDir, \"package.json\");\n if (!fs.existsSync(pkgPath)) return [];\n\n try {\n const pkg = JSON.parse(fs.readFileSync(pkgPath, \"utf-8\"));\n const deps = {\n ...(pkg.dependencies ?? {}),\n ...(pkg.devDependencies ?? {}),\n ...(pkg.peerDependencies ?? {}),\n } as Record<string, string>;\n const req = createRequire(pkgPath);\n const seen = new Set<string>();\n const packages: Array<{ packageName: string; packageDir: string }> = [];\n\n for (const [packageName, range] of Object.entries(deps)) {\n if (!range.startsWith(\"workspace:\")) continue;\n if (seen.has(packageName)) continue;\n seen.add(packageName);\n\n try {\n const packageJsonPath =\n findInstalledPackageJsonPath(pkgPath, packageName) ??\n findPackageJsonFromEntry(req.resolve(packageName));\n if (!packageJsonPath) continue;\n const packageDir = fs.realpathSync(path.dirname(packageJsonPath));\n if (!packageDir.startsWith(path.join(workspaceRoot, \"packages\")))\n continue;\n packages.push({ packageName, packageDir });\n } catch {\n // Dependency may not have been installed yet; ignore it for dev config.\n }\n }\n\n return packages;\n } catch {\n return [];\n }\n}\n\nfunction findInstalledPackageJsonPath(\n pkgPath: string,\n packageName: string,\n): string | null {\n const candidate = path.join(\n path.dirname(pkgPath),\n \"node_modules\",\n ...packageName.split(\"/\"),\n \"package.json\",\n );\n return fs.existsSync(candidate) ? candidate : null;\n}\n\nfunction findPackageJsonFromEntry(entryPath: string): string | null {\n let dir = fs.statSync(entryPath).isDirectory()\n ? entryPath\n : path.dirname(entryPath);\n for (let i = 0; i < 20; i++) {\n const candidate = path.join(dir, \"package.json\");\n if (fs.existsSync(candidate)) return candidate;\n const parent = path.dirname(dir);\n if (parent === dir) break;\n dir = parent;\n }\n return null;\n}\n\nfunction findPnpmWorkspaceRoot(startDir: string): string | null {\n let dir = path.resolve(startDir);\n for (let i = 0; i < 20; i++) {\n if (fs.existsSync(path.join(dir, \"pnpm-workspace.yaml\"))) return dir;\n const parent = path.dirname(dir);\n if (parent === dir) break;\n dir = parent;\n }\n return null;\n}\n\n/** Escape a string so it can be embedded as a regex literal. */\nfunction escapeRegex(s: string): string {\n return s.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n\n/** Check if a package is installed in the project */\nfunction hasDep(pkg: string, cwd: string): boolean {\n try {\n const pkgJson = JSON.parse(\n fs.readFileSync(path.join(cwd, \"package.json\"), \"utf-8\"),\n );\n return !!(\n pkgJson.dependencies?.[pkg] ||\n pkgJson.devDependencies?.[pkg] ||\n pkgJson.peerDependencies?.[pkg]\n );\n } catch {\n return false;\n }\n}\n\nfunction hasCoreDep(pkg: string, cwd: string): boolean {\n const coreRoot = findCorePackageRoot(cwd);\n if (!coreRoot) return false;\n try {\n const pkgJson = JSON.parse(\n fs.readFileSync(path.join(coreRoot, \"package.json\"), \"utf-8\"),\n );\n return !!(pkgJson.dependencies?.[pkg] || pkgJson.devDependencies?.[pkg]);\n } catch {\n return false;\n }\n}\n\nfunction hasOptimizeDep(pkg: string, cwd: string): boolean {\n return hasDep(pkg, cwd) || hasCoreDep(pkg, cwd);\n}\n\n/**\n * Build the `resolve.dedupe` list dynamically. Reads core's package.json and\n * collects every peerDependency that the consuming app also declares. This\n * ensures Vite resolves them from the app root, not from core's own\n * node_modules — preventing duplicate React context / singleton issues.\n */\nfunction getClientDedupe(cwd: string): string[] {\n // Always dedupe React internals (sub-path exports aren't in peerDeps)\n const always = new Set([\n \"react\",\n \"react-dom\",\n \"react-dom/client\",\n // Framework routers must share one react-router instance so\n // FrameworkContext (Meta/Links/Scripts) matches ServerRouter/HydratedRouter.\n ...(hasDep(\"react-router\", cwd)\n ? [\"react-router\", \"react-router/dom\"]\n : []),\n ]);\n\n // Server-only packages that never run in the browser — no point deduping.\n const serverOnly = new Set([\n \"drizzle-kit\",\n \"node-pty\",\n \"postgres\",\n \"ws\",\n \"typescript\",\n \"vite\",\n \"@vitejs/plugin-react-swc\",\n \"tailwindcss\",\n \"@tailwindcss/vite\",\n ]);\n\n try {\n const corePkgPath = path.resolve(__dirname, \"../../package.json\");\n const corePkg = JSON.parse(fs.readFileSync(corePkgPath, \"utf-8\"));\n\n // Scan both peerDependencies and dependencies. Direct deps like\n // @radix-ui/* use React internally — they must resolve against the\n // app's React, not a second copy inside core's node_modules.\n const coreDeps = new Set([\n ...Object.keys(corePkg.peerDependencies ?? {}),\n ...Object.keys(corePkg.dependencies ?? {}),\n ]);\n\n // Read the consuming app's dependencies\n const appPkg = JSON.parse(\n fs.readFileSync(path.join(cwd, \"package.json\"), \"utf-8\"),\n );\n const appDeps = new Set([\n ...Object.keys(appPkg.dependencies ?? {}),\n ...Object.keys(appPkg.devDependencies ?? {}),\n ]);\n\n for (const dep of coreDeps) {\n if (serverOnly.has(dep)) continue;\n // Dedupe if the app also declares it, OR if it's a React-based\n // UI library (Radix, Tanstack) that must share the app's React.\n if (\n appDeps.has(dep) ||\n dep.startsWith(\"@radix-ui/\") ||\n dep.startsWith(\"@tanstack/\")\n ) {\n always.add(dep);\n }\n }\n } catch {\n // Can't read package.json — fall back to known singletons\n }\n\n return [...always];\n}\n\n/**\n * Locate `packages/core/src` if we're inside the framework monorepo.\n * Shared between `getCoreSourceAliases` (which redirects imports to src/)\n * and `getDefaultOptimizeDeps` (which must NOT prebundle from dist/ when\n * the alias is active — otherwise the prebundle is built from a snapshot\n * of dist/ at startup and never picks up new exports).\n */\nfunction findCorePackageRoot(cwd: string): string | null {\n try {\n const pkg = JSON.parse(\n fs.readFileSync(path.join(cwd, \"package.json\"), \"utf-8\"),\n ) as {\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n };\n const spec =\n pkg.dependencies?.[\"@agent-native/core\"] ??\n pkg.devDependencies?.[\"@agent-native/core\"];\n if (typeof spec === \"string\" && spec.startsWith(\"file:\")) {\n const rooted = fileURLToPath(spec);\n if (fs.existsSync(path.join(rooted, \"src/index.ts\"))) return rooted;\n }\n } catch {\n // package.json missing or unreadable — fall through to path heuristics.\n }\n\n const candidates = [\n path.resolve(cwd, \"../../packages/core\"), // templates/<name>/\n path.resolve(cwd, \"../core\"), // packages/<name>/\n path.resolve(cwd, \"node_modules/@agent-native/core\"),\n ];\n for (const candidate of candidates) {\n try {\n if (!fs.existsSync(candidate)) continue;\n const root = fs.realpathSync(candidate);\n if (fs.existsSync(path.join(root, \"src/index.ts\"))) return root;\n } catch {\n continue;\n }\n }\n return null;\n}\n\nfunction findCoreSrcDir(cwd: string): string | null {\n const root = findCorePackageRoot(cwd);\n return root ? path.join(root, \"src\") : null;\n}\n\n/**\n * Pin react-router imports to the consuming app's install. pnpm keeps a peer\n * copy under `@agent-native/core/node_modules/react-router`; `resolve.dedupe`\n * alone can still leave SSR `Meta`/`Links` on a different FrameworkContext\n * than React Router's dev server router.\n */\nfunction getReactRouterAliases(\n cwd: string,\n): Array<{ find: RegExp; replacement: string }> {\n if (!hasDep(\"react-router\", cwd)) return [];\n try {\n const req = createRequire(path.join(cwd, \"package.json\"));\n return [\n {\n find: /^react-router\\/dom$/,\n replacement: req.resolve(\"react-router/dom\"),\n },\n { find: /^react-router$/, replacement: req.resolve(\"react-router\") },\n ];\n } catch {\n return [];\n }\n}\n\n/**\n * Every `@agent-native/core` subpath that gets a source alias. Must stay in\n * sync with `getCoreSourceAliases`. Used by `getDefaultOptimizeDeps` to skip\n * prebundling in monorepo mode, and by the consumer config to add them to\n * `optimizeDeps.exclude` so Vite always resolves them through the source\n * alias on every request — never from a stale dist/ snapshot.\n */\nconst CORE_CLIENT_SUBPATHS = [\n \"@agent-native/core\",\n \"@agent-native/core/client\",\n \"@agent-native/core/client/chat\",\n \"@agent-native/core/client/collab\",\n \"@agent-native/core/client/composer\",\n \"@agent-native/core/client/conversation\",\n \"@agent-native/core/client/editor\",\n \"@agent-native/core/client/resources\",\n // Dedicated subpath that exports ONLY appBasePath/agentNativePath/appPath.\n // entry.client.tsx imports from here so it never pulls the full client barrel\n // (and its transitive ~650-700 KB gzip chat stack) onto the critical path.\n \"@agent-native/core/client/api-path\",\n \"@agent-native/core/blocks\",\n \"@agent-native/core/blocks/server\",\n \"@agent-native/core/client/extensions\",\n \"@agent-native/core/client/tools\", // legacy alias\n \"@agent-native/core/client/org\",\n \"@agent-native/core/client/db-admin\",\n \"@agent-native/core/client/observability\",\n \"@agent-native/core/client/onboarding\",\n \"@agent-native/core/client/sharing\",\n \"@agent-native/core/client/notifications\",\n \"@agent-native/core/client/progress\",\n \"@agent-native/core/client/transcription/use-live-transcription\",\n];\n\nfunction getDefaultOptimizeDeps(cwd: string): string[] {\n const inMonorepo = findCoreSrcDir(cwd) !== null;\n const entries: Array<{ specifier: string; packageName?: string }> = [\n // In monorepo mode the source alias resolves these to src/ on every\n // import, so prebundling from dist/ would just create a stale snapshot.\n // Skip them entirely — `optimizeDeps.exclude` below makes that explicit.\n ...(inMonorepo\n ? []\n : ([\n { specifier: \"@agent-native/core\" },\n {\n specifier: \"@agent-native/core/client\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/chat\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/collab\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/composer\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/conversation\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/editor\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/resources\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/org\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/extensions\",\n packageName: \"@agent-native/core\",\n },\n {\n // Legacy alias — prior name for @agent-native/core/client/extensions.\n // Keep so deployed templates that haven't been updated still resolve.\n specifier: \"@agent-native/core/client/tools\",\n packageName: \"@agent-native/core\",\n },\n ] as Array<{ specifier: string; packageName?: string }>)),\n { specifier: \"@libsql/client\" },\n { specifier: \"@amplitude/analytics-browser\" },\n { specifier: \"@assistant-ui/react\" },\n { specifier: \"@excalidraw/excalidraw\" },\n { specifier: \"@excalidraw/mermaid-to-excalidraw\" },\n {\n specifier: \"@modelcontextprotocol/ext-apps/app-bridge\",\n packageName: \"@modelcontextprotocol/ext-apps\",\n },\n { specifier: \"@radix-ui/react-accordion\" },\n { specifier: \"@radix-ui/react-alert-dialog\" },\n { specifier: \"@radix-ui/react-aspect-ratio\" },\n { specifier: \"@radix-ui/react-avatar\" },\n { specifier: \"@radix-ui/react-checkbox\" },\n { specifier: \"@radix-ui/react-collapsible\" },\n { specifier: \"@radix-ui/react-context-menu\" },\n { specifier: \"@radix-ui/react-dialog\" },\n { specifier: \"@radix-ui/react-dropdown-menu\" },\n { specifier: \"@radix-ui/react-hover-card\" },\n { specifier: \"@radix-ui/react-label\" },\n { specifier: \"@radix-ui/react-menubar\" },\n { specifier: \"@radix-ui/react-navigation-menu\" },\n { specifier: \"@radix-ui/react-popover\" },\n { specifier: \"@radix-ui/react-progress\" },\n { specifier: \"@radix-ui/react-radio-group\" },\n { specifier: \"@radix-ui/react-scroll-area\" },\n { specifier: \"@radix-ui/react-select\" },\n { specifier: \"@radix-ui/react-separator\" },\n { specifier: \"@radix-ui/react-slider\" },\n { specifier: \"@radix-ui/react-slot\" },\n { specifier: \"@radix-ui/react-switch\" },\n { specifier: \"@radix-ui/react-tabs\" },\n { specifier: \"@radix-ui/react-toast\" },\n { specifier: \"@radix-ui/react-toggle\" },\n { specifier: \"@radix-ui/react-toggle-group\" },\n { specifier: \"@radix-ui/react-tooltip\" },\n { specifier: \"@tanstack/react-query\" },\n { specifier: \"@tabler/icons-react\" },\n { specifier: \"@tiptap/core\" },\n { specifier: \"@tiptap/extension-code-block-lowlight\" },\n { specifier: \"@tiptap/extension-collaboration\" },\n { specifier: \"@tiptap/extension-collaboration-caret\" },\n { specifier: \"@tiptap/extension-image\" },\n { specifier: \"@tiptap/extension-link\" },\n { specifier: \"@tiptap/extension-placeholder\" },\n { specifier: \"@tiptap/extension-table\" },\n { specifier: \"@tiptap/extension-table-cell\" },\n { specifier: \"@tiptap/extension-table-header\" },\n { specifier: \"@tiptap/extension-table-row\" },\n { specifier: \"@tiptap/extension-task-item\" },\n { specifier: \"@tiptap/extension-task-list\" },\n { specifier: \"@tiptap/pm/state\", packageName: \"@tiptap/pm\" },\n { specifier: \"@tiptap/react\" },\n { specifier: \"@tiptap/starter-kit\" },\n { specifier: \"@xterm/addon-fit\" },\n { specifier: \"@xterm/addon-web-links\" },\n { specifier: \"@xterm/xterm\" },\n { specifier: \"class-variance-authority\" },\n { specifier: \"clsx\" },\n { specifier: \"cmdk\" },\n { specifier: \"date-fns\" },\n { specifier: \"drizzle-orm\" },\n { specifier: \"drizzle-orm/pg-core\", packageName: \"drizzle-orm\" },\n { specifier: \"drizzle-orm/sqlite-core\", packageName: \"drizzle-orm\" },\n { specifier: \"embla-carousel-react\" },\n { specifier: \"h3\" },\n {\n specifier: \"highlight.js/lib/languages/bash\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/css\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/javascript\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/json\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/markdown\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/python\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/sql\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/typescript\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/xml\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/yaml\",\n packageName: \"highlight.js\",\n },\n { specifier: \"input-otp\" },\n { specifier: \"lowlight\" },\n { specifier: \"mermaid\" },\n { specifier: \"nanoid\" },\n { specifier: \"next-themes\" },\n { specifier: \"react-hook-form\" },\n { specifier: \"react-day-picker\" },\n { specifier: \"react-markdown\" },\n { specifier: \"react-resizable-panels\" },\n { specifier: \"recharts\" },\n ...(hasDep(\"react-router\", cwd)\n ? [\n { specifier: \"react-router\" },\n { specifier: \"react-router/dom\", packageName: \"react-router\" },\n ]\n : []),\n { specifier: \"remark-gfm\" },\n { specifier: \"roughjs\" },\n { specifier: \"shiki/core\", packageName: \"shiki\" },\n { specifier: \"shiki/engine/javascript\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/bash.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/css.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/html.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/javascript.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/json.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/jsx.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/markdown.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/python.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/shellscript.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/sql.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/tsx.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/typescript.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/yaml.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/themes/github-dark-default.mjs\", packageName: \"shiki\" },\n {\n specifier: \"shiki/themes/github-light-default.mjs\",\n packageName: \"shiki\",\n },\n { specifier: \"sonner\" },\n { specifier: \"tailwind-merge\" },\n { specifier: \"tiptap-markdown\" },\n { specifier: \"vaul\" },\n { specifier: \"y-protocols/awareness\", packageName: \"y-protocols\" },\n { specifier: \"yjs\" },\n { specifier: \"zod\" },\n ];\n\n return entries\n .filter(({ specifier, packageName }) =>\n hasOptimizeDep(packageName ?? specifier, cwd),\n )\n .map(({ specifier }) => specifier);\n}\n\n/**\n * In monorepo dev mode, resolve @agent-native/core imports to source (src/)\n * instead of dist/ so that Vite HMR picks up changes without rebuilding.\n *\n * Returns Vite array-style aliases with exact matching (regex anchored with $)\n * to prevent `@agent-native/core` from prefix-matching and swallowing\n * sub-path imports like `@agent-native/core/client`.\n */\nfunction getCoreSourceAliases(\n cwd: string,\n): Array<{ find: RegExp; replacement: string }> {\n const coreSrc = findCoreSrcDir(cwd);\n if (!coreSrc) return []; // Not in monorepo — use dist as normal\n\n // Map every @agent-native/core/* export to its src/ equivalent.\n // Each entry uses a regex with $ anchor for exact matching.\n const entries: Record<string, string> = {\n \"@agent-native/core\": path.join(coreSrc, \"index.browser.ts\"),\n \"@agent-native/core/server\": path.join(coreSrc, \"server/index.ts\"),\n \"@agent-native/core/server/edge\": path.join(coreSrc, \"server/edge.ts\"),\n \"@agent-native/core/client\": path.join(coreSrc, \"client/index.ts\"),\n \"@agent-native/core/client/chat\": path.join(\n coreSrc,\n \"client/chat/index.ts\",\n ),\n \"@agent-native/core/client/collab\": path.join(\n coreSrc,\n \"client/collab/index.ts\",\n ),\n \"@agent-native/core/client/composer\": path.join(\n coreSrc,\n \"client/composer/index.ts\",\n ),\n \"@agent-native/core/client/conversation\": path.join(\n coreSrc,\n \"client/conversation/index.ts\",\n ),\n \"@agent-native/core/client/editor\": path.join(\n coreSrc,\n \"client/editor/index.ts\",\n ),\n \"@agent-native/core/client/resources\": path.join(\n coreSrc,\n \"client/resources/index.ts\",\n ),\n // Dedicated thin subpath — only the URL helpers, no chat stack in the closure.\n \"@agent-native/core/client/api-path\": path.join(\n coreSrc,\n \"client/api-path.ts\",\n ),\n \"@agent-native/core/blocks\": path.join(coreSrc, \"client/blocks/index.ts\"),\n \"@agent-native/core/blocks/server\": path.join(\n coreSrc,\n \"client/blocks/server.ts\",\n ),\n \"@agent-native/core/client/extensions\": path.join(\n coreSrc,\n \"client/extensions/index.ts\",\n ),\n // Legacy alias — see exports map note above.\n \"@agent-native/core/client/tools\": path.join(\n coreSrc,\n \"client/extensions/index.ts\",\n ),\n \"@agent-native/core/client/org\": path.join(coreSrc, \"client/org/index.ts\"),\n \"@agent-native/core/client/db-admin\": path.join(\n coreSrc,\n \"client/db-admin/index.ts\",\n ),\n \"@agent-native/core/client/observability\": path.join(\n coreSrc,\n \"client/observability/index.ts\",\n ),\n \"@agent-native/core/client/onboarding\": path.join(\n coreSrc,\n \"client/onboarding/index.ts\",\n ),\n \"@agent-native/core/client/sharing\": path.join(\n coreSrc,\n \"client/sharing/index.ts\",\n ),\n \"@agent-native/core/client/notifications\": path.join(\n coreSrc,\n \"client/notifications/index.ts\",\n ),\n \"@agent-native/core/client/progress\": path.join(\n coreSrc,\n \"client/progress/index.ts\",\n ),\n \"@agent-native/core/client/transcription/use-live-transcription\": path.join(\n coreSrc,\n \"client/transcription/use-live-transcription.ts\",\n ),\n \"@agent-native/core/db\": path.join(coreSrc, \"db/index.ts\"),\n \"@agent-native/core/db/schema\": path.join(coreSrc, \"db/schema.ts\"),\n \"@agent-native/core/shared\": path.join(coreSrc, \"shared/index.ts\"),\n \"@agent-native/core/scripts\": path.join(coreSrc, \"scripts/index.ts\"),\n \"@agent-native/core/application-state\": path.join(\n coreSrc,\n \"application-state/index.ts\",\n ),\n \"@agent-native/core/settings\": path.join(coreSrc, \"settings/index.ts\"),\n \"@agent-native/core/credentials\": path.join(\n coreSrc,\n \"credentials/index.ts\",\n ),\n \"@agent-native/core/resources\": path.join(coreSrc, \"resources/index.ts\"),\n \"@agent-native/core/oauth-tokens\": path.join(\n coreSrc,\n \"oauth-tokens/index.ts\",\n ),\n \"@agent-native/core/workspace-connections\": path.join(\n coreSrc,\n \"workspace-connections/index.ts\",\n ),\n \"@agent-native/core/provider-api\": path.join(\n coreSrc,\n \"provider-api/index.ts\",\n ),\n \"@agent-native/core/a2a\": path.join(coreSrc, \"a2a/index.ts\"),\n \"@agent-native/core/router\": path.join(coreSrc, \"router/index.ts\"),\n \"@agent-native/core/terminal\": path.join(\n coreSrc,\n \"client/terminal/index.ts\",\n ),\n \"@agent-native/core/terminal/server\": path.join(\n coreSrc,\n \"terminal/index.ts\",\n ),\n \"@agent-native/core/adapters/cli\": path.join(\n coreSrc,\n \"adapters/cli/index.ts\",\n ),\n \"@agent-native/core/usage\": path.join(coreSrc, \"usage/store.ts\"),\n \"@agent-native/core/brand-kit\": path.join(coreSrc, \"brand-kit/index.ts\"),\n \"@agent-native/core/data-widgets\": path.join(\n coreSrc,\n \"data-widgets/index.ts\",\n ),\n \"@agent-native/core/server/design-token-utils\": path.join(\n coreSrc,\n \"server/design-token-utils.ts\",\n ),\n \"@agent-native/core/server/entry-server\": path.join(\n coreSrc,\n \"server/entry-server.tsx\",\n ),\n // Shared stylesheet — alias to src so CSS edits (composer/theme rules)\n // take effect live in dev instead of silently loading the stale built\n // copy at dist/styles/. From src/styles/ the `@source \"../client/**\"`\n // directive resolves to the real .tsx source, which is what dev should\n // scan for Tailwind classes anyway.\n \"@agent-native/core/styles/agent-native.css\": path.join(\n coreSrc,\n \"styles/agent-native.css\",\n ),\n };\n\n // Escape special regex chars in the key and anchor with $\n return Object.entries(entries).map(([find, replacement]) => ({\n find: new RegExp(`^${find.replace(/[/]/g, \"\\\\/\")}$`),\n replacement,\n }));\n}\n\nexport interface NitroOptions {\n /** Nitro deployment preset (e.g. \"node\", \"vercel\", \"netlify\", \"cloudflare_pages\"). Default: \"node\" */\n preset?: string;\n /** Source directory for server files. Default: \"./server\" */\n srcDir?: string;\n /** Routes directory name (relative to srcDir). Default: \"routes\" */\n routesDir?: string;\n /** Any additional Nitro config overrides */\n [key: string]: unknown;\n}\n\nexport interface ClientConfigOptions {\n /** Port for dev server. Default: 8080 */\n port?: number;\n /** Additional hostnames allowed to access the dev server. */\n allowedHosts?: NonNullable<NonNullable<UserConfig[\"server\"]>[\"allowedHosts\"]>;\n /** Vite log level. Workspace child apps default to \"warn\" so only the gateway URL is advertised. */\n logLevel?: UserConfig[\"logLevel\"];\n /** Additional Vite plugins */\n plugins?: any[];\n /** Nitro plugin options (preset, srcDir, etc) */\n nitro?: NitroOptions;\n /** Override resolve aliases */\n aliases?: Record<string, string>;\n /** Override build.outDir. Default: \"dist/spa\" */\n outDir?: string;\n /** Additional fs.allow paths */\n fsAllow?: string[];\n /** Additional fs.deny patterns */\n fsDeny?: string[];\n /** Additional Vite optimizeDeps configuration */\n optimizeDeps?: NonNullable<UserConfig[\"optimizeDeps\"]>;\n /** Additional Vite define constants. */\n define?: UserConfig[\"define\"];\n /**\n * Framework route warmup behavior mounted by AgentSidebar.\n *\n * React Router's native prefetch warms both `.data` and JS, but its `.data`\n * request uses browser link prefetch. Chrome sends `Sec-Purpose: prefetch`\n * on those requests, which some production CDNs reject for dynamic `.data`\n * URLs before our SWR cache headers can help. Agent-Native therefore uses\n * ordinary fetches for `.data` and `modulepreload` for route JS by default.\n */\n routeWarmup?: AgentNativeRouteWarmupConfigInput;\n /**\n * Whether to auto-inject the Tailwind v4 Vite plugin (`@tailwindcss/vite`).\n * Defaults to true — set to `false` if a template wants to manage Tailwind\n * itself (e.g. the legacy v3 PostCSS pipeline).\n */\n tailwind?: boolean;\n /**\n * Package names to stub in the SSR bundle with an empty proxy object.\n *\n * Use this for dependencies that only run in the browser (canvas / diagram\n * libraries, editors, WebGL) but would otherwise get pulled into the\n * server bundle via SSR's noExternal policy — pushing the CF Pages\n * Functions bundle over the 25 MiB limit.\n *\n * Only add packages that are provably never called during SSR. If the\n * server imports one, it will receive a Proxy that throws on any real\n * use (which is better than bundling a 10 MiB dep the worker never calls).\n *\n * @example\n * ssrStubs: [\"mermaid\", \"@excalidraw/excalidraw\"]\n */\n ssrStubs?: string[];\n /**\n * @deprecated Pass `reactRouter()` directly in the `plugins` array instead.\n * Previously used to auto-load the React Router Vite plugin via require(),\n * but this fails in ESM contexts. Templates should now do:\n * ```ts\n * import { reactRouter } from \"@react-router/dev/vite\";\n * defineConfig({ plugins: [reactRouter()] })\n * ```\n */\n reactRouter?: boolean | Record<string, unknown>;\n}\n\nexport interface AgentNativeVitePluginOptions extends Omit<\n ClientConfigOptions,\n \"plugins\" | \"reactRouter\"\n> {\n /**\n * Include the legacy React SWC transform for non-React Router SPA apps.\n *\n * React Router framework-mode apps should pass `reactRouter()` as a normal\n * Vite plugin and leave this off.\n */\n legacySpa?: boolean;\n}\n\n/**\n * Vite plugin that recovers the page when Vite's dependency optimizer\n * invalidates modules mid-load (the \"504 Outdated Optimize Dep\" error).\n *\n * Without this, the page silently fails: <script type=\"module\"> tags 504,\n * React never mounts, and the user is stuck on a blank screen until they\n * manually refresh. We catch the failure modes and auto-reload, with a\n * visible overlay so the user knows what's happening, and a loop guard\n * so we never thrash forever.\n *\n * CRITICAL: this must be a SYNCHRONOUS (non-module) script injected at\n * `head-prepend`. Module scripts are deferred — the browser starts fetching\n * all module scripts in parallel during HTML parsing, so a module listener\n * registers AFTER sibling modules have already started loading and\n * possibly errored out. A regular <script> blocks parsing and runs\n * synchronously, so the listener is registered before ANY module fetch\n * begins.\n *\n * Catches three failure modes (all before React needs to mount):\n * 1. <script type=\"module\"> / <link> 504 — window \"error\" event, capture phase\n * 2. Dynamic import 504 — \"unhandledrejection\" with \"dynamically imported module\"\n * 3. Child module 504 — resource timing when browser exposes the HTTP status\n */\nfunction autoReloadOnOptimizeDep(): Plugin {\n return {\n name: \"agent-native-auto-reload-optimize-dep\",\n apply: \"serve\",\n transformIndexHtml() {\n return [\n {\n tag: \"script\",\n // NOTE: no `type: \"module\"` — this must be a synchronous script.\n children: getViteDevRecoveryScript(),\n injectTo: \"head-prepend\",\n },\n ];\n },\n };\n}\n\n/**\n * Vite handles outdated optimized-dep requests inside its own transform\n * middleware and ends the HTTP response with `504 Outdated Optimize Dep`.\n * Browser module loaders do not consistently surface those child-module\n * failures to userland JavaScript, so also nudge the Vite HMR client from the\n * server side. This turns the confusing blank-screen state into the same\n * full-page reload Vite would have requested once optimization settled.\n */\nfunction fullReloadOnOptimizeDep504(): Plugin {\n return {\n name: \"agent-native-full-reload-optimize-dep-504\",\n apply: \"serve\",\n configureServer(server) {\n let lastReloadAt = 0;\n server.middlewares.use((req, res, next) => {\n const originalEnd = res.end;\n (res as unknown as { end: (...args: unknown[]) => unknown }).end = (\n ...endArgs: unknown[]\n ) => {\n const statusMessage = String(res.statusMessage || \"\");\n if (\n res.statusCode === 504 &&\n statusMessage === \"Outdated Optimize Dep\"\n ) {\n const now = Date.now();\n if (now - lastReloadAt > 500) {\n lastReloadAt = now;\n server.ws.send({ type: \"full-reload\" });\n server.config.logger.info(\n `[agent-native] Vite optimized deps changed while loading ${\n req.url ?? \"a module\"\n }; reloading the page.`,\n { timestamp: true },\n );\n }\n }\n return (originalEnd as (...args: unknown[]) => unknown).apply(\n res,\n endArgs,\n );\n };\n next();\n });\n },\n };\n}\n\n/**\n * Vite plugin that prevents the built-in base middleware from redirecting\n * \"/\" → \"/app/\" (or whatever the base is). When agent-native apps run with\n * --base /app/ in single-port mode, Vite's baseMiddleware sends a 302 from\n * \"/\" to the base path. This breaks Electron webview and iframe embeds\n * that load the app at the root. Instead, we rewrite \"/\" to the base path\n * internally so the app serves without a visible redirect.\n */\nfunction baseRedirectGuard(): Plugin {\n return {\n name: \"agent-native-base-redirect-guard\",\n apply: \"serve\",\n configureServer(server) {\n // Return a function so the middleware is added AFTER Vite's internal\n // middleware is built — but we insert BEFORE by using the pre-hook\n // approach: configureServer hooks that return nothing run before\n // internal middleware.\n server.middlewares.use((req, res, next) => {\n const base = server.config.base;\n if (base && base !== \"/\" && req.url?.startsWith(base)) {\n const relativeUrl = req.url.slice(base.length - 1);\n try {\n const url = new URL(relativeUrl, \"http://agent-native.local\");\n const publicDir = server.config.publicDir;\n if (typeof publicDir !== \"string\") {\n return next();\n }\n const publicPath = path.normalize(\n path.join(publicDir, decodeURIComponent(url.pathname)),\n );\n if (\n publicPath.startsWith(publicDir + path.sep) &&\n fs.existsSync(publicPath) &&\n fs.statSync(publicPath).isFile()\n ) {\n const contentType = contentTypeForPublicFile(publicPath);\n if (contentType) res.setHeader(\"content-type\", contentType);\n if (req.method === \"HEAD\") {\n res.statusCode = 200;\n res.end();\n return;\n }\n fs.createReadStream(publicPath).pipe(res);\n return;\n }\n } catch {\n // Fall through to Vite/Nitro. Malformed URLs should keep their\n // original path so the normal dev-server error handling applies.\n }\n }\n if (serveExternalEmbedBrowserManifest(server, req, res)) {\n return;\n }\n if (serveMountedEmbedRuntimeModule(server, req, res, base)) {\n return;\n }\n req.url = stripMountedDevApiPath(req.url, base);\n if (\n req.method === \"HEAD\" &&\n req.url &&\n !isFrameworkDevPath(req.url, base)\n ) {\n req.method = \"GET\";\n }\n if (\n base &&\n base !== \"/\" &&\n (req.url === \"/\" || req.url === \"/index.html\")\n ) {\n // Rewrite to the base path so Vite serves the app directly\n req.url = base;\n }\n next();\n });\n },\n };\n}\n\nconst VITE_RUNTIME_PATH_PREFIXES = [\n \"/@fs/\",\n \"/@id/\",\n \"/@vite/\",\n \"/app/\",\n \"/node_modules/\",\n \"/packages/\",\n \"/src/\",\n];\n\nconst EMBED_DEV_STATIC_ASSET_PATH_PREFIXES = [\n ...VITE_RUNTIME_PATH_PREFIXES,\n \"/assets/\",\n \"/library-presets/\",\n];\n\nconst EMBED_DEV_STATIC_ASSET_PATHS = new Set([\n \"/favicon.ico\",\n \"/favicon.svg\",\n \"/manifest.json\",\n]);\n\nfunction mountedPathCandidates(\n reqUrl: string | undefined,\n base: string | undefined,\n): string[] {\n if (!reqUrl) return [];\n let pathname: string;\n try {\n pathname = new URL(reqUrl, \"http://agent-native.local\").pathname;\n } catch {\n return [];\n }\n if (base && base !== \"/\") {\n const normalizedBase = base.endsWith(\"/\") ? base : `${base}/`;\n if (pathname.startsWith(normalizedBase)) {\n return [pathname.slice(normalizedBase.length - 1) || \"/\"];\n }\n }\n return [pathname];\n}\n\nfunction isEmbedDevStaticAssetRequest(\n reqUrl: string | undefined,\n base: string | undefined,\n): boolean {\n return mountedPathCandidates(reqUrl, base).some((pathname) => {\n if (EMBED_DEV_STATIC_ASSET_PATHS.has(pathname)) return true;\n if (/^\\/icon-[^/]+\\.svg$/i.test(pathname)) return true;\n if (/^\\/agent-native-[^/]+\\.svg$/i.test(pathname)) return true;\n return EMBED_DEV_STATIC_ASSET_PATH_PREFIXES.some((prefix) =>\n pathname.startsWith(prefix),\n );\n });\n}\n\nfunction cookieValue(req: IncomingMessage, name: string): string | undefined {\n const header = req.headers.cookie;\n if (typeof header !== \"string\" || !header) return undefined;\n for (const part of header.split(\";\")) {\n const index = part.indexOf(\"=\");\n if (index < 0) continue;\n const key = part.slice(0, index).trim();\n if (key !== name) continue;\n try {\n return decodeURIComponent(part.slice(index + 1).trim());\n } catch {\n return part.slice(index + 1).trim();\n }\n }\n return undefined;\n}\n\nfunction hasValidEmbedRuntimeToken(req: IncomingMessage): boolean {\n try {\n const url = new URL(req.url ?? \"/\", \"http://agent-native.local\");\n const queryToken = url.searchParams.get(EMBED_TOKEN_QUERY_PARAM);\n const cookieToken = cookieValue(req, EMBED_SESSION_COOKIE);\n return [queryToken, cookieToken].some(\n (token) => verifyEmbedSessionToken(token).ok,\n );\n } catch {\n return false;\n }\n}\n\nfunction mountedEmbedRuntimeModuleUrl(\n reqUrl: string | undefined,\n base: string | undefined,\n): string | null {\n if (!reqUrl || !base || base === \"/\") return null;\n const normalizedBase = base.endsWith(\"/\") ? base : `${base}/`;\n if (!reqUrl.startsWith(normalizedBase)) return null;\n\n const runtimeUrl = reqUrl.slice(normalizedBase.length - 1) || \"/\";\n let url: URL;\n try {\n url = new URL(runtimeUrl, \"http://agent-native.local\");\n } catch {\n return null;\n }\n if (\n !VITE_RUNTIME_PATH_PREFIXES.some((prefix) =>\n url.pathname.startsWith(prefix),\n )\n ) {\n return null;\n }\n url.searchParams.delete(EMBED_TOKEN_QUERY_PARAM);\n url.searchParams.delete(MCP_APP_CHAT_BRIDGE_QUERY_PARAM);\n return `${url.pathname}${url.search}${url.hash}`;\n}\n\nfunction virtualModuleIdFromRuntimeUrl(runtimeUrl: string): string | null {\n try {\n const pathname = new URL(runtimeUrl, \"http://agent-native.local\").pathname;\n const prefix = \"/@id/__x00__\";\n if (!pathname.startsWith(prefix)) return null;\n return `\\0${decodeURIComponent(pathname.slice(prefix.length))}`;\n } catch {\n return null;\n }\n}\n\nasync function loadMountedEmbedRuntimeModule(\n server: any,\n runtimeUrl: string,\n): Promise<string | null> {\n const virtualId = virtualModuleIdFromRuntimeUrl(runtimeUrl);\n if (virtualId) {\n const loaded = await server.pluginContainer?.load?.(virtualId);\n if (typeof loaded === \"string\") return loaded;\n if (loaded && typeof loaded.code === \"string\") return loaded.code;\n }\n const result = await server.transformRequest(runtimeUrl);\n return result?.code ?? null;\n}\n\nfunction serveMountedEmbedRuntimeModule(\n server: any,\n req: IncomingMessage,\n res: ServerResponse,\n base: string | undefined,\n): boolean {\n if (req.method !== \"GET\" && req.method !== \"HEAD\") return false;\n if (!hasValidEmbedRuntimeToken(req)) return false;\n const runtimeUrl = mountedEmbedRuntimeModuleUrl(req.url, base);\n if (!runtimeUrl) return false;\n\n void loadMountedEmbedRuntimeModule(server, runtimeUrl)\n .then((code: string | null) => {\n if (!code) {\n if (!res.headersSent) {\n res.statusCode = 404;\n res.end();\n }\n return;\n }\n res.statusCode = 200;\n res.setHeader(\"content-type\", \"text/javascript\");\n if (req.method === \"HEAD\") {\n res.end();\n return;\n }\n res.end(code);\n })\n .catch((err: unknown) => {\n if (res.headersSent) return;\n res.statusCode = 500;\n res.setHeader(\"content-type\", \"text/plain\");\n res.end(err instanceof Error ? err.message : String(err));\n });\n return true;\n}\n\nfunction publicOriginFromDevRequest(req: IncomingMessage): string | null {\n const forwardedHost = String(req.headers[\"x-forwarded-host\"] ?? \"\")\n .split(\",\")[0]\n ?.trim();\n const host =\n forwardedHost ||\n String(req.headers.host ?? \"\")\n .split(\",\")[0]\n ?.trim();\n if (!host) return null;\n const forwardedProto = String(req.headers[\"x-forwarded-proto\"] ?? \"\")\n .split(\",\")[0]\n ?.trim();\n const proto =\n forwardedProto ||\n (/^(localhost|127\\.0\\.0\\.1|\\[::1\\])(?::\\d+)?$/i.test(host)\n ? \"http\"\n : \"https\");\n return `${proto}://${host}`;\n}\n\nfunction isReactRouterBrowserManifestUrl(reqUrl: string | undefined): boolean {\n if (!reqUrl) return false;\n try {\n const url = new URL(reqUrl, \"http://agent-native.local\");\n return (\n virtualModuleIdFromRuntimeUrl(url.pathname) ===\n \"\\0virtual:react-router/browser-manifest\"\n );\n } catch {\n return false;\n }\n}\n\nfunction rewriteRootRelativeManifestUrls(\n code: string,\n publicOrigin: string,\n): string {\n return code.replace(/'\\/(?!\\/)([^']*)'/g, (match, rest: string) => {\n try {\n return JSON.stringify(new URL(`/${rest}`, publicOrigin).toString());\n } catch {\n return match;\n }\n });\n}\n\nfunction serveExternalEmbedBrowserManifest(\n server: any,\n req: IncomingMessage,\n res: ServerResponse,\n): boolean {\n if (req.method !== \"GET\" && req.method !== \"HEAD\") return false;\n if (!isMcpEmbedCorsOrigin(String(req.headers.origin ?? \"\"))) return false;\n if (!isReactRouterBrowserManifestUrl(req.url)) return false;\n const publicOrigin = publicOriginFromDevRequest(req);\n if (!publicOrigin) return false;\n const runtimeUrl = mountedEmbedRuntimeModuleUrl(req.url, \"/\") ?? req.url;\n if (!runtimeUrl) return false;\n\n void loadMountedEmbedRuntimeModule(server, runtimeUrl)\n .then((code: string | null) => {\n if (!code) {\n if (!res.headersSent) {\n res.statusCode = 404;\n res.end();\n }\n return;\n }\n res.statusCode = 200;\n res.setHeader(\"content-type\", \"text/javascript\");\n if (req.method === \"HEAD\") {\n res.end();\n return;\n }\n res.end(rewriteRootRelativeManifestUrls(code, publicOrigin));\n })\n .catch((err: unknown) => {\n if (res.headersSent) return;\n res.statusCode = 500;\n res.setHeader(\"content-type\", \"text/plain\");\n res.end(err instanceof Error ? err.message : String(err));\n });\n return true;\n}\n\nfunction embedDevFrameHeaders(): Plugin {\n return {\n name: \"agent-native-embed-dev-frame-headers\",\n apply: \"serve\",\n configureServer(server) {\n server.middlewares.use((req, res, next) => {\n const origin = String(req.headers.origin ?? \"\");\n if (isEmbedDevStaticAssetRequest(req.url, server.config?.base)) {\n for (const [name, value] of Object.entries(\n MCP_EMBED_STATIC_ASSET_HEADERS,\n )) {\n res.setHeader(name, value);\n }\n }\n if (isMcpEmbedCorsOrigin(origin)) {\n res.setHeader(\"Access-Control-Allow-Origin\", origin);\n res.setHeader(\"Vary\", \"Origin\");\n // The desktop app's dev origin (http://localhost:1420) also matches\n // here, and it logs in with `credentials: \"include\"`. A credentialed\n // request needs this header or the browser discards the response.\n // The OPTIONS short-circuit below means we can't rely on the real\n // auth handler to set it, so set it here too (production already does\n // the same).\n if (shouldAllowMcpEmbedCredentials(origin)) {\n res.setHeader(\"Access-Control-Allow-Credentials\", \"true\");\n }\n res.setHeader(\n \"Access-Control-Allow-Methods\",\n \"GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS\",\n );\n res.setHeader(\n \"Access-Control-Allow-Headers\",\n MCP_EMBED_CORS_ALLOW_HEADERS,\n );\n for (const [name, value] of Object.entries(\n MCP_EMBED_STATIC_ASSET_HEADERS,\n )) {\n if (name === \"Access-Control-Allow-Origin\") continue;\n res.setHeader(name, value);\n }\n if (req.method === \"OPTIONS\") {\n res.statusCode = 204;\n res.end();\n return;\n }\n }\n\n const cookieHeader = String(req.headers.cookie ?? \"\");\n let hasEmbedMarker = /\\ban_embed_session=/.test(cookieHeader);\n try {\n const url = new URL(req.url ?? \"/\", \"http://agent-native.local\");\n hasEmbedMarker =\n hasEmbedMarker || url.searchParams.has(\"__an_embed_token\");\n } catch {\n // Malformed URLs should continue through Vite's normal handling.\n }\n if (hasEmbedMarker) {\n res.setHeader(\"Cross-Origin-Embedder-Policy\", \"require-corp\");\n res.setHeader(\"Cross-Origin-Opener-Policy\", \"same-origin\");\n res.setHeader(\"Cross-Origin-Resource-Policy\", \"cross-origin\");\n res.setHeader(\"Referrer-Policy\", \"no-referrer\");\n }\n next();\n });\n },\n };\n}\n\nfunction contentTypeForPublicFile(filePath: string): string | null {\n switch (path.extname(filePath).toLowerCase()) {\n case \".css\":\n return \"text/css\";\n case \".html\":\n return \"text/html\";\n case \".ico\":\n return \"image/x-icon\";\n case \".json\":\n case \".webmanifest\":\n return \"application/json\";\n case \".js\":\n case \".mjs\":\n return \"text/javascript\";\n case \".png\":\n return \"image/png\";\n case \".svg\":\n return \"image/svg+xml\";\n case \".txt\":\n return \"text/plain\";\n case \".xml\":\n return \"application/xml\";\n default:\n return null;\n }\n}\n\nfunction devPathname(reqUrl: string): string {\n return new URL(reqUrl, \"http://agent-native.local\").pathname;\n}\n\nfunction isApiDevPath(reqUrl: string): boolean {\n const pathname = devPathname(reqUrl);\n return pathname === \"/api\" || pathname.startsWith(\"/api/\");\n}\n\nexport function stripMountedDevApiPath(\n reqUrl: string | undefined,\n base: string | undefined,\n): string | undefined {\n if (!reqUrl || !base || base === \"/\") return reqUrl;\n const normalizedBase = base.endsWith(\"/\") ? base : `${base}/`;\n if (!reqUrl.startsWith(normalizedBase)) return reqUrl;\n const stripped = reqUrl.slice(normalizedBase.length - 1) || \"/\";\n return isApiDevPath(stripped) ? stripped : reqUrl;\n}\n\nexport function isFrameworkDevPath(\n reqUrl: string,\n base: string | undefined,\n): boolean {\n const pathname = devPathname(reqUrl);\n if (pathname === \"/_agent-native\" || pathname.startsWith(\"/_agent-native/\")) {\n return true;\n }\n if (!base || base === \"/\") return false;\n const normalizedBase = base.endsWith(\"/\") ? base.slice(0, -1) : base;\n return (\n pathname === `${normalizedBase}/_agent-native` ||\n pathname.startsWith(`${normalizedBase}/_agent-native/`)\n );\n}\n\n/**\n * Work around a Rolldown bug where Nitro passes service entries as objects\n * ({index: \"path\"}) but Rolldown expects strings. This plugin normalizes\n * rollupOptions.input entries in the SSR environment.\n */\nfunction rolldownInputFix(): Plugin {\n return {\n name: \"agent-native-rolldown-input-fix\",\n configEnvironment(_name, config) {\n const input = config.build?.rollupOptions?.input;\n if (!Array.isArray(input)) return;\n // Flatten any object entries to just their string values\n const fixed = input.map((entry: any) => {\n if (typeof entry === \"string\") return entry;\n if (typeof entry === \"object\" && entry !== null) {\n const values = Object.values(entry);\n return values[0] as string;\n }\n return entry;\n });\n config.build!.rollupOptions!.input = fixed;\n },\n };\n}\n\n/**\n * Replace caller-specified packages with an empty proxy stub during SSR\n * builds. For apps whose heavy browser-only deps would otherwise bloat the\n * edge worker past CF Pages' 25 MiB Functions limit.\n *\n * The template lists the packages in its `defineConfig({ ssrStubs })` call —\n * the framework never hardcodes package names.\n */\nfunction ssrStubPlugin(packages: string[]): Plugin | null {\n if (!packages.length) return null;\n const stubbed = new Set(packages);\n const STUB_ID = \"\\0agent-native-ssr-stub\";\n const namedExports = [\n \"ActionBarPrimitive\",\n \"AllSelection\",\n \"Array\",\n \"AssistantRuntimeProvider\",\n \"Awareness\",\n \"BranchPickerPrimitive\",\n \"BubbleMenu\",\n \"CodeBlockLowlight\",\n \"Collaboration\",\n \"CollaborationCaret\",\n \"ComposerPrimitive\",\n \"CompositeAttachmentAdapter\",\n \"DOMParser\",\n \"Decoration\",\n \"DecorationSet\",\n \"Editor\",\n \"EditorContent\",\n \"Extension\",\n \"FitAddon\",\n \"Fragment\",\n \"Image\",\n \"Link\",\n \"Map\",\n \"Markdown\",\n \"Mark\",\n \"MessagePrimitive\",\n \"Node\",\n \"NodeSelection\",\n \"NodeViewContent\",\n \"NodeViewWrapper\",\n \"Placeholder\",\n \"Plugin\",\n \"PluginKey\",\n \"ReactNodeViewRenderer\",\n \"Selection\",\n \"SimpleImageAttachmentAdapter\",\n \"SimpleTextAttachmentAdapter\",\n \"StarterKit\",\n \"Table\",\n \"TableCell\",\n \"TableHeader\",\n \"TableRow\",\n \"TaskItem\",\n \"TaskList\",\n \"Terminal\",\n \"TextSelection\",\n \"ThreadPrimitive\",\n \"WebLinksAddon\",\n \"captureException\",\n \"common\",\n \"createLowlight\",\n \"defaultUrlTransform\",\n \"extensions\",\n \"findTable\",\n \"format\",\n \"Doc\",\n \"getHTMLFromFragment\",\n \"getIsolationScope\",\n \"init\",\n \"isChangeOrigin\",\n \"mergeAttributes\",\n \"renderToString\",\n \"applyUpdate\",\n \"encodeStateVector\",\n \"encodeStateAsUpdate\",\n \"mergeUpdates\",\n \"useAui\",\n \"useComposer\",\n \"useComposerRuntime\",\n \"useCurrentEditor\",\n \"useEditor\",\n \"useLocalRuntime\",\n \"useMessagePartText\",\n \"useMessageRuntime\",\n \"useThread\",\n \"useThreadRuntime\",\n \"withScope\",\n \"XmlFragment\",\n \"XmlText\",\n ];\n return {\n name: \"agent-native-ssr-stub-heavy-libs\",\n enforce: \"pre\",\n resolveId(id, _importer, opts) {\n if (!opts?.ssr) return null;\n // Match the bare package name or any subpath\n const pkg = id\n .split(\"/\")\n .slice(0, id.startsWith(\"@\") ? 2 : 1)\n .join(\"/\");\n if (stubbed.has(pkg)) return STUB_ID;\n return null;\n },\n load(id) {\n if (id !== STUB_ID) return null;\n // Proxy that answers any property access with itself — lets dead\n // import/re-export chains parse without blowing up, and still throws\n // if code actually tries to call any of it on the server.\n return (\n \"const handler = { get(_, p) { \" +\n \"if (p === Symbol.toPrimitive) return () => ''; \" +\n \"if (p === 'then') return undefined; \" +\n \"return new Proxy(() => {}, handler); \" +\n \"} };\" +\n \"const stub = new Proxy(() => {}, handler);\" +\n \"export default stub;\" +\n namedExports.map((name) => `export const ${name} = stub;`).join(\"\")\n );\n },\n };\n}\n\n/**\n * Expose the resolved Vite dev server port as process.env.PORT so that\n * in-process scripts (which use localFetch → http://localhost:${PORT}/api/...)\n * hit the right address even when Vite auto-increments the port.\n */\nfunction portExposer(): Plugin {\n return {\n name: \"agent-native-port-exposer\",\n apply: \"serve\",\n configureServer(server) {\n server.httpServer?.once(\"listening\", () => {\n const addr = server.httpServer?.address();\n if (addr && typeof addr === \"object\" && addr.port) {\n process.env.PORT = String(addr.port); // guard:allow-env-mutation — Vite dev server port published once at boot before any request\n }\n });\n },\n };\n}\n\n/**\n * Silence benign connection-reset noise from Vite's dev middleware.\n * Fires when a browser closes/reloads/navigates mid-request — the peer has\n * already gone away, there's nothing to fix, and Vite's error middleware\n * spams the terminal and browser HMR overlay with errors like\n * \"read ECONNRESET\" and \"socket hang up\". Our H3 server layer already\n * swallows these (create-server.ts onError); this plugin does the same for\n * Vite's own connect pipeline.\n */\nfunction silenceConnectionResets(): Plugin {\n const isClosedWebStreamController = (err: unknown) => {\n const e = err as\n | (NodeJS.ErrnoException & { cause?: NodeJS.ErrnoException })\n | undefined;\n const code = e?.code || (e?.cause as NodeJS.ErrnoException)?.code;\n const message = [\n String(e?.message ?? \"\"),\n String((e?.cause as NodeJS.ErrnoException | undefined)?.message ?? \"\"),\n ].join(\"\\n\");\n const stack = [\n String(e?.stack ?? \"\"),\n String((e?.cause as NodeJS.ErrnoException | undefined)?.stack ?? \"\"),\n ].join(\"\\n\");\n return (\n code === \"ERR_INVALID_STATE\" &&\n /Controller is already closed/i.test(message) &&\n (!stack ||\n /ReadableStreamDefaultController\\.close|internal\\/webstreams\\/adapters|IncomingMessage\\.onclose/.test(\n stack,\n ))\n );\n };\n const isBenign = (err: unknown) => {\n const e = err as\n | (NodeJS.ErrnoException & { cause?: NodeJS.ErrnoException })\n | undefined;\n const code = e?.code || (e?.cause as NodeJS.ErrnoException)?.code;\n const message = String(e?.message ?? \"\");\n return (\n code === \"ECONNRESET\" ||\n code === \"ECONNABORTED\" ||\n code === \"EPIPE\" ||\n isClosedWebStreamController(err) ||\n /^(read ECONNRESET|write ECONNRESET|socket hang up|aborted|write EPIPE)$/i.test(\n message,\n )\n );\n };\n const isBenignErrorPayload = (payload: unknown) => {\n const p = payload as { type?: string; err?: unknown } | undefined;\n return p?.type === \"error\" && isBenign(p.err);\n };\n return {\n name: \"agent-native-silence-connection-resets\",\n apply: \"serve\",\n configureServer(server) {\n // Swallow socket-level resets so Node doesn't surface them as uncaught.\n server.httpServer?.on(\"connection\", (socket) => {\n socket.on(\"error\", (err: Error) => {\n if (!isBenign(err)) throw err;\n });\n });\n // Drop Vite's \"Internal server error: read ECONNRESET\" log lines.\n const origError = server.config.logger.error.bind(server.config.logger);\n server.config.logger.error = (msg, opts) => {\n const text = typeof msg === \"string\" ? msg : String(msg ?? \"\");\n if (\n (opts?.error && isBenign(opts.error)) ||\n /Internal server error:\\s*(read ECONNRESET|write ECONNRESET|socket hang up|aborted|EPIPE)/i.test(\n text,\n )\n ) {\n return;\n }\n origError(msg, opts);\n };\n\n // Vite's error middleware sends these same benign errors to the HMR\n // client, which turns them into the full-screen browser overlay.\n // Suppress just those payloads while leaving real transform/runtime\n // errors untouched.\n const hot = (\n server as unknown as {\n environments?: { client?: { hot?: { send?: Function } } };\n }\n ).environments?.client?.hot;\n if (hot?.send) {\n const origHotSend = hot.send.bind(hot);\n hot.send = (payload: unknown, ...args: unknown[]) => {\n if (isBenignErrorPayload(payload)) return;\n return origHotSend(payload, ...args);\n };\n }\n\n const ws = (server as unknown as { ws?: { send?: Function } }).ws;\n if (ws?.send) {\n const origWsSend = ws.send.bind(ws);\n ws.send = (payload: unknown, ...args: unknown[]) => {\n if (isBenignErrorPayload(payload)) return;\n return origWsSend(payload, ...args);\n };\n }\n },\n };\n}\n\ntype AgentNativeViteCommand = ConfigEnv[\"command\"];\n\nfunction isBuildCommand(command?: AgentNativeViteCommand): boolean {\n return command === \"build\" || (!command && process.argv.includes(\"build\"));\n}\n\nfunction hasReactRouterPlugin(plugins: any[] | undefined): boolean {\n return Boolean(\n plugins?.some(\n (p: any) =>\n p?.name === \"react-router\" ||\n (Array.isArray(p) && p.some((pp: any) => pp?.name === \"react-router\")),\n ),\n );\n}\n\nfunction createReactTransformPlugin(): any {\n try {\n let reactTransformPlugin = require(\"@vitejs/plugin-react-swc\");\n if (reactTransformPlugin.default)\n reactTransformPlugin = reactTransformPlugin.default;\n return reactTransformPlugin?.();\n } catch {\n // Will be resolved at runtime by Vite\n return null;\n }\n}\n\nfunction createTailwindPlugin(options: Pick<ClientConfigOptions, \"tailwind\">) {\n if (options.tailwind === false) return null;\n try {\n let tailwindPlugin = require(\"@tailwindcss/vite\");\n if (tailwindPlugin.default) tailwindPlugin = tailwindPlugin.default;\n // Tailwind's Vite optimizer uses Lightning CSS internally and runs\n // before Vite's own CSS minifier. Lightning CSS collapses the standard\n // `backdrop-filter` declaration when a `-webkit-` fallback is present,\n // so let Vite/esbuild handle the production CSS pass instead.\n return tailwindPlugin({ optimize: false });\n } catch {\n // Plugin not installed — silently skip. Old templates may still be on v3.\n return null;\n }\n}\n\nfunction getConfiguredAppBasePath(): { appBasePath: string; base: string } {\n // APP_BASE_PATH lets this app be mounted under a prefix (e.g. \"/mail\") as\n // part of a unified workspace deploy. Defaults to \"/\" for standalone apps.\n const appBasePath =\n process.env.VITE_APP_BASE_PATH || process.env.APP_BASE_PATH || \"/\";\n const base = appBasePath.endsWith(\"/\") ? appBasePath : `${appBasePath}/`;\n return { appBasePath, base };\n}\n\nfunction createNitroDevPlugin(\n options: Pick<ClientConfigOptions, \"nitro\">,\n appBasePath: string,\n) {\n return nitroVitePlugin({\n serverDir: \"./server\",\n ...(options.nitro ?? {}),\n // Never auto-load test files as server handlers/plugins/middleware.\n // Nitro scans server/{plugins,middleware,routes,api}/*; a co-located\n // *.spec.ts would otherwise be loaded at runtime and crash the server\n // (its top-level vitest calls throw). Keep tests next to their source safely.\n ignore: [\n ...((options.nitro as { ignore?: string[] })?.ignore ?? []),\n \"**/*.spec.ts\",\n \"**/*.spec.tsx\",\n \"**/*.test.ts\",\n \"**/*.test.tsx\",\n ],\n routeRules: {\n ...mcpEmbedStaticAssetRouteRules(appBasePath),\n ...((options.nitro as { routeRules?: Record<string, any> })?.routeRules ??\n {}),\n },\n } as any);\n}\n\nfunction arrayFrom<T>(value: T | T[] | undefined): T[] {\n if (value === undefined) return [];\n return Array.isArray(value) ? value : [value];\n}\n\nfunction localWorkspacePackageAliases(\n packages: Array<{ packageName: string; packageDir: string }>,\n): any[] {\n const aliases: any[] = [];\n\n for (const { packageName, packageDir } of packages) {\n const pkgPath = path.join(packageDir, \"package.json\");\n if (!fs.existsSync(pkgPath)) continue;\n\n try {\n const pkg = JSON.parse(fs.readFileSync(pkgPath, \"utf-8\"));\n const exportsMap = pkg.exports as Record<string, unknown> | undefined;\n if (!exportsMap || typeof exportsMap !== \"object\") continue;\n\n for (const [exportPath, target] of Object.entries(exportsMap)) {\n if (typeof target !== \"string\") continue;\n const importPath =\n exportPath === \".\"\n ? packageName\n : `${packageName}${exportPath.slice(1)}`;\n const replacement = path.resolve(packageDir, target);\n\n if (importPath.includes(\"*\") || replacement.includes(\"*\")) {\n aliases.push({\n find: new RegExp(\n `^${escapeRegex(importPath).replace(\"\\\\*\", \"(.+)\")}$`,\n ),\n replacement: replacement.replace(\"*\", \"$1\"),\n });\n continue;\n }\n\n aliases.push({\n find: new RegExp(`^${escapeRegex(importPath)}$`),\n replacement,\n });\n }\n } catch {\n // Ignore malformed package metadata; normal package resolution can handle it.\n }\n }\n\n return aliases;\n}\n\nfunction aliasArrayFrom(alias: unknown): any[] {\n if (!alias) return [];\n if (Array.isArray(alias)) return alias;\n if (typeof alias === \"object\") {\n return Object.entries(alias as Record<string, string>).map(\n ([find, replacement]) => ({ find, replacement }),\n );\n }\n return [];\n}\n\nconst DEFAULT_VITE_WATCH_IGNORES = [\n \"**/.git/**\",\n \"**/node_modules/**\",\n \"**/.react-router/**\",\n \"**/.generated/**\",\n \"**/.agents/**\",\n \"**/.claude/**\",\n \"**/changelog/**\",\n \"**/data/**\",\n \"**/dist/**\",\n \"**/build/**\",\n];\n\nfunction forceServeOnly(pluginOrPreset: any): any {\n if (Array.isArray(pluginOrPreset)) return pluginOrPreset.map(forceServeOnly);\n return { ...pluginOrPreset, apply: \"serve\" };\n}\n\nfunction createAgentNativePlugins(\n options: ClientConfigOptions | AgentNativeVitePluginOptions,\n {\n command,\n includeReactTransform,\n useServeOnlyNitroPlugin = false,\n userPlugins = [],\n }: {\n command?: AgentNativeViteCommand;\n includeReactTransform: boolean;\n useServeOnlyNitroPlugin?: boolean;\n userPlugins?: any[];\n },\n): any[] {\n const { appBasePath } = getConfiguredAppBasePath();\n const nitroPlugin = createNitroDevPlugin(options, appBasePath);\n const includeNitro = !isBuildCommand(command);\n\n return [\n // Stub packages from `options.ssrStubs` in the SSR bundle so they\n // don't bloat the edge worker. Opt-in per template — the framework\n // hardcodes nothing (e.g. docs sites legitimately import `shiki` on\n // the server, so we can't blanket-stub it here).\n ssrStubPlugin(options.ssrStubs ?? []),\n ...userPlugins,\n actionTypesPlugin(),\n agentsBundlePlugin(),\n autoReloadOnOptimizeDep(),\n fullReloadOnOptimizeDep504(),\n embedDevFrameHeaders(),\n baseRedirectGuard(),\n portExposer(),\n silenceConnectionResets(),\n rolldownInputFix(),\n // Nitro Vite plugin for dev-mode API route serving and HMR.\n // Disabled during build — React Router's build handles production.\n ...(useServeOnlyNitroPlugin\n ? [forceServeOnly(nitroPlugin)]\n : includeNitro\n ? [nitroPlugin]\n : []),\n includeReactTransform ? createReactTransformPlugin() : null,\n createTailwindPlugin(options),\n ].filter(Boolean);\n}\n\nfunction createAgentNativeConfig(\n options: ClientConfigOptions | AgentNativeVitePluginOptions = {},\n command?: AgentNativeViteCommand,\n userConfig: UserConfig = {},\n): UserConfig {\n const cwd = process.cwd();\n\n // Workspace env fallback. If this app is inside a workspace, tell Vite to\n // also look for .env files at the workspace root. Per-app .env still wins\n // (Vite's loadEnv merges in precedence order — app dir is loaded after).\n const workspaceRoot = findWorkspaceRoot(cwd);\n const envDir = workspaceRoot && workspaceRoot !== cwd ? workspaceRoot : cwd;\n\n // Preload workspace-root .env into process.env so Nitro server code sees\n // shared keys during dev (Nitro reads process.env, not vite's envDir).\n if (workspaceRoot && workspaceRoot !== cwd) {\n try {\n const dotenv = require(\"dotenv\");\n dotenv.config({\n path: path.join(workspaceRoot, \".env\"),\n override: false,\n // Suppress the dotenv v17 tip line — this loader fires alongside\n // utils.ts loadEnv() during dev startup and would otherwise emit a\n // duplicate \"[dotenv] injecting env\" message.\n quiet: true,\n });\n } catch {}\n }\n\n const { base } = getConfiguredAppBasePath();\n const isWorkspaceChild = process.env.AGENT_NATIVE_WORKSPACE === \"1\";\n const monorepoCoreAllow = [\n path.resolve(cwd, \"../../packages/core\"),\n path.resolve(cwd, \"../core\"),\n ].filter((candidate) => fs.existsSync(path.join(candidate, \"package.json\")));\n const monorepoNodeModulesAllow = [\n path.resolve(cwd, \"../../node_modules\"),\n ].filter((candidate) => fs.existsSync(candidate));\n\n // Workspace-core (enterprise monorepo): pull its directory into Vite's\n // file watcher + module graph so edits to its TS sources hot-reload the\n // dev server, and its package name into ssr.noExternal so the dynamic\n // import in framework-request-handler.ts goes through Vite's transform\n // pipeline (TypeScript, SSR HMR, the works).\n const workspaceCore = findWorkspaceCoreSync(cwd);\n const workspaceCoreFsAllow = workspaceCore\n ? [\n workspaceCore.packageDir,\n // Also allow the workspace root's node_modules so Vite can serve\n // pnpm-hoisted transitive deps (e.g. recharts, es-toolkit) as native\n // ESM when they are excluded from the Rolldown optimizer.\n path.join(workspaceCore.workspaceRoot, \"node_modules\"),\n ]\n : [];\n const workspaceNodeModulesAllow = isWorkspaceChild\n ? [path.resolve(cwd, \"../../node_modules\")]\n : [];\n const packageWorkspaceRoot = workspaceRoot ?? findPnpmWorkspaceRoot(cwd);\n const localWorkspacePackageDeps = findLocalWorkspacePackageDeps(\n cwd,\n packageWorkspaceRoot,\n );\n const localWorkspacePackageAllow = localWorkspacePackageDeps.map(\n (pkg) => pkg.packageDir,\n );\n const localWorkspacePackageResolveAliases = localWorkspacePackageAliases(\n localWorkspacePackageDeps,\n );\n const workspaceCoreNoExternal = workspaceCore\n ? [new RegExp(`^${escapeRegex(workspaceCore.packageName)}(/.*)?$`)]\n : [];\n const localWorkspacePackageNoExternal = localWorkspacePackageDeps.map(\n (pkg) => new RegExp(`^${escapeRegex(pkg.packageName)}(/.*)?$`),\n );\n const forcePollingWatch = process.env.CHOKIDAR_USEPOLLING === \"1\";\n const pollingWatchInterval = Number(process.env.CHOKIDAR_INTERVAL ?? 1000);\n const userWatch = userConfig.server?.watch ?? {};\n\n return {\n logLevel:\n options.logLevel ??\n userConfig.logLevel ??\n (isWorkspaceChild ? \"warn\" : undefined),\n envDir,\n base,\n define: {\n ...(userConfig.define ?? {}),\n ...(options.define ?? {}),\n __AGENT_NATIVE_BUILD_GA_MEASUREMENT_ID__: JSON.stringify(\n process.env.GA_MEASUREMENT_ID?.trim() || \"\",\n ),\n // Framework route warmup controls how SSR `.data` routes are fetched:\n // ordinary fetches keep them CDN-cacheable, while native prefetch headers\n // can be refused before the CDN/origin sees the request. Keep this value\n // authoritative even if app config provides its own `define` entries.\n __AGENT_NATIVE_ROUTE_WARMUP_CONFIG__: JSON.stringify(\n normalizeAgentNativeRouteWarmupConfig(options.routeWarmup),\n ),\n },\n server: {\n ...(userConfig.server ?? {}),\n host: userConfig.server?.host ?? \"::\",\n port: options.port ?? userConfig.server?.port ?? 8080,\n allowedHosts: options.allowedHosts ??\n userConfig.server?.allowedHosts ?? [\n \".ngrok-free.dev\",\n \".ngrok-free.app\",\n \".ngrok.io\",\n \".trycloudflare.com\",\n ],\n watch: {\n ...userWatch,\n ignored: [\n ...DEFAULT_VITE_WATCH_IGNORES,\n ...arrayFrom((userWatch as { ignored?: any })?.ignored),\n ],\n ...(forcePollingWatch\n ? {\n usePolling: true,\n interval: Number.isFinite(pollingWatchInterval)\n ? pollingWatchInterval\n : 1000,\n }\n : {}),\n },\n fs: {\n ...(userConfig.server?.fs ?? {}),\n allow: [\n \".\",\n ...monorepoCoreAllow,\n ...monorepoNodeModulesAllow,\n ...workspaceCoreFsAllow,\n ...localWorkspacePackageAllow,\n ...workspaceNodeModulesAllow,\n ...(userConfig.server?.fs?.allow ?? []),\n ...(options.fsAllow ?? []),\n ],\n deny: [\n \".env\",\n \".env.*\",\n \"*.{crt,pem}\",\n \"**/.git/**\",\n ...(userConfig.server?.fs?.deny ?? []),\n ...(options.fsDeny ?? []),\n ],\n },\n },\n build: {\n ...(userConfig.build ?? {}),\n outDir: options.outDir ?? userConfig.build?.outDir ?? \"dist/spa\",\n // Vite 8 defaults CSS minification to Lightning CSS, which collapses a\n // `backdrop-filter` + `-webkit-backdrop-filter` pair down to only the\n // prefixed form. Chrome ignores that, so glass effects disappear in\n // production. Keep esbuild as the CSS minifier and target Safari 18+ so\n // the standard property survives the production pipeline.\n cssMinify: userConfig.build?.cssMinify ?? \"esbuild\",\n cssTarget: userConfig.build?.cssTarget ?? [\"es2020\", \"safari18\"],\n },\n // Bundle all non-Node.js deps into the production SSR server build.\n // Edge runtimes (CF Workers, Deno) don't have node_modules at runtime.\n // In dev, React Router's Vite Environment runner expects CJS packages\n // like React to stay external; forcing them through the module runner\n // raises `module is not defined`.\n ssr: isBuildCommand(command)\n ? {\n ...(userConfig.ssr ?? {}),\n noExternal: /^(?!node:)/,\n // Pick the workspace-core's compiled `dist/` exports in prod —\n // Node-style `default` condition matches what edge runtimes (CF\n // Workers, Deno) can actually load. Without this, Vite's prod\n // build inherits the dev-condition src/ entry and ships unbuilt\n // TypeScript into the worker.\n resolve: {\n ...((\n userConfig.ssr as\n | { resolve?: Record<string, unknown> }\n | undefined\n )?.resolve ?? {}),\n conditions: [\"node\", \"module\", \"import\", \"default\"],\n externalConditions: [\"node\", \"module\", \"import\", \"default\"],\n },\n }\n : {\n ...(userConfig.ssr ?? {}),\n // Vite already sets `development` in the dev resolve conditions,\n // so the workspace-core template's exports.development → src/\n // entry is picked automatically — Vite handles TS compilation\n // and triggers a server restart when those files change.\n noExternal: [\n /^@agent-native\\/core(\\/.*)?$/,\n // Keep React Router in Vite's SSR module graph so resolve.dedupe\n // can force root.tsx and core's shared entry-server through the\n // same FrameworkContext instance.\n ...(hasDep(\"react-router\", cwd) ? [/^react-router(\\/.*)?$/] : []),\n // Radix UI primitives are transitive deps of @agent-native/core\n // (used by FeedbackButton, AgentSidebar, ShareDialog, etc.). When\n // a consumer app SSRs a component that imports Radix, Node's\n // externalized resolver can't find @radix-ui/* from the app cwd\n // because pnpm doesn't hoist transitive deps. Bundling them\n // through Vite resolves them via the workspace store.\n /^@radix-ui\\//,\n // scheduling ships TypeScript-compiled dist files that contain literal\n // `@/` path-alias imports (e.g. `import { Input } from\n // \"@/components/ui/input\"`). In standalone (published) mode Node\n // treats the package as an external CJS dep and can't resolve\n // `@/components`. Adding it to noExternal makes Vite process it\n // through the module pipeline, where the consumer app's `@` →\n // `./app` alias is already registered.\n ...(hasDep(\"@agent-native/scheduling\", cwd)\n ? [/^@agent-native\\/scheduling(\\/.*)?$/]\n : []),\n ...workspaceCoreNoExternal,\n ...localWorkspacePackageNoExternal,\n ...arrayFrom((userConfig.ssr as { noExternal?: any })?.noExternal),\n ],\n external: [\n \"react\",\n \"react-dom\",\n \"react-dom/server\",\n ...arrayFrom((userConfig.ssr as { external?: any })?.external),\n ],\n },\n optimizeDeps: {\n ...(userConfig.optimizeDeps ?? {}),\n include: [\n ...getDefaultOptimizeDeps(cwd),\n ...(hasDep(\"@agent-native/pinpoint\", cwd)\n ? [\"@agent-native/pinpoint/react\"]\n : []),\n ...(userConfig.optimizeDeps?.include ?? []),\n ...(options.optimizeDeps?.include ?? []),\n ],\n // In monorepo mode: explicitly exclude @agent-native/core subpaths so\n // Vite never prebundles them from dist/. The source alias above\n // (`getCoreSourceAliases`) resolves every import to src/ on every\n // request, so HMR picks up new exports immediately. Without exclude,\n // the prebundle is built from dist/ once at startup and silently\n // serves stale code even after the source / dist is updated.\n exclude: [\n ...(findCoreSrcDir(cwd) !== null ? CORE_CLIENT_SUBPATHS : []),\n ...(userConfig.optimizeDeps?.exclude ?? []),\n ...(options.optimizeDeps?.exclude ?? []),\n ],\n },\n resolve: {\n ...(userConfig.resolve ?? {}),\n // Dedupe all client-side packages that core shares with the consuming\n // app. In pnpm monorepos, core's devDependencies can install separate\n // copies (linked to different React versions). Without deduping, each\n // copy creates its own React context — QueryClientProvider, RouterProvider,\n // Radix, etc. — causing \"No provider\" crashes at runtime.\n dedupe: [\n ...getClientDedupe(cwd),\n ...arrayFrom((userConfig.resolve as { dedupe?: any })?.dedupe),\n ],\n alias: [\n // Published npm installs: one react-router instance for app + core.\n ...getReactRouterAliases(cwd),\n // In monorepo dev: resolve @agent-native/core to source for HMR.\n // Uses regex with $ anchor for exact matching to prevent\n // @agent-native/core from prefix-matching @agent-native/core/client.\n ...getCoreSourceAliases(cwd),\n ...localWorkspacePackageResolveAliases,\n // Standard path aliases (prefix matching is fine here)\n { find: \"@\", replacement: path.resolve(cwd, \"./app\") },\n { find: \"@shared\", replacement: path.resolve(cwd, \"./shared\") },\n ...Object.entries(options.aliases ?? {}).map(([find, replacement]) => ({\n find,\n replacement,\n })),\n ...aliasArrayFrom((userConfig.resolve as { alias?: unknown })?.alias),\n ],\n },\n };\n}\n\n/**\n * Agent-Native's Vite plugin preset.\n *\n * Use this in ordinary Vite configs so `vite.config.ts` keeps Vite's native\n * `UserConfig` type surface:\n *\n * ```ts\n * import { defineConfig } from \"vite\";\n * import { reactRouter } from \"@react-router/dev/vite\";\n * import { agentNative } from \"@agent-native/core/vite\";\n *\n * export default defineConfig({\n * plugins: [reactRouter(), agentNative({ ssrStubs: [\"shiki\"] })],\n * });\n * ```\n */\nexport function agentNative(\n options: AgentNativeVitePluginOptions = {},\n): Plugin[] {\n return [\n {\n name: \"agent-native-config\",\n enforce: \"pre\",\n config(config: UserConfig, env: ConfigEnv) {\n return createAgentNativeConfig(options, env.command, config);\n },\n },\n ...createAgentNativePlugins(options, {\n includeReactTransform: options.legacySpa === true,\n useServeOnlyNitroPlugin: true,\n }),\n ] as Plugin[];\n}\n\n/**\n * Create the client Vite config with sensible agent-native defaults.\n *\n * @deprecated Prefer `defineConfig` from `vite` plus the `agentNative()` plugin\n * preset. This compatibility wrapper remains for existing templates.\n */\nexport function defineConfig(options: ClientConfigOptions = {}): UserConfig {\n const includeReactTransform =\n !hasReactRouterPlugin(options.plugins) && !options.reactRouter;\n return {\n ...createAgentNativeConfig(options),\n plugins: createAgentNativePlugins(options, {\n includeReactTransform,\n userPlugins: options.plugins,\n }),\n };\n}\n\nexport {\n getClientDedupe as _getClientDedupe,\n getDefaultOptimizeDeps as _getDefaultOptimizeDeps,\n findCorePackageRoot as _findCorePackageRoot,\n getReactRouterAliases as _getReactRouterAliases,\n};\n"]}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/vite/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAIpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAA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C,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;IACjE,OAAO;QACL,GAAG,uBAAuB,CAAC,OAAO,CAAC;QACnC,OAAO,EAAE,wBAAwB,CAAC,OAAO,EAAE;YACzC,qBAAqB;YACrB,WAAW,EAAE,OAAO,CAAC,OAAO;SAC7B,CAAC;KACH,CAAC;AACJ,CAAC;AAED,OAAO,EACL,eAAe,IAAI,gBAAgB,EACnC,sBAAsB,IAAI,uBAAuB,EACjD,mBAAmB,IAAI,oBAAoB,EAC3C,qBAAqB,IAAI,sBAAsB,GAChD,CAAC","sourcesContent":["import fs from \"fs\";\nimport type { IncomingMessage, ServerResponse } from \"http\";\nimport { createRequire, syncBuiltinESMExports } from \"module\";\nimport path from \"path\";\nimport { fileURLToPath } from \"url\";\n\nimport type { ConfigEnv, Plugin, UserConfig } from \"vite\";\n\nimport { getViteDevRecoveryScript } from \"../client/vite-dev-recovery-script.js\";\nimport { findWorkspaceRoot } from \"../scripts/utils.js\";\nimport { verifyEmbedSessionToken } from \"../server/embed-session.js\";\nimport {\n EMBED_SESSION_COOKIE,\n EMBED_TOKEN_QUERY_PARAM,\n MCP_APP_CHAT_BRIDGE_QUERY_PARAM,\n} from \"../shared/embed-auth.js\";\nimport {\n isMcpEmbedCorsOrigin,\n MCP_EMBED_CORS_ALLOW_HEADERS,\n MCP_EMBED_STATIC_ASSET_HEADERS,\n mcpEmbedStaticAssetRouteRules,\n shouldAllowMcpEmbedCredentials,\n} from \"../shared/mcp-embed-headers.js\";\nimport {\n normalizeMcpIntegrationsConfig,\n type McpIntegrationsConfigInput,\n} from \"../shared/mcp-integration-config.js\";\nimport {\n normalizeAgentNativeRouteWarmupConfig,\n type AgentNativeRouteWarmupConfigInput,\n} from \"../shared/route-warmup-config.js\";\nimport { actionTypesPlugin } from \"./action-types-plugin.js\";\nimport { agentsBundlePlugin } from \"./agents-bundle-plugin.js\";\n\nconst require = createRequire(import.meta.url);\nconst __dirname = path.dirname(fileURLToPath(import.meta.url));\nlet nitroFsWatchGuardInstalled = false;\n\nfunction installNitroFsWatchGuard(): void {\n if (nitroFsWatchGuardInstalled) return;\n nitroFsWatchGuardInstalled = true;\n\n const originalWatch = fs.watch.bind(fs) as (...args: any[]) => fs.FSWatcher;\n (fs as typeof fs & { watch: (...args: any[]) => fs.FSWatcher }).watch = (\n ...args: any[]\n ) => {\n let watcher: fs.FSWatcher;\n try {\n watcher = originalWatch(...args);\n } catch (error) {\n const err = error as NodeJS.ErrnoException;\n if (err.code !== \"EMFILE\" && err.code !== \"ENOSPC\") throw error;\n console.warn(\n `[agent-native] Disabled Nitro fs.watch for ${String(args[0])}: ${err.message}`,\n );\n return {\n close() {},\n on() {\n return this as fs.FSWatcher;\n },\n } as unknown as fs.FSWatcher;\n }\n\n const originalEmit = watcher.emit.bind(watcher);\n watcher.emit = ((eventName: string | symbol, ...eventArgs: any[]) => {\n const err = eventArgs[0] as NodeJS.ErrnoException | undefined;\n if (\n eventName === \"error\" &&\n (err?.code === \"EMFILE\" || err?.code === \"ENOSPC\")\n ) {\n console.warn(\n `[agent-native] Disabled Nitro fs.watch for ${String(args[0])}: ${err.message}`,\n );\n watcher.close();\n return false;\n }\n return originalEmit(eventName, ...eventArgs);\n }) as fs.FSWatcher[\"emit\"];\n return watcher;\n };\n syncBuiltinESMExports();\n}\n\nfunction nitroVitePlugin(\n ...args: Parameters<typeof import(\"nitro/vite\").nitro>\n) {\n installNitroFsWatchGuard();\n return require(\"nitro/vite\").nitro(...args);\n}\n\n/**\n * Sync discovery for the workspace-core in an enterprise monorepo.\n *\n * Mirrors `getWorkspaceCoreExports` in deploy/workspace-core.ts but stays\n * synchronous so it can run inline in `defineConfig`. Returns the workspace\n * core's package name + absolute directory, or null if no workspace core is\n * declared in the ancestor chain.\n *\n * Walks up from `startDir` looking for a package.json with\n * `agent-native.workspaceCore`. Resolves the declared package name through\n * `<workspaceRoot>/node_modules/<name>` (pnpm symlink, fastest) or by\n * scanning `packages/*` for a matching `name` field (fallback for\n * pre-install scenarios).\n */\nfunction findWorkspaceCoreSync(\n startDir: string,\n): { packageName: string; packageDir: string; workspaceRoot: string } | null {\n // 1) Walk up looking for the root package.json that declares workspaceCore.\n let dir = path.resolve(startDir);\n let workspaceRoot: string | null = null;\n let packageName: string | null = null;\n for (let i = 0; i < 20; i++) {\n const pkgPath = path.join(dir, \"package.json\");\n if (fs.existsSync(pkgPath)) {\n try {\n const pkg = JSON.parse(fs.readFileSync(pkgPath, \"utf-8\"));\n const declared = pkg?.[\"agent-native\"]?.workspaceCore;\n if (typeof declared === \"string\" && declared.length > 0) {\n workspaceRoot = dir;\n packageName = declared;\n break;\n }\n } catch {\n // Malformed package.json — keep walking up.\n }\n }\n const parent = path.dirname(dir);\n if (parent === dir) break;\n dir = parent;\n }\n if (!workspaceRoot || !packageName) return null;\n\n // 2a) pnpm/npm symlink under workspaceRoot/node_modules.\n const nm = path.join(workspaceRoot, \"node_modules\", packageName);\n if (fs.existsSync(path.join(nm, \"package.json\"))) {\n return { packageName, packageDir: fs.realpathSync(nm), workspaceRoot };\n }\n\n // 2b) Scan packages/* and packages/@scope/* for a matching `name`.\n const packagesDir = path.join(workspaceRoot, \"packages\");\n if (fs.existsSync(packagesDir)) {\n const candidates: string[] = [];\n for (const entry of fs.readdirSync(packagesDir, { withFileTypes: true })) {\n if (!entry.isDirectory()) continue;\n candidates.push(path.join(packagesDir, entry.name));\n if (entry.name.startsWith(\"@\")) {\n const scopeDir = path.join(packagesDir, entry.name);\n for (const sub of fs.readdirSync(scopeDir, { withFileTypes: true })) {\n if (sub.isDirectory()) candidates.push(path.join(scopeDir, sub.name));\n }\n }\n }\n for (const c of candidates) {\n const p = path.join(c, \"package.json\");\n if (!fs.existsSync(p)) continue;\n try {\n const pkg = JSON.parse(fs.readFileSync(p, \"utf-8\"));\n if (pkg?.name === packageName)\n return { packageName, packageDir: fs.realpathSync(c), workspaceRoot };\n } catch {\n // ignore malformed package.json\n }\n }\n }\n return null;\n}\n\nfunction findLocalWorkspacePackageDeps(\n startDir: string,\n workspaceRoot: string | null,\n): Array<{ packageName: string; packageDir: string }> {\n if (!workspaceRoot) return [];\n const pkgPath = path.join(startDir, \"package.json\");\n if (!fs.existsSync(pkgPath)) return [];\n\n try {\n const pkg = JSON.parse(fs.readFileSync(pkgPath, \"utf-8\"));\n const deps = {\n ...(pkg.dependencies ?? {}),\n ...(pkg.devDependencies ?? {}),\n ...(pkg.peerDependencies ?? {}),\n } as Record<string, string>;\n const req = createRequire(pkgPath);\n const seen = new Set<string>();\n const packages: Array<{ packageName: string; packageDir: string }> = [];\n\n for (const [packageName, range] of Object.entries(deps)) {\n if (!range.startsWith(\"workspace:\")) continue;\n if (seen.has(packageName)) continue;\n seen.add(packageName);\n\n try {\n const packageJsonPath =\n findInstalledPackageJsonPath(pkgPath, packageName) ??\n findPackageJsonFromEntry(req.resolve(packageName));\n if (!packageJsonPath) continue;\n const packageDir = fs.realpathSync(path.dirname(packageJsonPath));\n if (!packageDir.startsWith(path.join(workspaceRoot, \"packages\")))\n continue;\n packages.push({ packageName, packageDir });\n } catch {\n // Dependency may not have been installed yet; ignore it for dev config.\n }\n }\n\n return packages;\n } catch {\n return [];\n }\n}\n\nfunction findInstalledPackageJsonPath(\n pkgPath: string,\n packageName: string,\n): string | null {\n const candidate = path.join(\n path.dirname(pkgPath),\n \"node_modules\",\n ...packageName.split(\"/\"),\n \"package.json\",\n );\n return fs.existsSync(candidate) ? candidate : null;\n}\n\nfunction findPackageJsonFromEntry(entryPath: string): string | null {\n let dir = fs.statSync(entryPath).isDirectory()\n ? entryPath\n : path.dirname(entryPath);\n for (let i = 0; i < 20; i++) {\n const candidate = path.join(dir, \"package.json\");\n if (fs.existsSync(candidate)) return candidate;\n const parent = path.dirname(dir);\n if (parent === dir) break;\n dir = parent;\n }\n return null;\n}\n\nfunction findPnpmWorkspaceRoot(startDir: string): string | null {\n let dir = path.resolve(startDir);\n for (let i = 0; i < 20; i++) {\n if (fs.existsSync(path.join(dir, \"pnpm-workspace.yaml\"))) return dir;\n const parent = path.dirname(dir);\n if (parent === dir) break;\n dir = parent;\n }\n return null;\n}\n\n/** Escape a string so it can be embedded as a regex literal. */\nfunction escapeRegex(s: string): string {\n return s.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n\n/** Check if a package is installed in the project */\nfunction hasDep(pkg: string, cwd: string): boolean {\n try {\n const pkgJson = JSON.parse(\n fs.readFileSync(path.join(cwd, \"package.json\"), \"utf-8\"),\n );\n return !!(\n pkgJson.dependencies?.[pkg] ||\n pkgJson.devDependencies?.[pkg] ||\n pkgJson.peerDependencies?.[pkg]\n );\n } catch {\n return false;\n }\n}\n\nfunction hasCoreDep(pkg: string, cwd: string): boolean {\n const coreRoot = findCorePackageRoot(cwd);\n if (!coreRoot) return false;\n try {\n const pkgJson = JSON.parse(\n fs.readFileSync(path.join(coreRoot, \"package.json\"), \"utf-8\"),\n );\n return !!(pkgJson.dependencies?.[pkg] || pkgJson.devDependencies?.[pkg]);\n } catch {\n return false;\n }\n}\n\nfunction hasOptimizeDep(pkg: string, cwd: string): boolean {\n return hasDep(pkg, cwd) || hasCoreDep(pkg, cwd);\n}\n\n/**\n * Build the `resolve.dedupe` list dynamically. Reads core's package.json and\n * collects every peerDependency that the consuming app also declares. This\n * ensures Vite resolves them from the app root, not from core's own\n * node_modules — preventing duplicate React context / singleton issues.\n */\nfunction getClientDedupe(cwd: string): string[] {\n // Always dedupe React internals (sub-path exports aren't in peerDeps)\n const always = new Set([\n \"react\",\n \"react-dom\",\n \"react-dom/client\",\n // Framework routers must share one react-router instance so\n // FrameworkContext (Meta/Links/Scripts) matches ServerRouter/HydratedRouter.\n ...(hasDep(\"react-router\", cwd)\n ? [\"react-router\", \"react-router/dom\"]\n : []),\n ]);\n\n // Server-only packages that never run in the browser — no point deduping.\n const serverOnly = new Set([\n \"drizzle-kit\",\n \"node-pty\",\n \"postgres\",\n \"ws\",\n \"typescript\",\n \"vite\",\n \"@vitejs/plugin-react-swc\",\n \"tailwindcss\",\n \"@tailwindcss/vite\",\n ]);\n\n try {\n const corePkgPath = path.resolve(__dirname, \"../../package.json\");\n const corePkg = JSON.parse(fs.readFileSync(corePkgPath, \"utf-8\"));\n\n // Scan both peerDependencies and dependencies. Direct deps like\n // @radix-ui/* use React internally — they must resolve against the\n // app's React, not a second copy inside core's node_modules.\n const coreDeps = new Set([\n ...Object.keys(corePkg.peerDependencies ?? {}),\n ...Object.keys(corePkg.dependencies ?? {}),\n ]);\n\n // Read the consuming app's dependencies\n const appPkg = JSON.parse(\n fs.readFileSync(path.join(cwd, \"package.json\"), \"utf-8\"),\n );\n const appDeps = new Set([\n ...Object.keys(appPkg.dependencies ?? {}),\n ...Object.keys(appPkg.devDependencies ?? {}),\n ]);\n\n for (const dep of coreDeps) {\n if (serverOnly.has(dep)) continue;\n // Dedupe if the app also declares it, OR if it's a React-based\n // UI library (Radix, Tanstack) that must share the app's React.\n if (\n appDeps.has(dep) ||\n dep.startsWith(\"@radix-ui/\") ||\n dep.startsWith(\"@tanstack/\")\n ) {\n always.add(dep);\n }\n }\n } catch {\n // Can't read package.json — fall back to known singletons\n }\n\n return [...always];\n}\n\n/**\n * Locate `packages/core/src` if we're inside the framework monorepo.\n * Shared between `getCoreSourceAliases` (which redirects imports to src/)\n * and `getDefaultOptimizeDeps` (which must NOT prebundle from dist/ when\n * the alias is active — otherwise the prebundle is built from a snapshot\n * of dist/ at startup and never picks up new exports).\n */\nfunction findCorePackageRoot(cwd: string): string | null {\n try {\n const pkg = JSON.parse(\n fs.readFileSync(path.join(cwd, \"package.json\"), \"utf-8\"),\n ) as {\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n };\n const spec =\n pkg.dependencies?.[\"@agent-native/core\"] ??\n pkg.devDependencies?.[\"@agent-native/core\"];\n if (typeof spec === \"string\" && spec.startsWith(\"file:\")) {\n const rooted = fileURLToPath(spec);\n if (fs.existsSync(path.join(rooted, \"src/index.ts\"))) return rooted;\n }\n } catch {\n // package.json missing or unreadable — fall through to path heuristics.\n }\n\n const candidates = [\n path.resolve(cwd, \"../../packages/core\"), // templates/<name>/\n path.resolve(cwd, \"../core\"), // packages/<name>/\n path.resolve(cwd, \"node_modules/@agent-native/core\"),\n ];\n for (const candidate of candidates) {\n try {\n if (!fs.existsSync(candidate)) continue;\n const root = fs.realpathSync(candidate);\n if (fs.existsSync(path.join(root, \"src/index.ts\"))) return root;\n } catch {\n continue;\n }\n }\n return null;\n}\n\nfunction findCoreSrcDir(cwd: string): string | null {\n const root = findCorePackageRoot(cwd);\n return root ? path.join(root, \"src\") : null;\n}\n\n/**\n * Pin react-router imports to the consuming app's install. pnpm keeps a peer\n * copy under `@agent-native/core/node_modules/react-router`; `resolve.dedupe`\n * alone can still leave SSR `Meta`/`Links` on a different FrameworkContext\n * than React Router's dev server router.\n */\nfunction getReactRouterAliases(\n cwd: string,\n): Array<{ find: RegExp; replacement: string }> {\n if (!hasDep(\"react-router\", cwd)) return [];\n try {\n const req = createRequire(path.join(cwd, \"package.json\"));\n return [\n {\n find: /^react-router\\/dom$/,\n replacement: req.resolve(\"react-router/dom\"),\n },\n { find: /^react-router$/, replacement: req.resolve(\"react-router\") },\n ];\n } catch {\n return [];\n }\n}\n\n/**\n * Every `@agent-native/core` subpath that gets a source alias. Must stay in\n * sync with `getCoreSourceAliases`. Used by `getDefaultOptimizeDeps` to skip\n * prebundling in monorepo mode, and by the consumer config to add them to\n * `optimizeDeps.exclude` so Vite always resolves them through the source\n * alias on every request — never from a stale dist/ snapshot.\n */\nconst CORE_CLIENT_SUBPATHS = [\n \"@agent-native/core\",\n \"@agent-native/core/client\",\n \"@agent-native/core/client/chat\",\n \"@agent-native/core/client/collab\",\n \"@agent-native/core/client/composer\",\n \"@agent-native/core/client/conversation\",\n \"@agent-native/core/client/editor\",\n \"@agent-native/core/client/resources\",\n // Dedicated subpath that exports ONLY appBasePath/agentNativePath/appPath.\n // entry.client.tsx imports from here so it never pulls the full client barrel\n // (and its transitive ~650-700 KB gzip chat stack) onto the critical path.\n \"@agent-native/core/client/api-path\",\n \"@agent-native/core/blocks\",\n \"@agent-native/core/blocks/server\",\n \"@agent-native/core/client/extensions\",\n \"@agent-native/core/client/tools\", // legacy alias\n \"@agent-native/core/client/org\",\n \"@agent-native/core/client/db-admin\",\n \"@agent-native/core/client/observability\",\n \"@agent-native/core/client/onboarding\",\n \"@agent-native/core/client/sharing\",\n \"@agent-native/core/client/notifications\",\n \"@agent-native/core/client/progress\",\n \"@agent-native/core/client/transcription/use-live-transcription\",\n \"@agent-native/core/voice\",\n];\n\nfunction getDefaultOptimizeDeps(cwd: string): string[] {\n const inMonorepo = findCoreSrcDir(cwd) !== null;\n const entries: Array<{ specifier: string; packageName?: string }> = [\n // In monorepo mode the source alias resolves these to src/ on every\n // import, so prebundling from dist/ would just create a stale snapshot.\n // Skip them entirely — `optimizeDeps.exclude` below makes that explicit.\n ...(inMonorepo\n ? []\n : ([\n { specifier: \"@agent-native/core\" },\n {\n specifier: \"@agent-native/core/client\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/chat\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/collab\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/composer\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/conversation\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/editor\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/resources\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/org\",\n packageName: \"@agent-native/core\",\n },\n {\n specifier: \"@agent-native/core/client/extensions\",\n packageName: \"@agent-native/core\",\n },\n {\n // Legacy alias — prior name for @agent-native/core/client/extensions.\n // Keep so deployed templates that haven't been updated still resolve.\n specifier: \"@agent-native/core/client/tools\",\n packageName: \"@agent-native/core\",\n },\n ] as Array<{ specifier: string; packageName?: string }>)),\n { specifier: \"@libsql/client\" },\n { specifier: \"@amplitude/analytics-browser\" },\n { specifier: \"@assistant-ui/react\" },\n { specifier: \"@excalidraw/excalidraw\" },\n { specifier: \"@excalidraw/mermaid-to-excalidraw\" },\n {\n specifier: \"@modelcontextprotocol/ext-apps/app-bridge\",\n packageName: \"@modelcontextprotocol/ext-apps\",\n },\n { specifier: \"@radix-ui/react-accordion\" },\n { specifier: \"@radix-ui/react-alert-dialog\" },\n { specifier: \"@radix-ui/react-aspect-ratio\" },\n { specifier: \"@radix-ui/react-avatar\" },\n { specifier: \"@radix-ui/react-checkbox\" },\n { specifier: \"@radix-ui/react-collapsible\" },\n { specifier: \"@radix-ui/react-context-menu\" },\n { specifier: \"@radix-ui/react-dialog\" },\n { specifier: \"@radix-ui/react-dropdown-menu\" },\n { specifier: \"@radix-ui/react-hover-card\" },\n { specifier: \"@radix-ui/react-label\" },\n { specifier: \"@radix-ui/react-menubar\" },\n { specifier: \"@radix-ui/react-navigation-menu\" },\n { specifier: \"@radix-ui/react-popover\" },\n { specifier: \"@radix-ui/react-progress\" },\n { specifier: \"@radix-ui/react-radio-group\" },\n { specifier: \"@radix-ui/react-scroll-area\" },\n { specifier: \"@radix-ui/react-select\" },\n { specifier: \"@radix-ui/react-separator\" },\n { specifier: \"@radix-ui/react-slider\" },\n { specifier: \"@radix-ui/react-slot\" },\n { specifier: \"@radix-ui/react-switch\" },\n { specifier: \"@radix-ui/react-tabs\" },\n { specifier: \"@radix-ui/react-toast\" },\n { specifier: \"@radix-ui/react-toggle\" },\n { specifier: \"@radix-ui/react-toggle-group\" },\n { specifier: \"@radix-ui/react-tooltip\" },\n { specifier: \"@tanstack/react-query\" },\n { specifier: \"@tabler/icons-react\" },\n { specifier: \"@tiptap/core\" },\n { specifier: \"@tiptap/extension-code-block-lowlight\" },\n { specifier: \"@tiptap/extension-collaboration\" },\n { specifier: \"@tiptap/extension-collaboration-caret\" },\n { specifier: \"@tiptap/extension-image\" },\n { specifier: \"@tiptap/extension-link\" },\n { specifier: \"@tiptap/extension-placeholder\" },\n { specifier: \"@tiptap/extension-table\" },\n { specifier: \"@tiptap/extension-table-cell\" },\n { specifier: \"@tiptap/extension-table-header\" },\n { specifier: \"@tiptap/extension-table-row\" },\n { specifier: \"@tiptap/extension-task-item\" },\n { specifier: \"@tiptap/extension-task-list\" },\n { specifier: \"@tiptap/pm/state\", packageName: \"@tiptap/pm\" },\n { specifier: \"@tiptap/react\" },\n { specifier: \"@tiptap/starter-kit\" },\n { specifier: \"@xterm/addon-fit\" },\n { specifier: \"@xterm/addon-web-links\" },\n { specifier: \"@xterm/xterm\" },\n { specifier: \"class-variance-authority\" },\n { specifier: \"clsx\" },\n { specifier: \"cmdk\" },\n { specifier: \"date-fns\" },\n { specifier: \"drizzle-orm\" },\n { specifier: \"drizzle-orm/pg-core\", packageName: \"drizzle-orm\" },\n { specifier: \"drizzle-orm/sqlite-core\", packageName: \"drizzle-orm\" },\n { specifier: \"embla-carousel-react\" },\n { specifier: \"h3\" },\n {\n specifier: \"highlight.js/lib/languages/bash\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/css\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/javascript\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/json\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/markdown\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/python\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/sql\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/typescript\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/xml\",\n packageName: \"highlight.js\",\n },\n {\n specifier: \"highlight.js/lib/languages/yaml\",\n packageName: \"highlight.js\",\n },\n { specifier: \"input-otp\" },\n { specifier: \"lowlight\" },\n { specifier: \"mermaid\" },\n { specifier: \"nanoid\" },\n { specifier: \"next-themes\" },\n { specifier: \"react-hook-form\" },\n { specifier: \"react-day-picker\" },\n { specifier: \"react-markdown\" },\n { specifier: \"react-resizable-panels\" },\n { specifier: \"recharts\" },\n ...(hasDep(\"react-router\", cwd)\n ? [\n { specifier: \"react-router\" },\n { specifier: \"react-router/dom\", packageName: \"react-router\" },\n ]\n : []),\n { specifier: \"remark-gfm\" },\n { specifier: \"roughjs\" },\n { specifier: \"shiki/core\", packageName: \"shiki\" },\n { specifier: \"shiki/engine/javascript\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/bash.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/css.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/html.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/javascript.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/json.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/jsx.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/markdown.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/python.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/shellscript.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/sql.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/tsx.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/typescript.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/langs/yaml.mjs\", packageName: \"shiki\" },\n { specifier: \"shiki/themes/github-dark-default.mjs\", packageName: \"shiki\" },\n {\n specifier: \"shiki/themes/github-light-default.mjs\",\n packageName: \"shiki\",\n },\n { specifier: \"sonner\" },\n { specifier: \"tailwind-merge\" },\n { specifier: \"tiptap-markdown\" },\n { specifier: \"vaul\" },\n { specifier: \"y-protocols/awareness\", packageName: \"y-protocols\" },\n { specifier: \"yjs\" },\n { specifier: \"zod\" },\n ];\n\n return entries\n .filter(({ specifier, packageName }) =>\n hasOptimizeDep(packageName ?? specifier, cwd),\n )\n .map(({ specifier }) => specifier);\n}\n\n/**\n * In monorepo dev mode, resolve @agent-native/core imports to source (src/)\n * instead of dist/ so that Vite HMR picks up changes without rebuilding.\n *\n * Returns Vite array-style aliases with exact matching (regex anchored with $)\n * to prevent `@agent-native/core` from prefix-matching and swallowing\n * sub-path imports like `@agent-native/core/client`.\n */\nfunction getCoreSourceAliases(\n cwd: string,\n): Array<{ find: RegExp; replacement: string }> {\n const coreSrc = findCoreSrcDir(cwd);\n if (!coreSrc) return []; // Not in monorepo — use dist as normal\n\n // Map every @agent-native/core/* export to its src/ equivalent.\n // Each entry uses a regex with $ anchor for exact matching.\n const entries: Record<string, string> = {\n \"@agent-native/core\": path.join(coreSrc, \"index.browser.ts\"),\n \"@agent-native/core/server\": path.join(coreSrc, \"server/index.ts\"),\n \"@agent-native/core/server/edge\": path.join(coreSrc, \"server/edge.ts\"),\n \"@agent-native/core/client\": path.join(coreSrc, \"client/index.ts\"),\n \"@agent-native/core/client/chat\": path.join(\n coreSrc,\n \"client/chat/index.ts\",\n ),\n \"@agent-native/core/client/collab\": path.join(\n coreSrc,\n \"client/collab/index.ts\",\n ),\n \"@agent-native/core/client/composer\": path.join(\n coreSrc,\n \"client/composer/index.ts\",\n ),\n \"@agent-native/core/client/conversation\": path.join(\n coreSrc,\n \"client/conversation/index.ts\",\n ),\n \"@agent-native/core/client/editor\": path.join(\n coreSrc,\n \"client/editor/index.ts\",\n ),\n \"@agent-native/core/client/resources\": path.join(\n coreSrc,\n \"client/resources/index.ts\",\n ),\n // Dedicated thin subpath — only the URL helpers, no chat stack in the closure.\n \"@agent-native/core/client/api-path\": path.join(\n coreSrc,\n \"client/api-path.ts\",\n ),\n \"@agent-native/core/blocks\": path.join(coreSrc, \"client/blocks/index.ts\"),\n \"@agent-native/core/blocks/server\": path.join(\n coreSrc,\n \"client/blocks/server.ts\",\n ),\n \"@agent-native/core/client/extensions\": path.join(\n coreSrc,\n \"client/extensions/index.ts\",\n ),\n // Legacy alias — see exports map note above.\n \"@agent-native/core/client/tools\": path.join(\n coreSrc,\n \"client/extensions/index.ts\",\n ),\n \"@agent-native/core/client/org\": path.join(coreSrc, \"client/org/index.ts\"),\n \"@agent-native/core/client/db-admin\": path.join(\n coreSrc,\n \"client/db-admin/index.ts\",\n ),\n \"@agent-native/core/client/observability\": path.join(\n coreSrc,\n \"client/observability/index.ts\",\n ),\n \"@agent-native/core/client/onboarding\": path.join(\n coreSrc,\n \"client/onboarding/index.ts\",\n ),\n \"@agent-native/core/client/sharing\": path.join(\n coreSrc,\n \"client/sharing/index.ts\",\n ),\n \"@agent-native/core/client/notifications\": path.join(\n coreSrc,\n \"client/notifications/index.ts\",\n ),\n \"@agent-native/core/client/progress\": path.join(\n coreSrc,\n \"client/progress/index.ts\",\n ),\n \"@agent-native/core/client/transcription/use-live-transcription\": path.join(\n coreSrc,\n \"client/transcription/use-live-transcription.ts\",\n ),\n \"@agent-native/core/voice\": path.join(coreSrc, \"voice/index.ts\"),\n \"@agent-native/core/db\": path.join(coreSrc, \"db/index.ts\"),\n \"@agent-native/core/db/schema\": path.join(coreSrc, \"db/schema.ts\"),\n \"@agent-native/core/shared\": path.join(coreSrc, \"shared/index.ts\"),\n \"@agent-native/core/scripts\": path.join(coreSrc, \"scripts/index.ts\"),\n \"@agent-native/core/application-state\": path.join(\n coreSrc,\n \"application-state/index.ts\",\n ),\n \"@agent-native/core/settings\": path.join(coreSrc, \"settings/index.ts\"),\n \"@agent-native/core/credentials\": path.join(\n coreSrc,\n \"credentials/index.ts\",\n ),\n \"@agent-native/core/resources\": path.join(coreSrc, \"resources/index.ts\"),\n \"@agent-native/core/oauth-tokens\": path.join(\n coreSrc,\n \"oauth-tokens/index.ts\",\n ),\n \"@agent-native/core/workspace-connections\": path.join(\n coreSrc,\n \"workspace-connections/index.ts\",\n ),\n \"@agent-native/core/provider-api\": path.join(\n coreSrc,\n \"provider-api/index.ts\",\n ),\n \"@agent-native/core/a2a\": path.join(coreSrc, \"a2a/index.ts\"),\n \"@agent-native/core/router\": path.join(coreSrc, \"router/index.ts\"),\n \"@agent-native/core/terminal\": path.join(\n coreSrc,\n \"client/terminal/index.ts\",\n ),\n \"@agent-native/core/terminal/server\": path.join(\n coreSrc,\n \"terminal/index.ts\",\n ),\n \"@agent-native/core/adapters/cli\": path.join(\n coreSrc,\n \"adapters/cli/index.ts\",\n ),\n \"@agent-native/core/usage\": path.join(coreSrc, \"usage/store.ts\"),\n \"@agent-native/core/brand-kit\": path.join(coreSrc, \"brand-kit/index.ts\"),\n \"@agent-native/core/data-widgets\": path.join(\n coreSrc,\n \"data-widgets/index.ts\",\n ),\n \"@agent-native/core/server/design-token-utils\": path.join(\n coreSrc,\n \"server/design-token-utils.ts\",\n ),\n \"@agent-native/core/server/entry-server\": path.join(\n coreSrc,\n \"server/entry-server.tsx\",\n ),\n // Shared stylesheet — alias to src so CSS edits (composer/theme rules)\n // take effect live in dev instead of silently loading the stale built\n // copy at dist/styles/. From src/styles/ the `@source \"../client/**\"`\n // directive resolves to the real .tsx source, which is what dev should\n // scan for Tailwind classes anyway.\n \"@agent-native/core/styles/agent-native.css\": path.join(\n coreSrc,\n \"styles/agent-native.css\",\n ),\n };\n\n // Escape special regex chars in the key and anchor with $\n return Object.entries(entries).map(([find, replacement]) => ({\n find: new RegExp(`^${find.replace(/[/]/g, \"\\\\/\")}$`),\n replacement,\n }));\n}\n\nexport interface NitroOptions {\n /** Nitro deployment preset (e.g. \"node\", \"vercel\", \"netlify\", \"cloudflare_pages\"). Default: \"node\" */\n preset?: string;\n /** Source directory for server files. Default: \"./server\" */\n srcDir?: string;\n /** Routes directory name (relative to srcDir). Default: \"routes\" */\n routesDir?: string;\n /** Any additional Nitro config overrides */\n [key: string]: unknown;\n}\n\nexport interface ClientConfigOptions {\n /** Port for dev server. Default: 8080 */\n port?: number;\n /** Additional hostnames allowed to access the dev server. */\n allowedHosts?: NonNullable<NonNullable<UserConfig[\"server\"]>[\"allowedHosts\"]>;\n /** Vite log level. Workspace child apps default to \"warn\" so only the gateway URL is advertised. */\n logLevel?: UserConfig[\"logLevel\"];\n /** Additional Vite plugins */\n plugins?: any[];\n /** Nitro plugin options (preset, srcDir, etc) */\n nitro?: NitroOptions;\n /** Override resolve aliases */\n aliases?: Record<string, string>;\n /** Override build.outDir. Default: \"dist/spa\" */\n outDir?: string;\n /** Additional fs.allow paths */\n fsAllow?: string[];\n /** Additional fs.deny patterns */\n fsDeny?: string[];\n /** Additional Vite optimizeDeps configuration */\n optimizeDeps?: NonNullable<UserConfig[\"optimizeDeps\"]>;\n /** Additional Vite define constants. */\n define?: UserConfig[\"define\"];\n /**\n * Framework route warmup behavior mounted by AgentSidebar.\n *\n * React Router's native prefetch warms both `.data` and JS, but its `.data`\n * request uses browser link prefetch. Chrome sends `Sec-Purpose: prefetch`\n * on those requests, which some production CDNs reject for dynamic `.data`\n * URLs before our SWR cache headers can help. Agent-Native therefore uses\n * ordinary fetches for `.data` and `modulepreload` for route JS by default.\n */\n routeWarmup?: AgentNativeRouteWarmupConfigInput;\n /**\n * Controls the MCP integrations catalog exposed from the composer + menu.\n *\n * - `false` hides the whole MCP integrations entry.\n * - `{ defaults: false }` hides all bundled provider presets but still\n * allows custom MCP servers.\n * - `{ defaults: { include: [\"context7\"] } }` allows only those preset ids.\n * - `{ defaults: { exclude: [\"stripe\"] } }` hides specific preset ids.\n */\n mcpIntegrations?: McpIntegrationsConfigInput;\n /**\n * Whether to auto-inject the Tailwind v4 Vite plugin (`@tailwindcss/vite`).\n * Defaults to true — set to `false` if a template wants to manage Tailwind\n * itself (e.g. the legacy v3 PostCSS pipeline).\n */\n tailwind?: boolean;\n /**\n * Package names to stub in the SSR bundle with an empty proxy object.\n *\n * Use this for dependencies that only run in the browser (canvas / diagram\n * libraries, editors, WebGL) but would otherwise get pulled into the\n * server bundle via SSR's noExternal policy — pushing the CF Pages\n * Functions bundle over the 25 MiB limit.\n *\n * Only add packages that are provably never called during SSR. If the\n * server imports one, it will receive a Proxy that throws on any real\n * use (which is better than bundling a 10 MiB dep the worker never calls).\n *\n * @example\n * ssrStubs: [\"mermaid\", \"@excalidraw/excalidraw\"]\n */\n ssrStubs?: string[];\n /**\n * @deprecated Pass `reactRouter()` directly in the `plugins` array instead.\n * Previously used to auto-load the React Router Vite plugin via require(),\n * but this fails in ESM contexts. Templates should now do:\n * ```ts\n * import { reactRouter } from \"@react-router/dev/vite\";\n * defineConfig({ plugins: [reactRouter()] })\n * ```\n */\n reactRouter?: boolean | Record<string, unknown>;\n}\n\nexport interface AgentNativeVitePluginOptions extends Omit<\n ClientConfigOptions,\n \"plugins\" | \"reactRouter\"\n> {\n /**\n * Include the legacy React SWC transform for non-React Router SPA apps.\n *\n * React Router framework-mode apps should pass `reactRouter()` as a normal\n * Vite plugin and leave this off.\n */\n legacySpa?: boolean;\n}\n\n/**\n * Vite plugin that recovers the page when Vite's dependency optimizer\n * invalidates modules mid-load (the \"504 Outdated Optimize Dep\" error).\n *\n * Without this, the page silently fails: <script type=\"module\"> tags 504,\n * React never mounts, and the user is stuck on a blank screen until they\n * manually refresh. We catch the failure modes and auto-reload, with a\n * visible overlay so the user knows what's happening, and a loop guard\n * so we never thrash forever.\n *\n * CRITICAL: this must be a SYNCHRONOUS (non-module) script injected at\n * `head-prepend`. Module scripts are deferred — the browser starts fetching\n * all module scripts in parallel during HTML parsing, so a module listener\n * registers AFTER sibling modules have already started loading and\n * possibly errored out. A regular <script> blocks parsing and runs\n * synchronously, so the listener is registered before ANY module fetch\n * begins.\n *\n * Catches three failure modes (all before React needs to mount):\n * 1. <script type=\"module\"> / <link> 504 — window \"error\" event, capture phase\n * 2. Dynamic import 504 — \"unhandledrejection\" with \"dynamically imported module\"\n * 3. Child module 504 — resource timing when browser exposes the HTTP status\n */\nfunction autoReloadOnOptimizeDep(): Plugin {\n return {\n name: \"agent-native-auto-reload-optimize-dep\",\n apply: \"serve\",\n transformIndexHtml() {\n return [\n {\n tag: \"script\",\n // NOTE: no `type: \"module\"` — this must be a synchronous script.\n children: getViteDevRecoveryScript(),\n injectTo: \"head-prepend\",\n },\n ];\n },\n };\n}\n\n/**\n * Vite handles outdated optimized-dep requests inside its own transform\n * middleware and ends the HTTP response with `504 Outdated Optimize Dep`.\n * Browser module loaders do not consistently surface those child-module\n * failures to userland JavaScript, so also nudge the Vite HMR client from the\n * server side. This turns the confusing blank-screen state into the same\n * full-page reload Vite would have requested once optimization settled.\n */\nfunction fullReloadOnOptimizeDep504(): Plugin {\n return {\n name: \"agent-native-full-reload-optimize-dep-504\",\n apply: \"serve\",\n configureServer(server) {\n let lastReloadAt = 0;\n server.middlewares.use((req, res, next) => {\n const originalEnd = res.end;\n (res as unknown as { end: (...args: unknown[]) => unknown }).end = (\n ...endArgs: unknown[]\n ) => {\n const statusMessage = String(res.statusMessage || \"\");\n if (\n res.statusCode === 504 &&\n statusMessage === \"Outdated Optimize Dep\"\n ) {\n const now = Date.now();\n if (now - lastReloadAt > 500) {\n lastReloadAt = now;\n server.ws.send({ type: \"full-reload\" });\n server.config.logger.info(\n `[agent-native] Vite optimized deps changed while loading ${\n req.url ?? \"a module\"\n }; reloading the page.`,\n { timestamp: true },\n );\n }\n }\n return (originalEnd as (...args: unknown[]) => unknown).apply(\n res,\n endArgs,\n );\n };\n next();\n });\n },\n };\n}\n\n/**\n * Vite plugin that prevents the built-in base middleware from redirecting\n * \"/\" → \"/app/\" (or whatever the base is). When agent-native apps run with\n * --base /app/ in single-port mode, Vite's baseMiddleware sends a 302 from\n * \"/\" to the base path. This breaks Electron webview and iframe embeds\n * that load the app at the root. Instead, we rewrite \"/\" to the base path\n * internally so the app serves without a visible redirect.\n */\nfunction baseRedirectGuard(): Plugin {\n return {\n name: \"agent-native-base-redirect-guard\",\n apply: \"serve\",\n configureServer(server) {\n // Return a function so the middleware is added AFTER Vite's internal\n // middleware is built — but we insert BEFORE by using the pre-hook\n // approach: configureServer hooks that return nothing run before\n // internal middleware.\n server.middlewares.use((req, res, next) => {\n const base = server.config.base;\n if (base && base !== \"/\" && req.url?.startsWith(base)) {\n const relativeUrl = req.url.slice(base.length - 1);\n try {\n const url = new URL(relativeUrl, \"http://agent-native.local\");\n const publicDir = server.config.publicDir;\n if (typeof publicDir !== \"string\") {\n return next();\n }\n const publicPath = path.normalize(\n path.join(publicDir, decodeURIComponent(url.pathname)),\n );\n if (\n publicPath.startsWith(publicDir + path.sep) &&\n fs.existsSync(publicPath) &&\n fs.statSync(publicPath).isFile()\n ) {\n const contentType = contentTypeForPublicFile(publicPath);\n if (contentType) res.setHeader(\"content-type\", contentType);\n if (req.method === \"HEAD\") {\n res.statusCode = 200;\n res.end();\n return;\n }\n fs.createReadStream(publicPath).pipe(res);\n return;\n }\n } catch {\n // Fall through to Vite/Nitro. Malformed URLs should keep their\n // original path so the normal dev-server error handling applies.\n }\n }\n if (serveExternalEmbedBrowserManifest(server, req, res)) {\n return;\n }\n if (serveMountedEmbedRuntimeModule(server, req, res, base)) {\n return;\n }\n req.url = stripMountedDevApiPath(req.url, base);\n if (\n req.method === \"HEAD\" &&\n req.url &&\n !isFrameworkDevPath(req.url, base)\n ) {\n req.method = \"GET\";\n }\n if (\n base &&\n base !== \"/\" &&\n (req.url === \"/\" || req.url === \"/index.html\")\n ) {\n // Rewrite to the base path so Vite serves the app directly\n req.url = base;\n }\n next();\n });\n },\n };\n}\n\nconst VITE_RUNTIME_PATH_PREFIXES = [\n \"/@fs/\",\n \"/@id/\",\n \"/@vite/\",\n \"/app/\",\n \"/node_modules/\",\n \"/packages/\",\n \"/src/\",\n];\n\nconst EMBED_DEV_STATIC_ASSET_PATH_PREFIXES = [\n ...VITE_RUNTIME_PATH_PREFIXES,\n \"/assets/\",\n \"/library-presets/\",\n];\n\nconst EMBED_DEV_STATIC_ASSET_PATHS = new Set([\n \"/favicon.ico\",\n \"/favicon.svg\",\n \"/manifest.json\",\n]);\n\nfunction mountedPathCandidates(\n reqUrl: string | undefined,\n base: string | undefined,\n): string[] {\n if (!reqUrl) return [];\n let pathname: string;\n try {\n pathname = new URL(reqUrl, \"http://agent-native.local\").pathname;\n } catch {\n return [];\n }\n if (base && base !== \"/\") {\n const normalizedBase = base.endsWith(\"/\") ? base : `${base}/`;\n if (pathname.startsWith(normalizedBase)) {\n return [pathname.slice(normalizedBase.length - 1) || \"/\"];\n }\n }\n return [pathname];\n}\n\nfunction isEmbedDevStaticAssetRequest(\n reqUrl: string | undefined,\n base: string | undefined,\n): boolean {\n return mountedPathCandidates(reqUrl, base).some((pathname) => {\n if (EMBED_DEV_STATIC_ASSET_PATHS.has(pathname)) return true;\n if (/^\\/icon-[^/]+\\.svg$/i.test(pathname)) return true;\n if (/^\\/agent-native-[^/]+\\.svg$/i.test(pathname)) return true;\n return EMBED_DEV_STATIC_ASSET_PATH_PREFIXES.some((prefix) =>\n pathname.startsWith(prefix),\n );\n });\n}\n\nfunction cookieValue(req: IncomingMessage, name: string): string | undefined {\n const header = req.headers.cookie;\n if (typeof header !== \"string\" || !header) return undefined;\n for (const part of header.split(\";\")) {\n const index = part.indexOf(\"=\");\n if (index < 0) continue;\n const key = part.slice(0, index).trim();\n if (key !== name) continue;\n try {\n return decodeURIComponent(part.slice(index + 1).trim());\n } catch {\n return part.slice(index + 1).trim();\n }\n }\n return undefined;\n}\n\nfunction hasValidEmbedRuntimeToken(req: IncomingMessage): boolean {\n try {\n const url = new URL(req.url ?? \"/\", \"http://agent-native.local\");\n const queryToken = url.searchParams.get(EMBED_TOKEN_QUERY_PARAM);\n const cookieToken = cookieValue(req, EMBED_SESSION_COOKIE);\n return [queryToken, cookieToken].some(\n (token) => verifyEmbedSessionToken(token).ok,\n );\n } catch {\n return false;\n }\n}\n\nfunction mountedEmbedRuntimeModuleUrl(\n reqUrl: string | undefined,\n base: string | undefined,\n): string | null {\n if (!reqUrl || !base || base === \"/\") return null;\n const normalizedBase = base.endsWith(\"/\") ? base : `${base}/`;\n if (!reqUrl.startsWith(normalizedBase)) return null;\n\n const runtimeUrl = reqUrl.slice(normalizedBase.length - 1) || \"/\";\n let url: URL;\n try {\n url = new URL(runtimeUrl, \"http://agent-native.local\");\n } catch {\n return null;\n }\n if (\n !VITE_RUNTIME_PATH_PREFIXES.some((prefix) =>\n url.pathname.startsWith(prefix),\n )\n ) {\n return null;\n }\n url.searchParams.delete(EMBED_TOKEN_QUERY_PARAM);\n url.searchParams.delete(MCP_APP_CHAT_BRIDGE_QUERY_PARAM);\n return `${url.pathname}${url.search}${url.hash}`;\n}\n\nfunction virtualModuleIdFromRuntimeUrl(runtimeUrl: string): string | null {\n try {\n const pathname = new URL(runtimeUrl, \"http://agent-native.local\").pathname;\n const prefix = \"/@id/__x00__\";\n if (!pathname.startsWith(prefix)) return null;\n return `\\0${decodeURIComponent(pathname.slice(prefix.length))}`;\n } catch {\n return null;\n }\n}\n\nasync function loadMountedEmbedRuntimeModule(\n server: any,\n runtimeUrl: string,\n): Promise<string | null> {\n const virtualId = virtualModuleIdFromRuntimeUrl(runtimeUrl);\n if (virtualId) {\n const loaded = await server.pluginContainer?.load?.(virtualId);\n if (typeof loaded === \"string\") return loaded;\n if (loaded && typeof loaded.code === \"string\") return loaded.code;\n }\n const result = await server.transformRequest(runtimeUrl);\n return result?.code ?? null;\n}\n\nfunction serveMountedEmbedRuntimeModule(\n server: any,\n req: IncomingMessage,\n res: ServerResponse,\n base: string | undefined,\n): boolean {\n if (req.method !== \"GET\" && req.method !== \"HEAD\") return false;\n if (!hasValidEmbedRuntimeToken(req)) return false;\n const runtimeUrl = mountedEmbedRuntimeModuleUrl(req.url, base);\n if (!runtimeUrl) return false;\n\n void loadMountedEmbedRuntimeModule(server, runtimeUrl)\n .then((code: string | null) => {\n if (!code) {\n if (!res.headersSent) {\n res.statusCode = 404;\n res.end();\n }\n return;\n }\n res.statusCode = 200;\n res.setHeader(\"content-type\", \"text/javascript\");\n if (req.method === \"HEAD\") {\n res.end();\n return;\n }\n res.end(code);\n })\n .catch((err: unknown) => {\n if (res.headersSent) return;\n res.statusCode = 500;\n res.setHeader(\"content-type\", \"text/plain\");\n res.end(err instanceof Error ? err.message : String(err));\n });\n return true;\n}\n\nfunction publicOriginFromDevRequest(req: IncomingMessage): string | null {\n const forwardedHost = String(req.headers[\"x-forwarded-host\"] ?? \"\")\n .split(\",\")[0]\n ?.trim();\n const host =\n forwardedHost ||\n String(req.headers.host ?? \"\")\n .split(\",\")[0]\n ?.trim();\n if (!host) return null;\n const forwardedProto = String(req.headers[\"x-forwarded-proto\"] ?? \"\")\n .split(\",\")[0]\n ?.trim();\n const proto =\n forwardedProto ||\n (/^(localhost|127\\.0\\.0\\.1|\\[::1\\])(?::\\d+)?$/i.test(host)\n ? \"http\"\n : \"https\");\n return `${proto}://${host}`;\n}\n\nfunction isReactRouterBrowserManifestUrl(reqUrl: string | undefined): boolean {\n if (!reqUrl) return false;\n try {\n const url = new URL(reqUrl, \"http://agent-native.local\");\n return (\n virtualModuleIdFromRuntimeUrl(url.pathname) ===\n \"\\0virtual:react-router/browser-manifest\"\n );\n } catch {\n return false;\n }\n}\n\nfunction rewriteRootRelativeManifestUrls(\n code: string,\n publicOrigin: string,\n): string {\n return code.replace(/'\\/(?!\\/)([^']*)'/g, (match, rest: string) => {\n try {\n return JSON.stringify(new URL(`/${rest}`, publicOrigin).toString());\n } catch {\n return match;\n }\n });\n}\n\nfunction serveExternalEmbedBrowserManifest(\n server: any,\n req: IncomingMessage,\n res: ServerResponse,\n): boolean {\n if (req.method !== \"GET\" && req.method !== \"HEAD\") return false;\n if (!isMcpEmbedCorsOrigin(String(req.headers.origin ?? \"\"))) return false;\n if (!isReactRouterBrowserManifestUrl(req.url)) return false;\n const publicOrigin = publicOriginFromDevRequest(req);\n if (!publicOrigin) return false;\n const runtimeUrl = mountedEmbedRuntimeModuleUrl(req.url, \"/\") ?? req.url;\n if (!runtimeUrl) return false;\n\n void loadMountedEmbedRuntimeModule(server, runtimeUrl)\n .then((code: string | null) => {\n if (!code) {\n if (!res.headersSent) {\n res.statusCode = 404;\n res.end();\n }\n return;\n }\n res.statusCode = 200;\n res.setHeader(\"content-type\", \"text/javascript\");\n if (req.method === \"HEAD\") {\n res.end();\n return;\n }\n res.end(rewriteRootRelativeManifestUrls(code, publicOrigin));\n })\n .catch((err: unknown) => {\n if (res.headersSent) return;\n res.statusCode = 500;\n res.setHeader(\"content-type\", \"text/plain\");\n res.end(err instanceof Error ? err.message : String(err));\n });\n return true;\n}\n\nfunction embedDevFrameHeaders(): Plugin {\n return {\n name: \"agent-native-embed-dev-frame-headers\",\n apply: \"serve\",\n configureServer(server) {\n server.middlewares.use((req, res, next) => {\n const origin = String(req.headers.origin ?? \"\");\n if (isEmbedDevStaticAssetRequest(req.url, server.config?.base)) {\n for (const [name, value] of Object.entries(\n MCP_EMBED_STATIC_ASSET_HEADERS,\n )) {\n res.setHeader(name, value);\n }\n }\n if (isMcpEmbedCorsOrigin(origin)) {\n res.setHeader(\"Access-Control-Allow-Origin\", origin);\n res.setHeader(\"Vary\", \"Origin\");\n // The desktop app's dev origin (http://localhost:1420) also matches\n // here, and it logs in with `credentials: \"include\"`. A credentialed\n // request needs this header or the browser discards the response.\n // The OPTIONS short-circuit below means we can't rely on the real\n // auth handler to set it, so set it here too (production already does\n // the same).\n if (shouldAllowMcpEmbedCredentials(origin)) {\n res.setHeader(\"Access-Control-Allow-Credentials\", \"true\");\n }\n res.setHeader(\n \"Access-Control-Allow-Methods\",\n \"GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS\",\n );\n res.setHeader(\n \"Access-Control-Allow-Headers\",\n MCP_EMBED_CORS_ALLOW_HEADERS,\n );\n for (const [name, value] of Object.entries(\n MCP_EMBED_STATIC_ASSET_HEADERS,\n )) {\n if (name === \"Access-Control-Allow-Origin\") continue;\n res.setHeader(name, value);\n }\n if (req.method === \"OPTIONS\") {\n res.statusCode = 204;\n res.end();\n return;\n }\n }\n\n const cookieHeader = String(req.headers.cookie ?? \"\");\n let hasEmbedMarker = /\\ban_embed_session=/.test(cookieHeader);\n try {\n const url = new URL(req.url ?? \"/\", \"http://agent-native.local\");\n hasEmbedMarker =\n hasEmbedMarker || url.searchParams.has(\"__an_embed_token\");\n } catch {\n // Malformed URLs should continue through Vite's normal handling.\n }\n if (hasEmbedMarker) {\n res.setHeader(\"Cross-Origin-Embedder-Policy\", \"require-corp\");\n res.setHeader(\"Cross-Origin-Opener-Policy\", \"same-origin\");\n res.setHeader(\"Cross-Origin-Resource-Policy\", \"cross-origin\");\n res.setHeader(\"Referrer-Policy\", \"no-referrer\");\n }\n next();\n });\n },\n };\n}\n\nfunction contentTypeForPublicFile(filePath: string): string | null {\n switch (path.extname(filePath).toLowerCase()) {\n case \".css\":\n return \"text/css\";\n case \".html\":\n return \"text/html\";\n case \".ico\":\n return \"image/x-icon\";\n case \".json\":\n case \".webmanifest\":\n return \"application/json\";\n case \".js\":\n case \".mjs\":\n return \"text/javascript\";\n case \".png\":\n return \"image/png\";\n case \".svg\":\n return \"image/svg+xml\";\n case \".txt\":\n return \"text/plain\";\n case \".xml\":\n return \"application/xml\";\n default:\n return null;\n }\n}\n\nfunction devPathname(reqUrl: string): string {\n return new URL(reqUrl, \"http://agent-native.local\").pathname;\n}\n\nfunction isApiDevPath(reqUrl: string): boolean {\n const pathname = devPathname(reqUrl);\n return pathname === \"/api\" || pathname.startsWith(\"/api/\");\n}\n\nexport function stripMountedDevApiPath(\n reqUrl: string | undefined,\n base: string | undefined,\n): string | undefined {\n if (!reqUrl || !base || base === \"/\") return reqUrl;\n const normalizedBase = base.endsWith(\"/\") ? base : `${base}/`;\n if (!reqUrl.startsWith(normalizedBase)) return reqUrl;\n const stripped = reqUrl.slice(normalizedBase.length - 1) || \"/\";\n return isApiDevPath(stripped) ? stripped : reqUrl;\n}\n\nexport function isFrameworkDevPath(\n reqUrl: string,\n base: string | undefined,\n): boolean {\n const pathname = devPathname(reqUrl);\n if (pathname === \"/_agent-native\" || pathname.startsWith(\"/_agent-native/\")) {\n return true;\n }\n if (!base || base === \"/\") return false;\n const normalizedBase = base.endsWith(\"/\") ? base.slice(0, -1) : base;\n return (\n pathname === `${normalizedBase}/_agent-native` ||\n pathname.startsWith(`${normalizedBase}/_agent-native/`)\n );\n}\n\n/**\n * Work around a Rolldown bug where Nitro passes service entries as objects\n * ({index: \"path\"}) but Rolldown expects strings. This plugin normalizes\n * rollupOptions.input entries in the SSR environment.\n */\nfunction rolldownInputFix(): Plugin {\n return {\n name: \"agent-native-rolldown-input-fix\",\n configEnvironment(_name, config) {\n const input = config.build?.rollupOptions?.input;\n if (!Array.isArray(input)) return;\n // Flatten any object entries to just their string values\n const fixed = input.map((entry: any) => {\n if (typeof entry === \"string\") return entry;\n if (typeof entry === \"object\" && entry !== null) {\n const values = Object.values(entry);\n return values[0] as string;\n }\n return entry;\n });\n config.build!.rollupOptions!.input = fixed;\n },\n };\n}\n\n/**\n * Replace caller-specified packages with an empty proxy stub during SSR\n * builds. For apps whose heavy browser-only deps would otherwise bloat the\n * edge worker past CF Pages' 25 MiB Functions limit.\n *\n * The template lists the packages in its `defineConfig({ ssrStubs })` call —\n * the framework never hardcodes package names.\n */\nfunction ssrStubPlugin(packages: string[]): Plugin | null {\n if (!packages.length) return null;\n const stubbed = new Set(packages);\n const STUB_ID = \"\\0agent-native-ssr-stub\";\n const namedExports = [\n \"ActionBarPrimitive\",\n \"AllSelection\",\n \"Array\",\n \"AssistantRuntimeProvider\",\n \"Awareness\",\n \"BranchPickerPrimitive\",\n \"BubbleMenu\",\n \"CodeBlockLowlight\",\n \"Collaboration\",\n \"CollaborationCaret\",\n \"ComposerPrimitive\",\n \"CompositeAttachmentAdapter\",\n \"DOMParser\",\n \"Decoration\",\n \"DecorationSet\",\n \"Editor\",\n \"EditorContent\",\n \"Extension\",\n \"FitAddon\",\n \"Fragment\",\n \"Image\",\n \"Link\",\n \"Map\",\n \"Markdown\",\n \"Mark\",\n \"MessagePrimitive\",\n \"Node\",\n \"NodeSelection\",\n \"NodeViewContent\",\n \"NodeViewWrapper\",\n \"Placeholder\",\n \"Plugin\",\n \"PluginKey\",\n \"ReactNodeViewRenderer\",\n \"Selection\",\n \"SimpleImageAttachmentAdapter\",\n \"SimpleTextAttachmentAdapter\",\n \"StarterKit\",\n \"Table\",\n \"TableCell\",\n \"TableHeader\",\n \"TableRow\",\n \"TaskItem\",\n \"TaskList\",\n \"Terminal\",\n \"TextSelection\",\n \"ThreadPrimitive\",\n \"WebLinksAddon\",\n \"captureException\",\n \"common\",\n \"createLowlight\",\n \"defaultUrlTransform\",\n \"extensions\",\n \"findTable\",\n \"format\",\n \"Doc\",\n \"getHTMLFromFragment\",\n \"getIsolationScope\",\n \"init\",\n \"isChangeOrigin\",\n \"mergeAttributes\",\n \"renderToString\",\n \"applyUpdate\",\n \"encodeStateVector\",\n \"encodeStateAsUpdate\",\n \"mergeUpdates\",\n \"useAui\",\n \"useComposer\",\n \"useComposerRuntime\",\n \"useCurrentEditor\",\n \"useEditor\",\n \"useLocalRuntime\",\n \"useMessagePartText\",\n \"useMessageRuntime\",\n \"useThread\",\n \"useThreadRuntime\",\n \"withScope\",\n \"XmlFragment\",\n \"XmlText\",\n ];\n return {\n name: \"agent-native-ssr-stub-heavy-libs\",\n enforce: \"pre\",\n resolveId(id, _importer, opts) {\n if (!opts?.ssr) return null;\n // Match the bare package name or any subpath\n const pkg = id\n .split(\"/\")\n .slice(0, id.startsWith(\"@\") ? 2 : 1)\n .join(\"/\");\n if (stubbed.has(pkg)) return STUB_ID;\n return null;\n },\n load(id) {\n if (id !== STUB_ID) return null;\n // Proxy that answers any property access with itself — lets dead\n // import/re-export chains parse without blowing up, and still throws\n // if code actually tries to call any of it on the server.\n return (\n \"const handler = { get(_, p) { \" +\n \"if (p === Symbol.toPrimitive) return () => ''; \" +\n \"if (p === 'then') return undefined; \" +\n \"return new Proxy(() => {}, handler); \" +\n \"} };\" +\n \"const stub = new Proxy(() => {}, handler);\" +\n \"export default stub;\" +\n namedExports.map((name) => `export const ${name} = stub;`).join(\"\")\n );\n },\n };\n}\n\n/**\n * Expose the resolved Vite dev server port as process.env.PORT so that\n * in-process scripts (which use localFetch → http://localhost:${PORT}/api/...)\n * hit the right address even when Vite auto-increments the port.\n */\nfunction portExposer(): Plugin {\n return {\n name: \"agent-native-port-exposer\",\n apply: \"serve\",\n configureServer(server) {\n server.httpServer?.once(\"listening\", () => {\n const addr = server.httpServer?.address();\n if (addr && typeof addr === \"object\" && addr.port) {\n process.env.PORT = String(addr.port); // guard:allow-env-mutation — Vite dev server port published once at boot before any request\n }\n });\n },\n };\n}\n\n/**\n * Silence benign connection-reset noise from Vite's dev middleware.\n * Fires when a browser closes/reloads/navigates mid-request — the peer has\n * already gone away, there's nothing to fix, and Vite's error middleware\n * spams the terminal and browser HMR overlay with errors like\n * \"read ECONNRESET\" and \"socket hang up\". Our H3 server layer already\n * swallows these (create-server.ts onError); this plugin does the same for\n * Vite's own connect pipeline.\n */\nfunction silenceConnectionResets(): Plugin {\n const isClosedWebStreamController = (err: unknown) => {\n const e = err as\n | (NodeJS.ErrnoException & { cause?: NodeJS.ErrnoException })\n | undefined;\n const code = e?.code || (e?.cause as NodeJS.ErrnoException)?.code;\n const message = [\n String(e?.message ?? \"\"),\n String((e?.cause as NodeJS.ErrnoException | undefined)?.message ?? \"\"),\n ].join(\"\\n\");\n const stack = [\n String(e?.stack ?? \"\"),\n String((e?.cause as NodeJS.ErrnoException | undefined)?.stack ?? \"\"),\n ].join(\"\\n\");\n return (\n code === \"ERR_INVALID_STATE\" &&\n /Controller is already closed/i.test(message) &&\n (!stack ||\n /ReadableStreamDefaultController\\.close|internal\\/webstreams\\/adapters|IncomingMessage\\.onclose/.test(\n stack,\n ))\n );\n };\n const isBenign = (err: unknown) => {\n const e = err as\n | (NodeJS.ErrnoException & { cause?: NodeJS.ErrnoException })\n | undefined;\n const code = e?.code || (e?.cause as NodeJS.ErrnoException)?.code;\n const message = String(e?.message ?? \"\");\n return (\n code === \"ECONNRESET\" ||\n code === \"ECONNABORTED\" ||\n code === \"EPIPE\" ||\n isClosedWebStreamController(err) ||\n /^(read ECONNRESET|write ECONNRESET|socket hang up|aborted|write EPIPE)$/i.test(\n message,\n )\n );\n };\n const isBenignErrorPayload = (payload: unknown) => {\n const p = payload as { type?: string; err?: unknown } | undefined;\n return p?.type === \"error\" && isBenign(p.err);\n };\n return {\n name: \"agent-native-silence-connection-resets\",\n apply: \"serve\",\n configureServer(server) {\n // Swallow socket-level resets so Node doesn't surface them as uncaught.\n server.httpServer?.on(\"connection\", (socket) => {\n socket.on(\"error\", (err: Error) => {\n if (!isBenign(err)) throw err;\n });\n });\n // Drop Vite's \"Internal server error: read ECONNRESET\" log lines.\n const origError = server.config.logger.error.bind(server.config.logger);\n server.config.logger.error = (msg, opts) => {\n const text = typeof msg === \"string\" ? msg : String(msg ?? \"\");\n if (\n (opts?.error && isBenign(opts.error)) ||\n /Internal server error:\\s*(read ECONNRESET|write ECONNRESET|socket hang up|aborted|EPIPE)/i.test(\n text,\n )\n ) {\n return;\n }\n origError(msg, opts);\n };\n\n // Vite's error middleware sends these same benign errors to the HMR\n // client, which turns them into the full-screen browser overlay.\n // Suppress just those payloads while leaving real transform/runtime\n // errors untouched.\n const hot = (\n server as unknown as {\n environments?: { client?: { hot?: { send?: Function } } };\n }\n ).environments?.client?.hot;\n if (hot?.send) {\n const origHotSend = hot.send.bind(hot);\n hot.send = (payload: unknown, ...args: unknown[]) => {\n if (isBenignErrorPayload(payload)) return;\n return origHotSend(payload, ...args);\n };\n }\n\n const ws = (server as unknown as { ws?: { send?: Function } }).ws;\n if (ws?.send) {\n const origWsSend = ws.send.bind(ws);\n ws.send = (payload: unknown, ...args: unknown[]) => {\n if (isBenignErrorPayload(payload)) return;\n return origWsSend(payload, ...args);\n };\n }\n },\n };\n}\n\ntype AgentNativeViteCommand = ConfigEnv[\"command\"];\n\nfunction isBuildCommand(command?: AgentNativeViteCommand): boolean {\n return command === \"build\" || (!command && process.argv.includes(\"build\"));\n}\n\nfunction hasReactRouterPlugin(plugins: any[] | undefined): boolean {\n return Boolean(\n plugins?.some(\n (p: any) =>\n p?.name === \"react-router\" ||\n (Array.isArray(p) && p.some((pp: any) => pp?.name === \"react-router\")),\n ),\n );\n}\n\nfunction createReactTransformPlugin(): any {\n try {\n let reactTransformPlugin = require(\"@vitejs/plugin-react-swc\");\n if (reactTransformPlugin.default)\n reactTransformPlugin = reactTransformPlugin.default;\n return reactTransformPlugin?.();\n } catch {\n // Will be resolved at runtime by Vite\n return null;\n }\n}\n\nfunction createTailwindPlugin(options: Pick<ClientConfigOptions, \"tailwind\">) {\n if (options.tailwind === false) return null;\n try {\n let tailwindPlugin = require(\"@tailwindcss/vite\");\n if (tailwindPlugin.default) tailwindPlugin = tailwindPlugin.default;\n // Tailwind's Vite optimizer uses Lightning CSS internally and runs\n // before Vite's own CSS minifier. Lightning CSS collapses the standard\n // `backdrop-filter` declaration when a `-webkit-` fallback is present,\n // so let Vite/esbuild handle the production CSS pass instead.\n return tailwindPlugin({ optimize: false });\n } catch {\n // Plugin not installed — silently skip. Old templates may still be on v3.\n return null;\n }\n}\n\nfunction getConfiguredAppBasePath(): { appBasePath: string; base: string } {\n // APP_BASE_PATH lets this app be mounted under a prefix (e.g. \"/mail\") as\n // part of a unified workspace deploy. Defaults to \"/\" for standalone apps.\n const appBasePath =\n process.env.VITE_APP_BASE_PATH || process.env.APP_BASE_PATH || \"/\";\n const base = appBasePath.endsWith(\"/\") ? appBasePath : `${appBasePath}/`;\n return { appBasePath, base };\n}\n\nfunction createNitroDevPlugin(\n options: Pick<ClientConfigOptions, \"nitro\">,\n appBasePath: string,\n) {\n return nitroVitePlugin({\n serverDir: \"./server\",\n ...(options.nitro ?? {}),\n // Never auto-load test files as server handlers/plugins/middleware.\n // Nitro scans server/{plugins,middleware,routes,api}/*; a co-located\n // *.spec.ts would otherwise be loaded at runtime and crash the server\n // (its top-level vitest calls throw). Keep tests next to their source safely.\n ignore: [\n ...((options.nitro as { ignore?: string[] })?.ignore ?? []),\n \"**/*.spec.ts\",\n \"**/*.spec.tsx\",\n \"**/*.test.ts\",\n \"**/*.test.tsx\",\n ],\n routeRules: {\n ...mcpEmbedStaticAssetRouteRules(appBasePath),\n ...((options.nitro as { routeRules?: Record<string, any> })?.routeRules ??\n {}),\n },\n } as any);\n}\n\nfunction arrayFrom<T>(value: T | T[] | undefined): T[] {\n if (value === undefined) return [];\n return Array.isArray(value) ? value : [value];\n}\n\nfunction localWorkspacePackageAliases(\n packages: Array<{ packageName: string; packageDir: string }>,\n): any[] {\n const aliases: any[] = [];\n\n for (const { packageName, packageDir } of packages) {\n const pkgPath = path.join(packageDir, \"package.json\");\n if (!fs.existsSync(pkgPath)) continue;\n\n try {\n const pkg = JSON.parse(fs.readFileSync(pkgPath, \"utf-8\"));\n const exportsMap = pkg.exports as Record<string, unknown> | undefined;\n if (!exportsMap || typeof exportsMap !== \"object\") continue;\n\n for (const [exportPath, target] of Object.entries(exportsMap)) {\n if (typeof target !== \"string\") continue;\n const importPath =\n exportPath === \".\"\n ? packageName\n : `${packageName}${exportPath.slice(1)}`;\n const replacement = path.resolve(packageDir, target);\n\n if (importPath.includes(\"*\") || replacement.includes(\"*\")) {\n aliases.push({\n find: new RegExp(\n `^${escapeRegex(importPath).replace(\"\\\\*\", \"(.+)\")}$`,\n ),\n replacement: replacement.replace(\"*\", \"$1\"),\n });\n continue;\n }\n\n aliases.push({\n find: new RegExp(`^${escapeRegex(importPath)}$`),\n replacement,\n });\n }\n } catch {\n // Ignore malformed package metadata; normal package resolution can handle it.\n }\n }\n\n return aliases;\n}\n\nfunction aliasArrayFrom(alias: unknown): any[] {\n if (!alias) return [];\n if (Array.isArray(alias)) return alias;\n if (typeof alias === \"object\") {\n return Object.entries(alias as Record<string, string>).map(\n ([find, replacement]) => ({ find, replacement }),\n );\n }\n return [];\n}\n\nconst DEFAULT_VITE_WATCH_IGNORES = [\n \"**/.git/**\",\n \"**/node_modules/**\",\n \"**/.react-router/**\",\n \"**/.generated/**\",\n \"**/.agents/**\",\n \"**/.claude/**\",\n \"**/changelog/**\",\n \"**/data/**\",\n \"**/dist/**\",\n \"**/build/**\",\n];\n\nfunction forceServeOnly(pluginOrPreset: any): any {\n if (Array.isArray(pluginOrPreset)) return pluginOrPreset.map(forceServeOnly);\n return { ...pluginOrPreset, apply: \"serve\" };\n}\n\nfunction createAgentNativePlugins(\n options: ClientConfigOptions | AgentNativeVitePluginOptions,\n {\n command,\n includeReactTransform,\n useServeOnlyNitroPlugin = false,\n userPlugins = [],\n }: {\n command?: AgentNativeViteCommand;\n includeReactTransform: boolean;\n useServeOnlyNitroPlugin?: boolean;\n userPlugins?: any[];\n },\n): any[] {\n const { appBasePath } = getConfiguredAppBasePath();\n const nitroPlugin = createNitroDevPlugin(options, appBasePath);\n const includeNitro = !isBuildCommand(command);\n\n return [\n // Stub packages from `options.ssrStubs` in the SSR bundle so they\n // don't bloat the edge worker. Opt-in per template — the framework\n // hardcodes nothing (e.g. docs sites legitimately import `shiki` on\n // the server, so we can't blanket-stub it here).\n ssrStubPlugin(options.ssrStubs ?? []),\n ...userPlugins,\n actionTypesPlugin(),\n agentsBundlePlugin(),\n autoReloadOnOptimizeDep(),\n fullReloadOnOptimizeDep504(),\n embedDevFrameHeaders(),\n baseRedirectGuard(),\n portExposer(),\n silenceConnectionResets(),\n rolldownInputFix(),\n // Nitro Vite plugin for dev-mode API route serving and HMR.\n // Disabled during build — React Router's build handles production.\n ...(useServeOnlyNitroPlugin\n ? [forceServeOnly(nitroPlugin)]\n : includeNitro\n ? [nitroPlugin]\n : []),\n includeReactTransform ? createReactTransformPlugin() : null,\n createTailwindPlugin(options),\n ].filter(Boolean);\n}\n\nfunction createAgentNativeConfig(\n options: ClientConfigOptions | AgentNativeVitePluginOptions = {},\n command?: AgentNativeViteCommand,\n userConfig: UserConfig = {},\n): UserConfig {\n const cwd = process.cwd();\n\n // Workspace env fallback. If this app is inside a workspace, tell Vite to\n // also look for .env files at the workspace root. Per-app .env still wins\n // (Vite's loadEnv merges in precedence order — app dir is loaded after).\n const workspaceRoot = findWorkspaceRoot(cwd);\n const envDir = workspaceRoot && workspaceRoot !== cwd ? workspaceRoot : cwd;\n\n // Preload workspace-root .env into process.env so Nitro server code sees\n // shared keys during dev (Nitro reads process.env, not vite's envDir).\n if (workspaceRoot && workspaceRoot !== cwd) {\n try {\n const dotenv = require(\"dotenv\");\n dotenv.config({\n path: path.join(workspaceRoot, \".env\"),\n override: false,\n // Suppress the dotenv v17 tip line — this loader fires alongside\n // utils.ts loadEnv() during dev startup and would otherwise emit a\n // duplicate \"[dotenv] injecting env\" message.\n quiet: true,\n });\n } catch {}\n }\n\n const { base } = getConfiguredAppBasePath();\n const isWorkspaceChild = process.env.AGENT_NATIVE_WORKSPACE === \"1\";\n const monorepoCoreAllow = [\n path.resolve(cwd, \"../../packages/core\"),\n path.resolve(cwd, \"../core\"),\n ].filter((candidate) => fs.existsSync(path.join(candidate, \"package.json\")));\n const monorepoNodeModulesAllow = [\n path.resolve(cwd, \"../../node_modules\"),\n ].filter((candidate) => fs.existsSync(candidate));\n\n // Workspace-core (enterprise monorepo): pull its directory into Vite's\n // file watcher + module graph so edits to its TS sources hot-reload the\n // dev server, and its package name into ssr.noExternal so the dynamic\n // import in framework-request-handler.ts goes through Vite's transform\n // pipeline (TypeScript, SSR HMR, the works).\n const workspaceCore = findWorkspaceCoreSync(cwd);\n const workspaceCoreFsAllow = workspaceCore\n ? [\n workspaceCore.packageDir,\n // Also allow the workspace root's node_modules so Vite can serve\n // pnpm-hoisted transitive deps (e.g. recharts, es-toolkit) as native\n // ESM when they are excluded from the Rolldown optimizer.\n path.join(workspaceCore.workspaceRoot, \"node_modules\"),\n ]\n : [];\n const workspaceNodeModulesAllow = isWorkspaceChild\n ? [path.resolve(cwd, \"../../node_modules\")]\n : [];\n const packageWorkspaceRoot = workspaceRoot ?? findPnpmWorkspaceRoot(cwd);\n const localWorkspacePackageDeps = findLocalWorkspacePackageDeps(\n cwd,\n packageWorkspaceRoot,\n );\n const localWorkspacePackageAllow = localWorkspacePackageDeps.map(\n (pkg) => pkg.packageDir,\n );\n const localWorkspacePackageResolveAliases = localWorkspacePackageAliases(\n localWorkspacePackageDeps,\n );\n const workspaceCoreNoExternal = workspaceCore\n ? [new RegExp(`^${escapeRegex(workspaceCore.packageName)}(/.*)?$`)]\n : [];\n const localWorkspacePackageNoExternal = localWorkspacePackageDeps.map(\n (pkg) => new RegExp(`^${escapeRegex(pkg.packageName)}(/.*)?$`),\n );\n const forcePollingWatch = process.env.CHOKIDAR_USEPOLLING === \"1\";\n const pollingWatchInterval = Number(process.env.CHOKIDAR_INTERVAL ?? 1000);\n const userWatch = userConfig.server?.watch ?? {};\n\n return {\n logLevel:\n options.logLevel ??\n userConfig.logLevel ??\n (isWorkspaceChild ? \"warn\" : undefined),\n envDir,\n base,\n define: {\n ...(userConfig.define ?? {}),\n ...(options.define ?? {}),\n __AGENT_NATIVE_BUILD_GA_MEASUREMENT_ID__: JSON.stringify(\n process.env.GA_MEASUREMENT_ID?.trim() || \"\",\n ),\n // Framework route warmup controls how SSR `.data` routes are fetched:\n // ordinary fetches keep them CDN-cacheable, while native prefetch headers\n // can be refused before the CDN/origin sees the request. Keep this value\n // authoritative even if app config provides its own `define` entries.\n __AGENT_NATIVE_ROUTE_WARMUP_CONFIG__: JSON.stringify(\n normalizeAgentNativeRouteWarmupConfig(options.routeWarmup),\n ),\n __AGENT_NATIVE_MCP_INTEGRATIONS_CONFIG__: JSON.stringify(\n normalizeMcpIntegrationsConfig(options.mcpIntegrations),\n ),\n },\n server: {\n ...(userConfig.server ?? {}),\n host: userConfig.server?.host ?? \"::\",\n port: options.port ?? userConfig.server?.port ?? 8080,\n allowedHosts: options.allowedHosts ??\n userConfig.server?.allowedHosts ?? [\n \".ngrok-free.dev\",\n \".ngrok-free.app\",\n \".ngrok.io\",\n \".trycloudflare.com\",\n ],\n watch: {\n ...userWatch,\n ignored: [\n ...DEFAULT_VITE_WATCH_IGNORES,\n ...arrayFrom((userWatch as { ignored?: any })?.ignored),\n ],\n ...(forcePollingWatch\n ? {\n usePolling: true,\n interval: Number.isFinite(pollingWatchInterval)\n ? pollingWatchInterval\n : 1000,\n }\n : {}),\n },\n fs: {\n ...(userConfig.server?.fs ?? {}),\n allow: [\n \".\",\n ...monorepoCoreAllow,\n ...monorepoNodeModulesAllow,\n ...workspaceCoreFsAllow,\n ...localWorkspacePackageAllow,\n ...workspaceNodeModulesAllow,\n ...(userConfig.server?.fs?.allow ?? []),\n ...(options.fsAllow ?? []),\n ],\n deny: [\n \".env\",\n \".env.*\",\n \"*.{crt,pem}\",\n \"**/.git/**\",\n ...(userConfig.server?.fs?.deny ?? []),\n ...(options.fsDeny ?? []),\n ],\n },\n },\n build: {\n ...(userConfig.build ?? {}),\n outDir: options.outDir ?? userConfig.build?.outDir ?? \"dist/spa\",\n // Vite 8 defaults CSS minification to Lightning CSS, which collapses a\n // `backdrop-filter` + `-webkit-backdrop-filter` pair down to only the\n // prefixed form. Chrome ignores that, so glass effects disappear in\n // production. Keep esbuild as the CSS minifier and target Safari 18+ so\n // the standard property survives the production pipeline.\n cssMinify: userConfig.build?.cssMinify ?? \"esbuild\",\n cssTarget: userConfig.build?.cssTarget ?? [\"es2020\", \"safari18\"],\n },\n // Bundle all non-Node.js deps into the production SSR server build.\n // Edge runtimes (CF Workers, Deno) don't have node_modules at runtime.\n // In dev, React Router's Vite Environment runner expects CJS packages\n // like React to stay external; forcing them through the module runner\n // raises `module is not defined`.\n ssr: isBuildCommand(command)\n ? {\n ...(userConfig.ssr ?? {}),\n noExternal: /^(?!node:)/,\n // Pick the workspace-core's compiled `dist/` exports in prod —\n // Node-style `default` condition matches what edge runtimes (CF\n // Workers, Deno) can actually load. Without this, Vite's prod\n // build inherits the dev-condition src/ entry and ships unbuilt\n // TypeScript into the worker.\n resolve: {\n ...((\n userConfig.ssr as\n | { resolve?: Record<string, unknown> }\n | undefined\n )?.resolve ?? {}),\n conditions: [\"node\", \"module\", \"import\", \"default\"],\n externalConditions: [\"node\", \"module\", \"import\", \"default\"],\n },\n }\n : {\n ...(userConfig.ssr ?? {}),\n // Vite already sets `development` in the dev resolve conditions,\n // so the workspace-core template's exports.development → src/\n // entry is picked automatically — Vite handles TS compilation\n // and triggers a server restart when those files change.\n noExternal: [\n /^@agent-native\\/core(\\/.*)?$/,\n // Keep React Router in Vite's SSR module graph so resolve.dedupe\n // can force root.tsx and core's shared entry-server through the\n // same FrameworkContext instance.\n ...(hasDep(\"react-router\", cwd) ? [/^react-router(\\/.*)?$/] : []),\n // Radix UI primitives are transitive deps of @agent-native/core\n // (used by FeedbackButton, AgentSidebar, ShareDialog, etc.). When\n // a consumer app SSRs a component that imports Radix, Node's\n // externalized resolver can't find @radix-ui/* from the app cwd\n // because pnpm doesn't hoist transitive deps. Bundling them\n // through Vite resolves them via the workspace store.\n /^@radix-ui\\//,\n // scheduling ships TypeScript-compiled dist files that contain literal\n // `@/` path-alias imports (e.g. `import { Input } from\n // \"@/components/ui/input\"`). In standalone (published) mode Node\n // treats the package as an external CJS dep and can't resolve\n // `@/components`. Adding it to noExternal makes Vite process it\n // through the module pipeline, where the consumer app's `@` →\n // `./app` alias is already registered.\n ...(hasDep(\"@agent-native/scheduling\", cwd)\n ? [/^@agent-native\\/scheduling(\\/.*)?$/]\n : []),\n ...workspaceCoreNoExternal,\n ...localWorkspacePackageNoExternal,\n ...arrayFrom((userConfig.ssr as { noExternal?: any })?.noExternal),\n ],\n external: [\n \"react\",\n \"react-dom\",\n \"react-dom/server\",\n ...arrayFrom((userConfig.ssr as { external?: any })?.external),\n ],\n },\n optimizeDeps: {\n ...(userConfig.optimizeDeps ?? {}),\n include: [\n ...getDefaultOptimizeDeps(cwd),\n ...(hasDep(\"@agent-native/pinpoint\", cwd)\n ? [\"@agent-native/pinpoint/react\"]\n : []),\n ...(userConfig.optimizeDeps?.include ?? []),\n ...(options.optimizeDeps?.include ?? []),\n ],\n // In monorepo mode: explicitly exclude @agent-native/core subpaths so\n // Vite never prebundles them from dist/. The source alias above\n // (`getCoreSourceAliases`) resolves every import to src/ on every\n // request, so HMR picks up new exports immediately. Without exclude,\n // the prebundle is built from dist/ once at startup and silently\n // serves stale code even after the source / dist is updated.\n exclude: [\n ...(findCoreSrcDir(cwd) !== null ? CORE_CLIENT_SUBPATHS : []),\n ...(userConfig.optimizeDeps?.exclude ?? []),\n ...(options.optimizeDeps?.exclude ?? []),\n ],\n },\n resolve: {\n ...(userConfig.resolve ?? {}),\n // Dedupe all client-side packages that core shares with the consuming\n // app. In pnpm monorepos, core's devDependencies can install separate\n // copies (linked to different React versions). Without deduping, each\n // copy creates its own React context — QueryClientProvider, RouterProvider,\n // Radix, etc. — causing \"No provider\" crashes at runtime.\n dedupe: [\n ...getClientDedupe(cwd),\n ...arrayFrom((userConfig.resolve as { dedupe?: any })?.dedupe),\n ],\n alias: [\n // Published npm installs: one react-router instance for app + core.\n ...getReactRouterAliases(cwd),\n // In monorepo dev: resolve @agent-native/core to source for HMR.\n // Uses regex with $ anchor for exact matching to prevent\n // @agent-native/core from prefix-matching @agent-native/core/client.\n ...getCoreSourceAliases(cwd),\n ...localWorkspacePackageResolveAliases,\n // Standard path aliases (prefix matching is fine here)\n { find: \"@\", replacement: path.resolve(cwd, \"./app\") },\n { find: \"@shared\", replacement: path.resolve(cwd, \"./shared\") },\n ...Object.entries(options.aliases ?? {}).map(([find, replacement]) => ({\n find,\n replacement,\n })),\n ...aliasArrayFrom((userConfig.resolve as { alias?: unknown })?.alias),\n ],\n },\n };\n}\n\n/**\n * Agent-Native's Vite plugin preset.\n *\n * Use this in ordinary Vite configs so `vite.config.ts` keeps Vite's native\n * `UserConfig` type surface:\n *\n * ```ts\n * import { defineConfig } from \"vite\";\n * import { reactRouter } from \"@react-router/dev/vite\";\n * import { agentNative } from \"@agent-native/core/vite\";\n *\n * export default defineConfig({\n * plugins: [reactRouter(), agentNative({ ssrStubs: [\"shiki\"] })],\n * });\n * ```\n */\nexport function agentNative(\n options: AgentNativeVitePluginOptions = {},\n): Plugin[] {\n return [\n {\n name: \"agent-native-config\",\n enforce: \"pre\",\n config(config: UserConfig, env: ConfigEnv) {\n return createAgentNativeConfig(options, env.command, config);\n },\n },\n ...createAgentNativePlugins(options, {\n includeReactTransform: options.legacySpa === true,\n useServeOnlyNitroPlugin: true,\n }),\n ] as Plugin[];\n}\n\n/**\n * Create the client Vite config with sensible agent-native defaults.\n *\n * @deprecated Prefer `defineConfig` from `vite` plus the `agentNative()` plugin\n * preset. This compatibility wrapper remains for existing templates.\n */\nexport function defineConfig(options: ClientConfigOptions = {}): UserConfig {\n const includeReactTransform =\n !hasReactRouterPlugin(options.plugins) && !options.reactRouter;\n return {\n ...createAgentNativeConfig(options),\n plugins: createAgentNativePlugins(options, {\n includeReactTransform,\n userPlugins: options.plugins,\n }),\n };\n}\n\nexport {\n getClientDedupe as _getClientDedupe,\n getDefaultOptimizeDeps as _getDefaultOptimizeDeps,\n findCorePackageRoot as _findCorePackageRoot,\n getReactRouterAliases as _getReactRouterAliases,\n};\n"]}