weaver-work-cli 0.1.62 → 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-5KJ7T774.js → invoice-4WY32PR2.js} +4 -4
- 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/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/contract.md +2 -2
- package/docs/e10-auth.md +28 -0
- 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 +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-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/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,250 @@
|
|
|
1
|
+
# 页面打开统一口径:合同智能页 + `open_web`(2026-11-17 20:34 用户定稿,优先级最高)
|
|
2
|
+
|
|
3
|
+
> 本文件是**页面打开方式的唯一事实源**。与本技能其它 reference 冲突时**一律以本文件为准**,旧写法视为已废止:卡片引擎 `contract-action-engine.md` 与整个 `contract.card.*` 命名空间(`card.action` / `.plan` / `.render` / `card.ebdf-list`)已于 2026-11-19 全部删除或改名——报告渲染改走 `contract.review.report` / `contract.compare.report`(HTML 产物,不出卡),台账页卡 / ebdf 列表卡改走 **`contract.ledger.card`**。
|
|
4
|
+
|
|
5
|
+
## 0. 一句话规则
|
|
6
|
+
|
|
7
|
+
**查资信、风险审查(合同预审)、发起合同流程、查看合同摘要、引用条款**这 5 类动作,一律用 `<browsertool>` + `toolId: "open_web"` 打开**同一个合同智能页**,通过 **`tab` 参数**定位到对应功能区;`arguments` 必须带 **`width`** 与 **`openIn: "browser"`**。不再生成行为卡片。
|
|
8
|
+
|
|
9
|
+
## 0.1 助手页统一前置(2026-11-19 用户定稿,强制)
|
|
10
|
+
|
|
11
|
+
**只要上传/指定了合同文件、要打开合同智能页(任意 `tab`),都必须先做「合同类型识别 + 要素提取填充」,并把流程 ID 与识别记录 ID 拼进地址。** 不存在「只查资信 / 只看摘要所以可以省掉识别」的例外。
|
|
12
|
+
|
|
13
|
+
| 序 | 必做动作 | 产出 |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| ① | `contract.triage.extract`(阶段1)判**合同类型** | `flowKey`、合同正文、`ai_fill.json` 骨架 |
|
|
16
|
+
| ② | 填 `ai_fill.json` 的 `elements` 段做**要素提取** | 要素值(以 `contract_text.txt` 为准) |
|
|
17
|
+
| ③ | `contract.firstscreen.run`(阶段2)或 `contract.flow.launch` | `workflowId`;文件 ID:`firstscreen.run` → `workflowFileId`,`flow.launch` → `file.fileId` |
|
|
18
|
+
| ④ | `contract flow save-recognize-record` 存**识别记录** | `data.aiExtraId` |
|
|
19
|
+
| ⑤ | 按 §1 拼单行 url,**必带** `flowId` + `workflowId` + `fileId`;`aiExtraId` 在识别记录保存成功时必带,保存失败时**省略该参数照常开页**并在输出说明原因 | url |
|
|
20
|
+
| ⑥ | 输出 `<browsertool>`(`open_web`) | 页面 |
|
|
21
|
+
|
|
22
|
+
- **`flowId` 与 `workflowId` 取值完全相同、必须同时出现,属必带项**;`aiExtraId` 在识别记录保存成功时必带,**保存失败时省略并说明原因**(不阻断开页)。缺 `aiExtraId` 时页面照常打开、要素区空白,**且接口不报错**——不能靠「页面打开了」判断成功。
|
|
23
|
+
- `aiExtraId` 即识别记录 ID;口语、旧需求里的 **`aiExtractId`** 指同一个值,但 URL 参数名只认 **`aiExtraId`**,不得写成 `aiExtractId`。
|
|
24
|
+
- ②③④ 流程**必须走**;**但 ④ 识别记录保存失败不阻断开页**(2026-11-19 用户定稿):接口异常、数据库字段长度限制等导致取不到 `data.aiExtraId` 时,**照常开页**(url 里不拼 `aiExtraId`),并在输出中说明失败原因与影响(如「识别记录保存被字段长度限制拦下,已照常打开预审页,要素区可能为空,可人工补录」)。⛔ 不得编造 `aiExtraId`、不得用 `fileId` 顶替;仅 `flowId`/`workflowId`/`fileId` 等**拼地址必需参数本身取不到**时才无法生成地址。
|
|
25
|
+
- 唯一不适用:**资信组件卡分支**(无合同文件、不开助手页,见 §7)与**文本比对独立页**(`doc-compare`)。
|
|
26
|
+
|
|
27
|
+
> ⚠️ **查资信的唯一例外(2026-11-19 定稿)**:上句仅适用于**本轮有合同文件**的资信查询。用户**没有合同文件、直接问某企业资信**时,**不走本页**,改用资信组件卡 `ContractCreditDetail`(`/sp/contract/business/credit`),见 [`contract-credit-page.md`](contract-credit-page.md) 分支 B。
|
|
28
|
+
|
|
29
|
+
**两条硬规则(2026-11-17 20:34 定稿)**:
|
|
30
|
+
|
|
31
|
+
1. **`tab` 由用户的行为决定,不设全局默认值**。先判用户这一步要做什么,再取对应页签:
|
|
32
|
+
|
|
33
|
+
| 用户行为 | `tab` |
|
|
34
|
+
|---|---|
|
|
35
|
+
| 发起合同流程 / 要素提取 | `Extract` |
|
|
36
|
+
| 查看合同摘要 | `Summary` |
|
|
37
|
+
| 合同预审 / 风险审查 | `RiskReview` |
|
|
38
|
+
| 资信查询 | `Credit` |
|
|
39
|
+
| 引用条款(上传合同后插入条款) | `termComponent` |
|
|
40
|
+
|
|
41
|
+
> 口语里的「Review / 风险审查」在本页面的实际枚举值是 **`RiskReview`**,不得写成 `Review`(页面不认)。
|
|
42
|
+
|
|
43
|
+
2. **不再生成合同摘要内容**。摘要渲染 / 校验命令(`contract.summary.render` / `contract.summary.validate`)**已从 CLI 移除**、不产 `summary.html`、不在 `ai_fill.json` 写 `summary` 语义数据。用户要看摘要时,取 **`tab=Summary`** 直接打开系统页面,摘要由页面自行渲染。
|
|
44
|
+
|
|
45
|
+
## 1. 统一页面地址(唯一地址)
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
{baseUrl}/sp/contract/business/ai-contract
|
|
49
|
+
?aiid=1256652614210789601
|
|
50
|
+
&flowId={flowId}
|
|
51
|
+
&workflowId={workflowId}
|
|
52
|
+
|
|
53
|
+
&authModule=workflow
|
|
54
|
+
&mode=edit
|
|
55
|
+
&module=WEA_FORM
|
|
56
|
+
&contractTermIds={contractTermIds}
|
|
57
|
+
&files[0][id]={fileId}
|
|
58
|
+
&files[0][name]={encodeURIComponent(fileName)}
|
|
59
|
+
&spfiles[0][fileid]={fileId}
|
|
60
|
+
&spfiles[0][name]={encodeURIComponent(fileName)}
|
|
61
|
+
&aiExtraId={aiExtraId}
|
|
62
|
+
&tab={tab}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**上行为逻辑结构(换行仅为可读),实际输出必须是单行连写。**
|
|
66
|
+
|
|
67
|
+
**必带项(2026-11-19)**:`flowId`、`workflowId`、`files[0][id]`、`files[0][name]`、`spfiles[0][fileid]`、`spfiles[0][name]`、`tab`;`aiExtraId` **在识别记录保存成功时必带,保存失败时省略**(不阻断开页,须说明原因)。除 `aiid` 与固定参数外,这些全部来自 §0.1 前置链路的真实返回值,**不得写"有则带"、不得留空、不得用 `fileId` 顶替 `aiExtraId`**。**URL 不带 `fieldId`**:附件字段由系统按 `workflowId` 自动定位(2026-11-19)。
|
|
68
|
+
|
|
69
|
+
## 2. 参数口径
|
|
70
|
+
|
|
71
|
+
| 参数 | 取值 | 是否动态 | 编码 |
|
|
72
|
+
|---|---|---|---|
|
|
73
|
+
| `aiid` | **`1256652614210789601`** | **固定常量**,不得改写 | 不编码(纯数字) |
|
|
74
|
+
| `flowId` | 当前合同流程 `workflowId` | 动态 | 不编码(数字) |
|
|
75
|
+
| `workflowId` | **与 `flowId` 取值完全相同**(同一个合同流程 `workflowId`);`flowId` 保留,两者必须同时出现 | 动态 | 不编码(数字) |
|
|
76
|
+
| ~~`formId`~~ | **已停用(2026-11-18)**:页面不需要,**禁止拼进 URL**;也无需为取表单 ID 再调 `contract.workflow.form.info` | — | — |
|
|
77
|
+
| ~~`fieldId`~~ | **已从 URL 移除(2026-11-19)**:附件字段由系统按 `workflowId` 自动定位,不再拼 URL | 不上 URL | — |
|
|
78
|
+
| `authModule` | `workflow` | **固定** | — |
|
|
79
|
+
| `mode` | `edit` | **固定** | — |
|
|
80
|
+
| `module` | `WEA_FORM` | **固定** | — |
|
|
81
|
+
| `contractTermIds` | 待引用条款 ID,多个用逗号拼接;无条款引用时**留空**(`contractTermIds=`) | 动态 | 值需 `encodeURIComponent` |
|
|
82
|
+
| `files[0][id]` | 合同文件 `fileId`(流程通道 `workflowFileId`) | 动态 | 不编码(数字) |
|
|
83
|
+
| `files[0][name]` | 合同文件名(含中文、空格、括号) | 动态 | **必须 `encodeURIComponent`** |
|
|
84
|
+
| `spfiles[0][fileid]` | 同 `files[0][id]` | 动态 | 不编码 |
|
|
85
|
+
| `spfiles[0][name]` | 同 `files[0][name]` | 动态 | **必须 `encodeURIComponent`** |
|
|
86
|
+
| `aiExtraId` | 识别记录返回的 `data.aiExtraId`(口语/旧文档称 `aiExtractId`,同一个值;参数名只能写 `aiExtraId`) | **动态,全部助手页必传(2026-11-19)** | 值需 `encodeURIComponent` |
|
|
87
|
+
| `tab` | 按 §3 行为映射取值,**必传** | 动态(随行为变化) | 不编码 |
|
|
88
|
+
|
|
89
|
+
### 编码规则(强制)
|
|
90
|
+
|
|
91
|
+
1. **结构字符不编码**:`?`、`&`、`=`、`[`、`]` 保持字面,不做整体 URL 编码。
|
|
92
|
+
2. **只有「值」编码**:`fileName`、`contractTermIds`、`aiExtraId` 等动态值逐个 `encodeURIComponent`;纯数字 ID 不编码(编码后无变化,属无害)。
|
|
93
|
+
3. **禁止二次编码**:已编码的值不得再套一层。
|
|
94
|
+
4. 文件名中的空格编码为 `%20`,括号 `()` 编码为 `%28` / `%29`,中文按 UTF-8 转 `%XX`.
|
|
95
|
+
|
|
96
|
+
## 3. `tab` 枚举与用户行为映射(必传其一)
|
|
97
|
+
|
|
98
|
+
### 3.1 行为 → `tab`(判定顺序从上到下)
|
|
99
|
+
|
|
100
|
+
| 用户行为 | `tab` | 判定口令 |
|
|
101
|
+
|---|---|---|
|
|
102
|
+
| **发起合同流程** | `Extract` | 「发起 / 提流程 / 走审批 / 新客户流程 / 老客户增值流程」 |
|
|
103
|
+
| **查看合同摘要** | `Summary` | 「看摘要 / 合同摘要 / 摘要给我看」 |
|
|
104
|
+
| **合同预审 / 风险审查** | `RiskReview` | 「预审 / 审查 / 风险 / 风险条款 / AI 审一下」 |
|
|
105
|
+
| **资信查询**(本轮**有合同文件**) | `Credit` | 「资信 / 查对方 / 诉讼 / 被执行 / 企业背景」;**无合同文件、直接问企业名时不取 tab,改走 `ContractCreditDetail` 组件卡** |
|
|
106
|
+
| **引用条款** | `termComponent` | 「引用条款 / 把条款插到这份合同」 |
|
|
107
|
+
|
|
108
|
+
> `tab` 只允许取上表 5 个值之一,不得自造、不得省略。**不要设全局默认值**——先看用户这一步的行为再取值。
|
|
109
|
+
|
|
110
|
+
### 3.2 行为无法判定时的处置
|
|
111
|
+
|
|
112
|
+
仅当用户**只上传/给了一份合同、没有任何行为指向**时(首屏默认动作),按首屏主链路取 **`Extract`**(要素识别 + 发起流程准备),并在对话里一句话说明可在页面内切换摘要/预审/资信页签。
|
|
113
|
+
|
|
114
|
+
- 一旦有任何行为线索(哪怕只是「这合同有没有风险」「给我看看摘要」),**必须按 §3.1 取对应 `tab`**,不得退回 `Extract`。
|
|
115
|
+
- 用户在一轮里提出多个行为时,按用户最先表述的那个行为取 `tab`;其余行为在下一轮再开对应页签(一轮只输出一个 `<browsertool>`)。
|
|
116
|
+
|
|
117
|
+
### 3.3 摘要不生成(2026-11-17 定稿)
|
|
118
|
+
|
|
119
|
+
**合同摘要已经不需要由 Agent 生成**。具体含义:
|
|
120
|
+
|
|
121
|
+
- ❌ 生成 `summary.html` / `card.html` 之类摘要文件(摘要渲染命令已从 CLI 移除);
|
|
122
|
+
- ❌ 不在 `ai_fill.json` 的 `summary` 段写业务摘要(保留骨架原样即可,元素 `elements` 仍必须填);
|
|
123
|
+
- ❌ 不在对话正文里铺开摘要表格、报价明细、付款节点等整段内容;
|
|
124
|
+
- ✅ 用户要看摘要 → 取 `tab=Summary` 打开系统页面,由页面自行渲染;
|
|
125
|
+
- ✅ 对话只给一句话结论(这是什么合同、属于四类中哪一类、总额等 3~5 个关键点)+页面打开。
|
|
126
|
+
|
|
127
|
+
## 4. 场景 → 取参与 `tab`
|
|
128
|
+
|
|
129
|
+
| 场景 | `tab` | 必带参数 | 是否需要先做类型识别 + 要素提取 + 存识别记录 |
|
|
130
|
+
|---|---|---|---|
|
|
131
|
+
| 发起合同流程 | `Extract` | `flowId`、`workflowId`、`fileId`、`fileName`、**`aiExtraId`** | **是** |
|
|
132
|
+
| 查看合同摘要 | `Summary` | `flowId`、`workflowId`、`fileId`、`fileName`、**`aiExtraId`** | **是(2026-11-19 起)** |
|
|
133
|
+
| 风险审查 / 合同预审 | `RiskReview` | `flowId`、`workflowId`、`fileId`(审查通道 fileId)、`fileName`、**`aiExtraId`** | **是(2026-11-19 起)** |
|
|
134
|
+
| 查资信 | `Credit` | `flowId`、`workflowId`、`fileId`、`fileName`、**`aiExtraId`** | **是(2026-11-19 起)** |
|
|
135
|
+
| 引用条款(上传合同场景) | `termComponent` | `flowId`、`workflowId`、`fileId`、`fileName`、`contractTermIds`(选中条款)、**`aiExtraId`** | **是(2026-11-19 起)** |
|
|
136
|
+
|
|
137
|
+
### 4.1 `aiExtraId` 拼接(全部助手页,无例外)
|
|
138
|
+
|
|
139
|
+
1. 先调 `contract flow save-recognize-record`(带 `--attachment-field-id` 与 `workflowFileId`)→ 取 `data.aiExtraId`。
|
|
140
|
+
2. 把 `aiExtraId` 作为查询参数拼到 URL 上(**不再放 `customParams`**)。
|
|
141
|
+
3. 缺 `aiExtraId` 时打开的是空白表单且**不报错**,所以是先存后开;**但保存失败时不得因此阻断,照常开页并说明原因**(2026-11-19)。
|
|
142
|
+
|
|
143
|
+
### 4.2 条款入口二分:使用条款 vs 维护条款库(2026-11-19 定稿)
|
|
144
|
+
|
|
145
|
+
**先判「使用条款」还是「维护条款库」,不要按「话里有没有出现引用二字」判。**
|
|
146
|
+
|
|
147
|
+
| 用户意图 | 典型话术 | 落点 | 鉴权 |
|
|
148
|
+
|---|---|---|---|
|
|
149
|
+
| **使用条款(默认)** | 「打开条款页面」「查有哪些可用条款」「挑几条条款加进合同」「引用条款 / 插入条款」「条款改写」 | 合同智能页 `tab=termComponent`(`open_web` + `width: 1300` + `openIn: "browser"`) | **不鉴权** |
|
|
150
|
+
| **维护条款库** | 「维护条款库」「新增 / 修改 / 删除条款」「管理条款分类、条款组」「打开条款库设置」 | 条款库组件卡 `ClauseLibraryPage`(`/sp/contract/terms-library`) | **先 `checkPermissionV2`** |
|
|
151
|
+
|
|
152
|
+
- **前提**:「使用条款」需要合同文件(`flowId` / `workflowId` / `fileId` 齐备),没有就先补合同或请用户上传;**不要**因为没有合同文件而退回条款库组件页。
|
|
153
|
+
- **默认落点**:本轮已有合同上下文、且用户没明确说「维护条款库」→ 一律 `termComponent`。只有完全没有合同上下文、并明确指向条款库本身时,才走 `ClauseLibraryPage`。
|
|
154
|
+
- **判不准先问一句**:「是要给这份合同引用条款,还是维护条款库本身?」不要静默选一边。
|
|
155
|
+
- 条款库组件是**维护设置入口**,不是「查看可用条款」的入口;把用户引到条款库设置页属于路由错误。
|
|
156
|
+
|
|
157
|
+
## 5. 标准输出模板(原样裸输出)
|
|
158
|
+
|
|
159
|
+
以「发起合同流程」为例(`tab=Extract`);其它行为只替换 `tab` 与 `title`:
|
|
160
|
+
|
|
161
|
+
```text
|
|
162
|
+
<browsertool>
|
|
163
|
+
{
|
|
164
|
+
"version": "1.0",
|
|
165
|
+
"callId": "contract_open_web",
|
|
166
|
+
"toolId": "open_web",
|
|
167
|
+
"arguments": {
|
|
168
|
+
"url": "{baseUrl}/sp/contract/business/ai-contract?aiid=1256652614210789601&flowId=...&workflowId=...&authModule=workflow&mode=edit&module=WEA_FORM&contractTermIds=&files[0][id]=...&files[0][name]=...&spfiles[0][fileid]=...&spfiles[0][name]=...&aiExtraId=...&tab=Extract",
|
|
169
|
+
"title": "发起合同流程",
|
|
170
|
+
"width": 1300,
|
|
171
|
+
"openIn": "browser",
|
|
172
|
+
"activate": true,
|
|
173
|
+
"autoOpen": true
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
</browsertool>
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### `arguments` 字段
|
|
180
|
+
|
|
181
|
+
| 字段 | 值 | 说明 |
|
|
182
|
+
|---|---|---|
|
|
183
|
+
| `url` | §1 统一地址(单行、已编码) | 必须,域名取当前 `baseUrl` |
|
|
184
|
+
| `title` | 与行为一致 | `发起合同流程`(Extract)/ `合同摘要`(Summary)/ `合同预审`(RiskReview)/ `查对方资信`(Credit)/ `引用条款`(termComponent) |
|
|
185
|
+
| `width` | **`1300`** | **保留**,右侧面板固定宽度 |
|
|
186
|
+
| `openIn` | `"browser"` | **必填** |
|
|
187
|
+
| `activate` | `true` | 打开后激活 |
|
|
188
|
+
| `autoOpen` | `true` | 直接打开 |
|
|
189
|
+
|
|
190
|
+
- `version` 固定 `"1.0"`;`callId` 固定 `contract_open_web`;`toolId` 固定 `open_web`。
|
|
191
|
+
- **禁止**出现 `type` / `src` / `sdkOptions` / `sdkRenderType` / `params_pc` / `params` / `customParams` / `aiProps` / `routerProps_pc`(这些是旧卡片字段)。
|
|
192
|
+
|
|
193
|
+
## 6. 交付判据(替代旧 `selfCheck`)
|
|
194
|
+
|
|
195
|
+
| # | 检查项 | 通过条件 |
|
|
196
|
+
|---|---|---|
|
|
197
|
+
| 1 | `toolId` | `"open_web"` |
|
|
198
|
+
| 2 | `arguments.url` | 非空;域名等于当前 `baseUrl`;路径为 `/sp/contract/business/ai-contract`;含 `aiid=1256652614210789601` |
|
|
199
|
+
| 3 | `tab` | 存在且属于 §3 五个值之一;**与用户本轮行为一致**(发起`Extract` / 摘要`Summary` / 预审`RiskReview` / 资信`Credit` / 引用`termComponent`) |
|
|
200
|
+
| 4 | 动态参数 | `flowId` / `workflowId` / `fileId` / `fileName` 按场景齐备、不含 `fieldId`(**`formId` 不上传**);`workflowId` 必须存在且取值与 `flowId` 完全一致;`aiExtraId` 在识别记录保存成功时必须非空且取自本轮 `save-recognize-record` 返回值,**保存失败时允许缺省,但必须在输出中说明失败原因**(不得编造、不得用 `fileId` 顶替) |
|
|
201
|
+
| 5 | 编码 | 文件名等值已编码,无二次编码、无整体编码 |
|
|
202
|
+
| 6 | `arguments.width` | 等于 `1300` |
|
|
203
|
+
| 7 | `arguments.openIn` | `"browser"` |
|
|
204
|
+
| 8 | 结构洁净 | 无 `type` / `src` / `params_pc` / `customParams` / `aiProps` 残留 |
|
|
205
|
+
| 9 | 输出形态 | 裸 `<browsertool>` 标签,无围栏、无反引号、标签后无正文 |
|
|
206
|
+
| 10 | 无摘要产物 | 本轮未生成 `summary.html`,`ai_fill.json` 的 `summary` 段未被填业务内容(摘要渲染 / 校验命令已从 CLI 移除) |
|
|
207
|
+
|
|
208
|
+
任一项不满足即不得交付;缺参数就补齐后重出,不得手拼假链接、不得退回卡片。
|
|
209
|
+
|
|
210
|
+
## 7. 例外清单(不走本地址)
|
|
211
|
+
|
|
212
|
+
| 场景 | 打开方式 | 原因 |
|
|
213
|
+
|---|---|---|
|
|
214
|
+
| 查条款数据 / 维护条款库 | 条款库组件卡 `ClauseLibraryPage`(`/sp/contract/terms-library`) | 无对应 `tab`,用户已明确「查条款数据还是直接打开组件」 |
|
|
215
|
+
| **查资信(无合同文件、直接问企业名)** | 资信组件卡 `ContractCreditDetail`(`/sp/contract/business/credit`,`companyName` 数组) | 只查企业资信、不需要合同上下文,套助手页等于多一次无意义跳转(2026-11-19 用户定稿) |
|
|
216
|
+
| 文本比对 | `open_web` 打开 `{baseUrl}/sp/contract/business/doc-compare?...`(见 [`contract-doc-compare.md`](contract-doc-compare.md)) | 比对页是独立页面,不在本地址 tab 列表内 |
|
|
217
|
+
| 报价单生成合同后的要素定位 | **走本地址** `tab=Extract`(带 `aiExtraId`);模板来源与上传/存储步骤见 [`contract-quote-to-contract.md`](contract-quote-to-contract.md) §6 | 报价单已生成真实合同,与发起流程同构 |
|
|
218
|
+
| 业绩台账 / 收款 / 验收 / 范文列表 | 保留原组件卡(`LedgerPage` / `TableViewList` / `TemplateList`) | 纯组件页,无独立可外链地址 |
|
|
219
|
+
|
|
220
|
+
## 8. 与旧文档的冲突处理
|
|
221
|
+
|
|
222
|
+
| 旧规则 | 现行处理 |
|
|
223
|
+
|---|---|
|
|
224
|
+
| 各动作分别打开 `ai-contract` / `credit` / `doc-compare` 等不同地址 | **统一**为 `ai-contract` + `tab`(比对与条款库除外) |
|
|
225
|
+
| 固定默认 `tab=Extract` 或 `tab=Summary` | **作废**;`tab` 一律按 §3.1 用户行为映射取值 |
|
|
226
|
+
| 摘要页签也走 `Extract` | **作废**;查看摘要取 `tab=Summary` |
|
|
227
|
+
| 摘要 HTML / 摘要卡片 | **停用**;摘要渲染与校验命令已从 CLI 移除,摘要由系统页面自行渲染 |
|
|
228
|
+
| `open_web` 不带 `width` | **改为必须带 `width: 1300`** |
|
|
229
|
+
| `AIContractV2` / `AIDocCompare` 组件方式 | **停用** |
|
|
230
|
+
| `ContractCreditDetail` 组件(资信) | **仅在「无合同文件、直接问企业名」时启用**(组件卡,`companyName` 数组);有合同文件仍走本页 `tab=Credit` |
|
|
231
|
+
| `customParams` 五类键、`fieldAssignKeys`、`initialCovertName` | **停用**;`aiExtraId` 改拼在 `url` 上 |
|
|
232
|
+
| 行为卡片(`fill_form` + `xiaoeCustomPage`) | **停用** |
|
|
233
|
+
| 「卡片 width 速查表」中 `open_web` 不带 width 的条目 | **作废**,`open_web` 一律 `1300` |
|
|
234
|
+
|
|
235
|
+
## 9. 禁止清单
|
|
236
|
+
|
|
237
|
+
- ❌ 用 `fill_form` + `xiaoeCustomPage` 生成动作卡片
|
|
238
|
+
- ❌ 调 `contract.card.action` / `contract.card.plan` 出卡;**不得把 `contract.review.report` 当出卡入口**——它只按 SKILL.md 红线⑩渲染报告 HTML 产物(`out` 必填,落盘后 `present_files` 登记产物 + `open_web` 打开 `file:///`),不是行为卡片
|
|
239
|
+
- ❌ 用组件(`e10Sdk` / `rightPanel.open` / `AIContractV2`)打开
|
|
240
|
+
- ❌ 有合同文件时用 `ContractCreditDetail` 组件打开资信(只有「无合同文件、直接问企业名」才允许组件分支)
|
|
241
|
+
- ❌ 省略 `tab`、自造 `tab` 值、`tab` 大小写写错、把 `RiskReview` 写成 `Review`
|
|
242
|
+
- ❌ 不判用户行为就把 `tab` 固定成某一个值
|
|
243
|
+
- ❌ 手写摘要 HTML,或调用已从 CLI 移除的摘要渲染命令
|
|
244
|
+
- ❌ 遗漏 `aiExtraId`(要素抽取 / 发起流程场景)、把已停用的 `formId` 拼进 URL
|
|
245
|
+
- ❌ 遗漏 `workflowId`,或让 `workflowId` 与 `flowId` 取值不一致(两者必须同时出现且值相同)
|
|
246
|
+
- ❌ 对 `files[0][name]` / `spfiles[0][name]` 不编码,或对整个 URL 整体编码
|
|
247
|
+
- ❌ 拼假 URL、硬编码 `baseUrl` 以外的域名
|
|
248
|
+
- ❌ 打开页面后声称「已提交 / 已发起 / 已审批完成」(打开 ≠ 完成)
|
|
249
|
+
- ❌ **上传合同后只拿一个 `fileId` 就直接开助手页**(跳过合同类型识别、要素提取、存识别记录)
|
|
250
|
+
- ❌ url 缺 `flowId` / `workflowId`;或编造 `aiExtraId`、把 `aiExtraId` 写成 `aiExtractId`、用 `fileId` 顶替 `aiExtraId`、在 url 上拼 `fieldId`;或因识别记录保存失败就不开页(应降级开页并说明原因)
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
|
|
11
11
|
| 用户诉求 | 链路 | 动作 |
|
|
12
12
|
|---|---|---|
|
|
13
|
-
| 看业绩 / 看合同 / 打开某台账(「看一下我的业绩」「看看我的合同」「打开渠道订单」) | **链路 1(组件卡)** | 直接 `contract.card
|
|
13
|
+
| 看业绩 / 看合同 / 打开某台账(「看一下我的业绩」「看看我的合同」「打开渠道订单」) | **链路 1(组件卡)** | 直接 `contract.ledger.card`,`menu` 取对应菜单;不要调 `performance.list.init` / `list.query` |
|
|
14
14
|
| 统计与汇总(「谁 / 某月签了多少」「本月业绩合计」「某客户今年几份、多少钱」「收了多少款」) | **链路 2(HTTP 取数)** | 按 [`contract-ledger-query-playbook.md`](contract-ledger-query-playbook.md) 取数 + 聚合,结论后仍要配一张台账卡 |
|
|
15
15
|
| 报表 / 仪表盘 / 视图 / 图表 | **链路 2 + 图表** | 取数聚合后按图表规范呈现 |
|
|
16
16
|
|
|
17
17
|
判定口令:有「多少 / 几份 / 合计 / 排名 / 同比 / 环比 / 趋势 / 对比 / 报表 / 图表」才是统计;只有「看一下 / 看看 / 打开 / 我的」→ 出卡。
|
|
18
18
|
|
|
19
|
-
- 出卡时人员字段(`directPerf` 的 `xsjl` / `tdfzr` / `jgfzr
|
|
19
|
+
- 出卡时人员字段(`directPerf` 的 `xsjl` / `tdfzr` / `jgfzr`、`ecology` 的 `xsjl2`)要传 **`[{ id, name }]` 数组对象**(人员 ID + 人员姓名),只传 ID 字符串会丢姓名回显;ID 与姓名可用 `hrm.employee.query` 一次取到。
|
|
20
20
|
- 请人确认仅限**同名 ≥2 人**的场景,不得因为「想更准」就先跑一轮查询。
|
|
21
|
-
- 违规样例(2026-11-13):「看一下我的业绩」连跑 6 次 `list.query` 才发现本人无记录,且把同名「李浩(资管家)」的数据混进来解释——正确做法是一条 `contract.card
|
|
21
|
+
- 违规样例(2026-11-13):「看一下我的业绩」连跑 6 次 `list.query` 才发现本人无记录,且把同名「李浩(资管家)」的数据混进来解释——正确做法是一条 `contract.ledger.card` 出台账卡。
|
|
22
22
|
|
|
23
23
|
## 两条链路
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
## 硬规则(与源资料对齐,违反即错)
|
|
29
29
|
|
|
30
|
-
- `origin`
|
|
30
|
+
- `origin` **可省略**:2026-11-19 起,缺省时 CLI 按当前会话 `baseUrl` 自动取 scheme+host(对齐 `contract.modeltext.list` 的口径)。要显式指定就传完整 http/https 域名(如 `https://your-e10.example.com`)。⛔ 不要传 `{baseUrl}` 占位符——CLI 会拒(`origin_placeholder`),全库没有替换器。
|
|
31
31
|
- **人员 / 枚举 / 数值条件一律进 `needs_ui`**:由用户在页面检索、选择、填写后搜索,AI 不代操作,也不控制浏览器。
|
|
32
32
|
- **六菜单页面一律用组件卡打开**(见下节):直销合同/直销业绩/渠道订单/渠道订单-商务用台账页组件(LedgerPage),合同收款/项目验收用 ebdf 列表卡;禁止 `open_web`、禁止只给链接。
|
|
33
33
|
- **组合页(合同收款)不透传筛选 query**:`link` 只出入口地址,全部条件进 `needs_ui`;实际收款查询走 `performance.receipt.query`(底层 List,精确 eq)。
|
|
@@ -57,23 +57,13 @@
|
|
|
57
57
|
|
|
58
58
|
### 台账卡结构(脚本生成,禁止手写)
|
|
59
59
|
|
|
60
|
-
用 `contract.card
|
|
60
|
+
用 `contract.ledger.card` 生成(该 operation 已按菜单自动切换台账卡 / 列表卡,固定值都固化在操作里)。
|
|
61
61
|
Windows PowerShell 下先把入参落成 UTF-8 JSON 文件,再 `--input` 传路径:
|
|
62
62
|
|
|
63
63
|
```powershell
|
|
64
|
-
'{"menu":"直销合同","
|
|
65
|
-
weaver-work-cli --json contract run contract.card
|
|
64
|
+
'{"menu":"直销合同","title":"合同台账","comParamsJson":"{\"khmc\":\"泛微\"}"}' | Out-File -FilePath '<临时目录>\args.json' -Encoding utf8
|
|
65
|
+
& "<临时目录>\weaver-work-cli.cmd" --json contract run contract.ledger.card --input '<临时目录>\args.json'
|
|
66
66
|
```
|
|
67
|
-
|
|
68
|
-
macOS/Linux(bash/zsh):参数完全一致,只是写文件方式与本机路径不同(heredoc 单引号分隔符,`$` 不被展开):
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
cat > /tmp/args.json <<'JSON'
|
|
72
|
-
{"menu":"直销合同","origin":"https://www.e-cology.com.cn","title":"合同台账","comParamsJson":"{\"khmc\":\"泛微\"}"}
|
|
73
|
-
JSON
|
|
74
|
-
weaver-work-cli --json contract run contract.card.ebdf-list --input /tmp/args.json
|
|
75
|
-
```
|
|
76
|
-
|
|
77
67
|
生成的卡片:
|
|
78
68
|
|
|
79
69
|
```json
|
|
@@ -84,7 +74,7 @@ weaver-work-cli --json contract run contract.card.ebdf-list --input /tmp/args.js
|
|
|
84
74
|
"arguments": {
|
|
85
75
|
"type": "e10",
|
|
86
76
|
"title": "合同台账",
|
|
87
|
-
"src": "
|
|
77
|
+
"src": "{baseUrl}/sp/contract/ledger",
|
|
88
78
|
"width": 1300,
|
|
89
79
|
"sdkRenderType": "inline",
|
|
90
80
|
"sdkOptions": {
|
|
@@ -101,6 +91,7 @@ weaver-work-cli --json contract run contract.card.ebdf-list --input /tmp/args.js
|
|
|
101
91
|
}
|
|
102
92
|
```
|
|
103
93
|
|
|
94
|
+
- **`origin` 可省略**:CLI 按会话 `baseUrl` 自动解析 scheme+host;显式传时必须真实(如 `https://your-e10.example.com`),传 `{baseUrl}` 占位符会被拒(`origin_placeholder`)。
|
|
104
95
|
- **固定值**:`toolId=fill_form`、`arguments.type=e10`、`arguments.width=1300`、`sdkRenderType=inline`、`sdkOptions.compName=ui.CorsComponent`、`routerType=MemoryRouter`、`params_pc.app=@weapp/contract`、`params_pc.compName=LedgerPage`,`src` 与 `routerProps_pc.initialEntries` 都是 `/sp/contract/ledger`。
|
|
105
96
|
- **每次要变**:`callId`(`ledger-<菜单>-<YYYYMMDDHHmm>-01`,每轮唯一)、`arguments.title`、`params.viewKey`、`params.filters`。
|
|
106
97
|
- **props 位置**:`viewKey` 与 `filters` 放 `sdkOptions.params`,不要放 `params_pc` 或 `arguments` 顶层。等价于 `<LedgerPage viewKey="…" filters={{ … }} />`。
|
|
@@ -116,13 +107,13 @@ weaver-work-cli --json contract run contract.card.ebdf-list --input /tmp/args.js
|
|
|
116
107
|
| viewKey | 可用键 |
|
|
117
108
|
|---|---|
|
|
118
109
|
| `ecology` | `khmc` 客户名称、`hth` 合同编号、`htmc` 合同名称、`qdrq` 签订时间(区间)、`htzje` 合同总金额(区间)、`xslx` 销售类型、`xsjl2` 销售经理、`qy2` 大区、`hsjg` 核算机构 |
|
|
119
|
-
| `directPerf` | `hth` 合同号、`khmc` 客户名称、`yjny` 核算业绩年月(`2024-11` 开头包含,只传 `11` 命不中)、`xsjl` 销售经理、`tdfzr` 团队负责人、`jgfzr`
|
|
110
|
+
| `directPerf` | `hth` 合同号、`khmc` 客户名称、`yjny` 核算业绩年月(`2024-11` 开头包含,只传 `11` 命不中)、`xsjl` 销售经理、`tdfzr` 团队负责人、`jgfzr` 机构负责人(后三者均为人员浏览框,传 `[{ id, name }]` 数组,传姓名匹配不到) |
|
|
120
111
|
| `agree` | `dls` 代理商名称、`xyh` 协议编号、`qdrq` 签约日期(区间)、`htzje` 合同总金额(区间)、`sqjsrq` 代理结束日期(单日,后台按文本包含匹配) |
|
|
121
112
|
| `eoOrder` | `khmc` 客户名称、`qy3` 区域(后台「省份」)、`qdrq` 签订日期(区间)、`htzje` 合同总金额(区间)、`htzl` 合同类型、`syhhr` 事业合伙人、`ejsyhhr` 二级合伙人(只匹配「二级事业合伙人-外部」) |
|
|
122
113
|
| `etOrder` | `khmc` 客户名称、`htzl` 合同类型、`qy3` 区域、`qdrq` 签订日期(区间)、`htzje` 合同总金额(区间)、`syhhr` 事业合伙人 |
|
|
123
114
|
|
|
124
115
|
- CLI 标成 `needs_ui` 的项(数值单值、枚举、人员等)仍交用户在页面补填,AI 不代填、不猜值。
|
|
125
|
-
- `directPerf`
|
|
116
|
+
- `directPerf` 的三个人员字段与 `ecology` 的 `xsjl2` 都是人员浏览框,值必须为 `[{ id, name }]` 数组;只给姓名或裸 ID 字符串都不合规(按姓名查时整条进 `needs_ui`)。
|
|
126
117
|
|
|
127
118
|
### 两个例外:合同收款 / 项目验收
|
|
128
119
|
|