Public: anyone can read this; the crew can change it.
A forge admin sets which Claude subscriptions each crew member of a repository may use, from the terminal, as the repository's Crew settings do #8142
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: the owner decides which account pays for which repository's crew without opening a browser. Today grants are written only by
POST /:owner/:name/settings/crew(src/web/pages/crew-settings.ts, throughsaveGrantsinsrc/web/pages/subscriptions.ts).Done looks like:
src/tui/screens/grants.ts, opened from the:palette asgrantswhile a repository is open (one line added tosrc/tui/screens/entries.ts), lists one row for everyone and one row per crew member of the repository. Each row shows which subscriptions it may use, read throughlistGrantsinsrc/core/subscriptions.ts. A row with no grant of its own says that the wider grant applies, in the page's words.spacetoggles the subscription under the cursor, and the row is saved whole throughsetGrants. Clearing every subscription removes the grant, as the page does.listCrewRoles, as the page uses), never any other agent id.test/tui-grants.test.ts, proves a toggle is saved, that clearing a row falls back to the wider grant, and that a non-admin and an agent are refused. Each test fails without the change.Files: src/tui/screens/grants.ts (new), src/tui/screens/entries.ts, test/tui-grants.test.ts Risks: a grant decides which account is billed. Never show a subscription's token, only its name and kind, as the Subscriptions screen does.