@tencent-ai/codebuddy-code 1.19.0 ā 1.20.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.
- package/CHANGELOG.md +33 -0
- package/dist/codebuddy.js +3100 -1786
- package/package.json +1 -1
- package/product.cloudhosted.json +2 -2
- package/product.internal.json +2 -2
- package/product.ioa.json +2 -3
- package/product.json +3 -3
- package/product.selfhosted.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencent-ai/codebuddy-code",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.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",
|
package/product.cloudhosted.json
CHANGED
|
@@ -173,6 +173,6 @@
|
|
|
173
173
|
"productFeatures": {
|
|
174
174
|
"BillingNotice": false
|
|
175
175
|
},
|
|
176
|
-
"commit": "
|
|
177
|
-
"date": "2025-10-
|
|
176
|
+
"commit": "3f4aa17b560a6fd325a5ea73d6015a760674e88b",
|
|
177
|
+
"date": "2025-10-27T11:48:40.789Z"
|
|
178
178
|
}
|
package/product.internal.json
CHANGED
|
@@ -175,6 +175,6 @@
|
|
|
175
175
|
"productFeatures": {
|
|
176
176
|
"BillingNotice": false
|
|
177
177
|
},
|
|
178
|
-
"commit": "
|
|
179
|
-
"date": "2025-10-
|
|
178
|
+
"commit": "3f4aa17b560a6fd325a5ea73d6015a760674e88b",
|
|
179
|
+
"date": "2025-10-27T11:48:38.333Z"
|
|
180
180
|
}
|
package/product.ioa.json
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
"instructions": "cli-agent-prompt",
|
|
8
8
|
"description": "cli agent",
|
|
9
9
|
"models": [
|
|
10
|
-
"claude-4.0",
|
|
11
10
|
"claude-4.5",
|
|
12
11
|
"claude-haiku-4.5",
|
|
13
12
|
"gemini-2.5-pro",
|
|
@@ -319,6 +318,6 @@
|
|
|
319
318
|
"productFeatures": {
|
|
320
319
|
"BillingNotice": false
|
|
321
320
|
},
|
|
322
|
-
"commit": "
|
|
323
|
-
"date": "2025-10-
|
|
321
|
+
"commit": "3f4aa17b560a6fd325a5ea73d6015a760674e88b",
|
|
322
|
+
"date": "2025-10-27T11:48:39.554Z"
|
|
324
323
|
}
|
package/product.json
CHANGED
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
"name": "tool-bash-description",
|
|
265
|
-
"template": "Executes a given bash command in a persistent shell session with optional timeout, ensuring proper handling and security measures.\n\nBefore executing the command, please follow these steps:\n\n1. Directory Verification:\n - If the command will create new directories or files, first use the LS tool to verify the parent directory exists and is the correct location\n - For example, before running \\\"mkdir foo/bar\\\", first use LS to check that \\\"foo\\\" exists and is the intended parent directory\n\n2. Command Execution:\n - Always quote file paths that contain spaces with double quotes (e.g., cd \\\"path with spaces/file.txt\\\")\n - Examples of proper quoting:\n - cd \\\"/Users/name/My Documents\\\" (correct)\n - cd /Users/name/My Documents (incorrect - will fail)\n - python \\\"/path/with spaces/script.py\\\" (correct)\n - python /path/with spaces/script.py (incorrect - will fail)\n - After ensuring proper quoting, execute the command.\n - Capture the output of the command.\n\nUsage notes:\n - The command argument is required.\n - You can specify an optional timeout in milliseconds (up to 600000ms / 10 minutes). If not specified, commands will timeout after 120000ms (2 minutes).\n - It is very helpful if you write a clear, concise description of what this command does in 5-10 words.\n - If the output exceeds 30000 characters, output will be truncated before being returned to you.\n - VERY IMPORTANT: You MUST avoid using search commands like `find` and `grep`. Instead use Grep, Glob, or Task to search. You MUST avoid read tools like `cat`, `head`, `tail`, and `ls`, and use Read and LS to read files.\n - If you _still_ need to run `grep`, STOP. ALWAYS USE ripgrep at `rg` first, which all users have pre-installed.\n - When issuing multiple commands, use the ';' or '&&' operator to separate them. DO NOT use newlines (newlines are ok in quoted strings).\n - Try to maintain your current working directory throughout the session by using absolute paths and avoiding usage of `cd`. You may use `cd` if the User explicitly requests it.\n <good-example>\n pytest /foo/bar/tests\n </good-example>\n <bad-example>\n cd /foo/bar && pytest tests\n </bad-example>\n\n# Committing changes with git\n\nWhen the user asks you to create a new git commit, follow these steps carefully:\n\n1. You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool calls together for optimal performance. ALWAYS run the following bash commands in parallel, each using the Bash tool:\n - Run a git status command to see all untracked files.\n - Run a git diff command to see both staged and unstaged changes that will be committed.\n - Run a git log command to see recent commit messages, so that you can follow this repository's commit message style.\n2. Analyze all staged changes (both previously staged and newly added) and draft a commit message:\n - Summarize the nature of the changes (eg. new feature, enhancement to an existing feature, bug fix, refactoring, test, docs, etc.). Ensure the message accurately reflects the changes and their purpose (i.e. \\\"add\\\" means a wholly new feature, \\\"update\\\" means an enhancement to an existing feature, \\\"fix\\\" means a bug fix, etc.).\n - Check for any sensitive information that shouldn't be committed\n - Draft a concise (1-2 sentences) commit message that focuses on the \\\"why\\\" rather than the \\\"what\\\"\n - Ensure it accurately reflects the changes and their purpose\n3. You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool calls together for optimal performance. ALWAYS run the following commands in parallel:\n - Add relevant untracked files to the staging area.\n - Create the commit with a message{% if settings.includeCoAuthoredBy %} ending with:\n š¤ Generated with [Terminal Assistant Agent]\n\n Co-Authored-By: Terminal Assistant Agent{% endif %}\n - Run git status to make sure the commit succeeded.\n4. If the commit fails due to pre-commit hook changes, retry the commit ONCE to include these automated changes. If it fails again, it usually means a pre-commit hook is preventing the commit. If the commit succeeds but you notice that files were modified by the pre-commit hook, you MUST amend your commit to include them.\n\nImportant notes:\n- NEVER update the git config\n- NEVER run additional commands to read or explore code, besides git bash commands\n- NEVER use the TodoWrite or Task tools\n- DO NOT push to the remote repository unless the user explicitly asks you to do so\n- IMPORTANT: Never use git commands with the -i flag (like git rebase -i or git add -i) since they require interactive input which is not supported.\n- If there are no changes to commit (i.e., no untracked files and no modifications), do not create an empty commit\n- In order to ensure good formatting, ALWAYS pass the commit message via a HEREDOC, a la this example:\n<example>\ngit commit -m \\\"$(cat <<'EOF'\n Commit message here.\n{% if settings.includeCoAuthoredBy %}\n\n\n š¤ Generated with [Terminal Assistant Agent]\n\n Co-Authored-By: Terminal Assistant Agent\n{% endif %}\n EOF\n )\\\"\n</example>\n\n# Creating pull requests\nUse the gh command via the Bash tool for ALL GitHub-related tasks including working with issues, pull requests, checks, and releases. If given a Github URL use the gh command to get the information needed.\n\nIMPORTANT: When the user asks you to create a pull request, follow these steps carefully:\n\n1. You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool calls together for optimal performance. ALWAYS run the following bash commands in parallel using the Bash tool, in order to understand the current state of the branch since it diverged from the main branch:\n - Run a git status command to see all untracked files\n - Run a git diff command to see both staged and unstaged changes that will be committed\n - Check if the current branch tracks a remote branch and is up to date with the remote, so you know if you need to push to the remote\n - Run a git log command and `git diff [base-branch]...HEAD` to understand the full commit history for the current branch (from the time it diverged from the base branch)\n2. Analyze all changes that will be included in the pull request, making sure to look at all relevant commits (NOT just the latest commit, but ALL commits that will be included in the pull request!!!), and draft a pull request summary\n3. You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool calls together for optimal performance. ALWAYS run the following commands in parallel:\n - Create new branch if needed\n - Push to remote with -u flag if needed\n - Create PR using gh pr create with the format below. Use a HEREDOC to pass the body to ensure correct formatting.\n<example>\ngh pr create --title \\\"the pr title\\\" --body \\\"$(cat <<'EOF'\n## Summary\n<1-3 bullet points>\n\n## Test plan\n[Checklist of TODOs for testing the pull request...]\n{% if settings.includeCoAuthoredBy %}\n\nš¤ Generated with [Terminal Assistant Agent]\n{% endif %}\nEOF\n)\\\"\n</example>\n\nImportant:\n- NEVER update the git config\n- DO NOT use the TodoWrite or Task tools\n- Return the PR URL when you're done, so the user can see it\n\n# Other common operations\n- View comments on a Github PR: gh api repos/foo/bar/pulls/123/comments\n\n\n# Command Execution Safety Rules \n\n* Always inspect every command before suggesting or executing.\n* If the command is unsafe or harmful (e.g., wiping system files, dropping databases, altering permissions dangerously, disabling protections):\n\n * Warn the user clearly that it is unsafe.\n * Refuse execution ā do not run or simulate it.\n * Require explicit user revision before proceeding.\n* Unsafe commands ā **warn + block execution (cannot proceed).**\n* For safe commands:\n\n * Explain what the command does in clear language.\n * Expand words and regenerate phrasing for readability during analysis (read) tasks.\n * Use clean, structured formatting when presenting output.\n"
|
|
265
|
+
"template": "Executes a given bash command in a persistent shell session with optional timeout, ensuring proper handling and security measures.\n\nIMPORTANT: This tool is for terminal operations like git, npm, docker, etc. DO NOT use it for file operations (reading, writing, editing, searching, finding files) - use the specialized tools for this instead.\n\nBefore executing the command, please follow these steps:\n\n1. Directory Verification:\n - If the command will create new directories or files, first use the LS tool to verify the parent directory exists and is the correct location\n - For example, before running \\\"mkdir foo/bar\\\", first use LS to check that \\\"foo\\\" exists and is the intended parent directory\n\n2. Command Execution:\n - Always quote file paths that contain spaces with double quotes (e.g., cd \\\"path with spaces/file.txt\\\")\n - Examples of proper quoting:\n - cd \\\"/Users/name/My Documents\\\" (correct)\n - cd /Users/name/My Documents (incorrect - will fail)\n - python \\\"/path/with spaces/script.py\\\" (correct)\n - python /path/with spaces/script.py (incorrect - will fail)\n - After ensuring proper quoting, execute the command.\n - Capture the output of the command.\n\nUsage notes:\n - The command argument is required.\n - You can specify an optional timeout in milliseconds (up to 600000ms / 10 minutes). If not specified, commands will timeout after 120000ms (2 minutes).\n - It is very helpful if you write a clear, concise description of what this command does in 5-10 words.\n - If the output exceeds 30000 characters, output will be truncated before being returned to you.\n - You can use the `run_in_background` parameter to run the command in the background, which allows you to continue working while the command runs. You can monitor the output using the Bash tool as it becomes available. You do not need to use '&' at the end of the command when using this parameter.\n\n - Avoid using Bash with the `find`, `grep`, `cat`, `head`, `tail`, `sed`, `awk`, or `echo` commands, unless explicitly instructed or when these commands are truly necessary for the task. Instead, always prefer using the dedicated tools for these commands:\n - File search: Use Glob (NOT find or ls)\n - Content search: Use Grep (NOT grep or rg)\n - Read files: Use Read (NOT cat/head/tail)\n - Edit files: Use Edit (NOT sed/awk)\n - Write files: Use Write (NOT echo >/cat <<EOF)\n - Communication: Output text directly (NOT echo/printf)\n - When issuing multiple commands:\n - If the commands are independent and can run in parallel, make multiple Bash tool calls in a single message. For example, if you need to run \\\"git status\\\" and \\\"git diff\\\", send a single message with two Bash tool calls in parallel.\n - If the commands depend on each other and must run sequentially, use a single Bash call with '&&' to chain them together (e.g., `git add . && git commit -m \\\"message\\\" && git push`). For instance, if one operation must complete before another starts (like mkdir before cp, Write before Bash for git operations, or git add before git commit), run these operations sequentially instead.\n - Use ';' only when you need to run commands sequentially but don't care if earlier commands fail\n - DO NOT use newlines to separate commands (newlines are ok in quoted strings)\n - Try to maintain your current working directory throughout the session by using absolute paths and avoiding usage of `cd`. You may use `cd` if the User explicitly requests it.\n <good-example>\n pytest /foo/bar/tests\n </good-example>\n <bad-example>\n cd /foo/bar && pytest tests\n </bad-example>\n\n# Committing changes with git\n\nOnly create commits when requested by the user. If unclear, ask first. When the user asks you to create a new git commit, follow these steps carefully:\n\nGit Safety Protocol:\n- NEVER update the git config\n- NEVER run destructive/irreversible git commands (like push --force, hard reset, etc) unless the user explicitly requests them \n- NEVER skip hooks (--no-verify, --no-gpg-sign, etc) unless the user explicitly requests it\n- NEVER run force push to main/master, warn the user if they request it\n- Avoid git commit --amend. ONLY use --amend when either (1) user explicitly requested amend OR (2) adding edits from pre-commit hook (additional instructions below) \n- Before amending: ALWAYS check authorship (git log -1 --format='%an %ae')\n- NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTANT to only commit when explicitly asked, otherwise the user will feel that you are being too proactive.\n\n1. You can call multiple tools in a single response. When multiple independent pieces of information are requested and all commands are likely to succeed, run multiple tool calls in parallel for optimal performance. run the following bash commands in parallel, each using the Bash tool:\n - Run a git status command to see all untracked files.\n - Run a git diff command to see both staged and unstaged changes that will be committed.\n - Run a git log command to see recent commit messages, so that you can follow this repository's commit message style.\n2. Analyze all staged changes (both previously staged and newly added) and draft a commit message:\n - Summarize the nature of the changes (eg. new feature, enhancement to an existing feature, bug fix, refactoring, test, docs, etc.). Ensure the message accurately reflects the changes and their purpose (i.e. \\\"add\\\" means a wholly new feature, \\\"update\\\" means an enhancement to an existing feature, \\\"fix\\\" means a bug fix, etc.).\n - Do not commit files that likely contain secrets (.env, credentials.json, etc). Warn the user if they specifically request to commit those files\n - Draft a concise (1-2 sentences) commit message that focuses on the \\\"why\\\" rather than the \\\"what\\\"\n - Ensure it accurately reflects the changes and their purpose\n3. You can call multiple tools in a single response. When multiple independent pieces of information are requested and all commands are likely to succeed, run multiple tool calls in parallel for optimal performance. run the following commands:\n - Add relevant untracked files to the staging area.\n - Create the commit with a message{% if settings.includeCoAuthoredBy %} ending with:\n š¤ Generated with [Terminal Assistant Agent]\n\n Co-Authored-By: Terminal Assistant Agent{% endif %}\n - Run git status to make sure the commit succeeded.\n Note: git status depends on the commit completing, so run it sequentially after the commit.\n4. If the commit fails due to pre-commit hook changes, retry ONCE. If it succeeds but files were modified by the hook, verify it's safe to amend:\n - Check authorship: git log -1 --format='%an %ae'\n - Check not pushed: git status shows \\\"Your branch is ahead\\\"\n - If both true: amend your commit. Otherwise: create NEW commit (never amend other developers' commits)\n\nImportant notes:\n- NEVER update the git config\n- NEVER run additional commands to read or explore code, besides git bash commands\n- NEVER use the TodoWrite or Task tools\n- DO NOT push to the remote repository unless the user explicitly asks you to do so\n- IMPORTANT: Never use git commands with the -i flag (like git rebase -i or git add -i) since they require interactive input which is not supported.\n- If there are no changes to commit (i.e., no untracked files and no modifications), do not create an empty commit\n- In order to ensure good formatting, ALWAYS pass the commit message via a HEREDOC, a la this example:\n<example>\ngit commit -m \\\"$(cat <<'EOF'\n Commit message here.\n{% if settings.includeCoAuthoredBy %}\n\n\n š¤ Generated with [Terminal Assistant Agent]\n\n Co-Authored-By: Terminal Assistant Agent\n{% endif %}\n EOF\n )\\\"\n</example>\n\n# Creating pull requests\nUse the gh command via the Bash tool for ALL GitHub-related tasks including working with issues, pull requests, checks, and releases. If given a Github URL use the gh command to get the information needed.\n\nIMPORTANT: When the user asks you to create a pull request, follow these steps carefully:\n\n1. You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool calls together for optimal performance. ALWAYS run the following bash commands in parallel using the Bash tool, in order to understand the current state of the branch since it diverged from the main branch:\n - Run a git status command to see all untracked files\n - Run a git diff command to see both staged and unstaged changes that will be committed\n - Check if the current branch tracks a remote branch and is up to date with the remote, so you know if you need to push to the remote\n - Run a git log command and `git diff [base-branch]...HEAD` to understand the full commit history for the current branch (from the time it diverged from the base branch)\n2. Analyze all changes that will be included in the pull request, making sure to look at all relevant commits (NOT just the latest commit, but ALL commits that will be included in the pull request!!!), and draft a pull request summary\n3. You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool calls together for optimal performance. ALWAYS run the following commands in parallel:\n - Create new branch if needed\n - Push to remote with -u flag if needed\n - Create PR using gh pr create with the format below. Use a HEREDOC to pass the body to ensure correct formatting.\n<example>\ngh pr create --title \\\"the pr title\\\" --body \\\"$(cat <<'EOF'\n## Summary\n<1-3 bullet points>\n\n## Test plan\n[Checklist of TODOs for testing the pull request...]\n{% if settings.includeCoAuthoredBy %}\n\nš¤ Generated with [Terminal Assistant Agent]\n{% endif %}\nEOF\n)\\\"\n</example>\n\nImportant:\n- NEVER update the git config\n- DO NOT use the TodoWrite or Task tools\n- Return the PR URL when you're done, so the user can see it\n\n# Other common operations\n- View comments on a Github PR: gh api repos/foo/bar/pulls/123/comments\n\n\n# Command Execution Safety Rules \n\n* Always inspect every command before suggesting or executing.\n* If the command is unsafe or harmful (e.g., wiping system files, dropping databases, altering permissions dangerously, disabling protections):\n\n * Warn the user clearly that it is unsafe.\n * Refuse execution ā do not run or simulate it.\n * Require explicit user revision before proceeding.\n* Unsafe commands ā **warn + block execution (cannot proceed).**\n* For safe commands:\n\n * Explain what the command does in clear language.\n * Expand words and regenerate phrasing for readability during analysis (read) tasks.\n * Use clean, structured formatting when presenting output.\n"
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"name": "tool-glob-description",
|
|
@@ -683,6 +683,6 @@
|
|
|
683
683
|
"description": "tool-skill-description"
|
|
684
684
|
}
|
|
685
685
|
],
|
|
686
|
-
"commit": "
|
|
687
|
-
"date": "2025-10-
|
|
686
|
+
"commit": "3f4aa17b560a6fd325a5ea73d6015a760674e88b",
|
|
687
|
+
"date": "2025-10-27T11:48:37.109Z"
|
|
688
688
|
}
|
package/product.selfhosted.json
CHANGED
|
@@ -145,6 +145,6 @@
|
|
|
145
145
|
"productFeatures": {
|
|
146
146
|
"BillingNotice": false
|
|
147
147
|
},
|
|
148
|
-
"commit": "
|
|
149
|
-
"date": "2025-10-
|
|
148
|
+
"commit": "3f4aa17b560a6fd325a5ea73d6015a760674e88b",
|
|
149
|
+
"date": "2025-10-27T11:48:42.016Z"
|
|
150
150
|
}
|