weaver-work-cli 0.1.40 → 0.1.44
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 +17 -0
- package/dist/chunks/{archive-JHTONRST.js → archive-P6TBQGKL.js} +13 -5
- package/dist/chunks/{archive-oa-FCHLCPHC.js → archive-oa-7TQ2NXOH.js} +12 -5
- package/dist/chunks/{asset-RLIHC7DB.js → asset-3ELRG37G.js} +11 -4
- package/dist/chunks/{asset-idle-KVOFTLCP.js → asset-idle-WIGMUFMD.js} +7 -3
- package/dist/chunks/{attachment-content-RZYDB3MB.js → attachment-content-E3276UOV.js} +5 -4
- package/dist/chunks/{blog-42OZTJNP.js → blog-C5NMZAAC.js} +11 -4
- package/dist/chunks/{caizhilian-KRK547K5.js → caizhilian-5XSM2DFP.js} +13 -6
- package/dist/chunks/{calendar-RTWAMKHD.js → calendar-FI2WNSBO.js} +71 -26
- package/dist/chunks/{chunk-CXRQWOZ5.js → chunk-3YBDYOC4.js} +3 -3
- package/dist/chunks/{chunk-OOUTBLZ4.js → chunk-56EZERK4.js} +1 -1
- package/dist/chunks/chunk-6N4JPNFL.js +76 -0
- package/dist/chunks/{chunk-ZUX3P6BQ.js → chunk-727FH2NI.js} +1 -1
- package/dist/chunks/chunk-7BDPM5ST.js +11 -0
- package/dist/chunks/{chunk-LN447PY2.js → chunk-BCVYBYYT.js} +432 -2247
- package/dist/chunks/{chunk-7E6MUOEK.js → chunk-CWYGFU5B.js} +2 -2
- package/dist/chunks/{chunk-NOODWMCL.js → chunk-D4ADSZ7H.js} +1 -1
- package/dist/chunks/{chunk-WFFNM65B.js → chunk-ETNJSKMM.js} +281 -29
- package/dist/chunks/{chunk-CAQNBBQA.js → chunk-F4E4EM35.js} +3 -3
- package/dist/chunks/{chunk-4CTESSKI.js → chunk-FAZTGX7S.js} +6 -6
- package/dist/chunks/chunk-FRZKBMSW.js +2562 -0
- package/dist/chunks/{chunk-BYBSCN4X.js → chunk-G7PQWD4L.js} +6 -3
- package/dist/chunks/{chunk-NJKREDA3.js → chunk-GAMZLAG2.js} +1 -1
- package/dist/chunks/{chunk-FLS4DPGP.js → chunk-GM6J7Q4B.js} +28 -15
- package/dist/chunks/{chunk-NETCCARD.js → chunk-GRDRG6HP.js} +3 -3
- package/dist/chunks/chunk-HIT4Y6OI.js +1238 -0
- package/dist/chunks/{chunk-EZALDOQH.js → chunk-HP7JIYMT.js} +5 -2
- package/dist/chunks/{chunk-IZSSVYAG.js → chunk-IAZ3UPY6.js} +3 -3
- package/dist/chunks/{chunk-ZEDWSH32.js → chunk-IC62NFM5.js} +1 -1
- package/dist/chunks/{chunk-P26ZWSKU.js → chunk-KIHNAS25.js} +5 -2
- package/dist/chunks/{chunk-57IECMWX.js → chunk-N4M2DDFE.js} +29 -15
- package/dist/chunks/{chunk-JWRZM2H2.js → chunk-OF4S23UB.js} +4 -4
- package/dist/chunks/{chunk-VNBU55SL.js → chunk-PC7VKEB5.js} +80 -2458
- package/dist/chunks/{chunk-G2JSIUWF.js → chunk-PUQS5MWL.js} +91 -2
- package/dist/chunks/{chunk-E7OK5WD5.js → chunk-Q4OYAQYH.js} +5 -5
- package/dist/chunks/{chunk-7BRU4EFH.js → chunk-QVSWRLLU.js} +35 -6
- package/dist/chunks/{chunk-T6EGVBKU.js → chunk-TA7FXXJD.js} +6 -3
- package/dist/chunks/{chunk-GPMFD4RD.js → chunk-TXUG266F.js} +1 -1
- package/dist/chunks/{chunk-4TEDNCON.js → chunk-UFIT2UU3.js} +354 -56
- 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-FMPJJYYI.js → chunk-WRXSAVKO.js} +1 -1
- package/dist/chunks/{chunk-7U577Q7U.js → chunk-WSF4NNMR.js} +3 -3
- package/dist/chunks/chunk-XHK4MDR5.js +2497 -0
- package/dist/chunks/{chunk-LFMSDBZN.js → chunk-XNIK66I4.js} +326 -161
- 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-I566ZYNF.js → chunk-Z7VYWPZV.js} +1 -1
- package/dist/chunks/{conflict-VR55AOOO.js → conflict-ARLSZJ6V.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-HZIZRZBX.js → continuation-HFW2YT5S.js} +4 -3
- package/dist/chunks/{continuation-NLECEJPX.js → continuation-KI7DRRZN.js} +4 -3
- package/dist/chunks/{contract-HI4FNPYE.js → contract-DNIIW5VJ.js} +13 -5
- package/dist/chunks/{cowork-HJLI353D.js → cowork-GMLRGVIW.js} +31 -14
- package/dist/chunks/create-flow-J22BO65E.js +56 -0
- package/dist/chunks/{ebuilder-form-HTGI63UU.js → ebuilder-form-ANV2FHYV.js} +12 -7
- package/dist/chunks/{ehr-GYXIYH3A.js → ehr-GSTGAIY3.js} +695 -1255
- package/dist/chunks/{employee-SAK2QYXX.js → employee-22BGJ3QS.js} +3 -3
- package/dist/chunks/{env-DW3G4HUO.js → env-BX3VRFS7.js} +4 -3
- package/dist/chunks/{esb-I5INCEFE.js → esb-ATAIASX2.js} +12 -7
- package/dist/chunks/{factory-TKXGXS6L.js → factory-PETTFME6.js} +3 -2
- package/dist/chunks/{fna-K2MHTQ24.js → fna-YEKBSFSX.js} +14 -8
- package/dist/chunks/{group-chat-VYBNMJLG.js → group-chat-BFVXAYFX.js} +7 -4
- package/dist/chunks/{host-D5SERMAJ.js → host-HRBXEPDQ.js} +5 -5
- package/dist/chunks/{host-JM4YVHFM.js → host-LR55CTHP.js} +5 -5
- package/dist/chunks/{host-L3VLITMT.js → host-SUOY6VYQ.js} +5 -5
- package/dist/chunks/{host-ZUQTJYYK.js → host-SZGV4UNT.js} +5 -5
- package/dist/chunks/{host-256GVCAH.js → host-WIKN2EJ5.js} +5 -5
- package/dist/chunks/{hrm-VLRBKTZB.js → hrm-NRDO4W5G.js} +11 -7
- package/dist/chunks/{im-QK3VTLXK.js → im-IQ2HN23S.js} +11 -10
- package/dist/chunks/{invoice-T5JTA32H.js → invoice-MNRW76PP.js} +636 -1768
- package/dist/chunks/{jiuchuanhui-P2FNEQVZ.js → jiuchuanhui-DTRBAX4N.js} +14 -6
- package/dist/chunks/{lazy-dispatch-XRRI46M6.js → lazy-dispatch-ZVWAI25B.js} +7 -6
- package/dist/chunks/{mail-3Y7MJ6PS.js → mail-ZVAUXOJA.js} +16 -14
- package/dist/chunks/{meeting-M7LTXGJE.js → meeting-FEVPZ67S.js} +21 -13
- package/dist/chunks/{okr-OBC6S67L.js → okr-SDH3E5RA.js} +12 -5
- package/dist/chunks/{operations-5QL3AECO.js → operations-62N6EP3C.js} +4 -3
- package/dist/chunks/{plan-5H6I53SK.js → plan-E35JFDI7.js} +12 -5
- package/dist/chunks/{project-L75QZV4S.js → project-73QXBAB2.js} +49 -25
- package/dist/chunks/reception-UWZVACBN.js +1899 -0
- package/dist/chunks/recruit-stage-4MAOCKFY.js +4770 -0
- package/dist/chunks/registry-IM5G23LS.js +24 -0
- package/dist/chunks/{registry-UGRBCBHO.js → registry-JDUS4E7D.js} +7 -6
- package/dist/chunks/{registry-RXPN6BBT.js → registry-KNKSCJNT.js} +7 -6
- package/dist/chunks/{registry-NYPYMZXG.js → registry-PO7SI256.js} +4 -4
- package/dist/chunks/{registry-QGHFNUWS.js → registry-PVUZQDDQ.js} +3 -3
- package/dist/chunks/{room-recommend-A3UDC3CA.js → room-recommend-H7KLXA5R.js} +6 -5
- package/dist/chunks/{schedule-5GCACCK7.js → schedule-ESZIBAUO.js} +6 -5
- package/dist/chunks/{workflow-M5ZJ7DWF.js → workflow-CWJFJLQU.js} +15 -10
- 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 +41 -30
- package/dist/internal/e10/auth/commands.js +164 -8
- package/dist/internal/e10/auth/error-log.js +182 -0
- package/dist/internal/e10/auth/messages.js +6 -0
- package/dist/internal/e10/auth/session.js +34 -3
- package/dist/internal/e10/auth/xiaoe.js +286 -44
- package/dist/internal/e10/auth-recovery.js +72 -14
- package/dist/internal/e10/context.js +72 -13
- package/dist/internal/e10/index.js +1 -1
- package/dist/internal/e10/network-error.js +93 -0
- package/dist/internal/e10/request-runtime.js +6 -0
- 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/confirm.js +2 -1
- 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/read.js +31 -22
- package/dist/shortcuts/calendar/operations/write.js +46 -2
- package/dist/shortcuts/contract/continuation.js +2 -1
- package/dist/shortcuts/contract/index.js +2 -0
- package/dist/shortcuts/contract/operations/write.js +2 -1
- package/dist/shortcuts/cowork/continuation.js +2 -1
- package/dist/shortcuts/cowork/index.js +2 -0
- package/dist/shortcuts/cowork/operations/discuss-write.js +5 -1
- package/dist/shortcuts/cowork/operations/item-write.js +1 -7
- package/dist/shortcuts/cowork/operations/member-write.js +3 -1
- package/dist/shortcuts/cowork/operations/permission-write.js +5 -1
- package/dist/shortcuts/cowork/operations/shared.js +7 -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 +44 -2
- package/dist/shortcuts/ehr/operations/hr-contact.js +7 -4
- package/dist/shortcuts/ehr/operations/hr-report.js +13 -7
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +317 -63
- package/dist/shortcuts/ehr/operations/recruit-position.js +134 -2
- package/dist/shortcuts/ehr/operations/recruit-write.js +263 -18
- package/dist/shortcuts/ehr/operations/recruit.js +10 -4
- package/dist/shortcuts/ehr/operations/shared.js +47 -0
- 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/org.js +118 -0
- package/dist/shortcuts/im/continuation.js +2 -1
- package/dist/shortcuts/index.js +10 -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/catalog.js +4 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +101 -35
- package/dist/shortcuts/meeting/operations/eb/decision.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/factory.js +34 -1
- package/dist/shortcuts/meeting/operations/eb/group-chat.js +25 -3
- package/dist/shortcuts/meeting/operations/eb/person-cache.js +96 -0
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +33 -11
- package/dist/shortcuts/meeting/operations/lifecycle.js +1 -1
- package/dist/shortcuts/meeting/operations/receipts.js +1 -1
- 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/project/operations/read.js +6 -25
- package/dist/shortcuts/project/operations/shared.js +22 -0
- package/dist/shortcuts/project/operations/write.js +28 -2
- 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 +231 -0
- package/dist/shortcuts/recruit-stage/continuation.js +74 -0
- package/dist/shortcuts/recruit-stage/errors.js +65 -0
- package/dist/shortcuts/recruit-stage/host.js +109 -0
- package/dist/shortcuts/recruit-stage/index.js +115 -0
- package/dist/shortcuts/recruit-stage/manifest.js +29 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +722 -0
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +269 -0
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +719 -0
- package/dist/shortcuts/recruit-stage/operations/list.js +431 -0
- package/dist/shortcuts/recruit-stage/operations/registry.js +38 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +1354 -0
- package/dist/shortcuts/recruit-stage/operations/search.js +158 -0
- package/dist/shortcuts/recruit-stage/operations/types.js +25 -0
- package/dist/shortcuts/recruit-stage/school-tiers.json +318 -0
- package/dist/shortcuts/recruit-stage/shared.js +608 -0
- package/dist/shortcuts/workflow/continuation.js +2 -1
- package/dist/shortcuts/workflow/index.js +2 -0
- package/dist/shortcuts/workflow/operations/form.js +32 -8
- package/dist/shortcuts/workflow/operations/todoSmartConvert/detailFieldRules.js +4 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/summaryCache.js +13 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoDetailCache.js +17 -24
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoDetailFetcher.js +14 -9
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +50 -8
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +2 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.detail.js +17 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +7 -39
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.groupSummary.js +3 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +51 -15
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.pipeline.js +16 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +151 -63
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.subGroup.js +56 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.summary.js +39 -14
- 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 +1 -1
- package/docs/e10-auth.md +23 -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/operation-manual.md +8 -0
- package/docs/reception.md +119 -0
- package/package.json +1 -1
- package/scripts/clean.mjs +43 -2
- package/scripts/install-skill-to-xiaoe.mjs +105 -0
- package/scripts/package-skill.mjs +4 -2
- package/skill-template/business-info.json +42 -2
- package/skill-template/domains/caizhilian.md +1 -1
- package/skill-template/domains/reception-flow.md +18 -0
- package/skill-template/domains/recruit-stage.md +29 -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/SKILL.md +2 -1
- package/skills/weaver-e10-calendar/references/calendar-write.md +55 -1
- package/skills/weaver-e10-cowork/SKILL.md +1 -1
- package/skills/weaver-e10-cowork/references/cowork-write.md +3 -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/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-request-write.md +1 -1
- 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 +10 -2
- package/skills/weaver-e10-jucailin/references/hr-contact.md +8 -0
- package/skills/weaver-e10-jucailin/references/hr-report.md +8 -0
- package/skills/weaver-e10-jucailin/references/recruit-create.md +14 -5
- package/skills/weaver-e10-jucailin/references/recruit-read.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-write.md +5 -4
- package/skills/weaver-e10-mail/SKILL.md +1 -1
- package/skills/weaver-e10-meeting/SKILL.md +39 -7
- 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 +230 -0
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +119 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +188 -0
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +202 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +322 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +127 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +65 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +63 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +142 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +95 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +56 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +101 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +148 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +77 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +59 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +69 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +241 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +451 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +128 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +146 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +69 -0
- package/skills/weaver-e10-shared/SKILL.md +1 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +10 -2
- package/skills/weaver-e10-shijingran/SKILL.md +7 -6
- package/skills/weaver-e10-shijingran/references/operations.md +3 -1
- package/skills/weaver-e10-shijingran/references/source-manifest.json +30 -28
- package/skills/weaver-e10-shijingran/references/write-operations.md +2 -0
- package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +2 -0
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/SKILL.md +4 -2
- package/skills/weaver-e10-workflow/aigroup/default.json +11 -9
- package/skills/weaver-e10-workflow/references/source-manifest.json +32 -32
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +23 -13
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +62 -20
- package/skills/weaver-e10-yepiaotong/SKILL.md +28 -36
- package/skills/weaver-e10-yepiaotong/references/invoice-agent-entry.md +6 -3
- 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 +1 -1
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +7 -7
- package/dist/chunks/chunk-SPRHHSVC.js +0 -465
- package/dist/chunks/registry-KMHCPAAD.js +0 -22
- package/dist/shortcuts/invoice/markdown.js +0 -172
- package/dist/shortcuts/invoice/operations/issuing-qys.js +0 -424
- package/skills/weaver-e10-meeting.zip +0 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +0 -131
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-form-fill-rules.md +0 -179
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
name: weaver-e10-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:
|
|
@@ -13,11 +13,11 @@ requires:
|
|
|
13
13
|
cliHelp: "weaver-work-cli invoice --help"
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
**CRITICAL — 开始前 MUST
|
|
16
|
+
**CRITICAL — 开始前 MUST 直接执行本技能的业务命令(`weaver-work-cli --json invoice run ...`);不要预先读取共享规则,也不要先跑 `auth status`、`doctor --e10`、`auth xiaoe` 等登录或状态检查。** 小e(XiaoE)环境下登录由 CLI 自己在公共会话加载层完成:进程内存在任意 `XIAOE_*` 环境变量(宿主新增 `XIAOE_CLIENT_TYPE=client|cloud`,分别表示桌面客户端与网页端)时,缺少本地会话会自动换取登录信息并继续执行原请求,已有会话被拒绝为失效时静默恢复并原样重放 1 次,换票结果落盘供后续命令复用。Agent 不参与该过程,**也不得在思考过程或回复中描述登录、换票、重登、会话恢复等中间步骤**,只呈现业务结果。仅以下三种情形才读取 `[../weaver-e10-shared/SKILL.md](../weaver-e10-shared/SKILL.md)`:① 命令不可用(`command not found` / 退出码 127),或返回 `authentication` / `session_expired` 且 CLI 自动恢复后仍失败、`subtype=xiaoe_credential_unavailable`;② 即将执行写入/删除/导入类操作(确认、continuation 与回查协议);③ 需要判定是否传 `--is-connector`。若共享规则不存在、CLI 未安装或读取失败,说明本技能的必需依赖缺失,必须调用宿主提供的提问/确认弹框,向用户说明必须补齐 `weaver-work-cli` 与共享 skill `weaver-e10-shared`(不补齐本技能无法执行)及补齐计划,并把下面两条待执行命令原样完整展示在确认信息中;Agent 不能在未确认时自行安装。用户明确确认后,Agent 必须直接代为按顺序执行且每条仅执行一次,不得要求或引导用户手动执行:① 缺 CLI 时执行 `npm install -g weaver-work-cli`;② 再执行 `weaver-work-cli skills install shared --target-dir <SKILLS_ROOT>` 装回共享 skill,`<SKILLS_ROOT>` 取本 SKILL.md 所在目录的上一级绝对目录(即与本技能同级的 skills 根目录),不要省略 `--target-dir`——省略会装进默认目录,导致本技能依然读不到共享规则。命令均成功后重新读取共享规则;仍读不到就停止并把结果报告用户,不得凭猜测继续。**
|
|
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
|
-
|
|
20
|
-
所有命令通过 `weaver-work-cli --json invoice run <operation>`
|
|
19
|
+
登录与会话由 CLI 托管,Agent 不做登录前置;只有本文件 CRITICAL 列出的三种情形才按共享规则使用 `weaver-work-cli auth ...` 命令体系判断登录态。禁止直接读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
|
|
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
|
|
|
@@ -27,7 +27,7 @@ cliHelp: "weaver-work-cli invoice --help"
|
|
|
27
27
|
|
|
28
28
|
本文件在技能加载时已整体注入上下文,**不要再用 Read 读本 SKILL.md**;仅需核对 `version` / `agent_created` 时读前 15 行,且**修改本包内文件不必先确认 `agent_created`**(此处已声明 `true`)。
|
|
29
29
|
|
|
30
|
-
- **共享规则 `../weaver-e10-shared/SKILL.md`
|
|
30
|
+
- **共享规则 `../weaver-e10-shared/SKILL.md` 不是前置**:只有 CRITICAL 列出的三种情形才读,同一会话只读一次;内容已在本轮上下文时直接复用。
|
|
31
31
|
- **只读命中路由的那个 reference**。reference 是参数与字段的第一信息源;reference 已覆盖的参数不要再跑 `--help`,`schema` 只用于确认 operation 清单与风险等级。
|
|
32
32
|
- **单点查询压缩成三个动作**:读 1 个 reference → 1 条 CLI 命令 → 直接输出。已给出 `fid` / `number` 时禁止 `list → filter → get` 链路。
|
|
33
33
|
- **同一字段不重复查**:一轮内已有新鲜结果就复用,不要为"再确认一次"重跑同一个只读 operation。
|
|
@@ -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,13 +155,13 @@ cliHelp: "weaver-work-cli invoice --help"
|
|
|
163
155
|
- 失败后先看进程退出码、`error.type`、`error.subtype` 和 `error.message`
|
|
164
156
|
- **除非错误明确提示可恢复或需要补充参数,否则不要重复刷同一个 operation**
|
|
165
157
|
- 写请求已经发出后,遇到结果不确定必须停止;不要把 `.apply` 当成可重试读操作
|
|
166
|
-
-
|
|
167
|
-
-
|
|
168
|
-
-
|
|
169
|
-
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
158
|
+
- 错误为 `validation/operation_retired` 时,说明调用的是已下线的旧 operation(如 `invoice.reim.flow.create.*`、`invoice.issuing.qys.list`):按 `error.details.replacement` 改走新链路,并读 `error.details.reference` 指向的文档,不要换名字重试旧接口;完整清单见 `invoice schema` 的 `retiredOperations`
|
|
159
|
+
- **错误为 `authentication`(未登录,如 `E10 auth not found`)或 `session_expired`(登录态失效)时:不要盲目重试、不要换域名重试、不要用示例占位域名登录**。先判断 CLI 是否已经自动处理:
|
|
160
|
+
- **小e 环境(进程内存在任意 `XIAOE_*`,含 `XIAOE_CLIENT_TYPE=client|cloud`)**:登录缺失与过期都由 CLI 底层在公共请求层静默换取并原样重放 1 次,Agent 不执行任何登录命令——包括 `weaver-work-cli auth xiaoe`——也不重跑原业务命令,**也不在思考或回复里复述登录、换票、重登、会话恢复过程**。仍返回 `session_expired` 或 `authentication/xiaoe_credential_unavailable` 时,用一句话告知「小e 当前登录态不可用,请在小e 中重新登录后重试」并停止,不回退浏览器登录。
|
|
161
|
+
- **非小e 环境**才读取共享规则 `../weaver-e10-shared/references/e10-auth-and-session.md`,并按其中流程处理:
|
|
162
|
+
- 仅首次无会话或明确的 `auth not found`,才由 Agent 复用任务开始时的宿主判定。
|
|
163
|
+
- 首次认证且非 XiaoE 时不得执行 `auth xiaoe`;取得用户确认的真实 E10 登录域名后,执行 `weaver-work-cli auth login --base-url "<用户确认的 E10 登录域名>" --agent_type "<当前智能体名称>"`。环境不能完成本机浏览器回调时停止并反馈。
|
|
164
|
+
- 显式登录后读操作可重新执行;写操作不得复用旧 continuation,必须重新 prepare 并重新确认。已返回 `partial/write_uncertain` 时先只读回查,禁止直接重放写入。
|
|
173
165
|
- 登录类命令必须带 timeout 限时(上限 300 秒 / 5 分钟,后台运行 + 限时观察):输出一旦出现 `Open browser login`、`Waiting for E10 authorization callback` 或 `Could not open browser automatically`,即判定已降级到浏览器 OAuth,立即终止该命令并反馈,不得继续等待。登录失败不自动重试。
|
|
174
166
|
- 需要浏览器登录时必须携带发起方标识 `--agent_type "<当前智能体名称>"`(授权确认页展示用;宿主无法确认名称时才可省略,交由 CLI 从环境变量推断)。
|
|
175
167
|
|
|
@@ -222,7 +214,7 @@ weaver-work-cli --json invoice run invoice.reim.requests.list --input-json '{"pa
|
|
|
222
214
|
## 不在本 skill 范围
|
|
223
215
|
|
|
224
216
|
- 禁止加载原始 `weaver-e10-yepiaotong` Skill 代替 CLI。
|
|
225
|
-
- 已有 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。
|
|
226
218
|
- 当前修正源资料未提供客户档案查询或红字发票红冲接口,`invoice.customer.*` 与 `invoice.red.*` 不属于可用 operation;遇到这类请求时读取 `[invoice-disabled-capabilities.md](references/invoice-disabled-capabilities.md)` 并说明当前 CLI 不支持绕过调用。
|
|
227
219
|
- 禁止读取或复制 CLI runtime 内部 Token、Cookie、ETEAMSID。
|
|
228
220
|
- 禁止读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
|
|
@@ -6,13 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
## 准备命令
|
|
8
8
|
|
|
9
|
+
直接用一条不依赖登录态的只读命令确认可用:
|
|
10
|
+
|
|
9
11
|
```text
|
|
10
|
-
weaver-work-cli --version
|
|
11
|
-
weaver-work-cli doctor --e10
|
|
12
12
|
weaver-work-cli invoice schema
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
- **小e 环境(进程内存在任意 `XIAOE_*`,含 `XIAOE_CLIENT_TYPE=client|cloud`)**:不要执行 `weaver-work-cli --version` 或 `doctor --e10`,版本更新与登录由小e 客户端和 CLI 会话层托管;业务命令缺少会话时会自动换取登录信息并继续执行,已有会话失效时静默恢复并重放 1 次。
|
|
16
|
+
- **非小e 环境**首次使用才执行 `weaver-work-cli --version` 与 `doctor --e10`。
|
|
17
|
+
|
|
18
|
+
仅在认证最终失败(`authentication` / `session_expired` / `xiaoe_credential_unavailable`)时,才按共享规则读取 `../../weaver-e10-shared/references/e10-auth-and-session.md`。
|
|
16
19
|
|
|
17
20
|
## 固定入口
|
|
18
21
|
|
|
@@ -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
|
## 注意
|