Commit Graph
118 Commits
Author SHA1 Message Date
coso 2a7ed06d21 chore: bump version to 0.48.4 2026-01-30 01:31:09 +08:00
coso f34f120b83 chore: bump version to 0.48.3 2026-01-25 01:16:40 +08:00
coso 66ddc6ce70 chore: bump version to 0.48.2 2026-01-25 01:10:04 +08:00
coso a98fc91860 chore: bump version to 0.48.1 2026-01-25 01:06:53 +08:00
coso 2e41683134 fix: 修复后台线程调用 UI 导致的 macOS 崩溃问题
修复了在 tokio 后台线程中调用 macOS UI 操作导致的崩溃:
- 使用 run_on_main_thread() 将更新窗口创建操作调度到主线程
- 解决 "Must only be used from the main thread" 断言失败
- 修复测试代码中过时的 iflow 字段引用
- 更新版本号到 0.48.0
2026-01-22 12:37:23 +08:00
coso 89541bf38d feat: 升级到 v0.48.0 并更新 Aster 框架依赖
- 版本号从 0.47.4 升级到 0.48.0
- 更新 Aster Agent Framework 依赖从 v0.4.2 到 v0.4.3
- 切换到远程 GitHub 仓库依赖,支持 CI/CD 环境
- 保留本地开发路径配置注释,便于开发时切换
- 修复图像分析工具组件的 React 导入问题
- 格式化代码以符合项目规范
2026-01-18 21:30:20 +08:00
coso 6dd714f110 feat: 从 Provider API 获取模型列表 & 修复 UTF-8 切片 panic
主要更新:
- 新增从 Provider /v1/models API 获取模型列表功能
- 当本地模型注册表为空时自动从 API 获取
- 修复 OpenAI 协议中 UTF-8 字符串切片导致的 panic
- 统一 Provider ID 与 JSON 文件名一致
- 添加数据库迁移逻辑处理旧版 Provider ID
- 清理未使用的模块 (injection, proxy, resilience, telemetry)
- 重构 workspace crates 结构

版本: 0.47.4
2026-01-16 12:46:47 +08:00
coso 99453292a9 chore: prepare workspace migration and bump version to 0.47.3 2026-01-16 00:52:36 +08:00
coso f7cf0aff4c feat: add Apple notarization for macOS builds (v0.47.2) 2026-01-16 00:08:19 +08:00
cosoandClaude Opus 4.5 c9f1ba44a6 chore: bump version to 0.47.1
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 23:04:55 +08:00
coso 8ead6efdc6 fix: 添加缺失的 zustand 依赖 2026-01-15 21:08:40 +08:00
coso 7d743a99a9 fix: 升级 @tauri-apps/api 到 2.9.1 以匹配 tauri 版本 2026-01-15 19:23:16 +08:00
coso fa90fc1aa3 fix: 锁定 Tauri 插件版本以确保前后端一致 2026-01-15 19:11:14 +08:00
coso c8a6dd7a75 fix: 更新 @tauri-apps/plugin-dialog 到 v2.5.0 以匹配 Rust 端版本 2026-01-15 18:55:41 +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
cosoandClaude Opus 4.5 9789e7d8a8 feat: add provider environment variable sync and UI improvements
- Add updateProviderEnvVars function to sync Claude Code env vars
- Improve API Server page with provider selection and env var updates
- Update codex provider with better error handling
- Fix provider pool service credential lookup
- Format UI components with Prettier
- Fix test files for custom_models field

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 16:19:22 +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
lwmacct 9c59f9b2b1 feat: 添加 Vite web 开发模式 mock 系统
通过 Vite alias 拦截 @tauri-apps/* 导入,使用 mock 模块替代真实的 Tauri API,
使得 pnpm run dev 可以在浏览器中独立运行,无需启动 Tauri 后端。

主要变更:
- 新增 src/lib/tauri-mock/ 模块化 mock 系统
- 修复 vite.config.ts 的 ES 模块 __dirname 兼容性
- 移除旧的 src/lib/tauri-mock.ts 文件
- 更新 useTauri.ts 使用静态导入
- 添加 200+ Tauri 命令的 mock 实现
2026-01-11 22:40:20 +08:00
lwmacct ab9d802578 feat: 添加 Tauri Headless 模式支持
- 新增 src-tauri/tauri.conf.headless.json 配置文件
- 添加 pnpm run tauri:dev (GUI 模式)
- 添加 pnpm run tauri:dev:headless (Headless 模式)

Headless 模式下后端完全运行,但不显示 GUI 窗口,
前端可通过浏览器访问 http://localhost:1420
2026-01-11 22:05:31 +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
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