weaver-work-cli 0.1.54 → 0.1.57

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.
Files changed (189) hide show
  1. package/dist/chunks/{archive-ZQ4A4TV6.js → archive-4SQAVTIB.js} +3 -2
  2. package/dist/chunks/{archive-oa-57R2FYHV.js → archive-oa-W2UEJ67L.js} +137 -8
  3. package/dist/chunks/{asset-ZOJVBWZH.js → asset-EGZEABBI.js} +3 -2
  4. package/dist/chunks/{asset-idle-XGB5IPGT.js → asset-idle-EBUZBB6M.js} +3 -2
  5. package/dist/chunks/{attachment-content-2EPEI4HV.js → attachment-content-QGM5MLQE.js} +4 -3
  6. package/dist/chunks/{blog-QSHLZSFW.js → blog-2YKMWOWI.js} +3 -2
  7. package/dist/chunks/{caizhilian-KCQYFH72.js → caizhilian-QJ4FLSQJ.js} +5 -4
  8. package/dist/chunks/{calendar-DLGMRJQA.js → calendar-H4QTJCUY.js} +3 -2
  9. package/dist/chunks/{chunk-XPQN4E5O.js → chunk-44KJ7WFA.js} +300 -55
  10. package/dist/chunks/{chunk-CZNZKOHR.js → chunk-4GG72JAT.js} +2 -2
  11. package/dist/chunks/{chunk-YIKSL36S.js → chunk-5N222HK6.js} +2 -2
  12. package/dist/chunks/{chunk-XHMJBRLZ.js → chunk-6DVL5IN5.js} +4 -1
  13. package/dist/chunks/{chunk-JJRIT2ZN.js → chunk-6MS3RLPO.js} +5 -334
  14. package/dist/chunks/{chunk-QUDHSMG3.js → chunk-7EBV7Q3R.js} +112 -27
  15. package/dist/chunks/{chunk-CNVZETM5.js → chunk-AHJZIMCX.js} +1 -1
  16. package/dist/chunks/{chunk-TGAGQV4I.js → chunk-CQ4OVCKG.js} +2 -2
  17. package/dist/chunks/{chunk-2BQESR2U.js → chunk-DVR2EDUU.js} +99 -34
  18. package/dist/chunks/{chunk-7KKI5KDY.js → chunk-FDAJC7R4.js} +4 -4
  19. package/dist/chunks/{chunk-GR76ZDDX.js → chunk-FMNCSYIG.js} +2 -2
  20. package/dist/chunks/{chunk-6LGLI46Q.js → chunk-L2LMBFG5.js} +1 -1
  21. package/dist/chunks/{chunk-DLY5GUXX.js → chunk-PH7N4UFT.js} +1 -1
  22. package/dist/chunks/{chunk-U6R6FZHD.js → chunk-SFM3M2L3.js} +286 -93
  23. package/dist/chunks/chunk-SHYQUBY3.js +48 -0
  24. package/dist/chunks/{chunk-HFXK54M4.js → chunk-TGM7BWEH.js} +2 -2
  25. package/dist/chunks/{chunk-Z7B7QSR2.js → chunk-TJUAGZU7.js} +11 -11
  26. package/dist/chunks/{chunk-LYOFRYC4.js → chunk-UI66EMOR.js} +4 -4
  27. package/dist/chunks/{chunk-762M5XJS.js → chunk-VMCCRWFO.js} +2 -2
  28. package/dist/chunks/{chunk-FE3CQAAM.js → chunk-WHJIUKJW.js} +681 -48
  29. package/dist/chunks/{chunk-PGO4ILMQ.js → chunk-WMB3SMXI.js} +1 -1
  30. package/dist/chunks/chunk-WMRNO6IU.js +337 -0
  31. package/dist/chunks/{chunk-6NXT4ICB.js → chunk-WVH5ESDA.js} +1 -1
  32. package/dist/chunks/{chunk-O6RIBG5E.js → chunk-XU3FL3AW.js} +4 -4
  33. package/dist/chunks/{chunk-Z6UUBY37.js → chunk-Z4IPY5GV.js} +2 -2
  34. package/dist/chunks/{conflict-K2IAKKFR.js → conflict-VAFFPUY3.js} +2 -2
  35. package/dist/chunks/{contract-LJRAXVZU.js → contract-LLRKMLQQ.js} +2655 -1319
  36. package/dist/chunks/{cowork-3ACICHDQ.js → cowork-2RDFBZWB.js} +3 -2
  37. package/dist/chunks/{create-flow-UL37MZGP.js → create-flow-TVYE3IOH.js} +6 -6
  38. package/dist/chunks/{data-WK5CQXNF.js → data-WVICO3DT.js} +57 -11
  39. package/dist/chunks/{ebuilder-form-CBYI6CQ6.js → ebuilder-form-TWSXS5NA.js} +7 -6
  40. package/dist/chunks/{ehr-XI4BIVR2.js → ehr-52GBKNJR.js} +3 -2
  41. package/dist/chunks/{env-BZDB5OVZ.js → env-BVVFIN4P.js} +2 -2
  42. package/dist/chunks/{esb-4BQHNP5C.js → esb-HJSXCEOM.js} +5 -4
  43. package/dist/chunks/{factory-VD3YI6N7.js → factory-RCQ36LLE.js} +1 -1
  44. package/dist/chunks/{fna-ECOYBQYL.js → fna-OBACRT3J.js} +72 -3
  45. package/dist/chunks/{group-chat-DHNVO76L.js → group-chat-YFZDUUY3.js} +3 -3
  46. package/dist/chunks/{host-TUOIOEMC.js → host-2BKMPWDH.js} +4 -3
  47. package/dist/chunks/{host-3TNBMDTR.js → host-KJT3G5D2.js} +4 -3
  48. package/dist/chunks/{host-7OWWPLM4.js → host-KOWUMNAY.js} +4 -3
  49. package/dist/chunks/{host-M4XP5URR.js → host-MFXRA2MY.js} +4 -3
  50. package/dist/chunks/{host-7NTIBSPK.js → host-TTSGY5NZ.js} +4 -3
  51. package/dist/chunks/{host-G3VU7SDW.js → host-W4JCNRFS.js} +4 -3
  52. package/dist/chunks/{hrm-YGIR3HGF.js → hrm-AK3WGBMN.js} +4 -3
  53. package/dist/chunks/{im-TN2JYVGJ.js → im-JZSBPO4Z.js} +4 -3
  54. package/dist/chunks/{invoice-V7ZTITUO.js → invoice-7JGSEWT5.js} +22 -9
  55. package/dist/chunks/{jiuchuanhui-ASFZBMPU.js → jiuchuanhui-K4EQU6GK.js} +3 -2
  56. package/dist/chunks/{lazy-dispatch-XSAHDK6Z.js → lazy-dispatch-JHGFCKJN.js} +5 -4
  57. package/dist/chunks/{mail-M3HJF5ER.js → mail-IKVCQCVZ.js} +3 -2
  58. package/dist/chunks/{meeting-OWG4O2XH.js → meeting-JOHV4RH3.js} +14 -12
  59. package/dist/chunks/minute-doc-JLS4KMFZ.js +156 -0
  60. package/dist/chunks/{okr-EVX7FB5G.js → okr-KV43FPPX.js} +3 -2
  61. package/dist/chunks/{operations-J7PUIVWZ.js → operations-ZPWBMYKE.js} +5 -4
  62. package/dist/chunks/{plan-2QJQEPBO.js → plan-WOYR4WEG.js} +3 -2
  63. package/dist/chunks/{project-XELELW2T.js → project-CQJKBUIL.js} +3 -2
  64. package/dist/chunks/{reception-QGPNTGHG.js → reception-MPBU3JXC.js} +3 -2
  65. package/dist/chunks/{recruit-stage-XCMVEQA2.js → recruit-stage-USTTRHOX.js} +3 -2
  66. package/dist/chunks/{registry-CJOVECZD.js → registry-GURQG4ZV.js} +3 -2
  67. package/dist/chunks/{registry-ASYCWF2U.js → registry-LITYOH2W.js} +12 -10
  68. package/dist/chunks/{registry-QJCZ2GVG.js → registry-SS5J2FZQ.js} +5 -4
  69. package/dist/chunks/{room-recommend-LSVAMGKV.js → room-recommend-62MECG4J.js} +4 -4
  70. package/dist/chunks/{schedule-7QOPRUU4.js → schedule-6QRXIBGU.js} +4 -4
  71. package/dist/chunks/{smart-extract-FOUYNIG3.js → smart-extract-APX2PNIN.js} +3 -2
  72. package/dist/chunks/{workflow-YHXFIU63.js → workflow-WMPW3WSB.js} +5 -4
  73. package/dist/index.js +33 -32
  74. package/dist/internal/e10/auth/agent-host-key.js +68 -0
  75. package/dist/internal/e10/auth/agent-hosts.js +250 -0
  76. package/dist/internal/e10/auth/commands.js +99 -30
  77. package/dist/internal/e10/auth/paths.js +9 -0
  78. package/dist/internal/e10/auth/session.js +17 -0
  79. package/dist/internal/e10/auth/xiaoe.js +37 -3
  80. package/dist/shortcuts/archive-oa/operations/contract-modules.js +106 -0
  81. package/dist/shortcuts/archive-oa/operations/contract.js +38 -4
  82. package/dist/shortcuts/archive-oa/operations/registry.js +2 -1
  83. package/dist/shortcuts/contract/index.js +6 -7
  84. package/dist/shortcuts/contract/manifest.js +101 -24
  85. package/dist/shortcuts/contract/ooxml/docx-table.js +75 -3
  86. package/dist/shortcuts/contract/ooxml/xlsx.js +49 -13
  87. package/dist/shortcuts/contract/operations/card-action.js +113 -12
  88. package/dist/shortcuts/contract/operations/card-ebdf-list.js +29 -7
  89. package/dist/shortcuts/contract/operations/card-plan.js +75 -9
  90. package/dist/shortcuts/contract/operations/card-risk-report.js +2 -2
  91. package/dist/shortcuts/contract/operations/card.js +1 -1
  92. package/dist/shortcuts/contract/operations/clause-library.js +88 -16
  93. package/dist/shortcuts/contract/operations/compare-screen.js +378 -0
  94. package/dist/shortcuts/contract/operations/compare.js +1 -1
  95. package/dist/shortcuts/contract/operations/credit-page.js +1 -1
  96. package/dist/shortcuts/contract/operations/docx-slots.js +1000 -0
  97. package/dist/shortcuts/contract/operations/flow.js +2 -2
  98. package/dist/shortcuts/contract/operations/quote-to-contract.js +495 -0
  99. package/dist/shortcuts/contract/operations/quote.js +2 -229
  100. package/dist/shortcuts/contract/operations/recommend.js +1 -1
  101. package/dist/shortcuts/contract/operations/registry.js +6 -2
  102. package/dist/shortcuts/contract/operations/review.js +230 -4
  103. package/dist/shortcuts/contract/operations/save-recognize.js +122 -3
  104. package/dist/shortcuts/contract/operations/template.js +11 -10
  105. package/dist/shortcuts/data/operations/ds.js +5 -5
  106. package/dist/shortcuts/data/operations/shared.js +76 -4
  107. package/dist/shortcuts/fna/manifest.js +7 -2
  108. package/dist/shortcuts/fna/operations/budget.js +68 -0
  109. package/dist/shortcuts/invoice/manifest.js +8 -3
  110. package/dist/shortcuts/invoice/operations/reim.js +10 -3
  111. package/dist/shortcuts/meeting/minute-doc.js +153 -0
  112. package/dist/shortcuts/meeting/operations/compose-outcome.js +176 -0
  113. package/dist/shortcuts/meeting/operations/eb/catalog.js +1 -1
  114. package/dist/shortcuts/meeting/operations/eb/create-flow.js +26 -0
  115. package/dist/shortcuts/meeting/operations/eb/decision-task-batch.js +144 -0
  116. package/dist/shortcuts/meeting/operations/eb/decision.js +92 -4
  117. package/dist/shortcuts/meeting/operations/eb/index.js +133 -4
  118. package/dist/shortcuts/meeting/operations/eb/meeting-link.js +90 -0
  119. package/dist/shortcuts/meeting/operations/from-group-chat.js +46 -0
  120. package/dist/shortcuts/meeting/operations/minute-content.js +61 -0
  121. package/dist/shortcuts/meeting/operations/registry.js +14 -1
  122. package/dist/shortcuts/meeting/operations/self-check.js +49 -0
  123. package/dist/shortcuts/workflow/endpoints.js +2 -0
  124. package/dist/shortcuts/workflow/operations/read.js +114 -8
  125. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +72 -46
  126. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +41 -0
  127. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +46 -11
  128. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +18 -1
  129. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroupAdd.js +51 -0
  130. package/docs/e10-auth.md +78 -0
  131. package/docs/fna.md +8 -3
  132. package/docs/invoice.md +1 -1
  133. package/package.json +4 -2
  134. package/scripts/pack-offline.mjs +228 -0
  135. package/scripts/package-skill.mjs +14 -5
  136. package/skill-template/business-info.json +3 -0
  137. package/skill-template/domains/qiyecheng.md +4 -3
  138. package/skills/weaver-e10-archive-oa/SKILL.md +6 -1
  139. package/skills/weaver-e10-archive-oa/references/contract-search.md +91 -4
  140. package/skills/weaver-e10-jinchengda/SKILL.md +100 -81
  141. package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +11 -6
  142. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +5 -4
  143. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +38 -12
  144. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +1 -1
  145. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +1 -1
  146. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +20 -6
  147. package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +8 -3
  148. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +56 -13
  149. package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +7 -0
  150. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
  151. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +11 -5
  152. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +1 -1
  153. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
  154. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +38 -7
  155. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +13 -25
  156. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +9 -8
  157. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +8 -6
  158. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +10 -7
  159. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +2 -2
  160. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +3 -1
  161. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +26 -18
  162. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +4 -4
  163. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +18 -13
  164. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +5 -3
  165. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +105 -49
  166. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
  167. package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +3 -6
  168. package/skills/weaver-e10-meeting/SKILL.md +47 -9
  169. package/skills/weaver-e10-qiyecheng/SKILL.md +16 -7
  170. package/skills/weaver-e10-qiyecheng/references/budget.md +77 -3
  171. package/skills/weaver-e10-qiyecheng/references/catalog.md +6 -4
  172. package/skills/weaver-e10-qiyecheng/references/getEnabledTemplate-api.md +255 -0
  173. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +70 -25
  174. package/skills/weaver-e10-workflow/SKILL.md +54 -40
  175. package/skills/weaver-e10-workflow/references/todo-dialogue.md +134 -0
  176. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +102 -80
  177. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +23 -13
  178. package/skills/weaver-e10-workflow/references/workflow-query.md +68 -46
  179. package/skills/weaver-e10-workflow/references/workflow-view.md +21 -13
  180. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +317 -332
  181. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1 -0
  182. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +23 -13
  183. package/skills/weaver-e10-yepiaotong.zip +0 -0
  184. package/dist/shortcuts/contract/ooxml/docx.js +0 -295
  185. package/dist/shortcuts/contract/operations/docx-fillfromquote.js +0 -532
  186. package/skills/weaver-e10-jinchengda/references/contract-risk-report-template.html +0 -178
  187. package/skills/weaver-e10-jinchengda/references/source-manifest.json +0 -1270
  188. package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +0 -998
  189. 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-O6RIBG5E.js";
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-LYOFRYC4.js";
15
+ } from "./chunk-UI66EMOR.js";
16
16
  import {
17
17
  cacheScopeSuffix,
18
18
  readCache,
19
19
  writeCache
20
- } from "./chunk-CNVZETM5.js";
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-XHMJBRLZ.js";
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-TUOIOEMC.js");
339
+ const { createWorkflowHost } = await import("./host-2BKMPWDH.js");
275
340
  const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
276
- const { getWorkflowOperation } = await import("./registry-CJOVECZD.js");
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-LSVAMGKV.js");
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-ASYCWF2U.js");
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-ASYCWF2U.js");
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-ASYCWF2U.js");
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-DHNVO76L.js");
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-7QOPRUU4.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
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-ASYCWF2U.js");
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-ASYCWF2U.js");
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-ASYCWF2U.js");
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
@@ -1826,7 +1907,7 @@ var ebMeetingCreateFlowPrepare = {
1826
1907
  invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
1827
1908
  } else {
1828
1909
  try {
1829
- const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
1910
+ const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
1830
1911
  const publish = getMeetingOperation("meeting.invitation.publish");
1831
1912
  const renderExtra = {};
1832
1913
  if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
@@ -2147,7 +2228,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
2147
2228
  });
2148
2229
  };
2149
2230
  const readBack = async () => {
2150
- const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
2231
+ const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
2151
2232
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
2152
2233
  const read = await detail.handler({ id: String(meetingId).trim() }, env);
2153
2234
  return String(read?.data?.data?.crm_members ?? "").trim();
@@ -2174,7 +2255,7 @@ async function renderPreInvitation(payload, env) {
2174
2255
  const fields = payload?.invitationFields ?? {};
2175
2256
  const started = Date.now();
2176
2257
  try {
2177
- const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
2258
+ const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
2178
2259
  const render = getMeetingOperation("meeting.invitation.render");
2179
2260
  const rendered = await render.handler(
2180
2261
  {
@@ -2250,9 +2331,9 @@ var ebMeetingCreateFlowApply = {
2250
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");
2251
2332
  }
2252
2333
  const payload = lease?.payload ?? {};
2253
- const { createWorkflowHost } = await import("./host-TUOIOEMC.js");
2334
+ const { createWorkflowHost } = await import("./host-2BKMPWDH.js");
2254
2335
  const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
2255
- const { getWorkflowOperation } = await import("./registry-CJOVECZD.js");
2336
+ const { getWorkflowOperation } = await import("./registry-GURQG4ZV.js");
2256
2337
  const wfEnv = {
2257
2338
  ...workflowEnv(env),
2258
2339
  host: createWorkflowHost(env.ctx),
@@ -2302,7 +2383,7 @@ var ebMeetingCreateFlowApply = {
2302
2383
  const groupPayload2 = payload?.groupChat;
2303
2384
  if (groupPayload2) {
2304
2385
  try {
2305
- const { ensureMeetingGroupChat } = await import("./group-chat-DHNVO76L.js");
2386
+ const { ensureMeetingGroupChat } = await import("./group-chat-YFZDUUY3.js");
2306
2387
  groupChat2 = {
2307
2388
  ...await ensureMeetingGroupChat(env, {
2308
2389
  meetingName: String(payload.mtName ?? ""),
@@ -2318,7 +2399,7 @@ var ebMeetingCreateFlowApply = {
2318
2399
  }
2319
2400
  if (groupChat2 && groupChat2.ok) {
2320
2401
  try {
2321
- const { savePendingForm } = await import("./group-chat-DHNVO76L.js");
2402
+ const { savePendingForm } = await import("./group-chat-YFZDUUY3.js");
2322
2403
  await savePendingForm(env, {
2323
2404
  workflowId: String(payload.workflowId ?? ""),
2324
2405
  workflowName: String(payload.workflowName ?? ""),
@@ -2385,7 +2466,7 @@ var ebMeetingCreateFlowApply = {
2385
2466
  let meetingId = "";
2386
2467
  const timings = { submitMs: Date.now() - submitStartedAt };
2387
2468
  if (waitSeconds > 0) {
2388
- const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
2469
+ const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
2389
2470
  const list = getMeetingOperation("meeting.eb.meeting.list");
2390
2471
  const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
2391
2472
  const pollStart = Date.now();
@@ -2435,7 +2516,7 @@ var ebMeetingCreateFlowApply = {
2435
2516
  if (groupPayload) {
2436
2517
  const groupStart = Date.now();
2437
2518
  try {
2438
- const { ensureMeetingGroupChat } = await import("./group-chat-DHNVO76L.js");
2519
+ const { ensureMeetingGroupChat } = await import("./group-chat-YFZDUUY3.js");
2439
2520
  const group = await ensureMeetingGroupChat(env, {
2440
2521
  meetingName: String(payload.mtName ?? ""),
2441
2522
  beginDatetime: String(groupPayload.beginDatetime ?? ""),
@@ -2467,7 +2548,7 @@ var ebMeetingCreateFlowApply = {
2467
2548
  if (meetingId) {
2468
2549
  const invitationStart = Date.now();
2469
2550
  try {
2470
- const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
2551
+ const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
2471
2552
  const render = getMeetingOperation("meeting.invitation.render");
2472
2553
  const rendered = await render.handler(
2473
2554
  {
@@ -2511,6 +2592,8 @@ var ebMeetingCreateFlowApply = {
2511
2592
  requestId,
2512
2593
  requestName: payload.requestName,
2513
2594
  meetingId: meetingId || null,
2595
+ // 会议详情链接(用户要求:会议名必须可点击;这里直接给,模型不用再调 meeting.link)
2596
+ ...meetingId ? { meetingUrl: await meetingUrlFor(env, meetingId) } : {},
2514
2597
  // 参会客户有没有真的写进会议记录(表单侧是 Ebuilder,需 apply 补写;回读确认才算 ok)
2515
2598
  ...crmLinked ? { crmLinked } : {},
2516
2599
  // 同步建的群(群 id / 群名 / 有没有回写 imchat_groupid)
@@ -2639,7 +2722,7 @@ var ebMeetingCreateFlowQuick = {
2639
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`
2640
2723
  );
2641
2724
  }
2642
- const { getMeetingOperation } = await import("./registry-ASYCWF2U.js");
2725
+ const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
2643
2726
  const prepareStartedAt = Date.now();
2644
2727
  const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
2645
2728
  const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
@@ -2676,6 +2759,7 @@ var ebMeetingCreateFlowQuick = {
2676
2759
  workflowId: applied?.data?.workflowId,
2677
2760
  requestId: applied?.data?.requestId,
2678
2761
  meetingId: applied?.data?.meetingId ?? null,
2762
+ ...applied?.data?.meetingId ? { meetingUrl: await meetingUrlFor(env, String((applied?.data).meetingId)) } : {},
2679
2763
  invitation: applied?.data?.invitation ?? null,
2680
2764
  // 同步建的群(群 id / 群名 / 有没有回写 imchat_groupid)
2681
2765
  ...applied?.data?.groupChat ? { groupChat: (applied?.data).groupChat } : {},
@@ -2737,7 +2821,7 @@ var ebMeetingCreateSuggest = {
2737
2821
  const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
2738
2822
  const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
2739
2823
  const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
2740
- const nameToId = nameLike.length > 0 ? await import("./schedule-7QOPRUU4.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
2824
+ const nameToId = nameLike.length > 0 ? await import("./schedule-6QRXIBGU.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
2741
2825
  const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
2742
2826
  const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
2743
2827
  const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
@@ -2823,6 +2907,7 @@ var meetingEbCreateFlowOperations = [
2823
2907
  ];
2824
2908
 
2825
2909
  export {
2910
+ attachMeetingUrls,
2826
2911
  resolveSelfPerson,
2827
2912
  applySelfPersonDefaults,
2828
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-6LGLI46Q.js";
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-6NXT4ICB.js";
17
+ } from "./chunk-WVH5ESDA.js";
18
18
  import {
19
19
  E10_SESSION_EXPIRED_MESSAGE,
20
20
  getActiveProfile
21
- } from "./chunk-U6R6FZHD.js";
21
+ } from "./chunk-SFM3M2L3.js";
22
22
 
23
23
  // src/shortcuts/esb/host.ts
24
24
  var ESB_PATHS = {