Who can see it, in one line
Every repository starts private: a new repository, a new app and its
repository, a copy from a template, a migration, a person's fork of any
repository (forkBornAs in src/actions/repos.ts; the terminal's fork screen
says so before it forks), a spawned forge's fresh app and its copy of an app
the spawner does not own (its own code is no more public than the parent's),
and the preview of a private app's pull. Nothing is public until its owner
makes it so. A few doors are public by choice: the start call's app, a guest's
contribution fork, a crew member's working fork of a public repository, a
mirror of a public source, and a spawner's own public app.
test/private-by-default.test.ts lists every door named for making something,
and fails on a new one that is not listed. Each surface then says who can see
it in the same words, all read from audienceFor in src/core/audience.ts:
"audience": { "level": "private", "who": "owner", "sentence": "Private: only you and the crew." }
whois one word a client can branch on:owner(a person's private repository: its owner and their crew),members(an organization's private repository) oranyone(public). Thesentencesays the same for a person. It is namedaudience, notvisibility, becausevisibilityis already the"public" | "private"string clients read.- Web: the repository head shows the sentence beside the Private/Public badge.
- API:
GET /api/v1/repos/:owner/:namecarries it, and aPATCHthat changesvisibilityreturns the new line in the same answer (the change is receipted asrepo.settings_updated). - MCP: the
repotool carries it;herecarries it on a repository page and on an app's link. On an app's link it is there only for someone who may read the repository: a public app can sit on a private repository, and its visitors are told nothing about that repository, nor its counts. - Terminal: the About card (
I) prints the sentence.whois not printed on its own there: the sentence already opens with it, and the terminal is read by people, not branched on.
A stranger asking about a private repository gets exactly the answer a missing
one gives, on the API and through here.
Tried by test/visibility-line.test.ts.