@tencent-ai/agent-sdk 0.3.70 → 0.3.72

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.
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencent-ai/codebuddy-code",
3
- "version": "2.53.0",
3
+ "version": "2.55.0",
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",
@@ -11,6 +11,9 @@
11
11
  "deepseek-v3.1",
12
12
  "deepseek-v3-0324"
13
13
  ],
14
+ "modelTags": [
15
+ "craft"
16
+ ],
14
17
  "commands": [
15
18
  "init",
16
19
  "compact",
@@ -45,11 +48,13 @@
45
48
  "TeamDelete",
46
49
  "NotebookEdit",
47
50
  "LSP",
48
- "ImageGen"
51
+ "ImageGen",
52
+ "EnterWorktree"
49
53
  ],
50
54
  "tags": [
51
55
  "cli",
52
- "default"
56
+ "default",
57
+ "model:craft"
53
58
  ]
54
59
  },
55
60
  {
@@ -386,6 +391,6 @@
386
391
  "DeferToolLoading": true,
387
392
  "ImageGen": true
388
393
  },
389
- "commit": "f168f436f42a1d6795ef9ca21d30bb3e12096c14",
390
- "date": "2026-03-04T17:23:43.869Z"
394
+ "commit": "2fc0f34aeb02ef9aa24ba7715774860051c6097d",
395
+ "date": "2026-03-06T06:05:43.672Z"
391
396
  }
@@ -9,14 +9,14 @@
9
9
  "models": [
10
10
  "glm-5.0",
11
11
  "glm-4.7",
12
- "glm-4.6",
13
- "glm-4.6v",
14
12
  "minimax-m2.5",
15
13
  "kimi-k2.5",
16
- "kimi-k2-thinking",
17
14
  "deepseek-v3-2-volc",
18
15
  "hunyuan-2.0-thinking"
19
16
  ],
17
+ "modelTags": [
18
+ "craft"
19
+ ],
20
20
  "commands": [
21
21
  "init",
22
22
  "compact",
@@ -51,11 +51,13 @@
51
51
  "TeamDelete",
52
52
  "NotebookEdit",
53
53
  "LSP",
54
- "ImageGen"
54
+ "ImageGen",
55
+ "EnterWorktree"
55
56
  ],
56
57
  "tags": [
57
58
  "cli",
58
- "default"
59
+ "default",
60
+ "model:craft"
59
61
  ]
60
62
  },
61
63
  {
@@ -457,6 +459,28 @@
457
459
  "ImageGen": true,
458
460
  "RequestBodyGzip": true
459
461
  },
460
- "commit": "f168f436f42a1d6795ef9ca21d30bb3e12096c14",
461
- "date": "2026-03-04T17:23:43.868Z"
462
+ "config": {
463
+ "creditPurchaseActions": {
464
+ "6004": {
465
+ "labelZh": "升级专业版",
466
+ "labelEn": "Upgrade to Pro",
467
+ "url": "https://www.codebuddy.cn/profile/plan",
468
+ "showButton": true
469
+ },
470
+ "6005": {
471
+ "labelZh": "升级专业版",
472
+ "labelEn": "Upgrade to Pro",
473
+ "url": "https://www.codebuddy.cn/profile/plan",
474
+ "showButton": true
475
+ },
476
+ "14018": {
477
+ "labelZh": "获取 Credits",
478
+ "labelEn": "Get credits",
479
+ "url": "https://www.codebuddy.cn/profile/plan",
480
+ "showButton": true
481
+ }
482
+ }
483
+ },
484
+ "commit": "2fc0f34aeb02ef9aa24ba7715774860051c6097d",
485
+ "date": "2026-03-06T06:05:43.664Z"
462
486
  }
@@ -28,14 +28,14 @@
28
28
  "gpt-5.1-codex-mini",
29
29
  "glm-5.0-ioa",
30
30
  "glm-4.7-ioa",
31
- "glm-4.6-ioa",
32
- "glm-4.6v-ioa",
33
31
  "minimax-m2.5-ioa",
34
32
  "kimi-k2.5-ioa",
35
- "kimi-k2-thinking",
36
33
  "deepseek-v3-2-volc-ioa",
37
34
  "hunyuan-2.0-thinking-ioa"
38
35
  ],
36
+ "modelTags": [
37
+ "craft"
38
+ ],
39
39
  "commands": [
40
40
  "init",
41
41
  "compact",
@@ -71,11 +71,13 @@
71
71
  "NotebookEdit",
72
72
  "LSP",
73
73
  "ImageGen",
74
- "ImageEdit"
74
+ "ImageEdit",
75
+ "EnterWorktree"
75
76
  ],
76
77
  "tags": [
77
78
  "cli",
78
- "default"
79
+ "default",
80
+ "model:craft"
79
81
  ]
80
82
  },
81
83
  {
@@ -743,8 +745,31 @@
743
745
  "DeferToolLoading": true,
744
746
  "ImageGen": true,
745
747
  "ImageEdit": true,
746
- "RequestBodyGzip": true
748
+ "RequestBodyGzip": true,
749
+ "RemoteControl": true
750
+ },
751
+ "config": {
752
+ "creditPurchaseActions": {
753
+ "6004": {
754
+ "labelZh": "升级专业版",
755
+ "labelEn": "Upgrade to Pro",
756
+ "url": "https://www.codebuddy.cn/profile/plan",
757
+ "showButton": true
758
+ },
759
+ "6005": {
760
+ "labelZh": "升级专业版",
761
+ "labelEn": "Upgrade to Pro",
762
+ "url": "https://www.codebuddy.cn/profile/plan",
763
+ "showButton": true
764
+ },
765
+ "14018": {
766
+ "labelZh": "获取 Credits",
767
+ "labelEn": "Get credits",
768
+ "url": "https://www.codebuddy.cn/profile/plan",
769
+ "showButton": true
770
+ }
771
+ }
747
772
  },
748
- "commit": "f168f436f42a1d6795ef9ca21d30bb3e12096c14",
749
- "date": "2026-03-04T17:23:43.878Z"
773
+ "commit": "2fc0f34aeb02ef9aa24ba7715774860051c6097d",
774
+ "date": "2026-03-06T06:05:43.666Z"
750
775
  }
package/cli/product.json CHANGED
@@ -68,7 +68,28 @@
68
68
  }
69
69
  ],
70
70
  "commitMessage": {},
71
- "config": {},
71
+ "config": {
72
+ "creditPurchaseActions": {
73
+ "6004": {
74
+ "labelZh": "升级专业版",
75
+ "labelEn": "Upgrade to Pro",
76
+ "url": "https://www.codebuddy.ai/profile/plan",
77
+ "showButton": true
78
+ },
79
+ "6005": {
80
+ "labelZh": "升级专业版",
81
+ "labelEn": "Upgrade to Pro",
82
+ "url": "https://www.codebuddy.ai/profile/plan",
83
+ "showButton": true
84
+ },
85
+ "14018": {
86
+ "labelZh": "获取 Credits",
87
+ "labelEn": "Get credits",
88
+ "url": "https://www.codebuddy.ai/profile/plan",
89
+ "showButton": true
90
+ }
91
+ }
92
+ },
72
93
  "links": {
73
94
  "craftShellHelpDocument": "https://cloud.tencent.com/document/product/1749/117896",
74
95
  "craftFeedback": "https://cloud.tencent.com/document/product/1749/104249",
@@ -424,7 +445,7 @@
424
445
  },
425
446
  {
426
447
  "name": "compact-prompt",
427
- "template": "CRITICAL INSTRUCTION: DO NOT call ANY tools during this summarization task. This is a READ-ONLY analysis task. You should ONLY output text analysis and summary. NO tool calls (Read, Write, Edit, Bash, Grep, Glob, etc.) are needed or permitted.\n\nYour task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions.\nThis summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing development work without losing context.\n\nIMPORTANT: This is a summarization task ONLY. Do not use Read, Write, Edit, Bash, Grep, Glob, or any other tools. Simply analyze the conversation history that has been provided to you and create a text summary.\n\nBefore providing your final summary, wrap your analysis in <analysis> tags to organize your thoughts and ensure you've covered all necessary points. In your analysis process:\n\n1. Chronologically analyze each message and section of the conversation. For each section thoroughly identify:\n - The user's explicit requests and intents\n - Your approach to addressing the user's requests\n - Key decisions, technical concepts and code patterns\n - Specific details like:\n - file names\n - full code snippets\n - function signatures\n - file edits\n - Errors that you ran into and how you fixed them\n - Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.\n2. Double-check for technical accuracy and completeness, addressing each required element thoroughly.\n\nYour summary should include the following sections:\n\n1. Primary Request and Intent: Capture all of the user's explicit requests and intents in detail\n2. Key Technical Concepts: List all important technical concepts, technologies, and frameworks discussed.\n3. Files and Code Sections: Enumerate specific files and code sections examined, modified, or created. Pay special attention to the most recent messages and include full code snippets where applicable and include a summary of why this file read or edit is important.\n4. Errors and fixes: List all errors that you ran into, and how you fixed them. Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.\n5. Problem Solving: Document problems solved and any ongoing troubleshooting efforts.\n6. All user messages: List ALL user messages that are not tool results. These are critical for understanding the users' feedback and changing intent.\n6. Pending Tasks: Outline any pending tasks that you have explicitly been asked to work on.\n7. Current Work: Describe in detail precisely what was being worked on immediately before this summary request, paying special attention to the most recent messages from both user and assistant. Include file names and code snippets where applicable. DO NOT read files or call tools - only describe what was already discussed in the conversation.\n8. Optional Next Step: List the next step that you will take that is related to the most recent work you were doing. This should be a description of what to do next, NOT an actual execution. Do not call any tools. Simply describe the intended action. IMPORTANT: ensure that this step is DIRECTLY in line with the user's most recent explicit requests, and the task you were working on immediately before this summary request. If your last task was concluded, then only list next steps if they are explicitly in line with the users request. Do not start on tangential requests or really old requests that were already completed without confirming with the user first.\n If there is a next step, include direct quotes from the most recent conversation showing exactly what task you were working on and where you left off. This should be verbatim to ensure there's no drift in task interpretation.\n\nHere's an example of how your output should be structured:\n\n<example>\n<analysis>\n[Your thought process, ensuring all points are covered thoroughly and accurately]\n</analysis>\n\n<summary>\n1. Primary Request and Intent:\n [Detailed description]\n\n2. Key Technical Concepts:\n - [Concept 1]\n - [Concept 2]\n - [...]\n\n3. Files and Code Sections:\n - [File Name 1]\n - [Summary of why this file is important]\n - [Summary of the changes made to this file, if any]\n - [Important Code Snippet]\n - [File Name 2]\n - [Important Code Snippet]\n - [...]\n\n4. Errors and fixes:\n - [Detailed description of error 1]:\n - [How you fixed the error]\n - [User feedback on the error if any]\n - [...]\n\n5. Problem Solving:\n [Description of solved problems and ongoing troubleshooting]\n\n6. All user messages:\n - [Detailed non tool use user message]\n - [...]\n\n7. Pending Tasks:\n - [Task 1]\n - [Task 2]\n - [...]\n\n8. Current Work:\n [Precise description of current work]\n\n9. Optional Next Step:\n [Optional Next step to take]\n\n</summary>\n</example>\n\nPlease provide your summary based on the conversation so far, following this structure and ensuring precision and thoroughness in your response.\n\nThere may be additional summarization instructions provided in the included context. If so, remember to follow these instructions when creating the above summary. Examples of instructions include:\n<example>\n## Compact Instructions\nWhen summarizing the conversation focus on typescript code changes and also remember the mistakes you made and how you fixed them.\n</example>\n\n<example>\n# Summary instructions\nWhen you are using compact - please focus on test output and code changes. Include file reads verbatim.\n</example>\n\n"
448
+ "template": "CRITICAL INSTRUCTION: DO NOT call ANY tools during this summarization task. This is a READ-ONLY analysis task. You should ONLY output text analysis and summary. NO tool calls (Read, Write, Edit, Bash, Grep, Glob, etc.) are needed or permitted.\n\nYour task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions.\nThis summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing development work without losing context.\n\nIMPORTANT: This is a summarization task ONLY. Do not use Read, Write, Edit, Bash, Grep, Glob, or any other tools. Simply analyze the conversation history that has been provided to you and create a text summary.\n\nBefore providing your final summary, wrap the whole output in the <conversation_history_summary> tags, wrap your analysis in <analysis> tags to organize your thoughts and ensure you've covered all necessary points. In your analysis process:\n\n1. Chronologically analyze each message and section of the conversation. For each section thoroughly identify:\n - The user's explicit requests and intents\n - Your approach to addressing the user's requests\n - Key decisions, technical concepts and code patterns\n - Specific details like:\n - file names\n - full code snippets\n - function signatures\n - file edits\n - Errors that you ran into and how you fixed them\n - Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.\n2. Double-check for technical accuracy and completeness, addressing each required element thoroughly.\n\nYour summary should include the following sections:\n\n1. Primary Request and Intent: Capture all of the user's explicit requests and intents in detail\n2. Key Technical Concepts: List all important technical concepts, technologies, and frameworks discussed.\n3. Files and Code Sections: Enumerate specific files and code sections examined, modified, or created. Pay special attention to the most recent messages and include full code snippets where applicable and include a summary of why this file read or edit is important.\n4. Errors and fixes: List all errors that you ran into, and how you fixed them. Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.\n5. Problem Solving: Document problems solved and any ongoing troubleshooting efforts.\n6. All user messages: List ALL user messages that are not tool results. These are critical for understanding the users' feedback and changing intent.\n6. Pending Tasks: Outline any pending tasks that you have explicitly been asked to work on.\n7. Current Work: Describe in detail precisely what was being worked on immediately before this summary request, paying special attention to the most recent messages from both user and assistant. Include file names and code snippets where applicable. DO NOT read files or call tools - only describe what was already discussed in the conversation.\n8. Optional Next Step: List the next step that you will take that is related to the most recent work you were doing. This should be a description of what to do next, NOT an actual execution. Do not call any tools. Simply describe the intended action. IMPORTANT: ensure that this step is DIRECTLY in line with the user's most recent explicit requests, and the task you were working on immediately before this summary request. If your last task was concluded, then only list next steps if they are explicitly in line with the users request. Do not start on tangential requests or really old requests that were already completed without confirming with the user first.\n If there is a next step, include direct quotes from the most recent conversation showing exactly what task you were working on and where you left off. This should be verbatim to ensure there's no drift in task interpretation.\n\nHere's an example of how your output should be structured:\n\n<example>\n<conversation_history_summary>\n<analysis>\n[Your thought process, ensuring all points are covered thoroughly and accurately]\n</analysis>\n\n<summary>\n1. Primary Request and Intent:\n [Detailed description]\n\n2. Key Technical Concepts:\n - [Concept 1]\n - [Concept 2]\n - [...]\n\n3. Files and Code Sections:\n - [File Name 1]\n - [Summary of why this file is important]\n - [Summary of the changes made to this file, if any]\n - [Important Code Snippet]\n - [File Name 2]\n - [Important Code Snippet]\n - [...]\n\n4. Errors and fixes:\n - [Detailed description of error 1]:\n - [How you fixed the error]\n - [User feedback on the error if any]\n - [...]\n\n5. Problem Solving:\n [Description of solved problems and ongoing troubleshooting]\n\n6. All user messages:\n - [Detailed non tool use user message]\n - [...]\n\n7. Pending Tasks:\n - [Task 1]\n - [Task 2]\n - [...]\n\n8. Current Work:\n [Precise description of current work]\n\n9. Optional Next Step:\n [Optional Next step to take]\n\n</summary>\n</conversation_history_summary>\n</example>\n\nPlease provide your summary based on the conversation so far, following this structure and ensuring precision and thoroughness in your response.\n\nThere may be additional summarization instructions provided in the included context. If so, remember to follow these instructions when creating the above summary. Examples of instructions include:\n<example>\n## Compact Instructions\nWhen summarizing the conversation focus on typescript code changes and also remember the mistakes you made and how you fixed them.\n</example>\n\n<example>\n# Summary instructions\nWhen you are using compact - please focus on test output and code changes. Include file reads verbatim.\n</example>\n"
428
449
  },
429
450
  {
430
451
  "name": "command-security-review-prompt",
@@ -709,6 +730,10 @@
709
730
  {
710
731
  "name": "tool-describetool-description",
711
732
  "template": "Get detailed information about a specific tool by name.\n\nUse this when you already know the tool name and need its full definition (description and input schema). This is more efficient than searching when the tool name is known.\n\nUsage:\n- Provide the exact tool name (case-sensitive)\n- Returns the tool's full description and parameter schema\n- The tool is automatically activated for use in subsequent messages\n\nIf the tool is not found, consider using ToolSearch to discover available tools by description.\n"
733
+ },
734
+ {
735
+ "name": "tool-enterworktree-description",
736
+ "template": "Use this tool ONLY when the user explicitly asks to work in a worktree.\nThis tool creates an isolated git worktree and switches the current session into it.\n\n## When to Use\n\n- The user explicitly says \"worktree\"\n (e.g., \"start a worktree\", \"work in a worktree\", \"create a worktree\", \"use a worktree\")\n\n## When NOT to Use\n\n- The user asks to create a branch, switch branches, or work on a different branch — use git commands instead\n- The user asks to fix a bug or work on a feature — use normal git workflow unless they specifically mention worktrees\n- Never use this tool unless the user explicitly mentions \"worktree\"\n\n## Requirements\n\n- Must be in a git repository, OR have WorktreeCreate/WorktreeRemove hooks configured in settings.json\n- Must not already be in a worktree\n\n## Behavior\n\n- In a git repository: creates a new git worktree inside `.codebuddy/worktrees/` with a new branch based on HEAD\n- Outside a git repository: delegates to WorktreeCreate/WorktreeRemove hooks for VCS-agnostic isolation\n- Switches the session's working directory to the new worktree\n- On session exit, the user will be prompted to keep or remove the worktree\n\n## Parameters\n\n- `name` (optional): A name for the worktree. If not provided, a random name is generated.\n"
712
737
  }
713
738
  ],
714
739
  "variables": [
@@ -771,6 +796,9 @@
771
796
  "glm-5.0",
772
797
  "kimi-k2.5"
773
798
  ],
799
+ "modelTags": [
800
+ "craft"
801
+ ],
774
802
  "commands": [
775
803
  "init",
776
804
  "compact",
@@ -806,11 +834,13 @@
806
834
  "NotebookEdit",
807
835
  "LSP",
808
836
  "ImageGen",
809
- "ImageEdit"
837
+ "ImageEdit",
838
+ "EnterWorktree"
810
839
  ],
811
840
  "tags": [
812
841
  "cli",
813
- "default"
842
+ "default",
843
+ "model:craft"
814
844
  ]
815
845
  },
816
846
  {
@@ -1329,8 +1359,12 @@
1329
1359
  {
1330
1360
  "name": "SendMessage",
1331
1361
  "description": "tool-sendmessage-description"
1362
+ },
1363
+ {
1364
+ "name": "EnterWorktree",
1365
+ "description": "tool-enterworktree-description"
1332
1366
  }
1333
1367
  ],
1334
- "commit": "f168f436f42a1d6795ef9ca21d30bb3e12096c14",
1335
- "date": "2026-03-04T17:23:43.884Z"
1368
+ "commit": "2fc0f34aeb02ef9aa24ba7715774860051c6097d",
1369
+ "date": "2026-03-06T06:05:43.711Z"
1336
1370
  }
@@ -7,6 +7,9 @@
7
7
  "models": [
8
8
  "codewise-chat"
9
9
  ],
10
+ "modelTags": [
11
+ "craft"
12
+ ],
10
13
  "commands": [
11
14
  "init",
12
15
  "compact",
@@ -40,11 +43,13 @@
40
43
  "TeamCreate",
41
44
  "TeamDelete",
42
45
  "NotebookEdit",
43
- "LSP"
46
+ "LSP",
47
+ "EnterWorktree"
44
48
  ],
45
49
  "tags": [
46
50
  "cli",
47
- "default"
51
+ "default",
52
+ "model:craft"
48
53
  ]
49
54
  },
50
55
  {
@@ -275,6 +280,6 @@
275
280
  "CustomModelsJSON": true,
276
281
  "DeferToolLoading": true
277
282
  },
278
- "commit": "f168f436f42a1d6795ef9ca21d30bb3e12096c14",
279
- "date": "2026-03-04T17:23:43.870Z"
283
+ "commit": "2fc0f34aeb02ef9aa24ba7715774860051c6097d",
284
+ "date": "2026-03-06T06:05:43.680Z"
280
285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencent-ai/agent-sdk",
3
- "version": "0.3.70",
3
+ "version": "0.3.72",
4
4
  "description": "CodeBuddy Code SDK for JavaScript/TypeScript",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",