@tencent-ai/agent-sdk 0.3.99 → 0.3.101

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 (471) hide show
  1. package/cli/CHANGELOG.md +50 -0
  2. package/cli/dist/codebuddy-headless.js +140 -131
  3. package/cli/dist/web-ui/assets/index-CIqmZV3y.js +440 -0
  4. package/cli/dist/web-ui/assets/index-Dt1puyHn.css +32 -0
  5. package/cli/dist/web-ui/docs/cn/cli/acp.md +152 -0
  6. package/cli/dist/web-ui/docs/cn/cli/agent-teams.md +327 -0
  7. package/cli/dist/web-ui/docs/cn/cli/bash-sandboxing.md +290 -0
  8. package/cli/dist/web-ui/docs/cn/cli/best-practices.md +554 -0
  9. package/cli/dist/web-ui/docs/cn/cli/channels-reference.md +293 -0
  10. package/cli/dist/web-ui/docs/cn/cli/channels.md +215 -0
  11. package/cli/dist/web-ui/docs/cn/cli/checkpointing.md +51 -0
  12. package/cli/dist/web-ui/docs/cn/cli/cli-reference.md +187 -0
  13. package/cli/dist/web-ui/docs/cn/cli/common-workflows.md +1013 -0
  14. package/cli/dist/web-ui/docs/cn/cli/costs.md +174 -0
  15. package/cli/dist/web-ui/docs/cn/cli/devcontainer.md +553 -0
  16. package/cli/dist/web-ui/docs/cn/cli/env-vars.md +326 -0
  17. package/cli/dist/web-ui/docs/cn/cli/gitlab-ci-cd.md +357 -0
  18. package/cli/dist/web-ui/docs/cn/cli/headless.md +258 -0
  19. package/cli/dist/web-ui/docs/cn/cli/hooks-guide.md +9 -0
  20. package/cli/dist/web-ui/docs/cn/cli/hooks.md +805 -0
  21. package/cli/dist/web-ui/docs/cn/cli/iam.md +530 -0
  22. package/cli/dist/web-ui/docs/cn/cli/ide-integrations.md +92 -0
  23. package/cli/dist/web-ui/docs/cn/cli/installation.md +291 -0
  24. package/cli/dist/web-ui/docs/cn/cli/interactive-mode.md +233 -0
  25. package/cli/dist/web-ui/docs/cn/cli/mcp.md +739 -0
  26. package/cli/dist/web-ui/docs/cn/cli/memory.md +436 -0
  27. package/cli/dist/web-ui/docs/cn/cli/models.md +356 -0
  28. package/cli/dist/web-ui/docs/cn/cli/overview.md +100 -0
  29. package/cli/dist/web-ui/docs/cn/cli/plugin-marketplaces.md +533 -0
  30. package/cli/dist/web-ui/docs/cn/cli/plugins-reference.md +774 -0
  31. package/cli/dist/web-ui/docs/cn/cli/plugins.md +689 -0
  32. package/cli/dist/web-ui/docs/cn/cli/quickstart.md +249 -0
  33. package/cli/dist/web-ui/docs/cn/cli/release-notes/README.md +200 -0
  34. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.10.0.md +23 -0
  35. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.10.1.md +5 -0
  36. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.11.0.md +24 -0
  37. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.12.0.md +21 -0
  38. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.13.0.md +20 -0
  39. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.14.0.md +22 -0
  40. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.14.1.md +8 -0
  41. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.15.0.md +18 -0
  42. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.15.1.md +11 -0
  43. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.16.0.md +20 -0
  44. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.17.0.md +29 -0
  45. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.18.0.md +17 -0
  46. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.0.md +11 -0
  47. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.1.md +14 -0
  48. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.2.md +11 -0
  49. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.20.0.md +23 -0
  50. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.20.1.md +15 -0
  51. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.21.0.md +13 -0
  52. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.22.0.md +16 -0
  53. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.0.md +20 -0
  54. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.2.md +5 -0
  55. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.3.md +5 -0
  56. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.4.md +15 -0
  57. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.5.md +11 -0
  58. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.24.0.md +17 -0
  59. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.25.0.md +18 -0
  60. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.25.1.md +21 -0
  61. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.26.0.md +18 -0
  62. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.0.md +16 -0
  63. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.1.md +16 -0
  64. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.2.md +7 -0
  65. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.3.md +15 -0
  66. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.28.0.md +26 -0
  67. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.28.1.md +5 -0
  68. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.29.0.md +35 -0
  69. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.3.1.md +16 -0
  70. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.30.0.md +19 -0
  71. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.30.1.md +5 -0
  72. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.0.md +51 -0
  73. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.1.md +11 -0
  74. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.2.md +16 -0
  75. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.32.0.md +19 -0
  76. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.33.0.md +28 -0
  77. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.33.1.md +7 -0
  78. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.36.3.md +17 -0
  79. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.0.md +15 -0
  80. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.1.md +15 -0
  81. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.10.md +5 -0
  82. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.11.md +8 -0
  83. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.12.md +14 -0
  84. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.13.md +11 -0
  85. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.14.md +24 -0
  86. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.15.md +11 -0
  87. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.16.md +9 -0
  88. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.17.md +5 -0
  89. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.18.md +9 -0
  90. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.19.md +5 -0
  91. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.2.md +28 -0
  92. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.20.md +8 -0
  93. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.3.md +22 -0
  94. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.4.md +19 -0
  95. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.5.md +5 -0
  96. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.6.md +5 -0
  97. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.7.md +5 -0
  98. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.8.md +5 -0
  99. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.9.md +8 -0
  100. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.0.md +22 -0
  101. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.1.md +6 -0
  102. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.2.md +9 -0
  103. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.39.0.md +18 -0
  104. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.4.0.md +19 -0
  105. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.40.0.md +20 -0
  106. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.40.1.md +6 -0
  107. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.0.md +15 -0
  108. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.1.md +6 -0
  109. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.2.md +5 -0
  110. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.3.md +8 -0
  111. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.4.md +5 -0
  112. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.5.md +10 -0
  113. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.6.md +9 -0
  114. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.7.md +14 -0
  115. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.8.md +18 -0
  116. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.0.md +39 -0
  117. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.1.md +8 -0
  118. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.3.md +18 -0
  119. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.43.0.md +27 -0
  120. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.43.1.md +27 -0
  121. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.44.0.md +11 -0
  122. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.44.1.md +22 -0
  123. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.45.0.md +34 -0
  124. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.45.1.md +7 -0
  125. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.46.0.md +12 -0
  126. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.47.0.md +20 -0
  127. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.48.0.md +32 -0
  128. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.48.1.md +11 -0
  129. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.0.md +26 -0
  130. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.1.md +14 -0
  131. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.2.md +39 -0
  132. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.3.md +7 -0
  133. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.5.md +11 -0
  134. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.6.md +9 -0
  135. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.7.md +7 -0
  136. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.5.0.md +24 -0
  137. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.0.md +25 -0
  138. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.1.md +9 -0
  139. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.2.md +11 -0
  140. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.3.md +5 -0
  141. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.4.md +17 -0
  142. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.5.md +16 -0
  143. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.6.md +15 -0
  144. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.7.md +15 -0
  145. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.0.md +24 -0
  146. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.1.md +17 -0
  147. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.2.md +5 -0
  148. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.0.md +30 -0
  149. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.1.md +28 -0
  150. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.2.md +12 -0
  151. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.3.md +13 -0
  152. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.4.md +27 -0
  153. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.5.md +21 -0
  154. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.6.md +7 -0
  155. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.53.0.md +29 -0
  156. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.54.0.md +26 -0
  157. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.55.0.md +21 -0
  158. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.55.1.md +13 -0
  159. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.56.0.md +20 -0
  160. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.56.1.md +5 -0
  161. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.57.0.md +32 -0
  162. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.57.1.md +10 -0
  163. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.58.0.md +34 -0
  164. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.59.0.md +28 -0
  165. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.6.0.md +5 -0
  166. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.6.1.md +10 -0
  167. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.60.0.md +20 -0
  168. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.0.md +29 -0
  169. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.1.md +5 -0
  170. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.2.md +6 -0
  171. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.3.md +13 -0
  172. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.62.0.md +21 -0
  173. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.62.1.md +11 -0
  174. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.0.md +19 -0
  175. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.1.md +5 -0
  176. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.2.md +7 -0
  177. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.3.md +6 -0
  178. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.4.md +8 -0
  179. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.5.md +6 -0
  180. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.0.md +37 -0
  181. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.1.md +6 -0
  182. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.2.md +11 -0
  183. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.65.0.md +19 -0
  184. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.65.1.md +11 -0
  185. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.0.md +15 -0
  186. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.1.md +14 -0
  187. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.2.md +5 -0
  188. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.67.0.md +33 -0
  189. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.68.0.md +28 -0
  190. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.7.0.md +16 -0
  191. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.0.md +18 -0
  192. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.1.md +17 -0
  193. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.2.md +5 -0
  194. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.3.md +14 -0
  195. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.4.md +9 -0
  196. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.5.md +5 -0
  197. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.6.md +14 -0
  198. package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.9.0.md +5 -0
  199. package/cli/dist/web-ui/docs/cn/cli/remote-control.md +247 -0
  200. package/cli/dist/web-ui/docs/cn/cli/sandboxing.md +316 -0
  201. package/cli/dist/web-ui/docs/cn/cli/scheduled-tasks.md +161 -0
  202. package/cli/dist/web-ui/docs/cn/cli/sdk-custom-tools.md +1195 -0
  203. package/cli/dist/web-ui/docs/cn/cli/sdk-demos.md +347 -0
  204. package/cli/dist/web-ui/docs/cn/cli/sdk-hooks.md +803 -0
  205. package/cli/dist/web-ui/docs/cn/cli/sdk-mcp.md +643 -0
  206. package/cli/dist/web-ui/docs/cn/cli/sdk-permissions.md +501 -0
  207. package/cli/dist/web-ui/docs/cn/cli/sdk-python.md +783 -0
  208. package/cli/dist/web-ui/docs/cn/cli/sdk-sessions.md +332 -0
  209. package/cli/dist/web-ui/docs/cn/cli/sdk-typescript.md +759 -0
  210. package/cli/dist/web-ui/docs/cn/cli/sdk.md +1105 -0
  211. package/cli/dist/web-ui/docs/cn/cli/security.md +387 -0
  212. package/cli/dist/web-ui/docs/cn/cli/settings.md +602 -0
  213. package/cli/dist/web-ui/docs/cn/cli/skills.md +448 -0
  214. package/cli/dist/web-ui/docs/cn/cli/slash-commands.md +397 -0
  215. package/cli/dist/web-ui/docs/cn/cli/statusline.md +525 -0
  216. package/cli/dist/web-ui/docs/cn/cli/sub-agents.md +634 -0
  217. package/cli/dist/web-ui/docs/cn/cli/terminal-config.md +77 -0
  218. package/cli/dist/web-ui/docs/cn/cli/tools-reference.md +99 -0
  219. package/cli/dist/web-ui/docs/cn/cli/troubleshooting.md +190 -0
  220. package/cli/dist/web-ui/docs/cn/cli/web-ui.md +164 -0
  221. package/cli/dist/web-ui/docs/cn/cli/wecom-bot-setup.md +274 -0
  222. package/cli/dist/web-ui/docs/cn/cli/worktree.md +660 -0
  223. package/cli/dist/web-ui/docs/en/cli/acp.md +126 -0
  224. package/cli/dist/web-ui/docs/en/cli/agent-teams.md +327 -0
  225. package/cli/dist/web-ui/docs/en/cli/bash-sandboxing.md +290 -0
  226. package/cli/dist/web-ui/docs/en/cli/best-practices.md +554 -0
  227. package/cli/dist/web-ui/docs/en/cli/channels-reference.md +293 -0
  228. package/cli/dist/web-ui/docs/en/cli/channels.md +215 -0
  229. package/cli/dist/web-ui/docs/en/cli/checkpointing.md +53 -0
  230. package/cli/dist/web-ui/docs/en/cli/cli-reference.md +187 -0
  231. package/cli/dist/web-ui/docs/en/cli/common-workflows.md +1013 -0
  232. package/cli/dist/web-ui/docs/en/cli/costs.md +174 -0
  233. package/cli/dist/web-ui/docs/en/cli/devcontainer.md +553 -0
  234. package/cli/dist/web-ui/docs/en/cli/env-vars.md +326 -0
  235. package/cli/dist/web-ui/docs/en/cli/gitlab-ci-cd.md +357 -0
  236. package/cli/dist/web-ui/docs/en/cli/headless.md +258 -0
  237. package/cli/dist/web-ui/docs/en/cli/hooks-guide.md +9 -0
  238. package/cli/dist/web-ui/docs/en/cli/hooks.md +801 -0
  239. package/cli/dist/web-ui/docs/en/cli/iam.md +530 -0
  240. package/cli/dist/web-ui/docs/en/cli/ide-integrations.md +92 -0
  241. package/cli/dist/web-ui/docs/en/cli/installation.md +266 -0
  242. package/cli/dist/web-ui/docs/en/cli/interactive-mode.md +233 -0
  243. package/cli/dist/web-ui/docs/en/cli/mcp.md +739 -0
  244. package/cli/dist/web-ui/docs/en/cli/memory.md +436 -0
  245. package/cli/dist/web-ui/docs/en/cli/models.md +355 -0
  246. package/cli/dist/web-ui/docs/en/cli/overview.md +100 -0
  247. package/cli/dist/web-ui/docs/en/cli/plugin-marketplaces.md +534 -0
  248. package/cli/dist/web-ui/docs/en/cli/plugins-reference.md +774 -0
  249. package/cli/dist/web-ui/docs/en/cli/plugins.md +688 -0
  250. package/cli/dist/web-ui/docs/en/cli/quickstart.md +249 -0
  251. package/cli/dist/web-ui/docs/en/cli/release-notes/README.md +194 -0
  252. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.10.0.md +23 -0
  253. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.10.1.md +5 -0
  254. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.11.0.md +24 -0
  255. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.12.0.md +21 -0
  256. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.13.0.md +20 -0
  257. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.14.0.md +22 -0
  258. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.14.1.md +8 -0
  259. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.15.0.md +18 -0
  260. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.15.1.md +11 -0
  261. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.16.0.md +20 -0
  262. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.17.0.md +29 -0
  263. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.18.0.md +17 -0
  264. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.0.md +11 -0
  265. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.1.md +14 -0
  266. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.2.md +11 -0
  267. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.20.0.md +23 -0
  268. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.20.1.md +15 -0
  269. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.21.0.md +13 -0
  270. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.22.0.md +16 -0
  271. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.0.md +41 -0
  272. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.2.md +5 -0
  273. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.3.md +5 -0
  274. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.4.md +15 -0
  275. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.5.md +11 -0
  276. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.24.0.md +17 -0
  277. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.25.0.md +18 -0
  278. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.25.1.md +21 -0
  279. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.26.0.md +18 -0
  280. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.0.md +16 -0
  281. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.1.md +16 -0
  282. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.2.md +7 -0
  283. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.3.md +15 -0
  284. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.28.0.md +26 -0
  285. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.28.1.md +5 -0
  286. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.29.0.md +35 -0
  287. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.3.1.md +16 -0
  288. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.30.0.md +19 -0
  289. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.30.1.md +5 -0
  290. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.0.md +51 -0
  291. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.1.md +11 -0
  292. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.2.md +16 -0
  293. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.32.0.md +19 -0
  294. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.33.0.md +28 -0
  295. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.33.1.md +7 -0
  296. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.34.0.md +27 -0
  297. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.34.1.md +7 -0
  298. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.35.0.md +22 -0
  299. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.0.md +23 -0
  300. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.1.md +5 -0
  301. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.2.md +22 -0
  302. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.3.md +17 -0
  303. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.0.md +15 -0
  304. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.1.md +15 -0
  305. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.10.md +5 -0
  306. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.11.md +8 -0
  307. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.12.md +14 -0
  308. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.13.md +11 -0
  309. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.14.md +24 -0
  310. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.15.md +11 -0
  311. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.16.md +9 -0
  312. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.17.md +5 -0
  313. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.18.md +9 -0
  314. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.19.md +5 -0
  315. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.2.md +28 -0
  316. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.20.md +8 -0
  317. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.3.md +22 -0
  318. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.4.md +19 -0
  319. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.5.md +5 -0
  320. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.6.md +5 -0
  321. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.7.md +5 -0
  322. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.8.md +5 -0
  323. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.9.md +8 -0
  324. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.0.md +22 -0
  325. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.1.md +6 -0
  326. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.2.md +9 -0
  327. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.39.0.md +18 -0
  328. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.4.0.md +19 -0
  329. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.40.0.md +20 -0
  330. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.40.1.md +6 -0
  331. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.0.md +15 -0
  332. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.1.md +6 -0
  333. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.2.md +5 -0
  334. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.3.md +8 -0
  335. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.4.md +5 -0
  336. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.5.md +10 -0
  337. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.6.md +9 -0
  338. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.7.md +14 -0
  339. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.8.md +18 -0
  340. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.0.md +39 -0
  341. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.1.md +8 -0
  342. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.3.md +18 -0
  343. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.43.0.md +27 -0
  344. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.43.1.md +27 -0
  345. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.44.0.md +11 -0
  346. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.44.1.md +22 -0
  347. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.45.0.md +34 -0
  348. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.45.1.md +7 -0
  349. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.46.0.md +12 -0
  350. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.47.0.md +20 -0
  351. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.48.0.md +32 -0
  352. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.48.1.md +11 -0
  353. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.0.md +26 -0
  354. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.1.md +14 -0
  355. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.2.md +39 -0
  356. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.3.md +7 -0
  357. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.5.md +11 -0
  358. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.6.md +9 -0
  359. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.7.md +7 -0
  360. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.5.0.md +24 -0
  361. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.0.md +25 -0
  362. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.1.md +9 -0
  363. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.2.md +11 -0
  364. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.3.md +5 -0
  365. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.4.md +17 -0
  366. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.5.md +16 -0
  367. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.6.md +15 -0
  368. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.7.md +15 -0
  369. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.0.md +24 -0
  370. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.1.md +17 -0
  371. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.2.md +5 -0
  372. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.0.md +30 -0
  373. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.1.md +28 -0
  374. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.2.md +12 -0
  375. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.3.md +13 -0
  376. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.4.md +27 -0
  377. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.5.md +21 -0
  378. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.6.md +7 -0
  379. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.53.0.md +29 -0
  380. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.54.0.md +26 -0
  381. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.55.0.md +21 -0
  382. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.55.1.md +13 -0
  383. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.56.0.md +20 -0
  384. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.56.1.md +5 -0
  385. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.57.0.md +32 -0
  386. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.57.1.md +10 -0
  387. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.58.0.md +34 -0
  388. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.59.0.md +28 -0
  389. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.6.0.md +5 -0
  390. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.6.1.md +10 -0
  391. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.60.0.md +20 -0
  392. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.0.md +29 -0
  393. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.1.md +5 -0
  394. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.2.md +6 -0
  395. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.3.md +13 -0
  396. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.62.0.md +21 -0
  397. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.62.1.md +11 -0
  398. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.0.md +19 -0
  399. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.1.md +5 -0
  400. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.2.md +7 -0
  401. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.3.md +6 -0
  402. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.4.md +8 -0
  403. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.5.md +6 -0
  404. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.0.md +37 -0
  405. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.1.md +6 -0
  406. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.2.md +11 -0
  407. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.65.0.md +19 -0
  408. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.65.1.md +11 -0
  409. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.0.md +15 -0
  410. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.1.md +14 -0
  411. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.2.md +5 -0
  412. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.67.0.md +33 -0
  413. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.68.0.md +28 -0
  414. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.7.0.md +16 -0
  415. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.0.md +18 -0
  416. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.1.md +17 -0
  417. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.2.md +5 -0
  418. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.3.md +14 -0
  419. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.4.md +9 -0
  420. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.5.md +5 -0
  421. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.6.md +14 -0
  422. package/cli/dist/web-ui/docs/en/cli/release-notes/v2.9.0.md +5 -0
  423. package/cli/dist/web-ui/docs/en/cli/remote-control.md +247 -0
  424. package/cli/dist/web-ui/docs/en/cli/sandboxing.md +316 -0
  425. package/cli/dist/web-ui/docs/en/cli/scheduled-tasks.md +160 -0
  426. package/cli/dist/web-ui/docs/en/cli/sdk-custom-tools.md +1131 -0
  427. package/cli/dist/web-ui/docs/en/cli/sdk-demos.md +347 -0
  428. package/cli/dist/web-ui/docs/en/cli/sdk-hooks.md +813 -0
  429. package/cli/dist/web-ui/docs/en/cli/sdk-mcp.md +645 -0
  430. package/cli/dist/web-ui/docs/en/cli/sdk-permissions.md +461 -0
  431. package/cli/dist/web-ui/docs/en/cli/sdk-python.md +783 -0
  432. package/cli/dist/web-ui/docs/en/cli/sdk-sessions.md +340 -0
  433. package/cli/dist/web-ui/docs/en/cli/sdk-typescript.md +759 -0
  434. package/cli/dist/web-ui/docs/en/cli/sdk.md +1103 -0
  435. package/cli/dist/web-ui/docs/en/cli/security.md +387 -0
  436. package/cli/dist/web-ui/docs/en/cli/settings.md +602 -0
  437. package/cli/dist/web-ui/docs/en/cli/skills.md +448 -0
  438. package/cli/dist/web-ui/docs/en/cli/slash-commands.md +397 -0
  439. package/cli/dist/web-ui/docs/en/cli/statusline.md +525 -0
  440. package/cli/dist/web-ui/docs/en/cli/sub-agents.md +621 -0
  441. package/cli/dist/web-ui/docs/en/cli/terminal-config.md +77 -0
  442. package/cli/dist/web-ui/docs/en/cli/tools-reference.md +99 -0
  443. package/cli/dist/web-ui/docs/en/cli/troubleshooting.md +190 -0
  444. package/cli/dist/web-ui/docs/en/cli/web-ui.md +164 -0
  445. package/cli/dist/web-ui/docs/en/cli/wecom-bot-setup.md +274 -0
  446. package/cli/dist/web-ui/docs/en/cli/worktree.md +660 -0
  447. package/cli/dist/web-ui/docs/search-index-en.json +1 -0
  448. package/cli/dist/web-ui/docs/search-index-zh.json +1 -0
  449. package/cli/dist/web-ui/docs/sidebar-en.json +1 -0
  450. package/cli/dist/web-ui/docs/sidebar-zh.json +1 -0
  451. package/cli/dist/web-ui/index.html +2 -2
  452. package/cli/package.json +1 -1
  453. package/cli/product.cloudhosted.json +2 -2
  454. package/cli/product.internal.json +2 -2
  455. package/cli/product.ioa.json +2 -2
  456. package/cli/product.json +4 -3
  457. package/cli/product.selfhosted.json +2 -2
  458. package/lib/query.d.ts.map +1 -1
  459. package/lib/query.js +5 -1
  460. package/lib/query.js.map +1 -1
  461. package/lib/transport/index.d.ts +1 -1
  462. package/lib/transport/index.d.ts.map +1 -1
  463. package/lib/transport/process-transport.d.ts +1 -1
  464. package/lib/transport/process-transport.d.ts.map +1 -1
  465. package/lib/transport/process-transport.js +5 -1
  466. package/lib/transport/process-transport.js.map +1 -1
  467. package/lib/types.d.ts +3 -0
  468. package/lib/types.d.ts.map +1 -1
  469. package/package.json +1 -1
  470. package/cli/dist/web-ui/assets/index-BPT-qRRx.js +0 -411
  471. package/cli/dist/web-ui/assets/index-f_ibHSHw.css +0 -32
@@ -0,0 +1,530 @@
1
+ # Identity and Access Management
2
+
3
+ > Learn how to configure user authentication, authorization, and access control for CodeBuddy Code in your organization.
4
+
5
+ ## Authentication Methods
6
+
7
+ ### Quick Start
8
+
9
+ Choose an authentication method based on your scenario:
10
+
11
+ | Scenario | Recommended Method | How to Get Credentials |
12
+ |:---------|:-------------------|:-----------------------|
13
+ | Individual Developer | `CODEBUDDY_API_KEY` | [Get API Key from platform](#individual-users-get-api-key) |
14
+ | Enterprise/Team (OAuth Integration) | `apiKeyHelper` | [Create app to get Client ID/Secret](#enterprise-users-oauth-authentication) |
15
+ | CI/CD with existing OAuth token | `CODEBUDDY_AUTH_TOKEN` | Use existing token directly |
16
+ | Third-party Model Service | `CODEBUDDY_API_KEY` + `BASE_URL` | Get from third-party provider |
17
+
18
+ > When multiple authentication methods are configured, they take effect in the following priority: **CODEBUDDY_AUTH_TOKEN > apiKeyHelper > CODEBUDDY_API_KEY**
19
+
20
+
21
+ ### Enterprise Users: OAuth Authentication
22
+
23
+ Suitable for enterprise/team integration, obtaining tokens via OAuth 2.0.
24
+
25
+ > Currently only introducing the Client Credentials authorization method, suitable for server-side applications and CI/CD scenarios.
26
+
27
+ > **Prerequisite**: Enterprise users need to purchase CodeBuddy Premium before using OAuth authentication. See the [CodeBuddy Premium Purchase Guide](https://cloud.tencent.com/document/product/1749/110012) for details.
28
+
29
+ **Step 1: Create Application, Get Client ID and Secret**
30
+
31
+ Refer to the [Enterprise Developer Quick Start](https://copilot.tencent.com/apiDocs/open-platform.html) to complete:
32
+ 1. Create an enterprise application
33
+ 2. Get Client ID and Client Secret
34
+
35
+ **Step 2: Create a Script to Get Token**
36
+
37
+ ```bash
38
+ #!/bin/bash
39
+ # get-oauth-token.sh - OAuth 2.0 Client Credentials flow
40
+
41
+ CLIENT_ID="${OAUTH_CLIENT_ID}"
42
+ CLIENT_SECRET="${OAUTH_CLIENT_SECRET}"
43
+ TOKEN_URL="https://copilot.tencent.com/oauth2/token"
44
+
45
+ response=$(curl -s -X POST "$TOKEN_URL" \
46
+ -H "Content-Type: application/x-www-form-urlencoded" \
47
+ -d "grant_type=client_credentials" \
48
+ -d "client_id=$CLIENT_ID" \
49
+ -d "client_secret=$CLIENT_SECRET")
50
+
51
+ echo "$response" | jq -r '.access_token'
52
+ ```
53
+
54
+ **Step 3: Configure apiKeyHelper**
55
+
56
+ Configure in `~/.codebuddy/settings.json` or project `.codebuddy/settings.json`:
57
+
58
+ ```json
59
+ {
60
+ "apiKeyHelper": "/path/to/get-oauth-token.sh"
61
+ }
62
+ ```
63
+
64
+ After configuration, you can use the `codebuddy` command.
65
+
66
+ > Tokens obtained by apiKeyHelper are cached for 5 minutes by default. You can adjust this via the `CODEBUDDY_CODE_API_KEY_HELPER_TTL_MS` environment variable (in milliseconds).
67
+
68
+ ---
69
+
70
+ ### Third-Party Model Services
71
+
72
+ Suitable for using third-party model services like OpenRouter.
73
+
74
+ > **Note:** When using third-party model services, there is no need to set the `CODEBUDDY_INTERNET_ENVIRONMENT` environment variable, as requests are sent directly to the third-party service endpoint.
75
+
76
+ ```bash
77
+ export CODEBUDDY_API_KEY="sk-or-v1-xxx"
78
+ export CODEBUDDY_BASE_URL="https://openrouter.ai/api/v1"
79
+ codebuddy --model openai/gpt-4
80
+ ```
81
+
82
+ ---
83
+
84
+ ### Authentication Methods Explained
85
+
86
+ #### CODEBUDDY_API_KEY
87
+
88
+ Static API Key, suitable for most scenarios.
89
+
90
+ | Feature | Description |
91
+ |:--------|:------------|
92
+ | Environment Variable | `CODEBUDDY_API_KEY` |
93
+ | Auth Type | API Key (X-Api-Key header) |
94
+ | Use Cases | Personal development, third-party model services |
95
+
96
+ > **Warning: When using API Key, you must also configure the `CODEBUDDY_INTERNET_ENVIRONMENT` environment variable!**
97
+ >
98
+ > | Version | Configuration Value |
99
+ > |:--------|:--------------------|
100
+ > | International | Not set (default) |
101
+ > | China | `internal` |
102
+ > | iOA | `ioa` |
103
+
104
+ ```bash
105
+ # International version
106
+ export CODEBUDDY_API_KEY="your-api-key"
107
+
108
+ # China version
109
+ export CODEBUDDY_API_KEY="your-api-key"
110
+ export CODEBUDDY_INTERNET_ENVIRONMENT=internal
111
+
112
+ # iOA version
113
+ export CODEBUDDY_API_KEY="your-api-key"
114
+ export CODEBUDDY_INTERNET_ENVIRONMENT=ioa
115
+ ```
116
+
117
+ #### CODEBUDDY_AUTH_TOKEN
118
+
119
+ Pre-obtained OAuth Bearer Token, suitable for CI/CD or scenarios with existing tokens.
120
+
121
+ | Feature | Description |
122
+ |:--------|:------------|
123
+ | Environment Variable | `CODEBUDDY_AUTH_TOKEN` |
124
+ | Auth Type | Bearer Token (Authorization header) |
125
+ | Use Cases | CI/CD automation, existing OAuth token |
126
+
127
+ ```bash
128
+ export CODEBUDDY_AUTH_TOKEN="eyJhbGciOiJSUzI1NiIs..."
129
+ ```
130
+
131
+ Can also be configured in settings.json:
132
+
133
+ ```json
134
+ {
135
+ "env": {
136
+ "CODEBUDDY_AUTH_TOKEN": "your-oauth-token"
137
+ }
138
+ }
139
+ ```
140
+
141
+ #### apiKeyHelper
142
+
143
+ Dynamically obtain tokens via script, suitable for OAuth integration or scenarios requiring periodic token refresh.
144
+
145
+ | Feature | Description |
146
+ |:--------|:------------|
147
+ | Configuration | `apiKeyHelper` field in settings.json |
148
+ | Auth Type | Bearer Token (returned by script) |
149
+ | Caching | Default 5 minutes, configurable via `CODEBUDDY_CODE_API_KEY_HELPER_TTL_MS` |
150
+ | Use Cases | OAuth Client Credentials, Vault integration, automatic token refresh |
151
+
152
+ **Script Requirements:**
153
+ - Output the token to standard output (stdout)
154
+ - Exit with code 0 to indicate success
155
+ - Script execution timeout is 30 seconds
156
+
157
+ **Configuration Example:**
158
+
159
+ ```json
160
+ {
161
+ "apiKeyHelper": "/path/to/get-token.sh"
162
+ }
163
+ ```
164
+
165
+ **Example of Getting Token from Vault:**
166
+
167
+ ```bash
168
+ #!/bin/bash
169
+ vault read -field=api_key secret/codebuddy/api-key
170
+ ```
171
+
172
+ For detailed authentication configuration, see [Settings Documentation - Environment Variables](settings.md#environment-variables).
173
+
174
+ ## Access Control and Permissions
175
+
176
+ We support fine-grained permissions so you can precisely specify what the agent is allowed to do (e.g., run tests, run linters) and not allowed to do (e.g., update cloud infrastructure). These permission settings can be checked into version control and distributed to all developers in your organization, or customized by individual developers.
177
+
178
+ ### Permission System
179
+
180
+ CodeBuddy Code uses a hierarchical permission system to balance functionality and security:
181
+
182
+ | Tool Type | Examples | Requires Approval | "Yes, don't ask again" Behavior |
183
+ |:----------|:---------|:------------------|:--------------------------------|
184
+ | Read-only | File reading, LS, Grep | No | N/A |
185
+ | Bash commands | Shell execution | Yes | Permanently remembered by project directory and command |
186
+ | File modifications | Edit/Write files | Yes | Effective until session ends |
187
+
188
+ ### Configuring Permissions
189
+
190
+ You can use `/permissions` to view and manage CodeBuddy Code's tool permissions. This UI lists all permission rules and the settings.json files they come from.
191
+
192
+ * **Allow** rules will allow CodeBuddy Code to use specified tools without further manual approval.
193
+ * **Ask** rules will prompt for user confirmation when CodeBuddy Code attempts to use specified tools. Ask rules take precedence over allow rules.
194
+ * **Deny** rules will block CodeBuddy Code from using specified tools. Deny rules take precedence over allow and ask rules.
195
+ * **Additional directories** extend CodeBuddy's file access to directories beyond the initial working directory.
196
+ * **Default mode** controls CodeBuddy's permission behavior when encountering new requests.
197
+
198
+ Permission rules use the format: `Tool` or `Tool(optional-specifier)`
199
+
200
+ Rules with only the tool name match any use of that tool. For example, adding `Bash` to the allow rules list will allow CodeBuddy Code to use the Bash tool without user approval.
201
+
202
+ #### Permission Modes
203
+
204
+ CodeBuddy Code supports several permission modes, which can be set as `defaultMode` in the [settings file](settings.md#configuration-files):
205
+
206
+ | Mode | Description |
207
+ |:-----|:------------|
208
+ | `default` | Standard behavior - prompts for permission on first use of each tool |
209
+ | `acceptEdits` | Automatically accepts file edit permissions for the session |
210
+ | `plan` | Plan mode - CodeBuddy can analyze but not modify files or execute commands |
211
+ | `bypassPermissions` | Skips all permission prompts (requires secure environment - see warning below) |
212
+
213
+ <Warning>
214
+ `bypassPermissions` mode should only be used in secure, isolated environments, such as Docker containers or VMs. Using this mode on production environments or systems with sensitive data may pose security risks.
215
+ </Warning>
216
+
217
+ #### Working Directory
218
+
219
+ By default, CodeBuddy can access files in the directory where it's launched. You can extend this access:
220
+
221
+ * **At startup**: Use the `--add-dir <path>` CLI parameter
222
+ * **During session**: Use the `/add-dir` slash command
223
+ * **Persistent configuration**: Add to `additionalDirectories` in the [settings file](settings.md#configuration-files)
224
+
225
+ Files in additional directories follow the same permission rules as the original working directory - they can be read without prompts, and file edit permissions follow the current permission mode.
226
+
227
+ #### Tool-Specific Permission Rules
228
+
229
+ Some tools support more fine-grained permission control:
230
+
231
+ **Bash**
232
+
233
+ * `Bash(npm run build)` exactly matches the Bash command `npm run build`
234
+ * `Bash(npm run test:*)` matches Bash commands starting with `npm run test`
235
+ * `Bash(curl http://site.com/:*)` matches curl commands starting with `curl http://site.com/`
236
+
237
+ <Tip>
238
+ CodeBuddy Code recognizes shell operators (like `&&`), so prefix matching rules like `Bash(safe-cmd:*)` won't grant it permission to run commands like `safe-cmd && other-cmd`
239
+ </Tip>
240
+
241
+ <Warning>
242
+ Important limitations of Bash permission patterns:
243
+
244
+ 1. This tool uses **prefix matching**, not regular expressions or glob patterns
245
+ 2. The wildcard `:*` only works at the end of the pattern to match any subsequent content
246
+ 3. Patterns like `Bash(curl http://github.com/:*)` can be bypassed in multiple ways:
247
+ * Options before URL: `curl -X GET http://github.com/...` doesn't match
248
+ * Different protocol: `curl https://github.com/...` doesn't match
249
+ * Redirects: `curl -L http://bit.ly/xyz` (redirects to github)
250
+ * Variables: `URL=http://github.com && curl $URL` doesn't match
251
+ * Extra spaces: `curl http://github.com` doesn't match
252
+
253
+ For more reliable URL filtering, consider:
254
+
255
+ * Using the WebFetch tool with `WebFetch(domain:github.com)` permission
256
+ * Instructing CodeBuddy Code via CODEBUDDY.md about allowed curl patterns
257
+ * Using hooks for custom permission validation
258
+ </Warning>
259
+
260
+ **Read & Edit**
261
+
262
+ `Edit` rules apply to all built-in tools that edit files. CodeBuddy will try its best to apply `Read` rules to all built-in tools that read files, like Grep, Glob, and LS.
263
+
264
+ Read and Edit rules both follow the [gitignore](https://git-scm.com/docs/gitignore) specification, with four different pattern types:
265
+
266
+ | Pattern | Meaning | Example | Matches |
267
+ |---------|---------|---------|---------|
268
+ | `//path` | **Absolute** path from filesystem root | `Read(//Users/alice/secrets/**)` | `/Users/alice/secrets/**` |
269
+ | `~/path` | Path from **home directory** | `Read(~/Documents/*.pdf)` | `/Users/alice/Documents/*.pdf` |
270
+ | `/path` | **Relative to settings file** path | `Edit(/src/**/*.ts)` | `<settings file path>/src/**/*.ts` |
271
+ | `path` or `./path` | **Relative to current directory** | `Read(*.env)` | `<cwd>/*.env` |
272
+
273
+ <Warning>
274
+ Patterns like `/Users/alice/file` are not absolute paths - they're relative to your settings file! Use `//Users/alice/file` for absolute paths.
275
+ </Warning>
276
+
277
+ **Examples:**
278
+
279
+ * `Edit(/docs/**)` - Edit in `<project>/docs/` (not `/docs/`!)
280
+ * `Read(~/.zshrc)` - Read home directory's `.zshrc`
281
+ * `Edit(//tmp/scratch.txt)` - Edit absolute path `/tmp/scratch.txt`
282
+ * `Read(src/**)` - Read from `<current directory>/src/`
283
+
284
+ **WebFetch**
285
+
286
+ * `WebFetch(domain:example.com)` matches fetch requests to example.com
287
+
288
+ **MCP**
289
+
290
+ * `mcp__puppeteer` matches any tool provided by the `puppeteer` server (name configured in CodeBuddy Code)
291
+ * `mcp__puppeteer__*` wildcard syntax, also matches all tools from the `puppeteer` server
292
+ * `mcp__puppeteer__puppeteer_navigate` matches the `puppeteer_navigate` tool provided by the `puppeteer` server
293
+
294
+ <Tip>
295
+ To approve all tools from an MCP server, you can use either format:
296
+
297
+ * Use: `mcp__github` (approves all GitHub tools)
298
+ * Use: `mcp__github__*` (approves all GitHub tools, equivalent to the above)
299
+
300
+ To approve only specific tools, list each one:
301
+
302
+ * Use: `mcp__github__get_issue`
303
+ * Use: `mcp__github__list_issues`
304
+ </Tip>
305
+
306
+ ### Permission Configuration Examples
307
+
308
+ **Basic Permission Configuration:**
309
+
310
+ ```json
311
+ {
312
+ "permissions": {
313
+ "allow": [
314
+ "Read",
315
+ "Edit",
316
+ "Bash(git:*)",
317
+ "Bash(npm:*)"
318
+ ],
319
+ "ask": [
320
+ "WebFetch",
321
+ "Bash(docker:*)"
322
+ ],
323
+ "deny": [
324
+ "Bash(rm:*)",
325
+ "Bash(sudo:*)",
326
+ "Edit(**/*.env)",
327
+ "Read(~/.ssh/**)"
328
+ ]
329
+ }
330
+ }
331
+ ```
332
+
333
+ **Security-Restricted Configuration:**
334
+
335
+ ```json
336
+ {
337
+ "permissions": {
338
+ "allow": [
339
+ "Read",
340
+ "Edit(src/**)",
341
+ "Bash(git:status,git:diff)"
342
+ ],
343
+ "deny": [
344
+ "Edit(**/*.env)",
345
+ "Edit(**/*.key)",
346
+ "Edit(**/*.pem)",
347
+ "Bash(wget:*)",
348
+ "Bash(curl:*)",
349
+ "Read(/etc/**)",
350
+ "Read(~/.ssh/**)",
351
+ "Read(~/.aws/**)"
352
+ ],
353
+ "defaultMode": "default"
354
+ }
355
+ }
356
+ ```
357
+
358
+ ### Using Hooks for Additional Permission Control
359
+
360
+ [CodeBuddy Code hooks](hooks.md) provide a way to register custom shell commands for runtime permission evaluation. When CodeBuddy Code makes a tool call, PreToolUse hooks run before the permission system, and hook output can decide to approve or deny the tool call instead of the permission system.
361
+
362
+ See [Hooks Documentation](hooks.md) for details.
363
+
364
+ ## Settings Priority
365
+
366
+ When multiple settings sources exist, they are applied in the following order (from highest to lowest priority):
367
+
368
+ 1. Command line arguments
369
+ 2. Local project settings (`.codebuddy/settings.local.json`)
370
+ 3. Shared project settings (`.codebuddy/settings.json`)
371
+ 4. User settings (`~/.codebuddy/settings.json`)
372
+
373
+ This hierarchy ensures flexibility at project and user levels where appropriate.
374
+
375
+ ## Credential Management
376
+
377
+ CodeBuddy Code securely manages your authentication credentials:
378
+
379
+ | Platform | Storage Location |
380
+ |:---------|:-----------------:|
381
+ | macOS | Encrypted macOS Keychain |
382
+ | Linux | System keyring (GNOME Keyring, KWallet) |
383
+ | Windows | Windows Credential Manager |
384
+
385
+ **Dynamic Credential Retrieval:** Use `apiKeyHelper` to configure custom scripts for dynamic token retrieval. See [apiKeyHelper Configuration](#apikeyhelper) for details.
386
+
387
+ ## Security Best Practices
388
+
389
+ ### 1. Principle of Least Privilege
390
+
391
+ Only grant CodeBuddy Code the minimum permissions needed to complete tasks:
392
+
393
+ ```json
394
+ {
395
+ "permissions": {
396
+ "allow": [
397
+ "Read",
398
+ "Edit(src/**/*.ts)",
399
+ "Bash(npm:test,npm:build)"
400
+ ],
401
+ "deny": [
402
+ "Edit(**/*.env)",
403
+ "Bash(rm:*)",
404
+ "Bash(sudo:*)"
405
+ ]
406
+ }
407
+ }
408
+ ```
409
+
410
+ ### 2. Protect Sensitive Files
411
+
412
+ Always deny access to files containing sensitive information:
413
+
414
+ ```json
415
+ {
416
+ "permissions": {
417
+ "deny": [
418
+ "Read(.env)",
419
+ "Read(.env.*)",
420
+ "Read(secrets/**)",
421
+ "Read(~/.ssh/**)",
422
+ "Read(~/.aws/**)",
423
+ "Edit(**/*.key)",
424
+ "Edit(**/*.pem)"
425
+ ]
426
+ }
427
+ }
428
+ ```
429
+
430
+ ### 3. Use Bash Sandbox
431
+
432
+ Enable sandboxing on supported platforms to isolate bash commands:
433
+
434
+ ```json
435
+ {
436
+ "sandbox": {
437
+ "enabled": true,
438
+ "autoAllowBashIfSandboxed": true,
439
+ "excludedCommands": ["docker"]
440
+ }
441
+ }
442
+ ```
443
+
444
+ See [Bash Sandbox Documentation](bash-sandboxing.md) for details.
445
+
446
+ ### 4. Review Permission Logs
447
+
448
+ Regularly check CodeBuddy Code's permission usage to ensure compliance with security policies.
449
+
450
+ ### 5. Team Configuration Sharing
451
+
452
+ Check team-level permission configurations into version control:
453
+
454
+ ```bash
455
+ # Create team shared configuration
456
+ .codebuddy/settings.json
457
+
458
+ # Add to .gitignore
459
+ .codebuddy/settings.local.json
460
+ ```
461
+
462
+ ## Common Questions
463
+
464
+ ### What if API Key authentication fails?
465
+
466
+ This is the most common issue, usually caused by **not configuring or incorrectly configuring the `CODEBUDDY_INTERNET_ENVIRONMENT` environment variable**.
467
+
468
+ **Troubleshooting Steps:**
469
+
470
+ 1. Confirm which version you're using (International/China/iOA)
471
+ 2. Check if environment variables are correctly set:
472
+
473
+ ```bash
474
+ # Check current configuration
475
+ echo $CODEBUDDY_API_KEY
476
+ echo $CODEBUDDY_INTERNET_ENVIRONMENT
477
+ ```
478
+
479
+ 3. Set the correct environment variables based on your version:
480
+
481
+ | Version | `CODEBUDDY_INTERNET_ENVIRONMENT` |
482
+ |:--------|:---------------------------------|
483
+ | International | Not set or `public` |
484
+ | China | `internal` |
485
+ | iOA | `ioa` |
486
+
487
+ **Common Errors:**
488
+
489
+ - China version users forget to set `CODEBUDDY_INTERNET_ENVIRONMENT=internal`
490
+ - iOA version users set it to `internal` instead of `ioa`
491
+ - Environment variables only take effect in the current terminal and are lost when opening a new terminal (recommend adding to shell configuration file)
492
+
493
+ ### How do I temporarily bypass permissions?
494
+
495
+ Start CodeBuddy Code with `--permission-mode bypassPermissions`:
496
+
497
+ ```bash
498
+ codebuddy --permission-mode bypassPermissions
499
+ ```
500
+
501
+ <Warning>
502
+ Only use this option in secure, isolated environments!
503
+ </Warning>
504
+
505
+ ### How do I set different permissions for specific projects?
506
+
507
+ Create `.codebuddy/settings.json` in the project root directory:
508
+
509
+ ```json
510
+ {
511
+ "permissions": {
512
+ "allow": ["project-specific permissions"]
513
+ }
514
+ }
515
+ ```
516
+
517
+ ### How do I view current permission configuration?
518
+
519
+ Use the `/permissions` command to view all effective permission rules and their sources.
520
+
521
+ ## See Also
522
+
523
+ * [Settings Configuration](settings.md) - Learn about complete configuration options
524
+ * [Hooks Documentation](hooks.md) - Use hooks for advanced permission control
525
+ * [Bash Sandbox](bash-sandboxing.md) - Learn about sandbox isolation features
526
+ * [MCP Integration](mcp.md) - Configure MCP server permissions
527
+
528
+ ---
529
+
530
+ *Ensure CodeBuddy Code works within security boundaries through proper permission configuration*
@@ -0,0 +1,92 @@
1
+ # IDE Integration
2
+
3
+ CodeBuddy Code supports two integration methods with editors, both at the same level of IDE integration capabilities:
4
+
5
+ 1. Using the ACP (Agent Client Protocol) as a universal "Agent Server" called by IDEs
6
+ 2. Using the `--ide` startup parameter and `/ide` slash command as an "IDE plugin backend companion process" for deep integration
7
+
8
+ ## Integration Method 1: ACP Protocol Integration
9
+
10
+ Suitable for editors that support ACP, such as Zed, using CodeBuddy Code as a universal Agent Server.
11
+
12
+ ### Supported Editors
13
+
14
+ #### Zed Editor
15
+
16
+ Full integration via ACP protocol, supporting:
17
+
18
+ - Project context awareness
19
+ - Tool operation delegation (file read/write, terminal commands)
20
+ - Permission request interaction
21
+ - Real-time streaming responses
22
+
23
+ For configuration details, see: [ACP Protocol Integration Documentation](./acp.md)
24
+
25
+ ## Integration Method 2: IDE Plugin Integration (`--ide` / `/ide`)
26
+
27
+ Suitable for VS Code / Cursor / Windsurf / JetBrains series IDEs, integrated through plugin + local MCP server. The IDE-side plugin is responsible for:
28
+
29
+ - Creating and maintaining MCP connections (SSE / WebSocket)
30
+ - Passing workspace information, selections, and other context to CodeBuddy via MCP protocol
31
+ - Exposing IDE capabilities like `openFile` / `openDiff` / `getDiagnostics` / `close_tab` for CodeBuddy to call
32
+
33
+ ### `--ide` Startup Parameter
34
+
35
+ When you start CodeBuddy directly in the terminal, you can use the `--ide` parameter to have the CLI actively try to connect to the IDE corresponding to the current working directory:
36
+
37
+ ```bash
38
+ codebuddy --ide
39
+ ```
40
+
41
+ Behavior description:
42
+
43
+ - CodeBuddy will scan lock files created by IDE plugins in the current user directory to detect available IDE instances
44
+ - Only considers an IDE as "valid" if its workspace contains the current directory
45
+ - Prioritizes connecting to IDEs whose "workspace matches and process chain is upstream of the current terminal"
46
+ - After successful connection, the CLI will obtain from the IDE MCP server:
47
+ - File/diff preview (openFile / openDiff)
48
+ - Diagnostic information (getDiagnostics)
49
+ - Selection change notifications (selection_changed)
50
+
51
+ > `--ide` is just a quick connection method when "you manually start the CLI from an IDE terminal" and is not responsible for actually starting the IDE or plugin.
52
+
53
+ ### `/ide` Slash Command
54
+
55
+ When using IDE plugin integration in CodeBuddy's interactive interface, you can use the `/ide` command to view and manage the current IDE connection status:
56
+
57
+ ```text
58
+ /ide
59
+ ```
60
+
61
+ Typical uses include:
62
+
63
+ - Viewing whether an IDE is currently connected and which one
64
+ - Selecting which instance to connect to when multiple available IDEs exist
65
+ - Manually disconnecting or re-establishing MCP connections with the IDE
66
+
67
+ The specific interaction behavior is determined by the IDE integration UI, but the overall positioning is "managing IDE integration status" rather than directly initiating chat.
68
+
69
+ ## Which Integration Method to Choose?
70
+
71
+ - If your editor natively supports ACP (such as Zed), we recommend using **ACP Protocol Integration**:
72
+ - Start with `codebuddy --acp`
73
+ - The editor is responsible for session UI and tool delegation
74
+ - If you use VS Code / Cursor / JetBrains, etc., and install the CodeBuddy plugin from the plugin marketplace, we recommend using **`--ide` / `/ide` Plugin Integration**:
75
+ - The plugin is responsible for starting the CodeBuddy process and establishing MCP connections
76
+ - The CLI side establishes and manages connections with the IDE through `--ide` / `/ide`
77
+
78
+ Both methods are equivalent at the "integration level" - they both allow CodeBuddy to deeply collaborate with the IDE as an external Agent, just with different access protocols and UI carriers.
79
+
80
+ ## Future Plans
81
+
82
+ Future versions will provide more enhanced features:
83
+
84
+ - Friendlier DIFF display and modification confirmation process (combined with IDE diff preview)
85
+ - Richer context selection and visualization in IDE plugins
86
+ - More official integrations with editors and IDEs
87
+
88
+ ## Related Documentation
89
+
90
+ - [ACP Protocol Integration](./acp.md) - Detailed ACP configuration guide
91
+ - [CLI Reference Manual](./cli-reference.md) - Command-line parameter descriptions
92
+ - [Slash Commands](./slash-commands.md) - Overview of session commands including `/ide`