Skip to content

feat(report): Zep 命名修复与导出 Markdown 功能#152

Open
sx-tane wants to merge 4 commits into666ghj:mainfrom
sx-tane:support-pascal-and-snake-case
Open

feat(report): Zep 命名修复与导出 Markdown 功能#152
sx-tane wants to merge 4 commits into666ghj:mainfrom
sx-tane:support-pascal-and-snake-case

Conversation

@sx-tane
Copy link

@sx-tane sx-tane commented Mar 11, 2026

概述

本 PR 包含以下改进:

  1. Zep 命名修复:修复了 Zep API 实体/关系命名的格式校验错误(支持 PascalCase 和 snake_case)。
  2. 新增功能:报告生成步骤支持导出为 Markdown 格式,并采用了正式的 PDF 风格排版。

修改详情

后端 (Backend)

  • report_agent.py 中改进了 ReportManager.assemble_full_report 方法,新增了包含 ID、模拟场景和时间戳的正式页眉。
  • 添加了章节分隔符,显著提升了导出的 Markdown 文件的可读性。

前端 (Frontend)

  • Step4Report.vue 的报告页眉部分新增了“导出 MD”按钮。
  • src/api/report.js 中实现了 downloadReport API。
  • 为新按钮添加了符合项目 Premium 设计语言的样式。

- Add to_pascal_case() to enforce PascalCase on entity type names
  (e.g. 'university_student' -> 'UniversityStudent')
- Add to_screaming_snake_case() to enforce SCREAMING_SNAKE_CASE on
  edge/relationship type names (e.g. 'WorksFor' -> 'WORKS_FOR')
- Enforce PascalCase on edge source_targets source/target references
  to match their corresponding entity type names
- Fix Zep API 400 errors: entity names require PascalCase, edge names
  require SCREAMING_SNAKE_CASE per Zep Cloud validation rules
- Remove stale peer flags in frontend/package-lock.json
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 11, 2026
@sx-tane sx-tane changed the title fix(backend): enforce Zep API naming conventions for ontology types fix(backend): 修复Zep API本体命名格式校验错误 Mar 11, 2026
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Mar 12, 2026
@sx-tane sx-tane changed the title fix(backend): 修复Zep API本体命名格式校验错误 feat(report): Zep naming fix & Export to Markdown feature Mar 12, 2026
@sx-tane sx-tane changed the title feat(report): Zep naming fix & Export to Markdown feature feat(report): Zep 命名修复与导出 Markdown 功能 Mar 12, 2026
…g task states to/from a JSON file on disk with atomic writes.
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant