@wirecat/zoom-cli 0.81.0 → 0.83.0

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 (239) hide show
  1. package/README.md +2 -2
  2. package/contracts/wirecat.json +54 -54
  3. package/dist/answers.d.ts +56 -0
  4. package/dist/answers.d.ts.map +1 -1
  5. package/dist/api.d.ts.map +1 -1
  6. package/dist/api.js +1 -1
  7. package/dist/api.js.map +1 -1
  8. package/dist/bin/main.js +2 -15
  9. package/dist/bin/main.js.map +1 -1
  10. package/dist/bin/zm.js +2 -2
  11. package/dist/bundle/agent-3HDWEZ5M.js +47 -0
  12. package/dist/bundle/{all-profiles-3ASMN35R.js → all-profiles-RY2OMSDL.js} +12 -12
  13. package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
  14. package/dist/bundle/{anthropic-XXI53VNI.js → anthropic-36VPSF7B.js} +6 -6
  15. package/dist/bundle/{app-server-B7WLNZNQ.js → app-server-ZVJVUGB7.js} +79 -76
  16. package/dist/bundle/{bun-2FLR4IV4.js → bun-F4M4KCNA.js} +2 -2
  17. package/dist/bundle/{bun-sqlite-3NNHTOGM.js → bun-sqlite-IOPYIUA7.js} +7 -7
  18. package/dist/bundle/{chunk-L54I45OX.js → chunk-26TW5RZ6.js} +33 -317
  19. package/dist/bundle/{chunk-JK24A3RP.js → chunk-2DK5BBFF.js} +3 -3
  20. package/dist/bundle/{chunk-4VOCXLMJ.js → chunk-2IBKKVVZ.js} +6 -6
  21. package/dist/bundle/{chunk-WKNYNK7W.js → chunk-2S54TM4N.js} +4 -4
  22. package/dist/bundle/{chunk-WHXYPLUE.js → chunk-3AQHKXVR.js} +4 -4
  23. package/dist/bundle/{chunk-YISJJNXT.js → chunk-3CW2C7ZA.js} +3 -3
  24. package/dist/bundle/{chunk-77TJ3AJH.js → chunk-3KUEZK5Z.js} +3 -3
  25. package/dist/bundle/{chunk-NQGGTO3B.js → chunk-3PXUQFHX.js} +8 -8
  26. package/dist/bundle/{chunk-N5ROXGY4.js → chunk-3QN5KDFZ.js} +167 -167
  27. package/dist/bundle/{chunk-AWJQ6FAX.js → chunk-434YFJAE.js} +2 -2
  28. package/dist/bundle/{chunk-4BU3LRTB.js → chunk-575JMTDR.js} +19 -18
  29. package/dist/bundle/{chunk-NM5XMKWO.js → chunk-5B2LV4MS.js} +2 -1
  30. package/dist/bundle/{chunk-3M436OO2.js → chunk-5WL5RHOO.js} +7 -102
  31. package/dist/bundle/{chunk-PS7HQ5LQ.js → chunk-6C7ESL5N.js} +3 -3
  32. package/dist/bundle/{chunk-SRUAUMBL.js → chunk-6E4KLYNP.js} +12 -12
  33. package/dist/bundle/chunk-7JDXR75Q.js +465 -0
  34. package/dist/bundle/{chunk-L2ERFXB7.js → chunk-AK3H2C65.js} +40 -31
  35. package/dist/bundle/{chunk-OEQNP56V.js → chunk-AQ5RIOUE.js} +1 -1
  36. package/dist/bundle/{chunk-35FVYRH5.js → chunk-AQLUAQXJ.js} +37 -180
  37. package/dist/bundle/{chunk-EPASOAEI.js → chunk-ASTLGFTR.js} +284 -184
  38. package/dist/bundle/{chunk-YNWBRDBX.js → chunk-ATHBB7OU.js} +2 -2
  39. package/dist/bundle/{chunk-ZFRYFDZN.js → chunk-B2NM65RD.js} +14 -6
  40. package/dist/bundle/{chunk-VQTYJ6XH.js → chunk-B4KHDXJE.js} +3 -3
  41. package/dist/bundle/{chunk-G3DWMG7Y.js → chunk-BAFC7WNI.js} +4 -4
  42. package/dist/bundle/{chunk-2GNGR265.js → chunk-BBGJQMRI.js} +1 -1
  43. package/dist/bundle/{chunk-C4BBCSGK.js → chunk-BTLZYRIW.js} +6 -6
  44. package/dist/bundle/{chunk-T2BHIC37.js → chunk-BZDS2X6Y.js} +65 -65
  45. package/dist/bundle/{chunk-3UX4VJWD.js → chunk-C7JPYWYQ.js} +3 -4
  46. package/dist/bundle/{chunk-R4CXFYQN.js → chunk-CDQUW25G.js} +180 -38
  47. package/dist/bundle/{chunk-YJKXCINQ.js → chunk-CJWGJBHW.js} +274 -60
  48. package/dist/bundle/{chunk-F2J2FQUB.js → chunk-D7RCUODT.js} +9 -9
  49. package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
  50. package/dist/bundle/{chunk-LGESUPKO.js → chunk-DQJECJUE.js} +25 -90
  51. package/dist/bundle/{chunk-MA4UJNUI.js → chunk-E4JQ3MCW.js} +12 -12
  52. package/dist/bundle/{chunk-GW2A2FJH.js → chunk-E4ODYLEK.js} +8 -8
  53. package/dist/bundle/{chunk-Q26UFIH4.js → chunk-EE45N67Q.js} +16 -3
  54. package/dist/bundle/{chunk-5SEBLX6B.js → chunk-EEEU4MKK.js} +12 -12
  55. package/dist/bundle/{chunk-YRDQ54G5.js → chunk-ESN3W2MZ.js} +24 -11
  56. package/dist/bundle/{chunk-M7OYEMLI.js → chunk-ETIZGA4P.js} +7 -7
  57. package/dist/bundle/{chunk-IVZACJ6X.js → chunk-F44QK6CK.js} +4 -4
  58. package/dist/bundle/{chunk-JKEMW6E4.js → chunk-FH2UFNH6.js} +2 -2
  59. package/dist/bundle/{chunk-XYQVVW4R.js → chunk-FTH6WGYO.js} +1 -1
  60. package/dist/bundle/chunk-FWACRG4X.js +160 -0
  61. package/dist/bundle/chunk-G5SZL7G2.js +150 -0
  62. package/dist/bundle/{chunk-GDRFVBCB.js → chunk-G6CHEFAG.js} +2 -2
  63. package/dist/bundle/{chunk-2ELGSNX3.js → chunk-GHJD7PE6.js} +170 -170
  64. package/dist/bundle/{chunk-LECMHK2F.js → chunk-GZ7WBU5Y.js} +1 -1
  65. package/dist/bundle/{chunk-4ZXJ4AZW.js → chunk-H6A4NWYJ.js} +322 -45
  66. package/dist/bundle/{chunk-D26K6756.js → chunk-HKLRI2LB.js} +6 -6
  67. package/dist/bundle/{chunk-R6HP2XKD.js → chunk-HMD4FZYY.js} +5 -5
  68. package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-HO4JGD4Q.js} +1 -1
  69. package/dist/bundle/chunk-HUAHLO6N.js +29 -0
  70. package/dist/bundle/{chunk-UHMJSSQO.js → chunk-IANKXHSE.js} +1 -1
  71. package/dist/bundle/{chunk-QFK52FG6.js → chunk-IQZXFWFI.js} +3 -3
  72. package/dist/bundle/{chunk-GPRJXJC7.js → chunk-ISQ23VKV.js} +22 -1
  73. package/dist/bundle/{chunk-ZLYICF6A.js → chunk-JEH33ZCD.js} +4 -4
  74. package/dist/bundle/{chunk-IDUKCXL7.js → chunk-JUNQYWQ2.js} +13 -9
  75. package/dist/bundle/{chunk-337ALCXQ.js → chunk-JUXMVQWJ.js} +312 -153
  76. package/dist/bundle/{chunk-5EWYDHBH.js → chunk-KHQDWYCG.js} +2 -2
  77. package/dist/bundle/{chunk-FMMYBVCH.js → chunk-KYRYD4CR.js} +1 -1
  78. package/dist/bundle/chunk-LBGT6W4R.js +377 -0
  79. package/dist/bundle/{chunk-UUVWAVKN.js → chunk-LN7HRYTH.js} +3 -3
  80. package/dist/bundle/{chunk-NS3JWBDR.js → chunk-MEB7HBTM.js} +6 -6
  81. package/dist/bundle/{chunk-K7CTCDYX.js → chunk-MEEFWYX3.js} +6 -6
  82. package/dist/bundle/{chunk-BQBC2WIG.js → chunk-MNOAMJ6H.js} +1 -1
  83. package/dist/bundle/{chunk-Y7XJA4EW.js → chunk-MYHPXJDG.js} +4 -4
  84. package/dist/bundle/{chunk-7JWVPJIP.js → chunk-NGI37RFW.js} +10 -10
  85. package/dist/bundle/{chunk-437DLSB3.js → chunk-NZMWD7Y3.js} +17227 -13055
  86. package/dist/bundle/chunk-O6IECJRM.js +54 -0
  87. package/dist/bundle/{chunk-LVCCZI5A.js → chunk-OBWL3BUV.js} +39 -39
  88. package/dist/bundle/{chunk-GCAJW4SR.js → chunk-OEEWVKJX.js} +1 -1
  89. package/dist/bundle/chunk-OGTN2KVG.js +147 -0
  90. package/dist/bundle/{chunk-B2WBWKYN.js → chunk-OQYZ3W4K.js} +12 -12
  91. package/dist/bundle/{chunk-IFM4G4MT.js → chunk-P3ZCTYGW.js} +4 -4
  92. package/dist/bundle/{chunk-VAW7QGJA.js → chunk-PVEBAHFU.js} +3 -3
  93. package/dist/bundle/{chunk-IYNICUCC.js → chunk-R2B6PUVI.js} +4 -4
  94. package/dist/bundle/{chunk-D7CDHBDX.js → chunk-R6IA5UQB.js} +1 -1
  95. package/dist/bundle/{chunk-T7QPZYRZ.js → chunk-RLOH7RDN.js} +7 -7
  96. package/dist/bundle/{chunk-V3ZTAAJ6.js → chunk-RQ4AXSCJ.js} +8 -8
  97. package/dist/bundle/{chunk-4BXLHSXY.js → chunk-RYGTCRFZ.js} +2 -2
  98. package/dist/bundle/{chunk-XWKUGAG6.js → chunk-S4PXWIE4.js} +85 -87
  99. package/dist/bundle/{chunk-ZMAPXIGC.js → chunk-SDZZYZLL.js} +2 -2
  100. package/dist/bundle/{chunk-ZNAX7GUV.js → chunk-SHQAYUK6.js} +8 -8
  101. package/dist/bundle/{chunk-YUDVRFXN.js → chunk-T3W4V4A6.js} +1 -1
  102. package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-TCT5D2X2.js} +1 -1
  103. package/dist/bundle/{chunk-EEBSKMEA.js → chunk-TDWPOSPR.js} +12 -12
  104. package/dist/bundle/{chunk-WIX6BFRF.js → chunk-TER3N27H.js} +8 -8
  105. package/dist/bundle/{chunk-UMPUY77T.js → chunk-TMTNP7QN.js} +10 -10
  106. package/dist/bundle/{chunk-BZXHJKKI.js → chunk-TO5UEWXR.js} +2 -2
  107. package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
  108. package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
  109. package/dist/bundle/{chunk-YIIGF643.js → chunk-UAWSINMC.js} +10 -10
  110. package/dist/bundle/{chunk-RQFRXUI4.js → chunk-UBH7YF3C.js} +200 -112
  111. package/dist/bundle/{chunk-MBBR7QHI.js → chunk-UEAE3JUU.js} +2641 -1150
  112. package/dist/bundle/{chunk-2RFWRJFK.js → chunk-UHR363OD.js} +14 -10
  113. package/dist/bundle/{chunk-RRYHLP3A.js → chunk-UM52A76S.js} +6 -6
  114. package/dist/bundle/chunk-URP6BTHN.js +624 -0
  115. package/dist/bundle/{chunk-HHQROAJQ.js → chunk-UWQEAA6S.js} +1 -1
  116. package/dist/bundle/{chunk-DMJLJVD3.js → chunk-VR7QZGRU.js} +7 -7
  117. package/dist/bundle/{chunk-QNG27PGH.js → chunk-VRH5PBSL.js} +21 -17
  118. package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
  119. package/dist/bundle/{chunk-NX3BLISW.js → chunk-VTYNLTDW.js} +6 -6
  120. package/dist/bundle/{chunk-HIFPHARA.js → chunk-WY7XG6TE.js} +4 -4
  121. package/dist/bundle/{chunk-IBYGNUO7.js → chunk-XEOZTA3H.js} +1 -1
  122. package/dist/bundle/{chunk-4FSH7K6N.js → chunk-XH23ML2V.js} +2 -2
  123. package/dist/bundle/{chunk-VXD65V67.js → chunk-XYF76A26.js} +2224 -2288
  124. package/dist/bundle/{chunk-J5EHZBO5.js → chunk-ZDYJAEVB.js} +19 -3
  125. package/dist/bundle/{chunk-FXZPAGHT.js → chunk-ZJ63HDBT.js} +2 -2
  126. package/dist/bundle/{chunk-N62P5FY4.js → chunk-ZT4ZPUIO.js} +12 -12
  127. package/dist/bundle/{cli-WTGAGSXV.js → cli-JK6PQSSN.js} +133 -116
  128. package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
  129. package/dist/bundle/{command-server-entry-47CAYN3E.js → command-server-entry-DJLGN62J.js} +36 -35
  130. package/dist/bundle/config-TYYMV3HV.js +118 -0
  131. package/dist/bundle/{decode-2G7QS5IQ.js → decode-ZZICNNFF.js} +6 -6
  132. package/dist/bundle/{dispatch-ZAP3KBVJ.js → dispatch-FKMIPCPQ.js} +9 -9
  133. package/dist/bundle/{dist-WY6R3WH7.js → dist-NQPF25XI.js} +52 -49
  134. package/dist/bundle/{echarts-YRRVLEX3.js → echarts-QMAA7HH5.js} +2 -2
  135. package/dist/bundle/{embed-B5H3OW2O.js → embed-T64EUKUI.js} +7 -7
  136. package/dist/bundle/{embedder-3O73SP6Y.js → embedder-ZEKISZXI.js} +10 -10
  137. package/dist/bundle/{failure-EYGW7JMC.js → failure-XTWBYI2A.js} +3 -3
  138. package/dist/bundle/first-run-ZFNY4RRH.js +29 -0
  139. package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
  140. package/dist/bundle/{folders-4CGFWM6H.js → folders-ROKVKSCT.js} +5 -5
  141. package/dist/bundle/{instructions-AG7SRWTR.js → instructions-4H7UREH2.js} +1 -1
  142. package/dist/bundle/{main-DOGY6FJP.js → main-GCK3VYAA.js} +27 -37
  143. package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
  144. package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
  145. package/dist/bundle/meeting-model-MVUW7UPQ.js +26 -0
  146. package/dist/bundle/{meeting-semantic-FOEBWV3P.js → meeting-semantic-IF633WGX.js} +8 -8
  147. package/dist/bundle/{meetings-PVE4C2NF.js → meetings-RY2AAPHV.js} +7 -7
  148. package/dist/bundle/{node-GJQYN4FT.js → node-P3PUHKYH.js} +2 -2
  149. package/dist/bundle/{node-sqlite-MLRYKVCQ.js → node-sqlite-ASAZJNHE.js} +8 -8
  150. package/dist/bundle/{oauth-AC55C6SG.js → oauth-4U3OCK3W.js} +8 -8
  151. package/dist/bundle/oauth-AJARLPSY.js +46 -0
  152. package/dist/bundle/{open-3LGTYP6M.js → open-SEJRY2ZI.js} +6 -6
  153. package/dist/bundle/openai-FZDSC2AA.js +28 -0
  154. package/dist/bundle/{output-file-FXMTTLOI.js → output-file-RYIOIXMD.js} +6 -6
  155. package/dist/bundle/{process-MEKCZMX3.js → process-AFIXYXWL.js} +1 -1
  156. package/dist/bundle/{program-E5BSSIGY.js → program-OYLVYA4Z.js} +186 -247
  157. package/dist/bundle/{prompt-AIA6QSZK.js → prompt-BCRD64F4.js} +6 -6
  158. package/dist/bundle/public-SVJILCNI.js +206 -0
  159. package/dist/bundle/{recognize-M57VNTEV.js → recognize-25ITJWGX.js} +5 -5
  160. package/dist/bundle/{remote-3OTENZ7Z.js → remote-5FBAJX7O.js} +11 -11
  161. package/dist/bundle/{rerank-P5WHDFDU.js → rerank-2HGWWORY.js} +8 -8
  162. package/dist/bundle/run-log-7HRF4Y47.js +145 -0
  163. package/dist/bundle/{serve-BRLC2QVV.js → serve-RL35MSJD.js} +10 -10
  164. package/dist/bundle/{server-25NF7DMS.js → server-QUSBWACP.js} +71 -68
  165. package/dist/bundle/server-SCK2SRDK.js +96 -0
  166. package/dist/bundle/{services-MJE43OGD.js → services-BGRIQNDC.js} +66 -60
  167. package/dist/bundle/{speech-4AVCWTQH.js → speech-4W3ZMTFK.js} +25 -25
  168. package/dist/bundle/{sqlite-runtime-U4TQXWMC.js → sqlite-runtime-K3KLRZCV.js} +7 -7
  169. package/dist/bundle/{state-GNUGVMY7.js → state-GYL4C74G.js} +7 -7
  170. package/dist/bundle/{store-KBFZVQWF.js → store-27UQMNEO.js} +28 -26
  171. package/dist/bundle/{store-MHVBFUBB.js → store-NLYH5SQX.js} +64 -46
  172. package/dist/bundle/store-connection-CZILWRSR.js +112 -0
  173. package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
  174. package/dist/bundle/{streaming-6F7AFEHD.js → streaming-73EKEGPF.js} +7 -7
  175. package/dist/bundle/surface-CV3C4RV2.js +82 -0
  176. package/dist/bundle/tokens-PY3S22LY.js +27 -0
  177. package/dist/bundle/zm.js +9 -9
  178. package/dist/bundle/{zoom-app-YTGOZ2FS.js → zoom-app-4F4YY4OI.js} +11 -9
  179. package/dist/commands.d.ts +1 -8
  180. package/dist/commands.d.ts.map +1 -1
  181. package/dist/commands.js +3 -33
  182. package/dist/commands.js.map +1 -1
  183. package/dist/index.d.ts +1 -2
  184. package/dist/index.d.ts.map +1 -1
  185. package/dist/index.js +1 -2
  186. package/dist/index.js.map +1 -1
  187. package/dist/program-bindings.d.ts.map +1 -1
  188. package/dist/program-bindings.js +2 -12
  189. package/dist/program-bindings.js.map +1 -1
  190. package/dist/program.d.ts +3 -5
  191. package/dist/program.d.ts.map +1 -1
  192. package/dist/run.d.ts.map +1 -1
  193. package/dist/run.js +6 -1
  194. package/dist/run.js.map +1 -1
  195. package/dist/setup-commands.d.ts +5 -14
  196. package/dist/setup-commands.d.ts.map +1 -1
  197. package/dist/setup-commands.js +7 -142
  198. package/dist/setup-commands.js.map +1 -1
  199. package/dist/tokens.d.ts +20 -44
  200. package/dist/tokens.d.ts.map +1 -1
  201. package/dist/tokens.js +95 -308
  202. package/dist/tokens.js.map +1 -1
  203. package/dist/version.d.ts +1 -1
  204. package/dist/version.js +1 -1
  205. package/dist/zoom-app.js +1 -1
  206. package/dist/zoom-app.js.map +1 -1
  207. package/dist/zoom-session.d.ts +6 -0
  208. package/dist/zoom-session.d.ts.map +1 -0
  209. package/dist/zoom-session.js +72 -0
  210. package/dist/zoom-session.js.map +1 -0
  211. package/package.json +3 -3
  212. package/skills/zoom-cli/references/setup.md +2 -2
  213. package/dist/bundle/agent-VYAJCJLE.js +0 -45
  214. package/dist/bundle/answer-policy-PTH4F2DW.js +0 -129
  215. package/dist/bundle/chunk-46EF6P2J.js +0 -72
  216. package/dist/bundle/chunk-4B335BCJ.js +0 -330
  217. package/dist/bundle/chunk-EWEQ7AXL.js +0 -719
  218. package/dist/bundle/chunk-FXCR4DGU.js +0 -37
  219. package/dist/bundle/chunk-KZ3B6HW5.js +0 -31
  220. package/dist/bundle/chunk-TI4WJOEX.js +0 -789
  221. package/dist/bundle/chunk-UPR2S5IE.js +0 -773
  222. package/dist/bundle/command-contract-3IKVWPDL.js +0 -45
  223. package/dist/bundle/config-ZOGOKGTU.js +0 -116
  224. package/dist/bundle/first-run-MPKMDEMA.js +0 -29
  225. package/dist/bundle/first-screen-AIAAC3KF.js +0 -45
  226. package/dist/bundle/meeting-combined-YKPKTKGA.js +0 -26
  227. package/dist/bundle/meeting-model-HTXSGHNM.js +0 -26
  228. package/dist/bundle/openai-E2MSLVIX.js +0 -28
  229. package/dist/bundle/run-log-EOQ4EQDS.js +0 -143
  230. package/dist/bundle/server-EW2RL2EL.js +0 -93
  231. package/dist/bundle/store-connection-SKRUAI4L.js +0 -109
  232. package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +0 -81
  233. package/dist/bundle/surface-DWEWB5RG.js +0 -79
  234. package/dist/bundle/tokens-BB4MQBLH.js +0 -25
  235. package/dist/login.d.ts +0 -16
  236. package/dist/login.d.ts.map +0 -1
  237. package/dist/login.js +0 -98
  238. package/dist/login.js.map +0 -1
  239. /package/dist/bundle/{chunk-7O7XM37N.js → chunk-7ECP5ZQR.js} +0 -0
@@ -1,15 +1,20 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import "./chunk-EEEU4MKK.js";
3
4
  import {
5
+ ZOOM_ANSWER_ENTITIES,
4
6
  addMeetingEmbeddingCommand,
5
7
  addMeetingSearchCommands,
8
+ bodyOf,
6
9
  bytes,
7
10
  commandDeadline,
8
11
  compactLocalTranscriptionReceipt,
9
12
  connectSelectedProfile,
13
+ declareZoomAnswers,
10
14
  duration,
11
15
  integrationReference,
12
16
  meetingSearchDefinition,
17
+ renderBody,
13
18
  runUnifiedSearch,
14
19
  runsLong,
15
20
  sharedExecution,
@@ -20,23 +25,23 @@ import {
20
25
  validatePersonContext,
21
26
  validateTaskKind,
22
27
  validateTaskProposal,
23
- validateUnifiedSearch
24
- } from "./chunk-4ZXJ4AZW.js";
28
+ validateUnifiedSearch,
29
+ wholeList
30
+ } from "./chunk-H6A4NWYJ.js";
25
31
  import {
26
32
  emitReceipt
27
- } from "./chunk-JK24A3RP.js";
33
+ } from "./chunk-2DK5BBFF.js";
34
+ import "./chunk-TMTNP7QN.js";
35
+ import "./chunk-3CW2C7ZA.js";
28
36
  import {
29
37
  DEFAULT_PERMISSIONS,
30
- ZOOM_ANSWER_ENTITIES,
31
38
  ZOOM_SETTINGS,
32
39
  addProfile,
33
40
  addStandardCommands,
34
41
  annotateMeetingCommands,
35
42
  askBeforeWrite,
36
- bodyOf,
37
43
  chooseProfile,
38
44
  contextSourcesSchema,
39
- declareZoomAnswers,
40
45
  discoveryLevels,
41
46
  filesZone,
42
47
  guardCommand,
@@ -48,12 +53,10 @@ import {
48
53
  profileAccountKey,
49
54
  publicIssue,
50
55
  readConfig,
51
- renderBody,
52
56
  setConfig,
53
57
  unsetConfig,
54
- wholeList,
55
58
  zoomRunsCommand
56
- } from "./chunk-L54I45OX.js";
59
+ } from "./chunk-26TW5RZ6.js";
57
60
  import {
58
61
  MEMO_SCENARIOS,
59
62
  SEARCHES_QUERY,
@@ -63,10 +66,9 @@ import {
63
66
  addMeetingPreparationCommand,
64
67
  addMeetingProjectCandidatesCommand,
65
68
  addMeetingSeriesInventoryCommand,
66
- answerStdinOption,
69
+ appCompleteCommand,
67
70
  appDoctorCommand,
68
71
  appMcpCommand,
69
- commandRuns,
70
72
  createProgram,
71
73
  formatMeetingBatch,
72
74
  guideCommand,
@@ -75,33 +77,32 @@ import {
75
77
  meetingEvidenceItem,
76
78
  meetingPersonContextItem,
77
79
  modelCatalogueCommand,
80
+ oauthSessionCommand,
78
81
  passageForRun,
79
- providerRequest,
80
82
  run,
81
- runSettings,
82
83
  sharedCommandTemplate,
83
- signInSteps,
84
84
  skillCommand as skillCommand2,
85
85
  upgradeCommand
86
- } from "./chunk-VXD65V67.js";
87
- import "./chunk-EEBSKMEA.js";
86
+ } from "./chunk-XYF76A26.js";
87
+ import "./chunk-TDWPOSPR.js";
88
88
  import {
89
89
  CLIENT_ID_NEED,
90
90
  SET_ZOOM_APP,
91
91
  checkedClientId,
92
- login,
93
92
  zoomApp,
94
93
  zoomAppChecklist,
95
94
  zoomAppSetup,
96
95
  zoomClientId,
97
96
  zoomClientReport
98
- } from "./chunk-3M436OO2.js";
97
+ } from "./chunk-5WL5RHOO.js";
99
98
  import {
100
- TokenManager
101
- } from "./chunk-4B335BCJ.js";
102
- import "./chunk-337ALCXQ.js";
103
- import "./chunk-7O7XM37N.js";
104
- import "./chunk-FXCR4DGU.js";
99
+ TokenManager,
100
+ ZOOM_CODEC,
101
+ legacyAccountsOf,
102
+ zoomProvider
103
+ } from "./chunk-OGTN2KVG.js";
104
+ import "./chunk-O6IECJRM.js";
105
+ import "./chunk-JUXMVQWJ.js";
105
106
  import {
106
107
  ZoneAssumptions,
107
108
  cancellableStore,
@@ -112,49 +113,48 @@ import {
112
113
  withIssue,
113
114
  zoomInstant,
114
115
  zoomTime
115
- } from "./chunk-AWJQ6FAX.js";
116
- import "./chunk-5SEBLX6B.js";
117
- import "./chunk-UMPUY77T.js";
118
- import "./chunk-YISJJNXT.js";
116
+ } from "./chunk-434YFJAE.js";
119
117
  import {
120
118
  allAnswer
121
- } from "./chunk-L2ERFXB7.js";
122
- import "./chunk-XYQVVW4R.js";
119
+ } from "./chunk-AK3H2C65.js";
120
+ import "./chunk-FTH6WGYO.js";
123
121
  import {
124
122
  skillCommand
125
- } from "./chunk-K7CTCDYX.js";
126
- import "./chunk-PS7HQ5LQ.js";
127
- import "./chunk-WKNYNK7W.js";
128
- import "./chunk-IVZACJ6X.js";
129
- import "./chunk-GW2A2FJH.js";
130
- import "./chunk-3UX4VJWD.js";
131
- import "./chunk-WHXYPLUE.js";
132
- import "./chunk-RQFRXUI4.js";
133
- import "./chunk-IDUKCXL7.js";
134
- import {
135
- commandPermissions
136
- } from "./chunk-35FVYRH5.js";
123
+ } from "./chunk-MEEFWYX3.js";
124
+ import "./chunk-6C7ESL5N.js";
125
+ import "./chunk-2S54TM4N.js";
126
+ import "./chunk-F44QK6CK.js";
127
+ import "./chunk-E4ODYLEK.js";
128
+ import "./chunk-C7JPYWYQ.js";
129
+ import "./chunk-3AQHKXVR.js";
130
+ import "./chunk-UBH7YF3C.js";
131
+ import "./chunk-JUNQYWQ2.js";
132
+ import "./chunk-AQLUAQXJ.js";
137
133
  import {
138
134
  pagingOf
139
- } from "./chunk-WIX6BFRF.js";
140
- import "./chunk-M7OYEMLI.js";
141
- import "./chunk-J5EHZBO5.js";
142
- import "./chunk-Q26UFIH4.js";
135
+ } from "./chunk-TER3N27H.js";
136
+ import "./chunk-ETIZGA4P.js";
137
+ import "./chunk-ZDYJAEVB.js";
138
+ import "./chunk-EE45N67Q.js";
143
139
  import {
144
140
  NativeRecordingPartialStore,
145
141
  NativeRecordingPublication,
142
+ commandPermissions,
143
+ commandRuns,
146
144
  integer,
145
+ providerRequest,
146
+ runSettings,
147
147
  savedSearchItem,
148
148
  validateMeetingPreparationRequest
149
- } from "./chunk-MBBR7QHI.js";
150
- import "./chunk-SRUAUMBL.js";
151
- import "./chunk-NM5XMKWO.js";
149
+ } from "./chunk-UEAE3JUU.js";
150
+ import "./chunk-6E4KLYNP.js";
151
+ import "./chunk-5B2LV4MS.js";
152
152
  import {
153
153
  nativeWriterLeaseStore,
154
154
  openOrdinaryFile,
155
155
  syncDirectory,
156
156
  writeFileAtomic
157
- } from "./chunk-XWKUGAG6.js";
157
+ } from "./chunk-S4PXWIE4.js";
158
158
  import {
159
159
  addMeetingCommands,
160
160
  addMeetingPassageCommand,
@@ -167,37 +167,40 @@ import {
167
167
  typedQuery,
168
168
  unfilteredQuery,
169
169
  withQuery
170
- } from "./chunk-QNG27PGH.js";
171
- import "./chunk-B2WBWKYN.js";
172
- import "./chunk-QFK52FG6.js";
173
- import "./chunk-2RFWRJFK.js";
174
- import "./chunk-GPRJXJC7.js";
175
- import "./chunk-N62P5FY4.js";
170
+ } from "./chunk-VRH5PBSL.js";
171
+ import "./chunk-OQYZ3W4K.js";
172
+ import "./chunk-IQZXFWFI.js";
173
+ import "./chunk-UHR363OD.js";
174
+ import "./chunk-ISQ23VKV.js";
175
+ import "./chunk-HUAHLO6N.js";
176
+ import "./chunk-ZT4ZPUIO.js";
176
177
  import {
177
178
  latestVersion,
178
179
  runUpdate,
179
180
  updateNotice
180
- } from "./chunk-Y7XJA4EW.js";
181
- import "./chunk-CFQQTDSA.js";
181
+ } from "./chunk-MYHPXJDG.js";
182
+ import "./chunk-TY7NDMFY.js";
182
183
  import {
184
+ legacyLoginService,
183
185
  sameConfigFolder,
184
186
  zmPaths
185
- } from "./chunk-IBYGNUO7.js";
186
- import "./chunk-MA4UJNUI.js";
187
- import "./chunk-4BXLHSXY.js";
188
- import "./chunk-YJKXCINQ.js";
189
- import "./chunk-4FSH7K6N.js";
190
- import "./chunk-7JWVPJIP.js";
187
+ } from "./chunk-XEOZTA3H.js";
188
+ import "./chunk-E4JQ3MCW.js";
189
+ import "./chunk-RYGTCRFZ.js";
190
+ import "./chunk-CJWGJBHW.js";
191
+ import "./chunk-XH23ML2V.js";
192
+ import "./chunk-NGI37RFW.js";
191
193
  import "./chunk-HTQTIKWP.js";
192
- import "./chunk-HIFPHARA.js";
193
- import "./chunk-2ELGSNX3.js";
194
- import "./chunk-RRYHLP3A.js";
195
- import "./chunk-F2J2FQUB.js";
196
- import "./chunk-C4BBCSGK.js";
197
- import "./chunk-DMJLJVD3.js";
198
- import "./chunk-HHQROAJQ.js";
199
- import "./chunk-LECMHK2F.js";
200
- import "./chunk-R6HP2XKD.js";
194
+ import "./chunk-WY7XG6TE.js";
195
+ import "./chunk-7ECP5ZQR.js";
196
+ import "./chunk-GHJD7PE6.js";
197
+ import "./chunk-UM52A76S.js";
198
+ import "./chunk-D7RCUODT.js";
199
+ import "./chunk-BTLZYRIW.js";
200
+ import "./chunk-VR7QZGRU.js";
201
+ import "./chunk-UWQEAA6S.js";
202
+ import "./chunk-GZ7WBU5Y.js";
203
+ import "./chunk-HMD4FZYY.js";
201
204
  import {
202
205
  Argument,
203
206
  CommanderError,
@@ -209,10 +212,8 @@ import {
209
212
  NO_EFFECTS,
210
213
  Option,
211
214
  REMOTE_READ,
212
- REMOTE_WRITE,
213
215
  annotate,
214
216
  checkpointPath,
215
- commandWords,
216
217
  customizeSharedCommand,
217
218
  environmentOf,
218
219
  grantsAuthority,
@@ -220,31 +221,29 @@ import {
220
221
  itemAnswer,
221
222
  itemOf,
222
223
  listOf,
223
- logsInOrOut,
224
224
  overrideSharedContract,
225
225
  progressOf,
226
226
  readCheckpoint,
227
- refuseCommandName,
228
227
  runBudgetOf,
229
228
  saveCheckpoint,
230
229
  settingRows,
231
230
  snakeKeys,
232
231
  writesNewFileOnlyWith,
233
232
  writesOwnerFiles
234
- } from "./chunk-EPASOAEI.js";
235
- import "./chunk-IFM4G4MT.js";
236
- import "./chunk-FXZPAGHT.js";
237
- import "./chunk-T7QPZYRZ.js";
238
- import "./chunk-YUDVRFXN.js";
239
- import "./chunk-ZLYICF6A.js";
233
+ } from "./chunk-ASTLGFTR.js";
234
+ import "./chunk-P3ZCTYGW.js";
235
+ import "./chunk-ZJ63HDBT.js";
236
+ import "./chunk-RLOH7RDN.js";
237
+ import "./chunk-T3W4V4A6.js";
238
+ import "./chunk-JEH33ZCD.js";
240
239
  import {
241
240
  COMMAND_PATH_KEY,
242
241
  assertOverridesTighten,
243
242
  permissionOverrides
244
- } from "./chunk-V3ZTAAJ6.js";
245
- import "./chunk-VQTYJ6XH.js";
246
- import "./chunk-4VOCXLMJ.js";
247
- import "./chunk-77TJ3AJH.js";
243
+ } from "./chunk-RQ4AXSCJ.js";
244
+ import "./chunk-B4KHDXJE.js";
245
+ import "./chunk-2IBKKVVZ.js";
246
+ import "./chunk-3KUEZK5Z.js";
248
247
  import {
249
248
  hostFetch,
250
249
  providerWaitMs,
@@ -252,46 +251,47 @@ import {
252
251
  retryableStatus,
253
252
  retrying,
254
253
  statusToCode
255
- } from "./chunk-NX3BLISW.js";
254
+ } from "./chunk-VTYNLTDW.js";
256
255
  import {
257
256
  speechModel
258
- } from "./chunk-G3DWMG7Y.js";
259
- import "./chunk-VAW7QGJA.js";
260
- import "./chunk-5EWYDHBH.js";
261
- import "./chunk-437DLSB3.js";
262
- import "./chunk-UUVWAVKN.js";
263
- import "./chunk-UPR2S5IE.js";
264
- import "./chunk-NQGGTO3B.js";
265
- import "./chunk-LGESUPKO.js";
266
- import "./chunk-46EF6P2J.js";
267
- import "./chunk-2Z7UOXFC.js";
268
- import "./chunk-EWEQ7AXL.js";
257
+ } from "./chunk-BAFC7WNI.js";
258
+ import "./chunk-PVEBAHFU.js";
259
+ import "./chunk-KHQDWYCG.js";
260
+ import "./chunk-NZMWD7Y3.js";
261
+ import "./chunk-LN7HRYTH.js";
262
+ import "./chunk-VTLQTQKY.js";
263
+ import "./chunk-3PXUQFHX.js";
264
+ import "./chunk-DQJECJUE.js";
265
+ import "./chunk-FWACRG4X.js";
266
+ import "./chunk-HO4JGD4Q.js";
267
+ import "./chunk-URP6BTHN.js";
269
268
  import {
270
269
  currentAttempt,
271
270
  withAttempt
272
- } from "./chunk-D26K6756.js";
273
- import "./chunk-ZFRYFDZN.js";
271
+ } from "./chunk-HKLRI2LB.js";
272
+ import "./chunk-B2NM65RD.js";
273
+ import "./chunk-G5SZL7G2.js";
274
+ import "./chunk-LBGT6W4R.js";
275
+ import "./chunk-MNOAMJ6H.js";
274
276
  import {
275
277
  formatReference,
276
278
  isFolderProvider
277
- } from "./chunk-TI4WJOEX.js";
278
- import "./chunk-BQBC2WIG.js";
279
- import "./chunk-KZ3B6HW5.js";
280
- import "./chunk-ZNAX7GUV.js";
281
- import "./chunk-F5ZAN7OC.js";
279
+ } from "./chunk-7JDXR75Q.js";
280
+ import "./chunk-SHQAYUK6.js";
281
+ import "./chunk-TCT5D2X2.js";
282
282
  import {
283
283
  CLIENT_ID_MISSING,
284
284
  VERSION,
285
285
  ZM
286
- } from "./chunk-D7CDHBDX.js";
286
+ } from "./chunk-R6IA5UQB.js";
287
287
  import {
288
288
  installerOf
289
- } from "./chunk-HVXOA4FO.js";
289
+ } from "./chunk-TXDR6YSF.js";
290
290
  import "./chunk-D72URWJE.js";
291
- import "./chunk-JKEMW6E4.js";
292
- import "./chunk-YNWBRDBX.js";
293
- import "./chunk-NS3JWBDR.js";
294
- import "./chunk-FMMYBVCH.js";
291
+ import "./chunk-FH2UFNH6.js";
292
+ import "./chunk-ATHBB7OU.js";
293
+ import "./chunk-MEB7HBTM.js";
294
+ import "./chunk-KYRYD4CR.js";
295
295
  import {
296
296
  MEETING_COUNTS_GROUPINGS,
297
297
  RecordingSyncError,
@@ -322,14 +322,14 @@ import {
322
322
  validateMeetingChange,
323
323
  validateMeetingContextChange,
324
324
  watchMeetingIngestion
325
- } from "./chunk-T2BHIC37.js";
325
+ } from "./chunk-BZDS2X6Y.js";
326
326
  import {
327
327
  dateRange,
328
328
  defineQuery,
329
329
  queryFieldsOf,
330
330
  timezoneOf
331
- } from "./chunk-YIIGF643.js";
332
- import "./chunk-AV2ZJ4WX.js";
331
+ } from "./chunk-UAWSINMC.js";
332
+ import "./chunk-DNCLQPOM.js";
333
333
  import {
334
334
  createDeadline,
335
335
  createOutputBuffer,
@@ -337,7 +337,7 @@ import {
337
337
  fieldsOf,
338
338
  projectFields,
339
339
  realSleep
340
- } from "./chunk-N5ROXGY4.js";
340
+ } from "./chunk-3QN5KDFZ.js";
341
341
  import {
342
342
  array,
343
343
  boolean,
@@ -346,13 +346,13 @@ import {
346
346
  picklist,
347
347
  safeParse,
348
348
  string
349
- } from "./chunk-YRDQ54G5.js";
349
+ } from "./chunk-ESN3W2MZ.js";
350
350
  import "./chunk-Y5E2WNWB.js";
351
351
  import {
352
352
  CliError,
353
353
  isCliError
354
- } from "./chunk-UHMJSSQO.js";
355
- import "./chunk-2GNGR265.js";
354
+ } from "./chunk-IANKXHSE.js";
355
+ import "./chunk-BBGJQMRI.js";
356
356
  import {
357
357
  __name
358
358
  } from "./chunk-ZVVMGPBJ.js";
@@ -1927,7 +1927,7 @@ ${raw}`;
1927
1927
  }, "parseZoomChat");
1928
1928
 
1929
1929
  // dist/api.js
1930
- var TRANSCRIPT_MAX_BYTES = 10 * 1024 * 1024;
1930
+ var TRANSCRIPT_MAX_BYTES = 100 * 1024 * 1024;
1931
1931
  var json = /* @__PURE__ */ __name((value) => {
1932
1932
  if (value === null || typeof value === "boolean" || typeof value === "string")
1933
1933
  return value;
@@ -3927,7 +3927,7 @@ var addModelsCommands = /* @__PURE__ */ __name((program, deps) => {
3927
3927
  // dist/upgrade.js
3928
3928
  import { join as join12 } from "node:path";
3929
3929
 
3930
- // node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/update/index.js
3930
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/update/index.js
3931
3931
  import { realpathSync } from "node:fs";
3932
3932
  import { fileURLToPath as fileURLToPath2 } from "node:url";
3933
3933
  var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
@@ -4055,125 +4055,12 @@ var addAppCommand = /* @__PURE__ */ __name((program, { output, buffer, pretty })
4055
4055
  output(itemOf(zoomAppSetup()));
4056
4056
  });
4057
4057
  }, "addAppCommand");
4058
- var PASTE_PROMPT = "If the browser does not come back by itself, the address it ended on (code=\u2026&state=\u2026)";
4059
- var savedLogin = /* @__PURE__ */ __name((manager, now) => {
4060
- const saved = manager.load();
4061
- return {
4062
- state: saved ? saved.expiresAt > now ? "saved" : "expired" : "missing",
4063
- ...saved ? { expiresAt: saved.expiresAt, scopes: saved.scopes } : {}
4064
- };
4065
- }, "savedLogin");
4066
- var addSessionCommands = /* @__PURE__ */ __name((program, context) => {
4067
- const { deps, getConfig, output, buffer, api, profile, tokens, fetch, signal } = context;
4068
- addStandardCommands(program, {
4069
- output,
4070
- raw: buffer,
4071
- sessionStatus: /* @__PURE__ */ __name(async (check) => {
4072
- const config = getConfig();
4073
- const selected = profile();
4074
- if (!zoomClientId(config, deps.env ?? process.env))
4075
- return { configured: false, state: "not_configured", profile: selected, verified: false };
4076
- if (check) {
4077
- if (program.opts().offline)
4078
- throw new CliError("configuration_error", "session verification requires network access; remove --offline");
4079
- api();
4080
- return {
4081
- configured: true,
4082
- state: "verified",
4083
- profile: selected,
4084
- verified: true,
4085
- zoomUser: await (deps.checkSession ? deps.checkSession({ signal: signal() }) : getZoomProfile(tokens(), fetch(), { signal: signal() }))
4086
- };
4087
- }
4088
- return {
4089
- configured: true,
4090
- profile: selected,
4091
- verified: false,
4092
- ...savedLogin(tokens(), deps.now?.() ?? Date.now())
4093
- };
4094
- }, "sessionStatus"),
4095
- sessionList: /* @__PURE__ */ __name(async () => {
4096
- const config = getConfig();
4097
- const configured2 = zoomClientId(config, deps.env ?? process.env) !== void 0;
4098
- return config.profiles.map((name) => {
4099
- let login2;
4100
- try {
4101
- login2 = savedLogin(deps.tokens.forProfile(name), deps.now?.() ?? Date.now());
4102
- } catch (error) {
4103
- if (isCliError(error) && error.code === "configuration_error")
4104
- return { profile: name, signed_in: null, state: "unknown" };
4105
- throw error;
4106
- }
4107
- return {
4108
- profile: name,
4109
- signed_in: login2.state !== "missing",
4110
- ...configured2 ? login2 : { state: "not_configured" }
4111
- };
4112
- });
4113
- }, "sessionList")
4114
- });
4058
+ var addSharedCommands = /* @__PURE__ */ __name((program, { deps, buffer, output }) => {
4059
+ addStandardCommands(program);
4115
4060
  addUpgradeCommand(program, { data: buffer, diagnostic: deps.diagnostic });
4116
4061
  addModelsCommands(program, { env: /* @__PURE__ */ __name(() => deps.env ?? process.env, "env"), output, diagnostic: deps.diagnostic });
4117
- const session = program.commands.find((command) => command.name() === "session");
4118
- if (!session)
4119
- throw new CliError("configuration_error", "session command group is unavailable");
4120
- const start = session.command("start").description("log in to Zoom through your browser").option("--browser <program>", "browser program").option("--client-id <id>", "the Public Client ID of your Zoom app; saved as zoom.client_id once you sign in").option("--credential-storage <storage>", "where the login is kept: keyring (the default, which falls back to a private file by itself when no keyring works), or file, not recommended", "keyring").addOption(answerStdinOption()).action(async (opts) => {
4121
- if (opts.credentialStorage !== "keyring" && opts.credentialStorage !== "file")
4122
- throw new CliError("validation_error", "--credential-storage takes keyring or file");
4123
- const storage = opts.credentialStorage;
4124
- const config = getConfig();
4125
- const selected = profile();
4126
- refuseCommandName(selected, commandWords(program), "zm");
4127
- if (opts.clientId !== void 0)
4128
- checkedClientId(opts.clientId);
4129
- const known = zoomApp({
4130
- env: deps.env ?? process.env,
4131
- configClientId: config.clientId,
4132
- clientId: opts.clientId
4133
- })?.client.clientId;
4134
- if (!known && opts.answerStdin !== true)
4135
- throw new CliError("configuration_error", SET_ZOOM_APP, { reason: CLIENT_ID_MISSING });
4136
- const globals = program.opts();
4137
- if (globals.offline)
4138
- throw new CliError("configuration_error", "login requires network access; remove --offline");
4139
- if (globals.input === false)
4140
- throw new CliError("configuration_error", "login requires browser approval; remove --no-input");
4141
- if (deps.env?.CI)
4142
- throw new CliError("configuration_error", `login requires browser approval; run zm ${selected} session start yourself`);
4143
- const steps = signInSteps({
4144
- diagnostic: /* @__PURE__ */ __name((line) => deps.diagnostic(`${line}
4145
- `), "diagnostic"),
4146
- json: globals.json === true || globals.jsonl === true,
4147
- answers: opts.answerStdin === true,
4148
- ...deps.stdin ? { input: deps.stdin } : {}
4149
- });
4150
- const clientId = known ?? checkedClientId(await steps.ask(CLIENT_ID_NEED, signal()));
4151
- const chosen = opts.clientId ?? (known ? void 0 : clientId);
4152
- const done = await login({
4153
- tokens: (chosen ? new TokenManager({ ...tokens().options, clientId }) : tokens()).storedIn(storage),
4154
- signal: signal(),
4155
- openBrowser: /* @__PURE__ */ __name((url) => deps.openBrowser(url, opts.browser), "openBrowser"),
4156
- readPaste: steps.answers ? (stop) => steps.ask({ field: "redirect", secret: true, prompt: PASTE_PROMPT }, stop).catch((error) => stop.aborted ? new Promise(() => {
4157
- }) : Promise.reject(error)) : deps.readPaste,
4158
- showUrl: /* @__PURE__ */ __name((url) => steps.answers ? steps.openUrl(url, "Approve access to Zoom in the browser") : (
4159
- // Without a terminal this line is all an agent can pass on, so --quiet keeps it.
4160
- deps.diagnostic(`Open this URL to approve Zoom login:
4161
- ${url}
4162
- `)
4163
- ), "showUrl")
4164
- });
4165
- if (chosen)
4166
- setConfig(deps.configPath, "zoom.client_id", chosen);
4167
- addProfile(deps.configPath, selected);
4168
- output(itemOf({ ...done, profile: selected }));
4169
- });
4170
- logsInOrOut(annotate(start, { effects: REMOTE_WRITE, lifetime: "interactive" }));
4171
- logsInOrOut(annotate(session.command("end").description("delete this profile's saved Zoom login; the stored meetings stay").action(() => {
4172
- const selected = profile();
4173
- output(itemOf({ profile: selected, ended: tokens().remove(), meetings: "retained" }));
4174
- }), { effects: LOCAL_WRITE, mcp: false, examples: ["zm personal session end"] }));
4175
4062
  annotate(program.command("account"), { effects: NO_EFFECTS }).description("the profile's login and data on this computer").addCommand(zoomAccountRemoveCommand(deps));
4176
- }, "addSessionCommands");
4063
+ }, "addSharedCommands");
4177
4064
 
4178
4065
  // dist/archive-import.js
4179
4066
  import { createHash as createHash5 } from "node:crypto";
@@ -5739,17 +5626,7 @@ ${PROFILE_HELP}`);
5739
5626
  const before = new Set(program.commands);
5740
5627
  addZoomMeetingCommands(program, meetingCommands);
5741
5628
  const storeCommands = storeLeaves(program, before, meetingCommands.management);
5742
- addSessionCommands(program, {
5743
- deps,
5744
- getConfig,
5745
- output,
5746
- buffer,
5747
- api,
5748
- profile,
5749
- tokens,
5750
- fetch: /* @__PURE__ */ __name(() => fetchWithSignal(deps.fetch), "fetch"),
5751
- signal
5752
- });
5629
+ addSharedCommands(program, { deps, buffer, output });
5753
5630
  const watch = createWatchService({
5754
5631
  deps,
5755
5632
  getConfig,
@@ -5910,6 +5787,64 @@ ${PROFILE_HELP}`);
5910
5787
  });
5911
5788
  }, "bindZoomProgram");
5912
5789
 
5790
+ // dist/zoom-session.js
5791
+ var configuredClient = /* @__PURE__ */ __name((configPath, env) => {
5792
+ try {
5793
+ return zoomClientId(readConfig(configPath), env);
5794
+ } catch {
5795
+ return void 0;
5796
+ }
5797
+ }, "configuredClient");
5798
+ var zoomSessionCommand = /* @__PURE__ */ __name((deps, resolveSettings) => oauthSessionCommand({
5799
+ app: ZM,
5800
+ // Every session command but `list` acts for one profile, so none runs for a profile nobody named.
5801
+ resolveSettings: /* @__PURE__ */ __name((flags, options) => resolveSettings(flags, { ...options, needsProfile: options?.needsProfile ?? true }), "resolveSettings"),
5802
+ providerId: "zoom",
5803
+ service: "Zoom",
5804
+ codec: ZOOM_CODEC,
5805
+ legacyAccounts: /* @__PURE__ */ __name((env, profile) => legacyAccountsOf(legacyLoginService({ env }), configuredClient(deps.configPath, env), profile), "legacyAccounts"),
5806
+ startOptions: [
5807
+ new Option("--client-id <id>", "the Public Client ID of your Zoom app; saved as zoom.client_id once you sign in")
5808
+ ],
5809
+ preset: /* @__PURE__ */ __name(async (command, steps) => {
5810
+ const env = environmentOf(command).env ?? process.env;
5811
+ const given = command.opts().clientId;
5812
+ if (given !== void 0)
5813
+ checkedClientId(given);
5814
+ const configClientId = readConfig(deps.configPath).clientId;
5815
+ let client = zoomApp({ env, configClientId, clientId: given })?.client;
5816
+ if (!client && command.name() !== "end") {
5817
+ if (command.name() !== "start" || !steps?.answers)
5818
+ throw new CliError("configuration_error", SET_ZOOM_APP, { reason: CLIENT_ID_MISSING });
5819
+ const answered = checkedClientId(await steps.ask(CLIENT_ID_NEED));
5820
+ client = zoomApp({ env, configClientId, clientId: answered })?.client;
5821
+ }
5822
+ const provider = zoomProvider(client?.clientId ?? "");
5823
+ return { provider: client ? { ...provider, client } : provider, scopes: [], rotating: true };
5824
+ }, "preset"),
5825
+ verify: /* @__PURE__ */ __name(async (command, accessToken, events) => {
5826
+ const token = { accessToken, refreshToken: "", expiresAt: 0, scopes: ["user:read:user"] };
5827
+ try {
5828
+ const signal = environmentOf(command).signal;
5829
+ const user = await getZoomProfile({ tokens: /* @__PURE__ */ __name(async () => token, "tokens") }, observedFetch(deps.fetch, events), signal ? { signal } : {});
5830
+ return { id: user.id, account: { user_id: user.id, email: user.email, display_name: user.displayName } };
5831
+ } catch (error) {
5832
+ const scopeless = isCliError(error) && ["authentication_error", "permission_error"].includes(error.code);
5833
+ if (command.name() === "start" && scopeless)
5834
+ return { id: "", account: {} };
5835
+ throw error;
5836
+ }
5837
+ }, "verify"),
5838
+ claim: /* @__PURE__ */ __name(() => {
5839
+ }, "claim"),
5840
+ afterSignIn: /* @__PURE__ */ __name((_command, { client, profile }) => {
5841
+ if (client.source === "flag")
5842
+ setConfig(deps.configPath, "zoom.client_id", client.clientId);
5843
+ addProfile(deps.configPath, profile);
5844
+ }, "afterSignIn"),
5845
+ profiles: /* @__PURE__ */ __name(() => readConfig(deps.configPath).profiles, "profiles")
5846
+ }), "zoomSessionCommand");
5847
+
5913
5848
  // dist/run.js
5914
5849
  var configured = /* @__PURE__ */ __name((path) => {
5915
5850
  try {
@@ -5970,6 +5905,8 @@ var zoomDefinition = /* @__PURE__ */ __name((deps, onFailure) => {
5970
5905
  app: ZM,
5971
5906
  commands: /* @__PURE__ */ __name(() => [
5972
5907
  zoomRunsCommand(),
5908
+ zoomSessionCommand(deps, shared.resolveSettings),
5909
+ appCompleteCommand(ZM, { configuredProfiles: /* @__PURE__ */ __name(() => configured(deps.configPath)?.profiles ?? [], "configuredProfiles") }),
5973
5910
  appDoctorCommand(ZM, shared, {
5974
5911
  packageName: "@wirecat/zoom-cli",
5975
5912
  oauthClient: /* @__PURE__ */ __name(() => zoomClientReport(configured(deps.configPath), deps.env ?? process.env), "oauthClient")
@@ -6010,6 +5947,8 @@ var runCommand = /* @__PURE__ */ __name(async (args, deps, onFailure) => run(arg
6010
5947
  ...deps.stdin ? { stdin: deps.stdin } : {},
6011
5948
  ...deps.stdout ? { stdout: deps.stdout } : {},
6012
5949
  keyring: deps.tokens.options.keyring,
5950
+ openBrowser: /* @__PURE__ */ __name((url, command) => deps.openBrowser(url, void 0, command), "openBrowser"),
5951
+ ...deps.signInFetch ? { fetch: deps.signInFetch } : {},
6013
5952
  ...deps.confirm ? { answer: /* @__PURE__ */ __name(async (question) => await deps.confirm?.(question) ? "yes" : "no", "answer") } : {}
6014
5953
  }), "runCommand");
6015
5954