Commit Graph
241 Commits
Author SHA1 Message Date
admin acc0ba167d fix(desktop): 重构菜单并恢复 Shiki 高亮 2026-09-07 23:35:43 +08:00
admin 51105f6e53 feat(desktop): 完成编辑快捷键与警告框菜单 2026-09-07 22:33:10 +08:00
admin 4c14c6fbb9 fix(desktop): 扩充菜单并应用功能页主题 2026-09-07 21:21:56 +08:00
admin fd6b091c48 fix(desktop): 连接已运行的本地 AI Core 2026-09-07 20:38:12 +08:00
admin 9a3bfa8094 build(desktop): 固化 Tauri 正式构建流程 2026-09-07 20:24:08 +08:00
admin 1399b54780 fix(desktop): 显示完整菜单栏并启用快捷键 2026-09-07 19:55:38 +08:00
admin a189b89942 fix(desktop): 补齐顶部段落菜单与浮动按钮布局 2026-09-07 19:25:06 +08:00
admin a64c2cd057 feat(desktop): 持久化最近 Vault 授权 2026-09-07 17:55:42 +08:00
admin 4288f90558 feat(desktop): 接通无边框窗口标题栏控制 2026-09-07 17:48:51 +08:00
admin a63398d89c docs(phase3): 记录系统 Rust 工具链验证 2026-09-07 17:36:09 +08:00
admin 941f51d457 ci(build): 增加第三阶段全量门禁与验收记录 2026-09-07 16:57:36 +08:00
admin 508f13e5d8 feat(community): 增加签名目录与七类发行入口 2026-09-07 16:52:49 +08:00
admin afb76dc325 feat(desktop): 增加原生 Vault 写入与属性导入 2026-09-07 16:52:30 +08:00
admin 7fffbcd55a feat(sync): 实现设备认证与对象版本协议原型 2026-09-07 15:45:37 +08:00
admin ca5b52bc8a fix(export): handle metadata-only notes and HTML image resources 2026-09-07 14:45:47 +08:00
admin 894f220239 fix(export): render themed note metadata in PDF snapshots 2026-09-07 14:40:56 +08:00
admin d1cbc10fc4 fix: print PDF from actual editor theme CSS and shared Markdown rendering 2026-09-07 14:33:19 +08:00
admin 9f097ea629 fix: preserve exports on close and support themed PDF without export quotas 2026-09-07 14:04:03 +08:00
admin 47c53b6f38 fix: address phase two review and theme benchmark page 2026-09-07 13:26:14 +08:00
admin e667dd55dd Record phase two acceptance evidence and synchronize delivery status 2026-09-07 02:55:19 +08:00
admin cc652508ef fix(export): preserve themed callouts and nested table layouts 2026-09-07 01:33:13 +08:00
admin c853add07e merge: integrate main and reconcile export dependencies 2026-09-07 00:46:11 +08:00
admin f91c26451b fix(plot): bound adaptive sampling and preserve curve discontinuities 2026-09-07 00:43:34 +08:00
admin ac2d36bf9c fix(chat): preserve retry attachments and per-answer context snapshots 2026-09-07 00:09:14 +08:00
admin 11e5785681 docs: record successful stress test branch push 2026-09-06 23:25:34 +08:00
admin 266608b6e8 test: verify live chat agent MCP and task load flows 2026-09-06 23:25:17 +08:00
admin cec8daac93 feat(chat): add workspace chat, attachments and agent delegation 2026-09-06 23:17:35 +08:00
admin 637ddbb9bf feat: improve chat retrieval, message versions and Markdown rendering 2026-09-06 21:39:40 +08:00
yxxandClaude Code f1ac414866 feat(export): PDF 内嵌函数图像矢量图
- 抽取 render.py 共享几何:新增 PlotGeometry + compute_geometry,render_svg
  改为薄序列化层,SVG 输出与重构前逐字节一致(8 组用例回归验证)
- 新增 app/plot/render_reportlab.py:消费共享几何产出 reportlab 矢量 Drawing
  (网格/坐标轴 Line、曲线 PolyLine、刻度/标签 String、ylabel Group 旋转),
  复用 STSong-Light 渲染中文,按页面内容宽 renderScale 缩放
- pdf.py _block_function_plot 改为内嵌矢量图(解析/渲染失败或超预算回退占位,
  单图失败不阻断整篇);mermaid 仍占位
- 抽取 FunctionPlotBudget + format_plot_diagnostic 到 _common.py,html/pdf 共用
- 文档同步:PDF 已内嵌函数图像,DOCX 仍占位(栅格化范围外)

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-06 21:26:54 +08:00
yxxandClaude Code 4fc26a11e1 fix(export): 修复列表项行内语义丢失与混合嵌套顺序重排
- pdf.py `_block_list_item` 改为按 AST 顺序逐段输出:正文暂存为行内标记文本,
  遇嵌套列表先 flush 再递归,之后继续后续正文,保持「父段—子列表—后续段」原始顺序
- pdf.py/docx.py 列表项直接行内节点改走 `_render_inline_node`,保留加粗/链接语义,
  不再只渲染 children 而丢掉格式(PDF 链接以 /URI 注解保留,DOCX 写入 w:hyperlink)
- docx.py `_render_inline_node` 增加 bold/italic 默认值,便于列表项直接调用
- 契约文档 StaticRenderer 状态「计划新增」→「已实现」
- 新增回归测试:混合嵌套顺序、PDF/DOCX 列表项行内语义

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-06 20:54:05 +08:00
yxx 6c14047899 Merge remote-tracking branch 'origin/main' into feat/export-service 2026-09-06 17:48:25 +08:00
yxxandClaude Code 780e24a399 fix(export): 修复引用块正文丢失、嵌套列表顺序与排队取消
- 引用块直接子节点为块级节点,PDF/DOCX 改为逐个渲染并继承缩进/颜色,
  不再交给行内渲染器导致正文丢失
- PDF 嵌套列表先输出父级正文再输出子列表,修复顺序颠倒
- 等待渲染槽位期间保持 queued 并监听取消,取消即时生效
- DOCX 列表项补处理直接 text 子节点,避免正文被块级渲染器丢弃
- 补充引用块/嵌套列表/排队取消的结构内容回归测试
- 接口契约同步 html/pdf/docx 三格式均已实现,移除 EXPORT_FORMAT_UNSUPPORTED

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-06 17:48:18 +08:00
yxx dffafce8b9 Merge remote-tracking branch 'origin/main' into feat/export-service
# Conflicts:
#	.gitignore
#	backend/app/main.py
2026-09-06 17:22:57 +08:00
admin f0fe8f2629 feat(editor): add scroll navigation and update theme Markdown behavior 2026-09-06 17:15:41 +08:00
yxxandClaude Code 406dd42571 feat(export): 新增 PDF/DOCX 导出与 StaticRenderer 内部契约
- 新增 PdfExporter(reportlab)与 DocxExporter(python-docx),实现与
  HtmlExporter 一致的同步 render + 异步 export,v1 文本优先(标题/段落/
  行内强调与链接/列表/引用/表格/代码块/数学文本),function_plot 与 mermaid
  保留源码占位并记 warning。
- service 层加 _EXPORTERS 注册表按格式分发,删除 format!=html 硬限制,
  扩展名/MIME/产物清理泛化到 html/pdf/docx 三种格式。
- 新增 app/plot/renderer.py:StaticRenderRequest + StaticRenderer Protocol +
  FunctionPlotStaticRenderer + MermaidStaticRenderer;HtmlExporter 改经
  FunctionPlotStaticRenderer 消费,去除对 render_svg 的直接依赖。
- 补齐 PDF/DOCX 魔法字节、CJK 字体、占位 warning 与 StaticRenderer 契约测试。
- 更新 Export开发说明.md。

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-06 17:04:58 +08:00
admin f32971d32e fix: coordinate vector migration with concurrent searches and note saves 2026-09-06 16:57:37 +08:00
admin b03b168920 perf: persist model-isolated sqlite-vec indexes and index new notes incrementally 2026-09-06 16:34:26 +08:00
admin 3b9490e3fb fix: stabilize background operations and large embedding results 2026-09-06 16:26:17 +08:00
yxx 966a94cad8 Merge remote-tracking branch 'origin/main' into feat/export-service
# Conflicts:
#	backend/app/routes.py
2026-09-06 16:19:37 +08:00
admin 874e916106 perf(editor): reduce long-document decoration work and fix fold navigation 2026-09-06 14:30:56 +08:00
yxxandClaude Code c9c5f81d49 fix(export): 增加文档级组合复杂度预算与并发渲染限制
针对 PR 审阅 P1「组合复杂度仍可长时间占满导出线程」与 P3「EXPORT_OUTPUT_TOO_LARGE 误标 HTTP 413」:

- plot: FunctionPlot 记录整块 AST 节点数(node_count),parser 累计
- html: 单篇文档累计节点预算 _MAX_TOTAL_PLOT_NODES=8000,超限回退占位
- service: 并发渲染信号量 MAX_CONCURRENT_RENDERS=2,超限额任务排队等待
- docs: 错误码区分同步 HTTP 错误与异步任务错误,EXPORT_OUTPUT_TOO_LARGE 由
  error_code 返回而非 HTTP 413
- 补充节点预算与并发限制两条回归测试(全量 627 通过)

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-06 14:01:29 +08:00
admin 750e17212e fix(editor): recover missing files and synchronize section toggle 2026-09-06 13:29:19 +08:00
admin 8ad1db33f7 feat(editor): add markdown presets, heading folding and external file refresh 2026-09-06 12:57:09 +08:00
admin 415efc4444 feat(editor): add themed callouts and desktop command boundary 2026-09-06 11:33:19 +08:00
admin fcc319d5e1 perf(frontend): defer mermaid and split editor dependencies 2026-09-06 10:42:12 +08:00
admin 64af068df4 docs: document background indexing and merged phase two behavior 2026-09-06 03:06:40 +08:00
admin 7001794a22 fix(phase2): restore agent streams and persist extension installations 2026-09-06 02:21:27 +08:00
admin 9497519e8b feat(community): add functional packages and phase three delivery plan 2026-09-06 01:19:29 +08:00
admin af2556d29e fix(ui): unify dialogs and complete theme component coverage 2026-09-05 23:56:02 +08:00
yxxandClaude Code 124024a547 fix(export): 为函数图像与导出产物增加资源上限
针对 PR 审阅「函数数量没有限制,可能生成数百 MB 的 SVG」:

- parser: 单块 function-plot 表达式上限 _MAX_EXPRESSIONS=16,超限整块回退
- html: 单篇文档函数图像上限 _MAX_FUNCTION_PLOTS=16,超出回退源码占位
- service: 输入源 MAX_MARKDOWN_CHARS、产物 MAX_EXPORT_BYTES,超限分别
  拒绝创建或标记 failed(EXPORT_OUTPUT_TOO_LARGE)
- 补充 4 条回归测试与文档说明

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-05 23:31:53 +08:00