···16161717var ErrNotAuthenticated = errors.New("not authenticated")
18181919-// DefaultScopes are requested for a CLI session. Rather than the broad
2020-// transition:generic scope (equivalent to an app password), we request
2121-// granular permissions scoped to all Tangled collections preemptively,
2222-// so future features don't require re-authentication. The rpc scopes are
2323-// needed for the PDS to mint service-auth JWTs for knot procedures.
1919+// DefaultScopes are requested for a CLI session. The rpc scopes are
2020+// needed for the PDS to mint service-auth JWTs for knot procedures. The
2121+// blob scope is required for uploading PR patch blobs to the PDS.
2422var DefaultScopes = []string{
2523 "atproto",
2624 "repo:sh.tangled.actor.profile",
···3533 "repo:sh.tangled.repo",
3634 "repo:sh.tangled.repo.issue",
3735 "repo:sh.tangled.repo.pull",
3636+ "blob:application/gzip",
3837 "rpc:sh.tangled.repo.create?aud=*",
3938 "rpc:sh.tangled.repo.delete?aud=*",
4039 "rpc:sh.tangled.repo.merge?aud=*",