weaver-work-cli 0.1.61 → 0.1.63
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/dist/chunks/{archive-S2VKZWQ3.js → archive-BLDYBZDX.js} +5 -4
- package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-3GJ3TWXR.js} +5 -4
- package/dist/chunks/{asset-HYH4W357.js → asset-AFXJN4CK.js} +5 -4
- package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-VUJXWGWJ.js} +5 -4
- package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-VMJA7NSQ.js} +3 -3
- package/dist/chunks/{blog-SLMZZICV.js → blog-EREB35VU.js} +5 -4
- package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-ATM2JO5S.js} +5 -5
- package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-E26ZIH7S.js} +5 -4
- package/dist/chunks/{chunk-6XSSAUNW.js → chunk-4OB22YKE.js} +48 -12
- package/dist/chunks/{chunk-UBGWIXU3.js → chunk-5CY37VLS.js} +131 -38
- package/dist/chunks/{chunk-EGANE35F.js → chunk-6G2JARDK.js} +1 -1
- package/dist/chunks/{chunk-WIWDVETN.js → chunk-6VCQLZXE.js} +75 -76
- package/dist/chunks/{chunk-E5YD5JWR.js → chunk-BY3WDJO5.js} +1 -1
- package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
- package/dist/chunks/{chunk-BQYX2UX5.js → chunk-C5PIGPGX.js} +5 -3
- package/dist/chunks/{chunk-UBRWONP4.js → chunk-EOZHSNND.js} +2 -2
- package/dist/chunks/{chunk-UQFPF4EX.js → chunk-G3ZM57PD.js} +2 -2
- package/dist/chunks/{chunk-XT77MP54.js → chunk-GOBNIGWS.js} +410 -24
- package/dist/chunks/{chunk-KY3R42RS.js → chunk-GQK6WLOS.js} +5 -3
- package/dist/chunks/{chunk-BIA2NKUG.js → chunk-HEJPVXD3.js} +5 -5
- package/dist/chunks/{chunk-ILALC2N6.js → chunk-I4C2KR2G.js} +1 -1
- package/dist/chunks/{chunk-YI2YMW5N.js → chunk-IGICM3WJ.js} +2 -2
- package/dist/chunks/chunk-IN6NXQ26.js +680 -0
- package/dist/chunks/{chunk-VBFBMM7G.js → chunk-LOVAIGM2.js} +387 -70
- package/dist/chunks/{chunk-H6YOMI3U.js → chunk-OMAGCLUE.js} +5 -3
- package/dist/chunks/{chunk-VNYOUAWV.js → chunk-QAMIIFP6.js} +11 -11
- package/dist/chunks/{chunk-QBDXJS2W.js → chunk-QZYKZ7MQ.js} +16 -8
- package/dist/chunks/{chunk-V2LASYKO.js → chunk-RR45ELVE.js} +30 -24
- package/dist/chunks/{chunk-NRYDJN4J.js → chunk-RV2JAA5I.js} +89 -8
- package/dist/chunks/{chunk-TEZHIB6T.js → chunk-SDPC7BG2.js} +5 -3
- package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-SHBDXEUE.js} +4 -7
- package/dist/chunks/{chunk-P6TXQK75.js → chunk-THMBDCRA.js} +5 -3
- package/dist/chunks/chunk-TJN4PIYO.js +47 -0
- package/dist/chunks/{chunk-DTCQFTHW.js → chunk-TNFIUZ4H.js} +3 -3
- package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
- package/dist/chunks/{chunk-KXJA42EA.js → chunk-WPBZQVLS.js} +1 -1
- package/dist/chunks/{conflict-GFJRS6I7.js → conflict-AMNTM3FV.js} +2 -2
- package/dist/chunks/{contract-U3ZGNRWB.js → contract-PLO2V2NO.js} +2333 -4426
- package/dist/chunks/{cowork-EX7PKIDK.js → cowork-FZAXE6FO.js} +5 -4
- package/dist/chunks/{create-flow-EJZD434E.js → create-flow-2DAUN7HU.js} +16 -6
- package/dist/chunks/{data-FOODGAMF.js → data-7NXMWET4.js} +3 -3
- package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-DEYHX6M7.js} +4 -4
- package/dist/chunks/{ehr-TE4RFNID.js → ehr-QQH2DYYA.js} +244 -151
- package/dist/chunks/{employee-DR5Y64TI.js → employee-PGMY6NI6.js} +1 -1
- package/dist/chunks/{entry-mode-ZOLSXEGX.js → entry-mode-2JTVEKMP.js} +3 -3
- package/dist/chunks/{env-TID5NFR6.js → env-2JZMXC6I.js} +2 -2
- package/dist/chunks/{esb-7L6MHYLB.js → esb-I5ZFHJUK.js} +8 -8
- package/dist/chunks/{factory-OG7BPMH5.js → factory-XIATYHU6.js} +1 -1
- package/dist/chunks/{fna-6V2ENR3Y.js → fna-3V2TL6B2.js} +5 -4
- package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-CVYUZCOQ.js} +3 -3
- package/dist/chunks/{host-TJ5VVHM7.js → host-4DP7C7YQ.js} +4 -4
- package/dist/chunks/{host-3DLYA54R.js → host-4KQCAEWA.js} +4 -4
- package/dist/chunks/{host-ONZC6AE7.js → host-4X2F3JPQ.js} +4 -4
- package/dist/chunks/{host-OGBHL75G.js → host-BD7NAM33.js} +4 -4
- package/dist/chunks/{host-VTPAWDZV.js → host-CBONEAZS.js} +4 -4
- package/dist/chunks/{host-GOJHHTPY.js → host-L37QVNIV.js} +4 -4
- package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-OL3IKN7C.js} +6 -6
- package/dist/chunks/{im-XCH47ZBN.js → im-YXQWUF3R.js} +4 -4
- package/dist/chunks/{invoice-XQRKMGNY.js → invoice-4WY32PR2.js} +199 -332
- package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-L6SHLONH.js} +5 -4
- package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-OYE6QV24.js} +5 -5
- package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-PZV2KNRU.js} +5 -4
- package/dist/chunks/{meeting-5E3BNARL.js → meeting-6SOBCC6N.js} +16 -15
- package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-KSJSJNOH.js} +4 -4
- package/dist/chunks/{okr-3O3XNYOK.js → okr-B76FW5M2.js} +5 -4
- package/dist/chunks/{operations-EZWG72FH.js → operations-YOMEGFLV.js} +5 -5
- package/dist/chunks/{performance-Y7CPNSOR.js → performance-4VBKUPFO.js} +5 -4
- package/dist/chunks/{plan-BLGPZF5M.js → plan-HBNZRQTI.js} +5 -4
- package/dist/chunks/{project-6MZMLJMP.js → project-IV6FWK74.js} +5 -4
- package/dist/chunks/{reception-F2VT2X52.js → reception-BR5YURT6.js} +3 -3
- package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-4HQ6OGXT.js} +654 -336
- package/dist/chunks/{registry-I4DVPDMU.js → registry-7LICMV5J.js} +12 -12
- package/dist/chunks/{registry-3FYSWV3U.js → registry-JFQEFC7E.js} +3 -3
- package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
- package/dist/chunks/{registry-7RS74TCK.js → registry-MZJQX65Q.js} +5 -5
- package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-43GLLE7Y.js} +4 -4
- package/dist/chunks/{schedule-6AN63MJQ.js → schedule-ZQ42BEW6.js} +4 -4
- package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-QKAEAZGM.js} +3 -3
- package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-6HV7H5PC.js} +10 -7
- package/dist/index.js +34 -34
- package/dist/internal/e10/auth/commands.js +21 -1
- package/dist/internal/e10/auth/xiaoe.js +6 -2
- package/dist/internal/e10/auth-recovery.js +28 -2
- package/dist/internal/e10/request-runtime.js +15 -3
- package/dist/internal/e10/request-trace.js +65 -0
- package/dist/shortcuts/contract/data/metric-catalog.js +149 -0
- package/dist/shortcuts/contract/index.js +14 -39
- package/dist/shortcuts/contract/manifest.js +115 -270
- package/dist/shortcuts/contract/operations/compare-report.js +437 -0
- package/dist/shortcuts/contract/operations/compare.js +2 -0
- package/dist/shortcuts/contract/operations/first-screen.js +96 -207
- package/dist/shortcuts/contract/operations/flow.js +19 -1
- package/dist/shortcuts/contract/operations/{card-ebdf-list.js → ledger-card.js} +98 -25
- package/dist/shortcuts/contract/operations/ledger.js +315 -1
- package/dist/shortcuts/contract/operations/metrics.js +93 -0
- package/dist/shortcuts/contract/operations/modeltext.js +3 -3
- package/dist/shortcuts/contract/operations/page.js +8 -4
- package/dist/shortcuts/contract/operations/performance.js +53 -0
- package/dist/shortcuts/contract/operations/quote-recognize.js +289 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +264 -0
- package/dist/shortcuts/contract/operations/recommend.js +42 -1
- package/dist/shortcuts/contract/operations/registry.js +16 -23
- package/dist/shortcuts/contract/operations/{card-risk-report.js → review-report.js} +24 -114
- package/dist/shortcuts/contract/operations/review.js +33 -167
- package/dist/shortcuts/contract/operations/save-recognize.js +173 -43
- package/dist/shortcuts/contract/operations/triage.js +13 -6
- package/dist/shortcuts/contract/operations/{template.js → type-clause-read.js} +10 -25
- package/dist/shortcuts/contract/operations/upload.js +17 -11
- package/dist/shortcuts/contract/prewarm-cache.js +6 -2
- package/dist/shortcuts/contract/prewarm.js +33 -23
- package/dist/shortcuts/contract/recommend-cache.js +191 -0
- package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +85 -62
- package/dist/shortcuts/ehr/operations/recruit-position.js +21 -13
- package/dist/shortcuts/ehr/operations/recruit-short-cache.js +59 -0
- package/dist/shortcuts/ehr/operations/recruit-tag.js +17 -11
- package/dist/shortcuts/ehr/operations/recruit-write.js +118 -70
- package/dist/shortcuts/ehr/operations/recruit.js +338 -121
- package/dist/shortcuts/hrm/operations/employee.js +64 -17
- package/dist/shortcuts/hrm/operations/resolve.js +419 -369
- package/dist/shortcuts/im/host.js +38 -22
- package/dist/shortcuts/invoice/manifest.js +30 -62
- package/dist/shortcuts/invoice/operations/registry.js +2 -2
- package/dist/shortcuts/invoice/operations/reim-customer.js +111 -0
- package/dist/shortcuts/invoice/operations/shared.js +0 -204
- package/dist/shortcuts/meeting/operations/eb/conflict.js +60 -2
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +116 -7
- package/dist/shortcuts/meeting/operations/eb/create-form-link.js +380 -0
- package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +1 -3
- package/dist/shortcuts/recruit-stage/batch-store.js +44 -0
- package/dist/shortcuts/recruit-stage/context.js +75 -9
- package/dist/shortcuts/recruit-stage/manifest.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -22
- package/dist/shortcuts/recruit-stage/operations/list.js +187 -37
- package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +231 -313
- package/dist/shortcuts/recruit-stage/operations/search.js +5 -5
- package/dist/shortcuts/recruit-stage/operations/tag.js +286 -0
- package/dist/shortcuts/workflow/endpoints.js +2 -0
- package/dist/shortcuts/workflow/operations/form.js +12 -15
- package/dist/shortcuts/workflow/operations/read.js +8 -8
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +3 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +7 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -3
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +33 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +153 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +232 -0
- package/dist/shortcuts/workflow/operations.js +5 -0
- package/docs/agent-invoice.md +1 -1
- package/docs/contract.md +2 -2
- package/docs/e10-auth.md +28 -0
- package/docs/ehr.md +1 -1
- package/docs/invoice.md +0 -2
- package/package.json +1 -1
- package/skill-template/domains/yepiaotong.md +0 -1
- package/skills/weaver-e10-hrm/SKILL.md +3 -3
- package/skills/weaver-e10-hrm/references/employee.md +13 -2
- package/skills/weaver-e10-jinchengda/SKILL.md +237 -347
- package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +7 -14
- package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +21 -12
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +109 -185
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +12 -4
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +28 -20
- package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +12 -17
- package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +7 -13
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +21 -12
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +18 -17
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +114 -61
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +8 -2
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +73 -104
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +32 -37
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +12 -10
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +70 -82
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +37 -33
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +94 -27
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +5 -5
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +9 -15
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +9 -4
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +59 -32
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +7 -5
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +21 -13
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +13 -13
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +6 -5
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +250 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +11 -20
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +203 -54
- package/skills/weaver-e10-jinchengda/references/contract-request-status.md +4 -11
- package/skills/weaver-e10-jinchengda/references/contract-request-write.md +11 -17
- package/skills/weaver-e10-jinchengda/references/contract-signing-subjects.md +11 -17
- package/skills/weaver-e10-jinchengda/references/contract-subject-create.md +5 -11
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +56 -7
- package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
- package/skills/weaver-e10-jinchengda/references/orchestration.md +31 -33
- package/skills/weaver-e10-jucailin/SKILL.md +6 -7
- package/skills/weaver-e10-jucailin/agents/openai.yaml +52 -0
- package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +8 -6
- package/skills/weaver-e10-jucailin/references/recruit-read.md +4 -0
- package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +2 -2
- package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -4
- package/skills/weaver-e10-meeting/SKILL.md +83 -531
- package/skills/weaver-e10-meeting/references/commands-table.md +61 -0
- package/skills/weaver-e10-meeting/references/create-commands.md +136 -0
- package/skills/weaver-e10-meeting/references/create-flow.md +3 -1
- package/skills/weaver-e10-meeting/references/create-guardrails.md +14 -8
- package/skills/weaver-e10-meeting/references/custom-fields.md +40 -0
- package/skills/weaver-e10-meeting/references/eb-contracts.md +60 -0
- package/skills/weaver-e10-meeting/references/invitation.md +69 -0
- package/skills/weaver-e10-meeting/references/minutes-pipeline.md +119 -0
- package/skills/weaver-e10-meeting/references/pitfalls.md +1 -1
- package/skills/weaver-e10-meeting/references/room-recommend.md +88 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +317 -266
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +22 -27
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +30 -27
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +2 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +12 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +23 -19
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +3 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +18 -16
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +25 -23
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +10 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +11 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +150 -85
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +14 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +173 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-taxonomy.json +76 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +3 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
- package/skills/weaver-e10-workflow/SKILL.md +49 -32
- package/skills/weaver-e10-workflow/references/todo-dialogue.md +67 -34
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +65 -51
- package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +18 -11
- package/skills/weaver-e10-workflow/references/workflow-create.md +2 -2
- package/skills/weaver-e10-workflow/references/workflow-memory.md +19 -37
- package/skills/weaver-e10-workflow/references/workflow-query.md +25 -22
- package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +318 -110
- package/skills/weaver-e10-yepiaotong/SKILL.md +16 -9
- package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +9 -7
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +15 -11
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +29 -25
- package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +89 -0
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +35 -37
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +66 -63
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +50 -71
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +34 -95
- package/skills/weaver-e10-yimiaoban/SKILL.md +10 -10
- package/skills/weaver-e10-yimiaoban/references/person.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
- package/dist/chunks/chunk-6QYNE6HE.js +0 -658
- package/dist/chunks/chunk-SHYQUBY3.js +0 -48
- package/dist/shortcuts/contract/operations/card-action.js +0 -1266
- package/dist/shortcuts/contract/operations/card-plan.js +0 -393
- package/dist/shortcuts/contract/operations/card.js +0 -232
- package/dist/shortcuts/contract/operations/compare-screen.js +0 -378
- package/dist/shortcuts/contract/operations/quote-to-contract.js +0 -495
- package/dist/shortcuts/contract/operations/quotescreen.js +0 -529
- package/dist/shortcuts/contract/operations/summary-validate.js +0 -293
- package/dist/shortcuts/contract/operations/summary.js +0 -187
- package/dist/shortcuts/ehr/recruit-stage/batch-store.js +0 -78
- package/dist/shortcuts/ehr/recruit-stage/context.js +0 -231
- package/dist/shortcuts/ehr/recruit-stage/continuation.js +0 -74
- package/dist/shortcuts/ehr/recruit-stage/errors.js +0 -65
- package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +0 -165
- package/dist/shortcuts/ehr/recruit-stage/host.js +0 -109
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +0 -1065
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +0 -295
- package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +0 -961
- package/dist/shortcuts/ehr/recruit-stage/operations/list.js +0 -431
- package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +0 -50
- package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +0 -1655
- package/dist/shortcuts/ehr/recruit-stage/operations/search.js +0 -158
- package/dist/shortcuts/ehr/recruit-stage/operations/types.js +0 -34
- package/dist/shortcuts/ehr/recruit-stage/runtime.js +0 -31
- package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +0 -318
- package/dist/shortcuts/ehr/recruit-stage/shared.js +0 -887
- package/dist/shortcuts/invoice/operations/browse-field.js +0 -17
- package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +0 -22
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +0 -554
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +0 -279
- package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +0 -483
- package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +0 -46
- package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +0 -194
- package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +0 -204
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 企业资信查询(两个入口,按「本轮有没有合同文件」分流)
|
|
2
2
|
|
|
3
3
|
## operation
|
|
4
4
|
|
|
@@ -6,94 +6,147 @@
|
|
|
6
6
|
|---|---|---|---|
|
|
7
7
|
| `contract.credit.page` | 无请求 | `names[]`(1~20 个企业全称) | read |
|
|
8
8
|
|
|
9
|
+
`contract.credit.page` 只做名称校验并返回独立资信页地址 `data.url`,**不返工商数据**。
|
|
10
|
+
|
|
11
|
+
## 入口分流(2026-11-19 定稿,先判来源再选入口)
|
|
12
|
+
|
|
13
|
+
| 分支 | 本轮输入 | 入口 | 写法 |
|
|
14
|
+
|---|---|---|---|
|
|
15
|
+
| **A 有合同** | 用户**上传/指定了合同文件**(拿到 `fileId`)后要查对方资信 | 合同智能页 `tab=Credit` | `<browsertool>` + `toolId: "open_web"`,见下文「A:有合同 → 助手页签」 |
|
|
16
|
+
| **B 直接问** | 用户**只给了企业名称**、本轮没有合同文件 | **资信组件** `ContractCreditDetail`(`/sp/contract/business/credit`) | `<browsertool>` + `toolId: "fill_form"`,见下文「B:直接提问 → 资信组件」 |
|
|
17
|
+
|
|
18
|
+
判据只看**本轮有没有合同文件**,不看企业名是否从合同里抽出来:
|
|
19
|
+
|
|
20
|
+
- 有文件 → 走 A(合同已经在助手页里,资信页签能带上合同上下文)。
|
|
21
|
+
- 无文件 → 走 B(直接开资信组件,**不要**套一层 `ai-contract` 助手页,否则多一次无意义的跳转)。
|
|
22
|
+
- 两者都没有(只说「查一下资信」)→ 先问企业营业执照全称,不猜、不默认主体。
|
|
23
|
+
|
|
24
|
+
> 🔴 **B 分支硬红线(2026-11-19 用户定稿,最高优先级)**:**只有 A 分支允许 `open_web`**。B 分支及其一切变体(直接问企业名、多企业批量、主体来自对话或历史而非本轮合同文件)**必须**用 `fill_form` + `sdkOptions.params.compName=ContractCreditDetail` 组件卡;**无论 `contract.credit.page` 是否返回了 `data.url`,都禁止把该 url 装进 `open_web`**(B 分支此时 `contract.credit.page` 的作用只有两个:校验企业全称、取 `data.names` 填进 `sdkOptions.params.companyName`)。反过来,A 分支也不得改用组件卡。
|
|
25
|
+
>
|
|
26
|
+
> 参数名分工别混:**CLI 入参是 `names`(数组)**,**组件参数是 `sdkOptions.params.companyName`(数组)**;两处都必须是营业执照全称。
|
|
27
|
+
|
|
9
28
|
## 主体名称规则
|
|
10
29
|
|
|
11
30
|
- 必须使用**营业执照全称**;简称查不到。
|
|
12
31
|
- 用户直接给出时,先判断是否像全称(含"有限公司/股份有限公司/集团"等);不像就先问。
|
|
13
32
|
- 从合同文件中抽取的主体,**必须先让用户确认全称**再查。
|
|
14
33
|
- CLI 对少于 4 个字符的名称直接拒绝(`name_not_full`)。
|
|
34
|
+
- 一次可查 1~20 家;多家全称都塞进 `companyName` 数组。
|
|
15
35
|
|
|
16
|
-
##
|
|
17
|
-
|
|
18
|
-
>
|
|
19
|
-
>
|
|
20
|
-
>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
compName: 'ContractCreditDetail',
|
|
36
|
-
companyName: ['企业全称']
|
|
37
|
-
}
|
|
38
|
-
}
|
|
36
|
+
## A:有合同 → 助手页签(`open_web` + `tab=Credit`)
|
|
37
|
+
|
|
38
|
+
> 仅在**本轮有合同文件**时使用。地址与参数表见 [`contract-open-web-pages.md`](contract-open-web-pages.md) §1~§2。
|
|
39
|
+
>
|
|
40
|
+
> 🔴 **A 分支同样受「助手页统一前置」约束(2026-11-19 用户定稿)**:查资信不是"只要看企业背景就能省掉识别"的例外。开 `tab=Credit` 之前必须完成 **合同类型识别(`contract.triage.extract` 取 `flowKey`)→ 要素提取(填 `ai_fill.json` 的 `elements`)→ 取流程参数(`workflowId`、`workflowFileId`)→ `contract flow save-recognize-record` 取 `aiExtraId`**;地址上 **`flowId`(= `workflowId`,同值同时出现)必带,`aiExtraId` 在识别记录保存成功时必带**,**不带 `fieldId`**(附件字段由系统按 `workflowId` 定位,2026-11-19)。**识别记录保存失败不阻断**:取不到 `aiExtraId` 时照常开 `tab=Credit`(url 不带 `aiExtraId`),并说明原因与影响;不得编造 `aiExtraId`、不得用 `fileId` 顶替。
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
<browsertool>
|
|
44
|
+
{
|
|
45
|
+
"version": "1.0",
|
|
46
|
+
"callId": "contract_open_web",
|
|
47
|
+
"toolId": "open_web",
|
|
48
|
+
"arguments": {
|
|
49
|
+
"url": "{baseUrl}/sp/contract/business/ai-contract?aiid=1256652614210789601&flowId={flowId}&workflowId={workflowId}&authModule=workflow&mode=edit&module=WEA_FORM&contractTermIds=&files[0][id]={fileId}&files[0][name]={encodeURIComponent(fileName)}&spfiles[0][fileid]={fileId}&spfiles[0][name]={encodeURIComponent(fileName)}&aiExtraId={aiExtraId}&tab=Credit",
|
|
50
|
+
"title": "查对方资信",
|
|
51
|
+
"width": 1300,
|
|
52
|
+
"openIn": "browser",
|
|
53
|
+
"activate": true,
|
|
54
|
+
"autoOpen": true
|
|
39
55
|
}
|
|
40
|
-
}
|
|
56
|
+
}
|
|
57
|
+
</browsertool>
|
|
41
58
|
```
|
|
42
59
|
|
|
43
|
-
|
|
60
|
+
- 必须带 `width: 1300` 与 `openIn: "browser"`。
|
|
61
|
+
- **不得**写 `type` / `src` / `sdkOptions` / `params_pc` / `params.companyName`(这些是组件分支的字段,混入即结构错误)。
|
|
62
|
+
- 动态值 `encodeURIComponent` 一次;结构字符 `?`/`&`/`=`/`[`/`]` 保持字面,禁止整体编码。
|
|
44
63
|
|
|
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]` 这种查询参数**;多家企业就放多个元素 |
|
|
64
|
+
### URL 规则(`tab=Credit`)
|
|
53
65
|
|
|
54
|
-
|
|
66
|
+
统一地址结构(换行仅为可读,实际单行):
|
|
55
67
|
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
- 禁止漏写 `params.compName`。
|
|
60
|
-
- **必须**用当前环境 baseUrl 拼 `src`,**禁止**硬编码固定域名(如 `baseUrl`)。
|
|
68
|
+
```text
|
|
69
|
+
{baseUrl}/sp/contract/business/ai-contract?aiid=1256652614210789601&flowId={flowId}&workflowId={workflowId}&authModule=workflow&mode=edit&module=WEA_FORM&contractTermIds=&files[0][id]={fileId}&files[0][name]={encodeURIComponent(fileName)}&spfiles[0][fileid]={fileId}&spfiles[0][name]={encodeURIComponent(fileName)}&aiExtraId={aiExtraId}&tab=Credit
|
|
70
|
+
```
|
|
61
71
|
|
|
62
|
-
|
|
72
|
+
- `aiid` 固定 `1256652614210789601`,`tab` 固定 `Credit`。
|
|
73
|
+
- **`flowId` / `workflowId`(同值且同时出现)/ `fileId` / `fileName` 必带(**URL 不带 `fieldId`**,附件字段由系统按 `workflowId` 定位),不允许"无则省略"(2026-11-19)**;`aiExtraId` 取自本轮 `contract flow save-recognize-record` 的 `data.aiExtraId`,**保存成功时必带、失败时省略并说明原因**;**`formId` 不上传**(2026-11-18)。
|
|
74
|
+
- 企业名称在本分支由用户在页面内输入,不要拼成 `name[0]=` 形式。
|
|
75
|
+
- 禁止对整个 URL 二次编码。
|
|
76
|
+
|
|
77
|
+
## B:直接提问 → 资信组件(`ContractCreditDetail`)
|
|
78
|
+
|
|
79
|
+
> 仅在**本轮没有合同文件、用户直接问某企业资信**时使用。组件与参数结构取自 CLI 生成器(`src/shortcuts/contract/operations/card-action.ts` 的 credit 动作),照抄,不要自创字段。
|
|
80
|
+
|
|
81
|
+
固定值:`toolId=fill_form`、`arguments.type=e10`、`arguments.width=1300`、`sdkRenderType=inline`、`sdkOptions.compName=ui.CorsComponent`、`routerType=MemoryRouter`、页面 `src` 与 `routerProps_pc.initialEntries` 同为 `/sp/contract/business/credit`。
|
|
82
|
+
|
|
83
|
+
每次要变:
|
|
84
|
+
|
|
85
|
+
| 字段 | 取值 |
|
|
86
|
+
|---|---|
|
|
87
|
+
| `callId` | `contract-credit-<YYYYMMDDHHmm>-<序号>`,每轮唯一 |
|
|
88
|
+
| `arguments.title` | `资信查询 · <企业全称>`(多家写「等 N 家」) |
|
|
89
|
+
| `arguments.src` | `<baseUrl>/sp/contract/business/credit` |
|
|
90
|
+
| `sdkOptions.params.app` | `@weapp/contract`(固定) |
|
|
91
|
+
| `sdkOptions.params.compName` | `ContractCreditDetail`(固定,**不是** `CreditPage` 之类猜测名) |
|
|
92
|
+
| `sdkOptions.params.companyName` | 企业**营业执照全称**数组,如 `["泛微网络科技股份有限公司"]` |
|
|
93
|
+
|
|
94
|
+
```browsertool
|
|
95
|
+
{
|
|
96
|
+
"version": 1,
|
|
97
|
+
"callId": "contract-credit-202611191005-01",
|
|
98
|
+
"toolId": "fill_form",
|
|
99
|
+
"arguments": {
|
|
100
|
+
"type": "e10",
|
|
101
|
+
"title": "资信查询 · 泛微网络科技股份有限公司",
|
|
102
|
+
"src": "<baseUrl>/sp/contract/business/credit",
|
|
103
|
+
"width": 1300,
|
|
104
|
+
"sdkRenderType": "inline",
|
|
105
|
+
"sdkOptions": {
|
|
106
|
+
"compName": "ui.CorsComponent",
|
|
107
|
+
"routerType": "MemoryRouter",
|
|
108
|
+
"routerProps_pc": {
|
|
109
|
+
"initialEntries": ["/sp/contract/business/credit"]
|
|
110
|
+
},
|
|
111
|
+
"params": {
|
|
112
|
+
"app": "@weapp/contract",
|
|
113
|
+
"compName": "ContractCreditDetail",
|
|
114
|
+
"companyName": ["泛微网络科技股份有限公司"]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
```
|
|
63
120
|
|
|
64
|
-
|
|
121
|
+
> 上面围栏只是为了把结构显示清楚。实际回复必须让 `<browsertool>` 顶格裸输出:不加围栏、不做 HTML 转义、标签外不再重复一遍卡片字段;**一轮只输出一个** `<browsertool>`。
|
|
65
122
|
|
|
66
|
-
|
|
67
|
-
{baseUrl}/sp/contract/business/credit?name[0]={encodeURIComponent(名称1)}&name[1]={encodeURIComponent(名称2)}
|
|
68
|
-
```
|
|
123
|
+
分支 B 的硬约束:
|
|
69
124
|
|
|
70
|
-
- `
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
125
|
+
- `companyName` 放 `sdkOptions.params`(与 CLI 生成器一致),**不要**放 `params_pc`、`arguments` 顶层或 `customParams`。
|
|
126
|
+
- `companyName` 是**数组**,不是字符串;名称内的单引号会被宿主截断,必须先剔除。
|
|
127
|
+
- `src` 与 `initialEntries` 必须同值,都写 `/sp/contract/business/credit`(本分支**不带** `?name[0]=` 查询串,企业名走参数)。
|
|
128
|
+
- `baseUrl` 取当前 E10 会话域名,不在技能里写死。
|
|
74
129
|
|
|
75
130
|
## 处理链
|
|
76
131
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
132
|
+
0. **A 分支前置(2026-11-19 强制)**:本轮有合同文件时,先 `contract.triage.extract` 判合同类型 → 填 `ai_fill.json` 的 `elements` 做要素提取 → `contract.firstscreen.run`(或 `contract.flow.launch`)取 `workflowId` 与文件 ID(`firstscreen.run` → `workflowFileId`,`flow.launch` → `file.fileId`) → `contract flow save-recognize-record` 取 `aiExtraId`。**进入第 4 步拼地址的条件是 `workflowId` 与非空文件 ID 已拿到**;识别记录保存失败(取不到 `aiExtraId`)**不阻断**——照常拼地址开页(省略 `aiExtraId`)并在输出说明原因。
|
|
133
|
+
1. 判来源:本轮有合同文件 → A;没有文件、只给企业名 → B;什么都没给 → 先问全称。
|
|
134
|
+
2. 确认主体全称(不足 4 字会被 CLI 拒绝,`name_not_full`)。
|
|
135
|
+
3. 跑 `contract.credit.page` 校验名称并取参(`data.names` / `data.url` / `data.page`)。
|
|
136
|
+
4. 按分支选入口:A 拼 `tab=Credit` 用 `open_web`(带 `flowId` + `workflowId` + `aiExtraId`);B 用 `data.names` 填 `companyName` 出 `ContractCreditDetail` 组件卡。
|
|
137
|
+
5. 页面内查询与查看由用户操作;Agent 不代查、不编造资信数据。
|
|
80
138
|
|
|
81
139
|
## 调用示例
|
|
82
140
|
|
|
83
|
-
Windows PowerShell
|
|
141
|
+
Windows PowerShell(先写 UTF-8 JSON 文件再 `--input <path>`;禁止在单引号里内联未转义 JSON;(macOS/Linux 把「写文件 + `--input`」换成 `--input-json '<json>'` 内联即可)):
|
|
84
142
|
|
|
85
143
|
```powershell
|
|
86
|
-
weaver-work-cli --json contract run contract.credit.page --input-
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
macOS/Linux(bash/zsh):
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
weaver-work-cli --json contract run contract.credit.page --input-json '{"names":["测试科技有限公司"]}'
|
|
144
|
+
'{"names":["测试科技有限公司"]}' | & "$env:APPDATA\npm\weaver-work-cli.cmd" --json contract run contract.credit.page --input -
|
|
93
145
|
```
|
|
94
146
|
|
|
95
147
|
## 边界
|
|
96
148
|
|
|
97
149
|
- 不返回工商数据本身,也不做企业变更、企业监控。
|
|
98
|
-
- 用户问"这家公司有没有诉讼/被执行/股权结构"
|
|
150
|
+
- 用户问"这家公司有没有诉讼/被执行/股权结构"时,按上面分流开页面,说明数据需在页面内查看,不编造诉讼/被执行信息。
|
|
99
151
|
- `contract.credit.query` / `contract.credit.change` / `contract.credit.monitor` 在 `withheldOperations` 中,源资料缺少接口契约,**不要尝试用其它接口替代**。
|
|
152
|
+
- 组件分支**只用于直接提问**;有合同文件时必须走助手页签,不要反过来把 A 写成组件。
|
|
@@ -4,11 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
| 能力 | 源资料状态 | 处理方式 |
|
|
6
6
|
|---|---|---|
|
|
7
|
-
| `contract.credit.query`(相对方工商资信**数据**查询) |
|
|
7
|
+
| `contract.credit.query`(相对方工商资信**数据**查询) | 源资料**已不随本技能包分发**;既有记录只描述「确认主体全称 → 拼资信页地址 → 打开页面」,没有任何工商数据接口的路径、方法、参数与响应结构 | 已提供页面入口 `contract.credit.page`;用户要数据明细时,说明需在打开的资信页内查看,或请用户补齐接口文档 |
|
|
8
8
|
| `contract.credit.change`(企业变更查询) | 同上,接口文档缺失 | 同上 |
|
|
9
9
|
| `contract.credit.monitor`(企业监控开启/修改) | 同上;且属于写操作,缺少确认与回查契约 | 同上;不得在未拿到契约前实现写操作 |
|
|
10
10
|
| `contract.workflow.withdraw`(撤回/退回流程) | 源资料只提到"除非调用撤回/退回接口",未给出路径、方法和参数 | 告知用户当前不可用;如需撤回请到 E10 前台操作 |
|
|
11
11
|
|
|
12
|
+
## 已下线 / 不在本 CLI 范围
|
|
13
|
+
|
|
14
|
+
| 能力 | 状态 | 处理方式 |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| 合同模板库(tplinfo)**配置**:新建 / 修改分类、上传模板、书签↔字段映射、绑定表单 / 流程、套用开关 | 曾由 `contract.template.tree/list/detail` 承担,这三个 operation 已于 **2026-11-19 从 CLI 移除**;文档里曾指向的 `weaver-e10-contract-tools` 的 `tpl` 模块**并不存在**(仓库 31 个技能包中无此技能,`src/shortcuts` 也无对应模块) | 如实说明「本 CLI 不提供模板库配置能力」;可提供的是范文查询(`contract.modeltext.list`)与范文推荐(`contract.recommend.doc`)。⛔ 不要指向不存在的技能包,也不要编造 `contract.tpl.*` 命令 |
|
|
17
|
+
|
|
12
18
|
## 已知的源资料状态冲突
|
|
13
19
|
|
|
14
20
|
- `SKILL.md` 能力清单把 CM-005 ~ CM-015 多数标注为"可用",但 `feature-map.json` 的 `not_released` 里写着 CM-005 ~ CM-015 未完成,且 `features` 只列出 CM-001、CM-002、CM-004、CM-018、CM-043、CM-044、CM-045。
|
|
@@ -20,7 +26,7 @@
|
|
|
20
26
|
- 12 类合同审批流程(销售、采购、协议、变更、解除、关闭、开票、收款、付款、履约计划、进度提报、供应商准入)共用同一组接口;流程差异体现在运行时解析出的 `workflowId` 与表单字段,而不是不同的接口路径。
|
|
21
27
|
- 企业资信与合同审批是两条互不相干的链:不要把"查一下某公司资信"路由到 `contract.request.*`;资信能力目前只有页面入口 `contract.credit.page`。
|
|
22
28
|
- 合同审查、文档比对、模板推荐同样是**独立链**:它们不上流程,不要串到 `contract.request.*`。
|
|
23
|
-
- 合同审查报告 /
|
|
29
|
+
- 合同审查报告 / 比对报告的 **HTML 产物由 CLI 生成**(`contract.review.report` / `contract.compare.report`,`out` 必填),Agent 不手写报告,只负责交付(`present_files` 登记产物 + `open_web` 打开 `file:///`);仅当用户要 Markdown / Office 等其它格式时,才由 Agent 基于 `contract.review.export` / `contract.compare.diff` 的结构化结果在工作区转换。
|
|
24
30
|
- 提交审批后流程不可撤回(撤回接口未实现),执行前必须让用户清楚这一点。
|
|
25
31
|
|
|
26
32
|
## 注意
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
| `contract.compare.search` | POST | `/api/doc/documents/list` | `keyword`、`pageNo`、`pageSize` | read |
|
|
9
9
|
| `contract.compare.versions` | POST | `/api/file/base/upload/findVersionList` | `fileId`、`docId?`、`pageNo` | read |
|
|
10
10
|
| `contract.compare.page` | — | 无请求,直接拼页面地址 | `baseFileId`/`baseFileName`/`compareFileId`/`compareFileName` | read |
|
|
11
|
-
| `contract.compare.diff` | POST | `/api/ebd/contract/ai/getCompareRes` | `baseFileId`、`compareFileId` | read |
|
|
11
|
+
| `contract.compare.diff` | POST | `/api/ebd/contract/ai/getCompareRes` | `baseFileId`、`compareFileId` | read(**仅用户明确要差异数据/报告时才调**,默认比对流程不调) |
|
|
12
12
|
|
|
13
13
|
上传 `module` 固定 `docCompared`(**不能**用 `ebContract` 或 `workflow`)。
|
|
14
14
|
|
|
@@ -18,90 +18,58 @@
|
|
|
18
18
|
- **B 检索系统内文件**:`contract.compare.search` 按名称检索。返回的 `documents[].id` 是**文档 ID,不是 fileId**,不能直接填进比对页;需再取文件信息或让用户确认。
|
|
19
19
|
- **C 历史版本**:`contract.compare.versions` 取某文件的版本列表(`pageSize` 固定 100),选一个版本作为另一方。
|
|
20
20
|
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
1. 先确定 baseFile,再提示用户给 compareFile,两个都齐了才打开比对页。
|
|
24
|
-
2. 打开比对页**必须用 `AIDocCompare` 组件**(见下节),**不是**把 URL 当普通网页直开。
|
|
25
|
-
3. 用户明确说"导出/生成比对报告/把差异结果给我"时,才调 `contract.compare.diff`。
|
|
26
|
-
4. **比对完成后,推荐卡片必须包含「生成比对报告」**(动作 `export-compare-report`,前提 `compared=true`)。
|
|
27
|
-
用户即使没主动要报告,比对完也要把入口放进卡片——这是动作引擎 §6「比对完必给报告入口」的强制要求。
|
|
28
|
-
报告本体由 `contract.comparescreen.run` 在进程内按规范渲染并注入卡片,**不落本地文件、不 `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
|
-
```
|
|
21
|
+
## 处理链(2026-11-18 用户定稿:比对 = 上传 + 直接开页)
|
|
57
22
|
|
|
58
|
-
|
|
23
|
+
> 🔴 **默认闭环只有两步**:拿到两个 `fileId` → `open_web` 打开 `doc-compare` 页。**不调 `contract.compare.diff`、不拉差异结果、不在对话里报相似度与差异条数**——比对动作与差异渲染全部交给页面自身完成。
|
|
59
24
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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(唯一口径见 SKILL.md「卡片 width 速查表」) |
|
|
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` | 固定 |
|
|
25
|
+
1. 先确定 baseFile,再确定 compareFile;两个都齐了**直接打开比对页**。
|
|
26
|
+
2. 本地文件走 `contract.compare.upload`(`module=docCompared`),只取 `files[]` 的 `fileId` + `name`,不关心差异。
|
|
27
|
+
3. 打开比对页用 `contract.compare.page` 取地址 + `open_web` 直开(见下节),**不再挂 `AIDocCompare` 组件**。
|
|
28
|
+
4. **`contract.compare.diff` 只在用户明确要「差异清单 / 比对数据 / 导出报告」时才调**;用户只说「比对一下 / 看看两版差异」一律不调——页面会渲染。
|
|
29
|
+
5. 报告入口在比对页内操作(2026-11-17 更新:不再出「生成比对报告」动作卡片);报告本体由 `contract.comparescreen.run` 按规范渲染 HTML,落盘后用 `open_web` 打开 `file:///`。
|
|
79
30
|
|
|
80
|
-
|
|
81
|
-
> 2026-11-06 之前本项目就是这么填的,表现为卡片点击无反应。
|
|
31
|
+
**收口话术**:只说「已打开比对页,两版差异在页面中逐处标出」,不报相似度百分比、不报差异条数、不列差异条目(这些数字都来自已停用的预调差异)。
|
|
82
32
|
|
|
83
|
-
|
|
33
|
+
## 打开比对页:`open_web` 直开 `doc-compare` 页(2026-11-17 定稿)
|
|
84
34
|
|
|
85
|
-
|
|
86
|
-
- 禁止把 `baseFile` / `compareFile` 写成 `baseFileId=xxx` 形式的查询参数。
|
|
87
|
-
- 禁止漏写 `params.compName`(只写 `sdkOptions.compName` 不够)。
|
|
35
|
+
> 🔴 比对页是**独立页面**,不在合同智能页 `tab` 列表内,因此仍用 `open_web` 打开 `doc-compare` 地址。原 `AIDocCompare` / `e10Sdk` / `rightPanel.open` 组件方式全部作废。
|
|
88
36
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
37
|
+
**标准输出**:
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
<browsertool>
|
|
41
|
+
{
|
|
42
|
+
"version": "1.0",
|
|
43
|
+
"callId": "contract_open_web",
|
|
44
|
+
"toolId": "open_web",
|
|
45
|
+
"arguments": {
|
|
46
|
+
"url": "{baseUrl}/sp/contract/business/doc-compare?baseFileId={baseFileId}&baseFileName={encodeURIComponent(baseFileName)}&compareFileId={compareFileId}&compareFileName={encodeURIComponent(compareFileName)}",
|
|
47
|
+
"title": "文档比对",
|
|
48
|
+
"width": 1300,
|
|
49
|
+
"openIn": "browser",
|
|
50
|
+
"activate": true,
|
|
51
|
+
"autoOpen": true
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
</browsertool>
|
|
55
|
+
```
|
|
92
56
|
|
|
93
|
-
|
|
57
|
+
- 必须带 `width: 1300` 与 `openIn: "browser"`。
|
|
58
|
+
- **不得**写 `type` / `src` / `sdkOptions` / `params_pc` / `params.baseFile`(旧组件字段)。
|
|
59
|
+
- `url` 优先直接取 `contract.compare.page` 的返回;`baseFileName` / `compareFileName` 用 `encodeURIComponent`。
|
|
60
|
+
|
|
61
|
+
## URL 规则(`open_web` 打开比对页)
|
|
94
62
|
|
|
95
63
|
```text
|
|
96
64
|
{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
|
|
97
65
|
```
|
|
98
66
|
|
|
99
|
-
`
|
|
67
|
+
- `baseFileName` / `compareFileName` 用 `encodeURIComponent` 一次;结构字符与 `options[...]` 保持字面。
|
|
68
|
+
- `options` 固定默认值(用户未特别说明不要改):忽略图片 0、忽略空格 1、忽略页眉页脚 0、忽略标点 1、全半角 0、繁简 0、特殊符号 0、忽略批注 1、忽略水印 1、忽略印章 1。
|
|
100
69
|
|
|
101
|
-
|
|
102
|
-
- ⚠️ 该地址**只作外链使用**,面板内展示必须走上节组件。
|
|
70
|
+
## 差异结果(仅按需调用,默认不调)
|
|
103
71
|
|
|
104
|
-
|
|
72
|
+
> ⚠️ **默认链路上没有任何动作需要它**:本接口返回整本书级差异坐标与页面图片索引,数据量大、耗时长(实测 101 s)。只在用户明确索取差异数据或要求生成/导出报告时才执行,**不得**为「先看看差异有多大」而预调。
|
|
105
73
|
|
|
106
74
|
`contract.compare.diff` 请求体两个字段都是**单个字符串**(不是数组):
|
|
107
75
|
|
|
@@ -115,18 +83,27 @@ plugin.rightPanel.open({
|
|
|
115
83
|
|
|
116
84
|
返回 `data.result`(`getCompareRes` 原始响应)。CLI 只返回结构化数据;报告一律由 `contract.comparescreen.run` 按规范渲染,不要让模型手写报告、也不要伪造差异。
|
|
117
85
|
|
|
118
|
-
##
|
|
86
|
+
## `contract.comparescreen.run`(⛔ 默认比对不要用,2026-11-18 修订)
|
|
87
|
+
|
|
88
|
+
> 🔴 **该命令内部固定调用 `contract.compare.diff`**(`src/shortcuts/contract/operations/compare-screen.ts` 第 309 行 `await callOperation('contract.compare.diff', ...)`),即「上传 + 全量比对 + 渲染报告」三合一。因此:
|
|
89
|
+
>
|
|
90
|
+
> | 用户诉求 | 正确走法 |
|
|
91
|
+
> |---|---|
|
|
92
|
+
> | 「比对一下这两份合同」「看看两版差异」 | **`compare.upload` → `compare.page` → `open_web`**;⛔ **不要用本命令** |
|
|
93
|
+
> | 「导出比对报告」「把差异数据给我」「差了多少处」 | 才可用本命令(它自带差异与报告渲染) |
|
|
94
|
+
>
|
|
95
|
+
> **2026-11-18 实测教训**:把本命令用于普通比对时会白跑一次全量差异(实测 101 s),且可能返回 `compare_failed`——接口 `code: 200` / `msg: "接口返回成功"` / `status: true` / `compareStatus: "true"` 却因结果解析判失败,报错信息自相矛盾。此时**不要重试、不要转而调 diff 复查**,直接改走 `compare.upload` → `compare.page` → `open_web`。
|
|
119
96
|
|
|
120
|
-
|
|
97
|
+
参数与返回(仅在需要差异数据/报告时使用):
|
|
121
98
|
|
|
122
99
|
```powershell
|
|
123
100
|
# 本地两版文件(基准在前,比对在后)
|
|
124
101
|
'{"files":["<工作目录>\\原版.docx","<工作目录>\\修订版.docx"]}' | Out-File -FilePath '<临时目录>\\cmp.json' -Encoding utf8
|
|
125
|
-
weaver-work-cli --json contract run contract.comparescreen.run --input '<临时目录>\\cmp.json'
|
|
102
|
+
& "<临时目录>\weaver-work-cli.cmd" --json contract run contract.comparescreen.run --input '<临时目录>\\cmp.json'
|
|
126
103
|
|
|
127
104
|
# 已上传过两个 fileId(module=docCompared)时
|
|
128
105
|
'{"baseFileId":"9000","compareFileId":"9001"}' | Out-File -FilePath '<临时目录>\\cmp.json' -Encoding utf8
|
|
129
|
-
weaver-work-cli --json contract run contract.comparescreen.run --input '<临时目录>\\cmp.json'
|
|
106
|
+
& "<临时目录>\weaver-work-cli.cmd" --json contract run contract.comparescreen.run --input '<临时目录>\\cmp.json'
|
|
130
107
|
```
|
|
131
108
|
|
|
132
109
|
| 入参 | 必填 | 说明 |
|
|
@@ -141,46 +118,37 @@ weaver-work-cli --json contract run contract.comparescreen.run --input '<临时
|
|
|
141
118
|
|
|
142
119
|
- `stats`:`total` / `insert` / `delete` / `change` / `percentage` / `serviceTime`
|
|
143
120
|
- `changes`:精简差异(`type`、`zone`、`clause`、`page`、`base`、`compare`),不含图片坐标
|
|
144
|
-
- `browsertool
|
|
145
|
-
- `selfCheckPassed
|
|
121
|
+
- `browsertool`:⚠️ **已停用**(2026-11-17),不得作为卡片输出;改用 §「打开比对页」的 `open_web` 结构
|
|
122
|
+
- `selfCheckPassed`:⚠️ 随卡片一并停用,不再作为交付判据
|
|
146
123
|
|
|
147
|
-
|
|
124
|
+
**交付要求**:用 `open_web` 打开比对页地址(`toolId: "open_web"` + `openIn: "browser"`);报告如需交付,渲染 HTML 后落盘并用 `open_web` 打开 `file:///` 路径。**普通比对不执行本命令**(见上文对照表),到 `compare.page` + `open_web` 即收口。
|
|
148
125
|
|
|
149
|
-
##
|
|
126
|
+
## 生成比对报告(仅用户明确要求时)
|
|
150
127
|
|
|
151
|
-
|
|
128
|
+
> ⚠️ 报告是**按需产物**,不是比对的默认步骤。普通「比对一下」到「打开比对页」即收口。
|
|
152
129
|
|
|
153
|
-
|
|
154
|
-
样式骨架见 [`contract-compare-report-template.html`](contract-compare-report-template.html)。此处只列要点:
|
|
130
|
+
用户明确要报告时:`contract.compare.diff` 取差异 → 按 [`contract-compare-report.md`](contract-compare-report.md) 渲染 HTML → 落产物目录后用 `open_web` 打开 `file:///` 绝对路径(或按用户明确要求 `present_files` 登记)。
|
|
155
131
|
|
|
156
|
-
|
|
157
|
-
|---|---|
|
|
158
|
-
| 结构 | **两部分**:① 比对信息(比对双方 / 差异统计 / 差异详情)② 按章节条款展示差异点 |
|
|
159
|
-
| 第二部分 | **默认展开**(`<details open>`),点击展开 |
|
|
160
|
-
| 统计口径 | 按接口 `type` 逐条计数:`insert` / `delete` / `change`,合计 = `changes.length` |
|
|
161
|
-
| 章节归属 | **正文章标题不带「第X章」**,编号仅在目录;按段落位置判定,勿误挂到目录最后一章 |
|
|
162
|
-
| 渲染 | `rightPanel.open({type:'artifact'})` + `raw.html` 直传,**不要** `sendQuestion` |
|
|
163
|
-
| 交付 | **只走面板**:面板右上角自带下载;**不落 `.html`、不 `present_files`** |
|
|
132
|
+
**不再出动作卡片、不再注入 `artifact`、不再用 `rightPanel.open`。**
|
|
164
133
|
|
|
165
134
|
## 调用示例
|
|
166
135
|
|
|
167
|
-
Windows PowerShell
|
|
136
|
+
Windows PowerShell(macOS/Linux 把「写文件 + `--input`」换成 `--input-json '<json>'` 内联即可):
|
|
168
137
|
|
|
169
138
|
```powershell
|
|
170
|
-
|
|
171
|
-
weaver-work-cli --json contract run contract.compare.
|
|
172
|
-
|
|
173
|
-
weaver-work-cli --json contract run contract.compare.
|
|
174
|
-
|
|
139
|
+
'{"paths":["<工作目录>\原版.docx","<工作目录>\修订版.docx"]}' | Out-File -FilePath '<临时目录>\args.json' -Encoding utf8
|
|
140
|
+
& "<临时目录>\weaver-work-cli.cmd" --json contract run contract.compare.upload --input <临时目录>\args.json
|
|
141
|
+
'{"keyword":"销售合同","pageNo":1,"pageSize":20}' | Out-File -FilePath '<临时目录>\args.json' -Encoding utf8
|
|
142
|
+
& "<临时目录>\weaver-work-cli.cmd" --json contract run contract.compare.search --input <临时目录>\args.json
|
|
143
|
+
'{"fileId":"9001"}' | Out-File -FilePath '<临时目录>\args.json' -Encoding utf8
|
|
144
|
+
& "<临时目录>\weaver-work-cli.cmd" --json contract run contract.compare.versions --input <临时目录>\args.json
|
|
145
|
+
# 默认比对到这里就收口:取返回地址用 open_web 打开,不再调差异接口
|
|
146
|
+
'{"baseFileId":"9000","baseFileName":"原版.docx","compareFileId":"9001","compareFileName":"修订版.docx"}' | Out-File -FilePath '<临时目录>\args.json' -Encoding utf8
|
|
147
|
+
& "<临时目录>\weaver-work-cli.cmd" --json contract run contract.compare.page --input <临时目录>\args.json
|
|
148
|
+
# 仅当用户明确要差异数据/比对报告时才执行下一行(默认不调)
|
|
149
|
+
'{"baseFileId":"9000","compareFileId":"9001"}' | Out-File -FilePath '<临时目录>\args.json' -Encoding utf8
|
|
150
|
+
& "<临时目录>\weaver-work-cli.cmd" --json contract run contract.compare.diff --input <临时目录>\args.json
|
|
175
151
|
```
|
|
176
|
-
|
|
177
|
-
macOS/Linux(bash/zsh):
|
|
178
|
-
|
|
179
|
-
```bash
|
|
180
|
-
weaver-work-cli --json contract run contract.compare.upload --input-json '{"paths":["/data/contracts/原版.docx","/data/contracts/修订版.docx"]}'
|
|
181
|
-
weaver-work-cli --json contract run contract.compare.page --input-json '{"baseFileId":"9000","baseFileName":"原版.docx","compareFileId":"9001","compareFileName":"修订版.docx"}'
|
|
182
|
-
```
|
|
183
|
-
|
|
184
152
|
## 错误处理
|
|
185
153
|
|
|
186
154
|
| 现象 | 处理 |
|
|
@@ -189,4 +157,5 @@ weaver-work-cli --json contract run contract.compare.page --input-json '{"baseFi
|
|
|
189
157
|
| `upload_no_fileid` | 上传未完成,不要打开比对页 |
|
|
190
158
|
| 检索命中多条 | **必须**展示候选(名称 + 目录 + 更新时间)请用户选,禁止自动取第一条 |
|
|
191
159
|
| 把文档 ID 当 fileId | 比对页会打不开;回到途径 B 重新确认 `fileId` |
|
|
160
|
+
| `compare_failed`(提示「接口返回成功」却判失败) | `comparescreen.run` 内部拉差异的解析失败;**不重试、不补调 diff 复查**,改走 `compare.upload` → `compare.page` → `open_web` |
|
|
192
161
|
| `session_expired` | 停止并按共享规则重新登录 |
|