85 Commits
Author SHA1 Message Date
coso 927b757b30 chore(release): bump version to 0.70.0 2026-02-21 21:58:33 +08:00
coso 7851c34bed release: v0.68.0
## Features
- 版本升级至 0.68.0

## Fixes
- 修复 EmptyState 组件标题排版问题
- 修复"开始生成"按钮文字换行问题
- 修复加载历史对话失败问题
  - 修复 parse_message_content 保留 ContentPart 结构
  - 修复 convert_agent_message 添加 reasoning_content 处理
  - 修复 WorkspaceType::from_str 命名冲突,重命名为 parse

## Code Quality
- 修复所有 clippy 警告
  - 修复 manual_flatten 警告
  - 修复 ptr_arg 警告(使用 &Path 替代 &PathBuf)
  - 修复 manual_clamp 警告
  - 修复 match_single_binding 警告
- 所有测试通过 (174 passed)
2026-02-16 20:58:55 +08:00
cosoandClaude Opus 4.6 b14dbe8271 feat: 实现 Agent 调度器系统
实现完整的 Agent 任务调度系统,支持定时任务、批量处理和后台持续运行。

## 新增功能

### 1. proxycast-scheduler Crate
- 创建独立的调度器 crate
- 实现 SchedulerTrait 接口
- 支持任务 CRUD 操作
- 任务持久化到 SQLite

### 2. 数据模型
- ScheduledTask: 调度任务结构
- TaskStatus: 任务状态枚举 (Pending, Running, Completed, Failed, Cancelled)
- TaskFilter: 任务查询过滤器

### 3. AgentScheduler
- 实现调度器核心逻辑
- 支持任务创建、查询、更新、删除
- 支持到期任务查询
- 自动状态管理

### 4. AgentExecutor
- 实现任务执行器
- 通过 CredentialBridge 自动选择凭证
- 支持多种任务类型:
  - agent_chat: Agent 对话任务
  - batch_process: 批量处理任务
  - scheduled_report: 定时报告任务
- 自动标记凭证健康状态

### 5. SchedulerService (Heartbeat Loop)
- 实现心跳循环服务
- 每 30 秒轮询到期任务
- 自动执行到期任务
- 支持优雅启动和关闭 (CancellationToken)
- 集成到 Tauri setup

### 6. 数据库集成
- 创建 scheduled_tasks 表
- 添加索引 (status, scheduled_at, provider_type)
- 自动初始化表结构

## 技术实现

- 使用 tokio::spawn 启动后台任务
- 使用 tokio::time::interval 实现定时轮询
- 使用 tokio::select! 监听取消信号
- 完整的错误处理和日志记录
- 所有模块包含单元测试

## 文件清单

新增:
- src-tauri/crates/scheduler/Cargo.toml
- src-tauri/crates/scheduler/src/lib.rs
- src-tauri/crates/scheduler/src/types.rs
- src-tauri/crates/scheduler/src/dao.rs
- src-tauri/crates/scheduler/src/scheduler.rs
- src-tauri/crates/scheduler/src/executor.rs
- src-tauri/src/app/scheduler_service.rs

修改:
- src-tauri/Cargo.toml (添加 scheduler 依赖)
- src-tauri/src/app/mod.rs (导出 scheduler_service)
- src-tauri/src/app/setup.rs (集成调度器服务)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 21:47:52 +08:00
coso 19e14c0f4c refactor: 拆分 crate 架构 - models/providers/config/middleware/plugin 迁移到子 crate
- proxycast-core: models, data, logger, errors, backends, connect, session_files,
  orchestrator, session(rate_limit/sticky), config, middleware, plugin
- proxycast-providers: providers, converter, streaming, translator, stream,
  session(SessionManager/signature_store)
- 主 crate 保留 Tauri 业务逻辑,通过 re-export 保持 API 兼容
- 版本号升级到 0.60.0
- 移除已删除的 useFlowEvents hook 导出
- 移除已废弃的 flow_monitor 端到端测试
2026-02-08 03:19:44 +08:00
coso e287fd3d39 release: v0.58.0 2026-02-07 02:01:04 +08:00
cosoandWarp 174ae555db perf: 优化 CI 构建时间 v0.57.0
- whisper-rs 改为可选依赖 (local-whisper feature)
- 禁用 LTO (CARGO_PROFILE_RELEASE_LTO=off)
- 增加 codegen-units 到 32
- 移除构建后清理步骤
- 统一内容创作系统增强

Co-Authored-By: Warp <agent@warp.dev>
2026-02-04 20:34:49 +08:00
cosoandClaude Opus 4.5 91fe7ff481 feat: v0.53.0 - 统一对话系统与内容创作增强
Features

统一对话系统
- 新增 useUnifiedChat Hook 支持多种对话模式 (Agent/General/Creator)
- 新增统一对话 API 封装 (unified-chat.ts)
- 新增 Chat 类型定义系统 (chat.ts)
- 支持流式响应和工具调用

内容创作增强
- 新增 Content Creator 文档和系统提示词
- 新增 writeFile 解析器支持画布输出
- 优化 General Chat 组件支持内容创作模式
- 支持多种创作主题 (社交媒体/海报/音乐/知识/规划/文档/视频/小说)

会话管理优化
- 增强 Aster Agent 状态管理
- 新增统一会话命令 (unified_chat_cmd)
- 新增 Chat DAO 数据访问层
- 优化数据库迁移脚本

Bug Fixes
- 修复 ESLint 警告和未使用变量问题
- 修复 React Hooks 依赖警告

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 00:01:34 +08:00
coso 562464f53f feat: 语音输入合并到截图输入框,版本更新至 0.49.0
- 将语音输入功能合并到截图输入框(pill-shaped 浮动栏)
- 添加麦克风按钮(32x32px)支持点击录音
- 支持录音、转写、润色三种状态显示
- 修复讯飞 ASR Broken pipe 错误
- 清理旧的语音输入 UI 文件
- 修复 DropdownMenu 组件支持受控模式
- 修复 StreamResponse 导出问题

注:部分编译错误待后续修复
2026-01-31 00:01:20 +08:00
coso 2a7ed06d21 chore: bump version to 0.48.4 2026-01-30 01:31:09 +08:00
coso e7385a2467 docs: 添加 AI Agent 开发指南和测试策略文档 2026-01-29 02:20:38 +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
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 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 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 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 303db47193 feat: 插件系统完整实现 v0.22.0
- 实现插件安装器 (URL/本地/GitHub 安装)
- 实现插件 UI 渲染系统
- 支持 builtin 类型插件 (内置 React 组件)
- 支持 binary 类型插件 (外部二进制)
- MachineIdTool 迁移为插件
- 工具箱页面动态加载插件工具
- 推荐插件一键安装功能
- 插件卸载功能
- Release workflow 自动打包插件
2025-12-30 00:47:26 +08:00
coso 05b2e24484 chore: bump version to 0.17.4 2025-12-24 13:39:37 +08:00
coso 084c1a6a9a Merge branch 'main' into main 2025-12-22 20:09:51 +08:00
coso 07f7f89469 feat: v0.16.0 - LLM Flow Monitor 功能
新增功能:
- 新增 LLM Flow Monitor 页面,实时监控 API 请求/响应
- 支持 Flow 列表查询、搜索、过滤
- 支持 Flow 详情查看(请求/响应内容)
- 支持 Flow 导出(JSON/HAR/Markdown/CSV)
- 支持 Flow 标注(收藏、标签、评论)
- 使用 Tauri 事件系统替代 WebSocket 实现实时更新
- 修复 FlowMonitor 状态在页面切换时丢失的问题

技术改进:
- 统一 FlowMonitor 实例,服务器和前端共享同一数据源
- 新增 flowEventManager 全局单例管理事件订阅
- 优化内存存储和文件存储的数据持久化
2025-12-21 19:49:10 +08:00
jiesenandClaude Opus 4.5 34d9f52789 merge: 合并上游 upstream/main 分支
- 解决 server 模块重构冲突(删除旧 server.rs,保留 server/ 目录结构)
- 解决 kiro.rs 设备指纹逻辑冲突(合并日志记录 + 凭证唯一 ID)
- 解决 CodexCredentials 字段缺失问题
- 解决 README.md 和 Cargo.lock 冲突
- 添加第三方 API Key 警告日志(UX 改进)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 17:18:18 +07:00
jiesen 98dcfd2482 docs: 更新运维与接口说明 2025-12-21 08:23:25 +07:00
jiesen 502096a208 文档: 更新默认端口与运维说明 2025-12-21 01:24:02 +07:00
coso aec9817178 docs: 更新 README - 移除敏感措辞、更新截图、添加 Ubuntu 支持 2025-12-20 23:31:47 +08:00
coso 816d293631 fix: 修复 /v1/messages 端点返回 Anthropic 标准错误格式
- 新增 verify_api_key_anthropic 函数,返回 Anthropic 标准错误格式
- 更新 /v1/messages、/:selector/v1/messages、/api/provider/:provider/v1/messages 端点使用新认证函数
- 优先检查 x-api-key header(Anthropic 标准)
- 错误响应格式: {"type": "error", "error": {"type": "authentication_error", "message": "..."}}

Fixes #3
2025-12-18 01:11:55 +08:00
coso a504ec88fb chore: bump version to v0.12.0
- 迁移 Vertex AI 和 Amp CLI 到凭证池页面
- 删除高级 Provider 导航和相关功能
- 支持编辑 API Key 凭证的 api_key 和 base_url
- 修复凭证卡片标签排版问题
- 移除硬编码的 OAuth 凭证,改为环境变量
2025-12-18 01:01:13 +08:00
coso 4c311d1dae fix(docs): update download link to GitHub tags 2025-12-17 13:16:44 +08:00
coso b76bb29ea5 fix(docs): rewrite homepage using HTML/Tailwind instead of Docus components 2025-12-17 13:15:38 +08:00
coso 267bbf75e3 feat: add documentation system with Docus framework
- Add complete documentation structure with 25+ markdown files
- Add introduction, user guide, provider configs, API reference
- Add troubleshooting and development guides
- Add disclaimer for legal use
- Add GitHub Actions workflow for auto-deploying docs to GitHub Pages
- Bump version to v0.11.0
2025-12-17 13:10:58 +08:00
coso c8abef58b8 feat: 实现本地工具版本检测功能
- AboutSection 组件调用 get_tool_versions 命令
- 自动检测 Claude Code、Codex、Gemini CLI 版本
- 显示安装状态和版本号
2025-12-15 13:20:49 +08:00
coso 6d2c8edc24 docs: add models page screenshot 2025-12-14 03:50:21 +08:00
coso b3bb2dae47 docs: add README with screenshots 2025-12-14 03:31:49 +08:00
coso e811b75468 feat: ProxyCast v0.1.0 - Tauri + React AI API Proxy
- Tauri 2.0 + React 18 + TypeScript + Tailwind CSS
- Provider management with Kiro credential loading
- Auto-detect credential file changes (5s interval)
- Dashboard with API testing panel
- Settings page for server configuration
- Logs viewer with real-time updates
- OpenAI compatible API endpoints (/v1/chat/completions, /v1/models)
- Anthropic compatible API endpoints (/v1/messages)
- Default port: 3001, API key: proxycast-key
2025-12-14 02:51:45 +08:00