Files
PathEditor/CHANGELOG.md
Serendipity 21af2683ac chore: 全面代码审查修复 + 开源标配完善
## 审查修复 (18 项)
- TitleBar 版本号改为动态 import package.json
- CLI profile_apply 加 verify_and_save 原子性保护
- CLI 新增 profile rename 子命令
- cmd_clean 默认清理 system+user 两个 hive
- Rust import_csv 加 BOM/header 处理
- exportToJson/exportToCsv 保留 enabled 状态
- CLI version 使用 env!("CARGO_PKG_VERSION")
- export_paths 返回 Result, 未知格式报错
- importFromContent 未知扩展名 throw Error
- profile 文件名加路径遍历/Win保留字校验
- 数据路径统一到 ~/.patheditor/

## clippy (18 处修复)
- backup/scanner/system/profiles: empty_line_after_doc_comments
- profiles: needless_borrow ×5, unnecessary_map_or
- scanner: collapsible_if
- cli: nonminimal_bool ×6, implicit_saturating_sub, to_string_in_format_args
- 零警告通过

## 测试 (33 条新增)
- Rust: backup(3) + disabled(1) + fs(13) + scanner(4) + profiles(1) = 25 条
- 前端: merge-preview(2) + analyze-dialog(1) + import-parity(5) = 8 条
- Rust 10→35, 前端 72→80

## Scanner 并行化
- std::thread::scope 多线程并行扫描目录,N 倍性能提升

## expand_env_vars UTF-16 修复
- 非法码点编码为 \u{XXXX} 而非静默丢弃

## 开源标配
- CODE_OF_CONDUCT.md (Contributor Covenant 2.1)
- SECURITY.md (漏洞报告流程)
- .github/PULL_REQUEST_TEMPLATE.md
- CONTRIBUTING.md (贡献指南)
- CHANGELOG.md (v4.0~v5.0)

## E2E 测试 (4 条新增)
- keyboard / analyze / profiles / import-export
- IPC mock 扩展 scan/profiles 命令

## CI
- Rust job 目录调整为 workspace 根

## 其他
- rustdoc: 8 个 pub fn 补文档注释
- 帮助文本 v4.0→v5.0
- 前后端导入逻辑加交叉引用注释
- .gitignore 添加 target/

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 01:13:21 +08:00

1.6 KiB

Changelog

5.0.0 (2026-05-29)

Added

  • Cargo workspace 三层架构 (core + gui + cli)
  • CLI 命令行工具,17 条命令,支持 JSON 输出
  • PATH 可执行文件冲突检测 (scan_conflicts)
  • PATH 目录工具清单 (scan_tools)
  • 配置文件管理:保存/加载/应用/重命名/删除
  • 系统+用户合并预览视图
  • CLI 原子性保护:写入前重新读取注册表对比
  • --steps N 参数支持多格移动 (CLI 特有)

Changed

  • Rust + Tauri 2.x + React 19 + TypeScript strict 全重写
  • 撤销/重做系统扩展至 10 种操作类型
  • 禁用状态即时持久化,不依赖保存按钮
  • 深色模式 / 浅色模式 CSS 变量驱动
  • 中英双语界面 (i18next)
  • 备份文件存储路径统一到 ~/.patheditor/
  • 版本号集中管理: Rust 端 Cargo.toml workspace, 前端 package.json

Fixed

  • 非管理员自动进入只读模式
  • 保存失败精确提示哪个注册表 hive 出错 (Promise.allSettled)
  • CLI --system/--user 互斥校验
  • 修改操作后广播 WM_SETTINGCHANGE
  • 深色模式下行选中颜色对比度不足
  • 窗口内容溢出无法滚动

4.2.0

Fixed

  • Release workflow 兼容已存在的 release

4.1.0

Added

  • 路径验证 (红色无效、橙色重复)
  • 环境变量路径悬浮展开预览
  • 全局键盘快捷键
  • 修改状态指示 + 未保存退出确认

4.0.0

Added

  • Tauri 2.x + React + TypeScript 首次发布
  • Windows 系统/用户 PATH 的增删改查
  • 拖拽排序、多选批量删除
  • 实时搜索过滤
  • 导入导出 JSON/CSV/TXT
  • 撤销/重做支持
  • 保存前自动备份注册表