feat: deliver P2 v0.2.0 with unified editor, search, and snapshots

Implement schema v2 migration, outline/setting/inspiration CRUD, unified TipTap editing, reference panel with mentions, FTS global search, chapter version history, writing landmarks, word frequency analysis, light theme contrast fixes, and full unit/E2E test coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 14:13:27 +08:00
parent 91c93954df
commit aac51bf183
72 changed files with 5790 additions and 203 deletions
+32 -1
View File
@@ -18,5 +18,36 @@ export const IPC = {
SHORTCUT_TRIGGERED: 'shortcut:triggered',
WINDOW_MINIMIZE: 'window:minimize',
WINDOW_MAXIMIZE: 'window:maximize',
WINDOW_CLOSE: 'window:close'
WINDOW_CLOSE: 'window:close',
OUTLINE_LIST: 'outline:list',
OUTLINE_CREATE: 'outline:create',
OUTLINE_UPDATE: 'outline:update',
OUTLINE_DELETE: 'outline:delete',
OUTLINE_MOVE: 'outline:move',
SETTING_LIST: 'setting:list',
SETTING_CREATE: 'setting:create',
SETTING_UPDATE: 'setting:update',
SETTING_DELETE: 'setting:delete',
SETTING_SYNC_REFS: 'setting:syncRefs',
INSPIRATION_LIST: 'inspiration:list',
INSPIRATION_CREATE: 'inspiration:create',
INSPIRATION_UPDATE: 'inspiration:update',
INSPIRATION_DELETE: 'inspiration:delete',
INSPIRATION_CONVERT: 'inspiration:convert',
SNAPSHOT_LIST: 'snapshot:list',
SNAPSHOT_CREATE: 'snapshot:create',
SNAPSHOT_RESTORE: 'snapshot:restore',
SNAPSHOT_DELETE: 'snapshot:delete',
SNAPSHOT_START_AUTO: 'snapshot:startAuto',
SNAPSHOT_STOP_AUTO: 'snapshot:stopAuto',
BOOKMARK_LIST: 'bookmark:list',
BOOKMARK_CREATE: 'bookmark:create',
BOOKMARK_UPDATE: 'bookmark:update',
BOOKMARK_RESOLVE: 'bookmark:resolve',
BOOKMARK_DELETE: 'bookmark:delete',
SEARCH_QUERY: 'search:query',
SEARCH_REPLACE: 'search:replace',
SEARCH_GET_HISTORY: 'search:getHistory',
SEARCH_SAVE_HISTORY: 'search:saveHistory',
WORDFREQ_ANALYZE: 'wordfreq:analyze'
} as const