diff --git a/CHANGELOG.md b/CHANGELOG.md index 45607108..7b3daaae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -168,13 +168,19 @@ ccw core-memory cluster --dedup This release simplifies the `ccw tool exec edit_file` command for better usability. #### 🔄 Changed -- **Simplified edit_file**: Removed JSON input support, now uses parameter-based input only (`--path`, `--old`, `--new`) -- **Removed line mode**: Line operations now recommended via `sed` command -- **Updated tool-strategy.md**: Added sed as line operation alternative with usage examples +- **Simplified edit_file CLI**: Added parameter-based CLI input (`--path`, `--old`, `--new`) for easier command-line usage +- **Updated tool-strategy.md**: Added sed as alternative for complex line operations + +> **Note**: The `edit_file` MCP tool still fully supports both `line` mode and `edits` array for programmatic use. The CLI simplification only affects the `ccw tool exec` command interface. #### Usage ```bash +# CLI parameter mode (simplified) ccw tool exec edit_file --path "file.txt" --old "old text" --new "new text" + +# MCP tool still supports all modes +edit_file(path="f.js", mode="line", operation="insert_after", line=10, text="new line") +edit_file(path="f.js", edits=[{oldText: "a", newText: "b"}, {oldText: "c", newText: "d"}]) ``` ## [6.1.2] - 2025-12-09 diff --git a/README.md b/README.md index e329cb5e..59603fb9 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,8 @@ The CCW Dashboard (`ccw view`) provides: - ❓ **Help View**: Internationalized help documentation - 💻 **CLI Manager**: CLI execution history with session resume +> 📖 See [**Dashboard Guide**](DASHBOARD_GUIDE.md) and [**Dashboard Operations**](DASHBOARD_OPERATIONS_EN.md) for detailed documentation. + --- ## 🛠️ Command Reference @@ -260,6 +262,10 @@ CCW provides comprehensive documentation to help you get started quickly and mas - [**Examples**](EXAMPLES.md) - Real-world use cases and practical examples - [**FAQ**](FAQ.md) - Common questions and troubleshooting +### 🖥️ **Dashboard** +- [**Dashboard Guide**](DASHBOARD_GUIDE.md) - Dashboard user guide and interface overview +- [**Dashboard Operations**](DASHBOARD_OPERATIONS_EN.md) - Detailed operation instructions + ### 🏗️ **Architecture & Design** - [**Architecture Overview**](ARCHITECTURE.md) - System design and core components - [**Project Introduction**](PROJECT_INTRODUCTION.md) - Detailed project overview diff --git a/README_CN.md b/README_CN.md index 9d2f99a1..7ba6ea6a 100644 --- a/README_CN.md +++ b/README_CN.md @@ -126,6 +126,8 @@ CCW Dashboard (`ccw view`) 提供: - ❓ **帮助视图**: 国际化帮助文档 - 💻 **CLI 管理器**: CLI 执行历史与会话恢复 +> 📖 详见 [**Dashboard 用户指南**](DASHBOARD_GUIDE.md) 和 [**Dashboard 操作指南**](DASHBOARD_OPERATIONS.md)。 + --- ## 🛠️ 命令参考 @@ -252,6 +254,10 @@ CCW 提供全面的文档,帮助您快速上手并掌握高级功能: - [**示例**](EXAMPLES.md) - 真实世界用例和实践示例 (English) - [**常见问题**](FAQ.md) - 常见问题和故障排除 (English) +### 🖥️ **Dashboard** +- [**Dashboard 用户指南**](DASHBOARD_GUIDE.md) - Dashboard 界面概览和功能说明 +- [**Dashboard 操作指南**](DASHBOARD_OPERATIONS.md) - 详细操作步骤说明 + ### 🏗️ **架构与设计** - [**架构概览**](ARCHITECTURE.md) - 系统设计和核心组件 (English) - [**项目介绍**](PROJECT_INTRODUCTION.md) - 详细项目概览 diff --git a/ccw/src/commands/cli.ts b/ccw/src/commands/cli.ts index a9e44673..1de7e568 100644 --- a/ccw/src/commands/cli.ts +++ b/ccw/src/commands/cli.ts @@ -488,7 +488,7 @@ async function execAction(positionalPrompt: string | undefined, options: CliExec if (result.conversation.turn_count > 1) { console.log(chalk.gray(` Total: ${result.conversation.turn_count} turns, ${(result.conversation.total_duration_ms / 1000).toFixed(1)}s`)); } - console.log(chalk.dim(` Continue: ccw cli exec "..." --resume ${result.execution.id}`)); + console.log(chalk.dim(` Continue: ccw cli -p "..." --resume ${result.execution.id}`)); // Notify dashboard: execution completed notifyDashboard({ @@ -625,7 +625,7 @@ async function detailAction(conversationId: string | undefined): Promise { } } - console.log(chalk.dim(`\n Continue: ccw cli exec "..." --resume ${conversation.id}`)); + console.log(chalk.dim(`\n Continue: ccw cli -p "..." --resume ${conversation.id}`)); console.log(); }