weaver-work-cli 0.1.78 → 0.1.81
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-ENBSUMHV.js → archive-KVV4SM7J.js} +3 -3
- package/dist/chunks/{archive-oa-7BFPQ6M5.js → archive-oa-VRSPNLY4.js} +3 -3
- package/dist/chunks/{asset-V5SUD3PW.js → asset-JZ5MN6OL.js} +306 -10
- package/dist/chunks/{asset-idle-3CEL7WFX.js → asset-idle-B4SAL43V.js} +3 -3
- package/dist/chunks/{attachment-content-TFOC3Y3X.js → attachment-content-7W4XQTA7.js} +3 -3
- package/dist/chunks/{blog-FLI4SS3P.js → blog-XCBM467O.js} +3 -3
- package/dist/chunks/{caizhilian-7WCTKCCP.js → caizhilian-NZVUKCZD.js} +5 -5
- package/dist/chunks/{calendar-G726HUUH.js → calendar-OVM2SGYJ.js} +3 -3
- package/dist/chunks/{chunk-XNN5PZTI.js → chunk-3WZMDOI3.js} +1 -1
- package/dist/chunks/{chunk-FAC4IFGQ.js → chunk-56F2GGE4.js} +5 -5
- package/dist/chunks/{chunk-LCM5SSGJ.js → chunk-5MM2IZ27.js} +423 -36
- package/dist/chunks/{chunk-BWFCTE43.js → chunk-5NQZO3CO.js} +48 -5
- package/dist/chunks/{chunk-ZOTXXGUM.js → chunk-5RIK6OLF.js} +7 -7
- package/dist/chunks/{chunk-5E2FDXBU.js → chunk-64RYQOXA.js} +1 -1
- package/dist/chunks/{chunk-Z44YFIN6.js → chunk-7BP3HU74.js} +2 -2
- package/dist/chunks/{chunk-3Q5F4C5B.js → chunk-AW3HQUOC.js} +5 -5
- package/dist/chunks/{chunk-7M5OYRK2.js → chunk-BD3M2YVN.js} +3 -3
- package/dist/chunks/{chunk-JEQHNNSS.js → chunk-BFVUBCYO.js} +14 -0
- package/dist/chunks/{chunk-PAWXVT6H.js → chunk-CLVEXDEJ.js} +4 -5
- package/dist/chunks/{chunk-TBCKK6LH.js → chunk-DWCMKEMO.js} +2 -2
- package/dist/chunks/{chunk-USYFVIUR.js → chunk-E3XUYWYA.js} +4 -4
- package/dist/chunks/{chunk-E2EY3DMS.js → chunk-FIPTUAOW.js} +2 -2
- package/dist/chunks/{chunk-IBTGXLOT.js → chunk-GQEIHXY5.js} +6 -6
- package/dist/chunks/{chunk-TD5IOEGN.js → chunk-JUPKXW4P.js} +1 -1
- package/dist/chunks/{chunk-UZ2E3VNI.js → chunk-KZ3JR3GE.js} +3 -3
- package/dist/chunks/{chunk-4PBN7NJY.js → chunk-L2PKMZIU.js} +1 -1
- package/dist/chunks/{chunk-DACQKJ6O.js → chunk-LXWWOHM6.js} +4 -4
- package/dist/chunks/{chunk-7DE3VMZD.js → chunk-LYFPWZBD.js} +6 -1
- package/dist/chunks/{chunk-2UV4IZIT.js → chunk-MTIV6JEN.js} +2 -2
- package/dist/chunks/{chunk-5VQ7JHV4.js → chunk-MWFKLXVU.js} +68 -46
- package/dist/chunks/{chunk-PMRNIGKZ.js → chunk-RVVRTW4P.js} +2 -2
- package/dist/chunks/{chunk-FPWCCRKT.js → chunk-UASZW22U.js} +3 -3
- package/dist/chunks/{chunk-RVEKGVZU.js → chunk-VMUVVTT4.js} +2 -2
- package/dist/chunks/{chunk-7SQN5IZR.js → chunk-W4BGNYKR.js} +12 -2
- package/dist/chunks/{chunk-OVTCWLNQ.js → chunk-W4R3SXJV.js} +15 -7
- package/dist/chunks/{chunk-UDBQJLQF.js → chunk-WF5G5SV3.js} +2 -2
- package/dist/chunks/{chunk-VNEU7OUN.js → chunk-WM5ZE67G.js} +1 -1
- package/dist/chunks/{chunk-QVKRNL7L.js → chunk-WQ4ZHAEZ.js} +10 -2
- package/dist/chunks/{chunk-SWFTWNWL.js → chunk-X7OZKI6F.js} +12 -12
- package/dist/chunks/{chunk-WNFDR5PC.js → chunk-Y6HRTEDD.js} +21 -11
- package/dist/chunks/{chunk-2KW7AI6P.js → chunk-YFDKTTYX.js} +8 -5
- package/dist/chunks/{chunk-BP7BONZO.js → chunk-YLPGCOAM.js} +76 -69
- package/dist/chunks/{chunk-LQLIXBJF.js → chunk-YXIPZFMX.js} +1 -1
- package/dist/chunks/{cli-WA7FOQKC.js → cli-VCQIDBDQ.js} +37 -37
- package/dist/chunks/{commands-J52MJ6NF.js → commands-THGXVOEL.js} +9 -5
- package/dist/chunks/{conflict-D4GVAURN.js → conflict-T7URCNS6.js} +2 -2
- package/dist/chunks/{contract-GW7US3UF.js → contract-ZLGLQ45G.js} +3 -3
- package/dist/chunks/{cowork-GZDODGKF.js → cowork-2MBNOUYS.js} +21 -8
- package/dist/chunks/{create-flow-ERDGW3FZ.js → create-flow-OFZC36MV.js} +6 -6
- package/dist/chunks/{data-HTQZRPPI.js → data-6O7ANJVT.js} +3 -3
- package/dist/chunks/{ebuilder-form-GHNIZ7ET.js → ebuilder-form-OJ3KJVQI.js} +4 -4
- package/dist/chunks/{ehr-P6T7OAAV.js → ehr-NWMI5Q7S.js} +8 -32
- package/dist/chunks/{employee-QX57HEWS.js → employee-O2EPUYIH.js} +2 -2
- package/dist/chunks/{entry-mode-SQU5WTX6.js → entry-mode-TVACGU7K.js} +3 -3
- package/dist/chunks/{env-DASBNSEM.js → env-EWG4ZAWP.js} +2 -2
- package/dist/chunks/{esb-ATRKVHCD.js → esb-56FV2PIA.js} +5 -5
- package/dist/chunks/{factory-A3NAKZAA.js → factory-GQSEJRDY.js} +1 -1
- package/dist/chunks/{fna-IKYI3SST.js → fna-YLA3RKRW.js} +3 -3
- package/dist/chunks/{group-chat-7SEAVAJR.js → group-chat-5R6L3LCG.js} +3 -3
- package/dist/chunks/{host-UY4LQPN4.js → host-42MLO4KX.js} +4 -4
- package/dist/chunks/{host-XXGDQM7D.js → host-J72VEDW5.js} +4 -4
- package/dist/chunks/{host-EJSJSLVK.js → host-QKCRQS2C.js} +4 -4
- package/dist/chunks/{host-EYNLB6S4.js → host-W3BVEATN.js} +4 -4
- package/dist/chunks/{host-OT4KNR3G.js → host-YJINI5GG.js} +4 -4
- package/dist/chunks/{host-6UOXYOOY.js → host-ZVGBZOHY.js} +4 -4
- package/dist/chunks/{hrm-5JQ7QZ6A.js → hrm-3JFZNB42.js} +66 -26
- package/dist/chunks/{im-2YJW3EI5.js → im-HKIRPCGD.js} +5 -5
- package/dist/chunks/{invoice-37HR6L3W.js → invoice-4PREIOTG.js} +185 -49
- package/dist/chunks/{jiuchuanhui-KBWUZ7WT.js → jiuchuanhui-K3PLNENZ.js} +3 -3
- package/dist/chunks/{lazy-dispatch-ZDKLS5MR.js → lazy-dispatch-MKGEWZNM.js} +8 -8
- package/dist/chunks/{mail-YBKUM6HM.js → mail-6QPVWKXM.js} +3 -3
- package/dist/chunks/{meeting-7AEQGBAT.js → meeting-QPPEPBSN.js} +20 -16
- package/dist/chunks/{minute-doc-REI6RUE4.js → minute-doc-JMIDZK5D.js} +1 -1
- package/dist/chunks/{okr-HW7IULIR.js → okr-67C5LQYD.js} +3 -3
- package/dist/chunks/{operations-4P2UYVLH.js → operations-YLKRNAPI.js} +5 -5
- package/dist/chunks/{org-MWWIFNAO.js → org-L5XDM2RQ.js} +2 -2
- package/dist/chunks/{performance-PM2G6L3E.js → performance-33QZZR4I.js} +3 -3
- package/dist/chunks/{plan-3YYGZ7ZM.js → plan-W4BPONRL.js} +3 -3
- package/dist/chunks/{project-6PRGBLO2.js → project-OKSEH6AF.js} +3 -3
- package/dist/chunks/{reception-7G3J2MA6.js → reception-H5M7SPHT.js} +3 -3
- package/dist/chunks/{recruit-stage-TLZJUFHD.js → recruit-stage-O2JGNVMO.js} +16 -86
- package/dist/chunks/{registry-4S3RXXWS.js → registry-45VEUYTC.js} +4 -4
- package/dist/chunks/{registry-3VTB3KLV.js → registry-BMTQ55G5.js} +5 -5
- package/dist/chunks/{registry-KQ4TNUWO.js → registry-PYONXFUF.js} +3 -3
- package/dist/chunks/{registry-UVTI323K.js → registry-SAMJ4VH2.js} +14 -14
- package/dist/chunks/{registry-AC33ZZVH.js → registry-YY62OFKQ.js} +1 -1
- package/dist/chunks/{room-recommend-ELEJUYBN.js → room-recommend-NRLAZJCI.js} +4 -4
- package/dist/chunks/{schedule-XBKY7VEA.js → schedule-LNBOCBP5.js} +4 -4
- package/dist/chunks/{smart-extract-T5Z4AULN.js → smart-extract-JOTX6UZC.js} +3 -3
- package/dist/chunks/{update-77ZUIYSG.js → update-BERR64TI.js} +3 -3
- package/dist/chunks/{workflow-SYCBS5XD.js → workflow-ZDQY3TI7.js} +5 -5
- package/dist/core/runtime-agent.js +19 -3
- package/dist/index.js +4 -4
- package/dist/internal/e10/auth/agent-host-key.js +10 -1
- package/dist/internal/e10/auth/commands.js +20 -4
- package/dist/internal/e10/auth/xiaoe.js +15 -3
- package/dist/shortcuts/asset/host.js +39 -1
- package/dist/shortcuts/asset/index.js +16 -2
- package/dist/shortcuts/asset/manifest.js +115 -1
- package/dist/shortcuts/asset/operations/audit-report.js +144 -0
- package/dist/shortcuts/asset/operations/registry.js +4 -0
- package/dist/shortcuts/asset/operations/write.js +7 -1
- package/dist/shortcuts/cowork/operations/read.js +13 -6
- package/dist/shortcuts/cowork/operations/shared.js +15 -0
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +1 -14
- package/dist/shortcuts/ehr/operations/recruit-write.js +4 -24
- package/dist/shortcuts/ehr/operations/recruit.js +23 -13
- package/dist/shortcuts/hrm/host.js +51 -4
- package/dist/shortcuts/hrm/index.js +45 -26
- package/dist/shortcuts/hrm/manifest.js +17 -0
- package/dist/shortcuts/hrm/operations/employee.js +3 -7
- package/dist/shortcuts/hrm/operations/org.js +2 -4
- package/dist/shortcuts/hrm/operations/position.js +2 -4
- package/dist/shortcuts/hrm/operations/shared.js +21 -0
- package/dist/shortcuts/hrm/operations.js +34 -0
- package/dist/shortcuts/im/constants.js +163 -0
- package/dist/shortcuts/im/host.js +12 -5
- package/dist/shortcuts/im/operations/at-mention.js +4 -2
- package/dist/shortcuts/im/operations/file-user.js +3 -1
- package/dist/shortcuts/im/operations/msg-sync.js +219 -2
- package/dist/shortcuts/im/operations/msg-write.js +70 -30
- package/dist/shortcuts/invoice/invoice-record.js +20 -1
- package/dist/shortcuts/invoice/manifest.js +13 -7
- package/dist/shortcuts/invoice/operations/reim-auto.js +94 -36
- package/dist/shortcuts/invoice/projection.js +7 -3
- package/dist/shortcuts/invoice/read-enrichment.js +78 -8
- package/dist/shortcuts/meeting/host.js +4 -0
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +45 -5
- package/dist/shortcuts/meeting/operations/env.js +15 -1
- package/dist/shortcuts/meeting/operations/rooms.js +7 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +3 -22
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -5
- package/dist/shortcuts/recruit-stage/operations/list.js +3 -2
- package/dist/shortcuts/recruit-stage/operations/profile.js +3 -2
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +8 -55
- package/dist/shortcuts/recruit-stage/operations/search.js +2 -2
- package/dist/shortcuts/recruit-stage/operations/shortlist.js +3 -2
- package/dist/shortcuts/recruit-stage/operations/tag.js +5 -0
- package/dist/shortcuts/recruit-stage/shared.js +3 -11
- package/dist/shortcuts/workflow/operations/form.js +2 -1
- package/docs/agent-invoice.md +26 -8
- package/docs/e10-auth.md +14 -1
- package/docs/hrm.md +5 -1
- package/docs/invoice.md +28 -8
- package/docs/operation-manual.md +6 -4
- package/docs/ziguanjia.md +5 -1
- package/package.json +1 -1
- package/scripts/package-skill.mjs +14 -2
- package/skill-template/business-info.json +6 -1
- package/skill-template/domains/hrm.md +1 -1
- package/skill-template/domains/yepiaotong.md +29 -11
- package/skill-template/domains/ziguanjia.md +7 -2
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
- package/skills/weaver-e10-cowork/SKILL.md +13 -1
- package/skills/weaver-e10-hrm/SKILL.md +16 -2
- package/skills/weaver-e10-hrm/references/org.md +1 -1
- package/skills/weaver-e10-jucailin/SKILL.md +11 -12
- package/skills/weaver-e10-jucailin/agents/openai.yaml +4 -4
- package/skills/weaver-e10-jucailin/references/recruit-implement-consult-sop.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-implement-kb-data-update-channels.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-implement-kb-talent-base-form.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-output-links.md +1 -2
- package/skills/weaver-e10-jucailin/references/recruit-read.md +5 -27
- package/skills/weaver-e10-jucailin/references/recruit-write.md +19 -21
- package/skills/weaver-e10-jucailin/references/safety-boundaries.md +2 -2
- package/skills/weaver-e10-mail/SKILL.md +11 -3
- package/skills/weaver-e10-mail/references/mail-agent-entry.md +1 -1
- package/skills/weaver-e10-meeting/SKILL.md +39 -1
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-plan/references/source-manifest.json +3 -3
- package/skills/weaver-e10-recruit-stage/SKILL.md +57 -42
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +27 -22
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +1 -1
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +20 -5
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +96 -22
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +8 -3
- package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +7 -6
- package/skills/weaver-e10-recruit-stage/lib/resume-import-once.mjs +308 -0
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +6 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +5 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +4 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +0 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +1 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +7 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +3 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +20 -21
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +12 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +1 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +75 -52
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +11 -17
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +3 -4
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +456 -93
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +2 -2
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +1 -1
- package/skills/weaver-e10-shared/SKILL.md +1 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +1 -1
- package/skills/weaver-e10-shared-report.html +874 -0
- package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
- package/skills/weaver-e10-skill-maker/references/post-generation-install.md +6 -0
- package/skills/weaver-e10-workflow/SKILL.md +4 -4
- package/skills/weaver-e10-workflow/aiDeepRead/config.json +138 -142
- package/skills/weaver-e10-workflow/references/workflow-deep-read.md +7 -7
- package/skills/weaver-e10-yepiaotong/SKILL.md +33 -21
- package/skills/weaver-e10-yepiaotong/references/invoice-add.md +2 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-agent-entry.md +5 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-import.md +2 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +30 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +8 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +4 -4
- package/skills/weaver-e10-yepiaotong/references/name-fuzzy-search.md +3 -3
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +19 -9
- package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +25 -32
- package/skills/weaver-e10-yepiaotong/references/reim-eligibility-rules.md +70 -21
- package/skills/weaver-e10-yepiaotong/references/reim-fill-validation.md +23 -12
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +52 -17
- package/skills/weaver-e10-yepiaotong/references/reim-preapproval-rules.md +23 -19
- package/skills/weaver-e10-yepiaotong/references/reim-travel-invoice-matching.md +6 -4
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +127 -63
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +89 -71
- package/skills/weaver-e10-yepiaotong/references/travel-application-fill.md +2 -2
- package/skills/weaver-e10-yepiaotong/references/workflow-direct-fill.md +28 -20
- package/skills/weaver-e10-yepiaotong.zip +0 -0
- package/skills/weaver-e10-yimiaoban/SKILL.md +12 -9
- package/skills/weaver-e10-yimiaoban/references/constants.md +291 -0
- package/skills/weaver-e10-yimiaoban/references/ding-write.md +1 -0
- package/skills/weaver-e10-yimiaoban/references/group-read.md +1 -0
- package/skills/weaver-e10-yimiaoban/references/group-write.md +1 -0
- package/skills/weaver-e10-yimiaoban/references/msg-read.md +10 -1
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +3 -1
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +1 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +175 -36
- package/skills/weaver-e10-ziguanjia/SKILL.md +26 -6
- package/skills/weaver-e10-ziguanjia/references/source-manifest.json +1373 -96
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-audit.md +63 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-disabled-capabilities.md +5 -1
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-idle.md +52 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-report.md +59 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +0 -89
|
@@ -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-5RIK6OLF.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-E3XUYWYA.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WM5ZE67G.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-KZ3JR3GE.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-SAMJ4VH2.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 ?? [];
|
|
@@ -274,7 +274,7 @@ async function resolvePersonsCached(env, ids, options = {}) {
|
|
|
274
274
|
for (let index = 0; index < missing.length; index += BATCH_MAX) {
|
|
275
275
|
const chunk = missing.slice(index, index + BATCH_MAX);
|
|
276
276
|
try {
|
|
277
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
277
|
+
const { hrmEmployeeOperations } = await import("./employee-O2EPUYIH.js");
|
|
278
278
|
const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
|
|
279
279
|
if (!batch) break;
|
|
280
280
|
const result = await batch.handler({ ids: chunk }, env);
|
|
@@ -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-ZVGBZOHY.js");
|
|
340
340
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
341
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
341
|
+
const { getWorkflowOperation } = await import("./registry-PYONXFUF.js");
|
|
342
342
|
const wfEnv = {
|
|
343
343
|
...workflowEnv(env),
|
|
344
344
|
host: createWorkflowHost(env.ctx),
|
|
@@ -380,7 +380,7 @@ async function resolvePersonTokens(env, tokens) {
|
|
|
380
380
|
}
|
|
381
381
|
if (nameLike.length > 0) {
|
|
382
382
|
try {
|
|
383
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
383
|
+
const { hrmEmployeeOperations } = await import("./employee-O2EPUYIH.js");
|
|
384
384
|
const query = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.query");
|
|
385
385
|
for (const name of nameLike) {
|
|
386
386
|
if (!query) break;
|
|
@@ -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-NRLAZJCI.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-SAMJ4VH2.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-SAMJ4VH2.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-SAMJ4VH2.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;
|
|
@@ -1066,8 +1066,8 @@ function shouldAutoPickFlow(args) {
|
|
|
1066
1066
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
1067
1067
|
const started = Date.now();
|
|
1068
1068
|
try {
|
|
1069
|
-
const { buildImEnv } = await import("./group-chat-
|
|
1070
|
-
const { getImOperation } = await import("./registry-
|
|
1069
|
+
const { buildImEnv } = await import("./group-chat-5R6L3LCG.js");
|
|
1070
|
+
const { getImOperation } = await import("./registry-YY62OFKQ.js");
|
|
1071
1071
|
const imEnv = await buildImEnv(env);
|
|
1072
1072
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
1073
1073
|
{ groupId, file: filePath },
|
|
@@ -1191,7 +1191,7 @@ function needsCrmSelection(name, items) {
|
|
|
1191
1191
|
async function buildCrmSelection(args, env) {
|
|
1192
1192
|
const name = crmPendingNames(args.crm_members)[0];
|
|
1193
1193
|
if (!name) return null;
|
|
1194
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1194
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
1195
1195
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
1196
1196
|
const found = await search.handler({ keyword: name, limit: 10 }, env).catch(() => null);
|
|
1197
1197
|
const items = found?.data?.items ?? [];
|
|
@@ -1295,6 +1295,14 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1295
1295
|
type: "boolean",
|
|
1296
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'
|
|
1297
1297
|
},
|
|
1298
|
+
preferAlternatives: {
|
|
1299
|
+
type: "boolean",
|
|
1300
|
+
description: '\u65F6\u95F4\u5DF2\u786E\u8BA4\uFF08timeConfirmed\uFF09\u65F6\u9ED8\u8BA4**\u4E0D**\u626B\u5168\u5929\u627E\u66FF\u4EE3\u65F6\u6BB5\uFF08\u8BE5\u8DEF\u8981\u67E5\u5F53\u5929\u5168\u90E8\u4F1A\u8BAE\u3001\u56DE\u6267\u4E0E\u65E5\u7A0B\uFF0C\u660E\u663E\u66F4\u6162\uFF09\u3002\u7528\u6237\u660E\u786E\u8BF4"\u8FD9\u4E2A\u65F6\u95F4\u4E0D\u884C\u7684\u8BDD\u8FD8\u6709\u522B\u7684\u65F6\u6BB5\u5417"\u518D\u4F20 true'
|
|
1301
|
+
},
|
|
1302
|
+
includeContinuation: {
|
|
1303
|
+
type: "boolean",
|
|
1304
|
+
description: "\u9ED8\u8BA4\u4E0D\u8FD4\u56DE continuation \u957F\u4E32\uFF08\u7EA6 4.8KB\uFF0C\u6A21\u578B\u53EA\u7528 continuationId\uFF09\u3002\u53EA\u6709\u9700\u8981\u628A\u7968\u636E\u539F\u6837\u843D\u5E93/\u8F6C\u4EA4\u65F6\u624D\u4F20 true"
|
|
1305
|
+
},
|
|
1298
1306
|
roomStrategy: {
|
|
1299
1307
|
type: "string",
|
|
1300
1308
|
enum: ["auto", "ask"],
|
|
@@ -1337,14 +1345,14 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1337
1345
|
let entryResolved = "";
|
|
1338
1346
|
const rawEntry = String(args.entryMode ?? "").trim();
|
|
1339
1347
|
if (rawEntry === "assist" || rawEntry === "direct_form") {
|
|
1340
|
-
const { verifyEntryToken } = await import("./entry-mode-
|
|
1348
|
+
const { verifyEntryToken } = await import("./entry-mode-TVACGU7K.js");
|
|
1341
1349
|
const tokenOk = await verifyEntryToken(env, String(args.entryToken ?? ""), rawEntry).catch(() => false);
|
|
1342
1350
|
const decision = decideEntryMode({ declared: rawEntry, tokenOk });
|
|
1343
1351
|
if (decision.mode) entryResolved = decision.mode;
|
|
1344
1352
|
else env.__entryTokenMissing = 1;
|
|
1345
1353
|
}
|
|
1346
1354
|
if (!entryResolved && rawEntry === "") {
|
|
1347
|
-
const { readEntryChoice } = await import("./entry-mode-
|
|
1355
|
+
const { readEntryChoice } = await import("./entry-mode-TVACGU7K.js");
|
|
1348
1356
|
const mark2 = await readEntryChoice(env).catch(() => null);
|
|
1349
1357
|
if (mark2?.choice) entryResolved = mark2.choice;
|
|
1350
1358
|
}
|
|
@@ -1356,7 +1364,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1356
1364
|
}
|
|
1357
1365
|
if (entryResolved === "direct_form") {
|
|
1358
1366
|
env.__meetingTimings = { ...env.__meetingTimings, directDelegated: 1 };
|
|
1359
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1367
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
1360
1368
|
return getMeetingOperation("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
1361
1369
|
}
|
|
1362
1370
|
const autoDirect = decideAutoDirect(args);
|
|
@@ -1364,8 +1372,9 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1364
1372
|
args = { ...args, skipPreflight: true };
|
|
1365
1373
|
skipPreflight = true;
|
|
1366
1374
|
}
|
|
1367
|
-
|
|
1368
|
-
|
|
1375
|
+
const floorOnly = String(args.address ?? "").trim() === "" && Number.isFinite(Number(args.floor)) && Number(args.floor) > 0;
|
|
1376
|
+
if (!entryResolved && args.skipPreflight !== true && !isTimeMissing(args) && !floorOnly) {
|
|
1377
|
+
const { createEntryToken } = await import("./entry-mode-TVACGU7K.js");
|
|
1369
1378
|
const tokenDirect = await createEntryToken(env, "direct_form");
|
|
1370
1379
|
const tokenAssist = await createEntryToken(env, "assist");
|
|
1371
1380
|
return meetingSuccess("meeting.eb.meeting.create.flow.prepare", {
|
|
@@ -1467,7 +1476,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1467
1476
|
}
|
|
1468
1477
|
}
|
|
1469
1478
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1470
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1479
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-LNBOCBP5.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1471
1480
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1472
1481
|
if (memberIds.length > 0) {
|
|
1473
1482
|
const callerToken2 = String(args.caller ?? "").trim();
|
|
@@ -1512,7 +1521,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1512
1521
|
if (!beginHasTime || !timeConfirmed) {
|
|
1513
1522
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1514
1523
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1515
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1524
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
1516
1525
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1517
1526
|
{
|
|
1518
1527
|
dateFrom: day2,
|
|
@@ -1635,7 +1644,8 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1635
1644
|
});
|
|
1636
1645
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4\u63A8\u8350")) : Promise.resolve(null);
|
|
1637
1646
|
let floorAutoPick = null;
|
|
1638
|
-
|
|
1647
|
+
const floorGiven = Number.isFinite(Number(args.floor)) && Number(args.floor) > 0;
|
|
1648
|
+
if (floorHint !== null && (String(addressInput ?? "").trim() !== "" || floorGiven)) {
|
|
1639
1649
|
const floorRec = await roomTask.catch(() => null);
|
|
1640
1650
|
const first = floorRec?.candidates?.[0] ?? floorRec?.best ?? null;
|
|
1641
1651
|
if (first?.id) {
|
|
@@ -1682,7 +1692,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1682
1692
|
usageFromCache: usageData.fromCache
|
|
1683
1693
|
};
|
|
1684
1694
|
}
|
|
1685
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1695
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
1686
1696
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1687
1697
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1688
1698
|
env
|
|
@@ -1690,16 +1700,17 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1690
1700
|
return { room, ...result?.data ?? {} };
|
|
1691
1701
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1692
1702
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1693
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1703
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
1694
1704
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1695
1705
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1696
1706
|
env
|
|
1697
1707
|
);
|
|
1698
1708
|
})().catch(noteFailure("\u53C2\u4F1A\u4EBA**\u4F1A\u8BAE\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1709
|
+
const wantAlternatives = timeConfirmed !== true || args.preferAlternatives === true;
|
|
1699
1710
|
const availabilityTask = cachedChecks ? Promise.resolve({
|
|
1700
1711
|
slots: cachedChecks.freeSlots,
|
|
1701
1712
|
...cachedChecks.blockingSummary ? { blockingSummary: cachedChecks.blockingSummary } : {}
|
|
1702
|
-
}) : enrich && beginText && endText && memberIds.length > 0 ? findCommonFreeSlots(env, {
|
|
1713
|
+
}) : wantAlternatives && enrich && beginText && endText && memberIds.length > 0 ? findCommonFreeSlots(env, {
|
|
1703
1714
|
rangeStart: `${day} 00:00`,
|
|
1704
1715
|
rangeEnd: `${day} 23:59`,
|
|
1705
1716
|
durationMinutes,
|
|
@@ -1711,12 +1722,20 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1711
1722
|
const enrichStarted = Date.now();
|
|
1712
1723
|
const resolvedEarly = await resolveWorkflowId(env, args).catch(() => null);
|
|
1713
1724
|
const formPreloadTask = resolvedEarly?.workflowId ? loadCreateForm(env, resolvedEarly.workflowId).catch(() => null) : Promise.resolve(null);
|
|
1725
|
+
const timed = async (label, task) => {
|
|
1726
|
+
const begin = Date.now();
|
|
1727
|
+
try {
|
|
1728
|
+
return await task;
|
|
1729
|
+
} finally {
|
|
1730
|
+
mark(label, begin);
|
|
1731
|
+
}
|
|
1732
|
+
};
|
|
1714
1733
|
const [roomRec, memberConflict, free, roomConflict, preloadedForm] = await Promise.all([
|
|
1715
|
-
roomTask,
|
|
1716
|
-
conflictTask,
|
|
1717
|
-
availabilityTask,
|
|
1718
|
-
roomConflictTask,
|
|
1719
|
-
formPreloadTask
|
|
1734
|
+
timed("roomRecommendMs", roomTask),
|
|
1735
|
+
timed("memberConflictMs", conflictTask),
|
|
1736
|
+
timed("freeSlotsMs", availabilityTask),
|
|
1737
|
+
timed("roomOccupancyMs", roomConflictTask),
|
|
1738
|
+
timed("formPreloadMs", formPreloadTask)
|
|
1720
1739
|
]);
|
|
1721
1740
|
mark("enrichMs", enrichStarted);
|
|
1722
1741
|
timings.parallelMs = Date.now() - startedAt;
|
|
@@ -2129,7 +2148,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2129
2148
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
2130
2149
|
} else {
|
|
2131
2150
|
try {
|
|
2132
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2151
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2133
2152
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
2134
2153
|
const renderExtra = {};
|
|
2135
2154
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2426,7 +2445,10 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2426
2445
|
...invitationDocInfo ? { invitationDoc: invitationDocInfo } : {},
|
|
2427
2446
|
...Object.keys(decisions).length > 0 ? { decisions } : {}
|
|
2428
2447
|
},
|
|
2429
|
-
|
|
2448
|
+
// 长串 ~4.8KB,占这份返回的近两成;模型只用 continuationId(文档也禁止手抄长串),
|
|
2449
|
+
// 每次多传 4.8KB 就是白付序列化+回传的钱(2026-12-01 实测输出 25KB → 20KB)。
|
|
2450
|
+
// 少数要原串的调用方(自定义落库/调试)传 includeContinuation: true。
|
|
2451
|
+
...args.includeContinuation === true ? { continuation } : {},
|
|
2430
2452
|
continuationId: await saveContinuationAlias(continuation, CONTINUATION_TTL_MS).catch(() => null),
|
|
2431
2453
|
// 长 token 有 4KB,模型转述时会被截断/改写(实测出现过 fingerprint 被改成 "x" 导致验签失败)。
|
|
2432
2454
|
// 这里把"该用哪个"写成一句话,避免模型自己挑。
|
|
@@ -2462,7 +2484,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2462
2484
|
});
|
|
2463
2485
|
};
|
|
2464
2486
|
const readBack = async () => {
|
|
2465
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2487
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2466
2488
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2467
2489
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2468
2490
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2489,7 +2511,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2489
2511
|
const fields = payload?.invitationFields ?? {};
|
|
2490
2512
|
const started = Date.now();
|
|
2491
2513
|
try {
|
|
2492
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2514
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2493
2515
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2494
2516
|
const rendered = await render.handler(
|
|
2495
2517
|
{
|
|
@@ -2565,9 +2587,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
2565
2587
|
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");
|
|
2566
2588
|
}
|
|
2567
2589
|
const payload = lease?.payload ?? {};
|
|
2568
|
-
const { createWorkflowHost } = await import("./host-
|
|
2590
|
+
const { createWorkflowHost } = await import("./host-ZVGBZOHY.js");
|
|
2569
2591
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2570
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2592
|
+
const { getWorkflowOperation } = await import("./registry-PYONXFUF.js");
|
|
2571
2593
|
const wfEnv = {
|
|
2572
2594
|
...workflowEnv(env),
|
|
2573
2595
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2617,7 +2639,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2617
2639
|
const groupPayload2 = payload?.groupChat;
|
|
2618
2640
|
if (groupPayload2) {
|
|
2619
2641
|
try {
|
|
2620
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2642
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-5R6L3LCG.js");
|
|
2621
2643
|
groupChat2 = {
|
|
2622
2644
|
...await ensureMeetingGroupChat(env, {
|
|
2623
2645
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2633,7 +2655,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2633
2655
|
}
|
|
2634
2656
|
if (groupChat2 && groupChat2.ok) {
|
|
2635
2657
|
try {
|
|
2636
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2658
|
+
const { savePendingForm } = await import("./group-chat-5R6L3LCG.js");
|
|
2637
2659
|
await savePendingForm(env, {
|
|
2638
2660
|
workflowId: String(payload.workflowId ?? ""),
|
|
2639
2661
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2713,7 +2735,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2713
2735
|
let meetingId = "";
|
|
2714
2736
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2715
2737
|
if (waitSeconds > 0) {
|
|
2716
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2738
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2717
2739
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2718
2740
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2719
2741
|
const pollStart = Date.now();
|
|
@@ -2763,7 +2785,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2763
2785
|
if (groupPayload) {
|
|
2764
2786
|
const groupStart = Date.now();
|
|
2765
2787
|
try {
|
|
2766
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2788
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-5R6L3LCG.js");
|
|
2767
2789
|
const group = await ensureMeetingGroupChat(env, {
|
|
2768
2790
|
meetingName: String(payload.mtName ?? ""),
|
|
2769
2791
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2795,7 +2817,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2795
2817
|
if (meetingId) {
|
|
2796
2818
|
const invitationStart = Date.now();
|
|
2797
2819
|
try {
|
|
2798
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2820
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2799
2821
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2800
2822
|
const rendered = await render.handler(
|
|
2801
2823
|
{
|
|
@@ -2957,7 +2979,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2957
2979
|
),
|
|
2958
2980
|
handler: async (args, env) => {
|
|
2959
2981
|
if (String(args.entryMode ?? "") === "direct_form" || args.skipPreflight === true && args.confirm !== true) {
|
|
2960
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2982
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-SAMJ4VH2.js");
|
|
2961
2983
|
return getMeetingOperation2("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
2962
2984
|
}
|
|
2963
2985
|
if (args.confirm !== true) {
|
|
@@ -2974,7 +2996,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2974
2996
|
`\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`
|
|
2975
2997
|
);
|
|
2976
2998
|
}
|
|
2977
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2999
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2978
3000
|
const prepareStartedAt = Date.now();
|
|
2979
3001
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2980
3002
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -3073,7 +3095,7 @@ var ebMeetingCreateSuggest = {
|
|
|
3073
3095
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
3074
3096
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
3075
3097
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
3076
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
3098
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-LNBOCBP5.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
3077
3099
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
3078
3100
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
3079
3101
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
createE10RequestRuntime,
|
|
12
12
|
isE10SessionExpiredResponse,
|
|
13
13
|
requireE10Session
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UASZW22U.js";
|
|
15
15
|
import {
|
|
16
16
|
E10_SESSION_EXPIRED_MESSAGE
|
|
17
17
|
} from "./chunk-IZCQU5D5.js";
|
|
18
18
|
import {
|
|
19
19
|
getActiveProfile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WQ4ZHAEZ.js";
|
|
21
21
|
|
|
22
22
|
// src/shortcuts/caizhilian/host.ts
|
|
23
23
|
var CAIZHILAN_TIMEOUT_MS = 12e3;
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
summarizeE10TlsPolicy,
|
|
26
26
|
summarizeXiaoEFailureKind,
|
|
27
27
|
tryXiaoEUnifiedLogin
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WQ4ZHAEZ.js";
|
|
29
29
|
import {
|
|
30
30
|
isXiaoERuntimeAgent
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-LYFPWZBD.js";
|
|
32
32
|
import {
|
|
33
33
|
CliError,
|
|
34
34
|
toErrorEnvelope
|
|
@@ -562,7 +562,7 @@ ${baseUrl}`;
|
|
|
562
562
|
}
|
|
563
563
|
var workBuddyLoginInFlight = /* @__PURE__ */ new Map();
|
|
564
564
|
async function recoverWorkBuddyAuthSession(ctx, login = async (context, options) => {
|
|
565
|
-
const { runBrowserLogin } = await import("./commands-
|
|
565
|
+
const { runBrowserLogin } = await import("./commands-THGXVOEL.js");
|
|
566
566
|
const previousMachineMode = context.logger.machineMode;
|
|
567
567
|
context.logger.machineMode = true;
|
|
568
568
|
try {
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
createE10RequestRuntime,
|
|
15
15
|
isE10SessionExpiredResponse,
|
|
16
16
|
requireE10Session
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UASZW22U.js";
|
|
18
18
|
import {
|
|
19
19
|
E10_SESSION_EXPIRED_MESSAGE
|
|
20
20
|
} from "./chunk-IZCQU5D5.js";
|
|
21
21
|
import {
|
|
22
22
|
getActiveProfile
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WQ4ZHAEZ.js";
|
|
24
24
|
|
|
25
25
|
// src/shortcuts/esb/host.ts
|
|
26
26
|
var ESB_PATHS = {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ebBusinessSuccess,
|
|
6
6
|
meetingSuccess,
|
|
7
7
|
meetingValidationError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KZ3JR3GE.js";
|
|
9
9
|
|
|
10
10
|
// src/shortcuts/meeting/operations/env.ts
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
@@ -155,9 +155,19 @@ var meetingEnvDetect = {
|
|
|
155
155
|
handler: async (args, { host, ctx }) => {
|
|
156
156
|
const result = await resolveMeetingEnvMode(host, ctx, { refresh: args.refresh === true });
|
|
157
157
|
const { warning, ...data } = result;
|
|
158
|
+
const session = await host.getSession();
|
|
158
159
|
return meetingSuccess(
|
|
159
160
|
"meeting.env.detect",
|
|
160
|
-
|
|
161
|
+
{
|
|
162
|
+
...data,
|
|
163
|
+
identity: {
|
|
164
|
+
userId: session?.userId ?? "",
|
|
165
|
+
department: session?.department ?? "",
|
|
166
|
+
subcompany: session?.subcompany ?? "",
|
|
167
|
+
position: session?.position ?? "",
|
|
168
|
+
tenantName: session?.tenantName ?? ""
|
|
169
|
+
}
|
|
170
|
+
},
|
|
161
171
|
warning ? { warnings: [warning] } : void 0
|
|
162
172
|
);
|
|
163
173
|
}
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
clearInvoiceTokenForSession
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MTIV6JEN.js";
|
|
6
6
|
import {
|
|
7
7
|
appendXiaoEAuthErrorLog,
|
|
8
8
|
clearXiaoEAuthErrorLog,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
normalizeXiaoEAuthErrorLogLimit,
|
|
11
11
|
readXiaoEAuthErrorLog,
|
|
12
12
|
xiaoEAuthLogSecrets
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UASZW22U.js";
|
|
14
14
|
import {
|
|
15
15
|
E10AuthSession,
|
|
16
16
|
XIAOE_AGENT_TYPE,
|
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
readTeamsCheckUserInfo,
|
|
35
35
|
resolveActiveProfileForHost,
|
|
36
36
|
resolveAgentHostKey,
|
|
37
|
+
resolveConfiguredE10BaseUrl,
|
|
37
38
|
resolveDefaultE10BaseUrl,
|
|
38
39
|
resolveLoginProfileName,
|
|
39
40
|
resolveSessionHostKey,
|
|
@@ -44,7 +45,7 @@ import {
|
|
|
44
45
|
switchActiveProfile,
|
|
45
46
|
tryXiaoEUnifiedLogin,
|
|
46
47
|
upsertAgentHost
|
|
47
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WQ4ZHAEZ.js";
|
|
48
49
|
import {
|
|
49
50
|
isConnectorMode
|
|
50
51
|
} from "./chunk-Y3C6MDL7.js";
|
|
@@ -730,6 +731,10 @@ async function runXiaoELogin(ctx, options) {
|
|
|
730
731
|
));
|
|
731
732
|
throw error;
|
|
732
733
|
}
|
|
734
|
+
function resolveLoginBaseUrl(env, explicitCandidates) {
|
|
735
|
+
const explicit = explicitCandidates.find((value) => (value || "").trim()) || "";
|
|
736
|
+
return normalizeUrl(explicit || resolveConfiguredE10BaseUrl(env) || resolveDefaultE10BaseUrl(env));
|
|
737
|
+
}
|
|
733
738
|
async function runBrowserLogin(ctx, options, loginMode = {}) {
|
|
734
739
|
const commandOpts = asOptions(options);
|
|
735
740
|
const globalOptions = ctx.getGlobalOptions();
|
|
@@ -743,7 +748,7 @@ async function runBrowserLogin(ctx, options, loginMode = {}) {
|
|
|
743
748
|
explicitAgentType
|
|
744
749
|
});
|
|
745
750
|
const hostKey = target.hostKey;
|
|
746
|
-
const baseUrl =
|
|
751
|
+
const baseUrl = resolveLoginBaseUrl(ctx.env, [explicitBaseUrl, target.cfg.baseUrl]);
|
|
747
752
|
const tenantKey = optionString(commandOpts, "tenantKey");
|
|
748
753
|
const explicitPort = optionString(commandOpts, "port");
|
|
749
754
|
const portText = explicitPort || "19800";
|
|
@@ -1169,9 +1174,11 @@ function registerE10AuthCommands(parent, action) {
|
|
|
1169
1174
|
explicitAgentType: optionString(commandOpts, "agentType", "agent_type")
|
|
1170
1175
|
});
|
|
1171
1176
|
const cfg = target.cfg;
|
|
1172
|
-
const baseUrl =
|
|
1173
|
-
optionString(commandOpts, "baseUrl")
|
|
1174
|
-
|
|
1177
|
+
const baseUrl = resolveLoginBaseUrl(ctx.env, [
|
|
1178
|
+
optionString(commandOpts, "baseUrl"),
|
|
1179
|
+
globalOptions.baseUrl,
|
|
1180
|
+
cfg.baseUrl
|
|
1181
|
+
]);
|
|
1175
1182
|
const passportUrl = normalizeUrl(optionString(commandOpts, "passportUrl") || globalOptions.passportUrl || cfg.passportUrl || baseUrl);
|
|
1176
1183
|
const tenantKeyFallback = optionString(commandOpts, "tenantKey");
|
|
1177
1184
|
const agentType = resolveAgentType(commandOpts, ctx.env);
|
|
@@ -1341,6 +1348,7 @@ export {
|
|
|
1341
1348
|
buildE10AuthorizeUrl,
|
|
1342
1349
|
isTlsClientHello,
|
|
1343
1350
|
createOAuthCallbackProtocolMismatchError,
|
|
1351
|
+
resolveLoginBaseUrl,
|
|
1344
1352
|
runBrowserLogin,
|
|
1345
1353
|
registerE10AuthCommands
|
|
1346
1354
|
};
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
createE10RequestRuntime,
|
|
11
11
|
isE10SessionExpiredResponse,
|
|
12
12
|
requireE10Session
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UASZW22U.js";
|
|
14
14
|
import {
|
|
15
15
|
getActiveProfile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WQ4ZHAEZ.js";
|
|
17
17
|
|
|
18
18
|
// src/shortcuts/ebuilder-form/host.ts
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingStateDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W4BGNYKR.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
isConnectorMode
|
|
5
5
|
} from "./chunk-Y3C6MDL7.js";
|
|
6
6
|
import {
|
|
7
|
+
hasXiaoEEnvMarker,
|
|
7
8
|
isXiaoEHostEnvironment,
|
|
8
9
|
isXiaoERuntimeAgent
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LYFPWZBD.js";
|
|
10
11
|
import {
|
|
11
12
|
packagePath
|
|
12
13
|
} from "./chunk-2BZ7TY4M.js";
|
|
@@ -44,6 +45,7 @@ var AGENT_HOST_PREFIXES = [
|
|
|
44
45
|
];
|
|
45
46
|
var DEFAULT_AGENT_HOST_KEY = "default";
|
|
46
47
|
function resolveSessionHostKey(env, options = {}) {
|
|
48
|
+
if (hasXiaoEEnvMarker(env)) return "xiaoe";
|
|
47
49
|
if (isXiaoERuntimeAgent(options.runtimeAgent)) return "xiaoe";
|
|
48
50
|
return resolveAgentHostKey(env, options.runtimeAgent);
|
|
49
51
|
}
|
|
@@ -1640,11 +1642,16 @@ function normalizeBaseUrlValue(value) {
|
|
|
1640
1642
|
if (!raw) return "";
|
|
1641
1643
|
return /^https?:\/\//i.test(raw) ? raw : `https://${raw}`;
|
|
1642
1644
|
}
|
|
1643
|
-
function
|
|
1645
|
+
function resolveConfiguredE10BaseUrl(env = process.env) {
|
|
1644
1646
|
const explicitDefault = envString(env, ...XIAOE_DEFAULT_DOMAIN_ENV_KEYS);
|
|
1645
1647
|
if (explicitDefault) return normalizeBaseUrlValue(explicitDefault);
|
|
1646
1648
|
const singleDomain = envString(env, ...XIAOE_SINGLE_DOMAIN_ENV_KEYS);
|
|
1647
1649
|
if (singleDomain) return normalizeBaseUrlValue(singleDomain);
|
|
1650
|
+
return "";
|
|
1651
|
+
}
|
|
1652
|
+
function resolveXiaoEConfiguredBaseUrl(env) {
|
|
1653
|
+
const configured = resolveConfiguredE10BaseUrl(env);
|
|
1654
|
+
if (configured) return configured;
|
|
1648
1655
|
const firstCredential = listXiaoEUnifiedLoginCredentials(env)[0];
|
|
1649
1656
|
if (firstCredential?.baseUrl) return normalizeUrl(firstCredential.baseUrl);
|
|
1650
1657
|
return "";
|
|
@@ -2546,6 +2553,7 @@ export {
|
|
|
2546
2553
|
hasXiaoEEnv,
|
|
2547
2554
|
isXiaoECloudRuntime,
|
|
2548
2555
|
resolveXiaoEUnifiedLoginCredential,
|
|
2556
|
+
resolveConfiguredE10BaseUrl,
|
|
2549
2557
|
isXiaoEHostedEnvironment,
|
|
2550
2558
|
resolveDefaultE10BaseUrl,
|
|
2551
2559
|
resolveXiaoEDefaultBaseUrl,
|