DOC-FULL-011 P0 | DocumentInfo 完整化 【status:partial】 #63

Closed
opened 2026-06-07 11:33:15 +08:00 by wangdl · 1 comment
Owner

v2 模型

pub struct DocumentInfo {
    pub material_id, title?, material_type, preview_mode, file_size,
    pub page_count?, word_count?, char_count?, line_count?,
    pub image_width?, image_height?, image_format?,
    pub epub_chapter_count?,
    pub is_searchable, supports_position, supports_anchor,
}

数据来源

Markdown→block count, Text→TextStats, Image→ImageMeta, PDF→page count, EPUB→chapter count, Office→minimal

9 种 MaterialType 都能返回

## v2 模型 ```rust pub struct DocumentInfo { pub material_id, title?, material_type, preview_mode, file_size, pub page_count?, word_count?, char_count?, line_count?, pub image_width?, image_height?, image_format?, pub epub_chapter_count?, pub is_searchable, supports_position, supports_anchor, } ``` ## 数据来源 Markdown→block count, Text→TextStats, Image→ImageMeta, PDF→page count, EPUB→chapter count, Office→minimal 9 种 MaterialType 都能返回
wangdl added this to the M-DOC-FULL:Document Runtime 完整阅读内核与学习事件协议 milestone 2026-06-07 11:33:15 +08:00
wangdl changed title from DOC-FULL-011 P0 | DocumentInfo 完整化 to DOC-FULL-011 P0 | DocumentInfo 完整化 【status:partial】 2026-06-07 19:15:03 +08:00
Author
Owner

审查结论:document runtime 当前有文件类型识别/MaterialType/PreviewMode/DocumentInfo(基本)/Markdown解析/Text解析/ImageMeta/Search(V1 Markdown+Text)/NoteAnchor(V1)/ReadingEvent(V1)/ReadingPosition(V1)/EventBuffer(V1基础)/iOS构建/UniFFI绑定/docs。但 V2 核心模型(ReadingSession/EventV2/ActiveTimeTracker)不存在,EventBuffer 缺 ack/failed,Position 缺 camelCase+clamp,PDF/EPUB/Office 为 stub,测试覆盖不足 V2。

本 Issue: DocumentInfo 结构体存在(material_id/title/material_type/preview_mode/file_size/page_count/word_count/created_at)。缺: image_width/height/format, epub_chapter_count, is_searchable/supports_position/supports_anchor。

状态: status:partial
工作类型: work:extend-existing

## 审查结论:document runtime 当前有文件类型识别/MaterialType/PreviewMode/DocumentInfo(基本)/Markdown解析/Text解析/ImageMeta/Search(V1 Markdown+Text)/NoteAnchor(V1)/ReadingEvent(V1)/ReadingPosition(V1)/EventBuffer(V1基础)/iOS构建/UniFFI绑定/docs。但 V2 核心模型(ReadingSession/EventV2/ActiveTimeTracker)不存在,EventBuffer 缺 ack/failed,Position 缺 camelCase+clamp,PDF/EPUB/Office 为 stub,测试覆盖不足 V2。 **本 Issue**: DocumentInfo 结构体存在(material_id/title/material_type/preview_mode/file_size/page_count/word_count/created_at)。缺: image_width/height/format, epub_chapter_count, is_searchable/supports_position/supports_anchor。 **状态**: status:partial **工作类型**: work:extend-existing
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/zhixi-document-runtime#63
No description provided.