Commit Graph
127 Commits
Author SHA1 Message Date
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 f0b8c74a98 fix: add image support for Kiro channel (fixes #60)
Add image handling for both Anthropic and OpenAI request translators
when converting to CodeWhisperer format.

Changes:
- Anthropic translator: Parse image blocks from message content and
  convert to CWImage format (format + base64 data)
- OpenAI translator: Add get_images() method to ChatMessage to extract
  images from data URLs in image_url content parts
- Both translators now pass images through ProcessedMessage to
  UserInputMessage for current message and history
- Fix unused imports in frontend files

Image format: { format: "jpeg", source: { bytes: "base64_data" } }

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 19:13:09 +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
mxrain 8ffe9d446d feat: 增强组件调试覆盖层功能 2026-01-07 23:45:41 +08:00
coso d321c621e1 chore: bump version to v0.34.0 and fix lint errors 2026-01-07 21:14:48 +08:00
mxrain e696d800cc fix: 改进组件调试 Fiber 遍历逻辑,优先显示用户组件 2026-01-07 21:11:52 +08:00
mxrain 61d9c574a2 fix: 改进组件调试文件路径提示,说明仅开发模式可用 2026-01-07 21:02:41 +08:00
mxrain 2b2122918c feat: 添加开发者设置页面和组件视图调试功能 2026-01-07 20:52:33 +08:00
Chiron c4c32f65ed Merge remote-tracking branch 'origin/main' into main 2026-01-07 10:28:20 +08:00
coso c905c2c4a9 chore: bump version to v0.33.0 2026-01-07 10:14:33 +08:00
Chiron 4884bee7f4 Merge branch 'main' into fix/model-registry-dedup 2026-01-07 10:03:16 +08:00
Chiron 2eed76306e fix: 修复模型注册表重复ID导致的唯一约束冲突
- 在 fetch_models_from_repo 中添加去重逻辑
- 使用 INSERT OR REPLACE 作为双重保险
- 优化 provider 类型映射和模型列表组件
2026-01-07 10:01:12 +08:00
cosoandClaude Opus 4.5 aec5550e14 feat: dynamic model loading for alias providers (Antigravity/Kiro)
## Backend Changes
- Add `get_provider_alias_config` and `get_all_alias_configs` Tauri commands
- Refactor AntigravityProvider to use fallback constants
- Export ANTIGRAVITY_MODELS_FALLBACK from providers module
- Update provider_pool_model to use shared model constant
- Add ProviderAliasConfig to model_registry

## Frontend Changes
- Modify ProviderModelSelector to handle alias providers independently
- Add aliasConfig state and loading logic
- Convert alias models to EnhancedModelMetadata format for display
- Add ModelAlias and ProviderAliasConfig TypeScript types
- Add getProviderAliasConfig/getAllAliasConfigs API functions

## Refactoring
- Remove routing components and commands (simplified architecture)
- Clean up unused router tests
- Update config observer pattern

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 07:23:58 +08:00
pengshiyuandClaude Opus 4.5 3a740969b9 feat: 添加 X-Provider-Id header 支持实现精确 Provider 路由
- 在 API 请求中添加 X-Provider-Id header 用于精确路由到指定 Provider
- 修复 Chat 专家模式使用 Deepseek 等自定义 Provider 时路由错误的问题
- 优化 toast 通知持续时间和去重机制
- 移除 App.tsx 中重复的 Toaster 组件

修改文件:
- api.rs: 解析 X-Provider-Id header 并支持 provider_id_hint 路由
- api_key_provider_service.rs: 添加 get_next_api_key_with_provider_info 方法
- protocols/mod.rs, openai.rs, anthropic.rs: Protocol trait 添加 provider_id 参数
- native_agent.rs, native_agent_cmd.rs: 传递 provider_id 到请求中
- useAgentChat.ts: 增加错误 toast 持续时间到 8 秒
- sonner.tsx: 默认 toast 持续时间从 3 秒增加到 5 秒

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 23:55:58 +08:00
735304a941 feat: improve toast notifications with deduplication and longer duration
- Remove duplicate Toaster component from App.tsx onboarding view
- Add toast id for deduplication to prevent stacking
- Extend error toast duration to 8 seconds for better readability
- Add console.error logging for debugging

Inspired by PR #71 from @perly6185-lab - thank you for the contribution!

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

Co-Authored-By: perly6185-lab <perly6185-lab@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 23:49:02 +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 9bc6b457d4 feat: add ClaudeFormStandalone and icons to plugin-components
- Export ClaudeFormStandalone component
- Add Cookie, FileJson, KeyRound icons
2026-01-06 10:23:03 +08:00
coso a92b626ce1 feat: 添加 GeminiFormStandalone 组件并更新 gemini-provider 版本到 v0.4.0
- 新增 GeminiFormStandalone 组件支持 OAuth 和 API Key 认证
- 在 plugin-components 中导出 GeminiFormStandalone
- 添加 KeyRound 图标导出
- 更新 OAuthPluginTab 中 gemini-provider 版本配置
- 重构 ProviderModelList 将工具函数移到单独文件
2026-01-06 10:10:05 +08:00
coso 1de6e9a58d chore: 更新 claude-provider 和 gemini-provider 版本到 v0.3.0 2026-01-06 09:18:37 +08:00
coso 36fdc86e0d fix: 添加缺失的图标导出到 plugin-components 2026-01-06 09:15:10 +08:00
coso 04045c79a1 chore: 更新 antigravity-provider 版本到 v0.4.0 2026-01-06 09:10:13 +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
coso 14fb5aa323 fix: 修复测试中缺少 models 字段 + 更新 GitHub Actions 权限 2026-01-04 22:23: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
liubu a793de37d9 feat: 增强 Antigravity Token 管理和 Provider Pool 健康监控机制
主要更新:
- 新增 Antigravity Token 验证和自动刷新机制
- 实现 Provider Pool 凭证健康状态监控
- 添加多个新 Gemini 模型支持(gemini-3-pro-image-preview, gemini-3-flash-preview 等)
- 优化前端 Agent Chat 和 API Server 页面交互
- 增加凭证错误处理和重新授权提示功能
2026-01-03 01:06:20 +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 bfc70505d5 feat: 插件中心迁移到导航栏 + 插件开发规范文档
- 添加插件中心到导航栏
- 从设置页扩展管理移除 Plugins tab
- 添加插件开发指南文档 (docs/content/06.development/5.plugin-development.md)
- 添加插件使用说明文档 (docs/content/02.user-guide/13.plugins.md)
2025-12-30 01:31:42 +08:00
coso 8a4c76417d refactor: 解耦 MachineIdTool 插件
- 移除 release workflow 中的插件打包步骤
- 更新插件下载 URL 指向 MachineIdTool 仓库
- 删除本地 plugins/machine-id-tool 目录
- 插件包现由 MachineIdTool 仓库独立管理
2025-12-30 00:56:38 +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 d419b8d18b ux: 安装 aster-server 后提示需要重启应用
安装成功后显示 toast 提示,告知用户需要重启应用才能启用 AI Agent 功能

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 16:19:08 +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 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
cosoandClaude Sonnet 4 1ae9c1f9fe fix: 修复配置检测和Claude Code配置问题
1. 修复配置检测逻辑
   - 优化前端配置比对算法,使用更宽松的匹配策略
   - 修复已存在配置被误判为外部配置的问题
   - 改进配置摘要显示,通用化主机名显示

2. 修复Claude Code配置模板
   - 移除错误的OPENAI_API_KEY和OPENAI_BASE_URL字段
   - Claude Code只使用ANTHROPIC_API_KEY和ANTHROPIC_BASE_URL
   - 确保配置模板符合Claude Code规范

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

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2025-12-26 08:31:41 +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 Sonnet 4 f02e119957 v0.19.0: 全新品牌视觉设计 - 现代化 3D logo 更新
🎨 新 logo 设计特点
- 现代 3D 风格的字母 "P"
- 蓝紫渐变配色(#4fc3f7 → #1a237e,#7c4dff → #e91e63)
- 纯黑背景,解决白边问题

✨ 更新内容
- 🖼️ 应用图标:所有平台(Windows/macOS/iOS/Android/Web)
- 🔲 托盘图标:所有状态(运行/停止/警告/错误)
- 🎯 SVG 图标:主图标 + 紧凑版,支持任意尺寸缩放
- 🏠 界面 logo:配置管理页面 + About 页面

🛠️ 技术实现
- 使用 Tauri CLI 自动生成所有平台图标
- SVG 矢量设计确保清晰度
- 统一的视觉设计语言

🎉 全平台品牌标识统一升级完成!

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

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2025-12-25 23:17:43 +08:00
cosoandClaude Opus 4.5 404287c58d fix: 修复日志清理和提供商显示问题 (#51)
问题修复:
1. 清除日志后列表仍有数据 - cleanup_flows 现在同时清理 file_store 和 memory_store
2. 提供商显示不正确 - 从模型名推断实际提供商(如 deepseek 模型显示 DeepSeek 而非 Kiro)

改动说明:
- flow_monitor_cmd.rs: 在 All/ByTime/ByCount 清理类型中添加内存存储清理
- memory_store.rs: 添加 cleanup_before() 方法支持按时间清理内存数据
- FlowList.tsx: 添加 inferProviderFromModel/getDisplayProvider 函数从模型名推断提供商

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 22:06:05 +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