feat: ship v0.8.0 with writing logs and AI knowledge extraction

Deliver P5.2 writing day logs, cockpit heatmap, streak tracking, and chapter knowledge auto-extraction with merge review.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-07 18:26:29 +08:00
parent f331ddae86
commit a39e06ff07
51 changed files with 1436 additions and 89 deletions
+13 -1
View File
@@ -42,7 +42,9 @@ import type {
KnowledgeType,
CockpitSummary,
ChapterBridgeResult,
PublishStatus
PublishStatus,
WritingStats,
KnowledgeExtractionResult
} from './types'
export interface ElectronAPI {
@@ -349,6 +351,16 @@ export interface ElectronAPI {
bookId: string,
opts?: KnowledgeSuggestOptions
) => Promise<IpcResult<ScoredKnowledge[]>>
extractChapter: (
bookId: string,
chapterId: string
) => Promise<IpcResult<KnowledgeExtractionResult>>
approveMerge: (bookId: string, pendingId: string) => Promise<IpcResult<KnowledgeEntry>>
saveMergeAsNew: (bookId: string, pendingId: string) => Promise<IpcResult<KnowledgeEntry>>
batchApproveHighConfidence: (bookId: string, threshold?: number) => Promise<IpcResult<number>>
}
writing: {
getStats: (bookId: string) => Promise<IpcResult<WritingStats>>
}
cockpit: {
getSummary: (bookId: string, volumeId?: string) => Promise<IpcResult<CockpitSummary>>