Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
94b22a8
chore(cli): gate debug logs behind flags
jiangmuran Feb 11, 2026
a1f26f8
chore(build): add targeted build scripts
jiangmuran Feb 11, 2026
5e607a9
feat(cli): add doctor diagnostics command
jiangmuran Feb 11, 2026
e2eb47a
chore(deps): refresh genai lockfile
jiangmuran Feb 11, 2026
d35c20f
feat(cli): support command aliases in settings
jiangmuran Feb 11, 2026
5c3f1be
feat(cli): add report command
jiangmuran Feb 11, 2026
3a1d44c
feat(cli): add history command
jiangmuran Feb 11, 2026
c0b491e
refactor(cli): fold doctor into report
jiangmuran Feb 11, 2026
c85d8cb
security(cli): harden auth and execution paths
jiangmuran Feb 11, 2026
b893786
feat(vscode-ui-plugin): 新增 Mermaid 图表渲染支持
Mar 15, 2026
3a272ba
fix(cli): 修正 help 输出中的脚本名称,从 'deepv' 改为 'dvcode'
Mar 15, 2026
6cee5b6
feat(core): 规范各风格提示词中的文件引用格式
Mar 18, 2026
81b1a54
fix(core): 修复 replaceAll 特殊替换模式导致文件内容损坏的问题
Mar 23, 2026
a170d2b
fix: 修复 MCP 工具在非交互模式下无法加载的问题
Mar 28, 2026
a881800
fix: 工具调用失败时回传错误给 AI,不再直接退出
Mar 28, 2026
fb7d37d
Merge pull request #27 from huangdengdui/fix/no-interactive-tool-fail
JerryliDe Apr 2, 2026
8f85942
Merge pull request #26 from huangdengdui/fix/mcp-discover-fail
JerryliDe Apr 2, 2026
8d54a3c
Merge pull request #24 from huangdengdui/fix/replaceAll
JerryliDe Apr 2, 2026
60c53a3
Merge pull request #23 from huangdengdui/feat/add-code-reference-prompt
JerryliDe Apr 2, 2026
7b0c3b7
Merge pull request #22 from huangdengdui/fix/rename-help-str
JerryliDe Apr 2, 2026
22ff537
Merge pull request #21 from huangdengdui/feat/mermaid-diagram
JerryliDe Apr 2, 2026
623d67b
Merge pull request #18 from jiangmuran/opensource
JerryliDe Apr 2, 2026
981a357
Merge pull request #19 from jiangmuran/feature/cli-alias-report-history
JerryliDe Apr 2, 2026
74bc088
perf: add fast path + gate diagnostic logs in fixRequestContents (#32)
May 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
329 changes: 175 additions & 154 deletions README.md

Large diffs are not rendered by default.

26 changes: 19 additions & 7 deletions docs/build-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,18 @@ DeepCode/

### 1. 快速开发构建 / Quick Development Build

**用途 / Purpose**: 日常开发时使用,构建速度快,排除 VS Code 扩展
For daily development with faster build times, excluding VS Code extension
**用途 / Purpose**: 日常开发时使用,按需构建所需模块
For daily development with targeted builds

```bash
# 基础构建 / Basic build
npm run build # 仅构建 core 和 cli / Build only core and cli
npm run build # 构建全部模块 / Build core + cli + vscode-ui-plugin

# 仅构建 CLI / Build CLI only
npm run build:cli # 构建 core + cli / Build core + cli

# 仅构建 VS Code 插件 / Build VS Code plugin only
npm run build:plugin # 构建 vscode-ui-plugin / Build vscode-ui-plugin

# 开发版打包 / Development bundle
npm run bundle:dev # 开发版打包(快速)/ Development bundle (fast)
Expand Down Expand Up @@ -161,20 +167,22 @@ npm run env:test
### 日常开发 / Daily Development

1. **开始开发 / Start Development**

```bash
npm run dev # 启动开发模式 / Start development mode
```

2. **代码修改后 / After Code Changes**
```bash
npm run build # 快速构建验证 / Quick build verification
npm run build:cli # CLI 快速构建验证 / Quick CLI build verification
npm run lint # 检查代码质量 / Check code quality
npm test # 运行测试 / Run tests
```

### VS Code 扩展开发 / VS Code Extension Development

1. **准备扩展开发环境 / Prepare Extension Development**

```bash
npm install --workspace=packages/vscode-ui-plugin
```
Expand All @@ -188,6 +196,7 @@ npm run env:test
### 发布准备 / Release Preparation

1. **完整构建和测试 / Complete Build and Test**

```bash
npm run preflight # 完整预检 / Complete preflight
npm run build:all # 完整构建 / Complete build
Expand Down Expand Up @@ -215,8 +224,8 @@ npm run env:test

### 性能优化 / Performance Optimization

- ⚡ **默认构建排除 VS Code 扩展以提升速度** / Default build excludes VS Code extension for speed
- 🎨 **需要完整功能时使用 `INCLUDE_VSCODE_PLUGIN=true`** / Use `INCLUDE_VSCODE_PLUGIN=true` when complete functionality is needed
- ⚡ **使用 `build:cli` 获得更快的日常构建** / Use `build:cli` for faster daily builds
- 🎨 **需要完整功能时使用 `npm run build`** / Use `npm run build` for full builds
- 🔄 **CI/CD 环境建议使用完整构建** / Recommend complete build for CI/CD environments

## 📚 相关文档 / Related Documentation
Expand All @@ -233,17 +242,20 @@ npm run env:test
### 新团队成员快速上手 / Quick Start for New Team Members

1. **克隆项目 / Clone Project**

```bash
git clone <repository-url>
cd DeepCode
```

2. **安装依赖 / Install Dependencies**

```bash
npm install
```

3. **验证环境 / Verify Environment**

```bash
npm run build
npm test
Expand All @@ -263,4 +275,4 @@ npm run env:test

---

*最后更新 / Last Updated: 2024-09-25*
_最后更新 / Last Updated: 2024-09-25_
6 changes: 6 additions & 0 deletions docs/cli/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ Slash commands provide meta-level control over the CLI itself.
- **`/help`** (or **`/?`**)
- **Description:** Display help information about Gemini CLI, including available commands and their usage.

- **`/report`**
- **Description:** Generate a diagnostic report for sharing. Copies to clipboard by default.

- **`/history`**
- **Description:** Show recent input history. Supports `--limit`, `--type`, and search terms.

- **`/mcp`**
- **Description:** List configured Model Context Protocol (MCP) servers, their connection status, server details, and available tools.
- **Sub-commands:**
Expand Down
12 changes: 12 additions & 0 deletions docs/cli/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ In addition to a project settings file, a project's `.gemini` directory can cont
- **Default:** `false`
- **Example:** `"vimMode": true`

- **`commandAliases`** (object):
- **Description:** Defines slash command aliases. Keys are alias names, values are command strings. Values may include subcommands and default arguments.
- **Default:** `{}`
- **Example:**
```json
"commandAliases": {
"d": "doctor",
"rep": "report --full",
"mem": "memory show"
}
```

- **`sandbox`** (boolean or string):
- **Description:** Controls whether and how to use sandboxing for tool execution. If set to `true`, Gemini CLI uses a pre-built `gemini-cli-sandbox` Docker image. For more information, see [Sandboxing](#sandboxing).
- **Default:** `false`
Expand Down
Loading