You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constf=(flag,required,zh,en)=>({ flag, required,desc: { zh, en }})
4
4
constc=(usage,zh,en,args,example,next=null)=>({ usage,summary: { zh, en }, args, example, next })
5
-
constN=f('--name',true,'变更名,如 20260917-feature-x','change name, e.g. 20260917-feature-x')
5
+
constN=f('--name',true,'变更名(shadow-docs/changes/ 下的子目录,如 20260917-feature-x)','change name (subdirectory under shadow-docs/changes/, e.g. 20260917-feature-x)')
6
6
constCF=f('--confirm',true,'写操作显式确认','explicit confirmation for mutating commands')
7
7
constPH=f('--plan-hash',false,'缺省时读取 brief 中持久化的 planHash','defaults to the planHash persisted in the brief')
8
8
constT=f('--title',false,'标题,缺省为变更名','title, defaults to change name')
'branch.plan': c('branch plan','预览建功能分支','plan creating the feature branch',[N],'shadow-dev branch plan --name <n>','branch execute --name {name} --confirm'),
20
-
'branch.execute': c('branch execute','从基线分支创建并切换','create and switch to the feature branch',[N,PH,CF],'shadow-dev branch execute --name <n> --confirm',null),
21
-
'sync.plan': c('sync plan','预览 fast-forward 同步上游','plan a fast-forward sync with upstream',[N],'shadow-dev sync plan --name <n>','sync execute --name {name} --confirm'),
'conflict.inspect': c('conflict inspect','检查与其他 active brief 的文件重叠','check file overlaps with other active briefs',[N],'shadow-dev conflict inspect --name <n>',null),
24
-
'task.list': c('task list','列出 brief 任务清单','list the brief task checklist',[N],'shadow-dev task list --name <n>',null),
25
-
'task.set': c('task set','勾选/取消任务','tick or untick a task',[N,f('--task',true,'任务 id,如 task-3','task id, e.g. task-3'),f('--state',true,'todo|done','todo|done'),CF],'shadow-dev task set --name <n> --task task-1 --state done --confirm',null),
26
-
'review.plan': c('review plan','预览审查记录','plan the review record',[N],'shadow-dev review plan --name <n>','review execute --name {name} --conclusion passed --confirm'),
27
-
'review.execute': c('review execute','写入审查结论与知识评估(任务未全部勾选会被拒绝)','persist review conclusion and knowledge action (blocked until all tasks are done)',[N,f('--conclusion',false,'passed|blocked,默认 passed','passed|blocked, default passed'),f('--knowledge',false,'新增|更新|废弃|无需变更','knowledge action: 新增|更新|废弃|无需变更'),f('--target',false,'知识卡片路径','knowledge card path'),f('--reason',false,'知识动作理由','knowledge action reason'),PH,CF],'shadow-dev review execute --name <n> --conclusion passed --confirm',null),
'commit.execute': c('commit execute','提交并写 checkpoint(参数须与 plan 完全一致)','commit and write checkpoint (args must match the plan exactly)',[N,FI,M,PH,CF],'shadow-dev commit execute --name <n> --files a.mjs --message "fix: x" --confirm',null),
30
-
'publish.plan': c('publish plan','预览推送分支并创建/复用 PR','plan pushing the branch and creating/reusing the PR',[N,T,B],'shadow-dev publish plan --name <n> --title "标题"','publish execute --name {name} --title "{title}" --body "{body}" --confirm'),
31
-
'publish.execute': c('publish execute','推送分支并创建/复用 PR(参数须与 plan 完全一致)','push and create/reuse the PR (args must match the plan exactly)',[N,T,B,PH,CF],'shadow-dev publish execute --name <n> --confirm','archive plan --name {name}'),
'release.execute': c('release execute','执行复合发布(缺省参数回退 brief workflow.release)','run the composite release (params default to the stored workflow.release plan)',[N,FI,M,T,B,PH,CF],'shadow-dev release execute --name <n> --confirm','archive plan --name {name}'),
34
-
'pr.inspect': c('pr inspect','查看 brief 关联 PR','inspect the PR linked to the brief',[N],'shadow-dev pr inspect --name <n>',null),
35
-
'reconcile.plan': c('reconcile plan','预览 brief 状态与实际进度对齐','plan reconciling brief state with actual progress',[N],'shadow-dev reconcile plan --name <n>','reconcile execute --name {name} --confirm'),
'branch.plan': c('branch plan','预览建功能分支','plan creating the feature branch',[N],'shadow-dev branch plan --name <change-name>','branch execute --name {name} --confirm'),
21
+
'branch.execute': c('branch execute','从基线分支创建并切换','create and switch to the feature branch',[N,PH,CF],'shadow-dev branch execute --name <change-name> --confirm',null),
22
+
'sync.plan': c('sync plan','预览 fast-forward 同步上游','plan a fast-forward sync with upstream',[N],'shadow-dev sync plan --name <change-name>','sync execute --name {name} --confirm'),
'conflict.inspect': c('conflict inspect','检查与其他 active brief 的文件重叠','check file overlaps with other active briefs',[N],'shadow-dev conflict inspect --name <change-name>',null),
25
+
'task.list': c('task list','列出 brief 任务清单','list the brief task checklist',[N],'shadow-dev task list --name <change-name>',null),
26
+
'task.set': c('task set','勾选/取消任务','tick or untick a task',[N,f('--task',true,'任务 id,如 task-3','task id, e.g. task-3'),f('--state',true,'todo|done','todo|done'),CF],'shadow-dev task set --name <change-name> --task task-1 --state done --confirm',null),
27
+
'review.plan': c('review plan','预览审查记录','plan the review record',[N],'shadow-dev review plan --name <change-name>','review execute --name {name} --conclusion passed --confirm'),
28
+
'review.execute': c('review execute','写入审查结论与知识评估(任务未全部勾选会被拒绝)','persist review conclusion and knowledge action (blocked until all tasks are done)',[N,f('--conclusion',false,'passed|blocked,默认 passed','passed|blocked, default passed'),f('--knowledge',false,'新增|更新|废弃|无需变更','knowledge action: 新增|更新|废弃|无需变更'),f('--target',false,'知识卡片路径','knowledge card path'),f('--reason',false,'知识动作理由','knowledge action reason'),PH,CF],'shadow-dev review execute --name <change-name> --conclusion passed --confirm',null),
'commit.execute': c('commit execute','提交并写 checkpoint(参数须与 plan 完全一致)','commit and write checkpoint (args must match the plan exactly)',[N,FI,M,PH,CF],'shadow-dev commit execute --name <change-name> --files a.mjs --message "fix: x" --confirm',null),
31
+
'publish.plan': c('publish plan','预览推送分支并创建/复用 PR','plan pushing the branch and creating/reusing the PR',[N,T,B],'shadow-dev publish plan --name <change-name> --title "标题"','publish execute --name {name} --title "{title}" --body "{body}" --confirm'),
32
+
'publish.execute': c('publish execute','推送分支并创建/复用 PR(参数须与 plan 完全一致)','push and create/reuse the PR (args must match the plan exactly)',[N,T,B,PH,CF],'shadow-dev publish execute --name <change-name> --confirm','archive plan --name {name}'),
'release.execute': c('release execute','执行复合发布(缺省参数回退 brief workflow.release)','run the composite release (params default to the stored workflow.release plan)',[N,FI,M,T,B,PH,CF],'shadow-dev release execute --name <change-name> --confirm','archive plan --name {name}'),
35
+
'pr.inspect': c('pr inspect','查看 brief 关联 PR','inspect the PR linked to the brief',[N],'shadow-dev pr inspect --name <change-name>',null),
36
+
'reconcile.plan': c('reconcile plan','预览 brief 状态与实际进度对齐','plan reconciling brief state with actual progress',[N],'shadow-dev reconcile plan --name <change-name>','reconcile execute --name {name} --confirm'),
'archive.execute': c('archive execute','移入 archive 并重建 INDEX','move into archive and rebuild INDEX',[N,PH,CF],'shadow-dev archive execute --name <change-name> --confirm',null),
39
40
'index.rebuild.plan': c('index rebuild plan','预览变更索引重建','plan rebuilding the change index',[],'shadow-dev index rebuild plan','index rebuild execute --plan-hash {planHash} --confirm'),
40
41
'index.rebuild.execute': c('index rebuild execute','重建 INDEX.md(无 brief 域,--plan-hash 为唯一凭证)','rebuild INDEX.md (briefless command: --plan-hash is the only credential)',[f('--plan-hash',true,'index rebuild plan 的输出','hash from index rebuild plan'),CF],'shadow-dev index rebuild execute --plan-hash <hash> --confirm',null),
0 commit comments