weaver-work-cli 0.1.59 → 0.1.61
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/dist/chunks/{archive-4SQAVTIB.js → archive-S2VKZWQ3.js} +2 -2
- package/dist/chunks/{archive-oa-W2UEJ67L.js → archive-oa-HEDSIUUY.js} +2 -2
- package/dist/chunks/{asset-EGZEABBI.js → asset-HYH4W357.js} +2 -2
- package/dist/chunks/{asset-idle-EBUZBB6M.js → asset-idle-N7REBNGL.js} +2 -2
- package/dist/chunks/{attachment-content-TP6WDNC6.js → attachment-content-VYYA75FR.js} +3 -3
- package/dist/chunks/{blog-2YKMWOWI.js → blog-SLMZZICV.js} +2 -2
- package/dist/chunks/{caizhilian-5NM4X5HG.js → caizhilian-RV43KKBT.js} +4 -4
- package/dist/chunks/{calendar-H4QTJCUY.js → calendar-DMVZ4OLY.js} +2 -2
- package/dist/chunks/{chunk-QNPIY5R6.js → chunk-6XSSAUNW.js} +4 -4
- package/dist/chunks/{chunk-AQOPPNTR.js → chunk-BIA2NKUG.js} +4 -4
- package/dist/chunks/{chunk-VMCCRWFO.js → chunk-BQYX2UX5.js} +2 -2
- package/dist/chunks/{chunk-CI2RF3AJ.js → chunk-DTCQFTHW.js} +1 -1
- package/dist/chunks/{chunk-I3BFBBP2.js → chunk-E5YD5JWR.js} +1 -1
- package/dist/chunks/{chunk-PH7N4UFT.js → chunk-EGANE35F.js} +1 -1
- package/dist/chunks/{chunk-Z4IPY5GV.js → chunk-H6YOMI3U.js} +2 -2
- package/dist/chunks/{chunk-U2DWV6JC.js → chunk-ILALC2N6.js} +1 -1
- package/dist/chunks/{chunk-WINR2Q6K.js → chunk-KXJA42EA.js} +86 -19
- package/dist/chunks/{chunk-CQ4OVCKG.js → chunk-KY3R42RS.js} +2 -2
- package/dist/chunks/{chunk-WVH5ESDA.js → chunk-NRYDJN4J.js} +1 -1
- package/dist/chunks/{chunk-TGM7BWEH.js → chunk-P6TXQK75.js} +2 -2
- package/dist/chunks/{chunk-6YWHRXEQ.js → chunk-QBDXJS2W.js} +119 -9
- package/dist/chunks/{chunk-2IGZUMNG.js → chunk-SHX7XBYR.js} +180 -18
- package/dist/chunks/{chunk-XR5BGFNT.js → chunk-T2KVJFWJ.js} +10 -4
- package/dist/chunks/{chunk-FMNCSYIG.js → chunk-TEZHIB6T.js} +2 -2
- package/dist/chunks/{chunk-2FHP4PYS.js → chunk-UBGWIXU3.js} +116 -40
- package/dist/chunks/{chunk-5N222HK6.js → chunk-UBRWONP4.js} +2 -2
- package/dist/chunks/{chunk-MQBMMJUV.js → chunk-UQFPF4EX.js} +2 -2
- package/dist/chunks/{chunk-4GG72JAT.js → chunk-V2LASYKO.js} +2 -2
- package/dist/chunks/{chunk-FM7B5BIR.js → chunk-VBFBMM7G.js} +61 -53
- package/dist/chunks/{chunk-ZHPCNM2S.js → chunk-VNYOUAWV.js} +11 -11
- package/dist/chunks/{chunk-SFM3M2L3.js → chunk-WIWDVETN.js} +19 -3
- package/dist/chunks/{chunk-44KJ7WFA.js → chunk-XT77MP54.js} +2 -2
- package/dist/chunks/chunk-YI2YMW5N.js +111 -0
- package/dist/chunks/{conflict-Y3ESXYIA.js → conflict-GFJRS6I7.js} +2 -2
- package/dist/chunks/{contract-LLRKMLQQ.js → contract-U3ZGNRWB.js} +2 -2
- package/dist/chunks/{cowork-2RDFBZWB.js → cowork-EX7PKIDK.js} +2 -2
- package/dist/chunks/{create-flow-JHQSA6JF.js → create-flow-EJZD434E.js} +6 -6
- package/dist/chunks/{data-ZVS3BWPT.js → data-FOODGAMF.js} +278 -123
- package/dist/chunks/{ebuilder-form-TWSXS5NA.js → ebuilder-form-I2EOKODG.js} +5 -5
- package/dist/chunks/{ehr-52GBKNJR.js → ehr-TE4RFNID.js} +2 -2
- package/dist/chunks/entry-mode-ZOLSXEGX.js +19 -0
- package/dist/chunks/{env-LQBLL3MZ.js → env-TID5NFR6.js} +2 -2
- package/dist/chunks/{esb-HJSXCEOM.js → esb-7L6MHYLB.js} +4 -4
- package/dist/chunks/{factory-X7PN6B3B.js → factory-OG7BPMH5.js} +1 -1
- package/dist/chunks/{fna-OBACRT3J.js → fna-6V2ENR3Y.js} +2 -2
- package/dist/chunks/{group-chat-PPFY7SPV.js → group-chat-5DKPWIHL.js} +3 -3
- package/dist/chunks/{host-TTSGY5NZ.js → host-3DLYA54R.js} +3 -3
- package/dist/chunks/{host-KJT3G5D2.js → host-GOJHHTPY.js} +3 -3
- package/dist/chunks/{host-KOWUMNAY.js → host-OGBHL75G.js} +3 -3
- package/dist/chunks/{host-MFXRA2MY.js → host-ONZC6AE7.js} +3 -3
- package/dist/chunks/{host-W4JCNRFS.js → host-TJ5VVHM7.js} +3 -3
- package/dist/chunks/{host-2BKMPWDH.js → host-VTPAWDZV.js} +3 -3
- package/dist/chunks/{hrm-AK3WGBMN.js → hrm-2N7NFQDZ.js} +3 -3
- package/dist/chunks/{im-JZSBPO4Z.js → im-XCH47ZBN.js} +3 -3
- package/dist/chunks/{invoice-6XDMPCWB.js → invoice-XQRKMGNY.js} +3 -3
- package/dist/chunks/{jiuchuanhui-K4EQU6GK.js → jiuchuanhui-PL6DRPBM.js} +2 -2
- package/dist/chunks/{lazy-dispatch-GCA6HDOB.js → lazy-dispatch-UATEN7H7.js} +5 -5
- package/dist/chunks/{mail-IKVCQCVZ.js → mail-Q7Z4CQ4D.js} +2 -2
- package/dist/chunks/{meeting-GMRQZFJP.js → meeting-5E3BNARL.js} +13 -12
- package/dist/chunks/{minute-doc-JXH3MNC7.js → minute-doc-NXRE5C77.js} +4 -4
- package/dist/chunks/{okr-KV43FPPX.js → okr-3O3XNYOK.js} +2 -2
- package/dist/chunks/{operations-6NXJ7RTE.js → operations-EZWG72FH.js} +4 -4
- package/dist/chunks/performance-Y7CPNSOR.js +1295 -0
- package/dist/chunks/{plan-WOYR4WEG.js → plan-BLGPZF5M.js} +2 -2
- package/dist/chunks/{project-CQJKBUIL.js → project-6MZMLJMP.js} +2 -2
- package/dist/chunks/{reception-MPBU3JXC.js → reception-F2VT2X52.js} +2 -2
- package/dist/chunks/{recruit-stage-USTTRHOX.js → recruit-stage-4ETIBMIW.js} +2 -2
- package/dist/chunks/{registry-GURQG4ZV.js → registry-3FYSWV3U.js} +3 -3
- package/dist/chunks/{registry-SS5J2FZQ.js → registry-7RS74TCK.js} +4 -4
- package/dist/chunks/{registry-WZCCBI5L.js → registry-I4DVPDMU.js} +11 -10
- package/dist/chunks/{room-recommend-CKU5NF2E.js → room-recommend-GWCVKCXW.js} +4 -4
- package/dist/chunks/{schedule-DEFAO2RY.js → schedule-6AN63MJQ.js} +4 -4
- package/dist/chunks/{smart-extract-APX2PNIN.js → smart-extract-SR4SJJKN.js} +3 -3
- package/dist/chunks/{workflow-WMPW3WSB.js → workflow-KF7FA2UQ.js} +7 -7
- package/dist/cmd/refs/index.js +124 -4
- package/dist/core/output.js +199 -26
- package/dist/core/refs.js +36 -0
- package/dist/index.js +38 -33
- package/dist/internal/e10/auth/xiaoe.js +25 -3
- package/dist/shortcuts/caizhilian/operations/files.js +86 -15
- package/dist/shortcuts/data/index.js +12 -2
- package/dist/shortcuts/data/manifest.js +4 -2
- package/dist/shortcuts/data/operations/attribution.js +229 -0
- package/dist/shortcuts/data/operations/ds.js +87 -92
- package/dist/shortcuts/data/operations/index.js +3 -1
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +111 -12
- package/dist/shortcuts/meeting/operations/eb/entry-mode.js +116 -0
- package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +11 -0
- package/dist/shortcuts/meeting/operations/registry.js +4 -0
- package/dist/shortcuts/performance/continuation.js +74 -0
- package/dist/shortcuts/performance/errors.js +65 -0
- package/dist/shortcuts/performance/host.js +105 -0
- package/dist/shortcuts/performance/index.js +109 -0
- package/dist/shortcuts/performance/manifest.js +30 -0
- package/dist/shortcuts/performance/operations/hrm-resolve.js +114 -0
- package/dist/shortcuts/performance/operations/registry.js +44 -0
- package/dist/shortcuts/performance/operations/scheme-detail.js +70 -0
- package/dist/shortcuts/performance/operations/scheme-draft.js +116 -0
- package/dist/shortcuts/performance/operations/scheme-publish.js +158 -0
- package/dist/shortcuts/performance/operations/types.js +32 -0
- package/dist/shortcuts/performance/scheme-validate.js +307 -0
- package/dist/shortcuts/performance/shared.js +158 -0
- package/docs/agent-io-channel-design.md +67 -3
- package/docs/data.md +2 -1
- package/package.json +1 -1
- package/scripts/xiaoe_env.py +6 -1
- package/skill-template/business-info.json +19 -0
- package/skill-template/domains/performance.md +18 -0
- package/skills/weaver-e10-caizhilian/SKILL.md +1 -1
- package/skills/weaver-e10-data/references/datasource.md +2 -1
- package/skills/weaver-e10-meeting/SKILL.md +16 -3
- package/skills/weaver-e10-performance/SKILL.md +202 -0
- package/skills/weaver-e10-performance/agents/openai.yaml +74 -0
- package/skills/weaver-e10-performance/references/default-assembly.md +108 -0
- package/skills/weaver-e10-performance/references/entity-resolution.md +69 -0
- package/skills/weaver-e10-performance/references/enums-and-normalization.md +80 -0
- package/skills/weaver-e10-performance/references/examples.md +146 -0
- package/skills/weaver-e10-performance/references/extraction-guide.md +144 -0
- package/skills/weaver-e10-performance/references/scheme-edit-req-fields.md +185 -0
- package/skills/weaver-e10-performance/references/scheme-setting-page.md +62 -0
- package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +483 -0
- package/skills/weaver-e10-shared/references/json-output-contract.md +5 -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-6XSSAUNW.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-T2KVJFWJ.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ILALC2N6.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-DTCQFTHW.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-I4DVPDMU.js");
|
|
198
198
|
const link = getMeetingOperation("meeting.link");
|
|
199
199
|
const result = await link.handler({ type: "meeting", dataIds: unique }, env);
|
|
200
200
|
const rows = result?.data?.items ?? result?.data?.links ?? [];
|
|
@@ -336,9 +336,9 @@ function workflowEnv(env) {
|
|
|
336
336
|
return env;
|
|
337
337
|
}
|
|
338
338
|
async function loadCreateForm(env, workflowId) {
|
|
339
|
-
const { createWorkflowHost } = await import("./host-
|
|
339
|
+
const { createWorkflowHost } = await import("./host-VTPAWDZV.js");
|
|
340
340
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
341
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
341
|
+
const { getWorkflowOperation } = await import("./registry-3FYSWV3U.js");
|
|
342
342
|
const wfEnv = {
|
|
343
343
|
...workflowEnv(env),
|
|
344
344
|
host: createWorkflowHost(env.ctx),
|
|
@@ -443,7 +443,7 @@ async function resolveAddressRoom(env, input) {
|
|
|
443
443
|
const text = String(input ?? "").trim();
|
|
444
444
|
if (!text) return null;
|
|
445
445
|
const ref = parseRoomRef(text);
|
|
446
|
-
const { loadRooms: loadRooms2 } = await import("./room-recommend-
|
|
446
|
+
const { loadRooms: loadRooms2 } = await import("./room-recommend-GWCVKCXW.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-I4DVPDMU.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 || "";
|
|
@@ -485,7 +485,7 @@ async function resolveRoomValue(env, input) {
|
|
|
485
485
|
}
|
|
486
486
|
return null;
|
|
487
487
|
}
|
|
488
|
-
async function shapeBrowserValues(env, values) {
|
|
488
|
+
async function shapeBrowserValues(env, values, options = {}) {
|
|
489
489
|
const notes = [];
|
|
490
490
|
const shaped = { ...values };
|
|
491
491
|
const readable = {};
|
|
@@ -586,7 +586,7 @@ async function shapeBrowserValues(env, values) {
|
|
|
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-I4DVPDMU.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);
|
|
@@ -602,17 +602,24 @@ async function shapeBrowserValues(env, values) {
|
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
const unresolved = rows.filter((row) => row.id === "");
|
|
605
|
-
if (unresolved.length > 0) {
|
|
605
|
+
if (unresolved.length > 0 && options.crmAutoPick === true) {
|
|
606
|
+
notes.push(`\u5BA2\u6237\u672A\u5EFA\u6863\uFF0C\u5DF2\u8DF3\u8FC7\uFF1A${unresolved.map((row) => row.name).join("\u3001")}`);
|
|
607
|
+
for (let i = rows.length - 1; i >= 0; i -= 1) if (rows[i].id === "") rows.splice(i, 1);
|
|
608
|
+
} else if (unresolved.length > 0) {
|
|
606
609
|
throw meetingValidationError(
|
|
607
610
|
"crm_not_found",
|
|
608
611
|
`\u53C2\u4F1A\u5BA2\u6237\u6709 ${unresolved.length} \u4E2A\u5728 CRM \u91CC\u67E5\u4E0D\u5230\uFF1A${unresolved.map((row) => row.name).join("\u3001")}\u3002\u8BF7\u786E\u8BA4\u5BA2\u6237\u540D\u79F0\uFF0C\u6216\u5148\u5230\u5BA2\u6237\u8868\u5EFA\u6863\uFF1B\u4E5F\u53EF\u4EE5\u6539\u7528\u300C\u5BA2\u6237\u540D(\u5BA2\u6237id)\u300D\u6216 \`[{id,name}]\` \u4F20 crm_members\u3002`
|
|
609
612
|
);
|
|
610
613
|
}
|
|
611
|
-
shaped.crm_members = rows;
|
|
614
|
+
if (rows.length > 0) shaped.crm_members = rows;
|
|
615
|
+
else delete shaped.crm_members;
|
|
612
616
|
readable.crm_members = rows.map((row) => row.name || row.id).join("\u3001");
|
|
613
617
|
notes.push(`\u53C2\u4F1A\u5BA2\u6237\u6309\u5BA2\u6237\u6D4F\u89C8\u6309\u94AE\u683C\u5F0F\u63D0\u4EA4\uFF1A${rows.length} \u4E2A\u5BA2\u6237`);
|
|
614
618
|
const missingNames = rows.filter((row) => row.name === "");
|
|
615
|
-
if (missingNames.length > 0) {
|
|
619
|
+
if (missingNames.length > 0 && options.crmAutoPick === true) {
|
|
620
|
+
notes.push("\u6709\u5BA2\u6237\u53EA\u7ED9\u4E86 id \u6CA1\u6709\u540D\u79F0\uFF0C\u5DF2\u8DF3\u8FC7\uFF0C\u907F\u514D\u5199\u6210\u7A7A\u503C");
|
|
621
|
+
for (let i = rows.length - 1; i >= 0; i -= 1) if (rows[i].name === "") rows.splice(i, 1);
|
|
622
|
+
} else if (missingNames.length > 0) {
|
|
616
623
|
throw meetingValidationError(
|
|
617
624
|
"crm_name_required",
|
|
618
625
|
`\u53C2\u4F1A\u5BA2\u6237\u6709 ${missingNames.length} \u4E2A\u53EA\u7ED9\u4E86 id\u3001\u6CA1\u6709\u5BA2\u6237\u540D\u79F0\uFF1A${missingNames.map((row) => row.id).join("\u3001")}\u3002\u5BA2\u6237\u6D4F\u89C8\u6309\u94AE\u5FC5\u987B\u5E26\u540D\u79F0\u624D\u80FD\u5199\u5165\uFF08\u53EA\u7ED9 id \u4F1A\u88AB\u670D\u52A1\u7AEF\u9759\u9ED8\u5B58\u6210\u7A7A\u503C\uFF09\u3002\u8BF7\u5148\u7528 \`meeting.eb.crm.search\` \u6309\u5BA2\u6237\u540D\u67E5\u5230 \`{ customerId, name }\`\uFF0C\u518D\u4EE5 \`[{id,name}]\` \u6216\u300C\u5BA2\u6237\u540D(\u5BA2\u6237id)\u300D\u7684\u5F62\u5F0F\u4F20 \`crm_members\`\u3002`
|
|
@@ -780,7 +787,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
|
|
|
780
787
|
const missing = [];
|
|
781
788
|
if (entries.length > 0) {
|
|
782
789
|
try {
|
|
783
|
-
const { getMeetingOperation } = await import("./registry-
|
|
790
|
+
const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
|
|
784
791
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
785
792
|
for (const entry of entries) {
|
|
786
793
|
if (entry.contacts.length > 0) continue;
|
|
@@ -1039,7 +1046,7 @@ function shouldAutoPickFlow(args) {
|
|
|
1039
1046
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
1040
1047
|
const started = Date.now();
|
|
1041
1048
|
try {
|
|
1042
|
-
const { buildImEnv } = await import("./group-chat-
|
|
1049
|
+
const { buildImEnv } = await import("./group-chat-5DKPWIHL.js");
|
|
1043
1050
|
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
1044
1051
|
const imEnv = await buildImEnv(env);
|
|
1045
1052
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
@@ -1240,6 +1247,65 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1240
1247
|
{ required: ["mt_name"] }
|
|
1241
1248
|
),
|
|
1242
1249
|
handler: async (args, env) => {
|
|
1250
|
+
let skipPreflight = args.skipPreflight === true;
|
|
1251
|
+
if (args.entryMode === "direct_form") {
|
|
1252
|
+
args = { ...args, skipPreflight: true };
|
|
1253
|
+
skipPreflight = true;
|
|
1254
|
+
}
|
|
1255
|
+
let entryResolved = "";
|
|
1256
|
+
const rawEntry = String(args.entryMode ?? "").trim();
|
|
1257
|
+
if (rawEntry === "assist" || rawEntry === "direct_form") {
|
|
1258
|
+
const { verifyEntryToken } = await import("./entry-mode-ZOLSXEGX.js");
|
|
1259
|
+
if (await verifyEntryToken(env, String(args.entryToken ?? ""), rawEntry).catch(() => false)) {
|
|
1260
|
+
entryResolved = rawEntry;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
if (!entryResolved) {
|
|
1264
|
+
const { readEntryChoice } = await import("./entry-mode-ZOLSXEGX.js");
|
|
1265
|
+
const mark2 = await readEntryChoice(env).catch(() => null);
|
|
1266
|
+
if (mark2?.choice) entryResolved = mark2.choice;
|
|
1267
|
+
}
|
|
1268
|
+
if (entryResolved) args = { ...args, entryMode: entryResolved };
|
|
1269
|
+
env.__entryResolved = entryResolved || void 0;
|
|
1270
|
+
if (entryResolved === "direct_form") {
|
|
1271
|
+
args = { ...args, skipPreflight: true };
|
|
1272
|
+
skipPreflight = true;
|
|
1273
|
+
}
|
|
1274
|
+
const beginRaw = String(args.begin_datetime ?? "").trim();
|
|
1275
|
+
const timeReady = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}/.test(beginRaw) || String(args.time_slot ?? "").trim() !== "" && (String(args.dateFrom ?? "").trim() !== "" || /^\d{4}-\d{2}-\d{2}/.test(beginRaw));
|
|
1276
|
+
const placeReady = String(args.address ?? args.customize_address ?? "").trim() !== "";
|
|
1277
|
+
const peopleReady = String(args.hrm_members ?? "").trim() !== "";
|
|
1278
|
+
const autoDirect = timeReady && placeReady && peopleReady;
|
|
1279
|
+
if (autoDirect) {
|
|
1280
|
+
args = { ...args, skipPreflight: true };
|
|
1281
|
+
skipPreflight = true;
|
|
1282
|
+
}
|
|
1283
|
+
if (!entryResolved && args.skipPreflight !== true) {
|
|
1284
|
+
const { createEntryToken } = await import("./entry-mode-ZOLSXEGX.js");
|
|
1285
|
+
const tokenDirect = await createEntryToken(env, "direct_form");
|
|
1286
|
+
const tokenAssist = await createEntryToken(env, "assist");
|
|
1287
|
+
return meetingSuccess("meeting.eb.meeting.create.flow.prepare", {
|
|
1288
|
+
status: "NEEDS_SELECTION",
|
|
1289
|
+
selectionType: "entry",
|
|
1290
|
+
ui: { component: "choice", multiple: false, recommendedKey: "A" },
|
|
1291
|
+
message: "\u9884\u5B9A\u4F1A\u8BAE\u6709\u4E24\u79CD\u65B9\u5F0F\uFF1A\u76F4\u63A5\u53D1\u8D77\u6D41\u7A0B\u8868\u5355\uFF0C\u6216\u7531\u6211\u5148\u63A8\u8350\u4F1A\u8BAE\u5BA4\u3001\u68C0\u6D4B\u51B2\u7A81\u3002\u8BF7\u8BA9\u7528\u6237\u9009\u4E00\u4E2A\u3002",
|
|
1292
|
+
options: [
|
|
1293
|
+
{ key: "A", label: "\u76F4\u63A5\u53D1\u8D77\u6D41\u7A0B", reason: "\u6253\u5F00\u4F1A\u8BAE\u7533\u8BF7\u8868\u5355\uFF0C\u53EA\u56DE\u586B\u5DF2\u77E5\u4FE1\u606F", value: { entryMode: "direct_form", entryToken: tokenDirect } },
|
|
1294
|
+
{ key: "B", label: "\u63A8\u8350\u4F1A\u8BAE\u5BA4/\u68C0\u6D4B\u51B2\u7A81", reason: "\u5148\u786E\u8BA4\u65F6\u95F4\u5730\u70B9\uFF0C\u518D\u63D0\u4EA4", value: { entryMode: "assist", entryToken: tokenAssist } }
|
|
1295
|
+
],
|
|
1296
|
+
hint: "\u7528\u6237\u70B9\u9009\u540E\u628A value \u539F\u6837\u5E26\u56DE\uFF08\u542B entryMode\uFF09\uFF0C\u4E0D\u8981\u81EA\u5DF1\u66FF\u7528\u6237\u9009\u3002"
|
|
1297
|
+
}, { meta: { notes: ["\u5165\u53E3\u786E\u8BA4\uFF1A\u7528\u6237\u672A\u8868\u6001\u65F6\u5FC5\u987B\u5148\u95EE\u4E00\u6B21"] } });
|
|
1298
|
+
}
|
|
1299
|
+
if (args.skipPreflight === true) {
|
|
1300
|
+
const hasAddress = String(args.address ?? args.customize_address ?? "").trim() !== "";
|
|
1301
|
+
args = {
|
|
1302
|
+
...args,
|
|
1303
|
+
timeConfirmed: true,
|
|
1304
|
+
autoRoom: autoDirect !== true,
|
|
1305
|
+
enrich: autoDirect !== true,
|
|
1306
|
+
...hasAddress ? { roomConfirmed: true } : {}
|
|
1307
|
+
};
|
|
1308
|
+
}
|
|
1243
1309
|
const marks = env.__meetingTimings ??= {};
|
|
1244
1310
|
const mark = (key, from) => {
|
|
1245
1311
|
marks[key] = (marks[key] ?? 0) + (Date.now() - from);
|
|
@@ -1248,6 +1314,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1248
1314
|
let flowPickNote = null;
|
|
1249
1315
|
const decisions = {};
|
|
1250
1316
|
const enrich = args.enrich !== false;
|
|
1317
|
+
const roomCheckOnly = args.skipPreflight === true && String(args.address ?? "").trim() !== "";
|
|
1251
1318
|
let beginText = String(args.begin_datetime ?? "").trim();
|
|
1252
1319
|
let endText = String(args.end_datetime ?? "").trim();
|
|
1253
1320
|
const TIME_SLOT_RANGES = {
|
|
@@ -1303,7 +1370,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1303
1370
|
}
|
|
1304
1371
|
}
|
|
1305
1372
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1306
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1373
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-6AN63MJQ.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1307
1374
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1308
1375
|
if (memberIds.length > 0) {
|
|
1309
1376
|
const callerToken2 = String(args.caller ?? "").trim();
|
|
@@ -1345,10 +1412,10 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1345
1412
|
const startMs = Date.parse(beginText.slice(0, 16).replace(" ", "T"));
|
|
1346
1413
|
if (Number.isFinite(startMs)) endText = formatMinute(new Date(startMs + duration * 6e4));
|
|
1347
1414
|
}
|
|
1348
|
-
if (!beginHasTime || !timeConfirmed) {
|
|
1415
|
+
if (!skipPreflight && (!beginHasTime || !timeConfirmed)) {
|
|
1349
1416
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1350
1417
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1351
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1418
|
+
const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
|
|
1352
1419
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1353
1420
|
{
|
|
1354
1421
|
dateFrom: day2,
|
|
@@ -1450,7 +1517,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1450
1517
|
const dayUsagesTask = enrich && beginText && endText ? loadDayUsages(env, day) : Promise.resolve(null);
|
|
1451
1518
|
const floorArg = Number.isFinite(Number(args.floor)) ? Number(args.floor) : null;
|
|
1452
1519
|
const floorHint = floorArg ?? (/楼|层|\d+\s*F/iu.test(String(args.address ?? "")) ? inferRoomFloor(String(args.address ?? "")) : null);
|
|
1453
|
-
const roomTask = enrich && beginText && endText ? (async () => {
|
|
1520
|
+
const roomTask = (enrich || roomCheckOnly) && beginText && endText ? (async () => {
|
|
1454
1521
|
const usageData = await dayUsagesTask;
|
|
1455
1522
|
return recommendRooms(env, {
|
|
1456
1523
|
beginDatetime: beginText,
|
|
@@ -1498,11 +1565,11 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1498
1565
|
`\u7A7A\u95F2\u6821\u9A8C\u6CBF\u7528 ${Math.round((Date.now() - cachedChecks.checkedAt) / 1e3)} \u79D2\u524D\u7684\u7ED3\u8BBA\uFF08\u65F6\u95F4/\u53C2\u4F1A\u4EBA/\u4F1A\u8BAE\u5BA4\u90FD\u6CA1\u53D8\uFF0C\u672A\u91CD\u590D\u67E5\u8BE2\uFF09\u3002`
|
|
1499
1566
|
);
|
|
1500
1567
|
}
|
|
1501
|
-
const roomConflictTask = cachedChecks ? Promise.resolve({
|
|
1568
|
+
const roomConflictTask = cachedChecks && !roomCheckOnly && !roomConfirmed ? Promise.resolve({
|
|
1502
1569
|
room: cachedChecks.roomRecord,
|
|
1503
1570
|
hasConflict: cachedChecks.roomHasConflict === true,
|
|
1504
1571
|
conflicts: cachedChecks.roomConflicts ?? []
|
|
1505
|
-
}) : enrich && beginText && endText && addressId !== "" ? (async () => {
|
|
1572
|
+
}) : (enrich || roomCheckOnly) && beginText && endText && addressId !== "" ? (async () => {
|
|
1506
1573
|
const room = await resolveAddressRoom(env, addressId);
|
|
1507
1574
|
if (!room) return { unresolved: true, input: addressId };
|
|
1508
1575
|
if (!room.id || room.lookupFailed || room.status !== "0") return { room };
|
|
@@ -1518,7 +1585,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1518
1585
|
usageFromCache: usageData.fromCache
|
|
1519
1586
|
};
|
|
1520
1587
|
}
|
|
1521
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1588
|
+
const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
|
|
1522
1589
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1523
1590
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1524
1591
|
env
|
|
@@ -1526,7 +1593,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1526
1593
|
return { room, ...result?.data ?? {} };
|
|
1527
1594
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1528
1595
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1529
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1596
|
+
const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
|
|
1530
1597
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1531
1598
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1532
1599
|
env
|
|
@@ -1588,8 +1655,8 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1588
1655
|
}));
|
|
1589
1656
|
const roomConflictData = roomConflict;
|
|
1590
1657
|
const resolvedAddress = roomConflictData?.room ?? null;
|
|
1591
|
-
|
|
1592
|
-
|
|
1658
|
+
let resolvedAddressId = resolvedAddress?.id || addressId;
|
|
1659
|
+
let addressDisplay = resolvedAddress?.name || addressId;
|
|
1593
1660
|
if (roomConflictData?.unresolved === true) {
|
|
1594
1661
|
decisions.roomNotFound = { input: addressId, candidates: roomOptions.length };
|
|
1595
1662
|
if (roomOptions.length > 0) decisions.roomOptions = roomOptions;
|
|
@@ -1626,7 +1693,15 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1626
1693
|
warnings: [`\u4F1A\u8BAE\u5BA4\u300C${resolvedAddress.name}\u300D\uFF08${resolvedAddress.id}\uFF09\u5DF2\u5C01\u5B58\uFF0C\u4E0D\u53EF\u9884\u7EA6\uFF0C\u5DF2\u62E6\u4E0B\u672A\u63D0\u4EA4\u3002`]
|
|
1627
1694
|
});
|
|
1628
1695
|
}
|
|
1629
|
-
if (addressInput && roomConfirmed && roomConflictData?.hasConflict === true) {
|
|
1696
|
+
if (skipPreflight && addressInput && roomConfirmed && roomConflictData?.hasConflict === true && roomOptions.length > 0) {
|
|
1697
|
+
const fallback = roomOptions[0].value ?? {};
|
|
1698
|
+
const from = { id: resolvedAddressId, name: addressDisplay };
|
|
1699
|
+
resolvedAddressId = String(fallback.id ?? "");
|
|
1700
|
+
addressDisplay = String(fallback.name ?? addressDisplay);
|
|
1701
|
+
addressInput = resolvedAddressId;
|
|
1702
|
+
decisions.roomAutoSwitched = { reason: "\u6307\u5B9A\u623F\u88AB\u5360\uFF0C\u81EA\u52A8\u6539\u7528\u9996\u9009\u7A7A\u95F2\u623F", from, to: { id: resolvedAddressId, name: addressDisplay } };
|
|
1703
|
+
}
|
|
1704
|
+
if (addressInput && roomConfirmed && roomConflictData?.hasConflict === true && !(skipPreflight && roomOptions.length > 0)) {
|
|
1630
1705
|
const busy = Array.isArray(roomConflictData.conflicts) ? roomConflictData.conflicts : [];
|
|
1631
1706
|
decisions.roomConflict = {
|
|
1632
1707
|
address: resolvedAddressId,
|
|
@@ -1895,7 +1970,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1895
1970
|
other_remark: args.other_remark,
|
|
1896
1971
|
mt_type: args.mt_type,
|
|
1897
1972
|
...args.extraFields && typeof args.extraFields === "object" && !Array.isArray(args.extraFields) ? args.extraFields : {}
|
|
1898
|
-
});
|
|
1973
|
+
}, { crmAutoPick: skipPreflight });
|
|
1899
1974
|
const preferredFields = await readFlowFieldMap(env, workflowId);
|
|
1900
1975
|
const { main, mapped, unmapped, resolved: resolvedFields } = mapFields(form.fields, shaped.values, preferredFields);
|
|
1901
1976
|
for (const field of form.fields) {
|
|
@@ -1929,7 +2004,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1929
2004
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
1930
2005
|
} else {
|
|
1931
2006
|
try {
|
|
1932
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2007
|
+
const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
|
|
1933
2008
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
1934
2009
|
const renderExtra = {};
|
|
1935
2010
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2187,6 +2262,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2187
2262
|
"meeting.eb.meeting.create.flow.prepare",
|
|
2188
2263
|
{
|
|
2189
2264
|
status: "AWAITING_CONFIRMATION",
|
|
2265
|
+
...entryResolved ? { entryResolved } : {},
|
|
2190
2266
|
preview: {
|
|
2191
2267
|
workflowId,
|
|
2192
2268
|
workflowCandidates: candidates,
|
|
@@ -2250,7 +2326,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2250
2326
|
});
|
|
2251
2327
|
};
|
|
2252
2328
|
const readBack = async () => {
|
|
2253
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2329
|
+
const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
|
|
2254
2330
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2255
2331
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2256
2332
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2277,7 +2353,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2277
2353
|
const fields = payload?.invitationFields ?? {};
|
|
2278
2354
|
const started = Date.now();
|
|
2279
2355
|
try {
|
|
2280
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2356
|
+
const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
|
|
2281
2357
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2282
2358
|
const rendered = await render.handler(
|
|
2283
2359
|
{
|
|
@@ -2353,9 +2429,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
2353
2429
|
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");
|
|
2354
2430
|
}
|
|
2355
2431
|
const payload = lease?.payload ?? {};
|
|
2356
|
-
const { createWorkflowHost } = await import("./host-
|
|
2432
|
+
const { createWorkflowHost } = await import("./host-VTPAWDZV.js");
|
|
2357
2433
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2358
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2434
|
+
const { getWorkflowOperation } = await import("./registry-3FYSWV3U.js");
|
|
2359
2435
|
const wfEnv = {
|
|
2360
2436
|
...workflowEnv(env),
|
|
2361
2437
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2405,7 +2481,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2405
2481
|
const groupPayload2 = payload?.groupChat;
|
|
2406
2482
|
if (groupPayload2) {
|
|
2407
2483
|
try {
|
|
2408
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2484
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-5DKPWIHL.js");
|
|
2409
2485
|
groupChat2 = {
|
|
2410
2486
|
...await ensureMeetingGroupChat(env, {
|
|
2411
2487
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2421,7 +2497,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2421
2497
|
}
|
|
2422
2498
|
if (groupChat2 && groupChat2.ok) {
|
|
2423
2499
|
try {
|
|
2424
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2500
|
+
const { savePendingForm } = await import("./group-chat-5DKPWIHL.js");
|
|
2425
2501
|
await savePendingForm(env, {
|
|
2426
2502
|
workflowId: String(payload.workflowId ?? ""),
|
|
2427
2503
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2488,7 +2564,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2488
2564
|
let meetingId = "";
|
|
2489
2565
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2490
2566
|
if (waitSeconds > 0) {
|
|
2491
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2567
|
+
const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
|
|
2492
2568
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2493
2569
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2494
2570
|
const pollStart = Date.now();
|
|
@@ -2538,7 +2614,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2538
2614
|
if (groupPayload) {
|
|
2539
2615
|
const groupStart = Date.now();
|
|
2540
2616
|
try {
|
|
2541
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2617
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-5DKPWIHL.js");
|
|
2542
2618
|
const group = await ensureMeetingGroupChat(env, {
|
|
2543
2619
|
meetingName: String(payload.mtName ?? ""),
|
|
2544
2620
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2570,7 +2646,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2570
2646
|
if (meetingId) {
|
|
2571
2647
|
const invitationStart = Date.now();
|
|
2572
2648
|
try {
|
|
2573
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2649
|
+
const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
|
|
2574
2650
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2575
2651
|
const rendered = await render.handler(
|
|
2576
2652
|
{
|
|
@@ -2744,7 +2820,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2744
2820
|
`\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`
|
|
2745
2821
|
);
|
|
2746
2822
|
}
|
|
2747
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2823
|
+
const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
|
|
2748
2824
|
const prepareStartedAt = Date.now();
|
|
2749
2825
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2750
2826
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2843,7 +2919,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2843
2919
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2844
2920
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2845
2921
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2846
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2922
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-6AN63MJQ.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2847
2923
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2848
2924
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2849
2925
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
createE10RequestRuntime,
|
|
11
11
|
isE10SessionExpiredResponse,
|
|
12
12
|
requireE10Session
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NRYDJN4J.js";
|
|
14
14
|
import {
|
|
15
15
|
getActiveProfile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WIWDVETN.js";
|
|
17
17
|
|
|
18
18
|
// src/shortcuts/ebuilder-form/host.ts
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-WMRNO6IU.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingStateDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E5YD5JWR.js";
|
|
9
9
|
import {
|
|
10
10
|
SCHEMA_ID,
|
|
11
11
|
meetingSuccess,
|
|
12
12
|
meetingValidationError,
|
|
13
13
|
schemaOf
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DTCQFTHW.js";
|
|
15
15
|
|
|
16
16
|
// src/shortcuts/meeting/operations/attachment-content.ts
|
|
17
17
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
createE10RequestRuntime,
|
|
12
12
|
isE10SessionExpiredResponse,
|
|
13
13
|
requireE10Session
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NRYDJN4J.js";
|
|
15
15
|
import {
|
|
16
16
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
17
17
|
getActiveProfile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WIWDVETN.js";
|
|
19
19
|
|
|
20
20
|
// src/shortcuts/im/host.ts
|
|
21
21
|
import { createHash } from "node:crypto";
|