@@ -882,6 +882,9 @@ const HELP_BY_COMMAND: Record<string, string> = {
882882 $ ade lanes archive <lane> Archive a lane in ADE
883883 $ ade lanes unarchive <lane> Restore an archived lane
884884 $ ade lanes attach --path <worktree> --name <n> Attach an external worktree
885+ $ ade lanes reparent <lane> --parent <parent> Move lane onto a new parent (runs git rebase)
886+ $ ade lanes reparent <lane> --parent <parent> --stack-base-branch <branch>
887+ Reparent and stack onto a specific branch (e.g. origin/main)
885888 $ ade lanes actions --text List callable lane service methods
886889` ,
887890 git : `${ ADE_BANNER }
@@ -947,6 +950,8 @@ const HELP_BY_COMMAND: Record<string, string> = {
947950 $ ade prs link --lane <lane> --url <pr-url> Map an existing GitHub PR to a lane
948951 $ ade prs checks <pr> --text Show check status
949952 $ ade prs comments <pr> --text Show unresolved review work
953+ $ ade prs github-snapshot --include-external-closed
954+ Include closed external PR history in the GitHub snapshot
950955 $ ade prs inventory <pr> Refresh ADE issue inventory
951956 $ ade prs path-to-merge <pr> --model <model> --max-rounds 3 --no-auto-merge
952957 $ ade prs path-to-merge <pr> --model <model> --conflict-strategy auto --force-finalize conditional
@@ -2478,6 +2483,23 @@ function buildLanePlan(args: string[]): CliPlan {
24782483 readLaneId ( args ) ?? firstPositional ( args ) ,
24792484 "laneId" ,
24802485 ) ;
2486+ const reparentArgs : JsonObject = {
2487+ laneId,
2488+ newParentLaneId :
2489+ readValue ( args , [
2490+ "--parent" ,
2491+ "--parent-lane" ,
2492+ "--parent-lane-id" ,
2493+ ] ) ?? firstPositional ( args ) ,
2494+ } ;
2495+ const stackBaseBranchRef = readValue ( args , [
2496+ "--stack-base-branch" ,
2497+ "--stack-base" ,
2498+ "--base-branch-ref" ,
2499+ ] ) ;
2500+ if ( stackBaseBranchRef != null ) {
2501+ reparentArgs . stackBaseBranchRef = stackBaseBranchRef ;
2502+ }
24812503 return {
24822504 kind : "execute" ,
24832505 label : "lane reparent" ,
@@ -2486,15 +2508,7 @@ function buildLanePlan(args: string[]): CliPlan {
24862508 "result" ,
24872509 "lane" ,
24882510 "reparent" ,
2489- collectGenericObjectArgs ( args , {
2490- laneId,
2491- newParentLaneId :
2492- readValue ( args , [
2493- "--parent" ,
2494- "--parent-lane" ,
2495- "--parent-lane-id" ,
2496- ] ) ?? firstPositional ( args ) ,
2497- } ) ,
2511+ collectGenericObjectArgs ( args , reparentArgs ) ,
24982512 ) ,
24992513 ] ,
25002514 } ;
@@ -3628,7 +3642,13 @@ function buildPrPlan(args: string[]): CliPlan {
36283642 label : "PR mobile snapshot" ,
36293643 steps : [ actionArgsListStep ( "result" , "pr" , "getMobileSnapshot" , [ ] ) ] ,
36303644 } ;
3631- if ( sub === "github-snapshot" )
3645+ if ( sub === "github-snapshot" ) {
3646+ const snapshotArgs : JsonObject = {
3647+ force : readFlag ( args , [ "--force" ] ) ,
3648+ } ;
3649+ if ( readFlag ( args , [ "--include-external-closed" , "--include-closed-external" ] ) ) {
3650+ snapshotArgs . includeExternalClosed = true ;
3651+ }
36323652 return {
36333653 kind : "execute" ,
36343654 label : "PR GitHub snapshot" ,
@@ -3637,12 +3657,11 @@ function buildPrPlan(args: string[]): CliPlan {
36373657 "result" ,
36383658 "pr" ,
36393659 "getGithubSnapshot" ,
3640- collectGenericObjectArgs ( args , {
3641- force : readFlag ( args , [ "--force" ] ) ,
3642- } ) ,
3660+ collectGenericObjectArgs ( args , snapshotArgs ) ,
36433661 ) ,
36443662 ] ,
36453663 } ;
3664+ }
36463665 if ( sub === "conflicts" ) {
36473666 const mode = firstPositional ( args ) ?? "list" ;
36483667 if ( mode === "list" )
@@ -8312,6 +8331,7 @@ const VALUE_CARRIER_FLAGS: ReadonlySet<string> = new Set([
83128331 "--backend",
83138332 "--base",
83148333 "--base-branch",
8334+ "--base-branch-ref",
83158335 "--base-ref",
83168336 "--body",
83178337 "--branch",
@@ -8449,6 +8469,8 @@ const VALUE_CARRIER_FLAGS: ReadonlySet<string> = new Set([
84498469 "--source",
84508470 "--source-lane",
84518471 "--stack",
8472+ "--stack-base",
8473+ "--stack-base-branch",
84528474 "--stack-id",
84538475 "--scheme",
84548476 "--start-point",
0 commit comments