refactor(api): collapse src/api into src/lib/api

The seven remaining src/api/ modules (analysis, azuracast, bandsintown,
coverCache, migration, network, runtimeLogs) were the last IPC-layer files
outside src/lib/api/, where the rest of the FE IPC clients already live. Move
them (+ the colocated coverCache test) into lib/api and repoint every consumer;
relative-up imports in the moved files become the depth-independent @/ alias.

Pure move + import updates — no behavior change. The layering baseline is
regenerated in the same commit: the moved files' pre-existing store/cover edges
are only now caught under lib/, and the cover<->coverCache cycles are the same
edges re-keyed to the new path (E4 shrinks the allowlist later).
This commit is contained in:
Psychotoxical
2026-07-01 14:17:56 +02:00
parent 751ad35365
commit f4fa766b20
53 changed files with 5301 additions and 3016 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
*/
import { invoke } from '@tauri-apps/api/core';
import { librarySqlServerId } from '../api/coverCache';
import { librarySqlServerId } from '@/lib/api/coverCache';
import { useAuthStore } from '../store/authStore';
import { COVER_SCOPE_ACTIVE, type CoverArtRef, CoverCacheKind, CoverServerScope } from './types';
import {