Commit Graph
91 Commits
Author SHA1 Message Date
cosoandClaude Opus 4.5 b2289e4f16 chore: bump version to 0.39.0
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 13:13:10 +08:00
coso d67ca77a5f v0.38.0: 修复自定义 Provider 添加 API Key 问题,OAuth 插件标记为实验功能 2026-01-09 18:43:52 +08:00
cosoandClaude Opus 4.5 db8e916e90 feat: v0.37.0 - Terminal AI integration and Screenshot Chat
## Terminal AI Features
- Add Terminal AI panel with command execution support
- Add term_get_scrollback tool for reading terminal output history
- Add terminal tool with command approval workflow
- Add auto-execute mode for trusted commands
- Add duplicate command detection to prevent AI loops
- Improve command response format with clear success markers

## Screenshot Chat (Experimental)
- Add screenshot chat window for quick AI conversations
- Add global shortcut support for screenshot capture
- Add experimental settings page

## Code Quality
- Fix all compiler warnings with proper analysis
- Remove unused imports and dead code
- Add #[allow(dead_code)] for reserved/planned features
- Remove deprecated terminal-plugin from recommendations

## Other Changes
- Update model registry with new capabilities
- Improve config observer system
- Add webview panel position fields (reserved)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 10:05:54 +08:00
cosoandClaude Opus 4.5 9dbab22624 fix: allow 0.0.0.0 binding for LAN access (fixes #63)
Allow binding to 0.0.0.0 or :: to enable LAN access, with security
requirements:

1. Add is_valid_bind_host() and is_non_local_bind() helper functions
2. Allow 0.0.0.0 and :: as valid bind addresses
3. Require non-default API key when binding to all interfaces
4. Update validation in:
   - save_config command
   - hot_reload validation
   - bootstrap validation

Security: When using 0.0.0.0 or ::, users must set a custom API key
(not the default "proxy_cast") to prevent unauthorized access.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 21:29:42 +08:00
cosoandClaude Opus 4.5 c034c97be1 fix: Kiro Opus streaming response interruption (fixes #65)
Improve AWS Event Stream parsing to fix streaming response interruption:

1. Change JSON start detection to search for specific patterns instead of
   simple '{' character. AWS Event Stream contains binary headers that may
   have '{' in unexpected positions. Now searches for valid JSON patterns:
   - {"content": - text content
   - {"name": - tool call start
   - {"toolUseId": - tool use event
   - {"input": - tool input continuation
   - {"stop": - stop event
   - {"usage": - usage info
   - {"contextUsagePercentage": - context usage

2. Handle standalone {"input":...} events for tool call input continuation.
   Kiro may send tool calls in multiple events:
   - {"name":"xxx","toolUseId":"xxx"} - start
   - {"input":"..."} - input data (may be multiple)
   - {"stop":true} - end

3. Handle standalone {"stop":true} events that close active tool calls.

This mirrors the fix from AIClient-2-API project.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 19:48:24 +08:00
coso d8a9bf5a0d fix: 采用静态 UUID 方案生成 Machine ID(与 AIClient-2-API 保持一致)
- 移除时间变化因子,Machine ID 保持静态
- 统一优先级:uuid > profileArn > clientId > 默认值
- 新增 generate_machine_id_from_credentials_with_uuid 函数
- 更新版本号至 v0.36.1
2026-01-08 18:43:36 +08:00
cosoandClaude Opus 4.5 73c7906768 chore: bump version to v0.36.0
- Update version in package.json, Cargo.toml, and tauri.conf.json
- Fix ESLint errors: add missing React imports
- Fix unused variable warnings
- Fix react-hooks/exhaustive-deps issues
- Fix process.env for Vite environment
- Suppress react-refresh/only-export-components warnings
- Fix missing 'language' field in Config tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 14:19:33 +08:00
coso 843a6b7d8d Merge branch 'main' into feat/component-debug-overlay 2026-01-08 08:41:32 +08:00
coso fb5126f794 Merge pull request #77 from tjengbudi/main
Added: English translation
2026-01-08 08:40:18 +08:00
cosoandClaude Opus 4.5 b7d6dde8a6 chore: bump version to v0.35.0
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 08:32:10 +08:00
justMe 13e5b84616 Merge branch 'main' into main 2026-01-08 04:36:09 +07:00
budi 157db3fd78 fix: improve i18n translations and fix DOM replacement order
- Fixed 20 translation entries with concatenated words and incorrect formatting
- Fixed critical bug in DOM replacer that caused partial translations
- Sort translation patches by length (longest first) to prevent substring replacement issues
- Fixed TypeScript and ESLint errors
- Added comprehensive documentation of fixes
2026-01-08 04:32:05 +07:00
coso d321c621e1 chore: bump version to v0.34.0 and fix lint errors 2026-01-07 21:14:48 +08:00
mxrain 61d9c574a2 fix: 改进组件调试文件路径提示,说明仅开发模式可用 2026-01-07 21:02:41 +08:00
coso c905c2c4a9 chore: bump version to v0.33.0 2026-01-07 10:14:33 +08:00
cosoandClaude Opus 4.5 d29efe737c chore: bump version to v0.32.0
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 22:25:46 +08:00
cosoandClaude Opus 4.5 717abfd732 chore: bump version to v0.31.0
- Fix ProviderType::from_str to support 'anthropic' and 'gemini_api_key' mappings
- Fix ChatNavbar provider selection to respect server default provider
- Fix duplicate KeyRound export in plugin-components

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 10:34:08 +08:00
coso 4965f6d385 chore: bump version to v0.30.0 2026-01-06 00:26:16 +08:00
coso 5827087780 fix: Connect API Key 保存到 API Key Provider 系统而非 Provider Pool
- 修改 save_relay_api_key 命令使用 ApiKeyProviderService
- 自动创建自定义 Provider(使用 connect- 前缀 + 中转商 ID)
- 更新前端 useDeepLink hook 适配新的返回类型 SaveApiKeyResult
- 修复 API Key 显示在错误的凭证池标签页问题
2026-01-05 23:14:47 +08:00
cosoandClaude Opus 4.5 373ea7da8c feat: 添加初次安装引导向导
- 实现 5 步引导流程:欢迎 → 选择身份 → 选择插件 → 安装进度 → 完成
- 支持两种用户群体:程序员(预选 config-switch + flow-monitor)和普通用户
- 批量顺序安装选中的插件,显示实时进度
- 设置页添加"重新引导"按钮,可随时重新运行向导
- 重构浏览器拦截器和插件管理器代码

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 02:03:42 +08:00
cosoandClaude Opus 4.5 373ff8d2b5 feat: 支持 API Key Provider 在 /v1/chat/completions 和 /v1/messages 端点
- 添加 get_enabled_api_keys_by_type 方法按 Provider 类型获取 API Keys
- 添加 get_next_api_key_by_type 方法支持按类型轮询负载均衡
- 在 chat_completions 端点添加 API Key Provider 回退支持
- 在 anthropic_messages 端点添加 API Key Provider 回退支持
- 支持自定义 base_url 的 AnthropicKey 使用 OpenAI 兼容格式调用
- 添加 convert_openai_response_to_anthropic 响应转换函数
- 更新版本号到 v0.28.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 19:14:29 +08:00
coso 602fd07384 feat: add agent tool calling frontend integration (v0.25.0)
- Add StreamEvent types (TextDelta, ToolStart, ToolEnd, Done, Error)
- Add TokenUsage and ToolExecutionResult types
- Add ToolCallState for UI state management
- Create ToolCallDisplay component for tool execution status
- Create StreamingRenderer for real-time markdown rendering
- Create TokenUsageDisplay for token usage statistics
- Update MessageList to integrate tool calls and streaming
- Fix lint errors and format code
- Bump version to 0.25.0

Requirements: 9.1, 9.2, 9.3, 9.4, 9.5
2025-12-31 19:35:02 +08:00
coso 2166fe2841 feat: v0.24.0 - 重构应用布局,添加启动画面和全局图标侧边栏
主要更新:
- 添加启动画面 (SplashScreen) 显示 Logo
- 添加全局图标侧边栏 (AppSidebar) 类似 cherry-studio
- 更新窗口默认尺寸为 1280x800,最小尺寸 960x600
- 更新应用图标为新 Logo
- 重构 Agent 页面布局,简化组件结构
- 修复技能安装/卸载功能
- 修复 Claude 图片识别问题
- Skills 自动注入到 Agent System Prompt
2025-12-31 13:22:19 +08:00
coso f73254db03 feat: 添加右键菜单系统
- 安装 @radix-ui/react-context-menu 依赖
- 创建基础 ContextMenu UI 组件
- 为工具箱卡片添加右键菜单(启用/禁用、复制信息、删除)
- 为插件中心已安装列表添加右键菜单(启用/禁用、卸载)
- 为 Flow Monitor 请求记录添加右键菜单(复制、查看详情、清除)
- 为凭证池凭证卡片添加右键菜单(刷新、复制、删除)
- 为配置管理配置项添加右键菜单(编辑、复制、删除)
- 修复菜单背景透明问题

版本更新至 v0.23.0
2025-12-30 02:02:10 +08:00
coso 303db47193 feat: 插件系统完整实现 v0.22.0
- 实现插件安装器 (URL/本地/GitHub 安装)
- 实现插件 UI 渲染系统
- 支持 builtin 类型插件 (内置 React 组件)
- 支持 binary 类型插件 (外部二进制)
- MachineIdTool 迁移为插件
- 工具箱页面动态加载插件工具
- 推荐插件一键安装功能
- 插件卸载功能
- Release workflow 自动打包插件
2025-12-30 00:47:26 +08:00
cosoandClaude Opus 4.5 3f6479b1ad feat: 添加 AI Agent 功能和 aster-server 按需下载
主要功能:
- 新增 AI Agent 页面,支持多 Provider 对话
- aster-server 改为按需下载,不再打包在应用中
- 在 Extensions 页面添加二进制组件管理
- Agent 页面支持快速安装 aster-server

技术改进:
- 扩展 Plugin 类型,新增 Binary 类型
- 添加 GitHub Release 下载器
- 支持下载进度显示和 SHA256 校验
- 使用 gateway provider 通过 ProxyCast 代理请求

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 12:13:57 +08:00
cosoandClaude Opus 4.5 fc3741636f chore: 发布 v0.20.5
## 🎉 Release v0.20.5

### ✨ 新功能

1. **Linux ARM64 平台支持** (#54)
   - 添加 `aarch64-unknown-linux-gnu` 构建目标
   - 支持树莓派、ARM 服务器等设备
   - 发布 `.deb` 和 `.AppImage` ARM64 安装包

### ⚡ 性能优化

2. **Kiro Token 刷新机制优化** (#48)
   - 使用 TokenCacheService 智能缓存
   - 首次调用:~1-3 秒(刷新 token)
   - 后续调用:<10ms(使用缓存)
   - 性能提升:**99%+**

### 🔧 配置优化

3. **移除 CI Build Check**
   - 避免重复检查(本地 pre-commit 已覆盖)
   - 减少 GitHub Actions 运行成本
   - 避免因非关键警告导致 CI 失败

### 🐛 Bug 修复

4. **Windows 平台编译错误修复**
   - 修复 Registry API 类型转换问题
   - 添加必要的错误类型变体
   - 解决 64 位系统兼容性问题

5. **测试文件 Clippy 警告修复**
   - 使用数组替代 Vec
   - 优化错误处理逻辑
   - 修复字符串安全处理

### 📦 支持平台

- ✅ macOS (Apple Silicon + Intel)
- ✅ Windows (64-bit)
- ✅ Linux x64
- ✅ **Linux ARM64 (新增)**

### 🔗 相关 Issue

- Closes #48 - Kiro token 刷新性能问题
- Closes #54 - Linux ARM64 支持请求

---

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 00:30:59 +08:00
coso 593f8d7ecc fix: 修复凭证导入可能导致的崩溃问题 (Fixes #47)
- 修复字符串切片可能在 UTF-8 边界 panic 的问题
- 修复 machine_id 切片可能越界的问题
- 添加更详细的日志记录以便调试
- 版本更新至 0.20.4
2025-12-28 00:05:52 +08:00
coso 5840d5b1b4 fix: 添加 web_search 工具支持,修复 Claude Code 联网搜索返回结果为零的问题
- 修改 Tool 结构为枚举,支持 function、web_search、web_search_20250305 三种类型
- 添加 CWToolItem 枚举和 CWWebSearchTool 结构体
- 更新 openai_to_cw.rs 工具转换逻辑
- 更新相关转换器以适配新的 Tool 枚举

Fixes #49
2025-12-27 23:33:23 +08:00
cosoandClaude Opus 4.5 ed9d083889 chore: bump version to 0.20.2 and add live_sync unit tests
## 主要更新

### 测试改进
- 新增 Claude Code 配置同步单元测试(live_sync_tests.rs)
  - 原子写入测试(3个测试)
  - 认证冲突清理测试(5个测试)
  - Shell 配置写入测试(1个测试)
  - 总计 9 个单元测试,全部通过

### 代码改进
- 将 live_sync.rs 中关键函数改为 pub(crate) 以支持测试
  - write_json_file_atomic
  - create_backup
  - write_env_to_shell_config
  - clean_claude_auth_conflict

### 版本更新
- 版本号从 0.20.1 升级到 0.20.2

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 21:41:22 +08:00
coso 8f69b60fee chore: bump version to 0.20.1 2025-12-26 08:35:11 +08:00
cosoandClaude Sonnet 4 c380d5eee7 v0.20.0: 机器码管理工具 - 全新功能发布
✨ 新增功能
• 完整的跨平台机器码管理工具(Windows/macOS/Linux)
• 智能格式检测和验证(UUID/32位十六进制)
• 机器码生成、修改、备份和恢复功能
• 完整的操作历史记录追踪
• 图形化文件选择对话框
• 一键恢复原始机器码功能

🔧 技术实现
• Rust 后端服务,支持注册表和文件系统操作
• React 前端界面,完整的用户体验
• 跨平台兼容性和权限管理
• 历史记录持久化存储

🚀 用户体验
• 直观的图形化操作界面
• 智能权限检测和提示
• 清晰的错误处理和用户反馈
• 完善的恢复功能和备份机制

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2025-12-26 01:10:34 +08:00
cosoandClaude Opus 4.5 ba0af7ebf0 v0.19.0: 浏览器拦截器 - macOS 默认浏览器接管功能
新增功能:
- 浏览器拦截器模块,支持 macOS 系统默认浏览器接管
- 自动拦截系统 URL 请求并转发到 AI 客户端
- URL 历史记录管理与复制功能
- 系统状态监控面板
- 支持 Chrome/Firefox/Safari 等多浏览器检测与恢复

技术改进:
- 使用 tauri-plugin-deep-link 实现 URL scheme 注册
- 使用 tauri-plugin-single-instance 防止多实例
- Launch Services API 集成实现浏览器管理
- 修复速率限制测试的不稳定性问题

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 21:30:43 +08:00
coso 35b2636bce v0.18.0: 配置管理优化 - 外部配置变更检测与一键导入 2025-12-25 09:38:01 +08:00
coso 3d7d820f7a fix(flow-monitor): 修复 Kiro 请求 Token 显示为 0 的问题 (#44)
- 在 CWParsedResponse 中添加 estimate_tokens() 方法
- 基于 context_usage_percentage 估算 input_tokens (100% = 200k tokens)
- 基于响应内容长度估算 output_tokens (约 4 字符 = 1 token)
- 修复 api.rs 中所有调用 build_llm_response 时传入 None 的位置
- 版本更新至 0.17.12
2025-12-25 08:16:42 +08:00
coso 0231243be3 fix: 修复 Flow Monitor 头部布局和清理所有日志功能
- 修复头部标题和按钮挤在一起的问题,改用响应式布局
- 修复清理所有日志功能,使用未来时间点确保删除所有数据
- 版本更新至 0.17.11
2025-12-25 00:47:16 +08:00
coso 57f25cc4a4 feat: Gemini API Key 改为凭证池卡片式展示
- 将 gemini_api_key 从配置文件存储改为凭证池存储
- 支持使用次数、错误次数、最后使用时间统计
- 支持健康检查和启用/禁用切换
- 修复 CleanupDialog Modal 属性兼容问题
- 版本更新至 0.17.10
2025-12-25 00:33:29 +08:00
coso 35c5612d1f chore: bump version to 0.17.9 2025-12-25 00:12:10 +08:00
coso 4a64ae76c7 fix: 添加 vite-plugin-svgr 依赖并修复 SVG 类型声明 2025-12-25 00:00:45 +08:00
coso 0ce147d1c4 Merge pull request #42 from PeanutSplash/main
feat: 凭证池页面 UI 重构 + Provider 图标优化
2025-12-24 23:55:36 +08:00
coso 0d16c634d5 chore: bump version to 0.17.8 2025-12-24 23:53:04 +08:00
coso 9ca4dead61 chore: bump version to 0.17.7 2025-12-24 23:41:23 +08:00
PeanutSplash c7faf7866c Merge branch 'aiclientproxy:main' into main 2025-12-24 23:34:10 +08:00
PeanutSplash eb2b69c6bb feat: add Zhipu icon, custom scrollbar styles, and SVGR support
- Added a new SVG icon for Zhipu in the icons provider directory.
- Implemented custom scrollbar styles for better UI experience.
- Updated Vite configuration to include SVGR plugin for importing SVGs as React components.
- Added SVGR type definitions to Vite environment declarations.
2025-12-24 23:32:11 +08:00
coso e652f072d0 feat(claude-oauth): 添加 Cookie 自动授权功能
- 新增 Cookie 自动授权模式,用户可通过浏览器 sessionKey 完成授权
- 支持三种授权方式:Cookie 授权(默认)、OAuth 登录、文件导入
- 参考 claude-relay-service 实现

closes #38
2025-12-24 23:21:58 +08:00
coso 606a22fccd feat(claude-oauth): 添加 Cookie 自动授权功能
- 新增 Cookie 自动授权流程,使用 sessionKey 自动完成 OAuth
- 支持三种授权模式:Cookie 授权、OAuth 登录、文件导入
- 参考 claude-relay-service 实现

Closes #38
2025-12-24 22:58:15 +08:00
coso 05b2e24484 chore: bump version to 0.17.4 2025-12-24 13:39:37 +08:00
coso 100884781f fix: Windows 最小化到托盘无效 (#30)
- 添加 minimize_to_tray 配置字段到 Config 结构体
- 添加 on_window_event 处理器拦截窗口关闭事件
- 前端设置页面支持保存最小化到托盘选项
- 默认启用最小化到托盘功能

Closes #30
2025-12-23 02:29:49 +08:00
coso c1b1f87310 feat: 端点 Provider 配置 + 凭证卡片 UI 优化
- 实现客户端路由功能,根据 User-Agent 自动选择 Provider
- 新增客户端路由 tab 在路由管理页面
- 推荐配置支持客户端路由
- 优化凭证卡片布局,使用网格布局显示统计信息
- Token 有效期移到卡片主体显示
- 展开区域使用彩色背景卡片
2025-12-23 01:03:59 +08:00
coso 0859a01ca8 v0.17.1: Flow Monitor 增强 - 窗口大小调整、搜索优化
- 添加窗口大小调整功能(紧凑、默认、大屏、超大屏、超宽屏、4K)
- 添加全屏切换功能
- 优化简单过滤搜索,支持搜索模型名称和提供商
- 修复下拉菜单背景透明问题
- 添加表达式模式搜索按钮
2025-12-22 19:44:55 +08:00