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
|
@@ -3,20 +3,21 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
dayOf,
|
|
5
5
|
filterUsages,
|
|
6
|
+
inferRoomFloor,
|
|
6
7
|
invalidateDayUsages,
|
|
7
8
|
loadDayUsages,
|
|
8
9
|
loadRooms,
|
|
9
10
|
recommendRooms
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4EXOIQDI.js";
|
|
11
12
|
import {
|
|
12
13
|
cacheScopeSuffix,
|
|
13
14
|
readCache,
|
|
14
15
|
writeCache
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DGMYACGJ.js";
|
|
16
17
|
import {
|
|
17
18
|
fetchEbAppSettings,
|
|
18
19
|
findCommonFreeSlots
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LXFVWZLM.js";
|
|
20
21
|
import {
|
|
21
22
|
EB_BASE,
|
|
22
23
|
SCHEMA_DATETIME_MINUTE,
|
|
@@ -25,7 +26,11 @@ import {
|
|
|
25
26
|
meetingValidationError,
|
|
26
27
|
schemaOf,
|
|
27
28
|
writeBody
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JWWTI63L.js";
|
|
30
|
+
import {
|
|
31
|
+
CONTINUATION_TTL_MS,
|
|
32
|
+
CONTINUATION_TTL_SECONDS
|
|
33
|
+
} from "./chunk-7BDPM5ST.js";
|
|
29
34
|
|
|
30
35
|
// src/shortcuts/meeting/operations/eb/create-flow.ts
|
|
31
36
|
import { existsSync } from "node:fs";
|
|
@@ -72,15 +77,62 @@ function pickRememberedFlow(launchable, remembered) {
|
|
|
72
77
|
return launchable.find((probe) => probe.workflowId === remembered.workflowId) ?? null;
|
|
73
78
|
}
|
|
74
79
|
|
|
80
|
+
// src/shortcuts/meeting/operations/eb/draft-memory.ts
|
|
81
|
+
var DRAFT_TTL_MS = 30 * 60 * 1e3;
|
|
82
|
+
var MAX_DRAFTS = 30;
|
|
83
|
+
function draftKey(scope, userId) {
|
|
84
|
+
return `draft-v1-${scope}-${userId}`;
|
|
85
|
+
}
|
|
86
|
+
function normName(name) {
|
|
87
|
+
return name.trim().replace(/\s+/g, "\xA4");
|
|
88
|
+
}
|
|
89
|
+
async function loadAll(env) {
|
|
90
|
+
const session = await env.host.getSession();
|
|
91
|
+
const userId = String(session?.userId ?? "").trim();
|
|
92
|
+
const key = draftKey(await cacheScopeSuffix(env), userId);
|
|
93
|
+
const hit = await readCache(env, key, { ttlMs: DRAFT_TTL_MS * 2 });
|
|
94
|
+
const now = Date.now();
|
|
95
|
+
const all = {};
|
|
96
|
+
for (const [name, draft] of Object.entries(hit?.data ?? {})) {
|
|
97
|
+
if (draft && now - Number(draft.updatedAt || 0) <= DRAFT_TTL_MS) all[name] = draft;
|
|
98
|
+
}
|
|
99
|
+
return { key, all };
|
|
100
|
+
}
|
|
101
|
+
async function loadMeetingDraft(env, mtName) {
|
|
102
|
+
const name = normName(mtName);
|
|
103
|
+
if (!name) return null;
|
|
104
|
+
const { all } = await loadAll(env);
|
|
105
|
+
return all[name] ?? null;
|
|
106
|
+
}
|
|
107
|
+
async function saveMeetingDraft(env, draft) {
|
|
108
|
+
const name = normName(draft.mtName);
|
|
109
|
+
if (!name || !draft.begin) return;
|
|
110
|
+
const { key, all } = await loadAll(env);
|
|
111
|
+
all[name] = { ...draft, updatedAt: Date.now() };
|
|
112
|
+
const names = Object.keys(all);
|
|
113
|
+
if (names.length > MAX_DRAFTS) {
|
|
114
|
+
names.sort((a, b) => all[a].updatedAt - all[b].updatedAt).slice(0, names.length - MAX_DRAFTS).forEach((old) => delete all[old]);
|
|
115
|
+
}
|
|
116
|
+
await writeCache(env, key, all);
|
|
117
|
+
}
|
|
118
|
+
async function clearMeetingDraft(env, mtName) {
|
|
119
|
+
const name = normName(mtName);
|
|
120
|
+
if (!name) return;
|
|
121
|
+
const { key, all } = await loadAll(env);
|
|
122
|
+
if (!all[name]) return;
|
|
123
|
+
delete all[name];
|
|
124
|
+
await writeCache(env, key, all);
|
|
125
|
+
}
|
|
126
|
+
|
|
75
127
|
// src/shortcuts/meeting/operations/eb/person-cache.ts
|
|
76
|
-
var PERSON_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
128
|
+
var PERSON_TTL_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
77
129
|
var BATCH_MAX = 100;
|
|
78
130
|
function personKey(scope) {
|
|
79
131
|
return `person-v1-${scope}`;
|
|
80
132
|
}
|
|
81
133
|
async function readAll(env) {
|
|
82
134
|
const scope = await cacheScopeSuffix(env);
|
|
83
|
-
const hit = await readCache(env, personKey(scope), { ttlMs: PERSON_TTL_MS *
|
|
135
|
+
const hit = await readCache(env, personKey(scope), { ttlMs: PERSON_TTL_MS * 2 });
|
|
84
136
|
if (!hit) return {};
|
|
85
137
|
const now = Date.now();
|
|
86
138
|
const fresh = {};
|
|
@@ -112,7 +164,7 @@ async function resolvePersonsCached(env, ids, options = {}) {
|
|
|
112
164
|
for (let index = 0; index < missing.length; index += BATCH_MAX) {
|
|
113
165
|
const chunk = missing.slice(index, index + BATCH_MAX);
|
|
114
166
|
try {
|
|
115
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
167
|
+
const { hrmEmployeeOperations } = await import("./employee-NOHNXC46.js");
|
|
116
168
|
const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
|
|
117
169
|
if (!batch) break;
|
|
118
170
|
const result = await batch.handler({ ids: chunk }, env);
|
|
@@ -174,9 +226,9 @@ function workflowEnv(env) {
|
|
|
174
226
|
return env;
|
|
175
227
|
}
|
|
176
228
|
async function loadCreateForm(env, workflowId) {
|
|
177
|
-
const { createWorkflowHost } = await import("./host-
|
|
178
|
-
const { createWorkflowContinuationSigner } = await import("./continuation-
|
|
179
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
229
|
+
const { createWorkflowHost } = await import("./host-TUOIOEMC.js");
|
|
230
|
+
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
231
|
+
const { getWorkflowOperation } = await import("./registry-AQVGHUM6.js");
|
|
180
232
|
const wfEnv = {
|
|
181
233
|
...workflowEnv(env),
|
|
182
234
|
host: createWorkflowHost(env.ctx),
|
|
@@ -218,7 +270,7 @@ async function resolvePersonTokens(env, tokens) {
|
|
|
218
270
|
}
|
|
219
271
|
if (nameLike.length > 0) {
|
|
220
272
|
try {
|
|
221
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
273
|
+
const { hrmEmployeeOperations } = await import("./employee-NOHNXC46.js");
|
|
222
274
|
const query = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.query");
|
|
223
275
|
for (const name of nameLike) {
|
|
224
276
|
if (!query) break;
|
|
@@ -281,7 +333,7 @@ async function resolveAddressRoom(env, input) {
|
|
|
281
333
|
const text = String(input ?? "").trim();
|
|
282
334
|
if (!text) return null;
|
|
283
335
|
const ref = parseRoomRef(text);
|
|
284
|
-
const { loadRooms: loadRooms2 } = await import("./room-recommend-
|
|
336
|
+
const { loadRooms: loadRooms2 } = await import("./room-recommend-CNWE5WQK.js");
|
|
285
337
|
let rooms = [];
|
|
286
338
|
try {
|
|
287
339
|
rooms = (await loadRooms2(env, {})).rooms;
|
|
@@ -303,7 +355,7 @@ async function resolveRoomValue(env, input) {
|
|
|
303
355
|
const ref = parseRoomRef(text);
|
|
304
356
|
if (ref.id) {
|
|
305
357
|
try {
|
|
306
|
-
const { getMeetingOperation } = await import("./registry-
|
|
358
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
307
359
|
const detail = await getMeetingOperation("meeting.eb.room.detail").handler({ id: ref.id }, env);
|
|
308
360
|
const main = detail?.data?.mainTable ?? detail?.data?.data?.mainTable ?? {};
|
|
309
361
|
const name = String(main.room_name ?? "").trim() || ref.name || "";
|
|
@@ -328,6 +380,12 @@ async function shapeBrowserValues(env, values) {
|
|
|
328
380
|
readable.address = String(shaped.address);
|
|
329
381
|
}
|
|
330
382
|
}
|
|
383
|
+
if (shaped.begin_datetime !== void 0 && String(shaped.begin_datetime).trim() !== "") {
|
|
384
|
+
readable.begin_datetime = String(shaped.begin_datetime).trim();
|
|
385
|
+
}
|
|
386
|
+
if (shaped.end_datetime !== void 0 && String(shaped.end_datetime).trim() !== "") {
|
|
387
|
+
readable.end_datetime = String(shaped.end_datetime).trim();
|
|
388
|
+
}
|
|
331
389
|
const personFields = ["hrm_members", "caller", "contacter"];
|
|
332
390
|
const idPool = [];
|
|
333
391
|
for (const key of personFields) {
|
|
@@ -409,7 +467,7 @@ async function shapeBrowserValues(env, values) {
|
|
|
409
467
|
const nameOnly = rows.filter((row) => row.id === "" && row.name !== "");
|
|
410
468
|
if (nameOnly.length > 0) {
|
|
411
469
|
try {
|
|
412
|
-
const { getMeetingOperation } = await import("./registry-
|
|
470
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
413
471
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
414
472
|
for (const row of nameOnly) {
|
|
415
473
|
const found = await search.handler({ keyword: row.name, limit: 5 }, env).catch(() => null);
|
|
@@ -603,7 +661,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
|
|
|
603
661
|
const missing = [];
|
|
604
662
|
if (entries.length > 0) {
|
|
605
663
|
try {
|
|
606
|
-
const { getMeetingOperation } = await import("./registry-
|
|
664
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
607
665
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
608
666
|
for (const entry of entries) {
|
|
609
667
|
if (entry.contacts.length > 0) continue;
|
|
@@ -862,8 +920,8 @@ function shouldAutoPickFlow(args) {
|
|
|
862
920
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
863
921
|
const started = Date.now();
|
|
864
922
|
try {
|
|
865
|
-
const { buildImEnv } = await import("./group-chat-
|
|
866
|
-
const { getImOperation } = await import("./registry-
|
|
923
|
+
const { buildImEnv } = await import("./group-chat-KL3HFKRM.js");
|
|
924
|
+
const { getImOperation } = await import("./registry-PVUZQDDQ.js");
|
|
867
925
|
const imEnv = await buildImEnv(env);
|
|
868
926
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
869
927
|
{ groupId, file: filePath },
|
|
@@ -975,7 +1033,9 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
975
1033
|
description: "\u7ED3\u675F\u65F6\u95F4\uFF08yyyy-MM-dd HH:mm\uFF09\uFF1B\u4E0D\u4F20\u5219\u6309 durationMinutes \u4ECE\u5F00\u59CB\u65F6\u95F4\u63A8\u7B97\uFF08\u9ED8\u8BA4 60 \u5206\u949F\uFF09"
|
|
976
1034
|
},
|
|
977
1035
|
mt_desc: { type: "string", description: "\u4F1A\u8BAE\u5185\u5BB9/\u8BF4\u660E" },
|
|
978
|
-
address: { type: "string", description:
|
|
1036
|
+
address: { type: "string", description: '\u4F1A\u8BAE\u5BA4\uFF08\u540D\u79F0\u6216 id\uFF09\uFF1B\u4E5F\u53EF\u76F4\u63A5\u5199\u697C\u5C42\uFF08"\u4E00\u697C/1F/3\u5C42"\uFF09\uFF0CCLI \u4F1A\u6309\u697C\u5C42\u7ED9\u5019\u9009' },
|
|
1037
|
+
floor: { type: "number", description: "\u697C\u5C42\uFF081=\u4E00\u697C\uFF09\uFF1A\u548C address \u4E8C\u9009\u4E00\uFF0C\u6309\u540D\u79F0\u63A8\u65AD\u697C\u5C42\u8FC7\u6EE4\u5019\u9009\uFF08120\u4F1A\u8BAE\u5BA4=1\u697C\u30011007=10\u697C\uFF09" },
|
|
1038
|
+
askRoom: { type: "boolean", description: "\u9ED8\u8BA4 false\uFF1A\u4E0D\u6307\u5B9A\u5730\u70B9\u65F6 CLI \u76F4\u63A5\u6309\u63A8\u8350\u7B97\u6CD5\u5B9A\u4E00\u95F4\uFF1B\u4F20 true \u624D\u8FD4\u56DE\u5019\u9009\u8BA9\u7528\u6237\u6311" },
|
|
979
1039
|
customize_address: { type: "string", description: "\u81EA\u5B9A\u4E49\u4F1A\u8BAE\u5730\u70B9" },
|
|
980
1040
|
hrm_members: { type: "string", description: "\u53C2\u4F1A\u4EBA\u5458\uFF08\u9017\u53F7\u5206\u9694\u5458\u5DE5 id \u6216\u59D3\u540D\uFF0C\u6309\u6D41\u7A0B\u8868\u5355\u8981\u6C42\uFF09" },
|
|
981
1041
|
total_member: { type: "number", description: "\u53C2\u4F1A\u4EBA\u6570" },
|
|
@@ -1106,9 +1166,23 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1106
1166
|
}
|
|
1107
1167
|
}
|
|
1108
1168
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1109
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1169
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-YYNYBQIE.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1110
1170
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1111
|
-
|
|
1171
|
+
let timeConfirmed = args.timeConfirmed === true || slotConfirmed;
|
|
1172
|
+
const draft = await loadMeetingDraft(env, String(args.mt_name ?? "")).catch(() => null);
|
|
1173
|
+
let draftReusedTime = false;
|
|
1174
|
+
if (draft) {
|
|
1175
|
+
if (!/\d{1,2}:\d{2}/.test(beginText) && draft.begin) {
|
|
1176
|
+
beginText = draft.begin;
|
|
1177
|
+
endText = draft.end;
|
|
1178
|
+
timeConfirmed = true;
|
|
1179
|
+
slotConfirmed = true;
|
|
1180
|
+
draftReusedTime = true;
|
|
1181
|
+
} else if (beginText === draft.begin && endText === draft.end && args.timeConfirmed !== true) {
|
|
1182
|
+
timeConfirmed = true;
|
|
1183
|
+
draftReusedTime = true;
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1112
1186
|
const callerWorkflowId = String(args.workflowId ?? "").trim();
|
|
1113
1187
|
const earlyWorkflowNote = callerWorkflowId === "" ? "" : `\u26D4 \u4F60\u4F20\u4E86 workflowId=${callerWorkflowId}\uFF0C\u4F46**\u6D41\u7A0B\u8FD8\u6CA1\u5230\u786E\u8BA4\u6B65\u9AA4**\uFF08\u987A\u5E8F\u662F \u540D\u79F0\u2192\u65F6\u95F4\u2192\u53C2\u4F1A\u4EBA\u2192\u5730\u70B9\u2192\u6D41\u7A0B\uFF09\u3002\u672C\u6B21\u53EA\u5904\u7406\u65F6\u95F4/\u5730\u70B9\uFF1B\u26D4 \u4E0D\u8981\u5728\u56DE\u590D\u91CC\u8BF4"\u6309 X \u6D41\u7A0B\u53D1\u8D77"\u2014\u2014\u56DB\u8981\u7D20\u5B9A\u5B8C\u540E CLI \u4F1A\u8FD4\u56DE\u6D41\u7A0B\u9009\u9879\u8BA9\u7528\u6237\u70B9\u3002`;
|
|
1114
1188
|
const beginHasTime = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}/.test(beginText);
|
|
@@ -1121,7 +1195,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1121
1195
|
if (!beginHasTime || !timeConfirmed) {
|
|
1122
1196
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1123
1197
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1124
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1198
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
1125
1199
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1126
1200
|
{
|
|
1127
1201
|
dateFrom: day2,
|
|
@@ -1178,6 +1252,11 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1178
1252
|
});
|
|
1179
1253
|
}
|
|
1180
1254
|
let addressInput = args.address;
|
|
1255
|
+
let draftReusedRoom = false;
|
|
1256
|
+
if (String(addressInput ?? "").trim() === "" && draft?.addressId) {
|
|
1257
|
+
addressInput = draft.addressId;
|
|
1258
|
+
draftReusedRoom = true;
|
|
1259
|
+
}
|
|
1181
1260
|
const hadAddressInput = String(args.address ?? "").trim() !== "";
|
|
1182
1261
|
const day = beginText.slice(0, 10);
|
|
1183
1262
|
const durationMinutes = beginText && endText ? Math.max(15, Math.round((Date.parse(endText.replace(" ", "T")) - Date.parse(beginText.replace(" ", "T"))) / 6e4) || 60) : 60;
|
|
@@ -1209,6 +1288,8 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1209
1288
|
);
|
|
1210
1289
|
const hasCustomer = (Array.isArray(args.crm_members) ? args.crm_members.length > 0 : String(args.crm_members ?? "").trim() !== "") || Boolean(crmMentionedInText) || customerWords;
|
|
1211
1290
|
const dayUsagesTask = enrich && beginText && endText ? loadDayUsages(env, day) : Promise.resolve(null);
|
|
1291
|
+
const floorArg = Number.isFinite(Number(args.floor)) ? Number(args.floor) : null;
|
|
1292
|
+
const floorHint = floorArg ?? (/楼|层|\d+\s*F/iu.test(String(args.address ?? "")) ? inferRoomFloor(String(args.address ?? "")) : null);
|
|
1212
1293
|
const roomTask = enrich && beginText && endText ? (async () => {
|
|
1213
1294
|
const usageData = await dayUsagesTask;
|
|
1214
1295
|
return recommendRooms(env, {
|
|
@@ -1217,6 +1298,8 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1217
1298
|
...roomMemberCount ? { memberCount: roomMemberCount } : {},
|
|
1218
1299
|
// 带客户时优先接待类会议室(2026-11-02 用户口径:加了客户就推接待类)
|
|
1219
1300
|
...hasCustomer ? { hasCustomer: true } : {},
|
|
1301
|
+
// 「一楼」这类楼层诉求:按楼层过滤候选(2026-11-06)
|
|
1302
|
+
...floorHint !== null ? { floor: Number(floorHint) } : {},
|
|
1220
1303
|
// 2026-11-03 用户批准松绑:不再每次强制重拉台账(省 ~1s + 2 请求)。
|
|
1221
1304
|
// 兜底在 recommendRooms 内部:24h 缓存凑不出候选时自动强制重拉一次再算;
|
|
1222
1305
|
// 代价是刚导入的会议室在缓存期可能按名称查不到(按 id 指定不受影响)。
|
|
@@ -1225,9 +1308,39 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1225
1308
|
...usageData ? { dayUsages: usageData.rows } : {}
|
|
1226
1309
|
});
|
|
1227
1310
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4\u63A8\u8350")) : Promise.resolve(null);
|
|
1311
|
+
let floorAutoPick = null;
|
|
1312
|
+
if (floorHint !== null && String(addressInput ?? "").trim() !== "") {
|
|
1313
|
+
const floorRec = await roomTask.catch(() => null);
|
|
1314
|
+
const first = floorRec?.candidates?.[0] ?? floorRec?.best ?? null;
|
|
1315
|
+
if (first?.id) {
|
|
1316
|
+
addressInput = first.id;
|
|
1317
|
+
floorAutoPick = { id: String(first.id), name: String(first.name ?? ""), ...Array.isArray(first.reasons) ? { reasons: first.reasons } : {} };
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
let autoPickedRoom = null;
|
|
1321
|
+
if (floorAutoPick === null && String(addressInput ?? "").trim() === "" && args.allowNoRoom !== true && args.askRoom !== true) {
|
|
1322
|
+
const rec = await roomTask.catch(() => null);
|
|
1323
|
+
const first = rec?.best ?? rec?.candidates?.[0] ?? null;
|
|
1324
|
+
if (first?.id) {
|
|
1325
|
+
addressInput = first.id;
|
|
1326
|
+
autoPickedRoom = { id: String(first.id), name: String(first.name ?? ""), ...Array.isArray(first.reasons) ? { reasons: first.reasons } : {} };
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1228
1329
|
const addressId = String(addressInput ?? "").trim();
|
|
1229
|
-
const roomConfirmed = args.roomConfirmed === true;
|
|
1230
|
-
const
|
|
1330
|
+
const roomConfirmed = args.roomConfirmed === true || draftReusedRoom || floorAutoPick !== null || autoPickedRoom !== null;
|
|
1331
|
+
const checksKey = `${beginText}|${endText}|${memberIds.join(",")}|${addressId}`;
|
|
1332
|
+
const checkNotices = [];
|
|
1333
|
+
const cachedChecks = draft?.checks && draft.checks.key === checksKey && Date.now() - Number(draft.checks.checkedAt || 0) <= 3 * 60 * 1e3 ? draft.checks : null;
|
|
1334
|
+
if (cachedChecks) {
|
|
1335
|
+
checkNotices.push(
|
|
1336
|
+
`\u7A7A\u95F2\u6821\u9A8C\u6CBF\u7528 ${Math.round((Date.now() - cachedChecks.checkedAt) / 1e3)} \u79D2\u524D\u7684\u7ED3\u8BBA\uFF08\u65F6\u95F4/\u53C2\u4F1A\u4EBA/\u4F1A\u8BAE\u5BA4\u90FD\u6CA1\u53D8\uFF0C\u672A\u91CD\u590D\u67E5\u8BE2\uFF09\u3002`
|
|
1337
|
+
);
|
|
1338
|
+
}
|
|
1339
|
+
const roomConflictTask = cachedChecks ? Promise.resolve({
|
|
1340
|
+
room: cachedChecks.roomRecord,
|
|
1341
|
+
hasConflict: cachedChecks.roomHasConflict === true,
|
|
1342
|
+
conflicts: cachedChecks.roomConflicts ?? []
|
|
1343
|
+
}) : enrich && beginText && endText && addressId !== "" ? (async () => {
|
|
1231
1344
|
const room = await resolveAddressRoom(env, addressId);
|
|
1232
1345
|
if (!room) return { unresolved: true, input: addressId };
|
|
1233
1346
|
if (!room.id || room.lookupFailed || room.status !== "0") return { room };
|
|
@@ -1243,21 +1356,24 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1243
1356
|
usageFromCache: usageData.fromCache
|
|
1244
1357
|
};
|
|
1245
1358
|
}
|
|
1246
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1359
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
1247
1360
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1248
1361
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1249
1362
|
env
|
|
1250
1363
|
);
|
|
1251
1364
|
return { room, ...result?.data ?? {} };
|
|
1252
1365
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1253
|
-
const conflictTask = enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1254
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1366
|
+
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1367
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
1255
1368
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1256
1369
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1257
1370
|
env
|
|
1258
1371
|
);
|
|
1259
1372
|
})().catch(noteFailure("\u53C2\u4F1A\u4EBA**\u4F1A\u8BAE\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1260
|
-
const availabilityTask =
|
|
1373
|
+
const availabilityTask = cachedChecks ? Promise.resolve({
|
|
1374
|
+
slots: cachedChecks.freeSlots,
|
|
1375
|
+
...cachedChecks.blockingSummary ? { blockingSummary: cachedChecks.blockingSummary } : {}
|
|
1376
|
+
}) : enrich && beginText && endText && memberIds.length > 0 ? findCommonFreeSlots(env, {
|
|
1261
1377
|
rangeStart: `${day} 00:00`,
|
|
1262
1378
|
rangeEnd: `${day} 23:59`,
|
|
1263
1379
|
durationMinutes,
|
|
@@ -1317,7 +1433,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1317
1433
|
status: "NEEDS_SELECTION",
|
|
1318
1434
|
selectionType: "room",
|
|
1319
1435
|
ui: { component: "choice", multiple: false, recommendedKey: "R1" },
|
|
1320
|
-
message: `\u6CA1\u627E\u5230\u540D\u4E3A\u300C${addressId}\u300D\u7684\u4F1A\u8BAE\u5BA4\uFF08\u4F1A\u8BAE\u5BA4\u53F0\u8D26\u91CC\u6CA1\u6709\u8FD9\u4E2A\u540D\u5B57\uFF09\uFF0C\u672C\u6B21**\u6CA1\u6709\u63D0\u4EA4**\u3002` + (roomOptions.length > 0 ? `\u8BF7\u4ECE\u4E0B\u9762 ${roomOptions.length} \u4E2A\u5728\u8BE5\u65F6\u6BB5\u7A7A\u95F2\u7684\u4F1A\u8BAE\u5BA4\u91CC\u9009\u4E00\u95F4\uFF0C\u6216\u6838\u5BF9\u4E00\u4E0B\u4F1A\u8BAE\u5BA4\u540D\u79F0` : "\u8BE5\u65F6\u6BB5\u4E5F\u6CA1\u6709\u53EF\u7528\u7684\u7A7A\u95F2\u4F1A\u8BAE\u5BA4\uFF0C\u8BF7\u6539\u4F1A\u8BAE\u65F6\u95F4\u6216\u6539\u7EBF\u4E0A\u4F1A\u8BAE\uFF08allowNoRoom: true\uFF09"),
|
|
1436
|
+
message: floorHint !== null ? `\u300C${addressId}\u300D\u662F\u697C\u5C42\uFF0C\u4E0D\u662F\u623F\u95F4\u540D\uFF1B\u4E0B\u9762\u662F ${floorHint} \u697C\u5728\u8BE5\u65F6\u6BB5\u7A7A\u95F2\u7684\u4F1A\u8BAE\u5BA4\uFF0C\u8BF7\u9009\u4E00\u95F4` + (roomOptions.length > 0 ? "" : "\uFF08\u8BE5\u697C\u5C42\u6682\u65F6\u6CA1\u6709\u7A7A\u95F2\u4F1A\u8BAE\u5BA4\uFF0C\u8BF7\u6539\u697C\u5C42\u6216\u65F6\u95F4\uFF09") : `\u6CA1\u627E\u5230\u540D\u4E3A\u300C${addressId}\u300D\u7684\u4F1A\u8BAE\u5BA4\uFF08\u4F1A\u8BAE\u5BA4\u53F0\u8D26\u91CC\u6CA1\u6709\u8FD9\u4E2A\u540D\u5B57\uFF09\uFF0C\u672C\u6B21**\u6CA1\u6709\u63D0\u4EA4**\u3002` + (roomOptions.length > 0 ? `\u8BF7\u4ECE\u4E0B\u9762 ${roomOptions.length} \u4E2A\u5728\u8BE5\u65F6\u6BB5\u7A7A\u95F2\u7684\u4F1A\u8BAE\u5BA4\u91CC\u9009\u4E00\u95F4\uFF0C\u6216\u6838\u5BF9\u4E00\u4E0B\u4F1A\u8BAE\u5BA4\u540D\u79F0` : "\u8BE5\u65F6\u6BB5\u4E5F\u6CA1\u6709\u53EF\u7528\u7684\u7A7A\u95F2\u4F1A\u8BAE\u5BA4\uFF0C\u8BF7\u6539\u4F1A\u8BAE\u65F6\u95F4\u6216\u6539\u7EBF\u4E0A\u4F1A\u8BAE\uFF08allowNoRoom: true\uFF09"),
|
|
1321
1437
|
workflowPending: true,
|
|
1322
1438
|
options: roomOptions,
|
|
1323
1439
|
recommended: roomOptions[0]?.value ?? null,
|
|
@@ -1594,8 +1710,11 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1594
1710
|
})();
|
|
1595
1711
|
const shaped = await shapeBrowserValues(env, {
|
|
1596
1712
|
mt_name: args.mt_name,
|
|
1597
|
-
|
|
1598
|
-
|
|
1713
|
+
// ⛔ 2026-11-05 修:用户只说「明天下午」时,时间是 CLI 按 time_slot 展开出来的(beginText/endText),
|
|
1714
|
+
// 原始入参 args.begin_datetime 是空的 —— 以前这里直接取 args,表单两个时间字段就空着,
|
|
1715
|
+
// 页面打开后默认成"当前时间"(用户实测:填 11-06 13:00–18:00,表单显示 11-05 17:25)。
|
|
1716
|
+
begin_datetime: beginText || args.begin_datetime,
|
|
1717
|
+
end_datetime: endText || args.end_datetime,
|
|
1599
1718
|
mt_desc: args.mt_desc,
|
|
1600
1719
|
address: addressInput,
|
|
1601
1720
|
customize_address: args.customize_address,
|
|
@@ -1612,7 +1731,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1612
1731
|
const preferredFields = await readFlowFieldMap(env, workflowId);
|
|
1613
1732
|
const { main, mapped, unmapped, resolved: resolvedFields } = mapFields(form.fields, shaped.values, preferredFields);
|
|
1614
1733
|
await writeFlowFieldMap(env, workflowId, form.workflowName, resolvedFields);
|
|
1615
|
-
const warnings = [];
|
|
1734
|
+
const warnings = [...checkNotices];
|
|
1616
1735
|
if (autoFilledPerson.length > 0) {
|
|
1617
1736
|
const labels = autoFilledPerson.map((one) => `\u300C${PERSON_FIELD_LABELS[one.field]}\u300D`).join("");
|
|
1618
1737
|
warnings.push(
|
|
@@ -1667,7 +1786,10 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1667
1786
|
);
|
|
1668
1787
|
} else if (auto.missing.length > 0) {
|
|
1669
1788
|
warnings.push(
|
|
1670
|
-
`\u5DF2\u5199\u300C\u53C2\u4F1A\u5BA2\u6237\u300D\uFF0C\u4F46\u6CA1\u80FD\u81EA\u52A8\u5E26\u51FA\u300C${auto.missing.join("\u3001")}\u300D\u7684\u8054\u7CFB\u4EBA\uFF08CRM \u91CC\
|
|
1789
|
+
`\u5DF2\u5199\u300C\u53C2\u4F1A\u5BA2\u6237\u300D\uFF0C\u4F46\u6CA1\u80FD\u81EA\u52A8\u5E26\u51FA\u300C${auto.missing.join("\u3001")}\u300D\u7684\u8054\u7CFB\u4EBA\uFF08CRM \u91CC\u6CA1\u5EFA\u6863\u8054\u7CFB\u4EBA\uFF09\u3002`
|
|
1790
|
+
// ⛔ 2026-11-05 用户明确:**没有联系人不用问**。建会和邀请函都不依赖客户联系人,
|
|
1791
|
+
// 以前这句提示在引导模型回头问「补充联系人姓名手机号」,属于多余的一轮。
|
|
1792
|
+
// 用户真给了联系人时才会传 crm_member_details,这里不要主动要。
|
|
1671
1793
|
);
|
|
1672
1794
|
}
|
|
1673
1795
|
}
|
|
@@ -1714,9 +1836,19 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1714
1836
|
}
|
|
1715
1837
|
}
|
|
1716
1838
|
const picked = decisions.autoRoom?.picked;
|
|
1839
|
+
if (floorAutoPick) {
|
|
1840
|
+
warnings.push(
|
|
1841
|
+
`\u6309\u697C\u5C42\u81EA\u52A8\u9009\u62E9\u300C${floorAutoPick.name}\u300D\uFF08${(floorAutoPick.reasons ?? []).join("\uFF1B")}\uFF09\uFF1B\u540C\u4E00\u697C\u5C42\u8FD8\u6709\u5176\u5B83\u7A7A\u95F2\u623F\u95F4\uFF0C\u5982\u9700\u66F4\u6362\u76F4\u63A5\u8BF4\u623F\u95F4\u540D`
|
|
1842
|
+
);
|
|
1843
|
+
}
|
|
1844
|
+
if (autoPickedRoom) {
|
|
1845
|
+
warnings.push(
|
|
1846
|
+
`\u672A\u6307\u5B9A\u4F1A\u8BAE\u5BA4 \u2192 \u6309\u63A8\u8350\u9009\u62E9\u300C${autoPickedRoom.name}\u300D\uFF08${(autoPickedRoom.reasons ?? []).join("\uFF1B")}\uFF09\uFF1B\u5982\u9700\u66F4\u6362\u76F4\u63A5\u8BF4\u623F\u95F4\u540D\uFF0C\u6216\u4F20 \`askRoom: true\` \u8BA9 CLI \u8FD4\u56DE\u5019\u9009`
|
|
1847
|
+
);
|
|
1848
|
+
}
|
|
1717
1849
|
if (picked && !hadAddressInput) {
|
|
1718
1850
|
warnings.push(
|
|
1719
|
-
`\u672A\u6307\u5B9A\u4F1A\u8BAE\u5BA4 \u2192 \u5DF2\u81EA\u52A8\u9009\u62E9\u300C${picked.name}\u300D\uFF08${(picked.reasons ?? []).join("\uFF1B")}\uFF09\uFF1B\u53E6\u6709\u5019\u9009 ${(decisions.roomOptions ?? []).slice(1).map((item) => item.label).join(" / ") || "\u65E0"}`
|
|
1851
|
+
draftReusedRoom ? `\u4F1A\u8BAE\u5730\u70B9\u6CBF\u7528\u4F60\u4E0A\u6B21\u786E\u8BA4\u7684\u300C${picked.name}\u300D\uFF08\u672C\u6B21\u6CA1\u518D\u4F20\u4F1A\u8BAE\u5BA4\uFF09\uFF1B\u5982\u9700\u66F4\u6362\u8BF7\u76F4\u63A5\u8BF4\u623F\u95F4\u540D` : `\u672A\u6307\u5B9A\u4F1A\u8BAE\u5BA4 \u2192 \u5DF2\u81EA\u52A8\u9009\u62E9\u300C${picked.name}\u300D\uFF08${(picked.reasons ?? []).join("\uFF1B")}\uFF09\uFF1B\u53E6\u6709\u5019\u9009 ${(decisions.roomOptions ?? []).slice(1).map((item) => item.label).join(" / ") || "\u65E0"}`
|
|
1720
1852
|
);
|
|
1721
1853
|
}
|
|
1722
1854
|
const slotOptions = decisions.slotOptions ?? [];
|
|
@@ -1787,8 +1919,28 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1787
1919
|
},
|
|
1788
1920
|
fingerprint: JSON.stringify({ workflowId, main, ...detailPayload ? { details: detailPayload } : {} })
|
|
1789
1921
|
},
|
|
1790
|
-
|
|
1922
|
+
CONTINUATION_TTL_MS
|
|
1791
1923
|
);
|
|
1924
|
+
await saveMeetingDraft(env, {
|
|
1925
|
+
mtName: String(args.mt_name ?? args.mt_subject ?? ""),
|
|
1926
|
+
begin: beginText,
|
|
1927
|
+
end: endText,
|
|
1928
|
+
...addressId !== "" ? { addressId, addressName: confirmedAddressLabel } : {},
|
|
1929
|
+
memberIds,
|
|
1930
|
+
// 校验结论一并记住:下一轮同样时间/参会人直接复用(3 分钟内)
|
|
1931
|
+
checks: cachedChecks ?? {
|
|
1932
|
+
key: checksKey,
|
|
1933
|
+
checkedAt: Date.now(),
|
|
1934
|
+
addressKey: addressId,
|
|
1935
|
+
memberConflicts,
|
|
1936
|
+
freeSlots: freeSlots.map((slot) => ({ begin: slot.begin, end: slot.end })),
|
|
1937
|
+
...free?.blockingSummary ? { blockingSummary: String(free.blockingSummary) } : {},
|
|
1938
|
+
// 会议室占用结论一起记:下一轮同房同时段直接复用(用户 2026-11-06 明确要求)
|
|
1939
|
+
roomHasConflict: roomConflictData?.hasConflict === true,
|
|
1940
|
+
roomConflicts: Array.isArray(roomConflictData?.conflicts) ? roomConflictData.conflicts : [],
|
|
1941
|
+
...roomConflictData?.room ? { roomRecord: roomConflictData.room } : {}
|
|
1942
|
+
}
|
|
1943
|
+
}).catch(() => void 0);
|
|
1792
1944
|
return meetingSuccess(
|
|
1793
1945
|
"meeting.eb.meeting.create.flow.prepare",
|
|
1794
1946
|
{
|
|
@@ -1822,7 +1974,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1822
1974
|
...Object.keys(decisions).length > 0 ? { decisions } : {}
|
|
1823
1975
|
},
|
|
1824
1976
|
continuation,
|
|
1825
|
-
expiresInSeconds:
|
|
1977
|
+
expiresInSeconds: CONTINUATION_TTL_SECONDS
|
|
1826
1978
|
},
|
|
1827
1979
|
warnings.length > 0 ? { warnings } : {}
|
|
1828
1980
|
);
|
|
@@ -1853,7 +2005,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
1853
2005
|
});
|
|
1854
2006
|
};
|
|
1855
2007
|
const readBack = async () => {
|
|
1856
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2008
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
1857
2009
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
1858
2010
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
1859
2011
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -1880,7 +2032,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
1880
2032
|
const fields = payload?.invitationFields ?? {};
|
|
1881
2033
|
const started = Date.now();
|
|
1882
2034
|
try {
|
|
1883
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2035
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
1884
2036
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
1885
2037
|
const rendered = await render.handler(
|
|
1886
2038
|
{
|
|
@@ -1951,9 +2103,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
1951
2103
|
throw meetingValidationError("context_mismatch", "\u786E\u8BA4\u4E0A\u4E0B\u6587\u5DF2\u53D8\u5316\uFF08\u79DF\u6237\u6216\u767B\u5F55\u8D26\u53F7\u4E0D\u540C\uFF09\uFF0C\u8BF7\u91CD\u65B0\u6267\u884C prepare");
|
|
1952
2104
|
}
|
|
1953
2105
|
const payload = lease?.payload ?? {};
|
|
1954
|
-
const { createWorkflowHost } = await import("./host-
|
|
1955
|
-
const { createWorkflowContinuationSigner } = await import("./continuation-
|
|
1956
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2106
|
+
const { createWorkflowHost } = await import("./host-TUOIOEMC.js");
|
|
2107
|
+
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2108
|
+
const { getWorkflowOperation } = await import("./registry-AQVGHUM6.js");
|
|
1957
2109
|
const wfEnv = {
|
|
1958
2110
|
...workflowEnv(env),
|
|
1959
2111
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2003,7 +2155,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2003
2155
|
const groupPayload2 = payload?.groupChat;
|
|
2004
2156
|
if (groupPayload2) {
|
|
2005
2157
|
try {
|
|
2006
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2158
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-KL3HFKRM.js");
|
|
2007
2159
|
groupChat2 = {
|
|
2008
2160
|
...await ensureMeetingGroupChat(env, {
|
|
2009
2161
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2019,7 +2171,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2019
2171
|
}
|
|
2020
2172
|
if (groupChat2 && groupChat2.ok) {
|
|
2021
2173
|
try {
|
|
2022
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2174
|
+
const { savePendingForm } = await import("./group-chat-KL3HFKRM.js");
|
|
2023
2175
|
await savePendingForm(env, {
|
|
2024
2176
|
workflowId: String(payload.workflowId ?? ""),
|
|
2025
2177
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2086,7 +2238,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2086
2238
|
let meetingId = "";
|
|
2087
2239
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2088
2240
|
if (waitSeconds > 0) {
|
|
2089
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2241
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
2090
2242
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2091
2243
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2092
2244
|
const pollStart = Date.now();
|
|
@@ -2136,7 +2288,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2136
2288
|
if (groupPayload) {
|
|
2137
2289
|
const groupStart = Date.now();
|
|
2138
2290
|
try {
|
|
2139
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2291
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-KL3HFKRM.js");
|
|
2140
2292
|
const group = await ensureMeetingGroupChat(env, {
|
|
2141
2293
|
meetingName: String(payload.mtName ?? ""),
|
|
2142
2294
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2168,7 +2320,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2168
2320
|
if (meetingId) {
|
|
2169
2321
|
const invitationStart = Date.now();
|
|
2170
2322
|
try {
|
|
2171
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2323
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
2172
2324
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2173
2325
|
const rendered = await render.handler(
|
|
2174
2326
|
{
|
|
@@ -2202,6 +2354,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2202
2354
|
invitation.sentToGroup = { groupId: inviteGroupId, ok: sent.ok };
|
|
2203
2355
|
timings.invitationSendMs = sent.ms;
|
|
2204
2356
|
}
|
|
2357
|
+
await clearMeetingDraft(env, String(payload.mtName ?? "")).catch(() => void 0);
|
|
2205
2358
|
return meetingSuccess(
|
|
2206
2359
|
"meeting.eb.meeting.create.flow.apply",
|
|
2207
2360
|
{
|
|
@@ -2338,7 +2491,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2338
2491
|
`\u4F1A\u8BAE\u540D\u79F0/\u5185\u5BB9\u91CC\u63D0\u5230\u5BA2\u6237\u300C${crmMentioned}\u300D\uFF0C\u4F46\u6CA1\u4F20 crm_members \u2014\u2014 \u63D0\u4EA4\u540E\u300C\u53C2\u4F1A\u5BA2\u6237\u300D\u4F1A\u662F\u7A7A\u7684\u3002\u5148 meeting.eb.crm.search {"keyword":"${crmMentioned}"} \u62FF items[].customerId\uFF0C\u518D\u628A crm_members:[{"id":"<customerId>","name":"<\u5B8C\u6574\u5BA2\u6237\u540D>"}] \u4E00\u8D77\u4F20\uFF08\u5FC5\u987B\u5E26\u540D\u79F0\uFF0C\u53EA\u7ED9 id \u4F1A\u88AB\u9759\u9ED8\u5B58\u7A7A\uFF09\uFF1B\u786E\u5B9E\u4E0D\u9700\u8981\u586B\u53C2\u4F1A\u5BA2\u6237\u5C31\u4F20 crm_skip:true\u3002`
|
|
2339
2492
|
);
|
|
2340
2493
|
}
|
|
2341
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2494
|
+
const { getMeetingOperation } = await import("./registry-XPWPGHYE.js");
|
|
2342
2495
|
const prepareStartedAt = Date.now();
|
|
2343
2496
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2344
2497
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2436,7 +2589,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2436
2589
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2437
2590
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2438
2591
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2439
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2592
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-YYNYBQIE.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2440
2593
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2441
2594
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2442
2595
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|