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
+1 -1
View File
@@ -819,7 +819,7 @@ pub async fn run_repl_command(
".temp-role" => match args {
Some(text) => {
let app = Arc::clone(&ctx.app.config);
ctx.use_prompt(app.as_ref(), text)?;
ctx.use_temp_role(app.as_ref(), text)?;
}
None => println!("Usage: .temp-role <text>..."),
},