weaver-work-cli 0.1.59 → 0.1.60
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/{attachment-content-TP6WDNC6.js → attachment-content-I6WHKGR2.js} +3 -3
- package/dist/chunks/{chunk-MQBMMJUV.js → chunk-7U5YHCW7.js} +2 -2
- package/dist/chunks/{chunk-FM7B5BIR.js → chunk-BDBTZVYA.js} +44 -36
- package/dist/chunks/{chunk-I3BFBBP2.js → chunk-CPG6NLN4.js} +1 -1
- package/dist/chunks/{chunk-U2DWV6JC.js → chunk-HHH4K3YY.js} +1 -1
- package/dist/chunks/{chunk-2FHP4PYS.js → chunk-HMIIVM2L.js} +49 -25
- package/dist/chunks/chunk-JFKMPRZB.js +64 -0
- package/dist/chunks/{chunk-XR5BGFNT.js → chunk-P7RXQDCA.js} +10 -4
- package/dist/chunks/{chunk-QNPIY5R6.js → chunk-VLL6JOB4.js} +4 -4
- package/dist/chunks/{chunk-AQOPPNTR.js → chunk-VQWPQTEY.js} +2 -2
- package/dist/chunks/{chunk-CI2RF3AJ.js → chunk-XF7S6FQW.js} +1 -1
- package/dist/chunks/{chunk-ZHPCNM2S.js → chunk-YHSOCGKO.js} +6 -6
- package/dist/chunks/{conflict-Y3ESXYIA.js → conflict-QMDLS2EW.js} +2 -2
- package/dist/chunks/{create-flow-JHQSA6JF.js → create-flow-5ODJ7WJO.js} +6 -6
- package/dist/chunks/{data-ZVS3BWPT.js → data-LVDFIRNG.js} +0 -2
- package/dist/chunks/entry-mode-73BJML22.js +15 -0
- package/dist/chunks/{env-LQBLL3MZ.js → env-OHFS76HV.js} +2 -2
- package/dist/chunks/{factory-X7PN6B3B.js → factory-FRTA2LP4.js} +1 -1
- package/dist/chunks/{group-chat-PPFY7SPV.js → group-chat-KBFRPCR2.js} +3 -3
- package/dist/chunks/{meeting-GMRQZFJP.js → meeting-ARHVWK7G.js} +11 -10
- package/dist/chunks/{minute-doc-JXH3MNC7.js → minute-doc-547KSYKR.js} +2 -2
- package/dist/chunks/{registry-WZCCBI5L.js → registry-H5HQ5QNH.js} +11 -10
- package/dist/chunks/{room-recommend-CKU5NF2E.js → room-recommend-3UBROMZE.js} +4 -4
- package/dist/chunks/{schedule-DEFAO2RY.js → schedule-FTUQML6O.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/shortcuts/data/operations/ds.js +0 -2
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +32 -1
- package/dist/shortcuts/meeting/operations/eb/entry-mode.js +62 -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/package.json +1 -1
- package/skills/weaver-e10-meeting/SKILL.md +14 -3
- package/dist/chunks/{ebuilder-form-TWSXS5NA.js → ebuilder-form-7WA6X6ZI.js} +3 -3
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
looksLikeFileId,
|
|
9
9
|
meetingAttachmentContentOperations,
|
|
10
10
|
parseFileIdList
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7U5YHCW7.js";
|
|
12
12
|
import "./chunk-WMRNO6IU.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-CPG6NLN4.js";
|
|
14
|
+
import "./chunk-XF7S6FQW.js";
|
|
15
15
|
import "./chunk-7BDPM5ST.js";
|
|
16
16
|
import "./chunk-UG5G54VL.js";
|
|
17
17
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-WMRNO6IU.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingStateDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CPG6NLN4.js";
|
|
9
9
|
import {
|
|
10
10
|
SCHEMA_ID,
|
|
11
11
|
meetingSuccess,
|
|
12
12
|
meetingValidationError,
|
|
13
13
|
schemaOf
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XF7S6FQW.js";
|
|
15
15
|
|
|
16
16
|
// src/shortcuts/meeting/operations/attachment-content.ts
|
|
17
17
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -3,41 +3,44 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
listMeetingAttachments,
|
|
5
5
|
meetingAttachmentContentOperations
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7U5YHCW7.js";
|
|
7
7
|
import {
|
|
8
8
|
PENDING_MARK,
|
|
9
9
|
renderDocx
|
|
10
10
|
} from "./chunk-WMRNO6IU.js";
|
|
11
11
|
import {
|
|
12
12
|
meetingEbGroupChatOperations
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YHSOCGKO.js";
|
|
14
|
+
import {
|
|
15
|
+
meetingEntryOperations
|
|
16
|
+
} from "./chunk-JFKMPRZB.js";
|
|
14
17
|
import {
|
|
15
18
|
attachMeetingUrls,
|
|
16
19
|
meetingEbCreateFlowOperations,
|
|
17
20
|
meetingUrlMap
|
|
18
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HMIIVM2L.js";
|
|
19
22
|
import {
|
|
20
23
|
ebMeetingWritePreflight,
|
|
21
24
|
meetingEbConflictOperations
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VLL6JOB4.js";
|
|
23
26
|
import {
|
|
24
27
|
meetingEbScheduleOperations
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VQWPQTEY.js";
|
|
26
29
|
import {
|
|
27
30
|
ebRoomRecommendOperation,
|
|
28
31
|
recommendRooms,
|
|
29
32
|
rememberFrequentRoom
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-P7RXQDCA.js";
|
|
31
34
|
import {
|
|
32
35
|
cacheScopeSuffix,
|
|
33
36
|
readCache,
|
|
34
37
|
writeCache
|
|
35
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-HHH4K3YY.js";
|
|
36
39
|
import {
|
|
37
40
|
meetingEnvOperations,
|
|
38
41
|
meetingStateDir,
|
|
39
42
|
resolveMeetingEnvMode
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-CPG6NLN4.js";
|
|
41
44
|
import {
|
|
42
45
|
EB_BASE,
|
|
43
46
|
EB_ENDPOINTS,
|
|
@@ -69,7 +72,7 @@ import {
|
|
|
69
72
|
toIdString,
|
|
70
73
|
verifyLease,
|
|
71
74
|
writeBody
|
|
72
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-XF7S6FQW.js";
|
|
73
76
|
import {
|
|
74
77
|
CONTINUATION_TTL_SECONDS
|
|
75
78
|
} from "./chunk-7BDPM5ST.js";
|
|
@@ -2236,7 +2239,7 @@ var meetingAttachmentAttach = {
|
|
|
2236
2239
|
if (mode === "append" && existingIds.length === 0) {
|
|
2237
2240
|
existingIds.push(...beforeIds);
|
|
2238
2241
|
}
|
|
2239
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2242
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
2240
2243
|
const list = getMeetingOperation2("meeting.eb.meeting.list");
|
|
2241
2244
|
let fileId = incomingFileId;
|
|
2242
2245
|
let name = String(args.name ?? "").trim();
|
|
@@ -2324,7 +2327,7 @@ function textOf(value) {
|
|
|
2324
2327
|
return value === void 0 || value === null ? "" : String(value);
|
|
2325
2328
|
}
|
|
2326
2329
|
async function readMinute(env, id) {
|
|
2327
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2330
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
2328
2331
|
const detail = getMeetingOperation2("meeting.eb.minute.detail");
|
|
2329
2332
|
const result = await detail.handler({ id }, env);
|
|
2330
2333
|
const row = result?.data?.data;
|
|
@@ -2407,7 +2410,7 @@ var meetingMinuteWriteContent = {
|
|
|
2407
2410
|
} else {
|
|
2408
2411
|
statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
|
|
2409
2412
|
}
|
|
2410
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2413
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
2411
2414
|
const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
|
|
2412
2415
|
const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
|
|
2413
2416
|
const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
|
|
@@ -2423,8 +2426,8 @@ var meetingMinuteWriteContent = {
|
|
|
2423
2426
|
let minuteDoc = null;
|
|
2424
2427
|
if (args.with_doc !== false) {
|
|
2425
2428
|
try {
|
|
2426
|
-
const { buildMinuteDocx } = await import("./minute-doc-
|
|
2427
|
-
const { meetingStateDir: meetingStateDir2 } = await import("./env-
|
|
2429
|
+
const { buildMinuteDocx } = await import("./minute-doc-547KSYKR.js");
|
|
2430
|
+
const { meetingStateDir: meetingStateDir2 } = await import("./env-OHFS76HV.js");
|
|
2428
2431
|
const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
|
|
2429
2432
|
const { join: join3 } = await import("node:path");
|
|
2430
2433
|
const subject = textOf(after.mt_minutes_subject).trim() || `\u4F1A\u8BAE\u7EAA\u8981-${mtId}`;
|
|
@@ -2461,7 +2464,7 @@ var meetingMinuteWriteContent = {
|
|
|
2461
2464
|
}
|
|
2462
2465
|
if (args.with_doc !== false) {
|
|
2463
2466
|
try {
|
|
2464
|
-
const { ensureMinuteDoc } = await import("./minute-doc-
|
|
2467
|
+
const { ensureMinuteDoc } = await import("./minute-doc-547KSYKR.js");
|
|
2465
2468
|
const better = await ensureMinuteDoc(env, {
|
|
2466
2469
|
id,
|
|
2467
2470
|
mtId,
|
|
@@ -2832,7 +2835,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2832
2835
|
const mtId = textOf2(args.mt_id).trim();
|
|
2833
2836
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
2834
2837
|
const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
|
|
2835
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2838
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
2836
2839
|
const ctx = env.ctx;
|
|
2837
2840
|
let stepStart = Date.now();
|
|
2838
2841
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
@@ -2926,7 +2929,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2926
2929
|
try {
|
|
2927
2930
|
const { readFile: readFile4 } = await import("node:fs/promises");
|
|
2928
2931
|
const buffer = await readFile4(file);
|
|
2929
|
-
const { extractText } = await import("./attachment-content-
|
|
2932
|
+
const { extractText } = await import("./attachment-content-I6WHKGR2.js");
|
|
2930
2933
|
const extracted = extractText(buffer, file, "");
|
|
2931
2934
|
if (extracted.text.trim()) {
|
|
2932
2935
|
extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
|
|
@@ -3101,8 +3104,8 @@ ${groupTranscript}` : ""
|
|
|
3101
3104
|
if (args.with_doc !== false) {
|
|
3102
3105
|
const docStarted = Date.now();
|
|
3103
3106
|
try {
|
|
3104
|
-
const { buildMinuteDocx } = await import("./minute-doc-
|
|
3105
|
-
const { meetingStateDir: meetingStateDir2 } = await import("./env-
|
|
3107
|
+
const { buildMinuteDocx } = await import("./minute-doc-547KSYKR.js");
|
|
3108
|
+
const { meetingStateDir: meetingStateDir2 } = await import("./env-OHFS76HV.js");
|
|
3106
3109
|
const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
|
|
3107
3110
|
const { join: join3 } = await import("node:path");
|
|
3108
3111
|
const body = textOf2(row.parse_content) || textOf2(row.minutes_content) || transcript;
|
|
@@ -3289,7 +3292,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3289
3292
|
const warnings = [];
|
|
3290
3293
|
const mtId = textOf3(args.mt_id).trim();
|
|
3291
3294
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
3292
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3295
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
3293
3296
|
const ctx = env.ctx;
|
|
3294
3297
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
3295
3298
|
{ mt_id: mtId, pageNo: 1, pageSize: 1 },
|
|
@@ -3591,7 +3594,7 @@ var meetingPipelineRun = {
|
|
|
3591
3594
|
const needsConfirm = level === "tasks" || level === "notify";
|
|
3592
3595
|
const confirmed = args.confirm === true;
|
|
3593
3596
|
const executedLevel = needsConfirm && !confirmed ? "document" : level;
|
|
3594
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3597
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
3595
3598
|
const ctx = env.ctx;
|
|
3596
3599
|
let stepStart = Date.now();
|
|
3597
3600
|
const reuseMinuteId = textOf4(args.minuteId).trim();
|
|
@@ -3963,7 +3966,7 @@ function formatTimeRange(start, end) {
|
|
|
3963
3966
|
}
|
|
3964
3967
|
async function loadAgendaFromTopics(env, mtId) {
|
|
3965
3968
|
try {
|
|
3966
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3969
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
3967
3970
|
const operation = getMeetingOperation2("meeting.eb.topic.list");
|
|
3968
3971
|
const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
|
|
3969
3972
|
const rows = result.data?.rows ?? [];
|
|
@@ -4114,7 +4117,7 @@ async function supplementRowFromDetail(row, mtId, env) {
|
|
|
4114
4117
|
const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
|
|
4115
4118
|
if (missing.length === 0) return { row, filled: [] };
|
|
4116
4119
|
try {
|
|
4117
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4120
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
4118
4121
|
const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
4119
4122
|
const result = await detailOperation.handler({ id: mtId }, env);
|
|
4120
4123
|
const flat = result?.data?.data ?? result?.data ?? {};
|
|
@@ -4288,7 +4291,7 @@ var meetingInvitationRender = {
|
|
|
4288
4291
|
};
|
|
4289
4292
|
dataSource = "payload";
|
|
4290
4293
|
} else {
|
|
4291
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4294
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
4292
4295
|
const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
|
|
4293
4296
|
try {
|
|
4294
4297
|
const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
|
|
@@ -4632,7 +4635,7 @@ var meetingInvitationPublish = {
|
|
|
4632
4635
|
"\u4F1A\u771F\u5B9E\u521B\u5EFA\u6587\u6863\uFF0C\u5FC5\u987B\u663E\u5F0F\u4F20 confirm: true\uFF08\u53EF\u5148\u4E0D\u5E26 confirm \u8C03 meeting.invitation.render \u9884\u89C8\u6B63\u6587\uFF09"
|
|
4633
4636
|
);
|
|
4634
4637
|
}
|
|
4635
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4638
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
4636
4639
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
4637
4640
|
const rendered = await render.handler(
|
|
4638
4641
|
{
|
|
@@ -5347,7 +5350,7 @@ var meetingSummaryGet = {
|
|
|
5347
5350
|
const mtId = textOf5(args.mt_id).trim();
|
|
5348
5351
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
5349
5352
|
const ctx = env.ctx;
|
|
5350
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5353
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
5351
5354
|
const warnings = [];
|
|
5352
5355
|
const timings = {};
|
|
5353
5356
|
const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
|
|
@@ -5668,7 +5671,7 @@ var MT_STATUS_OVER = "8";
|
|
|
5668
5671
|
var CANCELLED_MARK_DELAY_MS = 800;
|
|
5669
5672
|
async function isCancelledMeeting(env, mtId) {
|
|
5670
5673
|
try {
|
|
5671
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5674
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
5672
5675
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
5673
5676
|
// withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
|
|
5674
5677
|
{ mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
|
|
@@ -5713,7 +5716,7 @@ async function resolveDecisionPeople(env, input, ownerId) {
|
|
|
5713
5716
|
}
|
|
5714
5717
|
let nameToId = /* @__PURE__ */ new Map();
|
|
5715
5718
|
if (nameTokens.size > 0) {
|
|
5716
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
5719
|
+
const { resolveMemberIdsByName } = await import("./schedule-FTUQML6O.js");
|
|
5717
5720
|
nameToId = await resolveMemberIdsByName(env, [...nameTokens]).catch(() => /* @__PURE__ */ new Map());
|
|
5718
5721
|
}
|
|
5719
5722
|
const unresolved = [];
|
|
@@ -6757,7 +6760,7 @@ var deleteMany = {
|
|
|
6757
6760
|
if (args.confirm !== true) {
|
|
6758
6761
|
throw meetingValidationError("confirmation_required", "\u6279\u91CF\u5220\u9664\u4E0D\u53EF\u6062\u590D\uFF0C\u5FC5\u987B\u4F20 confirm=true");
|
|
6759
6762
|
}
|
|
6760
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6763
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
6761
6764
|
const listOp = getMeetingOperation2("meeting.eb.decisionTask.list");
|
|
6762
6765
|
const prepareOp = getMeetingOperation2("meeting.eb.decisionTask.delete.prepare");
|
|
6763
6766
|
const applyOp = getMeetingOperation2("meeting.eb.decisionTask.delete.apply");
|
|
@@ -6892,7 +6895,7 @@ var reassign = {
|
|
|
6892
6895
|
},
|
|
6893
6896
|
handler: async (args, env) => {
|
|
6894
6897
|
if (args.confirm === false) throw meetingValidationError("confirmation_required", "confirm=false\uFF0C\u672A\u6267\u884C");
|
|
6895
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6898
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
6896
6899
|
const mtId = String(args.mt_id ?? "").trim();
|
|
6897
6900
|
const target = await resolveEmployeeId(env, String(args.to_executor ?? ""));
|
|
6898
6901
|
const from = String(args.from_executor ?? "").trim();
|
|
@@ -7038,7 +7041,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
|
|
|
7038
7041
|
const mtId = String(context.dataIds?.[0] ?? "").trim();
|
|
7039
7042
|
if (!isCreate || !enabled || !mtId) return association;
|
|
7040
7043
|
try {
|
|
7041
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7044
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
7042
7045
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
7043
7046
|
const result = await render.handler({ mtId }, context.env);
|
|
7044
7047
|
return { ...association ?? {}, invitation: result?.data ?? null };
|
|
@@ -7074,7 +7077,7 @@ var ebOperationsWithLinks = ebBaseOperations.map((operation) => {
|
|
|
7074
7077
|
const raw = String(args.member).trim();
|
|
7075
7078
|
let uid = /^\d+$/.test(raw) ? raw : "";
|
|
7076
7079
|
if (!uid) {
|
|
7077
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
7080
|
+
const { resolveMemberIdsByName } = await import("./schedule-FTUQML6O.js");
|
|
7078
7081
|
const map = await resolveMemberIdsByName(env, [raw]).catch(() => /* @__PURE__ */ new Map());
|
|
7079
7082
|
uid = String(map.get(raw) ?? "");
|
|
7080
7083
|
}
|
|
@@ -7113,7 +7116,7 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
|
|
|
7113
7116
|
if (!String(nextArgs.mt_minutes_subject ?? "").trim() && nextArgs.mt_id) {
|
|
7114
7117
|
let meetingName = "";
|
|
7115
7118
|
try {
|
|
7116
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7119
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
7117
7120
|
const detailOp = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
7118
7121
|
const detail = await detailOp.handler({ id: String(nextArgs.mt_id) }, env);
|
|
7119
7122
|
const row = detail?.data?.data ?? {};
|
|
@@ -7133,8 +7136,8 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
|
|
|
7133
7136
|
handler: async (args, env) => {
|
|
7134
7137
|
const result = await operation.handler(args, env);
|
|
7135
7138
|
try {
|
|
7136
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7137
|
-
const { ensureMinuteDoc } = await import("./minute-doc-
|
|
7139
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
7140
|
+
const { ensureMinuteDoc } = await import("./minute-doc-547KSYKR.js");
|
|
7138
7141
|
const minuteId = String((result?.data?.dataIds ?? [])[0] ?? "").trim();
|
|
7139
7142
|
if (minuteId) {
|
|
7140
7143
|
const detail = await getMeetingOperation2("meeting.eb.minute.detail").handler({ id: minuteId }, env);
|
|
@@ -7164,6 +7167,7 @@ var meetingEbOperations = [
|
|
|
7164
7167
|
...minuteCreateAliases,
|
|
7165
7168
|
...meetingEbDecisionTaskBatchOperations,
|
|
7166
7169
|
...meetingEbDecisionTaskReassignOperations,
|
|
7170
|
+
...meetingEntryOperations,
|
|
7167
7171
|
...meetingEbScheduleOperations,
|
|
7168
7172
|
...meetingEbCrmOperations,
|
|
7169
7173
|
...meetingEbCreateFlowOperations,
|
|
@@ -7256,7 +7260,7 @@ var composeOutcome = {
|
|
|
7256
7260
|
if (args.confirm === false) {
|
|
7257
7261
|
throw meetingValidationError("confirmation_required", "\u4F20\u4E86 confirm=false\uFF0C\u5DF2\u963B\u6B62\u5199\u5165");
|
|
7258
7262
|
}
|
|
7259
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7263
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-H5HQ5QNH.js");
|
|
7260
7264
|
let mtId = String(args.mt_id ?? "").trim();
|
|
7261
7265
|
if (!mtId) {
|
|
7262
7266
|
const listOp2 = getMeetingOperation2("meeting.eb.meeting.list");
|
|
@@ -7432,6 +7436,10 @@ function buildRegistry() {
|
|
|
7432
7436
|
handler: async (args, env) => {
|
|
7433
7437
|
const startedAt = Date.now();
|
|
7434
7438
|
const result = await original(args, env);
|
|
7439
|
+
const entryResolved = env?.__entryResolved;
|
|
7440
|
+
if (entryResolved && result && typeof result === "object") {
|
|
7441
|
+
result.data = { ...result.data ?? {}, entryResolved };
|
|
7442
|
+
}
|
|
7435
7443
|
if (args?.debugTimings === true && result && typeof result === "object") {
|
|
7436
7444
|
const marks = { ...env?.__meetingTimings ?? {} };
|
|
7437
7445
|
result.data = { ...result.data ?? {}, timings: { ...marks, totalMs: Date.now() - startedAt } };
|
|
@@ -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-CPG6NLN4.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -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-VLL6JOB4.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-P7RXQDCA.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HHH4K3YY.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-XF7S6FQW.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-H5HQ5QNH.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 ?? [];
|
|
@@ -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-3UBROMZE.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-H5HQ5QNH.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) {
|
|
|
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-H5HQ5QNH.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);
|
|
@@ -780,7 +780,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
|
|
|
780
780
|
const missing = [];
|
|
781
781
|
if (entries.length > 0) {
|
|
782
782
|
try {
|
|
783
|
-
const { getMeetingOperation } = await import("./registry-
|
|
783
|
+
const { getMeetingOperation } = await import("./registry-H5HQ5QNH.js");
|
|
784
784
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
785
785
|
for (const entry of entries) {
|
|
786
786
|
if (entry.contacts.length > 0) continue;
|
|
@@ -1039,7 +1039,7 @@ function shouldAutoPickFlow(args) {
|
|
|
1039
1039
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
1040
1040
|
const started = Date.now();
|
|
1041
1041
|
try {
|
|
1042
|
-
const { buildImEnv } = await import("./group-chat-
|
|
1042
|
+
const { buildImEnv } = await import("./group-chat-KBFRPCR2.js");
|
|
1043
1043
|
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
1044
1044
|
const imEnv = await buildImEnv(env);
|
|
1045
1045
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
@@ -1240,6 +1240,29 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1240
1240
|
{ required: ["mt_name"] }
|
|
1241
1241
|
),
|
|
1242
1242
|
handler: async (args, env) => {
|
|
1243
|
+
const skipPreflight = args.skipPreflight === true;
|
|
1244
|
+
if (args.entryMode === "direct_form") {
|
|
1245
|
+
args = { ...args, skipPreflight: true };
|
|
1246
|
+
}
|
|
1247
|
+
let entryResolved = String(args.entryMode ?? "").trim();
|
|
1248
|
+
if (!entryResolved) {
|
|
1249
|
+
const { readEntryChoice } = await import("./entry-mode-73BJML22.js");
|
|
1250
|
+
const mark2 = await readEntryChoice(env).catch(() => null);
|
|
1251
|
+
if (mark2?.choice) entryResolved = mark2.choice;
|
|
1252
|
+
}
|
|
1253
|
+
if (entryResolved) args = { ...args, entryMode: entryResolved };
|
|
1254
|
+
env.__entryResolved = entryResolved || void 0;
|
|
1255
|
+
if (entryResolved === "direct_form") args = { ...args, skipPreflight: true };
|
|
1256
|
+
if (args.skipPreflight === true) {
|
|
1257
|
+
const hasAddress = String(args.address ?? args.customize_address ?? "").trim() !== "";
|
|
1258
|
+
args = {
|
|
1259
|
+
...args,
|
|
1260
|
+
timeConfirmed: true,
|
|
1261
|
+
autoRoom: true,
|
|
1262
|
+
enrich: true,
|
|
1263
|
+
...hasAddress ? { roomConfirmed: true } : {}
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1243
1266
|
const marks = env.__meetingTimings ??= {};
|
|
1244
1267
|
const mark = (key, from) => {
|
|
1245
1268
|
marks[key] = (marks[key] ?? 0) + (Date.now() - from);
|
|
@@ -1303,7 +1326,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1303
1326
|
}
|
|
1304
1327
|
}
|
|
1305
1328
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1306
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1329
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-FTUQML6O.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1307
1330
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1308
1331
|
if (memberIds.length > 0) {
|
|
1309
1332
|
const callerToken2 = String(args.caller ?? "").trim();
|
|
@@ -1345,10 +1368,10 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1345
1368
|
const startMs = Date.parse(beginText.slice(0, 16).replace(" ", "T"));
|
|
1346
1369
|
if (Number.isFinite(startMs)) endText = formatMinute(new Date(startMs + duration * 6e4));
|
|
1347
1370
|
}
|
|
1348
|
-
if (!beginHasTime || !timeConfirmed) {
|
|
1371
|
+
if (!skipPreflight && (!beginHasTime || !timeConfirmed)) {
|
|
1349
1372
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1350
1373
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1351
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1374
|
+
const { getMeetingOperation } = await import("./registry-H5HQ5QNH.js");
|
|
1352
1375
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1353
1376
|
{
|
|
1354
1377
|
dateFrom: day2,
|
|
@@ -1518,7 +1541,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1518
1541
|
usageFromCache: usageData.fromCache
|
|
1519
1542
|
};
|
|
1520
1543
|
}
|
|
1521
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1544
|
+
const { getMeetingOperation } = await import("./registry-H5HQ5QNH.js");
|
|
1522
1545
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1523
1546
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1524
1547
|
env
|
|
@@ -1526,7 +1549,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1526
1549
|
return { room, ...result?.data ?? {} };
|
|
1527
1550
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1528
1551
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1529
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1552
|
+
const { getMeetingOperation } = await import("./registry-H5HQ5QNH.js");
|
|
1530
1553
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1531
1554
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1532
1555
|
env
|
|
@@ -1929,7 +1952,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1929
1952
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
1930
1953
|
} else {
|
|
1931
1954
|
try {
|
|
1932
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1955
|
+
const { getMeetingOperation } = await import("./registry-H5HQ5QNH.js");
|
|
1933
1956
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
1934
1957
|
const renderExtra = {};
|
|
1935
1958
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2187,6 +2210,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2187
2210
|
"meeting.eb.meeting.create.flow.prepare",
|
|
2188
2211
|
{
|
|
2189
2212
|
status: "AWAITING_CONFIRMATION",
|
|
2213
|
+
...entryResolved ? { entryResolved } : {},
|
|
2190
2214
|
preview: {
|
|
2191
2215
|
workflowId,
|
|
2192
2216
|
workflowCandidates: candidates,
|
|
@@ -2250,7 +2274,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2250
2274
|
});
|
|
2251
2275
|
};
|
|
2252
2276
|
const readBack = async () => {
|
|
2253
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2277
|
+
const { getMeetingOperation } = await import("./registry-H5HQ5QNH.js");
|
|
2254
2278
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2255
2279
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2256
2280
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2277,7 +2301,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2277
2301
|
const fields = payload?.invitationFields ?? {};
|
|
2278
2302
|
const started = Date.now();
|
|
2279
2303
|
try {
|
|
2280
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2304
|
+
const { getMeetingOperation } = await import("./registry-H5HQ5QNH.js");
|
|
2281
2305
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2282
2306
|
const rendered = await render.handler(
|
|
2283
2307
|
{
|
|
@@ -2405,7 +2429,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2405
2429
|
const groupPayload2 = payload?.groupChat;
|
|
2406
2430
|
if (groupPayload2) {
|
|
2407
2431
|
try {
|
|
2408
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2432
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-KBFRPCR2.js");
|
|
2409
2433
|
groupChat2 = {
|
|
2410
2434
|
...await ensureMeetingGroupChat(env, {
|
|
2411
2435
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2421,7 +2445,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2421
2445
|
}
|
|
2422
2446
|
if (groupChat2 && groupChat2.ok) {
|
|
2423
2447
|
try {
|
|
2424
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2448
|
+
const { savePendingForm } = await import("./group-chat-KBFRPCR2.js");
|
|
2425
2449
|
await savePendingForm(env, {
|
|
2426
2450
|
workflowId: String(payload.workflowId ?? ""),
|
|
2427
2451
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2488,7 +2512,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2488
2512
|
let meetingId = "";
|
|
2489
2513
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2490
2514
|
if (waitSeconds > 0) {
|
|
2491
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2515
|
+
const { getMeetingOperation } = await import("./registry-H5HQ5QNH.js");
|
|
2492
2516
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2493
2517
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2494
2518
|
const pollStart = Date.now();
|
|
@@ -2538,7 +2562,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2538
2562
|
if (groupPayload) {
|
|
2539
2563
|
const groupStart = Date.now();
|
|
2540
2564
|
try {
|
|
2541
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2565
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-KBFRPCR2.js");
|
|
2542
2566
|
const group = await ensureMeetingGroupChat(env, {
|
|
2543
2567
|
meetingName: String(payload.mtName ?? ""),
|
|
2544
2568
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2570,7 +2594,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2570
2594
|
if (meetingId) {
|
|
2571
2595
|
const invitationStart = Date.now();
|
|
2572
2596
|
try {
|
|
2573
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2597
|
+
const { getMeetingOperation } = await import("./registry-H5HQ5QNH.js");
|
|
2574
2598
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2575
2599
|
const rendered = await render.handler(
|
|
2576
2600
|
{
|
|
@@ -2744,7 +2768,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2744
2768
|
`\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
2769
|
);
|
|
2746
2770
|
}
|
|
2747
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2771
|
+
const { getMeetingOperation } = await import("./registry-H5HQ5QNH.js");
|
|
2748
2772
|
const prepareStartedAt = Date.now();
|
|
2749
2773
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2750
2774
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2843,7 +2867,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2843
2867
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2844
2868
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2845
2869
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2846
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2870
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-FTUQML6O.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2847
2871
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2848
2872
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2849
2873
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|