mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-21 22:15:40 +00:00
fix(analysis): native library backfill coordinator for advanced strategy (#881)
* feat(analysis): native library backfill coordinator for advanced strategy Move advanced analytics scheduling from the webview loop into a Rust background worker (configure + spawn_blocking batch/enqueue), matching cover backfill. Scan hash+BPM gap tracks instead of the full library; suppress low-priority analysis UI events; limit loudness refresh IPC to the playback window. * fix(analysis): flat backfill configure IPC and restore probe track-perf Use flattened Tauri args like cover backfill so release/prod invoke works; keep emitting analysis:track-perf for library low-priority work so Performance Probe tpm/last-track stats update while waveform/enrichment UI events stay suppressed. * chore(analysis): fix clippy and drop duplicate TS backfill policy Allow too_many_arguments on library_analysis_backfill_configure for CI; remove unused frontend batch API and TS watermark helpers now owned in Rust; clarify analysis_emits_ui_events comment for low-priority track-perf. * docs: CHANGELOG and credits for PR #881 native analysis backfill
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
pub mod cli;
|
||||
mod cover_cache;
|
||||
mod library_analysis_backfill;
|
||||
mod lib_commands;
|
||||
|
||||
pub use psysonic_integration::discord;
|
||||
@@ -123,6 +124,9 @@ pub fn run() {
|
||||
cover_cache::init_cover_cache(app.handle())
|
||||
.map_err(|e| format!("cover cache init failed: {e}"))?;
|
||||
|
||||
library_analysis_backfill::init_library_analysis_backfill(app.handle())
|
||||
.map_err(|e| format!("library analysis backfill init failed: {e}"))?;
|
||||
|
||||
// ── Library track store (psysonic-library, PR-5a + PR-5b) ─────
|
||||
// PR-5a brought up the read-only Tauri surface + LibraryRuntime.
|
||||
// PR-5b adds the mutating commands, sync session map, current-job
|
||||
@@ -734,6 +738,7 @@ pub fn run() {
|
||||
psysonic_library::commands::library_migrate_server_index_keys,
|
||||
psysonic_library::commands::library_delete_server_data,
|
||||
psysonic_library::commands::library_analysis_backfill_batch,
|
||||
library_analysis_backfill::library_analysis_backfill_configure,
|
||||
psysonic_library::commands::library_resolve_cover_entry,
|
||||
cover_cache::cover_cache_peek_batch,
|
||||
cover_cache::cover_cache_ensure,
|
||||
|
||||
Reference in New Issue
Block a user