weaver-work-cli 0.1.67 → 0.1.69

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 (180) hide show
  1. package/dist/chunks/{archive-WUZKAEZ6.js → archive-VUTREF3P.js} +16 -12
  2. package/dist/chunks/{archive-oa-PN46RTI2.js → archive-oa-VXXO4RTB.js} +4 -4
  3. package/dist/chunks/{asset-ZPC5VWZM.js → asset-45U6TY7I.js} +44 -12
  4. package/dist/chunks/{asset-idle-DHGP3NYY.js → asset-idle-YCRBMTIT.js} +4 -4
  5. package/dist/chunks/{attachment-content-7SDA6WER.js → attachment-content-7BEDNQ3O.js} +3 -3
  6. package/dist/chunks/{blog-JC47AIXK.js → blog-5AML4WMG.js} +4 -4
  7. package/dist/chunks/{caizhilian-IKIHM77A.js → caizhilian-3P7BUNHT.js} +6 -6
  8. package/dist/chunks/{calendar-GZTSJ57Y.js → calendar-2HUXM3CZ.js} +4 -4
  9. package/dist/chunks/{chunk-33ANTJWB.js → chunk-3CBURKSY.js} +5 -5
  10. package/dist/chunks/{chunk-IN6NXQ26.js → chunk-3Q5F4C5B.js} +47 -27
  11. package/dist/chunks/{chunk-XARLZK6C.js → chunk-3TZURS7M.js} +3 -3
  12. package/dist/chunks/{chunk-R6GGDZ2C.js → chunk-4XYRTXRR.js} +1 -1
  13. package/dist/chunks/{chunk-LNWFHNVK.js → chunk-67AN5YJT.js} +379 -55
  14. package/dist/chunks/{chunk-KS6LXSCA.js → chunk-6DH73Q5H.js} +85 -81
  15. package/dist/chunks/{chunk-3W5NMGDS.js → chunk-727VKJQK.js} +2 -2
  16. package/dist/chunks/{chunk-5QYE52LG.js → chunk-7M5OYRK2.js} +18 -9
  17. package/dist/chunks/{chunk-TXXO4TJT.js → chunk-BEYEXCWU.js} +2 -2
  18. package/dist/chunks/{chunk-26FCCU5O.js → chunk-DSBV4GRK.js} +3 -3
  19. package/dist/chunks/{chunk-G7PQWD4L.js → chunk-DVFA3ODS.js} +38 -10
  20. package/dist/chunks/{chunk-HWA2A25Y.js → chunk-E7VWE2XI.js} +3 -3
  21. package/dist/chunks/{chunk-DTJZOAO6.js → chunk-ELF5TPSG.js} +7 -7
  22. package/dist/chunks/{chunk-6ZOSVKMT.js → chunk-ERAE4GHX.js} +1 -1
  23. package/dist/chunks/{chunk-4PYLZORW.js → chunk-FMAZ42HS.js} +12 -12
  24. package/dist/chunks/{chunk-TJN4PIYO.js → chunk-GTAFCAVP.js} +2 -0
  25. package/dist/chunks/{chunk-WSHIOSGM.js → chunk-H2NRTGZR.js} +3 -3
  26. package/dist/chunks/{chunk-4WCVRDC5.js → chunk-HG6INLH6.js} +13 -0
  27. package/dist/chunks/{chunk-FDBAFANU.js → chunk-I5XB4MZT.js} +227 -23
  28. package/dist/chunks/{chunk-RU7ZZQQQ.js → chunk-JAIZY37Z.js} +4 -4
  29. package/dist/chunks/{chunk-ATEXBEPD.js → chunk-LCM5SSGJ.js} +4 -1
  30. package/dist/chunks/{chunk-FJUOUSV3.js → chunk-LRKKKO5A.js} +36 -9
  31. package/dist/chunks/{chunk-HLT6B26P.js → chunk-LSVA7QA6.js} +1 -1
  32. package/dist/chunks/{chunk-6N4JPNFL.js → chunk-MD5CW4B6.js} +1 -1
  33. package/dist/chunks/{chunk-MRYKV5HN.js → chunk-MLJK4KLE.js} +37 -37
  34. package/dist/chunks/{chunk-C4YQJFZV.js → chunk-PAWXVT6H.js} +22 -11
  35. package/dist/chunks/{chunk-Q6D6PSMH.js → chunk-QYDSTYGG.js} +3 -3
  36. package/dist/chunks/{chunk-AFZTMYGC.js → chunk-T24EBWAZ.js} +1 -1
  37. package/dist/chunks/{chunk-6T5X6YWX.js → chunk-U3OO3IZF.js} +3 -3
  38. package/dist/chunks/{chunk-VLY5RTVO.js → chunk-UVWW5ABZ.js} +3 -3
  39. package/dist/chunks/{chunk-NP3ZZFGI.js → chunk-VZUH3LKI.js} +16 -5
  40. package/dist/chunks/{chunk-JU5OPHSY.js → chunk-YR3K53BU.js} +36 -27
  41. package/dist/chunks/{conflict-DYCSX7CN.js → conflict-VKCRXHUV.js} +2 -2
  42. package/dist/chunks/{contract-N5WNHKHI.js → contract-3PMHUASH.js} +202 -25
  43. package/dist/chunks/{cowork-34CBYVQP.js → cowork-FZBTTBYX.js} +4 -4
  44. package/dist/chunks/{create-flow-PABAGCK2.js → create-flow-WYPLBLRK.js} +6 -6
  45. package/dist/chunks/{data-QKWI5325.js → data-2YZ6A6TL.js} +32 -5
  46. package/dist/chunks/{ebuilder-form-ZONRROK4.js → ebuilder-form-AWPTMZBZ.js} +6 -6
  47. package/dist/chunks/{ehr-2CONM7R6.js → ehr-MNPR4TE5.js} +4 -4
  48. package/dist/chunks/{employee-PGMY6NI6.js → employee-QX57HEWS.js} +1 -1
  49. package/dist/chunks/{entry-mode-C2WPJQJM.js → entry-mode-BCJ7RPFC.js} +3 -3
  50. package/dist/chunks/{env-SEEXUXZF.js → env-SCVCHBN2.js} +2 -2
  51. package/dist/chunks/{esb-FQASCY2H.js → esb-GSB5QCEX.js} +6 -6
  52. package/dist/chunks/{factory-WNLDOLJZ.js → factory-CBXYOEBF.js} +1 -1
  53. package/dist/chunks/{fna-FCLVIWAS.js → fna-XBSNUS2V.js} +4 -4
  54. package/dist/chunks/{group-chat-DOS4XWUN.js → group-chat-RFL4U7RF.js} +3 -3
  55. package/dist/chunks/{host-P7G22WNM.js → host-2UMNXX5H.js} +4 -4
  56. package/dist/chunks/{host-XLCBLNJD.js → host-BD44ASOD.js} +4 -4
  57. package/dist/chunks/{host-2ED2KC4X.js → host-NVDG3NC6.js} +4 -4
  58. package/dist/chunks/{host-46NYKDQP.js → host-R7BP3CTI.js} +4 -4
  59. package/dist/chunks/{host-7IPZKIM4.js → host-SYPCA63D.js} +4 -4
  60. package/dist/chunks/{host-2UYZEY2V.js → host-XVWBOSEN.js} +4 -4
  61. package/dist/chunks/{hrm-XKL27NX2.js → hrm-FZUDJAND.js} +20 -14
  62. package/dist/chunks/{im-NDYIMASG.js → im-F5NENPD7.js} +5 -5
  63. package/dist/chunks/{invoice-SMODTN2D.js → invoice-DS6FLU55.js} +44 -7
  64. package/dist/chunks/{jiuchuanhui-3T5X7SB7.js → jiuchuanhui-PY2WEBUH.js} +161 -10
  65. package/dist/chunks/{lazy-dispatch-K25LTKQY.js → lazy-dispatch-F6O2EPGR.js} +7 -7
  66. package/dist/chunks/{mail-P7VMUKQW.js → mail-ZEOSANEJ.js} +4 -4
  67. package/dist/chunks/{meeting-2IWXP5IL.js → meeting-N2AGGLVI.js} +15 -15
  68. package/dist/chunks/{minute-doc-N4OR5OLP.js → minute-doc-C62EZOJH.js} +4 -4
  69. package/dist/chunks/{okr-VZXRQGS4.js → okr-OZUMTMCL.js} +11 -5
  70. package/dist/chunks/{operations-62N6EP3C.js → operations-LQY3FTPH.js} +1 -1
  71. package/dist/chunks/{operations-MI2BSKZX.js → operations-UTUWFJTX.js} +5 -5
  72. package/dist/chunks/{org-NFE7X7FK.js → org-MWWIFNAO.js} +1 -1
  73. package/dist/chunks/{performance-OPEQNW7Y.js → performance-GBKM5G2Y.js} +3 -3
  74. package/dist/chunks/{plan-TJAS4N5X.js → plan-C2NENH42.js} +4 -4
  75. package/dist/chunks/{project-CYBGU6K6.js → project-FAJ2P3UR.js} +4 -4
  76. package/dist/chunks/{reception-3FT2F66K.js → reception-NH6MJFPR.js} +20 -10
  77. package/dist/chunks/{recruit-stage-WPGB5BDJ.js → recruit-stage-DPEFHLSE.js} +7 -4
  78. package/dist/chunks/{registry-JMNOXRST.js → registry-4S3RXXWS.js} +3 -3
  79. package/dist/chunks/{registry-XOUVCSV4.js → registry-7US3QQXV.js} +12 -12
  80. package/dist/chunks/{registry-E5RQJVWN.js → registry-AC33ZZVH.js} +1 -1
  81. package/dist/chunks/{registry-QRMXRSCT.js → registry-FTPUUHWC.js} +5 -5
  82. package/dist/chunks/{registry-ABKBGGGK.js → registry-Y2HWS6JS.js} +4 -4
  83. package/dist/chunks/{room-recommend-TWIEVY44.js → room-recommend-LMNF76YS.js} +4 -4
  84. package/dist/chunks/{schedule-XZ4UUX4E.js → schedule-4QE2THAP.js} +4 -4
  85. package/dist/chunks/{smart-extract-DEBLJPCQ.js → smart-extract-GTYKF5TJ.js} +32 -21
  86. package/dist/chunks/{workflow-D7LBN5MZ.js → workflow-KXYTQZ2H.js} +81 -12
  87. package/dist/core/error-codes.js +1 -1
  88. package/dist/core/host-policy.js +56 -0
  89. package/dist/core/timing.js +227 -0
  90. package/dist/index.js +39 -36
  91. package/dist/internal/e10/auth/commands.js +11 -0
  92. package/dist/internal/e10/auth/error-log.js +13 -0
  93. package/dist/internal/e10/auth/messages.js +10 -0
  94. package/dist/internal/e10/auth/xiaoe.js +12 -2
  95. package/dist/internal/e10/context.js +39 -12
  96. package/dist/internal/e10/network-error.js +28 -0
  97. package/dist/internal/e10/tls-policy.js +260 -0
  98. package/dist/shortcuts/archive/operations/archive-info.js +9 -5
  99. package/dist/shortcuts/asset/manifest.js +42 -4
  100. package/dist/shortcuts/contract/manifest.js +204 -21
  101. package/dist/shortcuts/data/manifest.js +45 -2
  102. package/dist/shortcuts/ebuilder-form/manifest.js +38 -10
  103. package/dist/shortcuts/hrm/index.js +20 -7
  104. package/dist/shortcuts/hrm/operations/employee.js +22 -11
  105. package/dist/shortcuts/hrm/operations/org.js +18 -9
  106. package/dist/shortcuts/hrm/operations/position.js +24 -12
  107. package/dist/shortcuts/hrm/operations/resolve.js +18 -10
  108. package/dist/shortcuts/im/operations/group-read.js +4 -1
  109. package/dist/shortcuts/invoice/manifest.js +44 -1
  110. package/dist/shortcuts/jiuchuanhui/host.js +76 -4
  111. package/dist/shortcuts/jiuchuanhui/manifest.js +106 -2
  112. package/dist/shortcuts/meeting/operations/attachment-content.js +25 -16
  113. package/dist/shortcuts/meeting/operations/eb/member-expand.js +1 -0
  114. package/dist/shortcuts/meeting/operations/invitation.js +1 -1
  115. package/dist/shortcuts/meeting/operations/link.js +20 -17
  116. package/dist/shortcuts/okr/operations/read.js +7 -1
  117. package/dist/shortcuts/reception/host.js +19 -5
  118. package/dist/shortcuts/reception/manifest.js +2 -0
  119. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +4 -1
  120. package/dist/shortcuts/smart-extract/operations/structure.js +13 -10
  121. package/dist/shortcuts/smart-extract/operations/target.js +15 -7
  122. package/dist/shortcuts/workflow/index.js +55 -5
  123. package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +26 -2
  124. package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +23 -4
  125. package/dist/shortcuts/workflow/operations/deepRead.js +295 -4
  126. package/dist/shortcuts/workflow/operations/read.js +44 -22
  127. package/dist/shortcuts/workflow/operations/types.js +7 -1
  128. package/dist/shortcuts/workflow/operations/write.js +20 -2
  129. package/dist/shortcuts/workflow/operations.js +19 -1
  130. package/docs/e10-auth.md +48 -1
  131. package/package.json +1 -1
  132. package/scripts/xiaoe_env.py +18 -3
  133. package/skills/weaver-e10-asset-idle/SKILL.md +1 -1
  134. package/skills/weaver-e10-blog/SKILL.md +2 -2
  135. package/skills/weaver-e10-calendar/SKILL.md +1 -1
  136. package/skills/weaver-e10-data/SKILL.md +1 -1
  137. package/skills/weaver-e10-esb/SKILL.md +1 -1
  138. package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
  139. package/skills/weaver-e10-hrm/SKILL.md +1 -1
  140. package/skills/weaver-e10-jiuchuanhui/references/customer.md +1 -0
  141. package/skills/weaver-e10-jucailin/SKILL.md +84 -17
  142. package/skills/weaver-e10-jucailin/agents/openai.yaml +2 -1
  143. package/skills/weaver-e10-jucailin/references/recruit-create.md +7 -8
  144. package/skills/weaver-e10-jucailin/references/recruit-implement-INDEX.md +41 -0
  145. package/skills/weaver-e10-jucailin/references/recruit-implement-consult-sop.md +77 -0
  146. package/skills/weaver-e10-jucailin/references/recruit-implement-guardrails.md +41 -0
  147. package/skills/weaver-e10-jucailin/references/recruit-implement-kb-data-update-channels.md +31 -0
  148. package/skills/weaver-e10-jucailin/references/recruit-implement-kb-form-external.md +43 -0
  149. package/skills/weaver-e10-jucailin/references/recruit-implement-kb-talent-base-form.md +32 -0
  150. package/skills/weaver-e10-jucailin/references/recruit-implement-pattern-external-collect-update-talent.md +93 -0
  151. package/skills/weaver-e10-jucailin/references/recruit-implement-pattern-external-share-edit.md +64 -0
  152. package/skills/weaver-e10-jucailin/references/recruit-read.md +1 -1
  153. package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +1 -1
  154. package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -11
  155. package/skills/weaver-e10-jucailin/references/safety-boundaries.md +3 -3
  156. package/skills/weaver-e10-mail/SKILL.md +52 -10
  157. package/skills/weaver-e10-mail/references/mail-agent-entry.md +1 -2
  158. package/skills/weaver-e10-meeting/SKILL.md +1 -1
  159. package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
  160. package/skills/weaver-e10-okr/SKILL.md +1 -1
  161. package/skills/weaver-e10-okr/references/source-manifest.json +5 -5
  162. package/skills/weaver-e10-plan/SKILL.md +2 -2
  163. package/skills/weaver-e10-plan/references/source-manifest.json +3 -3
  164. package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
  165. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +3 -3
  166. package/skills/weaver-e10-reception-flow/SKILL.md +53 -16
  167. package/skills/weaver-e10-shared/SKILL.md +4 -9
  168. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +2 -2
  169. package/skills/weaver-e10-shijingran/SKILL.md +14 -6
  170. package/skills/weaver-e10-shijingran/references/source-manifest.json +5 -4
  171. package/skills/weaver-e10-workflow/SKILL.md +11 -11
  172. package/skills/weaver-e10-workflow/aiDeepRead/templates//346/261/207/346/200/273/345/256/241/346/211/271-demo.html +92 -12
  173. package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
  174. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +6 -4
  175. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +1 -2
  176. package/skills/weaver-e10-workflow/references/workflow-deep-read.md +44 -8
  177. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +84 -12
  178. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
  179. package/skills/weaver-e10-ziguanjia/SKILL.md +1 -1
  180. package/skills/weaver-e10-ziguanjia/references/ziguanjia-agent-entry.md +1 -2
@@ -3,7 +3,7 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  fetchEbAppSettings,
5
5
  findCommonFreeSlots
6
- } from "./chunk-DTJZOAO6.js";
6
+ } from "./chunk-ELF5TPSG.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-RU7ZZQQQ.js";
15
+ } from "./chunk-JAIZY37Z.js";
16
16
  import {
17
17
  cacheScopeSuffix,
18
18
  readCache,
19
19
  writeCache
20
- } from "./chunk-6ZOSVKMT.js";
20
+ } from "./chunk-ERAE4GHX.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-XARLZK6C.js";
29
+ } from "./chunk-3TZURS7M.js";
30
30
  import {
31
31
  CONTINUATION_TTL_MS,
32
32
  CONTINUATION_TTL_SECONDS
@@ -194,7 +194,7 @@ async function meetingUrlMap(env, ids) {
194
194
  const unique = [...new Set(ids.map((id) => String(id).trim()).filter((id) => id !== ""))];
195
195
  if (unique.length === 0) return out;
196
196
  try {
197
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
197
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
198
198
  const link = getMeetingOperation("meeting.link");
199
199
  const result = await link.handler({ type: "meeting", dataIds: unique }, env);
200
200
  const rows = result?.data?.items ?? result?.data?.links ?? [];
@@ -274,7 +274,7 @@ async function resolvePersonsCached(env, ids, options = {}) {
274
274
  for (let index = 0; index < missing.length; index += BATCH_MAX) {
275
275
  const chunk = missing.slice(index, index + BATCH_MAX);
276
276
  try {
277
- const { hrmEmployeeOperations } = await import("./employee-PGMY6NI6.js");
277
+ const { hrmEmployeeOperations } = await import("./employee-QX57HEWS.js");
278
278
  const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
279
279
  if (!batch) break;
280
280
  const result = await batch.handler({ ids: chunk }, env);
@@ -336,9 +336,9 @@ function workflowEnv(env) {
336
336
  return env;
337
337
  }
338
338
  async function loadCreateForm(env, workflowId) {
339
- const { createWorkflowHost } = await import("./host-2ED2KC4X.js");
339
+ const { createWorkflowHost } = await import("./host-NVDG3NC6.js");
340
340
  const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
341
- const { getWorkflowOperation } = await import("./registry-ABKBGGGK.js");
341
+ const { getWorkflowOperation } = await import("./registry-Y2HWS6JS.js");
342
342
  const wfEnv = {
343
343
  ...workflowEnv(env),
344
344
  host: createWorkflowHost(env.ctx),
@@ -380,7 +380,7 @@ async function resolvePersonTokens(env, tokens) {
380
380
  }
381
381
  if (nameLike.length > 0) {
382
382
  try {
383
- const { hrmEmployeeOperations } = await import("./employee-PGMY6NI6.js");
383
+ const { hrmEmployeeOperations } = await import("./employee-QX57HEWS.js");
384
384
  const query = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.query");
385
385
  for (const name of nameLike) {
386
386
  if (!query) break;
@@ -443,7 +443,7 @@ async function resolveAddressRoom(env, input) {
443
443
  const text = String(input ?? "").trim();
444
444
  if (!text) return null;
445
445
  const ref = parseRoomRef(text);
446
- const { loadRooms: loadRooms2 } = await import("./room-recommend-TWIEVY44.js");
446
+ const { loadRooms: loadRooms2 } = await import("./room-recommend-LMNF76YS.js");
447
447
  let rooms = [];
448
448
  try {
449
449
  rooms = (await loadRooms2(env, {})).rooms;
@@ -474,7 +474,7 @@ async function resolveRoomValue(env, input) {
474
474
  const ref = parseRoomRef(text);
475
475
  if (ref.id) {
476
476
  try {
477
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
477
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
478
478
  const detail = await getMeetingOperation("meeting.eb.room.detail").handler({ id: ref.id }, env);
479
479
  const main = detail?.data?.mainTable ?? detail?.data?.data?.mainTable ?? {};
480
480
  const name = String(main.room_name ?? "").trim() || ref.name || "";
@@ -586,7 +586,7 @@ async function shapeBrowserValues(env, values, options = {}) {
586
586
  const nameOnly = rows.filter((row) => row.id === "" && row.name !== "");
587
587
  if (nameOnly.length > 0) {
588
588
  try {
589
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
589
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
590
590
  const search = getMeetingOperation("meeting.eb.crm.search");
591
591
  for (const row of nameOnly) {
592
592
  const found = await search.handler({ keyword: row.name, limit: 5 }, env).catch(() => null);
@@ -787,7 +787,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
787
787
  const missing = [];
788
788
  if (entries.length > 0) {
789
789
  try {
790
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
790
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
791
791
  const search = getMeetingOperation("meeting.eb.crm.search");
792
792
  for (const entry of entries) {
793
793
  if (entry.contacts.length > 0) continue;
@@ -1046,8 +1046,8 @@ function shouldAutoPickFlow(args) {
1046
1046
  async function sendInvitationToGroup(env, groupId, filePath, warnings) {
1047
1047
  const started = Date.now();
1048
1048
  try {
1049
- const { buildImEnv } = await import("./group-chat-DOS4XWUN.js");
1050
- const { getImOperation } = await import("./registry-E5RQJVWN.js");
1049
+ const { buildImEnv } = await import("./group-chat-RFL4U7RF.js");
1050
+ const { getImOperation } = await import("./registry-AC33ZZVH.js");
1051
1051
  const imEnv = await buildImEnv(env);
1052
1052
  const prepared = await getImOperation("im.msg.send.group.prepare").handler(
1053
1053
  { groupId, file: filePath },
@@ -1171,7 +1171,7 @@ function needsCrmSelection(name, items) {
1171
1171
  async function buildCrmSelection(args, env) {
1172
1172
  const name = crmPendingNames(args.crm_members)[0];
1173
1173
  if (!name) return null;
1174
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
1174
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
1175
1175
  const search = getMeetingOperation("meeting.eb.crm.search");
1176
1176
  const found = await search.handler({ keyword: name, limit: 10 }, env).catch(() => null);
1177
1177
  const items = found?.data?.items ?? [];
@@ -1298,14 +1298,14 @@ var ebMeetingCreateFlowPrepare = {
1298
1298
  let entryResolved = "";
1299
1299
  const rawEntry = String(args.entryMode ?? "").trim();
1300
1300
  if (rawEntry === "assist" || rawEntry === "direct_form") {
1301
- const { verifyEntryToken } = await import("./entry-mode-C2WPJQJM.js");
1301
+ const { verifyEntryToken } = await import("./entry-mode-BCJ7RPFC.js");
1302
1302
  const tokenOk = await verifyEntryToken(env, String(args.entryToken ?? ""), rawEntry).catch(() => false);
1303
1303
  const decision = decideEntryMode({ declared: rawEntry, tokenOk });
1304
1304
  if (decision.mode) entryResolved = decision.mode;
1305
1305
  else env.__entryTokenMissing = 1;
1306
1306
  }
1307
1307
  if (!entryResolved && rawEntry === "") {
1308
- const { readEntryChoice } = await import("./entry-mode-C2WPJQJM.js");
1308
+ const { readEntryChoice } = await import("./entry-mode-BCJ7RPFC.js");
1309
1309
  const mark2 = await readEntryChoice(env).catch(() => null);
1310
1310
  if (mark2?.choice) entryResolved = mark2.choice;
1311
1311
  }
@@ -1317,7 +1317,7 @@ var ebMeetingCreateFlowPrepare = {
1317
1317
  }
1318
1318
  if (entryResolved === "direct_form") {
1319
1319
  env.__meetingTimings = { ...env.__meetingTimings, directDelegated: 1 };
1320
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
1320
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
1321
1321
  return getMeetingOperation("meeting.eb.meeting.create.formLink").handler(args, env);
1322
1322
  }
1323
1323
  const beginRaw = String(args.begin_datetime ?? "").trim();
@@ -1330,7 +1330,7 @@ var ebMeetingCreateFlowPrepare = {
1330
1330
  skipPreflight = true;
1331
1331
  }
1332
1332
  if (!entryResolved && args.skipPreflight !== true) {
1333
- const { createEntryToken } = await import("./entry-mode-C2WPJQJM.js");
1333
+ const { createEntryToken } = await import("./entry-mode-BCJ7RPFC.js");
1334
1334
  const tokenDirect = await createEntryToken(env, "direct_form");
1335
1335
  const tokenAssist = await createEntryToken(env, "assist");
1336
1336
  return meetingSuccess("meeting.eb.meeting.create.flow.prepare", {
@@ -1432,7 +1432,7 @@ var ebMeetingCreateFlowPrepare = {
1432
1432
  }
1433
1433
  }
1434
1434
  const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
1435
- const nameToId = nameLike.length > 0 ? await import("./schedule-XZ4UUX4E.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
1435
+ const nameToId = nameLike.length > 0 ? await import("./schedule-4QE2THAP.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
1436
1436
  const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
1437
1437
  if (memberIds.length > 0) {
1438
1438
  const callerToken2 = String(args.caller ?? "").trim();
@@ -1477,7 +1477,7 @@ var ebMeetingCreateFlowPrepare = {
1477
1477
  if (!skipPreflight && (!beginHasTime || !timeConfirmed)) {
1478
1478
  const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
1479
1479
  const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
1480
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
1480
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
1481
1481
  const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
1482
1482
  {
1483
1483
  dateFrom: day2,
@@ -1647,7 +1647,7 @@ var ebMeetingCreateFlowPrepare = {
1647
1647
  usageFromCache: usageData.fromCache
1648
1648
  };
1649
1649
  }
1650
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
1650
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
1651
1651
  const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
1652
1652
  { beginDatetime: beginText, endDatetime: endText, address: room.id },
1653
1653
  env
@@ -1655,7 +1655,7 @@ var ebMeetingCreateFlowPrepare = {
1655
1655
  return { room, ...result?.data ?? {} };
1656
1656
  })().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
1657
1657
  const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
1658
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
1658
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
1659
1659
  return getMeetingOperation("meeting.eb.conflict.member").handler(
1660
1660
  { beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
1661
1661
  env
@@ -2066,7 +2066,7 @@ var ebMeetingCreateFlowPrepare = {
2066
2066
  invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
2067
2067
  } else {
2068
2068
  try {
2069
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2069
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
2070
2070
  const publish = getMeetingOperation("meeting.invitation.publish");
2071
2071
  const renderExtra = {};
2072
2072
  if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
@@ -2388,7 +2388,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
2388
2388
  });
2389
2389
  };
2390
2390
  const readBack = async () => {
2391
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2391
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
2392
2392
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
2393
2393
  const read = await detail.handler({ id: String(meetingId).trim() }, env);
2394
2394
  return String(read?.data?.data?.crm_members ?? "").trim();
@@ -2415,7 +2415,7 @@ async function renderPreInvitation(payload, env) {
2415
2415
  const fields = payload?.invitationFields ?? {};
2416
2416
  const started = Date.now();
2417
2417
  try {
2418
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2418
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
2419
2419
  const render = getMeetingOperation("meeting.invitation.render");
2420
2420
  const rendered = await render.handler(
2421
2421
  {
@@ -2491,9 +2491,9 @@ var ebMeetingCreateFlowApply = {
2491
2491
  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");
2492
2492
  }
2493
2493
  const payload = lease?.payload ?? {};
2494
- const { createWorkflowHost } = await import("./host-2ED2KC4X.js");
2494
+ const { createWorkflowHost } = await import("./host-NVDG3NC6.js");
2495
2495
  const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
2496
- const { getWorkflowOperation } = await import("./registry-ABKBGGGK.js");
2496
+ const { getWorkflowOperation } = await import("./registry-Y2HWS6JS.js");
2497
2497
  const wfEnv = {
2498
2498
  ...workflowEnv(env),
2499
2499
  host: createWorkflowHost(env.ctx),
@@ -2543,7 +2543,7 @@ var ebMeetingCreateFlowApply = {
2543
2543
  const groupPayload2 = payload?.groupChat;
2544
2544
  if (groupPayload2) {
2545
2545
  try {
2546
- const { ensureMeetingGroupChat } = await import("./group-chat-DOS4XWUN.js");
2546
+ const { ensureMeetingGroupChat } = await import("./group-chat-RFL4U7RF.js");
2547
2547
  groupChat2 = {
2548
2548
  ...await ensureMeetingGroupChat(env, {
2549
2549
  meetingName: String(payload.mtName ?? ""),
@@ -2559,7 +2559,7 @@ var ebMeetingCreateFlowApply = {
2559
2559
  }
2560
2560
  if (groupChat2 && groupChat2.ok) {
2561
2561
  try {
2562
- const { savePendingForm } = await import("./group-chat-DOS4XWUN.js");
2562
+ const { savePendingForm } = await import("./group-chat-RFL4U7RF.js");
2563
2563
  await savePendingForm(env, {
2564
2564
  workflowId: String(payload.workflowId ?? ""),
2565
2565
  workflowName: String(payload.workflowName ?? ""),
@@ -2629,7 +2629,7 @@ var ebMeetingCreateFlowApply = {
2629
2629
  let meetingId = "";
2630
2630
  const timings = { submitMs: Date.now() - submitStartedAt };
2631
2631
  if (waitSeconds > 0) {
2632
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2632
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
2633
2633
  const list = getMeetingOperation("meeting.eb.meeting.list");
2634
2634
  const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
2635
2635
  const pollStart = Date.now();
@@ -2679,7 +2679,7 @@ var ebMeetingCreateFlowApply = {
2679
2679
  if (groupPayload) {
2680
2680
  const groupStart = Date.now();
2681
2681
  try {
2682
- const { ensureMeetingGroupChat } = await import("./group-chat-DOS4XWUN.js");
2682
+ const { ensureMeetingGroupChat } = await import("./group-chat-RFL4U7RF.js");
2683
2683
  const group = await ensureMeetingGroupChat(env, {
2684
2684
  meetingName: String(payload.mtName ?? ""),
2685
2685
  beginDatetime: String(groupPayload.beginDatetime ?? ""),
@@ -2711,7 +2711,7 @@ var ebMeetingCreateFlowApply = {
2711
2711
  if (meetingId) {
2712
2712
  const invitationStart = Date.now();
2713
2713
  try {
2714
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2714
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
2715
2715
  const render = getMeetingOperation("meeting.invitation.render");
2716
2716
  const rendered = await render.handler(
2717
2717
  {
@@ -2872,7 +2872,7 @@ var ebMeetingCreateFlowQuick = {
2872
2872
  ),
2873
2873
  handler: async (args, env) => {
2874
2874
  if (String(args.entryMode ?? "") === "direct_form" || args.skipPreflight === true && args.confirm !== true) {
2875
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XOUVCSV4.js");
2875
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-7US3QQXV.js");
2876
2876
  return getMeetingOperation2("meeting.eb.meeting.create.formLink").handler(args, env);
2877
2877
  }
2878
2878
  if (args.confirm !== true) {
@@ -2889,7 +2889,7 @@ var ebMeetingCreateFlowQuick = {
2889
2889
  `\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`
2890
2890
  );
2891
2891
  }
2892
- const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2892
+ const { getMeetingOperation } = await import("./registry-7US3QQXV.js");
2893
2893
  const prepareStartedAt = Date.now();
2894
2894
  const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
2895
2895
  const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
@@ -2988,7 +2988,7 @@ var ebMeetingCreateSuggest = {
2988
2988
  const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
2989
2989
  const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
2990
2990
  const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
2991
- const nameToId = nameLike.length > 0 ? await import("./schedule-XZ4UUX4E.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
2991
+ const nameToId = nameLike.length > 0 ? await import("./schedule-4QE2THAP.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
2992
2992
  const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
2993
2993
  const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
2994
2994
  const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
@@ -193,17 +193,28 @@ var employeeQuery = {
193
193
  action: "hrm.employee.query",
194
194
  summary: '\u6309\u5DE5\u53F7/\u59D3\u540D/\u624B\u673A/\u90AE\u7BB1\uFF08keyword \u81EA\u52A8\u63A8\u65AD\u6216\u663E\u5F0F\u5B57\u6BB5\uFF09\u67E5\u8BE2\u5458\u5DE5\uFF1B\u9ED8\u8BA4\u5728\u804C\uFF0Cstatus \u4F20 ["6"] \u67E5\u79BB\u804C\uFF1B\u9ED8\u8BA4\u6BCF\u884C\u53EA\u56DE\u4EBA\u5458\u4FE1\u606F',
195
195
  risk: READ,
196
- inputSchema: schemaOf({
197
- keyword: { type: "string", description: "\u67E5\u8BE2\u5173\u952E\u8BCD\uFF0C\u81EA\u52A8\u63A8\u65AD\uFF1A\u542B @\u2192\u90AE\u7BB1\uFF1B11 \u4F4D\u7EAF\u6570\u5B57\u2192\u624B\u673A\uFF1B\u7EAF\u6570\u5B57\u6216\u5B57\u6BCD\u5F00\u5934\u542B\u6570\u5B57\u2192\u5DE5\u53F7\uFF1B\u5176\u4F59\u2192\u59D3\u540D\uFF08\u6A21\u7CCA\uFF09" },
198
- username: { type: "string", description: "\u59D3\u540D\uFF08\u6A21\u7CCA\u5339\u914D\uFF09" },
199
- job_num: { type: "string", description: "\u5DE5\u53F7\uFF08\u6A21\u7CCA\u5339\u914D\uFF09" },
200
- mobile: { type: "string", description: "\u624B\u673A\u53F7\uFF08\u6A21\u7CCA\u5339\u914D\uFF09" },
201
- email: { type: "string", description: "\u90AE\u7BB1\uFF08\u6A21\u7CCA\u5339\u914D\uFF09" },
202
- status: { type: "array", items: { type: "string", enum: [...EMPLOYEE_STATUS] }, description: '\u9ED8\u8BA4 ["normal"] \u5728\u804C\uFF1B["6"] \u79BB\u804C\u3002\u4E0D\u80FD\u5355\u72EC\u4F5C\u4E3A\u6536\u655B\u6761\u4EF6' },
203
- full: { type: "boolean", description: "\u9ED8\u8BA4 false\uFF1A\u6BCF\u884C\u53EA\u56DE\u4EBA\u5458\u4FE1\u606F\uFF08id/name/department/position/statusCode/link\uFF09\uFF1Btrue\uFF1A\u56DE\u5B8C\u6574\u884C\uFF08\u53E6\u542B userid/cid/mobile/departmentId/deptLink\uFF09" },
204
- all: { type: "boolean", description: "true = \u81EA\u52A8\u7FFB\u9875\u62C9\u5168\u91CF\uFF08\u6700\u591A 50 \u9875\uFF09\uFF1B\u7ED3\u679C\u591A\u65F6\u5EFA\u8BAE\u76F4\u63A5\u4F20\uFF0C\u907F\u514D\u53EA\u62FF\u5230\u7B2C\u4E00\u9875" },
205
- ...SCHEMA_PAGE
206
- }),
196
+ inputSchema: {
197
+ ...schemaOf({
198
+ keyword: { type: "string", description: "\u67E5\u8BE2\u5173\u952E\u8BCD\uFF0C\u81EA\u52A8\u63A8\u65AD\uFF1A\u542B @\u2192\u90AE\u7BB1\uFF1B11 \u4F4D\u7EAF\u6570\u5B57\u2192\u624B\u673A\uFF1B\u7EAF\u6570\u5B57\u6216\u5B57\u6BCD\u5F00\u5934\u542B\u6570\u5B57\u2192\u5DE5\u53F7\uFF1B\u5176\u4F59\u2192\u59D3\u540D\uFF08\u6A21\u7CCA\uFF09" },
199
+ username: { type: "string", description: "\u59D3\u540D\uFF08\u6A21\u7CCA\u5339\u914D\uFF09" },
200
+ job_num: { type: "string", description: "\u5DE5\u53F7\uFF08\u6A21\u7CCA\u5339\u914D\uFF09" },
201
+ mobile: { type: "string", description: "\u624B\u673A\u53F7\uFF08\u6A21\u7CCA\u5339\u914D\uFF09" },
202
+ email: { type: "string", description: "\u90AE\u7BB1\uFF08\u6A21\u7CCA\u5339\u914D\uFF09" },
203
+ status: { type: "array", items: { type: "string", enum: [...EMPLOYEE_STATUS] }, description: '\u9ED8\u8BA4 ["normal"] \u5728\u804C\uFF1B["6"] \u79BB\u804C\u3002\u4E0D\u80FD\u5355\u72EC\u4F5C\u4E3A\u6536\u655B\u6761\u4EF6' },
204
+ full: { type: "boolean", description: "\u9ED8\u8BA4 false\uFF1A\u6BCF\u884C\u53EA\u56DE\u4EBA\u5458\u4FE1\u606F\uFF08id/name/department/position/statusCode/link\uFF09\uFF1Btrue\uFF1A\u56DE\u5B8C\u6574\u884C\uFF08\u53E6\u542B userid/cid/mobile/departmentId/deptLink\uFF09" },
205
+ all: { type: "boolean", description: "true = \u81EA\u52A8\u7FFB\u9875\u62C9\u5168\u91CF\uFF08\u6700\u591A 50 \u9875\uFF09\uFF1B\u7ED3\u679C\u591A\u65F6\u5EFA\u8BAE\u76F4\u63A5\u4F20\uFF0C\u907F\u514D\u53EA\u62FF\u5230\u7B2C\u4E00\u9875" },
206
+ ...SCHEMA_PAGE
207
+ }),
208
+ anyOf: [
209
+ { required: ["keyword"] },
210
+ { required: ["username"] },
211
+ { required: ["job_num"] },
212
+ { required: ["mobile"] },
213
+ { required: ["email"] },
214
+ // all:true 是「无收敛条件拉全员」的显式开关(见 resolveEmployeeCondition),all:false 不算条件
215
+ { required: ["all"], properties: { all: { const: true } } }
216
+ ]
217
+ },
207
218
  handler: async (args, { host }) => {
208
219
  const { field, value } = resolveEmployeeCondition(args);
209
220
  const status = Array.isArray(args.status) && args.status.length > 0 ? args.status : ["normal"];
@@ -11,13 +11,13 @@ import {
11
11
  createE10RequestRuntime,
12
12
  isE10SessionExpiredResponse,
13
13
  requireE10Session
14
- } from "./chunk-FJUOUSV3.js";
14
+ } from "./chunk-LRKKKO5A.js";
15
15
  import {
16
16
  E10_SESSION_EXPIRED_MESSAGE
17
- } from "./chunk-TJN4PIYO.js";
17
+ } from "./chunk-GTAFCAVP.js";
18
18
  import {
19
19
  getActiveProfile
20
- } from "./chunk-FDBAFANU.js";
20
+ } from "./chunk-I5XB4MZT.js";
21
21
 
22
22
  // src/shortcuts/im/host.ts
23
23
  import { createHash } from "node:crypto";
@@ -5,7 +5,7 @@ import {
5
5
  CAIZHILAN_TRANSFER_TIMEOUT_MS,
6
6
  caizhilianBusinessMessage,
7
7
  isCaizhilianBusinessSuccess
8
- } from "./chunk-6T5X6YWX.js";
8
+ } from "./chunk-U3OO3IZF.js";
9
9
  import {
10
10
  CaizhilianCliError,
11
11
  caizhilianAuthError,
@@ -11,13 +11,13 @@ import {
11
11
  createE10RequestRuntime,
12
12
  isE10SessionExpiredResponse,
13
13
  requireE10Session
14
- } from "./chunk-FJUOUSV3.js";
14
+ } from "./chunk-LRKKKO5A.js";
15
15
  import {
16
16
  E10_SESSION_EXPIRED_MESSAGE
17
- } from "./chunk-TJN4PIYO.js";
17
+ } from "./chunk-GTAFCAVP.js";
18
18
  import {
19
19
  getActiveProfile
20
- } from "./chunk-FDBAFANU.js";
20
+ } from "./chunk-I5XB4MZT.js";
21
21
 
22
22
  // src/shortcuts/caizhilian/host.ts
23
23
  var CAIZHILAN_TIMEOUT_MS = 12e3;
@@ -14,13 +14,13 @@ import {
14
14
  createE10RequestRuntime,
15
15
  isE10SessionExpiredResponse,
16
16
  requireE10Session
17
- } from "./chunk-FJUOUSV3.js";
17
+ } from "./chunk-LRKKKO5A.js";
18
18
  import {
19
19
  E10_SESSION_EXPIRED_MESSAGE
20
- } from "./chunk-TJN4PIYO.js";
20
+ } from "./chunk-GTAFCAVP.js";
21
21
  import {
22
22
  getActiveProfile
23
- } from "./chunk-FDBAFANU.js";
23
+ } from "./chunk-I5XB4MZT.js";
24
24
 
25
25
  // src/shortcuts/esb/host.ts
26
26
  var ESB_PATHS = {
@@ -15,18 +15,18 @@ import {
15
15
  refMaxCount,
16
16
  resolveRefInput,
17
17
  resultThresholdChars
18
- } from "./chunk-4WCVRDC5.js";
18
+ } from "./chunk-HG6INLH6.js";
19
19
  import {
20
20
  refsDir
21
21
  } from "./chunk-AJ62BGAW.js";
22
22
  import {
23
23
  Command,
24
24
  clearInvoiceTokenForSession
25
- } from "./chunk-WSHIOSGM.js";
25
+ } from "./chunk-H2NRTGZR.js";
26
26
  import {
27
27
  shouldReportPlatformError,
28
28
  toPlatformError
29
- } from "./chunk-6N4JPNFL.js";
29
+ } from "./chunk-MD5CW4B6.js";
30
30
  import {
31
31
  appendXiaoEAuthErrorLog,
32
32
  clearXiaoEAuthErrorLog,
@@ -34,7 +34,7 @@ import {
34
34
  normalizeXiaoEAuthErrorLogLimit,
35
35
  readXiaoEAuthErrorLog,
36
36
  xiaoEAuthLogSecrets
37
- } from "./chunk-FJUOUSV3.js";
37
+ } from "./chunk-LRKKKO5A.js";
38
38
  import {
39
39
  E10AuthSession,
40
40
  XIAOE_AGENT_TYPE,
@@ -70,7 +70,7 @@ import {
70
70
  switchActiveProfile,
71
71
  tryXiaoEUnifiedLogin,
72
72
  upsertAgentHost
73
- } from "./chunk-FDBAFANU.js";
73
+ } from "./chunk-I5XB4MZT.js";
74
74
  import {
75
75
  CliError,
76
76
  isCliError,
@@ -1145,12 +1145,23 @@ function formatWhoami(title, data) {
1145
1145
  "User-Agent: " + (data.userAgent || "")
1146
1146
  ].join("\n");
1147
1147
  }
1148
+ function formatTlsPolicy(tls) {
1149
+ return [
1150
+ `mode=${tls.mode}`,
1151
+ `applied=${tls.applied}`,
1152
+ ...tls.caFiles.length ? [`caFiles=${tls.caFiles.join(",")}`] : [],
1153
+ ...tls.notAppliedReason ? [`notAppliedReason=${tls.notAppliedReason}`] : [],
1154
+ ...tls.insecureSource ? [`insecureSource=${tls.insecureSource}`] : [],
1155
+ ...tls.error ? [`error=${tls.error}`] : []
1156
+ ].join(" ");
1157
+ }
1148
1158
  function formatXiaoEAuthErrorLogEntry(entry) {
1149
1159
  const lines = [
1150
1160
  `[${entry.timestamp}] ${entry.source} id=${entry.id}`,
1151
1161
  ...entry.profile ? [`profile: ${entry.profile}`] : [],
1152
1162
  ...entry.baseUrl ? [`baseUrl: ${entry.baseUrl}`] : [],
1153
1163
  ...entry.clientType ? [`clientType: ${entry.clientType}`] : [],
1164
+ ...entry.tls ? [`tls: ${formatTlsPolicy(entry.tls)}`] : [],
1154
1165
  ...entry.attemptedSteps.length ? [`attemptedSteps: ${entry.attemptedSteps.join(", ")}`] : [],
1155
1166
  ...entry.lastError ? [`lastError: ${entry.lastError}`] : [],
1156
1167
  ...entry.resultSessionExpired ? ["resultSessionExpired: true"] : [],
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-WMRNO6IU.js";
6
6
  import {
7
7
  meetingStateDir
8
- } from "./chunk-R6GGDZ2C.js";
8
+ } from "./chunk-4XYRTXRR.js";
9
9
  import {
10
10
  SCHEMA_ID,
11
11
  meetingSuccess,
12
12
  meetingValidationError,
13
13
  schemaOf
14
- } from "./chunk-XARLZK6C.js";
14
+ } from "./chunk-3TZURS7M.js";
15
15
 
16
16
  // src/shortcuts/meeting/operations/attachment-content.ts
17
17
  import { mkdir, writeFile } from "node:fs/promises";
@@ -203,13 +203,16 @@ var attachmentList = {
203
203
  summary: "\u67E5\u8BE2\u4F1A\u8BAE/\u8BAE\u9898\u7684\u9644\u4EF6\u6E05\u5355\uFF08\u8FD4\u56DE fileId\uFF09\uFF1A\u4F1A\u8BAE\u9644\u4EF6 mt_accessorys\u3001\u9879\u76EE\u6587\u4EF6 project_files\u3001\u8BAE\u9898\u8D44\u6599 related_materials\uFF1B\u76F4\u63A5\u8BFB EB \u8BE6\u60C5\u539F\u59CB\u503C\uFF0C\u4E0D\u7ECF\u6458\u8981\u5C42",
204
204
  capability: "attachment",
205
205
  risk: "read",
206
- inputSchema: schemaOf(
207
- {
208
- mtId: { ...SCHEMA_ID, description: "\u4F1A\u8BAE id\uFF08\u67E5\u4F1A\u8BAE\u9644\u4EF6\u65F6\u5FC5\u586B\uFF0C\u4E0E topicId \u4E8C\u9009\u4E00\uFF09" },
209
- topicId: { ...SCHEMA_ID, description: "\u8BAE\u9898 id\uFF08\u67E5\u8BAE\u9898\u8D44\u6599\u65F6\u7528\uFF09" }
210
- },
211
- { required: [] }
212
- ),
206
+ inputSchema: {
207
+ ...schemaOf(
208
+ {
209
+ mtId: { ...SCHEMA_ID, description: "\u4F1A\u8BAE id\uFF08\u67E5\u4F1A\u8BAE\u9644\u4EF6\u65F6\u5FC5\u586B\uFF0C\u4E0E topicId \u4E8C\u9009\u4E00\uFF09" },
210
+ topicId: { ...SCHEMA_ID, description: "\u8BAE\u9898 id\uFF08\u67E5\u8BAE\u9898\u8D44\u6599\u65F6\u7528\uFF09" }
211
+ },
212
+ { required: [] }
213
+ ),
214
+ anyOf: [{ required: ["mtId"] }, { required: ["topicId"] }]
215
+ },
213
216
  handler: async (args, env) => {
214
217
  const mtId = String(args.mtId ?? "").trim();
215
218
  const topicId = String(args.topicId ?? "").trim();
@@ -245,15 +248,18 @@ var attachmentDownload = {
245
248
  summary: "\u6309 fileId \u4E0B\u8F7D\u9644\u4EF6\u5230\u672C\u5730\uFF08\u9ED8\u8BA4 ~/.weaver-work-cli/meeting/attachments/\uFF09\uFF1B\u4E5F\u53EF\u4F20 mtId \u4E00\u6B21\u4E0B\u8F7D\u8BE5\u4F1A\u8BAE\u5168\u90E8\u9644\u4EF6",
246
249
  capability: "attachment",
247
250
  risk: "read",
248
- inputSchema: schemaOf(
249
- {
250
- fileId: { ...SCHEMA_ID, description: "\u6587\u4EF6 id\uFF08\u4E0E mtId \u4E8C\u9009\u4E00\uFF09" },
251
- mtId: { ...SCHEMA_ID, description: "\u4F1A\u8BAE id\uFF1A\u4E00\u6B21\u4E0B\u8F7D\u8BE5\u4F1A\u8BAE\u5168\u90E8\u9644\u4EF6\u4E0E\u9879\u76EE\u6587\u4EF6" },
252
- outDir: { type: "string", description: "\u843D\u5730\u76EE\u5F55\uFF08\u9ED8\u8BA4 <state>/meeting/attachments\uFF09" },
253
- fileName: { type: "string", description: "\u6307\u5B9A\u6587\u4EF6\u540D\uFF08\u4EC5\u5355\u6587\u4EF6\u65F6\u751F\u6548\uFF09" }
254
- },
255
- { required: [] }
256
- ),
251
+ inputSchema: {
252
+ ...schemaOf(
253
+ {
254
+ fileId: { ...SCHEMA_ID, description: "\u6587\u4EF6 id\uFF08\u4E0E mtId \u4E8C\u9009\u4E00\uFF09" },
255
+ mtId: { ...SCHEMA_ID, description: "\u4F1A\u8BAE id\uFF1A\u4E00\u6B21\u4E0B\u8F7D\u8BE5\u4F1A\u8BAE\u5168\u90E8\u9644\u4EF6\u4E0E\u9879\u76EE\u6587\u4EF6" },
256
+ outDir: { type: "string", description: "\u843D\u5730\u76EE\u5F55\uFF08\u9ED8\u8BA4 <state>/meeting/attachments\uFF09" },
257
+ fileName: { type: "string", description: "\u6307\u5B9A\u6587\u4EF6\u540D\uFF08\u4EC5\u5355\u6587\u4EF6\u65F6\u751F\u6548\uFF09" }
258
+ },
259
+ { required: [] }
260
+ ),
261
+ anyOf: [{ required: ["fileId"] }, { required: ["mtId"] }]
262
+ },
257
263
  handler: async (args, env) => {
258
264
  const fileId = String(args.fileId ?? "").trim();
259
265
  const mtId = String(args.mtId ?? "").trim();
@@ -297,15 +303,18 @@ var attachmentExtract = {
297
303
  summary: "\u4E0B\u8F7D\u9644\u4EF6\u5E76\u62BD\u53D6\u7EAF\u6587\u672C\uFF08txt/md/csv/json/docx/xlsx/pptx\uFF09\uFF0C\u8FD4\u56DE\u6B63\u6587\u4E0E txt \u843D\u5730\u8DEF\u5F84\uFF1Bpdf/\u56FE\u7247\u7B49\u4E0D\u652F\u6301\u683C\u5F0F\u4F1A\u660E\u786E\u6807\u6CE8\uFF0C\u4E0D\u7F16\u9020\u5185\u5BB9",
298
304
  capability: "attachment",
299
305
  risk: "read",
300
- inputSchema: schemaOf(
301
- {
302
- fileId: { ...SCHEMA_ID, description: "\u6587\u4EF6 id\uFF08\u4E0E mtId \u4E8C\u9009\u4E00\uFF09" },
303
- mtId: { ...SCHEMA_ID, description: "\u4F1A\u8BAE id\uFF1A\u62BD\u53D6\u8BE5\u4F1A\u8BAE\u5168\u90E8\u9644\u4EF6\uFF08\u6700\u591A 10 \u4E2A\uFF09" },
304
- maxChars: { type: "number", description: "\u6BCF\u4E2A\u6587\u4EF6\u8FD4\u56DE\u6B63\u6587\u7684\u6700\u5927\u5B57\u7B26\u6570\uFF08\u9ED8\u8BA4 4000\uFF0C\u6700\u591A 20000\uFF09" },
305
- outDir: { type: "string", description: "\u843D\u5730\u76EE\u5F55\uFF08\u9ED8\u8BA4 <state>/meeting/attachments\uFF09" }
306
- },
307
- { required: [] }
308
- ),
306
+ inputSchema: {
307
+ ...schemaOf(
308
+ {
309
+ fileId: { ...SCHEMA_ID, description: "\u6587\u4EF6 id\uFF08\u4E0E mtId \u4E8C\u9009\u4E00\uFF09" },
310
+ mtId: { ...SCHEMA_ID, description: "\u4F1A\u8BAE id\uFF1A\u62BD\u53D6\u8BE5\u4F1A\u8BAE\u5168\u90E8\u9644\u4EF6\uFF08\u6700\u591A 10 \u4E2A\uFF09" },
311
+ maxChars: { type: "number", description: "\u6BCF\u4E2A\u6587\u4EF6\u8FD4\u56DE\u6B63\u6587\u7684\u6700\u5927\u5B57\u7B26\u6570\uFF08\u9ED8\u8BA4 4000\uFF0C\u6700\u591A 20000\uFF09" },
312
+ outDir: { type: "string", description: "\u843D\u5730\u76EE\u5F55\uFF08\u9ED8\u8BA4 <state>/meeting/attachments\uFF09" }
313
+ },
314
+ { required: [] }
315
+ ),
316
+ anyOf: [{ required: ["fileId"] }, { required: ["mtId"] }]
317
+ },
309
318
  handler: async (args, env) => {
310
319
  const fileId = String(args.fileId ?? "").trim();
311
320
  const mtId = String(args.mtId ?? "").trim();
@@ -7,8 +7,8 @@ import {
7
7
  findCommonFreeSlots,
8
8
  meetingEbConflictOperations,
9
9
  runEbConflictCheck
10
- } from "./chunk-DTJZOAO6.js";
11
- import "./chunk-XARLZK6C.js";
10
+ } from "./chunk-ELF5TPSG.js";
11
+ import "./chunk-3TZURS7M.js";
12
12
  import "./chunk-7BDPM5ST.js";
13
13
  import "./chunk-UG5G54VL.js";
14
14
  import "./chunk-BUSC6UAE.js";