weaver-work-cli 0.1.75 → 0.1.78

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 (268) hide show
  1. package/README.md +3 -1
  2. package/dist/chunks/{archive-OZJ6PYUR.js → archive-ENBSUMHV.js} +1 -1
  3. package/dist/chunks/{archive-oa-BHL5RK2F.js → archive-oa-7BFPQ6M5.js} +1 -1
  4. package/dist/chunks/{asset-HKRFRQR2.js → asset-V5SUD3PW.js} +1 -1
  5. package/dist/chunks/{asset-idle-GGIR4KE7.js → asset-idle-3CEL7WFX.js} +1 -1
  6. package/dist/chunks/{attachment-content-4OV65NK5.js → attachment-content-TFOC3Y3X.js} +3 -3
  7. package/dist/chunks/{blog-HYDP4DV3.js → blog-FLI4SS3P.js} +1 -1
  8. package/dist/chunks/{caizhilian-JS4RQZ6Z.js → caizhilian-7WCTKCCP.js} +3 -3
  9. package/dist/chunks/{calendar-SWRY4DIT.js → calendar-G726HUUH.js} +1 -1
  10. package/dist/chunks/{chunk-5ZJGPEIB.js → chunk-2KW7AI6P.js} +1 -1
  11. package/dist/chunks/{chunk-JOY3HZXL.js → chunk-2UV4IZIT.js} +21 -15
  12. package/dist/chunks/{chunk-FEZK536Z.js → chunk-4PBN7NJY.js} +353 -43
  13. package/dist/chunks/{chunk-VOMDD2C5.js → chunk-5E2FDXBU.js} +1 -1
  14. package/dist/chunks/{chunk-ZUB4M4N3.js → chunk-5VQ7JHV4.js} +134 -49
  15. package/dist/chunks/{chunk-I6NOHKEK.js → chunk-7SQN5IZR.js} +1 -1
  16. package/dist/chunks/{chunk-4FCBEWNB.js → chunk-BP7BONZO.js} +675 -86
  17. package/dist/chunks/{chunk-U6Y32KEV.js → chunk-BWFCTE43.js} +1 -1
  18. package/dist/chunks/{chunk-PG5YSNYY.js → chunk-DACQKJ6O.js} +3 -3
  19. package/dist/chunks/{chunk-KWJEICD4.js → chunk-E2EY3DMS.js} +2 -2
  20. package/dist/chunks/{chunk-KEA4XQPO.js → chunk-FAC4IFGQ.js} +4 -4
  21. package/dist/chunks/{chunk-MXCRKXOP.js → chunk-FPWCCRKT.js} +1 -1
  22. package/dist/chunks/{minute-doc-OQUMDTKG.js → chunk-IBTGXLOT.js} +101 -18
  23. package/dist/chunks/{chunk-OJ4JPD25.js → chunk-LQLIXBJF.js} +6 -8
  24. package/dist/chunks/{chunk-BNKUHN4N.js → chunk-OVTCWLNQ.js} +2 -2
  25. package/dist/chunks/{chunk-5D2V7ZAN.js → chunk-PMRNIGKZ.js} +1 -1
  26. package/dist/chunks/{chunk-OQCK5SAU.js → chunk-RVEKGVZU.js} +1 -1
  27. package/dist/chunks/{chunk-2AUFKU2D.js → chunk-SWFTWNWL.js} +11 -11
  28. package/dist/chunks/{chunk-TA2RBUTH.js → chunk-TBCKK6LH.js} +1 -1
  29. package/dist/chunks/{chunk-SU6IJD6D.js → chunk-TD5IOEGN.js} +1 -1
  30. package/dist/chunks/{chunk-J7FAAHWH.js → chunk-UDBQJLQF.js} +1 -1
  31. package/dist/chunks/{chunk-BSR5TM7U.js → chunk-USYFVIUR.js} +22 -7
  32. package/dist/chunks/{chunk-ERZY6GYL.js → chunk-UZ2E3VNI.js} +1 -1
  33. package/dist/chunks/{chunk-NWYHCZTY.js → chunk-VNEU7OUN.js} +1 -1
  34. package/dist/chunks/{chunk-5QUTQHXF.js → chunk-WNFDR5PC.js} +198 -80
  35. package/dist/chunks/{chunk-LJI4N6FV.js → chunk-XNN5PZTI.js} +1 -1
  36. package/dist/chunks/{chunk-QJWVYOOV.js → chunk-Z44YFIN6.js} +2 -2
  37. package/dist/chunks/{chunk-ZWIMLT6P.js → chunk-ZOTXXGUM.js} +7 -7
  38. package/dist/chunks/{cli-FULPXIKJ.js → cli-WA7FOQKC.js} +35 -35
  39. package/dist/chunks/{commands-BNWFNTD3.js → commands-J52MJ6NF.js} +3 -3
  40. package/dist/chunks/{conflict-5BKCDV2F.js → conflict-D4GVAURN.js} +2 -2
  41. package/dist/chunks/{contract-WI23OXVC.js → contract-GW7US3UF.js} +4400 -3548
  42. package/dist/chunks/{cowork-DZBBVNMQ.js → cowork-GZDODGKF.js} +1 -1
  43. package/dist/chunks/{create-flow-7ZRBRKX7.js → create-flow-ERDGW3FZ.js} +10 -6
  44. package/dist/chunks/{data-PAZVE6QE.js → data-HTQZRPPI.js} +1 -1
  45. package/dist/chunks/{ebuilder-form-5SQXIGXN.js → ebuilder-form-GHNIZ7ET.js} +2 -2
  46. package/dist/chunks/{ehr-CX5F4ZAU.js → ehr-P6T7OAAV.js} +2 -2
  47. package/dist/chunks/{entry-mode-I2BYNONZ.js → entry-mode-SQU5WTX6.js} +3 -3
  48. package/dist/chunks/{env-ZAQZ7EHN.js → env-DASBNSEM.js} +2 -2
  49. package/dist/chunks/{esb-DQTXDIBF.js → esb-ATRKVHCD.js} +3 -3
  50. package/dist/chunks/{factory-XRI6KZ7H.js → factory-A3NAKZAA.js} +1 -1
  51. package/dist/chunks/{fna-FK6HQVJL.js → fna-IKYI3SST.js} +1 -1
  52. package/dist/chunks/{group-chat-MLWNYM2P.js → group-chat-7SEAVAJR.js} +3 -3
  53. package/dist/chunks/{host-MEC4VQZA.js → host-6UOXYOOY.js} +2 -2
  54. package/dist/chunks/{host-KUMU3DDK.js → host-EJSJSLVK.js} +2 -2
  55. package/dist/chunks/{host-3EPREGXS.js → host-EYNLB6S4.js} +2 -2
  56. package/dist/chunks/{host-T6NNQGVZ.js → host-OT4KNR3G.js} +2 -2
  57. package/dist/chunks/{host-VI7Q45PM.js → host-UY4LQPN4.js} +2 -2
  58. package/dist/chunks/{host-J74JGYAW.js → host-XXGDQM7D.js} +2 -2
  59. package/dist/chunks/{hrm-KKVAW4P5.js → hrm-5JQ7QZ6A.js} +2 -2
  60. package/dist/chunks/{im-47CIWQNL.js → im-2YJW3EI5.js} +2 -2
  61. package/dist/chunks/{invoice-CDYRBNIG.js → invoice-37HR6L3W.js} +937 -552
  62. package/dist/chunks/{jiuchuanhui-M7QTRHZK.js → jiuchuanhui-KBWUZ7WT.js} +1 -1
  63. package/dist/chunks/{lazy-dispatch-FKQJZFI5.js → lazy-dispatch-ZDKLS5MR.js} +6 -6
  64. package/dist/chunks/{mail-NRBS5N6Y.js → mail-YBKUM6HM.js} +1 -1
  65. package/dist/chunks/{meeting-WC5LD3IO.js → meeting-7AEQGBAT.js} +19 -13
  66. package/dist/chunks/minute-doc-REI6RUE4.js +20 -0
  67. package/dist/chunks/{okr-EHKSKMPL.js → okr-HW7IULIR.js} +1 -1
  68. package/dist/chunks/{operations-V5VM5MS2.js → operations-4P2UYVLH.js} +3 -3
  69. package/dist/chunks/{performance-ZJADXJPN.js → performance-PM2G6L3E.js} +1 -1
  70. package/dist/chunks/{plan-OTDNBDJ7.js → plan-3YYGZ7ZM.js} +1 -1
  71. package/dist/chunks/{project-4XVBQ3HX.js → project-6PRGBLO2.js} +39 -15
  72. package/dist/chunks/{reception-3FAHOOH7.js → reception-7G3J2MA6.js} +1 -1
  73. package/dist/chunks/{recruit-stage-3WTVWW2K.js → recruit-stage-TLZJUFHD.js} +544 -464
  74. package/dist/chunks/{registry-TJGCVRCW.js → registry-3VTB3KLV.js} +3 -3
  75. package/dist/chunks/{registry-F4YFZLOD.js → registry-KQ4TNUWO.js} +1 -1
  76. package/dist/chunks/{registry-NBTBXR4L.js → registry-UVTI323K.js} +12 -11
  77. package/dist/chunks/{room-recommend-KL62XB2Y.js → room-recommend-ELEJUYBN.js} +4 -4
  78. package/dist/chunks/{schedule-XOISYUPB.js → schedule-XBKY7VEA.js} +4 -4
  79. package/dist/chunks/{smart-extract-UYGNV3BM.js → smart-extract-T5Z4AULN.js} +1 -1
  80. package/dist/chunks/{update-AV5VOXGY.js → update-77ZUIYSG.js} +2 -2
  81. package/dist/chunks/{workflow-V54LJPXL.js → workflow-SYCBS5XD.js} +3 -3
  82. package/dist/index.js +3 -3
  83. package/dist/internal/update/service.js +9 -8
  84. package/dist/shortcuts/contract/data/collection-ledger-html.js +109 -33
  85. package/dist/shortcuts/contract/data/collection-node-catalog.js +26 -2
  86. package/dist/shortcuts/contract/data/report-renderers.js +75 -31
  87. package/dist/shortcuts/contract/data/report-spec.js +17 -3
  88. package/dist/shortcuts/contract/manifest.js +20 -3
  89. package/dist/shortcuts/contract/operations/bizreview-report.js +23 -2
  90. package/dist/shortcuts/contract/operations/collection-node.js +116 -1
  91. package/dist/shortcuts/contract/operations/compare-report.js +27 -5
  92. package/dist/shortcuts/contract/operations/credit-page.js +11 -2
  93. package/dist/shortcuts/contract/operations/docx-slots.js +27 -2
  94. package/dist/shortcuts/contract/operations/draft-submit.js +9 -6
  95. package/dist/shortcuts/contract/operations/elements-build.js +162 -30
  96. package/dist/shortcuts/contract/operations/elements-spec.js +50 -0
  97. package/dist/shortcuts/contract/operations/generated-submit.js +35 -0
  98. package/dist/shortcuts/contract/operations/ledger-card.js +32 -2
  99. package/dist/shortcuts/contract/operations/ledger-stat.js +17 -5
  100. package/dist/shortcuts/contract/operations/ledger.js +88 -16
  101. package/dist/shortcuts/contract/operations/metrics.js +16 -3
  102. package/dist/shortcuts/contract/operations/ops-draft.js +359 -27
  103. package/dist/shortcuts/contract/operations/page.js +23 -0
  104. package/dist/shortcuts/contract/operations/quote-recognize.js +91 -13
  105. package/dist/shortcuts/contract/operations/quote-submit.js +16 -0
  106. package/dist/shortcuts/contract/operations/review-report.js +11 -3
  107. package/dist/shortcuts/contract/operations/save-recognize.js +62 -1
  108. package/dist/shortcuts/contract/operations/triage.js +18 -3
  109. package/dist/shortcuts/contract/operations/viewlink.js +17 -1
  110. package/dist/shortcuts/ehr/operations/recruit.js +255 -90
  111. package/dist/shortcuts/invoice/business-response.js +13 -0
  112. package/dist/shortcuts/invoice/calendar.js +24 -0
  113. package/dist/shortcuts/invoice/host.js +26 -15
  114. package/dist/shortcuts/invoice/index.js +2 -2
  115. package/dist/shortcuts/invoice/invoice-record.js +7 -2
  116. package/dist/shortcuts/invoice/manifest.js +179 -155
  117. package/dist/shortcuts/invoice/operations/get.js +9 -3
  118. package/dist/shortcuts/invoice/operations/issuing-red-requests.js +138 -0
  119. package/dist/shortcuts/invoice/operations/registry.js +4 -5
  120. package/dist/shortcuts/invoice/operations/reim-auto.js +40 -2
  121. package/dist/shortcuts/invoice/operations/reim-customer-projects.js +79 -0
  122. package/dist/shortcuts/invoice/operations/reim-customer.js +79 -30
  123. package/dist/shortcuts/invoice/operations/reim-relation.js +0 -146
  124. package/dist/shortcuts/invoice/operations/reim.js +2 -126
  125. package/dist/shortcuts/invoice/operations/shared.js +15 -17
  126. package/dist/shortcuts/invoice/preapproval-enrichment.js +180 -0
  127. package/dist/shortcuts/invoice/projection.js +14 -0
  128. package/dist/shortcuts/invoice/read-enrichment.js +123 -0
  129. package/dist/shortcuts/meeting/confirm-gate.js +42 -0
  130. package/dist/shortcuts/meeting/continuation.js +6 -2
  131. package/dist/shortcuts/meeting/minute-doc.js +119 -12
  132. package/dist/shortcuts/meeting/operations/attachment.js +19 -0
  133. package/dist/shortcuts/meeting/operations/compose-outcome.js +24 -2
  134. package/dist/shortcuts/meeting/operations/eb/conflict.js +2 -1
  135. package/dist/shortcuts/meeting/operations/eb/create-flow.js +162 -19
  136. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +22 -3
  137. package/dist/shortcuts/meeting/operations/group-share.js +268 -0
  138. package/dist/shortcuts/meeting/operations/minute-content.js +58 -1
  139. package/dist/shortcuts/meeting/operations/minute-export.js +295 -0
  140. package/dist/shortcuts/meeting/operations/registry.js +4 -0
  141. package/dist/shortcuts/project/operations/read.js +40 -15
  142. package/dist/shortcuts/recruit-stage/context.js +16 -81
  143. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +89 -53
  144. package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +15 -5
  145. package/dist/shortcuts/recruit-stage/operations/jd-create.js +46 -108
  146. package/dist/shortcuts/recruit-stage/operations/list.js +203 -74
  147. package/dist/shortcuts/recruit-stage/operations/resume-import.js +21 -85
  148. package/dist/shortcuts/recruit-stage/operations/search.js +113 -53
  149. package/dist/shortcuts/recruit-stage/shared.js +153 -4
  150. package/dist/shortcuts/workflow/endpoints.js +2 -0
  151. package/dist/shortcuts/workflow/operations/form.js +11 -0
  152. package/dist/shortcuts/workflow/operations/read.js +24 -5
  153. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +2 -2
  154. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +2 -0
  155. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +28 -4
  156. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.node.js +198 -0
  157. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +4 -2
  158. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.subordinate.js +70 -0
  159. package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +15 -5
  160. package/docs/agent-invoice.md +28 -2
  161. package/docs/invoice.md +60 -9
  162. package/docs/project.md +1 -1
  163. package/package.json +1 -1
  164. package/skill-template/domains/yepiaotong.md +36 -7
  165. package/skills/weaver-e10-jinchengda/SKILL.md +64 -28
  166. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +4 -4
  167. package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +1 -1
  168. package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +5 -4
  169. package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +26 -2
  170. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
  171. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +9 -8
  172. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +47 -52
  173. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
  174. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +5 -5
  175. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +1 -1
  176. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +7 -1
  177. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +21 -12
  178. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +44 -1
  179. package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +5 -4
  180. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +8 -0
  181. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +33 -3
  182. package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +1 -1
  183. package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +17 -3
  184. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +12 -12
  185. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +18 -10
  186. package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +77 -37
  187. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +7 -0
  188. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +55 -12
  189. package/skills/weaver-e10-jinchengda/references/contract-review-todo.md +102 -0
  190. package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +1 -17
  191. package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +11 -8
  192. package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +2 -1
  193. package/skills/weaver-e10-jinchengda/references/orchestration.md +6 -6
  194. package/skills/weaver-e10-meeting/SKILL.md +203 -80
  195. package/skills/weaver-e10-meeting/references/create-quickstart.md +98 -0
  196. package/skills/weaver-e10-meeting/references/delivery-checklist.md +34 -0
  197. package/skills/weaver-e10-meeting/references/error-codes.md +44 -0
  198. package/skills/weaver-e10-meeting/references/minutes-pipeline.md +56 -3
  199. package/skills/weaver-e10-meeting/references/room-recommend.md +2 -0
  200. package/skills/weaver-e10-recruit-stage/SKILL.md +158 -146
  201. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +64 -51
  202. package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +56 -18
  203. package/skills/weaver-e10-recruit-stage/lib/recruit-attach-probe.mjs +127 -0
  204. package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +217 -30
  205. package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +39 -7
  206. package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +2 -2
  207. package/skills/weaver-e10-recruit-stage/references/position-templates.md +10 -10
  208. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +18 -18
  209. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +29 -31
  210. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +2 -2
  211. package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +4 -2
  212. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +19 -20
  213. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -4
  214. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +3 -3
  215. package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +10 -0
  216. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +4 -3
  217. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +21 -25
  218. package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +1 -1
  219. package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +19 -7
  220. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +31 -58
  221. package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +3 -1
  222. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +2 -2
  223. package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +2 -2
  224. package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +1 -1
  225. package/skills/weaver-e10-recruit-stage/templates/match-report.html +25 -15
  226. package/skills/weaver-e10-shijingran/SKILL.md +2 -2
  227. package/skills/weaver-e10-shijingran/references/operations.md +5 -2
  228. package/skills/weaver-e10-shijingran/references/source-manifest.json +41 -40
  229. package/skills/weaver-e10-workflow/SKILL.md +13 -9
  230. package/skills/weaver-e10-workflow/references/todo-dialogue.md +33 -8
  231. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +19 -14
  232. package/skills/weaver-e10-workflow/references/workflow-create.md +1 -1
  233. package/skills/weaver-e10-workflow/references/workflow-query.md +4 -2
  234. package/skills/weaver-e10-workflow/references/workflow-view.md +3 -3
  235. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +132 -42
  236. package/skills/weaver-e10-yepiaotong/SKILL.md +133 -61
  237. package/skills/weaver-e10-yepiaotong/references/invoice-add.md +3 -1
  238. package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +18 -2
  239. package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +3 -3
  240. package/skills/weaver-e10-yepiaotong/references/invoice-download.md +1 -1
  241. package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +13 -1
  242. package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +3 -1
  243. package/skills/weaver-e10-yepiaotong/references/invoice-import.md +6 -4
  244. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +42 -45
  245. package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +1 -1
  246. package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +18 -2
  247. package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +14 -1
  248. package/skills/weaver-e10-yepiaotong/references/invoice-red-workflow.md +96 -0
  249. package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +56 -369
  250. package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +16 -6
  251. package/skills/weaver-e10-yepiaotong/references/name-fuzzy-search.md +38 -0
  252. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +163 -646
  253. package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +90 -44
  254. package/skills/weaver-e10-yepiaotong/references/reim-eligibility-rules.md +85 -0
  255. package/skills/weaver-e10-yepiaotong/references/reim-fill-validation.md +61 -0
  256. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +91 -280
  257. package/skills/weaver-e10-yepiaotong/references/reim-preapproval-rules.md +98 -0
  258. package/skills/weaver-e10-yepiaotong/references/reim-travel-invoice-matching.md +48 -0
  259. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +234 -695
  260. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +395 -204
  261. package/skills/weaver-e10-yepiaotong/references/travel-application-fill.md +84 -0
  262. package/skills/weaver-e10-yepiaotong/references/workflow-direct-fill.md +165 -0
  263. package/templates/meeting/minute.docx +0 -0
  264. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +0 -93
  265. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +0 -774
  266. package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +0 -111
  267. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +0 -360
  268. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +0 -167
@@ -15,7 +15,7 @@
15
15
  * --request-mark QC4994681 --request-mark-term eq|like|ne|in|notin
16
16
  * --request-level 紧急 --creator 郭杰 --creator-dept 研发中心 --creator-subcom 总部
17
17
  * --unoperator 张三 --source-userid 李四 --creator-code A0001 --creator-code-term like
18
- * --workflow-type 行政类 --node-id 123456,123457 --node-id-term in|notin
18
+ * --workflow-type 行政类 --node-name "新奖金确认" --node-id 123456,123457 --node-id-term in|notin
19
19
  * --flow-status finish,notFinish --flow-status-term in|notin
20
20
  * --request-id 5001,5002 --ex-request-id 5003
21
21
  * --create-time "2026-08-01 2026-08-07" --operate-time A B --finish-time A B --receive-time A B
@@ -31,6 +31,7 @@
31
31
  * 摘要链路的二次分组必须由模型现场产出 aiGroups;普通 query 跳过摘要与二次分组。
32
32
  */
33
33
  const { execFileSync } = require('node:child_process');
34
+ const { randomBytes } = require('node:crypto');
34
35
  const fs = require('node:fs');
35
36
  const path = require('node:path');
36
37
  const os = require('node:os');
@@ -117,6 +118,8 @@ let outputModeCapability;
117
118
  let prepareQueryCapability = false;
118
119
  let categoryCountsCapability = false;
119
120
  let originDataCapability = false;
121
+ let subordinateQueryCapability = false;
122
+ let nodeNameCapability = false;
120
123
  function supportsOutputMode() {
121
124
  if (outputModeCapability !== undefined) return outputModeCapability;
122
125
  outputModeCapability = false;
@@ -139,6 +142,11 @@ function supportsOutputMode() {
139
142
  categoryCountsCapability = schema?.properties?.includeCategoryCounts?.type === 'boolean';
140
143
  // originData 能力(2026-11-24):collect schema 声明了该布尔输入才透传,旧 CLI 不带(会 input_unknown_key)。
141
144
  originDataCapability = schema?.properties?.originData?.type === 'boolean';
145
+ subordinateQueryCapability = schema?.properties?.subordinateName?.type === 'string';
146
+ const nodeNameSchema = schema?.properties?.nodeName;
147
+ nodeNameCapability = nodeNameSchema?.type === 'string'
148
+ || nodeNameSchema?.type === 'array'
149
+ || nodeNameSchema?.anyOf?.some((item) => ['string', 'array'].includes(item?.type));
142
150
  }
143
151
  } catch {
144
152
  // 仅 schema 读取失败允许兼容既有协议;不要捕获或重试任何真实业务调用。
@@ -329,11 +337,10 @@ function resolveBaseUrl(state, dir) {
329
337
 
330
338
  /**
331
339
  * 把最终三键对象包成 browsertool 组件载荷(用户 2026-10-27 要求;2026-11-13 改为 id 传参)。
332
- * - 每轮组件使用唯一 callId/panelKey;本轮工作流分布、分类及全部链接共用 callId,
333
- * 按过滤目标派生不同 panelKey,更新已注册实例;
334
- * toolId 固定 fill_form;
340
+ * - 每轮组件使用同一个短 ID 作为 callId/panelKey;工作流分布总数只显示纯文本;
341
+ * toolId 固定 fill_form。
335
342
  * - `arguments` 层新增 `displayMode: "tabs"` 与 `panelKey`(2026-11-10 用户要求,层级同 title/src):
336
- * panelKey = `todo_summary_<当前时间戳>_<随机串>`,独立查询使用不同面板;
343
+ * 独立查询使用不同面板;
337
344
  * - 摘要的 `params.data` 带 `{"id": "<smartgroup/add 落库返回的主键>"}`(2026-11-13 用户定稿,
338
345
  * 取代旧的 `params.data.dataSource` 本地服务地址)。id 按服务端响应的**原样数字串**内嵌
339
346
  * (字符串形态,防雪花 id 超出 JS Number 安全整数范围丢精度);组件侧拿 id 走服务端读回链路;
@@ -343,8 +350,9 @@ function resolveBaseUrl(state, dir) {
343
350
  */
344
351
  function wrapBrowseToolPayload(baseUrl, smartGroupId, title = '待办摘要汇总', options = {}) {
345
352
  const src = `${String(baseUrl).replace(/\/+$/, '')}/workflow/list/todo`;
346
- const panelKey = `todo_summary_${Date.now()}_${Math.random().toString(36).slice(2, 10).padEnd(8, '0')}`;
353
+ const panelKey = `t_${randomBytes(9).toString('base64url')}`;
347
354
  const data = smartGroupId && typeof smartGroupId === 'object' ? smartGroupId : { id: String(smartGroupId) };
355
+ const isSubordinateQuery = Boolean(data.subordinateId);
348
356
  // originDataId(2026-11-24 二次调整):原文存档文件名(去 .json),提升为 params 与 data 同级的键(不再放 data 内)。
349
357
  const originDataId = typeof options.originDataId === 'string' ? options.originDataId.trim() : '';
350
358
  const compConfig = {};
@@ -352,17 +360,18 @@ function wrapBrowseToolPayload(baseUrl, smartGroupId, title = '待办摘要汇
352
360
  if (typeof options[key] === 'string' && options[key].trim()) compConfig[key] = options[key].trim();
353
361
  }
354
362
  if (['browser', 'tabs'].includes(options.detailOpenMode)) compConfig.detailOpenMode = options.detailOpenMode;
355
- if (typeof options.autoOpenWfAIAssistant === 'boolean') compConfig.autoOpenWfAIAssistant = options.autoOpenWfAIAssistant;
363
+ if (isSubordinateQuery) compConfig.autoOpenWfAIAssistant = false;
364
+ else if (typeof options.autoOpenWfAIAssistant === 'boolean') compConfig.autoOpenWfAIAssistant = options.autoOpenWfAIAssistant;
356
365
  const queryName = Object.keys(compConfig).length > 0;
357
366
  const inline = Number.isInteger(options.totalCount) && options.totalCount >= 0 && options.totalCount < 5;
358
367
  // showSummaryBtn(2026-11-24 用户定稿):params 与 data 同级的布尔键,恒输出(白名单规则见 SHOW_SUMMARY_BTN_RULE)。
359
- const showSummaryBtn = options.showSummaryBtn === true;
368
+ const showSummaryBtn = options.showSummaryBtn === true && !isSubordinateQuery;
360
369
  // showSummaryBtnWfIds(2026-11-25 用户定稿):params 层工作流 ID 白名单数组,恒输出(名单见 SHOW_SUMMARY_BTN_WF_IDS)。
361
370
  const paramsLines = [
362
371
  ` "data": ${JSON.stringify(data)},`,
363
372
  ...(originDataId ? [` "originDataId": ${JSON.stringify(originDataId)},`] : []),
364
373
  ` "showSummaryBtn": ${showSummaryBtn},`,
365
- ` "showSummaryBtnWfIds": ${JSON.stringify(SHOW_SUMMARY_BTN_WF_IDS)}${queryName ? ',' : ''}`,
374
+ ` "showSummaryBtnWfIds": ${JSON.stringify(isSubordinateQuery ? [] : SHOW_SUMMARY_BTN_WF_IDS)}${queryName ? ',' : ''}`,
366
375
  ...(queryName ? [` "compConfig": ${JSON.stringify(compConfig)}`] : []),
367
376
  ];
368
377
  const text = [
@@ -395,8 +404,8 @@ function wrapBrowseToolPayload(baseUrl, smartGroupId, title = '待办摘要汇
395
404
  return `${text}\n`;
396
405
  }
397
406
 
398
- /** 对话分布只输出经过转义的纯文本名称。 */
399
- function componentWorkflowLink(browserTool, workflowId, label) {
407
+ /** 对话表格单元格只显示纯文本,转义名称中的 Markdown 分隔符。 */
408
+ function escapeDistributionCell(label) {
400
409
  return String(label ?? '').replace(/[\r\n\t]+/g, ' ')
401
410
  .replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;')
402
411
  .replace(/[|\\\x60*_[\]]/g, value => `&#${value.charCodeAt(0)};`);
@@ -597,12 +606,11 @@ function buildReplyPrologue(state, payload, opts) {
597
606
  if (hasWorkflowMetadata) {
598
607
  for (const row of requests.values()) {
599
608
  const title = row.workflowName || row.groupTitle || '未提供名称';
600
- const key = row.workflowName && row.workflowName !== '未提供名称' ? `name:${row.workflowName}` : `id:${row.workflowId}`;
601
- const existing = distribution.get(key);
609
+ const existing = distribution.get(row.workflowId);
602
610
  if (existing) {
603
611
  existing.count += 1;
604
612
  if (existing.title === '未提供名称' && title !== '未提供名称') existing.title = title;
605
- } else distribution.set(key, { title, count: 1 });
613
+ } else distribution.set(row.workflowId, { title, count: 1, workflowId: row.workflowId });
606
614
  }
607
615
  }
608
616
  // 老成品缺少标识时保留原统计,不把分组 ID 猜成工作流 ID。
@@ -619,15 +627,14 @@ function buildReplyPrologue(state, payload, opts) {
619
627
  lines.push('', opts.tablesOnly ? '**工作流分布情况(本次展示)**:' : `**工作流分布情况${scope}**:`);
620
628
  lines.push('| 工作流 | 总数 |', '| --- | --- |');
621
629
  for (const row of tableRows.slice(0, 10)) {
622
- const label = componentWorkflowLink(row.workflowId ? opts.browserTool : undefined, row.workflowId, row.title);
623
- lines.push(`| ${label} | ${row.count} |`);
630
+ lines.push(`| ${escapeDistributionCell(row.title)} | ${row.count} |`);
624
631
  }
625
632
  if (tableRows.length > 10) {
626
633
  const restCount = tableRows.slice(10).reduce((sum, row) => sum + row.count, 0);
627
634
  lines.push(`| 其它 | ${restCount} |`);
628
635
  }
629
636
  const coveredCount = hasWorkflowMetadata ? requests.size : totalCount;
630
- lines.push(`| ${componentWorkflowLink(opts.browserTool, undefined, '全部')} | ${coveredCount} |`);
637
+ lines.push(`| 全部 | ${coveredCount} |`);
631
638
  }
632
639
  return lines;
633
640
  }
@@ -926,7 +933,7 @@ function exportFinal(result, dir, state, kept, opts = {}) {
926
933
  autoOpenWfAIAssistant: state.autoOpenWfAIAssistant,
927
934
  showSummaryBtn: resolveShowSummaryBtn(state, dir),
928
935
  });
929
- // 交付 = 回复正文(总数/降级说明 + 优先组前 5 列表 + 工作流表格 + <browsertool> 块)。
936
+ // 交付 = <browsertool> 块 + 正文(总数/降级说明 + 优先组前 5 列表 + 工作流表格)。
930
937
  // 2026-11-10 用户定稿:正文不再是只有组件块,前段由脚本产出、模型原样粘贴(勿增删改写)。
931
938
  const browserTool = JSON.parse(finalText);
932
939
  const delivery = `<browsertool>\n${finalText.trimEnd()}\n</browsertool>`;
@@ -935,12 +942,12 @@ function exportFinal(result, dir, state, kept, opts = {}) {
935
942
  });
936
943
  const categoryNavigation = buildCategoryNavigation(browserTool, state);
937
944
  if (categoryNavigation) prologueLines.splice(1, 0, '', categoryNavigation);
938
- const replyBody = [...prologueLines, '', delivery].join('\n');
945
+ const replyBody = [delivery, '', ...prologueLines].join('\n');
939
946
  fs.writeFileSync(path.join(dir, 'reply.md'), replyBody);
940
947
  console.log('\n[JSON_BEGIN]');
941
948
  console.log(replyBody);
942
949
  console.log('[JSON_END]');
943
- console.log('载荷字节数:%d(含 <browsertool> 标签,位于交付正文尾部)', Buffer.byteLength(delivery));
950
+ console.log('载荷字节数:%d(含 <browsertool> 标签,位于交付正文开头)', Buffer.byteLength(delivery));
944
951
  console.log('交付正文已落盘:%s(模型原样粘贴 [JSON_BEGIN]~[JSON_END] 之间整段,勿增删改写)', path.join(dir, 'reply.md'));
945
952
  // 用户 2026-10-27 要求:不再产出「耗时说明 md」交付物,耗时只在控制台打一段摘要。
946
953
  // 计时与统计逻辑(state 各阶段耗时、buildTimingReport 的算法)保持不变,只是输出形态变了。
@@ -1005,6 +1012,7 @@ const COLLECT_FILTER_FLAGS = {
1005
1012
  'request-level': 'requestLevel',
1006
1013
  'request-id': 'requestId',
1007
1014
  'ex-request-id': 'exRequestId',
1015
+ 'node-name': 'nodeName',
1008
1016
  'node-id': 'nodeId',
1009
1017
  'node-id-term': 'nodeIdTerm',
1010
1018
  'flow-status': 'flowStatus',
@@ -1029,7 +1037,7 @@ const FILTER_FLAG_LABELS = {
1029
1037
  creatorSubcom: '发起分部', unoperator: '未操作者', sourceUserid: '来源',
1030
1038
  creatorcode: '发起人工号', creatorcodeTerm: '工号匹配', workflowType: '工作流类型', requestName: '标题', requestNameTerm: '标题匹配',
1031
1039
  requestMark: '流程编号', requestMarkTerm: '编号匹配', requestLevel: '紧急程度',
1032
- requestId: '指定流程', exRequestId: '排除流程', nodeId: '当前节点', nodeIdTerm: '节点匹配',
1040
+ requestId: '指定流程', exRequestId: '排除流程', nodeName: '节点名称', nodeId: '当前节点', nodeIdTerm: '节点匹配',
1033
1041
  flowStatus: '流程状态', flowStatusTerm: '状态匹配', createTime: '发起时间',
1034
1042
  operateTime: '操作时间', receiveTime: '接收时间', finishTime: '完成时间',
1035
1043
  filterFields: '表单字段', conditionType: '条件关系',
@@ -1155,6 +1163,16 @@ function printClarification(data, dir, input = {}) {
1155
1163
  const question = String(data.clarificationQuestion || '请确认查询条件。');
1156
1164
  const lines = [`⚠ 需要先确认查询范围(本次查询**没有执行**,不是「没有数据」):`, ` ${question}`];
1157
1165
  const candidates = Array.isArray(data.candidates) ? data.candidates : [];
1166
+ if (data.clarificationType === 'node' && candidates.length) {
1167
+ for (const [index, candidate] of candidates.entries()) {
1168
+ const name = candidate.name || candidate.display || '';
1169
+ const workflow = candidate.workflowName ? `(所属工作流:${candidate.workflowName})` : '';
1170
+ lines.push(` ${index + 1}. ${name}${workflow}`);
1171
+ }
1172
+ lines.push('[CLARIFICATION_BEGIN]', JSON.stringify(data), '[CLARIFICATION_END]');
1173
+ console.log(lines.join('\n'));
1174
+ return;
1175
+ }
1158
1176
  const displayOf = (candidate) => candidate.display || candidate.fieldName || candidate.name || '';
1159
1177
  // CLI 的 clarificationQuestion 通常已经把候选列在句子里了,别重复打一遍。
1160
1178
  const questionHasCandidates = candidates.length > 0 && question.includes(String(displayOf(candidates[0])));
@@ -1185,7 +1203,20 @@ function cmdPrep(args) {
1185
1203
  const outputMode = args._query === true ? 'query' : 'summary';
1186
1204
  const presentation = readPresentationArgs(args);
1187
1205
  const limit = readOutputLimit(args, outputMode);
1206
+ if (args['node-name'] !== undefined) {
1207
+ supportsOutputMode();
1208
+ if (!nodeNameCapability) throw Error('请升级 CLI 后再按节点名称查询待办');
1209
+ if (args['node-id-term'] === 'notin') throw Error('--node-name 只能用于包含节点查询,不能与 --node-id-term notin 同用');
1210
+ }
1188
1211
  const days = Number(args.days || 0);
1212
+ const week = args.week;
1213
+ if (week !== undefined && week !== 'current') throw Error('--week 仅支持 current(本周周一至周日)');
1214
+ if (week && (args.days !== undefined || args.from !== undefined || args.to !== undefined || args['receive-time'] !== undefined)) {
1215
+ throw Error('--week 不能与 --days、--from/--to 或 --receive-time 同用');
1216
+ }
1217
+ if (!week && days > 0 && /本周|这周|本星期|这星期/u.test(String(args.prompt || ''))) {
1218
+ throw Error('“本周”是周一至周日的自然周,请使用 --week current,不能使用 --days');
1219
+ }
1189
1220
  const exclude = args.exclude && args.exclude !== true ? String(args.exclude).split(',').map((x) => x.trim()).filter(Boolean) : [];
1190
1221
  const dir = args.out && args.out !== true ? String(args.out) : fs.mkdtempSync(path.join(os.tmpdir(), 'todo-summary-'));
1191
1222
  fs.mkdirSync(dir, { recursive: true });
@@ -1203,6 +1234,10 @@ function cmdPrep(args) {
1203
1234
 
1204
1235
  const startedAt = nowIso();
1205
1236
  const input = { stage: args._prepareQuery === true ? 'prepareQuery' : 'collect', outputMode, limit };
1237
+ if (args['subordinate-name'] !== undefined) {
1238
+ if (input.stage !== 'prepareQuery') throw Error('下属待办仅支持 query 普通查询');
1239
+ input.subordinateName = args['subordinate-name'];
1240
+ }
1206
1241
  // originData(2026-11-24 用户定稿):摘要链路让 CLI collect 透出 getTodoListData 各页原始响应体;
1207
1242
  // 查询/listQuery 版组件按原生条件自行取数,不透出明细。旧 CLI schema 无该字段时不传。
1208
1243
  if (outputMode === 'summary') {
@@ -1258,7 +1293,15 @@ function cmdPrep(args) {
1258
1293
  input.summaryMaxChars = Number(args['summary-chars']);
1259
1294
  }
1260
1295
  if (args.focus && args.focus !== true) input.groupFocus = String(args.focus);
1261
- if (args.from && args.to) {
1296
+ if (week) {
1297
+ const today = new Date();
1298
+ const monday = new Date(today);
1299
+ monday.setDate(today.getDate() - (today.getDay() + 6) % 7);
1300
+ const sunday = new Date(monday);
1301
+ sunday.setDate(monday.getDate() + 6);
1302
+ const fmtDate = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`;
1303
+ input.receiveTime = `${fmtDate(monday)} ${fmtDate(sunday)}`;
1304
+ } else if (args.from && args.to) {
1262
1305
  // 指定区间(含两端),如 --from 2026-10-01 --to 2026-10-31
1263
1306
  input.receiveTime = `${args.from} ${args.to}`;
1264
1307
  } else if (days > 0) {
@@ -1296,6 +1339,10 @@ function cmdPrep(args) {
1296
1339
  printClarification(collect.data, dir, input);
1297
1340
  return 'CLARIFICATION';
1298
1341
  }
1342
+ const nodeResolution = collect.data.nodeResolution;
1343
+ if (input.nodeName && !buildNodeCoverage(nodeResolution)) {
1344
+ throw Error('未取得节点名称解析结果,本次停止交付');
1345
+ }
1299
1346
  if (args._prepareQuery === true) return collect;
1300
1347
  // **两个口径必须分开**(性能调优时最容易看错的地方):
1301
1348
  // - collectWallMs:脚本进程视角的墙钟,含 node 启动 + 模块加载(沙箱下 5~7s);
@@ -1328,8 +1375,13 @@ function cmdPrep(args) {
1328
1375
  // - 带限制条件(时间范围 / 小分类 / tabid / 参与身份 / 排除清单 / 侧重点)⇒
1329
1376
  // 「您当前没有符合条件的待办,可以尝试调整限制数据的范围后重试。」并回显条件。
1330
1377
  if (all.length === 0 || kept.length === 0) {
1378
+ if (nodeResolution) {
1379
+ console.log('按当前节点查询到 0 条待办。%s', buildQueryScope({ ...presentation, nodeResolution }));
1380
+ return 'EMPTY';
1381
+ }
1331
1382
  const constraints = [];
1332
- if (days > 0) constraints.push(`近 ${days} 天`);
1383
+ if (week) constraints.push(`本周 ${input.receiveTime.replace(' ', ' 至 ')}`);
1384
+ else if (days > 0) constraints.push(`近 ${days} 天`);
1333
1385
  if (args.from && args.to) constraints.push(`${args.from} 至 ${args.to}`);
1334
1386
  if (input.subCategory) constraints.push(`小分类「${input.subCategory}」`);
1335
1387
  if (input.tabid) constraints.push(`tabid=${input.tabid}`);
@@ -1423,7 +1475,7 @@ function cmdPrep(args) {
1423
1475
  prompt: args.prompt && args.prompt !== true ? String(args.prompt) : null,
1424
1476
  ruleFp: ruleFingerprint(),
1425
1477
  fetched: all.length, kept: kept.length, dropped,
1426
- queryMeta: collect.data.query || {}, truncated: filtered.length - kept.length,
1478
+ queryMeta: collect.data.query || {}, nodeResolution, truncated: filtered.length - kept.length,
1427
1479
  planGroups,
1428
1480
  }));
1429
1481
  fs.writeFileSync(path.join(dir, 'items.json'), JSON.stringify(kept, null, 2));
@@ -1840,16 +1892,19 @@ function hasLocalWorkflowExclusion(args) {
1840
1892
  }
1841
1893
 
1842
1894
  /** 仅将确定性计数放入会话正文,不改变组件数据源或生成 AI 分组。 */
1843
- function buildQueryDistribution(distribution, total, browserTool) {
1895
+ function buildQueryDistribution(distribution, total) {
1844
1896
  if (!distribution || !Array.isArray(distribution.items)) return [];
1845
1897
  const merged = new Map();
1846
1898
  for (const row of distribution.items) {
1847
1899
  if (!row || !Number.isInteger(row.count) || row.count <= 0) continue;
1848
1900
  const name = typeof row.workflowName === 'string' ? row.workflowName.trim() : '';
1849
- const key = name && name !== '未提供名称' ? `name:${name}` : `id:${String(row.workflowId || merged.size)}`;
1901
+ const workflowId = String(row.workflowId || '').trim();
1902
+ const key = workflowId ? `id:${workflowId}` : `unknown:${merged.size}`;
1850
1903
  const previous = merged.get(key);
1851
- if (previous) previous.count += row.count;
1852
- else merged.set(key, { title: name || '未提供名称', count: row.count });
1904
+ if (previous) {
1905
+ previous.count += row.count;
1906
+ if (previous.title === '未提供名称' && name) previous.title = name;
1907
+ } else merged.set(key, { title: name || '未提供名称', count: row.count, workflowId });
1853
1908
  }
1854
1909
  const rows = [...merged.values()].sort((a, b) => b.count - a.count);
1855
1910
  if (rows.length <= 1) return [];
@@ -1857,19 +1912,30 @@ function buildQueryDistribution(distribution, total, browserTool) {
1857
1912
  const readCount = Number.isInteger(distribution.readCount) && distribution.readCount >= counted ? distribution.readCount : counted;
1858
1913
  const complete = distribution.complete === true && distribution.truncated !== true && total !== null && readCount === total && counted === readCount;
1859
1914
  const lines = ['', complete ? '**工作流分布情况**:' : `**工作流分布情况(本次读取${readCount}条)**:`, '| 工作流 | 总数 |', '| --- | --- |'];
1860
- for (const row of rows.slice(0, 10)) lines.push(`| ${componentWorkflowLink(undefined, undefined, row.title)} | ${row.count} |`);
1915
+ for (const row of rows.slice(0, 10)) {
1916
+ lines.push(`| ${escapeDistributionCell(row.title)} | ${row.count} |`);
1917
+ }
1861
1918
  if (rows.length > 10) lines.push(`| 其它 | ${rows.slice(10).reduce((count, row) => count + row.count, 0)} |`);
1862
1919
  lines.push(`| 全部 | ${counted} |`);
1863
1920
  return lines;
1864
1921
  }
1865
1922
 
1866
1923
  function cmdQuery(args) {
1924
+ const subordinate = args['subordinate-name'];
1925
+ if (subordinate !== undefined && (typeof subordinate !== 'string' || !subordinate.trim())) {
1926
+ console.log('请问您要查询哪位下属的待办?');
1927
+ return;
1928
+ }
1867
1929
  const presentation = readPresentationArgs(args);
1868
1930
  const limit = readOutputLimit(args, 'query');
1931
+ supportsOutputMode();
1932
+ if (subordinate !== undefined) {
1933
+ if (!prepareQueryCapability || !subordinateQueryCapability) throw Error('请升级 CLI 后再查询下属待办');
1934
+ if (hasLocalWorkflowExclusion(args)) throw Error('下属待办的 --exclude 不能与 --workflow 或 --workflow-term 一起使用');
1935
+ }
1869
1936
  const dir = args.out && args.out !== true
1870
1937
  ? String(args.out)
1871
1938
  : fs.mkdtempSync(path.join(os.tmpdir(), 'todo-query-'));
1872
- supportsOutputMode();
1873
1939
  if (!prepareQueryCapability || hasLocalWorkflowExclusion(args)) return cmdLegacyQuery(args, dir, limit);
1874
1940
  const prepared = cmdPrep({
1875
1941
  ...args, out: dir, limit, _query: true, _prepareQuery: true,
@@ -1881,18 +1947,28 @@ function cmdQuery(args) {
1881
1947
  console.error('✖ 查询条件未准备完成,本次停止交付。');
1882
1948
  process.exit(1);
1883
1949
  }
1950
+ const { subordinateId, subordinateName } = query;
1951
+ if (subordinate !== undefined && !(typeof subordinateId === 'string' && /^\d+$/u.test(subordinateId)
1952
+ && typeof subordinateName === 'string' && subordinateName.trim())) {
1953
+ throw Error('下属待办查询未取得确认的人员信息,本次停止交付');
1954
+ }
1884
1955
  const totalValue = Object.prototype.hasOwnProperty.call(prepared.data, 'totalCount')
1885
1956
  ? prepared.data.totalCount : query.totalAvailable;
1886
- const state = { outputMode: 'query', ...presentation, queryMeta: { ...query, totalAvailable: totalValue } };
1957
+ const state = {
1958
+ outputMode: 'query', ...presentation, nodeResolution: prepared.data.nodeResolution,
1959
+ queryMeta: { ...query, totalAvailable: totalValue },
1960
+ };
1887
1961
  const total = resolveMatchingTotal(state, 0);
1888
1962
  const warnings = Array.isArray(prepared.data.warnings)
1889
1963
  ? prepared.data.warnings.filter(value => typeof value === 'string' && value.trim()).map(value => `注意:${value.trim()}`) : [];
1890
1964
  if (total === 0) {
1891
1965
  if (warnings.length) console.log(warnings.join('\n'));
1892
- console.log('您当前没有符合条件的待办。');
1966
+ if (state.nodeResolution) console.log('按当前节点查询到 0 条待办。%s', buildQueryScope(state));
1967
+ else console.log(subordinateName ? `您的下属 ${subordinateName} 没有符合条件的待办。` : '您当前没有符合条件的待办。');
1893
1968
  return;
1894
1969
  }
1895
- const data = { listQuery: query.listQuery, limit, ...(total === null ? {} : { totalCount: total }) };
1970
+ const data = { listQuery: query.listQuery, limit, ...(total === null ? {} : { totalCount: total }),
1971
+ ...(subordinateId ? { subordinateId } : {}) };
1896
1972
  const lines = [...warnings, total === null ? `待办列表如下,本次最多展示${limit}条。`
1897
1973
  : `本次共匹配${total}条待办${total > limit ? `,本次最多展示${limit}条` : ''},清单如下:`];
1898
1974
  deliverQuery(data, state, dir, total, lines, prepared.data.distribution);
@@ -1978,21 +2054,21 @@ function deliverQuery(data, state, dir, total, lines, distribution) {
1978
2054
  // 存档 <skill>/originData/todo_query_<employeeId>_<毫秒时间戳>.json,文件名(去 .json)进 params.originDataId(与 data 同级)。
1979
2055
  // 落库 id 兜底版(无 listQuery)不存档、不带 originDataId。
1980
2056
  let originDataId = '';
1981
- if (data && typeof data === 'object' && data.listQuery) {
2057
+ if (data && typeof data === 'object' && data.listQuery && !data.subordinateId) {
1982
2058
  originDataId = writeOriginDataFile(state, dir, 'todo_query', { listQuery: data.listQuery, limit: data.limit });
1983
2059
  }
1984
2060
  const baseUrl = resolveBaseUrl(state, dir);
1985
2061
  const finalText = wrapBrowseToolPayload(baseUrl, data, '待办列表', {
1986
2062
  totalCount: total, originDataId, queryName: resolveQueryName(data, state), queryScope: buildQueryScope(state), detailOpenMode: state.detailOpenMode,
1987
2063
  autoOpenWfAIAssistant: state.autoOpenWfAIAssistant,
1988
- showSummaryBtn: resolveShowSummaryBtn(state, dir),
2064
+ showSummaryBtn: !data.subordinateId && resolveShowSummaryBtn(state, dir),
1989
2065
  });
1990
2066
  const browserTool = JSON.parse(finalText);
1991
2067
  const categoryNavigation = buildCategoryNavigation(browserTool, state);
1992
2068
  const categoryLines = categoryNavigation ? ['', categoryNavigation] : [];
1993
- const distributionLines = buildQueryDistribution(distribution, total, browserTool);
2069
+ const distributionLines = buildQueryDistribution(distribution, total);
1994
2070
  const delivery = `<browsertool>\n${finalText.trimEnd()}\n</browsertool>`;
1995
- const replyBody = [...lines, ...categoryLines, ...distributionLines, '', delivery].join('\n');
2071
+ const replyBody = [delivery, '', ...lines, ...categoryLines, ...distributionLines].join('\n');
1996
2072
  fs.writeFileSync(path.join(dir, 'reply.md'), replyBody);
1997
2073
  console.log('\n[JSON_BEGIN]\n%s\n[JSON_END]', replyBody);
1998
2074
  console.log('交付正文已落盘:%s(原样粘贴正文与 browsertool,勿改写为旧卡片列表)', path.join(dir, 'reply.md'));
@@ -2027,7 +2103,12 @@ function readPresentationArgs(args, state = {}) {
2027
2103
  }
2028
2104
 
2029
2105
  function buildQueryScope(state = {}, count) {
2030
- const parts = [normalizeQueryScope(state.queryScope)];
2106
+ const scope = normalizeQueryScope(state.queryScope);
2107
+ const subordinateName = state.queryMeta?.subordinateName;
2108
+ const subordinateScope = subordinateName ? `查询您的下属 ${subordinateName} 待办` : '';
2109
+ const parts = subordinateScope && !scope.includes(subordinateScope) ? [subordinateScope, scope] : [scope];
2110
+ const nodeCoverage = buildNodeCoverage(state.nodeResolution || state.queryMeta?.nodeResolution);
2111
+ if (nodeCoverage) parts.push(nodeCoverage);
2031
2112
  if (state.degrade?.applied) parts.push(`实际${state.outputMode === 'summary' ? '摘要' : '查询'}范围:${describeDegradeWindow(state.degrade)}`);
2032
2113
  if (state.outputMode === 'summary' && Number.isInteger(count) && count >= 0) {
2033
2114
  const total = resolveMatchingTotal(state, count);
@@ -2037,18 +2118,27 @@ function buildQueryScope(state = {}, count) {
2037
2118
  return `筛选范围:${parts.join(';')}`;
2038
2119
  }
2039
2120
 
2121
+ function buildNodeCoverage(nodeResolution) {
2122
+ const count = nodeResolution?.nodeDefinitionCount;
2123
+ return Number.isSafeInteger(count) && count > 0 ? `覆盖 ${count} 个节点定义` : '';
2124
+ }
2125
+
2040
2126
  const args = parseArgs(process.argv.slice(2));
2041
2127
  const cmd = args._[0];
2042
- if (cmd === 'query') cmdQuery(args);
2128
+ const nodeName = args['node-name'];
2129
+ if (['query', 'prep', 'run'].includes(cmd) && nodeName !== undefined &&
2130
+ (typeof nodeName !== 'string' || !nodeName.trim())) {
2131
+ console.log('请问您要查询哪个节点的待办?');
2132
+ } else if (cmd === 'query') cmdQuery(args);
2043
2133
  else if (cmd === 'prep') cmdPrep(args);
2044
2134
  else if (cmd === 'build') cmdBuild(args);
2045
2135
  else if (cmd === 'finish') cmdFinish(args);
2046
2136
  else if (cmd === 'run') cmdRun(args);
2047
2137
  else {
2048
2138
  console.log('用法:node ' + path.basename(__filename) + ' <query|run|prep|build|finish> [options]');
2049
- console.log(' query --query-scope "本轮有效筛选范围" [--limit 1000] [筛选条件] [--out DIR] [--prompt "用户完整提示词"] # 标题清单组件,每页500条;不生成 AI 摘要或二次分组;limit 为 1~1000,默认 1000');
2050
- console.log(' run --query-scope "本轮有效筛选范围" [--days N | --from A --to B] [--limit 100] [--out DIR] [--timing-report] [--prompt "用户完整提示词"] # 摘要默认/最多100条,沿用原工作流规则');
2051
- console.log(' prep --query-scope "本轮有效筛选范围" --limit 100 [--exclude 内部留言] [--days 1460] [--sub-category 待处理] [--tabid 7] [--isremarks 1,2] [--out DIR] # 小分类:--sub-category/--tabid(显式 tabid 优先);isremarks=备注筛选(数字逗号拼接)');
2139
+ console.log(' query --query-scope "本轮有效筛选范围" [--week current | --days N | --from A --to B] [--node-name "节点名称"] [--node-id ID1,ID2] [--limit 1000] [筛选条件] [--out DIR] [--prompt "用户完整提示词"] # 本周为周一至周日;标题清单每页500条');
2140
+ console.log(' run --query-scope "本轮有效筛选范围" [--week current | --days N | --from A --to B] [--limit 100] [--out DIR] [--timing-report] [--prompt "用户完整提示词"] # 摘要默认/最多100条,沿用原工作流规则');
2141
+ console.log(' prep --query-scope "本轮有效筛选范围" --limit 100 [--exclude 内部留言] [--week current | --days 1460] [--sub-category 待处理] [--tabid 7] [--isremarks 1,2] [--out DIR] # 小分类:--sub-category/--tabid(显式 tabid 优先);isremarks=备注筛选(数字逗号拼接)');
2052
2142
  console.log(' build --dir DIR [--plan aiGroups.json] # aiGroups 可先落盘(不传也行):build 只做首次分组+平铺,二次分组在 finish');
2053
2143
  console.log(' finish --dir DIR [--summaries aiSummaries.json] [--group-summaries aiGroupSummaries.json] [--timing-report]');
2054
2144
  console.log(' 筛选范围:只描述实际生效条件;无额外筛选传“全部待办”。finish/build 复用已存范围,旧材料缺少时用 --query-scope 补填,不重新取数。');