25 lines
749 B
Markdown
25 lines
749 B
Markdown
|
|
# Task ID: 153
|
||
|
|
|
||
|
|
**Title:** CLI tasks accept and reject commands
|
||
|
|
|
||
|
|
**Status:** pending
|
||
|
|
|
||
|
|
**Dependencies:** 131, 149
|
||
|
|
|
||
|
|
**Priority:** medium
|
||
|
|
|
||
|
|
**Description:** Add mcpctl tasks accept and reject commands for human approval gate
|
||
|
|
|
||
|
|
**Details:**
|
||
|
|
|
||
|
|
In src/cli/src/commands/ add or extend:
|
||
|
|
1. mcpctl tasks accept NAME [--note TEXT] - call POST /tasks/:id/accept, triggers merge
|
||
|
|
2. mcpctl tasks reject NAME --note TEXT - call POST /tasks/:id/reject, note required
|
||
|
|
3. Resolve task name to id via API
|
||
|
|
4. Print result: merge URL on success, error message on failure
|
||
|
|
5. Accept should not require going to git - the CLI is the approval surface
|
||
|
|
|
||
|
|
**Test Strategy:**
|
||
|
|
|
||
|
|
Unit tests: test accept sends correct API call, test reject requires note flag, test output formatting.
|