Repository navigation
feat: add read-only setup plan preview - #10
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
改动 / What changed
本次为 PathPilot 新增 P1-A 首次初始化规划能力。用户可以在不修改本机配置或目录的情况下,预览受管目录布局及潜在冲突。
主要改动
pathpilot setup plan --root <path> --source <path>命令,支持--json输出。app/core/planning.py,与现有运行时共用 22 项受管目录定义。使用示例
pathpilot setup plan --root "D:\PathPilot" --source "C:\Downloads" --json存在阻断项时,命令返回非零退出码,同时保留可解析的 JSON 输出。
检查 / How it was checked
Codex 已在本地完成以下验证:
--help和阻断状态下的 JSON 输出。.corrupt文件及受管目录。跳过的是现有 Windows 符号链接测试,当前账户缺少创建符号链接所需的权限。
以上结果来自本地验证,GitHub CI 结果以本 PR 实际检查为准。
范围与限制 / Scope and limitations
本次仅实现显式路径的只读规划,不包含:
setup apply或实际目录创建。规划预览不通过创建测试文件判断写入权限。未来应用时必须重新验证目录权限与路径状态。
English Summary
Automatic drive discovery and setup application remain out of scope.