refactor(cli): add runtime port seam#135
Conversation
|
测试过可用吗? |
|
解决下冲突 |
|
整体方向是合理的:通过 Runtime 抽象层解耦业务逻辑与 Tauri GUI,为后续 CLI/headless 模式提供了基础。但当前还有几个问题需要在合并前处理。 必须修复
Notification.error({
title: '挂载失败',
content: errorMsg,
duration: 10000,
})现在改成了: getRuntime().notify('error', '挂载失败: ' + errorMsg)这会丢失标题、正文结构和 10 秒显示时长。 建议让 notify(level, message, options?: {
title?: string
duration?: number
})并保留 GUI 模式下原有的显示行为。
新增的 至少需要补充以下测试:
建议修复
还需要支持常见的 64 位安装路径: 最好通过多个候选路径或系统环境/注册表进行检测。
Owner 已经留言要求“解决下冲突”。此外,PR 的 Checks 页面显示 workflow 完成但没有实际 job 执行,需要确认 fork 分支的 workflow 是否正确,以及是否只是 GitHub 对 fork PR 的手动批准限制。冲突解决后应重新运行 typecheck、lint 和 Vitest,并附上实际结果。 全局 |
Summary
Why
This is the first step toward a headless NetMount CLI that automation tools and coding agents can call without launching the GUI or reading internal config files directly.
Test Plan