feat: 移除 CLI 工具使用文档中的流式输出和缓存相关内容,简化说明

This commit is contained in:
catlog22
2025-12-25 22:30:09 +08:00
parent 3b842ed290
commit 90852c7788
2 changed files with 0 additions and 29 deletions

View File

@@ -27,7 +27,6 @@ Available CLI endpoints are dynamically defined by the config file:
Bash({ command: "ccw cli -p '...' --tool gemini", run_in_background: true })
```
- **After CLI call**: Stop immediately - let CLI execute in background, do NOT poll with TaskOutput
- **View output later**: Use `ccw cli output <id>` to view cached execution results
## Code Diagnostics

View File

@@ -183,34 +183,6 @@ ASSISTANT RESPONSE: [Previous output]
**Tool Behavior**: Codex uses native `codex resume`; Gemini/Qwen assembles context as single prompt
### Streaming vs Caching
**Default behavior**: Non-streaming with full output caching (can retrieve later via `output` subcommand)
```bash
ccw cli -p "..." --tool gemini # Default: output cached, no streaming
ccw cli -p "..." --tool gemini --stream # Streaming: real-time output, no caching
```
| Mode | Flag | Output | Cached |
|------|------|--------|--------|
| Non-streaming (default) | (none) | After completion | ✅ Yes |
| Streaming | `--stream` | Real-time | ❌ No |
### Output Viewing
View cached execution output with pagination:
```bash
ccw cli output <execution-id> # View full output
ccw cli output <id> --offset 0 --limit 10000 # Paginated view
ccw cli output <id> --output-type stdout # Stdout only
ccw cli output <id> --raw # Raw content (for piping)
```
**Note**: `output` subcommand views execution results. `--cache` parameter injects context into prompt - different concepts.
---
## Prompt Template