Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.