weaver-work-cli 0.1.80 → 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-SHXZUE3N.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-TM2G7DNT.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-KVCDZ2FX.js → chunk-5RIK6OLF.js} +7 -7
- package/dist/chunks/{chunk-5E2FDXBU.js → chunk-64RYQOXA.js} +1 -1
- package/dist/chunks/{chunk-44ZWNC7A.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-AVDEZLEB.js → chunk-E3XUYWYA.js} +4 -4
- package/dist/chunks/{chunk-3IX6L74V.js → chunk-FIPTUAOW.js} +2 -2
- package/dist/chunks/{chunk-4MAQALTM.js → chunk-GQEIHXY5.js} +6 -6
- package/dist/chunks/{chunk-TD5IOEGN.js → chunk-JUPKXW4P.js} +1 -1
- package/dist/chunks/{chunk-HYNOKFYJ.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-WXV5FIKA.js → chunk-MWFKLXVU.js} +38 -38
- 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-JQPKSQAK.js → chunk-W4BGNYKR.js} +1 -1
- 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-EGHRA2E3.js → chunk-WM5ZE67G.js} +1 -1
- package/dist/chunks/{chunk-QVKRNL7L.js → chunk-WQ4ZHAEZ.js} +10 -2
- package/dist/chunks/{chunk-JFZM3ZRU.js → chunk-X7OZKI6F.js} +12 -12
- package/dist/chunks/{chunk-YKTVK6XM.js → chunk-Y6HRTEDD.js} +1 -1
- package/dist/chunks/{chunk-2KW7AI6P.js → chunk-YFDKTTYX.js} +8 -5
- package/dist/chunks/{chunk-HKW5FYZR.js → chunk-YLPGCOAM.js} +76 -69
- package/dist/chunks/{chunk-LQLIXBJF.js → chunk-YXIPZFMX.js} +1 -1
- package/dist/chunks/{cli-JDTWQDDR.js → cli-VCQIDBDQ.js} +37 -37
- package/dist/chunks/{commands-J52MJ6NF.js → commands-THGXVOEL.js} +9 -5
- package/dist/chunks/{conflict-O4FXUTIX.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-YIFMKM2C.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-7TGZTZR3.js → ehr-NWMI5Q7S.js} +4 -4
- package/dist/chunks/{employee-QX57HEWS.js → employee-O2EPUYIH.js} +2 -2
- package/dist/chunks/{entry-mode-X3KKRN36.js → entry-mode-TVACGU7K.js} +3 -3
- package/dist/chunks/{env-MCVDVISU.js → env-EWG4ZAWP.js} +2 -2
- package/dist/chunks/{esb-ATRKVHCD.js → esb-56FV2PIA.js} +5 -5
- package/dist/chunks/{factory-ALB7DMVY.js → factory-GQSEJRDY.js} +1 -1
- package/dist/chunks/{fna-IKYI3SST.js → fna-YLA3RKRW.js} +3 -3
- package/dist/chunks/{group-chat-GGPL2EBF.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-36BCXKOX.js → invoice-4PREIOTG.js} +80 -17
- 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-MU3RHAEX.js → meeting-QPPEPBSN.js} +15 -15
- package/dist/chunks/{minute-doc-NHIEZEHU.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-5KK7R37U.js → recruit-stage-O2JGNVMO.js} +12 -8
- 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-HWUNNXDU.js → registry-SAMJ4VH2.js} +14 -14
- package/dist/chunks/{registry-AC33ZZVH.js → registry-YY62OFKQ.js} +1 -1
- package/dist/chunks/{room-recommend-V4BSHR2M.js → room-recommend-NRLAZJCI.js} +4 -4
- package/dist/chunks/{schedule-T7W357TN.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/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 +4 -0
- package/dist/shortcuts/invoice/manifest.js +1 -1
- package/dist/shortcuts/invoice/operations/reim-auto.js +10 -7
- package/dist/shortcuts/invoice/read-enrichment.js +74 -7
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +1 -1
- package/dist/shortcuts/meeting/operations/rooms.js +7 -0
- 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/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/workflow/operations/form.js +2 -1
- package/docs/agent-invoice.md +1 -1
- package/docs/e10-auth.md +14 -1
- package/docs/hrm.md +5 -1
- package/docs/invoice.md +1 -1
- package/docs/ziguanjia.md +5 -1
- package/package.json +1 -1
- package/skill-template/business-info.json +6 -1
- package/skill-template/domains/hrm.md +1 -1
- package/skill-template/domains/yepiaotong.md +1 -1
- package/skill-template/domains/ziguanjia.md +7 -2
- 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-meeting/SKILL.md +1 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +24 -15
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +14 -7
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +12 -1
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +18 -1
- package/skills/weaver-e10-recruit-stage/lib/resume-import-once.mjs +308 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +9 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +54 -15
- 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-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-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 +2 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +5 -3
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +34 -32
- 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
|
@@ -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 ?? [];
|
|
@@ -1297,7 +1297,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1297
1297
|
},
|
|
1298
1298
|
preferAlternatives: {
|
|
1299
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\
|
|
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
1301
|
},
|
|
1302
1302
|
includeContinuation: {
|
|
1303
1303
|
type: "boolean",
|
|
@@ -1345,14 +1345,14 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1345
1345
|
let entryResolved = "";
|
|
1346
1346
|
const rawEntry = String(args.entryMode ?? "").trim();
|
|
1347
1347
|
if (rawEntry === "assist" || rawEntry === "direct_form") {
|
|
1348
|
-
const { verifyEntryToken } = await import("./entry-mode-
|
|
1348
|
+
const { verifyEntryToken } = await import("./entry-mode-TVACGU7K.js");
|
|
1349
1349
|
const tokenOk = await verifyEntryToken(env, String(args.entryToken ?? ""), rawEntry).catch(() => false);
|
|
1350
1350
|
const decision = decideEntryMode({ declared: rawEntry, tokenOk });
|
|
1351
1351
|
if (decision.mode) entryResolved = decision.mode;
|
|
1352
1352
|
else env.__entryTokenMissing = 1;
|
|
1353
1353
|
}
|
|
1354
1354
|
if (!entryResolved && rawEntry === "") {
|
|
1355
|
-
const { readEntryChoice } = await import("./entry-mode-
|
|
1355
|
+
const { readEntryChoice } = await import("./entry-mode-TVACGU7K.js");
|
|
1356
1356
|
const mark2 = await readEntryChoice(env).catch(() => null);
|
|
1357
1357
|
if (mark2?.choice) entryResolved = mark2.choice;
|
|
1358
1358
|
}
|
|
@@ -1364,7 +1364,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
if (entryResolved === "direct_form") {
|
|
1366
1366
|
env.__meetingTimings = { ...env.__meetingTimings, directDelegated: 1 };
|
|
1367
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1367
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
1368
1368
|
return getMeetingOperation("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
1369
1369
|
}
|
|
1370
1370
|
const autoDirect = decideAutoDirect(args);
|
|
@@ -1374,7 +1374,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
const floorOnly = String(args.address ?? "").trim() === "" && Number.isFinite(Number(args.floor)) && Number(args.floor) > 0;
|
|
1376
1376
|
if (!entryResolved && args.skipPreflight !== true && !isTimeMissing(args) && !floorOnly) {
|
|
1377
|
-
const { createEntryToken } = await import("./entry-mode-
|
|
1377
|
+
const { createEntryToken } = await import("./entry-mode-TVACGU7K.js");
|
|
1378
1378
|
const tokenDirect = await createEntryToken(env, "direct_form");
|
|
1379
1379
|
const tokenAssist = await createEntryToken(env, "assist");
|
|
1380
1380
|
return meetingSuccess("meeting.eb.meeting.create.flow.prepare", {
|
|
@@ -1476,7 +1476,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
1478
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1479
|
-
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();
|
|
1480
1480
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1481
1481
|
if (memberIds.length > 0) {
|
|
1482
1482
|
const callerToken2 = String(args.caller ?? "").trim();
|
|
@@ -1521,7 +1521,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1521
1521
|
if (!beginHasTime || !timeConfirmed) {
|
|
1522
1522
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1523
1523
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1524
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1524
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
1525
1525
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1526
1526
|
{
|
|
1527
1527
|
dateFrom: day2,
|
|
@@ -1692,7 +1692,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1692
1692
|
usageFromCache: usageData.fromCache
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
1695
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1695
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
1696
1696
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1697
1697
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1698
1698
|
env
|
|
@@ -1700,7 +1700,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1700
1700
|
return { room, ...result?.data ?? {} };
|
|
1701
1701
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1702
1702
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1703
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1703
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
1704
1704
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1705
1705
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1706
1706
|
env
|
|
@@ -2148,7 +2148,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2148
2148
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
2149
2149
|
} else {
|
|
2150
2150
|
try {
|
|
2151
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2151
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2152
2152
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
2153
2153
|
const renderExtra = {};
|
|
2154
2154
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2484,7 +2484,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2484
2484
|
});
|
|
2485
2485
|
};
|
|
2486
2486
|
const readBack = async () => {
|
|
2487
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2487
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2488
2488
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2489
2489
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2490
2490
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2511,7 +2511,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2511
2511
|
const fields = payload?.invitationFields ?? {};
|
|
2512
2512
|
const started = Date.now();
|
|
2513
2513
|
try {
|
|
2514
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2514
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2515
2515
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2516
2516
|
const rendered = await render.handler(
|
|
2517
2517
|
{
|
|
@@ -2587,9 +2587,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
2587
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");
|
|
2588
2588
|
}
|
|
2589
2589
|
const payload = lease?.payload ?? {};
|
|
2590
|
-
const { createWorkflowHost } = await import("./host-
|
|
2590
|
+
const { createWorkflowHost } = await import("./host-ZVGBZOHY.js");
|
|
2591
2591
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2592
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2592
|
+
const { getWorkflowOperation } = await import("./registry-PYONXFUF.js");
|
|
2593
2593
|
const wfEnv = {
|
|
2594
2594
|
...workflowEnv(env),
|
|
2595
2595
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2639,7 +2639,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2639
2639
|
const groupPayload2 = payload?.groupChat;
|
|
2640
2640
|
if (groupPayload2) {
|
|
2641
2641
|
try {
|
|
2642
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2642
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-5R6L3LCG.js");
|
|
2643
2643
|
groupChat2 = {
|
|
2644
2644
|
...await ensureMeetingGroupChat(env, {
|
|
2645
2645
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2655,7 +2655,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2655
2655
|
}
|
|
2656
2656
|
if (groupChat2 && groupChat2.ok) {
|
|
2657
2657
|
try {
|
|
2658
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2658
|
+
const { savePendingForm } = await import("./group-chat-5R6L3LCG.js");
|
|
2659
2659
|
await savePendingForm(env, {
|
|
2660
2660
|
workflowId: String(payload.workflowId ?? ""),
|
|
2661
2661
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2735,7 +2735,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2735
2735
|
let meetingId = "";
|
|
2736
2736
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2737
2737
|
if (waitSeconds > 0) {
|
|
2738
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2738
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2739
2739
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2740
2740
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2741
2741
|
const pollStart = Date.now();
|
|
@@ -2785,7 +2785,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2785
2785
|
if (groupPayload) {
|
|
2786
2786
|
const groupStart = Date.now();
|
|
2787
2787
|
try {
|
|
2788
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2788
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-5R6L3LCG.js");
|
|
2789
2789
|
const group = await ensureMeetingGroupChat(env, {
|
|
2790
2790
|
meetingName: String(payload.mtName ?? ""),
|
|
2791
2791
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2817,7 +2817,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2817
2817
|
if (meetingId) {
|
|
2818
2818
|
const invitationStart = Date.now();
|
|
2819
2819
|
try {
|
|
2820
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2820
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
2821
2821
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2822
2822
|
const rendered = await render.handler(
|
|
2823
2823
|
{
|
|
@@ -2979,7 +2979,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2979
2979
|
),
|
|
2980
2980
|
handler: async (args, env) => {
|
|
2981
2981
|
if (String(args.entryMode ?? "") === "direct_form" || args.skipPreflight === true && args.confirm !== true) {
|
|
2982
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2982
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-SAMJ4VH2.js");
|
|
2983
2983
|
return getMeetingOperation2("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
2984
2984
|
}
|
|
2985
2985
|
if (args.confirm !== true) {
|
|
@@ -2996,7 +2996,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2996
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`
|
|
2997
2997
|
);
|
|
2998
2998
|
}
|
|
2999
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2999
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
3000
3000
|
const prepareStartedAt = Date.now();
|
|
3001
3001
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
3002
3002
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -3095,7 +3095,7 @@ var ebMeetingCreateSuggest = {
|
|
|
3095
3095
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
3096
3096
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
3097
3097
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
3098
|
-
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();
|
|
3099
3099
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
3100
3100
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
3101
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 = {
|
|
@@ -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,
|
|
@@ -2,12 +2,12 @@ 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
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError,
|
|
9
9
|
schemaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KZ3JR3GE.js";
|
|
11
11
|
|
|
12
12
|
// src/shortcuts/meeting/operations/eb/group-chat.ts
|
|
13
13
|
import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
@@ -16,17 +16,17 @@ var DEFAULT_MEETING_GROUP_FLOW_ID = "1333212605456498718";
|
|
|
16
16
|
var GROUP_FIELD = "imchat_groupid";
|
|
17
17
|
var PENDING_DIR = "pending-forms";
|
|
18
18
|
async function buildEsbEnv(env) {
|
|
19
|
-
const { createEsbHost } = await import("./host-
|
|
19
|
+
const { createEsbHost } = await import("./host-QKCRQS2C.js");
|
|
20
20
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
21
21
|
return { ctx: env.ctx, host: createEsbHost(env.ctx), continuation: createEsbContinuationSigner(env.ctx) };
|
|
22
22
|
}
|
|
23
23
|
async function buildImEnv(env) {
|
|
24
|
-
const { createImHost } = await import("./host-
|
|
24
|
+
const { createImHost } = await import("./host-J72VEDW5.js");
|
|
25
25
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
26
26
|
return { ctx: env.ctx, host: createImHost(env.ctx), continuation: createImContinuationSigner(env.ctx) };
|
|
27
27
|
}
|
|
28
28
|
async function buildWorkflowEnv(env) {
|
|
29
|
-
const { createWorkflowHost } = await import("./host-
|
|
29
|
+
const { createWorkflowHost } = await import("./host-ZVGBZOHY.js");
|
|
30
30
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
31
31
|
return { ctx: env.ctx, host: createWorkflowHost(env.ctx), continuation: createWorkflowContinuationSigner(env.ctx) };
|
|
32
32
|
}
|
|
@@ -113,7 +113,7 @@ async function findGroupByName(env, name) {
|
|
|
113
113
|
const target = name.trim();
|
|
114
114
|
if (target === "") return null;
|
|
115
115
|
try {
|
|
116
|
-
const { getImOperation } = await import("./registry-
|
|
116
|
+
const { getImOperation } = await import("./registry-YY62OFKQ.js");
|
|
117
117
|
const search = getImOperation("im.group.search");
|
|
118
118
|
const imEnv = await buildImEnv(env);
|
|
119
119
|
const found = await search.handler({ name: target }, imEnv);
|
|
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
159
159
|
if (addressText === "[object Object]") addressText = "";
|
|
160
160
|
if (addressText) {
|
|
161
161
|
try {
|
|
162
|
-
const { resolveAddressRoom } = await import("./create-flow-
|
|
162
|
+
const { resolveAddressRoom } = await import("./create-flow-OFZC36MV.js");
|
|
163
163
|
const room = await resolveAddressRoom(env, addressText);
|
|
164
164
|
if (room?.name) addressText = room.name;
|
|
165
165
|
} catch {
|
|
@@ -168,7 +168,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
168
168
|
if (addressText) mainTable.address = addressText;
|
|
169
169
|
}
|
|
170
170
|
try {
|
|
171
|
-
const { getEsbOperation } = await import("./registry-
|
|
171
|
+
const { getEsbOperation } = await import("./registry-BMTQ55G5.js");
|
|
172
172
|
const esbEnv = await buildEsbEnv(env);
|
|
173
173
|
const prepare = getEsbOperation("esb.trigger.prepare");
|
|
174
174
|
const apply = getEsbOperation("esb.trigger.apply");
|
|
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
201
201
|
const group = String(groupId).trim();
|
|
202
202
|
if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
|
|
203
203
|
try {
|
|
204
|
-
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-
|
|
204
|
+
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-GQSEJRDY.js");
|
|
205
205
|
const session = await env.host.getSession();
|
|
206
206
|
await env.host.request({
|
|
207
207
|
method: "POST",
|
|
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
219
219
|
return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
|
|
220
220
|
}
|
|
221
221
|
try {
|
|
222
|
-
const { getMeetingOperation } = await import("./registry-
|
|
222
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
223
223
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
224
224
|
const read = await detail.handler({ id }, env);
|
|
225
225
|
const main = read?.data?.data ?? read?.data?.main ?? {};
|
|
@@ -235,7 +235,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
235
235
|
}
|
|
236
236
|
async function searchMyRequests(env, options = {}) {
|
|
237
237
|
try {
|
|
238
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
238
|
+
const { getWorkflowOperation } = await import("./registry-PYONXFUF.js");
|
|
239
239
|
const op = getWorkflowOperation("workflow.search");
|
|
240
240
|
const wfEnv = await buildWorkflowEnv(env);
|
|
241
241
|
const args = { category: "mine", pageSize: 20, sort: "createTime:desc" };
|
|
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
|
|
|
267
267
|
const target = String(requestId).trim();
|
|
268
268
|
if (target === "") return null;
|
|
269
269
|
try {
|
|
270
|
-
const { getMeetingOperation } = await import("./registry-
|
|
270
|
+
const { getMeetingOperation } = await import("./registry-SAMJ4VH2.js");
|
|
271
271
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
272
272
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
273
273
|
const page = await list.handler({ pageSize: 30 }, env);
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isXiaoECloudRuntime
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WQ4ZHAEZ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-UG5G54VL.js";
|