Skip to content

Dev#25

Closed
rensumo wants to merge 4 commits intomainfrom
dev
Closed

Dev#25
rensumo wants to merge 4 commits intomainfrom
dev

Conversation

@rensumo
Copy link
Copy Markdown

@rensumo rensumo commented May 9, 2026

No description provided.

hpylsy and others added 4 commits May 9, 2026 14:02
Resolves #23

## Health Status Tracking (recent_requests)

Add per-auth request success/failure tracking via a 20-bucket ring buffer
(10-minute intervals, 200-minute sliding window). The /v0/management/auth-files
endpoint now returns 'success', 'failed', and 'recent_requests' fields for each
auth entry, enabling the management panel to render health status indicators
(red/green/yellow bars).

Changes:
- sdk/cliproxy/auth/types.go: Add Success/Failed counters, recentRequestRing
  type, RecentRequestBucket export type, recordRecentRequest() and
  RecentRequestsSnapshot() methods to Auth struct.
- sdk/cliproxy/auth/conductor.go: Call recordRecentRequest() and increment
  counters in MarkResult(); preserve counters across auth reloads.
- internal/api/handlers/management/auth_files.go: Expose success, failed,
  and recent_requests in buildAuthFileEntry() response.

## Kiro Quota Query

Add a management API endpoint and background cache for querying Kiro (AWS
CodeWhisperer) usage quota per auth entry.

- GET /v0/management/kiro-quota?auth_index=<INDEX>: Returns usage breakdown,
  remaining quota, usage percentage, subscription info, and next reset time.
- kiro_quota field in /v0/management/auth-files: Each Kiro auth entry now
  includes cached quota info (plan, used, limit, remaining, percentage).
- Background refresher: Quota data is refreshed every 5 minutes for all
  active Kiro credentials.

Changes:
- internal/api/handlers/management/kiro_quota.go: GetKiroQuota handler,
  findKiroAuth, extractKiroTokenData, buildKiroQuotaStatus helpers.
- internal/api/handlers/management/kiro_quota_cache.go: Background quota
  cache with StartKiroQuotaRefresher goroutine.
- internal/api/server.go: Register /kiro-quota route and start refresher.
feat: add auth health status tracking and Kiro quota query
… kimi/joycode tool schemas

- Add codebuddy thinking provider (reasoning_effort format) for codebuddy and codebuddy-ai
- Register codebuddy/codebuddy-ai in thinking pipeline (apply, strip, validate)
- Update deepseek-v4-flash thinking levels to [high, max], remove unsupported IMAGE modality
- Fix joycode streaming: strip SSE data: prefix before TranslateStream to avoid double prefix
- Add CleanupOrphanedRequiredInTools for kimi/joycode to remove orphaned required entries in tool schemas
- Update docker-compose.yml image to ghcr.io/ve-ria/cli-proxy-api-plus:latest
@rensumo rensumo closed this May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants