Add a central job registry that library scans and search index builds report into, so background work is visible instead of buried in the settings page. - backend/jobs: registry with per-job ring-buffer logs, capability-driven controls, and one coalesced JobsChanged snapshot at 4Hz - pause survives restart via a job_state table; a paused scan is adopted back on launch and skipped by the soft scan - top-bar indicator, popover, details drawer and a Jobs page replacing the config page's scan UI; per-library start/stop retained - scan timing breakdown moves into the job log, Full rescan to the Jobs page; delete the orphaned library-manager component Also add cmd/indexbuild and cmd/indexexport so the explore index can be built once centrally rather than by every install, which today streams ~205GB from the ListenBrainz spark dump on first run. indexbuild picks build/refresh/rebuild from index state; the Gitea workflow runs it on push, weekly, or manually and publishes only when content changed. fresh-install no longer defaults YJ_HOME under /tmp: it is tmpfs on most distros, and the import needs ~6GB of real disk. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
102 lines
3.6 KiB
TypeScript
Executable File
102 lines
3.6 KiB
TypeScript
Executable File
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
import {explore} from '../models';
|
|
import {context} from '../models';
|
|
import {jobs} from '../models';
|
|
|
|
export function AdoptPausedIndexBuild():Promise<void>;
|
|
|
|
export function BackfillLibraryDiscographies():Promise<void>;
|
|
|
|
export function BackfillLibraryLyrics():Promise<void>;
|
|
|
|
export function BrowseReleaseGroups(arg1:string):Promise<Array<explore.MBReleaseGroup>>;
|
|
|
|
export function BrowseReleases(arg1:string):Promise<Array<explore.MBRelease>>;
|
|
|
|
export function CAALimiter():Promise<explore.RateLimiter>;
|
|
|
|
export function CheckLibraryMBIDs(arg1:Array<string>):Promise<Record<string, string>>;
|
|
|
|
export function CoverArtGroupURL(arg1:string):Promise<string>;
|
|
|
|
export function CoverArtURL(arg1:string):Promise<string>;
|
|
|
|
export function GetArtistImageCached(arg1:string):Promise<string>;
|
|
|
|
export function GetArtistImageCachedPath(arg1:string):Promise<string>;
|
|
|
|
export function GetArtistImageURL(arg1:string):Promise<string>;
|
|
|
|
export function GetArtistImages(arg1:Array<string>):Promise<Record<string, string>>;
|
|
|
|
export function GetArtistMBID(arg1:string):Promise<string>;
|
|
|
|
export function GetArtistPlayCount(arg1:string):Promise<number>;
|
|
|
|
export function GetCandidateThumbnail(arg1:string,arg2:string):Promise<string>;
|
|
|
|
export function GetIndexStatus():Promise<explore.IndexStatus>;
|
|
|
|
export function GetLibrarySimilarArtists(arg1:string):Promise<Array<explore.LBSimilarArtist>>;
|
|
|
|
export function GetPopularityBatch(arg1:Array<string>):Promise<Record<string, explore.PersonalizationResult>>;
|
|
|
|
export function GetThumbnail(arg1:string,arg2:string,arg3:string):Promise<string>;
|
|
|
|
export function GetThumbnails(arg1:Array<explore.ThumbnailRequest>):Promise<Record<string, string>>;
|
|
|
|
export function GetTrackLyrics(arg1:number):Promise<explore.TrackLyrics>;
|
|
|
|
export function GetTrackThumbnail(arg1:string,arg2:string,arg3:string,arg4:string):Promise<string>;
|
|
|
|
export function GetTrackThumbnails(arg1:Array<explore.TrackThumbnailRequest>):Promise<Record<string, string>>;
|
|
|
|
export function InvalidateIndexDiscographies():Promise<void>;
|
|
|
|
export function InvalidateLibrarySync():Promise<void>;
|
|
|
|
export function IsIndexReady():Promise<boolean>;
|
|
|
|
export function LookupArtist(arg1:string):Promise<explore.MBArtist>;
|
|
|
|
export function LookupReleaseGroup(arg1:string):Promise<explore.MBReleaseGroup>;
|
|
|
|
export function MusicBrainz():Promise<explore.MusicBrainzClient>;
|
|
|
|
export function PopulateLocalCrossReferences():Promise<void>;
|
|
|
|
export function PopulateLocalCrossReferencesIfNeeded():Promise<void>;
|
|
|
|
export function PrefetchReleases(arg1:Array<string>):Promise<void>;
|
|
|
|
export function RebuildLyricsIndex():Promise<void>;
|
|
|
|
export function RebuildLyricsIndexIfNeeded():Promise<void>;
|
|
|
|
export function RecordSearchClick(arg1:string,arg2:string,arg3:string):Promise<void>;
|
|
|
|
export function RefreshListenCounts():Promise<void>;
|
|
|
|
export function ResolveReleaseGroupMBIDs(arg1:Array<string>):Promise<Record<string, string>>;
|
|
|
|
export function SearchLocal(arg1:string):Promise<explore.MBSearchResult>;
|
|
|
|
export function SearchLyrics(arg1:string):Promise<Array<explore.LyricsResult>>;
|
|
|
|
export function SetContext(arg1:context.Context):Promise<void>;
|
|
|
|
export function SetJobRegistry(arg1:jobs.Registry):Promise<void>;
|
|
|
|
export function SimilarArtists(arg1:string):Promise<Array<explore.LBSimilarArtist>>;
|
|
|
|
export function StartIndexBuild():Promise<void>;
|
|
|
|
export function StopIndexBuild():Promise<void>;
|
|
|
|
export function TopRecordingsForArtist(arg1:string):Promise<Array<explore.LBTopRecording>>;
|
|
|
|
export function TopReleaseGroupsForArtist(arg1:string):Promise<Array<explore.LBTopReleaseGroup>>;
|
|
|
|
export function WaitForIndexIdle():Promise<void>;
|