Skip to content

feat: List the team's roles - #28

Merged
mrsxl merged 1 commit into
mainfrom
feat/role-list
Aug 27, 2026
Merged

mrsxl merged 1 commit into
mainfrom
feat/role-list

Conversation

@mrsxl

@mrsxl mrsxl commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What

memorylake role list — the discoverability gap的另一半:member / invitation 命令要求 --role,此前 CLI 无法告诉用户合法取值。

memorylake role list   # built-ins first, then this team's custom roles

Reads GET /admin/v1/roles (apiservice#73). Fields surfaced verbatim: key / label / description / built_in / assignable / admin_grant_only / parent_role_key.

Tests

  • wire: pins GET /admin/v1/roles and the printed catalog
  • offline: role list requires login like every family
  • live: asserts built-in order, owner unassignable, admin behind the grant ceiling — self-arming: until apiservice#73 deploys the endpoint 404s, which the test reports and skips; any other failure still fails

⚠️ Do not tag a release until apiservice#73 is deployed — a released role list would 404 in production.

🤖 Generated with Claude Code

`role list` reads GET /admin/v1/roles: built-ins first with assignable /
admin_grant_only flags, then the team's custom roles. Live assertions
self-arm once apiservice#73 deploys; until then a 404 skips them loudly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mrsxl
mrsxl marked this pull request as ready for review August 27, 2026 11:12
@mrsxl
mrsxl merged commit f3356d9 into main Aug 27, 2026
6 checks passed
@mrsxl
mrsxl deleted the feat/role-list branch August 27, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant