weaver-work-cli 0.1.62 → 0.1.64

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 (299) hide show
  1. package/dist/chunks/{archive-S2VKZWQ3.js → archive-WUZKAEZ6.js} +5 -4
  2. package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-PN46RTI2.js} +5 -4
  3. package/dist/chunks/{asset-HYH4W357.js → asset-ZPC5VWZM.js} +5 -4
  4. package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-DHGP3NYY.js} +5 -4
  5. package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-JQDW3BIB.js} +3 -3
  6. package/dist/chunks/{blog-SLMZZICV.js → blog-JC47AIXK.js} +5 -4
  7. package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-IKIHM77A.js} +5 -5
  8. package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-GZTSJ57Y.js} +5 -4
  9. package/dist/chunks/{chunk-H6YOMI3U.js → chunk-26FCCU5O.js} +5 -3
  10. package/dist/chunks/{chunk-E5YD5JWR.js → chunk-3PCXBG4H.js} +1 -1
  11. package/dist/chunks/{chunk-UBRWONP4.js → chunk-3W5NMGDS.js} +2 -2
  12. package/dist/chunks/{chunk-DTCQFTHW.js → chunk-4AFWOGOV.js} +3 -3
  13. package/dist/chunks/{chunk-VNYOUAWV.js → chunk-5QQKLR6H.js} +11 -11
  14. package/dist/chunks/{chunk-BQYX2UX5.js → chunk-6T5X6YWX.js} +5 -3
  15. package/dist/chunks/{chunk-KXJA42EA.js → chunk-AFZTMYGC.js} +1 -1
  16. package/dist/chunks/{chunk-YI2YMW5N.js → chunk-AGSO3PIK.js} +2 -2
  17. package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
  18. package/dist/chunks/{chunk-WIWDVETN.js → chunk-FDBAFANU.js} +76 -76
  19. package/dist/chunks/{chunk-NRYDJN4J.js → chunk-FJUOUSV3.js} +89 -8
  20. package/dist/chunks/{chunk-EGANE35F.js → chunk-HLT6B26P.js} +1 -1
  21. package/dist/chunks/{chunk-P6TXQK75.js → chunk-HWA2A25Y.js} +5 -3
  22. package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-I3MOFD6Q.js} +4 -7
  23. package/dist/chunks/chunk-IN6NXQ26.js +680 -0
  24. package/dist/chunks/{chunk-UBGWIXU3.js → chunk-INVYKG4I.js} +140 -45
  25. package/dist/chunks/{chunk-QBDXJS2W.js → chunk-K7QKQRSL.js} +168 -62
  26. package/dist/chunks/{chunk-BIA2NKUG.js → chunk-KDFEHDIB.js} +5 -5
  27. package/dist/chunks/{chunk-ILALC2N6.js → chunk-KYDXWYFB.js} +1 -1
  28. package/dist/chunks/{chunk-V2LASYKO.js → chunk-Q6D6PSMH.js} +30 -24
  29. package/dist/chunks/{chunk-UQFPF4EX.js → chunk-RMOH2GMF.js} +2 -2
  30. package/dist/chunks/{chunk-VBFBMM7G.js → chunk-SCMHG23G.js} +387 -70
  31. package/dist/chunks/chunk-TJN4PIYO.js +47 -0
  32. package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
  33. package/dist/chunks/{chunk-KY3R42RS.js → chunk-VLY5RTVO.js} +5 -3
  34. package/dist/chunks/{chunk-TEZHIB6T.js → chunk-WSHIOSGM.js} +5 -3
  35. package/dist/chunks/{chunk-6XSSAUNW.js → chunk-XHSEK2VM.js} +48 -12
  36. package/dist/chunks/{chunk-XT77MP54.js → chunk-YTFNMQO4.js} +410 -24
  37. package/dist/chunks/{conflict-GFJRS6I7.js → conflict-UUC7AFUI.js} +2 -2
  38. package/dist/chunks/{contract-U3ZGNRWB.js → contract-INMS7SYQ.js} +3051 -4497
  39. package/dist/chunks/{cowork-EX7PKIDK.js → cowork-34CBYVQP.js} +5 -4
  40. package/dist/chunks/{create-flow-EJZD434E.js → create-flow-YOR4QTAJ.js} +18 -6
  41. package/dist/chunks/{data-FOODGAMF.js → data-QKWI5325.js} +14 -3
  42. package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-ZONRROK4.js} +4 -4
  43. package/dist/chunks/{ehr-TE4RFNID.js → ehr-2CONM7R6.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-S2ENJ6GZ.js} +3 -3
  46. package/dist/chunks/{env-TID5NFR6.js → env-ZSAXU5PJ.js} +2 -2
  47. package/dist/chunks/{esb-7L6MHYLB.js → esb-FQASCY2H.js} +8 -8
  48. package/dist/chunks/{factory-OG7BPMH5.js → factory-N76QQA53.js} +1 -1
  49. package/dist/chunks/{fna-6V2ENR3Y.js → fna-FCLVIWAS.js} +5 -4
  50. package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-UM665WDZ.js} +3 -3
  51. package/dist/chunks/{host-VTPAWDZV.js → host-2ED2KC4X.js} +4 -4
  52. package/dist/chunks/{host-TJ5VVHM7.js → host-2UYZEY2V.js} +4 -4
  53. package/dist/chunks/{host-3DLYA54R.js → host-46NYKDQP.js} +4 -4
  54. package/dist/chunks/{host-OGBHL75G.js → host-7IPZKIM4.js} +4 -4
  55. package/dist/chunks/{host-GOJHHTPY.js → host-P7G22WNM.js} +4 -4
  56. package/dist/chunks/{host-ONZC6AE7.js → host-XLCBLNJD.js} +4 -4
  57. package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-XKL27NX2.js} +6 -6
  58. package/dist/chunks/{im-XCH47ZBN.js → im-NDYIMASG.js} +4 -4
  59. package/dist/chunks/{invoice-5KJ7T774.js → invoice-MOGNB6HN.js} +4 -4
  60. package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-3T5X7SB7.js} +5 -4
  61. package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-4WOIL3ZQ.js} +5 -5
  62. package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-P7VMUKQW.js} +5 -4
  63. package/dist/chunks/{meeting-5E3BNARL.js → meeting-MMTYDHXA.js} +16 -15
  64. package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-LCSBWGJ3.js} +4 -4
  65. package/dist/chunks/{okr-3O3XNYOK.js → okr-VZXRQGS4.js} +5 -4
  66. package/dist/chunks/{operations-EZWG72FH.js → operations-MI2BSKZX.js} +5 -5
  67. package/dist/chunks/{performance-Y7CPNSOR.js → performance-OPEQNW7Y.js} +873 -17
  68. package/dist/chunks/{plan-BLGPZF5M.js → plan-TJAS4N5X.js} +5 -4
  69. package/dist/chunks/{project-6MZMLJMP.js → project-CYBGU6K6.js} +5 -4
  70. package/dist/chunks/{reception-F2VT2X52.js → reception-3FT2F66K.js} +3 -3
  71. package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-WPGB5BDJ.js} +654 -336
  72. package/dist/chunks/{registry-3FYSWV3U.js → registry-BAWCWV4D.js} +3 -3
  73. package/dist/chunks/{registry-I4DVPDMU.js → registry-FNI5E76J.js} +12 -12
  74. package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
  75. package/dist/chunks/{registry-7RS74TCK.js → registry-QRMXRSCT.js} +5 -5
  76. package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-I7QQRHEL.js} +4 -4
  77. package/dist/chunks/{schedule-6AN63MJQ.js → schedule-3P7EWGNZ.js} +4 -4
  78. package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-FOBSVNYW.js} +3 -3
  79. package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-U2KKTVQY.js} +10 -7
  80. package/dist/index.js +34 -34
  81. package/dist/internal/e10/auth/commands.js +203 -44
  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/error-actions.js +112 -0
  88. package/dist/shortcuts/contract/errors.js +9 -1
  89. package/dist/shortcuts/contract/index.js +14 -39
  90. package/dist/shortcuts/contract/manifest.js +130 -274
  91. package/dist/shortcuts/contract/operations/compare-report.js +437 -0
  92. package/dist/shortcuts/contract/operations/compare.js +2 -0
  93. package/dist/shortcuts/contract/operations/docx-slots.js +112 -5
  94. package/dist/shortcuts/contract/operations/docx-verify.js +2 -70
  95. package/dist/shortcuts/contract/operations/elements-build.js +82 -56
  96. package/dist/shortcuts/contract/operations/elements-spec.js +140 -3
  97. package/dist/shortcuts/contract/operations/first-screen.js +96 -207
  98. package/dist/shortcuts/contract/operations/flow.js +19 -1
  99. package/dist/shortcuts/contract/operations/{card-ebdf-list.js → ledger-card.js} +123 -27
  100. package/dist/shortcuts/contract/operations/ledger.js +343 -1
  101. package/dist/shortcuts/contract/operations/metrics.js +93 -0
  102. package/dist/shortcuts/contract/operations/modeltext.js +3 -3
  103. package/dist/shortcuts/contract/operations/money.js +90 -0
  104. package/dist/shortcuts/contract/operations/page.js +8 -4
  105. package/dist/shortcuts/contract/operations/performance.js +53 -0
  106. package/dist/shortcuts/contract/operations/placeholder-scan.js +104 -0
  107. package/dist/shortcuts/contract/operations/quote-recognize.js +326 -0
  108. package/dist/shortcuts/contract/operations/quote-ref.js +179 -0
  109. package/dist/shortcuts/contract/operations/quote-submit.js +281 -0
  110. package/dist/shortcuts/contract/operations/quote.js +66 -12
  111. package/dist/shortcuts/contract/operations/recommend.js +42 -1
  112. package/dist/shortcuts/contract/operations/registry.js +16 -23
  113. package/dist/shortcuts/contract/operations/{card-risk-report.js → review-report.js} +24 -114
  114. package/dist/shortcuts/contract/operations/review.js +33 -167
  115. package/dist/shortcuts/contract/operations/save-recognize.js +173 -43
  116. package/dist/shortcuts/contract/operations/solutions-spec.js +79 -0
  117. package/dist/shortcuts/contract/operations/triage.js +68 -15
  118. package/dist/shortcuts/contract/operations/{template.js → type-clause-read.js} +10 -25
  119. package/dist/shortcuts/contract/operations/upload.js +17 -11
  120. package/dist/shortcuts/contract/prewarm-cache.js +6 -2
  121. package/dist/shortcuts/contract/prewarm.js +33 -23
  122. package/dist/shortcuts/contract/recommend-cache.js +191 -0
  123. package/dist/shortcuts/data/operations/shared.js +14 -1
  124. package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +85 -62
  125. package/dist/shortcuts/ehr/operations/recruit-position.js +21 -13
  126. package/dist/shortcuts/ehr/operations/recruit-short-cache.js +59 -0
  127. package/dist/shortcuts/ehr/operations/recruit-tag.js +17 -11
  128. package/dist/shortcuts/ehr/operations/recruit-write.js +118 -70
  129. package/dist/shortcuts/ehr/operations/recruit.js +338 -121
  130. package/dist/shortcuts/hrm/operations/employee.js +64 -17
  131. package/dist/shortcuts/hrm/operations/resolve.js +419 -369
  132. package/dist/shortcuts/im/host.js +38 -22
  133. package/dist/shortcuts/meeting/operations/eb/conflict.js +60 -2
  134. package/dist/shortcuts/meeting/operations/eb/create-flow.js +138 -15
  135. package/dist/shortcuts/meeting/operations/eb/create-form-link.js +380 -0
  136. package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
  137. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +1 -3
  138. package/dist/shortcuts/performance/flow-utils.js +363 -0
  139. package/dist/shortcuts/performance/manifest.js +2 -2
  140. package/dist/shortcuts/performance/operations/flow-detail.js +85 -0
  141. package/dist/shortcuts/performance/operations/flow-list.js +213 -0
  142. package/dist/shortcuts/performance/operations/flow-score.js +241 -0
  143. package/dist/shortcuts/performance/operations/registry.js +6 -0
  144. package/dist/shortcuts/recruit-stage/batch-store.js +44 -0
  145. package/dist/shortcuts/recruit-stage/context.js +75 -9
  146. package/dist/shortcuts/recruit-stage/manifest.js +1 -1
  147. package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -22
  148. package/dist/shortcuts/recruit-stage/operations/list.js +187 -37
  149. package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
  150. package/dist/shortcuts/recruit-stage/operations/resume-import.js +231 -313
  151. package/dist/shortcuts/recruit-stage/operations/search.js +5 -5
  152. package/dist/shortcuts/recruit-stage/operations/tag.js +286 -0
  153. package/dist/shortcuts/workflow/endpoints.js +2 -0
  154. package/dist/shortcuts/workflow/operations/form.js +12 -15
  155. package/dist/shortcuts/workflow/operations/read.js +8 -8
  156. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +3 -2
  157. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +7 -6
  158. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -3
  159. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
  160. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +33 -6
  161. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +153 -0
  162. package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +232 -0
  163. package/dist/shortcuts/workflow/operations.js +5 -0
  164. package/docs/contract.md +2 -2
  165. package/docs/e10-auth.md +55 -2
  166. package/docs/ehr.md +1 -1
  167. package/package.json +1 -1
  168. package/skills/weaver-e10-hrm/SKILL.md +3 -3
  169. package/skills/weaver-e10-hrm/references/employee.md +13 -2
  170. package/skills/weaver-e10-jinchengda/SKILL.md +283 -345
  171. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +7 -14
  172. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +21 -12
  173. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +126 -202
  174. package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +13 -5
  175. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +28 -20
  176. package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +12 -17
  177. package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +7 -13
  178. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +47 -16
  179. package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
  180. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +19 -18
  181. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +114 -61
  182. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +8 -2
  183. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +78 -112
  184. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +67 -333
  185. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +18 -15
  186. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +80 -84
  187. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +38 -34
  188. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +132 -47
  189. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +108 -217
  190. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +14 -20
  191. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +13 -7
  192. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +86 -46
  193. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +12 -10
  194. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +22 -14
  195. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +18 -18
  196. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +27 -26
  197. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +252 -0
  198. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +15 -23
  199. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +290 -104
  200. package/skills/weaver-e10-jinchengda/references/contract-request-status.md +5 -12
  201. package/skills/weaver-e10-jinchengda/references/contract-request-write.md +12 -18
  202. package/skills/weaver-e10-jinchengda/references/contract-signing-subjects.md +11 -17
  203. package/skills/weaver-e10-jinchengda/references/contract-subject-create.md +5 -11
  204. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +56 -7
  205. package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +12 -12
  206. package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
  207. package/skills/weaver-e10-jinchengda/references/orchestration.md +33 -35
  208. package/skills/weaver-e10-jucailin/SKILL.md +6 -7
  209. package/skills/weaver-e10-jucailin/agents/openai.yaml +52 -0
  210. package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +8 -6
  211. package/skills/weaver-e10-jucailin/references/recruit-read.md +4 -0
  212. package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +2 -2
  213. package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -4
  214. package/skills/weaver-e10-meeting/SKILL.md +87 -534
  215. package/skills/weaver-e10-meeting/references/commands-table.md +61 -0
  216. package/skills/weaver-e10-meeting/references/create-commands.md +136 -0
  217. package/skills/weaver-e10-meeting/references/create-flow.md +9 -7
  218. package/skills/weaver-e10-meeting/references/create-guardrails.md +23 -17
  219. package/skills/weaver-e10-meeting/references/custom-fields.md +40 -0
  220. package/skills/weaver-e10-meeting/references/eb-contracts.md +60 -0
  221. package/skills/weaver-e10-meeting/references/invitation.md +69 -0
  222. package/skills/weaver-e10-meeting/references/meeting-eb.md +26 -26
  223. package/skills/weaver-e10-meeting/references/meeting-invitation.md +2 -2
  224. package/skills/weaver-e10-meeting/references/meeting-minute-file.md +2 -2
  225. package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
  226. package/skills/weaver-e10-meeting/references/minutes-pipeline.md +119 -0
  227. package/skills/weaver-e10-meeting/references/pitfalls.md +1 -1
  228. package/skills/weaver-e10-meeting/references/room-recommend.md +88 -0
  229. package/skills/weaver-e10-performance/SKILL.md +45 -5
  230. package/skills/weaver-e10-performance/agents/openai.yaml +26 -2
  231. package/skills/weaver-e10-performance/references/flow-api.md +128 -0
  232. package/skills/weaver-e10-performance/references/flow-assess.md +149 -0
  233. package/skills/weaver-e10-recruit-stage/SKILL.md +317 -266
  234. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +22 -27
  235. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +1 -1
  236. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +30 -27
  237. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +2 -6
  238. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +12 -10
  239. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -0
  240. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +23 -19
  241. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +3 -1
  242. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +18 -16
  243. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +25 -23
  244. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +10 -10
  245. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -2
  246. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +11 -11
  247. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +150 -85
  248. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +14 -18
  249. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +1 -1
  250. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +173 -0
  251. package/skills/weaver-e10-recruit-stage/references/recruit-tag-taxonomy.json +76 -0
  252. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +3 -1
  253. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
  254. package/skills/weaver-e10-workflow/SKILL.md +49 -32
  255. package/skills/weaver-e10-workflow/references/todo-dialogue.md +67 -34
  256. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +65 -51
  257. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +18 -11
  258. package/skills/weaver-e10-workflow/references/workflow-create.md +2 -2
  259. package/skills/weaver-e10-workflow/references/workflow-memory.md +19 -37
  260. package/skills/weaver-e10-workflow/references/workflow-query.md +25 -22
  261. package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
  262. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +318 -110
  263. package/skills/weaver-e10-yimiaoban/SKILL.md +17 -14
  264. package/skills/weaver-e10-yimiaoban/references/person.md +1 -1
  265. package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
  266. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
  267. package/dist/chunks/chunk-6QYNE6HE.js +0 -658
  268. package/dist/chunks/chunk-SHYQUBY3.js +0 -48
  269. package/dist/shortcuts/contract/operations/card-action.js +0 -1266
  270. package/dist/shortcuts/contract/operations/card-plan.js +0 -393
  271. package/dist/shortcuts/contract/operations/card.js +0 -232
  272. package/dist/shortcuts/contract/operations/compare-screen.js +0 -378
  273. package/dist/shortcuts/contract/operations/quote-to-contract.js +0 -495
  274. package/dist/shortcuts/contract/operations/quotescreen.js +0 -529
  275. package/dist/shortcuts/contract/operations/summary-validate.js +0 -293
  276. package/dist/shortcuts/contract/operations/summary.js +0 -187
  277. package/dist/shortcuts/ehr/recruit-stage/batch-store.js +0 -78
  278. package/dist/shortcuts/ehr/recruit-stage/context.js +0 -231
  279. package/dist/shortcuts/ehr/recruit-stage/continuation.js +0 -74
  280. package/dist/shortcuts/ehr/recruit-stage/errors.js +0 -65
  281. package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +0 -165
  282. package/dist/shortcuts/ehr/recruit-stage/host.js +0 -109
  283. package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +0 -1065
  284. package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +0 -295
  285. package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +0 -961
  286. package/dist/shortcuts/ehr/recruit-stage/operations/list.js +0 -431
  287. package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +0 -50
  288. package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +0 -1655
  289. package/dist/shortcuts/ehr/recruit-stage/operations/search.js +0 -158
  290. package/dist/shortcuts/ehr/recruit-stage/operations/types.js +0 -34
  291. package/dist/shortcuts/ehr/recruit-stage/runtime.js +0 -31
  292. package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +0 -318
  293. package/dist/shortcuts/ehr/recruit-stage/shared.js +0 -887
  294. package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +0 -22
  295. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +0 -554
  296. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +0 -279
  297. package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +0 -483
  298. package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +0 -46
  299. package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +0 -194
@@ -1,8 +1,5 @@
1
1
  import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
- import {
4
- packagePath
5
- } from "./chunk-SHYQUBY3.js";
6
3
  import {
7
4
  CliError
8
5
  } from "./chunk-UG5G54VL.js";
@@ -1024,13 +1021,46 @@ var E10AuthSession = class _E10AuthSession {
1024
1021
  }
1025
1022
  };
1026
1023
 
1027
- // src/internal/e10/auth/messages.ts
1028
- 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";
1029
- var E10_AUTH_REQUIRED_MESSAGE = `E10 \u767B\u5F55\u6001\u4E0D\u53EF\u7528\u3002${E10_REAUTH_GUIDANCE}`;
1030
- 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";
1031
- 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";
1032
- var E10_XIAOE_NETWORK_UNAVAILABLE_MESSAGE = "\u6682\u65F6\u65E0\u6CD5\u8FDE\u63A5 E10\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5";
1033
- var E10_SESSION_EXPIRED_MESSAGE = `E10 \u767B\u5F55\u6001\u5DF2\u5931\u6548\uFF0C\u672C\u6B21\u64CD\u4F5C\u5DF2\u505C\u6B62\u3002${E10_REAUTH_GUIDANCE}`;
1024
+ // src/core/package-paths.ts
1025
+ import { existsSync as existsSync4, realpathSync } from "node:fs";
1026
+ import { dirname as dirname3, join, resolve as resolve5 } from "node:path";
1027
+ import { fileURLToPath, pathToFileURL } from "node:url";
1028
+ var cachedRoot;
1029
+ function entryDirectory(entry) {
1030
+ const absoluteEntry = resolve5(entry);
1031
+ try {
1032
+ return dirname3(realpathSync(absoluteEntry));
1033
+ } catch {
1034
+ return dirname3(absoluteEntry);
1035
+ }
1036
+ }
1037
+ function packageRootDir() {
1038
+ if (cachedRoot) return cachedRoot;
1039
+ const seeds = [];
1040
+ const entry = process.argv[1];
1041
+ if (entry) seeds.push(entryDirectory(entry));
1042
+ seeds.push(dirname3(fileURLToPath(import.meta.url)));
1043
+ for (const seed of seeds) {
1044
+ let dir = seed;
1045
+ for (let depth = 0; depth < 10; depth += 1) {
1046
+ if (existsSync4(join(dir, "package.json"))) {
1047
+ cachedRoot = dir;
1048
+ return dir;
1049
+ }
1050
+ const parent = dirname3(dir);
1051
+ if (parent === dir) break;
1052
+ dir = parent;
1053
+ }
1054
+ }
1055
+ cachedRoot = process.cwd();
1056
+ return cachedRoot;
1057
+ }
1058
+ function packagePath(...segments) {
1059
+ return join(packageRootDir(), ...segments);
1060
+ }
1061
+ function packageFileUrl(...segments) {
1062
+ return pathToFileURL(packagePath(...segments));
1063
+ }
1034
1064
 
1035
1065
  // src/core/runtime-agent.ts
1036
1066
  var XIAOE_RUNTIME_AGENT_ALIASES = /* @__PURE__ */ new Set([
@@ -1054,9 +1084,9 @@ function isXiaoERuntime(options) {
1054
1084
 
1055
1085
  // src/internal/e10/auth/xiaoe.ts
1056
1086
  import { execFile } from "node:child_process";
1057
- import { accessSync, constants as fsConstants, existsSync as existsSync4, readFileSync as readFileSync4, readdirSync as readdirSync2, statSync } from "node:fs";
1087
+ import { accessSync, constants as fsConstants, existsSync as existsSync5, readFileSync as readFileSync4, readdirSync as readdirSync2, statSync } from "node:fs";
1058
1088
  import { homedir as homedir2 } from "node:os";
1059
- import { join } from "node:path";
1089
+ import { join as join2 } from "node:path";
1060
1090
  var DEFAULT_E10_LOGIN_BASE_URL = "https://weapp.eteams.cn";
1061
1091
  var DEFAULT_E10_BASE_URL = "https://www.e-cology.com.cn";
1062
1092
  var XIAOE_AGENT_TYPE = "XiaoE";
@@ -1107,7 +1137,8 @@ var XIAOE_ETEAMID_TTL_MS = 72e5;
1107
1137
  var XIAOE_DIAGNOSTIC_MAX_LENGTH = 300;
1108
1138
  var XIAOE_SCRIPT_DIAGNOSTIC_MAX_LENGTH = 2e3;
1109
1139
  var XIAOE_EXCHANGE_CODE_HINTS = {
1110
- "2001": "The XiaoE account is not bound to an E10 system on this domain; check the E10 baseUrl and the XiaoE-side binding.",
1140
+ "2001": "The XiaoE account is not bound to an E10 system on this domain; check the E10 baseUrl and the XiaoE-side binding. The domain must be a bare https:// host: a port or a path never matches.",
1141
+ "3005": "The same XiaoE account signed in elsewhere; sign in to the XiaoE client again.",
1111
1142
  "3006": "The XiaoE session token was rejected; sign in to the XiaoE client again.",
1112
1143
  "4000": "No generic app has been created for this domain on the eteams side."
1113
1144
  };
@@ -1449,30 +1480,30 @@ function xiaoETokenScriptCandidatePaths(env = process.env) {
1449
1480
  const localAppData = envString(env, "LOCALAPPDATA");
1450
1481
  const userProfile = envString(env, "USERPROFILE");
1451
1482
  return uniqueStrings([
1452
- localAppData ? join(localAppData, "xiaoeUserData", "tokens.py") : "",
1453
- userProfile ? join(userProfile, "AppData", "Local", "xiaoeUserData", "tokens.py") : ""
1483
+ localAppData ? join2(localAppData, "xiaoeUserData", "tokens.py") : "",
1484
+ userProfile ? join2(userProfile, "AppData", "Local", "xiaoeUserData", "tokens.py") : ""
1454
1485
  ]);
1455
1486
  }
1456
1487
  const envHome = envString(env, "HOME");
1457
1488
  const nodeHome = envHome ? "" : homedir2();
1458
1489
  return uniqueStrings([
1459
- envHome ? join(envHome, "Library", "Application Support", "xiaoeUserData", "tokens.py") : "",
1460
- nodeHome ? join(nodeHome, "Library", "Application Support", "xiaoeUserData", "tokens.py") : ""
1490
+ envHome ? join2(envHome, "Library", "Application Support", "xiaoeUserData", "tokens.py") : "",
1491
+ nodeHome ? join2(nodeHome, "Library", "Application Support", "xiaoeUserData", "tokens.py") : ""
1461
1492
  ]);
1462
1493
  }
1463
1494
  function xiaoETokenScriptPath(env = process.env) {
1464
- return xiaoETokenScriptCandidatePaths(env).find((path) => existsSync4(path)) || "";
1495
+ return xiaoETokenScriptCandidatePaths(env).find((path) => existsSync5(path)) || "";
1465
1496
  }
1466
1497
  function xiaoEBundledEnvScriptPath() {
1467
1498
  const scriptPath = packagePath("scripts", "xiaoe_env.py");
1468
- return existsSync4(scriptPath) ? scriptPath : "";
1499
+ return existsSync5(scriptPath) ? scriptPath : "";
1469
1500
  }
1470
1501
  function hasXiaoETokenScript(env = process.env, allowLocalDiscovery = true) {
1471
1502
  const explicit = envString(env, XIAOE_TOKEN_SCRIPT_ENV_KEY, XIAOE_TOKEN_SCRIPT_LEGACY_ENV_KEY);
1472
- if (explicit) return existsSync4(explicit);
1503
+ if (explicit) return existsSync5(explicit);
1473
1504
  if (!allowLocalDiscovery) return false;
1474
1505
  const scriptPath = xiaoETokenScriptPath(env);
1475
- return Boolean(scriptPath && existsSync4(scriptPath));
1506
+ return Boolean(scriptPath && existsSync5(scriptPath));
1476
1507
  }
1477
1508
  function isExecutableFile(path) {
1478
1509
  try {
@@ -1484,18 +1515,18 @@ function isExecutableFile(path) {
1484
1515
  }
1485
1516
  }
1486
1517
  function listXiaoEPythonRuntimeDirectories(resourcesRoot) {
1487
- if (!resourcesRoot || !existsSync4(resourcesRoot)) return [];
1518
+ if (!resourcesRoot || !existsSync5(resourcesRoot)) return [];
1488
1519
  try {
1489
- return readdirSync2(resourcesRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory() && /^Python3(?:[-_.]\d[\d.]*)?$/iu.test(entry.name)).map((entry) => join(resourcesRoot, entry.name)).sort((left, right) => right.localeCompare(left, void 0, { numeric: true }));
1520
+ return readdirSync2(resourcesRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory() && /^Python3(?:[-_.]\d[\d.]*)?$/iu.test(entry.name)).map((entry) => join2(resourcesRoot, entry.name)).sort((left, right) => right.localeCompare(left, void 0, { numeric: true }));
1490
1521
  } catch {
1491
1522
  return [];
1492
1523
  }
1493
1524
  }
1494
1525
  function listExecutablePythonFiles(directory, platform) {
1495
- if (!directory || !existsSync4(directory)) return [];
1526
+ if (!directory || !existsSync5(directory)) return [];
1496
1527
  try {
1497
1528
  const pattern = platform === "win32" ? /^python(?:3(?:\.\d+)*)?\.exe$/iu : /^python3(?:\.\d+)*$/u;
1498
- return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && pattern.test(entry.name)).map((entry) => join(directory, entry.name)).filter(isExecutableFile).sort((left, right) => right.localeCompare(left, void 0, { numeric: true }));
1529
+ return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && pattern.test(entry.name)).map((entry) => join2(directory, entry.name)).filter(isExecutableFile).sort((left, right) => right.localeCompare(left, void 0, { numeric: true }));
1499
1530
  } catch {
1500
1531
  return [];
1501
1532
  }
@@ -1506,7 +1537,7 @@ function xiaoEClientPythonCandidates(env = process.env, platform = process.platf
1506
1537
  const envHome = envString(env, "HOME");
1507
1538
  const nodeHome = homedir2();
1508
1539
  for (const home of uniqueStrings([envHome, nodeHome])) {
1509
- appRoots.push(join(home, "Applications", "\u667A\u80FD\u5C0Fe.app"));
1540
+ appRoots.push(join2(home, "Applications", "\u667A\u80FD\u5C0Fe.app"));
1510
1541
  }
1511
1542
  appRoots.push("/Applications/\u667A\u80FD\u5C0Fe.app");
1512
1543
  } else if (platform === "win32") {
@@ -1519,19 +1550,19 @@ function xiaoEClientPythonCandidates(env = process.env, platform = process.platf
1519
1550
  const appNames = ["\u667A\u80FD\u5C0Fe", "XiaoE", "XiaoEClient", "XiaoEAI"];
1520
1551
  if (localAppData) {
1521
1552
  for (const appName of appNames) {
1522
- appRoots.push(join(localAppData, "Programs", appName), join(localAppData, appName));
1553
+ appRoots.push(join2(localAppData, "Programs", appName), join2(localAppData, appName));
1523
1554
  }
1524
1555
  }
1525
1556
  for (const programFilesRoot of programFiles) {
1526
- for (const appName of appNames) appRoots.push(join(programFilesRoot, appName));
1557
+ for (const appName of appNames) appRoots.push(join2(programFilesRoot, appName));
1527
1558
  }
1528
1559
  }
1529
1560
  const candidates = [];
1530
1561
  for (const appRoot of uniqueStrings(appRoots)) {
1531
- const resourcesRoots = platform === "darwin" ? [join(appRoot, "Contents", "Resources")] : [join(appRoot, "Resources"), appRoot];
1562
+ const resourcesRoots = platform === "darwin" ? [join2(appRoot, "Contents", "Resources")] : [join2(appRoot, "Resources"), appRoot];
1532
1563
  for (const resourcesRoot of resourcesRoots) {
1533
1564
  for (const runtimeRoot of listXiaoEPythonRuntimeDirectories(resourcesRoot)) {
1534
- const executableDirectories = platform === "win32" ? [runtimeRoot, join(runtimeRoot, "bin")] : [join(runtimeRoot, "bin")];
1565
+ const executableDirectories = platform === "win32" ? [runtimeRoot, join2(runtimeRoot, "bin")] : [join2(runtimeRoot, "bin")];
1535
1566
  for (const executableDirectory of executableDirectories) {
1536
1567
  candidates.push(...listExecutablePythonFiles(executableDirectory, platform));
1537
1568
  }
@@ -1651,7 +1682,7 @@ async function runXiaoETokenScriptOnce(pythonCommand, scriptPath, baseUrl, env)
1651
1682
  ' raise SystemExit("XiaoE credential script produced empty stdout")',
1652
1683
  "print(json.dumps(data, ensure_ascii=False))"
1653
1684
  ].join("\n");
1654
- return await new Promise((resolve6, reject) => {
1685
+ return await new Promise((resolve7, reject) => {
1655
1686
  execFile(
1656
1687
  pythonCommand,
1657
1688
  ["-c", wrapper],
@@ -1680,7 +1711,7 @@ async function runXiaoETokenScriptOnce(pythonCommand, scriptPath, baseUrl, env)
1680
1711
  }
1681
1712
  try {
1682
1713
  const parsed = JSON.parse(text);
1683
- resolve6(parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : null);
1714
+ resolve7(parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : null);
1684
1715
  } catch {
1685
1716
  reject(new CliError("XiaoE credential script stdout is not valid JSON.", 3 /* AuthError */));
1686
1717
  }
@@ -1689,7 +1720,7 @@ async function runXiaoETokenScriptOnce(pythonCommand, scriptPath, baseUrl, env)
1689
1720
  });
1690
1721
  }
1691
1722
  async function runXiaoEPythonCredentialScript(scriptPath, baseUrl, env) {
1692
- if (!scriptPath || !existsSync4(scriptPath)) return null;
1723
+ if (!scriptPath || !existsSync5(scriptPath)) return null;
1693
1724
  let lastError = null;
1694
1725
  for (const pythonCommand of xiaoETokenScriptPythonCandidates(env)) {
1695
1726
  try {
@@ -1742,13 +1773,13 @@ async function resolveXiaoEBundledEnvScriptCredential(baseUrl, env = process.env
1742
1773
  function xiaoEClientRobotsRoot(env = process.env) {
1743
1774
  if (process.platform === "win32") {
1744
1775
  const localAppData = envString(env, "LOCALAPPDATA");
1745
- return localAppData ? join(localAppData, "XiaoE", "Robots") : "";
1776
+ return localAppData ? join2(localAppData, "XiaoE", "Robots") : "";
1746
1777
  }
1747
1778
  const home = envString(env, "HOME") || homedir2();
1748
- return home ? join(home, "Library", "Application Support", "XiaoE", "Robots") : "";
1779
+ return home ? join2(home, "Library", "Application Support", "XiaoE", "Robots") : "";
1749
1780
  }
1750
1781
  function isFile(path) {
1751
- if (!path || !existsSync4(path)) return false;
1782
+ if (!path || !existsSync5(path)) return false;
1752
1783
  try {
1753
1784
  return statSync(path).isFile();
1754
1785
  } catch {
@@ -1756,7 +1787,7 @@ function isFile(path) {
1756
1787
  }
1757
1788
  }
1758
1789
  function isDirectory(path) {
1759
- if (!path || !existsSync4(path)) return false;
1790
+ if (!path || !existsSync5(path)) return false;
1760
1791
  try {
1761
1792
  return statSync(path).isDirectory();
1762
1793
  } catch {
@@ -1775,15 +1806,15 @@ function listXiaoEClientSettingsFiles(root) {
1775
1806
  if (!isDirectory(directory)) return;
1776
1807
  try {
1777
1808
  for (const entry of readdirSync2(directory, { withFileTypes: true })) {
1778
- if (entry.isDirectory()) addCandidate(join(directory, entry.name, "user_settings.json"));
1809
+ if (entry.isDirectory()) addCandidate(join2(directory, entry.name, "user_settings.json"));
1779
1810
  }
1780
1811
  } catch {
1781
1812
  }
1782
1813
  };
1783
- addCandidate(join(root, "user_settings.json"));
1814
+ addCandidate(join2(root, "user_settings.json"));
1784
1815
  addChildSettings(root);
1785
- const robotsRoot = join(root, "Robots");
1786
- addCandidate(join(robotsRoot, "user_settings.json"));
1816
+ const robotsRoot = join2(root, "Robots");
1817
+ addCandidate(join2(robotsRoot, "user_settings.json"));
1787
1818
  addChildSettings(robotsRoot);
1788
1819
  return uniqueStrings(candidates);
1789
1820
  }
@@ -2269,32 +2300,10 @@ async function tryXiaoEUnifiedLogin(options = {}) {
2269
2300
  }
2270
2301
  }
2271
2302
 
2272
- // src/internal/e10/fetch-timing.ts
2273
- import { AsyncLocalStorage } from "node:async_hooks";
2274
- var storage = new AsyncLocalStorage();
2275
- function createFetchTimingSink() {
2276
- return { fetchMs: 0, fetchCount: 0, fetchStart: null, fetchEnd: null };
2277
- }
2278
- function runWithFetchTiming(sink, fn) {
2279
- return storage.run(sink, fn);
2280
- }
2281
- function startFetchTiming() {
2282
- const sink = storage.getStore();
2283
- if (!sink) return null;
2284
- const startedAt = Date.now();
2285
- let finished = false;
2286
- return () => {
2287
- if (finished) return;
2288
- finished = true;
2289
- const endedAt = Date.now();
2290
- sink.fetchMs += Math.max(0, endedAt - startedAt);
2291
- sink.fetchCount += 1;
2292
- sink.fetchStart = sink.fetchStart === null ? startedAt : Math.min(sink.fetchStart, startedAt);
2293
- sink.fetchEnd = sink.fetchEnd === null ? endedAt : Math.max(sink.fetchEnd, endedAt);
2294
- };
2295
- }
2296
-
2297
2303
  export {
2304
+ packagePath,
2305
+ packageFileUrl,
2306
+ isConnectorMode,
2298
2307
  normalizeGlobalOptions,
2299
2308
  writeWithRetry,
2300
2309
  readErrorCauseCode,
@@ -2321,12 +2330,6 @@ export {
2321
2330
  extractRawSetCookie,
2322
2331
  extractSessionTicket,
2323
2332
  E10AuthSession,
2324
- E10_REAUTH_GUIDANCE,
2325
- E10_AUTH_REQUIRED_MESSAGE,
2326
- E10_XIAOE_RECOVERY_FAILED_MESSAGE,
2327
- E10_XIAOE_HOST_CREDENTIAL_MISSING_MESSAGE,
2328
- E10_XIAOE_NETWORK_UNAVAILABLE_MESSAGE,
2329
- E10_SESSION_EXPIRED_MESSAGE,
2330
2333
  isXiaoERuntimeAgent,
2331
2334
  XIAOE_AGENT_TYPE,
2332
2335
  summarizeXiaoEFailureKind,
@@ -2336,8 +2339,5 @@ export {
2336
2339
  inspectXiaoEUnifiedLoginSources,
2337
2340
  resolveXiaoEPreferredBaseUrl,
2338
2341
  createXiaoEUnifiedLoginUnavailableError,
2339
- tryXiaoEUnifiedLogin,
2340
- createFetchTimingSink,
2341
- runWithFetchTiming,
2342
- startFetchTiming
2342
+ tryXiaoEUnifiedLogin
2343
2343
  };
@@ -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-FDBAFANU.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
  }
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  isEsbFlowUnavailable
5
- } from "./chunk-KY3R42RS.js";
5
+ } from "./chunk-VLY5RTVO.js";
6
6
  import {
7
7
  esbValidationError
8
8
  } from "./chunk-TXUG266F.js";
@@ -9,11 +9,13 @@ import {
9
9
  createE10RequestRuntime,
10
10
  isE10AuthenticationRequired,
11
11
  requireE10Session
12
- } from "./chunk-NRYDJN4J.js";
12
+ } from "./chunk-FJUOUSV3.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-FDBAFANU.js";
17
19
 
18
20
  // src/shortcuts/workflow/host.ts
19
21
  var DEFAULT_TIMEOUT_MS = 3e4;
@@ -4,7 +4,7 @@ import {
4
4
  cacheScopeSuffix,
5
5
  readCache,
6
6
  writeCache
7
- } from "./chunk-ILALC2N6.js";
7
+ } from "./chunk-KYDXWYFB.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-4AFWOGOV.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-ZSAXU5PJ.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-FNI5E76J.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`);