singularity-forge/packages/pi-coding-agent/src
Mikael Hugo ed47951960 feat(pi-ai): delegate google-gemini-cli auth + project to cli-core
Replace ~700 LOC of hand-rolled OAuth and onboarding with cli-core's own
getOauthClient + setupUser. The provider now reads ~/.gemini/oauth_creds.json
itself (via cli-core), refreshes tokens, and discovers the Code Assist
project + tier server-side — exactly like the real gemini CLI does.

- provider/google-gemini-cli.ts: drop apiKey={token,projectId} JSON
  plumbing; getCodeAssistServer() uses cli-core for everything
- delete utils/oauth/google-gemini-cli.ts (457 LOC: hand-rolled login,
  PKCE, callback server, discoverProject, onboardUser, tier handling)
- delete utils/oauth/google-oauth-utils.ts (201 LOC: only consumed by
  the deleted gemini-cli helper)
- oauth/index.ts: remove gemini-cli from BUILT_IN_OAUTH_PROVIDERS
  registry; google-gemini-cli is no longer SF-managed
- auth-storage.ts: update 3 error messages to direct users to the real
  gemini CLI for authentication instead of the removed /login command

Login UX: users authenticate with the real gemini CLI; we just consume
~/.gemini/oauth_creds.json. Whole-provider disable goes through manual
settings.json edit (per-model toggle still works in interactive UI).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 01:47:48 +02:00
..
cli sf snapshot: pre-dispatch, uncommitted changes after 47m inactivity 2026-04-30 20:21:12 +02:00
core feat(pi-ai): delegate google-gemini-cli auth + project to cli-core 2026-05-02 01:47:48 +02:00
modes feat: structured notification event model with metadata-first classification 2026-05-01 23:07:57 +02:00
resources/extensions/memory Rename @sf-run/* → @singularity-forge/* package scope 2026-04-15 22:56:33 +02:00
tests sf snapshot: pre-dispatch, uncommitted changes after 53m inactivity 2026-04-30 19:10:38 +02:00
types fix(gsd): align ADR-009 integration with type-safe builds 2026-04-14 20:46:46 -05:00
utils rip out antigravity from SF + pi-coding-agent UI/config layer 2026-04-19 10:39:36 +02:00
cli.ts port(pi-mono): disable undici body/headers idle timeouts on global dispatcher (refs ea90a6783) 2026-04-29 14:35:08 +02:00
config.ts refactor: remove dead code (unused exports) (#1486) 2026-03-19 15:33:32 -06:00
index.ts Harden SF model routing and harness contracts 2026-04-30 07:41:24 +02:00
main.ts Rename @sf-run/* → @singularity-forge/* package scope 2026-04-15 22:56:33 +02:00
migrations.ts fix(migrations): drop press-any-key block to avoid stdin wedge 2026-04-21 00:56:18 +02:00