weaver-work-cli 0.1.64 → 0.1.66
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-NRBGS5XG.js} +3 -3
- package/dist/chunks/{chunk-RMOH2GMF.js → chunk-2BAZJCG7.js} +2 -2
- package/dist/chunks/{chunk-SHX7XBYR.js → chunk-4WCVRDC5.js} +83 -33
- package/dist/chunks/{chunk-KDFEHDIB.js → chunk-5FQT7GSN.js} +2 -2
- package/dist/chunks/{chunk-3PCXBG4H.js → chunk-AAOYOPHW.js} +1 -1
- package/dist/chunks/{chunk-5QQKLR6H.js → chunk-BZ6HAY2U.js} +7 -7
- package/dist/chunks/{chunk-I3MOFD6Q.js → chunk-EYEJW5SG.js} +4 -4
- package/dist/chunks/{chunk-SCMHG23G.js → chunk-GOZ75GHU.js} +38 -38
- package/dist/chunks/{chunk-4AFWOGOV.js → chunk-M7IEDTRI.js} +1 -1
- package/dist/chunks/{chunk-XHSEK2VM.js → chunk-NNXZMBIB.js} +6 -6
- package/dist/chunks/{chunk-K7QKQRSL.js → chunk-NP3ZZFGI.js} +24 -24
- package/dist/chunks/{chunk-INVYKG4I.js → chunk-SAADVUK6.js} +32 -32
- package/dist/chunks/{chunk-YTFNMQO4.js → chunk-VWQGF3KW.js} +103 -19
- package/dist/chunks/{chunk-AGSO3PIK.js → chunk-YFX5JKOY.js} +2 -2
- package/dist/chunks/{chunk-KYDXWYFB.js → chunk-YT73QQMS.js} +1 -1
- package/dist/chunks/{conflict-UUC7AFUI.js → conflict-LJYKIUJM.js} +2 -2
- package/dist/chunks/{contract-INMS7SYQ.js → contract-N5WNHKHI.js} +94 -30
- package/dist/chunks/{create-flow-YOR4QTAJ.js → create-flow-75MCKXGI.js} +6 -6
- package/dist/chunks/{entry-mode-S2ENJ6GZ.js → entry-mode-3PI6A7JD.js} +3 -3
- package/dist/chunks/{env-ZSAXU5PJ.js → env-FI62FOKK.js} +2 -2
- package/dist/chunks/{factory-N76QQA53.js → factory-HLS4SDQM.js} +1 -1
- package/dist/chunks/{group-chat-UM665WDZ.js → group-chat-MFBVOLKY.js} +3 -3
- package/dist/chunks/{lazy-dispatch-4WOIL3ZQ.js → lazy-dispatch-K25LTKQY.js} +2 -2
- package/dist/chunks/{meeting-MMTYDHXA.js → meeting-ROWDB3DO.js} +11 -11
- package/dist/chunks/{minute-doc-LCSBWGJ3.js → minute-doc-ABMO2UDX.js} +2 -2
- package/dist/chunks/{registry-BAWCWV4D.js → registry-NLAO2W6T.js} +2 -2
- package/dist/chunks/{registry-FNI5E76J.js → registry-QV6IPRVM.js} +11 -11
- package/dist/chunks/{room-recommend-I7QQRHEL.js → room-recommend-P54PQTCN.js} +4 -4
- package/dist/chunks/{schedule-3P7EWGNZ.js → schedule-BEBFGMT6.js} +4 -4
- package/dist/chunks/{smart-extract-FOBSVNYW.js → smart-extract-DEBLJPCQ.js} +11 -11
- package/dist/chunks/{workflow-U2KKTVQY.js → workflow-LBFFZZN2.js} +2 -2
- package/dist/cmd/refs/index.js +24 -23
- package/dist/core/output.js +134 -41
- package/dist/index.js +7 -7
- package/dist/shortcuts/contract/manifest.js +11 -4
- package/dist/shortcuts/contract/operations/first-screen.js +41 -19
- package/dist/shortcuts/contract/operations/flow.js +2 -0
- package/dist/shortcuts/contract/operations/ledger.js +58 -8
- package/dist/shortcuts/contract/operations/quote-recognize.js +31 -9
- package/dist/shortcuts/contract/operations/quote-submit.js +4 -1
- package/dist/shortcuts/contract/operations/upload.js +21 -1
- package/dist/shortcuts/contract/upload-cache.js +2 -2
- package/dist/shortcuts/smart-extract/operations/fill.js +14 -14
- package/dist/shortcuts/workflow/index.js +2 -2
- package/dist/shortcuts/workflow/operations/form.js +28 -4
- 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/docs/agent-io-channel-design.md +21 -10
- package/docs/smart-extract.md +1 -1
- package/docs/todo-smart-convert/data-contract.md +1 -1
- package/package.json +1 -1
- package/skills/weaver-e10-jinchengda/SKILL.md +67 -31
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +18 -18
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +6 -6
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +3 -3
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +6 -6
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +7 -7
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +9 -9
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +3 -3
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +11 -11
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +18 -18
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -15
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +51 -28
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +6 -6
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +20 -9
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +18 -18
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +9 -9
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +42 -30
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +8 -8
- package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +1 -1
- package/skills/weaver-e10-jinchengda/references/orchestration.md +2 -2
- package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +1 -1
- package/skills/weaver-e10-shared/references/json-output-contract.md +4 -3
- package/skills/weaver-e10-smart-extract/SKILL.md +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
|
@@ -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-NNXZMBIB.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-EYEJW5SG.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YT73QQMS.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-M7IEDTRI.js";
|
|
30
30
|
import {
|
|
31
31
|
CONTINUATION_TTL_MS,
|
|
32
32
|
CONTINUATION_TTL_SECONDS
|
|
@@ -194,7 +194,7 @@ async function meetingUrlMap(env, ids) {
|
|
|
194
194
|
const unique = [...new Set(ids.map((id) => String(id).trim()).filter((id) => id !== ""))];
|
|
195
195
|
if (unique.length === 0) return out;
|
|
196
196
|
try {
|
|
197
|
-
const { getMeetingOperation } = await import("./registry-
|
|
197
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
198
198
|
const link = getMeetingOperation("meeting.link");
|
|
199
199
|
const result = await link.handler({ type: "meeting", dataIds: unique }, env);
|
|
200
200
|
const rows = result?.data?.items ?? result?.data?.links ?? [];
|
|
@@ -338,7 +338,7 @@ function workflowEnv(env) {
|
|
|
338
338
|
async function loadCreateForm(env, workflowId) {
|
|
339
339
|
const { createWorkflowHost } = await import("./host-2ED2KC4X.js");
|
|
340
340
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
341
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
341
|
+
const { getWorkflowOperation } = await import("./registry-NLAO2W6T.js");
|
|
342
342
|
const wfEnv = {
|
|
343
343
|
...workflowEnv(env),
|
|
344
344
|
host: createWorkflowHost(env.ctx),
|
|
@@ -443,7 +443,7 @@ async function resolveAddressRoom(env, input) {
|
|
|
443
443
|
const text = String(input ?? "").trim();
|
|
444
444
|
if (!text) return null;
|
|
445
445
|
const ref = parseRoomRef(text);
|
|
446
|
-
const { loadRooms: loadRooms2 } = await import("./room-recommend-
|
|
446
|
+
const { loadRooms: loadRooms2 } = await import("./room-recommend-P54PQTCN.js");
|
|
447
447
|
let rooms = [];
|
|
448
448
|
try {
|
|
449
449
|
rooms = (await loadRooms2(env, {})).rooms;
|
|
@@ -474,7 +474,7 @@ async function resolveRoomValue(env, input) {
|
|
|
474
474
|
const ref = parseRoomRef(text);
|
|
475
475
|
if (ref.id) {
|
|
476
476
|
try {
|
|
477
|
-
const { getMeetingOperation } = await import("./registry-
|
|
477
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
478
478
|
const detail = await getMeetingOperation("meeting.eb.room.detail").handler({ id: ref.id }, env);
|
|
479
479
|
const main = detail?.data?.mainTable ?? detail?.data?.data?.mainTable ?? {};
|
|
480
480
|
const name = String(main.room_name ?? "").trim() || ref.name || "";
|
|
@@ -586,7 +586,7 @@ async function shapeBrowserValues(env, values, options = {}) {
|
|
|
586
586
|
const nameOnly = rows.filter((row) => row.id === "" && row.name !== "");
|
|
587
587
|
if (nameOnly.length > 0) {
|
|
588
588
|
try {
|
|
589
|
-
const { getMeetingOperation } = await import("./registry-
|
|
589
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
590
590
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
591
591
|
for (const row of nameOnly) {
|
|
592
592
|
const found = await search.handler({ keyword: row.name, limit: 5 }, env).catch(() => null);
|
|
@@ -787,7 +787,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
|
|
|
787
787
|
const missing = [];
|
|
788
788
|
if (entries.length > 0) {
|
|
789
789
|
try {
|
|
790
|
-
const { getMeetingOperation } = await import("./registry-
|
|
790
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
791
791
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
792
792
|
for (const entry of entries) {
|
|
793
793
|
if (entry.contacts.length > 0) continue;
|
|
@@ -1046,7 +1046,7 @@ function shouldAutoPickFlow(args) {
|
|
|
1046
1046
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
1047
1047
|
const started = Date.now();
|
|
1048
1048
|
try {
|
|
1049
|
-
const { buildImEnv } = await import("./group-chat-
|
|
1049
|
+
const { buildImEnv } = await import("./group-chat-MFBVOLKY.js");
|
|
1050
1050
|
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
1051
1051
|
const imEnv = await buildImEnv(env);
|
|
1052
1052
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
@@ -1171,7 +1171,7 @@ function needsCrmSelection(name, items) {
|
|
|
1171
1171
|
async function buildCrmSelection(args, env) {
|
|
1172
1172
|
const name = crmPendingNames(args.crm_members)[0];
|
|
1173
1173
|
if (!name) return null;
|
|
1174
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1174
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
1175
1175
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
1176
1176
|
const found = await search.handler({ keyword: name, limit: 10 }, env).catch(() => null);
|
|
1177
1177
|
const items = found?.data?.items ?? [];
|
|
@@ -1298,14 +1298,14 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1298
1298
|
let entryResolved = "";
|
|
1299
1299
|
const rawEntry = String(args.entryMode ?? "").trim();
|
|
1300
1300
|
if (rawEntry === "assist" || rawEntry === "direct_form") {
|
|
1301
|
-
const { verifyEntryToken } = await import("./entry-mode-
|
|
1301
|
+
const { verifyEntryToken } = await import("./entry-mode-3PI6A7JD.js");
|
|
1302
1302
|
const tokenOk = await verifyEntryToken(env, String(args.entryToken ?? ""), rawEntry).catch(() => false);
|
|
1303
1303
|
const decision = decideEntryMode({ declared: rawEntry, tokenOk });
|
|
1304
1304
|
if (decision.mode) entryResolved = decision.mode;
|
|
1305
1305
|
else env.__entryTokenMissing = 1;
|
|
1306
1306
|
}
|
|
1307
1307
|
if (!entryResolved && rawEntry === "") {
|
|
1308
|
-
const { readEntryChoice } = await import("./entry-mode-
|
|
1308
|
+
const { readEntryChoice } = await import("./entry-mode-3PI6A7JD.js");
|
|
1309
1309
|
const mark2 = await readEntryChoice(env).catch(() => null);
|
|
1310
1310
|
if (mark2?.choice) entryResolved = mark2.choice;
|
|
1311
1311
|
}
|
|
@@ -1317,7 +1317,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
if (entryResolved === "direct_form") {
|
|
1319
1319
|
env.__meetingTimings = { ...env.__meetingTimings, directDelegated: 1 };
|
|
1320
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1320
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
1321
1321
|
return getMeetingOperation("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
1322
1322
|
}
|
|
1323
1323
|
const beginRaw = String(args.begin_datetime ?? "").trim();
|
|
@@ -1330,7 +1330,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1330
1330
|
skipPreflight = true;
|
|
1331
1331
|
}
|
|
1332
1332
|
if (!entryResolved && args.skipPreflight !== true) {
|
|
1333
|
-
const { createEntryToken } = await import("./entry-mode-
|
|
1333
|
+
const { createEntryToken } = await import("./entry-mode-3PI6A7JD.js");
|
|
1334
1334
|
const tokenDirect = await createEntryToken(env, "direct_form");
|
|
1335
1335
|
const tokenAssist = await createEntryToken(env, "assist");
|
|
1336
1336
|
return meetingSuccess("meeting.eb.meeting.create.flow.prepare", {
|
|
@@ -1432,7 +1432,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
1434
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1435
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1435
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-BEBFGMT6.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1436
1436
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1437
1437
|
if (memberIds.length > 0) {
|
|
1438
1438
|
const callerToken2 = String(args.caller ?? "").trim();
|
|
@@ -1477,7 +1477,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1477
1477
|
if (!skipPreflight && (!beginHasTime || !timeConfirmed)) {
|
|
1478
1478
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1479
1479
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1480
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1480
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
1481
1481
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1482
1482
|
{
|
|
1483
1483
|
dateFrom: day2,
|
|
@@ -1647,7 +1647,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1647
1647
|
usageFromCache: usageData.fromCache
|
|
1648
1648
|
};
|
|
1649
1649
|
}
|
|
1650
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1650
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
1651
1651
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1652
1652
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1653
1653
|
env
|
|
@@ -1655,7 +1655,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1655
1655
|
return { room, ...result?.data ?? {} };
|
|
1656
1656
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1657
1657
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1658
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1658
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
1659
1659
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1660
1660
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1661
1661
|
env
|
|
@@ -2066,7 +2066,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2066
2066
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
2067
2067
|
} else {
|
|
2068
2068
|
try {
|
|
2069
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2069
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
2070
2070
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
2071
2071
|
const renderExtra = {};
|
|
2072
2072
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2388,7 +2388,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2388
2388
|
});
|
|
2389
2389
|
};
|
|
2390
2390
|
const readBack = async () => {
|
|
2391
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2391
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
2392
2392
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2393
2393
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2394
2394
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2415,7 +2415,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2415
2415
|
const fields = payload?.invitationFields ?? {};
|
|
2416
2416
|
const started = Date.now();
|
|
2417
2417
|
try {
|
|
2418
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2418
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
2419
2419
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2420
2420
|
const rendered = await render.handler(
|
|
2421
2421
|
{
|
|
@@ -2493,7 +2493,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2493
2493
|
const payload = lease?.payload ?? {};
|
|
2494
2494
|
const { createWorkflowHost } = await import("./host-2ED2KC4X.js");
|
|
2495
2495
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2496
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2496
|
+
const { getWorkflowOperation } = await import("./registry-NLAO2W6T.js");
|
|
2497
2497
|
const wfEnv = {
|
|
2498
2498
|
...workflowEnv(env),
|
|
2499
2499
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2543,7 +2543,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2543
2543
|
const groupPayload2 = payload?.groupChat;
|
|
2544
2544
|
if (groupPayload2) {
|
|
2545
2545
|
try {
|
|
2546
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2546
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-MFBVOLKY.js");
|
|
2547
2547
|
groupChat2 = {
|
|
2548
2548
|
...await ensureMeetingGroupChat(env, {
|
|
2549
2549
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2559,7 +2559,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2559
2559
|
}
|
|
2560
2560
|
if (groupChat2 && groupChat2.ok) {
|
|
2561
2561
|
try {
|
|
2562
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2562
|
+
const { savePendingForm } = await import("./group-chat-MFBVOLKY.js");
|
|
2563
2563
|
await savePendingForm(env, {
|
|
2564
2564
|
workflowId: String(payload.workflowId ?? ""),
|
|
2565
2565
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2629,7 +2629,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2629
2629
|
let meetingId = "";
|
|
2630
2630
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2631
2631
|
if (waitSeconds > 0) {
|
|
2632
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2632
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
2633
2633
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2634
2634
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2635
2635
|
const pollStart = Date.now();
|
|
@@ -2679,7 +2679,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2679
2679
|
if (groupPayload) {
|
|
2680
2680
|
const groupStart = Date.now();
|
|
2681
2681
|
try {
|
|
2682
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2682
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-MFBVOLKY.js");
|
|
2683
2683
|
const group = await ensureMeetingGroupChat(env, {
|
|
2684
2684
|
meetingName: String(payload.mtName ?? ""),
|
|
2685
2685
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2711,7 +2711,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2711
2711
|
if (meetingId) {
|
|
2712
2712
|
const invitationStart = Date.now();
|
|
2713
2713
|
try {
|
|
2714
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2714
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
2715
2715
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2716
2716
|
const rendered = await render.handler(
|
|
2717
2717
|
{
|
|
@@ -2872,7 +2872,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2872
2872
|
),
|
|
2873
2873
|
handler: async (args, env) => {
|
|
2874
2874
|
if (String(args.entryMode ?? "") === "direct_form" || args.skipPreflight === true && args.confirm !== true) {
|
|
2875
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2875
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
|
|
2876
2876
|
return getMeetingOperation2("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
2877
2877
|
}
|
|
2878
2878
|
if (args.confirm !== true) {
|
|
@@ -2889,7 +2889,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2889
2889
|
`\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`
|
|
2890
2890
|
);
|
|
2891
2891
|
}
|
|
2892
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2892
|
+
const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
|
|
2893
2893
|
const prepareStartedAt = Date.now();
|
|
2894
2894
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2895
2895
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2988,7 +2988,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2988
2988
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2989
2989
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2990
2990
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2991
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2991
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-BEBFGMT6.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2992
2992
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2993
2993
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2994
2994
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-WRXSAVKO.js";
|
|
16
16
|
import {
|
|
17
17
|
stringifyForStdout
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4WCVRDC5.js";
|
|
19
19
|
import {
|
|
20
20
|
stateRoot
|
|
21
21
|
} from "./chunk-AJ62BGAW.js";
|
|
@@ -8651,11 +8651,22 @@ async function runCreateRequest(args, env, options = {}) {
|
|
|
8651
8651
|
});
|
|
8652
8652
|
}
|
|
8653
8653
|
const [details, valueAmbiguities, preview] = await resolveEntryValues(env, entries, context.layout.form_id);
|
|
8654
|
-
const merged = mergeDetails(context.defaults || [], details);
|
|
8655
8654
|
const isXiaoE = hasXiaoEEnv(env.ctx.env, env.ctx.getGlobalOptions?.());
|
|
8656
|
-
const
|
|
8655
|
+
const loadLinkageDetails = isXiaoE ? [] : await runFieldLinkage(
|
|
8656
|
+
env,
|
|
8657
|
+
linkageContextFromPayload(context),
|
|
8658
|
+
_entriesFromDefaults(context.defaults || []),
|
|
8659
|
+
null,
|
|
8660
|
+
null,
|
|
8661
|
+
false,
|
|
8662
|
+
null
|
|
8663
|
+
);
|
|
8664
|
+
const loadedState = mergeLinkageDetails(context.defaults || [], loadLinkageDetails);
|
|
8665
|
+
const withInput = mergeDetails(loadedState, details);
|
|
8666
|
+
const changeLinkageDetails = isXiaoE ? [] : await runFieldLinkage(env, linkageContextFromPayload(context), entries, null, withInput, false, loadedState);
|
|
8667
|
+
const linkageDetails = [...loadLinkageDetails, ...changeLinkageDetails];
|
|
8657
8668
|
const merged2 = fillDetailDefaultsByRow(
|
|
8658
|
-
mergeLinkageDetails(
|
|
8669
|
+
mergeLinkageDetails(withInput, changeLinkageDetails),
|
|
8659
8670
|
context.defaults || [],
|
|
8660
8671
|
userDetailRows(entries)
|
|
8661
8672
|
);
|
|
@@ -10291,6 +10302,7 @@ var COLLECT_ORDER_KEYS = ["sort"];
|
|
|
10291
10302
|
var ALLOWED_INPUT_KEYS = [
|
|
10292
10303
|
"stage",
|
|
10293
10304
|
"outputMode",
|
|
10305
|
+
"includeCategoryCounts",
|
|
10294
10306
|
"items",
|
|
10295
10307
|
"aiGroups",
|
|
10296
10308
|
"aiSummaries",
|
|
@@ -10547,6 +10559,9 @@ function rowFromAny(raw, extraFields) {
|
|
|
10547
10559
|
return result;
|
|
10548
10560
|
}
|
|
10549
10561
|
function assertKnownKeys(args) {
|
|
10562
|
+
if (args.includeCategoryCounts !== void 0 && typeof args.includeCategoryCounts !== "boolean") {
|
|
10563
|
+
throw workflowValidationError("input_invalid", "includeCategoryCounts \u5FC5\u987B\u662F\u5E03\u5C14\u503C");
|
|
10564
|
+
}
|
|
10550
10565
|
const known = [...ALLOWED_INPUT_KEYS, ...RESUME_INPUT_KEYS];
|
|
10551
10566
|
const unknown = Object.keys(args).filter((key) => !known.includes(key));
|
|
10552
10567
|
if (unknown.length > 0) {
|
|
@@ -11808,6 +11823,58 @@ function projectDisplayRows(response, extraFields) {
|
|
|
11808
11823
|
return projected;
|
|
11809
11824
|
}
|
|
11810
11825
|
|
|
11826
|
+
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.categoryCounts.ts
|
|
11827
|
+
import { isDeepStrictEqual } from "node:util";
|
|
11828
|
+
var CATEGORY_TABS = ["0", "7", "5", "8", "6", "1"];
|
|
11829
|
+
function recordOf(value) {
|
|
11830
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
11831
|
+
}
|
|
11832
|
+
function readTodoCategoryTotal(response) {
|
|
11833
|
+
const outer = recordOf(response);
|
|
11834
|
+
const data = recordOf(responseData(response));
|
|
11835
|
+
const nested = recordOf(data.data);
|
|
11836
|
+
if ([outer, data, nested].some((part) => part.status === false || part.success === false || part.fail === true)) return null;
|
|
11837
|
+
for (const candidate of [data.total, data.count, data.totalCount, nested.total, nested.totalCount]) {
|
|
11838
|
+
if (candidate === void 0 || candidate === null || candidate === "") continue;
|
|
11839
|
+
if (typeof candidate !== "number" && typeof candidate !== "string") return null;
|
|
11840
|
+
if (typeof candidate === "string" && !candidate.trim()) return null;
|
|
11841
|
+
const total = extractTotal({ total: candidate });
|
|
11842
|
+
if (total !== null) return Number.isSafeInteger(total) && total >= 0 ? total : null;
|
|
11843
|
+
}
|
|
11844
|
+
return null;
|
|
11845
|
+
}
|
|
11846
|
+
function withoutPagination(query) {
|
|
11847
|
+
const body = structuredClone(query);
|
|
11848
|
+
for (const key of ["customDisplayPage", "current", "pageSize"]) delete body[key];
|
|
11849
|
+
return body;
|
|
11850
|
+
}
|
|
11851
|
+
async function collectTodoCategoryCounts(env, listQuery, knownTotals = []) {
|
|
11852
|
+
const body = withoutPagination(listQuery);
|
|
11853
|
+
body.params = { ...recordOf(body.params) };
|
|
11854
|
+
const params = recordOf(body.params);
|
|
11855
|
+
delete params.flowSpareType;
|
|
11856
|
+
const counts = {};
|
|
11857
|
+
const currentTab = String(params.tabid ?? "");
|
|
11858
|
+
const known = knownTotals.find((item) => Number.isSafeInteger(item.total) && item.total >= 0 && isDeepStrictEqual(body, withoutPagination(item.body)));
|
|
11859
|
+
if (known && CATEGORY_TABS.some((tab) => tab === currentTab)) counts[currentTab] = known.total;
|
|
11860
|
+
if (currentTab === "0" && counts["0"] === 0) return Object.fromEntries(CATEGORY_TABS.map((tab) => [tab, 0]));
|
|
11861
|
+
const results = await Promise.allSettled(CATEGORY_TABS.filter((tab) => counts[tab] === void 0).map(async (tab) => {
|
|
11862
|
+
const categoryBody = structuredClone(body);
|
|
11863
|
+
categoryBody.params = { ...params, tabid: tab };
|
|
11864
|
+
const response = await env.host.workflowRequest({
|
|
11865
|
+
method: "POST",
|
|
11866
|
+
path: WORKFLOW_ENDPOINTS.TODO_TOTAL,
|
|
11867
|
+
operation: "workflow.todoSmartConvert.categoryCounts",
|
|
11868
|
+
body: categoryBody
|
|
11869
|
+
});
|
|
11870
|
+
return { tab, total: readTodoCategoryTotal(response) };
|
|
11871
|
+
}));
|
|
11872
|
+
for (const result of results) {
|
|
11873
|
+
if (result.status === "fulfilled" && result.value.total !== null) counts[result.value.tab] = result.value.total;
|
|
11874
|
+
}
|
|
11875
|
+
return counts;
|
|
11876
|
+
}
|
|
11877
|
+
|
|
11811
11878
|
// src/shortcuts/workflow/operations/todoSmartConvert/todoDetailCache.ts
|
|
11812
11879
|
var DETAIL_CACHE_FILE_NAME = "todo-detail-cache.json";
|
|
11813
11880
|
var DETAIL_CACHE_TTL_MS = SUMMARY_CACHE_TTL_MS;
|
|
@@ -12854,6 +12921,7 @@ async function collectRawTodos(args, env) {
|
|
|
12854
12921
|
const fmt = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
|
|
12855
12922
|
return `${fmt(start)} ${fmt(end)}`;
|
|
12856
12923
|
};
|
|
12924
|
+
const knownTotals = [];
|
|
12857
12925
|
const probeTodoTotal = async () => {
|
|
12858
12926
|
const { query } = await buildSearchQuery(
|
|
12859
12927
|
listEnv,
|
|
@@ -12872,6 +12940,10 @@ async function collectRawTodos(args, env) {
|
|
|
12872
12940
|
operation: "workflow.todoSmartConvert.total",
|
|
12873
12941
|
body: totalBody
|
|
12874
12942
|
});
|
|
12943
|
+
if (args.includeCategoryCounts === true) {
|
|
12944
|
+
const categoryTotal = readTodoCategoryTotal(response);
|
|
12945
|
+
if (categoryTotal !== null) knownTotals.push({ body: totalBody, total: categoryTotal });
|
|
12946
|
+
}
|
|
12875
12947
|
return extractTotal(response);
|
|
12876
12948
|
} catch {
|
|
12877
12949
|
return null;
|
|
@@ -12931,6 +13003,7 @@ async function collectRawTodos(args, env) {
|
|
|
12931
13003
|
let totalAvailable = null;
|
|
12932
13004
|
let pages = 0;
|
|
12933
13005
|
let stoppedEarly = false;
|
|
13006
|
+
let listQuery;
|
|
12934
13007
|
for (let pageNo = 1; limit === null || (policy.strictLimit ? items.length < limit : pageNo <= (plannedPages ?? 0)); pageNo += 1) {
|
|
12935
13008
|
const { query, warnings: buildWarnings } = await buildSearchQuery(
|
|
12936
13009
|
listEnv,
|
|
@@ -12945,6 +13018,7 @@ async function collectRawTodos(args, env) {
|
|
|
12945
13018
|
if (isremarks !== "") {
|
|
12946
13019
|
query.params = { ...query.params || {}, isremarks };
|
|
12947
13020
|
}
|
|
13021
|
+
if (category === "todo" && !listQuery) listQuery = structuredClone(query);
|
|
12948
13022
|
if (process.env.WEAVER_WORK_CLI_DUMP_LIST_BODY) {
|
|
12949
13023
|
try {
|
|
12950
13024
|
writeFileSync(
|
|
@@ -13200,10 +13274,13 @@ async function collectRawTodos(args, env) {
|
|
|
13200
13274
|
);
|
|
13201
13275
|
}
|
|
13202
13276
|
}
|
|
13277
|
+
const categoryCounts = args.includeCategoryCounts === true && category === "todo" && listQuery ? await collectTodoCategoryCounts(env, listQuery, knownTotals) : void 0;
|
|
13203
13278
|
return {
|
|
13204
13279
|
stage: "collect",
|
|
13205
13280
|
query: {
|
|
13206
13281
|
category,
|
|
13282
|
+
...listQuery ? { listQuery } : {},
|
|
13283
|
+
...categoryCounts ? { categoryCounts } : {},
|
|
13207
13284
|
...policy.outputMode ? { outputMode: policy.outputMode } : {},
|
|
13208
13285
|
...scope ? { tabid: searchArgs.tabid } : {},
|
|
13209
13286
|
/** 本次有效条数上限;历史未指定模式和 limit 时为 null。 */
|
|
@@ -13252,7 +13329,7 @@ async function collectRawTodos(args, env) {
|
|
|
13252
13329
|
}
|
|
13253
13330
|
|
|
13254
13331
|
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.ts
|
|
13255
|
-
function
|
|
13332
|
+
function recordOf2(value) {
|
|
13256
13333
|
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
13257
13334
|
}
|
|
13258
13335
|
function idOf(value) {
|
|
@@ -13260,9 +13337,9 @@ function idOf(value) {
|
|
|
13260
13337
|
return typeof value === "number" && Number.isSafeInteger(value) ? String(value) : "";
|
|
13261
13338
|
}
|
|
13262
13339
|
function successfulData(response) {
|
|
13263
|
-
const outer =
|
|
13264
|
-
const data =
|
|
13265
|
-
const nested =
|
|
13340
|
+
const outer = recordOf2(response);
|
|
13341
|
+
const data = recordOf2(responseData(response));
|
|
13342
|
+
const nested = recordOf2(data.data);
|
|
13266
13343
|
const failed = [outer, data, nested].find((part) => part.status === false || part.success === false || part.fail === true);
|
|
13267
13344
|
if (failed) {
|
|
13268
13345
|
const code = failed.code ?? outer.code;
|
|
@@ -13274,7 +13351,7 @@ function successfulData(response) {
|
|
|
13274
13351
|
}
|
|
13275
13352
|
function displayRows(response) {
|
|
13276
13353
|
const data = successfulData(response);
|
|
13277
|
-
const nested =
|
|
13354
|
+
const nested = recordOf2(data.data);
|
|
13278
13355
|
const rows = nested.displayData ?? data.displayData;
|
|
13279
13356
|
if (!Array.isArray(rows) || rows.some((row) => row === null || typeof row !== "object" || Array.isArray(row))) {
|
|
13280
13357
|
throw workflowApiError("unexpected_response", "\u5F85\u529E\u5217\u8868\u8FD4\u56DE\u7ED3\u6784\u5F02\u5E38\uFF0C\u672A\u751F\u6210\u5206\u5E03\u7EDF\u8BA1");
|
|
@@ -13323,11 +13400,11 @@ async function prepareTodoQuery(args, env) {
|
|
|
13323
13400
|
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
13401
|
}
|
|
13325
13402
|
const selectedNames = /* @__PURE__ */ new Map();
|
|
13326
|
-
const workflowConditions =
|
|
13403
|
+
const workflowConditions = recordOf2(recordOf2(listQuery.searchParams).formDatas).workflowid;
|
|
13327
13404
|
for (const condition of Array.isArray(workflowConditions) ? workflowConditions : []) {
|
|
13328
|
-
const browserDatas =
|
|
13405
|
+
const browserDatas = recordOf2(condition).browserDatas;
|
|
13329
13406
|
for (const item of Array.isArray(browserDatas) ? browserDatas : []) {
|
|
13330
|
-
const entry =
|
|
13407
|
+
const entry = recordOf2(item);
|
|
13331
13408
|
const id = idOf(entry.id);
|
|
13332
13409
|
if (id && typeof entry.name === "string" && entry.name.trim()) selectedNames.set(id, entry.name.trim());
|
|
13333
13410
|
}
|
|
@@ -13373,6 +13450,7 @@ async function prepareTodoQuery(args, env) {
|
|
|
13373
13450
|
}
|
|
13374
13451
|
const complete = total !== null && seen.size === total && !unreadRows;
|
|
13375
13452
|
const sort = typeof searchArgs.sort === "string" ? searchArgs.sort.trim() : "";
|
|
13453
|
+
const categoryCounts = args.includeCategoryCounts === true && category === "todo" ? await collectTodoCategoryCounts(env, listQuery, total === null ? [] : [{ body: totalBody, total }]) : void 0;
|
|
13376
13454
|
return {
|
|
13377
13455
|
stage: "prepareQuery",
|
|
13378
13456
|
query: {
|
|
@@ -13381,6 +13459,7 @@ async function prepareTodoQuery(args, env) {
|
|
|
13381
13459
|
totalAvailable: total,
|
|
13382
13460
|
filters: Object.fromEntries(Object.entries(searchArgs).filter(([key]) => !["category", "tabid", "sort"].includes(key))),
|
|
13383
13461
|
listQuery,
|
|
13462
|
+
...categoryCounts ? { categoryCounts } : {},
|
|
13384
13463
|
...sort ? { sort } : {}
|
|
13385
13464
|
},
|
|
13386
13465
|
totalCount: total,
|
|
@@ -13392,7 +13471,7 @@ async function prepareTodoQuery(args, env) {
|
|
|
13392
13471
|
|
|
13393
13472
|
// src/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.ts
|
|
13394
13473
|
var COUNT_CONCURRENCY = 4;
|
|
13395
|
-
function
|
|
13474
|
+
function recordOf3(value) {
|
|
13396
13475
|
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
13397
13476
|
}
|
|
13398
13477
|
function textOf(value) {
|
|
@@ -13435,7 +13514,7 @@ async function buildCandidateQuery(candidate, args, env) {
|
|
|
13435
13514
|
workflowTerm: "in"
|
|
13436
13515
|
}, "total");
|
|
13437
13516
|
const isremarks = textOf(args.isremarks) || generalRules()?.identityFilter?.defaultIsremarks?.trim() || "";
|
|
13438
|
-
if (isremarks) query.params = { ...
|
|
13517
|
+
if (isremarks) query.params = { ...recordOf3(query.params), isremarks };
|
|
13439
13518
|
return { candidate, body: query };
|
|
13440
13519
|
} catch (error) {
|
|
13441
13520
|
rethrowRequiredError(error);
|
|
@@ -13454,7 +13533,7 @@ async function loadWorkflowTypes(queries, env) {
|
|
|
13454
13533
|
}
|
|
13455
13534
|
async function fetchWorkflowMetadata(query, env) {
|
|
13456
13535
|
try {
|
|
13457
|
-
const params = { ...
|
|
13536
|
+
const params = { ...recordOf3(query.params) };
|
|
13458
13537
|
delete params.workflowId;
|
|
13459
13538
|
delete params.searchAdWorkflowid;
|
|
13460
13539
|
const flowCenterParam = query.flowCenterParam ?? params.flowCenterParam;
|
|
@@ -13465,13 +13544,13 @@ async function fetchWorkflowMetadata(query, env) {
|
|
|
13465
13544
|
operation: "workflow.todoSmartConvert.workflowMetadata",
|
|
13466
13545
|
body
|
|
13467
13546
|
});
|
|
13468
|
-
const data =
|
|
13547
|
+
const data = recordOf3(responseData(response));
|
|
13469
13548
|
const roots = Array.isArray(data.data) ? data.data : [];
|
|
13470
13549
|
const metadata = /* @__PURE__ */ new Map();
|
|
13471
13550
|
const conflicts = /* @__PURE__ */ new Set();
|
|
13472
13551
|
const visit = (nodes, parentType) => {
|
|
13473
13552
|
for (const value of nodes) {
|
|
13474
|
-
const node =
|
|
13553
|
+
const node = recordOf3(value);
|
|
13475
13554
|
const nodeId = textOf(node.id);
|
|
13476
13555
|
const name = textOf(node.content) || textOf(node.title);
|
|
13477
13556
|
const type = /^p?type_?-?\d+$/u.test(nodeId) && name ? name : parentType;
|
|
@@ -13514,11 +13593,11 @@ async function loadCandidateCount(query, env) {
|
|
|
13514
13593
|
async function enrichWorkflowClarification(error, args, env) {
|
|
13515
13594
|
if (args.category !== void 0 && args.category !== "todo") return error;
|
|
13516
13595
|
if (!(error instanceof WorkflowCliError) || error.subtype !== CLARIFICATION_SUBTYPE) return error;
|
|
13517
|
-
const details =
|
|
13596
|
+
const details = recordOf3(error.details);
|
|
13518
13597
|
if (details.clarificationType !== "workflow" || !Array.isArray(details.candidates)) return error;
|
|
13519
13598
|
const candidates = [];
|
|
13520
13599
|
for (const value of details.candidates) {
|
|
13521
|
-
const source =
|
|
13600
|
+
const source = recordOf3(value);
|
|
13522
13601
|
const id = textOf(source.id);
|
|
13523
13602
|
const name = textOf(source.name);
|
|
13524
13603
|
if (!/^\d+$/u.test(id) || !name) return error;
|
|
@@ -15154,6 +15233,11 @@ async function runSmartGroupAdd(args, env) {
|
|
|
15154
15233
|
|
|
15155
15234
|
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.ts
|
|
15156
15235
|
var inputSchema = schemaOf({
|
|
15236
|
+
includeCategoryCounts: {
|
|
15237
|
+
type: "boolean",
|
|
15238
|
+
default: false,
|
|
15239
|
+
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"
|
|
15240
|
+
},
|
|
15157
15241
|
outputMode: {
|
|
15158
15242
|
type: "string",
|
|
15159
15243
|
enum: [...OUTPUT_MODE_VALUES],
|
|
@@ -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-AAOYOPHW.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M7IEDTRI.js";
|
|
10
10
|
|
|
11
11
|
// src/shortcuts/meeting/operations/eb/entry-mode.ts
|
|
12
12
|
import { join, dirname } from "node:path";
|
|
@@ -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-AAOYOPHW.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
findCommonFreeSlots,
|
|
8
8
|
meetingEbConflictOperations,
|
|
9
9
|
runEbConflictCheck
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-NNXZMBIB.js";
|
|
11
|
+
import "./chunk-M7IEDTRI.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|