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

@@ -36,7 +36,7 @@ pub struct ChapterCommit {
pub chapter_id: ChapterId,
/// Commit subject line.
pub subject: String,
/// Full commit message including the body and review trailers.
/// Full commit message: the subject, then the body.
pub message: String,
/// Unified diff to stage, always applying cleanly against the reviewed base.
pub patch: String,
@@ -80,8 +80,6 @@ pub fn squashed_commit(
for commit in &commits {
message.push_str(&format!("- {}\n", commit.subject));
}
message.push('\n');
message.push_str(&trailers(review));
Ok(ChapterCommit {
chapter_id: first.chapter_id.clone(),
subject,
@@ -102,19 +100,13 @@ fn chapter_commit(
let subject = bounded_subject(&chapter.title);
// The rationale is the reason the chapter exists; it is precisely what a future reader of the
// log needs and precisely what a diff cannot say.
let mut message = format!("{subject}\n\n{}\n\n", chapter.rationale.trim());
let mut message = format!("{subject}\n\n{}\n", chapter.rationale.trim());
if let Some(impact) = chapter.impact.as_deref().filter(|text| !text.trim().is_empty()) {
message.push_str(&format!("{}\n\n", impact.trim()));
message.push_str(&format!("\n{}\n", impact.trim()));
}
message.push_str(&trailers(review));
Ok(ChapterCommit { chapter_id: chapter.id.clone(), subject, message, patch, skipped })
}
/// Provenance trailers so a commit can be traced back to the review that produced it.
fn trailers(review: &GuidedReview) -> String {
format!("Luxe-review: {}\nLuxe-revision: {}\n", review.id.as_str(), review.revision_id.as_str())
}
fn bounded_subject(title: &str) -> String {
let subject: String = title
.lines()
@@ -282,8 +274,11 @@ mod tests {
assert_eq!(commits[0].subject, "Core implementation");
// The rationale is exactly what a diff cannot say, so it becomes the commit body.
assert!(commits[0].message.contains("Groups source-backed implementation changes."));
assert!(commits[0].message.contains("Luxe-review: review:"));
assert!(commits[0].message.contains("Luxe-revision: revision:"));
// The message is the author's words and nothing else: no luxe ids tacked on the end
assert_eq!(
commits[0].message,
"Core implementation\n\nGroups source-backed implementation changes.\n"
);
assert!(commits[0].patch.contains("--- a/src/lib.rs"));
assert!(!commits[0].patch.contains("tests/lib.rs"), "chapters do not leak into each other");
assert!(commits[1].patch.contains("--- a/tests/lib.rs"));