feat(musehub#193): muse hub collaborator accept
Adds the client-side counterpart to musehub's new POST /repos/{repo_id}/collaborators/accept endpoint. Before this, an invited collaborator's granted permission was permanently unusable -- accepted_at gated all non-owner writes (per musehub#131) but nothing could ever set it. Self-service: no target handle, accepts the invitation addressed to the caller's own authenticated identity. Idempotent.
Tests: no prior test file existed for muse/cli/commands/hub/collaborators.py at all -- added tests/test_cmd_hub_collaborator_accept.py covering flag registration (no positional arg, --json, --hub override), the correct POST path is called, JSON envelope output, and text-mode stderr confirmation. 6/6 passing. tests/test_app.py (27 tests) still green.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Semantic Changes
18 symbols
Files Changed
+1
~1
1185 in snapshot
0 comments
muse hub commit comment sha256:f0e66c9b996b798fb99b1fe8cc7ef318784f5285940729f796e0f789fab79ea5 --body "your comment"
No comments yet. Be the first to start the discussion.