Repository navigation
cli: read-only invite commands - #3067
Merged
Merged
Conversation
Adds `polis invite code list`, `invite wave list`, `invite list`, `invite export`, `invite status` and `conversation uuid` over the existing invite routes, with explicit output projections, a safe CSV export and the CLI's usual exit codes. The uuid request can mint a key on the server, so an uncertain outcome exits 7. No server change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s
The invite administration routes now answer 403 with dedicated codes; list them in the error catalog so clients report forbidden rather than a generic failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s
- The permission-lookup failure codes on the invite routes are site faults (HTTP 500), so they now report server_error instead of falling into the generic "auth" refusal. - Refusal advice matches the route: the conversation-code read is owner-only, while invite waves, invite lists and emailed invites also admit a moderator on the owner's site. - invite list and invite status accept any of a conversation's codes; the conversation read may echo a different one. - An invalid invite response reports outcome "rejected", since a response was received. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Observable change: new CLI commands only, with no server change:
polis invite code list,invite wave list,invite list,invite export --output,invite statusandconversation uuid, over the existing invite routes. The owner and moderator checks on those routes return 403 to everyone else.Outputs are explicit projections, CSV export writes only to the given path, and the uuid request is effect-aware (it can mint a key on the server), so an uncertain outcome exits 7. Tests:
bash scripts/test-polis-cli.sh(fmt, clippy -D warnings, full test suite including invite integration tests over loopback fixtures).🤖 Generated with Claude Code