weaver-work-cli 0.1.63 → 0.1.64
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/{archive-BLDYBZDX.js → archive-WUZKAEZ6.js} +2 -2
- package/dist/chunks/{archive-oa-3GJ3TWXR.js → archive-oa-PN46RTI2.js} +2 -2
- package/dist/chunks/{asset-AFXJN4CK.js → asset-ZPC5VWZM.js} +2 -2
- package/dist/chunks/{asset-idle-VUJXWGWJ.js → asset-idle-DHGP3NYY.js} +2 -2
- package/dist/chunks/{attachment-content-VMJA7NSQ.js → attachment-content-JQDW3BIB.js} +3 -3
- package/dist/chunks/{blog-EREB35VU.js → blog-JC47AIXK.js} +2 -2
- package/dist/chunks/{caizhilian-ATM2JO5S.js → caizhilian-IKIHM77A.js} +4 -4
- package/dist/chunks/{calendar-E26ZIH7S.js → calendar-GZTSJ57Y.js} +2 -2
- package/dist/chunks/{chunk-OMAGCLUE.js → chunk-26FCCU5O.js} +2 -2
- package/dist/chunks/{chunk-BY3WDJO5.js → chunk-3PCXBG4H.js} +1 -1
- package/dist/chunks/{chunk-EOZHSNND.js → chunk-3W5NMGDS.js} +2 -2
- package/dist/chunks/{chunk-TNFIUZ4H.js → chunk-4AFWOGOV.js} +1 -1
- package/dist/chunks/{chunk-QAMIIFP6.js → chunk-5QQKLR6H.js} +11 -11
- package/dist/chunks/{chunk-C5PIGPGX.js → chunk-6T5X6YWX.js} +2 -2
- package/dist/chunks/{chunk-WPBZQVLS.js → chunk-AFZTMYGC.js} +1 -1
- package/dist/chunks/{chunk-IGICM3WJ.js → chunk-AGSO3PIK.js} +2 -2
- package/dist/chunks/{chunk-6VCQLZXE.js → chunk-FDBAFANU.js} +1 -0
- package/dist/chunks/{chunk-RV2JAA5I.js → chunk-FJUOUSV3.js} +1 -1
- package/dist/chunks/{chunk-6G2JARDK.js → chunk-HLT6B26P.js} +1 -1
- package/dist/chunks/{chunk-THMBDCRA.js → chunk-HWA2A25Y.js} +2 -2
- package/dist/chunks/{chunk-SHBDXEUE.js → chunk-I3MOFD6Q.js} +4 -4
- package/dist/chunks/{chunk-5CY37VLS.js → chunk-INVYKG4I.js} +45 -43
- package/dist/chunks/{chunk-QZYKZ7MQ.js → chunk-K7QKQRSL.js} +155 -57
- package/dist/chunks/{chunk-HEJPVXD3.js → chunk-KDFEHDIB.js} +4 -4
- package/dist/chunks/{chunk-I4C2KR2G.js → chunk-KYDXWYFB.js} +1 -1
- package/dist/chunks/{chunk-RR45ELVE.js → chunk-Q6D6PSMH.js} +2 -2
- package/dist/chunks/{chunk-G3ZM57PD.js → chunk-RMOH2GMF.js} +2 -2
- package/dist/chunks/{chunk-LOVAIGM2.js → chunk-SCMHG23G.js} +50 -50
- package/dist/chunks/{chunk-GQK6WLOS.js → chunk-VLY5RTVO.js} +2 -2
- package/dist/chunks/{chunk-SDPC7BG2.js → chunk-WSHIOSGM.js} +2 -2
- package/dist/chunks/{chunk-4OB22YKE.js → chunk-XHSEK2VM.js} +6 -6
- package/dist/chunks/{chunk-GOBNIGWS.js → chunk-YTFNMQO4.js} +1 -1
- package/dist/chunks/{conflict-AMNTM3FV.js → conflict-UUC7AFUI.js} +2 -2
- package/dist/chunks/{contract-PLO2V2NO.js → contract-INMS7SYQ.js} +846 -199
- package/dist/chunks/{cowork-FZAXE6FO.js → cowork-34CBYVQP.js} +2 -2
- package/dist/chunks/{create-flow-2DAUN7HU.js → create-flow-YOR4QTAJ.js} +8 -6
- package/dist/chunks/{data-7NXMWET4.js → data-QKWI5325.js} +13 -2
- package/dist/chunks/{ebuilder-form-DEYHX6M7.js → ebuilder-form-ZONRROK4.js} +3 -3
- package/dist/chunks/{ehr-QQH2DYYA.js → ehr-2CONM7R6.js} +2 -2
- package/dist/chunks/{entry-mode-2JTVEKMP.js → entry-mode-S2ENJ6GZ.js} +3 -3
- package/dist/chunks/{env-2JZMXC6I.js → env-ZSAXU5PJ.js} +2 -2
- package/dist/chunks/{esb-I5ZFHJUK.js → esb-FQASCY2H.js} +4 -4
- package/dist/chunks/{factory-XIATYHU6.js → factory-N76QQA53.js} +1 -1
- package/dist/chunks/{fna-3V2TL6B2.js → fna-FCLVIWAS.js} +2 -2
- package/dist/chunks/{group-chat-CVYUZCOQ.js → group-chat-UM665WDZ.js} +3 -3
- package/dist/chunks/{host-CBONEAZS.js → host-2ED2KC4X.js} +3 -3
- package/dist/chunks/{host-4DP7C7YQ.js → host-2UYZEY2V.js} +3 -3
- package/dist/chunks/{host-4KQCAEWA.js → host-46NYKDQP.js} +3 -3
- package/dist/chunks/{host-BD7NAM33.js → host-7IPZKIM4.js} +3 -3
- package/dist/chunks/{host-L37QVNIV.js → host-P7G22WNM.js} +3 -3
- package/dist/chunks/{host-4X2F3JPQ.js → host-XLCBLNJD.js} +3 -3
- package/dist/chunks/{hrm-OL3IKN7C.js → hrm-XKL27NX2.js} +3 -3
- package/dist/chunks/{im-YXQWUF3R.js → im-NDYIMASG.js} +3 -3
- package/dist/chunks/{invoice-4WY32PR2.js → invoice-MOGNB6HN.js} +3 -3
- package/dist/chunks/{jiuchuanhui-L6SHLONH.js → jiuchuanhui-3T5X7SB7.js} +2 -2
- package/dist/chunks/{lazy-dispatch-OYE6QV24.js → lazy-dispatch-4WOIL3ZQ.js} +4 -4
- package/dist/chunks/{mail-PZV2KNRU.js → mail-P7VMUKQW.js} +2 -2
- package/dist/chunks/{meeting-6SOBCC6N.js → meeting-MMTYDHXA.js} +13 -13
- package/dist/chunks/{minute-doc-KSJSJNOH.js → minute-doc-LCSBWGJ3.js} +4 -4
- package/dist/chunks/{okr-B76FW5M2.js → okr-VZXRQGS4.js} +2 -2
- package/dist/chunks/{operations-YOMEGFLV.js → operations-MI2BSKZX.js} +4 -4
- package/dist/chunks/{performance-4VBKUPFO.js → performance-OPEQNW7Y.js} +870 -15
- package/dist/chunks/{plan-HBNZRQTI.js → plan-TJAS4N5X.js} +2 -2
- package/dist/chunks/{project-IV6FWK74.js → project-CYBGU6K6.js} +2 -2
- package/dist/chunks/{reception-BR5YURT6.js → reception-3FT2F66K.js} +2 -2
- package/dist/chunks/{recruit-stage-4HQ6OGXT.js → recruit-stage-WPGB5BDJ.js} +2 -2
- package/dist/chunks/{registry-JFQEFC7E.js → registry-BAWCWV4D.js} +2 -2
- package/dist/chunks/{registry-7LICMV5J.js → registry-FNI5E76J.js} +12 -12
- package/dist/chunks/{registry-MZJQX65Q.js → registry-QRMXRSCT.js} +4 -4
- package/dist/chunks/{room-recommend-43GLLE7Y.js → room-recommend-I7QQRHEL.js} +4 -4
- package/dist/chunks/{schedule-ZQ42BEW6.js → schedule-3P7EWGNZ.js} +4 -4
- package/dist/chunks/{smart-extract-QKAEAZGM.js → smart-extract-FOBSVNYW.js} +2 -2
- package/dist/chunks/{workflow-6HV7H5PC.js → workflow-U2KKTVQY.js} +4 -4
- package/dist/index.js +33 -33
- package/dist/internal/e10/auth/commands.js +182 -43
- package/dist/shortcuts/contract/error-actions.js +112 -0
- package/dist/shortcuts/contract/errors.js +9 -1
- package/dist/shortcuts/contract/manifest.js +18 -7
- package/dist/shortcuts/contract/operations/docx-slots.js +112 -5
- package/dist/shortcuts/contract/operations/docx-verify.js +2 -70
- package/dist/shortcuts/contract/operations/elements-build.js +82 -56
- package/dist/shortcuts/contract/operations/elements-spec.js +140 -3
- package/dist/shortcuts/contract/operations/ledger-card.js +25 -2
- package/dist/shortcuts/contract/operations/ledger.js +33 -5
- package/dist/shortcuts/contract/operations/money.js +90 -0
- package/dist/shortcuts/contract/operations/placeholder-scan.js +104 -0
- package/dist/shortcuts/contract/operations/quote-recognize.js +54 -17
- package/dist/shortcuts/contract/operations/quote-ref.js +179 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +20 -3
- package/dist/shortcuts/contract/operations/quote.js +66 -12
- package/dist/shortcuts/contract/operations/solutions-spec.js +79 -0
- package/dist/shortcuts/contract/operations/triage.js +55 -9
- package/dist/shortcuts/data/operations/shared.js +14 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +25 -11
- package/dist/shortcuts/performance/flow-utils.js +363 -0
- package/dist/shortcuts/performance/manifest.js +2 -2
- package/dist/shortcuts/performance/operations/flow-detail.js +85 -0
- package/dist/shortcuts/performance/operations/flow-list.js +213 -0
- package/dist/shortcuts/performance/operations/flow-score.js +241 -0
- package/dist/shortcuts/performance/operations/registry.js +6 -0
- package/docs/e10-auth.md +27 -2
- package/package.json +1 -1
- package/skills/weaver-e10-jinchengda/SKILL.md +87 -39
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +29 -29
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +29 -7
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +3 -3
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +5 -5
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +22 -25
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +53 -314
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +6 -5
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +19 -11
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +3 -3
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +43 -25
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +103 -212
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +7 -7
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +7 -6
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +34 -21
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +6 -6
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +3 -3
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +6 -6
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +22 -22
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +21 -19
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +6 -5
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +132 -95
- package/skills/weaver-e10-jinchengda/references/contract-request-status.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-request-write.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +12 -12
- package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +1 -1
- package/skills/weaver-e10-jinchengda/references/orchestration.md +5 -5
- package/skills/weaver-e10-meeting/SKILL.md +8 -7
- package/skills/weaver-e10-meeting/references/create-commands.md +2 -2
- package/skills/weaver-e10-meeting/references/create-flow.md +6 -6
- package/skills/weaver-e10-meeting/references/create-guardrails.md +10 -10
- package/skills/weaver-e10-meeting/references/invitation.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-eb.md +26 -26
- package/skills/weaver-e10-meeting/references/meeting-invitation.md +2 -2
- package/skills/weaver-e10-meeting/references/meeting-minute-file.md +2 -2
- package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
- package/skills/weaver-e10-performance/SKILL.md +45 -5
- package/skills/weaver-e10-performance/agents/openai.yaml +26 -2
- package/skills/weaver-e10-performance/references/flow-api.md +128 -0
- package/skills/weaver-e10-performance/references/flow-assess.md +149 -0
- package/skills/weaver-e10-yimiaoban/SKILL.md +8 -5
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
|
@@ -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-XHSEK2VM.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-I3MOFD6Q.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KYDXWYFB.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-4AFWOGOV.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-FNI5E76J.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 ?? [];
|
|
@@ -336,9 +336,9 @@ function workflowEnv(env) {
|
|
|
336
336
|
return env;
|
|
337
337
|
}
|
|
338
338
|
async function loadCreateForm(env, workflowId) {
|
|
339
|
-
const { createWorkflowHost } = await import("./host-
|
|
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-BAWCWV4D.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-I7QQRHEL.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-FNI5E76J.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-FNI5E76J.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-FNI5E76J.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-UM665WDZ.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-FNI5E76J.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 ?? [];
|
|
@@ -1190,6 +1190,12 @@ async function buildCrmSelection(args, env) {
|
|
|
1190
1190
|
hint: "\u7528\u6237\u70B9\u9009\u540E\u628A value \u539F\u6837\u56DE\u4F20\uFF08crm_members \u4E3A [{id,name}]\uFF09\uFF0C\u4E0D\u8981\u518D\u8FFD\u95EE\u5BA2\u6237\u3002"
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
|
+
function decideEntryMode(input) {
|
|
1194
|
+
const declared = String(input.declared ?? "").trim();
|
|
1195
|
+
if (declared !== "assist" && declared !== "direct_form") return { mode: "", reason: "none" };
|
|
1196
|
+
if (input.tokenOk === true) return { mode: declared, reason: "token" };
|
|
1197
|
+
return { mode: "", reason: "unverified" };
|
|
1198
|
+
}
|
|
1193
1199
|
var ebMeetingCreateFlowPrepare = {
|
|
1194
1200
|
name: "meeting.eb.meeting.create.flow.prepare",
|
|
1195
1201
|
resource: "eb",
|
|
@@ -1289,22 +1295,17 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1289
1295
|
),
|
|
1290
1296
|
handler: async (args, env) => {
|
|
1291
1297
|
let skipPreflight = args.skipPreflight === true;
|
|
1292
|
-
if (args.entryMode === "direct_form") {
|
|
1293
|
-
args = { ...args, skipPreflight: true };
|
|
1294
|
-
skipPreflight = true;
|
|
1295
|
-
}
|
|
1296
1298
|
let entryResolved = "";
|
|
1297
1299
|
const rawEntry = String(args.entryMode ?? "").trim();
|
|
1298
1300
|
if (rawEntry === "assist" || rawEntry === "direct_form") {
|
|
1299
|
-
const { verifyEntryToken } = await import("./entry-mode-
|
|
1301
|
+
const { verifyEntryToken } = await import("./entry-mode-S2ENJ6GZ.js");
|
|
1300
1302
|
const tokenOk = await verifyEntryToken(env, String(args.entryToken ?? ""), rawEntry).catch(() => false);
|
|
1301
|
-
|
|
1302
|
-
if (
|
|
1303
|
-
|
|
1304
|
-
}
|
|
1303
|
+
const decision = decideEntryMode({ declared: rawEntry, tokenOk });
|
|
1304
|
+
if (decision.mode) entryResolved = decision.mode;
|
|
1305
|
+
else env.__entryTokenMissing = 1;
|
|
1305
1306
|
}
|
|
1306
|
-
if (!entryResolved) {
|
|
1307
|
-
const { readEntryChoice } = await import("./entry-mode-
|
|
1307
|
+
if (!entryResolved && rawEntry === "") {
|
|
1308
|
+
const { readEntryChoice } = await import("./entry-mode-S2ENJ6GZ.js");
|
|
1308
1309
|
const mark2 = await readEntryChoice(env).catch(() => null);
|
|
1309
1310
|
if (mark2?.choice) entryResolved = mark2.choice;
|
|
1310
1311
|
}
|
|
@@ -1316,7 +1317,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1316
1317
|
}
|
|
1317
1318
|
if (entryResolved === "direct_form") {
|
|
1318
1319
|
env.__meetingTimings = { ...env.__meetingTimings, directDelegated: 1 };
|
|
1319
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1320
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
1320
1321
|
return getMeetingOperation("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
1321
1322
|
}
|
|
1322
1323
|
const beginRaw = String(args.begin_datetime ?? "").trim();
|
|
@@ -1329,7 +1330,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1329
1330
|
skipPreflight = true;
|
|
1330
1331
|
}
|
|
1331
1332
|
if (!entryResolved && args.skipPreflight !== true) {
|
|
1332
|
-
const { createEntryToken } = await import("./entry-mode-
|
|
1333
|
+
const { createEntryToken } = await import("./entry-mode-S2ENJ6GZ.js");
|
|
1333
1334
|
const tokenDirect = await createEntryToken(env, "direct_form");
|
|
1334
1335
|
const tokenAssist = await createEntryToken(env, "assist");
|
|
1335
1336
|
return meetingSuccess("meeting.eb.meeting.create.flow.prepare", {
|
|
@@ -1431,7 +1432,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1431
1432
|
}
|
|
1432
1433
|
}
|
|
1433
1434
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1434
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1435
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-3P7EWGNZ.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1435
1436
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1436
1437
|
if (memberIds.length > 0) {
|
|
1437
1438
|
const callerToken2 = String(args.caller ?? "").trim();
|
|
@@ -1476,7 +1477,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1476
1477
|
if (!skipPreflight && (!beginHasTime || !timeConfirmed)) {
|
|
1477
1478
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1478
1479
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1479
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1480
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
1480
1481
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1481
1482
|
{
|
|
1482
1483
|
dateFrom: day2,
|
|
@@ -1646,7 +1647,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1646
1647
|
usageFromCache: usageData.fromCache
|
|
1647
1648
|
};
|
|
1648
1649
|
}
|
|
1649
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1650
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
1650
1651
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1651
1652
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1652
1653
|
env
|
|
@@ -1654,7 +1655,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1654
1655
|
return { room, ...result?.data ?? {} };
|
|
1655
1656
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1656
1657
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1657
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1658
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
1658
1659
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1659
1660
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1660
1661
|
env
|
|
@@ -2065,7 +2066,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2065
2066
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
2066
2067
|
} else {
|
|
2067
2068
|
try {
|
|
2068
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2069
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2069
2070
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
2070
2071
|
const renderExtra = {};
|
|
2071
2072
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2387,7 +2388,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2387
2388
|
});
|
|
2388
2389
|
};
|
|
2389
2390
|
const readBack = async () => {
|
|
2390
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2391
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2391
2392
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2392
2393
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2393
2394
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2414,7 +2415,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2414
2415
|
const fields = payload?.invitationFields ?? {};
|
|
2415
2416
|
const started = Date.now();
|
|
2416
2417
|
try {
|
|
2417
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2418
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2418
2419
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2419
2420
|
const rendered = await render.handler(
|
|
2420
2421
|
{
|
|
@@ -2490,9 +2491,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
2490
2491
|
throw meetingValidationError("context_mismatch", "\u786E\u8BA4\u4E0A\u4E0B\u6587\u5DF2\u53D8\u5316\uFF08\u79DF\u6237\u6216\u767B\u5F55\u8D26\u53F7\u4E0D\u540C\uFF09\uFF0C\u8BF7\u91CD\u65B0\u6267\u884C prepare");
|
|
2491
2492
|
}
|
|
2492
2493
|
const payload = lease?.payload ?? {};
|
|
2493
|
-
const { createWorkflowHost } = await import("./host-
|
|
2494
|
+
const { createWorkflowHost } = await import("./host-2ED2KC4X.js");
|
|
2494
2495
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2495
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2496
|
+
const { getWorkflowOperation } = await import("./registry-BAWCWV4D.js");
|
|
2496
2497
|
const wfEnv = {
|
|
2497
2498
|
...workflowEnv(env),
|
|
2498
2499
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2542,7 +2543,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2542
2543
|
const groupPayload2 = payload?.groupChat;
|
|
2543
2544
|
if (groupPayload2) {
|
|
2544
2545
|
try {
|
|
2545
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2546
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-UM665WDZ.js");
|
|
2546
2547
|
groupChat2 = {
|
|
2547
2548
|
...await ensureMeetingGroupChat(env, {
|
|
2548
2549
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2558,7 +2559,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2558
2559
|
}
|
|
2559
2560
|
if (groupChat2 && groupChat2.ok) {
|
|
2560
2561
|
try {
|
|
2561
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2562
|
+
const { savePendingForm } = await import("./group-chat-UM665WDZ.js");
|
|
2562
2563
|
await savePendingForm(env, {
|
|
2563
2564
|
workflowId: String(payload.workflowId ?? ""),
|
|
2564
2565
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2628,7 +2629,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2628
2629
|
let meetingId = "";
|
|
2629
2630
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2630
2631
|
if (waitSeconds > 0) {
|
|
2631
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2632
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2632
2633
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2633
2634
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2634
2635
|
const pollStart = Date.now();
|
|
@@ -2678,7 +2679,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2678
2679
|
if (groupPayload) {
|
|
2679
2680
|
const groupStart = Date.now();
|
|
2680
2681
|
try {
|
|
2681
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2682
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-UM665WDZ.js");
|
|
2682
2683
|
const group = await ensureMeetingGroupChat(env, {
|
|
2683
2684
|
meetingName: String(payload.mtName ?? ""),
|
|
2684
2685
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2710,7 +2711,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2710
2711
|
if (meetingId) {
|
|
2711
2712
|
const invitationStart = Date.now();
|
|
2712
2713
|
try {
|
|
2713
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2714
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2714
2715
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2715
2716
|
const rendered = await render.handler(
|
|
2716
2717
|
{
|
|
@@ -2871,7 +2872,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2871
2872
|
),
|
|
2872
2873
|
handler: async (args, env) => {
|
|
2873
2874
|
if (String(args.entryMode ?? "") === "direct_form" || args.skipPreflight === true && args.confirm !== true) {
|
|
2874
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2875
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
|
|
2875
2876
|
return getMeetingOperation2("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
2876
2877
|
}
|
|
2877
2878
|
if (args.confirm !== true) {
|
|
@@ -2888,7 +2889,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2888
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`
|
|
2889
2890
|
);
|
|
2890
2891
|
}
|
|
2891
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2892
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2892
2893
|
const prepareStartedAt = Date.now();
|
|
2893
2894
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2894
2895
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2987,7 +2988,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2987
2988
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2988
2989
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2989
2990
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2990
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2991
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-3P7EWGNZ.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2991
2992
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2992
2993
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2993
2994
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -3117,6 +3118,7 @@ export {
|
|
|
3117
3118
|
resolveWorkflowId,
|
|
3118
3119
|
crmPendingNames,
|
|
3119
3120
|
needsCrmSelection,
|
|
3121
|
+
decideEntryMode,
|
|
3120
3122
|
patchMeetingCrmMembers,
|
|
3121
3123
|
renderPreInvitation,
|
|
3122
3124
|
meetingEbCreateFlowOperations,
|