Commit Graph
413 Commits
Author SHA1 Message Date
admin 174e723545 fix(themes): share code line layout with isolated previews 2026-09-06 17:20:12 +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
Kronecker 3dcd469bc0 Merge pull request 'Perf/frontend chunk loading优化长文渲染、后台运行与向量检索,补齐运行日志和并发一致性' (#34) from perf/frontend-chunk-loading into main
Reviewed-on: #34
2026-09-06 17:01:01 +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
Kronecker 5a3546b3ac Merge pull request 'Perf/frontend chunk loading优化前端构建加载,完善 Markdown 预设、警告框、章节折叠与外部文件刷新' (#32) from perf/frontend-chunk-loading into main
Reviewed-on: #32
2026-09-06 13:42:57 +08:00
admin 750e17212e fix(editor): recover missing files and synchronize section toggle 2026-09-06 13:29:19 +08:00
admin d4ba08b944 docs(vault): 更新产品文档和演示导航内容
更新RAG检索增强文档,添加换行标记以改善显示格式。

优化功能演示导航表格布局,调整列宽使内容更易读。

清理多个演示文档的多余空行,统一文档格式规范。
2026-09-06 12:59:22 +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
Kronecker b265a5528a Merge pull request 'Feat/model usage charts and paper cards完善第二阶段功能与验收:后台索引、图表交互、扩展社区及第三阶段规划' (#31) from feat/model-usage-charts-and-paper-cards into main
Reviewed-on: #31
2026-09-06 03:02:15 +08:00
admin a5c44c4ac0 fix(workspace): background vector indexing and correct diagram previews 2026-09-06 02:57:56 +08:00
admin 9e0715f9db docs(vault): add feature walkthroughs and sync local notes 2026-09-06 02:26:15 +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 99a92e9eb1 feat(extensions): add ZIP installation and unify action dialogs 2026-09-06 00:52:59 +08:00
admin ba66b182af fix(frontend): unify extension installation and restore theme preview scrolling 2026-09-06 00:13:32 +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
admin 6107b7ff1b fix(editor): handle paired inline code input and complete markdown rendering 2026-09-05 23:14:19 +08:00
yxxandClaude Code b87f94551b fix(plot): 修复复审问题(2 P2 + 1 P3)
- P2 复杂表达式绕过异常回退:解析与渲染共同纳入局部异常回退;
  AST 深度/节点数上限拦截 RecursionError
- P2 极端有限范围生成 nan SVG:校验坐标跨度有限且 >0,回退安全范围;
  _polyline 拒绝非有限像素坐标
- P3 更新接口契约文档:function-plot 静态 SVG 已实现

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-05 22:49:01 +08:00
admin a1ab1024f0 feat: 添加全局人设与头像设置并优化对话及弹窗交互 2026-09-05 22:26:12 +08:00
admin 7551716e13 feat: 添加模型上下文管理并统一主题组件与用量交互 2026-09-05 21:58:37 +08:00
yxxandClaude Code 50d7fb4c7d Merge origin/main into feat/export-service
同步 main(054f704),解决 contracts.py / main.py / README.md / 技术栈说明 的合并冲突。
- contracts.py:保留 pydantic 多行导入并新增 RequestOverride
- main.py:合并 lifespan(导出孤儿清理 + 转写/本地模型生命周期)
- README.md / 技术栈说明:文档取 main 最新版本

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-05 21:44:20 +08:00
yxxandClaude Code 04f36524b1 fix(plot): 修复函数图像审阅问题(1 P1 + 2 P2)
- P1 浮点刻度死循环:_ticks 改为有上限的整数索引推进并校验步长推进
- P2 求值异常:白名单函数校验参数数量;负数底非整数指数按断点处理;采样容错复数
- P2 无效纵轴范围:退化/非有限 range 丢弃并自动采样重算;渲染异常回退占位不阻断导出
- 补 6 个回归测试

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-05 21:14:50 +08:00
admin 031ab135d2 fix(frontend): 保留 Mermaid 大图文字并完善图表与卡片交互 2026-09-05 20:58:33 +08:00
admin 8d626ee16b feat: 完善模型用量趋势与全局手账卡片并补齐阶段验收 2026-09-05 20:40:36 +08:00
Kronecker 054f704c8b Merge pull request 'feat: 完善主题导入、手账工作区与笔记元数据管理' (#27) from feat/theme-import-and-paper-workspace into main
Reviewed-on: #27
2026-09-05 19:42:00 +08:00
admin 02dd585a4e fix: 修复笔记 YAML 标签保存与索引重建一致性 2026-09-05 19:40:14 +08:00
admin 8692910508 fix(frontend): 修复纸页刷新宽度并完善侧栏和图表主题 2026-09-05 19:23:21 +08:00
admin a63f6c57e0 feat(frontend): 完善工作区导航与笔记属性并适配手帐主题 2026-09-05 19:11:45 +08:00
admin d5b1050a86 feat(frontend): 完善主题导入与手帐工作区并修复 Mermaid 预览 2026-09-05 18:42:14 +08:00
Kronecker 311ea4a8ac Merge pull request 'Feat/frontend phase2 themes trace mermaid' (#26) from feat/frontend-phase2-themes-trace-mermaid into main
Reviewed-on: #26
2026-09-05 17:47:08 +08:00
admin 6d0c1400ce fix(frontend): 保留密钥编辑并隔离社区主题预览 2026-09-05 17:46:12 +08:00
admin 0f08cd051b fix(frontend): 同步 main 并修复 phase2 关闭审阅意见 2026-09-05 17:32:34 +08:00
Kronecker 352557d94a Merge pull request 'fix(editor): 接入完整 Shiki 语言支持与 GitHub 双主题,修复语言菜单并添加图标' (#25) from fix/editor-shiki-language-picker into main
Reviewed-on: #25
2026-09-05 17:19:14 +08:00
admin 08fd62e7c5 fix(editor): 支持完整 Shiki 语言并修复语言标识与图标展示 2026-09-05 17:16:09 +08:00
admin 41bf2c53d4 fix(editor): 保留完整代码语言列表与兼容高亮 2026-09-05 16:58:39 +08:00
admin ed37099ba1 fix(editor): 修复语言菜单裁剪并接入 GitHub Shiki 配色 2026-09-05 16:52:18 +08:00
Kronecker 1c7b5b4e84 Merge pull request 'Feat(frontend)完善前端中英文支持与表单样式,持久化聊天记录并修复会话并发问题' (#24) from feat/frontend-i18n-spellcheck into main
Reviewed-on: #24
2026-09-05 15:27:01 +08:00
admin 32411ce6fe fix(chat): 删除会话期间阻止发送和重复删除 2026-09-05 15:12:07 +08:00
admin cce96588e2 fix(chat): 防止会话切换串写和删除后复活 2026-09-05 10:31:42 +08:00
admin feb8cc651f fix(chat): 持久化会话与消息 2026-09-05 10:12:09 +08:00