weaver-work-cli 0.1.73 → 0.1.76

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 (363) hide show
  1. package/README.md +37 -1
  2. package/dist/chunks/{archive-THZV4ND4.js → archive-ENBSUMHV.js} +14 -9
  3. package/dist/chunks/{archive-oa-PQ23OLEV.js → archive-oa-7BFPQ6M5.js} +10 -7
  4. package/dist/chunks/{asset-RGPROZYH.js → asset-V5SUD3PW.js} +10 -7
  5. package/dist/chunks/{asset-idle-Z2PDX7NA.js → asset-idle-3CEL7WFX.js} +7 -4
  6. package/dist/chunks/{attachment-content-R3RPVOYE.js → attachment-content-24RL44SE.js} +3 -3
  7. package/dist/chunks/{blog-7U3QZPIF.js → blog-FLI4SS3P.js} +10 -7
  8. package/dist/chunks/{caizhilian-3AB42GCV.js → caizhilian-7WCTKCCP.js} +10 -7
  9. package/dist/chunks/{calendar-KINM64E4.js → calendar-G726HUUH.js} +10 -7
  10. package/dist/chunks/chunk-257JXJGD.js +30 -0
  11. package/dist/chunks/chunk-2BZ7TY4M.js +49 -0
  12. package/dist/chunks/{chunk-4BXR6CNB.js → chunk-2KW7AI6P.js} +2 -2
  13. package/dist/chunks/{chunk-WM33BSIL.js → chunk-2QCCXPNU.js} +1 -1
  14. package/dist/chunks/chunk-2UV4IZIT.js +473 -0
  15. package/dist/chunks/{chunk-R3MK2RBN.js → chunk-5E2FDXBU.js} +1 -1
  16. package/dist/chunks/{chunk-DRUND2PJ.js → chunk-5QUTQHXF.js} +225 -152
  17. package/dist/chunks/chunk-7DE3VMZD.js +35 -0
  18. package/dist/chunks/{chunk-PAFOLIYQ.js → chunk-AZC53XSQ.js} +1 -1
  19. package/dist/chunks/{chunk-6HT73VOI.js → chunk-BWFCTE43.js} +2 -2
  20. package/dist/chunks/{chunk-4YXAK6OA.js → chunk-FEZK536Z.js} +12 -7
  21. package/dist/chunks/{chunk-IU6UB2TD.js → chunk-FPWCCRKT.js} +48 -6
  22. package/dist/chunks/{chunk-LLCMOZ5L.js → chunk-H6N6U2D6.js} +11 -11
  23. package/dist/chunks/{chunk-54ST55IJ.js → chunk-JJONWB5N.js} +11 -1
  24. package/dist/chunks/{chunk-GWJLAF6B.js → chunk-JWF2R6EQ.js} +0 -462
  25. package/dist/chunks/chunk-KINXYJXM.js +205 -0
  26. package/dist/chunks/{chunk-F4HM25K4.js → chunk-KJA7CRES.js} +1 -1
  27. package/dist/chunks/chunk-L5SCNJKX.js +1166 -0
  28. package/dist/chunks/{chunk-TV46Q4NY.js → chunk-MS7MKBGJ.js} +74 -68
  29. package/dist/chunks/{chunk-XZBYRYWX.js → chunk-NZQRW4KL.js} +2 -2
  30. package/dist/chunks/chunk-OJ4JPD25.js +428 -0
  31. package/dist/chunks/chunk-OVTCWLNQ.js +1346 -0
  32. package/dist/chunks/{chunk-NUP4RYZK.js → chunk-PMRNIGKZ.js} +2 -2
  33. package/dist/chunks/{chunk-2CHGUYMG.js → chunk-Q7RXCK2Y.js} +4 -4
  34. package/dist/chunks/{chunk-AMAPQVBT.js → chunk-QVKRNL7L.js} +286 -305
  35. package/dist/chunks/{chunk-7QFVXP2X.js → chunk-R4PN3OFK.js} +8 -7
  36. package/dist/chunks/{chunk-L7TYG5SN.js → chunk-RVEKGVZU.js} +2 -2
  37. package/dist/chunks/{chunk-2XED2FKY.js → chunk-SQFKBWTR.js} +38 -36
  38. package/dist/chunks/chunk-SU6IJD6D.js +49 -0
  39. package/dist/chunks/{chunk-IBSJJGXL.js → chunk-T7HVQ2WP.js} +2 -2
  40. package/dist/chunks/{chunk-ZWLWXHJC.js → chunk-TBCKK6LH.js} +2 -2
  41. package/dist/chunks/{chunk-JMJBPP4B.js → chunk-UDBQJLQF.js} +2 -2
  42. package/dist/chunks/chunk-UUJK76HV.js +209 -0
  43. package/dist/chunks/{chunk-4I26YMBY.js → chunk-WHI6YAUE.js} +7 -3
  44. package/dist/chunks/{chunk-BWYVS62Z.js → chunk-WJQJ7YEX.js} +4 -4
  45. package/dist/chunks/{chunk-GAMGDNTF.js → chunk-XNN5PZTI.js} +1 -1
  46. package/dist/chunks/chunk-Y3C6MDL7.js +28 -0
  47. package/dist/chunks/chunk-ZM7RN2IM.js +38 -0
  48. package/dist/chunks/cli-DFLV57LO.js +226 -0
  49. package/dist/chunks/commands-J52MJ6NF.js +70 -0
  50. package/dist/chunks/{conflict-VPAR7E6F.js → conflict-72Q6DM4I.js} +2 -2
  51. package/dist/chunks/{contract-DDXAO2DZ.js → contract-IRNRQ5FY.js} +12446 -5964
  52. package/dist/chunks/{cowork-34QCHMDD.js → cowork-GZDODGKF.js} +11 -8
  53. package/dist/chunks/{create-flow-52PU2OBI.js → create-flow-UGTDI7SP.js} +6 -6
  54. package/dist/chunks/{data-CLQ62QGD.js → data-HTQZRPPI.js} +6 -3
  55. package/dist/chunks/{ebuilder-form-W5R7Q22S.js → ebuilder-form-GHNIZ7ET.js} +9 -6
  56. package/dist/chunks/{ehr-LCNAVMK5.js → ehr-PHIBBUIG.js} +23 -16
  57. package/dist/chunks/{entry-mode-6Z3ZV3DE.js → entry-mode-5WOXFE67.js} +3 -3
  58. package/dist/chunks/{env-RDKWAARB.js → env-H4ALHESA.js} +2 -2
  59. package/dist/chunks/{esb-ANKPUU65.js → esb-ATRKVHCD.js} +10 -7
  60. package/dist/chunks/{factory-434B7RAT.js → factory-COX6AVK7.js} +1 -1
  61. package/dist/chunks/{fna-AKBSG5HI.js → fna-IKYI3SST.js} +13 -8
  62. package/dist/chunks/{group-chat-PROTW22R.js → group-chat-ZIWQQO4G.js} +3 -3
  63. package/dist/chunks/{host-5R2SNFWD.js → host-6UOXYOOY.js} +6 -3
  64. package/dist/chunks/{host-7FJW4E7R.js → host-EJSJSLVK.js} +6 -3
  65. package/dist/chunks/{host-WO4L5G5I.js → host-EYNLB6S4.js} +6 -3
  66. package/dist/chunks/{host-PDJAKCT7.js → host-OT4KNR3G.js} +6 -3
  67. package/dist/chunks/{host-CGXUFQO4.js → host-UY4LQPN4.js} +6 -3
  68. package/dist/chunks/{host-XIYG4F4B.js → host-XXGDQM7D.js} +6 -3
  69. package/dist/chunks/{hrm-WGODDTEH.js → hrm-5JQ7QZ6A.js} +8 -5
  70. package/dist/chunks/{im-YKTKAJU3.js → im-2YJW3EI5.js} +7 -4
  71. package/dist/chunks/{invoice-PVYCCCVM.js → invoice-37HR6L3W.js} +956 -566
  72. package/dist/chunks/{jiuchuanhui-RKOQW7BY.js → jiuchuanhui-KBWUZ7WT.js} +17 -10
  73. package/dist/chunks/{lazy-dispatch-DW45AFQ5.js → lazy-dispatch-MZ3EZYDL.js} +22 -8
  74. package/dist/chunks/{mail-BNB5S4NW.js → mail-YBKUM6HM.js} +11 -8
  75. package/dist/chunks/{meeting-O2KDJH66.js → meeting-XE6CTXYA.js} +22 -18
  76. package/dist/chunks/{minute-doc-JUCG56GY.js → minute-doc-4BA2R5EA.js} +4 -4
  77. package/dist/chunks/{okr-LWFGWOE7.js → okr-HW7IULIR.js} +10 -7
  78. package/dist/chunks/{operations-532PN5OB.js → operations-4P2UYVLH.js} +7 -4
  79. package/dist/chunks/{performance-7W5COCFU.js → performance-PM2G6L3E.js} +6 -3
  80. package/dist/chunks/{plan-ZVY3IYTL.js → plan-3YYGZ7ZM.js} +10 -7
  81. package/dist/chunks/{project-SA62B7MH.js → project-XREEXFU2.js} +10 -7
  82. package/dist/chunks/{reception-NGIONPQ3.js → reception-7G3J2MA6.js} +8 -4
  83. package/dist/chunks/{recruit-stage-WOSN6MGP.js → recruit-stage-TSQWOGQD.js} +199 -74
  84. package/dist/chunks/register-SQOPIR2G.js +16 -0
  85. package/dist/chunks/{registry-N7P3W2RD.js → registry-3VTB3KLV.js} +7 -4
  86. package/dist/chunks/registry-7UDUWYB5.js +30 -0
  87. package/dist/chunks/{registry-R72GWXOG.js → registry-F4YFZLOD.js} +7 -3
  88. package/dist/chunks/{room-recommend-KCGIVUFR.js → room-recommend-FO3HLPNB.js} +4 -4
  89. package/dist/chunks/root-YZG2TS5W.js +16 -0
  90. package/dist/chunks/{schedule-6UP27HQ4.js → schedule-DHNNOHVS.js} +4 -4
  91. package/dist/chunks/{smart-extract-DDOQSPRB.js → smart-extract-T5Z4AULN.js} +15 -7
  92. package/dist/chunks/update-AV5VOXGY.js +13 -0
  93. package/dist/chunks/{workflow-V5ALD6QZ.js → workflow-MAGCHWYZ.js} +15 -10
  94. package/dist/cli.js +40 -0
  95. package/dist/cmd/action.js +3 -1
  96. package/dist/cmd/doctor/index.js +1 -1
  97. package/dist/cmd/e10/index.js +1 -1
  98. package/dist/cmd/identity/index.js +5 -8
  99. package/dist/cmd/index.js +2 -0
  100. package/dist/cmd/setup/index.js +1 -1
  101. package/dist/cmd/update/index.js +38 -0
  102. package/dist/core/manifest-view.js +1 -1
  103. package/dist/core/output.js +8 -1
  104. package/dist/core/runtime-agent.js +13 -0
  105. package/dist/core/update-notice.js +23 -0
  106. package/dist/index.js +105 -198
  107. package/dist/internal/e10/auth/agent-host-key.js +16 -0
  108. package/dist/internal/e10/auth/agent-hosts.js +45 -9
  109. package/dist/internal/e10/auth/commands.js +66 -36
  110. package/dist/internal/e10/auth/session.js +30 -15
  111. package/dist/internal/e10/auth/xiaoe.js +4 -20
  112. package/dist/internal/e10/auth-recovery.js +44 -4
  113. package/dist/internal/e10/context.js +5 -2
  114. package/dist/internal/update/bootstrap.js +96 -0
  115. package/dist/internal/update/npm.js +78 -0
  116. package/dist/internal/update/service.js +252 -0
  117. package/dist/internal/update/store.js +135 -0
  118. package/dist/shortcuts/archive/index.js +2 -2
  119. package/dist/shortcuts/archive/manifest.js +1 -0
  120. package/dist/shortcuts/archive/operations/search.js +3 -1
  121. package/dist/shortcuts/archive-oa/index.js +1 -1
  122. package/dist/shortcuts/asset/index.js +1 -1
  123. package/dist/shortcuts/asset-idle/index.js +1 -1
  124. package/dist/shortcuts/blog/index.js +1 -1
  125. package/dist/shortcuts/caizhilian/index.js +1 -1
  126. package/dist/shortcuts/calendar/index.js +1 -1
  127. package/dist/shortcuts/contract/data/bi-config.js +156 -0
  128. package/dist/shortcuts/contract/data/collection-ledger-html.js +189 -0
  129. package/dist/shortcuts/contract/data/collection-node-catalog.js +226 -0
  130. package/dist/shortcuts/contract/data/metric-catalog.js +154 -20
  131. package/dist/shortcuts/contract/data/report-renderers.js +414 -0
  132. package/dist/shortcuts/contract/data/report-spec.js +132 -0
  133. package/dist/shortcuts/contract/error-actions.js +114 -0
  134. package/dist/shortcuts/contract/host.js +12 -3
  135. package/dist/shortcuts/contract/index.js +17 -1
  136. package/dist/shortcuts/contract/manifest.js +398 -3
  137. package/dist/shortcuts/contract/ooxml/docx-table.js +48 -0
  138. package/dist/shortcuts/contract/operations/bi-preview.js +131 -0
  139. package/dist/shortcuts/contract/operations/bizreview-report.js +496 -0
  140. package/dist/shortcuts/contract/operations/collection-node.js +229 -0
  141. package/dist/shortcuts/contract/operations/docx-slots.js +735 -16
  142. package/dist/shortcuts/contract/operations/draft-build.js +940 -0
  143. package/dist/shortcuts/contract/operations/draft-submit.js +229 -0
  144. package/dist/shortcuts/contract/operations/first-screen.js +3 -2
  145. package/dist/shortcuts/contract/operations/generated-submit.js +175 -0
  146. package/dist/shortcuts/contract/operations/ledger-report.js +233 -0
  147. package/dist/shortcuts/contract/operations/ledger-stat.js +1400 -0
  148. package/dist/shortcuts/contract/operations/ledger.js +4 -1
  149. package/dist/shortcuts/contract/operations/metrics.js +9 -3
  150. package/dist/shortcuts/contract/operations/ops-draft.js +527 -0
  151. package/dist/shortcuts/contract/operations/page.js +9 -0
  152. package/dist/shortcuts/contract/operations/quote-submit.js +55 -229
  153. package/dist/shortcuts/contract/operations/registry.js +20 -0
  154. package/dist/shortcuts/contract/operations/sign-launch.js +256 -0
  155. package/dist/shortcuts/contract/operations/viewlink.js +334 -0
  156. package/dist/shortcuts/cowork/index.js +2 -2
  157. package/dist/shortcuts/ebuilder-form/index.js +1 -1
  158. package/dist/shortcuts/ehr/index.js +2 -2
  159. package/dist/shortcuts/ehr/manifest.js +1 -1
  160. package/dist/shortcuts/ehr/operations/recruit-position.js +7 -2
  161. package/dist/shortcuts/ehr/operations/recruit-write.js +7 -6
  162. package/dist/shortcuts/ehr/operations/recruit.js +318 -248
  163. package/dist/shortcuts/ehr/operations/shared.js +22 -2
  164. package/dist/shortcuts/esb/index.js +1 -1
  165. package/dist/shortcuts/fna/index.js +1 -1
  166. package/dist/shortcuts/fna/manifest.js +1 -0
  167. package/dist/shortcuts/fna/operations/expense-chart.js +3 -1
  168. package/dist/shortcuts/hrm/index.js +1 -1
  169. package/dist/shortcuts/invoice/business-response.js +13 -0
  170. package/dist/shortcuts/invoice/calendar.js +24 -0
  171. package/dist/shortcuts/invoice/host.js +26 -15
  172. package/dist/shortcuts/invoice/index.js +3 -3
  173. package/dist/shortcuts/invoice/invoice-record.js +7 -2
  174. package/dist/shortcuts/invoice/manifest.js +179 -155
  175. package/dist/shortcuts/invoice/operations/get.js +9 -3
  176. package/dist/shortcuts/invoice/operations/issuing-red-requests.js +138 -0
  177. package/dist/shortcuts/invoice/operations/registry.js +4 -5
  178. package/dist/shortcuts/invoice/operations/reim-auto.js +40 -2
  179. package/dist/shortcuts/invoice/operations/reim-customer-projects.js +79 -0
  180. package/dist/shortcuts/invoice/operations/reim-customer.js +79 -30
  181. package/dist/shortcuts/invoice/operations/reim-relation.js +0 -146
  182. package/dist/shortcuts/invoice/operations/reim.js +2 -126
  183. package/dist/shortcuts/invoice/operations/shared.js +15 -17
  184. package/dist/shortcuts/invoice/preapproval-enrichment.js +180 -0
  185. package/dist/shortcuts/invoice/projection.js +14 -0
  186. package/dist/shortcuts/invoice/read-enrichment.js +123 -0
  187. package/dist/shortcuts/jiuchuanhui/index.js +2 -2
  188. package/dist/shortcuts/jiuchuanhui/manifest.js +3 -0
  189. package/dist/shortcuts/mail/index.js +2 -2
  190. package/dist/shortcuts/meeting/index.js +1 -1
  191. package/dist/shortcuts/meeting/manifest.js +1 -0
  192. package/dist/shortcuts/meeting/operations/eb/catalog.js +5 -3
  193. package/dist/shortcuts/meeting/operations/eb/conflict.js +3 -1
  194. package/dist/shortcuts/meeting/operations/eb/create-flow.js +10 -9
  195. package/dist/shortcuts/meeting/operations/eb/factory.js +2 -0
  196. package/dist/shortcuts/meeting/operations/eb/member-expand.js +3 -2
  197. package/dist/shortcuts/meeting/operations/invitation-publish.js +3 -3
  198. package/dist/shortcuts/meeting/operations/invitation.js +4 -4
  199. package/dist/shortcuts/meeting/operations/link.js +3 -1
  200. package/dist/shortcuts/okr/index.js +1 -1
  201. package/dist/shortcuts/performance/index.js +1 -1
  202. package/dist/shortcuts/plan/index.js +1 -1
  203. package/dist/shortcuts/project/index.js +1 -1
  204. package/dist/shortcuts/reception/manifest.js +2 -2
  205. package/dist/shortcuts/recruit-stage/context.js +10 -2
  206. package/dist/shortcuts/recruit-stage/index.js +16 -3
  207. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +1 -1
  208. package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -1
  209. package/dist/shortcuts/recruit-stage/operations/jd-create.js +17 -8
  210. package/dist/shortcuts/recruit-stage/operations/list.js +1 -1
  211. package/dist/shortcuts/recruit-stage/operations/resume-import.js +178 -35
  212. package/dist/shortcuts/recruit-stage/operations/search.js +2 -2
  213. package/dist/shortcuts/recruit-stage/operations/shortlist.js +4 -2
  214. package/dist/shortcuts/recruit-stage/shared.js +27 -53
  215. package/dist/shortcuts/smart-extract/manifest.js +1 -0
  216. package/dist/shortcuts/smart-extract/operations/fill.js +7 -2
  217. package/dist/shortcuts/smart-extract/operations/validate.js +4 -1
  218. package/dist/shortcuts/workflow/index.js +2 -2
  219. package/dist/shortcuts/workflow/manifest.js +1 -0
  220. package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +4 -1
  221. package/dist/shortcuts/workflow/operations/deepRead.js +23 -2
  222. package/dist/shortcuts/workflow/operations/form.js +8 -2
  223. package/docs/agent-invoice.md +28 -2
  224. package/docs/contract.md +6 -1
  225. package/docs/e10-auth.md +25 -7
  226. package/docs/invoice.md +60 -9
  227. package/docs/operation-manual.md +15 -0
  228. package/package.json +2 -2
  229. package/skill-template/business-info.json +28 -0
  230. package/skill-template/domains/jinchengda.md +13 -1
  231. package/skill-template/domains/yepiaotong.md +36 -7
  232. package/skills/weaver-e10-archive-oa/references/source-manifest.json +3 -3
  233. package/skills/weaver-e10-caizhilian/references/auth-and-install.md +2 -1
  234. package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
  235. package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
  236. package/skills/weaver-e10-jinchengda/SKILL.md +90 -32
  237. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +45 -0
  238. package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +68 -0
  239. package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +216 -0
  240. package/skills/weaver-e10-jinchengda/references/contract-clause-negotiate.md +215 -0
  241. package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +113 -0
  242. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +19 -3
  243. package/skills/weaver-e10-jinchengda/references/contract-decisions.md +114 -0
  244. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +53 -44
  245. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +1 -1
  246. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +1 -1
  247. package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +200 -0
  248. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -1
  249. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +138 -3
  250. package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +158 -0
  251. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +3 -1
  252. package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +139 -0
  253. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +2 -2
  254. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +10 -3
  255. package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +106 -0
  256. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
  257. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +176 -56
  258. package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +123 -0
  259. package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +410 -0
  260. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
  261. package/skills/weaver-e10-jinchengda/references/contract-viewlink.md +110 -0
  262. package/skills/weaver-e10-jinchengda/references/orchestration.md +38 -24
  263. package/skills/weaver-e10-meeting/SKILL.md +13 -0
  264. package/skills/weaver-e10-okr/SKILL.md +11 -0
  265. package/skills/weaver-e10-okr/references/source-manifest.json +7 -6
  266. package/skills/weaver-e10-performance/SKILL.md +131 -39
  267. package/skills/weaver-e10-performance/agents/openai.yaml +48 -17
  268. package/skills/weaver-e10-performance/references/default-assembly.md +3 -0
  269. package/skills/weaver-e10-performance/references/extraction-guide.md +17 -3
  270. package/skills/weaver-e10-performance/references/flow-assess.md +38 -5
  271. package/skills/weaver-e10-performance/references/scheme-setting-page.md +20 -3
  272. package/skills/weaver-e10-performance/scripts/assemble_scheme.py +461 -0
  273. package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +41 -0
  274. package/skills/weaver-e10-plan/SKILL.md +10 -0
  275. package/skills/weaver-e10-plan/references/source-manifest.json +13 -13
  276. package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
  277. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +9 -9
  278. package/skills/weaver-e10-recruit-stage/SKILL.md +230 -202
  279. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +74 -46
  280. package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +3 -0
  281. package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +201 -36
  282. package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +336 -27
  283. package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +3 -0
  284. package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +15 -1
  285. package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +38 -0
  286. package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +5 -1
  287. package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +4 -0
  288. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +4 -0
  289. package/skills/weaver-e10-recruit-stage/references/position-templates.md +12 -8
  290. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +20 -18
  291. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +11 -7
  292. package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +5 -1
  293. package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +4 -0
  294. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +8 -4
  295. package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +6 -1
  296. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +7 -3
  297. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +32 -25
  298. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +4 -0
  299. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -0
  300. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +5 -1
  301. package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +4 -0
  302. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +16 -10
  303. package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +6 -2
  304. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +148 -40
  305. package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +5 -1
  306. package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +32 -8
  307. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +4 -0
  308. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +8 -4
  309. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +6 -2
  310. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +41 -41
  311. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +7 -3
  312. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +7 -3
  313. package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +8 -4
  314. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +5 -1
  315. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +5 -1
  316. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +5 -1
  317. package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +41 -28
  318. package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +23 -26
  319. package/skills/weaver-e10-recruit-stage/templates/match-report.html +44 -36
  320. package/skills/weaver-e10-shared/SKILL.md +40 -5
  321. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +11 -1
  322. package/skills/weaver-e10-shared/references/json-output-contract.md +144 -8
  323. package/skills/weaver-e10-shared/references/weaver-e10-installation.md +11 -0
  324. package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
  325. package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
  326. package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
  327. package/skills/weaver-e10-yepiaotong/SKILL.md +133 -61
  328. package/skills/weaver-e10-yepiaotong/references/invoice-add.md +3 -1
  329. package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +18 -2
  330. package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +3 -3
  331. package/skills/weaver-e10-yepiaotong/references/invoice-download.md +1 -1
  332. package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +13 -1
  333. package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +3 -1
  334. package/skills/weaver-e10-yepiaotong/references/invoice-import.md +6 -4
  335. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +42 -45
  336. package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +1 -1
  337. package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +18 -2
  338. package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +14 -1
  339. package/skills/weaver-e10-yepiaotong/references/invoice-red-workflow.md +96 -0
  340. package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +56 -369
  341. package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +16 -6
  342. package/skills/weaver-e10-yepiaotong/references/name-fuzzy-search.md +38 -0
  343. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +163 -646
  344. package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +90 -44
  345. package/skills/weaver-e10-yepiaotong/references/reim-eligibility-rules.md +85 -0
  346. package/skills/weaver-e10-yepiaotong/references/reim-fill-validation.md +61 -0
  347. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +91 -280
  348. package/skills/weaver-e10-yepiaotong/references/reim-preapproval-rules.md +98 -0
  349. package/skills/weaver-e10-yepiaotong/references/reim-travel-invoice-matching.md +48 -0
  350. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +234 -695
  351. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +395 -204
  352. package/skills/weaver-e10-yepiaotong/references/travel-application-fill.md +84 -0
  353. package/skills/weaver-e10-yepiaotong/references/workflow-direct-fill.md +165 -0
  354. package/skills/weaver-e10-yepiaotong.zip +0 -0
  355. package/dist/chunks/chunk-ICP53R52.js +0 -2849
  356. package/dist/chunks/registry-RIQ67ZT7.js +0 -27
  357. package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
  358. package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
  359. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +0 -93
  360. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +0 -774
  361. package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +0 -111
  362. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +0 -360
  363. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +0 -167
@@ -0,0 +1,209 @@
1
+ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
+ const require = __esbuildCreateRequire(import.meta.url);
3
+ import {
4
+ Output
5
+ } from "./chunk-JJONWB5N.js";
6
+ import {
7
+ Command
8
+ } from "./chunk-JWF2R6EQ.js";
9
+ import {
10
+ normalizeGlobalOptions
11
+ } from "./chunk-Y3C6MDL7.js";
12
+ import {
13
+ packagePath
14
+ } from "./chunk-2BZ7TY4M.js";
15
+
16
+ // src/cmd/root.ts
17
+ import { readFileSync as readFileSync2 } from "node:fs";
18
+
19
+ // src/core/context.ts
20
+ import { homedir } from "node:os";
21
+ import { resolve as resolve2 } from "node:path";
22
+
23
+ // src/core/config-store.ts
24
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
25
+ import { dirname } from "node:path";
26
+ var ConfigStore = class {
27
+ constructor(getPath) {
28
+ this.getPath = getPath;
29
+ }
30
+ getPath;
31
+ path() {
32
+ return this.getPath();
33
+ }
34
+ all() {
35
+ const filePath = this.path();
36
+ if (!existsSync(filePath)) return {};
37
+ try {
38
+ const value = JSON.parse(readFileSync(filePath, "utf-8"));
39
+ return value && typeof value === "object" && !Array.isArray(value) ? value : {};
40
+ } catch {
41
+ return {};
42
+ }
43
+ }
44
+ get(key) {
45
+ return this.all()[key];
46
+ }
47
+ set(key, value) {
48
+ const data = this.all();
49
+ data[key] = value;
50
+ this.save(data);
51
+ }
52
+ delete(key) {
53
+ const data = this.all();
54
+ const existed = Object.prototype.hasOwnProperty.call(data, key);
55
+ delete data[key];
56
+ this.save(data);
57
+ return existed;
58
+ }
59
+ save(data) {
60
+ const filePath = this.path();
61
+ mkdirSync(dirname(filePath), { recursive: true });
62
+ writeFileSync(filePath, JSON.stringify(data, null, 2) + "\n", "utf-8");
63
+ }
64
+ };
65
+
66
+ // src/core/logger.ts
67
+ var Logger = class {
68
+ constructor(getOptions) {
69
+ this.getOptions = getOptions;
70
+ }
71
+ getOptions;
72
+ /**
73
+ * 机器模式:进度与提示改走 stderr,stdout 只留给结构化结果。
74
+ *
75
+ * 只有显式开启的平台型命令(如 `auth init`)会打开它,默认关闭,
76
+ * 因此既有命令的 stdout 输出口径完全不变。
77
+ */
78
+ machineMode = false;
79
+ info(message) {
80
+ if (this.machineMode) {
81
+ console.error(message);
82
+ return;
83
+ }
84
+ const opts = this.getOptions();
85
+ if (!opts.quiet && !opts.json) {
86
+ console.log(message);
87
+ }
88
+ }
89
+ warn(message) {
90
+ const opts = this.getOptions();
91
+ if (!opts.quiet && !opts.json) {
92
+ console.warn(message);
93
+ }
94
+ }
95
+ error(message) {
96
+ console.error(message);
97
+ }
98
+ debug(message) {
99
+ const opts = this.getOptions();
100
+ if (opts.verbose && !opts.json) {
101
+ console.error("[debug] " + message);
102
+ }
103
+ }
104
+ };
105
+
106
+ // src/core/context.ts
107
+ function createCliContext(program, hooks, packageInfo) {
108
+ const getGlobalOptions = () => normalizeGlobalOptions(program.opts());
109
+ const configStore = new ConfigStore(() => {
110
+ const opts = getGlobalOptions();
111
+ const home = process.env.WEAVER_WORK_CLI_HOME || process.env.WORK_CLI_HOME || resolve2(homedir(), ".weaver-work-cli");
112
+ return opts.config ? resolve2(opts.config) : resolve2(home, "config.json");
113
+ });
114
+ const partialCtx = {
115
+ cwd: process.cwd(),
116
+ env: process.env,
117
+ program,
118
+ hooks,
119
+ packageInfo,
120
+ commands: [],
121
+ modules: [],
122
+ getGlobalOptions,
123
+ forCommand(command) {
124
+ return { ...ctx, activeCommand: command };
125
+ }
126
+ };
127
+ const ctx = partialCtx;
128
+ ctx.logger = new Logger(getGlobalOptions);
129
+ ctx.output = new Output(ctx);
130
+ ctx.config = configStore;
131
+ return ctx;
132
+ }
133
+
134
+ // src/core/hooks.ts
135
+ var HookManager = class {
136
+ hooks = {
137
+ beforeCommand: [],
138
+ afterCommand: [],
139
+ onError: [],
140
+ beforeRun: [],
141
+ afterRun: []
142
+ };
143
+ e10RequestInterceptors = [];
144
+ register(hooks) {
145
+ for (const [name, handler] of Object.entries(hooks)) {
146
+ if (handler) {
147
+ this.hooks[name].push(handler);
148
+ }
149
+ }
150
+ }
151
+ async beforeCommand(ctx) {
152
+ for (const hook of this.hooks.beforeCommand) {
153
+ await hook(ctx);
154
+ }
155
+ }
156
+ async afterCommand(ctx, result) {
157
+ for (const hook of this.hooks.afterCommand) {
158
+ await hook(ctx, result);
159
+ }
160
+ }
161
+ async onError(ctx, error) {
162
+ for (const hook of this.hooks.onError) {
163
+ await hook(ctx, error);
164
+ }
165
+ }
166
+ async beforeRun(ctx) {
167
+ for (const hook of this.hooks.beforeRun) {
168
+ await hook(ctx);
169
+ }
170
+ }
171
+ async afterRun(ctx, result) {
172
+ for (const hook of this.hooks.afterRun) {
173
+ await hook(ctx, result);
174
+ }
175
+ }
176
+ registerE10RequestInterceptor(interceptor) {
177
+ this.e10RequestInterceptors.push(interceptor);
178
+ }
179
+ getE10RequestInterceptors() {
180
+ return this.e10RequestInterceptors;
181
+ }
182
+ };
183
+
184
+ // src/cmd/root.ts
185
+ var CLI_COMMAND_NAME = "weaver-work-cli";
186
+ function readPackageInfo() {
187
+ const pkg = JSON.parse(readFileSync2(packagePath("package.json"), "utf-8"));
188
+ return {
189
+ name: pkg.name || CLI_COMMAND_NAME,
190
+ version: pkg.version || "0.0.0",
191
+ description: pkg.description
192
+ };
193
+ }
194
+ function createProgram() {
195
+ const packageInfo = readPackageInfo();
196
+ const program = new Command();
197
+ const hooks = new HookManager();
198
+ const ctx = createCliContext(program, hooks, packageInfo);
199
+ program.name(CLI_COMMAND_NAME).description(packageInfo.description || "Extensible TypeScript CLI").version(packageInfo.version).option("--json", "print command output as JSON").option("--quiet", "suppress non-error logs").option("--verbose", "print debug logs").option("--config <path>", "use a custom weaver-work-cli config file").option("--auth <path>", "use a specific E10 auth file").option("--profile <name>", "use a specific E10 profile").option("--runtime-agent <name>", "identify the current agent runtime (for example: xiaoe)").option(
200
+ "--is-connector [value]",
201
+ "run as the WorkBuddy connector: use the fixed E10 profile managed by the connector"
202
+ ).option("--base-url <url>", "override E10 base URL").option("--passport-url <url>", "override E10 passport URL");
203
+ program.showHelpAfterError();
204
+ return { program, ctx };
205
+ }
206
+
207
+ export {
208
+ createProgram
209
+ };
@@ -853,7 +853,8 @@ var EB_ENDPOINTS = [
853
853
  queryParams: ["mt_id", "address", "enddatetime", "begindatetime"],
854
854
  dateFilter: true,
855
855
  paramAliases: { roomId: "address", room_id: "address", day: "date" },
856
- summary: "EB \u7248\u4F1A\u8BAE\u5BA4\u5360\u7528\u5217\u8868\uFF08query_roomusage_list + count\uFF09\u3002\u6309\u65E5\u671F\u8FC7\u6EE4\u4F20 date\uFF08yyyy-MM-dd\uFF09\u6216 begindatetime/enddatetime\uFF1B**\u4E0D\u4F20\u4EFB\u4F55\u65F6\u95F4\u6761\u4EF6 = \u8FD4\u56DE\u5168\u91CF\u5386\u53F2**\uFF0C\u4E0D\u662F\u63A5\u53E3\u4E0D\u652F\u6301\u8FC7\u6EE4"
856
+ summary: "EB \u7248\u4F1A\u8BAE\u5BA4\u5360\u7528\u5217\u8868\uFF08query_roomusage_list + count\uFF09\uFF1B\u6309\u65E5\u671F\u8FC7\u6EE4\u4F20 date \u6216 begindatetime/enddatetime",
857
+ contractNotes: "\u65E5\u671F\u683C\u5F0F date=yyyy-MM-dd\uFF1B**\u4E0D\u4F20\u4EFB\u4F55\u65F6\u95F4\u6761\u4EF6 = \u8FD4\u56DE\u5168\u91CF\u5386\u53F2**\uFF0C\u4E0D\u662F\u63A5\u53E3\u4E0D\u652F\u6301\u8FC7\u6EE4\u3002"
857
858
  },
858
859
  {
859
860
  domain: "roomUsage",
@@ -1377,7 +1378,8 @@ var EB_ENDPOINTS = [
1377
1378
  pkQueryParam: "id",
1378
1379
  // 文档示例里 operateType.detail1 支持 cover(整组覆盖),默认是更新追加
1379
1380
  detailCover: true,
1380
- summary: "EB \u7248\u66F4\u65B0\u4F1A\u8BAE\u51B3\u8BAE\uFF08update_mt_decision\uFF09\uFF1A\u6539\u6982\u8FF0\u6587\u672C + \u51B3\u8BAE\u660E\u7EC6\uFF082026-10-27 \u65B0\u589E\u63A5\u53E3\uFF09",
1381
+ summary: "EB \u7248\u66F4\u65B0\u4F1A\u8BAE\u51B3\u8BAE\uFF08update_mt_decision\uFF09\uFF1A\u6539\u6982\u8FF0\u6587\u672C + \u51B3\u8BAE\u660E\u7EC6",
1382
+ contractNotes: "update_mt_decision \u4E3A 2026-10-27 \u65B0\u589E\u63A5\u53E3\uFF08\u6E90\u8D44\u6599\u53E3\u5F84\uFF09\uFF1B\u6539\u6982\u8FF0\u6587\u672C\u4F20 id + mt_content \u5373\u53EF\uFF0C\u660E\u7EC6\u9ED8\u8BA4\u300C\u66F4\u65B0\u8FFD\u52A0\u300D\uFF0C\u8981\u6574\u7EC4\u66FF\u6362\u9700 detail1Mode=cover\u3002",
1381
1383
  notes: [
1382
1384
  "`id` = **\u51B3\u8BAE\u6982\u8FF0 id**\uFF08`decision.list` \u7684 rows[].mainTable.id\uFF09\uFF0C\u4E0D\u662F\u4F1A\u8BAE id\u3002",
1383
1385
  "\u53EA\u6539\u6982\u8FF0\u6587\u672C\uFF1A\u4F20 `id` + `mt_content` \u5373\u53EF\uFF0C\u4E0D\u5FC5\u5E26 detail1\uFF08\u771F\u673A\uFF1A\u660E\u7EC6\u539F\u6837\u4FDD\u7559\uFF09\u3002",
@@ -2250,6 +2252,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
2250
2252
  method: prepareName,
2251
2253
  action: prepareName,
2252
2254
  summary: `\u51C6\u5907${endpoint.summary}\uFF08\u751F\u6210\u786E\u8BA4\u9884\u89C8\uFF0C\u4E0D\u5199\u5165\uFF09`,
2255
+ ...endpoint.contractNotes ? { notes: endpoint.contractNotes } : {},
2253
2256
  capability,
2254
2257
  risk: "read-before-write",
2255
2258
  requiresConfirmation: true,
@@ -2318,6 +2321,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
2318
2321
  method: applyName,
2319
2322
  action: applyName,
2320
2323
  summary: `\u63D0\u4EA4${endpoint.summary}\uFF08${writeOp}\uFF0Cbody \u7528 datas \u6570\u7EC4\uFF09\uFF1B\u5FC5\u987B\u5728\u7528\u6237\u660E\u786E\u786E\u8BA4\u540E\u8C03\u7528`,
2324
+ ...endpoint.contractNotes ? { notes: endpoint.contractNotes } : {},
2321
2325
  capability,
2322
2326
  risk: "high-risk-write",
2323
2327
  requiresConfirmation: true,
@@ -2335,7 +2339,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
2335
2339
  );
2336
2340
  }
2337
2341
  if (endpoint.interfacePk === "create_meeting") {
2338
- const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-VPAR7E6F.js");
2342
+ const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-72Q6DM4I.js");
2339
2343
  assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
2340
2344
  }
2341
2345
  const pkQuery = writePkQuery(endpoint, payload);
@@ -3,13 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  readCache,
5
5
  writeCache
6
- } from "./chunk-PAFOLIYQ.js";
6
+ } from "./chunk-AZC53XSQ.js";
7
7
  import {
8
8
  SCHEMA_DATETIME_MINUTE,
9
9
  meetingSuccess,
10
10
  meetingValidationError,
11
11
  schemaOf
12
- } from "./chunk-4I26YMBY.js";
12
+ } from "./chunk-WHI6YAUE.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-7FJW4E7R.js");
113
+ const { createEsbHost } = await import("./host-EJSJSLVK.js");
114
114
  const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
115
- const { getEsbOperation } = await import("./registry-N7P3W2RD.js");
115
+ const { getEsbOperation } = await import("./registry-3VTB3KLV.js");
116
116
  const esbEnv = {
117
117
  ctx: env.ctx,
118
118
  host: createEsbHost(env.ctx),
@@ -6,7 +6,7 @@ import {
6
6
  CAIZHILIAN_BUSINESS_FALLBACK_MESSAGE,
7
7
  caizhilianBusinessMessage,
8
8
  isCaizhilianBusinessSuccess
9
- } from "./chunk-NUP4RYZK.js";
9
+ } from "./chunk-PMRNIGKZ.js";
10
10
  import {
11
11
  CaizhilianCliError,
12
12
  caizhilianAuthError,
@@ -0,0 +1,28 @@
1
+ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
+ const require = __esbuildCreateRequire(import.meta.url);
3
+
4
+ // src/core/connector.ts
5
+ var CONNECTOR_PROFILE = "eteams";
6
+ function isConnectorEnabled(value) {
7
+ if (value === void 0 || value === null || value === false) return false;
8
+ if (value === true) return true;
9
+ const normalized = String(value).trim().toLowerCase();
10
+ return normalized === "" || normalized === "true" || normalized === "1" || normalized === "yes";
11
+ }
12
+ var connectorMode = false;
13
+ function isConnectorMode() {
14
+ return connectorMode;
15
+ }
16
+ function normalizeGlobalOptions(options) {
17
+ if (!isConnectorEnabled(options.isConnector)) {
18
+ connectorMode = false;
19
+ return options;
20
+ }
21
+ connectorMode = true;
22
+ return { ...options, profile: CONNECTOR_PROFILE };
23
+ }
24
+
25
+ export {
26
+ isConnectorMode,
27
+ normalizeGlobalOptions
28
+ };
@@ -0,0 +1,38 @@
1
+ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
+ const require = __esbuildCreateRequire(import.meta.url);
3
+
4
+ // src/cmd/argv.ts
5
+ var VALUE_TAKING_GLOBAL_OPTIONS = /* @__PURE__ */ new Set([
6
+ "--config",
7
+ "--auth",
8
+ "--profile",
9
+ "--runtime-agent",
10
+ "--base-url",
11
+ "--passport-url"
12
+ ]);
13
+ function firstPositionalToken(argv) {
14
+ for (let index = 0; index < argv.length; index += 1) {
15
+ const token = argv[index];
16
+ if (token === void 0) return void 0;
17
+ if (token === "--") return argv[index + 1];
18
+ if (token.startsWith("-")) {
19
+ if (VALUE_TAKING_GLOBAL_OPTIONS.has(token)) index += 1;
20
+ continue;
21
+ }
22
+ return token;
23
+ }
24
+ return void 0;
25
+ }
26
+ function toCommandMetadata(commands) {
27
+ return commands.map((command) => ({
28
+ name: command.name,
29
+ description: command.description,
30
+ category: command.category
31
+ }));
32
+ }
33
+
34
+ export {
35
+ VALUE_TAKING_GLOBAL_OPTIONS,
36
+ firstPositionalToken,
37
+ toCommandMetadata
38
+ };
@@ -0,0 +1,226 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __esbuildCreateRequire } from 'node:module';
3
+ const require = __esbuildCreateRequire(import.meta.url);
4
+ import {
5
+ builtinCommands
6
+ } from "./chunk-L5SCNJKX.js";
7
+ import {
8
+ firstPositionalToken,
9
+ toCommandMetadata
10
+ } from "./chunk-ZM7RN2IM.js";
11
+ import {
12
+ createProgram
13
+ } from "./chunk-UUJK76HV.js";
14
+ import {
15
+ registerCommands
16
+ } from "./chunk-KINXYJXM.js";
17
+ import "./chunk-JJONWB5N.js";
18
+ import "./chunk-257JXJGD.js";
19
+ import "./chunk-AJ62BGAW.js";
20
+ import "./chunk-SU6IJD6D.js";
21
+ import "./chunk-OJ4JPD25.js";
22
+ import "./chunk-OVTCWLNQ.js";
23
+ import "./chunk-JWF2R6EQ.js";
24
+ import "./chunk-MD5CW4B6.js";
25
+ import "./chunk-2UV4IZIT.js";
26
+ import "./chunk-FPWCCRKT.js";
27
+ import "./chunk-IZCQU5D5.js";
28
+ import {
29
+ applyE10TlsPolicy
30
+ } from "./chunk-QVKRNL7L.js";
31
+ import "./chunk-Y3C6MDL7.js";
32
+ import "./chunk-7DE3VMZD.js";
33
+ import "./chunk-2BZ7TY4M.js";
34
+ import "./chunk-UG5G54VL.js";
35
+ import "./chunk-BUSC6UAE.js";
36
+
37
+ // src/shortcuts/index.ts
38
+ function lazyShortcut(definition) {
39
+ return {
40
+ name: definition.name,
41
+ description: definition.description,
42
+ category: "shortcut",
43
+ load: definition.load,
44
+ register({ program: program2 }) {
45
+ const placeholder = program2.command(definition.name).description(definition.description);
46
+ placeholder.allowUnknownOption(true);
47
+ placeholder.allowExcessArguments(true);
48
+ placeholder.helpOption(false);
49
+ placeholder.action(async () => {
50
+ const { dispatchLazyShortcut } = await import("./lazy-dispatch-MZ3EZYDL.js");
51
+ await dispatchLazyShortcut(definition, shortcutMetadata());
52
+ });
53
+ }
54
+ };
55
+ }
56
+ var builtinShortcuts = [
57
+ lazyShortcut({
58
+ name: "invoice",
59
+ description: "E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406 CLI",
60
+ load: async () => (await import("./invoice-37HR6L3W.js")).invoiceShortcut
61
+ }),
62
+ lazyShortcut({
63
+ name: "ehr",
64
+ description: "\u6CDB\u5FAEE10\u805A\u624D\u6797\uFF08\u4EBA\u4E8B/\u51FA\u52E4/\u85AA\u916C\uFF09CLI",
65
+ load: async () => (await import("./ehr-PHIBBUIG.js")).ehrShortcut
66
+ }),
67
+ lazyShortcut({
68
+ name: "recruit-stage",
69
+ description: "\u6CDB\u5FAEE10\u62DB\u8058\u52A9\u624B\uFF08JD\u751F\u6210/\u7B80\u5386\u5EFA\u6863/AI\u9762\u8BD5\u9080\u7EA6\uFF09CLI",
70
+ load: async () => (await import("./recruit-stage-TSQWOGQD.js")).recruitStageShortcut
71
+ }),
72
+ lazyShortcut({
73
+ name: "performance",
74
+ description: "\u6CDB\u5FAEE10\u7EE9\u6548\u65B9\u6848\uFF08\u6587\u6863\u5BFC\u5165/\u5B9E\u4F53\u89E3\u6790/\u843D\u8349\u7A3F/\u786E\u8BA4\u53D1\u5E03\uFF09CLI",
75
+ load: async () => (await import("./performance-PM2G6L3E.js")).performanceShortcut
76
+ }),
77
+ lazyShortcut({
78
+ name: "cowork",
79
+ description: "\u6CDB\u5FAEE10\u534F\u4F5C\u533A\uFF08\u534F\u4F5C\u4E8B\u9879/\u8BA8\u8BBA/\u5BA1\u6279/\u5171\u4EAB\u6743\u9650\uFF09CLI",
80
+ load: async () => (await import("./cowork-GZDODGKF.js")).coworkShortcut
81
+ }),
82
+ lazyShortcut({
83
+ name: "archive",
84
+ description: "E10 \u6587\u4E66\u5B9A\u6863\u6848\u7BA1\u7406 CLI",
85
+ load: async () => (await import("./archive-ENBSUMHV.js")).archiveShortcut
86
+ }),
87
+ lazyShortcut({
88
+ name: "archive-oa",
89
+ description: "E10 \u6863\u6848\u5B9A\u4F4D\u4E0E OA \u5546\u52A1\u5408\u540C\u501F\u9605 CLI",
90
+ load: async () => (await import("./archive-oa-7BFPQ6M5.js")).archiveOaShortcut
91
+ }),
92
+ lazyShortcut({
93
+ name: "calendar",
94
+ description: "\u6CDB\u5FAEE10\u65E5\u7A0B\u7BA1\u7406 CLI\uFF08\u521B\u5EFA/\u67E5\u8BE2/\u66F4\u65B0/\u5220\u9664/\u5B57\u5178\uFF09",
95
+ load: async () => (await import("./calendar-G726HUUH.js")).calendarShortcut
96
+ }),
97
+ lazyShortcut({
98
+ name: "fna",
99
+ description: "\u6CDB\u5FAEE10\u9F50\u4E1A\u6210\u8D39\u63A7\u4E2D\u5FC3\uFF08\u9884\u7B97/\u8D39\u7528\u4E2D\u5FC3/\u501F\u6B3E\u7BA1\u7406/\u53D1\u7968\u6838\u9500\uFF09CLI",
100
+ load: async () => (await import("./fna-IKYI3SST.js")).fnaShortcut
101
+ }),
102
+ lazyShortcut({
103
+ name: "hrm",
104
+ description: "\u6CDB\u5FAEE10\u7EC4\u7EC7\u7BA1\u7406\uFF08\u5458\u5DE5/\u7EC4\u7EC7/\u5C97\u4F4D\u67E5\u8BE2\uFF09CLI",
105
+ load: async () => (await import("./hrm-5JQ7QZ6A.js")).hrmShortcut
106
+ }),
107
+ lazyShortcut({
108
+ name: "mail",
109
+ description: "\u6CDB\u5FAEE10\u90AE\u4EF6\u7BA1\u7406 CLI",
110
+ load: async () => (await import("./mail-YBKUM6HM.js")).mailShortcut
111
+ }),
112
+ lazyShortcut({
113
+ name: "meeting",
114
+ description: "\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406 CLI\uFF08\u6807\u51C6\u7248\uFF1A\u67E5\u8BE2/\u51B2\u7A81/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09",
115
+ load: async () => (await import("./meeting-XE6CTXYA.js")).meetingShortcut
116
+ }),
117
+ lazyShortcut({
118
+ name: "okr",
119
+ description: "\u6CDB\u5FAEE10 OKR \u76EE\u6807\u7BA1\u7406 CLI\uFF08\u76EE\u6807\u67E5\u8BE2/\u65B0\u5EFA/\u7F16\u8F91\u3001\u5173\u952E\u6210\u679C\u3001\u76EE\u6807\u5BF9\u9F50\u3001\u8BC4\u8BBA\uFF09",
120
+ load: async () => (await import("./okr-HW7IULIR.js")).okrShortcut
121
+ }),
122
+ lazyShortcut({
123
+ name: "plan",
124
+ description: "\u6CDB\u5FAEE10\u8BA1\u5212\u62A5\u544A CLI\uFF08\u67E5\u8BE2/\u65B0\u5EFA/\u4FEE\u6539/\u53D1\u5E03/\u64A4\u56DE/\u63D0\u4EA4\u63D0\u9192/\u8BC4\u8BBA\uFF09",
125
+ load: async () => (await import("./plan-3YYGZ7ZM.js")).planShortcut
126
+ }),
127
+ lazyShortcut({
128
+ name: "esb",
129
+ description: "\u6CDB\u5FAEE10 ESB \u4E2D\u5FC3\u81EA\u5B9A\u4E49\u89E6\u53D1\u52A8\u4F5C\u6D41 CLI",
130
+ load: async () => (await import("./esb-ATRKVHCD.js")).esbShortcut
131
+ }),
132
+ lazyShortcut({
133
+ name: "ebuilder-form",
134
+ description: "\u6CDB\u5FAEE10 eBuilder \u8868\u5355\u83DC\u5355\u3001\u5217\u8868\u548C\u8868\u5355\u6570\u636E CLI",
135
+ load: async () => (await import("./ebuilder-form-GHNIZ7ET.js")).ebuilderFormShortcut
136
+ }),
137
+ lazyShortcut({
138
+ name: "jiuchuanhui",
139
+ description: "\u6CDB\u5FAEE10\u4E5D\u6C1A\u6C47\u8425\u9500\u7BA1\u7406 CLI\uFF08\u5BA2\u6237/\u8054\u7CFB\u4EBA/\u5546\u673A/\u7EBF\u7D22/\u8054\u7CFB\u8BA1\u5212/\u516C\u6D77\uFF09",
140
+ load: async () => (await import("./jiuchuanhui-KBWUZ7WT.js")).jiuchuanhuiShortcut
141
+ }),
142
+ lazyShortcut({
143
+ name: "asset",
144
+ description: "E10 \u8D44\u4EA7\u7BA1\u7406\uFF08\u8D44\u7BA1\u5BB6\uFF09CLI",
145
+ load: async () => (await import("./asset-V5SUD3PW.js")).assetShortcut
146
+ }),
147
+ lazyShortcut({
148
+ name: "asset-idle",
149
+ description: "E10 \u95F2\u7F6E\u8D44\u4EA7\u5224\u5B9A\u7ED3\u679C\u67E5\u8BE2 CLI\uFF08\u5206\u9875\u83B7\u53D6/\u805A\u5408\u7EDF\u8BA1\uFF09",
150
+ load: async () => (await import("./asset-idle-3CEL7WFX.js")).assetIdleShortcut
151
+ }),
152
+ lazyShortcut({
153
+ name: "im",
154
+ description: "\u6CDB\u5FAEE10\u6613\u79D2\u529E\uFF08\u5373\u65F6\u901A\u8BAF\uFF09CLI",
155
+ load: async () => (await import("./im-2YJW3EI5.js")).imShortcut
156
+ }),
157
+ lazyShortcut({
158
+ name: "project",
159
+ description: "\u6CDB\u5FAEE10\u4E8B\u4E95\u7136\u9879\u76EE\u7BA1\u7406 CLI\uFF08\u9879\u76EE/\u4EFB\u52A1\u67E5\u8BE2\u4E0E\u786E\u8BA4\u5199\u5165\uFF09",
160
+ load: async () => (await import("./project-XREEXFU2.js")).projectShortcut
161
+ }),
162
+ lazyShortcut({
163
+ name: "workflow",
164
+ description: "\u6CDB\u5FAEE10\u6D41\u7A0B\u667A\u80FD\u52A9\u624B CLI\uFF08\u67E5\u8BE2/\u67E5\u770B/\u64CD\u4F5C/\u6279\u91CF/\u53D1\u8D77/\u4FEE\u6539\uFF09",
165
+ load: async () => (await import("./workflow-MAGCHWYZ.js")).workflowShortcut
166
+ }),
167
+ lazyShortcut({
168
+ name: "blog",
169
+ description: "\u6CDB\u5FAEE10\u5DE5\u4F5C\u65E5\u62A5 CLI\uFF08\u67E5\u8BE2/\u53D1\u5E03/\u7F16\u8F91/\u8BC4\u8BBA/\u70B9\u8D5E/\u63D0\u9192/\u5BFC\u51FA\uFF09",
170
+ load: async () => (await import("./blog-FLI4SS3P.js")).blogShortcut
171
+ }),
172
+ lazyShortcut({
173
+ name: "caizhilian",
174
+ description: "\u6CDB\u5FAEE10\u91C7\u77E5\u8FDE\uFF08\u6587\u6863\u4E2D\u5FC3\uFF09CLI",
175
+ load: async () => (await import("./caizhilian-7WCTKCCP.js")).caizhilianShortcut
176
+ }),
177
+ lazyShortcut({
178
+ name: "contract",
179
+ description: "\u6CDB\u5FAEE10\u4ECA\u627F\u8FBE\u5408\u540C\u7BA1\u7406 CLI",
180
+ load: async () => (await import("./contract-IRNRQ5FY.js")).contractShortcut
181
+ }),
182
+ lazyShortcut({
183
+ name: "reception",
184
+ description: "\u6CDB\u5FAE\u5BA2\u6237\u53C2\u89C2\u63A5\u5F85\u6D41\u7A0B CLI\uFF08\u9762\u677F/\u884C\u7A0B\u5355\u4E0E\u5185\u90E8\u65B9\u6848/\u586B\u5355\u9875\u9884\u586B\uFF09",
185
+ load: async () => (await import("./reception-7G3J2MA6.js")).receptionShortcut
186
+ }),
187
+ lazyShortcut({
188
+ name: "smart-extract",
189
+ description: "\u6CDB\u5FAEE10\u667A\u80FD\u62BD\u53D6 CLI\uFF08\u8868\u5355\u7ED3\u6784 / \u9644\u4EF6\u6B63\u6587 / \u6821\u9A8C\u5E76\u843D\u5E93\uFF0C\u8FD4\u56DE aiExtraId\uFF09",
190
+ load: async () => (await import("./smart-extract-T5Z4AULN.js")).smartExtractShortcut
191
+ }),
192
+ lazyShortcut({
193
+ name: "data",
194
+ description: "\u6CDB\u5FAEE10\u6570\u636E\u52A9\u624B CLI\uFF08\u6570\u636E\u6E90\u67E5\u8BE2 / \u914D\u7F6E\u4E2D\u5FC3 / \u573A\u666F\u5B9A\u4F4D\uFF09",
195
+ load: async () => (await import("./data-HTQZRPPI.js")).dataShortcut
196
+ })
197
+ ];
198
+ function shortcutMetadata() {
199
+ return builtinShortcuts;
200
+ }
201
+ async function loadShortcuts(names) {
202
+ const wanted = new Set(names);
203
+ const hits = builtinShortcuts.filter((shortcut) => wanted.has(shortcut.name));
204
+ return Promise.all(hits.map((shortcut) => shortcut.load()));
205
+ }
206
+ async function loadAllShortcuts() {
207
+ return Promise.all(builtinShortcuts.map((shortcut) => shortcut.load()));
208
+ }
209
+
210
+ // src/cli.ts
211
+ applyE10TlsPolicy();
212
+ var BUILTIN_NAMES = new Set(builtinCommands.map((command) => command.name));
213
+ async function selectShortcuts(wanted) {
214
+ if (!wanted) return builtinShortcuts;
215
+ if (builtinShortcuts.some((shortcut) => shortcut.name === wanted)) return loadShortcuts([wanted]);
216
+ if (BUILTIN_NAMES.has(wanted)) return builtinShortcuts;
217
+ return loadAllShortcuts();
218
+ }
219
+ var { program, ctx } = createProgram();
220
+ await registerCommands(program, ctx, [
221
+ ...builtinCommands,
222
+ ...await selectShortcuts(firstPositionalToken(process.argv.slice(2)))
223
+ ]);
224
+ ctx.commands = toCommandMetadata([...builtinCommands, ...shortcutMetadata()]);
225
+ ctx.modules = ctx.commands;
226
+ await program.parseAsync();
@@ -0,0 +1,70 @@
1
+ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
+ const require = __esbuildCreateRequire(import.meta.url);
3
+ import {
4
+ buildE10AuthorizeUrl,
5
+ closeHttpServer,
6
+ createOAuthCallbackProtocolMismatchError,
7
+ formatWeaverEnvExports,
8
+ isMachineAuthMode,
9
+ isTlsClientHello,
10
+ registerE10AuthCommands,
11
+ renderE10LoginSuccessPage,
12
+ resolveAgentReturnTarget,
13
+ resolveAgentType,
14
+ resolveBrowserOpenCommand,
15
+ resolvePromotionKeyword,
16
+ resolvePromotionSource,
17
+ resolveWindowsRundll32Path,
18
+ runBrowserLogin
19
+ } from "./chunk-OVTCWLNQ.js";
20
+ import "./chunk-2UV4IZIT.js";
21
+ import "./chunk-FPWCCRKT.js";
22
+ import "./chunk-IZCQU5D5.js";
23
+ import {
24
+ DEFAULT_E10_BASE_URL,
25
+ DEFAULT_E10_LOGIN_BASE_URL,
26
+ XIAOE_AGENT_TYPE,
27
+ hasXiaoEEnv,
28
+ hasXiaoETokenScript,
29
+ hasXiaoEUnifiedLoginSource,
30
+ inspectXiaoEUnifiedLoginSources,
31
+ isXiaoEHostedEnvironment,
32
+ resolveDefaultE10BaseUrl,
33
+ resolveXiaoEDefaultBaseUrl,
34
+ resolveXiaoEPreferredBaseUrl,
35
+ resolveXiaoEUnifiedLoginCredential
36
+ } from "./chunk-QVKRNL7L.js";
37
+ import "./chunk-Y3C6MDL7.js";
38
+ import "./chunk-7DE3VMZD.js";
39
+ import "./chunk-2BZ7TY4M.js";
40
+ import "./chunk-UG5G54VL.js";
41
+ import "./chunk-BUSC6UAE.js";
42
+ export {
43
+ DEFAULT_E10_BASE_URL,
44
+ DEFAULT_E10_LOGIN_BASE_URL,
45
+ XIAOE_AGENT_TYPE,
46
+ buildE10AuthorizeUrl,
47
+ closeHttpServer,
48
+ createOAuthCallbackProtocolMismatchError,
49
+ formatWeaverEnvExports,
50
+ hasXiaoEEnv,
51
+ hasXiaoETokenScript,
52
+ hasXiaoEUnifiedLoginSource,
53
+ inspectXiaoEUnifiedLoginSources,
54
+ isMachineAuthMode,
55
+ isTlsClientHello,
56
+ isXiaoEHostedEnvironment,
57
+ registerE10AuthCommands,
58
+ renderE10LoginSuccessPage,
59
+ resolveAgentReturnTarget,
60
+ resolveAgentType,
61
+ resolveBrowserOpenCommand,
62
+ resolveDefaultE10BaseUrl,
63
+ resolvePromotionKeyword,
64
+ resolvePromotionSource,
65
+ resolveWindowsRundll32Path,
66
+ resolveXiaoEDefaultBaseUrl,
67
+ resolveXiaoEPreferredBaseUrl,
68
+ resolveXiaoEUnifiedLoginCredential,
69
+ runBrowserLogin
70
+ };
@@ -7,8 +7,8 @@ import {
7
7
  findCommonFreeSlots,
8
8
  meetingEbConflictOperations,
9
9
  runEbConflictCheck
10
- } from "./chunk-7QFVXP2X.js";
11
- import "./chunk-4I26YMBY.js";
10
+ } from "./chunk-R4PN3OFK.js";
11
+ import "./chunk-WHI6YAUE.js";
12
12
  import "./chunk-7BDPM5ST.js";
13
13
  import "./chunk-UG5G54VL.js";
14
14
  import "./chunk-BUSC6UAE.js";