path CLI: modularize fount.ps1/sh, add smoke CI, unify Hub empty states - #275
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
path/fount.{ps1,sh}瘦身为入口,逻辑拆到path/src/(cmd/按子命令、win//unix/平台专用、**/*.uninstall.<lv>.*分级卸载);remove扫描 uninstall 钩子,lv0删安装树。path/src/desktop.{ps1,sh}及对应 uninstall(lv 80)。.github/path-ci/在test_running.yaml新增path-cmd-smokejob(三平台),stub 替换 server/log_viewer 后跑server/background/log/reboot/init。ClearTaskbarProgress;logo dismiss 在 abort 时跳过,避免 resume 竞态。.empty样式、图标集中到emojiSvg.mjs、修正list_empty模板结构、线程抽屉 flex 布局。Test plan
path-cmd-smoke三平台通过fount server/fount background/fount log/fount reboot正常fount init创建桌面快捷方式;fount remove清理 uninstall 链改动
将
pathCLI 重构为轻量入口和path/src/模块。拆分命令路由、平台逻辑、依赖管理、桌面集成、协议注册、自动启动和分级卸载。新增桌面快捷方式及卸载等级 80。新增 Linux、macOS、Windows 三平台path-cmd-smokeCI。修正日志查看器退出清理,并统一 Chat Hub 空状态图标与布局。原因
降低入口复杂度。隔离平台逻辑。统一卸载流程。提高跨平台验证能力。
风险
重构规模过大。模块数量多,加载顺序和隐式依赖会削弱架构清晰度。桌面快捷方式、协议注册、启动项和依赖安装会修改系统状态,平台差异和清理不完整风险明显。CI 通过替换真实入口注入 hook,测试存在环境耦合。Chat Hub 改动较小,但空状态布局仍有视觉回归风险。