Commit Graph

89 Commits

Author SHA1 Message Date
晴天
b3531aca5f fix: replace unsafe libc::geteuid with std::env for CI clippy compatibility 2026-03-13 01:14:44 +08:00
晴天
db30f29abf feat: v0.8.2 — 15 fixes + 4 features + 3 improvements
Fixes:
- Stop force-appending /v1 to API URLs (breaks Volcengine /v3 etc)
- SSH upgrade: --unset-all + --add for 4 git insteadOf rules
- Feishu: builtin detection, overlay→modal fix, select field, plugin version persistence
- Docker: HTML response detection, Web mode guidance
- Chat: runId dedup prevents duplicate messages
- Cron: RPC params name→id
- Channels: Gateway reload async (instant UI response), toggle cache invalidation
- Linux: auto sudo for non-root npm installs (libc geteuid)
- Control UI: dynamic hostname + auth token for remote access
- npm: mirror fallback (npmmirror→npmjs.org)
- QQBot: native binding friendly error message
- Error diagnosis: SSH vs Git-not-installed, native binding detection

Features:
- About page: company info (武汉晴辰天下网络科技有限公司)
- model-presets.js: shared module for models.js + assistant.js
- Feishu: dual plugin support (builtin vs official @larksuiteoapi)
- Assistant: provider preset quick-fill buttons

Improvements:
- Website: dynamic download links from latest.json + claw.qt.cool proxy
- Linux deploy docs: upgrade guide, Gitee mirror, sudo notes
- linux-deploy.sh: Gitee fallback + sudo npm + mirror retry
2026-03-13 00:03:09 +08:00
晴天
d1e0f66f24 style: cargo fmt 2026-03-12 02:42:05 +08:00
晴天
3e24ceaa4d v0.8.0: Ollama兼容、Git自动安装、Gitee镜像、会话重命名、消息渠道Agent绑定、仪表盘重设计、环境检测实时生效、#44修复 2026-03-12 02:17:47 +08:00
晴天
5919036d3b fix(ci): gate Windows-only tests with #[cfg(all(test, target_os = windows))] 2026-03-11 03:23:08 +08:00
晴天
073946740a fix(ci): gate HashSet import with #[cfg(windows)] for Clippy on Linux/macOS 2026-03-11 03:16:49 +08:00
晴天
436932e545 fix(ci): gate Windows-only functions with #[cfg(target_os = windows)] for Clippy 2026-03-11 03:09:25 +08:00
晴天
16999e66b7 style: cargo fmt (fix CI format check) 2026-03-11 03:03:47 +08:00
晴天
8921f9a51e chore: release v0.7.4 2026-03-11 02:08:01 +08:00
晴天
e25f49d531 feat(channels): add Feishu/Lark messaging channel integration
- Frontend: add feishu to PLATFORM_REGISTRY with official tutorial guide
- Tauri backend: add feishu read/save/verify in messaging.rs
- Web backend: add all messaging platform handlers to dev-api.js
- Feishu verification uses tenant_access_token API (feishu/lark dual domain)
- Plugin: @openclaw/feishu@latest auto-installed on save
- Guide links to official OpenClaw Feishu plugin article
2026-03-11 02:08:00 +08:00
晴天
de5a8706da fix: Gateway status detection false-negative when command line unreadable (permissions)
- dev-api.js: treat unreadable PIDs as potential Gateway instead of foreign
- dev-api.js: add TCP probe fallback in get_services_status for all platforms
- service.rs: same fix in Tauri side inspect_port_owners
2026-03-10 23:18:39 +08:00
晴天
d6361b4e89 chore: release v0.7.3 2026-03-10 22:52:49 +08:00
晴天
91f96ac96b fix: resolve 6 issues (#32 #31 #25 #33 #29 #23)
- #32: parseCookies decodeURIComponent crash with malformed cookies (Authelia)
- #31: Gateway restart no longer overwrites user CORS allowedOrigins (merge instead)
- #25: Windows terminal flashing - add CREATE_NO_WINDOW to skills.rs + assistant.rs
- #33: Model test tolerates non-auth HTTP errors (Ali Coding Plan compatibility)
- #29: Auto-detect ws/wss protocol for reverse proxy + protocol-aware Docker URLs
- #23: Chat session sidebar stays open when switching sessions
2026-03-10 22:52:49 +08:00
晴天
a2f8ed9d54 feat(channels): add messaging channels and built-in qq bot 2026-03-10 03:33:21 +08:00
晴天
9ed58af426 fix(ci): 收敛服务状态描述查询的 Clippy 告警 2026-03-10 01:04:32 +08:00
晴天
4e2b56d246 fix(ci): 修复服务状态查询的跨平台 clippy 告警 2026-03-10 00:59:23 +08:00
晴天
6171d164f3 chore(release): 发布 0.7.1 2026-03-10 00:28:55 +08:00
晴天
f32bce12cb feat(guardian): 强化Gateway守护与Windows启停安全 2026-03-10 00:28:09 +08:00
晴天
727903f94b feat: Docker 集群增强 — Gateway 通讯API、像素兵种系统、互动组件、UI 优化 2026-03-09 05:35:30 +08:00
晴天
f50135298d fix: 修复 Gateway 启动时引号转义导致找不到文件的问题 (raw_arg) 2026-03-09 00:28:58 +08:00
晴天
a55be84795 fix: Gateway 停止兼容旧版隐藏进程,按端口查杀兜底 2026-03-09 00:26:45 +08:00
晴天
69160c06f4 feat: 兼容 OpenClaw v2026.3.7 (SecretRef token, caps tool-events, 认证错误处理, Gateway 可见终端) 2026-03-09 00:23:44 +08:00
晴天
6bd7526348 chore: release v0.7.0 2026-03-08 02:02:01 +08:00
晴天
af6a447cf1 fix: cargo fmt 2026-03-08 01:52:25 +08:00
晴天
02e1ef6b14 feat: 版本管理 + macOS提示优化 + 部署文档更新
- OpenClaw 版本管理: 安装/升级/降级/切换版本, 汉化版/原版选择
- 新增 list_openclaw_versions API (Rust + Web)
- upgrade_openclaw 支持指定版本号
- 版本选择器弹窗 (about.js)
- macOS Gatekeeper 提示优化: 强调拖入应用程序, No such file 备选
- 部署文档统一使用 npm run serve 替代 npx vite
- showUpgradeModal 支持自定义标题 + onClose 回调
- serve.js 路径分隔符跨平台修复
- 扩展工具页面优化 + AI助手危险工具确认
2026-03-08 01:46:27 +08:00
晴天
3fdab5a8c6 fix: cargo fmt with rustfmt 1.94.0 2026-03-07 23:46:59 +08:00
晴天
1bd94143b5 fix: cargo fmt + clippy regex_creation_in_loops 2026-03-07 19:41:16 +08:00
晴天
0752dc2a71 feat: v0.6.0 — 公益AI接口 + Agent灵魂借尸还魂 + 知识库 + 全局AI诊断 + 官网改版 2026-03-07 19:36:25 +08:00
晴天
921c371934 feat: AI助手支持 Anthropic/Gemini 原生API + 修复Windows终端闪烁
- AI助手新增 API 类型选择器(OpenAI兼容 / Anthropic原生 / Google Gemini)
- 实现 Anthropic Messages API 流式调用 + 工具调用(tool_use/tool_result)
- 实现 Google Gemini streamGenerateContent + 工具调用(functionCall)
- 设置弹窗动态切换 placeholder 和提示文本
- 测试按钮和模型拉取适配三种 API 类型
- 修复 Windows 上 Gateway 状态轮询导致终端反复闪烁(execSync/spawn 加 windowsHide)
- 默认密码统一为 123456 + 改密码后自动移除顶部横幅
- 后端 API 增加暴力破解保护、配置缓存、请求体大小限制
2026-03-06 22:46:40 +08:00
晴天
80197bdc60 security: 修复命令注入/路径遍历漏洞 + 收紧 allowedOrigins + 审计日志 + OnceLock 缓存 2026-03-06 20:51:32 +08:00
晴天
7d387a4f94 fix: Linux Gateway 服务管理 (#7,#8,#10) + 非root部署 (#9) + 官网锚点滚动修复 2026-03-06 20:28:13 +08:00
晴天
881b49c9ef chore: 发布 v0.5.4 2026-03-06 13:45:19 +08:00
晴天
e5f65c2f19 chore: 发布 v0.5.3 2026-03-06 13:15:07 +08:00
晴天
c81755612f chore: 发布 v0.5.2
- 修复 Linux 系统下 OpenClaw 安装检测问题
- 添加赞助商展示区
- 优化官网锚点跳转
2026-03-06 12:51:58 +08:00
晴天
d13e389035 fix: 更新内置版本号 2026-03-06 10:42:52 +08:00
晴天
a29592c508 bump: v0.5.1 — cargo fmt 修复 + 视频播放修复 2026-03-06 04:42:30 +08:00
晴天
402503cc6a style: cargo fmt 格式修复 assistant.rs 2026-03-06 04:41:52 +08:00
晴天
f0ff83a241 bump: v0.5.0 — 内置 AI 助手 + 图片识别 + 宣传素材全面更新 2026-03-06 04:36:23 +08:00
晴天
860218fa09 feat: 新增 AI 助手页面 + 图片识别功能 + 更新宣传素材
- 新增 AI 助手页面 (assistant.js/assistant.css/assistant.rs)
- 新增图片识别截图 (13.png) 并加入官网和 README
- 更新宣传视频 (promo-web.mp4) 含 AI 助手+工具调用+图片识别场景
- 更新视频封面 (video-cover.png/video-cover-light.png) 突出 AI 助手
- 更新 AI 助手演示 GIF (ai-assistant-demo.gif) 作为 README 首图
- 更新功能矩阵 GIF (feature-showcase.gif) AI 助手为 star 卡片
- 官网新增图片识别 showcase 区块
- README 新增图片识别特性和截图
- 视频封面改用专业设计版本
- 演示视频时长 badge 更新为 50 秒
2026-03-06 04:33:43 +08:00
晴天
7eb78ea186 修复:macOS Gateway 启动失败 Bootstrap failed: 5 (v0.4.8)
根因: plist 二进制路径过期(nvm/fnm 切版本后),launchctl 找不到程序
修复: launchctl bootstrap/kickstart 失败时回退到 CLI 直接 spawn Gateway
覆盖: start_service_impl + restart_service_impl 均有 fallback
2026-03-06 00:25:01 +08:00
晴天
fe66fe0e73 发布 v0.4.7:修复 fnm 检测 + Release Notes 生成
修复:
- fnm 用户 Node.js 检测失败(扫描 FNM_DIR/node-versions)
- Release Notes 中文 commit grep 失败(|| true 兜底)
2026-03-06 00:04:45 +08:00
晴天
d7d403e8a0 修复:fnm 用户 Node.js 检测 + Release Notes 生成失败
fnm 修复:
- 移除错误的 ~/.fnm/current/bin 路径
- macOS/Linux: 扫描  或 ~/.local/share/fnm/node-versions/*/installation/bin
- Windows: 扫描 %FNM_DIR% 或 %APPDATA%\fnm\node-versions\*\installation

release.yml 修复:
- grep 无匹配时返回 exit 1,GitHub Actions pipefail 导致脚本终止
- 用 { grep ... || true; } 包裹,中文 commit message 不再触发失败
2026-03-06 00:00:26 +08:00
晴天
b4e959ec99 紧急修复:mode 字段位置错误导致 Gateway 无法启动 (v0.4.6)
根因:openclaw.json 的 mode 属于 gateway 对象内部,不是顶层字段。
OpenClaw zod-schema 对顶层 mode 报 Unrecognized key 错误。

修复:
- config.rs init_openclaw_config: mode 移入 gateway 对象
- dev-api.js init_openclaw_config: 同上
- dashboard.js 自愈: config.mode → config.gateway.mode
- dashboard.js 自愈: 自动删除旧版错误的顶层 mode 字段
- setup.js 安装流程: config.mode → config.gateway.mode
2026-03-05 23:41:55 +08:00
晴天
8ba25a25e0 发布 v0.4.5:修复 nvm 兼容性 + 自动初始化配置
修复:
- nvm 用户 Node.js/CLI 检测失败(扫描 nvm 版本目录)
- Tauri v2 参数名 snake_case → camelCase 不匹配
- Windows CLI 检测遗漏(增加 PATH 兜底)
- Agent/记忆文件页面晦涩 os error 2 → 中文提示
- cargo fmt + clippy 修复

新增:
- 初始设置自动创建配置文件 + 一键初始化按钮
- ClawPanel Web 版部署文档 + 文档中心
2026-03-05 23:25:34 +08:00
晴天
e99479fbeb 修复:记忆文件页面 openclaw 找不到时的友好错误提示
memory.rs 的 agent_workspace() 也调用 openclaw CLI,
同样需要处理 NotFound 错误,显示中文提示而非 os error 2
2026-03-05 23:20:39 +08:00
晴天
ac5f6157ef 优化:Agent 管理页面 openclaw 找不到时显示友好错误提示
将 'No such file or directory (os error 2)' 替换为中文提示:
'OpenClaw CLI 未找到,请确认已安装并重启 ClawPanel'
涉及 list_agents、add_agent、delete_agent 三个命令
2026-03-05 23:19:12 +08:00
晴天
ef3ae03546 修复:nvm 用户 Node.js/CLI 检测失败的问题
Bug1: check_node_at_path 参数名不匹配(snake_case vs camelCase)
- Tauri v2 默认期望 camelCase,前端发送的 node_dir 改为 nodeDir
- 同步修复 save_custom_node_path 和所有 memory 函数的 agent_id → agentId

Bug2: Windows 上 OpenClaw CLI 已安装但检测显示 
- is_cli_installed() 仅检查 %APPDATA%\npm\openclaw.cmd
- 增加 PATH 查找兜底,兼容 nvm、自定义 prefix 等安装方式

增强: enhanced_path() 扫描 nvm 版本目录
- macOS/Linux: 扫描 ~/.nvm/versions/node/*/bin
- Windows: 扫描 %APPDATA%\nvm\* 和 %NVM_HOME%\*
2026-03-05 23:16:44 +08:00
晴天
bb2c6df8ec 优化:初始设置页面自动创建默认配置文件
当检测到 OpenClaw CLI 已安装但 openclaw.json 不存在时:
1. 自动创建包含合理默认值的配置文件(mode:local, tools:full 等)
2. 如果自动创建失败,显示「一键初始化配置」按钮供手动操作
3. 新增 init_openclaw_config API(dev-api.js + Tauri Rust 后端)
4. 用户不再需要去终端手动执行 openclaw configure
2026-03-05 23:14:13 +08:00
晴天
cb5cbe2f71 feat: Agent tools permission config UI + auto-heal (v0.4.4)
- Gateway config page: add tools profile selector (full/limited/none)
- Gateway config page: add session visibility selector (all/own/none)
- Auto-heal: setup + dashboard auto-set tools.profile:full on install/load
- Fixes OpenClaw 2026.3.2 breaking change that disabled tools by default
2026-03-05 22:40:02 +08:00
晴天
aae531a7bd bump: v0.4.3 - auto-set mode:local + Gateway self-heal 2026-03-05 22:35:09 +08:00