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
@@ -11,11 +11,13 @@ import {
11
11
  createE10RequestRuntime,
12
12
  isE10SessionExpiredResponse,
13
13
  requireE10Session
14
- } from "./chunk-NRYDJN4J.js";
14
+ } from "./chunk-RV2JAA5I.js";
15
+ import {
16
+ E10_SESSION_EXPIRED_MESSAGE
17
+ } from "./chunk-TJN4PIYO.js";
15
18
  import {
16
- E10_SESSION_EXPIRED_MESSAGE,
17
19
  getActiveProfile
18
- } from "./chunk-WIWDVETN.js";
20
+ } from "./chunk-6VCQLZXE.js";
19
21
 
20
22
  // src/shortcuts/hrm/host.ts
21
23
  function inferProfile(ctx) {
@@ -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-E5YD5JWR.js";
5
+ } from "./chunk-BY3WDJO5.js";
6
6
  import {
7
7
  meetingSuccess,
8
8
  meetingValidationError,
9
9
  schemaOf
10
- } from "./chunk-DTCQFTHW.js";
10
+ } from "./chunk-TNFIUZ4H.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-GOJHHTPY.js");
19
+ const { createEsbHost } = await import("./host-L37QVNIV.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-ONZC6AE7.js");
24
+ const { createImHost } = await import("./host-4X2F3JPQ.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-VTPAWDZV.js");
29
+ const { createWorkflowHost } = await import("./host-CBONEAZS.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-EJZD434E.js");
162
+ const { resolveAddressRoom } = await import("./create-flow-2DAUN7HU.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-7RS74TCK.js");
171
+ const { getEsbOperation } = await import("./registry-MZJQX65Q.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-OG7BPMH5.js");
204
+ const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-XIATYHU6.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-I4DVPDMU.js");
222
+ const { getMeetingOperation } = await import("./registry-7LICMV5J.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-3FYSWV3U.js");
238
+ const { getWorkflowOperation } = await import("./registry-JFQEFC7E.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-I4DVPDMU.js");
270
+ const { getMeetingOperation } = await import("./registry-7LICMV5J.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);
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  Command,
24
24
  clearInvoiceTokenForSession
25
- } from "./chunk-TEZHIB6T.js";
25
+ } from "./chunk-SDPC7BG2.js";
26
26
  import {
27
27
  shouldReportPlatformError,
28
28
  toPlatformError
@@ -34,7 +34,7 @@ import {
34
34
  normalizeXiaoEAuthErrorLogLimit,
35
35
  readXiaoEAuthErrorLog,
36
36
  xiaoEAuthLogSecrets
37
- } from "./chunk-NRYDJN4J.js";
37
+ } from "./chunk-RV2JAA5I.js";
38
38
  import {
39
39
  E10AuthSession,
40
40
  XIAOE_AGENT_TYPE,
@@ -53,6 +53,8 @@ import {
53
53
  listProfiles,
54
54
  lookupAgentHost,
55
55
  normalizeGlobalOptions,
56
+ packageFileUrl,
57
+ packagePath,
56
58
  profileNameFromUrl,
57
59
  readProfileConfig,
58
60
  readTeamsCheckUserInfo,
@@ -67,11 +69,7 @@ import {
67
69
  switchActiveProfile,
68
70
  tryXiaoEUnifiedLogin,
69
71
  upsertAgentHost
70
- } from "./chunk-WIWDVETN.js";
71
- import {
72
- packageFileUrl,
73
- packagePath
74
- } from "./chunk-SHYQUBY3.js";
72
+ } from "./chunk-6VCQLZXE.js";
75
73
  import {
76
74
  CliError,
77
75
  isCliError,
@@ -538,7 +536,16 @@ function resolvePromotionKeyword(agentType) {
538
536
  );
539
537
  return matched ? matched.keyword : "";
540
538
  }
541
- function buildE10AuthorizeUrl(baseUrl, redirectUri, agentType, promotionKeyword = resolvePromotionKeyword(agentType)) {
539
+ var PROMOTION_SOURCES = {
540
+ qianwen: "188",
541
+ doubao: "187",
542
+ workbuddy: "186"
543
+ };
544
+ function resolvePromotionSource(promotionKeyword) {
545
+ if (!promotionKeyword) return "";
546
+ return PROMOTION_SOURCES[promotionKeyword] || "";
547
+ }
548
+ function buildE10AuthorizeUrl(baseUrl, redirectUri, agentType, promotionKeyword = resolvePromotionKeyword(agentType), promotionSource = resolvePromotionSource(promotionKeyword)) {
542
549
  const authorizeParams = new URLSearchParams({
543
550
  redirect_uri: redirectUri,
544
551
  response_type: "code",
@@ -547,6 +554,7 @@ function buildE10AuthorizeUrl(baseUrl, redirectUri, agentType, promotionKeyword
547
554
  from: agentType
548
555
  });
549
556
  if (promotionKeyword) authorizeParams.set("promotionKeyword", promotionKeyword);
557
+ if (promotionSource) authorizeParams.set("promotionSource", promotionSource);
550
558
  return `${baseUrl}/papi/sso/oauth2.0/authorize?${authorizeParams.toString()}`;
551
559
  }
552
560
  function isTlsClientHello(error) {
@@ -11,11 +11,13 @@ import {
11
11
  createE10RequestRuntime,
12
12
  isE10SessionExpiredResponse,
13
13
  requireE10Session
14
- } from "./chunk-NRYDJN4J.js";
14
+ } from "./chunk-RV2JAA5I.js";
15
+ import {
16
+ E10_SESSION_EXPIRED_MESSAGE
17
+ } from "./chunk-TJN4PIYO.js";
15
18
  import {
16
- E10_SESSION_EXPIRED_MESSAGE,
17
19
  getActiveProfile
18
- } from "./chunk-WIWDVETN.js";
20
+ } from "./chunk-6VCQLZXE.js";
19
21
 
20
22
  // src/shortcuts/im/host.ts
21
23
  import { createHash } from "node:crypto";
@@ -319,30 +321,34 @@ function createImHost(ctx, dependencies = {}) {
319
321
  const batch = miss.slice(i, i + 100);
320
322
  const res = await request({
321
323
  method: "POST",
322
- path: "/api/hrm/common/getEmployeeByIds",
323
- body: { userIdList: batch, externalIdList: [] },
324
- headers: { devtype: "5" },
324
+ path: "/api/hrm/common/browser/destData/resource",
325
+ body: { browserMultiple: true, selectIds: batch.join(",") },
325
326
  operation: "im.person.resolveByIds",
326
327
  timeoutMs: 15e3
327
328
  });
328
- const list = res?.data?.userList;
329
- if (Array.isArray(list)) {
330
- for (const u of list) {
331
- const brief = {
332
- uid: String(u.id ?? ""),
333
- name: String(u.name ?? ""),
334
- cid: String(u.imCid ?? u.cid ?? ""),
335
- jobNum: String(u.jobNum ?? u.job_num ?? ""),
336
- department: String(u.department ?? ""),
337
- departmentId: String(u.departmentId ?? u.department_id ?? ""),
338
- subCompany: String(u.subCompany ?? u.subcompany ?? ""),
339
- position: String(u.position ?? ""),
340
- mobile: String(u.mobile ?? "")
341
- };
342
- if (brief.uid) {
343
- personCache.set(brief.uid, brief);
344
- result[brief.uid] = brief;
345
- }
329
+ const d = res?.data ?? {};
330
+ const list = Array.isArray(d) ? d : Array.isArray(d.datas) ? d.datas : Array.isArray(d.data) ? d.data : Array.isArray(d.userList) ? d.userList : Array.isArray(d.rows) ? d.rows : null;
331
+ if (!list) {
332
+ throw imValidationError(
333
+ "person_resolve_unexpected_shape",
334
+ `\u4EBA\u5458\u6279\u91CF\u89E3\u6790\u54CD\u5E94\u7ED3\u6784\u5F02\u5E38\uFF08keys=${Object.keys(d).join(",")}\uFF09`
335
+ );
336
+ }
337
+ for (const u of list) {
338
+ const brief = {
339
+ uid: String(u.id ?? u.mainId ?? ""),
340
+ name: String(u.name ?? ""),
341
+ cid: String(u.imCid ?? u.cid ?? ""),
342
+ jobNum: String(u.jobNum ?? u.number ?? u.job_num ?? ""),
343
+ department: String(u.department ?? ""),
344
+ departmentId: String(u.departmentId ?? u.department_id ?? ""),
345
+ subCompany: String(u.subCompany ?? u.subcompany ?? ""),
346
+ position: String(u.position ?? ""),
347
+ mobile: String(u.mobile ?? "")
348
+ };
349
+ if (brief.uid) {
350
+ personCache.set(brief.uid, brief);
351
+ result[brief.uid] = brief;
346
352
  }
347
353
  }
348
354
  }
@@ -1,11 +1,14 @@
1
1
  import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
- E10AuthSession,
5
4
  E10_AUTH_REQUIRED_MESSAGE,
6
5
  E10_XIAOE_HOST_CREDENTIAL_MISSING_MESSAGE,
7
6
  E10_XIAOE_NETWORK_UNAVAILABLE_MESSAGE,
8
7
  E10_XIAOE_RECOVERY_FAILED_MESSAGE,
8
+ startFetchTiming
9
+ } from "./chunk-TJN4PIYO.js";
10
+ import {
11
+ E10AuthSession,
9
12
  getActiveProfile,
10
13
  getE10AuthRoot,
11
14
  hasXiaoEEnv,
@@ -14,10 +17,9 @@ import {
14
17
  readErrorCauseCode,
15
18
  readProfileConfig,
16
19
  resolveXiaoEPreferredBaseUrl,
17
- startFetchTiming,
18
20
  summarizeXiaoEFailureKind,
19
21
  tryXiaoEUnifiedLogin
20
- } from "./chunk-WIWDVETN.js";
22
+ } from "./chunk-6VCQLZXE.js";
21
23
  import {
22
24
  CliError,
23
25
  toErrorEnvelope
@@ -420,9 +422,24 @@ function responseText(response) {
420
422
  }
421
423
  return "";
422
424
  }
423
- function isE10AuthenticationRequired(response) {
425
+ var PERMISSION_DENIED_MARKERS = [
426
+ "\u6CA1\u6709\u6743\u9650",
427
+ "\u65E0\u6743\u9650",
428
+ "\u6743\u9650\u4E0D\u8DB3",
429
+ "\u65E0\u64CD\u4F5C\u6743\u9650",
430
+ "permission denied",
431
+ "forbidden",
432
+ "access denied"
433
+ ];
434
+ function isE10AuthenticationRequired(response, options = {}) {
424
435
  if (isE10SessionExpiredResponse(response)) return true;
425
- if (responseCodes(response.value).some((code) => AUTH_REQUIRED_CODES.has(code))) return true;
436
+ if (responseCodes(response.value).some((code) => AUTH_REQUIRED_CODES.has(code))) {
437
+ if (options.permissionDeniedAsBusiness) {
438
+ const text2 = responseText(response).toLowerCase();
439
+ if (PERMISSION_DENIED_MARKERS.some((marker) => text2.includes(marker.toLowerCase()))) return false;
440
+ }
441
+ return true;
442
+ }
426
443
  const text = responseText(response).toLowerCase();
427
444
  if (!text) return false;
428
445
  if (text.includes("login.jsp")) return true;
@@ -607,6 +624,59 @@ async function requireE10Session(ctx, load = {}) {
607
624
  return session;
608
625
  }
609
626
 
627
+ // src/internal/e10/request-trace.ts
628
+ var items = [];
629
+ var exitHookRegistered = false;
630
+ var seqCounter = 0;
631
+ var startedAtBase = Date.now();
632
+ function enabled() {
633
+ return process.env.E10_TRACE_REQ === "1";
634
+ }
635
+ function ensureExitHook() {
636
+ if (exitHookRegistered) return;
637
+ exitHookRegistered = true;
638
+ process.on("exit", () => {
639
+ if (items.length === 0) return;
640
+ const total = items.reduce((sum, item) => sum + item.ms, 0);
641
+ const lines = [
642
+ `[req-summary] count=${items.length} total=${total}ms avg=${Math.round(total / items.length)}ms`
643
+ ];
644
+ const groups = /* @__PURE__ */ new Map();
645
+ for (const item of items) {
646
+ const key = item.path.split("/").filter(Boolean).slice(0, 3).join("/");
647
+ const prev = groups.get(key) ?? { count: 0, ms: 0 };
648
+ groups.set(key, { count: prev.count + 1, ms: prev.ms + item.ms });
649
+ }
650
+ for (const [key, value] of [...groups.entries()].sort((a, b) => b[1].ms - a[1].ms)) {
651
+ lines.push(`[req-group] /${key} \xD7${value.count} ${value.ms}ms`);
652
+ }
653
+ process.stderr.write(`${lines.join("\n")}
654
+ `);
655
+ });
656
+ }
657
+ function startRequestTrace(request) {
658
+ if (!enabled()) return null;
659
+ ensureExitHook();
660
+ seqCounter += 1;
661
+ const seq = seqCounter;
662
+ const method = (request.method ?? "GET").toUpperCase();
663
+ const offset = Date.now() - startedAtBase;
664
+ const startedAt = Date.now();
665
+ let done = false;
666
+ return (outcome) => {
667
+ if (done) return;
668
+ done = true;
669
+ const ms = Date.now() - startedAt;
670
+ items.push({ seq, method, path: request.path, ms, ok: outcome.ok, note: outcome.note });
671
+ const status = outcome.status === void 0 ? "" : ` ${outcome.status}`;
672
+ const note = outcome.note ? ` ${outcome.note}` : "";
673
+ process.stderr.write(
674
+ `[req ${String(seq).padStart(2)}] t=+${offset}ms ${method} ${request.path} ${ms}ms${status}${note}
675
+ `
676
+ );
677
+ };
678
+ }
679
+
610
680
  // src/internal/e10/request-runtime.ts
611
681
  var DEFAULT_TIMEOUT_MS = 3e4;
612
682
  var DEFAULT_BIG_INT_STRINGS = true;
@@ -682,7 +752,11 @@ var E10RequestRuntime = class {
682
752
  stripReservedHeaders(mutable.headers);
683
753
  const requestEteamsId = this.session.eteamsId;
684
754
  let attempt = await this.executeRequest(mutable, request.trustedHeaders);
685
- if (!mutable.streamBody && !attempt.fromFileRedirect && isE10AuthenticationRequired(authenticationProbe(mutable, attempt.parsed)) && await this.recoverExpiredSession(requestEteamsId)) {
755
+ if (!mutable.streamBody && !attempt.fromFileRedirect && isE10AuthenticationRequired(authenticationProbe(mutable, attempt.parsed), {
756
+ // 🔴 范围收窄(2026-11-18 用户口径):只有招聘接口才把「没有权限」当业务错误;
757
+ // 其他模块(出勤/薪酬/人事基础等)保持历史行为,不因本优化改变失败路径。
758
+ permissionDeniedAsBusiness: mutable.path.startsWith("/api/recruit/")
759
+ }) && await this.recoverExpiredSession(requestEteamsId)) {
686
760
  attempt = await this.executeRequest(mutable, request.trustedHeaders);
687
761
  }
688
762
  await this.runAfterResponse(mutable, this.sessionContext(), attempt.parsed);
@@ -696,7 +770,11 @@ var E10RequestRuntime = class {
696
770
  const url = withQuery(this.session.getBaseUrl(), request.path, request.query);
697
771
  const headers = this.composeHeaders(request, trustedHeaders);
698
772
  const init = this.buildFetchInit(request, headers);
699
- const response = await this.fetchWithTimeout(url, init, request.timeoutMs);
773
+ const traceDone = startRequestTrace(request);
774
+ const response = await this.fetchWithTimeout(url, init, request.timeoutMs).catch((error) => {
775
+ traceDone?.({ ok: false, note: "fetch-error" });
776
+ throw error;
777
+ });
700
778
  const followed = request.responseType === "binary" ? await this.followDownloadRedirect(response, request, url) : { response, followed: false };
701
779
  if (followed.followed && (followed.response.status === 401 || followed.response.status === 403)) {
702
780
  throw new E10ApiError(
@@ -717,7 +795,10 @@ var E10RequestRuntime = class {
717
795
  request.bigIntStrings,
718
796
  request.maxResponseBytes,
719
797
  request.timeoutMs
720
- ),
798
+ ).then((parsed) => {
799
+ traceDone?.({ ok: followed.response.ok, status: followed.response.status });
800
+ return parsed;
801
+ }),
721
802
  fromFileRedirect: followed.followed
722
803
  };
723
804
  }
@@ -4,12 +4,14 @@ import {
4
4
  createE10RequestRuntime,
5
5
  isE10SessionExpiredResponse,
6
6
  requireE10Session
7
- } from "./chunk-NRYDJN4J.js";
7
+ } from "./chunk-RV2JAA5I.js";
8
8
  import {
9
9
  E10_REAUTH_GUIDANCE,
10
- E10_SESSION_EXPIRED_MESSAGE,
10
+ E10_SESSION_EXPIRED_MESSAGE
11
+ } from "./chunk-TJN4PIYO.js";
12
+ import {
11
13
  getActiveProfile
12
- } from "./chunk-WIWDVETN.js";
14
+ } from "./chunk-6VCQLZXE.js";
13
15
  import {
14
16
  CliError
15
17
  } from "./chunk-UG5G54VL.js";
@@ -4,7 +4,7 @@ import {
4
4
  cacheScopeSuffix,
5
5
  readCache,
6
6
  writeCache
7
- } from "./chunk-ILALC2N6.js";
7
+ } from "./chunk-I4C2KR2G.js";
8
8
  import {
9
9
  EB_BASE,
10
10
  SCHEMA_DATETIME_MINUTE,
@@ -13,7 +13,7 @@ import {
13
13
  meetingSuccess,
14
14
  queryBody,
15
15
  schemaOf
16
- } from "./chunk-DTCQFTHW.js";
16
+ } from "./chunk-TNFIUZ4H.js";
17
17
 
18
18
  // src/shortcuts/meeting/operations/eb/usage-cache.ts
19
19
  var USAGE_TTL_MS = 5 * 60 * 1e3;
@@ -88,7 +88,7 @@ async function clearCache(env, key) {
88
88
  try {
89
89
  const { rm } = await import("node:fs/promises");
90
90
  const { join } = await import("node:path");
91
- const { meetingStateDir } = await import("./env-TID5NFR6.js");
91
+ const { meetingStateDir } = await import("./env-2JZMXC6I.js");
92
92
  await rm(join(meetingStateDir(env.ctx), "cache", `${key}.json`), { force: true });
93
93
  } catch {
94
94
  }
@@ -221,7 +221,7 @@ async function loadFrequentRooms(env, options = {}) {
221
221
  const counts = /* @__PURE__ */ new Map();
222
222
  let requests = 0;
223
223
  try {
224
- const { getMeetingOperation } = await import("./registry-I4DVPDMU.js");
224
+ const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
225
225
  const listOp = getMeetingOperation("meeting.eb.meeting.list");
226
226
  let seen = 0;
227
227
  let total = 0;
@@ -323,12 +323,9 @@ async function recommendRooms(env, input) {
323
323
  score += 40 - Math.min(30, freq.rank * 5);
324
324
  }
325
325
  if (memberCount !== null && room.maxNum > 0) {
326
- const waste = room.maxNum - memberCount;
327
326
  reasons.push(`\u5BB9\u91CF ${room.maxNum} \u4EBA\uFF0C\u5BB9\u7EB3 ${memberCount} \u4EBA`);
328
- score += Math.max(0, 20 - Math.min(20, waste));
329
327
  } else if (room.maxNum > 0) {
330
328
  reasons.push(`\u5BB9\u91CF ${room.maxNum} \u4EBA`);
331
- score += 5;
332
329
  }
333
330
  if (belowMinCapacity) {
334
331
  reasons.push(`\u8BE5\u623F\u95F4\u5EFA\u8BAE\u81F3\u5C11 ${room.minNum} \u4EBA\u4F7F\u7528\uFF08\u672C\u6B21 ${memberCount} \u4EBA\uFF0C\u672A\u8FBE\u5EFA\u8BAE\u4E0B\u9650\uFF0C\u5982\u53EF\u7528\u8BF7\u81EA\u884C\u786E\u8BA4\uFF09`);
@@ -9,11 +9,13 @@ import {
9
9
  createE10RequestRuntime,
10
10
  isE10AuthenticationRequired,
11
11
  requireE10Session
12
- } from "./chunk-NRYDJN4J.js";
12
+ } from "./chunk-RV2JAA5I.js";
13
+ import {
14
+ E10_SESSION_EXPIRED_MESSAGE
15
+ } from "./chunk-TJN4PIYO.js";
13
16
  import {
14
- E10_SESSION_EXPIRED_MESSAGE,
15
17
  getActiveProfile
16
- } from "./chunk-WIWDVETN.js";
18
+ } from "./chunk-6VCQLZXE.js";
17
19
 
18
20
  // src/shortcuts/workflow/host.ts
19
21
  var DEFAULT_TIMEOUT_MS = 3e4;
@@ -0,0 +1,47 @@
1
+ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
+ const require = __esbuildCreateRequire(import.meta.url);
3
+
4
+ // src/internal/e10/auth/messages.ts
5
+ var E10_REAUTH_GUIDANCE = "\u8BF7\u7ED3\u5408\u5F53\u524D\u5BBF\u4E3B\u73AF\u5883\u9009\u62E9\u5408\u9002\u7684\u767B\u5F55\u65B9\u5F0F\uFF0C\u6062\u590D\u767B\u5F55\u540E\u91CD\u8BD5\u539F\u8BF7\u6C42\u3002";
6
+ var E10_AUTH_REQUIRED_MESSAGE = `E10 \u767B\u5F55\u6001\u4E0D\u53EF\u7528\u3002${E10_REAUTH_GUIDANCE}`;
7
+ var E10_XIAOE_RECOVERY_FAILED_MESSAGE = "E10 \u767B\u5F55\u6001\u4E0D\u53EF\u7528\u3002\u5DF2\u5C1D\u8BD5\u5C0F e \u81EA\u52A8\u91CD\u65B0\u83B7\u53D6\u767B\u5F55\u4FE1\u606F\uFF0C\u4F46\u672A\u53D6\u5F97\u53EF\u7528\u767B\u5F55\u6001\u3002\u8BF7\u5728\u5C0F e \u4E2D\u6062\u590D\u767B\u5F55\u540E\u91CD\u8BD5\u3002";
8
+ var E10_XIAOE_HOST_CREDENTIAL_MISSING_MESSAGE = "E10 \u767B\u5F55\u6001\u4E0D\u53EF\u7528\u3002\u5C0F e \u7F51\u9875\u7AEF\u672A\u5411\u5F53\u524D\u8FD0\u884C\u73AF\u5883\u6CE8\u5165\u7EDF\u4E00\u767B\u5F55\u51ED\u636E\uFF0C\u81EA\u52A8\u83B7\u53D6\u5DF2\u505C\u6B62\u3002\u8BF7\u68C0\u67E5\u7F51\u9875\u6280\u80FD\u6C99\u7BB1\u7684\u5BBF\u4E3B\u51ED\u636E\u900F\u4F20\u540E\u91CD\u8BD5\u3002";
9
+ var E10_XIAOE_NETWORK_UNAVAILABLE_MESSAGE = "\u6682\u65F6\u65E0\u6CD5\u8FDE\u63A5 E10\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5";
10
+ var E10_SESSION_EXPIRED_MESSAGE = `E10 \u767B\u5F55\u6001\u5DF2\u5931\u6548\uFF0C\u672C\u6B21\u64CD\u4F5C\u5DF2\u505C\u6B62\u3002${E10_REAUTH_GUIDANCE}`;
11
+
12
+ // src/internal/e10/fetch-timing.ts
13
+ import { AsyncLocalStorage } from "node:async_hooks";
14
+ var storage = new AsyncLocalStorage();
15
+ function createFetchTimingSink() {
16
+ return { fetchMs: 0, fetchCount: 0, fetchStart: null, fetchEnd: null };
17
+ }
18
+ function runWithFetchTiming(sink, fn) {
19
+ return storage.run(sink, fn);
20
+ }
21
+ function startFetchTiming() {
22
+ const sink = storage.getStore();
23
+ if (!sink) return null;
24
+ const startedAt = Date.now();
25
+ let finished = false;
26
+ return () => {
27
+ if (finished) return;
28
+ finished = true;
29
+ const endedAt = Date.now();
30
+ sink.fetchMs += Math.max(0, endedAt - startedAt);
31
+ sink.fetchCount += 1;
32
+ sink.fetchStart = sink.fetchStart === null ? startedAt : Math.min(sink.fetchStart, startedAt);
33
+ sink.fetchEnd = sink.fetchEnd === null ? endedAt : Math.max(sink.fetchEnd, endedAt);
34
+ };
35
+ }
36
+
37
+ export {
38
+ E10_REAUTH_GUIDANCE,
39
+ E10_AUTH_REQUIRED_MESSAGE,
40
+ E10_XIAOE_RECOVERY_FAILED_MESSAGE,
41
+ E10_XIAOE_HOST_CREDENTIAL_MISSING_MESSAGE,
42
+ E10_XIAOE_NETWORK_UNAVAILABLE_MESSAGE,
43
+ E10_SESSION_EXPIRED_MESSAGE,
44
+ createFetchTimingSink,
45
+ runWithFetchTiming,
46
+ startFetchTiming
47
+ };
@@ -1568,7 +1568,7 @@ async function buildPersonnelText(env, data) {
1568
1568
  if (ids.length === 0) return {};
1569
1569
  const names = /* @__PURE__ */ new Map();
1570
1570
  try {
1571
- const { hrmEmployeeOperations } = await import("./employee-DR5Y64TI.js");
1571
+ const { hrmEmployeeOperations } = await import("./employee-PGMY6NI6.js");
1572
1572
  const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
1573
1573
  if (batch) {
1574
1574
  const result = await batch.handler({ ids: [...new Set(ids)] }, env);
@@ -2226,7 +2226,7 @@ function buildWriteInputSchema(endpoint, includeConfirm) {
2226
2226
  }
2227
2227
  async function lookupEmployeeDepartmentId(env, userId) {
2228
2228
  try {
2229
- const { hrmEmployeeOperations } = await import("./employee-DR5Y64TI.js");
2229
+ const { hrmEmployeeOperations } = await import("./employee-PGMY6NI6.js");
2230
2230
  const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
2231
2231
  if (!batch) return null;
2232
2232
  const result = await batch.handler({ ids: [userId] }, env);
@@ -2335,7 +2335,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
2335
2335
  );
2336
2336
  }
2337
2337
  if (endpoint.interfacePk === "create_meeting") {
2338
- const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-GFJRS6I7.js");
2338
+ const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-AMNTM3FV.js");
2339
2339
  assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
2340
2340
  }
2341
2341
  const pkQuery = writePkQuery(endpoint, payload);