forked from Furumi/furumi-web
Add the library_import subsystem core: migration m_0065 with the import, playlist, item, publication-receipt and attempt tables, the provider-neutral import model, the adapter trait and the storage layer. The library_import job claims imports under a two-minute lease that a heartbeat renews, checks cancellation between phases and resumes an interrupted import from its stored phase. Matching and publication phases are placeholders for the following changes. At boot, imports of the previous process are requeued; a sweeper starts a worker whenever an import waits without one, so a worker that stops without a server restart is replaced once its lease expires. The /api/imports endpoints list the user's imports, show one import with its playlists and paged entries, cancel it and delete its history while keeping the created playlists. Every request is scoped to the owner. GET /imports redirects to the player view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>