@tencent-ai/codebuddy-code 2.81.0 → 2.81.1-next.84eab07.20260409
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 +15 -0
- package/dist/codebuddy-headless.js +33 -33
- package/dist/codebuddy.js +33 -33
- package/dist/web-ui/assets/{index-Dofz0a20.js → index-BPUMtuMu.js} +1 -1
- package/dist/web-ui/docs/cn/cli/env-vars.md +3 -1
- package/dist/web-ui/docs/cn/cli/keybindings.md +346 -0
- package/dist/web-ui/docs/cn/cli/memory.md +6 -7
- package/dist/web-ui/docs/cn/cli/release-notes/README.md +3 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.79.1.md +45 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.80.0.md +33 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.81.0.md +40 -0
- package/dist/web-ui/docs/cn/cli/settings.md +8 -5
- package/dist/web-ui/docs/cn/cli/tools-reference.md +27 -0
- package/dist/web-ui/docs/en/cli/env-vars.md +3 -1
- package/dist/web-ui/docs/en/cli/keybindings.md +346 -0
- package/dist/web-ui/docs/en/cli/memory.md +6 -7
- package/dist/web-ui/docs/en/cli/release-notes/README.md +3 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.79.1.md +45 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.80.0.md +33 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.81.0.md +40 -0
- package/dist/web-ui/docs/en/cli/settings.md +7 -4
- package/dist/web-ui/docs/en/cli/tools-reference.md +27 -0
- package/dist/web-ui/docs/search-index-en.json +1 -1
- package/dist/web-ui/docs/search-index-zh.json +1 -1
- package/dist/web-ui/docs/sidebar-en.json +1 -1
- package/dist/web-ui/docs/sidebar-zh.json +1 -1
- package/dist/web-ui/index.html +1 -1
- package/package.json +3 -2
- package/product.cloudhosted.json +2 -2
- package/product.internal.json +2 -2
- package/product.ioa.json +2 -2
- package/product.json +2 -2
- package/product.selfhosted.json +2 -2
|
@@ -25,6 +25,7 @@ CodeBuddy Code includes a set of built-in tools to help understand and modify yo
|
|
|
25
25
|
| `LSP` | Provides code intelligence via Language Server. Automatically reports type errors and warnings after file edits. Also supports navigation operations such as go-to-definition, find references, get type info, list symbols, find implementations, and trace call hierarchies. Requires a [Code Intelligence Plugin](plugins.md) and its language server binary | No |
|
|
26
26
|
| `MultiEdit` | Performs multiple edits on the same file in a single atomic operation | Yes |
|
|
27
27
|
| `NotebookEdit` | Modifies Jupyter notebook cell contents | Yes |
|
|
28
|
+
| `PowerShell` | Executes PowerShell commands on Windows. Only available on Windows, see [PowerShell Tool Behavior](#powershell-tool-behavior) | Yes |
|
|
28
29
|
| `Read` | Reads file contents, supporting images, PDFs, and Jupyter notebooks | No |
|
|
29
30
|
| `SendMessage` | Sends messages to teammates in an [Agent Team](agent-teams.md) | No |
|
|
30
31
|
| `Skill` | Executes a [Skill](skills.md) in the main conversation | No |
|
|
@@ -53,6 +54,7 @@ Some tools have aliases that can be used interchangeably in permission rules:
|
|
|
53
54
|
| :--- | :--- |
|
|
54
55
|
| `TaskOutput` | `BashOutput` |
|
|
55
56
|
| `TaskStop` | `KillShell` |
|
|
57
|
+
| `PowerShell` | `pwsh`, `ps` |
|
|
56
58
|
|
|
57
59
|
## Bash Tool Behavior
|
|
58
60
|
|
|
@@ -73,6 +75,31 @@ The `dangerouslyDisableSandbox` parameter allows bypassing the sandbox on a per-
|
|
|
73
75
|
|
|
74
76
|
The `run_in_background` parameter allows running commands in the background, using the `TaskOutput` tool to read the output. This is suitable for long-running builds, tests, and similar scenarios.
|
|
75
77
|
|
|
78
|
+
## PowerShell Tool Behavior
|
|
79
|
+
|
|
80
|
+
The PowerShell tool is only available on Windows and provides native PowerShell command execution.
|
|
81
|
+
|
|
82
|
+
### Relationship with Bash Tool
|
|
83
|
+
|
|
84
|
+
* **With Git Bash**: Both Bash and PowerShell tools are available; the model chooses the appropriate tool based on the scenario
|
|
85
|
+
* **Without Git Bash**: The Bash tool is automatically disabled, and the PowerShell tool becomes the only shell tool
|
|
86
|
+
* The PowerShell tool is not available on macOS/Linux
|
|
87
|
+
|
|
88
|
+
### Version Adaptation
|
|
89
|
+
|
|
90
|
+
The PowerShell tool automatically detects the PowerShell version, preferring PowerShell 7+ (pwsh) and falling back to Windows PowerShell 5.1. Syntax guidance in prompts adjusts automatically based on version differences (e.g., the `&&` operator is only supported in 7+).
|
|
91
|
+
|
|
92
|
+
### Security Checks
|
|
93
|
+
|
|
94
|
+
The PowerShell tool includes a built-in security checker covering dangerous patterns such as code injection, download-and-execute, privilege escalation, and system destruction. Dangerous commands (e.g., `Invoke-Expression`, `Add-Type`) are blocked, and system-modifying commands require user confirmation.
|
|
95
|
+
|
|
96
|
+
### Environment Variables
|
|
97
|
+
|
|
98
|
+
| Environment Variable | Description |
|
|
99
|
+
|---------|------|
|
|
100
|
+
| `CODEBUDDY_POWERSHELL_PATH` | Explicitly specify the PowerShell path (takes priority over auto-detection) |
|
|
101
|
+
| `CODEBUDDY_USE_POWERSHELL_TOOL` | Set to `0` to disable the PowerShell tool |
|
|
102
|
+
|
|
76
103
|
## Deferred Tool Loading
|
|
77
104
|
|
|
78
105
|
Some tools (such as those provided via [MCP servers](mcp.md)) use deferred loading. These tools do not appear in the initial tool list and must be discovered and activated via `ToolSearch`. Once activated, tools remain available for the rest of the session.
|