feat(w2): add PackService for .novel and .novel-all export/import

Introduce pack-bootstrap chunk, ZipArchive-based PackService with progress IPC,
book registry import helpers, and IT-PACK-01 / IT-ALL-02 integration tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-08 15:36:47 +08:00
parent 9f2b1ae3e0
commit a4412793f4
12 changed files with 1563 additions and 73 deletions
+10 -1
View File
@@ -150,5 +150,14 @@ export const IPC = {
CHAPTER_TAG_REMOVE: 'chapter:tagRemove',
BOOK_PREFS_GET: 'book:prefsGet',
BOOK_PREFS_SET: 'book:prefsSet',
AI_SESSION_EXPORT: 'ai:sessionExport'
AI_SESSION_EXPORT: 'ai:sessionExport',
PACK_EXPORT_BOOK: 'pack:exportBook',
PACK_IMPORT_BOOK: 'pack:importBook',
PACK_EXPORT_ALL: 'pack:exportAll',
PACK_IMPORT_ALL: 'pack:importAll',
PACK_PICK_FILE: 'pack:pickFile',
PACK_ESTIMATE_EXPORT_ALL: 'pack:estimateExportAll',
PACK_CANCEL: 'pack:cancel',
PACK_NEEDS_CONFIRM: 'pack:needsConfirm',
PACK_PROGRESS: 'pack:progress'
} as const