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
@@ -193,6 +193,18 @@ export const contractLedgerOperations = [
193
193
  const sum = Array.isArray(input.sum) ? input.sum.map(String) : [];
194
194
  const where = Array.isArray(input.where) ? input.where.map(String) : [];
195
195
  const dedupe = input.dedupe === true;
196
+ /**
197
+ * **实体级字段的求和口径**(2026-12-01 事故固化)。
198
+ *
199
+ * `sum` 里可以混两种粒度的字段:合同级(`htzje` 合同总金额、`sumsk` 已收款…)与期次级(分期金额)。
200
+ * 前者若按**行**累加,同一合同出现在多行(多期/多窗口重叠)就会被重复计入
201
+ * —— 与收款节点台账 150 万 vs 100 万 是同一类事故。
202
+ *
203
+ * `entityKey` 给实体键(如 `['hth']`),`entitySumFields` 给其中的**合同级**字段;
204
+ * 这些字段按实体去重后**每实体取一次值(取最大,防脏数据放大)**再求和,其余字段照常按行累加。
205
+ */
206
+ const entityKey = Array.isArray(input.entityKey) ? input.entityKey.map(String).filter(Boolean) : [];
207
+ const entitySumFields = new Set(Array.isArray(input.entitySumFields) ? input.entitySumFields.map(String).filter(Boolean) : []);
196
208
  const detail = input.detail === true;
197
209
  const limitRaw = input.limit;
198
210
  const limit = typeof limitRaw === 'number' && Number.isFinite(limitRaw) && limitRaw > 0 ? Math.floor(limitRaw) : 20;
@@ -219,8 +231,11 @@ export const contractLedgerOperations = [
219
231
  let totalSum = 0;
220
232
  let totalUnknown = false;
221
233
  let truncatedAny = false;
234
+ let rawRowCount = 0;
235
+ let droppedByDedupe = 0;
222
236
  for (const path of sources) {
223
237
  const { rows, pagination } = loadRows(path);
238
+ rawRowCount += rows.length;
224
239
  sourceInfo.push({
225
240
  file: basename(path),
226
241
  rows: rows.length,
@@ -238,16 +253,21 @@ export const contractLedgerOperations = [
238
253
  for (const row of rows) {
239
254
  if (dedupe) {
240
255
  let key = null;
256
+ // ⚠️ 键**不带字段名前缀**:同一实体在不同窗口/分片可能分别落在
257
+ // `id` / `form_data_id` / `rowKey` / `ebrecord_rowkey`(实测五键同值),
258
+ // 带前缀会把同一行当成两行,去重形同失效(2026-12-01 修复)。
241
259
  for (const field of ['id', 'form_data_id', 'rowKey', 'ebrecord_rowkey']) {
242
260
  const text = cellText(row[field]);
243
261
  if (text) {
244
- key = `${field}|${text}`;
262
+ key = text;
245
263
  break;
246
264
  }
247
265
  }
248
266
  if (key) {
249
- if (seen.has(key))
267
+ if (seen.has(key)) {
268
+ droppedByDedupe += 1;
250
269
  continue;
270
+ }
251
271
  seen.add(key);
252
272
  }
253
273
  }
@@ -259,20 +279,82 @@ export const contractLedgerOperations = [
259
279
  if (truncatedAny) {
260
280
  warnings.push('存在 truncated=true 的来源,当前不是全量;请缩小范围重查,或补齐分页后合并。');
261
281
  }
262
- if (!totalUnknown && !dedupe && totalSum !== allRows.length) {
263
- warnings.push(`台账 total 合计 ${totalSum} 与载入行数 ${allRows.length} 不一致,结果可能不完整。`);
282
+ // 不完整判定按**去重前**的载入行数与 total 比(原先加了 `!dedupe` 条件,
283
+ // 恰好在最可能重复的场景下把唯一的完整性守卫关掉了)。
284
+ if (!totalUnknown && totalSum !== rawRowCount) {
285
+ warnings.push(`台账 total 合计 ${totalSum} 与载入行数 ${rawRowCount} 不一致,结果可能不完整。`);
286
+ }
287
+ if (droppedByDedupe > 0) {
288
+ warnings.push(`按数据 ID 去重丢弃了 ${droppedByDedupe} 行(来源窗口重叠或同页落入两次)。`);
264
289
  }
265
290
  const data = {
266
291
  sources: sourceInfo,
267
292
  sourceCount: sources.length,
268
293
  dedupe,
269
294
  mergedRows: allRows.length,
295
+ rawRows: rawRowCount,
296
+ droppedByDedupe,
270
297
  totalSum: totalUnknown ? null : totalSum,
271
298
  totalUnknown,
272
299
  truncated: truncatedAny,
273
300
  filteredRows: rows.length,
274
301
  warnings,
275
302
  };
303
+ /**
304
+ * 求和:**区分字段粒度**。
305
+ *
306
+ * - `entitySumFields` 里的字段按 `entityKey` 去重(每实体一次、取最大)后求和 —— 合同级字段;
307
+ * - 其余 `sum` 字段照常按行累加 —— 期次级字段。
308
+ * 另做一次**重复实体探测**:同一 `entityKey` 在本次结果里出现多行、又要对合同级字段求和时,
309
+ * 回一条醒目 warning(不静默给数),并给出修正写法。
310
+ */
311
+ const entityKeyOf = (row) => (entityKey.map((field) => cellText(row[field]) || '(空)').join(' / '));
312
+ const sumsOf = (items) => {
313
+ const out = {};
314
+ for (const field of sum) {
315
+ if (entityKey.length && entitySumFields.has(field)) {
316
+ const perEntity = new Map();
317
+ for (const item of items) {
318
+ const key = entityKeyOf(item);
319
+ perEntity.set(key, Math.max(perEntity.get(key) ?? 0, toNumber(item[field])));
320
+ }
321
+ out[field] = Number([...perEntity.values()].reduce((acc, value) => acc + value, 0).toFixed(2));
322
+ }
323
+ else {
324
+ out[field] = Number(items.reduce((acc, item) => acc + toNumber(item[field]), 0).toFixed(2));
325
+ }
326
+ }
327
+ return out;
328
+ };
329
+ const contractLevelFields = sum.filter((field) => entitySumFields.has(field));
330
+ /** 同一合同号出现多行的实体数(用于"未传 entityKey 时"的定向告警,避免对一行一合同的台账刷屏)。 */
331
+ const duplicateEntities = (() => {
332
+ const keyFields = entityKey.length
333
+ ? entityKey
334
+ : (rows.some((row) => cellText(row.hth)) ? ['hth'] : []);
335
+ if (keyFields.length === 0)
336
+ return 0;
337
+ const counter = new Map();
338
+ for (const row of rows) {
339
+ const values = keyFields.map((field) => cellText(row[field]));
340
+ if (values.every((value) => !value))
341
+ continue;
342
+ const key = values.map((value) => value || '(空)').join(' / ');
343
+ counter.set(key, (counter.get(key) ?? 0) + 1);
344
+ }
345
+ return [...counter.values()].filter((count) => count > 1).length;
346
+ })();
347
+ if (duplicateEntities > 0) {
348
+ if (entityKey.length && contractLevelFields.length > 0) {
349
+ warnings.push(`有 ${duplicateEntities} 个实体(${entityKey.join(' / ')})在本次结果里出现多行;`
350
+ + `合同级字段「${contractLevelFields.join(' / ')}」已按实体去重后求和(每实体取一次),其余字段仍按行累加。`);
351
+ }
352
+ else {
353
+ warnings.push(`有 ${duplicateEntities} 个合同号在本次结果里出现多行(同一合同多期/多分片)。`
354
+ + '当前所有求和字段都按**行**累加——若其中含合同级字段(合同总金额 `htzje` / 已收款 `sumsk` 等),'
355
+ + '数值会重复计入;请补 `entityKey:["hth"]` + `entitySumFields:["<合同级字段>"]` 重跑。');
356
+ }
357
+ }
276
358
  if (rows.length > 0) {
277
359
  if (by.length > 0) {
278
360
  const groups = new Map();
@@ -286,22 +368,12 @@ export const contractLedgerOperations = [
286
368
  }
287
369
  const groupList = [...groups.entries()]
288
370
  .sort((a, b) => b[1].length - a[1].length)
289
- .map(([key, items]) => {
290
- const sums = {};
291
- for (const field of sum) {
292
- sums[field] = Number(items.reduce((acc, item) => acc + toNumber(item[field]), 0).toFixed(2));
293
- }
294
- return { key, rows: items.length, sums };
295
- });
371
+ .map(([key, items]) => ({ key, rows: items.length, sums: sumsOf(items) }));
296
372
  data.groups = groupList;
297
373
  data.groupCount = groupList.length;
298
374
  }
299
375
  else {
300
- const sums = {};
301
- for (const field of sum) {
302
- sums[field] = Number(rows.reduce((acc, row) => acc + toNumber(row[field]), 0).toFixed(2));
303
- }
304
- data.totals = { rows: rows.length, sums };
376
+ data.totals = { rows: rows.length, sums: sumsOf(rows) };
305
377
  }
306
378
  if (detail) {
307
379
  data.detail = rows.slice(0, limit).map((row) => ({
@@ -21,12 +21,25 @@ function buildQueryPlan(metric) {
21
21
  note: cond.note ?? null,
22
22
  }));
23
23
  const unresolved = unresolvedMetricFields(metric);
24
+ /**
25
+ * 口径提示 + **执行器分派**(2026-12-01 修复)。
26
+ *
27
+ * 事故:三种聚合方式原先**一律**指向 `contract.ledger.aggregate`,而那个执行器只会"按行求和"——
28
+ * 于是按计划执行「新签客户数(整窗去重)」会得到"行数"、执行「回款率」会得到"分子之和",
29
+ * 与 note 声明的口径不一致(声明与执行器不匹配)。
30
+ * 现在:`sum` → `contract.ledger.aggregate`(并提示合同级字段需传 entityKey/entitySumFields);
31
+ * `countDistinct` / `ratio` → `contract.ledger.stat`(该引擎按整窗去重 / Σ分子÷Σ分母,分母 0 → null)。
32
+ */
33
+ const aggregateOperation = metric.aggregation === 'sum'
34
+ ? 'contract.ledger.aggregate'
35
+ : 'contract.ledger.stat';
24
36
  const aggregateHint = metric.aggregation === 'countDistinct'
25
- ? `取回结果后按「${metric.distinct?.dataKey ?? metric.metricDataKey}」键去重计数(字段「${metric.distinct?.field ?? metric.metricField}」);跨月合计按整窗去重,不是各月相加。`
37
+ ? `取回结果后按「${metric.distinct?.dataKey ?? metric.metricDataKey}」键去重计数(字段「${metric.distinct?.field ?? metric.metricField}」);跨月合计按整窗去重,不是各月相加。⛔ 不要用 contract.ledger.aggregate 的按行求和代替(那是行数,不是客户数)。`
26
38
  : metric.aggregation === 'ratio'
27
- ? `取回结果后按「${metric.ratio?.numerator.dataKey}」求和 ÷「${metric.ratio?.denominator.dataKey}」求和 ×100%,分子分母必须同台账同窗口;分母为 0 返回 null。`
39
+ ? `取回结果后按「${metric.ratio?.numerator.dataKey}」求和 ÷「${metric.ratio?.denominator.dataKey}」求和 ×100%,分子分母必须同台账同窗口;分母为 0 返回 null。⛔ 不要对各月比率求平均,也不要用按行求和的执行器。`
28
40
  : metric.metricDataKey
29
41
  ? `取回结果后按返回行的「${metric.metricDataKey}」键求和(字段「${metric.metricField}」);该键来自 getListDatas 响应 data.columns 的 dataKey,不是字段中文名。`
42
+ + '⚠️ 若该字段是**合同级**(合同总金额 / 已收款等)而同一合同可能出现多行,必须让 aggregate 带上 `entityKey:["hth"]` + `entitySumFields:["<合同级字段>"]`,否则同一合同会被重复计入。'
30
43
  : `取回结果后按「${metric.metricField}」对应返回键求和;键名未登记,先核对非空键再汇总。`;
31
44
  return {
32
45
  operation: 'contract.performance.list.query',
@@ -42,7 +55,7 @@ function buildQueryPlan(metric) {
42
55
  metricFieldKey: metric.metricFieldId ? `field_${metric.metricFieldId}` : null,
43
56
  metricDataKey: metric.metricDataKey,
44
57
  aggregation: metric.aggregation,
45
- aggregateOperation: 'contract.ledger.aggregate',
58
+ aggregateOperation,
46
59
  aggregateHint,
47
60
  unresolvedFields: unresolved,
48
61
  resolveHint: unresolved.length