@tencent-ai/codebuddy-code 2.67.0-next.ed1b89f.20260329 → 2.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/codebuddy-headless.js +53 -53
  3. package/dist/codebuddy.js +93 -64
  4. package/dist/web-ui/assets/index-BoMlEqUE.js +439 -0
  5. package/dist/web-ui/assets/index-Dt1puyHn.css +32 -0
  6. package/dist/web-ui/docs/cn/cli/acp.md +152 -0
  7. package/dist/web-ui/docs/cn/cli/agent-teams.md +327 -0
  8. package/dist/web-ui/docs/cn/cli/bash-sandboxing.md +290 -0
  9. package/dist/web-ui/docs/cn/cli/best-practices.md +554 -0
  10. package/dist/web-ui/docs/cn/cli/channels-reference.md +293 -0
  11. package/dist/web-ui/docs/cn/cli/channels.md +215 -0
  12. package/dist/web-ui/docs/cn/cli/checkpointing.md +51 -0
  13. package/dist/web-ui/docs/cn/cli/cli-reference.md +187 -0
  14. package/dist/web-ui/docs/cn/cli/common-workflows.md +1013 -0
  15. package/dist/web-ui/docs/cn/cli/costs.md +174 -0
  16. package/dist/web-ui/docs/cn/cli/devcontainer.md +553 -0
  17. package/dist/web-ui/docs/cn/cli/env-vars.md +326 -0
  18. package/dist/web-ui/docs/cn/cli/gitlab-ci-cd.md +357 -0
  19. package/dist/web-ui/docs/cn/cli/headless.md +258 -0
  20. package/dist/web-ui/docs/cn/cli/hooks-guide.md +9 -0
  21. package/dist/web-ui/docs/cn/cli/hooks.md +805 -0
  22. package/dist/web-ui/docs/cn/cli/iam.md +530 -0
  23. package/dist/web-ui/docs/cn/cli/ide-integrations.md +92 -0
  24. package/dist/web-ui/docs/cn/cli/installation.md +291 -0
  25. package/dist/web-ui/docs/cn/cli/interactive-mode.md +233 -0
  26. package/dist/web-ui/docs/cn/cli/mcp.md +739 -0
  27. package/dist/web-ui/docs/cn/cli/memory.md +436 -0
  28. package/dist/web-ui/docs/cn/cli/models.md +356 -0
  29. package/dist/web-ui/docs/cn/cli/overview.md +100 -0
  30. package/dist/web-ui/docs/cn/cli/plugin-marketplaces.md +533 -0
  31. package/dist/web-ui/docs/cn/cli/plugins-reference.md +774 -0
  32. package/dist/web-ui/docs/cn/cli/plugins.md +689 -0
  33. package/dist/web-ui/docs/cn/cli/quickstart.md +249 -0
  34. package/dist/web-ui/docs/cn/cli/release-notes/README.md +199 -0
  35. package/dist/web-ui/docs/cn/cli/release-notes/v2.10.0.md +23 -0
  36. package/dist/web-ui/docs/cn/cli/release-notes/v2.10.1.md +5 -0
  37. package/dist/web-ui/docs/cn/cli/release-notes/v2.11.0.md +24 -0
  38. package/dist/web-ui/docs/cn/cli/release-notes/v2.12.0.md +21 -0
  39. package/dist/web-ui/docs/cn/cli/release-notes/v2.13.0.md +20 -0
  40. package/dist/web-ui/docs/cn/cli/release-notes/v2.14.0.md +22 -0
  41. package/dist/web-ui/docs/cn/cli/release-notes/v2.14.1.md +8 -0
  42. package/dist/web-ui/docs/cn/cli/release-notes/v2.15.0.md +18 -0
  43. package/dist/web-ui/docs/cn/cli/release-notes/v2.15.1.md +11 -0
  44. package/dist/web-ui/docs/cn/cli/release-notes/v2.16.0.md +20 -0
  45. package/dist/web-ui/docs/cn/cli/release-notes/v2.17.0.md +29 -0
  46. package/dist/web-ui/docs/cn/cli/release-notes/v2.18.0.md +17 -0
  47. package/dist/web-ui/docs/cn/cli/release-notes/v2.19.0.md +11 -0
  48. package/dist/web-ui/docs/cn/cli/release-notes/v2.19.1.md +14 -0
  49. package/dist/web-ui/docs/cn/cli/release-notes/v2.19.2.md +11 -0
  50. package/dist/web-ui/docs/cn/cli/release-notes/v2.20.0.md +23 -0
  51. package/dist/web-ui/docs/cn/cli/release-notes/v2.20.1.md +15 -0
  52. package/dist/web-ui/docs/cn/cli/release-notes/v2.21.0.md +13 -0
  53. package/dist/web-ui/docs/cn/cli/release-notes/v2.22.0.md +16 -0
  54. package/dist/web-ui/docs/cn/cli/release-notes/v2.23.0.md +20 -0
  55. package/dist/web-ui/docs/cn/cli/release-notes/v2.23.2.md +5 -0
  56. package/dist/web-ui/docs/cn/cli/release-notes/v2.23.3.md +5 -0
  57. package/dist/web-ui/docs/cn/cli/release-notes/v2.23.4.md +15 -0
  58. package/dist/web-ui/docs/cn/cli/release-notes/v2.23.5.md +11 -0
  59. package/dist/web-ui/docs/cn/cli/release-notes/v2.24.0.md +17 -0
  60. package/dist/web-ui/docs/cn/cli/release-notes/v2.25.0.md +18 -0
  61. package/dist/web-ui/docs/cn/cli/release-notes/v2.25.1.md +21 -0
  62. package/dist/web-ui/docs/cn/cli/release-notes/v2.26.0.md +18 -0
  63. package/dist/web-ui/docs/cn/cli/release-notes/v2.27.0.md +16 -0
  64. package/dist/web-ui/docs/cn/cli/release-notes/v2.27.1.md +16 -0
  65. package/dist/web-ui/docs/cn/cli/release-notes/v2.27.2.md +7 -0
  66. package/dist/web-ui/docs/cn/cli/release-notes/v2.27.3.md +15 -0
  67. package/dist/web-ui/docs/cn/cli/release-notes/v2.28.0.md +26 -0
  68. package/dist/web-ui/docs/cn/cli/release-notes/v2.28.1.md +5 -0
  69. package/dist/web-ui/docs/cn/cli/release-notes/v2.29.0.md +35 -0
  70. package/dist/web-ui/docs/cn/cli/release-notes/v2.3.1.md +16 -0
  71. package/dist/web-ui/docs/cn/cli/release-notes/v2.30.0.md +19 -0
  72. package/dist/web-ui/docs/cn/cli/release-notes/v2.30.1.md +5 -0
  73. package/dist/web-ui/docs/cn/cli/release-notes/v2.31.0.md +51 -0
  74. package/dist/web-ui/docs/cn/cli/release-notes/v2.31.1.md +11 -0
  75. package/dist/web-ui/docs/cn/cli/release-notes/v2.31.2.md +16 -0
  76. package/dist/web-ui/docs/cn/cli/release-notes/v2.32.0.md +19 -0
  77. package/dist/web-ui/docs/cn/cli/release-notes/v2.33.0.md +28 -0
  78. package/dist/web-ui/docs/cn/cli/release-notes/v2.33.1.md +7 -0
  79. package/dist/web-ui/docs/cn/cli/release-notes/v2.36.3.md +17 -0
  80. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.0.md +15 -0
  81. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.1.md +15 -0
  82. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.10.md +5 -0
  83. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.11.md +8 -0
  84. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.12.md +14 -0
  85. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.13.md +11 -0
  86. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.14.md +24 -0
  87. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.15.md +11 -0
  88. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.16.md +9 -0
  89. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.17.md +5 -0
  90. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.18.md +9 -0
  91. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.19.md +5 -0
  92. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.2.md +28 -0
  93. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.20.md +8 -0
  94. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.3.md +22 -0
  95. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.4.md +19 -0
  96. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.5.md +5 -0
  97. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.6.md +5 -0
  98. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.7.md +5 -0
  99. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.8.md +5 -0
  100. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.9.md +8 -0
  101. package/dist/web-ui/docs/cn/cli/release-notes/v2.38.0.md +22 -0
  102. package/dist/web-ui/docs/cn/cli/release-notes/v2.38.1.md +6 -0
  103. package/dist/web-ui/docs/cn/cli/release-notes/v2.38.2.md +9 -0
  104. package/dist/web-ui/docs/cn/cli/release-notes/v2.39.0.md +18 -0
  105. package/dist/web-ui/docs/cn/cli/release-notes/v2.4.0.md +19 -0
  106. package/dist/web-ui/docs/cn/cli/release-notes/v2.40.0.md +20 -0
  107. package/dist/web-ui/docs/cn/cli/release-notes/v2.40.1.md +6 -0
  108. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.0.md +15 -0
  109. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.1.md +6 -0
  110. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.2.md +5 -0
  111. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.3.md +8 -0
  112. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.4.md +5 -0
  113. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.5.md +10 -0
  114. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.6.md +9 -0
  115. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.7.md +14 -0
  116. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.8.md +18 -0
  117. package/dist/web-ui/docs/cn/cli/release-notes/v2.42.0.md +39 -0
  118. package/dist/web-ui/docs/cn/cli/release-notes/v2.42.1.md +8 -0
  119. package/dist/web-ui/docs/cn/cli/release-notes/v2.42.3.md +18 -0
  120. package/dist/web-ui/docs/cn/cli/release-notes/v2.43.0.md +27 -0
  121. package/dist/web-ui/docs/cn/cli/release-notes/v2.43.1.md +27 -0
  122. package/dist/web-ui/docs/cn/cli/release-notes/v2.44.0.md +11 -0
  123. package/dist/web-ui/docs/cn/cli/release-notes/v2.44.1.md +22 -0
  124. package/dist/web-ui/docs/cn/cli/release-notes/v2.45.0.md +34 -0
  125. package/dist/web-ui/docs/cn/cli/release-notes/v2.45.1.md +7 -0
  126. package/dist/web-ui/docs/cn/cli/release-notes/v2.46.0.md +12 -0
  127. package/dist/web-ui/docs/cn/cli/release-notes/v2.47.0.md +20 -0
  128. package/dist/web-ui/docs/cn/cli/release-notes/v2.48.0.md +32 -0
  129. package/dist/web-ui/docs/cn/cli/release-notes/v2.48.1.md +11 -0
  130. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.0.md +26 -0
  131. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.1.md +14 -0
  132. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.2.md +39 -0
  133. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.3.md +7 -0
  134. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.5.md +11 -0
  135. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.6.md +9 -0
  136. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.7.md +7 -0
  137. package/dist/web-ui/docs/cn/cli/release-notes/v2.5.0.md +24 -0
  138. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.0.md +25 -0
  139. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.1.md +9 -0
  140. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.2.md +11 -0
  141. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.3.md +5 -0
  142. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.4.md +17 -0
  143. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.5.md +16 -0
  144. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.6.md +15 -0
  145. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.7.md +15 -0
  146. package/dist/web-ui/docs/cn/cli/release-notes/v2.51.0.md +24 -0
  147. package/dist/web-ui/docs/cn/cli/release-notes/v2.51.1.md +17 -0
  148. package/dist/web-ui/docs/cn/cli/release-notes/v2.51.2.md +5 -0
  149. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.0.md +30 -0
  150. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.1.md +28 -0
  151. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.2.md +12 -0
  152. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.3.md +13 -0
  153. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.4.md +27 -0
  154. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.5.md +21 -0
  155. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.6.md +7 -0
  156. package/dist/web-ui/docs/cn/cli/release-notes/v2.53.0.md +29 -0
  157. package/dist/web-ui/docs/cn/cli/release-notes/v2.54.0.md +26 -0
  158. package/dist/web-ui/docs/cn/cli/release-notes/v2.55.0.md +21 -0
  159. package/dist/web-ui/docs/cn/cli/release-notes/v2.55.1.md +13 -0
  160. package/dist/web-ui/docs/cn/cli/release-notes/v2.56.0.md +20 -0
  161. package/dist/web-ui/docs/cn/cli/release-notes/v2.56.1.md +5 -0
  162. package/dist/web-ui/docs/cn/cli/release-notes/v2.57.0.md +32 -0
  163. package/dist/web-ui/docs/cn/cli/release-notes/v2.57.1.md +10 -0
  164. package/dist/web-ui/docs/cn/cli/release-notes/v2.58.0.md +34 -0
  165. package/dist/web-ui/docs/cn/cli/release-notes/v2.59.0.md +28 -0
  166. package/dist/web-ui/docs/cn/cli/release-notes/v2.6.0.md +5 -0
  167. package/dist/web-ui/docs/cn/cli/release-notes/v2.6.1.md +10 -0
  168. package/dist/web-ui/docs/cn/cli/release-notes/v2.60.0.md +20 -0
  169. package/dist/web-ui/docs/cn/cli/release-notes/v2.61.0.md +29 -0
  170. package/dist/web-ui/docs/cn/cli/release-notes/v2.61.1.md +5 -0
  171. package/dist/web-ui/docs/cn/cli/release-notes/v2.61.2.md +6 -0
  172. package/dist/web-ui/docs/cn/cli/release-notes/v2.61.3.md +13 -0
  173. package/dist/web-ui/docs/cn/cli/release-notes/v2.62.0.md +21 -0
  174. package/dist/web-ui/docs/cn/cli/release-notes/v2.62.1.md +11 -0
  175. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.0.md +19 -0
  176. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.1.md +5 -0
  177. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.2.md +7 -0
  178. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.3.md +6 -0
  179. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.4.md +8 -0
  180. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.5.md +6 -0
  181. package/dist/web-ui/docs/cn/cli/release-notes/v2.64.0.md +37 -0
  182. package/dist/web-ui/docs/cn/cli/release-notes/v2.64.1.md +6 -0
  183. package/dist/web-ui/docs/cn/cli/release-notes/v2.64.2.md +11 -0
  184. package/dist/web-ui/docs/cn/cli/release-notes/v2.65.0.md +19 -0
  185. package/dist/web-ui/docs/cn/cli/release-notes/v2.65.1.md +11 -0
  186. package/dist/web-ui/docs/cn/cli/release-notes/v2.66.0.md +15 -0
  187. package/dist/web-ui/docs/cn/cli/release-notes/v2.66.1.md +14 -0
  188. package/dist/web-ui/docs/cn/cli/release-notes/v2.66.2.md +5 -0
  189. package/dist/web-ui/docs/cn/cli/release-notes/v2.67.0.md +33 -0
  190. package/dist/web-ui/docs/cn/cli/release-notes/v2.7.0.md +16 -0
  191. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.0.md +18 -0
  192. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.1.md +17 -0
  193. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.2.md +5 -0
  194. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.3.md +14 -0
  195. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.4.md +9 -0
  196. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.5.md +5 -0
  197. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.6.md +14 -0
  198. package/dist/web-ui/docs/cn/cli/release-notes/v2.9.0.md +5 -0
  199. package/dist/web-ui/docs/cn/cli/remote-control.md +247 -0
  200. package/dist/web-ui/docs/cn/cli/sandboxing.md +316 -0
  201. package/dist/web-ui/docs/cn/cli/scheduled-tasks.md +161 -0
  202. package/dist/web-ui/docs/cn/cli/sdk-custom-tools.md +1195 -0
  203. package/dist/web-ui/docs/cn/cli/sdk-demos.md +347 -0
  204. package/dist/web-ui/docs/cn/cli/sdk-hooks.md +803 -0
  205. package/dist/web-ui/docs/cn/cli/sdk-mcp.md +643 -0
  206. package/dist/web-ui/docs/cn/cli/sdk-permissions.md +501 -0
  207. package/dist/web-ui/docs/cn/cli/sdk-python.md +783 -0
  208. package/dist/web-ui/docs/cn/cli/sdk-sessions.md +332 -0
  209. package/dist/web-ui/docs/cn/cli/sdk-typescript.md +759 -0
  210. package/dist/web-ui/docs/cn/cli/sdk.md +1105 -0
  211. package/dist/web-ui/docs/cn/cli/security.md +387 -0
  212. package/dist/web-ui/docs/cn/cli/settings.md +602 -0
  213. package/dist/web-ui/docs/cn/cli/skills.md +448 -0
  214. package/dist/web-ui/docs/cn/cli/slash-commands.md +397 -0
  215. package/dist/web-ui/docs/cn/cli/statusline.md +525 -0
  216. package/dist/web-ui/docs/cn/cli/sub-agents.md +634 -0
  217. package/dist/web-ui/docs/cn/cli/terminal-config.md +77 -0
  218. package/dist/web-ui/docs/cn/cli/tools-reference.md +99 -0
  219. package/dist/web-ui/docs/cn/cli/troubleshooting.md +190 -0
  220. package/dist/web-ui/docs/cn/cli/web-ui.md +164 -0
  221. package/dist/web-ui/docs/cn/cli/wecom-bot-setup.md +274 -0
  222. package/dist/web-ui/docs/cn/cli/worktree.md +660 -0
  223. package/dist/web-ui/docs/en/cli/acp.md +126 -0
  224. package/dist/web-ui/docs/en/cli/agent-teams.md +327 -0
  225. package/dist/web-ui/docs/en/cli/bash-sandboxing.md +357 -0
  226. package/dist/web-ui/docs/en/cli/best-practices.md +554 -0
  227. package/dist/web-ui/docs/en/cli/channels-reference.md +293 -0
  228. package/dist/web-ui/docs/en/cli/channels.md +215 -0
  229. package/dist/web-ui/docs/en/cli/checkpointing.md +53 -0
  230. package/dist/web-ui/docs/en/cli/cli-reference.md +187 -0
  231. package/dist/web-ui/docs/en/cli/common-workflows.md +1011 -0
  232. package/dist/web-ui/docs/en/cli/costs.md +174 -0
  233. package/dist/web-ui/docs/en/cli/devcontainer.md +553 -0
  234. package/dist/web-ui/docs/en/cli/env-vars.md +326 -0
  235. package/dist/web-ui/docs/en/cli/gitlab-ci-cd.md +357 -0
  236. package/dist/web-ui/docs/en/cli/headless.md +258 -0
  237. package/dist/web-ui/docs/en/cli/hooks-guide.md +9 -0
  238. package/dist/web-ui/docs/en/cli/hooks.md +801 -0
  239. package/dist/web-ui/docs/en/cli/iam.md +526 -0
  240. package/dist/web-ui/docs/en/cli/ide-integrations.md +92 -0
  241. package/dist/web-ui/docs/en/cli/installation.md +266 -0
  242. package/dist/web-ui/docs/en/cli/interactive-mode.md +233 -0
  243. package/dist/web-ui/docs/en/cli/mcp.md +739 -0
  244. package/dist/web-ui/docs/en/cli/memory.md +436 -0
  245. package/dist/web-ui/docs/en/cli/models.md +355 -0
  246. package/dist/web-ui/docs/en/cli/overview.md +100 -0
  247. package/dist/web-ui/docs/en/cli/plugin-marketplaces.md +534 -0
  248. package/dist/web-ui/docs/en/cli/plugins-reference.md +774 -0
  249. package/dist/web-ui/docs/en/cli/plugins.md +688 -0
  250. package/dist/web-ui/docs/en/cli/quickstart.md +249 -0
  251. package/dist/web-ui/docs/en/cli/release-notes/README.md +193 -0
  252. package/dist/web-ui/docs/en/cli/release-notes/v2.10.0.md +23 -0
  253. package/dist/web-ui/docs/en/cli/release-notes/v2.10.1.md +5 -0
  254. package/dist/web-ui/docs/en/cli/release-notes/v2.11.0.md +24 -0
  255. package/dist/web-ui/docs/en/cli/release-notes/v2.12.0.md +21 -0
  256. package/dist/web-ui/docs/en/cli/release-notes/v2.13.0.md +20 -0
  257. package/dist/web-ui/docs/en/cli/release-notes/v2.14.0.md +22 -0
  258. package/dist/web-ui/docs/en/cli/release-notes/v2.14.1.md +8 -0
  259. package/dist/web-ui/docs/en/cli/release-notes/v2.15.0.md +18 -0
  260. package/dist/web-ui/docs/en/cli/release-notes/v2.15.1.md +11 -0
  261. package/dist/web-ui/docs/en/cli/release-notes/v2.16.0.md +20 -0
  262. package/dist/web-ui/docs/en/cli/release-notes/v2.17.0.md +29 -0
  263. package/dist/web-ui/docs/en/cli/release-notes/v2.18.0.md +17 -0
  264. package/dist/web-ui/docs/en/cli/release-notes/v2.19.0.md +11 -0
  265. package/dist/web-ui/docs/en/cli/release-notes/v2.19.1.md +14 -0
  266. package/dist/web-ui/docs/en/cli/release-notes/v2.19.2.md +11 -0
  267. package/dist/web-ui/docs/en/cli/release-notes/v2.20.0.md +23 -0
  268. package/dist/web-ui/docs/en/cli/release-notes/v2.20.1.md +15 -0
  269. package/dist/web-ui/docs/en/cli/release-notes/v2.21.0.md +13 -0
  270. package/dist/web-ui/docs/en/cli/release-notes/v2.22.0.md +16 -0
  271. package/dist/web-ui/docs/en/cli/release-notes/v2.23.0.md +41 -0
  272. package/dist/web-ui/docs/en/cli/release-notes/v2.23.2.md +5 -0
  273. package/dist/web-ui/docs/en/cli/release-notes/v2.23.3.md +5 -0
  274. package/dist/web-ui/docs/en/cli/release-notes/v2.23.4.md +15 -0
  275. package/dist/web-ui/docs/en/cli/release-notes/v2.23.5.md +11 -0
  276. package/dist/web-ui/docs/en/cli/release-notes/v2.24.0.md +17 -0
  277. package/dist/web-ui/docs/en/cli/release-notes/v2.25.0.md +18 -0
  278. package/dist/web-ui/docs/en/cli/release-notes/v2.25.1.md +21 -0
  279. package/dist/web-ui/docs/en/cli/release-notes/v2.26.0.md +18 -0
  280. package/dist/web-ui/docs/en/cli/release-notes/v2.27.0.md +16 -0
  281. package/dist/web-ui/docs/en/cli/release-notes/v2.27.1.md +16 -0
  282. package/dist/web-ui/docs/en/cli/release-notes/v2.27.2.md +7 -0
  283. package/dist/web-ui/docs/en/cli/release-notes/v2.27.3.md +15 -0
  284. package/dist/web-ui/docs/en/cli/release-notes/v2.28.0.md +26 -0
  285. package/dist/web-ui/docs/en/cli/release-notes/v2.28.1.md +5 -0
  286. package/dist/web-ui/docs/en/cli/release-notes/v2.29.0.md +35 -0
  287. package/dist/web-ui/docs/en/cli/release-notes/v2.3.1.md +16 -0
  288. package/dist/web-ui/docs/en/cli/release-notes/v2.30.0.md +19 -0
  289. package/dist/web-ui/docs/en/cli/release-notes/v2.30.1.md +5 -0
  290. package/dist/web-ui/docs/en/cli/release-notes/v2.31.0.md +51 -0
  291. package/dist/web-ui/docs/en/cli/release-notes/v2.31.1.md +11 -0
  292. package/dist/web-ui/docs/en/cli/release-notes/v2.31.2.md +16 -0
  293. package/dist/web-ui/docs/en/cli/release-notes/v2.32.0.md +19 -0
  294. package/dist/web-ui/docs/en/cli/release-notes/v2.33.0.md +28 -0
  295. package/dist/web-ui/docs/en/cli/release-notes/v2.33.1.md +7 -0
  296. package/dist/web-ui/docs/en/cli/release-notes/v2.34.0.md +27 -0
  297. package/dist/web-ui/docs/en/cli/release-notes/v2.34.1.md +7 -0
  298. package/dist/web-ui/docs/en/cli/release-notes/v2.35.0.md +22 -0
  299. package/dist/web-ui/docs/en/cli/release-notes/v2.36.0.md +23 -0
  300. package/dist/web-ui/docs/en/cli/release-notes/v2.36.1.md +5 -0
  301. package/dist/web-ui/docs/en/cli/release-notes/v2.36.2.md +22 -0
  302. package/dist/web-ui/docs/en/cli/release-notes/v2.36.3.md +17 -0
  303. package/dist/web-ui/docs/en/cli/release-notes/v2.37.0.md +15 -0
  304. package/dist/web-ui/docs/en/cli/release-notes/v2.37.1.md +15 -0
  305. package/dist/web-ui/docs/en/cli/release-notes/v2.37.10.md +5 -0
  306. package/dist/web-ui/docs/en/cli/release-notes/v2.37.11.md +8 -0
  307. package/dist/web-ui/docs/en/cli/release-notes/v2.37.12.md +14 -0
  308. package/dist/web-ui/docs/en/cli/release-notes/v2.37.13.md +11 -0
  309. package/dist/web-ui/docs/en/cli/release-notes/v2.37.14.md +24 -0
  310. package/dist/web-ui/docs/en/cli/release-notes/v2.37.15.md +11 -0
  311. package/dist/web-ui/docs/en/cli/release-notes/v2.37.16.md +9 -0
  312. package/dist/web-ui/docs/en/cli/release-notes/v2.37.17.md +5 -0
  313. package/dist/web-ui/docs/en/cli/release-notes/v2.37.18.md +9 -0
  314. package/dist/web-ui/docs/en/cli/release-notes/v2.37.19.md +5 -0
  315. package/dist/web-ui/docs/en/cli/release-notes/v2.37.2.md +28 -0
  316. package/dist/web-ui/docs/en/cli/release-notes/v2.37.20.md +8 -0
  317. package/dist/web-ui/docs/en/cli/release-notes/v2.37.3.md +22 -0
  318. package/dist/web-ui/docs/en/cli/release-notes/v2.37.4.md +19 -0
  319. package/dist/web-ui/docs/en/cli/release-notes/v2.37.5.md +5 -0
  320. package/dist/web-ui/docs/en/cli/release-notes/v2.37.6.md +5 -0
  321. package/dist/web-ui/docs/en/cli/release-notes/v2.37.7.md +5 -0
  322. package/dist/web-ui/docs/en/cli/release-notes/v2.37.8.md +5 -0
  323. package/dist/web-ui/docs/en/cli/release-notes/v2.37.9.md +8 -0
  324. package/dist/web-ui/docs/en/cli/release-notes/v2.38.0.md +22 -0
  325. package/dist/web-ui/docs/en/cli/release-notes/v2.38.1.md +6 -0
  326. package/dist/web-ui/docs/en/cli/release-notes/v2.38.2.md +9 -0
  327. package/dist/web-ui/docs/en/cli/release-notes/v2.39.0.md +18 -0
  328. package/dist/web-ui/docs/en/cli/release-notes/v2.4.0.md +19 -0
  329. package/dist/web-ui/docs/en/cli/release-notes/v2.40.0.md +20 -0
  330. package/dist/web-ui/docs/en/cli/release-notes/v2.40.1.md +6 -0
  331. package/dist/web-ui/docs/en/cli/release-notes/v2.41.0.md +15 -0
  332. package/dist/web-ui/docs/en/cli/release-notes/v2.41.1.md +6 -0
  333. package/dist/web-ui/docs/en/cli/release-notes/v2.41.2.md +5 -0
  334. package/dist/web-ui/docs/en/cli/release-notes/v2.41.3.md +8 -0
  335. package/dist/web-ui/docs/en/cli/release-notes/v2.41.4.md +5 -0
  336. package/dist/web-ui/docs/en/cli/release-notes/v2.41.5.md +10 -0
  337. package/dist/web-ui/docs/en/cli/release-notes/v2.41.6.md +9 -0
  338. package/dist/web-ui/docs/en/cli/release-notes/v2.41.7.md +14 -0
  339. package/dist/web-ui/docs/en/cli/release-notes/v2.41.8.md +18 -0
  340. package/dist/web-ui/docs/en/cli/release-notes/v2.42.0.md +39 -0
  341. package/dist/web-ui/docs/en/cli/release-notes/v2.42.1.md +8 -0
  342. package/dist/web-ui/docs/en/cli/release-notes/v2.42.3.md +18 -0
  343. package/dist/web-ui/docs/en/cli/release-notes/v2.43.0.md +27 -0
  344. package/dist/web-ui/docs/en/cli/release-notes/v2.43.1.md +27 -0
  345. package/dist/web-ui/docs/en/cli/release-notes/v2.44.0.md +11 -0
  346. package/dist/web-ui/docs/en/cli/release-notes/v2.44.1.md +22 -0
  347. package/dist/web-ui/docs/en/cli/release-notes/v2.45.0.md +34 -0
  348. package/dist/web-ui/docs/en/cli/release-notes/v2.45.1.md +7 -0
  349. package/dist/web-ui/docs/en/cli/release-notes/v2.46.0.md +12 -0
  350. package/dist/web-ui/docs/en/cli/release-notes/v2.47.0.md +20 -0
  351. package/dist/web-ui/docs/en/cli/release-notes/v2.48.0.md +32 -0
  352. package/dist/web-ui/docs/en/cli/release-notes/v2.48.1.md +11 -0
  353. package/dist/web-ui/docs/en/cli/release-notes/v2.49.0.md +26 -0
  354. package/dist/web-ui/docs/en/cli/release-notes/v2.49.1.md +14 -0
  355. package/dist/web-ui/docs/en/cli/release-notes/v2.49.2.md +39 -0
  356. package/dist/web-ui/docs/en/cli/release-notes/v2.49.3.md +7 -0
  357. package/dist/web-ui/docs/en/cli/release-notes/v2.49.5.md +11 -0
  358. package/dist/web-ui/docs/en/cli/release-notes/v2.49.6.md +9 -0
  359. package/dist/web-ui/docs/en/cli/release-notes/v2.49.7.md +7 -0
  360. package/dist/web-ui/docs/en/cli/release-notes/v2.5.0.md +24 -0
  361. package/dist/web-ui/docs/en/cli/release-notes/v2.50.0.md +25 -0
  362. package/dist/web-ui/docs/en/cli/release-notes/v2.50.1.md +9 -0
  363. package/dist/web-ui/docs/en/cli/release-notes/v2.50.2.md +11 -0
  364. package/dist/web-ui/docs/en/cli/release-notes/v2.50.3.md +5 -0
  365. package/dist/web-ui/docs/en/cli/release-notes/v2.50.4.md +17 -0
  366. package/dist/web-ui/docs/en/cli/release-notes/v2.50.5.md +16 -0
  367. package/dist/web-ui/docs/en/cli/release-notes/v2.50.6.md +15 -0
  368. package/dist/web-ui/docs/en/cli/release-notes/v2.50.7.md +15 -0
  369. package/dist/web-ui/docs/en/cli/release-notes/v2.51.0.md +24 -0
  370. package/dist/web-ui/docs/en/cli/release-notes/v2.51.1.md +17 -0
  371. package/dist/web-ui/docs/en/cli/release-notes/v2.51.2.md +5 -0
  372. package/dist/web-ui/docs/en/cli/release-notes/v2.52.0.md +30 -0
  373. package/dist/web-ui/docs/en/cli/release-notes/v2.52.1.md +28 -0
  374. package/dist/web-ui/docs/en/cli/release-notes/v2.52.2.md +12 -0
  375. package/dist/web-ui/docs/en/cli/release-notes/v2.52.3.md +13 -0
  376. package/dist/web-ui/docs/en/cli/release-notes/v2.52.4.md +27 -0
  377. package/dist/web-ui/docs/en/cli/release-notes/v2.52.5.md +21 -0
  378. package/dist/web-ui/docs/en/cli/release-notes/v2.52.6.md +7 -0
  379. package/dist/web-ui/docs/en/cli/release-notes/v2.53.0.md +29 -0
  380. package/dist/web-ui/docs/en/cli/release-notes/v2.54.0.md +26 -0
  381. package/dist/web-ui/docs/en/cli/release-notes/v2.55.0.md +21 -0
  382. package/dist/web-ui/docs/en/cli/release-notes/v2.55.1.md +13 -0
  383. package/dist/web-ui/docs/en/cli/release-notes/v2.56.0.md +20 -0
  384. package/dist/web-ui/docs/en/cli/release-notes/v2.56.1.md +5 -0
  385. package/dist/web-ui/docs/en/cli/release-notes/v2.57.0.md +32 -0
  386. package/dist/web-ui/docs/en/cli/release-notes/v2.57.1.md +10 -0
  387. package/dist/web-ui/docs/en/cli/release-notes/v2.58.0.md +34 -0
  388. package/dist/web-ui/docs/en/cli/release-notes/v2.59.0.md +28 -0
  389. package/dist/web-ui/docs/en/cli/release-notes/v2.6.0.md +5 -0
  390. package/dist/web-ui/docs/en/cli/release-notes/v2.6.1.md +10 -0
  391. package/dist/web-ui/docs/en/cli/release-notes/v2.60.0.md +20 -0
  392. package/dist/web-ui/docs/en/cli/release-notes/v2.61.0.md +29 -0
  393. package/dist/web-ui/docs/en/cli/release-notes/v2.61.1.md +5 -0
  394. package/dist/web-ui/docs/en/cli/release-notes/v2.61.2.md +6 -0
  395. package/dist/web-ui/docs/en/cli/release-notes/v2.61.3.md +13 -0
  396. package/dist/web-ui/docs/en/cli/release-notes/v2.62.0.md +21 -0
  397. package/dist/web-ui/docs/en/cli/release-notes/v2.62.1.md +11 -0
  398. package/dist/web-ui/docs/en/cli/release-notes/v2.63.0.md +19 -0
  399. package/dist/web-ui/docs/en/cli/release-notes/v2.63.1.md +5 -0
  400. package/dist/web-ui/docs/en/cli/release-notes/v2.63.2.md +7 -0
  401. package/dist/web-ui/docs/en/cli/release-notes/v2.63.3.md +6 -0
  402. package/dist/web-ui/docs/en/cli/release-notes/v2.63.4.md +8 -0
  403. package/dist/web-ui/docs/en/cli/release-notes/v2.63.5.md +6 -0
  404. package/dist/web-ui/docs/en/cli/release-notes/v2.64.0.md +37 -0
  405. package/dist/web-ui/docs/en/cli/release-notes/v2.64.1.md +6 -0
  406. package/dist/web-ui/docs/en/cli/release-notes/v2.64.2.md +11 -0
  407. package/dist/web-ui/docs/en/cli/release-notes/v2.65.0.md +19 -0
  408. package/dist/web-ui/docs/en/cli/release-notes/v2.65.1.md +11 -0
  409. package/dist/web-ui/docs/en/cli/release-notes/v2.66.0.md +15 -0
  410. package/dist/web-ui/docs/en/cli/release-notes/v2.66.1.md +14 -0
  411. package/dist/web-ui/docs/en/cli/release-notes/v2.66.2.md +5 -0
  412. package/dist/web-ui/docs/en/cli/release-notes/v2.67.0.md +33 -0
  413. package/dist/web-ui/docs/en/cli/release-notes/v2.7.0.md +16 -0
  414. package/dist/web-ui/docs/en/cli/release-notes/v2.8.0.md +18 -0
  415. package/dist/web-ui/docs/en/cli/release-notes/v2.8.1.md +17 -0
  416. package/dist/web-ui/docs/en/cli/release-notes/v2.8.2.md +5 -0
  417. package/dist/web-ui/docs/en/cli/release-notes/v2.8.3.md +14 -0
  418. package/dist/web-ui/docs/en/cli/release-notes/v2.8.4.md +9 -0
  419. package/dist/web-ui/docs/en/cli/release-notes/v2.8.5.md +5 -0
  420. package/dist/web-ui/docs/en/cli/release-notes/v2.8.6.md +14 -0
  421. package/dist/web-ui/docs/en/cli/release-notes/v2.9.0.md +5 -0
  422. package/dist/web-ui/docs/en/cli/remote-control.md +247 -0
  423. package/dist/web-ui/docs/en/cli/sandboxing.md +316 -0
  424. package/dist/web-ui/docs/en/cli/scheduled-tasks.md +160 -0
  425. package/dist/web-ui/docs/en/cli/sdk-custom-tools.md +1131 -0
  426. package/dist/web-ui/docs/en/cli/sdk-demos.md +347 -0
  427. package/dist/web-ui/docs/en/cli/sdk-hooks.md +813 -0
  428. package/dist/web-ui/docs/en/cli/sdk-mcp.md +645 -0
  429. package/dist/web-ui/docs/en/cli/sdk-permissions.md +461 -0
  430. package/dist/web-ui/docs/en/cli/sdk-python.md +797 -0
  431. package/dist/web-ui/docs/en/cli/sdk-sessions.md +340 -0
  432. package/dist/web-ui/docs/en/cli/sdk-typescript.md +770 -0
  433. package/dist/web-ui/docs/en/cli/sdk.md +1103 -0
  434. package/dist/web-ui/docs/en/cli/security.md +388 -0
  435. package/dist/web-ui/docs/en/cli/settings.md +602 -0
  436. package/dist/web-ui/docs/en/cli/skills.md +448 -0
  437. package/dist/web-ui/docs/en/cli/slash-commands.md +397 -0
  438. package/dist/web-ui/docs/en/cli/statusline.md +525 -0
  439. package/dist/web-ui/docs/en/cli/sub-agents.md +621 -0
  440. package/dist/web-ui/docs/en/cli/terminal-config.md +77 -0
  441. package/dist/web-ui/docs/en/cli/tools-reference.md +99 -0
  442. package/dist/web-ui/docs/en/cli/troubleshooting.md +190 -0
  443. package/dist/web-ui/docs/en/cli/web-ui.md +164 -0
  444. package/dist/web-ui/docs/en/cli/wecom-bot-setup.md +274 -0
  445. package/dist/web-ui/docs/en/cli/worktree.md +660 -0
  446. package/dist/web-ui/docs/search-index-en.json +1 -0
  447. package/dist/web-ui/docs/search-index-zh.json +1 -0
  448. package/dist/web-ui/docs/sidebar-en.json +1 -0
  449. package/dist/web-ui/docs/sidebar-zh.json +1 -0
  450. package/dist/web-ui/index.html +2 -2
  451. package/package.json +2 -3
  452. package/product.cloudhosted.json +2 -2
  453. package/product.internal.json +2 -2
  454. package/product.ioa.json +2 -2
  455. package/product.json +3 -3
  456. package/product.selfhosted.json +2 -2
  457. package/dist/web-ui/assets/index-BPT-qRRx.js +0 -411
  458. package/dist/web-ui/assets/index-f_ibHSHw.css +0 -32
@@ -0,0 +1,326 @@
1
+ # Environment Variables Reference
2
+
3
+ CodeBuddy Code supports environment variables to control its behavior. These variables can be set before startup, or configured in the `env` field of [`settings.json`](./settings.md#available-settings) to apply to every session.
4
+
5
+ > **Tip**: All environment variables can also be set in the `env` field of `settings.json`, which automatically applies them to every session or rolls out configuration for an entire team.
6
+
7
+ ## Authentication
8
+
9
+ | Environment Variable | Description |
10
+ |---------|------|
11
+ | `CODEBUDDY_API_KEY` | API key. Set this key for model API calls. Always uses this key in non-interactive mode (`-p`) |
12
+ | `CODEBUDDY_AUTH_TOKEN` | CodeBuddy platform authentication token for all platform API calls |
13
+ | `CODEBUDDY_CUSTOM_HEADERS` | Custom HTTP headers. Format: `Name: Value`, multiple headers separated by newline or `\n` |
14
+
15
+ ## API Endpoints and Proxy
16
+
17
+ | Environment Variable | Description |
18
+ |---------|------|
19
+ | `CODEBUDDY_BASE_URL` | Override the API endpoint address, typically used with `CODEBUDDY_API_KEY` |
20
+ | `CODEBUDDY_INTERNET_ENVIRONMENT` | Network environment configuration (`internal` for China edition, `ioa` for iOA enterprise edition) |
21
+ | `HTTP_PROXY` / `http_proxy` | HTTP proxy server address |
22
+ | `HTTPS_PROXY` / `https_proxy` | HTTPS proxy server address |
23
+ | `NO_PROXY` / `no_proxy` | List of domains and IPs to bypass proxy (comma-separated, e.g., `localhost,.example.com`) |
24
+
25
+ ## Model Configuration
26
+
27
+ | Environment Variable | Description |
28
+ |---------|------|
29
+ | `CODEBUDDY_MODEL` | Override the default agent model |
30
+ | `CODEBUDDY_SMALL_FAST_MODEL` | Small, fast model used for background tasks |
31
+ | `CODEBUDDY_BIG_SLOW_MODEL` | Large model used for complex reasoning tasks |
32
+ | `CODEBUDDY_CODE_SUBAGENT_MODEL` | Model used by sub-agents |
33
+ | `MAX_THINKING_TOKENS` | Enable extended thinking and set the token budget for the thinking process. Disabled by default |
34
+
35
+ ## Bash Tool Configuration
36
+
37
+ | Environment Variable | Description |
38
+ |---------|------|
39
+ | `BASH_DEFAULT_TIMEOUT_MS` | Default timeout for long-running bash commands (default: 120000) |
40
+ | `BASH_MAX_OUTPUT_LENGTH` | Maximum characters of bash output retained in memory (default: 30000, max: 150000). Content exceeding the limit is mid-truncated (keeping head 20% + tail 80%), and the full output is automatically saved to disk |
41
+ | `BASH_MAX_TIMEOUT_MS` | Maximum timeout the model can set for long-running bash commands (default: 600000) |
42
+
43
+ ## Tool Output Externalization
44
+
45
+ | Environment Variable | Description |
46
+ |---------|------|
47
+ | `CODEBUDDY_TOOL_RESULT_THRESHOLD_KB` | Size threshold (KB) for tool result externalization. Non-bash tool results exceeding this threshold are saved to disk and replaced with a placeholder (default: 50) |
48
+
49
+ > **Note**: Bash tool output externalization is controlled by `BASH_MAX_OUTPUT_LENGTH`. When output is truncated due to exceeding that value, the full output is automatically streamed to disk. `CODEBUDDY_TOOL_RESULT_THRESHOLD_KB` primarily affects large output handling for other tools (e.g., MCP tools). See the [Tool Output Externalization](#tool-output-externalization-mechanism) section for details.
50
+
51
+ ## Tools and Feature Toggles
52
+
53
+ | Environment Variable | Description |
54
+ |---------|------|
55
+ | `CODEBUDDY_DISABLE_HOT_RELOAD` | Set to `1` to disable the hot reload system |
56
+ | `CODEBUDDY_SKIP_BUILTIN_MARKETPLACE` | Set to `1` to skip loading the built-in plugin marketplace |
57
+ | `CODEBUDDY_IMAGE_GEN_ENABLED` | Set to `false` or `0` to disable image generation |
58
+ | `CODEBUDDY_IMAGE_EDIT_ENABLED` | Set to `false` or `0` to disable image editing |
59
+ | `CODEBUDDY_DEFER_TOOL_LOADING` | Set to `false` or `0` to disable MCP tool deferred loading |
60
+ | `CODEBUDDY_SHOW_ALL_DEFERRED_TOOLS` | Set to `true` or `1` to show full descriptions for all deferred tools |
61
+ | `CODEBUDDY_DISABLE_CRON` | Set to `1` to disable scheduled tasks |
62
+
63
+ ## Context and Memory
64
+
65
+ | Environment Variable | Description |
66
+ |---------|------|
67
+ | `CODEBUDDY_AUTOCOMPACT_PCT_OVERRIDE` | Set the context capacity percentage for triggering auto-compaction (1-100). Default is determined by product configuration (typically 70-92%). Use a lower value (e.g., `50`) to compact earlier |
68
+ | `CODEBUDDY_DISABLE_AUTO_MEMORY` | Set to `1` to disable auto memory, set to `0` to enable |
69
+ | `CODEBUDDY_MEMORY_ENABLED` | Set to `true` or `1` to enable memory functionality |
70
+ | `CODEBUDDY_TYPED_MEMORY_ENABLED` | Set to `true` or `1` to enable typed memory mode |
71
+ | `CODEBUDDY_TEAM_MEMORY_ENABLED` | Set to `true` or `1` to enable team memory mode |
72
+ | `CODEBUDDY_USER_ID` | User ID for team memory mode |
73
+
74
+ ## MCP (Model Context Protocol)
75
+
76
+ | Environment Variable | Description |
77
+ |---------|------|
78
+ | `MCP_TIMEOUT` | Timeout for MCP server connections (milliseconds) |
79
+ | `MCP_TOOL_TIMEOUT` | Timeout for MCP tool execution (milliseconds) |
80
+ | `MAX_MCP_OUTPUT_TOKENS` | Maximum tokens allowed in MCP tool responses (default: 20000) |
81
+
82
+ ## Performance and Output
83
+
84
+ | Environment Variable | Description |
85
+ |---------|------|
86
+ | `CODEBUDDY_CODE_MAX_OUTPUT_TOKENS` | Set the maximum output tokens for most requests |
87
+ | `CODEBUDDY_CODE_FILE_READ_MAX_OUTPUT_TOKENS` | Override the default token limit for file reads (default: 20000) |
88
+ | `CODEBUDDY_STREAM_TIMEOUT_MS` | Maximum silent time between two data chunks in streaming responses (milliseconds) (default: 120000) |
89
+ | `CODEBUDDY_FIRST_TOKEN_TIMEOUT_MS` | Maximum time to wait for the first model output (milliseconds) (default: 120000) |
90
+
91
+ ## Filesystem and Configuration
92
+
93
+ | Environment Variable | Description |
94
+ |---------|------|
95
+ | `CODEBUDDY_CONFIG_DIR` | Custom location for CodeBuddy Code to store configuration and data files |
96
+ | `CODEBUDDY_CODE_DEBUG_LOGS_DIR` | Debug log directory |
97
+ | `CODEBUDDY_SANDBOX_IMAGE` | Container sandbox image (default: `node:20-alpine`) |
98
+ | `USE_BUILTIN_RIPGREP` | Set to `0` to use system-installed `rg` instead of the one bundled with CodeBuddy Code |
99
+
100
+ ## Shell Configuration
101
+
102
+ | Environment Variable | Description |
103
+ |---------|------|
104
+ | `CODEBUDDY_CODE_SHELL` | Override automatic shell detection. Supported values: `bash`, `zsh`, `sh`, `powershell`, `cmd` |
105
+ | `CODEBUDDY_CODE_SHELL_PREFIX` | Command prefix wrapping all shell commands (e.g., for logging or auditing) |
106
+ | `CODEBUDDY_CODE_GIT_BASH_PATH` | Explicitly specify the Git Bash path on Windows |
107
+ | `CODEBUDDY_ENV_FILE` | Path to an environment file that is automatically sourced before executing each shell command |
108
+
109
+ ## UI and Interaction
110
+
111
+ | Environment Variable | Description |
112
+ |---------|------|
113
+ | `CODEBUDDY_CODE_DISABLE_TERMINAL_TITLE` | Set to `1` to disable automatic terminal title updates |
114
+ | `CODEBUDDY_PROMPT_SUGGESTION_DISABLED` | Set to `true` to disable prompt suggestions |
115
+ | `IS_DEMO` | Set to `true` to enable demo mode: hides email and organization |
116
+
117
+ ## Security and Authentication
118
+
119
+ | Environment Variable | Description |
120
+ |---------|------|
121
+ | `CODEBUDDY_CODE_CLIENT_CERT` | mTLS client certificate file path ⚠️ *Not yet supported* |
122
+ | `CODEBUDDY_CODE_CLIENT_KEY` | mTLS client private key file path ⚠️ *Not yet supported* |
123
+ | `CODEBUDDY_CODE_CLIENT_KEY_PASSPHRASE` | Passphrase for the mTLS encrypted private key (optional) ⚠️ *Not yet supported* |
124
+
125
+ ## Telemetry and Reporting
126
+
127
+ | Environment Variable | Description |
128
+ |---------|------|
129
+ | `DISABLE_TELEMETRY` | Set to `1` to disable telemetry |
130
+ | `DISABLE_ERROR_REPORTING` | Set to `1` to disable error reporting |
131
+ | `DISABLE_AUTOUPDATER` | Set to `1` to disable auto-updates |
132
+ | `DISABLE_FEEDBACK_COMMAND` | Set to `1` to disable the `/feedback` command |
133
+
134
+ ## Tasks and Background Work
135
+
136
+ | Environment Variable | Description |
137
+ |---------|------|
138
+ | `CODEBUDDY_DISABLE_BACKGROUND_TASKS` | Set to `1` to disable all background task functionality |
139
+
140
+ ## Agent Execution Control
141
+
142
+ | Environment Variable | Description |
143
+ |---------|------|
144
+ | `CODEBUDDY_CODE_MAX_TURNS` | Maximum execution turns for the main Agent. Priority: CLI `--max-turns` > this environment variable > default (500) |
145
+ | `CODEBUDDY_CODE_SUBAGENT_MAX_TURNS` | Maximum execution turns for sub-Agents. Priority: CLI `--max-turns` > this environment variable > model dynamically passed `max_turns` > default (500) |
146
+
147
+ ## Gateway and Remote Access
148
+
149
+ | Environment Variable | Description |
150
+ |---------|------|
151
+ | `CODEBUDDY_GATEWAY_AUTH` | Gateway authentication mode (`password` or `none`) |
152
+ | `CODEBUDDY_GATEWAY_PASSWORD` | Gateway access password |
153
+ | `CODEBUDDY_GATEWAY_FORCE_TUNNEL` | Set to `1` to force tunnel mode |
154
+ | `SERVER__HOST` | Listen address for `--serve` mode (default: `127.0.0.1`) |
155
+ | `SERVER__PORT` | Listen port for `--serve` mode |
156
+
157
+ ## WeCom Integration
158
+
159
+ | Environment Variable | Description |
160
+ |---------|------|
161
+ | `CODEBUDDY_GATEWAY_WECHAT_KF_TOKEN` | WeCom Customer Service Token |
162
+ | `CODEBUDDY_GATEWAY_WECHAT_KF_ENCODING_AES_KEY` | WeCom Customer Service Encryption Key |
163
+ | `CODEBUDDY_GATEWAY_WECHAT_KF_CORP_ID` | WeCom Customer Service Corp ID |
164
+ | `CODEBUDDY_GATEWAY_WECHAT_KF_CORP_SECRET` | WeCom Customer Service Corp Secret |
165
+ | `CODEBUDDY_GATEWAY_WECHAT_KF_ACCOUNT_NAME` | WeCom Customer Service Account Name |
166
+ | `CODEBUDDY_GATEWAY_WECOM_TOKEN` | WeCom Token |
167
+ | `CODEBUDDY_GATEWAY_WECOM_ENCODING_AES_KEY` | WeCom Encryption Key |
168
+ | `CODEBUDDY_GATEWAY_WECOM_CORP_ID` | WeCom Corp ID |
169
+ | `CODEBUDDY_GATEWAY_WECOM_CORP_SECRET` | WeCom Corp Secret |
170
+ | `CODEBUDDY_GATEWAY_WECOM_AGENT_ID` | WeCom Agent ID |
171
+
172
+ ## Debugging and Diagnostics
173
+
174
+ | Environment Variable | Description |
175
+ |---------|------|
176
+ | `CODEBUDDY_DEBUG` | Set to `1` to enable debug mode |
177
+ | `CODEBUDDY_DEBUG_REQUEST` | Set to `1` to enable request debugging |
178
+ | `CODEBUDDY_STARTUP_PROFILE` | Set to `1` to enable startup profiling |
179
+
180
+ ## Miscellaneous
181
+
182
+ | Environment Variable | Description |
183
+ |---------|------|
184
+ | `SLASH_COMMAND_TOOL_CHAR_BUDGET` | Maximum character count for slash command tool metadata (default: 15000) |
185
+ | `CODEBUDDY_CODE_API_KEY_HELPER_TTL_MS` | Interval for refreshing credentials (milliseconds) (default: 300000) |
186
+
187
+ ## Usage Examples
188
+
189
+ ### Basic Authentication Configuration
190
+
191
+ ```bash
192
+ # Set API key
193
+ export CODEBUDDY_API_KEY="your-api-key"
194
+
195
+ # Set proxy server
196
+ export HTTP_PROXY="http://proxy.example.com:8080"
197
+ export HTTPS_PROXY="https://proxy.example.com:8080"
198
+
199
+ # Set proxy bypass list
200
+ export NO_PROXY="localhost,127.0.0.1,.internal.example.com"
201
+
202
+ # Set custom headers (multiple headers separated by \n)
203
+ export CODEBUDDY_CUSTOM_HEADERS="X-Custom-Header: value1\nX-Another-Header: value2"
204
+
205
+ # Start CodeBuddy
206
+ codebuddy
207
+ ```
208
+
209
+ ### Using Third-Party Model Services
210
+
211
+ ```bash
212
+ # Use a custom API endpoint
213
+ export CODEBUDDY_API_KEY="your-api-key"
214
+ export CODEBUDDY_BASE_URL="https://api.example.com/v1"
215
+ codebuddy --model your-model-name
216
+ ```
217
+
218
+ ### China Edition Configuration
219
+
220
+ ```bash
221
+ # Set China edition environment identifier
222
+ export CODEBUDDY_INTERNET_ENVIRONMENT=internal
223
+
224
+ # Set API key
225
+ export CODEBUDDY_API_KEY="your-api-key"
226
+
227
+ # Start CodeBuddy
228
+ codebuddy
229
+ ```
230
+
231
+ ### Enabling Advanced Features
232
+
233
+ ```bash
234
+ # Enable auto memory
235
+ export CODEBUDDY_DISABLE_AUTO_MEMORY="0"
236
+
237
+ # Enable extended thinking
238
+ export MAX_THINKING_TOKENS="10000"
239
+
240
+ # Run in non-interactive mode
241
+ codebuddy -p -y "your query"
242
+ ```
243
+
244
+ ### Debugging and Profiling
245
+
246
+ ```bash
247
+ # Enable debug mode
248
+ export CODEBUDDY_DEBUG="1"
249
+
250
+ # Enable startup profiling
251
+ export CODEBUDDY_STARTUP_PROFILE="1"
252
+
253
+ # Start CodeBuddy
254
+ codebuddy
255
+ ```
256
+
257
+ ## Configuring in settings.json
258
+
259
+ Environment variables can also be set in the `env` field of `settings.json`:
260
+
261
+ ```json
262
+ {
263
+ "env": {
264
+ "CODEBUDDY_API_KEY": "your-api-key",
265
+ "HTTPS_PROXY": "https://proxy.example.com:8080",
266
+ "MAX_THINKING_TOKENS": "10000",
267
+ "CODEBUDDY_DISABLE_AUTO_MEMORY": "0"
268
+ }
269
+ }
270
+ ```
271
+
272
+ ## Tool Output Externalization Mechanism
273
+
274
+ When tool execution produces output exceeding the threshold, CodeBuddy Code automatically saves the full output to disk and sends only truncated content with a file path pointer to the model, which can read the full content on demand.
275
+
276
+ ### Data Flow
277
+
278
+ ```
279
+ Shell output
280
+ ├─→ OutputSpiller (full output streamed to disk)
281
+ └─→ TruncateBuffer (head + tail retained in memory, ~30KB)
282
+
283
+ Truncation detected → generate placeholder (~2KB preview + file path)
284
+
285
+ Model receives placeholder, can read full file via Read tool on demand
286
+ ```
287
+
288
+ ### Data Size at Each Stage (using 1.3MB output as example)
289
+
290
+ | Stage | Content | Size |
291
+ |------|------|------|
292
+ | Disk file (OutputSpiller) | Full raw output | 1,355,099 bytes |
293
+ | Memory buffer (TruncateBuffer) | head 6KB + tail 24KB | ~30KB |
294
+ | Sent to model (placeholder) | File path + preview | ~2KB |
295
+
296
+ ### Storage Directory
297
+
298
+ Tool output files are stored in the project data directory:
299
+
300
+ ```
301
+ ~/.codebuddy/projects/{projectDir}/
302
+ └── {sessionId}/
303
+ ├── tool-results/ ← Main session tool results
304
+ │ ├── {callId}.txt
305
+ │ └── ...
306
+ └── subagents/ ← Sub-agent data
307
+ ├── agent-{agentId}.jsonl ← Sub-agent conversation history
308
+ └── agent-{agentId}/
309
+ └── tool-results/ ← Sub-agent tool results
310
+ ├── {callId}.txt
311
+ └── ...
312
+ ```
313
+
314
+ ### Related Environment Variables
315
+
316
+ | Environment Variable | Scope | Default |
317
+ |---------|---------|--------|
318
+ | `BASH_MAX_OUTPUT_LENGTH` | Bash tool memory retention, triggers disk externalization when exceeded | 30000 |
319
+ | `CODEBUDDY_TOOL_RESULT_THRESHOLD_KB` | Session-level externalization threshold for non-bash tools (e.g., MCP) | 50 |
320
+
321
+ ## See Also
322
+
323
+ - [Settings](./settings.md) - Configure environment variables and other settings in `settings.json`
324
+ - [CLI Reference](./cli-reference.md) - Complete list of command-line arguments
325
+ - [MCP Setup](./mcp.md) - MCP server configuration
326
+ - [Sub-Agents](./sub-agents.md) - Sub-agent storage directory documentation
@@ -0,0 +1,357 @@
1
+ # CodeBuddy Code GitLab CI/CD Integration
2
+
3
+ ## Overview
4
+
5
+ CodeBuddy Code supports deep integration with GitLab CI/CD, enabling you to leverage AI assistance for code review, automated implementation, and intelligent optimization tasks within your CI/CD pipelines. This integration is built on top of the CodeBuddy Code CLI, allowing you to programmatically use AI capabilities in GitLab CI jobs.
6
+
7
+
8
+ ## How It Works
9
+
10
+ CodeBuddy Code leverages GitLab CI/CD to run AI tasks in isolated jobs and submit results via MRs:
11
+
12
+ 1. **Event-Driven Orchestration**: GitLab listens for your chosen triggers (e.g., Issues, MRs, or @codebuddy mentions in comments). Jobs collect context and codebase information, build prompts, and run CodeBuddy Code.
13
+
14
+ 2. **Sandboxed Execution**: Each interaction runs in a container with strict network and filesystem rules. CodeBuddy Code enforces workspace-scoped permission constraints on writes. Every change flows through MRs, reviewers can see diffs, and approval workflows still apply.
15
+
16
+ ---
17
+
18
+ ## What Can CodeBuddy Do?
19
+
20
+ CodeBuddy Code supports powerful CI/CD workflows that transform how you collaborate with code:
21
+
22
+ - Create and update MRs from Issue descriptions or comments
23
+ - Analyze performance regressions and suggest optimizations
24
+ - Implement features directly in branches, then create MRs
25
+ - Fix bugs and regressions found in tests or comments
26
+ - Respond to follow-up comments to iteratively refine requested changes
27
+
28
+ ---
29
+
30
+ ## Configuration Guide
31
+
32
+ ### Quick Setup
33
+
34
+ The fastest way to get started is to add a minimal job to .gitlab-ci.yml and set your API key as a protected variable.
35
+
36
+ **Step 1: Add Protected CI/CD Variables**
37
+
38
+ Go to your GitLab project's **Settings → CI/CD → Variables** and add the following environment variables:
39
+
40
+ **Authentication Configuration:**
41
+
42
+ Add the following environment variables in your GitLab project's **Settings → CI/CD → Variables**:
43
+
44
+ - **CODEBUDDY_API_KEY** (Required)
45
+ - API key for model interface calls
46
+ - When configuring, check: ✅ Protect variable, ✅ Mask variable
47
+
48
+ **Optional Configuration:**
49
+
50
+ - **CODEBUDDY_INTERNET_ENVIRONMENT**
51
+ - Network environment configuration (China version users need to set to `internal`, iOA users set to `iOA`)
52
+
53
+ - **CODEBUDDY_BASE_URL**
54
+ - Custom base URL for model service (must be compatible with OpenAI API protocol)
55
+
56
+ - **GITLAB_ACCESS_TOKEN**
57
+ - GitLab project access token (requires api scope)
58
+ - Used for CodeBuddy to create/update MRs and comments
59
+ - If not configured, defaults to using `CI_JOB_TOKEN`
60
+ - When configuring, check: ✅ Protect variable, ✅ Mask variable
61
+
62
+ > 📖 **Complete Configuration Guide**: Based on your account type, refer to the corresponding configuration methods and API KEY retrieval locations:
63
+ > - **iOA Account Users** (internal company): See [Using API KEY with iOA Account](settings.md#ioa-账号使用-api-key)
64
+ > - **China Version Users**: See [Using API KEY with China Version](settings.md#中国版使用-api-key)
65
+ > - **International Version Users**: See [Using API KEY with International Version](settings.md#海外版使用-api-key)
66
+ >
67
+ > Each section includes complete environment variable configuration methods and API KEY retrieval locations.
68
+
69
+ **Step 2: Add CodeBuddy Job to .gitlab-ci.yml**
70
+
71
+ ```yaml
72
+ stages:
73
+ - ai
74
+
75
+ codebuddy:
76
+ stage: ai
77
+ image: node:24-alpine3.21
78
+ # Adjust trigger rules as needed:
79
+ # - Manual run
80
+ # - Merge request events
81
+ # - Triggered via Web/API when comments contain '@codebuddy'
82
+ rules:
83
+ - if: '$CI_PIPELINE_SOURCE == "web"'
84
+ - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
85
+ variables:
86
+ GIT_STRATEGY: fetch
87
+ # CODEBUDDY_API_KEY is automatically injected from CI/CD variables
88
+ # Optional variables: CODEBUDDY_BASE_URL, GITLAB_ACCESS_TOKEN
89
+ before_script:
90
+ - apk update
91
+ - apk add --no-cache git curl bash
92
+ - npm install -g @tencent-ai/codebuddy-code
93
+ # Verify CODEBUDDY_API_KEY is set
94
+ - |
95
+ if [ -z "$CODEBUDDY_API_KEY" ]; then
96
+ echo "Error: CODEBUDDY_API_KEY is not set. Please configure it in GitLab CI/CD variables"
97
+ exit 1
98
+ fi
99
+ script:
100
+ # Optional: Start GitLab MCP server (if provided by your environment)
101
+ - /bin/gitlab-mcp-server || true
102
+ # Pass context through web/API trigger when using AI_FLOW_* variables
103
+ - echo "$AI_FLOW_INPUT for $AI_FLOW_CONTEXT on $AI_FLOW_EVENT"
104
+ - >
105
+ codebuddy
106
+ -p "${AI_FLOW_INPUT:-'Review this MR and implement requested changes'}"
107
+ --permission-mode acceptEdits
108
+ --allowedTools "Bash(*) Read(*) Edit(*) Write(*) mcp__gitlab"
109
+ --debug
110
+ ```
111
+
112
+ After adding the job and API key variable, test by manually running the job through CI/CD → Pipelines, or trigger it from an MR to have CodeBuddy propose updates in the branch and create an MR when needed.
113
+
114
+ ### Manual Configuration (Recommended for Production)
115
+
116
+ If you need finer control:
117
+
118
+ 1. **Add Project Credentials for GitLab API Operations**:
119
+ - By default, uses CI_JOB_TOKEN, or create a project access token with api scope
120
+ - If using PAT, store it as GITLAB_ACCESS_TOKEN (masked)
121
+
122
+ 2. **Add CodeBuddy Job to .gitlab-ci.yml** (see example above)
123
+
124
+ 3. **(Optional) Enable Mention-Driven Triggers**:
125
+ - Add a project Webhook for "notes" to your event listener (if using)
126
+ - Have the listener call the pipeline trigger API when comments contain @codebuddy, passing variables like AI_FLOW_INPUT and AI_FLOW_CONTEXT
127
+
128
+ ---
129
+
130
+ ## Usage Examples
131
+
132
+ ### Transform Issue into MR
133
+
134
+ In an Issue comment:
135
+ ```
136
+ @codebuddy Implement this feature based on the Issue description
137
+ ```
138
+
139
+ CodeBuddy analyzes the Issue and codebase, writes changes in a branch, and creates an MR for review.
140
+
141
+ ### Get Implementation Help
142
+
143
+ In an MR discussion:
144
+ ```
145
+ @codebuddy Suggest a specific approach to cache the results of this API call
146
+ ```
147
+
148
+ CodeBuddy proposes changes, adds appropriate caching code, and updates the MR.
149
+
150
+ ### Quick Bug Fix
151
+
152
+ In an Issue or MR comment:
153
+ ```
154
+ @codebuddy Fix the TypeError in the user dashboard component
155
+ ```
156
+
157
+ CodeBuddy locates the bug, implements a fix, and updates the branch or creates a new MR.
158
+
159
+ ---
160
+
161
+ ## Best Practices
162
+
163
+ ### CODEBUDDY.md Configuration
164
+
165
+ Create a CODEBUDDY.md file in your repository root to define coding standards, review criteria, and project-specific rules. CodeBuddy reads this file during execution and follows your conventions when proposing changes.
166
+
167
+ Example CODEBUDDY.md:
168
+ ```markdown
169
+ # Project Coding Standards
170
+
171
+ ## Code Style
172
+ - Use ESLint and Prettier for code formatting
173
+ - Follow Airbnb JavaScript Style Guide
174
+ - Use TypeScript strict mode
175
+
176
+ ## Commit Conventions
177
+ - Follow Conventional Commits specification
178
+ - Use Chinese for commit messages
179
+ - Each commit should contain only one logical change
180
+
181
+ ## Testing Requirements
182
+ - All new features must include unit tests
183
+ - Test coverage must be at least 80%
184
+ - Use Jest as the testing framework
185
+
186
+ ## MR Review Checklist
187
+ - Code passes all CI checks
188
+ - At least one team member has approved
189
+ - Update relevant documentation
190
+ ```
191
+
192
+ ### Security Considerations
193
+
194
+ **Never commit sensitive information to the repository!** Always use GitLab CI/CD variables:
195
+
196
+ - Add sensitive configuration as masked variables (mark as protected if needed)
197
+ - Limit job permissions and network egress
198
+ - Review CodeBuddy's MRs as you would any other contributor's
199
+
200
+ ### Performance Optimization
201
+
202
+ - Keep CODEBUDDY.md concise and clear
203
+ - Provide clear Issue/MR descriptions to reduce iterations
204
+ - Configure reasonable job timeouts to avoid runaway executions
205
+ - Cache npm and package installations in Runners (if possible)
206
+
207
+ ### CI Cost Control
208
+
209
+ When using CodeBuddy Code with GitLab CI/CD, be aware of associated costs:
210
+
211
+ **GitLab Runner Time:**
212
+ - CodeBuddy runs on your GitLab Runner and consumes compute minutes
213
+ - Check your GitLab plan's Runner billing details
214
+
215
+ **Cost Optimization Recommendations:**
216
+ - Use specific @codebuddy commands to reduce unnecessary rounds
217
+ - Set appropriate --max-turns and job timeout values
218
+ - Limit concurrency to control parallel runs
219
+
220
+ ### Security and Governance
221
+
222
+ - Each job runs in an isolated container with restricted network access
223
+ - CodeBuddy's changes flow through MRs, reviewers can see every diff
224
+ - Branch protection and approval rules apply to AI-generated code
225
+ - CodeBuddy Code uses workspace-scoped permissions to constrain writes
226
+
227
+ ---
228
+
229
+ ## Troubleshooting
230
+
231
+ ### CodeBuddy Doesn't Respond to @codebuddy Commands
232
+
233
+ - Verify your pipeline is being triggered (manually, MR events, or via note event listener/Webhook)
234
+ - Ensure CI/CD variables exist and are configured correctly
235
+ - Check that comments contain @codebuddy (not /codebuddy) and your mention trigger is configured
236
+
237
+ ### Job Cannot Write Comments or Create MRs
238
+
239
+ - Ensure CI_JOB_TOKEN has sufficient permissions for the project, or use a project access token with api scope
240
+ - Check that the mcp__gitlab tool is enabled in --allowedTools
241
+ - Confirm the job is running in an MR context or has sufficient context via AI_FLOW_* variables
242
+
243
+ ### Authentication Errors
244
+
245
+ **Authentication Variables Not Set:**
246
+ - Confirm `CODEBUDDY_API_KEY` is added in your GitLab project's **Settings → CI/CD → Variables**
247
+ - Check the variable name spelling is correct (case-sensitive)
248
+ - If "Protect variable" is set, ensure the job runs on a protected branch
249
+
250
+ **API Authentication Failed (401 Unauthorized):**
251
+ - Verify the API key is valid and not expired
252
+ - Confirm no extra spaces or newlines were included when copying the API key
253
+ - Check the API key has sufficient permission scopes
254
+ - See [Settings Configuration Documentation](settings.md#认证配置) for detailed configuration methods
255
+
256
+ **API Connection Failed:**
257
+ - Check `CODEBUDDY_BASE_URL` is configured correctly (if using a custom endpoint)
258
+ - Verify the GitLab Runner can access the CodeBuddy API server
259
+ - Confirm the URL format is correct, including protocol (e.g., `https://api.example.com`)
260
+
261
+ **Key Visible in Logs:**
262
+ - Ensure ✅ Mask variable is checked when configuring CI/CD variables
263
+ - Avoid directly echoing or printing the API key in scripts
264
+
265
+ **GitLab Access Token Related Issues:**
266
+
267
+ - Check that the configured CI/CD variables are set correctly
268
+ - Verify the related access permission configuration
269
+ - Ensure CI_JOB_TOKEN or GITLAB_ACCESS_TOKEN has sufficient permissions (api scope)
270
+
271
+ ### Job Timeout
272
+
273
+ - Increase the job's timeout configuration
274
+ - Simplify prompts to reduce processing time
275
+ - Consider breaking large tasks into multiple smaller tasks
276
+
277
+ ---
278
+
279
+ ## Advanced Configuration
280
+
281
+ ### Common Parameters and Variables
282
+
283
+ **Environment Variables:**
284
+
285
+ CodeBuddy Code uses the following environment variables in CI/CD environments:
286
+
287
+ **Authentication Configuration:**
288
+ - `CODEBUDDY_API_KEY`: Used for model interface calls, suitable for CI/CD non-interactive environments
289
+
290
+ **Optional Configuration:**
291
+ - `CODEBUDDY_BASE_URL`: Custom base URL for model service
292
+ - `GITLAB_ACCESS_TOKEN`: GitLab API access token (for MR operations)
293
+ - `CI_JOB_TOKEN`: Job token automatically provided by GitLab CI
294
+
295
+ **Flow Control Variables:**
296
+ - `AI_FLOW_INPUT`: User input passed through Web/API triggers
297
+ - `AI_FLOW_CONTEXT`: Context information (e.g., Issue ID, MR ID, etc.)
298
+ - `AI_FLOW_EVENT`: Trigger event type (e.g., note, issue, merge_request)
299
+
300
+ > 📖 For detailed descriptions and configuration examples of each environment variable, please refer to [Settings Configuration Documentation](settings.md#环境变量)
301
+
302
+ **Command Line Parameters:**
303
+
304
+ CodeBuddy Code supports these common inputs:
305
+
306
+ - **prompt** (-p): Provide instructions inline
307
+ - **max-turns**: Limit the number of back-and-forth iterations
308
+ - **permission-mode**: Permission mode (e.g., acceptEdits)
309
+ - **allowedTools**: List of allowed tools
310
+ - **debug**: Enable debug output
311
+
312
+ **Note:** Exact flags and parameters may vary depending on @tencent-ai/codebuddy-code version. Run `codebuddy --help` in the job to see supported options.
313
+
314
+ ### Customizing CodeBuddy Behavior
315
+
316
+ You can guide CodeBuddy through two main approaches:
317
+
318
+ 1. **CODEBUDDY.md**: Define coding standards, security requirements, and project conventions. CodeBuddy reads this file during execution and follows your rules.
319
+
320
+ 2. **Custom Prompts**: Pass task-specific instructions via prompt/prompt_file in the job. Use different prompts for different jobs (e.g., review, implementation, refactoring).
321
+
322
+ ### Multi-Environment Configuration
323
+
324
+ You can configure different CodeBuddy jobs for different environments (development, testing, production):
325
+
326
+ ```yaml
327
+ # Development environment - Auto-trigger
328
+ codebuddy-dev:
329
+ stage: ai
330
+ rules:
331
+ - if: '$CI_COMMIT_BRANCH == "develop"'
332
+ script:
333
+ - codebuddy -p "Quick review and auto-merge"
334
+
335
+ # Production environment - Manual trigger
336
+ codebuddy-prod:
337
+ stage: ai
338
+ rules:
339
+ - if: '$CI_COMMIT_BRANCH == "main"'
340
+ when: manual
341
+ script:
342
+ - codebuddy -p "Detailed review, generate complete change report"
343
+ ```
344
+
345
+ ---
346
+
347
+ ## Reference Resources
348
+
349
+ - [CodeBuddy Code Official Documentation](../README.md)
350
+ - [CLI Reference](cli-reference.md)
351
+ - [Settings Configuration](settings.md)
352
+ - [Common Workflows](common-workflows.md)
353
+ - [Troubleshooting](troubleshooting.md)
354
+
355
+ ---
356
+
357
+ **Empower your CI/CD pipeline with AI and boost development efficiency!**