Commit Graph
305 Commits
Author SHA1 Message Date
coso d15d9aa65d feat: release v0.89.0 and rename Proxycast to Lime 2026-03-17 07:16:33 +08:00
coso f617fc4bb7 fix: unblock v0.88.0 release build 2026-03-16 17:09:20 +08:00
coso 723fafe621 feat: release v0.88.0 with automation and browser runtime upgrades 2026-03-16 15:28:21 +08:00
coso 0a75413c96 feat: release v0.87.0 with browser runtime and workbench improvements 2026-03-15 00:43:25 +08:00
cosoandClaude Opus 4.6 8e6001b570 chore: update Cargo.lock for v0.86.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 21:27:00 +08:00
cosoandClaude Opus 4.6 475f823b74 fix: update [package] version to 0.86.0 in Cargo.toml
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 21:23:55 +08:00
cosoandClaude Opus 4.6 9758c31140 feat: release v0.86.0 with full pending changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 21:05:42 +08:00
cosoandClaude Opus 4.6 8995ef9c68 feat: release v0.85.0 with full pending changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 02:40:20 +08:00
coso 621ab3ee73 feat: integrate AI summary into SessionContextService (P0 phase 1)
- SessionContextService 新增 ai_summary_service 可选字段
- 新增 new_with_ai_summary() 构造函数
- create_summary() 改为异步方法,优先使用 AI 摘要
- AI 摘要失败时自动降级到本地关键词提取
- 将 get_effective_context/preheat_session_context 改为异步
- 修复所有相关测试为 tokio::test
- 全部 11 个测试通过(7 session_context + 4 ai_summary)
2026-03-12 19:05:28 +08:00
cosoandClaude Opus 4.6 75309bd2ef feat: add AI summary service for context management (P0 phase 1)
- 创建 ai_summary_service.rs 模块,实现 AI 驱动的会话摘要
- 支持配置摘要长度、主题数量、决策数量
- 使用 JSON 格式返回结构化摘要(summary, key_topics, decisions)
- 包含完整的单元测试
- 当前使用 mock 实现,待后续集成真实 LLM 调用

相关文档:
- docs/iteration-notes/implementation-progress-report.md - 总体进度报告
- docs/iteration-notes/p0-phase1-implementation-plan.md - P0 阶段 1 详细计划
- docs/iteration-notes/p0-context-management-implementation.md - P0 实施文档
- docs/iteration-notes/context-management-upgrade-plan.md - 上下文管理升级方案

下一步:
- 改造 session_context_service.rs 集成 AI 摘要
- 替换 mock 实现为真实 LLM 调用
- 编写集成测试验证效果

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-12 18:40:22 +08:00
cosoandClaude Opus 4.6 2aa83ee7fc feat: release v0.84.0 with full pending changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-12 00:34:23 +08:00
coso bfacf764b7 feat: release v0.83.2 with full pending changes 2026-03-10 19:17:54 +08:00
coso e5d67a0d15 fix: update [package] version to 0.83.1 in Cargo.toml 2026-03-10 12:03:46 +08:00
coso b077a03213 feat: release v0.83.1 with OpenClaw integration and workbench improvements 2026-03-10 11:50:47 +08:00
coso dce4753488 feat: add OpenClaw commands and improve workbench functionality
- Add OpenClaw command registration in runner.rs
- Improve MarkdownRenderer with tests
- Enhance video canvas and sidebar components
- Update workbench controller and quick actions
- Add video theme panel renderers
- Update OpenClaw pages and types
2026-03-10 11:34:55 +08:00
coso daaa2352b6 fix: restore variable names without underscore prefix
These variables are actually used in debug builds, so they should not have underscore prefix.
2026-03-10 09:24:51 +08:00
coso 2adf8c2bc2 fix: resolve Windows compilation errors and warnings
- Add Manager trait import for windows_startup_cmd.rs
- Add explicit type annotations for PathBuf in windows_startup_cmd.rs
- Fix unused import warning in screenshot_capture_service.rs
- Prefix unused variables with underscore in runner.rs and aster_agent_cmd.rs
- Update package.json with Node.js engine requirement
2026-03-10 09:20:40 +08:00
coso 276e2064c2 fix: update ssh_connection.rs Path import 2026-03-10 08:23:51 +08:00
coso 90bd63908f feat: release v0.83.0 with full pending changes
✨ 新功能
- 新增 OpenClaw 服务集成和相关命令支持
- 新增 Windows 启动诊断命令和故障排查文档
- 新增样式库管理面板 (StyleLibraryPanel)
- 新增 A2UI 任务卡片组件和完整测试覆盖
- 新增输入栏多个子组件:提示路由弹窗、执行策略选择、模型扩展配置等
- 新增工作台创建入口主页和右侧面板扩展视图
- 新增运行时样式控制栏组件
- 新增样式运行时工具模块和测试
- 新增内容审查面板测试
- 新增多个工作台右侧面板能力:音频任务、视频任务、画外音任务、图片任务等
- 新增 Windows 支持包收集脚本
- 新增开发桥健康检查脚本

🐛 修复
- 修复 TypeScript 编译错误
- 修复崩溃诊断逻辑
- 修复 Tauri mock 核心模块
- 修复开发桥 HTTP 客户端
- 修复 webview API 调用
- 修复 Provider 模型列表组件
- 修复多个 Rust clippy 警告

🔧 优化与重构
- 重构输入栏组件架构,拆分为多个独立 hooks 和子组件
- 重构工作台右侧面板,拆分为多个独立模块和配置文件
- 优化 A2UI 组件渲染器和布局系统
- 优化内容创建器文档画布和工具栏
- 优化记忆层指标计算和测试
- 优化项目提示工具
- 优化主题工作台侧边栏
- 优化样式指南面板
- 优化工作台导航和面板渲染 hooks
- 优化确认策略创建工具
- 优化主题模块(novel、video)和共享面板渲染器
- 优化 Agent 事件转换器和会话存储
- 优化数据库 DAO 层
- 优化模型注册服务和技能服务
- 优化日志命令和应用运行器
- 优化开发桥调度器
- 更新 Windows 平台 Tauri 配置
- 更新 CI release workflow

📦 其他
- 新增 Windows 启动问题故障排查文档
- 更新 Playwright E2E 测试文档
- 更新构建和运维文档
- 更新常见问题文档
- 更新 README
2026-03-10 07:57:13 +08:00
coso ef8ca1dce4 fix: 修复所有测试和代码质量问题
- 修复 6 个失败的 Rust 测试
  - test_bundled_social_post_with_cover_skill_contract: 支持 SKILL.md 中的中文引号
  - workspace_commands_roundtrip: 使用驼峰命名 workspaceType
  - should_embed_social_image_tool_contract_in_default_skill: 更新为 **配图说明**
  - 修复 normalize 相关测试中的配图说明断言

- 修复 clippy 警告
  - 为多个枚举添加 #[derive(Default)]
  - 实现 std::str::FromStr trait 替代自定义 from_str
  - 修复不必要的 unwrap 调用
  - 使用 vec![] 宏替代 vec init then push

- 修复前端 ESLint 错误
  - ThemeWorkbenchSidebar: 20+ 个未使用变量加下划线前缀
  - useConfiguredProviders: 修复 React hooks 依赖项

- 所有核心测试通过 (328 passed; 0 failed)
- npm lint 通过
- 代码格式化通过
2026-03-09 09:44:45 +08:00
coso 4cbd13e84e feat: release v0.82.0 with code quality improvements
- 代码质量改进:修复大量 Rust 和 TypeScript lint 错误
- 实现 FromStr trait 替代手动 from_str 方法
- 优化代码结构和类型安全
2026-03-09 09:03:40 +08:00
coso 447c906cbf fix: resolve clippy warnings - add Default derives, implement FromStr traits, fix unnecessary unwraps 2026-03-09 09:03:17 +08:00
coso 2888352a00 feat: release v0.81.0 with full pending changes 2026-03-08 07:53:37 +08:00
cosoandClaude Opus 4.6 7516671610 feat: release v0.80.0 with gateway tunnel system and agent improvements
Major Features:
- Gateway tunnel system with Discord/Feishu/Telegram support
- Agent request tool policy management
- Aster session recovery mechanism
- Channel log viewer UI with filtering

Improvements:
- Refactor MCP database migration and config hot-reload
- Optimize request tool policy service
- Add comprehensive tests for new features

Fixes:
- Fix test compilation errors (Config gateway field, type inference)
- Fix doctest import paths
- Fix flaky antigravity token validation test
- Fix CI build issues

Dependencies:
- Update pnpm-lock.yaml and Cargo.lock

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-05 16:50:44 +08:00
coso fb06cca067 ci(release): make package version explicit for tauri action compatibility 2026-03-04 18:43:30 +08:00
coso 2557f22bb2 chore(release): v0.79.0 2026-03-04 18:23:59 +08:00
cosoandClaude Opus 4.6 c3b77ef849 feat: release v0.78.0 with full pending changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-03 23:32:52 +08:00
cosoandClaude Opus 4.6 d2fadfbbf0 fix: add CI-compatible placeholder implementations for aster network types
- Copy complete implementations from local aster for:
  - capability_routing_metrics.rs
  - request_dedup.rs
  - response_cache.rs
- Add indexmap dependency to server crate
- Ensures CI builds succeed with aster v0.15.0 tag

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-03 01:59:07 +08:00
cosoandClaude Opus 4.6 4fadd09c7c feat: release v0.77.0 with full pending changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-03 01:28:44 +08:00
cosoandClaude Sonnet 4.6 0f1be80ba7 fix: add auto-relocate to workspace health and use repaired flag for telemetry
- workspace_health_service: add ensure_workspace_ready_with_auto_relocate that falls back to
  a managed path (~/.proxycast/projects/{id}) when original root is inaccessible
- WorkspaceReadyResult: include relocated, previousRootPath, warning fields
- workspace_cmd: expose relocated/previousRootPath/warning in WorkspaceEnsureResult response;
  add ensure_workspace_ready_with_auto_relocate to workspace_update path
- useProjects/useWorkspace/AgentChatPage: use repaired (not created) flag to trigger repair
  telemetry, since repaired=true covers both create-new and auto-relocate scenarios

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 17:53:52 +08:00
cosoandClaude Sonnet 4.6 68e16d4a04 feat: improve aster runtime, agent commands, novel parsing, and log retrieval
- Aster runtime: resolve path via ASTER_PATH_ROOT env var, create config/data/state dirs on init
- Aster session store: implement commit_session, search_memories, retrieve_context_memories stubs
- Aster agent cmd: extract and surface inline agent provider errors from message text
- Aster agent cmd: use ensure_workspace_ready_with_auto_relocate for robust workspace path handling
- Agent cmd: integrate workspace health auto-repair before launching agent
- Config cmd: add ETag-based caching for update checks (10min TTL), add fallback tags URL
- Novel service: improve character card parsing with multi-strategy JSON extraction and fallback
- Logs cmd: add get_persisted_logs_tail command to read tail of log file for diagnostics
- Dev bridge dispatcher: expose get_persisted_logs_tail in browser bridge
- Runner: register get_persisted_logs_tail, workspace_ensure_ready, workspace_ensure_default_ready

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 17:52:00 +08:00
cosoandClaude Sonnet 4.6 0b2d3caa6c feat: add request dedup, response cache, and capability routing metrics to API server
- Add response cache middleware (backed by aster-rust implementation)
- Add request deduplication middleware to prevent duplicate in-flight requests
- Add capability routing metrics middleware for model/provider fallback tracking
- Add idempotency stats (atomic counters) to IdempotencyStore
- Expose all four stores in ServerState and surface stats in ServerStatus
- Add ResponseCacheSettings to ServerConfig with defaults (600s TTL, 200 max entries)
- Add API server observability infrastructure (IdempotencyGuard, RequestDedupGuard, ResponseCacheGuard)
- Add inline capability detection for vision/tools/context when routing requests
- Register workspace_ensure_ready and workspace_ensure_default_ready commands in runner
- Update docs with response_cache configuration example

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 17:51:37 +08:00
cosoandClaude Sonnet 4.6 2d00911c28 fix: 构建 workspace 目录 4 层健康防护体系,彻底解决路径缺失问题
## 根本原因
workspace_create 只写 DB 不建目录,导致任何主题(小说/文章/海报等)
切换到目录已被删除/外置磁盘未挂载的 workspace 后,发送消息必然报错,
且旧提示语引导用户去不存在的"工作区设置"页面。

## 4 层防护

**L1 创建时(workspace_create)**
- 建 workspace 前调 ensure_workspace_root_ready,目录不存在则自动创建

**L2 启动/切换时(useWorkspace + useProjects)**
- refresh/setDefault/projects_refresh 时调 workspace_ensure_ready
- 静默自动修复已知 workspace 的缺失目录

**L3 发消息前(aster_agent_cmd)**
- aster_session_create + aster_agent_chat_stream 各自调 ensure_workspace_root_ready
- 能自动创建则创建并继续,无法创建则返回语义化错误

**L4 主动检查 + 兜底 UI(AgentChatPage + CrashRecoveryPanel)**
- 打开任意项目时主动调 workspace_ensure_ready,失败时显示 amber banner
- 发送失败也显示 amber banner,"重新选择目录"按钮处理两种场景
- CrashRecoveryPanel 新增 workspace-path-missing 场景识别与蓝色修复按钮

## 新增功能
- WorkspaceUpdate.root_path:支持通过 API 修改 workspace 根目录
- workspace_ensure_ready / workspace_ensure_default_ready:Tauri 健康检查命令
- workspace_health_service.rs:独立服务模块,含详细诊断信息
- AppCrashBoundary / CrashRecoveryPanel:通用 React 错误边界与恢复面板
- workspaceHealthTelemetry.ts:localStorage 修复历史记录(最多 50 条)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 17:43:25 +08:00
coso dabb5c87b6 feat: finalize image search workflow and release v0.76.0 2026-03-02 02:30:38 +08:00
coso 5cd3eda653 release: bump version to v0.75.0 2026-02-28 22:42:28 +08:00
coso 0e61342618 refactor: 移除 claude-in-chrome 命名,统一使用 proxycast-browser 前缀 2026-02-28 16:11:25 +08:00
coso cd95cac72f feat: release v0.74.0 - Chrome Bridge 浏览器自动化集成
🎉 重大功能
- Chrome Bridge: 完整的浏览器自动化控制系统
- 零配置自动连接:扩展自动加载和配置
- AI 原生集成:作为 MCP 工具支持自然语言控制
- 支持导航、页面读取、元素交互、表单操作等

🐛 Bug 修复
- WebSocket 路由修复 (Axum 路径参数语法)
- Chrome 扩展存储清理
- 扩展重复注入防护
- 剪贴板权限添加

🔧 代码质量
- 修复 33+ Clippy 警告
- 所有 259 个测试通过
- ESLint 无警告

📝 文档
- Chrome Bridge 使用指南
- API 技术文档
- 快速参考卡片
2026-02-28 16:05:36 +08:00
cosoandClaude Opus 4.6 0686737331 feat: release v0.73.0 with full pending changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-27 16:37:53 +08:00
coso d973579a25 feat: release v0.72.0 with full pending changes 2026-02-26 15:40:22 +08:00
coso 65ba54744b chore: 修复 tauri.conf.json 版本号为 0.71.0 2026-02-25 12:27:06 +08:00
cosoandClaude Sonnet 4.6 8fec0f1088 feat: 添加渠道管理功能并修复 workspace_mismatch 兼容性问题
- 新增渠道管理页面(AI 模型提供商 + 消息通知渠道)
- 支持飞书、Telegram、Discord 通知渠道配置
- 新增 migration_v4:启动时自动修复 [object Promise] 路径污染
- 新增 migration_v4:自动统一旧会话 working_dir 到默认 workspace
- 修复老用户升级后出现的 workspace_mismatch 错误

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-02-25 11:16:14 +08:00
coso 54611cd3ab feat: release v0.71.0 with full pending changes 2026-02-24 16:18:57 +08:00
coso 9f0ba79ce2 chore: bump proxycast to 0.70.1 and upgrade aster-rust v0.14.5 2026-02-24 16:08:40 +08:00
coso 0a1243e6d6 feat: 改进 Windows 平台兼容性
使用 Context7 MCP 分析平台差异,针对 Windows 11 崩溃问题进行修复:

## 主要改进

1. **改进 Tokio Runtime 创建** (bootstrap.rs:147)
   - 使用 Builder 模式替代 Runtime::new()
   - 限制工作线程数为 2(避免 Windows 资源问题)
   - 添加平台特定的日志输出
   - 提高跨平台兼容性

   ```rust
   tokio::runtime::Builder::new_multi_thread()
       .worker_threads(2)
       .thread_name("proxycast-runtime")
       .enable_io()
       .enable_time()
       .build()
       .expect("...")
   ```

2. **添加 Windows 数据库验证**
   - 在启动时验证数据库文件权限
   - 添加 Windows 特定的诊断日志

## 平台差异分析

### Tauri 渲染引擎
- Windows: Chromium
- macOS/Linux: WebKit

### Tokio I/O 模型
- Windows: IOCP (I/O Completion Ports)
- macOS: kqueue
- Linux: epoll/io-uring

## 版本验证

✅ aster-rust v0.13.0 (最新版本)
- 不需要更新框架
- 已包含所有最新修复

## 文档

添加了详细的文档:
- WINDOWS_CRASH_ANALYSIS.md: 完整的平台差异分析
- WINDOWS_TEST_GUIDE.md: Windows 11 测试指南
- test-crash-fix.md: 修复验证清单
- test-messaging.sh: 自动化测试脚本

相关提交: 0f6044d6 "fix: 修复发送第一条消息时的闪退问题"
2026-02-22 17:55:02 +08:00
coso 0f6044d65e fix: 修复发送第一条消息时的闪退问题
问题分析:
- 用户报告 v0.70 在发送第一条消息时闪退,v0.60 正常工作
- 从 v0.68/v0.69/v0.70 开始出现问题

修复内容:

1. 移除危险的 unwrap() 调用 (bootstrap.rs:147)
   - 将 .unwrap() 改为 .expect() 提供详细错误信息
   - 如果 tokio runtime 创建失败,现在会显示具体错误而不是 panic

2. 添加前端错误处理 (AgentChat/index.tsx)
   - 在 handleSend 函数中添加 try-catch 错误处理
   - 捕获 sendMessage 调用中的异常
   - 显示友好的错误提示并恢复输入内容

3. 验证模型过滤逻辑 (modelThemePolicy.ts)
   - 确认已有完善的回退机制
   - 过滤后无模型时会返回原始列表
   - ModelSelector 在空列表时显示提示而非崩溃

4. 验证加密模块
   - ChaCha20-Poly1305 加密仅在测试中使用
   - 实际使用的是自定义 XOR 加密
   - 加密初始化不会导致启动时崩溃

相关提交:
- v0.69.0 (bd6d487d): 新增模型主题策略
- v0.70.0 (0c357c8b): 新增加密模块和安全中间件

参考: test-crash-fix.md
2026-02-22 16:33:52 +08:00
coso 927b757b30 chore(release): bump version to 0.70.0 2026-02-21 21:58:33 +08:00
coso 97e8ac6d4a release: v0.69.0 - upgrade aster-rust to v0.13.0, skill content dialog 2026-02-18 18:35:35 +08:00
coso c35652756a fix: clippy warnings, fmt fixes, integrate modules into request flow 2026-02-18 18:10:49 +08:00
coso 0c357c8bf1 feat: add security middleware, rate limiting, auth, encryption, conversation management
Borrowed patterns from ZeroClaw:
- server/middleware/security: request body size limit + timeout layer
- server/middleware/rate_limit: sliding window rate limiter per client IP
- server/middleware/idempotency: idempotency key store for duplicate prevention
- server/auth/pairing: pairing code auth with brute force protection
- core/sanitizer: credential sanitizer with 9 builtin patterns
- core/router/hint_router: message prefix hint routing ([reasoning], [fast])
- processor/conversation_manager: conversation history trimming
- processor/conversation_summarizer: LLM-based conversation summarization
- credential/encryption: ChaCha20-Poly1305 AEAD encryption for API keys
2026-02-18 14:58:51 +08:00
coso 904ae548b3 fix(ci): 修复 CI 构建失败 - 使用 git 依赖替代本地路径
- 将 aster-models 依赖从本地路径改为 git 依赖
- 使用 tag v0.12.0 从 GitHub 仓库获取
- 注释掉 .cargo/config.toml 中的本地 patch 配置
- 确保 CI 环境可以正确构建项目

修复错误: failed to read aster-rust/crates/aster-models/Cargo.toml
2026-02-17 12:47:27 +08:00