Skip to content

Release v0.2.0: 诊断中心、Token分析、飞书集成及安装向导优化#1

Open
lunnynight wants to merge 9 commits into2233admin:mainfrom
lunnynight:main
Open

Release v0.2.0: 诊断中心、Token分析、飞书集成及安装向导优化#1
lunnynight wants to merge 9 commits into2233admin:mainfrom
lunnynight:main

Conversation

@lunnynight
Copy link

@lunnynight lunnynight commented Mar 11, 2026

版本 0.2.0 发布

新增功能

1. 诊断中心 (DiagnosticPage)

  • 自动运行三层检测(Node.js、OpenClaw、配置、网络)
  • 彩色状态卡片(绿色=正常,橙色=警告,红色=错误)
  • 详细发现列表,带建议操作按钮
  • 报告导出(Markdown 格式)
  • 一键复制报告到剪贴板(super_clipboard)

2. Token 分析 (TokenPage)

  • 自动解析 OpenClaw 日志文件(跨平台路径)
  • 统计卡片:总调用次数、总 Token、输入/输出 Token、平均/请求
  • 趋势图:近 7/30/90 天 Token 使用量(LineChart)
  • 模型分布:Top 5 模型使用占比(PieChart)
  • 最近调用表格:时间、模型、输入、输出、总计

3. 飞书集成 (SettingsPage)

  • 配置面板:App ID、App Secret、Webhook URL
  • 连接测试功能
  • 凭证本地持久化存储(shared_preferences)
  • 预留 QQ/钉钉入口

4. 安装向导三态可视化 (SetupPage)

  • 顶部总进度条(0-100%)
  • 5 个步骤卡片:状态图标、当前步骤高亮、可点击跳转
  • 环境检测结果彩色卡片显示
  • Node.js/OpenClaw 安装进度终端输出

5. 版本更新增强 (SettingsPage)

  • 二次确认对话框,红色警告图标
  • 备份选项,自动备份应用文件
  • 下载进度显示
  • 回滚功能

技术栈

  • 图表:fl_chart ^0.68.0
  • 剪贴板:super_clipboard ^0.8.0
  • 状态管理:flutter_riverpod

CI 状态

✅ 所有测试通过

lunnynight and others added 5 commits March 11, 2026 20:00
- 添加 macOS/Linux 平台支持(打开终端、打开目录)
- 修复 ProcessResult.stdout/stderr 类型转换(使用 toString() 替代强制 cast)
- 修复 models_page 中 models.first 空列表崩溃风险
- 修复 preset 数据加载时缺少空值保护
- 修复 TextEditingController 泄漏(对话框关闭后 dispose)
- 移除未使用的 _uptimeTimer 字段
- 修复测试文件匹配新版 UI(CICADA + ProviderScope)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
新增功能:
- 诊断中心: 三层诊断逻辑(Node.js/OpenClaw/配置/网络),带报告导出和复制
- Token分析: 日志解析、趋势图(LineChart)、模型分布(PieChart)、统计卡片
- 飞书集成: Settings页「集成管理」分区,支持AppID/Secret配置和连接测试
- 安装向导: 三态可视化(未开始/进行中/已完成),顶部总进度条
- 版本更新: 二次确认(风险提示)、备份选项、下载进度、回滚功能
- 终端弹窗: 模糊背景、自动滚动、行颜色高亮的TerminalDialog组件

修复:
- 诊断中心导航bug (home_page case 4返回SettingsPage而非DiagnosticPage)

依赖:
- 添加 fl_chart ^0.68.0 (图表)
- 添加 super_clipboard ^0.8.0 (剪贴板)

Claude-Code: Kimi K2.5
@lunnynight lunnynight changed the title fix: 修复多个 bug 和平台兼容性问题 Release v0.2.0: 诊断中心、Token分析、飞书集成及安装向导优化 Mar 15, 2026
- Write complete content for 6 bundled skills (code-review, doc-gen, test-helper, git-helper, refactor, i18n)
- Replace all placeholder content with comprehensive skill documentation
- Each skill includes YAML frontmatter, trigger conditions, examples, and best practices
- Switch to local-only mode (remove ClawHub integration)
- Update skill-sources.json to use bundled skills only
- Remove clawhub CLI calls from skills_page.dart
- Remove remote API calls to registry.clawhub.org
- Clean up unused imports (dart:convert, http)
- Add verification script (verify_skills.sh)
- Add MVP completion report (MVP_COMPLETION.md)

All tests passing (15/15), flutter analyze clean.
Skills are now fully functional and ready for Claude Code integration.
- Windows compilation successful on R9 9950X node
- Build time: 66.1 seconds
- Output: cicada.exe (88KB) + dependencies (~21MB)
- Fixed Rust toolchain issue by reinstalling stable-x86_64-pc-windows-msvc
- All plugins compiled successfully including super_native_extensions

Platform status:
- macOS: ✅ Success
- Windows: ✅ Success
- Android: ⏳ Pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants