weaver-work-cli 0.1.62 → 0.1.63

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 (272) hide show
  1. package/dist/chunks/{archive-S2VKZWQ3.js → archive-BLDYBZDX.js} +5 -4
  2. package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-3GJ3TWXR.js} +5 -4
  3. package/dist/chunks/{asset-HYH4W357.js → asset-AFXJN4CK.js} +5 -4
  4. package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-VUJXWGWJ.js} +5 -4
  5. package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-VMJA7NSQ.js} +3 -3
  6. package/dist/chunks/{blog-SLMZZICV.js → blog-EREB35VU.js} +5 -4
  7. package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-ATM2JO5S.js} +5 -5
  8. package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-E26ZIH7S.js} +5 -4
  9. package/dist/chunks/{chunk-6XSSAUNW.js → chunk-4OB22YKE.js} +48 -12
  10. package/dist/chunks/{chunk-UBGWIXU3.js → chunk-5CY37VLS.js} +131 -38
  11. package/dist/chunks/{chunk-EGANE35F.js → chunk-6G2JARDK.js} +1 -1
  12. package/dist/chunks/{chunk-WIWDVETN.js → chunk-6VCQLZXE.js} +75 -76
  13. package/dist/chunks/{chunk-E5YD5JWR.js → chunk-BY3WDJO5.js} +1 -1
  14. package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
  15. package/dist/chunks/{chunk-BQYX2UX5.js → chunk-C5PIGPGX.js} +5 -3
  16. package/dist/chunks/{chunk-UBRWONP4.js → chunk-EOZHSNND.js} +2 -2
  17. package/dist/chunks/{chunk-UQFPF4EX.js → chunk-G3ZM57PD.js} +2 -2
  18. package/dist/chunks/{chunk-XT77MP54.js → chunk-GOBNIGWS.js} +410 -24
  19. package/dist/chunks/{chunk-KY3R42RS.js → chunk-GQK6WLOS.js} +5 -3
  20. package/dist/chunks/{chunk-BIA2NKUG.js → chunk-HEJPVXD3.js} +5 -5
  21. package/dist/chunks/{chunk-ILALC2N6.js → chunk-I4C2KR2G.js} +1 -1
  22. package/dist/chunks/{chunk-YI2YMW5N.js → chunk-IGICM3WJ.js} +2 -2
  23. package/dist/chunks/chunk-IN6NXQ26.js +680 -0
  24. package/dist/chunks/{chunk-VBFBMM7G.js → chunk-LOVAIGM2.js} +387 -70
  25. package/dist/chunks/{chunk-H6YOMI3U.js → chunk-OMAGCLUE.js} +5 -3
  26. package/dist/chunks/{chunk-VNYOUAWV.js → chunk-QAMIIFP6.js} +11 -11
  27. package/dist/chunks/{chunk-QBDXJS2W.js → chunk-QZYKZ7MQ.js} +16 -8
  28. package/dist/chunks/{chunk-V2LASYKO.js → chunk-RR45ELVE.js} +30 -24
  29. package/dist/chunks/{chunk-NRYDJN4J.js → chunk-RV2JAA5I.js} +89 -8
  30. package/dist/chunks/{chunk-TEZHIB6T.js → chunk-SDPC7BG2.js} +5 -3
  31. package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-SHBDXEUE.js} +4 -7
  32. package/dist/chunks/{chunk-P6TXQK75.js → chunk-THMBDCRA.js} +5 -3
  33. package/dist/chunks/chunk-TJN4PIYO.js +47 -0
  34. package/dist/chunks/{chunk-DTCQFTHW.js → chunk-TNFIUZ4H.js} +3 -3
  35. package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
  36. package/dist/chunks/{chunk-KXJA42EA.js → chunk-WPBZQVLS.js} +1 -1
  37. package/dist/chunks/{conflict-GFJRS6I7.js → conflict-AMNTM3FV.js} +2 -2
  38. package/dist/chunks/{contract-U3ZGNRWB.js → contract-PLO2V2NO.js} +2333 -4426
  39. package/dist/chunks/{cowork-EX7PKIDK.js → cowork-FZAXE6FO.js} +5 -4
  40. package/dist/chunks/{create-flow-EJZD434E.js → create-flow-2DAUN7HU.js} +16 -6
  41. package/dist/chunks/{data-FOODGAMF.js → data-7NXMWET4.js} +3 -3
  42. package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-DEYHX6M7.js} +4 -4
  43. package/dist/chunks/{ehr-TE4RFNID.js → ehr-QQH2DYYA.js} +244 -151
  44. package/dist/chunks/{employee-DR5Y64TI.js → employee-PGMY6NI6.js} +1 -1
  45. package/dist/chunks/{entry-mode-ZOLSXEGX.js → entry-mode-2JTVEKMP.js} +3 -3
  46. package/dist/chunks/{env-TID5NFR6.js → env-2JZMXC6I.js} +2 -2
  47. package/dist/chunks/{esb-7L6MHYLB.js → esb-I5ZFHJUK.js} +8 -8
  48. package/dist/chunks/{factory-OG7BPMH5.js → factory-XIATYHU6.js} +1 -1
  49. package/dist/chunks/{fna-6V2ENR3Y.js → fna-3V2TL6B2.js} +5 -4
  50. package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-CVYUZCOQ.js} +3 -3
  51. package/dist/chunks/{host-TJ5VVHM7.js → host-4DP7C7YQ.js} +4 -4
  52. package/dist/chunks/{host-3DLYA54R.js → host-4KQCAEWA.js} +4 -4
  53. package/dist/chunks/{host-ONZC6AE7.js → host-4X2F3JPQ.js} +4 -4
  54. package/dist/chunks/{host-OGBHL75G.js → host-BD7NAM33.js} +4 -4
  55. package/dist/chunks/{host-VTPAWDZV.js → host-CBONEAZS.js} +4 -4
  56. package/dist/chunks/{host-GOJHHTPY.js → host-L37QVNIV.js} +4 -4
  57. package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-OL3IKN7C.js} +6 -6
  58. package/dist/chunks/{im-XCH47ZBN.js → im-YXQWUF3R.js} +4 -4
  59. package/dist/chunks/{invoice-5KJ7T774.js → invoice-4WY32PR2.js} +4 -4
  60. package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-L6SHLONH.js} +5 -4
  61. package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-OYE6QV24.js} +5 -5
  62. package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-PZV2KNRU.js} +5 -4
  63. package/dist/chunks/{meeting-5E3BNARL.js → meeting-6SOBCC6N.js} +16 -15
  64. package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-KSJSJNOH.js} +4 -4
  65. package/dist/chunks/{okr-3O3XNYOK.js → okr-B76FW5M2.js} +5 -4
  66. package/dist/chunks/{operations-EZWG72FH.js → operations-YOMEGFLV.js} +5 -5
  67. package/dist/chunks/{performance-Y7CPNSOR.js → performance-4VBKUPFO.js} +5 -4
  68. package/dist/chunks/{plan-BLGPZF5M.js → plan-HBNZRQTI.js} +5 -4
  69. package/dist/chunks/{project-6MZMLJMP.js → project-IV6FWK74.js} +5 -4
  70. package/dist/chunks/{reception-F2VT2X52.js → reception-BR5YURT6.js} +3 -3
  71. package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-4HQ6OGXT.js} +654 -336
  72. package/dist/chunks/{registry-I4DVPDMU.js → registry-7LICMV5J.js} +12 -12
  73. package/dist/chunks/{registry-3FYSWV3U.js → registry-JFQEFC7E.js} +3 -3
  74. package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
  75. package/dist/chunks/{registry-7RS74TCK.js → registry-MZJQX65Q.js} +5 -5
  76. package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-43GLLE7Y.js} +4 -4
  77. package/dist/chunks/{schedule-6AN63MJQ.js → schedule-ZQ42BEW6.js} +4 -4
  78. package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-QKAEAZGM.js} +3 -3
  79. package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-6HV7H5PC.js} +10 -7
  80. package/dist/index.js +34 -34
  81. package/dist/internal/e10/auth/commands.js +21 -1
  82. package/dist/internal/e10/auth/xiaoe.js +6 -2
  83. package/dist/internal/e10/auth-recovery.js +28 -2
  84. package/dist/internal/e10/request-runtime.js +15 -3
  85. package/dist/internal/e10/request-trace.js +65 -0
  86. package/dist/shortcuts/contract/data/metric-catalog.js +149 -0
  87. package/dist/shortcuts/contract/index.js +14 -39
  88. package/dist/shortcuts/contract/manifest.js +115 -270
  89. package/dist/shortcuts/contract/operations/compare-report.js +437 -0
  90. package/dist/shortcuts/contract/operations/compare.js +2 -0
  91. package/dist/shortcuts/contract/operations/first-screen.js +96 -207
  92. package/dist/shortcuts/contract/operations/flow.js +19 -1
  93. package/dist/shortcuts/contract/operations/{card-ebdf-list.js → ledger-card.js} +98 -25
  94. package/dist/shortcuts/contract/operations/ledger.js +315 -1
  95. package/dist/shortcuts/contract/operations/metrics.js +93 -0
  96. package/dist/shortcuts/contract/operations/modeltext.js +3 -3
  97. package/dist/shortcuts/contract/operations/page.js +8 -4
  98. package/dist/shortcuts/contract/operations/performance.js +53 -0
  99. package/dist/shortcuts/contract/operations/quote-recognize.js +289 -0
  100. package/dist/shortcuts/contract/operations/quote-submit.js +264 -0
  101. package/dist/shortcuts/contract/operations/recommend.js +42 -1
  102. package/dist/shortcuts/contract/operations/registry.js +16 -23
  103. package/dist/shortcuts/contract/operations/{card-risk-report.js → review-report.js} +24 -114
  104. package/dist/shortcuts/contract/operations/review.js +33 -167
  105. package/dist/shortcuts/contract/operations/save-recognize.js +173 -43
  106. package/dist/shortcuts/contract/operations/triage.js +13 -6
  107. package/dist/shortcuts/contract/operations/{template.js → type-clause-read.js} +10 -25
  108. package/dist/shortcuts/contract/operations/upload.js +17 -11
  109. package/dist/shortcuts/contract/prewarm-cache.js +6 -2
  110. package/dist/shortcuts/contract/prewarm.js +33 -23
  111. package/dist/shortcuts/contract/recommend-cache.js +191 -0
  112. package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +85 -62
  113. package/dist/shortcuts/ehr/operations/recruit-position.js +21 -13
  114. package/dist/shortcuts/ehr/operations/recruit-short-cache.js +59 -0
  115. package/dist/shortcuts/ehr/operations/recruit-tag.js +17 -11
  116. package/dist/shortcuts/ehr/operations/recruit-write.js +118 -70
  117. package/dist/shortcuts/ehr/operations/recruit.js +338 -121
  118. package/dist/shortcuts/hrm/operations/employee.js +64 -17
  119. package/dist/shortcuts/hrm/operations/resolve.js +419 -369
  120. package/dist/shortcuts/im/host.js +38 -22
  121. package/dist/shortcuts/meeting/operations/eb/conflict.js +60 -2
  122. package/dist/shortcuts/meeting/operations/eb/create-flow.js +116 -7
  123. package/dist/shortcuts/meeting/operations/eb/create-form-link.js +380 -0
  124. package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
  125. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +1 -3
  126. package/dist/shortcuts/recruit-stage/batch-store.js +44 -0
  127. package/dist/shortcuts/recruit-stage/context.js +75 -9
  128. package/dist/shortcuts/recruit-stage/manifest.js +1 -1
  129. package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -22
  130. package/dist/shortcuts/recruit-stage/operations/list.js +187 -37
  131. package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
  132. package/dist/shortcuts/recruit-stage/operations/resume-import.js +231 -313
  133. package/dist/shortcuts/recruit-stage/operations/search.js +5 -5
  134. package/dist/shortcuts/recruit-stage/operations/tag.js +286 -0
  135. package/dist/shortcuts/workflow/endpoints.js +2 -0
  136. package/dist/shortcuts/workflow/operations/form.js +12 -15
  137. package/dist/shortcuts/workflow/operations/read.js +8 -8
  138. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +3 -2
  139. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +7 -6
  140. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -3
  141. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
  142. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +33 -6
  143. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +153 -0
  144. package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +232 -0
  145. package/dist/shortcuts/workflow/operations.js +5 -0
  146. package/docs/contract.md +2 -2
  147. package/docs/e10-auth.md +28 -0
  148. package/docs/ehr.md +1 -1
  149. package/package.json +1 -1
  150. package/skills/weaver-e10-hrm/SKILL.md +3 -3
  151. package/skills/weaver-e10-hrm/references/employee.md +13 -2
  152. package/skills/weaver-e10-jinchengda/SKILL.md +237 -347
  153. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +7 -14
  154. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +21 -12
  155. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +109 -185
  156. package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +12 -4
  157. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +28 -20
  158. package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +12 -17
  159. package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +7 -13
  160. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +21 -12
  161. package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
  162. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +18 -17
  163. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +114 -61
  164. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +8 -2
  165. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +73 -104
  166. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +32 -37
  167. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +12 -10
  168. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +70 -82
  169. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +37 -33
  170. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +94 -27
  171. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +5 -5
  172. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +9 -15
  173. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +9 -4
  174. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +59 -32
  175. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +7 -5
  176. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +21 -13
  177. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +13 -13
  178. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +6 -5
  179. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +250 -0
  180. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +11 -20
  181. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +203 -54
  182. package/skills/weaver-e10-jinchengda/references/contract-request-status.md +4 -11
  183. package/skills/weaver-e10-jinchengda/references/contract-request-write.md +11 -17
  184. package/skills/weaver-e10-jinchengda/references/contract-signing-subjects.md +11 -17
  185. package/skills/weaver-e10-jinchengda/references/contract-subject-create.md +5 -11
  186. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +56 -7
  187. package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
  188. package/skills/weaver-e10-jinchengda/references/orchestration.md +31 -33
  189. package/skills/weaver-e10-jucailin/SKILL.md +6 -7
  190. package/skills/weaver-e10-jucailin/agents/openai.yaml +52 -0
  191. package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +8 -6
  192. package/skills/weaver-e10-jucailin/references/recruit-read.md +4 -0
  193. package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +2 -2
  194. package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -4
  195. package/skills/weaver-e10-meeting/SKILL.md +83 -531
  196. package/skills/weaver-e10-meeting/references/commands-table.md +61 -0
  197. package/skills/weaver-e10-meeting/references/create-commands.md +136 -0
  198. package/skills/weaver-e10-meeting/references/create-flow.md +3 -1
  199. package/skills/weaver-e10-meeting/references/create-guardrails.md +14 -8
  200. package/skills/weaver-e10-meeting/references/custom-fields.md +40 -0
  201. package/skills/weaver-e10-meeting/references/eb-contracts.md +60 -0
  202. package/skills/weaver-e10-meeting/references/invitation.md +69 -0
  203. package/skills/weaver-e10-meeting/references/minutes-pipeline.md +119 -0
  204. package/skills/weaver-e10-meeting/references/pitfalls.md +1 -1
  205. package/skills/weaver-e10-meeting/references/room-recommend.md +88 -0
  206. package/skills/weaver-e10-recruit-stage/SKILL.md +317 -266
  207. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +22 -27
  208. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +1 -1
  209. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +30 -27
  210. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +2 -6
  211. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +12 -10
  212. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -0
  213. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +23 -19
  214. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +3 -1
  215. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +18 -16
  216. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +25 -23
  217. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +10 -10
  218. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -2
  219. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +11 -11
  220. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +150 -85
  221. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +14 -18
  222. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +1 -1
  223. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +173 -0
  224. package/skills/weaver-e10-recruit-stage/references/recruit-tag-taxonomy.json +76 -0
  225. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +3 -1
  226. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
  227. package/skills/weaver-e10-workflow/SKILL.md +49 -32
  228. package/skills/weaver-e10-workflow/references/todo-dialogue.md +67 -34
  229. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +65 -51
  230. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +18 -11
  231. package/skills/weaver-e10-workflow/references/workflow-create.md +2 -2
  232. package/skills/weaver-e10-workflow/references/workflow-memory.md +19 -37
  233. package/skills/weaver-e10-workflow/references/workflow-query.md +25 -22
  234. package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
  235. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +318 -110
  236. package/skills/weaver-e10-yimiaoban/SKILL.md +10 -10
  237. package/skills/weaver-e10-yimiaoban/references/person.md +1 -1
  238. package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
  239. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
  240. package/dist/chunks/chunk-6QYNE6HE.js +0 -658
  241. package/dist/chunks/chunk-SHYQUBY3.js +0 -48
  242. package/dist/shortcuts/contract/operations/card-action.js +0 -1266
  243. package/dist/shortcuts/contract/operations/card-plan.js +0 -393
  244. package/dist/shortcuts/contract/operations/card.js +0 -232
  245. package/dist/shortcuts/contract/operations/compare-screen.js +0 -378
  246. package/dist/shortcuts/contract/operations/quote-to-contract.js +0 -495
  247. package/dist/shortcuts/contract/operations/quotescreen.js +0 -529
  248. package/dist/shortcuts/contract/operations/summary-validate.js +0 -293
  249. package/dist/shortcuts/contract/operations/summary.js +0 -187
  250. package/dist/shortcuts/ehr/recruit-stage/batch-store.js +0 -78
  251. package/dist/shortcuts/ehr/recruit-stage/context.js +0 -231
  252. package/dist/shortcuts/ehr/recruit-stage/continuation.js +0 -74
  253. package/dist/shortcuts/ehr/recruit-stage/errors.js +0 -65
  254. package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +0 -165
  255. package/dist/shortcuts/ehr/recruit-stage/host.js +0 -109
  256. package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +0 -1065
  257. package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +0 -295
  258. package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +0 -961
  259. package/dist/shortcuts/ehr/recruit-stage/operations/list.js +0 -431
  260. package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +0 -50
  261. package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +0 -1655
  262. package/dist/shortcuts/ehr/recruit-stage/operations/search.js +0 -158
  263. package/dist/shortcuts/ehr/recruit-stage/operations/types.js +0 -34
  264. package/dist/shortcuts/ehr/recruit-stage/runtime.js +0 -31
  265. package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +0 -318
  266. package/dist/shortcuts/ehr/recruit-stage/shared.js +0 -887
  267. package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +0 -22
  268. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +0 -554
  269. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +0 -279
  270. package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +0 -483
  271. package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +0 -46
  272. package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +0 -194
@@ -39,7 +39,7 @@ import {
39
39
  toNumber,
40
40
  toPageQuery,
41
41
  toPositiveInt
42
- } from "./chunk-JFAWZX53.js";
42
+ } from "./chunk-UPVAQJKS.js";
43
43
  import {
44
44
  shouldReportPlatformError,
45
45
  toPlatformError
@@ -53,12 +53,13 @@ import {
53
53
  createE10RequestRuntime,
54
54
  isE10SessionExpiredResponse,
55
55
  requireE10Session
56
- } from "./chunk-NRYDJN4J.js";
56
+ } from "./chunk-RV2JAA5I.js";
57
+ import {
58
+ E10_SESSION_EXPIRED_MESSAGE
59
+ } from "./chunk-TJN4PIYO.js";
57
60
  import {
58
- E10_SESSION_EXPIRED_MESSAGE,
59
61
  getActiveProfile
60
- } from "./chunk-WIWDVETN.js";
61
- import "./chunk-SHYQUBY3.js";
62
+ } from "./chunk-6VCQLZXE.js";
62
63
  import {
63
64
  isCliError,
64
65
  toErrorEnvelope
@@ -66,7 +67,7 @@ import {
66
67
  import "./chunk-BUSC6UAE.js";
67
68
 
68
69
  // src/shortcuts/ehr/index.ts
69
- import { readFile as readFile3 } from "node:fs/promises";
70
+ import { readFile as readFile4 } from "node:fs/promises";
70
71
 
71
72
  // src/shortcuts/ehr/continuation.ts
72
73
  import { createHmac, randomBytes, timingSafeEqual } from "node:crypto";
@@ -2273,9 +2274,54 @@ var hrReportOperations = [
2273
2274
  ];
2274
2275
 
2275
2276
  // src/shortcuts/ehr/operations/recruit-write.ts
2277
+ import { createHash as createHash4 } from "node:crypto";
2278
+
2279
+ // src/shortcuts/ehr/operations/recruit-short-cache.ts
2276
2280
  import { createHash as createHash3 } from "node:crypto";
2281
+ import { homedir as homedir2 } from "node:os";
2282
+ import { join } from "node:path";
2283
+ import { existsSync as existsSync2 } from "node:fs";
2284
+ import { mkdir as mkdir2, readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
2285
+ var DIR = join(homedir2(), ".weaver-work-cli", "env-cache", "recruit-ops", "_short-cache");
2286
+ function fileOf(ns, baseUrl, key) {
2287
+ const hash = createHash3("sha1").update(`${ns}|${baseUrl}|${key}`).digest("hex").slice(0, 24);
2288
+ return join(DIR, `${ns}-${hash}.json`);
2289
+ }
2290
+ function shortCacheEnabled() {
2291
+ return process.env.E10_RS_NO_SHORT_CACHE !== "1";
2292
+ }
2293
+ async function readShortCache(ns, baseUrl, key, ttlMs) {
2294
+ if (!shortCacheEnabled()) return void 0;
2295
+ try {
2296
+ const path = fileOf(ns, baseUrl, key);
2297
+ if (!existsSync2(path)) return void 0;
2298
+ const raw = JSON.parse(await readFile2(path, "utf8"));
2299
+ if (!raw || typeof raw.at !== "number") return void 0;
2300
+ if (Date.now() - raw.at > ttlMs) return void 0;
2301
+ return raw.data;
2302
+ } catch {
2303
+ return void 0;
2304
+ }
2305
+ }
2306
+ async function writeShortCache(ns, baseUrl, key, data) {
2307
+ if (!shortCacheEnabled()) return;
2308
+ try {
2309
+ await mkdir2(DIR, { recursive: true });
2310
+ await writeFile2(fileOf(ns, baseUrl, key), JSON.stringify({ at: Date.now(), data }), "utf8");
2311
+ } catch {
2312
+ }
2313
+ }
2314
+ async function cachedShort(ns, baseUrl, key, ttlMs, loader) {
2315
+ const hit = await readShortCache(ns, baseUrl, key, ttlMs);
2316
+ if (hit !== void 0) return hit;
2317
+ const data = await loader();
2318
+ await writeShortCache(ns, baseUrl, key, data);
2319
+ return data;
2320
+ }
2321
+
2322
+ // src/shortcuts/ehr/operations/recruit-write.ts
2277
2323
  function fingerprint2(value) {
2278
- return createHash3("sha256").update(JSON.stringify(value ?? null)).digest("hex").slice(0, 32);
2324
+ return createHash4("sha256").update(JSON.stringify(value ?? null)).digest("hex").slice(0, 32);
2279
2325
  }
2280
2326
  function requireConfirm2(args, action) {
2281
2327
  if (args.confirm !== true) {
@@ -2456,22 +2502,29 @@ async function getDsOptions(host, objId, fieldId, groupId) {
2456
2502
  return map;
2457
2503
  }
2458
2504
  async function getDsOptionsFull(host, objId, fieldId, groupId) {
2459
- const response = await host.request({
2460
- path: "/api/ebuilder/common/ds/options",
2461
- query: { fieldName: fieldId, objId, sourceType: "FORM", groupId }
2505
+ const session = await host.getSession();
2506
+ return cachedShort("dsoptions", session.baseUrl, `${objId}|${fieldId}|${groupId}`, 10 * 60 * 1e3, async () => {
2507
+ const response = await host.request({
2508
+ path: "/api/ebuilder/common/ds/options",
2509
+ query: { fieldName: fieldId, objId, sourceType: "FORM", groupId }
2510
+ });
2511
+ const map = {};
2512
+ const disabled = [];
2513
+ for (const option of response?.data || []) {
2514
+ if (!option?.name || !option?.id) continue;
2515
+ if (String(option.archive) === "1") disabled.push({ name: String(option.name), id: String(option.id) });
2516
+ else map[option.name] = String(option.id);
2517
+ }
2518
+ return { map, disabled };
2462
2519
  });
2463
- const map = {};
2464
- const disabled = [];
2465
- for (const option of response?.data || []) {
2466
- if (!option?.name || !option?.id) continue;
2467
- if (String(option.archive) === "1") disabled.push({ name: String(option.name), id: String(option.id) });
2468
- else map[option.name] = String(option.id);
2469
- }
2470
- return { map, disabled };
2471
2520
  }
2472
2521
  async function resolvePersonId(host, _fieldId, keyword) {
2473
2522
  const kw = String(keyword || "").trim();
2474
2523
  if (!kw) return null;
2524
+ const session = await host.getSession();
2525
+ return cachedShort("person", session.baseUrl, kw, 15 * 60 * 1e3, () => lookupPersonId(host, kw));
2526
+ }
2527
+ async function lookupPersonId(host, kw) {
2475
2528
  const formDatas = {
2476
2529
  status: [{ statusSelect: ["normal"] }],
2477
2530
  subcompany: [{ subcompanyOpt: "in" }],
@@ -2513,6 +2566,29 @@ async function resolvePersonId(host, _fieldId, keyword) {
2513
2566
  if (rows.length === 1) return idOf(rows[0]) || null;
2514
2567
  throw ambiguousPerson(kw, rows);
2515
2568
  }
2569
+ async function resolveSelfPersonId(host, selfName) {
2570
+ const name = String(selfName || "").trim();
2571
+ if (!name) return null;
2572
+ const session = await host.getSession();
2573
+ const cached = await readShortCache(
2574
+ "self-person",
2575
+ session.baseUrl,
2576
+ session.userId || "anonymous",
2577
+ 7 * 24 * 60 * 60 * 1e3
2578
+ );
2579
+ if (cached && cached.name === name) {
2580
+ if (cached.sameAsSession && session.userId) return session.userId;
2581
+ return cached.personId || null;
2582
+ }
2583
+ const personId = await resolvePersonId(host, "", name);
2584
+ if (!personId) return null;
2585
+ await writeShortCache("self-person", session.baseUrl, session.userId || "anonymous", {
2586
+ name,
2587
+ personId,
2588
+ sameAsSession: Boolean(session.userId) && personId === session.userId
2589
+ });
2590
+ return personId;
2591
+ }
2516
2592
  function ambiguousPerson(keyword, rows) {
2517
2593
  const candidates = rows.slice(0, 20).map((r) => ({
2518
2594
  id: String(r.id ?? r.value ?? ""),
@@ -3037,7 +3113,21 @@ async function buildInterviewPlan(env, cache, args) {
3037
3113
  throw ehrValidationError("recruit_field_missing", `\u9762\u8BD5\u8BA1\u5212\u8868\u5355\u7F3A\u5C11\u5B57\u6BB5 ${key}\uFF08\u73AF\u5883\u7F13\u5B58 ds/fields \u672A\u89E3\u6790\u5230\uFF0C\u8BF7\u91CD\u5EFA\u73AF\u5883\u7F13\u5B58\u540E\u91CD\u8BD5\uFF09`);
3038
3114
  }
3039
3115
  }
3040
- const typeFull = await getDsOptionsFull(host, objId, fieldIdOf("interview_type"), cache.appId);
3116
+ const interviewerInput = typeof args.interviewer === "string" ? args.interviewer.trim() : "";
3117
+ const mePromise = interviewerInput ? Promise.resolve(null) : resolveCurrentUserForWrite(host);
3118
+ const [typeFull, sessionMap] = await Promise.all([
3119
+ getDsOptionsFull(host, objId, fieldIdOf("interview_type"), cache.appId),
3120
+ getDsOptions(host, objId, fieldIdOf("interview_session"), cache.appId)
3121
+ ]);
3122
+ let interviewerId = null;
3123
+ let interviewer = interviewerInput;
3124
+ if (!interviewerInput) {
3125
+ const me = await mePromise;
3126
+ if (!me) {
3127
+ throw ehrValidationError("interviewer_unresolved", "\u672A\u6307\u5B9A\u9762\u8BD5\u5B98\uFF0C\u4E14\u65E0\u6CD5\u89E3\u6790\u5F53\u524D\u767B\u5F55\u4EBA\uFF08teamsCheck \u5931\u8D25\uFF09\uFF1B\u8BF7\u7528 interviewer \u53C2\u6570\u6307\u5B9A");
3128
+ }
3129
+ interviewer = me.name;
3130
+ }
3041
3131
  const typeOptionId = typeFull.map[type];
3042
3132
  if (!typeOptionId) {
3043
3133
  if (typeFull.disabled.some((d) => d.name === type)) {
@@ -3045,32 +3135,16 @@ async function buildInterviewPlan(env, cache, args) {
3045
3135
  }
3046
3136
  throw ehrValidationError("enum_invalid", `\u9762\u8BD5\u65B9\u5F0F\u300C${type}\u300D\u4E0D\u5728\u679A\u4E3E\u4E2D\uFF08${Object.keys(typeFull.map).join(" / ")}\uFF09`);
3047
3137
  }
3048
- const sessionMap = await getDsOptions(host, objId, fieldIdOf("interview_session"), cache.appId);
3049
3138
  const sessionOptionId = sessionMap[session];
3050
3139
  if (!sessionOptionId) {
3051
3140
  throw ehrValidationError("enum_invalid", `\u9762\u8BD5\u8F6E\u6B21\u300C${session}\u300D\u4E0D\u5728\u679A\u4E3E\u4E2D\uFF08${Object.keys(sessionMap).join(" / ")}\uFF09`);
3052
3141
  }
3053
- const interviewerInput = typeof args.interviewer === "string" ? args.interviewer.trim() : "";
3054
- let interviewerId = null;
3055
- let interviewer = interviewerInput;
3056
- if (interviewerInput) {
3057
- interviewerId = await resolvePersonId(host, fieldIdOf("interviewer"), interviewerInput);
3058
- if (!interviewerId) {
3059
- throw ehrValidationError("interviewer_not_found", `\u9762\u8BD5\u5B98\u300C${interviewerInput}\u300D\u5728\u4EBA\u5458\u5E93\u4E2D\u67E5\u4E0D\u5230\uFF08\u53EF\u80FD\u59D3\u540D\u5199\u9519\u3001\u4E0D\u5728\u672C\u79DF\u6237\uFF0C\u6216\u4E0D\u662F\u5728\u804C\u4EBA\u5458\uFF09`);
3060
- }
3061
- } else {
3062
- const me = await resolveCurrentUserForWrite(host);
3063
- if (!me) {
3064
- throw ehrValidationError("interviewer_unresolved", "\u672A\u6307\u5B9A\u9762\u8BD5\u5B98\uFF0C\u4E14\u65E0\u6CD5\u89E3\u6790\u5F53\u524D\u767B\u5F55\u4EBA\uFF08teamsCheck \u5931\u8D25\uFF09\uFF1B\u8BF7\u7528 interviewer \u53C2\u6570\u6307\u5B9A");
3065
- }
3066
- interviewerId = await resolvePersonId(host, fieldIdOf("interviewer"), me.name);
3067
- if (!interviewerId) {
3068
- throw ehrValidationError(
3069
- "interviewer_unresolved",
3070
- `\u672A\u6307\u5B9A\u9762\u8BD5\u5B98\uFF0C\u5F53\u524D\u767B\u5F55\u4EBA\u300C${me.name}\u300D\u5728\u4EBA\u5458\u5B57\u6BB5\u4E2D\u89E3\u6790\u4E0D\u5230\uFF1B\u8BF7\u7528 interviewer \u53C2\u6570\u6307\u5B9A`
3071
- );
3072
- }
3073
- interviewer = me.name;
3142
+ interviewerId = interviewerInput ? await resolvePersonId(host, fieldIdOf("interviewer"), interviewer) : await resolveSelfPersonId(host, interviewer);
3143
+ if (!interviewerId) {
3144
+ throw ehrValidationError(
3145
+ interviewerInput ? "interviewer_not_found" : "interviewer_unresolved",
3146
+ interviewerInput ? `\u9762\u8BD5\u5B98\u300C${interviewerInput}\u300D\u5728\u4EBA\u5458\u5E93\u4E2D\u67E5\u4E0D\u5230\uFF08\u53EF\u80FD\u59D3\u540D\u5199\u9519\u3001\u4E0D\u5728\u672C\u79DF\u6237\uFF0C\u6216\u4E0D\u662F\u5728\u804C\u4EBA\u5458\uFF09` : `\u672A\u6307\u5B9A\u9762\u8BD5\u5B98\uFF0C\u5F53\u524D\u767B\u5F55\u4EBA\u300C${interviewer}\u300D\u5728\u4EBA\u5458\u5B57\u6BB5\u4E2D\u89E3\u6790\u4E0D\u5230\uFF1B\u8BF7\u7528 interviewer \u53C2\u6570\u6307\u5B9A`
3147
+ );
3074
3148
  }
3075
3149
  let aiPlan = null;
3076
3150
  let aiPlans = [];
@@ -3894,6 +3968,24 @@ async function buildFeedbackEditPlan(env, cache, args) {
3894
3968
  if (args.result === void 0 && args.comment === void 0) {
3895
3969
  throw ehrValidationError("feedback_content_required", "\u8BF7\u63D0\u4F9B result\uFF08\u9762\u8BD5\u7ED3\u679C\uFF09\u548C/\u6216 comment\uFF08\u8BC4\u4EF7\uFF09\u81F3\u5C11\u4E00\u9879");
3896
3970
  }
3971
+ const objId = cacheObjId(cache, "interview_detail", "\u9762\u8BD5\u53CD\u9988\u8868\u5355");
3972
+ const formId = cacheFormId(cache, "interview_detail");
3973
+ const fields = cache.fields[objId] || {};
3974
+ const resultFieldId = fields.result;
3975
+ const judgementFieldId = fields.judgement;
3976
+ if (!resultFieldId || !judgementFieldId) {
3977
+ throw ehrValidationError("recruit_field_missing", "\u73AF\u5883\u7F13\u5B58\u7F3A\u5C11\u9762\u8BD5\u53CD\u9988\u7684 result/judgement \u5B57\u6BB5\u6620\u5C04");
3978
+ }
3979
+ let newResultOptionId = null;
3980
+ let newResultName = "";
3981
+ if (typeof args.result === "string" && args.result.trim()) {
3982
+ const opts = await getDsOptions(host, objId, resultFieldId, cache.appId);
3983
+ newResultOptionId = opts[args.result.trim()] || null;
3984
+ if (!newResultOptionId) {
3985
+ throw ehrValidationError("result_not_in_enum", `\u672A\u8BC6\u522B\u7684\u9762\u8BD5\u7ED3\u679C\u300C${args.result}\u300D\uFF0C\u53EF\u9009\uFF1A${Object.keys(opts).join(" / ")}`);
3986
+ }
3987
+ newResultName = args.result.trim();
3988
+ }
3897
3989
  const candidate = await resolveCandidateForWrite(host, cache, talentId);
3898
3990
  const batchId = candidate.batchId;
3899
3991
  const list = await listInterviewFeedback(host, talentId, batchId);
@@ -3914,25 +4006,8 @@ async function buildFeedbackEditPlan(env, cache, args) {
3914
4006
  if (target.unionStatusId === INVALID_INTERVIEW_STATUS_ID) {
3915
4007
  throw ehrValidationError("interview_invalid_status", `\u8BE5\u9762\u8BD5\u72B6\u6001\u4E3A\u300C\u5DF2\u5931\u6548\u300D\uFF0C\u4E0D\u5141\u8BB8\u586B\u5199/\u7F16\u8F91\u9762\u8BD5\u53CD\u9988\u3002\u9762\u8BD5=${target.planName}\uFF0C\u53CD\u9988\u8BB0\u5F55Id=${target.feedbackId}`);
3916
4008
  }
3917
- const objId = cacheObjId(cache, "interview_detail", "\u9762\u8BD5\u53CD\u9988\u8868\u5355");
3918
- const formId = cacheFormId(cache, "interview_detail");
3919
- const fields = cache.fields[objId] || {};
3920
- const resultFieldId = fields.result;
3921
- const judgementFieldId = fields.judgement;
3922
- if (!resultFieldId || !judgementFieldId) {
3923
- throw ehrValidationError("recruit_field_missing", "\u73AF\u5883\u7F13\u5B58\u7F3A\u5C11\u9762\u8BD5\u53CD\u9988\u7684 result/judgement \u5B57\u6BB5\u6620\u5C04");
3924
- }
3925
- let newResultOptionId = null;
3926
- let newResultName = String(target.result || "");
3927
- if (typeof args.result === "string" && args.result.trim()) {
3928
- const opts = await getDsOptions(host, objId, resultFieldId, cache.appId);
3929
- newResultOptionId = opts[args.result.trim()] || null;
3930
- if (!newResultOptionId) {
3931
- throw ehrValidationError("result_not_in_enum", `\u672A\u8BC6\u522B\u7684\u9762\u8BD5\u7ED3\u679C\u300C${args.result}\u300D\uFF0C\u53EF\u9009\uFF1A${Object.keys(opts).join(" / ")}`);
3932
- }
3933
- newResultName = args.result.trim();
3934
- }
3935
4009
  const newComment = args.comment !== void 0 ? String(args.comment) : null;
4010
+ if (!newResultName) newResultName = String(target.result || "");
3936
4011
  return {
3937
4012
  talentId,
3938
4013
  batchId,
@@ -4090,8 +4165,15 @@ async function buildFeedbackUrgePlan(env, cache, args) {
4090
4165
  const host = env.host;
4091
4166
  const talentId = requiredString(args, "talentId", "talent_id_required", "\u4EBA\u624D ID");
4092
4167
  if (!/^\d+$/.test(talentId)) throw ehrValidationError("talent_id_invalid", "talentId \u5FC5\u987B\u662F\u6570\u5B57 ID");
4168
+ const interviewList = cache.lists.interview;
4169
+ if (!interviewList?.listId) {
4170
+ throw ehrValidationError("recruit_list_unavailable", "\u5F53\u524D\u73AF\u5883\u672A\u542F\u7528\u300C\u9762\u8BD5\u7BA1\u7406\u300D\u529F\u80FD\u83DC\u5355\uFF0C\u65E0\u6CD5\u89E3\u6790\u50AC\u8BC4\u52A8\u4F5C\u6D41\u6309\u94AE");
4171
+ }
4172
+ const interviewDetailObjId = cacheObjId(cache, "interview_detail", "\u9762\u8BD5\u53CD\u9988\u8868\u5355");
4173
+ const actions = await getListActions(host, interviewList.listId, interviewDetailObjId);
4174
+ const esbActionId = pickEsbActionId(actions, ["\u9762\u8BD5\u5B89\u6392\u50AC\u8BC4"], ["\u6279\u91CF\u50AC\u8BC4"]);
4175
+ if (!esbActionId) requireEsbActionId(interviewDetailObjId, ["\u9762\u8BD5\u5B89\u6392\u50AC\u8BC4"], ["\u6279\u91CF\u50AC\u8BC4"]);
4093
4176
  const candidate = await resolveCandidateForWrite(host, cache, talentId);
4094
- const rk = randomHex6();
4095
4177
  const extra = cache.lists.talent?.listId ? { ebBusinessId: cache.lists.talent.listId } : {};
4096
4178
  const interviewResponse = await host.request({
4097
4179
  path: "/api/recruit/candidate/getCandidateCardInterviewInfo",
@@ -4118,14 +4200,6 @@ async function buildFeedbackUrgePlan(env, cache, args) {
4118
4200
  throw ehrValidationError("feedback_not_found", "\u672A\u627E\u5230\u8BE5\u5019\u9009\u4EBA\u7684\u9762\u8BD5\u53CD\u9988\u8BB0\u5F55\uFF0C\u65E0\u6CD5\u50AC\u8BC4");
4119
4201
  }
4120
4202
  const interviewer = target.fb.updater?.[0]?.name || target.it.interviewer?.[0]?.name || candidate.name;
4121
- const interviewList = cache.lists.interview;
4122
- if (!interviewList?.listId) {
4123
- throw ehrValidationError("recruit_list_unavailable", "\u5F53\u524D\u73AF\u5883\u672A\u542F\u7528\u300C\u9762\u8BD5\u7BA1\u7406\u300D\u529F\u80FD\u83DC\u5355\uFF0C\u65E0\u6CD5\u89E3\u6790\u50AC\u8BC4\u52A8\u4F5C\u6D41\u6309\u94AE");
4124
- }
4125
- const interviewDetailObjId = cacheObjId(cache, "interview_detail", "\u9762\u8BD5\u53CD\u9988\u8868\u5355");
4126
- const actions = await getListActions(host, interviewList.listId, interviewDetailObjId);
4127
- const esbActionId = pickEsbActionId(actions, ["\u9762\u8BD5\u5B89\u6392\u50AC\u8BC4"], ["\u6279\u91CF\u50AC\u8BC4"]);
4128
- if (!esbActionId) requireEsbActionId(interviewDetailObjId, ["\u9762\u8BD5\u5B89\u6392\u50AC\u8BC4"], ["\u6279\u91CF\u50AC\u8BC4"]);
4129
4203
  return {
4130
4204
  talentId,
4131
4205
  name: candidate.name,
@@ -4366,7 +4440,7 @@ var recruitStats = {
4366
4440
  var recruitStatsOperations = [recruitStats];
4367
4441
 
4368
4442
  // src/shortcuts/ehr/operations/recruit-position.ts
4369
- import { createHash as createHash4 } from "node:crypto";
4443
+ import { createHash as createHash5 } from "node:crypto";
4370
4444
  var TEXT_KEYS = ["position_name"];
4371
4445
  var MTEXT_KEYS = ["position_duty", "work_request"];
4372
4446
  var PERSON_DEFAULT_KEYS = ["recr_principal", "employ_manager"];
@@ -4400,7 +4474,7 @@ var SET_SCHEMA = Object.fromEntries(
4400
4474
  SET_FIELDS.map((f) => [f.arg, f.kind === "number" ? { type: "string", description: `${f.label}\uFF08\u6570\u5B57\uFF0C\u6309\u5B57\u7B26\u4E32\u4F20\uFF09` } : { type: "string", description: f.label }])
4401
4475
  );
4402
4476
  function fingerprint3(value) {
4403
- return createHash4("sha256").update(JSON.stringify(value ?? null)).digest("hex").slice(0, 32);
4477
+ return createHash5("sha256").update(JSON.stringify(value ?? null)).digest("hex").slice(0, 32);
4404
4478
  }
4405
4479
  function requireConfirm3(args, action) {
4406
4480
  if (args.confirm !== true) {
@@ -4664,12 +4738,14 @@ async function buildPositionPlan(env, cache, args) {
4664
4738
  applied.push(`${field.key}=${value}`);
4665
4739
  }
4666
4740
  }
4667
- for (const [key, name] of Object.entries(OPTION_DEFAULTS)) {
4668
- const fieldId = fid(key);
4669
- if (!fieldId || has(key)) continue;
4670
- const options = await getDsOptions(env.host, objId, fieldId, cache.appId);
4671
- const optionId = options[name];
4672
- if (optionId) put({ formField: { id: fieldId }, dataOptions: [{ optionId: String(optionId), content: name }] });
4741
+ const optionDefaults = Object.entries(OPTION_DEFAULTS).map(([key, name]) => ({ key, name, fieldId: fid(key) })).filter((item) => item.fieldId && !has(item.key));
4742
+ const prefetched = await Promise.all(optionDefaults.map(async (item) => ({
4743
+ ...item,
4744
+ options: await getDsOptions(env.host, objId, item.fieldId, cache.appId)
4745
+ })));
4746
+ for (const item of prefetched) {
4747
+ const optionId = item.options[item.name];
4748
+ if (optionId) put({ formField: { id: item.fieldId }, dataOptions: [{ optionId: String(optionId), content: item.name }] });
4673
4749
  }
4674
4750
  for (const [key, value] of Object.entries(TEXT_DEFAULTS)) {
4675
4751
  const fieldId = fid(key);
@@ -4682,7 +4758,11 @@ async function buildPositionPlan(env, cache, args) {
4682
4758
  put({ formField: { id: fieldId }, dataOptions: [{ optionId: session.userId, content: "\u5F53\u524D\u7528\u6237" }] });
4683
4759
  }
4684
4760
  }
4685
- const refDetails = await fetchReferenceDetails(env, cache, objId, formId);
4761
+ const wantLoc = !has("work_location") && Boolean(fid("work_location"));
4762
+ const [refDetails, defaultLoc] = await Promise.all([
4763
+ fetchReferenceDetails(env, cache, objId, formId),
4764
+ wantLoc ? resolveDefaultWorkLocation(env, cache).catch(() => null) : Promise.resolve(null)
4765
+ ]);
4686
4766
  const refMap = /* @__PURE__ */ new Map();
4687
4767
  for (const detail of refDetails) {
4688
4768
  const id = detail?.formField?.id;
@@ -4703,11 +4783,10 @@ async function buildPositionPlan(env, cache, args) {
4703
4783
  }
4704
4784
  let workLocationDefault = null;
4705
4785
  let workLocationWarning = null;
4706
- if (!has("work_location") && fid("work_location")) {
4707
- const loc = await resolveDefaultWorkLocation(env, cache).catch(() => null);
4708
- if (loc) {
4709
- put({ formField: { id: fid("work_location") }, dataOptions: [{ optionId: loc.id, content: loc.name }] });
4710
- workLocationDefault = loc.name;
4786
+ if (wantLoc) {
4787
+ if (defaultLoc) {
4788
+ put({ formField: { id: fid("work_location") }, dataOptions: [{ optionId: defaultLoc.id, content: defaultLoc.name }] });
4789
+ workLocationDefault = defaultLoc.name;
4711
4790
  } else {
4712
4791
  workLocationWarning = `\u672A\u5728\u300C\u529E\u516C\u5730\u70B9\u300D\u5217\u8868\u627E\u5230\u542F\u7528\u72B6\u6001\u7684\u9ED8\u8BA4\u5730\u70B9\u300C${DEFAULT_WORK_LOCATION}\u300D\uFF0C\u672C\u6B21\u4E0D\u5199 work_location\uFF1B\u8BF7\u7528 workLocation \u663E\u5F0F\u6307\u5B9A`;
4713
4792
  }
@@ -4867,8 +4946,8 @@ var recruitPositionOperations = [
4867
4946
  ];
4868
4947
 
4869
4948
  // src/shortcuts/ehr/operations/recruit-candidate-import.ts
4870
- import { createHash as createHash5 } from "node:crypto";
4871
- import { readFile as readFile2, stat } from "node:fs/promises";
4949
+ import { createHash as createHash6 } from "node:crypto";
4950
+ import { readFile as readFile3, stat } from "node:fs/promises";
4872
4951
  import { basename } from "node:path";
4873
4952
  var SUB_TABLES = [
4874
4953
  {
@@ -5210,7 +5289,7 @@ async function uploadResumeFile(env, filePath, fieldId, formId) {
5210
5289
  let buffer;
5211
5290
  let mtimeMs = Date.now();
5212
5291
  try {
5213
- buffer = await readFile2(filePath);
5292
+ buffer = await readFile3(filePath);
5214
5293
  mtimeMs = (await stat(filePath)).mtimeMs || Date.now();
5215
5294
  } catch {
5216
5295
  throw ehrValidationError("resume_file_unreadable", `\u65E0\u6CD5\u8BFB\u53D6\u7B80\u5386\u6587\u4EF6\uFF1A${filePath}`);
@@ -5247,7 +5326,7 @@ async function uploadResumeFile(env, filePath, fieldId, formId) {
5247
5326
  }
5248
5327
  const fd = baseForm(false);
5249
5328
  fd.append("name", name);
5250
- fd.append("MD5", createHash5("md5").update(buffer).digest("hex"));
5329
+ fd.append("MD5", createHash6("md5").update(buffer).digest("hex"));
5251
5330
  fd.append("lastModified", String(Math.round(mtimeMs)));
5252
5331
  fd.append("lastModifiedDate", String(Math.round(mtimeMs)));
5253
5332
  fd.append("preUploadId", String(preUploadId));
@@ -5802,17 +5881,20 @@ async function queryPage(env, params) {
5802
5881
  tagModules: ["ebuilderform"]
5803
5882
  };
5804
5883
  if (params.groupId !== void 0) body.groupId = params.groupId;
5805
- const res = await env.host.request({
5806
- path: TAG_QUERY_PATH,
5807
- method: "POST",
5808
- body,
5809
- operation: "ehr.recruit.tag.list"
5884
+ const session = await env.host.getSession();
5885
+ return cachedShort("tags", session.baseUrl, `${params.type}|${params.keyword}|${params.groupId ?? ""}|${params.pageNo}|${params.pageSize}`, 10 * 60 * 1e3, async () => {
5886
+ const res = await env.host.request({
5887
+ path: TAG_QUERY_PATH,
5888
+ method: "POST",
5889
+ body,
5890
+ operation: "ehr.recruit.tag.list"
5891
+ });
5892
+ const d = res?.data ?? {};
5893
+ return {
5894
+ total: typeof d.total === "number" ? d.total : null,
5895
+ rows: Array.isArray(d.data) ? d.data : []
5896
+ };
5810
5897
  });
5811
- const d = res?.data ?? {};
5812
- return {
5813
- total: typeof d.total === "number" ? d.total : null,
5814
- rows: Array.isArray(d.data) ? d.data : []
5815
- };
5816
5898
  }
5817
5899
  async function listTags(args, env) {
5818
5900
  const keyword = args.keyword === void 0 ? "" : String(args.keyword).trim();
@@ -5916,7 +5998,8 @@ var recruitTagOperations = [
5916
5998
  // src/shortcuts/ehr/operations/recruit-interview-overview.ts
5917
5999
  var DEFAULT_DAYS = 7;
5918
6000
  var DEFAULT_MAX_PAGES = 100;
5919
- var SERVER_PAGE_SIZE = 10;
6001
+ var SERVER_PAGE_SIZE = 20;
6002
+ var PAGE_BATCH = 6;
5920
6003
  function ymd(d) {
5921
6004
  const y = d.getFullYear();
5922
6005
  const m = String(d.getMonth() + 1).padStart(2, "0");
@@ -5949,7 +6032,9 @@ async function listInterviewPage(env, params) {
5949
6032
  current: params.current,
5950
6033
  pageSize: SERVER_PAGE_SIZE
5951
6034
  });
5952
- const { rows, total } = await fetchListRows(env.host, params.objId, params.listId, body);
6035
+ const { rows, total } = await fetchListRows(env.host, params.objId, params.listId, body, {
6036
+ withCount: params.current === 1
6037
+ });
5953
6038
  return { rows, total };
5954
6039
  }
5955
6040
  async function interviewOverview(args, env) {
@@ -6003,61 +6088,69 @@ async function interviewOverview(args, env) {
6003
6088
  let earlyStop = false;
6004
6089
  let reachedEnd = false;
6005
6090
  let consecutiveBefore = 0;
6006
- for (let current = 1; current <= maxPages; current++) {
6007
- const page = await listInterviewPage(env, {
6008
- objId,
6009
- listId: listParam.listId,
6010
- cusMenuId: listParam.cusMenuId || "",
6011
- menuName: listParam.menuName || listType.title,
6012
- current
6013
- });
6014
- if (listTotal === null) listTotal = page.total;
6015
- if (!page.rows.length) {
6016
- reachedEnd = true;
6017
- break;
6018
- }
6019
- scanned += page.rows.length;
6020
- for (const row of page.rows) {
6021
- const st = normalizeStartTime(row?.start_time);
6022
- if (!st) continue;
6023
- if (st > windowEnd) continue;
6024
- if (st < windowStart) {
6025
- consecutiveBefore += 1;
6026
- continue;
6091
+ const serial = process.env.E10_RS_OVERVIEW_SERIAL === "1";
6092
+ const batchSize = serial ? 1 : PAGE_BATCH;
6093
+ const pageParam = (current) => ({
6094
+ objId,
6095
+ listId: listParam.listId,
6096
+ cusMenuId: listParam.cusMenuId || "",
6097
+ menuName: listParam.menuName || listType.title,
6098
+ current
6099
+ });
6100
+ scanning: for (let batchStart = 1; batchStart <= maxPages; batchStart += batchSize) {
6101
+ const batchEnd = Math.min(batchStart + batchSize - 1, maxPages);
6102
+ const pages = await Promise.all(
6103
+ Array.from({ length: batchEnd - batchStart + 1 }, (_, i) => listInterviewPage(env, pageParam(batchStart + i)))
6104
+ );
6105
+ for (const page of pages) {
6106
+ if (listTotal === null) listTotal = page.total;
6107
+ if (!page.rows.length) {
6108
+ reachedEnd = true;
6109
+ break scanning;
6027
6110
  }
6028
- consecutiveBefore = 0;
6029
- const status = String(row?.union_status ?? "").trim();
6030
- if (status === "\u672A\u5F00\u59CB" || status === "\u5F85\u67E5\u770B" || status === "\u5F85\u53CD\u9988" || status === "\u5DF2\u53CD\u9988") {
6031
- counts[status] += 1;
6032
- } else {
6033
- const key = status || "(\u7A7A)";
6034
- otherStatusCounts.set(key, (otherStatusCounts.get(key) ?? 0) + 1);
6111
+ scanned += page.rows.length;
6112
+ for (const row of page.rows) {
6113
+ const st = normalizeStartTime(row?.start_time);
6114
+ if (!st) continue;
6115
+ if (st > windowEnd) continue;
6116
+ if (st < windowStart) {
6117
+ consecutiveBefore += 1;
6118
+ continue;
6119
+ }
6120
+ consecutiveBefore = 0;
6121
+ const status = String(row?.union_status ?? "").trim();
6122
+ if (status === "\u672A\u5F00\u59CB" || status === "\u5F85\u67E5\u770B" || status === "\u5F85\u53CD\u9988" || status === "\u5DF2\u53CD\u9988") {
6123
+ counts[status] += 1;
6124
+ } else {
6125
+ const key = status || "(\u7A7A)";
6126
+ otherStatusCounts.set(key, (otherStatusCounts.get(key) ?? 0) + 1);
6127
+ }
6128
+ if (status === "\u5F85\u53CD\u9988" || status === "\u5F85\u67E5\u770B") {
6129
+ const who = namesOf(row?.interviewer) || "(\u672A\u6307\u5B9A\u9762\u8BD5\u5B98)";
6130
+ const rec = byInterviewer.get(who) ?? { pendingFeedback: 0, pendingView: 0 };
6131
+ if (status === "\u5F85\u53CD\u9988") rec.pendingFeedback += 1;
6132
+ else rec.pendingView += 1;
6133
+ byInterviewer.set(who, rec);
6134
+ }
6135
+ matched.push({
6136
+ startTime: st,
6137
+ status: status || "(\u7A7A)",
6138
+ // 行内 talent_id / position_manage_id / interviewer 放的是人名或门户结构,不是 id;
6139
+ // 门户结构是 JSON 字符串,必须用 namesOf 解析,否则整段 JSON 会被人当成人名
6140
+ candidate: namesOf(row?.talent_id) || "",
6141
+ position: namesOf(row?.position_manage_id) || "",
6142
+ interviewer: namesOf(row?.interviewer) || "",
6143
+ type: namesOf(row?.interview_type) || "",
6144
+ session: namesOf(row?.interview_session) || "",
6145
+ rounds: namesOf(row?.interview_rounds) || "",
6146
+ formDataId: String(row?.form_data_id ?? "").trim(),
6147
+ candidateManageId: String(row?.candidate_manage_id ?? "").trim()
6148
+ });
6035
6149
  }
6036
- if (status === "\u5F85\u53CD\u9988" || status === "\u5F85\u67E5\u770B") {
6037
- const who = namesOf(row?.interviewer) || "(\u672A\u6307\u5B9A\u9762\u8BD5\u5B98)";
6038
- const rec = byInterviewer.get(who) ?? { pendingFeedback: 0, pendingView: 0 };
6039
- if (status === "\u5F85\u53CD\u9988") rec.pendingFeedback += 1;
6040
- else rec.pendingView += 1;
6041
- byInterviewer.set(who, rec);
6150
+ if (consecutiveBefore >= 3) {
6151
+ earlyStop = true;
6152
+ break scanning;
6042
6153
  }
6043
- matched.push({
6044
- startTime: st,
6045
- status: status || "(\u7A7A)",
6046
- // 行内 talent_id / position_manage_id / interviewer 放的是人名或门户结构,不是 id;
6047
- // 门户结构是 JSON 字符串,必须用 namesOf 解析,否则整段 JSON 会被人当成人名
6048
- candidate: namesOf(row?.talent_id) || "",
6049
- position: namesOf(row?.position_manage_id) || "",
6050
- interviewer: namesOf(row?.interviewer) || "",
6051
- type: namesOf(row?.interview_type) || "",
6052
- session: namesOf(row?.interview_session) || "",
6053
- rounds: namesOf(row?.interview_rounds) || "",
6054
- formDataId: String(row?.form_data_id ?? "").trim(),
6055
- candidateManageId: String(row?.candidate_manage_id ?? "").trim()
6056
- });
6057
- }
6058
- if (consecutiveBefore >= 3) {
6059
- earlyStop = true;
6060
- break;
6061
6154
  }
6062
6155
  }
6063
6156
  const truncated = !earlyStop && !reachedEnd;
@@ -6438,7 +6531,7 @@ async function inputFrom(options, extra = {}) {
6438
6531
  if (opts.input) {
6439
6532
  let raw;
6440
6533
  try {
6441
- raw = stripBom(opts.input === "-" ? await readStdin() : await readFile3(String(opts.input), "utf8"));
6534
+ raw = stripBom(opts.input === "-" ? await readStdin() : await readFile4(String(opts.input), "utf8"));
6442
6535
  } catch {
6443
6536
  throw ehrValidationError("input_unreadable", `\u65E0\u6CD5\u8BFB\u53D6 --input\uFF1A${String(opts.input)}`);
6444
6537
  }
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  hrmEmployeeOperations
5
- } from "./chunk-IW7A2IQY.js";
5
+ } from "./chunk-C4YQJFZV.js";
6
6
  import "./chunk-JEQHNNSS.js";
7
7
  import "./chunk-56EZERK4.js";
8
8
  import "./chunk-UG5G54VL.js";
@@ -5,9 +5,9 @@ import {
5
5
  meetingEntryOperations,
6
6
  readEntryChoice,
7
7
  verifyEntryToken
8
- } from "./chunk-YI2YMW5N.js";
9
- import "./chunk-E5YD5JWR.js";
10
- import "./chunk-DTCQFTHW.js";
8
+ } from "./chunk-IGICM3WJ.js";
9
+ import "./chunk-BY3WDJO5.js";
10
+ import "./chunk-TNFIUZ4H.js";
11
11
  import "./chunk-7BDPM5ST.js";
12
12
  import "./chunk-UG5G54VL.js";
13
13
  import "./chunk-BUSC6UAE.js";
@@ -6,8 +6,8 @@ import {
6
6
  meetingStateDir,
7
7
  readCache,
8
8
  resolveMeetingEnvMode
9
- } from "./chunk-E5YD5JWR.js";
10
- import "./chunk-DTCQFTHW.js";
9
+ } from "./chunk-BY3WDJO5.js";
10
+ import "./chunk-TNFIUZ4H.js";
11
11
  import "./chunk-7BDPM5ST.js";
12
12
  import "./chunk-UG5G54VL.js";
13
13
  import "./chunk-BUSC6UAE.js";
@@ -1,18 +1,18 @@
1
1
  import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
- import {
4
- createEsbContinuationSigner
5
- } from "./chunk-UL5XUQ25.js";
6
3
  import {
7
4
  asObject,
8
5
  assertKnownKeys,
9
6
  assertNoForbiddenKeys,
10
7
  esbManifest,
11
8
  getEsbOperation
12
- } from "./chunk-EGANE35F.js";
9
+ } from "./chunk-6G2JARDK.js";
13
10
  import {
14
11
  createEsbHost
15
- } from "./chunk-KY3R42RS.js";
12
+ } from "./chunk-GQK6WLOS.js";
13
+ import {
14
+ createEsbContinuationSigner
15
+ } from "./chunk-UL5XUQ25.js";
16
16
  import {
17
17
  esbValidationError
18
18
  } from "./chunk-TXUG266F.js";
@@ -20,9 +20,9 @@ import {
20
20
  reportPlatformError
21
21
  } from "./chunk-6N4JPNFL.js";
22
22
  import "./chunk-7BDPM5ST.js";
23
- import "./chunk-NRYDJN4J.js";
24
- import "./chunk-WIWDVETN.js";
25
- import "./chunk-SHYQUBY3.js";
23
+ import "./chunk-RV2JAA5I.js";
24
+ import "./chunk-TJN4PIYO.js";
25
+ import "./chunk-6VCQLZXE.js";
26
26
  import {
27
27
  isCliError,
28
28
  toErrorEnvelope