Commit Graph
215 Commits
Author SHA1 Message Date
coso be4c4641c2 release: v0.52.0
## Features

### Artifact 系统优化
- 修复代码块点击后右侧面板无法显示代码的问题
- 移除重复的「生成中...」状态指示器(保留右下角)
- 优化代码块折叠卡片的点击交互,自动匹配对应 Artifact

### 会话历史持久化
- 新增 Aster SessionStore 实现,将会话数据存储到 ProxyCast 数据库
- 修复切换话题时无法加载历史消息的问题
- 统一 Aster 框架与 ProxyCast 的会话存储

### AI 自动生成标题
- 新增 AI 自动生成会话标题功能
- 使用本地代理服务器调用 AI 生成简洁标题
- 失败时自动回退到简单截断方式

### 流式状态优化
- 代码渲染器工具栏在流式生成时显示旋转加载图标
- Artifact 占位符卡片支持流式状态显示
- 统一流式状态的传递和显示逻辑

## Bug Fixes
- 修复 db.lock() 调用缺少错误处理的编译错误
- 修复 ArtifactToolbar 中未使用的变量警告
2026-02-02 15:38:00 +08:00
coso 2f3194a56e feat: v0.51.0 - Artifact System 集成与 Content Creator 增强
主要更新:
- 集成 Artifact 系统到聊天界面,支持代码块折叠和画布预览
- 新增 Novel/Script Canvas 类型支持
- 新增 Projects 模块(项目管理、内容编辑、记忆系统)
- 新增 Memory 系统(角色、大纲、风格指南、世界观)
- 新增 Reasoning Handler 支持思维链处理
- 优化 Workspace 管理和 Agent 类型定义
2026-02-02 01:15:54 +08:00
coso ef43d3e74d feat: v0.50.0 - 图片生成支持 base64 格式、语音功能优化、Smart Input 重构 2026-02-01 00:05:41 +08:00
coso f135398963 fix: 修复测试代码编译错误 - 添加缺失的 asr 字段和 import 2026-01-31 11:48:18 +08:00
coso 2fa51b49fe fix: 修复编译错误和 dead_code 警告 2026-01-31 09:54:17 +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 f34f120b83 chore: bump version to 0.48.3 2026-01-25 01:16:40 +08:00
coso c6f433f190 feat: complete plugin system refactoring and credential management improvements 2026-01-25 01:13:50 +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 2989ba2582 fix: 修复 Tauri 插件版本不匹配问题
- 将 tauri-plugin-dialog 从 v2.6.0 降级到 v2.5.0
- 确保与前端 @tauri-apps/plugin-dialog v2.5.0 版本匹配
- 修复 CI/CD 构建中的版本冲突错误
2026-01-18 21:54:05 +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 892cf892f0 fix: 移除 Flow Monitor 窗口尺寸选项
- 从 WindowSize 移除 flow_monitor()、ultra_wide()、four_k() 方法
- 从 WindowSizeOption::all_options() 移除 Flow Monitor 等选项,保留 4 个选项
- 移除 resize_for_flow_monitor 和 toggle_window_size 命令
- 更新 runner.rs 移除已删除命令的注册
- 更新 window.ts 移除相关 API 方法
- 更新 constants.ts 移除 flow_monitor 窗口尺寸偏好
- FlowMonitorPage 已在之前移除窗口尺寸菜单

Closes #126
2026-01-16 16:35:49 +08:00
coso eae4d2994a fix: 修复 tauri-action workspace 识别问题
将 [package] 中的 workspace 引用改为显式值,
解决 GitHub Actions 构建时找不到 workspace 的问题
2026-01-16 16:18:45 +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
cosoandClaude Opus 4.5 cd2e4b19f8 fix: 移除已删除的 Qwen 和 IFlow provider 引用
- 移除测试文件中对 ProviderType::Qwen 和 ProviderType::IFlow 的引用
- 移除 providers/tests.rs 中的 IFlowProvider 相关测试
- 更新 failover 测试使用 OpenAI 替代 Qwen
- 添加 ChatMessage 缺失的 reasoning_content 字段
- 启用 macOS 签名证书配置

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 22:59:30 +08:00
coso fa90fc1aa3 fix: 锁定 Tauri 插件版本以确保前后端一致 2026-01-15 19:11:14 +08:00
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
Chiron c2bbe89c30 fix(server): 修复监听地址配置不生效的问题 (#110)
## 问题描述
用户在 UI 中选择 127.0.0.1 或 0.0.0.0 作为监听地址,但服务器实际绑定到局域网 IP

## 修复内容
1. 移除 server/mod.rs 中的自动地址替换逻辑
2. 移除监听 0.0.0.0 时必须使用非默认 API Key 的限制
3. 修复 VPN 地址被错误显示在路由端点的问题
4. 前端选择监听地址后自动保存配置
5. 移除前端的安全提示信息
2026-01-13 20:02:00 +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 66fa3f28f5 feat: add session management module
Add comprehensive session management capabilities:
- Stable SessionId generation based on request content hash
- Global thoughtSignature caching
- Sticky session management (session-to-account mapping)
- Scheduling mode configuration
- Enhanced rate limiting with duration parsing and exponential backoff

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 22:23:56 +08:00
cosoandClaude Opus 4.5 86e2a0db33 feat: add anthropic-compatible provider type
Add a new provider type "anthropic-compatible" to support Anthropic API
variants that use array format for the system field instead of string.

Changes:
- Add AnthropicCompatible to ApiProviderType enum (backend)
- Add AnthropicCompatible to Agent ProviderType enum
- Modify AnthropicProtocol to support array system format
- Add provider type selector in ProviderConfigForm for custom providers
- Update icon mappings to show Claude icon for anthropic-compatible
- Update model registry mappings to show Anthropic models

This allows users to connect to Anthropic-compatible proxies (like One API)
that expect the system field in array format:
  {"system": [{"type": "text", "text": "..."}]}

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 20:06:08 +08:00
cosoandClaude Opus 4.5 2b32211e85 chore: update model configurations and pricing data
Update model definitions across all providers with latest pricing,
capabilities, and release information.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 19:09:52 +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
cosoandClaude Opus 4.5 a52ec0123e fix: enable automatic decompression for HTTP responses
- Add gzip, brotli, deflate features to reqwest in Cargo.toml
- Enable automatic decompression in ClaudeCustomProvider HTTP client
- Enable automatic decompression in OpenAICustomProvider HTTP client
- Add update_provider_env_vars command for Claude Code environment setup

This fixes garbled response issue when upstream providers return
compressed responses (e.g., anyrouter.top returning gzip-compressed data).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 16:10:38 +08:00
Chiron 8564c9007e feat: 修复智谱 API 路径问题并支持自定义模型列表
修复:
1. 修复 OpenAI Custom Provider 的 URL 路径拼接问题
   - 支持检测 /v1, /v2, /v3, /v4 等版本号路径
   - 避免重复拼接导致 /v4/v1/chat/completions 错误

新功能:
1. API Key Provider 支持自定义模型列表
   - 数据库添加 custom_models 字段
   - 前端 Provider 配置表单添加自定义模型输入
   - 用于不支持 /models 接口的 Provider(如智谱)

2. API Server 测试页面使用自定义模型
   - 自动使用当前 Provider 的自定义模型进行测试
   - 为多个自定义模型生成独立测试端点
2026-01-12 13:36:27 +08:00
Chiron bd9748fe18 feat: 动态检测 IP 地址变化并自动更新
主要改进:
1. 服务器启动时检查配置的 IP 是否有效,无效时自动切换到当前局域网 IP
2. 前端定期刷新网络信息,实时检测 IP 变化
3. 路由端点和 API 测试地址动态更新
4. 优先选择 192.168.x.x 或 10.x.x.x 的局域网 IP

修复 Antigravity API:
1. 修正 API 端点为 cloudcode-pa.googleapis.com
2. 透传上游错误状态码

新增功能:
1. 添加 model_service 和 model_cmd 模块
2026-01-12 11:40:29 +08:00
coso ae30af743f chore: bump version to 0.44.0 2026-01-12 01:33:45 +08:00
coso bb858c812f Merge pull request #105 from lwmacct/dev/260111-2255
feat: 添加开发模式 HTTP 桥接,支持浏览器 dev server 与 Tauri 后端通信
2026-01-12 00:06:43 +08:00
coso 7144cf771a chore: bump version to 0.43.0 2026-01-12 00:00:11 +08:00
lwmacct e77bb2a5ec fix: 将 HTTP 桥接改为独立的开发服务器(端口 3030)
## 问题

之前将 dev_bridge 路由合并到主应用服务器(端口 8999),
但用户需要一个独立的开发桥接端口,并且服务器启动后会立即关闭。

## 变更

- 重构 dev_bridge.rs 为独立的服务器实现
- 服务器在后台持续运行(不使用 graceful_shutdown)
- 在服务器启动时同步启动 dev bridge 服务器
- 添加 get_network_info 命令支持
- 修复 get_default_provider 返回格式(返回字符串而非对象)

## 架构

- 端口 8999: 主应用 API(生产/通用)
- 端口 3030: 专用开发桥接(仅 dev 模式)

## 验证

- [DevBridge] HTTP 桥接成功: get_server_status
- [DevBridge] HTTP 桥接成功: get_config
- [DevBridge] HTTP 桥接成功: get_default_provider
- [DevBridge] HTTP 桥接成功: get_network_info
2026-01-11 23:54:33 +08:00
lwmacct 329c699ae8 feat: 实现 HTTP 桥接层,支持浏览器 dev server 与 Tauri 后端通信
## 变更概述

实现了开发模式下的 HTTP 桥接层,使浏览器中的前端可以通过 HTTP
与运行中的 Tauri 后端通信,替代原有的纯 mock 方案。

## 后端变更

- 新增 `src-tauri/src/dev_bridge.rs` - HTTP 桥接主模块
- 新增 `src-tauri/src/dev_bridge/dispatcher.rs` - 命令分发器
- 集成 dev_bridge 路由到 Axum 服务器
- 添加 CORS 支持(仅允许 localhost:1420)

## 前端变更

- 新增 `src/lib/dev-bridge/` 模块 - HTTP 客户端
- 更新 `safeInvoke` 支持三层降级策略:
  1. Tauri IPC(生产环境)
  2. HTTP Bridge(开发环境)
  3. Mock(离线开发)

## 特性

- 仅在 debug 模式编译(`#[cfg(debug_assertions)]`)
- 支持命令:get_config, save_config, get_server_status,
  get_logs, get_provider_pool_overview 等
- 自动回退到 mock 当后端不可用
2026-01-11 23:17:55 +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
lwmacct 76d623f85b fix: 消除跨平台编译警告
修复 macOS 和 Linux 平台上的 Rust 编译警告,实现零警告编译。

主要更改:
- 在 lib.rs 添加全局 #![allow(unexpected_cfgs)] 抑制 objc 宏的 cfg 警告
- 修复 runner.rs 中 macOS 特定的 Emitter/Listener trait 导入
- 修复 capture.rs 中 warn 宏的条件导入
- 修复 window.rs 和 update_window.rs 中的变量命名和 lint 属性
- 修复 provider_pool_cmd.rs 中的 home 变量命名

技术细节:
- 使用 #[cfg(target_os = "macos")] 条件导入平台特定模块
- 使用 #[cfg_attr] 条件属性抑制非目标平台的未使用变量警告
- 在 crate 根级别抑制外部依赖(cocoa/objc)的内部警告

验证:
- macOS: cargo check --no-default-features 零警告
- Linux: cargo check --no-default-features 零警告
2026-01-11 21:03:37 +08:00
lwmacct 933b660332 chore: 修复编译警告和错误
- 修复 Tauri v2 API 兼容性问题(注释掉使用旧 API 的通知功能)
- 清理未使用的导入(18 个)和变量
- 为预留的结构体/trait 添加 #[allow(dead_code)] 属性
- 为测试模块添加模块级别 #![allow(dead_code)] 以保留 proptest 辅助函数
- 修复 proptest 宏外部的文档注释(改为普通注释)
- 删除未使用的测试辅助函数 arb_tool_call_count
- 处理未使用的 Result 返回值(添加 let _ = 前缀)

cargo check --all-targets --all-features 现已通过,无警告
2026-01-11 16:49:43 +08:00
coso 98a04d26da Merge pull request #101 from lwmacct/dev/260111-1454
chore: 清理项目配置并更新 .gitignore
2026-01-11 15:10:36 +08:00
lwmacct 5250527e80 chore: 清理项目配置并更新 .gitignore 2026-01-11 15:06:53 +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 392f0e2d2c feat: add content creator workflow and chat components
- Add content creator backend services (Rust)
- Add TaskFiles components for agent chat
- Add new chat page components with streaming support
- Add A2UI parser and components
- Add document canvas with multi-platform support
- Add form components and layout transition utilities
- Add content creator hooks and workflow management

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 01:30:44 +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