[PR #254] [CLOSED] feat(credentials): 增强凭证解析容错能力并添加预验证机制 #321

Closed
opened 2026-02-27 07:18:57 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/254
Author: @leonaii
Created: 1/16/2026
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • 48734f0 feat(credentials): 增强凭证解析容错能力并添加预验证机制

📊 Changes

4 files changed (+172 additions, -7 deletions)

View changed files

📝 VERSION (+1 -1)
📝 src/providers/claude/claude-kiro.js (+55 -3)
📝 src/ui-modules/config-api.js (+1 -0)
📝 src/utils/credential-cache-manager.js (+115 -3)

📄 Description

  1. 新增从损坏 JSON 中提取关键凭证字段的恢复方法
  2. 凭证缓存管理器增加 token 有效性预检查,跳过无效凭证
  3. 配置 API 补充 POOL_SIZE_LIMIT 字段同步
  4. 优化日志输出,区分加载失败和跳过的凭证统计

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/justlovemaki/AIClient-2-API/pull/254 **Author:** [@leonaii](https://github.com/leonaii) **Created:** 1/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`48734f0`](https://github.com/justlovemaki/AIClient-2-API/commit/48734f0a48df61cb38495bc2349c5da3ed29548d) feat(credentials): 增强凭证解析容错能力并添加预验证机制 ### 📊 Changes **4 files changed** (+172 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `VERSION` (+1 -1) 📝 `src/providers/claude/claude-kiro.js` (+55 -3) 📝 `src/ui-modules/config-api.js` (+1 -0) 📝 `src/utils/credential-cache-manager.js` (+115 -3) </details> ### 📄 Description 1. 新增从损坏 JSON 中提取关键凭证字段的恢复方法 2. 凭证缓存管理器增加 token 有效性预检查,跳过无效凭证 3. 配置 API 补充 POOL_SIZE_LIMIT 字段同步 4. 优化日志输出,区分加载失败和跳过的凭证统计 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:18:57 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#321
No description provided.