chore: regenerate bindings and the traceability matrix

bindings.ts picks up the library-exclusion commands and types from tauri-specta.
The matrix regenerates because validation.ts and its test are gone — the doc
link checker caught the stale references, which is the first time that gate has
paid for itself on a generated artifact rather than a hand-written link.

Also drops exclusions::is_excluded: a wrapper over is_excluded_by that only a
test called, while the trait impls hoist the snapshot themselves. The test now
calls the same path production does.
This commit is contained in:
2026-08-20 20:14:15 +02:00
parent 0815445aa7
commit 68ca1d585d
4 changed files with 6489 additions and 5857 deletions
+4 -1
View File
@@ -279,7 +279,10 @@ mod tests {
};
let json = serde_json::to_string(&settings).expect("serialises");
assert!(json.contains("\"excludedItemIds\""), "camelCase on the wire");
assert!(
json.contains("\"excludedItemIds\""),
"camelCase on the wire"
);
let parsed: LibrarySettings = serde_json::from_str(&json).expect("parses back");
assert_eq!(parsed, settings);
+1 -8
View File
@@ -113,13 +113,6 @@ pub fn is_excluded_by(excluded: &HashSet<String>, item: &MediaItem) -> bool {
}
}
/// Whether the currently-configured exclusions hide `item`.
///
/// TRACES: UR-076 | DR-209
pub fn is_excluded(item: &MediaItem) -> bool {
is_excluded_by(&excluded_snapshot(), item)
}
/// Drop the user's hidden items from a repository result.
///
/// Implemented as a trait so the hybrid repository's generic result helpers —
@@ -326,7 +319,7 @@ mod tests {
let _guard = EXCLUSION_TEST_LOCK.lock_safe();
set_excluded_item_ids(&["hidden".to_string()]);
let still_matches = is_excluded(&item("hidden"));
let still_matches = is_excluded_by(&excluded_snapshot(), &item("hidden"));
let survives = item("hidden").without_excluded();
set_excluded_item_ids(&[]);