DOC-FULL-002 P0 | ReadingSession V2 【status:todo】 #51
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
v2 模型
API
start_reading_session / pause / resume / close / get_client_session_id
规则
DOC-FULL-002 P0 | 重构 ReadingSession:clientSessionId / sequence / lifecycleto DOC-FULL-002 P0 | ReadingSession V2DOC-FULL-002 P0 | ReadingSession V2to DOC-FULL-002 P0 | ReadingSession V2 【status:todo】审查结论: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: ReadingSession 不存在。无 clientSessionId/sequence/lifecycle。iOS 侧自行管理 session(ReadingEventCollector)。
状态: status:todo
工作类型: work:new-module
完成情况 ✅
交付物
crates/zx_document_core/src/session_v2.rs(255行)模型
API
start_reading_session_v2(material, timestamp_ms)→ clientSessionIdpause_reading_session_v2(session_id)/resume/closerecord_session_event_v2(session_id, ts, delta, position)→ sequenceget_session_v2(session_id)/remove_session_v2(session_id)规则
OnceLock<Mutex<HashMap>>线程安全测试
涉及文件