weaver-work-cli 0.1.64 → 0.1.65
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-JQDW3BIB.js → attachment-content-QUM27QNB.js} +3 -3
- package/dist/chunks/{chunk-I3MOFD6Q.js → chunk-6AW5LW4T.js} +4 -4
- package/dist/chunks/{chunk-SCMHG23G.js → chunk-CUY64WP4.js} +38 -38
- package/dist/chunks/{chunk-AGSO3PIK.js → chunk-D6SWOUUP.js} +2 -2
- package/dist/chunks/{chunk-3PCXBG4H.js → chunk-E3OQSNF5.js} +1 -1
- package/dist/chunks/{chunk-RMOH2GMF.js → chunk-F4ME3CGS.js} +2 -2
- package/dist/chunks/{chunk-KDFEHDIB.js → chunk-IJDZ7VDC.js} +2 -2
- package/dist/chunks/{chunk-YTFNMQO4.js → chunk-IT3SB7RV.js} +88 -15
- package/dist/chunks/{chunk-4AFWOGOV.js → chunk-JDZOYHAL.js} +1 -1
- package/dist/chunks/{chunk-5QQKLR6H.js → chunk-LRK7YND4.js} +7 -7
- package/dist/chunks/{chunk-XHSEK2VM.js → chunk-NZLFKBEM.js} +6 -6
- package/dist/chunks/{chunk-INVYKG4I.js → chunk-QT7GGCSY.js} +32 -32
- package/dist/chunks/{chunk-KYDXWYFB.js → chunk-ZV3TYANI.js} +1 -1
- package/dist/chunks/{conflict-UUC7AFUI.js → conflict-76ZUL3E7.js} +2 -2
- package/dist/chunks/{create-flow-YOR4QTAJ.js → create-flow-7WGKLRHH.js} +6 -6
- package/dist/chunks/{entry-mode-S2ENJ6GZ.js → entry-mode-3UMMMK6Z.js} +3 -3
- package/dist/chunks/{env-ZSAXU5PJ.js → env-7EGXNZR2.js} +2 -2
- package/dist/chunks/{factory-N76QQA53.js → factory-BDERKTYX.js} +1 -1
- package/dist/chunks/{group-chat-UM665WDZ.js → group-chat-4E7EZMTJ.js} +3 -3
- package/dist/chunks/{meeting-MMTYDHXA.js → meeting-2FMYZXG5.js} +11 -11
- package/dist/chunks/{minute-doc-LCSBWGJ3.js → minute-doc-3DHMYMBE.js} +2 -2
- package/dist/chunks/{registry-BAWCWV4D.js → registry-6UGQO35C.js} +1 -1
- package/dist/chunks/{registry-FNI5E76J.js → registry-XXFMYPBM.js} +11 -11
- package/dist/chunks/{room-recommend-I7QQRHEL.js → room-recommend-7LD2OHL5.js} +4 -4
- package/dist/chunks/{schedule-3P7EWGNZ.js → schedule-ZAYMZKTQ.js} +4 -4
- package/dist/chunks/{workflow-U2KKTVQY.js → workflow-NYJJIT3D.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.categoryCounts.js +64 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +15 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +4 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +4 -0
- package/package.json +1 -1
- package/skills/weaver-e10-workflow/SKILL.md +40 -16
- package/skills/weaver-e10-workflow/aigroup/default.json +1 -1
- package/skills/weaver-e10-workflow/references/todo-dialogue.md +30 -27
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +90 -22
- package/skills/weaver-e10-workflow/references/workflow-view.md +18 -2
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +240 -43
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
looksLikeFileId,
|
|
9
9
|
meetingAttachmentContentOperations,
|
|
10
10
|
parseFileIdList
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F4ME3CGS.js";
|
|
12
12
|
import "./chunk-WMRNO6IU.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-E3OQSNF5.js";
|
|
14
|
+
import "./chunk-JDZOYHAL.js";
|
|
15
15
|
import "./chunk-7BDPM5ST.js";
|
|
16
16
|
import "./chunk-UG5G54VL.js";
|
|
17
17
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
cacheScopeSuffix,
|
|
5
5
|
readCache,
|
|
6
6
|
writeCache
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZV3TYANI.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-JDZOYHAL.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-7EGXNZR2.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-XXFMYPBM.js");
|
|
225
225
|
const listOp = getMeetingOperation("meeting.eb.meeting.list");
|
|
226
226
|
let seen = 0;
|
|
227
227
|
let total = 0;
|
|
@@ -10,44 +10,44 @@ import {
|
|
|
10
10
|
resolvePersonTokens,
|
|
11
11
|
resolveSelfPerson,
|
|
12
12
|
resolveWorkflowId
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QT7GGCSY.js";
|
|
14
14
|
import {
|
|
15
15
|
ebMeetingWritePreflight,
|
|
16
16
|
meetingEbConflictOperations
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NZLFKBEM.js";
|
|
18
18
|
import {
|
|
19
19
|
listMeetingAttachments,
|
|
20
20
|
meetingAttachmentContentOperations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-F4ME3CGS.js";
|
|
22
22
|
import {
|
|
23
23
|
PENDING_MARK,
|
|
24
24
|
renderDocx
|
|
25
25
|
} from "./chunk-WMRNO6IU.js";
|
|
26
26
|
import {
|
|
27
27
|
meetingEbGroupChatOperations
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LRK7YND4.js";
|
|
29
29
|
import {
|
|
30
30
|
meetingEntryOperations
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-D6SWOUUP.js";
|
|
32
32
|
import {
|
|
33
33
|
meetingEbScheduleOperations
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-IJDZ7VDC.js";
|
|
35
35
|
import {
|
|
36
36
|
ebRoomRecommendOperation,
|
|
37
37
|
inferRoomFloor,
|
|
38
38
|
recommendRooms,
|
|
39
39
|
rememberFrequentRoom
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6AW5LW4T.js";
|
|
41
41
|
import {
|
|
42
42
|
cacheScopeSuffix,
|
|
43
43
|
readCache,
|
|
44
44
|
writeCache
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZV3TYANI.js";
|
|
46
46
|
import {
|
|
47
47
|
meetingEnvOperations,
|
|
48
48
|
meetingStateDir,
|
|
49
49
|
resolveMeetingEnvMode
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-E3OQSNF5.js";
|
|
51
51
|
import {
|
|
52
52
|
EB_BASE,
|
|
53
53
|
EB_ENDPOINTS,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
toIdString,
|
|
80
80
|
verifyLease,
|
|
81
81
|
writeBody
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-JDZOYHAL.js";
|
|
83
83
|
import {
|
|
84
84
|
CONTINUATION_TTL_SECONDS
|
|
85
85
|
} from "./chunk-7BDPM5ST.js";
|
|
@@ -2247,7 +2247,7 @@ var meetingAttachmentAttach = {
|
|
|
2247
2247
|
if (mode === "append" && existingIds.length === 0) {
|
|
2248
2248
|
existingIds.push(...beforeIds);
|
|
2249
2249
|
}
|
|
2250
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2250
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
2251
2251
|
const list = getMeetingOperation2("meeting.eb.meeting.list");
|
|
2252
2252
|
let fileId = incomingFileId;
|
|
2253
2253
|
let name = String(args.name ?? "").trim();
|
|
@@ -2335,7 +2335,7 @@ function textOf(value) {
|
|
|
2335
2335
|
return value === void 0 || value === null ? "" : String(value);
|
|
2336
2336
|
}
|
|
2337
2337
|
async function readMinute(env, id) {
|
|
2338
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2338
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
2339
2339
|
const detail = getMeetingOperation2("meeting.eb.minute.detail");
|
|
2340
2340
|
const result = await detail.handler({ id }, env);
|
|
2341
2341
|
const row = result?.data?.data;
|
|
@@ -2418,7 +2418,7 @@ var meetingMinuteWriteContent = {
|
|
|
2418
2418
|
} else {
|
|
2419
2419
|
statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
|
|
2420
2420
|
}
|
|
2421
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2421
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
2422
2422
|
const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
|
|
2423
2423
|
const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
|
|
2424
2424
|
const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
|
|
@@ -2434,8 +2434,8 @@ var meetingMinuteWriteContent = {
|
|
|
2434
2434
|
let minuteDoc = null;
|
|
2435
2435
|
if (args.with_doc !== false) {
|
|
2436
2436
|
try {
|
|
2437
|
-
const { buildMinuteDocx } = await import("./minute-doc-
|
|
2438
|
-
const { meetingStateDir: meetingStateDir2 } = await import("./env-
|
|
2437
|
+
const { buildMinuteDocx } = await import("./minute-doc-3DHMYMBE.js");
|
|
2438
|
+
const { meetingStateDir: meetingStateDir2 } = await import("./env-7EGXNZR2.js");
|
|
2439
2439
|
const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
|
|
2440
2440
|
const { join: join3 } = await import("node:path");
|
|
2441
2441
|
const subject = textOf(after.mt_minutes_subject).trim() || `\u4F1A\u8BAE\u7EAA\u8981-${mtId}`;
|
|
@@ -2472,7 +2472,7 @@ var meetingMinuteWriteContent = {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
if (args.with_doc !== false) {
|
|
2474
2474
|
try {
|
|
2475
|
-
const { ensureMinuteDoc } = await import("./minute-doc-
|
|
2475
|
+
const { ensureMinuteDoc } = await import("./minute-doc-3DHMYMBE.js");
|
|
2476
2476
|
const better = await ensureMinuteDoc(env, {
|
|
2477
2477
|
id,
|
|
2478
2478
|
mtId,
|
|
@@ -2843,7 +2843,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2843
2843
|
const mtId = textOf2(args.mt_id).trim();
|
|
2844
2844
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
2845
2845
|
const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
|
|
2846
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2846
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
2847
2847
|
const ctx = env.ctx;
|
|
2848
2848
|
let stepStart = Date.now();
|
|
2849
2849
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
@@ -2937,7 +2937,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2937
2937
|
try {
|
|
2938
2938
|
const { readFile: readFile4 } = await import("node:fs/promises");
|
|
2939
2939
|
const buffer = await readFile4(file);
|
|
2940
|
-
const { extractText } = await import("./attachment-content-
|
|
2940
|
+
const { extractText } = await import("./attachment-content-QUM27QNB.js");
|
|
2941
2941
|
const extracted = extractText(buffer, file, "");
|
|
2942
2942
|
if (extracted.text.trim()) {
|
|
2943
2943
|
extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
|
|
@@ -3112,8 +3112,8 @@ ${groupTranscript}` : ""
|
|
|
3112
3112
|
if (args.with_doc !== false) {
|
|
3113
3113
|
const docStarted = Date.now();
|
|
3114
3114
|
try {
|
|
3115
|
-
const { buildMinuteDocx } = await import("./minute-doc-
|
|
3116
|
-
const { meetingStateDir: meetingStateDir2 } = await import("./env-
|
|
3115
|
+
const { buildMinuteDocx } = await import("./minute-doc-3DHMYMBE.js");
|
|
3116
|
+
const { meetingStateDir: meetingStateDir2 } = await import("./env-7EGXNZR2.js");
|
|
3117
3117
|
const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
|
|
3118
3118
|
const { join: join3 } = await import("node:path");
|
|
3119
3119
|
const body = textOf2(row.parse_content) || textOf2(row.minutes_content) || transcript;
|
|
@@ -3300,7 +3300,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3300
3300
|
const warnings = [];
|
|
3301
3301
|
const mtId = textOf3(args.mt_id).trim();
|
|
3302
3302
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
3303
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3303
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
3304
3304
|
const ctx = env.ctx;
|
|
3305
3305
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
3306
3306
|
{ mt_id: mtId, pageNo: 1, pageSize: 1 },
|
|
@@ -3602,7 +3602,7 @@ var meetingPipelineRun = {
|
|
|
3602
3602
|
const needsConfirm = level === "tasks" || level === "notify";
|
|
3603
3603
|
const confirmed = args.confirm === true;
|
|
3604
3604
|
const executedLevel = needsConfirm && !confirmed ? "document" : level;
|
|
3605
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3605
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
3606
3606
|
const ctx = env.ctx;
|
|
3607
3607
|
let stepStart = Date.now();
|
|
3608
3608
|
const reuseMinuteId = textOf4(args.minuteId).trim();
|
|
@@ -3974,7 +3974,7 @@ function formatTimeRange(start, end) {
|
|
|
3974
3974
|
}
|
|
3975
3975
|
async function loadAgendaFromTopics(env, mtId) {
|
|
3976
3976
|
try {
|
|
3977
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3977
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
3978
3978
|
const operation = getMeetingOperation2("meeting.eb.topic.list");
|
|
3979
3979
|
const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
|
|
3980
3980
|
const rows = result.data?.rows ?? [];
|
|
@@ -4125,7 +4125,7 @@ async function supplementRowFromDetail(row, mtId, env) {
|
|
|
4125
4125
|
const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
|
|
4126
4126
|
if (missing.length === 0) return { row, filled: [] };
|
|
4127
4127
|
try {
|
|
4128
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4128
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
4129
4129
|
const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
4130
4130
|
const result = await detailOperation.handler({ id: mtId }, env);
|
|
4131
4131
|
const flat = result?.data?.data ?? result?.data ?? {};
|
|
@@ -4299,7 +4299,7 @@ var meetingInvitationRender = {
|
|
|
4299
4299
|
};
|
|
4300
4300
|
dataSource = "payload";
|
|
4301
4301
|
} else {
|
|
4302
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4302
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
4303
4303
|
const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
|
|
4304
4304
|
try {
|
|
4305
4305
|
const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
|
|
@@ -4643,7 +4643,7 @@ var meetingInvitationPublish = {
|
|
|
4643
4643
|
"\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"
|
|
4644
4644
|
);
|
|
4645
4645
|
}
|
|
4646
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4646
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
4647
4647
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
4648
4648
|
const rendered = await render.handler(
|
|
4649
4649
|
{
|
|
@@ -5358,7 +5358,7 @@ var meetingSummaryGet = {
|
|
|
5358
5358
|
const mtId = textOf5(args.mt_id).trim();
|
|
5359
5359
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
5360
5360
|
const ctx = env.ctx;
|
|
5361
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5361
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
5362
5362
|
const warnings = [];
|
|
5363
5363
|
const timings = {};
|
|
5364
5364
|
const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
|
|
@@ -5679,7 +5679,7 @@ var MT_STATUS_OVER = "8";
|
|
|
5679
5679
|
var CANCELLED_MARK_DELAY_MS = 800;
|
|
5680
5680
|
async function isCancelledMeeting(env, mtId) {
|
|
5681
5681
|
try {
|
|
5682
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5682
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
5683
5683
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
5684
5684
|
// withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
|
|
5685
5685
|
{ mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
|
|
@@ -5724,7 +5724,7 @@ async function resolveDecisionPeople(env, input, ownerId) {
|
|
|
5724
5724
|
}
|
|
5725
5725
|
let nameToId = /* @__PURE__ */ new Map();
|
|
5726
5726
|
if (nameTokens.size > 0) {
|
|
5727
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
5727
|
+
const { resolveMemberIdsByName } = await import("./schedule-ZAYMZKTQ.js");
|
|
5728
5728
|
nameToId = await resolveMemberIdsByName(env, [...nameTokens]).catch(() => /* @__PURE__ */ new Map());
|
|
5729
5729
|
}
|
|
5730
5730
|
const unresolved = [];
|
|
@@ -6768,7 +6768,7 @@ var deleteMany = {
|
|
|
6768
6768
|
if (args.confirm !== true) {
|
|
6769
6769
|
throw meetingValidationError("confirmation_required", "\u6279\u91CF\u5220\u9664\u4E0D\u53EF\u6062\u590D\uFF0C\u5FC5\u987B\u4F20 confirm=true");
|
|
6770
6770
|
}
|
|
6771
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6771
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
6772
6772
|
const listOp = getMeetingOperation2("meeting.eb.decisionTask.list");
|
|
6773
6773
|
const prepareOp = getMeetingOperation2("meeting.eb.decisionTask.delete.prepare");
|
|
6774
6774
|
const applyOp = getMeetingOperation2("meeting.eb.decisionTask.delete.apply");
|
|
@@ -6903,7 +6903,7 @@ var reassign = {
|
|
|
6903
6903
|
},
|
|
6904
6904
|
handler: async (args, env) => {
|
|
6905
6905
|
if (args.confirm === false) throw meetingValidationError("confirmation_required", "confirm=false\uFF0C\u672A\u6267\u884C");
|
|
6906
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6906
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
6907
6907
|
const mtId = String(args.mt_id ?? "").trim();
|
|
6908
6908
|
const target = await resolveEmployeeId(env, String(args.to_executor ?? ""));
|
|
6909
6909
|
const from = String(args.from_executor ?? "").trim();
|
|
@@ -7202,7 +7202,7 @@ var formLink = {
|
|
|
7202
7202
|
pushValue("crm_members", "##" + first.id);
|
|
7203
7203
|
} else {
|
|
7204
7204
|
try {
|
|
7205
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7205
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
7206
7206
|
const search = getMeetingOperation2("meeting.eb.crm.search");
|
|
7207
7207
|
const found = await search.handler({ keyword: first.name, pageSize: 10 }, env);
|
|
7208
7208
|
const rows = found?.data?.items ?? [];
|
|
@@ -7357,7 +7357,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
|
|
|
7357
7357
|
const mtId = String(context.dataIds?.[0] ?? "").trim();
|
|
7358
7358
|
if (!isCreate || !enabled || !mtId) return association;
|
|
7359
7359
|
try {
|
|
7360
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7360
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
7361
7361
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
7362
7362
|
const result = await render.handler({ mtId }, context.env);
|
|
7363
7363
|
return { ...association ?? {}, invitation: result?.data ?? null };
|
|
@@ -7393,7 +7393,7 @@ var ebOperationsWithLinks = ebBaseOperations.map((operation) => {
|
|
|
7393
7393
|
const raw = String(args.member).trim();
|
|
7394
7394
|
let uid = /^\d+$/.test(raw) ? raw : "";
|
|
7395
7395
|
if (!uid) {
|
|
7396
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
7396
|
+
const { resolveMemberIdsByName } = await import("./schedule-ZAYMZKTQ.js");
|
|
7397
7397
|
const map = await resolveMemberIdsByName(env, [raw]).catch(() => /* @__PURE__ */ new Map());
|
|
7398
7398
|
uid = String(map.get(raw) ?? "");
|
|
7399
7399
|
}
|
|
@@ -7432,7 +7432,7 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
|
|
|
7432
7432
|
if (!String(nextArgs.mt_minutes_subject ?? "").trim() && nextArgs.mt_id) {
|
|
7433
7433
|
let meetingName = "";
|
|
7434
7434
|
try {
|
|
7435
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7435
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
7436
7436
|
const detailOp = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
7437
7437
|
const detail = await detailOp.handler({ id: String(nextArgs.mt_id) }, env);
|
|
7438
7438
|
const row = detail?.data?.data ?? {};
|
|
@@ -7452,8 +7452,8 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
|
|
|
7452
7452
|
handler: async (args, env) => {
|
|
7453
7453
|
const result = await operation.handler(args, env);
|
|
7454
7454
|
try {
|
|
7455
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7456
|
-
const { ensureMinuteDoc } = await import("./minute-doc-
|
|
7455
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
7456
|
+
const { ensureMinuteDoc } = await import("./minute-doc-3DHMYMBE.js");
|
|
7457
7457
|
const minuteId = String((result?.data?.dataIds ?? [])[0] ?? "").trim();
|
|
7458
7458
|
if (minuteId) {
|
|
7459
7459
|
const detail = await getMeetingOperation2("meeting.eb.minute.detail").handler({ id: minuteId }, env);
|
|
@@ -7577,7 +7577,7 @@ var composeOutcome = {
|
|
|
7577
7577
|
if (args.confirm === false) {
|
|
7578
7578
|
throw meetingValidationError("confirmation_required", "\u4F20\u4E86 confirm=false\uFF0C\u5DF2\u963B\u6B62\u5199\u5165");
|
|
7579
7579
|
}
|
|
7580
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7580
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XXFMYPBM.js");
|
|
7581
7581
|
let mtId = String(args.mt_id ?? "").trim();
|
|
7582
7582
|
if (!mtId) {
|
|
7583
7583
|
const listOp2 = getMeetingOperation2("meeting.eb.meeting.list");
|
|
@@ -2,11 +2,11 @@ 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-E3OQSNF5.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JDZOYHAL.js";
|
|
10
10
|
|
|
11
11
|
// src/shortcuts/meeting/operations/eb/entry-mode.ts
|
|
12
12
|
import { join, dirname } from "node:path";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-WMRNO6IU.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingStateDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E3OQSNF5.js";
|
|
9
9
|
import {
|
|
10
10
|
SCHEMA_ID,
|
|
11
11
|
meetingSuccess,
|
|
12
12
|
meetingValidationError,
|
|
13
13
|
schemaOf
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JDZOYHAL.js";
|
|
15
15
|
|
|
16
16
|
// src/shortcuts/meeting/operations/attachment-content.ts
|
|
17
17
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -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-ZV3TYANI.js";
|
|
7
7
|
import {
|
|
8
8
|
SCHEMA_DATETIME_MINUTE,
|
|
9
9
|
meetingSuccess,
|
|
10
10
|
meetingValidationError,
|
|
11
11
|
schemaOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JDZOYHAL.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";
|
|
@@ -10291,6 +10291,7 @@ var COLLECT_ORDER_KEYS = ["sort"];
|
|
|
10291
10291
|
var ALLOWED_INPUT_KEYS = [
|
|
10292
10292
|
"stage",
|
|
10293
10293
|
"outputMode",
|
|
10294
|
+
"includeCategoryCounts",
|
|
10294
10295
|
"items",
|
|
10295
10296
|
"aiGroups",
|
|
10296
10297
|
"aiSummaries",
|
|
@@ -10547,6 +10548,9 @@ function rowFromAny(raw, extraFields) {
|
|
|
10547
10548
|
return result;
|
|
10548
10549
|
}
|
|
10549
10550
|
function assertKnownKeys(args) {
|
|
10551
|
+
if (args.includeCategoryCounts !== void 0 && typeof args.includeCategoryCounts !== "boolean") {
|
|
10552
|
+
throw workflowValidationError("input_invalid", "includeCategoryCounts \u5FC5\u987B\u662F\u5E03\u5C14\u503C");
|
|
10553
|
+
}
|
|
10550
10554
|
const known = [...ALLOWED_INPUT_KEYS, ...RESUME_INPUT_KEYS];
|
|
10551
10555
|
const unknown = Object.keys(args).filter((key) => !known.includes(key));
|
|
10552
10556
|
if (unknown.length > 0) {
|
|
@@ -11808,6 +11812,58 @@ function projectDisplayRows(response, extraFields) {
|
|
|
11808
11812
|
return projected;
|
|
11809
11813
|
}
|
|
11810
11814
|
|
|
11815
|
+
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.categoryCounts.ts
|
|
11816
|
+
import { isDeepStrictEqual } from "node:util";
|
|
11817
|
+
var CATEGORY_TABS = ["0", "7", "5", "8", "6", "1"];
|
|
11818
|
+
function recordOf(value) {
|
|
11819
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
11820
|
+
}
|
|
11821
|
+
function readTodoCategoryTotal(response) {
|
|
11822
|
+
const outer = recordOf(response);
|
|
11823
|
+
const data = recordOf(responseData(response));
|
|
11824
|
+
const nested = recordOf(data.data);
|
|
11825
|
+
if ([outer, data, nested].some((part) => part.status === false || part.success === false || part.fail === true)) return null;
|
|
11826
|
+
for (const candidate of [data.total, data.count, data.totalCount, nested.total, nested.totalCount]) {
|
|
11827
|
+
if (candidate === void 0 || candidate === null || candidate === "") continue;
|
|
11828
|
+
if (typeof candidate !== "number" && typeof candidate !== "string") return null;
|
|
11829
|
+
if (typeof candidate === "string" && !candidate.trim()) return null;
|
|
11830
|
+
const total = extractTotal({ total: candidate });
|
|
11831
|
+
if (total !== null) return Number.isSafeInteger(total) && total >= 0 ? total : null;
|
|
11832
|
+
}
|
|
11833
|
+
return null;
|
|
11834
|
+
}
|
|
11835
|
+
function withoutPagination(query) {
|
|
11836
|
+
const body = structuredClone(query);
|
|
11837
|
+
for (const key of ["customDisplayPage", "current", "pageSize"]) delete body[key];
|
|
11838
|
+
return body;
|
|
11839
|
+
}
|
|
11840
|
+
async function collectTodoCategoryCounts(env, listQuery, knownTotals = []) {
|
|
11841
|
+
const body = withoutPagination(listQuery);
|
|
11842
|
+
body.params = { ...recordOf(body.params) };
|
|
11843
|
+
const params = recordOf(body.params);
|
|
11844
|
+
delete params.flowSpareType;
|
|
11845
|
+
const counts = {};
|
|
11846
|
+
const currentTab = String(params.tabid ?? "");
|
|
11847
|
+
const known = knownTotals.find((item) => Number.isSafeInteger(item.total) && item.total >= 0 && isDeepStrictEqual(body, withoutPagination(item.body)));
|
|
11848
|
+
if (known && CATEGORY_TABS.some((tab) => tab === currentTab)) counts[currentTab] = known.total;
|
|
11849
|
+
if (currentTab === "0" && counts["0"] === 0) return Object.fromEntries(CATEGORY_TABS.map((tab) => [tab, 0]));
|
|
11850
|
+
const results = await Promise.allSettled(CATEGORY_TABS.filter((tab) => counts[tab] === void 0).map(async (tab) => {
|
|
11851
|
+
const categoryBody = structuredClone(body);
|
|
11852
|
+
categoryBody.params = { ...params, tabid: tab };
|
|
11853
|
+
const response = await env.host.workflowRequest({
|
|
11854
|
+
method: "POST",
|
|
11855
|
+
path: WORKFLOW_ENDPOINTS.TODO_TOTAL,
|
|
11856
|
+
operation: "workflow.todoSmartConvert.categoryCounts",
|
|
11857
|
+
body: categoryBody
|
|
11858
|
+
});
|
|
11859
|
+
return { tab, total: readTodoCategoryTotal(response) };
|
|
11860
|
+
}));
|
|
11861
|
+
for (const result of results) {
|
|
11862
|
+
if (result.status === "fulfilled" && result.value.total !== null) counts[result.value.tab] = result.value.total;
|
|
11863
|
+
}
|
|
11864
|
+
return counts;
|
|
11865
|
+
}
|
|
11866
|
+
|
|
11811
11867
|
// src/shortcuts/workflow/operations/todoSmartConvert/todoDetailCache.ts
|
|
11812
11868
|
var DETAIL_CACHE_FILE_NAME = "todo-detail-cache.json";
|
|
11813
11869
|
var DETAIL_CACHE_TTL_MS = SUMMARY_CACHE_TTL_MS;
|
|
@@ -12854,6 +12910,7 @@ async function collectRawTodos(args, env) {
|
|
|
12854
12910
|
const fmt = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
|
|
12855
12911
|
return `${fmt(start)} ${fmt(end)}`;
|
|
12856
12912
|
};
|
|
12913
|
+
const knownTotals = [];
|
|
12857
12914
|
const probeTodoTotal = async () => {
|
|
12858
12915
|
const { query } = await buildSearchQuery(
|
|
12859
12916
|
listEnv,
|
|
@@ -12872,6 +12929,10 @@ async function collectRawTodos(args, env) {
|
|
|
12872
12929
|
operation: "workflow.todoSmartConvert.total",
|
|
12873
12930
|
body: totalBody
|
|
12874
12931
|
});
|
|
12932
|
+
if (args.includeCategoryCounts === true) {
|
|
12933
|
+
const categoryTotal = readTodoCategoryTotal(response);
|
|
12934
|
+
if (categoryTotal !== null) knownTotals.push({ body: totalBody, total: categoryTotal });
|
|
12935
|
+
}
|
|
12875
12936
|
return extractTotal(response);
|
|
12876
12937
|
} catch {
|
|
12877
12938
|
return null;
|
|
@@ -12931,6 +12992,7 @@ async function collectRawTodos(args, env) {
|
|
|
12931
12992
|
let totalAvailable = null;
|
|
12932
12993
|
let pages = 0;
|
|
12933
12994
|
let stoppedEarly = false;
|
|
12995
|
+
let listQuery;
|
|
12934
12996
|
for (let pageNo = 1; limit === null || (policy.strictLimit ? items.length < limit : pageNo <= (plannedPages ?? 0)); pageNo += 1) {
|
|
12935
12997
|
const { query, warnings: buildWarnings } = await buildSearchQuery(
|
|
12936
12998
|
listEnv,
|
|
@@ -12945,6 +13007,7 @@ async function collectRawTodos(args, env) {
|
|
|
12945
13007
|
if (isremarks !== "") {
|
|
12946
13008
|
query.params = { ...query.params || {}, isremarks };
|
|
12947
13009
|
}
|
|
13010
|
+
if (category === "todo" && !listQuery) listQuery = structuredClone(query);
|
|
12948
13011
|
if (process.env.WEAVER_WORK_CLI_DUMP_LIST_BODY) {
|
|
12949
13012
|
try {
|
|
12950
13013
|
writeFileSync(
|
|
@@ -13200,10 +13263,13 @@ async function collectRawTodos(args, env) {
|
|
|
13200
13263
|
);
|
|
13201
13264
|
}
|
|
13202
13265
|
}
|
|
13266
|
+
const categoryCounts = args.includeCategoryCounts === true && category === "todo" && listQuery ? await collectTodoCategoryCounts(env, listQuery, knownTotals) : void 0;
|
|
13203
13267
|
return {
|
|
13204
13268
|
stage: "collect",
|
|
13205
13269
|
query: {
|
|
13206
13270
|
category,
|
|
13271
|
+
...listQuery ? { listQuery } : {},
|
|
13272
|
+
...categoryCounts ? { categoryCounts } : {},
|
|
13207
13273
|
...policy.outputMode ? { outputMode: policy.outputMode } : {},
|
|
13208
13274
|
...scope ? { tabid: searchArgs.tabid } : {},
|
|
13209
13275
|
/** 本次有效条数上限;历史未指定模式和 limit 时为 null。 */
|
|
@@ -13252,7 +13318,7 @@ async function collectRawTodos(args, env) {
|
|
|
13252
13318
|
}
|
|
13253
13319
|
|
|
13254
13320
|
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.ts
|
|
13255
|
-
function
|
|
13321
|
+
function recordOf2(value) {
|
|
13256
13322
|
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
13257
13323
|
}
|
|
13258
13324
|
function idOf(value) {
|
|
@@ -13260,9 +13326,9 @@ function idOf(value) {
|
|
|
13260
13326
|
return typeof value === "number" && Number.isSafeInteger(value) ? String(value) : "";
|
|
13261
13327
|
}
|
|
13262
13328
|
function successfulData(response) {
|
|
13263
|
-
const outer =
|
|
13264
|
-
const data =
|
|
13265
|
-
const nested =
|
|
13329
|
+
const outer = recordOf2(response);
|
|
13330
|
+
const data = recordOf2(responseData(response));
|
|
13331
|
+
const nested = recordOf2(data.data);
|
|
13266
13332
|
const failed = [outer, data, nested].find((part) => part.status === false || part.success === false || part.fail === true);
|
|
13267
13333
|
if (failed) {
|
|
13268
13334
|
const code = failed.code ?? outer.code;
|
|
@@ -13274,7 +13340,7 @@ function successfulData(response) {
|
|
|
13274
13340
|
}
|
|
13275
13341
|
function displayRows(response) {
|
|
13276
13342
|
const data = successfulData(response);
|
|
13277
|
-
const nested =
|
|
13343
|
+
const nested = recordOf2(data.data);
|
|
13278
13344
|
const rows = nested.displayData ?? data.displayData;
|
|
13279
13345
|
if (!Array.isArray(rows) || rows.some((row) => row === null || typeof row !== "object" || Array.isArray(row))) {
|
|
13280
13346
|
throw workflowApiError("unexpected_response", "\u5F85\u529E\u5217\u8868\u8FD4\u56DE\u7ED3\u6784\u5F02\u5E38\uFF0C\u672A\u751F\u6210\u5206\u5E03\u7EDF\u8BA1");
|
|
@@ -13323,11 +13389,11 @@ async function prepareTodoQuery(args, env) {
|
|
|
13323
13389
|
if (!(error instanceof WorkflowCliError) || error.type === "permission" || error.type === "authorization" || error.code === 401 || error.code === 403 || error.code === "401" || error.code === "403") throw error;
|
|
13324
13390
|
}
|
|
13325
13391
|
const selectedNames = /* @__PURE__ */ new Map();
|
|
13326
|
-
const workflowConditions =
|
|
13392
|
+
const workflowConditions = recordOf2(recordOf2(listQuery.searchParams).formDatas).workflowid;
|
|
13327
13393
|
for (const condition of Array.isArray(workflowConditions) ? workflowConditions : []) {
|
|
13328
|
-
const browserDatas =
|
|
13394
|
+
const browserDatas = recordOf2(condition).browserDatas;
|
|
13329
13395
|
for (const item of Array.isArray(browserDatas) ? browserDatas : []) {
|
|
13330
|
-
const entry =
|
|
13396
|
+
const entry = recordOf2(item);
|
|
13331
13397
|
const id = idOf(entry.id);
|
|
13332
13398
|
if (id && typeof entry.name === "string" && entry.name.trim()) selectedNames.set(id, entry.name.trim());
|
|
13333
13399
|
}
|
|
@@ -13373,6 +13439,7 @@ async function prepareTodoQuery(args, env) {
|
|
|
13373
13439
|
}
|
|
13374
13440
|
const complete = total !== null && seen.size === total && !unreadRows;
|
|
13375
13441
|
const sort = typeof searchArgs.sort === "string" ? searchArgs.sort.trim() : "";
|
|
13442
|
+
const categoryCounts = args.includeCategoryCounts === true && category === "todo" ? await collectTodoCategoryCounts(env, listQuery, total === null ? [] : [{ body: totalBody, total }]) : void 0;
|
|
13376
13443
|
return {
|
|
13377
13444
|
stage: "prepareQuery",
|
|
13378
13445
|
query: {
|
|
@@ -13381,6 +13448,7 @@ async function prepareTodoQuery(args, env) {
|
|
|
13381
13448
|
totalAvailable: total,
|
|
13382
13449
|
filters: Object.fromEntries(Object.entries(searchArgs).filter(([key]) => !["category", "tabid", "sort"].includes(key))),
|
|
13383
13450
|
listQuery,
|
|
13451
|
+
...categoryCounts ? { categoryCounts } : {},
|
|
13384
13452
|
...sort ? { sort } : {}
|
|
13385
13453
|
},
|
|
13386
13454
|
totalCount: total,
|
|
@@ -13392,7 +13460,7 @@ async function prepareTodoQuery(args, env) {
|
|
|
13392
13460
|
|
|
13393
13461
|
// src/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.ts
|
|
13394
13462
|
var COUNT_CONCURRENCY = 4;
|
|
13395
|
-
function
|
|
13463
|
+
function recordOf3(value) {
|
|
13396
13464
|
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
13397
13465
|
}
|
|
13398
13466
|
function textOf(value) {
|
|
@@ -13435,7 +13503,7 @@ async function buildCandidateQuery(candidate, args, env) {
|
|
|
13435
13503
|
workflowTerm: "in"
|
|
13436
13504
|
}, "total");
|
|
13437
13505
|
const isremarks = textOf(args.isremarks) || generalRules()?.identityFilter?.defaultIsremarks?.trim() || "";
|
|
13438
|
-
if (isremarks) query.params = { ...
|
|
13506
|
+
if (isremarks) query.params = { ...recordOf3(query.params), isremarks };
|
|
13439
13507
|
return { candidate, body: query };
|
|
13440
13508
|
} catch (error) {
|
|
13441
13509
|
rethrowRequiredError(error);
|
|
@@ -13454,7 +13522,7 @@ async function loadWorkflowTypes(queries, env) {
|
|
|
13454
13522
|
}
|
|
13455
13523
|
async function fetchWorkflowMetadata(query, env) {
|
|
13456
13524
|
try {
|
|
13457
|
-
const params = { ...
|
|
13525
|
+
const params = { ...recordOf3(query.params) };
|
|
13458
13526
|
delete params.workflowId;
|
|
13459
13527
|
delete params.searchAdWorkflowid;
|
|
13460
13528
|
const flowCenterParam = query.flowCenterParam ?? params.flowCenterParam;
|
|
@@ -13465,13 +13533,13 @@ async function fetchWorkflowMetadata(query, env) {
|
|
|
13465
13533
|
operation: "workflow.todoSmartConvert.workflowMetadata",
|
|
13466
13534
|
body
|
|
13467
13535
|
});
|
|
13468
|
-
const data =
|
|
13536
|
+
const data = recordOf3(responseData(response));
|
|
13469
13537
|
const roots = Array.isArray(data.data) ? data.data : [];
|
|
13470
13538
|
const metadata = /* @__PURE__ */ new Map();
|
|
13471
13539
|
const conflicts = /* @__PURE__ */ new Set();
|
|
13472
13540
|
const visit = (nodes, parentType) => {
|
|
13473
13541
|
for (const value of nodes) {
|
|
13474
|
-
const node =
|
|
13542
|
+
const node = recordOf3(value);
|
|
13475
13543
|
const nodeId = textOf(node.id);
|
|
13476
13544
|
const name = textOf(node.content) || textOf(node.title);
|
|
13477
13545
|
const type = /^p?type_?-?\d+$/u.test(nodeId) && name ? name : parentType;
|
|
@@ -13514,11 +13582,11 @@ async function loadCandidateCount(query, env) {
|
|
|
13514
13582
|
async function enrichWorkflowClarification(error, args, env) {
|
|
13515
13583
|
if (args.category !== void 0 && args.category !== "todo") return error;
|
|
13516
13584
|
if (!(error instanceof WorkflowCliError) || error.subtype !== CLARIFICATION_SUBTYPE) return error;
|
|
13517
|
-
const details =
|
|
13585
|
+
const details = recordOf3(error.details);
|
|
13518
13586
|
if (details.clarificationType !== "workflow" || !Array.isArray(details.candidates)) return error;
|
|
13519
13587
|
const candidates = [];
|
|
13520
13588
|
for (const value of details.candidates) {
|
|
13521
|
-
const source =
|
|
13589
|
+
const source = recordOf3(value);
|
|
13522
13590
|
const id = textOf(source.id);
|
|
13523
13591
|
const name = textOf(source.name);
|
|
13524
13592
|
if (!/^\d+$/u.test(id) || !name) return error;
|
|
@@ -15154,6 +15222,11 @@ async function runSmartGroupAdd(args, env) {
|
|
|
15154
15222
|
|
|
15155
15223
|
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.ts
|
|
15156
15224
|
var inputSchema = schemaOf({
|
|
15225
|
+
includeCategoryCounts: {
|
|
15226
|
+
type: "boolean",
|
|
15227
|
+
default: false,
|
|
15228
|
+
description: "\u4EC5\u5F85\u529EprepareQuery\uFF0Fcollect\uFF1A\u6309\u6700\u7EC8\u5206\u7C7B\u94FE\u63A5\u6761\u4EF6\u5E76\u884C\u8BFB\u53D6\u5168\u90E8\u3001\u5F85\u5904\u7406\u3001\u5F85\u9605\u3001\u88AB\u9000\u56DE\u3001\u8D85\u65F6\u3001\u672A\u8BFB\u603B\u6570\uFF1B\u590D\u7528\u540C\u6761\u4EF6\u5DF2\u6709\u603B\u6570\uFF0C\u5931\u8D25\u9879\u4FDD\u6301\u672A\u77E5\u3002\u9ED8\u8BA4\u4E0D\u989D\u5916\u7EDF\u8BA1\u3002"
|
|
15229
|
+
},
|
|
15157
15230
|
outputMode: {
|
|
15158
15231
|
type: "string",
|
|
15159
15232
|
enum: [...OUTPUT_MODE_VALUES],
|
|
@@ -2335,7 +2335,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
|
|
|
2335
2335
|
);
|
|
2336
2336
|
}
|
|
2337
2337
|
if (endpoint.interfacePk === "create_meeting") {
|
|
2338
|
-
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-
|
|
2338
|
+
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-76ZUL3E7.js");
|
|
2339
2339
|
assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
|
|
2340
2340
|
}
|
|
2341
2341
|
const pkQuery = writePkQuery(endpoint, payload);
|