weaver-work-cli 0.1.67 → 0.1.68
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-WUZKAEZ6.js → archive-SJTC5265.js} +12 -8
- package/dist/chunks/{asset-ZPC5VWZM.js → asset-XM3Y4FVU.js} +12 -7
- package/dist/chunks/{attachment-content-7SDA6WER.js → attachment-content-IXIBOET6.js} +3 -3
- package/dist/chunks/{chunk-JU5OPHSY.js → chunk-3NJQTG6X.js} +36 -27
- package/dist/chunks/{chunk-IN6NXQ26.js → chunk-3Q5F4C5B.js} +47 -27
- package/dist/chunks/{chunk-DTJZOAO6.js → chunk-6OK4LW76.js} +7 -7
- package/dist/chunks/{chunk-5QYE52LG.js → chunk-7M5OYRK2.js} +18 -9
- package/dist/chunks/{chunk-6ZOSVKMT.js → chunk-BJNSTCJK.js} +1 -1
- package/dist/chunks/{chunk-RU7ZZQQQ.js → chunk-C5IIIT4D.js} +4 -4
- package/dist/chunks/{chunk-G7PQWD4L.js → chunk-DVFA3ODS.js} +38 -10
- package/dist/chunks/{chunk-ATEXBEPD.js → chunk-LCM5SSGJ.js} +4 -1
- package/dist/chunks/{chunk-KS6LXSCA.js → chunk-LXXR2RRE.js} +73 -69
- package/dist/chunks/{chunk-MRYKV5HN.js → chunk-O7KPHPXQ.js} +35 -35
- package/dist/chunks/{chunk-LNWFHNVK.js → chunk-OKUJY5YB.js} +318 -37
- package/dist/chunks/{chunk-C4YQJFZV.js → chunk-PAWXVT6H.js} +22 -11
- package/dist/chunks/{chunk-TXXO4TJT.js → chunk-QHKY4WZA.js} +2 -2
- package/dist/chunks/{chunk-33ANTJWB.js → chunk-QO6JYDIW.js} +3 -3
- package/dist/chunks/{chunk-R6GGDZ2C.js → chunk-X7ZTM4XG.js} +1 -1
- package/dist/chunks/{chunk-XARLZK6C.js → chunk-Y7RGBRLG.js} +3 -3
- package/dist/chunks/{chunk-4PYLZORW.js → chunk-YSEHTSHS.js} +8 -8
- package/dist/chunks/{conflict-DYCSX7CN.js → conflict-CEXRX2KP.js} +2 -2
- package/dist/chunks/{contract-N5WNHKHI.js → contract-PM3EUPZC.js} +38 -20
- package/dist/chunks/{create-flow-PABAGCK2.js → create-flow-DG6D7U2L.js} +6 -6
- package/dist/chunks/{data-QKWI5325.js → data-3G4GQS5P.js} +13 -1
- package/dist/chunks/{ebuilder-form-ZONRROK4.js → ebuilder-form-5ENYH7IF.js} +1 -1
- package/dist/chunks/{employee-PGMY6NI6.js → employee-QX57HEWS.js} +1 -1
- package/dist/chunks/{entry-mode-C2WPJQJM.js → entry-mode-KMP66KHE.js} +3 -3
- package/dist/chunks/{env-SEEXUXZF.js → env-SW6CTETI.js} +2 -2
- package/dist/chunks/{factory-WNLDOLJZ.js → factory-ETQAICPA.js} +1 -1
- package/dist/chunks/{group-chat-DOS4XWUN.js → group-chat-GTYMCBYS.js} +3 -3
- package/dist/chunks/{hrm-XKL27NX2.js → hrm-5WSMSKPX.js} +3 -3
- package/dist/chunks/{im-NDYIMASG.js → im-P7GNBRG6.js} +1 -1
- package/dist/chunks/{invoice-SMODTN2D.js → invoice-2QCVNXBG.js} +2 -1
- package/dist/chunks/{jiuchuanhui-3T5X7SB7.js → jiuchuanhui-FHGFYAHU.js} +4 -1
- package/dist/chunks/{meeting-2IWXP5IL.js → meeting-3PTTPUSG.js} +11 -11
- package/dist/chunks/{minute-doc-N4OR5OLP.js → minute-doc-3IMRJDJV.js} +2 -2
- package/dist/chunks/{okr-VZXRQGS4.js → okr-OIWJRYWY.js} +7 -1
- package/dist/chunks/{operations-62N6EP3C.js → operations-LQY3FTPH.js} +1 -1
- package/dist/chunks/{org-NFE7X7FK.js → org-MWWIFNAO.js} +1 -1
- package/dist/chunks/{reception-3FT2F66K.js → reception-2VSWJQ5N.js} +4 -2
- package/dist/chunks/{recruit-stage-WPGB5BDJ.js → recruit-stage-KHJYQE3I.js} +4 -1
- package/dist/chunks/{registry-JMNOXRST.js → registry-4S3RXXWS.js} +3 -3
- package/dist/chunks/{registry-E5RQJVWN.js → registry-AC33ZZVH.js} +1 -1
- package/dist/chunks/{registry-ABKBGGGK.js → registry-FXBOGH2X.js} +1 -1
- package/dist/chunks/{registry-XOUVCSV4.js → registry-PHPYTXS4.js} +11 -11
- package/dist/chunks/{room-recommend-TWIEVY44.js → room-recommend-BKCPAXQG.js} +4 -4
- package/dist/chunks/{schedule-XZ4UUX4E.js → schedule-Q3MPSZV6.js} +4 -4
- package/dist/chunks/{smart-extract-DEBLJPCQ.js → smart-extract-TYYKC244.js} +28 -17
- package/dist/chunks/{workflow-D7LBN5MZ.js → workflow-GEDHALMY.js} +1 -1
- package/dist/index.js +15 -15
- package/dist/shortcuts/archive/operations/archive-info.js +9 -5
- package/dist/shortcuts/asset/manifest.js +8 -3
- package/dist/shortcuts/contract/manifest.js +38 -20
- package/dist/shortcuts/data/manifest.js +13 -1
- package/dist/shortcuts/ebuilder-form/manifest.js +38 -10
- package/dist/shortcuts/hrm/operations/employee.js +22 -11
- package/dist/shortcuts/hrm/operations/org.js +18 -9
- package/dist/shortcuts/hrm/operations/position.js +24 -12
- package/dist/shortcuts/hrm/operations/resolve.js +18 -10
- package/dist/shortcuts/im/operations/group-read.js +4 -1
- package/dist/shortcuts/invoice/manifest.js +1 -0
- package/dist/shortcuts/jiuchuanhui/manifest.js +4 -1
- package/dist/shortcuts/meeting/operations/attachment-content.js +25 -16
- package/dist/shortcuts/meeting/operations/eb/member-expand.js +1 -0
- package/dist/shortcuts/meeting/operations/invitation.js +1 -1
- package/dist/shortcuts/meeting/operations/link.js +20 -17
- package/dist/shortcuts/okr/operations/read.js +7 -1
- package/dist/shortcuts/reception/manifest.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +4 -1
- package/dist/shortcuts/smart-extract/operations/structure.js +13 -10
- package/dist/shortcuts/smart-extract/operations/target.js +15 -7
- package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +26 -2
- package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +23 -4
- package/dist/shortcuts/workflow/operations/deepRead.js +295 -4
- package/dist/shortcuts/workflow/operations/read.js +32 -20
- package/package.json +1 -1
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/SKILL.md +10 -10
- package/skills/weaver-e10-workflow/aiDeepRead/templates//346/261/207/346/200/273/345/256/241/346/211/271-demo.html +92 -12
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +6 -4
- package/skills/weaver-e10-workflow/references/workflow-deep-read.md +44 -8
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +84 -12
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
|
@@ -10,44 +10,44 @@ import {
|
|
|
10
10
|
resolvePersonTokens,
|
|
11
11
|
resolveSelfPerson,
|
|
12
12
|
resolveWorkflowId
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-O7KPHPXQ.js";
|
|
14
14
|
import {
|
|
15
15
|
ebMeetingWritePreflight,
|
|
16
16
|
meetingEbConflictOperations
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6OK4LW76.js";
|
|
18
18
|
import {
|
|
19
19
|
listMeetingAttachments,
|
|
20
20
|
meetingAttachmentContentOperations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3NJQTG6X.js";
|
|
22
22
|
import {
|
|
23
23
|
PENDING_MARK,
|
|
24
24
|
renderDocx
|
|
25
25
|
} from "./chunk-WMRNO6IU.js";
|
|
26
26
|
import {
|
|
27
27
|
meetingEbGroupChatOperations
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-YSEHTSHS.js";
|
|
29
29
|
import {
|
|
30
30
|
meetingEntryOperations
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QHKY4WZA.js";
|
|
32
32
|
import {
|
|
33
33
|
meetingEbScheduleOperations
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-QO6JYDIW.js";
|
|
35
35
|
import {
|
|
36
36
|
ebRoomRecommendOperation,
|
|
37
37
|
inferRoomFloor,
|
|
38
38
|
recommendRooms,
|
|
39
39
|
rememberFrequentRoom
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-C5IIIT4D.js";
|
|
41
41
|
import {
|
|
42
42
|
cacheScopeSuffix,
|
|
43
43
|
readCache,
|
|
44
44
|
writeCache
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-BJNSTCJK.js";
|
|
46
46
|
import {
|
|
47
47
|
meetingEnvOperations,
|
|
48
48
|
meetingStateDir,
|
|
49
49
|
resolveMeetingEnvMode
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-X7ZTM4XG.js";
|
|
51
51
|
import {
|
|
52
52
|
EB_BASE,
|
|
53
53
|
EB_ENDPOINTS,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
toIdString,
|
|
80
80
|
verifyLease,
|
|
81
81
|
writeBody
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-Y7RGBRLG.js";
|
|
83
83
|
import {
|
|
84
84
|
CONTINUATION_TTL_SECONDS
|
|
85
85
|
} from "./chunk-7BDPM5ST.js";
|
|
@@ -1805,26 +1805,29 @@ var meetingLink = {
|
|
|
1805
1805
|
summary: "\u751F\u6210\u5BF9\u8C61\u8BE6\u60C5\u9875\u94FE\u63A5\uFF1AEB \u7248 /sp/ebdfpage/card/0/{objid}/{dataid}\uFF08\u6309 tag \u89E3\u6790 objid \u5E76\u7F13\u5B58\uFF09\uFF1B\u6807\u51C6\u7248\u4F1A\u8BAE /sp/meeting/meetingSingle?meetingId=\uFF08\u4F1A\u8BAE\u5BA4/\u4F1A\u8BAE\u7C7B\u578B\u65E0\u5355\u9875\uFF0C\u4E0D\u9644\u94FE\u63A5\uFF09",
|
|
1806
1806
|
capability: "link",
|
|
1807
1807
|
risk: "read",
|
|
1808
|
-
inputSchema:
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
type:
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1808
|
+
inputSchema: {
|
|
1809
|
+
...schemaOf(
|
|
1810
|
+
{
|
|
1811
|
+
dataId: { ...SCHEMA_ID, description: "\u5BF9\u8C61 id\uFF1A\u6807\u51C6\u7248=\u4F1A\u8BAE id\uFF1BEB \u7248=\u8868\u5355\u6570\u636E id\uFF08\u5355\u6761\u67E5\u8BE2\u7528\uFF09" },
|
|
1812
|
+
dataIds: { ...SCHEMA_ID_LIST, description: "\u6279\u91CF\uFF1A\u4E00\u6B21\u4E3A\u591A\u6761\u6570\u636E\u751F\u6210\u94FE\u63A5\uFF08\u5217\u8868\u8F93\u51FA\u7528\uFF09" },
|
|
1813
|
+
type: {
|
|
1814
|
+
type: "string",
|
|
1815
|
+
enum: [...EB_TYPES],
|
|
1816
|
+
description: "\u5BF9\u8C61\u7C7B\u522B\uFF08\u9ED8\u8BA4 meeting\uFF09\u3002\u6620\u5C04 EB \u8868 tag\uFF0C\u8BE6\u89C1 references/meeting-eb.md \u7684\u94FE\u63A5\u7AE0\u8282"
|
|
1817
|
+
},
|
|
1818
|
+
tag: { type: "string", description: "\u76F4\u63A5\u6307\u5B9A EB \u8868 tag\uFF08\u5982 uf_mt_detail\uFF09\uFF0C\u4E0E type \u4E8C\u9009\u4E00\uFF0C\u4F18\u5148\u4E8E type" },
|
|
1819
|
+
mode: {
|
|
1820
|
+
type: "string",
|
|
1821
|
+
enum: ["auto", "eb", "standard"],
|
|
1822
|
+
description: "auto\uFF08\u9ED8\u8BA4\uFF09=\u6309\u5F53\u524D\u73AF\u5883\u6A21\u5F0F\u81EA\u52A8\u5224\u5B9A\uFF1B\u4E5F\u53EF\u663E\u5F0F\u6307\u5B9A"
|
|
1823
|
+
},
|
|
1824
|
+
name: { type: "string", description: "\u94FE\u63A5\u663E\u793A\u540D\uFF1B\u4F20\u5165\u540E\u540C\u65F6\u8FD4\u56DE markdown \u5185\u8054\u94FE\u63A5" },
|
|
1825
|
+
refresh: { type: "boolean", description: "true=\u5F3A\u5236\u91CD\u65B0\u89E3\u6790 EB objid\uFF08\u5FFD\u7565\u7F13\u5B58\uFF09" }
|
|
1822
1826
|
},
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
},
|
|
1826
|
-
|
|
1827
|
-
),
|
|
1827
|
+
{ required: [] }
|
|
1828
|
+
),
|
|
1829
|
+
anyOf: [{ required: ["dataId"] }, { required: ["dataIds"] }]
|
|
1830
|
+
},
|
|
1828
1831
|
handler: async (args, { host, ctx }) => {
|
|
1829
1832
|
const single = args.dataId !== void 0 && args.dataId !== null && String(args.dataId).trim() !== "";
|
|
1830
1833
|
const batch = Array.isArray(args.dataIds) ? args.dataIds.map((item) => String(item)).filter((item) => item.trim() !== "") : [];
|
|
@@ -2247,7 +2250,7 @@ var meetingAttachmentAttach = {
|
|
|
2247
2250
|
if (mode === "append" && existingIds.length === 0) {
|
|
2248
2251
|
existingIds.push(...beforeIds);
|
|
2249
2252
|
}
|
|
2250
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2253
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
2251
2254
|
const list = getMeetingOperation2("meeting.eb.meeting.list");
|
|
2252
2255
|
let fileId = incomingFileId;
|
|
2253
2256
|
let name = String(args.name ?? "").trim();
|
|
@@ -2335,7 +2338,7 @@ function textOf(value) {
|
|
|
2335
2338
|
return value === void 0 || value === null ? "" : String(value);
|
|
2336
2339
|
}
|
|
2337
2340
|
async function readMinute(env, id) {
|
|
2338
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2341
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
2339
2342
|
const detail = getMeetingOperation2("meeting.eb.minute.detail");
|
|
2340
2343
|
const result = await detail.handler({ id }, env);
|
|
2341
2344
|
const row = result?.data?.data;
|
|
@@ -2418,7 +2421,7 @@ var meetingMinuteWriteContent = {
|
|
|
2418
2421
|
} else {
|
|
2419
2422
|
statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
|
|
2420
2423
|
}
|
|
2421
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2424
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
2422
2425
|
const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
|
|
2423
2426
|
const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
|
|
2424
2427
|
const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
|
|
@@ -2434,8 +2437,8 @@ var meetingMinuteWriteContent = {
|
|
|
2434
2437
|
let minuteDoc = null;
|
|
2435
2438
|
if (args.with_doc !== false) {
|
|
2436
2439
|
try {
|
|
2437
|
-
const { buildMinuteDocx } = await import("./minute-doc-
|
|
2438
|
-
const { meetingStateDir: meetingStateDir2 } = await import("./env-
|
|
2440
|
+
const { buildMinuteDocx } = await import("./minute-doc-3IMRJDJV.js");
|
|
2441
|
+
const { meetingStateDir: meetingStateDir2 } = await import("./env-SW6CTETI.js");
|
|
2439
2442
|
const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
|
|
2440
2443
|
const { join: join3 } = await import("node:path");
|
|
2441
2444
|
const subject = textOf(after.mt_minutes_subject).trim() || `\u4F1A\u8BAE\u7EAA\u8981-${mtId}`;
|
|
@@ -2472,7 +2475,7 @@ var meetingMinuteWriteContent = {
|
|
|
2472
2475
|
}
|
|
2473
2476
|
if (args.with_doc !== false) {
|
|
2474
2477
|
try {
|
|
2475
|
-
const { ensureMinuteDoc } = await import("./minute-doc-
|
|
2478
|
+
const { ensureMinuteDoc } = await import("./minute-doc-3IMRJDJV.js");
|
|
2476
2479
|
const better = await ensureMinuteDoc(env, {
|
|
2477
2480
|
id,
|
|
2478
2481
|
mtId,
|
|
@@ -2843,7 +2846,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2843
2846
|
const mtId = textOf2(args.mt_id).trim();
|
|
2844
2847
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
2845
2848
|
const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
|
|
2846
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2849
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
2847
2850
|
const ctx = env.ctx;
|
|
2848
2851
|
let stepStart = Date.now();
|
|
2849
2852
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
@@ -2869,7 +2872,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2869
2872
|
const pullStart = Date.now();
|
|
2870
2873
|
const { createImHost } = await import("./host-XLCBLNJD.js");
|
|
2871
2874
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
2872
|
-
const { getImOperation } = await import("./registry-
|
|
2875
|
+
const { getImOperation } = await import("./registry-AC33ZZVH.js");
|
|
2873
2876
|
const imEnv = { ctx, host: createImHost(ctx), continuation: createImContinuationSigner(ctx) };
|
|
2874
2877
|
const syncOp = getImOperation("im.msg.sync.group");
|
|
2875
2878
|
const chatWindow = computeChatWindow(meeting);
|
|
@@ -2937,7 +2940,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2937
2940
|
try {
|
|
2938
2941
|
const { readFile: readFile4 } = await import("node:fs/promises");
|
|
2939
2942
|
const buffer = await readFile4(file);
|
|
2940
|
-
const { extractText } = await import("./attachment-content-
|
|
2943
|
+
const { extractText } = await import("./attachment-content-IXIBOET6.js");
|
|
2941
2944
|
const extracted = extractText(buffer, file, "");
|
|
2942
2945
|
if (extracted.text.trim()) {
|
|
2943
2946
|
extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
|
|
@@ -3112,8 +3115,8 @@ ${groupTranscript}` : ""
|
|
|
3112
3115
|
if (args.with_doc !== false) {
|
|
3113
3116
|
const docStarted = Date.now();
|
|
3114
3117
|
try {
|
|
3115
|
-
const { buildMinuteDocx } = await import("./minute-doc-
|
|
3116
|
-
const { meetingStateDir: meetingStateDir2 } = await import("./env-
|
|
3118
|
+
const { buildMinuteDocx } = await import("./minute-doc-3IMRJDJV.js");
|
|
3119
|
+
const { meetingStateDir: meetingStateDir2 } = await import("./env-SW6CTETI.js");
|
|
3117
3120
|
const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
|
|
3118
3121
|
const { join: join3 } = await import("node:path");
|
|
3119
3122
|
const body = textOf2(row.parse_content) || textOf2(row.minutes_content) || transcript;
|
|
@@ -3300,7 +3303,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3300
3303
|
const warnings = [];
|
|
3301
3304
|
const mtId = textOf3(args.mt_id).trim();
|
|
3302
3305
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
3303
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3306
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
3304
3307
|
const ctx = env.ctx;
|
|
3305
3308
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
3306
3309
|
{ mt_id: mtId, pageNo: 1, pageSize: 1 },
|
|
@@ -3372,7 +3375,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3372
3375
|
const mentioned = [];
|
|
3373
3376
|
if (args.mention !== false) {
|
|
3374
3377
|
try {
|
|
3375
|
-
const { getImOperation } = await import("./registry-
|
|
3378
|
+
const { getImOperation } = await import("./registry-AC33ZZVH.js");
|
|
3376
3379
|
const membersResult = await getImOperation("im.group.users").handler(
|
|
3377
3380
|
{ groupId },
|
|
3378
3381
|
{ ctx, host: imHost }
|
|
@@ -3602,7 +3605,7 @@ var meetingPipelineRun = {
|
|
|
3602
3605
|
const needsConfirm = level === "tasks" || level === "notify";
|
|
3603
3606
|
const confirmed = args.confirm === true;
|
|
3604
3607
|
const executedLevel = needsConfirm && !confirmed ? "document" : level;
|
|
3605
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3608
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
3606
3609
|
const ctx = env.ctx;
|
|
3607
3610
|
let stepStart = Date.now();
|
|
3608
3611
|
const reuseMinuteId = textOf4(args.minuteId).trim();
|
|
@@ -3672,7 +3675,7 @@ var meetingPipelineRun = {
|
|
|
3672
3675
|
}
|
|
3673
3676
|
stepStart = Date.now();
|
|
3674
3677
|
const { createHrmHost } = await import("./host-2UYZEY2V.js");
|
|
3675
|
-
const { getHrmOperation } = await import("./registry-
|
|
3678
|
+
const { getHrmOperation } = await import("./registry-4S3RXXWS.js");
|
|
3676
3679
|
const hrmEnv = { ctx, host: createHrmHost(ctx) };
|
|
3677
3680
|
const queryOp = getHrmOperation("hrm.employee.query");
|
|
3678
3681
|
const resolved = [];
|
|
@@ -3974,7 +3977,7 @@ function formatTimeRange(start, end) {
|
|
|
3974
3977
|
}
|
|
3975
3978
|
async function loadAgendaFromTopics(env, mtId) {
|
|
3976
3979
|
try {
|
|
3977
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3980
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
3978
3981
|
const operation = getMeetingOperation2("meeting.eb.topic.list");
|
|
3979
3982
|
const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
|
|
3980
3983
|
const rows = result.data?.rows ?? [];
|
|
@@ -4067,7 +4070,7 @@ function flattenFieldValue(raw) {
|
|
|
4067
4070
|
}
|
|
4068
4071
|
async function resolveIssuerOrganization(env, creatorId) {
|
|
4069
4072
|
try {
|
|
4070
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
4073
|
+
const { hrmEmployeeOperations } = await import("./employee-QX57HEWS.js");
|
|
4071
4074
|
const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
|
|
4072
4075
|
if (!batch) return null;
|
|
4073
4076
|
const result = await batch.handler({ ids: [creatorId] }, env);
|
|
@@ -4089,7 +4092,7 @@ async function resolveSessionUserName(env) {
|
|
|
4089
4092
|
const session = await env.host.getSession();
|
|
4090
4093
|
const userId = String(session?.userId ?? "").trim();
|
|
4091
4094
|
if (!userId) return "";
|
|
4092
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
4095
|
+
const { hrmEmployeeOperations } = await import("./employee-QX57HEWS.js");
|
|
4093
4096
|
const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
|
|
4094
4097
|
if (!batch) return "";
|
|
4095
4098
|
const result = await batch.handler({ ids: [userId] }, env);
|
|
@@ -4125,7 +4128,7 @@ async function supplementRowFromDetail(row, mtId, env) {
|
|
|
4125
4128
|
const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
|
|
4126
4129
|
if (missing.length === 0) return { row, filled: [] };
|
|
4127
4130
|
try {
|
|
4128
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4131
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
4129
4132
|
const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
4130
4133
|
const result = await detailOperation.handler({ id: mtId }, env);
|
|
4131
4134
|
const flat = result?.data?.data ?? result?.data ?? {};
|
|
@@ -4260,7 +4263,7 @@ var meetingInvitationRender = {
|
|
|
4260
4263
|
description: "\u8F93\u51FA\u6587\u4EF6\u5B8C\u6574\u8DEF\u5F84\uFF08\u53EF\u9009\uFF09\u3002\u7F3A\u7701\u5199\u5230 ~/.weaver-work-cli/meeting/invitations/\u9080\u8BF7\u51FD-{\u4F1A\u8BAE\u540D}-{\u65E5\u671F}.docx"
|
|
4261
4264
|
}
|
|
4262
4265
|
},
|
|
4263
|
-
required: []
|
|
4266
|
+
anyOf: [{ required: ["mtId"] }, { required: ["mt_name", "begin_datetime"] }]
|
|
4264
4267
|
},
|
|
4265
4268
|
handler: async (args, env) => {
|
|
4266
4269
|
const mtId = String(args.mtId ?? "").trim();
|
|
@@ -4299,7 +4302,7 @@ var meetingInvitationRender = {
|
|
|
4299
4302
|
};
|
|
4300
4303
|
dataSource = "payload";
|
|
4301
4304
|
} else {
|
|
4302
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4305
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
4303
4306
|
const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
|
|
4304
4307
|
try {
|
|
4305
4308
|
const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
|
|
@@ -4426,8 +4429,8 @@ var TTL_MEMBERS_MS = TTL_ORG_MS;
|
|
|
4426
4429
|
var MAX_DEPARTMENTS = 30;
|
|
4427
4430
|
var MAX_MEMBERS_RETURN = 300;
|
|
4428
4431
|
async function runHrm(name, input, env) {
|
|
4429
|
-
const { hrmOrgOperations } = await import("./org-
|
|
4430
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
4432
|
+
const { hrmOrgOperations } = await import("./org-MWWIFNAO.js");
|
|
4433
|
+
const { hrmEmployeeOperations } = await import("./employee-QX57HEWS.js");
|
|
4431
4434
|
const all = [...hrmOrgOperations, ...hrmEmployeeOperations];
|
|
4432
4435
|
const operation = all.find((item) => item.name === name);
|
|
4433
4436
|
if (!operation) throw meetingValidationError("hrm_operation_missing", `\u5F53\u524D CLI \u7F3A\u5C11 ${name}\uFF08\u8BF7\u5347\u7EA7 weaver-work-cli\uFF09`);
|
|
@@ -4493,7 +4496,8 @@ var meetingMemberExpand = {
|
|
|
4493
4496
|
includeMembers: { type: "boolean", description: "\u662F\u5426\u5C55\u5F00\u6210\u5458\uFF0C\u9ED8\u8BA4 true\uFF1B\u53EA\u67E5\u90E8\u95E8 id \u65F6\u4F20 false" },
|
|
4494
4497
|
refresh: { type: "boolean", description: "\u5FFD\u7565\u7F13\u5B58\u91CD\u65B0\u67E5\uFF08\u9ED8\u8BA4 false\uFF09" },
|
|
4495
4498
|
maxDepartments: { type: "number", description: `\u5206\u90E8\u5C55\u5F00\u65F6\u6700\u591A\u53D6\u51E0\u4E2A\u90E8\u95E8\uFF0C\u9ED8\u8BA4 ${MAX_DEPARTMENTS}` }
|
|
4496
|
-
}
|
|
4499
|
+
},
|
|
4500
|
+
anyOf: [{ required: ["keyword"] }, { required: ["keywords"] }]
|
|
4497
4501
|
},
|
|
4498
4502
|
handler: async (args, env) => {
|
|
4499
4503
|
const tokens = [
|
|
@@ -4643,7 +4647,7 @@ var meetingInvitationPublish = {
|
|
|
4643
4647
|
"\u4F1A\u771F\u5B9E\u521B\u5EFA\u6587\u6863\uFF0C\u5FC5\u987B\u663E\u5F0F\u4F20 confirm: true\uFF08\u53EF\u5148\u4E0D\u5E26 confirm \u8C03 meeting.invitation.render \u9884\u89C8\u6B63\u6587\uFF09"
|
|
4644
4648
|
);
|
|
4645
4649
|
}
|
|
4646
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4650
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
4647
4651
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
4648
4652
|
const rendered = await render.handler(
|
|
4649
4653
|
{
|
|
@@ -5358,7 +5362,7 @@ var meetingSummaryGet = {
|
|
|
5358
5362
|
const mtId = textOf5(args.mt_id).trim();
|
|
5359
5363
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
5360
5364
|
const ctx = env.ctx;
|
|
5361
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5365
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
5362
5366
|
const warnings = [];
|
|
5363
5367
|
const timings = {};
|
|
5364
5368
|
const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
|
|
@@ -5496,7 +5500,7 @@ var meetingSummaryGet = {
|
|
|
5496
5500
|
try {
|
|
5497
5501
|
const { createImHost } = await import("./host-XLCBLNJD.js");
|
|
5498
5502
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
5499
|
-
const { getImOperation } = await import("./registry-
|
|
5503
|
+
const { getImOperation } = await import("./registry-AC33ZZVH.js");
|
|
5500
5504
|
const imEnv = {
|
|
5501
5505
|
ctx,
|
|
5502
5506
|
// 测试环境靠 env.imHost 注入假实现,否则会真的打到线上群聊
|
|
@@ -5622,7 +5626,7 @@ var meetingFormFields = {
|
|
|
5622
5626
|
}
|
|
5623
5627
|
const { createEbuilderFormHost } = await import("./host-7IPZKIM4.js");
|
|
5624
5628
|
const { createEbuilderFormContinuationSigner } = await import("./continuation-3XLYYTKV.js");
|
|
5625
|
-
const { executeEbuilderFormOperation } = await import("./operations-
|
|
5629
|
+
const { executeEbuilderFormOperation } = await import("./operations-LQY3FTPH.js");
|
|
5626
5630
|
const formEnv = {
|
|
5627
5631
|
ctx: env.ctx,
|
|
5628
5632
|
host: createEbuilderFormHost(env.ctx),
|
|
@@ -5679,7 +5683,7 @@ var MT_STATUS_OVER = "8";
|
|
|
5679
5683
|
var CANCELLED_MARK_DELAY_MS = 800;
|
|
5680
5684
|
async function isCancelledMeeting(env, mtId) {
|
|
5681
5685
|
try {
|
|
5682
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5686
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
5683
5687
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
5684
5688
|
// withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
|
|
5685
5689
|
{ mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
|
|
@@ -5724,7 +5728,7 @@ async function resolveDecisionPeople(env, input, ownerId) {
|
|
|
5724
5728
|
}
|
|
5725
5729
|
let nameToId = /* @__PURE__ */ new Map();
|
|
5726
5730
|
if (nameTokens.size > 0) {
|
|
5727
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
5731
|
+
const { resolveMemberIdsByName } = await import("./schedule-Q3MPSZV6.js");
|
|
5728
5732
|
nameToId = await resolveMemberIdsByName(env, [...nameTokens]).catch(() => /* @__PURE__ */ new Map());
|
|
5729
5733
|
}
|
|
5730
5734
|
const unresolved = [];
|
|
@@ -6768,7 +6772,7 @@ var deleteMany = {
|
|
|
6768
6772
|
if (args.confirm !== true) {
|
|
6769
6773
|
throw meetingValidationError("confirmation_required", "\u6279\u91CF\u5220\u9664\u4E0D\u53EF\u6062\u590D\uFF0C\u5FC5\u987B\u4F20 confirm=true");
|
|
6770
6774
|
}
|
|
6771
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6775
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
6772
6776
|
const listOp = getMeetingOperation2("meeting.eb.decisionTask.list");
|
|
6773
6777
|
const prepareOp = getMeetingOperation2("meeting.eb.decisionTask.delete.prepare");
|
|
6774
6778
|
const applyOp = getMeetingOperation2("meeting.eb.decisionTask.delete.apply");
|
|
@@ -6866,7 +6870,7 @@ function fieldId(value) {
|
|
|
6866
6870
|
async function resolveEmployeeId(env, token) {
|
|
6867
6871
|
const value = String(token ?? "").trim();
|
|
6868
6872
|
if (/^\d{8,}$/.test(value)) return { id: value, name: value };
|
|
6869
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
6873
|
+
const { hrmEmployeeOperations } = await import("./employee-QX57HEWS.js");
|
|
6870
6874
|
const query = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.query");
|
|
6871
6875
|
if (!query) throw meetingValidationError("employee_query_unavailable", "\u65E0\u6CD5\u89E3\u6790\u59D3\u540D\uFF1A\u5458\u5DE5\u67E5\u8BE2\u64CD\u4F5C\u4E0D\u53EF\u7528");
|
|
6872
6876
|
const found = await query.handler({ keyword: value, pageSize: 20 }, env);
|
|
@@ -6903,7 +6907,7 @@ var reassign = {
|
|
|
6903
6907
|
},
|
|
6904
6908
|
handler: async (args, env) => {
|
|
6905
6909
|
if (args.confirm === false) throw meetingValidationError("confirmation_required", "confirm=false\uFF0C\u672A\u6267\u884C");
|
|
6906
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6910
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
6907
6911
|
const mtId = String(args.mt_id ?? "").trim();
|
|
6908
6912
|
const target = await resolveEmployeeId(env, String(args.to_executor ?? ""));
|
|
6909
6913
|
const from = String(args.from_executor ?? "").trim();
|
|
@@ -7202,7 +7206,7 @@ var formLink = {
|
|
|
7202
7206
|
pushValue("crm_members", "##" + first.id);
|
|
7203
7207
|
} else {
|
|
7204
7208
|
try {
|
|
7205
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7209
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
7206
7210
|
const search = getMeetingOperation2("meeting.eb.crm.search");
|
|
7207
7211
|
const found = await search.handler({ keyword: first.name, pageSize: 10 }, env);
|
|
7208
7212
|
const rows = found?.data?.items ?? [];
|
|
@@ -7357,7 +7361,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
|
|
|
7357
7361
|
const mtId = String(context.dataIds?.[0] ?? "").trim();
|
|
7358
7362
|
if (!isCreate || !enabled || !mtId) return association;
|
|
7359
7363
|
try {
|
|
7360
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7364
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
7361
7365
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
7362
7366
|
const result = await render.handler({ mtId }, context.env);
|
|
7363
7367
|
return { ...association ?? {}, invitation: result?.data ?? null };
|
|
@@ -7393,7 +7397,7 @@ var ebOperationsWithLinks = ebBaseOperations.map((operation) => {
|
|
|
7393
7397
|
const raw = String(args.member).trim();
|
|
7394
7398
|
let uid = /^\d+$/.test(raw) ? raw : "";
|
|
7395
7399
|
if (!uid) {
|
|
7396
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
7400
|
+
const { resolveMemberIdsByName } = await import("./schedule-Q3MPSZV6.js");
|
|
7397
7401
|
const map = await resolveMemberIdsByName(env, [raw]).catch(() => /* @__PURE__ */ new Map());
|
|
7398
7402
|
uid = String(map.get(raw) ?? "");
|
|
7399
7403
|
}
|
|
@@ -7432,7 +7436,7 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
|
|
|
7432
7436
|
if (!String(nextArgs.mt_minutes_subject ?? "").trim() && nextArgs.mt_id) {
|
|
7433
7437
|
let meetingName = "";
|
|
7434
7438
|
try {
|
|
7435
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7439
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
7436
7440
|
const detailOp = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
7437
7441
|
const detail = await detailOp.handler({ id: String(nextArgs.mt_id) }, env);
|
|
7438
7442
|
const row = detail?.data?.data ?? {};
|
|
@@ -7452,8 +7456,8 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
|
|
|
7452
7456
|
handler: async (args, env) => {
|
|
7453
7457
|
const result = await operation.handler(args, env);
|
|
7454
7458
|
try {
|
|
7455
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7456
|
-
const { ensureMinuteDoc } = await import("./minute-doc-
|
|
7459
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
7460
|
+
const { ensureMinuteDoc } = await import("./minute-doc-3IMRJDJV.js");
|
|
7457
7461
|
const minuteId = String((result?.data?.dataIds ?? [])[0] ?? "").trim();
|
|
7458
7462
|
if (minuteId) {
|
|
7459
7463
|
const detail = await getMeetingOperation2("meeting.eb.minute.detail").handler({ id: minuteId }, env);
|
|
@@ -7577,7 +7581,7 @@ var composeOutcome = {
|
|
|
7577
7581
|
if (args.confirm === false) {
|
|
7578
7582
|
throw meetingValidationError("confirmation_required", "\u4F20\u4E86 confirm=false\uFF0C\u5DF2\u963B\u6B62\u5199\u5165");
|
|
7579
7583
|
}
|
|
7580
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7584
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-PHPYTXS4.js");
|
|
7581
7585
|
let mtId = String(args.mt_id ?? "").trim();
|
|
7582
7586
|
if (!mtId) {
|
|
7583
7587
|
const listOp2 = getMeetingOperation2("meeting.eb.meeting.list");
|