weaver-work-cli 0.1.73 → 0.1.76

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 (363) hide show
  1. package/README.md +37 -1
  2. package/dist/chunks/{archive-THZV4ND4.js → archive-ENBSUMHV.js} +14 -9
  3. package/dist/chunks/{archive-oa-PQ23OLEV.js → archive-oa-7BFPQ6M5.js} +10 -7
  4. package/dist/chunks/{asset-RGPROZYH.js → asset-V5SUD3PW.js} +10 -7
  5. package/dist/chunks/{asset-idle-Z2PDX7NA.js → asset-idle-3CEL7WFX.js} +7 -4
  6. package/dist/chunks/{attachment-content-R3RPVOYE.js → attachment-content-24RL44SE.js} +3 -3
  7. package/dist/chunks/{blog-7U3QZPIF.js → blog-FLI4SS3P.js} +10 -7
  8. package/dist/chunks/{caizhilian-3AB42GCV.js → caizhilian-7WCTKCCP.js} +10 -7
  9. package/dist/chunks/{calendar-KINM64E4.js → calendar-G726HUUH.js} +10 -7
  10. package/dist/chunks/chunk-257JXJGD.js +30 -0
  11. package/dist/chunks/chunk-2BZ7TY4M.js +49 -0
  12. package/dist/chunks/{chunk-4BXR6CNB.js → chunk-2KW7AI6P.js} +2 -2
  13. package/dist/chunks/{chunk-WM33BSIL.js → chunk-2QCCXPNU.js} +1 -1
  14. package/dist/chunks/chunk-2UV4IZIT.js +473 -0
  15. package/dist/chunks/{chunk-R3MK2RBN.js → chunk-5E2FDXBU.js} +1 -1
  16. package/dist/chunks/{chunk-DRUND2PJ.js → chunk-5QUTQHXF.js} +225 -152
  17. package/dist/chunks/chunk-7DE3VMZD.js +35 -0
  18. package/dist/chunks/{chunk-PAFOLIYQ.js → chunk-AZC53XSQ.js} +1 -1
  19. package/dist/chunks/{chunk-6HT73VOI.js → chunk-BWFCTE43.js} +2 -2
  20. package/dist/chunks/{chunk-4YXAK6OA.js → chunk-FEZK536Z.js} +12 -7
  21. package/dist/chunks/{chunk-IU6UB2TD.js → chunk-FPWCCRKT.js} +48 -6
  22. package/dist/chunks/{chunk-LLCMOZ5L.js → chunk-H6N6U2D6.js} +11 -11
  23. package/dist/chunks/{chunk-54ST55IJ.js → chunk-JJONWB5N.js} +11 -1
  24. package/dist/chunks/{chunk-GWJLAF6B.js → chunk-JWF2R6EQ.js} +0 -462
  25. package/dist/chunks/chunk-KINXYJXM.js +205 -0
  26. package/dist/chunks/{chunk-F4HM25K4.js → chunk-KJA7CRES.js} +1 -1
  27. package/dist/chunks/chunk-L5SCNJKX.js +1166 -0
  28. package/dist/chunks/{chunk-TV46Q4NY.js → chunk-MS7MKBGJ.js} +74 -68
  29. package/dist/chunks/{chunk-XZBYRYWX.js → chunk-NZQRW4KL.js} +2 -2
  30. package/dist/chunks/chunk-OJ4JPD25.js +428 -0
  31. package/dist/chunks/chunk-OVTCWLNQ.js +1346 -0
  32. package/dist/chunks/{chunk-NUP4RYZK.js → chunk-PMRNIGKZ.js} +2 -2
  33. package/dist/chunks/{chunk-2CHGUYMG.js → chunk-Q7RXCK2Y.js} +4 -4
  34. package/dist/chunks/{chunk-AMAPQVBT.js → chunk-QVKRNL7L.js} +286 -305
  35. package/dist/chunks/{chunk-7QFVXP2X.js → chunk-R4PN3OFK.js} +8 -7
  36. package/dist/chunks/{chunk-L7TYG5SN.js → chunk-RVEKGVZU.js} +2 -2
  37. package/dist/chunks/{chunk-2XED2FKY.js → chunk-SQFKBWTR.js} +38 -36
  38. package/dist/chunks/chunk-SU6IJD6D.js +49 -0
  39. package/dist/chunks/{chunk-IBSJJGXL.js → chunk-T7HVQ2WP.js} +2 -2
  40. package/dist/chunks/{chunk-ZWLWXHJC.js → chunk-TBCKK6LH.js} +2 -2
  41. package/dist/chunks/{chunk-JMJBPP4B.js → chunk-UDBQJLQF.js} +2 -2
  42. package/dist/chunks/chunk-UUJK76HV.js +209 -0
  43. package/dist/chunks/{chunk-4I26YMBY.js → chunk-WHI6YAUE.js} +7 -3
  44. package/dist/chunks/{chunk-BWYVS62Z.js → chunk-WJQJ7YEX.js} +4 -4
  45. package/dist/chunks/{chunk-GAMGDNTF.js → chunk-XNN5PZTI.js} +1 -1
  46. package/dist/chunks/chunk-Y3C6MDL7.js +28 -0
  47. package/dist/chunks/chunk-ZM7RN2IM.js +38 -0
  48. package/dist/chunks/cli-DFLV57LO.js +226 -0
  49. package/dist/chunks/commands-J52MJ6NF.js +70 -0
  50. package/dist/chunks/{conflict-VPAR7E6F.js → conflict-72Q6DM4I.js} +2 -2
  51. package/dist/chunks/{contract-DDXAO2DZ.js → contract-IRNRQ5FY.js} +12446 -5964
  52. package/dist/chunks/{cowork-34QCHMDD.js → cowork-GZDODGKF.js} +11 -8
  53. package/dist/chunks/{create-flow-52PU2OBI.js → create-flow-UGTDI7SP.js} +6 -6
  54. package/dist/chunks/{data-CLQ62QGD.js → data-HTQZRPPI.js} +6 -3
  55. package/dist/chunks/{ebuilder-form-W5R7Q22S.js → ebuilder-form-GHNIZ7ET.js} +9 -6
  56. package/dist/chunks/{ehr-LCNAVMK5.js → ehr-PHIBBUIG.js} +23 -16
  57. package/dist/chunks/{entry-mode-6Z3ZV3DE.js → entry-mode-5WOXFE67.js} +3 -3
  58. package/dist/chunks/{env-RDKWAARB.js → env-H4ALHESA.js} +2 -2
  59. package/dist/chunks/{esb-ANKPUU65.js → esb-ATRKVHCD.js} +10 -7
  60. package/dist/chunks/{factory-434B7RAT.js → factory-COX6AVK7.js} +1 -1
  61. package/dist/chunks/{fna-AKBSG5HI.js → fna-IKYI3SST.js} +13 -8
  62. package/dist/chunks/{group-chat-PROTW22R.js → group-chat-ZIWQQO4G.js} +3 -3
  63. package/dist/chunks/{host-5R2SNFWD.js → host-6UOXYOOY.js} +6 -3
  64. package/dist/chunks/{host-7FJW4E7R.js → host-EJSJSLVK.js} +6 -3
  65. package/dist/chunks/{host-WO4L5G5I.js → host-EYNLB6S4.js} +6 -3
  66. package/dist/chunks/{host-PDJAKCT7.js → host-OT4KNR3G.js} +6 -3
  67. package/dist/chunks/{host-CGXUFQO4.js → host-UY4LQPN4.js} +6 -3
  68. package/dist/chunks/{host-XIYG4F4B.js → host-XXGDQM7D.js} +6 -3
  69. package/dist/chunks/{hrm-WGODDTEH.js → hrm-5JQ7QZ6A.js} +8 -5
  70. package/dist/chunks/{im-YKTKAJU3.js → im-2YJW3EI5.js} +7 -4
  71. package/dist/chunks/{invoice-PVYCCCVM.js → invoice-37HR6L3W.js} +956 -566
  72. package/dist/chunks/{jiuchuanhui-RKOQW7BY.js → jiuchuanhui-KBWUZ7WT.js} +17 -10
  73. package/dist/chunks/{lazy-dispatch-DW45AFQ5.js → lazy-dispatch-MZ3EZYDL.js} +22 -8
  74. package/dist/chunks/{mail-BNB5S4NW.js → mail-YBKUM6HM.js} +11 -8
  75. package/dist/chunks/{meeting-O2KDJH66.js → meeting-XE6CTXYA.js} +22 -18
  76. package/dist/chunks/{minute-doc-JUCG56GY.js → minute-doc-4BA2R5EA.js} +4 -4
  77. package/dist/chunks/{okr-LWFGWOE7.js → okr-HW7IULIR.js} +10 -7
  78. package/dist/chunks/{operations-532PN5OB.js → operations-4P2UYVLH.js} +7 -4
  79. package/dist/chunks/{performance-7W5COCFU.js → performance-PM2G6L3E.js} +6 -3
  80. package/dist/chunks/{plan-ZVY3IYTL.js → plan-3YYGZ7ZM.js} +10 -7
  81. package/dist/chunks/{project-SA62B7MH.js → project-XREEXFU2.js} +10 -7
  82. package/dist/chunks/{reception-NGIONPQ3.js → reception-7G3J2MA6.js} +8 -4
  83. package/dist/chunks/{recruit-stage-WOSN6MGP.js → recruit-stage-TSQWOGQD.js} +199 -74
  84. package/dist/chunks/register-SQOPIR2G.js +16 -0
  85. package/dist/chunks/{registry-N7P3W2RD.js → registry-3VTB3KLV.js} +7 -4
  86. package/dist/chunks/registry-7UDUWYB5.js +30 -0
  87. package/dist/chunks/{registry-R72GWXOG.js → registry-F4YFZLOD.js} +7 -3
  88. package/dist/chunks/{room-recommend-KCGIVUFR.js → room-recommend-FO3HLPNB.js} +4 -4
  89. package/dist/chunks/root-YZG2TS5W.js +16 -0
  90. package/dist/chunks/{schedule-6UP27HQ4.js → schedule-DHNNOHVS.js} +4 -4
  91. package/dist/chunks/{smart-extract-DDOQSPRB.js → smart-extract-T5Z4AULN.js} +15 -7
  92. package/dist/chunks/update-AV5VOXGY.js +13 -0
  93. package/dist/chunks/{workflow-V5ALD6QZ.js → workflow-MAGCHWYZ.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/business-response.js +13 -0
  170. package/dist/shortcuts/invoice/calendar.js +24 -0
  171. package/dist/shortcuts/invoice/host.js +26 -15
  172. package/dist/shortcuts/invoice/index.js +3 -3
  173. package/dist/shortcuts/invoice/invoice-record.js +7 -2
  174. package/dist/shortcuts/invoice/manifest.js +179 -155
  175. package/dist/shortcuts/invoice/operations/get.js +9 -3
  176. package/dist/shortcuts/invoice/operations/issuing-red-requests.js +138 -0
  177. package/dist/shortcuts/invoice/operations/registry.js +4 -5
  178. package/dist/shortcuts/invoice/operations/reim-auto.js +40 -2
  179. package/dist/shortcuts/invoice/operations/reim-customer-projects.js +79 -0
  180. package/dist/shortcuts/invoice/operations/reim-customer.js +79 -30
  181. package/dist/shortcuts/invoice/operations/reim-relation.js +0 -146
  182. package/dist/shortcuts/invoice/operations/reim.js +2 -126
  183. package/dist/shortcuts/invoice/operations/shared.js +15 -17
  184. package/dist/shortcuts/invoice/preapproval-enrichment.js +180 -0
  185. package/dist/shortcuts/invoice/projection.js +14 -0
  186. package/dist/shortcuts/invoice/read-enrichment.js +123 -0
  187. package/dist/shortcuts/jiuchuanhui/index.js +2 -2
  188. package/dist/shortcuts/jiuchuanhui/manifest.js +3 -0
  189. package/dist/shortcuts/mail/index.js +2 -2
  190. package/dist/shortcuts/meeting/index.js +1 -1
  191. package/dist/shortcuts/meeting/manifest.js +1 -0
  192. package/dist/shortcuts/meeting/operations/eb/catalog.js +5 -3
  193. package/dist/shortcuts/meeting/operations/eb/conflict.js +3 -1
  194. package/dist/shortcuts/meeting/operations/eb/create-flow.js +10 -9
  195. package/dist/shortcuts/meeting/operations/eb/factory.js +2 -0
  196. package/dist/shortcuts/meeting/operations/eb/member-expand.js +3 -2
  197. package/dist/shortcuts/meeting/operations/invitation-publish.js +3 -3
  198. package/dist/shortcuts/meeting/operations/invitation.js +4 -4
  199. package/dist/shortcuts/meeting/operations/link.js +3 -1
  200. package/dist/shortcuts/okr/index.js +1 -1
  201. package/dist/shortcuts/performance/index.js +1 -1
  202. package/dist/shortcuts/plan/index.js +1 -1
  203. package/dist/shortcuts/project/index.js +1 -1
  204. package/dist/shortcuts/reception/manifest.js +2 -2
  205. package/dist/shortcuts/recruit-stage/context.js +10 -2
  206. package/dist/shortcuts/recruit-stage/index.js +16 -3
  207. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +1 -1
  208. package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -1
  209. package/dist/shortcuts/recruit-stage/operations/jd-create.js +17 -8
  210. package/dist/shortcuts/recruit-stage/operations/list.js +1 -1
  211. package/dist/shortcuts/recruit-stage/operations/resume-import.js +178 -35
  212. package/dist/shortcuts/recruit-stage/operations/search.js +2 -2
  213. package/dist/shortcuts/recruit-stage/operations/shortlist.js +4 -2
  214. package/dist/shortcuts/recruit-stage/shared.js +27 -53
  215. package/dist/shortcuts/smart-extract/manifest.js +1 -0
  216. package/dist/shortcuts/smart-extract/operations/fill.js +7 -2
  217. package/dist/shortcuts/smart-extract/operations/validate.js +4 -1
  218. package/dist/shortcuts/workflow/index.js +2 -2
  219. package/dist/shortcuts/workflow/manifest.js +1 -0
  220. package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +4 -1
  221. package/dist/shortcuts/workflow/operations/deepRead.js +23 -2
  222. package/dist/shortcuts/workflow/operations/form.js +8 -2
  223. package/docs/agent-invoice.md +28 -2
  224. package/docs/contract.md +6 -1
  225. package/docs/e10-auth.md +25 -7
  226. package/docs/invoice.md +60 -9
  227. package/docs/operation-manual.md +15 -0
  228. package/package.json +2 -2
  229. package/skill-template/business-info.json +28 -0
  230. package/skill-template/domains/jinchengda.md +13 -1
  231. package/skill-template/domains/yepiaotong.md +36 -7
  232. package/skills/weaver-e10-archive-oa/references/source-manifest.json +3 -3
  233. package/skills/weaver-e10-caizhilian/references/auth-and-install.md +2 -1
  234. package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
  235. package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
  236. package/skills/weaver-e10-jinchengda/SKILL.md +90 -32
  237. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +45 -0
  238. package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +68 -0
  239. package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +216 -0
  240. package/skills/weaver-e10-jinchengda/references/contract-clause-negotiate.md +215 -0
  241. package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +113 -0
  242. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +19 -3
  243. package/skills/weaver-e10-jinchengda/references/contract-decisions.md +114 -0
  244. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +53 -44
  245. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +1 -1
  246. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +1 -1
  247. package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +200 -0
  248. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -1
  249. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +138 -3
  250. package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +158 -0
  251. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +3 -1
  252. package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +139 -0
  253. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +2 -2
  254. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +10 -3
  255. package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +106 -0
  256. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
  257. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +176 -56
  258. package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +123 -0
  259. package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +410 -0
  260. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
  261. package/skills/weaver-e10-jinchengda/references/contract-viewlink.md +110 -0
  262. package/skills/weaver-e10-jinchengda/references/orchestration.md +38 -24
  263. package/skills/weaver-e10-meeting/SKILL.md +13 -0
  264. package/skills/weaver-e10-okr/SKILL.md +11 -0
  265. package/skills/weaver-e10-okr/references/source-manifest.json +7 -6
  266. package/skills/weaver-e10-performance/SKILL.md +131 -39
  267. package/skills/weaver-e10-performance/agents/openai.yaml +48 -17
  268. package/skills/weaver-e10-performance/references/default-assembly.md +3 -0
  269. package/skills/weaver-e10-performance/references/extraction-guide.md +17 -3
  270. package/skills/weaver-e10-performance/references/flow-assess.md +38 -5
  271. package/skills/weaver-e10-performance/references/scheme-setting-page.md +20 -3
  272. package/skills/weaver-e10-performance/scripts/assemble_scheme.py +461 -0
  273. package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +41 -0
  274. package/skills/weaver-e10-plan/SKILL.md +10 -0
  275. package/skills/weaver-e10-plan/references/source-manifest.json +13 -13
  276. package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
  277. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +9 -9
  278. package/skills/weaver-e10-recruit-stage/SKILL.md +230 -202
  279. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +74 -46
  280. package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +3 -0
  281. package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +201 -36
  282. package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +336 -27
  283. package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +3 -0
  284. package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +15 -1
  285. package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +38 -0
  286. package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +5 -1
  287. package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +4 -0
  288. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +4 -0
  289. package/skills/weaver-e10-recruit-stage/references/position-templates.md +12 -8
  290. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +20 -18
  291. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +11 -7
  292. package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +5 -1
  293. package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +4 -0
  294. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +8 -4
  295. package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +6 -1
  296. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +7 -3
  297. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +32 -25
  298. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +4 -0
  299. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -0
  300. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +5 -1
  301. package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +4 -0
  302. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +16 -10
  303. package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +6 -2
  304. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +148 -40
  305. package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +5 -1
  306. package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +32 -8
  307. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +4 -0
  308. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +8 -4
  309. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +6 -2
  310. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +41 -41
  311. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +7 -3
  312. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +7 -3
  313. package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +8 -4
  314. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +5 -1
  315. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +5 -1
  316. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +5 -1
  317. package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +41 -28
  318. package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +23 -26
  319. package/skills/weaver-e10-recruit-stage/templates/match-report.html +44 -36
  320. package/skills/weaver-e10-shared/SKILL.md +40 -5
  321. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +11 -1
  322. package/skills/weaver-e10-shared/references/json-output-contract.md +144 -8
  323. package/skills/weaver-e10-shared/references/weaver-e10-installation.md +11 -0
  324. package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
  325. package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
  326. package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
  327. package/skills/weaver-e10-yepiaotong/SKILL.md +133 -61
  328. package/skills/weaver-e10-yepiaotong/references/invoice-add.md +3 -1
  329. package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +18 -2
  330. package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +3 -3
  331. package/skills/weaver-e10-yepiaotong/references/invoice-download.md +1 -1
  332. package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +13 -1
  333. package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +3 -1
  334. package/skills/weaver-e10-yepiaotong/references/invoice-import.md +6 -4
  335. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +42 -45
  336. package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +1 -1
  337. package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +18 -2
  338. package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +14 -1
  339. package/skills/weaver-e10-yepiaotong/references/invoice-red-workflow.md +96 -0
  340. package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +56 -369
  341. package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +16 -6
  342. package/skills/weaver-e10-yepiaotong/references/name-fuzzy-search.md +38 -0
  343. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +163 -646
  344. package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +90 -44
  345. package/skills/weaver-e10-yepiaotong/references/reim-eligibility-rules.md +85 -0
  346. package/skills/weaver-e10-yepiaotong/references/reim-fill-validation.md +61 -0
  347. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +91 -280
  348. package/skills/weaver-e10-yepiaotong/references/reim-preapproval-rules.md +98 -0
  349. package/skills/weaver-e10-yepiaotong/references/reim-travel-invoice-matching.md +48 -0
  350. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +234 -695
  351. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +395 -204
  352. package/skills/weaver-e10-yepiaotong/references/travel-application-fill.md +84 -0
  353. package/skills/weaver-e10-yepiaotong/references/workflow-direct-fill.md +165 -0
  354. package/skills/weaver-e10-yepiaotong.zip +0 -0
  355. package/dist/chunks/chunk-ICP53R52.js +0 -2849
  356. package/dist/chunks/registry-RIQ67ZT7.js +0 -27
  357. package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
  358. package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
  359. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +0 -93
  360. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +0 -774
  361. package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +0 -111
  362. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +0 -360
  363. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +0 -167
@@ -8,11 +8,14 @@
8
8
 
9
9
  * { margin: 0; padding: 0; box-sizing: border-box; }
10
10
  :root { --bg:#f5f5f5; --card:#fff; --line:#e5e5e5; --text:#333; --muted:#959595; --accent:#5d9cec; --warn:#faad14; --danger:#ff4d4f; --ok:#52c41a; }
11
- body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 13px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
12
- .page { max-width: 1080px; margin: 0 auto; padding: 20px 16px 32px; }
13
- .rule-btn { border: 1px solid #d9ecff; background: #ecf5ff; color: #2b6cb0; font-size: 12px; padding: 4px 10px; border-radius: 2px; cursor: pointer; white-space: nowrap; }
11
+ body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
12
+ /* 报告按 1000 定宽设计,但宽度 100% 自适应右侧面板:面板窄于 1000 时不居中留白、直接铺满;
13
+ 不靠视口断点改列数,避免小E 面板差几像素就触发 3+1 / 状态掉行。 */
14
+ .page { width: 100%; max-width: 1000px; margin: 0 auto; padding: 18px 14px 28px; }
15
+ .rule-btn { border: 1px solid #d9ecff; background: #ecf5ff; color: #2b6cb0; font-size: 13px; padding: 4px 10px; border-radius: 2px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
14
16
  .rule-btn:hover { background: #ddedff; }
15
17
  .hd-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
18
+ .hd-row > div:first-child { flex: 1; min-width: 0; }
16
19
  .modal[hidden] { display: none; }
17
20
  .modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20; }
18
21
  .modal-box { background: #fff; border-radius: 4px; max-width: 760px; width: 100%; max-height: 86vh; overflow: auto; }
@@ -33,32 +36,33 @@ h1 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
33
36
  .verdict .lead { font-size: 14px; font-weight: 500; }
34
37
  .verdict .lead b { font-weight: 600; color: var(--danger); }
35
38
  .verdict .lead b.ok { color: var(--ok); }
36
- .nums { display: flex; flex-wrap: wrap; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
37
- .num { flex: 1; min-width: 150px; padding: 12px 16px; border-left: 1px solid #f0f0f0; }
39
+ .nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
40
+ .num { min-width: 0; padding: 11px 12px; border-left: 1px solid #f0f0f0; }
38
41
  .num:first-child { border-left: none; }
39
- .num .k { font-size: 12px; color: var(--muted); }
40
- .num .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
42
+ .num .k { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
43
+ .num .v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
41
44
  .num .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
42
45
  .block { margin-bottom: 12px; }
43
46
  .block-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
44
47
  .block-head h2 { font-size: 15px; font-weight: 600; }
45
48
  .block-head span { font-size: 12px; color: var(--muted); }
46
49
  .list, .cf-list { background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
47
- .row { display: grid; grid-template-columns: 88px 1fr 150px; gap: 14px; padding: 10px 18px; border-top: 1px solid #f0f0f0; align-items: center; }
50
+ .row { display: grid; grid-template-columns: 82px minmax(0, 1fr) minmax(230px, auto); gap: 12px; padding: 9px 14px; border-top: 1px solid #f0f0f0; align-items: center; }
48
51
  .row:first-child { border-top: none; }
49
52
  .row:hover { background: #fafafa; }
50
- .when b { display: block; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
51
- .when i { display: block; font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
52
- .who .nm { font-size: 13px; font-weight: 600; }
53
+ .when b { display: block; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
54
+ .when i { display: block; font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
55
+ .who { min-width: 0; }
56
+ .who .nm { font-size: 15px; font-weight: 600; }
53
57
  .who .nm a { color: var(--text); text-decoration: none; }
54
58
  .who .nm a:hover { color: var(--accent); }
55
- .who .pos { font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; }
59
+ .who .pos { font-size: 13px; color: var(--muted); margin-left: 6px; font-weight: 400; }
56
60
  .tags { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; }
57
- .tg { font-size: 11px; padding: 1px 6px; border-radius: 2px; background: #f2f2f2; color: #666; }
61
+ .tg { font-size: 12px; padding: 1px 6px; border-radius: 2px; background: #f2f2f2; color: #666; }
58
62
  .tg.tp { background: #ecf5ff; color: var(--accent); }
59
- .side { text-align: right; }
60
- .side .iv { font-size: 12px; color: var(--muted); }
61
- .st { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 2px; margin-top: 3px; }
63
+ .side { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; white-space: nowrap; min-width: 0; }
64
+ .side .iv { font-size: 13px; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
65
+ .st { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 2px; white-space: nowrap; }
62
66
  .st-wait { background: #ecf5ff; color: var(--accent); }
63
67
  .st-done { background: #f6ffed; color: var(--ok); }
64
68
  .st-warn { background: #fffbe6; color: #d48806; }
@@ -71,7 +75,7 @@ h1 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
71
75
  .cf.g .arrow { color: #959595; }
72
76
  .cf-wrap + .cf-wrap { margin-top: 10px; }
73
77
  .cf-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
74
- .cf { display: grid; grid-template-columns: 124px 1fr; gap: 12px; padding: 9px 18px; border-top: 1px solid #f5f5f5; font-size: 13px; }
78
+ .cf { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 9px 14px; border-top: 1px solid #f5f5f5; font-size: 14px; }
75
79
  .cf:first-of-type { border-top: none; }
76
80
  .cf .p { font-weight: 600; }
77
81
  .cf .p span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
@@ -86,13 +90,6 @@ h1 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
86
90
  .day .list { border-radius: 4px; }
87
91
  footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.8; }
88
92
  footer a { color: var(--accent); text-decoration: none; }
89
- @media (max-width: 720px) {
90
- .page { padding: 14px 12px 24px; }
91
- .nums { gap: 18px; }
92
- .row { grid-template-columns: 72px 1fr; }
93
- .side { grid-column: 1 / -1; text-align: left; display: flex; gap: 10px; align-items: center; }
94
- .cf { grid-template-columns: 1fr; gap: 4px; }
95
- }
96
93
 
97
94
  </style>
98
95
  </head>
@@ -104,7 +101,7 @@ footer a { color: var(--accent); text-decoration: none; }
104
101
  <h1>面试安排</h1>
105
102
  <div class="sub" id="sub">—</div>
106
103
  </div>
107
- <button class="rule-btn" id="ruleBtn" type="button">状态与规则 ?</button>
104
+ <button class="rule-btn" id="ruleBtn" type="button">状态与规则</button>
108
105
  </div>
109
106
  </div>
110
107
 
@@ -193,7 +190,7 @@ function nowText() {
193
190
  function rowHtml(r, withDay) {
194
191
  const d = window.data || {};
195
192
  const base = d.baseUrl || '';
196
- const card = r.talentId ? `${base}/sp/custom/ecode/recruit-talent/card?talentId=${r.talentId}` : '';
193
+ const card = r.cardUrl || (base && r.talentId ? `${base}/sp/ebdpage/view/1343164177628012608?talentId=${r.talentId}` : '');
197
194
  const name = card ? `<a href="${card}" target="_blank">${esc(r.candidateName)}</a>` : esc(r.candidateName);
198
195
  const detail = r.formDataId && d.interviewObjId ? `${base}/sp/ebdfpage/card/0/${d.interviewObjId}/${r.formDataId}` : '';
199
196
  const tags = [r.rounds, r.session].filter(Boolean).map(x => `<span class="tg">${esc(x)}</span>`).join('')
@@ -7,51 +7,61 @@
7
7
  <style>
8
8
 
9
9
  * { margin: 0; padding: 0; box-sizing: border-box; }
10
- body { background: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 13px; line-height: 1.6; }
11
- .container { max-width: 1080px; margin: 0 auto; padding: 20px 16px 32px; }
10
+ body { background: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; }
11
+ /* 宽度自适应右侧面板:最大 1000,面板更窄时铺满;不按视口切列数。 */
12
+ .container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 18px 14px 28px; }
12
13
  .header { background: #fff; border: 1px solid #e5e5e5; border-left: 3px solid #5d9cec; border-radius: 4px; padding: 14px 18px; margin-bottom: 12px; }
13
14
  .header h1 { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 2px; }
14
- .header .subtitle { font-size: 12px; color: #959595; }
15
- .summary-bar { display: flex; flex-wrap: wrap; margin-bottom: 12px; background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; }
16
- .summary-card { flex: 1; min-width: 140px; padding: 12px 16px; border-left: 1px solid #f0f0f0; }
15
+ .header .subtitle { font-size: 13px; color: #959595; }
16
+ .summary-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; }
17
+ .summary-card { min-width: 0; padding: 11px 12px; background: linear-gradient(180deg, #eaf4ff 0%, #f7fbff 100%); border-left: 1px solid #d7e8fb; }
17
18
  .summary-card:first-child { border-left: none; }
18
- .summary-card .label { font-size: 12px; color: #959595; }
19
- .summary-card .value { font-size: 18px; font-weight: 600; color: #333; }
20
- .candidate-section { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding: 16px 18px; margin-bottom: 12px; }
21
- .candidate-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
22
- .candidate-name { font-size: 15px; font-weight: 600; }
19
+ .summary-card .label { font-size: 13px; color: #7a8797; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
20
+ .summary-card .value { font-size: 20px; font-weight: 600; color: #1f4e79; }
21
+ .candidate-section { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding: 14px 14px; margin-bottom: 12px; }
22
+ .candidate-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
23
+ .candidate-header > div:first-child { flex: 1 1 200px; min-width: 0; }
24
+ .candidate-header > div:nth-child(2) { flex: 0 1 auto; min-width: 0; max-width: 46%; text-align: right; }
25
+ .candidate-name { font-size: 16px; font-weight: 600; }
23
26
  .candidate-name a { color: #333; text-decoration: none; }
24
27
  .candidate-name a:hover { color: #5d9cec; }
25
28
  .score-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 2px; }
26
29
  .score-high { background: #f6ffed; color: #52c41a; }
27
30
  .score-medium { background: #fffbe6; color: #d48806; }
28
31
  .score-low { background: #fff1f0; color: #ff4d4f; }
29
- .candidate-body { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
30
- .radar-chart { width: 100%; padding: 2px 0; }
31
- .bar { display: grid; grid-template-columns: 62px 1fr 30px; gap: 8px; align-items: center; margin: 9px 0; font-size: 12px; }
32
+ .candidate-body { display: grid; grid-template-columns: 1fr; gap: 8px; }
33
+ .radar-chart { width: 100%; padding: 2px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px 18px; }
34
+ @media (max-width: 560px) { .radar-chart { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
35
+ .bar { display: grid; grid-template-columns: 62px 1fr 30px; gap: 8px; align-items: center; margin: 4px 0; font-size: 12px; }
32
36
  .bar .bn { color: #666; }
33
37
  .bar .bt { height: 6px; background: #f0f0f0; border-radius: 2px; overflow: hidden; }
34
38
  .bar .bt i { display: block; height: 6px; border-radius: 2px; }
35
39
  .bar .bv { text-align: right; color: #333; font-variant-numeric: tabular-nums; }
36
- .match-table { width: 100%; border-collapse: collapse; }
40
+ .match-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
37
41
  .match-table th { text-align: left; font-size: 12px; color: #959595; padding: 6px 8px; background: #f7f7f7; border-bottom: 1px solid #e5e5e5; font-weight: 400; }
42
+ .match-table th:first-child { width: 78px; }
43
+ .match-table th:nth-child(2) { width: 56px; }
38
44
  .match-table td { padding: 7px 8px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
39
45
  .match-table .dim-name { font-weight: 600; white-space: nowrap; }
40
- .match-table .evidence { color: #666; }
46
+ .match-table .evidence { color: #666; overflow-wrap: anywhere; word-break: break-word; }
41
47
  .match-table .level { font-weight: 600; text-align: center; width: 52px; }
42
48
  .level-high { color: #52c41a; }
43
49
  .level-medium { color: #d48806; }
44
50
  .level-low { color: #ff4d4f; }
45
- .candidate-basic { font-size: 12px; color: #959595; margin-top: 4px; }
46
- .candidate-basic span { margin-right: 12px; }
47
- .comparison-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
51
+ .candidate-basic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 10px; font-size: 13px; color: #777; margin-top: 5px; }
52
+ .candidate-basic span { margin-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
53
+ .req-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
54
+ .req-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 10px; border-radius: 3px; background: #ecf5ff; color: #2b5c8a; font-size: 13px; line-height: 1.5; }
55
+ .table-scroll { width: 100%; overflow-x: auto; }
56
+ .comparison-table { width: 100%; min-width: 760px; border-collapse: collapse; margin-top: 4px; }
48
57
  .comparison-table th { background: #f7f7f7; padding: 8px; font-size: 12px; text-align: left; color: #666; font-weight: 400; border-bottom: 1px solid #e5e5e5; }
49
58
  .comparison-table td { padding: 8px; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
50
59
  .comparison-table .rank { font-weight: 600; color: #5d9cec; }
51
60
 
52
- .rule-btn { border: 1px solid #d9ecff; background: #ecf5ff; color: #2b6cb0; font-size: 12px; padding: 4px 10px; border-radius: 2px; cursor: pointer; white-space: nowrap; }
61
+ .rule-btn { border: 1px solid #d9ecff; background: #ecf5ff; color: #2b6cb0; font-size: 13px; padding: 4px 10px; border-radius: 2px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
53
62
  .rule-btn:hover { background: #ddedff; }
54
63
  .hd-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
64
+ .hd-row > div:first-child { flex: 1; min-width: 0; }
55
65
  .score-big { font-size: 34px; font-weight: 700; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
56
66
  .score-big small { font-size: 13px; color: #959595; font-weight: 400; margin-left: 2px; }
57
67
  .rank-no { font-size: 11px; color: #959595; margin-top: 2px; }
@@ -68,11 +78,6 @@ body { background: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSys
68
78
  .rule-table td:first-child { white-space: nowrap; font-weight: 600; }
69
79
 
70
80
  .footer { text-align: center; padding: 18px; color: #959595; font-size: 12px; line-height: 1.8; }
71
- @media (max-width: 768px) {
72
- .candidate-body { grid-template-columns: 1fr; }
73
- .radar-chart { width: 100%; }
74
- .summary-card { min-width: 45%; }
75
- }
76
81
 
77
82
  </style>
78
83
  </head>
@@ -84,7 +89,7 @@ body { background: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSys
84
89
  <h1>人岗匹配评估报告</h1>
85
90
  <div class="subtitle" id="subtitle">岗位:— | 候选人:— | AI 评估(非系统评分)</div>
86
91
  </div>
87
- <button class="rule-btn" id="ruleBtn" type="button">评分规则 ?</button>
92
+ <button class="rule-btn" id="ruleBtn" type="button">评分规则</button>
88
93
  </div>
89
94
  </div>
90
95
  <div class="summary-bar" id="summaryBar"></div>
@@ -109,8 +114,8 @@ body { background: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSys
109
114
  // === 数据注入区(Agent 生成 HTML 时替换此段) ===
110
115
  const REPORT_DATA = __REPORT_DATA_PLACEHOLDER__;
111
116
  // 结构(basic 键名对齐 recruit-stage.candidate.profile 输出):
112
- // { position: "制造业解决方案经理", baseUrl: "https://...", candidates: [{ talentId, name, basic: {degree, college, joinworkdate, current_position, current_industry}, scores: {education:85, experience:70, skills:60, industry:90, position:75, stability:80}, evidence: {education:"硕士,符合要求", ...}, overall: 78, level: "medium" }] }
113
- // 工作年限由 joinworkdate(参工时间)在页面侧折算;缺参工时间则不展示年限,不要编造。
117
+ // { position: "制造业解决方案经理", baseUrl: "https://...", requirements: [], candidates: [{ talentId, name, cardUrl, basic: {degree, college, joinworkdate, current_position, current_industry}, latestWork: {co_name, work_position}, earliestJoin, scores: {education:85, experience:70, skills:60, industry:90, position:75, stability:80}, dimEvidence: {education:"硕士,符合要求", ...}, overall: 78, level: "medium" }] }
118
+ // dimEvidence 为六维证据对象;兼容把六维证据写在 evidence 对象里。工作年限由 joinworkdate(参工时间)在页面侧折算;缺参工时间则不展示年限,不要编造。
114
119
 
115
120
  const DIMENSIONS = [
116
121
  { key: 'education', name: '学历匹配', desc: '岗位要求学历(本科/硕士等)与候选人最高学历比对,专业与岗位的相关度也计入' },
@@ -138,7 +143,7 @@ function pick(obj, key) {
138
143
  return undefined;
139
144
  }
140
145
  function scoreOf(c, key) { const v = Number(pick(c.scores, key)); return Number.isFinite(v) ? v : 0; }
141
- function evOf(c, key) { const v = pick(c.evidence, key); return v === undefined ? '—' : v; }
146
+ function evOf(c, key) { const v = pick(c.dimEvidence, key) ?? pick(c.evidence, key); return v === undefined ? '—' : v; }
142
147
 
143
148
  function levelClass(score) { return score >= 75 ? 'level-high' : score >= 50 ? 'level-medium' : 'level-low'; }
144
149
  function levelText(score) { return score >= 75 ? '高' : score >= 50 ? '中' : '低'; }
@@ -170,9 +175,7 @@ function renderReport(data) {
170
175
  if (reqBox && data.requirements && data.requirements.length) {
171
176
  reqBox.innerHTML = `<div class="candidate-section">
172
177
  <div class="candidate-header"><div class="candidate-name">岗位要求基准<span style="font-size:12px;color:#999;font-weight:400;margin-left:8px">(AI 按岗位名推导,非系统内 JD)</span></div></div>
173
- <ul style="padding-left:20px;font-size:13px;color:#555;line-height:2">
174
- ${data.requirements.map(r => `<li>${r}</li>`).join('')}
175
- </ul></div>`;
178
+ <div class="req-list">${data.requirements.map(r => `<span class="req-chip">${r}</span>`).join('')}</div></div>`;
176
179
  }
177
180
 
178
181
  // 排序:总分降序
@@ -180,7 +183,8 @@ function renderReport(data) {
180
183
 
181
184
  const container = document.getElementById('candidates');
182
185
  container.innerHTML = sorted.map((c, idx) => {
183
- const cardUrl = `${data.baseUrl}/sp/custom/ecode/recruit-talent/card?talentId=${c.talentId}`;
186
+ const cardUrl = c.cardUrl || (data.baseUrl && c.talentId ? `${data.baseUrl}/sp/ebdpage/view/1343164177628012608?talentId=${c.talentId}` : "");
187
+ const nameHtml = cardUrl ? `<a href="${cardUrl}" target="_blank">${c.name}</a>` : c.name;
184
188
  const basic = c.basic || {};
185
189
  const lw = c.latestWork || {};
186
190
  const workYears = yearsOfService(basic.joinworkdate || c.earliestJoin || '');
@@ -188,7 +192,7 @@ function renderReport(data) {
188
192
  <div class="candidate-section">
189
193
  <div class="candidate-header">
190
194
  <div>
191
- <div class="candidate-name"><a href="${cardUrl}" target="_blank">${c.name}</a></div>
195
+ <div class="candidate-name">${nameHtml}</div>
192
196
  <div class="candidate-basic">
193
197
  <span>学历:${basic.degree || '—'}</span>
194
198
  <span>院校:${basic.college || '—'}</span>
@@ -237,12 +241,16 @@ function renderReport(data) {
237
241
  const compareHtml = `
238
242
  <div class="candidate-section">
239
243
  <div class="candidate-header"><div class="candidate-name">综合对比</div></div>
240
- <table class="comparison-table">
244
+ <div class="table-scroll"><table class="comparison-table">
241
245
  <thead><tr><th>排名</th><th>姓名</th><th>总分</th>${DIMENSIONS.map(d => `<th>${d.name}</th>`).join('')}<th>结论</th></tr></thead>
242
246
  <tbody>
243
- ${sorted.map((c, i) => `<tr><td class="rank">#${i+1}</td><td><a href="${data.baseUrl}/sp/custom/ecode/recruit-talent/card?talentId=${c.talentId}" target="_blank" style="color:#5d9cec;text-decoration:none">${c.name}</a></td><td style="font-weight:600">${c.overall}</td>${DIMENSIONS.map(d => `<td style="text-align:center" class="${levelClass(scoreOf(c, d.key))}">${scoreOf(c, d.key)}</td>`).join('')}<td><span class="score-badge ${badgeClass(c.overall)}">${badgeText(c.overall)}</span></td></tr>`).join('')}
247
+ ${sorted.map((c, i) => {
248
+ const cardUrl = c.cardUrl || (data.baseUrl && c.talentId ? `${data.baseUrl}/sp/ebdpage/view/1343164177628012608?talentId=${c.talentId}` : "");
249
+ const nameCell = cardUrl ? `<a href="${cardUrl}" target="_blank" style="color:#5d9cec;text-decoration:none">${c.name}</a>` : c.name;
250
+ return `<tr><td class="rank">#${i+1}</td><td>${nameCell}</td><td style="font-weight:600">${c.overall}</td>${DIMENSIONS.map(d => `<td style="text-align:center" class="${levelClass(scoreOf(c, d.key))}">${scoreOf(c, d.key)}</td>`).join('')}<td><span class="score-badge ${badgeClass(c.overall)}">${badgeText(c.overall)}</span></td></tr>`;
251
+ }).join('')}
244
252
  </tbody>
245
- </table>
253
+ </table></div>
246
254
  </div>`;
247
255
  container.insertAdjacentHTML('beforeend', compareHtml);
248
256
  }
@@ -5,7 +5,7 @@ display_name_en: Weaver CLI Shared Rules
5
5
  description: weaver-work-cli 共享规则:安装检查、E10 认证、JSON 输出、高风险写入、安全边界和引用路由。
6
6
  description_zh: weaver-work-cli 共享规则:安装检查、E10 认证、JSON 输出、高风险写入、安全边界和引用路由。
7
7
  description_en: Shared rules for weaver-work-cli, including installation checks, E10 authentication, JSON output, high-risk writes, safety boundaries, and reference routing.
8
- version: 1.2.6
8
+ version: 1.2.7
9
9
  author: 泛微网络科技股份有限公司
10
10
  agent_created: true
11
11
  requires:
@@ -37,11 +37,15 @@ requires:
37
37
 
38
38
  本任务开始时一旦按下文规则判定当前智能体为 XiaoE,**不得执行 `weaver-work-cli --version` 或 `npm view weaver-work-cli version` 做可用性、版本或更新检查**。XiaoE 客户端已经负责检查并更新配套的 `weaver-work-cli`;Agent 直接进入登录态诊断或业务命令。本规则覆盖本 Skill、业务 Skill 及其 references 中所有通用的 `--version` 检查示例。
39
39
 
40
- XiaoE 中如果后续命令直接返回 `command not found`、退出码 127 或明确的版本不兼容错误,停止并反馈 XiaoE 客户端运行时异常,不自行执行 npm 查询、安装或升级。仅非 XiaoE 环境继续使用下述版本检查与安装流程。
40
+ XiaoE 中如果后续命令直接返回 `command not found`、退出码 127 或明确的版本不兼容错误,停止并反馈 XiaoE 客户端运行时异常,不自行执行 npm 查询、安装或升级。CLI 自身也会跳过 XiaoE 环境的版本检查与更新。
41
41
 
42
- ## 业务 Skill 安装前版本检查
42
+ ## CLI 版本检查与确认更新(CLI 底层负责)
43
43
 
44
- 用户要求安装任一业务模块 Skill 时,先复用本任务开始时的宿主判定:XiaoE 环境跳过本节版本比对,由 XiaoE 客户端保证配套 CLI 更新;非 XiaoE 环境必须先执行 `weaver-work-cli --version` 与 `npm view weaver-work-cli version` 比对本地版本和 npm 源版本。若本地版本低于 npm 源版本,先询问用户是否使用(推荐)最新版 `weaver-work-cli`;用户确认后先执行 `npm install -g weaver-work-cli` 更新 CLI,再继续安装业务模块 Skill。用户拒绝时,说明将沿用本地版本后再继续。
44
+ 非 XiaoE 的 npm 全局安装由 CLI 统一入口负责版本检查:同一安装实例在 24 小时内最多自动检查一次,失败也进入冷却;普通调用复用本地缓存,`--help` / `--version` 不触发检查。**不要在业务调用或 Skill 安装前额外执行 `npm view`,也不要用 `--version` 做首次自检。** 源码和 `npm link` 开发环境跳过自更新。
45
+
46
+ 业务结果中的 `cliUpdate`(文本命令可能通过 stderr 返回 `[weaver-work-cli:update]` 提示)包含版本、`confirmationToken` 和 `commands`。收到提示时,必须调用宿主提供的提问/确认工具,让用户选择「更新」或「稍后」;只有用户明确确认后,才执行该提示的 `commands.update`,选择稍后则执行 `commands.later`。CLI 不会自己调用宿主 ask,不得把返回提示当成用户已经确认。更新为原地安装,不保留旧版本;本次业务已经继续执行,**不要因更新提示重跑业务命令**。
47
+
48
+ 需要主动排查时可运行 `weaver-work-cli update status`(仅本地缓存)或用户要求的 `weaver-work-cli update check`(立即联网检查并返回确认提示)。不要把主动检查放入每次业务前置步骤。CLI 尚未安装时,仍按安装说明取得用户确认后首次安装;已安装的 Agent Skill 副本不会随 CLI 更新自动刷新。
45
49
 
46
50
  ## 最高优先级:XiaoE 统一登录
47
51
 
@@ -126,6 +130,8 @@ CLI 和业务 Skill 在返回 `authentication` / `session_expired` 时,只能
126
130
 
127
131
  ⚠️ 各域 `schema` 的**默认**输出并不一致:多数域默认就是完整 manifest(体积大、超预算会压成预览),`workflow` / `hrm` / `performance` 默认已经是精简索引。所以判断能力存在与否,一律用 `--list`,不要依赖默认输出。
128
132
 
133
+ ⚠️ `--full` **只属于 `<domain> schema`**,是 `schema` 的开关;业务 operation(`run` / `apply` / `get` 等)上没有这个选项,加在业务命令上会报 `unknown option '--full'`。它也不等于「取全量数据」——取全量数据用 `refs get`。
134
+
129
135
  若某域报 `unknown option`(旧版本 CLI),退回 `weaver-work-cli <domain> schema`,并按输出首行的 `largeOutputNotice` 用 `refs get` 取全量;不要据此判断"该域不可用"。
130
136
 
131
137
  2. 首次使用**不查版本号**,直接确认 CLI 可用:
@@ -172,6 +178,35 @@ XiaoE 环境可跳过 `doctor --e10`,直接执行业务命令(会话缺失
172
178
 
173
179
  Agent 调用业务能力时优先加 `--json`。成功看进程退出码 0 和 JSON envelope 的 `ok=true`;失败看非 0 退出码和 stderr JSON 的 `error.type/subtype/message`。不要用老式 `code == 0` 判断成功。
174
180
 
181
+ ### 退出码速查
182
+
183
+ | 退出码 | 含义 | 先做什么 |
184
+ | --- | --- | --- |
185
+ | `0` | 成功 | 再确认 `ok === true`,然后继续 |
186
+ | `1` | 未分类错误 | 不重试,反馈 `error.type/subtype/stage` |
187
+ | `2` | 参数或输入错误 | 不改参数不要重跑;先 `--help` 或 `schema --operation` 核对 |
188
+ | `3` | 认证错误 | 按认证规则处理,写入不得复用旧 continuation |
189
+ | `4` | 网络错误 | 只读最多重试 1 次;写入先只读回查 |
190
+ | `5` | 内部错误 | 不重试,带 operation 名反馈 |
191
+ | `6` | 策略或数据状态拒绝 | 不重试,按 subtype 处理(如 ref 过期就重查接口) |
192
+ | `10` | 需要明确确认 | 说清影响面,拿到用户明确同意后再 apply |
193
+ | `11` | 部分完成或不确定 | 立即停写,只做一次只读回查 |
194
+ | `124` / `127` | 系统层:超时被杀 / 命令不存在 | 超时不静默重跑;127 先分清「不在 PATH」与「未安装」 |
195
+
196
+ 完整对照(含每种码的推荐动作)见 [`json-output-contract.md`](references/json-output-contract.md) 的「退出码」一节。
197
+
198
+ ### ref 的结构与取值
199
+
200
+ 结果超预算时 CLI 把完整 envelope 落盘并回 `refId`。**文件顶层是元信息 + `envelope` 包装,业务数据在 `envelope.data`**;而 `refs get <refId> <path>` 的路径**从 `envelope` 起算**,写 `data.items`,不要写 `envelope.data.items`:
201
+
202
+ ```text
203
+ weaver-work-cli --json refs get <refId> data.items --offset 0 --limit 20
204
+ ```
205
+
206
+ PowerShell 下 `<refId>` 会被当成重定向符号,先把值放进变量再传(`$refId = "..."`)。
207
+
208
+ 返回 `{ total, offset, returned, hasMore, nextOffset, data }`,用 `total` 当总数、按 `nextOffset` 续读。长文本改用 `--char-offset` / `--char-limit`。结构与报错对照见 [`json-output-contract.md`](references/json-output-contract.md) 的「ref 文件结构与读取」一节。
209
+
175
210
  ### 请求头契约(E10 接口调用强制)
176
211
 
177
212
  **本段是请求头三件套的唯一权威声明**:业务 Skill 与 reference 一律引用本段,不再各自复制完整代码块;引用处只需一行紧凑指针指向本节(发布门禁 B10c 已停用,不再按技能目录逐个校验这三项参数名)。
@@ -199,7 +234,7 @@ User-Agent: AgentType=<agentType>,IsAgent=true
199
234
  | 命令不可用、Agent 自动安装 CLI、安装、构建、全局 link、检查可用 skill | [`weaver-e10-installation.md`](references/weaver-e10-installation.md) |
200
235
  | 登录、profile、E10 会话、baseUrl、auth 文件、`WEAVER_*` / `XIAOE_*` 环境变量;**首次未登录需选择认证方式,XiaoE 会话过期由 CLI 底层恢复** | [`e10-auth-and-session.md`](references/e10-auth-and-session.md) |
201
236
  | 容器/沙箱/CI/无 GUI 环境、无人值守、登录类命令超过 180 秒未结束、出现 `Open browser login` / `Waiting for E10 authorization callback` / `Could not open browser automatically`、`auth xiaoe` 返回凭据不可用、认证目录 `EACCES` | [`non-interactive-environment.md`](references/non-interactive-environment.md) |
202
- | 判断 stdout/stderr、JSON envelope、退出码、脚本封装、自动化调用、大结果渲染/分页控量 | [`json-output-contract.md`](references/json-output-contract.md) |
237
+ | 判断 stdout/stderr、JSON envelope、退出码、ref 结构与分页取值、脚本封装/跨平台调用(Windows `execFile`、PowerShell 拼参)、大结果渲染/分页控量 | [`json-output-contract.md`](references/json-output-contract.md) |
203
238
  | 准备执行写入/删除/导入/更新、遇到 `confirmation.required`、`partial.write_uncertain`、网络中断或回查失败 | [`high-risk-write.md`](references/high-risk-write.md) |
204
239
 
205
240
  ## 安全规则
@@ -16,6 +16,14 @@ weaver-work-cli auth whoami
16
16
 
17
17
  ## 认证隔离与禁止探查旧目录
18
18
 
19
+ WorkBuddy 与 XiaoE 的会话严格按宿主归属隔离:分别只接受 `workbuddy` 和 `XiaoE` 的
20
+ `agentType`(兼容大小写和历史别名),同域名也不共用凭据。宿主记录缺失、损坏或归属不符时,
21
+ 不借用全局 profile;显式 profile / auth 路径也不能绕过归属检查。业务命令及
22
+ `identity whoami` 读不到匹配会话时,XiaoE 自动统一登录,WorkBuddy 自动发起自己的浏览器
23
+ OAuth,成功后继续原操作;失败时反馈错误并停止。`auth status --no-check` 等诊断保持被动。
24
+ 宿主环境没有可识别标记时,Agent 根据当前宿主明确上下文传 `--runtime-agent workbuddy`
25
+ 或 `--runtime-agent xiaoe`,不要根据历史会话的 `agentType` 推断当前宿主。
26
+
19
27
  `weaver-work-cli auth root` 是唯一用于确认本 CLI 认证根目录的命令;默认根目录位于用户主目录下的 `.weaver-work-cli/e10`(Windows PowerShell:`$env:USERPROFILE\.weaver-work-cli\e10`;macOS/Linux:`$HOME/.weaver-work-cli/e10`)。Agent 不得因为历史兼容信息去读取、列出、打印或解析用户主目录下的旧 `.e10-cli`,也不得探查 `e10-login` / `e10-cli` 的 auth、config 或 Keychain 数据。
20
28
 
21
29
  登录态判断只允许通过 `weaver-work-cli auth status --no-check`、`weaver-work-cli auth profile list/current`、`weaver-work-cli doctor --e10` 和业务命令返回的 JSON 错误完成。只有用户明确提供外部 auth 文件路径时,才可按用户要求使用 `--auth <path>` 或 `E10_AUTH_PATH`;不能主动搜索旧认证目录。
@@ -24,7 +32,9 @@ weaver-work-cli auth whoami
24
32
 
25
33
  业务命令依赖 E10 登录态。出现以下任一情况即判定为未登录或登录失效:
26
34
 
27
- - `weaver-work-cli auth status` 输出 `loggedIn: false`,或本地不存在 auth 文件
35
+ - `weaver-work-cli auth status` 的 `loggedIn` 为 `false`(或 `status` 为 `unauthorized`):`loggedIn` 表示
36
+ **登录有效**,会话文件存在但已过期/被接口判定失效时同样是 `false`;判断"本地有没有会话文件"看
37
+ `hasSessionFile`,不要反过来用 `loggedIn`。`auth show --status` 给出同一结论
28
38
  - `weaver-work-cli doctor --e10` 的 `e10AuthFile` 检查为 `ok: false`
29
39
  - 业务命令失败,stderr JSON 中 `error.type === "authentication"`(如 `E10 auth not found`)
30
40
  - 业务命令返回 `error.subtype === "session_expired"`(E10 登录态 401/302 失效)
@@ -49,17 +49,26 @@
49
49
 
50
50
  ## 退出码
51
51
 
52
- | 退出码 | 含义 |
53
- | --- | --- |
54
- | `0` | 成功 |
55
- | `2` | 参数或业务输入错误 |
56
- | `3` | 认证错误 |
57
- | `4` | 网络错误 |
58
- | `10` | 需要明确确认 |
59
- | `11` | 部分完成或结果不确定 |
52
+ CLI 自身只用下面 9 个退出码;`124` / `127` 不是 CLI 给的,是 shell、宿主或系统层面的结果,但排查时同样要认。
53
+
54
+ | 退出码 | 含义 | 典型来源 | 推荐处理动作 |
55
+ | --- | --- | --- | --- |
56
+ | `0` | 成功 | 任何 operation 正常结束 | 仍要同时确认 `ok === true`;成功 envelope 没有 `code/msg` |
57
+ | `1` | 未分类错误 `GeneralError` | 未预期异常、脚本包装层兜底 | **不重试**。把 stderr 的 `error.type/subtype/message/stage` 反馈给用户 |
58
+ | `2` | 参数或业务输入错误 `UsageError` | 选项拼错、缺必填、`--offset` 非整数、`ref_missing`、`ref_pick_failed`、`--limit` 与 `--char-limit` 混用 | **不重试同样命令**。先 `--help` 或 `<domain> schema --operation <name>` 确认入参,改对再跑 |
59
+ | `3` | 认证错误 `AuthError` | 未登录、会话失效 | 按认证规则处理(见 `e10-auth-and-session.md`);**写入不得复用旧 continuation** |
60
+ | `4` | 网络错误 `NetworkError` | 连不上、超时、上游 5xx | 只读操作最多重试 1 次;写入先只读回查,不重放 |
61
+ | `5` | 内部错误 `InternalError` | 业务 Skill 的未分类异常(`errors.ts` 的默认退出码) | **不重试**。带 `error.stage` 和 operation 名反馈 |
62
+ | `6` | 策略或数据状态拒绝 `PolicyError` | `ref_expired` / `ref_corrupt`、文件 JSON 输入被策略拒绝、策略禁止的操作 | **不重试**。按 subtype 处理:ref 过期就重查业务接口,被策略拒就换合规写法 |
63
+ | `10` | 需要明确确认 `ConfirmationRequired` | `prepare` 后等待确认、高风险写入 | 走确认流程:把影响面说清,取得用户明确同意后再 `apply` |
64
+ | `11` | 部分完成或结果不确定 `Partial` | `partial` / `write_uncertain` | **立即停止写流程**,只做一次只读回查,交用户判断 |
65
+ | `124` | (系统)进程被超时掐断 | Agent / shell / CI 的超时设置 | 视为超时失败,**不得静默重跑**;按 `SKILL.md` 的超时预算反馈 |
66
+ | `127` | (系统)命令不存在 | 未安装,或已安装但全局 bin 不在 `PATH` | 按 `weaver-e10-installation.md` 先区分「不在 PATH」与「未安装」,不要直接重装 |
60
67
 
61
68
  `retryable=true` 只表示读操作或准备阶段可能可以重试;写入请求已经发出后,遇到 `partial/write_uncertain` 必须停止并交给用户判断。
62
69
 
70
+ 判断顺序:**先看退出码定大类,再看 `error.type/subtype` 定具体动作**。同一个退出码可能对应多个 subtype(例如 `2` 既可能是参数错也可能是 `ref_missing`),只看退出码会误判。
71
+
63
72
  ## JSON 输入兼容
64
73
 
65
74
  简单 JSON 优先使用 `--input-json`,两端都可用,能避开 Windows PowerShell 对 `printf`、管道、转义和续行的差异:
@@ -102,6 +111,133 @@ weaver-work-cli --json invoice run invoice.get --input-ref "$ref_id" --pick 'ite
102
111
 
103
112
  Windows/PowerShell 下不要使用 `printf`、bash 反斜杠续行、`$HOME/...` 或 `~/...` 路径、`rm/ls/diff/python3` 等 Unix-only 写法;目录查看用 `Get-ChildItem`,删除用 `Remove-Item`,文件比对用 `Get-FileHash`,Python 启动器优先用 `py -3`。
104
113
 
114
+ ## ref 文件结构与读取
115
+
116
+ 结果超过 stdout 预算时,CLI 把**完整 envelope** 落盘成一个 ref 文件,stdout 只回摘要 + `refId`。**Agent 一律通过 `refs` 子命令读,不要打开文件、不要 `head`/`tail` 截取。**
117
+
118
+ ### 顶层结构(最容易看错的地方)
119
+
120
+ ref 文件是「文件元信息 + 一层包装」,**不是业务数据本身**:
121
+
122
+ | 顶层字段 | 说明 |
123
+ | --- | --- |
124
+ | `schemaVersion` | ref 文件格式版本,当前为 `1` |
125
+ | `refId` | 引用 ID,与 stdout 里返回的一致 |
126
+ | `operation` | 产生它的业务 operation,可能缺省 |
127
+ | `createdAt` / `expiresAt` / `ttlMs` | 生命周期,默认 TTL 30 分钟 |
128
+ | `envelope` | **真正的数据**:与当时 stdout 上是同一个 envelope(`ok` / `operation` / `meta` / `warnings` / `error` / `data`) |
129
+
130
+ 由此得出两条硬结论:
131
+
132
+ - 业务数据在 `envelope.data`,**不在顶层**。看到 `schemaVersion` / `refId` / `expiresAt` 就当「结果只有这些」是错的。
133
+ - `refs get <refId> <path>` 的 `path` **从 `envelope` 起算**,写成 `data.items`。不要写成 `envelope.data.items` —— `envelope` 只是文件里的字段名,不是取值路径的前缀。
134
+
135
+ 同一个数组的几种合法路径写法(等价):
136
+
137
+ | 写法 | 结果 |
138
+ | --- | --- |
139
+ | `data.items` | 推荐。显式从 envelope 的 `data` 下钻 |
140
+ | `items` | 首段在 envelope 根上不存在时自动下钻 `data`,等价 |
141
+ | `$.data.items` | 支持 `$` 前缀 |
142
+ | `data.items[0].fid` | 支持下标,取单值 |
143
+ | `envelope.data.items` | **错误**,会报 `ref_pick_failed` |
144
+
145
+ ### 最小可跑示例
146
+
147
+ 先跑一条会超预算的列表查询,从 stdout 顶层拿 `refId`(超预算时 `previewTruncated: true` 同时出现):
148
+
149
+ ```bash
150
+ weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":50}'
151
+ ```
152
+
153
+ 再按 `--offset` / `--limit` 分页取数组(每批都是**完整条目**,不是截断后的预览):
154
+
155
+ ```bash
156
+ # 第 1 批
157
+ weaver-work-cli --json refs get <refId> data.items --offset 0 --limit 20
158
+ # 第 2 批:--offset 用上一批返回的 nextOffset
159
+ weaver-work-cli --json refs get <refId> data.items --offset 20 --limit 20
160
+ ```
161
+
162
+ ```powershell
163
+ # 注意:PowerShell 里 <...> 是重定向/保留符号,不能当占位符,必须先放进变量
164
+ $refId = "ref_abc123" # 换成上一步 stdout 里的 refId 值
165
+ weaver-work-cli --json refs get $refId data.items --offset 0 --limit 20
166
+ weaver-work-cli --json refs get $refId data.items --offset 20 --limit 20
167
+ ```
168
+
169
+ 其余参数两端完全一致(`--input-json` 用单引号字面量,PowerShell 不会解析里面的 `$`)。
170
+
171
+ 数组分页的返回结构:
172
+
173
+ | 字段 | 说明 |
174
+ | --- | --- |
175
+ | `total` | **数组真实总条数**,唯一可信的总数 |
176
+ | `offset` | 本批起始下标 |
177
+ | `returned` | 本批实际返回条数,不等于 `total` |
178
+ | `hasMore` | 是否还有后续,`false` 即读完 |
179
+ | `nextOffset` | 下一批的 `--offset` |
180
+ | `data` | 本批条目数组 |
181
+ | `largeOutputNotice` | 还有剩余时给出的续读命令提示,直接照抄执行 |
182
+
183
+ 配套命令:
184
+
185
+ - `refs list`:列出未过期 ref(`refId` / `operation` / `bytes` / `createdAt` / `expiresAt`),找不到 `refId` 时先跑它。
186
+ - `refs show <refId>`:整份查看。**结果仍超预算时会直接报错**并提示改用 `refs get`,这是预期行为。
187
+ - `refs path`:ref 目录位置(排障用,不是给人读数据的)。
188
+ - `refs prune --all` / `--older-than 7d`:手动清理。
189
+
190
+ ### 长文本要按字符分段
191
+
192
+ 字段被截短时(`previewTruncatedFields` 给出 `{ unit:"chars", total, shown }`),用文本窗口参数取原文:
193
+
194
+ ```bash
195
+ weaver-work-cli --json refs get <refId> data.items[0].content --char-offset 0 --char-limit 2000
196
+ ```
197
+
198
+ 返回 `{ unit:"chars", totalChars, charOffset, returnedChars, hasMore, nextCharOffset, data }`,按 `nextCharOffset` 续读到 `hasMore:false`。
199
+
200
+ 以下三条违反任意一条即报退出码 `2`:
201
+
202
+ - `--offset` / `--limit` 只能用于**数组**字段;
203
+ - `--char-offset` / `--char-limit` 只能用于**字符串**字段;
204
+ - 两组参数不能同时出现。
205
+
206
+ ### 读取 ref 的报错对照
207
+
208
+ | 退出码 | subtype | 含义与动作 |
209
+ | --- | --- | --- |
210
+ | `2` | `ref_missing` | `refId` 不存在或已被清理。先 `refs list` 确认;确实没了才重查业务接口 |
211
+ | `2` | `ref_pick_failed` | 路径写错(最常见是把 `envelope.data.items` 当路径)。改路径重试 |
212
+ | `2` | `ref_pick_as_object` | `--pick-as` 只能把单值映射到字段,选出的已经是对象 |
213
+ | `6` | `ref_expired` | 超过 TTL。重新请求业务接口拿新 ref |
214
+ | `6` | `ref_corrupt` | 文件损坏或校验失败。不要手工修复,重查业务接口 |
215
+
216
+ ## 跨平台调用形态(Windows 两个高频坑)
217
+
218
+ **坑一:脚本里 `execFile('weaver-work-cli', args)` 在 Windows 上直接 `ENOENT`。** 全局安装出来的是 `weaver-work-cli.cmd`,不是无扩展名的可执行文件,也不是 `.exe`。
219
+
220
+ ```js
221
+ // ❌ Windows 上 ENOENT
222
+ execFile('weaver-work-cli', args);
223
+
224
+ // ✅ 交给 shell 解析 .cmd;注意含空格的参数要自己加引号
225
+ spawn('weaver-work-cli', args, { shell: true, windowsHide: true });
226
+ ```
227
+
228
+ 判断「装没装」用 `where weaver-work-cli`(Windows)/ `which weaver-work-cli`(macOS/Linux),不要靠抛错猜。
229
+
230
+ **坑二:PowerShell 里拼参数。** 以下写法都会把参数拼坏,改成固定形态:
231
+
232
+ | 不要这样写 | 改成 |
233
+ | --- | --- |
234
+ | `@params` splatting 拼 `--input-json` | 直接写字面量:`--input-json '{"page_size":10}'` |
235
+ | 双引号 + `\"` 转义 | 单引号包 JSON,PowerShell 不解析里面的 `$` 和引号 |
236
+ | 反引号续行多行 JSON | 先 `$body = @'...'@` here-string,再 `$body \| ConvertTo-Json -Compress` |
237
+ | `... \| ConvertFrom-Csv` 解析输出 | CLI **没有 CSV 输出**,也不支持 `--format`;只解析 `--json` 的 JSON |
238
+
239
+ 另外 `printf`、bash 反斜杠续行、`$HOME/...`、`~/...`、`rm/ls/diff/python3` 在 Windows 下都不可用;目录用 `Get-ChildItem`,删除用 `Remove-Item`,文件比对用 `Get-FileHash`,Python 用 `py -3`。
240
+
105
241
  ## 大结果渲染与提效规则
106
242
 
107
243
  当前 `weaver-work-cli` 输出层是轻量封装:JSON 模式对普通结果写完整 envelope,超预算结果会写入 CLI state 并返回摘要和 `refId`;文本模式写人类可读文本。CLI 不像飞书 CLI 已内置 `--format table/pretty/ndjson`、`--jq` 或通用 `--page-all`。Agent 仍需在调用和回复阶段主动控量,避免把超长接口响应原样渲染给用户。
@@ -8,6 +8,17 @@
8
8
 
9
9
  ## 检查命令
10
10
 
11
+ 非 XiaoE 的 npm 全局安装会在 CLI 统一入口每 24 小时最多自动检查一次新版,失败不阻断业务且进入同样的冷却。不要在每次业务或安装 Skill 前手动查询 npm 版本。`--version` / `--help` 不触发自动检查;源码与 `npm link` 环境不自动升级。
12
+
13
+ 出现 `cliUpdate` 时,由 Agent 调用宿主确认工具询问用户,确认后才执行提示中的 `commands.update`;选择稍后则执行 `commands.later`,延后 24 小时。业务结果不受提示影响,不要重跑已经完成的业务。CLI 无法通过 shell 直接调用宿主的 ask。需要排查更新状态时:
14
+
15
+ ```text
16
+ weaver-work-cli update status
17
+ weaver-work-cli update check
18
+ ```
19
+
20
+ `status` 仅读取缓存;`check` 是用户主动要求时的立即联网检查。首次安装旧版本需要先升级一次才具备该机制;原地更新不保留旧版,更新中断时需要用原安装方式修复。
21
+
11
22
  ```text
12
23
  weaver-work-cli --version
13
24
  weaver-work-cli setup invoice
@@ -1241,7 +1241,7 @@
1241
1241
  }
1242
1242
  },
1243
1243
  "artifactBaseline": {
1244
- "aggregateSha256": "ee2327a03cfbda40d02d56dfe86c015a1616d38f2cff7d5aa9bc0fad1d805ee1",
1244
+ "aggregateSha256": "69c6dd0db9838e578e077cdf319883982307b97de1ecdb78a87463b6762b6ec8",
1245
1245
  "files": [
1246
1246
  {
1247
1247
  "path": "docs/_catalog.md",
@@ -1318,8 +1318,8 @@
1318
1318
  {
1319
1319
  "path": "src/shortcuts/project/index.ts",
1320
1320
  "role": "generated-cli",
1321
- "size": 4493,
1322
- "sha256": "dd8084e58007649ff5b2e25b23ea8dd77e1c215aaed5da7bf50fc7208faa92f3"
1321
+ "size": 5243,
1322
+ "sha256": "c41e15dfd760866e55a2b8e087352dd2bef05d61d059880c084477ef8a3256b2"
1323
1323
  },
1324
1324
  {
1325
1325
  "path": "src/shortcuts/project/manifest.ts",
@@ -341,7 +341,7 @@
341
341
  }
342
342
  },
343
343
  "artifactBaseline": {
344
- "aggregateSha256": "24cbcff562b03ba9b49228109191b63196654c2c6ecdcfb33ddbf1ea76a43d3d",
344
+ "aggregateSha256": "b1ba77ed33f3934e1793c997f87184e3f35435cda06461864f3748d59e36775a",
345
345
  "files": [
346
346
  {
347
347
  "path": "docs/wenshuding.md",
@@ -430,8 +430,8 @@
430
430
  },
431
431
  {
432
432
  "path": "src/shortcuts/archive/index.ts",
433
- "size": 17097,
434
- "sha256": "b5357ca809f41bb2491817bf2ca394a8cb99af18ef9d40ccb8b3f2963272f204"
433
+ "size": 17825,
434
+ "sha256": "1d2dbae3a6840f3ac0a798d308129a3c196958e28894de1cdcb6661a1ef4ec6e"
435
435
  },
436
436
  {
437
437
  "path": "src/shortcuts/archive/manifest.ts",