weaver-work-cli 0.1.53 → 0.1.54
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-W3TSJC3Y.js → attachment-content-2EPEI4HV.js} +3 -3
- package/dist/chunks/{chunk-IF33CG4V.js → chunk-6LGLI46Q.js} +1 -1
- package/dist/chunks/{chunk-QQXMHM3J.js → chunk-7KKI5KDY.js} +2 -2
- package/dist/chunks/{chunk-76PRVYH4.js → chunk-CNVZETM5.js} +1 -1
- package/dist/chunks/{chunk-U7ROML5E.js → chunk-FE3CQAAM.js} +23 -23
- package/dist/chunks/{chunk-WTLQGS6D.js → chunk-JJRIT2ZN.js} +2 -2
- package/dist/chunks/{chunk-PE334WL3.js → chunk-LYOFRYC4.js} +4 -4
- package/dist/chunks/{chunk-DEHJ7PMA.js → chunk-O6RIBG5E.js} +4 -4
- package/dist/chunks/{chunk-Z4G7LLDD.js → chunk-QUDHSMG3.js} +35 -23
- package/dist/chunks/{chunk-6GCXWKG6.js → chunk-XHMJBRLZ.js} +1 -1
- package/dist/chunks/{chunk-2J3XY4ED.js → chunk-Z7B7QSR2.js} +6 -6
- package/dist/chunks/{conflict-57WDJWL7.js → conflict-K2IAKKFR.js} +2 -2
- package/dist/chunks/{create-flow-3FMMZBCA.js → create-flow-UL37MZGP.js} +6 -6
- package/dist/chunks/{env-JYZE3BZB.js → env-BZDB5OVZ.js} +2 -2
- package/dist/chunks/{factory-66SCIKW3.js → factory-VD3YI6N7.js} +1 -1
- package/dist/chunks/{group-chat-MNRYMLNG.js → group-chat-DHNVO76L.js} +3 -3
- package/dist/chunks/{meeting-IIY4UAJL.js → meeting-OWG4O2XH.js} +10 -10
- package/dist/chunks/{registry-METZ2LWE.js → registry-ASYCWF2U.js} +10 -10
- package/dist/chunks/{room-recommend-YFY7HTOF.js → room-recommend-LSVAMGKV.js} +4 -4
- package/dist/chunks/{schedule-6I63TERA.js → schedule-7QOPRUU4.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +21 -0
- package/package.json +1 -1
- package/skills/weaver-e10-meeting/SKILL.md +2 -1
|
@@ -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-JJRIT2ZN.js";
|
|
12
|
+
import "./chunk-6LGLI46Q.js";
|
|
13
|
+
import "./chunk-XHMJBRLZ.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-CNVZETM5.js";
|
|
7
7
|
import {
|
|
8
8
|
SCHEMA_DATETIME_MINUTE,
|
|
9
9
|
meetingSuccess,
|
|
10
10
|
meetingValidationError,
|
|
11
11
|
schemaOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XHMJBRLZ.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";
|
|
@@ -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-6LGLI46Q.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -5,35 +5,35 @@ import {
|
|
|
5
5
|
listMeetingAttachments,
|
|
6
6
|
meetingAttachmentContentOperations,
|
|
7
7
|
renderDocx
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JJRIT2ZN.js";
|
|
9
9
|
import {
|
|
10
10
|
meetingEbGroupChatOperations
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Z7B7QSR2.js";
|
|
12
12
|
import {
|
|
13
13
|
meetingEbCreateFlowOperations
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QUDHSMG3.js";
|
|
15
15
|
import {
|
|
16
16
|
ebMeetingWritePreflight,
|
|
17
17
|
meetingEbConflictOperations
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-O6RIBG5E.js";
|
|
19
19
|
import {
|
|
20
20
|
meetingEbScheduleOperations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7KKI5KDY.js";
|
|
22
22
|
import {
|
|
23
23
|
ebRoomRecommendOperation,
|
|
24
24
|
recommendRooms,
|
|
25
25
|
rememberFrequentRoom
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LYOFRYC4.js";
|
|
27
27
|
import {
|
|
28
28
|
cacheScopeSuffix,
|
|
29
29
|
readCache,
|
|
30
30
|
writeCache
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CNVZETM5.js";
|
|
32
32
|
import {
|
|
33
33
|
meetingEnvOperations,
|
|
34
34
|
meetingStateDir,
|
|
35
35
|
resolveMeetingEnvMode
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6LGLI46Q.js";
|
|
37
37
|
import {
|
|
38
38
|
EB_BASE,
|
|
39
39
|
EB_ENDPOINTS,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
toIdString,
|
|
66
66
|
verifyLease,
|
|
67
67
|
writeBody
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-XHMJBRLZ.js";
|
|
69
69
|
import {
|
|
70
70
|
CONTINUATION_TTL_SECONDS
|
|
71
71
|
} from "./chunk-7BDPM5ST.js";
|
|
@@ -2229,7 +2229,7 @@ var meetingAttachmentAttach = {
|
|
|
2229
2229
|
if (mode === "append" && existingIds.length === 0) {
|
|
2230
2230
|
existingIds.push(...beforeIds);
|
|
2231
2231
|
}
|
|
2232
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2232
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
2233
2233
|
const list = getMeetingOperation2("meeting.eb.meeting.list");
|
|
2234
2234
|
let fileId = incomingFileId;
|
|
2235
2235
|
let name = String(args.name ?? "").trim();
|
|
@@ -2317,7 +2317,7 @@ function textOf(value) {
|
|
|
2317
2317
|
return value === void 0 || value === null ? "" : String(value);
|
|
2318
2318
|
}
|
|
2319
2319
|
async function readMinute(env, id) {
|
|
2320
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2320
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
2321
2321
|
const detail = getMeetingOperation2("meeting.eb.minute.detail");
|
|
2322
2322
|
const result = await detail.handler({ id }, env);
|
|
2323
2323
|
const row = result?.data?.data;
|
|
@@ -2396,7 +2396,7 @@ var meetingMinuteWriteContent = {
|
|
|
2396
2396
|
} else {
|
|
2397
2397
|
statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
|
|
2398
2398
|
}
|
|
2399
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2399
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
2400
2400
|
const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
|
|
2401
2401
|
const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
|
|
2402
2402
|
const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
|
|
@@ -2762,7 +2762,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2762
2762
|
const mtId = textOf2(args.mt_id).trim();
|
|
2763
2763
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
2764
2764
|
const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
|
|
2765
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2765
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
2766
2766
|
const ctx = env.ctx;
|
|
2767
2767
|
let stepStart = Date.now();
|
|
2768
2768
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
@@ -2856,7 +2856,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2856
2856
|
try {
|
|
2857
2857
|
const { readFile: readFile4 } = await import("node:fs/promises");
|
|
2858
2858
|
const buffer = await readFile4(file);
|
|
2859
|
-
const { extractText } = await import("./attachment-content-
|
|
2859
|
+
const { extractText } = await import("./attachment-content-2EPEI4HV.js");
|
|
2860
2860
|
const extracted = extractText(buffer, file, "");
|
|
2861
2861
|
if (extracted.text.trim()) {
|
|
2862
2862
|
extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
|
|
@@ -3175,7 +3175,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3175
3175
|
const warnings = [];
|
|
3176
3176
|
const mtId = textOf3(args.mt_id).trim();
|
|
3177
3177
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
3178
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3178
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
3179
3179
|
const ctx = env.ctx;
|
|
3180
3180
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
3181
3181
|
{ mt_id: mtId, pageNo: 1, pageSize: 1 },
|
|
@@ -3477,7 +3477,7 @@ var meetingPipelineRun = {
|
|
|
3477
3477
|
const needsConfirm = level === "tasks" || level === "notify";
|
|
3478
3478
|
const confirmed = args.confirm === true;
|
|
3479
3479
|
const executedLevel = needsConfirm && !confirmed ? "document" : level;
|
|
3480
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3480
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
3481
3481
|
const ctx = env.ctx;
|
|
3482
3482
|
let stepStart = Date.now();
|
|
3483
3483
|
const reuseMinuteId = textOf4(args.minuteId).trim();
|
|
@@ -3849,7 +3849,7 @@ function formatTimeRange(start, end) {
|
|
|
3849
3849
|
}
|
|
3850
3850
|
async function loadAgendaFromTopics(env, mtId) {
|
|
3851
3851
|
try {
|
|
3852
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3852
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
3853
3853
|
const operation = getMeetingOperation2("meeting.eb.topic.list");
|
|
3854
3854
|
const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
|
|
3855
3855
|
const rows = result.data?.rows ?? [];
|
|
@@ -4000,7 +4000,7 @@ async function supplementRowFromDetail(row, mtId, env) {
|
|
|
4000
4000
|
const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
|
|
4001
4001
|
if (missing.length === 0) return { row, filled: [] };
|
|
4002
4002
|
try {
|
|
4003
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4003
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
4004
4004
|
const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
4005
4005
|
const result = await detailOperation.handler({ id: mtId }, env);
|
|
4006
4006
|
const flat = result?.data?.data ?? result?.data ?? {};
|
|
@@ -4174,7 +4174,7 @@ var meetingInvitationRender = {
|
|
|
4174
4174
|
};
|
|
4175
4175
|
dataSource = "payload";
|
|
4176
4176
|
} else {
|
|
4177
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4177
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
4178
4178
|
const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
|
|
4179
4179
|
try {
|
|
4180
4180
|
const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
|
|
@@ -4518,7 +4518,7 @@ var meetingInvitationPublish = {
|
|
|
4518
4518
|
"\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"
|
|
4519
4519
|
);
|
|
4520
4520
|
}
|
|
4521
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4521
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
4522
4522
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
4523
4523
|
const rendered = await render.handler(
|
|
4524
4524
|
{
|
|
@@ -5233,7 +5233,7 @@ var meetingSummaryGet = {
|
|
|
5233
5233
|
const mtId = textOf5(args.mt_id).trim();
|
|
5234
5234
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
5235
5235
|
const ctx = env.ctx;
|
|
5236
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5236
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
5237
5237
|
const warnings = [];
|
|
5238
5238
|
const timings = {};
|
|
5239
5239
|
const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
|
|
@@ -5554,7 +5554,7 @@ var MT_STATUS_OVER = "8";
|
|
|
5554
5554
|
var CANCELLED_MARK_DELAY_MS = 800;
|
|
5555
5555
|
async function isCancelledMeeting(env, mtId) {
|
|
5556
5556
|
try {
|
|
5557
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5557
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
5558
5558
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
5559
5559
|
// withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
|
|
5560
5560
|
{ mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
|
|
@@ -6579,7 +6579,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
|
|
|
6579
6579
|
const mtId = String(context.dataIds?.[0] ?? "").trim();
|
|
6580
6580
|
if (!isCreate || !enabled || !mtId) return association;
|
|
6581
6581
|
try {
|
|
6582
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6582
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ASYCWF2U.js");
|
|
6583
6583
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
6584
6584
|
const result = await render.handler({ mtId }, context.env);
|
|
6585
6585
|
return { ...association ?? {}, invitation: result?.data ?? null };
|
|
@@ -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-6LGLI46Q.js";
|
|
6
6
|
import {
|
|
7
7
|
SCHEMA_ID,
|
|
8
8
|
meetingSuccess,
|
|
9
9
|
meetingValidationError,
|
|
10
10
|
schemaOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XHMJBRLZ.js";
|
|
12
12
|
|
|
13
13
|
// src/shortcuts/meeting/operations/attachment-content.ts
|
|
14
14
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
cacheScopeSuffix,
|
|
5
5
|
readCache,
|
|
6
6
|
writeCache
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CNVZETM5.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-XHMJBRLZ.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-BZDB5OVZ.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-ASYCWF2U.js");
|
|
225
225
|
const listOp = getMeetingOperation("meeting.eb.meeting.list");
|
|
226
226
|
let seen = 0;
|
|
227
227
|
let total = 0;
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
meetingValidationError,
|
|
13
13
|
queryBody,
|
|
14
14
|
toIdCsv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XHMJBRLZ.js";
|
|
16
16
|
|
|
17
17
|
// src/shortcuts/meeting/operations/eb/conflict.ts
|
|
18
18
|
var ACTIVE_MT_STATUS = "1,2,8,9";
|
|
@@ -296,7 +296,7 @@ var ebMeetingWritePreflight = async ({ endpoint, payload, args, env, extras }) =
|
|
|
296
296
|
const items = rawMembers.split(/[,;,;]+/u).map((item) => item.trim()).filter((item) => item !== "");
|
|
297
297
|
const nameLike = items.filter((item) => !/^\d+$/u.test(item));
|
|
298
298
|
if (nameLike.length > 0) {
|
|
299
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
299
|
+
const { resolveMemberIdsByName } = await import("./schedule-7QOPRUU4.js");
|
|
300
300
|
const idsByName = await resolveMemberIdsByName(env, nameLike);
|
|
301
301
|
const resolved = items.map((item) => idsByName.get(item) ?? item);
|
|
302
302
|
payload.mainTable.hrm_members = [...new Set(resolved)].join(",");
|
|
@@ -429,7 +429,7 @@ var ebConflictRoom = {
|
|
|
429
429
|
let addressId = String(args.address ?? "").trim();
|
|
430
430
|
let resolvedRoom = null;
|
|
431
431
|
if (!addressId && String(args.room_name ?? "").trim()) {
|
|
432
|
-
const { resolveAddressRoom } = await import("./create-flow-
|
|
432
|
+
const { resolveAddressRoom } = await import("./create-flow-UL37MZGP.js");
|
|
433
433
|
const resolved = await resolveAddressRoom(env, String(args.room_name));
|
|
434
434
|
if (!resolved?.id) {
|
|
435
435
|
throw meetingValidationError(
|
|
@@ -639,7 +639,7 @@ async function findCommonFreeSlots(env, input) {
|
|
|
639
639
|
const scheduleItems = [];
|
|
640
640
|
if (includeSchedule) {
|
|
641
641
|
try {
|
|
642
|
-
const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-
|
|
642
|
+
const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-7QOPRUU4.js");
|
|
643
643
|
const dayBegin = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 0, 0, 0, 0);
|
|
644
644
|
const dayEnd = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 23, 59, 0, 0);
|
|
645
645
|
const flow = await runScheduleConflictFlow(env, {
|
|
@@ -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-O6RIBG5E.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-LYOFRYC4.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CNVZETM5.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-XHMJBRLZ.js";
|
|
30
30
|
import {
|
|
31
31
|
CONTINUATION_TTL_MS,
|
|
32
32
|
CONTINUATION_TTL_SECONDS
|
|
@@ -378,7 +378,7 @@ async function resolveAddressRoom(env, input) {
|
|
|
378
378
|
const text = String(input ?? "").trim();
|
|
379
379
|
if (!text) return null;
|
|
380
380
|
const ref = parseRoomRef(text);
|
|
381
|
-
const { loadRooms: loadRooms2 } = await import("./room-recommend-
|
|
381
|
+
const { loadRooms: loadRooms2 } = await import("./room-recommend-LSVAMGKV.js");
|
|
382
382
|
let rooms = [];
|
|
383
383
|
try {
|
|
384
384
|
rooms = (await loadRooms2(env, {})).rooms;
|
|
@@ -409,7 +409,7 @@ async function resolveRoomValue(env, input) {
|
|
|
409
409
|
const ref = parseRoomRef(text);
|
|
410
410
|
if (ref.id) {
|
|
411
411
|
try {
|
|
412
|
-
const { getMeetingOperation } = await import("./registry-
|
|
412
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
413
413
|
const detail = await getMeetingOperation("meeting.eb.room.detail").handler({ id: ref.id }, env);
|
|
414
414
|
const main = detail?.data?.mainTable ?? detail?.data?.data?.mainTable ?? {};
|
|
415
415
|
const name = String(main.room_name ?? "").trim() || ref.name || "";
|
|
@@ -521,7 +521,7 @@ async function shapeBrowserValues(env, values) {
|
|
|
521
521
|
const nameOnly = rows.filter((row) => row.id === "" && row.name !== "");
|
|
522
522
|
if (nameOnly.length > 0) {
|
|
523
523
|
try {
|
|
524
|
-
const { getMeetingOperation } = await import("./registry-
|
|
524
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
525
525
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
526
526
|
for (const row of nameOnly) {
|
|
527
527
|
const found = await search.handler({ keyword: row.name, limit: 5 }, env).catch(() => null);
|
|
@@ -715,7 +715,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
|
|
|
715
715
|
const missing = [];
|
|
716
716
|
if (entries.length > 0) {
|
|
717
717
|
try {
|
|
718
|
-
const { getMeetingOperation } = await import("./registry-
|
|
718
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
719
719
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
720
720
|
for (const entry of entries) {
|
|
721
721
|
if (entry.contacts.length > 0) continue;
|
|
@@ -974,7 +974,7 @@ function shouldAutoPickFlow(args) {
|
|
|
974
974
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
975
975
|
const started = Date.now();
|
|
976
976
|
try {
|
|
977
|
-
const { buildImEnv } = await import("./group-chat-
|
|
977
|
+
const { buildImEnv } = await import("./group-chat-DHNVO76L.js");
|
|
978
978
|
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
979
979
|
const imEnv = await buildImEnv(env);
|
|
980
980
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
@@ -1223,7 +1223,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1226
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1226
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-7QOPRUU4.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1227
1227
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1228
1228
|
let timeConfirmed = args.timeConfirmed === true || slotConfirmed;
|
|
1229
1229
|
const draft = await loadMeetingDraft(env, String(args.mt_name ?? "")).catch(() => null);
|
|
@@ -1252,7 +1252,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1252
1252
|
if (!beginHasTime || !timeConfirmed) {
|
|
1253
1253
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1254
1254
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1255
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1255
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
1256
1256
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1257
1257
|
{
|
|
1258
1258
|
dateFrom: day2,
|
|
@@ -1422,7 +1422,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1422
1422
|
usageFromCache: usageData.fromCache
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1425
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
1426
1426
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1427
1427
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1428
1428
|
env
|
|
@@ -1430,7 +1430,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1430
1430
|
return { room, ...result?.data ?? {} };
|
|
1431
1431
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1432
1432
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1433
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1433
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
1434
1434
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1435
1435
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1436
1436
|
env
|
|
@@ -1796,6 +1796,18 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1796
1796
|
});
|
|
1797
1797
|
const preferredFields = await readFlowFieldMap(env, workflowId);
|
|
1798
1798
|
const { main, mapped, unmapped, resolved: resolvedFields } = mapFields(form.fields, shaped.values, preferredFields);
|
|
1799
|
+
for (const field of form.fields) {
|
|
1800
|
+
if (!(field?.isBrowser === true)) continue;
|
|
1801
|
+
const id = String(field?.id ?? "");
|
|
1802
|
+
if (!id) continue;
|
|
1803
|
+
const value = main[id];
|
|
1804
|
+
if (value === void 0 || value === null || value === "") continue;
|
|
1805
|
+
if (field.isMultiple === true && !Array.isArray(value)) {
|
|
1806
|
+
main[id] = [value];
|
|
1807
|
+
} else if (field.isMultiple !== true && Array.isArray(value) && value.length === 1) {
|
|
1808
|
+
main[id] = value[0];
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1799
1811
|
await writeFlowFieldMap(env, workflowId, form.workflowName, resolvedFields);
|
|
1800
1812
|
let invitationDocInfo = null;
|
|
1801
1813
|
const inviteDocWarnings = [];
|
|
@@ -1814,7 +1826,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1814
1826
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
1815
1827
|
} else {
|
|
1816
1828
|
try {
|
|
1817
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1829
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
1818
1830
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
1819
1831
|
const renderExtra = {};
|
|
1820
1832
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2135,7 +2147,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2135
2147
|
});
|
|
2136
2148
|
};
|
|
2137
2149
|
const readBack = async () => {
|
|
2138
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2150
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
2139
2151
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2140
2152
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2141
2153
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2162,7 +2174,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2162
2174
|
const fields = payload?.invitationFields ?? {};
|
|
2163
2175
|
const started = Date.now();
|
|
2164
2176
|
try {
|
|
2165
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2177
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
2166
2178
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2167
2179
|
const rendered = await render.handler(
|
|
2168
2180
|
{
|
|
@@ -2290,7 +2302,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2290
2302
|
const groupPayload2 = payload?.groupChat;
|
|
2291
2303
|
if (groupPayload2) {
|
|
2292
2304
|
try {
|
|
2293
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2305
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-DHNVO76L.js");
|
|
2294
2306
|
groupChat2 = {
|
|
2295
2307
|
...await ensureMeetingGroupChat(env, {
|
|
2296
2308
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2306,7 +2318,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2306
2318
|
}
|
|
2307
2319
|
if (groupChat2 && groupChat2.ok) {
|
|
2308
2320
|
try {
|
|
2309
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2321
|
+
const { savePendingForm } = await import("./group-chat-DHNVO76L.js");
|
|
2310
2322
|
await savePendingForm(env, {
|
|
2311
2323
|
workflowId: String(payload.workflowId ?? ""),
|
|
2312
2324
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2373,7 +2385,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2373
2385
|
let meetingId = "";
|
|
2374
2386
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2375
2387
|
if (waitSeconds > 0) {
|
|
2376
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2388
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
2377
2389
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2378
2390
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2379
2391
|
const pollStart = Date.now();
|
|
@@ -2423,7 +2435,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2423
2435
|
if (groupPayload) {
|
|
2424
2436
|
const groupStart = Date.now();
|
|
2425
2437
|
try {
|
|
2426
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2438
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-DHNVO76L.js");
|
|
2427
2439
|
const group = await ensureMeetingGroupChat(env, {
|
|
2428
2440
|
meetingName: String(payload.mtName ?? ""),
|
|
2429
2441
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2455,7 +2467,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2455
2467
|
if (meetingId) {
|
|
2456
2468
|
const invitationStart = Date.now();
|
|
2457
2469
|
try {
|
|
2458
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2470
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
2459
2471
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2460
2472
|
const rendered = await render.handler(
|
|
2461
2473
|
{
|
|
@@ -2627,7 +2639,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2627
2639
|
`\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`
|
|
2628
2640
|
);
|
|
2629
2641
|
}
|
|
2630
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2642
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
2631
2643
|
const prepareStartedAt = Date.now();
|
|
2632
2644
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2633
2645
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2725,7 +2737,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2725
2737
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2726
2738
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2727
2739
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2728
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2740
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-7QOPRUU4.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2729
2741
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2730
2742
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2731
2743
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -2329,7 +2329,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
|
|
|
2329
2329
|
);
|
|
2330
2330
|
}
|
|
2331
2331
|
if (endpoint.interfacePk === "create_meeting") {
|
|
2332
|
-
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-
|
|
2332
|
+
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-K2IAKKFR.js");
|
|
2333
2333
|
assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
|
|
2334
2334
|
}
|
|
2335
2335
|
const pkQuery = writePkQuery(endpoint, payload);
|
|
@@ -2,12 +2,12 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingStateDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6LGLI46Q.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError,
|
|
9
9
|
schemaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XHMJBRLZ.js";
|
|
11
11
|
|
|
12
12
|
// src/shortcuts/meeting/operations/eb/group-chat.ts
|
|
13
13
|
import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
159
159
|
if (addressText === "[object Object]") addressText = "";
|
|
160
160
|
if (addressText) {
|
|
161
161
|
try {
|
|
162
|
-
const { resolveAddressRoom } = await import("./create-flow-
|
|
162
|
+
const { resolveAddressRoom } = await import("./create-flow-UL37MZGP.js");
|
|
163
163
|
const room = await resolveAddressRoom(env, addressText);
|
|
164
164
|
if (room?.name) addressText = room.name;
|
|
165
165
|
} catch {
|
|
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
201
201
|
const group = String(groupId).trim();
|
|
202
202
|
if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
|
|
203
203
|
try {
|
|
204
|
-
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-
|
|
204
|
+
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-VD3YI6N7.js");
|
|
205
205
|
const session = await env.host.getSession();
|
|
206
206
|
await env.host.request({
|
|
207
207
|
method: "POST",
|
|
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
219
219
|
return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
|
|
220
220
|
}
|
|
221
221
|
try {
|
|
222
|
-
const { getMeetingOperation } = await import("./registry-
|
|
222
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
223
223
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
224
224
|
const read = await detail.handler({ id }, env);
|
|
225
225
|
const main = read?.data?.data ?? read?.data?.main ?? {};
|
|
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
|
|
|
267
267
|
const target = String(requestId).trim();
|
|
268
268
|
if (target === "") return null;
|
|
269
269
|
try {
|
|
270
|
-
const { getMeetingOperation } = await import("./registry-
|
|
270
|
+
const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
|
|
271
271
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
272
272
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
273
273
|
const page = await list.handler({ pageSize: 30 }, env);
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
findCommonFreeSlots,
|
|
8
8
|
meetingEbConflictOperations,
|
|
9
9
|
runEbConflictCheck
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-O6RIBG5E.js";
|
|
11
|
+
import "./chunk-XHMJBRLZ.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
resolveWorkflowId,
|
|
23
23
|
shapeBrowserValues,
|
|
24
24
|
shouldAutoPickFlow
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-QUDHSMG3.js";
|
|
26
|
+
import "./chunk-O6RIBG5E.js";
|
|
27
|
+
import "./chunk-LYOFRYC4.js";
|
|
28
|
+
import "./chunk-CNVZETM5.js";
|
|
29
|
+
import "./chunk-6LGLI46Q.js";
|
|
30
|
+
import "./chunk-XHMJBRLZ.js";
|
|
31
31
|
import "./chunk-7BDPM5ST.js";
|
|
32
32
|
import "./chunk-UG5G54VL.js";
|
|
33
33
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
meetingStateDir,
|
|
7
7
|
readCache,
|
|
8
8
|
resolveMeetingEnvMode
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-6LGLI46Q.js";
|
|
10
|
+
import "./chunk-XHMJBRLZ.js";
|
|
11
11
|
import "./chunk-7BDPM5ST.js";
|
|
12
12
|
import "./chunk-UG5G54VL.js";
|
|
13
13
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
ensureMeetingGroupChat,
|
|
7
7
|
meetingEbGroupChatOperations,
|
|
8
8
|
savePendingForm
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-Z7B7QSR2.js";
|
|
10
|
+
import "./chunk-6LGLI46Q.js";
|
|
11
|
+
import "./chunk-XHMJBRLZ.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -3,19 +3,19 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getMeetingOperation,
|
|
5
5
|
meetingOperationDefinitions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-FE3CQAAM.js";
|
|
7
|
+
import "./chunk-JJRIT2ZN.js";
|
|
8
|
+
import "./chunk-Z7B7QSR2.js";
|
|
9
|
+
import "./chunk-QUDHSMG3.js";
|
|
10
|
+
import "./chunk-O6RIBG5E.js";
|
|
11
|
+
import "./chunk-7KKI5KDY.js";
|
|
12
|
+
import "./chunk-LYOFRYC4.js";
|
|
13
|
+
import "./chunk-CNVZETM5.js";
|
|
14
14
|
import {
|
|
15
15
|
degradeMeetingEnvToStandard,
|
|
16
16
|
meetingStateDir,
|
|
17
17
|
readCache
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6LGLI46Q.js";
|
|
19
19
|
import {
|
|
20
20
|
MeetingCliError,
|
|
21
21
|
asObject,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
meetingAuthError,
|
|
24
24
|
meetingNetworkError,
|
|
25
25
|
meetingValidationError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XHMJBRLZ.js";
|
|
27
27
|
import {
|
|
28
28
|
reportPlatformError
|
|
29
29
|
} from "./chunk-6N4JPNFL.js";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
getMeetingOperation,
|
|
5
5
|
hasMeetingOperation,
|
|
6
6
|
meetingOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-FE3CQAAM.js";
|
|
8
|
+
import "./chunk-JJRIT2ZN.js";
|
|
9
|
+
import "./chunk-Z7B7QSR2.js";
|
|
10
|
+
import "./chunk-QUDHSMG3.js";
|
|
11
|
+
import "./chunk-O6RIBG5E.js";
|
|
12
|
+
import "./chunk-7KKI5KDY.js";
|
|
13
|
+
import "./chunk-LYOFRYC4.js";
|
|
14
|
+
import "./chunk-CNVZETM5.js";
|
|
15
|
+
import "./chunk-6LGLI46Q.js";
|
|
16
|
+
import "./chunk-XHMJBRLZ.js";
|
|
17
17
|
import "./chunk-7BDPM5ST.js";
|
|
18
18
|
import "./chunk-UG5G54VL.js";
|
|
19
19
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
loadRooms,
|
|
8
8
|
recommendRooms,
|
|
9
9
|
rememberFrequentRoom
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-LYOFRYC4.js";
|
|
11
|
+
import "./chunk-CNVZETM5.js";
|
|
12
|
+
import "./chunk-6LGLI46Q.js";
|
|
13
|
+
import "./chunk-XHMJBRLZ.js";
|
|
14
14
|
import "./chunk-7BDPM5ST.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
resolveMeetingScheduleTypeIds,
|
|
9
9
|
resolveMemberIdsByName,
|
|
10
10
|
runScheduleConflictFlow
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-7KKI5KDY.js";
|
|
12
|
+
import "./chunk-CNVZETM5.js";
|
|
13
|
+
import "./chunk-6LGLI46Q.js";
|
|
14
|
+
import "./chunk-XHMJBRLZ.js";
|
|
15
15
|
import "./chunk-7BDPM5ST.js";
|
|
16
16
|
import "./chunk-UG5G54VL.js";
|
|
17
17
|
import "./chunk-BUSC6UAE.js";
|
package/dist/index.js
CHANGED
|
@@ -90,7 +90,7 @@ var builtinShortcuts = [
|
|
|
90
90
|
lazyShortcut({
|
|
91
91
|
name: "meeting",
|
|
92
92
|
description: "\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406 CLI\uFF08\u6807\u51C6\u7248\uFF1A\u67E5\u8BE2/\u51B2\u7A81/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09",
|
|
93
|
-
load: async () => (await import("./chunks/meeting-
|
|
93
|
+
load: async () => (await import("./chunks/meeting-OWG4O2XH.js")).meetingShortcut
|
|
94
94
|
}),
|
|
95
95
|
lazyShortcut({
|
|
96
96
|
name: "okr",
|
|
@@ -2210,6 +2210,27 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2210
2210
|
// 本次解析结果再写回,形成"猜一次、之后一直用 datakey"的效果。
|
|
2211
2211
|
const preferredFields = await readFlowFieldMap(env, workflowId);
|
|
2212
2212
|
const { main, mapped, unmapped, resolved: resolvedFields } = mapFields(form.fields, shaped.values, preferredFields);
|
|
2213
|
+
/**
|
|
2214
|
+
* ⛔ 2026-11-16 真机:表单里「会议地点」「联系人」是**多选浏览按钮**(isMultiple=true),
|
|
2215
|
+
* 服务端要求数组;我们一直按单个 `{id,name}` 传 → 提交时返回 NEEDS_CONFIRMATION("格式无法识别")。
|
|
2216
|
+
* 这里按表单真实组件定义把多选浏览字段统一包成数组,单选保持对象。
|
|
2217
|
+
*/
|
|
2218
|
+
for (const field of form.fields) {
|
|
2219
|
+
if (!(field?.isBrowser === true))
|
|
2220
|
+
continue;
|
|
2221
|
+
const id = String(field?.id ?? '');
|
|
2222
|
+
if (!id)
|
|
2223
|
+
continue;
|
|
2224
|
+
const value = main[id];
|
|
2225
|
+
if (value === undefined || value === null || value === '')
|
|
2226
|
+
continue;
|
|
2227
|
+
if (field.isMultiple === true && !Array.isArray(value)) {
|
|
2228
|
+
main[id] = [value];
|
|
2229
|
+
}
|
|
2230
|
+
else if (field.isMultiple !== true && Array.isArray(value) && value.length === 1) {
|
|
2231
|
+
main[id] = value[0];
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2213
2234
|
await writeFlowFieldMap(env, workflowId, form.workflowName, resolvedFields);
|
|
2214
2235
|
/**
|
|
2215
2236
|
* 邀请函落成「文档」并写进表单(2026-11-08 用户要求:触发流程表单时就生成并代入)。
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ display_name_en: Weaver E10 Meeting Management
|
|
|
5
5
|
description: "泛微 E10 会议管理:查会议、预约建会(推荐会议室、查冲突与空闲时段)、改期/改地点/改参会人、取消删除、流程建会、会议室查询与推荐、生成邀请函、读取会议附件、回执签到、纪要与决议任务、参会二维码。详见 description_zh。"
|
|
6
6
|
description_zh: "泛微 E10 会议管理:查询会议与详情、预约建会(自动推荐会议室、检测参会人冲突与日程空闲、楼层定位)、改期/换地点/改参会人、取消删除、流程建会、生成邀请函(可自动写入表单文档字段)、会议室查询与推荐、纪要/议题/决议、附件读取、回执签到、参会二维码。认证与会话由 weaver-e10-shared 提供。"
|
|
7
7
|
description_en: "Weaver E10 meeting management: [Meetings] query today/week/my meetings and details, book meetings with automatic room recommendation, attendee conflict and calendar-availability checks (plus same-day alternative slots), reschedule / change room / change attendees, cancel, delete; flow-based booking with automatic invitation when the app only allows workflow creation; [Rooms] occupancy queries and smart recommendation by capacity, equipment and personal usage; [Invitation] generate invitation docx from real meeting data; [Content] list and read meeting/topic attachments and extract document text; receipts, sign-in, minutes, topics, decisions and decision tasks; [QR] render text into attendee/sign-in QR images. Auth and session are provided by weaver-e10-shared."
|
|
8
|
-
version: 2.55.
|
|
8
|
+
version: 2.55.16
|
|
9
9
|
author: 泛微网络科技股份有限公司
|
|
10
10
|
agent_created: true
|
|
11
11
|
requires:
|
|
@@ -700,6 +700,7 @@ weaver-work-cli --json meeting run meeting.eb.meeting.create.flow.apply \
|
|
|
700
700
|
- **默认提交方式 = 弹表单**(`submit_mode=browser`):把 `finalMarkdown` 原样贴进回复(含 `<browsertool>`/`fill_form`),⛔ 不许说"已在右侧打开"却没贴。只有用户说"不用确认直接建"才用 `direct`;一切以返回 `status` 为准。
|
|
701
701
|
- **CLI 不再建群**(2.52.0,ESB 接管):只有显式 `createGroupChat: true` 才建。
|
|
702
702
|
- **字段按中文名匹配**,映射不到的进 `warnings` 并列出表单现有字段;要绕过名字用 `fieldValues`(键 = datakey,从 `preview.fieldMapping` 取)。
|
|
703
|
+
- **浏览按钮的单选/多选由 CLI 按表单定义自动整形**(需 CLI ≥ 0.1.53):`会议地点`/`联系人`/`参会人员` 这类多选字段自动包成数组,`召集人` 等单选保持对象。⛔ 不要自己把「名称(ID)」拼成字符串提交,也不要手工改成数组——交给 CLI。
|
|
703
704
|
- ⛔ 不要因为"会议还在审批"就重复 `apply`(会重复建单)。
|
|
704
705
|
|
|
705
706
|
> 完整流程、返回字段与历史事故:[`references/create-flow.md`](references/create-flow.md)
|