Commit graph

314 commits

Author SHA1 Message Date
hex2077
2d317e0333 refactor(项目结构): 重构项目目录结构并优化代码组织
将常用工具函数移动到utils目录
重构提供商策略模式实现
新增docker-compose构建配置文件
优化UI配置选择器的样式和交互
重构代理工具和API管理模块
更新脚本路径和依赖引用
2026-01-10 18:19:06 +08:00
hex2077
4554a4cfd2 feat(ui): 重构前端UI组件并添加新功能
- 新增组件加载器实现动态加载HTML组件
- 重构导航功能,添加滚动到顶部功能
- 新增多个UI组件:header、sidebar、logs、usage等
- 实现移动端菜单响应式设计
- 优化DOM元素获取方式,使用延迟加载
- 新增系统监控模块和用量缓存功能
- 扩展静态文件服务支持/components路径
- 实现插件管理和系统API接口
- 添加配置上传和管理功能
- 完善认证和token管理机制
2026-01-10 15:53:04 +08:00
何夕2077
bf11211a77 Update VERSION 2026-01-09 22:46:26 +08:00
何夕2077
290fce9e73 Merge pull request #199 from tickernelz/fix-400-kiro
fix(kiro): preserve tool definitions when history contains tool calls
2026-01-09 22:36:11 +08:00
何夕2077
0ad739aade Merge pull request #202 from leonaii/main
feat(api-potluck): 插件 - API 大锅饭 - 升级 V1.0.1
2026-01-09 22:35:16 +08:00
leonai
7f6bf6f06b feat(api-potluck): 插件 - API 大锅饭 - 升级 V1.0.1
1. 新增用户凭证数据管理模块(user-data-manager.js),支持凭证关联、资源包计算和配置热更新
2. 实现资源包机制:每个健康凭证提供额外调用次数,支持有效期管理和自动过期清理
3. 新增系统配置API:支持动态调整默认限额、资源包次数和有效期
4. 新增批量操作API:批量应用限额和同步资源包状态到所有Key
5. 实现凭证健康检查:从主服务ProviderPoolManager同步凭证状态
6. 新增用户端API Key重置功能,支持数据自动迁移
7. 重构前端界面:采用GitHub风格深色主题,优化移动端响应式布局
8. 新增定时健康检查调度器,自动同步所有用户凭证状态
2026-01-09 21:47:47 +08:00
Zhafron Kautsar
f9428fa294 Merge remote-tracking branch 'aiclient/main' into fix-400-kiro 2026-01-09 06:17:15 -05:00
何夕2077
bc4b0225e7 Update VERSION 2026-01-09 18:49:16 +08:00
hex2077
20992289b0 Merge branch 'main' of https://github.com/justlovemaki/AIClient-2-API 2026-01-09 18:48:43 +08:00
hex2077
e797b4742a feat(插件系统): 实现插件管理功能
添加完整的插件管理系统,包括以下功能:
1. 插件列表展示与状态统计
2. 插件启用/禁用功能
3. 自动扫描插件目录生成默认配置
4. 插件管理界面和样式
5. 相关API接口实现
6. 多语言支持
7. 移除不再需要的公共API路径配置
2026-01-09 18:47:11 +08:00
Zhafron Adani Kautsar
49382bf96b Merge branch 'justlovemaki:main' into fix-400-kiro 2026-01-09 05:32:07 -05:00
Zhafron Kautsar
5342214c5a fix(kiro): preserve tool definitions when history contains tool calls
When conversation history includes tool usage but current request doesn't
provide tool definitions, reconstruct minimal tool specifications from
history to prevent API errors. This ensures continuity in multi-turn
conversations with tool calling.

- Extract tool names from historical tool uses
- Generate placeholder tool specs with empty schemas
- Only apply when history has tool calls but toolsContext is empty
- Remove obsolete Chinese comment
2026-01-09 05:13:15 -05:00
何夕2077
c982ffe725 Update VERSION 2026-01-09 18:03:47 +08:00
hex2077
d639077bde feat(plugin): 实现可插拔插件系统架构
重构API大锅饭功能为插件,新增插件管理器核心模块
支持插件生命周期管理、认证中间件、路由和钩子扩展
添加默认认证插件和API大锅饭插件
2026-01-09 18:02:56 +08:00
何夕2077
148b7b2114 Update VERSION 2026-01-09 14:46:12 +08:00
何夕2077
f9a5377fda Merge pull request #198 from leonaii/main
refactor(kiro): 优化流式响应立即发送message_start,移除contextUsagePercentage等待逻辑
2026-01-09 14:45:18 +08:00
leonai
876b92cc0e refactor(kiro): 优化流式响应立即发送message_start,移除contextUsagePercentage等待逻辑
1. 立即发送message_start和content_block_start事件,不再等待contextUsagePercentage
2. 使用estimateInputTokens预估输入token作为保底值
3. 移除bufferedEvents缓冲机制和messageStartSent状态标记
4. 简化content事件处理逻辑,直接yield而非条件判断
5. 移除contextUsagePercentage未收到时的错误抛出逻辑
6. 更新estimateInputTokens方法注释,标记为备用方案而非废弃
2026-01-09 14:41:54 +08:00
何夕2077
32fdcd482a Update VERSION 2026-01-09 13:27:36 +08:00
何夕2077
f4c2a903aa Merge pull request #195 from leonaii/main
fix(kiro): 修复批量导入请求缺少认证头的问题,出现401错误,已经回归验证。
2026-01-09 13:27:19 +08:00
Meo
2776adaa09 Merge branch 'justlovemaki:main' into main 2026-01-09 13:21:46 +08:00
leonai
76eb0f4bda fix(kiro): 修复批量导入请求缺少认证头的问题,出现401错误
1. 在 Kiro 批量导入 token 的 fetch 请求中添加认证头
2. 使用 window.apiClient.getAuthHeaders() 获取认证信息
3. 当 apiClient 不可用时回退到默认 Content-Type 头
2026-01-09 13:21:13 +08:00
何夕2077
4fcb9ddbc9 Update VERSION 2026-01-09 13:17:58 +08:00
hex2077
6f06998352 fix(antigravity-core): 修改忽略提示词的内容以提高清晰度
将忽略提示词从复杂格式改为更简洁直接的表述,使AI更容易理解并忽略前面的系统提示
2026-01-09 13:17:37 +08:00
何夕2077
7da9b8bc97 Update VERSION 2026-01-09 12:49:23 +08:00
何夕2077
e1d6920137 Merge pull request #194 from leonaii/main
feat(kiro): 添加 AWS SSO 凭据导入和批量导入流式进度功能
2026-01-09 12:47:35 +08:00
leonai
f6d456cdb4 feat(kiro): 添加 AWS SSO 凭据导入和批量导入流式进度功能
1. 新增 checkKiroCredentialsDuplicate 函数用于检测重复凭据
2. 批量导入支持 SSE 流式响应实时显示进度
3. 新增 importAwsCredentials 函数支持 AWS Builder ID 模式导入
4. 前端新增 AWS 凭据导入模态框,支持文件上传和 JSON 粘贴两种模式
5. 添加中英文国际化翻译支持
2026-01-09 12:38:40 +08:00
何夕2077
c3b1adfb6e Update VERSION 2026-01-09 00:31:30 +08:00
何夕2077
7ddbdd3355 Merge pull request #192 from kj1534/fix/antigravity-ignore-prompt
添加 [ignore] 标签让 AI 忽略 Antigravity 系统提示词
2026-01-08 23:46:11 +08:00
accx
54bdbc804c 添加 [ignore] 标签让 AI 忽略 Antigravity 系统提示词 2026-01-08 23:20:58 +08:00
何夕2077
acb0a1f30c Merge pull request #191 from tickernelz/fix-get-model-claude-protocol
feat(converters): add display_name field to model list responses
2026-01-08 21:29:29 +08:00
Zhafron Kautsar
60161fd2bc feat(converters): add display_name field to model list responses
Add display_name field to model list conversions across all converter strategies to improve model identification in API responses. ClaudeConverter and GeminiConverter now include display_name in their toOpenAIModelList methods, while OpenAIConverter adds ensureDisplayName method to guarantee the field exists for native OpenAI models.
2026-01-08 08:20:19 -05:00
何夕2077
3ac07f8c3c Update VERSION 2026-01-08 20:34:44 +08:00
何夕2077
cf9afd1016 Merge pull request #188 from leonaii/main
feat(api-potluck): 添加 API 大锅饭插件功能(彩蛋)
2026-01-08 20:31:04 +08:00
leonai
dbc98dae74 feat(api-potluck): 添加 API 大锅饭插件功能(彩蛋)
1. 新增 api-potluck 模块,支持 API 密钥认证和用量记录
2. 在 request-handler.js 中集成大锅饭路由和认证中间件
3. 在 common.js 中添加用量记录调用逻辑
4. 新增 potluck.html 静态页面和配置文件 api-potluck-keys.json
2026-01-08 20:15:59 +08:00
何夕2077
deb261d068 Update VERSION 2026-01-08 18:23:16 +08:00
何夕2077
2002ad4a16 Merge pull request #185 from leonaii/main
feat(kiro): 添加批量导入refreshToken功能
2026-01-08 18:22:51 +08:00
leonai
9411d7d315 feat(kiro): 添加批量导入refreshToken功能
1. 新增refreshKiroToken函数用于刷新单个token
2. 新增batchImportKiroRefreshTokens函数支持批量导入
3. 添加/api/kiro/batch-import-tokens接口端点
4. 实现批量导入UI模态框及实时统计功能
5. 添加中英文国际化翻译支持
2026-01-08 18:16:26 +08:00
何夕2077
1af02dbba9 Update VERSION 2026-01-08 16:48:57 +08:00
hex2077
26e1da1470 fix: 修复system_instruction到systemInstruction的转换并修正回调URL变量名
确保在请求体中正确处理system_instruction到systemInstruction的转换,同时修正回调URL变量名从localUrl到url以匹配实际使用场景
2026-01-08 16:48:30 +08:00
何夕2077
ae5fc1f5f7 Update VERSION 2026-01-08 13:45:58 +08:00
hex2077
e5255a4972 feat(界面): 添加KIRO账号购买链接及样式
在控制台头部添加KIRO账号购买链接,并为其设计渐变背景和悬停效果
2026-01-08 13:45:34 +08:00
hex2077
c84ac7df3f refactor(antigravity-core): 简化系统提示并改进系统指令处理逻辑
重构 ANTIGRAVITY_SYSTEM_PROMPT 使其更简洁
优化 ensureRolesInContents 函数以更好地处理不同模型的系统指令
2026-01-08 13:35:57 +08:00
何夕2077
d4e5a25c9d Merge pull request #180 from tickernelz/fix-kiro-token-count
refactor(claude-kiro): improve token counting accuracy using API contextUsagePercentage
2026-01-08 12:54:59 +08:00
Zhafron Adani Kautsar
114ef64d05 Merge branch 'main' into fix-kiro-token-count 2026-01-07 23:51:02 -05:00
何夕2077
944e493f74 Update VERSION 2026-01-08 12:47:12 +08:00
hex2077
2828166b18 fix(api): 修复401/400错误时的认证刷新逻辑并优化模型处理
为API调用和流式请求添加401/400错误时的认证刷新重试机制
修改antigravity-core中ensureRolesInContents方法,仅对非图像模型设置systemInstruction
2026-01-08 12:46:25 +08:00
Zhafron Kautsar
89bc0ee6f8 refactor(claude-kiro): improve token counting accuracy using API contextUsagePercentage
Replace client-side token estimation with server-provided contextUsagePercentage
for accurate input token calculation. This eliminates discrepancies between
estimated and actual token counts by using the API's native context window
measurement.

Key changes:
- Add contextUsage event parsing in AWS Event Stream buffer
- Calculate input tokens from contextUsagePercentage in both streaming and
  non-streaming responses
- Deprecate estimateInputTokens() method in favor of API-provided metrics
- Import CLAUDE_DEFAULT_MAX_TOKENS for context window calculations
- Add fallback error handling when contextUsagePercentage is not received
- Fix code formatting and whitespace consistency throughout the file
2026-01-07 23:39:07 -05:00
何夕2077
509e9b73a7 Merge pull request #179 from ZqinKing/main
修复 Antigravity 渠道对系统提示词的校验
2026-01-08 12:28:31 +08:00
ZqinKing
30d2215d09 修复 Antigravity 渠道对系统提示词的校验
详细修改内容:
1. 添加 ANTIGRAVITY_SYSTEM_PROMPT 常量,包含完整的身份描述和指南。
2. 在 geminiToAntigravity 函数中添加 requestType: 'agent' 字段。
3. 在 ensureRolesInContents 函数中强制设置系统提示词,覆盖用户配置。
4. 调整 Base URL 降级顺序,优先使用 Sandbox 环境。
2026-01-08 12:12:07 +08:00
何夕2077
ea2ae2169c Update VERSION 2026-01-08 00:07:17 +08:00