1. 14 Mar, 2026 1 commit
  2. 12 Mar, 2026 9 commits
  3. 11 Mar, 2026 6 commits
  4. 09 Mar, 2026 3 commits
  5. 07 Mar, 2026 8 commits
  6. 05 Mar, 2026 7 commits
    • erio's avatar
    • erio's avatar
      feat: add quota limit for API key accounts · 05527b13
      erio authored
      - Add configurable spending limit (quota_limit) for apikey-type accounts
      - Atomic quota accumulation via PostgreSQL JSONB operations on TotalCost
      - Scheduler filters out over-quota accounts with outbox-triggered snapshot refresh
      - Display quota usage ($used / $limit) in account capacity column
      - Add "Reset Quota" action in account menu to reset usage to zero
      - Editing account settings preserves quota_used (no accidental reset)
      - Covers all 3 billing paths: Anthropic, Gemini, OpenAI RecordUsage
      
      chore: bump version to 0.1.90.4
      05527b13
    • erio's avatar
      fix: include upstream error details in usage API error response · 9117c2a4
      erio authored
      When FetchUsageWithOptions receives a non-200 response from the
      Anthropic API (e.g. 429 Rate Limited, 401 Unauthorized), the error
      was wrapped with fmt.Errorf which infraerrors.FromError cannot
      recognize, causing a generic "internal error" message with no details.
      
      Replace fmt.Errorf with infraerrors.New(500, "UPSTREAM_ERROR", msg)
      so the upstream error details (status code + body) are included in
      the 500 response message. The HTTP status remains 500 to avoid
      interfering with frontend auth routing (e.g. 401 would trigger
      JWT expiry redirect).
      9117c2a4
    • shaw's avatar
      33bae6f4
    • guoyongchang's avatar
    • guoyongchang's avatar
      fix: 修复 golangci-lint depguard 和 gofmt 错误 · 9a8dacc5
      guoyongchang authored
      
      
      将 redis leader lock 逻辑从 service 层抽取为 LeaderLocker 接口,
      实现移至 repository 层,消除 service 层对 redis 的直接依赖。
      Co-Authored-By: default avatarClaude Opus 4.6 <noreply@anthropic.com>
      9a8dacc5
    • guoyongchang's avatar
      feat: 支持基于 crontab 的定时账号测试 · 3a089242
      guoyongchang authored
      
      
      每个测试计划绑定一个账号和一个模型,按 cron 表达式定期执行测试,
      保存历史结果并在前端账号管理页面中提供完整的增删改查和结果查看功能。
      
      主要变更:
      - 新增 scheduled_test_plans / scheduled_test_results 两张表及迁移
      - 后端 service 层:CRUD 服务 + 后台 cron runner(每分钟扫描到期计划并发执行)
      - RunTestBackground 方法通过 httptest 在内存中执行账号测试并解析 SSE 输出
      - Redis leader lock + pg_try_advisory_lock 双重保障多实例部署只执行一次
      - REST API:5 个管理端点(计划 CRUD + 结果查询)
      - 前端 ScheduledTestsPanel 组件:计划管理、启用开关、内联编辑、结果展开查看
      - 中英文 i18n 支持
      Co-Authored-By: default avatarClaude Opus 4.6 <noreply@anthropic.com>
      3a089242
  7. 04 Mar, 2026 6 commits