Luxe 0.1.3: your sessions on your phone, joinable sessions, and nested AGENTS.md
- luxe remote puts the sessions on your computer in reach of your own phone or tablet over Tailscale: write, steer, answer prompts, send photos, browse files, diffs and GitHub, with a paired device and your own Tailscale login. - luxe join lets another program on the same machine join a running session over the RPC protocol. - An AGENTS.md in a subfolder reaches the model the first time it works there. - Long sessions stay fast: no stall before each model call, lighter memory, cheaper drawing. - A session is open in one Luxe at a time, web_search shares results across its phrasings, and a grep glob starting with ! excludes. The CHANGELOG has the full list.
This commit is contained in:
@@ -223,3 +223,44 @@ fn an_unconfigured_machine_has_no_models_to_choose_between() {
|
||||
);
|
||||
drop(dir);
|
||||
}
|
||||
|
||||
/// A choice names the model as `select_model` takes it, and offers the levels it honors as they
|
||||
/// are: only `off` for a model that doesn't reason, and nothing it would quietly clamp.
|
||||
///
|
||||
/// The break this catches: offering every level for every model, so a phone sets `ultra` and the
|
||||
/// engine silently runs `high`; or sending the display name where `select_model` wants the id.
|
||||
#[test]
|
||||
fn a_choice_offers_only_the_levels_its_model_honors() {
|
||||
use luxe_core::provider::ThinkingLevel::{High, Low, Medium, Minimal, Off};
|
||||
let mut info = ModelInfo {
|
||||
r#ref: luxe_core::provider::ModelRef::new("anthropic", "claude-sonnet-5"),
|
||||
display_name: Some("Claude Sonnet 5".into()),
|
||||
reasoning: false,
|
||||
..Default::default()
|
||||
};
|
||||
let plain = choice(&info);
|
||||
assert_eq!((plain.provider.as_str(), plain.model.as_str()), ("anthropic", "claude-sonnet-5"));
|
||||
assert_eq!(plain.name, "Claude Sonnet 5");
|
||||
assert_eq!(plain.thinking_levels, [Off]);
|
||||
info.reasoning = true;
|
||||
assert_eq!(choice(&info).thinking_levels, [Off, Minimal, Low, Medium, High]);
|
||||
}
|
||||
|
||||
/// A row only guessed for an endpoint that hasn't said what it serves isn't offered.
|
||||
///
|
||||
/// The break this catches: a phone offering an Azure resource deployments it doesn't have, which
|
||||
/// fail on the first turn.
|
||||
#[test]
|
||||
fn a_guessed_row_isnt_offered() {
|
||||
let entry = |id: &str, unverified: bool| ModelEntry {
|
||||
info: ModelInfo {
|
||||
r#ref: luxe_core::provider::ModelRef::new("azure", id),
|
||||
..Default::default()
|
||||
},
|
||||
label: id.into(),
|
||||
configured: false,
|
||||
unverified,
|
||||
};
|
||||
let offered = offered(&[entry("served", false), entry("guessed", true)]);
|
||||
assert_eq!(offered.iter().map(|choice| choice.model.as_str()).collect::<Vec<_>>(), ["served"]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user