7 Commits

Author SHA1 Message Date
wangdl
a81a9d7e1f fix: add reload_stale_events_v2 FFI export + update UDL with V2 types + XCFramework rebuild
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-09 19:58:07 +08:00
wangdl
66649bb815 feat: DOC-FULL-004 ActiveTimeTracker
iOS控制tick节奏,Rust计算delta。start/pause/resume/tick/close。
毫秒余数累计。时间倒退不产生负数。8单元测试。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-07 19:41:09 +08:00
wangdl
82e8cdfc1f feat: DOC-FULL-003 ReadingEventV2
5 types: MaterialOpened/Closed/PositionChanged/Heartbeat/MarkedAsRead
active_seconds_delta (增量)
集成 ReadingSessionV2 (clientSessionId/sequence/materialId)
10 单元测试

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-07 19:37:19 +08:00
wangdl
938ebf890c feat: DOC-FULL-002 ReadingSessionV2
- clientSessionId UUID 生成
- start/pause/resume/close lifecycle
- sequence 递增
- record_session_event_v2 更新时长和位置
- 7 个单元测试

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-07 19:34:12 +08:00
wangdl
855c7b15c2 feat: DOC-FULL-001 ReadingMaterialRef
Rust 只保存 materialId,不区分 KnowledgeSource/TemporaryFile。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-07 19:26:48 +08:00
wangdl
dd360c88e2 fix: RagChatModule 导入 AiModule,修复 AiGatewayService 未注入
AiGatewayService 使用了 @Optional() 导致不报错但始终为 null,
sendMessage 永远走 fallbackReply。现在导入 AiModule 正确注入。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 13:38:57 +08:00
wangdl
c8f9d64fd8 fix: add minimal lib.rs declarations to pass cargo check 2026-05-30 18:35:20 +08:00