weaver-work-cli 0.1.44 → 0.1.45

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 (179) hide show
  1. package/README.md +9 -5
  2. package/dist/chunks/{archive-P6TBQGKL.js → archive-ZQ4A4TV6.js} +388 -44
  3. package/dist/chunks/{archive-oa-7TQ2NXOH.js → archive-oa-BBDP7AKJ.js} +2 -2
  4. package/dist/chunks/{asset-3ELRG37G.js → asset-ZOJVBWZH.js} +2 -2
  5. package/dist/chunks/{asset-idle-WIGMUFMD.js → asset-idle-XGB5IPGT.js} +2 -2
  6. package/dist/chunks/{attachment-content-E3276UOV.js → attachment-content-CE3GMWTS.js} +3 -3
  7. package/dist/chunks/{blog-C5NMZAAC.js → blog-QSHLZSFW.js} +2 -2
  8. package/dist/chunks/caizhilian-KCQYFH72.js +204 -0
  9. package/dist/chunks/{calendar-FI2WNSBO.js → calendar-DLGMRJQA.js} +2 -2
  10. package/dist/chunks/{chunk-CWYGFU5B.js → chunk-3WBIQLMB.js} +2 -2
  11. package/dist/chunks/{chunk-PUQS5MWL.js → chunk-3YV7PKRL.js} +1 -1
  12. package/dist/chunks/{chunk-PC7VKEB5.js → chunk-3ZMAQQ3W.js} +161 -33
  13. package/dist/chunks/{chunk-GM6J7Q4B.js → chunk-4EXOIQDI.js} +40 -10
  14. package/dist/chunks/{chunk-ETNJSKMM.js → chunk-6NXT4ICB.js} +148 -21
  15. package/dist/chunks/chunk-762M5XJS.js +215 -0
  16. package/dist/chunks/{chunk-GAMZLAG2.js → chunk-77YP6I52.js} +1 -1
  17. package/dist/chunks/{chunk-WSF4NNMR.js → chunk-CZNZKOHR.js} +2 -2
  18. package/dist/chunks/{chunk-Z7VYWPZV.js → chunk-DGMYACGJ.js} +1 -1
  19. package/dist/chunks/{chunk-TA7FXXJD.js → chunk-DLY5GUXX.js} +1 -1
  20. package/dist/chunks/{chunk-BCVYBYYT.js → chunk-GR76ZDDX.js} +2 -2
  21. package/dist/chunks/{chunk-GRDRG6HP.js → chunk-HFXK54M4.js} +2 -2
  22. package/dist/chunks/{chunk-XNIK66I4.js → chunk-JB34OE7R.js} +790 -77
  23. package/dist/chunks/{chunk-QVSWRLLU.js → chunk-JWWTI63L.js} +55 -5
  24. package/dist/chunks/{chunk-FRZKBMSW.js → chunk-LGKWL4OH.js} +176 -39
  25. package/dist/chunks/{chunk-XHK4MDR5.js → chunk-LRCPNDZA.js} +38 -6
  26. package/dist/chunks/{chunk-OF4S23UB.js → chunk-LXFVWZLM.js} +4 -4
  27. package/dist/chunks/{chunk-D4ADSZ7H.js → chunk-O6CMPO65.js} +24 -1
  28. package/dist/chunks/{chunk-N4M2DDFE.js → chunk-OAE3AZBQ.js} +11 -11
  29. package/dist/chunks/chunk-P5GQRWDC.js +60 -0
  30. package/dist/chunks/{caizhilian-5XSM2DFP.js → chunk-PGO4ILMQ.js} +41 -521
  31. package/dist/chunks/{chunk-HIT4Y6OI.js → chunk-T4MWQAQB.js} +7 -5
  32. package/dist/chunks/{chunk-F4E4EM35.js → chunk-TGAGQV4I.js} +2 -2
  33. package/dist/chunks/{chunk-UFIT2UU3.js → chunk-U6R6FZHD.js} +168 -14
  34. package/dist/chunks/{chunk-FAZTGX7S.js → chunk-VIMCY4DI.js} +5 -5
  35. package/dist/chunks/chunk-VRPH24IC.js +76 -0
  36. package/dist/chunks/{chunk-3YBDYOC4.js → chunk-YIKSL36S.js} +2 -2
  37. package/dist/chunks/{chunk-IAZ3UPY6.js → chunk-Z6UUBY37.js} +2 -2
  38. package/dist/chunks/{conflict-ARLSZJ6V.js → conflict-IYJETSGT.js} +2 -2
  39. package/dist/chunks/continuation-GW6PRWK3.js +12 -0
  40. package/dist/chunks/{contract-DNIIW5VJ.js → contract-3QLAGYQL.js} +5793 -4591
  41. package/dist/chunks/{cowork-GMLRGVIW.js → cowork-3ACICHDQ.js} +2 -2
  42. package/dist/chunks/{create-flow-J22BO65E.js → create-flow-7JLC7UID.js} +6 -6
  43. package/dist/chunks/{ebuilder-form-ANV2FHYV.js → ebuilder-form-GWDTKEI2.js} +5 -5
  44. package/dist/chunks/{ehr-GSTGAIY3.js → ehr-MYRDCHZ4.js} +121 -49
  45. package/dist/chunks/{employee-22BGJ3QS.js → employee-NOHNXC46.js} +1 -1
  46. package/dist/chunks/{env-BX3VRFS7.js → env-3MBHAWBL.js} +2 -2
  47. package/dist/chunks/{esb-ATAIASX2.js → esb-4BQHNP5C.js} +4 -4
  48. package/dist/chunks/{factory-PETTFME6.js → factory-TZEVU4DU.js} +1 -1
  49. package/dist/chunks/{fna-YEKBSFSX.js → fna-ZVB2IILI.js} +2 -2
  50. package/dist/chunks/{group-chat-BFVXAYFX.js → group-chat-KL3HFKRM.js} +3 -3
  51. package/dist/chunks/{host-WIKN2EJ5.js → host-3TNBMDTR.js} +3 -3
  52. package/dist/chunks/host-7NTIBSPK.js +25 -0
  53. package/dist/chunks/{host-SZGV4UNT.js → host-7OWWPLM4.js} +3 -3
  54. package/dist/chunks/{host-HRBXEPDQ.js → host-G3VU7SDW.js} +3 -3
  55. package/dist/chunks/{host-LR55CTHP.js → host-M4XP5URR.js} +3 -3
  56. package/dist/chunks/{host-SUOY6VYQ.js → host-TUOIOEMC.js} +3 -3
  57. package/dist/chunks/{hrm-NRDO4W5G.js → hrm-UNKCCCGP.js} +5 -5
  58. package/dist/chunks/{im-IQ2HN23S.js → im-NJB7ZYMH.js} +3 -3
  59. package/dist/chunks/{invoice-MNRW76PP.js → invoice-OQP3TMKQ.js} +3 -3
  60. package/dist/chunks/{jiuchuanhui-DTRBAX4N.js → jiuchuanhui-ASFZBMPU.js} +2 -2
  61. package/dist/chunks/{lazy-dispatch-ZVWAI25B.js → lazy-dispatch-UH6HGK2I.js} +4 -4
  62. package/dist/chunks/{mail-ZVAUXOJA.js → mail-M3HJF5ER.js} +2 -2
  63. package/dist/chunks/{meeting-FEVPZ67S.js → meeting-C67EHQ4Z.js} +12 -12
  64. package/dist/chunks/{okr-SDH3E5RA.js → okr-EVX7FB5G.js} +2 -2
  65. package/dist/chunks/operations-J7PUIVWZ.js +15 -0
  66. package/dist/chunks/{plan-E35JFDI7.js → plan-2QJQEPBO.js} +2 -2
  67. package/dist/chunks/{project-73QXBAB2.js → project-XELELW2T.js} +2 -2
  68. package/dist/chunks/{reception-UWZVACBN.js → reception-5WITA44R.js} +2 -2
  69. package/dist/chunks/{recruit-stage-4MAOCKFY.js → recruit-stage-AHY5QAMF.js} +450 -117
  70. package/dist/chunks/{registry-JDUS4E7D.js → registry-AQVGHUM6.js} +2 -2
  71. package/dist/chunks/{registry-KNKSCJNT.js → registry-QJCZ2GVG.js} +4 -4
  72. package/dist/chunks/{registry-PO7SI256.js → registry-VWXWPVAG.js} +2 -2
  73. package/dist/chunks/{registry-IM5G23LS.js → registry-XPWPGHYE.js} +10 -10
  74. package/dist/chunks/{room-recommend-H7KLXA5R.js → room-recommend-CNWE5WQK.js} +6 -4
  75. package/dist/chunks/{schedule-ESZIBAUO.js → schedule-YYNYBQIE.js} +4 -4
  76. package/dist/chunks/{workflow-CWJFJLQU.js → workflow-BSYT5TGL.js} +6 -4
  77. package/dist/index.js +30 -30
  78. package/dist/internal/e10/auth/commands.js +32 -0
  79. package/dist/internal/e10/auth/error-log.js +156 -26
  80. package/dist/internal/e10/auth/xiaoe.js +176 -13
  81. package/dist/internal/e10/context.js +12 -1
  82. package/dist/shortcuts/archive/operations/borrow-list.js +105 -14
  83. package/dist/shortcuts/archive/operations/flow-url.js +182 -22
  84. package/dist/shortcuts/archive/operations/getPageUrl.js +75 -0
  85. package/dist/shortcuts/archive/operations/prelib.js +33 -4
  86. package/dist/shortcuts/archive/operations/shared.js +52 -0
  87. package/dist/shortcuts/contract/host.js +111 -4
  88. package/dist/shortcuts/contract/index.js +19 -0
  89. package/dist/shortcuts/contract/manifest.js +125 -0
  90. package/dist/shortcuts/contract/ooxml/clause-insert.js +249 -0
  91. package/dist/shortcuts/contract/operations/clause-insert.js +56 -0
  92. package/dist/shortcuts/contract/operations/customer.js +192 -0
  93. package/dist/shortcuts/contract/operations/file-download.js +75 -0
  94. package/dist/shortcuts/contract/operations/flow.js +44 -2
  95. package/dist/shortcuts/contract/operations/form-info.js +162 -62
  96. package/dist/shortcuts/contract/operations/registry.js +8 -0
  97. package/dist/shortcuts/contract/operations/review.js +116 -1
  98. package/dist/shortcuts/contract/operations/summary.js +177 -0
  99. package/dist/shortcuts/contract/operations/upload.js +64 -4
  100. package/dist/shortcuts/contract/upload-cache.js +104 -0
  101. package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +4 -2
  102. package/dist/shortcuts/ehr/operations/recruit-position.js +136 -35
  103. package/dist/shortcuts/ehr/operations/recruit-write.js +17 -18
  104. package/dist/shortcuts/ehr/operations/recruit.js +17 -5
  105. package/dist/shortcuts/hrm/operations/employee.js +29 -1
  106. package/dist/shortcuts/meeting/operations/eb/create-flow.js +182 -58
  107. package/dist/shortcuts/meeting/operations/eb/draft-memory.js +56 -0
  108. package/dist/shortcuts/meeting/operations/eb/factory.js +58 -3
  109. package/dist/shortcuts/meeting/operations/eb/person-cache.js +2 -2
  110. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +47 -5
  111. package/dist/shortcuts/meeting/operations/invitation-publish.js +132 -0
  112. package/dist/shortcuts/meeting/operations/registry.js +2 -0
  113. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +86 -16
  114. package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +6 -4
  115. package/dist/shortcuts/recruit-stage/operations/jd-create.js +208 -56
  116. package/dist/shortcuts/recruit-stage/operations/resume-import.js +42 -16
  117. package/dist/shortcuts/recruit-stage/shared.js +161 -18
  118. package/dist/shortcuts/workflow/index.js +2 -0
  119. package/dist/shortcuts/workflow/operations/read.js +8 -3
  120. package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +92 -5
  121. package/dist/shortcuts/workflow/operations/todoSmartConvert/priorityExpr.js +509 -0
  122. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +22 -1
  123. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +32 -6
  124. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +57 -11
  125. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +165 -52
  126. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +57 -14
  127. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +44 -18
  128. package/docs/contract.md +1 -0
  129. package/docs/e10-auth.md +4 -2
  130. package/docs/todo-smart-convert/data-contract.md +7 -0
  131. package/package.json +1 -1
  132. package/skill-template/domains/jinchengda.md +2 -0
  133. package/skills/weaver-e10-jinchengda/SKILL.md +198 -205
  134. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +759 -0
  135. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +250 -0
  136. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +146 -7
  137. package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +178 -0
  138. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +75 -0
  139. package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +137 -0
  140. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +163 -0
  141. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +52 -3
  142. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +92 -5
  143. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +602 -0
  144. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +209 -0
  145. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +126 -0
  146. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +312 -0
  147. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +555 -0
  148. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +47 -12
  149. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +469 -0
  150. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +154 -1
  151. package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +224 -0
  152. package/skills/weaver-e10-jinchengda/references/orchestration.md +355 -0
  153. package/skills/weaver-e10-jucailin/references/recruit-create.md +5 -3
  154. package/skills/weaver-e10-jucailin/references/recruit-write.md +2 -2
  155. package/skills/weaver-e10-meeting/SKILL.md +57 -9
  156. package/skills/weaver-e10-recruit-stage/SKILL.md +11 -6
  157. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +10 -2
  158. package/skills/weaver-e10-recruit-stage/references/position-templates.md +3 -1
  159. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +13 -1
  160. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +19 -18
  161. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +27 -14
  162. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +7 -1
  163. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +4 -2
  164. package/skills/weaver-e10-wenshuding/SKILL.md +17 -7
  165. package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +28 -0
  166. package/skills/weaver-e10-wenshuding/references/archive-flow.md +24 -8
  167. package/skills/weaver-e10-wenshuding/references/archive-prelib-list.md +3 -0
  168. package/skills/weaver-e10-wenshuding/references/archive-prelib-open.md +4 -0
  169. package/skills/weaver-e10-wenshuding/references/archive-search.md +3 -1
  170. package/skills/weaver-e10-workflow/SKILL.md +19 -17
  171. package/skills/weaver-e10-workflow/aigroup/default.json +10 -6
  172. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +36 -3
  173. package/skills/weaver-e10-workflow/references/workflow-memory.md +1 -1
  174. package/skills/weaver-e10-workflow/references/workflow-query.md +9 -6
  175. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +152 -1
  176. package/skills/weaver-e10-yimiaoban/SKILL.md +17 -5
  177. package/skills/weaver-e10-yimiaoban/references/msg-write.md +30 -0
  178. package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +72 -0
  179. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +7 -7
@@ -14,13 +14,13 @@ import {
14
14
  resolveRefInput,
15
15
  resultThresholdBytes
16
16
  } from "./chunk-727FH2NI.js";
17
- import {
18
- refsDir
19
- } from "./chunk-AJ62BGAW.js";
20
17
  import {
21
18
  Command,
22
19
  clearInvoiceTokenForSession
23
- } from "./chunk-BCVYBYYT.js";
20
+ } from "./chunk-GR76ZDDX.js";
21
+ import {
22
+ refsDir
23
+ } from "./chunk-AJ62BGAW.js";
24
24
  import {
25
25
  shouldReportPlatformError,
26
26
  toPlatformError
@@ -32,7 +32,7 @@ import {
32
32
  normalizeXiaoEAuthErrorLogLimit,
33
33
  readXiaoEAuthErrorLog,
34
34
  xiaoEAuthLogSecrets
35
- } from "./chunk-ETNJSKMM.js";
35
+ } from "./chunk-6NXT4ICB.js";
36
36
  import {
37
37
  E10AuthSession,
38
38
  XIAOE_AGENT_TYPE,
@@ -61,7 +61,7 @@ import {
61
61
  setActiveProfile,
62
62
  switchActiveProfile,
63
63
  tryXiaoEUnifiedLogin
64
- } from "./chunk-UFIT2UU3.js";
64
+ } from "./chunk-U6R6FZHD.js";
65
65
  import {
66
66
  CliError,
67
67
  isCliError,
@@ -994,6 +994,36 @@ function formatXiaoEAuthErrorLogEntry(entry) {
994
994
  failure.httpStatus === void 0 ? "" : `httpStatus=${failure.httpStatus}`,
995
995
  failure.message
996
996
  ].filter(Boolean).join(" "));
997
+ if (failure.request) {
998
+ lines.push([
999
+ "request:",
1000
+ `transport=${failure.request.transport}`,
1001
+ `method=${failure.request.method}`,
1002
+ `endpoint=${failure.request.endpoint}`,
1003
+ failure.request.finalEndpoint ? `finalEndpoint=${failure.request.finalEndpoint}` : "",
1004
+ `redirect=${failure.request.redirect}`,
1005
+ `timeoutMs=${failure.request.timeoutMs}`,
1006
+ `elapsedMs=${failure.request.elapsedMs}`,
1007
+ failure.request.redirectCount ? `redirectCount=${failure.request.redirectCount}` : ""
1008
+ ].filter(Boolean).join(" "));
1009
+ lines.push(`requestHeaders: ${JSON.stringify(failure.request.headers)}`);
1010
+ lines.push(`requestBody: ${JSON.stringify(failure.request.body)}`);
1011
+ lines.push(`requestParams: ${JSON.stringify({
1012
+ transport: failure.request.transport,
1013
+ url: failure.request.endpoint,
1014
+ ...failure.request.finalEndpoint ? { finalUrl: failure.request.finalEndpoint } : {},
1015
+ method: failure.request.method,
1016
+ headers: failure.request.headers,
1017
+ body: failure.request.body,
1018
+ bodyBytes: failure.request.bodyBytes,
1019
+ redirect: failure.request.redirect,
1020
+ timeoutMs: failure.request.timeoutMs,
1021
+ authorizationPresent: failure.request.authorizationPresent,
1022
+ authorizationLength: failure.request.authorizationLength,
1023
+ elapsedMs: failure.request.elapsedMs,
1024
+ ...failure.request.redirectCount ? { redirectCount: failure.request.redirectCount } : {}
1025
+ })}`);
1026
+ }
997
1027
  }
998
1028
  return lines.join("\n");
999
1029
  }
@@ -1009,12 +1039,14 @@ async function showXiaoEAuthErrorLogs(ctx, options) {
1009
1039
  const text = result.entries.length ? [
1010
1040
  `XiaoE auth error logs (${result.returned}/${result.total}, newest first)`,
1011
1041
  `logFile: ${result.path}`,
1042
+ ...result.expiredRemoved ? [`expiredRemoved: ${result.expiredRemoved}`] : [],
1012
1043
  ...result.invalidLines ? [`invalidLines: ${result.invalidLines}`] : [],
1013
1044
  "",
1014
1045
  result.entries.map(formatXiaoEAuthErrorLogEntry).join("\n\n")
1015
1046
  ].join("\n") : [
1016
1047
  "No XiaoE auth error logs.",
1017
1048
  `logFile: ${result.path}`,
1049
+ ...result.expiredRemoved ? [`expiredRemoved: ${result.expiredRemoved}`] : [],
1018
1050
  ...result.invalidLines ? [`invalidLines: ${result.invalidLines}`] : []
1019
1051
  ].join("\n");
1020
1052
  ctx.output.write(result, { text });
@@ -12,7 +12,7 @@ import {
12
12
  meetingValidationError,
13
13
  queryBody,
14
14
  toIdCsv
15
- } from "./chunk-QVSWRLLU.js";
15
+ } from "./chunk-JWWTI63L.js";
16
16
 
17
17
  // src/shortcuts/meeting/operations/eb/conflict.ts
18
18
  var ACTIVE_MT_STATUS = "1,2,8,9";
@@ -296,7 +296,7 @@ var ebMeetingWritePreflight = async ({ endpoint, payload, args, env, extras }) =
296
296
  const items = rawMembers.split(/[,;,;]+/u).map((item) => item.trim()).filter((item) => item !== "");
297
297
  const nameLike = items.filter((item) => !/^\d+$/u.test(item));
298
298
  if (nameLike.length > 0) {
299
- const { resolveMemberIdsByName } = await import("./schedule-ESZIBAUO.js");
299
+ const { resolveMemberIdsByName } = await import("./schedule-YYNYBQIE.js");
300
300
  const idsByName = await resolveMemberIdsByName(env, nameLike);
301
301
  const resolved = items.map((item) => idsByName.get(item) ?? item);
302
302
  payload.mainTable.hrm_members = [...new Set(resolved)].join(",");
@@ -535,7 +535,7 @@ async function resolveMemberNames(env, ids) {
535
535
  const unique = [...new Set(ids.filter((id) => id !== ""))];
536
536
  if (unique.length === 0) return map;
537
537
  try {
538
- const { hrmEmployeeOperations } = await import("./employee-22BGJ3QS.js");
538
+ const { hrmEmployeeOperations } = await import("./employee-NOHNXC46.js");
539
539
  const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
540
540
  if (!batch) return map;
541
541
  const result = await batch.handler({ ids: unique }, env);
@@ -610,7 +610,7 @@ async function findCommonFreeSlots(env, input) {
610
610
  const scheduleItems = [];
611
611
  if (includeSchedule) {
612
612
  try {
613
- const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-ESZIBAUO.js");
613
+ const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-YYNYBQIE.js");
614
614
  const dayBegin = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 0, 0, 0, 0);
615
615
  const dayEnd = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 23, 59, 0, 0);
616
616
  const flow = await runScheduleConflictFlow(env, {
@@ -284,6 +284,7 @@ function resolveEmployeeCondition(args) {
284
284
  if (explicit) return { field: explicit, value: String(args[explicit]).trim() };
285
285
  const keyword = args.keyword === void 0 ? "" : String(args.keyword).trim();
286
286
  if (!keyword) {
287
+ if (args.all === true) return { field: "", value: "" };
287
288
  throw hrmValidationError("empty_condition", "\u5458\u5DE5\u67E5\u8BE2\u5FC5\u987B\u643A\u5E26\u81F3\u5C11\u4E00\u4E2A\u6536\u655B\u6761\u4EF6\uFF1Akeyword\uFF08\u81EA\u52A8\u63A8\u65AD\uFF09\u6216 username/job_num/mobile/email \u4E4B\u4E00");
288
289
  }
289
290
  const inferred = inferEmployeeField(keyword);
@@ -313,6 +314,7 @@ var employeeQuery = {
313
314
  email: { type: "string", description: "\u90AE\u7BB1\uFF08\u6A21\u7CCA\u5339\u914D\uFF09" },
314
315
  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' },
315
316
  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" },
317
+ 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" },
316
318
  ...SCHEMA_PAGE
317
319
  }),
318
320
  handler: async (args, { host }) => {
@@ -328,7 +330,7 @@ var employeeQuery = {
328
330
  const formDatas = {
329
331
  ...memberFormDatasBase(),
330
332
  status: [{ statusSelect: statusText }],
331
- [field]: [{ [`${field}Opt`]: "in", [`${field}Input`]: value }]
333
+ ...field !== "" ? { [field]: [{ [`${field}Opt`]: "in", [`${field}Input`]: value }] } : {}
332
334
  };
333
335
  const body = {
334
336
  ...browserBaseBody(),
@@ -345,6 +347,27 @@ var employeeQuery = {
345
347
  if (current !== void 0) body.current = current;
346
348
  if (pageSize !== void 0) body.pageSize = pageSize;
347
349
  const session = await host.getSession();
350
+ if (args.all === true) {
351
+ const collected = [];
352
+ let pages = 0;
353
+ const size = pageSize ?? 100;
354
+ for (let p = 1; p <= 200; p += 1) {
355
+ const resp = await host.request({
356
+ method: "POST",
357
+ path: "/api/hrm/common/browser/data/resource",
358
+ body: { ...body, current: p, pageSize: size }
359
+ });
360
+ const pageRows = resp?.data?.data ?? [];
361
+ pages = p;
362
+ if (pageRows.length === 0) break;
363
+ collected.push(...pageRows);
364
+ if (pageRows.length < size) break;
365
+ }
366
+ const allSession = await host.getSession();
367
+ const allBaseUrl = String(allSession.baseUrl ?? "").replace(/\/+$/g, "");
368
+ const allRows = collected.map((r) => args.full === true ? formatMember(r, allBaseUrl) : formatQueryRowBrief(r, allBaseUrl));
369
+ return hrmSuccess("hrm.employee.query", { rows: allRows, total: allRows.length, pagesFetched: pages, all: true }, { current: 1, pageSize: allRows.length });
370
+ }
348
371
  const baseUrl = session.baseUrl.replace(/\/+$/, "");
349
372
  const dataResp = await host.request({ method: "POST", path: "/api/hrm/common/browser/data/resource", body });
350
373
  const rawRows = dataResp?.data?.data ?? [];
@@ -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-GAMZLAG2.js";
5
+ } from "./chunk-77YP6I52.js";
6
6
  import {
7
7
  meetingSuccess,
8
8
  meetingValidationError,
9
9
  schemaOf
10
- } from "./chunk-QVSWRLLU.js";
10
+ } from "./chunk-JWWTI63L.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-WIKN2EJ5.js");
19
+ const { createEsbHost } = await import("./host-3TNBMDTR.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-LR55CTHP.js");
24
+ const { createImHost } = await import("./host-M4XP5URR.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-SUOY6VYQ.js");
29
+ const { createWorkflowHost } = await import("./host-TUOIOEMC.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-J22BO65E.js");
162
+ const { resolveAddressRoom } = await import("./create-flow-7JLC7UID.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-KNKSCJNT.js");
171
+ const { getEsbOperation } = await import("./registry-QJCZ2GVG.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-PETTFME6.js");
204
+ const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-TZEVU4DU.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-IM5G23LS.js");
222
+ const { getMeetingOperation } = await import("./registry-XPWPGHYE.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-JDUS4E7D.js");
238
+ const { getWorkflowOperation } = await import("./registry-AQVGHUM6.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-IM5G23LS.js");
270
+ const { getMeetingOperation } = await import("./registry-XPWPGHYE.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);
@@ -0,0 +1,60 @@
1
+ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
+ const require = __esbuildCreateRequire(import.meta.url);
3
+ import {
4
+ CliError
5
+ } from "./chunk-UG5G54VL.js";
6
+
7
+ // src/shortcuts/caizhilian/errors.ts
8
+ var CaizhilianCliError = class extends CliError {
9
+ type;
10
+ subtype;
11
+ code;
12
+ retryable;
13
+ stage;
14
+ details;
15
+ partialData;
16
+ constructor(type, subtype, message, options = {}) {
17
+ super(message, options.exitCode ?? 5 /* InternalError */);
18
+ this.name = "CaizhilianCliError";
19
+ this.type = type;
20
+ this.subtype = subtype;
21
+ this.code = options.code;
22
+ this.retryable = options.retryable ?? false;
23
+ this.stage = options.stage;
24
+ this.details = options.details;
25
+ this.partialData = options.partialData;
26
+ }
27
+ };
28
+ function caizhilianValidationError(subtype, message, details) {
29
+ return new CaizhilianCliError("validation", subtype, message, {
30
+ details,
31
+ exitCode: 2 /* UsageError */
32
+ });
33
+ }
34
+ function caizhilianAuthError(subtype, message, details) {
35
+ return new CaizhilianCliError("authentication", subtype, message, {
36
+ details,
37
+ exitCode: 3 /* AuthError */
38
+ });
39
+ }
40
+ function caizhilianNetworkError(subtype, message, options = {}) {
41
+ return new CaizhilianCliError("network", subtype, message, {
42
+ ...options,
43
+ retryable: options.retryable ?? true,
44
+ exitCode: 4 /* NetworkError */
45
+ });
46
+ }
47
+ function caizhilianConfirmationError(action, details) {
48
+ return new CaizhilianCliError("confirmation", "required", "\u8BE5\u64CD\u4F5C\u9700\u8981\u660E\u786E\u786E\u8BA4", {
49
+ details: { action, ...details },
50
+ exitCode: 10 /* ConfirmationRequired */
51
+ });
52
+ }
53
+
54
+ export {
55
+ CaizhilianCliError,
56
+ caizhilianValidationError,
57
+ caizhilianAuthError,
58
+ caizhilianNetworkError,
59
+ caizhilianConfirmationError
60
+ };