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
@@ -0,0 +1,123 @@
1
+ import { InvoiceCliError } from './errors.js';
2
+ import { invoiceRecordOf } from './invoice-record.js';
3
+ import { readInvoicePreApprovals } from './preapproval-enrichment.js';
4
+ const EXPENSE_TYPE_TIMEOUT_MS = 5_000;
5
+ const EMPLOYEE_INFO_TIMEOUT_MS = 5_000;
6
+ function employeeEntities(value) {
7
+ if (value === undefined || value === null)
8
+ return [];
9
+ if (!Array.isArray(value))
10
+ throw new Error('人员实体不是数组');
11
+ return value.map(row => {
12
+ const id = typeof row?.id === 'string' ? row.id
13
+ : typeof row?.id === 'number' && Number.isSafeInteger(row.id) ? String(row.id) : null;
14
+ if (id === null || typeof row?.name !== 'string')
15
+ throw new Error('人员实体缺少有效 id / name');
16
+ return { id, name: row.name };
17
+ });
18
+ }
19
+ export async function readInvoiceEmployeeInfo(host, operation) {
20
+ try {
21
+ const session = await host.getSession();
22
+ if (!session.userId)
23
+ throw new Error('缺少当前人员 ID');
24
+ const result = await host.invoiceRequest({
25
+ path: `/api/bs/hrm/card/get/${encodeURIComponent(session.userId)}`,
26
+ method: 'GET',
27
+ query: { id: session.userId, readOnly: true },
28
+ headers: { Referer: `${session.baseUrl.replace(/\/+$/u, '')}/sp/hrm/profileInfo/${encodeURIComponent(session.userId)}` },
29
+ needsInvoiceToken: false,
30
+ timeoutMs: EMPLOYEE_INFO_TIMEOUT_MS,
31
+ operation,
32
+ });
33
+ const succeeded = result?.code !== undefined && result?.code !== null
34
+ ? Number(result.code) === 200 : result?.status === true;
35
+ if (!succeeded)
36
+ throw new Error('人员卡片请求失败');
37
+ const card = result?.data?.data;
38
+ if (!card || typeof card !== 'object' || Array.isArray(card) || Object.keys(card).length === 0) {
39
+ throw new Error('人员卡片缺少业务数据');
40
+ }
41
+ if (card.mobile !== undefined && card.mobile !== null && typeof card.mobile !== 'string') {
42
+ throw new Error('人员手机号不是字符串');
43
+ }
44
+ return {
45
+ info: {
46
+ department: employeeEntities(card.department),
47
+ mobile: card.mobile ?? null,
48
+ location: employeeEntities(card.location),
49
+ },
50
+ warnings: [],
51
+ };
52
+ }
53
+ catch (error) {
54
+ if (error && typeof error === 'object' && 'type' in error && error.type === 'authentication')
55
+ throw error;
56
+ return { info: null, warnings: ['当前人员信息暂不可用,employeeInfo 返回 null;发票结果仍正常返回。'] };
57
+ }
58
+ }
59
+ async function readExpenseTypes(host, operation) {
60
+ try {
61
+ const result = await host.invoiceRequest({
62
+ path: '/api/inc/syncFylx',
63
+ method: 'POST',
64
+ operation,
65
+ timeoutMs: EXPENSE_TYPE_TIMEOUT_MS,
66
+ body: {
67
+ start_pos: 0,
68
+ page_size: 200,
69
+ uc: 0,
70
+ mask: 1023,
71
+ req_base: { trace: String(Date.now()), dev: 1 },
72
+ },
73
+ });
74
+ if (!Array.isArray(result?.infos)) {
75
+ throw new Error('费用类型字典缺少 infos 数组');
76
+ }
77
+ const names = new Map();
78
+ for (const row of result.infos) {
79
+ const id = row?.fyid;
80
+ const name = row?.fyn;
81
+ if ((typeof id === 'string' || typeof id === 'number') && typeof name === 'string' && name.trim()) {
82
+ names.set(String(id), name);
83
+ }
84
+ }
85
+ return { names, warnings: [] };
86
+ }
87
+ catch (error) {
88
+ // 认证错误仍按原契约处理;辅助字典故障不丢弃已成功读取的发票。
89
+ if (error instanceof InvoiceCliError && error.type === 'authentication')
90
+ throw error;
91
+ return { names: null, warnings: ['费用类型字典暂不可用,fyn 返回 null;发票和相关凭证仍正常返回。'] };
92
+ }
93
+ }
94
+ /** 列表/详情主请求、费用字典和当前人员卡片并行;整批各查一次,不逐票补查。 */
95
+ export async function readInvoicesWithMetadata(host, request, options = {}) {
96
+ if (options.includePreApprovals !== undefined && typeof options.includePreApprovals !== 'boolean') {
97
+ throw new InvoiceCliError('validation', 'input_invalid', 'includePreApprovals 必须是布尔值');
98
+ }
99
+ const [response, types, employee] = await Promise.all([
100
+ host.invoiceRequest(request),
101
+ readExpenseTypes(host, request.operation),
102
+ readInvoiceEmployeeInfo(host, request.operation),
103
+ ]);
104
+ const missing = new Set();
105
+ const infos = Array.isArray(response?.infos) ? response.infos : [];
106
+ for (const wrapper of infos) {
107
+ const record = invoiceRecordOf(wrapper);
108
+ const id = record.fylx === undefined || record.fylx === null ? '' : String(record.fylx);
109
+ record.fyn = types.names?.get(id) ?? null;
110
+ record.travel_ids = Array.isArray(record.travel_ids) ? record.travel_ids : [];
111
+ if (id && types.names && record.fyn === null)
112
+ missing.add(id);
113
+ }
114
+ if (missing.size) {
115
+ types.warnings.push(`费用类型字典未匹配 ${missing.size} 个 ID:${[...missing].slice(0, 10).join('、')};对应 fyn 返回 null。`);
116
+ }
117
+ const approval = await readInvoicePreApprovals(host, {
118
+ operation: request.operation,
119
+ invoices: infos,
120
+ includePreApprovals: options.includePreApprovals,
121
+ });
122
+ return { response, employeeInfo: employee.info, preApprovals: approval.preApprovals, warnings: [...types.warnings, ...employee.warnings, ...approval.warnings] };
123
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * 破坏性写入的确认门禁(destructive-only confirm gate)。
3
+ *
4
+ * 口径(2026-11-27):
5
+ * - **只拦「会覆盖已有数据」的写入**;新增 / 追加不拦 —— 否则每次写都要多一轮对话(小E 上一轮实测 ≈14s)。
6
+ * - 判断依据是 **CLI 自己读到的现状**,不是调用方的声明。调用方没传 `confirm:true` 且确属覆盖 → 直接拒绝,
7
+ * 一个字段都不写。
8
+ * - 拒绝时把「现状 → 将变成」写进 message 与 details,模型可以原样转述,用户不必再去查一遍。
9
+ *
10
+ * 边界:CLI 只能证明「模型看到了现状」,证明不了「用户点了同意」——模型完全可以自己补 `confirm:true`。
11
+ * 真正的用户确认在平台侧(小E ask_user / E10 二次弹窗),这里防的是误操作。
12
+ */
13
+ import { meetingValidationError } from './errors.js';
14
+ /**
15
+ * 纯函数:决定是否放行。不读环境、不抛错,便于单测。
16
+ */
17
+ export function decideDestructiveConfirm(input) {
18
+ if (!input.destructive)
19
+ return { allow: true, reason: 'not_destructive' };
20
+ if (input.confirm === true)
21
+ return { allow: true, reason: 'confirmed' };
22
+ const details = (Array.isArray(input.details) ? input.details : []).filter((line) => line !== '');
23
+ const tail = details.length > 0 ? `\n现状:\n- ${details.join('\n- ')}` : '';
24
+ return {
25
+ allow: false,
26
+ reason: 'need_confirm',
27
+ message: `${input.action}:会覆盖已有数据,必须显式传 confirm: true 才会执行。本次未做任何改动。${tail}`,
28
+ details,
29
+ };
30
+ }
31
+ /**
32
+ * 需要门禁的调用点直接调它:放行则返回,需确认则抛 `confirm_required`。
33
+ */
34
+ export function requireDestructiveConfirm(input) {
35
+ const decision = decideDestructiveConfirm(input);
36
+ if (decision.allow)
37
+ return;
38
+ throw meetingValidationError('confirm_required', decision.message, {
39
+ action: input.action,
40
+ details: decision.details,
41
+ });
42
+ }
@@ -50,8 +50,12 @@ export function createMeetingContinuationSigner(ctx) {
50
50
  const expected = signature(body, await loadKey(ctx));
51
51
  const valid = provided.length === expected.length
52
52
  && timingSafeEqual(Buffer.from(provided), Buffer.from(expected));
53
- if (!valid)
54
- throw meetingValidationError('continuation_invalid', 'continuation 签名校验失败');
53
+ if (!valid) {
54
+ // 真实故障(2026-11-30):模型把 4KB 的长 token 抄进命令时被截断/改写(payload 里的
55
+ // fingerprint 被换成 "x"),验签必然失败。这里直接把"该怎么办"写进错误里,别让它反复重试长串。
56
+ throw meetingValidationError('continuation_invalid', `continuation 签名校验失败(凭证被截断或改写,长度 ${body.length + provided.length + 1})。`
57
+ + '改用 prepare 返回的 continuationId(8 位)重试,不要手抄长 token');
58
+ }
55
59
  let value;
56
60
  try {
57
61
  value = JSON.parse(Buffer.from(body, 'base64url').toString('utf8'));
@@ -14,13 +14,54 @@ function esc(text) {
14
14
  .replace(/"/g, '"');
15
15
  }
16
16
  function para(text, options = {}) {
17
+ const spacing = [];
18
+ if (options.before !== undefined)
19
+ spacing.push(`w:before="${options.before}"`);
20
+ if (options.after !== undefined)
21
+ spacing.push(`w:after="${options.after}"`);
22
+ if (options.line !== undefined)
23
+ spacing.push(`w:line="${options.line}"`, 'w:lineRule="auto"');
17
24
  const props = [
25
+ spacing.length > 0 ? `<w:spacing ${spacing.join(' ')}/>` : '',
18
26
  options.bold ? '<w:b/>' : '',
19
27
  options.size ? `<w:sz w:val="${options.size}"/><w:szCs w:val="${options.size}"/>` : '',
20
28
  options.align ? `<w:jc w:val="${options.align}"/>` : '',
21
29
  ].join('');
22
30
  return `<w:p><w:pPr>${props}</w:pPr><w:r><w:t xml:space="preserve">${esc(text)}</w:t></w:r></w:p>`;
23
31
  }
32
+ /** 把 `| a | b |` 切成单元格文本(去掉首尾竖线与空单元格)。 */
33
+ function splitRow(line) {
34
+ return line.trim().replace(/^\|/, '').replace(/\|$/, '').split('|').map((cell) => cell.trim());
35
+ }
36
+ /**
37
+ * markdown 表格 → Word 表格。
38
+ * 以前整表按段落输出,打开就是一堆竖线(看着像 md),纪要文件里不可读。
39
+ */
40
+ function table(rows, cellSize = 20) {
41
+ const cols = Math.max(...rows.map((row) => row.length), 1);
42
+ const totalWidth = 9026;
43
+ const cellWidth = Math.floor(totalWidth / cols);
44
+ const border = '<w:tblBorders>'
45
+ + ['top', 'left', 'bottom', 'right', 'insideH', 'insideV']
46
+ .map((side) => `<w:${side} w:val="single" w:sz="4" w:space="0" w:color="000000"/>`)
47
+ .join('')
48
+ + '</w:tblBorders>';
49
+ const body = rows.map((row, rowIndex) => {
50
+ const cells = Array.from({ length: cols }, (_, colIndex) => {
51
+ const text = row[colIndex] ?? '';
52
+ const isHeader = rowIndex === 0;
53
+ return '<w:tc><w:tcPr>'
54
+ + `<w:tcW w:w="${cellWidth}" w:type="dxa"/>`
55
+ + '<w:vAlign w:val="center"/>'
56
+ + '</w:tcPr>'
57
+ + para(text, { bold: isHeader, size: cellSize })
58
+ + '</w:tc>';
59
+ }).join('');
60
+ return `<w:tr>${cells}</w:tr>`;
61
+ }).join('');
62
+ return `<w:tbl><w:tblPr><w:tblW w:w="${totalWidth}" w:type="dxa"/>${border}</w:tblPr>${body}</w:tbl>`
63
+ + para('', { size: cellSize + 1 });
64
+ }
24
65
  const CONTENT_TYPES = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
25
66
  <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
26
67
  <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
@@ -31,31 +72,60 @@ const RELS = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
31
72
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
32
73
  <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
33
74
  </Relationships>`;
34
- export function buildMinuteDocx(input) {
75
+ const DEFAULT_BODY_SIZES = { body: 21, heading: 28, cell: 20 };
76
+ /**
77
+ * 把 markdown 正文渲染成 Word 段落/表格 XML。
78
+ * 字号可传:模板渲染(templates/meeting/minute.docx,正文 22 / 标题 32)与旧的最小包(21 / 28)共用同一段逻辑。
79
+ */
80
+ export function buildBodyParagraphsXml(content, sizes = DEFAULT_BODY_SIZES) {
35
81
  const body = [];
36
- body.push(para(input.title, { bold: true, size: 36, align: 'center' }));
37
- for (const line of input.meta) {
38
- if (String(line).trim() !== '')
39
- body.push(para(line, { size: 21 }));
40
- }
41
- body.push(para('', { size: 21 }));
42
- for (const raw of String(input.content ?? '').split(/\r?\n/)) {
43
- const line = raw.replace(/\s+$/, '');
82
+ const lines = String(content ?? '').split(/\r?\n/);
83
+ for (let i = 0; i < lines.length; i += 1) {
84
+ const line = lines[i].replace(/\s+$/, '');
44
85
  if (line.trim() === '') {
45
- body.push(para('', { size: 21 }));
86
+ body.push(para('', { size: sizes.body, after: 0 }));
87
+ continue;
88
+ }
89
+ // markdown 表格:| a | b | 紧跟 |---|---| 才算,整块渲染成 Word 表格
90
+ const isRow = /^\s*\|.*\|\s*$/.test(line);
91
+ const isSep = /^\s*\|[\s:|-]+\|\s*$/.test(lines[i + 1] ?? '');
92
+ if (isRow && isSep) {
93
+ const rows = [splitRow(line)];
94
+ i += 1;
95
+ while (i + 1 < lines.length && /^\s*\|.*\|\s*$/.test(lines[i + 1])) {
96
+ i += 1;
97
+ rows.push(splitRow(lines[i]));
98
+ }
99
+ body.push(table(rows, sizes.cell));
46
100
  continue;
47
101
  }
48
102
  const heading = line.match(/^#{1,4}\s+(.*)$/);
49
103
  if (heading) {
50
- body.push(para(heading[1], { bold: true, size: 28 }));
104
+ // 标题给段前距,正文给段后距 + 1.5 倍行距:不给间距时整篇挤成一坨(用户反馈"文件很丑")
105
+ body.push(para(heading[1], { bold: true, size: sizes.heading, before: 240, after: 120, line: 300 }));
51
106
  continue;
52
107
  }
53
- body.push(para(line.replace(/^[-*]\s+/, '· '), { size: 21 }));
108
+ body.push(para(line.replace(/^[-*]\s+/, '· '), { size: sizes.body, after: 80, line: 360 }));
109
+ }
110
+ return body.join('');
111
+ }
112
+ export function buildMinuteDocumentXml(input) {
113
+ const body = [];
114
+ body.push(para(input.title, { bold: true, size: 36, align: 'center' }));
115
+ for (const line of input.meta) {
116
+ if (String(line).trim() !== '')
117
+ body.push(para(line, { size: 21 }));
54
118
  }
119
+ body.push(para('', { size: 21 }));
120
+ body.push(buildBodyParagraphsXml(String(input.content ?? '')));
55
121
  const documentXml = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
56
122
  <w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
57
123
  <w:body>${body.join('')}<w:sectPr><w:pgSz w:w="11906" w:h="16838"/><w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440"/></w:sectPr></w:body>
58
124
  </w:document>`;
125
+ return documentXml;
126
+ }
127
+ export function buildMinuteDocx(input) {
128
+ const documentXml = buildMinuteDocumentXml(input);
59
129
  const entries = [
60
130
  { name: '[Content_Types].xml', data: Buffer.from(CONTENT_TYPES, 'utf8') },
61
131
  { name: '_rels/.rels', data: Buffer.from(RELS, 'utf8') },
@@ -67,6 +137,43 @@ export function buildMinuteDocx(input) {
67
137
  * 生成 docx → 上传 → 回写纪要的 doc_file / mt_minutes → 回读校验。
68
138
  * create / writeContent / fromGroupChat 三条路径共用,避免再漏某一条。
69
139
  */
140
+ /** 租户级「保存解析并生成文档」动作流 id(服务端生成标准纪要文档,回写 mt_minutes)。 */
141
+ const FLOW_GENERATE_DOCUMENT = '1F638AE31BC746C28A1D9DCF26D91037';
142
+ /**
143
+ * 走 ESB 生成标准纪要文档(与群聊链路同一条动作流)。
144
+ * 成功返回 docId;失败返回 error,由调用方决定是否回退本地 docx。
145
+ */
146
+ export async function generateMinuteDocViaEsb(env, input) {
147
+ const id = String(input.id ?? '').trim();
148
+ const content = String(input.content ?? '').trim();
149
+ if (!id)
150
+ return { docId: '', error: 'missing_minute_id' };
151
+ if (!content)
152
+ return { docId: '', error: 'empty_content' };
153
+ try {
154
+ const session = await env.host.getSession();
155
+ const employeeId = String(session?.userId ?? '').trim();
156
+ if (!employeeId)
157
+ return { docId: '', error: 'no_employee_id' };
158
+ const flowId = String(input.flowId ?? '').trim() || FLOW_GENERATE_DOCUMENT;
159
+ const { createEsbHost } = await import('../esb/host.js');
160
+ const { createEsbContinuationSigner } = await import('../esb/continuation.js');
161
+ const { getEsbOperation } = await import('../esb/operations/registry.js');
162
+ const esbEnv = {
163
+ ctx: env.ctx,
164
+ host: createEsbHost(env.ctx),
165
+ continuation: createEsbContinuationSigner(env.ctx),
166
+ };
167
+ const target = /^\d+$/.test(flowId) ? { esbFlowId: flowId } : { uniqueIndent: flowId };
168
+ const prepared = await getEsbOperation('esb.trigger.prepare').handler({ employeeId, ...target, customParams: { mainTable: { parse_content: content, mt_minute_id: id } } }, esbEnv);
169
+ const applied = await getEsbOperation('esb.trigger.apply').handler({ continuation: prepared?.data?.continuation, confirm: true }, esbEnv);
170
+ const docId = String(applied?.data?.actionData?.responseData?.customData?.mainTable?.wdID ?? '').trim();
171
+ return docId ? { docId } : { docId: '', error: 'esb_returned_no_wdid' };
172
+ }
173
+ catch (error) {
174
+ return { docId: '', error: String(error?.message ?? error).slice(0, 160) };
175
+ }
176
+ }
70
177
  /** 文件名净化:Windows 非法字符(尤其时间里的冒号)会让上传预检直接失败。 */
71
178
  export function safeDocxName(subject) {
72
179
  return String(subject ?? '')
@@ -24,6 +24,7 @@ import { createReadStream } from 'node:fs';
24
24
  import { readFile, stat } from 'node:fs/promises';
25
25
  import { extname, resolve } from 'node:path';
26
26
  import { meetingValidationError } from '../errors.js';
27
+ import { requireDestructiveConfirm } from '../confirm-gate.js';
27
28
  import { meetingSuccess, SCHEMA_ID } from './types.js';
28
29
  import { listMeetingAttachments } from './attachment-content.js';
29
30
  /** 超过这个大小就别读了 —— `readFile` 会把整个文件压进内存。 */
@@ -338,6 +339,11 @@ const meetingAttachmentAttach = {
338
339
  items: { type: 'string' },
339
340
  description: '可选:显式指定“现有附件 id”。不传时 CLI 自己读,通常不需要填',
340
341
  },
342
+ confirm: {
343
+ type: 'boolean',
344
+ description: '只有 mode="replace" 且会议已有附件时才需要:不传会被拒绝(confirm_required),'
345
+ + '因为那会覆盖整份附件列表。append 天然不需要',
346
+ },
341
347
  },
342
348
  required: ['id'],
343
349
  },
@@ -380,6 +386,19 @@ const meetingAttachmentAttach = {
380
386
  if (mode === 'append' && existingIds.length === 0) {
381
387
  existingIds.push(...beforeIds);
382
388
  }
389
+ // replace 会把 mt_accessorys 整份换成本次这一个文件 —— 已有附件时必须先确认,
390
+ // 否则"补传一个附件"被写成 replace 就是一次性清空别人的附件(不可逆)。
391
+ if (mode === 'replace' && beforeIds.length > 0) {
392
+ requireDestructiveConfirm({
393
+ confirm: args.confirm,
394
+ destructive: true,
395
+ action: '用本次文件覆盖会议附件列表',
396
+ details: [
397
+ `现有附件 ${beforeIds.length} 个${beforeIds.length > 0 ? `:${beforeIds.slice(0, 5).join('、')}${beforeIds.length > 5 ? ' 等' : ''}` : ''}`,
398
+ `覆盖后这份列表里只剩本次这 1 个文件`,
399
+ ],
400
+ });
401
+ }
383
402
  const { getMeetingOperation } = await import('./registry.js');
384
403
  const list = getMeetingOperation('meeting.eb.meeting.list');
385
404
  // 1) 需要的话先上传(带 refId 绑定到该会议)
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import { meetingSuccess } from './types.js';
9
9
  import { meetingValidationError } from '../errors.js';
10
+ import { requireDestructiveConfirm } from '../confirm-gate.js';
10
11
  import { meetingUrlMap } from './eb/meeting-link.js';
11
12
  const composeOutcome = {
12
13
  name: 'meeting.outcome.compose',
@@ -21,7 +22,11 @@ const composeOutcome = {
21
22
  type: 'object',
22
23
  additionalProperties: false,
23
24
  properties: {
24
- confirm: { type: 'boolean', description: '可省略(默认 true);传 false 才阻止写入' },
25
+ confirm: {
26
+ type: 'boolean',
27
+ description: '可省略:首次写入(同名纪要不存在)不需要;**要覆盖已存在的同名纪要时必须显式传 true**,'
28
+ + '否则被拒绝(confirm_required)并给出"现有多少字 → 替换成多少字"。传 false 直接阻止写入',
29
+ },
25
30
  mt_id: { type: 'string', description: '会议 id;与 mt_name/date 二选一' },
26
31
  mt_name: { type: 'string', description: '会议名称关键词(可省略 mt_id,CLI 自动解析)' },
27
32
  date: { type: 'string', description: '会议日期 yyyy-MM-dd,配合 mt_name/date 解析用' },
@@ -98,7 +103,24 @@ const composeOutcome = {
98
103
  let minuteId = '';
99
104
  let minuteDoc = null;
100
105
  if (existing?.id) {
101
- const written = await getMeetingOperation('meeting.minute.writeContent').handler({ id: String(existing.id), mt_id: mtId, minutes_content: String(args.minutes_content ?? ''), with_doc: true }, env);
106
+ // 同名纪要已存在 ⇒ 这次是**覆盖更新**(不是新增):先确认,再写。
107
+ requireDestructiveConfirm({
108
+ confirm: args.confirm,
109
+ destructive: true,
110
+ action: `覆盖已存在的同名纪要「${subject}」`,
111
+ details: [
112
+ `已有纪要 id ${String(existing.id)}(标题「${String(existing.mt_minutes_subject ?? subject)}」)`,
113
+ `原文:现有 ${String(existing.minutes_content ?? '').length} 字 → 将替换为 ${String(args.minutes_content ?? '').length} 字`,
114
+ '同时会重新生成纪要文档并回写「纪要文件」',
115
+ ],
116
+ });
117
+ const written = await getMeetingOperation('meeting.minute.writeContent').handler({
118
+ id: String(existing.id),
119
+ mt_id: mtId,
120
+ minutes_content: String(args.minutes_content ?? ''),
121
+ with_doc: true,
122
+ confirm: true,
123
+ }, env);
102
124
  minuteId = String(existing.id);
103
125
  minuteDoc = (written?.data?.minuteDoc ?? null);
104
126
  for (const w of (written?.warnings ?? []))
@@ -539,7 +539,8 @@ const ebConflictRoom = {
539
539
  resource: 'eb',
540
540
  method: 'meeting.eb.conflict.room',
541
541
  action: 'meeting.eb.conflict.room',
542
- summary: 'EB 版会议室冲突检测(query_roomusage_list 查该会议室时段内占用):按应用设置 room_conflict_chk/room_conflict 给出 verdict',
542
+ summary: 'EB 版会议室冲突检测(query_roomusage_list 查该会议室时段内占用):按应用设置 room_conflict_chk/room_conflict 给出 verdict。'
543
+ + '只用于「只问不建」;用户要建会请直接 create.flow.prepare —— 它内部判冲突,被占会自动换房并给出替代房',
543
544
  capability: 'eb.conflict',
544
545
  risk: 'read',
545
546
  inputSchema: {