weaver-work-cli 0.1.65 → 0.1.67
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-QUM27QNB.js → attachment-content-7SDA6WER.js} +3 -3
- package/dist/chunks/{chunk-IJDZ7VDC.js → chunk-33ANTJWB.js} +2 -2
- package/dist/chunks/{chunk-LRK7YND4.js → chunk-4PYLZORW.js} +7 -7
- package/dist/chunks/{chunk-SHX7XBYR.js → chunk-4WCVRDC5.js} +83 -33
- package/dist/chunks/{chunk-ZV3TYANI.js → chunk-6ZOSVKMT.js} +1 -1
- package/dist/chunks/{chunk-NZLFKBEM.js → chunk-DTJZOAO6.js} +6 -6
- package/dist/chunks/{chunk-F4ME3CGS.js → chunk-JU5OPHSY.js} +2 -2
- package/dist/chunks/{chunk-CUY64WP4.js → chunk-KS6LXSCA.js} +38 -38
- package/dist/chunks/{chunk-IT3SB7RV.js → chunk-LNWFHNVK.js} +2448 -318
- package/dist/chunks/{chunk-QT7GGCSY.js → chunk-MRYKV5HN.js} +32 -32
- package/dist/chunks/{chunk-K7QKQRSL.js → chunk-NP3ZZFGI.js} +24 -24
- package/dist/chunks/{chunk-E3OQSNF5.js → chunk-R6GGDZ2C.js} +1 -1
- package/dist/chunks/{chunk-6AW5LW4T.js → chunk-RU7ZZQQQ.js} +4 -4
- package/dist/chunks/{chunk-D6SWOUUP.js → chunk-TXXO4TJT.js} +2 -2
- package/dist/chunks/{chunk-JDZOYHAL.js → chunk-XARLZK6C.js} +1 -1
- package/dist/chunks/{conflict-76ZUL3E7.js → conflict-DYCSX7CN.js} +2 -2
- package/dist/chunks/{contract-INMS7SYQ.js → contract-N5WNHKHI.js} +94 -30
- package/dist/chunks/{create-flow-7WGKLRHH.js → create-flow-PABAGCK2.js} +6 -6
- package/dist/chunks/{entry-mode-3UMMMK6Z.js → entry-mode-C2WPJQJM.js} +3 -3
- package/dist/chunks/{env-7EGXNZR2.js → env-SEEXUXZF.js} +2 -2
- package/dist/chunks/{factory-BDERKTYX.js → factory-WNLDOLJZ.js} +1 -1
- package/dist/chunks/{group-chat-4E7EZMTJ.js → group-chat-DOS4XWUN.js} +3 -3
- package/dist/chunks/{invoice-MOGNB6HN.js → invoice-SMODTN2D.js} +7 -2
- package/dist/chunks/{lazy-dispatch-4WOIL3ZQ.js → lazy-dispatch-K25LTKQY.js} +2 -2
- package/dist/chunks/{meeting-2FMYZXG5.js → meeting-2IWXP5IL.js} +11 -11
- package/dist/chunks/{minute-doc-3DHMYMBE.js → minute-doc-N4OR5OLP.js} +2 -2
- package/dist/chunks/{registry-6UGQO35C.js → registry-ABKBGGGK.js} +2 -2
- package/dist/chunks/{registry-XXFMYPBM.js → registry-XOUVCSV4.js} +11 -11
- package/dist/chunks/{room-recommend-7LD2OHL5.js → room-recommend-TWIEVY44.js} +4 -4
- package/dist/chunks/{schedule-ZAYMZKTQ.js → schedule-XZ4UUX4E.js} +4 -4
- package/dist/chunks/{smart-extract-FOBSVNYW.js → smart-extract-DEBLJPCQ.js} +11 -11
- package/dist/chunks/{workflow-NYJJIT3D.js → workflow-D7LBN5MZ.js} +2 -2
- package/dist/cmd/refs/index.js +24 -23
- package/dist/core/output.js +134 -41
- package/dist/index.js +8 -8
- 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/invoice/manifest.js +1 -1
- package/dist/shortcuts/invoice/operations/get.js +2 -0
- package/dist/shortcuts/invoice/operations/shared.js +2 -0
- package/dist/shortcuts/invoice/projection.js +4 -1
- package/dist/shortcuts/smart-extract/operations/fill.js +14 -14
- package/dist/shortcuts/workflow/endpoints.js +2 -0
- package/dist/shortcuts/workflow/index.js +2 -2
- package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +1735 -0
- package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +562 -0
- package/dist/shortcuts/workflow/operations/deepRead.js +447 -0
- package/dist/shortcuts/workflow/operations/form.js +28 -4
- package/dist/shortcuts/workflow/operations/read.js +18 -4
- package/dist/shortcuts/workflow/operations/registry.js +4 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +9 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +3 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +5 -0
- package/docs/agent-io-channel-design.md +21 -10
- package/docs/invoice.md +2 -0
- package/docs/smart-extract.md +1 -1
- package/docs/todo-smart-convert/data-contract.md +1 -1
- package/package.json +1 -1
- package/scripts/package-skill.mjs +13 -2
- 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 +15 -3
- package/skills/weaver-e10-workflow/aiDeepRead/config.json +151 -0
- package/skills/weaver-e10-workflow/aiDeepRead/templates//345/215/225/345/215/241/347/211/207-demo.html +64 -0
- package/skills/weaver-e10-workflow/aiDeepRead/templates//346/261/207/346/200/273/345/256/241/346/211/271-demo.html +310 -0
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +4 -2
- package/skills/weaver-e10-workflow/references/workflow-deep-read.md +201 -0
- package/skills/weaver-e10-workflow/tools/ai-deep-read.cjs +80 -0
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +80 -6
- package/skills/weaver-e10-yepiaotong/SKILL.md +30 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +1 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +4 -4
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +16 -2
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +44 -9
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +16 -2
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +61 -2
|
@@ -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-DTJZOAO6.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-RU7ZZQQQ.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6ZOSVKMT.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-XARLZK6C.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-XOUVCSV4.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-ABKBGGGK.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-TWIEVY44.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-XOUVCSV4.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-XOUVCSV4.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-XOUVCSV4.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-DOS4XWUN.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-XOUVCSV4.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-C2WPJQJM.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-C2WPJQJM.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-XOUVCSV4.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-C2WPJQJM.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-XZ4UUX4E.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-XOUVCSV4.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-XOUVCSV4.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-XOUVCSV4.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-XOUVCSV4.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-XOUVCSV4.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-XOUVCSV4.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-ABKBGGGK.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-DOS4XWUN.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-DOS4XWUN.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-XOUVCSV4.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-DOS4XWUN.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-XOUVCSV4.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-XOUVCSV4.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-XOUVCSV4.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-XZ4UUX4E.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(() => "");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
DEFAULT_RESULT_THRESHOLD_BYTES,
|
|
5
4
|
Output,
|
|
6
5
|
RefError,
|
|
7
|
-
|
|
6
|
+
charsOf,
|
|
7
|
+
defaultResultThresholdChars,
|
|
8
8
|
listRefs,
|
|
9
9
|
pickValue,
|
|
10
10
|
pruneRefs,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
refMaxBytes,
|
|
15
15
|
refMaxCount,
|
|
16
16
|
resolveRefInput,
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
resultThresholdChars
|
|
18
|
+
} from "./chunk-4WCVRDC5.js";
|
|
19
19
|
import {
|
|
20
20
|
refsDir
|
|
21
21
|
} from "./chunk-AJ62BGAW.js";
|
|
@@ -1585,9 +1585,9 @@ var refsCommand = {
|
|
|
1585
1585
|
const id = String(refId ?? "").trim();
|
|
1586
1586
|
if (!id) throw new CliError("refId \u4E0D\u80FD\u4E3A\u7A7A", 2 /* UsageError */);
|
|
1587
1587
|
const record = readRef(ctx, id);
|
|
1588
|
-
const configuredLimit =
|
|
1589
|
-
const displayLimit = configuredLimit > 0 ? configuredLimit :
|
|
1590
|
-
if (
|
|
1588
|
+
const configuredLimit = resultThresholdChars(ctx);
|
|
1589
|
+
const displayLimit = configuredLimit > 0 ? configuredLimit : defaultResultThresholdChars();
|
|
1590
|
+
if (charsOf(record.envelope) > displayLimit) {
|
|
1591
1591
|
throw new CliError(
|
|
1592
1592
|
`\u7ED3\u679C\u592A\u5927\uFF0C\u4E0D\u80FD\u5B89\u5168\u5730\u4E00\u6B21\u663E\u793A\u3002\u8BF7\u7528 refs get ${id} <json-path> \u8BFB\u53D6\u9700\u8981\u7684\u5B57\u6BB5\u3002`,
|
|
1593
1593
|
2 /* UsageError */
|
|
@@ -1623,19 +1623,19 @@ var refsCommand = {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
const record = readRef(ctx, id);
|
|
1625
1625
|
const picked = pickValue(record.envelope, jsonPath);
|
|
1626
|
-
const configuredLimit =
|
|
1627
|
-
const displayLimit = configuredLimit > 0 ? configuredLimit :
|
|
1626
|
+
const configuredLimit = resultThresholdChars(ctx);
|
|
1627
|
+
const displayLimit = configuredLimit > 0 ? configuredLimit : defaultResultThresholdChars();
|
|
1628
1628
|
if (typeof picked === "string") {
|
|
1629
1629
|
if (hasArrayWindow) {
|
|
1630
1630
|
throw new CliError("\u5B57\u7B26\u4E32\u8BF7\u4F7F\u7528 --char-offset / --char-limit \u5206\u6BB5\u8BFB\u53D6", 2 /* UsageError */);
|
|
1631
1631
|
}
|
|
1632
|
-
const
|
|
1633
|
-
if (!hasTextWindow &&
|
|
1632
|
+
const chars2 = charsOf(picked);
|
|
1633
|
+
if (!hasTextWindow && chars2 <= displayLimit) {
|
|
1634
1634
|
ctx.output.write(picked, { json: true, persist: false });
|
|
1635
1635
|
return;
|
|
1636
1636
|
}
|
|
1637
1637
|
const totalChars = Array.from(picked).length;
|
|
1638
|
-
const perChar = totalChars > 0 ? Math.max(1, Math.ceil(
|
|
1638
|
+
const perChar = totalChars > 0 ? Math.max(1, Math.ceil(chars2 / totalChars)) : 1;
|
|
1639
1639
|
const autoLimit2 = Math.max(1, Math.floor((displayLimit - 2048) / perChar));
|
|
1640
1640
|
const pageOf2 = (size3) => {
|
|
1641
1641
|
const window = readTextWindow(picked, charOffset, size3);
|
|
@@ -1656,9 +1656,9 @@ var refsCommand = {
|
|
|
1656
1656
|
let size2 = requestedCharLimit ?? autoLimit2;
|
|
1657
1657
|
let page2 = pageOf2(size2);
|
|
1658
1658
|
for (let round = 0; round < 8; round += 1) {
|
|
1659
|
-
const
|
|
1660
|
-
if (
|
|
1661
|
-
size2 = Math.max(1, Math.floor(size2 * displayLimit /
|
|
1659
|
+
const pageChars = charsOf(page2);
|
|
1660
|
+
if (pageChars <= displayLimit || size2 <= 1) break;
|
|
1661
|
+
size2 = Math.max(1, Math.floor(size2 * displayLimit / pageChars) - 1);
|
|
1662
1662
|
page2 = pageOf2(size2);
|
|
1663
1663
|
}
|
|
1664
1664
|
ctx.output.write(page2, { json: true, persist: false });
|
|
@@ -1671,10 +1671,10 @@ var refsCommand = {
|
|
|
1671
1671
|
if (hasArrayWindow) {
|
|
1672
1672
|
throw new CliError("--offset / --limit \u53EA\u80FD\u7528\u4E8E\u6570\u7EC4\u5B57\u6BB5", 2 /* UsageError */);
|
|
1673
1673
|
}
|
|
1674
|
-
const
|
|
1675
|
-
if (
|
|
1674
|
+
const chars2 = charsOf(picked);
|
|
1675
|
+
if (chars2 > displayLimit) {
|
|
1676
1676
|
throw new CliError(
|
|
1677
|
-
`${jsonPath} \u662F\u5355\u4E2A\u975E\u6587\u672C\u503C\uFF0C\u7EA6 ${
|
|
1677
|
+
`${jsonPath} \u662F\u5355\u4E2A\u975E\u6587\u672C\u503C\uFF0C\u7EA6 ${chars2} \u5B57\u7B26\uFF0C\u8D85\u8FC7\u5355\u6B21\u8F93\u51FA\u9884\u7B97 ${displayLimit} \u5B57\u7B26\u3002\u8BF7\u6539\u7528\u66F4\u7EC6\u7684 JSON \u8DEF\u5F84\u53D6\u503C\uFF0C\u6216\u8D70\u4E1A\u52A1\u547D\u4EE4\u7684\u5BFC\u51FA\u80FD\u529B\u3002`,
|
|
1678
1678
|
2 /* UsageError */
|
|
1679
1679
|
);
|
|
1680
1680
|
}
|
|
@@ -1682,8 +1682,8 @@ var refsCommand = {
|
|
|
1682
1682
|
return;
|
|
1683
1683
|
}
|
|
1684
1684
|
const total = picked.length;
|
|
1685
|
-
const
|
|
1686
|
-
const perItem = total > 0 ? Math.max(1, Math.ceil(
|
|
1685
|
+
const chars = charsOf(picked);
|
|
1686
|
+
const perItem = total > 0 ? Math.max(1, Math.ceil(chars / total)) : 1;
|
|
1687
1687
|
const autoLimit = Math.max(1, Math.floor((displayLimit - 2048) / perItem));
|
|
1688
1688
|
const pageOf = (size2) => {
|
|
1689
1689
|
const window = readWindow(picked, offset, size2);
|
|
@@ -1700,12 +1700,12 @@ var refsCommand = {
|
|
|
1700
1700
|
...nextHint === void 0 ? {} : { largeOutputNotice: nextHint }
|
|
1701
1701
|
};
|
|
1702
1702
|
};
|
|
1703
|
-
let size = requestedLimit ?? (
|
|
1703
|
+
let size = requestedLimit ?? (chars > displayLimit ? autoLimit : Math.max(total - offset, 1));
|
|
1704
1704
|
let page = pageOf(size);
|
|
1705
1705
|
for (let round = 0; round < 4; round += 1) {
|
|
1706
|
-
const
|
|
1707
|
-
if (
|
|
1708
|
-
size = Math.max(1, Math.floor(size * displayLimit /
|
|
1706
|
+
const pageChars = charsOf(page);
|
|
1707
|
+
if (pageChars <= displayLimit || size <= 1) break;
|
|
1708
|
+
size = Math.max(1, Math.floor(size * displayLimit / pageChars) - 1);
|
|
1709
1709
|
page = pageOf(size);
|
|
1710
1710
|
}
|
|
1711
1711
|
ctx.output.write(page, { json: true, persist: false });
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
cacheScopeSuffix,
|
|
5
5
|
readCache,
|
|
6
6
|
writeCache
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6ZOSVKMT.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-XARLZK6C.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-SEEXUXZF.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-XOUVCSV4.js");
|
|
225
225
|
const listOp = getMeetingOperation("meeting.eb.meeting.list");
|
|
226
226
|
let seen = 0;
|
|
227
227
|
let total = 0;
|
|
@@ -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-R6GGDZ2C.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XARLZK6C.js";
|
|
10
10
|
|
|
11
11
|
// src/shortcuts/meeting/operations/eb/entry-mode.ts
|
|
12
12
|
import { join, dirname } from "node:path";
|
|
@@ -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-DYCSX7CN.js");
|
|
2339
2339
|
assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
|
|
2340
2340
|
}
|
|
2341
2341
|
const pkQuery = writePkQuery(endpoint, payload);
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
findCommonFreeSlots,
|
|
8
8
|
meetingEbConflictOperations,
|
|
9
9
|
runEbConflictCheck
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-DTJZOAO6.js";
|
|
11
|
+
import "./chunk-XARLZK6C.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|