@agent-native/core 0.79.12 → 0.79.15

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 (285) hide show
  1. package/corpus/README.md +2 -2
  2. package/corpus/core/CHANGELOG.md +19 -0
  3. package/corpus/core/docs/content/locales/zh-TW/a2a-protocol.md +68 -68
  4. package/corpus/core/docs/content/locales/zh-TW/actions.md +82 -82
  5. package/corpus/core/docs/content/locales/zh-TW/agent-mentions.md +22 -22
  6. package/corpus/core/docs/content/locales/zh-TW/agent-surfaces.md +82 -82
  7. package/corpus/core/docs/content/locales/zh-TW/agent-teams.md +29 -29
  8. package/corpus/core/docs/content/locales/zh-TW/agent-web-surfaces.md +11 -11
  9. package/corpus/core/docs/content/locales/zh-TW/audit-log.md +16 -16
  10. package/corpus/core/docs/content/locales/zh-TW/authentication.md +32 -32
  11. package/corpus/core/docs/content/locales/zh-TW/automations.md +32 -32
  12. package/corpus/core/docs/content/locales/zh-TW/blueprint-installer.md +19 -19
  13. package/corpus/core/docs/content/locales/zh-TW/cli-adapters.md +17 -17
  14. package/corpus/core/docs/content/locales/zh-TW/client.md +62 -62
  15. package/corpus/core/docs/content/locales/zh-TW/cloneable-saas.md +32 -32
  16. package/corpus/core/docs/content/locales/zh-TW/code-agents-ui.md +91 -91
  17. package/corpus/core/docs/content/locales/zh-TW/components.md +51 -51
  18. package/corpus/core/docs/content/locales/zh-TW/context-awareness.md +66 -66
  19. package/corpus/core/docs/content/locales/zh-TW/creating-templates.md +39 -39
  20. package/corpus/core/docs/content/locales/zh-TW/cross-app-sso.md +29 -29
  21. package/corpus/core/docs/content/locales/zh-TW/database.md +21 -21
  22. package/corpus/core/docs/content/locales/zh-TW/deployment.md +37 -37
  23. package/corpus/core/docs/content/locales/zh-TW/dispatch.md +43 -43
  24. package/corpus/core/docs/content/locales/zh-TW/drop-in-agent.md +34 -34
  25. package/corpus/core/docs/content/locales/zh-TW/durable-resume.md +18 -18
  26. package/corpus/core/docs/content/locales/zh-TW/embedding-sdk.md +73 -73
  27. package/corpus/core/docs/content/locales/zh-TW/evals.md +16 -16
  28. package/corpus/core/docs/content/locales/zh-TW/extensions.md +81 -81
  29. package/corpus/core/docs/content/locales/zh-TW/external-agents.md +146 -146
  30. package/corpus/core/docs/content/locales/zh-TW/faq.md +43 -43
  31. package/corpus/core/docs/content/locales/zh-TW/file-uploads.md +11 -11
  32. package/corpus/core/docs/content/locales/zh-TW/frames.md +33 -33
  33. package/corpus/core/docs/content/locales/zh-TW/getting-started.md +28 -28
  34. package/corpus/core/docs/content/locales/zh-TW/harness-agents.md +78 -78
  35. package/corpus/core/docs/content/locales/zh-TW/human-approval.md +27 -27
  36. package/corpus/core/docs/content/locales/zh-TW/internationalization.md +19 -19
  37. package/corpus/core/docs/content/locales/zh-TW/key-concepts.md +68 -68
  38. package/corpus/core/docs/content/locales/zh-TW/local-file-mode.md +50 -50
  39. package/corpus/core/docs/content/locales/zh-TW/mcp-apps.md +38 -38
  40. package/corpus/core/docs/content/locales/zh-TW/mcp-clients.md +67 -67
  41. package/corpus/core/docs/content/locales/zh-TW/mcp-protocol.md +50 -50
  42. package/corpus/core/docs/content/locales/zh-TW/messaging.md +99 -99
  43. package/corpus/core/docs/content/locales/zh-TW/migration-workbench.md +6 -6
  44. package/corpus/core/docs/content/locales/zh-TW/multi-app-workspace.md +39 -39
  45. package/corpus/core/docs/content/locales/zh-TW/multi-tenancy.md +7 -7
  46. package/corpus/core/docs/content/locales/zh-TW/native-chat-ui.md +38 -38
  47. package/corpus/core/docs/content/locales/zh-TW/notifications.md +23 -23
  48. package/corpus/core/docs/content/locales/zh-TW/observability.md +49 -49
  49. package/corpus/core/docs/content/locales/zh-TW/observational-memory.md +23 -23
  50. package/corpus/core/docs/content/locales/zh-TW/onboarding.md +40 -40
  51. package/corpus/core/docs/content/locales/zh-TW/plan-plugin.md +37 -37
  52. package/corpus/core/docs/content/locales/zh-TW/pr-visual-recap.md +72 -72
  53. package/corpus/core/docs/content/locales/zh-TW/processors.md +17 -17
  54. package/corpus/core/docs/content/locales/zh-TW/progress.md +15 -15
  55. package/corpus/core/docs/content/locales/zh-TW/pure-agent-apps.md +10 -10
  56. package/corpus/core/docs/content/locales/zh-TW/real-time-collaboration.md +103 -103
  57. package/corpus/core/docs/content/locales/zh-TW/recurring-jobs.md +19 -19
  58. package/corpus/core/docs/content/locales/zh-TW/routing.md +9 -9
  59. package/corpus/core/docs/content/locales/zh-TW/sandbox-adapters.md +48 -48
  60. package/corpus/core/docs/content/locales/zh-TW/security.md +49 -49
  61. package/corpus/core/docs/content/locales/zh-TW/server.md +47 -47
  62. package/corpus/core/docs/content/locales/zh-TW/sharing.md +22 -22
  63. package/corpus/core/docs/content/locales/zh-TW/skills-guide.md +46 -46
  64. package/corpus/core/docs/content/locales/zh-TW/template-analytics.md +40 -40
  65. package/corpus/core/docs/content/locales/zh-TW/template-assets.md +69 -69
  66. package/corpus/core/docs/content/locales/zh-TW/template-brain.md +81 -81
  67. package/corpus/core/docs/content/locales/zh-TW/template-calendar.md +40 -40
  68. package/corpus/core/docs/content/locales/zh-TW/template-chat.md +27 -27
  69. package/corpus/core/docs/content/locales/zh-TW/template-clips.md +85 -85
  70. package/corpus/core/docs/content/locales/zh-TW/template-content.md +65 -66
  71. package/corpus/core/docs/content/locales/zh-TW/template-design.md +29 -29
  72. package/corpus/core/docs/content/locales/zh-TW/template-dispatch.md +51 -51
  73. package/corpus/core/docs/content/locales/zh-TW/template-forms.md +25 -25
  74. package/corpus/core/docs/content/locales/zh-TW/template-mail.md +71 -71
  75. package/corpus/core/docs/content/locales/zh-TW/template-plan.md +92 -92
  76. package/corpus/core/docs/content/locales/zh-TW/template-slides.md +52 -52
  77. package/corpus/core/docs/content/locales/zh-TW/template-videos.md +30 -30
  78. package/corpus/core/docs/content/locales/zh-TW/tracking.md +29 -29
  79. package/corpus/core/docs/content/locales/zh-TW/using-your-agent.md +18 -18
  80. package/corpus/core/docs/content/locales/zh-TW/voice-input.md +19 -19
  81. package/corpus/core/docs/content/locales/zh-TW/what-is-agent-native.md +61 -61
  82. package/corpus/core/docs/content/locales/zh-TW/workspace-connections.md +41 -41
  83. package/corpus/core/docs/content/locales/zh-TW/workspace-management.md +27 -27
  84. package/corpus/core/docs/content/locales/zh-TW/workspace.md +58 -58
  85. package/corpus/core/docs/content/locales/zh-TW/writing-agent-instructions.md +41 -41
  86. package/corpus/core/docs/content/template-clips.md +48 -2
  87. package/corpus/core/package.json +2 -1
  88. package/corpus/core/src/client/AgentPanel.tsx +27 -3
  89. package/corpus/core/src/deploy/build.ts +417 -42
  90. package/corpus/core/src/deploy/route-discovery.ts +1 -1
  91. package/corpus/core/src/server/edge.ts +50 -0
  92. package/corpus/core/src/styles/agent-native.css +93 -0
  93. package/corpus/core/src/templates/default/app/i18n/zh-TW.ts +44 -44
  94. package/corpus/core/src/vite/client.ts +1 -0
  95. package/corpus/templates/analytics/app/components/layout/Layout.tsx +5 -3
  96. package/corpus/templates/analytics/app/i18n/zh-TW.ts +69 -70
  97. package/corpus/templates/analytics/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  98. package/corpus/templates/assets/app/components/layout/Layout.tsx +3 -3
  99. package/corpus/templates/assets/app/i18n/zh-TW.ts +82 -82
  100. package/corpus/templates/assets/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  101. package/corpus/templates/brain/app/components/layout/Layout.tsx +6 -4
  102. package/corpus/templates/brain/app/i18n/zh-TW.ts +90 -90
  103. package/corpus/templates/brain/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  104. package/corpus/templates/calendar/app/components/layout/AppLayout.tsx +1 -1
  105. package/corpus/templates/calendar/app/components/layout/Sidebar.tsx +1 -1
  106. package/corpus/templates/calendar/app/i18n/zh-TW.ts +57 -57
  107. package/corpus/templates/calendar/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  108. package/corpus/templates/calendar/server/lib/booking-og-fonts.ts +20 -6
  109. package/corpus/templates/calendar/server/lib/booking-og-image.ts +17 -9
  110. package/corpus/templates/chat/app/components/layout/Layout.tsx +5 -3
  111. package/corpus/templates/chat/app/i18n/zh-TW.ts +3 -3
  112. package/corpus/templates/chat/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  113. package/corpus/templates/clips/AGENTS.md +6 -0
  114. package/corpus/templates/clips/actions/delete-recording-permanent.ts +7 -1
  115. package/corpus/templates/clips/actions/get-recording-player-data.ts +44 -2
  116. package/corpus/templates/clips/actions/navigate.ts +2 -0
  117. package/corpus/templates/clips/actions/save-bug-report-context.ts +173 -0
  118. package/corpus/templates/clips/actions/view-screen.ts +58 -7
  119. package/corpus/templates/clips/app/components/recorder/storage-setup-card.tsx +9 -3
  120. package/corpus/templates/clips/app/hooks/use-navigation-state.ts +17 -0
  121. package/corpus/templates/clips/app/i18n/ar-SA.ts +31 -0
  122. package/corpus/templates/clips/app/i18n/de-DE.ts +32 -0
  123. package/corpus/templates/clips/app/i18n/en-US.ts +32 -0
  124. package/corpus/templates/clips/app/i18n/es-ES.ts +32 -0
  125. package/corpus/templates/clips/app/i18n/fr-FR.ts +32 -0
  126. package/corpus/templates/clips/app/i18n/hi-IN.ts +32 -0
  127. package/corpus/templates/clips/app/i18n/ja-JP.ts +31 -0
  128. package/corpus/templates/clips/app/i18n/ko-KR.ts +32 -0
  129. package/corpus/templates/clips/app/i18n/pt-BR.ts +32 -0
  130. package/corpus/templates/clips/app/i18n/zh-CN.ts +30 -0
  131. package/corpus/templates/clips/app/i18n/zh-TW.ts +461 -451
  132. package/corpus/templates/clips/app/routes/bug-report.done.tsx +126 -0
  133. package/corpus/templates/clips/app/routes/bug-report.tsx +222 -0
  134. package/corpus/templates/clips/app/routes/record.tsx +104 -12
  135. package/corpus/templates/clips/changelog/2026-06-26-brief-network-blips-no-longer-block-recording-or-wrongly-pro.md +6 -0
  136. package/corpus/templates/clips/changelog/2026-06-26-bug-report-recordings-can-keep-redacted-host-app-context-wit.md +6 -0
  137. package/corpus/templates/clips/changelog/2026-06-26-bug-report-widgets-can-launch-clips-recordings-from-embedded.md +6 -0
  138. package/corpus/templates/clips/changelog/2026-06-26-desktop-recording-keeps-connected-users-out-of-the-storage-s.md +6 -0
  139. package/corpus/templates/clips/changelog/2026-06-26-if-a-recording-can-t-be-uploaded-the-chrome-extension-now-sa.md +6 -0
  140. package/corpus/templates/clips/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  141. package/corpus/templates/clips/chrome-extension/public/manifest.json +9 -2
  142. package/corpus/templates/clips/chrome-extension/src/background.ts +43 -0
  143. package/corpus/templates/clips/chrome-extension/src/offscreen.ts +111 -6
  144. package/corpus/templates/clips/chrome-extension/src/popup.ts +18 -7
  145. package/corpus/templates/clips/desktop/src/app.tsx +53 -19
  146. package/corpus/templates/clips/server/db/schema.ts +26 -0
  147. package/corpus/templates/clips/server/lib/public-agent-context.ts +51 -0
  148. package/corpus/templates/clips/server/plugins/auth.ts +1 -0
  149. package/corpus/templates/clips/server/plugins/db.ts +28 -0
  150. package/corpus/templates/clips/server/routes/api/agent-context.json.get.ts +4 -1
  151. package/corpus/templates/clips/shared/bug-report.ts +161 -0
  152. package/corpus/templates/content/app/components/layout/Layout.tsx +10 -8
  153. package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +1 -1
  154. package/corpus/templates/content/app/i18n/zh-TW.ts +67 -66
  155. package/corpus/templates/content/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  156. package/corpus/templates/design/app/components/layout/Layout.tsx +3 -3
  157. package/corpus/templates/design/app/i18n/zh-TW.ts +44 -44
  158. package/corpus/templates/design/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  159. package/corpus/templates/dispatch/app/i18n/zh-TW.ts +5 -4
  160. package/corpus/templates/dispatch/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  161. package/corpus/templates/forms/app/components/layout/Layout.tsx +4 -2
  162. package/corpus/templates/forms/app/components/layout/Sidebar.tsx +1 -1
  163. package/corpus/templates/forms/app/i18n/zh-TW.ts +48 -48
  164. package/corpus/templates/forms/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  165. package/corpus/templates/macros/app/components/layout/AppLayout.tsx +3 -3
  166. package/corpus/templates/macros/app/i18n/zh-TW.ts +5 -5
  167. package/corpus/templates/macros/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  168. package/corpus/templates/mail/app/i18n/zh-TW.ts +83 -83
  169. package/corpus/templates/mail/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  170. package/corpus/templates/plan/app/components/layout/Layout.tsx +5 -3
  171. package/corpus/templates/plan/app/i18n/zh-TW.ts +69 -69
  172. package/corpus/templates/plan/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  173. package/corpus/templates/slides/app/components/layout/Layout.tsx +3 -3
  174. package/corpus/templates/slides/app/i18n/zh-TW.ts +64 -64
  175. package/corpus/templates/slides/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  176. package/corpus/templates/videos/app/components/layout/Layout.tsx +2 -2
  177. package/corpus/templates/videos/app/i18n/zh-TW.ts +54 -54
  178. package/corpus/templates/videos/changelog/2026-06-27-traditional-chinese-copy-uses-taiwan-terminology.md +6 -0
  179. package/dist/client/AgentPanel.d.ts.map +1 -1
  180. package/dist/client/AgentPanel.js +14 -4
  181. package/dist/client/AgentPanel.js.map +1 -1
  182. package/dist/collab/routes.d.ts +1 -1
  183. package/dist/deploy/build.d.ts +3 -1
  184. package/dist/deploy/build.d.ts.map +1 -1
  185. package/dist/deploy/build.js +361 -37
  186. package/dist/deploy/build.js.map +1 -1
  187. package/dist/deploy/route-discovery.d.ts +1 -1
  188. package/dist/deploy/route-discovery.js +1 -1
  189. package/dist/deploy/route-discovery.js.map +1 -1
  190. package/dist/resources/handlers.d.ts +2 -2
  191. package/dist/server/edge.d.ts +11 -0
  192. package/dist/server/edge.d.ts.map +1 -0
  193. package/dist/server/edge.js +11 -0
  194. package/dist/server/edge.js.map +1 -0
  195. package/dist/styles/agent-native.css +93 -0
  196. package/dist/templates/default/app/i18n/zh-TW.ts +44 -44
  197. package/dist/vite/client.d.ts.map +1 -1
  198. package/dist/vite/client.js +1 -0
  199. package/dist/vite/client.js.map +1 -1
  200. package/docs/content/locales/zh-TW/a2a-protocol.md +68 -68
  201. package/docs/content/locales/zh-TW/actions.md +82 -82
  202. package/docs/content/locales/zh-TW/agent-mentions.md +22 -22
  203. package/docs/content/locales/zh-TW/agent-surfaces.md +82 -82
  204. package/docs/content/locales/zh-TW/agent-teams.md +29 -29
  205. package/docs/content/locales/zh-TW/agent-web-surfaces.md +11 -11
  206. package/docs/content/locales/zh-TW/audit-log.md +16 -16
  207. package/docs/content/locales/zh-TW/authentication.md +32 -32
  208. package/docs/content/locales/zh-TW/automations.md +32 -32
  209. package/docs/content/locales/zh-TW/blueprint-installer.md +19 -19
  210. package/docs/content/locales/zh-TW/cli-adapters.md +17 -17
  211. package/docs/content/locales/zh-TW/client.md +62 -62
  212. package/docs/content/locales/zh-TW/cloneable-saas.md +32 -32
  213. package/docs/content/locales/zh-TW/code-agents-ui.md +91 -91
  214. package/docs/content/locales/zh-TW/components.md +51 -51
  215. package/docs/content/locales/zh-TW/context-awareness.md +66 -66
  216. package/docs/content/locales/zh-TW/creating-templates.md +39 -39
  217. package/docs/content/locales/zh-TW/cross-app-sso.md +29 -29
  218. package/docs/content/locales/zh-TW/database.md +21 -21
  219. package/docs/content/locales/zh-TW/deployment.md +37 -37
  220. package/docs/content/locales/zh-TW/dispatch.md +43 -43
  221. package/docs/content/locales/zh-TW/drop-in-agent.md +34 -34
  222. package/docs/content/locales/zh-TW/durable-resume.md +18 -18
  223. package/docs/content/locales/zh-TW/embedding-sdk.md +73 -73
  224. package/docs/content/locales/zh-TW/evals.md +16 -16
  225. package/docs/content/locales/zh-TW/extensions.md +81 -81
  226. package/docs/content/locales/zh-TW/external-agents.md +146 -146
  227. package/docs/content/locales/zh-TW/faq.md +43 -43
  228. package/docs/content/locales/zh-TW/file-uploads.md +11 -11
  229. package/docs/content/locales/zh-TW/frames.md +33 -33
  230. package/docs/content/locales/zh-TW/getting-started.md +28 -28
  231. package/docs/content/locales/zh-TW/harness-agents.md +78 -78
  232. package/docs/content/locales/zh-TW/human-approval.md +27 -27
  233. package/docs/content/locales/zh-TW/internationalization.md +19 -19
  234. package/docs/content/locales/zh-TW/key-concepts.md +68 -68
  235. package/docs/content/locales/zh-TW/local-file-mode.md +50 -50
  236. package/docs/content/locales/zh-TW/mcp-apps.md +38 -38
  237. package/docs/content/locales/zh-TW/mcp-clients.md +67 -67
  238. package/docs/content/locales/zh-TW/mcp-protocol.md +50 -50
  239. package/docs/content/locales/zh-TW/messaging.md +99 -99
  240. package/docs/content/locales/zh-TW/migration-workbench.md +6 -6
  241. package/docs/content/locales/zh-TW/multi-app-workspace.md +39 -39
  242. package/docs/content/locales/zh-TW/multi-tenancy.md +7 -7
  243. package/docs/content/locales/zh-TW/native-chat-ui.md +38 -38
  244. package/docs/content/locales/zh-TW/notifications.md +23 -23
  245. package/docs/content/locales/zh-TW/observability.md +49 -49
  246. package/docs/content/locales/zh-TW/observational-memory.md +23 -23
  247. package/docs/content/locales/zh-TW/onboarding.md +40 -40
  248. package/docs/content/locales/zh-TW/plan-plugin.md +37 -37
  249. package/docs/content/locales/zh-TW/pr-visual-recap.md +72 -72
  250. package/docs/content/locales/zh-TW/processors.md +17 -17
  251. package/docs/content/locales/zh-TW/progress.md +15 -15
  252. package/docs/content/locales/zh-TW/pure-agent-apps.md +10 -10
  253. package/docs/content/locales/zh-TW/real-time-collaboration.md +103 -103
  254. package/docs/content/locales/zh-TW/recurring-jobs.md +19 -19
  255. package/docs/content/locales/zh-TW/routing.md +9 -9
  256. package/docs/content/locales/zh-TW/sandbox-adapters.md +48 -48
  257. package/docs/content/locales/zh-TW/security.md +49 -49
  258. package/docs/content/locales/zh-TW/server.md +47 -47
  259. package/docs/content/locales/zh-TW/sharing.md +22 -22
  260. package/docs/content/locales/zh-TW/skills-guide.md +46 -46
  261. package/docs/content/locales/zh-TW/template-analytics.md +40 -40
  262. package/docs/content/locales/zh-TW/template-assets.md +69 -69
  263. package/docs/content/locales/zh-TW/template-brain.md +81 -81
  264. package/docs/content/locales/zh-TW/template-calendar.md +40 -40
  265. package/docs/content/locales/zh-TW/template-chat.md +27 -27
  266. package/docs/content/locales/zh-TW/template-clips.md +85 -85
  267. package/docs/content/locales/zh-TW/template-content.md +65 -66
  268. package/docs/content/locales/zh-TW/template-design.md +29 -29
  269. package/docs/content/locales/zh-TW/template-dispatch.md +51 -51
  270. package/docs/content/locales/zh-TW/template-forms.md +25 -25
  271. package/docs/content/locales/zh-TW/template-mail.md +71 -71
  272. package/docs/content/locales/zh-TW/template-plan.md +92 -92
  273. package/docs/content/locales/zh-TW/template-slides.md +52 -52
  274. package/docs/content/locales/zh-TW/template-videos.md +30 -30
  275. package/docs/content/locales/zh-TW/tracking.md +29 -29
  276. package/docs/content/locales/zh-TW/using-your-agent.md +18 -18
  277. package/docs/content/locales/zh-TW/voice-input.md +19 -19
  278. package/docs/content/locales/zh-TW/what-is-agent-native.md +61 -61
  279. package/docs/content/locales/zh-TW/workspace-connections.md +41 -41
  280. package/docs/content/locales/zh-TW/workspace-management.md +27 -27
  281. package/docs/content/locales/zh-TW/workspace.md +58 -58
  282. package/docs/content/locales/zh-TW/writing-agent-instructions.md +41 -41
  283. package/docs/content/template-clips.md +48 -2
  284. package/package.json +2 -1
  285. package/src/templates/default/app/i18n/zh-TW.ts +44 -44
@@ -1,33 +1,33 @@
1
1
  ---
2
- title: "特工表面"
3
- description: "將 Agent-Native 無頭使用,作為丰富的聊天,在現有應用程式中,或作為完整的代理本機應用程式。"
4
- search: "無頭代理丰富聊天完整應用程式 BYO 代理執行時 AgentChatRuntime 嵌入 actions MCP A2A HTTP CLI"
2
+ title: "代理表面"
3
+ description: "將 Agent-Native 無頭使用,作為豐富的聊天,在現有應用程式中,或作為完整的 Agent-Native 應用程式。"
4
+ search: "無頭代理豐富聊天完整應用程式 BYO 代理執行時 AgentChatRuntime 嵌入 actions MCP A2A HTTP CLI"
5
5
  ---
6
6
 
7
- # 特工表面
7
+ # 代理表面
8
8
 
9
- Agent-Native 是故意可組合的。不用太多就可以使用代理UI,
10
- 在沒有內置代理執行時的情況下使用 UI,或者將兩者一起用作完整的
9
+ Agent-Native 是故意可組合的。不用太多就可以使用代理 UI,
10
+ 在沒有內建代理執行時的情況下使用 UI,或者將兩者一起用作完整的
11
11
  應用程式。
12
12
 
13
13
  有用的選取方法不是先按協議。選取產品表面
14
14
  你想要,然後使用匹配的原語。
15
15
 
16
- | 表面 | 什么時候使用它 | 開始於 |
17
- | ----------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
18
- | **無頭代理** | 程式碼、作業、腳本、另一個應用程式或另一個代理應直接調用該工作。 | `agent-native create --headless`, `defineAction`, `agent-native agent`, HTTP, CLI, MCP, A2A |
19
- | **Agent-Native 上的丰富聊天** | 您想要由內置代理循環支持的獨立或嵌入式聊天。 | [Chat template](/docs/template-chat), `<AgentChatSurface>`, `<AssistantChat>` |
20
- | **與您的代理進行丰富的聊天** | 您在其他地方建置了代理,並想要 Agent-Native 的編寫器、腳本、工具卡和本機小部件。 | `AgentChatRuntime`, `<AssistantChat runtime={runtime}>` |
21
- | **嵌入式邊車** | 您已經有一個 SaaS 應用程式,並希望在其旁邊有一個具有頁面上下文和主機指令的代理。 | `createAgentNativeEmbeddedPlugin()`, `AgentNativeEmbedded` |
22
- | **完整應用程式** | 人類和代理應該共用持久的螢幕、資料、導覽和協作。 | 範本、actions、SQL 狀態、上下文感知 |
16
+ | 表面 | 什麼時候使用它 | 開始於 |
17
+ | ----------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
18
+ | **無頭代理** | 程式碼、作業、指令碼、另一個應用程式或另一個代理應直接呼叫該工作。 | `agent-native create --headless`, `defineAction`, `agent-native agent`, HTTP, CLI, MCP, A2A |
19
+ | **Agent-Native 上的豐富聊天** | 您想要由內建代理迴圈支援的獨立或嵌入式聊天。 | [Chat template](/docs/template-chat), `<AgentChatSurface>`, `<AssistantChat>` |
20
+ | **與您的代理進行豐富的聊天** | 您在其他地方建置了代理,並想要 Agent-Native 的編寫器、指令碼、工具卡和本機小工具。 | `AgentChatRuntime`, `<AssistantChat runtime={runtime}>` |
21
+ | **嵌入式邊車** | 您已經有一個 SaaS 應用程式,並希望在其旁邊有一個具有頁面脈絡和主機指令的代理。 | `createAgentNativeEmbeddedPlugin()`, `AgentNativeEmbedded` |
22
+ | **完整應用程式** | 人類和代理應該共用持久的螢幕、資料、導覽和協作。 | 範本、actions、SQL 狀態、脈絡感知 |
23
23
 
24
24
  這些是階段,而不是單獨的產品。工作流程可以以無頭方式啟動
25
25
  代理只需執行一個操作,就會以表格或圖表的形式出現在聊天中,然後成為
26
- 應用程式中的全屏,而不更改代理調用的操作。
26
+ 應用程式中的全螢幕,而不更改代理呼叫的操作。
27
27
 
28
28
  ```an-diagram title="表面光譜" summary="一個操作介面,四種產品形狀——每一種都增加了 UI,而不改變下面的操作。"
29
29
  {
30
- "html": "<div class=\"diagram-spectrum\"><div class=\"diagram-card\"><strong>Headless</strong><small class=\"diagram-muted\">actions、工作、腳本、其他代理</small></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&rarr;</div><div class=\"diagram-card\"><strong>丰富聊天</strong><small class=\"diagram-muted\">輸入框、轉錄、工具卡片</small></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&rarr;</div><div class=\"diagram-card\"><strong>嵌入式 sidecar</strong><small class=\"diagram-muted\">agent beside an existing app</small></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&rarr;</div><div class=\"diagram-card accent-card\"><span class=\"diagram-pill accent\">大部分 UI</span><strong>完整應用</strong><small class=\"diagram-muted\">持久螢幕、資料、協作</small></div></div><div class=\"diagram-base\" data-rough><span class=\"diagram-muted\">相同 actions · 相同 SQL · 相同代理循環</span></div>",
30
+ "html": "<div class=\"diagram-spectrum\"><div class=\"diagram-card\"><strong>Headless</strong><small class=\"diagram-muted\">actions、工作、指令碼、其他代理</small></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&rarr;</div><div class=\"diagram-card\"><strong>豐富聊天</strong><small class=\"diagram-muted\">輸入框、轉錄、工具卡片</small></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&rarr;</div><div class=\"diagram-card\"><strong>嵌入式 sidecar</strong><small class=\"diagram-muted\">agent beside an existing app</small></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&rarr;</div><div class=\"diagram-card accent-card\"><span class=\"diagram-pill accent\">大部分 UI</span><strong>完整應用</strong><small class=\"diagram-muted\">持久螢幕、資料、協作</small></div></div><div class=\"diagram-base\" data-rough><span class=\"diagram-muted\">相同 actions · 相同 SQL · 相同代理迴圈</span></div>",
31
31
  "css": ".diagram-spectrum{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}.diagram-spectrum .diagram-card{display:flex;flex-direction:column;gap:6px;padding:14px 16px;min-width:150px;flex:1}.diagram-spectrum .diagram-arrow{align-self:center;font-size:22px;line-height:1}.diagram-base{margin-top:12px;padding:10px 14px;text-align:center}"
32
32
  }
33
33
  ```
@@ -35,42 +35,42 @@ Agent-Native 是故意可組合的。不用太多就可以使用代理UI,
35
35
  ## 無頭代理 {#headless}
36
36
 
37
37
  當沒有人需要盯著自訂應用螢幕時,請使用無頭路徑
38
- 工作執行:計畫作業、整合、後端工作流程、CLI 循環,
39
- 另一個代理或調用 Agent-Native 的現有產品。
38
+ 工作執行:計畫作業、整合、後端工作流程、CLI 迴圈,
39
+ 另一個代理或呼叫 Agent-Native 的現有產品。
40
40
 
41
41
  這也是當**代理*是*產品**時要達到的形狀 -
42
- app-agent 循環是前門,而不是儀表板。您從
42
+ app-agent 迴圈是前門,而不是儀表板。您從
43
43
  終端、Slack、電子郵件、預定工作、其他代理或聊天 —“總結我的
44
- 未讀電子郵件,”“將每日指標發布到 Slack,”“查找符合以下條件的候選人
45
- 上週回複”——代理執行操作並返回結果
44
+ 未讀電子郵件,”“將每日指標發布到 Slack,”“尋找符合以下條件的候選項
45
+ 上週回覆”——代理執行操作並返回結果
46
46
  屬於。它仍然是一個真正的應用程式,而不是無狀態提示:actions,驗證工作階段,
47
- 應用程式狀態、線程/執行歷史紀錄、設定、憑證和共用紀錄全部實時
48
- 在SQL。
47
+ 應用程式狀態、對話串/執行歷史紀錄、設定、憑證和共用紀錄全部即時
48
+ SQL。
49
49
 
50
50
  在以下情況下選取此模式:
51
51
 
52
- - **工作在後台進行。**大部分價值是在使用者不注意的時候創造的 - 分類代理、每日報告代理、待命回應人員。
53
- - **輸出離開應用程式。**代理發布到 Slack、發送電子郵件或更新第三方系統;應用內沒有任何內容可供瀏覽。
54
- - **該域是一次性的。**研究機器人、摘要生成器、報告編寫器 - 沒有需要列表視圖的持久物件。
55
- - **您正在制作原型。**立即發送代理;如果使用者想要的話,稍後新增更丰富的 UI。
52
+ - **工作在背景進行。**大部分價值是在使用者不注意的時候創造的 - 分類代理、每日報告代理、待命回應人員。
53
+ - **輸出離開應用程式。**代理發布到 Slack、傳送電子郵件或更新第三方系統;應用內沒有任何內容可供瀏覽。
54
+ - **該域是一次性的。**研究機器人、摘要生成器、報告編寫器 - 沒有需要清單檢視的持久物件。
55
+ - **您正在製作原型。**立即傳送代理;如果使用者想要的話,稍後新增更豐富的 UI。
56
56
 
57
57
  如果您的產品是圍繞持久物件建置的,使用者會瀏覽、透視和
58
58
  分享 — 電子郵件、事件、檔案、圖表 — 選取 [full application](#full-application)
59
59
  或 [template](/docs/cloneable-saas) 代替;這些新增了完整的 UI _plus_ 代理。
60
60
 
61
- ### 盒子裡裝的是什么 {#in-the-box}
61
+ ### 盒子裡裝的是什麼 {#in-the-box}
62
62
 
63
- 無頭應用程式會跳過數週的儀表板工作,並且從一天開始就與渠道無關
63
+ 無頭應用程式會跳過數週的儀表板工作,並且從一天開始就與管道無關
64
64
  一個 - 同一代理從網路、Slack、Telegram、電子郵件和其他代理執行
65
- 因為一切都通過代理,而不是 UI。權衡是有的
66
- 沒有“一目了然地瀏覽所有內容”視圖;如果使用者需要,請混合模式和
67
- 新增小型狀態頁面或列表視圖。
65
+ 因為一切都透過代理,而不是 UI。權衡是有的
66
+ 沒有“一目了然地瀏覽所有內容”檢視;如果使用者需要,請混合模式和
67
+ 新增小型狀態頁面或清單檢視。
68
68
 
69
- 當新增內置的Chat shell時,框架提供了五種管理
69
+ 當新增內建的Chat shell時,框架提供了五種管理
70
70
  您不必建置的介面:**聊天**(主要輸入)、**工作區**
71
- (skills、內存、指令、子代理、連線的 MCP 伺服器、已調度
72
- jobs)、**作業歷史紀錄**、**線程歷史紀錄**和**設定**。這些通常是
73
- 足夠了——與它交談,看看它做了什么,設定它的行為方式。伸手去拿
71
+ (skills、記憶、指令、子代理、連線的 MCP 伺服器、已調度
72
+ jobs)、**作業歷史紀錄**、**對話串歷史紀錄**和**設定**。這些通常是
73
+ 足夠了——與它交談,看看它做了什麼,設定它的行為方式。伸手去拿
74
74
  [Chat](/docs/template-chat) 當您準備好新增瀏覽器 UI 時,或
75
75
  [Dispatch template](/docs/template-dispatch) 工作空間式啟動
76
76
  使用 Slack/Telegram、計畫作業和開箱即用的共用機密。
@@ -100,21 +100,21 @@ export default defineAction({
100
100
  });
101
101
  ```
102
102
 
103
- 然後可以調用一個操作:
103
+ 然後可以呼叫一個操作:
104
104
 
105
105
  - **HTTP** — `POST /_agent-native/actions/summarize-week`
106
106
  - **CLI** — `pnpm action summarize-week --formId form_123`
107
107
  - **應用程式代理 CLI** — `pnpm agent "Summarize form_123"`
108
108
  - **MCP** — 來自 Claude、ChatGPT、Codex、Cursor、OpenCode、Copilot 和其他 MCP 主機
109
- - **A2A** - 來自另一個代理本機應用程式或代理對等點
110
- - **UI** — 通過 `useActionQuery`、`useActionMutation` 或 `callAction`
111
- - **代理工具** - 來自內置聊天循環
109
+ - **A2A** - 來自另一個 Agent-Native 應用程式或代理對等點
110
+ - **UI** — 透過 `useActionQuery`、`useActionMutation` 或 `callAction`
111
+ - **代理工具** - 來自內建聊天迴圈
112
112
 
113
- ```an-api title="通過 HTTP 調用操作"
113
+ ```an-api title="透過 HTTP 呼叫操作"
114
114
  {
115
115
  "method": "POST",
116
116
  "path": "/_agent-native/actions/summarize-week",
117
- "summary": "通過 HTTP 按名稱調用任何操作",
117
+ "summary": "透過 HTTP 按名稱呼叫任何操作",
118
118
  "description": "Every `defineAction` is auto-mounted at `/_agent-native/actions/<name>`. The JSON body is validated against the action's zod schema before `run` executes.",
119
119
  "request": {
120
120
  "contentType": "application/json",
@@ -127,23 +127,23 @@ export default defineAction({
127
127
  }
128
128
  ```
129
129
 
130
- 這不是無資料庫或無狀態模式。應用程式代理循環存儲工作階段,
131
- 線程、執行、設定、憑證、應用程式狀態和共用紀錄
132
- SQL。本機開發預設為SQLite;託管無頭應用程式應使用
130
+ 這不是無資料庫或無狀態模式。應用程式代理迴圈儲存工作階段,
131
+ 對話串、執行、設定、憑證、應用程式狀態和共用紀錄
132
+ SQL。本機開發預設為 SQLite;託管無頭應用程式應使用
133
133
  持久 SQL 資料庫。
134
134
 
135
- 如果您需要從專案資料夾中無頭地執行整個代理循環,請使用:
135
+ 如果您需要從專案資料夾中無頭地執行整個代理迴圈,請使用:
136
136
 
137
137
  ```bash
138
138
  pnpm agent "Summarize this week's forms."
139
139
  ```
140
140
 
141
- 如果另一個應用程式或腳本需要調用整個代理,請使用
141
+ 如果另一個應用程式或指令碼需要呼叫整個代理,請使用
142
142
  `agentNative.invoke("analytics", "...")` 或 `agent-native invoke` CLI。那
143
143
  將跨應用工作保留在 A2A 路徑上,而本機工作保留在 actions 上。
144
144
 
145
- 工作人員、作業、整合 webhooks 和自訂主機可以驅動代理循環
146
- 直接通過伺服器API。這比 actions 級別低 - 您提供
145
+ 工作人員、作業、整合 webhooks 和自訂主機可以驅動代理迴圈
146
+ 直接透過伺服器 API。這比 actions 層級低 - 您提供
147
147
  您自己的引擎、模型、訊息、actions 和事件接收器:
148
148
 
149
149
  ```ts
@@ -152,28 +152,28 @@ import { runAgentLoop } from "@agent-native/core/server";
152
152
  await runAgentLoop({ engine, model, systemPrompt, actions, messages, send });
153
153
  ```
154
154
 
155
- 對於大多數應用程式,計畫的提示和整合 webhooks 已經調用此循環
156
- 給你。僅在建置自訂無頭主機時直接獲取它,eval
157
- 執行程序,或伺服器端編排表面 - 請參閱[伺服器 - 正式環境代理
158
- handler](/docs/server#agent-handler) 獲取完整簽名。
155
+ 對於大多數應用程式,計畫的提示和整合 webhooks 已經呼叫此迴圈
156
+ 給你。僅在建置自訂無頭主機時直接取得它,eval
157
+ 執行程式,或伺服器端編排表面 - 請參閱[伺服器 - 正式環境代理
158
+ handler](/docs/server#agent-handler) 取得完整簽名。
159
159
 
160
160
  ### 針對資料夾執行 {#folder-loop}
161
161
 
162
162
  如果您的目標是“針對此資料夾執行代理”,請從應用程式代理開始
163
- 在該資料夾中循環:建置無頭應用程式,新增 actions/指令,執行
163
+ 在該資料夾中迴圈:建置無頭應用程式,新增 actions/指令,執行
164
164
  `pnpm agent "..."`。這使工作保持在相同的操作/執行時/狀態內
165
165
  應用程式將在正式環境中使用的合同。
166
166
 
167
167
  外部編碼線束是用於嵌入 Claude 的獨立產品表面
168
168
  Agent-Native 應用內的程式碼、Codex、Pi、Cursor、Mastra 或類似執行時。
169
169
  在建置編碼代理產品時使用它們,而不是作為預設方式
170
- 啟動本機代理本機工作流程。
170
+ 啟動本機 Agent-Native 工作流程。
171
171
 
172
172
  ### 雲端儲存庫存取 {#cloud-repo-access}
173
173
 
174
174
  對於需要儲存庫存取的雲端無頭應用程式,請使用 GitHub 連線器
175
175
  加上代幣CRUD模型:列出儲存庫、搜尋檔案、讀取檔案、建立或
176
- 通過提供者範圍編輯檔案、刪除檔案和撤銷存取權限
176
+ 透過提供者範圍編輯檔案、刪除檔案和撤銷存取權限
177
177
  憑證。在本機開發中,明確設定目標儲存庫:
178
178
 
179
179
  ```bash
@@ -183,20 +183,20 @@ GITHUB_REPOSITORY=owner/repo pnpm agent "Read README.md and suggest the next act
183
183
  不要將虛擬機克隆或長期沙箱簽出視為主要雲端
184
184
  儲存庫存取模型。沙箱對於隔離程式碼執行仍然很重要,但是
185
185
  儲存庫存取應該是明確的、經過授權的、可審核的和可撤銷的
186
- 通過連線器層。
186
+ 透過連線器層。
187
187
 
188
188
  ### 共用工作階段和執行 {#sharing-runs}
189
189
 
190
190
  無頭工作階段和執行是持久物件。共用性應該分階段進行:
191
191
  首先閱讀/共用連結,以便隊友可以檢查經過清理的提示、輸出
192
192
  和執行狀態;稍後授予可寫協作權限,因此繼續執行,
193
- 批準 actions、編輯計畫或更改設定已完成
193
+ 核准 actions、編輯計畫或更改設定已完成
194
194
  顯式存取檢查。
195
195
 
196
- ## Agent-Native 上的丰富聊天 {#rich-chat}
196
+ ## Agent-Native 上的豐富聊天 {#rich-chat}
197
197
 
198
- 當使用者應該與代理交談時使用內置聊天,檢視工具調用,
199
- 批準工作、檢查本機結果並保留持久的線程歷史紀錄。
198
+ 當使用者應該與代理交談時使用內建聊天,檢視工具呼叫,
199
+ 核准工作、檢查本機結果並保留持久的對話串歷史紀錄。
200
200
 
201
201
  要獲得完整的應用程式起點,請使用 [Chat template](/docs/template-chat):
202
202
 
@@ -218,7 +218,7 @@ export default function ChatRoute() {
218
218
  在兩個表面上安裝`storageKey`,啟用`chatViewTransition`,並安裝
219
219
  布局中的聊天主頁面切換助手。聊天之外的普通應用內連結
220
220
  頁面可以將完整的聊天內容轉變為側邊欄,同時保持活動狀態
221
- 線程:
221
+ 對話串:
222
222
 
223
223
  ```tsx
224
224
  import {
@@ -266,16 +266,16 @@ export function ProjectChat({ threadId }: { threadId: string }) {
266
266
  }
267
267
  ```
268
268
 
269
- Actions 可以返回顯式的本機小部件結果,因此聊天輸出不僅僅是
270
- 文本。表格、圖表和鍵入的產品卡呈現為第一方 React
269
+ Actions 可以返回顯式的本機小工具結果,因此聊天輸出不僅僅是
270
+ 文字。表格、圖表和鍵入的產品卡呈現為第一方 React
271
271
  聊天中的元件,沒有 iframe。參見[Native 聊天介面](/docs/native-chat-ui)。
272
272
 
273
- ## 與您的代理進行丰富的聊天 {#byo-agent}
273
+ ## 與您的代理進行豐富的聊天 {#byo-agent}
274
274
 
275
275
  當您的代理已使用其他框架建置時,請使用此路徑
276
276
  執行時,你想要 Agent-Native 的聊天 UI 圍繞它。 `AgentChatRuntime` 是
277
277
  邊界:您的執行時流規範化事件,Agent-Native 呈現
278
- 作曲家、腳本、工具調用、批準、本機小部件和應用布局。
278
+ 撰寫器、指令碼、工具呼叫、核准、本機小工具和應用布局。
279
279
 
280
280
  ```tsx
281
281
  import {
@@ -296,13 +296,13 @@ export function SupportAgentChat() {
296
296
  Agent SDK、Vercel AI SDK 和 AG-UI,以及上面的標準化 HTTP 執行時
297
297
  對於任何其他代理(Mastra、Flue、Eve、LangGraph 或自訂服務)。 ACP 是
298
298
  不是最終使用者應用聊天或 A2A 傳輸,並且 Agent-Native 目前沒有
299
- 要求 A2UI 支持。 ACP 在一個特定位置受支持 - 駕駛本機
300
- 編碼代理(Gemini CLI,Claude程式碼,...)通過
299
+ 要求 A2UI 支援。 ACP 在一個特定位置受支援 - 駕駛本機
300
+ 編碼代理(Gemini CLI,Claude 程式碼,...)透過
301
301
  [harness layer](/docs/harness-agents#acp),這裡不作為聊天執行時。
302
302
 
303
303
  [Native 聊天介面 — BYO agent runtimes](/docs/native-chat-ui#byo-agent-runtimes)
304
304
  是事件形狀、執行時助手和 `chatUI` 的規範主頁面
305
- 工具結果元資料。將外部代理連線到聊天中時從這裡開始。
305
+ 工具結果中繼資料。將外部代理連線到聊天中時從這裡開始。
306
306
 
307
307
  ## 嵌入式邊車 {#embedded-sidecar}
308
308
 
@@ -322,7 +322,7 @@ export default createAgentNativeEmbeddedPlugin({
322
322
  });
323
323
  ```
324
324
 
325
- React sidecar 傳遞頁面上下文和主機指令:
325
+ React sidecar 傳遞頁面脈絡和主機指令:
326
326
 
327
327
  ```tsx
328
328
  import { AgentNativeEmbedded } from "@agent-native/core/client";
@@ -345,15 +345,15 @@ export function AppShell({ children }) {
345
345
  }
346
346
  ```
347
347
 
348
- ```an-diagram title="Sidecar 如何橋接到主機應用程式" summary="該外掛在伺服器端掛載 Agent-Native 路由; React sidecar 流輸入頁面上下文並輸出主機指令。"
348
+ ```an-diagram title="Sidecar 如何橋接到主機應用程式" summary="該外掛在伺服器端掛載 Agent-Native 路由; React sidecar 流輸入頁面脈絡並輸出主機指令。"
349
349
  {
350
- "html": "<div class=\"diagram-sidecar\"><div class=\"diagram-panel\"><strong>宿主應用</strong><small class=\"diagram-muted\">你現有的 SaaS</small><div class=\"diagram-node\">getContext()<br><small class=\"diagram-muted\">路由 · 選取</small></div><div class=\"diagram-node\">onNavigate / onRefresh<br><small class=\"diagram-muted\">宿主指令</small></div></div><div class=\"diagram-col-arrows\"><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&rarr;</div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&larr;</div></div><div class=\"diagram-panel accent-panel\"><span class=\"diagram-pill accent\">AgentNativeEmbedded</span><small class=\"diagram-muted\">agent + workspace</small><div class=\"diagram-box\" data-rough>Agent-Native 路由<br><small class=\"diagram-muted\">mounted by the server plugin</small></div></div></div>",
350
+ "html": "<div class=\"diagram-sidecar\"><div class=\"diagram-panel\"><strong>主機應用</strong><small class=\"diagram-muted\">你現有的 SaaS</small><div class=\"diagram-node\">getContext()<br><small class=\"diagram-muted\">路由 · 選取</small></div><div class=\"diagram-node\">onNavigate / onRefresh<br><small class=\"diagram-muted\">主機指令</small></div></div><div class=\"diagram-col-arrows\"><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&rarr;</div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&larr;</div></div><div class=\"diagram-panel accent-panel\"><span class=\"diagram-pill accent\">AgentNativeEmbedded</span><small class=\"diagram-muted\">agent + workspace</small><div class=\"diagram-box\" data-rough>Agent-Native 路由<br><small class=\"diagram-muted\">mounted by the server plugin</small></div></div></div>",
351
351
  "css": ".diagram-sidecar{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.diagram-sidecar .diagram-panel{display:flex;flex-direction:column;gap:8px;padding:14px 16px;min-width:200px}.diagram-sidecar .diagram-col-arrows{display:flex;flex-direction:column;gap:6px}.diagram-sidecar .diagram-arrow{font-size:22px;line-height:1}"
352
352
  }
353
353
  ```
354
354
 
355
355
  請參閱 [Embedding SDK](/docs/embedding-sdk) 以了解主機驗證、資料庫隔離,
356
- iframe/picker 模式,以及較低級別的橋 APIs。
356
+ iframe/picker 模式,以及較低階別的橋 APIs。
357
357
 
358
358
  ## 完整應用程式 {#full-application}
359
359
 
@@ -363,10 +363,10 @@ iframe/picker 模式,以及較低級別的橋 APIs。
363
363
  完整應用程式圍繞相同的操作和代理合同新增產品 UI:
364
364
 
365
365
  - **SQL 狀態** — 應用資料、導覽、設定和聊天歷史紀錄是持久的。
366
- - **上下文感知** - 代理知道目前路線、選取和聚焦物件。
367
- - **實時同步** - 代理更改會更新 UI,UI 更改會更新代理的上下文。
368
- - **深層連結** — 操作結果可以開啟正確的應用視圖。
369
- - **本機聊天小部件**表格、圖表、卡片、批準和鍵入的結果內聯顯示。
366
+ - **脈絡感知** - 代理知道目前路由、選取和聚焦物件。
367
+ - **即時同步** - 代理更改會更新 UI,UI 更改會更新代理的脈絡。
368
+ - **深層連結** — 操作結果可以開啟正確的應用檢視。
369
+ - **本機聊天小工具**表格、圖表、卡片、核准和鍵入的結果行內顯示。
370
370
 
371
371
  當您想要一個最小的應用程式時,請從 [Chat template](/docs/template-chat) 開始
372
372
  您的 actions 週圍,或來自域 [template](/docs/cloneable-saas),當您
@@ -376,14 +376,14 @@ iframe/picker 模式,以及較低級別的橋 APIs。
376
376
 
377
377
  | 如果您在想... | 選取 |
378
378
  | ---------------------------------------------------- | ------------------------- |
379
- | “我只需要一個可調用的工具或工作流程。” | 無頭代理 |
380
- | “我想要框架的代理,但是聊天應該是主要的UI。” | Agent-Native 上的丰富聊天 |
381
- | “我已經有一個代理;我需要一個完美的聊天 UI。” | 與您的代理進行丰富的聊天 |
379
+ | “我只需要一個可呼叫的工具或工作流程。” | 無頭代理 |
380
+ | “我想要框架的代理,但是聊天應該是主要的 UI。” | Agent-Native 上的豐富聊天 |
381
+ | “我已經有一個代理;我需要一個完美的聊天 UI。” | 與您的代理進行豐富的聊天 |
382
382
  | “我已經有一個 SaaS 應用程式;在它旁邊新增一個代理。” | 嵌入式邊車 |
383
383
  | “代理和 UI 應該作為產品一起進化。” | 完整應用程式 |
384
384
 
385
385
  保持合約較小:將持久操作定義為 actions,顯式返回
386
- 聊天需要丰富UI時的小部件結果,並且僅在使用者時新增全屏
386
+ 聊天需要豐富 UI 時的小工具結果,並且僅在使用者時新增全螢幕
387
387
  需要瀏覽、比較、設定或協作持久物件。
388
388
 
389
389
  ## 相關檔案 {#related-docs}
@@ -391,7 +391,7 @@ iframe/picker 模式,以及較低級別的橋 APIs。
391
391
  - [Actions](/docs/actions) — 定義一次無頭操作。
392
392
  - [Native 聊天介面](/docs/native-chat-ui) — 在聊天中呈現鍵入的操作結果。
393
393
  - [Drop-in Agent](/docs/drop-in-agent) — 安裝聊天、側邊欄或面板表面。
394
- - [Component API](/docs/components) — 較低級別的 React 聊天/作曲片段。
394
+ - [Component API](/docs/components) — 較低階別的 React 聊天/合成片段。
395
395
  - [Embedding SDK](/docs/embedding-sdk) — 將 Agent-Native 新增到現有應用。
396
- - [External Agents](/docs/external-agents) — 將 MCP 兼容主機連線到應用。
396
+ - [External Agents](/docs/external-agents) — 將 MCP 相容主機連線到應用。
397
397
  - [A2A Protocol](/docs/a2a-protocol) — 從其他座席呼叫座席。
@@ -1,26 +1,26 @@
1
1
  ---
2
2
  title: "代理團隊"
3
- description: "主代理代表向在自己的線程中執行的子代理工作,並在聊天中顯示為內嵌的實時預覽芯片。"
3
+ description: "主代理代表向在自己的對話串中執行的子代理工作,並在聊天中顯示為內嵌的即時預覽標籤。"
4
4
  ---
5
5
 
6
6
  # 代理團隊
7
7
 
8
- 代理聊天是一個**協調器**,而不是一個整體。當主代理完成一項更適合由專家負責的工作時——“用我的聲音寫這封電子郵件”、“執行 BigQuery 分析”、“檢視此 PR”——它會在自己的線程、工具和上下文中生成一個子代理。子代理在主聊天中顯示為實時預覽**芯片**;點選它以分頁形式開啟完整對話。
8
+ 代理聊天是一個**協調器**,而不是一個整體。當主代理完成一項更適合由專家負責的工作時——“用我的聲音寫這封電子郵件”、“執行 BigQuery 分析”、“檢視此 PR”——它會在自己的對話串、工具和脈絡中產生一個子代理。子代理在主聊天中顯示為即時預覽**標籤**;點選它以分頁形式開啟完整對話。
9
9
 
10
- 這可以保持主線程集中,讓子代理並行執行,並為您提供任何委派工作的清晰審計跟蹤。
10
+ 這可以保持主對話串集中,讓子代理並行執行,並為您提供任何委派工作的清晰審計跟蹤。
11
11
 
12
- Agent Teams 在核心執行管理器上執行:事件流並持續,中止通過 SQL 傳播,工作在無伺服器冷啟動中幸存。
12
+ Agent Teams 在核心執行管理器上執行:事件流並持續,中止透過 SQL 傳播,工作在無伺服器冷啟動中幸存。
13
13
 
14
14
  ## 心智模型 {#mental-model}
15
15
 
16
16
  - **主聊天** — 協調器。代表們,請閱讀您的請求。繁重的工作本身很少。
17
- - **子代理** — 使用自己的線程、自己的系統提示符、自己的工具集執行。每個對應到 [workspace](/docs/workspace) 中的“自訂代理”設定檔案。
18
- - **Chips** — 主聊天中內聯顯示的丰富預覽卡,顯示子代理的目前步驟、流輸出和最終摘要。預設折疊;點擊即可展開完整對話。
19
- - **雙向訊息傳遞** - 主代理可以向正在執行的子代理發送後續訊息;當子代理遇到模糊點時可以回複訊息。
17
+ - **子代理** — 使用自己的對話串、自己的系統提示符、自己的工具集執行。每個對應到 [workspace](/docs/workspace) 中的“自訂代理”設定檔案。
18
+ - **Chips** — 主聊天中行內顯示的豐富預覽卡,顯示子代理的目前步驟、流輸出和最終摘要。預設折疊;點選即可展開完整對話。
19
+ - **雙向訊息傳遞** - 主代理可以向正在執行的子代理傳送後續訊息;當子代理遇到模糊點時可以回覆訊息。
20
20
 
21
- 子代理狀態保留在 `application_state` SQL 表(在 `agent-task:<taskId>` 下)中,因此工作可以在無伺服器冷啟動中幸存並跨多個進程工作。
21
+ 子代理狀態保留在 `application_state` SQL 表(在 `agent-task:<taskId>` 下)中,因此工作可以在無伺服器冷啟動中幸存並跨多個行程工作。
22
22
 
23
- ```an-diagram title="協調員和專家" summary="主聊天委托給在自己的線程中執行並作為內聯芯片報告的子代理。"
23
+ ```an-diagram title="協調員和專家" summary="主聊天委托給在自己的對話串中執行並作為行內標籤報告的子代理。"
24
24
  {
25
25
  "html": "<div class=\"at-orc\"><div class=\"diagram-card main\"><span class=\"diagram-pill accent\">主聊天</span><small class=\"diagram-muted\">orchestrator &mdash; reads your request, delegates</small></div><div class=\"at-fan\"><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&darr;</div><div class=\"at-subs\"><div class=\"diagram-box\">程式碼評審<br><small class=\"diagram-muted\">own thread &amp; prompt</small></div><div class=\"diagram-box\">BigQuery 分析<br><small class=\"diagram-muted\">own tools</small></div><div class=\"diagram-box\">語音郵件<br><small class=\"diagram-muted\">own context</small></div></div></div><div class=\"diagram-pill\">each appears inline as a live chip &#8635;</div></div>",
26
26
  "css": ".at-orc{display:flex;flex-direction:column;align-items:center;gap:12px}.at-orc .diagram-card{padding:14px 18px;display:flex;flex-direction:column;gap:4px;align-items:center}.at-orc .at-fan{display:flex;flex-direction:column;align-items:center;gap:8px}.at-orc .diagram-arrow{font-size:22px}.at-orc .at-subs{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.at-orc .diagram-box{text-align:center}"
@@ -32,25 +32,25 @@ Agent Teams 在核心執行管理器上執行:事件流並持續,中止通
32
32
  工作出現時:
33
33
 
34
34
  - 需要不同的**系統提示**(專業的聲音或語氣,例如“程式碼審查”)。
35
- - 擁有一個**長時間執行**的工具鏈,會污染主要上下文。
35
+ - 擁有一個**長時間執行**的工具鏈,會污染主要脈絡。
36
36
  - 可以與主代理正在執行的其他工作**並行**執行。
37
37
  - 由一個**不同的團隊**擁有,該團隊已經擁有自訂代理設定檔案。
38
38
 
39
- 不要為了瑣碎的一次性工作而生成 - 直接調用操作。
39
+ 不要為了瑣碎的一次性工作而生成 - 直接呼叫操作。
40
40
 
41
- ## 調用子代理 {#invoking}
41
+ ## 呼叫子代理 {#invoking}
42
42
 
43
43
  啟動子代理的三種方法,從最簡單到最明確:
44
44
 
45
45
  ### 1。 `@mention` 自訂代理 {#mention}
46
46
 
47
- 使用者在聊天編輯器中鍵入 `@agent-name`。將出現工作區子代理的下拉列表。選取其中一個插入芯片;提交後,主代理將訊息委托給該子代理。
47
+ 使用者在聊天編輯器中鍵入 `@agent-name`。將出現工作區子代理的下拉清單。選取其中一個插入標籤;提交後,主代理將訊息委托給該子代理。
48
48
 
49
49
  自訂代理位於 `agents/<slug>.md` 的工作區中 — 一個帶有 YAML frontmatter 的 Markdown 檔案。格式請參見[Custom Agents](/docs/workspace#custom-agents)。
50
50
 
51
51
  ### 2。主代理自動委托 {#auto-delegate}
52
52
 
53
- 該框架為主代理提供了一個 `agent-teams` 工具。當模型確定工作適合已註冊的子代理設定檔案時,它會使用 `action: "spawn"` 和可選的 `agent` 參數調用該工具,該參數從 `agents/*.md` 命名設定檔案。出現一個芯片;子代理執行。主代理等待(或並行行動)並在子代理完成時合並結果。
53
+ 此框架為主代理提供了一個 `agent-teams` 工具。當模型確定工作適合已註冊的子代理設定檔案時,它會使用 `action: "spawn"` 和可選的 `agent` 參數呼叫該工具,該參數從 `agents/*.md` 命名設定檔案。出現一個標籤;子代理執行。主代理等待(或並行行動)並在子代理完成時合併結果。
54
54
 
55
55
  完整的 `agent-teams` 操作集是:
56
56
 
@@ -58,11 +58,11 @@ Agent Teams 在核心執行管理器上執行:事件流並持續,中止通
58
58
  | ------------- | -------------------------- |
59
59
  | `spawn` | 啟動新的子代理工作 |
60
60
  | `status` | 檢查正在執行的子代理的進度 |
61
- | `read-result` | 獲取完成的子代理的輸出 |
62
- | `send` | 向正在執行的子代理發送訊息 |
61
+ | `read-result` | 取得完成的子代理的輸出 |
62
+ | `send` | 向正在執行的子代理傳送訊息 |
63
63
  | `list` | 檢視目前使用者的所有工作 |
64
64
 
65
- ### 3。程序化生成 {#programmatic-spawn}
65
+ ### 3。程式化生成 {#programmatic-spawn}
66
66
 
67
67
  對於框架級整合,請使用 `@agent-native/core/server` 中的 `spawnTask()`:
68
68
 
@@ -81,23 +81,23 @@ const task = await spawnTask({
81
81
  });
82
82
  ```
83
83
 
84
- 大多數應用程式程式碼不會直接調用它 - 框架在 `@mentions` 和 `agent-teams` 工具的後台執行此操作。僅當您連線新的入口點(例如,啟動作為子代理執行的後台作業的按鈕)時,才需要使用 `spawnTask()`。
84
+ 大多數應用程式的程式碼不會直接呼叫它 - 框架在 `@mentions` 和 `agent-teams` 工具的背景執行此操作。僅當您連線新的入口點(例如,啟動作為子代理執行的背景作業的按鈕)時,才需要使用 `spawnTask()`。
85
85
 
86
86
  ## 工作生命週期 {#lifecycle}
87
87
 
88
- ```an-diagram title="spawnTask() 的作用" summary="每個spawn都會建立一個線程,將狀態儲存到SQL,並將芯片事件流式傳輸直至完成。"
88
+ ```an-diagram title="spawnTask() 的作用" summary="每個spawn都會建立一個對話串,將狀態儲存到 SQL,並將標籤事件流式傳輸直至完成。"
89
89
  {
90
90
  "html": "<div class=\"at-life\"><div class=\"diagram-box\"><code>spawnTask()</code></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&darr;</div><div class=\"diagram-card\"><span class=\"diagram-pill\">create thread</span><small class=\"diagram-muted\">new row in <code>chat_threads</code>, description as first message</small></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&darr;</div><div class=\"diagram-card\"><span class=\"diagram-pill\">persist state</span><small class=\"diagram-muted\"><code>agent-task:&lt;id&gt;</code> &rarr; <code>application_state</code>, status=running</small></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&darr;</div><div class=\"diagram-card\"><span class=\"diagram-pill accent\">stream</span><small class=\"diagram-muted\"><code>agent_task_started</code> &rarr; chip appears; <code>agent_task_step</code> &rarr; chip updates live</small></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&darr;</div><div class=\"diagram-card ok\"><span class=\"diagram-pill ok\">complete</span><small class=\"diagram-muted\">status=completed, write summary + preview, emit <code>agent_task_done</code></small></div></div>",
91
91
  "css": ".at-life{display:flex;flex-direction:column;align-items:stretch;gap:6px;max-width:560px}.at-life .diagram-card{display:flex;flex-direction:column;gap:3px;padding:10px 14px}.at-life .diagram-box{align-self:flex-start}.at-life .diagram-arrow{font-size:18px;align-self:center}"
92
92
  }
93
93
  ```
94
94
 
95
- 父代理可以隨時通過 `sendToTask(taskId, message)` 恢復子代理並進行後續操作。如果子代理發生錯誤,`markTaskErrored(taskId, reason)` 會紀錄失敗並將其呈現給使用者。
95
+ 父代理可以隨時透過 `sendToTask(taskId, message)` 恢復子代理並進行後續操作。如果子代理發生錯誤,`markTaskErrored(taskId, reason)` 會紀錄失敗並將其呈現給使用者。
96
96
 
97
97
  雙向訊息傳遞是持久的。執行子代理的父級後續操作是
98
- 通過工作生命週期交付;如果子代理無法在
98
+ 透過工作生命週期交付;如果子代理無法在
99
99
  目前步驟,它們應該保持排隊並在安全的地方應用
100
- 延續點。子代理也可以在需要澄清時回複訊息
100
+ 延續點。子代理也可以在需要澄清時回覆訊息
101
101
  而不是無形地阻塞。
102
102
 
103
103
  ## 讀取工作狀態 {#reading-state}
@@ -130,13 +130,13 @@ interface AgentTask {
130
130
 
131
131
  ## 自訂代理設定檔案 {#profiles}
132
132
 
133
- 子代理對應到自訂代理設定檔案 - 工作區中 `agents/<slug>.md` 處的 Markdown 檔案,這些檔案顯示在 `@mention` 下拉列表中並用作委派目標。 [Workspace — Custom Agents](/docs/workspace#custom-agents) 擁有完整格式(frontmatter、`tools`、`delegate-default`、模型覆蓋)。
133
+ 子代理對應到自訂代理設定檔案 - 工作區中 `agents/<slug>.md` 處的 Markdown 檔案,這些檔案顯示在 `@mention` 下拉清單中並用作委派目標。 [Workspace — Custom Agents](/docs/workspace#custom-agents) 擁有完整格式(frontmatter、`tools`、`delegate-default`、模型覆蓋)。
134
134
 
135
135
  ## 委托深度防護 {#depth-guard}
136
136
 
137
- 子代理可以產生子代理,這是一種失控/成本風險:無限的委托鏈可能會無限期地散開。該框架在伺服器端強制執行**委托深度**的硬上限,獨立於任何工具級防護。
137
+ 子代理可以產生子代理,這是一種失控/成本風險:無限的委托鏈可能會無限期地散開。此框架在伺服器端強制執行**委托深度**的硬上限,獨立於任何工具級防護。
138
138
 
139
- 頂級聊天深度為`0`。它生成的子代理深度為 `1`;該子代理可能會再次生成(深度 `2`);會建立深度 `3` 子代理的生成被 **拒絕**。預設上限為 **2**。
139
+ 頂級聊天深度為`0`。它產生的子代理深度為 `1`;該子代理可能會再次生成(深度 `2`);會建立深度 `3` 子代理的生成被 **拒絕**。預設上限為 **2**。
140
140
 
141
141
  ```an-diagram title="委派深度保護(預設上限 2)" summary="每一層都可能產生更深的一層,直到達到上限;超過它的生成將被伺服器端拒絕。"
142
142
  {
@@ -155,17 +155,17 @@ interface AgentTask {
155
155
  | ------------ | --------------------------------------------------------------------------------------------------- |
156
156
  | _(未設定)_ | `2`的預設上限。 |
157
157
  | `0` | **不能生成任何子代理** - 頂級代理完成所有工作。 |
158
- | `1`…`16` | 這么多級別的委派。 |
158
+ | `1`…`16` | 這么多層級的委派。 |
159
159
  | 無效/`>16` | 非整數/負/NaN值回退到`2`; `16` 以上的任何內容都會被固定到 `16`,因此拼寫錯誤永遠不會停用防護裝置。 |
160
160
 
161
161
  ```bash
162
162
  AGENT_NATIVE_MAX_SUBAGENT_DEPTH=1 # 允許分代理,但不能分代理
163
163
  ```
164
164
 
165
- 當子代理達到或低於上限時,框架會在其執行時上下文中注入一行,告訴它它的位置有多深以及是否可以進一步委托,以便模型適當地花費其預算。
165
+ 當子代理達到或低於上限時,框架會在其執行時脈絡中注入一行,告訴它它的位置有多深以及是否可以進一步委托,以便模型適本機花費其預算。
166
166
 
167
- ## 下一步是什么
167
+ ## 下一步是什麼
168
168
 
169
169
  - [**Workspace — Custom Agents**](/docs/workspace#custom-agents) — 設定檔案格式
170
170
  - [**A2A Protocol**](/docs/a2a-protocol) - 當“子代理”完全位於不同的應用程式中時
171
- - [**Actions**](/docs/actions) — 子代理調用的工具
171
+ - [**Actions**](/docs/actions) — 子代理呼叫的工具
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  title: "公開代理網路"
3
- description: "使公開路線可爬行、可讀、可引用,並可選取由代理調用 - robots.txt、llms.txt、markdown 鏡像、JSON-LD 和公開 MCP 表面。"
3
+ description: "使公開路由可爬行、可讀、可引用,並可選取由代理呼叫 - robots.txt、llms.txt、markdown 鏡像、JSON-LD 和公開 MCP 表面。"
4
4
  ---
5
5
 
6
6
  # 公開代理網路
7
7
 
8
- 公開代理網路使公開 Agent-Native 路由易於代理抓取、閱讀、引用和調用。目標不是公開每個應用程式端點。目標是為已經公開的頁面發布一個幹淨的公開介面,同時將私人資料和工具存取保留在顯式控制之下。
8
+ 公開代理網路使公開 Agent-Native 路由易於代理抓取、閱讀、引用和呼叫。目標不是公開每個應用程式端點。目標是為已經公開的頁面發布一個幹淨的公開介面,同時將私人資料和工具存取保留在顯式控制之下。
9
9
 
10
10
  檔案站點是參考實現。今天發貨:
11
11
 
@@ -14,12 +14,12 @@ description: "使公開路線可爬行、可讀、可引用,並可選取由代
14
14
  - `/llms.txt` 和 `/llms-full.txt` 用於代理友好的內容發現。
15
15
  - Markdown 鏡像,例如 `/docs/getting-started.md`。
16
16
  - 正式環境建置後公開檔案頁面的 `Accept: text/markdown` 回應。
17
- - JSON-LD 用於基礎組織、網站和頁面元資料。
17
+ - JSON-LD 用於基礎組織、網站和頁面中繼資料。
18
18
  - 審核 CLI (`npx @agent-native/core@latest audit-agent-web`),檢查上述所有內容。
19
19
 
20
- 設定 `publicMcp: true` 還會將選取加入的 actions 公開為公開 MCP 端點,允許外部代理直接調用它們(請參閱 [MCP Protocol](/docs/mcp-protocol))。
20
+ 設定 `publicMcp: true` 還會將選取加入的 actions 公開為公開 MCP 端點,允許外部代理直接呼叫它們(請參閱 [MCP Protocol](/docs/mcp-protocol))。
21
21
 
22
- ```an-diagram title="公開路由發布什么" summary="一條公開路線呈扇形展開,形成對代理人友好的代表。讀取路線與調用工具是分開的——工具存取保持選取加入。"
22
+ ```an-diagram title="公開路由發布什麼" summary="一條公開路由呈扇形展開,形成對代理友好的代表。讀取路由與呼叫工具是分開的——工具存取保持選取加入。"
23
23
  {
24
24
  "html": "<div class=\"diagram-web\"><div class=\"diagram-box\" data-rough>公開路由<br><small class=\"diagram-muted\">derived from route access settings</small></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&rarr;</div><div class=\"diagram-grid\"><span class=\"diagram-pill\">robots.txt</span><span class=\"diagram-pill\">sitemap.xml</span><span class=\"diagram-pill\">llms.txt</span><span class=\"diagram-pill\">.md mirror</span><span class=\"diagram-pill\">JSON-LD</span><span class=\"diagram-pill\">text/markdown</span></div><div class=\"diagram-arrow diagram-muted\" aria-hidden=\"true\">&rarr;</div><div class=\"diagram-col gate\"><span class=\"diagram-pill warn\">工具保持私人</span><small class=\"diagram-muted\">publicMcp + publicAgent.expose required</small></div></div>",
25
25
  "css": ".diagram-web{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.diagram-web .diagram-arrow{font-size:22px;line-height:1}.diagram-web .diagram-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.diagram-web .gate{display:flex;flex-direction:column;gap:4px;align-items:flex-start}"
@@ -28,7 +28,7 @@ description: "使公開路線可爬行、可讀、可引用,並可選取由代
28
28
 
29
29
  ## 設定 {#config}
30
30
 
31
- 在現有工作區應用設定下新增 `agentWeb`(在應用的 `package.json` 中的 `agent-native` 鍵下 — 或等效的 `workspace.agentWeb`、`agentWeb` 或 `root.agentWeb`)。公開路由列表仍然來源於應用程式的路由存取設定; `agentWeb` 控制公開表面如何呈現給代理。
31
+ 在現有工作區應用設定下新增 `agentWeb`(在應用的 `package.json` 中的 `agent-native` 鍵下 — 或等效的 `workspace.agentWeb`、`agentWeb` 或 `root.agentWeb`)。公開路由清單仍然來源於應用程式的路由存取設定; `agentWeb` 控制公開表面如何呈現給代理。
32
32
 
33
33
  ```json
34
34
  {
@@ -63,7 +63,7 @@ description: "使公開路線可爬行、可讀、可引用,並可選取由代
63
63
 
64
64
  代理 Web 發現遵循路由存取模型:
65
65
 
66
- - 公開應用程式公開除 `protectedPaths` 之外的所有路線。
66
+ - 公開應用程式公開除 `protectedPaths` 之外的所有路由。
67
67
  - 內部應用僅公開 `publicPaths`。
68
68
  - 代理可以讀取公開共用和表單頁面。
69
69
  - 提交的私人資料、經過驗證的儀表板和使用者/組織狀態永遠不會僅僅因為附近的頁面是公開的而包含在內。
@@ -72,7 +72,7 @@ description: "使公開路線可爬行、可讀、可引用,並可選取由代
72
72
 
73
73
  ## 公開頁面不是公開工具 {#public-tools}
74
74
 
75
- 公開頁面存取和公開工具存取是分開的。路線僅公開意味著代理可以將該路線讀取為 HTML、Markdown、站點地圖條目、llms 條目和結構化資料。
75
+ 公開頁面存取和公開工具存取是分開的。路由僅公開意味著代理可以將該路由讀取為 HTML、Markdown、站點地圖條目、llms 條目和結構化資料。
76
76
 
77
77
  ```an-callout
78
78
  {
@@ -81,7 +81,7 @@ description: "使公開路線可爬行、可讀、可引用,並可選取由代
81
81
  }
82
82
  ```
83
83
 
84
- 要通過公開代理協議公開操作,該操作必須選取加入:
84
+ 要透過公開代理協議公開操作,該操作必須選取加入:
85
85
 
86
86
  ```an-annotated-code title="在公開表面上選取一項安全行動"
87
87
  {
@@ -99,7 +99,7 @@ description: "使公開路線可爬行、可讀、可引用,並可選取由代
99
99
 
100
100
  ## 建置時檔案 {#build-time}
101
101
 
102
- `@agent-native/core/agent-web` 中的框架實用程序從一頁面列表生成通用檔案:
102
+ `@agent-native/core/agent-web` 中的框架實用程式從一頁面清單生成通用檔案:
103
103
 
104
104
  ```ts
105
105
  import {
@@ -154,7 +154,7 @@ npx @agent-native/core@latest audit-agent-web --url https://www.agent-native.com
154
154
 
155
155
  如果缺少所需的公開表面,審核將以非零值退出。
156
156
 
157
- ## 下一步是什么
157
+ ## 下一步是什麼
158
158
 
159
159
  - [**Actions**](/docs/actions) — 如何選取 actions 加入公開代理協議
160
160
  - [**MCP Protocol**](/docs/mcp-protocol) — `publicMcp: true` 啟用的 MCP 表面