feat: 新增 Kiro 适配器、OAuth 改进与多项功能增强

- 新增 Kiro provider 适配器(EventStream 协议解析、令牌管理、用量追踪)
- 重构 OAuth 账户管理与统一配额机制
- 重构 Handler 基类(CLI adapter/handler、请求构建器、流处理器)
- 增强缓存监控后端 API 与前端可视化
- 改进 Gemini 格式标准化器与请求头处理
- Antigravity/Codex 适配器更新,移除旧 metadata_collector
- 新增数据库迁移:proxy provider API keys
- 前端 UI 多项优化

Co-Authored-By: AAEE86 <[email protected]>
This commit is contained in:
fawney19
2026-02-09 01:05:48 +08:00
co-authored by AAEE86
parent e324ffdcd6
commit b34dd12863
82 changed files with 6498 additions and 840 deletions
+35
View File
@@ -169,6 +169,41 @@ export const {
listAffinities
} = cacheApi
// ==================== Redis 缓存分类管理 API ====================
export interface RedisCacheCategory {
key: string
name: string
pattern: string
description: string
count: number
}
export interface RedisCacheCategoriesResponse {
available: boolean
message?: string
categories: RedisCacheCategory[]
total_keys: number
}
export const redisCacheApi = {
/**
* 获取 Redis 缓存分类概览
*/
async getCategories(): Promise<RedisCacheCategoriesResponse> {
const response = await api.get('/api/admin/monitoring/cache/redis-keys')
return response.data.data
},
/**
* 清除指定分类的 Redis 缓存
*/
async clearCategory(category: string): Promise<{ status: string; message: string; category: string; deleted_count: number }> {
const response = await api.delete(`/api/admin/monitoring/cache/redis-keys/${category}`)
return response.data
}
}
// ==================== 缓存亲和性分析 API ====================
export interface TTLAnalysisUser {