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,5 +1,6 @@
1
1
  import { READ, ehrSuccess, schemaOf, } from './types.js';
2
2
  import { ehrValidationError } from '../errors.js';
3
+ import { cachedShort } from './recruit-short-cache.js';
3
4
  /**
4
5
  * 招聘标签检索(只读)。
5
6
  *
@@ -46,17 +47,22 @@ async function queryPage(env, params) {
46
47
  // 🔴 groupId 才是服务端真认的过滤参数(tagGroup 不是),见文件头实测记录
47
48
  if (params.groupId !== undefined)
48
49
  body.groupId = params.groupId;
49
- const res = (await env.host.request({
50
- path: TAG_QUERY_PATH,
51
- method: 'POST',
52
- body,
53
- operation: 'ehr.recruit.tag.list',
54
- }));
55
- const d = res?.data ?? {};
56
- return {
57
- total: typeof d.total === 'number' ? d.total : null,
58
- rows: Array.isArray(d.data) ? d.data : [],
59
- };
50
+ // 标签清单是低频变化的只读字典(服务端单笔实测 0.97 s):按「类型+关键词+标签组+页码」缓存 10 min。
51
+ // 新打的标签最多晚 10 min 出现;`E10_RS_NO_SHORT_CACHE=1` 可关闭。
52
+ const session = await env.host.getSession();
53
+ return cachedShort('tags', session.baseUrl, `${params.type}|${params.keyword}|${params.groupId ?? ''}|${params.pageNo}|${params.pageSize}`, 10 * 60 * 1000, async () => {
54
+ const res = (await env.host.request({
55
+ path: TAG_QUERY_PATH,
56
+ method: 'POST',
57
+ body,
58
+ operation: 'ehr.recruit.tag.list',
59
+ }));
60
+ const d = res?.data ?? {};
61
+ return {
62
+ total: typeof d.total === 'number' ? d.total : null,
63
+ rows: (Array.isArray(d.data) ? d.data : []),
64
+ };
65
+ });
60
66
  }
61
67
  async function listTags(args, env) {
62
68
  const keyword = args.keyword === undefined ? '' : String(args.keyword).trim();
@@ -2,6 +2,7 @@ import { CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
2
2
  import { createHash } from 'node:crypto';
3
3
  import { ehrConfirmationError, ehrPartialError, ehrValidationError, EhrCliError } from '../errors.js';
4
4
  import { WRITE, ehrSuccess, schemaOf, } from './types.js';
5
+ import { cachedShort, readShortCache, writeShortCache } from './recruit-short-cache.js';
5
6
  function fingerprint(value) {
6
7
  return createHash('sha256').update(JSON.stringify(value ?? null)).digest('hex').slice(0, 32);
7
8
  }
@@ -202,21 +203,26 @@ export async function getDsOptions(host, objId, fieldId, groupId) {
202
203
  * 静默丢弃/落脏值),disabled 单独列出供「已禁用」精确报错。2026-11-09 实证。
203
204
  */
204
205
  export async function getDsOptionsFull(host, objId, fieldId, groupId) {
205
- const response = (await host.request({
206
- path: '/api/ebuilder/common/ds/options',
207
- query: { fieldName: fieldId, objId, sourceType: 'FORM', groupId },
208
- }));
209
- const map = {};
210
- const disabled = [];
211
- for (const option of response?.data || []) {
212
- if (!option?.name || !option?.id)
213
- continue;
214
- if (String(option.archive) === '1')
215
- disabled.push({ name: String(option.name), id: String(option.id) });
216
- else
217
- map[option.name] = String(option.id);
218
- }
219
- return { map, disabled };
206
+ const session = await host.getSession();
207
+ // 枚举短缓存(10 min):ds/options 是「按表单字段取字典」的只读解析,同租户内短期不变。
208
+ // 取不到/过期就照旧发请求,不影响任何判定。
209
+ return cachedShort('dsoptions', session.baseUrl, `${objId}|${fieldId}|${groupId}`, 10 * 60 * 1000, async () => {
210
+ const response = (await host.request({
211
+ path: '/api/ebuilder/common/ds/options',
212
+ query: { fieldName: fieldId, objId, sourceType: 'FORM', groupId },
213
+ }));
214
+ const map = {};
215
+ const disabled = [];
216
+ for (const option of response?.data || []) {
217
+ if (!option?.name || !option?.id)
218
+ continue;
219
+ if (String(option.archive) === '1')
220
+ disabled.push({ name: String(option.name), id: String(option.id) });
221
+ else
222
+ map[option.name] = String(option.id);
223
+ }
224
+ return { map, disabled };
225
+ });
220
226
  }
221
227
  /**
222
228
  * 人员名称 → userId。
@@ -236,6 +242,12 @@ export async function resolvePersonId(host, _fieldId, keyword) {
236
242
  const kw = String(keyword || '').trim();
237
243
  if (!kw)
238
244
  return null;
245
+ const session = await host.getSession();
246
+ // 人员解析短缓存(15 min):写通道最高频的一笔(默认面试官=当前登录人,实测 0.61 s/次)。
247
+ // 只缓存「解析结果」(userId 或 null),命中多人仍抛歧义、绝不缓存。
248
+ return cachedShort('person', session.baseUrl, kw, 15 * 60 * 1000, () => lookupPersonId(host, kw));
249
+ }
250
+ async function lookupPersonId(host, kw) {
239
251
  const formDatas = {
240
252
  status: [{ statusSelect: ['normal'] }],
241
253
  subcompany: [{ subcompanyOpt: 'in' }],
@@ -275,8 +287,37 @@ export async function resolvePersonId(host, _fieldId, keyword) {
275
287
  return idOf(rows[0]) || null;
276
288
  throw ambiguousPerson(kw, rows);
277
289
  }
278
- /** 多人命中:把候选摆出来让用户选,禁止自动取第一条。 */
279
- function ambiguousPerson(keyword, rows) {
290
+ /**
291
+ * 当前登录人的「人员字段 optionId」——优先用登录态 userId,但**必须先有一次实证**:
292
+ * 人员选择字段的 optionId 在个别环境等于人员档案 formDataId 而不是 userId(历史注释有据),
293
+ * 所以不能无条件信任 session.userId。
294
+ *
295
+ * 实证规则:首次按姓名走一次人员检索,把「返回的 id 是否等于 session.userId」连同姓名一起落盘;
296
+ * - 相等 → 后续同环境同姓名直接返回 session.userId(**零请求**);
297
+ * - 不相等 → 后续直接用实证得到的 personId(也不再检索);
298
+ * - 姓名变了(换账号/换人)→ 重新实证一次。
299
+ * 只缓存「实证结果」,不缓存任何猜测值。
300
+ */
301
+ async function resolveSelfPersonId(host, selfName) {
302
+ const name = String(selfName || '').trim();
303
+ if (!name)
304
+ return null;
305
+ const session = await host.getSession();
306
+ const cached = await readShortCache('self-person', session.baseUrl, session.userId || 'anonymous', 7 * 24 * 60 * 60 * 1000);
307
+ if (cached && cached.name === name) {
308
+ if (cached.sameAsSession && session.userId)
309
+ return session.userId;
310
+ return cached.personId || null;
311
+ }
312
+ const personId = await resolvePersonId(host, '', name);
313
+ if (!personId)
314
+ return null;
315
+ await writeShortCache('self-person', session.baseUrl, session.userId || 'anonymous', {
316
+ name, personId, sameAsSession: Boolean(session.userId) && personId === session.userId,
317
+ });
318
+ return personId;
319
+ }
320
+ /** 多人命中:把候选摆出来让用户选,禁止自动取第一条。 */ function ambiguousPerson(keyword, rows) {
280
321
  const candidates = rows.slice(0, 20).map((r) => ({
281
322
  id: String(r.id ?? r.value ?? ''),
282
323
  name: String(r.name ?? ''),
@@ -840,7 +881,24 @@ async function buildInterviewPlan(env, cache, args) {
840
881
  throw ehrValidationError('recruit_field_missing', `面试计划表单缺少字段 ${key}(环境缓存 ds/fields 未解析到,请重建环境缓存后重试)`);
841
882
  }
842
883
  }
843
- const typeFull = await getDsOptionsFull(host, objId, fieldIdOf('interview_type'), cache.appId);
884
+ // 三件事彼此独立(都只依赖候选人上下文):枚举×2 + 面试官人员解析 → 并发发出。
885
+ // 实测原先串行 = 141+153+612 ms;并发后尾段只等最慢的那一笔(人员解析 0.61 s)。
886
+ // 错误优先级保持不变:先取枚举(枚举不合法就先报枚举),再取面试官。
887
+ const interviewerInput = typeof args.interviewer === 'string' ? args.interviewer.trim() : '';
888
+ const mePromise = interviewerInput ? Promise.resolve(null) : resolveCurrentUserForWrite(host);
889
+ const [typeFull, sessionMap] = await Promise.all([
890
+ getDsOptionsFull(host, objId, fieldIdOf('interview_type'), cache.appId),
891
+ getDsOptions(host, objId, fieldIdOf('interview_session'), cache.appId),
892
+ ]);
893
+ let interviewerId = null;
894
+ let interviewer = interviewerInput;
895
+ if (!interviewerInput) {
896
+ const me = await mePromise;
897
+ if (!me) {
898
+ throw ehrValidationError('interviewer_unresolved', '未指定面试官,且无法解析当前登录人(teamsCheck 失败);请用 interviewer 参数指定');
899
+ }
900
+ interviewer = me.name;
901
+ }
844
902
  const typeOptionId = typeFull.map[type];
845
903
  if (!typeOptionId) {
846
904
  if (typeFull.disabled.some((d) => d.name === type)) {
@@ -848,33 +906,19 @@ async function buildInterviewPlan(env, cache, args) {
848
906
  }
849
907
  throw ehrValidationError('enum_invalid', `面试方式「${type}」不在枚举中(${Object.keys(typeFull.map).join(' / ')})`);
850
908
  }
851
- const sessionMap = await getDsOptions(host, objId, fieldIdOf('interview_session'), cache.appId);
852
909
  const sessionOptionId = sessionMap[session];
853
910
  if (!sessionOptionId) {
854
911
  throw ehrValidationError('enum_invalid', `面试轮次「${session}」不在枚举中(${Object.keys(sessionMap).join(' / ')})`);
855
912
  }
856
- // 面试官:显式指定 → 按名解析;未指定 → 默认当前登录人(少问一次,与页面待办默认口径一致)
857
- const interviewerInput = typeof args.interviewer === 'string' ? args.interviewer.trim() : '';
858
- let interviewerId = null;
859
- let interviewer = interviewerInput;
860
- if (interviewerInput) {
861
- interviewerId = await resolvePersonId(host, fieldIdOf('interviewer'), interviewerInput);
862
- if (!interviewerId) {
863
- throw ehrValidationError('interviewer_not_found', `面试官「${interviewerInput}」在人员库中查不到(可能姓名写错、不在本租户,或不是在职人员)`);
864
- }
865
- }
866
- else {
867
- const me = await resolveCurrentUserForWrite(host);
868
- if (!me) {
869
- throw ehrValidationError('interviewer_unresolved', '未指定面试官,且无法解析当前登录人(teamsCheck 失败);请用 interviewer 参数指定');
870
- }
871
- // 🔴 teamsCheck 的 currentUser.id 与人员字段 optionId 语义未必相同(实测两者 id 不同),
872
- // 故用与显式指定完全相同的解析通道(browser/complete/resource)把姓名换成 userId。
873
- interviewerId = await resolvePersonId(host, fieldIdOf('interviewer'), me.name);
874
- if (!interviewerId) {
875
- throw ehrValidationError('interviewer_unresolved', `未指定面试官,当前登录人「${me.name}」在人员字段中解析不到;请用 interviewer 参数指定`);
876
- }
877
- interviewer = me.name;
913
+ // 解析面试官 userId:显式姓名 走人员检索;「当前登录人」先用登录态 userId(零请求),
914
+ // 但必须先有一次实证(同一环境的 person optionId 是否等于 session.userId),实证通过才走快速路径。
915
+ interviewerId = interviewerInput
916
+ ? await resolvePersonId(host, fieldIdOf('interviewer'), interviewer)
917
+ : await resolveSelfPersonId(host, interviewer);
918
+ if (!interviewerId) {
919
+ throw ehrValidationError(interviewerInput ? 'interviewer_not_found' : 'interviewer_unresolved', interviewerInput
920
+ ? `面试官「${interviewerInput}」在人员库中查不到(可能姓名写错、不在本租户,或不是在职人员)`
921
+ : `未指定面试官,当前登录人「${interviewer}」在人员字段中解析不到;请用 interviewer 参数指定`);
878
922
  }
879
923
  // AI 面试:方案(digital_id)与邮箱都是条件必填,不填保存必失败
880
924
  let aiPlan = null;
@@ -1702,6 +1746,26 @@ async function buildFeedbackEditPlan(env, cache, args) {
1702
1746
  if (args.result === undefined && args.comment === undefined) {
1703
1747
  throw ehrValidationError('feedback_content_required', '请提供 result(面试结果)和/或 comment(评价)至少一项');
1704
1748
  }
1749
+ // 先做本地可判定的校验(字段映射 + 结果枚举):枚举不合法时立即返回,
1750
+ // 不再先花 ~1.9 s 把候选人卡片拉一遍。枚举值/错误码与原来完全一致。
1751
+ const objId = cacheObjId(cache, 'interview_detail', '面试反馈表单');
1752
+ const formId = cacheFormId(cache, 'interview_detail');
1753
+ const fields = cache.fields[objId] || {};
1754
+ const resultFieldId = fields.result;
1755
+ const judgementFieldId = fields.judgement;
1756
+ if (!resultFieldId || !judgementFieldId) {
1757
+ throw ehrValidationError('recruit_field_missing', '环境缓存缺少面试反馈的 result/judgement 字段映射');
1758
+ }
1759
+ let newResultOptionId = null;
1760
+ let newResultName = '';
1761
+ if (typeof args.result === 'string' && args.result.trim()) {
1762
+ const opts = await getDsOptions(host, objId, resultFieldId, cache.appId);
1763
+ newResultOptionId = opts[args.result.trim()] || null;
1764
+ if (!newResultOptionId) {
1765
+ throw ehrValidationError('result_not_in_enum', `未识别的面试结果「${args.result}」,可选:${Object.keys(opts).join(' / ')}`);
1766
+ }
1767
+ newResultName = args.result.trim();
1768
+ }
1705
1769
  const candidate = await resolveCandidateForWrite(host, cache, talentId);
1706
1770
  const batchId = candidate.batchId;
1707
1771
  const list = await listInterviewFeedback(host, talentId, batchId);
@@ -1725,25 +1789,9 @@ async function buildFeedbackEditPlan(env, cache, args) {
1725
1789
  if (target.unionStatusId === INVALID_INTERVIEW_STATUS_ID) {
1726
1790
  throw ehrValidationError('interview_invalid_status', `该面试状态为「已失效」,不允许填写/编辑面试反馈。面试=${target.planName},反馈记录Id=${target.feedbackId}`);
1727
1791
  }
1728
- const objId = cacheObjId(cache, 'interview_detail', '面试反馈表单');
1729
- const formId = cacheFormId(cache, 'interview_detail');
1730
- const fields = cache.fields[objId] || {};
1731
- const resultFieldId = fields.result;
1732
- const judgementFieldId = fields.judgement;
1733
- if (!resultFieldId || !judgementFieldId) {
1734
- throw ehrValidationError('recruit_field_missing', '环境缓存缺少面试反馈的 result/judgement 字段映射');
1735
- }
1736
- let newResultOptionId = null;
1737
- let newResultName = String(target.result || '');
1738
- if (typeof args.result === 'string' && args.result.trim()) {
1739
- const opts = await getDsOptions(host, objId, resultFieldId, cache.appId);
1740
- newResultOptionId = opts[args.result.trim()] || null;
1741
- if (!newResultOptionId) {
1742
- throw ehrValidationError('result_not_in_enum', `未识别的面试结果「${args.result}」,可选:${Object.keys(opts).join(' / ')}`);
1743
- }
1744
- newResultName = args.result.trim();
1745
- }
1746
1792
  const newComment = args.comment !== undefined ? String(args.comment) : null;
1793
+ if (!newResultName)
1794
+ newResultName = String(target.result || '');
1747
1795
  return {
1748
1796
  talentId, batchId, feedbackId: String(target.feedbackId), planName: String(target.planName || ''),
1749
1797
  interviewer: String(target.interviewer || ''),
@@ -1891,8 +1939,18 @@ async function buildFeedbackUrgePlan(env, cache, args) {
1891
1939
  const talentId = requiredString(args, 'talentId', 'talent_id_required', '人才 ID');
1892
1940
  if (!/^\d+$/.test(talentId))
1893
1941
  throw ehrValidationError('talent_id_invalid', 'talentId 必须是数字 ID');
1942
+ // 先把「催评动作流按钮」解析出来(1 笔列表按钮请求 ~0.18 s):环境未部署该动作流时立即阻断,
1943
+ // 不再先花 ~2 s 把候选人卡片全部拉一遍才失败。判定顺序变了,结论与错误码完全不变。
1944
+ const interviewList = cache.lists.interview;
1945
+ if (!interviewList?.listId) {
1946
+ throw ehrValidationError('recruit_list_unavailable', '当前环境未启用「面试管理」功能菜单,无法解析催评动作流按钮');
1947
+ }
1948
+ const interviewDetailObjId = cacheObjId(cache, 'interview_detail', '面试反馈表单');
1949
+ const actions = await getListActions(host, interviewList.listId, interviewDetailObjId);
1950
+ const esbActionId = pickEsbActionId(actions, ['面试安排催评'], ['批量催评']);
1951
+ if (!esbActionId)
1952
+ requireEsbActionId(interviewDetailObjId, ['面试安排催评'], ['批量催评']);
1894
1953
  const candidate = await resolveCandidateForWrite(host, cache, talentId);
1895
- const rk = randomHex6();
1896
1954
  const extra = cache.lists.talent?.listId ? { ebBusinessId: cache.lists.talent.listId } : {};
1897
1955
  const interviewResponse = (await host.request({
1898
1956
  path: '/api/recruit/candidate/getCandidateCardInterviewInfo',
@@ -1922,16 +1980,6 @@ async function buildFeedbackUrgePlan(env, cache, args) {
1922
1980
  throw ehrValidationError('feedback_not_found', '未找到该候选人的面试反馈记录,无法催评');
1923
1981
  }
1924
1982
  const interviewer = target.fb.updater?.[0]?.name || target.it.interviewer?.[0]?.name || candidate.name;
1925
- // esb 按钮:面试反馈列表 getListButtons
1926
- const interviewList = cache.lists.interview;
1927
- if (!interviewList?.listId) {
1928
- throw ehrValidationError('recruit_list_unavailable', '当前环境未启用「面试管理」功能菜单,无法解析催评动作流按钮');
1929
- }
1930
- const interviewDetailObjId = cacheObjId(cache, 'interview_detail', '面试反馈表单');
1931
- const actions = await getListActions(host, interviewList.listId, interviewDetailObjId);
1932
- const esbActionId = pickEsbActionId(actions, ['面试安排催评'], ['批量催评']);
1933
- if (!esbActionId)
1934
- requireEsbActionId(interviewDetailObjId, ['面试安排催评'], ['批量催评']);
1935
1983
  return {
1936
1984
  talentId, name: candidate.name,
1937
1985
  subject: String(target.it.subject || ''),