weaver-work-cli 0.1.62 → 0.1.64

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 (299) hide show
  1. package/dist/chunks/{archive-S2VKZWQ3.js → archive-WUZKAEZ6.js} +5 -4
  2. package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-PN46RTI2.js} +5 -4
  3. package/dist/chunks/{asset-HYH4W357.js → asset-ZPC5VWZM.js} +5 -4
  4. package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-DHGP3NYY.js} +5 -4
  5. package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-JQDW3BIB.js} +3 -3
  6. package/dist/chunks/{blog-SLMZZICV.js → blog-JC47AIXK.js} +5 -4
  7. package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-IKIHM77A.js} +5 -5
  8. package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-GZTSJ57Y.js} +5 -4
  9. package/dist/chunks/{chunk-H6YOMI3U.js → chunk-26FCCU5O.js} +5 -3
  10. package/dist/chunks/{chunk-E5YD5JWR.js → chunk-3PCXBG4H.js} +1 -1
  11. package/dist/chunks/{chunk-UBRWONP4.js → chunk-3W5NMGDS.js} +2 -2
  12. package/dist/chunks/{chunk-DTCQFTHW.js → chunk-4AFWOGOV.js} +3 -3
  13. package/dist/chunks/{chunk-VNYOUAWV.js → chunk-5QQKLR6H.js} +11 -11
  14. package/dist/chunks/{chunk-BQYX2UX5.js → chunk-6T5X6YWX.js} +5 -3
  15. package/dist/chunks/{chunk-KXJA42EA.js → chunk-AFZTMYGC.js} +1 -1
  16. package/dist/chunks/{chunk-YI2YMW5N.js → chunk-AGSO3PIK.js} +2 -2
  17. package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
  18. package/dist/chunks/{chunk-WIWDVETN.js → chunk-FDBAFANU.js} +76 -76
  19. package/dist/chunks/{chunk-NRYDJN4J.js → chunk-FJUOUSV3.js} +89 -8
  20. package/dist/chunks/{chunk-EGANE35F.js → chunk-HLT6B26P.js} +1 -1
  21. package/dist/chunks/{chunk-P6TXQK75.js → chunk-HWA2A25Y.js} +5 -3
  22. package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-I3MOFD6Q.js} +4 -7
  23. package/dist/chunks/chunk-IN6NXQ26.js +680 -0
  24. package/dist/chunks/{chunk-UBGWIXU3.js → chunk-INVYKG4I.js} +140 -45
  25. package/dist/chunks/{chunk-QBDXJS2W.js → chunk-K7QKQRSL.js} +168 -62
  26. package/dist/chunks/{chunk-BIA2NKUG.js → chunk-KDFEHDIB.js} +5 -5
  27. package/dist/chunks/{chunk-ILALC2N6.js → chunk-KYDXWYFB.js} +1 -1
  28. package/dist/chunks/{chunk-V2LASYKO.js → chunk-Q6D6PSMH.js} +30 -24
  29. package/dist/chunks/{chunk-UQFPF4EX.js → chunk-RMOH2GMF.js} +2 -2
  30. package/dist/chunks/{chunk-VBFBMM7G.js → chunk-SCMHG23G.js} +387 -70
  31. package/dist/chunks/chunk-TJN4PIYO.js +47 -0
  32. package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
  33. package/dist/chunks/{chunk-KY3R42RS.js → chunk-VLY5RTVO.js} +5 -3
  34. package/dist/chunks/{chunk-TEZHIB6T.js → chunk-WSHIOSGM.js} +5 -3
  35. package/dist/chunks/{chunk-6XSSAUNW.js → chunk-XHSEK2VM.js} +48 -12
  36. package/dist/chunks/{chunk-XT77MP54.js → chunk-YTFNMQO4.js} +410 -24
  37. package/dist/chunks/{conflict-GFJRS6I7.js → conflict-UUC7AFUI.js} +2 -2
  38. package/dist/chunks/{contract-U3ZGNRWB.js → contract-INMS7SYQ.js} +3051 -4497
  39. package/dist/chunks/{cowork-EX7PKIDK.js → cowork-34CBYVQP.js} +5 -4
  40. package/dist/chunks/{create-flow-EJZD434E.js → create-flow-YOR4QTAJ.js} +18 -6
  41. package/dist/chunks/{data-FOODGAMF.js → data-QKWI5325.js} +14 -3
  42. package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-ZONRROK4.js} +4 -4
  43. package/dist/chunks/{ehr-TE4RFNID.js → ehr-2CONM7R6.js} +244 -151
  44. package/dist/chunks/{employee-DR5Y64TI.js → employee-PGMY6NI6.js} +1 -1
  45. package/dist/chunks/{entry-mode-ZOLSXEGX.js → entry-mode-S2ENJ6GZ.js} +3 -3
  46. package/dist/chunks/{env-TID5NFR6.js → env-ZSAXU5PJ.js} +2 -2
  47. package/dist/chunks/{esb-7L6MHYLB.js → esb-FQASCY2H.js} +8 -8
  48. package/dist/chunks/{factory-OG7BPMH5.js → factory-N76QQA53.js} +1 -1
  49. package/dist/chunks/{fna-6V2ENR3Y.js → fna-FCLVIWAS.js} +5 -4
  50. package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-UM665WDZ.js} +3 -3
  51. package/dist/chunks/{host-VTPAWDZV.js → host-2ED2KC4X.js} +4 -4
  52. package/dist/chunks/{host-TJ5VVHM7.js → host-2UYZEY2V.js} +4 -4
  53. package/dist/chunks/{host-3DLYA54R.js → host-46NYKDQP.js} +4 -4
  54. package/dist/chunks/{host-OGBHL75G.js → host-7IPZKIM4.js} +4 -4
  55. package/dist/chunks/{host-GOJHHTPY.js → host-P7G22WNM.js} +4 -4
  56. package/dist/chunks/{host-ONZC6AE7.js → host-XLCBLNJD.js} +4 -4
  57. package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-XKL27NX2.js} +6 -6
  58. package/dist/chunks/{im-XCH47ZBN.js → im-NDYIMASG.js} +4 -4
  59. package/dist/chunks/{invoice-5KJ7T774.js → invoice-MOGNB6HN.js} +4 -4
  60. package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-3T5X7SB7.js} +5 -4
  61. package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-4WOIL3ZQ.js} +5 -5
  62. package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-P7VMUKQW.js} +5 -4
  63. package/dist/chunks/{meeting-5E3BNARL.js → meeting-MMTYDHXA.js} +16 -15
  64. package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-LCSBWGJ3.js} +4 -4
  65. package/dist/chunks/{okr-3O3XNYOK.js → okr-VZXRQGS4.js} +5 -4
  66. package/dist/chunks/{operations-EZWG72FH.js → operations-MI2BSKZX.js} +5 -5
  67. package/dist/chunks/{performance-Y7CPNSOR.js → performance-OPEQNW7Y.js} +873 -17
  68. package/dist/chunks/{plan-BLGPZF5M.js → plan-TJAS4N5X.js} +5 -4
  69. package/dist/chunks/{project-6MZMLJMP.js → project-CYBGU6K6.js} +5 -4
  70. package/dist/chunks/{reception-F2VT2X52.js → reception-3FT2F66K.js} +3 -3
  71. package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-WPGB5BDJ.js} +654 -336
  72. package/dist/chunks/{registry-3FYSWV3U.js → registry-BAWCWV4D.js} +3 -3
  73. package/dist/chunks/{registry-I4DVPDMU.js → registry-FNI5E76J.js} +12 -12
  74. package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
  75. package/dist/chunks/{registry-7RS74TCK.js → registry-QRMXRSCT.js} +5 -5
  76. package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-I7QQRHEL.js} +4 -4
  77. package/dist/chunks/{schedule-6AN63MJQ.js → schedule-3P7EWGNZ.js} +4 -4
  78. package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-FOBSVNYW.js} +3 -3
  79. package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-U2KKTVQY.js} +10 -7
  80. package/dist/index.js +34 -34
  81. package/dist/internal/e10/auth/commands.js +203 -44
  82. package/dist/internal/e10/auth/xiaoe.js +6 -2
  83. package/dist/internal/e10/auth-recovery.js +28 -2
  84. package/dist/internal/e10/request-runtime.js +15 -3
  85. package/dist/internal/e10/request-trace.js +65 -0
  86. package/dist/shortcuts/contract/data/metric-catalog.js +149 -0
  87. package/dist/shortcuts/contract/error-actions.js +112 -0
  88. package/dist/shortcuts/contract/errors.js +9 -1
  89. package/dist/shortcuts/contract/index.js +14 -39
  90. package/dist/shortcuts/contract/manifest.js +130 -274
  91. package/dist/shortcuts/contract/operations/compare-report.js +437 -0
  92. package/dist/shortcuts/contract/operations/compare.js +2 -0
  93. package/dist/shortcuts/contract/operations/docx-slots.js +112 -5
  94. package/dist/shortcuts/contract/operations/docx-verify.js +2 -70
  95. package/dist/shortcuts/contract/operations/elements-build.js +82 -56
  96. package/dist/shortcuts/contract/operations/elements-spec.js +140 -3
  97. package/dist/shortcuts/contract/operations/first-screen.js +96 -207
  98. package/dist/shortcuts/contract/operations/flow.js +19 -1
  99. package/dist/shortcuts/contract/operations/{card-ebdf-list.js → ledger-card.js} +123 -27
  100. package/dist/shortcuts/contract/operations/ledger.js +343 -1
  101. package/dist/shortcuts/contract/operations/metrics.js +93 -0
  102. package/dist/shortcuts/contract/operations/modeltext.js +3 -3
  103. package/dist/shortcuts/contract/operations/money.js +90 -0
  104. package/dist/shortcuts/contract/operations/page.js +8 -4
  105. package/dist/shortcuts/contract/operations/performance.js +53 -0
  106. package/dist/shortcuts/contract/operations/placeholder-scan.js +104 -0
  107. package/dist/shortcuts/contract/operations/quote-recognize.js +326 -0
  108. package/dist/shortcuts/contract/operations/quote-ref.js +179 -0
  109. package/dist/shortcuts/contract/operations/quote-submit.js +281 -0
  110. package/dist/shortcuts/contract/operations/quote.js +66 -12
  111. package/dist/shortcuts/contract/operations/recommend.js +42 -1
  112. package/dist/shortcuts/contract/operations/registry.js +16 -23
  113. package/dist/shortcuts/contract/operations/{card-risk-report.js → review-report.js} +24 -114
  114. package/dist/shortcuts/contract/operations/review.js +33 -167
  115. package/dist/shortcuts/contract/operations/save-recognize.js +173 -43
  116. package/dist/shortcuts/contract/operations/solutions-spec.js +79 -0
  117. package/dist/shortcuts/contract/operations/triage.js +68 -15
  118. package/dist/shortcuts/contract/operations/{template.js → type-clause-read.js} +10 -25
  119. package/dist/shortcuts/contract/operations/upload.js +17 -11
  120. package/dist/shortcuts/contract/prewarm-cache.js +6 -2
  121. package/dist/shortcuts/contract/prewarm.js +33 -23
  122. package/dist/shortcuts/contract/recommend-cache.js +191 -0
  123. package/dist/shortcuts/data/operations/shared.js +14 -1
  124. package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +85 -62
  125. package/dist/shortcuts/ehr/operations/recruit-position.js +21 -13
  126. package/dist/shortcuts/ehr/operations/recruit-short-cache.js +59 -0
  127. package/dist/shortcuts/ehr/operations/recruit-tag.js +17 -11
  128. package/dist/shortcuts/ehr/operations/recruit-write.js +118 -70
  129. package/dist/shortcuts/ehr/operations/recruit.js +338 -121
  130. package/dist/shortcuts/hrm/operations/employee.js +64 -17
  131. package/dist/shortcuts/hrm/operations/resolve.js +419 -369
  132. package/dist/shortcuts/im/host.js +38 -22
  133. package/dist/shortcuts/meeting/operations/eb/conflict.js +60 -2
  134. package/dist/shortcuts/meeting/operations/eb/create-flow.js +138 -15
  135. package/dist/shortcuts/meeting/operations/eb/create-form-link.js +380 -0
  136. package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
  137. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +1 -3
  138. package/dist/shortcuts/performance/flow-utils.js +363 -0
  139. package/dist/shortcuts/performance/manifest.js +2 -2
  140. package/dist/shortcuts/performance/operations/flow-detail.js +85 -0
  141. package/dist/shortcuts/performance/operations/flow-list.js +213 -0
  142. package/dist/shortcuts/performance/operations/flow-score.js +241 -0
  143. package/dist/shortcuts/performance/operations/registry.js +6 -0
  144. package/dist/shortcuts/recruit-stage/batch-store.js +44 -0
  145. package/dist/shortcuts/recruit-stage/context.js +75 -9
  146. package/dist/shortcuts/recruit-stage/manifest.js +1 -1
  147. package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -22
  148. package/dist/shortcuts/recruit-stage/operations/list.js +187 -37
  149. package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
  150. package/dist/shortcuts/recruit-stage/operations/resume-import.js +231 -313
  151. package/dist/shortcuts/recruit-stage/operations/search.js +5 -5
  152. package/dist/shortcuts/recruit-stage/operations/tag.js +286 -0
  153. package/dist/shortcuts/workflow/endpoints.js +2 -0
  154. package/dist/shortcuts/workflow/operations/form.js +12 -15
  155. package/dist/shortcuts/workflow/operations/read.js +8 -8
  156. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +3 -2
  157. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +7 -6
  158. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -3
  159. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
  160. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +33 -6
  161. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +153 -0
  162. package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +232 -0
  163. package/dist/shortcuts/workflow/operations.js +5 -0
  164. package/docs/contract.md +2 -2
  165. package/docs/e10-auth.md +55 -2
  166. package/docs/ehr.md +1 -1
  167. package/package.json +1 -1
  168. package/skills/weaver-e10-hrm/SKILL.md +3 -3
  169. package/skills/weaver-e10-hrm/references/employee.md +13 -2
  170. package/skills/weaver-e10-jinchengda/SKILL.md +283 -345
  171. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +7 -14
  172. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +21 -12
  173. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +126 -202
  174. package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +13 -5
  175. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +28 -20
  176. package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +12 -17
  177. package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +7 -13
  178. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +47 -16
  179. package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
  180. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +19 -18
  181. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +114 -61
  182. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +8 -2
  183. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +78 -112
  184. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +67 -333
  185. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +18 -15
  186. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +80 -84
  187. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +38 -34
  188. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +132 -47
  189. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +108 -217
  190. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +14 -20
  191. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +13 -7
  192. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +86 -46
  193. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +12 -10
  194. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +22 -14
  195. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +18 -18
  196. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +27 -26
  197. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +252 -0
  198. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +15 -23
  199. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +290 -104
  200. package/skills/weaver-e10-jinchengda/references/contract-request-status.md +5 -12
  201. package/skills/weaver-e10-jinchengda/references/contract-request-write.md +12 -18
  202. package/skills/weaver-e10-jinchengda/references/contract-signing-subjects.md +11 -17
  203. package/skills/weaver-e10-jinchengda/references/contract-subject-create.md +5 -11
  204. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +56 -7
  205. package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +12 -12
  206. package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
  207. package/skills/weaver-e10-jinchengda/references/orchestration.md +33 -35
  208. package/skills/weaver-e10-jucailin/SKILL.md +6 -7
  209. package/skills/weaver-e10-jucailin/agents/openai.yaml +52 -0
  210. package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +8 -6
  211. package/skills/weaver-e10-jucailin/references/recruit-read.md +4 -0
  212. package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +2 -2
  213. package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -4
  214. package/skills/weaver-e10-meeting/SKILL.md +87 -534
  215. package/skills/weaver-e10-meeting/references/commands-table.md +61 -0
  216. package/skills/weaver-e10-meeting/references/create-commands.md +136 -0
  217. package/skills/weaver-e10-meeting/references/create-flow.md +9 -7
  218. package/skills/weaver-e10-meeting/references/create-guardrails.md +23 -17
  219. package/skills/weaver-e10-meeting/references/custom-fields.md +40 -0
  220. package/skills/weaver-e10-meeting/references/eb-contracts.md +60 -0
  221. package/skills/weaver-e10-meeting/references/invitation.md +69 -0
  222. package/skills/weaver-e10-meeting/references/meeting-eb.md +26 -26
  223. package/skills/weaver-e10-meeting/references/meeting-invitation.md +2 -2
  224. package/skills/weaver-e10-meeting/references/meeting-minute-file.md +2 -2
  225. package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
  226. package/skills/weaver-e10-meeting/references/minutes-pipeline.md +119 -0
  227. package/skills/weaver-e10-meeting/references/pitfalls.md +1 -1
  228. package/skills/weaver-e10-meeting/references/room-recommend.md +88 -0
  229. package/skills/weaver-e10-performance/SKILL.md +45 -5
  230. package/skills/weaver-e10-performance/agents/openai.yaml +26 -2
  231. package/skills/weaver-e10-performance/references/flow-api.md +128 -0
  232. package/skills/weaver-e10-performance/references/flow-assess.md +149 -0
  233. package/skills/weaver-e10-recruit-stage/SKILL.md +317 -266
  234. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +22 -27
  235. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +1 -1
  236. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +30 -27
  237. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +2 -6
  238. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +12 -10
  239. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -0
  240. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +23 -19
  241. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +3 -1
  242. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +18 -16
  243. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +25 -23
  244. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +10 -10
  245. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -2
  246. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +11 -11
  247. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +150 -85
  248. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +14 -18
  249. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +1 -1
  250. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +173 -0
  251. package/skills/weaver-e10-recruit-stage/references/recruit-tag-taxonomy.json +76 -0
  252. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +3 -1
  253. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
  254. package/skills/weaver-e10-workflow/SKILL.md +49 -32
  255. package/skills/weaver-e10-workflow/references/todo-dialogue.md +67 -34
  256. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +65 -51
  257. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +18 -11
  258. package/skills/weaver-e10-workflow/references/workflow-create.md +2 -2
  259. package/skills/weaver-e10-workflow/references/workflow-memory.md +19 -37
  260. package/skills/weaver-e10-workflow/references/workflow-query.md +25 -22
  261. package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
  262. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +318 -110
  263. package/skills/weaver-e10-yimiaoban/SKILL.md +17 -14
  264. package/skills/weaver-e10-yimiaoban/references/person.md +1 -1
  265. package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
  266. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
  267. package/dist/chunks/chunk-6QYNE6HE.js +0 -658
  268. package/dist/chunks/chunk-SHYQUBY3.js +0 -48
  269. package/dist/shortcuts/contract/operations/card-action.js +0 -1266
  270. package/dist/shortcuts/contract/operations/card-plan.js +0 -393
  271. package/dist/shortcuts/contract/operations/card.js +0 -232
  272. package/dist/shortcuts/contract/operations/compare-screen.js +0 -378
  273. package/dist/shortcuts/contract/operations/quote-to-contract.js +0 -495
  274. package/dist/shortcuts/contract/operations/quotescreen.js +0 -529
  275. package/dist/shortcuts/contract/operations/summary-validate.js +0 -293
  276. package/dist/shortcuts/contract/operations/summary.js +0 -187
  277. package/dist/shortcuts/ehr/recruit-stage/batch-store.js +0 -78
  278. package/dist/shortcuts/ehr/recruit-stage/context.js +0 -231
  279. package/dist/shortcuts/ehr/recruit-stage/continuation.js +0 -74
  280. package/dist/shortcuts/ehr/recruit-stage/errors.js +0 -65
  281. package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +0 -165
  282. package/dist/shortcuts/ehr/recruit-stage/host.js +0 -109
  283. package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +0 -1065
  284. package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +0 -295
  285. package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +0 -961
  286. package/dist/shortcuts/ehr/recruit-stage/operations/list.js +0 -431
  287. package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +0 -50
  288. package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +0 -1655
  289. package/dist/shortcuts/ehr/recruit-stage/operations/search.js +0 -158
  290. package/dist/shortcuts/ehr/recruit-stage/operations/types.js +0 -34
  291. package/dist/shortcuts/ehr/recruit-stage/runtime.js +0 -31
  292. package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +0 -318
  293. package/dist/shortcuts/ehr/recruit-stage/shared.js +0 -887
  294. package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +0 -22
  295. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +0 -554
  296. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +0 -279
  297. package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +0 -483
  298. package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +0 -46
  299. package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +0 -194
@@ -2,45 +2,52 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  attachMeetingUrls,
5
+ ensureFlowFieldIds,
5
6
  meetingEbCreateFlowOperations,
6
- meetingUrlMap
7
- } from "./chunk-UBGWIXU3.js";
7
+ meetingUrlMap,
8
+ readFlowPick,
9
+ resolveAddressRoom,
10
+ resolvePersonTokens,
11
+ resolveSelfPerson,
12
+ resolveWorkflowId
13
+ } from "./chunk-INVYKG4I.js";
8
14
  import {
9
15
  ebMeetingWritePreflight,
10
16
  meetingEbConflictOperations
11
- } from "./chunk-6XSSAUNW.js";
17
+ } from "./chunk-XHSEK2VM.js";
12
18
  import {
13
19
  listMeetingAttachments,
14
20
  meetingAttachmentContentOperations
15
- } from "./chunk-UQFPF4EX.js";
21
+ } from "./chunk-RMOH2GMF.js";
16
22
  import {
17
23
  PENDING_MARK,
18
24
  renderDocx
19
25
  } from "./chunk-WMRNO6IU.js";
20
26
  import {
21
27
  meetingEbGroupChatOperations
22
- } from "./chunk-VNYOUAWV.js";
28
+ } from "./chunk-5QQKLR6H.js";
23
29
  import {
24
30
  meetingEntryOperations
25
- } from "./chunk-YI2YMW5N.js";
31
+ } from "./chunk-AGSO3PIK.js";
26
32
  import {
27
33
  meetingEbScheduleOperations
28
- } from "./chunk-BIA2NKUG.js";
34
+ } from "./chunk-KDFEHDIB.js";
29
35
  import {
30
36
  ebRoomRecommendOperation,
37
+ inferRoomFloor,
31
38
  recommendRooms,
32
39
  rememberFrequentRoom
33
- } from "./chunk-T2KVJFWJ.js";
40
+ } from "./chunk-I3MOFD6Q.js";
34
41
  import {
35
42
  cacheScopeSuffix,
36
43
  readCache,
37
44
  writeCache
38
- } from "./chunk-ILALC2N6.js";
45
+ } from "./chunk-KYDXWYFB.js";
39
46
  import {
40
47
  meetingEnvOperations,
41
48
  meetingStateDir,
42
49
  resolveMeetingEnvMode
43
- } from "./chunk-E5YD5JWR.js";
50
+ } from "./chunk-3PCXBG4H.js";
44
51
  import {
45
52
  EB_BASE,
46
53
  EB_ENDPOINTS,
@@ -72,13 +79,14 @@ import {
72
79
  toIdString,
73
80
  verifyLease,
74
81
  writeBody
75
- } from "./chunk-DTCQFTHW.js";
82
+ } from "./chunk-4AFWOGOV.js";
76
83
  import {
77
84
  CONTINUATION_TTL_SECONDS
78
85
  } from "./chunk-7BDPM5ST.js";
79
86
  import {
87
+ hasXiaoEEnv,
80
88
  packagePath
81
- } from "./chunk-SHYQUBY3.js";
89
+ } from "./chunk-FDBAFANU.js";
82
90
 
83
91
  // src/shortcuts/meeting/operations/meetings.ts
84
92
  function overlapsDate(beginDatetime, endDatetime, date) {
@@ -2239,7 +2247,7 @@ var meetingAttachmentAttach = {
2239
2247
  if (mode === "append" && existingIds.length === 0) {
2240
2248
  existingIds.push(...beforeIds);
2241
2249
  }
2242
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
2250
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
2243
2251
  const list = getMeetingOperation2("meeting.eb.meeting.list");
2244
2252
  let fileId = incomingFileId;
2245
2253
  let name = String(args.name ?? "").trim();
@@ -2327,7 +2335,7 @@ function textOf(value) {
2327
2335
  return value === void 0 || value === null ? "" : String(value);
2328
2336
  }
2329
2337
  async function readMinute(env, id) {
2330
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
2338
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
2331
2339
  const detail = getMeetingOperation2("meeting.eb.minute.detail");
2332
2340
  const result = await detail.handler({ id }, env);
2333
2341
  const row = result?.data?.data;
@@ -2410,7 +2418,7 @@ var meetingMinuteWriteContent = {
2410
2418
  } else {
2411
2419
  statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
2412
2420
  }
2413
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
2421
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
2414
2422
  const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
2415
2423
  const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
2416
2424
  const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
@@ -2426,8 +2434,8 @@ var meetingMinuteWriteContent = {
2426
2434
  let minuteDoc = null;
2427
2435
  if (args.with_doc !== false) {
2428
2436
  try {
2429
- const { buildMinuteDocx } = await import("./minute-doc-NXRE5C77.js");
2430
- const { meetingStateDir: meetingStateDir2 } = await import("./env-TID5NFR6.js");
2437
+ const { buildMinuteDocx } = await import("./minute-doc-LCSBWGJ3.js");
2438
+ const { meetingStateDir: meetingStateDir2 } = await import("./env-ZSAXU5PJ.js");
2431
2439
  const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
2432
2440
  const { join: join3 } = await import("node:path");
2433
2441
  const subject = textOf(after.mt_minutes_subject).trim() || `\u4F1A\u8BAE\u7EAA\u8981-${mtId}`;
@@ -2464,7 +2472,7 @@ var meetingMinuteWriteContent = {
2464
2472
  }
2465
2473
  if (args.with_doc !== false) {
2466
2474
  try {
2467
- const { ensureMinuteDoc } = await import("./minute-doc-NXRE5C77.js");
2475
+ const { ensureMinuteDoc } = await import("./minute-doc-LCSBWGJ3.js");
2468
2476
  const better = await ensureMinuteDoc(env, {
2469
2477
  id,
2470
2478
  mtId,
@@ -2603,8 +2611,8 @@ function parseLocalTime(value) {
2603
2611
  return Number.isNaN(parsed.getTime()) ? null : parsed;
2604
2612
  }
2605
2613
  function formatStamp(d) {
2606
- const pad2 = (n) => String(n).padStart(2, "0");
2607
- return `${d.getFullYear()}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())} ${pad2(d.getHours())}:${pad2(d.getMinutes())}:${pad2(d.getSeconds())}`;
2614
+ const pad3 = (n) => String(n).padStart(2, "0");
2615
+ return `${d.getFullYear()}-${pad3(d.getMonth() + 1)}-${pad3(d.getDate())} ${pad3(d.getHours())}:${pad3(d.getMinutes())}:${pad3(d.getSeconds())}`;
2608
2616
  }
2609
2617
  function computeChatWindow(meeting, now = /* @__PURE__ */ new Date()) {
2610
2618
  const begin = parseLocalTime(meeting.begin_datetime);
@@ -2737,9 +2745,9 @@ async function saveTranscript(ctx, mtId, transcript) {
2737
2745
  const { stateDir } = await import("./state-Y2XBP6YE.js");
2738
2746
  const dir = join3(stateDir(ctx), "transcripts");
2739
2747
  await mkdir4(dir, { recursive: true });
2740
- const pad2 = (n) => String(n).padStart(2, "0");
2748
+ const pad3 = (n) => String(n).padStart(2, "0");
2741
2749
  const now = /* @__PURE__ */ new Date();
2742
- const stamp2 = `${now.getFullYear()}${pad2(now.getMonth() + 1)}${pad2(now.getDate())}-${pad2(now.getHours())}${pad2(now.getMinutes())}${pad2(now.getSeconds())}`;
2750
+ const stamp2 = `${now.getFullYear()}${pad3(now.getMonth() + 1)}${pad3(now.getDate())}-${pad3(now.getHours())}${pad3(now.getMinutes())}${pad3(now.getSeconds())}`;
2743
2751
  const filePath = join3(dir, `${mtId}-${stamp2}.txt`);
2744
2752
  await writeFile4(filePath, transcript, "utf8");
2745
2753
  return filePath;
@@ -2835,7 +2843,7 @@ var meetingMinuteFromGroupChat = {
2835
2843
  const mtId = textOf2(args.mt_id).trim();
2836
2844
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
2837
2845
  const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
2838
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
2846
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
2839
2847
  const ctx = env.ctx;
2840
2848
  let stepStart = Date.now();
2841
2849
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
@@ -2859,7 +2867,7 @@ var meetingMinuteFromGroupChat = {
2859
2867
  }
2860
2868
  mark("readMeeting", stepStart);
2861
2869
  const pullStart = Date.now();
2862
- const { createImHost } = await import("./host-ONZC6AE7.js");
2870
+ const { createImHost } = await import("./host-XLCBLNJD.js");
2863
2871
  const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
2864
2872
  const { getImOperation } = await import("./registry-E5RQJVWN.js");
2865
2873
  const imEnv = { ctx, host: createImHost(ctx), continuation: createImContinuationSigner(ctx) };
@@ -2929,7 +2937,7 @@ var meetingMinuteFromGroupChat = {
2929
2937
  try {
2930
2938
  const { readFile: readFile4 } = await import("node:fs/promises");
2931
2939
  const buffer = await readFile4(file);
2932
- const { extractText } = await import("./attachment-content-VYYA75FR.js");
2940
+ const { extractText } = await import("./attachment-content-JQDW3BIB.js");
2933
2941
  const extracted = extractText(buffer, file, "");
2934
2942
  if (extracted.text.trim()) {
2935
2943
  extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
@@ -3058,9 +3066,9 @@ ${groupTranscript}` : ""
3058
3066
  if (!employeeId) {
3059
3067
  warnings.push("\u672A\u53D6\u5230 ESB \u89E6\u53D1\u4EBA id\uFF08employeeId\uFF09\uFF0C\u5DF2\u8DF3\u8FC7\u540E\u7EED ESB \u8C03\u7528");
3060
3068
  } else {
3061
- const { createEsbHost } = await import("./host-GOJHHTPY.js");
3069
+ const { createEsbHost } = await import("./host-P7G22WNM.js");
3062
3070
  const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
3063
- const { getEsbOperation } = await import("./registry-7RS74TCK.js");
3071
+ const { getEsbOperation } = await import("./registry-QRMXRSCT.js");
3064
3072
  const esbEnv = { ctx, host: createEsbHost(ctx), continuation: createEsbContinuationSigner(ctx) };
3065
3073
  const prepareOp = getEsbOperation("esb.trigger.prepare");
3066
3074
  const applyOp = getEsbOperation("esb.trigger.apply");
@@ -3104,8 +3112,8 @@ ${groupTranscript}` : ""
3104
3112
  if (args.with_doc !== false) {
3105
3113
  const docStarted = Date.now();
3106
3114
  try {
3107
- const { buildMinuteDocx } = await import("./minute-doc-NXRE5C77.js");
3108
- const { meetingStateDir: meetingStateDir2 } = await import("./env-TID5NFR6.js");
3115
+ const { buildMinuteDocx } = await import("./minute-doc-LCSBWGJ3.js");
3116
+ const { meetingStateDir: meetingStateDir2 } = await import("./env-ZSAXU5PJ.js");
3109
3117
  const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
3110
3118
  const { join: join3 } = await import("node:path");
3111
3119
  const body = textOf2(row.parse_content) || textOf2(row.minutes_content) || transcript;
@@ -3292,7 +3300,7 @@ var meetingDecisionNotifyGroup = {
3292
3300
  const warnings = [];
3293
3301
  const mtId = textOf3(args.mt_id).trim();
3294
3302
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
3295
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
3303
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
3296
3304
  const ctx = env.ctx;
3297
3305
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
3298
3306
  { mt_id: mtId, pageNo: 1, pageSize: 1 },
@@ -3356,7 +3364,7 @@ var meetingDecisionNotifyGroup = {
3356
3364
  charCount: formatted.text.length,
3357
3365
  text: formatted.text
3358
3366
  };
3359
- const { createImHost } = await import("./host-ONZC6AE7.js");
3367
+ const { createImHost } = await import("./host-XLCBLNJD.js");
3360
3368
  const imHost = createImHost(ctx);
3361
3369
  let displayText = formatted.text;
3362
3370
  let wireText = formatted.text;
@@ -3498,8 +3506,8 @@ function defaultDueDate(begin, days) {
3498
3506
  const base = new Date(normalized.replace(/-/g, "/"));
3499
3507
  const start = Number.isNaN(base.getTime()) ? /* @__PURE__ */ new Date() : base;
3500
3508
  const due = new Date(start.getTime() + Math.max(days, 1) * 24 * 36e5);
3501
- const pad2 = (n) => String(n).padStart(2, "0");
3502
- return `${due.getFullYear()}-${pad2(due.getMonth() + 1)}-${pad2(due.getDate())} 18:00`;
3509
+ const pad3 = (n) => String(n).padStart(2, "0");
3510
+ return `${due.getFullYear()}-${pad3(due.getMonth() + 1)}-${pad3(due.getDate())} 18:00`;
3503
3511
  }
3504
3512
  async function waitForTaskIncrease(fetchTotal, baseline, timeoutMs = 15e3, intervalMs = 2e3) {
3505
3513
  const start = Date.now();
@@ -3594,7 +3602,7 @@ var meetingPipelineRun = {
3594
3602
  const needsConfirm = level === "tasks" || level === "notify";
3595
3603
  const confirmed = args.confirm === true;
3596
3604
  const executedLevel = needsConfirm && !confirmed ? "document" : level;
3597
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
3605
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
3598
3606
  const ctx = env.ctx;
3599
3607
  let stepStart = Date.now();
3600
3608
  const reuseMinuteId = textOf4(args.minuteId).trim();
@@ -3663,8 +3671,8 @@ var meetingPipelineRun = {
3663
3671
  ]);
3664
3672
  }
3665
3673
  stepStart = Date.now();
3666
- const { createHrmHost } = await import("./host-TJ5VVHM7.js");
3667
- const { getHrmOperation } = await import("./registry-3UGIWH53.js");
3674
+ const { createHrmHost } = await import("./host-2UYZEY2V.js");
3675
+ const { getHrmOperation } = await import("./registry-JMNOXRST.js");
3668
3676
  const hrmEnv = { ctx, host: createHrmHost(ctx) };
3669
3677
  const queryOp = getHrmOperation("hrm.employee.query");
3670
3678
  const resolved = [];
@@ -3701,8 +3709,8 @@ var meetingPipelineRun = {
3701
3709
  })();
3702
3710
  const beginAt = textOf4(meetingInfo.end_datetime).trim() || textOf4(meetingInfo.begin_datetime).trim() || (() => {
3703
3711
  const now = /* @__PURE__ */ new Date();
3704
- const pad2 = (n) => String(n).padStart(2, "0");
3705
- return `${now.getFullYear()}-${pad2(now.getMonth() + 1)}-${pad2(now.getDate())} ${pad2(now.getHours())}:${pad2(now.getMinutes())}`;
3712
+ const pad3 = (n) => String(n).padStart(2, "0");
3713
+ return `${now.getFullYear()}-${pad3(now.getMonth() + 1)}-${pad3(now.getDate())} ${pad3(now.getHours())}:${pad3(now.getMinutes())}`;
3706
3714
  })();
3707
3715
  const dueDays = typeof args.taskDueDays === "number" && args.taskDueDays > 0 ? args.taskDueDays : 7;
3708
3716
  const dueAt = defaultDueDate(beginAt, dueDays);
@@ -3966,7 +3974,7 @@ function formatTimeRange(start, end) {
3966
3974
  }
3967
3975
  async function loadAgendaFromTopics(env, mtId) {
3968
3976
  try {
3969
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
3977
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
3970
3978
  const operation = getMeetingOperation2("meeting.eb.topic.list");
3971
3979
  const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
3972
3980
  const rows = result.data?.rows ?? [];
@@ -4059,7 +4067,7 @@ function flattenFieldValue(raw) {
4059
4067
  }
4060
4068
  async function resolveIssuerOrganization(env, creatorId) {
4061
4069
  try {
4062
- const { hrmEmployeeOperations } = await import("./employee-DR5Y64TI.js");
4070
+ const { hrmEmployeeOperations } = await import("./employee-PGMY6NI6.js");
4063
4071
  const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
4064
4072
  if (!batch) return null;
4065
4073
  const result = await batch.handler({ ids: [creatorId] }, env);
@@ -4081,7 +4089,7 @@ async function resolveSessionUserName(env) {
4081
4089
  const session = await env.host.getSession();
4082
4090
  const userId = String(session?.userId ?? "").trim();
4083
4091
  if (!userId) return "";
4084
- const { hrmEmployeeOperations } = await import("./employee-DR5Y64TI.js");
4092
+ const { hrmEmployeeOperations } = await import("./employee-PGMY6NI6.js");
4085
4093
  const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
4086
4094
  if (!batch) return "";
4087
4095
  const result = await batch.handler({ ids: [userId] }, env);
@@ -4117,7 +4125,7 @@ async function supplementRowFromDetail(row, mtId, env) {
4117
4125
  const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
4118
4126
  if (missing.length === 0) return { row, filled: [] };
4119
4127
  try {
4120
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
4128
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
4121
4129
  const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
4122
4130
  const result = await detailOperation.handler({ id: mtId }, env);
4123
4131
  const flat = result?.data?.data ?? result?.data ?? {};
@@ -4291,7 +4299,7 @@ var meetingInvitationRender = {
4291
4299
  };
4292
4300
  dataSource = "payload";
4293
4301
  } else {
4294
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
4302
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
4295
4303
  const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
4296
4304
  try {
4297
4305
  const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
@@ -4419,7 +4427,7 @@ var MAX_DEPARTMENTS = 30;
4419
4427
  var MAX_MEMBERS_RETURN = 300;
4420
4428
  async function runHrm(name, input, env) {
4421
4429
  const { hrmOrgOperations } = await import("./org-NFE7X7FK.js");
4422
- const { hrmEmployeeOperations } = await import("./employee-DR5Y64TI.js");
4430
+ const { hrmEmployeeOperations } = await import("./employee-PGMY6NI6.js");
4423
4431
  const all = [...hrmOrgOperations, ...hrmEmployeeOperations];
4424
4432
  const operation = all.find((item) => item.name === name);
4425
4433
  if (!operation) throw meetingValidationError("hrm_operation_missing", `\u5F53\u524D CLI \u7F3A\u5C11 ${name}\uFF08\u8BF7\u5347\u7EA7 weaver-work-cli\uFF09`);
@@ -4635,7 +4643,7 @@ var meetingInvitationPublish = {
4635
4643
  "\u4F1A\u771F\u5B9E\u521B\u5EFA\u6587\u6863\uFF0C\u5FC5\u987B\u663E\u5F0F\u4F20 confirm: true\uFF08\u53EF\u5148\u4E0D\u5E26 confirm \u8C03 meeting.invitation.render \u9884\u89C8\u6B63\u6587\uFF09"
4636
4644
  );
4637
4645
  }
4638
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
4646
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
4639
4647
  const render = getMeetingOperation2("meeting.invitation.render");
4640
4648
  const rendered = await render.handler(
4641
4649
  {
@@ -4667,8 +4675,8 @@ var meetingInvitationPublish = {
4667
4675
  folder_type: String(args.folder_type ?? DEFAULT_FOLDER_TYPE),
4668
4676
  author_id: authorId
4669
4677
  };
4670
- const { executeCaizhilianOperation } = await import("./operations-EZWG72FH.js");
4671
- const { createCaizhilianHost } = await import("./host-3DLYA54R.js");
4678
+ const { executeCaizhilianOperation } = await import("./operations-MI2BSKZX.js");
4679
+ const { createCaizhilianHost } = await import("./host-46NYKDQP.js");
4672
4680
  const { createCaizhilianContinuationSigner } = await import("./continuation-GW6PRWK3.js");
4673
4681
  const caizhilianEnv = {
4674
4682
  ctx: env.ctx,
@@ -4998,7 +5006,7 @@ function buildCodewords(bytes, version, ecc) {
4998
5006
  for (const byte of bytes) appendBits(byte, 8);
4999
5007
  appendBits(0, Math.min(4, capacityBits - bits.length));
5000
5008
  appendBits(0, (8 - bits.length % 8) % 8);
5001
- for (let pad2 = 236; bits.length < capacityBits; pad2 ^= 236 ^ 17) appendBits(pad2, 8);
5009
+ for (let pad3 = 236; bits.length < capacityBits; pad3 ^= 236 ^ 17) appendBits(pad3, 8);
5002
5010
  const dataCodewords = new Array(bits.length / 8).fill(0);
5003
5011
  bits.forEach((bit, i) => {
5004
5012
  dataCodewords[i >>> 3] |= bit << 7 - (i & 7);
@@ -5184,8 +5192,8 @@ function renderQrSvg(matrix, options = {}) {
5184
5192
  var ECC_LEVELS = ["L", "M", "Q", "H"];
5185
5193
  function stamp() {
5186
5194
  const now = /* @__PURE__ */ new Date();
5187
- const pad2 = (n) => String(n).padStart(2, "0");
5188
- return `${now.getFullYear()}${pad2(now.getMonth() + 1)}${pad2(now.getDate())}-${pad2(now.getHours())}${pad2(now.getMinutes())}${pad2(now.getSeconds())}`;
5195
+ const pad3 = (n) => String(n).padStart(2, "0");
5196
+ return `${now.getFullYear()}${pad3(now.getMonth() + 1)}${pad3(now.getDate())}-${pad3(now.getHours())}${pad3(now.getMinutes())}${pad3(now.getSeconds())}`;
5189
5197
  }
5190
5198
  function safeName(input) {
5191
5199
  return input.replace(/[\\/:*?"<>|\s]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 60);
@@ -5350,7 +5358,7 @@ var meetingSummaryGet = {
5350
5358
  const mtId = textOf5(args.mt_id).trim();
5351
5359
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
5352
5360
  const ctx = env.ctx;
5353
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
5361
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
5354
5362
  const warnings = [];
5355
5363
  const timings = {};
5356
5364
  const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
@@ -5486,7 +5494,7 @@ var meetingSummaryGet = {
5486
5494
  warnings.push("\u8BE5\u4F1A\u8BAE\u6CA1\u6709\u5173\u8054\u7FA4\u804A\uFF08imchat_groupid \u4E3A\u7A7A\uFF09\uFF0Cchat \u6BB5\u4E3A null");
5487
5495
  } else {
5488
5496
  try {
5489
- const { createImHost } = await import("./host-ONZC6AE7.js");
5497
+ const { createImHost } = await import("./host-XLCBLNJD.js");
5490
5498
  const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
5491
5499
  const { getImOperation } = await import("./registry-E5RQJVWN.js");
5492
5500
  const imEnv = {
@@ -5612,7 +5620,7 @@ var meetingFormFields = {
5612
5620
  hint: "\u6CA1\u89E3\u6790\u5230\u8BE5\u8868\u7684 objId\uFF08\u53EF\u80FD\u5F53\u524D\u73AF\u5883\u6CA1\u6709\u8FD9\u5F20\u8868\uFF0C\u6216\u8D26\u53F7\u65E0\u6743\u9650\uFF09"
5613
5621
  }, { warnings: resolved.warnings });
5614
5622
  }
5615
- const { createEbuilderFormHost } = await import("./host-OGBHL75G.js");
5623
+ const { createEbuilderFormHost } = await import("./host-7IPZKIM4.js");
5616
5624
  const { createEbuilderFormContinuationSigner } = await import("./continuation-3XLYYTKV.js");
5617
5625
  const { executeEbuilderFormOperation } = await import("./operations-62N6EP3C.js");
5618
5626
  const formEnv = {
@@ -5663,15 +5671,15 @@ var meetingFormFieldOperations = [meetingFormFields];
5663
5671
  var DATE_PATTERN = "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$";
5664
5672
  function formatSecondNow() {
5665
5673
  const now = /* @__PURE__ */ new Date();
5666
- const pad2 = (value) => String(value).padStart(2, "0");
5667
- return `${now.getFullYear()}-${pad2(now.getMonth() + 1)}-${pad2(now.getDate())} ${pad2(now.getHours())}:${pad2(now.getMinutes())}:${pad2(now.getSeconds())}`;
5674
+ const pad3 = (value) => String(value).padStart(2, "0");
5675
+ return `${now.getFullYear()}-${pad3(now.getMonth() + 1)}-${pad3(now.getDate())} ${pad3(now.getHours())}:${pad3(now.getMinutes())}:${pad3(now.getSeconds())}`;
5668
5676
  }
5669
5677
  var DECISION_DONE = "2";
5670
5678
  var MT_STATUS_OVER = "8";
5671
5679
  var CANCELLED_MARK_DELAY_MS = 800;
5672
5680
  async function isCancelledMeeting(env, mtId) {
5673
5681
  try {
5674
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
5682
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
5675
5683
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
5676
5684
  // withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
5677
5685
  { mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
@@ -5716,7 +5724,7 @@ async function resolveDecisionPeople(env, input, ownerId) {
5716
5724
  }
5717
5725
  let nameToId = /* @__PURE__ */ new Map();
5718
5726
  if (nameTokens.size > 0) {
5719
- const { resolveMemberIdsByName } = await import("./schedule-6AN63MJQ.js");
5727
+ const { resolveMemberIdsByName } = await import("./schedule-3P7EWGNZ.js");
5720
5728
  nameToId = await resolveMemberIdsByName(env, [...nameTokens]).catch(() => /* @__PURE__ */ new Map());
5721
5729
  }
5722
5730
  const unresolved = [];
@@ -6591,9 +6599,9 @@ async function runCrmSearchFlow(env, input) {
6591
6599
  if (!employeeId) {
6592
6600
  throw meetingValidationError("crm_employee_required", "\u53D6\u4E0D\u5230\u5F53\u524D\u767B\u5F55\u7528\u6237 id\uFF0C\u65E0\u6CD5\u89E6\u53D1 ESB \u5BA2\u6237\u67E5\u8BE2");
6593
6601
  }
6594
- const { createEsbHost } = await import("./host-GOJHHTPY.js");
6602
+ const { createEsbHost } = await import("./host-P7G22WNM.js");
6595
6603
  const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
6596
- const { getEsbOperation } = await import("./registry-7RS74TCK.js");
6604
+ const { getEsbOperation } = await import("./registry-QRMXRSCT.js");
6597
6605
  const esbEnv = {
6598
6606
  ctx: env.ctx,
6599
6607
  host: createEsbHost(env.ctx),
@@ -6760,7 +6768,7 @@ var deleteMany = {
6760
6768
  if (args.confirm !== true) {
6761
6769
  throw meetingValidationError("confirmation_required", "\u6279\u91CF\u5220\u9664\u4E0D\u53EF\u6062\u590D\uFF0C\u5FC5\u987B\u4F20 confirm=true");
6762
6770
  }
6763
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
6771
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
6764
6772
  const listOp = getMeetingOperation2("meeting.eb.decisionTask.list");
6765
6773
  const prepareOp = getMeetingOperation2("meeting.eb.decisionTask.delete.prepare");
6766
6774
  const applyOp = getMeetingOperation2("meeting.eb.decisionTask.delete.apply");
@@ -6858,7 +6866,7 @@ function fieldId(value) {
6858
6866
  async function resolveEmployeeId(env, token) {
6859
6867
  const value = String(token ?? "").trim();
6860
6868
  if (/^\d{8,}$/.test(value)) return { id: value, name: value };
6861
- const { hrmEmployeeOperations } = await import("./employee-DR5Y64TI.js");
6869
+ const { hrmEmployeeOperations } = await import("./employee-PGMY6NI6.js");
6862
6870
  const query = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.query");
6863
6871
  if (!query) throw meetingValidationError("employee_query_unavailable", "\u65E0\u6CD5\u89E3\u6790\u59D3\u540D\uFF1A\u5458\u5DE5\u67E5\u8BE2\u64CD\u4F5C\u4E0D\u53EF\u7528");
6864
6872
  const found = await query.handler({ keyword: value, pageSize: 20 }, env);
@@ -6895,7 +6903,7 @@ var reassign = {
6895
6903
  },
6896
6904
  handler: async (args, env) => {
6897
6905
  if (args.confirm === false) throw meetingValidationError("confirmation_required", "confirm=false\uFF0C\u672A\u6267\u884C");
6898
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
6906
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
6899
6907
  const mtId = String(args.mt_id ?? "").trim();
6900
6908
  const target = await resolveEmployeeId(env, String(args.to_executor ?? ""));
6901
6909
  const from = String(args.from_executor ?? "").trim();
@@ -6954,6 +6962,314 @@ var reassign = {
6954
6962
  };
6955
6963
  var meetingEbDecisionTaskReassignOperations = [reassign];
6956
6964
 
6965
+ // src/shortcuts/meeting/operations/eb/create-form-link.ts
6966
+ var SLOT_RANGES = {
6967
+ \u4E0A\u5348: ["09:00", "12:00"],
6968
+ \u4E0B\u5348: ["13:00", "18:00"],
6969
+ \u665A\u4E0A: ["18:00", "21:00"],
6970
+ \u5168\u5929: ["09:00", "18:00"],
6971
+ \u6574\u5929: ["09:00", "18:00"]
6972
+ };
6973
+ function pad2(value) {
6974
+ return String(value).padStart(2, "0");
6975
+ }
6976
+ function today(offsetDays = 0) {
6977
+ const date = new Date(Date.now() + offsetDays * 864e5);
6978
+ return `${date.getFullYear()}-${pad2(date.getMonth() + 1)}-${pad2(date.getDate())}`;
6979
+ }
6980
+ function encode(value) {
6981
+ return encodeURIComponent(value).replace(/%20/g, "%20");
6982
+ }
6983
+ function splitTokens(raw) {
6984
+ if (Array.isArray(raw)) return raw.flatMap((item) => splitTokens(item));
6985
+ return String(raw ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
6986
+ }
6987
+ var formLink = {
6988
+ name: "meeting.eb.meeting.create.formLink",
6989
+ resource: "eb",
6990
+ method: "meeting.eb.meeting.create.formLink",
6991
+ action: "meeting.eb.meeting.create.formLink",
6992
+ summary: "\u76F4\u63A5\u53D1\u8D77\u6D41\u7A0B\u7684\u5FEB\u901F\u901A\u9053\uFF1A\u4E0D\u505A\u9884\u68C0\uFF0C\u6309\u5B57\u6BB5 id \u62FC\u51FA\u300C\u4F1A\u8BAE\u7533\u8BF7\u300D\u53D1\u8D77\u9875 URL\uFF08\u6D4F\u89C8\u5668\u6253\u5F00\u5373\u5E26\u503C\uFF0C\u7528\u6237\u81EA\u5DF1\u63D0\u4EA4\uFF09\uFF1B\u652F\u6301\u5185\u5D4C <browsertool> \u53C2\u6570\u3002\u26D4 \u4E0D\u4EA7\u751F\u5355\u636E\uFF0C\u51B2\u7A81/\u5360\u7528\u9700\u9875\u9762\u81EA\u884C\u63D0\u793A\u3002",
6993
+ capability: "eb.meeting",
6994
+ risk: "read",
6995
+ requiresConfirmation: false,
6996
+ inputSchema: schemaOf({
6997
+ mt_name: { type: "string", description: "\u4F1A\u8BAE\u540D\u79F0" },
6998
+ begin_datetime: { type: "string", description: "\u5F00\u59CB\u65F6\u95F4 YYYY-MM-DD HH:mm\uFF08\u4E0E dateFrom+time_slot \u4E8C\u9009\u4E00\uFF09" },
6999
+ end_datetime: { type: "string", description: "\u7ED3\u675F\u65F6\u95F4\uFF1B\u53EA\u7ED9 begin \u65F6\u6309 durationMinutes \u63A8\u7B97" },
7000
+ durationMinutes: { type: "number", description: "\u65F6\u957F\uFF08\u5206\u949F\uFF09\uFF0C\u9ED8\u8BA4 60" },
7001
+ dateFrom: { type: "string", description: "\u65E5\u671F YYYY-MM-DD" },
7002
+ time_slot: { type: "string", description: "\u4E0A\u5348 / \u4E0B\u5348 / \u665A\u4E0A\uFF08\u81EA\u52A8\u5C55\u5F00\u56FA\u5B9A\u533A\u95F4\uFF09" },
7003
+ hrm_members: { type: "string", description: "\u53C2\u4F1A\u4EBA\u5458\uFF1A\u59D3\u540D\u6216\u5458\u5DE5 id\uFF0C\u9017\u53F7\u5206\u9694\uFF1B\u4E0D\u4F20\u9ED8\u8BA4\u5F53\u524D\u767B\u5F55\u4EBA" },
7004
+ address: { type: "string", description: "\u4F1A\u8BAE\u5BA4\uFF1A\u540D\u79F0\u6216 id\uFF1B\u4E0D\u4F20\u5219\u4E0D\u9884\u586B" },
7005
+ mt_desc: { type: "string", description: "\u4F1A\u8BAE\u5185\u5BB9" },
7006
+ total_member: { type: "number", description: "\u53C2\u4F1A\u4EBA\u6570\uFF1B\u4E0D\u4F20\u6309\u4EBA\u5458\u6570" },
7007
+ our_member_count: { type: "number", description: '\u6211\u65B9\u58F0\u660E\u4EBA\u6570\uFF08\u8BF4\u4E86"\u6211\u4EEC 5 \u4E2A\u4EBA"\u4F46\u6CA1\u7ED9\u59D3\u540D\u65F6\u4F20 5\uFF09\uFF1A\u4E0E crm_member_count \u76F8\u52A0\u4F5C\u4E3A\u53C2\u4F1A\u4EBA\u6570\uFF0C\u5E76\u53C2\u4E0E\u4F1A\u8BAE\u5BA4\u5BB9\u91CF\u8FC7\u6EE4' },
7008
+ crm_members: { type: "string", description: "\u53C2\u4F1A\u5BA2\u6237\u540D\u79F0\uFF1B\u591A\u547D\u4E2D\u53D6\u7B2C\u4E00\u4E2A\uFF0C\u67E5\u4E0D\u5230\u5219\u4E0D\u5E26\uFF08\u4E0D\u8BE2\u95EE\uFF09" },
7009
+ crm_member_count: { type: "number", description: "\u5BA2\u6237\u65B9\u4EBA\u6570\uFF1B\u6CA1\u4F20 total_member \u65F6\u7528\u4E8E\u63A8\u7B97\u53C2\u4F1A\u4EBA\u6570" },
7010
+ workflowId: { type: "string", description: "\u6307\u5B9A\u6D41\u7A0B id\uFF1B\u4E0D\u4F20\u7528\u6D41\u7A0B\u8BB0\u5FC6" }
7011
+ }),
7012
+ handler: async (args, env) => {
7013
+ const session = await env.host.getSession();
7014
+ const baseUrl = String(session?.baseUrl ?? "").replace(/\/+$/, "");
7015
+ if (!baseUrl) {
7016
+ throw meetingValidationError("missing_base_url", "\u7F3A\u5C11 E10 \u524D\u7AEF\u5730\u5740\uFF0C\u65E0\u6CD5\u62FC\u53D1\u8D77\u9875\u94FE\u63A5");
7017
+ }
7018
+ let workflowId = String(args.workflowId ?? "").trim();
7019
+ if (!workflowId) {
7020
+ const remembered = await readFlowPick(env).catch(() => null);
7021
+ if (remembered?.workflowId) workflowId = remembered.workflowId;
7022
+ }
7023
+ if (!workflowId) {
7024
+ const resolved = await resolveWorkflowId(env, args);
7025
+ workflowId = resolved.workflowId || resolved.candidates[0] || "";
7026
+ }
7027
+ if (!workflowId) {
7028
+ throw meetingValidationError("workflow_required", "\u65E0\u6CD5\u786E\u5B9A\u5EFA\u4F1A\u6D41\u7A0B id\uFF0C\u8BF7\u663E\u5F0F\u4F20 workflowId");
7029
+ }
7030
+ const ids = await ensureFlowFieldIds(env, workflowId);
7031
+ const warnings = [];
7032
+ let timeProvided = false;
7033
+ let begin = String(args.begin_datetime ?? "").trim().replace("T", " ");
7034
+ if (begin) timeProvided = true;
7035
+ let end = String(args.end_datetime ?? "").trim().replace("T", " ");
7036
+ if (!begin) {
7037
+ const slot = String(args.time_slot ?? "").trim();
7038
+ const dateArg = String(args.dateFrom ?? "").trim();
7039
+ const day = dateArg || today(1);
7040
+ const range = SLOT_RANGES[slot];
7041
+ if (range && dateArg) {
7042
+ begin = `${day} ${range[0]}`;
7043
+ end = `${day} ${range[1]}`;
7044
+ timeProvided = true;
7045
+ } else if (/^\d{4}-\d{2}-\d{2}$/.test(dateArg) && !slot) {
7046
+ begin = `${day} 09:00`;
7047
+ end = `${day} 18:00`;
7048
+ timeProvided = true;
7049
+ }
7050
+ }
7051
+ if (begin && !end) {
7052
+ const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
7053
+ const startMs = Date.parse(begin.slice(0, 16).replace(" ", "T"));
7054
+ if (Number.isFinite(startMs)) {
7055
+ const d = new Date(startMs + duration * 6e4);
7056
+ end = `${d.getFullYear()}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())} ${pad2(d.getHours())}:${pad2(d.getMinutes())}`;
7057
+ }
7058
+ }
7059
+ const self = await resolveSelfPerson(env);
7060
+ const tokens = splitTokens(args.hrm_members);
7061
+ if (self && !tokens.some((token) => token === self.id || token === self.name)) tokens.unshift(self.id);
7062
+ const peopleMap = await resolvePersonTokens(env, tokens);
7063
+ const people = [...peopleMap.values()];
7064
+ const unresolvedPeople = tokens.filter((token) => !people.some((p) => p.id === token || p.name === token));
7065
+ if (unresolvedPeople.length > 0) {
7066
+ warnings.push(`\u4EE5\u4E0B\u53C2\u4F1A\u4EBA\u672A\u89E3\u6790\u5230\u5458\u5DE5\uFF1A${unresolvedPeople.join("\u3001")}\uFF08\u9875\u9762\u91CC\u9700\u624B\u586B\uFF09`);
7067
+ }
7068
+ const mtName = String(args.mt_name ?? "").trim() || (() => {
7069
+ const source = begin || String(args.dateFrom ?? "").trim();
7070
+ const hit = source.match(/^(\d{4})-(\d{2})-(\d{2})/);
7071
+ if (!hit) return "\u9884\u7EA6\u4F1A\u8BAE";
7072
+ const slot = String(args.time_slot ?? "").trim();
7073
+ return `${Number(hit[2])}\u6708${Number(hit[3])}\u65E5${slot && slot !== "\u5168\u5929" && slot !== "\u6574\u5929" ? slot : ""}\u4F1A\u8BAE`;
7074
+ })();
7075
+ const ourCount = Number(args.our_member_count) > 0 ? Math.round(Number(args.our_member_count)) : 0;
7076
+ const crmCountArg = Number(args.crm_member_count) > 0 ? Math.round(Number(args.crm_member_count)) : 0;
7077
+ const declaredCount = Math.max(
7078
+ Number(args.total_member) > 0 ? Math.round(Number(args.total_member)) : 0,
7079
+ ourCount + crmCountArg,
7080
+ crmCountArg,
7081
+ people.length
7082
+ );
7083
+ const hasCustomer = Array.isArray(args.crm_members) ? args.crm_members.length > 0 : String(args.crm_members ?? "").trim() !== "";
7084
+ let roomId = "";
7085
+ let roomName = "";
7086
+ let roomRecommended = false;
7087
+ const pickBest = (recommended, onNoFit) => {
7088
+ const fits = (recommended?.candidates ?? []).filter((c) => !c?.capacity?.max || Number(c.capacity.max) >= declaredCount);
7089
+ let best = fits[0] ?? recommended?.best ?? null;
7090
+ if (fits.length === 0 && best?.capacity?.max && declaredCount > 0 && onNoFit) onNoFit(best);
7091
+ if (hasCustomer) {
7092
+ const receptionFree = (recommended?.candidates ?? []).filter((c) => Array.isArray(c?.reasons) && c.reasons.some((r) => r.startsWith("\u5E26\u5BA2\u6237\u4F18\u5148")) && (!c?.capacity?.max || Number(c.capacity.max) >= declaredCount));
7093
+ if (receptionFree.length === 0) {
7094
+ warnings.push("\u63A5\u5F85\u7C7B\u4F1A\u8BAE\u5BA4\u5728\u8BE5\u65F6\u6BB5\u5747\u4E0D\u53EF\u7528\uFF08\u6216\u88AB\u5360/\u5BB9\u91CF\u4E0D\u8DB3\uFF09\uFF0C\u672C\u6B21\u4E0D\u586B\u4F1A\u8BAE\u5BA4\uFF1B\u8BF7\u5728\u8868\u5355\u91CC\u6539\u65F6\u95F4\u6216\u6307\u5B9A\u623F\u95F4\u3002");
7095
+ return null;
7096
+ }
7097
+ best = receptionFree[0];
7098
+ }
7099
+ return best;
7100
+ };
7101
+ const addressText = String(args.address ?? "").trim();
7102
+ if (addressText !== "") {
7103
+ const room = await resolveAddressRoom(env, addressText);
7104
+ if (room?.id) {
7105
+ roomId = String(room.id);
7106
+ roomName = String(room.name ?? "");
7107
+ } else {
7108
+ const floor = inferRoomFloor(addressText);
7109
+ if (floor !== null && timeProvided && begin && end) {
7110
+ const recommended = await recommendRooms(env, {
7111
+ beginDatetime: begin,
7112
+ endDatetime: end,
7113
+ memberCount: declaredCount > 0 ? declaredCount : 1,
7114
+ hasCustomer,
7115
+ floor: Number(floor),
7116
+ includeBusy: false
7117
+ }).catch(() => null);
7118
+ const best = pickBest(recommended, (candidate) => {
7119
+ warnings.push(
7120
+ `\u300C${addressText}\u300D\uFF08\u63A8\u65AD\u4E3A ${floor} \u697C\uFF09\u91CC\u6CA1\u6709\u80FD\u5BB9\u7EB3 ${declaredCount} \u4EBA\u7684\u4F1A\u8BAE\u5BA4\uFF1A\u5148\u586B\u300C${String(candidate?.name ?? "")}\u300D\uFF08\u53EF\u5BB9 ${Number(candidate.capacity.max)} \u4EBA\uFF09\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u591F\u7528\u3002`
7121
+ );
7122
+ });
7123
+ if (best?.id) {
7124
+ roomId = String(best.id);
7125
+ roomName = String(best.name ?? "");
7126
+ roomRecommended = true;
7127
+ warnings.push(
7128
+ `\u300C${addressText}\u300D\u6309\u697C\u5C42\u5339\u914D\uFF08\u63A8\u65AD\u4E3A ${floor} \u697C\uFF09\u2192 \u5DF2\u586B\u300C${roomName}\u300D\uFF08${(best.reasons ?? []).slice(0, 2).join("\uFF1B")}\uFF09\uFF1B\u8981\u6362\u623F\u95F4\u76F4\u63A5\u5728\u8868\u5355\u91CC\u6539\u3002`
7129
+ );
7130
+ } else if (hasCustomer) {
7131
+ } else {
7132
+ warnings.push(`${addressText}\uFF08\u63A8\u65AD\u4E3A ${floor} \u697C\uFF09\u8BE5\u65F6\u6BB5\u6CA1\u6709\u7A7A\u95F2\u4F1A\u8BAE\u5BA4\uFF0C\u672C\u6B21\u4E0D\u586B\u4F1A\u8BAE\u5BA4\uFF1B\u8BF7\u5728\u8868\u5355\u91CC\u6539\u65F6\u95F4\u6216\u6307\u5B9A\u623F\u95F4\u3002`);
7133
+ }
7134
+ } else if (floor !== null) {
7135
+ warnings.push(`\u300C${addressText}\u300D\u662F\u697C\u5C42\uFF08\u63A8\u65AD\u4E3A ${floor} \u697C\uFF09\u4F46\u6CA1\u6709\u5177\u4F53\u65F6\u95F4\uFF0C\u672A\u9884\u586B\u4F1A\u8BAE\u5BA4\uFF1B\u8BF7\u5728\u8868\u5355\u91CC\u9009\u62E9\u3002`);
7136
+ } else {
7137
+ warnings.push(`\u4F1A\u8BAE\u5BA4\u300C${addressText}\u300D\u672A\u5339\u914D\u5230\u53F0\u8D26\uFF0C\u9875\u9762\u91CC\u9700\u624B\u9009`);
7138
+ }
7139
+ }
7140
+ } else if (timeProvided && begin && end) {
7141
+ const recommended = await recommendRooms(env, {
7142
+ beginDatetime: begin,
7143
+ endDatetime: end,
7144
+ memberCount: declaredCount > 0 ? declaredCount : 1,
7145
+ hasCustomer,
7146
+ includeBusy: false
7147
+ }).catch(() => null);
7148
+ const best = pickBest(recommended, (candidate) => {
7149
+ warnings.push(
7150
+ `\u6CA1\u6709\u80FD\u5BB9\u7EB3 ${declaredCount} \u4EBA\u7684\u4F1A\u8BAE\u5BA4\uFF08\u5DF2\u6309\u5BB9\u91CF\u4E0A\u9650\u8FC7\u6EE4\uFF09\uFF1A\u5148\u586B\u300C${String(candidate?.name ?? "")}\u300D\uFF08\u53EF\u5BB9 ${Number(candidate.capacity.max)} \u4EBA\uFF09\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u591F\u7528\uFF0C\u6216\u6539\u65F6\u95F4/\u6362\u623F\u95F4\u3002`
7151
+ );
7152
+ });
7153
+ if (best?.id) {
7154
+ roomId = String(best.id);
7155
+ roomName = String(best.name ?? "");
7156
+ roomRecommended = true;
7157
+ warnings.push(
7158
+ `\u672A\u6307\u5B9A\u4F1A\u8BAE\u5BA4 \u2192 \u5DF2\u81EA\u52A8\u63A8\u8350\u300C${roomName}\u300D\uFF08${(best.reasons ?? []).slice(0, 2).join("\uFF1B")}\uFF09\uFF1B\u8981\u6362\u623F\u95F4\u76F4\u63A5\u5728\u8868\u5355\u91CC\u6539\uFF0C\u6216\u544A\u8BC9\u6211\u623F\u95F4\u540D\u3002`
7159
+ );
7160
+ } else {
7161
+ warnings.push("\u672A\u6307\u5B9A\u4F1A\u8BAE\u5BA4\uFF0C\u4E14\u8BE5\u65F6\u6BB5\u6CA1\u6709\u53EF\u7528\u5019\u9009\uFF0C\u9875\u9762\u91CC\u9700\u624B\u9009");
7162
+ }
7163
+ } else {
7164
+ warnings.push("\u6CA1\u6709\u5177\u4F53\u65F6\u95F4\uFF0C\u672A\u63A8\u8350\u4F1A\u8BAE\u5BA4\uFF08\u9875\u9762\u91CC\u81EA\u884C\u9009\u62E9\uFF09");
7165
+ }
7166
+ const params = [];
7167
+ const pushValue = (key, value) => {
7168
+ const id = ids[key];
7169
+ if (!id || value === "") return;
7170
+ params.push([id, value]);
7171
+ };
7172
+ pushValue("mt_name", mtName);
7173
+ pushValue("begin_datetime", begin);
7174
+ pushValue("end_datetime", end);
7175
+ pushValue("mt_desc", String(args.mt_desc ?? "").trim());
7176
+ if (roomId) pushValue("address", "##" + roomId);
7177
+ if (people.length > 0 && people.length <= 20) {
7178
+ pushValue("hrm_members", people.map((p) => "##" + p.id).join(","));
7179
+ } else if (people.length > 20) {
7180
+ warnings.push(`\u53C2\u4F1A\u4EBA ${people.length} \u4EBA\uFF0C\u8D85\u8FC7 20 \u4EBA\u672A\u9884\u586B\uFF08URL \u8FC7\u957F\u4F1A\u88AB\u6D4F\u89C8\u5668\u622A\u65AD\uFF09`);
7181
+ }
7182
+ const crmCount = Number(args.crm_member_count) > 0 ? Math.round(Number(args.crm_member_count)) : 0;
7183
+ const totalCount = Math.max(declaredCount, crmCount, people.length);
7184
+ pushValue("total_member", String(totalCount));
7185
+ if (self) pushValue("contacter", "##" + self.id);
7186
+ const crmRows = [];
7187
+ const collectCrm = (item) => {
7188
+ if (item && typeof item === "object") {
7189
+ const row = item;
7190
+ const id = String(row.customerId ?? row.id ?? "").trim();
7191
+ const name = String(row.name ?? "").trim();
7192
+ if (id || name) crmRows.push({ id, name });
7193
+ return;
7194
+ }
7195
+ for (const token of splitTokens(item)) crmRows.push({ id: "", name: token });
7196
+ };
7197
+ if (Array.isArray(args.crm_members)) args.crm_members.forEach(collectCrm);
7198
+ else if (String(args.crm_members ?? "").trim() !== "") collectCrm(args.crm_members);
7199
+ if (crmRows.length > 0) {
7200
+ const first = crmRows[0];
7201
+ if (first.id) {
7202
+ pushValue("crm_members", "##" + first.id);
7203
+ } else {
7204
+ try {
7205
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
7206
+ const search = getMeetingOperation2("meeting.eb.crm.search");
7207
+ const found = await search.handler({ keyword: first.name, pageSize: 10 }, env);
7208
+ const rows = found?.data?.items ?? [];
7209
+ const exact = rows.find((row) => String(row.name ?? "").trim() === first.name);
7210
+ const hit = exact ?? rows[0];
7211
+ if (hit?.customerId) {
7212
+ pushValue("crm_members", "##" + String(hit.customerId));
7213
+ if (rows.length > 1) warnings.push(`\u5BA2\u6237\u300C${first.name}\u300D\u547D\u4E2D ${rows.length} \u5BB6\uFF0C\u5DF2\u53D6\u7B2C\u4E00\u4E2A\uFF1A${String(hit.name ?? "")}`);
7214
+ } else {
7215
+ warnings.push(`\u5BA2\u6237\u300C${first.name}\u300D\u672A\u5EFA\u6863\uFF0C\u5DF2\u8DF3\u8FC7\uFF08\u4E0D\u963B\u65AD\u5EFA\u4F1A\uFF09`);
7216
+ }
7217
+ } catch {
7218
+ warnings.push(`\u5BA2\u6237\u300C${first.name}\u300D\u67E5\u8BE2\u5931\u8D25\uFF0C\u5DF2\u8DF3\u8FC7`);
7219
+ }
7220
+ }
7221
+ }
7222
+ const query = [
7223
+ ["workflowId", workflowId],
7224
+ ["isCreate", "1"],
7225
+ ["initialCovertName", "1"],
7226
+ ...params
7227
+ ].map(([key, value]) => `${encode(key)}=${encode(value)}`).join("&");
7228
+ const url = `${baseUrl}/sp/workflow/flowpage/create/${encodeURIComponent(workflowId)}?${query}`;
7229
+ const options = typeof env.ctx?.getGlobalOptions === "function" ? env.ctx.getGlobalOptions() : void 0;
7230
+ const xiaoe = hasXiaoEEnv(env.ctx?.env ?? process.env, options);
7231
+ const title = mtName || "\u4F1A\u8BAE\u7533\u8BF7";
7232
+ return meetingSuccess("meeting.eb.meeting.create.formLink", {
7233
+ workflowId,
7234
+ url,
7235
+ // 小E 下不返回 Markdown 链接:否则模型会把 URL 先贴出来,内嵌表单起来后才被顶掉。
7236
+ ...xiaoe ? {} : { markdown: `[${title}](${url})` },
7237
+ filled: params.map(([id, value]) => ({ fieldId: id, value })),
7238
+ room: roomId ? { id: roomId, name: roomName, recommended: roomRecommended } : null,
7239
+ hasXiaoEEnv: xiaoe,
7240
+ requiresHostAction: true,
7241
+ clientAction: { type: "openUrl", url },
7242
+ ...xiaoe ? {
7243
+ browserTool: {
7244
+ version: 1,
7245
+ callId: "call_001",
7246
+ toolId: "fill_form",
7247
+ arguments: {
7248
+ type: "e10",
7249
+ title: "\u4F1A\u8BAE\u7533\u8BF7\u6D41\u7A0B",
7250
+ src: url,
7251
+ sdkOptions: {
7252
+ compName: "ui.CorsComponent",
7253
+ routerType: "MemoryRouter",
7254
+ routerProps_pc: { initialEntries: [`/flowpage/create/${workflowId}`] },
7255
+ routerProps_mobile: { initialEntries: [`/flowpage/create/${workflowId}`] },
7256
+ params_pc: { app: "@weapp/workflow", compName: "Comp.WffpRoute" },
7257
+ params_mobile: { app: "@weapp/workflow", compName: "Comp.MWffpRoute", noMDialog: true },
7258
+ params: {
7259
+ customParams: Object.fromEntries(params),
7260
+ fieldAssignKeys: params.map(([id]) => id).join(","),
7261
+ initialCovertName: 1
7262
+ }
7263
+ }
7264
+ }
7265
+ }
7266
+ } : {},
7267
+ hint: xiaoe ? "\u53EA\u8D34\u4E00\u884C <browsertool>{...}</browsertool>\uFF08browserTool \u5E8F\u5217\u5316\uFF0C\u5355\u884C\uFF09\uFF1B\u26D4 \u4E0D\u8981\u8D34 Markdown \u94FE\u63A5\u3001URL \u6216\u5176\u5B83\u8BF4\u660E\u6587\u5B57\u3002" : "\u628A markdown \u94FE\u63A5\u7ED9\u7528\u6237\uFF1B\u63D0\u4EA4\u52A8\u4F5C\u7531\u7528\u6237\u5728\u9875\u9762\u5B8C\u6210\u3002"
7268
+ }, { warnings });
7269
+ }
7270
+ };
7271
+ var meetingCreateFormLinkOperations = [formLink];
7272
+
6957
7273
  // src/shortcuts/meeting/operations/eb/index.ts
6958
7274
  var ebAutoRoomPreflight = async (context) => {
6959
7275
  const { extras } = context;
@@ -7041,7 +7357,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
7041
7357
  const mtId = String(context.dataIds?.[0] ?? "").trim();
7042
7358
  if (!isCreate || !enabled || !mtId) return association;
7043
7359
  try {
7044
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
7360
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
7045
7361
  const render = getMeetingOperation2("meeting.invitation.render");
7046
7362
  const result = await render.handler({ mtId }, context.env);
7047
7363
  return { ...association ?? {}, invitation: result?.data ?? null };
@@ -7077,7 +7393,7 @@ var ebOperationsWithLinks = ebBaseOperations.map((operation) => {
7077
7393
  const raw = String(args.member).trim();
7078
7394
  let uid = /^\d+$/.test(raw) ? raw : "";
7079
7395
  if (!uid) {
7080
- const { resolveMemberIdsByName } = await import("./schedule-6AN63MJQ.js");
7396
+ const { resolveMemberIdsByName } = await import("./schedule-3P7EWGNZ.js");
7081
7397
  const map = await resolveMemberIdsByName(env, [raw]).catch(() => /* @__PURE__ */ new Map());
7082
7398
  uid = String(map.get(raw) ?? "");
7083
7399
  }
@@ -7092,8 +7408,8 @@ var ebOperationsWithLinks = ebBaseOperations.map((operation) => {
7092
7408
  if (!Number.isNaN(start.getTime())) {
7093
7409
  const end = new Date(start);
7094
7410
  end.setDate(end.getDate() + 1);
7095
- const pad2 = (n) => String(n).padStart(2, "0");
7096
- const fmt = (d) => `${d.getFullYear()}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())} 00:00`;
7411
+ const pad3 = (n) => String(n).padStart(2, "0");
7412
+ const fmt = (d) => `${d.getFullYear()}-${pad3(d.getMonth() + 1)}-${pad3(d.getDate())} 00:00`;
7097
7413
  const { date: _date, ...rest } = nextArgs ?? args;
7098
7414
  nextArgs = { ...rest, begindatetime: fmt(start), enddatetime: fmt(end) };
7099
7415
  }
@@ -7116,7 +7432,7 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
7116
7432
  if (!String(nextArgs.mt_minutes_subject ?? "").trim() && nextArgs.mt_id) {
7117
7433
  let meetingName = "";
7118
7434
  try {
7119
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
7435
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
7120
7436
  const detailOp = getMeetingOperation2("meeting.eb.meeting.detail");
7121
7437
  const detail = await detailOp.handler({ id: String(nextArgs.mt_id) }, env);
7122
7438
  const row = detail?.data?.data ?? {};
@@ -7136,8 +7452,8 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
7136
7452
  handler: async (args, env) => {
7137
7453
  const result = await operation.handler(args, env);
7138
7454
  try {
7139
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
7140
- const { ensureMinuteDoc } = await import("./minute-doc-NXRE5C77.js");
7455
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
7456
+ const { ensureMinuteDoc } = await import("./minute-doc-LCSBWGJ3.js");
7141
7457
  const minuteId = String((result?.data?.dataIds ?? [])[0] ?? "").trim();
7142
7458
  if (minuteId) {
7143
7459
  const detail = await getMeetingOperation2("meeting.eb.minute.detail").handler({ id: minuteId }, env);
@@ -7168,6 +7484,7 @@ var meetingEbOperations = [
7168
7484
  ...meetingEbDecisionTaskBatchOperations,
7169
7485
  ...meetingEbDecisionTaskReassignOperations,
7170
7486
  ...meetingEntryOperations,
7487
+ ...meetingCreateFormLinkOperations,
7171
7488
  ...meetingEbScheduleOperations,
7172
7489
  ...meetingEbCrmOperations,
7173
7490
  ...meetingEbCreateFlowOperations,
@@ -7260,7 +7577,7 @@ var composeOutcome = {
7260
7577
  if (args.confirm === false) {
7261
7578
  throw meetingValidationError("confirmation_required", "\u4F20\u4E86 confirm=false\uFF0C\u5DF2\u963B\u6B62\u5199\u5165");
7262
7579
  }
7263
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-I4DVPDMU.js");
7580
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
7264
7581
  let mtId = String(args.mt_id ?? "").trim();
7265
7582
  if (!mtId) {
7266
7583
  const listOp2 = getMeetingOperation2("meeting.eb.meeting.list");