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.
2026-10-17 14:14:27 -05:00
|
|
|
//! `luxe update` — run the update this install's owner provides, then check that it took.
|
|
|
|
|
//!
|
|
|
|
|
//! The policy is [`luxe_core::update`]'s: which owner installed this copy, which commands update
|
2026-10-20 13:51:34 -05:00
|
|
|
//! it, and a refusal where luxe cannot know them. This runs those commands one program at a time
|
luxe 0.1.5: a provider picker, model ids, and a guided review that says less
The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark.
The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone.
luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur.
rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
2026-10-22 13:25:32 -05:00
|
|
|
//! with the terminal attached, so the reader sees the package manager's own output. A copy luxe's
|
|
|
|
|
//! installer script put there is updated by running that script again ([`installer`]). Either way
|
|
|
|
|
//! luxe never writes a binary itself. `/update` on the dashboard comes here too, once the TUI has
|
|
|
|
|
//! handed the terminal back.
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
|
|
|
|
|
use anyhow::{anyhow, bail, Context};
|
|
|
|
|
use luxe_core::update::{self, InstallSource};
|
|
|
|
|
use std::path::{Path, PathBuf};
|
|
|
|
|
|
2026-10-20 13:51:34 -05:00
|
|
|
pub(crate) use aside::remove_leftover;
|
|
|
|
|
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
/// Checks for a newer release now and, unless `check_only`, runs the update and checks the result.
|
|
|
|
|
pub(crate) async fn run(check_only: bool) -> anyhow::Result<()> {
|
|
|
|
|
let current = luxe_core::version::VERSION;
|
|
|
|
|
let latest = crate::update_check::check_now()
|
|
|
|
|
.await
|
|
|
|
|
.map_err(|error| anyhow!("could not check for a newer release: {error}"))?;
|
|
|
|
|
if !update::is_newer(&latest, current) {
|
2026-10-20 13:51:34 -05:00
|
|
|
println!("luxe {current} is the newest release.");
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
return Ok(());
|
|
|
|
|
}
|
2026-10-20 13:51:34 -05:00
|
|
|
println!("luxe {latest} is available (you have {current}).");
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
let source = InstallSource::detect();
|
luxe 0.1.5: a provider picker, model ids, and a guided review that says less
The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark.
The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone.
luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur.
rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
2026-10-22 13:25:32 -05:00
|
|
|
match route(source, check_only) {
|
|
|
|
|
Some(route) => update_with(route, &latest).await,
|
|
|
|
|
None => {
|
2026-10-20 13:51:34 -05:00
|
|
|
println!("{}", instructions(source, check_only));
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
Ok(())
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
luxe 0.1.5: a provider picker, model ids, and a guided review that says less
The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark.
The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone.
luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur.
rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
2026-10-22 13:25:32 -05:00
|
|
|
/// How `luxe update` updates a copy.
|
|
|
|
|
#[derive(Debug, PartialEq, Eq)]
|
|
|
|
|
enum Route {
|
|
|
|
|
/// The owner's own commands, in order
|
|
|
|
|
Steps(&'static [&'static [&'static str]]),
|
|
|
|
|
/// The release's installer script, run again over this copy
|
|
|
|
|
Installer,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// The route for `source`, or `None` when luxe only says what to do: the reader asked just to
|
|
|
|
|
/// check, or no owner's update is known.
|
|
|
|
|
fn route(source: InstallSource, check_only: bool) -> Option<Route> {
|
|
|
|
|
if check_only {
|
|
|
|
|
return None;
|
|
|
|
|
}
|
|
|
|
|
match source {
|
|
|
|
|
InstallSource::Installer => Some(Route::Installer),
|
|
|
|
|
_ => source.update_steps().map(Route::Steps),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Updates this copy by `route`, then checks the `luxe` a shell finds now.
|
2026-10-20 13:51:34 -05:00
|
|
|
///
|
|
|
|
|
/// Windows won't let a running program's file be overwritten, and `luxe update` is itself a
|
|
|
|
|
/// running luxe. It does allow a rename, so the running copy steps aside first and the owner
|
|
|
|
|
/// writes a new file where it was.
|
luxe 0.1.5: a provider picker, model ids, and a guided review that says less
The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark.
The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone.
luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur.
rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
2026-10-22 13:25:32 -05:00
|
|
|
async fn update_with(route: Route, latest: &str) -> anyhow::Result<()> {
|
2026-10-20 13:51:34 -05:00
|
|
|
let exe = std::env::current_exe().context("could not find the running luxe")?;
|
|
|
|
|
let aside = match cfg!(windows) {
|
|
|
|
|
true => Some(aside::MovedAside::move_running(&exe)?),
|
|
|
|
|
false => None,
|
|
|
|
|
};
|
luxe 0.1.5: a provider picker, model ids, and a guided review that says less
The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark.
The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone.
luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur.
rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
2026-10-22 13:25:32 -05:00
|
|
|
let ran = match &route {
|
|
|
|
|
Route::Steps(steps) => run_steps(steps).await,
|
|
|
|
|
Route::Installer => installer::run(latest, &exe).await,
|
|
|
|
|
};
|
2026-10-20 13:51:34 -05:00
|
|
|
if let Some(aside) = &aside {
|
|
|
|
|
aside.restore_if_missing()?;
|
|
|
|
|
}
|
|
|
|
|
ran?;
|
luxe 0.1.5: a provider picker, model ids, and a guided review that says less
The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark.
The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone.
luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur.
rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
2026-10-22 13:25:32 -05:00
|
|
|
if route == Route::Installer {
|
|
|
|
|
installer::remove_legacy_updater(&exe);
|
|
|
|
|
}
|
2026-10-20 13:51:34 -05:00
|
|
|
report(installed_now(latest, &exe).await)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// What to tell a reader luxe will not run an update for: they asked only to check, or no owner's
|
|
|
|
|
/// command is known.
|
|
|
|
|
fn instructions(source: InstallSource, check_only: bool) -> String {
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
match source.update_command() {
|
|
|
|
|
Some(_) if check_only => format!("Run `luxe update`, or {}.", source.advice()),
|
|
|
|
|
_ => format!("To update: {}.", source.advice()),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
luxe 0.1.5: a provider picker, model ids, and a guided review that says less
The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark.
The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone.
luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur.
rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
2026-10-22 13:25:32 -05:00
|
|
|
/// Runs each step in turn, the terminal attached, stopping at the first that fails.
|
|
|
|
|
async fn run_steps(steps: &[&[&str]]) -> anyhow::Result<()> {
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
for step in steps {
|
|
|
|
|
let Some((program, args)) = step.split_first() else { continue };
|
|
|
|
|
let line = step.join(" ");
|
|
|
|
|
println!("Running: {line}");
|
luxe 0.1.5: a provider picker, model ids, and a guided review that says less
The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark.
The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone.
luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur.
rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
2026-10-22 13:25:32 -05:00
|
|
|
let status = tokio::process::Command::new(program)
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
.args(args)
|
|
|
|
|
.status()
|
|
|
|
|
.await
|
|
|
|
|
.with_context(|| format!("could not start `{program}`"))?;
|
|
|
|
|
if !status.success() {
|
2026-10-20 13:51:34 -05:00
|
|
|
bail!("`{line}` failed ({status}), so luxe is unchanged");
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Ok(())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// How the update landed, read from the `luxe` a shell would run now.
|
|
|
|
|
#[derive(Debug, PartialEq, Eq)]
|
|
|
|
|
enum Outcome {
|
|
|
|
|
/// It reports the new version
|
|
|
|
|
Updated,
|
|
|
|
|
/// `PATH` finds another copy first: the update went to one file and the shell runs another
|
|
|
|
|
Shadowed { found: PathBuf, updated: PathBuf },
|
|
|
|
|
/// The same copy still reports an older version: the package did not have the release yet
|
|
|
|
|
NotYet { reported: String },
|
|
|
|
|
/// No `luxe` on `PATH`, or none that says its version
|
|
|
|
|
Unknown,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Judges the result from what was found on `PATH`, the copy that ran the update, what the found
|
|
|
|
|
/// one reports, and the version the update was for.
|
|
|
|
|
fn outcome(found: Option<&Path>, updated: &Path, reported: Option<&str>, latest: &str) -> Outcome {
|
|
|
|
|
let Some(found) = found else { return Outcome::Unknown };
|
|
|
|
|
if reported.is_some_and(|reported| !update::is_newer(latest, reported)) {
|
|
|
|
|
return Outcome::Updated;
|
|
|
|
|
}
|
|
|
|
|
let same = |a: &Path, b: &Path| {
|
|
|
|
|
a.canonicalize().ok().zip(b.canonicalize().ok()).is_some_and(|(a, b)| a == b)
|
|
|
|
|
};
|
|
|
|
|
if !same(found, updated) {
|
|
|
|
|
return Outcome::Shadowed { found: found.to_path_buf(), updated: updated.to_path_buf() };
|
|
|
|
|
}
|
|
|
|
|
match reported {
|
|
|
|
|
Some(reported) => Outcome::NotYet { reported: reported.to_string() },
|
|
|
|
|
None => Outcome::Unknown,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-20 13:51:34 -05:00
|
|
|
/// The `luxe` a shell would run now, and the outcome it shows. `updated` is where the running copy
|
|
|
|
|
/// was, read before a Windows update moved it aside.
|
|
|
|
|
async fn installed_now(latest: &str, updated: &Path) -> Outcome {
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
let found = luxe_core::program::resolve("luxe");
|
|
|
|
|
let reported = match &found {
|
|
|
|
|
Some(path) => version_of(path).await,
|
|
|
|
|
None => None,
|
|
|
|
|
};
|
2026-10-20 13:51:34 -05:00
|
|
|
outcome(found.as_deref(), updated, reported.as_deref(), latest)
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// The version `path --version` prints, as `luxe 0.2.0`.
|
|
|
|
|
async fn version_of(path: &Path) -> Option<String> {
|
|
|
|
|
let output = tokio::process::Command::new(path).arg("--version").output().await.ok()?;
|
|
|
|
|
parse_version(&String::from_utf8_lossy(&output.stdout))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// The version in `--version` output: its last word, when that is semver.
|
|
|
|
|
fn parse_version(output: &str) -> Option<String> {
|
|
|
|
|
let word = update::normalize_version(output.split_whitespace().last()?);
|
|
|
|
|
semver::Version::parse(word).is_ok().then(|| word.to_string())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Says how it went; an update that did not take effect is an error, so a script can tell.
|
|
|
|
|
fn report(outcome: Outcome) -> anyhow::Result<()> {
|
|
|
|
|
match outcome {
|
|
|
|
|
Outcome::Updated => println!("Updated. Start the new version with `luxe`."),
|
|
|
|
|
Outcome::Unknown => println!("The update finished. `luxe --version` will confirm it."),
|
|
|
|
|
Outcome::Shadowed { found, updated } => bail!(
|
|
|
|
|
"the update went to {}, but `luxe` on your PATH is {}; remove that copy, or put the \
|
|
|
|
|
updated one's directory first on PATH",
|
|
|
|
|
updated.display(),
|
|
|
|
|
found.display()
|
|
|
|
|
),
|
|
|
|
|
Outcome::NotYet { reported } => bail!(
|
|
|
|
|
"the update finished, but `luxe --version` still says {reported}; the new release may \
|
|
|
|
|
not have reached your package manager yet, so try again in a while"
|
|
|
|
|
),
|
|
|
|
|
}
|
|
|
|
|
Ok(())
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-20 13:51:34 -05:00
|
|
|
mod aside;
|
luxe 0.1.5: a provider picker, model ids, and a guided review that says less
The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark.
The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone.
luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur.
rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
2026-10-22 13:25:32 -05:00
|
|
|
mod installer;
|
2026-10-20 13:51:34 -05:00
|
|
|
|
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.
2026-10-17 14:14:27 -05:00
|
|
|
#[cfg(test)]
|
|
|
|
|
mod tests;
|