luxe 0.1.4: remembered models, wheel-driven lists, and a steadier phone app

- luxe starts on the model you last chose in this project, then the last one anywhere. Signing in
  opens the model picker instead of choosing for you.
- Every list in a modal takes the mouse wheel and a draggable scrollbar.
- The phone app shows reasoning in full, stays put while you read back through a long session, and
  shows a question's answer on its card.
- On Windows, luxe update replaces the running luxe, and a signed-in install no longer sees setup
  again.
- The file tree no longer shows "engine busy" in a large project, loop output is easier to follow,
  and the name is written lowercase.

The CHANGELOG has the full list.
This commit is contained in:
Evan Whittaker
2026-10-20 13:51:34 -05:00
parent 6184aa21fb
commit a0666d6c81
591 changed files with 4926 additions and 2942 deletions

View File

@@ -211,7 +211,7 @@ impl ToolActivity {
}
}
/// Whether a tool is Luxe's own housekeeping rather than work someone asked for.
/// Whether a tool is luxe's own housekeeping rather than work someone asked for.
///
/// Only [`crate::tool::ACTIVATE_TOOLS_NAME`], and only because *we* tier the registry: the model
/// asks for a deferred tool's schema before it can call it, which is a fact about our request

View File

@@ -189,7 +189,7 @@ pub enum LoginScope {
/// Every configurable provider, with every method it offers.
#[default]
Any,
/// Providers whose subscription Luxe is allowed to sign in to.
/// Providers whose subscription luxe is allowed to sign in to.
Subscription,
/// Providers that take a key you already have.
ApiKey,
@@ -360,8 +360,6 @@ pub struct LoginOutcome {
/// A local server takes no credential, and "API key" would be a claim the file contradicts.
pub kind: Option<CredentialKind>,
pub account: Option<String>,
/// A model id worth defaulting to, when the flow learned one.
pub suggested_model: Option<String>,
/// Factual summary lines about what now exists (e.g. "17 models available").
pub notes: Vec<String>,
/// Advice that only makes sense once the credential exists, shown apart from the summary.

View File

@@ -1,7 +1,7 @@
//! Briefs — the messages Luxe writes to the agent itself, told apart from the reader's own.
//! Briefs — the messages luxe writes to the agent itself, told apart from the reader's own.
//!
//! A draft, a question from a review and a batch of review comments each reach the agent as a
//! user message Luxe composed: the instructions, the evidence, the IDs a report has to echo. The
//! user message luxe composed: the instructions, the evidence, the IDs a report has to echo. The
//! transcript is the reader's conversation, and a page of plumbing in their own colors reads as
//! something they said. So a front-end shows one line saying what happened instead — or, for a
//! question from a review, just the question, since those words *are* the reader's — and the
@@ -90,7 +90,7 @@ const FINDING_ID: &str = " Finding ID: ";
const EVIDENCE: &str = " Evidence: ";
const REVIEWER: &str = " Reviewer: ";
/// The lines that follow a comment's body; none of them is the reader's question.
const AFTER_BODY: [&str; 4] = [" Source: ", " Proposed fix: ", " Agent: ", " Luxe: "];
const AFTER_BODY: [&str; 4] = [" Source: ", " Proposed fix: ", " Agent: ", " luxe: "];
/// How review feedback closes.
const CLOSING: &str = "Do not rewrite unrelated code.";
@@ -158,7 +158,7 @@ pub fn review_questions(text: &str) -> Vec<ReviewQuestion> {
/// How a draft's fence opens, its newline included.
const DRAFT_FENCE: &str = "```luxe-draft\n";
/// An answer as the reader sees it: without what the agent wrote for Luxe to read.
/// An answer as the reader sees it: without what the agent wrote for luxe to read.
///
/// A fix's remediation report goes, since the review shows it comment by comment, and the prose
/// around it stays. An answer carrying a draft goes whole: the draft opens in the card or composer

View File

@@ -14,7 +14,7 @@
//!
//! # Design
//!
//! Same policy as Pi's, checked against Luxe's own ledgers:
//! Same policy as Pi's, checked against luxe's own ledgers:
//!
//! - **While a turn runs** the next request is certain, so a refresh pays whenever a read costs
//! less than the write it saves. Across 2,980 recorded Claude calls this rescued 12 of 14 waits

View File

@@ -32,7 +32,7 @@ pub fn estimate_message_tokens(messages: &[Message]) -> u64 {
/// Estimate the tokens a request spends before any conversation: the system prompt and the tool
/// schemas.
///
/// Far from negligible — Luxe's harness plus two dozen JSON schemas is tens of thousands of
/// Far from negligible — luxe's harness plus two dozen JSON schemas is tens of thousands of
/// tokens, and leaving it out of a prompt figure is how a request that "fits" turns into a 400.
pub fn estimate_prefix_tokens(system: Option<&str>, tools: &[ToolSchema]) -> u64 {
let system = system.map(|text| text.len() as u64 / 4).unwrap_or(0);
@@ -176,7 +176,7 @@ pub fn usable_context_window(context_window: u64, max_tokens: u32, reserve_token
/// percent on a 200K prompt is thousands of tokens out. Mirrors Pi's margin.
pub const CONTEXT_SAFETY_TOKENS: u32 = 4_096;
/// The smallest output cap Luxe will ask for once the window is full. Useless as an answer, but a
/// The smallest output cap luxe will ask for once the window is full. Useless as an answer, but a
/// request that asks for zero (or a negative) output is a hard rejection rather than a short reply.
const MIN_MAX_TOKENS: u32 = 1;

View File

@@ -2,7 +2,7 @@
//!
//! Loads `~/.config/luxe/config.json` (global) and `<repo>/.luxe/config.json`
//! (project-local), merges them (project wins), and falls back to defaults on any
//! parse error. Unknown fields are ignored so a newer Luxe's config keeps working
//! parse error. Unknown fields are ignored so a newer luxe's config keeps working
//! with an older build and vice versa.
//!
//! The schema is published via [`Config::schema_json`] for editor autocomplete
@@ -31,7 +31,7 @@ pub use integrations::*;
use merge::{merge_color_overrides, merge_disabled};
pub use write::{value_at, ConfigLayers, ConfigWriteError, Layer};
/// The theme a launch lands on when nothing else decides: Luxe's own.
/// The theme a launch lands on when nothing else decides: luxe's own.
///
/// A default theme is the product's face, so it is the one drawn for it rather than a neutral
/// stand-in. An explicit setting and a matching desktop theme both still win.
@@ -75,7 +75,7 @@ pub struct Config {
/// use default (silent), because a modern terminal turns a bell into a window-manager attention
/// request, which pulls focus off whatever the reader walked away to do.
pub bell: Option<bool>,
/// Report the agent's state to herdr when Luxe runs in one of its panes. `None` = use default
/// Report the agent's state to herdr when luxe runs in one of its panes. `None` = use default
/// (on).
pub herdr: Option<bool>,
/// Let another front-end on this machine join a running session. `None` = use default (on).
@@ -105,9 +105,9 @@ pub struct Config {
pub compaction: CompactionConfig,
/// Language-server behavior
pub lsp: LspConfig,
/// Whether Luxe checks for a newer release
/// Whether luxe checks for a newer release
pub update: UpdateConfig,
/// How Luxe keeps up with GitHub
/// How luxe keeps up with GitHub
pub github: GithubConfig,
/// Whether sessions work in worktrees of their own
pub worktree: WorktreeConfig,
@@ -137,7 +137,7 @@ impl Config {
}
}
/// Whether Luxe opens on the start screen (default: yes).
/// Whether luxe opens on the start screen (default: yes).
pub fn dashboard_shown(&self) -> bool {
!matches!(self.dashboard, Some(DashboardSetting::Enabled(false)))
}
@@ -186,7 +186,7 @@ impl Config {
self.notifications.as_ref().is_some_and(Notifications::any)
}
/// Whether the agent's state is reported to herdr when Luxe runs inside it (default: yes).
/// Whether the agent's state is reported to herdr when luxe runs inside it (default: yes).
pub fn herdr(&self) -> bool {
self.herdr.unwrap_or(true)
}
@@ -202,7 +202,7 @@ impl Config {
/// Resolves the active theme name, falling back to the current desktop theme when known.
///
/// An explicit Luxe setting always wins. Without one, the desktop's theme is used when the
/// An explicit luxe setting always wins. Without one, the desktop's theme is used when the
/// registry carries one (Omarchy's, see [`crate::omarchy`]), because matching the desktop beats
/// showing off, and anything else lands on [`DEFAULT_THEME`].
pub fn resolved_theme_name(&self, registry: &ThemeRegistry) -> String {
@@ -242,7 +242,7 @@ impl Config {
resolved
}
/// The JSON Schema for the config files: the checked-in `config.schema.json`, which Luxe writes
/// The JSON Schema for the config files: the checked-in `config.schema.json`, which luxe writes
/// beside the user's config so an editor can complete and check every key.
pub fn schema_json() -> &'static str {
include_str!("config/config.schema.json")
@@ -349,7 +349,7 @@ mod activity_bar_config_tests {
assert_eq!(config.theme.as_deref(), Some("nord"), "and the rest of the file still lands");
}
/// A source's kind is the one set, or its name folded; it may not take one of Luxe's own tabs',
/// A source's kind is the one set, or its name folded; it may not take one of luxe's own tabs',
/// and it needs a program to run.
#[test]
fn a_mention_source_has_a_kind_of_its_own() {

View File

@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Luxe config",
"title": "luxe config",
"type": "object",
"properties": {
"$schema": {
@@ -9,7 +9,7 @@
},
"theme": {
"type": "string",
"description": "Theme name: a built-in (luxe, catppuccin, nord, tokyo-night, and more — /theme lists them all), the name of a file in themes/, or omarchy to follow the Omarchy desktop's theme. When omitted, Luxe follows Omarchy when it is running there, and uses luxe otherwise."
"description": "Theme name: a built-in (luxe, catppuccin, nord, tokyo-night, and more — /theme lists them all), the name of a file in themes/, or omarchy to follow the Omarchy desktop's theme. When omitted, luxe follows Omarchy when it is running there, and uses luxe otherwise."
},
"colors": {
"type": "object",
@@ -54,7 +54,7 @@
"type": "string",
"enum": ["auto", "nerd", "nerd_wide", "unicode", "ascii"],
"default": "auto",
"description": "How much glyph fidelity the TUI asks for. Icons are decoration \u2014 the words beside them carry the meaning \u2014 so every setting is fully usable. nerd draws Material Design icons from a Nerd Font (the look Luxe ships with); nerd_wide draws the same icons with a second cell of clearance, for a Nerd Font's non-Mono cut, whose icons carry two cells of ink behind a one-cell advance and so paint over the space after them; unicode uses Geometric Shapes and Arrows only, so no patched font is needed; ascii reduces to plain punctuation for a minimal or non-UTF-8 terminal. auto (default) picks nerd where those glyphs can actually be drawn \u2014 kitty bundles its own symbol font, and elsewhere fontconfig is asked whether any installed font provides them \u2014 and unicode otherwise. auto never picks nerd_wide: both cuts of a face report the same advance, so there is nothing to measure."
"description": "How much glyph fidelity the TUI asks for. Icons are decoration \u2014 the words beside them carry the meaning \u2014 so every setting is fully usable. nerd draws Material Design icons from a Nerd Font (the look luxe ships with); nerd_wide draws the same icons with a second cell of clearance, for a Nerd Font's non-Mono cut, whose icons carry two cells of ink behind a one-cell advance and so paint over the space after them; unicode uses Geometric Shapes and Arrows only, so no patched font is needed; ascii reduces to plain punctuation for a minimal or non-UTF-8 terminal. auto (default) picks nerd where those glyphs can actually be drawn \u2014 kitty bundles its own symbol font, and elsewhere fontconfig is asked whether any installed font provides them \u2014 and unicode otherwise. auto never picks nerd_wide: both cuts of a face report the same advance, so there is nothing to measure."
},
"images": {
"type": "string",
@@ -108,7 +108,7 @@
"herdr": {
"type": "boolean",
"default": true,
"description": "When Luxe runs in a herdr pane, report whether it is working, idle or waiting on you, so herdr's sidebar, notifications and `herdr agent wait` follow it. On by default; nothing is sent outside herdr."
"description": "When luxe runs in a herdr pane, report whether it is working, idle or waiting on you, so herdr's sidebar, notifications and `herdr agent wait` follow it. On by default; nothing is sent outside herdr."
},
"joinable": {
"type": "boolean",
@@ -147,7 +147,7 @@
"type": "array",
"items": { "type": "string" },
"default": [],
"description": "Project-relative globs a review leaves out, e.g. [\"PROGRESS.md\", \"docs/design/**\"]. Luxe's own .luxe/ directory is always excluded and needs no entry. Supports *, ** and ?; a trailing / matches a directory and everything under it. Excluded files are counted and named in the Brief, never silently dropped."
"description": "Project-relative globs a review leaves out, e.g. [\"PROGRESS.md\", \"docs/design/**\"]. luxe's own .luxe/ directory is always excluded and needs no entry. Supports *, ** and ?; a trailing / matches a directory and everything under it. Excluded files are counted and named in the Brief, never silently dropped."
}
},
"additionalProperties": false
@@ -183,7 +183,7 @@
"remember_model": {
"type": "boolean",
"default": true,
"description": "Remember the model and thinking level picked in a session and use them next launch. Precedence: --model/--thinking flag, then LUXE_MODEL/LUXE_PROVIDER, then what you last picked, then default_model in models.json — and nothing under that, because Luxe never picks a model for you. Set false to always start from the configured default."
"description": "Remember the model and thinking level picked in a session and use them next launch. Precedence: --model/--thinking flag, then LUXE_MODEL/LUXE_PROVIDER, then what you last picked, then default_model in models.json — and nothing under that, because luxe never picks a model for you. Set false to always start from the configured default."
},
"on_ask": {
"type": "string",
@@ -195,7 +195,7 @@
"type": "string",
"enum": ["off", "streaming", "idle"],
"default": "streaming",
"description": "When Luxe keeps a conversation's prompt cache alive through a long wait, by re-sending the last request with a one-token cap just before the cache entry expires (five minutes on Anthropic, unless supports_long_cache_retention asks for an hour). A refresh is a cache read of the prompt; the write it saves is usually ten times that. streaming (the default) does it while a turn is running — a slow tool, a permission prompt, a question — where the next request is certain. idle also does it for up to 30 minutes after a turn ends, where a reply is a guess, so a refresh is sent only on a conversation large enough to make the guess pay. off never does. Either way nothing is sent unless it is expected to save at least $0.05, never on a subscription plan, and its cost shows on /cost as cache warming. A project's config may turn this down and may not turn it up."
"description": "When luxe keeps a conversation's prompt cache alive through a long wait, by re-sending the last request with a one-token cap just before the cache entry expires (five minutes on Anthropic, unless supports_long_cache_retention asks for an hour). A refresh is a cache read of the prompt; the write it saves is usually ten times that. streaming (the default) does it while a turn is running — a slow tool, a permission prompt, a question — where the next request is certain. idle also does it for up to 30 minutes after a turn ends, where a reply is a guess, so a refresh is sent only on a conversation large enough to make the guess pay. off never does. Either way nothing is sent unless it is expected to save at least $0.05, never on a subscription plan, and its cost shows on /cost as cache warming. A project's config may turn this down and may not turn it up."
},
"default_mode": {
"type": "string",
@@ -289,7 +289,7 @@
},
"launchers": {
"type": "array",
"description": "Programs a key hands the terminal to — gh-dash, lazygit, anything that takes over a terminal and gives it back. Luxe keeps running underneath, a turn included, and redraws when the program exits; text the program writes to the file named by $LUXE_HANDOFF lands in the composer. Read from the global config only: a key that runs a program a repository named is arbitrary execution.",
"description": "Programs a key hands the terminal to — gh-dash, lazygit, anything that takes over a terminal and gives it back. luxe keeps running underneath, a turn included, and redraws when the program exits; text the program writes to the file named by $LUXE_HANDOFF lands in the composer. Read from the global config only: a key that runs a program a repository named is arbitrary execution.",
"items": {
"type": "object",
"properties": {
@@ -319,7 +319,7 @@
},
"github": {
"type": "object",
"description": "How Luxe keeps up with GitHub: the checked-out branch's pull request, and what /github lists. The refresh interval is read from the global config only — how often Luxe calls out on a timer is not a decision a repository you cloned makes; a project may add its own /github sections.",
"description": "How luxe keeps up with GitHub: the checked-out branch's pull request, and what /github lists. The refresh interval is read from the global config only — how often luxe calls out on a timer is not a decision a repository you cloned makes; a project may add its own /github sections.",
"properties": {
"refresh_secs": {
"type": "integer",
@@ -345,12 +345,12 @@
},
"update": {
"type": "object",
"description": "Whether Luxe checks for a newer release. Read from the global config only — whether Luxe reaches the network on your behalf is not a decision a repository you cloned makes.",
"description": "Whether luxe checks for a newer release. Read from the global config only — whether luxe reaches the network on your behalf is not a decision a repository you cloned makes.",
"properties": {
"check": {
"type": "boolean",
"default": true,
"description": "Look for a newer release, at most once a day, and mention it under the dashboard's footer. Luxe never updates itself; the notice names the command that matches how you installed it. The request sends nothing about you — no version, no platform, no identifier — and every failure is silent. Set false, or LUXE_UPDATE_CHECK=0, to turn it off."
"description": "Look for a newer release, at most once a day, and mention it under the dashboard's footer. luxe never updates itself; the notice names the command that matches how you installed it. The request sends nothing about you — no version, no platform, no identifier — and every failure is silent. Set false, or LUXE_UPDATE_CHECK=0, to turn it off."
}
},
"additionalProperties": false

View File

@@ -283,7 +283,7 @@ pub enum NotificationMethod {
/// The moments that send a desktop notification: all of them, none, or a list.
///
/// Read leniently, like every other key: a value that is neither a boolean nor a list is treated as
/// unset and a name Luxe does not know is skipped, so one typo never takes the whole config with it.
/// unset and a name luxe does not know is skipped, so one typo never takes the whole config with it.
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
#[serde(untagged)]
pub enum Notifications {

View File

@@ -3,7 +3,7 @@
use super::{known_or, Lenient};
use serde::{Deserialize, Serialize};
/// How a diff is drawn, wherever Luxe draws one.
/// How a diff is drawn, wherever luxe draws one.
///
/// One setting for three surfaces — the `edit`/`write` tool card, the peeked file beside the
/// conversation, and Guided Review. They differ only in how much room they have, and

View File

@@ -71,7 +71,7 @@ impl MentionSource {
!kind.is_empty() && !self.reserved() && !self.command.trim().is_empty()
}
/// Whether its kind is one Luxe's own tabs use, which leaves it without a tab of its own.
/// Whether its kind is one luxe's own tabs use, which leaves it without a tab of its own.
///
/// Worth telling the reader rather than only skipping: `mcp` joined the list after sources
/// could be named anything, so a source that worked yesterday can be the one it displaced.
@@ -80,7 +80,7 @@ impl MentionSource {
}
}
/// The reference kinds Luxe's own `@` tabs use: `@[file:…]`, `@[skill:…]`, `@[github:…]`,
/// The reference kinds luxe's own `@` tabs use: `@[file:…]`, `@[skill:…]`, `@[github:…]`,
/// `@[mcp:…]`.
pub const RESERVED_MENTION_KINDS: [&str; 4] = ["file", "skill", "github", "mcp"];
@@ -102,7 +102,7 @@ impl WorktreeConfig {
/// GitHub preferences.
///
/// Read from the global config only, like [`UpdateConfig`]: how often Luxe calls out on a timer is
/// Read from the global config only, like [`UpdateConfig`]: how often luxe calls out on a timer is
/// the reader's decision, not one a repository they cloned gets to make.
#[derive(Debug, Clone, Serialize, Deserialize, Default, PartialEq)]
#[serde(default)]
@@ -152,7 +152,7 @@ impl GithubConfig {
/// Update-notice preferences.
///
/// Luxe never updates itself; the only question here is whether it may *notice* that it is behind.
/// luxe never updates itself; the only question here is whether it may *notice* that it is behind.
/// The check fetches a public manifest and sends nothing about you — see `luxe_core::update` — but
/// it is still an outbound request, so it gets a switch like every other one.
#[derive(Debug, Clone, Serialize, Deserialize, Default, PartialEq)]
@@ -186,7 +186,7 @@ pub struct LspConfig {
pub project_servers: Option<ProjectServers>,
}
/// Whether Luxe may launch a language server out of the project's `node_modules/.bin`.
/// Whether luxe may launch a language server out of the project's `node_modules/.bin`.
///
/// npm puts a dev dependency there rather than on `PATH`, so for the JavaScript servers it is
/// routinely the only copy that matches the project — `svelteserver` has to agree with the Svelte
@@ -223,7 +223,7 @@ pub struct ReviewConfig {
/// `PLAN.md`/`AGENTS.md`. Each must resolve inside the opened project.
#[serde(default)]
pub context_files: Vec<String>,
/// Project-relative globs a review leaves out, on top of Luxe's own `.luxe/` directory.
/// Project-relative globs a review leaves out, on top of luxe's own `.luxe/` directory.
///
/// For bookkeeping a repo carries but nobody reviews — a loop's `PROGRESS.md`, a planning
/// directory, another agent's memory. Excluded files are *counted and named*, never silently

View File

@@ -259,7 +259,7 @@ impl Layered for LspConfig {
}
impl Layered for UpdateConfig {
// `global` only, same reasoning in a lower key: whether Luxe reaches the network on your
// `global` only, same reasoning in a lower key: whether luxe reaches the network on your
// behalf is your decision, not a decision a repository you cloned makes.
fn layered(global: Self, project: Self) -> Self {
let Self { check: _ } = project;

View File

@@ -98,7 +98,7 @@ fn partial_config_round_trips() {
assert_eq!(config.dock, DockConfig::default());
}
/// Every leniently read setting, through its resolver: each value it knows, one from a newer Luxe,
/// Every leniently read setting, through its resolver: each value it knows, one from a newer luxe,
/// and none at all.
#[test]
fn every_lenient_setting_resolves_known_unknown_and_absent_values() {

View File

@@ -5,7 +5,7 @@ use super::*;
#[test]
fn schema_is_valid_json() {
let schema: serde_json::Value = serde_json::from_str(Config::schema_json()).unwrap();
assert_eq!(schema["title"], "Luxe config");
assert_eq!(schema["title"], "luxe config");
assert!(schema.get("properties").is_some());
assert!(schema["properties"].get("$schema").is_some());
assert!(schema["properties"].get("notifications").is_some());

View File

@@ -138,7 +138,7 @@ impl Config {
}
/// Edit the global config under [`JsonFile`]'s lock. Called from the UI thread; the wait for the
/// lock is bounded (a few seconds), and only another Luxe writing the same file at that moment, or
/// lock is bounded (a few seconds), and only another luxe writing the same file at that moment, or
/// one that crashed holding the lock, makes it wait at all.
fn edit_global(edit: impl FnOnce(&mut Map<String, Value>)) -> Result<PathBuf, ConfigWriteError> {
let path = Config::global_path();

View File

@@ -27,10 +27,10 @@ use std::path::PathBuf;
#[cfg(test)]
const HARNESS_TOOLS: &[&str] = &["question", "todo"];
/// Where questions about Luxe itself are answered: its own guide, built into the binary and run
/// Where questions about luxe itself are answered: its own guide, built into the binary and run
/// through `bash`. Static text, so the prompt stays byte-identical between turns; without it, a
/// model asked how to configure Luxe answers from what other harnesses do.
const LUXE_DOCS: &str = " Questions about Luxe itself are answered by its guide: `luxe docs`.";
/// model asked how to configure luxe answers from what other harnesses do.
const LUXE_DOCS: &str = " Questions about luxe itself are answered by its guide: `luxe docs`.";
/// Purpose-built tools paired with the shell command a model reaches for instead.
///
@@ -239,7 +239,7 @@ impl SystemPromptBuilder {
format!(
"## Tools\n\
Every tool in Luxe is designed to beat the shell command it replaces by providing \
Every tool in luxe is designed to beat the shell command it replaces by providing \
structured, bounded output for a fraction of the context. They also make your actions \
easier for the user to read, which improves clarity and efficiency. So, always reach \
for the purpose-built tool before `bash`, which should be reserved for everything they \
@@ -294,7 +294,7 @@ pub(crate) fn shared_len(sections: &[MeasuredSection]) -> usize {
}
/// The `## Memory` section: the repository as what outlives the conversation, and where to ask
/// about Luxe itself when the agent can run `luxe docs`.
/// about luxe itself when the agent can run `luxe docs`.
fn memory_section(ctx: &PromptContext) -> String {
let docs = if ctx.tools.iter().any(|tool| tool == "bash") { LUXE_DOCS } else { "" };
format!(
@@ -335,7 +335,7 @@ fn plans_section() -> String {
/// Who the agent is, in every session and every mode.
pub(crate) const DEFAULT_ROLE: &str =
"You are an agentic engineering assistant operating in Luxe, a coding \
"You are an agentic engineering assistant operating in luxe, a coding \
agent harness. Build features incrementally with small, safe diffs, and verify them before calling \
the work done.";
@@ -382,7 +382,7 @@ own conventions say otherwise:
- Comments should say *why*, never *what*.
- Use specific names and types: no `data`, `handler`, or `Manager`.
- Errors should be detailed and never swallowed.
- Luxe features specialized tools to read, write, and debug code. Use them.";
- luxe features specialized tools to read, write, and debug code. Use them.";
/// What makes a test worth having.
const TESTING: &str = "## Testing

View File

@@ -26,7 +26,7 @@ fn ctx() -> PromptContext {
}
}
/// An agent that can run commands is told where Luxe's own guide is, so a question about Luxe
/// An agent that can run commands is told where luxe's own guide is, so a question about luxe
/// is answered from it; one that cannot run `luxe docs` is not told about it.
#[test]
fn the_prompt_points_at_luxes_own_guide() {
@@ -122,7 +122,7 @@ fn the_harness_names_no_tool_it_cannot_offer() {
/// It is product, not taste. A model asked for something it cannot determine will reach for a
/// plausible answer instead of admitting the gap, and a fabricated one is worse than a refusal
/// precisely because nothing distinguishes it from a real one — so each clause here is a
/// specific shape that failure takes, and losing any of them silently makes Luxe less
/// specific shape that failure takes, and losing any of them silently makes luxe less
/// trustworthy rather than merely less tidy.
#[test]
fn the_honesty_contract_is_always_on() {
@@ -285,7 +285,7 @@ fn no_live_work_state_reaches_the_cached_prefix() {
/// It is product, not taste: "write a test" is an instruction a model already follows, and
/// following only that is what produced the hollow suites this section exists to prevent. Each
/// clause below is one of those failure shapes, so losing any of them silently is a
/// regression in what Luxe writes rather than in how it reads.
/// regression in what luxe writes rather than in how it reads.
#[test]
fn the_testing_contract_is_always_on() {
{

View File

@@ -187,7 +187,7 @@ pub struct ContextComposition {
pub cache_write_pct: Option<f32>,
/// Enabled MCP servers, and the tokens their single gateway tool costs.
///
/// A line rather than a part: Luxe exposes every server through one gateway tool, so the
/// A line rather than a part: luxe exposes every server through one gateway tool, so the
/// category the rest of the field warns about is always near zero here — and a row that always
/// reads zero teaches nothing.
pub mcp: Option<McpFootprint>,

View File

@@ -81,7 +81,7 @@ pub struct Engine {
/// Mutable session id — updated when loading/resuming a session so the next turn chains
/// from the resumed state, matching the `--resume` path.
session_id: tokio::sync::Mutex<crate::session::SessionId>,
/// This process's claim on `session_id`, which keeps a second Luxe from writing it too
/// This process's claim on `session_id`, which keeps a second luxe from writing it too
session_claim: std::sync::Mutex<Option<crate::session::SessionClaim>>,
last_turn_baseline: tokio::sync::Mutex<Option<RetainedTurnBaseline>>,
active_guided_review: Arc<tokio::sync::Mutex<ActiveGuidedReview>>,

View File

@@ -120,7 +120,7 @@ fn threads_of(
impl Engine {
/// Reports what in the working tree is not committed, asked fresh from git rather than read
/// from the last snapshot, which may predate a file made outside Luxe.
/// from the last snapshot, which may predate a file made outside luxe.
pub(crate) fn check_worktree_removal(&self, event_tx: &mpsc::Sender<Event>) {
let root = self.config.guided_review_project_root.clone();
let event_tx = event_tx.clone();

View File

@@ -53,7 +53,7 @@ pub struct EngineConfig {
///
/// `None` disables runtime review loading for embedding and test callers.
pub guided_review_project_root: Option<std::path::PathBuf>,
/// The directory Luxe was launched in, when that is not the project root.
/// The directory luxe was launched in, when that is not the project root.
///
/// The one thing the *shell's* directory still answers after [`crate::project::discover`] has
/// moved the process to the top of the working copy: which instruction files apply. A monorepo
@@ -72,9 +72,13 @@ pub struct EngineConfig {
pub review_context_files: Vec<String>,
/// Project-relative globs a review leaves out (`review.exclude`), on top of `.luxe/`.
pub review_exclude: Vec<String>,
/// Whether an in-session model/thinking choice is remembered for the next launch
/// (`agent.remember_model`). Off for embedders and tests, which should leave no trace.
pub remember_runtime_state: bool,
/// The project an in-session model or thinking choice is remembered for, for the next launch
/// (`agent.remember_model`).
///
/// A model is kept for this project and as the latest anywhere, so the next launch here starts
/// on it and a project never opened before starts on it too. `None` for embedders and tests,
/// which should leave no trace.
pub remember_choices_in: Option<std::path::PathBuf>,
/// When the prompt cache is kept warm through a long wait (`agent.cache_warming`).
///
/// Only matters for a provider whose `prompt_cache_ttl` answers, so an embedder's or a test's

View File

@@ -223,7 +223,7 @@ impl Engine {
/// or stopping. What it should do is hand the command to the person.
pub(super) fn deny_message(request: &crate::permission::PermissionRequest) -> String {
if crate::permission::defaults::runs_as_root(request) {
return "Blocked: Luxe does not run commands as root. A command that needs root needs the \
return "Blocked: luxe does not run commands as root. A command that needs root needs the \
user's attention and consent, so they run it: give them the exact command in a \
fenced code block, ask them to run it in their own terminal, and continue once \
they say it is done. Do not look for another way to run it here."

View File

@@ -4,7 +4,7 @@ use super::*;
impl Engine {
/// Nudge toward the `debug` tool when tests keep failing — runtime reinforcement for models
/// that default to print-and-retry (the debugger is a Luxe differentiator, but under-used).
/// that default to print-and-retry (the debugger is a luxe differentiator, but under-used).
/// Fires once per failing streak (≥3 consecutive failing test runs); a passing test resets it.
/// Disable with `LUXE_DEBUG_NUDGE=0`.
pub(super) async fn maybe_nudge_debugger(&self, is_test: bool, result: &mut ToolResultData) {

View File

@@ -2,7 +2,7 @@
//!
//! A draft is an ordinary turn in this session, so it is written by the agent that did the work,
//! with the transcript it already holds in the prompt cache. What the turn adds is appended once,
//! as one message, never in the system prompt: the thing being answered in full, Luxe's own evidence
//! as one message, never in the system prompt: the thing being answered in full, luxe's own evidence
//! about it — the code at the line now, the commits since, the review comment it became and whether
//! the fix was verified — and the rest of the conversation as a digest, sent whole the first time
//! and only what is new after, until compaction or a session load forgets what was sent.

View File

@@ -155,7 +155,7 @@ async fn a_thread_brief_carries_the_code_now_and_the_commits_since() {
let dir = tempfile::tempdir().unwrap();
let root = dir.path();
git(root, &["init", "--quiet", "-b", "main"]);
git(root, &["config", "user.name", "Luxe Tests"]);
git(root, &["config", "user.name", "luxe Tests"]);
git(root, &["config", "user.email", "tests@luxe.local"]);
let lines: Vec<String> = (1..=20).map(|n| format!("line {n}")).collect();
std::fs::write(root.join("router.rs"), lines.join("\n")).unwrap();

View File

@@ -22,7 +22,7 @@ pub enum EngineError {
///
/// The gate, rather than the courtesy: a front-end should ask before it submits, and this is
/// what holds when one does not. See [`crate::provider::ModelRef::is_unset`].
#[error("no model selected — pick one with /model, or start Luxe with --model <provider/id>")]
#[error("no model selected — pick one with /model, or start luxe with --model <provider/id>")]
NoModel,
}
@@ -48,7 +48,7 @@ mod tests {
let session = SessionError::Other("gone".into());
let session_said = format!("session error: {session}");
let no_model =
"no model selected — pick one with /model, or start Luxe with --model <provider/id>";
"no model selected — pick one with /model, or start luxe with --model <provider/id>";
let cases: [(EngineError, String, bool); 5] = [
(provider.into(), provider_said, false),
(session.into(), session_said, false),

View File

@@ -5,7 +5,7 @@
//! repository and number asked about, so a reply that lands after the reader moved on is matched
//! to nothing rather than drawn over the wrong row.
//!
//! An issue's answer also says whether one of your sessions took it up — Luxe's own knowledge, read
//! An issue's answer also says whether one of your sessions took it up — luxe's own knowledge, read
//! from the session store, which GitHub has no way to know.
use super::posting::sentence;

View File

@@ -41,7 +41,7 @@ impl Engine {
}
}
/// What this engine leaves out of a review: Luxe's own directory, plus `review.exclude`.
/// What this engine leaves out of a review: luxe's own directory, plus `review.exclude`.
pub(crate) fn review_exclusions(&self) -> crate::guided_review::ReviewExclusions {
crate::guided_review::ReviewExclusions::new(&self.config.review_exclude)
}

View File

@@ -43,7 +43,7 @@ pub(super) fn pull_request_failure(error: &PullRequestResolveError) -> GuidedRev
GuidedReviewFailure::unavailable(format!("Could not run `gh`: {source}."))
}
GitHubError::Unreadable(_) => GuidedReviewFailure::unavailable(
"`gh` answered with something Luxe could not read. Updating the GitHub CLI may fix it.",
"`gh` answered with something luxe could not read. Updating the GitHub CLI may fix it.",
),
GitHubError::RateLimited => GuidedReviewFailure::unavailable(
"GitHub's rate limit for this account is spent. It refills within the hour.",

View File

@@ -190,7 +190,7 @@ impl Engine {
.read()
.map_err(|_| SessionError::Other("session store lock poisoned".to_string()))?;
let entries = store.load(&id)?;
// Before anything changes, so a session open in another Luxe leaves this one as it was
// Before anything changes, so a session open in another luxe leaves this one as it was
let claim = store.claim(&id)?;
let leaf = crate::session::latest_leaf(&entries);
let active = match leaf.as_ref() {

View File

@@ -74,7 +74,7 @@ impl Engine {
}
}
/// The nested files `call` reached, from Luxe launched at `launch`.
/// The nested files `call` reached, from luxe launched at `launch`.
///
/// Relative paths resolve the way the tool resolved them, against where tools run.
fn reached(launch: &std::path::Path, call: &ToolCallInfo) -> Vec<NestedFile> {

View File

@@ -267,7 +267,7 @@ pub(super) fn sentence(error: &GitHubError) -> String {
}
GitHubError::Run { source, .. } => format!("Could not run `gh`: {source}."),
GitHubError::Unreadable(_) => {
"`gh` answered with something Luxe could not read. Updating the GitHub CLI may fix it."
"`gh` answered with something luxe could not read. Updating the GitHub CLI may fix it."
.into()
}
GitHubError::RateLimited => {

View File

@@ -12,7 +12,7 @@ impl Engine {
pub(super) async fn assemble_prompt(
&self,
) -> Result<(Vec<MeasuredSection>, Option<String>), EngineError> {
// Two directories, and they differ whenever Luxe is launched below the project root: the
// Two directories, and they differ whenever luxe is launched below the project root: the
// one the launch named, which only decides which `AGENTS.md` files apply, and the one every
// tool actually runs in. The prompt reports the second as `cwd`: a session opened in
// `packages/app` must not be told it is there while `pwd` answers with the root, and a
@@ -147,7 +147,7 @@ fn build_deferred_tools_section(catalog: &[(String, String)]) -> String {
out
}
/// Hand-written catalog lines for Luxe's own deferred tools, shorter than anything
/// Hand-written catalog lines for luxe's own deferred tools, shorter than anything
/// [`catalog_line`] can cut from a description. A tool not listed here, an MCP server's or a newer
/// one, gets the generated line.
const CATALOG_SUMMARIES: &[(&str, &str)] = &[

View File

@@ -69,7 +69,7 @@ impl ReviewDesk {
}
if interrupted > 0 {
effects.push(Effect::Event(Event::Notice(
"A review feedback turn was cut off when Luxe last stopped. It can be sent again \
"A review feedback turn was cut off when luxe last stopped. It can be sent again \
from the review."
.into(),
)));

View File

@@ -126,13 +126,13 @@ impl ReviewDesk {
"Review comments cannot be saved without a project.".to_string()
}
SaveError::Store(ReviewSessionStoreError::RevisionConflict { .. }) => {
// Another Luxe on this project wrote first. Holding on to the older revision would
// Another luxe on this project wrote first. Holding on to the older revision would
// refuse every later change too, so take theirs and say so.
if let Some(stored) = self.load(&review_id).await {
self.session = Some(stored);
self.persisted = true;
}
"Another Luxe changed this review's comments at the same time, so this change was \
"Another luxe changed this review's comments at the same time, so this change was \
not saved. The review shows theirs now; make the change again."
.to_string()
}

View File

@@ -245,7 +245,7 @@ async fn carried_comments_join_and_only_the_ones_still_placed_are_sent() {
assert!(submitted(&effects).is_some());
}
/// A revision conflict (another Luxe wrote first) refuses the edit, takes the stored session,
/// A revision conflict (another luxe wrote first) refuses the edit, takes the stored session,
/// and lets the next edit through.
///
/// The break this catches: holding on to the older revision, which refuses every edit after it too.
@@ -261,7 +261,7 @@ async fn a_revision_conflict_takes_the_stored_session_and_recovers() {
let (request_id, effects) =
edit(&mut desk, ReviewEdit::SetOutcome { outcome: ReviewOutcome::Accepted }).await;
assert!(refusal_for(&effects, &request_id).contains("Another Luxe"));
assert!(refusal_for(&effects, &request_id).contains("Another luxe"));
let restored = effects.iter().find_map(|effect| match effect {
Effect::Event(Event::ReviewSessionRestored { session }) => Some(session.outcome),
_ => None,

View File

@@ -195,8 +195,9 @@ impl Engine {
event_tx: &mpsc::Sender<Event>,
) {
debug!(model = %model.r#ref, "switching active model");
if self.config.remember_runtime_state {
if let Some(project) = &self.config.remember_choices_in {
crate::runtime_state::RuntimeState::remember_model(
project,
&model.r#ref.provider,
&model.r#ref.id,
);
@@ -217,7 +218,7 @@ impl Engine {
event_tx: &mpsc::Sender<Event>,
) {
debug!(?level, "setting thinking level");
if self.config.remember_runtime_state {
if self.config.remember_choices_in.is_some() {
crate::runtime_state::RuntimeState::remember_thinking(level);
}
*self.before_mode.lock().await = None;

View File

@@ -292,7 +292,7 @@ impl Engine {
*self.draft_answer.lock().await = committed.text.clone();
}
// The checkpoint that delivers a steer only runs at the top of an iteration, so ending here
// would leave it buffered until the user's next submission — a message they watched Luxe
// would leave it buffered until the user's next submission — a message they watched luxe
// accept and then apparently ignore. Each continuation consumes the buffer, so this can
// only extend the turn as often as the user actually types.
if !self.pending_steers.lock().await.is_empty() {

View File

@@ -33,7 +33,7 @@ impl Engine {
///
/// Every committed message is announced with `MessageCommitted`, the reader's own words too:
/// a client joined to the session didn't type them, and the front-end that did reconciles the
/// copy it already shows. A message Luxe composed (review feedback, a draft's brief) has no
/// copy it already shows. A message luxe composed (review feedback, a draft's brief) has no
/// such copy anywhere, so it's announced the same way.
pub(super) async fn commit_user_message(
&self,
@@ -142,7 +142,7 @@ impl Engine {
/// Reports a provider call that came back with nothing, and says why the turn stops.
///
/// A cancel is the user's own doing and the UI has already said so; anything else is the
/// model answering with silence, which looked exactly like Luxe hanging — the spinner
/// model answering with silence, which looked exactly like luxe hanging — the spinner
/// stopped, no message appeared, and the next thing the reader saw was a `400` from the turn
/// after it.
pub(super) async fn report_empty_reply(&self, event_tx: &mpsc::Sender<Event>) -> StopReason {

View File

@@ -2,7 +2,7 @@
//!
//! A fix request ends with the report the agent is to fill in. The turn reads everything the agent
//! said in it, every message rather than only the last, as the turn is about to end. A report that
//! reads goes to the review. When there is none Luxe can use, Luxe appends one message saying what
//! reads goes to the review. When there is none luxe can use, luxe appends one message saying what
//! was wrong, with the template again, and the turn goes on for the answer: once, so a model that
//! cannot comply costs a call rather than a loop. Whatever still has no word from the agent when
//! the turn ends, however it ended, goes to the review desk, which notes it on the comment.
@@ -16,9 +16,9 @@ use crate::guided_review::FindingId;
pub(super) struct ReportWatch {
/// Every assistant text the turn committed, in order
said: Vec<String>,
/// Whether Luxe has asked for the report this turn
/// Whether luxe has asked for the report this turn
asked: bool,
/// Why the last reading found no report Luxe could use
/// Why the last reading found no report luxe could use
problem: Option<&'static str>,
/// The comments the delivered report spoke for; `None` until one is delivered
covered: Option<Vec<FindingId>>,
@@ -141,7 +141,7 @@ const NO_REPORT: &str = "it wrote no report";
/// No `Submission:` line, which is how a retried submission finds the message it already sent.
fn report_request(context: &RemediationTurnContext, reason: &str) -> String {
format!(
"{REPORT_REQUEST}\nYour reply did not give the report Luxe reads to update the review: \
"{REPORT_REQUEST}\nYour reply did not give the report luxe reads to update the review: \
{reason}. Do not redo any work. Reply with just this block, one line per \
comment in the order they were sent, each status set to fixed, not_fixed or \
needs_clarification and each note saying what you did, in one sentence.\n\n{}",

View File

@@ -133,7 +133,7 @@ impl Engine {
/// on the way in is an estimate — char/4 for anything not yet measured, a tokenizer we do not
/// have for the rest — so a prompt can clear the threshold and still be rejected, and a
/// mid-turn tool result large enough to do it arrives *after* the last check. Failing there
/// ends the turn on the one error whose remedy Luxe already implements.
/// ends the turn on the one error whose remedy luxe already implements.
///
/// The retry summarizes on the provider's authority rather than the threshold's: the window is
/// full because the endpoint says so, whatever the local arithmetic believed. Once only, and

View File

@@ -168,7 +168,7 @@ pub enum Action {
squash: bool,
},
/// Draft the pull request the open review would open, answered by `pull_request_prepared`.
/// Luxe keeps the draft for `open_pull_request`.
/// luxe keeps the draft for `open_pull_request`.
PreparePullRequest {
/// Names the draft
request_id: crate::guided_review::PullRequestOpenId,
@@ -189,7 +189,7 @@ pub enum Action {
draft: bool,
},
/// Draft the open review as a stack, one pull request per chapter, answered by
/// `stack_prepared`. Luxe keeps the layers for `open_stack`.
/// `stack_prepared`. luxe keeps the layers for `open_stack`.
PrepareStack {
/// Names the stack
request_id: crate::guided_review::PullRequestOpenId,
@@ -205,7 +205,7 @@ pub enum Action {
draft: bool,
},
/// Read what posting the open pull request review needs, answered by
/// `pull_request_post_prepared`. Luxe keeps it for `post_pull_request_review`.
/// `pull_request_post_prepared`. luxe keeps it for `post_pull_request_review`.
PreparePullRequestPost {
/// Names the preview
request_id: crate::guided_review::PullRequestPostId,
@@ -293,7 +293,7 @@ pub enum Action {
repository: Option<String>,
},
/// Work out what restacking the checked-out branch's stack would do, answered by
/// `restack_planned`. Luxe keeps the plan for the `restack` that confirms it.
/// `restack_planned`. luxe keeps the plan for the `restack` that confirms it.
PlanRestack {
/// Names the plan
request_id: crate::restack::RestackId,
@@ -331,7 +331,7 @@ pub enum Action {
/// Project-relative file
path: String,
},
/// Whether the client's window has focus, which paces Luxe's background GitHub refreshes.
/// Whether the client's window has focus, which paces luxe's background GitHub refreshes.
SetFocus {
/// Whether it now has focus
focused: bool,

View File

@@ -516,17 +516,17 @@ pub enum Event {
/// The answer to `show_open_review`. Boxed: it carries a whole review.
OpenReviewShown(Box<super::types::OpenReview>),
/// The open review's feedback session changed and was stored. Every change arrives this way,
/// whoever made it: an `EditReview`, answered under its `request_id`, or something Luxe did
/// whoever made it: an `EditReview`, answered under its `request_id`, or something luxe did
/// itself (a turn dispatched, a report recorded, a review posted), under a fresh one.
ReviewSessionSaved {
/// The edit this answers, or a fresh id for a change Luxe made itself.
/// The edit this answers, or a fresh id for a change luxe made itself.
request_id: ReviewSessionSaveRequestId,
/// Complete authoritative state returned by the expected-revision store.
session: Box<ReviewSession>,
},
/// A change to the feedback session was refused or could not be stored, and nothing changed.
ReviewSessionSaveFailed {
/// The edit this answers, or a fresh id for a change Luxe made itself.
/// The edit this answers, or a fresh id for a change luxe made itself.
request_id: ReviewSessionSaveRequestId,
/// Logical review whose mutable state was not persisted.
review_id: ReviewId,
@@ -586,7 +586,7 @@ pub enum Event {
Ready {
/// Wire protocol version — [`crate::PROTOCOL_VERSION`].
protocol_version: u32,
/// The Luxe build serving this session.
/// The luxe build serving this session.
luxe_version: String,
/// Session the stream is attached to.
session_id: String,

View File

@@ -6,7 +6,7 @@ use super::*;
/// read it before the derived ones replaced them.
///
/// The break this catches: the mirror enums decode only what their attributes say, so a
/// `#[serde(default)]` missing there turns a frame a client or an older Luxe sends into an error.
/// `#[serde(default)]` missing there turns a frame a client or an older luxe sends into an error.
/// Every row leaves out a field that is not an `Option`, which decodes as `None` regardless.
#[test]
fn what_a_sender_may_leave_out_still_decodes() {

View File

@@ -11,7 +11,7 @@
//!
//! # What it can and cannot see
//!
//! Only paths Luxe's own file tools name. A `bash` command that deletes a file elsewhere is
//! Only paths luxe's own file tools name. A `bash` command that deletes a file elsewhere is
//! invisible here, which is why an external path inside a Git worktree is recorded as a *root*
//! instead — Git then reports that tree the same way it reports the project, and catches what the
//! shell did too. `ExternalWork::roots` is the honest answer for a checkout; `ExternalWork::loose`
@@ -129,7 +129,7 @@ impl ExternalWork {
/// Called *before* the change, so the first call for a path is the only one that can see what
/// was there; later calls leave the retained baseline alone. A path inside a Git worktree is
/// recorded as its root instead of as a file, because Git can then report that tree completely
/// rather than only the parts Luxe touched.
/// rather than only the parts luxe touched.
pub fn observe(&self, path: &Path) {
let Ok(mut state) = self.state.lock() else {
return;

View File

@@ -2,7 +2,7 @@
//!
//! A clone lives inside the project so the agent can read and search it without tripping the
//! external-directory guard. That makes it the one directory in the tree whose contents came from a
//! stranger rather than from the person running Luxe, so anything that would *run* repository code
//! stranger rather than from the person running luxe, so anything that would *run* repository code
//! on the user's behalf — a language server rooted there, a formatter loading its plugins — checks
//! [`contains`] and stays out. This module is the single answer to where that directory is and
//! whether a path is inside it.

View File

@@ -6,7 +6,7 @@
//! This module answers that second question with one `git diff`, parsed by the review's own
//! [`parse_unified_diff`] into the review's own [`ReviewFile`], and nothing kept afterwards.
//!
//! Reusing the review's content model is the point: there is one diff data model in Luxe, so the
//! Reusing the review's content model is the point: there is one diff data model in luxe, so the
//! Changes pane and the review cannot disagree about what a hunk is, and escalating from one to
//! the other shows the same lines. What this does *not* share is the capture: no private index
//! snapshot, no stability re-read, no artifact on disk, no chaptering. A glance is allowed to be
@@ -110,7 +110,7 @@ pub enum FileDiffFailure {
#[error("this file is not text, so there are no lines to show")]
NotText,
/// Git produced a diff the review parser rejected.
#[error("git produced a diff Luxe could not read: {0}")]
#[error("git produced a diff luxe could not read: {0}")]
Unreadable(String),
}
@@ -228,7 +228,7 @@ async fn capture_loose(
requested: &str,
baseline: Option<&ExternalBaseline>,
) -> Result<FileDiff, FileDiffFailure> {
// A baseline of `Unretained` and no record at all are the same answer to the reader: Luxe
// A baseline of `Unretained` and no record at all are the same answer to the reader: luxe
// cannot say what this file used to hold, so it will not pretend to.
let Some(baseline @ (ExternalBaseline::Absent | ExternalBaseline::Text { .. })) = baseline
else {

View File

@@ -289,7 +289,7 @@ pub async fn run_formatter(
/// looks — on a 2024 crate it formats to the wrong style edition and refuses to parse syntax that
/// edition added, which reads as a broken file rather than a wrong flag. `rustfmt.toml` first,
/// because that is the project speaking about formatting specifically; then the manifest; then the
/// last edition Luxe can safely assume.
/// last edition luxe can safely assume.
///
/// A line scan rather than a TOML parse, deliberately: one key, three well-known file names, and no
/// dependency worth adding for it. Anything it cannot read falls back rather than guessing.

View File

@@ -126,7 +126,7 @@ fn rustfmt_spec_is_correct() {
}
/// The edition on the command line overrides the project's own `rustfmt.toml`, so a constant
/// there is not a default — it is Luxe overruling the repository about its own formatting.
/// there is not a default — it is luxe overruling the repository about its own formatting.
#[test]
fn rust_is_formatted_against_the_edition_the_project_declares() {
let project = tempfile::tempdir().expect("temp dir");
@@ -150,7 +150,7 @@ fn rust_is_formatted_against_the_edition_the_project_declares() {
assert_eq!(edition_of(&FormatterRegistry::for_project(project.path(), false)), "2018");
// rustfmt reads `rustfmt.toml` itself, so what it says has to win over the manifest —
// otherwise the flag Luxe passes silently overrules it.
// otherwise the flag luxe passes silently overrules it.
std::fs::write(project.path().join("rustfmt.toml"), "edition = \"2015\"\n").expect("write");
assert_eq!(edition_of(&FormatterRegistry::for_project(project.path(), false)), "2015");
}

View File

@@ -57,7 +57,7 @@ pub fn replace_with_mode(path: &Path, bytes: &[u8], mode: Option<u32>) -> io::Re
/// Replace `path` keeping whatever mode the file already has, or owner-only when it is new.
///
/// For a config file that may hold a secret but that the user owns: a mode they chose stays theirs,
/// and a file Luxe creates starts tight.
/// and a file luxe creates starts tight.
pub fn replace_preserving_mode(path: &Path, bytes: &[u8]) -> io::Result<()> {
replace_with_mode(path, bytes, existing_mode(path))
}

View File

@@ -1,4 +1,4 @@
//! GitHub — the one seam between Luxe and GitHub.
//! GitHub — the one seam between luxe and GitHub.
//!
//! Everything that reads or writes a pull request or an issue goes through [`GitHub`], so there is
//! one module that knows `gh` exists. [`GhCli`] is the implementation: it runs the user's own `gh`
@@ -41,7 +41,7 @@ use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use std::path::Path;
/// What Luxe needs from a code host: every role, as the engine holds it.
/// What luxe needs from a code host: every role, as the engine holds it.
///
/// Deliberately small: each method is something a caller in the tree actually uses, so the traits
/// grow with the features rather than ahead of them. The methods live in role traits, so code that
@@ -310,7 +310,7 @@ impl Repository {
/// [`classify_failure`], so rewording an error here never changes behavior somewhere else.
#[derive(Debug, thiserror::Error)]
pub enum GitHubError {
/// `gh` is not installed anywhere Luxe can find it.
/// `gh` is not installed anywhere luxe can find it.
#[error("the GitHub CLI (`gh`) is not installed")]
NotInstalled,
/// `gh` is installed but has no working sign-in for the host.
@@ -340,8 +340,8 @@ pub enum GitHubError {
#[source]
source: std::io::Error,
},
/// `gh` answered with output Luxe could not read.
#[error("gh answered with something Luxe could not read")]
/// `gh` answered with output luxe could not read.
#[error("gh answered with something luxe could not read")]
Unreadable(#[source] serde_json::Error),
/// GitHub refused for rate: this sign-in's hourly budget, or its secondary limit, is spent.
#[error("GitHub's rate limit for this account is spent")]

View File

@@ -43,7 +43,7 @@ fn a_search_lists_pull_requests_and_issues_with_where_they_are() {
let deleted =
SEARCH_ISSUES.replacen("\"author\":{\"login\":", "\"author\":null,\"x\":{\"login\":", 1);
assert_eq!(parse_search(&deleted).unwrap().items[0].author, "", "a deleted account");
// A frame from a Luxe that sent no state reads as open, not as an error
// A frame from a luxe that sent no state reads as open, not as an error
let older = r#"{"pull_request":true,"number":1,"title":"T","url":"u","repository":"a/b","author":"","draft":false,"updated_at":""}"#;
let item: ListItem = serde_json::from_str(older).unwrap();
assert_eq!(item.state, PullRequestState::Open);
@@ -72,7 +72,7 @@ fn what_merged_below_a_stack_is_read_with_where_it_went() {
pub(super) const STATUS_UNSTACKED: &str =
include_str!("../../fixtures/branch_status_unstacked.json");
/// A real chain of Luxe's own, read from the middle: seven below down to `master`, two above,
/// A real chain of luxe's own, read from the middle: seven below down to `master`, two above,
/// and the evidence that checks wait for trunk — the bottom one has them, this one none.
#[test]
fn a_pull_request_in_the_middle_of_a_stack_knows_where_it_sits() {

View File

@@ -135,7 +135,7 @@ fn the_conversation_comes_with_the_threads() {
assert!(before.conversation.is_empty() && !before.threads.is_empty());
}
/// On a real pull request the reader answered the first comment from Luxe, so it and the answer
/// On a real pull request the reader answered the first comment from luxe, so it and the answer
/// stay quiet, and the review's summary is what is still asked.
#[test]
fn an_answered_comment_on_a_real_pull_request_asks_nothing() {

View File

@@ -321,7 +321,7 @@ pub struct IssueOverview {
pub conversation_count: usize,
}
/// A session of yours that took an issue up, which only Luxe knows about.
/// A session of yours that took an issue up, which only luxe knows about.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct LocalSession {
/// The session's id, which resuming it names

View File

@@ -1,7 +1,7 @@
//! Refresh — when to ask GitHub about the branch's pull request again.
//!
//! GitHub has no push channel a local program can subscribe to, so the status row is kept current
//! two ways: right away after anything Luxe saw happen, and on an interval otherwise. This module
//! two ways: right away after anything luxe saw happen, and on an interval otherwise. This module
//! is the interval, and only the arithmetic of it — the workspace runtime tells it what happened
//! and asks when to look next, so every rule here is testable without a clock or a network.
//!

View File

@@ -117,7 +117,7 @@ fn remotes_are_read_from_git_remote_v() {
fn the_matching_remote_is_found_by_where_it_points() {
let remotes = vec![
("origin".to_string(), "git@github.com:me/luxe.git".to_string()),
("upstream".to_string(), "https://github.com/Someone/Luxe".to_string()),
("upstream".to_string(), "https://github.com/Someone/luxe".to_string()),
];
assert_eq!(
matching_remote(&remotes, "github.com", "someone", "luxe"),

View File

@@ -4,7 +4,7 @@
//! for everything it can be expected to disclose and the wrong one for the rest. That line decides
//! what belongs here: a file edited without ever being read, a credential-shaped addition, a
//! weakened gate. The agent cannot report the first — it does not know — and has every incentive to
//! soften the other two. Luxe can see all three because it is the harness that produced the change.
//! soften the other two. luxe can see all three because it is the harness that produced the change.
//!
//! Who wrote a change is deliberately not here: read off the transcript it is a guess, wrong often
//! enough to cost more than it tells anyone, since a formatter, a pasted file, or a path spelled

View File

@@ -114,8 +114,8 @@ impl ReviewContextDraft {
///
/// `extra_planning` names additional project-relative planning files (from `review.context_files`);
/// each is optional and read only when it resolves inside the opened project. The defaults are
/// deliberately Luxe's own: a file belonging to the harness Luxe is *developed* with is excluded
/// from release archives, so in any shipped Luxe it would never exist.
/// deliberately luxe's own: a file belonging to the harness luxe is *developed* with is excluded
/// from release archives, so in any shipped luxe it would never exist.
pub fn from_project_local_sources(
title: impl Into<String>,
project_root: &Path,

View File

@@ -53,8 +53,8 @@ fn review_targets_round_trip_without_literal_diff_payloads() {
}
/// Context comes from the project's own artifacts. It used to read `.pi/agent-loop/PLAN.md` —
/// a file belonging to the harness Luxe is developed with, excluded from release archives —
/// so a shipped Luxe always produced empty excerpts.
/// a file belonging to the harness luxe is developed with, excluded from release archives —
/// so a shipped luxe always produced empty excerpts.
#[test]
fn draft_collects_project_local_sources_in_stable_categories() {
let project = tempfile::tempdir().unwrap();

View File

@@ -1,6 +1,6 @@
//! Review exclusions — what a review leaves out, and why that is safe to do.
//!
//! Two things a repository carries that nobody reviews: Luxe's own `.luxe/` directory (sessions,
//! Two things a repository carries that nobody reviews: luxe's own `.luxe/` directory (sessions,
//! logs, caches, screenshots, task and review memory — byproducts of the tool running, not changes
//! to the project), and whatever bookkeeping a given project keeps that its reviewers already
//! ignore. The first is excluded always and needs no configuration; the second is `review.exclude`.
@@ -11,7 +11,7 @@
use serde::{Deserialize, Serialize};
/// Luxe's own project directory. Never reviewed, never configurable.
/// luxe's own project directory. Never reviewed, never configurable.
pub const LUXE_PROJECT_DIR: &str = ".luxe";
/// What a review leaves out of the diff it presents.
@@ -37,13 +37,13 @@ impl ReviewExclusions {
is_luxe_artifact(path) || self.patterns.iter().any(|pattern| matches_glob(pattern, path))
}
/// Whether anything beyond Luxe's own directory is configured.
/// Whether anything beyond luxe's own directory is configured.
pub fn is_empty(&self) -> bool {
self.patterns.is_empty()
}
}
/// Whether a path is a byproduct of Luxe running rather than a change to the project.
/// Whether a path is a byproduct of luxe running rather than a change to the project.
pub fn is_luxe_artifact(path: &str) -> bool {
path == LUXE_PROJECT_DIR
|| path.starts_with(&format!("{LUXE_PROJECT_DIR}/"))

View File

@@ -84,7 +84,7 @@ pub fn format_review_feedback_message(
pub(crate) const REPORT_INSTRUCTION: &str =
"End your reply with this block, exactly as shown, one \
line per comment in the order above. Set each status to fixed, not_fixed or \
needs_clarification, and replace each note with one sentence on what you did. Luxe reads it to \
needs_clarification, and replace each note with one sentence on what you did. luxe reads it to \
update the review; the reviewer sees your prose, not this.";
/// A finding's words as the agent reads them: the reader's own as they are, and a GitHub

View File

@@ -138,7 +138,7 @@ fn formatter_keeps_review_evidence_deterministic_and_structured() {
assert!(message.contains("Do not rewrite unrelated code."));
// the report a fix request asks for is the last thing it says, with the real IDs in it,
// and filled in it is a report Luxe accepts
// and filled in it is a report luxe accepts
let template = crate::guided_review::remediation_report_template(std::slice::from_ref(
&finding.finding_id,
));

View File

@@ -176,7 +176,7 @@ pub enum FindingMessageAuthor {
Reviewer,
/// A remediation report from the active agent.
Agent,
/// Luxe-generated lifecycle evidence.
/// luxe-generated lifecycle evidence.
System,
}
@@ -186,7 +186,7 @@ impl FindingMessageAuthor {
match self {
Self::Reviewer => "Reviewer",
Self::Agent => "Agent",
Self::System => "Luxe",
Self::System => "luxe",
}
}
}

View File

@@ -187,7 +187,7 @@ impl ReviewSession {
Ok(())
}
/// Notes, in Luxe's own name, that a fix turn ended with no word from the agent on these
/// Notes, in luxe's own name, that a fix turn ended with no word from the agent on these
/// comments, and why.
///
/// Without it a comment the agent was asked to fix looks exactly as if it had been ignored. The

View File

@@ -420,7 +420,7 @@ const BRIEF_INSTRUCTION: &str = "Also add a top-level \"brief\": {\"intent\", \"
Its reader has already seen the conversation, so don't repeat it. `intent` is one or two \
sentences on the problem being solved. `account` is up to five short claims about what the \
change does, each one something a reviewer can check in the diff. Don't report on your own \
testing; Luxe states that from the record.\n";
testing; luxe states that from the record.\n";
/// The request describing one batch, or `None` when it cannot be serialized.
fn batch_prompt(

View File

@@ -10,7 +10,7 @@ async fn repository() -> (tempfile::TempDir, LocalGit) {
let project = tempfile::tempdir().unwrap();
let git = LocalGit::new(project.path());
git.run("initialize repository", &["init", "--quiet"]).await.unwrap();
git.run("name the author", &["config", "user.name", "Luxe Tests"]).await.unwrap();
git.run("name the author", &["config", "user.name", "luxe Tests"]).await.unwrap();
git.run("mail the author", &["config", "user.email", "tests@luxe.invalid"]).await.unwrap();
std::fs::write(project.path().join("keep.txt"), "kept\n").unwrap();
commit_all(&git, "initial").await;
@@ -154,7 +154,7 @@ async fn a_commit_of_empty_and_binary_additions_loads_whole() {
assert!(!review.chapters.is_empty());
}
/// Luxe's own rendering of an empty file that is gone parses as the deletion it describes.
/// luxe's own rendering of an empty file that is gone parses as the deletion it describes.
#[test]
fn an_empty_whole_file_deletion_parses() {
let rendered = crate::guided_review::render_whole_file_deletion(Path::new("gone.txt"), "");

View File

@@ -11,7 +11,7 @@ async fn project_with_changes() -> (tempfile::TempDir, LocalGit) {
// In the repository, not as `-c` flags on the setup commit: the commit under test is made by
// *product* code, which rightly never invents an author. A machine with no global identity — a
// CI runner, a fresh container — then fails at the assertion rather than at the fixture.
git.run("configure author", &["config", "user.name", "Luxe Tests"]).await.unwrap();
git.run("configure author", &["config", "user.name", "luxe Tests"]).await.unwrap();
git.run("configure author", &["config", "user.email", "tests@luxe.local"]).await.unwrap();
std::fs::write(project.path().join("lib.rs"), "let a = 1;\n").unwrap();
std::fs::write(project.path().join("notes.md"), "old\n").unwrap();

View File

@@ -181,7 +181,7 @@ async fn base_target_resolves_a_local_merge_base_and_rejects_unsafe_input() {
"create initial commit",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",
@@ -240,7 +240,7 @@ async fn commit_target_records_first_parent_and_root_semantics() {
"create initial commit",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",
@@ -273,7 +273,7 @@ async fn commit_target_records_first_parent_and_root_semantics() {
"create follow-up commit",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",
@@ -315,7 +315,7 @@ async fn merge_commit_target_uses_only_its_first_parent() {
"commit base",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",
@@ -333,7 +333,7 @@ async fn merge_commit_target_uses_only_its_first_parent() {
"commit feature",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",
@@ -351,7 +351,7 @@ async fn merge_commit_target_uses_only_its_first_parent() {
"commit main",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",
@@ -369,7 +369,7 @@ async fn merge_commit_target_uses_only_its_first_parent() {
"merge feature",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"merge",
@@ -539,7 +539,7 @@ async fn commit(git: &LocalGit, message: &str) {
"create commit",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",

View File

@@ -11,7 +11,7 @@ fn git(dir: &Path, args: &[&str]) -> String {
}
fn identify(dir: &Path) {
git(dir, &["config", "user.name", "Luxe Tests"]);
git(dir, &["config", "user.name", "luxe Tests"]);
git(dir, &["config", "user.email", "tests@luxe.local"]);
}

View File

@@ -41,7 +41,7 @@ async fn complete_head_worktree_source_has_one_tracked_stream_and_sorted_untrack
"create initial commit",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",
@@ -292,7 +292,7 @@ async fn provenance_marks_staged_and_unstaged_changes_without_a_patch() {
"create initial commit",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",
@@ -324,7 +324,7 @@ async fn index_delete_and_worktree_recreate_remains_a_final_state_noop() {
"create initial commit",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",
@@ -364,7 +364,7 @@ async fn tracked_capture_compares_the_head_to_the_final_worktree_state() {
"create initial commit",
&[
"-c",
"user.name=Luxe Tests",
"user.name=luxe Tests",
"-c",
"user.email=tests@luxe.invalid",
"commit",
@@ -453,7 +453,7 @@ async fn unborn_worktree_resolves_to_the_empty_tree() {
);
}
/// Luxe's own directory is a byproduct of the tool running, never the user's change.
/// luxe's own directory is a byproduct of the tool running, never the user's change.
///
/// It arrived in reviews two ways: as an untracked path (`.luxe/.gitignore` used to un-ignore
/// itself, which is all Git needs to report the whole directory), and — for anyone who committed
@@ -488,7 +488,7 @@ async fn an_untracked_file_the_policy_cannot_hold_is_left_out_and_named() {
git.run("stage initial file", &["add", "tracked.txt"]).await.unwrap();
git.run(
"commit initial file",
&["-c", "user.name=Luxe", "-c", "user.email=luxe@example.invalid", "commit", "-qm", "base"],
&["-c", "user.name=luxe", "-c", "user.email=luxe@example.invalid", "commit", "-qm", "base"],
)
.await
.unwrap();

View File

@@ -39,7 +39,7 @@ async fn last_turn_preserves_preexisting_dirty_and_untracked_content() {
git.run("configure test identity", &["config", "user.email", "tests@example.invalid"])
.await
.unwrap();
git.run("configure test name", &["config", "user.name", "Luxe Tests"]).await.unwrap();
git.run("configure test name", &["config", "user.name", "luxe Tests"]).await.unwrap();
std::fs::write(project.path().join("tracked.txt"), "committed\n").unwrap();
git.run("stage fixture", &["add", "tracked.txt"]).await.unwrap();
git.run("commit fixture", &["commit", "--quiet", "-m", "fixture"]).await.unwrap();

View File

@@ -58,7 +58,7 @@ pub enum ReviewBase {
/// First parent, absent for a root commit.
parent_oid: Option<String>,
},
/// Complete pre-turn baseline retained by Luxe.
/// Complete pre-turn baseline retained by luxe.
TurnBaseline {
/// Immutable baseline revision identifier.
revision_id: ReviewRevisionId,
@@ -201,7 +201,7 @@ pub struct ReviewStats {
pub binary_files: u64,
/// Number of explicit non-text file items.
pub non_text_files: u64,
/// Files left out of the review by `review.exclude` or as Luxe's own artifacts.
/// Files left out of the review by `review.exclude` or as luxe's own artifacts.
///
/// Counted, never silent: a review that shows less than the diff has to say so.
#[serde(default)]

View File

@@ -2,7 +2,7 @@
//!
//! The reviewer's comments become a single review with a verdict, the way they would submit one on
//! the site. Where each comment lands is decided here, against GitHub's own patches rather than
//! Luxe's diff: the two usually agree, and a comment that assumed so and was wrong would be refused
//! luxe's diff: the two usually agree, and a comment that assumed so and was wrong would be refused
//! (`Line could not be resolved`) and take the whole review with it.
//!
//! Nothing is added to the reviewer's words. A comment that cannot sit on a line goes in the

View File

@@ -48,7 +48,7 @@ fn review() -> GuidedReview {
}
}
/// GitHub's patch agrees with Luxe's diff unless a test says otherwise.
/// GitHub's patch agrees with luxe's diff unless a test says otherwise.
fn patches_matching(review: &GuidedReview) -> Vec<FilePatch> {
review
.files

View File

@@ -2,7 +2,7 @@
//!
//! A diff shows the result; the process is where the review-critical signals live. A skipped test,
//! a file edited without ever being read, a weakened gate, work nobody asked for — none of those
//! appear in the patch. Luxe is the harness, so it can read them off its own transcript instead of
//! appear in the patch. luxe is the harness, so it can read them off its own transcript instead of
//! inferring intent from filenames.
//!
//! This is bounded, redacted, UI-neutral data. It grounds the chaptering prompt and renders as the
@@ -53,7 +53,7 @@ impl CommandRun {
}
}
/// Whether a command line reads as a test run across the ecosystems Luxe drives.
/// Whether a command line reads as a test run across the ecosystems luxe drives.
fn looks_like_test_command(command: &str) -> bool {
let lowered = command.to_ascii_lowercase();
[
@@ -118,7 +118,7 @@ impl TurnProvenance {
match message.role {
Role::User => {
if let Some(text) = message_text(message) {
// Feedback submissions are Luxe talking to itself, not a user request.
// Feedback submissions are luxe talking to itself, not a user request.
if !text.starts_with("Guided review feedback") {
provenance.requests.push(bounded(&text, MAX_ACCOUNT_CHARS));
}

View File

@@ -204,7 +204,7 @@ fn a_path_outside_the_project_is_not_recorded() {
assert!(provenance.written_paths.is_empty(), "nothing outside the project is attributed");
}
/// The `test` tool is the one Luxe tells models to prefer, and its command is auto-detected,
/// The `test` tool is the one luxe tells models to prefer, and its command is auto-detected,
/// so an argument-less call still ran the suite.
#[test]
fn the_test_tool_counts_as_a_command_that_verifies() {

View File

@@ -3,10 +3,10 @@
//! A branch's Guided Review already says what changed and why, chapter by chapter, in the order it
//! makes sense. That is the description a pull request usually lacks, so it becomes the draft: the
//! review's intent, each chapter with its reasons, and `Closes #n` when the session took up an
//! issue. Anyone reading it on GitHub gets the story, with or without Luxe.
//! issue. Anyone reading it on GitHub gets the story, with or without luxe.
//!
//! It is a draft. The reader edits it in a preview before anything is sent, and nothing is added
//! that they did not see: no signature, no marker, nothing about Luxe.
//! that they did not see: no signature, no marker, nothing about luxe.
use super::{ChapterKind, GuidedReview};

View File

@@ -84,13 +84,13 @@ pub enum RemediationReportError {
/// The report describes a different immutable source revision.
#[error("remediation report has a different source revision")]
WrongRevision,
/// Not one entry names a comment that was sent with a status Luxe reads.
/// Not one entry names a comment that was sent with a status luxe reads.
#[error("remediation report names no submitted finding with a known status")]
NothingUsable,
}
impl RemediationReportError {
/// What went wrong, as the tail of a sentence: told to the agent when Luxe asks again, and to
/// What went wrong, as the tail of a sentence: told to the agent when luxe asks again, and to
/// the reviewer on each comment the report did not cover.
pub fn reason(&self) -> &'static str {
match self {
@@ -232,7 +232,7 @@ fn first_json_value(text: &str) -> Result<(Value, usize), serde_json::Error> {
///
/// A review or revision the report names must be the turn's, prefix or no prefix, or the whole
/// report is refused: it is about something else. One it leaves out is the turn's. Inside it, an entry for a comment that was not sent, a second entry for
/// the same comment, or a status Luxe cannot read is dropped and the rest are kept. A report left
/// the same comment, or a status luxe cannot read is dropped and the rest are kept. A report left
/// with nothing is [`RemediationReportError::NothingUsable`].
fn read_report(
value: &Value,
@@ -260,7 +260,7 @@ fn read_report(
findings.push(result);
}
Some(_) => tracing::debug!("dropped a second report entry for one comment"),
None => tracing::debug!(%entry, "dropped a report entry Luxe cannot use"),
None => tracing::debug!(%entry, "dropped a report entry luxe cannot use"),
}
}
if findings.is_empty() {
@@ -273,7 +273,7 @@ fn read_report(
})
}
/// One entry, when it names a comment that was sent and has a status Luxe reads.
/// One entry, when it names a comment that was sent and has a status luxe reads.
fn read_result(entry: &Value, known: &[FindingId]) -> Option<RemediationResult> {
let named = entry.get("finding_id")?.as_str()?.trim();
// the known ID, never one built out of what the model wrote

View File

@@ -26,7 +26,7 @@ fn extract(text: &str) -> Result<Option<RemediationReport>, RemediationReportErr
fn statuses(text: &str) -> Vec<(String, RemediationStatus)> {
extract(text)
.expect("a report Luxe can use")
.expect("a report luxe can use")
.expect("a report")
.findings
.into_iter()

View File

@@ -207,7 +207,7 @@ mod tests {
number,
repository: repository.map(str::to_owned),
};
store.record(&pr(7, Some("Upstream/Luxe")), seen(&["a"])).unwrap();
store.record(&pr(7, Some("Upstream/luxe")), seen(&["a"])).unwrap();
store.record(&pr(7, None), seen(&["b"])).unwrap();
assert_eq!(store.load(&pr(7, Some("upstream/luxe"))).unwrap().item_ids, vec!["a"]);

View File

@@ -90,7 +90,7 @@ pub enum SourceStoreError {
/// Underlying JSON error.
error: serde_json::Error,
},
/// The artifact uses a schema this Luxe version does not understand.
/// The artifact uses a schema this luxe version does not understand.
#[error("review source artifact uses unsupported schema {schema_version}")]
UnsupportedSchema {
/// Schema version found in the manifest.

View File

@@ -87,7 +87,7 @@ impl HookPoint {
Self::PermissionResolved,
];
/// The one spelling Luxe writes and documents, matching how the variant serializes.
/// The one spelling luxe writes and documents, matching how the variant serializes.
///
/// Exhaustive on purpose: a new variant does not compile until it has a name here.
pub fn canonical_name(&self) -> &'static str {

View File

@@ -5,9 +5,9 @@
//! at a glance, which agent is running, which needs a decision, and which is ready to review.
//!
//! Herdr recognizes most agents by *process detection* + screen scraping, which requires a Herdr
//! binary update per new agent. Instead Luxe acts as a **custom socket integration** (Herdr's
//! supported extension path): when Luxe runs inside a Herdr pane (`HERDR_ENV=1`), this hook reports
//! Luxe's own lifecycle to Herdr via the `herdr pane report-agent` CLI. That makes Luxe a
//! binary update per new agent. Instead luxe acts as a **custom socket integration** (Herdr's
//! supported extension path): when luxe runs inside a Herdr pane (`HERDR_ENV=1`), this hook reports
//! luxe's own lifecycle to Herdr via the `herdr pane report-agent` CLI. That makes luxe a
//! first-class, correctly-tracked agent in the sidebar without Herdr needing to know the `luxe`
//! process at all.
//!
@@ -136,7 +136,7 @@ impl HerdrReporter for CliHerdrReporter {
}
}
/// Reports Luxe's lifecycle to Herdr. Registered only when running inside a Herdr pane.
/// Reports luxe's lifecycle to Herdr. Registered only when running inside a Herdr pane.
pub struct HerdrHook {
reporter: Box<dyn HerdrReporter>,
/// Last state sent, to suppress redundant reports (a turn fires `AgentStart` many times).

View File

@@ -271,7 +271,7 @@ mod tests {
assert_eq!(run(&hook, "read", 1).await.len(), 1);
}
/// Loading a deferred tool's schema is Luxe's own request-budget bookkeeping, not a step in the
/// Loading a deferred tool's schema is luxe's own request-budget bookkeeping, not a step in the
/// task — so it cannot be the work a plan has fallen behind.
#[tokio::test]
async fn bookkeeping_calls_are_not_work_the_plan_fell_behind() {

View File

@@ -273,11 +273,23 @@ impl Hook for SelfContinuationHook {
info!(iteration, "continuing the loop");
debug!(%steer, "self-continuation steer");
// The one marker that makes a run readable from outside: where it is, each time it moves.
cx.notify(format!("iteration {iteration} · phase {}", state.current_phase));
cx.notify(iteration_notice(iteration, state.current_phase));
HookOutcome::ContinueLoop { message: steer }
}
}
/// The notice that opens each iteration: `iteration 4 · phase 1`.
pub fn iteration_notice(iteration: u64, phase: u32) -> String {
format!("iteration {iteration} · phase {phase}")
}
/// The iteration and phase an [`iteration_notice`] names, or `None` for any other notice. Beside
/// the writer so a front-end drawing the run's structure never guesses at the wording.
pub fn parse_iteration_notice(notice: &str) -> Option<(u64, u32)> {
let (iteration, phase) = notice.strip_prefix("iteration ")?.split_once(" · phase ")?;
Some((iteration.parse().ok()?, phase.parse().ok()?))
}
#[cfg(test)]
mod tests;

View File

@@ -209,3 +209,24 @@ async fn test_self_continuation_hook_stopped_sentinel() {
// STOP sentinel exists -> Continue.
assert!(matches!(outcome, HookOutcome::Continue));
}
/// The notice is pinned as a literal, since the loop view reads it, and the parser reads it back.
#[test]
fn the_iteration_notice_reads_back() {
assert_eq!(iteration_notice(4, 1), "iteration 4 · phase 1");
assert_eq!(parse_iteration_notice("iteration 4 · phase 1"), Some((4, 1)));
}
/// Every other notice, a near miss included, is not an iteration.
#[test]
fn other_notices_are_not_iterations() {
for notice in [
"phase 0 accepted — now on phase 1",
"iteration 4",
"iteration x · phase 1",
"iteration 4 · phase one",
"",
] {
assert_eq!(parse_iteration_notice(notice), None, "{notice}");
}
}

View File

@@ -71,7 +71,7 @@ impl Sanitized {
}
if self.withheld {
return Some(format!(
"{name}: left out of the prompt — it repeats link definitions more often than Luxe \
"{name}: left out of the prompt — it repeats link definitions more often than luxe \
can check for hidden text"
));
}
@@ -132,7 +132,7 @@ const PLACEHOLDER: char = '\u{7f}';
/// The whole text of a withheld file, so every caller passes the reason on rather than an empty
/// string.
const WITHHELD: &str = "[withheld: this file repeats link definitions more often than Luxe can \
const WITHHELD: &str = "[withheld: this file repeats link definitions more often than luxe can \
check for hidden text]";
/// Characters that put text on the page without putting it in front of anyone.
@@ -175,7 +175,7 @@ pub enum ContextScope {
Global,
/// The top of the checkout, or the project directory when there is none
Project,
/// A folder below that, on the way down to where Luxe was launched
/// A folder below that, on the way down to where luxe was launched
Folder,
}
@@ -226,7 +226,7 @@ pub fn context_files(cwd: &std::path::Path) -> Vec<ContextFile> {
/// Marks each file that repeats an earlier one, by identity first and then by text.
///
/// Byte-identical text is the only overlap Luxe settles on its own. Two files that say *mostly*
/// Byte-identical text is the only overlap luxe settles on its own. Two files that say *mostly*
/// the same thing are two files someone wrote, and choosing between their sentences is the
/// author's job.
fn dedupe(found: impl Iterator<Item = (std::path::PathBuf, ContextScope)>) -> Vec<ContextFile> {
@@ -263,15 +263,15 @@ pub fn project_context_file(cwd: &std::path::Path) -> std::path::PathBuf {
top.unwrap_or_else(|| cwd.to_path_buf()).join(INSTRUCTION_FILES[0])
}
/// The global instruction file Luxe creates when asked: `~/.config/luxe/agents.md`.
/// The global instruction file luxe creates when asked: `~/.config/luxe/agents.md`.
pub fn global_context_file() -> std::path::PathBuf {
crate::user_dirs::luxe_config_dir().join("agents.md")
}
/// Every global instruction file Luxe reads, broadest first, whether or not it exists.
/// Every global instruction file luxe reads, broadest first, whether or not it exists.
///
/// `~/.agents/AGENTS.md` is the file a growing number of people keep for *every* agent they run,
/// and Luxe's own sits after it so the Luxe-specific word lands later. Somebody who symlinked one to
/// and luxe's own sits after it so the luxe-specific word lands later. Somebody who symlinked one to
/// the other gets it once.
pub fn global_context_files() -> Vec<std::path::PathBuf> {
let shared = crate::user_dirs::home_dir().map(|home| home.join(".agents").join("AGENTS.md"));

View File

@@ -1,7 +1,7 @@
//! Nested instructions — the `AGENTS.md` files off the launch chain, read when work reaches them.
//!
//! The system prompt carries the files from the top of the checkout down to where Luxe started,
//! and it's written once per session. A file in a folder off that chain (`web/AGENTS.md` when Luxe
//! The system prompt carries the files from the top of the checkout down to where luxe started,
//! and it's written once per session. A file in a folder off that chain (`web/AGENTS.md` when luxe
//! started at the root) can't join it without rewriting the prompt every later request is cached
//! against. So it rides on the result of the first tool call that reaches its folder: an append,
//! like any other result. Whether the model already has one is read off the conversation by the

View File

@@ -12,7 +12,7 @@ fn checkout(files: &[&str]) -> tempfile::TempDir {
dir
}
/// What [`nested_files`] names for `target`, from Luxe launched at `launch`, both under `root`.
/// What [`nested_files`] names for `target`, from luxe launched at `launch`, both under `root`.
fn shown(root: &Path, launch: &str, target: &str) -> Vec<String> {
let files = nested_files(&root.join(launch), &root.join(target));
files.into_iter().map(|file| file.shown).collect()

View File

@@ -649,7 +649,7 @@ fn identical_text_is_carried_once_and_different_text_is_not_touched() {
assert!(found[0].is_loaded());
assert!(!found[1].is_loaded());
assert_eq!(found[1].duplicate_of, Some(root.join("AGENTS.md")), "a byte-identical copy");
assert!(found[2].is_loaded(), "overlap is the author's to settle, not Luxe's");
assert!(found[2].is_loaded(), "overlap is the author's to settle, not luxe's");
}
/// Two empty files are not "the same instructions" in any sense worth reporting.
@@ -682,7 +682,7 @@ fn a_directory_prefers_agents_md_but_accepts_claude_md() {
fn the_global_files_put_the_shared_one_first() {
let files = global_context_files();
assert!(global_context_file().ends_with(std::path::Path::new("luxe").join("agents.md")));
assert_eq!(files.last(), Some(&global_context_file()), "Luxe's own comes last");
assert_eq!(files.last(), Some(&global_context_file()), "luxe's own comes last");
if let Some(home) = crate::user_dirs::home_dir() {
assert_eq!(files.first(), Some(&home.join(".agents").join("AGENTS.md")));
}

View File

@@ -2,10 +2,10 @@
//!
//! The provider credential store, the config and permissions writers and the MCP token store all
//! edit a file a human owns, which sets the rules: never lose a key we don't understand, never
//! leave a half-written file behind, and never race another Luxe process (a token refresh in one
//! leave a half-written file behind, and never race another luxe process (a token refresh in one
//! and a `/login` in another).
//!
//! The lock is a directory. `create_dir` is atomic everywhere Luxe runs and needs no dependency; a
//! The lock is a directory. `create_dir` is atomic everywhere luxe runs and needs no dependency; a
//! lock older than `LOCK_STALE` is assumed to belong to a killed process and is broken, because
//! refusing to ever write again is the worse failure.
@@ -88,7 +88,7 @@ impl JsonFile {
/// Parse as a JSON object, treating an absent, empty, or malformed file as "nothing yet".
///
/// Reads are forgiving on purpose: a syntax error in a config file must not stop Luxe from
/// Reads are forgiving on purpose: a syntax error in a config file must not stop luxe from
/// starting, only from writing.
pub fn read(&self) -> Option<Map<String, Value>> {
let text = std::fs::read_to_string(&self.path).ok()?;
@@ -124,7 +124,7 @@ impl JsonFile {
Ok(outcome)
}
/// [`Self::modify`] for a file Luxe writes for itself, where one that does not parse is moved
/// [`Self::modify`] for a file luxe writes for itself, where one that does not parse is moved
/// aside rather than refused: to `<name>.bad`, or `<name>.bad-<millis>` when that is taken, so an
/// earlier one survives. The move happens under the lock, so two writers meeting the same broken
/// file cannot set each other's work aside. Returns where the broken file went.

View File

@@ -1,6 +1,6 @@
//! local_endpoint — the way into a running Luxe from the same machine, and the list of them.
//! local_endpoint — the way into a running luxe from the same machine, and the list of them.
//!
//! Each interactive Luxe serves its protocol here, so another front-end (the `luxe remote` bridge,
//! Each interactive luxe serves its protocol here, so another front-end (the `luxe remote` bridge,
//! `luxe join`, a script) can join the session it is running. It is local IPC, not network I/O: a
//! Unix socket in a folder only this user can open, or on Windows a named pipe only this user can
//! open and no other machine can reach. This module is the one owner of those platform details.
@@ -28,14 +28,14 @@ pub trait LocalIo: AsyncRead + AsyncWrite + Unpin + Send {}
impl<T: AsyncRead + AsyncWrite + Unpin + Send> LocalIo for T {}
/// A connection to or from a running Luxe.
/// A connection to or from a running luxe.
pub type LocalStream = Box<dyn LocalIo>;
/// A client that connected, with its process id where the platform reports one.
pub struct Joined {
/// The connection
pub stream: LocalStream,
/// The client's process id, for the check that it is not one of this Luxe's own children
/// The client's process id, for the check that it is not one of this luxe's own children
pub peer: Option<u32>,
}
@@ -61,7 +61,7 @@ impl EndpointError {
}
}
/// This Luxe's endpoint, open for clients until it is dropped.
/// This luxe's endpoint, open for clients until it is dropped.
pub struct EndpointListener(platform::Listener);
impl EndpointListener {

View File

@@ -1,6 +1,6 @@
//! Ancestry — whether a process was started, at any depth, by another.
//!
//! The tripwire that keeps a Luxe's own children (the agent's `bash`, a hook) from joining its
//! The tripwire that keeps a luxe's own children (the agent's `bash`, a hook) from joining its
//! session and answering their own prompts. A tripwire, not a wall: a process that detaches itself
//! leaves the chain, and the documentation says so. Blocking: run it off the async runtime.

View File

@@ -1,17 +1,17 @@
//! Live sessions — which Luxes on this machine can be joined, and where.
//!
//! Each running Luxe with an endpoint leaves a small record in the runtime folder, named for its
//! process, and takes it away when it stops. A record left by a Luxe that died is found out by the
//! Each running luxe with an endpoint leaves a small record in the runtime folder, named for its
//! process, and takes it away when it stops. A record left by a luxe that died is found out by the
//! one test that matters: its endpoint no longer answers.
use serde::{Deserialize, Serialize};
use std::io;
use std::path::{Path, PathBuf};
/// One running Luxe that can be joined.
/// One running luxe that can be joined.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct LiveSession {
/// The Luxe's process id
/// The luxe's process id
pub pid: u32,
/// Session it is running
pub session_id: String,
@@ -23,7 +23,7 @@ pub struct LiveSession {
pub luxe_version: String,
}
/// This Luxe's record in the runtime folder, removed when dropped.
/// This luxe's record in the runtime folder, removed when dropped.
pub struct Publication {
path: PathBuf,
}
@@ -39,7 +39,7 @@ impl LiveSession {
}
impl Publication {
/// Rewrites the record, as when the Luxe moves to another session.
/// Rewrites the record, as when the luxe moves to another session.
pub fn update(&self, session: &LiveSession) -> io::Result<()> {
let bytes = serde_json::to_vec_pretty(session).map_err(io::Error::other)?;
crate::fs_atomic::replace_private(&self.path, &bytes)
@@ -64,7 +64,7 @@ pub fn live_sessions(dir: &Path) -> Vec<LiveSession> {
found
}
/// [`live_sessions`] whose Luxe is still running: one that crashed leaves its record behind.
/// [`live_sessions`] whose luxe is still running: one that crashed leaves its record behind.
///
/// Checked by process id rather than by connecting, since a connection is a client joining, and the
/// terminal running the session says so each time.

View File

@@ -35,7 +35,7 @@ async fn the_socket_is_private_and_goes_with_the_listener() {
assert_eq!(mode(&run), 0o700, "the folder");
assert_eq!(mode(&socket), 0o600, "the socket");
drop(listener);
assert!(!socket.exists(), "a stopped Luxe leaves no socket behind");
assert!(!socket.exists(), "a stopped luxe leaves no socket behind");
assert!(connect(&socket.to_string_lossy()).await.is_err());
}

View File

@@ -4,7 +4,7 @@
//! the anonymous account, and reading is the whole transcript; and a pipe can be opened across the
//! network while the Server service runs. So every instance is created with a descriptor granting
//! this user alone, remote clients are refused, and the first instance must be new, so nothing can
//! claim the name before Luxe does.
//! claim the name before luxe does.
use super::{EndpointError, Joined, LocalStream};
use std::path::Path;

View File

@@ -349,7 +349,7 @@ impl LoopStatus {
///
/// The flag alone cannot answer it: a killed run leaves `running: true` behind and has no way
/// to correct it. An unrecorded owner reads as running, because that is what the file says and
/// there is nothing to contradict it — a state written by an older Luxe, or a run marked
/// there is nothing to contradict it — a state written by an older luxe, or a run marked
/// resumable and not yet started.
pub fn is_live(&self) -> bool {
self.running && !matches!(self.liveness, crate::loop_state::LoopLiveness::Gone { .. })

View File

@@ -116,7 +116,7 @@ pub enum LoopLiveness {
/// The machine that wrote the record
host: String,
},
/// Nothing was recorded: a state file written before Luxe kept this, or a run marked
/// Nothing was recorded: a state file written before luxe kept this, or a run marked
/// resumable by `luxe loop resume`, which flags the state without driving anything.
Unrecorded,
}
@@ -328,7 +328,7 @@ mod owner_tests {
assert_eq!(state.owned_by_another_process(), None);
}
/// A state file written before Luxe recorded an owner still loads, and claims nothing.
/// A state file written before luxe recorded an owner still loads, and claims nothing.
#[test]
fn a_state_without_an_owner_makes_no_claim() {
let older = r#"{"running":true,"iteration":3,"current_phase":1,"max_turns_per_run":50,

View File

@@ -32,7 +32,7 @@ pub enum McpTransport {
/// Working directory for the process.
cwd: Option<PathBuf>,
/// Extra environment variables for the child process. Values support `${VAR}` and
/// `$env:VAR` interpolation against Luxe's own environment.
/// `$env:VAR` interpolation against luxe's own environment.
#[serde(default)]
env: std::collections::HashMap<String, String>,
},
@@ -114,7 +114,7 @@ pub enum McpAuth {
///
/// Spelled `oauth`, as every example in the docs writes it. `snake_case` alone made it
/// `o_auth`, so a hand-written `"kind": "oauth"` failed to parse and took the whole file with it;
/// `o_auth` is still read, since that is what Luxe itself would have written.
/// `o_auth` is still read, since that is what luxe itself would have written.
#[serde(rename = "oauth", alias = "o_auth")]
OAuth(OAuthConfig),
}
@@ -276,7 +276,7 @@ pub struct McpToolResult {
pub error: Option<String>,
}
/// The MCP protocol version Luxe speaks, on both transports and the OAuth probe.
/// The MCP protocol version luxe speaks, on both transports and the OAuth probe.
pub const MCP_PROTOCOL_VERSION: &str = "2025-06-18";
/// Expands `${VAR}` and `$env:VAR` from the environment, left to right, whichever marker comes

View File

@@ -92,7 +92,7 @@ struct StandardServer {
enabled: bool,
#[serde(default)]
timeout_secs: Option<u64>,
/// Luxe's own addition to the shape: other hosts ignore it, and without it an OAuth server
/// luxe's own addition to the shape: other hosts ignore it, and without it an OAuth server
/// written the way `docs/guide/mcp.md` shows lost its auth without a word
#[serde(default)]
auth: Option<McpAuth>,
@@ -102,7 +102,7 @@ fn default_true() -> bool {
true
}
/// Read a config file in either the Luxe (`servers`) or standard (`mcpServers`) shape. A missing,
/// Read a config file in either the luxe (`servers`) or standard (`mcpServers`) shape. A missing,
/// empty, or unparseable file yields no servers (so a stray file never blocks launch), and says so.
fn load_any(path: &Path) -> Vec<McpServerConfig> {
let Ok(text) = std::fs::read_to_string(path) else { return Vec::new() };
@@ -117,8 +117,8 @@ fn load_any(path: &Path) -> Vec<McpServerConfig> {
/// The servers `text` names in either shape, or why it names none it meant to.
///
/// A Luxe-shape file that fails to parse also reads as an empty standard one, so when the
/// standard shape finds nothing the Luxe error is the one that explains the file.
/// A luxe-shape file that fails to parse also reads as an empty standard one, so when the
/// standard shape finds nothing the luxe error is the one that explains the file.
fn parse_any(text: &str) -> Result<Vec<McpServerConfig>, String> {
let luxe = serde_json::from_str::<McpConfigFile>(text);
if let Ok(file) = &luxe {
@@ -224,11 +224,11 @@ impl McpConfigStore {
/// precedence (project overrides user-global; luxe-owned overrides the shared standard file):
///
/// 1. `~/.config/mcp/mcp.json` (standard, user-global) — lowest
/// 2. `~/.config/luxe/mcp.json` (Luxe, user-global)
/// 2. `~/.config/luxe/mcp.json` (luxe, user-global)
/// 3. `.mcp.json` (standard, project)
/// 4. `.luxe/mcp.json` (Luxe, project) — highest
/// 4. `.luxe/mcp.json` (luxe, project) — highest
///
/// Both the Luxe shape (`{ "servers": [...] }`) and the standard shape
/// Both the luxe shape (`{ "servers": [...] }`) and the standard shape
/// (`{ "mcpServers": { id: {...} } }`, as written by Cursor/Claude/Codex) are understood, so an
/// existing MCP setup works with no conversion.
pub fn resolved(repo_root: &Path) -> Vec<McpServerConfig> {
@@ -266,7 +266,7 @@ impl McpConfigStore {
[repo_root.join(".mcp.json"), repo_root.join(".luxe").join("mcp.json")]
}
/// The shared `mcp/mcp.json` other clients read, then Luxe's own.
/// The shared `mcp/mcp.json` other clients read, then luxe's own.
fn user_sources() -> Vec<PathBuf> {
let shared = crate::user_dirs::config_home().map(|home| home.join("mcp").join("mcp.json"));
let own = crate::user_dirs::luxe_config_home().map(|luxe| luxe.join("mcp.json"));

View File

@@ -85,7 +85,7 @@ fn resolved_merges_sources_with_project_luxe_winning() {
r#"{ "mcpServers": { "shared": { "command": "a" }, "only-std": { "command": "b" } } }"#,
)
.unwrap();
// Luxe project file overrides `shared` and adds `only-luxe`.
// luxe project file overrides `shared` and adds `only-luxe`.
std::fs::create_dir_all(root.join(".luxe")).unwrap();
McpConfigStore::for_repo(root).add(stdio("only-luxe")).unwrap();
let mut shared = stdio("shared");
@@ -101,7 +101,7 @@ fn resolved_merges_sources_with_project_luxe_winning() {
resolved.sort_by(|a, b| a.id.cmp(&b.id));
let ids: Vec<&str> = resolved.iter().map(|s| s.id.as_str()).collect();
assert_eq!(ids, ["only-luxe", "only-std", "shared"]);
// The Luxe project entry wins for `shared`.
// The luxe project entry wins for `shared`.
let shared = resolved.iter().find(|s| s.id == "shared").unwrap();
assert_eq!(shared.name, "overridden");
}
@@ -109,7 +109,7 @@ fn resolved_merges_sources_with_project_luxe_winning() {
/// A cloned repository's `.mcp.json` must not choose what runs on a run that refuses the
/// project's own tooling.
///
/// An `eager` server in one used to spawn the moment Luxe opened the tree, headless included,
/// An `eager` server in one used to spawn the moment luxe opened the tree, headless included,
/// with nothing asked — the same hole `.luxe/hooks.json` is closed against.
#[test]
fn a_refused_project_cannot_start_its_own_servers() {
@@ -236,8 +236,8 @@ fn the_standard_shape_keeps_its_auth() {
assert_eq!(oauth.redirect_uri.as_deref(), Some("http://127.0.0.1:8765/callback"));
}
/// `"kind": "oauth"` is the spelling in every example, and it parses in Luxe's own shape; the
/// `o_auth` Luxe used to write still does; and it is written back as `oauth`. Pinned against
/// `"kind": "oauth"` is the spelling in every example, and it parses in luxe's own shape; the
/// `o_auth` luxe used to write still does; and it is written back as `oauth`. Pinned against
/// the literal, because a round trip through the same enum passes whatever the spelling is.
#[test]
fn oauth_is_spelled_oauth() {
@@ -287,7 +287,7 @@ fn a_secret_is_hidden_from_debug_and_survives_a_rewrite() {
);
}
/// A file Luxe creates is owner-only, since it can hold a secret; a mode the user chose stays.
/// A file luxe creates is owner-only, since it can hold a secret; a mode the user chose stays.
#[cfg(unix)]
#[test]
fn saving_starts_private_and_keeps_a_chosen_mode() {
@@ -302,9 +302,9 @@ fn saving_starts_private_and_keeps_a_chosen_mode() {
assert_eq!(mode(store.path()), 0o644, "a mode the user set is theirs");
}
/// A Luxe-shape file with one entry that does not parse is reported, not read as no servers.
/// A luxe-shape file with one entry that does not parse is reported, not read as no servers.
///
/// The break this catches: the failed Luxe parse fell through to the standard shape, which read
/// The break this catches: the failed luxe parse fell through to the standard shape, which read
/// the same file as an empty `mcpServers` map, so every server in it vanished without a log line.
#[test]
fn a_luxe_file_with_one_bad_entry_is_reported() {

Some files were not shown because too many files have changed in this diff Show More