weaver-work-cli 0.1.62 → 0.1.64
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-WUZKAEZ6.js} +5 -4
- package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-PN46RTI2.js} +5 -4
- package/dist/chunks/{asset-HYH4W357.js → asset-ZPC5VWZM.js} +5 -4
- package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-DHGP3NYY.js} +5 -4
- package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-JQDW3BIB.js} +3 -3
- package/dist/chunks/{blog-SLMZZICV.js → blog-JC47AIXK.js} +5 -4
- package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-IKIHM77A.js} +5 -5
- package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-GZTSJ57Y.js} +5 -4
- package/dist/chunks/{chunk-H6YOMI3U.js → chunk-26FCCU5O.js} +5 -3
- package/dist/chunks/{chunk-E5YD5JWR.js → chunk-3PCXBG4H.js} +1 -1
- package/dist/chunks/{chunk-UBRWONP4.js → chunk-3W5NMGDS.js} +2 -2
- package/dist/chunks/{chunk-DTCQFTHW.js → chunk-4AFWOGOV.js} +3 -3
- package/dist/chunks/{chunk-VNYOUAWV.js → chunk-5QQKLR6H.js} +11 -11
- package/dist/chunks/{chunk-BQYX2UX5.js → chunk-6T5X6YWX.js} +5 -3
- package/dist/chunks/{chunk-KXJA42EA.js → chunk-AFZTMYGC.js} +1 -1
- package/dist/chunks/{chunk-YI2YMW5N.js → chunk-AGSO3PIK.js} +2 -2
- package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
- package/dist/chunks/{chunk-WIWDVETN.js → chunk-FDBAFANU.js} +76 -76
- package/dist/chunks/{chunk-NRYDJN4J.js → chunk-FJUOUSV3.js} +89 -8
- package/dist/chunks/{chunk-EGANE35F.js → chunk-HLT6B26P.js} +1 -1
- package/dist/chunks/{chunk-P6TXQK75.js → chunk-HWA2A25Y.js} +5 -3
- package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-I3MOFD6Q.js} +4 -7
- package/dist/chunks/chunk-IN6NXQ26.js +680 -0
- package/dist/chunks/{chunk-UBGWIXU3.js → chunk-INVYKG4I.js} +140 -45
- package/dist/chunks/{chunk-QBDXJS2W.js → chunk-K7QKQRSL.js} +168 -62
- package/dist/chunks/{chunk-BIA2NKUG.js → chunk-KDFEHDIB.js} +5 -5
- package/dist/chunks/{chunk-ILALC2N6.js → chunk-KYDXWYFB.js} +1 -1
- package/dist/chunks/{chunk-V2LASYKO.js → chunk-Q6D6PSMH.js} +30 -24
- package/dist/chunks/{chunk-UQFPF4EX.js → chunk-RMOH2GMF.js} +2 -2
- package/dist/chunks/{chunk-VBFBMM7G.js → chunk-SCMHG23G.js} +387 -70
- package/dist/chunks/chunk-TJN4PIYO.js +47 -0
- package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
- package/dist/chunks/{chunk-KY3R42RS.js → chunk-VLY5RTVO.js} +5 -3
- package/dist/chunks/{chunk-TEZHIB6T.js → chunk-WSHIOSGM.js} +5 -3
- package/dist/chunks/{chunk-6XSSAUNW.js → chunk-XHSEK2VM.js} +48 -12
- package/dist/chunks/{chunk-XT77MP54.js → chunk-YTFNMQO4.js} +410 -24
- package/dist/chunks/{conflict-GFJRS6I7.js → conflict-UUC7AFUI.js} +2 -2
- package/dist/chunks/{contract-U3ZGNRWB.js → contract-INMS7SYQ.js} +3051 -4497
- package/dist/chunks/{cowork-EX7PKIDK.js → cowork-34CBYVQP.js} +5 -4
- package/dist/chunks/{create-flow-EJZD434E.js → create-flow-YOR4QTAJ.js} +18 -6
- package/dist/chunks/{data-FOODGAMF.js → data-QKWI5325.js} +14 -3
- package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-ZONRROK4.js} +4 -4
- package/dist/chunks/{ehr-TE4RFNID.js → ehr-2CONM7R6.js} +244 -151
- package/dist/chunks/{employee-DR5Y64TI.js → employee-PGMY6NI6.js} +1 -1
- package/dist/chunks/{entry-mode-ZOLSXEGX.js → entry-mode-S2ENJ6GZ.js} +3 -3
- package/dist/chunks/{env-TID5NFR6.js → env-ZSAXU5PJ.js} +2 -2
- package/dist/chunks/{esb-7L6MHYLB.js → esb-FQASCY2H.js} +8 -8
- package/dist/chunks/{factory-OG7BPMH5.js → factory-N76QQA53.js} +1 -1
- package/dist/chunks/{fna-6V2ENR3Y.js → fna-FCLVIWAS.js} +5 -4
- package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-UM665WDZ.js} +3 -3
- package/dist/chunks/{host-VTPAWDZV.js → host-2ED2KC4X.js} +4 -4
- package/dist/chunks/{host-TJ5VVHM7.js → host-2UYZEY2V.js} +4 -4
- package/dist/chunks/{host-3DLYA54R.js → host-46NYKDQP.js} +4 -4
- package/dist/chunks/{host-OGBHL75G.js → host-7IPZKIM4.js} +4 -4
- package/dist/chunks/{host-GOJHHTPY.js → host-P7G22WNM.js} +4 -4
- package/dist/chunks/{host-ONZC6AE7.js → host-XLCBLNJD.js} +4 -4
- package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-XKL27NX2.js} +6 -6
- package/dist/chunks/{im-XCH47ZBN.js → im-NDYIMASG.js} +4 -4
- package/dist/chunks/{invoice-5KJ7T774.js → invoice-MOGNB6HN.js} +4 -4
- package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-3T5X7SB7.js} +5 -4
- package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-4WOIL3ZQ.js} +5 -5
- package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-P7VMUKQW.js} +5 -4
- package/dist/chunks/{meeting-5E3BNARL.js → meeting-MMTYDHXA.js} +16 -15
- package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-LCSBWGJ3.js} +4 -4
- package/dist/chunks/{okr-3O3XNYOK.js → okr-VZXRQGS4.js} +5 -4
- package/dist/chunks/{operations-EZWG72FH.js → operations-MI2BSKZX.js} +5 -5
- package/dist/chunks/{performance-Y7CPNSOR.js → performance-OPEQNW7Y.js} +873 -17
- package/dist/chunks/{plan-BLGPZF5M.js → plan-TJAS4N5X.js} +5 -4
- package/dist/chunks/{project-6MZMLJMP.js → project-CYBGU6K6.js} +5 -4
- package/dist/chunks/{reception-F2VT2X52.js → reception-3FT2F66K.js} +3 -3
- package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-WPGB5BDJ.js} +654 -336
- package/dist/chunks/{registry-3FYSWV3U.js → registry-BAWCWV4D.js} +3 -3
- package/dist/chunks/{registry-I4DVPDMU.js → registry-FNI5E76J.js} +12 -12
- package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
- package/dist/chunks/{registry-7RS74TCK.js → registry-QRMXRSCT.js} +5 -5
- package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-I7QQRHEL.js} +4 -4
- package/dist/chunks/{schedule-6AN63MJQ.js → schedule-3P7EWGNZ.js} +4 -4
- package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-FOBSVNYW.js} +3 -3
- package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-U2KKTVQY.js} +10 -7
- package/dist/index.js +34 -34
- package/dist/internal/e10/auth/commands.js +203 -44
- 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/error-actions.js +112 -0
- package/dist/shortcuts/contract/errors.js +9 -1
- package/dist/shortcuts/contract/index.js +14 -39
- package/dist/shortcuts/contract/manifest.js +130 -274
- package/dist/shortcuts/contract/operations/compare-report.js +437 -0
- package/dist/shortcuts/contract/operations/compare.js +2 -0
- package/dist/shortcuts/contract/operations/docx-slots.js +112 -5
- package/dist/shortcuts/contract/operations/docx-verify.js +2 -70
- package/dist/shortcuts/contract/operations/elements-build.js +82 -56
- package/dist/shortcuts/contract/operations/elements-spec.js +140 -3
- 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} +123 -27
- package/dist/shortcuts/contract/operations/ledger.js +343 -1
- package/dist/shortcuts/contract/operations/metrics.js +93 -0
- package/dist/shortcuts/contract/operations/modeltext.js +3 -3
- package/dist/shortcuts/contract/operations/money.js +90 -0
- package/dist/shortcuts/contract/operations/page.js +8 -4
- package/dist/shortcuts/contract/operations/performance.js +53 -0
- package/dist/shortcuts/contract/operations/placeholder-scan.js +104 -0
- package/dist/shortcuts/contract/operations/quote-recognize.js +326 -0
- package/dist/shortcuts/contract/operations/quote-ref.js +179 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +281 -0
- package/dist/shortcuts/contract/operations/quote.js +66 -12
- 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/solutions-spec.js +79 -0
- package/dist/shortcuts/contract/operations/triage.js +68 -15
- 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/data/operations/shared.js +14 -1
- 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/meeting/operations/eb/conflict.js +60 -2
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +138 -15
- 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/performance/flow-utils.js +363 -0
- package/dist/shortcuts/performance/manifest.js +2 -2
- package/dist/shortcuts/performance/operations/flow-detail.js +85 -0
- package/dist/shortcuts/performance/operations/flow-list.js +213 -0
- package/dist/shortcuts/performance/operations/flow-score.js +241 -0
- package/dist/shortcuts/performance/operations/registry.js +6 -0
- 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/contract.md +2 -2
- package/docs/e10-auth.md +55 -2
- package/docs/ehr.md +1 -1
- package/package.json +1 -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 +283 -345
- 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 +126 -202
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +13 -5
- 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 +47 -16
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +19 -18
- 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 +78 -112
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +67 -333
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +18 -15
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +80 -84
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +38 -34
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +132 -47
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +108 -217
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +14 -20
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +13 -7
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +86 -46
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +12 -10
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +22 -14
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +18 -18
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +27 -26
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +252 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +15 -23
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +290 -104
- package/skills/weaver-e10-jinchengda/references/contract-request-status.md +5 -12
- package/skills/weaver-e10-jinchengda/references/contract-request-write.md +12 -18
- 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-type-fingerprints.md +12 -12
- package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
- package/skills/weaver-e10-jinchengda/references/orchestration.md +33 -35
- 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 +87 -534
- 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 +9 -7
- package/skills/weaver-e10-meeting/references/create-guardrails.md +23 -17
- 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/meeting-eb.md +26 -26
- package/skills/weaver-e10-meeting/references/meeting-invitation.md +2 -2
- package/skills/weaver-e10-meeting/references/meeting-minute-file.md +2 -2
- package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
- 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-performance/SKILL.md +45 -5
- package/skills/weaver-e10-performance/agents/openai.yaml +26 -2
- package/skills/weaver-e10-performance/references/flow-api.md +128 -0
- package/skills/weaver-e10-performance/references/flow-assess.md +149 -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-yimiaoban/SKILL.md +17 -14
- 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/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
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 合同业绩统计口径单一事实源(2026-11-18 用户定稿)。
|
|
3
|
+
*
|
|
4
|
+
* 背景:台账数据可以有很多字段,但「业绩」「已收款」「eteams 业绩」这三个
|
|
5
|
+
* 对外口径各只认一个字段,且都不在台账默认展示列里。以前这套口径只写在
|
|
6
|
+
* references 文档里,实现与文档容易漂移;现收敛到本文件,作为唯一事实源,
|
|
7
|
+
* 供 `contract.ledger.metrics` 直接输出,文档只做引用。
|
|
8
|
+
*
|
|
9
|
+
* 三条口径(用户口径,不得自行替换字段):
|
|
10
|
+
* 1. 合同业绩 → 直销业绩台账的「冲刺有效金额」(不是「有效金额」);
|
|
11
|
+
* 2. 合同已收款 → 直销合同台账的「已收款」;
|
|
12
|
+
* 3. eteams 业绩 → 合同收款台账中「渠道属性 = 渠道收款」的行,统计「销售有效金额」。
|
|
13
|
+
*
|
|
14
|
+
* 字段 ID 与返回键(dataKey)来源:2026-11-18 用 `getListDatas` 响应的
|
|
15
|
+
* `data.columns` 实测解析(`contract.performance.list.query` + `includeColumns=true`),
|
|
16
|
+
* 不是文档推测。三个口径涉及的字段全部已实测,运行时无需再解析。
|
|
17
|
+
*
|
|
18
|
+
* 口径与台账字段的对应关系(实测):
|
|
19
|
+
* - 直销业绩:冲刺有效金额 `846297265322574224` / `ccyxje`
|
|
20
|
+
* 易混字段:有效金额 `…193`/`yxje`、冲刺有效金额差异 `…225`/`ccyxjecy`、
|
|
21
|
+
* EBU冲刺有效金额 `…227`/`ebuyxje`、核算有效金额 `…229`/`yxhsje`——都不得替代。
|
|
22
|
+
* - 直销合同:已收款 `846297265322574184` / `sumsk`(注意返回键不是 ysq)
|
|
23
|
+
* - 合同收款:渠道属性 `846297265322574590` / `qdsx`;销售有效金额 `846297265322574559` / `xsyxje`
|
|
24
|
+
*/
|
|
25
|
+
/** 六台账固定 ID(与 contract-ledger-catalog.md 实测值一致)。 */
|
|
26
|
+
export const LEDGER_METRICS = [
|
|
27
|
+
{
|
|
28
|
+
key: 'contractPerformance',
|
|
29
|
+
label: '合同业绩',
|
|
30
|
+
ledger: '直销业绩',
|
|
31
|
+
listId: '846297265322576586',
|
|
32
|
+
objId: '846297265322573826',
|
|
33
|
+
pageId: '846297265322576586',
|
|
34
|
+
viewKey: 'directPerf',
|
|
35
|
+
metricField: '冲刺有效金额',
|
|
36
|
+
metricFieldId: '846297265322574224',
|
|
37
|
+
metricDataKey: 'ccyxje',
|
|
38
|
+
aggregation: 'sum',
|
|
39
|
+
conditions: [
|
|
40
|
+
{
|
|
41
|
+
field: '销售经理',
|
|
42
|
+
fieldId: '846297265322574199',
|
|
43
|
+
dataKey: 'xsjl',
|
|
44
|
+
operator: 'inC',
|
|
45
|
+
required: true,
|
|
46
|
+
note: 'person 字段,必须传人员 ID;传姓名不报错但返回全量',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
field: '核算业绩年月',
|
|
50
|
+
fieldId: '846297265322574201',
|
|
51
|
+
dataKey: 'hsny',
|
|
52
|
+
operator: 'startWith',
|
|
53
|
+
required: true,
|
|
54
|
+
note: '形如 2026-11;只传 11 命中 0 条',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
note: '合同业绩只认「冲刺有效金额」(返回键 ccyxje),不得用「有效金额」「冲刺有效金额差异」「EBU冲刺有效金额」「核算有效金额」或「合同总金额」替代。',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
key: 'contractReceived',
|
|
61
|
+
label: '合同已收款',
|
|
62
|
+
ledger: '直销合同',
|
|
63
|
+
listId: '846297265322576591',
|
|
64
|
+
objId: '846297265322573825',
|
|
65
|
+
pageId: '846297265322576591',
|
|
66
|
+
viewKey: 'ecology',
|
|
67
|
+
metricField: '已收款',
|
|
68
|
+
metricFieldId: '846297265322574184',
|
|
69
|
+
metricDataKey: 'sumsk',
|
|
70
|
+
aggregation: 'sum',
|
|
71
|
+
conditions: [
|
|
72
|
+
{
|
|
73
|
+
field: '合同业绩年月',
|
|
74
|
+
fieldId: '846297265322574079',
|
|
75
|
+
dataKey: 'htyjny',
|
|
76
|
+
operator: 'startWith',
|
|
77
|
+
required: true,
|
|
78
|
+
note: '形如 2026-11',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
field: '销售经理',
|
|
82
|
+
fieldId: '846297265322574070',
|
|
83
|
+
dataKey: 'xsjl',
|
|
84
|
+
operator: 'like',
|
|
85
|
+
required: false,
|
|
86
|
+
note: 'text 字段,值是「姓名(产品线)」,同名不同署名会串数',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
note: '合同已收款取自直销合同台账的「已收款」(返回键 sumsk,不是 ysq),不是合同收款台账的收款流水合计;两本是两套数据源,不得混算。',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
key: 'eteamsPerformance',
|
|
93
|
+
label: 'eteams业绩',
|
|
94
|
+
ledger: '合同收款',
|
|
95
|
+
listId: '846297265322576589',
|
|
96
|
+
objId: '846297265322573830',
|
|
97
|
+
pageId: '846297265322576589',
|
|
98
|
+
viewKey: null,
|
|
99
|
+
metricField: '销售有效金额',
|
|
100
|
+
metricFieldId: '846297265322574559',
|
|
101
|
+
metricDataKey: 'xsyxje',
|
|
102
|
+
aggregation: 'sum',
|
|
103
|
+
conditions: [
|
|
104
|
+
{
|
|
105
|
+
field: '渠道属性',
|
|
106
|
+
fieldId: '846297265322574590',
|
|
107
|
+
dataKey: 'qdsx',
|
|
108
|
+
operator: 'eq',
|
|
109
|
+
value: '渠道收款',
|
|
110
|
+
required: true,
|
|
111
|
+
note: '实测取值只有「渠道收款」与空值,无「非渠道收款」这类干扰值;若 eq 返回 0 条,先按坑位表换 like 复核',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
field: '销售核算年月',
|
|
115
|
+
fieldId: '846297265322574528',
|
|
116
|
+
dataKey: 'xshsny',
|
|
117
|
+
operator: 'startWith',
|
|
118
|
+
required: true,
|
|
119
|
+
note: '形如 2026-11',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
field: '销售经理',
|
|
123
|
+
fieldId: '846297265322574539',
|
|
124
|
+
dataKey: 'xsjl',
|
|
125
|
+
operator: 'inC',
|
|
126
|
+
required: false,
|
|
127
|
+
note: 'person 字段,必须传人员 ID',
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
note: 'eteams 业绩量在合同收款台账里,条件是「渠道属性 = 渠道收款」,统计列为「销售有效金额」(返回键 xsyxje);不得用渠道订单台账的单量、合同总金额、客服有效金额或项目有效金额替代。',
|
|
131
|
+
},
|
|
132
|
+
];
|
|
133
|
+
/** 按 key 取口径;key 为空时返回全量。 */
|
|
134
|
+
export function findLedgerMetric(key) {
|
|
135
|
+
if (!key)
|
|
136
|
+
return undefined;
|
|
137
|
+
return LEDGER_METRICS.find((metric) => metric.key === key || metric.label === key);
|
|
138
|
+
}
|
|
139
|
+
/** 未写死字段 ID 的字段名清单,提示运行时解析。 */
|
|
140
|
+
export function unresolvedMetricFields(metric) {
|
|
141
|
+
const missing = [];
|
|
142
|
+
if (!metric.metricFieldId)
|
|
143
|
+
missing.push(metric.metricField);
|
|
144
|
+
for (const cond of metric.conditions) {
|
|
145
|
+
if (!cond.fieldId)
|
|
146
|
+
missing.push(cond.field);
|
|
147
|
+
}
|
|
148
|
+
return missing;
|
|
149
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 合同链路错误动作目录(2026-11-20 P2)。
|
|
3
|
+
*
|
|
4
|
+
* ## 解决什么问题
|
|
5
|
+
*
|
|
6
|
+
* 2026-11-20 事故的第一轮输出是:
|
|
7
|
+
*
|
|
8
|
+
* > 「上传接口要求合同总金额必须是大于 0 的真实数值,而报价书里的金额在我这边显示为脱敏
|
|
9
|
+
* > 占位符,无法直接作为数值传入。因此合同暂时没能上传进系统……」
|
|
10
|
+
*
|
|
11
|
+
* 工具当时只报了一句 `total_amount_required`(**形态非法**),模型把它翻译成了**业务结论**
|
|
12
|
+
* (**数据不可得**),于是链路在第一步就停了——而真值一直在本地。
|
|
13
|
+
*
|
|
14
|
+
* 根因不是模型判断力,而是**错误载荷里没有动作**:错误只说明「哪一步没过」,没有说明
|
|
15
|
+
* 「下一步做什么、不许下什么结论」。本目录把这件事变成机器判据——每个错误码都带
|
|
16
|
+
* `details.action`:
|
|
17
|
+
*
|
|
18
|
+
* ```json
|
|
19
|
+
* "details": {
|
|
20
|
+
* "action": {
|
|
21
|
+
* "action": "fix-input",
|
|
22
|
+
* "requiredAction": "把 totalAmount 改成 $quote 引用或纯数值后重跑……",
|
|
23
|
+
* "forbiddenClaims": ["金额不可得", "需要用户提供金额", "无法生成合同"]
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* 注入点在 `contractValidationError()`:所有合同校验错误自动携带,无遗漏、无重复实现。
|
|
29
|
+
*/
|
|
30
|
+
/** 报价单转合同链路的错误码 → 动作。新增错误码时一并登记,避免又出现「只有报错没有动作」。 */
|
|
31
|
+
export const CONTRACT_ERROR_ACTIONS = {
|
|
32
|
+
// ── 金额形态(2026-11-20 P0 守卫)
|
|
33
|
+
total_amount_required: {
|
|
34
|
+
action: 'fix-input',
|
|
35
|
+
requiredAction: '补传 totalAmount;优先用 {"$quote":"<报价书解析结果.json 绝对路径>#totals.final_total"},真值由 CLI 本地读取,重跑本步',
|
|
36
|
+
forbiddenClaims: ['金额不可得', '需要用户提供金额', '无法生成合同'],
|
|
37
|
+
},
|
|
38
|
+
total_amount_placeholder: {
|
|
39
|
+
action: 'fix-input',
|
|
40
|
+
requiredAction: '把 totalAmount 改成 {"$quote":"<解析结果.json>#totals.final_total"} 或纯数值后重跑;不要再传 [[MONEY_*]]',
|
|
41
|
+
forbiddenClaims: ['金额不可得', '需要用户提供金额', '无法上传合同'],
|
|
42
|
+
},
|
|
43
|
+
sections_amount_placeholder: {
|
|
44
|
+
action: 'fix-input',
|
|
45
|
+
requiredAction: '把 sections 改成 {"$quote":"<解析结果.json>#sections"},或不传 sections(背景说明会退化为不含费用构成)后重跑',
|
|
46
|
+
forbiddenClaims: ['金额不可得', '需要用户提供金额'],
|
|
47
|
+
},
|
|
48
|
+
plan_value_placeholder: {
|
|
49
|
+
action: 'fix-input',
|
|
50
|
+
requiredAction: '把 plan 里写成占位符的金额位点改成 $quote 引用或纯数值后重跑 contract.docx.slots.fill',
|
|
51
|
+
forbiddenClaims: ['金额不可得', '需要用户提供金额', '无法生成合同'],
|
|
52
|
+
},
|
|
53
|
+
plan_value_display_text: {
|
|
54
|
+
action: 'fix-input',
|
|
55
|
+
requiredAction: '金额位点去掉货币符号,改传 $quote 引用或纯数值后重跑 slots.fill',
|
|
56
|
+
forbiddenClaims: ['金额不可得', '需要用户提供金额'],
|
|
57
|
+
},
|
|
58
|
+
// ── 值引用通道(2026-11-20 P1)
|
|
59
|
+
quote_ref_unresolved: {
|
|
60
|
+
action: 'fix-path',
|
|
61
|
+
requiredAction: '按 details.errors 里给出的位置与「该文件顶层可用字段」修正 $quote 的文件路径或字段路径后重跑;'
|
|
62
|
+
+ '解析结果需先用 contract.quote.parse / contract.quote.normalize 的 out 参数落盘',
|
|
63
|
+
forbiddenClaims: ['报价书有问题', '需要用户重新提供报价书'],
|
|
64
|
+
},
|
|
65
|
+
quote_placeholder_in_model_json: {
|
|
66
|
+
action: 'obtain-source',
|
|
67
|
+
requiredAction: '占位符不是金额、本地也无法还原:① 有该报价书的 .xlsx 原件时改走 contract.quote.parse(真值由代码在本地算出)并用 out 落盘;'
|
|
68
|
+
+ '② 只有 .docx 原件时,先确认本地确无 .xlsx 或已算好的解析结果,再说明缺的是哪一个文件',
|
|
69
|
+
forbiddenClaims: ['报价书未填写金额', '金额不可得'],
|
|
70
|
+
},
|
|
71
|
+
// ── 文件与路径
|
|
72
|
+
quote_normalize_invalid: { action: 'fix-input', requiredAction: '按报错修正模型产出的报价 JSON 后重跑 normalize' },
|
|
73
|
+
quote_normalize_source_missing: { action: 'fix-input', requiredAction: '补传模型产出的报价 JSON 文件路径(data)后重跑' },
|
|
74
|
+
plan_not_found: { action: 'fix-path', requiredAction: '核对 plan 文件路径后重跑 slots.fill' },
|
|
75
|
+
plan_required: { action: 'fix-path', requiredAction: '补传 plan(填充方案对象或其 JSON 文件路径)后重跑 slots.fill' },
|
|
76
|
+
template_required: { action: 'fix-path', requiredAction: '补传模板 docx 绝对路径后重跑' },
|
|
77
|
+
template_not_found: { action: 'obtain-source', requiredAction: '确认模板文件已下载到本地(contract file download)后重跑' },
|
|
78
|
+
contract_path_required: { action: 'fix-path', requiredAction: '补传生成的合同 docx 绝对路径后重跑' },
|
|
79
|
+
contract_path_not_found: { action: 'fix-path', requiredAction: '核对合同 docx 路径(应先跑 slots.fill 生成)后重跑' },
|
|
80
|
+
file_type_unsupported: { action: 'obtain-source', requiredAction: '把 .xls / .doc 另存为 .xlsx / .docx 后重跑' },
|
|
81
|
+
// ── 业务参数
|
|
82
|
+
customer_required: { action: 'fix-input', requiredAction: '补传 customerName(报价单客户全称)后重跑' },
|
|
83
|
+
customer_not_found: { action: 'fix-input', requiredAction: '按报价单判读客户全称后重跑' },
|
|
84
|
+
flow_required: { action: 'fix-input', requiredAction: '按报价单类型标识确认 flow(契约锁 / 新客户 / 常规二次销售 / 老客户增值)后传入重跑' },
|
|
85
|
+
flow_not_builtin: { action: 'fix-input', requiredAction: '改用四个内置流程之一后重跑' },
|
|
86
|
+
tab_invalid: { action: 'fix-input', requiredAction: '改用合法 tab 后重跑' },
|
|
87
|
+
file_id_required: { action: 'fix-path', requiredAction: '先跑 contract.flow.launch 拿到 workflow fileId,再传入重跑' },
|
|
88
|
+
recognize_result_invalid: {
|
|
89
|
+
action: 'fix-input',
|
|
90
|
+
requiredAction: 'recognizeResult 必须内联为 JSON 对象(不能传文件路径字符串)后重跑',
|
|
91
|
+
},
|
|
92
|
+
input_invalid: { action: 'fix-input', requiredAction: '按报错修正入参后重跑' },
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* 把动作挂到错误 `details` 上。
|
|
96
|
+
*
|
|
97
|
+
* 只在目录命中时生效;`details` 是对象就合并,是标量/数组就放进 `value`,避免覆盖原有信息。
|
|
98
|
+
*/
|
|
99
|
+
export function withRequiredAction(subtype, details) {
|
|
100
|
+
const entry = CONTRACT_ERROR_ACTIONS[subtype];
|
|
101
|
+
if (!entry)
|
|
102
|
+
return details;
|
|
103
|
+
const action = { action: entry.action, requiredAction: entry.requiredAction };
|
|
104
|
+
if (entry.forbiddenClaims?.length)
|
|
105
|
+
action.forbiddenClaims = entry.forbiddenClaims;
|
|
106
|
+
if (details === undefined || details === null)
|
|
107
|
+
return { action };
|
|
108
|
+
if (typeof details === 'object' && !Array.isArray(details)) {
|
|
109
|
+
return { ...details, action };
|
|
110
|
+
}
|
|
111
|
+
return { value: details, action };
|
|
112
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CliError, ExitCode } from '../../core/errors.js';
|
|
2
|
+
import { withRequiredAction } from './error-actions.js';
|
|
2
3
|
export class ContractCliError extends CliError {
|
|
3
4
|
type;
|
|
4
5
|
subtype;
|
|
@@ -19,9 +20,16 @@ export class ContractCliError extends CliError {
|
|
|
19
20
|
this.partialData = options.partialData;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* 合同链路校验错误。
|
|
25
|
+
*
|
|
26
|
+
* 2026-11-20 P2:错误码命中 `error-actions.ts` 目录时,自动把「下一步动作 + 不许下的结论」
|
|
27
|
+
* 挂到 `details.action` 上。事故复盘见该文件开头——当时只有 `total_amount_required`
|
|
28
|
+
* 一句形态描述,模型把它读成了「金额不可得」并停止链路。
|
|
29
|
+
*/
|
|
22
30
|
export function contractValidationError(subtype, message, details) {
|
|
23
31
|
return new ContractCliError('validation', subtype, message, {
|
|
24
|
-
details,
|
|
32
|
+
details: withRequiredAction(subtype, details),
|
|
25
33
|
exitCode: ExitCode.UsageError,
|
|
26
34
|
});
|
|
27
35
|
}
|
|
@@ -154,24 +154,6 @@ export const contractShortcut = {
|
|
|
154
154
|
}));
|
|
155
155
|
const type = contract.command('type').description('Contract type commands');
|
|
156
156
|
registerCommand(type, 'tree', 'List all contract types', 'contract.type.tree');
|
|
157
|
-
const template = contract.command('template').description('Contract template commands');
|
|
158
|
-
registerCommand(template, 'tree', 'List template category tree', 'contract.template.tree', [
|
|
159
|
-
{ flag: '--tree-name <name>', description: 'tree name filter', key: 'treeName' },
|
|
160
|
-
{ flag: '--parent-id <id>', description: 'parent node id', key: 'parentId' },
|
|
161
|
-
{ flag: '--tree-type <type>', description: 'tree type', key: 'treeType', kind: 'int' },
|
|
162
|
-
{ flag: '--app-id <id>', description: 'application id', key: 'appId' },
|
|
163
|
-
]);
|
|
164
|
-
registerCommand(template, 'list', 'List templates with paging', 'contract.template.list', [
|
|
165
|
-
{ flag: '--template-name <name>', description: 'template name keyword', key: 'templateName' },
|
|
166
|
-
{ flag: '--belong-id <id>', description: 'template category id', key: 'belongId' },
|
|
167
|
-
{ flag: '--contract-type <id>', description: 'contract type id', key: 'contractType' },
|
|
168
|
-
{ flag: '--template-status <status>', description: '0 disabled, 1 enabled', key: 'templateStatus', kind: 'int' },
|
|
169
|
-
{ flag: '--page-no <n>', description: 'page number', key: 'pageNo', kind: 'int' },
|
|
170
|
-
{ flag: '--page-size <n>', description: 'page size', key: 'pageSize', kind: 'int' },
|
|
171
|
-
]);
|
|
172
|
-
registerCommand(template, 'detail', 'Get template detail by id', 'contract.template.detail', [
|
|
173
|
-
{ flag: '--id <id>', description: 'template id', key: 'id' },
|
|
174
|
-
]);
|
|
175
157
|
const clause = contract.command('clause').description('Contract clause commands');
|
|
176
158
|
registerCommand(clause, 'tree', 'List clause category tree', 'contract.clause.tree');
|
|
177
159
|
registerCommand(clause, 'list', 'List clauses with paging', 'contract.clause.list', [
|
|
@@ -350,21 +332,17 @@ export const contractShortcut = {
|
|
|
350
332
|
{ flag: '--other-params <json>', description: 'paging params JSON', key: 'otherParams' },
|
|
351
333
|
]);
|
|
352
334
|
const review = contract.command('review').description('Contract AI review commands');
|
|
353
|
-
//
|
|
354
|
-
|
|
355
|
-
registerCommand(review, 'prewarm', 'Trigger contract review prewarm for one fileId', 'contract.review.prewarm', [
|
|
356
|
-
{ flag: '--file-id <id>', description: 'uploaded file id', key: 'fileId' },
|
|
357
|
-
]);
|
|
358
|
-
registerCommand(review, 'prewarm-batch', 'Trigger review prewarm for multiple fileIds (parallel)', 'contract.review.prewarm.batch', [
|
|
359
|
-
{ flag: '--file-ids <json>', description: 'JSON array of file ids', key: 'fileIds' },
|
|
360
|
-
]);
|
|
335
|
+
// 2026-11-19 定稿:审查上传/预热子命令已移除(合同上传一律走流程通道 `contract flow launch`,
|
|
336
|
+
// 上传即自动预热)。审查组只保留「取结果」两个出口。
|
|
361
337
|
registerCommand(review, 'export', 'Export AI review records', 'contract.review.export', [
|
|
362
338
|
{ flag: '--file-id <id>', description: 'contract file id', key: 'fileId' },
|
|
339
|
+
{ flag: '--flow-id <id>', description: 'flowId from the assistant url (= this round workflowId); required, no fixed default', key: 'flowId' },
|
|
363
340
|
{ flag: '--sclx <types>', description: '8 risk review (contract pre-review); 1/2/3 disabled', key: 'sclx' },
|
|
364
341
|
]);
|
|
365
342
|
// 一条命令出审查摘要:省掉「导出 → 解析 scnr → 手工压缩」的多轮往返(2026-11-16 新增)。
|
|
366
343
|
registerCommand(review, 'digest', 'Export AI review records and return a compact digest in one shot', 'contract.review.digest', [
|
|
367
344
|
{ flag: '--file-id <id>', description: 'contract file id', key: 'fileId' },
|
|
345
|
+
{ flag: '--flow-id <id>', description: 'flowId from the assistant url (= this round workflowId); required unless --ref is used', key: 'flowId' },
|
|
368
346
|
{ flag: '--ref <path>', description: 'digest from a persisted export result json instead of calling the api', key: 'ref' },
|
|
369
347
|
{ flag: '--out <path>', description: 'optional: write digest json to this path', key: 'out' },
|
|
370
348
|
]);
|
|
@@ -409,6 +387,16 @@ export const contractShortcut = {
|
|
|
409
387
|
{ flag: '--base-file-id <id>', description: 'base file id', key: 'baseFileId' },
|
|
410
388
|
{ flag: '--compare-file-id <id>', description: 'compare file id', key: 'compareFileId' },
|
|
411
389
|
]);
|
|
390
|
+
registerCommand(compare, 'report', 'Render a comparison report HTML from files / fileIds / a saved diff result', 'contract.compare.report', [
|
|
391
|
+
{ flag: '--base-file-id <id>', description: 'base file id', key: 'baseFileId' },
|
|
392
|
+
{ flag: '--compare-file-id <id>', description: 'compare file id', key: 'compareFileId' },
|
|
393
|
+
{ flag: '--ref <file>', description: 'saved compare.diff result JSON path', key: 'ref' },
|
|
394
|
+
{ flag: '--base-file-name <name>', description: 'base file name override', key: 'baseFileName' },
|
|
395
|
+
{ flag: '--compare-file-name <name>', description: 'compare file name override', key: 'compareFileName' },
|
|
396
|
+
{ flag: '--out <file>', description: 'output report HTML path', key: 'out' },
|
|
397
|
+
{ flag: '--template <file>', description: 'optional custom template path', key: 'template' },
|
|
398
|
+
{ flag: '--dump-data <file>', description: 'optional normalized report data JSON path', key: 'dumpData' },
|
|
399
|
+
]);
|
|
412
400
|
const credit = contract.command('credit').description('Enterprise credit commands');
|
|
413
401
|
registerCommand(credit, 'page', 'Build the enterprise credit page url', 'contract.credit.page');
|
|
414
402
|
const performance = contract.command('performance').description('Performance ledger commands (local links + read-only list queries)');
|
|
@@ -462,19 +450,6 @@ export const contractShortcut = {
|
|
|
462
450
|
{ flag: '--contract-numbers <json>', description: 'contract numbers JSON array', key: 'contractNumbers' },
|
|
463
451
|
{ flag: '--page-size <n>', description: 'page size', key: 'pageSize', kind: 'int' },
|
|
464
452
|
]);
|
|
465
|
-
const summary = contract.command('summary').description('Contract summary rendering commands (local)');
|
|
466
|
-
registerCommand(summary, 'render', 'Render summary data JSON into an HTML file (local)', 'contract.summary.render', [
|
|
467
|
-
{ flag: '--data <file>', description: 'summary data JSON path', key: 'data' },
|
|
468
|
-
{ flag: '--out <file>', description: 'output HTML path', key: 'out' },
|
|
469
|
-
]);
|
|
470
|
-
const card = contract.command('card').description('Contract action card rendering commands (local)');
|
|
471
|
-
registerCommand(card, 'render', 'Render action card JSON into xiaoeCustomPage HTML (local)', 'contract.card.render', [
|
|
472
|
-
{ flag: '--data <file>', description: 'card data JSON path', key: 'data' },
|
|
473
|
-
{ flag: '--out <file>', description: 'output card HTML path', key: 'out' },
|
|
474
|
-
{ flag: '--summary <file>', description: 'optional summary data JSON path to embed', key: 'summary' },
|
|
475
|
-
{ flag: '--browsertool <file>', description: 'optional path to write full browsertool JSON', key: 'browsertool' },
|
|
476
|
-
{ flag: '--base-url <url>', description: 'optional E10 base url, defaults to session', key: 'baseUrl' },
|
|
477
|
-
]);
|
|
478
453
|
const file = contract.command('file').description('Contract file download commands (binary)');
|
|
479
454
|
registerCommand(file, 'download', 'Download an E10 file to a local path', 'contract.file.download', [
|
|
480
455
|
{ flag: '--file-id <id>', description: 'E10 file id (template / attachment / review file)', key: 'fileId' },
|