weaver-work-cli 0.1.44 → 0.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/dist/chunks/{archive-P6TBQGKL.js → archive-ZQ4A4TV6.js} +388 -44
- package/dist/chunks/{archive-oa-7TQ2NXOH.js → archive-oa-BBDP7AKJ.js} +2 -2
- package/dist/chunks/{asset-3ELRG37G.js → asset-ZOJVBWZH.js} +2 -2
- package/dist/chunks/{asset-idle-WIGMUFMD.js → asset-idle-XGB5IPGT.js} +2 -2
- package/dist/chunks/{attachment-content-E3276UOV.js → attachment-content-MCXQBD6N.js} +3 -3
- package/dist/chunks/{blog-C5NMZAAC.js → blog-QSHLZSFW.js} +2 -2
- package/dist/chunks/caizhilian-KCQYFH72.js +204 -0
- package/dist/chunks/{calendar-FI2WNSBO.js → calendar-DLGMRJQA.js} +2 -2
- package/dist/chunks/{chunk-PUQS5MWL.js → chunk-3YV7PKRL.js} +1 -1
- package/dist/chunks/{chunk-FAZTGX7S.js → chunk-4RWS2YYL.js} +5 -5
- package/dist/chunks/{chunk-GM6J7Q4B.js → chunk-6AXKWFKG.js} +32 -12
- package/dist/chunks/{chunk-ETNJSKMM.js → chunk-6NXT4ICB.js} +148 -21
- package/dist/chunks/{chunk-QVSWRLLU.js → chunk-6V5ZPKHV.js} +56 -12
- package/dist/chunks/chunk-762M5XJS.js +215 -0
- package/dist/chunks/{chunk-PC7VKEB5.js → chunk-76H3IKH6.js} +178 -37
- package/dist/chunks/{chunk-FRZKBMSW.js → chunk-AD46OMQK.js} +239 -41
- package/dist/chunks/{chunk-WSF4NNMR.js → chunk-CZNZKOHR.js} +2 -2
- package/dist/chunks/{chunk-TA7FXXJD.js → chunk-DLY5GUXX.js} +1 -1
- package/dist/chunks/{chunk-BCVYBYYT.js → chunk-GR76ZDDX.js} +2 -2
- package/dist/chunks/{chunk-CWYGFU5B.js → chunk-GSZTA43P.js} +2 -2
- package/dist/chunks/{chunk-GRDRG6HP.js → chunk-HFXK54M4.js} +2 -2
- package/dist/chunks/{chunk-N4M2DDFE.js → chunk-IP4CWQCF.js} +11 -11
- package/dist/chunks/{chunk-GAMZLAG2.js → chunk-IRMIEDXN.js} +1 -1
- package/dist/chunks/{chunk-XNIK66I4.js → chunk-JB34OE7R.js} +790 -77
- package/dist/chunks/{chunk-HIT4Y6OI.js → chunk-JFAWZX53.js} +134 -13
- package/dist/chunks/{chunk-D4ADSZ7H.js → chunk-O6CMPO65.js} +24 -1
- package/dist/chunks/{chunk-Z7VYWPZV.js → chunk-OXHHJWNC.js} +1 -1
- package/dist/chunks/chunk-P5GQRWDC.js +60 -0
- package/dist/chunks/{caizhilian-5XSM2DFP.js → chunk-PGO4ILMQ.js} +41 -521
- package/dist/chunks/{chunk-OF4S23UB.js → chunk-PSOMGA3U.js} +4 -4
- package/dist/chunks/{chunk-F4E4EM35.js → chunk-TGAGQV4I.js} +2 -2
- package/dist/chunks/{chunk-UFIT2UU3.js → chunk-U6R6FZHD.js} +168 -14
- package/dist/chunks/{chunk-XHK4MDR5.js → chunk-UFIFZ4YC.js} +48 -14
- package/dist/chunks/chunk-VRPH24IC.js +76 -0
- package/dist/chunks/{chunk-3YBDYOC4.js → chunk-YIKSL36S.js} +2 -2
- package/dist/chunks/{chunk-IAZ3UPY6.js → chunk-Z6UUBY37.js} +2 -2
- package/dist/chunks/{conflict-ARLSZJ6V.js → conflict-H7EHQXYY.js} +2 -2
- package/dist/chunks/continuation-GW6PRWK3.js +12 -0
- package/dist/chunks/{contract-DNIIW5VJ.js → contract-3QLAGYQL.js} +5793 -4591
- package/dist/chunks/{cowork-GMLRGVIW.js → cowork-3ACICHDQ.js} +2 -2
- package/dist/chunks/{create-flow-J22BO65E.js → create-flow-VRVJEOBX.js} +6 -6
- package/dist/chunks/{ebuilder-form-ANV2FHYV.js → ebuilder-form-GWDTKEI2.js} +5 -5
- package/dist/chunks/{ehr-GSTGAIY3.js → ehr-SH2LM3NK.js} +648 -88
- package/dist/chunks/{employee-22BGJ3QS.js → employee-NOHNXC46.js} +1 -1
- package/dist/chunks/{env-BX3VRFS7.js → env-66FPSJDV.js} +2 -2
- package/dist/chunks/{esb-ATAIASX2.js → esb-4BQHNP5C.js} +4 -4
- package/dist/chunks/{factory-PETTFME6.js → factory-UH2TZBVA.js} +1 -1
- package/dist/chunks/{fna-YEKBSFSX.js → fna-ZVB2IILI.js} +2 -2
- package/dist/chunks/{group-chat-BFVXAYFX.js → group-chat-CAKMMV7K.js} +3 -3
- package/dist/chunks/{host-WIKN2EJ5.js → host-3TNBMDTR.js} +3 -3
- package/dist/chunks/host-7NTIBSPK.js +25 -0
- package/dist/chunks/{host-SZGV4UNT.js → host-7OWWPLM4.js} +3 -3
- package/dist/chunks/{host-HRBXEPDQ.js → host-G3VU7SDW.js} +3 -3
- package/dist/chunks/{host-LR55CTHP.js → host-M4XP5URR.js} +3 -3
- package/dist/chunks/{host-SUOY6VYQ.js → host-TUOIOEMC.js} +3 -3
- package/dist/chunks/{hrm-NRDO4W5G.js → hrm-UNKCCCGP.js} +5 -5
- package/dist/chunks/{im-IQ2HN23S.js → im-NJB7ZYMH.js} +3 -3
- package/dist/chunks/{invoice-MNRW76PP.js → invoice-OQP3TMKQ.js} +3 -3
- package/dist/chunks/{jiuchuanhui-DTRBAX4N.js → jiuchuanhui-ASFZBMPU.js} +2 -2
- package/dist/chunks/{lazy-dispatch-ZVWAI25B.js → lazy-dispatch-DD6ULZ3I.js} +4 -4
- package/dist/chunks/{mail-ZVAUXOJA.js → mail-M3HJF5ER.js} +2 -2
- package/dist/chunks/{meeting-FEVPZ67S.js → meeting-VTBFW4HI.js} +12 -12
- package/dist/chunks/{okr-SDH3E5RA.js → okr-EVX7FB5G.js} +2 -2
- package/dist/chunks/operations-J7PUIVWZ.js +15 -0
- package/dist/chunks/{plan-E35JFDI7.js → plan-2QJQEPBO.js} +2 -2
- package/dist/chunks/{project-73QXBAB2.js → project-XELELW2T.js} +2 -2
- package/dist/chunks/{reception-UWZVACBN.js → reception-5WITA44R.js} +2 -2
- package/dist/chunks/{recruit-stage-4MAOCKFY.js → recruit-stage-CAKZTUA7.js} +1343 -178
- package/dist/chunks/{registry-JDUS4E7D.js → registry-AQVGHUM6.js} +2 -2
- package/dist/chunks/{registry-IM5G23LS.js → registry-JVQBLFQ5.js} +10 -10
- package/dist/chunks/{registry-KNKSCJNT.js → registry-QJCZ2GVG.js} +4 -4
- package/dist/chunks/{registry-PO7SI256.js → registry-VWXWPVAG.js} +2 -2
- package/dist/chunks/{room-recommend-H7KLXA5R.js → room-recommend-5U55FMXZ.js} +6 -4
- package/dist/chunks/{schedule-ESZIBAUO.js → schedule-IDETODCA.js} +4 -4
- package/dist/chunks/{workflow-CWJFJLQU.js → workflow-BSYT5TGL.js} +6 -4
- package/dist/cmd/action.js +14 -10
- package/dist/index.js +30 -30
- package/dist/internal/e10/auth/commands.js +32 -0
- package/dist/internal/e10/auth/error-log.js +156 -26
- package/dist/internal/e10/auth/xiaoe.js +176 -13
- package/dist/internal/e10/context.js +12 -1
- package/dist/shortcuts/archive/operations/borrow-list.js +105 -14
- package/dist/shortcuts/archive/operations/flow-url.js +182 -22
- package/dist/shortcuts/archive/operations/getPageUrl.js +75 -0
- package/dist/shortcuts/archive/operations/prelib.js +33 -4
- package/dist/shortcuts/archive/operations/shared.js +52 -0
- package/dist/shortcuts/contract/host.js +111 -4
- package/dist/shortcuts/contract/index.js +19 -0
- package/dist/shortcuts/contract/manifest.js +125 -0
- package/dist/shortcuts/contract/ooxml/clause-insert.js +249 -0
- package/dist/shortcuts/contract/operations/clause-insert.js +56 -0
- package/dist/shortcuts/contract/operations/customer.js +192 -0
- package/dist/shortcuts/contract/operations/file-download.js +75 -0
- package/dist/shortcuts/contract/operations/flow.js +44 -2
- package/dist/shortcuts/contract/operations/form-info.js +162 -62
- package/dist/shortcuts/contract/operations/registry.js +8 -0
- package/dist/shortcuts/contract/operations/review.js +116 -1
- package/dist/shortcuts/contract/operations/summary.js +177 -0
- package/dist/shortcuts/contract/operations/upload.js +64 -4
- package/dist/shortcuts/contract/upload-cache.js +104 -0
- package/dist/shortcuts/ehr/host.js +2 -2
- package/dist/shortcuts/ehr/index.js +14 -3
- package/dist/shortcuts/ehr/manifest.js +5 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +44 -12
- package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +258 -0
- package/dist/shortcuts/ehr/operations/recruit-position.js +146 -43
- package/dist/shortcuts/ehr/operations/recruit-stats.js +14 -1
- package/dist/shortcuts/ehr/operations/recruit-tag.js +173 -0
- package/dist/shortcuts/ehr/operations/recruit-write.js +154 -36
- package/dist/shortcuts/ehr/operations/recruit.js +196 -12
- package/dist/shortcuts/ehr/operations/registry.js +4 -0
- package/dist/shortcuts/ehr/operations.js +24 -0
- package/dist/shortcuts/ehr/recruit-stage/batch-store.js +78 -0
- package/dist/shortcuts/ehr/recruit-stage/context.js +231 -0
- package/dist/shortcuts/ehr/recruit-stage/continuation.js +74 -0
- package/dist/shortcuts/ehr/recruit-stage/errors.js +65 -0
- package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +165 -0
- package/dist/shortcuts/ehr/recruit-stage/host.js +109 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +1049 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +295 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +961 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/list.js +431 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +50 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +1647 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/search.js +158 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/types.js +34 -0
- package/dist/shortcuts/ehr/recruit-stage/runtime.js +31 -0
- package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +318 -0
- package/dist/shortcuts/ehr/recruit-stage/shared.js +805 -0
- package/dist/shortcuts/hrm/operations/employee.js +29 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +274 -75
- package/dist/shortcuts/meeting/operations/eb/draft-memory.js +56 -0
- package/dist/shortcuts/meeting/operations/eb/factory.js +63 -11
- package/dist/shortcuts/meeting/operations/eb/person-cache.js +2 -2
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +38 -7
- package/dist/shortcuts/meeting/operations/invitation-publish.js +132 -0
- package/dist/shortcuts/meeting/operations/invitation.js +27 -4
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/recruit-stage/batch-store.js +78 -0
- package/dist/shortcuts/recruit-stage/fs-scan.js +165 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +356 -29
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +36 -10
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +309 -67
- package/dist/shortcuts/recruit-stage/operations/registry.js +12 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +310 -17
- package/dist/shortcuts/recruit-stage/operations/types.js +9 -0
- package/dist/shortcuts/recruit-stage/shared.js +221 -24
- package/dist/shortcuts/workflow/index.js +2 -0
- package/dist/shortcuts/workflow/operations/read.js +8 -3
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +92 -5
- package/dist/shortcuts/workflow/operations/todoSmartConvert/priorityExpr.js +509 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +22 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +32 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +57 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +165 -52
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +57 -14
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +44 -18
- package/docs/contract.md +1 -0
- package/docs/e10-auth.md +4 -2
- package/docs/todo-smart-convert/data-contract.md +7 -0
- package/package.json +1 -1
- package/skill-template/domains/jinchengda.md +2 -0
- package/skills/weaver-e10-jinchengda/SKILL.md +198 -205
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +759 -0
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +250 -0
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +146 -7
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +178 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +75 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +137 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +163 -0
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +52 -3
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +92 -5
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +602 -0
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +209 -0
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +126 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +312 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +555 -0
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +47 -12
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +469 -0
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +154 -1
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +224 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +355 -0
- package/skills/weaver-e10-jucailin/SKILL.md +12 -3
- package/skills/weaver-e10-jucailin/archive/LEGACY-README.md +18 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-SKILL.md +239 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-openai.yaml +131 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-position-templates.md +221 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-arrange-interview.md +334 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-capability-check.md +127 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-check-install.md +65 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-detail-process.md +63 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-edit-interview-feedback.md +142 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-create.md +114 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-template.md +56 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-candidate.md +101 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-interview.md +148 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-match-candidates.md +77 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-output-links.md +72 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-creator.md +69 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-metadata.md +241 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-import.md +457 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-parse.md +128 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-search-candidate.md +146 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-urge-feedback.md +69 -0
- package/skills/weaver-e10-jucailin/lib/recruit-xiaoe-file.mjs +192 -0
- package/skills/weaver-e10-jucailin/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-jucailin/references/recruit-create.md +19 -91
- package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +64 -0
- package/skills/weaver-e10-jucailin/references/recruit-read.md +63 -1
- package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +95 -0
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +89 -0
- package/skills/weaver-e10-jucailin/references/recruit-tag.md +81 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +55 -11
- package/skills/weaver-e10-meeting/SKILL.md +103 -11
- package/skills/weaver-e10-meeting/references/meeting-eb.md +1 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +19 -11
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +26 -8
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +5 -1
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +23 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +13 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +40 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +27 -14
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +11 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +4 -2
- package/skills/weaver-e10-wenshuding/SKILL.md +17 -7
- package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +28 -0
- package/skills/weaver-e10-wenshuding/references/archive-flow.md +24 -8
- package/skills/weaver-e10-wenshuding/references/archive-prelib-list.md +3 -0
- package/skills/weaver-e10-wenshuding/references/archive-prelib-open.md +4 -0
- package/skills/weaver-e10-wenshuding/references/archive-search.md +3 -1
- package/skills/weaver-e10-workflow/SKILL.md +19 -17
- package/skills/weaver-e10-workflow/aigroup/default.json +10 -6
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +36 -3
- package/skills/weaver-e10-workflow/references/workflow-memory.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +9 -6
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +152 -1
- package/skills/weaver-e10-yimiaoban/SKILL.md +17 -5
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +30 -0
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +72 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +7 -7
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# 全量命令索引与处理链
|
|
2
|
+
|
|
3
|
+
> SKILL.md 只保留「六个出口」的分流索引;本文件是**要用时再查**的全量清单。
|
|
4
|
+
> operation 的权威合约仍然是 `weaver-work-cli contract schema`(名称 / `risk` / `fixed` / `inputSchema` / `withheldOperations`)。
|
|
5
|
+
> 调用方式(`--input-json` / `--input` / `--input -`)、人类友好子命令、退出码见 [`contract-agent-entry.md`](contract-agent-entry.md)。
|
|
6
|
+
|
|
7
|
+
## 想做什么 → 用哪个 operation
|
|
8
|
+
|
|
9
|
+
| 想做什么 | 命令 | 按需读取 reference |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| 查看可用 operation、字段和风险等级 | `contract schema` | [`contract-agent-entry.md`](contract-agent-entry.md) |
|
|
12
|
+
| 上传合同并打开 AI 审查页 | `contract run contract.review.upload` | [`contract-ai-review.md`](contract-ai-review.md) |
|
|
13
|
+
| 导出审查记录(内控/法审/纠错) | `contract run contract.review.export` | [`contract-ai-review.md`](contract-ai-review.md) |
|
|
14
|
+
| 打开合同流程页(不带文件) | `contract run contract.flow.page` | [`contract-flow-launch.md`](contract-flow-launch.md) |
|
|
15
|
+
| 上传合同并打开流程页(自动回填) | `contract run contract.flow.launch` | [`contract-flow-launch.md`](contract-flow-launch.md) |
|
|
16
|
+
| 查某流程的上传字段是否还有效(诊断,不写) | `contract run contract.flow.upload-field` | [`contract-flow-launch.md`](contract-flow-launch.md) |
|
|
17
|
+
| **按客户全称查客户主数据 / 判新老客户** | `contract run contract.customer.browser` | [`contract-object-detect.md`](contract-object-detect.md) |
|
|
18
|
+
| 按需求描述推荐模板/范文 | `contract run contract.recommend.doc` | [`contract-template-recommend.md`](contract-template-recommend.md) |
|
|
19
|
+
| 上传待比对文件 | `contract run contract.compare.upload` | [`contract-doc-compare.md`](contract-doc-compare.md) |
|
|
20
|
+
| 检索系统内文件 / 取历史版本 | `contract run contract.compare.search/versions` | [`contract-doc-compare.md`](contract-doc-compare.md) |
|
|
21
|
+
| 打开文档比对页 | `contract run contract.compare.page` | [`contract-doc-compare.md`](contract-doc-compare.md) |
|
|
22
|
+
| 拉取比对差异结果 | `contract run contract.compare.diff` | [`contract-doc-compare.md`](contract-doc-compare.md) |
|
|
23
|
+
| 打开企业资信页 | `contract run contract.credit.page` | [`contract-credit-page.md`](contract-credit-page.md) |
|
|
24
|
+
| 助手初始化 / 列表 / 16 智能体查询 | `contract run contract.assistant.init/list/config.query` | [`contract-ai-assistant.md`](contract-ai-assistant.md) |
|
|
25
|
+
| 查存储目录 / 执行方式 / 提示语 | `contract run contract.assistant.doc.query/tips.query` | [`contract-ai-assistant.md`](contract-ai-assistant.md) |
|
|
26
|
+
| 检索文档目录 / 关键词组 | `contract run contract.assistant.doc.folder.search/keygroup.search` | [`contract-ai-assistant.md`](contract-ai-assistant.md) |
|
|
27
|
+
| 准备/确认新建、删除助手 | `contract run contract.assistant.create/delete.prepare/apply` | [`contract-ai-assistant.md`](contract-ai-assistant.md) |
|
|
28
|
+
| 准备/确认改存储目录、执行方式、智能体配置 | `contract run contract.assistant.doc.save/agent.update.prepare/apply` | [`contract-ai-assistant.md`](contract-ai-assistant.md) |
|
|
29
|
+
| 准备/确认维护提示语 | `contract run contract.assistant.tips.create/delete.prepare/apply` | [`contract-ai-assistant.md`](contract-ai-assistant.md) |
|
|
30
|
+
| 查内控分类 / 规则 / 规则组;准备/确认其增删改 | `contract run contract.assistant.rule.classification.list` 与 `rule.*.prepare/apply` | [`contract-ai-assistant.md`](contract-ai-assistant.md) |
|
|
31
|
+
| 查要素集合;准备/确认新增删除要素集合 | `contract run contract.assistant.element.query/create/delete.prepare/apply` | [`contract-ai-assistant.md`](contract-ai-assistant.md) |
|
|
32
|
+
| 查 / 准备 / 确认维护助手关联流程 | `contract run contract.assistant.flow.list/save/update/delete.prepare/apply` | [`contract-ai-assistant.md`](contract-ai-assistant.md) |
|
|
33
|
+
| 查合同类型树 | `contract run contract.type.tree` | [`contract-template-selector.md`](contract-template-selector.md) |
|
|
34
|
+
| 查模板分类树 / 模板列表 / 模板详情 | `contract run contract.template.tree/list/detail` | [`contract-template-selector.md`](contract-template-selector.md) |
|
|
35
|
+
| 查条款分类 / 条款列表 / 条款组 / 条款搜索 / 条款标签 | `contract run contract.clause.tree/list/group.list/search/tags` | [`contract-clause-recommender.md`](contract-clause-recommender.md) |
|
|
36
|
+
| 检查条款库权限 | `contract run contract.clause.permission` | [`contract-clause-library-crud.md`](contract-clause-library-crud.md) |
|
|
37
|
+
| 判重 / 按名称检索条款 / 检索分部 | `contract run contract.clause.check/browser/subcompany` | [`contract-clause-library-crud.md`](contract-clause-library-crud.md) |
|
|
38
|
+
| 准备/确认新增、修改、删除条款 | `contract run contract.clause.create/update/delete.prepare/apply` | [`contract-clause-library-crud.md`](contract-clause-library-crud.md) |
|
|
39
|
+
| 准备/确认维护条款分类(删除会级联) | `contract run contract.clause.category.create/update/delete.prepare/apply` | [`contract-clause-library-crud.md`](contract-clause-library-crud.md) |
|
|
40
|
+
| 准备/确认维护条款组 | `contract run contract.clause.group.create/update/delete.prepare/apply` | [`contract-clause-library-crud.md`](contract-clause-library-crud.md) |
|
|
41
|
+
| 查合同文档已引用条款 | `contract run contract.clause.reference.get` | [`contract-clause-reference-save.md`](contract-clause-reference-save.md) |
|
|
42
|
+
| 准备/确认把条款写入合同文档 | `contract run contract.clause.reference.save.prepare/apply` | [`contract-clause-reference-save.md`](contract-clause-reference-save.md) |
|
|
43
|
+
| 解析 appId / objId / 字段 / 选项 | `contract run contract.subject.app/form/fields/options` | [`contract-signing-subjects.md`](contract-signing-subjects.md) |
|
|
44
|
+
| 查询签约主体 | `contract run contract.subject.query` | [`contract-signing-subjects.md`](contract-signing-subjects.md) |
|
|
45
|
+
| 准备/确认新建签约主体 | `contract run contract.subject.create.prepare/apply` | [`contract-subject-create.md`](contract-subject-create.md) |
|
|
46
|
+
| 解析 workflowId / 表单字段 / 字段选项 | `contract run contract.workflow.query/list/form.info/field.options` | [`contract-workflow-discovery.md`](contract-workflow-discovery.md) |
|
|
47
|
+
| 准备/确认创建合同流程实例 | `contract run contract.request.create.prepare/apply` | [`contract-request-write.md`](contract-request-write.md) |
|
|
48
|
+
| 准备/确认保存合同表单 | `contract run contract.request.save.prepare/apply` | [`contract-request-write.md`](contract-request-write.md) |
|
|
49
|
+
| 准备/确认提交合同审批 | `contract run contract.request.submit.prepare/apply` | [`contract-request-write.md`](contract-request-write.md) |
|
|
50
|
+
| 准备/确认催办 | `contract run contract.request.supervise.prepare/apply` | [`contract-request-write.md`](contract-request-write.md) |
|
|
51
|
+
| 查审批状态 / 签字意见 | `contract run contract.request.status/log` | [`contract-request-status.md`](contract-request-status.md) |
|
|
52
|
+
| 构造业绩菜单过滤链接 / 查台账字段 | `contract run contract.performance.link/fields` | [`contract-performance-query.md`](contract-performance-query.md) |
|
|
53
|
+
| 按合同号查三类来源台账 / 收款台账 | `contract run contract.performance.list.query/receipt.query` | [`contract-performance-query.md`](contract-performance-query.md) |
|
|
54
|
+
| 解析报价单 xlsx / 人民币大写 | `contract run contract.quote.parse/rmb` | [`contract-quote-to-contract.md`](contract-quote-to-contract.md) |
|
|
55
|
+
| 用真实模板生成合同 docx | `contract run contract.quote.fill` | [`contract-quote-to-contract.md`](contract-quote-to-contract.md) |
|
|
56
|
+
| 企业资信数据明细、撤回/退回等未实现能力 | 无可用命令 | [`contract-disabled-capabilities.md`](contract-disabled-capabilities.md) |
|
|
57
|
+
|
|
58
|
+
## 处理链(每条链的固定顺序)
|
|
59
|
+
|
|
60
|
+
- 智能审查:`contract.review.upload`(拿 `files[].fileId/docId`)-> 打开结果 `url`(`width: 1000`,不编码)-> 用户要报告时 `contract.review.export` -> 按 `sclx` 生成 Markdown 报告并 `present_files`
|
|
61
|
+
- 文档比对:确定 baseFile(`contract.compare.upload` / `contract.compare.search` / `contract.compare.versions`)-> 确定 compareFile -> `contract.compare.page` 打开页面 -> 用户要报告时 `contract.compare.diff`
|
|
62
|
+
- 模板推荐:`contract.recommend.doc`(超时 180 秒,慢不重试)-> 表格展示 `recommendations` -> 打开 `url`
|
|
63
|
+
- 带文件发起流程:`contract.flow.launch`(内部先 `loadBaseParam` 取 `requestId`,再按 `module=workflow` 上传)-> 打开 `url`(带 `fileId` 与 `automaticFormFilling=true`)
|
|
64
|
+
- 资信页:确认企业全称 -> `contract.credit.page` -> 打开 `url`(`name[N]` 只对值编码一次)
|
|
65
|
+
- 业绩核算:本地直算(不发起网络请求)`contract.performance.link`(`needs_ui` 项由用户在页面补填,AI 不代操作)-> 实际数据走 `contract.performance.list.query`(精确 eq)/`contract.performance.receipt.query`(收款台账)
|
|
66
|
+
- 报价单转合同:`contract.quote.sheets` 让用户选 sheet -> `contract.quote.parse`(校验 warnings/checks)-> 用户确认数据 -> 必须先有真实 .docx 模板 -> `contract.quote.fill`(unfilled 交给用户补,不编造)
|
|
67
|
+
- 选模板:`contract.type.tree` -> `contract.template.tree`(取 `belongId`)-> `contract.template.list` -> 必要时 `contract.template.detail`
|
|
68
|
+
- 推荐条款:`contract.clause.tags`(取 `tagId`)-> `contract.clause.tree`(取 `belongId`)-> `contract.clause.search` -> 展示候选名称、状态与推荐理由,**不伪造"智能评分"**
|
|
69
|
+
- 维护条款库:`contract.clause.permission`(未放行立即停)-> `contract.clause.tree` 取 `belongId` -> `contract.clause.check` 判重 -> `contract.clause.create.prepare` -> 用户确认 -> `contract.clause.create.apply` -> 读 `readback.clauseNum` 确认编号落库 -> 打开 `terms-library?tab=1`
|
|
70
|
+
- 维护条款组:`contract.clause.browser` 取条款 id(多条必须让用户选)-> `contract.clause.subcompany` 取分部或 `belongSub: ""` -> `contract.clause.group.create.prepare` -> `apply` -> 用 `getListPage` 回读
|
|
71
|
+
- 维护智能助手:`contract.assistant.list` 先解析助手(多个必须让用户选)-> `contract.assistant.config.query` 拿 Control/Extract 智能体 id -> 内控规则走「建分类 -> 建规则 -> 建规则组关联 Control」三步 -> 写操作全部 prepare -> 用户确认 -> apply -> 用对应 query 接口回读 -> 打开 `ai-setting` 页
|
|
72
|
+
- 引用条款:`contract.clause.reference.get` 查已引用 -> 用户确认具体条款、合同和文件 -> `contract.clause.reference.save.prepare` -> 用户确认 -> `contract.clause.reference.save.apply` -> 回查 `contract.clause.reference.get`
|
|
73
|
+
- 签约主体:`contract.subject.app`(应用 Tag 固定 `合同管理`)-> `contract.subject.form`(按意图选 `我方签约主体库` / `客户签约主体库` / `供应商签约主体库`)-> `contract.subject.fields` / `contract.subject.options` -> `contract.subject.query` 或 `contract.subject.create.prepare/apply`
|
|
74
|
+
- 客户主数据 / 判新老客户:抽**最终用户全称** -> `contract.customer.browser`(只做全称查询,空串会被拒绝)-> 0 条 = 新客户;命中多条或名称不完全一致必须摊候选让用户选 -> 老客户再按 D4 细分([`contract-object-detect.md`](contract-object-detect.md))
|
|
75
|
+
- 发起合同审批:`contract.flow.page` / `contract.flow.launch` 走四个固定流程;或 `contract.workflow.query` 解析 `workflowId` -> `contract.workflow.form.info` 读字段 -> `contract.workflow.field.options` 把业务名称转成选项 ID -> `contract.request.create.prepare/apply` 取 `requestId` -> `contract.request.save.prepare/apply` -> **第二次确认** -> `contract.request.submit.prepare/apply` -> `contract.request.status` 回读 `flowStatus.code`
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>合同比对报告 · {{BASIC_FILE}}</title>
|
|
7
|
+
<!--
|
|
8
|
+
合同比对报告 · 固定样式骨架(2026-11-06 定稿)
|
|
9
|
+
规范见 contract-compare-report.md
|
|
10
|
+
占位符:
|
|
11
|
+
{{GENERATED_AT}} {{BASIC_FILE}} {{TARGET_FILE}}
|
|
12
|
+
{{TOTAL}} {{INSERT}} {{DELETE}} {{CHANGE}} {{PERCENTAGE}} {{SERVICE_TIME}}
|
|
13
|
+
{{DIFF_ROWS}} 第一部分差异详情 <tr> 串
|
|
14
|
+
{{SECTION2_BLOCKS}} 第二部分分组块
|
|
15
|
+
{{CHAPTER_ROWS}} 逐章「无差异」<tr> 串
|
|
16
|
+
注意:面板内渲染时用 .rp 片段(<style> + <div class="rp">),不要带 <html>/<body>。
|
|
17
|
+
-->
|
|
18
|
+
<style>
|
|
19
|
+
.rp *{box-sizing:border-box}
|
|
20
|
+
.rp{font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#1f2329;line-height:1.7;font-size:13.5px;background:#f5f6f8;padding:20px 16px 32px}
|
|
21
|
+
.rp .card{background:#fff;border:1px solid #e3e6eb;border-radius:10px;padding:20px 22px;margin-bottom:14px}
|
|
22
|
+
.rp h1{font-size:19px;margin:0 0 4px;font-weight:700}
|
|
23
|
+
.rp .sub{color:#8a939e;font-size:12.5px;margin-bottom:16px}
|
|
24
|
+
.rp h2{font-size:15px;margin:0 0 12px;padding-left:9px;border-left:3px solid #1a56b8;line-height:1.3}
|
|
25
|
+
.rp h3{font-size:13.5px;margin:0 0 10px;color:#5c6570;font-weight:600}
|
|
26
|
+
.rp table{width:100%;border-collapse:collapse}
|
|
27
|
+
.rp .who{background:#fafbfc;border:1px solid #eef0f4;border-radius:8px;padding:14px 16px;margin-bottom:14px}
|
|
28
|
+
.rp .who .row{display:flex;gap:10px;margin-bottom:8px;align-items:flex-start}
|
|
29
|
+
.rp .who .row:last-child{margin-bottom:0}
|
|
30
|
+
.rp .who .lab{flex:0 0 92px;color:#8a939e;font-size:12.5px}
|
|
31
|
+
.rp .who .val{flex:1;font-weight:600;word-wrap:break-word}
|
|
32
|
+
.rp .who .arrow{flex:0 0 auto;color:#1a56b8;font-weight:700}
|
|
33
|
+
.rp .stats{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}
|
|
34
|
+
.rp .stat{flex:1 1 96px;background:#fff;border:1px solid #e3e6eb;border-radius:10px;padding:12px 14px;text-align:center}
|
|
35
|
+
.rp .stat .k{font-size:12px;color:#8a939e;margin-bottom:4px}
|
|
36
|
+
.rp .stat .n{font-size:22px;font-weight:700;line-height:1.15;color:#1f2329}
|
|
37
|
+
.rp .stat.tot .n{color:#1a56b8}
|
|
38
|
+
.rp .stat.ins .n{color:#237804}
|
|
39
|
+
.rp .stat.del .n{color:#a8071a}
|
|
40
|
+
.rp .stat.chg .n{color:#b26a00}
|
|
41
|
+
.rp .diff th,.rp .diff2 th{text-align:left;font-size:12.5px;color:#5c6570;font-weight:500;padding:9px 10px;background:#fafbfc;border-bottom:1px solid #e3e6eb}
|
|
42
|
+
.rp .diff td,.rp .diff2 td{padding:12px 10px;border-bottom:1px solid #f0f2f5;vertical-align:top}
|
|
43
|
+
.rp .diff tr:last-child td,.rp .diff2 tr:last-child td{border-bottom:none}
|
|
44
|
+
.rp .num{width:38px;color:#a0a8b3;text-align:center}
|
|
45
|
+
.rp .tag{display:inline-block;font-size:11.5px;padding:1px 9px;border-radius:999px;border:1px solid;white-space:nowrap}
|
|
46
|
+
.rp .cell{font-size:13px;line-height:1.8;word-wrap:break-word}
|
|
47
|
+
.rp .base{background:#fcfcfd}
|
|
48
|
+
.rp .cmp{background:#fbfdff}
|
|
49
|
+
.rp .clause{font-weight:600;font-size:13px}
|
|
50
|
+
.rp .where{color:#8a939e;font-size:12px;line-height:1.6}
|
|
51
|
+
.rp details{border:1px solid #e3e6eb;border-radius:10px;background:#fff;overflow:hidden}
|
|
52
|
+
.rp details>summary{cursor:pointer;padding:15px 20px;font-size:15px;font-weight:700;list-style:none;display:flex;align-items:center;gap:10px;background:#fff}
|
|
53
|
+
.rp details>summary::-webkit-details-marker{display:none}
|
|
54
|
+
.rp details>summary .arw{color:#1a56b8;font-size:13px;transition:transform .2s}
|
|
55
|
+
.rp details[open]>summary .arw{transform:rotate(90deg)}
|
|
56
|
+
.rp details>summary .hint{margin-left:auto;font-size:12px;color:#8a939e;font-weight:400}
|
|
57
|
+
.rp .body{padding:0 20px 18px}
|
|
58
|
+
.rp .grp{border:1px solid #eef0f4;border-radius:8px;margin-bottom:12px;overflow:hidden}
|
|
59
|
+
.rp .grp-hd{background:#fafbfc;padding:10px 14px;display:flex;align-items:center;gap:8px}
|
|
60
|
+
.rp .grp-name{font-weight:700;font-size:13.5px}
|
|
61
|
+
.rp .grp-cnt{font-size:11.5px;color:#fff;background:#1a56b8;border-radius:999px;padding:1px 9px}
|
|
62
|
+
.rp .grp-sub{padding:8px 14px 0;color:#8a939e;font-size:12px}
|
|
63
|
+
.rp .diff2{margin-top:6px}
|
|
64
|
+
.rp .chap td{padding:7px 12px;border-bottom:1px solid #f5f6f8;font-size:12.5px}
|
|
65
|
+
.rp .chap .none{color:#237804;text-align:right}
|
|
66
|
+
.rp .disc{font-size:12px;color:#8a939e;background:#fafbfc;border-radius:8px;padding:10px 14px;line-height:1.8;margin-top:12px}
|
|
67
|
+
.rp .foot{color:#a0a8b3;font-size:12px;text-align:center;margin-top:10px}
|
|
68
|
+
@media print{.rp{background:#fff;padding:0}.rp .card{border:none}}
|
|
69
|
+
</style>
|
|
70
|
+
</head>
|
|
71
|
+
<body style="margin:0;background:#f5f6f8">
|
|
72
|
+
|
|
73
|
+
<div class="rp">
|
|
74
|
+
|
|
75
|
+
<!-- ===== 第一部分:比对信息 ===== -->
|
|
76
|
+
<div class="card">
|
|
77
|
+
<h1>合同比对报告</h1>
|
|
78
|
+
<div class="sub">生成时间 {{GENERATED_AT}} | 数据来源:contract.compare.diff 实际返回</div>
|
|
79
|
+
|
|
80
|
+
<h2>一、比对信息</h2>
|
|
81
|
+
|
|
82
|
+
<h3>1. 比对双方</h3>
|
|
83
|
+
<div class="who">
|
|
84
|
+
<div class="row"><div class="lab">基准合同</div><div class="val">{{BASIC_FILE}}</div></div>
|
|
85
|
+
<div class="row"><div class="lab"></div><div class="arrow">↓ 与 ↓</div></div>
|
|
86
|
+
<div class="row"><div class="lab">比对合同</div><div class="val">{{TARGET_FILE}}</div></div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
<h3>2. 差异统计</h3>
|
|
90
|
+
<div class="stats">
|
|
91
|
+
<div class="stat tot"><div class="k">变化合计</div><div class="n">{{TOTAL}}</div></div>
|
|
92
|
+
<div class="stat ins"><div class="k">新增</div><div class="n">{{INSERT}}</div></div>
|
|
93
|
+
<div class="stat del"><div class="k">删除</div><div class="n">{{DELETE}}</div></div>
|
|
94
|
+
<div class="stat chg"><div class="k">修改</div><div class="n">{{CHANGE}}</div></div>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="disc" style="margin-bottom:14px">
|
|
97
|
+
自基准合同至比对合同,共发生 <b>{{TOTAL}}</b> 处变化:新增 <b>{{INSERT}}</b> 处、删除 <b>{{DELETE}}</b> 处、修改 <b>{{CHANGE}}</b> 处。
|
|
98
|
+
文本相似度 <b>{{PERCENTAGE}}%</b>,比对耗时 {{SERVICE_TIME}} ms。
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<h3>3. 差异详情</h3>
|
|
102
|
+
<table class="diff">
|
|
103
|
+
<thead><tr><th style="width:38px">#</th><th style="width:68px">类型</th><th>基准合同内容</th><th>比对合同内容</th></tr></thead>
|
|
104
|
+
<tbody>{{DIFF_ROWS}}</tbody>
|
|
105
|
+
</table>
|
|
106
|
+
<div class="disc">上表为接口返回的原文片段,彩色文字即接口标注的改动位置(橙色=修改、绿色=新增、红色=删除),前后文字为上下文。</div>
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
<!-- ===== 第二部分:默认展开 ===== -->
|
|
110
|
+
<details open>
|
|
111
|
+
<summary>
|
|
112
|
+
<span class="arw">▶</span>
|
|
113
|
+
<span>二、按合同章节 / 条款展示差异点</span>
|
|
114
|
+
<span class="hint">可折叠</span>
|
|
115
|
+
</summary>
|
|
116
|
+
<div class="body">
|
|
117
|
+
{{SECTION2_BLOCKS}}
|
|
118
|
+
|
|
119
|
+
<div class="grp">
|
|
120
|
+
<div class="grp-hd"><span class="grp-name">正文条款</span>
|
|
121
|
+
<span class="grp-cnt" style="background:#237804">0 处差异</span></div>
|
|
122
|
+
<div class="grp-sub">以下章节逐条比对后未发现差异</div>
|
|
123
|
+
<table class="chap"><tbody>{{CHAPTER_ROWS}}</tbody></table>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<div class="disc">
|
|
127
|
+
说明:本次 {{TOTAL}} 处差异全部位于<b>合同封面与正文缔约信息区</b>,<b>未涉及</b>正文任何章节的条款。
|
|
128
|
+
章节归属依据两份文档的实际段落位置判定。
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</details>
|
|
132
|
+
|
|
133
|
+
<div class="foot">本报告由系统根据实际比对结果自动生成,未对差异内容做任何增补或推断。</div>
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
</body>
|
|
137
|
+
</html>
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# 合同比对报告(结构 / 要素 / 口径 / 样式)
|
|
2
|
+
|
|
3
|
+
> **2026-11-06 用户确认并定稿**。本文件是「生成比对报告」的固定规范,
|
|
4
|
+
> 动作 id `export-compare-report`,前提 `compared=true`(见 `contract-action-engine.md`)。
|
|
5
|
+
> 数据一律来自 `contract.compare.diff` 的**真实返回**,禁止增补、推断或美化差异。
|
|
6
|
+
|
|
7
|
+
## 0. 两部分结构(固定,不得增删)
|
|
8
|
+
|
|
9
|
+
| 部分 | 内容 | 默认状态 |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| **第一部分:比对信息** | ① 比对双方 ② 差异统计 ③ 差异详情 | 展开 |
|
|
12
|
+
| **第二部分:按合同章节 / 条款展示差异点** | 按「章节 → 条款」逐层定位差异 | **默认展开**(`<details open>`) |
|
|
13
|
+
|
|
14
|
+
**第二部分必须默认展开**(2026-11-06 用户指定):用 `<details open>` 直接铺开,不要默认展开。
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 1. 第一部分:比对信息
|
|
19
|
+
|
|
20
|
+
### 1.1 比对双方(谁跟谁比)
|
|
21
|
+
|
|
22
|
+
两个文件名上下排列,中间用「↓ 与 ↓」连接:
|
|
23
|
+
|
|
24
|
+
| 位置 | 取值 |
|
|
25
|
+
|---|---|
|
|
26
|
+
| 基准合同 | 接口 `contractCompare.basicFileName` |
|
|
27
|
+
| 比对合同 | 接口 `contractCompare.targetFileName` |
|
|
28
|
+
|
|
29
|
+
> 基准 = 左栏 = 改动**前**;比对 = 右栏 = 改动**后**。不要写反。
|
|
30
|
+
|
|
31
|
+
### 1.2 差异统计(四个数字,固定口径)
|
|
32
|
+
|
|
33
|
+
四个指标卡并排展示:
|
|
34
|
+
|
|
35
|
+
| 指标 | 取值 |
|
|
36
|
+
|---|---|
|
|
37
|
+
| **变化合计** | `changes.length` |
|
|
38
|
+
| **新增** | `type == "insert"` 的条数 |
|
|
39
|
+
| **删除** | `type == "delete"` 的条数 |
|
|
40
|
+
| **修改** | `type == "change"`(含 `replace`)的条数 |
|
|
41
|
+
|
|
42
|
+
同时附一句文字说明,并带上 `percentage`(相似度)与 `serviceTime`(耗时)。
|
|
43
|
+
|
|
44
|
+
**计数口径的硬规则**:
|
|
45
|
+
|
|
46
|
+
- **按接口返回的 `type` 字段逐条计数**,不自己判断“这算新增还是修改”。
|
|
47
|
+
- 接口把同一处改动**拆成多条**记录时(例:签约时间 8→1 记为 `change`,地点加「西咸新区」记为 `insert`),
|
|
48
|
+
**照实各计一条**,不要合并、不要重判。
|
|
49
|
+
- 合计恒等于 `changes.length`,若不等说明计错。
|
|
50
|
+
|
|
51
|
+
### 1.3 差异详情
|
|
52
|
+
|
|
53
|
+
一张左右对照表,四列:
|
|
54
|
+
|
|
55
|
+
| # | 类型 | 基准合同内容 | 比对合同内容 |
|
|
56
|
+
|---|---|---|---|
|
|
57
|
+
|
|
58
|
+
- 「类型」用彩色胶囊标签:新增(绿)、删除(红)、修改(橙)。
|
|
59
|
+
- 两个内容列直接放接口返回的 `base` / `compare` 字段,**其中已含 `<span style="color:#XXX">` 高亮**,原样输出即可。
|
|
60
|
+
- 颜色含义:橙 `#FFA01E`=修改、绿 `#22AC02`=新增、红 `#E01818`=删除。
|
|
61
|
+
- 表格下方注明「上表为接口返回的原文片段,彩色文字即接口标注的改动位置」。
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 2. 第二部分:按合同章节 / 条款展示差异点
|
|
66
|
+
|
|
67
|
+
### 2.1 分组方式
|
|
68
|
+
|
|
69
|
+
按差异在合同中的**实际位置**分组,每组一张表:
|
|
70
|
+
|
|
71
|
+
| 差异条款 | 类型 | 位置 | 改动前 | 改动后 |
|
|
72
|
+
|---|---|---|---|---|
|
|
73
|
+
|
|
74
|
+
再补一段「正文条款(各章)0 处差异 / 逐章无差异」的清单,让用户看清正文未受影响。
|
|
75
|
+
|
|
76
|
+
### 2.2 章节归属怎么判(**关键坑,必须按此执行**)
|
|
77
|
+
|
|
78
|
+
> 🔴 **合同正文的章标题不带「第X章」字样**(正文里就是「名词定义」,不是「第一章 名词定义」)。
|
|
79
|
+
> 带编号的「第一章…第十六章」**只出现在目录区**。
|
|
80
|
+
> 若直接用「第X章」正则匹配正文,会把后续所有段落**误归到目录里的最后一章**(实测把甲方电话误挂到「第十六章」)。
|
|
81
|
+
|
|
82
|
+
**正确判定顺序**:
|
|
83
|
+
|
|
84
|
+
1. 先定位**封面**(合同编号 / 标题 / 甲方乙方 / 签订时间地点)——不属于任何章节。
|
|
85
|
+
2. 再定位**缔约信息区**(地址 / 联系人 / 电话)——不属于任何章节。
|
|
86
|
+
3. 然后进入正文,按**段落顺序**与各章标题的位置关系判定所属章节。
|
|
87
|
+
4. 常见合同及章节清单(昆仑芯版实测 16 章):名词定义 / 授予使用许可权 / 产品交付 / 双方的权利与义务 /
|
|
88
|
+
合同标的 / 付款方式 / 知识产权及保护 / 保密条款 / 承诺与保证 / 违约责任 / 不可抗力 /
|
|
89
|
+
反商业贿赂 / 合同的终止 / 合同的生效 / 其它相关 / 合同书签署。
|
|
90
|
+
|
|
91
|
+
**差异可能全部落在封面与缔约信息区**(实测 3 处差异均如此,正文 16 章 0 差异)。
|
|
92
|
+
此时**如实呈现**:分组写「封面(正文前)」「缔约信息区(正文前)」,并逐章列出「无差异」,
|
|
93
|
+
**不得为了凑数把差异硬塞进某个章节**。
|
|
94
|
+
|
|
95
|
+
### 2.3 位置标注
|
|
96
|
+
|
|
97
|
+
每条差异标注到「区块 · 栏目(段 N)」粒度,例:
|
|
98
|
+
|
|
99
|
+
- `封面 · 甲方乙方落款处(段 11)`
|
|
100
|
+
- `甲方联系人信息 · 电话栏(段 46)`
|
|
101
|
+
|
|
102
|
+
段落序号取 docx 正文段落索引(去空段后的顺序),便于回原文核对。
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## 3. 渲染与交付(两条都要做)
|
|
107
|
+
|
|
108
|
+
| 动作 | 做法 |
|
|
109
|
+
|---|---|
|
|
110
|
+
| **展示** | `plugin.rightPanel.open({ type:'artifact', ... raw:{html: 报告HTML字符串} })`,见 `contract-action-card.md` §5.2 |
|
|
111
|
+
| **交付** | 同时落一份独立 `.html` 文件,用 `present_files` 登记 |
|
|
112
|
+
|
|
113
|
+
**禁止**:
|
|
114
|
+
|
|
115
|
+
- 禁止用 `session.sendQuestion` 让 AI 再生成一遍。**判定依据:报告 HTML 此刻已在手 → 命中 `contract-action-card.md` §5.2 规则边界 R2(内容已在手)→ 必须 `artifact` 直传**。注意「生成比对报告」名称含「生成」二字,**不得据此判为 R3**。
|
|
116
|
+
- 禁止只给面板不落文件,或只落文件不开面板。
|
|
117
|
+
- 禁止用 `type:'url'` 直开。
|
|
118
|
+
|
|
119
|
+
`artifact` 必传 `initialArtifactKeys`(与 `artifacts` 同级),漏传面板不激活。
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## 4. 样式规范(固化)
|
|
124
|
+
|
|
125
|
+
单文件、零依赖、内联 `<style>`,可直接打印。
|
|
126
|
+
|
|
127
|
+
### 4.1 配色
|
|
128
|
+
|
|
129
|
+
| 用途 | 色值 |
|
|
130
|
+
|---|---|
|
|
131
|
+
| 主色(标题条、强调数字、链接) | `#1a56b8` |
|
|
132
|
+
| 正文 | `#1f2329` |
|
|
133
|
+
| 次要文字 | `#5c6570` / `#8a939e` / `#a0a8b3` |
|
|
134
|
+
| 页面底色 | `#f5f6f8` |
|
|
135
|
+
| 卡片底 / 边框 | `#fff` / `#e3e6eb` |
|
|
136
|
+
| 新增 | 字 `#237804` · 底 `#f6ffed` · 边 `#b7eb8f` |
|
|
137
|
+
| 删除 | 字 `#a8071a` · 底 `#fff1f0` · 边 `#ffa39e` |
|
|
138
|
+
| 修改 | 字 `#b26a00` · 底 `#fff7e6` · 边 `#ffd591` |
|
|
139
|
+
|
|
140
|
+
### 4.2 版式
|
|
141
|
+
|
|
142
|
+
- 根容器 `.rp`:`#f5f6f8` 底、`padding:20px 16px 32px`、字号 13.5px、行高 1.7、字体 `Microsoft YaHei / PingFang SC`。
|
|
143
|
+
- 区块 `.card`:白底、`border:1px solid #e3e6eb`、`border-radius:10px`、`padding:20px 22px`、下间距 14px。
|
|
144
|
+
- 标题 `h2`:`padding-left:9px` + `border-left:3px solid #1a56b8`。
|
|
145
|
+
- 指标卡 `.stat`:等宽弹性、居中数字 22px 粗体,四色区分(合计蓝 / 新增绿 / 删除红 / 修改橙)。
|
|
146
|
+
- 表格:表头 `#fafbfc` 底,行分隔线 `#f0f2f5`;左栏内容列 `#fcfcfd`,右栏 `#fbfdff`。
|
|
147
|
+
- 折叠:`<details open>` + 自绘箭头(`▶`,展开时旋转 90°),`summary` 右侧放「点击展开」提示。
|
|
148
|
+
- 所有样式统一以 `.rp` 作前缀,避免污染面板其他区域。
|
|
149
|
+
|
|
150
|
+
> 完整骨架见 [`contract-compare-report-template.html`](contract-compare-report-template.html):占位符 `{{BASIC_FILE}}`、`{{TARGET_FILE}}`、`{{TOTAL}}`、`{{INSERT}}`、`{{DELETE}}`、`{{CHANGE}}`、`{{PERCENTAGE}}`、`{{SERVICE_TIME}}`、`{{DIFF_ROWS}}`、`{{SECTION2_BLOCKS}}`、`{{CHAPTER_ROWS}}`、`{{GENERATED_AT}}`。
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## 5. 生成前后自检
|
|
155
|
+
|
|
156
|
+
- [ ] 基准 / 比对文件名取自接口字段,未写反
|
|
157
|
+
- [ ] 四项统计与 `changes` 逐条对齐,合计 = `changes.length`
|
|
158
|
+
- [ ] 差异详情原文取自接口 `base` / `compare`,高亮未丢失
|
|
159
|
+
- [ ] 第二部分**默认展开**(`<details open>`,无需点击)
|
|
160
|
+
- [ ] 章节归属按 §2.2 判定,未把差异误挂到目录里的章节
|
|
161
|
+
- [ ] 正文未受影响时,逐章列出「无差异」
|
|
162
|
+
- [ ] 展示走 `artifact`、且同时落独立文件交付
|
|
163
|
+
- [ ] 未使用 `sendQuestion` / `type:'url'`
|
|
@@ -13,7 +13,55 @@
|
|
|
13
13
|
- 从合同文件中抽取的主体,**必须先让用户确认全称**再查。
|
|
14
14
|
- CLI 对少于 4 个字符的名称直接拒绝(`name_not_full`)。
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## 打开资信页:必须用 `ContractCreditDetail` 组件(2026-11-06 用户指定)
|
|
17
|
+
|
|
18
|
+
> 🔴 **面板内展示资信界面,必须挂 `ContractCreditDetail` 组件。**
|
|
19
|
+
> 此前用 `type:'url'` 直开 `credit?name[0]=...` 地址,**组件不加载**。
|
|
20
|
+
> 该写法无任何文档依据,属早期臆造后被反复复制,已废弃。
|
|
21
|
+
|
|
22
|
+
**标准调用结构**:
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
plugin.rightPanel.open({
|
|
26
|
+
type: 'e10Sdk',
|
|
27
|
+
contentProps: {
|
|
28
|
+
src: '{baseUrl}/sp/contract/business/credit', // 例:https://www.e-cology.com.cn/sp/contract/business/credit
|
|
29
|
+
sdkOptions: {
|
|
30
|
+
compName: 'ui.CorsComponent',
|
|
31
|
+
routerType: 'MemoryRouter',
|
|
32
|
+
routerProps: { initialEntries: ['/sp/contract/business/credit'] },
|
|
33
|
+
params: {
|
|
34
|
+
app: '@weapp/contract',
|
|
35
|
+
compName: 'ContractCreditDetail',
|
|
36
|
+
companyName: ['企业全称']
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**参数要点**:
|
|
44
|
+
|
|
45
|
+
| 键 | 值 | 说明 |
|
|
46
|
+
|---|---|---|
|
|
47
|
+
| `src` | `{baseUrl}/sp/contract/business/credit` | **域名取当前环境 baseUrl(动态)**,路径固定;不要硬编码任何域名 |
|
|
48
|
+
| `sdkOptions.compName` | `ui.CorsComponent` | 固定 |
|
|
49
|
+
| `routerProps.initialEntries` | `['/sp/contract/business/credit']` | 单元素数组,不带域名 |
|
|
50
|
+
| `params.app` | `@weapp/contract` | 固定 |
|
|
51
|
+
| `params.compName` | `ContractCreditDetail` | 与 `sdkOptions.compName` 同值,**两处都写** |
|
|
52
|
+
| `params.companyName` | **数组** `['企业全称']` | **不是 `name[0]` 这种查询参数**;多家企业就放多个元素 |
|
|
53
|
+
|
|
54
|
+
**禁止**:
|
|
55
|
+
|
|
56
|
+
- 禁止 `type:'url'` 直开资信页(组件不加载)。
|
|
57
|
+
- 禁止写成 `name[0]=xxx&name[1]=xxx` 查询参数形式。
|
|
58
|
+
- 禁止把 `companyName` 写成字符串,**必须是数组**。
|
|
59
|
+
- 禁止漏写 `params.compName`。
|
|
60
|
+
- **必须**用当前环境 baseUrl 拼 `src`,**禁止**硬编码固定域名(如 `baseUrl`)。
|
|
61
|
+
|
|
62
|
+
**主体名称仍然要求全称**(见下节),组件只负责展示,不校验名称。
|
|
63
|
+
|
|
64
|
+
## URL 规则(仅用于 `contract.credit.page` 生成外链)
|
|
17
65
|
|
|
18
66
|
```text
|
|
19
67
|
{baseUrl}/sp/contract/business/credit?name[0]={encodeURIComponent(名称1)}&name[1]={encodeURIComponent(名称2)}
|
|
@@ -22,12 +70,13 @@
|
|
|
22
70
|
- `name[N]` 索引从 **0** 开始。
|
|
23
71
|
- **只对参数值做一次 `encodeURIComponent`**;`name[0]` 的方括号、`?`、`&`、`=` 保持字面。
|
|
24
72
|
- 不要把整个 URL 再编码一次。
|
|
73
|
+
- ⚠️ 该地址**只作外链**;面板内展示必须走上节 `ContractCreditDetail` 组件。
|
|
25
74
|
|
|
26
75
|
## 处理链
|
|
27
76
|
|
|
28
77
|
1. 确认主体全称。
|
|
29
|
-
2. `contract.credit.page` 返回 `url` 与 `page`(`title: 资信查询`、`activate: true`、`width:
|
|
30
|
-
3.
|
|
78
|
+
2. `contract.credit.page` 返回 `url` 与 `page`(`title: 资信查询`、`activate: true`、`width: 700`)。
|
|
79
|
+
3. 面板内展示用 `ContractCreditDetail` 组件(见上节),**不要**用返回的 url 直开;url 仅作外链。
|
|
31
80
|
|
|
32
81
|
## 调用示例
|
|
33
82
|
|
|
@@ -20,11 +20,77 @@
|
|
|
20
20
|
|
|
21
21
|
## 处理链
|
|
22
22
|
|
|
23
|
-
1. 先确定 baseFile,再提示用户给 compareFile
|
|
24
|
-
2. `
|
|
23
|
+
1. 先确定 baseFile,再提示用户给 compareFile,两个都齐了才打开比对页。
|
|
24
|
+
2. 打开比对页**必须用 `AIDocCompare` 组件**(见下节),**不是**把 URL 当普通网页直开。
|
|
25
25
|
3. 用户明确说"导出/生成比对报告/把差异结果给我"时,才调 `contract.compare.diff`。
|
|
26
|
+
4. **比对完成后,推荐卡片必须包含「生成比对报告」**(动作 `export-compare-report`,前提 `compared=true`)。
|
|
27
|
+
用户即使没主动要报告,比对完也要把入口放进卡片——这是动作引擎 §6「比对完必给报告入口」的强制要求。
|
|
28
|
+
报告本体由 Agent 基于 `compare.diff` 的结构化结果生成 HTML/Word,`present_files` 交付。
|
|
29
|
+
|
|
30
|
+
## 打开比对页:必须用 `AIDocCompare` 组件(2026-11-06 用户指定)
|
|
31
|
+
|
|
32
|
+
> 🔴 此前用 `rightPanel.open({ type:'url', url: ... })` 直开页面地址,**组件不加载、比对界面出不来**。
|
|
33
|
+
> 正确做法是在右侧面板挂载 **`AIDocCompare`** 组件,用对象参数传两个文件。
|
|
34
|
+
|
|
35
|
+
**标准调用结构**:
|
|
36
|
+
|
|
37
|
+
```js
|
|
38
|
+
plugin.rightPanel.open({
|
|
39
|
+
type: 'e10Sdk',
|
|
40
|
+
width: 1300,
|
|
41
|
+
contentProps: {
|
|
42
|
+
src: '{baseUrl}/sp/contract/business/doc-compare', // 例:https://www.e-cology.com.cn/sp/contract/business/doc-compare
|
|
43
|
+
sdkOptions: {
|
|
44
|
+
compName: 'ui.CorsComponent',
|
|
45
|
+
routerType: 'MemoryRouter',
|
|
46
|
+
routerProps: { initialEntries: ['/sp/contract/business/doc-compare'] },
|
|
47
|
+
params: {
|
|
48
|
+
app: '@weapp/contract',
|
|
49
|
+
compName: 'AIDocCompare',
|
|
50
|
+
baseFile: { fileId: '<基准文件 fileId>', fileName: '<基准文件名>' },
|
|
51
|
+
compareFile: { fileId: '<比对文件 fileId>', fileName: '<比对文件名>' }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**参数要点**:
|
|
59
|
+
|
|
60
|
+
| 键 | 值 | 说明 |
|
|
61
|
+
|---|---|---|
|
|
62
|
+
| `src` | `{baseUrl}/sp/contract/business/doc-compare` | **域名取当前环境 baseUrl(动态)**,路径固定;不要硬编码任何域名 |
|
|
63
|
+
| `sdkOptions.compName` | `ui.CorsComponent` | 固定,**不能写成 `ui.CorsComponent`** |
|
|
64
|
+
| `routerProps.initialEntries` | `['/sp/contract/business/doc-compare']` | 单元素数组,路径不带域名 |
|
|
65
|
+
| `params.app` | `@weapp/contract` | 固定 |
|
|
66
|
+
| `params.compName` | `AIDocCompare` | 与 `sdkOptions.compName` 同值,**两处都要写** |
|
|
67
|
+
| `params.baseFile` | `{ fileId, fileName }` | **对象**,不是字符串;fileId 取 `compare.upload` 返回的第一个文件 |
|
|
68
|
+
| `params.compareFile` | `{ fileId, fileName }` | **对象**;取第二个文件 |
|
|
69
|
+
| `width` | `1300` | 比对组件用 1300 |
|
|
70
|
+
|
|
71
|
+
**`sdkOptions.compName` 固定写 `ui.CorsComponent`**(2026-11-06 用户提供《小e自定义页面接入与点击事件说明》确认):
|
|
72
|
+
|
|
73
|
+
| 位置 | 值 | 含义 |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| `sdkOptions.compName` | **`ui.CorsComponent`** | **固定**,SDK 宿主组件,不随业务变 |
|
|
76
|
+
| `sdkOptions.routerType` | **`MemoryRouter`** | **固定** |
|
|
77
|
+
| `params.compName` | `AIDocCompare` | **业务组件名填这里**,不是填 sdkOptions |
|
|
78
|
+
| `params.app` | `@weapp/contract` | 固定 |
|
|
79
|
+
|
|
80
|
+
> 🔴 **易错点**:把业务组件名填到 `sdkOptions.compName`,宿主只认 `ui.CorsComponent`,组件不会加载。
|
|
81
|
+
> 2026-11-06 之前本项目就是这么填的,表现为卡片点击无反应。
|
|
82
|
+
|
|
83
|
+
**禁止**:
|
|
84
|
+
|
|
85
|
+
- 禁止 `type:'url'` 直开 `doc-compare?...` 页面地址(组件不加载)。
|
|
86
|
+
- 禁止把 `baseFile` / `compareFile` 写成 `baseFileId=xxx` 形式的查询参数。
|
|
87
|
+
- 禁止漏写 `params.compName`(只写 `sdkOptions.compName` 不够)。
|
|
26
88
|
|
|
27
|
-
|
|
89
|
+
**与 `contract.compare.page` 的关系**:
|
|
90
|
+
`contract.compare.page` 仍可用来**取得一个可外链的页面地址**(发链接给别人、贴到别处),
|
|
91
|
+
但**在对话右侧面板里展示比对界面,一律用上面的 `AIDocCompare` 组件**,不要用 page 返回的 url 直开。
|
|
92
|
+
|
|
93
|
+
## URL 规则(仅用于 `contract.compare.page` 生成外链)
|
|
28
94
|
|
|
29
95
|
```text
|
|
30
96
|
{baseUrl}/sp/contract/business/doc-compare?baseFileId=...&baseFileName=...&compareFileId=...&compareFileName=...&options[ignoreImages]=0&options[ignoreSpace]=1&options[ignorePageHeader]=0&options[ignorePunctuation]=1&options[conversionAngle]=0&options[conversionStyle]=0&options[conversionSpecialSymbols]=0&options[ignoreMark]=1&options[ignoreWatermark]=1&options[ignoreSeal]=1
|
|
@@ -33,17 +99,38 @@
|
|
|
33
99
|
`options` 固定默认值(用户未特别说明不要改):忽略图片 0、忽略空格 1、忽略页眉页脚 0、忽略标点 1、全半角 0、繁简 0、特殊符号 0、忽略批注 1、忽略水印 1、忽略印章 1。
|
|
34
100
|
|
|
35
101
|
- 不做整体编码,中文文件名与 `[]` 保持原样。
|
|
102
|
+
- ⚠️ 该地址**只作外链使用**,面板内展示必须走上节组件。
|
|
36
103
|
|
|
37
104
|
## 差异结果
|
|
38
105
|
|
|
39
|
-
`contract.compare.diff`
|
|
106
|
+
`contract.compare.diff` 请求体两个字段都是**单个字符串**(不是数组):
|
|
40
107
|
|
|
41
108
|
```json
|
|
42
|
-
{ "
|
|
109
|
+
{ "baseFileId": "9000", "compareFileId": "9001" }
|
|
43
110
|
```
|
|
44
111
|
|
|
112
|
+
> 🔴 **2026-11-06 实测纠错**:此前这里写的是数组 `baseFileId: ["9000"]`,
|
|
113
|
+
> 实际调用直接报 `baseFileId 必须是非空字符串`(`input_invalid`)。
|
|
114
|
+
> 正确字段名是**单数** `baseFileId` / `compareFileId`,值为字符串。
|
|
115
|
+
|
|
45
116
|
返回 `data.result`(`getCompareRes` 原始响应)。CLI 只返回结构化数据;需要 HTML 比对报告时由 Agent 基于结果生成,不要伪造差异。
|
|
46
117
|
|
|
118
|
+
## 生成比对报告
|
|
119
|
+
|
|
120
|
+
比对完成后,动作 `export-compare-report` 出报告(前提 `compared=true`)。
|
|
121
|
+
|
|
122
|
+
**结构与口径的完整规范见 [`contract-compare-report.md`](contract-compare-report.md)**,
|
|
123
|
+
样式骨架见 [`contract-compare-report-template.html`](contract-compare-report-template.html)。此处只列要点:
|
|
124
|
+
|
|
125
|
+
| 项 | 要求 |
|
|
126
|
+
|---|---|
|
|
127
|
+
| 结构 | **两部分**:① 比对信息(比对双方 / 差异统计 / 差异详情)② 按章节条款展示差异点 |
|
|
128
|
+
| 第二部分 | **默认展开**(`<details open>`),点击展开 |
|
|
129
|
+
| 统计口径 | 按接口 `type` 逐条计数:`insert` / `delete` / `change`,合计 = `changes.length` |
|
|
130
|
+
| 章节归属 | **正文章标题不带「第X章」**,编号仅在目录;按段落位置判定,勿误挂到目录最后一章 |
|
|
131
|
+
| 渲染 | `rightPanel.open({type:'artifact'})` + `raw.html` 直传,**不要** `sendQuestion` |
|
|
132
|
+
| 交付 | 同时落独立 `.html` 文件,用 `present_files` 登记 |
|
|
133
|
+
|
|
47
134
|
## 调用示例
|
|
48
135
|
|
|
49
136
|
Windows PowerShell:
|