feat(cli)!: rename --prompt to --temp-role

Completes the .prompt/.temp-role split: --prompt set an ad-hoc system
role, which is what .temp-role now means everywhere. The --prompt name
is left unbound so a future one-shot MCP prompt flag can take it with
properly designed non-interactive semantics. use_prompt follows the
rename as use_temp_role.

BREAKING CHANGE: invocations using --prompt <text> must switch to
--temp-role <text>; clap rejects the old flag loudly.
This commit is contained in:
2026-08-25 12:04:45 -06:00
parent e55120dac6
commit 3c9f443bce
4 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -380,8 +380,8 @@ async fn run(
.await?;
} else {
let app: Arc<AppConfig> = Arc::clone(&ctx.app.config);
if let Some(prompt) = &cli.prompt {
ctx.use_prompt(app.as_ref(), prompt)?;
if let Some(prompt) = &cli.temp_role {
ctx.use_temp_role(app.as_ref(), prompt)?;
} else if let Some(name) = &cli.role {
ctx.use_role(app.as_ref(), name, abort_signal.clone())
.await?;