luxe update and /update, editable question answers, and a version bump owed once per release

- luxe update and /update update Luxe with the command for however it was installed (cargo or
  Homebrew), run one program at a time with the terminal attached, then check that the luxe on
  PATH is the new version. Luxe never downloads or replaces its own binary. The start screen says
  "Update available · /update".
- A question's typed answer edits at its caret: arrows, word jumps, Home, End and Delete work,
  and up and down move through a wrapped answer before leaving it.
- The version check owes a bump once per release: the version on main is the next release, and
  only a released one (a v-tag) has to move.
- Dependency updates arrive through the sync, so Dependabot and the weekly jobs no longer run here.
This commit is contained in:
Evan Whittaker
2026-10-17 14:14:27 -05:00
parent 0e84deb59c
commit bf86df5098
41 changed files with 794 additions and 355 deletions

View File

@@ -11,6 +11,7 @@ pub(crate) mod headless;
mod models_command;
mod rpc;
mod tui;
pub(crate) mod update_command;
mod wire_command;
mod worktree;
@@ -40,6 +41,10 @@ pub(crate) async fn run(mut args: Args) -> anyhow::Result<()> {
if let Some(SubCommand::Docs(docs)) = &args.command {
return docs_command::run(docs);
}
// An update is about this binary, not a project, so it runs from anywhere
if let Some(SubCommand::Update(update)) = &args.command {
return update_command::run(update.check).await;
}
args.validate()?;
// Where the project begins, which is not always where the shell was standing. Everything after
// this — sessions, logs, instructions, the file index, every tool's relative path — is measured
@@ -114,8 +119,8 @@ pub(crate) async fn run(mut args: Args) -> anyhow::Result<()> {
}
SubCommand::Doctor => return run_doctor_command(settings).await,
SubCommand::Wire(wire_args) => return run_wire_command(wire_args),
SubCommand::Docs(_) => {
unreachable!("`luxe docs` returned before a project was entered")
SubCommand::Docs(_) | SubCommand::Update(_) => {
unreachable!("`luxe docs` and `luxe update` return before a project is entered")
}
}
}