• Joined on 2026-05-02
wangdl pushed to main at wangdl/api-server 2026-06-06 13:56:30 +08:00
ce43256690 debug: rag-chat sendMessage 添加详细日志定位 AI Gateway 调用失败原因
wangdl pushed to main at wangdl/api-server 2026-06-06 13:48:19 +08:00
d8877f926f fix: 注册 rag-chat prompt template,修复 AI 对话始终返回 fallback
wangdl opened issue wangdl/api-server#70 2026-06-06 13:42:15 +08:00
P1
wangdl opened issue wangdl/ios-projects#37 2026-06-06 13:42:15 +08:00
P1
wangdl pushed to main at wangdl/api-server 2026-06-06 13:40:05 +08:00
78e21c4c4c fix: RagChatModule 导入 AiModule,修复 AiGatewayService 未注入
wangdl pushed to main at wangdl/zhixi-document-runtime 2026-06-06 13:39:04 +08:00
dd360c88e2 fix: RagChatModule 导入 AiModule,修复 AiGatewayService 未注入
wangdl closed issue wangdl/api-server#56 2026-06-06 13:34:55 +08:00
H0-11 RAG Chat 回复接入真实检索管道
wangdl commented on issue wangdl/zhixi-document-runtime#37 2026-06-06 13:05:41 +08:00
🔴 P0 | 所有 #[uniffi::export] 函数迁移到 out-pointer FFI 方式

Swift 侧完成 (2026-06-06)

修改

iOS zx_document.swift 全部 Swift 函数已更新为 out-pointer FFI:

  • detectMaterialType、readImageMeta、readTextStats、parseText →…
wangdl closed issue wangdl/zhixi-document-runtime#37 2026-06-06 13:05:41 +08:00
🔴 P0 | 所有 #[uniffi::export] 函数迁移到 out-pointer FFI 方式
wangdl closed issue wangdl/zhixi-document-runtime#43 2026-06-06 13:01:11 +08:00
🟡 P2 | search.rs 文本搜索每次循环创建新子串
wangdl closed issue wangdl/zhixi-document-runtime#45 2026-06-06 13:01:10 +08:00
🟢 P3 | ComrakOptions<'static> 生命周期强制转换过于脆弱
wangdl commented on issue wangdl/zhixi-document-runtime#46 2026-06-06 13:01:10 +08:00
🟢 P3 | parse_markdown_separate 多余的 String clone

审查结论 (2026-06-06)

结论

to_string() 是必要的:crate::parse_markdown() 的 FFI 签名要求 String(UniFFI #[uniffi::export] 不允许 &str)。新增内部函数…

wangdl closed issue wangdl/zhixi-document-runtime#46 2026-06-06 13:01:10 +08:00
🟢 P3 | parse_markdown_separate 多余的 String clone
wangdl commented on issue wangdl/zhixi-document-runtime#40 2026-06-06 13:01:10 +08:00
🟡 P2 | epub.rs / pdf.rs 空模块 — 仅注释无实现

审查结论 (2026-06-06)

结论

  • epub.rs: EPUB 解析已在 M5 里程碑规划中,当前是占位模块
  • pdf.rs: iOS 已有 PDFKit/QuickLook 做平台预览,PDF 文本提取不…
wangdl closed issue wangdl/zhixi-document-runtime#40 2026-06-06 13:01:10 +08:00
🟡 P2 | epub.rs / pdf.rs 空模块 — 仅注释无实现
wangdl commented on issue wangdl/zhixi-document-runtime#42 2026-06-06 13:01:10 +08:00
🟡 P2 | 两套 DocumentBlock 类型 + 双向手动 From impl

审查结论 (2026-06-06)

结论

两套 DocumentBlockFrom impl 是 UniFFI 的常见模式(core 使用 named fields for Serialize, FFI 使用 tuple variants for UniFFI…

wangdl closed issue wangdl/zhixi-document-runtime#42 2026-06-06 13:01:10 +08:00
🟡 P2 | 两套 DocumentBlock 类型 + 双向手动 From impl
wangdl commented on issue wangdl/zhixi-document-runtime#43 2026-06-06 13:01:10 +08:00
🟡 P2 | search.rs 文本搜索每次循环创建新子串

审查结论 (2026-06-06)

结论

search_textlower[start..].find() 每次迭代创建新子串,在极长文档中可能有性能影响。但对于知识库场景的典型文本长…

wangdl commented on issue wangdl/zhixi-document-runtime#44 2026-06-06 13:01:09 +08:00
🟡 P2 | events.rs Mutex 投毒后静默丢事件

修复完成 (2026-06-06)

实现

push_reading_event 改用 match 替代 if let,Mutex poison 时通过 into_inner() 恢复缓冲区。

状态

已修复。

wangdl commented on issue wangdl/zhixi-document-runtime#45 2026-06-06 13:01:09 +08:00
🟢 P3 | ComrakOptions<'static> 生命周期强制转换过于脆弱

审查结论 (2026-06-06)

结论

gfm_options() 已显式标注 ComrakOptions<'static>,由于 broker_link_callbackNone,生命周期强制转换安全。即使 comrak…