fix(scanner): handle watched moves across docker libraries

Emit transfer events when watcher reconciliation moves a book between libraries. Keep file-as-book and folder-as-book watcher paths consistent across Docker, direct runs, and delayed copy-delete moves.

Closes #386
This commit is contained in:
neon
2026-06-21 18:16:12 +00:00
parent c00bd57ca5
commit 2143b00cc5
24 changed files with 2246 additions and 170 deletions
+6
View File
@@ -37,6 +37,12 @@ export interface BookMovedEvent {
bookIds: number[];
}
export interface BookTransferredEvent {
fromLibraryId: number;
toLibraryId: number;
bookIds: number[];
}
export interface ScanBooksAddedEvent {
libraryId: number;
books: import("./book").BookCard[];