weaver-work-cli 0.1.60 → 0.1.62
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-I6WHKGR2.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-VLL6JOB4.js → chunk-6XSSAUNW.js} +4 -4
- package/dist/chunks/{chunk-VQWPQTEY.js → chunk-BIA2NKUG.js} +4 -4
- package/dist/chunks/{chunk-VMCCRWFO.js → chunk-BQYX2UX5.js} +2 -2
- package/dist/chunks/{chunk-XF7S6FQW.js → chunk-DTCQFTHW.js} +1 -1
- package/dist/chunks/{chunk-CPG6NLN4.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-HHH4K3YY.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-P7RXQDCA.js → chunk-T2KVJFWJ.js} +4 -4
- package/dist/chunks/{chunk-FMNCSYIG.js → chunk-TEZHIB6T.js} +2 -2
- package/dist/chunks/{chunk-HMIIVM2L.js → chunk-UBGWIXU3.js} +97 -45
- package/dist/chunks/{chunk-5N222HK6.js → chunk-UBRWONP4.js} +2 -2
- package/dist/chunks/{chunk-7U5YHCW7.js → chunk-UQFPF4EX.js} +2 -2
- package/dist/chunks/{chunk-4GG72JAT.js → chunk-V2LASYKO.js} +2 -2
- package/dist/chunks/{chunk-BDBTZVYA.js → chunk-VBFBMM7G.js} +55 -55
- package/dist/chunks/{chunk-YHSOCGKO.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-JFKMPRZB.js → chunk-YI2YMW5N.js} +50 -3
- package/dist/chunks/{conflict-QMDLS2EW.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-5ODJ7WJO.js → create-flow-EJZD434E.js} +6 -6
- package/dist/chunks/{data-LVDFIRNG.js → data-FOODGAMF.js} +278 -121
- package/dist/chunks/{ebuilder-form-7WA6X6ZI.js → ebuilder-form-I2EOKODG.js} +3 -3
- package/dist/chunks/{ehr-52GBKNJR.js → ehr-TE4RFNID.js} +2 -2
- package/dist/chunks/{entry-mode-73BJML22.js → entry-mode-ZOLSXEGX.js} +9 -5
- package/dist/chunks/{env-OHFS76HV.js → env-TID5NFR6.js} +2 -2
- package/dist/chunks/{esb-HJSXCEOM.js → esb-7L6MHYLB.js} +4 -4
- package/dist/chunks/{factory-FRTA2LP4.js → factory-OG7BPMH5.js} +1 -1
- package/dist/chunks/{fna-OBACRT3J.js → fna-6V2ENR3Y.js} +2 -2
- package/dist/chunks/{group-chat-KBFRPCR2.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-5KJ7T774.js} +198 -331
- 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-ARHVWK7G.js → meeting-5E3BNARL.js} +13 -13
- package/dist/chunks/{minute-doc-547KSYKR.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-H5HQ5QNH.js → registry-I4DVPDMU.js} +11 -11
- package/dist/chunks/{room-recommend-3UBROMZE.js → room-recommend-GWCVKCXW.js} +4 -4
- package/dist/chunks/{schedule-FTUQML6O.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 -90
- package/dist/shortcuts/data/operations/index.js +3 -1
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/manifest.js +30 -62
- package/dist/shortcuts/invoice/operations/registry.js +2 -2
- package/dist/shortcuts/invoice/operations/reim-customer.js +111 -0
- package/dist/shortcuts/invoice/operations/shared.js +0 -204
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +84 -16
- package/dist/shortcuts/meeting/operations/eb/entry-mode.js +61 -7
- 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-invoice.md +1 -1
- package/docs/agent-io-channel-design.md +67 -3
- package/docs/data.md +2 -1
- package/docs/invoice.md +0 -2
- 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/skill-template/domains/yepiaotong.md +0 -1
- 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 +5 -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
- package/skills/weaver-e10-yepiaotong/SKILL.md +16 -9
- package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +9 -7
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +15 -11
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +29 -25
- package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +89 -0
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +35 -37
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +66 -63
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +50 -71
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +34 -95
- package/dist/shortcuts/invoice/operations/browse-field.js +0 -17
- package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +0 -204
|
@@ -1,46 +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
24
|
meetingEntryOperations
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
attachMeetingUrls,
|
|
19
|
-
meetingEbCreateFlowOperations,
|
|
20
|
-
meetingUrlMap
|
|
21
|
-
} from "./chunk-HMIIVM2L.js";
|
|
22
|
-
import {
|
|
23
|
-
ebMeetingWritePreflight,
|
|
24
|
-
meetingEbConflictOperations
|
|
25
|
-
} from "./chunk-VLL6JOB4.js";
|
|
25
|
+
} from "./chunk-YI2YMW5N.js";
|
|
26
26
|
import {
|
|
27
27
|
meetingEbScheduleOperations
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BIA2NKUG.js";
|
|
29
29
|
import {
|
|
30
30
|
ebRoomRecommendOperation,
|
|
31
31
|
recommendRooms,
|
|
32
32
|
rememberFrequentRoom
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-T2KVJFWJ.js";
|
|
34
34
|
import {
|
|
35
35
|
cacheScopeSuffix,
|
|
36
36
|
readCache,
|
|
37
37
|
writeCache
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ILALC2N6.js";
|
|
39
39
|
import {
|
|
40
40
|
meetingEnvOperations,
|
|
41
41
|
meetingStateDir,
|
|
42
42
|
resolveMeetingEnvMode
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-E5YD5JWR.js";
|
|
44
44
|
import {
|
|
45
45
|
EB_BASE,
|
|
46
46
|
EB_ENDPOINTS,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
toIdString,
|
|
73
73
|
verifyLease,
|
|
74
74
|
writeBody
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-DTCQFTHW.js";
|
|
76
76
|
import {
|
|
77
77
|
CONTINUATION_TTL_SECONDS
|
|
78
78
|
} from "./chunk-7BDPM5ST.js";
|
|
@@ -2239,7 +2239,7 @@ var meetingAttachmentAttach = {
|
|
|
2239
2239
|
if (mode === "append" && existingIds.length === 0) {
|
|
2240
2240
|
existingIds.push(...beforeIds);
|
|
2241
2241
|
}
|
|
2242
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2242
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
2243
2243
|
const list = getMeetingOperation2("meeting.eb.meeting.list");
|
|
2244
2244
|
let fileId = incomingFileId;
|
|
2245
2245
|
let name = String(args.name ?? "").trim();
|
|
@@ -2327,7 +2327,7 @@ function textOf(value) {
|
|
|
2327
2327
|
return value === void 0 || value === null ? "" : String(value);
|
|
2328
2328
|
}
|
|
2329
2329
|
async function readMinute(env, id) {
|
|
2330
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2330
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
2331
2331
|
const detail = getMeetingOperation2("meeting.eb.minute.detail");
|
|
2332
2332
|
const result = await detail.handler({ id }, env);
|
|
2333
2333
|
const row = result?.data?.data;
|
|
@@ -2410,7 +2410,7 @@ var meetingMinuteWriteContent = {
|
|
|
2410
2410
|
} else {
|
|
2411
2411
|
statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
|
|
2412
2412
|
}
|
|
2413
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2413
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
2414
2414
|
const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
|
|
2415
2415
|
const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
|
|
2416
2416
|
const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
|
|
@@ -2426,8 +2426,8 @@ var meetingMinuteWriteContent = {
|
|
|
2426
2426
|
let minuteDoc = null;
|
|
2427
2427
|
if (args.with_doc !== false) {
|
|
2428
2428
|
try {
|
|
2429
|
-
const { buildMinuteDocx } = await import("./minute-doc-
|
|
2430
|
-
const { meetingStateDir: meetingStateDir2 } = await import("./env-
|
|
2429
|
+
const { buildMinuteDocx } = await import("./minute-doc-NXRE5C77.js");
|
|
2430
|
+
const { meetingStateDir: meetingStateDir2 } = await import("./env-TID5NFR6.js");
|
|
2431
2431
|
const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
|
|
2432
2432
|
const { join: join3 } = await import("node:path");
|
|
2433
2433
|
const subject = textOf(after.mt_minutes_subject).trim() || `\u4F1A\u8BAE\u7EAA\u8981-${mtId}`;
|
|
@@ -2464,7 +2464,7 @@ var meetingMinuteWriteContent = {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
if (args.with_doc !== false) {
|
|
2466
2466
|
try {
|
|
2467
|
-
const { ensureMinuteDoc } = await import("./minute-doc-
|
|
2467
|
+
const { ensureMinuteDoc } = await import("./minute-doc-NXRE5C77.js");
|
|
2468
2468
|
const better = await ensureMinuteDoc(env, {
|
|
2469
2469
|
id,
|
|
2470
2470
|
mtId,
|
|
@@ -2835,7 +2835,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2835
2835
|
const mtId = textOf2(args.mt_id).trim();
|
|
2836
2836
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
2837
2837
|
const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
|
|
2838
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2838
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
2839
2839
|
const ctx = env.ctx;
|
|
2840
2840
|
let stepStart = Date.now();
|
|
2841
2841
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
@@ -2859,7 +2859,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
mark("readMeeting", stepStart);
|
|
2861
2861
|
const pullStart = Date.now();
|
|
2862
|
-
const { createImHost } = await import("./host-
|
|
2862
|
+
const { createImHost } = await import("./host-ONZC6AE7.js");
|
|
2863
2863
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
2864
2864
|
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
2865
2865
|
const imEnv = { ctx, host: createImHost(ctx), continuation: createImContinuationSigner(ctx) };
|
|
@@ -2929,7 +2929,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2929
2929
|
try {
|
|
2930
2930
|
const { readFile: readFile4 } = await import("node:fs/promises");
|
|
2931
2931
|
const buffer = await readFile4(file);
|
|
2932
|
-
const { extractText } = await import("./attachment-content-
|
|
2932
|
+
const { extractText } = await import("./attachment-content-VYYA75FR.js");
|
|
2933
2933
|
const extracted = extractText(buffer, file, "");
|
|
2934
2934
|
if (extracted.text.trim()) {
|
|
2935
2935
|
extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
|
|
@@ -3058,9 +3058,9 @@ ${groupTranscript}` : ""
|
|
|
3058
3058
|
if (!employeeId) {
|
|
3059
3059
|
warnings.push("\u672A\u53D6\u5230 ESB \u89E6\u53D1\u4EBA id\uFF08employeeId\uFF09\uFF0C\u5DF2\u8DF3\u8FC7\u540E\u7EED ESB \u8C03\u7528");
|
|
3060
3060
|
} else {
|
|
3061
|
-
const { createEsbHost } = await import("./host-
|
|
3061
|
+
const { createEsbHost } = await import("./host-GOJHHTPY.js");
|
|
3062
3062
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
3063
|
-
const { getEsbOperation } = await import("./registry-
|
|
3063
|
+
const { getEsbOperation } = await import("./registry-7RS74TCK.js");
|
|
3064
3064
|
const esbEnv = { ctx, host: createEsbHost(ctx), continuation: createEsbContinuationSigner(ctx) };
|
|
3065
3065
|
const prepareOp = getEsbOperation("esb.trigger.prepare");
|
|
3066
3066
|
const applyOp = getEsbOperation("esb.trigger.apply");
|
|
@@ -3104,8 +3104,8 @@ ${groupTranscript}` : ""
|
|
|
3104
3104
|
if (args.with_doc !== false) {
|
|
3105
3105
|
const docStarted = Date.now();
|
|
3106
3106
|
try {
|
|
3107
|
-
const { buildMinuteDocx } = await import("./minute-doc-
|
|
3108
|
-
const { meetingStateDir: meetingStateDir2 } = await import("./env-
|
|
3107
|
+
const { buildMinuteDocx } = await import("./minute-doc-NXRE5C77.js");
|
|
3108
|
+
const { meetingStateDir: meetingStateDir2 } = await import("./env-TID5NFR6.js");
|
|
3109
3109
|
const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
|
|
3110
3110
|
const { join: join3 } = await import("node:path");
|
|
3111
3111
|
const body = textOf2(row.parse_content) || textOf2(row.minutes_content) || transcript;
|
|
@@ -3292,7 +3292,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3292
3292
|
const warnings = [];
|
|
3293
3293
|
const mtId = textOf3(args.mt_id).trim();
|
|
3294
3294
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
3295
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3295
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
3296
3296
|
const ctx = env.ctx;
|
|
3297
3297
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
3298
3298
|
{ mt_id: mtId, pageNo: 1, pageSize: 1 },
|
|
@@ -3356,7 +3356,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3356
3356
|
charCount: formatted.text.length,
|
|
3357
3357
|
text: formatted.text
|
|
3358
3358
|
};
|
|
3359
|
-
const { createImHost } = await import("./host-
|
|
3359
|
+
const { createImHost } = await import("./host-ONZC6AE7.js");
|
|
3360
3360
|
const imHost = createImHost(ctx);
|
|
3361
3361
|
let displayText = formatted.text;
|
|
3362
3362
|
let wireText = formatted.text;
|
|
@@ -3594,7 +3594,7 @@ var meetingPipelineRun = {
|
|
|
3594
3594
|
const needsConfirm = level === "tasks" || level === "notify";
|
|
3595
3595
|
const confirmed = args.confirm === true;
|
|
3596
3596
|
const executedLevel = needsConfirm && !confirmed ? "document" : level;
|
|
3597
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3597
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
3598
3598
|
const ctx = env.ctx;
|
|
3599
3599
|
let stepStart = Date.now();
|
|
3600
3600
|
const reuseMinuteId = textOf4(args.minuteId).trim();
|
|
@@ -3663,7 +3663,7 @@ var meetingPipelineRun = {
|
|
|
3663
3663
|
]);
|
|
3664
3664
|
}
|
|
3665
3665
|
stepStart = Date.now();
|
|
3666
|
-
const { createHrmHost } = await import("./host-
|
|
3666
|
+
const { createHrmHost } = await import("./host-TJ5VVHM7.js");
|
|
3667
3667
|
const { getHrmOperation } = await import("./registry-3UGIWH53.js");
|
|
3668
3668
|
const hrmEnv = { ctx, host: createHrmHost(ctx) };
|
|
3669
3669
|
const queryOp = getHrmOperation("hrm.employee.query");
|
|
@@ -3966,7 +3966,7 @@ function formatTimeRange(start, end) {
|
|
|
3966
3966
|
}
|
|
3967
3967
|
async function loadAgendaFromTopics(env, mtId) {
|
|
3968
3968
|
try {
|
|
3969
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3969
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
3970
3970
|
const operation = getMeetingOperation2("meeting.eb.topic.list");
|
|
3971
3971
|
const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
|
|
3972
3972
|
const rows = result.data?.rows ?? [];
|
|
@@ -4117,7 +4117,7 @@ async function supplementRowFromDetail(row, mtId, env) {
|
|
|
4117
4117
|
const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
|
|
4118
4118
|
if (missing.length === 0) return { row, filled: [] };
|
|
4119
4119
|
try {
|
|
4120
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4120
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
4121
4121
|
const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
4122
4122
|
const result = await detailOperation.handler({ id: mtId }, env);
|
|
4123
4123
|
const flat = result?.data?.data ?? result?.data ?? {};
|
|
@@ -4291,7 +4291,7 @@ var meetingInvitationRender = {
|
|
|
4291
4291
|
};
|
|
4292
4292
|
dataSource = "payload";
|
|
4293
4293
|
} else {
|
|
4294
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4294
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
4295
4295
|
const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
|
|
4296
4296
|
try {
|
|
4297
4297
|
const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
|
|
@@ -4635,7 +4635,7 @@ var meetingInvitationPublish = {
|
|
|
4635
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"
|
|
4636
4636
|
);
|
|
4637
4637
|
}
|
|
4638
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4638
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
4639
4639
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
4640
4640
|
const rendered = await render.handler(
|
|
4641
4641
|
{
|
|
@@ -4667,8 +4667,8 @@ var meetingInvitationPublish = {
|
|
|
4667
4667
|
folder_type: String(args.folder_type ?? DEFAULT_FOLDER_TYPE),
|
|
4668
4668
|
author_id: authorId
|
|
4669
4669
|
};
|
|
4670
|
-
const { executeCaizhilianOperation } = await import("./operations-
|
|
4671
|
-
const { createCaizhilianHost } = await import("./host-
|
|
4670
|
+
const { executeCaizhilianOperation } = await import("./operations-EZWG72FH.js");
|
|
4671
|
+
const { createCaizhilianHost } = await import("./host-3DLYA54R.js");
|
|
4672
4672
|
const { createCaizhilianContinuationSigner } = await import("./continuation-GW6PRWK3.js");
|
|
4673
4673
|
const caizhilianEnv = {
|
|
4674
4674
|
ctx: env.ctx,
|
|
@@ -5350,7 +5350,7 @@ var meetingSummaryGet = {
|
|
|
5350
5350
|
const mtId = textOf5(args.mt_id).trim();
|
|
5351
5351
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
5352
5352
|
const ctx = env.ctx;
|
|
5353
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5353
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
5354
5354
|
const warnings = [];
|
|
5355
5355
|
const timings = {};
|
|
5356
5356
|
const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
|
|
@@ -5486,7 +5486,7 @@ var meetingSummaryGet = {
|
|
|
5486
5486
|
warnings.push("\u8BE5\u4F1A\u8BAE\u6CA1\u6709\u5173\u8054\u7FA4\u804A\uFF08imchat_groupid \u4E3A\u7A7A\uFF09\uFF0Cchat \u6BB5\u4E3A null");
|
|
5487
5487
|
} else {
|
|
5488
5488
|
try {
|
|
5489
|
-
const { createImHost } = await import("./host-
|
|
5489
|
+
const { createImHost } = await import("./host-ONZC6AE7.js");
|
|
5490
5490
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
5491
5491
|
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
5492
5492
|
const imEnv = {
|
|
@@ -5612,7 +5612,7 @@ var meetingFormFields = {
|
|
|
5612
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"
|
|
5613
5613
|
}, { warnings: resolved.warnings });
|
|
5614
5614
|
}
|
|
5615
|
-
const { createEbuilderFormHost } = await import("./host-
|
|
5615
|
+
const { createEbuilderFormHost } = await import("./host-OGBHL75G.js");
|
|
5616
5616
|
const { createEbuilderFormContinuationSigner } = await import("./continuation-3XLYYTKV.js");
|
|
5617
5617
|
const { executeEbuilderFormOperation } = await import("./operations-62N6EP3C.js");
|
|
5618
5618
|
const formEnv = {
|
|
@@ -5671,7 +5671,7 @@ var MT_STATUS_OVER = "8";
|
|
|
5671
5671
|
var CANCELLED_MARK_DELAY_MS = 800;
|
|
5672
5672
|
async function isCancelledMeeting(env, mtId) {
|
|
5673
5673
|
try {
|
|
5674
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5674
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
5675
5675
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
5676
5676
|
// withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
|
|
5677
5677
|
{ mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
|
|
@@ -5716,7 +5716,7 @@ async function resolveDecisionPeople(env, input, ownerId) {
|
|
|
5716
5716
|
}
|
|
5717
5717
|
let nameToId = /* @__PURE__ */ new Map();
|
|
5718
5718
|
if (nameTokens.size > 0) {
|
|
5719
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
5719
|
+
const { resolveMemberIdsByName } = await import("./schedule-6AN63MJQ.js");
|
|
5720
5720
|
nameToId = await resolveMemberIdsByName(env, [...nameTokens]).catch(() => /* @__PURE__ */ new Map());
|
|
5721
5721
|
}
|
|
5722
5722
|
const unresolved = [];
|
|
@@ -6591,9 +6591,9 @@ async function runCrmSearchFlow(env, input) {
|
|
|
6591
6591
|
if (!employeeId) {
|
|
6592
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");
|
|
6593
6593
|
}
|
|
6594
|
-
const { createEsbHost } = await import("./host-
|
|
6594
|
+
const { createEsbHost } = await import("./host-GOJHHTPY.js");
|
|
6595
6595
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
6596
|
-
const { getEsbOperation } = await import("./registry-
|
|
6596
|
+
const { getEsbOperation } = await import("./registry-7RS74TCK.js");
|
|
6597
6597
|
const esbEnv = {
|
|
6598
6598
|
ctx: env.ctx,
|
|
6599
6599
|
host: createEsbHost(env.ctx),
|
|
@@ -6760,7 +6760,7 @@ var deleteMany = {
|
|
|
6760
6760
|
if (args.confirm !== true) {
|
|
6761
6761
|
throw meetingValidationError("confirmation_required", "\u6279\u91CF\u5220\u9664\u4E0D\u53EF\u6062\u590D\uFF0C\u5FC5\u987B\u4F20 confirm=true");
|
|
6762
6762
|
}
|
|
6763
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6763
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
6764
6764
|
const listOp = getMeetingOperation2("meeting.eb.decisionTask.list");
|
|
6765
6765
|
const prepareOp = getMeetingOperation2("meeting.eb.decisionTask.delete.prepare");
|
|
6766
6766
|
const applyOp = getMeetingOperation2("meeting.eb.decisionTask.delete.apply");
|
|
@@ -6895,7 +6895,7 @@ var reassign = {
|
|
|
6895
6895
|
},
|
|
6896
6896
|
handler: async (args, env) => {
|
|
6897
6897
|
if (args.confirm === false) throw meetingValidationError("confirmation_required", "confirm=false\uFF0C\u672A\u6267\u884C");
|
|
6898
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6898
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
6899
6899
|
const mtId = String(args.mt_id ?? "").trim();
|
|
6900
6900
|
const target = await resolveEmployeeId(env, String(args.to_executor ?? ""));
|
|
6901
6901
|
const from = String(args.from_executor ?? "").trim();
|
|
@@ -7041,7 +7041,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
|
|
|
7041
7041
|
const mtId = String(context.dataIds?.[0] ?? "").trim();
|
|
7042
7042
|
if (!isCreate || !enabled || !mtId) return association;
|
|
7043
7043
|
try {
|
|
7044
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7044
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
7045
7045
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
7046
7046
|
const result = await render.handler({ mtId }, context.env);
|
|
7047
7047
|
return { ...association ?? {}, invitation: result?.data ?? null };
|
|
@@ -7077,7 +7077,7 @@ var ebOperationsWithLinks = ebBaseOperations.map((operation) => {
|
|
|
7077
7077
|
const raw = String(args.member).trim();
|
|
7078
7078
|
let uid = /^\d+$/.test(raw) ? raw : "";
|
|
7079
7079
|
if (!uid) {
|
|
7080
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
7080
|
+
const { resolveMemberIdsByName } = await import("./schedule-6AN63MJQ.js");
|
|
7081
7081
|
const map = await resolveMemberIdsByName(env, [raw]).catch(() => /* @__PURE__ */ new Map());
|
|
7082
7082
|
uid = String(map.get(raw) ?? "");
|
|
7083
7083
|
}
|
|
@@ -7116,7 +7116,7 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
|
|
|
7116
7116
|
if (!String(nextArgs.mt_minutes_subject ?? "").trim() && nextArgs.mt_id) {
|
|
7117
7117
|
let meetingName = "";
|
|
7118
7118
|
try {
|
|
7119
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7119
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
7120
7120
|
const detailOp = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
7121
7121
|
const detail = await detailOp.handler({ id: String(nextArgs.mt_id) }, env);
|
|
7122
7122
|
const row = detail?.data?.data ?? {};
|
|
@@ -7136,8 +7136,8 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
|
|
|
7136
7136
|
handler: async (args, env) => {
|
|
7137
7137
|
const result = await operation.handler(args, env);
|
|
7138
7138
|
try {
|
|
7139
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7140
|
-
const { ensureMinuteDoc } = await import("./minute-doc-
|
|
7139
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
7140
|
+
const { ensureMinuteDoc } = await import("./minute-doc-NXRE5C77.js");
|
|
7141
7141
|
const minuteId = String((result?.data?.dataIds ?? [])[0] ?? "").trim();
|
|
7142
7142
|
if (minuteId) {
|
|
7143
7143
|
const detail = await getMeetingOperation2("meeting.eb.minute.detail").handler({ id: minuteId }, env);
|
|
@@ -7260,7 +7260,7 @@ var composeOutcome = {
|
|
|
7260
7260
|
if (args.confirm === false) {
|
|
7261
7261
|
throw meetingValidationError("confirmation_required", "\u4F20\u4E86 confirm=false\uFF0C\u5DF2\u963B\u6B62\u5199\u5165");
|
|
7262
7262
|
}
|
|
7263
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
7263
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
|
|
7264
7264
|
let mtId = String(args.mt_id ?? "").trim();
|
|
7265
7265
|
if (!mtId) {
|
|
7266
7266
|
const listOp2 = getMeetingOperation2("meeting.eb.meeting.list");
|
|
@@ -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";
|
|
@@ -2,20 +2,21 @@ 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
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DTCQFTHW.js";
|
|
10
10
|
|
|
11
11
|
// src/shortcuts/meeting/operations/eb/entry-mode.ts
|
|
12
12
|
import { join, dirname } from "node:path";
|
|
13
13
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
14
|
+
import { createHmac, randomBytes, timingSafeEqual } from "node:crypto";
|
|
14
15
|
var TTL_MS = 10 * 60 * 1e3;
|
|
15
16
|
async function entryFile(env) {
|
|
16
17
|
const session = await env.host.getSession();
|
|
17
18
|
const scope = String(session?.tenantKey || session?.baseUrl || "default").replace(/[^\w.-]+/g, "_");
|
|
18
|
-
return join(meetingStateDir(env.ctx),
|
|
19
|
+
return join(meetingStateDir(env.ctx), "entry-" + scope + ".json");
|
|
19
20
|
}
|
|
20
21
|
async function readEntryChoice(env) {
|
|
21
22
|
try {
|
|
@@ -27,6 +28,50 @@ async function readEntryChoice(env) {
|
|
|
27
28
|
return null;
|
|
28
29
|
}
|
|
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
|
+
}
|
|
30
75
|
var record = {
|
|
31
76
|
name: "meeting.entry.record",
|
|
32
77
|
resource: "eb",
|
|
@@ -60,5 +105,7 @@ var meetingEntryOperations = [record];
|
|
|
60
105
|
|
|
61
106
|
export {
|
|
62
107
|
readEntryChoice,
|
|
108
|
+
createEntryToken,
|
|
109
|
+
verifyEntryToken,
|
|
63
110
|
meetingEntryOperations
|
|
64
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";
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
createE10RequestRuntime,
|
|
13
13
|
isE10SessionExpiredResponse,
|
|
14
14
|
requireE10Session
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NRYDJN4J.js";
|
|
16
16
|
import {
|
|
17
17
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
18
18
|
getActiveProfile
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WIWDVETN.js";
|
|
20
20
|
import "./chunk-SHYQUBY3.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
createE10RequestRuntime,
|
|
12
12
|
isE10SessionExpiredResponse,
|
|
13
13
|
requireE10Session
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NRYDJN4J.js";
|
|
15
15
|
import {
|
|
16
16
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
17
17
|
getActiveProfile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WIWDVETN.js";
|
|
19
19
|
import "./chunk-SHYQUBY3.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
resolveWorkflowId,
|
|
23
23
|
shapeBrowserValues,
|
|
24
24
|
shouldAutoPickFlow
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-UBGWIXU3.js";
|
|
26
|
+
import "./chunk-6XSSAUNW.js";
|
|
27
|
+
import "./chunk-T2KVJFWJ.js";
|
|
28
|
+
import "./chunk-ILALC2N6.js";
|
|
29
|
+
import "./chunk-E5YD5JWR.js";
|
|
30
|
+
import "./chunk-DTCQFTHW.js";
|
|
31
31
|
import "./chunk-7BDPM5ST.js";
|
|
32
32
|
import "./chunk-UG5G54VL.js";
|
|
33
33
|
import "./chunk-BUSC6UAE.js";
|