fix: correct issue CLI endpoints across team-planex, commands, and help text

- team-planex/planner: fix `ccw issue new` → `ccw issue create --data`, `solutions` → `solution`
- team-planex/executor: fix `in-progress` → `executing`, `resolved` → `completed`, `solutions` → `solution`
- commands/issue/convert-to-plan: fix `solutions --issue <id>` → `solution <id>`
- issue-manage SKILL: add solution/solutions endpoint documentation
- issue.ts help text: add missing `solutions` and `task` subcommand entries
This commit is contained in:
catlog22
2026-02-16 12:43:58 +08:00
parent de3dd044b9
commit cffeece220
5 changed files with 18 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ Converts various planning artifact formats into issue workflow solutions with in
| Get issue | `ccw issue status <id> --json` | Read issues.jsonl directly | | Get issue | `ccw issue status <id> --json` | Read issues.jsonl directly |
| Create issue | `ccw issue init <id> --title "..."` | Write to issues.jsonl | | Create issue | `ccw issue init <id> --title "..."` | Write to issues.jsonl |
| Bind solution | `ccw issue bind <id> <sol-id>` | Edit issues.jsonl | | Bind solution | `ccw issue bind <id> <sol-id>` | Edit issues.jsonl |
| List solutions | `ccw issue solutions --issue <id> --brief` | Read solutions/*.jsonl | | List solutions | `ccw issue solution <id> --brief` | Read solutions/*.jsonl |
## Solution Schema Reference ## Solution Schema Reference

View File

@@ -33,6 +33,12 @@ ccw issue task <id> --title "..." # Add task
ccw issue bind <id> <solution-id> # Bind solution ccw issue bind <id> <solution-id> # Bind solution
ccw issue update <id> --status completed # Complete & auto-archive ccw issue update <id> --status completed # Complete & auto-archive
# Solution queries
ccw issue solution <id> # List solutions for a single issue
ccw issue solution <id> --brief # Brief: solution_id, files_touched, task_count
ccw issue solutions # Batch list all bound solutions
ccw issue solutions --status planned --brief # Filter by issue status
# Queue management # Queue management
ccw issue queue # List current queue ccw issue queue # List current queue
ccw issue queue add <id> # Add to queue ccw issue queue add <id> # Add to queue

View File

@@ -61,9 +61,9 @@
| CLI Command | Purpose | | CLI Command | Purpose |
|-------------|---------| |-------------|---------|
| `ccw issue status <id> --json` | 查看 issue 状态 | | `ccw issue status <id> --json` | 查看 issue 状态 |
| `ccw issue solutions <id> --json` | 加载 bound solution | | `ccw issue solution <id> --json` | 加载单个 issue 的 bound solution(需要 issue ID |
| `ccw issue update <id> --status in-progress` | 更新 issue 状态为行中 | | `ccw issue update <id> --status executing` | 更新 issue 状态为行中 |
| `ccw issue update <id> --status resolved` | 标记 issue 已解决 | | `ccw issue update <id> --status completed` | 标记 issue 已完成 |
## Execution Method Resolution ## Execution Method Resolution
@@ -166,7 +166,7 @@ if (!issueId) {
} }
// Load solution plan // Load solution plan
const solJson = Bash(`ccw issue solutions ${issueId} --json`) const solJson = Bash(`ccw issue solution ${issueId} --json`)
const solution = JSON.parse(solJson) const solution = JSON.parse(solJson)
if (!solution.bound) { if (!solution.bound) {
@@ -190,7 +190,7 @@ const executor = resolveExecutor(task.description, taskCount)
const codeReview = resolveCodeReview(task.description) const codeReview = resolveCodeReview(task.description)
// Update issue status // Update issue status
Bash(`ccw issue update ${issueId} --status in-progress`) Bash(`ccw issue update ${issueId} --status executing`)
``` ```
### Phase 3: Implementation (Multi-Backend Routing) ### Phase 3: Implementation (Multi-Backend Routing)
@@ -297,7 +297,7 @@ if (codeReview !== 'Skip') {
} }
// Update issue status to resolved // Update issue status to resolved
Bash(`ccw issue update ${issueId} --status resolved`) Bash(`ccw issue update ${issueId} --status completed`)
``` ```
### Code Review (Optional) ### Code Review (Optional)

View File

@@ -48,9 +48,10 @@
| CLI Command | Purpose | | CLI Command | Purpose |
|-------------|---------| |-------------|---------|
| `ccw issue new --text '...' --json` | 从文本创建 issue | | `ccw issue create --data '{"title":"..."}' --json` | 从文本创建 issue |
| `ccw issue status <id> --json` | 查看 issue 状态 | | `ccw issue status <id> --json` | 查看 issue 状态 |
| `ccw issue solutions <id> --json` | 查看已绑定 solution | | `ccw issue solution <id> --json` | 查看单个 issue 的 solutions需要 issue ID |
| `ccw issue solutions --status planned --brief` | 批量列出所有已绑定 solutions跨 issue |
| `ccw issue bind <id> <sol-id>` | 绑定 solution 到 issue | | `ccw issue bind <id> <sol-id>` | 绑定 solution 到 issue |
### Skill Capabilities ### Skill Capabilities

View File

@@ -3120,6 +3120,8 @@ export async function issueCommand(
console.log(chalk.gray(' solution <id> List solutions for issue')); console.log(chalk.gray(' solution <id> List solutions for issue'));
console.log(chalk.gray(' solution <id> --brief Brief: solution_id, files_touched, task_count')); console.log(chalk.gray(' solution <id> --brief Brief: solution_id, files_touched, task_count'));
console.log(chalk.gray(' solution <id> --data \'{...}\' Create solution (auto-generates ID)')); console.log(chalk.gray(' solution <id> --data \'{...}\' Create solution (auto-generates ID)'));
console.log(chalk.gray(' solutions [--status <s>] [--brief] Batch list bound solutions across issues'));
console.log(chalk.gray(' task <issue-id> [task-id] --title Add or update task in solution'));
console.log(chalk.gray(' bind <issue-id> [sol-id] Bind solution')); console.log(chalk.gray(' bind <issue-id> [sol-id] Bind solution'));
console.log(chalk.gray(' update <issue-id> --status <s> Update issue status')); console.log(chalk.gray(' update <issue-id> --status <s> Update issue status'));
console.log(chalk.gray(' update --from-queue [queue-id] Sync statuses from queue (default: active)')); console.log(chalk.gray(' update --from-queue [queue-id] Sync statuses from queue (default: active)'));