weaver-work-cli 0.1.52 → 0.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{attachment-content-MBYYSQIX.js → attachment-content-W3TSJC3Y.js} +3 -3
- package/dist/chunks/{chunk-D3TDNRFE.js → chunk-2J3XY4ED.js} +7 -7
- package/dist/chunks/{chunk-IRMA3GVP.js → chunk-6GCXWKG6.js} +1 -1
- package/dist/chunks/{chunk-KLZ3ULQQ.js → chunk-76PRVYH4.js} +1 -1
- package/dist/chunks/{chunk-7UOXOGFL.js → chunk-DEHJ7PMA.js} +4 -4
- package/dist/chunks/{chunk-DZOC77ZD.js → chunk-IF33CG4V.js} +1 -1
- package/dist/chunks/{chunk-LTRLF6MM.js → chunk-PE334WL3.js} +4 -4
- package/dist/chunks/{chunk-RWFRZSIP.js → chunk-QQXMHM3J.js} +2 -2
- package/dist/chunks/{chunk-RPRFIG6I.js → chunk-U7ROML5E.js} +23 -23
- package/dist/chunks/{chunk-ZRHKGQRQ.js → chunk-WTLQGS6D.js} +2 -2
- package/dist/chunks/{chunk-LALWNK6M.js → chunk-XPQN4E5O.js} +41 -19
- package/dist/chunks/{chunk-LM2H7SZI.js → chunk-Z4G7LLDD.js} +25 -25
- package/dist/chunks/{conflict-D2HYKBMH.js → conflict-57WDJWL7.js} +2 -2
- package/dist/chunks/{contract-MFOFMM2J.js → contract-LJRAXVZU.js} +5448 -1857
- package/dist/chunks/{create-flow-7ZATJVTM.js → create-flow-3FMMZBCA.js} +6 -6
- package/dist/chunks/{env-5DO4YENS.js → env-JYZE3BZB.js} +2 -2
- package/dist/chunks/{factory-3M7D7WJC.js → factory-66SCIKW3.js} +1 -1
- package/dist/chunks/{group-chat-B2HT5NEO.js → group-chat-MNRYMLNG.js} +3 -3
- package/dist/chunks/{meeting-HZOX3CBB.js → meeting-IIY4UAJL.js} +10 -10
- package/dist/chunks/{registry-KYPFFQIH.js → registry-CJOVECZD.js} +1 -1
- package/dist/chunks/{registry-SJHSBO5G.js → registry-METZ2LWE.js} +10 -10
- package/dist/chunks/{room-recommend-5AHR4YQV.js → room-recommend-YFY7HTOF.js} +4 -4
- package/dist/chunks/{schedule-KZPJUPC2.js → schedule-6I63TERA.js} +4 -4
- package/dist/chunks/{smart-extract-IXHCZE4R.js → smart-extract-FOUYNIG3.js} +44 -8
- package/dist/chunks/{workflow-UHKCZJMY.js → workflow-YHXFIU63.js} +1 -1
- package/dist/index.js +4 -4
- package/dist/shortcuts/contract/manifest.js +105 -5
- package/dist/shortcuts/contract/ooxml/docx-table.js +233 -0
- package/dist/shortcuts/contract/operations/card-action.js +597 -17
- package/dist/shortcuts/contract/operations/card-ebdf-list.js +258 -2
- package/dist/shortcuts/contract/operations/card.js +6 -5
- package/dist/shortcuts/contract/operations/docx-fillfromquote.js +532 -0
- package/dist/shortcuts/contract/operations/docx-verify.js +258 -0
- package/dist/shortcuts/contract/operations/elements-build.js +47 -0
- package/dist/shortcuts/contract/operations/first-screen.js +28 -3
- package/dist/shortcuts/contract/operations/ledger.js +438 -0
- package/dist/shortcuts/contract/operations/performance.js +104 -3
- package/dist/shortcuts/contract/operations/quotescreen.js +529 -0
- package/dist/shortcuts/contract/operations/registry.js +10 -0
- package/dist/shortcuts/contract/operations/triage.js +1100 -0
- package/dist/shortcuts/smart-extract/operations/fill.js +10 -7
- package/dist/shortcuts/smart-extract/operations/validate.js +49 -3
- package/dist/shortcuts/workflow/operations/form.js +68 -33
- package/docs/smart-extract.md +5 -5
- package/package.json +1 -1
- package/skills/weaver-e10-jinchengda/SKILL.md +139 -99
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +43 -482
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +7 -8
- package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +3 -3
- package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +32 -16
- package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +478 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +39 -61
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +13 -9
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +3 -3
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +3 -3
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +263 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +525 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +36 -0
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +3 -6
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +80 -54
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +53 -76
- package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +19 -21
- package/skills/weaver-e10-jinchengda/references/orchestration.md +12 -12
- package/skills/weaver-e10-jinchengda/references/source-manifest.json +1 -6
- package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +2 -1
- package/skills/weaver-e10-smart-extract/SKILL.md +15 -4
- package/skills/weaver-e10-smart-extract/references/result-format.md +2 -2
- package/skills/weaver-e10-smart-extract/references/troubleshooting.md +2 -1
- package/skills/weaver-e10-workflow/references/workflow-create.md +6 -5
- package/skills/weaver-e10-workflow/references/workflow-edit.md +1 -1
- package/skills/weaver-e10-jinchengda/scripts/contract_first_screen.py +0 -200
- package/skills/weaver-e10-jinchengda/scripts/fill_contract_from_quote.py +0 -572
- package/skills/weaver-e10-jinchengda/scripts/quote_screen.py +0 -560
- package/skills/weaver-e10-jinchengda/scripts/triage_contract.py +0 -894
- package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +0 -598
- package/skills/weaver-e10-jinchengda/scripts/verify_docx_placeholders.py +0 -118
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
looksLikeFileId,
|
|
9
9
|
meetingAttachmentContentOperations,
|
|
10
10
|
parseFileIdList
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-WTLQGS6D.js";
|
|
12
|
+
import "./chunk-IF33CG4V.js";
|
|
13
|
+
import "./chunk-6GCXWKG6.js";
|
|
14
14
|
import "./chunk-7BDPM5ST.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -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-IF33CG4V.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError,
|
|
9
9
|
schemaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6GCXWKG6.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";
|
|
@@ -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-3FMMZBCA.js");
|
|
163
163
|
const room = await resolveAddressRoom(env, addressText);
|
|
164
164
|
if (room?.name) addressText = room.name;
|
|
165
165
|
} catch {
|
|
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
201
201
|
const group = String(groupId).trim();
|
|
202
202
|
if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
|
|
203
203
|
try {
|
|
204
|
-
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-
|
|
204
|
+
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-66SCIKW3.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-METZ2LWE.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-CJOVECZD.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-METZ2LWE.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);
|
|
@@ -2329,7 +2329,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
|
|
|
2329
2329
|
);
|
|
2330
2330
|
}
|
|
2331
2331
|
if (endpoint.interfacePk === "create_meeting") {
|
|
2332
|
-
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-
|
|
2332
|
+
const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-57WDJWL7.js");
|
|
2333
2333
|
assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
|
|
2334
2334
|
}
|
|
2335
2335
|
const pkQuery = writePkQuery(endpoint, payload);
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingStateDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IF33CG4V.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
meetingValidationError,
|
|
13
13
|
queryBody,
|
|
14
14
|
toIdCsv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6GCXWKG6.js";
|
|
16
16
|
|
|
17
17
|
// src/shortcuts/meeting/operations/eb/conflict.ts
|
|
18
18
|
var ACTIVE_MT_STATUS = "1,2,8,9";
|
|
@@ -296,7 +296,7 @@ var ebMeetingWritePreflight = async ({ endpoint, payload, args, env, extras }) =
|
|
|
296
296
|
const items = rawMembers.split(/[,;,;]+/u).map((item) => item.trim()).filter((item) => item !== "");
|
|
297
297
|
const nameLike = items.filter((item) => !/^\d+$/u.test(item));
|
|
298
298
|
if (nameLike.length > 0) {
|
|
299
|
-
const { resolveMemberIdsByName } = await import("./schedule-
|
|
299
|
+
const { resolveMemberIdsByName } = await import("./schedule-6I63TERA.js");
|
|
300
300
|
const idsByName = await resolveMemberIdsByName(env, nameLike);
|
|
301
301
|
const resolved = items.map((item) => idsByName.get(item) ?? item);
|
|
302
302
|
payload.mainTable.hrm_members = [...new Set(resolved)].join(",");
|
|
@@ -429,7 +429,7 @@ var ebConflictRoom = {
|
|
|
429
429
|
let addressId = String(args.address ?? "").trim();
|
|
430
430
|
let resolvedRoom = null;
|
|
431
431
|
if (!addressId && String(args.room_name ?? "").trim()) {
|
|
432
|
-
const { resolveAddressRoom } = await import("./create-flow-
|
|
432
|
+
const { resolveAddressRoom } = await import("./create-flow-3FMMZBCA.js");
|
|
433
433
|
const resolved = await resolveAddressRoom(env, String(args.room_name));
|
|
434
434
|
if (!resolved?.id) {
|
|
435
435
|
throw meetingValidationError(
|
|
@@ -639,7 +639,7 @@ async function findCommonFreeSlots(env, input) {
|
|
|
639
639
|
const scheduleItems = [];
|
|
640
640
|
if (includeSchedule) {
|
|
641
641
|
try {
|
|
642
|
-
const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-
|
|
642
|
+
const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-6I63TERA.js");
|
|
643
643
|
const dayBegin = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 0, 0, 0, 0);
|
|
644
644
|
const dayEnd = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 23, 59, 0, 0);
|
|
645
645
|
const flow = await runScheduleConflictFlow(env, {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
cacheScopeSuffix,
|
|
5
5
|
readCache,
|
|
6
6
|
writeCache
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-76PRVYH4.js";
|
|
8
8
|
import {
|
|
9
9
|
EB_BASE,
|
|
10
10
|
SCHEMA_DATETIME_MINUTE,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
meetingSuccess,
|
|
14
14
|
queryBody,
|
|
15
15
|
schemaOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6GCXWKG6.js";
|
|
17
17
|
|
|
18
18
|
// src/shortcuts/meeting/operations/eb/usage-cache.ts
|
|
19
19
|
var USAGE_TTL_MS = 5 * 60 * 1e3;
|
|
@@ -88,7 +88,7 @@ async function clearCache(env, key) {
|
|
|
88
88
|
try {
|
|
89
89
|
const { rm } = await import("node:fs/promises");
|
|
90
90
|
const { join } = await import("node:path");
|
|
91
|
-
const { meetingStateDir } = await import("./env-
|
|
91
|
+
const { meetingStateDir } = await import("./env-JYZE3BZB.js");
|
|
92
92
|
await rm(join(meetingStateDir(env.ctx), "cache", `${key}.json`), { force: true });
|
|
93
93
|
} catch {
|
|
94
94
|
}
|
|
@@ -221,7 +221,7 @@ async function loadFrequentRooms(env, options = {}) {
|
|
|
221
221
|
const counts = /* @__PURE__ */ new Map();
|
|
222
222
|
let requests = 0;
|
|
223
223
|
try {
|
|
224
|
-
const { getMeetingOperation } = await import("./registry-
|
|
224
|
+
const { getMeetingOperation } = await import("./registry-METZ2LWE.js");
|
|
225
225
|
const listOp = getMeetingOperation("meeting.eb.meeting.list");
|
|
226
226
|
let seen = 0;
|
|
227
227
|
let total = 0;
|
|
@@ -3,13 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readCache,
|
|
5
5
|
writeCache
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-76PRVYH4.js";
|
|
7
7
|
import {
|
|
8
8
|
SCHEMA_DATETIME_MINUTE,
|
|
9
9
|
meetingSuccess,
|
|
10
10
|
meetingValidationError,
|
|
11
11
|
schemaOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6GCXWKG6.js";
|
|
13
13
|
|
|
14
14
|
// src/shortcuts/meeting/operations/eb/schedule.ts
|
|
15
15
|
var SCHEDULE_TYPE_PATH = "/api/ebuilder/form/formdata/v2/getFormDataList/queryAgendaType";
|
|
@@ -5,35 +5,35 @@ import {
|
|
|
5
5
|
listMeetingAttachments,
|
|
6
6
|
meetingAttachmentContentOperations,
|
|
7
7
|
renderDocx
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WTLQGS6D.js";
|
|
9
9
|
import {
|
|
10
10
|
meetingEbGroupChatOperations
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2J3XY4ED.js";
|
|
12
12
|
import {
|
|
13
13
|
meetingEbCreateFlowOperations
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Z4G7LLDD.js";
|
|
15
15
|
import {
|
|
16
16
|
ebMeetingWritePreflight,
|
|
17
17
|
meetingEbConflictOperations
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DEHJ7PMA.js";
|
|
19
19
|
import {
|
|
20
20
|
meetingEbScheduleOperations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QQXMHM3J.js";
|
|
22
22
|
import {
|
|
23
23
|
ebRoomRecommendOperation,
|
|
24
24
|
recommendRooms,
|
|
25
25
|
rememberFrequentRoom
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PE334WL3.js";
|
|
27
27
|
import {
|
|
28
28
|
cacheScopeSuffix,
|
|
29
29
|
readCache,
|
|
30
30
|
writeCache
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-76PRVYH4.js";
|
|
32
32
|
import {
|
|
33
33
|
meetingEnvOperations,
|
|
34
34
|
meetingStateDir,
|
|
35
35
|
resolveMeetingEnvMode
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-IF33CG4V.js";
|
|
37
37
|
import {
|
|
38
38
|
EB_BASE,
|
|
39
39
|
EB_ENDPOINTS,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
toIdString,
|
|
66
66
|
verifyLease,
|
|
67
67
|
writeBody
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-6GCXWKG6.js";
|
|
69
69
|
import {
|
|
70
70
|
CONTINUATION_TTL_SECONDS
|
|
71
71
|
} from "./chunk-7BDPM5ST.js";
|
|
@@ -2229,7 +2229,7 @@ var meetingAttachmentAttach = {
|
|
|
2229
2229
|
if (mode === "append" && existingIds.length === 0) {
|
|
2230
2230
|
existingIds.push(...beforeIds);
|
|
2231
2231
|
}
|
|
2232
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2232
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
2233
2233
|
const list = getMeetingOperation2("meeting.eb.meeting.list");
|
|
2234
2234
|
let fileId = incomingFileId;
|
|
2235
2235
|
let name = String(args.name ?? "").trim();
|
|
@@ -2317,7 +2317,7 @@ function textOf(value) {
|
|
|
2317
2317
|
return value === void 0 || value === null ? "" : String(value);
|
|
2318
2318
|
}
|
|
2319
2319
|
async function readMinute(env, id) {
|
|
2320
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2320
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
2321
2321
|
const detail = getMeetingOperation2("meeting.eb.minute.detail");
|
|
2322
2322
|
const result = await detail.handler({ id }, env);
|
|
2323
2323
|
const row = result?.data?.data;
|
|
@@ -2396,7 +2396,7 @@ var meetingMinuteWriteContent = {
|
|
|
2396
2396
|
} else {
|
|
2397
2397
|
statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
|
|
2398
2398
|
}
|
|
2399
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2399
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
2400
2400
|
const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
|
|
2401
2401
|
const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
|
|
2402
2402
|
const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
|
|
@@ -2762,7 +2762,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2762
2762
|
const mtId = textOf2(args.mt_id).trim();
|
|
2763
2763
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
2764
2764
|
const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
|
|
2765
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2765
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
2766
2766
|
const ctx = env.ctx;
|
|
2767
2767
|
let stepStart = Date.now();
|
|
2768
2768
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
@@ -2856,7 +2856,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2856
2856
|
try {
|
|
2857
2857
|
const { readFile: readFile4 } = await import("node:fs/promises");
|
|
2858
2858
|
const buffer = await readFile4(file);
|
|
2859
|
-
const { extractText } = await import("./attachment-content-
|
|
2859
|
+
const { extractText } = await import("./attachment-content-W3TSJC3Y.js");
|
|
2860
2860
|
const extracted = extractText(buffer, file, "");
|
|
2861
2861
|
if (extracted.text.trim()) {
|
|
2862
2862
|
extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
|
|
@@ -3175,7 +3175,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3175
3175
|
const warnings = [];
|
|
3176
3176
|
const mtId = textOf3(args.mt_id).trim();
|
|
3177
3177
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
3178
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3178
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
3179
3179
|
const ctx = env.ctx;
|
|
3180
3180
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
3181
3181
|
{ mt_id: mtId, pageNo: 1, pageSize: 1 },
|
|
@@ -3477,7 +3477,7 @@ var meetingPipelineRun = {
|
|
|
3477
3477
|
const needsConfirm = level === "tasks" || level === "notify";
|
|
3478
3478
|
const confirmed = args.confirm === true;
|
|
3479
3479
|
const executedLevel = needsConfirm && !confirmed ? "document" : level;
|
|
3480
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3480
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
3481
3481
|
const ctx = env.ctx;
|
|
3482
3482
|
let stepStart = Date.now();
|
|
3483
3483
|
const reuseMinuteId = textOf4(args.minuteId).trim();
|
|
@@ -3849,7 +3849,7 @@ function formatTimeRange(start, end) {
|
|
|
3849
3849
|
}
|
|
3850
3850
|
async function loadAgendaFromTopics(env, mtId) {
|
|
3851
3851
|
try {
|
|
3852
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3852
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
3853
3853
|
const operation = getMeetingOperation2("meeting.eb.topic.list");
|
|
3854
3854
|
const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
|
|
3855
3855
|
const rows = result.data?.rows ?? [];
|
|
@@ -4000,7 +4000,7 @@ async function supplementRowFromDetail(row, mtId, env) {
|
|
|
4000
4000
|
const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
|
|
4001
4001
|
if (missing.length === 0) return { row, filled: [] };
|
|
4002
4002
|
try {
|
|
4003
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4003
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
4004
4004
|
const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
4005
4005
|
const result = await detailOperation.handler({ id: mtId }, env);
|
|
4006
4006
|
const flat = result?.data?.data ?? result?.data ?? {};
|
|
@@ -4174,7 +4174,7 @@ var meetingInvitationRender = {
|
|
|
4174
4174
|
};
|
|
4175
4175
|
dataSource = "payload";
|
|
4176
4176
|
} else {
|
|
4177
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4177
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
4178
4178
|
const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
|
|
4179
4179
|
try {
|
|
4180
4180
|
const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
|
|
@@ -4518,7 +4518,7 @@ var meetingInvitationPublish = {
|
|
|
4518
4518
|
"\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"
|
|
4519
4519
|
);
|
|
4520
4520
|
}
|
|
4521
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4521
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
4522
4522
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
4523
4523
|
const rendered = await render.handler(
|
|
4524
4524
|
{
|
|
@@ -5233,7 +5233,7 @@ var meetingSummaryGet = {
|
|
|
5233
5233
|
const mtId = textOf5(args.mt_id).trim();
|
|
5234
5234
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
5235
5235
|
const ctx = env.ctx;
|
|
5236
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5236
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
5237
5237
|
const warnings = [];
|
|
5238
5238
|
const timings = {};
|
|
5239
5239
|
const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
|
|
@@ -5554,7 +5554,7 @@ var MT_STATUS_OVER = "8";
|
|
|
5554
5554
|
var CANCELLED_MARK_DELAY_MS = 800;
|
|
5555
5555
|
async function isCancelledMeeting(env, mtId) {
|
|
5556
5556
|
try {
|
|
5557
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5557
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
5558
5558
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
5559
5559
|
// withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
|
|
5560
5560
|
{ mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
|
|
@@ -6579,7 +6579,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
|
|
|
6579
6579
|
const mtId = String(context.dataIds?.[0] ?? "").trim();
|
|
6580
6580
|
if (!isCreate || !enabled || !mtId) return association;
|
|
6581
6581
|
try {
|
|
6582
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6582
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
|
|
6583
6583
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
6584
6584
|
const result = await render.handler({ mtId }, context.env);
|
|
6585
6585
|
return { ...association ?? {}, invitation: result?.data ?? null };
|
|
@@ -2,13 +2,13 @@ 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-IF33CG4V.js";
|
|
6
6
|
import {
|
|
7
7
|
SCHEMA_ID,
|
|
8
8
|
meetingSuccess,
|
|
9
9
|
meetingValidationError,
|
|
10
10
|
schemaOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6GCXWKG6.js";
|
|
12
12
|
|
|
13
13
|
// src/shortcuts/meeting/operations/attachment-content.ts
|
|
14
14
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -7089,27 +7089,48 @@ function serializeValue(field, value, mappings, row, browserHints = {}) {
|
|
|
7089
7089
|
return [detail, options.map((o) => ({ id: o.optionId, name: o.content }))];
|
|
7090
7090
|
}
|
|
7091
7091
|
if (field.isBrowser) {
|
|
7092
|
+
if (!Array.isArray(value)) {
|
|
7093
|
+
throw new ValueAmbiguity({
|
|
7094
|
+
kind: "BROWSER",
|
|
7095
|
+
fieldId: field.id,
|
|
7096
|
+
fieldName: field.name,
|
|
7097
|
+
input: value,
|
|
7098
|
+
reason: "VALUE_NOT_ARRAY",
|
|
7099
|
+
resolution: '\u6D4F\u89C8\u6309\u94AE\u5B57\u6BB5\u7684\u503C\u5FC5\u987B\u662F\u6570\u7EC4\uFF0C\u6BCF\u4E2A\u5143\u7D20\u662F\u4E00\u4E2A\u503C\uFF08\u5355\u9009\u5B57\u6BB5\u4E5F\u53EA\u53D6\u6570\u7EC4\u7684\u7B2C\u4E00\u4E2A\u5143\u7D20\uFF09\u3002\u5143\u7D20\u5199\u5B57\u7B26\u4E32\u65F6\uFF0C\u5B57\u7B26\u4E32\u5185\u7684\u82F1\u6587\u9017\u53F7\u8868\u793A**\u540C\u4E00\u4E2A\u5BF9\u8C61**\u7684\u591A\u4E2A\u8BF4\u6CD5\uFF1B\u5199 {"id":\u2026,"name":\u2026} \u65F6\u76F4\u63A5\u6309 ID \u53D6\uFF1B\u5199 {"name":"\u7532,\u7532\u522B\u79F0"} \u65F6\u6309\u540D\u79F0\u89E3\u6790\u3002'
|
|
7100
|
+
});
|
|
7101
|
+
}
|
|
7092
7102
|
const options = [];
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
const
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
const pickedOne = resolveBrowserAliases(field, term, lookup);
|
|
7107
|
-
if (options.some((o) => o.optionId === pickedOne.id)) continue;
|
|
7108
|
-
options.push({ optionId: pickedOne.id, content: pickedOne.name });
|
|
7103
|
+
const rowIndex = String((row && row.dataIndex) ?? "0");
|
|
7104
|
+
const lookup = (term) => {
|
|
7105
|
+
const key = `${field.id}_${rowIndex}_${term}`;
|
|
7106
|
+
return { mapped: mappings[key] || [], completed: browserHints[key] || [] };
|
|
7107
|
+
};
|
|
7108
|
+
for (const item of field.isMultiple ? value : value.slice(0, 1)) {
|
|
7109
|
+
let raw;
|
|
7110
|
+
if (item && typeof item === "object") {
|
|
7111
|
+
const id = String(item.id ?? item.optionId ?? "").trim();
|
|
7112
|
+
const name = String(item.name ?? item.content ?? "").trim();
|
|
7113
|
+
if (id) {
|
|
7114
|
+
options.push({ optionId: id, content: name || id });
|
|
7115
|
+
continue;
|
|
7109
7116
|
}
|
|
7110
|
-
|
|
7117
|
+
if (!name) {
|
|
7118
|
+
throw new ValueAmbiguity({
|
|
7119
|
+
kind: "BROWSER",
|
|
7120
|
+
fieldId: field.id,
|
|
7121
|
+
fieldName: field.name,
|
|
7122
|
+
input: item,
|
|
7123
|
+
reason: "VALUE_NOT_RESOLVABLE",
|
|
7124
|
+
resolution: '\u8BE5\u5143\u7D20\u65E2\u6CA1\u6709 id \u4E5F\u6CA1\u6709 name\u3002\u8BF7\u5199 {"id":\u2026,"name":\u2026} \u6216 {"name":"\u540D\u79F0"}\uFF08\u540D\u79F0\u5185\u53EF\u7528\u82F1\u6587\u9017\u53F7\u5E76\u5217\u591A\u4E2A\u8BF4\u6CD5\uFF09\u3002'
|
|
7125
|
+
});
|
|
7126
|
+
}
|
|
7127
|
+
raw = name;
|
|
7128
|
+
} else {
|
|
7129
|
+
raw = String(item ?? "").trim();
|
|
7111
7130
|
}
|
|
7131
|
+
if (!raw) continue;
|
|
7112
7132
|
const picked = resolveBrowserAliases(field, raw, lookup);
|
|
7133
|
+
if (options.some((o) => o.optionId === picked.id)) continue;
|
|
7113
7134
|
options.push({ optionId: picked.id, content: picked.name });
|
|
7114
7135
|
}
|
|
7115
7136
|
assertMultiplicity(field, options);
|
|
@@ -7264,9 +7285,10 @@ async function resolveEntryValues(env, entries, formId) {
|
|
|
7264
7285
|
const row = entry.row && typeof entry.row === "object" ? entry.row : null;
|
|
7265
7286
|
const rowIndex = String((row && row.dataIndex) ?? "0");
|
|
7266
7287
|
const isDetail = Boolean(row);
|
|
7267
|
-
|
|
7288
|
+
if (!Array.isArray(entry.value)) continue;
|
|
7289
|
+
for (const item of field.isMultiple ? entry.value : entry.value.slice(0, 1)) {
|
|
7268
7290
|
if (item && typeof item === "object" && (item.id || item.optionId)) continue;
|
|
7269
|
-
const raw = String(item).trim();
|
|
7291
|
+
const raw = item && typeof item === "object" ? String(item.name ?? item.content ?? "").trim() : String(item).trim();
|
|
7270
7292
|
if (!raw) continue;
|
|
7271
7293
|
const terms = lookupTermsOf(field, raw);
|
|
7272
7294
|
const hasBrowserChannel = Boolean(field.browserModule && field.browserType);
|