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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
getMeetingOperation,
|
|
5
|
+
hasMeetingOperation,
|
|
6
|
+
meetingOperationDefinitions
|
|
7
|
+
} from "./chunk-PC7VKEB5.js";
|
|
8
|
+
import "./chunk-N4M2DDFE.js";
|
|
9
|
+
import "./chunk-FRZKBMSW.js";
|
|
10
|
+
import "./chunk-GM6J7Q4B.js";
|
|
11
|
+
import "./chunk-FAZTGX7S.js";
|
|
12
|
+
import "./chunk-Z7VYWPZV.js";
|
|
13
|
+
import "./chunk-OF4S23UB.js";
|
|
14
|
+
import "./chunk-CWYGFU5B.js";
|
|
15
|
+
import "./chunk-GAMZLAG2.js";
|
|
16
|
+
import "./chunk-QVSWRLLU.js";
|
|
17
|
+
import "./chunk-7BDPM5ST.js";
|
|
18
|
+
import "./chunk-UG5G54VL.js";
|
|
19
|
+
import "./chunk-BUSC6UAE.js";
|
|
20
|
+
export {
|
|
21
|
+
getMeetingOperation,
|
|
22
|
+
hasMeetingOperation,
|
|
23
|
+
meetingOperationDefinitions
|
|
24
|
+
};
|
|
@@ -4,13 +4,14 @@ import {
|
|
|
4
4
|
getWorkflowOperation,
|
|
5
5
|
hasWorkflowOperation,
|
|
6
6
|
workflowOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-XNIK66I4.js";
|
|
8
|
+
import "./chunk-HP7JIYMT.js";
|
|
9
|
+
import "./chunk-WRXSAVKO.js";
|
|
10
|
+
import "./chunk-727FH2NI.js";
|
|
11
11
|
import "./chunk-AJ62BGAW.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7BDPM5ST.js";
|
|
13
|
+
import "./chunk-UFIT2UU3.js";
|
|
14
|
+
import "./chunk-UG5G54VL.js";
|
|
14
15
|
import "./chunk-BUSC6UAE.js";
|
|
15
16
|
export {
|
|
16
17
|
getWorkflowOperation,
|
|
@@ -4,12 +4,13 @@ import {
|
|
|
4
4
|
esbOperationDefinitions,
|
|
5
5
|
getEsbOperation,
|
|
6
6
|
hasEsbOperation
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-TA7FXXJD.js";
|
|
8
|
+
import "./chunk-F4E4EM35.js";
|
|
9
|
+
import "./chunk-TXUG266F.js";
|
|
10
|
+
import "./chunk-7BDPM5ST.js";
|
|
11
|
+
import "./chunk-ETNJSKMM.js";
|
|
12
|
+
import "./chunk-UFIT2UU3.js";
|
|
13
|
+
import "./chunk-UG5G54VL.js";
|
|
13
14
|
import "./chunk-BUSC6UAE.js";
|
|
14
15
|
export {
|
|
15
16
|
esbOperationDefinitions,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
getHrmOperation,
|
|
5
5
|
hasHrmOperation,
|
|
6
6
|
hrmOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-PUQS5MWL.js";
|
|
8
|
+
import "./chunk-D4ADSZ7H.js";
|
|
9
|
+
import "./chunk-56EZERK4.js";
|
|
10
|
+
import "./chunk-UG5G54VL.js";
|
|
11
11
|
import "./chunk-BUSC6UAE.js";
|
|
12
12
|
export {
|
|
13
13
|
getHrmOperation,
|
|
@@ -3,10 +3,10 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getImOperation,
|
|
5
5
|
imOperationDefinitions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q4OYAQYH.js";
|
|
7
|
+
import "./chunk-IC62NFM5.js";
|
|
7
8
|
import "./chunk-YLCYX7LE.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-LUSPKZKY.js";
|
|
9
|
+
import "./chunk-UG5G54VL.js";
|
|
10
10
|
import "./chunk-BUSC6UAE.js";
|
|
11
11
|
export {
|
|
12
12
|
getImOperation,
|
|
@@ -6,11 +6,12 @@ import {
|
|
|
6
6
|
loadRooms,
|
|
7
7
|
recommendRooms,
|
|
8
8
|
rememberFrequentRoom
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-GM6J7Q4B.js";
|
|
10
|
+
import "./chunk-Z7VYWPZV.js";
|
|
11
|
+
import "./chunk-GAMZLAG2.js";
|
|
12
|
+
import "./chunk-QVSWRLLU.js";
|
|
13
|
+
import "./chunk-7BDPM5ST.js";
|
|
14
|
+
import "./chunk-UG5G54VL.js";
|
|
14
15
|
import "./chunk-BUSC6UAE.js";
|
|
15
16
|
export {
|
|
16
17
|
ebRoomRecommendOperation,
|
|
@@ -8,11 +8,12 @@ import {
|
|
|
8
8
|
resolveMeetingScheduleTypeIds,
|
|
9
9
|
resolveMemberIdsByName,
|
|
10
10
|
runScheduleConflictFlow
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-FAZTGX7S.js";
|
|
12
|
+
import "./chunk-Z7VYWPZV.js";
|
|
13
|
+
import "./chunk-GAMZLAG2.js";
|
|
14
|
+
import "./chunk-QVSWRLLU.js";
|
|
15
|
+
import "./chunk-7BDPM5ST.js";
|
|
16
|
+
import "./chunk-UG5G54VL.js";
|
|
16
17
|
import "./chunk-BUSC6UAE.js";
|
|
17
18
|
export {
|
|
18
19
|
applyMessageDetails,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
createWorkflowHost
|
|
5
|
+
} from "./chunk-GRDRG6HP.js";
|
|
3
6
|
import {
|
|
4
7
|
USER_INTENT_RULE_FILE,
|
|
5
8
|
aigroupUserDir,
|
|
@@ -14,26 +17,27 @@ import {
|
|
|
14
17
|
validateRuleFile,
|
|
15
18
|
workflowOperationDefinitions,
|
|
16
19
|
workflowSuccess
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XNIK66I4.js";
|
|
18
21
|
import {
|
|
19
22
|
createWorkflowContinuationSigner
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
createWorkflowHost
|
|
23
|
-
} from "./chunk-NETCCARD.js";
|
|
23
|
+
} from "./chunk-HP7JIYMT.js";
|
|
24
24
|
import {
|
|
25
25
|
CLARIFICATION_SUBTYPE,
|
|
26
26
|
WorkflowCliError,
|
|
27
27
|
workflowValidationError
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-WRXSAVKO.js";
|
|
29
|
+
import "./chunk-727FH2NI.js";
|
|
30
30
|
import "./chunk-AJ62BGAW.js";
|
|
31
|
-
import
|
|
32
|
-
|
|
31
|
+
import {
|
|
32
|
+
reportPlatformError
|
|
33
|
+
} from "./chunk-6N4JPNFL.js";
|
|
34
|
+
import "./chunk-7BDPM5ST.js";
|
|
35
|
+
import "./chunk-ETNJSKMM.js";
|
|
36
|
+
import "./chunk-UFIT2UU3.js";
|
|
33
37
|
import {
|
|
34
38
|
isCliError,
|
|
35
39
|
toErrorEnvelope
|
|
36
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UG5G54VL.js";
|
|
37
41
|
import "./chunk-BUSC6UAE.js";
|
|
38
42
|
|
|
39
43
|
// src/shortcuts/workflow/index.ts
|
|
@@ -311,6 +315,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
311
315
|
});
|
|
312
316
|
printWorkflowResult(ctx, operation, result);
|
|
313
317
|
} catch (error) {
|
|
318
|
+
reportPlatformError(error);
|
|
314
319
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
315
320
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
316
321
|
}
|
package/dist/cmd/action.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { shouldReportPlatformError, toPlatformError } from '../core/error-codes.js';
|
|
1
2
|
import { ExitCode, isCliError, toErrorEnvelope } from '../core/errors.js';
|
|
2
3
|
import { guardFileInput } from '../core/input.js';
|
|
3
4
|
import { RefError, pruneRefs, resolveRefInput } from '../core/refs.js';
|
|
@@ -89,6 +90,11 @@ export function createAction(ctx) {
|
|
|
89
90
|
}
|
|
90
91
|
catch (error) {
|
|
91
92
|
await commandCtx.hooks.onError(commandCtx, error);
|
|
93
|
+
// 平台型连接器(千问办公等)要求 stderr 有统一的 {"code":"E-XXXX","message":"…"}。
|
|
94
|
+
// 这里**只追加一行**,既有的错误消息与退出码一律不变。
|
|
95
|
+
if (shouldReportPlatformError(error)) {
|
|
96
|
+
process.stderr.write(JSON.stringify(toPlatformError(error)) + '\n');
|
|
97
|
+
}
|
|
92
98
|
if (commandCtx.getGlobalOptions().json) {
|
|
93
99
|
console.error(JSON.stringify({
|
|
94
100
|
schemaVersion: 1,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CliError, ExitCode } from '../../core/errors.js';
|
|
2
|
+
import { E10AuthSession, findAuthFile, getActiveProfile } from '../../internal/e10/auth/session.js';
|
|
3
|
+
/**
|
|
4
|
+
* 身份信息脱敏:只保留业务可读字段。
|
|
5
|
+
*
|
|
6
|
+
* 明确剔除(平台规范要求 stdout 不得含敏感凭据 / 绝对路径):
|
|
7
|
+
* - `eteamsId`:等价于会话凭据,可直接换取业务数据;
|
|
8
|
+
* - `cookie` / `userAgent`:请求凭据与签名素材;
|
|
9
|
+
* - `authFile`:本机绝对路径,暴露用户目录结构。
|
|
10
|
+
*/
|
|
11
|
+
function safeIdentity(session, profile) {
|
|
12
|
+
const pick = (value) => (typeof value === 'string' ? value : '');
|
|
13
|
+
return {
|
|
14
|
+
employeeId: pick(session.userId),
|
|
15
|
+
tenantKey: pick(session.tenantKey),
|
|
16
|
+
tenantName: pick(session.tenantName),
|
|
17
|
+
department: pick(session.department),
|
|
18
|
+
subcompany: pick(session.subcompany),
|
|
19
|
+
position: pick(session.position),
|
|
20
|
+
version: pick(session.version),
|
|
21
|
+
baseUrl: session.getBaseUrl(),
|
|
22
|
+
profile,
|
|
23
|
+
agentType: pick(session.agentType),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export const identityCommand = {
|
|
27
|
+
name: 'identity',
|
|
28
|
+
description: 'Print the signed-in identity in a connector-safe JSON form',
|
|
29
|
+
category: 'platform',
|
|
30
|
+
register({ program, action }) {
|
|
31
|
+
const identity = program.command('identity')
|
|
32
|
+
.description('Connector contract: report who the current credential belongs to');
|
|
33
|
+
identity.command('whoami')
|
|
34
|
+
.description('Print the signed-in E10 identity as JSON without any credential material')
|
|
35
|
+
.action(action((ctx) => {
|
|
36
|
+
const opts = ctx.getGlobalOptions();
|
|
37
|
+
const authFile = findAuthFile(ctx.cwd, opts);
|
|
38
|
+
const session = authFile ? E10AuthSession.fromFile(authFile, opts.baseUrl, opts.passportUrl) : null;
|
|
39
|
+
if (!session)
|
|
40
|
+
throw new CliError('E10 auth not found.', ExitCode.AuthError);
|
|
41
|
+
const profile = opts.profile || getActiveProfile();
|
|
42
|
+
ctx.output.raw(JSON.stringify(safeIdentity(session, profile)));
|
|
43
|
+
}));
|
|
44
|
+
},
|
|
45
|
+
};
|
package/dist/cmd/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { configCommand } from './config/index.js';
|
|
|
3
3
|
import { docsCommand } from './docs/index.js';
|
|
4
4
|
import { doctorCommand } from './doctor/index.js';
|
|
5
5
|
import { e10Command } from './e10/index.js';
|
|
6
|
+
import { identityCommand } from './identity/index.js';
|
|
6
7
|
import { refsCommand } from './refs/index.js';
|
|
7
8
|
import { runCommand } from './run/index.js';
|
|
8
9
|
import { setupCommand } from './setup/index.js';
|
|
@@ -15,6 +16,7 @@ export const builtinCommands = [
|
|
|
15
16
|
runCommand,
|
|
16
17
|
refsCommand,
|
|
17
18
|
e10Command,
|
|
19
|
+
identityCommand,
|
|
18
20
|
setupCommand,
|
|
19
21
|
skillsCommand,
|
|
20
22
|
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* continuation(确认票据)的统一有效期。
|
|
3
|
+
*
|
|
4
|
+
* 票据是 `prepare` 签发、`apply` 消费的「提交卡」:里面封存了本次要提交的完整内容
|
|
5
|
+
* (表单数据、目标 id、内容指纹)并用本机密钥做 HMAC 签名。有效期只约束
|
|
6
|
+
* 「从 prepare 到 apply 之间的时间差」,**与登录态无关** —— 登录失效走
|
|
7
|
+
* `authentication` 错误(exitCode 3),票据过期/被改写走 `validation/continuation_invalid`。
|
|
8
|
+
*
|
|
9
|
+
* 统一为 24 小时:确认一份表单经常要跨小时(找领导核对、补齐参会人、等客户确认),
|
|
10
|
+
* 短窗口只会把正常流程打断成 `continuation_expired`,逼用户重跑 prepare。
|
|
11
|
+
*
|
|
12
|
+
* 放长窗口不影响防重放:`apply` 阶段会落一次性消费标记(workflow `consume`),
|
|
13
|
+
* 同一票据第二次提交会被拦;票据里还有内容指纹挡 `target_changed`。
|
|
14
|
+
* 想收紧某个具体链路时,在调用 `issue(payload, ttlMs)` 处显式传值即可。
|
|
15
|
+
*/
|
|
16
|
+
export const CONTINUATION_TTL_MS = 24 * 60 * 60 * 1000;
|
|
17
|
+
/** 回显给调用方的秒数,必须与 {@link CONTINUATION_TTL_MS} 保持一致。 */
|
|
18
|
+
export const CONTINUATION_TTL_SECONDS = CONTINUATION_TTL_MS / 1000;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ExitCode, isCliError, isStructuredError } from './errors.js';
|
|
2
|
+
const MAX_MESSAGE_LENGTH = 500;
|
|
3
|
+
function truncate(value) {
|
|
4
|
+
const flat = value.replace(/\s+/g, ' ').trim();
|
|
5
|
+
return flat.length > MAX_MESSAGE_LENGTH ? `${flat.slice(0, MAX_MESSAGE_LENGTH)}…` : flat;
|
|
6
|
+
}
|
|
7
|
+
function httpStatusOf(error) {
|
|
8
|
+
if (!error || typeof error !== 'object')
|
|
9
|
+
return undefined;
|
|
10
|
+
const details = error.details;
|
|
11
|
+
if (!details || typeof details !== 'object')
|
|
12
|
+
return undefined;
|
|
13
|
+
const status = details.httpStatus;
|
|
14
|
+
return typeof status === 'number' ? status : undefined;
|
|
15
|
+
}
|
|
16
|
+
/** 结构化错误的 type / subtype 判定,优先级高于退出码。 */
|
|
17
|
+
function codeFromStructured(type, subtype, httpStatus) {
|
|
18
|
+
if (httpStatus === 403)
|
|
19
|
+
return 'E-0005';
|
|
20
|
+
if (httpStatus === 401)
|
|
21
|
+
return subtype.includes('expired') ? 'E-0002' : 'E-0001';
|
|
22
|
+
if (type === 'authentication') {
|
|
23
|
+
return /expired|invalid_token|token_expired/u.test(subtype) ? 'E-0002' : 'E-0001';
|
|
24
|
+
}
|
|
25
|
+
if (type === 'permission' || type === 'authorization')
|
|
26
|
+
return 'E-0005';
|
|
27
|
+
if (type === 'validation' || type === 'usage')
|
|
28
|
+
return 'E-0003';
|
|
29
|
+
if (type === 'network' || type === 'upstream' || type === 'http')
|
|
30
|
+
return 'E-0004';
|
|
31
|
+
return 'E-9999';
|
|
32
|
+
}
|
|
33
|
+
function codeFromExitCode(exitCode) {
|
|
34
|
+
switch (exitCode) {
|
|
35
|
+
case ExitCode.UsageError:
|
|
36
|
+
return 'E-0003';
|
|
37
|
+
case ExitCode.AuthError:
|
|
38
|
+
return 'E-0001';
|
|
39
|
+
case ExitCode.NetworkError:
|
|
40
|
+
return 'E-0004';
|
|
41
|
+
case ExitCode.PolicyError:
|
|
42
|
+
return 'E-0005';
|
|
43
|
+
default:
|
|
44
|
+
return 'E-9999';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 把任意异常折算成 `{code, message}`。
|
|
49
|
+
*
|
|
50
|
+
* 判定顺序:结构化 error 的 type/subtype/httpStatus → CliError 的退出码 → E-9999。
|
|
51
|
+
*/
|
|
52
|
+
export function toPlatformError(error) {
|
|
53
|
+
if (isStructuredError(error)) {
|
|
54
|
+
const message = truncate(error.message || '未知错误');
|
|
55
|
+
return {
|
|
56
|
+
code: codeFromStructured(error.type, error.subtype, httpStatusOf(error)),
|
|
57
|
+
message,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
if (isCliError(error)) {
|
|
61
|
+
return {
|
|
62
|
+
code: codeFromExitCode(error.exitCode),
|
|
63
|
+
message: truncate(error.message || '未知错误'),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
67
|
+
return { code: 'E-9999', message: truncate(message || '未知错误') };
|
|
68
|
+
}
|
|
69
|
+
/** `ConfirmationRequired` / `Partial` 是流程信号而非失败,不追加错误码行。 */
|
|
70
|
+
export function shouldReportPlatformError(error) {
|
|
71
|
+
if (!isCliError(error))
|
|
72
|
+
return true;
|
|
73
|
+
return error.exitCode !== ExitCode.Success && error.exitCode !== ExitCode.ConfirmationRequired;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 往 stderr 追加一行 `{"code":"E-XXXX","message":"…"}`。
|
|
77
|
+
*
|
|
78
|
+
* 各业务 shortcut 自己 catch 后直接打印失败信封(不走 `createAction`),
|
|
79
|
+
* 所以它们也必须调用本函数,否则平台侧拿不到统一错误码。
|
|
80
|
+
*/
|
|
81
|
+
export function reportPlatformError(error) {
|
|
82
|
+
if (!shouldReportPlatformError(error))
|
|
83
|
+
return;
|
|
84
|
+
process.stderr.write(JSON.stringify(toPlatformError(error)) + '\n');
|
|
85
|
+
}
|
package/dist/core/logger.js
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
export class Logger {
|
|
2
2
|
getOptions;
|
|
3
|
+
/**
|
|
4
|
+
* 机器模式:进度与提示改走 stderr,stdout 只留给结构化结果。
|
|
5
|
+
*
|
|
6
|
+
* 只有显式开启的平台型命令(如 `auth init`)会打开它,默认关闭,
|
|
7
|
+
* 因此既有命令的 stdout 输出口径完全不变。
|
|
8
|
+
*/
|
|
9
|
+
machineMode = false;
|
|
3
10
|
constructor(getOptions) {
|
|
4
11
|
this.getOptions = getOptions;
|
|
5
12
|
}
|
|
6
13
|
info(message) {
|
|
14
|
+
if (this.machineMode) {
|
|
15
|
+
console.error(message);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
7
18
|
const opts = this.getOptions();
|
|
8
19
|
if (!opts.quiet && !opts.json) {
|
|
9
20
|
console.log(message);
|
package/dist/index.js
CHANGED
|
@@ -7,13 +7,14 @@ import {
|
|
|
7
7
|
firstPositionalToken,
|
|
8
8
|
registerCommands,
|
|
9
9
|
toCommandMetadata
|
|
10
|
-
} from "./chunks/chunk-
|
|
11
|
-
import "./chunks/chunk-
|
|
10
|
+
} from "./chunks/chunk-XHK4MDR5.js";
|
|
11
|
+
import "./chunks/chunk-727FH2NI.js";
|
|
12
12
|
import "./chunks/chunk-AJ62BGAW.js";
|
|
13
|
-
import "./chunks/chunk-
|
|
14
|
-
import "./chunks/chunk-
|
|
15
|
-
import "./chunks/chunk-
|
|
16
|
-
import "./chunks/chunk-
|
|
13
|
+
import "./chunks/chunk-BCVYBYYT.js";
|
|
14
|
+
import "./chunks/chunk-6N4JPNFL.js";
|
|
15
|
+
import "./chunks/chunk-ETNJSKMM.js";
|
|
16
|
+
import "./chunks/chunk-UFIT2UU3.js";
|
|
17
|
+
import "./chunks/chunk-UG5G54VL.js";
|
|
17
18
|
import "./chunks/chunk-BUSC6UAE.js";
|
|
18
19
|
|
|
19
20
|
// src/shortcuts/index.ts
|
|
@@ -29,7 +30,7 @@ function lazyShortcut(definition) {
|
|
|
29
30
|
placeholder.allowExcessArguments(true);
|
|
30
31
|
placeholder.helpOption(false);
|
|
31
32
|
placeholder.action(async () => {
|
|
32
|
-
const { dispatchLazyShortcut } = await import("./chunks/lazy-dispatch-
|
|
33
|
+
const { dispatchLazyShortcut } = await import("./chunks/lazy-dispatch-ZVWAI25B.js");
|
|
33
34
|
await dispatchLazyShortcut(definition, shortcutMetadata());
|
|
34
35
|
});
|
|
35
36
|
}
|
|
@@ -39,117 +40,127 @@ var builtinShortcuts = [
|
|
|
39
40
|
lazyShortcut({
|
|
40
41
|
name: "invoice",
|
|
41
42
|
description: "E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406 CLI",
|
|
42
|
-
load: async () => (await import("./chunks/invoice-
|
|
43
|
+
load: async () => (await import("./chunks/invoice-MNRW76PP.js")).invoiceShortcut
|
|
43
44
|
}),
|
|
44
45
|
lazyShortcut({
|
|
45
46
|
name: "ehr",
|
|
46
47
|
description: "\u6CDB\u5FAEE10\u805A\u624D\u6797\uFF08\u4EBA\u4E8B/\u51FA\u52E4/\u85AA\u916C\uFF09CLI",
|
|
47
|
-
load: async () => (await import("./chunks/ehr-
|
|
48
|
+
load: async () => (await import("./chunks/ehr-GSTGAIY3.js")).ehrShortcut
|
|
49
|
+
}),
|
|
50
|
+
lazyShortcut({
|
|
51
|
+
name: "recruit-stage",
|
|
52
|
+
description: "\u6CDB\u5FAEE10\u62DB\u8058\u52A9\u624B\uFF08JD\u751F\u6210/\u7B80\u5386\u5EFA\u6863/AI\u9762\u8BD5\u9080\u7EA6\uFF09CLI",
|
|
53
|
+
load: async () => (await import("./chunks/recruit-stage-4MAOCKFY.js")).recruitStageShortcut
|
|
48
54
|
}),
|
|
49
55
|
lazyShortcut({
|
|
50
56
|
name: "cowork",
|
|
51
57
|
description: "\u6CDB\u5FAEE10\u534F\u4F5C\u533A\uFF08\u534F\u4F5C\u4E8B\u9879/\u8BA8\u8BBA/\u5BA1\u6279/\u5171\u4EAB\u6743\u9650\uFF09CLI",
|
|
52
|
-
load: async () => (await import("./chunks/cowork-
|
|
58
|
+
load: async () => (await import("./chunks/cowork-GMLRGVIW.js")).coworkShortcut
|
|
53
59
|
}),
|
|
54
60
|
lazyShortcut({
|
|
55
61
|
name: "archive",
|
|
56
62
|
description: "E10 \u6587\u4E66\u5B9A\u6863\u6848\u7BA1\u7406 CLI",
|
|
57
|
-
load: async () => (await import("./chunks/archive-
|
|
63
|
+
load: async () => (await import("./chunks/archive-P6TBQGKL.js")).archiveShortcut
|
|
58
64
|
}),
|
|
59
65
|
lazyShortcut({
|
|
60
66
|
name: "archive-oa",
|
|
61
67
|
description: "E10 \u6863\u6848\u5B9A\u4F4D\u4E0E OA \u5546\u52A1\u5408\u540C\u501F\u9605 CLI",
|
|
62
|
-
load: async () => (await import("./chunks/archive-oa-
|
|
68
|
+
load: async () => (await import("./chunks/archive-oa-7TQ2NXOH.js")).archiveOaShortcut
|
|
63
69
|
}),
|
|
64
70
|
lazyShortcut({
|
|
65
71
|
name: "calendar",
|
|
66
72
|
description: "\u6CDB\u5FAEE10\u65E5\u7A0B\u7BA1\u7406 CLI\uFF08\u521B\u5EFA/\u67E5\u8BE2/\u66F4\u65B0/\u5220\u9664/\u5B57\u5178\uFF09",
|
|
67
|
-
load: async () => (await import("./chunks/calendar-
|
|
73
|
+
load: async () => (await import("./chunks/calendar-FI2WNSBO.js")).calendarShortcut
|
|
68
74
|
}),
|
|
69
75
|
lazyShortcut({
|
|
70
76
|
name: "fna",
|
|
71
77
|
description: "\u6CDB\u5FAEE10\u9F50\u4E1A\u6210\u8D39\u63A7\u4E2D\u5FC3\uFF08\u9884\u7B97/\u8D39\u7528\u4E2D\u5FC3/\u501F\u6B3E\u7BA1\u7406/\u53D1\u7968\u6838\u9500\uFF09CLI",
|
|
72
|
-
load: async () => (await import("./chunks/fna-
|
|
78
|
+
load: async () => (await import("./chunks/fna-YEKBSFSX.js")).fnaShortcut
|
|
73
79
|
}),
|
|
74
80
|
lazyShortcut({
|
|
75
81
|
name: "hrm",
|
|
76
82
|
description: "\u6CDB\u5FAEE10\u7EC4\u7EC7\u7BA1\u7406\uFF08\u5458\u5DE5/\u7EC4\u7EC7/\u5C97\u4F4D\u67E5\u8BE2\uFF09CLI",
|
|
77
|
-
load: async () => (await import("./chunks/hrm-
|
|
83
|
+
load: async () => (await import("./chunks/hrm-NRDO4W5G.js")).hrmShortcut
|
|
78
84
|
}),
|
|
79
85
|
lazyShortcut({
|
|
80
86
|
name: "mail",
|
|
81
87
|
description: "\u6CDB\u5FAEE10\u90AE\u4EF6\u7BA1\u7406 CLI",
|
|
82
|
-
load: async () => (await import("./chunks/mail-
|
|
88
|
+
load: async () => (await import("./chunks/mail-ZVAUXOJA.js")).mailShortcut
|
|
83
89
|
}),
|
|
84
90
|
lazyShortcut({
|
|
85
91
|
name: "meeting",
|
|
86
92
|
description: "\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406 CLI\uFF08\u6807\u51C6\u7248\uFF1A\u67E5\u8BE2/\u51B2\u7A81/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09",
|
|
87
|
-
load: async () => (await import("./chunks/meeting-
|
|
93
|
+
load: async () => (await import("./chunks/meeting-FEVPZ67S.js")).meetingShortcut
|
|
88
94
|
}),
|
|
89
95
|
lazyShortcut({
|
|
90
96
|
name: "okr",
|
|
91
97
|
description: "\u6CDB\u5FAEE10 OKR \u76EE\u6807\u7BA1\u7406 CLI\uFF08\u76EE\u6807\u67E5\u8BE2/\u65B0\u5EFA/\u7F16\u8F91\u3001\u5173\u952E\u6210\u679C\u3001\u76EE\u6807\u5BF9\u9F50\u3001\u8BC4\u8BBA\uFF09",
|
|
92
|
-
load: async () => (await import("./chunks/okr-
|
|
98
|
+
load: async () => (await import("./chunks/okr-SDH3E5RA.js")).okrShortcut
|
|
93
99
|
}),
|
|
94
100
|
lazyShortcut({
|
|
95
101
|
name: "plan",
|
|
96
102
|
description: "\u6CDB\u5FAEE10\u8BA1\u5212\u62A5\u544A CLI\uFF08\u67E5\u8BE2/\u65B0\u5EFA/\u4FEE\u6539/\u53D1\u5E03/\u64A4\u56DE/\u63D0\u4EA4\u63D0\u9192/\u8BC4\u8BBA\uFF09",
|
|
97
|
-
load: async () => (await import("./chunks/plan-
|
|
103
|
+
load: async () => (await import("./chunks/plan-E35JFDI7.js")).planShortcut
|
|
98
104
|
}),
|
|
99
105
|
lazyShortcut({
|
|
100
106
|
name: "esb",
|
|
101
107
|
description: "\u6CDB\u5FAEE10 ESB \u4E2D\u5FC3\u81EA\u5B9A\u4E49\u89E6\u53D1\u52A8\u4F5C\u6D41 CLI",
|
|
102
|
-
load: async () => (await import("./chunks/esb-
|
|
108
|
+
load: async () => (await import("./chunks/esb-ATAIASX2.js")).esbShortcut
|
|
103
109
|
}),
|
|
104
110
|
lazyShortcut({
|
|
105
111
|
name: "ebuilder-form",
|
|
106
112
|
description: "\u6CDB\u5FAEE10 eBuilder \u8868\u5355\u83DC\u5355\u3001\u5217\u8868\u548C\u8868\u5355\u6570\u636E CLI",
|
|
107
|
-
load: async () => (await import("./chunks/ebuilder-form-
|
|
113
|
+
load: async () => (await import("./chunks/ebuilder-form-ANV2FHYV.js")).ebuilderFormShortcut
|
|
108
114
|
}),
|
|
109
115
|
lazyShortcut({
|
|
110
116
|
name: "jiuchuanhui",
|
|
111
117
|
description: "\u6CDB\u5FAEE10\u4E5D\u6C1A\u6C47\u8425\u9500\u7BA1\u7406 CLI\uFF08\u5BA2\u6237/\u8054\u7CFB\u4EBA/\u5546\u673A/\u7EBF\u7D22/\u8054\u7CFB\u8BA1\u5212/\u516C\u6D77\uFF09",
|
|
112
|
-
load: async () => (await import("./chunks/jiuchuanhui-
|
|
118
|
+
load: async () => (await import("./chunks/jiuchuanhui-DTRBAX4N.js")).jiuchuanhuiShortcut
|
|
113
119
|
}),
|
|
114
120
|
lazyShortcut({
|
|
115
121
|
name: "asset",
|
|
116
122
|
description: "E10 \u8D44\u4EA7\u7BA1\u7406\uFF08\u8D44\u7BA1\u5BB6\uFF09CLI",
|
|
117
|
-
load: async () => (await import("./chunks/asset-
|
|
123
|
+
load: async () => (await import("./chunks/asset-3ELRG37G.js")).assetShortcut
|
|
118
124
|
}),
|
|
119
125
|
lazyShortcut({
|
|
120
126
|
name: "asset-idle",
|
|
121
127
|
description: "E10 \u95F2\u7F6E\u8D44\u4EA7\u5224\u5B9A\u7ED3\u679C\u67E5\u8BE2 CLI\uFF08\u5206\u9875\u83B7\u53D6/\u805A\u5408\u7EDF\u8BA1\uFF09",
|
|
122
|
-
load: async () => (await import("./chunks/asset-idle-
|
|
128
|
+
load: async () => (await import("./chunks/asset-idle-WIGMUFMD.js")).assetIdleShortcut
|
|
123
129
|
}),
|
|
124
130
|
lazyShortcut({
|
|
125
131
|
name: "im",
|
|
126
132
|
description: "\u6CDB\u5FAEE10\u6613\u79D2\u529E\uFF08\u5373\u65F6\u901A\u8BAF\uFF09CLI",
|
|
127
|
-
load: async () => (await import("./chunks/im-
|
|
133
|
+
load: async () => (await import("./chunks/im-IQ2HN23S.js")).imShortcut
|
|
128
134
|
}),
|
|
129
135
|
lazyShortcut({
|
|
130
136
|
name: "project",
|
|
131
137
|
description: "\u6CDB\u5FAEE10\u4E8B\u4E95\u7136\u9879\u76EE\u7BA1\u7406 CLI\uFF08\u9879\u76EE/\u4EFB\u52A1\u67E5\u8BE2\u4E0E\u786E\u8BA4\u5199\u5165\uFF09",
|
|
132
|
-
load: async () => (await import("./chunks/project-
|
|
138
|
+
load: async () => (await import("./chunks/project-73QXBAB2.js")).projectShortcut
|
|
133
139
|
}),
|
|
134
140
|
lazyShortcut({
|
|
135
141
|
name: "workflow",
|
|
136
142
|
description: "\u6CDB\u5FAEE10\u6D41\u7A0B\u667A\u80FD\u52A9\u624B CLI\uFF08\u67E5\u8BE2/\u67E5\u770B/\u64CD\u4F5C/\u6279\u91CF/\u53D1\u8D77/\u4FEE\u6539\uFF09",
|
|
137
|
-
load: async () => (await import("./chunks/workflow-
|
|
143
|
+
load: async () => (await import("./chunks/workflow-CWJFJLQU.js")).workflowShortcut
|
|
138
144
|
}),
|
|
139
145
|
lazyShortcut({
|
|
140
146
|
name: "blog",
|
|
141
147
|
description: "\u6CDB\u5FAEE10\u5DE5\u4F5C\u65E5\u62A5 CLI\uFF08\u67E5\u8BE2/\u53D1\u5E03/\u7F16\u8F91/\u8BC4\u8BBA/\u70B9\u8D5E/\u63D0\u9192/\u5BFC\u51FA\uFF09",
|
|
142
|
-
load: async () => (await import("./chunks/blog-
|
|
148
|
+
load: async () => (await import("./chunks/blog-C5NMZAAC.js")).blogShortcut
|
|
143
149
|
}),
|
|
144
150
|
lazyShortcut({
|
|
145
151
|
name: "caizhilian",
|
|
146
152
|
description: "\u6CDB\u5FAEE10\u91C7\u77E5\u8FDE\uFF08\u6587\u6863\u4E2D\u5FC3\uFF09CLI",
|
|
147
|
-
load: async () => (await import("./chunks/caizhilian-
|
|
153
|
+
load: async () => (await import("./chunks/caizhilian-5XSM2DFP.js")).caizhilianShortcut
|
|
148
154
|
}),
|
|
149
155
|
lazyShortcut({
|
|
150
156
|
name: "contract",
|
|
151
157
|
description: "\u6CDB\u5FAEE10\u4ECA\u627F\u8FBE\u5408\u540C\u7BA1\u7406 CLI",
|
|
152
|
-
load: async () => (await import("./chunks/contract-
|
|
158
|
+
load: async () => (await import("./chunks/contract-DNIIW5VJ.js")).contractShortcut
|
|
159
|
+
}),
|
|
160
|
+
lazyShortcut({
|
|
161
|
+
name: "reception",
|
|
162
|
+
description: "\u6CDB\u5FAE\u5BA2\u6237\u53C2\u89C2\u63A5\u5F85\u6D41\u7A0B CLI\uFF08\u9762\u677F/\u884C\u7A0B\u5355\u4E0E\u5185\u90E8\u65B9\u6848/\u586B\u5355\u9875\u9884\u586B\uFF09",
|
|
163
|
+
load: async () => (await import("./chunks/reception-UWZVACBN.js")).receptionShortcut
|
|
153
164
|
})
|
|
154
165
|
];
|
|
155
166
|
function shortcutMetadata() {
|