weaver-work-cli 0.1.49 → 0.1.50
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-MU2LPI5P.js → attachment-content-EJYIOJPH.js} +3 -3
- package/dist/chunks/{chunk-6GWU63YF.js → chunk-3NCFFHB2.js} +1 -1
- package/dist/chunks/{chunk-NBEWUR7L.js → chunk-6T53BSWZ.js} +158 -44
- package/dist/chunks/{chunk-EJVA5ZVB.js → chunk-7AYQJSFY.js} +2 -2
- package/dist/chunks/{chunk-D2QRZUW4.js → chunk-7ECB22G3.js} +35 -28
- package/dist/chunks/{chunk-72MI3MBX.js → chunk-ATEXBEPD.js} +55 -15
- package/dist/chunks/{chunk-3NV2ETZR.js → chunk-BFKLQLBK.js} +8 -8
- package/dist/chunks/{chunk-BRRW7CWA.js → chunk-HARQF5IP.js} +26 -26
- package/dist/chunks/{chunk-K3BT54CU.js → chunk-K67FODVC.js} +1 -1
- package/dist/chunks/{chunk-YLCYX7LE.js → chunk-KMRT7NAT.js} +18 -5
- package/dist/chunks/{chunk-GEOMANP7.js → chunk-MCZG6HPM.js} +2 -2
- package/dist/chunks/{chunk-ZKEUGS2U.js → chunk-RYFRGTUV.js} +4 -4
- package/dist/chunks/{chunk-3X7VOSBA.js → chunk-WNJUGI2F.js} +1 -1
- package/dist/chunks/{chunk-KV5SOWMS.js → chunk-YB3AJYPY.js} +4 -4
- package/dist/chunks/{conflict-6347A7YK.js → conflict-C4UDHCWV.js} +2 -2
- package/dist/chunks/{contract-N6P2HIIE.js → contract-VUC6JOPG.js} +464 -9
- package/dist/chunks/{create-flow-7WG7LVX5.js → create-flow-6OG2LYBD.js} +6 -6
- package/dist/chunks/{env-LHRKSLG6.js → env-WP57TF2S.js} +2 -2
- package/dist/chunks/{factory-2H7Z4RWJ.js → factory-VUXI7N5C.js} +1 -1
- package/dist/chunks/{fna-ZVB2IILI.js → fna-ECOYBQYL.js} +328 -5
- package/dist/chunks/{group-chat-EW6PNDDT.js → group-chat-UQRGXILK.js} +3 -3
- package/dist/chunks/{im-3RCNL5GT.js → im-TN2JYVGJ.js} +2 -2
- package/dist/chunks/{invoice-FXWH5GPO.js → invoice-E7GOITEU.js} +1 -1
- package/dist/chunks/{meeting-N2FQBHXI.js → meeting-4BBLVAWM.js} +10 -10
- package/dist/chunks/{msg-parse-4GSQ2WTO.js → msg-parse-FPFVPMYI.js} +5 -1
- package/dist/chunks/{reception-MYOKJULO.js → reception-QGPNTGHG.js} +98 -82
- package/dist/chunks/{registry-CKUVBS53.js → registry-5CRCN2TV.js} +10 -10
- package/dist/chunks/{registry-BUTEDK3C.js → registry-E5RQJVWN.js} +2 -2
- package/dist/chunks/{registry-7VZ6YJUF.js → registry-V4CHRQDI.js} +1 -1
- package/dist/chunks/{room-recommend-MBCYENQ2.js → room-recommend-AYR3UG7R.js} +4 -4
- package/dist/chunks/{schedule-5IFMCXME.js → schedule-JZEFIXUS.js} +4 -4
- package/dist/chunks/{workflow-2TRU2ZSP.js → workflow-3ZAF2J5E.js} +1 -1
- package/dist/index.js +7 -7
- package/dist/shortcuts/contract/host.js +11 -0
- package/dist/shortcuts/contract/index.js +13 -0
- package/dist/shortcuts/contract/manifest.js +53 -0
- package/dist/shortcuts/contract/operations/performance.js +58 -7
- package/dist/shortcuts/contract/operations/quote.js +283 -1
- package/dist/shortcuts/contract/operations/registry.js +2 -0
- package/dist/shortcuts/contract/operations/save-recognize.js +151 -0
- package/dist/shortcuts/fna/host.js +4 -2
- package/dist/shortcuts/fna/manifest.js +14 -5
- package/dist/shortcuts/fna/operations/audit.js +334 -0
- package/dist/shortcuts/fna/operations/registry.js +2 -0
- package/dist/shortcuts/im/operations/at-mention.js +6 -3
- package/dist/shortcuts/im/operations/msg-parse.js +35 -5
- package/dist/shortcuts/im/operations/msg-sync.js +3 -1
- package/dist/shortcuts/im/operations/msg-write.js +57 -9
- package/dist/shortcuts/invoice/manifest.js +1 -1
- package/dist/shortcuts/meeting/operations/from-group-chat.js +16 -2
- package/dist/shortcuts/reception/constants.js +3 -7
- package/dist/shortcuts/reception/operations/leads.js +30 -6
- package/dist/shortcuts/reception/operations/panels.js +3 -2
- package/dist/shortcuts/workflow/operations/read.js +58 -14
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +140 -24
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +42 -14
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +4 -6
- package/docs/SKILL.md +1 -1
- package/docs/_catalog.md +1 -1
- package/docs/fna.md +11 -4
- package/package.json +1 -1
- package/skill-template/business-info.json +6 -1
- package/skill-template/domains/qiyecheng.md +4 -2
- package/skills/weaver-e10-jinchengda/SKILL.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +5 -5
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +44 -2
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +219 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +50 -30
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +24 -15
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +96 -2
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +43 -0
- package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +997 -0
- package/skills/weaver-e10-jinchengda/scripts/render_ebdf_list_card.py +265 -0
- package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +83 -0
- package/skills/weaver-e10-jinchengda/scripts/verify_docx_placeholders.py +118 -0
- package/skills/weaver-e10-qiyecheng/SKILL.md +21 -7
- package/skills/weaver-e10-qiyecheng/references/ai-check-audit.md +104 -0
- package/skills/weaver-e10-qiyecheng/references/catalog.md +17 -3
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +136 -30
- package/skills/weaver-e10-reception-flow/SKILL.md +43 -6
- package/skills/weaver-e10-reception-flow/references/guide.md +1 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +3 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +6 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +3 -3
- package/skills/weaver-e10-workflow/SKILL.md +2 -1
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +29 -6
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +162 -10
- package/skills/weaver-e10-yepiaotong/SKILL.md +10 -5
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +19 -32
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +6 -45
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +5 -5
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +4 -37
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +2 -2
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +4 -4
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +22 -35
- package/skills/weaver-e10-yimiaoban/SKILL.md +8 -6
- package/skills/weaver-e10-yimiaoban/references/msg-read.md +20 -0
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +7 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +18 -15
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
parseContent,
|
|
17
17
|
parseMsg,
|
|
18
18
|
senderName
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KMRT7NAT.js";
|
|
20
20
|
|
|
21
21
|
// src/shortcuts/im/operations/types.ts
|
|
22
22
|
var READ = "read";
|
|
@@ -1726,7 +1726,9 @@ async function enrichMessages(rawRows, host, options = {}) {
|
|
|
1726
1726
|
type: parsed.type,
|
|
1727
1727
|
typeName: parsed.typeName,
|
|
1728
1728
|
title: options.titleFirst ? parsed.title : void 0,
|
|
1729
|
-
|
|
1729
|
+
// markdown 消息(vt=1)保留原文换行/表格结构不折叠;普通文本维持 ⏎ 单行化
|
|
1730
|
+
content: parsed.format === "markdown" ? parsed.content : collapseNewlines(parsed.content),
|
|
1731
|
+
contentFormat: parsed.format,
|
|
1730
1732
|
...quoteSummary ? { quote: quoteSummary, quoteTime: Number(quoteSummary.msgtime) > 0 ? formatFullTime(Math.floor(Number(quoteSummary.msgtime) / 1e3)) : void 0 } : {},
|
|
1731
1733
|
must: parsed.must,
|
|
1732
1734
|
fileName: parsed.fileName,
|
|
@@ -2172,13 +2174,13 @@ function buildAtText(text, entries) {
|
|
|
2172
2174
|
const aus = [...used, ...rest];
|
|
2173
2175
|
return { v, aus };
|
|
2174
2176
|
}
|
|
2175
|
-
function buildAtMsgJson(v, aus, self, extra = {}) {
|
|
2177
|
+
function buildAtMsgJson(v, aus, self, extra = {}, txtExtra = {}) {
|
|
2176
2178
|
return JSON.stringify({
|
|
2177
2179
|
bgc: "",
|
|
2178
2180
|
cnt: "0",
|
|
2179
2181
|
dev: 5,
|
|
2180
2182
|
display: "",
|
|
2181
|
-
dt: [{ txt: { aus, ft: "china", next: "0", v } }],
|
|
2183
|
+
dt: [{ txt: { aus, ft: "china", next: "0", v, ...txtExtra } }],
|
|
2182
2184
|
guid: "0",
|
|
2183
2185
|
idx: "0",
|
|
2184
2186
|
opb: ["received", "reply"],
|
|
@@ -2204,13 +2206,20 @@ function normalizeContent(args) {
|
|
|
2204
2206
|
const txt = txtRaw.trim() !== "" ? txtRaw : void 0;
|
|
2205
2207
|
const imgPath = args.img || args.imgPath ? String(args.img || args.imgPath) : void 0;
|
|
2206
2208
|
const filePath = args.file || args.filePath ? String(args.file || args.filePath) : void 0;
|
|
2209
|
+
const markdown = args.markdown === true || args.markdown === "true" || args.markdown === "1";
|
|
2207
2210
|
if (!txt && !imgPath && !filePath) {
|
|
2208
2211
|
throw imValidationError("content_required", "txt / img / file \u81F3\u5C11\u63D0\u4F9B\u4E00\u79CD\uFF08\u7A7A\u767D\u6587\u672C\u4E0D\u7B97\u5185\u5BB9\uFF0C\u7981\u6B62\u53D1\u9001\u7A7A\u767D\u6D88\u606F\uFF09");
|
|
2209
2212
|
}
|
|
2210
2213
|
if (imgPath && filePath) {
|
|
2211
2214
|
throw imValidationError("content_conflict", "img \u4E0E file \u4E0D\u80FD\u540C\u65F6\u63D0\u4F9B\uFF08\u4E00\u6B21\u53D1\u4E00\u79CD\u5A92\u4F53\uFF09");
|
|
2212
2215
|
}
|
|
2213
|
-
|
|
2216
|
+
if (markdown && !txt) {
|
|
2217
|
+
throw imValidationError("markdown_requires_txt", "markdown:true \u5FC5\u987B\u540C\u65F6\u63D0\u4F9B txt\uFF08markdown \u4EC5\u652F\u6301\u6587\u672C\u6D88\u606F\uFF09");
|
|
2218
|
+
}
|
|
2219
|
+
if (markdown && (imgPath || filePath)) {
|
|
2220
|
+
throw imValidationError("markdown_txt_only", "markdown \u4EC5\u652F\u6301 txt \u6587\u672C\u6D88\u606F\uFF0C\u4E0D\u80FD\u4E0E img/file \u540C\u65F6\u4F7F\u7528");
|
|
2221
|
+
}
|
|
2222
|
+
return { txt, imgPath, filePath, markdown };
|
|
2214
2223
|
}
|
|
2215
2224
|
var sendSinglePair = makeWritePair({
|
|
2216
2225
|
action: "im.msg.send.single",
|
|
@@ -2237,11 +2246,13 @@ var sendSinglePair = makeWritePair({
|
|
|
2237
2246
|
toCid,
|
|
2238
2247
|
hasTxt: Boolean(content.txt),
|
|
2239
2248
|
hasImg: Boolean(content.imgPath),
|
|
2240
|
-
hasFile: Boolean(content.filePath)
|
|
2249
|
+
hasFile: Boolean(content.filePath),
|
|
2250
|
+
...content.markdown ? { contentFormat: "markdown" } : {}
|
|
2241
2251
|
};
|
|
2242
2252
|
const snapshot = { toUid, toCid };
|
|
2243
2253
|
if (content.txt) {
|
|
2244
2254
|
snapshot.txt = content.txt;
|
|
2255
|
+
snapshot.markdown = content.markdown;
|
|
2245
2256
|
summary.textPreview = content.txt.length > 60 ? `${content.txt.slice(0, 60)}\u2026` : content.txt;
|
|
2246
2257
|
}
|
|
2247
2258
|
if (quote) {
|
|
@@ -2264,11 +2275,18 @@ var sendSinglePair = makeWritePair({
|
|
|
2264
2275
|
async execute(plan, env) {
|
|
2265
2276
|
const body = { reciver: { cid: plan.toCid, uid: plan.toUid } };
|
|
2266
2277
|
const quoteRef = plan.quoteRef ?? null;
|
|
2278
|
+
const txtExtra = plan.markdown ? { vt: "1" } : {};
|
|
2279
|
+
const markdownTypeExtra = plan.markdown ? { type: "26" } : {};
|
|
2267
2280
|
if (quoteRef) {
|
|
2268
2281
|
const self = await env.host.getSelfIdentity();
|
|
2269
|
-
body.msg = buildAtMsgJson(String(plan.txt ?? ""), [], self, { ref: quoteRef });
|
|
2282
|
+
body.msg = buildAtMsgJson(String(plan.txt ?? ""), [], self, { ref: quoteRef, ...markdownTypeExtra }, txtExtra);
|
|
2270
2283
|
} else if (plan.txt !== void 0) {
|
|
2271
|
-
|
|
2284
|
+
if (plan.markdown) {
|
|
2285
|
+
const self = await env.host.getSelfIdentity();
|
|
2286
|
+
body.msg = buildAtMsgJson(plan.txt, [], self, markdownTypeExtra, txtExtra);
|
|
2287
|
+
} else {
|
|
2288
|
+
body.txt = plan.txt;
|
|
2289
|
+
}
|
|
2272
2290
|
}
|
|
2273
2291
|
if (plan.imgPath) {
|
|
2274
2292
|
const fileObj = await env.host.uploadFile(plan.imgPath, { shareUsers: plan.toUid });
|
|
@@ -2302,10 +2320,11 @@ var sendGroupPair = makeWritePair({
|
|
|
2302
2320
|
if (quote && !content.txt) {
|
|
2303
2321
|
throw imValidationError("quote_requires_txt", "quoteMsgId/replyMsgId \u4EC5\u652F\u6301\u6587\u672C\u6D88\u606F\uFF08txt\uFF09");
|
|
2304
2322
|
}
|
|
2305
|
-
const summary = { action: "\u53D1\u9001\u7FA4\u804A\u6D88\u606F", groupId, hasTxt: Boolean(content.txt), hasImg: Boolean(content.imgPath), hasFile: Boolean(content.filePath) };
|
|
2323
|
+
const summary = { action: "\u53D1\u9001\u7FA4\u804A\u6D88\u606F", groupId, hasTxt: Boolean(content.txt), hasImg: Boolean(content.imgPath), hasFile: Boolean(content.filePath), ...content.markdown ? { contentFormat: "markdown" } : {} };
|
|
2306
2324
|
const snapshot = { groupId };
|
|
2307
2325
|
if (content.txt) {
|
|
2308
2326
|
snapshot.txt = content.txt;
|
|
2327
|
+
snapshot.markdown = content.markdown;
|
|
2309
2328
|
summary.textPreview = content.txt.length > 60 ? `${content.txt.slice(0, 60)}\u2026` : content.txt;
|
|
2310
2329
|
}
|
|
2311
2330
|
if (atEntries.length) {
|
|
@@ -2333,12 +2352,19 @@ var sendGroupPair = makeWritePair({
|
|
|
2333
2352
|
const body = { groupId: plan.groupId };
|
|
2334
2353
|
const atEntries = Array.isArray(plan.atEntries) ? plan.atEntries : [];
|
|
2335
2354
|
const quoteRef = plan.quoteRef ?? null;
|
|
2355
|
+
const txtExtra = plan.markdown ? { vt: "1" } : {};
|
|
2356
|
+
const markdownTypeExtra = plan.markdown ? { type: "26" } : {};
|
|
2336
2357
|
if (atEntries.length || quoteRef) {
|
|
2337
2358
|
const { v, aus } = buildAtText(String(plan.txt ?? ""), atEntries);
|
|
2338
2359
|
const self = await env.host.getSelfIdentity();
|
|
2339
|
-
body.msg = buildAtMsgJson(v, aus, self, quoteRef ? { [plan.quoteKind === "reply" ? "rmsg" : "ref"]: quoteRef } : {});
|
|
2360
|
+
body.msg = buildAtMsgJson(v, aus, self, { ...quoteRef ? { [plan.quoteKind === "reply" ? "rmsg" : "ref"]: quoteRef } : {}, ...markdownTypeExtra }, txtExtra);
|
|
2340
2361
|
} else if (plan.txt !== void 0) {
|
|
2341
|
-
|
|
2362
|
+
if (plan.markdown) {
|
|
2363
|
+
const self = await env.host.getSelfIdentity();
|
|
2364
|
+
body.msg = buildAtMsgJson(plan.txt, [], self, markdownTypeExtra, txtExtra);
|
|
2365
|
+
} else {
|
|
2366
|
+
body.txt = plan.txt;
|
|
2367
|
+
}
|
|
2342
2368
|
}
|
|
2343
2369
|
if (plan.imgPath) {
|
|
2344
2370
|
const fileObj = await env.host.uploadFile(plan.imgPath, { shareGroups: plan.groupId });
|
|
@@ -2492,6 +2518,13 @@ var dingSendPair = makeWritePair({
|
|
|
2492
2518
|
const txtRaw = args.txt !== void 0 && args.txt !== null ? String(args.txt) : "";
|
|
2493
2519
|
const txt = txtRaw.trim() !== "" ? txtRaw : "";
|
|
2494
2520
|
if (!convertMsgid && !txt) throw imValidationError("content_required", "\u666E\u901A\u5FC5\u8FBE\u9700 txt\uFF1B\u8F6C\u5FC5\u8FBE\u9700 convertMsgid");
|
|
2521
|
+
const markdown = args.markdown === true || args.markdown === "true" || args.markdown === "1";
|
|
2522
|
+
if (markdown && convertMsgid) {
|
|
2523
|
+
throw imValidationError("markdown_txt_only", "markdown \u4EC5\u652F\u6301\u666E\u901A\u5FC5\u8FBE\uFF08txt\uFF09\uFF0C\u8F6C\u5FC5\u8FBE\u6CBF\u7528\u6E90\u6D88\u606F\u683C\u5F0F");
|
|
2524
|
+
}
|
|
2525
|
+
if (markdown && !txt) {
|
|
2526
|
+
throw imValidationError("markdown_requires_txt", "markdown:true \u5FC5\u987B\u540C\u65F6\u63D0\u4F9B txt");
|
|
2527
|
+
}
|
|
2495
2528
|
if (args.unreadOnly === true && !groupId) {
|
|
2496
2529
|
throw imValidationError("unread_only_group_only", "unreadOnly \u4EC5\u652F\u6301\u7FA4\u804A\u8F6C\u5FC5\u8FBE\uFF08\u9700\u63D0\u4F9B groupId\uFF09");
|
|
2497
2530
|
}
|
|
@@ -2503,6 +2536,7 @@ var dingSendPair = makeWritePair({
|
|
|
2503
2536
|
targetType: groupId ? "\u7FA4\u804A" : "\u5355\u804A",
|
|
2504
2537
|
...groupId ? { groupId } : { toUid },
|
|
2505
2538
|
...convertMsgid ? { convertMsgid } : { textPreview: txt.length > 60 ? `${txt.slice(0, 60)}\u2026` : txt },
|
|
2539
|
+
...markdown ? { contentFormat: "markdown" } : {},
|
|
2506
2540
|
sendMsg: args.sendMsg !== void 0 ? Number(args.sendMsg) : 1,
|
|
2507
2541
|
showType: args.showType !== void 0 ? Number(args.showType) : 0
|
|
2508
2542
|
};
|
|
@@ -2511,6 +2545,7 @@ var dingSendPair = makeWritePair({
|
|
|
2511
2545
|
toUid: toUid || void 0,
|
|
2512
2546
|
toCid: args.toCid !== void 0 ? str(args.toCid) : void 0,
|
|
2513
2547
|
txt: txt || void 0,
|
|
2548
|
+
markdown,
|
|
2514
2549
|
convertMsgid: convertMsgid || void 0,
|
|
2515
2550
|
unreadOnly: args.unreadOnly === true,
|
|
2516
2551
|
toUids: args.toUids !== void 0 ? Array.isArray(args.toUids) ? args.toUids.map((x) => String(x)) : String(args.toUids).split(",").map((s) => s.trim()).filter(Boolean) : void 0,
|
|
@@ -2653,6 +2688,8 @@ var dingSendPair = makeWritePair({
|
|
|
2653
2688
|
} else {
|
|
2654
2689
|
content = plan.txt;
|
|
2655
2690
|
mkind = 1;
|
|
2691
|
+
const mdType = plan.markdown ? "26" : "1";
|
|
2692
|
+
const txtSeg = plan.markdown ? { v: plan.txt, vt: "1", next: "0", ft: "china" } : { v: plan.txt, next: "0", ft: "china" };
|
|
2656
2693
|
msgEntity = JSON.stringify({
|
|
2657
2694
|
ver: "1.0",
|
|
2658
2695
|
dev: 5,
|
|
@@ -2666,11 +2703,11 @@ var dingSendPair = makeWritePair({
|
|
|
2666
2703
|
sysId: "",
|
|
2667
2704
|
weaOaId: "",
|
|
2668
2705
|
bgc: "",
|
|
2669
|
-
type:
|
|
2670
|
-
dt: [{ txt:
|
|
2706
|
+
type: mdType,
|
|
2707
|
+
dt: [{ txt: txtSeg }],
|
|
2671
2708
|
tf: "1"
|
|
2672
2709
|
});
|
|
2673
|
-
msgTitle = JSON.stringify({ sname: myName, suid: myUid, scid: myCid, display: "0", type:
|
|
2710
|
+
msgTitle = JSON.stringify({ sname: myName, suid: myUid, scid: myCid, display: "0", type: mdType, dt: [{ txt: txtSeg }], vv: "", des: "", tf: "1" });
|
|
2674
2711
|
}
|
|
2675
2712
|
if (plan.groupId) {
|
|
2676
2713
|
targetType = 2;
|
|
@@ -2751,6 +2788,7 @@ var msgWriteOps = [
|
|
|
2751
2788
|
toUid: { type: "string", pattern: "^\\d+$", description: "\u63A5\u6536\u4EBA uid" },
|
|
2752
2789
|
toCid: { type: "string", pattern: "^\\d+$", description: "\u63A5\u6536\u4EBA cid" },
|
|
2753
2790
|
txt: { type: "string", description: "\u6587\u672C\u5185\u5BB9" },
|
|
2791
|
+
markdown: { type: "boolean", description: "true \u65F6 txt \u6309 markdown \u53D1\u9001\uFF08\u5916\u5C42 type=26 + txt \u6BB5 vt=1\uFF09\uFF0C\u5BA2\u6237\u7AEF\u6309 markdown \u6E32\u67D3\uFF1B\u4EC5\u652F\u6301\u7EAF\u6587\u672C\u6D88\u606F\uFF0C\u4E0D\u80FD\u4E0E img/file/quoteMsgId \u51B2\u7A81\uFF08quote \u53EF\u7EC4\u5408\uFF09" },
|
|
2754
2792
|
quoteMsgId: { type: "string", pattern: "^\\d+$", description: "\u5F15\u7528\u8BE5\u6D88\u606F\uFF08\u5355\u804A\u4EC5\u652F\u6301\u5F15\u7528\uFF0C\u4E0D\u652F\u6301\u56DE\u590D\uFF1B\u4EC5 txt \u6587\u672C\u6D88\u606F\uFF09\uFF1B\u4F20\u5355\u804A\u4F1A\u8BDD\u5185\u6D88\u606F id\uFF08ser_msgid\uFF09\uFF0Cprepare \u9636\u6BB5\u81EA\u52A8\u5B9A\u4F4D\u5E76\u7EC4\u88C5 ref" },
|
|
2755
2793
|
img: { type: "string", description: "\u672C\u5730\u56FE\u7247\u8DEF\u5F84\uFF08\u53D1\u9001\u524D\u4F1A\u4E0A\u4F20\u5230 E10 \u6587\u4EF6\u670D\u52A1\uFF09" },
|
|
2756
2794
|
file: { type: "string", description: "\u672C\u5730\u6587\u4EF6\u8DEF\u5F84" }
|
|
@@ -2761,6 +2799,7 @@ var msgWriteOps = [
|
|
|
2761
2799
|
...buildMsgWriteDefinition("im.msg.send.group", "msg.send.group", "\u53D1\u9001\u7FA4\u804A\u6D88\u606F\uFF08\u6587\u672C/\u56FE\u7247/\u6587\u4EF6\uFF0C\u6587\u672C\u652F\u6301 @ \u63D0\u53CA\u4E0E\u5F15\u7528/\u56DE\u590D\uFF09", {
|
|
2762
2800
|
groupId: { type: "string", pattern: "^\\d+$", description: "\u7FA4 id" },
|
|
2763
2801
|
txt: { type: "string", description: "\u6587\u672C\u5185\u5BB9\uFF1B@ \u4F4D\u7F6E\u76F4\u63A5\u5199 @<\u59D3\u540D>\uFF08\u5982 @\u5F20\u4E09\uFF09\u6216 @\u5168\u4F53\u6210\u5458/@\u6240\u6709\u4EBA" },
|
|
2802
|
+
markdown: { type: "boolean", description: "true \u65F6 txt \u6309 markdown \u53D1\u9001\uFF08\u5916\u5C42 type=26 + txt \u6BB5 vt=1\uFF09\uFF0C\u5BA2\u6237\u7AEF\u6309 markdown \u6E32\u67D3\uFF1B\u4EC5\u652F\u6301\u7EAF\u6587\u672C\u6D88\u606F\uFF0C\u4E0D\u80FD\u4E0E img/file \u540C\u7528\uFF0C\u53EF\u4E0E @/\u5F15\u7528/\u56DE\u590D\u7EC4\u5408" },
|
|
2764
2803
|
atAll: { type: "boolean", description: "@\u5168\u4F53\u6210\u5458\uFF08\u670D\u52A1\u7AEF\u56FA\u5B9A id=88\uFF09\uFF0C\u4EC5\u7FA4\u804A\u3001\u4EC5 txt \u6587\u672C\u6D88\u606F\u751F\u6548" },
|
|
2765
2804
|
atUids: { type: "array", items: { type: "string" }, description: "@\u5177\u4F53\u4EBA uid \u5217\u8868\uFF0C\u4EC5\u7FA4\u804A\uFF1Bprepare \u9636\u6BB5\u4F1A\u9010\u4E2A\u6838\u5B9E\u662F\u5426\u5728\u7FA4\u5185\uFF0C\u4E0D\u5728\u7FA4\u5185\u5219\u62D2\u7EDD\u53D1\u9001" },
|
|
2766
2805
|
quoteMsgId: { type: "string", pattern: "^\\d+$", description: "\u5F15\u7528\u8BE5\u6D88\u606F\uFF08\u4E0E replyMsgId \u4E92\u65A5\uFF0C\u4EC5\u7FA4\u804A\u3001\u4EC5 txt \u6587\u672C\u6D88\u606F\uFF09\uFF1B\u4F20\u6D88\u606F id\uFF08ser_msgid\uFF09\uFF0Cprepare \u9636\u6BB5\u81EA\u52A8\u5B9A\u4F4D\u88AB\u5F15\u6D88\u606F\u5E76\u7EC4\u88C5 ref" },
|
|
@@ -2786,6 +2825,7 @@ var msgWriteOps = [
|
|
|
2786
2825
|
toUid: { type: "string", pattern: "^\\d+$", description: "\u5355\u804A\u573A\u666F\u5BF9\u65B9 uid" },
|
|
2787
2826
|
toCid: { type: "string", pattern: "^\\d+$", description: "\u5355\u804A\u8F6C\u5FC5\u8FBE\u5BF9\u65B9 cid" },
|
|
2788
2827
|
txt: { type: "string", description: "\u666E\u901A\u5FC5\u8FBE\u6587\u672C" },
|
|
2828
|
+
markdown: { type: "boolean", description: "true \u65F6 txt \u6309 markdown \u53D1\u9001\uFF08\u5916\u5C42 type=26 + txt \u6BB5 vt=1\uFF09\uFF1B\u4EC5\u666E\u901A\u5FC5\u8FBE\u652F\u6301\uFF0C\u8F6C\u5FC5\u8FBE\u6CBF\u7528\u6E90\u6D88\u606F\u683C\u5F0F" },
|
|
2789
2829
|
convertMsgid: { type: "string", pattern: "^\\d+$", description: "\u8F6C\u5FC5\u8FBE\u6E90\u6D88\u606F id" },
|
|
2790
2830
|
unreadOnly: { type: "boolean", description: "\u7FA4\u8F6C\u5FC5\u8FBE\u4EC5\u53D1\u7ED9\u672A\u8BFB\u4EBA\u5458" },
|
|
2791
2831
|
toUids: { type: "array", items: { type: "string" }, description: "\u6307\u5B9A\u63A5\u6536\u4EBA uid" },
|
|
@@ -3146,7 +3186,7 @@ var sysmsgQuery = {
|
|
|
3146
3186
|
read_status: r?.read_status,
|
|
3147
3187
|
deal_status: r?.deal_status
|
|
3148
3188
|
}));
|
|
3149
|
-
const { collectI18nIds: collectI18nIds2, collectPersonIds: collectPersonIds2 } = await import("./msg-parse-
|
|
3189
|
+
const { collectI18nIds: collectI18nIds2, collectPersonIds: collectPersonIds2 } = await import("./msg-parse-FPFVPMYI.js");
|
|
3150
3190
|
const i18nIds = collectI18nIds2(msgRows);
|
|
3151
3191
|
const personIds = collectPersonIds2(msgRows);
|
|
3152
3192
|
for (const r of msgRows) if (r.from_uid) personIds.push(String(r.from_uid));
|
|
@@ -2,12 +2,12 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingStateDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3NCFFHB2.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError,
|
|
9
9
|
schemaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K67FODVC.js";
|
|
11
11
|
|
|
12
12
|
// src/shortcuts/meeting/operations/eb/group-chat.ts
|
|
13
13
|
import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
@@ -113,7 +113,7 @@ async function findGroupByName(env, name) {
|
|
|
113
113
|
const target = name.trim();
|
|
114
114
|
if (target === "") return null;
|
|
115
115
|
try {
|
|
116
|
-
const { getImOperation } = await import("./registry-
|
|
116
|
+
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
117
117
|
const search = getImOperation("im.group.search");
|
|
118
118
|
const imEnv = await buildImEnv(env);
|
|
119
119
|
const found = await search.handler({ name: target }, imEnv);
|
|
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
159
159
|
if (addressText === "[object Object]") addressText = "";
|
|
160
160
|
if (addressText) {
|
|
161
161
|
try {
|
|
162
|
-
const { resolveAddressRoom } = await import("./create-flow-
|
|
162
|
+
const { resolveAddressRoom } = await import("./create-flow-6OG2LYBD.js");
|
|
163
163
|
const room = await resolveAddressRoom(env, addressText);
|
|
164
164
|
if (room?.name) addressText = room.name;
|
|
165
165
|
} catch {
|
|
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
201
201
|
const group = String(groupId).trim();
|
|
202
202
|
if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
|
|
203
203
|
try {
|
|
204
|
-
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-
|
|
204
|
+
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-VUXI7N5C.js");
|
|
205
205
|
const session = await env.host.getSession();
|
|
206
206
|
await env.host.request({
|
|
207
207
|
method: "POST",
|
|
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
219
219
|
return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
|
|
220
220
|
}
|
|
221
221
|
try {
|
|
222
|
-
const { getMeetingOperation } = await import("./registry-
|
|
222
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
223
223
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
224
224
|
const read = await detail.handler({ id }, env);
|
|
225
225
|
const main = read?.data?.data ?? read?.data?.main ?? {};
|
|
@@ -235,7 +235,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
235
235
|
}
|
|
236
236
|
async function searchMyRequests(env, options = {}) {
|
|
237
237
|
try {
|
|
238
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
238
|
+
const { getWorkflowOperation } = await import("./registry-V4CHRQDI.js");
|
|
239
239
|
const op = getWorkflowOperation("workflow.search");
|
|
240
240
|
const wfEnv = await buildWorkflowEnv(env);
|
|
241
241
|
const args = { category: "mine", pageSize: 20, sort: "createTime:desc" };
|
|
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
|
|
|
267
267
|
const target = String(requestId).trim();
|
|
268
268
|
if (target === "") return null;
|
|
269
269
|
try {
|
|
270
|
-
const { getMeetingOperation } = await import("./registry-
|
|
270
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
271
271
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
272
272
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
273
273
|
const page = await list.handler({ pageSize: 30 }, env);
|
|
@@ -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-RYFRGTUV.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-YB3AJYPY.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WNJUGI2F.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-K67FODVC.js";
|
|
30
30
|
import {
|
|
31
31
|
CONTINUATION_TTL_MS,
|
|
32
32
|
CONTINUATION_TTL_SECONDS
|
|
@@ -273,7 +273,7 @@ function workflowEnv(env) {
|
|
|
273
273
|
async function loadCreateForm(env, workflowId) {
|
|
274
274
|
const { createWorkflowHost } = await import("./host-TUOIOEMC.js");
|
|
275
275
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
276
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
276
|
+
const { getWorkflowOperation } = await import("./registry-V4CHRQDI.js");
|
|
277
277
|
const wfEnv = {
|
|
278
278
|
...workflowEnv(env),
|
|
279
279
|
host: createWorkflowHost(env.ctx),
|
|
@@ -378,7 +378,7 @@ async function resolveAddressRoom(env, input) {
|
|
|
378
378
|
const text = String(input ?? "").trim();
|
|
379
379
|
if (!text) return null;
|
|
380
380
|
const ref = parseRoomRef(text);
|
|
381
|
-
const { loadRooms: loadRooms2 } = await import("./room-recommend-
|
|
381
|
+
const { loadRooms: loadRooms2 } = await import("./room-recommend-AYR3UG7R.js");
|
|
382
382
|
let rooms = [];
|
|
383
383
|
try {
|
|
384
384
|
rooms = (await loadRooms2(env, {})).rooms;
|
|
@@ -409,7 +409,7 @@ async function resolveRoomValue(env, input) {
|
|
|
409
409
|
const ref = parseRoomRef(text);
|
|
410
410
|
if (ref.id) {
|
|
411
411
|
try {
|
|
412
|
-
const { getMeetingOperation } = await import("./registry-
|
|
412
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
413
413
|
const detail = await getMeetingOperation("meeting.eb.room.detail").handler({ id: ref.id }, env);
|
|
414
414
|
const main = detail?.data?.mainTable ?? detail?.data?.data?.mainTable ?? {};
|
|
415
415
|
const name = String(main.room_name ?? "").trim() || ref.name || "";
|
|
@@ -521,7 +521,7 @@ async function shapeBrowserValues(env, values) {
|
|
|
521
521
|
const nameOnly = rows.filter((row) => row.id === "" && row.name !== "");
|
|
522
522
|
if (nameOnly.length > 0) {
|
|
523
523
|
try {
|
|
524
|
-
const { getMeetingOperation } = await import("./registry-
|
|
524
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
525
525
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
526
526
|
for (const row of nameOnly) {
|
|
527
527
|
const found = await search.handler({ keyword: row.name, limit: 5 }, env).catch(() => null);
|
|
@@ -715,7 +715,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
|
|
|
715
715
|
const missing = [];
|
|
716
716
|
if (entries.length > 0) {
|
|
717
717
|
try {
|
|
718
|
-
const { getMeetingOperation } = await import("./registry-
|
|
718
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
719
719
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
720
720
|
for (const entry of entries) {
|
|
721
721
|
if (entry.contacts.length > 0) continue;
|
|
@@ -974,8 +974,8 @@ function shouldAutoPickFlow(args) {
|
|
|
974
974
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
975
975
|
const started = Date.now();
|
|
976
976
|
try {
|
|
977
|
-
const { buildImEnv } = await import("./group-chat-
|
|
978
|
-
const { getImOperation } = await import("./registry-
|
|
977
|
+
const { buildImEnv } = await import("./group-chat-UQRGXILK.js");
|
|
978
|
+
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
979
979
|
const imEnv = await buildImEnv(env);
|
|
980
980
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
981
981
|
{ groupId, file: filePath },
|
|
@@ -1223,7 +1223,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1226
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1226
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-JZEFIXUS.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1227
1227
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1228
1228
|
let timeConfirmed = args.timeConfirmed === true || slotConfirmed;
|
|
1229
1229
|
const draft = await loadMeetingDraft(env, String(args.mt_name ?? "")).catch(() => null);
|
|
@@ -1252,7 +1252,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1252
1252
|
if (!beginHasTime || !timeConfirmed) {
|
|
1253
1253
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1254
1254
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1255
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1255
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
1256
1256
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1257
1257
|
{
|
|
1258
1258
|
dateFrom: day2,
|
|
@@ -1422,7 +1422,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1422
1422
|
usageFromCache: usageData.fromCache
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1425
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
1426
1426
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1427
1427
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1428
1428
|
env
|
|
@@ -1430,7 +1430,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1430
1430
|
return { room, ...result?.data ?? {} };
|
|
1431
1431
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1432
1432
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1433
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1433
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
1434
1434
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1435
1435
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1436
1436
|
env
|
|
@@ -1814,7 +1814,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1814
1814
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
1815
1815
|
} else {
|
|
1816
1816
|
try {
|
|
1817
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1817
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
1818
1818
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
1819
1819
|
const renderExtra = {};
|
|
1820
1820
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2135,7 +2135,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2135
2135
|
});
|
|
2136
2136
|
};
|
|
2137
2137
|
const readBack = async () => {
|
|
2138
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2138
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
2139
2139
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2140
2140
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2141
2141
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2162,7 +2162,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2162
2162
|
const fields = payload?.invitationFields ?? {};
|
|
2163
2163
|
const started = Date.now();
|
|
2164
2164
|
try {
|
|
2165
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2165
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
2166
2166
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2167
2167
|
const rendered = await render.handler(
|
|
2168
2168
|
{
|
|
@@ -2240,7 +2240,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2240
2240
|
const payload = lease?.payload ?? {};
|
|
2241
2241
|
const { createWorkflowHost } = await import("./host-TUOIOEMC.js");
|
|
2242
2242
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2243
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2243
|
+
const { getWorkflowOperation } = await import("./registry-V4CHRQDI.js");
|
|
2244
2244
|
const wfEnv = {
|
|
2245
2245
|
...workflowEnv(env),
|
|
2246
2246
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2290,7 +2290,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2290
2290
|
const groupPayload2 = payload?.groupChat;
|
|
2291
2291
|
if (groupPayload2) {
|
|
2292
2292
|
try {
|
|
2293
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2293
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-UQRGXILK.js");
|
|
2294
2294
|
groupChat2 = {
|
|
2295
2295
|
...await ensureMeetingGroupChat(env, {
|
|
2296
2296
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2306,7 +2306,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
if (groupChat2 && groupChat2.ok) {
|
|
2308
2308
|
try {
|
|
2309
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2309
|
+
const { savePendingForm } = await import("./group-chat-UQRGXILK.js");
|
|
2310
2310
|
await savePendingForm(env, {
|
|
2311
2311
|
workflowId: String(payload.workflowId ?? ""),
|
|
2312
2312
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2373,7 +2373,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2373
2373
|
let meetingId = "";
|
|
2374
2374
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2375
2375
|
if (waitSeconds > 0) {
|
|
2376
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2376
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
2377
2377
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2378
2378
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2379
2379
|
const pollStart = Date.now();
|
|
@@ -2423,7 +2423,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2423
2423
|
if (groupPayload) {
|
|
2424
2424
|
const groupStart = Date.now();
|
|
2425
2425
|
try {
|
|
2426
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2426
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-UQRGXILK.js");
|
|
2427
2427
|
const group = await ensureMeetingGroupChat(env, {
|
|
2428
2428
|
meetingName: String(payload.mtName ?? ""),
|
|
2429
2429
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2455,7 +2455,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2455
2455
|
if (meetingId) {
|
|
2456
2456
|
const invitationStart = Date.now();
|
|
2457
2457
|
try {
|
|
2458
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2458
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
2459
2459
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2460
2460
|
const rendered = await render.handler(
|
|
2461
2461
|
{
|
|
@@ -2627,7 +2627,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2627
2627
|
`\u4F1A\u8BAE\u540D\u79F0/\u5185\u5BB9\u91CC\u63D0\u5230\u5BA2\u6237\u300C${crmMentioned}\u300D\uFF0C\u4F46\u6CA1\u4F20 crm_members \u2014\u2014 \u63D0\u4EA4\u540E\u300C\u53C2\u4F1A\u5BA2\u6237\u300D\u4F1A\u662F\u7A7A\u7684\u3002\u5148 meeting.eb.crm.search {"keyword":"${crmMentioned}"} \u62FF items[].customerId\uFF0C\u518D\u628A crm_members:[{"id":"<customerId>","name":"<\u5B8C\u6574\u5BA2\u6237\u540D>"}] \u4E00\u8D77\u4F20\uFF08\u5FC5\u987B\u5E26\u540D\u79F0\uFF0C\u53EA\u7ED9 id \u4F1A\u88AB\u9759\u9ED8\u5B58\u7A7A\uFF09\uFF1B\u786E\u5B9E\u4E0D\u9700\u8981\u586B\u53C2\u4F1A\u5BA2\u6237\u5C31\u4F20 crm_skip:true\u3002`
|
|
2628
2628
|
);
|
|
2629
2629
|
}
|
|
2630
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2630
|
+
const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
|
|
2631
2631
|
const prepareStartedAt = Date.now();
|
|
2632
2632
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2633
2633
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2725,7 +2725,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2725
2725
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2726
2726
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2727
2727
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2728
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2728
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-JZEFIXUS.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2729
2729
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2730
2730
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2731
2731
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -2329,7 +2329,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
|
|
|
2329
2329
|
);
|
|
2330
2330
|
}
|
|
2331
2331
|
if (endpoint.interfacePk === "create_meeting") {
|
|
2332
|
-
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-
|
|
2332
|
+
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-C4UDHCWV.js");
|
|
2333
2333
|
assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
|
|
2334
2334
|
}
|
|
2335
2335
|
const pkQuery = writePkQuery(endpoint, payload);
|
|
@@ -11,14 +11,14 @@ var MSG_TYPES = {
|
|
|
11
11
|
6: "\u56FE\u6587",
|
|
12
12
|
7: "\u89C6\u9891",
|
|
13
13
|
8: "\u4E8B\u9879",
|
|
14
|
-
9: "\u7CFB\u7EDF
|
|
14
|
+
9: "\u7CFB\u7EDF",
|
|
15
15
|
10: "\u64A4\u56DE",
|
|
16
16
|
11: "\u6296\u4E00\u6296",
|
|
17
17
|
12: "\u5C4F\u853D",
|
|
18
|
-
14: "\
|
|
19
|
-
15: "\
|
|
18
|
+
14: "\u5C45\u4E2D",
|
|
19
|
+
15: "\u7B2C\u4E09\u65B9",
|
|
20
20
|
16: "\u8BED\u97F3\u901A\u8BDD",
|
|
21
|
-
17: "\
|
|
21
|
+
17: "\u5408\u5E76\u8F6C\u53D1",
|
|
22
22
|
18: "\u89C6\u9891\u901A\u8BDD",
|
|
23
23
|
19: "\u7FA4\u516C\u544A",
|
|
24
24
|
20: "\u5206\u4EAB\u5730\u5740",
|
|
@@ -144,6 +144,16 @@ function parseSysMsg(msg) {
|
|
|
144
144
|
id18n: sys.id18n !== void 0 ? String(sys.id18n) : void 0
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
+
function isMarkdownTxt(txt) {
|
|
148
|
+
if (!txt || typeof txt !== "object") return false;
|
|
149
|
+
const vt = txt.vt;
|
|
150
|
+
return vt === 1 || vt === "1";
|
|
151
|
+
}
|
|
152
|
+
function isMarkdownMsg(msg) {
|
|
153
|
+
if (Number(msg?.type) !== 26) return false;
|
|
154
|
+
const dt = Array.isArray(msg?.dt) ? msg.dt : [];
|
|
155
|
+
return dt.some((seg) => isMarkdownTxt(seg?.txt));
|
|
156
|
+
}
|
|
147
157
|
function parseContent(value, opts = {}) {
|
|
148
158
|
const msg = parseMsg(value) || {};
|
|
149
159
|
const type = Number(msg.type || 0);
|
|
@@ -197,7 +207,8 @@ function parseContent(value, opts = {}) {
|
|
|
197
207
|
let title = "";
|
|
198
208
|
if (sys.etName) title = sys.etName;
|
|
199
209
|
else if (sys.id18n && opts.i18nMap?.[sys.id18n]) title = opts.i18nMap[sys.id18n];
|
|
200
|
-
|
|
210
|
+
const format = isMarkdownMsg(msg) ? "markdown" : "text";
|
|
211
|
+
return { type, typeName, content, title, must, fileName, sys, format };
|
|
201
212
|
}
|
|
202
213
|
function parseSegment(seg, opts = {}) {
|
|
203
214
|
if (!seg) return "";
|
|
@@ -359,6 +370,8 @@ export {
|
|
|
359
370
|
replaceMentions,
|
|
360
371
|
extractTxt,
|
|
361
372
|
parseSysMsg,
|
|
373
|
+
isMarkdownTxt,
|
|
374
|
+
isMarkdownMsg,
|
|
362
375
|
parseContent,
|
|
363
376
|
senderName,
|
|
364
377
|
extractImgs,
|
|
@@ -3,13 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readCache,
|
|
5
5
|
writeCache
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WNJUGI2F.js";
|
|
7
7
|
import {
|
|
8
8
|
SCHEMA_DATETIME_MINUTE,
|
|
9
9
|
meetingSuccess,
|
|
10
10
|
meetingValidationError,
|
|
11
11
|
schemaOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-K67FODVC.js";
|
|
13
13
|
|
|
14
14
|
// src/shortcuts/meeting/operations/eb/schedule.ts
|
|
15
15
|
var SCHEDULE_TYPE_PATH = "/api/ebuilder/form/formdata/v2/getFormDataList/queryAgendaType";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
meetingValidationError,
|
|
13
13
|
queryBody,
|
|
14
14
|
toIdCsv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-K67FODVC.js";
|
|
16
16
|
|
|
17
17
|
// src/shortcuts/meeting/operations/eb/conflict.ts
|
|
18
18
|
var ACTIVE_MT_STATUS = "1,2,8,9";
|
|
@@ -296,7 +296,7 @@ var ebMeetingWritePreflight = async ({ endpoint, payload, args, env, extras }) =
|
|
|
296
296
|
const items = rawMembers.split(/[,;,;]+/u).map((item) => item.trim()).filter((item) => item !== "");
|
|
297
297
|
const nameLike = items.filter((item) => !/^\d+$/u.test(item));
|
|
298
298
|
if (nameLike.length > 0) {
|
|
299
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
299
|
+
const { resolveMemberIdsByName } = await import("./schedule-JZEFIXUS.js");
|
|
300
300
|
const idsByName = await resolveMemberIdsByName(env, nameLike);
|
|
301
301
|
const resolved = items.map((item) => idsByName.get(item) ?? item);
|
|
302
302
|
payload.mainTable.hrm_members = [...new Set(resolved)].join(",");
|
|
@@ -429,7 +429,7 @@ var ebConflictRoom = {
|
|
|
429
429
|
let addressId = String(args.address ?? "").trim();
|
|
430
430
|
let resolvedRoom = null;
|
|
431
431
|
if (!addressId && String(args.room_name ?? "").trim()) {
|
|
432
|
-
const { resolveAddressRoom } = await import("./create-flow-
|
|
432
|
+
const { resolveAddressRoom } = await import("./create-flow-6OG2LYBD.js");
|
|
433
433
|
const resolved = await resolveAddressRoom(env, String(args.room_name));
|
|
434
434
|
if (!resolved?.id) {
|
|
435
435
|
throw meetingValidationError(
|
|
@@ -639,7 +639,7 @@ async function findCommonFreeSlots(env, input) {
|
|
|
639
639
|
const scheduleItems = [];
|
|
640
640
|
if (includeSchedule) {
|
|
641
641
|
try {
|
|
642
|
-
const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-
|
|
642
|
+
const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-JZEFIXUS.js");
|
|
643
643
|
const dayBegin = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 0, 0, 0, 0);
|
|
644
644
|
const dayEnd = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 23, 59, 0, 0);
|
|
645
645
|
const flow = await runScheduleConflictFlow(env, {
|
|
@@ -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-3NCFFHB2.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|