weaver-work-cli 0.1.71 → 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 (324) hide show
  1. package/README.md +37 -1
  2. package/dist/chunks/{archive-5P33NAUN.js → archive-OZJ6PYUR.js} +14 -9
  3. package/dist/chunks/{archive-oa-YTY5D7DG.js → archive-oa-BHL5RK2F.js} +10 -7
  4. package/dist/chunks/{asset-3Q5MFQBX.js → asset-HKRFRQR2.js} +10 -7
  5. package/dist/chunks/{asset-idle-PQPNYIS7.js → asset-idle-GGIR4KE7.js} +7 -4
  6. package/dist/chunks/{attachment-content-7CN7JB6B.js → attachment-content-4OV65NK5.js} +3 -3
  7. package/dist/chunks/{blog-MFHHK6ZR.js → blog-HYDP4DV3.js} +10 -7
  8. package/dist/chunks/{caizhilian-OZ435AYW.js → caizhilian-JS4RQZ6Z.js} +10 -7
  9. package/dist/chunks/{calendar-TNJXS5UC.js → calendar-SWRY4DIT.js} +10 -7
  10. package/dist/chunks/chunk-257JXJGD.js +30 -0
  11. package/dist/chunks/{chunk-FRMDHZSN.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-X2C5CGGM.js → chunk-4FCBEWNB.js} +74 -68
  15. package/dist/chunks/{chunk-YN5SD4TX.js → chunk-5D2V7ZAN.js} +2 -2
  16. package/dist/chunks/{chunk-UPVAQJKS.js → chunk-5QUTQHXF.js} +282 -158
  17. package/dist/chunks/{chunk-SKWKCLJX.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-VMVMEIL3.js → chunk-BSR5TM7U.js} +4 -4
  21. package/dist/chunks/{chunk-EJLP63UO.js → chunk-ERZY6GYL.js} +7 -3
  22. package/dist/chunks/{chunk-OFCF23FY.js → chunk-FEZK536Z.js} +25 -9
  23. package/dist/chunks/{chunk-Q3EXRNB4.js → chunk-I6NOHKEK.js} +1 -1
  24. package/dist/chunks/{chunk-OZ7CJC7W.js → chunk-J7FAAHWH.js} +2 -2
  25. package/dist/chunks/{chunk-6MMSLE6K.js → chunk-JJONWB5N.js} +16 -2
  26. package/dist/chunks/chunk-JOY3HZXL.js +467 -0
  27. package/dist/chunks/{chunk-2DNCKZRX.js → chunk-JWF2R6EQ.js} +0 -462
  28. package/dist/chunks/{chunk-ICNUOWLL.js → chunk-KEA4XQPO.js} +4 -4
  29. package/dist/chunks/chunk-KINXYJXM.js +205 -0
  30. package/dist/chunks/{chunk-VJWVB55R.js → chunk-KWJEICD4.js} +2 -2
  31. package/dist/chunks/{chunk-P3AFNAJ6.js → chunk-LJI4N6FV.js} +1 -1
  32. package/dist/chunks/{chunk-DRJYPXKC.js → chunk-MXCRKXOP.js} +48 -6
  33. package/dist/chunks/{chunk-OPTJ6IF7.js → chunk-NWYHCZTY.js} +1 -1
  34. package/dist/chunks/chunk-OJ4JPD25.js +428 -0
  35. package/dist/chunks/{chunk-B4NINGP2.js → chunk-OQCK5SAU.js} +2 -2
  36. package/dist/chunks/chunk-PG5YSNYY.js +1166 -0
  37. package/dist/chunks/{chunk-LU2SPJYY.js → chunk-QJWVYOOV.js} +2 -2
  38. package/dist/chunks/{chunk-SUWR5QEG.js → chunk-QVKRNL7L.js} +287 -305
  39. package/dist/chunks/chunk-SU6IJD6D.js +49 -0
  40. package/dist/chunks/{chunk-MD5RXRI3.js → chunk-TA2RBUTH.js} +2 -2
  41. package/dist/chunks/{chunk-SSS75WXW.js → chunk-U6Y32KEV.js} +2 -2
  42. package/dist/chunks/chunk-UUJK76HV.js +209 -0
  43. package/dist/chunks/{chunk-GB2MCJPG.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-G7ZM2VOX.js → chunk-ZUB4M4N3.js} +38 -36
  47. package/dist/chunks/{chunk-XLSJC6JZ.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-Y4PXZ2YQ.js → conflict-5BKCDV2F.js} +2 -2
  51. package/dist/chunks/{contract-C3BGUMBM.js → contract-WI23OXVC.js} +12446 -5964
  52. package/dist/chunks/{cowork-2AWG4QLA.js → cowork-DZBBVNMQ.js} +11 -8
  53. package/dist/chunks/{create-flow-LOUOK46Z.js → create-flow-7ZRBRKX7.js} +6 -6
  54. package/dist/chunks/{data-BSFYMXVO.js → data-PAZVE6QE.js} +6 -3
  55. package/dist/chunks/{ebuilder-form-LAAMTD2Y.js → ebuilder-form-5SQXIGXN.js} +9 -6
  56. package/dist/chunks/{ehr-36KEX5SH.js → ehr-CX5F4ZAU.js} +27 -19
  57. package/dist/chunks/{entry-mode-6N2IGCS4.js → entry-mode-I2BYNONZ.js} +3 -3
  58. package/dist/chunks/{env-QYLS3EB3.js → env-ZAQZ7EHN.js} +2 -2
  59. package/dist/chunks/{esb-PTYS3E67.js → esb-DQTXDIBF.js} +10 -7
  60. package/dist/chunks/{factory-LPFPKZ4T.js → factory-XRI6KZ7H.js} +1 -1
  61. package/dist/chunks/{fna-JNHCLRDE.js → fna-FK6HQVJL.js} +13 -8
  62. package/dist/chunks/{group-chat-QP2WX4QJ.js → group-chat-MLWNYM2P.js} +3 -3
  63. package/dist/chunks/{host-C2BLBIID.js → host-3EPREGXS.js} +6 -3
  64. package/dist/chunks/{host-QXFKQXNX.js → host-J74JGYAW.js} +6 -3
  65. package/dist/chunks/{host-57LSRSE7.js → host-KUMU3DDK.js} +6 -3
  66. package/dist/chunks/{host-7BVR7CQ3.js → host-MEC4VQZA.js} +6 -3
  67. package/dist/chunks/{host-NS36QFLR.js → host-T6NNQGVZ.js} +6 -3
  68. package/dist/chunks/{host-K2ZKNXME.js → host-VI7Q45PM.js} +6 -3
  69. package/dist/chunks/{hrm-FSGO4NSH.js → hrm-KKVAW4P5.js} +8 -5
  70. package/dist/chunks/{im-2BFGS2XO.js → im-47CIWQNL.js} +7 -4
  71. package/dist/chunks/{invoice-JKLTTHSZ.js → invoice-CDYRBNIG.js} +21 -16
  72. package/dist/chunks/{jiuchuanhui-PTABJE7V.js → jiuchuanhui-M7QTRHZK.js} +17 -10
  73. package/dist/chunks/{lazy-dispatch-YN2ZP3CS.js → lazy-dispatch-FKQJZFI5.js} +22 -8
  74. package/dist/chunks/{mail-YNO7ZZUK.js → mail-NRBS5N6Y.js} +11 -8
  75. package/dist/chunks/{meeting-NIDHDBCB.js → meeting-WC5LD3IO.js} +22 -18
  76. package/dist/chunks/{minute-doc-G3QAT7DE.js → minute-doc-OQUMDTKG.js} +4 -4
  77. package/dist/chunks/{okr-QC52G6AJ.js → okr-EHKSKMPL.js} +10 -7
  78. package/dist/chunks/{operations-MQV32ITT.js → operations-V5VM5MS2.js} +7 -4
  79. package/dist/chunks/{performance-3MQ3AHDQ.js → performance-ZJADXJPN.js} +6 -3
  80. package/dist/chunks/{plan-ISINIEPY.js → plan-OTDNBDJ7.js} +10 -7
  81. package/dist/chunks/{project-IJ6DVKT7.js → project-4XVBQ3HX.js} +10 -7
  82. package/dist/chunks/{reception-3H5LUG2I.js → reception-3FAHOOH7.js} +118 -45
  83. package/dist/chunks/{recruit-stage-MIOJXP6W.js → recruit-stage-3WTVWW2K.js} +1056 -191
  84. package/dist/chunks/register-SQOPIR2G.js +16 -0
  85. package/dist/chunks/{registry-3S7AVMXR.js → registry-F4YFZLOD.js} +7 -3
  86. package/dist/chunks/registry-NBTBXR4L.js +30 -0
  87. package/dist/chunks/{registry-NHHKOEU3.js → registry-TJGCVRCW.js} +7 -4
  88. package/dist/chunks/{room-recommend-IOKBJVYP.js → room-recommend-KL62XB2Y.js} +4 -4
  89. package/dist/chunks/root-YZG2TS5W.js +16 -0
  90. package/dist/chunks/{schedule-IB6EUARH.js → schedule-XOISYUPB.js} +4 -4
  91. package/dist/chunks/{smart-extract-N2TK3CEF.js → smart-extract-UYGNV3BM.js} +15 -7
  92. package/dist/chunks/update-AV5VOXGY.js +13 -0
  93. package/dist/chunks/{workflow-RINBAL2M.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 +12 -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 +11 -5
  161. package/dist/shortcuts/ehr/operations/recruit-short-cache.js +6 -2
  162. package/dist/shortcuts/ehr/operations/recruit-write.js +10 -9
  163. package/dist/shortcuts/ehr/operations/recruit.js +390 -196
  164. package/dist/shortcuts/ehr/operations/shared.js +51 -0
  165. package/dist/shortcuts/esb/index.js +1 -1
  166. package/dist/shortcuts/fna/index.js +1 -1
  167. package/dist/shortcuts/fna/manifest.js +1 -0
  168. package/dist/shortcuts/fna/operations/expense-chart.js +3 -1
  169. package/dist/shortcuts/hrm/index.js +1 -1
  170. package/dist/shortcuts/invoice/index.js +1 -1
  171. package/dist/shortcuts/jiuchuanhui/index.js +2 -2
  172. package/dist/shortcuts/jiuchuanhui/manifest.js +3 -0
  173. package/dist/shortcuts/mail/index.js +2 -2
  174. package/dist/shortcuts/meeting/index.js +1 -1
  175. package/dist/shortcuts/meeting/manifest.js +1 -0
  176. package/dist/shortcuts/meeting/operations/eb/catalog.js +5 -3
  177. package/dist/shortcuts/meeting/operations/eb/conflict.js +3 -1
  178. package/dist/shortcuts/meeting/operations/eb/create-flow.js +10 -9
  179. package/dist/shortcuts/meeting/operations/eb/factory.js +2 -0
  180. package/dist/shortcuts/meeting/operations/eb/member-expand.js +3 -2
  181. package/dist/shortcuts/meeting/operations/invitation-publish.js +3 -3
  182. package/dist/shortcuts/meeting/operations/invitation.js +4 -4
  183. package/dist/shortcuts/meeting/operations/link.js +3 -1
  184. package/dist/shortcuts/okr/index.js +1 -1
  185. package/dist/shortcuts/performance/index.js +1 -1
  186. package/dist/shortcuts/plan/index.js +1 -1
  187. package/dist/shortcuts/project/index.js +1 -1
  188. package/dist/shortcuts/reception/constants.js +22 -0
  189. package/dist/shortcuts/reception/index.js +4 -0
  190. package/dist/shortcuts/reception/manifest.js +16 -2
  191. package/dist/shortcuts/reception/operations/doc.js +24 -11
  192. package/dist/shortcuts/reception/operations/docrender.js +18 -1
  193. package/dist/shortcuts/reception/operations/render-assets.js +93 -22
  194. package/dist/shortcuts/recruit-stage/context.js +22 -8
  195. package/dist/shortcuts/recruit-stage/index.js +16 -3
  196. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +20 -11
  197. package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -1
  198. package/dist/shortcuts/recruit-stage/operations/jd-create.js +467 -26
  199. package/dist/shortcuts/recruit-stage/operations/list.js +73 -2
  200. package/dist/shortcuts/recruit-stage/operations/profile.js +13 -5
  201. package/dist/shortcuts/recruit-stage/operations/registry.js +18 -2
  202. package/dist/shortcuts/recruit-stage/operations/resume-import.js +363 -54
  203. package/dist/shortcuts/recruit-stage/operations/search.js +80 -16
  204. package/dist/shortcuts/recruit-stage/operations/shortlist.js +124 -0
  205. package/dist/shortcuts/recruit-stage/shared.js +174 -56
  206. package/dist/shortcuts/smart-extract/manifest.js +1 -0
  207. package/dist/shortcuts/smart-extract/operations/fill.js +7 -2
  208. package/dist/shortcuts/smart-extract/operations/validate.js +4 -1
  209. package/dist/shortcuts/workflow/index.js +2 -2
  210. package/dist/shortcuts/workflow/manifest.js +1 -0
  211. package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +4 -1
  212. package/dist/shortcuts/workflow/operations/deepRead.js +23 -2
  213. package/dist/shortcuts/workflow/operations/form.js +44 -4
  214. package/docs/contract.md +6 -1
  215. package/docs/e10-auth.md +25 -7
  216. package/docs/operation-manual.md +15 -0
  217. package/package.json +2 -2
  218. package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
  219. package/skill-template/business-info.json +28 -0
  220. package/skill-template/domains/jinchengda.md +13 -1
  221. package/skills/weaver-e10-archive-oa/references/source-manifest.json +3 -3
  222. package/skills/weaver-e10-caizhilian/references/auth-and-install.md +2 -1
  223. package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
  224. package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
  225. package/skills/weaver-e10-jinchengda/SKILL.md +90 -32
  226. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +45 -0
  227. package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +68 -0
  228. package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +216 -0
  229. package/skills/weaver-e10-jinchengda/references/contract-clause-negotiate.md +215 -0
  230. package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +113 -0
  231. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +19 -3
  232. package/skills/weaver-e10-jinchengda/references/contract-decisions.md +114 -0
  233. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +53 -44
  234. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +1 -1
  235. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +1 -1
  236. package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +200 -0
  237. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -1
  238. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +138 -3
  239. package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +158 -0
  240. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +3 -1
  241. package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +139 -0
  242. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +2 -2
  243. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +10 -3
  244. package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +106 -0
  245. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
  246. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +176 -56
  247. package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +123 -0
  248. package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +410 -0
  249. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
  250. package/skills/weaver-e10-jinchengda/references/contract-viewlink.md +110 -0
  251. package/skills/weaver-e10-jinchengda/references/orchestration.md +38 -24
  252. package/skills/weaver-e10-jucailin/SKILL.md +7 -3
  253. package/skills/weaver-e10-jucailin/references/recruit-output-links.md +33 -0
  254. package/skills/weaver-e10-jucailin/references/recruit-write.md +2 -0
  255. package/skills/weaver-e10-meeting/SKILL.md +13 -0
  256. package/skills/weaver-e10-okr/SKILL.md +11 -0
  257. package/skills/weaver-e10-okr/references/source-manifest.json +7 -6
  258. package/skills/weaver-e10-performance/SKILL.md +131 -39
  259. package/skills/weaver-e10-performance/agents/openai.yaml +48 -17
  260. package/skills/weaver-e10-performance/references/default-assembly.md +3 -0
  261. package/skills/weaver-e10-performance/references/extraction-guide.md +17 -3
  262. package/skills/weaver-e10-performance/references/flow-assess.md +38 -5
  263. package/skills/weaver-e10-performance/references/scheme-setting-page.md +20 -3
  264. package/skills/weaver-e10-performance/scripts/assemble_scheme.py +461 -0
  265. package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +41 -0
  266. package/skills/weaver-e10-plan/SKILL.md +10 -0
  267. package/skills/weaver-e10-plan/references/source-manifest.json +13 -13
  268. package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
  269. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +9 -9
  270. package/skills/weaver-e10-reception-flow/SKILL.md +97 -41
  271. package/skills/weaver-e10-reception-flow/references/guide.md +3 -1
  272. package/skills/weaver-e10-recruit-stage/SKILL.md +533 -137
  273. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +103 -62
  274. package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +282 -0
  275. package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +331 -0
  276. package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +865 -0
  277. package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +162 -11
  278. package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +15 -1
  279. package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +38 -0
  280. package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +5 -1
  281. package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +6 -2
  282. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +4 -0
  283. package/skills/weaver-e10-recruit-stage/references/position-templates.md +26 -21
  284. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +33 -27
  285. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +11 -7
  286. package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +5 -1
  287. package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +5 -1
  288. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +22 -5
  289. package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +42 -0
  290. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +11 -7
  291. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +87 -50
  292. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +4 -0
  293. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -0
  294. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +48 -3
  295. package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +45 -0
  296. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +17 -11
  297. package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +8 -4
  298. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +162 -31
  299. package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +55 -0
  300. package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +75 -0
  301. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +4 -0
  302. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +12 -8
  303. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +8 -4
  304. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +80 -46
  305. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +11 -7
  306. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +12 -8
  307. package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +10 -6
  308. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +15 -11
  309. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +7 -3
  310. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +7 -3
  311. package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +119 -0
  312. package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +322 -0
  313. package/skills/weaver-e10-recruit-stage/templates/match-report.html +166 -76
  314. package/skills/weaver-e10-shared/SKILL.md +40 -5
  315. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +11 -1
  316. package/skills/weaver-e10-shared/references/json-output-contract.md +144 -8
  317. package/skills/weaver-e10-shared/references/weaver-e10-installation.md +11 -0
  318. package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
  319. package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
  320. package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
  321. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +5 -5
  322. package/dist/chunks/chunk-MZVQKQP5.js +0 -2849
  323. package/dist/chunks/registry-3GQRYP2R.js +0 -27
  324. package/skills/weaver-e10-jucailin/references/source-manifest.json +0 -152
@@ -169,6 +169,45 @@ function ensureDir(dir) {
169
169
  }
170
170
 
171
171
  // ── 调 CLI(结构化错误透传,不吞不抛堆栈)────────────────────────────────────
172
+ /**
173
+ * 结果引用(ref)落盘目录:与 CLI 的 state.ts 同一套解析顺序。
174
+ * refsDir = <stateRoot>/state/refs/<YYYY-MM-DD>/<refId>.json
175
+ */
176
+ function refsRootDir() {
177
+ const base = process.env.WEAVER_WORK_CLI_HOME || process.env.WORK_CLI_HOME || join(homedir(), '.weaver-work-cli');
178
+ return join(base, 'state', 'refs');
179
+ }
180
+
181
+ /**
182
+ * 🔴 2026-11-28 性能修复:直接从 ref 落盘文件取全量结果。
183
+ *
184
+ * 原实现走 `refs get <refId> data`,而这条路径**必然失败**——data 里 22KB 的 continuation
185
+ * 本身就超 stdout 预算;失败后再按 17 个字段逐个 `refs get`,每个字段都要新起一个 Node
186
+ * 子进程(实测 ≈350ms),单次 prepare 平白多花 5.5 秒(helper 7.44s vs 原生 1.94s)。
187
+ *
188
+ * 技能文档 §7 本就写明可以用「refs path + 直接读 <refId>.json」取全量,这里按此实现:
189
+ * 一次目录扫描 + 一次 readFileSync,零子进程。
190
+ */
191
+ function readRefEnvelopeFromDisk(refId) {
192
+ // 诊断开关:置 1 可强制走旧的多子进程回取路径,用于 A/B 对比耗时(默认关闭)。
193
+ if (process.env.RECRUIT_HELPER_NO_DISK_REF === '1') return null;
194
+ if (!/^[A-Za-z0-9._-]+$/.test(refId)) return null; // 防路径穿越,refId 只含安全字符
195
+ const root = refsRootDir();
196
+ let entries = [];
197
+ try { entries = readdirSync(root, { withFileTypes: true }); } catch { return null; }
198
+ // 日期目录数量等于历史天数,量级很小;从新到旧扫,命中即返回
199
+ const dirs = entries.filter((e) => e.isDirectory()).map((e) => e.name).sort().reverse();
200
+ for (const dir of dirs) {
201
+ const file = join(root, dir, `${refId}.json`);
202
+ try {
203
+ if (!existsSync(file)) continue;
204
+ const doc = JSON.parse(readFileSync(file, 'utf8'));
205
+ if (doc && doc.refId === refId && doc.envelope && typeof doc.envelope === 'object') return doc.envelope;
206
+ } catch { /* 坏文件或 0 字节残骸,跳过 */ }
207
+ }
208
+ return null;
209
+ }
210
+
172
211
  function runCli(operation, input) {
173
212
  if (!CLI_ENTRY) {
174
213
  return {
@@ -184,7 +223,11 @@ function runCli(operation, input) {
184
223
  ensureDir(dir);
185
224
  const tmpInput = join(dir, `input-${process.pid}-${Date.now()}.json`);
186
225
  writeFileSync(tmpInput, JSON.stringify(input), 'utf8');
187
- const args = [CLI_ENTRY, '--json', 'recruit-stage', 'run', operation, '--input', tmpInput, '--allow-file-input'];
226
+ // 多环境测试:RECRUIT_CLI_PROFILE=10-12-105-188 时透传 --profile(默认走 CLI 默认 profile)
227
+ const cliProfile = String(process.env.RECRUIT_CLI_PROFILE || '').trim();
228
+ const args = [CLI_ENTRY, '--json'];
229
+ if (cliProfile) args.push('--profile', cliProfile);
230
+ args.push('recruit-stage', 'run', operation, '--input', tmpInput, '--allow-file-input');
188
231
  try {
189
232
  // 用当前 node 直接跑 CLI 的 JS 入口:跨平台一致,不需要 shell,不受 .cmd 限制
190
233
  const stdout = execFileSync(process.execPath, args, {
@@ -193,7 +236,52 @@ function runCli(operation, input) {
193
236
  maxBuffer: 32 * 1024 * 1024,
194
237
  windowsHide: true,
195
238
  });
196
- return JSON.parse(stdout);
239
+ const parsed = JSON.parse(stdout);
240
+ // 🔴 2026-11-28 修「大输出被截断导致 continuation 丢失」:
241
+ // CLI stdout 有 28000 字符预算,超出时把 data/meta 换成占位字符串
242
+ // ("<omitted: N keys, use --input-ref>")+ refId。签入 built 后 prepare 输出会到 5 万字符,
243
+ // 直接 JSON.parse 拿到的 continuation 是空的 → helper 误报 continuation_missing。
244
+ // 这里按 CLI 的 refs 契约把全量取回来。
245
+ if (parsed && parsed.refId && parsed.resultPersisted) {
246
+ const refId = String(parsed.refId);
247
+ // 🔴 2026-11-28 性能修复(主路径):直接读落盘文件,零子进程。
248
+ const fromDisk = readRefEnvelopeFromDisk(refId);
249
+ if (fromDisk) {
250
+ return {
251
+ ...parsed,
252
+ data: fromDisk.data ?? {},
253
+ meta: fromDisk.meta ?? {},
254
+ largeOutputRefId: refId,
255
+ refSource: 'disk',
256
+ };
257
+ }
258
+ // 兜底:磁盘不可读(自定义 state 根、权限受限等)时才走子进程回取
259
+ const getPath = (p) => execFileSync(
260
+ process.execPath,
261
+ [CLI_ENTRY, '--json', 'refs', 'get', refId, p],
262
+ { encoding: 'utf8', timeout: 120000, maxBuffer: 64 * 1024 * 1024, windowsHide: true },
263
+ );
264
+ // 先试整体 data;仍超预算时(continuation 22KB + summary 一起超 28000)
265
+ // 按字段逐个取,只取 Agent 展示确认摘要与 apply 必需的字段,控制子进程次数。
266
+ let fullData = null;
267
+ try {
268
+ fullData = JSON.parse(getPath('data'));
269
+ } catch {
270
+ fullData = {};
271
+ const FIELDS = [
272
+ 'continuation', 'mode', 'action', 'resumeFile', 'resumeFileId', 'parsed',
273
+ 'channel', 'subTables', 'subTableRows', 'duplicate', 'tagCheck', 'schoolTags',
274
+ 'setApplied', 'setSkipped', 'workLocationDefault', 'warnings', 'note',
275
+ ];
276
+ for (const f of FIELDS) {
277
+ try { fullData[f] = JSON.parse(getPath('data.' + f)); } catch { /* 字段不存在则跳过 */ }
278
+ }
279
+ }
280
+ let fullMeta = {};
281
+ try { fullMeta = JSON.parse(getPath('meta')); } catch { fullMeta = {}; }
282
+ return { ...parsed, data: fullData, meta: fullMeta, largeOutputRefId: refId };
283
+ }
284
+ return parsed;
197
285
  } catch (e) {
198
286
  // 🔴 CLI 业务报错时 exit code 非 0,结构化 JSON 在 stderr(部分在 stdout)。
199
287
  // 原实现不 catch → 用户看到 Node 堆栈而不是「缺参数/无权限」这类可读原因。
@@ -226,12 +314,19 @@ function emit(obj, exitCode) {
226
314
  }
227
315
 
228
316
  // ── prepare ────────────────────────────────────────────────────────────────
229
- function doPrepare(operation, paramsPath) {
317
+ function doPrepare(operation, paramsPath, inlineParams) {
230
318
  let params;
231
- try {
232
- params = JSON.parse(readFileSync(resolvePath(paramsPath), 'utf8'));
233
- } catch (e) {
234
- return emit({ ok: false, error: { type: 'validation', subtype: 'params_unreadable', message: `参数文件读取或解析失败:${e?.message || e}` } }, 1);
319
+ if (inlineParams) {
320
+ params = inlineParams;
321
+ } else {
322
+ try {
323
+ // 🔴 剥掉 UTF-8 BOM:PowerShell 的 `Set-Content -Encoding utf8` 会写入 BOM,
324
+ // 原实现直接把带 BOM 的内容丢给 JSON.parse,报 Unexpected token ''(已实测复现)。
325
+ const raw = readFileSync(resolvePath(paramsPath), 'utf8').replace(/^\uFEFF/, '');
326
+ params = JSON.parse(raw);
327
+ } catch (e) {
328
+ return emit({ ok: false, error: { type: 'validation', subtype: 'params_unreadable', message: `参数文件读取或解析失败:${e?.message || e}` } }, 1);
329
+ }
235
330
  }
236
331
 
237
332
  const result = runCli(operation + '.prepare', params);
@@ -268,13 +363,17 @@ function doPrepare(operation, paramsPath) {
268
363
  try { rmSync(tmp, { force: true }); } catch { /* 忽略 */ }
269
364
  }
270
365
 
366
+ // 🔴 2026-11-28:输出给 Agent 的 data 剔除 continuation(22KB+,已在 state 文件里),
367
+ // 否则 helper 自己的 stdout 也会超出平台预算被截断,Agent 看不到摘要。
368
+ const { continuation: _omitCont, ...dataForAgent } = (result.data || {});
271
369
  emit({
272
370
  ok: true,
273
371
  phase: 'prepare',
274
372
  operation,
275
373
  stateSaved: true,
276
374
  stateFile: target,
277
- data: result.data,
375
+ continuationChars: String(continuation).length,
376
+ data: dataForAgent,
278
377
  });
279
378
  }
280
379
 
@@ -340,15 +439,64 @@ const USAGE = {
340
439
  // operation 白名单校验:只允许招聘模块的已知写操作前缀,防止拼错或注入
341
440
  const ALLOWED_OPERATION_RE = /^recruit-stage\.[a-z0-9.]+$/;
342
441
 
442
+ /**
443
+ * 🔴 2026-11-28:prepare 支持直传入参,不必先落一个参数文件。
444
+ *
445
+ * 动机:参数文件把一次「模型往返 + 一次写盘」塞进了每次写操作,且 PowerShell 的
446
+ * UTF-8 写入会带 BOM(已实测把 helper 打到 params_unreadable)。直传走 Node argv,
447
+ * 本身是 UTF-16,中文路径不会损坏。
448
+ *
449
+ * ... <params.json> 仍支持(兼容既有调用)
450
+ * ... --fileid <id> 复用已上传的简历附件(跳过上传与 OCR)
451
+ * ... --resume <本地路径> 简历原件
452
+ * ... --set key=value 任意键值,可重复;true/false 自动转布尔
453
+ * ... --json '<内联 JSON>' 短参数,键值合并
454
+ */
455
+ function buildParamsFromArgv(argv) {
456
+ const params = {};
457
+ let filePath = '';
458
+ for (let i = 0; i < argv.length; i++) {
459
+ const a = argv[i];
460
+ if (a === '--fileid') params.fileId = argv[++i];
461
+ else if (a === '--resume') params.resumeFile = argv[++i];
462
+ else if (a === '--json') {
463
+ const doc = JSON.parse(argv[++i] || '{}');
464
+ if (doc && typeof doc === 'object') Object.assign(params, doc);
465
+ } else if (a === '--set') {
466
+ const kv = String(argv[++i] || '');
467
+ const eq = kv.indexOf('=');
468
+ if (eq <= 0) throw new Error(`--set 需要 key=value 形式,收到:${kv}`);
469
+ const value = kv.slice(eq + 1);
470
+ params[kv.slice(0, eq)] = value === 'true' ? true : value === 'false' ? false : value;
471
+ } else if (!a.startsWith('--') && !filePath) {
472
+ filePath = a;
473
+ }
474
+ }
475
+ return { filePath, params };
476
+ }
477
+
343
478
  const mode = process.argv[2];
344
479
  const operation = process.argv[3];
345
480
 
346
481
  if (mode === 'prepare') {
347
- const paramsPath = process.argv[4];
348
- if (!operation || !paramsPath) emit(USAGE, 1);
482
+ if (!operation) emit(USAGE, 1);
349
483
  else if (!ALLOWED_OPERATION_RE.test(operation)) {
350
484
  emit({ ok: false, error: { type: 'validation', subtype: 'operation_invalid', message: `operation 必须是 recruit-stage.* 形式,收到:${operation}` } }, 1);
351
- } else doPrepare(operation, paramsPath);
485
+ } else {
486
+ let parsedArgs;
487
+ try {
488
+ parsedArgs = buildParamsFromArgv(process.argv.slice(4));
489
+ } catch (e) {
490
+ emit({ ok: false, error: { type: 'validation', subtype: 'usage', message: `入参解析失败:${e?.message || e}` } }, 1);
491
+ parsedArgs = null;
492
+ }
493
+ if (parsedArgs) {
494
+ const { filePath, params } = parsedArgs;
495
+ if (filePath) doPrepare(operation, filePath);
496
+ else if (Object.keys(params).length) doPrepare(operation, '', params);
497
+ else emit(USAGE, 1);
498
+ }
499
+ }
352
500
  } else if (mode === 'apply') {
353
501
  if (!operation) emit(USAGE, 1);
354
502
  else if (!ALLOWED_OPERATION_RE.test(operation)) {
@@ -357,3 +505,6 @@ if (mode === 'prepare') {
357
505
  } else {
358
506
  emit(USAGE, 1);
359
507
  }
508
+
509
+
510
+
@@ -181,7 +181,18 @@ async function main() {
181
181
  const m = cd.match(/filename\*?=(?:UTF-8'')?"?([^";]+)"?/i);
182
182
  if (m) { try { name = decodeURIComponent(m[1]); } catch { name = m[1]; } }
183
183
  }
184
- if (!name) name = 'resume-' + fileId + (/\.(pdf|docx?|rtf)$/i.test(ct) ? '' : '.pdf');
184
+ if (!name) {
185
+ // ct 是 MIME(application/pdf 等),不是扩展名:用 /\.pdf$/ 永远匹配不到,会把 docx 也命名成 .pdf
186
+ const MIME_EXT = {
187
+ 'application/pdf': '.pdf',
188
+ 'application/msword': '.doc',
189
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': '.docx',
190
+ 'application/rtf': '.rtf', 'text/rtf': '.rtf',
191
+ 'image/jpeg': '.jpg', 'image/png': '.png',
192
+ };
193
+ const ext = MIME_EXT[String(ct).split(';')[0].trim().toLowerCase()] || '.pdf';
194
+ name = 'resume-' + fileId + ext;
195
+ }
185
196
  const out = path.resolve(String(args.out || path.join(tmpdir(), 'xiaoe-attach', name)));
186
197
  fs.mkdirSync(path.dirname(out), { recursive: true });
187
198
  fs.writeFileSync(out, buf);
@@ -190,3 +201,6 @@ async function main() {
190
201
  }
191
202
 
192
203
  main().catch((e) => { emit({ ok: false, error: e && e.message ? e.message : String(e) }); process.exit(1); });
204
+
205
+
206
+
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * 报告附件发布器(仅附件模式)。
4
+ *
5
+ * 用法:
6
+ * node lib/report-attachment.mjs --file <报告.html>
7
+ * → 校验报告存在,stdout 回 {"ok":true,"reportFile":"<绝对路径>","bytes":N}
8
+ * → 不启动任何服务、不生成 URL;由 Agent 用 present_files 登记为会话附件
9
+ */
10
+ import { existsSync, statSync } from "node:fs";
11
+ import { resolve } from "node:path";
12
+ import { fileURLToPath } from "node:url";
13
+
14
+ export function publishReport(file) {
15
+ const reportFile = resolve(file);
16
+ if (!existsSync(reportFile)) throw new Error(`报告文件不存在:${reportFile}`);
17
+ return { reportFile, bytes: statSync(reportFile).size };
18
+ }
19
+
20
+ const SELF = fileURLToPath(import.meta.url);
21
+ const args = process.argv.slice(2);
22
+ const isMain = process.argv[1] && resolve(process.argv[1]) === SELF;
23
+
24
+ if (isMain) {
25
+ if (args[0] !== "--file" || !args[1]) {
26
+ console.error(JSON.stringify({ ok: false, message: "用法:--file <报告.html>" }));
27
+ process.exit(1);
28
+ }
29
+ try {
30
+ console.log(JSON.stringify({ ok: true, ...publishReport(args[1]) }));
31
+ } catch (e) {
32
+ console.error(JSON.stringify({ ok: false, message: String(e?.message || e) }));
33
+ process.exit(1);
34
+ }
35
+ }
36
+
37
+
38
+
@@ -39,7 +39,8 @@ export function readXiaoeClientSession() {
39
39
  for (const d of readdirSync(base)) {
40
40
  const f = resolve(base, String(d), 'user_settings.json');
41
41
  if (!existsSync(f)) continue;
42
- const t = statSync(f).mtimeMs;
42
+ let t;
43
+ try { t = statSync(f).mtimeMs; } catch { continue; } // 单个坏 profile 不应让整次读取失败
43
44
  if (t > bestT) {
44
45
  best = f;
45
46
  bestT = t;
@@ -64,3 +65,6 @@ export function readXiaoeClientSession() {
64
65
  }
65
66
 
66
67
  export default { readXiaoeClientSession };
68
+
69
+
70
+
@@ -6,7 +6,7 @@ description: 自用环境结构元数据参考值(快路径)——objId/form
6
6
  # 自用环境结构元数据参考值
7
7
 
8
8
  > **背景**:招聘助手只在自用小E(www.e-cology.com.cn)使用,表单结构固定不变。
9
- > 这些值作为**快路径**:命中即跳过运行时解析(省 2-3 HTTP),不一致时回退动态解析。
9
+ > 这些值作为**快路径**:命中即跳过运行时解析,不一致时回退动态解析。
10
10
  > 遵守 [`env-ziyong.md`](env-ziyong.md) §3 分层:结构元数据可预置,optionId/人员 id 绝不写死。
11
11
  >
12
12
  > ⚠️ **校验方式**:首次使用时用 `listInit(listId)` 的 `objid` 比对;不一致就回退动态解析。
@@ -61,8 +61,8 @@ description: 自用环境结构元数据参考值(快路径)——objId/form
61
61
  | objId | — | 840751242946035712 |
62
62
  | formId | — | 840751242946035714 |
63
63
  | 面试管理列表 listId | — | 840751268732616721 |
64
-
65
64
  **面试类型枚举**(optionId 跨环境不同,此处仅记录自用环境实测值,运行时仍走 ds/options 解析):
65
+
66
66
  - 841052191228968962 = 视频面试
67
67
  - 841052191228968963 = 现场面试
68
68
  - 841052191228968964 = AI面试
@@ -85,3 +85,7 @@ Agent 不需要直接读这个文件。CLI 的环境缓存(`~/.weaver-work-cli
85
85
 
86
86
  > 🔴 **绝不写死的值**:optionId(DS选项/字典)、人员 id、标签 id、AI面试方案 id、办公地点记录 id。
87
87
  > 这些值后端会变,写死后无效 optionId 会被静默丢弃仍返回 success。
88
+
89
+
90
+
91
+
@@ -77,3 +77,7 @@ description: 定死部署环境的固化边界——哪些能预置、哪些必
77
77
  - 本档案只描述固化**规则**;真实环境标识放本机基座,不进上发包。
78
78
  - 参考值变了先真机验证再改 §2,并留下验证方式;禁止凭记忆改数字。
79
79
  - 新增可固化项先过 §3 分层表,属「绝不」档的一律不进包。
80
+
81
+
82
+
83
+
@@ -1,47 +1,48 @@
1
1
  # 岗位模板库(position-templates)
2
2
 
3
3
  > **用途**:`recruit-stage.jd.create.*` 生成 JD 时,直接从本文件取岗位写法与字段范式,**不再运行时拉取「最近同类职位参考」**。
4
- > **收益**:省掉 6 次接口请求(列表 1 次 + 详情 5 次),prepare 从约 10.7 秒降到 3 秒内;同时避免脏数据污染新职位字段。
5
4
  > **数据来源**:2026-11-05 对当前环境 836 条职位抽样 100 条统计(分布见文末「环境观测」),岗位分类按实测出现频次归纳,非臆测。
5
+ > **收益**:省掉 6 次接口请求(列表 1 次 + 详情 5 次),prepare 从约 10.7 秒降到 3 秒内;同时避免脏数据污染新职位字段。
6
6
  > **维护约定**:公司招聘口径调整时直接改本文件;新增岗位类型追加模板段落即可,不改脚本。
7
7
 
8
8
  ---
9
-
10
9
  ## 一、通用字段范式(实测统计得出)
11
10
 
11
+
12
12
  | 字段 | 推荐默认 | 实测依据 |
13
13
  |---|---|---|
14
14
  | 岗位性质 `position_nature` | **全职**(实习岗选「实习」) | 抽样 100 条中全职 79 条、实习 21 条 |
15
- | 招聘人数 `recruit_count` | **1** | 抽样中 1 人占 67%、2 人占 19% |
15
+ | 招聘人数 `recruit_count` | **3** | 2026-11-28 用户口径,与 CLI 默认一致;抽样 1 人 67%、2 人 19% 为历史分布,仅作参考不复用 |
16
16
  | 状态 `status` | 招聘中 | 新发布岗位固定用此值 |
17
17
  | 招聘类型 `recruit_type` | 社会招聘(实习岗可考虑校园/实习) | — |
18
18
  | 薪酬类型 `salary_type` | 月薪 | — |
19
19
  | 薪酬月数 `number_of_pay_months` | 12 | — |
20
20
  | 招聘负责人 / 用人经理 | 当前登录人 | 由脚本自动填充,模板不指定 |
21
21
 
22
- > **薪资区间按本文件 §1.1 的推荐表取值**(不再从历史职位继承——历史记录可能带脏数据,实测抓到过 300 元月薪)。
23
- > 用户没说薪资时:按岗位类型 + 经验年限取推荐区间,填进 `sets` 的 `salary_min`/`salary_max`(单位**元/月**,如 15K 写 `15000`),
24
- > 并在确认摘要里注明「薪资为推荐值」请用户确认;用户明确给了数字就以用户为准。
22
+ > **薪资口径(2026-11-29 二次修正)**:`salary_min` / `salary_max` 的**单位就是「千」**,写 `15` 就是 15K、写 `30` 就是 30K,**CLI 直接落库、不再除以 1000**。CLI 默认值已改为 `salary_min=15` / `salary_max=30`。历史错误做法「传 15000 让 CLI 除以 1000」已废弃——那样会落成 0.015,页面显示 0.02。用户指定薪资时按千传值、以用户为准。
23
+ > 只有**用户明确给出薪资数字**时才传 `sets`(单位**千/月**,如 15K 直接写 `15`,**不要再写 15000**)。
24
+ > 用户问「建议开多少」时才查 §1.1 给参考区间,且必须经用户确认后才传;用户没提就别提、别猜。
25
25
 
26
26
  > ⚠️ **枚举类字段必须与环境字典对齐,否则会被静默跳过**(2026-11-05 实测:`work_years=1年以上` 字典无此选项 → 进 `setSkipped`):
27
27
  > - `work_years`(经验年限):**优先用「不限」**(已实测可用);写具体年限前先确认本环境该字段的实际选项值。
28
- > - `work_location`(工作地点):✅ 可通过 `sets` 指定,解析只在「办公地点」列表的**启用记录**里做、完整地址精确优先。⚠️ 提交后检查 `setApplied`/`setSkipped`,`setSkipped` 非空即未写入。**未指定时不再从历史职位继承**(会带出 `detail_location` 为 `1` 的脏地点),改按启用列表精确匹配默认地点「浦江镇三鲁公路3419号泛微软件园」;摘要看 `workLocationDefault`,解析失败则看 `workLocationWarning`。
29
28
  > - `education`(学历):用裸名称(「本科」「硕士」),已实测可用。
29
+ > - `work_location`(工作地点):✅ 可通过 `sets` 指定,解析只在「办公地点」列表的**启用记录**里做、完整地址精确优先。⚠️ 提交后检查 `setApplied`/`setSkipped`,`setSkipped` 非空即未写入。**未指定时不再从历史职位继承**(会带出 `detail_location` 为 `1` 的脏地点),改按启用列表精确匹配默认地点「浦江镇三鲁公路3419号泛微软件园」;摘要看 `workLocationDefault`,解析失败则看 `workLocationWarning`。
30
30
  >
31
31
  > 提交 `sets` 时**务必检查返回的 `setApplied` / `setSkipped`**:`setSkipped` 非空说明该值没写进去,需换值或改用完整名称重试。
32
32
 
33
33
  ---
34
34
 
35
- ### 1.1 薪资推荐区间(`salary_min` / `salary_max`)
35
+ ### 1.1 薪资参考区间(仅用户询问时用,不自动传 `sets`)
36
36
 
37
- > **用途**:用户未提薪资时,按「岗位类型 + 经验年限」从本表取推荐区间,填入 `sets` 的 `salary_min`/`salary_max`,并在确认摘要写明「薪资为推荐值」让用户确认。
38
- > **单位**:元/月(月薪 15K 写 `15000`)。环境字段是数值型,**不要写 "15K" 或 "15000-20000" 这类字符串**。
37
+ > **用途**:只在用户问「这个岗位开多少合适」时,按「岗位类型 + 经验年限」给参考区间;**用户没问就不要提、不要传 `sets`**。
38
+ > **默认值**:CLI 已固定 `salary_min=15` / `salary_max=30`(单位千,即 15K–30K),未指定时自动生效。
39
+ > **单位**:**千/月**(月薪 15K 写 `15`,25K 写 `25`)。环境字段是数值型,**不要写 "15K" 或 "15-30" 这类字符串**。
39
40
  > **口径**:ToB 软件/信息化行业、国内一二线城市的常见区间初稿(2026-11)。**换城市/换行业需按当地行情校准**;本表由业务维护,改表即可、不改脚本。
40
41
 
41
42
  | 岗位模板 | 经验档 | `salary_min` | `salary_max` | 说明 |
42
43
  |---|---|---|---|---|
43
- | Java / 后端开发 | 1-3 年 | 12000 | 18000 | 初级 |
44
- | Java / 后端开发 | 3-5 年 | 18000 | 30000 | 中级(**默认档**)|
44
+ | Java / 后端开发 | 1-3 年 | 12 | 18 | 初级 |
45
+ | Java / 后端开发 | 3-5 年 | 15 | 30 | 中级(**默认档**)|
45
46
  | Java / 后端开发 | 5 年以上 | 30000 | 45000 | 高级 / 技术负责人 |
46
47
  | 实施工程师 | 1-3 年 | 8000 | 13000 | 初级 |
47
48
  | 实施工程师 | 3-5 年 | 13000 | 20000 | 中级(**默认档**)|
@@ -51,7 +52,7 @@
51
52
  | 销售 / 客户经理 | 不限 | 8000 | 15000 | **底薪**,提成另议;摘要里必须注明「仅底薪」 |
52
53
  | 实习生 | 在校 | 100 | 200 | **元/天**,`salary_type` 取「日薪」,摘要注明「日薪」 |
53
54
 
54
- > ⚠️ **岗位归属不确定时用「中级(默认档)」并在摘要说明**——不要空着不填(空着会落到历史职位继承,可能带出脏数据),也不要擅自给高档。
55
+ > ⚠️ **岗位归属不确定时不要自己猜薪资**——CLI 默认 15/30 已经兜底;只有用户明确给值、或明确问「开多少合适」时才用本表,给建议档要说明依据。
55
56
  > ⚠️ **销售岗只填底薪**:`salary_min/max` 是底薪区间,提成规则写进 JD 正文,不折算进数值。
56
57
  > ⚠️ **`work_years`(经验年限)字段本身**按环境字典填(优先「不限」,已实测可用),本表的「经验档」只用于选薪资档,不直接写入该字段。
57
58
 
@@ -78,7 +79,7 @@
78
79
  5. 具备良好的系统设计能力与问题定位能力,能独立承担核心模块开发
79
80
  6. 具备良好的沟通协作能力与责任心,有带教经验者优先
80
81
 
81
- **推荐字段**:岗位性质=全职|招聘人数=1|学历=本科及以上|经验=3年以上(高级岗可写 5 年以上)|职位类别=技术
82
+ **推荐字段**:岗位性质=全职|招聘人数=3|学历=本科及以上|经验=不限(3 年以上仅用于选薪资档,不写入该字段)|职位类别=技术
82
83
 
83
84
  ---
84
85
 
@@ -102,7 +103,7 @@
102
103
  5. 有 OA、ERP 等企业管理软件实施经验者优先
103
104
  6. 具备良好的服务意识与责任心,能承受一定工作压力
104
105
 
105
- **推荐字段**:岗位性质=全职|招聘人数=2|学历=本科及以上|经验=1年以上|职位类别=技术
106
+ **推荐字段**:岗位性质=全职|招聘人数=3|学历=本科及以上|经验=不限(1 年以上仅用于选薪资档,不写入该字段)|职位类别=技术
106
107
 
107
108
  ---
108
109
 
@@ -126,7 +127,7 @@
126
127
  5. 持有 PMP、信息系统项目管理师等证书者优先
127
128
  6. 具备较强的抗压能力与责任心,能适应短期出差
128
129
 
129
- **推荐字段**:岗位性质=全职|招聘人数=1|学历=本科及以上|经验=3年以上|职位类别=技术
130
+ **推荐字段**:岗位性质=全职|招聘人数=3|学历=本科及以上|经验=不限(3 年以上仅用于选薪资档,不写入该字段)|职位类别=技术
130
131
 
131
132
  ---
132
133
 
@@ -150,7 +151,7 @@
150
151
  5. 具备较强的目标导向与自我驱动力,能承受业绩压力
151
152
  6. 有 OA、ERP、CRM 等行业客户资源者优先
152
153
 
153
- **推荐字段**:岗位性质=全职|招聘人数=1|学历=本科及以上|经验=2年以上|职位类别=销售
154
+ **推荐字段**:岗位性质=全职|招聘人数=3|学历=本科及以上|经验=不限(2 年以上仅用于选薪资档,不写入该字段)|职位类别=销售
154
155
 
155
156
  ---
156
157
 
@@ -171,7 +172,7 @@
171
172
  4. 熟练使用 Office 等办公软件
172
173
  5. 有相关项目或实习经历者优先
173
174
 
174
- **推荐字段**:岗位性质=**实习**|招聘人数=1|学历=本科及以上|经验=不限|职位类别=按方向选择
175
+ **推荐字段**:岗位性质=**实习**|招聘人数=3|学历=本科及以上|经验=不限|职位类别=按方向选择
175
176
 
176
177
  ---
177
178
 
@@ -205,15 +206,15 @@
205
206
 
206
207
  1. **先查 §3.0 定族**(用户说的是泛称时);指名到方向的直接按名称套模板
207
208
  2. **取对应模板的职责与要求**,按用户实际需求裁剪条数(职责 4-6 条、要求 4-6 条)
208
- 3. **字段值直接采用模板「推荐字段」**,涉及薪资时向用户确认,不使用默认值
209
+ 3. **字段值直接采用模板「推荐字段」**(含招聘人数=3);**薪资不要传 `sets`**,由 CLI 默认 15/30(单位千)兜底;用户明确给了数字才传,用户问建议时再查 §1.1
209
210
  4. 用户明确提出与本模板不同的要求时,**以用户为准**,模板只作起点
210
211
 
211
212
  > 若岗位明显不属于以上五类(如财务、行政、法务),按 `recruit-jd-template.md` 的通用兜底结构生成,不必强行套用。
212
213
 
213
214
  ---
214
-
215
215
  ## 四、环境观测(2026-11-05 实测,供参考不复用为默认值)
216
216
 
217
+
217
218
  抽样 100 条 / 系统共 836 条职位:
218
219
 
219
220
  | 维度 | 分布 |
@@ -224,5 +225,9 @@
224
225
  | 名称重复度 | 100 条中仅 60 个不同名称;"舟山民宿管家" 30 条、"蓝堡舟山普陀区蓝堡" 35 条 |
225
226
 
226
227
  > ⚠️ **该环境存在大量重复与疑似测试数据**。这正是取消「运行时拉取同类职位作参考」的直接原因——照此取默认值会把重复地点/名称带进新职位。模板库采用人工归纳口径,不依赖该数据分布。
227
-
228
228
  > **单位说明(2026-11-06)**:本表数值单位是「元/月」,按此原样传给 `sets`;CLI 会按职位表单的**千元**单位自动 ÷1000 提交(例:传 18000 → 存 18 = 18K)。不要自行换算,也不要把继承来的历史值再除一次。
229
+
230
+
231
+
232
+
233
+