weaver-work-cli 0.1.42 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/chunks/{archive-J4I6MCKF.js → archive-ZQ4A4TV6.js} +399 -47
- package/dist/chunks/{archive-oa-BRZKKTO4.js → archive-oa-BBDP7AKJ.js} +12 -5
- package/dist/chunks/{asset-L7D4FAOZ.js → asset-ZOJVBWZH.js} +11 -4
- package/dist/chunks/{asset-idle-DADLLV75.js → asset-idle-XGB5IPGT.js} +7 -3
- package/dist/chunks/{attachment-content-K4C7VLWQ.js → attachment-content-CE3GMWTS.js} +5 -4
- package/dist/chunks/{blog-BVGQ7NZL.js → blog-QSHLZSFW.js} +11 -4
- package/dist/chunks/caizhilian-KCQYFH72.js +204 -0
- package/dist/chunks/{calendar-Q7NQY5Z2.js → calendar-DLGMRJQA.js} +12 -5
- package/dist/chunks/{chunk-W7BEHOSR.js → chunk-3WBIQLMB.js} +2 -2
- package/dist/chunks/{chunk-4PD5NWAX.js → chunk-3YV7PKRL.js} +2 -2
- package/dist/chunks/{chunk-JPRO6ER2.js → chunk-3ZMAQQ3W.js} +185 -60
- package/dist/chunks/{chunk-R4CHUSKC.js → chunk-4EXOIQDI.js} +40 -10
- package/dist/chunks/{chunk-OOUTBLZ4.js → chunk-56EZERK4.js} +1 -1
- package/dist/chunks/chunk-6N4JPNFL.js +76 -0
- package/dist/chunks/{chunk-SA6VBIHY.js → chunk-6NXT4ICB.js} +342 -17
- package/dist/chunks/{chunk-ZUX3P6BQ.js → chunk-727FH2NI.js} +1 -1
- package/dist/chunks/chunk-762M5XJS.js +215 -0
- package/dist/chunks/{chunk-GEWYMQME.js → chunk-77YP6I52.js} +1 -1
- package/dist/chunks/chunk-7BDPM5ST.js +11 -0
- package/dist/chunks/{chunk-G4UR6NXN.js → chunk-CZNZKOHR.js} +3 -3
- package/dist/chunks/{chunk-GHXCDPTM.js → chunk-DGMYACGJ.js} +1 -1
- package/dist/chunks/{chunk-4RAE6JXP.js → chunk-DLY5GUXX.js} +6 -3
- package/dist/chunks/{chunk-BYBSCN4X.js → chunk-G7PQWD4L.js} +6 -3
- package/dist/chunks/{chunk-EKWAQSLU.js → chunk-GR76ZDDX.js} +432 -2248
- package/dist/chunks/{chunk-APVFJUQH.js → chunk-HFXK54M4.js} +3 -3
- package/dist/chunks/{chunk-EZALDOQH.js → chunk-HP7JIYMT.js} +5 -2
- package/dist/chunks/{chunk-ZEDWSH32.js → chunk-IC62NFM5.js} +1 -1
- package/dist/chunks/{chunk-3KTFS4IA.js → chunk-JB34OE7R.js} +808 -85
- package/dist/chunks/{chunk-72CKAUAG.js → chunk-JWWTI63L.js} +59 -7
- package/dist/chunks/{chunk-P26ZWSKU.js → chunk-KIHNAS25.js} +5 -2
- package/dist/chunks/{chunk-NKZRQXST.js → chunk-LGKWL4OH.js} +200 -47
- package/dist/chunks/chunk-LRCPNDZA.js +2529 -0
- package/dist/chunks/{chunk-QKNKR4RH.js → chunk-LXFVWZLM.js} +4 -4
- package/dist/chunks/{chunk-NOODWMCL.js → chunk-O6CMPO65.js} +25 -2
- package/dist/chunks/{chunk-BIPYLLVS.js → chunk-OAE3AZBQ.js} +15 -15
- package/dist/chunks/chunk-P5GQRWDC.js +60 -0
- package/dist/chunks/{caizhilian-SAADNFD6.js → chunk-PGO4ILMQ.js} +44 -517
- package/dist/chunks/{chunk-2LV74IWP.js → chunk-Q4OYAQYH.js} +1 -1
- package/dist/chunks/{chunk-LDZQPUIA.js → chunk-T4MWQAQB.js} +8 -6
- package/dist/chunks/{chunk-BBKDXQEC.js → chunk-TGAGQV4I.js} +3 -3
- package/dist/chunks/{chunk-GPMFD4RD.js → chunk-TXUG266F.js} +1 -1
- package/dist/chunks/{chunk-FOAA27U5.js → chunk-U6R6FZHD.js} +184 -18
- package/dist/chunks/{chunk-LUSPKZKY.js → chunk-UG5G54VL.js} +1 -0
- package/dist/chunks/{chunk-NIAJ5ZCG.js → chunk-UL5XUQ25.js} +5 -2
- package/dist/chunks/{chunk-IZ7S7QUS.js → chunk-VIMCY4DI.js} +6 -6
- package/dist/chunks/chunk-VRPH24IC.js +76 -0
- package/dist/chunks/{chunk-FMPJJYYI.js → chunk-WRXSAVKO.js} +1 -1
- package/dist/chunks/{chunk-YRSZQUD2.js → chunk-YIKSL36S.js} +3 -3
- package/dist/chunks/{chunk-3SO6QL6U.js → chunk-YWX377BY.js} +5 -2
- package/dist/chunks/{chunk-BYATLLEF.js → chunk-Z3GDFVJR.js} +1 -1
- package/dist/chunks/{chunk-LADPYOWC.js → chunk-Z6UUBY37.js} +3 -3
- package/dist/chunks/{conflict-F2OMZRTO.js → conflict-IYJETSGT.js} +4 -3
- package/dist/chunks/{continuation-2CKSBLA6.js → continuation-3S37AUSH.js} +4 -3
- package/dist/chunks/{continuation-RN6PZN2M.js → continuation-3XLYYTKV.js} +4 -3
- package/dist/chunks/continuation-GW6PRWK3.js +12 -0
- package/dist/chunks/{continuation-HZIZRZBX.js → continuation-HFW2YT5S.js} +4 -3
- package/dist/chunks/{continuation-NLECEJPX.js → continuation-KI7DRRZN.js} +4 -3
- package/dist/chunks/{contract-5BETHRSG.js → contract-3QLAGYQL.js} +5803 -4593
- package/dist/chunks/{cowork-3MN6EQQO.js → cowork-3ACICHDQ.js} +11 -4
- package/dist/chunks/{create-flow-5FQNNMVO.js → create-flow-7JLC7UID.js} +8 -7
- package/dist/chunks/{ebuilder-form-SBHOYBUD.js → ebuilder-form-GWDTKEI2.js} +14 -9
- package/dist/chunks/{ehr-KMOJULKG.js → ehr-MYRDCHZ4.js} +357 -43
- package/dist/chunks/{employee-SAK2QYXX.js → employee-NOHNXC46.js} +3 -3
- package/dist/chunks/{env-LB7NBL2O.js → env-3MBHAWBL.js} +4 -3
- package/dist/chunks/{esb-W2PJCFCX.js → esb-4BQHNP5C.js} +12 -7
- package/dist/chunks/{factory-6ZFQXQ46.js → factory-TZEVU4DU.js} +3 -2
- package/dist/chunks/{fna-ZQPCUV4R.js → fna-ZVB2IILI.js} +14 -8
- package/dist/chunks/{group-chat-2HHAJN46.js → group-chat-KL3HFKRM.js} +5 -4
- package/dist/chunks/{host-YTODKMSL.js → host-3TNBMDTR.js} +5 -5
- package/dist/chunks/host-7NTIBSPK.js +25 -0
- package/dist/chunks/{host-4CBHGOHT.js → host-7OWWPLM4.js} +5 -5
- package/dist/chunks/{host-ATKVNZAT.js → host-G3VU7SDW.js} +5 -5
- package/dist/chunks/{host-BQH22NTQ.js → host-M4XP5URR.js} +5 -5
- package/dist/chunks/{host-X2CSLFM6.js → host-TUOIOEMC.js} +5 -5
- package/dist/chunks/{hrm-FFM4UJFS.js → hrm-UNKCCCGP.js} +11 -7
- package/dist/chunks/{im-VEHKDQPB.js → im-NJB7ZYMH.js} +8 -7
- package/dist/chunks/{invoice-LVIKSIIF.js → invoice-OQP3TMKQ.js} +636 -1768
- package/dist/chunks/{jiuchuanhui-X6DINO5P.js → jiuchuanhui-ASFZBMPU.js} +14 -6
- package/dist/chunks/{lazy-dispatch-KSWTN5L6.js → lazy-dispatch-UH6HGK2I.js} +7 -6
- package/dist/chunks/{mail-VDKRGUD3.js → mail-M3HJF5ER.js} +16 -14
- package/dist/chunks/{meeting-CLC6HP3Z.js → meeting-C67EHQ4Z.js} +21 -14
- package/dist/chunks/{okr-CHG4OO3U.js → okr-EVX7FB5G.js} +12 -5
- package/dist/chunks/{operations-5QL3AECO.js → operations-62N6EP3C.js} +4 -3
- package/dist/chunks/operations-J7PUIVWZ.js +15 -0
- package/dist/chunks/{plan-XWR75667.js → plan-2QJQEPBO.js} +12 -5
- package/dist/chunks/{project-5BXOOKMG.js → project-XELELW2T.js} +11 -4
- package/dist/chunks/reception-5WITA44R.js +1899 -0
- package/dist/chunks/{recruit-stage-DGMFNNDE.js → recruit-stage-AHY5QAMF.js} +745 -149
- package/dist/chunks/{registry-RHMW6ANW.js → registry-AQVGHUM6.js} +7 -6
- package/dist/chunks/{registry-OZSMDVPP.js → registry-PVUZQDDQ.js} +3 -3
- package/dist/chunks/{registry-7FFOXIAW.js → registry-QJCZ2GVG.js} +7 -6
- package/dist/chunks/{registry-Z43434VG.js → registry-VWXWPVAG.js} +4 -4
- package/dist/chunks/registry-XPWPGHYE.js +24 -0
- package/dist/chunks/{room-recommend-62H7ZQQ6.js → room-recommend-CNWE5WQK.js} +8 -5
- package/dist/chunks/{schedule-FNXKH3DQ.js → schedule-YYNYBQIE.js} +6 -5
- package/dist/chunks/{workflow-ADHKCAJK.js → workflow-BSYT5TGL.js} +15 -8
- package/dist/cmd/action.js +6 -0
- package/dist/cmd/identity/index.js +45 -0
- package/dist/cmd/index.js +2 -0
- package/dist/core/continuation-ttl.js +18 -0
- package/dist/core/error-codes.js +85 -0
- package/dist/core/logger.js +11 -0
- package/dist/index.js +37 -31
- package/dist/internal/e10/auth/commands.js +195 -8
- package/dist/internal/e10/auth/error-log.js +312 -0
- package/dist/internal/e10/auth/session.js +17 -3
- package/dist/internal/e10/auth/xiaoe.js +176 -13
- package/dist/internal/e10/auth-recovery.js +39 -12
- package/dist/internal/e10/context.js +29 -3
- package/dist/internal/skills/install.js +9 -1
- package/dist/shortcuts/archive/continuation.js +2 -1
- package/dist/shortcuts/archive/index.js +3 -0
- package/dist/shortcuts/archive/operations/borrow-list.js +105 -14
- package/dist/shortcuts/archive/operations/confirm.js +2 -1
- package/dist/shortcuts/archive/operations/flow-url.js +182 -22
- package/dist/shortcuts/archive/operations/getPageUrl.js +75 -0
- package/dist/shortcuts/archive/operations/prelib.js +33 -4
- package/dist/shortcuts/archive/operations/shared.js +52 -0
- package/dist/shortcuts/archive-oa/continuation.js +2 -1
- package/dist/shortcuts/archive-oa/index.js +2 -0
- package/dist/shortcuts/archive-oa/operations/confirm.js +2 -1
- package/dist/shortcuts/asset/continuation.js +2 -1
- package/dist/shortcuts/asset/index.js +2 -0
- package/dist/shortcuts/asset-idle/index.js +2 -0
- package/dist/shortcuts/blog/continuation.js +2 -1
- package/dist/shortcuts/blog/index.js +2 -0
- package/dist/shortcuts/caizhilian/continuation.js +2 -1
- package/dist/shortcuts/caizhilian/index.js +2 -0
- package/dist/shortcuts/caizhilian/operations/confirm.js +3 -2
- package/dist/shortcuts/calendar/continuation.js +2 -1
- package/dist/shortcuts/calendar/index.js +2 -0
- package/dist/shortcuts/calendar/operations/write.js +1 -1
- package/dist/shortcuts/contract/continuation.js +2 -1
- package/dist/shortcuts/contract/host.js +111 -4
- package/dist/shortcuts/contract/index.js +21 -0
- package/dist/shortcuts/contract/manifest.js +125 -0
- package/dist/shortcuts/contract/ooxml/clause-insert.js +249 -0
- package/dist/shortcuts/contract/operations/clause-insert.js +56 -0
- package/dist/shortcuts/contract/operations/customer.js +192 -0
- package/dist/shortcuts/contract/operations/file-download.js +75 -0
- package/dist/shortcuts/contract/operations/flow.js +44 -2
- package/dist/shortcuts/contract/operations/form-info.js +162 -62
- package/dist/shortcuts/contract/operations/registry.js +8 -0
- package/dist/shortcuts/contract/operations/review.js +116 -1
- package/dist/shortcuts/contract/operations/summary.js +177 -0
- package/dist/shortcuts/contract/operations/upload.js +64 -4
- package/dist/shortcuts/contract/operations/write.js +2 -1
- package/dist/shortcuts/contract/upload-cache.js +104 -0
- package/dist/shortcuts/cowork/continuation.js +2 -1
- package/dist/shortcuts/cowork/index.js +2 -0
- package/dist/shortcuts/ebuilder-form/continuation.js +2 -1
- package/dist/shortcuts/ebuilder-form/index.js +2 -0
- package/dist/shortcuts/ebuilder-form/operations/write.js +3 -2
- package/dist/shortcuts/ehr/continuation.js +2 -1
- package/dist/shortcuts/ehr/index.js +2 -0
- package/dist/shortcuts/ehr/operations/attend-write.js +1 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +186 -5
- package/dist/shortcuts/ehr/operations/recruit-position.js +239 -6
- package/dist/shortcuts/ehr/operations/recruit-write.js +18 -19
- package/dist/shortcuts/ehr/operations/recruit.js +17 -5
- package/dist/shortcuts/esb/continuation.js +2 -1
- package/dist/shortcuts/esb/index.js +2 -0
- package/dist/shortcuts/esb/operations/trigger.js +2 -1
- package/dist/shortcuts/fna/continuation.js +2 -1
- package/dist/shortcuts/fna/index.js +2 -0
- package/dist/shortcuts/fna/operations/invoice-writeoff.js +1 -1
- package/dist/shortcuts/fna/operations/loan.js +1 -1
- package/dist/shortcuts/hrm/index.js +2 -0
- package/dist/shortcuts/hrm/operations/employee.js +29 -1
- package/dist/shortcuts/im/continuation.js +2 -1
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/continuation.js +2 -1
- package/dist/shortcuts/invoice/index.js +14 -15
- package/dist/shortcuts/invoice/invoice-record.js +93 -0
- package/dist/shortcuts/invoice/manifest.js +190 -393
- package/dist/shortcuts/invoice/operations/add.js +2 -1
- package/dist/shortcuts/invoice/operations/delete.js +2 -1
- package/dist/shortcuts/invoice/operations/import.js +2 -1
- package/dist/shortcuts/invoice/operations/issuing-contract-detail.js +86 -0
- package/dist/shortcuts/invoice/operations/issuing-contracts.js +210 -0
- package/dist/shortcuts/invoice/operations/registry.js +17 -17
- package/dist/shortcuts/invoice/operations/reim-auto.js +4 -569
- package/dist/shortcuts/invoice/operations/reim.js +52 -341
- package/dist/shortcuts/invoice/operations/shared.js +21 -4
- package/dist/shortcuts/invoice/operations/update.js +2 -1
- package/dist/shortcuts/invoice/projection.js +10 -62
- package/dist/shortcuts/jiuchuanhui/continuation.js +2 -1
- package/dist/shortcuts/jiuchuanhui/index.js +2 -0
- package/dist/shortcuts/jiuchuanhui/operations/datajson.js +2 -1
- package/dist/shortcuts/jiuchuanhui/operations/esb.js +2 -1
- package/dist/shortcuts/mail/continuation.js +2 -1
- package/dist/shortcuts/mail/index.js +2 -0
- package/dist/shortcuts/mail/operations/mail-blacklist.js +1 -1
- package/dist/shortcuts/mail/operations/mail-contacts.js +1 -1
- package/dist/shortcuts/mail/operations/mail-send.js +1 -1
- package/dist/shortcuts/mail/operations/mail-sign.js +1 -1
- package/dist/shortcuts/mail/operations/mail-template.js +1 -1
- package/dist/shortcuts/meeting/continuation.js +2 -1
- package/dist/shortcuts/meeting/index.js +2 -0
- package/dist/shortcuts/meeting/operations/change.js +1 -1
- package/dist/shortcuts/meeting/operations/create.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +198 -65
- package/dist/shortcuts/meeting/operations/eb/decision.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/draft-memory.js +56 -0
- package/dist/shortcuts/meeting/operations/eb/factory.js +59 -4
- package/dist/shortcuts/meeting/operations/eb/person-cache.js +2 -2
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +47 -5
- package/dist/shortcuts/meeting/operations/invitation-publish.js +132 -0
- package/dist/shortcuts/meeting/operations/lifecycle.js +1 -1
- package/dist/shortcuts/meeting/operations/receipts.js +1 -1
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/meeting/operations/signs.js +1 -1
- package/dist/shortcuts/okr/continuation.js +2 -1
- package/dist/shortcuts/okr/index.js +2 -0
- package/dist/shortcuts/okr/operations/write.js +1 -1
- package/dist/shortcuts/plan/continuation.js +2 -1
- package/dist/shortcuts/plan/index.js +2 -0
- package/dist/shortcuts/plan/operations/write.js +1 -1
- package/dist/shortcuts/project/continuation.js +2 -1
- package/dist/shortcuts/project/index.js +2 -0
- package/dist/shortcuts/reception/constants.js +53 -0
- package/dist/shortcuts/reception/errors.js +54 -0
- package/dist/shortcuts/reception/host.js +125 -0
- package/dist/shortcuts/reception/index.js +198 -0
- package/dist/shortcuts/reception/manifest.js +177 -0
- package/dist/shortcuts/reception/operations/ask.js +71 -0
- package/dist/shortcuts/reception/operations/browsertool.js +58 -0
- package/dist/shortcuts/reception/operations/compose.js +129 -0
- package/dist/shortcuts/reception/operations/customparams.js +74 -0
- package/dist/shortcuts/reception/operations/doc.js +238 -0
- package/dist/shortcuts/reception/operations/docrender.js +36 -0
- package/dist/shortcuts/reception/operations/panels.js +179 -0
- package/dist/shortcuts/reception/operations/registry.js +26 -0
- package/dist/shortcuts/reception/operations/render-assets.js +184 -0
- package/dist/shortcuts/reception/operations/render.js +123 -0
- package/dist/shortcuts/reception/operations/runs.js +38 -0
- package/dist/shortcuts/reception/operations/schedule.js +127 -0
- package/dist/shortcuts/reception/operations/shared.js +196 -0
- package/dist/shortcuts/reception/operations/snapshot.js +68 -0
- package/dist/shortcuts/reception/operations/types.js +1 -0
- package/dist/shortcuts/reception/operations.js +33 -0
- package/dist/shortcuts/reception/upload.js +218 -0
- package/dist/shortcuts/recruit-stage/context.js +145 -33
- package/dist/shortcuts/recruit-stage/continuation.js +2 -1
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +86 -16
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +6 -4
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +289 -48
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +207 -25
- package/dist/shortcuts/recruit-stage/shared.js +161 -18
- package/dist/shortcuts/workflow/continuation.js +2 -1
- package/dist/shortcuts/workflow/index.js +4 -0
- package/dist/shortcuts/workflow/operations/form.js +32 -8
- package/dist/shortcuts/workflow/operations/read.js +8 -3
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +92 -5
- package/dist/shortcuts/workflow/operations/todoSmartConvert/priorityExpr.js +509 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +22 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +32 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +57 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +165 -52
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +57 -14
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +44 -18
- package/dist/shortcuts/workflow/operations/write.js +1 -1
- package/docs/_catalog.md +3 -0
- package/docs/agent-invoice.md +1 -1
- package/docs/archive-oa.md +1 -1
- package/docs/caizhilian.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/contract.md +2 -1
- package/docs/e10-auth.md +19 -1
- package/docs/ehr.md +2 -2
- package/docs/esb.md +1 -1
- package/docs/im.md +1 -1
- package/docs/invoice.md +8 -12
- package/docs/okr.md +1 -1
- package/docs/reception.md +119 -0
- package/docs/todo-smart-convert/data-contract.md +7 -0
- package/package.json +1 -1
- package/scripts/clean.mjs +43 -2
- package/skill-template/business-info.json +18 -2
- package/skill-template/domains/caizhilian.md +1 -1
- package/skill-template/domains/jinchengda.md +2 -0
- package/skill-template/domains/reception-flow.md +18 -0
- package/skill-template/domains/yepiaotong.md +4 -7
- package/skills/weaver-e10-archive-oa/references/source-manifest.json +14 -14
- package/skills/weaver-e10-blog/references/blog-publish.md +1 -1
- package/skills/weaver-e10-blog/references/source-manifest.json +7 -7
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +21 -21
- package/skills/weaver-e10-caizhilian/references/write-protocol.md +2 -2
- package/skills/weaver-e10-calendar/references/calendar-write.md +1 -1
- package/skills/weaver-e10-cowork/SKILL.md +1 -1
- package/skills/weaver-e10-ebuilder-form/SKILL.md +1 -1
- package/skills/weaver-e10-ebuilder-form/references/custom-api.md +1 -1
- package/skills/weaver-e10-ebuilder-form/references/openapi-write.md +1 -1
- package/skills/weaver-e10-esb/SKILL.md +2 -2
- package/skills/weaver-e10-esb/references/source-manifest.json +22 -22
- package/skills/weaver-e10-esb/references/trigger.md +2 -2
- package/skills/weaver-e10-jinchengda/SKILL.md +198 -205
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +759 -0
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +250 -0
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +146 -7
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +178 -0
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +75 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +137 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +163 -0
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +52 -3
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +92 -5
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +602 -0
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +209 -0
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +126 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +312 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +555 -0
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +47 -12
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +469 -0
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +154 -1
- package/skills/weaver-e10-jinchengda/references/contract-request-write.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +224 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +355 -0
- package/skills/weaver-e10-jinchengda/references/source-manifest.json +29 -29
- package/skills/weaver-e10-jucailin/SKILL.md +1 -1
- package/skills/weaver-e10-jucailin/references/attend-write.md +2 -2
- package/skills/weaver-e10-jucailin/references/recruit-create.md +15 -4
- package/skills/weaver-e10-jucailin/references/recruit-write.md +3 -3
- package/skills/weaver-e10-meeting/SKILL.md +64 -14
- package/skills/weaver-e10-meeting/references/meeting-change.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-create.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-lifecycle.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
- package/skills/weaver-e10-okr/references/okr-align.md +1 -1
- package/skills/weaver-e10-okr/references/okr-keyresult.md +1 -1
- package/skills/weaver-e10-okr/references/okr-write.md +1 -1
- package/skills/weaver-e10-okr/references/source-manifest.json +8 -8
- package/skills/weaver-e10-plan/references/plan-report-write.md +1 -1
- package/skills/weaver-e10-plan/references/source-manifest.json +20 -20
- package/skills/weaver-e10-qiyecheng/references/loan-management.md +1 -1
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +18 -18
- package/skills/weaver-e10-reception-flow/SKILL.md +173 -0
- package/skills/weaver-e10-reception-flow/assets//350/241/214/347/250/213/345/215/225/346/250/241/346/235/277-/346/263/233/345/276/256.docx +0 -0
- package/skills/weaver-e10-reception-flow/data/fields-snapshot.json +213 -0
- package/skills/weaver-e10-reception-flow/references/browsertool.md +68 -0
- package/skills/weaver-e10-reception-flow/references/env-pitfalls.md +51 -0
- package/skills/weaver-e10-reception-flow/references/fields-snapshot.md +227 -0
- package/skills/weaver-e10-reception-flow/references/guide.md +179 -0
- package/skills/weaver-e10-reception-flow/scripts/locate.sh +14 -0
- package/skills/weaver-e10-reception-flow/scripts/render.py +724 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +19 -10
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +10 -2
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +1 -1
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +204 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +13 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +29 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +27 -14
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +21 -2
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +9 -1
- package/skills/weaver-e10-shijingran/SKILL.md +5 -5
- package/skills/weaver-e10-shijingran/references/source-manifest.json +37 -36
- package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +2 -0
- package/skills/weaver-e10-wenshuding/SKILL.md +17 -7
- package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +28 -0
- package/skills/weaver-e10-wenshuding/references/archive-flow.md +24 -8
- package/skills/weaver-e10-wenshuding/references/archive-prelib-list.md +3 -0
- package/skills/weaver-e10-wenshuding/references/archive-prelib-open.md +4 -0
- package/skills/weaver-e10-wenshuding/references/archive-search.md +3 -1
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/SKILL.md +19 -17
- package/skills/weaver-e10-workflow/aigroup/default.json +10 -6
- package/skills/weaver-e10-workflow/references/source-manifest.json +32 -32
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +36 -3
- package/skills/weaver-e10-workflow/references/workflow-memory.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +9 -6
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +152 -1
- package/skills/weaver-e10-yepiaotong/SKILL.md +19 -26
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +13 -10
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +194 -155
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +28 -32
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +5 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +8 -10
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +211 -616
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +149 -117
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +17 -20
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +20 -39
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +55 -22
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +7 -17
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +88 -92
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +144 -354
- package/skills/weaver-e10-yimiaoban/SKILL.md +18 -6
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +31 -1
- package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +72 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +11 -11
- package/dist/chunks/chunk-TTPJJJC4.js +0 -465
- package/dist/chunks/registry-BKBZPBAJ.js +0 -23
- package/dist/shortcuts/invoice/markdown.js +0 -172
- package/dist/shortcuts/invoice/operations/issuing-qys.js +0 -424
- package/skills/weaver-e10-meeting.zip +0 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +0 -131
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-form-fill-rules.md +0 -179
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
name: weaver-e10-jinchengda
|
|
3
3
|
display_name: 泛微今承达合同管理
|
|
4
4
|
display_name_en: Weaver Jinchengda Contract Management
|
|
5
|
-
description: "泛微 E10
|
|
6
|
-
description_zh: "泛微今承达合同管理。触发场景:审查合同/上传合同做 AI
|
|
7
|
-
description_en: "Weaver E10 Jinchengda contract management
|
|
8
|
-
version: 1.
|
|
5
|
+
description: "泛微 E10 今承达合同管理(编排层):把「上传合同 / 指定的合同」判成契约锁、新客户、常规二次销售、老客户增值四类之一,再分派到发起审批、智能法审、条款改写、要素抽取、文本比对、资信查询六个出口;并覆盖合同类型/模板/条款库增删改查与条款引用、签约主体、客户主数据全称查询、报价单转合同、业绩核算台账查询、合同智能助手维护。所有能力通过 weaver-work-cli contract 执行。"
|
|
6
|
+
description_zh: "泛微今承达合同管理。触发场景:审查合同/上传合同做 AI 审查/导出审查报告、比对两版合同/查差异、推荐合同模板或范文、查企业资信、找合同模板、维护条款库(新增/修改/删除条款、条款分类、条款组)、查或新建签约主体、判新客户还是老客户/查客户主数据、业绩核算(直销合同/直销业绩/合同收款/项目验收/渠道订单六菜单过滤链接、按合同号查来源台账与收款台账)、报价单转合同(解析报价 xlsx、用真实 docx 模板生成合同)、维护合同智能助手(新建助手、启用停用智能体、提示语、内控规则、要素抽取、关联流程)、发起/带文件打开合同审批流程、保存/提交/催办合同审批。"
|
|
7
|
+
description_en: "Weaver E10 Jinchengda contract management with an orchestration layer: classify an uploaded or referenced contract into one of four flows (Qiyuesuo / new customer / regular resale / existing-customer upsell), then dispatch to one of six exits (launch approval, AI review, clause rewrite, element extraction, document comparison, credit lookup). Also covers contract types/templates, clause library CRUD, clause references, signing subjects, customer master-data lookup by full name, quote-to-contract, performance ledger queries, and AI assistant configuration."
|
|
8
|
+
version: 1.6.0
|
|
9
9
|
author: 泛微网络科技股份有限公司
|
|
10
10
|
agent_created: true
|
|
11
11
|
requires:
|
|
@@ -15,234 +15,227 @@ dependencies:
|
|
|
15
15
|
cliHelp: "weaver-work-cli contract --help"
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
-
**CRITICAL —
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
**CRITICAL — 开始前先读共享规则**:同级目录存在 `weaver-e10-shared` 技能时,MUST 先用 Read 工具读取 [`../weaver-e10-shared/SKILL.md`](../weaver-e10-shared/SKILL.md)(安装、E10 认证、JSON 输出和高风险写入规则)。
|
|
19
|
+
若共享规则不存在、CLI 未安装或读取失败,说明本技能的必需依赖缺失,必须调用宿主提供的提问/确认弹框,向用户说明必须补齐 `weaver-work-cli` 与共享 skill `weaver-e10-shared`(不补齐本技能无法执行)及补齐计划,并把下面两条待执行命令原样完整展示在确认信息中;Agent 不能在未确认时自行安装。
|
|
20
|
+
用户明确确认后,Agent 必须直接代为按顺序执行且每条仅执行一次,不得要求或引导用户手动执行:① 缺 CLI 时执行 `npm install -g weaver-work-cli`;② 再执行 `weaver-work-cli skills install shared --target-dir <SKILLS_ROOT>` 装回共享 skill,
|
|
21
|
+
`<SKILLS_ROOT>` 取本 SKILL.md 所在目录的上一级绝对目录(即与本技能同级的 skills 根目录),不要省略 `--target-dir`——省略会装进默认目录,
|
|
22
|
+
导致本技能依然读不到共享规则。
|
|
23
|
+
命令均成功后重新读取共享规则;若环境中确实无法补齐共享规则,停止依赖登录态的业务操作,告知用户共享认证规则缺失;不要在业务 Skill 中猜测宿主或写死登录命令。
|
|
24
|
+
|
|
25
|
+
认证与登录态只能按共享规则通过 `weaver-work-cli auth ...` 判断:本 Skill 不自行发起 HTTP 请求,请求头凭证由 CLI 统一注入,Agent 不手写、不索取、不转存,也不得直接读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。业务入参里出现认证字段会被 CLI 拒绝或剥离。
|
|
26
|
+
|
|
27
|
+
业务命令返回 `authentication` / `session_expired` 时立即停止,并按共享规则分流:
|
|
28
|
+
|
|
29
|
+
- 已有 XiaoE 会话的 `session_expired` 已由 CLI 底层自动换票并重放一次;若错误最终仍返回,Agent 只反馈并停止,不执行任何登录命令、其他登录 Skill 或原业务命令。
|
|
30
|
+
- 仅首次无会话或明确的 `auth not found` 才复用任务开始时的宿主判定;明确为 XiaoE 时只执行一次 `weaver-work-cli auth xiaoe`,返回 `authentication/xiaoe_credential_unavailable` 时停止,不回退浏览器登录。
|
|
31
|
+
- 首次认证且非 XiaoE 时不得执行 `auth xiaoe`;取得用户确认的真实 E10 登录域名后,执行 `weaver-work-cli auth login --base-url "<用户确认的 E10 登录域名>" --agent_type "<当前智能体名称>"`。
|
|
32
|
+
- 显式登录后只读操作可重新执行;写操作不得复用旧 continuation,必须重新 prepare 并重新确认。已返回 `partial` / `write_uncertain` 时先只读回查,禁止直接重放写入。
|
|
33
|
+
|
|
34
|
+
所有命令通过 `weaver-work-cli --json contract run <operation>` 执行。**JSON 入参按 shell 分流(强制,2026-11-03 PowerShell 实测教训)**:
|
|
35
|
+
|
|
36
|
+
| 环境 | 传参方式 | 说明 |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| **Windows PowerShell** | **一律先写 UTF-8 JSON 文件,再 `--input <path>`** | PowerShell 对 `\"` 的转义规则与 bash 不同,`--input-json '{\"a\":\"b\"}'` 会被解析成非法 JSON(`input_invalid`),整轮白跑 |
|
|
39
|
+
| macOS / Linux(bash/zsh) | 简单 JSON 可用 `--input-json '<json>'`;复杂/多行写文件后 `--input` | — |
|
|
40
|
+
| 管道 | 仅在确认当前 shell 能稳定传管道时用 `--input -` | — |
|
|
41
|
+
|
|
42
|
+
**禁止在同一条命令上"试第二种写法"**:首次执行前就按上表选定方式,不要先试内联失败、再改文件重试。
|
|
43
|
+
|
|
44
|
+
PowerShell 正确写法(**示例统一用这一套**):
|
|
45
|
+
|
|
46
|
+
```powershell
|
|
47
|
+
# 1. 写入参文件(UTF-8)
|
|
48
|
+
'{"flow":"老客户增值"}' | Out-File -FilePath 'D:\work\tmp\args.json' -Encoding utf8
|
|
49
|
+
# 2. 用 --input 引用
|
|
50
|
+
weaver-work-cli --json contract run contract.flow.page --input 'D:\work\tmp\args.json'
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**references 是第一信息源**,`weaver-work-cli contract schema` 是 operation、字段和风险等级的合约来源,不要猜字段。
|
|
54
|
+
命令示例、提示词和临时说明必须同时兼容 Windows PowerShell 和 macOS/Linux;涉及 JSON 输入、用户目录、路径分隔符、文件删除、目录查看或文件比对时,同时给两套示例。Windows/PowerShell 下不要使用 `printf`、`$HOME/...`、`~/...`、bash 反斜杠续行、`rm/ls/diff/python3` 等 Unix-only 写法。
|
|
23
55
|
涉及合同正文、附件、图片、本地文件或远程 URL 文件的操作,执行前必须提醒用户:文件内容可能被上传到 E10 今承达,并可能进入当前大模型上下文用于理解和处理;必须等待用户明确确认后才继续。
|
|
24
56
|
|
|
25
|
-
##
|
|
57
|
+
## 这是什么
|
|
58
|
+
|
|
59
|
+
今承达合同管理的**编排层 + 执行层**。用户丢过来一份文件(或一个合同流程)但不说要做什么时,本 skill 的默认动作是**直接处理、只报结论**,不是"问你要干什么":
|
|
26
60
|
|
|
27
|
-
|
|
61
|
+
```
|
|
62
|
+
上传并解析文件 → 判四类归属(契约锁 / 新客户 / 常规二次销售 / 老客户增值)
|
|
63
|
+
→ 抽要素 + 出摘要 HTML → 一句话结论 + 关键信息 + 行为卡片
|
|
64
|
+
→ 用户点卡片 → 执行 → 回读并复述
|
|
65
|
+
```
|
|
28
66
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
- 文档比对:比对合同、比对两个版本、合同差异、版本对比、导出比对报告
|
|
32
|
-
- 企业资信:查资信、企业工商信息、主体资信、合作方背景
|
|
33
|
-
- 合同审批场景:销售合同、采购合同、协议合同、合同变更、合同解除、合同关闭、合同开票、合同收款、合同付款、履约计划、进度提报、供应商准入
|
|
34
|
-
- 动作词:查条款 / 推荐条款 / 引用条款、查或新建签约主体、发起合同、带文件打开流程、保存合同表单、提交审批、催办、查审批进度、查审批意见
|
|
67
|
+
- 判为**合同** → 卡片给三条:发起「<flowKey>」合同流程 / 合同预审 / 打开合同摘要详情
|
|
68
|
+
- 判为**报价单或标书** → 卡片基础只有一条:按报价单生成合同(需真实 .docx 模板);**若文件写明了对方主体/销售对象的企业全称,可追加一条「查对方资信」**(资信查询只依赖企业全称,与文件是合同还是报价单无关)。仍**禁止**给预审、摘要、发起审批——这些动作对报价单无意义
|
|
35
69
|
|
|
36
|
-
|
|
70
|
+
**上传不做二次询问**:用户上传文件即视为同意处理,直接 `review.upload` 拿 `fileId`,最多在结果里一句话说明"已上传至 E10 并完成解析"。**禁止**弹确认框问"是否允许解析/上传"。
|
|
37
71
|
|
|
38
|
-
|
|
72
|
+
**对话只讲业务结论**:只说"这是什么合同 + 属于四类中哪一类 + 关键信息",然后给 `<browsertool>` 卡片。**禁止**输出置信度、判定依据、文件大类判定、本地文件路径、产物文件名(如"摘要已生成:C:/...html")、大段动作解释、反问式收尾(如"要测哪个?")。细则见 [`contract-doc-triage.md`](references/contract-doc-triage.md) §0。
|
|
39
73
|
|
|
40
|
-
|
|
74
|
+
判定与分派规则见 [`orchestration.md`](references/orchestration.md)(状态机 S0~S5、任务合约、选项生成)和 [`contract-object-detect.md`](references/contract-object-detect.md)(五段判定链 D0~D4)。**判合同类型以合同内容为准,客户主数据只作佐证与兜底**——依据见 [`contract-type-fingerprints.md`](references/contract-type-fingerprints.md)。
|
|
41
75
|
|
|
42
|
-
|
|
76
|
+
## 什么时候用
|
|
43
77
|
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
- 合同智能助手 / 助手配置 / 智能体启用停用 / 提示语 / 内控规则与规则组 / 要素抽取 / 助手关联流程
|
|
55
|
-
- 发起合同 / 带文件打开流程 / 保存合同表单 / 提交合同审批 / 催办 / 审批进度 / 审批意见
|
|
78
|
+
- **合同审查/法审**:审查合同、AI 审查、上传合同、风险点、内控问题、纠错、导出审查报告
|
|
79
|
+
- **文档比对**:比对合同、比对两个版本、合同差异、版本对比、导出比对报告
|
|
80
|
+
- **新老客户判定**:最终用户、客户主数据、客户全称查询、新客户还是老客户、老客户二次销售、老客户增值
|
|
81
|
+
- **发起审批**:发起合同、带文件打开流程、保存合同表单、提交审批、催办、审批进度、审批意见
|
|
82
|
+
- **模板与条款**:合同类型、合同模板、模板分类、模板推荐、范文推荐、条款、条款分类、条款标签、条款搜索、条款推荐、条款引用、条款库维护(新增/修改/删除条款与条款组)
|
|
83
|
+
- **主体**:我方签约主体、客户签约主体、供应商主体、签约主体库
|
|
84
|
+
- **其他**:企业资信页、业绩核算(六菜单过滤链接、来源/收款台账)、报价单转合同、合同智能助手(助手、智能体、提示语、内控规则、要素抽取、关联流程)
|
|
85
|
+
- **台账查询类常见诉求**(不需要文件):我的合同 / 某客户的合同 / 合同收款 / 项目验收 / 直销业绩 / 渠道订单 / 审批状态 —— 见 [`contract-performance-query.md`](references/contract-performance-query.md) 与引擎 §3.2
|
|
86
|
+
- **条款抽取入库**:从合同正文/审查结论抽出履约条款、风险条款 → 对话内按编号直接呈现(条款名 + 原文位置 + 摘要)→ 用户回编号勾选 → 存入条款库,见 [`contract-element-extract.md`](references/contract-element-extract.md)
|
|
87
|
+
- **条款推荐插入**:从条款库召回候选 → 智能推荐 → 对话内编号呈现(附真实建议位置)→ 用户勾选 → **按章节定位插入合同 docx 且自动跳过重复条款**(报价单生成的合同、上传的合同都适用),见 [`contract-clause-insert.md`](references/contract-clause-insert.md)
|
|
56
88
|
|
|
57
|
-
|
|
89
|
+
> 只要核心对象是合同类型 / 模板 / 条款 / 条款引用 / 签约主体 / 合同客户 / 合同审批流程,就归本 skill。企业资信**数据明细**(诉讼、被执行、股权)只能开页面不能返回数据;通用 E10 对象操作用对应模块 skill。
|
|
58
90
|
|
|
59
|
-
##
|
|
91
|
+
## 编排层:S0~S5
|
|
60
92
|
|
|
61
|
-
|
|
|
93
|
+
| 状态 | 目标 | 允许出口 |
|
|
62
94
|
|---|---|---|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
|
77
|
-
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
|
88
|
-
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
|
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
- 创建流程 ≠ 保存表单 ≠ 提交审批,必须分别报告每一步结果,不得概括为"成功"
|
|
179
|
-
|
|
180
|
-
### 7) 错误语义驱动,而不是盲目重试
|
|
181
|
-
|
|
182
|
-
- 失败后先看退出码、`error.type`、`error.subtype` 和 `error.message`
|
|
183
|
-
- 写请求超时或断线时不得盲目重试,先用查询接口确认是否已生效
|
|
184
|
-
- `submitRequest` 返回 `1200301`(当前 userid 为空):停止并诊断会话状态,不自动切换接口
|
|
185
|
-
- `submitRequest` 返回 `1200306`(服务端必填校验):解析缺失字段列表,逐字段补全后重试(最多 3 轮),不切换接口
|
|
186
|
-
- 错误为 `session_expired` 时立即停止;XiaoE 的底层自动恢复已执行,Agent 不再登录或重试。首次认证缺失才读取共享规则 `../weaver-e10-shared/references/e10-auth-and-session.md`
|
|
187
|
-
|
|
188
|
-
### 8) 智能助手的三个高频误伤
|
|
189
|
-
|
|
190
|
-
- **启用/停用智能体只允许改 `status_info`**(1 开 / 0 关);`display` 是平台保留字段(前端卡片展示),技术上会被静默落库导致卡片从界面消失——CLI 检测到输入含 `display` 直接拒绝
|
|
191
|
-
- **删除类接口普遍假成功**:删助手、删提示语、删关联流程对不存在的 id 也返回 success;CLI 的 apply 强制回读复核,`type=contract_ai_workflow_data` 由 CLI 强制携带
|
|
192
|
-
- **内控规则三步缺一不可**:分类 -> 规则 -> 规则组关联 Control 智能体;只建规则页面看不到。`pzxx` / `element_mxb` / `contract_rule_source` 必须是 JSON 字符串(对象入参由 CLI 自动转换),`element_content` 与 `element_mxb` 两份重复数据必须都传
|
|
193
|
-
|
|
194
|
-
### 9) 附件、图片和文件解析确认
|
|
195
|
-
|
|
196
|
-
- 执行涉及合同正文、附件、本地文件或远程 URL 文件的步骤前(含上传、审查、比对、流程回填),必须先提醒用户文件内容可能进入大模型上下文,也可能发送到 E10 今承达;用户未明确确认前不要运行。
|
|
197
|
-
|
|
198
|
-
## 写操作失败处理:`partial/write_uncertain` 决策树
|
|
199
|
-
|
|
200
|
-
当引用条款、新建签约主体、创建/保存/提交/催办返回 `partial/write_uncertain`,或提示网络中断、回查失败、回查状态不符时:
|
|
201
|
-
|
|
202
|
-
1. **先停止盲目重试**,不要连续重复提交相同 `.apply`
|
|
203
|
-
2. 优先从以下角度解释:写请求可能已到达服务端但连接在结果确认前中断;写接口已返回成功但回查失败或与预期不一致;continuation、目标对象或登录上下文可能已变化
|
|
204
|
-
3. 如需确认,只补 **一次** 只读查询(`contract.request.status`、`contract.clause.reference.get`、`contract.subject.query`),不要陷入 query/write 循环
|
|
205
|
-
4. 最终给用户明确结论、已知 `workflow.status`、成功/失败项和下一步人工确认建议
|
|
206
|
-
5. 提交审批场景最容易因重复提交造成重复流转,必须严格执行上述规则
|
|
95
|
+
| **S0 会话就绪** | 能调 operation | 成功 → S1;CLI 自动恢复后仍最终返回 `session_expired`/401/403 → 停,报登录或权限,**不重试不绕行** |
|
|
96
|
+
| **S1 材料就位** | 拿到 `fileId`+`docId` / `requestId` / 查询条件 | 本地文件但**没说意图** → **直接 `review.upload`** → 走首屏链(判四类 + 摘要 + 卡片,不询问);说了意图 → `review.upload` → S2;指向已有合同 → 解析 `requestId` → S2;纯查询 → S5 |
|
|
97
|
+
| **S2 对象识别** | 标的产品 / 最终用户 / 新老 / 类型 → `flowKey` | 置信度 ≥0.8 → S3;<0.8 或歧义 → **摊候选让用户选**后再收口 |
|
|
98
|
+
| **S3 意图分派** | 用户选定一个动作 | 六个出口(见下表)→ S4 |
|
|
99
|
+
| **S4 执行** | 调 operation | 读 → S5;写(`prepare` → 确认 → `apply`)→ S5;失败按错误语义分类 |
|
|
100
|
+
| **S5 收口** | 回读校验 + 报结论 + 给下一步 | 固定四段:结论 / 证据 / 未完成 / 下一步 |
|
|
101
|
+
|
|
102
|
+
各状态禁止项、冲突卡格式、选项四要素、S4/S5 细则全部在 [`orchestration.md`](references/orchestration.md)。
|
|
103
|
+
|
|
104
|
+
## 六个出口 → reference 索引
|
|
105
|
+
|
|
106
|
+
S3 只能在这六个出口里选,**不要**把出口之外的动作(工作台、台账、风险预警)硬凑进来。
|
|
107
|
+
|
|
108
|
+
| # | 出口 | 用户想做什么 | 主链路 | 细节 |
|
|
109
|
+
|---|---|---|---|---|
|
|
110
|
+
| **E1** | 发起审批 | 把这份合同走审批(**仅四类**:契约锁 / 新客户 / 常规二次销售 / 老客户增值) | `contract.flow.page`(只开页)或 `contract.flow.launch`(带文件回填);或 `workflow.form.info` → `field.options` → `request.create/save/submit` | [`contract-flow-launch.md`](references/contract-flow-launch.md) · [`contract-request-write.md`](references/contract-request-write.md) |
|
|
111
|
+
| **E2** | 智能法审 | 出风险点、内控问题、要素与修改建议 | `contract.review.upload` → 打开页 → `contract.review.export` | [`contract-ai-review.md`](references/contract-ai-review.md) |
|
|
112
|
+
| **E3** | 条款/表单改写 | 改条款、改表单并写回 | `clause.search` / `clause.reference.get` / `workflow.form.info` → diff → 写回 → 回读 | [`contract-clause-reference-save.md`](references/contract-clause-reference-save.md) |
|
|
113
|
+
| **E4** | 抽要素 | 抽履约/风险/专项三项,用于预填核对 | `contract.review.export`(结构化记录)→ 归一化 | [`contract-object-detect.md`](references/contract-object-detect.md) |
|
|
114
|
+
| **E5** | 文本比对 | 比两版差异 | `compare.upload/search/versions` → `compare.page` → `compare.diff` | [`contract-doc-compare.md`](references/contract-doc-compare.md) |
|
|
115
|
+
| **E6** | 查资信 | 看对方诉讼/被执行/变更 | `contract.credit.page`(只开页面,不返数据) | [`contract-credit-page.md`](references/contract-credit-page.md) |
|
|
116
|
+
|
|
117
|
+
出口之外的常见诉求,走这些文件:
|
|
118
|
+
|
|
119
|
+
| 诉求 | reference |
|
|
120
|
+
|---|---|
|
|
121
|
+
| **上传文件但没说意图**(首屏解析 / 判类型 / 抽要素 / 出摘要 HTML / 按类型分流) | [`contract-doc-triage.md`](references/contract-doc-triage.md) |
|
|
122
|
+
| **新客户流程要素抽取与表单回填**(10 类字段 / 专项方案识别 / 默认值 / 按名称解析字段 ID) | [`contract-field-extract-new-customer.md`](references/contract-field-extract-new-customer.md) |
|
|
123
|
+
| **契约锁 / 常规二次销售 / 老客户增值 三流程字段**(申请人发起节点表单布局、字段 ID 对照、跨流程 ID 不通用警告、回填处置原则) | [`contract-field-extract-other-flows.md`](references/contract-field-extract-other-flows.md) |
|
|
124
|
+
| **比对报告的结构 / 要素 / 口径 / 样式**(两部分 · 默认展开 · 四指标统计 · 章节归属判定 · 配色与版式) | [`contract-compare-report.md`](references/contract-compare-report.md) · 样式骨架 [`contract-compare-report-template.html`](references/contract-compare-report-template.html) |
|
|
125
|
+
| **按合同内容判类型**(模板标题 / 独有章节 / 标的语义的指纹库与打分) | [`contract-type-fingerprints.md`](references/contract-type-fingerprints.md) |
|
|
126
|
+
| 判新老客户 / 客户主数据全称查询(`contract.customer.browser`) | [`contract-object-detect.md`](references/contract-object-detect.md) |
|
|
127
|
+
| **动作推荐怎么算**(scene 三域 `doc`/`query`/`config` / 上下文状态 / 动作注册表 / 优先级 / 抑制 / 截断 / 未实现能力清单) | [`contract-action-engine.md`](references/contract-action-engine.md) |
|
|
128
|
+
| 合同类型 / 模板选择 | [`contract-template-selector.md`](references/contract-template-selector.md) · 模板推荐 [`contract-template-recommend.md`](references/contract-template-recommend.md) |
|
|
129
|
+
| 条款查询与推荐 | [`contract-clause-recommender.md`](references/contract-clause-recommender.md) |
|
|
130
|
+
| 条款库维护(条款/分类/条款组) | [`contract-clause-library-crud.md`](references/contract-clause-library-crud.md) |
|
|
131
|
+
| 签约主体查询 / 新建 | [`contract-signing-subjects.md`](references/contract-signing-subjects.md) · [`contract-subject-create.md`](references/contract-subject-create.md) |
|
|
132
|
+
| 流程字段解析(workflowId / 表单 / 选项) | [`contract-workflow-discovery.md`](references/contract-workflow-discovery.md) |
|
|
133
|
+
| 审批状态与签字意见 | [`contract-request-status.md`](references/contract-request-status.md) |
|
|
134
|
+
| 业绩核算与台账 | [`contract-performance-query.md`](references/contract-performance-query.md) |
|
|
135
|
+
| 报价单转合同 | [`contract-quote-to-contract.md`](references/contract-quote-to-contract.md) |
|
|
136
|
+
| 合同智能助手维护 | [`contract-ai-assistant.md`](references/contract-ai-assistant.md) |
|
|
137
|
+
| **给选项 / 推荐时必出的行为卡片**(`<browsertool>` + `customParams.items[]`,每项一个动作) | [`contract-action-card.md`](references/contract-action-card.md) |
|
|
138
|
+
| **点击后走哪条路(`e10Sdk` / `artifact` / `sendQuestion`)的规则边界**——按「内容是否已在手」判定,**不按动作名称**;§5.2 含回归用例 | [`contract-action-card.md`](references/contract-action-card.md) §5.2 |
|
|
139
|
+
| **全量命令清单 + 每条链的处理顺序** | [`contract-command-index.md`](references/contract-command-index.md) |
|
|
140
|
+
| 调用方式 / 子命令 / 退出码 | [`contract-agent-entry.md`](references/contract-agent-entry.md) |
|
|
141
|
+
| 未实现能力(资信明细、撤回/退回等) | [`contract-disabled-capabilities.md`](references/contract-disabled-capabilities.md) |
|
|
142
|
+
|
|
143
|
+
> 本文件**不再平铺** operation 清单。要查具体 operation、字段、风险等级:`weaver-work-cli contract schema`(权威)或 [`contract-command-index.md`](references/contract-command-index.md)(按意图找)。
|
|
144
|
+
|
|
145
|
+
### reference 按需读取(读取预算,2026-11-03 新增)
|
|
146
|
+
|
|
147
|
+
`SKILL.md` 与本文件索引已足够定位时,**不要整篇读 reference**。大文件全文读入是主要耗时来源之一(`contract-object-detect.md` 28 KB ≈ 10~20 s)。
|
|
148
|
+
|
|
149
|
+
| 文件 | 体积档 | 读法 |
|
|
150
|
+
|---|---|---|
|
|
151
|
+
| `contract-object-detect.md` | 大(≈28 KB) | **只读需要的段**:判四类 → D1/D2/D3/D4 四段;查客户字段 → §3.0。**不要**读 §5 冲突点、§6 待确认、§7 实测记录(除非用户问规则边界) |
|
|
152
|
+
| `orchestration.md` | 大(≈21 KB) | 首屏分流读 §4.5;选项排序读 §4.2;收口读 §6 |
|
|
153
|
+
| `contract-execution-rules.md` | 大(≈11 KB) | 按需读对应小节,不做全文加载 |
|
|
154
|
+
| `contract-action-card.md` | 中(≈10 KB) | 出卡片时读 **§0.1 + §1 + §2~§5**(§0.1 含摘要传递、条数、发起流程回填三项硬要求;坑位表 §7 可跳过) |
|
|
155
|
+
| 其余 `contract-*.md` | 小(3~8 KB) | 可整篇读 |
|
|
156
|
+
|
|
157
|
+
**执行顺序**:先用 `Select-String` 定位小节行号 → 用范围读取取该段 → 需要时再扩邻段。禁止"先全文读完再找"。
|
|
158
|
+
|
|
159
|
+
**首屏链最小读取集**(判合同 → 出摘要 → 出卡片,只需这 4 段;**第 3 段的 §0.1 不可省——漏读就会只传地址不传字段值**):
|
|
160
|
+
|
|
161
|
+
1. `contract-doc-triage.md` §0(硬原则)+ §5(摘要规格)+ §6.1(卡片三条)
|
|
162
|
+
2. `contract-object-detect.md` D1/D2(四类判定)+ §3.0(客户字段常量,**仅 D2 未定时才需要**)
|
|
163
|
+
3. `contract-action-card.md` **§0.1(摘要传递 / 条数 / 发起流程回填,必读)** + §1(场景与两条硬约束)+ §2~§5(卡片结构)
|
|
164
|
+
4. `SKILL.md` 红线表(已知即可,不必重读)
|
|
165
|
+
|
|
166
|
+
### 工具轮次预算(硬性,2026-11-03 用户指定)
|
|
167
|
+
|
|
168
|
+
**每轮工具往返 ≈ 5~10 s,比任何单个 CLI 命令都贵**(实测 `review.upload` 仅 0.97 s)。优化优先合并轮次,不是压缩单命令。
|
|
169
|
+
|
|
170
|
+
**首屏标准 3 轮**:① `terminal`(写参数 + `review.upload` + `flow launch` 合一条命令)+ `parse_document` 并行 → ② `read_parsed_file` → ③ 直接输出 `<browsertool>`(三张横向动作卡 + 隐藏摘要容器)→ 最终回复。**不落盘、不 `present_files`、摘要不默认显示**(2026-11-04 用户指定)。**摘要 HTML 只存在于 `<browsertool>` 的 `customParams.html` 里,绝不写成本地文件、绝不用 `present_files` 登记、绝不在对话里给文件路径**——2026-11-05 实测违反过一次,产出多余的 `customParams-*.html` 交付物,属明确禁止行为。
|
|
171
|
+
|
|
172
|
+
**摘要优先由 CLI 渲染,CLI 不支持时直接手写**(2026-11-04 实测修正):先确认 `contract --help` 的 Commands 里有 `summary`,有则 `weaver-work-cli --json contract summary render --data <json> --out <html>`;**当前 CLI 0.1.40 无 `summary` 子命令(实测 `unknown command 'summary'`),此时不得试错调用,直接按 `contract-doc-triage.md` §5.2 五节顺序 `write_file` 手写单文件 HTML(内联 CSS ≤4 KB,视觉基线见该文件 §5.3)**。JSON 结构与 section 类型见 [`contract-doc-triage.md`](references/contract-doc-triage.md) §5.1。
|
|
173
|
+
|
|
174
|
+
四条必守合并技巧:
|
|
175
|
+
|
|
176
|
+
| # | 要点 |
|
|
177
|
+
|---|---|
|
|
178
|
+
| 1 | **写参数文件与执行 CLI 合并成一条 terminal 命令**,禁止单独一轮 `write_file` 写 JSON |
|
|
179
|
+
| 2 | 上传与解析**同批并行**,不串行 |
|
|
180
|
+
| 3 | 多个 reference 的指定段用**一条 terminal 命令**(`Get-Content ... Select-Object`)一次取完 |
|
|
181
|
+
| 4 | **不做事后体积检查**、不做探测性 `auth status`,工具返回成功即为准 |
|
|
182
|
+
|
|
183
|
+
完整轮次表与禁止清单见 [`contract-doc-triage.md`](references/contract-doc-triage.md) §0.1.2。
|
|
184
|
+
|
|
185
|
+
## 红线(永远生效,细则见 [`contract-execution-rules.md`](references/contract-execution-rules.md))
|
|
186
|
+
|
|
187
|
+
1. **环境 ID 只能运行时解析**(`appId`/`objId`/`formId`/`layoutId`/`workflowId`/`nodeId`/`requestId`/`fieldId`/`ebObjId`),找不到就停,禁止用示例值兜底;同名多命中让用户选,不取第一条。
|
|
188
|
+
2. **只有 4 个流程**:契约锁、新客户、常规二次销售、老客户增值。**不支持采购流程**——用户要采购时明确告知,不要用 `workflow.query` 猜一个去发起。常量见 [`contract-flow-launch.md`](references/contract-flow-launch.md)。
|
|
189
|
+
3. **上传两段式**:`preUploadCheck` → `module/upload`;`module` 不能混用(审查 `ebContract` / 流程 `workflow` / 比对 `docCompared`);成功判据是**非空 `fileId`**。
|
|
190
|
+
4. **页面地址不做整体编码**:`sp/` 地址由 CLI 字面拼接,禁止再 `encodeURIComponent`;唯一例外是资信页 `name[N]` 的值。
|
|
191
|
+
5. **HTTP 200 不是业务成功**:成功码按路径分组判定(`/api/ebd/**`、`/api/ebuilder/**`、`/api/ebuilder/form/dataset/v2/**`、`/api/workflow/**` 各不相同)。
|
|
192
|
+
6. **条款库先过 `checkPermissionV2`**:只有 `data.checkPermission === true` 才放行;未放行立即中止,不重试不绕行。
|
|
193
|
+
7. **写操作 `prepare` → 用户确认 → `apply`**;提交审批与催办要**与"创建/保存"分开的第二次确认**;创建 ≠ 保存 ≠ 提交,分别报告。
|
|
194
|
+
8. **写后必须回读**才算生效(`request.status` 的 `flowStatus.code` = 1 或 3);只凭第一步返回不许说"成功"。
|
|
195
|
+
9. **错误语义驱动**:先看退出码与 `error.type/subtype`;`11` = `partial/write_uncertain` **禁止自动重试**,最多补一次只读查询;`3` = 登录失效立即停。
|
|
196
|
+
10. **冲突与不确定就摊开**:规则冲突、规则缺位、证据不足、候选不唯一 → 说明原因让用户选,**不猜、不兜底、不静默降级**(见 `orchestration.md` §3.2 冲突卡)。
|
|
197
|
+
11. **不越权**:禁止 curl / fetch / 浏览器自动化直连 `/api/ebd/**`、`/api/ebuilder/**`、`/api/workflow/**`;禁止绕过 CLI 读取凭据;业务输入不传身份字段。
|
|
198
|
+
12. **"打开页面" ≠ "完成业务"**:不得把"已打开审查页"报成"审查完成",也不得把"已打开流程页"报成"流程已发起"。
|
|
199
|
+
13. **动作集只用行为卡片,不用文字列选项**:给了可选项就必须输出 `<browsertool>` 块,**且必须以裸标签原样输出:禁止包进 ``` 围栏代码块、禁止行内反引号包裹、禁止 HTML 转义、禁止只给 JSON 不给标签(2026-11-04 实测踩坑——放进围栏后宿主当普通文本,卡片根本不渲染;示例里的围栏只是结构示意,不是输出格式)**,`arguments.title` 每轮动态,`sdkOptions.params_pc.customParams.items[]` 里**每个 item = 一个动作**(不是一条数据);`id` 唯一非空、`title` 动词开头、`recommended` 只给排序第一那条置 `true`、`detailHtml` 只放静态 HTML(禁 `script`/`style`/`a`/`img`/内联样式)。**禁止**在正文里用"① ② ③ + 说明"罗列动作,也禁止"你同意我就查""要测哪个"这类反问。**一轮只输出一个 `<browsertool>`**;摘要**不落盘为本地文件、不 `present_files`,也不默认铺在页面上**——其五节内容**写成 script 内的 JS 字符串常量 `var S="..."`**(**禁止**用 `display:none` 容器 + `innerHTML` 动态提取,实测取到空串),作为**第三条横向动作卡「查看合同摘要」**的点击来源(`artifact` 渲染时直接 `raw:{html:S}`,**必须带 `initialArtifactKeys`——与 `artifacts` 同级放在 `contentProps` 内,值取 `artifacts[].id`**)。卡片条目**不写死**——按 [`contract-action-engine.md`](references/contract-action-engine.md) 依上下文动态计算 **1~4 条**,`arguments.title` 写 `可做的 N 件事`(N 必须等于实际条数)。**发起流程卡必须同时写 `customParams` + `fieldAssignKeys` 带字段值;附件字段的 `fileId` 在流程地址与 `customParams` 两处都写,缺一不可**(地址里的 `automaticFormFilling=true` 只让页面侧尽力识别,不携带任何字段值)。见 `contract-action-card.md` §0.1。格式与坑见 [`contract-action-card.md`](references/contract-action-card.md)。
|
|
200
|
+
|
|
201
|
+
## 范围边界
|
|
202
|
+
|
|
203
|
+
- 审查报告与比对报告的**文件生成**(Markdown/HTML/Office)由 Agent 在工作区完成;CLI 只提供结构化记录与差异结果,**禁止用空内容拼报告充数**。
|
|
204
|
+
- 企业资信只开页面;`credit.query` / `credit.change` / `credit.monitor` 未实现。
|
|
205
|
+
- 撤回/退回流程:源资料只有接口存在,无路径参数,未实现。
|
|
206
|
+
- 采购合同全链路(起草/申请/审批/变更)不在范围。
|
|
207
|
+
- 统一入口/登录画面由业务侧单独实现,本 skill 只承担"意图 → 调用"。
|
|
208
|
+
|
|
209
|
+
## 最小示例
|
|
207
210
|
|
|
208
211
|
Windows PowerShell:
|
|
209
212
|
|
|
210
213
|
```powershell
|
|
211
214
|
weaver-work-cli contract schema
|
|
212
215
|
weaver-work-cli --json contract run contract.type.tree
|
|
213
|
-
weaver-work-cli --json contract run contract.
|
|
214
|
-
weaver-work-cli --json contract run contract.workflow.query --input-json '{"workflowName":"销售合同起草","status":"1"}'
|
|
216
|
+
weaver-work-cli --json contract run contract.customer.browser --input-json '{"searchValue":"厦门翔业集团有限公司","workflowId":"1283761429944369334"}'
|
|
215
217
|
weaver-work-cli --json contract run contract.review.upload --input-json '{"paths":["D:/contracts/销售合同.docx"]}'
|
|
216
|
-
weaver-work-cli --json contract run contract.
|
|
217
|
-
weaver-work-cli --json contract run contract.assistant.list --input-json '{"name":"采购"}'
|
|
218
|
-
weaver-work-cli --json contract run contract.compare.page --input-json '{"baseFileId":"9000","baseFileName":"原版.docx","compareFileId":"9001","compareFileName":"修订版.docx"}'
|
|
219
|
-
weaver-work-cli --json contract run contract.recommend.doc --input-json '{"content":"销售一套协同办公系统,含实施服务,金额80万"}'
|
|
220
|
-
weaver-work-cli --json contract run contract.request.create.prepare --input-json '{"workflowId":"12345","requestname":"WB-SKILL-TEST 销售合同"}'
|
|
221
|
-
weaver-work-cli --json contract run contract.request.create.apply --input-json '{"workflowId":"12345","requestname":"WB-SKILL-TEST 销售合同","continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
218
|
+
weaver-work-cli --json contract run contract.flow.page --input-json '{"flow":"老客户增值"}'
|
|
222
219
|
```
|
|
223
220
|
|
|
224
|
-
macOS/Linux
|
|
221
|
+
macOS/Linux:
|
|
225
222
|
|
|
226
223
|
```bash
|
|
227
224
|
weaver-work-cli contract schema
|
|
228
225
|
weaver-work-cli --json contract run contract.type.tree
|
|
229
|
-
weaver-work-cli --json contract run contract.
|
|
230
|
-
weaver-work-cli --json contract run contract.workflow.query --input-json '{"workflowName":"销售合同起草","status":"1"}'
|
|
226
|
+
weaver-work-cli --json contract run contract.customer.browser --input-json '{"searchValue":"厦门翔业集团有限公司","workflowId":"1283761429944369334"}'
|
|
231
227
|
weaver-work-cli --json contract run contract.review.upload --input-json '{"paths":["/data/contracts/销售合同.docx"]}'
|
|
232
|
-
weaver-work-cli --json contract run contract.
|
|
233
|
-
weaver-work-cli --json contract run contract.compare.page --input-json '{"baseFileId":"9000","baseFileName":"原版.docx","compareFileId":"9001","compareFileName":"修订版.docx"}'
|
|
234
|
-
weaver-work-cli --json contract run contract.recommend.doc --input-json '{"content":"销售一套协同办公系统,含实施服务,金额80万"}'
|
|
235
|
-
weaver-work-cli --json contract run contract.request.create.prepare --input-json '{"workflowId":"12345","requestname":"WB-SKILL-TEST 销售合同"}'
|
|
236
|
-
weaver-work-cli --json contract run contract.request.create.apply --input-json '{"workflowId":"12345","requestname":"WB-SKILL-TEST 销售合同","continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
228
|
+
weaver-work-cli --json contract run contract.flow.page --input-json '{"flow":"老客户增值"}'
|
|
237
229
|
```
|
|
238
230
|
|
|
239
|
-
|
|
231
|
+
更多示例(审查导出、比对、模板推荐、`prepare/apply` 两段)见 [`contract-execution-rules.md`](references/contract-execution-rules.md) 附录。
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## 文件写操作与备份(2026-11-05 用户指定)
|
|
240
236
|
|
|
241
|
-
-
|
|
242
|
-
-
|
|
243
|
-
-
|
|
244
|
-
|
|
245
|
-
-
|
|
246
|
-
- 撤回/退回流程:源资料只提及接口存在,未给出路径与参数,未实现。
|
|
247
|
-
- 打开页面 ≠ 完成业务:不得把"已打开审查页"报告成"审查完成",也不得把"已打开流程页"报告成"流程已发起"。
|
|
248
|
-
- 审查报告与比对报告的**文件生成**(Markdown/HTML/Office)由 Agent 在工作区完成;CLI 只提供结构化审查记录与差异结果,禁止用空内容拼报告充数。
|
|
237
|
+
- **任何备份文件一律放 D:\backup,禁止写入技能包目录**(skills\weaver-e10-jinchengda 及其子目录)。
|
|
238
|
+
- 修改技能内任何文件前先备份到 D:\backup,命名 <原文件名>.<yyyyMMdd_HHmmss>.bak;同一原文件多次修改时保留历史版本,不覆盖。
|
|
239
|
+
- 技能包根目录应只保留正式文件(SKILL.md 与
|
|
240
|
+
eferences\*.md 等),不留 .bak/.bak2/.bak3。
|
|
241
|
+
- 交付给用户的产物仍按产物目录规则保存,与备份目录无关。
|