weaver-work-cli 0.1.42 → 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-J4I6MCKF.js → archive-P6TBQGKL.js} +13 -5
- package/dist/chunks/{archive-oa-BRZKKTO4.js → archive-oa-7TQ2NXOH.js} +12 -5
- package/dist/chunks/{asset-L7D4FAOZ.js → asset-3ELRG37G.js} +11 -4
- package/dist/chunks/{asset-idle-DADLLV75.js → asset-idle-WIGMUFMD.js} +7 -3
- package/dist/chunks/{attachment-content-K4C7VLWQ.js → attachment-content-E3276UOV.js} +5 -4
- package/dist/chunks/{blog-BVGQ7NZL.js → blog-C5NMZAAC.js} +11 -4
- package/dist/chunks/{caizhilian-SAADNFD6.js → caizhilian-5XSM2DFP.js} +13 -6
- package/dist/chunks/{calendar-Q7NQY5Z2.js → calendar-FI2WNSBO.js} +12 -5
- package/dist/chunks/{chunk-YRSZQUD2.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-EKWAQSLU.js → chunk-BCVYBYYT.js} +432 -2248
- package/dist/chunks/{chunk-W7BEHOSR.js → chunk-CWYGFU5B.js} +2 -2
- package/dist/chunks/{chunk-NOODWMCL.js → chunk-D4ADSZ7H.js} +1 -1
- package/dist/chunks/{chunk-SA6VBIHY.js → chunk-ETNJSKMM.js} +214 -16
- package/dist/chunks/{chunk-BBKDXQEC.js → chunk-F4E4EM35.js} +3 -3
- package/dist/chunks/{chunk-IZ7S7QUS.js → chunk-FAZTGX7S.js} +6 -6
- package/dist/chunks/{chunk-NKZRQXST.js → chunk-FRZKBMSW.js} +52 -36
- package/dist/chunks/{chunk-BYBSCN4X.js → chunk-G7PQWD4L.js} +6 -3
- package/dist/chunks/{chunk-GEWYMQME.js → chunk-GAMZLAG2.js} +1 -1
- package/dist/chunks/{chunk-R4CHUSKC.js → chunk-GM6J7Q4B.js} +4 -4
- package/dist/chunks/{chunk-APVFJUQH.js → chunk-GRDRG6HP.js} +3 -3
- package/dist/chunks/{chunk-LDZQPUIA.js → chunk-HIT4Y6OI.js} +1 -1
- package/dist/chunks/{chunk-EZALDOQH.js → chunk-HP7JIYMT.js} +5 -2
- package/dist/chunks/{chunk-LADPYOWC.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-BIPYLLVS.js → chunk-N4M2DDFE.js} +15 -15
- package/dist/chunks/{chunk-QKNKR4RH.js → chunk-OF4S23UB.js} +4 -4
- package/dist/chunks/{chunk-JPRO6ER2.js → chunk-PC7VKEB5.js} +57 -60
- package/dist/chunks/{chunk-4PD5NWAX.js → chunk-PUQS5MWL.js} +2 -2
- package/dist/chunks/{chunk-2LV74IWP.js → chunk-Q4OYAQYH.js} +1 -1
- package/dist/chunks/{chunk-72CKAUAG.js → chunk-QVSWRLLU.js} +7 -5
- package/dist/chunks/{chunk-4RAE6JXP.js → chunk-TA7FXXJD.js} +6 -3
- package/dist/chunks/{chunk-GPMFD4RD.js → chunk-TXUG266F.js} +1 -1
- package/dist/chunks/{chunk-FOAA27U5.js → chunk-UFIT2UU3.js} +16 -4
- 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-G4UR6NXN.js → chunk-WSF4NNMR.js} +3 -3
- package/dist/chunks/chunk-XHK4MDR5.js +2497 -0
- package/dist/chunks/{chunk-3KTFS4IA.js → chunk-XNIK66I4.js} +19 -9
- 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-GHXCDPTM.js → chunk-Z7VYWPZV.js} +1 -1
- package/dist/chunks/{conflict-F2OMZRTO.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-5BETHRSG.js → contract-DNIIW5VJ.js} +13 -5
- package/dist/chunks/{cowork-3MN6EQQO.js → cowork-GMLRGVIW.js} +11 -4
- package/dist/chunks/{create-flow-5FQNNMVO.js → create-flow-J22BO65E.js} +8 -7
- package/dist/chunks/{ebuilder-form-SBHOYBUD.js → ebuilder-form-ANV2FHYV.js} +12 -7
- package/dist/chunks/{ehr-KMOJULKG.js → ehr-GSTGAIY3.js} +266 -24
- package/dist/chunks/{employee-SAK2QYXX.js → employee-22BGJ3QS.js} +3 -3
- package/dist/chunks/{env-LB7NBL2O.js → env-BX3VRFS7.js} +4 -3
- package/dist/chunks/{esb-W2PJCFCX.js → esb-ATAIASX2.js} +12 -7
- package/dist/chunks/{factory-6ZFQXQ46.js → factory-PETTFME6.js} +3 -2
- package/dist/chunks/{fna-ZQPCUV4R.js → fna-YEKBSFSX.js} +14 -8
- package/dist/chunks/{group-chat-2HHAJN46.js → group-chat-BFVXAYFX.js} +5 -4
- package/dist/chunks/{host-ATKVNZAT.js → host-HRBXEPDQ.js} +5 -5
- package/dist/chunks/{host-BQH22NTQ.js → host-LR55CTHP.js} +5 -5
- package/dist/chunks/{host-X2CSLFM6.js → host-SUOY6VYQ.js} +5 -5
- package/dist/chunks/{host-4CBHGOHT.js → host-SZGV4UNT.js} +5 -5
- package/dist/chunks/{host-YTODKMSL.js → host-WIKN2EJ5.js} +5 -5
- package/dist/chunks/{hrm-FFM4UJFS.js → hrm-NRDO4W5G.js} +11 -7
- package/dist/chunks/{im-VEHKDQPB.js → im-IQ2HN23S.js} +8 -7
- package/dist/chunks/{invoice-LVIKSIIF.js → invoice-MNRW76PP.js} +636 -1768
- package/dist/chunks/{jiuchuanhui-X6DINO5P.js → jiuchuanhui-DTRBAX4N.js} +14 -6
- package/dist/chunks/{lazy-dispatch-KSWTN5L6.js → lazy-dispatch-ZVWAI25B.js} +7 -6
- package/dist/chunks/{mail-VDKRGUD3.js → mail-ZVAUXOJA.js} +16 -14
- package/dist/chunks/{meeting-CLC6HP3Z.js → meeting-FEVPZ67S.js} +21 -14
- package/dist/chunks/{okr-CHG4OO3U.js → okr-SDH3E5RA.js} +12 -5
- package/dist/chunks/{operations-5QL3AECO.js → operations-62N6EP3C.js} +4 -3
- package/dist/chunks/{plan-XWR75667.js → plan-E35JFDI7.js} +12 -5
- package/dist/chunks/{project-5BXOOKMG.js → project-73QXBAB2.js} +11 -4
- package/dist/chunks/reception-UWZVACBN.js +1899 -0
- package/dist/chunks/{recruit-stage-DGMFNNDE.js → recruit-stage-4MAOCKFY.js} +320 -57
- package/dist/chunks/registry-IM5G23LS.js +24 -0
- package/dist/chunks/{registry-RHMW6ANW.js → registry-JDUS4E7D.js} +7 -6
- package/dist/chunks/{registry-7FFOXIAW.js → registry-KNKSCJNT.js} +7 -6
- package/dist/chunks/{registry-Z43434VG.js → registry-PO7SI256.js} +4 -4
- package/dist/chunks/{registry-OZSMDVPP.js → registry-PVUZQDDQ.js} +3 -3
- package/dist/chunks/{room-recommend-62H7ZQQ6.js → room-recommend-H7KLXA5R.js} +6 -5
- package/dist/chunks/{schedule-FNXKH3DQ.js → schedule-ESZIBAUO.js} +6 -5
- package/dist/chunks/{workflow-ADHKCAJK.js → workflow-CWJFJLQU.js} +13 -8
- package/dist/cmd/action.js +6 -0
- package/dist/cmd/identity/index.js +45 -0
- package/dist/cmd/index.js +2 -0
- package/dist/core/continuation-ttl.js +18 -0
- package/dist/core/error-codes.js +85 -0
- package/dist/core/logger.js +11 -0
- package/dist/index.js +37 -31
- package/dist/internal/e10/auth/commands.js +163 -8
- package/dist/internal/e10/auth/error-log.js +182 -0
- package/dist/internal/e10/auth/session.js +17 -3
- package/dist/internal/e10/auth-recovery.js +39 -12
- package/dist/internal/e10/context.js +17 -2
- 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/write.js +1 -1
- 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/ebuilder-form/continuation.js +2 -1
- package/dist/shortcuts/ebuilder-form/index.js +2 -0
- package/dist/shortcuts/ebuilder-form/operations/write.js +3 -2
- package/dist/shortcuts/ehr/continuation.js +2 -1
- package/dist/shortcuts/ehr/index.js +2 -0
- package/dist/shortcuts/ehr/operations/attend-write.js +1 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +182 -3
- package/dist/shortcuts/ehr/operations/recruit-position.js +134 -2
- package/dist/shortcuts/ehr/operations/recruit-write.js +1 -1
- 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/im/continuation.js +2 -1
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/continuation.js +2 -1
- package/dist/shortcuts/invoice/index.js +14 -15
- package/dist/shortcuts/invoice/invoice-record.js +93 -0
- package/dist/shortcuts/invoice/manifest.js +190 -393
- package/dist/shortcuts/invoice/operations/add.js +2 -1
- package/dist/shortcuts/invoice/operations/delete.js +2 -1
- package/dist/shortcuts/invoice/operations/import.js +2 -1
- package/dist/shortcuts/invoice/operations/issuing-contract-detail.js +86 -0
- package/dist/shortcuts/invoice/operations/issuing-contracts.js +210 -0
- package/dist/shortcuts/invoice/operations/registry.js +17 -17
- package/dist/shortcuts/invoice/operations/reim-auto.js +4 -569
- package/dist/shortcuts/invoice/operations/reim.js +52 -341
- package/dist/shortcuts/invoice/operations/shared.js +21 -4
- package/dist/shortcuts/invoice/operations/update.js +2 -1
- package/dist/shortcuts/invoice/projection.js +10 -62
- package/dist/shortcuts/jiuchuanhui/continuation.js +2 -1
- package/dist/shortcuts/jiuchuanhui/index.js +2 -0
- package/dist/shortcuts/jiuchuanhui/operations/datajson.js +2 -1
- package/dist/shortcuts/jiuchuanhui/operations/esb.js +2 -1
- package/dist/shortcuts/mail/continuation.js +2 -1
- package/dist/shortcuts/mail/index.js +2 -0
- package/dist/shortcuts/mail/operations/mail-blacklist.js +1 -1
- package/dist/shortcuts/mail/operations/mail-contacts.js +1 -1
- package/dist/shortcuts/mail/operations/mail-send.js +1 -1
- package/dist/shortcuts/mail/operations/mail-sign.js +1 -1
- package/dist/shortcuts/mail/operations/mail-template.js +1 -1
- package/dist/shortcuts/meeting/continuation.js +2 -1
- package/dist/shortcuts/meeting/index.js +2 -0
- package/dist/shortcuts/meeting/operations/change.js +1 -1
- package/dist/shortcuts/meeting/operations/create.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +16 -7
- package/dist/shortcuts/meeting/operations/eb/decision.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/factory.js +1 -1
- 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/reception/constants.js +53 -0
- package/dist/shortcuts/reception/errors.js +54 -0
- package/dist/shortcuts/reception/host.js +125 -0
- package/dist/shortcuts/reception/index.js +198 -0
- package/dist/shortcuts/reception/manifest.js +177 -0
- package/dist/shortcuts/reception/operations/ask.js +71 -0
- package/dist/shortcuts/reception/operations/browsertool.js +58 -0
- package/dist/shortcuts/reception/operations/compose.js +129 -0
- package/dist/shortcuts/reception/operations/customparams.js +74 -0
- package/dist/shortcuts/reception/operations/doc.js +238 -0
- package/dist/shortcuts/reception/operations/docrender.js +36 -0
- package/dist/shortcuts/reception/operations/panels.js +179 -0
- package/dist/shortcuts/reception/operations/registry.js +26 -0
- package/dist/shortcuts/reception/operations/render-assets.js +184 -0
- package/dist/shortcuts/reception/operations/render.js +123 -0
- package/dist/shortcuts/reception/operations/runs.js +38 -0
- package/dist/shortcuts/reception/operations/schedule.js +127 -0
- package/dist/shortcuts/reception/operations/shared.js +196 -0
- package/dist/shortcuts/reception/operations/snapshot.js +68 -0
- package/dist/shortcuts/reception/operations/types.js +1 -0
- package/dist/shortcuts/reception/operations.js +33 -0
- package/dist/shortcuts/reception/upload.js +218 -0
- package/dist/shortcuts/recruit-stage/context.js +145 -33
- package/dist/shortcuts/recruit-stage/continuation.js +2 -1
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +106 -17
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +166 -10
- 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/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 +16 -0
- package/docs/ehr.md +2 -2
- package/docs/esb.md +1 -1
- package/docs/im.md +1 -1
- package/docs/invoice.md +8 -12
- package/docs/okr.md +1 -1
- package/docs/reception.md +119 -0
- package/package.json +1 -1
- package/scripts/clean.mjs +43 -2
- package/skill-template/business-info.json +18 -2
- package/skill-template/domains/caizhilian.md +1 -1
- package/skill-template/domains/reception-flow.md +18 -0
- package/skill-template/domains/yepiaotong.md +4 -7
- package/skills/weaver-e10-archive-oa/references/source-manifest.json +14 -14
- package/skills/weaver-e10-blog/references/blog-publish.md +1 -1
- package/skills/weaver-e10-blog/references/source-manifest.json +7 -7
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +21 -21
- package/skills/weaver-e10-caizhilian/references/write-protocol.md +2 -2
- package/skills/weaver-e10-calendar/references/calendar-write.md +1 -1
- package/skills/weaver-e10-cowork/SKILL.md +1 -1
- package/skills/weaver-e10-ebuilder-form/SKILL.md +1 -1
- package/skills/weaver-e10-ebuilder-form/references/custom-api.md +1 -1
- package/skills/weaver-e10-ebuilder-form/references/openapi-write.md +1 -1
- package/skills/weaver-e10-esb/SKILL.md +2 -2
- package/skills/weaver-e10-esb/references/source-manifest.json +22 -22
- package/skills/weaver-e10-esb/references/trigger.md +2 -2
- package/skills/weaver-e10-jinchengda/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 +2 -2
- package/skills/weaver-e10-jucailin/references/recruit-create.md +12 -3
- package/skills/weaver-e10-jucailin/references/recruit-write.md +1 -1
- package/skills/weaver-e10-meeting/SKILL.md +8 -6
- 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 +9 -5
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +1 -1
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +202 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +22 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +14 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +6 -0
- package/skills/weaver-e10-shijingran/SKILL.md +5 -5
- package/skills/weaver-e10-shijingran/references/source-manifest.json +37 -36
- package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +2 -0
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/references/source-manifest.json +32 -32
- package/skills/weaver-e10-yepiaotong/SKILL.md +19 -26
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +13 -10
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +194 -155
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +28 -32
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +5 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +8 -10
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +211 -616
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +149 -117
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +17 -20
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +20 -39
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +55 -22
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +7 -17
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +88 -92
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +144 -354
- package/skills/weaver-e10-yimiaoban/SKILL.md +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-TTPJJJC4.js +0 -465
- package/dist/chunks/registry-BKBZPBAJ.js +0 -23
- package/dist/shortcuts/invoice/markdown.js +0 -172
- package/dist/shortcuts/invoice/operations/issuing-qys.js +0 -424
- package/skills/weaver-e10-meeting.zip +0 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +0 -131
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-form-fill-rules.md +0 -179
package/README.md
CHANGED
|
@@ -256,6 +256,23 @@ Node 客户端会话路径时还会输出明确的尝试日志。统一登录成
|
|
|
256
256
|
`credentialSourceLabel`、`expiryTimes`,可据此确认实际凭证来源;`3 / xiaoe_client / XiaoE client settings`
|
|
257
257
|
表示未依赖 `tokens.py`,由 Node 直接换票。
|
|
258
258
|
|
|
259
|
+
`auth xiaoe` 显式登录失败,或业务命令静默重新获取 XiaoE 登录信息失败时,CLI 会把
|
|
260
|
+
脱敏后的诊断追加到 CLI 自己的认证日志中。日志不写入 Cookie、ETEAMSID、Token 或任意
|
|
261
|
+
服务端原始响应详情,文件权限在支持 POSIX 权限的平台上固定为 `0600`。可用以下命令查看
|
|
262
|
+
最近记录、定位文件或清理日志:
|
|
263
|
+
|
|
264
|
+
```text
|
|
265
|
+
weaver-work-cli auth logs
|
|
266
|
+
weaver-work-cli auth logs show --limit 100
|
|
267
|
+
weaver-work-cli --json auth logs show --limit 100
|
|
268
|
+
weaver-work-cli auth logs path
|
|
269
|
+
weaver-work-cli auth logs clear
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
`auth logs` 与 `auth logs show` 等价,默认按时间倒序显示最近 50 条,`--limit` 可取
|
|
273
|
+
1–500。日志采用 JSON Lines 格式;清理命令只删除这一份固定的 XiaoE 认证错误日志,
|
|
274
|
+
不会删除 profile 或登录态。
|
|
275
|
+
|
|
259
276
|
默认本地回调地址为 `http://127.0.0.1:19800/callback`。如果端口被占用:
|
|
260
277
|
|
|
261
278
|
```text
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
reportPlatformError
|
|
5
|
+
} from "./chunk-6N4JPNFL.js";
|
|
6
|
+
import {
|
|
7
|
+
CONTINUATION_TTL_MS
|
|
8
|
+
} from "./chunk-7BDPM5ST.js";
|
|
3
9
|
import {
|
|
4
10
|
E10ApiError,
|
|
5
11
|
createE10RequestRuntime,
|
|
6
12
|
isE10SessionExpiredResponse,
|
|
7
13
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ETNJSKMM.js";
|
|
9
15
|
import {
|
|
10
16
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
17
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UFIT2UU3.js";
|
|
13
19
|
import {
|
|
14
20
|
CliError,
|
|
15
21
|
isCliError,
|
|
16
22
|
toErrorEnvelope
|
|
17
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UG5G54VL.js";
|
|
18
24
|
import "./chunk-BUSC6UAE.js";
|
|
19
25
|
|
|
20
26
|
// src/shortcuts/archive/index.ts
|
|
@@ -420,7 +426,7 @@ function signature(payload, key) {
|
|
|
420
426
|
}
|
|
421
427
|
function createArchiveContinuationSigner(ctx) {
|
|
422
428
|
return {
|
|
423
|
-
async issue(payload, ttlMs =
|
|
429
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
424
430
|
const issuedAt = Date.now();
|
|
425
431
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
426
432
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -833,7 +839,7 @@ function requireConfirm(args, action) {
|
|
|
833
839
|
});
|
|
834
840
|
}
|
|
835
841
|
}
|
|
836
|
-
async function issueLease(env, action, payload, ttlMs =
|
|
842
|
+
async function issueLease(env, action, payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
837
843
|
const session = await env.host.getSession();
|
|
838
844
|
const continuation = await env.continuation.issue(
|
|
839
845
|
{
|
|
@@ -2839,6 +2845,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
2839
2845
|
});
|
|
2840
2846
|
ctx.output.write(successEnvelope(result), { json: true });
|
|
2841
2847
|
} catch (error) {
|
|
2848
|
+
reportPlatformError(error);
|
|
2842
2849
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
2843
2850
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
2844
2851
|
}
|
|
@@ -2878,6 +2885,7 @@ async function executeSearchPrint(ctx, input, format, outputPath) {
|
|
|
2878
2885
|
}
|
|
2879
2886
|
ctx.output.raw(formatSearchText(rows, meta));
|
|
2880
2887
|
} catch (error) {
|
|
2888
|
+
reportPlatformError(error);
|
|
2881
2889
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
2882
2890
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
2883
2891
|
}
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
reportPlatformError
|
|
5
|
+
} from "./chunk-6N4JPNFL.js";
|
|
6
|
+
import {
|
|
7
|
+
CONTINUATION_TTL_MS
|
|
8
|
+
} from "./chunk-7BDPM5ST.js";
|
|
3
9
|
import {
|
|
4
10
|
E10ApiError,
|
|
5
11
|
createE10RequestRuntime,
|
|
6
12
|
isE10SessionExpiredResponse,
|
|
7
13
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ETNJSKMM.js";
|
|
9
15
|
import {
|
|
10
16
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
17
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UFIT2UU3.js";
|
|
13
19
|
import {
|
|
14
20
|
CliError,
|
|
15
21
|
isCliError,
|
|
16
22
|
toErrorEnvelope
|
|
17
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UG5G54VL.js";
|
|
18
24
|
import "./chunk-BUSC6UAE.js";
|
|
19
25
|
|
|
20
26
|
// src/shortcuts/archive-oa/index.ts
|
|
@@ -109,7 +115,7 @@ function signature(payload, key) {
|
|
|
109
115
|
}
|
|
110
116
|
function createArchiveOaContinuationSigner(ctx) {
|
|
111
117
|
return {
|
|
112
|
-
async issue(payload, ttlMs =
|
|
118
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
113
119
|
const issuedAt = Date.now();
|
|
114
120
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
115
121
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -532,7 +538,7 @@ function requireConfirm(args, action) {
|
|
|
532
538
|
});
|
|
533
539
|
}
|
|
534
540
|
}
|
|
535
|
-
async function issueLease(env, action, payload, ttlMs =
|
|
541
|
+
async function issueLease(env, action, payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
536
542
|
const session = await env.host.getSession();
|
|
537
543
|
const continuation = await env.continuation.issue(
|
|
538
544
|
{
|
|
@@ -1235,6 +1241,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1235
1241
|
});
|
|
1236
1242
|
ctx.output.write(successEnvelope(result), { json: true });
|
|
1237
1243
|
} catch (error) {
|
|
1244
|
+
reportPlatformError(error);
|
|
1238
1245
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
1239
1246
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1240
1247
|
}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
reportPlatformError
|
|
5
|
+
} from "./chunk-6N4JPNFL.js";
|
|
6
|
+
import {
|
|
7
|
+
CONTINUATION_TTL_MS
|
|
8
|
+
} from "./chunk-7BDPM5ST.js";
|
|
3
9
|
import {
|
|
4
10
|
createE10RequestRuntime,
|
|
5
11
|
isE10SessionExpiredResponse,
|
|
6
12
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ETNJSKMM.js";
|
|
8
14
|
import {
|
|
9
15
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
16
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UFIT2UU3.js";
|
|
12
18
|
import {
|
|
13
19
|
CliError,
|
|
14
20
|
isCliError,
|
|
15
21
|
toErrorEnvelope
|
|
16
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UG5G54VL.js";
|
|
17
23
|
import "./chunk-BUSC6UAE.js";
|
|
18
24
|
|
|
19
25
|
// src/shortcuts/asset/index.ts
|
|
@@ -103,7 +109,7 @@ function signature(payload, key) {
|
|
|
103
109
|
}
|
|
104
110
|
function createZiguanjiaContinuationSigner(ctx) {
|
|
105
111
|
return {
|
|
106
|
-
async issue(payload, ttlMs =
|
|
112
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
107
113
|
const issuedAt = Date.now();
|
|
108
114
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
109
115
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -1995,6 +2001,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1995
2001
|
});
|
|
1996
2002
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
1997
2003
|
} catch (error) {
|
|
2004
|
+
reportPlatformError(error);
|
|
1998
2005
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
1999
2006
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
2000
2007
|
}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
reportPlatformError
|
|
5
|
+
} from "./chunk-6N4JPNFL.js";
|
|
3
6
|
import {
|
|
4
7
|
E10ApiError,
|
|
5
8
|
createE10RequestRuntime,
|
|
6
9
|
isE10SessionExpiredResponse,
|
|
7
10
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ETNJSKMM.js";
|
|
9
12
|
import {
|
|
10
13
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
14
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UFIT2UU3.js";
|
|
13
16
|
import {
|
|
14
17
|
CliError,
|
|
15
18
|
isCliError,
|
|
16
19
|
toErrorEnvelope
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UG5G54VL.js";
|
|
18
21
|
import "./chunk-BUSC6UAE.js";
|
|
19
22
|
|
|
20
23
|
// src/shortcuts/asset-idle/index.ts
|
|
@@ -645,6 +648,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
645
648
|
});
|
|
646
649
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
647
650
|
} catch (error) {
|
|
651
|
+
reportPlatformError(error);
|
|
648
652
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
649
653
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
650
654
|
}
|
|
@@ -8,10 +8,11 @@ import {
|
|
|
8
8
|
looksLikeFileId,
|
|
9
9
|
meetingAttachmentContentOperations,
|
|
10
10
|
parseFileIdList
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-CWYGFU5B.js";
|
|
12
|
+
import "./chunk-GAMZLAG2.js";
|
|
13
|
+
import "./chunk-QVSWRLLU.js";
|
|
14
|
+
import "./chunk-7BDPM5ST.js";
|
|
15
|
+
import "./chunk-UG5G54VL.js";
|
|
15
16
|
import "./chunk-BUSC6UAE.js";
|
|
16
17
|
export {
|
|
17
18
|
downloadMeetingFile,
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
reportPlatformError
|
|
5
|
+
} from "./chunk-6N4JPNFL.js";
|
|
6
|
+
import {
|
|
7
|
+
CONTINUATION_TTL_MS
|
|
8
|
+
} from "./chunk-7BDPM5ST.js";
|
|
3
9
|
import {
|
|
4
10
|
createE10RequestRuntime,
|
|
5
11
|
isE10SessionExpiredResponse,
|
|
6
12
|
requireE10Session
|
|
7
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ETNJSKMM.js";
|
|
8
14
|
import {
|
|
9
15
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
10
16
|
getActiveProfile
|
|
11
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UFIT2UU3.js";
|
|
12
18
|
import {
|
|
13
19
|
CliError,
|
|
14
20
|
isCliError,
|
|
15
21
|
toErrorEnvelope
|
|
16
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UG5G54VL.js";
|
|
17
23
|
import "./chunk-BUSC6UAE.js";
|
|
18
24
|
|
|
19
25
|
// src/shortcuts/blog/index.ts
|
|
@@ -113,7 +119,7 @@ function signature(payload, key) {
|
|
|
113
119
|
}
|
|
114
120
|
function createBlogContinuationSigner(ctx) {
|
|
115
121
|
return {
|
|
116
|
-
async issue(payload, ttlMs =
|
|
122
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
117
123
|
const issuedAt = Date.now();
|
|
118
124
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
119
125
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -1968,6 +1974,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1968
1974
|
});
|
|
1969
1975
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
1970
1976
|
} catch (error) {
|
|
1977
|
+
reportPlatformError(error);
|
|
1971
1978
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
1972
1979
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1973
1980
|
}
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
reportPlatformError
|
|
5
|
+
} from "./chunk-6N4JPNFL.js";
|
|
6
|
+
import {
|
|
7
|
+
CONTINUATION_TTL_MS
|
|
8
|
+
} from "./chunk-7BDPM5ST.js";
|
|
3
9
|
import {
|
|
4
10
|
E10ApiError,
|
|
5
11
|
createE10RequestRuntime,
|
|
6
12
|
isE10SessionExpiredResponse,
|
|
7
13
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ETNJSKMM.js";
|
|
9
15
|
import {
|
|
10
16
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
17
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UFIT2UU3.js";
|
|
13
19
|
import {
|
|
14
20
|
CliError,
|
|
15
21
|
isCliError,
|
|
16
22
|
toErrorEnvelope
|
|
17
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UG5G54VL.js";
|
|
18
24
|
import "./chunk-BUSC6UAE.js";
|
|
19
25
|
|
|
20
26
|
// src/shortcuts/caizhilian/index.ts
|
|
@@ -102,7 +108,7 @@ function signature(payload, key) {
|
|
|
102
108
|
}
|
|
103
109
|
function createCaizhilianContinuationSigner(ctx) {
|
|
104
110
|
return {
|
|
105
|
-
async issue(payload, ttlMs =
|
|
111
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
106
112
|
const issuedAt = Date.now();
|
|
107
113
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
108
114
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -642,7 +648,7 @@ function requireConfirm(args, action) {
|
|
|
642
648
|
});
|
|
643
649
|
}
|
|
644
650
|
}
|
|
645
|
-
async function issueLease(env, action, payload, ttlMs =
|
|
651
|
+
async function issueLease(env, action, payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
646
652
|
const session = await env.host.getSession();
|
|
647
653
|
const continuation = await env.continuation.issue(
|
|
648
654
|
{
|
|
@@ -691,7 +697,7 @@ function leaseArgsFingerprint(args) {
|
|
|
691
697
|
}
|
|
692
698
|
return fingerprint(picked);
|
|
693
699
|
}
|
|
694
|
-
async function issueWriteLease(env, action, args, payload, ttlMs =
|
|
700
|
+
async function issueWriteLease(env, action, args, payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
695
701
|
return issueLease(env, action, { ...payload, argsFingerprint: leaseArgsFingerprint(args) }, ttlMs);
|
|
696
702
|
}
|
|
697
703
|
function assertLeaseArgs(lease, args, action) {
|
|
@@ -9988,6 +9994,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
9988
9994
|
});
|
|
9989
9995
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
9990
9996
|
} catch (error) {
|
|
9997
|
+
reportPlatformError(error);
|
|
9991
9998
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
9992
9999
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
9993
10000
|
}
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
reportPlatformError
|
|
5
|
+
} from "./chunk-6N4JPNFL.js";
|
|
6
|
+
import {
|
|
7
|
+
CONTINUATION_TTL_MS,
|
|
8
|
+
CONTINUATION_TTL_SECONDS
|
|
9
|
+
} from "./chunk-7BDPM5ST.js";
|
|
3
10
|
import {
|
|
4
11
|
E10ApiError,
|
|
5
12
|
createE10RequestRuntime,
|
|
6
13
|
isE10SessionExpiredResponse,
|
|
7
14
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ETNJSKMM.js";
|
|
9
16
|
import {
|
|
10
17
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
18
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UFIT2UU3.js";
|
|
13
20
|
import {
|
|
14
21
|
CliError,
|
|
15
22
|
isCliError,
|
|
16
23
|
toErrorEnvelope
|
|
17
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UG5G54VL.js";
|
|
18
25
|
import "./chunk-BUSC6UAE.js";
|
|
19
26
|
|
|
20
27
|
// src/shortcuts/calendar/index.ts
|
|
@@ -109,7 +116,7 @@ function signature(payload, key) {
|
|
|
109
116
|
}
|
|
110
117
|
function createCalendarContinuationSigner(ctx) {
|
|
111
118
|
return {
|
|
112
|
-
async issue(payload, ttlMs =
|
|
119
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
113
120
|
const issuedAt = Date.now();
|
|
114
121
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
115
122
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -595,7 +602,6 @@ function defaultEndTime(startTime) {
|
|
|
595
602
|
}
|
|
596
603
|
|
|
597
604
|
// src/shortcuts/calendar/operations/write.ts
|
|
598
|
-
var CONTINUATION_TTL_SECONDS = 600;
|
|
599
605
|
var OPTIONAL_FIELDS = [
|
|
600
606
|
"next_start_remind",
|
|
601
607
|
"next_end_remind",
|
|
@@ -1202,6 +1208,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1202
1208
|
});
|
|
1203
1209
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
1204
1210
|
} catch (error) {
|
|
1211
|
+
reportPlatformError(error);
|
|
1205
1212
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
1206
1213
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1207
1214
|
}
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
ebuilderBusinessError,
|
|
6
6
|
ebuilderNetworkError,
|
|
7
7
|
ebuilderValidationError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Z3GDFVJR.js";
|
|
9
9
|
import {
|
|
10
10
|
createE10RequestRuntime,
|
|
11
11
|
isE10SessionExpiredResponse,
|
|
12
12
|
requireE10Session
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ETNJSKMM.js";
|
|
14
14
|
import {
|
|
15
15
|
getActiveProfile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UFIT2UU3.js";
|
|
17
17
|
|
|
18
18
|
// src/shortcuts/ebuilder-form/host.ts
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UG5G54VL.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/hrm/errors.ts
|
|
8
8
|
var HrmCliError = class extends CliError {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
isCliError,
|
|
5
|
+
isStructuredError
|
|
6
|
+
} from "./chunk-UG5G54VL.js";
|
|
7
|
+
|
|
8
|
+
// src/core/error-codes.ts
|
|
9
|
+
var MAX_MESSAGE_LENGTH = 500;
|
|
10
|
+
function truncate(value) {
|
|
11
|
+
const flat = value.replace(/\s+/g, " ").trim();
|
|
12
|
+
return flat.length > MAX_MESSAGE_LENGTH ? `${flat.slice(0, MAX_MESSAGE_LENGTH)}\u2026` : flat;
|
|
13
|
+
}
|
|
14
|
+
function httpStatusOf(error) {
|
|
15
|
+
if (!error || typeof error !== "object") return void 0;
|
|
16
|
+
const details = error.details;
|
|
17
|
+
if (!details || typeof details !== "object") return void 0;
|
|
18
|
+
const status = details.httpStatus;
|
|
19
|
+
return typeof status === "number" ? status : void 0;
|
|
20
|
+
}
|
|
21
|
+
function codeFromStructured(type, subtype, httpStatus) {
|
|
22
|
+
if (httpStatus === 403) return "E-0005";
|
|
23
|
+
if (httpStatus === 401) return subtype.includes("expired") ? "E-0002" : "E-0001";
|
|
24
|
+
if (type === "authentication") {
|
|
25
|
+
return /expired|invalid_token|token_expired/u.test(subtype) ? "E-0002" : "E-0001";
|
|
26
|
+
}
|
|
27
|
+
if (type === "permission" || type === "authorization") return "E-0005";
|
|
28
|
+
if (type === "validation" || type === "usage") return "E-0003";
|
|
29
|
+
if (type === "network" || type === "upstream" || type === "http") return "E-0004";
|
|
30
|
+
return "E-9999";
|
|
31
|
+
}
|
|
32
|
+
function codeFromExitCode(exitCode) {
|
|
33
|
+
switch (exitCode) {
|
|
34
|
+
case 2 /* UsageError */:
|
|
35
|
+
return "E-0003";
|
|
36
|
+
case 3 /* AuthError */:
|
|
37
|
+
return "E-0001";
|
|
38
|
+
case 4 /* NetworkError */:
|
|
39
|
+
return "E-0004";
|
|
40
|
+
case 6 /* PolicyError */:
|
|
41
|
+
return "E-0005";
|
|
42
|
+
default:
|
|
43
|
+
return "E-9999";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function toPlatformError(error) {
|
|
47
|
+
if (isStructuredError(error)) {
|
|
48
|
+
const message2 = truncate(error.message || "\u672A\u77E5\u9519\u8BEF");
|
|
49
|
+
return {
|
|
50
|
+
code: codeFromStructured(error.type, error.subtype, httpStatusOf(error)),
|
|
51
|
+
message: message2
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
if (isCliError(error)) {
|
|
55
|
+
return {
|
|
56
|
+
code: codeFromExitCode(error.exitCode),
|
|
57
|
+
message: truncate(error.message || "\u672A\u77E5\u9519\u8BEF")
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
61
|
+
return { code: "E-9999", message: truncate(message || "\u672A\u77E5\u9519\u8BEF") };
|
|
62
|
+
}
|
|
63
|
+
function shouldReportPlatformError(error) {
|
|
64
|
+
if (!isCliError(error)) return true;
|
|
65
|
+
return error.exitCode !== 0 /* Success */ && error.exitCode !== 10 /* ConfirmationRequired */;
|
|
66
|
+
}
|
|
67
|
+
function reportPlatformError(error) {
|
|
68
|
+
if (!shouldReportPlatformError(error)) return;
|
|
69
|
+
process.stderr.write(JSON.stringify(toPlatformError(error)) + "\n");
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export {
|
|
73
|
+
toPlatformError,
|
|
74
|
+
shouldReportPlatformError,
|
|
75
|
+
reportPlatformError
|
|
76
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/core/continuation-ttl.ts
|
|
5
|
+
var CONTINUATION_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
6
|
+
var CONTINUATION_TTL_SECONDS = CONTINUATION_TTL_MS / 1e3;
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
CONTINUATION_TTL_MS,
|
|
10
|
+
CONTINUATION_TTL_SECONDS
|
|
11
|
+
};
|