weaver-work-cli 0.1.59 → 0.1.61
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-4SQAVTIB.js → archive-S2VKZWQ3.js} +2 -2
- package/dist/chunks/{archive-oa-W2UEJ67L.js → archive-oa-HEDSIUUY.js} +2 -2
- package/dist/chunks/{asset-EGZEABBI.js → asset-HYH4W357.js} +2 -2
- package/dist/chunks/{asset-idle-EBUZBB6M.js → asset-idle-N7REBNGL.js} +2 -2
- package/dist/chunks/{attachment-content-TP6WDNC6.js → attachment-content-VYYA75FR.js} +3 -3
- package/dist/chunks/{blog-2YKMWOWI.js → blog-SLMZZICV.js} +2 -2
- package/dist/chunks/{caizhilian-5NM4X5HG.js → caizhilian-RV43KKBT.js} +4 -4
- package/dist/chunks/{calendar-H4QTJCUY.js → calendar-DMVZ4OLY.js} +2 -2
- package/dist/chunks/{chunk-QNPIY5R6.js → chunk-6XSSAUNW.js} +4 -4
- package/dist/chunks/{chunk-AQOPPNTR.js → chunk-BIA2NKUG.js} +4 -4
- package/dist/chunks/{chunk-VMCCRWFO.js → chunk-BQYX2UX5.js} +2 -2
- package/dist/chunks/{chunk-CI2RF3AJ.js → chunk-DTCQFTHW.js} +1 -1
- package/dist/chunks/{chunk-I3BFBBP2.js → chunk-E5YD5JWR.js} +1 -1
- package/dist/chunks/{chunk-PH7N4UFT.js → chunk-EGANE35F.js} +1 -1
- package/dist/chunks/{chunk-Z4IPY5GV.js → chunk-H6YOMI3U.js} +2 -2
- package/dist/chunks/{chunk-U2DWV6JC.js → chunk-ILALC2N6.js} +1 -1
- package/dist/chunks/{chunk-WINR2Q6K.js → chunk-KXJA42EA.js} +86 -19
- package/dist/chunks/{chunk-CQ4OVCKG.js → chunk-KY3R42RS.js} +2 -2
- package/dist/chunks/{chunk-WVH5ESDA.js → chunk-NRYDJN4J.js} +1 -1
- package/dist/chunks/{chunk-TGM7BWEH.js → chunk-P6TXQK75.js} +2 -2
- package/dist/chunks/{chunk-6YWHRXEQ.js → chunk-QBDXJS2W.js} +119 -9
- package/dist/chunks/{chunk-2IGZUMNG.js → chunk-SHX7XBYR.js} +180 -18
- package/dist/chunks/{chunk-XR5BGFNT.js → chunk-T2KVJFWJ.js} +10 -4
- package/dist/chunks/{chunk-FMNCSYIG.js → chunk-TEZHIB6T.js} +2 -2
- package/dist/chunks/{chunk-2FHP4PYS.js → chunk-UBGWIXU3.js} +116 -40
- package/dist/chunks/{chunk-5N222HK6.js → chunk-UBRWONP4.js} +2 -2
- package/dist/chunks/{chunk-MQBMMJUV.js → chunk-UQFPF4EX.js} +2 -2
- package/dist/chunks/{chunk-4GG72JAT.js → chunk-V2LASYKO.js} +2 -2
- package/dist/chunks/{chunk-FM7B5BIR.js → chunk-VBFBMM7G.js} +61 -53
- package/dist/chunks/{chunk-ZHPCNM2S.js → chunk-VNYOUAWV.js} +11 -11
- package/dist/chunks/{chunk-SFM3M2L3.js → chunk-WIWDVETN.js} +19 -3
- package/dist/chunks/{chunk-44KJ7WFA.js → chunk-XT77MP54.js} +2 -2
- package/dist/chunks/chunk-YI2YMW5N.js +111 -0
- package/dist/chunks/{conflict-Y3ESXYIA.js → conflict-GFJRS6I7.js} +2 -2
- package/dist/chunks/{contract-LLRKMLQQ.js → contract-U3ZGNRWB.js} +2 -2
- package/dist/chunks/{cowork-2RDFBZWB.js → cowork-EX7PKIDK.js} +2 -2
- package/dist/chunks/{create-flow-JHQSA6JF.js → create-flow-EJZD434E.js} +6 -6
- package/dist/chunks/{data-ZVS3BWPT.js → data-FOODGAMF.js} +278 -123
- package/dist/chunks/{ebuilder-form-TWSXS5NA.js → ebuilder-form-I2EOKODG.js} +5 -5
- package/dist/chunks/{ehr-52GBKNJR.js → ehr-TE4RFNID.js} +2 -2
- package/dist/chunks/entry-mode-ZOLSXEGX.js +19 -0
- package/dist/chunks/{env-LQBLL3MZ.js → env-TID5NFR6.js} +2 -2
- package/dist/chunks/{esb-HJSXCEOM.js → esb-7L6MHYLB.js} +4 -4
- package/dist/chunks/{factory-X7PN6B3B.js → factory-OG7BPMH5.js} +1 -1
- package/dist/chunks/{fna-OBACRT3J.js → fna-6V2ENR3Y.js} +2 -2
- package/dist/chunks/{group-chat-PPFY7SPV.js → group-chat-5DKPWIHL.js} +3 -3
- package/dist/chunks/{host-TTSGY5NZ.js → host-3DLYA54R.js} +3 -3
- package/dist/chunks/{host-KJT3G5D2.js → host-GOJHHTPY.js} +3 -3
- package/dist/chunks/{host-KOWUMNAY.js → host-OGBHL75G.js} +3 -3
- package/dist/chunks/{host-MFXRA2MY.js → host-ONZC6AE7.js} +3 -3
- package/dist/chunks/{host-W4JCNRFS.js → host-TJ5VVHM7.js} +3 -3
- package/dist/chunks/{host-2BKMPWDH.js → host-VTPAWDZV.js} +3 -3
- package/dist/chunks/{hrm-AK3WGBMN.js → hrm-2N7NFQDZ.js} +3 -3
- package/dist/chunks/{im-JZSBPO4Z.js → im-XCH47ZBN.js} +3 -3
- package/dist/chunks/{invoice-6XDMPCWB.js → invoice-XQRKMGNY.js} +3 -3
- package/dist/chunks/{jiuchuanhui-K4EQU6GK.js → jiuchuanhui-PL6DRPBM.js} +2 -2
- package/dist/chunks/{lazy-dispatch-GCA6HDOB.js → lazy-dispatch-UATEN7H7.js} +5 -5
- package/dist/chunks/{mail-IKVCQCVZ.js → mail-Q7Z4CQ4D.js} +2 -2
- package/dist/chunks/{meeting-GMRQZFJP.js → meeting-5E3BNARL.js} +13 -12
- package/dist/chunks/{minute-doc-JXH3MNC7.js → minute-doc-NXRE5C77.js} +4 -4
- package/dist/chunks/{okr-KV43FPPX.js → okr-3O3XNYOK.js} +2 -2
- package/dist/chunks/{operations-6NXJ7RTE.js → operations-EZWG72FH.js} +4 -4
- package/dist/chunks/performance-Y7CPNSOR.js +1295 -0
- package/dist/chunks/{plan-WOYR4WEG.js → plan-BLGPZF5M.js} +2 -2
- package/dist/chunks/{project-CQJKBUIL.js → project-6MZMLJMP.js} +2 -2
- package/dist/chunks/{reception-MPBU3JXC.js → reception-F2VT2X52.js} +2 -2
- package/dist/chunks/{recruit-stage-USTTRHOX.js → recruit-stage-4ETIBMIW.js} +2 -2
- package/dist/chunks/{registry-GURQG4ZV.js → registry-3FYSWV3U.js} +3 -3
- package/dist/chunks/{registry-SS5J2FZQ.js → registry-7RS74TCK.js} +4 -4
- package/dist/chunks/{registry-WZCCBI5L.js → registry-I4DVPDMU.js} +11 -10
- package/dist/chunks/{room-recommend-CKU5NF2E.js → room-recommend-GWCVKCXW.js} +4 -4
- package/dist/chunks/{schedule-DEFAO2RY.js → schedule-6AN63MJQ.js} +4 -4
- package/dist/chunks/{smart-extract-APX2PNIN.js → smart-extract-SR4SJJKN.js} +3 -3
- package/dist/chunks/{workflow-WMPW3WSB.js → workflow-KF7FA2UQ.js} +7 -7
- package/dist/cmd/refs/index.js +124 -4
- package/dist/core/output.js +199 -26
- package/dist/core/refs.js +36 -0
- package/dist/index.js +38 -33
- package/dist/internal/e10/auth/xiaoe.js +25 -3
- package/dist/shortcuts/caizhilian/operations/files.js +86 -15
- package/dist/shortcuts/data/index.js +12 -2
- package/dist/shortcuts/data/manifest.js +4 -2
- package/dist/shortcuts/data/operations/attribution.js +229 -0
- package/dist/shortcuts/data/operations/ds.js +87 -92
- package/dist/shortcuts/data/operations/index.js +3 -1
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +111 -12
- package/dist/shortcuts/meeting/operations/eb/entry-mode.js +116 -0
- package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +11 -0
- package/dist/shortcuts/meeting/operations/registry.js +4 -0
- package/dist/shortcuts/performance/continuation.js +74 -0
- package/dist/shortcuts/performance/errors.js +65 -0
- package/dist/shortcuts/performance/host.js +105 -0
- package/dist/shortcuts/performance/index.js +109 -0
- package/dist/shortcuts/performance/manifest.js +30 -0
- package/dist/shortcuts/performance/operations/hrm-resolve.js +114 -0
- package/dist/shortcuts/performance/operations/registry.js +44 -0
- package/dist/shortcuts/performance/operations/scheme-detail.js +70 -0
- package/dist/shortcuts/performance/operations/scheme-draft.js +116 -0
- package/dist/shortcuts/performance/operations/scheme-publish.js +158 -0
- package/dist/shortcuts/performance/operations/types.js +32 -0
- package/dist/shortcuts/performance/scheme-validate.js +307 -0
- package/dist/shortcuts/performance/shared.js +158 -0
- package/docs/agent-io-channel-design.md +67 -3
- package/docs/data.md +2 -1
- package/package.json +1 -1
- package/scripts/xiaoe_env.py +6 -1
- package/skill-template/business-info.json +19 -0
- package/skill-template/domains/performance.md +18 -0
- package/skills/weaver-e10-caizhilian/SKILL.md +1 -1
- package/skills/weaver-e10-data/references/datasource.md +2 -1
- package/skills/weaver-e10-meeting/SKILL.md +16 -3
- package/skills/weaver-e10-performance/SKILL.md +202 -0
- package/skills/weaver-e10-performance/agents/openai.yaml +74 -0
- package/skills/weaver-e10-performance/references/default-assembly.md +108 -0
- package/skills/weaver-e10-performance/references/entity-resolution.md +69 -0
- package/skills/weaver-e10-performance/references/enums-and-normalization.md +80 -0
- package/skills/weaver-e10-performance/references/examples.md +146 -0
- package/skills/weaver-e10-performance/references/extraction-guide.md +144 -0
- package/skills/weaver-e10-performance/references/scheme-edit-req-fields.md +185 -0
- package/skills/weaver-e10-performance/references/scheme-setting-page.md +62 -0
- package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +483 -0
- package/skills/weaver-e10-shared/references/json-output-contract.md +5 -0
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
attachMeetingUrls,
|
|
5
|
+
meetingEbCreateFlowOperations,
|
|
6
|
+
meetingUrlMap
|
|
7
|
+
} from "./chunk-UBGWIXU3.js";
|
|
8
|
+
import {
|
|
9
|
+
ebMeetingWritePreflight,
|
|
10
|
+
meetingEbConflictOperations
|
|
11
|
+
} from "./chunk-6XSSAUNW.js";
|
|
3
12
|
import {
|
|
4
13
|
listMeetingAttachments,
|
|
5
14
|
meetingAttachmentContentOperations
|
|
6
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UQFPF4EX.js";
|
|
7
16
|
import {
|
|
8
17
|
PENDING_MARK,
|
|
9
18
|
renderDocx
|
|
10
19
|
} from "./chunk-WMRNO6IU.js";
|
|
11
20
|
import {
|
|
12
21
|
meetingEbGroupChatOperations
|
|
13
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VNYOUAWV.js";
|
|
14
23
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
meetingUrlMap
|
|
18
|
-
} from "./chunk-2FHP4PYS.js";
|
|
19
|
-
import {
|
|
20
|
-
ebMeetingWritePreflight,
|
|
21
|
-
meetingEbConflictOperations
|
|
22
|
-
} from "./chunk-QNPIY5R6.js";
|
|
24
|
+
meetingEntryOperations
|
|
25
|
+
} from "./chunk-YI2YMW5N.js";
|
|
23
26
|
import {
|
|
24
27
|
meetingEbScheduleOperations
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BIA2NKUG.js";
|
|
26
29
|
import {
|
|
27
30
|
ebRoomRecommendOperation,
|
|
28
31
|
recommendRooms,
|
|
29
32
|
rememberFrequentRoom
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-T2KVJFWJ.js";
|
|
31
34
|
import {
|
|
32
35
|
cacheScopeSuffix,
|
|
33
36
|
readCache,
|
|
34
37
|
writeCache
|
|
35
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ILALC2N6.js";
|
|
36
39
|
import {
|
|
37
40
|
meetingEnvOperations,
|
|
38
41
|
meetingStateDir,
|
|
39
42
|
resolveMeetingEnvMode
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-E5YD5JWR.js";
|
|
41
44
|
import {
|
|
42
45
|
EB_BASE,
|
|
43
46
|
EB_ENDPOINTS,
|
|
@@ -69,7 +72,7 @@ import {
|
|
|
69
72
|
toIdString,
|
|
70
73
|
verifyLease,
|
|
71
74
|
writeBody
|
|
72
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-DTCQFTHW.js";
|
|
73
76
|
import {
|
|
74
77
|
CONTINUATION_TTL_SECONDS
|
|
75
78
|
} from "./chunk-7BDPM5ST.js";
|
|
@@ -2236,7 +2239,7 @@ var meetingAttachmentAttach = {
|
|
|
2236
2239
|
if (mode === "append" && existingIds.length === 0) {
|
|
2237
2240
|
existingIds.push(...beforeIds);
|
|
2238
2241
|
}
|
|
2239
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2242
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
2240
2243
|
const list = getMeetingOperation2("meeting.eb.meeting.list");
|
|
2241
2244
|
let fileId = incomingFileId;
|
|
2242
2245
|
let name = String(args.name ?? "").trim();
|
|
@@ -2324,7 +2327,7 @@ function textOf(value) {
|
|
|
2324
2327
|
return value === void 0 || value === null ? "" : String(value);
|
|
2325
2328
|
}
|
|
2326
2329
|
async function readMinute(env, id) {
|
|
2327
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2330
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
2328
2331
|
const detail = getMeetingOperation2("meeting.eb.minute.detail");
|
|
2329
2332
|
const result = await detail.handler({ id }, env);
|
|
2330
2333
|
const row = result?.data?.data;
|
|
@@ -2407,7 +2410,7 @@ var meetingMinuteWriteContent = {
|
|
|
2407
2410
|
} else {
|
|
2408
2411
|
statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
|
|
2409
2412
|
}
|
|
2410
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2413
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
2411
2414
|
const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
|
|
2412
2415
|
const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
|
|
2413
2416
|
const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
|
|
@@ -2423,8 +2426,8 @@ var meetingMinuteWriteContent = {
|
|
|
2423
2426
|
let minuteDoc = null;
|
|
2424
2427
|
if (args.with_doc !== false) {
|
|
2425
2428
|
try {
|
|
2426
|
-
const { buildMinuteDocx } = await import("./minute-doc-
|
|
2427
|
-
const { meetingStateDir: meetingStateDir2 } = await import("./env-
|
|
2429
|
+
const { buildMinuteDocx } = await import("./minute-doc-NXRE5C77.js");
|
|
2430
|
+
const { meetingStateDir: meetingStateDir2 } = await import("./env-TID5NFR6.js");
|
|
2428
2431
|
const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
|
|
2429
2432
|
const { join: join3 } = await import("node:path");
|
|
2430
2433
|
const subject = textOf(after.mt_minutes_subject).trim() || `\u4F1A\u8BAE\u7EAA\u8981-${mtId}`;
|
|
@@ -2461,7 +2464,7 @@ var meetingMinuteWriteContent = {
|
|
|
2461
2464
|
}
|
|
2462
2465
|
if (args.with_doc !== false) {
|
|
2463
2466
|
try {
|
|
2464
|
-
const { ensureMinuteDoc } = await import("./minute-doc-
|
|
2467
|
+
const { ensureMinuteDoc } = await import("./minute-doc-NXRE5C77.js");
|
|
2465
2468
|
const better = await ensureMinuteDoc(env, {
|
|
2466
2469
|
id,
|
|
2467
2470
|
mtId,
|
|
@@ -2832,7 +2835,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2832
2835
|
const mtId = textOf2(args.mt_id).trim();
|
|
2833
2836
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
2834
2837
|
const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
|
|
2835
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2838
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
2836
2839
|
const ctx = env.ctx;
|
|
2837
2840
|
let stepStart = Date.now();
|
|
2838
2841
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
@@ -2856,7 +2859,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2856
2859
|
}
|
|
2857
2860
|
mark("readMeeting", stepStart);
|
|
2858
2861
|
const pullStart = Date.now();
|
|
2859
|
-
const { createImHost } = await import("./host-
|
|
2862
|
+
const { createImHost } = await import("./host-ONZC6AE7.js");
|
|
2860
2863
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
2861
2864
|
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
2862
2865
|
const imEnv = { ctx, host: createImHost(ctx), continuation: createImContinuationSigner(ctx) };
|
|
@@ -2926,7 +2929,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2926
2929
|
try {
|
|
2927
2930
|
const { readFile: readFile4 } = await import("node:fs/promises");
|
|
2928
2931
|
const buffer = await readFile4(file);
|
|
2929
|
-
const { extractText } = await import("./attachment-content-
|
|
2932
|
+
const { extractText } = await import("./attachment-content-VYYA75FR.js");
|
|
2930
2933
|
const extracted = extractText(buffer, file, "");
|
|
2931
2934
|
if (extracted.text.trim()) {
|
|
2932
2935
|
extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
|
|
@@ -3055,9 +3058,9 @@ ${groupTranscript}` : ""
|
|
|
3055
3058
|
if (!employeeId) {
|
|
3056
3059
|
warnings.push("\u672A\u53D6\u5230 ESB \u89E6\u53D1\u4EBA id\uFF08employeeId\uFF09\uFF0C\u5DF2\u8DF3\u8FC7\u540E\u7EED ESB \u8C03\u7528");
|
|
3057
3060
|
} else {
|
|
3058
|
-
const { createEsbHost } = await import("./host-
|
|
3061
|
+
const { createEsbHost } = await import("./host-GOJHHTPY.js");
|
|
3059
3062
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
3060
|
-
const { getEsbOperation } = await import("./registry-
|
|
3063
|
+
const { getEsbOperation } = await import("./registry-7RS74TCK.js");
|
|
3061
3064
|
const esbEnv = { ctx, host: createEsbHost(ctx), continuation: createEsbContinuationSigner(ctx) };
|
|
3062
3065
|
const prepareOp = getEsbOperation("esb.trigger.prepare");
|
|
3063
3066
|
const applyOp = getEsbOperation("esb.trigger.apply");
|
|
@@ -3101,8 +3104,8 @@ ${groupTranscript}` : ""
|
|
|
3101
3104
|
if (args.with_doc !== false) {
|
|
3102
3105
|
const docStarted = Date.now();
|
|
3103
3106
|
try {
|
|
3104
|
-
const { buildMinuteDocx } = await import("./minute-doc-
|
|
3105
|
-
const { meetingStateDir: meetingStateDir2 } = await import("./env-
|
|
3107
|
+
const { buildMinuteDocx } = await import("./minute-doc-NXRE5C77.js");
|
|
3108
|
+
const { meetingStateDir: meetingStateDir2 } = await import("./env-TID5NFR6.js");
|
|
3106
3109
|
const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
|
|
3107
3110
|
const { join: join3 } = await import("node:path");
|
|
3108
3111
|
const body = textOf2(row.parse_content) || textOf2(row.minutes_content) || transcript;
|
|
@@ -3289,7 +3292,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3289
3292
|
const warnings = [];
|
|
3290
3293
|
const mtId = textOf3(args.mt_id).trim();
|
|
3291
3294
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
3292
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3295
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
3293
3296
|
const ctx = env.ctx;
|
|
3294
3297
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
3295
3298
|
{ mt_id: mtId, pageNo: 1, pageSize: 1 },
|
|
@@ -3353,7 +3356,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3353
3356
|
charCount: formatted.text.length,
|
|
3354
3357
|
text: formatted.text
|
|
3355
3358
|
};
|
|
3356
|
-
const { createImHost } = await import("./host-
|
|
3359
|
+
const { createImHost } = await import("./host-ONZC6AE7.js");
|
|
3357
3360
|
const imHost = createImHost(ctx);
|
|
3358
3361
|
let displayText = formatted.text;
|
|
3359
3362
|
let wireText = formatted.text;
|
|
@@ -3591,7 +3594,7 @@ var meetingPipelineRun = {
|
|
|
3591
3594
|
const needsConfirm = level === "tasks" || level === "notify";
|
|
3592
3595
|
const confirmed = args.confirm === true;
|
|
3593
3596
|
const executedLevel = needsConfirm && !confirmed ? "document" : level;
|
|
3594
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3597
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
3595
3598
|
const ctx = env.ctx;
|
|
3596
3599
|
let stepStart = Date.now();
|
|
3597
3600
|
const reuseMinuteId = textOf4(args.minuteId).trim();
|
|
@@ -3660,7 +3663,7 @@ var meetingPipelineRun = {
|
|
|
3660
3663
|
]);
|
|
3661
3664
|
}
|
|
3662
3665
|
stepStart = Date.now();
|
|
3663
|
-
const { createHrmHost } = await import("./host-
|
|
3666
|
+
const { createHrmHost } = await import("./host-TJ5VVHM7.js");
|
|
3664
3667
|
const { getHrmOperation } = await import("./registry-3UGIWH53.js");
|
|
3665
3668
|
const hrmEnv = { ctx, host: createHrmHost(ctx) };
|
|
3666
3669
|
const queryOp = getHrmOperation("hrm.employee.query");
|
|
@@ -3963,7 +3966,7 @@ function formatTimeRange(start, end) {
|
|
|
3963
3966
|
}
|
|
3964
3967
|
async function loadAgendaFromTopics(env, mtId) {
|
|
3965
3968
|
try {
|
|
3966
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3969
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
3967
3970
|
const operation = getMeetingOperation2("meeting.eb.topic.list");
|
|
3968
3971
|
const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
|
|
3969
3972
|
const rows = result.data?.rows ?? [];
|
|
@@ -4114,7 +4117,7 @@ async function supplementRowFromDetail(row, mtId, env) {
|
|
|
4114
4117
|
const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
|
|
4115
4118
|
if (missing.length === 0) return { row, filled: [] };
|
|
4116
4119
|
try {
|
|
4117
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4120
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
4118
4121
|
const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
4119
4122
|
const result = await detailOperation.handler({ id: mtId }, env);
|
|
4120
4123
|
const flat = result?.data?.data ?? result?.data ?? {};
|
|
@@ -4288,7 +4291,7 @@ var meetingInvitationRender = {
|
|
|
4288
4291
|
};
|
|
4289
4292
|
dataSource = "payload";
|
|
4290
4293
|
} else {
|
|
4291
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4294
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
4292
4295
|
const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
|
|
4293
4296
|
try {
|
|
4294
4297
|
const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
|
|
@@ -4632,7 +4635,7 @@ var meetingInvitationPublish = {
|
|
|
4632
4635
|
"\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"
|
|
4633
4636
|
);
|
|
4634
4637
|
}
|
|
4635
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4638
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
4636
4639
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
4637
4640
|
const rendered = await render.handler(
|
|
4638
4641
|
{
|
|
@@ -4664,8 +4667,8 @@ var meetingInvitationPublish = {
|
|
|
4664
4667
|
folder_type: String(args.folder_type ?? DEFAULT_FOLDER_TYPE),
|
|
4665
4668
|
author_id: authorId
|
|
4666
4669
|
};
|
|
4667
|
-
const { executeCaizhilianOperation } = await import("./operations-
|
|
4668
|
-
const { createCaizhilianHost } = await import("./host-
|
|
4670
|
+
const { executeCaizhilianOperation } = await import("./operations-EZWG72FH.js");
|
|
4671
|
+
const { createCaizhilianHost } = await import("./host-3DLYA54R.js");
|
|
4669
4672
|
const { createCaizhilianContinuationSigner } = await import("./continuation-GW6PRWK3.js");
|
|
4670
4673
|
const caizhilianEnv = {
|
|
4671
4674
|
ctx: env.ctx,
|
|
@@ -5347,7 +5350,7 @@ var meetingSummaryGet = {
|
|
|
5347
5350
|
const mtId = textOf5(args.mt_id).trim();
|
|
5348
5351
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
5349
5352
|
const ctx = env.ctx;
|
|
5350
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5353
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
5351
5354
|
const warnings = [];
|
|
5352
5355
|
const timings = {};
|
|
5353
5356
|
const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
|
|
@@ -5483,7 +5486,7 @@ var meetingSummaryGet = {
|
|
|
5483
5486
|
warnings.push("\u8BE5\u4F1A\u8BAE\u6CA1\u6709\u5173\u8054\u7FA4\u804A\uFF08imchat_groupid \u4E3A\u7A7A\uFF09\uFF0Cchat \u6BB5\u4E3A null");
|
|
5484
5487
|
} else {
|
|
5485
5488
|
try {
|
|
5486
|
-
const { createImHost } = await import("./host-
|
|
5489
|
+
const { createImHost } = await import("./host-ONZC6AE7.js");
|
|
5487
5490
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
5488
5491
|
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
5489
5492
|
const imEnv = {
|
|
@@ -5609,7 +5612,7 @@ var meetingFormFields = {
|
|
|
5609
5612
|
hint: "\u6CA1\u89E3\u6790\u5230\u8BE5\u8868\u7684 objId\uFF08\u53EF\u80FD\u5F53\u524D\u73AF\u5883\u6CA1\u6709\u8FD9\u5F20\u8868\uFF0C\u6216\u8D26\u53F7\u65E0\u6743\u9650\uFF09"
|
|
5610
5613
|
}, { warnings: resolved.warnings });
|
|
5611
5614
|
}
|
|
5612
|
-
const { createEbuilderFormHost } = await import("./host-
|
|
5615
|
+
const { createEbuilderFormHost } = await import("./host-OGBHL75G.js");
|
|
5613
5616
|
const { createEbuilderFormContinuationSigner } = await import("./continuation-3XLYYTKV.js");
|
|
5614
5617
|
const { executeEbuilderFormOperation } = await import("./operations-62N6EP3C.js");
|
|
5615
5618
|
const formEnv = {
|
|
@@ -5668,7 +5671,7 @@ var MT_STATUS_OVER = "8";
|
|
|
5668
5671
|
var CANCELLED_MARK_DELAY_MS = 800;
|
|
5669
5672
|
async function isCancelledMeeting(env, mtId) {
|
|
5670
5673
|
try {
|
|
5671
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5674
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
5672
5675
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
5673
5676
|
// withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
|
|
5674
5677
|
{ mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
|
|
@@ -5713,7 +5716,7 @@ async function resolveDecisionPeople(env, input, ownerId) {
|
|
|
5713
5716
|
}
|
|
5714
5717
|
let nameToId = /* @__PURE__ */ new Map();
|
|
5715
5718
|
if (nameTokens.size > 0) {
|
|
5716
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
5719
|
+
const { resolveMemberIdsByName } = await import("./schedule-6AN63MJQ.js");
|
|
5717
5720
|
nameToId = await resolveMemberIdsByName(env, [...nameTokens]).catch(() => /* @__PURE__ */ new Map());
|
|
5718
5721
|
}
|
|
5719
5722
|
const unresolved = [];
|
|
@@ -6588,9 +6591,9 @@ async function runCrmSearchFlow(env, input) {
|
|
|
6588
6591
|
if (!employeeId) {
|
|
6589
6592
|
throw meetingValidationError("crm_employee_required", "\u53D6\u4E0D\u5230\u5F53\u524D\u767B\u5F55\u7528\u6237 id\uFF0C\u65E0\u6CD5\u89E6\u53D1 ESB \u5BA2\u6237\u67E5\u8BE2");
|
|
6590
6593
|
}
|
|
6591
|
-
const { createEsbHost } = await import("./host-
|
|
6594
|
+
const { createEsbHost } = await import("./host-GOJHHTPY.js");
|
|
6592
6595
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
6593
|
-
const { getEsbOperation } = await import("./registry-
|
|
6596
|
+
const { getEsbOperation } = await import("./registry-7RS74TCK.js");
|
|
6594
6597
|
const esbEnv = {
|
|
6595
6598
|
ctx: env.ctx,
|
|
6596
6599
|
host: createEsbHost(env.ctx),
|
|
@@ -6757,7 +6760,7 @@ var deleteMany = {
|
|
|
6757
6760
|
if (args.confirm !== true) {
|
|
6758
6761
|
throw meetingValidationError("confirmation_required", "\u6279\u91CF\u5220\u9664\u4E0D\u53EF\u6062\u590D\uFF0C\u5FC5\u987B\u4F20 confirm=true");
|
|
6759
6762
|
}
|
|
6760
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6763
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
6761
6764
|
const listOp = getMeetingOperation2("meeting.eb.decisionTask.list");
|
|
6762
6765
|
const prepareOp = getMeetingOperation2("meeting.eb.decisionTask.delete.prepare");
|
|
6763
6766
|
const applyOp = getMeetingOperation2("meeting.eb.decisionTask.delete.apply");
|
|
@@ -6892,7 +6895,7 @@ var reassign = {
|
|
|
6892
6895
|
},
|
|
6893
6896
|
handler: async (args, env) => {
|
|
6894
6897
|
if (args.confirm === false) throw meetingValidationError("confirmation_required", "confirm=false\uFF0C\u672A\u6267\u884C");
|
|
6895
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6898
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
6896
6899
|
const mtId = String(args.mt_id ?? "").trim();
|
|
6897
6900
|
const target = await resolveEmployeeId(env, String(args.to_executor ?? ""));
|
|
6898
6901
|
const from = String(args.from_executor ?? "").trim();
|
|
@@ -7038,7 +7041,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
|
|
|
7038
7041
|
const mtId = String(context.dataIds?.[0] ?? "").trim();
|
|
7039
7042
|
if (!isCreate || !enabled || !mtId) return association;
|
|
7040
7043
|
try {
|
|
7041
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7044
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
7042
7045
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
7043
7046
|
const result = await render.handler({ mtId }, context.env);
|
|
7044
7047
|
return { ...association ?? {}, invitation: result?.data ?? null };
|
|
@@ -7074,7 +7077,7 @@ var ebOperationsWithLinks = ebBaseOperations.map((operation) => {
|
|
|
7074
7077
|
const raw = String(args.member).trim();
|
|
7075
7078
|
let uid = /^\d+$/.test(raw) ? raw : "";
|
|
7076
7079
|
if (!uid) {
|
|
7077
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
7080
|
+
const { resolveMemberIdsByName } = await import("./schedule-6AN63MJQ.js");
|
|
7078
7081
|
const map = await resolveMemberIdsByName(env, [raw]).catch(() => /* @__PURE__ */ new Map());
|
|
7079
7082
|
uid = String(map.get(raw) ?? "");
|
|
7080
7083
|
}
|
|
@@ -7113,7 +7116,7 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
|
|
|
7113
7116
|
if (!String(nextArgs.mt_minutes_subject ?? "").trim() && nextArgs.mt_id) {
|
|
7114
7117
|
let meetingName = "";
|
|
7115
7118
|
try {
|
|
7116
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7119
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
7117
7120
|
const detailOp = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
7118
7121
|
const detail = await detailOp.handler({ id: String(nextArgs.mt_id) }, env);
|
|
7119
7122
|
const row = detail?.data?.data ?? {};
|
|
@@ -7133,8 +7136,8 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
|
|
|
7133
7136
|
handler: async (args, env) => {
|
|
7134
7137
|
const result = await operation.handler(args, env);
|
|
7135
7138
|
try {
|
|
7136
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7137
|
-
const { ensureMinuteDoc } = await import("./minute-doc-
|
|
7139
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
7140
|
+
const { ensureMinuteDoc } = await import("./minute-doc-NXRE5C77.js");
|
|
7138
7141
|
const minuteId = String((result?.data?.dataIds ?? [])[0] ?? "").trim();
|
|
7139
7142
|
if (minuteId) {
|
|
7140
7143
|
const detail = await getMeetingOperation2("meeting.eb.minute.detail").handler({ id: minuteId }, env);
|
|
@@ -7164,6 +7167,7 @@ var meetingEbOperations = [
|
|
|
7164
7167
|
...minuteCreateAliases,
|
|
7165
7168
|
...meetingEbDecisionTaskBatchOperations,
|
|
7166
7169
|
...meetingEbDecisionTaskReassignOperations,
|
|
7170
|
+
...meetingEntryOperations,
|
|
7167
7171
|
...meetingEbScheduleOperations,
|
|
7168
7172
|
...meetingEbCrmOperations,
|
|
7169
7173
|
...meetingEbCreateFlowOperations,
|
|
@@ -7256,7 +7260,7 @@ var composeOutcome = {
|
|
|
7256
7260
|
if (args.confirm === false) {
|
|
7257
7261
|
throw meetingValidationError("confirmation_required", "\u4F20\u4E86 confirm=false\uFF0C\u5DF2\u963B\u6B62\u5199\u5165");
|
|
7258
7262
|
}
|
|
7259
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7263
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
7260
7264
|
let mtId = String(args.mt_id ?? "").trim();
|
|
7261
7265
|
if (!mtId) {
|
|
7262
7266
|
const listOp2 = getMeetingOperation2("meeting.eb.meeting.list");
|
|
@@ -7432,6 +7436,10 @@ function buildRegistry() {
|
|
|
7432
7436
|
handler: async (args, env) => {
|
|
7433
7437
|
const startedAt = Date.now();
|
|
7434
7438
|
const result = await original(args, env);
|
|
7439
|
+
const entryResolved = env?.__entryResolved;
|
|
7440
|
+
if (entryResolved && result && typeof result === "object") {
|
|
7441
|
+
result.data = { ...result.data ?? {}, entryResolved };
|
|
7442
|
+
}
|
|
7435
7443
|
if (args?.debugTimings === true && result && typeof result === "object") {
|
|
7436
7444
|
const marks = { ...env?.__meetingTimings ?? {} };
|
|
7437
7445
|
result.data = { ...result.data ?? {}, timings: { ...marks, totalMs: Date.now() - startedAt } };
|
|
@@ -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-E5YD5JWR.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError,
|
|
9
9
|
schemaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DTCQFTHW.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";
|
|
@@ -16,17 +16,17 @@ var DEFAULT_MEETING_GROUP_FLOW_ID = "1333212605456498718";
|
|
|
16
16
|
var GROUP_FIELD = "imchat_groupid";
|
|
17
17
|
var PENDING_DIR = "pending-forms";
|
|
18
18
|
async function buildEsbEnv(env) {
|
|
19
|
-
const { createEsbHost } = await import("./host-
|
|
19
|
+
const { createEsbHost } = await import("./host-GOJHHTPY.js");
|
|
20
20
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
21
21
|
return { ctx: env.ctx, host: createEsbHost(env.ctx), continuation: createEsbContinuationSigner(env.ctx) };
|
|
22
22
|
}
|
|
23
23
|
async function buildImEnv(env) {
|
|
24
|
-
const { createImHost } = await import("./host-
|
|
24
|
+
const { createImHost } = await import("./host-ONZC6AE7.js");
|
|
25
25
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
26
26
|
return { ctx: env.ctx, host: createImHost(env.ctx), continuation: createImContinuationSigner(env.ctx) };
|
|
27
27
|
}
|
|
28
28
|
async function buildWorkflowEnv(env) {
|
|
29
|
-
const { createWorkflowHost } = await import("./host-
|
|
29
|
+
const { createWorkflowHost } = await import("./host-VTPAWDZV.js");
|
|
30
30
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
31
31
|
return { ctx: env.ctx, host: createWorkflowHost(env.ctx), continuation: createWorkflowContinuationSigner(env.ctx) };
|
|
32
32
|
}
|
|
@@ -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-EJZD434E.js");
|
|
163
163
|
const room = await resolveAddressRoom(env, addressText);
|
|
164
164
|
if (room?.name) addressText = room.name;
|
|
165
165
|
} catch {
|
|
@@ -168,7 +168,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
168
168
|
if (addressText) mainTable.address = addressText;
|
|
169
169
|
}
|
|
170
170
|
try {
|
|
171
|
-
const { getEsbOperation } = await import("./registry-
|
|
171
|
+
const { getEsbOperation } = await import("./registry-7RS74TCK.js");
|
|
172
172
|
const esbEnv = await buildEsbEnv(env);
|
|
173
173
|
const prepare = getEsbOperation("esb.trigger.prepare");
|
|
174
174
|
const apply = getEsbOperation("esb.trigger.apply");
|
|
@@ -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-OG7BPMH5.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-I4DVPDMU.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-3FYSWV3U.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-I4DVPDMU.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);
|
|
@@ -1106,6 +1106,11 @@ var XIAOE_BUNDLED_ENV_SCRIPT_SOURCE = "bundled scripts/xiaoe_env.py";
|
|
|
1106
1106
|
var XIAOE_ETEAMID_TTL_MS = 72e5;
|
|
1107
1107
|
var XIAOE_DIAGNOSTIC_MAX_LENGTH = 300;
|
|
1108
1108
|
var XIAOE_SCRIPT_DIAGNOSTIC_MAX_LENGTH = 2e3;
|
|
1109
|
+
var XIAOE_EXCHANGE_CODE_HINTS = {
|
|
1110
|
+
"2001": "The XiaoE account is not bound to an E10 system on this domain; check the E10 baseUrl and the XiaoE-side binding.",
|
|
1111
|
+
"3006": "The XiaoE session token was rejected; sign in to the XiaoE client again.",
|
|
1112
|
+
"4000": "No generic app has been created for this domain on the eteams side."
|
|
1113
|
+
};
|
|
1109
1114
|
function redactXiaoEDiagnostic(message, secrets, maxLength = XIAOE_DIAGNOSTIC_MAX_LENGTH) {
|
|
1110
1115
|
let text = message;
|
|
1111
1116
|
for (const secret of secrets) {
|
|
@@ -1936,9 +1941,20 @@ async function fetchXiaoEClientEteamId(credential, domain) {
|
|
|
1936
1941
|
const businessData = payload.data && typeof payload.data === "object" && !Array.isArray(payload.data) ? payload.data : {};
|
|
1937
1942
|
if (businessCode !== "0000" && businessCode !== 0 && businessCode !== 200 || !readString(businessData, "eteamId")) {
|
|
1938
1943
|
const codeText = businessCode === void 0 ? "missing" : String(businessCode);
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1944
|
+
const upstreamMessage = redactXiaoEDiagnostic(
|
|
1945
|
+
readString(payload, "msg", "message", "errmsg"),
|
|
1946
|
+
[credential.authToken],
|
|
1947
|
+
XIAOE_DIAGNOSTIC_MAX_LENGTH
|
|
1948
|
+
);
|
|
1949
|
+
const hint = XIAOE_EXCHANGE_CODE_HINTS[codeText];
|
|
1950
|
+
const upstreamDetail = [
|
|
1951
|
+
upstreamMessage ? `upstream says "${upstreamMessage}"` : "",
|
|
1952
|
+
`domain ${requestedDomain}`
|
|
1953
|
+
].filter(Boolean).join("; ");
|
|
1954
|
+
throw tagXiaoEError(
|
|
1955
|
+
`XiaoE client token exchange failed with business code ${codeText} (${upstreamDetail}).` + (hint ? ` ${hint}` : ""),
|
|
1956
|
+
{ errorKind: "credential" }
|
|
1957
|
+
);
|
|
1942
1958
|
}
|
|
1943
1959
|
return payload;
|
|
1944
1960
|
} catch (error) {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-WRXSAVKO.js";
|
|
16
16
|
import {
|
|
17
17
|
stringifyForStdout
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SHX7XBYR.js";
|
|
19
19
|
import {
|
|
20
20
|
stateRoot
|
|
21
21
|
} from "./chunk-AJ62BGAW.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
createFetchTimingSink,
|
|
29
29
|
hasXiaoEEnv,
|
|
30
30
|
runWithFetchTiming
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WIWDVETN.js";
|
|
32
32
|
|
|
33
33
|
// src/shortcuts/workflow/operations/form.ts
|
|
34
34
|
import { randomUUID } from "node:crypto";
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
meetingStateDir
|
|
5
|
+
} from "./chunk-E5YD5JWR.js";
|
|
6
|
+
import {
|
|
7
|
+
meetingSuccess,
|
|
8
|
+
meetingValidationError
|
|
9
|
+
} from "./chunk-DTCQFTHW.js";
|
|
10
|
+
|
|
11
|
+
// src/shortcuts/meeting/operations/eb/entry-mode.ts
|
|
12
|
+
import { join, dirname } from "node:path";
|
|
13
|
+
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
14
|
+
import { createHmac, randomBytes, timingSafeEqual } from "node:crypto";
|
|
15
|
+
var TTL_MS = 10 * 60 * 1e3;
|
|
16
|
+
async function entryFile(env) {
|
|
17
|
+
const session = await env.host.getSession();
|
|
18
|
+
const scope = String(session?.tenantKey || session?.baseUrl || "default").replace(/[^\w.-]+/g, "_");
|
|
19
|
+
return join(meetingStateDir(env.ctx), "entry-" + scope + ".json");
|
|
20
|
+
}
|
|
21
|
+
async function readEntryChoice(env) {
|
|
22
|
+
try {
|
|
23
|
+
const raw = JSON.parse(readFileSync(await entryFile(env), "utf8"));
|
|
24
|
+
if (Date.now() - Number(raw?.at ?? 0) > TTL_MS) return null;
|
|
25
|
+
const choice = String(raw?.choice ?? "").trim();
|
|
26
|
+
return choice ? { choice, at: Number(raw.at), source: raw?.source } : null;
|
|
27
|
+
} catch {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async function tokenSecret(env) {
|
|
32
|
+
const file = join(meetingStateDir(env.ctx), "entry-secret");
|
|
33
|
+
try {
|
|
34
|
+
const value = readFileSync(file, "utf8").trim();
|
|
35
|
+
if (value.length >= 32) return value;
|
|
36
|
+
} catch {
|
|
37
|
+
}
|
|
38
|
+
const secret = randomBytes(32).toString("hex");
|
|
39
|
+
mkdirSync(dirname(file), { recursive: true });
|
|
40
|
+
writeFileSync(file, secret, "utf8");
|
|
41
|
+
return secret;
|
|
42
|
+
}
|
|
43
|
+
async function tokenUser(env) {
|
|
44
|
+
try {
|
|
45
|
+
const session = await env.host.getSession();
|
|
46
|
+
return String(session?.userId ?? "");
|
|
47
|
+
} catch {
|
|
48
|
+
return "";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async function signToken(env, choice, ts) {
|
|
52
|
+
const secret = await tokenSecret(env);
|
|
53
|
+
const user = await tokenUser(env);
|
|
54
|
+
const payload = choice + "." + ts + "." + user;
|
|
55
|
+
return createHmac("sha256", secret).update(payload).digest("hex").slice(0, 32);
|
|
56
|
+
}
|
|
57
|
+
async function createEntryToken(env, choice) {
|
|
58
|
+
const ts = Date.now();
|
|
59
|
+
return choice + "." + ts + "." + await signToken(env, choice, ts);
|
|
60
|
+
}
|
|
61
|
+
async function verifyEntryToken(env, token, choice) {
|
|
62
|
+
const parts = String(token ?? "").split(".");
|
|
63
|
+
if (parts.length !== 3) return false;
|
|
64
|
+
const [tokenChoice, tsRaw, sig] = parts;
|
|
65
|
+
if (tokenChoice !== choice) return false;
|
|
66
|
+
const ts = Number(tsRaw);
|
|
67
|
+
if (!Number.isFinite(ts) || Date.now() - ts > TTL_MS) return false;
|
|
68
|
+
const expected = await signToken(env, choice, ts);
|
|
69
|
+
try {
|
|
70
|
+
return timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
|
|
71
|
+
} catch {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
var record = {
|
|
76
|
+
name: "meeting.entry.record",
|
|
77
|
+
resource: "eb",
|
|
78
|
+
method: "meeting.entry.record",
|
|
79
|
+
action: "meeting.entry.record",
|
|
80
|
+
summary: "\u8BB0\u5F55\u5EFA\u4F1A\u5165\u53E3\u9009\u62E9\uFF08assist / direct_form\uFF09\uFF0C\u4F9B create.flow.* \u5224\u65AD\u662F\u5426\u8FD8\u8981\u5F39\u5165\u53E3\u9009\u9879",
|
|
81
|
+
capability: "eb.meeting",
|
|
82
|
+
risk: "read-before-write",
|
|
83
|
+
requiresConfirmation: false,
|
|
84
|
+
inputSchema: {
|
|
85
|
+
type: "object",
|
|
86
|
+
additionalProperties: false,
|
|
87
|
+
properties: {
|
|
88
|
+
choice: { type: "string", enum: ["assist", "direct_form"] },
|
|
89
|
+
source: { type: "string", description: "\u8C01\u95EE\u7684\uFF1Aflow_tool / meeting_skill" }
|
|
90
|
+
},
|
|
91
|
+
required: ["choice"]
|
|
92
|
+
},
|
|
93
|
+
handler: async (args, env) => {
|
|
94
|
+
const choice = String(args.choice ?? "").trim();
|
|
95
|
+
if (choice !== "assist" && choice !== "direct_form") {
|
|
96
|
+
throw meetingValidationError("invalid_choice", "choice \u53EA\u80FD\u662F assist \u6216 direct_form");
|
|
97
|
+
}
|
|
98
|
+
const file = await entryFile(env);
|
|
99
|
+
mkdirSync(dirname(file), { recursive: true });
|
|
100
|
+
writeFileSync(file, JSON.stringify({ choice, at: Date.now(), source: String(args.source ?? "") }), "utf8");
|
|
101
|
+
return meetingSuccess("meeting.entry.record", { recorded: choice, ttlSeconds: TTL_MS / 1e3 });
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var meetingEntryOperations = [record];
|
|
105
|
+
|
|
106
|
+
export {
|
|
107
|
+
readEntryChoice,
|
|
108
|
+
createEntryToken,
|
|
109
|
+
verifyEntryToken,
|
|
110
|
+
meetingEntryOperations
|
|
111
|
+
};
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
findCommonFreeSlots,
|
|
8
8
|
meetingEbConflictOperations,
|
|
9
9
|
runEbConflictCheck
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-6XSSAUNW.js";
|
|
11
|
+
import "./chunk-DTCQFTHW.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|