Skip to content
refs

feat(cli): sign Git in to refs with the refs CLI

Aman Kumarcommitted Dec 3, 2026cbd6f3fparent 92bcf59

refs login now asks for the git scope. Git uses that sign-in, through the refs credential helper, for every repository the person can reach. In an agent clone the session token still comes first. logout and uninstall remove the credential helper, and the consent page names the extra access.

16 files changed · +133 −44
apps/backend/contract/actor.ts+1 −1
apps/backend/contract/views.ts+2 −0
apps/backend/identity.ts+14 −2
apps/backend/oauth.ts+1 −1
apps/backend/pushes.ts+1 −1
apps/backend/serve-git.ts+2 −1
apps/backend/test/presence.test.ts+11 −0
apps/cli/refs.mjs+41 −10
apps/cli/test/credential.test.ts+14 −0
apps/frontend/docs/cli.md+4 −4
apps/frontend/docs/connect-an-agent.md+1 −1
apps/frontend/docs/git.md+21 −5
apps/frontend/docs/glossary.md+1 −1
apps/frontend/docs/quickstart.md+17 −16
apps/frontend/routes/oauth-authorize.tsx+1 −0
workers/main.ts+1 −1