singularity-forge/packages/pi-coding-agent/src
mikkihugo dc0db3868a
Add per-family proxy provider priority system with TUI and 429 fallback
- model-registry: export PROXY_FAMILY_PRIORITY and GLOBAL_PROVIDER_FALLBACK
  constants; add getModelsForProxy() returning candidates ordered by family
  priority then global fallback (opencode → opencode-go → openrouter →
  ollama-cloud); add getModel() convenience wrapper
- proxy-server: add priorityOverrides option; handleChat iterates all
  candidates in priority order and falls through to the next on 429
- settings-manager: add ProxySettings type with providerPriority override
  map; add getProxyProviderPriority() / setProxyFamilyProvider() accessors
- settings-selector: add ProxyPrioritySubmenu — a two-level TUI submenu
  (family → provider) that dynamically generates entries from
  PROXY_FAMILY_PRIORITY; wired in interactive-mode with full callback

Family defaults: MiniMax→minimax, GLM→zai, Kimi→kimi-coding,
MiMo→global-fallback, Gemini/Gemma→google-gemini-cli, Claude→anthropic,
GPT/o-series→openai

https://claude.ai/code/session_013BwmqG3NuwwZY3vsUb4Y9Y

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-17 19:17:50 +02:00
..
cli Rename @sf-run/* → @singularity-forge/* package scope 2026-04-15 22:56:33 +02:00
core Add per-family proxy provider priority system with TUI and 429 fallback 2026-04-17 19:17:50 +02:00
modes Add per-family proxy provider priority system with TUI and 429 fallback 2026-04-17 19:17:50 +02:00
resources/extensions/memory Rename @sf-run/* → @singularity-forge/* package scope 2026-04-15 22:56:33 +02:00
tests refactor: update log prefixes and string values from gsd- to sf- namespace 2026-04-15 15:37:12 +02:00
types fix(gsd): align ADR-009 integration with type-safe builds 2026-04-14 20:46:46 -05:00
utils Add per-family proxy provider priority system with TUI and 429 fallback 2026-04-17 19:17:50 +02:00
cli.ts Rename @sf-run/* → @singularity-forge/* package scope 2026-04-15 22:56:33 +02:00
config.ts refactor: remove dead code (unused exports) (#1486) 2026-03-19 15:33:32 -06:00
index.ts Rename GSD→SF: complete rebrand from fork origin 2026-04-15 18:33:47 +02:00
main.ts Rename @sf-run/* → @singularity-forge/* package scope 2026-04-15 22:56:33 +02:00
migrations.ts refactor: remove dead code (unused exports) (#1486) 2026-03-19 15:33:32 -06:00