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:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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}/"))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
));
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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"), "");
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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"]);
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user