Files
yellowjacket/frontend/wailsjs/go/playlist/Service.d.ts
T
yonluandClaude Opus 5 01bc5f2094 feat(jobs): surface background jobs with progress, logs and controls
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>
2026-07-25 14:42:22 -04:00

78 lines
3.0 KiB
TypeScript
Executable File

// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {playlist} from '../models';
import {library} from '../models';
import {context} from '../models';
export function AddToDefaultPlaylist(arg1:Array<string>):Promise<void>;
export function AddTracksToPlaylist(arg1:number,arg2:Array<string>):Promise<void>;
export function CreatePlaylist(arg1:string):Promise<playlist.Summary>;
export function CreatePlaylistWithTracks(arg1:string,arg2:Array<string>):Promise<playlist.Summary>;
export function CreateSmartPlaylist(arg1:string,arg2:string):Promise<playlist.Summary>;
export function DeletePlaylist(arg1:number):Promise<void>;
export function EnsureDefaultPlaylist():Promise<void>;
export function EvaluateSmartPlaylist(arg1:number):Promise<Array<library.Track>>;
export function FindDuplicateTracksInPlaylist(arg1:number,arg2:Array<string>):Promise<playlist.DuplicateCheckResult>;
export function FindPhantomMatches(arg1:number,arg2:Array<string>):Promise<playlist.PhantomSearchResult>;
export function GetAllPlaylists():Promise<Array<playlist.Summary>>;
export function GetAllPlaylistsWithTracks():Promise<Array<playlist.WithTracks>>;
export function GetDefaultPlaylistInfo():Promise<playlist.Summary>;
export function GetDefaultPlaylistTrackPaths():Promise<Array<string>>;
export function GetPhantomCandidates(arg1:number,arg2:string):Promise<Array<playlist.CandidateTrack>>;
export function GetPlaylistTracks(arg1:number):Promise<Array<playlist.Track>>;
export function GetSmartPlaylistRules(arg1:number):Promise<string>;
export function GetSmartPlaylistTracks(arg1:number):Promise<Array<playlist.Track>>;
export function ImportPlaylist(arg1:string):Promise<playlist.Summary>;
export function ImportPlaylists(arg1:Array<string>):Promise<Array<playlist.Summary>>;
export function MaterializeUnmaterializedSmartPlaylists():Promise<void>;
export function PreviewSmartPlaylist(arg1:string):Promise<Array<library.Track>>;
export function RefreshSmartPlaylist(arg1:number):Promise<void>;
export function RemoveFromDefaultPlaylist(arg1:Array<string>):Promise<void>;
export function RemovePhantomTracks(arg1:number,arg2:Array<string>):Promise<void>;
export function RemoveTracksFromPlaylist(arg1:number,arg2:Array<number>):Promise<void>;
export function RenamePlaylist(arg1:number,arg2:string):Promise<void>;
export function RepopulateFromM3U():Promise<void>;
export function ResolvePhantomTracks(arg1:number,arg2:Record<string, string>):Promise<void>;
export function ResolvePhantomTracksAfterScan():Promise<void>;
export function RestoreAllPlaylists():Promise<void>;
export function SearchLibrary(arg1:string):Promise<Array<playlist.CandidateTrack>>;
export function SetContext(arg1:context.Context):Promise<void>;
export function SetFavoritesConfig(arg1:playlist.FavoritesConfigProvider):Promise<void>;
export function ToggleDefaultPlaylistTrack(arg1:string):Promise<boolean>;
export function UpdateSmartPlaylistRules(arg1:number,arg2:string):Promise<void>;