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.
This commit is contained in:
Evan Whittaker
2026-10-22 13:25:32 -05:00
parent 4705c2abaa
commit f3ed35beb5
123 changed files with 3788 additions and 1745 deletions

View File

@@ -31,23 +31,40 @@ fn the_update_steps_are_the_owners_own_commands() {
assert_eq!(InstallSource::Archive.update_steps(), None, "a download has no owner to ask");
}
/// The installer's updater beside the binary marks an installer copy wherever it lives, a
/// `~/.cargo/bin` it was told to use included, and that updater is its update. Without it the
/// path decides, as before.
#[test]
fn the_installers_updater_beside_the_binary_marks_an_installer_copy() {
/// A stand-in `luxe` in `.cargo/bin` under a temp dir, where the path alone says Cargo.
fn luxe_in_cargo_bin() -> (tempfile::TempDir, PathBuf) {
let dir = tempfile::tempdir().expect("tempdir");
let bin = dir.path().join(".cargo/bin");
std::fs::create_dir_all(&bin).expect("bin dir");
let luxe = bin.join(format!("luxe{}", std::env::consts::EXE_SUFFIX));
std::fs::write(&luxe, b"").expect("a stand-in luxe");
assert_eq!(InstallSource::from_install(&luxe), InstallSource::Cargo, "no updater: the path");
(dir, luxe)
}
let updater = bin.join(format!("{INSTALLER_UPDATER}{}", std::env::consts::EXE_SUFFIX));
/// A receipt that names the binary's directory marks an installer copy wherever it lives, a
/// `~/.cargo/bin` it was told to use included. One for another directory does not.
#[test]
fn the_installers_receipt_marks_an_installer_copy() {
let (_dir, luxe) = luxe_in_cargo_bin();
let receipt =
|prefix: &Path| InstallReceipt { install_prefix: prefix.into(), modify_path: true };
let here = receipt(luxe.parent().unwrap());
let elsewhere = receipt(Path::new("/somewhere/else"));
assert_eq!(InstallSource::from_install_with(&luxe, None), InstallSource::Cargo, "the path");
assert_eq!(InstallSource::from_install_with(&luxe, Some(&elsewhere)), InstallSource::Cargo);
assert_eq!(InstallSource::from_install_with(&luxe, Some(&here)), InstallSource::Installer);
}
/// A copy installed with the legacy updater beside it is an installer copy without a receipt too,
/// and its update is `luxe update` rather than the updater.
#[test]
fn the_legacy_updater_beside_the_binary_marks_an_installer_copy() {
let (_dir, luxe) = luxe_in_cargo_bin();
let updater = luxe.with_file_name(format!("{LEGACY_UPDATER}{}", std::env::consts::EXE_SUFFIX));
std::fs::write(&updater, b"").expect("a stand-in updater");
assert_eq!(InstallSource::from_install(&luxe), InstallSource::Installer);
let steps: &[&[&str]] = &[&["luxe-cli-update"]];
assert_eq!(InstallSource::Installer.update_steps(), Some(steps));
assert_eq!(InstallSource::from_install_with(&luxe, None), InstallSource::Installer);
assert_eq!(InstallSource::Installer.update_steps(), None, "no command, luxe runs the script");
assert_eq!(InstallSource::Installer.advice(), "`luxe update`");
}
/// A directory named like the updater is not the updater.
@@ -56,9 +73,9 @@ fn a_directory_named_like_the_updater_does_not_count() {
let dir = tempfile::tempdir().expect("tempdir");
let luxe = dir.path().join("luxe");
std::fs::write(&luxe, b"").expect("a stand-in luxe");
let name = format!("{INSTALLER_UPDATER}{}", std::env::consts::EXE_SUFFIX);
let name = format!("{LEGACY_UPDATER}{}", std::env::consts::EXE_SUFFIX);
std::fs::create_dir(dir.path().join(name)).expect("a directory");
assert_ne!(InstallSource::from_install(&luxe), InstallSource::Installer);
assert_ne!(InstallSource::from_install_with(&luxe, None), InstallSource::Installer);
}
/// Homebrew is checked first because its Linux and Intel-macOS prefixes sit *inside* paths the