weaver-work-cli 0.1.70 → 0.1.73

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 (263) hide show
  1. package/dist/chunks/{archive-VUTREF3P.js → archive-THZV4ND4.js} +22 -5
  2. package/dist/chunks/{archive-oa-VXXO4RTB.js → archive-oa-PQ23OLEV.js} +17 -5
  3. package/dist/chunks/{asset-45U6TY7I.js → asset-RGPROZYH.js} +22 -5
  4. package/dist/chunks/{asset-idle-YCRBMTIT.js → asset-idle-Z2PDX7NA.js} +15 -5
  5. package/dist/chunks/{attachment-content-DMU7KNZ7.js → attachment-content-R3RPVOYE.js} +3 -3
  6. package/dist/chunks/{blog-5AML4WMG.js → blog-7U3QZPIF.js} +25 -5
  7. package/dist/chunks/{caizhilian-3P7BUNHT.js → caizhilian-3AB42GCV.js} +22 -8
  8. package/dist/chunks/{calendar-2HUXM3CZ.js → calendar-KINM64E4.js} +15 -5
  9. package/dist/chunks/{chunk-EHH363SP.js → chunk-2CHGUYMG.js} +4 -4
  10. package/dist/chunks/{chunk-GWM5TLIK.js → chunk-2XED2FKY.js} +34 -34
  11. package/dist/chunks/{chunk-DVFA3ODS.js → chunk-35A56FJ7.js} +12 -0
  12. package/dist/chunks/{chunk-QYDSTYGG.js → chunk-4BXR6CNB.js} +3 -3
  13. package/dist/chunks/{chunk-KDOJW5LH.js → chunk-4I26YMBY.js} +1 -1
  14. package/dist/chunks/{chunk-X6PMJQGO.js → chunk-4YXAK6OA.js} +19 -8
  15. package/dist/chunks/{chunk-HG6INLH6.js → chunk-54ST55IJ.js} +28 -7
  16. package/dist/chunks/{chunk-DSBV4GRK.js → chunk-6HT73VOI.js} +3 -3
  17. package/dist/chunks/{chunk-4W6BSNIL.js → chunk-7QFVXP2X.js} +6 -6
  18. package/dist/chunks/{chunk-I5XB4MZT.js → chunk-AMAPQVBT.js} +95 -65
  19. package/dist/chunks/{chunk-L2A3COWV.js → chunk-BWYVS62Z.js} +4 -4
  20. package/dist/chunks/{chunk-UPVAQJKS.js → chunk-DRUND2PJ.js} +130 -79
  21. package/dist/chunks/{chunk-LJE7RZNC.js → chunk-F4HM25K4.js} +1 -1
  22. package/dist/chunks/{chunk-T24EBWAZ.js → chunk-GAMGDNTF.js} +48 -21
  23. package/dist/chunks/{chunk-H2NRTGZR.js → chunk-GWJLAF6B.js} +3 -3
  24. package/dist/chunks/{chunk-XIBMZEDB.js → chunk-IBSJJGXL.js} +2 -2
  25. package/dist/chunks/{chunk-VZUH3LKI.js → chunk-ICP53R52.js} +167 -157
  26. package/dist/chunks/{chunk-LRKKKO5A.js → chunk-IU6UB2TD.js} +3 -4
  27. package/dist/chunks/{chunk-GTAFCAVP.js → chunk-IZCQU5D5.js} +1 -1
  28. package/dist/chunks/{chunk-727VKJQK.js → chunk-JMJBPP4B.js} +2 -2
  29. package/dist/chunks/{chunk-UVWW5ABZ.js → chunk-L7TYG5SN.js} +3 -3
  30. package/dist/chunks/{chunk-HAORST2G.js → chunk-LLCMOZ5L.js} +11 -11
  31. package/dist/chunks/{chunk-U3OO3IZF.js → chunk-NUP4RYZK.js} +20 -7
  32. package/dist/chunks/{chunk-IVCOZCAW.js → chunk-PAFOLIYQ.js} +1 -1
  33. package/dist/chunks/{chunk-LSVA7QA6.js → chunk-R3MK2RBN.js} +3 -1
  34. package/dist/chunks/{chunk-GFOFUH6O.js → chunk-TV46Q4NY.js} +52 -51
  35. package/dist/chunks/chunk-WM33BSIL.js +136 -0
  36. package/dist/chunks/{chunk-7CINV2BU.js → chunk-XZBYRYWX.js} +2 -2
  37. package/dist/chunks/{chunk-E7VWE2XI.js → chunk-ZWLWXHJC.js} +3 -3
  38. package/dist/chunks/{conflict-YW5BULJ3.js → conflict-VPAR7E6F.js} +2 -2
  39. package/dist/chunks/{contract-3PMHUASH.js → contract-DDXAO2DZ.js} +48 -5
  40. package/dist/chunks/{cowork-FZBTTBYX.js → cowork-34QCHMDD.js} +37 -8
  41. package/dist/chunks/{create-flow-5OBS3B3V.js → create-flow-52PU2OBI.js} +6 -6
  42. package/dist/chunks/{data-2YZ6A6TL.js → data-CLQ62QGD.js} +99 -184
  43. package/dist/chunks/{ebuilder-form-AWPTMZBZ.js → ebuilder-form-W5R7Q22S.js} +17 -7
  44. package/dist/chunks/{ehr-MNPR4TE5.js → ehr-LCNAVMK5.js} +67 -17
  45. package/dist/chunks/{entry-mode-L65OWPFM.js → entry-mode-6Z3ZV3DE.js} +3 -3
  46. package/dist/chunks/{env-XW7LYIME.js → env-RDKWAARB.js} +2 -2
  47. package/dist/chunks/{esb-GSB5QCEX.js → esb-ANKPUU65.js} +17 -7
  48. package/dist/chunks/{factory-MHFZZAGH.js → factory-434B7RAT.js} +1 -1
  49. package/dist/chunks/{fna-XBSNUS2V.js → fna-AKBSG5HI.js} +15 -5
  50. package/dist/chunks/{group-chat-EEOLO5NM.js → group-chat-PROTW22R.js} +3 -3
  51. package/dist/chunks/{host-NVDG3NC6.js → host-5R2SNFWD.js} +4 -4
  52. package/dist/chunks/{host-2UMNXX5H.js → host-7FJW4E7R.js} +4 -4
  53. package/dist/chunks/{host-XVWBOSEN.js → host-CGXUFQO4.js} +4 -4
  54. package/dist/chunks/{host-R7BP3CTI.js → host-PDJAKCT7.js} +6 -4
  55. package/dist/chunks/{host-SYPCA63D.js → host-WO4L5G5I.js} +4 -4
  56. package/dist/chunks/{host-BD44ASOD.js → host-XIYG4F4B.js} +4 -4
  57. package/dist/chunks/{hrm-FZUDJAND.js → hrm-WGODDTEH.js} +15 -6
  58. package/dist/chunks/{im-F5NENPD7.js → im-YKTKAJU3.js} +16 -6
  59. package/dist/chunks/{invoice-DS6FLU55.js → invoice-PVYCCCVM.js} +27 -6
  60. package/dist/chunks/{jiuchuanhui-JCBUR563.js → jiuchuanhui-RKOQW7BY.js} +19 -6
  61. package/dist/chunks/{lazy-dispatch-F6O2EPGR.js → lazy-dispatch-DW45AFQ5.js} +6 -6
  62. package/dist/chunks/{mail-ZEOSANEJ.js → mail-BNB5S4NW.js} +116 -97
  63. package/dist/chunks/{meeting-PCD5EPBF.js → meeting-O2KDJH66.js} +29 -16
  64. package/dist/chunks/{minute-doc-WTZJVCHG.js → minute-doc-JUCG56GY.js} +4 -4
  65. package/dist/chunks/{okr-OZUMTMCL.js → okr-LWFGWOE7.js} +15 -5
  66. package/dist/chunks/{operations-LQY3FTPH.js → operations-2WHIF5WV.js} +1 -1
  67. package/dist/chunks/{operations-UTUWFJTX.js → operations-532PN5OB.js} +5 -5
  68. package/dist/chunks/{performance-SMVTPK6T.js → performance-7W5COCFU.js} +92 -7
  69. package/dist/chunks/{plan-C2NENH42.js → plan-ZVY3IYTL.js} +15 -5
  70. package/dist/chunks/{project-FAJ2P3UR.js → project-SA62B7MH.js} +18 -5
  71. package/dist/chunks/{reception-NH6MJFPR.js → reception-NGIONPQ3.js} +128 -49
  72. package/dist/chunks/{recruit-stage-DPEFHLSE.js → recruit-stage-WOSN6MGP.js} +1264 -197
  73. package/dist/chunks/{registry-FTPUUHWC.js → registry-N7P3W2RD.js} +5 -5
  74. package/dist/chunks/{registry-3B3OAJYX.js → registry-R72GWXOG.js} +4 -4
  75. package/dist/chunks/{registry-ZQ7OONCB.js → registry-RIQ67ZT7.js} +12 -12
  76. package/dist/chunks/{room-recommend-73NBN3RU.js → room-recommend-KCGIVUFR.js} +4 -4
  77. package/dist/chunks/{schedule-SDBOBBUQ.js → schedule-6UP27HQ4.js} +4 -4
  78. package/dist/chunks/{smart-extract-GTYKF5TJ.js → smart-extract-DDOQSPRB.js} +19 -6
  79. package/dist/chunks/{workflow-OWHWLAOX.js → workflow-V5ALD6QZ.js} +22 -8
  80. package/dist/cmd/auth/index.js +23 -0
  81. package/dist/cmd/e10/index.js +2 -1
  82. package/dist/cmd/index.js +2 -0
  83. package/dist/core/manifest-view.js +207 -0
  84. package/dist/core/output.js +42 -8
  85. package/dist/index.js +35 -35
  86. package/dist/internal/e10/auth/crypto.js +18 -8
  87. package/dist/internal/e10/auth/error-log.js +1 -2
  88. package/dist/internal/e10/auth/messages.js +2 -3
  89. package/dist/internal/e10/auth/xiaoe.js +1 -1
  90. package/dist/internal/e10/tls-policy.js +61 -13
  91. package/dist/shortcuts/archive/index.js +11 -2
  92. package/dist/shortcuts/archive/operations/download.js +1 -0
  93. package/dist/shortcuts/archive/operations/flow-url.js +3 -0
  94. package/dist/shortcuts/archive/operations/prelib.js +2 -0
  95. package/dist/shortcuts/archive/operations/upload.js +1 -0
  96. package/dist/shortcuts/archive-oa/index.js +11 -2
  97. package/dist/shortcuts/archive-oa/operations/borrow-car.js +2 -0
  98. package/dist/shortcuts/asset/index.js +11 -2
  99. package/dist/shortcuts/asset/manifest.js +7 -0
  100. package/dist/shortcuts/asset-idle/index.js +11 -2
  101. package/dist/shortcuts/blog/index.js +11 -2
  102. package/dist/shortcuts/blog/manifest.js +10 -0
  103. package/dist/shortcuts/caizhilian/host.js +20 -4
  104. package/dist/shortcuts/caizhilian/index.js +12 -2
  105. package/dist/shortcuts/caizhilian/manifest.js +4 -25
  106. package/dist/shortcuts/caizhilian/operations/handlers/search.js +34 -0
  107. package/dist/shortcuts/caizhilian/operations/registry.js +25 -1
  108. package/dist/shortcuts/calendar/index.js +11 -2
  109. package/dist/shortcuts/contract/index.js +11 -2
  110. package/dist/shortcuts/contract/manifest.js +32 -0
  111. package/dist/shortcuts/contract/operations/write.js +3 -0
  112. package/dist/shortcuts/cowork/index.js +21 -5
  113. package/dist/shortcuts/cowork/manifest.js +3 -0
  114. package/dist/shortcuts/cowork/operations/discuss-write.js +2 -0
  115. package/dist/shortcuts/cowork/operations/item-write.js +3 -0
  116. package/dist/shortcuts/cowork/operations/member-write.js +2 -0
  117. package/dist/shortcuts/cowork/operations/permission-write.js +2 -0
  118. package/dist/shortcuts/cowork/operations/review-write.js +1 -0
  119. package/dist/shortcuts/data/errors.js +16 -29
  120. package/dist/shortcuts/data/host.js +16 -7
  121. package/dist/shortcuts/data/index.js +12 -41
  122. package/dist/shortcuts/data/manifest.js +5 -44
  123. package/dist/shortcuts/data/operations/attend.js +2 -2
  124. package/dist/shortcuts/data/operations/conf.js +0 -88
  125. package/dist/shortcuts/data/operations/ds.js +4 -4
  126. package/dist/shortcuts/data/operations/index.js +1 -5
  127. package/dist/shortcuts/data/operations/module.js +40 -14
  128. package/dist/shortcuts/data/operations/query.js +2 -2
  129. package/dist/shortcuts/ebuilder-form/index.js +11 -2
  130. package/dist/shortcuts/ebuilder-form/manifest.js +12 -0
  131. package/dist/shortcuts/ehr/index.js +11 -2
  132. package/dist/shortcuts/ehr/operations/attend-write.js +51 -8
  133. package/dist/shortcuts/ehr/operations/recruit-position.js +4 -3
  134. package/dist/shortcuts/ehr/operations/recruit-short-cache.js +6 -2
  135. package/dist/shortcuts/ehr/operations/recruit-write.js +3 -3
  136. package/dist/shortcuts/ehr/operations/recruit.js +206 -82
  137. package/dist/shortcuts/ehr/operations/shared.js +31 -0
  138. package/dist/shortcuts/esb/index.js +11 -2
  139. package/dist/shortcuts/esb/manifest.js +2 -0
  140. package/dist/shortcuts/fna/index.js +11 -2
  141. package/dist/shortcuts/hrm/index.js +11 -1
  142. package/dist/shortcuts/im/index.js +11 -2
  143. package/dist/shortcuts/invoice/index.js +11 -2
  144. package/dist/shortcuts/invoice/manifest.js +8 -0
  145. package/dist/shortcuts/jiuchuanhui/index.js +15 -1
  146. package/dist/shortcuts/jiuchuanhui/manifest.js +2 -0
  147. package/dist/shortcuts/mail/errors.js +14 -0
  148. package/dist/shortcuts/mail/index.js +23 -6
  149. package/dist/shortcuts/mail/manifest.js +11 -4
  150. package/dist/shortcuts/mail/operations/mail-blacklist.js +6 -6
  151. package/dist/shortcuts/mail/operations/mail-contacts.js +10 -10
  152. package/dist/shortcuts/mail/operations/mail-manage.js +15 -14
  153. package/dist/shortcuts/mail/operations/mail-read.js +7 -25
  154. package/dist/shortcuts/mail/operations/mail-send.js +12 -12
  155. package/dist/shortcuts/mail/operations/mail-sign.js +10 -10
  156. package/dist/shortcuts/mail/operations/mail-template.js +10 -10
  157. package/dist/shortcuts/meeting/index.js +11 -2
  158. package/dist/shortcuts/meeting/operations/invitation-publish.js +1 -0
  159. package/dist/shortcuts/okr/index.js +11 -2
  160. package/dist/shortcuts/performance/index.js +62 -3
  161. package/dist/shortcuts/performance/scheme-validate.js +7 -0
  162. package/dist/shortcuts/performance/shared.js +40 -2
  163. package/dist/shortcuts/plan/index.js +11 -2
  164. package/dist/shortcuts/project/index.js +11 -2
  165. package/dist/shortcuts/project/operations/write.js +3 -0
  166. package/dist/shortcuts/reception/constants.js +22 -0
  167. package/dist/shortcuts/reception/index.js +15 -2
  168. package/dist/shortcuts/reception/manifest.js +17 -3
  169. package/dist/shortcuts/reception/operations/ask.js +3 -0
  170. package/dist/shortcuts/reception/operations/doc.js +24 -11
  171. package/dist/shortcuts/reception/operations/docrender.js +18 -1
  172. package/dist/shortcuts/reception/operations/render-assets.js +93 -22
  173. package/dist/shortcuts/recruit-stage/context.js +12 -6
  174. package/dist/shortcuts/recruit-stage/index.js +22 -3
  175. package/dist/shortcuts/recruit-stage/manifest.js +2 -0
  176. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +19 -10
  177. package/dist/shortcuts/recruit-stage/operations/jd-create.js +487 -38
  178. package/dist/shortcuts/recruit-stage/operations/list.js +72 -1
  179. package/dist/shortcuts/recruit-stage/operations/profile.js +194 -0
  180. package/dist/shortcuts/recruit-stage/operations/registry.js +20 -2
  181. package/dist/shortcuts/recruit-stage/operations/resume-import.js +258 -63
  182. package/dist/shortcuts/recruit-stage/operations/search.js +226 -27
  183. package/dist/shortcuts/recruit-stage/operations/shortlist.js +122 -0
  184. package/dist/shortcuts/recruit-stage/operations/tag.js +17 -3
  185. package/dist/shortcuts/recruit-stage/shared.js +158 -4
  186. package/dist/shortcuts/smart-extract/index.js +11 -2
  187. package/dist/shortcuts/smart-extract/manifest.js +1 -0
  188. package/dist/shortcuts/smart-extract/operations/save.js +2 -0
  189. package/dist/shortcuts/workflow/index.js +21 -1
  190. package/dist/shortcuts/workflow/operations/form.js +36 -2
  191. package/dist/shortcuts/workflow/operations/read.js +2 -2
  192. package/dist/shortcuts/workflow/operations/write.js +1 -1
  193. package/docs/caizhilian.md +1 -1
  194. package/docs/contract.md +1 -0
  195. package/docs/data.md +22 -22
  196. package/docs/e10-auth.md +41 -33
  197. package/docs/ehr.md +2 -0
  198. package/docs/reception.md +4 -3
  199. package/package.json +1 -1
  200. package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
  201. package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
  202. package/scripts/pysite/sitecustomize.py +41 -0
  203. package/skill-template/domains/data.md +4 -4
  204. package/skills/weaver-e10-caizhilian/SKILL.md +1 -1
  205. package/skills/weaver-e10-caizhilian/references/org-browser.md +1 -0
  206. package/skills/weaver-e10-cowork/SKILL.md +3 -1
  207. package/skills/weaver-e10-data/SKILL.md +12 -16
  208. package/skills/weaver-e10-data/references/config-center.md +6 -7
  209. package/skills/weaver-e10-data/references/datasource.md +1 -1
  210. package/skills/weaver-e10-data/references/scene-and-misc.md +2 -2
  211. package/skills/weaver-e10-jiuchuanhui/SKILL.md +6 -4
  212. package/skills/weaver-e10-jiuchuanhui/references/clue.md +2 -2
  213. package/skills/weaver-e10-jiuchuanhui/references/customer.md +18 -8
  214. package/skills/weaver-e10-jiuchuanhui/references/sale.md +2 -2
  215. package/skills/weaver-e10-jucailin/SKILL.md +7 -3
  216. package/skills/weaver-e10-jucailin/references/attend-write.md +1 -1
  217. package/skills/weaver-e10-jucailin/references/recruit-output-links.md +33 -0
  218. package/skills/weaver-e10-jucailin/references/recruit-write.md +2 -0
  219. package/skills/weaver-e10-mail/SKILL.md +4 -1
  220. package/skills/weaver-e10-mail/references/mail-read.md +4 -2
  221. package/skills/weaver-e10-mail/references/safety-boundaries.md +1 -0
  222. package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
  223. package/skills/weaver-e10-performance/SKILL.md +8 -6
  224. package/skills/weaver-e10-reception-flow/SKILL.md +97 -41
  225. package/skills/weaver-e10-reception-flow/references/guide.md +3 -1
  226. package/skills/weaver-e10-recruit-stage/SKILL.md +557 -75
  227. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +67 -44
  228. package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +279 -0
  229. package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +198 -0
  230. package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +697 -0
  231. package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +507 -0
  232. package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +87 -0
  233. package/skills/weaver-e10-recruit-stage/references/position-templates.md +19 -18
  234. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +19 -18
  235. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +1 -1
  236. package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +1 -1
  237. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +15 -2
  238. package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +37 -0
  239. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +4 -4
  240. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +64 -28
  241. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +43 -2
  242. package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +41 -0
  243. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +4 -4
  244. package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +2 -2
  245. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +25 -7
  246. package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +51 -0
  247. package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +63 -0
  248. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +4 -4
  249. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +2 -2
  250. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +58 -33
  251. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +4 -4
  252. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +5 -5
  253. package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +2 -2
  254. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +11 -10
  255. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +2 -2
  256. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
  257. package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +106 -0
  258. package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +325 -0
  259. package/skills/weaver-e10-recruit-stage/templates/match-report.html +265 -0
  260. package/skills/weaver-e10-shared/SKILL.md +22 -1
  261. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +2 -2
  262. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
  263. package/skills/weaver-e10-jucailin/references/source-manifest.json +0 -152
@@ -27,6 +27,69 @@ const TYPES = {
27
27
  * 未命中则回退 `cache.lists.interview`,不因缺列表而报错。
28
28
  */
29
29
  const FEEDBACK_TODO_MENU_NAMES = ['我的面试', '我的面试安排', '我参与的面试'];
30
+ /**
31
+ * 面试「参与方式」解析 —— 按面试方式取对应字段,不要笼统当成"地点"。
32
+ *
33
+ * 🔴 2026-11-28 用户口径:**只有现场面试才有地点**;视频面试是视频链接/会议号,
34
+ * AI 面试是小程序码,这三类在面试表单里是**三个不同字段**:
35
+ * · 现场面试 → `interview_location`(面试地点)
36
+ * · 视频面试 → `video_url_info` / `meeting_vedio` / `meeting_id`(视频链接/会议号)
37
+ * · AI 面试 → `applet_code`(小程序码)
38
+ * 旧实现统一叫"地点",视频/AI 面试永远给不出有意义的值。
39
+ *
40
+ * ⚠️ 这些字段默认**不在列表 displayData 里**(只有姓名/手机/时间等基础列),
41
+ * 需在 E10 后台把对应列加入「面试管理」列表显示配置,列表才带得回来。
42
+ * 取不到时返回 value=null + note 说明原因,**不静默当成"没有"**,避免调用方误判。
43
+ */
44
+ export function participationOf(r) {
45
+ const tp = String(r?.interview_type_key || r?.interview_type || '').trim();
46
+ const pick = (...keys) => {
47
+ for (const k of keys) {
48
+ const v = r?.[k];
49
+ if (v === undefined || v === null)
50
+ continue;
51
+ const s = String(v).trim();
52
+ if (s)
53
+ return { key: k, val: s };
54
+ }
55
+ return null;
56
+ };
57
+ if (/现场/.test(tp)) {
58
+ const got = pick('interview_location');
59
+ return {
60
+ mode: '现场面试',
61
+ field: 'interview_location',
62
+ value: got?.val ?? null,
63
+ ...(got ? {} : { note: '列表未返回面试地点;需在 E10 后台把「面试地点」加入面试管理列表显示列' }),
64
+ };
65
+ }
66
+ if (/AI\s*面试/i.test(tp)) {
67
+ const got = pick('applet_code');
68
+ return {
69
+ mode: 'AI面试',
70
+ field: 'applet_code',
71
+ value: got?.val ?? null,
72
+ ...(got ? {} : { note: 'AI 面试以小程序码/链接邀约,本身没有地点' }),
73
+ };
74
+ }
75
+ if (/视频/.test(tp)) {
76
+ const got = pick('video_url_info', 'meeting_vedio', 'meeting_id');
77
+ return {
78
+ mode: '视频面试',
79
+ field: got?.key ?? 'video_url_info',
80
+ value: got?.val ?? null,
81
+ ...(got ? {} : { note: '视频面试以视频链接/会议号邀约,本身没有地点' }),
82
+ };
83
+ }
84
+ // 电话面试或未填方式:仍按地点尝试,取不到就说明
85
+ const got = pick('interview_location');
86
+ return {
87
+ mode: tp || '未填面试方式',
88
+ field: 'interview_location',
89
+ value: got?.val ?? null,
90
+ ...(got ? {} : { note: '该面试方式未配置参与方式字段,或列表未返回' }),
91
+ };
92
+ }
30
93
  // 跨基线列名归一:只在主字段缺失时用别名补展示值,不覆盖已有值
31
94
  const DISPLAY_ALIASES = {
32
95
  candidate_name: ['talent_id', 'name'],
@@ -478,6 +541,11 @@ async function runList(env, args, feedbackTodoMode) {
478
541
  break;
479
542
  }
480
543
  }
544
+ // 🔴 面试类型补「参与方式」:现场=地点 / 视频=视频链接 / AI=小程序码。
545
+ // 用原始行 r 取值(displayData 默认不含这些列,取不到会带 note 说明)。
546
+ if (type === 'interview') {
547
+ row.participation = participationOf(r);
548
+ }
481
549
  outRows.push(row);
482
550
  }
483
551
  // feedbackTodo:从当前结果集派生两个待办视图
@@ -499,6 +567,8 @@ async function runList(env, args, feedbackTodoMode) {
499
567
  mobile: r.mobile,
500
568
  talent_id: r.talent_id,
501
569
  position_manage_id: r.position_manage_id,
570
+ // 参与方式按面试方式取值(现场=地点 / 视频=链接 / AI=小程序码),不要统一当"地点"
571
+ participation: participationOf(r),
502
572
  });
503
573
  // 服务端已按「待反馈 + 面试官=我」筛过则直接用;兜底路径才做客户端二次筛
504
574
  const pending = serverFilterApplied ? outRows : outRows.filter((r) => /待反馈/.test(st(r)));
@@ -693,6 +763,8 @@ async function runInterviewNotAttended(env, args) {
693
763
  // recruit-read.md);下游编排一律用 candidate_manage_id / form_data_id,故此处不透传 talent_id。
694
764
  candidate_manage_id: r.candidate_manage_id || null,
695
765
  form_data_id: r.form_data_id || null,
766
+ // 参与方式按面试方式取值(现场=地点 / 视频=链接 / AI=小程序码)
767
+ participation: participationOf(r),
696
768
  };
697
769
  };
698
770
  // 截断可见性(强制):面试列表服务端筛选不可用,只能翻页后客户端筛
@@ -726,7 +798,6 @@ async function runInterviewNotAttended(env, args) {
726
798
  rows: notAttended.map(slim),
727
799
  listUrl,
728
800
  listLocateLink: listUrl ? { title: '打开我发起的面试列表', url: listUrl } : null,
729
- agentNote: '产物 = 统计结论 + 一个 Markdown 链接(listLocateLink)。若技能「固定参数表」配置了本租户的固定页面路由,按 recruit-output-links.md 覆盖规则替换 path 段(origin 取自 listUrl);调用时直接传 listId 更稳。不输出半截链接。',
730
801
  note: notes.join(';'),
731
802
  };
732
803
  }
@@ -0,0 +1,194 @@
1
+ import { rsSuccess, schemaOf } from './types.js';
2
+ import { rsFail } from '../errors.js';
3
+ import { objIdOf, formIdOf, getFormDataRecord, getFormLayoutMeta } from '../shared.js';
4
+ function makeDictLookup(cache) {
5
+ const byId = new Map();
6
+ for (const x of cache.dict?.raw || []) {
7
+ if (x.option_id && x.selection_name)
8
+ byId.set(String(x.option_id), x.selection_name);
9
+ }
10
+ return (id) => byId.get(String(id)) || '';
11
+ }
12
+ /** 从 dataDetails 提取展示值:dataOptions.content > dataText.content > content */
13
+ export function detailDisplayValue(d, dictName) {
14
+ if (!d)
15
+ return '';
16
+ // 关联/选择字段:取全部 dataOptions 的 content 用逗号连接。
17
+ // 🔴 2026-11-28 修「多选字段丢值」:原实现只取 dataOptions[0],多选字段(多个标签/技能等)
18
+ // 在档案里只显示第一个,匹配度评估会漏信息;与 shared.ts 的取值口径对齐。
19
+ if (Array.isArray(d.dataOptions) && d.dataOptions.length) {
20
+ const names = d.dataOptions.map((o) => String(o?.content ?? '')).filter(Boolean);
21
+ if (names.length)
22
+ return names.join(',');
23
+ return String(d.dataOptions[0]?.optionId ?? '');
24
+ }
25
+ // 长文本
26
+ if (d.dataText?.content != null)
27
+ return String(d.dataText.content);
28
+ // 单行文本/数字
29
+ if (d.content != null) {
30
+ // 字典类字段:content 存的是 optionId,翻译成名称
31
+ const s = String(d.content);
32
+ const dn = dictName(s);
33
+ return dn || s;
34
+ }
35
+ return '';
36
+ }
37
+ /**
38
+ * 导出给 candidate.shortlist 复用(2026-11-28):批量匹配需要并发拉多份档案,
39
+ * 复用本 handler 可保证明细表归类 / 未归类告警 / 字段回退口径与单查完全一致。
40
+ */
41
+ export async function handlerProfile(args, env) {
42
+ const host = env.host;
43
+ const session = await host.getSession();
44
+ const ctx = { host, baseUrl: session.baseUrl.replace(/\/+$/, ''), appId: '', cache: await env.recruitContext() };
45
+ ctx.appId = ctx.cache.appId;
46
+ const talentId = String(args.talentId || '').trim();
47
+ if (!talentId)
48
+ throw rsFail('talentId 必填');
49
+ const objId = objIdOf(ctx.cache, 'talent_pool');
50
+ const formId = formIdOf(ctx.cache, 'talent_pool');
51
+ const fields = ctx.cache.fields[objId] || {};
52
+ // 反向字段映射:fieldId → dataKey
53
+ const revFields = {};
54
+ for (const [dk, fid] of Object.entries(fields))
55
+ revFields[String(fid)] = dk;
56
+ // 拉取完整记录(含明细表行)
57
+ const rec = await getFormDataRecord(host, formId, talentId, objId);
58
+ const dets = rec.dataDetails || [];
59
+ if (!dets.length)
60
+ throw rsFail('未找到人才记录(talentId=' + talentId + '),可能已删除或不存在');
61
+ const dictName = makeDictLookup(ctx.cache);
62
+ // 获取明细表元数据(subFormId → dataKey 映射)
63
+ const layoutMeta = await getFormLayoutMeta(host, formId);
64
+ const comps = layoutMeta?.formLayout?.pageLayouts?.[0]?.comps || [];
65
+ const subFormToDataKey = {};
66
+ for (const c of comps) {
67
+ const cfg = c.config || {};
68
+ if (c.type === 'DetailTable' && cfg.subFormId && cfg.dataKey) {
69
+ subFormToDataKey[String(cfg.subFormId)] = String(cfg.dataKey);
70
+ }
71
+ // 明细表列的字段映射
72
+ if (cfg.subFormId && cfg.fieldId && cfg.dataKey) {
73
+ revFields[String(cfg.fieldId)] = String(cfg.dataKey);
74
+ }
75
+ // 🔴 日期区间(DateRange/DateInterval):一个组件含 start/end 两个物理子字段,
76
+ // 各有独立 fieldId 与 dataKey,但组件本身没有 cfg.dataKey → 不单独处理会输出裸 fieldId
77
+ // (实测:教育经历返回 "840810461896392709":"2021-09-01",无法判断是入学还是毕业)。
78
+ if (cfg.subFormId && cfg.start && cfg.end) {
79
+ if (cfg.start.fieldId && cfg.start.dataKey)
80
+ revFields[String(cfg.start.fieldId)] = String(cfg.start.dataKey);
81
+ if (cfg.end.fieldId && cfg.end.dataKey)
82
+ revFields[String(cfg.end.fieldId)] = String(cfg.end.dataKey);
83
+ }
84
+ }
85
+ // 主表字段 + 明细表行分组
86
+ const main = {};
87
+ // 按 subFormId + dataIndex 分组明细行
88
+ const rowMap = {};
89
+ for (const d of dets) {
90
+ const fid = String(d.fieldId || d.formField?.id || '');
91
+ const dk = revFields[fid] || fid;
92
+ const val = detailDisplayValue(d, dictName);
93
+ if (d.subFormId) {
94
+ const sid = String(d.subFormId);
95
+ const didx = String(d.dataIndex ?? '0');
96
+ if (!rowMap[sid])
97
+ rowMap[sid] = new Map();
98
+ if (!rowMap[sid].has(didx))
99
+ rowMap[sid].set(didx, {});
100
+ if (val)
101
+ rowMap[sid].get(didx)[dk] = val;
102
+ }
103
+ else {
104
+ if (val)
105
+ main[dk] = val;
106
+ }
107
+ }
108
+ // 转换明细表为数组
109
+ // 🔴 subFormToDataKey 解析不到时(表单布局变更 / 明细表被隐藏 / 布局接口失败),
110
+ // dk 会退化成裸 subFormId,于是 subTables.rcrt_work_exp 取不到 →
111
+ // workExperience 静默返回空数组,调用方会误判「这个人没有工作经历」。
112
+ // 因此未归类的明细单独暴露在 unclassifiedDetails 并给 warning,绝不静默丢弃。
113
+ const subTables = {};
114
+ const subTableStats = {};
115
+ const unclassified = {};
116
+ for (const [sid, rows] of Object.entries(rowMap)) {
117
+ const arr = [...rows.values()].filter((r) => Object.keys(r).length > 0);
118
+ if (!arr.length)
119
+ continue;
120
+ const dk = subFormToDataKey[sid];
121
+ if (dk) {
122
+ subTables[dk] = arr;
123
+ subTableStats[dk] = arr.length;
124
+ }
125
+ else {
126
+ unclassified[sid] = arr;
127
+ }
128
+ }
129
+ const warnings = [];
130
+ const unclassifiedTotal = Object.values(unclassified).reduce((n, r) => n + r.length, 0);
131
+ if (unclassifiedTotal) {
132
+ warnings.push(`有 ${unclassifiedTotal} 行明细未能归类到已知明细表(表单布局未解析到对应 DetailTable 配置),已放在 unclassifiedDetails;不要据此判定「该候选人没有这些经历」`);
133
+ }
134
+ if (!layoutMeta) {
135
+ warnings.push('表单布局接口未返回数据,明细表列名可能显示为裸字段 id');
136
+ }
137
+ // 构建可读的档案结构
138
+ const profile = {
139
+ talentId,
140
+ basic: {
141
+ name: main.candidate_name || '',
142
+ mobile: main.telephone || '',
143
+ email: main.email || '',
144
+ gender: main.gender || '',
145
+ age: main.age || '',
146
+ birthday: main.birthday || '',
147
+ degree: main.highest_degree || '',
148
+ college: main.college || '',
149
+ joinworkdate: main.joinworkdate || '',
150
+ graduate_date: main.graduate_date || '',
151
+ intend_position: main.intend_position || '',
152
+ intended_workplace: main.intended_workplace || '',
153
+ // 🔴 实测(2026-11-27 自用环境):BOSS直聘等渠道导入的人才,现职/现公司在
154
+ // last_position_id / last_company_id,而 current_position / current_industry 为空
155
+ // (后者只在 OCR 解析出 jobInformations[0] 时才写)。不回退会让基本信息大面积空白,
156
+ // 匹配度评估拿不到关键依据。
157
+ current_position: main.current_position || main.last_position_id || '',
158
+ current_industry: main.current_industry || main.last_company_id || '',
159
+ expect_salary: main.expect_salary || '',
160
+ location_area: main.location_area || '',
161
+ recruit_status: main.recruit_status || '',
162
+ self_desc: main.self_desc || '',
163
+ work_ability: main.work_ability || '',
164
+ channel: main.channel || '',
165
+ },
166
+ education: subTables.rcrt_education_exp || [],
167
+ workExperience: subTables.rcrt_work_exp || [],
168
+ internship: subTables.rcrt_sxjl || [],
169
+ projectExperience: subTables.rcrt_project_exp || [],
170
+ awards: subTables.rcrt_award_exp || [],
171
+ languages: subTables.rcrt_language_skill || [],
172
+ subTableStats,
173
+ // 🔴 未归类明细与告警必须显式暴露:静默返回空数组会让调用方误判「没有这段经历」
174
+ ...(unclassifiedTotal ? { unclassifiedDetails: unclassified } : {}),
175
+ ...(warnings.length ? { warnings } : {}),
176
+ rawMain: main, // 完整主表字段(含可能新增的字段)
177
+ };
178
+ return rsSuccess('recruit-stage.candidate.profile', profile);
179
+ }
180
+ export const profileOperations = [
181
+ {
182
+ name: 'recruit-stage.candidate.profile',
183
+ resource: 'recruit.candidate',
184
+ method: 'query',
185
+ action: 'candidate.profile',
186
+ summary: '按 talentId 拉取人才完整档案:基本信息(主表全部字段)+ 教育经历 + 工作经历 + 项目经历等明细表。用于匹配度评估、候选人分析',
187
+ capability: 'recruit.candidate.profile',
188
+ risk: 'read',
189
+ inputSchema: schemaOf({
190
+ talentId: { type: 'string', description: '人才记录 id(来自 candidate.search 或 resume.import.apply 的 talentId)' },
191
+ }, { required: ['talentId'] }),
192
+ handler: handlerProfile,
193
+ },
194
+ ];
@@ -6,8 +6,12 @@ import { interviewFeedbackOperations } from './interview-feedback.js';
6
6
  import { listOperations } from './list.js';
7
7
  import { searchOperations } from './search.js';
8
8
  import { tagOperations } from './tag.js';
9
+ import { profileOperations } from './profile.js';
10
+ import { shortlistOperations } from './shortlist.js';
9
11
  const definitions = [
10
12
  ...searchOperations,
13
+ ...profileOperations,
14
+ ...shortlistOperations,
11
15
  ...listOperations,
12
16
  ...tagOperations,
13
17
  ...jdCreateOperations,
@@ -36,17 +40,31 @@ export function getRecruitStageOperation(operation) {
36
40
  }
37
41
  export async function executeRecruitStageOperation(operation, input, env) {
38
42
  const definition = getRecruitStageOperation(operation);
43
+ // debugTimings 是诊断开关(随回执返回 meta.timings),不属于业务参数,
44
+ // 不参与下面的「未知参数」校验,也不下发到业务 schema。
45
+ const debugTimings = input.debugTimings === true;
46
+ const validated = debugTimings
47
+ ? Object.fromEntries(Object.entries(input).filter(([k]) => k !== 'debugTimings'))
48
+ : input;
39
49
  // 拒绝未声明参数(2026-11-07):与 ehr 标准入口一致,防「参数名写错被静默忽略」。
40
50
  // 例:candidate.interview.arrange.* 的时间参数是 startTime/endTime,stage.interview.arrange.* 是 start/end,
41
51
  // 传错时摘要里的 time 会变成 null 而不报错。
42
52
  const schema = definition.inputSchema;
43
53
  if (schema && schema.additionalProperties === false) {
44
54
  const known = Object.keys((schema.properties || {}));
45
- const unknown = Object.keys(input || {}).filter((key) => !known.includes(key));
55
+ const unknown = Object.keys(validated || {}).filter((key) => !known.includes(key));
46
56
  if (unknown.length > 0) {
47
57
  throw new RecruitStageCliError('validation', 'unknown_argument', `未知参数:${unknown.join('、')}。本操作支持的参数:${known.length ? known.join('、') : '(无)'}。`
48
58
  + '参数名写错会被静默忽略并返回看似正常的结果,请按上面的参数名重传。', { exitCode: 1 });
49
59
  }
50
60
  }
51
- return definition.handler(input, env);
61
+ const startedAt = Date.now();
62
+ const result = await definition.handler(validated, env);
63
+ // 诊断耗时:默认不返回,避免污染正常输出;debugTimings:true 时随 meta.timings 返回。
64
+ // 分段打点由各操作往 env.__recruitTimings 写(可选),这里补全 totalMs。
65
+ if (debugTimings && result && typeof result === 'object') {
66
+ const marks = { ...(env?.__recruitTimings ?? {}) };
67
+ result.meta = { ...(result.meta ?? {}), timings: { ...marks, totalMs: Date.now() - startedAt } };
68
+ }
69
+ return result;
52
70
  }