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:
@@ -31,18 +31,18 @@ fn review_with(diff: &str) -> GuidedReview {
|
||||
}
|
||||
}
|
||||
|
||||
/// Moving a test, touching CI, or dropping a lint flag is ordinary work, not a call-out: guessing
|
||||
/// "weakened" from those shapes fired on every test moved into its own file.
|
||||
#[test]
|
||||
fn a_disabled_or_deleted_test_is_called_out() {
|
||||
let review = review_with(
|
||||
"diff --git a/src/lib.rs b/src/lib.rs\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -1,1 +1,1 @@\n-#[test]\n+#[ignore]\n",
|
||||
);
|
||||
|
||||
let signals = review_attention(&review);
|
||||
|
||||
assert!(signals.iter().all(|signal| signal.kind == AttentionKind::GateWeakened));
|
||||
let details: Vec<&str> = signals.iter().map(|signal| signal.detail.as_str()).collect();
|
||||
assert!(details.iter().any(|detail| detail.contains("a test was removed")));
|
||||
assert!(details.iter().any(|detail| detail.contains("a test was disabled")));
|
||||
fn gate_shaped_changes_are_not_called_out() {
|
||||
for diff in [
|
||||
"diff --git a/src/lib.rs b/src/lib.rs\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -1,1 +1,2 @@\n-#[test]\n+#[ignore]\n+#![allow(dead_code)]\n",
|
||||
"diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+++ b/.github/workflows/ci.yml\n@@ -1,1 +1,1 @@\n- run: cargo clippy -- -D warnings\n+ run: cargo clippy\n",
|
||||
"diff --git a/deny.toml b/deny.toml\n--- a/deny.toml\n+++ b/deny.toml\n@@ -1,1 +1,1 @@\n-a = 1\n+a = 2\n",
|
||||
] {
|
||||
let signals = review_attention(&review_with(diff));
|
||||
assert!(signals.is_empty(), "{signals:?}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -59,18 +59,6 @@ fn a_committed_credential_outranks_everything_else() {
|
||||
assert!(signals[0].hunk_id.is_some(), "a credential is anchored to its hunk");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ci_and_supply_chain_paths_are_gate_changes_by_definition() {
|
||||
let review = review_with(
|
||||
"diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+++ b/.github/workflows/ci.yml\n@@ -1,1 +1,1 @@\n- run: cargo test\n+ run: cargo test || true\n",
|
||||
);
|
||||
|
||||
let signals = review_attention(&review);
|
||||
|
||||
assert_eq!(signals[0].kind, AttentionKind::GateWeakened);
|
||||
assert!(signals[0].detail.contains("CI or supply-chain gating"));
|
||||
}
|
||||
|
||||
/// An unread edit is a call-out; a change the agent did not make is not. Who wrote a line says
|
||||
/// nothing about whether it needs a decision, and guessing it off the transcript was wrong often
|
||||
/// enough (formatters, pasted files, a path spelled two ways) to hide real work.
|
||||
@@ -112,20 +100,6 @@ fn one_kind_cannot_crowd_out_the_others() {
|
||||
assert!(signals.len() <= 8, "a list a reviewer reads in full: {}", signals.len());
|
||||
}
|
||||
|
||||
/// Prose that mentions a gate has not weakened one.
|
||||
#[test]
|
||||
fn a_document_quoting_a_gate_flag_is_not_a_weakened_gate() {
|
||||
let review = review_with(
|
||||
"diff --git a/PLAN.md b/PLAN.md\n--- a/PLAN.md\n+++ b/PLAN.md\n@@ -1,1 +1,2 @@\n-run clippy with -D warnings\n+run clippy with the warning gate on\n+#[ignore]\n",
|
||||
);
|
||||
|
||||
assert!(
|
||||
review_attention(&review).is_empty(),
|
||||
"documentation is not a gate: {:?}",
|
||||
review_attention(&review)
|
||||
);
|
||||
}
|
||||
|
||||
/// A credential is a credential wherever it lands, including a README.
|
||||
#[test]
|
||||
fn a_credential_in_prose_is_still_reported() {
|
||||
@@ -233,37 +207,6 @@ fn a_random_looking_token_is_still_reported_wherever_it_lands() {
|
||||
}
|
||||
}
|
||||
|
||||
/// A serialized record quotes the very command that enforces the gate. Reporting that as a
|
||||
/// weakened gate is the same category error as reading a changelog as code.
|
||||
#[test]
|
||||
fn a_data_file_quoting_the_lint_gate_is_not_a_weakened_gate() {
|
||||
let review = review_with(
|
||||
"diff --git a/.agent/state.json b/.agent/state.json\n--- a/.agent/state.json\n+++ b/.agent/state.json\n@@ -1,2 +1,2 @@\n {\n- \"gate\": \"cargo clippy --workspace -- -D warnings\"\n+ \"gate\": \"cargo clippy --workspace --all-targets\"\n",
|
||||
);
|
||||
|
||||
let signals = review_attention(&review);
|
||||
|
||||
assert!(
|
||||
!signals.iter().any(|signal| signal.kind == AttentionKind::GateWeakened),
|
||||
"a state file records a command, it does not gate anything: {signals:?}"
|
||||
);
|
||||
}
|
||||
|
||||
/// ...while the same edit to a real gate still counts.
|
||||
#[test]
|
||||
fn dropping_the_lint_gate_from_a_script_is_still_reported() {
|
||||
let review = review_with(
|
||||
"diff --git a/scripts/gate.sh b/scripts/gate.sh\n--- a/scripts/gate.sh\n+++ b/scripts/gate.sh\n@@ -1,2 +1,2 @@\n set -euo pipefail\n-cargo clippy --workspace -- -D warnings\n+cargo clippy --workspace\n",
|
||||
);
|
||||
|
||||
let signals = review_attention(&review);
|
||||
|
||||
assert!(
|
||||
signals.iter().any(|signal| signal.kind == AttentionKind::GateWeakened),
|
||||
"the gate really was relaxed here: {signals:?}"
|
||||
);
|
||||
}
|
||||
|
||||
/// Two hunks of one file tripping the same detector say the same thing, so they are one row.
|
||||
#[test]
|
||||
fn an_exact_repeat_is_listed_once() {
|
||||
|
||||
Reference in New Issue
Block a user