weaver-work-cli 0.1.75 → 0.1.78
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 +3 -1
- package/dist/chunks/{archive-OZJ6PYUR.js → archive-ENBSUMHV.js} +1 -1
- package/dist/chunks/{archive-oa-BHL5RK2F.js → archive-oa-7BFPQ6M5.js} +1 -1
- package/dist/chunks/{asset-HKRFRQR2.js → asset-V5SUD3PW.js} +1 -1
- package/dist/chunks/{asset-idle-GGIR4KE7.js → asset-idle-3CEL7WFX.js} +1 -1
- package/dist/chunks/{attachment-content-4OV65NK5.js → attachment-content-TFOC3Y3X.js} +3 -3
- package/dist/chunks/{blog-HYDP4DV3.js → blog-FLI4SS3P.js} +1 -1
- package/dist/chunks/{caizhilian-JS4RQZ6Z.js → caizhilian-7WCTKCCP.js} +3 -3
- package/dist/chunks/{calendar-SWRY4DIT.js → calendar-G726HUUH.js} +1 -1
- package/dist/chunks/{chunk-5ZJGPEIB.js → chunk-2KW7AI6P.js} +1 -1
- package/dist/chunks/{chunk-JOY3HZXL.js → chunk-2UV4IZIT.js} +21 -15
- package/dist/chunks/{chunk-FEZK536Z.js → chunk-4PBN7NJY.js} +353 -43
- package/dist/chunks/{chunk-VOMDD2C5.js → chunk-5E2FDXBU.js} +1 -1
- package/dist/chunks/{chunk-ZUB4M4N3.js → chunk-5VQ7JHV4.js} +134 -49
- package/dist/chunks/{chunk-I6NOHKEK.js → chunk-7SQN5IZR.js} +1 -1
- package/dist/chunks/{chunk-4FCBEWNB.js → chunk-BP7BONZO.js} +675 -86
- package/dist/chunks/{chunk-U6Y32KEV.js → chunk-BWFCTE43.js} +1 -1
- package/dist/chunks/{chunk-PG5YSNYY.js → chunk-DACQKJ6O.js} +3 -3
- package/dist/chunks/{chunk-KWJEICD4.js → chunk-E2EY3DMS.js} +2 -2
- package/dist/chunks/{chunk-KEA4XQPO.js → chunk-FAC4IFGQ.js} +4 -4
- package/dist/chunks/{chunk-MXCRKXOP.js → chunk-FPWCCRKT.js} +1 -1
- package/dist/chunks/{minute-doc-OQUMDTKG.js → chunk-IBTGXLOT.js} +101 -18
- package/dist/chunks/{chunk-OJ4JPD25.js → chunk-LQLIXBJF.js} +6 -8
- package/dist/chunks/{chunk-BNKUHN4N.js → chunk-OVTCWLNQ.js} +2 -2
- package/dist/chunks/{chunk-5D2V7ZAN.js → chunk-PMRNIGKZ.js} +1 -1
- package/dist/chunks/{chunk-OQCK5SAU.js → chunk-RVEKGVZU.js} +1 -1
- package/dist/chunks/{chunk-2AUFKU2D.js → chunk-SWFTWNWL.js} +11 -11
- package/dist/chunks/{chunk-TA2RBUTH.js → chunk-TBCKK6LH.js} +1 -1
- package/dist/chunks/{chunk-SU6IJD6D.js → chunk-TD5IOEGN.js} +1 -1
- package/dist/chunks/{chunk-J7FAAHWH.js → chunk-UDBQJLQF.js} +1 -1
- package/dist/chunks/{chunk-BSR5TM7U.js → chunk-USYFVIUR.js} +22 -7
- package/dist/chunks/{chunk-ERZY6GYL.js → chunk-UZ2E3VNI.js} +1 -1
- package/dist/chunks/{chunk-NWYHCZTY.js → chunk-VNEU7OUN.js} +1 -1
- package/dist/chunks/{chunk-5QUTQHXF.js → chunk-WNFDR5PC.js} +198 -80
- package/dist/chunks/{chunk-LJI4N6FV.js → chunk-XNN5PZTI.js} +1 -1
- package/dist/chunks/{chunk-QJWVYOOV.js → chunk-Z44YFIN6.js} +2 -2
- package/dist/chunks/{chunk-ZWIMLT6P.js → chunk-ZOTXXGUM.js} +7 -7
- package/dist/chunks/{cli-FULPXIKJ.js → cli-WA7FOQKC.js} +35 -35
- package/dist/chunks/{commands-BNWFNTD3.js → commands-J52MJ6NF.js} +3 -3
- package/dist/chunks/{conflict-5BKCDV2F.js → conflict-D4GVAURN.js} +2 -2
- package/dist/chunks/{contract-WI23OXVC.js → contract-GW7US3UF.js} +4400 -3548
- package/dist/chunks/{cowork-DZBBVNMQ.js → cowork-GZDODGKF.js} +1 -1
- package/dist/chunks/{create-flow-7ZRBRKX7.js → create-flow-ERDGW3FZ.js} +10 -6
- package/dist/chunks/{data-PAZVE6QE.js → data-HTQZRPPI.js} +1 -1
- package/dist/chunks/{ebuilder-form-5SQXIGXN.js → ebuilder-form-GHNIZ7ET.js} +2 -2
- package/dist/chunks/{ehr-CX5F4ZAU.js → ehr-P6T7OAAV.js} +2 -2
- package/dist/chunks/{entry-mode-I2BYNONZ.js → entry-mode-SQU5WTX6.js} +3 -3
- package/dist/chunks/{env-ZAQZ7EHN.js → env-DASBNSEM.js} +2 -2
- package/dist/chunks/{esb-DQTXDIBF.js → esb-ATRKVHCD.js} +3 -3
- package/dist/chunks/{factory-XRI6KZ7H.js → factory-A3NAKZAA.js} +1 -1
- package/dist/chunks/{fna-FK6HQVJL.js → fna-IKYI3SST.js} +1 -1
- package/dist/chunks/{group-chat-MLWNYM2P.js → group-chat-7SEAVAJR.js} +3 -3
- package/dist/chunks/{host-MEC4VQZA.js → host-6UOXYOOY.js} +2 -2
- package/dist/chunks/{host-KUMU3DDK.js → host-EJSJSLVK.js} +2 -2
- package/dist/chunks/{host-3EPREGXS.js → host-EYNLB6S4.js} +2 -2
- package/dist/chunks/{host-T6NNQGVZ.js → host-OT4KNR3G.js} +2 -2
- package/dist/chunks/{host-VI7Q45PM.js → host-UY4LQPN4.js} +2 -2
- package/dist/chunks/{host-J74JGYAW.js → host-XXGDQM7D.js} +2 -2
- package/dist/chunks/{hrm-KKVAW4P5.js → hrm-5JQ7QZ6A.js} +2 -2
- package/dist/chunks/{im-47CIWQNL.js → im-2YJW3EI5.js} +2 -2
- package/dist/chunks/{invoice-CDYRBNIG.js → invoice-37HR6L3W.js} +937 -552
- package/dist/chunks/{jiuchuanhui-M7QTRHZK.js → jiuchuanhui-KBWUZ7WT.js} +1 -1
- package/dist/chunks/{lazy-dispatch-FKQJZFI5.js → lazy-dispatch-ZDKLS5MR.js} +6 -6
- package/dist/chunks/{mail-NRBS5N6Y.js → mail-YBKUM6HM.js} +1 -1
- package/dist/chunks/{meeting-WC5LD3IO.js → meeting-7AEQGBAT.js} +19 -13
- package/dist/chunks/minute-doc-REI6RUE4.js +20 -0
- package/dist/chunks/{okr-EHKSKMPL.js → okr-HW7IULIR.js} +1 -1
- package/dist/chunks/{operations-V5VM5MS2.js → operations-4P2UYVLH.js} +3 -3
- package/dist/chunks/{performance-ZJADXJPN.js → performance-PM2G6L3E.js} +1 -1
- package/dist/chunks/{plan-OTDNBDJ7.js → plan-3YYGZ7ZM.js} +1 -1
- package/dist/chunks/{project-4XVBQ3HX.js → project-6PRGBLO2.js} +39 -15
- package/dist/chunks/{reception-3FAHOOH7.js → reception-7G3J2MA6.js} +1 -1
- package/dist/chunks/{recruit-stage-3WTVWW2K.js → recruit-stage-TLZJUFHD.js} +544 -464
- package/dist/chunks/{registry-TJGCVRCW.js → registry-3VTB3KLV.js} +3 -3
- package/dist/chunks/{registry-F4YFZLOD.js → registry-KQ4TNUWO.js} +1 -1
- package/dist/chunks/{registry-NBTBXR4L.js → registry-UVTI323K.js} +12 -11
- package/dist/chunks/{room-recommend-KL62XB2Y.js → room-recommend-ELEJUYBN.js} +4 -4
- package/dist/chunks/{schedule-XOISYUPB.js → schedule-XBKY7VEA.js} +4 -4
- package/dist/chunks/{smart-extract-UYGNV3BM.js → smart-extract-T5Z4AULN.js} +1 -1
- package/dist/chunks/{update-AV5VOXGY.js → update-77ZUIYSG.js} +2 -2
- package/dist/chunks/{workflow-V54LJPXL.js → workflow-SYCBS5XD.js} +3 -3
- package/dist/index.js +3 -3
- package/dist/internal/update/service.js +9 -8
- package/dist/shortcuts/contract/data/collection-ledger-html.js +109 -33
- package/dist/shortcuts/contract/data/collection-node-catalog.js +26 -2
- package/dist/shortcuts/contract/data/report-renderers.js +75 -31
- package/dist/shortcuts/contract/data/report-spec.js +17 -3
- package/dist/shortcuts/contract/manifest.js +20 -3
- package/dist/shortcuts/contract/operations/bizreview-report.js +23 -2
- package/dist/shortcuts/contract/operations/collection-node.js +116 -1
- package/dist/shortcuts/contract/operations/compare-report.js +27 -5
- package/dist/shortcuts/contract/operations/credit-page.js +11 -2
- package/dist/shortcuts/contract/operations/docx-slots.js +27 -2
- package/dist/shortcuts/contract/operations/draft-submit.js +9 -6
- package/dist/shortcuts/contract/operations/elements-build.js +162 -30
- package/dist/shortcuts/contract/operations/elements-spec.js +50 -0
- package/dist/shortcuts/contract/operations/generated-submit.js +35 -0
- package/dist/shortcuts/contract/operations/ledger-card.js +32 -2
- package/dist/shortcuts/contract/operations/ledger-stat.js +17 -5
- package/dist/shortcuts/contract/operations/ledger.js +88 -16
- package/dist/shortcuts/contract/operations/metrics.js +16 -3
- package/dist/shortcuts/contract/operations/ops-draft.js +359 -27
- package/dist/shortcuts/contract/operations/page.js +23 -0
- package/dist/shortcuts/contract/operations/quote-recognize.js +91 -13
- package/dist/shortcuts/contract/operations/quote-submit.js +16 -0
- package/dist/shortcuts/contract/operations/review-report.js +11 -3
- package/dist/shortcuts/contract/operations/save-recognize.js +62 -1
- package/dist/shortcuts/contract/operations/triage.js +18 -3
- package/dist/shortcuts/contract/operations/viewlink.js +17 -1
- package/dist/shortcuts/ehr/operations/recruit.js +255 -90
- package/dist/shortcuts/invoice/business-response.js +13 -0
- package/dist/shortcuts/invoice/calendar.js +24 -0
- package/dist/shortcuts/invoice/host.js +26 -15
- package/dist/shortcuts/invoice/index.js +2 -2
- package/dist/shortcuts/invoice/invoice-record.js +7 -2
- package/dist/shortcuts/invoice/manifest.js +179 -155
- package/dist/shortcuts/invoice/operations/get.js +9 -3
- package/dist/shortcuts/invoice/operations/issuing-red-requests.js +138 -0
- package/dist/shortcuts/invoice/operations/registry.js +4 -5
- package/dist/shortcuts/invoice/operations/reim-auto.js +40 -2
- package/dist/shortcuts/invoice/operations/reim-customer-projects.js +79 -0
- package/dist/shortcuts/invoice/operations/reim-customer.js +79 -30
- package/dist/shortcuts/invoice/operations/reim-relation.js +0 -146
- package/dist/shortcuts/invoice/operations/reim.js +2 -126
- package/dist/shortcuts/invoice/operations/shared.js +15 -17
- package/dist/shortcuts/invoice/preapproval-enrichment.js +180 -0
- package/dist/shortcuts/invoice/projection.js +14 -0
- package/dist/shortcuts/invoice/read-enrichment.js +123 -0
- package/dist/shortcuts/meeting/confirm-gate.js +42 -0
- package/dist/shortcuts/meeting/continuation.js +6 -2
- package/dist/shortcuts/meeting/minute-doc.js +119 -12
- package/dist/shortcuts/meeting/operations/attachment.js +19 -0
- package/dist/shortcuts/meeting/operations/compose-outcome.js +24 -2
- package/dist/shortcuts/meeting/operations/eb/conflict.js +2 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +162 -19
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +22 -3
- package/dist/shortcuts/meeting/operations/group-share.js +268 -0
- package/dist/shortcuts/meeting/operations/minute-content.js +58 -1
- package/dist/shortcuts/meeting/operations/minute-export.js +295 -0
- package/dist/shortcuts/meeting/operations/registry.js +4 -0
- package/dist/shortcuts/project/operations/read.js +40 -15
- package/dist/shortcuts/recruit-stage/context.js +16 -81
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +89 -53
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +15 -5
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +46 -108
- package/dist/shortcuts/recruit-stage/operations/list.js +203 -74
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +21 -85
- package/dist/shortcuts/recruit-stage/operations/search.js +113 -53
- package/dist/shortcuts/recruit-stage/shared.js +153 -4
- package/dist/shortcuts/workflow/endpoints.js +2 -0
- package/dist/shortcuts/workflow/operations/form.js +11 -0
- package/dist/shortcuts/workflow/operations/read.js +24 -5
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +2 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +2 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +28 -4
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.node.js +198 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +4 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.subordinate.js +70 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +15 -5
- package/docs/agent-invoice.md +28 -2
- package/docs/invoice.md +60 -9
- package/docs/project.md +1 -1
- package/package.json +1 -1
- package/skill-template/domains/yepiaotong.md +36 -7
- package/skills/weaver-e10-jinchengda/SKILL.md +64 -28
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +5 -4
- package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +26 -2
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +9 -8
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +47 -52
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +5 -5
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +7 -1
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +21 -12
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +44 -1
- package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +5 -4
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +8 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +33 -3
- package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +17 -3
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +12 -12
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +18 -10
- package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +77 -37
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +7 -0
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +55 -12
- package/skills/weaver-e10-jinchengda/references/contract-review-todo.md +102 -0
- package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +1 -17
- package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +11 -8
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +2 -1
- package/skills/weaver-e10-jinchengda/references/orchestration.md +6 -6
- package/skills/weaver-e10-meeting/SKILL.md +203 -80
- package/skills/weaver-e10-meeting/references/create-quickstart.md +98 -0
- package/skills/weaver-e10-meeting/references/delivery-checklist.md +34 -0
- package/skills/weaver-e10-meeting/references/error-codes.md +44 -0
- package/skills/weaver-e10-meeting/references/minutes-pipeline.md +56 -3
- package/skills/weaver-e10-meeting/references/room-recommend.md +2 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +158 -146
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +64 -51
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +56 -18
- package/skills/weaver-e10-recruit-stage/lib/recruit-attach-probe.mjs +127 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +217 -30
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +39 -7
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +2 -2
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +10 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +18 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +29 -31
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +4 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +19 -20
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +3 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +10 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +4 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +21 -25
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +19 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +31 -58
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +3 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +2 -2
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +2 -2
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +1 -1
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +25 -15
- package/skills/weaver-e10-shijingran/SKILL.md +2 -2
- package/skills/weaver-e10-shijingran/references/operations.md +5 -2
- package/skills/weaver-e10-shijingran/references/source-manifest.json +41 -40
- package/skills/weaver-e10-workflow/SKILL.md +13 -9
- package/skills/weaver-e10-workflow/references/todo-dialogue.md +33 -8
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +19 -14
- package/skills/weaver-e10-workflow/references/workflow-create.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +4 -2
- package/skills/weaver-e10-workflow/references/workflow-view.md +3 -3
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +132 -42
- package/skills/weaver-e10-yepiaotong/SKILL.md +133 -61
- package/skills/weaver-e10-yepiaotong/references/invoice-add.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +18 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +3 -3
- package/skills/weaver-e10-yepiaotong/references/invoice-download.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +13 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-import.md +6 -4
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +42 -45
- package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +18 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +14 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-red-workflow.md +96 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +56 -369
- package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +16 -6
- package/skills/weaver-e10-yepiaotong/references/name-fuzzy-search.md +38 -0
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +163 -646
- package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +90 -44
- package/skills/weaver-e10-yepiaotong/references/reim-eligibility-rules.md +85 -0
- package/skills/weaver-e10-yepiaotong/references/reim-fill-validation.md +61 -0
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +91 -280
- package/skills/weaver-e10-yepiaotong/references/reim-preapproval-rules.md +98 -0
- package/skills/weaver-e10-yepiaotong/references/reim-travel-invoice-matching.md +48 -0
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +234 -695
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +395 -204
- package/skills/weaver-e10-yepiaotong/references/travel-application-fill.md +84 -0
- package/skills/weaver-e10-yepiaotong/references/workflow-direct-fill.md +165 -0
- package/templates/meeting/minute.docx +0 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +0 -93
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +0 -774
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +0 -111
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +0 -360
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +0 -167
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isEsbFlowUnavailable
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RVEKGVZU.js";
|
|
6
6
|
import {
|
|
7
7
|
esbValidationError
|
|
8
8
|
} from "./chunk-TXUG266F.js";
|
|
@@ -3,7 +3,7 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
fetchEbAppSettings,
|
|
5
5
|
findCommonFreeSlots
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZOTXXGUM.js";
|
|
7
7
|
import {
|
|
8
8
|
dayOf,
|
|
9
9
|
filterUsages,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
loadDayUsages,
|
|
13
13
|
loadRooms,
|
|
14
14
|
recommendRooms
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-USYFVIUR.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VNEU7OUN.js";
|
|
21
21
|
import {
|
|
22
22
|
EB_BASE,
|
|
23
23
|
SCHEMA_DATETIME_MINUTE,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
meetingValidationError,
|
|
27
27
|
schemaOf,
|
|
28
28
|
writeBody
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UZ2E3VNI.js";
|
|
30
30
|
import {
|
|
31
31
|
CONTINUATION_TTL_MS,
|
|
32
32
|
CONTINUATION_TTL_SECONDS
|
|
@@ -194,7 +194,7 @@ async function meetingUrlMap(env, ids) {
|
|
|
194
194
|
const unique = [...new Set(ids.map((id) => String(id).trim()).filter((id) => id !== ""))];
|
|
195
195
|
if (unique.length === 0) return out;
|
|
196
196
|
try {
|
|
197
|
-
const { getMeetingOperation } = await import("./registry-
|
|
197
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
198
198
|
const link = getMeetingOperation("meeting.link");
|
|
199
199
|
const result = await link.handler({ type: "meeting", dataIds: unique }, env);
|
|
200
200
|
const rows = result?.data?.items ?? result?.data?.links ?? [];
|
|
@@ -336,9 +336,9 @@ function workflowEnv(env) {
|
|
|
336
336
|
return env;
|
|
337
337
|
}
|
|
338
338
|
async function loadCreateForm(env, workflowId) {
|
|
339
|
-
const { createWorkflowHost } = await import("./host-
|
|
339
|
+
const { createWorkflowHost } = await import("./host-6UOXYOOY.js");
|
|
340
340
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
341
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
341
|
+
const { getWorkflowOperation } = await import("./registry-KQ4TNUWO.js");
|
|
342
342
|
const wfEnv = {
|
|
343
343
|
...workflowEnv(env),
|
|
344
344
|
host: createWorkflowHost(env.ctx),
|
|
@@ -443,7 +443,7 @@ async function resolveAddressRoom(env, input) {
|
|
|
443
443
|
const text = String(input ?? "").trim();
|
|
444
444
|
if (!text) return null;
|
|
445
445
|
const ref = parseRoomRef(text);
|
|
446
|
-
const { loadRooms: loadRooms2 } = await import("./room-recommend-
|
|
446
|
+
const { loadRooms: loadRooms2 } = await import("./room-recommend-ELEJUYBN.js");
|
|
447
447
|
let rooms = [];
|
|
448
448
|
try {
|
|
449
449
|
rooms = (await loadRooms2(env, {})).rooms;
|
|
@@ -474,7 +474,7 @@ async function resolveRoomValue(env, input) {
|
|
|
474
474
|
const ref = parseRoomRef(text);
|
|
475
475
|
if (ref.id) {
|
|
476
476
|
try {
|
|
477
|
-
const { getMeetingOperation } = await import("./registry-
|
|
477
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
478
478
|
const detail = await getMeetingOperation("meeting.eb.room.detail").handler({ id: ref.id }, env);
|
|
479
479
|
const main = detail?.data?.mainTable ?? detail?.data?.data?.mainTable ?? {};
|
|
480
480
|
const name = String(main.room_name ?? "").trim() || ref.name || "";
|
|
@@ -586,7 +586,7 @@ async function shapeBrowserValues(env, values, options = {}) {
|
|
|
586
586
|
const nameOnly = rows.filter((row) => row.id === "" && row.name !== "");
|
|
587
587
|
if (nameOnly.length > 0) {
|
|
588
588
|
try {
|
|
589
|
-
const { getMeetingOperation } = await import("./registry-
|
|
589
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
590
590
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
591
591
|
for (const row of nameOnly) {
|
|
592
592
|
const found = await search.handler({ keyword: row.name, limit: 5 }, env).catch(() => null);
|
|
@@ -787,7 +787,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
|
|
|
787
787
|
const missing = [];
|
|
788
788
|
if (entries.length > 0) {
|
|
789
789
|
try {
|
|
790
|
-
const { getMeetingOperation } = await import("./registry-
|
|
790
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
791
791
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
792
792
|
for (const entry of entries) {
|
|
793
793
|
if (entry.contacts.length > 0) continue;
|
|
@@ -1039,6 +1039,26 @@ async function fixedFlowIdsForEnv(env) {
|
|
|
1039
1039
|
const hit = FIXED_FLOW_PROFILES.find((profile) => profile.host === host && (!profile.tenantKey || !tenantKey || profile.tenantKey === tenantKey));
|
|
1040
1040
|
return hit ? { ids: [...hit.ids], label: hit.label } : { ids: [] };
|
|
1041
1041
|
}
|
|
1042
|
+
function workflowTimingsOf(data) {
|
|
1043
|
+
const out = {};
|
|
1044
|
+
for (const [from, to] of [["durationMs", "workflowMs"], ["authMs", "authMs"]]) {
|
|
1045
|
+
const value = Number(data?.[from]);
|
|
1046
|
+
if (Number.isFinite(value) && value >= 0) out[to] = Math.round(value);
|
|
1047
|
+
}
|
|
1048
|
+
const slowest = data?.apiSlowest;
|
|
1049
|
+
if (typeof slowest === "string" && slowest !== "") out.apiSlowest = slowest;
|
|
1050
|
+
return out;
|
|
1051
|
+
}
|
|
1052
|
+
function workflowApiDurations(data) {
|
|
1053
|
+
const raw = data?.apiDurations;
|
|
1054
|
+
if (!raw || typeof raw !== "object") return null;
|
|
1055
|
+
const out = {};
|
|
1056
|
+
for (const [key, value] of Object.entries(raw)) {
|
|
1057
|
+
const num = Number(value);
|
|
1058
|
+
if (Number.isFinite(num)) out[key] = Math.round(num);
|
|
1059
|
+
}
|
|
1060
|
+
return Object.keys(out).length > 0 ? out : null;
|
|
1061
|
+
}
|
|
1042
1062
|
function shouldAutoPickFlow(args) {
|
|
1043
1063
|
if (args.flowChoice === "auto") return true;
|
|
1044
1064
|
return String(process.env.WEAVER_MEETING_FLOW_CHOICE ?? "").trim().toLowerCase() === "auto";
|
|
@@ -1046,7 +1066,7 @@ function shouldAutoPickFlow(args) {
|
|
|
1046
1066
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
1047
1067
|
const started = Date.now();
|
|
1048
1068
|
try {
|
|
1049
|
-
const { buildImEnv } = await import("./group-chat-
|
|
1069
|
+
const { buildImEnv } = await import("./group-chat-7SEAVAJR.js");
|
|
1050
1070
|
const { getImOperation } = await import("./registry-AC33ZZVH.js");
|
|
1051
1071
|
const imEnv = await buildImEnv(env);
|
|
1052
1072
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
@@ -1171,7 +1191,7 @@ function needsCrmSelection(name, items) {
|
|
|
1171
1191
|
async function buildCrmSelection(args, env) {
|
|
1172
1192
|
const name = crmPendingNames(args.crm_members)[0];
|
|
1173
1193
|
if (!name) return null;
|
|
1174
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1194
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
1175
1195
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
1176
1196
|
const found = await search.handler({ keyword: name, limit: 10 }, env).catch(() => null);
|
|
1177
1197
|
const items = found?.data?.items ?? [];
|
|
@@ -1196,6 +1216,19 @@ function decideEntryMode(input) {
|
|
|
1196
1216
|
if (input.tokenOk === true) return { mode: declared, reason: "token" };
|
|
1197
1217
|
return { mode: "", reason: "unverified" };
|
|
1198
1218
|
}
|
|
1219
|
+
function decideAutoDirect(args) {
|
|
1220
|
+
const beginRaw = String(args.begin_datetime ?? "").trim();
|
|
1221
|
+
const timeReady = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}/.test(beginRaw) || String(args.time_slot ?? "").trim() !== "" && (String(args.dateFrom ?? "").trim() !== "" || /^\d{4}-\d{2}-\d{2}/.test(beginRaw));
|
|
1222
|
+
const placeReady = String(args.address ?? args.customize_address ?? "").trim() !== "" || args.allowNoRoom === true;
|
|
1223
|
+
return timeReady && placeReady;
|
|
1224
|
+
}
|
|
1225
|
+
function isTimeMissing(args) {
|
|
1226
|
+
const begin = String(args.begin_datetime ?? args.beginDatetime ?? "").trim();
|
|
1227
|
+
const hasClock = /\d{1,2}:\d{2}/.test(begin);
|
|
1228
|
+
const hasSlot = /(上午|下午|晚上|早上)/u.test(begin) || String(args.time_slot ?? "").trim() !== "";
|
|
1229
|
+
const hasDate = /\d{4}-\d{2}-\d{2}/.test(begin) || String(args.dateFrom ?? "").trim() !== "";
|
|
1230
|
+
return !hasClock && !hasSlot && !hasDate;
|
|
1231
|
+
}
|
|
1199
1232
|
var ebMeetingCreateFlowPrepare = {
|
|
1200
1233
|
name: "meeting.eb.meeting.create.flow.prepare",
|
|
1201
1234
|
resource: "eb",
|
|
@@ -1262,6 +1295,11 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1262
1295
|
type: "boolean",
|
|
1263
1296
|
description: '\u26D4 **\u4F1A\u8BAE\u5BA4\u7684"\u7528\u6237\u5DF2\u786E\u8BA4"\u6807\u8BB0**\u3002\u53EA\u6709\u4EE5\u4E0B\u4E24\u79CD\u60C5\u51B5\u624D\u4F20 true\uFF1A\u2460 \u7528\u6237\u539F\u8BDD\u660E\u786E\u6307\u5B9A\u4E86\u67D0\u95F4\u4F1A\u8BAE\u5BA4\uFF1B\u2461 \u7528\u6237\u5728\u623F\u95F4\u9009\u9879\u91CC\u70B9\u9009\u540E\u628A `options[].value` \u6574\u4F53\u539F\u6837\u56DE\u4F20\u3002\u4E0D\u4F20 = \u672A\u786E\u8BA4\uFF1A\u5373\u4F7F\u4F20\u4E86 address\uFF0CCLI \u4E5F\u4F1A\u628A"\u4F60\u6307\u5B9A\u7684\u8FD9\u95F4"\u548C\u63A8\u8350\u5019\u9009\u4E00\u8D77\u5217\u51FA\u6765\u8BA9\u7528\u6237\u70B9\u9009\u3002\u26D4 \u4E0D\u8981\u81EA\u5DF1\u4ECE room.list / room.recommend \u91CC\u6311\u4E00\u95F4\u585E\u8FDB address \u2014\u2014 \u90A3\u662F\u66FF\u7528\u6237\u62CD\u677F'
|
|
1264
1297
|
},
|
|
1298
|
+
roomStrategy: {
|
|
1299
|
+
type: "string",
|
|
1300
|
+
enum: ["auto", "ask"],
|
|
1301
|
+
description: '\u6307\u5B9A\u7684\u4F1A\u8BAE\u5BA4\u88AB\u5360\u7528\u65F6\u600E\u4E48\u529E\u3002auto\uFF08\u9ED8\u8BA4\uFF09= \u81EA\u52A8\u6539\u7528\u9996\u9009\u7A7A\u95F2\u623F\u5E76\u7EE7\u7EED\u51FA\u786E\u8BA4\u5361\uFF0C\u56DE\u590D\u91CC\u8BF4\u660E\u6362\u4E86\u54EA\u95F4\uFF1Bask = \u8FD4\u56DE\u5019\u9009\u8BA9\u7528\u6237\u70B9\u9009\u3002\u53EA\u6709\u7528\u6237\u660E\u786E\u8868\u8FBE"\u5C31\u8981\u8FD9\u95F4 / \u5FC5\u987B\u662F 317"\u65F6\u624D\u4F20 ask'
|
|
1302
|
+
},
|
|
1265
1303
|
extraFields: {
|
|
1266
1304
|
type: "object",
|
|
1267
1305
|
description: '\u6309**\u6D41\u7A0B\u8868\u5355\u91CC\u7684\u5B57\u6BB5\u540D**\u586B\u989D\u5916\u5B57\u6BB5\uFF0C\u5F62\u5982 {"\u53C2\u4F1A\u5BA2\u6237": "xx\u516C\u53F8", "\u8054\u7CFB\u65B9\u5F0F": "138xxxx"}\uFF1A\u7528\u4E8E\u79DF\u6237\u5728\u6D41\u7A0B\u8868\u5355\u4E0A\u81EA\u5EFA\u3001CLI \u5185\u7F6E\u522B\u540D\u91CC\u6CA1\u6709\u7684\u5B57\u6BB5\u3002\u952E\u5FC5\u987B\u4E0E\u8BE5\u6D41\u7A0B\u8868\u5355\u7684\u5B57\u6BB5\u540D\u5B8C\u5168\u4E00\u81F4\uFF08prepare \u7684 warnings \u4F1A\u5217\u51FA\u8868\u5355\u73B0\u6709\u5168\u90E8\u5B57\u6BB5\u540D\uFF09\uFF1B\u5339\u914D\u4E0D\u5230\u7684\u4F1A\u8FDB unmapped \u63D0\u793A\uFF0C\u4E0D\u4F1A\u778E\u586B\u3002\u26D4 **\u4F1A\u8BAE\u5730\u70B9 / \u53C2\u4F1A\u4EBA\u5458 / \u53EC\u96C6\u4EBA / \u8054\u7CFB\u4EBA / \u4F1A\u8BAE\u7C7B\u578B \u4E0D\u8981\u585E\u8FD9\u91CC** \u2014\u2014 \u5B83\u4EEC\u6709\u4E13\u7528\u5165\u53C2\uFF08address / hrm_members / caller / contacter / mt_type\uFF09\uFF0CCLI \u4F1A\u628A\u503C\u8865\u6210\u6D4F\u89C8\u6309\u94AE\u8981\u7684 `{id,name}` \u5BF9\u8C61\uFF1B\u585E\u8FDB extraFields \u4F1A\u6309\u7EAF\u6587\u672C\u63D0\u4EA4\uFF0C\u670D\u52A1\u7AEF\u4F1A\u6253\u56DE\u300C\u8BF7\u6309\u540D\u79F0\u9009\u62E9\u300D'
|
|
@@ -1299,14 +1337,14 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1299
1337
|
let entryResolved = "";
|
|
1300
1338
|
const rawEntry = String(args.entryMode ?? "").trim();
|
|
1301
1339
|
if (rawEntry === "assist" || rawEntry === "direct_form") {
|
|
1302
|
-
const { verifyEntryToken } = await import("./entry-mode-
|
|
1340
|
+
const { verifyEntryToken } = await import("./entry-mode-SQU5WTX6.js");
|
|
1303
1341
|
const tokenOk = await verifyEntryToken(env, String(args.entryToken ?? ""), rawEntry).catch(() => false);
|
|
1304
1342
|
const decision = decideEntryMode({ declared: rawEntry, tokenOk });
|
|
1305
1343
|
if (decision.mode) entryResolved = decision.mode;
|
|
1306
1344
|
else env.__entryTokenMissing = 1;
|
|
1307
1345
|
}
|
|
1308
1346
|
if (!entryResolved && rawEntry === "") {
|
|
1309
|
-
const { readEntryChoice } = await import("./entry-mode-
|
|
1347
|
+
const { readEntryChoice } = await import("./entry-mode-SQU5WTX6.js");
|
|
1310
1348
|
const mark2 = await readEntryChoice(env).catch(() => null);
|
|
1311
1349
|
if (mark2?.choice) entryResolved = mark2.choice;
|
|
1312
1350
|
}
|
|
@@ -1318,20 +1356,16 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1318
1356
|
}
|
|
1319
1357
|
if (entryResolved === "direct_form") {
|
|
1320
1358
|
env.__meetingTimings = { ...env.__meetingTimings, directDelegated: 1 };
|
|
1321
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1359
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
1322
1360
|
return getMeetingOperation("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
1323
1361
|
}
|
|
1324
|
-
const
|
|
1325
|
-
const timeReady = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}/.test(beginRaw) || String(args.time_slot ?? "").trim() !== "" && (String(args.dateFrom ?? "").trim() !== "" || /^\d{4}-\d{2}-\d{2}/.test(beginRaw));
|
|
1326
|
-
const placeReady = String(args.address ?? args.customize_address ?? "").trim() !== "";
|
|
1327
|
-
const peopleReady = String(args.hrm_members ?? "").trim() !== "";
|
|
1328
|
-
const autoDirect = timeReady && placeReady && peopleReady;
|
|
1362
|
+
const autoDirect = decideAutoDirect(args);
|
|
1329
1363
|
if (autoDirect) {
|
|
1330
1364
|
args = { ...args, skipPreflight: true };
|
|
1331
1365
|
skipPreflight = true;
|
|
1332
1366
|
}
|
|
1333
|
-
if (!entryResolved && args.skipPreflight !== true) {
|
|
1334
|
-
const { createEntryToken } = await import("./entry-mode-
|
|
1367
|
+
if (!entryResolved && args.skipPreflight !== true && !isTimeMissing(args)) {
|
|
1368
|
+
const { createEntryToken } = await import("./entry-mode-SQU5WTX6.js");
|
|
1335
1369
|
const tokenDirect = await createEntryToken(env, "direct_form");
|
|
1336
1370
|
const tokenAssist = await createEntryToken(env, "assist");
|
|
1337
1371
|
return meetingSuccess("meeting.eb.meeting.create.flow.prepare", {
|
|
@@ -1433,7 +1467,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1433
1467
|
}
|
|
1434
1468
|
}
|
|
1435
1469
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1436
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1470
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-XBKY7VEA.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1437
1471
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1438
1472
|
if (memberIds.length > 0) {
|
|
1439
1473
|
const callerToken2 = String(args.caller ?? "").trim();
|
|
@@ -1475,10 +1509,10 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1475
1509
|
const startMs = Date.parse(beginText.slice(0, 16).replace(" ", "T"));
|
|
1476
1510
|
if (Number.isFinite(startMs)) endText = formatMinute(new Date(startMs + duration * 6e4));
|
|
1477
1511
|
}
|
|
1478
|
-
if (!
|
|
1512
|
+
if (!beginHasTime || !timeConfirmed) {
|
|
1479
1513
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1480
1514
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1481
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1515
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
1482
1516
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1483
1517
|
{
|
|
1484
1518
|
dateFrom: day2,
|
|
@@ -1648,7 +1682,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1648
1682
|
usageFromCache: usageData.fromCache
|
|
1649
1683
|
};
|
|
1650
1684
|
}
|
|
1651
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1685
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
1652
1686
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1653
1687
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1654
1688
|
env
|
|
@@ -1656,7 +1690,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1656
1690
|
return { room, ...result?.data ?? {} };
|
|
1657
1691
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1658
1692
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1659
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1693
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
1660
1694
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1661
1695
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1662
1696
|
env
|
|
@@ -1675,11 +1709,14 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1675
1709
|
includeSchedule: true
|
|
1676
1710
|
}).catch(noteFailure("\u53C2\u4F1A\u4EBA**\u65E5\u7A0B\u7A7A\u95F2**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1677
1711
|
const enrichStarted = Date.now();
|
|
1678
|
-
const
|
|
1712
|
+
const resolvedEarly = await resolveWorkflowId(env, args).catch(() => null);
|
|
1713
|
+
const formPreloadTask = resolvedEarly?.workflowId ? loadCreateForm(env, resolvedEarly.workflowId).catch(() => null) : Promise.resolve(null);
|
|
1714
|
+
const [roomRec, memberConflict, free, roomConflict, preloadedForm] = await Promise.all([
|
|
1679
1715
|
roomTask,
|
|
1680
1716
|
conflictTask,
|
|
1681
1717
|
availabilityTask,
|
|
1682
|
-
roomConflictTask
|
|
1718
|
+
roomConflictTask,
|
|
1719
|
+
formPreloadTask
|
|
1683
1720
|
]);
|
|
1684
1721
|
mark("enrichMs", enrichStarted);
|
|
1685
1722
|
timings.parallelMs = Date.now() - startedAt;
|
|
@@ -1756,15 +1793,36 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1756
1793
|
warnings: [`\u4F1A\u8BAE\u5BA4\u300C${resolvedAddress.name}\u300D\uFF08${resolvedAddress.id}\uFF09\u5DF2\u5C01\u5B58\uFF0C\u4E0D\u53EF\u9884\u7EA6\uFF0C\u5DF2\u62E6\u4E0B\u672A\u63D0\u4EA4\u3002`]
|
|
1757
1794
|
});
|
|
1758
1795
|
}
|
|
1759
|
-
|
|
1796
|
+
const roomStrategyAsk = String(args.roomStrategy ?? "").trim() === "ask";
|
|
1797
|
+
let roomSwitchNotice = "";
|
|
1798
|
+
let roomSwapOptions;
|
|
1799
|
+
if (addressInput && roomConfirmed && roomConflictData?.hasConflict === true && roomOptions.length > 0 && !roomStrategyAsk) {
|
|
1760
1800
|
const fallback = roomOptions[0].value ?? {};
|
|
1761
1801
|
const from = { id: resolvedAddressId, name: addressDisplay };
|
|
1762
1802
|
resolvedAddressId = String(fallback.id ?? "");
|
|
1763
1803
|
addressDisplay = String(fallback.name ?? addressDisplay);
|
|
1764
1804
|
addressInput = resolvedAddressId;
|
|
1765
|
-
decisions.roomAutoSwitched = {
|
|
1805
|
+
decisions.roomAutoSwitched = {
|
|
1806
|
+
reason: "\u4F60\u6307\u5B9A\u7684\u4F1A\u8BAE\u5BA4\u8BE5\u65F6\u6BB5\u88AB\u5360\u7528\uFF0C\u5DF2\u6539\u7528\u9996\u9009\u7A7A\u95F2\u623F",
|
|
1807
|
+
from,
|
|
1808
|
+
to: { id: resolvedAddressId, name: addressDisplay }
|
|
1809
|
+
};
|
|
1810
|
+
roomSwitchNotice = `${from.name} \u5728 ${beginText}~${endText} \u5DF2\u88AB\u5360\u7528\uFF0C\u672C\u6B21\u5DF2\u6539\u7528\u300C${addressDisplay}\u300D\uFF1B\u8981\u6362\u522B\u7684\u623F\u95F4\u6216\u6539\u65F6\u95F4\uFF0C\u76F4\u63A5\u5728\u8868\u5355\u91CC\u6539\uFF0C\u6216\u544A\u8BC9\u6211\u623F\u95F4\u540D`;
|
|
1811
|
+
const others = roomOptions.filter((item) => String(item.value?.id ?? "") !== resolvedAddressId).slice(0, 3);
|
|
1812
|
+
const picked2 = roomOptions[0];
|
|
1813
|
+
const pickedLabel = String(picked2?.label ?? addressDisplay).replace(/\s*·\s*推荐\s*$/, "").trim();
|
|
1814
|
+
const pickedReason = String(picked2?.reason ?? "").trim();
|
|
1815
|
+
roomSwapOptions = [
|
|
1816
|
+
{
|
|
1817
|
+
key: "R1",
|
|
1818
|
+
label: pickedLabel || addressDisplay,
|
|
1819
|
+
reason: `${from.name} \u8BE5\u65F6\u6BB5\u5DF2\u88AB\u5360\u7528\uFF0C\u5DF2\u81EA\u52A8\u6539\u7528\u8FD9\u95F4` + (pickedReason ? `\uFF1B${pickedReason}` : ""),
|
|
1820
|
+
value: { id: resolvedAddressId, name: addressDisplay, roomConfirmed: true, applyDirect: true }
|
|
1821
|
+
},
|
|
1822
|
+
...others.map((item, index) => ({ ...item, key: `R${index + 2}` }))
|
|
1823
|
+
];
|
|
1766
1824
|
}
|
|
1767
|
-
if (addressInput && roomConfirmed && roomConflictData?.hasConflict === true &&
|
|
1825
|
+
if (addressInput && roomConfirmed && roomConflictData?.hasConflict === true && (roomStrategyAsk || roomOptions.length === 0)) {
|
|
1768
1826
|
const busy = Array.isArray(roomConflictData.conflicts) ? roomConflictData.conflicts : [];
|
|
1769
1827
|
decisions.roomConflict = {
|
|
1770
1828
|
address: resolvedAddressId,
|
|
@@ -1888,7 +1946,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1888
1946
|
warnings: ["\u4F1A\u8BAE\u5BA4\u672A\u7ECF\u7528\u6237\u786E\u8BA4\uFF0C\u672C\u6B21**\u6CA1\u6709**\u63D0\u4EA4\u3002", ...failureWarnings]
|
|
1889
1947
|
});
|
|
1890
1948
|
}
|
|
1891
|
-
const resolved = await resolveWorkflowId(env, args);
|
|
1949
|
+
const resolved = resolvedEarly ?? await resolveWorkflowId(env, args);
|
|
1892
1950
|
const confirmedAddressId = resolvedAddressId;
|
|
1893
1951
|
const confirmedAddressLabel = addressId === "" ? "" : resolvedAddress?.name || String(roomOptions.find((item) => String(item.value?.id ?? "") === confirmedAddressId)?.value?.name ?? "") || addressId;
|
|
1894
1952
|
const confirmedWhen = `${beginText}~${String(endText).slice(11) || endText}`;
|
|
@@ -1897,6 +1955,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1897
1955
|
let sourceLabel = resolved.source === "argument" ? "\u8C03\u7528\u65B9\u4F20\u5165" : resolved.source === "fixed" ? `\u56FA\u5316\u914D\u7F6E\uFF08${resolved.label ?? "\u9ED8\u8BA4"}\uFF09` : resolved.source === "memory" ? `\u6CBF\u7528\u4E0A\u6B21\u4F7F\u7528\u7684\u6D41\u7A0B${resolved.label ? `\uFF08${resolved.label}\uFF09` : ""}` : "\u5E94\u7528\u8BBE\u7F6E\u914D\u7F6E";
|
|
1898
1956
|
let probes = [];
|
|
1899
1957
|
let loadedForms = /* @__PURE__ */ new Map();
|
|
1958
|
+
if (preloadedForm && resolvedEarly?.workflowId) loadedForms.set(resolvedEarly.workflowId, preloadedForm);
|
|
1900
1959
|
const autoPick = shouldAutoPickFlow(args);
|
|
1901
1960
|
if (!workflowId && candidates.length > 1) {
|
|
1902
1961
|
const probeStarted = Date.now();
|
|
@@ -2003,7 +2062,10 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2003
2062
|
if (!form.continuation) {
|
|
2004
2063
|
throw meetingValidationError("flow_context_missing", "\u5EFA\u4F1A\u6D41\u7A0B\u8868\u5355\u6CA1\u6709\u8FD4\u56DE continuation\uFF0C\u65E0\u6CD5\u7EE7\u7EED\u63D0\u4EA4");
|
|
2005
2064
|
}
|
|
2006
|
-
|
|
2065
|
+
const markMs = Object.fromEntries(
|
|
2066
|
+
Object.entries(env.__meetingTimings ?? {}).filter(([key, value]) => /Ms$/.test(key) && typeof value === "number")
|
|
2067
|
+
);
|
|
2068
|
+
decisions.timings = { ...timings, ...markMs };
|
|
2007
2069
|
const crmMemberCount = (() => {
|
|
2008
2070
|
if (args.crm_member_count !== void 0 && args.crm_member_count !== "") return args.crm_member_count;
|
|
2009
2071
|
const raw = args.crm_members;
|
|
@@ -2067,7 +2129,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2067
2129
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
2068
2130
|
} else {
|
|
2069
2131
|
try {
|
|
2070
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2132
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
2071
2133
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
2072
2134
|
const renderExtra = {};
|
|
2073
2135
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2326,6 +2388,14 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2326
2388
|
{
|
|
2327
2389
|
status: "AWAITING_CONFIRMATION",
|
|
2328
2390
|
...entryResolved ? { entryResolved } : {},
|
|
2391
|
+
// 指定房被占、已自动换房时给一句人话说明:模型必须把它带进回复,不许静默换房
|
|
2392
|
+
...roomSwitchNotice ? { roomSwitchNotice } : {},
|
|
2393
|
+
// 换房后的候选房必须是可以点的:模型要问就渲染成选项控件,⛔ 不许抄成文字列表让用户打字
|
|
2394
|
+
...roomSwapOptions ? {
|
|
2395
|
+
options: roomSwapOptions,
|
|
2396
|
+
ui: { component: "choice", multiple: false, recommendedKey: "R1" },
|
|
2397
|
+
roomSwapHint: '\u8981\u95EE\u7528\u6237\u5C31\u7528\u9009\u9879\u63A7\u4EF6\u6E32\u67D3 options\uFF0C\u26D4 \u4E0D\u8BB8\u5199\u6210"\u53EF\u9009\uFF1AA/B/C"\u8FD9\u79CD\u6587\u5B57\u5217\u8868\uFF1BR1 \u662F\u5DF2\u81EA\u52A8\u6539\u7528\u7684\u623F\uFF08\u70B9\u5B83\u76F4\u63A5\u7528 continuationId \u63D0\u4EA4\uFF0C\u4E0D\u5FC5\u91CD\u65B0\u9884\u68C0\uFF09\uFF0CR2 \u8D77\u662F\u5176\u5B83\u7A7A\u95F2\u623F\uFF08\u9009\u4E2D\u540E\u7528\u8BE5 value.id \u5F53 address \u91CD\u65B0 prepare\uFF09'
|
|
2398
|
+
} : {},
|
|
2329
2399
|
preview: {
|
|
2330
2400
|
workflowId,
|
|
2331
2401
|
workflowCandidates: candidates,
|
|
@@ -2358,6 +2428,9 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2358
2428
|
},
|
|
2359
2429
|
continuation,
|
|
2360
2430
|
continuationId: await saveContinuationAlias(continuation, CONTINUATION_TTL_MS).catch(() => null),
|
|
2431
|
+
// 长 token 有 4KB,模型转述时会被截断/改写(实测出现过 fingerprint 被改成 "x" 导致验签失败)。
|
|
2432
|
+
// 这里把"该用哪个"写成一句话,避免模型自己挑。
|
|
2433
|
+
submitHint: "\u63D0\u4EA4 apply \u65F6\u4F20 continuationId\uFF088 \u4F4D\uFF09\u5373\u53EF\uFF0C\u4E0D\u8981\u624B\u6284 continuation \u957F\u4E32\uFF1B\u957F\u4E32\u88AB\u622A\u65AD\u6216\u6539\u5199\u4F1A\u62A5 continuation_invalid",
|
|
2361
2434
|
expiresInSeconds: CONTINUATION_TTL_SECONDS
|
|
2362
2435
|
},
|
|
2363
2436
|
warnings.length > 0 ? { warnings } : {}
|
|
@@ -2389,7 +2462,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2389
2462
|
});
|
|
2390
2463
|
};
|
|
2391
2464
|
const readBack = async () => {
|
|
2392
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2465
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
2393
2466
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2394
2467
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2395
2468
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2416,7 +2489,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2416
2489
|
const fields = payload?.invitationFields ?? {};
|
|
2417
2490
|
const started = Date.now();
|
|
2418
2491
|
try {
|
|
2419
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2492
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
2420
2493
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2421
2494
|
const rendered = await render.handler(
|
|
2422
2495
|
{
|
|
@@ -2492,9 +2565,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
2492
2565
|
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");
|
|
2493
2566
|
}
|
|
2494
2567
|
const payload = lease?.payload ?? {};
|
|
2495
|
-
const { createWorkflowHost } = await import("./host-
|
|
2568
|
+
const { createWorkflowHost } = await import("./host-6UOXYOOY.js");
|
|
2496
2569
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2497
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2570
|
+
const { getWorkflowOperation } = await import("./registry-KQ4TNUWO.js");
|
|
2498
2571
|
const wfEnv = {
|
|
2499
2572
|
...workflowEnv(env),
|
|
2500
2573
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2544,7 +2617,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2544
2617
|
const groupPayload2 = payload?.groupChat;
|
|
2545
2618
|
if (groupPayload2) {
|
|
2546
2619
|
try {
|
|
2547
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2620
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-7SEAVAJR.js");
|
|
2548
2621
|
groupChat2 = {
|
|
2549
2622
|
...await ensureMeetingGroupChat(env, {
|
|
2550
2623
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2560,7 +2633,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2560
2633
|
}
|
|
2561
2634
|
if (groupChat2 && groupChat2.ok) {
|
|
2562
2635
|
try {
|
|
2563
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2636
|
+
const { savePendingForm } = await import("./group-chat-7SEAVAJR.js");
|
|
2564
2637
|
await savePendingForm(env, {
|
|
2565
2638
|
workflowId: String(payload.workflowId ?? ""),
|
|
2566
2639
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2598,7 +2671,17 @@ var ebMeetingCreateFlowApply = {
|
|
|
2598
2671
|
message: String(submittedData.message ?? ""),
|
|
2599
2672
|
invitation: browserInvitation,
|
|
2600
2673
|
...groupChat2 ? { groupChat: groupChat2 } : {},
|
|
2601
|
-
|
|
2674
|
+
// ⛔ 这里以前只报 submitMs(拼 URL 的 13ms),把 workflow 层**已经算好**的
|
|
2675
|
+
// `durationMs / authMs / apiDurations / apiSlowest` 全丢了 —— 于是用户看到"7 秒"、
|
|
2676
|
+
// timings 里只有 13ms,谁也说不清剩下的时间花在哪(2026-11-30 用户质问)。
|
|
2677
|
+
// 这些字段 workflow 本来就产出(见 workflow/index.ts 的 printWorkflowResult 注释),
|
|
2678
|
+
// 这里只是别再把它们扔掉,方便直接对着日志看分段。
|
|
2679
|
+
timings: {
|
|
2680
|
+
submitMs: Date.now() - submitStartedAt,
|
|
2681
|
+
invitationMs: pre.ms,
|
|
2682
|
+
...workflowTimingsOf(submittedData)
|
|
2683
|
+
},
|
|
2684
|
+
...workflowApiDurations(submittedData) ? { apiDurations: workflowApiDurations(submittedData) } : {}
|
|
2602
2685
|
},
|
|
2603
2686
|
{
|
|
2604
2687
|
warnings: [
|
|
@@ -2630,7 +2713,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2630
2713
|
let meetingId = "";
|
|
2631
2714
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2632
2715
|
if (waitSeconds > 0) {
|
|
2633
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2716
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
2634
2717
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2635
2718
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2636
2719
|
const pollStart = Date.now();
|
|
@@ -2680,7 +2763,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2680
2763
|
if (groupPayload) {
|
|
2681
2764
|
const groupStart = Date.now();
|
|
2682
2765
|
try {
|
|
2683
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2766
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-7SEAVAJR.js");
|
|
2684
2767
|
const group = await ensureMeetingGroupChat(env, {
|
|
2685
2768
|
meetingName: String(payload.mtName ?? ""),
|
|
2686
2769
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2712,7 +2795,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2712
2795
|
if (meetingId) {
|
|
2713
2796
|
const invitationStart = Date.now();
|
|
2714
2797
|
try {
|
|
2715
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2798
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
2716
2799
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2717
2800
|
const rendered = await render.handler(
|
|
2718
2801
|
{
|
|
@@ -2874,7 +2957,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2874
2957
|
),
|
|
2875
2958
|
handler: async (args, env) => {
|
|
2876
2959
|
if (String(args.entryMode ?? "") === "direct_form" || args.skipPreflight === true && args.confirm !== true) {
|
|
2877
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2960
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-UVTI323K.js");
|
|
2878
2961
|
return getMeetingOperation2("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
2879
2962
|
}
|
|
2880
2963
|
if (args.confirm !== true) {
|
|
@@ -2891,7 +2974,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2891
2974
|
`\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`
|
|
2892
2975
|
);
|
|
2893
2976
|
}
|
|
2894
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2977
|
+
const { getMeetingOperation } = await import("./registry-UVTI323K.js");
|
|
2895
2978
|
const prepareStartedAt = Date.now();
|
|
2896
2979
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2897
2980
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2990,7 +3073,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2990
3073
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2991
3074
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2992
3075
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2993
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
3076
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-XBKY7VEA.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2994
3077
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2995
3078
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2996
3079
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -3121,6 +3204,8 @@ export {
|
|
|
3121
3204
|
crmPendingNames,
|
|
3122
3205
|
needsCrmSelection,
|
|
3123
3206
|
decideEntryMode,
|
|
3207
|
+
decideAutoDirect,
|
|
3208
|
+
isTimeMissing,
|
|
3124
3209
|
patchMeetingCrmMembers,
|
|
3125
3210
|
renderPreInvitation,
|
|
3126
3211
|
meetingEbCreateFlowOperations,
|