weaver-work-cli 0.1.68 → 0.1.70

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 (165) hide show
  1. package/dist/chunks/{archive-SJTC5265.js → archive-VUTREF3P.js} +4 -4
  2. package/dist/chunks/{archive-oa-PN46RTI2.js → archive-oa-VXXO4RTB.js} +4 -4
  3. package/dist/chunks/{asset-XM3Y4FVU.js → asset-45U6TY7I.js} +32 -5
  4. package/dist/chunks/{asset-idle-DHGP3NYY.js → asset-idle-YCRBMTIT.js} +4 -4
  5. package/dist/chunks/{attachment-content-IXIBOET6.js → attachment-content-DMU7KNZ7.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-6OK4LW76.js → chunk-4W6BSNIL.js} +6 -6
  10. package/dist/chunks/{chunk-3W5NMGDS.js → chunk-727VKJQK.js} +2 -2
  11. package/dist/chunks/{chunk-QHKY4WZA.js → chunk-7CINV2BU.js} +2 -2
  12. package/dist/chunks/{chunk-26FCCU5O.js → chunk-DSBV4GRK.js} +3 -3
  13. package/dist/chunks/{chunk-HWA2A25Y.js → chunk-E7VWE2XI.js} +3 -3
  14. package/dist/chunks/{chunk-C5IIIT4D.js → chunk-EHH363SP.js} +4 -4
  15. package/dist/chunks/{chunk-LXXR2RRE.js → chunk-GFOFUH6O.js} +50 -50
  16. package/dist/chunks/{chunk-TJN4PIYO.js → chunk-GTAFCAVP.js} +2 -0
  17. package/dist/chunks/{chunk-O7KPHPXQ.js → chunk-GWM5TLIK.js} +34 -34
  18. package/dist/chunks/{chunk-WSHIOSGM.js → chunk-H2NRTGZR.js} +3 -3
  19. package/dist/chunks/{chunk-YSEHTSHS.js → chunk-HAORST2G.js} +11 -11
  20. package/dist/chunks/{chunk-4WCVRDC5.js → chunk-HG6INLH6.js} +13 -0
  21. package/dist/chunks/{chunk-FDBAFANU.js → chunk-I5XB4MZT.js} +227 -23
  22. package/dist/chunks/{chunk-BJNSTCJK.js → chunk-IVCOZCAW.js} +1 -1
  23. package/dist/chunks/{chunk-Y7RGBRLG.js → chunk-KDOJW5LH.js} +1 -1
  24. package/dist/chunks/{chunk-QO6JYDIW.js → chunk-L2A3COWV.js} +4 -4
  25. package/dist/chunks/{chunk-X7ZTM4XG.js → chunk-LJE7RZNC.js} +1 -1
  26. package/dist/chunks/{chunk-FJUOUSV3.js → chunk-LRKKKO5A.js} +36 -9
  27. package/dist/chunks/{chunk-HLT6B26P.js → chunk-LSVA7QA6.js} +1 -1
  28. package/dist/chunks/{chunk-6N4JPNFL.js → chunk-MD5CW4B6.js} +1 -1
  29. package/dist/chunks/{chunk-Q6D6PSMH.js → chunk-QYDSTYGG.js} +3 -3
  30. package/dist/chunks/{chunk-AFZTMYGC.js → chunk-T24EBWAZ.js} +1 -1
  31. package/dist/chunks/{chunk-6T5X6YWX.js → chunk-U3OO3IZF.js} +3 -3
  32. package/dist/chunks/{chunk-VLY5RTVO.js → chunk-UVWW5ABZ.js} +3 -3
  33. package/dist/chunks/{chunk-NP3ZZFGI.js → chunk-VZUH3LKI.js} +16 -5
  34. package/dist/chunks/{chunk-OKUJY5YB.js → chunk-X6PMJQGO.js} +64 -21
  35. package/dist/chunks/{chunk-3NJQTG6X.js → chunk-XIBMZEDB.js} +2 -2
  36. package/dist/chunks/{conflict-CEXRX2KP.js → conflict-YW5BULJ3.js} +2 -2
  37. package/dist/chunks/{contract-PM3EUPZC.js → contract-3PMHUASH.js} +164 -5
  38. package/dist/chunks/{cowork-34CBYVQP.js → cowork-FZBTTBYX.js} +4 -4
  39. package/dist/chunks/{create-flow-DG6D7U2L.js → create-flow-5OBS3B3V.js} +6 -6
  40. package/dist/chunks/{data-3G4GQS5P.js → data-2YZ6A6TL.js} +19 -4
  41. package/dist/chunks/{ebuilder-form-5ENYH7IF.js → ebuilder-form-AWPTMZBZ.js} +5 -5
  42. package/dist/chunks/{ehr-2CONM7R6.js → ehr-MNPR4TE5.js} +4 -4
  43. package/dist/chunks/{entry-mode-KMP66KHE.js → entry-mode-L65OWPFM.js} +3 -3
  44. package/dist/chunks/{env-SW6CTETI.js → env-XW7LYIME.js} +2 -2
  45. package/dist/chunks/{esb-FQASCY2H.js → esb-GSB5QCEX.js} +6 -6
  46. package/dist/chunks/{factory-ETQAICPA.js → factory-MHFZZAGH.js} +1 -1
  47. package/dist/chunks/{fna-FCLVIWAS.js → fna-XBSNUS2V.js} +4 -4
  48. package/dist/chunks/{group-chat-GTYMCBYS.js → group-chat-EEOLO5NM.js} +3 -3
  49. package/dist/chunks/{host-P7G22WNM.js → host-2UMNXX5H.js} +4 -4
  50. package/dist/chunks/{host-XLCBLNJD.js → host-BD44ASOD.js} +4 -4
  51. package/dist/chunks/{host-2ED2KC4X.js → host-NVDG3NC6.js} +4 -4
  52. package/dist/chunks/{host-46NYKDQP.js → host-R7BP3CTI.js} +4 -4
  53. package/dist/chunks/{host-7IPZKIM4.js → host-SYPCA63D.js} +4 -4
  54. package/dist/chunks/{host-2UYZEY2V.js → host-XVWBOSEN.js} +4 -4
  55. package/dist/chunks/{hrm-5WSMSKPX.js → hrm-FZUDJAND.js} +17 -11
  56. package/dist/chunks/{im-P7GNBRG6.js → im-F5NENPD7.js} +4 -4
  57. package/dist/chunks/{invoice-2QCVNXBG.js → invoice-DS6FLU55.js} +42 -6
  58. package/dist/chunks/{jiuchuanhui-FHGFYAHU.js → jiuchuanhui-JCBUR563.js} +1332 -1037
  59. package/dist/chunks/{lazy-dispatch-K25LTKQY.js → lazy-dispatch-F6O2EPGR.js} +7 -7
  60. package/dist/chunks/{mail-P7VMUKQW.js → mail-ZEOSANEJ.js} +4 -4
  61. package/dist/chunks/{meeting-3PTTPUSG.js → meeting-PCD5EPBF.js} +15 -15
  62. package/dist/chunks/{minute-doc-3IMRJDJV.js → minute-doc-WTZJVCHG.js} +4 -4
  63. package/dist/chunks/{okr-OIWJRYWY.js → okr-OZUMTMCL.js} +4 -4
  64. package/dist/chunks/{operations-MI2BSKZX.js → operations-UTUWFJTX.js} +5 -5
  65. package/dist/chunks/{performance-OPEQNW7Y.js → performance-SMVTPK6T.js} +8 -7
  66. package/dist/chunks/{plan-TJAS4N5X.js → plan-C2NENH42.js} +4 -4
  67. package/dist/chunks/{project-CYBGU6K6.js → project-FAJ2P3UR.js} +4 -4
  68. package/dist/chunks/{reception-2VSWJQ5N.js → reception-NH6MJFPR.js} +16 -8
  69. package/dist/chunks/{recruit-stage-KHJYQE3I.js → recruit-stage-DPEFHLSE.js} +3 -3
  70. package/dist/chunks/{registry-FXBOGH2X.js → registry-3B3OAJYX.js} +4 -4
  71. package/dist/chunks/{registry-QRMXRSCT.js → registry-FTPUUHWC.js} +5 -5
  72. package/dist/chunks/{registry-PHPYTXS4.js → registry-ZQ7OONCB.js} +12 -12
  73. package/dist/chunks/{room-recommend-BKCPAXQG.js → room-recommend-73NBN3RU.js} +4 -4
  74. package/dist/chunks/{schedule-Q3MPSZV6.js → schedule-SDBOBBUQ.js} +4 -4
  75. package/dist/chunks/{smart-extract-TYYKC244.js → smart-extract-GTYKF5TJ.js} +4 -4
  76. package/dist/chunks/{workflow-GEDHALMY.js → workflow-OWHWLAOX.js} +81 -12
  77. package/dist/core/error-codes.js +1 -1
  78. package/dist/core/host-policy.js +56 -0
  79. package/dist/core/timing.js +227 -0
  80. package/dist/index.js +39 -36
  81. package/dist/internal/e10/auth/commands.js +11 -0
  82. package/dist/internal/e10/auth/error-log.js +13 -0
  83. package/dist/internal/e10/auth/messages.js +10 -0
  84. package/dist/internal/e10/auth/xiaoe.js +12 -2
  85. package/dist/internal/e10/context.js +39 -12
  86. package/dist/internal/e10/network-error.js +28 -0
  87. package/dist/internal/e10/tls-policy.js +260 -0
  88. package/dist/shortcuts/asset/manifest.js +34 -1
  89. package/dist/shortcuts/contract/manifest.js +166 -1
  90. package/dist/shortcuts/data/manifest.js +32 -1
  91. package/dist/shortcuts/hrm/index.js +20 -7
  92. package/dist/shortcuts/invoice/manifest.js +43 -1
  93. package/dist/shortcuts/jiuchuanhui/cache.js +49 -35
  94. package/dist/shortcuts/jiuchuanhui/host.js +109 -5
  95. package/dist/shortcuts/jiuchuanhui/index.js +43 -7
  96. package/dist/shortcuts/jiuchuanhui/manifest.js +138 -2
  97. package/dist/shortcuts/jiuchuanhui/operations/customer-quick.js +110 -0
  98. package/dist/shortcuts/jiuchuanhui/operations/datajson.js +11 -56
  99. package/dist/shortcuts/jiuchuanhui/operations/esb.js +9 -16
  100. package/dist/shortcuts/jiuchuanhui/operations/generic.js +8 -30
  101. package/dist/shortcuts/jiuchuanhui/operations/registry.js +8 -2
  102. package/dist/shortcuts/jiuchuanhui/operations/shared.js +0 -10
  103. package/dist/shortcuts/performance/operations/flow-detail.js +5 -4
  104. package/dist/shortcuts/reception/host.js +19 -5
  105. package/dist/shortcuts/workflow/index.js +55 -5
  106. package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +5 -2
  107. package/dist/shortcuts/workflow/operations/read.js +12 -2
  108. package/dist/shortcuts/workflow/operations/types.js +7 -1
  109. package/dist/shortcuts/workflow/operations/write.js +20 -2
  110. package/dist/shortcuts/workflow/operations.js +19 -1
  111. package/docs/e10-auth.md +48 -1
  112. package/docs/jiuchuanhui.md +17 -5
  113. package/package.json +1 -1
  114. package/scripts/xiaoe_env.py +18 -3
  115. package/skills/weaver-e10-asset-idle/SKILL.md +1 -1
  116. package/skills/weaver-e10-blog/SKILL.md +2 -2
  117. package/skills/weaver-e10-calendar/SKILL.md +1 -1
  118. package/skills/weaver-e10-data/SKILL.md +1 -1
  119. package/skills/weaver-e10-esb/SKILL.md +1 -1
  120. package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
  121. package/skills/weaver-e10-hrm/SKILL.md +1 -1
  122. package/skills/weaver-e10-jiuchuanhui/SKILL.md +49 -90
  123. package/skills/weaver-e10-jiuchuanhui/references/cache.md +17 -13
  124. package/skills/weaver-e10-jiuchuanhui/references/customer.md +33 -4
  125. package/skills/weaver-e10-jiuchuanhui/references/discovery-config.md +3 -3
  126. package/skills/weaver-e10-jiuchuanhui/references/jiuchuanhui-entry.md +9 -7
  127. package/skills/weaver-e10-jucailin/SKILL.md +84 -17
  128. package/skills/weaver-e10-jucailin/agents/openai.yaml +2 -1
  129. package/skills/weaver-e10-jucailin/references/recruit-create.md +7 -8
  130. package/skills/weaver-e10-jucailin/references/recruit-implement-INDEX.md +41 -0
  131. package/skills/weaver-e10-jucailin/references/recruit-implement-consult-sop.md +77 -0
  132. package/skills/weaver-e10-jucailin/references/recruit-implement-guardrails.md +41 -0
  133. package/skills/weaver-e10-jucailin/references/recruit-implement-kb-data-update-channels.md +31 -0
  134. package/skills/weaver-e10-jucailin/references/recruit-implement-kb-form-external.md +43 -0
  135. package/skills/weaver-e10-jucailin/references/recruit-implement-kb-talent-base-form.md +32 -0
  136. package/skills/weaver-e10-jucailin/references/recruit-implement-pattern-external-collect-update-talent.md +93 -0
  137. package/skills/weaver-e10-jucailin/references/recruit-implement-pattern-external-share-edit.md +64 -0
  138. package/skills/weaver-e10-jucailin/references/recruit-read.md +1 -1
  139. package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +1 -1
  140. package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -11
  141. package/skills/weaver-e10-jucailin/references/safety-boundaries.md +3 -3
  142. package/skills/weaver-e10-mail/SKILL.md +52 -10
  143. package/skills/weaver-e10-mail/references/mail-agent-entry.md +1 -2
  144. package/skills/weaver-e10-meeting/SKILL.md +1 -1
  145. package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
  146. package/skills/weaver-e10-okr/SKILL.md +1 -1
  147. package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
  148. package/skills/weaver-e10-performance/SKILL.md +2 -2
  149. package/skills/weaver-e10-performance/agents/openai.yaml +4 -2
  150. package/skills/weaver-e10-performance/references/flow-assess.md +19 -6
  151. package/skills/weaver-e10-plan/SKILL.md +2 -2
  152. package/skills/weaver-e10-plan/references/source-manifest.json +3 -3
  153. package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
  154. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +3 -3
  155. package/skills/weaver-e10-reception-flow/SKILL.md +53 -16
  156. package/skills/weaver-e10-shared/SKILL.md +4 -9
  157. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +2 -2
  158. package/skills/weaver-e10-shijingran/SKILL.md +14 -6
  159. package/skills/weaver-e10-shijingran/references/source-manifest.json +5 -4
  160. package/skills/weaver-e10-workflow/SKILL.md +2 -2
  161. package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
  162. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +1 -2
  163. package/skills/weaver-e10-workflow/references/workflow-deep-read.md +8 -3
  164. package/skills/weaver-e10-ziguanjia/SKILL.md +1 -1
  165. 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-6OK4LW76.js";
6
+ } from "./chunk-4W6BSNIL.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-C5IIIT4D.js";
15
+ } from "./chunk-EHH363SP.js";
16
16
  import {
17
17
  cacheScopeSuffix,
18
18
  readCache,
19
19
  writeCache
20
- } from "./chunk-BJNSTCJK.js";
20
+ } from "./chunk-IVCOZCAW.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-Y7RGBRLG.js";
29
+ } from "./chunk-KDOJW5LH.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-PHPYTXS4.js");
197
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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 ?? [];
@@ -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-FXBOGH2X.js");
341
+ const { getWorkflowOperation } = await import("./registry-3B3OAJYX.js");
342
342
  const wfEnv = {
343
343
  ...workflowEnv(env),
344
344
  host: createWorkflowHost(env.ctx),
@@ -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-BKCPAXQG.js");
446
+ const { loadRooms: loadRooms2 } = await import("./room-recommend-73NBN3RU.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-PHPYTXS4.js");
477
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-PHPYTXS4.js");
589
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-PHPYTXS4.js");
790
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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,7 +1046,7 @@ 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-GTYMCBYS.js");
1049
+ const { buildImEnv } = await import("./group-chat-EEOLO5NM.js");
1050
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(
@@ -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-PHPYTXS4.js");
1174
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-KMP66KHE.js");
1301
+ const { verifyEntryToken } = await import("./entry-mode-L65OWPFM.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-KMP66KHE.js");
1308
+ const { readEntryChoice } = await import("./entry-mode-L65OWPFM.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-PHPYTXS4.js");
1320
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-KMP66KHE.js");
1333
+ const { createEntryToken } = await import("./entry-mode-L65OWPFM.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-Q3MPSZV6.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
1435
+ const nameToId = nameLike.length > 0 ? await import("./schedule-SDBOBBUQ.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-PHPYTXS4.js");
1480
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-PHPYTXS4.js");
1650
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-PHPYTXS4.js");
1658
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-PHPYTXS4.js");
2069
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-PHPYTXS4.js");
2391
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-PHPYTXS4.js");
2418
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-FXBOGH2X.js");
2496
+ const { getWorkflowOperation } = await import("./registry-3B3OAJYX.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-GTYMCBYS.js");
2546
+ const { ensureMeetingGroupChat } = await import("./group-chat-EEOLO5NM.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-GTYMCBYS.js");
2562
+ const { savePendingForm } = await import("./group-chat-EEOLO5NM.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-PHPYTXS4.js");
2632
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-GTYMCBYS.js");
2682
+ const { ensureMeetingGroupChat } = await import("./group-chat-EEOLO5NM.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-PHPYTXS4.js");
2714
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-PHPYTXS4.js");
2875
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-ZQ7OONCB.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-PHPYTXS4.js");
2892
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.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-Q3MPSZV6.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
2991
+ const nameToId = nameLike.length > 0 ? await import("./schedule-SDBOBBUQ.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(() => "");
@@ -4,14 +4,14 @@ import {
4
4
  createE10RequestRuntime,
5
5
  isE10SessionExpiredResponse,
6
6
  requireE10Session
7
- } from "./chunk-FJUOUSV3.js";
7
+ } from "./chunk-LRKKKO5A.js";
8
8
  import {
9
9
  E10_REAUTH_GUIDANCE,
10
10
  E10_SESSION_EXPIRED_MESSAGE
11
- } from "./chunk-TJN4PIYO.js";
11
+ } from "./chunk-GTAFCAVP.js";
12
12
  import {
13
13
  getActiveProfile
14
- } from "./chunk-FDBAFANU.js";
14
+ } from "./chunk-I5XB4MZT.js";
15
15
  import {
16
16
  CliError
17
17
  } from "./chunk-UG5G54VL.js";
@@ -2,12 +2,12 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-X7ZTM4XG.js";
5
+ } from "./chunk-LJE7RZNC.js";
6
6
  import {
7
7
  meetingSuccess,
8
8
  meetingValidationError,
9
9
  schemaOf
10
- } from "./chunk-Y7RGBRLG.js";
10
+ } from "./chunk-KDOJW5LH.js";
11
11
 
12
12
  // src/shortcuts/meeting/operations/eb/group-chat.ts
13
13
  import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
@@ -16,17 +16,17 @@ var DEFAULT_MEETING_GROUP_FLOW_ID = "1333212605456498718";
16
16
  var GROUP_FIELD = "imchat_groupid";
17
17
  var PENDING_DIR = "pending-forms";
18
18
  async function buildEsbEnv(env) {
19
- const { createEsbHost } = await import("./host-P7G22WNM.js");
19
+ const { createEsbHost } = await import("./host-2UMNXX5H.js");
20
20
  const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
21
21
  return { ctx: env.ctx, host: createEsbHost(env.ctx), continuation: createEsbContinuationSigner(env.ctx) };
22
22
  }
23
23
  async function buildImEnv(env) {
24
- const { createImHost } = await import("./host-XLCBLNJD.js");
24
+ const { createImHost } = await import("./host-BD44ASOD.js");
25
25
  const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
26
26
  return { ctx: env.ctx, host: createImHost(env.ctx), continuation: createImContinuationSigner(env.ctx) };
27
27
  }
28
28
  async function buildWorkflowEnv(env) {
29
- const { createWorkflowHost } = await import("./host-2ED2KC4X.js");
29
+ const { createWorkflowHost } = await import("./host-NVDG3NC6.js");
30
30
  const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
31
31
  return { ctx: env.ctx, host: createWorkflowHost(env.ctx), continuation: createWorkflowContinuationSigner(env.ctx) };
32
32
  }
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
159
159
  if (addressText === "[object Object]") addressText = "";
160
160
  if (addressText) {
161
161
  try {
162
- const { resolveAddressRoom } = await import("./create-flow-DG6D7U2L.js");
162
+ const { resolveAddressRoom } = await import("./create-flow-5OBS3B3V.js");
163
163
  const room = await resolveAddressRoom(env, addressText);
164
164
  if (room?.name) addressText = room.name;
165
165
  } catch {
@@ -168,7 +168,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
168
168
  if (addressText) mainTable.address = addressText;
169
169
  }
170
170
  try {
171
- const { getEsbOperation } = await import("./registry-QRMXRSCT.js");
171
+ const { getEsbOperation } = await import("./registry-FTPUUHWC.js");
172
172
  const esbEnv = await buildEsbEnv(env);
173
173
  const prepare = getEsbOperation("esb.trigger.prepare");
174
174
  const apply = getEsbOperation("esb.trigger.apply");
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
201
201
  const group = String(groupId).trim();
202
202
  if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
203
203
  try {
204
- const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-ETQAICPA.js");
204
+ const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-MHFZZAGH.js");
205
205
  const session = await env.host.getSession();
206
206
  await env.host.request({
207
207
  method: "POST",
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
219
219
  return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
220
220
  }
221
221
  try {
222
- const { getMeetingOperation } = await import("./registry-PHPYTXS4.js");
222
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.js");
223
223
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
224
224
  const read = await detail.handler({ id }, env);
225
225
  const main = read?.data?.data ?? read?.data?.main ?? {};
@@ -235,7 +235,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
235
235
  }
236
236
  async function searchMyRequests(env, options = {}) {
237
237
  try {
238
- const { getWorkflowOperation } = await import("./registry-FXBOGH2X.js");
238
+ const { getWorkflowOperation } = await import("./registry-3B3OAJYX.js");
239
239
  const op = getWorkflowOperation("workflow.search");
240
240
  const wfEnv = await buildWorkflowEnv(env);
241
241
  const args = { category: "mine", pageSize: 20, sort: "createTime:desc" };
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
267
267
  const target = String(requestId).trim();
268
268
  if (target === "") return null;
269
269
  try {
270
- const { getMeetingOperation } = await import("./registry-PHPYTXS4.js");
270
+ const { getMeetingOperation } = await import("./registry-ZQ7OONCB.js");
271
271
  const list = getMeetingOperation("meeting.eb.meeting.list");
272
272
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
273
273
  const page = await list.handler({ pageSize: 30 }, env);
@@ -538,6 +538,18 @@ function compactValue(value, arrayLimit, stringLimit, depth = 0, key, path = "",
538
538
  }
539
539
  return value;
540
540
  }
541
+ function compactForStdout(value, budgetChars, sink) {
542
+ let current = value;
543
+ let last = [];
544
+ for (const tier of COMPACT_TIERS) {
545
+ const truncations = [];
546
+ current = compactValue(value, tier.array, tier.string, 0, void 0, "", (item) => truncations.push(item));
547
+ last = truncations;
548
+ if (charsOf(current) <= budgetChars) break;
549
+ }
550
+ for (const item of last) sink?.(item);
551
+ return current;
552
+ }
541
553
  function compactRecord(value, budgetChars, keepKeys, sink) {
542
554
  let current = value;
543
555
  let last = [];
@@ -879,6 +891,7 @@ export {
879
891
  refMaxCount,
880
892
  refMaxBytes,
881
893
  charsOf,
894
+ compactForStdout,
882
895
  stringifyForStdout,
883
896
  Output
884
897
  };