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
|
@@ -7,6 +7,18 @@
|
|
|
7
7
|
*
|
|
8
8
|
* 用法:
|
|
9
9
|
* node todo-summary.cjs prep [--limit 500] [--exclude 内部留言] [--days 365 | --from A --to B] [--out DIR] # 用户没说时间段就都不传 = 不限时间取前 500 条
|
|
10
|
+
* 筛选条件(2026-11-06 起,与 workflow.search 同口径,可任选组合):
|
|
11
|
+
* --workflow "费用报销(ID),采购申请(ID)" --workflow-term in|notin
|
|
12
|
+
* --request-name 报销 --request-name-term like|eq|ne|in|notin
|
|
13
|
+
* --request-mark QC4994681 --request-mark-term eq|like|ne|in|notin
|
|
14
|
+
* --request-level 紧急 --creator 郭杰 --creator-dept 研发中心 --creator-subcom 总部
|
|
15
|
+
* --workflow-type 行政类 --node-id 123456,123457 --node-id-term in|notin
|
|
16
|
+
* --flow-status finish,notFinish --flow-status-term in|notin
|
|
17
|
+
* --request-id 5001,5002 --ex-request-id 5003
|
|
18
|
+
* --create-time "2026-08-01 2026-08-07" --operate-time A B --finish-time A B --receive-time A B
|
|
19
|
+
* --filter-fields '[{"fieldName":"报销金额","term":"gt","value":100}]'(必须同时给单个 --workflow)
|
|
20
|
+
* --condition-type and|or
|
|
21
|
+
* --sort "发起时间:desc,紧急程度:desc" # 与 workflow.search 同一套排序键;翻页每页带同一份
|
|
10
22
|
* → 取数、按 workflowName 剔除指定流程、打印分组素材(模型据此做二次分组)
|
|
11
23
|
* node todo-summary.cjs build --dir DIR --plan aiGroups.json
|
|
12
24
|
* → 校验 1..count 全覆盖 → smartGroup;若还有待写摘要则打印,否则直接导出终态
|
|
@@ -763,6 +775,102 @@ function kindOfTitle(title) {
|
|
|
763
775
|
return hit ? hit.kind : '';
|
|
764
776
|
}
|
|
765
777
|
|
|
778
|
+
/**
|
|
779
|
+
* prep 的筛选条件直通表:flag → CLI 入参名(2026-11-06 与 `workflow.search` 对齐)。
|
|
780
|
+
*
|
|
781
|
+
* 只做「搬运」不做解释——条件的语义、报文形态、名称澄清全部由 CLI 的 buildSearchQuery 负责,
|
|
782
|
+
* 脚本这边再写一套筛选逻辑必然与 search 分叉。`--workflow` 逗号分隔拆数组(与 CLI 的 CSV
|
|
783
|
+
* 口径一致),`--filter-fields` 收 JSON(表单字段条件本身有嵌套结构,命令行无法平铺)。
|
|
784
|
+
*/
|
|
785
|
+
const COLLECT_FILTER_FLAGS = {
|
|
786
|
+
workflow: 'workflow',
|
|
787
|
+
'workflow-term': 'workflowTerm',
|
|
788
|
+
creator: 'creator',
|
|
789
|
+
'creator-dept': 'creatorDept',
|
|
790
|
+
'creator-subcom': 'creatorSubcom',
|
|
791
|
+
'workflow-type': 'workflowType',
|
|
792
|
+
'request-name': 'requestName',
|
|
793
|
+
'request-name-term': 'requestNameTerm',
|
|
794
|
+
'request-mark': 'requestMark',
|
|
795
|
+
'request-mark-term': 'requestMarkTerm',
|
|
796
|
+
'request-level': 'requestLevel',
|
|
797
|
+
'request-id': 'requestId',
|
|
798
|
+
'ex-request-id': 'exRequestId',
|
|
799
|
+
'node-id': 'nodeId',
|
|
800
|
+
'node-id-term': 'nodeIdTerm',
|
|
801
|
+
'flow-status': 'flowStatus',
|
|
802
|
+
'flow-status-term': 'flowStatusTerm',
|
|
803
|
+
'create-time': 'createTime',
|
|
804
|
+
'operate-time': 'operateTime',
|
|
805
|
+
'finish-time': 'finishTime',
|
|
806
|
+
'filter-fields': 'filterFields',
|
|
807
|
+
'condition-type': 'conditionType',
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* 排序 flag(与筛选条件分开,2026-11-06 与 `workflow.search` 的 `sort` 同口径):
|
|
812
|
+
* 不进「筛选」回显,也不会被当成「把结果卡空的条件」。
|
|
813
|
+
*/
|
|
814
|
+
const COLLECT_ORDER_FLAGS = { sort: 'sort' };
|
|
815
|
+
|
|
816
|
+
/** 条件回显用的中文名(控制台与「没有符合条件的待办」文案共用一套,避免两处叫法不一致)。 */
|
|
817
|
+
const FILTER_FLAG_LABELS = {
|
|
818
|
+
workflow: '工作流', workflowTerm: '工作流匹配', creator: '发起人', creatorDept: '发起部门',
|
|
819
|
+
creatorSubcom: '发起分部', workflowType: '工作流类型', requestName: '标题', requestNameTerm: '标题匹配',
|
|
820
|
+
requestMark: '流程编号', requestMarkTerm: '编号匹配', requestLevel: '紧急程度',
|
|
821
|
+
requestId: '指定流程', exRequestId: '排除流程', nodeId: '当前节点', nodeIdTerm: '节点匹配',
|
|
822
|
+
flowStatus: '流程状态', flowStatusTerm: '状态匹配', createTime: '发起时间',
|
|
823
|
+
operateTime: '操作时间', receiveTime: '接收时间', finishTime: '完成时间',
|
|
824
|
+
filterFields: '表单字段', conditionType: '条件关系',
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
/** 条件值的展示串(数组用 `/` 连接、对象转 JSON,字符串原样——给控制台看,不加引号)。 */
|
|
828
|
+
function formatFilterValue(value) {
|
|
829
|
+
if (Array.isArray(value)) {
|
|
830
|
+
return value.map((item) => (item && typeof item === 'object' ? JSON.stringify(item) : String(item))).join('/');
|
|
831
|
+
}
|
|
832
|
+
if (value && typeof value === 'object') return JSON.stringify(value);
|
|
833
|
+
return String(value);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
function parseFilterFieldsFlag(text) {
|
|
837
|
+
try {
|
|
838
|
+
const parsed = JSON.parse(text);
|
|
839
|
+
return Array.isArray(parsed) ? parsed : [parsed];
|
|
840
|
+
} catch {
|
|
841
|
+
console.error('✖ --filter-fields 需要 JSON 数组,如'
|
|
842
|
+
+ ' \'[{"fieldName":"报销金额","term":"gt","value":100}]\'(表单字段条件必须同时指定单个 --workflow)');
|
|
843
|
+
process.exit(1);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* 打印澄清信封(`ok:true` + `status=NEEDS_CLARIFICATION`)。
|
|
849
|
+
*
|
|
850
|
+
* 口径与 SKILL 一致:**不是失败,也不是「查无数据」**——本次查询**没有执行**。候选原样列出,
|
|
851
|
+
* 由执行方交给用户确认后用「名称(ID)」重发;**不要**自行挑一个候选继续,也不要把这段转述成
|
|
852
|
+
* 「没有匹配的流程 / 结果为 0 条」。
|
|
853
|
+
*/
|
|
854
|
+
function printClarification(data, dir) {
|
|
855
|
+
const question = String(data.clarificationQuestion || '请确认查询条件。');
|
|
856
|
+
const lines = [`⚠ 需要先确认查询范围(本次查询**没有执行**,不是「没有数据」):`, ` ${question}`];
|
|
857
|
+
const candidates = Array.isArray(data.candidates) ? data.candidates : [];
|
|
858
|
+
const displayOf = (candidate) => candidate.display || candidate.fieldName || candidate.name || '';
|
|
859
|
+
// CLI 的 clarificationQuestion 通常已经把候选列在句子里了,别重复打一遍。
|
|
860
|
+
const questionHasCandidates = candidates.length > 0 && question.includes(String(displayOf(candidates[0])));
|
|
861
|
+
if (candidates.length > 0 && !questionHasCandidates) {
|
|
862
|
+
lines.push(' 候选(确认后用「名称(ID)」重发):');
|
|
863
|
+
for (const candidate of candidates) {
|
|
864
|
+
const display = displayOf(candidate);
|
|
865
|
+
const id = candidate.id || candidate.fieldId || '';
|
|
866
|
+
lines.push(` ${candidate.index === undefined ? '-' : candidate.index}. ${display || id}`);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
if (data.clarificationType) lines.push(` (clarificationType=${data.clarificationType})`);
|
|
870
|
+
if (dir) lines.push(` 未取数:${dir} 下没有 items.json / state.json,不要拿它继续 build`);
|
|
871
|
+
console.log(lines.join('\n'));
|
|
872
|
+
}
|
|
873
|
+
|
|
766
874
|
function cmdPrep(args) {
|
|
767
875
|
const limit = Number(args.limit || 0);
|
|
768
876
|
const days = Number(args.days || 0);
|
|
@@ -803,9 +911,27 @@ function cmdPrep(args) {
|
|
|
803
911
|
const fmtDate = (d) => d.toISOString().slice(0, 10);
|
|
804
912
|
input.receiveTime = `${fmtDate(start)} ${fmtDate(end)}`;
|
|
805
913
|
}
|
|
914
|
+
// 2026-11-06:筛选条件直通(编号 / 状态 / 节点 / 发起人 / 发起·办结时间 / 表单字段…)。
|
|
915
|
+
// 放在 --from/--to 之后:显式 --receive-time 应压过区间推导值。排序(--sort)同一循环透传。
|
|
916
|
+
for (const [flag, key] of Object.entries({ ...COLLECT_FILTER_FLAGS, ...COLLECT_ORDER_FLAGS })) {
|
|
917
|
+
const value = args[flag];
|
|
918
|
+
if (value === undefined || value === true) continue;
|
|
919
|
+
if (key === 'filterFields') input[key] = parseFilterFieldsFlag(String(value));
|
|
920
|
+
else if (key === 'workflow') {
|
|
921
|
+
input[key] = String(value).split(',').map((x) => x.trim()).filter(Boolean);
|
|
922
|
+
} else input[key] = String(value);
|
|
923
|
+
}
|
|
806
924
|
const t0 = Date.now();
|
|
807
925
|
const collect = runStage(input, dir, 'collect');
|
|
808
926
|
const collectWallMs = Date.now() - t0;
|
|
927
|
+
// 澄清信封(ok:true + status=NEEDS_CLARIFICATION)不是失败、更不是「0 条」:
|
|
928
|
+
// 名称/字段没对上时 CLI **没有执行查询**,把候选原样透出,交模型与用户确认后用
|
|
929
|
+
// 「名称(ID)」重发。旧实现直接走下面的空结果分支 ⇒ 用户看到「您当前没有符合条件的待办」,
|
|
930
|
+
// 与真实原因(字段重名/工作流重名)完全不同(2026-11-06 修)。
|
|
931
|
+
if (collect.data && collect.data.status === 'NEEDS_CLARIFICATION') {
|
|
932
|
+
printClarification(collect.data, dir);
|
|
933
|
+
return 'CLARIFICATION';
|
|
934
|
+
}
|
|
809
935
|
// **两个口径必须分开**(性能调优时最容易看错的地方):
|
|
810
936
|
// - collectWallMs:脚本进程视角的墙钟,含 node 启动 + 模块加载(沙箱下 5~7s);
|
|
811
937
|
// - collectMs:CLI 自报的 collect 阶段内部耗时,只含真实业务(取数 + 归一)。
|
|
@@ -817,6 +943,11 @@ function cmdPrep(args) {
|
|
|
817
943
|
const kept = exclude.length ? all.filter((row) => !exclude.includes(String(row.workflowName || ''))) : all;
|
|
818
944
|
const dropped = all.length - kept.length;
|
|
819
945
|
|
|
946
|
+
// 取数条件回显(2026-11-06):条件被静默丢弃时结果看不出异常,所以既打印也落盘。
|
|
947
|
+
const appliedFilters = Object.entries(COLLECT_FILTER_FLAGS)
|
|
948
|
+
.map(([, key]) => [key, input[key]])
|
|
949
|
+
.filter(([, value]) => value !== undefined);
|
|
950
|
+
|
|
820
951
|
// 2026-11-03 用户定稿:collect 空结果按「是否带显式限制条件」给不同文案,直接结束(exit 0),
|
|
821
952
|
// 不进 build(CLI 会抛 items_empty 校验错误)。
|
|
822
953
|
// - 无限制条件(如「汇总我的待办」)⇒ 「您当前没有待办。」
|
|
@@ -831,6 +962,12 @@ function cmdPrep(args) {
|
|
|
831
962
|
if (input.isremarks) constraints.push(`参与身份 ${input.isremarks}`);
|
|
832
963
|
if (exclude.length) constraints.push(`排除流程「${exclude.join('、')}」`);
|
|
833
964
|
if (input.groupFocus) constraints.push(`侧重点「${input.groupFocus}」`);
|
|
965
|
+
// 2026-11-06:新增的筛选条件同样要回显——否则「没有符合条件的待办」看不出是被哪个条件卡空的。
|
|
966
|
+
// receiveTime 已由 --days/--from/--to 那句覆盖,conditionType 是组合方式不是筛选,跳过。
|
|
967
|
+
for (const [key, value] of appliedFilters) {
|
|
968
|
+
if (key === 'receiveTime' || key === 'conditionType') continue;
|
|
969
|
+
constraints.push(`${FILTER_FLAG_LABELS[key] || key} ${formatFilterValue(value)}`);
|
|
970
|
+
}
|
|
834
971
|
if (all.length === 0 && constraints.length === 0) {
|
|
835
972
|
console.log('您当前没有待办。');
|
|
836
973
|
} else {
|
|
@@ -889,6 +1026,11 @@ function cmdPrep(args) {
|
|
|
889
1026
|
|
|
890
1027
|
fs.writeFileSync(path.join(dir, 'state.json'), JSON.stringify({
|
|
891
1028
|
dir, startedAt, limit, days, from: args.from || null, to: args.to || null, exclude, subCategory: input.subCategory || null, collectMs, collectWallMs,
|
|
1029
|
+
// 取数条件回显(2026-11-06):条件被静默丢弃时结果看不出异常,落盘一份便于核对「传了没生效」。
|
|
1030
|
+
filters: Object.fromEntries(Object.entries(COLLECT_FILTER_FLAGS)
|
|
1031
|
+
.map(([, key]) => [key, input[key]])
|
|
1032
|
+
.filter(([, value]) => value !== undefined)),
|
|
1033
|
+
sort: input.sort || null,
|
|
892
1034
|
groupFocus: args.focus && args.focus !== true ? String(args.focus) : null,
|
|
893
1035
|
summaryMaxChars: args["summary-chars"] ? Number(args["summary-chars"]) : null,
|
|
894
1036
|
groupSummaryMaxChars: args["group-summary-chars"] ? Number(args["group-summary-chars"]) : null,
|
|
@@ -901,6 +1043,13 @@ function cmdPrep(args) {
|
|
|
901
1043
|
console.log('取数:%d 条(%s)|剔除 %d 条(%s)|保留 %d 条|collect 内部 %s / 含进程启动 %s',
|
|
902
1044
|
all.length, limit ? `前 ${limit} 条` : '全部', dropped, exclude.join('/') || '无', kept.length,
|
|
903
1045
|
fmt(collectMs), fmt(collectWallMs));
|
|
1046
|
+
// 条件回显:让「筛选有没有真的生效」在输出里就能看见,而不是靠翻 body 才能确认。
|
|
1047
|
+
if (appliedFilters.length > 0) {
|
|
1048
|
+
console.log('筛选:%s', appliedFilters
|
|
1049
|
+
.map(([key, value]) => `${FILTER_FLAG_LABELS[key] || key}=${formatFilterValue(value)}`)
|
|
1050
|
+
.join('|'));
|
|
1051
|
+
}
|
|
1052
|
+
if (input.sort) console.log('排序:%s', String(input.sort));
|
|
904
1053
|
console.log('输出目录:%s\n', dir);
|
|
905
1054
|
const focusKinds = focusCoversKinds(args.focus && args.focus !== true ? args.focus : '');
|
|
906
1055
|
// 规则里 focus:false 的组**必须**由模型给 aiGroups(如 安全问题处理工单),prep 阶段就标出来,
|
|
@@ -1178,7 +1327,9 @@ function cmdRun(args) {
|
|
|
1178
1327
|
? String(args.out)
|
|
1179
1328
|
: `/tmp/todo-summary-${new Date().toISOString().replace(/[-:T]/g, '').slice(0, 14)}`;
|
|
1180
1329
|
// collect 空结果已在 prep 里给出用户文案并结束(EMPTY),不再进 build/finish
|
|
1181
|
-
|
|
1330
|
+
const prepResult = cmdPrep({ ...args, out: dir });
|
|
1331
|
+
// EMPTY=确实没有匹配数据;CLARIFICATION=名称/字段没对上(**查询没执行**)——两者都不进 build。
|
|
1332
|
+
if (prepResult === 'EMPTY' || prepResult === 'CLARIFICATION') return;
|
|
1182
1333
|
cmdBuild({ ...args, dir });
|
|
1183
1334
|
// 无待写摘要时 cmdBuild 已经内部走完 cmdFinish(含满意度标题填充与交付闸门),这里直接收工
|
|
1184
1335
|
if (fs.existsSync(path.join(dir, 'final.data.json'))) return;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
name: weaver-e10-yepiaotong
|
|
3
3
|
display_name: 泛微业票通发票
|
|
4
4
|
display_name_en: Weaver Invoice
|
|
5
|
-
description: "泛微 E10 业票通发票管理:查询票夹、OCR
|
|
6
|
-
description_zh: "泛微 E10 业票通发票管理。支持查询个人/企业票夹、查看详情、上传、OCR/查验预览、下载附件、流程表单发票字段数据,通过 prepare/apply
|
|
7
|
-
description_en: "Weaver E10 Yepiaotong invoice skill for folder queries, detail lookup, OCR and validation previews, attachment downloads, workflow invoice field data, reimbursement data preparation (forms are created and edited via weaver-e10-workflow), and AI invoicing that
|
|
8
|
-
version: 1.0.
|
|
5
|
+
description: "泛微 E10 业票通发票管理:查询票夹、OCR/查验、附件、流程发票字段、报销填单、查询待开票合同并创建开票申请草稿。"
|
|
6
|
+
description_zh: "泛微 E10 业票通发票管理。支持查询个人/企业票夹、查看详情、上传、OCR/查验预览、下载附件、流程表单发票字段数据,通过 prepare/apply 确认链处理导入、新增、编辑、删除;报销填单由本技能准备发票、事前申请、工作流等数据,报销单创建/修改调用 weaver-e10-workflow 的发起/修改能力;AI 开票先用 weaver-e10-workflow 查出当前用户有权限看的合同审批流程,补齐是否开票、合同号、客户名称和开票金额后列出待开票合同,用户选定并确认后,按销售方调用 weaver-e10-workflow 创建开票申请草稿(不提交)。"
|
|
7
|
+
description_en: "Weaver E10 Yepiaotong invoice skill for folder queries, detail lookup, OCR and validation previews, attachment downloads, workflow invoice field data, reimbursement data preparation (forms are created and edited via weaver-e10-workflow), and AI invoicing that lists the user's contracts pending invoicing and, after confirmation, drafts the invoice-application workflow via weaver-e10-workflow."
|
|
8
|
+
version: 1.0.7
|
|
9
9
|
author: 泛微网络科技股份有限公司
|
|
10
10
|
agent_created: true
|
|
11
11
|
requires:
|
|
@@ -17,7 +17,7 @@ cliHelp: "weaver-work-cli invoice --help"
|
|
|
17
17
|
**`--is-connector` 判据**:用户明确使用连接器、或上下文要求用连接器完成任务 → 传 `true`;本次任务或上下文直接选择单独技能 → 不传;用户没有明确说明时,按**正在运行的这份 Skill 是哪一级**定——**用户级(条目标 `(user)`)不传,连接器级(标 `(connector)`)传**(同名 Skill 只会运行用户级那一份)。传 `true` 时不要再写 `--profile` / `--base-url`。完整规则见 `[../weaver-e10-shared/SKILL.md](../weaver-e10-shared/SKILL.md)`。
|
|
18
18
|
|
|
19
19
|
登录与会话由 CLI 托管,Agent 不做登录前置;只有本文件 CRITICAL 列出的三种情形才按共享规则使用 `weaver-work-cli auth ...` 命令体系判断登录态。禁止直接读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
|
|
20
|
-
所有命令通过 `weaver-work-cli --json invoice run <operation>`
|
|
20
|
+
所有命令通过 `weaver-work-cli --json invoice run <operation>` 执行(例外:报销单与开票申请的创建/修改、AI 开票的合同流程查询调用 `weaver-e10-workflow` 技能的 `weaver-work-cli --json workflow run workflow.*`,见下方「报销填单」「AI 开票」):简单 JSON 优先传 `--input-json '<json>'`,复杂或多行 JSON 先写入 UTF-8 文件再传 `--input <path>`,只有确认当前 shell 能稳定传管道时才使用 `--input -`。调用前先按需读取 references 下对应的文件,查参数结构,不要猜字段;**references 是第一信息源**,`weaver-work-cli invoice schema` 是 operation、字段和风险等级的合约来源。
|
|
21
21
|
命令示例、提示词和临时说明必须同时兼容 Windows 和 macOS/Linux;涉及 JSON 输入、用户目录、路径分隔符、Python 启动器、文件删除、目录查看或文件比对时,同时给 Windows PowerShell 与 macOS/Linux(bash/zsh)两套示例。Agent 先根据当前系统和 shell 选择对应示例,不确定时用 `node -p "process.platform"` 判断。Windows/PowerShell 下不要使用 `printf`、`$HOME/...`、`~/...`、bash 反斜杠续行、`rm/ls/diff/python3` 等 Unix-only 写法。
|
|
22
22
|
涉及发票附件、图片、本地文件、远程 URL 文件或 OCR/文件解析的操作,执行前必须提醒用户:文件内容可能被上传到 E10 业票通、OCR/查验服务,并可能进入当前大模型上下文用于理解和处理;必须等待用户明确确认后才继续。
|
|
23
23
|
|
|
@@ -53,10 +53,10 @@ cliHelp: "weaver-work-cli invoice --help"
|
|
|
53
53
|
- 发票上传 / OCR 识别 / 查验预览 / 附件下载
|
|
54
54
|
- 导入发票 / 新增发票 / 编辑发票 / 删除发票
|
|
55
55
|
- 发票报销 / 自动填单 / 事前申请报销 / 报销单创建或更新
|
|
56
|
-
- 开票 /
|
|
56
|
+
- 开票 / 智能开票 / 待开票合同 / 哪些合同还没开票 / 开票申请
|
|
57
57
|
- `fid` / `fileId` / 发票号码 / 发票代码 / 查验状态 / 报销状态
|
|
58
58
|
|
|
59
|
-
**判定规则:** 只要最终动作是对业票通发票做查询、查看、上传、OCR
|
|
59
|
+
**判定规则:** 只要最终动作是对业票通发票做查询、查看、上传、OCR、查验预览、下载、导入、新增、编辑、删除、流程表单发票字段、发票报销填单或开票,就归 `weaver-e10-yepiaotong`。只有当用户处理的是非发票类 E10 业务、通用工作流或尚未封装的业票通能力时,才不使用本 Skill。
|
|
60
60
|
|
|
61
61
|
**查验路由判断(常见误用):**
|
|
62
62
|
|
|
@@ -76,7 +76,7 @@ cliHelp: "weaver-work-cli invoice --help"
|
|
|
76
76
|
| 查看可用 operation、字段和风险等级 | `invoice schema` | `[invoice-agent-entry.md](references/invoice-agent-entry.md)` |
|
|
77
77
|
| 查询个人票夹 | `invoice run invoice.list` | `[invoice-personal-list.md](references/invoice-personal-list.md)` |
|
|
78
78
|
| 查询企业票夹 | `invoice run invoice.enterprise.list` | `[invoice-enterprise-list.md](references/invoice-enterprise-list.md)` |
|
|
79
|
-
| **让发票列表/详情直接可读(别写解析脚本)** |
|
|
79
|
+
| **让发票列表/详情直接可读(别写解析脚本)** | 列表加 `--view summary`,详情加 `--view detail` | `[invoice-output-view.md](references/invoice-output-view.md)` |
|
|
80
80
|
| 按 `fid` 或 `number` 查看详情 | `invoice run invoice.get` | `[invoice-detail.md](references/invoice-detail.md)` |
|
|
81
81
|
| 上传发票文件 | `invoice run invoice.upload` | `[invoice-file-upload.md](references/invoice-file-upload.md)` |
|
|
82
82
|
| OCR 预览,不保存到票夹 | `invoice run invoice.ocr.preview` | `[invoice-ocr-preview.md](references/invoice-ocr-preview.md)` |
|
|
@@ -88,10 +88,9 @@ cliHelp: "weaver-work-cli invoice --help"
|
|
|
88
88
|
| 准备/确认编辑发票 | `invoice run invoice.update.prepare/apply` | `[invoice-update.md](references/invoice-update.md)` |
|
|
89
89
|
| 准备/确认删除发票 | `invoice run invoice.delete.prepare/apply` | `[invoice-delete.md](references/invoice-delete.md)` |
|
|
90
90
|
| 生成流程表单发票浏览按钮 JSON | `invoice run invoice.browse-field.data` | `[invoice-browse-field-data.md](references/invoice-browse-field-data.md)` |
|
|
91
|
-
|
|
|
91
|
+
| 报销自动填单(发票、事前申请、工作流、客户 / 项目) | `invoice run invoice.reim.`* | `[invoice-reim.md](references/invoice-reim.md)` |
|
|
92
92
|
| 报销单创建 / 修改 | `workflow run workflow.createForm/createRequest`、`workflow.editLoad/editPrepare/editApply`(`weaver-e10-workflow` 技能) | `[reim-workflow.md](references/reim-workflow.md)` Step 3~6;命令契约见 `[workflow-create.md](../weaver-e10-workflow/references/workflow-create.md)` |
|
|
93
93
|
| 报销完整工作流编排、行为准则 | AI 内部 | `[reim-workflow.md](references/reim-workflow.md)` |
|
|
94
|
-
| 批量获取多张发票预填信息(报销建单不再调用) | `invoice run invoice.reim.row-info-batch` | `[reim-api-reference.md](references/reim-api-reference.md)` |
|
|
95
94
|
| 相关客户 / 相关项目模糊搜索 | `invoice run invoice.reim.field.search` | `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`「相关客户模糊搜索」 |
|
|
96
95
|
| 报销 CLI operation 入参与返回值 | AI 内部 | `[reim-api-reference.md](references/reim-api-reference.md)` |
|
|
97
96
|
| 发票与事前申请匹配规则 | AI 内部 | `[reim-matching-rules.md](references/reim-matching-rules.md)` |
|
|
@@ -99,9 +98,7 @@ cliHelp: "weaver-work-cli invoice --help"
|
|
|
99
98
|
| 报销表单字段填充与 JSON 组装规则 | AI 内部 | `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)` |
|
|
100
99
|
| 话费补贴 / 话费报销硬拦截规则 | AI 内部 | `[reim-phone-subsidy-rules.md](references/reim-phone-subsidy-rules.md)` |
|
|
101
100
|
| 报销端到端示例 | 参考 | `[reim-examples.md](references/reim-examples.md)` |
|
|
102
|
-
|
|
|
103
|
-
| 开票流程填单规则(默认值:本次开票金额 = 总金额等) | AI 内部 | `[invoice-issuing-form-fill-rules.md](references/invoice-issuing-form-fill-rules.md)` |
|
|
104
|
-
| 开票端到端示例 | 参考 | `[invoice-issuing-examples.md](references/invoice-issuing-examples.md)` |
|
|
101
|
+
| **AI 开票:查询待开票合同 → 创建开票申请草稿** | `workflow run workflow.search` -> `invoice run invoice.issuing.contracts.list` -> `invoice run invoice.issuing.contract.detail` -> `workflow run workflow.createForm/createRequest`(`workflow.*` 属 `weaver-e10-workflow`) | `[invoice-issuing-workflow.md](references/invoice-issuing-workflow.md)` |
|
|
105
102
|
| 共享、转让、标签或 schema 未列出的能力 | 无可用命令 | `[invoice-disabled-capabilities.md](references/invoice-disabled-capabilities.md)` |
|
|
106
103
|
|
|
107
104
|
|
|
@@ -118,18 +115,13 @@ cliHelp: "weaver-work-cli invoice --help"
|
|
|
118
115
|
- 编辑发票:`invoice.update.prepare` -> 用户确认 -> `invoice.update.apply`
|
|
119
116
|
- 删除发票:`invoice.delete.prepare` -> 用户确认 -> `invoice.delete.apply`
|
|
120
117
|
- 流程发票字段:已有 `fid` 或详情时,用 `invoice.browse-field.data` 生成浏览按钮对象;不要运行旧源码脚本或直接调接口。
|
|
121
|
-
- 报销填单(完整工作流见 `[reim-workflow.md](references/reim-workflow.md)`):先用 `invoice.reim.candidates.list`(按日期批量)/`invoice.list`/`invoice.get`/`invoice.reim.file-ocr.preview` 获取发票(日期筛选默认 `consumption_tm_begin` / `consumption_tm_end
|
|
118
|
+
- 报销填单(完整工作流见 `[reim-workflow.md](references/reim-workflow.md)`):先用 `invoice.reim.candidates.list`(按日期批量)/`invoice.list`/`invoice.get`/`invoice.reim.file-ocr.preview` 获取发票(日期筛选默认 `consumption_tm_begin` / `consumption_tm_end`;**出差报销先找出差流程**:`invoice.reim.requests.list` 传 `requestname="出差"`,用 `workflow.summary`(`weaver-e10-workflow`,只读)读「起始日期」「结束日期」,按起始日期前 1 天 ~ 结束日期后 1 天用 `invoice.reim.candidates.list` 查票,期间 `available` 的发票全部列入并全部绑这条出差流程,多条出差流程对不上时先问用户;找不到出差流程才按城市筛(出发城市没说默认上海),见 `[reim-workflow.md](references/reim-workflow.md)`「按出差流程查票」「出差 / 城市意图查票」)-> 展示汇总并确认 -> `invoice.reim.requests.list`(用户没指定日期时不传 `cusCreateDateStart` / `cusCreateDateEnd`,CLI 默认查最近 7 天、查不到放宽到 1 个月;话费传 `scene="phone"` 查最近 90 天)只按开票日期和事前申请发起日期关联(只比日期不比钟点,发起日与开票日同一天算对上,默认绑定),**多条事前申请确认不了是哪条时(一张发票时间上落在多条、没有开票日期、用户点名的对上多条),必须一次问清用户,选定前不往下走、不替用户选** -> `invoice.reim.workflow.resolve` 得到报销工作流 -> 并行 `workflow.createForm`(`weaver-e10-workflow`,传 `{workFlowName}({workFlowId})`,**不传 `userQuestion`**,也不用 `workflow.createRequestDirect`)、`invoice.browse-field.data`(只传发票)-> 按规则组装 `data`(**`requestName` 与「报销事由」必传**,按 form-fill-rules 的标题/事由公式生成,禁止留用表单默认标题或留空;发票与事前申请只按时间关联,见 `[reim-matching-rules.md](references/reim-matching-rules.md)`,填单规则见 `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`;明细每行只写「相关发票」和(可选的)「相关流程」;命中话费补贴/话费报销时先读 `[reim-phone-subsidy-rules.md](references/reim-phone-subsidy-rules.md)`;工作流是「总部费用报销」时,用本次 `createForm` 的 `historyRequestData` 在项目确认后带出合同号,**不要询问合同号**;相关客户和相关项目需要填写时同一次让用户一起输入,未确认不建单,见 `[reim-workflow.md](references/reim-workflow.md)` Step 4.4、Step 4.5)-> 直接 `workflow.createRequest` 存草稿(`action` 固定 `"draft"`,**不问用户「存草稿 / 提交审批」**,草稿由用户在 E10 核对后自己提交)-> 原样粘贴 `finalMarkdown` -> **必须做 Step 5.3**:查客户 / 项目是否被联动冲空(已确认值直接写回,不要先建空草稿再问)。创建成功后修改只能用 `workflow.editLoad` -> `workflow.editPrepare` -> 用户确认 -> `workflow.editApply`。
|
|
122
119
|
- 报销单创建/修改依赖同级的 `weaver-e10-workflow` 技能(`../weaver-e10-workflow/`);该技能不存在时停止并告知用户需要安装,不要改用其他方式创建报销单。
|
|
123
|
-
- **⚠️ 报销单不询问合同号。** 默认 `20260999`。用户本轮自己说了才用用户的;否则按已确认的相关项目,从 `historyRequestData` 里该项目最近一条带出。对不上或项目「不填」则用默认。带出的合同号不是 `20260999` 时,创建阶段承担主体不传。**相关客户和相关项目同一次让用户一起输入**,确认后再写入 `data`,禁止空着先建草稿,也不要拆成两轮。名称先 `invoice.reim.field.search
|
|
124
|
-
- **⚠️
|
|
125
|
-
- **⚠️ 明细「费用说明」禁止自己生成**:`createForm` 的 `fields` 里名称是「费用说明」或「摘要」的明细列不要写入 `data`。不要用 `fysm`、起止点、消费内容或话费账单说明去填。只传「相关发票」,由发票联动带出。用户给了文字也不要写入。建单后仍空,只说明联动没带出,不要补写。见 `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`「费用明细字段规则」。
|
|
126
|
-
- **⚠️ 明细每行只写「相关发票」**:有绑定的事前申请时再写「相关流程」(差旅 / 外出每行必须有)。费用日期、金额、币种、费用类型(科目)、费用说明、费用明细、相关凭证、明细相关客户 / 项目、附件数等其余明细列**一律不传**,由「相关发票」联动带出;表单默认值、`row-info` 返回值、用户口述都不写进去。建单后仍空只告知联动没带出,不补写。建单不再调用 `invoice.reim.row-info-batch`。见 `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`「费用明细字段规则」。
|
|
127
|
-
- **⚠️ 明细「费用类型(科目)」不允许 AI 填值**:创建时不写入 `data`,保留空值,由「相关发票」联动带出。不要用 `row-info` 的 `subjectId`、科目匹配规则或兜底科目「其他-管理费用」自己填。建单后仍空只告知联动没带出,不补写,也不让用户选科目;只有用户明确要求改某行科目时才走修改链。见 `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`「费用明细字段规则」。
|
|
128
|
-
- **⚠️ 明细「相关凭证」不允许赋值**:创建和修改都不写入 `data`,由「相关发票」联动带出。不做凭证配对,`invoice.browse-field.data` 只传发票。建单后仍空只告知联动没带出,不补写,也不让用户挂行程单。见 `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`「3. 相关凭证不赋值」。
|
|
120
|
+
- **⚠️ 报销单不询问合同号。** 默认 `20260999`。用户本轮自己说了才用用户的;否则按已确认的相关项目,从 `historyRequestData` 里该项目最近一条带出。对不上或项目「不填」则用默认。带出的合同号不是 `20260999` 时,创建阶段承担主体不传。**相关客户和相关项目同一次让用户一起输入**,确认后再写入 `data`,禁止空着先建草稿,也不要拆成两轮。名称先 `invoice.reim.field.search`。口径见 `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`「总部费用报销历史参考」。
|
|
121
|
+
- **⚠️ 明细每行只写「相关发票」**:有绑定的事前申请时再写「相关流程」(差旅 / 外出每行必须有)。费用日期、金额、币种、费用类型(科目)、费用说明 / 摘要、费用明细、相关凭证、明细相关客户 / 项目、附件数等其余明细列**创建时一律不传**,由「相关发票」联动带出:表单默认值、用户口述、科目匹配规则、兜底科目都不写进去,也不要用消费内容、起止点或话费账单说明自己生成费用说明。不做凭证配对,`invoice.browse-field.data` 只传发票。建单后仍空只告知联动没带出,不补写,也不让用户选科目、挂行程单;只有用户明确要求改某行科目时才按 `[reim-expense-subject-rules.md](references/reim-expense-subject-rules.md)` 走修改链。见 `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`「费用明细字段规则」。
|
|
129
122
|
- **⚠️ 主表「事前申请流程」不允许赋值**:创建报销单时不写入 `data.main`,保留空值。匹配到的事前申请只写到明细每行「相关流程」(`{requestname}({requestid})`)。见 `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`「主表字段规则」。
|
|
130
|
-
- **AI
|
|
131
|
-
-
|
|
132
|
-
- 开票流程的创建/修改依赖同级 `weaver-e10-workflow` 技能;该技能不存在时停止并告知用户需要安装,**不要尝试用其他方式直接开票**。
|
|
123
|
+
- **AI 开票**:`workflow.search`(`weaver-e10-workflow`,固定传 `category="all"`、`workflow=["老客户增值服务合同审批流程","新客户购买合同审批流程","常规二次销售服务合同审批流程"]`、`pageSize=10`;用户点名了客户、公司、地名、合同号或标题关键词时再追加 `requestName`,按流程标题 like 模糊搜索,如 `"鄂尔多斯"`,没点名不传,翻页原样带上,不要把「合同」「开票」当作 `requestName`)-> 把返回的 `data.cards` 原样作为 `cards` 传给 `invoice.issuing.contracts.list`,拿到 `invoiced`、`contractNo`、`customerName`、`invoiceAmount`、`sellerName` -> 只列 `invoiced=false` 的合同,问用户给哪份开票(不替用户选,金额以 CLI 为准不自己累加)-> `invoice.issuing.contract.detail` 取客户 `{id, name}` 和「合同正文及附件」每个文件的 `docId`、`name` -> `sellerName` 含「亘岩」用 `契约锁合同收款发票开具及快递申请(100003460000001852)`,其他用 `合同收款发票开具及快递申请(100003460000000214)` -> **必须先问用户「预计收款时间」**(`yyyy-MM-dd`,不猜、不留空,用户没给就不往下走),连同日期向用户确认一次 -> `workflow.createForm`(不传 `userQuestion`)-> `workflow.createRequest`(`action` 固定 `"draft"`,**不提交**),`data.main` 只填合同审批流程 `{id,name}`、合同客户 `{id,name}`、合同文本 `{id,name}`(`id` 用 `docId`,`name` 用文件名;多个文件传数组,不要传 `contractDocIds` 逗号串或纯数字 id)、预计收款时间,契约锁流程再填合同号 `contractNo`(另一张表的合同号是浏览按钮字段,写不进去,靠联动带出)-> 原样粘贴 `finalMarkdown`。创建成功后修改只走 `workflow.editLoad/editPrepare/editApply`,禁止重复创建。详见 `[invoice-issuing-workflow.md](references/invoice-issuing-workflow.md)`。
|
|
124
|
+
- 合同流程查询与开票申请草稿依赖同级 `weaver-e10-workflow` 技能;该技能不存在时停止并告知用户需要安装,不要用其他方式创建开票申请。
|
|
133
125
|
|
|
134
126
|
## 执行原则(减少误路由、误重试和无效消耗)
|
|
135
127
|
|
|
@@ -146,10 +138,10 @@ cliHelp: "weaver-work-cli invoice --help"
|
|
|
146
138
|
|
|
147
139
|
- 当前 CLI 会把完整 JSON envelope 写 stdout;Agent 回复时不要原样贴完整 JSON
|
|
148
140
|
- **输出超过阈值(默认 24KB)时 CLI 会把完整结果暂存成 ref**:stdout 只剩预览 + `refId`,`operations` 之类的长数组会被截断。此时**不要**把预览当成完整结果解析,一律用 `weaver-work-cli refs get <refId> <JSON路径>`(如 `operations[2].outputViews` / `operations[0].name`)按需取字段。`refs show <refId>` 只对"小结果"可用:`invoice schema` 实测 231662 字节,`refs show` 会被直接拒绝并回显「结果太大,不能安全地一次显示」。
|
|
149
|
-
- **查询票夹时优先加 `--
|
|
141
|
+
- **查询票夹时优先加 `--view summary`**(详情用 `--view detail`),一次调用即可得到语义字段,不要为此现写解析脚本;需要精确字段用 `--fields number,detailUrl`;旧版 CLI 用 `references/invoice-summarize.py` 兜底。按字段拼好的 markdown 表格直接写在消息正文里,不要用代码围栏包裹(包上就退化成纯文本,号码链接失效)。完整规则见 `[invoice-output-view.md](references/invoice-output-view.md)`
|
|
150
142
|
- **发票号码必须附带可点击的超链接**:CLI 返回的列表项和详情中已包含 `detailUrl` 字段(格式为 `{baseUrl}/sp/inc/incDetail?fid=<fid>`)。Agent 向用户展示发票时,发票号码必须用 markdown 链接格式 `[发票号码](detailUrl)` 展示,让用户点击即可打开发票详情页。如果同时有发票代码,代码也附带同一链接。示例:`[00188205](https://e10.example.com/sp/inc/incDetail?fid=751293486469988353)`
|
|
151
143
|
- 列表最多先展示最相关的前 10 条,包含 `fid`、代码/号码(带超链接)、购销方、金额、日期、查验/报销状态和附件摘要
|
|
152
|
-
- 需要全量统计时,按 `start_pos`
|
|
144
|
+
- 需要全量统计时,按 `start_pos` 分页读取并累计必要字段;`start_pos` 每次加 `page_size`,有没有下一页只看 `hasMore`(列表已剔除全额红冲票,本页条数可能不满 `page_size`);说明已读取页数、命中数和是否还有更多
|
|
153
145
|
- OCR、详情或调试用完整响应过长时,优先落本地文件并向用户提供摘要和文件路径
|
|
154
146
|
|
|
155
147
|
### 2) 已知对象时直达动作
|
|
@@ -163,6 +155,7 @@ cliHelp: "weaver-work-cli invoice --help"
|
|
|
163
155
|
- 失败后先看进程退出码、`error.type`、`error.subtype` 和 `error.message`
|
|
164
156
|
- **除非错误明确提示可恢复或需要补充参数,否则不要重复刷同一个 operation**
|
|
165
157
|
- 写请求已经发出后,遇到结果不确定必须停止;不要把 `.apply` 当成可重试读操作
|
|
158
|
+
- 错误为 `validation/operation_retired` 时,说明调用的是已下线的旧 operation(如 `invoice.reim.flow.create.*`、`invoice.issuing.qys.list`):按 `error.details.replacement` 改走新链路,并读 `error.details.reference` 指向的文档,不要换名字重试旧接口;完整清单见 `invoice schema` 的 `retiredOperations`
|
|
166
159
|
- **错误为 `authentication`(未登录,如 `E10 auth not found`)或 `session_expired`(登录态失效)时:不要盲目重试、不要换域名重试、不要用示例占位域名登录**。先判断 CLI 是否已经自动处理:
|
|
167
160
|
- **小e 环境(进程内存在任意 `XIAOE_*`,含 `XIAOE_CLIENT_TYPE=client|cloud`)**:登录缺失与过期都由 CLI 底层在公共请求层静默换取并原样重放 1 次,Agent 不执行任何登录命令——包括 `weaver-work-cli auth xiaoe`——也不重跑原业务命令,**也不在思考或回复里复述登录、换票、重登、会话恢复过程**。仍返回 `session_expired` 或 `authentication/xiaoe_credential_unavailable` 时,用一句话告知「小e 当前登录态不可用,请在小e 中重新登录后重试」并停止,不回退浏览器登录。
|
|
168
161
|
- **非小e 环境**才读取共享规则 `../weaver-e10-shared/references/e10-auth-and-session.md`,并按其中流程处理:
|
|
@@ -221,7 +214,7 @@ weaver-work-cli --json invoice run invoice.reim.requests.list --input-json '{"pa
|
|
|
221
214
|
## 不在本 skill 范围
|
|
222
215
|
|
|
223
216
|
- 禁止加载原始 `weaver-e10-yepiaotong` Skill 代替 CLI。
|
|
224
|
-
- 已有 CLI 封装的能力(list/get/upload/OCR/import/add/update/delete/issuing/reim)禁止 curl、fetch、浏览器自动化或直接访问 E10 `/api/inc
|
|
217
|
+
- 已有 CLI 封装的能力(list/get/upload/OCR/import/add/update/delete/issuing/reim)禁止 curl、fetch、浏览器自动化或直接访问 E10 `/api/inc/*`、`/api/workflow/*`、`/api/ebuilder/*` 等接口,必须通过 CLI。
|
|
225
218
|
- 当前修正源资料未提供客户档案查询或红字发票红冲接口,`invoice.customer.*` 与 `invoice.red.*` 不属于可用 operation;遇到这类请求时读取 `[invoice-disabled-capabilities.md](references/invoice-disabled-capabilities.md)` 并说明当前 CLI 不支持绕过调用。
|
|
226
219
|
- 禁止读取或复制 CLI runtime 内部 Token、Cookie、ETEAMSID。
|
|
227
220
|
- 禁止读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
|
|
@@ -10,24 +10,27 @@
|
|
|
10
10
|
| --- | --- |
|
|
11
11
|
| `invoice.get` | 优先用 `fid`;没有 `fid` 时可用 `number` 查询 |
|
|
12
12
|
|
|
13
|
-
## 要展示给用户时:`--
|
|
13
|
+
## 要展示给用户时:`--view detail`(首选)
|
|
14
|
+
|
|
15
|
+
macOS/Linux(bash/zsh):
|
|
14
16
|
|
|
15
17
|
```bash
|
|
16
|
-
weaver-work-cli invoice get --fid 12345 --
|
|
17
|
-
weaver-work-cli invoice get --number 26342000002783695141 --
|
|
18
|
+
weaver-work-cli --json invoice get --fid 12345 --view detail
|
|
19
|
+
weaver-work-cli --json invoice get --number 26342000002783695141 --view detail
|
|
18
20
|
```
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
直接得到「标头 + 字段表」的 markdown:标头是 `**[发票号码](详情链接)** · 票种`(**号码本身即可点击**,直达 E10 发票详情页,不再单列 `[打开详情]` 行),字段表首两行固定为 `发票号码`(同一链接)与 `发票代码` —— 票面标识必须在「项目」列里可核对、可复制;数电票(全电发票)没有发票代码,如实显示 `—`,不要伪造。其后依次是开票日期、不含税金额、税额、价税合计、购销方、费用说明、开票人、查验标记、报销挂单、附件。**不要**再自己拼这些行;贴给用户时把这整段作为消息正文直接输出,不要用代码围栏包裹(包上会退化成纯文本,号码链接失效)。
|
|
23
|
-
|
|
24
|
-
需要给下游代码读时用 `--view detail`:语义字段平表(`data.items[]`),比 summary 多出 `attachments`(附件清单)、`expenseNote`(费用说明)、`issuer`(开票人)、`checkState`(查验标记,`0`=未做过查验登记,**与票面 `valid` 不是一个口径,不要混读**)。
|
|
22
|
+
Windows PowerShell:
|
|
25
23
|
|
|
26
|
-
```
|
|
24
|
+
```powershell
|
|
27
25
|
weaver-work-cli --json invoice get --fid 12345 --view detail
|
|
26
|
+
weaver-work-cli --json invoice get --number 26342000002783695141 --view detail
|
|
28
27
|
```
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
用户直接给发票号码时,**不必先查列表**,用 `--number` 一次取到详情。
|
|
30
|
+
|
|
31
|
+
`--view detail` 返回语义字段平表(`data.items[]`),包含 summary 的全部字段(含 `ext` 里的 `expenseNote` 费用说明、`city`、`province`、`comment` 备注、`from` / `to`、`stationGetOn` / `stationGetOff`),再多出 `attachments`(附件清单)、`issuer`(开票人)、`checkState`(查验标记,`0`=未做过查验登记,**与票面 `valid` 不是一个口径,不要混读**)。`--view detail` 只对 `invoice.get` 生效,与 `--fields` 互斥(返回 `validation/input_conflict`)。
|
|
32
|
+
|
|
33
|
+
展示时拼成「标头 + 字段表」,直接写在消息正文里(不要包代码围栏,否则链接失效):标头是 `**[发票号码](detailUrl)** · 票种`(号码本身即可点击,不再单列「打开详情」行);字段表首两行固定为「发票号码」(同一链接)与「发票代码」,数电票(全电发票)没有发票代码时如实写 `—`,不要伪造;其后依次是开票日期、不含税金额、税额、价税合计、销方、购方、费用说明、消费内容、城市、省份、行程、备注、开票人、查验标记、报销挂单、附件。
|
|
31
34
|
|
|
32
35
|
## 示例
|
|
33
36
|
|
|
@@ -40,6 +40,8 @@ weaver-work-cli --json invoice run invoice.enterprise.list --input-json '{"page_
|
|
|
40
40
|
|
|
41
41
|
返回 `items`、`total`、`totalAmount`、`totalAmountExcludingTax`、`hasMore` 和 `scope="enterprise"`。每条 item 包含 `detailUrl`(如 `https://xxx/sp/inc/incDetail?fid=<fid>`)。
|
|
42
42
|
|
|
43
|
+
与个人票夹一样,`items` 已剔除全额红冲票,本页条数可能少于 `page_size`;`total` / `totalAmount` / `totalAmountExcludingTax` 是服务端汇总,仍含红冲票。分页时 `start_pos` 按 `page_size` 递增,是否还有下一页只看 `hasMore`。
|
|
44
|
+
|
|
43
45
|
向用户展示发票列表时,**发票号码必须用 markdown 链接格式** `[号码](detailUrl)` 展示,让用户点击直接打开发票详情页。
|
|
44
46
|
|
|
45
47
|
## 注意
|