diff --git a/.gitignore b/.gitignore index a0ffd02..cb74e27 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,11 @@ release_body.md.bak # 内部开发文档(不入公开仓) BLOCKING_ISSUES_REPORT.md +__clawapp-chat-ref.js + +# 大文件(宣传视频) +docs/promo-video.mp4 +docs/promo-web.mp4 # IDE / 编辑器 .idea/ diff --git a/CHANGELOG.md b/CHANGELOG.md index bc867ee..03a1e49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,34 @@ 格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/), 版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。 +## [0.4.0] - 2026-03-05 + +### 新增 (Features) + +- **Gateway 进程守护** — 检测到 Gateway 意外停止时自动重启(最多 3 次,60s 冷却期),用户主动停止不干预 +- **守护恢复横幅** — 连续重启失败后顶部弹出恢复选项(重试启动 / 从备份恢复 / 服务管理 / 查看日志) +- **配置文件自愈** — 读取 `openclaw.json` 时自动剥离 UTF-8 BOM,JSON 损坏时自动从 `.bak` 恢复 +- **双配置同步** — 保存模型配置时自动同步到 agent 运行时注册表(`models.json`),包括新增/修改/删除 provider 和 model +- **流式输出安全超时** — 90 秒无新数据自动结束流式输出,防止 UI 卡死 +- **聊天响应耗时显示** — AI 回复时间戳后显示响应耗时(如 `20:09 · 1.7s`) +- **跨天时间显示** — 非当天消息显示日期(如 `03-04 20:09`),当天仅显示时间 +- **仪表盘自动刷新** — Gateway 状态变化时自动刷新仪表盘数据,无需手动刷新 + +### 修复 (Bug Fixes) + +- **401 无效令牌** — 修复 `models.json`(agent 运行时注册表)与 `openclaw.json` provider 配置不同步导致的认证失败 +- **删除模型后 Gateway 崩溃** — 删除模型/渠道后自动切换主模型到第一个可用模型,同步清理 `models.json` 中已删除的 provider 和 model +- **WebSocket 连接被拒** — `allowedOrigins` 改为通配符 `["*"]`,兼容所有 Tauri 运行模式 +- **模型测试触发 Gateway 重启** — 测试结果保存改用 `saveConfigOnly`,不再触发不必要的重启 +- **主模型配置不生效** — `applyDefaultModel` 同步更新到各 agent 的模型覆盖配置,防止 agent 级别旧值覆盖全局默认 +- **WS 代理报错刷屏** — Vite 配置静默处理 Gateway 不可达时的 proxy error +- **历史图片丢失提示** — 刷新后 Gateway 不返回图片原始数据时显示友好提示 + +### 优化 (Improvements) + +- **拖拽排序重写** — 模型拖拽排序改用 Pointer Events 实现,兼容 Tauri WebView2/WKWebView +- **用户消息附件保存** — 发送的图片附件保存到本地缓存,支持页面内恢复 + ## [0.3.0] - 2026-03-04 ### 新增 (Features) diff --git a/README.md b/README.md index 2e7559e..9573362 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,20 @@ --- +

+ ClawPanel 安装演示 +

+ +

+ + 演示视频 + +

+ ClawPanel 是 [OpenClaw](https://github.com/1186258278/OpenClawChineseTranslation) AI Agent 框架的可视化管理面板,提供服务管控、模型配置、日志查看、记忆管理等核心功能,一站式管理你的 OpenClaw 实例。 +> 🌐 **官网**: [claw.qt.cool](https://claw.qt.cool/)  |  📦 **下载**: [GitHub Releases](https://github.com/qingchencloud/clawpanel/releases/latest) + ## 下载安装 前往 [Releases](https://github.com/qingchencloud/clawpanel/releases/latest) 页面下载最新版本,根据你的系统选择对应安装包: @@ -65,6 +77,10 @@ ClawPanel 是 [OpenClaw](https://github.com/1186258278/OpenClawChineseTranslatio ## 功能特性 +

+ 功能矩阵 +

+ - **仪表盘** — 系统概览,服务状态实时监控,快捷操作 - **服务管理** — OpenClaw 启停控制、版本检测与一键升级、Gateway 安装/卸载、配置备份与还原 - **模型配置** — 多服务商管理、模型增删改查、批量连通性测试、延迟检测、拖拽排序、自动保存+撤销 @@ -78,6 +94,10 @@ ClawPanel 是 [OpenClaw](https://github.com/1186258278/OpenClawChineseTranslatio ## 功能截图 +

+ ClawPanel 数据概览 +

+

仪表盘

@@ -135,6 +155,10 @@ ClawPanel 是 [OpenClaw](https://github.com/1186258278/OpenClawChineseTranslatio ## 技术架构 +

+ ClawPanel 生态架构 +

+ | 层级 | 技术 | 说明 | |------|------|------| | 前端 | Vanilla JS + Vite | 零框架依赖,轻量快速 | diff --git a/SECURITY.md b/SECURITY.md index bcc15f9..3441855 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -4,8 +4,8 @@ | 版本 | 支持状态 | |------|----------| -| 0.2.x | ✅ 安全更新 | -| < 0.2 | ❌ 不再维护 | +| 0.3.x | ✅ 安全更新 | +| < 0.3 | ❌ 不再维护 | ## 报告安全漏洞 diff --git a/docs/architecture.gif b/docs/architecture.gif new file mode 100644 index 0000000..0f514fe Binary files /dev/null and b/docs/architecture.gif differ diff --git a/docs/feature-showcase.gif b/docs/feature-showcase.gif new file mode 100644 index 0000000..b8ed977 Binary files /dev/null and b/docs/feature-showcase.gif differ diff --git a/docs/index.html b/docs/index.html index 39c4201..d1509a2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,21 +8,21 @@ - + - + - + - + @@ -119,7 +119,7 @@ /* ══════════════ Gradient Text ══════════════ */ .gradient-text { background: linear-gradient(135deg, #6366f1, #a855f7, #22d3ee, #6366f1); background-size: 300% 300%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradShift 6s ease-in-out infinite; position: relative; } @keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } } - .shimmer { position: relative; overflow: hidden; display: inline-block; } + .shimmer { position: relative; overflow: hidden; display: inline-block; vertical-align: baseline; } .shimmer::after { content:''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); animation: shimmer 3s ease-in-out infinite; } @keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } } @@ -283,6 +283,51 @@ .footer-links { display: flex; gap: 24px; } .footer-link { color: var(--text-t); transition: color 0.2s; } .footer-link:hover { color: var(--text-s); } + /* ══════════════ Video Demo Section ══════════════ */ + .video-demo-wrap { max-width: 960px; margin: 0 auto; position: relative; padding: 0 16px; } + .video-demo-wrap::before { content:''; position: absolute; inset: -2px; border-radius: 18px; background: conic-gradient(from var(--border-angle,0deg), #6366f1, #a855f7, #22d3ee, #10b981, #6366f1); z-index: 0; animation: borderSpin 4s linear infinite; opacity: 0.5; } + .video-demo-wrap::after { content:''; position: absolute; inset: -2px; border-radius: 18px; background: conic-gradient(from var(--border-angle,0deg), #6366f1, #a855f7, #22d3ee, #10b981, #6366f1); z-index: 0; animation: borderSpin 4s linear infinite; filter: blur(20px); opacity: 0.3; } + .video-demo-frame { border-radius: 16px; overflow: hidden; position: relative; background: #000; z-index: 1; box-shadow: 0 20px 60px -15px rgba(99,102,241,0.2); transition: box-shadow 0.5s; } + .video-demo-wrap:hover .video-demo-frame { box-shadow: 0 30px 80px -15px rgba(99,102,241,0.35); } + .video-demo-frame video { width: 100%; display: block; } + .video-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); cursor: pointer; transition: background 0.3s; z-index: 2; } + .video-play-overlay:hover { background: rgba(0,0,0,0.15); } + .video-play-overlay.hidden { display: none; } + .play-btn { width: 80px; height: 80px; border-radius: 50%; background: rgba(99,102,241,0.3); backdrop-filter: blur(12px); border: 2px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; transition: transform 0.3s, background 0.3s, box-shadow 0.3s; box-shadow: 0 8px 32px rgba(99,102,241,0.3); } + .play-btn:hover { transform: scale(1.12); background: rgba(99,102,241,0.5); box-shadow: 0 12px 40px rgba(99,102,241,0.5); } + .play-btn svg { width: 32px; height: 32px; fill: #fff; margin-left: 4px; } + .video-demo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; font-size: 13px; color: var(--accent); background: var(--accent-5); border: 1px solid rgba(99,102,241,0.15); margin-bottom: 16px; white-space: nowrap; } + .video-demo-badge svg { width: 14px; height: 14px; flex-shrink: 0; } + .video-demo-glow { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); width: 70%; height: 80px; background: radial-gradient(ellipse, rgba(99,102,241,0.12), transparent 70%); filter: blur(30px); pointer-events: none; z-index: 0; } + html:not(.dark) .video-demo-glow { background: radial-gradient(ellipse, rgba(99,102,241,0.06), transparent 70%); } + + /* ══════════════ Download Section ══════════════ */ + .download-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 32px; } + .download-card { border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card); backdrop-filter: blur(8px); padding: 32px 24px; text-align: center; transition: all 0.35s cubic-bezier(0.16,1,0.3,1); position: relative; overflow: hidden; } + .download-card:hover { transform: translateY(-6px); border-color: var(--border-h); box-shadow: 0 16px 48px -12px rgba(99,102,241,0.18); } + .download-card::before { content:''; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx,50%) var(--my,50%), rgba(99,102,241,0.06), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; } + .download-card:hover::before { opacity: 1; } + .download-icon { font-size: 40px; margin-bottom: 16px; display: block; } + .download-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; } + .download-card .dl-desc { font-size: 13px; color: var(--text-s); margin-bottom: 20px; } + .dl-links { display: flex; flex-direction: column; gap: 8px; } + .dl-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card-s); font-size: 13px; font-weight: 600; color: var(--text); transition: all 0.25s; text-decoration: none; } + .dl-link:hover { border-color: var(--border-h); background: var(--accent-5); color: var(--accent); } + .dl-link .dl-format { font-size: 11px; color: var(--text-t); font-weight: 400; } + .dl-link:hover .dl-format { color: var(--accent); opacity: 0.7; } + .dl-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.4; transition: opacity 0.2s; } + .dl-link:hover svg { opacity: 1; color: var(--accent); } + .download-version { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-5); border: 1px solid rgba(99,102,241,0.15); margin-bottom: 16px; } + .download-version .pulse { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 2s ease-in-out infinite; } + .download-note { font-size: 13px; color: var(--text-t); margin-top: 24px; } + .download-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; } + @media (max-width: 768px) { .download-grid { grid-template-columns: 1fr; } } + + /* ══════════════ Architecture GIF ══════════════ */ + .arch-gif-wrap { max-width: 700px; margin: 0 auto 40px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--card-shadow); transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); } + .arch-gif-wrap:hover { transform: translateY(-4px); } + .arch-gif-wrap img { width: 100%; display: block; } + /* ══════════════ Lightbox ══════════════ */ .lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; cursor: zoom-out; padding: 24px; } .lightbox.active { display: flex; } @@ -337,7 +382,6 @@ -