weaver-work-cli 0.1.53 → 0.1.56
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-ZQ4A4TV6.js → archive-4SQAVTIB.js} +3 -2
- package/dist/chunks/{archive-oa-57R2FYHV.js → archive-oa-W2UEJ67L.js} +137 -8
- package/dist/chunks/{asset-ZOJVBWZH.js → asset-EGZEABBI.js} +3 -2
- package/dist/chunks/{asset-idle-XGB5IPGT.js → asset-idle-EBUZBB6M.js} +3 -2
- package/dist/chunks/{attachment-content-W3TSJC3Y.js → attachment-content-QGM5MLQE.js} +4 -3
- package/dist/chunks/{blog-QSHLZSFW.js → blog-2YKMWOWI.js} +3 -2
- package/dist/chunks/{caizhilian-KCQYFH72.js → caizhilian-QJ4FLSQJ.js} +5 -4
- package/dist/chunks/{calendar-DLGMRJQA.js → calendar-H4QTJCUY.js} +3 -2
- package/dist/chunks/{chunk-XPQN4E5O.js → chunk-44KJ7WFA.js} +300 -55
- package/dist/chunks/{chunk-CZNZKOHR.js → chunk-4GG72JAT.js} +2 -2
- package/dist/chunks/{chunk-YIKSL36S.js → chunk-5N222HK6.js} +2 -2
- package/dist/chunks/{chunk-6GCXWKG6.js → chunk-6DVL5IN5.js} +4 -1
- package/dist/chunks/{chunk-WTLQGS6D.js → chunk-6MS3RLPO.js} +5 -334
- package/dist/chunks/{chunk-Z4G7LLDD.js → chunk-7EBV7Q3R.js} +124 -27
- package/dist/chunks/{chunk-76PRVYH4.js → chunk-AHJZIMCX.js} +1 -1
- package/dist/chunks/{chunk-TGAGQV4I.js → chunk-CQ4OVCKG.js} +2 -2
- package/dist/chunks/{chunk-2BQESR2U.js → chunk-DVR2EDUU.js} +99 -34
- package/dist/chunks/{chunk-QQXMHM3J.js → chunk-FDAJC7R4.js} +4 -4
- package/dist/chunks/{chunk-GR76ZDDX.js → chunk-FMNCSYIG.js} +2 -2
- package/dist/chunks/{chunk-IF33CG4V.js → chunk-L2LMBFG5.js} +1 -1
- package/dist/chunks/{chunk-DLY5GUXX.js → chunk-PH7N4UFT.js} +1 -1
- package/dist/chunks/{chunk-U6R6FZHD.js → chunk-SFM3M2L3.js} +286 -93
- package/dist/chunks/chunk-SHYQUBY3.js +48 -0
- package/dist/chunks/{chunk-HFXK54M4.js → chunk-TGM7BWEH.js} +2 -2
- package/dist/chunks/{chunk-2J3XY4ED.js → chunk-TJUAGZU7.js} +11 -11
- package/dist/chunks/{chunk-PE334WL3.js → chunk-UI66EMOR.js} +4 -4
- package/dist/chunks/{chunk-762M5XJS.js → chunk-VMCCRWFO.js} +2 -2
- package/dist/chunks/{chunk-U7ROML5E.js → chunk-WHJIUKJW.js} +681 -48
- package/dist/chunks/{chunk-PGO4ILMQ.js → chunk-WMB3SMXI.js} +1 -1
- package/dist/chunks/chunk-WMRNO6IU.js +337 -0
- package/dist/chunks/{chunk-6NXT4ICB.js → chunk-WVH5ESDA.js} +1 -1
- package/dist/chunks/{chunk-DEHJ7PMA.js → chunk-XU3FL3AW.js} +4 -4
- package/dist/chunks/{chunk-Z6UUBY37.js → chunk-Z4IPY5GV.js} +2 -2
- package/dist/chunks/{conflict-57WDJWL7.js → conflict-VAFFPUY3.js} +2 -2
- package/dist/chunks/{contract-LJRAXVZU.js → contract-LLRKMLQQ.js} +2655 -1319
- package/dist/chunks/{cowork-3ACICHDQ.js → cowork-2RDFBZWB.js} +3 -2
- package/dist/chunks/{create-flow-3FMMZBCA.js → create-flow-TVYE3IOH.js} +6 -6
- package/dist/chunks/{data-WK5CQXNF.js → data-WVICO3DT.js} +57 -11
- package/dist/chunks/{ebuilder-form-CBYI6CQ6.js → ebuilder-form-TWSXS5NA.js} +7 -6
- package/dist/chunks/{ehr-XI4BIVR2.js → ehr-52GBKNJR.js} +3 -2
- package/dist/chunks/{env-JYZE3BZB.js → env-BVVFIN4P.js} +2 -2
- package/dist/chunks/{esb-4BQHNP5C.js → esb-HJSXCEOM.js} +5 -4
- package/dist/chunks/{factory-66SCIKW3.js → factory-RCQ36LLE.js} +1 -1
- package/dist/chunks/{fna-ECOYBQYL.js → fna-OBACRT3J.js} +72 -3
- package/dist/chunks/{group-chat-MNRYMLNG.js → group-chat-YFZDUUY3.js} +3 -3
- package/dist/chunks/{host-TUOIOEMC.js → host-2BKMPWDH.js} +4 -3
- package/dist/chunks/{host-3TNBMDTR.js → host-KJT3G5D2.js} +4 -3
- package/dist/chunks/{host-7OWWPLM4.js → host-KOWUMNAY.js} +4 -3
- package/dist/chunks/{host-M4XP5URR.js → host-MFXRA2MY.js} +4 -3
- package/dist/chunks/{host-7NTIBSPK.js → host-TTSGY5NZ.js} +4 -3
- package/dist/chunks/{host-G3VU7SDW.js → host-W4JCNRFS.js} +4 -3
- package/dist/chunks/{hrm-YGIR3HGF.js → hrm-AK3WGBMN.js} +4 -3
- package/dist/chunks/{im-TN2JYVGJ.js → im-JZSBPO4Z.js} +4 -3
- package/dist/chunks/{invoice-V7ZTITUO.js → invoice-V6KD4TZE.js} +4 -3
- package/dist/chunks/{jiuchuanhui-ASFZBMPU.js → jiuchuanhui-K4EQU6GK.js} +3 -2
- package/dist/chunks/{lazy-dispatch-XSAHDK6Z.js → lazy-dispatch-JHGFCKJN.js} +5 -4
- package/dist/chunks/{mail-M3HJF5ER.js → mail-IKVCQCVZ.js} +3 -2
- package/dist/chunks/{meeting-IIY4UAJL.js → meeting-JOHV4RH3.js} +14 -12
- package/dist/chunks/minute-doc-JLS4KMFZ.js +156 -0
- package/dist/chunks/{okr-EVX7FB5G.js → okr-KV43FPPX.js} +3 -2
- package/dist/chunks/{operations-J7PUIVWZ.js → operations-ZPWBMYKE.js} +5 -4
- package/dist/chunks/{plan-2QJQEPBO.js → plan-WOYR4WEG.js} +3 -2
- package/dist/chunks/{project-XELELW2T.js → project-CQJKBUIL.js} +3 -2
- package/dist/chunks/{reception-QGPNTGHG.js → reception-MPBU3JXC.js} +3 -2
- package/dist/chunks/{recruit-stage-XCMVEQA2.js → recruit-stage-USTTRHOX.js} +3 -2
- package/dist/chunks/{registry-CJOVECZD.js → registry-GURQG4ZV.js} +3 -2
- package/dist/chunks/{registry-METZ2LWE.js → registry-LITYOH2W.js} +12 -10
- package/dist/chunks/{registry-QJCZ2GVG.js → registry-SS5J2FZQ.js} +5 -4
- package/dist/chunks/{room-recommend-YFY7HTOF.js → room-recommend-62MECG4J.js} +4 -4
- package/dist/chunks/{schedule-6I63TERA.js → schedule-6QRXIBGU.js} +4 -4
- package/dist/chunks/{smart-extract-FOUYNIG3.js → smart-extract-APX2PNIN.js} +3 -2
- package/dist/chunks/{workflow-YHXFIU63.js → workflow-WMPW3WSB.js} +5 -4
- package/dist/index.js +33 -32
- package/dist/internal/e10/auth/agent-host-key.js +68 -0
- package/dist/internal/e10/auth/agent-hosts.js +250 -0
- package/dist/internal/e10/auth/commands.js +99 -30
- package/dist/internal/e10/auth/paths.js +9 -0
- package/dist/internal/e10/auth/session.js +17 -0
- package/dist/internal/e10/auth/xiaoe.js +37 -3
- package/dist/shortcuts/archive-oa/operations/contract-modules.js +106 -0
- package/dist/shortcuts/archive-oa/operations/contract.js +38 -4
- package/dist/shortcuts/archive-oa/operations/registry.js +2 -1
- package/dist/shortcuts/contract/index.js +6 -7
- package/dist/shortcuts/contract/manifest.js +101 -24
- package/dist/shortcuts/contract/ooxml/docx-table.js +75 -3
- package/dist/shortcuts/contract/ooxml/xlsx.js +49 -13
- package/dist/shortcuts/contract/operations/card-action.js +113 -12
- package/dist/shortcuts/contract/operations/card-ebdf-list.js +29 -7
- package/dist/shortcuts/contract/operations/card-plan.js +75 -9
- package/dist/shortcuts/contract/operations/card-risk-report.js +2 -2
- package/dist/shortcuts/contract/operations/card.js +1 -1
- package/dist/shortcuts/contract/operations/clause-library.js +88 -16
- package/dist/shortcuts/contract/operations/compare-screen.js +378 -0
- package/dist/shortcuts/contract/operations/compare.js +1 -1
- package/dist/shortcuts/contract/operations/credit-page.js +1 -1
- package/dist/shortcuts/contract/operations/docx-slots.js +1000 -0
- package/dist/shortcuts/contract/operations/flow.js +2 -2
- package/dist/shortcuts/contract/operations/quote-to-contract.js +495 -0
- package/dist/shortcuts/contract/operations/quote.js +2 -229
- package/dist/shortcuts/contract/operations/recommend.js +1 -1
- package/dist/shortcuts/contract/operations/registry.js +6 -2
- package/dist/shortcuts/contract/operations/review.js +230 -4
- package/dist/shortcuts/contract/operations/save-recognize.js +122 -3
- package/dist/shortcuts/contract/operations/template.js +11 -10
- package/dist/shortcuts/data/operations/ds.js +5 -5
- package/dist/shortcuts/data/operations/shared.js +76 -4
- package/dist/shortcuts/fna/manifest.js +7 -2
- package/dist/shortcuts/fna/operations/budget.js +68 -0
- package/dist/shortcuts/meeting/minute-doc.js +153 -0
- package/dist/shortcuts/meeting/operations/compose-outcome.js +176 -0
- package/dist/shortcuts/meeting/operations/eb/catalog.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +47 -0
- package/dist/shortcuts/meeting/operations/eb/decision-task-batch.js +144 -0
- package/dist/shortcuts/meeting/operations/eb/decision.js +92 -4
- package/dist/shortcuts/meeting/operations/eb/index.js +133 -4
- package/dist/shortcuts/meeting/operations/eb/meeting-link.js +90 -0
- package/dist/shortcuts/meeting/operations/from-group-chat.js +46 -0
- package/dist/shortcuts/meeting/operations/minute-content.js +61 -0
- package/dist/shortcuts/meeting/operations/registry.js +14 -1
- package/dist/shortcuts/meeting/operations/self-check.js +49 -0
- package/dist/shortcuts/workflow/endpoints.js +2 -0
- package/dist/shortcuts/workflow/operations/read.js +114 -8
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +72 -46
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +41 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +46 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +18 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroupAdd.js +51 -0
- package/docs/e10-auth.md +78 -0
- package/docs/fna.md +8 -3
- package/package.json +4 -2
- package/scripts/pack-offline.mjs +228 -0
- package/scripts/package-skill.mjs +14 -5
- package/skill-template/business-info.json +3 -0
- package/skill-template/domains/qiyecheng.md +4 -3
- package/skills/weaver-e10-archive-oa/SKILL.md +6 -1
- package/skills/weaver-e10-archive-oa/references/contract-search.md +91 -4
- package/skills/weaver-e10-jinchengda/SKILL.md +100 -81
- package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +11 -6
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +5 -4
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +38 -12
- package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +20 -6
- package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +8 -3
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +56 -13
- package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +7 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +11 -5
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +38 -7
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +13 -25
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +9 -8
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +8 -6
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +10 -7
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +3 -1
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +26 -18
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +18 -13
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +5 -3
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +105 -49
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +3 -6
- package/skills/weaver-e10-meeting/SKILL.md +48 -9
- package/skills/weaver-e10-qiyecheng/SKILL.md +16 -7
- package/skills/weaver-e10-qiyecheng/references/budget.md +77 -3
- package/skills/weaver-e10-qiyecheng/references/catalog.md +6 -4
- package/skills/weaver-e10-qiyecheng/references/getEnabledTemplate-api.md +255 -0
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +70 -25
- package/skills/weaver-e10-workflow/SKILL.md +54 -40
- package/skills/weaver-e10-workflow/references/todo-dialogue.md +134 -0
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +102 -80
- package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +23 -13
- package/skills/weaver-e10-workflow/references/workflow-query.md +68 -46
- package/skills/weaver-e10-workflow/references/workflow-view.md +21 -13
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +317 -332
- package/dist/shortcuts/contract/ooxml/docx.js +0 -295
- package/dist/shortcuts/contract/operations/docx-fillfromquote.js +0 -532
- package/skills/weaver-e10-jinchengda/references/contract-risk-report-template.html +0 -178
- package/skills/weaver-e10-jinchengda/references/source-manifest.json +0 -1270
- package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +0 -998
- package/skills/weaver-e10-workflow/tools/todo-serve.cjs +0 -327
|
@@ -3,7 +3,7 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
fetchEbAppSettings,
|
|
5
5
|
findCommonFreeSlots
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XU3FL3AW.js";
|
|
7
7
|
import {
|
|
8
8
|
dayOf,
|
|
9
9
|
filterUsages,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
loadDayUsages,
|
|
13
13
|
loadRooms,
|
|
14
14
|
recommendRooms
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UI66EMOR.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AHJZIMCX.js";
|
|
21
21
|
import {
|
|
22
22
|
EB_BASE,
|
|
23
23
|
SCHEMA_DATETIME_MINUTE,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
meetingValidationError,
|
|
27
27
|
schemaOf,
|
|
28
28
|
writeBody
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6DVL5IN5.js";
|
|
30
30
|
import {
|
|
31
31
|
CONTINUATION_TTL_MS,
|
|
32
32
|
CONTINUATION_TTL_SECONDS
|
|
@@ -169,6 +169,71 @@ async function pruneExpired(dir) {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
// src/shortcuts/meeting/operations/eb/meeting-link.ts
|
|
173
|
+
function collectIds(payload) {
|
|
174
|
+
const ids = [];
|
|
175
|
+
const push = (value) => {
|
|
176
|
+
const id = String(value ?? "").trim();
|
|
177
|
+
if (id !== "" && !ids.includes(id)) ids.push(id);
|
|
178
|
+
};
|
|
179
|
+
const rows = payload?.rows ?? payload?.items;
|
|
180
|
+
if (Array.isArray(rows)) {
|
|
181
|
+
for (const row of rows) {
|
|
182
|
+
const main2 = row?.mainTable ?? row;
|
|
183
|
+
push(main2?.id ?? main2?.mt_id ?? row?.id ?? row?.dataId);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
const main = payload?.mainTable;
|
|
187
|
+
if (main && typeof main === "object") push(main.id ?? main.mt_id);
|
|
188
|
+
push(payload?.id);
|
|
189
|
+
if (payload?.data && typeof payload.data === "object") push(payload.data.id ?? payload.data.mt_id);
|
|
190
|
+
return ids;
|
|
191
|
+
}
|
|
192
|
+
async function meetingUrlMap(env, ids) {
|
|
193
|
+
const out = /* @__PURE__ */ new Map();
|
|
194
|
+
const unique = [...new Set(ids.map((id) => String(id).trim()).filter((id) => id !== ""))];
|
|
195
|
+
if (unique.length === 0) return out;
|
|
196
|
+
try {
|
|
197
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
198
|
+
const link = getMeetingOperation("meeting.link");
|
|
199
|
+
const result = await link.handler({ type: "meeting", dataIds: unique }, env);
|
|
200
|
+
const rows = result?.data?.items ?? result?.data?.links ?? [];
|
|
201
|
+
for (const row of rows) {
|
|
202
|
+
const id = String(row?.dataId ?? row?.id ?? "").trim();
|
|
203
|
+
const url = String(row?.url ?? "").trim();
|
|
204
|
+
if (id && url) out.set(id, url);
|
|
205
|
+
}
|
|
206
|
+
} catch {
|
|
207
|
+
}
|
|
208
|
+
return out;
|
|
209
|
+
}
|
|
210
|
+
async function attachMeetingUrls(env, payload) {
|
|
211
|
+
if (!payload || typeof payload !== "object") return payload;
|
|
212
|
+
const ids = collectIds(payload);
|
|
213
|
+
if (ids.length === 0) return payload;
|
|
214
|
+
const map = await meetingUrlMap(env, ids);
|
|
215
|
+
if (map.size === 0) return payload;
|
|
216
|
+
const apply = (row) => {
|
|
217
|
+
if (!row || typeof row !== "object") return;
|
|
218
|
+
const target = row.mainTable ?? row;
|
|
219
|
+
const id = String(target.id ?? target.mt_id ?? "").trim();
|
|
220
|
+
const url = map.get(id);
|
|
221
|
+
if (url && !target.url) target.url = url;
|
|
222
|
+
};
|
|
223
|
+
if (Array.isArray(payload.rows)) payload.rows.forEach(apply);
|
|
224
|
+
if (Array.isArray(payload.items)) payload.items.forEach(apply);
|
|
225
|
+
apply(payload.mainTable);
|
|
226
|
+
apply(payload.data);
|
|
227
|
+
apply(payload);
|
|
228
|
+
return payload;
|
|
229
|
+
}
|
|
230
|
+
async function meetingUrlFor(env, meetingId) {
|
|
231
|
+
const id = String(meetingId ?? "").trim();
|
|
232
|
+
if (!id) return null;
|
|
233
|
+
const map = await meetingUrlMap(env, [id]);
|
|
234
|
+
return map.get(id) ?? null;
|
|
235
|
+
}
|
|
236
|
+
|
|
172
237
|
// src/shortcuts/meeting/operations/eb/person-cache.ts
|
|
173
238
|
var PERSON_TTL_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
174
239
|
var BATCH_MAX = 100;
|
|
@@ -271,9 +336,9 @@ function workflowEnv(env) {
|
|
|
271
336
|
return env;
|
|
272
337
|
}
|
|
273
338
|
async function loadCreateForm(env, workflowId) {
|
|
274
|
-
const { createWorkflowHost } = await import("./host-
|
|
339
|
+
const { createWorkflowHost } = await import("./host-2BKMPWDH.js");
|
|
275
340
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
276
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
341
|
+
const { getWorkflowOperation } = await import("./registry-GURQG4ZV.js");
|
|
277
342
|
const wfEnv = {
|
|
278
343
|
...workflowEnv(env),
|
|
279
344
|
host: createWorkflowHost(env.ctx),
|
|
@@ -378,7 +443,7 @@ async function resolveAddressRoom(env, input) {
|
|
|
378
443
|
const text = String(input ?? "").trim();
|
|
379
444
|
if (!text) return null;
|
|
380
445
|
const ref = parseRoomRef(text);
|
|
381
|
-
const { loadRooms: loadRooms2 } = await import("./room-recommend-
|
|
446
|
+
const { loadRooms: loadRooms2 } = await import("./room-recommend-62MECG4J.js");
|
|
382
447
|
let rooms = [];
|
|
383
448
|
try {
|
|
384
449
|
rooms = (await loadRooms2(env, {})).rooms;
|
|
@@ -409,7 +474,7 @@ async function resolveRoomValue(env, input) {
|
|
|
409
474
|
const ref = parseRoomRef(text);
|
|
410
475
|
if (ref.id) {
|
|
411
476
|
try {
|
|
412
|
-
const { getMeetingOperation } = await import("./registry-
|
|
477
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
413
478
|
const detail = await getMeetingOperation("meeting.eb.room.detail").handler({ id: ref.id }, env);
|
|
414
479
|
const main = detail?.data?.mainTable ?? detail?.data?.data?.mainTable ?? {};
|
|
415
480
|
const name = String(main.room_name ?? "").trim() || ref.name || "";
|
|
@@ -521,7 +586,7 @@ async function shapeBrowserValues(env, values) {
|
|
|
521
586
|
const nameOnly = rows.filter((row) => row.id === "" && row.name !== "");
|
|
522
587
|
if (nameOnly.length > 0) {
|
|
523
588
|
try {
|
|
524
|
-
const { getMeetingOperation } = await import("./registry-
|
|
589
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
525
590
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
526
591
|
for (const row of nameOnly) {
|
|
527
592
|
const found = await search.handler({ keyword: row.name, limit: 5 }, env).catch(() => null);
|
|
@@ -715,7 +780,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
|
|
|
715
780
|
const missing = [];
|
|
716
781
|
if (entries.length > 0) {
|
|
717
782
|
try {
|
|
718
|
-
const { getMeetingOperation } = await import("./registry-
|
|
783
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
719
784
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
720
785
|
for (const entry of entries) {
|
|
721
786
|
if (entry.contacts.length > 0) continue;
|
|
@@ -974,7 +1039,7 @@ function shouldAutoPickFlow(args) {
|
|
|
974
1039
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
975
1040
|
const started = Date.now();
|
|
976
1041
|
try {
|
|
977
|
-
const { buildImEnv } = await import("./group-chat-
|
|
1042
|
+
const { buildImEnv } = await import("./group-chat-YFZDUUY3.js");
|
|
978
1043
|
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
979
1044
|
const imEnv = await buildImEnv(env);
|
|
980
1045
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
@@ -1223,8 +1288,24 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1223
1288
|
}
|
|
1224
1289
|
}
|
|
1225
1290
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1226
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1291
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-6QRXIBGU.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1227
1292
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1293
|
+
if (memberIds.length > 0) {
|
|
1294
|
+
const callerToken2 = String(args.caller ?? "").trim();
|
|
1295
|
+
let convenerId = "";
|
|
1296
|
+
if (callerToken2 !== "") {
|
|
1297
|
+
convenerId = /^\d+$/.test(callerToken2) ? callerToken2 : nameToId.get(callerToken2) ?? "";
|
|
1298
|
+
}
|
|
1299
|
+
if (convenerId === "") {
|
|
1300
|
+
const self = await resolveSelfPerson(env).catch(() => null);
|
|
1301
|
+
convenerId = String(self?.id ?? "");
|
|
1302
|
+
}
|
|
1303
|
+
if (convenerId !== "" && !memberIds.includes(convenerId)) {
|
|
1304
|
+
memberIds.unshift(convenerId);
|
|
1305
|
+
rawMembers.unshift(convenerId);
|
|
1306
|
+
args.hrm_members = rawMembers.join(",");
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1228
1309
|
let timeConfirmed = args.timeConfirmed === true || slotConfirmed;
|
|
1229
1310
|
const draft = await loadMeetingDraft(env, String(args.mt_name ?? "")).catch(() => null);
|
|
1230
1311
|
let draftReusedTime = false;
|
|
@@ -1252,7 +1333,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1252
1333
|
if (!beginHasTime || !timeConfirmed) {
|
|
1253
1334
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1254
1335
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1255
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1336
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
1256
1337
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1257
1338
|
{
|
|
1258
1339
|
dateFrom: day2,
|
|
@@ -1422,7 +1503,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1422
1503
|
usageFromCache: usageData.fromCache
|
|
1423
1504
|
};
|
|
1424
1505
|
}
|
|
1425
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1506
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
1426
1507
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1427
1508
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1428
1509
|
env
|
|
@@ -1430,7 +1511,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1430
1511
|
return { room, ...result?.data ?? {} };
|
|
1431
1512
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1432
1513
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1433
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1514
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
1434
1515
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1435
1516
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1436
1517
|
env
|
|
@@ -1796,6 +1877,18 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1796
1877
|
});
|
|
1797
1878
|
const preferredFields = await readFlowFieldMap(env, workflowId);
|
|
1798
1879
|
const { main, mapped, unmapped, resolved: resolvedFields } = mapFields(form.fields, shaped.values, preferredFields);
|
|
1880
|
+
for (const field of form.fields) {
|
|
1881
|
+
if (!(field?.isBrowser === true)) continue;
|
|
1882
|
+
const id = String(field?.id ?? "");
|
|
1883
|
+
if (!id) continue;
|
|
1884
|
+
const value = main[id];
|
|
1885
|
+
if (value === void 0 || value === null || value === "") continue;
|
|
1886
|
+
if (field.isMultiple === true && !Array.isArray(value)) {
|
|
1887
|
+
main[id] = [value];
|
|
1888
|
+
} else if (field.isMultiple !== true && Array.isArray(value) && value.length === 1) {
|
|
1889
|
+
main[id] = value[0];
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1799
1892
|
await writeFlowFieldMap(env, workflowId, form.workflowName, resolvedFields);
|
|
1800
1893
|
let invitationDocInfo = null;
|
|
1801
1894
|
const inviteDocWarnings = [];
|
|
@@ -1814,7 +1907,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1814
1907
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
1815
1908
|
} else {
|
|
1816
1909
|
try {
|
|
1817
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1910
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
1818
1911
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
1819
1912
|
const renderExtra = {};
|
|
1820
1913
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2135,7 +2228,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2135
2228
|
});
|
|
2136
2229
|
};
|
|
2137
2230
|
const readBack = async () => {
|
|
2138
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2231
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
2139
2232
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2140
2233
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2141
2234
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2162,7 +2255,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2162
2255
|
const fields = payload?.invitationFields ?? {};
|
|
2163
2256
|
const started = Date.now();
|
|
2164
2257
|
try {
|
|
2165
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2258
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
2166
2259
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2167
2260
|
const rendered = await render.handler(
|
|
2168
2261
|
{
|
|
@@ -2238,9 +2331,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
2238
2331
|
throw meetingValidationError("context_mismatch", "\u786E\u8BA4\u4E0A\u4E0B\u6587\u5DF2\u53D8\u5316\uFF08\u79DF\u6237\u6216\u767B\u5F55\u8D26\u53F7\u4E0D\u540C\uFF09\uFF0C\u8BF7\u91CD\u65B0\u6267\u884C prepare");
|
|
2239
2332
|
}
|
|
2240
2333
|
const payload = lease?.payload ?? {};
|
|
2241
|
-
const { createWorkflowHost } = await import("./host-
|
|
2334
|
+
const { createWorkflowHost } = await import("./host-2BKMPWDH.js");
|
|
2242
2335
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2243
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2336
|
+
const { getWorkflowOperation } = await import("./registry-GURQG4ZV.js");
|
|
2244
2337
|
const wfEnv = {
|
|
2245
2338
|
...workflowEnv(env),
|
|
2246
2339
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2290,7 +2383,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2290
2383
|
const groupPayload2 = payload?.groupChat;
|
|
2291
2384
|
if (groupPayload2) {
|
|
2292
2385
|
try {
|
|
2293
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2386
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-YFZDUUY3.js");
|
|
2294
2387
|
groupChat2 = {
|
|
2295
2388
|
...await ensureMeetingGroupChat(env, {
|
|
2296
2389
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2306,7 +2399,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2306
2399
|
}
|
|
2307
2400
|
if (groupChat2 && groupChat2.ok) {
|
|
2308
2401
|
try {
|
|
2309
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2402
|
+
const { savePendingForm } = await import("./group-chat-YFZDUUY3.js");
|
|
2310
2403
|
await savePendingForm(env, {
|
|
2311
2404
|
workflowId: String(payload.workflowId ?? ""),
|
|
2312
2405
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2373,7 +2466,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2373
2466
|
let meetingId = "";
|
|
2374
2467
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2375
2468
|
if (waitSeconds > 0) {
|
|
2376
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2469
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
2377
2470
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2378
2471
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2379
2472
|
const pollStart = Date.now();
|
|
@@ -2423,7 +2516,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2423
2516
|
if (groupPayload) {
|
|
2424
2517
|
const groupStart = Date.now();
|
|
2425
2518
|
try {
|
|
2426
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2519
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-YFZDUUY3.js");
|
|
2427
2520
|
const group = await ensureMeetingGroupChat(env, {
|
|
2428
2521
|
meetingName: String(payload.mtName ?? ""),
|
|
2429
2522
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2455,7 +2548,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2455
2548
|
if (meetingId) {
|
|
2456
2549
|
const invitationStart = Date.now();
|
|
2457
2550
|
try {
|
|
2458
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2551
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
2459
2552
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2460
2553
|
const rendered = await render.handler(
|
|
2461
2554
|
{
|
|
@@ -2499,6 +2592,8 @@ var ebMeetingCreateFlowApply = {
|
|
|
2499
2592
|
requestId,
|
|
2500
2593
|
requestName: payload.requestName,
|
|
2501
2594
|
meetingId: meetingId || null,
|
|
2595
|
+
// 会议详情链接(用户要求:会议名必须可点击;这里直接给,模型不用再调 meeting.link)
|
|
2596
|
+
...meetingId ? { meetingUrl: await meetingUrlFor(env, meetingId) } : {},
|
|
2502
2597
|
// 参会客户有没有真的写进会议记录(表单侧是 Ebuilder,需 apply 补写;回读确认才算 ok)
|
|
2503
2598
|
...crmLinked ? { crmLinked } : {},
|
|
2504
2599
|
// 同步建的群(群 id / 群名 / 有没有回写 imchat_groupid)
|
|
@@ -2627,7 +2722,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2627
2722
|
`\u4F1A\u8BAE\u540D\u79F0/\u5185\u5BB9\u91CC\u63D0\u5230\u5BA2\u6237\u300C${crmMentioned}\u300D\uFF0C\u4F46\u6CA1\u4F20 crm_members \u2014\u2014 \u63D0\u4EA4\u540E\u300C\u53C2\u4F1A\u5BA2\u6237\u300D\u4F1A\u662F\u7A7A\u7684\u3002\u5148 meeting.eb.crm.search {"keyword":"${crmMentioned}"} \u62FF items[].customerId\uFF0C\u518D\u628A crm_members:[{"id":"<customerId>","name":"<\u5B8C\u6574\u5BA2\u6237\u540D>"}] \u4E00\u8D77\u4F20\uFF08\u5FC5\u987B\u5E26\u540D\u79F0\uFF0C\u53EA\u7ED9 id \u4F1A\u88AB\u9759\u9ED8\u5B58\u7A7A\uFF09\uFF1B\u786E\u5B9E\u4E0D\u9700\u8981\u586B\u53C2\u4F1A\u5BA2\u6237\u5C31\u4F20 crm_skip:true\u3002`
|
|
2628
2723
|
);
|
|
2629
2724
|
}
|
|
2630
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2725
|
+
const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
|
|
2631
2726
|
const prepareStartedAt = Date.now();
|
|
2632
2727
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2633
2728
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2664,6 +2759,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2664
2759
|
workflowId: applied?.data?.workflowId,
|
|
2665
2760
|
requestId: applied?.data?.requestId,
|
|
2666
2761
|
meetingId: applied?.data?.meetingId ?? null,
|
|
2762
|
+
...applied?.data?.meetingId ? { meetingUrl: await meetingUrlFor(env, String((applied?.data).meetingId)) } : {},
|
|
2667
2763
|
invitation: applied?.data?.invitation ?? null,
|
|
2668
2764
|
// 同步建的群(群 id / 群名 / 有没有回写 imchat_groupid)
|
|
2669
2765
|
...applied?.data?.groupChat ? { groupChat: (applied?.data).groupChat } : {},
|
|
@@ -2725,7 +2821,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2725
2821
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2726
2822
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2727
2823
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2728
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2824
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-6QRXIBGU.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2729
2825
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2730
2826
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2731
2827
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -2811,6 +2907,7 @@ var meetingEbCreateFlowOperations = [
|
|
|
2811
2907
|
];
|
|
2812
2908
|
|
|
2813
2909
|
export {
|
|
2910
|
+
attachMeetingUrls,
|
|
2814
2911
|
resolveSelfPerson,
|
|
2815
2912
|
applySelfPersonDefaults,
|
|
2816
2913
|
parseRoomRef,
|
|
@@ -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-L2LMBFG5.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
createE10RequestRuntime,
|
|
15
15
|
isE10SessionExpiredResponse,
|
|
16
16
|
requireE10Session
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WVH5ESDA.js";
|
|
18
18
|
import {
|
|
19
19
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
20
20
|
getActiveProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SFM3M2L3.js";
|
|
22
22
|
|
|
23
23
|
// src/shortcuts/esb/host.ts
|
|
24
24
|
var ESB_PATHS = {
|