feat(agent): maintainer CLI controls — maintain status/approve/reject/pause/resume (advances #784) - #852
Conversation
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
gittensory · advisory review Reviewed 3 changed file(s) — two independent AI reviewers. Changed files: Suggested action: ✅ Safe to merge — both reviewers found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Suggestions
Worth double-checking
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #852 +/- ##
=======================================
Coverage 96.68% 96.68%
=======================================
Files 108 108
Lines 14609 14609
Branches 5288 5288
=======================================
Hits 14125 14125
Misses 105 105
Partials 379 379 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…/pause/resume (advances #784) Phase 3 (#784) CLI slice: a `gittensory-mcp maintain` command for the agent auto-maintain layer, thin-proxying the existing maintainer APIs (the API enforces authorization; the CLI never decides locally): - maintain status --repo o/r -> GET the agent approval queue (#779) - maintain approve <id> --repo -> POST .../accept (execute the staged action) - maintain reject <id> --repo -> POST .../reject (cancel it) - maintain pause|resume --repo -> PUT settings { agentPaused } (kill-switch, #130) The CLI exposes approve|reject; it maps to the route's accept|reject decision verb. --json for machine output. Wired into the command dispatch + completion registry + a maintain help command. This is one incremental slice of #784 (the CLI deliverable) — the issue stays open; the dashboard slice is in flight via contributor PR #831, the MCP read tool is a separate PR. Tests: status (plain + json), approve/reject, pause/resume, input validation (--repo required, id required for approve, unknown subcommand), and help. Fixture server gains the queue + settings endpoints. Full suite green (2123).
1dac745 to
2e36530
Compare
One slice of #784 (this PR is incremental — #784 stays open).
What & why
Phase 3 (#784) — CLI control-surface slice. A
gittensory-mcp maintaincommand for the agent auto-maintain layer, thin-proxying the existing maintainer APIs (the API enforces authorization; the CLI never decides locally):maintain status --repo o/rGET .../agent/pending-actions— list the approval queue (#779)maintain approve <id> --repo o/rPOST .../{id}/accept— execute the staged actionmaintain reject <id> --repo o/rPOST .../{id}/reject— cancel itmaintain pause|resume --repo o/rPUT .../settings { agentPaused }— kill-switch (#130)The CLI exposes
approve/rejectand maps to the route'saccept/rejectdecision verb.--jsonfor machine output. Wired into the command dispatch + completion registry + amaintain --help.Scope
This is the CLI deliverable of the #784 control surface. The dashboard slice (audit feed) is in flight via the contributor PR #831; the MCP read tool is PR #851. #784 remains open until all three deliverables land. The MCP CHANGELOG regenerates at mcp-release time (not a per-PR gate).
Tests
status(plain + JSON),approve/reject,pause/resume, input validation (--reporequired, id required forapprove, unknown subcommand), and help. The CLI test fixture server gains the queue + settings endpoints. Full suite green (2123); CLI smoke +node --checkok.