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
|
@@ -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/jiuchuanhui/index.ts
|
|
@@ -114,7 +121,7 @@ function signature(payload, key) {
|
|
|
114
121
|
}
|
|
115
122
|
function createJiuchuanhuiContinuationSigner(ctx) {
|
|
116
123
|
return {
|
|
117
|
-
async issue(payload, ttlMs =
|
|
124
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
118
125
|
const issuedAt = Date.now();
|
|
119
126
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
120
127
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -1307,7 +1314,7 @@ var DatajsonWritePrepareOperation = class {
|
|
|
1307
1314
|
data: {
|
|
1308
1315
|
preview,
|
|
1309
1316
|
continuation: continuationToken,
|
|
1310
|
-
expiresInSeconds:
|
|
1317
|
+
expiresInSeconds: CONTINUATION_TTL_SECONDS,
|
|
1311
1318
|
workflow: workflow(this.applyOperation, "AWAITING_CONFIRMATION")
|
|
1312
1319
|
}
|
|
1313
1320
|
};
|
|
@@ -1499,7 +1506,7 @@ var EsbWritePrepareOperation = class {
|
|
|
1499
1506
|
data: {
|
|
1500
1507
|
preview,
|
|
1501
1508
|
continuation: continuationToken,
|
|
1502
|
-
expiresInSeconds:
|
|
1509
|
+
expiresInSeconds: CONTINUATION_TTL_SECONDS,
|
|
1503
1510
|
workflow: workflow(this.applyOperation, "AWAITING_CONFIRMATION")
|
|
1504
1511
|
}
|
|
1505
1512
|
};
|
|
@@ -1917,6 +1924,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1917
1924
|
});
|
|
1918
1925
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
1919
1926
|
} catch (error) {
|
|
1927
|
+
reportPlatformError(error);
|
|
1920
1928
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
1921
1929
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1922
1930
|
}
|
|
@@ -5,13 +5,14 @@ import {
|
|
|
5
5
|
createProgram,
|
|
6
6
|
registerCommands,
|
|
7
7
|
toCommandMetadata
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-XHK4MDR5.js";
|
|
9
|
+
import "./chunk-727FH2NI.js";
|
|
10
10
|
import "./chunk-AJ62BGAW.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-BCVYBYYT.js";
|
|
12
|
+
import "./chunk-6N4JPNFL.js";
|
|
13
|
+
import "./chunk-ETNJSKMM.js";
|
|
14
|
+
import "./chunk-UFIT2UU3.js";
|
|
15
|
+
import "./chunk-UG5G54VL.js";
|
|
15
16
|
import "./chunk-BUSC6UAE.js";
|
|
16
17
|
|
|
17
18
|
// src/cmd/lazy-dispatch.ts
|
|
@@ -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/mail/index.ts
|
|
@@ -96,7 +102,7 @@ function signature(payload, key) {
|
|
|
96
102
|
}
|
|
97
103
|
function createMailContinuationSigner(ctx) {
|
|
98
104
|
return {
|
|
99
|
-
async issue(payload, ttlMs =
|
|
105
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
100
106
|
const issuedAt = Date.now();
|
|
101
107
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
102
108
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -839,7 +845,6 @@ var mailReadOperations = [
|
|
|
839
845
|
|
|
840
846
|
// src/shortcuts/mail/operations/mail-send.ts
|
|
841
847
|
import { randomBytes as randomBytes3 } from "node:crypto";
|
|
842
|
-
var CONTINUATION_TTL_MS = 6e5;
|
|
843
848
|
function b64(s) {
|
|
844
849
|
return Buffer.from(s, "utf8").toString("base64");
|
|
845
850
|
}
|
|
@@ -1635,7 +1640,6 @@ var mailManageOperations = [
|
|
|
1635
1640
|
];
|
|
1636
1641
|
|
|
1637
1642
|
// src/shortcuts/mail/operations/mail-contacts.ts
|
|
1638
|
-
var CONTINUATION_TTL_MS2 = 6e5;
|
|
1639
1643
|
var CONTACT_SCHEMA = schemaOf(
|
|
1640
1644
|
{
|
|
1641
1645
|
id: SCHEMA_STRING,
|
|
@@ -1687,7 +1691,7 @@ var opContactSavePrepare = {
|
|
|
1687
1691
|
userId: session.userId,
|
|
1688
1692
|
body
|
|
1689
1693
|
},
|
|
1690
|
-
|
|
1694
|
+
CONTINUATION_TTL_MS
|
|
1691
1695
|
);
|
|
1692
1696
|
return mailSuccess("mail.contacts.save.prepare", {
|
|
1693
1697
|
mode: body.id ? "edit" : "create",
|
|
@@ -1773,7 +1777,7 @@ var opGroupSavePrepare = {
|
|
|
1773
1777
|
userId: session.userId,
|
|
1774
1778
|
body
|
|
1775
1779
|
},
|
|
1776
|
-
|
|
1780
|
+
CONTINUATION_TTL_MS
|
|
1777
1781
|
);
|
|
1778
1782
|
return mailSuccess("mail.contacts.group.save.prepare", {
|
|
1779
1783
|
mode: body.groupId ? "edit" : "create",
|
|
@@ -1831,7 +1835,6 @@ var mailContactsOperations = [
|
|
|
1831
1835
|
];
|
|
1832
1836
|
|
|
1833
1837
|
// src/shortcuts/mail/operations/mail-template.ts
|
|
1834
|
-
var CONTINUATION_TTL_MS3 = 6e5;
|
|
1835
1838
|
var TEMPLATE_SCHEMA = schemaOf(
|
|
1836
1839
|
{
|
|
1837
1840
|
id: SCHEMA_STRING,
|
|
@@ -1886,7 +1889,7 @@ var opTemplateSavePrepare = {
|
|
|
1886
1889
|
userId: session.userId,
|
|
1887
1890
|
body
|
|
1888
1891
|
},
|
|
1889
|
-
|
|
1892
|
+
CONTINUATION_TTL_MS
|
|
1890
1893
|
);
|
|
1891
1894
|
return mailSuccess("mail.template.save.prepare", {
|
|
1892
1895
|
subject: body.subject,
|
|
@@ -2006,7 +2009,6 @@ var mailTemplateOperations = [
|
|
|
2006
2009
|
];
|
|
2007
2010
|
|
|
2008
2011
|
// src/shortcuts/mail/operations/mail-sign.ts
|
|
2009
|
-
var CONTINUATION_TTL_MS4 = 6e5;
|
|
2010
2012
|
var SIGN_SCHEMA = schemaOf(
|
|
2011
2013
|
{
|
|
2012
2014
|
id: SCHEMA_STRING,
|
|
@@ -2057,7 +2059,7 @@ var opSignSavePrepare = {
|
|
|
2057
2059
|
userId: session.userId,
|
|
2058
2060
|
body
|
|
2059
2061
|
},
|
|
2060
|
-
|
|
2062
|
+
CONTINUATION_TTL_MS
|
|
2061
2063
|
);
|
|
2062
2064
|
return mailSuccess("mail.sign.save.prepare", {
|
|
2063
2065
|
signName: body.signName,
|
|
@@ -2217,7 +2219,6 @@ var mailSignOperations = [
|
|
|
2217
2219
|
];
|
|
2218
2220
|
|
|
2219
2221
|
// src/shortcuts/mail/operations/mail-blacklist.ts
|
|
2220
|
-
var CONTINUATION_TTL_MS5 = 6e5;
|
|
2221
2222
|
var BLACKLIST_SCHEMA = schemaOf(
|
|
2222
2223
|
{
|
|
2223
2224
|
operateType: { type: "string", description: "add / delete" },
|
|
@@ -2263,7 +2264,7 @@ var opBlacklistOperatePrepare = {
|
|
|
2263
2264
|
userId: session.userId,
|
|
2264
2265
|
body
|
|
2265
2266
|
},
|
|
2266
|
-
|
|
2267
|
+
CONTINUATION_TTL_MS
|
|
2267
2268
|
);
|
|
2268
2269
|
return mailSuccess("mail.blacklist.operate.prepare", {
|
|
2269
2270
|
operateType: body.operateType,
|
|
@@ -2467,6 +2468,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
2467
2468
|
});
|
|
2468
2469
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
2469
2470
|
} catch (error) {
|
|
2471
|
+
reportPlatformError(error);
|
|
2470
2472
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
2471
2473
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
2472
2474
|
}
|
|
@@ -3,18 +3,19 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getMeetingOperation,
|
|
5
5
|
meetingOperationDefinitions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-PC7VKEB5.js";
|
|
7
|
+
import "./chunk-N4M2DDFE.js";
|
|
8
|
+
import "./chunk-FRZKBMSW.js";
|
|
9
|
+
import "./chunk-GM6J7Q4B.js";
|
|
10
|
+
import "./chunk-FAZTGX7S.js";
|
|
11
|
+
import "./chunk-Z7VYWPZV.js";
|
|
12
|
+
import "./chunk-OF4S23UB.js";
|
|
13
|
+
import "./chunk-CWYGFU5B.js";
|
|
13
14
|
import {
|
|
14
15
|
degradeMeetingEnvToStandard,
|
|
15
16
|
meetingStateDir,
|
|
16
17
|
readCache
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GAMZLAG2.js";
|
|
18
19
|
import {
|
|
19
20
|
MeetingCliError,
|
|
20
21
|
asObject,
|
|
@@ -22,21 +23,27 @@ import {
|
|
|
22
23
|
meetingAuthError,
|
|
23
24
|
meetingNetworkError,
|
|
24
25
|
meetingValidationError
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QVSWRLLU.js";
|
|
27
|
+
import {
|
|
28
|
+
reportPlatformError
|
|
29
|
+
} from "./chunk-6N4JPNFL.js";
|
|
30
|
+
import {
|
|
31
|
+
CONTINUATION_TTL_MS
|
|
32
|
+
} from "./chunk-7BDPM5ST.js";
|
|
26
33
|
import {
|
|
27
34
|
E10ApiError,
|
|
28
35
|
createE10RequestRuntime,
|
|
29
36
|
isE10SessionExpiredResponse,
|
|
30
37
|
requireE10Session
|
|
31
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ETNJSKMM.js";
|
|
32
39
|
import {
|
|
33
40
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
34
41
|
getActiveProfile
|
|
35
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-UFIT2UU3.js";
|
|
36
43
|
import {
|
|
37
44
|
isCliError,
|
|
38
45
|
toErrorEnvelope
|
|
39
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-UG5G54VL.js";
|
|
40
47
|
import "./chunk-BUSC6UAE.js";
|
|
41
48
|
|
|
42
49
|
// src/shortcuts/meeting/index.ts
|
|
@@ -75,7 +82,7 @@ function signature(payload, key) {
|
|
|
75
82
|
}
|
|
76
83
|
function createMeetingContinuationSigner(ctx) {
|
|
77
84
|
return {
|
|
78
|
-
async issue(payload, ttlMs =
|
|
85
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
79
86
|
const issuedAt = Date.now();
|
|
80
87
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
81
88
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -649,6 +656,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
649
656
|
});
|
|
650
657
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
651
658
|
} catch (error) {
|
|
659
|
+
reportPlatformError(error);
|
|
652
660
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
653
661
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
654
662
|
}
|
|
@@ -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/okr/index.ts
|
|
@@ -124,7 +131,7 @@ function signature(payload, key) {
|
|
|
124
131
|
}
|
|
125
132
|
function createOkrContinuationSigner(ctx) {
|
|
126
133
|
return {
|
|
127
|
-
async issue(payload, ttlMs =
|
|
134
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
128
135
|
const issuedAt = Date.now();
|
|
129
136
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
130
137
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -1448,7 +1455,6 @@ var okrReadOperations = [
|
|
|
1448
1455
|
];
|
|
1449
1456
|
|
|
1450
1457
|
// src/shortcuts/okr/operations/write.ts
|
|
1451
|
-
var CONTINUATION_TTL_SECONDS = 600;
|
|
1452
1458
|
var EB_UPDATE_KEYS = [
|
|
1453
1459
|
"id",
|
|
1454
1460
|
"isremind",
|
|
@@ -2436,6 +2442,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
2436
2442
|
});
|
|
2437
2443
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
2438
2444
|
} catch (error) {
|
|
2445
|
+
reportPlatformError(error);
|
|
2439
2446
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
2440
2447
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
2441
2448
|
}
|
|
@@ -2,9 +2,10 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
executeEbuilderFormOperation
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-G7PQWD4L.js";
|
|
6
|
+
import "./chunk-Z3GDFVJR.js";
|
|
7
|
+
import "./chunk-7BDPM5ST.js";
|
|
8
|
+
import "./chunk-UG5G54VL.js";
|
|
8
9
|
import "./chunk-BUSC6UAE.js";
|
|
9
10
|
export {
|
|
10
11
|
executeEbuilderFormOperation
|
|
@@ -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/plan/index.ts
|
|
@@ -124,7 +131,7 @@ function signature(payload, key) {
|
|
|
124
131
|
}
|
|
125
132
|
function createPlanContinuationSigner(ctx) {
|
|
126
133
|
return {
|
|
127
|
-
async issue(payload, ttlMs =
|
|
134
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
128
135
|
const issuedAt = Date.now();
|
|
129
136
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
130
137
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -1101,7 +1108,6 @@ var planVersionOperations = [
|
|
|
1101
1108
|
];
|
|
1102
1109
|
|
|
1103
1110
|
// src/shortcuts/plan/operations/write.ts
|
|
1104
|
-
var CONTINUATION_TTL_SECONDS = 600;
|
|
1105
1111
|
var REMIND_MESSAGE_EVENT_CODE = 14;
|
|
1106
1112
|
var BODY_KEYS = ["content", "summary", "plans"];
|
|
1107
1113
|
function textField(value, field) {
|
|
@@ -1980,6 +1986,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1980
1986
|
});
|
|
1981
1987
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
1982
1988
|
} catch (error) {
|
|
1989
|
+
reportPlatformError(error);
|
|
1983
1990
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
1984
1991
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1985
1992
|
}
|
|
@@ -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/project/index.ts
|
|
@@ -109,7 +115,7 @@ function signature(payload, key) {
|
|
|
109
115
|
}
|
|
110
116
|
function createProjectContinuationSigner(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));
|
|
@@ -393,15 +399,27 @@ function stableFingerprint(value) {
|
|
|
393
399
|
}
|
|
394
400
|
return `${text.length}:${hash.toString(16)}`;
|
|
395
401
|
}
|
|
396
|
-
|
|
397
|
-
// src/shortcuts/project/operations/read.ts
|
|
398
|
-
var APP_TAG = "weaver-project-eb";
|
|
399
402
|
var DEFAULT_OBJ_IDS = { task: "1020270486210527232", project: "1020275562853482532" };
|
|
400
|
-
var MIN_VERSION = [20, 6, 11];
|
|
401
403
|
function buildCardUrl(baseUrl, objId, dataId) {
|
|
402
404
|
if (!baseUrl || !objId || !dataId || /[\s/\\?#]/u.test(dataId)) return null;
|
|
403
405
|
return `${baseUrl.replace(/\/+$/u, "")}/sp/ebdfpage/card/0/${objId}/${dataId}`;
|
|
404
406
|
}
|
|
407
|
+
async function resolveObjectId(host, value) {
|
|
408
|
+
const response = await host.request({
|
|
409
|
+
method: "GET",
|
|
410
|
+
path: "/api/ebproject/backendConsole/getCurrentObjId",
|
|
411
|
+
query: { objId: DEFAULT_OBJ_IDS[value] },
|
|
412
|
+
operation: "project.object.id"
|
|
413
|
+
});
|
|
414
|
+
assertWeaverSuccess(response, "project.object.id");
|
|
415
|
+
const object = String(response?.data ?? "");
|
|
416
|
+
if (!object) throw new Error("\u63A5\u53E3\u672A\u8FD4\u56DE\u5F53\u524D\u73AF\u5883\u5BF9\u8C61 ID");
|
|
417
|
+
return object;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// src/shortcuts/project/operations/read.ts
|
|
421
|
+
var APP_TAG = "weaver-project-eb";
|
|
422
|
+
var MIN_VERSION = [20, 6, 11];
|
|
405
423
|
var CURRENT_USER_FILTERS = /* @__PURE__ */ new Set([
|
|
406
424
|
"manager",
|
|
407
425
|
"participant",
|
|
@@ -497,7 +515,7 @@ async function decorateDetailUrls(host, operation, datajson) {
|
|
|
497
515
|
const targets = rows.map((row) => row?.mainTable).filter((row) => row?.id !== void 0 && row?.id !== null);
|
|
498
516
|
if (targets.length === 0) return datajson;
|
|
499
517
|
try {
|
|
500
|
-
const objId = await
|
|
518
|
+
const objId = await resolveObjectId(host, operationTable(operation));
|
|
501
519
|
const session = await host.getSession();
|
|
502
520
|
for (const row of targets) {
|
|
503
521
|
const url = buildCardUrl(session.baseUrl, objId, String(row.id));
|
|
@@ -539,18 +557,6 @@ async function getAppId(host) {
|
|
|
539
557
|
if (!appId) throw new Error("\u5F53\u524D\u73AF\u5883\u672A\u5B89\u88C5\u4E8B\u4E95\u7136\u9879\u76EE\u7BA1\u7406\u5E94\u7528");
|
|
540
558
|
return appId;
|
|
541
559
|
}
|
|
542
|
-
async function getObject(host, value) {
|
|
543
|
-
const response = await host.request({
|
|
544
|
-
method: "GET",
|
|
545
|
-
path: "/api/ebproject/backendConsole/getCurrentObjId",
|
|
546
|
-
query: { objId: DEFAULT_OBJ_IDS[value] },
|
|
547
|
-
operation: "project.object.id"
|
|
548
|
-
});
|
|
549
|
-
assertWeaverSuccess(response, "project.object.id");
|
|
550
|
-
const object = String(response?.data ?? "");
|
|
551
|
-
if (!object) throw new Error("\u63A5\u53E3\u672A\u8FD4\u56DE\u5F53\u524D\u73AF\u5883\u5BF9\u8C61 ID");
|
|
552
|
-
return object;
|
|
553
|
-
}
|
|
554
560
|
async function datajsonRequest(host, operation, path, payload, query) {
|
|
555
561
|
const response = await host.request({
|
|
556
562
|
method: "POST",
|
|
@@ -755,7 +761,7 @@ var projectReadOperations = [
|
|
|
755
761
|
),
|
|
756
762
|
handler: async (args, { host }) => {
|
|
757
763
|
const value = table(args.table);
|
|
758
|
-
return projectSuccess("project.object.id", { table: value, objId: await
|
|
764
|
+
return projectSuccess("project.object.id", { table: value, objId: await resolveObjectId(host, value) });
|
|
759
765
|
}
|
|
760
766
|
},
|
|
761
767
|
{
|
|
@@ -789,7 +795,7 @@ var projectReadOperations = [
|
|
|
789
795
|
handler: async (args, { host }) => {
|
|
790
796
|
const value = table(args.table);
|
|
791
797
|
const groupId = args.groupId ? String(args.groupId) : await getAppId(host);
|
|
792
|
-
const sourceId = args.sourceId ? String(args.sourceId) : await
|
|
798
|
+
const sourceId = args.sourceId ? String(args.sourceId) : await resolveObjectId(host, value);
|
|
793
799
|
const response = await host.request({
|
|
794
800
|
method: "POST",
|
|
795
801
|
path: "/api/ebuilder/common/ds/fields",
|
|
@@ -830,7 +836,7 @@ var projectReadOperations = [
|
|
|
830
836
|
handler: async (args, { host }) => {
|
|
831
837
|
const value = table(args.table);
|
|
832
838
|
const groupId = args.groupId ? String(args.groupId) : await getAppId(host);
|
|
833
|
-
const sourceId = args.sourceId ? String(args.sourceId) : await
|
|
839
|
+
const sourceId = args.sourceId ? String(args.sourceId) : await resolveObjectId(host, value);
|
|
834
840
|
const response = await host.request({
|
|
835
841
|
method: "GET",
|
|
836
842
|
path: "/api/ebuilder/common/ds/options",
|
|
@@ -995,6 +1001,22 @@ async function sendWrite(host, operation, path, datajsonObject) {
|
|
|
995
1001
|
assertDatajsonSuccess(response, operation);
|
|
996
1002
|
return response?.datajson ?? null;
|
|
997
1003
|
}
|
|
1004
|
+
async function decorateCreatedRecords(host, entity, data) {
|
|
1005
|
+
if (!data || typeof data !== "object") return data;
|
|
1006
|
+
const value = data;
|
|
1007
|
+
const ids = Array.isArray(value.dataIds) ? value.dataIds.map((item) => String(item)).filter((item) => item !== "") : [];
|
|
1008
|
+
if (ids.length === 0) return data;
|
|
1009
|
+
try {
|
|
1010
|
+
const [objId, session] = await Promise.all([resolveObjectId(host, entity), host.getSession()]);
|
|
1011
|
+
const urls = ids.map((id) => buildCardUrl(session.baseUrl, objId, id));
|
|
1012
|
+
return urls.some((url) => url !== null) ? { ...value, detail_urls: urls } : data;
|
|
1013
|
+
} catch (error) {
|
|
1014
|
+
return {
|
|
1015
|
+
...value,
|
|
1016
|
+
detail_url_warning: `\u8BE6\u60C5\u94FE\u63A5\u6682\u4E0D\u53EF\u7528\uFF1A${error instanceof Error ? error.message : String(error)}\uFF1B\u521B\u5EFA\u5DF2\u6210\u529F\uFF0C\u4E0D\u8981\u56E0\u6B64\u91CD\u8BD5\u3002`
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
998
1020
|
async function verifySession(env, continuation) {
|
|
999
1021
|
if (continuation.userId !== await operatorId(env.host)) {
|
|
1000
1022
|
throw projectValidationError("continuation_mismatch", "continuation \u4E0E\u5F53\u524D\u767B\u5F55\u4F1A\u8BDD\u4E0D\u5339\u914D");
|
|
@@ -1051,7 +1073,8 @@ function createOperations(namePrefix, target) {
|
|
|
1051
1073
|
await verifySession(env, continuation);
|
|
1052
1074
|
const datajson = asObject(continuation.datajson, "continuation.datajson");
|
|
1053
1075
|
const response = await sendWrite(env.host, applyName, target.writePath, datajson);
|
|
1054
|
-
|
|
1076
|
+
const data = await decorateCreatedRecords(env.host, target.entity, response);
|
|
1077
|
+
return projectSuccess(applyName, data, { targetType: target.entity, writeAction: "create" });
|
|
1055
1078
|
}
|
|
1056
1079
|
}
|
|
1057
1080
|
];
|
|
@@ -1338,6 +1361,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1338
1361
|
});
|
|
1339
1362
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
1340
1363
|
} catch (error) {
|
|
1364
|
+
reportPlatformError(error);
|
|
1341
1365
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
1342
1366
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1343
1367
|
}
|