Commit Graph

12 Commits

Author SHA1 Message Date
Teknium 3310298a37 refactor(auth): share the loopback PKCE listener between OAuth flows
Move the S256 verifier/challenge pair, the loopback callback handler, the bind-first
listener and the serve-until-redirect loop out of auth_spotify into auth_device_flow so a
second loopback PKCE provider does not copy 80 lines of HTTP-server plumbing. Spotify's
behaviour and error codes are unchanged; only its private copies are deleted.
2026-09-12 22:07:41 -07:00
Siddharth Balyan cbcf7b72f7 feat(gateway): sign in with a Nous account from a chat (/login), one shared sign-in flow (#105261)
* refactor(auth): one sign-in flow behind SignInState, rendered by the CLI and the desktop

* feat(gateway): /signin signs the free tier into a Nous account from a DM

* feat(cli): chat surfaces name /signin as the sign-in verb

* fix(auth): review follow-ups for the shared sign-in flow and /signin

* fix(i18n): carry the /status free-tier line in every locale catalog

* refactor(cli): the chat sign-in command is /login

* fix(auth): durable override cleanup in the /login sweep, and the sign-in flow in its own modules
2026-09-11 03:45:33 +05:30
Teknium e83816a4d1 review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)
For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
2026-09-03 09:44:26 -07:00
Teknium 0a142eff58 refactor(hermes_cli): auth_oauth_grants/device_flow — fold guard pairs, single browser-open try path, list-comp log bits 2026-09-02 23:18:23 -07:00
Teknium 55a4b75347 refactor(hermes_cli): auth group B — squeeze body blanks, fold repeated AuthError ctor 2026-09-02 22:27:46 -07:00
Teknium 31e6c6fab4 refactor(hermes_cli): auth_nous/codex — unify refresh_nous_oauth_pure into from_state, codex login POST helper 2026-09-02 22:18:03 -07:00
Teknium 1ecf5e96f9 refactor(hermes_cli): auth group B — final closer hug pass 2026-09-02 21:55:47 -07:00
Teknium 856fd5613c refactor(hermes_cli): auth group B — pack signatures, move heal notice into _HealPass 2026-09-02 21:35:49 -07:00
Teknium 34a6f963f8 refactor(hermes_cli): auth_nous/codex/device_flow/oauth_grants — AST-neutral layout compaction 2026-09-02 21:02:27 -07:00
Teknium 40a09152f1 refactor(hermes_cli): compact auth_device_flow + split forked-OAuth heal into _HealPass phases 2026-09-02 20:09:37 -07:00
Teknium c990225fa0 refactor(auth): relocate single-consumer helpers next to their users; _decode_jwt_claims to constants leaf 2026-09-02 16:09:47 -07:00
Teknium d32014a4a6 refactor(auth): split OAuth-grant hygiene, device-flow helpers, model picker and Kimi/Z.AI detection into modules 2026-09-02 15:48:08 -07:00