weaver-work-cli 0.1.73 → 0.1.75

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 (310) hide show
  1. package/README.md +37 -1
  2. package/dist/chunks/{archive-THZV4ND4.js → archive-OZJ6PYUR.js} +14 -9
  3. package/dist/chunks/{archive-oa-PQ23OLEV.js → archive-oa-BHL5RK2F.js} +10 -7
  4. package/dist/chunks/{asset-RGPROZYH.js → asset-HKRFRQR2.js} +10 -7
  5. package/dist/chunks/{asset-idle-Z2PDX7NA.js → asset-idle-GGIR4KE7.js} +7 -4
  6. package/dist/chunks/{attachment-content-R3RPVOYE.js → attachment-content-4OV65NK5.js} +3 -3
  7. package/dist/chunks/{blog-7U3QZPIF.js → blog-HYDP4DV3.js} +10 -7
  8. package/dist/chunks/{caizhilian-3AB42GCV.js → caizhilian-JS4RQZ6Z.js} +10 -7
  9. package/dist/chunks/{calendar-KINM64E4.js → calendar-SWRY4DIT.js} +10 -7
  10. package/dist/chunks/chunk-257JXJGD.js +30 -0
  11. package/dist/chunks/{chunk-LLCMOZ5L.js → chunk-2AUFKU2D.js} +11 -11
  12. package/dist/chunks/chunk-2BZ7TY4M.js +49 -0
  13. package/dist/chunks/{chunk-WM33BSIL.js → chunk-2QCCXPNU.js} +1 -1
  14. package/dist/chunks/{chunk-TV46Q4NY.js → chunk-4FCBEWNB.js} +74 -68
  15. package/dist/chunks/{chunk-NUP4RYZK.js → chunk-5D2V7ZAN.js} +2 -2
  16. package/dist/chunks/{chunk-DRUND2PJ.js → chunk-5QUTQHXF.js} +225 -152
  17. package/dist/chunks/{chunk-4BXR6CNB.js → chunk-5ZJGPEIB.js} +2 -2
  18. package/dist/chunks/chunk-7DE3VMZD.js +35 -0
  19. package/dist/chunks/chunk-BNKUHN4N.js +1346 -0
  20. package/dist/chunks/{chunk-2CHGUYMG.js → chunk-BSR5TM7U.js} +4 -4
  21. package/dist/chunks/{chunk-4I26YMBY.js → chunk-ERZY6GYL.js} +7 -3
  22. package/dist/chunks/{chunk-4YXAK6OA.js → chunk-FEZK536Z.js} +12 -7
  23. package/dist/chunks/{chunk-F4HM25K4.js → chunk-I6NOHKEK.js} +1 -1
  24. package/dist/chunks/{chunk-JMJBPP4B.js → chunk-J7FAAHWH.js} +2 -2
  25. package/dist/chunks/{chunk-54ST55IJ.js → chunk-JJONWB5N.js} +11 -1
  26. package/dist/chunks/chunk-JOY3HZXL.js +467 -0
  27. package/dist/chunks/{chunk-GWJLAF6B.js → chunk-JWF2R6EQ.js} +0 -462
  28. package/dist/chunks/{chunk-BWYVS62Z.js → chunk-KEA4XQPO.js} +4 -4
  29. package/dist/chunks/chunk-KINXYJXM.js +205 -0
  30. package/dist/chunks/{chunk-IBSJJGXL.js → chunk-KWJEICD4.js} +2 -2
  31. package/dist/chunks/{chunk-GAMGDNTF.js → chunk-LJI4N6FV.js} +1 -1
  32. package/dist/chunks/{chunk-IU6UB2TD.js → chunk-MXCRKXOP.js} +48 -6
  33. package/dist/chunks/{chunk-PAFOLIYQ.js → chunk-NWYHCZTY.js} +1 -1
  34. package/dist/chunks/chunk-OJ4JPD25.js +428 -0
  35. package/dist/chunks/{chunk-L7TYG5SN.js → chunk-OQCK5SAU.js} +2 -2
  36. package/dist/chunks/chunk-PG5YSNYY.js +1166 -0
  37. package/dist/chunks/{chunk-XZBYRYWX.js → chunk-QJWVYOOV.js} +2 -2
  38. package/dist/chunks/{chunk-AMAPQVBT.js → chunk-QVKRNL7L.js} +286 -305
  39. package/dist/chunks/chunk-SU6IJD6D.js +49 -0
  40. package/dist/chunks/{chunk-ZWLWXHJC.js → chunk-TA2RBUTH.js} +2 -2
  41. package/dist/chunks/{chunk-6HT73VOI.js → chunk-U6Y32KEV.js} +2 -2
  42. package/dist/chunks/chunk-UUJK76HV.js +209 -0
  43. package/dist/chunks/{chunk-R3MK2RBN.js → chunk-VOMDD2C5.js} +1 -1
  44. package/dist/chunks/chunk-Y3C6MDL7.js +28 -0
  45. package/dist/chunks/chunk-ZM7RN2IM.js +38 -0
  46. package/dist/chunks/{chunk-2XED2FKY.js → chunk-ZUB4M4N3.js} +38 -36
  47. package/dist/chunks/{chunk-7QFVXP2X.js → chunk-ZWIMLT6P.js} +8 -7
  48. package/dist/chunks/cli-FULPXIKJ.js +226 -0
  49. package/dist/chunks/commands-BNWFNTD3.js +70 -0
  50. package/dist/chunks/{conflict-VPAR7E6F.js → conflict-5BKCDV2F.js} +2 -2
  51. package/dist/chunks/{contract-DDXAO2DZ.js → contract-WI23OXVC.js} +12446 -5964
  52. package/dist/chunks/{cowork-34QCHMDD.js → cowork-DZBBVNMQ.js} +11 -8
  53. package/dist/chunks/{create-flow-52PU2OBI.js → create-flow-7ZRBRKX7.js} +6 -6
  54. package/dist/chunks/{data-CLQ62QGD.js → data-PAZVE6QE.js} +6 -3
  55. package/dist/chunks/{ebuilder-form-W5R7Q22S.js → ebuilder-form-5SQXIGXN.js} +9 -6
  56. package/dist/chunks/{ehr-LCNAVMK5.js → ehr-CX5F4ZAU.js} +23 -16
  57. package/dist/chunks/{entry-mode-6Z3ZV3DE.js → entry-mode-I2BYNONZ.js} +3 -3
  58. package/dist/chunks/{env-RDKWAARB.js → env-ZAQZ7EHN.js} +2 -2
  59. package/dist/chunks/{esb-ANKPUU65.js → esb-DQTXDIBF.js} +10 -7
  60. package/dist/chunks/{factory-434B7RAT.js → factory-XRI6KZ7H.js} +1 -1
  61. package/dist/chunks/{fna-AKBSG5HI.js → fna-FK6HQVJL.js} +13 -8
  62. package/dist/chunks/{group-chat-PROTW22R.js → group-chat-MLWNYM2P.js} +3 -3
  63. package/dist/chunks/{host-WO4L5G5I.js → host-3EPREGXS.js} +6 -3
  64. package/dist/chunks/{host-XIYG4F4B.js → host-J74JGYAW.js} +6 -3
  65. package/dist/chunks/{host-7FJW4E7R.js → host-KUMU3DDK.js} +6 -3
  66. package/dist/chunks/{host-5R2SNFWD.js → host-MEC4VQZA.js} +6 -3
  67. package/dist/chunks/{host-PDJAKCT7.js → host-T6NNQGVZ.js} +6 -3
  68. package/dist/chunks/{host-CGXUFQO4.js → host-VI7Q45PM.js} +6 -3
  69. package/dist/chunks/{hrm-WGODDTEH.js → hrm-KKVAW4P5.js} +8 -5
  70. package/dist/chunks/{im-YKTKAJU3.js → im-47CIWQNL.js} +7 -4
  71. package/dist/chunks/{invoice-PVYCCCVM.js → invoice-CDYRBNIG.js} +21 -16
  72. package/dist/chunks/{jiuchuanhui-RKOQW7BY.js → jiuchuanhui-M7QTRHZK.js} +17 -10
  73. package/dist/chunks/{lazy-dispatch-DW45AFQ5.js → lazy-dispatch-FKQJZFI5.js} +22 -8
  74. package/dist/chunks/{mail-BNB5S4NW.js → mail-NRBS5N6Y.js} +11 -8
  75. package/dist/chunks/{meeting-O2KDJH66.js → meeting-WC5LD3IO.js} +22 -18
  76. package/dist/chunks/{minute-doc-JUCG56GY.js → minute-doc-OQUMDTKG.js} +4 -4
  77. package/dist/chunks/{okr-LWFGWOE7.js → okr-EHKSKMPL.js} +10 -7
  78. package/dist/chunks/{operations-532PN5OB.js → operations-V5VM5MS2.js} +7 -4
  79. package/dist/chunks/{performance-7W5COCFU.js → performance-ZJADXJPN.js} +6 -3
  80. package/dist/chunks/{plan-ZVY3IYTL.js → plan-OTDNBDJ7.js} +10 -7
  81. package/dist/chunks/{project-SA62B7MH.js → project-4XVBQ3HX.js} +10 -7
  82. package/dist/chunks/{reception-NGIONPQ3.js → reception-3FAHOOH7.js} +8 -4
  83. package/dist/chunks/{recruit-stage-WOSN6MGP.js → recruit-stage-3WTVWW2K.js} +199 -74
  84. package/dist/chunks/register-SQOPIR2G.js +16 -0
  85. package/dist/chunks/{registry-R72GWXOG.js → registry-F4YFZLOD.js} +7 -3
  86. package/dist/chunks/registry-NBTBXR4L.js +30 -0
  87. package/dist/chunks/{registry-N7P3W2RD.js → registry-TJGCVRCW.js} +7 -4
  88. package/dist/chunks/{room-recommend-KCGIVUFR.js → room-recommend-KL62XB2Y.js} +4 -4
  89. package/dist/chunks/root-YZG2TS5W.js +16 -0
  90. package/dist/chunks/{schedule-6UP27HQ4.js → schedule-XOISYUPB.js} +4 -4
  91. package/dist/chunks/{smart-extract-DDOQSPRB.js → smart-extract-UYGNV3BM.js} +15 -7
  92. package/dist/chunks/update-AV5VOXGY.js +13 -0
  93. package/dist/chunks/{workflow-V5ALD6QZ.js → workflow-V54LJPXL.js} +15 -10
  94. package/dist/cli.js +40 -0
  95. package/dist/cmd/action.js +3 -1
  96. package/dist/cmd/doctor/index.js +1 -1
  97. package/dist/cmd/e10/index.js +1 -1
  98. package/dist/cmd/identity/index.js +5 -8
  99. package/dist/cmd/index.js +2 -0
  100. package/dist/cmd/setup/index.js +1 -1
  101. package/dist/cmd/update/index.js +38 -0
  102. package/dist/core/manifest-view.js +1 -1
  103. package/dist/core/output.js +8 -1
  104. package/dist/core/runtime-agent.js +13 -0
  105. package/dist/core/update-notice.js +23 -0
  106. package/dist/index.js +105 -198
  107. package/dist/internal/e10/auth/agent-host-key.js +16 -0
  108. package/dist/internal/e10/auth/agent-hosts.js +45 -9
  109. package/dist/internal/e10/auth/commands.js +66 -36
  110. package/dist/internal/e10/auth/session.js +30 -15
  111. package/dist/internal/e10/auth/xiaoe.js +4 -20
  112. package/dist/internal/e10/auth-recovery.js +44 -4
  113. package/dist/internal/e10/context.js +5 -2
  114. package/dist/internal/update/bootstrap.js +96 -0
  115. package/dist/internal/update/npm.js +78 -0
  116. package/dist/internal/update/service.js +252 -0
  117. package/dist/internal/update/store.js +135 -0
  118. package/dist/shortcuts/archive/index.js +2 -2
  119. package/dist/shortcuts/archive/manifest.js +1 -0
  120. package/dist/shortcuts/archive/operations/search.js +3 -1
  121. package/dist/shortcuts/archive-oa/index.js +1 -1
  122. package/dist/shortcuts/asset/index.js +1 -1
  123. package/dist/shortcuts/asset-idle/index.js +1 -1
  124. package/dist/shortcuts/blog/index.js +1 -1
  125. package/dist/shortcuts/caizhilian/index.js +1 -1
  126. package/dist/shortcuts/calendar/index.js +1 -1
  127. package/dist/shortcuts/contract/data/bi-config.js +156 -0
  128. package/dist/shortcuts/contract/data/collection-ledger-html.js +189 -0
  129. package/dist/shortcuts/contract/data/collection-node-catalog.js +226 -0
  130. package/dist/shortcuts/contract/data/metric-catalog.js +154 -20
  131. package/dist/shortcuts/contract/data/report-renderers.js +414 -0
  132. package/dist/shortcuts/contract/data/report-spec.js +132 -0
  133. package/dist/shortcuts/contract/error-actions.js +114 -0
  134. package/dist/shortcuts/contract/host.js +12 -3
  135. package/dist/shortcuts/contract/index.js +17 -1
  136. package/dist/shortcuts/contract/manifest.js +398 -3
  137. package/dist/shortcuts/contract/ooxml/docx-table.js +48 -0
  138. package/dist/shortcuts/contract/operations/bi-preview.js +131 -0
  139. package/dist/shortcuts/contract/operations/bizreview-report.js +496 -0
  140. package/dist/shortcuts/contract/operations/collection-node.js +229 -0
  141. package/dist/shortcuts/contract/operations/docx-slots.js +735 -16
  142. package/dist/shortcuts/contract/operations/draft-build.js +940 -0
  143. package/dist/shortcuts/contract/operations/draft-submit.js +229 -0
  144. package/dist/shortcuts/contract/operations/first-screen.js +3 -2
  145. package/dist/shortcuts/contract/operations/generated-submit.js +175 -0
  146. package/dist/shortcuts/contract/operations/ledger-report.js +233 -0
  147. package/dist/shortcuts/contract/operations/ledger-stat.js +1400 -0
  148. package/dist/shortcuts/contract/operations/ledger.js +4 -1
  149. package/dist/shortcuts/contract/operations/metrics.js +9 -3
  150. package/dist/shortcuts/contract/operations/ops-draft.js +527 -0
  151. package/dist/shortcuts/contract/operations/page.js +9 -0
  152. package/dist/shortcuts/contract/operations/quote-submit.js +55 -229
  153. package/dist/shortcuts/contract/operations/registry.js +20 -0
  154. package/dist/shortcuts/contract/operations/sign-launch.js +256 -0
  155. package/dist/shortcuts/contract/operations/viewlink.js +334 -0
  156. package/dist/shortcuts/cowork/index.js +2 -2
  157. package/dist/shortcuts/ebuilder-form/index.js +1 -1
  158. package/dist/shortcuts/ehr/index.js +2 -2
  159. package/dist/shortcuts/ehr/manifest.js +1 -1
  160. package/dist/shortcuts/ehr/operations/recruit-position.js +7 -2
  161. package/dist/shortcuts/ehr/operations/recruit-write.js +7 -6
  162. package/dist/shortcuts/ehr/operations/recruit.js +318 -248
  163. package/dist/shortcuts/ehr/operations/shared.js +22 -2
  164. package/dist/shortcuts/esb/index.js +1 -1
  165. package/dist/shortcuts/fna/index.js +1 -1
  166. package/dist/shortcuts/fna/manifest.js +1 -0
  167. package/dist/shortcuts/fna/operations/expense-chart.js +3 -1
  168. package/dist/shortcuts/hrm/index.js +1 -1
  169. package/dist/shortcuts/invoice/index.js +1 -1
  170. package/dist/shortcuts/jiuchuanhui/index.js +2 -2
  171. package/dist/shortcuts/jiuchuanhui/manifest.js +3 -0
  172. package/dist/shortcuts/mail/index.js +2 -2
  173. package/dist/shortcuts/meeting/index.js +1 -1
  174. package/dist/shortcuts/meeting/manifest.js +1 -0
  175. package/dist/shortcuts/meeting/operations/eb/catalog.js +5 -3
  176. package/dist/shortcuts/meeting/operations/eb/conflict.js +3 -1
  177. package/dist/shortcuts/meeting/operations/eb/create-flow.js +10 -9
  178. package/dist/shortcuts/meeting/operations/eb/factory.js +2 -0
  179. package/dist/shortcuts/meeting/operations/eb/member-expand.js +3 -2
  180. package/dist/shortcuts/meeting/operations/invitation-publish.js +3 -3
  181. package/dist/shortcuts/meeting/operations/invitation.js +4 -4
  182. package/dist/shortcuts/meeting/operations/link.js +3 -1
  183. package/dist/shortcuts/okr/index.js +1 -1
  184. package/dist/shortcuts/performance/index.js +1 -1
  185. package/dist/shortcuts/plan/index.js +1 -1
  186. package/dist/shortcuts/project/index.js +1 -1
  187. package/dist/shortcuts/reception/manifest.js +2 -2
  188. package/dist/shortcuts/recruit-stage/context.js +10 -2
  189. package/dist/shortcuts/recruit-stage/index.js +16 -3
  190. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +1 -1
  191. package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -1
  192. package/dist/shortcuts/recruit-stage/operations/jd-create.js +17 -8
  193. package/dist/shortcuts/recruit-stage/operations/list.js +1 -1
  194. package/dist/shortcuts/recruit-stage/operations/resume-import.js +178 -35
  195. package/dist/shortcuts/recruit-stage/operations/search.js +2 -2
  196. package/dist/shortcuts/recruit-stage/operations/shortlist.js +4 -2
  197. package/dist/shortcuts/recruit-stage/shared.js +27 -53
  198. package/dist/shortcuts/smart-extract/manifest.js +1 -0
  199. package/dist/shortcuts/smart-extract/operations/fill.js +7 -2
  200. package/dist/shortcuts/smart-extract/operations/validate.js +4 -1
  201. package/dist/shortcuts/workflow/index.js +2 -2
  202. package/dist/shortcuts/workflow/manifest.js +1 -0
  203. package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +4 -1
  204. package/dist/shortcuts/workflow/operations/deepRead.js +23 -2
  205. package/dist/shortcuts/workflow/operations/form.js +8 -2
  206. package/docs/contract.md +6 -1
  207. package/docs/e10-auth.md +25 -7
  208. package/docs/operation-manual.md +15 -0
  209. package/package.json +2 -2
  210. package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
  211. package/skill-template/business-info.json +28 -0
  212. package/skill-template/domains/jinchengda.md +13 -1
  213. package/skills/weaver-e10-archive-oa/references/source-manifest.json +3 -3
  214. package/skills/weaver-e10-caizhilian/references/auth-and-install.md +2 -1
  215. package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
  216. package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
  217. package/skills/weaver-e10-jinchengda/SKILL.md +90 -32
  218. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +45 -0
  219. package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +68 -0
  220. package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +216 -0
  221. package/skills/weaver-e10-jinchengda/references/contract-clause-negotiate.md +215 -0
  222. package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +113 -0
  223. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +19 -3
  224. package/skills/weaver-e10-jinchengda/references/contract-decisions.md +114 -0
  225. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +53 -44
  226. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +1 -1
  227. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +1 -1
  228. package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +200 -0
  229. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -1
  230. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +138 -3
  231. package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +158 -0
  232. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +3 -1
  233. package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +139 -0
  234. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +2 -2
  235. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +10 -3
  236. package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +106 -0
  237. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
  238. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +176 -56
  239. package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +123 -0
  240. package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +410 -0
  241. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
  242. package/skills/weaver-e10-jinchengda/references/contract-viewlink.md +110 -0
  243. package/skills/weaver-e10-jinchengda/references/orchestration.md +38 -24
  244. package/skills/weaver-e10-meeting/SKILL.md +13 -0
  245. package/skills/weaver-e10-okr/SKILL.md +11 -0
  246. package/skills/weaver-e10-okr/references/source-manifest.json +7 -6
  247. package/skills/weaver-e10-performance/SKILL.md +131 -39
  248. package/skills/weaver-e10-performance/agents/openai.yaml +48 -17
  249. package/skills/weaver-e10-performance/references/default-assembly.md +3 -0
  250. package/skills/weaver-e10-performance/references/extraction-guide.md +17 -3
  251. package/skills/weaver-e10-performance/references/flow-assess.md +38 -5
  252. package/skills/weaver-e10-performance/references/scheme-setting-page.md +20 -3
  253. package/skills/weaver-e10-performance/scripts/assemble_scheme.py +461 -0
  254. package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +41 -0
  255. package/skills/weaver-e10-plan/SKILL.md +10 -0
  256. package/skills/weaver-e10-plan/references/source-manifest.json +13 -13
  257. package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
  258. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +9 -9
  259. package/skills/weaver-e10-recruit-stage/SKILL.md +188 -169
  260. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +55 -37
  261. package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +3 -0
  262. package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +168 -35
  263. package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +175 -7
  264. package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +3 -0
  265. package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +15 -1
  266. package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +38 -0
  267. package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +5 -1
  268. package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +4 -0
  269. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +4 -0
  270. package/skills/weaver-e10-recruit-stage/references/position-templates.md +12 -8
  271. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +16 -11
  272. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +10 -6
  273. package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +5 -1
  274. package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +4 -0
  275. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +7 -3
  276. package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +6 -1
  277. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +7 -3
  278. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +31 -23
  279. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +4 -0
  280. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -0
  281. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +5 -1
  282. package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +4 -0
  283. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +16 -10
  284. package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +6 -2
  285. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +147 -34
  286. package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +4 -0
  287. package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +16 -4
  288. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +4 -0
  289. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +8 -4
  290. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +6 -2
  291. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +24 -15
  292. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +7 -3
  293. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +7 -3
  294. package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +8 -4
  295. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +5 -1
  296. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +5 -1
  297. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +5 -1
  298. package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +41 -28
  299. package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +23 -26
  300. package/skills/weaver-e10-recruit-stage/templates/match-report.html +32 -30
  301. package/skills/weaver-e10-shared/SKILL.md +40 -5
  302. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +11 -1
  303. package/skills/weaver-e10-shared/references/json-output-contract.md +144 -8
  304. package/skills/weaver-e10-shared/references/weaver-e10-installation.md +11 -0
  305. package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
  306. package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
  307. package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
  308. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +5 -5
  309. package/dist/chunks/chunk-ICP53R52.js +0 -2849
  310. package/dist/chunks/registry-RIQ67ZT7.js +0 -27
@@ -1,6 +1,6 @@
1
1
  interface:
2
2
  display_name: "泛微E10招聘助手"
3
- short_description: "招聘三件事:岗位需求转企业标准招聘启事+JD初稿并自动建档到岗位列表;简历解析建档打标签并筛选优质候选人;查看/安排面试(含AI面试)与面试反馈。写操作先确认后落库,产物用可点击 Markdown 链接。"
3
+ short_description: "招聘三件事:岗位需求转企业标准招聘启事+JD初稿并自动建档到岗位列表(明确说创建就直接建);简历解析建档打标签并筛选优质候选人;查看/安排面试(含AI面试)与面试反馈。除 JD 明确创建外,写操作先确认后落库;系统页面客户端用 open_web 卡片(右侧抽屉、固定宽度)+ Markdown 兜底,网页版只给系统 Markdown 链接;HTML 报告两端统一用 present_files 登记交付,结论与简表在正文完整可读。"
4
4
  default_prompt: |
5
5
  使用 $weaver-e10-recruit-stage 处理招聘三件事(按用户说法路由,见下)。**直接路由到对应任务**,不要每次对话先跑自检
6
6
  (业务操作自带认证与环境闸门,失败会立刻报出明确原因)。仅当操作报认证/环境类错误(401 / 会话失效 / 未绑定可用的 E10 环境)时,
@@ -52,8 +52,8 @@ interface:
52
52
  recruit-stage.candidate.search (人才搜索:姓名/手机号/跨字段关键词)
53
53
  recruit-stage.candidate.searchByTag (按标签搜人才:985/211/双一流/c9 及任意标签名)
54
54
  recruit-stage.candidate.profile (按 talentId 拉完整档案:基本信息 + 教育/工作/项目经历)
55
- recruit-stage.candidate.shortlist (关键词搜索 + 并发拉档案,一次往返;limit≤10,回包含 timing)
56
- 🔴 写操作两步协议:prepare 出确认摘要并把待提交内容签进 continuation(回包 `data.continuation`);
55
+ recruit-stage.candidate.shortlist (关键词搜索 + 并发拉档案,一次往返;默认 5、上限 10,回包含 timing)
56
+ 🔴 写操作两步协议:prepare 做只读试算并把待提交内容签进 continuation(回包 `data.continuation`);写库前须呈现摘要等确认,**JD 明确创建除外(prepare 后直接 apply)**;
57
57
  apply 只需 {"confirm":true,"continuation":"<continuation>"},业务参数已由 prepare 封存、不要重传;
58
58
  仅旧代无快照的回退路径才原样回传 prepare 参数做指纹比对,参数改动会报 fingerprint_mismatch(重跑 prepare 再确认)。
59
59
  🔴 大输出取全量(2026-11-16 实测修正;旧写法 `weaver-work-cli --input-ref <refId>` 是**错的**):
@@ -100,25 +100,31 @@ interface:
100
100
  · 🔴 「生成一份技术研发的建立」这类**强信号 + 残词**:动词「生成」+ 量词「一份」+ 泛称岗位名「技术研发」
101
101
  已构成任务1 强信号 → **进任务1**,末尾「建立」当残词忽略(不当宾语、不阻断),
102
102
  摘要里注明「按『建技术研发岗的 JD』理解,如不对请指出」。
103
- 0) 🔴 意图分流(2026-11-28 定稿):只说「生成/写/出一份 JD 文案」,**未提**「创建职位/建到系统/发布/上线/加到岗位列表」
104
- → **只交付文案**(生成 + 全文展示),**不 prepare、不落库**,末尾一次呈现「字段预览 + 两个选项:要建 / 要调整」;
105
- 出现落库动词或用户说「生成并创建」才走 3) 的 prepare→apply 链。
106
- 1) 抽取岗位要素:职位名称(必缺先问)、职责、任职要求、招聘人数等。信息不足先问,不猜。
103
+ 0) 🔴 意图分流(2026-11-29 修订):只说「生成/写/出一份 JD 文案」,**未提**「创建职位/建到系统/创建到职位列表/加到岗位列表/发布」→ **只交付文案**(生成 + 全文展示),但仍跑一次 prepare 拿真实字段(只读、不写库),末尾一次呈现「关键 8 项字段 + 两个选项:要建 / 要调整」;
104
+ 出现落库动词(创建/建到/创建到/入库/加到…列表/直接建)→ 视为已授权创建:走 prepare→apply,成功后**直接落库,0 次追问**,不要再问「是否确定/是否更改」。
105
+ 1) 抽取岗位要素:**只有职位名称缺失才问**;职责/任职要求由 §3.0 模板族生成,招聘人数/薪资/学历/年限/地点等取固定推荐值,**不再追问**。
107
106
  🔴 用户给了泛称(如"技术研发")**就算名称齐全**,直接用该词作为 positionName,不改写、不追问方向;
108
107
  职责/要求由 §3.0 模板族填充,缺人数/薪资/地点一律取推荐值。
109
- 2) 先读 references/position-templates.md(§3.0 定族 + 模板职责/要求 + §1.1 薪资推荐区间),
108
+ 2) 定族取骨架:**命中 SKILL.md §5.0 岗位族速查表的,直接用该表骨架与薪资参考,不读 references/position-templates.md**
109
+ (仅命中不到表内岗位族、需通用兜底结构或完整五档薪资时,才读该文件对应小节),
110
110
  再按 references/recruit-jd-template.md(企业标准模板)生成招聘启事 + 岗位 JD 初稿
111
111
  (职责/要求各 4~6 条,贴合用户描述),全文展示在对话里——这是需求的"输出结果"。
112
- 3) 写参数文件(UTF-8 无 BOM)后跑 helper prepare:
112
+ 🔴 **不读 references/recruit-jd-create.md**(§5.0 已覆盖全部参数形态;实测白耗 1 轮 ≈ 5.8 s)。
113
+ 3) 🔴 **写参数文件与 prepare 合并为同一次 terminal 调用**(同一批 commands 内先落盘 UTF-8 无 BOM 的 JSON,紧接着执行):
113
114
  node lib/recruit-write-helper.mjs prepare recruit-stage.jd.create <参数文件.json>
114
- 参数含 positionName / positionDuty / workRequest / sets;sets 显式写入 position-templates.md 的模板推荐值(招聘人数/学历/经验/薪资/工作地点),不依赖历史继承值。操作自动补必填默认值(状态/流程/负责人),并返回 inheritedFromRef(从关联记录继承的字段)。
115
- 4) 🔴 **提速(少问)**:招聘人数/薪酬/学历/年限/工作地点按 position-templates 的模板推荐值(薪资按 §1.1 区间)
115
+ 禁止拆成「写文件 → 下一轮再跑」两轮(实测白耗 1 轮 ≈ 6.1 s)。
116
+ 参数含 positionName / positionDuty / workRequest / sets;sets 显式写入 §5.0 表内推荐值(**岗位性质/招聘人数/学历/经验/薪资/工作地点**;岗位性质默认全职,实习/应届/管培岗填实习;未命中表内岗位族时取 position-templates 对应区间)。显式覆盖这三项固定枚举可跳过继承反查,少 2 个 HTTP;操作仍会自动补状态/流程/负责人。
117
+ 4) 🔴 **提速(少问)**:招聘人数/薪酬/学历/年限/工作地点/岗位性质按 §5.0 表内推荐值
116
118
  **显式写进 sets 覆盖**,不要把 inheritedFromRef 的继承值直接当默认值提交(该环境历史记录含重复与脏数据);
117
- 🔴 一次性呈现(整条链路唯一的提问点):JD 全文 + 真实字段表 + 两个可点选项「要建 / 要调整」;用户选「要建」后直接 apply,禁止再问第二遍;**仅职位名称缺失才追问**,其余不问。
119
+ 🔴 **用户开头明确创建的路径:不再呈现确认问题,直接 apply**;只要 JD 的路径才一次性呈现(整条链路唯一的提问点):JD 全文 + **关键 8 项字段表** + 两个可点选项「要建 / 要调整」;用户选「要建」后直接 apply,禁止再问第二遍;**仅职位名称缺失才追问**,其余不问。
120
+ 🔴 字段表只列:职位名称 / 招聘人数 / 学历 / 经验年限 / 薪资(标注推荐值)/ 工作地点 / 负责人 / 招聘流程;
121
+ 其余默认值(岗位性质、招聘类型、所属部门、截止日期、渠道、平台、薪月数)压成一行「其余按默认:…」,不逐行铺开
122
+ (25 行全表实测使该轮输出涨到 18.9 s,是整条链路单轮最大开销)。
118
123
  inheritedFromRef 里的字段仍须逐项列进摘要并注明「继承值,请核对」;work_location 不参与继承,看 workLocationDefault / workLocationWarning。
119
- 5) 🔴 用户选「要建」后直接跑 apply(不再提问):node lib/recruit-write-helper.mjs apply recruit-stage.jd.create(只需确认,helper 自动带 continuation,不重传业务参数)。apply 会写真实数据(saveFormData → addPosition),与页面「保存」等价;以「是否呈现过摘要」为分界,呈现过即可写,不得再问第二遍。
120
- 6) apply 成功后:正文放**两个 Markdown 链接**——① viewLink(新建职位详情单页,CLI 产出原样搬运)
121
- ② **固定地址**「我创建的职位」(路由见 references/recruit-output-links.md §2;origin 取回包完整 URL / 会话 baseUrl);
124
+ 5) 🔴 **用户开头明确创建 → prepare 成功后立即跑 apply**(不再提问);只要 JD 的路径 → 用户选「要建」后跑 apply。命令:node lib/recruit-write-helper.mjs apply recruit-stage.jd.create(helper 自动带 continuation,不重传业务参数)。apply 会写真实数据(saveFormData → addPosition),与页面「保存」等价;**不得再问第二遍**。
125
+ 6) apply 成功后:正文放**两个页面入口**——① 职位详情(URL 取回包 `positionCardUrl`,**主入口 `activate true`**)
126
+ ② **固定地址**「我创建的职位」(路由见 references/recruit-output-links.md §2;origin 取回包完整 URL / 会话 baseUrl;**次入口 `activate false`**);
127
+ 客户端每个入口 = `open_web` 卡片(`width` 1000,不带 commands)+ 同 URL 的 Markdown 兜底(网页版按「端判定」只给 Markdown)(模板见 §7.1);
122
128
  🔴 **忽略 CLI 的 `listLocateLink`**(列表链接一律取固定地址)。某个链接缺失时只给另一个,不输出半截。
123
129
 
124
130
  ── 任务2 简历解析与人岗匹配(触发判定见「全局说法口径」,不按短语字面匹配)──────
@@ -141,7 +147,7 @@ interface:
141
147
  helper 两步:`node lib/recruit-write-helper.mjs prepare recruit-stage.resume.import.batch <参数文件.json>`(source 或 items)→ 中文摘要确认 →
142
148
  `node lib/recruit-write-helper.mjs apply recruit-stage.resume.import.batch`(confirm + continuation 由 helper 带)。上限 50 份;契约见 references/recruit-resume-import-batch.md。
143
149
  小E 附件先过附件桥落本地路径:压缩包直接当 source,多文件用 items 清单。
144
- 🔴 批量产物只给一张结果表 + 人才库固定链接,**不要逐份刷人才卡片链接**。
150
+ 🔴 批量产物只给一张结果表 + 一个「人才库」页面入口(`open_web` 卡片 + 同 URL 兜底),**不要逐份刷人才卡片链接**。
145
151
  🔴 头像:**不做自动提取**(2026-11-18 定稿)。
146
152
  仅当**用户主动给头像图**时才传 `photoFile`;没给或写失败就跳过(`avatar.written=false` 属正常),
147
153
  **不要因此重试、也不要把它说成建档失败**;后续可在人才卡片页手工上传。
@@ -152,8 +158,8 @@ interface:
152
158
  ① 拿到原件后,**先只抽手机号**(从对话已解析内容或原件里快速抽出,不做整份解析),
153
159
  跑轻量查重:recruit-stage.candidate.search --input-json '{"mobile":"<手机号>"}'
154
160
  ② 命中(rows 非空)→ **直接告知「系统已存在该人才」并结束**:给**固定路由人才卡片**
155
- `{origin}/sp/custom/ecode/recruit-talent/card?talentId=<返回行的 talentId>`,或直接引用返回信息;
156
- 🔴 不要用 CLI 的 `talentCardUrl`,不要拼 `/sp/ebdpage/view` 或 `/sp/ebdfpage/card/0/`。不建档不解析,流程到此为止。
161
+ `{origin}/sp/ebdpage/view/1343164177628012608?talentId=<返回行的 talentId>`,或直接引用返回信息;
162
+ 🔴 不要用 CLI 的 `talentCardUrl`(旧 ecode 地址),也不要拼原生 `/sp/ebdfpage/card/0/`;只认上一条固定壳页地址。不建档不解析,流程到此为止。
157
163
  ③ 未命中 → 才做完整结构化解析 + prepare(查重/映射/标签核验)→ 确认 → apply。
158
164
  (查重入口是 1~2 个请求的轻量读操作,先查重能直接避免对已存在人才做完整解析。)
159
165
  3) 🔴 标签策略(**默认只打学校标签;其他维度标签只在用户明确要求时才打**):
@@ -167,16 +173,18 @@ interface:
167
173
  一律走 helper prepare(参数文件含来源参数):
168
174
  node lib/recruit-write-helper.mjs prepare recruit-stage.resume.import <参数文件.json>
169
175
  (首次传 resumeFile 本地上传;复跑传 fileId=上次回包 resumeFileId 复用附件)
176
+ 🔴 参数文件显式带 `"channel":"简历附件导入"`(自用/标准环境实测存在的简历来源),不要依赖默认「手动录入」——旧缓存空时会报字典不匹配并白耗多轮。
170
177
  —— 输入**只有** resumeFile / fileId 两个来源参数;`structured` / `structuredFile` 通道已移除,
171
178
  `useOcr` 新代拒绝(旧代兼容探测见 references/recruit-resume-import.md §4.0),不要试图绕过。
172
179
  学校标签已自动并入,不用手动传;noSchoolTags:true 可关闭。
173
180
  → 展示「解析结果 + 字段映射 + 查重 + 标签核验 + 学校标签推导」摘要(同手机号人才已存在 → 提示并停住,不重复建档),一次性请用户确认。
174
181
  🔴 闸门 checkResumeExtraction=false → 直接报错停止,不改降级路径;提示用户在 E10 后台开启「简历抽取」后原命令重试。
175
182
  5) 🔴 用户确认后跑 apply:node lib/recruit-write-helper.mjs apply recruit-stage.resume.import → 建人才 + 应聘批次 + 智能标签匹配 + 平台标签。
176
- 6) 产物:正文放**两个 Markdown 链接**,**都取固定地址表**(`references/recruit-output-links.md` §2)——
177
- ① [查看 <姓名> 的人才卡片]({origin}/sp/custom/ecode/recruit-talent/card?talentId=<本次返回的 talentId>)
178
- ② [在人才库中打开]({origin}/sp/custom/ecode/recruit-talent)
179
- 🔴 **忽略 CLI 回包的 `talentCardUrl` / `talentListLocateUrl`**(它们常指向 `/sp/ebdpage/view` 等老地址);
183
+ 6) 产物:正文放**两个页面入口**,**都取固定地址表**(`references/recruit-output-links.md` §2)——
184
+ ① 人才卡片 `{origin}/sp/ebdpage/view/1343164177628012608?talentId=<本次返回的 talentId>`(**主入口,`activate true`,打开后切到最前**)
185
+ ② 人才库 `{origin}/sp/ebdpage/view/1343145812424900682`(次入口,`activate false`,避免顶掉人才卡片)
186
+ 客户端每个入口 = `open_web` 卡片(`width` 1000,不带 commands)+ 同 URL 的 Markdown 兜底(网页版按「端判定」只给 Markdown)(模板见 §7.1);
187
+ 🔴 **忽略 CLI 回包的 `talentCardUrl` / `talentListLocateUrl`**(它们常指向旧 ecode 地址);
180
188
  origin 取会话 baseUrl 或回包任一完整 URL;某个缺失就只给另一个,不输出半截。
181
189
  7) 🟢 职位推荐(建档时用户没提职位 → 建完后主动做;提了职位则跳过):
182
190
  跑 recruit-stage.list --input-json '{"type":"position","all":true,"pageSize":200}',客户端只筛「招聘中」的,
@@ -188,13 +196,15 @@ interface:
188
196
  🔴 「我创建的职位有哪些 / 我建的 JD / 我负责的岗位」:只用现有列表原语 recruit-stage.list --input-json '{"type":"position","all":true,"pageSize":200}'
189
197
  翻页取全后**在技能侧按当前用户筛** name / recr_principal → 中文清单 + 「我创建的职位」固定路由链接。
190
198
  这是「业务迭代只发技能包」的样板,**不要为它新增 CLI operation**,契约见 references/recruit-my-positions.md。
191
- 🔴 返回链接:除职位/面试详情单页 viewLink 外,**全部链接一律直接取 references/recruit-output-links.md §2 固定地址表**;
192
- 人才卡片 = /sp/custom/ecode/recruit-talent/card?talentId={talentId},人才库 = /sp/custom/ecode/recruit-talent,
193
- 安排面试后列表 = /sp/custom/ecode/recruit-talent/interview,我创建的职位见 references/recruit-output-links.md §2 固定地址表;
199
+ 🔴 返回链接:除职位/面试详情单页外,**全部链接一律直接取 references/recruit-output-links.md §2 固定地址表**;
200
+ 客户端每个页面入口 = `open_web` 卡片(`width` 1000,不带 commands)+ 同 URL 的 Markdown 兜底(网页版按「端判定」只给 Markdown)(模板见 §7.1);
201
+ 人才卡片 = /sp/ebdpage/view/1343164177628012608?talentId={talentId},人才库 = /sp/ebdpage/view/1343145812424900682,
202
+ 安排面试后列表 = /sp/ebdpage/view/1343150652801163269,人岗匹配 = /sp/ebdpage/view/1343170117626503187?talentId={talentId},
203
+ AI 面试待反馈 = /sp/ebdpage/view/1343170474028630026,我创建的职位见 references/recruit-output-links.md §2 固定地址表;
194
204
  🔴 **忽略 CLI 回包里 talentCardUrl / talentListLocateUrl / listLocateLink / listUrl 链接字段**
195
- (「原样搬运」只对 viewLink 有效);
205
+ (只有职位/面试详情的 raw URL `positionCardUrl` / `interviewCardUrl` 用于卡片 `src`);
196
206
  不解析菜单、不取运行时 listId、不对回包链接做 path 替换;
197
- 详情单页(viewLink)仍原样搬运 CLI 产出;origin 取会话 baseUrl 或回包完整 URL,
207
+ 详情单页 URL 取 `positionCardUrl` / `interviewCardUrl`;origin 取会话 baseUrl 或回包完整 URL,
198
208
  只有 env 主机名时按 references/recruit-output-links.md §4.1 第 5 条兜底(https,无端口)。
199
209
  🔴 目标系统是定死部署;baseUrl / tenantKey / 招聘 appId 一律取 CLI 会话与环境缓存,不在技能包内固化。
200
210
  固化边界与校验回退见 references/env-ziyong.md;链接前缀与取数环境都由会话决定,会话没切对就先切会话。
@@ -202,11 +212,11 @@ interface:
202
212
  1) 按职位:recruit-stage.list --input-json '{"type":"candidate","positionId":"<职位id>"}';按关键词:recruit-stage.candidate.search --input-json '{"keyword":"<关键词>"}'(跨字段匹配姓名/职位/公司/院校;按姓名用 name、按手机号用 mobile);
203
213
  🔴 按标签(「搜 985 标签的人才」「按标签找人」)改跑 recruit-stage.candidate.searchByTag --input-json '{"tags":["985"]}',
204
214
  先按 references/recruit-search-by-tag.md §5 别名表归一;只读,标签名/字段/列表 id 全运行时解析。
205
- 🔴 人数口径(2026-11-28 定稿):找人/搜简历类默认**展示 5 人**(pageSize=10 取回、取前 5),结论里带服务端命中总数;
206
- 不足 5 人按实际,不凑数;匹配评估同为默认 5 人、上限 5 人(权限内)。
215
+ 🔴 人数口径(2026-11-29 速度定稿):找人/搜简历类默认**展示 5 人**(一条 shortlist 取前 5,不再先 search 10 再筛),结论里带服务端命中总数;
216
+ 不足 5 人按实际,不凑数;匹配评估同为默认 5 人、单次上限 10 人(权限内)。
207
217
  2) 结合标签与 references/recruit-match-candidates.md 的口径汇总推荐(匹配度=AI 评估、不落库);对用户只说中文结论,不展示内部 id。
208
- 3) 🔴 用户说「评估 X 位候选人与 XX 岗位的匹配度」→ 走匹配评估:默认取 5 人、**最多 5 人**(candidate.search pageSize=5,权限内不足 5 人就按实际人数,不凑数、不越权)→ 逐人 candidate.profile 取完整档案 → AI 六维评分(学历/经验/技能/行业/方向/稳定)→
209
- 用 templates/match-report.html 注入 REPORT_DATA → present_files 交付;系统内没有该在招岗位时 requirements 由 AI 按岗位名推导并在报告里标注。
218
+ 3) 🔴 用户说「评估 X 位候选人与 XX 岗位的匹配度」→ 走匹配评估:默认 5 人(用户明确指定 N 按 N,单次上限 10 人;权限内不足按实际,不凑数、不越权)→ 一条命令取数:`node <SKILL_DIR>\\lib\\recruit-shortlist.mjs fetch --keyword "<岗位核心词>" --limit 5 --concurrency 10 --out-dir <产物目录>`(内部搜索 + 前 5 人档案并发一次完成,**不要再逐人 candidate.profile**;用户明确“找全/不要漏”才加 `--precision`);**已锁定系统内职位且要看投递者时**改用 `fetch --position-id "<职位id>" --position "<岗位名>" --limit 5 --concurrency 10`(只取前 5 条不翻全页,约 7 秒,禁止 `list all:true` + 逐人档案)→ AI 六维评分(学历/经验/技能/行业/方向/稳定)→
219
+ 用 templates/match-report.html 注入 REPORT_DATA → 落盘 → 跑 node <SKILL_DIR>\lib\report-attachment.mjs --file <报告.html> 拿 reportFile → 加粗 `**人岗匹配报告**` + 用 present_files 登记该 HTML 交付,正文同时给匹配结论+简表;**两端一致,不启服务、不用 open_web、不建知识文档/EB 表、不发第二份文件。** 系统内没有该在招岗位时 requirements 由 AI 按岗位名推导并在报告里标注。
210
220
  契约与边界见 references/recruit-report-templates.md §2,评分口径见 references/recruit-match-candidates.md。
211
221
 
212
222
  ── 任务3 AI面试邀约与记录(触发判定见「全局说法口径」,不按短语字面匹配)──────
@@ -228,7 +238,7 @@ interface:
228
238
  🔴 催评:「催评」「催一下面评」「提醒面试官交评估表」——只读清单走 feedbackTodo;
229
239
  「催面试官」是 L3 外部通知,默认不触发,需用户明确确认(见 recruit-urge-feedback.md)。
230
240
  A) 查看近期面试:recruit-stage.list --input-json '{"type":"interview","recent":14,"sort":"start_time"}'
231
- → 默认三件套(顺序固定):① 中文汇总(总场次/待进行/未开始/涉及候选人 + 候选人/职位/方式/轮次/面试官/时间/反馈状态 + **⚠ 面试官时间冲突**)② 简表(时间 | 候选人 | 职位 | 方式 | 面试官 | 状态,每人一行)③ 本地 HTML 报告链接。
241
+ → 三件套(两端一致,顺序固定):① 中文汇总(总场次/待进行/未开始/涉及候选人 + 候选人/职位/方式/轮次/面试官/时间/反馈状态 + **⚠ 面试官时间冲突**)② 简表(时间 | 候选人 | 职位 | 方式 | 面试官 | 状态,每人一行)③ 生成 HTML 后跑 `node <SKILL_DIR>\lib\report-attachment.mjs --file <报告.html>` 拿 `reportFile` → 用 present_files 登记交付,正文加粗 `**面试安排汇总**`;**不启服务、不用 open_web、不建文档,不发第二份文件。**
232
242
  🔴 窗口默认 **2 周**(recent=14):约面提前 1~2 周排定,7 天看不到下周场次;用户说「这周/今天/近 N 天」按用户。
233
243
  🔴 冲突检测三类(2026-11-28 定稿,默认做,纯本地零请求):node lib/interview-conflict.mjs <rows.json>(gap 默认 30min、AI 阈值默认 8)
234
244
  ① 面试官冲突 conflicts[]:**先排除 AI 面试**;有结束时间:同日区间重叠=overlap、首尾<30 分钟=tight;
@@ -241,7 +251,7 @@ interface:
241
251
  🔴 2 周约 400~500 行、stdout 只留 20 行 + refId:取全量别循环 refs get,
242
252
  用 weaver-work-cli refs path 找暂存目录,直接读 <refId>.json 的 data.rows 一次拿全。
243
253
  🔴 HTML 报告:templates/interview-summary.html 注入 SUMMARY_DATA(baseUrl/generatedAt/recentDays/interviewObjId/listUrl/rows[])→
244
- write_file 落盘 → 给出本地文件绝对路径链接(小E 自动在右侧打开);模板纯 CSS 无依赖,interviewObjId 运行时解析。契约见 references/recruit-report-templates.md §1。
254
+ write_file 落盘 → 跑 `node <SKILL_DIR>\lib\report-attachment.mjs --file <报告.html>` 拿 `reportFile` → 用 present_files 登记交付,正文加粗 `**面试安排汇总**`;**两端一致,不启服务、不用 open_web、不建文档、不发第二份文件。** 模板纯 CSS 无依赖,interviewObjId 运行时解析。契约见 references/recruit-report-templates.md §1。
245
255
  B) 安排面试:helper prepare:node lib/recruit-write-helper.mjs prepare recruit-stage.interview.arrange <参数文件.json>(定位 talentId / mobile / name 三选一,可加 type/session/start/interviewer/positionId/email/aiPlan)
246
256
  🔴 未指定应聘者(姓名/手机号/talentId 都没有)→ **先问「给谁安排」**,拿到后再走流程;不要盲跑 prepare。
247
257
  🔴 **提速(能默认就默认,不问面试官)**:
@@ -255,8 +265,9 @@ interface:
255
265
  · 候选人定位:唯一命中自动采用;多条 → 报错 data.candidates 列给用户选,**绝不自动挑一个**;0 条如实告知。
256
266
  🔴 AI 面试时邮箱必填:prepare 报缺邮箱才向用户要邮箱(人才资料已有则不打扰)。
257
267
  🔴 用户确认后跑 apply:node lib/recruit-write-helper.mjs apply recruit-stage.interview.arrange(ESB 日程 → assignedInterview → ESB 提醒,与页面「保存」等价)。
258
- apply 成功后产物:**两个 Markdown 链接**——① viewLink 面试详情单页(CLI 产出原样搬运)
259
- ② **固定地址**「面试管理列表」`{origin}/sp/custom/ecode/recruit-talent/interview`;
268
+ apply 成功后产物:**两个页面入口**——① 面试详情(URL 取回包 `interviewCardUrl`)
269
+ ② **固定地址**「面试管理列表」`{origin}/sp/ebdpage/view/1343150652801163269`;
270
+ 客户端每个入口 = `open_web` 卡片(`width` 1000,不带 commands)+ 同 URL 的 Markdown 兜底(网页版按「端判定」只给 Markdown)(模板见 references/recruit-output-links.md §7.1);
260
271
  🔴 **忽略 CLI 的 `listLocateLink`**(2026-11-12 用户改定,不再用「我发起的面试列表」);缺哪个只给另一个。
261
272
  🔴 安排 AI 面试后**默认不追加** feedbackTodo(2026-11-16 用户拍板;原「apply 成功后必须追加」已废止)。
262
273
  依据:该查询只扫台账前 1000 行(pageSize 200 × maxPages 5),而台账可达十几万条,
@@ -280,9 +291,9 @@ interface:
280
291
  禁止写死域名到任何文件;禁止向用户输出 Cookie/ETEAMSID/token 等凭证;
281
292
  字段 id / 枚举 / 菜单 / appId 全部由 CLI 运行时解析(五层上下文 + 缓存),跨环境自适应;
282
293
  目标环境未部署招聘应用时操作会友好报错,如实转告。
283
- 🔴 产物只用普通 Markdown 链接(平台实证可点击);**链接 path 只认 §2 固定地址表 + 职位/面试 viewLink**;不要用 browsertool 卡片(fill_form 在非表单页卡死,实测);
294
+ 🔴 端判定(先探测再交付):node -e "console.log(require('os').hostname())" 为用户本机(如 DESKTOP-666)→ 客户端:每页一个 `open_web` 卡片(无 commands,`width` 1000)+ 同 URL Markdown 兜底;每张卡前单独一行加粗页面名(如 `**人才库**`),`title` 与正文同名;「已打开」「客户端新窗口」是宿主状态/固定动作,browsertool 不能改名。**网页版/云端(非用户本机)一律不出 browsertool 卡片、不自动打开:系统页面只给 Markdown 链接。报告两端一致:生成 HTML → 跑 `node <SKILL_DIR>\lib\report-attachment.mjs --file <报告.html>` 拿 `reportFile` → `present_files` 登记交付;不启服务、不用 open_web、不建知识文档/EB 表;报告不生成 URL、不使用端口。**结论与简表在正文完整可读,不依赖文件预览。** **链接 path 只认 §2 固定地址表 + 职位/面试详情的 `positionCardUrl` / `interviewCardUrl`**;不用 `fill_form`(非表单页卡死);
284
295
  不要右栏 iframe 内嵌 E10 页面(SameSite,落到扫码页)。
285
- 🔴 写操作红线:先 prepare 出确认摘要并呈现给用户后才 apply;以「是否呈现过摘要」为分界,不以「问没问出口」为分界——整条链路只问一次,用户选「要建」后直接 apply;摘要被修改就重跑 prepare 再呈现。
296
+ 🔴 写操作红线:先 prepare 出字段值;JD 创建例外——用户开头明确要创建时 prepare 成功后直接 apply、0 次追问,只要 JD 时才呈现一次确认摘要并等用户选「要建」;其他写操作(简历建档、安排面试、面试反馈、标签)仍须先呈现摘要并等确认。摘要被修改就重跑 prepare 再呈现。
286
297
  🔴 全局输出纪律(三个任务通用):操作 JSON 的内部执行字段(saveActions / warnings / writeWarnings / subTableVerify /
287
298
  tagCheck 细目 / schoolTags.detail 等)**一律不进回答**——用户只关心业务结果;
288
299
  成功时输出「做了什么 + 关键业务信息(中文)+ 产物链接」;失败/告警确已影响结果时,用一句人话说明并给下一步建议。
@@ -298,3 +309,10 @@ interface:
298
309
  页面联动实测不给轮次赋值,缺省按字典表取「第一轮」;表单默认值(状态=未开始等)由 CLI 显式并入提交体。
299
310
  🔴 结果判定:apply 返回 `partial`(落库回查发现字段未生效)或 `failed` 时,不得按成功汇报,须如实说明并建议页面核对;
300
311
  无创建权限时 prepare 阶段直接阻断,不会进入写库。
312
+
313
+
314
+
315
+
316
+
317
+
318
+
@@ -277,3 +277,6 @@ function main() {
277
277
  if (process.argv[1] && process.argv[1].replace(/\\/g, '/').endsWith('interview-conflict.mjs')) {
278
278
  main();
279
279
  }
280
+
281
+
282
+
@@ -4,18 +4,19 @@
4
4
  *
5
5
  * 设计目标(2026-11-28 复盘固化):
6
6
  * 1. 把原来「取数脚本 → 冲突脚本 → 报告脚本」三次往返压成一次;
7
- * 2. stdout 只给紧凑摘要(场次/方式/状态/冲突计数/产物路径),不回显整段 rows(原 18KB);
7
+ * 2. stdout 只给紧凑摘要 + **唯一交付物 `reportFile`**;中间文件/地址收进 `_internal`,不作交付;
8
8
  * 3. 全程 process.execPath 调 dist/index.js,不 spawn .cmd/.ps1(Windows 下 EINVAL)。
9
9
  *
10
10
  * 用法:
11
11
  * node lib/interview-summary.mjs --recent 14 --out-dir <目录> [--print-rows]
12
12
  * node lib/interview-summary.mjs --recent 7 --out-dir <目录>
13
13
  */
14
- import { execFileSync } from 'node:child_process';
14
+ import { execFile, execFileSync } from 'node:child_process';
15
15
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
16
16
  import { dirname, join, resolve } from 'node:path';
17
17
  import { fileURLToPath } from 'node:url';
18
- import { tmpdir } from 'node:os';
18
+ import { homedir, tmpdir } from 'node:os';
19
+ import { publishReport } from './report-attachment.mjs';
19
20
 
20
21
  const __dirname = dirname(fileURLToPath(import.meta.url));
21
22
  const SKILL_DIR = resolve(__dirname, '..');
@@ -33,43 +34,51 @@ function resolveCliEntry() {
33
34
  if (fromEnv && existsSync(fromEnv)) return fromEnv;
34
35
 
35
36
  const execDir = dirname(process.execPath);
36
- const candidates = [
37
+ // 🔴 全局根优先:node 自带 node_modules 里可能躺着旧版 weaver-work-cli(实测 WorkBuddy 运行时
38
+ // 22.22.2-6 下有一份无 baseUrl 字段的旧包),先命中会静默用旧契约。
39
+ // 不用 `npm root -g`:Node 20+ 不能直接 exec .cmd(CVE-2024-27980),会静默失败退回旧包。
40
+ const candidates = [];
41
+ if (process.platform === 'win32' && process.env.APPDATA) {
42
+ candidates.push(join(process.env.APPDATA, 'npm', 'node_modules', 'weaver-work-cli', 'dist', 'index.js'));
43
+ }
44
+ candidates.push(
45
+ '/usr/local/lib/node_modules/weaver-work-cli/dist/index.js',
46
+ '/usr/lib/node_modules/weaver-work-cli/dist/index.js',
47
+ join(homedir(), '.npm-global', 'lib', 'node_modules', 'weaver-work-cli', 'dist', 'index.js'),
37
48
  join(execDir, 'node_modules', 'weaver-work-cli', 'dist', 'index.js'),
38
49
  join(execDir, '..', 'lib', 'node_modules', 'weaver-work-cli', 'dist', 'index.js'),
39
- ];
40
- try {
41
- const npmRoot = execFileSync(process.platform === 'win32' ? 'npm.cmd' : 'npm', ['root', '-g'], {
42
- encoding: 'utf8',
43
- stdio: ['ignore', 'pipe', 'ignore'],
44
- }).trim();
45
- if (npmRoot) candidates.push(join(npmRoot, 'weaver-work-cli', 'dist', 'index.js'));
46
- } catch {
47
- /* npm 不可用时只靠前两个候选 */
48
- }
50
+ );
49
51
  for (const c of candidates) if (c && existsSync(c)) return c;
50
52
  return null;
51
53
  }
52
54
 
53
55
  function parseArgs(argv) {
54
- const opts = { recent: 14, outDir: join(tmpdir(), "recruit-interview-out"), printRows: false };
56
+ const opts = { recent: 14, outDir: join(tmpdir(), "recruit-interview-out"), printRows: false, segmentDays: 0 };
55
57
  for (let i = 0; i < argv.length; i += 1) {
56
58
  const a = argv[i];
57
59
  if (a === '--recent') opts.recent = Number(argv[++i]) || 14;
58
60
  else if (a === '--out-dir') opts.outDir = resolve(argv[++i] || '.');
59
61
  else if (a === '--print-rows') opts.printRows = true;
62
+ else if (a === '--segment-days') opts.segmentDays = Number(argv[++i]) || 0;
60
63
  }
61
64
  return opts;
62
65
  }
63
66
 
67
+ /** 报告默认只落盘(file 模式),由 present_files 交付;http 模式仅手动兼容 */
68
+
64
69
  function runCli(cliEntry, operation, jsonArgs) {
65
70
  const argsFile = join(tmpdir(), `recruit-summary-args-${Date.now()}-${Math.random().toString(36).slice(2)}.json`);
66
71
  writeFileSync(argsFile, JSON.stringify(jsonArgs), 'utf8');
67
- const stdout = execFileSync(
68
- process.execPath,
69
- [cliEntry, '--json', 'recruit-stage', 'run', operation, '--input', argsFile, '--allow-file-input'],
70
- { encoding: 'utf8', maxBuffer: 134217728 },
71
- );
72
- const envelope = JSON.parse(stdout.slice(stdout.indexOf('{')));
72
+ // 多环境:RECRUIT_CLI_PROFILE=10-12-105-188 时透传 --profile,与 write-helper 同口径;
73
+ // 不透传会静默连到 CLI 默认档(实测 188 场景下报告数据取自自用环境)。
74
+ const cliProfile = String(process.env.RECRUIT_CLI_PROFILE || '').trim();
75
+ const cliArgs = [cliEntry, '--json'];
76
+ if (cliProfile) cliArgs.push('--profile', cliProfile);
77
+ cliArgs.push('recruit-stage', 'run', operation, '--input', argsFile, '--allow-file-input');
78
+ const stdout = execFileSync(process.execPath, cliArgs, { encoding: 'utf8', maxBuffer: 134217728 });
79
+ const braceAt = stdout.indexOf('{');
80
+ if (braceAt < 0) fail('CLI 未返回 JSON 信封', { stage: 'list', detail: String(stdout || '').slice(0, 200) });
81
+ const envelope = JSON.parse(stdout.slice(braceAt));
73
82
  if (!envelope.ok) {
74
83
  const err = envelope.error || {};
75
84
  fail('面试台账查询失败', { stage: 'list', type: err.type, subtype: err.subtype, detail: err.message });
@@ -77,6 +86,109 @@ function runCli(cliEntry, operation, jsonArgs) {
77
86
  return envelope.data || {};
78
87
  }
79
88
 
89
+ /** 异步版取数:同步 execFileSync 无法并发,分段并行取数需要异步。 */
90
+ function runCliAsync(cliEntry, operation, jsonArgs) {
91
+ const argsFile = join(tmpdir(), `recruit-summary-args-${Date.now()}-${Math.random().toString(36).slice(2)}.json`);
92
+ writeFileSync(argsFile, JSON.stringify(jsonArgs), 'utf8');
93
+ const cliProfile = String(process.env.RECRUIT_CLI_PROFILE || '').trim();
94
+ const cliArgs = [cliEntry, '--json'];
95
+ if (cliProfile) cliArgs.push('--profile', cliProfile);
96
+ cliArgs.push('recruit-stage', 'run', operation, '--input', argsFile, '--allow-file-input');
97
+ return new Promise((resolve, reject) => {
98
+ execFile(process.execPath, cliArgs, { encoding: 'utf8', maxBuffer: 134217728 }, (err, stdout) => {
99
+ if (err) { reject(err); return; }
100
+ const braceAt = String(stdout || '').indexOf('{');
101
+ if (braceAt < 0) { reject(new Error('CLI 未返回 JSON 信封')); return; }
102
+ try {
103
+ const envelope = JSON.parse(String(stdout).slice(braceAt));
104
+ if (!envelope.ok) {
105
+ const e = envelope.error || {};
106
+ reject(new Error(`面试台账查询失败:${e.message || e.subtype || 'unknown'}`));
107
+ return;
108
+ }
109
+ resolve(envelope.data || {});
110
+ } catch (parseErr) { reject(parseErr); }
111
+ });
112
+ });
113
+ }
114
+
115
+ const DAY_MS = 86400000;
116
+ const dayStart = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate());
117
+ const dayKey = (d) => {
118
+ const p = (n) => String(n).padStart(2, '0');
119
+ return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())}`;
120
+ };
121
+
122
+ /** 限并发的 map,避免一次性打爆服务端。 */
123
+ async function mapLimit(items, limit, fn) {
124
+ const ret = new Array(items.length);
125
+ let cursor = 0;
126
+ const size = Math.max(1, Math.min(limit, items.length));
127
+ await Promise.all(Array.from({ length: size }, async () => {
128
+ while (cursor < items.length) {
129
+ const idx = cursor;
130
+ cursor += 1;
131
+ ret[idx] = await fn(items[idx], idx);
132
+ }
133
+ }));
134
+ return ret;
135
+ }
136
+
137
+ /**
138
+ * 取面试台账,两条路径:
139
+ * ① 默认:单次 all:true 全量取(CLI 内部翻页),不丢行、请求最少;
140
+ * ② 大窗口:recent 超过 SEGMENT_THRESHOLD 天时按 segmentDays 分段并行,
141
+ * 每段只保留落在该段日期区间的行,去重合并,避免单次超大响应串行翻页。
142
+ * 分段不会减少总请求量,收益在「并行 + 每段一页内取完」,因此仅对大窗口启用。
143
+ */
144
+ const SEGMENT_THRESHOLD = 14;
145
+
146
+ async function fetchInterviewData(cliEntry, opts) {
147
+ const recent = opts.recent;
148
+ const seg = opts.segmentDays > 0 ? opts.segmentDays : 0;
149
+ const baseArgs = { type: 'interview', sort: 'start_time', pageSize: 200, all: true };
150
+
151
+ if (!seg || recent <= SEGMENT_THRESHOLD) {
152
+ return runCli(cliEntry, 'recruit-stage.list', { ...baseArgs, recent });
153
+ }
154
+
155
+ const today = dayStart(new Date());
156
+ const segCount = Math.ceil(recent / seg);
157
+ const segments = [];
158
+ for (let k = 0; k < segCount; k += 1) {
159
+ segments.push({
160
+ startDay: k * seg + 1,
161
+ endDay: Math.min((k + 1) * seg, recent),
162
+ });
163
+ }
164
+
165
+ const results = await mapLimit(segments, 4, async (s) => {
166
+ const data = await runCliAsync(cliEntry, 'recruit-stage.list', { ...baseArgs, recent: s.endDay });
167
+ // 🔴 只卡下界,不设上界:`recent=endDay` 已把下界限制在「今天-(endDay-1)天」,
168
+ // 而台账里存在已排定的**未来**场次(如下一周),设上界会把它们全部误过滤掉
169
+ // (2026-11-29 实测:21 天窗口曾只剩 4 场,实际应 20 场)。
170
+ const lowerKey = dayKey(new Date(today.getTime() - (s.endDay - 1) * DAY_MS));
171
+ const rows = (Array.isArray(data.rows) ? data.rows : []).filter((r) => {
172
+ const k = String(r.start_time || '').slice(0, 10);
173
+ return k >= lowerKey;
174
+ });
175
+ return { data, rows };
176
+ });
177
+
178
+ const seen = new Set();
179
+ const rows = [];
180
+ for (const r of results) {
181
+ for (const row of r.rows) {
182
+ const key = String(row.form_data_id || `${row.candidate_name}|${row.start_time}|${row.position_name}`);
183
+ if (seen.has(key)) continue;
184
+ seen.add(key);
185
+ rows.push(row);
186
+ }
187
+ }
188
+ const first = results[0] || { data: {} };
189
+ return { ...first.data, rows };
190
+ }
191
+
80
192
  function stamp(d = new Date()) {
81
193
  const p = (n) => String(n).padStart(2, '0');
82
194
  return `${d.getFullYear()}${p(d.getMonth() + 1)}${p(d.getDate())}_${p(d.getHours())}${p(d.getMinutes())}${p(d.getSeconds())}`;
@@ -91,7 +203,7 @@ function countBy(rows, key) {
91
203
  return Object.fromEntries([...m.entries()].sort((a, b) => b[1] - a[1]));
92
204
  }
93
205
 
94
- function main() {
206
+ async function main() {
95
207
  const opts = parseArgs(process.argv.slice(2));
96
208
 
97
209
  const cliEntry = resolveCliEntry();
@@ -101,12 +213,7 @@ function main() {
101
213
  });
102
214
  }
103
215
 
104
- const data = runCli(cliEntry, 'recruit-stage.list', {
105
- type: 'interview',
106
- recent: opts.recent,
107
- sort: 'start_time',
108
- pageSize: 200,
109
- });
216
+ const data = await fetchInterviewData(cliEntry, opts);
110
217
 
111
218
  const rows = Array.isArray(data.rows) ? data.rows : [];
112
219
  if (!rows.length) {
@@ -128,15 +235,19 @@ function main() {
128
235
  conflicts.error = 'conflict_check_failed';
129
236
  }
130
237
 
131
- const env = data.env || '';
132
- const baseUrl = env ? (env.startsWith('http') ? env.split('/').slice(0, 3).join('/') : `https://${env}`) : '';
238
+ // CLI 的 env 只有 hostname(无协议/端口),不能反推;优先用回传的完整 baseUrl。
239
+ const envHost = data.env || '';
240
+ const baseUrl = String(data.baseUrl || '').replace(/\/+$/, '')
241
+ || (envHost ? (envHost.startsWith('http') ? envHost.split('/').slice(0, 3).join('/') : `https://${envHost}`) : '');
133
242
 
134
243
  const summaryData = {
135
244
  baseUrl,
136
245
  generatedAt: new Date().toISOString().slice(0, 16).replace('T', ' '),
137
246
  recentDays: opts.recent,
138
247
  interviewObjId: '',
139
- listUrl: baseUrl ? `${baseUrl}/sp/custom/ecode/recruit-talent/interview` : '',
248
+ // 统一用原生 EB 列表页(任何环境都能打开);壳页是自用部署期常量,
249
+ // selfUse=1 并不等于「部署过壳页」——188 实测 selfUse 也为 1,套壳页 ID 会 404。
250
+ listUrl: baseUrl && data.listId ? `${baseUrl}/sp/ebdfpage/list/${data.listId}` : '',
140
251
  rows: rows.map((r) => ({
141
252
  formDataId: r.form_data_id,
142
253
  talentId: '',
@@ -166,6 +277,16 @@ function main() {
166
277
  writeFileSync(reportFile, html, 'utf8');
167
278
  }
168
279
 
280
+ // 仅附件模式:只校验/返回绝对 reportFile,不启动服务;present_files 负责上传
281
+ let reportError = '';
282
+ if (reportFile) {
283
+ try {
284
+ publishReport(reportFile);
285
+ } catch (e) {
286
+ reportError = String(e?.message || e);
287
+ }
288
+ }
289
+
169
290
  const sorted = rows
170
291
  .slice()
171
292
  .sort((a, b) => String(a.start_time).localeCompare(String(b.start_time)));
@@ -181,18 +302,30 @@ function main() {
181
302
  aiPressureWindows: ((conflicts.aiPressure || {}).windows || []).length,
182
303
  checked: conflicts.checked || 0,
183
304
  aiExcluded: conflicts.aiExcluded || 0,
184
- rowsFile,
305
+ ...(conflicts.error ? { conflictsError: conflicts.error } : {}),
185
306
  reportFile,
186
- baseUrl,
307
+ ...(reportError ? { reportError } : {}),
308
+ // 🔴 stdout 只允许出现一个交付物路径:reportFile。
309
+ // rowsFile(中间数据)与 baseUrl(系统地址)收进 _internal 并标注非交付,
310
+ // 防止 Agent 把中间 JSON 当成第二个产物发给用户(2026-11-29 定稿)。
311
+ _internal: { note: '内部排障用,禁止作为交付物输出给用户' },
187
312
  };
188
313
  console.log(JSON.stringify(compact, null, 2));
189
314
 
190
315
  if (opts.printRows) {
191
316
  for (const r of sorted) {
317
+ const round = [r.interview_rounds, r.interview_session].filter(Boolean).join('/');
192
318
  const where = r.participation ? r.participation.value || r.participation.mode : '';
193
- console.log([r.start_time, r.candidate_name, r.position_name, r.interview_type, r.interviewer, r.union_status, where].join(' | '));
319
+ console.log([r.start_time, r.candidate_name, r.position_name, round, r.interview_type, r.interviewer, r.union_status, where].join(' | '));
194
320
  }
195
321
  }
196
322
  }
197
323
 
198
- main();
324
+ main().catch((e) => {
325
+ console.error(JSON.stringify({ ok: false, message: String((e && e.message) || e) }, null, 2));
326
+ process.exit(1);
327
+ });
328
+
329
+
330
+
331
+