1. 17 Mar, 2026 5 commits
  2. 16 Mar, 2026 32 commits
  3. 15 Mar, 2026 3 commits
    • erio's avatar
      fix: resolve golangci-lint issues (gofmt, errcheck) · 552a4b99
      erio authored
      - Fix gofmt alignment in admin_service.go and trailing newline in
        antigravity_credits_overages.go
      - Suppress errcheck for fmt.Sscanf in client.go GetMinimumAmount
      552a4b99
    • erio's avatar
      fix: remove ClaudeMax references not yet in upstream/main · 0d2061b2
      erio authored
      Remove SimulateClaudeMaxEnabled field and related logic from
      admin_service.go, and remove applyClaudeMaxCacheBillingPolicyToUsage,
      applyClaudeMaxNonStreamingRewrite, setupClaudeMaxStreamingHook calls
      from antigravity_gateway_service.go. These symbols are not yet
      available in upstream/main.
      0d2061b2
    • erio's avatar
      refactor: replace sync.Map credits state with AICredits rate limit key · 8a260def
      erio authored
      Replace process-memory sync.Map + per-model runtime state with a single
      "AICredits" key in model_rate_limits, making credits exhaustion fully
      isomorphic with model-level rate limiting.
      
      Scheduler: rate-limited accounts with overages enabled + credits available
      are now scheduled instead of excluded.
      
      Forwarding: when model is rate-limited + credits available, inject credits
      proactively without waiting for a 429 round trip.
      
      Storage: credits exhaustion stored as model_rate_limits["AICredits"] with
      5h duration, reusing SetModelRateLimit/isRateLimitActiveForKey.
      
      Frontend: show credits_active (yellow ) when model rate-limited but
      credits available, credits_exhausted (red) when AICredits key active.
      
      Tests: add unit tests for shouldMarkCreditsExhausted, injectEnabledCreditTypes,
      clearCreditsExhausted, and update existing overages tests.
      8a260def