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
package/docs/caizhilian.md
CHANGED
|
@@ -245,7 +245,7 @@ weaver-work-cli --json caizhilian run caizhilian.attachment.download --input-jso
|
|
|
245
245
|
- **枚举拼写 1:1 沿用源接口**:权限相关键是 `deletePremisstion` / `downloadPremisstion` / `newCreateDocPremisstion` / `newCreateFolderPremisstion` / `settingPermission`(源拼写 `Premisstion`,不要改成 `Permission`)。
|
|
246
246
|
- **根文件夹约定**:`folder_id` 100 = 系统、200 = 公共、300 = 个人;`folder_type` / `kb_type` 取 `company` / `privy` / `sys`。`folder.create` 在 `parent_type=privy` 时强制 `sequence=0`、`inherit_parent=false`。
|
|
247
247
|
- **分页语义**:`has_next = 本页条数 >= page_size`;`page_no` / `page_size <= 0` 报 `validation/number_invalid`(源是静默归一,CLI 选择显式报错)。
|
|
248
|
-
- **确认链**:票据有效期
|
|
248
|
+
- **确认链**:票据有效期 24 小时,绑定 baseUrl + 登录账号 + 目标 apply 操作名 + 入参指纹 + 请求体指纹(文件类还绑定 MD5 与大小)。相应报错为 `continuation_expired` / `continuation_context_mismatch` / `continuation_mismatch` / `continuation_args_changed` / `continuation_target_changed` / `plan_changed` / `file_changed`,一律重新 prepare。
|
|
249
249
|
- **文件传输**:上传统一走 `preUploadCheck` → `module/upload`,命中 MD5 秒传时不真正传文件;下载文件名取响应头 `content-disposition`(已过滤路径穿越),同名文件按 `名称(1).扩展名` 自动改名,不覆盖。
|
|
250
250
|
- **共享语义**:`share.add` 在服务端返回 `code=500 + status=true` 时判定为「已存在」,返回 `{ added: false, message }`,不算失败;其他业务失败抛 `api/business_error`。`participant.remove` 用 `share_entry_id` 而不是 `user_id`。
|
|
251
251
|
- **标签语义**:`type=0` 公共标签(仅 document 可用)、`type=1` 个人标签;批量写操作按「公共组 + 个人组」两次请求提交,空组跳过。
|
package/docs/calendar.md
CHANGED
|
@@ -53,7 +53,7 @@ weaver-work-cli --json calendar run <operation> --input-json '{"key":"value"}'
|
|
|
53
53
|
|
|
54
54
|
1. `prepare` 只归一化、补默认值、查当前数据(更新/删除)、生成预览和 continuation,不写入。
|
|
55
55
|
2. `apply` 必须带 `confirm=true` 与 prepare 返回的 continuation。
|
|
56
|
-
3. continuation 绑定 `baseUrl`/`profile`/`userId`,
|
|
56
|
+
3. continuation 绑定 `baseUrl`/`profile`/`userId`,24 小时有效;变化触发 `context_mismatch`,字段指纹变化触发 `target_changed`。
|
|
57
57
|
4. 网络中断抛 `partial/write_uncertain`,禁止自动重试,先做只读回查。
|
|
58
58
|
|
|
59
59
|
## 关键业务规则
|
package/docs/contract.md
CHANGED
|
@@ -52,6 +52,7 @@ weaver-work-cli --json contract run contract.workflow.query --input-json '{"work
|
|
|
52
52
|
| 条款库维护 | `contract.clause.permission`、`contract.clause.types`、`contract.clause.check`、`contract.clause.browser`、`contract.clause.subcompany`;`contract.clause.category.*` / `contract.clause.*` / `contract.clause.group.*` 的 `create|update|delete` + `.prepare/.apply` |
|
|
53
53
|
| 条款引用 | `contract.clause.reference.get`、`contract.clause.reference.save.prepare/apply` |
|
|
54
54
|
| 签约主体 | `contract.subject.app`、`contract.subject.form`、`contract.subject.fields`、`contract.subject.options`、`contract.subject.query`、`contract.subject.create.prepare/apply` |
|
|
55
|
+
| 客户主数据 | `contract.customer.browser`(按客户**全称**查询,走表单浏览补全 `browser/complete`;`searchValue` 必填非空,`workflowId` 必填;`fieldName`/`fieldId` 可选用于字段歧义时指定) |
|
|
55
56
|
| 流程解析 | `contract.workflow.query`、`contract.workflow.list`、`contract.workflow.form.info`(三段式:loadBaseParam → loadFrameParam → getFormLayout)、`contract.workflow.field.options` |
|
|
56
57
|
| 流程写操作 | `contract.request.create.prepare/apply`、`contract.request.save.prepare/apply`、`contract.request.submit.prepare/apply`、`contract.request.supervise.prepare/apply` |
|
|
57
58
|
| 流程状态 | `contract.request.status`、`contract.request.log` |
|
|
@@ -100,7 +101,7 @@ weaver-work-cli --json contract run contract.workflow.query --input-json '{"work
|
|
|
100
101
|
|
|
101
102
|
## 写操作确认链
|
|
102
103
|
|
|
103
|
-
- 写操作一律 `prepare -> apply`:`prepare` 返回脱敏 `preview` 与 `continuation`(有效期
|
|
104
|
+
- 写操作一律 `prepare -> apply`:`prepare` 返回脱敏 `preview` 与 `continuation`(有效期 24 小时),`apply` 必须带 `continuation` 与 `confirm: true`。
|
|
104
105
|
- 提交审批与催办需要与“创建并保存”分开的第二次确认。
|
|
105
106
|
- 提交后回读 `contract.request.status`,`flowStatus.code` 为 1(审批中)或 3(已归档)才算生效。
|
|
106
107
|
- 写请求超时或断线返回 `partial/write_uncertain`(退出码 11),禁止自动重放。
|
package/docs/e10-auth.md
CHANGED
|
@@ -92,7 +92,25 @@ XiaoE 换票结果中的 `expiryTimes` 按 Unix 毫秒时间戳持久化。宿
|
|
|
92
92
|
`ETEAMSID`。命令会调用 `teamsCheck` 解析当前用户、租户和组织信息,并写入
|
|
93
93
|
E10 兼容的 auth 文件。
|
|
94
94
|
|
|
95
|
-
静默恢复失败时,`authentication/xiaoe_credential_unavailable` 会带 `details` 以便定位而不必复现:`attemptedSteps` 按序记录评估过的凭证通道及结果(如 `platform_token:missing`、`bundled_env_script:failed`、`token_script:disabled`、`environment_map:empty`、`e10_session:failed`),`failures` 按发生顺序保留每一次失败的阶段(`platform_token` / `bundled_env_script` / `token_script` / `client_session` / `teams_check` / `e10_session`)、类别(`network` / `http` / `credential`)以及网络错误的系统错误码 `causeCode`(取自 `error.cause.code`,如 `ECONNREFUSED`、`ETIMEDOUT`)和 HTTP 错误的状态码 `httpStatus
|
|
95
|
+
静默恢复失败时,`authentication/xiaoe_credential_unavailable` 会带 `details` 以便定位而不必复现:`attemptedSteps` 按序记录评估过的凭证通道及结果(如 `platform_token:missing`、`bundled_env_script:failed`、`token_script:disabled`、`environment_map:empty`、`e10_session:failed`),`failures` 按发生顺序保留每一次失败的阶段(`platform_token` / `bundled_env_script` / `token_script` / `client_session` / `teams_check` / `e10_session`)、类别(`network` / `http` / `credential`)以及网络错误的系统错误码 `causeCode`(取自 `error.cause.code`,如 `ECONNREFUSED`、`ETIMEDOUT`)和 HTTP 错误的状态码 `httpStatus`。Node 换票失败会保留最多五层脱敏的 `error.cause` 链,以及存在时的 `errno`、`syscall`、`hostname`、`address`、`port`。完整换票请求快照仅持久化到 `auth logs` 对应的认证错误日志:其中 `failure.request` 记录实际请求方法、去除用户信息和查询串后的接口地址、最终重定向地址、完整 `domain` 请求体、请求体字节数、重定向策略、15 秒超时、实际耗时、重定向次数及固定的脱敏请求头,`auth logs show` 再把它渲染为单行 `requestParams` JSON。业务命令失败的 stderr / `error.details.failures` 会移除 `request`,不会带接口与请求体。`Authorization` 永远只显示 `<redacted>`,但认证日志会记录 `authorizationPresent` 和 `authorizationLength`,用于区分宿主未注入与网络失败。Python 兼容路径会保留最多 12 行、总长 2000 字符的脱敏 stderr 尾部,避免只剩一行源码。`lastError` 是最后一条真实原因(已对已知凭据脱敏并截断到 300 字符),并附带解析出的 `baseUrl`、`clientType`、`platformCredentialDetected`、整体归类 `errorKind` 与最后失败阶段 `failureStage`;若票其实换到了、但按 `expiryTimes` 判定为已过期,会额外带 `resultSessionExpired: true`。当且仅当所有失败都是网络错误时,错误改为 `authentication/xiaoe_network_unavailable`、`retryable: true`,文案换成“暂时无法连接 E10,请稍后重试”(此时登录态并未被验证,提示用户重新登录属于误导)。这条路径默认依然完全无输出,需要看每一步的过程日志时给业务命令加 `--verbose`(经 stderr 以 `[debug]` 前缀输出;`--json` 下完全不输出)。
|
|
96
|
+
|
|
97
|
+
显式 `auth xiaoe` 失败和上述静默恢复失败都会把同一份诊断持久化为 JSON Lines。
|
|
98
|
+
持久化前会再次移除 URL 查询参数、已知凭据、Bearer 值和服务端原始 `details`;日志不保存
|
|
99
|
+
Cookie、ETEAMSID 或 Token。支持 POSIX 权限的平台会把日志目录和文件分别限制为 `0700`
|
|
100
|
+
和 `0600`。查看与清理只通过 CLI:
|
|
101
|
+
|
|
102
|
+
```text
|
|
103
|
+
weaver-work-cli auth logs
|
|
104
|
+
weaver-work-cli auth logs show --limit 100
|
|
105
|
+
weaver-work-cli --json auth logs show --limit 100
|
|
106
|
+
weaver-work-cli auth logs path
|
|
107
|
+
weaver-work-cli auth logs clear
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
`auth logs` 默认按时间倒序显示最近 50 条,`--limit` 范围为 1–500;`auth logs clear`
|
|
111
|
+
只删除固定的 XiaoE 认证错误日志,不影响 profile、登录态或 keychain。日志保留期为 15 天;
|
|
112
|
+
每次写入或执行 `auth logs [show]` 时会删除更早的记录。CLI 不是常驻进程,无调用时不会
|
|
113
|
+
在后台定时唤醒。
|
|
96
114
|
|
|
97
115
|
网页端若返回 `details.reason=host_credential_not_injected`,表示沙箱仍带 `XIAOE_CLIENT_TYPE=cloud` 标记,但宿主注入的平台凭据在启动子进程时丢失。这不是 E10 登录损坏,也不能通过重试或浏览器 OAuth 自愈;沙箱启动器必须保留宿主环境并只定向覆盖 `WEAVER_WORK_CLI_AUTH_ROOT` 等测试变量,不得用 `env -i`、空环境字典或不包含 XiaoE 平台凭据的白名单启动 CLI。凭据值不得写入命令、日志或错误详情。
|
|
98
116
|
|
package/docs/ehr.md
CHANGED
|
@@ -113,7 +113,7 @@ HR 报表类接口走 `application/x-www-form-urlencoded`(`sourceType=LOGIC` +
|
|
|
113
113
|
|
|
114
114
|
1. `prepare` 只预览并生成 continuation,不发送写请求。
|
|
115
115
|
2. `apply` 必须带 `confirm=true` 与 `prepare` 返回的 continuation。
|
|
116
|
-
3. continuation 绑定 `baseUrl`/`profile`/`userId`,
|
|
116
|
+
3. continuation 绑定 `baseUrl`/`profile`/`userId`,24 小时有效;租户或账号变化会触发 `context_mismatch`。
|
|
117
117
|
4. 关键参数与 `prepare` 快照不一致时触发 `target_changed`,必须重新 `prepare`。
|
|
118
118
|
5. 网络中断抛出 `partial/write_uncertain`(退出码 `partial`),**禁止自动重试**,先做只读回查。
|
|
119
119
|
|
|
@@ -168,7 +168,7 @@ printf '%s\n' '{"beginDate":"2026-03-01","endDate":"2026-03-31"}' | weaver-work-
|
|
|
168
168
|
招聘 EB 接口要求 `ebBusinessId: <listId>` 请求头,`ds/fields` 要求 multipart/form-data,
|
|
169
169
|
两者由 `host.ts` 的 `headers`/`multipart` 通道支持(认证头仍由运行时统一注入并保护)。
|
|
170
170
|
|
|
171
|
-
**招聘写操作**(`operations/recruit-write.ts`):candidate.create / interview.arrange / offer.send / entry.process / interview.feedback.edit / interview.feedback.urge 六对 prepare→apply 已实现(迁移自 ehr 技能 recruit-* 写脚本),全部走确认链协议:prepare(只读定位/查重/枚举与人员解析 + 摘要 + continuation
|
|
171
|
+
**招聘写操作**(`operations/recruit-write.ts`):candidate.create / interview.arrange / offer.send / entry.process / interview.feedback.edit / interview.feedback.urge 六对 prepare→apply 已实现(迁移自 ehr 技能 recruit-* 写脚本),全部走确认链协议:prepare(只读定位/查重/枚举与人员解析 + 摘要 + continuation 24 小时)→ 用户确认 → apply(confirm + 指纹校验 + 会话绑定校验 + 部分操作 apply 阶段二次查重);多步写入(saveFormData → initTalentBatch / sendOffer / saveEstPreEntry / runEsb)中断报 `partial/write_uncertain` 禁止自动重试。Offer 邮件、面试通知(notify)、催评为 L3 外部通知。esbActionIds 全部运行时按钮解析(getFormButtons/getListButtons),解析不到阻断不编造。入职撤销(entry.cancel.change)暂缓实现。
|
|
172
172
|
|
|
173
173
|
## 禁用边界
|
|
174
174
|
|
package/docs/esb.md
CHANGED
|
@@ -32,7 +32,7 @@ src/shortcuts/esb/
|
|
|
32
32
|
| operation | 风险 | 用途 |
|
|
33
33
|
| --- | --- | --- |
|
|
34
34
|
| `esb.input-format` | `read` | 按 `applicationId` 取回 `customParams` 模板、`moduleSource` 与 `esbFlowId`;无副作用 |
|
|
35
|
-
| `esb.trigger.prepare` | `read-before-write` | 只读回查目标动作流、组装触发请求体、签发 continuation(
|
|
35
|
+
| `esb.trigger.prepare` | `read-before-write` | 只读回查目标动作流、组装触发请求体、签发 continuation(24 小时);不触发动作流 |
|
|
36
36
|
| `esb.trigger.apply` | `high-risk-write` | 校验 continuation 与登录身份后调用触发接口,需 `confirm: true` |
|
|
37
37
|
|
|
38
38
|
## 常见命令
|
package/docs/im.md
CHANGED
|
@@ -68,7 +68,7 @@ weaver-work-cli --json im run <operation> --input-json '{"key":"value"}'
|
|
|
68
68
|
|
|
69
69
|
所有写操作(send/withdraw/top.set/ding/group 系列)统一 `prepare → apply`:
|
|
70
70
|
|
|
71
|
-
- `prepare`:只读校验(成员解析、源消息读取、接收人计算),返回 `summary` + `continuation`(HMAC-SHA256 签名,
|
|
71
|
+
- `prepare`:只读校验(成员解析、源消息读取、接收人计算),返回 `summary` + `continuation`(HMAC-SHA256 签名,24 小时有效,含 baseUrl/profile/userId 指纹与 snapshot 指纹)。
|
|
72
72
|
- `apply`:必须 `confirm:true` + 有效 continuation;校验租户/账号一致(`context_mismatch`)与目标指纹(`target_changed`);执行后不确定结果返回 `partial/write_uncertain`,禁止自动重试。
|
|
73
73
|
|
|
74
74
|
会话提醒设置(`im.user.setRemind`,接口 `POST /api/em/msg/executeIm/user/setMsgRemind`)走同一确认链:`sessionType` 取 `1` 单聊会话(`toUid`+`toCid`)、`2` 群聊会话(`groupId`)、`4` 系统会话(`group`);`reminder` 取 `0` 消息接收提醒 / `1` 消息接收但不提醒(免打扰)。操作者身份由 CLI 用当前登录人填充,调用方不能自带。
|
package/docs/invoice.md
CHANGED
|
@@ -52,6 +52,8 @@ weaver-work-cli --json invoice list --fields number,detailUrl
|
|
|
52
52
|
|
|
53
53
|
当前输出层把完整 JSON 直接写 stdout。0.1.17 起可用 `--view summary`(列表语义平表,仅 `invoice.list` / `invoice.enterprise.list` 支持)与 `--fields a,b.c`(点路径投影,所有 operation 可用)裁剪输出——两者互斥,只影响输出、不改变请求参数;仍不提供飞书 CLI 的 `--jq`、`--format table/ndjson` 或通用 `--page-all`。Agent 使用时应默认小页读取和摘要渲染:列表先 `page_size=10`,按 `start_pos` 继续;回复只展示关键字段和数量,超长详情/OCR/调试 JSON 落本地文件后给路径。
|
|
54
54
|
|
|
55
|
+
票面扩展信息 `ext`(费用说明、城市、备注、起止地、上下车站点)对报销按城市 / 行程筛票很关键。`/api/inc/sync` 的 `mext` 按位选择返回哪些 `ext` 字段,不传就不返回 `ext`,所以 `invoice.list` / `invoice.enterprise.list` 默认传 `mext=2147483647` 取回完整 `ext`(调用方显式传的 `mext` 优先)。每条发票保留原始 `ext` 字符串,另加解析好的 `extInfo`(`expenseNote`、`content`、`city`、`province`、`comment`、`from`、`to`、`stationGetOn`、`stationGetOff`,空值省键);`--view summary`、`--view detail` 把这些字段平铺展示。提取逻辑在 `src/shortcuts/invoice/invoice-record.ts`,列表项是 `{ info, ret }` 包装时也能识别。
|
|
56
|
+
|
|
55
57
|
## Operation 目录
|
|
56
58
|
|
|
57
59
|
| Operation | 风险 | 固定规则 |
|
|
@@ -69,17 +71,15 @@ weaver-work-cli --json invoice list --fields number,detailUrl
|
|
|
69
71
|
| `invoice.delete.prepare/apply` | 高风险写 | 固定软删除 `flag=0`,确认后执行并回查 |
|
|
70
72
|
| `invoice.browse-field.data` | 只读 | 基于详情接口生成流程表单发票浏览按钮 JSON |
|
|
71
73
|
| `invoice.reim.file-ocr.preview` | 文件识别预览 | 对 E10 fileId 调用报销场景的发票识别接口,只保留成功项 |
|
|
72
|
-
| `invoice.reim.requests.list` | 只读 | 查询事前申请流程列表,默认 `pageNo=1`、`pageSize=100
|
|
74
|
+
| `invoice.reim.requests.list` | 只读 | 查询事前申请流程列表,默认 `pageNo=1`、`pageSize=100`;结束日取传入的 `cusCreateDateEnd` 或东八区当天,发给接口时再 + 1 天;未传 `cusCreateDateStart` 时取结束日前 7 天,第 1 页为空自动放宽到结束日前 1 个月再查一次,`scene="phone"`(话费)时取结束日前 90 天且不放宽;返回 `data.query`(实际 `cusCreateDateStart`、业务结束日 `cusCreateDateEnd`、`widened`);每条只输出 `requestid` / `workflowid` / `requestname` / `flowStatus` / `creatorId` / `creatorName` / `createTime` |
|
|
73
75
|
| `invoice.reim.workflow.resolve` | 只读 | 根据事前申请 ID 获取报销工作流;无事前申请时传空数组 |
|
|
74
|
-
| `invoice.reim.
|
|
75
|
-
| `invoice.reim.row-info` | 只读 | 使用 urlencoded 请求获取单张发票明细行预填信息 |
|
|
76
|
+
| `invoice.reim.candidates.list` | 只读 | 按日期自动翻页拉取未报销发票,分成 `available`(可报)/ `assigned`(已挂单)两组并给出金额合计 |
|
|
76
77
|
| `invoice.reim.employee-superiors` | 只读 | 获取当前人员和上级信息 |
|
|
77
78
|
| `invoice.reim.field.search` | 只读 | `GET /api/government/formStructure/fieldRelateSearch`;按名称模糊搜相关客户或相关项目。返回 `match=unique/multiple/none`:一条直接填 `名称(ID)`,多条让用户选。报销时客户和项目必须在建草稿前确认 |
|
|
78
|
-
| `invoice.
|
|
79
|
-
| `invoice.
|
|
80
|
-
| `invoice.issuing.qys.list` | 只读 | 获取待开票合同数据(含契约锁、泛微及其他合同),返回可开票行 `items` 与按「合同号 + 购方」汇总的 `groups`(开票金额合计按分累加、`blockedRows` 计不可开票行、`sellerNames` 为核算公司);AI 开票据此调用 `weaver-e10-workflow` 发起开票流程草稿 |
|
|
79
|
+
| `invoice.issuing.contracts.list` | 只读 | 入参 `cards`(`workflow.search` 返回的 `data.cards`,原样传入)或 `requestIds`,二选一,最多 50 条。对每个 `requestId` 调一次 `POST /api/ebuilder/form/eblist/getData`(合同虚拟表,按「合同审批流程」过滤,明细按 100 行一页取完),把结果拼回卡片:`invoiced`(查不到明细为 `true`,即已开票)、`contractNo`、`customerName`、`buyerTaxNo`、`sellerName`、`invoiceAmount`(全部明细金额之和,两位小数)、`invoiceGroups[]`(按分组标识汇总 `group` / `amount` / `items[]`);顶层返回 `count`、`pendingCount`、`invoicedCount`。AI 开票先用 `weaver-e10-workflow` 的 `workflow.search` 查三个合同审批流程(用户点名检索词时追加 `requestName`,按流程标题模糊搜索;不传则不带该字段),再用本命令列出待开票合同 |
|
|
80
|
+
| `invoice.issuing.contract.detail` | 只读 | 入参 `requestId`(用户选定的合同审批流程)。`POST /api/workflow/core/paService/v1/getWorkflowRequest`(`isReadRequest=false`,不标记已读),只取主表:`customer`(「客户名称」Ebuilder 的 `{id, name}`,没有时取「最终用户卡片」)、`customerSource`、`contractDocuments[]`(「合同正文及附件」每个文件的 `docId` / `fileId` / `name`)、`contractDocIds`(全部 `docId` 逗号连接)。AI 开票「合同客户」填 `customer` 的 `{id, name}`;「合同文本」与合同流程一样,按每个文件的 `docId`、`name` 填 `{id, name}`,多个文件传数组,不要填 `contractDocIds` 逗号串或纯数字 id |
|
|
81
81
|
|
|
82
|
-
>
|
|
82
|
+
> 报销单的创建与修改统一走 `weaver-e10-workflow`(`workflow.createForm` / `workflow.createRequest` / `workflow.edit*`),旧的 `invoice.reim.form.structure`、`invoice.reim.row-info`、`invoice.reim.row-info-batch`、`invoice.reim.flow.create.prepare/apply`、`invoice.reim.flow.update.prepare/apply`、`invoice.reim.template.build`、`invoice.reim.flow.create.auto-prepare` 已移除;`invoice.issuing.qys.list` 也已由 `invoice.issuing.contracts.list` / `invoice.issuing.contract.detail` 取代。调用这些旧 operation 会返回 `validation/operation_retired`(退出码 2),`error.details` 给出 `replacement`(替代链路)和 `reference`(skill 文档),完整清单见 `invoice schema` 的 `retiredOperations`。
|
|
83
83
|
|
|
84
84
|
共享、转让和标签仍暂不暴露给 Agent:新版源资料给出了提交接口,但还缺少稳定的接收人 `appid/cid/uid` 解析来源、标签关系查询和写后回查契约。
|
|
85
85
|
|
|
@@ -107,8 +107,6 @@ weaver-work-cli --json invoice run invoice.ocr.preview --input-json '{"file":"./
|
|
|
107
107
|
weaver-work-cli --json invoice import prepare --input-json '{"file":"./invoice.pdf","validate":true,"syncToOa":true}'
|
|
108
108
|
|
|
109
109
|
weaver-work-cli --json invoice import apply --input-json '{"file":"./invoice.pdf","continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
110
|
-
|
|
111
|
-
weaver-work-cli --json invoice run invoice.reim.flow.create.prepare --input .\reim-create.json
|
|
112
110
|
```
|
|
113
111
|
|
|
114
112
|
macOS/Linux(bash/zsh):
|
|
@@ -119,13 +117,11 @@ weaver-work-cli --json invoice run invoice.ocr.preview --input-json '{"file":"./
|
|
|
119
117
|
weaver-work-cli --json invoice import prepare --input-json '{"file":"./invoice.pdf","validate":true,"syncToOa":true}'
|
|
120
118
|
|
|
121
119
|
weaver-work-cli --json invoice import apply --input-json '{"file":"./invoice.pdf","continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
122
|
-
|
|
123
|
-
weaver-work-cli --json invoice run invoice.reim.flow.create.prepare --input ./reim-create.json
|
|
124
120
|
```
|
|
125
121
|
|
|
126
122
|
导入发票文件或远程 URL 时,面向 Agent 的正常链路是先 `invoice.ocr.preview`,再 `invoice.import.prepare` 使用 `validate=true`、`syncToOa=true`。只有用户明确要求跳过查验或离线导入时才传 `validate=false`;`validate=false` 表示跳过查验,不能描述为“查验通过”。`filedMap`、嵌套字段映射等 JSON 参数在 `--input-json` 中保持对象,CLI 只在 multipart 提交前序列化。
|
|
127
123
|
|
|
128
|
-
|
|
124
|
+
报销单由 Agent 按 Skill 规则组装 `data` 后,通过 `weaver-e10-workflow` 存草稿;待开票合同由 `workflow.search` 查出合同审批流程后(用户点名检索词时追加 `requestName` 做标题模糊搜索),交给 `invoice.issuing.contracts.list` 补齐开票信息;用户选定并确认后,按销售方通过 `weaver-e10-workflow` 创建「合同收款发票开具及快递申请」或「契约锁合同收款发票开具及快递申请」草稿,不提交。发票与事前申请只按时间关联,一张发票同时落在多条事前申请上时由用户选择。CLI 不负责猜测出差客户或税率;这些规则在 Skill reference 中指导 Agent 组装。当前修正资料包没有客户档案查询或红字发票红冲接口,`invoice.customer.*` 和 `invoice.red.*` 不暴露为 operation,Agent 不能绕过 CLI 调用原始接口。写操作出现网络中断、部分成功、缺少回执 ID 或回查失败时,CLI 返回 `partial/write_uncertain`,Agent 禁止自动重复提交。
|
|
129
125
|
|
|
130
126
|
## 编辑白名单
|
|
131
127
|
|
package/docs/okr.md
CHANGED
|
@@ -77,7 +77,7 @@ OKR 目标在不同租户走两套互不兼容的接口链路,由 `okr.version
|
|
|
77
77
|
|
|
78
78
|
1. `prepare` 只归一化、补默认值、查当前数据(编辑时)、生成预览和 continuation,不写入。
|
|
79
79
|
2. `apply` 必须带 `confirm=true` 与 prepare 返回的 continuation。
|
|
80
|
-
3. continuation 绑定 `baseUrl`/`profile`/`userId`,
|
|
80
|
+
3. continuation 绑定 `baseUrl`/`profile`/`userId`,24 小时有效;变化触发 `context_mismatch`,字段指纹变化触发 `target_changed`。
|
|
81
81
|
4. 网络中断抛 `partial/write_uncertain`,禁止自动重试,先做只读回查。
|
|
82
82
|
|
|
83
83
|
## 关键业务规则
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# reception — 泛微客户参观接待流程
|
|
2
|
+
|
|
3
|
+
`reception` 模块把「客户参观接待」这条业务链路收敛成三个 operation:出面板、出件并挂附件、输出填单页。
|
|
4
|
+
它原本是一个独立的 `@weaver/reception-cli` 包(含自建鉴权、会话缓存、写闸门、客户/人员 ID 检索),
|
|
5
|
+
现已并入 `weaver-work-cli`,**独立包退役**。
|
|
6
|
+
|
|
7
|
+
## 为什么合并
|
|
8
|
+
|
|
9
|
+
旧实现有 2874 行代码,其中约 1200 行是"因为不在 CLI 里"才产生的重复设施:
|
|
10
|
+
|
|
11
|
+
| 旧模块 | 行数 | 合并后 |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `cli.js` + `session-cache.js`(spawn CLI 换会话、落盘 session.env) | 261 | 删,改用 `requireE10Session` |
|
|
14
|
+
| `customer.js` + `employee.js`(查客户/人员 ID) | 298 | 删,v5.4.0 起直接传中文名 |
|
|
15
|
+
| `formctx.js`(实时取表单结构) | 72 | 删,主链路用字段快照 |
|
|
16
|
+
| `payload.js` + `submit.js` + `gate.js` 闸门(兜底写链路) | 166 | 删,需要写时直接用 `workflow` 模块 |
|
|
17
|
+
| `commands.js` 的 prepare/build | ~330 | 删,同上 |
|
|
18
|
+
| `bin/reception.js` | 30 | 并入命令面 |
|
|
19
|
+
|
|
20
|
+
保留的是纯业务口径:字段映射、日程 7 列、customParams 拼装、browsertool 渲染、面板与后勤解析。
|
|
21
|
+
|
|
22
|
+
## CLI 结构
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
weaver-work-cli reception --help
|
|
26
|
+
weaver-work-cli reception schema
|
|
27
|
+
weaver-work-cli --json reception ask --known-file known.json [--user "<姓名>"]
|
|
28
|
+
weaver-work-cli --json reception doc --run-id <id> --answers-file answers.json --snapshot <skill>/data/fields-snapshot.json
|
|
29
|
+
weaver-work-cli --json reception render --run-id <id>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
> 示例为 macOS/Linux 写法;**Windows PowerShell** 下路径用引号包起来即可(`--snapshot "C:\...\fields-snapshot.json"`),参数完全一致。
|
|
33
|
+
|
|
34
|
+
`--snapshot` 只在 `doc` 传一次:`doc` 成功后路径写进 run,`render` 直接复用。
|
|
35
|
+
只有 run 被重建(`RUN_NOT_FOUND` 后现场重建)时,`render` 才需要补传。
|
|
36
|
+
|
|
37
|
+
通用入口也支持 operation 名:
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
weaver-work-cli --json reception run reception.ask --input-json '{"known":{"customer":"某某集团"}}'
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## operation 合约
|
|
44
|
+
|
|
45
|
+
| operation | risk | 作用 |
|
|
46
|
+
|---|---|---|
|
|
47
|
+
| `reception.ask` | read | 按 7 项抽取结果算缺口、出面板,返回 `runId` |
|
|
48
|
+
| `reception.doc` | read | 渲染行程单 docx + 内部参考 md,上传两份附件拿 fileid |
|
|
49
|
+
| `reception.render` | read | 按快照拼 `customParams`,输出 `<browsertool>` |
|
|
50
|
+
|
|
51
|
+
全链路 **零写请求**(`writePolicy: none`):只上传附件,流程由用户在页面上提交。
|
|
52
|
+
因此三个 operation 都是 `read`,也没有 continuation 票据。
|
|
53
|
+
|
|
54
|
+
## 典型链路
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
ask(出面板,≤2 屏)
|
|
58
|
+
→ ask_user(panels) 只调一次
|
|
59
|
+
→ (案例 + 专家检索,软依赖) 结果写 cases.json
|
|
60
|
+
→ doc 两份产物 + attachments
|
|
61
|
+
→ render browsertool,宿主打开填单页
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
失败恢复的关键一条:`RUN_NOT_FOUND` 时**不要重跑 ask**,把 `--known` 带上重跑 `doc`,
|
|
65
|
+
CLI 会现场重建 run 并返回 `rebuilt: true` + 新 `runId`。
|
|
66
|
+
|
|
67
|
+
## 资产边界
|
|
68
|
+
|
|
69
|
+
CLI 不打包下面这两个,它们属于技能包 `weaver-e10-reception-flow`:
|
|
70
|
+
|
|
71
|
+
| 资产 | 位置 | 谁读 |
|
|
72
|
+
|---|---|---|
|
|
73
|
+
| 字段快照 `fields-snapshot.json` | `<skill>/data/` | CLI(经 `--snapshot`) |
|
|
74
|
+
| 渲染器 `render.py` + 行程单模板 | `<skill>/scripts/`、`<skill>/assets/` | CLI 调起 python 子进程 |
|
|
75
|
+
|
|
76
|
+
`render.py` 用自身路径定位模板(`../assets/行程单模板-泛微.docx`),CLI 只需找到脚本本身:
|
|
77
|
+
优先 `--render-py`,其次从 `--snapshot` 反推 `<skill>/scripts/render.py`。
|
|
78
|
+
|
|
79
|
+
## 状态与缓存
|
|
80
|
+
|
|
81
|
+
- `<stateRoot>/reception/runs/<runId>.json`:run 状态(`ask` 建、`doc` 写、`render` 读)
|
|
82
|
+
- `<stateRoot>/reception/python.json`:python 探测结果,7 天有效
|
|
83
|
+
- `<stateRoot>/reception/out/`:默认产物目录(`--out-dir` 可覆盖)
|
|
84
|
+
|
|
85
|
+
`stateRoot` 与 CLI profile 同级(Windows 默认 `~/.weaver-work-cli`),多环境不串。
|
|
86
|
+
|
|
87
|
+
## 源码结构
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
src/shortcuts/reception/
|
|
91
|
+
├── index.ts 命令面:schema / run / ask / doc / render
|
|
92
|
+
├── manifest.ts operation 合约(schema 原样输出)
|
|
93
|
+
├── operations.ts 调度入口 + 凭据字段拦截
|
|
94
|
+
├── constants.ts 流程名、面板文案、后勤字段
|
|
95
|
+
├── host.ts 会话 + 上传(复用 runtime 的 formData)
|
|
96
|
+
├── errors.ts 域内结构化错误
|
|
97
|
+
└── operations/
|
|
98
|
+
├── ask.ts / doc.ts / render.ts
|
|
99
|
+
├── panels.ts 后勤解析、answers 合并、面板生成
|
|
100
|
+
├── compose.ts 接待数据 → customParams
|
|
101
|
+
├── customparams.ts 多值/明细拼接口径
|
|
102
|
+
├── schedule.ts 日程 7 列与标准议程
|
|
103
|
+
├── browsertool.ts fill_form + sdkOptions
|
|
104
|
+
├── snapshot.ts 快照定位与漂移对拍
|
|
105
|
+
├── render-assets.ts python 探测 + render.py 调度
|
|
106
|
+
├── runs.ts run 状态
|
|
107
|
+
└── shared.ts JSON 入参、哈希、稳定序列化
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## 验证
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
npm run build
|
|
114
|
+
node dist/index.js reception --help
|
|
115
|
+
node dist/index.js --json reception schema
|
|
116
|
+
node --test --import tsx test/business/reception-*.test.ts
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
`doc` 的真实渲染用例需要 python-docx 与技能包同时存在,缺任一项会自动跳过。
|
|
@@ -101,8 +101,15 @@ CLI 输出信封 { schemaVersion, ok, operation, data, meta, warnings }
|
|
|
101
101
|
| `lastFeedBackDateTime` | string | 最后反馈时间,空串 = 无反馈;**摘要缓存与详情缓存 key 的一半**(`requestId__lastFeedBackDateTime`,流程有新反馈 ⇒ key 变 ⇒ 缓存自然失效) |
|
|
102
102
|
| `summary` | string | 单条摘要,**恒为 string**,未写时 `""` |
|
|
103
103
|
|
|
104
|
+
> 另有一个**可选**字段 `planFinishDatetime`(string,`2026-11-06 14:21:23`):计划完成时间,**有值才出现**。
|
|
105
|
+
> 它取自 `displayData` 的 `planFinishDatetime`,与 `curUserOverTime` / `minOverDateTime` 三者逐条同值(2026-11-05 实测)。
|
|
106
|
+
> 优先组规则判「今天到期」以 `curUserOverTime` 为准(用户定稿,走 `_rawFields` 携带),`planFinishDatetime` 是可替代写法。
|
|
107
|
+
> 注意覆盖率约 1/4(50 条里 13 条有值),缺失行不参与日期比较。
|
|
108
|
+
|
|
104
109
|
**不出现**在 `requestData` 里的字段(只在中间态 `items` 上):`workflowName`、`receivedTime`、`flowStatus`、`requestMark`、`amount`、`stats`。
|
|
105
110
|
|
|
111
|
+
**中间态例外 `_rawFields`(2026-11-05)**:优先组规则表达式引用到的 `displayData` 原始字段(含 `receivedatetime`,供优先组排序)会以 `requestData._rawFields` 的形式跟着结构穿过各阶段(值可能是空对象 `{}`,作为"尚未剥离"的标记)。**只在终态 `groupSummary` 出口剥离**(`stripPriorityRawFields()`)——`summary` / `subGroup` 保留它,否则下一阶段判不了「今天到期」这类原始字段条件。所以:`group` / `summary` / `subGroup` 的中间产物里能看到 `_rawFields`,**最终交付结构(groupSummary 出口)仍是上面这 14 个字段**。
|
|
112
|
+
|
|
106
113
|
## 6. 八条不变式(review 重点)
|
|
107
114
|
|
|
108
115
|
| # | 不变式 | 校验位置 |
|
package/package.json
CHANGED
package/scripts/clean.mjs
CHANGED
|
@@ -1,4 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* 清 dist。
|
|
4
|
+
*
|
|
5
|
+
* 不用 fs.rmSync 的原因:本机给 Node 注入了 safe-delete 拦截层(node-language-shim.cjs),
|
|
6
|
+
* 删除会改走回收站,几百个文件逐个 spawn 回收站命令,表现为"构建卡住不动"。
|
|
7
|
+
* 这里优先用系统删除命令(不经过 shim),失败再退回 Node 原生实现。
|
|
8
|
+
*
|
|
9
|
+
* 这是清构建产物,不是删用户数据,所以不进回收站是符合预期的。
|
|
10
|
+
*/
|
|
11
|
+
import { existsSync, rmSync } from 'node:fs';
|
|
12
|
+
import { spawnSync } from 'node:child_process';
|
|
2
13
|
import { resolve } from 'node:path';
|
|
3
14
|
|
|
4
|
-
|
|
15
|
+
// 防误删:只允许在项目根执行
|
|
16
|
+
if (!existsSync(resolve('package.json'))) {
|
|
17
|
+
console.error('clean: 请在项目根目录执行(找不到 package.json)');
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const target = resolve('dist');
|
|
22
|
+
if (!existsSync(target)) process.exit(0);
|
|
23
|
+
|
|
24
|
+
// 系统命令优先:不经过 Node 的删除拦截层
|
|
25
|
+
const ok = process.platform === 'win32'
|
|
26
|
+
? spawnSync('cmd.exe', ['/c', 'rmdir', '/s', '/q', target], { stdio: 'ignore' }).status === 0
|
|
27
|
+
: spawnSync('rm', ['-rf', target], { stdio: 'ignore' }).status === 0;
|
|
28
|
+
|
|
29
|
+
if (ok && !existsSync(target)) process.exit(0);
|
|
30
|
+
|
|
31
|
+
// 系统命令不可用时退回原生实现
|
|
32
|
+
try {
|
|
33
|
+
rmSync(target, { recursive: true, force: true });
|
|
34
|
+
} catch (error) {
|
|
35
|
+
console.error(`clean: 删除失败:${error.message}`);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// 仍失败就停下来,不要让 build 带着 stale 产物继续
|
|
39
|
+
if (existsSync(target)) {
|
|
40
|
+
console.error('clean: dist 仍存在,请手动删除后重跑:');
|
|
41
|
+
console.error(process.platform === 'win32'
|
|
42
|
+
? ` Remove-Item -Force -Recurse "${target}"`
|
|
43
|
+
: ` rm -rf "${target}"`);
|
|
44
|
+
process.exit(1);
|
|
45
|
+
}
|
|
@@ -88,7 +88,6 @@
|
|
|
88
88
|
"自动填单",
|
|
89
89
|
"事前申请报销",
|
|
90
90
|
"开票",
|
|
91
|
-
"存台账",
|
|
92
91
|
"发票浏览按钮"
|
|
93
92
|
],
|
|
94
93
|
"weaver-e10-jucailin": [
|
|
@@ -549,5 +548,22 @@
|
|
|
549
548
|
"置信度",
|
|
550
549
|
"处置建议",
|
|
551
550
|
"资管家闲置"
|
|
551
|
+
],
|
|
552
|
+
"weaver-e10-reception-flow": [
|
|
553
|
+
"客户参观",
|
|
554
|
+
"客户来访",
|
|
555
|
+
"客户到访",
|
|
556
|
+
"客户接待",
|
|
557
|
+
"接待流程",
|
|
558
|
+
"接待行程单",
|
|
559
|
+
"参观接待",
|
|
560
|
+
"来访接待",
|
|
561
|
+
"接待细节",
|
|
562
|
+
"行程单",
|
|
563
|
+
"接待方案",
|
|
564
|
+
"接待交流参考文档",
|
|
565
|
+
"参观总部",
|
|
566
|
+
"参观典型客户",
|
|
567
|
+
"客户参观接待流程"
|
|
552
568
|
]
|
|
553
|
-
}
|
|
569
|
+
}
|
|
@@ -16,7 +16,7 @@ Agent 调优重点:
|
|
|
16
16
|
- 业务输入不得包含 Cookie、ETEAMSID、Token 或内部控制字段;认证只走 `weaver-work-cli auth ...`。
|
|
17
17
|
- ID 一律来自查询:`doc_id` 来自检索或详情,`folder_id` 来自 `folder.query-by-name`,人员与部门 ID 来自 `org.search-*`,权限与共享的合法取值来自 `*.form` / `*.list`。
|
|
18
18
|
- 枚举拼写 1:1 沿用源接口,权限键是 `deletePremisstion` / `downloadPremisstion` / `newCreateDocPremisstion` / `newCreateFolderPremisstion`,不要「纠正」成 `Permission`。
|
|
19
|
-
- 写操作只接受 CLI 生成的 continuation,不手工构造、不跨操作复用;apply 入参必须与 prepare 逐字一致,票据有效期
|
|
19
|
+
- 写操作只接受 CLI 生成的 continuation,不手工构造、不跨操作复用;apply 入参必须与 prepare 逐字一致,票据有效期 24 小时。
|
|
20
20
|
- 分页 `has_next` 按「本页条数 >= page_size」判定,服务端 `total` 不可信;列表默认小页,回复只给摘要。
|
|
21
21
|
- 附件、封面图片、正文文件属于用户私有数据:上传下载前必须提醒文件可能进入大模型上下文并取得明确确认;文件内容不得读入上下文,只引用路径与元数据。
|
|
22
22
|
- 上传与下载是长耗时操作(120 秒超时、下载上限 100MB),一次只跑一个,不并发批量传输。
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
- `contract-request-write.md`:创建、保存、提交、催办四个写操作的确认链与错误边界。
|
|
20
20
|
- `contract-request-status.md`:流程状态、签字意见与 `flowStatus.code` 枚举。
|
|
21
21
|
- `contract-disabled-capabilities.md`:资信数据、撤回/退回等未实现能力的处理边界。
|
|
22
|
+
- `contract-element-extract.md`:合同要素/条款抽取(履约、付款、验收、风险、保密、知识产权等九类)→ 对话内按编号呈现(条款名 + 原文位置 + 摘要)→ 用户勾选后经 `clause.permission → tree → check → create.prepare/apply → 回读 clauseNum` 存入条款库。
|
|
23
|
+
- `contract-clause-insert.md`:条款库 → 合同的**反向**链路(报价单生成合同、上传合同补条款均适用):`clause.tags/tree/search` 召回 → `clause.insert --dryRun` 拿真实章节与位置 → 对话内编号呈现 → 勾选 → `clause.insert` 按章节定位写入,**同名/实质相同条款自动跳过**;章节识别以 styles.xml 的 styleId→名称映射为准并排除 toc 目录项。
|
|
22
24
|
- `source-manifest.json`:源资料指纹,用于后续更新检测。
|
|
23
25
|
|
|
24
26
|
Agent 调优重点:
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
本业务域用于泛微客户参观接待,覆盖「从原话抽取 → 补缺口 → 出两份产物 → 打开填单页」这一条完整链路。入口 `SKILL.md` 按 weaver 风格组织:CRITICAL 共享前置、四步主流程、原话抽取口径、面板约束、建单口径、失败处理、重跑恢复。具体细节拆到 `references/`:
|
|
2
|
+
|
|
3
|
+
- `guide.md`:7 项抽取线索、歧义判据、引导话术、案例与专家检索口径(**只讲抽取与检索,不讲交互形态**)。
|
|
4
|
+
- `browsertool.md`:`<browsertool>` 的 `fill_form + sdkOptions` 形态、`sdkRenderType` 取值含义与排障。
|
|
5
|
+
- `fields-snapshot.md`:字段 ID / 组件类型 / 选项编码 / 明细 7 列的人读对照版;程序读 `data/fields-snapshot.json`。
|
|
6
|
+
- `env-pitfalls.md`:环境踩坑、退出码语义、完整失败矩阵与假阴性判定。
|
|
7
|
+
|
|
8
|
+
Agent 调优重点:
|
|
9
|
+
|
|
10
|
+
- 意图命中「客户来访 / 参观 / 到访 / 接待」即进入本域,先抽取 7 项再决定问什么,不要一上来就提问。
|
|
11
|
+
- 抽取由模型做,CLI 不重做:`reception.ask` 只按 `--known` 算缺口并出面板。
|
|
12
|
+
- 面板只能原样来自 `ask` 回包,**总屏数 ≤2**(客户需求 + 接待细节),手机号并入接待细节,不单独出屏。
|
|
13
|
+
- `ask_user` 只调一次;用户少答的进待办,禁止二轮追问。
|
|
14
|
+
- 案例与专家检索是软依赖:先检索再出件,工具缺失或空结果才跳过,并在内部文档「待确认事项」注明。
|
|
15
|
+
- 两份产物分别是对外行程单 docx 与内部参考 md;**案例与专家只进内部 md**,对外件 `externalLeaks` 必须为 0。
|
|
16
|
+
- 本链路零写请求:只上传附件,流程由用户在页面上自己提交,助手不得代点。
|
|
17
|
+
- `RUN_NOT_FOUND` 时不重跑整轮、不重走面板:带 `--known-file` 重跑 `doc`,CLI 现场重建 run。
|
|
18
|
+
- 技能包只提供数据与资产(快照 / `render.py` / 模板),doc 与 render 必须显式 `--snapshot "$SD/data/fields-snapshot.json"`。
|
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
- `invoice-update.md`:编辑发票的 `prepare -> apply` 写入协议。
|
|
15
15
|
- `invoice-delete.md`:删除发票的 `prepare -> apply` 写入协议。
|
|
16
16
|
- `invoice-reim.md`:发票报销自动填单的数据准备;报销单创建/修改调用 `weaver-e10-workflow` 的 `workflow.createForm` / `workflow.createRequest` / `workflow.edit*`。相关客户、相关项目必须在建单前确认(项目可「不填」),禁止先建空草稿再问。用户给出名称时先 `invoice.reim.field.search` 消歧。
|
|
17
|
-
- `invoice-issuing-workflow.md`:AI
|
|
18
|
-
- `invoice-issuing-form-fill-rules.md`:开票流程填单规则,用户没说的字段按默认值填(如本次开票金额 = 总金额)。
|
|
19
|
-
- `invoice-issuing-qys-ledger.md`:兜底链路,用户明确要求时按台账行直接开票或存待开台账。
|
|
20
|
-
- `invoice-issuing.md`:兜底链路,用户明确要求时按口述字段直接开票或存台账的 payload 确认链。
|
|
17
|
+
- `invoice-issuing-workflow.md`:AI 开票——用 `weaver-e10-workflow` 的 `workflow.search` 查出当前用户有权限看的合同审批流程。用户点名了客户、公司、地名、合同号或标题关键词时追加 `requestName`,按流程标题模糊搜索;没点名不传。再把 `data.cards` 传给 `invoice.issuing.contracts.list` 补齐是否开票、合同号、客户名称、开票金额和销售方,列出待开票合同;用户选定后用 `invoice.issuing.contract.detail` 取合同客户与合同正文文档的 `{id, name}`,按销售方选开票申请流程,问清预计收款时间并确认后调用 `weaver-e10-workflow` 的 `workflow.createForm` / `workflow.createRequest` 存草稿。
|
|
21
18
|
- `invoice-disabled-capabilities.md`:共享、转让、标签等暂未暴露能力的处理边界。
|
|
22
19
|
|
|
23
20
|
Agent 调优重点:
|
|
@@ -26,8 +23,8 @@ Agent 调优重点:
|
|
|
26
23
|
- 业务输入不得包含 Cookie、ETEAMSID、Token 或内部控制字段。
|
|
27
24
|
- 写操作只接受 CLI 生成的 continuation,不手工构造或复用。
|
|
28
25
|
- `validate=false` 只能说明跳过查验,不能描述为查验通过。
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
26
|
+
- 报销单按 `workflow.createRequest` 的 `{main, details}` 结构组装 `data`,确认发票后直接存草稿(`action` 固定 `draft`,不问「存草稿 / 提交审批」),明细每行只写「相关发票」(及「相关流程」);报销单修改必须先展示摘要并取得明确确认。
|
|
27
|
+
- 待开票合同的开票金额以 `invoice.issuing.contracts.list` 返回的 `invoiceAmount` / `invoiceGroups` 为准,Agent 不自己累加,也不从流程标题推算。
|
|
28
|
+
- 开票申请只建草稿(`action` 固定 `draft`),`data.main` 只填合同审批流程、合同客户、合同文本、预计收款时间。合同文本与合同流程一样传 `{id, name}`(`id` 用 `docId`,`name` 用文件名;多个文件传数组),契约锁流程再填合同号,其余字段由联动带出;预计收款时间必须由用户给出并确认,不猜、不留空。
|
|
32
29
|
- 当前资料包没有红字发票红冲接口,`invoice.red.*` 不属于可用 operation。
|
|
33
30
|
- 结果为 `partial/write_uncertain` 时停止,不自动重放写请求。
|
|
@@ -236,12 +236,12 @@
|
|
|
236
236
|
}
|
|
237
237
|
},
|
|
238
238
|
"artifactBaseline": {
|
|
239
|
-
"aggregateSha256": "
|
|
239
|
+
"aggregateSha256": "8a011efe5f4255470386f9683983aa446baca83b755517b81af16e97425f76a5",
|
|
240
240
|
"files": [
|
|
241
241
|
{
|
|
242
242
|
"path": "docs/archive-oa.md",
|
|
243
243
|
"size": 4469,
|
|
244
|
-
"sha256": "
|
|
244
|
+
"sha256": "aa3a8e1ce199d696bdab1d33c5baba8698b7815388d42196167ccfc2ead0f17f"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"path": "skill-template/domains/archive-oa.md",
|
|
@@ -250,8 +250,8 @@
|
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"path": "skills/weaver-e10-archive-oa/SKILL.md",
|
|
253
|
-
"size":
|
|
254
|
-
"sha256": "
|
|
253
|
+
"size": 14100,
|
|
254
|
+
"sha256": "03ac4988f93da303141f020f9e01df28f01e5c36460708b504476af3b09708a6"
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
"path": "skills/weaver-e10-archive-oa/references/archive-locate.md",
|
|
@@ -290,8 +290,8 @@
|
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
"path": "src/shortcuts/archive-oa/continuation.ts",
|
|
293
|
-
"size":
|
|
294
|
-
"sha256": "
|
|
293
|
+
"size": 3368,
|
|
294
|
+
"sha256": "d1e06ca66abac29bbbc43929f09b2fc826ee8a46a0e0eb71d2506e7aeb184923"
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
297
|
"path": "src/shortcuts/archive-oa/errors.ts",
|
|
@@ -300,18 +300,18 @@
|
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"path": "src/shortcuts/archive-oa/host.ts",
|
|
303
|
-
"size":
|
|
304
|
-
"sha256": "
|
|
303
|
+
"size": 7993,
|
|
304
|
+
"sha256": "fe9d6d1448a856418ed65dbc2da0e0a1adfd70a35cb1705b49d1d9fa2e1d9f7e"
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
"path": "src/shortcuts/archive-oa/index.ts",
|
|
308
|
-
"size":
|
|
309
|
-
"sha256": "
|
|
308
|
+
"size": 10590,
|
|
309
|
+
"sha256": "f7d7aca5e24ae973b48cc648bcf5c4535d2b8ffcdb02a27eda7e9e5a2d18f45a"
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
"path": "src/shortcuts/archive-oa/manifest.ts",
|
|
313
|
-
"size":
|
|
314
|
-
"sha256": "
|
|
313
|
+
"size": 3511,
|
|
314
|
+
"sha256": "21c1f2481e315c9b818a512b9f6284c03633b47c048a89199885a54cd54b46e1"
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
"path": "src/shortcuts/archive-oa/operations.ts",
|
|
@@ -330,8 +330,8 @@
|
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
"path": "src/shortcuts/archive-oa/operations/confirm.ts",
|
|
333
|
-
"size":
|
|
334
|
-
"sha256": "
|
|
333
|
+
"size": 2903,
|
|
334
|
+
"sha256": "b11943f3f9d35b3b4e7143f89467c8fca4275ab604ea32d62b855112ccefc800"
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
"path": "src/shortcuts/archive-oa/operations/contract.ts",
|
|
@@ -35,7 +35,7 @@ weaver-work-cli --json blog run blog.publish.apply --input-json '{"continuation"
|
|
|
35
35
|
|
|
36
36
|
## 输出处理
|
|
37
37
|
|
|
38
|
-
1. prepare 返回 `status=AWAITING_CONFIRMATION`、日期、内容与 continuation(
|
|
38
|
+
1. prepare 返回 `status=AWAITING_CONFIRMATION`、日期、内容与 continuation(24 小时有效)。
|
|
39
39
|
2. 向用户复述日期与内容,取得明确确认(如「确认发布」)后才能调 apply。
|
|
40
40
|
3. apply 内部回查验证:返回 `blog_id` 与 `submit_status`(当天补交属正常现象)。
|
|
41
41
|
|