[notes] feat: 云盘文档→笔记一键转换(服务层) - #95
Merged
Merged
Conversation
- document_text: 从 Mongo cloud_drive_documents 读解析全文,区分 未解析(409)/无权限(404)/空文本(422),供 note agent 整理与预览共用 - legacy_doc: 旧版 .doc(OLE2/Word 97-2003)文本提取,补齐 doc_parser 对 遗留 Office 格式的空缺 - 测试 11 例覆盖(读路径/状态码映射/解析边界)
note_conversion 编排 note agent:校验→读取全文→注入 <document> 块→ReAct 整理并经 save_note 落库,失败映射 HTTP 状态码(409 未解析/502 agent 失败), 分层对齐 session_summary.py。router 接线与 note agent 的 target_id 注入 后续 PR 跟进。测试 11 例(mock harness,全通过)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #94
内容(2 commits)
document_text.py(Mongo 正文读取 + 409/404/422 状态映射)+legacy_doc.py(.doc OLE2 解析)+ 11 例测试note_conversion.py(校验→读全文→note agent ReAct→save_note 落库,409/502 映射)+ 11 例 mock harness 测试边界说明
test_note_agent_history.py,因实现未落地未包含本 PR)test_upload_mime.py引用的GENERIC_MIME同样未实现,未包含验证