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:
@@ -11,7 +11,7 @@ homepage.workspace = true
|
||||
# Provides LLM provider adapters (OpenAI-compat, Anthropic, Gemini).
|
||||
|
||||
[dependencies]
|
||||
luxe-core = { path = "../luxe-core", version = "0.1.4" }
|
||||
luxe-core = { path = "../luxe-core", version = "0.1.5" }
|
||||
thiserror = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
|
||||
@@ -263,11 +263,11 @@ fn merge_compat(
|
||||
}
|
||||
|
||||
/// Apply one models.dev layer, touching only the fields it actually carries.
|
||||
///
|
||||
/// Its `name` is not one of them: luxe names a model by its id, lower case like every other value
|
||||
/// it shows, so `Claude Opus 5.5` never stands in for `claude-opus-5-5`. Only a name the user
|
||||
/// wrote in config replaces the id ([`apply_config`]).
|
||||
fn apply_dev(info: &mut ModelInfo, from: &mut Provenance, layer: Layer, dev: &Model) {
|
||||
if let Some(name) = &dev.name {
|
||||
info.display_name = Some(name.clone());
|
||||
from.display_name = layer;
|
||||
}
|
||||
if let Some(context) = dev.limit.as_ref().and_then(|l| l.context) {
|
||||
info.context_window = context;
|
||||
from.context_window = layer;
|
||||
|
||||
@@ -95,7 +95,7 @@ fn catalog_supplies_everything_config_omits() {
|
||||
|
||||
assert_eq!(info.context_window, 1_000_000);
|
||||
assert_eq!(info.max_tokens, 128_000);
|
||||
assert_eq!(info.display_name.as_deref(), Some("Claude Opus 5"));
|
||||
assert_eq!(info.display_name, None, "a catalog's prose name is not shown; the id is");
|
||||
assert!(info.reasoning);
|
||||
assert_eq!(info.cost.input, 5.0);
|
||||
assert_eq!(info.cost.cache_read, 0.5);
|
||||
@@ -144,6 +144,23 @@ fn long_prompt_tiers_come_through_from_the_catalog() {
|
||||
assert!(odd.cost.tiers.is_empty(), "a tier on something other than context is not guessed at");
|
||||
}
|
||||
|
||||
/// The UI names a model by its id, as it names everything else, so a catalog's `Claude Opus 5` is
|
||||
/// dropped. A name the user wrote in config is a choice they made, and still shows.
|
||||
#[test]
|
||||
fn only_a_configured_name_replaces_the_id() {
|
||||
let cache = catalog(OPUS_5);
|
||||
let model = ModelConfig { name: Some("opus".into()), ..Default::default() };
|
||||
let sources = Sources { cache: Some(&cache), model: Some(&model), ..<_>::default() };
|
||||
let (named, from) = resolve("anthropic", "claude-opus-5", &sources);
|
||||
assert_eq!(named.display_name.as_deref(), Some("opus"));
|
||||
assert_eq!(from.display_name, Layer::Config);
|
||||
|
||||
let (plain, from) =
|
||||
resolve("anthropic", "claude-opus-5", &Sources { cache: Some(&cache), ..<_>::default() });
|
||||
assert_eq!(plain.display(), "claude-opus-5");
|
||||
assert_ne!(from.display_name, Layer::Cache, "nothing came from the catalog");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cache_overrides_snapshot_and_config_overrides_both() {
|
||||
let snapshot = catalog(
|
||||
@@ -169,7 +186,6 @@ fn cache_overrides_snapshot_and_config_overrides_both() {
|
||||
assert_eq!(from.context_window, Layer::Config);
|
||||
// … the fresher cache wins over the snapshot elsewhere …
|
||||
assert_eq!(info.max_tokens, 128_000);
|
||||
assert_eq!(info.display_name.as_deref(), Some("Claude Opus 5"));
|
||||
assert_eq!(from.max_tokens, Layer::Cache);
|
||||
// … and a field only the snapshot knows still survives when the cache is missing it.
|
||||
let (snap_only, snap_from) = resolve(
|
||||
|
||||
Reference in New Issue
Block a user