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
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
# 编排层:任务合约与状态机 S0~S5
|
|
2
|
+
|
|
3
|
+
> 本文件是 skill 的**顶层分流层**。SKILL.md 只保留 S0~S3 的摘要表并指向本文件;
|
|
4
|
+
> S4 每条执行细节下沉到各自的 `contract-*.md`。
|
|
5
|
+
> 所有执行一律遵循 `weaver-work-cli` 规范(`contract run <operation>`、`risk`/`fixed`/`inputSchema` 契约、`prepare → apply`、退出码语义)。
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. 设计目标
|
|
10
|
+
|
|
11
|
+
把"132 个 operation 平铺"换成"6 个状态、每状态 2~4 个出口"。每个回合只回答两个问题:
|
|
12
|
+
|
|
13
|
+
1. **我现在在哪个状态?**(证据是否齐)
|
|
14
|
+
2. **下一步只能去哪?**(出口是封闭集合)
|
|
15
|
+
|
|
16
|
+
不允许"用户说什么就猜着调一个接口"——那是能力字典,不是编排。
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 2. 任务合约 `ContractTask`
|
|
21
|
+
|
|
22
|
+
每轮对话先归约成这个对象;缺字段就**一次性问全**,不要挤牙膏。
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"entry": "file | requestId | query | text",
|
|
27
|
+
"object": {
|
|
28
|
+
"fileId": "", "docId": "", "fileName": "",
|
|
29
|
+
"requestId": "", "nodeId": "",
|
|
30
|
+
"productSubject": "契约锁 | 电子签 | 协同办公 | 混合 | unknown",
|
|
31
|
+
"isQiyuesuoCore": false,
|
|
32
|
+
"finalUser": { "raw": "", "normalized": "" },
|
|
33
|
+
"matchedCustomer": [],
|
|
34
|
+
"customerNewness": "new | existing | unknown",
|
|
35
|
+
"bizCategory": "常规 | 增值 | 升级 | 混合 | null",
|
|
36
|
+
"contractType": "契约锁 | 新客户 | 常规二次销售 | 老客户增值 | null",
|
|
37
|
+
"flowKey": "契约锁 | 新客户 | 常规二次销售 | 老客户增值 | null",
|
|
38
|
+
"party": { "our": "", "counter": "" },
|
|
39
|
+
"amount": "",
|
|
40
|
+
"flags": { "sourceCodeDelivery": null, "xinchuang": null, "middlewareExplicit": null },
|
|
41
|
+
"confidence": 0.0,
|
|
42
|
+
"evidence": []
|
|
43
|
+
},
|
|
44
|
+
"intent": "launch | review | edit | extract | compare | credit | query | maintain | null",
|
|
45
|
+
"missing": [],
|
|
46
|
+
"next1ptions": []
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
约束:
|
|
51
|
+
|
|
52
|
+
- `object.contractType` 与 `flowKey` 由 [`contract-object-detect.md`](contract-object-detect.md) 产出,**不得在本文件另立规则**。
|
|
53
|
+
- `missing` 按阻塞严重度排序,且**一次性**呈现给用户("我还需要:①客户全称 ②合同金额"),不分多轮追问。
|
|
54
|
+
- `next1ptions` 永远 2~4 项,生成规则见 §4.2(四要素:动作名 / 一句收益 / 证据状态 / 代价),**不得只写动作名**。
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 3. 状态机
|
|
59
|
+
|
|
60
|
+
| 状态 | 目标 | 入口证据 | 允许出口 |
|
|
61
|
+
|---|---|---|---|
|
|
62
|
+
| **S0 会话就绪** | 能调 operation | — | 成功 → S1;`session_expired`/401/403 → 停,报登录或权限,**不重试不绕行** |
|
|
63
|
+
| **S1 材料就位** | 拿到 `fileId`+`docId` / `requestId` / 查询条件 | `entry` | ①本地文件 → **直接 `review.upload`**(不询问)→ S2 ②指向已有合同 → 解析 `requestId` → S2 ③纯查询(无对象)→ S5(问数分支) ④**本地文件且未指定意图 → 走 [`contract-doc-triage.md`](contract-doc-triage.md) 首屏链:先上传解析,再判四类归属,最后给行为卡片** |
|
|
64
|
+
| **S2 对象识别** | 标的产品 / 最终用户 / 新老 / 类型 | 文件已就位 | 置信度 ≥0.8 → S3;<0.8 或歧义 → **摊候选让用户选**后再回 S2 收口 |
|
|
65
|
+
| **S3 意图分派** | 用户选定一个动作 | `object` 已定 | 6 个出口(见 §4)→ S4 |
|
|
66
|
+
| **S4 执行** | 调 operation | 意图已定 | 读 → S5;写(`prepare` → 确认 → `apply`)→ S5;失败按错误语义分类 |
|
|
67
|
+
| **S5 收口** | 回读校验 + 报结论 + 给下一步 | 执行结果 | 回 S3(换动作,虚线)或结束 |
|
|
68
|
+
|
|
69
|
+
### 3.1 各状态的禁止项
|
|
70
|
+
|
|
71
|
+
| 状态 | 禁止 |
|
|
72
|
+
|---|---|
|
|
73
|
+
| S0 | 未探活就调业务接口;把"登录失效"当业务失败重试 |
|
|
74
|
+
| S1 | 没有任何文件/对象就开始追问"你要做什么合同";对已提供的文件二次询问路径 |
|
|
75
|
+
| S2 | 无证据给出高置信度;把"新客户"或"常规二次销售"当默认值;多条候选取第一条;遇到冲突自行择一而不出**冲突卡**(见 §3.2) |
|
|
76
|
+
| S3 | 不给选项直接执行写操作;把 6 个出口之外的动作塞进来 |
|
|
77
|
+
| S4 | 写操作跳过 `prepare`;`partial/write_uncertain`(退出码 11)自动重试 |
|
|
78
|
+
| S5 | 只凭第一步返回就报告"成功";写操作不回读 |
|
|
79
|
+
|
|
80
|
+
### 3.2 冲突与不可判定:统一出「冲突卡」
|
|
81
|
+
|
|
82
|
+
**总原则(2026-11-02 明确):凡是无法判断的冲突,直接说明原因,让用户自己选。不猜、不兜底、不"暂时按某个处理"。**
|
|
83
|
+
|
|
84
|
+
触发条件(命中任一即出卡):
|
|
85
|
+
|
|
86
|
+
- 两条规则指向不同结论;
|
|
87
|
+
- 规则缺位(该组合没有定义);
|
|
88
|
+
- 证据不足且无法通过追问补齐;
|
|
89
|
+
- 候选不唯一且无一个精确匹配。
|
|
90
|
+
|
|
91
|
+
出卡前必做的三件事:
|
|
92
|
+
|
|
93
|
+
1. **停写**:只读可以继续,写操作(`prepare`/`apply`)一律停;
|
|
94
|
+
2. **说清两侧依据**:各自的规则来源(哪个文件哪条)与推导出的结论;
|
|
95
|
+
3. **说清后果差异**:选 A 会怎样、选 B 会怎样(流程不同?字段不同?能否反悔?)。
|
|
96
|
+
|
|
97
|
+
冲突卡模板(固定四段,不许省略):
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
⚠ 此处我无法判定,需要你决定:<一句话冲突点>
|
|
101
|
+
|
|
102
|
+
依据 A:<规则来源> → 结论 <X>
|
|
103
|
+
影响:<流程 / 字段 / 后续动作>
|
|
104
|
+
依据 B:<规则来源> → 结论 <Y>
|
|
105
|
+
影响:<...>
|
|
106
|
+
|
|
107
|
+
请选择:① <X> ② <Y> ③ 其他(说明)
|
|
108
|
+
说明:我不会替你选——选错会直接影响 <具体后果,例如"走错审批流程""结算类型记错且审批后不可调整">。
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
约束:
|
|
112
|
+
|
|
113
|
+
| 项 | 规则 |
|
|
114
|
+
|---|---|
|
|
115
|
+
| 禁止兜底 | 不得用"新客户""常规二次销售""第一条候选""默认值""先这样处理" |
|
|
116
|
+
| 禁止静默降级 | 不能把冲突悄悄改成"帮你打开页面,你自己看",必须先讲清冲突 |
|
|
117
|
+
| 一次问全 | 多个冲突合并成一次提问,不逐个打断 |
|
|
118
|
+
| 可给倾向 | 可以标注"我倾向 ①,理由是…",但必须明示"仅为建议,需你确认" |
|
|
119
|
+
| 记录 | 用户的选择写入 `ContractTask.evidence`,同会话内同类冲突**不再重复问** |
|
|
120
|
+
| 已确认的规则 | 用户给出的新口径要落到对应 reference 的"待确认/已关闭"表里,不能只留在对话中 |
|
|
121
|
+
|
|
122
|
+
典型冲突点见 [`contract-object-detect.md`](contract-object-detect.md) §5.1(「常规+升级」混合、契约锁作附带项、就低序未覆盖组合等)。
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 4. S3:六个出口与选项生成
|
|
127
|
+
|
|
128
|
+
| # | 出口 | 允许前提 | 执行链(`contract.*`) | 细节文件 |
|
|
129
|
+
|---|---|---|---|---|
|
|
130
|
+
| E1 | **发起审批** | `flowKey` 非 null | `type.tree`(校验类型)→ `flow.launch`(带文件自动回填)或 `workflow.query → form.info → field.options → request.create.prepare/apply → save.prepare/apply → submit.prepare/apply` | `contract-flow-launch.md` / `contract-request-write.md` |
|
|
131
|
+
| E2 | **智能法审** | 有 `fileId` | **上下文已有 `fileId` 则直接复用,禁止再调 `review.upload`**(服务端不去重,重传必产生新文件)→ 打开审查页 → 需要时 `review.export` | `contract-ai-review.md` |
|
|
132
|
+
| E3 | **条款推荐插入 / 改写** | 有合同 docx 路径 | **推荐插入**:`clause.tags → tree → search` 召回 → `clause.insert --dryRun true` 拿章节与位置 → 对话内编号呈现 → 勾选 → `clause.insert` 写入(**自动去重、按章节定位**);**条款引用**:`clause.reference.get` / `workflow.form.info` → 改写预览 → 写回 → 回读 | `contract-clause-insert.md` / `contract-clause-recommender.md` |
|
|
133
|
+
| E4 | **抽取**(履约/风险/专项三项) | 有 `fileId` | `review.export`(结构化记录)→ 归一化 → 对话内呈现 | `contract-element-extract.md`(对话内编号呈现 + 勾选入库) |
|
|
134
|
+
| E5 | **文本比对** | 有基准文件 | `compare.upload/search/versions` → `compare.page` → `compare.diff` | `contract-doc-compare.md` |
|
|
135
|
+
| E6 | **资信查询** | 有相对方全称 | `credit.page`(只开页面,不返数据) | `contract-credit-page.md` |
|
|
136
|
+
|
|
137
|
+
出口收缩规则:
|
|
138
|
+
|
|
139
|
+
- `flowKey = null` → **E1 关闭**,把 4 个选项降为 3 个(E2/E4/E5)。
|
|
140
|
+
- 无 `fileId` 且无 `requestId` → E2/E3/E4/E5 全部关闭,只剩 E6 与问数分支。
|
|
141
|
+
- 用户意图落在 6 个出口之外(工作台、台账、风险预警)→ 明确告知"当前未实现",指向对应 reference 的缺口清单,**不硬凑到 E1~E6**。
|
|
142
|
+
|
|
143
|
+
### 4.1 E1 的前置硬门禁
|
|
144
|
+
|
|
145
|
+
1. `object.contractType` 与 `contract.type.tree` 的 `types[]` 必须**名称对齐**;对不上就停,不猜 `typeId`。
|
|
146
|
+
2. **采购合同不在支持范围**(2026-11-02 业务决定)。用户要发采购合同 / 采购审批 / 采购变更时:明确告知"当前版本只支持契约锁、新客户、常规二次销售、老客户增值四个流程",**不要**用 `workflow.query` 猜一个采购流程去发起。详见 [`contract-flow-launch.md`](contract-flow-launch.md)。
|
|
147
|
+
3. 老客户"升级"类**走老客户增值流程**(与增值共用 `workflowId = 1283761429944369334`),E1 正常开启。唯一例外是**「常规 + 升级」混合**:就低序未定导致流程去向二义,此时必须把两条流程摊给用户选,不得自行择一(见 [`contract-object-detect.md`](contract-object-detect.md) §6 #6)。
|
|
148
|
+
4. 带文件发起前,`flow.launch` 的**上传 `fieldId` 必须先实测确认**——现有文档里的 4 个 fieldId 与 `form.info` 可见的 `FileComponent` 全都不一致,未经实测不得直接发起(见 `contract-flow-launch.md`「2026-11-02 实测核对」)。
|
|
149
|
+
|
|
150
|
+
### 4.2 选项生成规范(`next1ptions` 怎么造)
|
|
151
|
+
|
|
152
|
+
S3 的唯一产物是 `next1ptions`。它必须能让人**不看上下文也能选**。
|
|
153
|
+
|
|
154
|
+
**每条选项固定四要素,缺一不可:**
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
① 动作名 动词开头,≤12 字(发起审批 / 智能法审 / 抽要素 / 文本比对 / 查资信 / 打开工作台)
|
|
158
|
+
② 一句收益 这件事能换来什么,不超过一行
|
|
159
|
+
③ 证据状态 「证据齐」或「缺 <具体缺什么>」
|
|
160
|
+
④ 代价 「N 步 · 需确认 M 次」或「只读,不动数据」
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**示例(合规):**
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
我判断这是「老客户增值」(依据:标的含功能模块升级,最终用户「厦门翔业集团有限公司」命中客户主数据)。
|
|
167
|
+
你可以:
|
|
168
|
+
① 发起老客户增值审批 —— 走 1283761429944369334,一次填完表提交 | 证据齐 | 6 步 · 需确认 2 次
|
|
169
|
+
② 先做智能法审 —— 上传后看风险点与修改建议,不改合同 | 证据齐 | 2 步 · 只读
|
|
170
|
+
③ 抽履约/风险要素 —— 从审查结构化记录里抽,用于填单预填 | 证据齐 | 3 步 · 只读
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**排序规则(依次比较,前者相同看后者):**
|
|
174
|
+
|
|
175
|
+
0. **首屏分流场景(`entry=file && intent=null`)例外**:按**业务主次**排,不按步数。合同的默认动作序是「发起审批 > 预审」(摘要已由 `present_files` 展示时不放"查看摘要");**报价单/标书基础只有「生成合同」一条,若文件写明对方主体/销售对象的企业全称,可追加「查对方资信」**;一律不给摘要与预审。原因:机械按"步数少/只读优先"会把 1 步的查资信排到第一、把用户最想做的发起审批排到最后(2026-11-02 发现并修正;2026-11-03 按用户口径收紧报价单动作集,并允许有主体时查资信)。
|
|
176
|
+
1. 用户本轮**明确说过**的动作排第一(别把"我要发起"排到第三);
|
|
177
|
+
2. 证据齐的排在缺证据的前面;
|
|
178
|
+
3. 步骤少的在前;
|
|
179
|
+
4. **只读动作排在写操作前面**(默认先看后改)。
|
|
180
|
+
|
|
181
|
+
**数量与收缩:**
|
|
182
|
+
|
|
183
|
+
| 情形 | 处理 |
|
|
184
|
+
|---|---|
|
|
185
|
+
| 可用出口 > 4 | 只留前 4 个,其余进"未完成"说明为什么不列 |
|
|
186
|
+
| 可用出口 = 1 | 照列,但必须补一句"其他动作当前不可用,原因:…" |
|
|
187
|
+
| 可用出口 = 0 | 不出选项,出 §3.2 冲突卡或 `missing` 清单 |
|
|
188
|
+
|
|
189
|
+
**「结构性关闭」与「缺证据」必须区分开:**
|
|
190
|
+
|
|
191
|
+
| 类型 | 判据 | 呈现 |
|
|
192
|
+
|---|---|---|
|
|
193
|
+
| 结构性关闭 | 再怎么补也做不了(如无 `fileId` 时的 E2/E4/E5、`flowKey = null` 时的 E1) | **不列为选项**,写进"未完成"并说明原因 |
|
|
194
|
+
| 缺证据 | 用户补一句话就能做(如缺相对方全称导致 E6 不可用) | **列为选项**并标注「缺 <X>」,让用户知道补什么 |
|
|
195
|
+
|
|
196
|
+
> 这条区分很关键:把结构性关闭的动作列成选项,等于给用户一个必然失败的按钮;把缺证据的动作直接藏掉,用户永远不知道该补什么。
|
|
197
|
+
|
|
198
|
+
#### 4.2.1 `next1ptions` 必须同时出行为卡片
|
|
199
|
+
|
|
200
|
+
文本四要素之外,**必须**再输出一张 `<browsertool>` 行为卡片(2026-11-03 用户指定):
|
|
201
|
+
|
|
202
|
+
| 要求 | 说明 |
|
|
203
|
+
|---|---|
|
|
204
|
+
| `arguments.title` | **每轮动态**,`<对象> · <这轮能给什么>`,≤20 字;它会成为右侧 HTML 文件名 |
|
|
205
|
+
| `customParams.items[]` | **每个 item = 一个动作**,条数与本轮动作数一致,>4 时只列前 4 |
|
|
206
|
+
| `id` | 稳定语义 id(`e1-launch` / `e2-review`…),非空且列表内唯一 |
|
|
207
|
+
| `title` | 动作名,与四要素①**一字不差** |
|
|
208
|
+
| `description` | 四要素②③④压成一句 |
|
|
209
|
+
| `recommended` | **只给排序第一那条** `true`(boolean,不能传字符串) |
|
|
210
|
+
| `detailHtml` | 点开详情:会做什么 / 需要什么 / 代价 / 会写数据 / 失败怎么办;只放静态 HTML |
|
|
211
|
+
|
|
212
|
+
结构性关闭的动作**不进卡片**;缺证据的动作**要进**,`description` 写「缺 X」。完整结构、转义规则与 8 个常见坑见 [`contract-action-card.md`](contract-action-card.md)。
|
|
213
|
+
|
|
214
|
+
> 宿主不渲染卡片时,把同样的动作以四要素文本列出——卡片是增强,不能让用户因此无从选择。
|
|
215
|
+
|
|
216
|
+
### 4.3 六出口的选项文案模板
|
|
217
|
+
|
|
218
|
+
| 出口 | 动作名 | 一句收益 | 证据要求 | 代价 | 是否写数据 |
|
|
219
|
+
|---|---|---|---|---|---|
|
|
220
|
+
| E1 | 发起审批 | 生成正式审批单并进入流转 | `flowKey` 非 null + `contractType` 与 `type.tree` 对齐(带文件时还要 `fileId`) | 4~7 步 · 需确认 2 次(创建/保存、提交) | ✅ 写 |
|
|
221
|
+
| E2 | 智能法审 | 出风险点、内控问题、要素与修改建议 | `fileId` 或 `requestId` | 2 步 · 只读(仅上传动作写文件) | 上传写文件 |
|
|
222
|
+
| E3 | 条款/表单改写 | 给出改前/改后 diff 再写回 | `fileId` 或 `requestId` | 3~5 步 · 写回需确认 1 次 | ✅ 写 |
|
|
223
|
+
| E4 | 抽要素 | 抽履约/风险/专项三项,用于预填与核对 | `fileId` | 2~3 步 · 只读 | ❌ 只读 |
|
|
224
|
+
| E5 | 文本比对 | 出差异清单与摘要 | 至少 1 份基准文件 + 1 份被比对文件 | 3 步 · 只读 | ❌ 只读 |
|
|
225
|
+
| E6 | 查资信 | 打开企业资信页看诉讼/被执行/变更 | 相对方**全称** | 1 步 · 只开页面 | ❌ 只读 |
|
|
226
|
+
|
|
227
|
+
**E1 的动作名要带流程名**,不能只写"发起审批"——四个流程审批节点不同,用户需要知道去哪:
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
① 发起「老客户增值」审批 …
|
|
231
|
+
① 发起「新客户」审批 …
|
|
232
|
+
① 发起「契约锁」审批 …
|
|
233
|
+
① 发起「常规二次销售」审批 …
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### 4.4 出口可用性矩阵
|
|
237
|
+
|
|
238
|
+
按 `ContractTask` 里已有证据查表,决定列哪些:
|
|
239
|
+
|
|
240
|
+
| 证据 | E1 | E2 | E3 | E4 | E5 | E6 |
|
|
241
|
+
|---|---|---|---|---|---|---|
|
|
242
|
+
| `flowKey` 非 null | ✅ | — | — | — | — | — |
|
|
243
|
+
| `flowKey = null` | ⛔ | — | — | — | — | — |
|
|
244
|
+
| 有 `fileId` | — | ✅ | ✅ | ✅ | 需 2 份 | — |
|
|
245
|
+
| 有 `requestId`(无文件) | — | ✅ | ✅ | ⛔ | 需 2 份 | — |
|
|
246
|
+
| 只有相对方全称 | — | ⛔ | ⛔ | ⛔ | ⛔ | ✅ |
|
|
247
|
+
| 什么都没有(纯查询) | ⛔ | ⛔ | ⛔ | ⛔ | ⛔ | ⛔ → 走问数分支 |
|
|
248
|
+
|
|
249
|
+
`⛔` = 结构性关闭,不列为选项;`✅` = 可列为选项;`需 2 份` = 列为选项但标注"还需另一份文件"。
|
|
250
|
+
|
|
251
|
+
> 纯查询入口(问数分支)不在这 6 个出口里。命中时按 §4「出口收缩规则」明确告知"当前未实现",指向对应 reference 的缺口清单,**不硬凑**。
|
|
252
|
+
|
|
253
|
+
### 4.5 首屏分流:用户给了文件但没说意图
|
|
254
|
+
|
|
255
|
+
`entry = file` 且 `intent = null`("上传了一份合同"、"看看这个"、"这是啥")时,走首屏链:
|
|
256
|
+
|
|
257
|
+
```
|
|
258
|
+
review.upload(默认,不询问)→ 解析正文
|
|
259
|
+
→ D0 内部定大类(仅内部分流,不对外说)
|
|
260
|
+
→ 抽 12 项要素 → S2 判四类归属 → 生成摘要 HTML → present_files
|
|
261
|
+
→ 对话只输出【一句话分类 + 关键信息 + 行为卡片三条】
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
五条要点(细则见 [`contract-doc-triage.md`](contract-doc-triage.md)):
|
|
265
|
+
|
|
266
|
+
| 要点 | 规则 |
|
|
267
|
+
|---|---|
|
|
268
|
+
| **默认上传** | 用户上传即视为同意处理,**直接** `review.upload`。禁止先问「是否允许解析/上传」、禁止弹确认框阻塞;数据外传只做**一句话事后说明**。仅当用户明说"不要上传"才降级本地解析 |
|
|
269
|
+
| **只讲业务结论** | 对话正文只允许三段:①一句话分类(属于四类中哪类)②关键信息(甲乙方/金额/标的/工期等 ≤6 行)③`<browsertool>` 卡片。**禁止**出现文件路径、产物文件名、"摘要已生成"、置信度、判定依据、文件大类、反问式收尾 |
|
|
270
|
+
| 不预设四类 | 四类归属判不准(<0.8 或冲突)→ §3.2 冲突卡;**不得**用"新客户"兜底。注意摊开的是**四类归属**,不是文件大类 |
|
|
271
|
+
| 必有产出 | 摘要五节内容**写成 script 内 JS 字符串常量**(**禁止** `display:none` + `innerHTML`,实测取空串),作为**第三条横向动作卡「查看合同摘要」**的点击来源(`artifact` 渲染 `raw:{html:S}`);**不落盘、不 `present_files`、不默认显示**,对话里也不展示任何文件路径与文件名 |
|
|
272
|
+
| 跳状态 | 判为报价单/标书 → **跳过 S2**(不 walk 四段判定链,它们还不是合同);判为合同 → 必须走 S2 拿 `flowKey` |
|
|
273
|
+
| 出卡片 | 动作集**只用** `<browsertool>` 卡片,**不再用文字列选项**;条目按 [`contract-action-engine.md`](contract-action-engine.md) 动态计算(1~4 条);典型为四条:发起「<flowKey>」合同流程(`recommended:true`)/ 合同预审 / 查看合同摘要,见 [`contract-action-card.md`](contract-action-card.md) |
|
|
274
|
+
|
|
275
|
+
> 这条分支的原则是「上传即处理、结论要简短、动作靠卡片」,不是「先问再做、先看懂再选」。
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## 5. S4 执行规范
|
|
280
|
+
|
|
281
|
+
| 项 | 规则 |
|
|
282
|
+
|---|---|
|
|
283
|
+
| 调用形式 | `weaver-work-cli --json contract run <operation>`;`--input-json` 优先,复杂 JS1N 写 UTF-8 文件后 `--input` |
|
|
284
|
+
| 环境 ID | `appId`/`objId`/`formId`/`layoutId`/`fieldId`/`workflowId`/`nodeId`/`requestId`/`eb1bjId` 运行时解析,**不使用示例值兜底** |
|
|
285
|
+
| 写操作 | `*.prepare` → 展示脱敏 `preview` → 用户明确确认 → `*.apply`(带 `continuation` 与 `confirm: true`) |
|
|
286
|
+
| 二次确认 | 提交审批、催办与"创建并保存"**必须分开确认** |
|
|
287
|
+
| 成功判据 | 按路径分组(`/api/ebd/**` 与 `/api/ebuilder/**`:`code=200/0` 且 `status!==false`;`/api/ebuilder/form/dataset/v2/**`:`message.code==="0"`;`/api/workflow/**`:`message.errcode==="0"`)。**HTTP 200 不算成功** |
|
|
288
|
+
| 失败 | 先看退出码与 `error.type/subtype/message`;`11`=结果不确定,**禁止自动重试**;`3`=登录失效立即停 |
|
|
289
|
+
| 文件 | 涉及合同正文/附件前必须提醒"文件内容可能进入大模型上下文并上传到 E10",**会话内一次确认,后续沿用** |
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## 6. S5 收口模板
|
|
294
|
+
|
|
295
|
+
每次执行完固定输出四段,缺一不可:
|
|
296
|
+
|
|
297
|
+
```
|
|
298
|
+
① 结论:做成了什么(一句话,动词明确:已打开 / 已生成 / 已提交 / 未执行)
|
|
299
|
+
② 证据:回读到的关键值(状态码、编号、金额、节点),写操作必须有
|
|
300
|
+
③ 未完成:本次没做或做不了的项,说明原因(含仍等你决定的冲突项)
|
|
301
|
+
④ 下一步:2~4 个可点选项(回到 S3)
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
写操作的"成功"判据:
|
|
305
|
+
|
|
306
|
+
| 动作 | 回读方式 | 算成功的条件 |
|
|
307
|
+
|---|---|---|
|
|
308
|
+
| 条款引用写入 | `clause.reference.get` | 目标条款出现在已引用列表 |
|
|
309
|
+
| 新建签约主体 | `subject.query` | 能按名称查到 |
|
|
310
|
+
| 创建流程实例 | `request.status` | `requestId` 可查 |
|
|
311
|
+
| 保存表单 | `request.status` 或重开表单 | 字段值一致 |
|
|
312
|
+
| 提交审批 | `request.status` | `flowStatus.code = 1`(审批中)或 `3`(已归档) |
|
|
313
|
+
| 催办 | `request.log` | 出现催办记录 |
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## 7. 与 SKILL.md 的分工
|
|
318
|
+
|
|
319
|
+
| 内容 | 放哪 |
|
|
320
|
+
|---|---|
|
|
321
|
+
| 适用场景、触发词、路由优先级 | `SKILL.md`(保留) |
|
|
322
|
+
| S0~S3 状态表 + 六出口索引表 | `SKILL.md`(≤1 页,摘要) |
|
|
323
|
+
| 任务合约、状态细则、S4/S5 规范 | 本文件 |
|
|
324
|
+
| 单条链路的 operation、参数、错误处理 | 各 `contract-*.md` |
|
|
325
|
+
|
|
326
|
+
SKILL.md 不再逐条罗列 132 个 operation;"选哪个命令"表压缩为六个出口的索引入口。
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
## 8. 最小可跑切片(验收判据)
|
|
331
|
+
|
|
332
|
+
```
|
|
333
|
+
上传销售合同.docx
|
|
334
|
+
→ S0 探活通过
|
|
335
|
+
→ S1 review.upload(拿 fileId/docId)
|
|
336
|
+
→ S2 对象识别(契约锁闸门 → 客户全称查询 → 新老 → 类别 → flowKey)
|
|
337
|
+
→ S3 复述判定 + 给 2~4 个选项(按 §4.2 四要素生成)
|
|
338
|
+
→ 选 E1 → flow.launch(自动回填)
|
|
339
|
+
→ S5 打开流程页 + 复述已填要素 + 给下一步
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
只用 4 个 operation:`review.upload`、`contract.type.tree`、`contract.flow.launch`、`contract.flow.page`,外加 S2 的 `contract.customer.browser`(**已实现,2026-11-02 真机跑通**)。
|
|
343
|
+
|
|
344
|
+
验收时必须同时满足:
|
|
345
|
+
|
|
346
|
+
| # | 判据 | 不满足说明什么 |
|
|
347
|
+
|---|---|---|
|
|
348
|
+
| 1 | S2 复述里,最终用户全称与命中客户的具体名称、`id` 都对得上 | 客户查询链路没接对 |
|
|
349
|
+
| 2 | S3 给的是 2~4 个选项,且**每个都带证据状态与步数** | 编排层退化成了"问一句做一步" |
|
|
350
|
+
| 3 | 选中 E1 后,流程页打开的是**判定出的那个 flow**,不是默认第一个 | 常量映射或分派逻辑错 |
|
|
351
|
+
| 4 | S5 四段齐全(结论/证据/未完成/下一步) | 收口模板没落地 |
|
|
352
|
+
|
|
353
|
+
这条跑通才算编排层成立;跑不通说明抽象错了。
|
|
354
|
+
|
|
355
|
+
> E1 的**带文件**回填还依赖上传 `fieldId` 实测确认(见 §4.1 #4)。若实测发现原 fieldId 失效,验收可先降级为"打开流程页 + 复述要素",但**必须在 S5 的"未完成"里写明文件未回填及原因**。
|
|
@@ -1132,22 +1132,22 @@
|
|
|
1132
1132
|
}
|
|
1133
1133
|
],
|
|
1134
1134
|
"artifactBaseline": {
|
|
1135
|
-
"aggregateSha256": "
|
|
1135
|
+
"aggregateSha256": "7ed85baa9b76ce0ec7d36a2d5c87c312d561f2eff3bfaaa8d33aa0d0a77b7d7f",
|
|
1136
1136
|
"files": [
|
|
1137
1137
|
{
|
|
1138
1138
|
"path": "src/shortcuts/contract/host.ts",
|
|
1139
|
-
"size":
|
|
1140
|
-
"sha256": "
|
|
1139
|
+
"size": 12278,
|
|
1140
|
+
"sha256": "6305af9c93dff618800d1d733b236e13804896435197a5493f21f5d62d21a097"
|
|
1141
1141
|
},
|
|
1142
1142
|
{
|
|
1143
1143
|
"path": "src/shortcuts/contract/index.ts",
|
|
1144
|
-
"size":
|
|
1145
|
-
"sha256": "
|
|
1144
|
+
"size": 36836,
|
|
1145
|
+
"sha256": "6124c54d22cf94e053afb4fcdcbb317509e93181b49d9ba39d7af90e81e136da"
|
|
1146
1146
|
},
|
|
1147
1147
|
{
|
|
1148
1148
|
"path": "src/shortcuts/contract/manifest.ts",
|
|
1149
|
-
"size":
|
|
1150
|
-
"sha256": "
|
|
1149
|
+
"size": 56004,
|
|
1150
|
+
"sha256": "699f4a426a5831005c3c01dafccda4cdb593da01549a3d1c17db3c2a73b81a6b"
|
|
1151
1151
|
},
|
|
1152
1152
|
{
|
|
1153
1153
|
"path": "src/shortcuts/contract/operations.ts",
|
|
@@ -1156,8 +1156,8 @@
|
|
|
1156
1156
|
},
|
|
1157
1157
|
{
|
|
1158
1158
|
"path": "src/shortcuts/contract/operations/registry.ts",
|
|
1159
|
-
"size":
|
|
1160
|
-
"sha256": "
|
|
1159
|
+
"size": 2714,
|
|
1160
|
+
"sha256": "5adbdb1ecd01f1b2eb095c9736effa36eb90f054a8e713aece91f5c305d5283c"
|
|
1161
1161
|
},
|
|
1162
1162
|
{
|
|
1163
1163
|
"path": "src/shortcuts/contract/operations/page.ts",
|
|
@@ -1196,33 +1196,33 @@
|
|
|
1196
1196
|
},
|
|
1197
1197
|
{
|
|
1198
1198
|
"path": "skills/weaver-e10-jinchengda/SKILL.md",
|
|
1199
|
-
"size":
|
|
1200
|
-
"sha256": "
|
|
1199
|
+
"size": 31773,
|
|
1200
|
+
"sha256": "7e550316b78274cf3b90d1fa6c3a2538405bcfcd1f2e282e30b326717193df20"
|
|
1201
1201
|
},
|
|
1202
1202
|
{
|
|
1203
1203
|
"path": "skills/weaver-e10-jinchengda/references/contract-ai-review.md",
|
|
1204
|
-
"size":
|
|
1205
|
-
"sha256": "
|
|
1204
|
+
"size": 4274,
|
|
1205
|
+
"sha256": "1a358bbb9905cd7e6de9b8f3cc43c73f839c546490dcaab25394cade915ec497"
|
|
1206
1206
|
},
|
|
1207
1207
|
{
|
|
1208
1208
|
"path": "skills/weaver-e10-jinchengda/references/contract-flow-launch.md",
|
|
1209
|
-
"size":
|
|
1210
|
-
"sha256": "
|
|
1209
|
+
"size": 3672,
|
|
1210
|
+
"sha256": "a1ff28940f1ee9d439b08e5222ac928c24fef991334b6feb4191d6ead769cb94"
|
|
1211
1211
|
},
|
|
1212
1212
|
{
|
|
1213
1213
|
"path": "skills/weaver-e10-jinchengda/references/contract-template-recommend.md",
|
|
1214
|
-
"size":
|
|
1215
|
-
"sha256": "
|
|
1214
|
+
"size": 3105,
|
|
1215
|
+
"sha256": "3221ed0f5846e3a8d881b445641b257f0cec6813e983c74f1151b340dcdc7a65"
|
|
1216
1216
|
},
|
|
1217
1217
|
{
|
|
1218
1218
|
"path": "skills/weaver-e10-jinchengda/references/contract-doc-compare.md",
|
|
1219
|
-
"size":
|
|
1220
|
-
"sha256": "
|
|
1219
|
+
"size": 4294,
|
|
1220
|
+
"sha256": "49ba569114493c3d79d3fdde5cb9f2ddaffba2c42a470acc7433b93a0f434307"
|
|
1221
1221
|
},
|
|
1222
1222
|
{
|
|
1223
1223
|
"path": "skills/weaver-e10-jinchengda/references/contract-credit-page.md",
|
|
1224
|
-
"size":
|
|
1225
|
-
"sha256": "
|
|
1224
|
+
"size": 1836,
|
|
1225
|
+
"sha256": "1801a0e40cfb29f83b60d158af914c08106a2d7916f00cfed35cd8fe8c5dbadb"
|
|
1226
1226
|
},
|
|
1227
1227
|
{
|
|
1228
1228
|
"path": "test/business/contract-host.test.ts",
|
|
@@ -1241,18 +1241,18 @@
|
|
|
1241
1241
|
},
|
|
1242
1242
|
{
|
|
1243
1243
|
"path": "docs/contract.md",
|
|
1244
|
-
"size":
|
|
1245
|
-
"sha256": "
|
|
1244
|
+
"size": 10215,
|
|
1245
|
+
"sha256": "fe2d895c5b36ccd25c77be19346670ad7a31c5b4537b678c9d1197f7b6a93183"
|
|
1246
1246
|
},
|
|
1247
1247
|
{
|
|
1248
1248
|
"path": "skill-template/domains/jinchengda.md",
|
|
1249
|
-
"size":
|
|
1250
|
-
"sha256": "
|
|
1249
|
+
"size": 4181,
|
|
1250
|
+
"sha256": "8a6df88f1dbb3da67157967fd524c962548bf8acdd2c4b46b0b02ddd66072478"
|
|
1251
1251
|
},
|
|
1252
1252
|
{
|
|
1253
1253
|
"path": "src/shortcuts/contract/operations/clause-library.ts",
|
|
1254
|
-
"size":
|
|
1255
|
-
"sha256": "
|
|
1254
|
+
"size": 24299,
|
|
1255
|
+
"sha256": "26375d560cd9607f36b13e1622487060ae05b795277c129c4d438e087902ebf3"
|
|
1256
1256
|
},
|
|
1257
1257
|
{
|
|
1258
1258
|
"path": "test/business/contract-clause-library.test.ts",
|
|
@@ -1261,8 +1261,8 @@
|
|
|
1261
1261
|
},
|
|
1262
1262
|
{
|
|
1263
1263
|
"path": "skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md",
|
|
1264
|
-
"size":
|
|
1265
|
-
"sha256": "
|
|
1264
|
+
"size": 6747,
|
|
1265
|
+
"sha256": "b08c6ca243316fe2df7b5788d0e4aaf4cffeacb165a13c099af479140b69830c"
|
|
1266
1266
|
}
|
|
1267
1267
|
]
|
|
1268
1268
|
},
|
|
@@ -7,7 +7,7 @@ description: 泛微E10聚才林人事管理,帮您处理人事日常事宜:[
|
|
|
7
7
|
description_zh: 泛微E10聚才林人事管理,帮您处理人事日常事宜:[出勤]-查考勤数据做报表统计、考勤打卡(PC端签到签退)、发考勤流程处理考勤异常;[薪酬]-查工资、社保公积金、调薪记录;[招聘]-帮您找人才、管招聘需求、生成职位JD、导入简历建人才、查应聘者台账、安排面试、发Offer、办入职、看招聘统计;[人事基础]-查员工信息、组织编制及从不同维度汇总人事报表。
|
|
8
8
|
description_en: "Weaver E10 Jucailin HR Management: your assistant for daily HR tasks. [Attendance] Check attendance data, generate reports & statistics, clock in/out on PC, and start attendance workflows to handle attendance exceptions. [Payroll] View pay slips, social security & housing fund, and salary adjustment records. [Recruitment] Find candidates, manage recruitment requisitions, generate job descriptions (JD), import resumes to build candidate profiles, view candidate pipeline records, arrange interviews, send offers, handle onboarding, and view recruitment statistics. [HR Basics] Look up employee information, organizational headcount, and compile HR reports from various dimensions."
|
|
9
9
|
category: business
|
|
10
|
-
version: 2.0.
|
|
10
|
+
version: 2.0.7
|
|
11
11
|
author: 泛微网络科技股份有限公司
|
|
12
12
|
permissions: [network]
|
|
13
13
|
execution:
|
|
@@ -53,7 +53,7 @@ printf '%s\n' '{"type":"CHECKIN","continuation":"<prepare 返回的 token>","con
|
|
|
53
53
|
## 确认链要求
|
|
54
54
|
|
|
55
55
|
1. `prepare` 只预览和生成 continuation,**不会发送任何写请求**。
|
|
56
|
-
2. 向用户摘要目标、影响范围、风险和 continuation 绑定含义(continuation 与当前租户与登录账号绑定,
|
|
56
|
+
2. 向用户摘要目标、影响范围、风险和 continuation 绑定含义(continuation 与当前租户与登录账号绑定,24 小时有效)。
|
|
57
57
|
3. 用户**明确确认**后才调用 `apply`,并传入 `confirm=true` 与 `prepare` 返回的 continuation。
|
|
58
58
|
4. `apply` 不可盲目重试。遇到不确定结果先停止,再做一次只读回查。
|
|
59
59
|
|
|
@@ -77,7 +77,7 @@ printf '%s\n' '{"type":"CHECKIN","continuation":"<prepare 返回的 token>","con
|
|
|
77
77
|
- `confirmation/required`:缺少 `confirm=true`,必须回到确认链第 2 步。
|
|
78
78
|
- `target_changed`:提交参数与 `prepare` 快照不一致,必须重新执行 `prepare`。
|
|
79
79
|
- `context_mismatch`:租户或登录账号在 prepare 之后发生变化,必须重新执行 `prepare`。
|
|
80
|
-
- `continuation_expired`:continuation 超过
|
|
80
|
+
- `continuation_expired`:continuation 超过 24 小时,重新执行 `prepare`。
|
|
81
81
|
- `appeal_not_allowed`:`stillShowAppeal=false`,当前不可申诉,不要继续提交。
|
|
82
82
|
- `partial/write_uncertain`:请求已发出但结果不确定。立即停止,禁止自动重试,先做只读回查再向用户报告。
|
|
83
83
|
|
|
@@ -36,9 +36,13 @@ weaver-work-cli ehr run ehr.recruit.position.create.apply --input-json '{"positi
|
|
|
36
36
|
**要点**
|
|
37
37
|
|
|
38
38
|
- JD 正文由你(大模型)写:`duty` 写岗位职责、`requirement` 写任职要求,各写入对应的多行文本字段。
|
|
39
|
-
- 可选覆盖:`education` / `workYears` / `jobCategory` / `positionNature`(按**数据字典名称**)、`salaryType` / `recruitType`(按枚举名称)、`recruitCount` / `salaryMin` / `salaryMax` / `numberOfPayMonths`(数字)、`recruitPrincipal` / `employManager` / `interviewer` / `recruitHelper`(按**姓名**)。
|
|
39
|
+
- 可选覆盖:`education` / `workYears` / `jobCategory` / `positionNature`(按**数据字典名称**)、`salaryType` / `recruitType`(按枚举名称)、`recruitCount` / `salaryMin` / `salaryMax` / `numberOfPayMonths`(数字)、`workLocation`(办公地点名称或详细地址,如「上海」)、`recruitPrincipal` / `employManager` / `interviewer` / `recruitHelper`(按**姓名**)。
|
|
40
40
|
- 字典同名多项或找不到 → 该字段**跳过**并在 `preview.explicitSkipped` 列明,不会写脏值;不要为了"凑齐"而换别的名称重试。
|
|
41
|
-
-
|
|
41
|
+
- 🔴 **薪资必须沿用现值(`salary_min` / `salary_max` 是表单必填项)**:不传就会留空,导致后端必填校验失败、整个建职位流程直接报错。因此这两个字段**必须**沿用「环境内在册职位」的现值(或显式传 `salaryMin` / `salaryMax`,元/月数值),**不能留空**。但历史薪资可能是脏数据(实测抓到过 300 元月薪),所以不静默使用:`preview.inheritedFromRef` 会列出薪资的继承值,`preview.inheritedSalaryWarnings` 对明显偏低(<1000)的值追加提示——**这两项都必须写进确认摘要,提示用户核对后再提交**。
|
|
42
|
+
- **工作地点(2026-11-06 起)**:传 `workLocation`(办公地点名称或详细地址)可显式指定,CLI 在「办公地点」列表的**启用记录**里精确匹配后解析成记录 id,解析不到进 `preview.explicitSkipped`,不会瞎写 id。
|
|
43
|
+
🔴 **未指定时不再从在册职位继承**(历史职位会带出 `detail_location` 为 `1` 的脏地点),改按启用列表精确匹配默认地点「浦江镇三鲁公路3419号泛微软件园」;`preview.workLocationDefault` 给出实际采用的地点,找不到则该字段不写并由 `preview.workLocationWarning` 点名,需用户显式指定。记录 id 与启用状态一律运行时解析,不写死、不落盘。
|
|
44
|
+
- 其余未指定的关联型字段(职位属性/序列/学历/工作年限/招聘流程)沿用**环境内在册职位的现值**,保证引用有效;`preview.noReferenceValue` 列出没取到值的字段。
|
|
45
|
+
- 🔴 **`preview.inheritedFromRef` 必须逐项列进确认摘要**(字段 + 值),不得因为是默认值就略过。
|
|
42
46
|
- apply 成功返回 `formDataId`、`positionPostId`、`cardUrl`(职位单页)、`listLocateUrl`(职位列表定位)。`rpaChecked=false` 时把 `rpaValidMsg` 如实转告。
|
|
43
47
|
|
|
44
48
|
---
|
|
@@ -81,9 +85,15 @@ weaver-work-cli ehr run ehr.recruit.candidate.import.apply --input-json '{"candi
|
|
|
81
85
|
- 明细表在 `getTableMapping` 中无对应节点 → 该表整表跳过(主表照常建档),`preview.warnings` 会写明。
|
|
82
86
|
- 批次初始化失败 → 人才仍已建档,`batch.note` 说明原因,不要重试建档。
|
|
83
87
|
- 平台标签不在本环境清单 → `tagsSkipped` 列出,**不要自动新建标签**。标签按名精确解析(并行 type0/type1,N 个名字一轮请求),不再受环境标签总量影响;prepare 的 `tagCheck.missing` 就是 apply 会跳过的那些,可在确认摘要里先提示用户。
|
|
84
|
-
- apply
|
|
88
|
+
- 🔴 **apply 的 `result` 不恒为 `success`(2026-11-05 起,三态看 `detailsState`)**:
|
|
89
|
+
| `detailsState` | `result` | 含义 | 该怎么跟用户说 |
|
|
90
|
+
|---|---|---|---|
|
|
91
|
+
| `complete` | `success` | 明细读回行数 ≥ 期望 | 正常报告建档成功 |
|
|
92
|
+
| `missing` | **`partial`** | 主表已写入,明细读回不足 | **必须说「人才已建,但教育/工作等经历明细未完整落库」**,提示走更新补明细;**不得**说"建档成功" |
|
|
93
|
+
| `unverified` | **`partial`** | 明细回读校验本身失败 | 说「写入结果未经验证」,建议到人才卡片人工核对 |
|
|
94
|
+
- apply 返回错误 `partial/write_uncertain` → 先用人才库按手机号核对是否已建档,**禁止直接重试**。
|
|
85
95
|
|
|
86
|
-
**产物**:`talentCardUrl`(人才卡片单页)+ `talentListLocateUrl
|
|
96
|
+
**产物**:`talentCardUrl`(人才卡片单页)+ `talentListLocateUrl`(人才库列表,只打开列表、不打开详情)。两个都以 Markdown 链接放回答正文;列表 URL 由 CLI 按环境缓存拼装,不要手拼。
|
|
87
97
|
|
|
88
98
|
---
|
|
89
99
|
|
|
@@ -102,3 +112,4 @@ weaver-work-cli ehr run ehr.recruit.stats --input-json '{"modules":["talent","de
|
|
|
102
112
|
- `summary.knownTotal` 只累加精确值;`unknownModules` / `unavailableModules` 要如实说明。
|
|
103
113
|
|
|
104
114
|
**边界**:这是「各模块各有多少条」;用户要「各阶段通过率/漏斗图」时,本命令不提供(需看板配置),如实说明不要编造。
|
|
115
|
+
- **薪资单位(2026-11-06 加固)**:职位薪资字段按**千元**存储(页面 15.00 = 15K)。显式 `salaryMin`/`salaryMax` 按「元」传入,CLI 自动 ÷1000 提交;从在册职位沿用的现值已是千元,不再换算。
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
## 协议细节
|
|
25
25
|
|
|
26
|
-
1. `prepare` 返回 `status: AWAITING_CONFIRMATION`、`preview`(人类可读摘要)、`continuation`(
|
|
26
|
+
1. `prepare` 返回 `status: AWAITING_CONFIRMATION`、`preview`(人类可读摘要)、`continuation`(24 小时有效)与 `expiresInSeconds`。
|
|
27
27
|
2. `apply` 入参 = prepare 相同业务参数 + `confirm: true` + `continuation`。**apply 会校验指纹**:业务参数与 prepare 快照不一致时报 `target_changed`,须重新 prepare。
|
|
28
28
|
3. continuation 与当前 CLI 登录环境绑定(由 `weaver-work-cli auth` 托管),切换租户或账号后报 `context_mismatch`,此时须重新 prepare。登录与认证细节见共享规则 [`../../weaver-e10-shared/SKILL.md`](../../weaver-e10-shared/SKILL.md)。
|
|
29
29
|
4. 多步写入(saveFormData → initTalentBatch / sendOffer / saveEstPreEntry / runEsb)中途网络中断时报 `partial/write_uncertain` 并给出已落地的记录 id——**禁止自动重试**,先按提示回查(`candidate.search` / `candidate.card`)确认实际状态。
|
|
@@ -69,8 +69,8 @@ weaver-work-cli --json ehr run ehr.recruit.candidate.interview.arrange.apply --i
|
|
|
69
69
|
|
|
70
70
|
| 操作 | apply 输出链接字段 | 形态 |
|
|
71
71
|
|---|---|---|
|
|
72
|
-
| `candidate.create` / `candidate.import.apply` | `talentCardUrl` + `talentListLocateUrl` | 人才卡片单页 /
|
|
73
|
-
| `interview.arrange` | `talentCardUrl` + `interviewLocateUrl` |
|
|
72
|
+
| `candidate.create` / `candidate.import.apply` | `talentCardUrl` + `talentListLocateUrl` | 人才卡片单页 / 人才库列表(只打开列表) |
|
|
73
|
+
| `interview.arrange` | `talentCardUrl` + `interviewLocateUrl` | 人才卡片单页 / 面试管理列表(只打开列表) |
|
|
74
74
|
| `offer.send` | `talentCardUrl` + `offerListUrl` | 人才卡片 / 录用列表(直开) |
|
|
75
75
|
| `entry.process` | `entryListUrl` | 入职列表(直开) |
|
|
76
76
|
| `feedback.edit` / `feedback.urge` | `talentCardUrl` | 人才卡片(反馈信息在卡片可见) |
|