fix(cli): wire missing launch flags through entrypoint
six flags declared on `LaunchFlags` were silently dropped at the CLI layer — `--role`, `--groups`, `--message-mode`, `--system-prompt`, `--continue`, and `--quiet`. each was honored inside `runLaunch` if it arrived, but the four call sites in the entrypoint forwarded a hardcoded 5-key subset. now forwarded at every entry: bare command, bare invite URL, the launch/connect verb, and the new workspace launch alias. pure plumbing; no behaviour change for users who weren't passing these flags. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -283,6 +283,12 @@ async function main(): Promise<void> {
|
||||
join: normaliseInviteUrl(command),
|
||||
yes: !!flags.y || !!flags.yes,
|
||||
resume: flags.resume as string | undefined,
|
||||
role: flags.role as string | undefined,
|
||||
groups: flags.groups as string | undefined,
|
||||
"message-mode": flags["message-mode"] as string | undefined,
|
||||
"system-prompt": flags["system-prompt"] as string | undefined,
|
||||
continue: !!flags.continue,
|
||||
quiet: !!flags.quiet,
|
||||
}, process.argv.slice(2));
|
||||
return;
|
||||
}
|
||||
@@ -298,6 +304,12 @@ async function main(): Promise<void> {
|
||||
name: flags.name as string | undefined,
|
||||
yes: !!flags.y || !!flags.yes,
|
||||
resume: flags.resume as string | undefined,
|
||||
role: flags.role as string | undefined,
|
||||
groups: flags.groups as string | undefined,
|
||||
"message-mode": flags["message-mode"] as string | undefined,
|
||||
"system-prompt": flags["system-prompt"] as string | undefined,
|
||||
continue: !!flags.continue,
|
||||
quiet: !!flags.quiet,
|
||||
}, process.argv.slice(2));
|
||||
return;
|
||||
}
|
||||
@@ -316,6 +328,12 @@ async function main(): Promise<void> {
|
||||
join: flags.join as string,
|
||||
yes: !!flags.y || !!flags.yes,
|
||||
resume: flags.resume as string,
|
||||
role: flags.role as string,
|
||||
groups: flags.groups as string,
|
||||
"message-mode": flags["message-mode"] as string,
|
||||
"system-prompt": flags["system-prompt"] as string,
|
||||
continue: !!flags.continue,
|
||||
quiet: !!flags.quiet,
|
||||
}, process.argv.slice(2));
|
||||
break;
|
||||
}
|
||||
@@ -336,6 +354,12 @@ async function main(): Promise<void> {
|
||||
join: flags.join as string,
|
||||
yes: !!flags.y || !!flags.yes,
|
||||
resume: flags.resume as string,
|
||||
role: flags.role as string,
|
||||
groups: flags.groups as string,
|
||||
"message-mode": flags["message-mode"] as string,
|
||||
"system-prompt": flags["system-prompt"] as string,
|
||||
continue: !!flags.continue,
|
||||
quiet: !!flags.quiet,
|
||||
}, process.argv.slice(2));
|
||||
}
|
||||
else if (sub === "list" || sub === "ls") { const { runList } = await import("~/commands/list.js"); await runList(); }
|
||||
|
||||
Reference in New Issue
Block a user