feat(parse): 支持多产品文档解析
- 新增 product-splitter.js 产品边界检测模块 - 支持产品代码前缀识别(GS、GC、FA、LV2 等) - 支持产品命名模式(以"計劃"、"保障"、"保险"、"壽險"结尾) - 自动检测和分割多产品文档 - 增强 parse-docs.js 多产品处理 - parseSingleFile() 返回数组支持多产品 - generateAuditFile() 支持产品索引参数 - 单文件模式 (--file=) 正确处理多产品结果 - buildParseSummary() 统计多产品数量 - 优化 smart-field-extractor.js - 新增 smartExtractFieldsForProduct() 单产品提取 - 移除重复的函数定义 - 包装函数兼容新旧调用方式 测试结果: - 成功解析 计划书模版2.docx 中的 4 个保险产品 - 每个产品生成独立的审核文件 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Showing
3 changed files
with
372 additions
and
74 deletions
This diff is collapsed. Click to expand it.
scripts/product-splitter.js
0 → 100644
-
Please register or login to post a comment