weaver-work-cli 0.1.42 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/chunks/{archive-J4I6MCKF.js → archive-ZQ4A4TV6.js} +399 -47
- package/dist/chunks/{archive-oa-BRZKKTO4.js → archive-oa-BBDP7AKJ.js} +12 -5
- package/dist/chunks/{asset-L7D4FAOZ.js → asset-ZOJVBWZH.js} +11 -4
- package/dist/chunks/{asset-idle-DADLLV75.js → asset-idle-XGB5IPGT.js} +7 -3
- package/dist/chunks/{attachment-content-K4C7VLWQ.js → attachment-content-CE3GMWTS.js} +5 -4
- package/dist/chunks/{blog-BVGQ7NZL.js → blog-QSHLZSFW.js} +11 -4
- package/dist/chunks/caizhilian-KCQYFH72.js +204 -0
- package/dist/chunks/{calendar-Q7NQY5Z2.js → calendar-DLGMRJQA.js} +12 -5
- package/dist/chunks/{chunk-W7BEHOSR.js → chunk-3WBIQLMB.js} +2 -2
- package/dist/chunks/{chunk-4PD5NWAX.js → chunk-3YV7PKRL.js} +2 -2
- package/dist/chunks/{chunk-JPRO6ER2.js → chunk-3ZMAQQ3W.js} +185 -60
- package/dist/chunks/{chunk-R4CHUSKC.js → chunk-4EXOIQDI.js} +40 -10
- package/dist/chunks/{chunk-OOUTBLZ4.js → chunk-56EZERK4.js} +1 -1
- package/dist/chunks/chunk-6N4JPNFL.js +76 -0
- package/dist/chunks/{chunk-SA6VBIHY.js → chunk-6NXT4ICB.js} +342 -17
- package/dist/chunks/{chunk-ZUX3P6BQ.js → chunk-727FH2NI.js} +1 -1
- package/dist/chunks/chunk-762M5XJS.js +215 -0
- package/dist/chunks/{chunk-GEWYMQME.js → chunk-77YP6I52.js} +1 -1
- package/dist/chunks/chunk-7BDPM5ST.js +11 -0
- package/dist/chunks/{chunk-G4UR6NXN.js → chunk-CZNZKOHR.js} +3 -3
- package/dist/chunks/{chunk-GHXCDPTM.js → chunk-DGMYACGJ.js} +1 -1
- package/dist/chunks/{chunk-4RAE6JXP.js → chunk-DLY5GUXX.js} +6 -3
- package/dist/chunks/{chunk-BYBSCN4X.js → chunk-G7PQWD4L.js} +6 -3
- package/dist/chunks/{chunk-EKWAQSLU.js → chunk-GR76ZDDX.js} +432 -2248
- package/dist/chunks/{chunk-APVFJUQH.js → chunk-HFXK54M4.js} +3 -3
- package/dist/chunks/{chunk-EZALDOQH.js → chunk-HP7JIYMT.js} +5 -2
- package/dist/chunks/{chunk-ZEDWSH32.js → chunk-IC62NFM5.js} +1 -1
- package/dist/chunks/{chunk-3KTFS4IA.js → chunk-JB34OE7R.js} +808 -85
- package/dist/chunks/{chunk-72CKAUAG.js → chunk-JWWTI63L.js} +59 -7
- package/dist/chunks/{chunk-P26ZWSKU.js → chunk-KIHNAS25.js} +5 -2
- package/dist/chunks/{chunk-NKZRQXST.js → chunk-LGKWL4OH.js} +200 -47
- package/dist/chunks/chunk-LRCPNDZA.js +2529 -0
- package/dist/chunks/{chunk-QKNKR4RH.js → chunk-LXFVWZLM.js} +4 -4
- package/dist/chunks/{chunk-NOODWMCL.js → chunk-O6CMPO65.js} +25 -2
- package/dist/chunks/{chunk-BIPYLLVS.js → chunk-OAE3AZBQ.js} +15 -15
- package/dist/chunks/chunk-P5GQRWDC.js +60 -0
- package/dist/chunks/{caizhilian-SAADNFD6.js → chunk-PGO4ILMQ.js} +44 -517
- package/dist/chunks/{chunk-2LV74IWP.js → chunk-Q4OYAQYH.js} +1 -1
- package/dist/chunks/{chunk-LDZQPUIA.js → chunk-T4MWQAQB.js} +8 -6
- package/dist/chunks/{chunk-BBKDXQEC.js → chunk-TGAGQV4I.js} +3 -3
- package/dist/chunks/{chunk-GPMFD4RD.js → chunk-TXUG266F.js} +1 -1
- package/dist/chunks/{chunk-FOAA27U5.js → chunk-U6R6FZHD.js} +184 -18
- package/dist/chunks/{chunk-LUSPKZKY.js → chunk-UG5G54VL.js} +1 -0
- package/dist/chunks/{chunk-NIAJ5ZCG.js → chunk-UL5XUQ25.js} +5 -2
- package/dist/chunks/{chunk-IZ7S7QUS.js → chunk-VIMCY4DI.js} +6 -6
- package/dist/chunks/chunk-VRPH24IC.js +76 -0
- package/dist/chunks/{chunk-FMPJJYYI.js → chunk-WRXSAVKO.js} +1 -1
- package/dist/chunks/{chunk-YRSZQUD2.js → chunk-YIKSL36S.js} +3 -3
- package/dist/chunks/{chunk-3SO6QL6U.js → chunk-YWX377BY.js} +5 -2
- package/dist/chunks/{chunk-BYATLLEF.js → chunk-Z3GDFVJR.js} +1 -1
- package/dist/chunks/{chunk-LADPYOWC.js → chunk-Z6UUBY37.js} +3 -3
- package/dist/chunks/{conflict-F2OMZRTO.js → conflict-IYJETSGT.js} +4 -3
- package/dist/chunks/{continuation-2CKSBLA6.js → continuation-3S37AUSH.js} +4 -3
- package/dist/chunks/{continuation-RN6PZN2M.js → continuation-3XLYYTKV.js} +4 -3
- package/dist/chunks/continuation-GW6PRWK3.js +12 -0
- package/dist/chunks/{continuation-HZIZRZBX.js → continuation-HFW2YT5S.js} +4 -3
- package/dist/chunks/{continuation-NLECEJPX.js → continuation-KI7DRRZN.js} +4 -3
- package/dist/chunks/{contract-5BETHRSG.js → contract-3QLAGYQL.js} +5803 -4593
- package/dist/chunks/{cowork-3MN6EQQO.js → cowork-3ACICHDQ.js} +11 -4
- package/dist/chunks/{create-flow-5FQNNMVO.js → create-flow-7JLC7UID.js} +8 -7
- package/dist/chunks/{ebuilder-form-SBHOYBUD.js → ebuilder-form-GWDTKEI2.js} +14 -9
- package/dist/chunks/{ehr-KMOJULKG.js → ehr-MYRDCHZ4.js} +357 -43
- package/dist/chunks/{employee-SAK2QYXX.js → employee-NOHNXC46.js} +3 -3
- package/dist/chunks/{env-LB7NBL2O.js → env-3MBHAWBL.js} +4 -3
- package/dist/chunks/{esb-W2PJCFCX.js → esb-4BQHNP5C.js} +12 -7
- package/dist/chunks/{factory-6ZFQXQ46.js → factory-TZEVU4DU.js} +3 -2
- package/dist/chunks/{fna-ZQPCUV4R.js → fna-ZVB2IILI.js} +14 -8
- package/dist/chunks/{group-chat-2HHAJN46.js → group-chat-KL3HFKRM.js} +5 -4
- package/dist/chunks/{host-YTODKMSL.js → host-3TNBMDTR.js} +5 -5
- package/dist/chunks/host-7NTIBSPK.js +25 -0
- package/dist/chunks/{host-4CBHGOHT.js → host-7OWWPLM4.js} +5 -5
- package/dist/chunks/{host-ATKVNZAT.js → host-G3VU7SDW.js} +5 -5
- package/dist/chunks/{host-BQH22NTQ.js → host-M4XP5URR.js} +5 -5
- package/dist/chunks/{host-X2CSLFM6.js → host-TUOIOEMC.js} +5 -5
- package/dist/chunks/{hrm-FFM4UJFS.js → hrm-UNKCCCGP.js} +11 -7
- package/dist/chunks/{im-VEHKDQPB.js → im-NJB7ZYMH.js} +8 -7
- package/dist/chunks/{invoice-LVIKSIIF.js → invoice-OQP3TMKQ.js} +636 -1768
- package/dist/chunks/{jiuchuanhui-X6DINO5P.js → jiuchuanhui-ASFZBMPU.js} +14 -6
- package/dist/chunks/{lazy-dispatch-KSWTN5L6.js → lazy-dispatch-UH6HGK2I.js} +7 -6
- package/dist/chunks/{mail-VDKRGUD3.js → mail-M3HJF5ER.js} +16 -14
- package/dist/chunks/{meeting-CLC6HP3Z.js → meeting-C67EHQ4Z.js} +21 -14
- package/dist/chunks/{okr-CHG4OO3U.js → okr-EVX7FB5G.js} +12 -5
- package/dist/chunks/{operations-5QL3AECO.js → operations-62N6EP3C.js} +4 -3
- package/dist/chunks/operations-J7PUIVWZ.js +15 -0
- package/dist/chunks/{plan-XWR75667.js → plan-2QJQEPBO.js} +12 -5
- package/dist/chunks/{project-5BXOOKMG.js → project-XELELW2T.js} +11 -4
- package/dist/chunks/reception-5WITA44R.js +1899 -0
- package/dist/chunks/{recruit-stage-DGMFNNDE.js → recruit-stage-AHY5QAMF.js} +745 -149
- package/dist/chunks/{registry-RHMW6ANW.js → registry-AQVGHUM6.js} +7 -6
- package/dist/chunks/{registry-OZSMDVPP.js → registry-PVUZQDDQ.js} +3 -3
- package/dist/chunks/{registry-7FFOXIAW.js → registry-QJCZ2GVG.js} +7 -6
- package/dist/chunks/{registry-Z43434VG.js → registry-VWXWPVAG.js} +4 -4
- package/dist/chunks/registry-XPWPGHYE.js +24 -0
- package/dist/chunks/{room-recommend-62H7ZQQ6.js → room-recommend-CNWE5WQK.js} +8 -5
- package/dist/chunks/{schedule-FNXKH3DQ.js → schedule-YYNYBQIE.js} +6 -5
- package/dist/chunks/{workflow-ADHKCAJK.js → workflow-BSYT5TGL.js} +15 -8
- package/dist/cmd/action.js +6 -0
- package/dist/cmd/identity/index.js +45 -0
- package/dist/cmd/index.js +2 -0
- package/dist/core/continuation-ttl.js +18 -0
- package/dist/core/error-codes.js +85 -0
- package/dist/core/logger.js +11 -0
- package/dist/index.js +37 -31
- package/dist/internal/e10/auth/commands.js +195 -8
- package/dist/internal/e10/auth/error-log.js +312 -0
- package/dist/internal/e10/auth/session.js +17 -3
- package/dist/internal/e10/auth/xiaoe.js +176 -13
- package/dist/internal/e10/auth-recovery.js +39 -12
- package/dist/internal/e10/context.js +29 -3
- package/dist/internal/skills/install.js +9 -1
- package/dist/shortcuts/archive/continuation.js +2 -1
- package/dist/shortcuts/archive/index.js +3 -0
- package/dist/shortcuts/archive/operations/borrow-list.js +105 -14
- package/dist/shortcuts/archive/operations/confirm.js +2 -1
- package/dist/shortcuts/archive/operations/flow-url.js +182 -22
- package/dist/shortcuts/archive/operations/getPageUrl.js +75 -0
- package/dist/shortcuts/archive/operations/prelib.js +33 -4
- package/dist/shortcuts/archive/operations/shared.js +52 -0
- package/dist/shortcuts/archive-oa/continuation.js +2 -1
- package/dist/shortcuts/archive-oa/index.js +2 -0
- package/dist/shortcuts/archive-oa/operations/confirm.js +2 -1
- package/dist/shortcuts/asset/continuation.js +2 -1
- package/dist/shortcuts/asset/index.js +2 -0
- package/dist/shortcuts/asset-idle/index.js +2 -0
- package/dist/shortcuts/blog/continuation.js +2 -1
- package/dist/shortcuts/blog/index.js +2 -0
- package/dist/shortcuts/caizhilian/continuation.js +2 -1
- package/dist/shortcuts/caizhilian/index.js +2 -0
- package/dist/shortcuts/caizhilian/operations/confirm.js +3 -2
- package/dist/shortcuts/calendar/continuation.js +2 -1
- package/dist/shortcuts/calendar/index.js +2 -0
- package/dist/shortcuts/calendar/operations/write.js +1 -1
- package/dist/shortcuts/contract/continuation.js +2 -1
- package/dist/shortcuts/contract/host.js +111 -4
- package/dist/shortcuts/contract/index.js +21 -0
- package/dist/shortcuts/contract/manifest.js +125 -0
- package/dist/shortcuts/contract/ooxml/clause-insert.js +249 -0
- package/dist/shortcuts/contract/operations/clause-insert.js +56 -0
- package/dist/shortcuts/contract/operations/customer.js +192 -0
- package/dist/shortcuts/contract/operations/file-download.js +75 -0
- package/dist/shortcuts/contract/operations/flow.js +44 -2
- package/dist/shortcuts/contract/operations/form-info.js +162 -62
- package/dist/shortcuts/contract/operations/registry.js +8 -0
- package/dist/shortcuts/contract/operations/review.js +116 -1
- package/dist/shortcuts/contract/operations/summary.js +177 -0
- package/dist/shortcuts/contract/operations/upload.js +64 -4
- package/dist/shortcuts/contract/operations/write.js +2 -1
- package/dist/shortcuts/contract/upload-cache.js +104 -0
- package/dist/shortcuts/cowork/continuation.js +2 -1
- package/dist/shortcuts/cowork/index.js +2 -0
- package/dist/shortcuts/ebuilder-form/continuation.js +2 -1
- package/dist/shortcuts/ebuilder-form/index.js +2 -0
- package/dist/shortcuts/ebuilder-form/operations/write.js +3 -2
- package/dist/shortcuts/ehr/continuation.js +2 -1
- package/dist/shortcuts/ehr/index.js +2 -0
- package/dist/shortcuts/ehr/operations/attend-write.js +1 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +186 -5
- package/dist/shortcuts/ehr/operations/recruit-position.js +239 -6
- package/dist/shortcuts/ehr/operations/recruit-write.js +18 -19
- package/dist/shortcuts/ehr/operations/recruit.js +17 -5
- package/dist/shortcuts/esb/continuation.js +2 -1
- package/dist/shortcuts/esb/index.js +2 -0
- package/dist/shortcuts/esb/operations/trigger.js +2 -1
- package/dist/shortcuts/fna/continuation.js +2 -1
- package/dist/shortcuts/fna/index.js +2 -0
- package/dist/shortcuts/fna/operations/invoice-writeoff.js +1 -1
- package/dist/shortcuts/fna/operations/loan.js +1 -1
- package/dist/shortcuts/hrm/index.js +2 -0
- package/dist/shortcuts/hrm/operations/employee.js +29 -1
- package/dist/shortcuts/im/continuation.js +2 -1
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/continuation.js +2 -1
- package/dist/shortcuts/invoice/index.js +14 -15
- package/dist/shortcuts/invoice/invoice-record.js +93 -0
- package/dist/shortcuts/invoice/manifest.js +190 -393
- package/dist/shortcuts/invoice/operations/add.js +2 -1
- package/dist/shortcuts/invoice/operations/delete.js +2 -1
- package/dist/shortcuts/invoice/operations/import.js +2 -1
- package/dist/shortcuts/invoice/operations/issuing-contract-detail.js +86 -0
- package/dist/shortcuts/invoice/operations/issuing-contracts.js +210 -0
- package/dist/shortcuts/invoice/operations/registry.js +17 -17
- package/dist/shortcuts/invoice/operations/reim-auto.js +4 -569
- package/dist/shortcuts/invoice/operations/reim.js +52 -341
- package/dist/shortcuts/invoice/operations/shared.js +21 -4
- package/dist/shortcuts/invoice/operations/update.js +2 -1
- package/dist/shortcuts/invoice/projection.js +10 -62
- package/dist/shortcuts/jiuchuanhui/continuation.js +2 -1
- package/dist/shortcuts/jiuchuanhui/index.js +2 -0
- package/dist/shortcuts/jiuchuanhui/operations/datajson.js +2 -1
- package/dist/shortcuts/jiuchuanhui/operations/esb.js +2 -1
- package/dist/shortcuts/mail/continuation.js +2 -1
- package/dist/shortcuts/mail/index.js +2 -0
- package/dist/shortcuts/mail/operations/mail-blacklist.js +1 -1
- package/dist/shortcuts/mail/operations/mail-contacts.js +1 -1
- package/dist/shortcuts/mail/operations/mail-send.js +1 -1
- package/dist/shortcuts/mail/operations/mail-sign.js +1 -1
- package/dist/shortcuts/mail/operations/mail-template.js +1 -1
- package/dist/shortcuts/meeting/continuation.js +2 -1
- package/dist/shortcuts/meeting/index.js +2 -0
- package/dist/shortcuts/meeting/operations/change.js +1 -1
- package/dist/shortcuts/meeting/operations/create.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +198 -65
- package/dist/shortcuts/meeting/operations/eb/decision.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/draft-memory.js +56 -0
- package/dist/shortcuts/meeting/operations/eb/factory.js +59 -4
- package/dist/shortcuts/meeting/operations/eb/person-cache.js +2 -2
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +47 -5
- package/dist/shortcuts/meeting/operations/invitation-publish.js +132 -0
- package/dist/shortcuts/meeting/operations/lifecycle.js +1 -1
- package/dist/shortcuts/meeting/operations/receipts.js +1 -1
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/meeting/operations/signs.js +1 -1
- package/dist/shortcuts/okr/continuation.js +2 -1
- package/dist/shortcuts/okr/index.js +2 -0
- package/dist/shortcuts/okr/operations/write.js +1 -1
- package/dist/shortcuts/plan/continuation.js +2 -1
- package/dist/shortcuts/plan/index.js +2 -0
- package/dist/shortcuts/plan/operations/write.js +1 -1
- package/dist/shortcuts/project/continuation.js +2 -1
- package/dist/shortcuts/project/index.js +2 -0
- package/dist/shortcuts/reception/constants.js +53 -0
- package/dist/shortcuts/reception/errors.js +54 -0
- package/dist/shortcuts/reception/host.js +125 -0
- package/dist/shortcuts/reception/index.js +198 -0
- package/dist/shortcuts/reception/manifest.js +177 -0
- package/dist/shortcuts/reception/operations/ask.js +71 -0
- package/dist/shortcuts/reception/operations/browsertool.js +58 -0
- package/dist/shortcuts/reception/operations/compose.js +129 -0
- package/dist/shortcuts/reception/operations/customparams.js +74 -0
- package/dist/shortcuts/reception/operations/doc.js +238 -0
- package/dist/shortcuts/reception/operations/docrender.js +36 -0
- package/dist/shortcuts/reception/operations/panels.js +179 -0
- package/dist/shortcuts/reception/operations/registry.js +26 -0
- package/dist/shortcuts/reception/operations/render-assets.js +184 -0
- package/dist/shortcuts/reception/operations/render.js +123 -0
- package/dist/shortcuts/reception/operations/runs.js +38 -0
- package/dist/shortcuts/reception/operations/schedule.js +127 -0
- package/dist/shortcuts/reception/operations/shared.js +196 -0
- package/dist/shortcuts/reception/operations/snapshot.js +68 -0
- package/dist/shortcuts/reception/operations/types.js +1 -0
- package/dist/shortcuts/reception/operations.js +33 -0
- package/dist/shortcuts/reception/upload.js +218 -0
- package/dist/shortcuts/recruit-stage/context.js +145 -33
- package/dist/shortcuts/recruit-stage/continuation.js +2 -1
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +86 -16
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +6 -4
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +289 -48
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +207 -25
- package/dist/shortcuts/recruit-stage/shared.js +161 -18
- package/dist/shortcuts/workflow/continuation.js +2 -1
- package/dist/shortcuts/workflow/index.js +4 -0
- package/dist/shortcuts/workflow/operations/form.js +32 -8
- package/dist/shortcuts/workflow/operations/read.js +8 -3
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +92 -5
- package/dist/shortcuts/workflow/operations/todoSmartConvert/priorityExpr.js +509 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +22 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +32 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +57 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +165 -52
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +57 -14
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +44 -18
- package/dist/shortcuts/workflow/operations/write.js +1 -1
- package/docs/_catalog.md +3 -0
- package/docs/agent-invoice.md +1 -1
- package/docs/archive-oa.md +1 -1
- package/docs/caizhilian.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/contract.md +2 -1
- package/docs/e10-auth.md +19 -1
- package/docs/ehr.md +2 -2
- package/docs/esb.md +1 -1
- package/docs/im.md +1 -1
- package/docs/invoice.md +8 -12
- package/docs/okr.md +1 -1
- package/docs/reception.md +119 -0
- package/docs/todo-smart-convert/data-contract.md +7 -0
- package/package.json +1 -1
- package/scripts/clean.mjs +43 -2
- package/skill-template/business-info.json +18 -2
- package/skill-template/domains/caizhilian.md +1 -1
- package/skill-template/domains/jinchengda.md +2 -0
- package/skill-template/domains/reception-flow.md +18 -0
- package/skill-template/domains/yepiaotong.md +4 -7
- package/skills/weaver-e10-archive-oa/references/source-manifest.json +14 -14
- package/skills/weaver-e10-blog/references/blog-publish.md +1 -1
- package/skills/weaver-e10-blog/references/source-manifest.json +7 -7
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +21 -21
- package/skills/weaver-e10-caizhilian/references/write-protocol.md +2 -2
- package/skills/weaver-e10-calendar/references/calendar-write.md +1 -1
- package/skills/weaver-e10-cowork/SKILL.md +1 -1
- package/skills/weaver-e10-ebuilder-form/SKILL.md +1 -1
- package/skills/weaver-e10-ebuilder-form/references/custom-api.md +1 -1
- package/skills/weaver-e10-ebuilder-form/references/openapi-write.md +1 -1
- package/skills/weaver-e10-esb/SKILL.md +2 -2
- package/skills/weaver-e10-esb/references/source-manifest.json +22 -22
- package/skills/weaver-e10-esb/references/trigger.md +2 -2
- package/skills/weaver-e10-jinchengda/SKILL.md +198 -205
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +759 -0
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +250 -0
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +146 -7
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +178 -0
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +75 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +137 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +163 -0
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +52 -3
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +92 -5
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +602 -0
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +209 -0
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +126 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +312 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +555 -0
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +47 -12
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +469 -0
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +154 -1
- package/skills/weaver-e10-jinchengda/references/contract-request-write.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +224 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +355 -0
- package/skills/weaver-e10-jinchengda/references/source-manifest.json +29 -29
- package/skills/weaver-e10-jucailin/SKILL.md +1 -1
- package/skills/weaver-e10-jucailin/references/attend-write.md +2 -2
- package/skills/weaver-e10-jucailin/references/recruit-create.md +15 -4
- package/skills/weaver-e10-jucailin/references/recruit-write.md +3 -3
- package/skills/weaver-e10-meeting/SKILL.md +64 -14
- package/skills/weaver-e10-meeting/references/meeting-change.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-create.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-lifecycle.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
- package/skills/weaver-e10-okr/references/okr-align.md +1 -1
- package/skills/weaver-e10-okr/references/okr-keyresult.md +1 -1
- package/skills/weaver-e10-okr/references/okr-write.md +1 -1
- package/skills/weaver-e10-okr/references/source-manifest.json +8 -8
- package/skills/weaver-e10-plan/references/plan-report-write.md +1 -1
- package/skills/weaver-e10-plan/references/source-manifest.json +20 -20
- package/skills/weaver-e10-qiyecheng/references/loan-management.md +1 -1
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +18 -18
- package/skills/weaver-e10-reception-flow/SKILL.md +173 -0
- package/skills/weaver-e10-reception-flow/assets//350/241/214/347/250/213/345/215/225/346/250/241/346/235/277-/346/263/233/345/276/256.docx +0 -0
- package/skills/weaver-e10-reception-flow/data/fields-snapshot.json +213 -0
- package/skills/weaver-e10-reception-flow/references/browsertool.md +68 -0
- package/skills/weaver-e10-reception-flow/references/env-pitfalls.md +51 -0
- package/skills/weaver-e10-reception-flow/references/fields-snapshot.md +227 -0
- package/skills/weaver-e10-reception-flow/references/guide.md +179 -0
- package/skills/weaver-e10-reception-flow/scripts/locate.sh +14 -0
- package/skills/weaver-e10-reception-flow/scripts/render.py +724 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +19 -10
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +10 -2
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +1 -1
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +204 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +13 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +29 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +27 -14
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +21 -2
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +9 -1
- package/skills/weaver-e10-shijingran/SKILL.md +5 -5
- package/skills/weaver-e10-shijingran/references/source-manifest.json +37 -36
- package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +2 -0
- package/skills/weaver-e10-wenshuding/SKILL.md +17 -7
- package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +28 -0
- package/skills/weaver-e10-wenshuding/references/archive-flow.md +24 -8
- package/skills/weaver-e10-wenshuding/references/archive-prelib-list.md +3 -0
- package/skills/weaver-e10-wenshuding/references/archive-prelib-open.md +4 -0
- package/skills/weaver-e10-wenshuding/references/archive-search.md +3 -1
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/SKILL.md +19 -17
- package/skills/weaver-e10-workflow/aigroup/default.json +10 -6
- package/skills/weaver-e10-workflow/references/source-manifest.json +32 -32
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +36 -3
- package/skills/weaver-e10-workflow/references/workflow-memory.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +9 -6
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +152 -1
- package/skills/weaver-e10-yepiaotong/SKILL.md +19 -26
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +13 -10
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +194 -155
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +28 -32
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +5 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +8 -10
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +211 -616
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +149 -117
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +17 -20
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +20 -39
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +55 -22
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +7 -17
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +88 -92
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +144 -354
- package/skills/weaver-e10-yimiaoban/SKILL.md +18 -6
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +31 -1
- package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +72 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +11 -11
- package/dist/chunks/chunk-TTPJJJC4.js +0 -465
- package/dist/chunks/registry-BKBZPBAJ.js +0 -23
- package/dist/shortcuts/invoice/markdown.js +0 -172
- package/dist/shortcuts/invoice/operations/issuing-qys.js +0 -424
- package/skills/weaver-e10-meeting.zip +0 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +0 -131
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-form-fill-rules.md +0 -179
|
@@ -4,13 +4,14 @@ import {
|
|
|
4
4
|
getWorkflowOperation,
|
|
5
5
|
hasWorkflowOperation,
|
|
6
6
|
workflowOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-JB34OE7R.js";
|
|
8
|
+
import "./chunk-HP7JIYMT.js";
|
|
9
|
+
import "./chunk-WRXSAVKO.js";
|
|
10
|
+
import "./chunk-727FH2NI.js";
|
|
11
11
|
import "./chunk-AJ62BGAW.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7BDPM5ST.js";
|
|
13
|
+
import "./chunk-U6R6FZHD.js";
|
|
14
|
+
import "./chunk-UG5G54VL.js";
|
|
14
15
|
import "./chunk-BUSC6UAE.js";
|
|
15
16
|
export {
|
|
16
17
|
getWorkflowOperation,
|
|
@@ -3,10 +3,10 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getImOperation,
|
|
5
5
|
imOperationDefinitions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-Q4OYAQYH.js";
|
|
7
|
+
import "./chunk-IC62NFM5.js";
|
|
8
8
|
import "./chunk-YLCYX7LE.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-UG5G54VL.js";
|
|
10
10
|
import "./chunk-BUSC6UAE.js";
|
|
11
11
|
export {
|
|
12
12
|
getImOperation,
|
|
@@ -4,12 +4,13 @@ import {
|
|
|
4
4
|
esbOperationDefinitions,
|
|
5
5
|
getEsbOperation,
|
|
6
6
|
hasEsbOperation
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-DLY5GUXX.js";
|
|
8
|
+
import "./chunk-TGAGQV4I.js";
|
|
9
|
+
import "./chunk-TXUG266F.js";
|
|
10
|
+
import "./chunk-7BDPM5ST.js";
|
|
11
|
+
import "./chunk-6NXT4ICB.js";
|
|
12
|
+
import "./chunk-U6R6FZHD.js";
|
|
13
|
+
import "./chunk-UG5G54VL.js";
|
|
13
14
|
import "./chunk-BUSC6UAE.js";
|
|
14
15
|
export {
|
|
15
16
|
esbOperationDefinitions,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
getHrmOperation,
|
|
5
5
|
hasHrmOperation,
|
|
6
6
|
hrmOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-3YV7PKRL.js";
|
|
8
|
+
import "./chunk-O6CMPO65.js";
|
|
9
|
+
import "./chunk-56EZERK4.js";
|
|
10
|
+
import "./chunk-UG5G54VL.js";
|
|
11
11
|
import "./chunk-BUSC6UAE.js";
|
|
12
12
|
export {
|
|
13
13
|
getHrmOperation,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
getMeetingOperation,
|
|
5
|
+
hasMeetingOperation,
|
|
6
|
+
meetingOperationDefinitions
|
|
7
|
+
} from "./chunk-3ZMAQQ3W.js";
|
|
8
|
+
import "./chunk-OAE3AZBQ.js";
|
|
9
|
+
import "./chunk-LGKWL4OH.js";
|
|
10
|
+
import "./chunk-4EXOIQDI.js";
|
|
11
|
+
import "./chunk-VIMCY4DI.js";
|
|
12
|
+
import "./chunk-DGMYACGJ.js";
|
|
13
|
+
import "./chunk-LXFVWZLM.js";
|
|
14
|
+
import "./chunk-3WBIQLMB.js";
|
|
15
|
+
import "./chunk-77YP6I52.js";
|
|
16
|
+
import "./chunk-JWWTI63L.js";
|
|
17
|
+
import "./chunk-7BDPM5ST.js";
|
|
18
|
+
import "./chunk-UG5G54VL.js";
|
|
19
|
+
import "./chunk-BUSC6UAE.js";
|
|
20
|
+
export {
|
|
21
|
+
getMeetingOperation,
|
|
22
|
+
hasMeetingOperation,
|
|
23
|
+
meetingOperationDefinitions
|
|
24
|
+
};
|
|
@@ -2,18 +2,21 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ebRoomRecommendOperation,
|
|
5
|
+
inferRoomFloor,
|
|
5
6
|
loadFrequentRooms,
|
|
6
7
|
loadRooms,
|
|
7
8
|
recommendRooms,
|
|
8
9
|
rememberFrequentRoom
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-4EXOIQDI.js";
|
|
11
|
+
import "./chunk-DGMYACGJ.js";
|
|
12
|
+
import "./chunk-77YP6I52.js";
|
|
13
|
+
import "./chunk-JWWTI63L.js";
|
|
14
|
+
import "./chunk-7BDPM5ST.js";
|
|
15
|
+
import "./chunk-UG5G54VL.js";
|
|
14
16
|
import "./chunk-BUSC6UAE.js";
|
|
15
17
|
export {
|
|
16
18
|
ebRoomRecommendOperation,
|
|
19
|
+
inferRoomFloor,
|
|
17
20
|
loadFrequentRooms,
|
|
18
21
|
loadRooms,
|
|
19
22
|
recommendRooms,
|
|
@@ -8,11 +8,12 @@ import {
|
|
|
8
8
|
resolveMeetingScheduleTypeIds,
|
|
9
9
|
resolveMemberIdsByName,
|
|
10
10
|
runScheduleConflictFlow
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-VIMCY4DI.js";
|
|
12
|
+
import "./chunk-DGMYACGJ.js";
|
|
13
|
+
import "./chunk-77YP6I52.js";
|
|
14
|
+
import "./chunk-JWWTI63L.js";
|
|
15
|
+
import "./chunk-7BDPM5ST.js";
|
|
16
|
+
import "./chunk-UG5G54VL.js";
|
|
16
17
|
import "./chunk-BUSC6UAE.js";
|
|
17
18
|
export {
|
|
18
19
|
applyMessageDetails,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createWorkflowHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HFXK54M4.js";
|
|
6
6
|
import {
|
|
7
7
|
USER_INTENT_RULE_FILE,
|
|
8
8
|
aigroupUserDir,
|
|
@@ -17,23 +17,27 @@ import {
|
|
|
17
17
|
validateRuleFile,
|
|
18
18
|
workflowOperationDefinitions,
|
|
19
19
|
workflowSuccess
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JB34OE7R.js";
|
|
21
21
|
import {
|
|
22
22
|
createWorkflowContinuationSigner
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HP7JIYMT.js";
|
|
24
24
|
import {
|
|
25
25
|
CLARIFICATION_SUBTYPE,
|
|
26
26
|
WorkflowCliError,
|
|
27
27
|
workflowValidationError
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-WRXSAVKO.js";
|
|
29
|
+
import "./chunk-727FH2NI.js";
|
|
30
30
|
import "./chunk-AJ62BGAW.js";
|
|
31
|
-
import
|
|
32
|
-
|
|
31
|
+
import {
|
|
32
|
+
reportPlatformError
|
|
33
|
+
} from "./chunk-6N4JPNFL.js";
|
|
34
|
+
import "./chunk-7BDPM5ST.js";
|
|
35
|
+
import "./chunk-6NXT4ICB.js";
|
|
36
|
+
import "./chunk-U6R6FZHD.js";
|
|
33
37
|
import {
|
|
34
38
|
isCliError,
|
|
35
39
|
toErrorEnvelope
|
|
36
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UG5G54VL.js";
|
|
37
41
|
import "./chunk-BUSC6UAE.js";
|
|
38
42
|
|
|
39
43
|
// src/shortcuts/workflow/index.ts
|
|
@@ -311,6 +315,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
311
315
|
});
|
|
312
316
|
printWorkflowResult(ctx, operation, result);
|
|
313
317
|
} catch (error) {
|
|
318
|
+
reportPlatformError(error);
|
|
314
319
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
315
320
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
316
321
|
}
|
|
@@ -390,6 +395,8 @@ var workflowShortcut = {
|
|
|
390
395
|
userIntentExists: user.exists,
|
|
391
396
|
userIntentError: user.error,
|
|
392
397
|
defaults: loaded.file.defaults,
|
|
398
|
+
// 通用规则区(2026-11-05):只改 default.json 就能调的配置都在这里,输出出来才自检得到
|
|
399
|
+
generalRules: loaded.file.generalRules ?? null,
|
|
393
400
|
rules: loaded.file.rules,
|
|
394
401
|
userRules: user.rules,
|
|
395
402
|
warnings: loaded.warnings,
|
package/dist/cmd/action.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { shouldReportPlatformError, toPlatformError } from '../core/error-codes.js';
|
|
1
2
|
import { ExitCode, isCliError, toErrorEnvelope } from '../core/errors.js';
|
|
2
3
|
import { guardFileInput } from '../core/input.js';
|
|
3
4
|
import { RefError, pruneRefs, resolveRefInput } from '../core/refs.js';
|
|
@@ -89,6 +90,11 @@ export function createAction(ctx) {
|
|
|
89
90
|
}
|
|
90
91
|
catch (error) {
|
|
91
92
|
await commandCtx.hooks.onError(commandCtx, error);
|
|
93
|
+
// 平台型连接器(千问办公等)要求 stderr 有统一的 {"code":"E-XXXX","message":"…"}。
|
|
94
|
+
// 这里**只追加一行**,既有的错误消息与退出码一律不变。
|
|
95
|
+
if (shouldReportPlatformError(error)) {
|
|
96
|
+
process.stderr.write(JSON.stringify(toPlatformError(error)) + '\n');
|
|
97
|
+
}
|
|
92
98
|
if (commandCtx.getGlobalOptions().json) {
|
|
93
99
|
console.error(JSON.stringify({
|
|
94
100
|
schemaVersion: 1,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CliError, ExitCode } from '../../core/errors.js';
|
|
2
|
+
import { E10AuthSession, findAuthFile, getActiveProfile } from '../../internal/e10/auth/session.js';
|
|
3
|
+
/**
|
|
4
|
+
* 身份信息脱敏:只保留业务可读字段。
|
|
5
|
+
*
|
|
6
|
+
* 明确剔除(平台规范要求 stdout 不得含敏感凭据 / 绝对路径):
|
|
7
|
+
* - `eteamsId`:等价于会话凭据,可直接换取业务数据;
|
|
8
|
+
* - `cookie` / `userAgent`:请求凭据与签名素材;
|
|
9
|
+
* - `authFile`:本机绝对路径,暴露用户目录结构。
|
|
10
|
+
*/
|
|
11
|
+
function safeIdentity(session, profile) {
|
|
12
|
+
const pick = (value) => (typeof value === 'string' ? value : '');
|
|
13
|
+
return {
|
|
14
|
+
employeeId: pick(session.userId),
|
|
15
|
+
tenantKey: pick(session.tenantKey),
|
|
16
|
+
tenantName: pick(session.tenantName),
|
|
17
|
+
department: pick(session.department),
|
|
18
|
+
subcompany: pick(session.subcompany),
|
|
19
|
+
position: pick(session.position),
|
|
20
|
+
version: pick(session.version),
|
|
21
|
+
baseUrl: session.getBaseUrl(),
|
|
22
|
+
profile,
|
|
23
|
+
agentType: pick(session.agentType),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export const identityCommand = {
|
|
27
|
+
name: 'identity',
|
|
28
|
+
description: 'Print the signed-in identity in a connector-safe JSON form',
|
|
29
|
+
category: 'platform',
|
|
30
|
+
register({ program, action }) {
|
|
31
|
+
const identity = program.command('identity')
|
|
32
|
+
.description('Connector contract: report who the current credential belongs to');
|
|
33
|
+
identity.command('whoami')
|
|
34
|
+
.description('Print the signed-in E10 identity as JSON without any credential material')
|
|
35
|
+
.action(action((ctx) => {
|
|
36
|
+
const opts = ctx.getGlobalOptions();
|
|
37
|
+
const authFile = findAuthFile(ctx.cwd, opts);
|
|
38
|
+
const session = authFile ? E10AuthSession.fromFile(authFile, opts.baseUrl, opts.passportUrl) : null;
|
|
39
|
+
if (!session)
|
|
40
|
+
throw new CliError('E10 auth not found.', ExitCode.AuthError);
|
|
41
|
+
const profile = opts.profile || getActiveProfile();
|
|
42
|
+
ctx.output.raw(JSON.stringify(safeIdentity(session, profile)));
|
|
43
|
+
}));
|
|
44
|
+
},
|
|
45
|
+
};
|
package/dist/cmd/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { configCommand } from './config/index.js';
|
|
|
3
3
|
import { docsCommand } from './docs/index.js';
|
|
4
4
|
import { doctorCommand } from './doctor/index.js';
|
|
5
5
|
import { e10Command } from './e10/index.js';
|
|
6
|
+
import { identityCommand } from './identity/index.js';
|
|
6
7
|
import { refsCommand } from './refs/index.js';
|
|
7
8
|
import { runCommand } from './run/index.js';
|
|
8
9
|
import { setupCommand } from './setup/index.js';
|
|
@@ -15,6 +16,7 @@ export const builtinCommands = [
|
|
|
15
16
|
runCommand,
|
|
16
17
|
refsCommand,
|
|
17
18
|
e10Command,
|
|
19
|
+
identityCommand,
|
|
18
20
|
setupCommand,
|
|
19
21
|
skillsCommand,
|
|
20
22
|
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* continuation(确认票据)的统一有效期。
|
|
3
|
+
*
|
|
4
|
+
* 票据是 `prepare` 签发、`apply` 消费的「提交卡」:里面封存了本次要提交的完整内容
|
|
5
|
+
* (表单数据、目标 id、内容指纹)并用本机密钥做 HMAC 签名。有效期只约束
|
|
6
|
+
* 「从 prepare 到 apply 之间的时间差」,**与登录态无关** —— 登录失效走
|
|
7
|
+
* `authentication` 错误(exitCode 3),票据过期/被改写走 `validation/continuation_invalid`。
|
|
8
|
+
*
|
|
9
|
+
* 统一为 24 小时:确认一份表单经常要跨小时(找领导核对、补齐参会人、等客户确认),
|
|
10
|
+
* 短窗口只会把正常流程打断成 `continuation_expired`,逼用户重跑 prepare。
|
|
11
|
+
*
|
|
12
|
+
* 放长窗口不影响防重放:`apply` 阶段会落一次性消费标记(workflow `consume`),
|
|
13
|
+
* 同一票据第二次提交会被拦;票据里还有内容指纹挡 `target_changed`。
|
|
14
|
+
* 想收紧某个具体链路时,在调用 `issue(payload, ttlMs)` 处显式传值即可。
|
|
15
|
+
*/
|
|
16
|
+
export const CONTINUATION_TTL_MS = 24 * 60 * 60 * 1000;
|
|
17
|
+
/** 回显给调用方的秒数,必须与 {@link CONTINUATION_TTL_MS} 保持一致。 */
|
|
18
|
+
export const CONTINUATION_TTL_SECONDS = CONTINUATION_TTL_MS / 1000;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ExitCode, isCliError, isStructuredError } from './errors.js';
|
|
2
|
+
const MAX_MESSAGE_LENGTH = 500;
|
|
3
|
+
function truncate(value) {
|
|
4
|
+
const flat = value.replace(/\s+/g, ' ').trim();
|
|
5
|
+
return flat.length > MAX_MESSAGE_LENGTH ? `${flat.slice(0, MAX_MESSAGE_LENGTH)}…` : flat;
|
|
6
|
+
}
|
|
7
|
+
function httpStatusOf(error) {
|
|
8
|
+
if (!error || typeof error !== 'object')
|
|
9
|
+
return undefined;
|
|
10
|
+
const details = error.details;
|
|
11
|
+
if (!details || typeof details !== 'object')
|
|
12
|
+
return undefined;
|
|
13
|
+
const status = details.httpStatus;
|
|
14
|
+
return typeof status === 'number' ? status : undefined;
|
|
15
|
+
}
|
|
16
|
+
/** 结构化错误的 type / subtype 判定,优先级高于退出码。 */
|
|
17
|
+
function codeFromStructured(type, subtype, httpStatus) {
|
|
18
|
+
if (httpStatus === 403)
|
|
19
|
+
return 'E-0005';
|
|
20
|
+
if (httpStatus === 401)
|
|
21
|
+
return subtype.includes('expired') ? 'E-0002' : 'E-0001';
|
|
22
|
+
if (type === 'authentication') {
|
|
23
|
+
return /expired|invalid_token|token_expired/u.test(subtype) ? 'E-0002' : 'E-0001';
|
|
24
|
+
}
|
|
25
|
+
if (type === 'permission' || type === 'authorization')
|
|
26
|
+
return 'E-0005';
|
|
27
|
+
if (type === 'validation' || type === 'usage')
|
|
28
|
+
return 'E-0003';
|
|
29
|
+
if (type === 'network' || type === 'upstream' || type === 'http')
|
|
30
|
+
return 'E-0004';
|
|
31
|
+
return 'E-9999';
|
|
32
|
+
}
|
|
33
|
+
function codeFromExitCode(exitCode) {
|
|
34
|
+
switch (exitCode) {
|
|
35
|
+
case ExitCode.UsageError:
|
|
36
|
+
return 'E-0003';
|
|
37
|
+
case ExitCode.AuthError:
|
|
38
|
+
return 'E-0001';
|
|
39
|
+
case ExitCode.NetworkError:
|
|
40
|
+
return 'E-0004';
|
|
41
|
+
case ExitCode.PolicyError:
|
|
42
|
+
return 'E-0005';
|
|
43
|
+
default:
|
|
44
|
+
return 'E-9999';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 把任意异常折算成 `{code, message}`。
|
|
49
|
+
*
|
|
50
|
+
* 判定顺序:结构化 error 的 type/subtype/httpStatus → CliError 的退出码 → E-9999。
|
|
51
|
+
*/
|
|
52
|
+
export function toPlatformError(error) {
|
|
53
|
+
if (isStructuredError(error)) {
|
|
54
|
+
const message = truncate(error.message || '未知错误');
|
|
55
|
+
return {
|
|
56
|
+
code: codeFromStructured(error.type, error.subtype, httpStatusOf(error)),
|
|
57
|
+
message,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
if (isCliError(error)) {
|
|
61
|
+
return {
|
|
62
|
+
code: codeFromExitCode(error.exitCode),
|
|
63
|
+
message: truncate(error.message || '未知错误'),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
67
|
+
return { code: 'E-9999', message: truncate(message || '未知错误') };
|
|
68
|
+
}
|
|
69
|
+
/** `ConfirmationRequired` / `Partial` 是流程信号而非失败,不追加错误码行。 */
|
|
70
|
+
export function shouldReportPlatformError(error) {
|
|
71
|
+
if (!isCliError(error))
|
|
72
|
+
return true;
|
|
73
|
+
return error.exitCode !== ExitCode.Success && error.exitCode !== ExitCode.ConfirmationRequired;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 往 stderr 追加一行 `{"code":"E-XXXX","message":"…"}`。
|
|
77
|
+
*
|
|
78
|
+
* 各业务 shortcut 自己 catch 后直接打印失败信封(不走 `createAction`),
|
|
79
|
+
* 所以它们也必须调用本函数,否则平台侧拿不到统一错误码。
|
|
80
|
+
*/
|
|
81
|
+
export function reportPlatformError(error) {
|
|
82
|
+
if (!shouldReportPlatformError(error))
|
|
83
|
+
return;
|
|
84
|
+
process.stderr.write(JSON.stringify(toPlatformError(error)) + '\n');
|
|
85
|
+
}
|
package/dist/core/logger.js
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
export class Logger {
|
|
2
2
|
getOptions;
|
|
3
|
+
/**
|
|
4
|
+
* 机器模式:进度与提示改走 stderr,stdout 只留给结构化结果。
|
|
5
|
+
*
|
|
6
|
+
* 只有显式开启的平台型命令(如 `auth init`)会打开它,默认关闭,
|
|
7
|
+
* 因此既有命令的 stdout 输出口径完全不变。
|
|
8
|
+
*/
|
|
9
|
+
machineMode = false;
|
|
3
10
|
constructor(getOptions) {
|
|
4
11
|
this.getOptions = getOptions;
|
|
5
12
|
}
|
|
6
13
|
info(message) {
|
|
14
|
+
if (this.machineMode) {
|
|
15
|
+
console.error(message);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
7
18
|
const opts = this.getOptions();
|
|
8
19
|
if (!opts.quiet && !opts.json) {
|
|
9
20
|
console.log(message);
|
package/dist/index.js
CHANGED
|
@@ -7,13 +7,14 @@ import {
|
|
|
7
7
|
firstPositionalToken,
|
|
8
8
|
registerCommands,
|
|
9
9
|
toCommandMetadata
|
|
10
|
-
} from "./chunks/chunk-
|
|
11
|
-
import "./chunks/chunk-
|
|
10
|
+
} from "./chunks/chunk-LRCPNDZA.js";
|
|
11
|
+
import "./chunks/chunk-727FH2NI.js";
|
|
12
|
+
import "./chunks/chunk-GR76ZDDX.js";
|
|
12
13
|
import "./chunks/chunk-AJ62BGAW.js";
|
|
13
|
-
import "./chunks/chunk-
|
|
14
|
-
import "./chunks/chunk-
|
|
15
|
-
import "./chunks/chunk-
|
|
16
|
-
import "./chunks/chunk-
|
|
14
|
+
import "./chunks/chunk-6N4JPNFL.js";
|
|
15
|
+
import "./chunks/chunk-6NXT4ICB.js";
|
|
16
|
+
import "./chunks/chunk-U6R6FZHD.js";
|
|
17
|
+
import "./chunks/chunk-UG5G54VL.js";
|
|
17
18
|
import "./chunks/chunk-BUSC6UAE.js";
|
|
18
19
|
|
|
19
20
|
// src/shortcuts/index.ts
|
|
@@ -29,7 +30,7 @@ function lazyShortcut(definition) {
|
|
|
29
30
|
placeholder.allowExcessArguments(true);
|
|
30
31
|
placeholder.helpOption(false);
|
|
31
32
|
placeholder.action(async () => {
|
|
32
|
-
const { dispatchLazyShortcut } = await import("./chunks/lazy-dispatch-
|
|
33
|
+
const { dispatchLazyShortcut } = await import("./chunks/lazy-dispatch-UH6HGK2I.js");
|
|
33
34
|
await dispatchLazyShortcut(definition, shortcutMetadata());
|
|
34
35
|
});
|
|
35
36
|
}
|
|
@@ -39,122 +40,127 @@ var builtinShortcuts = [
|
|
|
39
40
|
lazyShortcut({
|
|
40
41
|
name: "invoice",
|
|
41
42
|
description: "E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406 CLI",
|
|
42
|
-
load: async () => (await import("./chunks/invoice-
|
|
43
|
+
load: async () => (await import("./chunks/invoice-OQP3TMKQ.js")).invoiceShortcut
|
|
43
44
|
}),
|
|
44
45
|
lazyShortcut({
|
|
45
46
|
name: "ehr",
|
|
46
47
|
description: "\u6CDB\u5FAEE10\u805A\u624D\u6797\uFF08\u4EBA\u4E8B/\u51FA\u52E4/\u85AA\u916C\uFF09CLI",
|
|
47
|
-
load: async () => (await import("./chunks/ehr-
|
|
48
|
+
load: async () => (await import("./chunks/ehr-MYRDCHZ4.js")).ehrShortcut
|
|
48
49
|
}),
|
|
49
50
|
lazyShortcut({
|
|
50
51
|
name: "recruit-stage",
|
|
51
52
|
description: "\u6CDB\u5FAEE10\u62DB\u8058\u52A9\u624B\uFF08JD\u751F\u6210/\u7B80\u5386\u5EFA\u6863/AI\u9762\u8BD5\u9080\u7EA6\uFF09CLI",
|
|
52
|
-
load: async () => (await import("./chunks/recruit-stage-
|
|
53
|
+
load: async () => (await import("./chunks/recruit-stage-AHY5QAMF.js")).recruitStageShortcut
|
|
53
54
|
}),
|
|
54
55
|
lazyShortcut({
|
|
55
56
|
name: "cowork",
|
|
56
57
|
description: "\u6CDB\u5FAEE10\u534F\u4F5C\u533A\uFF08\u534F\u4F5C\u4E8B\u9879/\u8BA8\u8BBA/\u5BA1\u6279/\u5171\u4EAB\u6743\u9650\uFF09CLI",
|
|
57
|
-
load: async () => (await import("./chunks/cowork-
|
|
58
|
+
load: async () => (await import("./chunks/cowork-3ACICHDQ.js")).coworkShortcut
|
|
58
59
|
}),
|
|
59
60
|
lazyShortcut({
|
|
60
61
|
name: "archive",
|
|
61
62
|
description: "E10 \u6587\u4E66\u5B9A\u6863\u6848\u7BA1\u7406 CLI",
|
|
62
|
-
load: async () => (await import("./chunks/archive-
|
|
63
|
+
load: async () => (await import("./chunks/archive-ZQ4A4TV6.js")).archiveShortcut
|
|
63
64
|
}),
|
|
64
65
|
lazyShortcut({
|
|
65
66
|
name: "archive-oa",
|
|
66
67
|
description: "E10 \u6863\u6848\u5B9A\u4F4D\u4E0E OA \u5546\u52A1\u5408\u540C\u501F\u9605 CLI",
|
|
67
|
-
load: async () => (await import("./chunks/archive-oa-
|
|
68
|
+
load: async () => (await import("./chunks/archive-oa-BBDP7AKJ.js")).archiveOaShortcut
|
|
68
69
|
}),
|
|
69
70
|
lazyShortcut({
|
|
70
71
|
name: "calendar",
|
|
71
72
|
description: "\u6CDB\u5FAEE10\u65E5\u7A0B\u7BA1\u7406 CLI\uFF08\u521B\u5EFA/\u67E5\u8BE2/\u66F4\u65B0/\u5220\u9664/\u5B57\u5178\uFF09",
|
|
72
|
-
load: async () => (await import("./chunks/calendar-
|
|
73
|
+
load: async () => (await import("./chunks/calendar-DLGMRJQA.js")).calendarShortcut
|
|
73
74
|
}),
|
|
74
75
|
lazyShortcut({
|
|
75
76
|
name: "fna",
|
|
76
77
|
description: "\u6CDB\u5FAEE10\u9F50\u4E1A\u6210\u8D39\u63A7\u4E2D\u5FC3\uFF08\u9884\u7B97/\u8D39\u7528\u4E2D\u5FC3/\u501F\u6B3E\u7BA1\u7406/\u53D1\u7968\u6838\u9500\uFF09CLI",
|
|
77
|
-
load: async () => (await import("./chunks/fna-
|
|
78
|
+
load: async () => (await import("./chunks/fna-ZVB2IILI.js")).fnaShortcut
|
|
78
79
|
}),
|
|
79
80
|
lazyShortcut({
|
|
80
81
|
name: "hrm",
|
|
81
82
|
description: "\u6CDB\u5FAEE10\u7EC4\u7EC7\u7BA1\u7406\uFF08\u5458\u5DE5/\u7EC4\u7EC7/\u5C97\u4F4D\u67E5\u8BE2\uFF09CLI",
|
|
82
|
-
load: async () => (await import("./chunks/hrm-
|
|
83
|
+
load: async () => (await import("./chunks/hrm-UNKCCCGP.js")).hrmShortcut
|
|
83
84
|
}),
|
|
84
85
|
lazyShortcut({
|
|
85
86
|
name: "mail",
|
|
86
87
|
description: "\u6CDB\u5FAEE10\u90AE\u4EF6\u7BA1\u7406 CLI",
|
|
87
|
-
load: async () => (await import("./chunks/mail-
|
|
88
|
+
load: async () => (await import("./chunks/mail-M3HJF5ER.js")).mailShortcut
|
|
88
89
|
}),
|
|
89
90
|
lazyShortcut({
|
|
90
91
|
name: "meeting",
|
|
91
92
|
description: "\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406 CLI\uFF08\u6807\u51C6\u7248\uFF1A\u67E5\u8BE2/\u51B2\u7A81/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09",
|
|
92
|
-
load: async () => (await import("./chunks/meeting-
|
|
93
|
+
load: async () => (await import("./chunks/meeting-C67EHQ4Z.js")).meetingShortcut
|
|
93
94
|
}),
|
|
94
95
|
lazyShortcut({
|
|
95
96
|
name: "okr",
|
|
96
97
|
description: "\u6CDB\u5FAEE10 OKR \u76EE\u6807\u7BA1\u7406 CLI\uFF08\u76EE\u6807\u67E5\u8BE2/\u65B0\u5EFA/\u7F16\u8F91\u3001\u5173\u952E\u6210\u679C\u3001\u76EE\u6807\u5BF9\u9F50\u3001\u8BC4\u8BBA\uFF09",
|
|
97
|
-
load: async () => (await import("./chunks/okr-
|
|
98
|
+
load: async () => (await import("./chunks/okr-EVX7FB5G.js")).okrShortcut
|
|
98
99
|
}),
|
|
99
100
|
lazyShortcut({
|
|
100
101
|
name: "plan",
|
|
101
102
|
description: "\u6CDB\u5FAEE10\u8BA1\u5212\u62A5\u544A CLI\uFF08\u67E5\u8BE2/\u65B0\u5EFA/\u4FEE\u6539/\u53D1\u5E03/\u64A4\u56DE/\u63D0\u4EA4\u63D0\u9192/\u8BC4\u8BBA\uFF09",
|
|
102
|
-
load: async () => (await import("./chunks/plan-
|
|
103
|
+
load: async () => (await import("./chunks/plan-2QJQEPBO.js")).planShortcut
|
|
103
104
|
}),
|
|
104
105
|
lazyShortcut({
|
|
105
106
|
name: "esb",
|
|
106
107
|
description: "\u6CDB\u5FAEE10 ESB \u4E2D\u5FC3\u81EA\u5B9A\u4E49\u89E6\u53D1\u52A8\u4F5C\u6D41 CLI",
|
|
107
|
-
load: async () => (await import("./chunks/esb-
|
|
108
|
+
load: async () => (await import("./chunks/esb-4BQHNP5C.js")).esbShortcut
|
|
108
109
|
}),
|
|
109
110
|
lazyShortcut({
|
|
110
111
|
name: "ebuilder-form",
|
|
111
112
|
description: "\u6CDB\u5FAEE10 eBuilder \u8868\u5355\u83DC\u5355\u3001\u5217\u8868\u548C\u8868\u5355\u6570\u636E CLI",
|
|
112
|
-
load: async () => (await import("./chunks/ebuilder-form-
|
|
113
|
+
load: async () => (await import("./chunks/ebuilder-form-GWDTKEI2.js")).ebuilderFormShortcut
|
|
113
114
|
}),
|
|
114
115
|
lazyShortcut({
|
|
115
116
|
name: "jiuchuanhui",
|
|
116
117
|
description: "\u6CDB\u5FAEE10\u4E5D\u6C1A\u6C47\u8425\u9500\u7BA1\u7406 CLI\uFF08\u5BA2\u6237/\u8054\u7CFB\u4EBA/\u5546\u673A/\u7EBF\u7D22/\u8054\u7CFB\u8BA1\u5212/\u516C\u6D77\uFF09",
|
|
117
|
-
load: async () => (await import("./chunks/jiuchuanhui-
|
|
118
|
+
load: async () => (await import("./chunks/jiuchuanhui-ASFZBMPU.js")).jiuchuanhuiShortcut
|
|
118
119
|
}),
|
|
119
120
|
lazyShortcut({
|
|
120
121
|
name: "asset",
|
|
121
122
|
description: "E10 \u8D44\u4EA7\u7BA1\u7406\uFF08\u8D44\u7BA1\u5BB6\uFF09CLI",
|
|
122
|
-
load: async () => (await import("./chunks/asset-
|
|
123
|
+
load: async () => (await import("./chunks/asset-ZOJVBWZH.js")).assetShortcut
|
|
123
124
|
}),
|
|
124
125
|
lazyShortcut({
|
|
125
126
|
name: "asset-idle",
|
|
126
127
|
description: "E10 \u95F2\u7F6E\u8D44\u4EA7\u5224\u5B9A\u7ED3\u679C\u67E5\u8BE2 CLI\uFF08\u5206\u9875\u83B7\u53D6/\u805A\u5408\u7EDF\u8BA1\uFF09",
|
|
127
|
-
load: async () => (await import("./chunks/asset-idle-
|
|
128
|
+
load: async () => (await import("./chunks/asset-idle-XGB5IPGT.js")).assetIdleShortcut
|
|
128
129
|
}),
|
|
129
130
|
lazyShortcut({
|
|
130
131
|
name: "im",
|
|
131
132
|
description: "\u6CDB\u5FAEE10\u6613\u79D2\u529E\uFF08\u5373\u65F6\u901A\u8BAF\uFF09CLI",
|
|
132
|
-
load: async () => (await import("./chunks/im-
|
|
133
|
+
load: async () => (await import("./chunks/im-NJB7ZYMH.js")).imShortcut
|
|
133
134
|
}),
|
|
134
135
|
lazyShortcut({
|
|
135
136
|
name: "project",
|
|
136
137
|
description: "\u6CDB\u5FAEE10\u4E8B\u4E95\u7136\u9879\u76EE\u7BA1\u7406 CLI\uFF08\u9879\u76EE/\u4EFB\u52A1\u67E5\u8BE2\u4E0E\u786E\u8BA4\u5199\u5165\uFF09",
|
|
137
|
-
load: async () => (await import("./chunks/project-
|
|
138
|
+
load: async () => (await import("./chunks/project-XELELW2T.js")).projectShortcut
|
|
138
139
|
}),
|
|
139
140
|
lazyShortcut({
|
|
140
141
|
name: "workflow",
|
|
141
142
|
description: "\u6CDB\u5FAEE10\u6D41\u7A0B\u667A\u80FD\u52A9\u624B CLI\uFF08\u67E5\u8BE2/\u67E5\u770B/\u64CD\u4F5C/\u6279\u91CF/\u53D1\u8D77/\u4FEE\u6539\uFF09",
|
|
142
|
-
load: async () => (await import("./chunks/workflow-
|
|
143
|
+
load: async () => (await import("./chunks/workflow-BSYT5TGL.js")).workflowShortcut
|
|
143
144
|
}),
|
|
144
145
|
lazyShortcut({
|
|
145
146
|
name: "blog",
|
|
146
147
|
description: "\u6CDB\u5FAEE10\u5DE5\u4F5C\u65E5\u62A5 CLI\uFF08\u67E5\u8BE2/\u53D1\u5E03/\u7F16\u8F91/\u8BC4\u8BBA/\u70B9\u8D5E/\u63D0\u9192/\u5BFC\u51FA\uFF09",
|
|
147
|
-
load: async () => (await import("./chunks/blog-
|
|
148
|
+
load: async () => (await import("./chunks/blog-QSHLZSFW.js")).blogShortcut
|
|
148
149
|
}),
|
|
149
150
|
lazyShortcut({
|
|
150
151
|
name: "caizhilian",
|
|
151
152
|
description: "\u6CDB\u5FAEE10\u91C7\u77E5\u8FDE\uFF08\u6587\u6863\u4E2D\u5FC3\uFF09CLI",
|
|
152
|
-
load: async () => (await import("./chunks/caizhilian-
|
|
153
|
+
load: async () => (await import("./chunks/caizhilian-KCQYFH72.js")).caizhilianShortcut
|
|
153
154
|
}),
|
|
154
155
|
lazyShortcut({
|
|
155
156
|
name: "contract",
|
|
156
157
|
description: "\u6CDB\u5FAEE10\u4ECA\u627F\u8FBE\u5408\u540C\u7BA1\u7406 CLI",
|
|
157
|
-
load: async () => (await import("./chunks/contract-
|
|
158
|
+
load: async () => (await import("./chunks/contract-3QLAGYQL.js")).contractShortcut
|
|
159
|
+
}),
|
|
160
|
+
lazyShortcut({
|
|
161
|
+
name: "reception",
|
|
162
|
+
description: "\u6CDB\u5FAE\u5BA2\u6237\u53C2\u89C2\u63A5\u5F85\u6D41\u7A0B CLI\uFF08\u9762\u677F/\u884C\u7A0B\u5355\u4E0E\u5185\u90E8\u65B9\u6848/\u586B\u5355\u9875\u9884\u586B\uFF09",
|
|
163
|
+
load: async () => (await import("./chunks/reception-5WITA44R.js")).receptionShortcut
|
|
158
164
|
})
|
|
159
165
|
];
|
|
160
166
|
function shortcutMetadata() {
|