@tencent-ai/agent-sdk 0.3.202 → 0.3.205-dev.b6d6518.202607101321

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.
@@ -15,7 +15,7 @@
15
15
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
16
16
  <meta name="mobile-web-app-capable" content="yes">
17
17
  <link rel="apple-touch-icon" href="/pwa-icon.svg">
18
- <script type="module" crossorigin src="/assets/index-C4Mks62X.js"></script>
18
+ <script type="module" crossorigin src="/assets/index-BZjhFKbY.js"></script>
19
19
  <link rel="modulepreload" crossorigin href="/assets/markdown-Ce2Umeb2.js">
20
20
  <link rel="modulepreload" crossorigin href="/assets/vendor-DpYitQz5.js">
21
21
  <link rel="stylesheet" crossorigin href="/assets/index-C5EhSt3C.css">
@@ -1 +1 @@
1
- if(!self.define){let e,s={};const o=(o,n)=>(o=new URL(o+".js",n).href,s[o]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=o,e.onload=s,document.head.appendChild(e)}else e=o,importScripts(o),s()}).then(()=>{let e=s[o];if(!e)throw new Error(`Module ${o} didn’t register its module`);return e}));self.define=(n,i)=>{const l=e||("document"in self?document.currentScript.src:"")||location.href;if(s[l])return;let r={};const t=e=>o(e,l),f={module:{uri:l},exports:r,require:t};s[l]=Promise.all(n.map(e=>f[e]||t(e))).then(e=>(i(...e),r))}}define(["./workbox-fed2bdfe"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"sandbox_proxy.html",revision:"e54bd087bf8b90d87d84c3cd8f2c22e9"},{url:"pwa-icon.svg",revision:"673adddf1548f59682764258005b6034"},{url:"logo.svg",revision:"269aa921a3f446f8e17843c89ed7bf35"},{url:"index.html",revision:"2de81aa2e542eb67711bdf17d351de3f"},{url:"assets/workbox-window.prod.es5-BBnX5xw4.js",revision:null},{url:"assets/vendor-DpYitQz5.js",revision:null},{url:"assets/octicons-CaZ_fok2.woff2",revision:null},{url:"assets/mfixx-CpAhKOZz.woff2",revision:null},{url:"assets/markdown-Ce2Umeb2.js",revision:null},{url:"assets/index-DixJ0kqk.js",revision:null},{url:"assets/index-C5EhSt3C.css",revision:null},{url:"assets/index-C4Mks62X.js",revision:null},{url:"assets/fontawesome-B-jkhYfk.woff2",revision:null},{url:"assets/file-icons-C0jOugUK.woff2",revision:null},{url:"assets/devopicons-QN4QXivI.woff2",revision:null},{url:"logo.svg",revision:"269aa921a3f446f8e17843c89ed7bf35"},{url:"pwa-icon.svg",revision:"673adddf1548f59682764258005b6034"},{url:"manifest.webmanifest",revision:"7a003d0094122eb3e607566c757e9885"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"),{denylist:[/^\/api/,/^\/gateway/,/^\/docs\//]})),e.registerRoute(/^https:\/\/fonts\.googleapis\.com/,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[]}),"GET"),e.registerRoute(/^https:\/\/fonts\.gstatic\.com/,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:31536e3})]}),"GET")});
1
+ if(!self.define){let e,s={};const o=(o,n)=>(o=new URL(o+".js",n).href,s[o]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=o,e.onload=s,document.head.appendChild(e)}else e=o,importScripts(o),s()}).then(()=>{let e=s[o];if(!e)throw new Error(`Module ${o} didn’t register its module`);return e}));self.define=(n,i)=>{const l=e||("document"in self?document.currentScript.src:"")||location.href;if(s[l])return;let r={};const t=e=>o(e,l),f={module:{uri:l},exports:r,require:t};s[l]=Promise.all(n.map(e=>f[e]||t(e))).then(e=>(i(...e),r))}}define(["./workbox-fed2bdfe"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"sandbox_proxy.html",revision:"e54bd087bf8b90d87d84c3cd8f2c22e9"},{url:"pwa-icon.svg",revision:"673adddf1548f59682764258005b6034"},{url:"logo.svg",revision:"269aa921a3f446f8e17843c89ed7bf35"},{url:"index.html",revision:"869ce4f2b6e61c0e3ace1acc6d98be76"},{url:"assets/workbox-window.prod.es5-BBnX5xw4.js",revision:null},{url:"assets/vendor-DpYitQz5.js",revision:null},{url:"assets/octicons-CaZ_fok2.woff2",revision:null},{url:"assets/mfixx-CpAhKOZz.woff2",revision:null},{url:"assets/markdown-Ce2Umeb2.js",revision:null},{url:"assets/index-DixJ0kqk.js",revision:null},{url:"assets/index-C5EhSt3C.css",revision:null},{url:"assets/index-BZjhFKbY.js",revision:null},{url:"assets/fontawesome-B-jkhYfk.woff2",revision:null},{url:"assets/file-icons-C0jOugUK.woff2",revision:null},{url:"assets/devopicons-QN4QXivI.woff2",revision:null},{url:"logo.svg",revision:"269aa921a3f446f8e17843c89ed7bf35"},{url:"pwa-icon.svg",revision:"673adddf1548f59682764258005b6034"},{url:"manifest.webmanifest",revision:"7a003d0094122eb3e607566c757e9885"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"),{denylist:[/^\/api/,/^\/gateway/,/^\/docs\//]})),e.registerRoute(/^https:\/\/fonts\.googleapis\.com/,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[]}),"GET"),e.registerRoute(/^https:\/\/fonts\.gstatic\.com/,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:31536e3})]}),"GET")});
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencent-ai/codebuddy-code",
3
- "version": "2.117.1",
3
+ "version": "2.118.1-dev.b6d6518.202607101320",
4
4
  "description": "Use CodeBuddy, Tencent's AI assistant, right from your terminal. CodeBuddy can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
5
5
  "main": "lib/node/index.js",
6
6
  "typings": "lib/node/index.d.ts",
@@ -18,9 +18,9 @@
18
18
  "@lydell/node-pty-linux-x64": "1.2.0-beta.12",
19
19
  "@lydell/node-pty-win32-arm64": "1.2.0-beta.12",
20
20
  "@lydell/node-pty-win32-x64": "1.2.0-beta.12",
21
- "@tencent-ai/sandbox-cli-darwin-arm64": "5.3.0-beta.2",
22
- "@tencent-ai/sandbox-cli-darwin-x64": "5.3.0-beta.2",
23
- "@tencent-ai/sandbox-cli-win32-x64": "5.3.0-beta.2"
21
+ "@tencent-ai/sandbox-cli-darwin-arm64": "5.3.0-beta.5",
22
+ "@tencent-ai/sandbox-cli-darwin-x64": "5.3.0-beta.5",
23
+ "@tencent-ai/sandbox-cli-win32-x64": "5.3.0-beta.5"
24
24
  },
25
25
  "keywords": [
26
26
  "codebuddy",
@@ -42,7 +42,8 @@
42
42
  "url": "https://cnb.cool/codebuddy/codebuddy-code/-/issues"
43
43
  },
44
44
  "publishConfig": {
45
- "access": "public"
45
+ "access": "public",
46
+ "tag": "dev"
46
47
  },
47
48
  "scripts": {},
48
49
  "devDependencies": {}
@@ -193,6 +193,9 @@
193
193
  "name": "autoModeClassifier",
194
194
  "instructions": "auto-mode-classifier-instructions",
195
195
  "description": "Classify auto mode tool permission risk.",
196
+ "models": [
197
+ "lite"
198
+ ],
196
199
  "tags": [
197
200
  "cli",
198
201
  "auto-mode-classifier"
@@ -824,6 +827,6 @@
824
827
  "SelectImage": true,
825
828
  "SkipToolCallSupportCheck": true
826
829
  },
827
- "commit": "7c5ec67de2d87b693fc3233fa7bb810c578c6398",
828
- "date": "2026-07-06T04:30:50.484Z"
830
+ "commit": "b6d651826e03dc8f8f339e93c5bc42592c5efd15",
831
+ "date": "2026-07-10T05:19:54.638Z"
829
832
  }
@@ -201,6 +201,9 @@
201
201
  "name": "autoModeClassifier",
202
202
  "instructions": "auto-mode-classifier-instructions",
203
203
  "description": "Classify auto mode tool permission risk.",
204
+ "models": [
205
+ "lite"
206
+ ],
204
207
  "tags": [
205
208
  "cli",
206
209
  "auto-mode-classifier"
@@ -764,12 +767,6 @@
764
767
  },
765
768
  "config": {
766
769
  "creditPurchaseActions": {
767
- "6004": {
768
- "labelZh": "升级专业版",
769
- "labelEn": "Upgrade to Pro",
770
- "url": "https://www.codebuddy.cn/profile/plan",
771
- "showButton": true
772
- },
773
770
  "6005": {
774
771
  "labelZh": "升级专业版",
775
772
  "labelEn": "Upgrade to Pro",
@@ -784,6 +781,6 @@
784
781
  }
785
782
  }
786
783
  },
787
- "commit": "7c5ec67de2d87b693fc3233fa7bb810c578c6398",
788
- "date": "2026-07-06T04:30:50.483Z"
784
+ "commit": "b6d651826e03dc8f8f339e93c5bc42592c5efd15",
785
+ "date": "2026-07-10T05:19:54.638Z"
789
786
  }
@@ -236,7 +236,9 @@
236
236
  "name": "autoModeClassifier",
237
237
  "instructions": "auto-mode-classifier-instructions",
238
238
  "description": "Classify auto mode tool permission risk.",
239
- "models": [],
239
+ "models": [
240
+ "lite"
241
+ ],
240
242
  "tags": [
241
243
  "cli",
242
244
  "auto-mode-classifier"
@@ -1173,12 +1175,6 @@
1173
1175
  },
1174
1176
  "config": {
1175
1177
  "creditPurchaseActions": {
1176
- "6004": {
1177
- "labelZh": "升级专业版",
1178
- "labelEn": "Upgrade to Pro",
1179
- "url": "https://www.codebuddy.cn/profile/plan",
1180
- "showButton": true
1181
- },
1182
1178
  "6005": {
1183
1179
  "labelZh": "升级专业版",
1184
1180
  "labelEn": "Upgrade to Pro",
@@ -1193,6 +1189,6 @@
1193
1189
  }
1194
1190
  }
1195
1191
  },
1196
- "commit": "7c5ec67de2d87b693fc3233fa7bb810c578c6398",
1197
- "date": "2026-07-06T04:30:50.484Z"
1192
+ "commit": "b6d651826e03dc8f8f339e93c5bc42592c5efd15",
1193
+ "date": "2026-07-10T05:19:54.639Z"
1198
1194
  }
package/cli/product.json CHANGED
@@ -70,12 +70,6 @@
70
70
  "commitMessage": {},
71
71
  "config": {
72
72
  "creditPurchaseActions": {
73
- "6004": {
74
- "labelZh": "升级专业版",
75
- "labelEn": "Upgrade to Pro",
76
- "url": "https://www.codebuddy.ai/profile/plan",
77
- "showButton": true
78
- },
79
73
  "6005": {
80
74
  "labelZh": "升级专业版",
81
75
  "labelEn": "Upgrade to Pro",
@@ -1216,7 +1210,9 @@
1216
1210
  "name": "autoModeClassifier",
1217
1211
  "instructions": "auto-mode-classifier-instructions",
1218
1212
  "description": "Classify auto mode tool permission risk.",
1219
- "models": [],
1213
+ "models": [
1214
+ "lite"
1215
+ ],
1220
1216
  "tags": [
1221
1217
  "cli",
1222
1218
  "auto-mode-classifier"
@@ -1769,6 +1765,6 @@
1769
1765
  "deferLoading": true
1770
1766
  }
1771
1767
  ],
1772
- "commit": "7c5ec67de2d87b693fc3233fa7bb810c578c6398",
1773
- "date": "2026-07-06T04:30:50.492Z"
1768
+ "commit": "b6d651826e03dc8f8f339e93c5bc42592c5efd15",
1769
+ "date": "2026-07-10T05:19:54.656Z"
1774
1770
  }
@@ -187,6 +187,9 @@
187
187
  "name": "autoModeClassifier",
188
188
  "instructions": "auto-mode-classifier-instructions",
189
189
  "description": "Classify auto mode tool permission risk.",
190
+ "models": [
191
+ "lite"
192
+ ],
190
193
  "tags": [
191
194
  "cli",
192
195
  "auto-mode-classifier"
@@ -339,6 +342,6 @@
339
342
  "ScheduledTasks": true,
340
343
  "SkipToolCallSupportCheck": true
341
344
  },
342
- "commit": "7c5ec67de2d87b693fc3233fa7bb810c578c6398",
343
- "date": "2026-07-06T04:30:50.472Z"
345
+ "commit": "b6d651826e03dc8f8f339e93c5bc42592c5efd15",
346
+ "date": "2026-07-10T05:19:54.637Z"
344
347
  }
@@ -336,6 +336,7 @@ trash_windows() {
336
336
 
337
337
  trash_one() {
338
338
  local p="$1"
339
+ local native_failed=0
339
340
  # 转为绝对路径:genie-trash binary 拒绝相对路径
340
341
  # / 开头(Unix)或盘符开头(C:/... Windows)都视为绝对路径
341
342
  case "$p" in
@@ -355,9 +356,15 @@ trash_one() {
355
356
  return 0
356
357
  fi
357
358
  _safe_delete_diag "genie-trash failed: exit=$native_rc bin=$TRASH_BIN path=$p stderr=$(_safe_delete_one_line "$native_out")"
359
+ native_failed=1
358
360
  else
359
361
  _safe_delete_diag "genie-trash unavailable: bin-not-executable path=$TRASH_BIN"
360
362
  fi
363
+ # Windows 下 native helper 已存在但失败时,必须 fail-closed。
364
+ # 不能降级到 powershell COM 删除,否则会出现“回收站失败后仍被删除”的风险。
365
+ if [ "$GT_PLATFORM" = "win32" ] && [ $native_failed -eq 1 ]; then
366
+ return 1
367
+ fi
361
368
  # ---- 降级:当前平台实现 ----
362
369
  case "$OS" in
363
370
  Darwin) trash_darwin "$p" ;;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencent-ai/agent-sdk",
3
- "version": "0.3.202",
3
+ "version": "0.3.205-dev.b6d6518.202607101321",
4
4
  "description": "CodeBuddy Code SDK for JavaScript/TypeScript",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -31,6 +31,7 @@
31
31
  "zod": "^4.0.0"
32
32
  },
33
33
  "publishConfig": {
34
- "access": "public"
34
+ "access": "public",
35
+ "tag": "dev"
35
36
  }
36
37
  }