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
@@ -11,7 +11,7 @@ import {
11
11
  createE10RequestRuntime,
12
12
  isE10SessionExpiredResponse,
13
13
  requireE10Session
14
- } from "./chunk-MXCRKXOP.js";
14
+ } from "./chunk-FPWCCRKT.js";
15
15
  import {
16
16
  E10_SESSION_EXPIRED_MESSAGE
17
17
  } from "./chunk-IZCQU5D5.js";
@@ -18,13 +18,13 @@ import {
18
18
  } from "./chunk-AJ62BGAW.js";
19
19
  import {
20
20
  updateCommand
21
- } from "./chunk-SU6IJD6D.js";
21
+ } from "./chunk-TD5IOEGN.js";
22
22
  import {
23
23
  registerE10AuthCommands
24
- } from "./chunk-BNKUHN4N.js";
24
+ } from "./chunk-OVTCWLNQ.js";
25
25
  import {
26
26
  requireE10Session
27
- } from "./chunk-MXCRKXOP.js";
27
+ } from "./chunk-FPWCCRKT.js";
28
28
  import {
29
29
  E10AuthSession,
30
30
  findAuthFile,
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-WMRNO6IU.js";
6
6
  import {
7
7
  meetingStateDir
8
- } from "./chunk-I6NOHKEK.js";
8
+ } from "./chunk-7SQN5IZR.js";
9
9
  import {
10
10
  SCHEMA_ID,
11
11
  meetingSuccess,
12
12
  meetingValidationError,
13
13
  schemaOf
14
- } from "./chunk-ERZY6GYL.js";
14
+ } from "./chunk-UZ2E3VNI.js";
15
15
 
16
16
  // src/shortcuts/meeting/operations/attachment-content.ts
17
17
  import { mkdir, writeFile } from "node:fs/promises";
@@ -3,13 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  readCache,
5
5
  writeCache
6
- } from "./chunk-NWYHCZTY.js";
6
+ } from "./chunk-VNEU7OUN.js";
7
7
  import {
8
8
  SCHEMA_DATETIME_MINUTE,
9
9
  meetingSuccess,
10
10
  meetingValidationError,
11
11
  schemaOf
12
- } from "./chunk-ERZY6GYL.js";
12
+ } from "./chunk-UZ2E3VNI.js";
13
13
 
14
14
  // src/shortcuts/meeting/operations/eb/schedule.ts
15
15
  var SCHEDULE_TYPE_PATH = "/api/ebuilder/form/formdata/v2/getFormDataList/queryAgendaType";
@@ -110,9 +110,9 @@ async function runScheduleConflictFlow(env, input) {
110
110
  if (!employeeId) {
111
111
  throw meetingValidationError("schedule_employee_required", "\u53D6\u4E0D\u5230\u5F53\u524D\u767B\u5F55\u7528\u6237 id\uFF0C\u65E0\u6CD5\u89E6\u53D1 ESB \u65E5\u7A0B\u67E5\u8BE2");
112
112
  }
113
- const { createEsbHost } = await import("./host-KUMU3DDK.js");
113
+ const { createEsbHost } = await import("./host-EJSJSLVK.js");
114
114
  const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
115
- const { getEsbOperation } = await import("./registry-TJGCVRCW.js");
115
+ const { getEsbOperation } = await import("./registry-3VTB3KLV.js");
116
116
  const esbEnv = {
117
117
  ctx: env.ctx,
118
118
  host: createEsbHost(env.ctx),
@@ -562,7 +562,7 @@ ${baseUrl}`;
562
562
  }
563
563
  var workBuddyLoginInFlight = /* @__PURE__ */ new Map();
564
564
  async function recoverWorkBuddyAuthSession(ctx, login = async (context, options) => {
565
- const { runBrowserLogin } = await import("./commands-BNWFNTD3.js");
565
+ const { runBrowserLogin } = await import("./commands-J52MJ6NF.js");
566
566
  const previousMachineMode = context.logger.machineMode;
567
567
  context.logger.machineMode = true;
568
568
  try {
@@ -3,20 +3,42 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  writeDocxEntries
5
5
  } from "./chunk-WMRNO6IU.js";
6
- import "./chunk-BUSC6UAE.js";
7
6
 
8
7
  // src/shortcuts/meeting/minute-doc.ts
9
8
  function esc(text) {
10
9
  return String(text ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
11
10
  }
12
11
  function para(text, options = {}) {
12
+ const spacing = [];
13
+ if (options.before !== void 0) spacing.push(`w:before="${options.before}"`);
14
+ if (options.after !== void 0) spacing.push(`w:after="${options.after}"`);
15
+ if (options.line !== void 0) spacing.push(`w:line="${options.line}"`, 'w:lineRule="auto"');
13
16
  const props = [
17
+ spacing.length > 0 ? `<w:spacing ${spacing.join(" ")}/>` : "",
14
18
  options.bold ? "<w:b/>" : "",
15
19
  options.size ? `<w:sz w:val="${options.size}"/><w:szCs w:val="${options.size}"/>` : "",
16
20
  options.align ? `<w:jc w:val="${options.align}"/>` : ""
17
21
  ].join("");
18
22
  return `<w:p><w:pPr>${props}</w:pPr><w:r><w:t xml:space="preserve">${esc(text)}</w:t></w:r></w:p>`;
19
23
  }
24
+ function splitRow(line) {
25
+ return line.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((cell) => cell.trim());
26
+ }
27
+ function table(rows, cellSize = 20) {
28
+ const cols = Math.max(...rows.map((row) => row.length), 1);
29
+ const totalWidth = 9026;
30
+ const cellWidth = Math.floor(totalWidth / cols);
31
+ const border = "<w:tblBorders>" + ["top", "left", "bottom", "right", "insideH", "insideV"].map((side) => `<w:${side} w:val="single" w:sz="4" w:space="0" w:color="000000"/>`).join("") + "</w:tblBorders>";
32
+ const body = rows.map((row, rowIndex) => {
33
+ const cells = Array.from({ length: cols }, (_, colIndex) => {
34
+ const text = row[colIndex] ?? "";
35
+ const isHeader = rowIndex === 0;
36
+ return `<w:tc><w:tcPr><w:tcW w:w="${cellWidth}" w:type="dxa"/><w:vAlign w:val="center"/></w:tcPr>` + para(text, { bold: isHeader, size: cellSize }) + "</w:tc>";
37
+ }).join("");
38
+ return `<w:tr>${cells}</w:tr>`;
39
+ }).join("");
40
+ return `<w:tbl><w:tblPr><w:tblW w:w="${totalWidth}" w:type="dxa"/>${border}</w:tblPr>${body}</w:tbl>` + para("", { size: cellSize + 1 });
41
+ }
20
42
  var CONTENT_TYPES = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
21
43
  <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
22
44
  <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
@@ -27,30 +49,53 @@ var RELS = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
27
49
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
28
50
  <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
29
51
  </Relationships>`;
30
- function buildMinuteDocx(input) {
52
+ var DEFAULT_BODY_SIZES = { body: 21, heading: 28, cell: 20 };
53
+ function buildBodyParagraphsXml(content, sizes = DEFAULT_BODY_SIZES) {
31
54
  const body = [];
32
- body.push(para(input.title, { bold: true, size: 36, align: "center" }));
33
- for (const line of input.meta) {
34
- if (String(line).trim() !== "") body.push(para(line, { size: 21 }));
35
- }
36
- body.push(para("", { size: 21 }));
37
- for (const raw of String(input.content ?? "").split(/\r?\n/)) {
38
- const line = raw.replace(/\s+$/, "");
55
+ const lines = String(content ?? "").split(/\r?\n/);
56
+ for (let i = 0; i < lines.length; i += 1) {
57
+ const line = lines[i].replace(/\s+$/, "");
39
58
  if (line.trim() === "") {
40
- body.push(para("", { size: 21 }));
59
+ body.push(para("", { size: sizes.body, after: 0 }));
60
+ continue;
61
+ }
62
+ const isRow = /^\s*\|.*\|\s*$/.test(line);
63
+ const isSep = /^\s*\|[\s:|-]+\|\s*$/.test(lines[i + 1] ?? "");
64
+ if (isRow && isSep) {
65
+ const rows = [splitRow(line)];
66
+ i += 1;
67
+ while (i + 1 < lines.length && /^\s*\|.*\|\s*$/.test(lines[i + 1])) {
68
+ i += 1;
69
+ rows.push(splitRow(lines[i]));
70
+ }
71
+ body.push(table(rows, sizes.cell));
41
72
  continue;
42
73
  }
43
74
  const heading = line.match(/^#{1,4}\s+(.*)$/);
44
75
  if (heading) {
45
- body.push(para(heading[1], { bold: true, size: 28 }));
76
+ body.push(para(heading[1], { bold: true, size: sizes.heading, before: 240, after: 120, line: 300 }));
46
77
  continue;
47
78
  }
48
- body.push(para(line.replace(/^[-*]\s+/, "\xB7 "), { size: 21 }));
79
+ body.push(para(line.replace(/^[-*]\s+/, "\xB7 "), { size: sizes.body, after: 80, line: 360 }));
80
+ }
81
+ return body.join("");
82
+ }
83
+ function buildMinuteDocumentXml(input) {
84
+ const body = [];
85
+ body.push(para(input.title, { bold: true, size: 36, align: "center" }));
86
+ for (const line of input.meta) {
87
+ if (String(line).trim() !== "") body.push(para(line, { size: 21 }));
49
88
  }
89
+ body.push(para("", { size: 21 }));
90
+ body.push(buildBodyParagraphsXml(String(input.content ?? "")));
50
91
  const documentXml = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
51
92
  <w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
52
93
  <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>
53
94
  </w:document>`;
95
+ return documentXml;
96
+ }
97
+ function buildMinuteDocx(input) {
98
+ const documentXml = buildMinuteDocumentXml(input);
54
99
  const entries = [
55
100
  { name: "[Content_Types].xml", data: Buffer.from(CONTENT_TYPES, "utf8") },
56
101
  { name: "_rels/.rels", data: Buffer.from(RELS, "utf8") },
@@ -58,6 +103,40 @@ function buildMinuteDocx(input) {
58
103
  ];
59
104
  return writeDocxEntries(entries);
60
105
  }
106
+ var FLOW_GENERATE_DOCUMENT = "1F638AE31BC746C28A1D9DCF26D91037";
107
+ async function generateMinuteDocViaEsb(env, input) {
108
+ const id = String(input.id ?? "").trim();
109
+ const content = String(input.content ?? "").trim();
110
+ if (!id) return { docId: "", error: "missing_minute_id" };
111
+ if (!content) return { docId: "", error: "empty_content" };
112
+ try {
113
+ const session = await env.host.getSession();
114
+ const employeeId = String(session?.userId ?? "").trim();
115
+ if (!employeeId) return { docId: "", error: "no_employee_id" };
116
+ const flowId = String(input.flowId ?? "").trim() || FLOW_GENERATE_DOCUMENT;
117
+ const { createEsbHost } = await import("./host-EJSJSLVK.js");
118
+ const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
119
+ const { getEsbOperation } = await import("./registry-3VTB3KLV.js");
120
+ const esbEnv = {
121
+ ctx: env.ctx,
122
+ host: createEsbHost(env.ctx),
123
+ continuation: createEsbContinuationSigner(env.ctx)
124
+ };
125
+ const target = /^\d+$/.test(flowId) ? { esbFlowId: flowId } : { uniqueIndent: flowId };
126
+ const prepared = await getEsbOperation("esb.trigger.prepare").handler(
127
+ { employeeId, ...target, customParams: { mainTable: { parse_content: content, mt_minute_id: id } } },
128
+ esbEnv
129
+ );
130
+ const applied = await getEsbOperation("esb.trigger.apply").handler(
131
+ { continuation: prepared?.data?.continuation, confirm: true },
132
+ esbEnv
133
+ );
134
+ const docId = String(applied?.data?.actionData?.responseData?.customData?.mainTable?.wdID ?? "").trim();
135
+ return docId ? { docId } : { docId: "", error: "esb_returned_no_wdid" };
136
+ } catch (error) {
137
+ return { docId: "", error: String(error?.message ?? error).slice(0, 160) };
138
+ }
139
+ }
61
140
  function safeDocxName(subject) {
62
141
  return String(subject ?? "").replace(/[\\/:*?"<>|]+/g, "-").replace(/\s+/g, " ").trim().slice(0, 80) || "\u4F1A\u8BAE\u7EAA\u8981";
63
142
  }
@@ -65,8 +144,8 @@ async function ensureMinuteDoc(env, input) {
65
144
  const id = String(input.id ?? "").trim();
66
145
  const mtId = String(input.mtId ?? "").trim();
67
146
  if (!id || !mtId) return null;
68
- const { getMeetingOperation } = await import("./registry-NBTBXR4L.js");
69
- const { meetingStateDir } = await import("./env-ZAQZ7EHN.js");
147
+ const { getMeetingOperation } = await import("./registry-UVTI323K.js");
148
+ const { meetingStateDir } = await import("./env-DASBNSEM.js");
70
149
  const { mkdir, writeFile } = await import("node:fs/promises");
71
150
  const { join } = await import("node:path");
72
151
  const subject = String(input.subject ?? "").trim() || `\u4F1A\u8BAE\u7EAA\u8981-${mtId}`;
@@ -89,8 +168,8 @@ async function ensureMinuteDoc(env, input) {
89
168
  let docId = "";
90
169
  let docError = "";
91
170
  try {
92
- const { executeCaizhilianOperation } = await import("./operations-V5VM5MS2.js");
93
- const { createCaizhilianHost } = await import("./host-T6NNQGVZ.js");
171
+ const { executeCaizhilianOperation } = await import("./operations-4P2UYVLH.js");
172
+ const { createCaizhilianHost } = await import("./host-OT4KNR3G.js");
94
173
  const { createCaizhilianContinuationSigner } = await import("./continuation-GW6PRWK3.js");
95
174
  const caizhilianEnv = {
96
175
  ctx: env.ctx,
@@ -149,8 +228,12 @@ async function ensureMinuteDoc(env, input) {
149
228
  attached: String(row.doc_file ?? "") === fileId && (docId === "" || String(row.mt_minutes ?? "").includes(docId))
150
229
  };
151
230
  }
231
+
152
232
  export {
233
+ buildBodyParagraphsXml,
234
+ buildMinuteDocumentXml,
153
235
  buildMinuteDocx,
154
- ensureMinuteDoc,
155
- safeDocxName
236
+ generateMinuteDocViaEsb,
237
+ safeDocxName,
238
+ ensureMinuteDoc
156
239
  };
@@ -202,6 +202,7 @@ var UpdateStore = class {
202
202
 
203
203
  // src/internal/update/service.ts
204
204
  var NAME = "weaver-work-cli";
205
+ var UPDATE_REGISTRY = "https://registry.npmmirror.com/";
205
206
  var CHECK_TIMEOUT_MS = 3e3;
206
207
  var INSTALL_TIMEOUT_MS = 12e4;
207
208
  var UpdateService = class {
@@ -239,7 +240,7 @@ var UpdateService = class {
239
240
  } catch {
240
241
  throw new Error("\u65E0\u6CD5\u8BFB\u53D6 npm \u5B89\u88C5\u914D\u7F6E\uFF0C\u8BF7\u68C0\u67E5 npm \u662F\u5426\u53EF\u7528\u3002");
241
242
  }
242
- if (typeof config.prefix !== "string" || typeof config.registry !== "string") throw new Error("\u65E0\u6CD5\u8BC6\u522B npm \u5B89\u88C5\u914D\u7F6E\u3002");
243
+ if (typeof config.prefix !== "string") throw new Error("\u65E0\u6CD5\u8BC6\u522B npm \u5B89\u88C5\u914D\u7F6E\u3002");
243
244
  const prefix = resolve2(config.prefix);
244
245
  const expected = process.platform === "win32" ? join3(prefix, "node_modules", NAME) : join3(prefix, "lib", "node_modules", NAME);
245
246
  let matches = false;
@@ -248,11 +249,7 @@ var UpdateService = class {
248
249
  } catch {
249
250
  }
250
251
  if (!matches) throw new Error("\u5F53\u524D CLI \u4E0D\u662F\u6B64 npm \u7BA1\u7406\u7684\u5168\u5C40\u5B89\u88C5\uFF0C\u672A\u6267\u884C\u66F4\u65B0\u3002\u8BF7\u4F7F\u7528\u539F\u5B89\u88C5\u65B9\u5F0F\u7EF4\u62A4\u3002");
251
- const registry = new URL(config.registry);
252
- if (!["https:", "http:"].includes(registry.protocol) || registry.username || registry.password) {
253
- throw new Error("npm registry \u914D\u7F6E\u4E0D\u53EF\u7528\u4E8E\u66F4\u65B0\u3002");
254
- }
255
- return { prefix, registry: registry.href };
252
+ return { prefix, registry: UPDATE_REGISTRY };
256
253
  }
257
254
  status() {
258
255
  if (this.skipReason) return { currentVersion: this.options.currentVersion, skipped: this.skipReason };
@@ -266,7 +263,7 @@ var UpdateService = class {
266
263
  };
267
264
  }
268
265
  validPending(state) {
269
- return typeof state.pending?.version === "string" && typeof state.pending.token === "string" && /^[a-f0-9-]{36}$/.test(state.pending.token) && compareVersions(state.pending.version, this.options.currentVersion) === 1;
266
+ return state.registry === UPDATE_REGISTRY && typeof state.pending?.version === "string" && typeof state.pending.token === "string" && /^[a-f0-9-]{36}$/.test(state.pending.token) && compareVersions(state.pending.version, this.options.currentVersion) === 1;
270
267
  }
271
268
  async check(force = false) {
272
269
  if (this.skipReason) return this.status();
@@ -298,11 +295,12 @@ var UpdateService = class {
298
295
  if (typeof latest !== "string" || compareVersions(latest, this.options.currentVersion) === void 0) {
299
296
  throw new Error("npm \u8FD4\u56DE\u7684\u7248\u672C\u53F7\u65E0\u6548\u3002");
300
297
  }
298
+ const samePending = this.validPending(state) && state.pending.version === latest;
301
299
  state.latestVersion = latest;
302
300
  state.prefix = install.prefix;
303
301
  state.registry = install.registry;
304
302
  if (compareVersions(latest, this.options.currentVersion) === 1) {
305
- if (!this.validPending(state) || state.pending.version !== latest) {
303
+ if (!samePending) {
306
304
  state.pending = { version: latest, token: randomUUID2() };
307
305
  }
308
306
  } else delete state.pending;
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  clearInvoiceTokenForSession
5
- } from "./chunk-JOY3HZXL.js";
5
+ } from "./chunk-2UV4IZIT.js";
6
6
  import {
7
7
  appendXiaoEAuthErrorLog,
8
8
  clearXiaoEAuthErrorLog,
@@ -10,7 +10,7 @@ import {
10
10
  normalizeXiaoEAuthErrorLogLimit,
11
11
  readXiaoEAuthErrorLog,
12
12
  xiaoEAuthLogSecrets
13
- } from "./chunk-MXCRKXOP.js";
13
+ } from "./chunk-FPWCCRKT.js";
14
14
  import {
15
15
  E10AuthSession,
16
16
  XIAOE_AGENT_TYPE,
@@ -11,7 +11,7 @@ import {
11
11
  createE10RequestRuntime,
12
12
  isE10SessionExpiredResponse,
13
13
  requireE10Session
14
- } from "./chunk-MXCRKXOP.js";
14
+ } from "./chunk-FPWCCRKT.js";
15
15
  import {
16
16
  E10_SESSION_EXPIRED_MESSAGE
17
17
  } from "./chunk-IZCQU5D5.js";
@@ -14,7 +14,7 @@ import {
14
14
  createE10RequestRuntime,
15
15
  isE10SessionExpiredResponse,
16
16
  requireE10Session
17
- } from "./chunk-MXCRKXOP.js";
17
+ } from "./chunk-FPWCCRKT.js";
18
18
  import {
19
19
  E10_SESSION_EXPIRED_MESSAGE
20
20
  } from "./chunk-IZCQU5D5.js";
@@ -2,12 +2,12 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-I6NOHKEK.js";
5
+ } from "./chunk-7SQN5IZR.js";
6
6
  import {
7
7
  meetingSuccess,
8
8
  meetingValidationError,
9
9
  schemaOf
10
- } from "./chunk-ERZY6GYL.js";
10
+ } from "./chunk-UZ2E3VNI.js";
11
11
 
12
12
  // src/shortcuts/meeting/operations/eb/group-chat.ts
13
13
  import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
@@ -16,17 +16,17 @@ var DEFAULT_MEETING_GROUP_FLOW_ID = "1333212605456498718";
16
16
  var GROUP_FIELD = "imchat_groupid";
17
17
  var PENDING_DIR = "pending-forms";
18
18
  async function buildEsbEnv(env) {
19
- const { createEsbHost } = await import("./host-KUMU3DDK.js");
19
+ const { createEsbHost } = await import("./host-EJSJSLVK.js");
20
20
  const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
21
21
  return { ctx: env.ctx, host: createEsbHost(env.ctx), continuation: createEsbContinuationSigner(env.ctx) };
22
22
  }
23
23
  async function buildImEnv(env) {
24
- const { createImHost } = await import("./host-J74JGYAW.js");
24
+ const { createImHost } = await import("./host-XXGDQM7D.js");
25
25
  const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
26
26
  return { ctx: env.ctx, host: createImHost(env.ctx), continuation: createImContinuationSigner(env.ctx) };
27
27
  }
28
28
  async function buildWorkflowEnv(env) {
29
- const { createWorkflowHost } = await import("./host-MEC4VQZA.js");
29
+ const { createWorkflowHost } = await import("./host-6UOXYOOY.js");
30
30
  const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
31
31
  return { ctx: env.ctx, host: createWorkflowHost(env.ctx), continuation: createWorkflowContinuationSigner(env.ctx) };
32
32
  }
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
159
159
  if (addressText === "[object Object]") addressText = "";
160
160
  if (addressText) {
161
161
  try {
162
- const { resolveAddressRoom } = await import("./create-flow-7ZRBRKX7.js");
162
+ const { resolveAddressRoom } = await import("./create-flow-ERDGW3FZ.js");
163
163
  const room = await resolveAddressRoom(env, addressText);
164
164
  if (room?.name) addressText = room.name;
165
165
  } catch {
@@ -168,7 +168,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
168
168
  if (addressText) mainTable.address = addressText;
169
169
  }
170
170
  try {
171
- const { getEsbOperation } = await import("./registry-TJGCVRCW.js");
171
+ const { getEsbOperation } = await import("./registry-3VTB3KLV.js");
172
172
  const esbEnv = await buildEsbEnv(env);
173
173
  const prepare = getEsbOperation("esb.trigger.prepare");
174
174
  const apply = getEsbOperation("esb.trigger.apply");
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
201
201
  const group = String(groupId).trim();
202
202
  if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
203
203
  try {
204
- const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-XRI6KZ7H.js");
204
+ const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-A3NAKZAA.js");
205
205
  const session = await env.host.getSession();
206
206
  await env.host.request({
207
207
  method: "POST",
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
219
219
  return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
220
220
  }
221
221
  try {
222
- const { getMeetingOperation } = await import("./registry-NBTBXR4L.js");
222
+ const { getMeetingOperation } = await import("./registry-UVTI323K.js");
223
223
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
224
224
  const read = await detail.handler({ id }, env);
225
225
  const main = read?.data?.data ?? read?.data?.main ?? {};
@@ -235,7 +235,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
235
235
  }
236
236
  async function searchMyRequests(env, options = {}) {
237
237
  try {
238
- const { getWorkflowOperation } = await import("./registry-F4YFZLOD.js");
238
+ const { getWorkflowOperation } = await import("./registry-KQ4TNUWO.js");
239
239
  const op = getWorkflowOperation("workflow.search");
240
240
  const wfEnv = await buildWorkflowEnv(env);
241
241
  const args = { category: "mine", pageSize: 20, sort: "createTime:desc" };
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
267
267
  const target = String(requestId).trim();
268
268
  if (target === "") return null;
269
269
  try {
270
- const { getMeetingOperation } = await import("./registry-NBTBXR4L.js");
270
+ const { getMeetingOperation } = await import("./registry-UVTI323K.js");
271
271
  const list = getMeetingOperation("meeting.eb.meeting.list");
272
272
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
273
273
  const page = await list.handler({ pageSize: 30 }, env);
@@ -9,7 +9,7 @@ import {
9
9
  createE10RequestRuntime,
10
10
  isE10AuthenticationRequired,
11
11
  requireE10Session
12
- } from "./chunk-MXCRKXOP.js";
12
+ } from "./chunk-FPWCCRKT.js";
13
13
  import {
14
14
  E10_SESSION_EXPIRED_MESSAGE
15
15
  } from "./chunk-IZCQU5D5.js";
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  UpdateService
5
- } from "./chunk-OJ4JPD25.js";
5
+ } from "./chunk-LQLIXBJF.js";
6
6
  import {
7
7
  packageRootDir
8
8
  } from "./chunk-2BZ7TY4M.js";
@@ -10,7 +10,7 @@ import {
10
10
  createE10RequestRuntime,
11
11
  isE10SessionExpiredResponse,
12
12
  requireE10Session
13
- } from "./chunk-MXCRKXOP.js";
13
+ } from "./chunk-FPWCCRKT.js";
14
14
  import {
15
15
  getActiveProfile
16
16
  } from "./chunk-QVKRNL7L.js";
@@ -4,7 +4,7 @@ import {
4
4
  cacheScopeSuffix,
5
5
  readCache,
6
6
  writeCache
7
- } from "./chunk-NWYHCZTY.js";
7
+ } from "./chunk-VNEU7OUN.js";
8
8
  import {
9
9
  EB_BASE,
10
10
  SCHEMA_DATETIME_MINUTE,
@@ -13,7 +13,7 @@ import {
13
13
  meetingSuccess,
14
14
  queryBody,
15
15
  schemaOf
16
- } from "./chunk-ERZY6GYL.js";
16
+ } from "./chunk-UZ2E3VNI.js";
17
17
 
18
18
  // src/shortcuts/meeting/operations/eb/usage-cache.ts
19
19
  var USAGE_TTL_MS = 5 * 60 * 1e3;
@@ -88,7 +88,7 @@ async function clearCache(env, key) {
88
88
  try {
89
89
  const { rm } = await import("node:fs/promises");
90
90
  const { join } = await import("node:path");
91
- const { meetingStateDir } = await import("./env-ZAQZ7EHN.js");
91
+ const { meetingStateDir } = await import("./env-DASBNSEM.js");
92
92
  await rm(join(meetingStateDir(env.ctx), "cache", `${key}.json`), { force: true });
93
93
  } catch {
94
94
  }
@@ -221,7 +221,7 @@ async function loadFrequentRooms(env, options = {}) {
221
221
  const counts = /* @__PURE__ */ new Map();
222
222
  let requests = 0;
223
223
  try {
224
- const { getMeetingOperation } = await import("./registry-NBTBXR4L.js");
224
+ const { getMeetingOperation } = await import("./registry-UVTI323K.js");
225
225
  const listOp = getMeetingOperation("meeting.eb.meeting.list");
226
226
  let seen = 0;
227
227
  let total = 0;
@@ -299,8 +299,14 @@ async function recommendRooms(env, input) {
299
299
  let busyCount = 0;
300
300
  const candidates = [];
301
301
  const purposeHitIds = /* @__PURE__ */ new Set();
302
+ let receptionSeen = false;
302
303
  for (const room of usable) {
303
304
  const isBusy = busy.ids.has(room.id);
305
+ if (requirement.hasCustomer === true && !receptionSeen) {
306
+ const hostName = room.name.match(/(接待|招待|贵宾|商务|vip)/iu);
307
+ const hostDesc = String(room.roomDesc ?? "").trim().match(/(接待|招待|贵宾|商务|vip)/iu);
308
+ if (hostName || hostDesc) receptionSeen = true;
309
+ }
304
310
  if (isBusy) {
305
311
  busyCount += 1;
306
312
  if (!input.includeBusy) continue;
@@ -370,9 +376,18 @@ async function recommendRooms(env, input) {
370
376
  reasons
371
377
  });
372
378
  }
373
- if (requirement.hasCustomer === true && purposeHitIds.size > 0) {
379
+ let receptionBlocked = false;
380
+ if (requirement.hasCustomer === true && receptionSeen) {
374
381
  const preferred = candidates.filter((candidate) => purposeHitIds.has(candidate.id));
375
- if (preferred.length > 0) candidates.splice(0, candidates.length, ...preferred);
382
+ if (preferred.length > 0) {
383
+ candidates.splice(0, candidates.length, ...preferred);
384
+ } else if (candidates.length > 0) {
385
+ candidates.length = 0;
386
+ receptionBlocked = true;
387
+ warnings.push(
388
+ "\u672C\u6B21\u5E26\u5BA2\u6237\uFF0C\u4F46\u5F53\u524D\u6761\u4EF6\u4E0B\u6CA1\u6709\u53EF\u7528\u7684\u63A5\u5F85\u7C7B\u4F1A\u8BAE\u5BA4\uFF08\u697C\u5C42 / \u8BBE\u5907 / \u4EBA\u6570 / \u5360\u7528\u4EFB\u4E00\u7EF4\u5EA6\u628A\u5B83\u7B5B\u6CA1\u4E86\uFF09\uFF1B\u5DF2\u505C\u6B62\u63A8\u8350\uFF0C\u8BF7\u6362\u697C\u5C42\u3001\u53BB\u6389\u8BBE\u5907\u8981\u6C42\uFF0C\u6216\u6539\u4F1A\u8BAE\u65F6\u95F4"
389
+ );
390
+ }
376
391
  }
377
392
  candidates.sort((left, right) => {
378
393
  if (right.score !== left.score) return right.score - left.score;
@@ -381,7 +396,7 @@ async function recommendRooms(env, input) {
381
396
  if (leftCap !== rightCap) return leftCap - rightCap;
382
397
  return left.name.localeCompare(right.name, "zh-Hans-CN");
383
398
  });
384
- if (candidates.length === 0 && roomData.fromCache && input.refreshRooms !== true) {
399
+ if (candidates.length === 0 && roomData.fromCache && input.refreshRooms !== true && !receptionBlocked) {
385
400
  const retried = await recommendRooms(env, { ...input, refreshRooms: true, refreshFrequent: true });
386
401
  return {
387
402
  ...retried,
@@ -2339,7 +2339,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
2339
2339
  );
2340
2340
  }
2341
2341
  if (endpoint.interfacePk === "create_meeting") {
2342
- const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-5BKCDV2F.js");
2342
+ const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-D4GVAURN.js");
2343
2343
  assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
2344
2344
  }
2345
2345
  const pkQuery = writePkQuery(endpoint, payload);
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-I6NOHKEK.js";
5
+ } from "./chunk-7SQN5IZR.js";
6
6
 
7
7
  // src/shortcuts/meeting/operations/eb/cache.ts
8
8
  import { mkdir, readFile, writeFile } from "node:fs/promises";