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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { ExitCode, isCliError, toErrorEnvelope } from '../../core/errors.js';
|
|
3
|
+
import { reportPlatformError } from '../../core/error-codes.js';
|
|
3
4
|
import { createJiuchuanhuiContinuationSigner } from './continuation.js';
|
|
4
5
|
import { createJiuchuanhuiHost } from './host.js';
|
|
5
6
|
import { jiuchuanhuiManifest } from './manifest.js';
|
|
@@ -82,6 +83,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
82
83
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
83
84
|
}
|
|
84
85
|
catch (error) {
|
|
86
|
+
reportPlatformError(error);
|
|
85
87
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
86
88
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
87
89
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
|
|
1
2
|
import { jiuchuanhuiConfirmationError, jiuchuanhuiPartialError, jiuchuanhuiValidationError, isJiuchuanhuiNetworkError, } from '../errors.js';
|
|
2
3
|
import { asObject, asPositiveString, byIdBody, datasBody, listBody, listRecords, pagingFrom, resultDataIds, sessionMatches, stripForbiddenKeys, workflow, } from './shared.js';
|
|
3
4
|
/**
|
|
@@ -32,7 +33,7 @@ export class DatajsonWritePrepareOperation {
|
|
|
32
33
|
data: {
|
|
33
34
|
preview,
|
|
34
35
|
continuation: continuationToken,
|
|
35
|
-
expiresInSeconds:
|
|
36
|
+
expiresInSeconds: CONTINUATION_TTL_SECONDS,
|
|
36
37
|
workflow: workflow(this.applyOperation, 'AWAITING_CONFIRMATION'),
|
|
37
38
|
},
|
|
38
39
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
|
|
1
2
|
import { jiuchuanhuiConfirmationError, jiuchuanhuiPartialError, jiuchuanhuiValidationError, isJiuchuanhuiNetworkError, } from '../errors.js';
|
|
2
3
|
import { asObject, asNonEmptyString, esbBody, esbOutcome, sessionMatches, workflow } from './shared.js';
|
|
3
4
|
/**
|
|
@@ -36,7 +37,7 @@ export class EsbWritePrepareOperation {
|
|
|
36
37
|
data: {
|
|
37
38
|
preview,
|
|
38
39
|
continuation: continuationToken,
|
|
39
|
-
expiresInSeconds:
|
|
40
|
+
expiresInSeconds: CONTINUATION_TTL_SECONDS,
|
|
40
41
|
workflow: workflow(this.applyOperation, 'AWAITING_CONFIRMATION'),
|
|
41
42
|
},
|
|
42
43
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_MS } from '../../core/continuation-ttl.js';
|
|
1
2
|
import { createHmac, randomBytes, timingSafeEqual } from 'node:crypto';
|
|
2
3
|
import { existsSync } from 'node:fs';
|
|
3
4
|
import { chmod, mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
@@ -35,7 +36,7 @@ function signature(payload, key) {
|
|
|
35
36
|
}
|
|
36
37
|
export function createMailContinuationSigner(ctx) {
|
|
37
38
|
return {
|
|
38
|
-
async issue(payload, ttlMs =
|
|
39
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
39
40
|
const issuedAt = Date.now();
|
|
40
41
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
41
42
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { ExitCode, isCliError, toErrorEnvelope } from '../../core/errors.js';
|
|
3
|
+
import { reportPlatformError } from '../../core/error-codes.js';
|
|
3
4
|
import { createMailContinuationSigner } from './continuation.js';
|
|
4
5
|
import { createMailHost } from './host.js';
|
|
5
6
|
import { mailManifest } from './manifest.js';
|
|
@@ -83,6 +84,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
83
84
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
84
85
|
}
|
|
85
86
|
catch (error) {
|
|
87
|
+
reportPlatformError(error);
|
|
86
88
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
87
89
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
88
90
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_MS } from '../../../core/continuation-ttl.js';
|
|
1
2
|
import { mailValidationError } from '../errors.js';
|
|
2
3
|
import { WRITE, mailSuccess, schemaOf, SCHEMA_STRING } from './types.js';
|
|
3
|
-
const CONTINUATION_TTL_MS = 600_000;
|
|
4
4
|
const BLACKLIST_SCHEMA = schemaOf({
|
|
5
5
|
operateType: { type: 'string', description: 'add / delete' },
|
|
6
6
|
mailAddress: SCHEMA_STRING,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_MS } from '../../../core/continuation-ttl.js';
|
|
1
2
|
import { mailValidationError } from '../errors.js';
|
|
2
3
|
import { WRITE, mailSuccess, schemaOf, SCHEMA_STRING } from './types.js';
|
|
3
|
-
const CONTINUATION_TTL_MS = 600_000;
|
|
4
4
|
// ---------------------------------------------------------------------------
|
|
5
5
|
// 联系人 新增/编辑(prepare/apply)
|
|
6
6
|
// ---------------------------------------------------------------------------
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_MS } from '../../../core/continuation-ttl.js';
|
|
1
2
|
import { randomBytes } from 'node:crypto';
|
|
2
3
|
import { mailValidationError } from '../errors.js';
|
|
3
4
|
import { WRITE, mailSuccess, schemaOf, SCHEMA_STRING } from './types.js';
|
|
4
|
-
const CONTINUATION_TTL_MS = 600_000;
|
|
5
5
|
function b64(s) {
|
|
6
6
|
return Buffer.from(s, 'utf8').toString('base64');
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_MS } from '../../../core/continuation-ttl.js';
|
|
1
2
|
import { mailValidationError } from '../errors.js';
|
|
2
3
|
import { READ, WRITE, mailSuccess, schemaOf, SCHEMA_STRING } from './types.js';
|
|
3
|
-
const CONTINUATION_TTL_MS = 600_000;
|
|
4
4
|
const SIGN_SCHEMA = schemaOf({
|
|
5
5
|
id: SCHEMA_STRING,
|
|
6
6
|
signName: SCHEMA_STRING,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_MS } from '../../../core/continuation-ttl.js';
|
|
1
2
|
import { mailValidationError } from '../errors.js';
|
|
2
3
|
import { WRITE, mailSuccess, schemaOf, SCHEMA_STRING } from './types.js';
|
|
3
|
-
const CONTINUATION_TTL_MS = 600_000;
|
|
4
4
|
const TEMPLATE_SCHEMA = schemaOf({
|
|
5
5
|
id: SCHEMA_STRING,
|
|
6
6
|
templateType: SCHEMA_STRING,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_MS } from '../../core/continuation-ttl.js';
|
|
1
2
|
import { createHmac, randomBytes, timingSafeEqual } from 'node:crypto';
|
|
2
3
|
import { existsSync } from 'node:fs';
|
|
3
4
|
import { chmod, mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
@@ -35,7 +36,7 @@ function signature(payload, key) {
|
|
|
35
36
|
}
|
|
36
37
|
export function createMeetingContinuationSigner(ctx) {
|
|
37
38
|
return {
|
|
38
|
-
async issue(payload, ttlMs =
|
|
39
|
+
async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
|
|
39
40
|
const issuedAt = Date.now();
|
|
40
41
|
const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
|
|
41
42
|
const sig = signature(body, await loadKey(ctx));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { ExitCode, isCliError, toErrorEnvelope } from '../../core/errors.js';
|
|
3
|
+
import { reportPlatformError } from '../../core/error-codes.js';
|
|
3
4
|
import { createMeetingContinuationSigner } from './continuation.js';
|
|
4
5
|
import { createMeetingHost } from './host.js';
|
|
5
6
|
import { meetingManifest, OPERATION_INDEX_HINT } from './manifest.js';
|
|
@@ -87,6 +88,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
87
88
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
88
89
|
}
|
|
89
90
|
catch (error) {
|
|
91
|
+
reportPlatformError(error);
|
|
90
92
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
91
93
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
92
94
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
|
|
1
2
|
import { createHash } from 'node:crypto';
|
|
2
3
|
import { meetingConfirmationError, meetingPartialError, meetingValidationError } from '../errors.js';
|
|
3
4
|
import { meetingSuccess, SCHEMA_DATETIME_MINUTE, SCHEMA_ID } from './types.js';
|
|
4
5
|
import { assertDateTimeMinute, extractRows, mergeSnapshot, toIdCsv, toIdString } from './shared.js';
|
|
5
|
-
const CONTINUATION_TTL_SECONDS = 600;
|
|
6
6
|
const LIST_PATH = '/api/meeting/search/getMeetingList';
|
|
7
7
|
function fingerprint(value) {
|
|
8
8
|
return createHash('sha256').update(JSON.stringify(value ?? null)).digest('hex').slice(0, 32);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
|
|
1
2
|
import { createHash } from 'node:crypto';
|
|
2
3
|
import { meetingConflictError, meetingConfirmationError, meetingPartialError, meetingValidationError } from '../errors.js';
|
|
3
4
|
import { meetingSuccess, SCHEMA_DATETIME_MINUTE, SCHEMA_ID } from './types.js';
|
|
4
5
|
import { assertDateTimeMinute, extractConflict, mergeSnapshot, toIdCsv, toIdString, } from './shared.js';
|
|
5
|
-
const CONTINUATION_TTL_SECONDS = 600;
|
|
6
6
|
function fingerprint(value) {
|
|
7
7
|
return createHash('sha256').update(JSON.stringify(value ?? null)).digest('hex').slice(0, 32);
|
|
8
8
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_MS, CONTINUATION_TTL_SECONDS } from '../../../../core/continuation-ttl.js';
|
|
1
2
|
import { existsSync } from 'node:fs';
|
|
2
3
|
import { mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
3
4
|
import { homedir } from 'node:os';
|
|
@@ -6,9 +7,10 @@ import { meetingSuccess, schemaOf, SCHEMA_DATETIME_MINUTE } from '../types.js';
|
|
|
6
7
|
import { meetingValidationError } from '../../errors.js';
|
|
7
8
|
import { fetchEbAppSettings, findCommonFreeSlots } from './conflict.js';
|
|
8
9
|
import { EB_BASE, ebBusinessSuccess, writeBody } from './factory.js';
|
|
9
|
-
import { loadRooms, recommendRooms } from './room-recommend.js';
|
|
10
|
+
import { inferRoomFloor, loadRooms, recommendRooms } from './room-recommend.js';
|
|
10
11
|
import { dayOf, filterUsages, invalidateDayUsages, loadDayUsages } from './usage-cache.js';
|
|
11
12
|
import { pickRememberedFlow, readFlowPick, rememberFlowPick } from './flow-memory.js';
|
|
13
|
+
import { clearMeetingDraft, loadMeetingDraft, saveMeetingDraft } from './draft-memory.js';
|
|
12
14
|
import { resolveNamesCached } from './person-cache.js';
|
|
13
15
|
/**
|
|
14
16
|
* 通过**流程**新建 EB 会议(`meeting.eb.meeting.create.flow`)。
|
|
@@ -278,6 +280,13 @@ export async function shapeBrowserValues(env, values) {
|
|
|
278
280
|
readable.address = String(shaped.address);
|
|
279
281
|
}
|
|
280
282
|
}
|
|
283
|
+
// 邀请函要用「人话版本」的时间(预置函走 readable,之前这里没放,导致预置函时间缺失)
|
|
284
|
+
if (shaped.begin_datetime !== undefined && String(shaped.begin_datetime).trim() !== '') {
|
|
285
|
+
readable.begin_datetime = String(shaped.begin_datetime).trim();
|
|
286
|
+
}
|
|
287
|
+
if (shaped.end_datetime !== undefined && String(shaped.end_datetime).trim() !== '') {
|
|
288
|
+
readable.end_datetime = String(shaped.end_datetime).trim();
|
|
289
|
+
}
|
|
281
290
|
const personFields = ['hrm_members', 'caller', 'contacter'];
|
|
282
291
|
const idPool = [];
|
|
283
292
|
for (const key of personFields) {
|
|
@@ -1166,7 +1175,9 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1166
1175
|
description: '结束时间(yyyy-MM-dd HH:mm);不传则按 durationMinutes 从开始时间推算(默认 60 分钟)',
|
|
1167
1176
|
},
|
|
1168
1177
|
mt_desc: { type: 'string', description: '会议内容/说明' },
|
|
1169
|
-
address: { type: 'string', description: '会议室(名称或 id
|
|
1178
|
+
address: { type: 'string', description: '会议室(名称或 id);也可直接写楼层("一楼/1F/3层"),CLI 会按楼层给候选' },
|
|
1179
|
+
floor: { type: 'number', description: '楼层(1=一楼):和 address 二选一,按名称推断楼层过滤候选(120会议室=1楼、1007=10楼)' },
|
|
1180
|
+
askRoom: { type: 'boolean', description: '默认 false:不指定地点时 CLI 直接按推荐算法定一间;传 true 才返回候选让用户挑' },
|
|
1170
1181
|
customize_address: { type: 'string', description: '自定义会议地点' },
|
|
1171
1182
|
hrm_members: { type: 'string', description: '参会人员(逗号分隔员工 id 或姓名,按流程表单要求)' },
|
|
1172
1183
|
total_member: { type: 'number', description: '参会人数' },
|
|
@@ -1385,7 +1396,25 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1385
1396
|
// CLI 当成"已定"直接进确认摘要,用户看到「时间:09:00–10:00」质问"谁决定的"。
|
|
1386
1397
|
// 所以只有 `timeConfirmed: true`(用户原话明确给了时间,或用户在选项里点选后把 value 原样回传)
|
|
1387
1398
|
// 才认这个时间;否则一律返回时段选项让用户点 —— 宁可多问一轮,也不替用户拍板。
|
|
1388
|
-
|
|
1399
|
+
let timeConfirmed = args.timeConfirmed === true || slotConfirmed;
|
|
1400
|
+
// ⛔ 2026-11-06 用户反馈:「都确认过了,说"继续"之后又弹一次时间让我确认」。
|
|
1401
|
+
// 原因:确认标记只存在于当次入参,模型下一轮重开 prepare 时丢了 timeConfirmed/roomConfirmed。
|
|
1402
|
+
// 这里用草稿记忆兜住:同一场会(按会议名)30 分钟内的已确认要素自动沿用。
|
|
1403
|
+
const draft = await loadMeetingDraft(env, String(args.mt_name ?? '')).catch(() => null);
|
|
1404
|
+
let draftReusedTime = false;
|
|
1405
|
+
if (draft) {
|
|
1406
|
+
if (!/\d{1,2}:\d{2}/.test(beginText) && draft.begin) {
|
|
1407
|
+
beginText = draft.begin;
|
|
1408
|
+
endText = draft.end;
|
|
1409
|
+
timeConfirmed = true;
|
|
1410
|
+
slotConfirmed = true;
|
|
1411
|
+
draftReusedTime = true;
|
|
1412
|
+
}
|
|
1413
|
+
else if (beginText === draft.begin && endText === draft.end && args.timeConfirmed !== true) {
|
|
1414
|
+
timeConfirmed = true;
|
|
1415
|
+
draftReusedTime = true;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1389
1418
|
// ⛔ 2026-10-30 真机:agent 在用户只说"明天上午"时就自己塞了 workflowId,
|
|
1390
1419
|
// 于是它脑内"流程已定",回复里先讲流程再问时间(用户投诉顺序反了)。
|
|
1391
1420
|
// 时间/地点闸门阶段流程根本没定 —— 这里只做提示,不阻断(用户可能确实点名了流程,
|
|
@@ -1477,6 +1506,12 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1477
1506
|
});
|
|
1478
1507
|
}
|
|
1479
1508
|
let addressInput = args.address;
|
|
1509
|
+
// 草稿里记着上次确认的会议室 → 这次没传就沿用(避免"确认过又问一次")
|
|
1510
|
+
let draftReusedRoom = false;
|
|
1511
|
+
if (String(addressInput ?? '').trim() === '' && draft?.addressId) {
|
|
1512
|
+
addressInput = draft.addressId;
|
|
1513
|
+
draftReusedRoom = true;
|
|
1514
|
+
}
|
|
1480
1515
|
// 记录"用户有没有自己指定会议室":后面决定文案是"按你的指定"还是"自动选择"。
|
|
1481
1516
|
const hadAddressInput = String(args.address ?? '').trim() !== '';
|
|
1482
1517
|
const day = beginText.slice(0, 10);
|
|
@@ -1527,6 +1562,14 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1527
1562
|
const dayUsagesTask = (enrich && beginText && endText)
|
|
1528
1563
|
? loadDayUsages(env, day)
|
|
1529
1564
|
: Promise.resolve(null);
|
|
1565
|
+
// 「一楼 / 1F / 3层」不是房间名,是楼层(2026-11-06 用户实测:说"一楼"被回"没有名称含一楼的会议室")。
|
|
1566
|
+
// 台账没有楼层字段,楼层是从名称推断的(120会议室=1楼、1007=10楼、601-8=6楼)。
|
|
1567
|
+
const floorArg = Number.isFinite(Number(args.floor))
|
|
1568
|
+
? Number(args.floor)
|
|
1569
|
+
: null;
|
|
1570
|
+
const floorHint = floorArg ?? (/楼|层|\d+\s*F/iu.test(String(args.address ?? ''))
|
|
1571
|
+
? inferRoomFloor(String(args.address ?? ''))
|
|
1572
|
+
: null);
|
|
1530
1573
|
const roomTask = (enrich && beginText && endText)
|
|
1531
1574
|
? (async () => {
|
|
1532
1575
|
const usageData = await dayUsagesTask;
|
|
@@ -1536,6 +1579,8 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1536
1579
|
...(roomMemberCount ? { memberCount: roomMemberCount } : {}),
|
|
1537
1580
|
// 带客户时优先接待类会议室(2026-11-02 用户口径:加了客户就推接待类)
|
|
1538
1581
|
...(hasCustomer ? { hasCustomer: true } : {}),
|
|
1582
|
+
// 「一楼」这类楼层诉求:按楼层过滤候选(2026-11-06)
|
|
1583
|
+
...(floorHint !== null ? { floor: Number(floorHint) } : {}),
|
|
1539
1584
|
// 2026-11-03 用户批准松绑:不再每次强制重拉台账(省 ~1s + 2 请求)。
|
|
1540
1585
|
// 兜底在 recommendRooms 内部:24h 缓存凑不出候选时自动强制重拉一次再算;
|
|
1541
1586
|
// 代价是刚导入的会议室在缓存期可能按名称查不到(按 id 指定不受影响)。
|
|
@@ -1545,6 +1590,29 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1545
1590
|
});
|
|
1546
1591
|
})().catch(noteFailure('会议室推荐'))
|
|
1547
1592
|
: Promise.resolve(null);
|
|
1593
|
+
// ⛔ 2026-11-06 用户实测:说「3 楼」时弹了个只有一个选项的选择框("由我按 3 楼空闲会议室推荐"),
|
|
1594
|
+
// 完全多余 —— 楼层本来就不是具体房间,直接按楼层推荐的第一名定下来,写进确认摘要说明即可。
|
|
1595
|
+
// 只有该楼层**一间可用都没有**时才继续走后面的"未解析"分支(会明确告知)。
|
|
1596
|
+
let floorAutoPick = null;
|
|
1597
|
+
if (floorHint !== null && String(addressInput ?? '').trim() !== '') {
|
|
1598
|
+
const floorRec = await roomTask.catch(() => null);
|
|
1599
|
+
const first = floorRec?.candidates?.[0] ?? floorRec?.best ?? null;
|
|
1600
|
+
if (first?.id) {
|
|
1601
|
+
addressInput = first.id;
|
|
1602
|
+
floorAutoPick = { id: String(first.id), name: String(first.name ?? ''), ...(Array.isArray(first.reasons) ? { reasons: first.reasons } : {}) };
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
// 2026-11-06 用户明确:**没说地点时按推荐算法直接给结论**,不要返回候选让人点。
|
|
1606
|
+
// (以前默认 NEEDS_SELECTION,要传 autoRoom:true 才自动选 —— 属于把"推荐"做成了"让用户选"。)
|
|
1607
|
+
let autoPickedRoom = null;
|
|
1608
|
+
if (floorAutoPick === null && String(addressInput ?? '').trim() === '' && args.allowNoRoom !== true && args.askRoom !== true) {
|
|
1609
|
+
const rec = await roomTask.catch(() => null);
|
|
1610
|
+
const first = rec?.best ?? rec?.candidates?.[0] ?? null;
|
|
1611
|
+
if (first?.id) {
|
|
1612
|
+
addressInput = first.id;
|
|
1613
|
+
autoPickedRoom = { id: String(first.id), name: String(first.name ?? ''), ...(Array.isArray(first.reasons) ? { reasons: first.reasons } : {}) };
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1548
1616
|
// ⛔ 指定了会议室时,**单独查它在该时段是否已被占用**(query_roomusage_list)。
|
|
1549
1617
|
// 以前 `!addressInput` 直接跳过整段 → "指定了一间被占用的房"照样往下走,用户到页面上才发现。
|
|
1550
1618
|
// ⛔ 2026-10-31 修:以前只有"纯数字 id"才查,传名称(用户最常说的「测试会议室1」)整段被跳过。
|
|
@@ -1553,55 +1621,83 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1553
1621
|
// ④ 会议室闸门:与时间同理 —— 传了 address **不等于**用户确认过这间房。
|
|
1554
1622
|
// 只有 `roomConfirmed: true`(用户明确说了哪间,或在选项里点选后把 value 原样回传)才认;
|
|
1555
1623
|
// 否则返回房间选项让用户点。2026-10-30 同一事故:agent 把推荐房间写进确认摘要当定论。
|
|
1556
|
-
const roomConfirmed = args.roomConfirmed === true;
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1624
|
+
const roomConfirmed = args.roomConfirmed === true || draftReusedRoom || floorAutoPick !== null || autoPickedRoom !== null;
|
|
1625
|
+
// ⛔ 2026-11-06 用户明确要求:第一轮已经查过「这间房 + 这个时段」没冲突,第二轮就**不要再查**。
|
|
1626
|
+
// 校验键含 时间+参会人+会议室;任一项变了才重算,3 分钟内有效。
|
|
1627
|
+
// 风险由服务端兜底:本环境冲突检测是「禁止提交」,真被别人抢了会在提交时被拦。
|
|
1628
|
+
const checksKey = `${beginText}|${endText}|${memberIds.join(',')}|${addressId}`;
|
|
1629
|
+
const checkNotices = [];
|
|
1630
|
+
const cachedChecks = draft?.checks
|
|
1631
|
+
&& draft.checks.key === checksKey
|
|
1632
|
+
&& Date.now() - Number(draft.checks.checkedAt || 0) <= 3 * 60 * 1000
|
|
1633
|
+
? draft.checks
|
|
1634
|
+
: null;
|
|
1635
|
+
if (cachedChecks) {
|
|
1636
|
+
checkNotices.push(`空闲校验沿用 ${Math.round((Date.now() - cachedChecks.checkedAt) / 1000)} 秒前的结论`
|
|
1637
|
+
+ '(时间/参会人/会议室都没变,未重复查询)。');
|
|
1638
|
+
}
|
|
1639
|
+
const roomConflictTask = cachedChecks
|
|
1640
|
+
? Promise.resolve({
|
|
1641
|
+
room: cachedChecks.roomRecord,
|
|
1642
|
+
hasConflict: cachedChecks.roomHasConflict === true,
|
|
1643
|
+
conflicts: (cachedChecks.roomConflicts ?? []),
|
|
1644
|
+
})
|
|
1645
|
+
: (enrich && beginText && endText && addressId !== '')
|
|
1646
|
+
? (async () => {
|
|
1647
|
+
const room = await resolveAddressRoom(env, addressId);
|
|
1648
|
+
// 名称对不上任何房间 → 直接判"没这间房",别把一串文本丢进表单等提交时才报错
|
|
1649
|
+
if (!room)
|
|
1650
|
+
return { unresolved: true, input: addressId };
|
|
1651
|
+
// 台账读失败 / 纯 id 台账里没有 → 没法判占用,但不拦(避免网络抖动被当成"房间不存在")
|
|
1652
|
+
if (!room.id || room.lookupFailed || room.status !== '0')
|
|
1653
|
+
return { room };
|
|
1654
|
+
// 优先走全天占用缓存本地过滤(2026-11-03):与推荐共用一次拉取,0 额外请求。
|
|
1655
|
+
// 缓存拉失败(dayUsagesTask reject 已被 noteFailure 吞成 null)→ 回退老的逐房查询,行为不变。
|
|
1656
|
+
const usageData = await dayUsagesTask.catch(() => null);
|
|
1657
|
+
if (usageData) {
|
|
1658
|
+
const conflicts = filterUsages(usageData.rows, { roomId: room.id, begin: beginText, end: endText })
|
|
1659
|
+
.map((usage) => ({ mtId: usage.mtId, begin: usage.start, end: usage.end }));
|
|
1660
|
+
return {
|
|
1661
|
+
room,
|
|
1662
|
+
hasConflict: conflicts.length > 0,
|
|
1663
|
+
conflicts,
|
|
1664
|
+
verdict: conflicts.length > 0 ? 'warn' : 'ok',
|
|
1665
|
+
requests: usageData.requests,
|
|
1666
|
+
usageFromCache: usageData.fromCache,
|
|
1667
|
+
};
|
|
1668
|
+
}
|
|
1669
|
+
const { getMeetingOperation } = await import('../registry.js');
|
|
1670
|
+
const result = await getMeetingOperation('meeting.eb.conflict.room').handler({ beginDatetime: beginText, endDatetime: endText, address: room.id }, env);
|
|
1671
|
+
return { room, ...(result?.data ?? {}) };
|
|
1672
|
+
})().catch(noteFailure('会议室**占用**检测'))
|
|
1673
|
+
: Promise.resolve(null);
|
|
1586
1674
|
// ⛔ 这三路检测失败**必须留下痕迹**:以前统一 `.catch(() => null)`,
|
|
1587
1675
|
// 结果"没查"和"查了没冲突"在返回里长得一模一样 —— 用户以为核验过了(2026-10-30 真机事故)。
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1676
|
+
// 注:conflictTask 见下方(带缓存复用分支)。
|
|
1677
|
+
const conflictTask = cachedChecks
|
|
1678
|
+
? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } })
|
|
1679
|
+
: (enrich && beginText && endText && memberIds.length > 0)
|
|
1680
|
+
? (async () => {
|
|
1681
|
+
const { getMeetingOperation } = await import('../registry.js');
|
|
1682
|
+
return getMeetingOperation('meeting.eb.conflict.member').handler({ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(',') }, env);
|
|
1683
|
+
})().catch(noteFailure('参会人**会议占用**检测'))
|
|
1684
|
+
: Promise.resolve(null);
|
|
1685
|
+
const availabilityTask = cachedChecks
|
|
1686
|
+
? Promise.resolve({
|
|
1687
|
+
slots: cachedChecks.freeSlots,
|
|
1688
|
+
...(cachedChecks.blockingSummary ? { blockingSummary: cachedChecks.blockingSummary } : {}),
|
|
1689
|
+
})
|
|
1690
|
+
: (enrich && beginText && endText && memberIds.length > 0)
|
|
1691
|
+
? findCommonFreeSlots(env, {
|
|
1692
|
+
rangeStart: `${day} 00:00`,
|
|
1693
|
+
rangeEnd: `${day} 23:59`,
|
|
1694
|
+
durationMinutes,
|
|
1695
|
+
members: memberIds,
|
|
1696
|
+
maxSlots: 3,
|
|
1697
|
+
maxDays: 1,
|
|
1698
|
+
includeSchedule: true,
|
|
1699
|
+
}).catch(noteFailure('参会人**日程空闲**检测'))
|
|
1700
|
+
: Promise.resolve(null);
|
|
1605
1701
|
const [roomRec, memberConflict, free, roomConflict] = await Promise.all([
|
|
1606
1702
|
roomTask, conflictTask, availabilityTask, roomConflictTask,
|
|
1607
1703
|
]);
|
|
@@ -1612,7 +1708,7 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1612
1708
|
const memberConflicts = (memberConflict?.data?.conflicts ?? []);
|
|
1613
1709
|
if (memberConflicts.length > 0)
|
|
1614
1710
|
decisions.memberConflicts = memberConflicts;
|
|
1615
|
-
const freeSlots = free?.slots ?? [];
|
|
1711
|
+
const freeSlots = (free?.slots ?? []);
|
|
1616
1712
|
if (free) {
|
|
1617
1713
|
decisions.scheduleItems = free.scheduleItems;
|
|
1618
1714
|
decisions.availabilityCost = free.cost;
|
|
@@ -1661,10 +1757,13 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1661
1757
|
status: 'NEEDS_SELECTION',
|
|
1662
1758
|
selectionType: 'room',
|
|
1663
1759
|
ui: { component: 'choice', multiple: false, recommendedKey: 'R1' },
|
|
1664
|
-
message:
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1760
|
+
message: floorHint !== null
|
|
1761
|
+
? `「${addressId}」是楼层,不是房间名;下面是 ${floorHint} 楼在该时段空闲的会议室,请选一间`
|
|
1762
|
+
+ (roomOptions.length > 0 ? '' : '(该楼层暂时没有空闲会议室,请改楼层或时间)')
|
|
1763
|
+
: `没找到名为「${addressId}」的会议室(会议室台账里没有这个名字),本次**没有提交**。`
|
|
1764
|
+
+ (roomOptions.length > 0
|
|
1765
|
+
? `请从下面 ${roomOptions.length} 个在该时段空闲的会议室里选一间,或核对一下会议室名称`
|
|
1766
|
+
: '该时段也没有可用的空闲会议室,请改会议时间或改线上会议(allowNoRoom: true)'),
|
|
1668
1767
|
workflowPending: true,
|
|
1669
1768
|
options: roomOptions,
|
|
1670
1769
|
recommended: roomOptions[0]?.value ?? null,
|
|
@@ -2046,8 +2145,11 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2046
2145
|
})();
|
|
2047
2146
|
const shaped = await shapeBrowserValues(env, {
|
|
2048
2147
|
mt_name: args.mt_name,
|
|
2049
|
-
|
|
2050
|
-
|
|
2148
|
+
// ⛔ 2026-11-05 修:用户只说「明天下午」时,时间是 CLI 按 time_slot 展开出来的(beginText/endText),
|
|
2149
|
+
// 原始入参 args.begin_datetime 是空的 —— 以前这里直接取 args,表单两个时间字段就空着,
|
|
2150
|
+
// 页面打开后默认成"当前时间"(用户实测:填 11-06 13:00–18:00,表单显示 11-05 17:25)。
|
|
2151
|
+
begin_datetime: beginText || args.begin_datetime,
|
|
2152
|
+
end_datetime: endText || args.end_datetime,
|
|
2051
2153
|
mt_desc: args.mt_desc,
|
|
2052
2154
|
address: addressInput,
|
|
2053
2155
|
customize_address: args.customize_address,
|
|
@@ -2068,7 +2170,7 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2068
2170
|
const preferredFields = await readFlowFieldMap(env, workflowId);
|
|
2069
2171
|
const { main, mapped, unmapped, resolved: resolvedFields } = mapFields(form.fields, shaped.values, preferredFields);
|
|
2070
2172
|
await writeFlowFieldMap(env, workflowId, form.workflowName, resolvedFields);
|
|
2071
|
-
const warnings = [];
|
|
2173
|
+
const warnings = [...checkNotices];
|
|
2072
2174
|
if (autoFilledPerson.length > 0) {
|
|
2073
2175
|
const labels = autoFilledPerson.map((one) => `「${PERSON_FIELD_LABELS[one.field]}」`).join('');
|
|
2074
2176
|
warnings.push(`${labels}没有传值,已按**当前登录人**补齐:${autoFilledPerson[0].name}(${autoFilledPerson[0].id})。`
|
|
@@ -2148,9 +2250,7 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2148
2250
|
+ '传 crm_detail_mode:"only" 再配 crm_member_details 才覆盖本次自动带入。');
|
|
2149
2251
|
}
|
|
2150
2252
|
else if (auto.missing.length > 0) {
|
|
2151
|
-
warnings.push(`已写「参会客户」,但没能自动带出「${auto.missing.join('、')}」的联系人(CRM
|
|
2152
|
-
+ '请把已查到的联系人直接告给用户核对;确实没有联系人时问一次姓名+手机号,'
|
|
2153
|
-
+ '再以 crm_member_details:[{"xm":"张三","sjhm":"13800000000"}] 重新 prepare。');
|
|
2253
|
+
warnings.push(`已写「参会客户」,但没能自动带出「${auto.missing.join('、')}」的联系人(CRM 里没建档联系人)。`);
|
|
2154
2254
|
}
|
|
2155
2255
|
}
|
|
2156
2256
|
}
|
|
@@ -2201,13 +2301,23 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2201
2301
|
}
|
|
2202
2302
|
}
|
|
2203
2303
|
const picked = decisions.autoRoom?.picked;
|
|
2304
|
+
if (floorAutoPick) {
|
|
2305
|
+
warnings.push(`按楼层自动选择「${floorAutoPick.name}」(${(floorAutoPick.reasons ?? []).join(';')});`
|
|
2306
|
+
+ '同一楼层还有其它空闲房间,如需更换直接说房间名');
|
|
2307
|
+
}
|
|
2308
|
+
if (autoPickedRoom) {
|
|
2309
|
+
warnings.push(`未指定会议室 → 按推荐选择「${autoPickedRoom.name}」(${(autoPickedRoom.reasons ?? []).join(';')});`
|
|
2310
|
+
+ '如需更换直接说房间名,或传 `askRoom: true` 让 CLI 返回候选');
|
|
2311
|
+
}
|
|
2204
2312
|
// ⚠️ 只在"用户没指定会议室、由 CLI 自动选"时才说这句。
|
|
2205
2313
|
// 以前无条件输出"未指定会议室 → 已自动选择",用户明明传了 address 也被这么讲(2026-10-29 真机踩到);
|
|
2206
2314
|
// 而 picked 是**推荐排序第一**,未必等于用户指定的那间,说错会直接误导。
|
|
2207
2315
|
// 指定会议室时不再另加提示 —— `shaped.notes` 里已有"会议地点按浏览按钮格式提交:<名称>(<id>)"。
|
|
2208
2316
|
if (picked && !hadAddressInput) {
|
|
2209
|
-
warnings.push(
|
|
2210
|
-
|
|
2317
|
+
warnings.push(draftReusedRoom
|
|
2318
|
+
? `会议地点沿用你上次确认的「${picked.name}」(本次没再传会议室);如需更换请直接说房间名`
|
|
2319
|
+
: `未指定会议室 → 已自动选择「${picked.name}」(${(picked.reasons ?? []).join(';')});`
|
|
2320
|
+
+ `另有候选 ${(decisions.roomOptions ?? []).slice(1).map((item) => item.label).join(' / ') || '无'}`);
|
|
2211
2321
|
}
|
|
2212
2322
|
const slotOptions = decisions.slotOptions ?? [];
|
|
2213
2323
|
const memberConflictCount = decisions.memberConflicts?.length ?? 0;
|
|
@@ -2293,7 +2403,28 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2293
2403
|
},
|
|
2294
2404
|
},
|
|
2295
2405
|
fingerprint: JSON.stringify({ workflowId, main, ...(detailPayload ? { details: detailPayload } : {}) }),
|
|
2296
|
-
},
|
|
2406
|
+
}, CONTINUATION_TTL_MS);
|
|
2407
|
+
// 记住本轮已确认的要素(30 分钟内同一场会再调 prepare 时,缺字段就沿用,避免重复追问)
|
|
2408
|
+
await saveMeetingDraft(env, {
|
|
2409
|
+
mtName: String(args.mt_name ?? args.mt_subject ?? ''),
|
|
2410
|
+
begin: beginText,
|
|
2411
|
+
end: endText,
|
|
2412
|
+
...(addressId !== '' ? { addressId, addressName: confirmedAddressLabel } : {}),
|
|
2413
|
+
memberIds,
|
|
2414
|
+
// 校验结论一并记住:下一轮同样时间/参会人直接复用(3 分钟内)
|
|
2415
|
+
checks: cachedChecks ?? {
|
|
2416
|
+
key: checksKey,
|
|
2417
|
+
checkedAt: Date.now(),
|
|
2418
|
+
addressKey: addressId,
|
|
2419
|
+
memberConflicts,
|
|
2420
|
+
freeSlots: freeSlots.map((slot) => ({ begin: slot.begin, end: slot.end })),
|
|
2421
|
+
...(free?.blockingSummary ? { blockingSummary: String(free.blockingSummary) } : {}),
|
|
2422
|
+
// 会议室占用结论一起记:下一轮同房同时段直接复用(用户 2026-11-06 明确要求)
|
|
2423
|
+
roomHasConflict: roomConflictData?.hasConflict === true,
|
|
2424
|
+
roomConflicts: Array.isArray(roomConflictData?.conflicts) ? roomConflictData.conflicts : [],
|
|
2425
|
+
...(roomConflictData?.room ? { roomRecord: roomConflictData.room } : {}),
|
|
2426
|
+
},
|
|
2427
|
+
}).catch(() => undefined);
|
|
2297
2428
|
return meetingSuccess('meeting.eb.meeting.create.flow.prepare', {
|
|
2298
2429
|
status: 'AWAITING_CONFIRMATION',
|
|
2299
2430
|
preview: {
|
|
@@ -2321,7 +2452,7 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2321
2452
|
...(Object.keys(decisions).length > 0 ? { decisions } : {}),
|
|
2322
2453
|
},
|
|
2323
2454
|
continuation,
|
|
2324
|
-
expiresInSeconds:
|
|
2455
|
+
expiresInSeconds: CONTINUATION_TTL_SECONDS,
|
|
2325
2456
|
}, warnings.length > 0 ? { warnings } : {});
|
|
2326
2457
|
},
|
|
2327
2458
|
};
|
|
@@ -2769,6 +2900,8 @@ const ebMeetingCreateFlowApply = {
|
|
|
2769
2900
|
invitation.sentToGroup = { groupId: inviteGroupId, ok: sent.ok };
|
|
2770
2901
|
timings.invitationSendMs = sent.ms;
|
|
2771
2902
|
}
|
|
2903
|
+
// 提交成功 → 清掉该会议名的草稿,避免下次同名会议沿用旧时间/房间
|
|
2904
|
+
await clearMeetingDraft(env, String(payload.mtName ?? '')).catch(() => undefined);
|
|
2772
2905
|
return meetingSuccess('meeting.eb.meeting.create.flow.apply', {
|
|
2773
2906
|
status: 'COMPLETE',
|
|
2774
2907
|
timings,
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
* - `meeting.eb.decision.publish`:写决议(概述 + 明细)→ 自动写回会议为已决议(含部分失败语义);
|
|
15
15
|
* - `meeting.eb.sign.mark`:按「会议 + 参会人」自动定位签到记录,走 update 补签 / 补签退。
|
|
16
16
|
*/
|
|
17
|
+
import { CONTINUATION_TTL_SECONDS } from '../../../../core/continuation-ttl.js';
|
|
17
18
|
import { EB_BASE, ebBusinessSuccess, extractEbRows, fingerprint, normalizeEbWrite, queryBody, requireConfirm, verifyLease, writeBody, } from './factory.js';
|
|
18
19
|
import { EB_ENDPOINTS } from './catalog.js';
|
|
19
20
|
import { meetingSuccess } from '../types.js';
|
|
20
21
|
import { meetingPartialError, meetingValidationError } from '../../errors.js';
|
|
21
22
|
import { toIdString } from '../shared.js';
|
|
22
|
-
const CONTINUATION_TTL_SECONDS = 600;
|
|
23
23
|
const DATE_PATTERN = '^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$';
|
|
24
24
|
/** 本地时间的 yyyy-MM-dd HH:mm:ss(EB 的签到/完成时间字段要求带秒)。 */
|
|
25
25
|
function formatSecondNow() {
|