weaver-work-cli 0.1.45 → 0.1.47
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-CE3GMWTS.js → attachment-content-MCXQBD6N.js} +3 -3
- package/dist/chunks/{chunk-VIMCY4DI.js → chunk-4RWS2YYL.js} +2 -2
- package/dist/chunks/{chunk-4EXOIQDI.js → chunk-6AXKWFKG.js} +4 -14
- package/dist/chunks/{chunk-JWWTI63L.js → chunk-6V5ZPKHV.js} +2 -8
- package/dist/chunks/{chunk-3ZMAQQ3W.js → chunk-76H3IKH6.js} +39 -26
- package/dist/chunks/{chunk-LGKWL4OH.js → chunk-AD46OMQK.js} +86 -25
- package/dist/chunks/{chunk-3WBIQLMB.js → chunk-GSZTA43P.js} +2 -2
- package/dist/chunks/{chunk-OAE3AZBQ.js → chunk-IP4CWQCF.js} +6 -6
- package/dist/chunks/{chunk-77YP6I52.js → chunk-IRMIEDXN.js} +1 -1
- package/dist/chunks/{chunk-LRCPNDZA.js → chunk-J2VEB5K3.js} +11 -9
- package/dist/chunks/{chunk-T4MWQAQB.js → chunk-JFAWZX53.js} +128 -9
- package/dist/chunks/{chunk-GR76ZDDX.js → chunk-LIEQJIGM.js} +3 -0
- package/dist/chunks/{chunk-DGMYACGJ.js → chunk-OXHHJWNC.js} +1 -1
- package/dist/chunks/{chunk-LXFVWZLM.js → chunk-PSOMGA3U.js} +3 -3
- package/dist/chunks/{conflict-IYJETSGT.js → conflict-H7EHQXYY.js} +2 -2
- package/dist/chunks/{create-flow-7JLC7UID.js → create-flow-VRVJEOBX.js} +6 -6
- package/dist/chunks/{ehr-MYRDCHZ4.js → ehr-SH2LM3NK.js} +528 -40
- package/dist/chunks/{env-3MBHAWBL.js → env-66FPSJDV.js} +2 -2
- package/dist/chunks/{factory-TZEVU4DU.js → factory-UH2TZBVA.js} +1 -1
- package/dist/chunks/{group-chat-KL3HFKRM.js → group-chat-CAKMMV7K.js} +3 -3
- package/dist/chunks/{invoice-OQP3TMKQ.js → invoice-UEAHSYAE.js} +279 -1
- package/dist/chunks/{lazy-dispatch-UH6HGK2I.js → lazy-dispatch-25XGTXLM.js} +2 -2
- package/dist/chunks/{meeting-C67EHQ4Z.js → meeting-VTBFW4HI.js} +10 -10
- package/dist/chunks/{recruit-stage-AHY5QAMF.js → recruit-stage-CAKZTUA7.js} +917 -85
- package/dist/chunks/{registry-XPWPGHYE.js → registry-JVQBLFQ5.js} +10 -10
- package/dist/chunks/{room-recommend-CNWE5WQK.js → room-recommend-5U55FMXZ.js} +4 -4
- package/dist/chunks/{schedule-YYNYBQIE.js → schedule-IDETODCA.js} +4 -4
- package/dist/cmd/action.js +14 -10
- package/dist/index.js +7 -7
- package/dist/shortcuts/ehr/host.js +2 -2
- package/dist/shortcuts/ehr/index.js +14 -3
- package/dist/shortcuts/ehr/manifest.js +5 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +40 -10
- package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +258 -0
- package/dist/shortcuts/ehr/operations/recruit-position.js +10 -8
- package/dist/shortcuts/ehr/operations/recruit-stats.js +14 -1
- package/dist/shortcuts/ehr/operations/recruit-tag.js +173 -0
- package/dist/shortcuts/ehr/operations/recruit-write.js +137 -18
- package/dist/shortcuts/ehr/operations/recruit.js +180 -8
- package/dist/shortcuts/ehr/operations/registry.js +4 -0
- package/dist/shortcuts/ehr/operations.js +24 -0
- package/dist/shortcuts/ehr/recruit-stage/batch-store.js +78 -0
- package/dist/shortcuts/ehr/recruit-stage/context.js +231 -0
- package/dist/shortcuts/ehr/recruit-stage/continuation.js +74 -0
- package/dist/shortcuts/ehr/recruit-stage/errors.js +65 -0
- package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +165 -0
- package/dist/shortcuts/ehr/recruit-stage/host.js +109 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +1049 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +295 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +961 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/list.js +431 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +50 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +1647 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/search.js +158 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/types.js +34 -0
- package/dist/shortcuts/ehr/recruit-stage/runtime.js +31 -0
- package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +318 -0
- package/dist/shortcuts/ehr/recruit-stage/shared.js +805 -0
- package/dist/shortcuts/invoice/host.js +3 -0
- package/dist/shortcuts/invoice/manifest.js +61 -0
- package/dist/shortcuts/invoice/operations/registry.js +2 -0
- package/dist/shortcuts/invoice/operations/reim-subsidy.js +233 -0
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +93 -18
- package/dist/shortcuts/meeting/operations/eb/factory.js +5 -8
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +2 -13
- package/dist/shortcuts/meeting/operations/invitation.js +27 -4
- package/dist/shortcuts/recruit-stage/batch-store.js +78 -0
- package/dist/shortcuts/recruit-stage/fs-scan.js +165 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +277 -20
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +31 -7
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +106 -16
- package/dist/shortcuts/recruit-stage/operations/registry.js +12 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +273 -6
- package/dist/shortcuts/recruit-stage/operations/types.js +9 -0
- package/dist/shortcuts/recruit-stage/shared.js +60 -6
- package/docs/invoice.md +1 -0
- package/package.json +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +2 -2
- package/skills/weaver-e10-jucailin/SKILL.md +12 -3
- package/skills/weaver-e10-jucailin/archive/LEGACY-README.md +18 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-SKILL.md +239 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-openai.yaml +131 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-position-templates.md +221 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-arrange-interview.md +334 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-capability-check.md +127 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-check-install.md +65 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-detail-process.md +63 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-edit-interview-feedback.md +142 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-create.md +114 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-template.md +56 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-candidate.md +101 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-interview.md +148 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-match-candidates.md +77 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-output-links.md +72 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-creator.md +69 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-metadata.md +241 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-import.md +457 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-parse.md +128 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-search-candidate.md +146 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-urge-feedback.md +69 -0
- package/skills/weaver-e10-jucailin/lib/recruit-xiaoe-file.mjs +192 -0
- package/skills/weaver-e10-jucailin/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-jucailin/references/recruit-create.md +19 -93
- package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +64 -0
- package/skills/weaver-e10-jucailin/references/recruit-read.md +63 -1
- package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +95 -0
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +89 -0
- package/skills/weaver-e10-jucailin/references/recruit-tag.md +81 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +53 -9
- package/skills/weaver-e10-meeting/SKILL.md +48 -4
- package/skills/weaver-e10-meeting/references/meeting-eb.md +1 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +8 -5
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +16 -6
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +5 -1
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +20 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +21 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +4 -0
- package/skills/weaver-e10-yepiaotong/SKILL.md +7 -5
- package/skills/weaver-e10-yepiaotong/references/invoice-import.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +9 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-validation-preview.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +68 -6
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +3 -3
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +8 -15
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +6 -5
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +206 -92
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +26 -21
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +35 -0
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
looksLikeFileId,
|
|
9
9
|
meetingAttachmentContentOperations,
|
|
10
10
|
parseFileIdList
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-GSZTA43P.js";
|
|
12
|
+
import "./chunk-IRMIEDXN.js";
|
|
13
|
+
import "./chunk-6V5ZPKHV.js";
|
|
14
14
|
import "./chunk-7BDPM5ST.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -3,13 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readCache,
|
|
5
5
|
writeCache
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OXHHJWNC.js";
|
|
7
7
|
import {
|
|
8
8
|
SCHEMA_DATETIME_MINUTE,
|
|
9
9
|
meetingSuccess,
|
|
10
10
|
meetingValidationError,
|
|
11
11
|
schemaOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6V5ZPKHV.js";
|
|
13
13
|
|
|
14
14
|
// src/shortcuts/meeting/operations/eb/schedule.ts
|
|
15
15
|
var SCHEDULE_TYPE_PATH = "/api/ebuilder/form/formdata/v2/getFormDataList/queryAgendaType";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
cacheScopeSuffix,
|
|
5
5
|
readCache,
|
|
6
6
|
writeCache
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OXHHJWNC.js";
|
|
8
8
|
import {
|
|
9
9
|
EB_BASE,
|
|
10
10
|
SCHEMA_DATETIME_MINUTE,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
meetingSuccess,
|
|
14
14
|
queryBody,
|
|
15
15
|
schemaOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6V5ZPKHV.js";
|
|
17
17
|
|
|
18
18
|
// src/shortcuts/meeting/operations/eb/usage-cache.ts
|
|
19
19
|
var USAGE_TTL_MS = 5 * 60 * 1e3;
|
|
@@ -88,7 +88,7 @@ async function clearCache(env, key) {
|
|
|
88
88
|
try {
|
|
89
89
|
const { rm } = await import("node:fs/promises");
|
|
90
90
|
const { join } = await import("node:path");
|
|
91
|
-
const { meetingStateDir } = await import("./env-
|
|
91
|
+
const { meetingStateDir } = await import("./env-66FPSJDV.js");
|
|
92
92
|
await rm(join(meetingStateDir(env.ctx), "cache", `${key}.json`), { force: true });
|
|
93
93
|
} catch {
|
|
94
94
|
}
|
|
@@ -221,7 +221,7 @@ async function loadFrequentRooms(env, options = {}) {
|
|
|
221
221
|
const counts = /* @__PURE__ */ new Map();
|
|
222
222
|
let requests = 0;
|
|
223
223
|
try {
|
|
224
|
-
const { getMeetingOperation } = await import("./registry-
|
|
224
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
225
225
|
const listOp = getMeetingOperation("meeting.eb.meeting.list");
|
|
226
226
|
let seen = 0;
|
|
227
227
|
let total = 0;
|
|
@@ -312,14 +312,6 @@ async function recommendRooms(env, input) {
|
|
|
312
312
|
if (requirement.roomAttr && room.roomAttr !== requirement.roomAttr) continue;
|
|
313
313
|
if (requirement.mrType && room.mrType !== requirement.mrType) continue;
|
|
314
314
|
if (input.floor !== void 0 && input.floor !== null && room.floor !== input.floor) continue;
|
|
315
|
-
if (requirement.placeKeyword) {
|
|
316
|
-
const floorHint = inferRoomFloor(String(requirement.placeKeyword));
|
|
317
|
-
if (floorHint !== null && /楼|层|F/iu.test(String(requirement.placeKeyword))) {
|
|
318
|
-
if (room.floor !== floorHint) continue;
|
|
319
|
-
} else if (!room.place.includes(requirement.placeKeyword)) {
|
|
320
|
-
continue;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
315
|
if (requirement.nameKeyword && !room.name.includes(requirement.nameKeyword)) continue;
|
|
324
316
|
if (requirement.equipmentsKeyword && !room.equipments.includes(requirement.equipmentsKeyword)) continue;
|
|
325
317
|
const reasons = [];
|
|
@@ -442,7 +434,6 @@ var ebRoomRecommendOperation = {
|
|
|
442
434
|
type: "string",
|
|
443
435
|
description: "\u53C2\u4F1A\u4EBA id \u9017\u53F7\u5206\u9694\uFF08\u53EF\u9009\uFF09\uFF1A\u4E0D\u4F20 memberCount \u65F6\u6309\u5B83\u7684\u4EBA\u6570\u63A8\u7B97"
|
|
444
436
|
},
|
|
445
|
-
placeKeyword: { type: "string", description: "\u5730\u70B9/\u697C\u5C42\u5173\u952E\u8BCD\uFF08\u6A21\u7CCA\u5339\u914D\u4F1A\u8BAE\u5BA4 place\uFF09" },
|
|
446
437
|
nameKeyword: { type: "string", description: "\u4F1A\u8BAE\u5BA4\u540D\u79F0\u5173\u952E\u8BCD" },
|
|
447
438
|
mrType: { type: "string", description: "\u4F1A\u8BAE\u5BA4\u7C7B\u578B id\uFF08mr_type\uFF09" },
|
|
448
439
|
roomAttr: { type: "string", enum: ["0", "1", "2"], description: "\u4F1A\u8BAE\u5BA4\u5C5E\u6027\uFF1A0 \u5B9E\u4F53 / 1 \u865A\u62DF / 2 \u7EC4\u5408" },
|
|
@@ -463,7 +454,6 @@ var ebRoomRecommendOperation = {
|
|
|
463
454
|
endDatetime: String(args.endDatetime),
|
|
464
455
|
...Number.isFinite(memberCount) && memberCount > 0 ? { memberCount } : {},
|
|
465
456
|
requirement: {
|
|
466
|
-
...args.placeKeyword ? { placeKeyword: String(args.placeKeyword) } : {},
|
|
467
457
|
...args.nameKeyword ? { nameKeyword: String(args.nameKeyword) } : {},
|
|
468
458
|
...args.mrType ? { mrType: String(args.mrType) } : {},
|
|
469
459
|
...args.roomAttr ? { roomAttr: String(args.roomAttr) } : {},
|
|
@@ -1717,12 +1717,6 @@ function buildReadInputSchema(endpoint) {
|
|
|
1717
1717
|
if (endpoint.countPk) {
|
|
1718
1718
|
properties.withCount = { type: "boolean", description: "\u662F\u5426\u5148\u67E5\u603B\u6570\uFF08\u9ED8\u8BA4 true\uFF0C\u6761\u4EF6\u4E0E\u5217\u8868\u4E00\u81F4\uFF09" };
|
|
1719
1719
|
}
|
|
1720
|
-
if ((endpoint.mainTableParams ?? []).length > 0) {
|
|
1721
|
-
properties.noFallback = {
|
|
1722
|
-
type: "boolean",
|
|
1723
|
-
description: "\u8DF3\u8FC7\u300C\u6A21\u7CCA\u515C\u5E95\u300D\uFF1A\u670D\u52A1\u7AEF\u7CBE\u786E\u5339\u914D\u4E0D\u5230\u65F6\uFF0C\u4E0D\u518D\u7FFB\u9875\u626B\u5168\u91CF\uFF08\u9ED8\u8BA4 false=\u4F1A\u626B\uFF0C\u4FDD\u8BC1\u90E8\u5206\u8BCD\u4E5F\u80FD\u67E5\u5230\uFF09"
|
|
1724
|
-
};
|
|
1725
|
-
}
|
|
1726
1720
|
}
|
|
1727
1721
|
return {
|
|
1728
1722
|
type: "object",
|
|
@@ -1898,7 +1892,7 @@ function buildReadOperation(endpoint) {
|
|
|
1898
1892
|
};
|
|
1899
1893
|
let rows = filterKeys.length === 0 ? rawRows : rawRows.filter(matchesFilters);
|
|
1900
1894
|
let fallback;
|
|
1901
|
-
if (filterKeys.length > 0 && rows.length === 0
|
|
1895
|
+
if (filterKeys.length > 0 && rows.length === 0) {
|
|
1902
1896
|
const maxPages = readFallbackMaxPages();
|
|
1903
1897
|
const collected = [];
|
|
1904
1898
|
let pages = 0;
|
|
@@ -2335,7 +2329,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
|
|
|
2335
2329
|
);
|
|
2336
2330
|
}
|
|
2337
2331
|
if (endpoint.interfacePk === "create_meeting") {
|
|
2338
|
-
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-
|
|
2332
|
+
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-H7EHQXYY.js");
|
|
2339
2333
|
assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
|
|
2340
2334
|
}
|
|
2341
2335
|
const pkQuery = writePkQuery(endpoint, payload);
|
|
@@ -2,33 +2,33 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingEbGroupChatOperations
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IP4CWQCF.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingEbCreateFlowOperations
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AD46OMQK.js";
|
|
9
9
|
import {
|
|
10
10
|
ebRoomRecommendOperation,
|
|
11
11
|
recommendRooms,
|
|
12
12
|
rememberFrequentRoom
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6AXKWFKG.js";
|
|
14
14
|
import {
|
|
15
15
|
meetingEbScheduleOperations
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4RWS2YYL.js";
|
|
17
17
|
import {
|
|
18
18
|
ebMeetingWritePreflight,
|
|
19
19
|
meetingEbConflictOperations
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PSOMGA3U.js";
|
|
21
21
|
import {
|
|
22
22
|
PENDING_MARK,
|
|
23
23
|
listMeetingAttachments,
|
|
24
24
|
meetingAttachmentContentOperations,
|
|
25
25
|
renderDocx
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GSZTA43P.js";
|
|
27
27
|
import {
|
|
28
28
|
meetingEnvOperations,
|
|
29
29
|
meetingStateDir,
|
|
30
30
|
resolveMeetingEnvMode
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IRMIEDXN.js";
|
|
32
32
|
import {
|
|
33
33
|
EB_BASE,
|
|
34
34
|
EB_ENDPOINTS,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
toIdString,
|
|
61
61
|
verifyLease,
|
|
62
62
|
writeBody
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-6V5ZPKHV.js";
|
|
64
64
|
import {
|
|
65
65
|
CONTINUATION_TTL_SECONDS
|
|
66
66
|
} from "./chunk-7BDPM5ST.js";
|
|
@@ -2224,7 +2224,7 @@ var meetingAttachmentAttach = {
|
|
|
2224
2224
|
if (mode === "append" && existingIds.length === 0) {
|
|
2225
2225
|
existingIds.push(...beforeIds);
|
|
2226
2226
|
}
|
|
2227
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2227
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
2228
2228
|
const list = getMeetingOperation2("meeting.eb.meeting.list");
|
|
2229
2229
|
let fileId = incomingFileId;
|
|
2230
2230
|
let name = String(args.name ?? "").trim();
|
|
@@ -2312,7 +2312,7 @@ function textOf(value) {
|
|
|
2312
2312
|
return value === void 0 || value === null ? "" : String(value);
|
|
2313
2313
|
}
|
|
2314
2314
|
async function readMinute(env, id) {
|
|
2315
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2315
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
2316
2316
|
const detail = getMeetingOperation2("meeting.eb.minute.detail");
|
|
2317
2317
|
const result = await detail.handler({ id }, env);
|
|
2318
2318
|
const row = result?.data?.data;
|
|
@@ -2391,7 +2391,7 @@ var meetingMinuteWriteContent = {
|
|
|
2391
2391
|
} else {
|
|
2392
2392
|
statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
|
|
2393
2393
|
}
|
|
2394
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2394
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
2395
2395
|
const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
|
|
2396
2396
|
const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
|
|
2397
2397
|
const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
|
|
@@ -2750,7 +2750,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2750
2750
|
const mtId = textOf2(args.mt_id).trim();
|
|
2751
2751
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
2752
2752
|
const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
|
|
2753
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2753
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
2754
2754
|
const ctx = env.ctx;
|
|
2755
2755
|
let stepStart = Date.now();
|
|
2756
2756
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
@@ -2844,7 +2844,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2844
2844
|
try {
|
|
2845
2845
|
const { readFile: readFile4 } = await import("node:fs/promises");
|
|
2846
2846
|
const buffer = await readFile4(file);
|
|
2847
|
-
const { extractText } = await import("./attachment-content-
|
|
2847
|
+
const { extractText } = await import("./attachment-content-MCXQBD6N.js");
|
|
2848
2848
|
const extracted = extractText(buffer, file, "");
|
|
2849
2849
|
if (extracted.text.trim()) {
|
|
2850
2850
|
extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
|
|
@@ -3163,7 +3163,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3163
3163
|
const warnings = [];
|
|
3164
3164
|
const mtId = textOf3(args.mt_id).trim();
|
|
3165
3165
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
3166
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3166
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
3167
3167
|
const ctx = env.ctx;
|
|
3168
3168
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
3169
3169
|
{ mt_id: mtId, pageNo: 1, pageSize: 1 },
|
|
@@ -3465,7 +3465,7 @@ var meetingPipelineRun = {
|
|
|
3465
3465
|
const needsConfirm = level === "tasks" || level === "notify";
|
|
3466
3466
|
const confirmed = args.confirm === true;
|
|
3467
3467
|
const executedLevel = needsConfirm && !confirmed ? "document" : level;
|
|
3468
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3468
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
3469
3469
|
const ctx = env.ctx;
|
|
3470
3470
|
let stepStart = Date.now();
|
|
3471
3471
|
const reuseMinuteId = textOf4(args.minuteId).trim();
|
|
@@ -3837,7 +3837,7 @@ function formatTimeRange(start, end) {
|
|
|
3837
3837
|
}
|
|
3838
3838
|
async function loadAgendaFromTopics(env, mtId) {
|
|
3839
3839
|
try {
|
|
3840
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3840
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
3841
3841
|
const operation = getMeetingOperation2("meeting.eb.topic.list");
|
|
3842
3842
|
const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
|
|
3843
3843
|
const rows = result.data?.rows ?? [];
|
|
@@ -3892,11 +3892,24 @@ async function loadAgendaFromTopics(env, mtId) {
|
|
|
3892
3892
|
function parseAgendaFromExtra(raw) {
|
|
3893
3893
|
const text = String(raw ?? "").trim();
|
|
3894
3894
|
if (!text) return [];
|
|
3895
|
+
const isTimeLike = (part) => /^\d{1,2}:\d{2}(\s*[-~至]\s*\d{1,2}:\d{2})?$/u.test(part) || /^\d+(\.\d+)?\s*(分钟|分|min|minutes?|小时|h|hours?)$/iu.test(part);
|
|
3895
3896
|
return text.split(/[\r\n;;]+/u).map((line) => line.trim()).filter(Boolean).map((line) => {
|
|
3896
|
-
const parts = line.split("|").map((part) => part.trim());
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3897
|
+
const parts = line.split("|").map((part) => part.trim()).filter((part) => part !== "");
|
|
3898
|
+
if (parts.length >= 3) {
|
|
3899
|
+
const [name, content, timeRange] = parts;
|
|
3900
|
+
if (!isTimeLike(timeRange) && isTimeLike(name)) return ["", content, name];
|
|
3901
|
+
return [name, content, timeRange];
|
|
3902
|
+
}
|
|
3903
|
+
if (parts.length === 2) {
|
|
3904
|
+
const [a, b] = parts;
|
|
3905
|
+
if (isTimeLike(a) && !isTimeLike(b)) return [b, "", a];
|
|
3906
|
+
if (isTimeLike(b) && !isTimeLike(a)) return [a, "", b];
|
|
3907
|
+
return [a, b, ""];
|
|
3908
|
+
}
|
|
3909
|
+
const inline = line.match(/^(\d{1,2}:\d{2}\s*[-~至]\s*\d{1,2}:\d{2})\s*(.+)$/u);
|
|
3910
|
+
if (inline) return [inline[2].trim(), "", inline[1].trim()];
|
|
3911
|
+
return [parts[0] ?? "", "", ""];
|
|
3912
|
+
}).filter((row) => row[0] !== "" || row[2] !== "");
|
|
3900
3913
|
}
|
|
3901
3914
|
function flattenFieldValue(raw) {
|
|
3902
3915
|
if (raw === void 0 || raw === null) return void 0;
|
|
@@ -3975,7 +3988,7 @@ async function supplementRowFromDetail(row, mtId, env) {
|
|
|
3975
3988
|
const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
|
|
3976
3989
|
if (missing.length === 0) return { row, filled: [] };
|
|
3977
3990
|
try {
|
|
3978
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3991
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
3979
3992
|
const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
3980
3993
|
const result = await detailOperation.handler({ id: mtId }, env);
|
|
3981
3994
|
const flat = result?.data?.data ?? result?.data ?? {};
|
|
@@ -4149,7 +4162,7 @@ var meetingInvitationRender = {
|
|
|
4149
4162
|
};
|
|
4150
4163
|
dataSource = "payload";
|
|
4151
4164
|
} else {
|
|
4152
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4165
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
4153
4166
|
const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
|
|
4154
4167
|
try {
|
|
4155
4168
|
const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
|
|
@@ -4315,7 +4328,7 @@ var meetingInvitationPublish = {
|
|
|
4315
4328
|
"\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"
|
|
4316
4329
|
);
|
|
4317
4330
|
}
|
|
4318
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4331
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
4319
4332
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
4320
4333
|
const rendered = await render.handler(
|
|
4321
4334
|
{
|
|
@@ -5030,7 +5043,7 @@ var meetingSummaryGet = {
|
|
|
5030
5043
|
const mtId = textOf5(args.mt_id).trim();
|
|
5031
5044
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
5032
5045
|
const ctx = env.ctx;
|
|
5033
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5046
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
5034
5047
|
const warnings = [];
|
|
5035
5048
|
const timings = {};
|
|
5036
5049
|
const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
|
|
@@ -5351,7 +5364,7 @@ var MT_STATUS_OVER = "8";
|
|
|
5351
5364
|
var CANCELLED_MARK_DELAY_MS = 800;
|
|
5352
5365
|
async function isCancelledMeeting(env, mtId) {
|
|
5353
5366
|
try {
|
|
5354
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5367
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
5355
5368
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
5356
5369
|
// withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
|
|
5357
5370
|
{ mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
|
|
@@ -6376,7 +6389,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
|
|
|
6376
6389
|
const mtId = String(context.dataIds?.[0] ?? "").trim();
|
|
6377
6390
|
if (!isCreate || !enabled || !mtId) return association;
|
|
6378
6391
|
try {
|
|
6379
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6392
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
6380
6393
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
6381
6394
|
const result = await render.handler({ mtId }, context.env);
|
|
6382
6395
|
return { ...association ?? {}, invitation: result?.data ?? null };
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
loadDayUsages,
|
|
9
9
|
loadRooms,
|
|
10
10
|
recommendRooms
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6AXKWFKG.js";
|
|
12
12
|
import {
|
|
13
13
|
cacheScopeSuffix,
|
|
14
14
|
readCache,
|
|
15
15
|
writeCache
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OXHHJWNC.js";
|
|
17
17
|
import {
|
|
18
18
|
fetchEbAppSettings,
|
|
19
19
|
findCommonFreeSlots
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PSOMGA3U.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-6V5ZPKHV.js";
|
|
30
30
|
import {
|
|
31
31
|
CONTINUATION_TTL_MS,
|
|
32
32
|
CONTINUATION_TTL_SECONDS
|
|
@@ -333,7 +333,7 @@ async function resolveAddressRoom(env, input) {
|
|
|
333
333
|
const text = String(input ?? "").trim();
|
|
334
334
|
if (!text) return null;
|
|
335
335
|
const ref = parseRoomRef(text);
|
|
336
|
-
const { loadRooms: loadRooms2 } = await import("./room-recommend-
|
|
336
|
+
const { loadRooms: loadRooms2 } = await import("./room-recommend-5U55FMXZ.js");
|
|
337
337
|
let rooms = [];
|
|
338
338
|
try {
|
|
339
339
|
rooms = (await loadRooms2(env, {})).rooms;
|
|
@@ -355,7 +355,7 @@ async function resolveRoomValue(env, input) {
|
|
|
355
355
|
const ref = parseRoomRef(text);
|
|
356
356
|
if (ref.id) {
|
|
357
357
|
try {
|
|
358
|
-
const { getMeetingOperation } = await import("./registry-
|
|
358
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
359
359
|
const detail = await getMeetingOperation("meeting.eb.room.detail").handler({ id: ref.id }, env);
|
|
360
360
|
const main = detail?.data?.mainTable ?? detail?.data?.data?.mainTable ?? {};
|
|
361
361
|
const name = String(main.room_name ?? "").trim() || ref.name || "";
|
|
@@ -467,7 +467,7 @@ async function shapeBrowserValues(env, values) {
|
|
|
467
467
|
const nameOnly = rows.filter((row) => row.id === "" && row.name !== "");
|
|
468
468
|
if (nameOnly.length > 0) {
|
|
469
469
|
try {
|
|
470
|
-
const { getMeetingOperation } = await import("./registry-
|
|
470
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
471
471
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
472
472
|
for (const row of nameOnly) {
|
|
473
473
|
const found = await search.handler({ keyword: row.name, limit: 5 }, env).catch(() => null);
|
|
@@ -661,7 +661,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
|
|
|
661
661
|
const missing = [];
|
|
662
662
|
if (entries.length > 0) {
|
|
663
663
|
try {
|
|
664
|
-
const { getMeetingOperation } = await import("./registry-
|
|
664
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
665
665
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
666
666
|
for (const entry of entries) {
|
|
667
667
|
if (entry.contacts.length > 0) continue;
|
|
@@ -920,7 +920,7 @@ function shouldAutoPickFlow(args) {
|
|
|
920
920
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
921
921
|
const started = Date.now();
|
|
922
922
|
try {
|
|
923
|
-
const { buildImEnv } = await import("./group-chat-
|
|
923
|
+
const { buildImEnv } = await import("./group-chat-CAKMMV7K.js");
|
|
924
924
|
const { getImOperation } = await import("./registry-PVUZQDDQ.js");
|
|
925
925
|
const imEnv = await buildImEnv(env);
|
|
926
926
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
@@ -1033,6 +1033,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1033
1033
|
description: "\u7ED3\u675F\u65F6\u95F4\uFF08yyyy-MM-dd HH:mm\uFF09\uFF1B\u4E0D\u4F20\u5219\u6309 durationMinutes \u4ECE\u5F00\u59CB\u65F6\u95F4\u63A8\u7B97\uFF08\u9ED8\u8BA4 60 \u5206\u949F\uFF09"
|
|
1034
1034
|
},
|
|
1035
1035
|
mt_desc: { type: "string", description: "\u4F1A\u8BAE\u5185\u5BB9/\u8BF4\u660E" },
|
|
1036
|
+
agenda: { type: "string", description: "\u9080\u8BF7\u51FD\u8BAE\u7A0B\uFF08AI \u6309\u4F1A\u8BAE\u540D\u79F0+\u5185\u5BB9\u5206\u6790\u540E\u751F\u6210\uFF09\uFF1A\u6BCF\u884C\u300C\u8BAE\u7A0B\u5B89\u6392|\u8BAE\u7A0B\u5185\u5BB9|\u8BAE\u7A0B\u65F6\u95F4\u300D\uFF0C\u6362\u884C\u5206\u9694\uFF1B\u4E0D\u4F20\u5219\u7528\u4F1A\u8BAE\u8BAE\u9898\u6216\u6A21\u677F\u793A\u4F8B\u884C" },
|
|
1036
1037
|
address: { type: "string", description: '\u4F1A\u8BAE\u5BA4\uFF08\u540D\u79F0\u6216 id\uFF09\uFF1B\u4E5F\u53EF\u76F4\u63A5\u5199\u697C\u5C42\uFF08"\u4E00\u697C/1F/3\u5C42"\uFF09\uFF0CCLI \u4F1A\u6309\u697C\u5C42\u7ED9\u5019\u9009' },
|
|
1037
1038
|
floor: { type: "number", description: "\u697C\u5C42\uFF081=\u4E00\u697C\uFF09\uFF1A\u548C address \u4E8C\u9009\u4E00\uFF0C\u6309\u540D\u79F0\u63A8\u65AD\u697C\u5C42\u8FC7\u6EE4\u5019\u9009\uFF08120\u4F1A\u8BAE\u5BA4=1\u697C\u30011007=10\u697C\uFF09" },
|
|
1038
1039
|
askRoom: { type: "boolean", description: "\u9ED8\u8BA4 false\uFF1A\u4E0D\u6307\u5B9A\u5730\u70B9\u65F6 CLI \u76F4\u63A5\u6309\u63A8\u8350\u7B97\u6CD5\u5B9A\u4E00\u95F4\uFF1B\u4F20 true \u624D\u8FD4\u56DE\u5019\u9009\u8BA9\u7528\u6237\u6311" },
|
|
@@ -1166,7 +1167,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1166
1167
|
}
|
|
1167
1168
|
}
|
|
1168
1169
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1169
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1170
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-IDETODCA.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1170
1171
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1171
1172
|
let timeConfirmed = args.timeConfirmed === true || slotConfirmed;
|
|
1172
1173
|
const draft = await loadMeetingDraft(env, String(args.mt_name ?? "")).catch(() => null);
|
|
@@ -1195,7 +1196,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1195
1196
|
if (!beginHasTime || !timeConfirmed) {
|
|
1196
1197
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1197
1198
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1198
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1199
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
1199
1200
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1200
1201
|
{
|
|
1201
1202
|
dateFrom: day2,
|
|
@@ -1356,7 +1357,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1356
1357
|
usageFromCache: usageData.fromCache
|
|
1357
1358
|
};
|
|
1358
1359
|
}
|
|
1359
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1360
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
1360
1361
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1361
1362
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1362
1363
|
env
|
|
@@ -1364,7 +1365,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1364
1365
|
return { room, ...result?.data ?? {} };
|
|
1365
1366
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1366
1367
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1367
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1368
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
1368
1369
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1369
1370
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1370
1371
|
env
|
|
@@ -1731,7 +1732,62 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1731
1732
|
const preferredFields = await readFlowFieldMap(env, workflowId);
|
|
1732
1733
|
const { main, mapped, unmapped, resolved: resolvedFields } = mapFields(form.fields, shaped.values, preferredFields);
|
|
1733
1734
|
await writeFlowFieldMap(env, workflowId, form.workflowName, resolvedFields);
|
|
1734
|
-
|
|
1735
|
+
let invitationDocInfo = null;
|
|
1736
|
+
const inviteDocWarnings = [];
|
|
1737
|
+
if (args.invitation_doc !== false) {
|
|
1738
|
+
const inviteField = form.fields.find((field) => String(field?.name ?? "") === "\u9080\u8BF7\u51FD");
|
|
1739
|
+
if (inviteField) {
|
|
1740
|
+
const existing = main[String(inviteField.id)];
|
|
1741
|
+
const cachedDoc = draft?.invitationDoc && Date.now() - Number(draft.invitationDoc.createdAt || 0) <= 30 * 60 * 1e3 ? draft.invitationDoc : null;
|
|
1742
|
+
if (Array.isArray(existing) && existing.length > 0) {
|
|
1743
|
+
invitationDocInfo = {
|
|
1744
|
+
docId: String(existing[0]?.id ?? ""),
|
|
1745
|
+
name: String(existing[0]?.name ?? "")
|
|
1746
|
+
};
|
|
1747
|
+
} else if (cachedDoc?.docId) {
|
|
1748
|
+
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
1749
|
+
} else {
|
|
1750
|
+
try {
|
|
1751
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
1752
|
+
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
1753
|
+
const renderExtra = {};
|
|
1754
|
+
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
1755
|
+
if (!renderExtra.guest_org) {
|
|
1756
|
+
const crmLabel = String(shaped.readable?.crm_members ?? "").trim();
|
|
1757
|
+
if (crmLabel) renderExtra.guest_org = crmLabel;
|
|
1758
|
+
}
|
|
1759
|
+
if (String(args.agenda ?? "").trim()) renderExtra.agenda = String(args.agenda).trim();
|
|
1760
|
+
const published = await publish.handler(
|
|
1761
|
+
{
|
|
1762
|
+
mt_name: String(args.mt_name ?? ""),
|
|
1763
|
+
begin_datetime: beginText,
|
|
1764
|
+
end_datetime: endText,
|
|
1765
|
+
...confirmedAddressLabel ? { address: confirmedAddressLabel } : {},
|
|
1766
|
+
...String(shaped.readable.hrm_members ?? "") ? { hrm_members: String(shaped.readable.hrm_members) } : {},
|
|
1767
|
+
...String(args.mt_desc ?? "") ? { mt_desc: String(args.mt_desc) } : {},
|
|
1768
|
+
...String(shaped.readable.caller ?? "") ? { caller: String(shaped.readable.caller) } : {},
|
|
1769
|
+
...String(args.total_member ?? "") ? { total_member: String(args.total_member) } : {},
|
|
1770
|
+
...Object.keys(renderExtra).length > 0 ? { extra: renderExtra } : {},
|
|
1771
|
+
confirm: true
|
|
1772
|
+
},
|
|
1773
|
+
env
|
|
1774
|
+
);
|
|
1775
|
+
const docId = String(published?.data?.docId ?? "");
|
|
1776
|
+
const docName = String(published?.data?.docName ?? "\u9080\u8BF7\u51FD");
|
|
1777
|
+
if (docId) {
|
|
1778
|
+
invitationDocInfo = { docId, name: docName, ...published?.data?.filePath ? { filePath: String(published.data.filePath) } : {}, ...published?.data?.text ? { text: String(published.data.text) } : {} };
|
|
1779
|
+
}
|
|
1780
|
+
} catch (error) {
|
|
1781
|
+
inviteDocWarnings.push(`\u9080\u8BF7\u51FD\u6587\u6863\u6CA1\u751F\u6210\u6210\u529F\uFF08${String(error?.message ?? error).slice(0, 120)}\uFF09\uFF1A\u8868\u5355\u300C\u9080\u8BF7\u51FD\u300D\u5B57\u6BB5\u4F1A\u7559\u7A7A\uFF0C\u53EF\u7A0D\u540E\u91CD\u8DD1 publish \u8865\u3002`);
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
if (invitationDocInfo?.docId) {
|
|
1785
|
+
main[String(inviteField.id)] = [{ id: invitationDocInfo.docId, name: invitationDocInfo.name }];
|
|
1786
|
+
inviteDocWarnings.push(`\u9080\u8BF7\u51FD\u5DF2\u751F\u6210\u6587\u6863\u5E76\u5199\u5165\u8868\u5355\uFF1A${invitationDocInfo.name}\uFF08docId ${invitationDocInfo.docId}\uFF09\u3002`);
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
const warnings = [...checkNotices, ...inviteDocWarnings];
|
|
1735
1791
|
if (autoFilledPerson.length > 0) {
|
|
1736
1792
|
const labels = autoFilledPerson.map((one) => `\u300C${PERSON_FIELD_LABELS[one.field]}\u300D`).join("");
|
|
1737
1793
|
warnings.push(
|
|
@@ -1900,7 +1956,9 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1900
1956
|
// 会议记录的客户要靠 apply 补写(表单「参会客户」是 Ebuilder,单据↔会议表不同步)
|
|
1901
1957
|
...crmPatchIds.length > 0 ? { crmPatch: { ids: crmPatchIds, count: crmMemberCount === void 0 ? crmPatchIds.length : crmMemberCount } } : {},
|
|
1902
1958
|
// 建群要素:apply 拿到会议 id 后先建群、再把群 id 回写 imchat_groupid
|
|
1903
|
-
|
|
1959
|
+
// ⛔ 2026-11-08 用户明确:ESB 已在流程提交时建群并发提醒,CLI **不要再建群**。
|
|
1960
|
+
// 只有显式传 createGroupChat: true 才保留(老链路/没有 ESB 的环境)。
|
|
1961
|
+
...args.createGroupChat === true ? { groupChat: {
|
|
1904
1962
|
memberIds: groupMemberIds,
|
|
1905
1963
|
// ⛔ 2026-11-04 修:用户只说"明天上午"(time_slot)时,begin_datetime 是 CLI 展开出来的,
|
|
1906
1964
|
// `shaped.values` 里**没有**这个键 —— 直接取会得到空串,群消息里"开始时间/结束时间"就空着。
|
|
@@ -1915,7 +1973,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1915
1973
|
if (value && typeof value === "object") return String(value.name ?? value.id ?? "");
|
|
1916
1974
|
return String(value ?? "");
|
|
1917
1975
|
})()
|
|
1918
|
-
}
|
|
1976
|
+
} } : {}
|
|
1919
1977
|
},
|
|
1920
1978
|
fingerprint: JSON.stringify({ workflowId, main, ...detailPayload ? { details: detailPayload } : {} })
|
|
1921
1979
|
},
|
|
@@ -1927,6 +1985,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1927
1985
|
end: endText,
|
|
1928
1986
|
...addressId !== "" ? { addressId, addressName: confirmedAddressLabel } : {},
|
|
1929
1987
|
memberIds,
|
|
1988
|
+
...invitationDocInfo?.docId ? { invitationDoc: { docId: invitationDocInfo.docId, name: invitationDocInfo.name, createdAt: Date.now() } } : {},
|
|
1930
1989
|
// 校验结论一并记住:下一轮同样时间/参会人直接复用(3 分钟内)
|
|
1931
1990
|
checks: cachedChecks ?? {
|
|
1932
1991
|
key: checksKey,
|
|
@@ -1971,6 +2030,8 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1971
2030
|
} : {},
|
|
1972
2031
|
...detailPayload ? { detailRows: { subFormId: Object.keys(detailPayload)[0], count: crmDetailRows.length, rows: crmDetailRows } } : {},
|
|
1973
2032
|
formFieldCount: form.fields.length,
|
|
2033
|
+
// 邀请函文档(含对话内正文):上层直接把 text 贴出来,别只让用户看表单
|
|
2034
|
+
...invitationDocInfo ? { invitationDoc: invitationDocInfo } : {},
|
|
1974
2035
|
...Object.keys(decisions).length > 0 ? { decisions } : {}
|
|
1975
2036
|
},
|
|
1976
2037
|
continuation,
|
|
@@ -2005,7 +2066,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2005
2066
|
});
|
|
2006
2067
|
};
|
|
2007
2068
|
const readBack = async () => {
|
|
2008
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2069
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
2009
2070
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2010
2071
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2011
2072
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2032,7 +2093,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2032
2093
|
const fields = payload?.invitationFields ?? {};
|
|
2033
2094
|
const started = Date.now();
|
|
2034
2095
|
try {
|
|
2035
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2096
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
2036
2097
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2037
2098
|
const rendered = await render.handler(
|
|
2038
2099
|
{
|
|
@@ -2155,7 +2216,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2155
2216
|
const groupPayload2 = payload?.groupChat;
|
|
2156
2217
|
if (groupPayload2) {
|
|
2157
2218
|
try {
|
|
2158
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2219
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-CAKMMV7K.js");
|
|
2159
2220
|
groupChat2 = {
|
|
2160
2221
|
...await ensureMeetingGroupChat(env, {
|
|
2161
2222
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2171,7 +2232,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2171
2232
|
}
|
|
2172
2233
|
if (groupChat2 && groupChat2.ok) {
|
|
2173
2234
|
try {
|
|
2174
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2235
|
+
const { savePendingForm } = await import("./group-chat-CAKMMV7K.js");
|
|
2175
2236
|
await savePendingForm(env, {
|
|
2176
2237
|
workflowId: String(payload.workflowId ?? ""),
|
|
2177
2238
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2238,7 +2299,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2238
2299
|
let meetingId = "";
|
|
2239
2300
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2240
2301
|
if (waitSeconds > 0) {
|
|
2241
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2302
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
2242
2303
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2243
2304
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2244
2305
|
const pollStart = Date.now();
|
|
@@ -2288,7 +2349,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2288
2349
|
if (groupPayload) {
|
|
2289
2350
|
const groupStart = Date.now();
|
|
2290
2351
|
try {
|
|
2291
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2352
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-CAKMMV7K.js");
|
|
2292
2353
|
const group = await ensureMeetingGroupChat(env, {
|
|
2293
2354
|
meetingName: String(payload.mtName ?? ""),
|
|
2294
2355
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2320,7 +2381,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2320
2381
|
if (meetingId) {
|
|
2321
2382
|
const invitationStart = Date.now();
|
|
2322
2383
|
try {
|
|
2323
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2384
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
2324
2385
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2325
2386
|
const rendered = await render.handler(
|
|
2326
2387
|
{
|
|
@@ -2491,7 +2552,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2491
2552
|
`\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`
|
|
2492
2553
|
);
|
|
2493
2554
|
}
|
|
2494
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2555
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
2495
2556
|
const prepareStartedAt = Date.now();
|
|
2496
2557
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2497
2558
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2589,7 +2650,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2589
2650
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2590
2651
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2591
2652
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2592
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2653
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-IDETODCA.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2593
2654
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2594
2655
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2595
2656
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -2,13 +2,13 @@ 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-IRMIEDXN.js";
|
|
6
6
|
import {
|
|
7
7
|
SCHEMA_ID,
|
|
8
8
|
meetingSuccess,
|
|
9
9
|
meetingValidationError,
|
|
10
10
|
schemaOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6V5ZPKHV.js";
|
|
12
12
|
|
|
13
13
|
// src/shortcuts/meeting/operations/attachment-content.ts
|
|
14
14
|
import { mkdir, writeFile } from "node:fs/promises";
|