Commit Graph
85 Commits
Author SHA1 Message Date
coso b32bf2987e fix: 将 aster 依赖改为 git 仓库 2026-01-15 18:42:27 +08:00
coso 2e1d9c7cb9 chore: 移除 Qwen 和 iFlow 凭证管理,升级到 v0.47.0 2026-01-15 18:26:23 +08:00
coso 1f489126d8 chore: bump version to 0.46.0
- 修复 reasoning_content 字段缺失的编译错误
- 精简 README 为 AI Agent 创作工具平台
- 修复 lint 和格式错误
2026-01-15 02:13:58 +08:00
coso 20df0d2cd8 feat: v0.45.2 - 优化机器码历史记录和插件加载
- 机器码历史记录改为倒序显示(最新在前)
- 修复插件加载器全局变量名推断,自动添加 Plugin 后缀
- 添加更多插件的全局变量名映射
2026-01-13 13:47:17 +08:00
cosoandClaude Opus 4.5 9363bd9ba3 fix: 修复 provider_pool_credentials 表缺少 supported_models 列的问题
- 在 migrate_add_proxy_url_column 函数重建表时添加 supported_models 列
- 将 supported_models 的 ALTER TABLE 迁移移到 migrate_add_proxy_url_column 之后执行
- 更新版本号到 0.45.1

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 08:57:09 +08:00
coso 0cf5cd5c5d chore: bump version to 0.45.0 2026-01-13 02:29:07 +08:00
coso ae30af743f chore: bump version to 0.44.0 2026-01-12 01:33:45 +08:00
coso 7144cf771a chore: bump version to 0.43.0 2026-01-12 00:00:11 +08:00
coso 6e2033615c feat: 添加音效功能 (v0.42.0)
- 添加工具调用音效 (tool-call.mp3)
- 添加打字机音效 (typing.mp3)
- 在设置页面添加音效开关
- 创建 useSound hook 和 SoundProvider
2026-01-11 14:11:29 +08:00
coso 7d7f156234 chore: bump version to v0.41.0 2026-01-11 05:01:59 +08:00
cosoandClaude Opus 4.5 83c36747db chore: bump version to 0.40.0
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 01:24:47 +08:00
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
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 d321c621e1 chore: bump version to v0.34.0 and fix lint errors 2026-01-07 21:14:48 +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
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
cosoandClaude Sonnet 4.5 59cd4ecfbd feat: v0.27.0 - 重构 Agent 架构并新增 API Key Provider 管理系统
主要变更:
- 引入基于 Protocol 的 Agent 架构(支持 OpenAI/Anthropic/Kiro/Gemini)
- 新增 API Key Provider 管理系统,支持多种第三方 AI 服务商
- 重构流式响应处理,新增统一的 Stream 处理模块
- 新增协议转换器(Translator)模块,支持 Kiro 到 OpenAI/Anthropic 的转换
- 前端新增 API Key Provider 配置界面和导入/导出功能
- 新增 50+ AI 服务商图标支持
- 优化 Agent 工具调用显示和流式渲染
- 完善数据库 schema,新增 api_key_providers 表

技术细节:
- 重构 native_agent.rs,引入策略模式的 Protocol trait
- 新增 parsers 和 generators 模块处理不同协议的 SSE 流
- 新增完整的 API Key 验证和连接测试功能
- 改进前端 TypeScript 类型定义

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-01 03:59:58 +08:00
cosoandClaude Sonnet 4.5 74fa3202ce chore: v0.26.0 - 消除所有 Rust 编译警告
- 移除所有未使用的导入 (unused imports)
- 修复未使用的变量 (unused variables)
- 修复未使用的 mut 声明
- 修复 private_interfaces 警告
- 为有用但未使用的代码添加 #[allow(dead_code)] 属性
- 修复前端 TypeScript 未使用变量警告
- 更新版本号到 v0.26.0

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:50:38 +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
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 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 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
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 084c1a6a9a Merge branch 'main' into main 2025-12-22 20:09:51 +08:00
coso 0859a01ca8 v0.17.1: Flow Monitor 增强 - 窗口大小调整、搜索优化
- 添加窗口大小调整功能(紧凑、默认、大屏、超大屏、超宽屏、4K)
- 添加全屏切换功能
- 优化简单过滤搜索,支持搜索模型名称和提供商
- 修复下拉菜单背景透明问题
- 添加表达式模式搜索按钮
2025-12-22 19:44:55 +08:00
coso 32620e2d8d 修复测试用例并更新版本到 0.17.0
- 修复 test_e2e_flow_annotations 测试中的死锁问题
- 修复 test_e2e_flow_export 测试的断言错误
- 修复 test_e2e_flow_query_service 测试的搜索功能
- 所有端到端测试现在都通过 (5/5)
- 完整测试套件通过 (1157 个测试)
- 更新版本号从 0.16.0 到 0.17.0
2025-12-22 14:08:25 +08:00