Skip to content

Commit cffeece

Browse files
author
catlog22
committed
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
1 parent de3dd04 commit cffeece

5 files changed

Lines changed: 18 additions & 9 deletions

File tree

.claude/commands/issue/convert-to-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Converts various planning artifact formats into issue workflow solutions with in
5555
| Get issue | `ccw issue status <id> --json` | Read issues.jsonl directly |
5656
| Create issue | `ccw issue init <id> --title "..."` | Write to issues.jsonl |
5757
| Bind solution | `ccw issue bind <id> <sol-id>` | Edit issues.jsonl |
58-
| List solutions | `ccw issue solutions --issue <id> --brief` | Read solutions/*.jsonl |
58+
| List solutions | `ccw issue solution <id> --brief` | Read solutions/*.jsonl |
5959

6060
## Solution Schema Reference
6161

.claude/skills/issue-manage/SKILL.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ ccw issue task <id> --title "..." # Add task
3333
ccw issue bind <id> <solution-id> # Bind solution
3434
ccw issue update <id> --status completed # Complete & auto-archive
3535

36+
# Solution queries
37+
ccw issue solution <id> # List solutions for a single issue
38+
ccw issue solution <id> --brief # Brief: solution_id, files_touched, task_count
39+
ccw issue solutions # Batch list all bound solutions
40+
ccw issue solutions --status planned --brief # Filter by issue status
41+
3642
# Queue management
3743
ccw issue queue # List current queue
3844
ccw issue queue add <id> # Add to queue

.claude/skills/team-planex/roles/executor.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
| CLI Command | Purpose |
6262
|-------------|---------|
6363
| `ccw issue status <id> --json` | 查看 issue 状态 |
64-
| `ccw issue solutions <id> --json` | 加载 bound solution |
65-
| `ccw issue update <id> --status in-progress` | 更新 issue 状态为进行中 |
66-
| `ccw issue update <id> --status resolved` | 标记 issue 已解决 |
64+
| `ccw issue solution <id> --json` | 加载单个 issue 的 bound solution(需要 issue ID) |
65+
| `ccw issue update <id> --status executing` | 更新 issue 状态为执行中 |
66+
| `ccw issue update <id> --status completed` | 标记 issue 已完成 |
6767

6868
## Execution Method Resolution
6969

@@ -166,7 +166,7 @@ if (!issueId) {
166166
}
167167

168168
// Load solution plan
169-
const solJson = Bash(`ccw issue solutions ${issueId} --json`)
169+
const solJson = Bash(`ccw issue solution ${issueId} --json`)
170170
const solution = JSON.parse(solJson)
171171

172172
if (!solution.bound) {
@@ -190,7 +190,7 @@ const executor = resolveExecutor(task.description, taskCount)
190190
const codeReview = resolveCodeReview(task.description)
191191

192192
// Update issue status
193-
Bash(`ccw issue update ${issueId} --status in-progress`)
193+
Bash(`ccw issue update ${issueId} --status executing`)
194194
```
195195
196196
### Phase 3: Implementation (Multi-Backend Routing)
@@ -297,7 +297,7 @@ if (codeReview !== 'Skip') {
297297
}
298298

299299
// Update issue status to resolved
300-
Bash(`ccw issue update ${issueId} --status resolved`)
300+
Bash(`ccw issue update ${issueId} --status completed`)
301301
```
302302
303303
### Code Review (Optional)

.claude/skills/team-planex/roles/planner.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@
4848

4949
| CLI Command | Purpose |
5050
|-------------|---------|
51-
| `ccw issue new --text '...' --json` | 从文本创建 issue |
51+
| `ccw issue create --data '{"title":"..."}' --json` | 从文本创建 issue |
5252
| `ccw issue status <id> --json` | 查看 issue 状态 |
53-
| `ccw issue solutions <id> --json` | 查看已绑定 solution |
53+
| `ccw issue solution <id> --json` | 查看单个 issue 的 solutions(需要 issue ID) |
54+
| `ccw issue solutions --status planned --brief` | 批量列出所有已绑定 solutions(跨 issue) |
5455
| `ccw issue bind <id> <sol-id>` | 绑定 solution 到 issue |
5556

5657
### Skill Capabilities

ccw/src/commands/issue.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3120,6 +3120,8 @@ export async function issueCommand(
31203120
console.log(chalk.gray(' solution <id> List solutions for issue'));
31213121
console.log(chalk.gray(' solution <id> --brief Brief: solution_id, files_touched, task_count'));
31223122
console.log(chalk.gray(' solution <id> --data \'{...}\' Create solution (auto-generates ID)'));
3123+
console.log(chalk.gray(' solutions [--status <s>] [--brief] Batch list bound solutions across issues'));
3124+
console.log(chalk.gray(' task <issue-id> [task-id] --title Add or update task in solution'));
31233125
console.log(chalk.gray(' bind <issue-id> [sol-id] Bind solution'));
31243126
console.log(chalk.gray(' update <issue-id> --status <s> Update issue status'));
31253127
console.log(chalk.gray(' update --from-queue [queue-id] Sync statuses from queue (default: active)'));

0 commit comments

Comments
 (0)