weaver-work-cli 0.1.48 → 0.1.50

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 (167) hide show
  1. package/dist/chunks/{archive-oa-EDJDU3V4.js → archive-oa-57R2FYHV.js} +111 -12
  2. package/dist/chunks/{attachment-content-4KSNBPRO.js → attachment-content-EJYIOJPH.js} +3 -3
  3. package/dist/chunks/{chunk-FEP6ELMR.js → chunk-3NCFFHB2.js} +1 -1
  4. package/dist/chunks/chunk-5QYE52LG.js +223 -0
  5. package/dist/chunks/{chunk-3YV7PKRL.js → chunk-6QYNE6HE.js} +12 -212
  6. package/dist/chunks/{chunk-NBEWUR7L.js → chunk-6T53BSWZ.js} +158 -44
  7. package/dist/chunks/{chunk-OCYRVZGN.js → chunk-7AYQJSFY.js} +2 -2
  8. package/dist/chunks/{chunk-5B5JXTY2.js → chunk-7ECB22G3.js} +221 -30
  9. package/dist/chunks/{chunk-72MI3MBX.js → chunk-ATEXBEPD.js} +55 -15
  10. package/dist/chunks/{chunk-WMSAWAWZ.js → chunk-BFKLQLBK.js} +8 -8
  11. package/dist/chunks/{chunk-EFOUMXIX.js → chunk-HARQF5IP.js} +28 -28
  12. package/dist/chunks/{chunk-O6CMPO65.js → chunk-IW7A2IQY.js} +16 -146
  13. package/dist/chunks/chunk-JEQHNNSS.js +158 -0
  14. package/dist/chunks/{chunk-NK74RE5F.js → chunk-K67FODVC.js} +3 -3
  15. package/dist/chunks/{chunk-YLCYX7LE.js → chunk-KMRT7NAT.js} +18 -5
  16. package/dist/chunks/{chunk-BCACE6VV.js → chunk-MCZG6HPM.js} +3 -3
  17. package/dist/chunks/{chunk-SVFG6EMV.js → chunk-RYFRGTUV.js} +5 -5
  18. package/dist/chunks/{chunk-PSPOFLSU.js → chunk-WNJUGI2F.js} +1 -1
  19. package/dist/chunks/{chunk-R2HHLJNN.js → chunk-YB3AJYPY.js} +4 -4
  20. package/dist/chunks/{conflict-APGSD5E7.js → conflict-C4UDHCWV.js} +2 -2
  21. package/dist/chunks/{contract-N6P2HIIE.js → contract-VUC6JOPG.js} +464 -9
  22. package/dist/chunks/{create-flow-5TXFOC7X.js → create-flow-6OG2LYBD.js} +6 -6
  23. package/dist/chunks/data-QO7QWOIV.js +2525 -0
  24. package/dist/chunks/{employee-NOHNXC46.js → employee-DR5Y64TI.js} +2 -1
  25. package/dist/chunks/{env-B6GKA2J3.js → env-WP57TF2S.js} +2 -2
  26. package/dist/chunks/{factory-MFCKLUT6.js → factory-VUXI7N5C.js} +1 -1
  27. package/dist/chunks/{fna-ZVB2IILI.js → fna-ECOYBQYL.js} +328 -5
  28. package/dist/chunks/{group-chat-YE7WIBFO.js → group-chat-UQRGXILK.js} +3 -3
  29. package/dist/chunks/{hrm-UNKCCCGP.js → hrm-YGIR3HGF.js} +4 -2
  30. package/dist/chunks/{im-3RCNL5GT.js → im-TN2JYVGJ.js} +2 -2
  31. package/dist/chunks/{invoice-FXWH5GPO.js → invoice-E7GOITEU.js} +1 -1
  32. package/dist/chunks/{meeting-RYZV2JTQ.js → meeting-4BBLVAWM.js} +10 -10
  33. package/dist/chunks/{msg-parse-4GSQ2WTO.js → msg-parse-FPFVPMYI.js} +5 -1
  34. package/dist/chunks/org-NFE7X7FK.js +12 -0
  35. package/dist/chunks/{reception-VL6TKVAW.js → reception-QGPNTGHG.js} +526 -175
  36. package/dist/chunks/{recruit-stage-ERZD3ZNB.js → recruit-stage-FKWS5UQF.js} +66 -13
  37. package/dist/chunks/{registry-VWXWPVAG.js → registry-3UGIWH53.js} +4 -2
  38. package/dist/chunks/{registry-22O6UG4I.js → registry-5CRCN2TV.js} +10 -10
  39. package/dist/chunks/{registry-BUTEDK3C.js → registry-E5RQJVWN.js} +2 -2
  40. package/dist/chunks/{registry-7VZ6YJUF.js → registry-V4CHRQDI.js} +1 -1
  41. package/dist/chunks/{room-recommend-IMZPJMYB.js → room-recommend-AYR3UG7R.js} +4 -4
  42. package/dist/chunks/{schedule-SPPAHER2.js → schedule-JZEFIXUS.js} +4 -4
  43. package/dist/chunks/{workflow-WVEFJ6KC.js → workflow-3ZAF2J5E.js} +4 -4
  44. package/dist/index.js +16 -11
  45. package/dist/shortcuts/archive-oa/operations/contract-modules.js +57 -0
  46. package/dist/shortcuts/archive-oa/operations/contract.js +23 -8
  47. package/dist/shortcuts/archive-oa/operations/registry.js +4 -1
  48. package/dist/shortcuts/archive-oa/operations/shared.js +41 -5
  49. package/dist/shortcuts/contract/host.js +11 -0
  50. package/dist/shortcuts/contract/index.js +13 -0
  51. package/dist/shortcuts/contract/manifest.js +53 -0
  52. package/dist/shortcuts/contract/operations/performance.js +58 -7
  53. package/dist/shortcuts/contract/operations/quote.js +283 -1
  54. package/dist/shortcuts/contract/operations/registry.js +2 -0
  55. package/dist/shortcuts/contract/operations/save-recognize.js +151 -0
  56. package/dist/shortcuts/data/errors.js +64 -0
  57. package/dist/shortcuts/data/host.js +140 -0
  58. package/dist/shortcuts/data/index.js +429 -0
  59. package/dist/shortcuts/data/manifest.js +133 -0
  60. package/dist/shortcuts/data/operations/attend.js +62 -0
  61. package/dist/shortcuts/data/operations/conf.js +384 -0
  62. package/dist/shortcuts/data/operations/ds.js +686 -0
  63. package/dist/shortcuts/data/operations/field.js +68 -0
  64. package/dist/shortcuts/data/operations/index.js +65 -0
  65. package/dist/shortcuts/data/operations/module.js +383 -0
  66. package/dist/shortcuts/data/operations/noun.js +102 -0
  67. package/dist/shortcuts/data/operations/query.js +85 -0
  68. package/dist/shortcuts/data/operations/scene.js +235 -0
  69. package/dist/shortcuts/data/operations/shared.js +279 -0
  70. package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +12 -5
  71. package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +21 -13
  72. package/dist/shortcuts/ehr/recruit-stage/shared.js +57 -0
  73. package/dist/shortcuts/fna/host.js +4 -2
  74. package/dist/shortcuts/fna/manifest.js +14 -5
  75. package/dist/shortcuts/fna/operations/audit.js +334 -0
  76. package/dist/shortcuts/fna/operations/registry.js +2 -0
  77. package/dist/shortcuts/im/operations/at-mention.js +6 -3
  78. package/dist/shortcuts/im/operations/msg-parse.js +35 -5
  79. package/dist/shortcuts/im/operations/msg-sync.js +3 -1
  80. package/dist/shortcuts/im/operations/msg-write.js +57 -9
  81. package/dist/shortcuts/index.js +5 -0
  82. package/dist/shortcuts/invoice/manifest.js +1 -1
  83. package/dist/shortcuts/meeting/operations/eb/member-expand.js +200 -0
  84. package/dist/shortcuts/meeting/operations/from-group-chat.js +16 -2
  85. package/dist/shortcuts/meeting/operations/registry.js +2 -0
  86. package/dist/shortcuts/reception/constants.js +13 -6
  87. package/dist/shortcuts/reception/index.js +3 -1
  88. package/dist/shortcuts/reception/manifest.js +3 -2
  89. package/dist/shortcuts/reception/operations/ask.js +20 -2
  90. package/dist/shortcuts/reception/operations/compose.js +11 -0
  91. package/dist/shortcuts/reception/operations/doc.js +59 -0
  92. package/dist/shortcuts/reception/operations/docrender.js +25 -1
  93. package/dist/shortcuts/reception/operations/leads.js +31 -7
  94. package/dist/shortcuts/reception/operations/panels.js +86 -22
  95. package/dist/shortcuts/reception/operations/render.js +40 -0
  96. package/dist/shortcuts/reception/operations/restaurant.js +17 -4
  97. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +12 -5
  98. package/dist/shortcuts/recruit-stage/operations/resume-import.js +21 -13
  99. package/dist/shortcuts/recruit-stage/shared.js +57 -0
  100. package/dist/shortcuts/workflow/operations/read.js +58 -14
  101. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +140 -24
  102. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +42 -14
  103. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +4 -6
  104. package/docs/SKILL.md +2 -1
  105. package/docs/_catalog.md +4 -1
  106. package/docs/data.md +149 -0
  107. package/docs/fna.md +11 -4
  108. package/docs/reception.md +59 -5
  109. package/package.json +1 -1
  110. package/scripts/check-skill-sync.mjs +188 -0
  111. package/scripts/package-skill.mjs +17 -3
  112. package/skill-template/business-info.json +29 -1
  113. package/skill-template/domains/data.md +15 -0
  114. package/skill-template/domains/qiyecheng.md +4 -2
  115. package/skills/weaver-e10-archive-oa/SKILL.md +7 -6
  116. package/skills/weaver-e10-archive-oa/references/contract-search.md +83 -14
  117. package/skills/weaver-e10-archive-oa/references/disabled-capabilities.md +1 -1
  118. package/skills/weaver-e10-archive-oa/references/qys-contract-search.md +35 -11
  119. package/skills/weaver-e10-data/SKILL.md +118 -0
  120. package/skills/weaver-e10-data/references/config-center.md +90 -0
  121. package/skills/weaver-e10-data/references/datasource.md +136 -0
  122. package/skills/weaver-e10-data/references/scene-and-misc.md +82 -0
  123. package/skills/weaver-e10-jinchengda/SKILL.md +1 -1
  124. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +5 -5
  125. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +1 -1
  126. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +44 -2
  127. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +2 -2
  128. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +219 -0
  129. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +50 -30
  130. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +24 -15
  131. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +1 -1
  132. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +96 -2
  133. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +43 -0
  134. package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +997 -0
  135. package/skills/weaver-e10-jinchengda/scripts/render_ebdf_list_card.py +265 -0
  136. package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +83 -0
  137. package/skills/weaver-e10-jinchengda/scripts/verify_docx_placeholders.py +118 -0
  138. package/skills/weaver-e10-meeting/SKILL.md +39 -7
  139. package/skills/weaver-e10-qiyecheng/SKILL.md +21 -7
  140. package/skills/weaver-e10-qiyecheng/references/ai-check-audit.md +104 -0
  141. package/skills/weaver-e10-qiyecheng/references/catalog.md +17 -3
  142. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +136 -30
  143. package/skills/weaver-e10-reception-flow/SKILL.md +70 -19
  144. package/skills/weaver-e10-reception-flow/references/guide.md +5 -4
  145. package/skills/weaver-e10-reception-flow/scripts/render.py +5 -3
  146. package/skills/weaver-e10-recruit-stage/SKILL.md +1 -1
  147. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +26 -6
  148. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +3 -3
  149. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +6 -4
  150. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +3 -3
  151. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +53 -11
  152. package/skills/weaver-e10-workflow/SKILL.md +2 -1
  153. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +29 -6
  154. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +162 -10
  155. package/skills/weaver-e10-yepiaotong/SKILL.md +10 -5
  156. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +19 -32
  157. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +6 -45
  158. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +5 -5
  159. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +4 -37
  160. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +2 -2
  161. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +4 -4
  162. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +22 -35
  163. package/skills/weaver-e10-yimiaoban/SKILL.md +8 -6
  164. package/skills/weaver-e10-yimiaoban/references/msg-read.md +20 -0
  165. package/skills/weaver-e10-yimiaoban/references/msg-write.md +7 -0
  166. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +18 -15
  167. package/dist/chunks/{ebuilder-form-I5ZIX4WO.js → ebuilder-form-CBYI6CQ6.js} +4 -4
@@ -5,30 +5,35 @@ import {
5
5
  listMeetingAttachments,
6
6
  meetingAttachmentContentOperations,
7
7
  renderDocx
8
- } from "./chunk-OCYRVZGN.js";
8
+ } from "./chunk-7AYQJSFY.js";
9
9
  import {
10
10
  meetingEbGroupChatOperations
11
- } from "./chunk-WMSAWAWZ.js";
11
+ } from "./chunk-BFKLQLBK.js";
12
12
  import {
13
13
  meetingEbCreateFlowOperations
14
- } from "./chunk-EFOUMXIX.js";
14
+ } from "./chunk-HARQF5IP.js";
15
15
  import {
16
16
  ebMeetingWritePreflight,
17
17
  meetingEbConflictOperations
18
- } from "./chunk-SVFG6EMV.js";
18
+ } from "./chunk-RYFRGTUV.js";
19
19
  import {
20
20
  meetingEbScheduleOperations
21
- } from "./chunk-BCACE6VV.js";
21
+ } from "./chunk-MCZG6HPM.js";
22
22
  import {
23
23
  ebRoomRecommendOperation,
24
24
  recommendRooms,
25
25
  rememberFrequentRoom
26
- } from "./chunk-R2HHLJNN.js";
26
+ } from "./chunk-YB3AJYPY.js";
27
+ import {
28
+ cacheScopeSuffix,
29
+ readCache,
30
+ writeCache
31
+ } from "./chunk-WNJUGI2F.js";
27
32
  import {
28
33
  meetingEnvOperations,
29
34
  meetingStateDir,
30
35
  resolveMeetingEnvMode
31
- } from "./chunk-FEP6ELMR.js";
36
+ } from "./chunk-3NCFFHB2.js";
32
37
  import {
33
38
  EB_BASE,
34
39
  EB_ENDPOINTS,
@@ -60,7 +65,7 @@ import {
60
65
  toIdString,
61
66
  verifyLease,
62
67
  writeBody
63
- } from "./chunk-NK74RE5F.js";
68
+ } from "./chunk-K67FODVC.js";
64
69
  import {
65
70
  CONTINUATION_TTL_SECONDS
66
71
  } from "./chunk-7BDPM5ST.js";
@@ -2224,7 +2229,7 @@ var meetingAttachmentAttach = {
2224
2229
  if (mode === "append" && existingIds.length === 0) {
2225
2230
  existingIds.push(...beforeIds);
2226
2231
  }
2227
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
2232
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
2228
2233
  const list = getMeetingOperation2("meeting.eb.meeting.list");
2229
2234
  let fileId = incomingFileId;
2230
2235
  let name = String(args.name ?? "").trim();
@@ -2312,7 +2317,7 @@ function textOf(value) {
2312
2317
  return value === void 0 || value === null ? "" : String(value);
2313
2318
  }
2314
2319
  async function readMinute(env, id) {
2315
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
2320
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
2316
2321
  const detail = getMeetingOperation2("meeting.eb.minute.detail");
2317
2322
  const result = await detail.handler({ id }, env);
2318
2323
  const row = result?.data?.data;
@@ -2391,7 +2396,7 @@ var meetingMinuteWriteContent = {
2391
2396
  } else {
2392
2397
  statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
2393
2398
  }
2394
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
2399
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
2395
2400
  const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
2396
2401
  const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
2397
2402
  const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
@@ -2513,6 +2518,13 @@ var DEFAULT_AI_MINUTE_PAGE = "1250830691712172036";
2513
2518
  function textOf2(value) {
2514
2519
  return value === void 0 || value === null ? "" : String(value);
2515
2520
  }
2521
+ var SYSTEM_NOTICE_TYPES = /* @__PURE__ */ new Set(["9", "14"]);
2522
+ var SYSTEM_NOTICE_TYPE_NAMES = /* @__PURE__ */ new Set(["\u7CFB\u7EDF", "\u901A\u77E5", "\u5C45\u4E2D"]);
2523
+ function isSystemNotice(message) {
2524
+ const type = textOf2(message.type).trim();
2525
+ if (type) return SYSTEM_NOTICE_TYPES.has(type);
2526
+ return SYSTEM_NOTICE_TYPE_NAMES.has(textOf2(message.typeName));
2527
+ }
2516
2528
  var DAY_MS = 24 * 36e5;
2517
2529
  function parseLocalTime(value) {
2518
2530
  const text = textOf2(value).trim();
@@ -2614,7 +2626,7 @@ function formatLine(message, nameByUid) {
2614
2626
  }
2615
2627
  function composeTranscript(messages, nameByUid, keepSystem) {
2616
2628
  const ordered = [...messages].sort((a, b) => Number(a.msgtime ?? 0) - Number(b.msgtime ?? 0));
2617
- const keptMessages = keepSystem ? ordered : ordered.filter((m) => textOf2(m.typeName) !== "\u901A\u77E5");
2629
+ const keptMessages = keepSystem ? ordered : ordered.filter((m) => !isSystemNotice(m));
2618
2630
  const ignoredSystem = ordered.length - keptMessages.length;
2619
2631
  return {
2620
2632
  transcript: keptMessages.map((message) => formatLine(message, nameByUid)).join("\n"),
@@ -2625,7 +2637,7 @@ function composeTranscript(messages, nameByUid, keepSystem) {
2625
2637
  var DIGEST_PATTERN = /(@|负责|分工|安排|决定|结论|确定|定稿|通过|不同意|同意|截止|完成|上线|提测|排期|汇报|跟进|待办|风险|问题|方案|需求|下周|本周|明天|后天|月底|之前|号前)/;
2626
2638
  function buildDigest(messages, nameByUid, keepSystem, maxChars) {
2627
2639
  const ordered = [...messages].sort((a, b) => Number(a.msgtime ?? 0) - Number(b.msgtime ?? 0));
2628
- const base = keepSystem ? ordered : ordered.filter((m) => textOf2(m.typeName) !== "\u901A\u77E5");
2640
+ const base = keepSystem ? ordered : ordered.filter((m) => !isSystemNotice(m));
2629
2641
  const essence = base.filter((message) => {
2630
2642
  const content = textOf2(message.content).trim();
2631
2643
  if (!content) return false;
@@ -2750,7 +2762,7 @@ var meetingMinuteFromGroupChat = {
2750
2762
  const mtId = textOf2(args.mt_id).trim();
2751
2763
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
2752
2764
  const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
2753
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
2765
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
2754
2766
  const ctx = env.ctx;
2755
2767
  let stepStart = Date.now();
2756
2768
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
@@ -2776,7 +2788,7 @@ var meetingMinuteFromGroupChat = {
2776
2788
  const pullStart = Date.now();
2777
2789
  const { createImHost } = await import("./host-M4XP5URR.js");
2778
2790
  const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
2779
- const { getImOperation } = await import("./registry-BUTEDK3C.js");
2791
+ const { getImOperation } = await import("./registry-E5RQJVWN.js");
2780
2792
  const imEnv = { ctx, host: createImHost(ctx), continuation: createImContinuationSigner(ctx) };
2781
2793
  const syncOp = getImOperation("im.msg.sync.group");
2782
2794
  const chatWindow = computeChatWindow(meeting);
@@ -2844,7 +2856,7 @@ var meetingMinuteFromGroupChat = {
2844
2856
  try {
2845
2857
  const { readFile: readFile4 } = await import("node:fs/promises");
2846
2858
  const buffer = await readFile4(file);
2847
- const { extractText } = await import("./attachment-content-4KSNBPRO.js");
2859
+ const { extractText } = await import("./attachment-content-EJYIOJPH.js");
2848
2860
  const extracted = extractText(buffer, file, "");
2849
2861
  if (extracted.text.trim()) {
2850
2862
  extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
@@ -3163,7 +3175,7 @@ var meetingDecisionNotifyGroup = {
3163
3175
  const warnings = [];
3164
3176
  const mtId = textOf3(args.mt_id).trim();
3165
3177
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
3166
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
3178
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
3167
3179
  const ctx = env.ctx;
3168
3180
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
3169
3181
  { mt_id: mtId, pageNo: 1, pageSize: 1 },
@@ -3235,7 +3247,7 @@ var meetingDecisionNotifyGroup = {
3235
3247
  const mentioned = [];
3236
3248
  if (args.mention !== false) {
3237
3249
  try {
3238
- const { getImOperation } = await import("./registry-BUTEDK3C.js");
3250
+ const { getImOperation } = await import("./registry-E5RQJVWN.js");
3239
3251
  const membersResult = await getImOperation("im.group.users").handler(
3240
3252
  { groupId },
3241
3253
  { ctx, host: imHost }
@@ -3465,7 +3477,7 @@ var meetingPipelineRun = {
3465
3477
  const needsConfirm = level === "tasks" || level === "notify";
3466
3478
  const confirmed = args.confirm === true;
3467
3479
  const executedLevel = needsConfirm && !confirmed ? "document" : level;
3468
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
3480
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
3469
3481
  const ctx = env.ctx;
3470
3482
  let stepStart = Date.now();
3471
3483
  const reuseMinuteId = textOf4(args.minuteId).trim();
@@ -3535,7 +3547,7 @@ var meetingPipelineRun = {
3535
3547
  }
3536
3548
  stepStart = Date.now();
3537
3549
  const { createHrmHost } = await import("./host-G3VU7SDW.js");
3538
- const { getHrmOperation } = await import("./registry-VWXWPVAG.js");
3550
+ const { getHrmOperation } = await import("./registry-3UGIWH53.js");
3539
3551
  const hrmEnv = { ctx, host: createHrmHost(ctx) };
3540
3552
  const queryOp = getHrmOperation("hrm.employee.query");
3541
3553
  const resolved = [];
@@ -3837,7 +3849,7 @@ function formatTimeRange(start, end) {
3837
3849
  }
3838
3850
  async function loadAgendaFromTopics(env, mtId) {
3839
3851
  try {
3840
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
3852
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
3841
3853
  const operation = getMeetingOperation2("meeting.eb.topic.list");
3842
3854
  const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
3843
3855
  const rows = result.data?.rows ?? [];
@@ -3930,7 +3942,7 @@ function flattenFieldValue(raw) {
3930
3942
  }
3931
3943
  async function resolveIssuerOrganization(env, creatorId) {
3932
3944
  try {
3933
- const { hrmEmployeeOperations } = await import("./employee-NOHNXC46.js");
3945
+ const { hrmEmployeeOperations } = await import("./employee-DR5Y64TI.js");
3934
3946
  const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
3935
3947
  if (!batch) return null;
3936
3948
  const result = await batch.handler({ ids: [creatorId] }, env);
@@ -3952,7 +3964,7 @@ async function resolveSessionUserName(env) {
3952
3964
  const session = await env.host.getSession();
3953
3965
  const userId = String(session?.userId ?? "").trim();
3954
3966
  if (!userId) return "";
3955
- const { hrmEmployeeOperations } = await import("./employee-NOHNXC46.js");
3967
+ const { hrmEmployeeOperations } = await import("./employee-DR5Y64TI.js");
3956
3968
  const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
3957
3969
  if (!batch) return "";
3958
3970
  const result = await batch.handler({ ids: [userId] }, env);
@@ -3988,7 +4000,7 @@ async function supplementRowFromDetail(row, mtId, env) {
3988
4000
  const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
3989
4001
  if (missing.length === 0) return { row, filled: [] };
3990
4002
  try {
3991
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
4003
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
3992
4004
  const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
3993
4005
  const result = await detailOperation.handler({ id: mtId }, env);
3994
4006
  const flat = result?.data?.data ?? result?.data ?? {};
@@ -4162,7 +4174,7 @@ var meetingInvitationRender = {
4162
4174
  };
4163
4175
  dataSource = "payload";
4164
4176
  } else {
4165
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
4177
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
4166
4178
  const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
4167
4179
  try {
4168
4180
  const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
@@ -4279,6 +4291,184 @@ var meetingInvitationRender = {
4279
4291
  };
4280
4292
  var meetingInvitationOperations = [meetingInvitationRender];
4281
4293
 
4294
+ // src/shortcuts/meeting/operations/eb/member-expand.ts
4295
+ var TTL_HOURS = (() => {
4296
+ const raw = Number(process.env.WEAVER_MEETING_MEMBER_CACHE_TTL_HOURS ?? "");
4297
+ return Number.isFinite(raw) && raw > 0 ? Math.min(raw, 24 * 30) : 24 * 30;
4298
+ })();
4299
+ var TTL_ORG_MS = TTL_HOURS * 60 * 60 * 1e3;
4300
+ var TTL_MEMBERS_MS = TTL_ORG_MS;
4301
+ var MAX_DEPARTMENTS = 30;
4302
+ var MAX_MEMBERS_RETURN = 300;
4303
+ async function runHrm(name, input, env) {
4304
+ const { hrmOrgOperations } = await import("./org-NFE7X7FK.js");
4305
+ const { hrmEmployeeOperations } = await import("./employee-DR5Y64TI.js");
4306
+ const all = [...hrmOrgOperations, ...hrmEmployeeOperations];
4307
+ const operation = all.find((item) => item.name === name);
4308
+ if (!operation) throw meetingValidationError("hrm_operation_missing", `\u5F53\u524D CLI \u7F3A\u5C11 ${name}\uFF08\u8BF7\u5347\u7EA7 weaver-work-cli\uFF09`);
4309
+ return operation.handler(input, env);
4310
+ }
4311
+ async function lookupOrg(env, keyword, refresh) {
4312
+ const scope = await cacheScopeSuffix(env);
4313
+ const key = `org-lookup-v1-${scope}-${encodeURIComponent(keyword)}`;
4314
+ if (!refresh) {
4315
+ const hit = await readCache(env, key, { ttlMs: TTL_ORG_MS });
4316
+ if (hit) return { rows: hit.data, cached: true };
4317
+ }
4318
+ const result = await runHrm("hrm.org.lookup", { keyword, limit: 20 }, env);
4319
+ const rows = (result?.data?.rows ?? []).map((row) => ({
4320
+ id: String(row.id ?? ""),
4321
+ name: String(row.name ?? ""),
4322
+ type: String(row.type ?? ""),
4323
+ ...row.fullPath ? { fullPath: String(row.fullPath) } : {},
4324
+ ...row.score !== void 0 ? { score: Number(row.score) } : {}
4325
+ })).filter((row) => row.id && row.name);
4326
+ await writeCache(env, key, rows);
4327
+ return { rows, cached: false };
4328
+ }
4329
+ async function deptMembers(env, deptId, refresh) {
4330
+ const scope = await cacheScopeSuffix(env);
4331
+ const key = `dept-members-v1-${scope}-${deptId}`;
4332
+ if (!refresh) {
4333
+ const hit = await readCache(env, key, { ttlMs: TTL_MEMBERS_MS });
4334
+ if (hit) return { members: hit.data, cached: true };
4335
+ }
4336
+ const result = await runHrm("hrm.dept.members", { dept: deptId }, env);
4337
+ const rows = result?.data?.rows ?? result?.data?.members ?? [];
4338
+ const members = rows.map((row) => ({
4339
+ id: String(row.id ?? row.employeeId ?? ""),
4340
+ name: String(row.name ?? row.employeeName ?? ""),
4341
+ ...row.department ? { department: String(row.department) } : {},
4342
+ ...row.departmentId ? { departmentId: String(row.departmentId) } : {},
4343
+ ...row.subCompany ? { subCompany: String(row.subCompany) } : {}
4344
+ })).filter((row) => row.id);
4345
+ await writeCache(env, key, members);
4346
+ return { members, cached: false };
4347
+ }
4348
+ async function deptsUnderSubcompany(env, subcompanyId) {
4349
+ const result = await runHrm("hrm.org.query", { type: "department", subcompany: [subcompanyId], pageSize: 100 }, env);
4350
+ const rows = result?.data?.rows ?? [];
4351
+ return rows.map((row) => ({ id: String(row.id ?? ""), name: String(row.name ?? "") })).filter((row) => row.id);
4352
+ }
4353
+ var meetingMemberExpand = {
4354
+ name: "meeting.member.expand",
4355
+ resource: "member",
4356
+ method: "expand",
4357
+ action: "meeting.member.expand",
4358
+ summary: "\u628A\u300C\u6211\u4EEC\u90E8\u95E8\u6240\u6709\u4EBA / \u67D0\u5206\u90E8 / \u6A21\u7CCA\u90E8\u95E8\u540D\u300D\u4E00\u6B21\u5C55\u5F00\u6210\u5458\u5DE5 id \u5217\u8868\uFF08\u67E5\u7EC4\u7EC7 + \u53D6\u6210\u5458\uFF0C\u5E26 30 \u5929\u7F13\u5B58\uFF0Crefresh \u53EF\u5F3A\u5236\u5237\u65B0\uFF09\u3002\u652F\u6301 keywords \u591A\u4E2A\u90E8\u95E8\u5E76\u96C6\uFF1B\u6A21\u7CCA\u547D\u4E2D\u591A\u4E2A\u65F6\u8FD4\u56DE candidates\uFF08ambiguous=true\uFF09\u8BA9\u7528\u6237\u70B9\u9009\uFF0C\u4E0D\u731C\u3002\u26D4 \u4E0D\u8981\u7528 hrm.employee.query \u4E0D\u5E26\u6761\u4EF6\u67E5\u5168\u516C\u53F8\uFF08\u5B9E\u6D4B 51 \u79D2\uFF09\u3002",
4359
+ capability: "eb.meeting",
4360
+ risk: "read",
4361
+ inputSchema: {
4362
+ type: "object",
4363
+ additionalProperties: false,
4364
+ properties: {
4365
+ keyword: { type: "string", description: "\u90E8\u95E8/\u5206\u90E8\u540D\u79F0\uFF0C\u652F\u6301\u6A21\u7CCA\uFF08\u5982\u300C\u4F1A\u8BAE\u6A21\u5757\u7EC4\u300D\u300C\u4EA7\u54C1\u7814\u53D1\u4E2D\u5FC3\u300D\u300C\u4F1A\u8BAE\u300D\uFF09" },
4366
+ keywords: { type: "array", items: { type: "string" }, description: "\u591A\u4E2A\u90E8\u95E8/\u5206\u90E8\u540D\u79F0\uFF08\u5E76\u96C6\u53BB\u91CD\uFF09" },
4367
+ scope: { type: "string", enum: ["any", "department", "subcompany"], description: "\u9650\u5B9A\u7EC4\u7EC7\u7C7B\u578B\uFF0C\u9ED8\u8BA4 any" },
4368
+ includeMembers: { type: "boolean", description: "\u662F\u5426\u5C55\u5F00\u6210\u5458\uFF0C\u9ED8\u8BA4 true\uFF1B\u53EA\u67E5\u90E8\u95E8 id \u65F6\u4F20 false" },
4369
+ refresh: { type: "boolean", description: "\u5FFD\u7565\u7F13\u5B58\u91CD\u65B0\u67E5\uFF08\u9ED8\u8BA4 false\uFF09" },
4370
+ maxDepartments: { type: "number", description: `\u5206\u90E8\u5C55\u5F00\u65F6\u6700\u591A\u53D6\u51E0\u4E2A\u90E8\u95E8\uFF0C\u9ED8\u8BA4 ${MAX_DEPARTMENTS}` }
4371
+ }
4372
+ },
4373
+ handler: async (args, env) => {
4374
+ const tokens = [
4375
+ ...typeof args.keyword === "string" ? [args.keyword] : [],
4376
+ ...Array.isArray(args.keywords) ? args.keywords.map((item) => String(item)) : []
4377
+ ].map((item) => item.trim()).filter((item) => item !== "");
4378
+ if (tokens.length === 0) {
4379
+ throw meetingValidationError("keyword_required", "\u8BF7\u4F20 keyword\uFF08\u90E8\u95E8/\u5206\u90E8\u540D\u79F0\uFF09\u6216 keywords\uFF08\u591A\u4E2A\uFF09");
4380
+ }
4381
+ const scope = String(args.scope ?? "any");
4382
+ const includeMembers = args.includeMembers !== false;
4383
+ const refresh = args.refresh === true;
4384
+ const maxDepartments = Math.max(1, Math.min(100, Number(args.maxDepartments) || MAX_DEPARTMENTS));
4385
+ const warnings = [];
4386
+ const resolved = [];
4387
+ const unresolved = [];
4388
+ const ambiguous = [];
4389
+ let fromCache = true;
4390
+ for (const keyword of tokens) {
4391
+ const { rows, cached } = await lookupOrg(env, keyword, refresh);
4392
+ fromCache = fromCache && cached;
4393
+ const filtered = scope === "any" ? rows : rows.filter((row) => row.type === scope);
4394
+ if (filtered.length === 0) {
4395
+ unresolved.push(keyword);
4396
+ continue;
4397
+ }
4398
+ const exact = filtered.find((row) => row.name === keyword);
4399
+ const picked = exact ?? (filtered.length === 1 ? filtered[0] : null);
4400
+ if (!picked) {
4401
+ ambiguous.push({ keyword, candidates: filtered.slice(0, 10) });
4402
+ continue;
4403
+ }
4404
+ let members2 = [];
4405
+ let deptCached = true;
4406
+ if (includeMembers) {
4407
+ if (picked.type === "subcompany") {
4408
+ const depts = await deptsUnderSubcompany(env, picked.id);
4409
+ const limited = depts.slice(0, maxDepartments);
4410
+ if (depts.length > limited.length) {
4411
+ warnings.push(`\u300C${picked.name}\u300D\u4E0B\u6709 ${depts.length} \u4E2A\u90E8\u95E8\uFF0C\u53EA\u5C55\u5F00\u4E86\u524D ${limited.length} \u4E2A\uFF08maxDepartments \u53EF\u8C03\uFF09`);
4412
+ }
4413
+ for (const dept of limited) {
4414
+ const part = await deptMembers(env, dept.id, refresh);
4415
+ deptCached = deptCached && part.cached;
4416
+ members2.push(...part.members);
4417
+ }
4418
+ } else {
4419
+ const part = await deptMembers(env, picked.id, refresh);
4420
+ deptCached = part.cached;
4421
+ members2 = part.members;
4422
+ }
4423
+ }
4424
+ fromCache = fromCache && deptCached;
4425
+ resolved.push({ keyword, org: picked, members: members2, cached: deptCached });
4426
+ }
4427
+ const seen = /* @__PURE__ */ new Set();
4428
+ const allMembers = [];
4429
+ for (const item of resolved) {
4430
+ for (const member of item.members) {
4431
+ if (seen.has(member.id)) continue;
4432
+ seen.add(member.id);
4433
+ allMembers.push(member);
4434
+ }
4435
+ }
4436
+ const overflow = allMembers.length > MAX_MEMBERS_RETURN;
4437
+ const members = overflow ? allMembers.slice(0, MAX_MEMBERS_RETURN) : allMembers;
4438
+ if (overflow) warnings.push(`\u4EBA\u5458\u8F83\u591A\uFF08${allMembers.length}\uFF09\uFF0C\u53EA\u8FD4\u56DE\u524D ${MAX_MEMBERS_RETURN} \u4E2A\uFF1B\u5EFA\u8BAE\u6309\u66F4\u5C0F\u7684\u90E8\u95E8\u8303\u56F4\u67E5`);
4439
+ if (unresolved.length > 0) warnings.push(`\u672A\u627E\u5230\u7EC4\u7EC7\uFF1A${unresolved.join("\u3001")}`);
4440
+ const isAmbiguous = ambiguous.length > 0;
4441
+ if (isAmbiguous) {
4442
+ warnings.push("\u5B58\u5728\u591A\u4E2A\u540C\u540D/\u8FD1\u540D\u7EC4\u7EC7\uFF1A\u8BF7\u628A candidates \u505A\u6210\u9009\u9879\u8BA9\u7528\u6237\u70B9\u9009\uFF0C\u4E0D\u8981\u81EA\u5DF1\u6311");
4443
+ }
4444
+ return meetingSuccess(
4445
+ "meeting.member.expand",
4446
+ {
4447
+ input: { keywords: tokens, scope, includeMembers },
4448
+ departments: resolved.map((item) => ({
4449
+ keyword: item.keyword,
4450
+ id: item.org.id,
4451
+ name: item.org.name,
4452
+ type: item.org.type,
4453
+ ...item.org.fullPath ? { fullPath: item.org.fullPath } : {},
4454
+ memberCount: item.members.length
4455
+ })),
4456
+ members,
4457
+ count: members.length,
4458
+ /** 直接可用的参会人入参(逗号分隔的员工 id) */
4459
+ membersCsv: members.map((member) => member.id).join(","),
4460
+ memberNames: members.map((member) => member.name).join("\u3001"),
4461
+ ambiguous: isAmbiguous,
4462
+ candidates: ambiguous.flatMap((item) => item.candidates.map((row) => ({ keyword: item.keyword, ...row }))),
4463
+ unresolved,
4464
+ source: fromCache ? "cache" : "api"
4465
+ },
4466
+ warnings.length > 0 ? { warnings } : {}
4467
+ );
4468
+ }
4469
+ };
4470
+ var meetingMemberExpandOperations = [meetingMemberExpand];
4471
+
4282
4472
  // src/shortcuts/meeting/operations/invitation-publish.ts
4283
4473
  import { win32 } from "node:path";
4284
4474
  var DEFAULT_FOLDER_ID = "300";
@@ -4328,7 +4518,7 @@ var meetingInvitationPublish = {
4328
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"
4329
4519
  );
4330
4520
  }
4331
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
4521
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
4332
4522
  const render = getMeetingOperation2("meeting.invitation.render");
4333
4523
  const rendered = await render.handler(
4334
4524
  {
@@ -5043,7 +5233,7 @@ var meetingSummaryGet = {
5043
5233
  const mtId = textOf5(args.mt_id).trim();
5044
5234
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
5045
5235
  const ctx = env.ctx;
5046
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
5236
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
5047
5237
  const warnings = [];
5048
5238
  const timings = {};
5049
5239
  const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
@@ -5181,7 +5371,7 @@ var meetingSummaryGet = {
5181
5371
  try {
5182
5372
  const { createImHost } = await import("./host-M4XP5URR.js");
5183
5373
  const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
5184
- const { getImOperation } = await import("./registry-BUTEDK3C.js");
5374
+ const { getImOperation } = await import("./registry-E5RQJVWN.js");
5185
5375
  const imEnv = {
5186
5376
  ctx,
5187
5377
  // 测试环境靠 env.imHost 注入假实现,否则会真的打到线上群聊
@@ -5364,7 +5554,7 @@ var MT_STATUS_OVER = "8";
5364
5554
  var CANCELLED_MARK_DELAY_MS = 800;
5365
5555
  async function isCancelledMeeting(env, mtId) {
5366
5556
  try {
5367
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
5557
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
5368
5558
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
5369
5559
  // withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
5370
5560
  { mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
@@ -6389,7 +6579,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
6389
6579
  const mtId = String(context.dataIds?.[0] ?? "").trim();
6390
6580
  if (!isCreate || !enabled || !mtId) return association;
6391
6581
  try {
6392
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-22O6UG4I.js");
6582
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
6393
6583
  const render = getMeetingOperation2("meeting.invitation.render");
6394
6584
  const result = await render.handler({ mtId }, context.env);
6395
6585
  return { ...association ?? {}, invitation: result?.data ?? null };
@@ -6440,6 +6630,7 @@ function buildRegistry() {
6440
6630
  ...meetingDecisionNotifyOperations,
6441
6631
  ...meetingPipelineOperations,
6442
6632
  ...meetingInvitationOperations,
6633
+ ...meetingMemberExpandOperations,
6443
6634
  ...meetingInvitationPublishOperations,
6444
6635
  ...meetingQrOperations,
6445
6636
  ...meetingSummaryOperations,