@wirecat/zoom-cli 0.82.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 (222) hide show
  1. package/README.md +2 -2
  2. package/contracts/wirecat.json +54 -54
  3. package/dist/api.d.ts.map +1 -1
  4. package/dist/api.js +1 -1
  5. package/dist/api.js.map +1 -1
  6. package/dist/bin/main.js +2 -15
  7. package/dist/bin/main.js.map +1 -1
  8. package/dist/bin/zm.js +2 -2
  9. package/dist/bundle/agent-3HDWEZ5M.js +47 -0
  10. package/dist/bundle/{all-profiles-RULEKTDQ.js → all-profiles-RY2OMSDL.js} +8 -8
  11. package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
  12. package/dist/bundle/{anthropic-4NAQBZFL.js → anthropic-36VPSF7B.js} +3 -3
  13. package/dist/bundle/{app-server-VLR42U5L.js → app-server-ZVJVUGB7.js} +72 -71
  14. package/dist/bundle/{bun-OPDGMZZQ.js → bun-F4M4KCNA.js} +2 -2
  15. package/dist/bundle/{bun-sqlite-HC6X4AOX.js → bun-sqlite-IOPYIUA7.js} +4 -4
  16. package/dist/bundle/{chunk-MAJJ4PG3.js → chunk-26TW5RZ6.js} +31 -315
  17. package/dist/bundle/{chunk-XQQVMECZ.js → chunk-2DK5BBFF.js} +1 -1
  18. package/dist/bundle/{chunk-BP4FYANF.js → chunk-2IBKKVVZ.js} +4 -4
  19. package/dist/bundle/{chunk-52Y4ETKU.js → chunk-2S54TM4N.js} +3 -3
  20. package/dist/bundle/{chunk-DCYFT3FR.js → chunk-3AQHKXVR.js} +4 -4
  21. package/dist/bundle/{chunk-VS6WURLX.js → chunk-3CW2C7ZA.js} +2 -2
  22. package/dist/bundle/{chunk-6QYZP4E2.js → chunk-3KUEZK5Z.js} +2 -2
  23. package/dist/bundle/{chunk-YJXJJ2XP.js → chunk-3PXUQFHX.js} +7 -7
  24. package/dist/bundle/{chunk-PSKTMMCO.js → chunk-575JMTDR.js} +17 -16
  25. package/dist/bundle/{chunk-QPHBK63S.js → chunk-5B2LV4MS.js} +2 -1
  26. package/dist/bundle/{chunk-OGNO35A2.js → chunk-5WL5RHOO.js} +5 -100
  27. package/dist/bundle/{chunk-ASBDFXLS.js → chunk-6C7ESL5N.js} +2 -2
  28. package/dist/bundle/{chunk-676C2LE6.js → chunk-6E4KLYNP.js} +10 -10
  29. package/dist/bundle/chunk-7JDXR75Q.js +465 -0
  30. package/dist/bundle/{chunk-UR5DBODY.js → chunk-AK3H2C65.js} +30 -26
  31. package/dist/bundle/{chunk-VB7FZOYX.js → chunk-AQ5RIOUE.js} +1 -1
  32. package/dist/bundle/{chunk-UKAAAOPC.js → chunk-AQLUAQXJ.js} +23 -15
  33. package/dist/bundle/{chunk-V5EJSF2B.js → chunk-ASTLGFTR.js} +205 -170
  34. package/dist/bundle/{chunk-PWVJUIDQ.js → chunk-ATHBB7OU.js} +2 -2
  35. package/dist/bundle/{chunk-GTKPMYK7.js → chunk-B2NM65RD.js} +13 -5
  36. package/dist/bundle/{chunk-G6PETRMV.js → chunk-B4KHDXJE.js} +2 -2
  37. package/dist/bundle/{chunk-4HLQ2JGK.js → chunk-BAFC7WNI.js} +3 -3
  38. package/dist/bundle/{chunk-KVJ3I7UL.js → chunk-BTLZYRIW.js} +5 -5
  39. package/dist/bundle/{chunk-KKFY23AK.js → chunk-BZDS2X6Y.js} +61 -61
  40. package/dist/bundle/{chunk-VZ5PPYDG.js → chunk-C7JPYWYQ.js} +1 -1
  41. package/dist/bundle/{chunk-W5QHB53X.js → chunk-CDQUW25G.js} +10 -10
  42. package/dist/bundle/{chunk-AIKFOBDO.js → chunk-CJWGJBHW.js} +28 -8
  43. package/dist/bundle/{chunk-HP7A2ZOP.js → chunk-D7RCUODT.js} +7 -7
  44. package/dist/bundle/{chunk-LEKKTJKK.js → chunk-DQJECJUE.js} +23 -102
  45. package/dist/bundle/{chunk-B32KZRQM.js → chunk-E4JQ3MCW.js} +11 -11
  46. package/dist/bundle/{chunk-HZENBDW2.js → chunk-E4ODYLEK.js} +6 -6
  47. package/dist/bundle/{chunk-RQOZBTNI.js → chunk-EE45N67Q.js} +3 -3
  48. package/dist/bundle/{chunk-VB72LTSZ.js → chunk-EEEU4MKK.js} +11 -11
  49. package/dist/bundle/{chunk-EGTCQKHV.js → chunk-ETIZGA4P.js} +5 -5
  50. package/dist/bundle/{chunk-BDKVOU3I.js → chunk-F44QK6CK.js} +3 -3
  51. package/dist/bundle/{chunk-274SLQNW.js → chunk-FH2UFNH6.js} +2 -2
  52. package/dist/bundle/{chunk-3HC5F3P7.js → chunk-FTH6WGYO.js} +1 -1
  53. package/dist/bundle/chunk-FWACRG4X.js +160 -0
  54. package/dist/bundle/chunk-G5SZL7G2.js +150 -0
  55. package/dist/bundle/{chunk-EQG3PIH2.js → chunk-G6CHEFAG.js} +2 -2
  56. package/dist/bundle/{chunk-66ALX4ZI.js → chunk-GHJD7PE6.js} +18 -18
  57. package/dist/bundle/{chunk-Q7ICVP25.js → chunk-GZ7WBU5Y.js} +1 -1
  58. package/dist/bundle/{chunk-UL2PXLKT.js → chunk-H6A4NWYJ.js} +320 -43
  59. package/dist/bundle/{chunk-WMANRJR5.js → chunk-HKLRI2LB.js} +6 -6
  60. package/dist/bundle/{chunk-L75SMSJR.js → chunk-HMD4FZYY.js} +3 -3
  61. package/dist/bundle/{chunk-2JHVQMVC.js → chunk-HO4JGD4Q.js} +1 -1
  62. package/dist/bundle/{chunk-WOPVBRPV.js → chunk-HUAHLO6N.js} +1 -1
  63. package/dist/bundle/{chunk-6VK332XS.js → chunk-IQZXFWFI.js} +2 -2
  64. package/dist/bundle/{chunk-NB7EOAUZ.js → chunk-ISQ23VKV.js} +1 -1
  65. package/dist/bundle/{chunk-QVYAV7F2.js → chunk-JEH33ZCD.js} +3 -3
  66. package/dist/bundle/{chunk-ICPJT672.js → chunk-JUNQYWQ2.js} +6 -6
  67. package/dist/bundle/{chunk-K5JGJIV2.js → chunk-JUXMVQWJ.js} +311 -152
  68. package/dist/bundle/{chunk-OBXQLFT5.js → chunk-KHQDWYCG.js} +1 -1
  69. package/dist/bundle/{chunk-GGMAIIVE.js → chunk-KYRYD4CR.js} +1 -1
  70. package/dist/bundle/chunk-LBGT6W4R.js +377 -0
  71. package/dist/bundle/{chunk-JQ54DYAQ.js → chunk-LN7HRYTH.js} +1 -1
  72. package/dist/bundle/{chunk-G46WJ7YO.js → chunk-MEB7HBTM.js} +5 -5
  73. package/dist/bundle/{chunk-M7H4MCAX.js → chunk-MEEFWYX3.js} +3 -3
  74. package/dist/bundle/{chunk-73MOMNLL.js → chunk-MNOAMJ6H.js} +1 -1
  75. package/dist/bundle/{chunk-A6EZK5RG.js → chunk-MYHPXJDG.js} +1 -1
  76. package/dist/bundle/{chunk-HC6VN5CO.js → chunk-NGI37RFW.js} +7 -7
  77. package/dist/bundle/{chunk-2GP573Q4.js → chunk-NZMWD7Y3.js} +3656 -2697
  78. package/dist/bundle/chunk-O6IECJRM.js +54 -0
  79. package/dist/bundle/{chunk-Y6PVS55U.js → chunk-OBWL3BUV.js} +35 -35
  80. package/dist/bundle/{chunk-2XBDILVW.js → chunk-OEEWVKJX.js} +1 -1
  81. package/dist/bundle/chunk-OGTN2KVG.js +147 -0
  82. package/dist/bundle/{chunk-GWGHH56B.js → chunk-OQYZ3W4K.js} +10 -10
  83. package/dist/bundle/{chunk-2CI2OEZQ.js → chunk-P3ZCTYGW.js} +2 -2
  84. package/dist/bundle/{chunk-OIPYBF43.js → chunk-PVEBAHFU.js} +2 -2
  85. package/dist/bundle/{chunk-2SWKQ7C4.js → chunk-R6IA5UQB.js} +1 -1
  86. package/dist/bundle/{chunk-T7IAWEBU.js → chunk-RLOH7RDN.js} +7 -7
  87. package/dist/bundle/{chunk-KJ6USQDZ.js → chunk-RQ4AXSCJ.js} +5 -5
  88. package/dist/bundle/{chunk-XQ2WL3HB.js → chunk-RYGTCRFZ.js} +2 -2
  89. package/dist/bundle/{chunk-N46F72AF.js → chunk-S4PXWIE4.js} +84 -86
  90. package/dist/bundle/{chunk-MQLPZBMQ.js → chunk-SDZZYZLL.js} +1 -1
  91. package/dist/bundle/{chunk-E745WZKY.js → chunk-SHQAYUK6.js} +6 -6
  92. package/dist/bundle/{chunk-3YM4B2GT.js → chunk-T3W4V4A6.js} +1 -1
  93. package/dist/bundle/{chunk-4N7PP76S.js → chunk-TCT5D2X2.js} +1 -1
  94. package/dist/bundle/{chunk-7QPIUMUG.js → chunk-TDWPOSPR.js} +10 -10
  95. package/dist/bundle/{chunk-ZED2CJW5.js → chunk-TER3N27H.js} +6 -6
  96. package/dist/bundle/{chunk-UQCTXZEP.js → chunk-TMTNP7QN.js} +9 -9
  97. package/dist/bundle/{chunk-KWU46LNK.js → chunk-TO5UEWXR.js} +2 -2
  98. package/dist/bundle/{chunk-OQFQ77AY.js → chunk-UBH7YF3C.js} +61 -59
  99. package/dist/bundle/{chunk-QVSL5WJ7.js → chunk-UEAE3JUU.js} +488 -436
  100. package/dist/bundle/{chunk-5KYQ53EF.js → chunk-UHR363OD.js} +7 -7
  101. package/dist/bundle/{chunk-7UVDPRFK.js → chunk-UM52A76S.js} +5 -5
  102. package/dist/bundle/{chunk-ZOYOXWJB.js → chunk-URP6BTHN.js} +34 -156
  103. package/dist/bundle/{chunk-N3JLO63O.js → chunk-UWQEAA6S.js} +1 -1
  104. package/dist/bundle/{chunk-OO4TRVPB.js → chunk-VR7QZGRU.js} +5 -5
  105. package/dist/bundle/{chunk-GBHMT2IU.js → chunk-VRH5PBSL.js} +13 -13
  106. package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
  107. package/dist/bundle/{chunk-ACI4YIEH.js → chunk-VTYNLTDW.js} +1 -1
  108. package/dist/bundle/{chunk-NEMX3UNN.js → chunk-WY7XG6TE.js} +2 -2
  109. package/dist/bundle/{chunk-AC6VJNMJ.js → chunk-XEOZTA3H.js} +1 -1
  110. package/dist/bundle/{chunk-QG6PILDO.js → chunk-XH23ML2V.js} +1 -1
  111. package/dist/bundle/{chunk-5HAUK3I4.js → chunk-XYF76A26.js} +1179 -783
  112. package/dist/bundle/{chunk-KQPUVXKX.js → chunk-ZDYJAEVB.js} +2 -2
  113. package/dist/bundle/{chunk-TKNM22OH.js → chunk-ZJ63HDBT.js} +1 -1
  114. package/dist/bundle/{chunk-5TU7Y5UW.js → chunk-ZT4ZPUIO.js} +11 -11
  115. package/dist/bundle/{cli-U4O5XB7J.js → cli-JK6PQSSN.js} +94 -79
  116. package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
  117. package/dist/bundle/{command-server-entry-KKH6ZWJV.js → command-server-entry-DJLGN62J.js} +31 -30
  118. package/dist/bundle/config-TYYMV3HV.js +118 -0
  119. package/dist/bundle/{decode-TPCNXEK4.js → decode-ZZICNNFF.js} +3 -3
  120. package/dist/bundle/{dist-7CLBCYZN.js → dist-NQPF25XI.js} +47 -46
  121. package/dist/bundle/{echarts-O3TNDAXJ.js → echarts-QMAA7HH5.js} +2 -2
  122. package/dist/bundle/{embed-WCJSFVSK.js → embed-T64EUKUI.js} +4 -4
  123. package/dist/bundle/{embedder-TBBUPXBX.js → embedder-ZEKISZXI.js} +7 -7
  124. package/dist/bundle/{first-run-ELEMFW42.js → first-run-ZFNY4RRH.js} +8 -8
  125. package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
  126. package/dist/bundle/{folders-LXOL4N4S.js → folders-ROKVKSCT.js} +2 -2
  127. package/dist/bundle/{instructions-AMH5RWVJ.js → instructions-4H7UREH2.js} +1 -1
  128. package/dist/bundle/{main-YAA7WQ23.js → main-GCK3VYAA.js} +24 -34
  129. package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
  130. package/dist/bundle/{meeting-model-3BZJ3EQP.js → meeting-model-MVUW7UPQ.js} +10 -10
  131. package/dist/bundle/{meeting-semantic-3HU7I2SJ.js → meeting-semantic-IF633WGX.js} +3 -3
  132. package/dist/bundle/{meetings-XWMB6FOH.js → meetings-RY2AAPHV.js} +2 -2
  133. package/dist/bundle/{node-EGMCBAO7.js → node-P3PUHKYH.js} +2 -2
  134. package/dist/bundle/{node-sqlite-IJBWENFX.js → node-sqlite-ASAZJNHE.js} +5 -5
  135. package/dist/bundle/{oauth-SZDDAP7A.js → oauth-4U3OCK3W.js} +5 -5
  136. package/dist/bundle/oauth-AJARLPSY.js +46 -0
  137. package/dist/bundle/{open-NS3TMKZX.js → open-SEJRY2ZI.js} +3 -3
  138. package/dist/bundle/{openai-4DN6WI3B.js → openai-FZDSC2AA.js} +12 -12
  139. package/dist/bundle/{output-file-2UB5JP3R.js → output-file-RYIOIXMD.js} +1 -1
  140. package/dist/bundle/{process-SGHEN6MQ.js → process-AFIXYXWL.js} +1 -1
  141. package/dist/bundle/{program-GVCGZP27.js → program-OYLVYA4Z.js} +174 -236
  142. package/dist/bundle/{prompt-HJFMPFVC.js → prompt-BCRD64F4.js} +3 -3
  143. package/dist/bundle/{public-C2ZB2AGQ.js → public-SVJILCNI.js} +43 -35
  144. package/dist/bundle/{recognize-2SEI5PPM.js → recognize-25ITJWGX.js} +2 -2
  145. package/dist/bundle/{remote-2DMS74XE.js → remote-5FBAJX7O.js} +8 -8
  146. package/dist/bundle/{rerank-H6GCYVIA.js → rerank-2HGWWORY.js} +5 -5
  147. package/dist/bundle/run-log-7HRF4Y47.js +145 -0
  148. package/dist/bundle/{serve-ODVRPFJO.js → serve-RL35MSJD.js} +7 -7
  149. package/dist/bundle/{server-PCLIO24L.js → server-QUSBWACP.js} +64 -63
  150. package/dist/bundle/server-SCK2SRDK.js +96 -0
  151. package/dist/bundle/{services-4QAPXBLO.js → services-BGRIQNDC.js} +55 -53
  152. package/dist/bundle/{speech-MA6ZT3WE.js → speech-4W3ZMTFK.js} +21 -21
  153. package/dist/bundle/{sqlite-runtime-PVMAUXRN.js → sqlite-runtime-K3KLRZCV.js} +4 -4
  154. package/dist/bundle/{state-QFMTYUME.js → state-GYL4C74G.js} +4 -4
  155. package/dist/bundle/{store-25OTAQC3.js → store-27UQMNEO.js} +23 -21
  156. package/dist/bundle/{store-F724QIKJ.js → store-NLYH5SQX.js} +54 -43
  157. package/dist/bundle/store-connection-CZILWRSR.js +112 -0
  158. package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
  159. package/dist/bundle/{streaming-S22C4DG5.js → streaming-73EKEGPF.js} +2 -2
  160. package/dist/bundle/surface-CV3C4RV2.js +82 -0
  161. package/dist/bundle/tokens-PY3S22LY.js +27 -0
  162. package/dist/bundle/zm.js +2 -2
  163. package/dist/bundle/{zoom-app-YWFB367P.js → zoom-app-4F4YY4OI.js} +8 -6
  164. package/dist/commands.d.ts +1 -8
  165. package/dist/commands.d.ts.map +1 -1
  166. package/dist/commands.js +3 -33
  167. package/dist/commands.js.map +1 -1
  168. package/dist/index.d.ts +1 -2
  169. package/dist/index.d.ts.map +1 -1
  170. package/dist/index.js +1 -2
  171. package/dist/index.js.map +1 -1
  172. package/dist/program-bindings.d.ts.map +1 -1
  173. package/dist/program-bindings.js +2 -12
  174. package/dist/program-bindings.js.map +1 -1
  175. package/dist/program.d.ts +3 -5
  176. package/dist/program.d.ts.map +1 -1
  177. package/dist/run.d.ts.map +1 -1
  178. package/dist/run.js +6 -1
  179. package/dist/run.js.map +1 -1
  180. package/dist/setup-commands.d.ts +5 -14
  181. package/dist/setup-commands.d.ts.map +1 -1
  182. package/dist/setup-commands.js +7 -142
  183. package/dist/setup-commands.js.map +1 -1
  184. package/dist/tokens.d.ts +20 -44
  185. package/dist/tokens.d.ts.map +1 -1
  186. package/dist/tokens.js +95 -308
  187. package/dist/tokens.js.map +1 -1
  188. package/dist/version.d.ts +1 -1
  189. package/dist/version.js +1 -1
  190. package/dist/zoom-app.js +1 -1
  191. package/dist/zoom-app.js.map +1 -1
  192. package/dist/zoom-session.d.ts +6 -0
  193. package/dist/zoom-session.d.ts.map +1 -0
  194. package/dist/zoom-session.js +72 -0
  195. package/dist/zoom-session.js.map +1 -0
  196. package/package.json +2 -2
  197. package/skills/zoom-cli/references/setup.md +2 -2
  198. package/dist/bundle/agent-F4TRJWWS.js +0 -46
  199. package/dist/bundle/answer-policy-6XC57AEZ.js +0 -131
  200. package/dist/bundle/chunk-2DBF2IIC.js +0 -330
  201. package/dist/bundle/chunk-DSZYABYL.js +0 -808
  202. package/dist/bundle/chunk-KXJ3JEDH.js +0 -2
  203. package/dist/bundle/chunk-LAYYO4WD.js +0 -31
  204. package/dist/bundle/chunk-PMUPN6JW.js +0 -773
  205. package/dist/bundle/chunk-TKVBFJ5C.js +0 -37
  206. package/dist/bundle/chunk-YY7XKHDY.js +0 -79
  207. package/dist/bundle/command-contract-FBTK6GQX.js +0 -45
  208. package/dist/bundle/config-FRJSIZNN.js +0 -118
  209. package/dist/bundle/first-screen-DIOBWMKP.js +0 -46
  210. package/dist/bundle/meeting-combined-UXCF4SJ3.js +0 -26
  211. package/dist/bundle/run-log-QU26SUZP.js +0 -145
  212. package/dist/bundle/server-NBPF6IDZ.js +0 -95
  213. package/dist/bundle/store-connection-OGPXANGB.js +0 -111
  214. package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +0 -83
  215. package/dist/bundle/surface-7PXHWCF6.js +0 -81
  216. package/dist/bundle/tokens-NLUHA2DW.js +0 -25
  217. package/dist/login.d.ts +0 -16
  218. package/dist/login.d.ts.map +0 -1
  219. package/dist/login.js +0 -98
  220. package/dist/login.js.map +0 -1
  221. package/dist/bundle/{chunk-6CWL5BKG.js → chunk-3QN5KDFZ.js} +147 -147
  222. /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-UL2PXLKT.js";
28
+ validateUnifiedSearch,
29
+ wholeList
30
+ } from "./chunk-H6A4NWYJ.js";
25
31
  import {
26
32
  emitReceipt
27
- } from "./chunk-XQQVMECZ.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-MAJJ4PG3.js";
59
+ } from "./chunk-26TW5RZ6.js";
57
60
  import {
58
61
  MEMO_SCENARIOS,
59
62
  SEARCHES_QUERY,
@@ -63,7 +66,7 @@ import {
63
66
  addMeetingPreparationCommand,
64
67
  addMeetingProjectCandidatesCommand,
65
68
  addMeetingSeriesInventoryCommand,
66
- answerStdinOption,
69
+ appCompleteCommand,
67
70
  appDoctorCommand,
68
71
  appMcpCommand,
69
72
  createProgram,
@@ -74,31 +77,32 @@ import {
74
77
  meetingEvidenceItem,
75
78
  meetingPersonContextItem,
76
79
  modelCatalogueCommand,
80
+ oauthSessionCommand,
77
81
  passageForRun,
78
82
  run,
79
83
  sharedCommandTemplate,
80
- signInSteps,
81
84
  skillCommand as skillCommand2,
82
85
  upgradeCommand
83
- } from "./chunk-5HAUK3I4.js";
84
- import "./chunk-7QPIUMUG.js";
86
+ } from "./chunk-XYF76A26.js";
87
+ import "./chunk-TDWPOSPR.js";
85
88
  import {
86
89
  CLIENT_ID_NEED,
87
90
  SET_ZOOM_APP,
88
91
  checkedClientId,
89
- login,
90
92
  zoomApp,
91
93
  zoomAppChecklist,
92
94
  zoomAppSetup,
93
95
  zoomClientId,
94
96
  zoomClientReport
95
- } from "./chunk-OGNO35A2.js";
97
+ } from "./chunk-5WL5RHOO.js";
96
98
  import {
97
- TokenManager
98
- } from "./chunk-2DBF2IIC.js";
99
- import "./chunk-K5JGJIV2.js";
100
- import "./chunk-7O7XM37N.js";
101
- import "./chunk-TKVBFJ5C.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";
102
106
  import {
103
107
  ZoneAssumptions,
104
108
  cancellableStore,
@@ -110,31 +114,28 @@ import {
110
114
  zoomInstant,
111
115
  zoomTime
112
116
  } from "./chunk-434YFJAE.js";
113
- import "./chunk-VB72LTSZ.js";
114
- import "./chunk-UQCTXZEP.js";
115
- import "./chunk-VS6WURLX.js";
116
117
  import {
117
118
  allAnswer
118
- } from "./chunk-UR5DBODY.js";
119
- import "./chunk-3HC5F3P7.js";
119
+ } from "./chunk-AK3H2C65.js";
120
+ import "./chunk-FTH6WGYO.js";
120
121
  import {
121
122
  skillCommand
122
- } from "./chunk-M7H4MCAX.js";
123
- import "./chunk-ASBDFXLS.js";
124
- import "./chunk-52Y4ETKU.js";
125
- import "./chunk-BDKVOU3I.js";
126
- import "./chunk-HZENBDW2.js";
127
- import "./chunk-VZ5PPYDG.js";
128
- import "./chunk-DCYFT3FR.js";
129
- import "./chunk-OQFQ77AY.js";
130
- import "./chunk-ICPJT672.js";
131
- import "./chunk-UKAAAOPC.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";
132
133
  import {
133
134
  pagingOf
134
- } from "./chunk-ZED2CJW5.js";
135
- import "./chunk-EGTCQKHV.js";
136
- import "./chunk-KQPUVXKX.js";
137
- import "./chunk-RQOZBTNI.js";
135
+ } from "./chunk-TER3N27H.js";
136
+ import "./chunk-ETIZGA4P.js";
137
+ import "./chunk-ZDYJAEVB.js";
138
+ import "./chunk-EE45N67Q.js";
138
139
  import {
139
140
  NativeRecordingPartialStore,
140
141
  NativeRecordingPublication,
@@ -145,15 +146,15 @@ import {
145
146
  runSettings,
146
147
  savedSearchItem,
147
148
  validateMeetingPreparationRequest
148
- } from "./chunk-QVSL5WJ7.js";
149
- import "./chunk-676C2LE6.js";
150
- import "./chunk-QPHBK63S.js";
149
+ } from "./chunk-UEAE3JUU.js";
150
+ import "./chunk-6E4KLYNP.js";
151
+ import "./chunk-5B2LV4MS.js";
151
152
  import {
152
153
  nativeWriterLeaseStore,
153
154
  openOrdinaryFile,
154
155
  syncDirectory,
155
156
  writeFileAtomic
156
- } from "./chunk-N46F72AF.js";
157
+ } from "./chunk-S4PXWIE4.js";
157
158
  import {
158
159
  addMeetingCommands,
159
160
  addMeetingPassageCommand,
@@ -166,39 +167,40 @@ import {
166
167
  typedQuery,
167
168
  unfilteredQuery,
168
169
  withQuery
169
- } from "./chunk-GBHMT2IU.js";
170
- import "./chunk-GWGHH56B.js";
171
- import "./chunk-6VK332XS.js";
172
- import "./chunk-5KYQ53EF.js";
173
- import "./chunk-NB7EOAUZ.js";
174
- import "./chunk-WOPVBRPV.js";
175
- import "./chunk-5TU7Y5UW.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-A6EZK5RG.js";
181
+ } from "./chunk-MYHPXJDG.js";
181
182
  import "./chunk-TY7NDMFY.js";
182
183
  import {
184
+ legacyLoginService,
183
185
  sameConfigFolder,
184
186
  zmPaths
185
- } from "./chunk-AC6VJNMJ.js";
186
- import "./chunk-B32KZRQM.js";
187
- import "./chunk-XQ2WL3HB.js";
188
- import "./chunk-AIKFOBDO.js";
189
- import "./chunk-QG6PILDO.js";
190
- import "./chunk-HC6VN5CO.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-NEMX3UNN.js";
193
- import "./chunk-KXJ3JEDH.js";
194
- import "./chunk-66ALX4ZI.js";
195
- import "./chunk-7UVDPRFK.js";
196
- import "./chunk-HP7A2ZOP.js";
197
- import "./chunk-KVJ3I7UL.js";
198
- import "./chunk-OO4TRVPB.js";
199
- import "./chunk-N3JLO63O.js";
200
- import "./chunk-Q7ICVP25.js";
201
- import "./chunk-L75SMSJR.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";
202
204
  import {
203
205
  Argument,
204
206
  CommanderError,
@@ -210,10 +212,8 @@ import {
210
212
  NO_EFFECTS,
211
213
  Option,
212
214
  REMOTE_READ,
213
- REMOTE_WRITE,
214
215
  annotate,
215
216
  checkpointPath,
216
- commandWords,
217
217
  customizeSharedCommand,
218
218
  environmentOf,
219
219
  grantsAuthority,
@@ -221,31 +221,29 @@ import {
221
221
  itemAnswer,
222
222
  itemOf,
223
223
  listOf,
224
- logsInOrOut,
225
224
  overrideSharedContract,
226
225
  progressOf,
227
226
  readCheckpoint,
228
- refuseCommandName,
229
227
  runBudgetOf,
230
228
  saveCheckpoint,
231
229
  settingRows,
232
230
  snakeKeys,
233
231
  writesNewFileOnlyWith,
234
232
  writesOwnerFiles
235
- } from "./chunk-V5EJSF2B.js";
236
- import "./chunk-2CI2OEZQ.js";
237
- import "./chunk-TKNM22OH.js";
238
- import "./chunk-T7IAWEBU.js";
239
- import "./chunk-3YM4B2GT.js";
240
- import "./chunk-QVYAV7F2.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";
241
239
  import {
242
240
  COMMAND_PATH_KEY,
243
241
  assertOverridesTighten,
244
242
  permissionOverrides
245
- } from "./chunk-KJ6USQDZ.js";
246
- import "./chunk-G6PETRMV.js";
247
- import "./chunk-BP4FYANF.js";
248
- import "./chunk-6QYZP4E2.js";
243
+ } from "./chunk-RQ4AXSCJ.js";
244
+ import "./chunk-B4KHDXJE.js";
245
+ import "./chunk-2IBKKVVZ.js";
246
+ import "./chunk-3KUEZK5Z.js";
249
247
  import {
250
248
  hostFetch,
251
249
  providerWaitMs,
@@ -253,46 +251,47 @@ import {
253
251
  retryableStatus,
254
252
  retrying,
255
253
  statusToCode
256
- } from "./chunk-ACI4YIEH.js";
254
+ } from "./chunk-VTYNLTDW.js";
257
255
  import {
258
256
  speechModel
259
- } from "./chunk-4HLQ2JGK.js";
260
- import "./chunk-OIPYBF43.js";
261
- import "./chunk-OBXQLFT5.js";
262
- import "./chunk-2GP573Q4.js";
263
- import "./chunk-JQ54DYAQ.js";
264
- import "./chunk-PMUPN6JW.js";
265
- import "./chunk-YJXJJ2XP.js";
266
- import "./chunk-LEKKTJKK.js";
267
- import "./chunk-YY7XKHDY.js";
268
- import "./chunk-2JHVQMVC.js";
269
- import "./chunk-ZOYOXWJB.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";
270
268
  import {
271
269
  currentAttempt,
272
270
  withAttempt
273
- } from "./chunk-WMANRJR5.js";
274
- import "./chunk-GTKPMYK7.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";
275
276
  import {
276
277
  formatReference,
277
278
  isFolderProvider
278
- } from "./chunk-DSZYABYL.js";
279
- import "./chunk-73MOMNLL.js";
280
- import "./chunk-LAYYO4WD.js";
281
- import "./chunk-E745WZKY.js";
282
- import "./chunk-4N7PP76S.js";
279
+ } from "./chunk-7JDXR75Q.js";
280
+ import "./chunk-SHQAYUK6.js";
281
+ import "./chunk-TCT5D2X2.js";
283
282
  import {
284
283
  CLIENT_ID_MISSING,
285
284
  VERSION,
286
285
  ZM
287
- } from "./chunk-2SWKQ7C4.js";
286
+ } from "./chunk-R6IA5UQB.js";
288
287
  import {
289
288
  installerOf
290
289
  } from "./chunk-TXDR6YSF.js";
291
290
  import "./chunk-D72URWJE.js";
292
- import "./chunk-274SLQNW.js";
293
- import "./chunk-PWVJUIDQ.js";
294
- import "./chunk-G46WJ7YO.js";
295
- import "./chunk-GGMAIIVE.js";
291
+ import "./chunk-FH2UFNH6.js";
292
+ import "./chunk-ATHBB7OU.js";
293
+ import "./chunk-MEB7HBTM.js";
294
+ import "./chunk-KYRYD4CR.js";
296
295
  import {
297
296
  MEETING_COUNTS_GROUPINGS,
298
297
  RecordingSyncError,
@@ -323,7 +322,7 @@ import {
323
322
  validateMeetingChange,
324
323
  validateMeetingContextChange,
325
324
  watchMeetingIngestion
326
- } from "./chunk-KKFY23AK.js";
325
+ } from "./chunk-BZDS2X6Y.js";
327
326
  import {
328
327
  dateRange,
329
328
  defineQuery,
@@ -338,7 +337,7 @@ import {
338
337
  fieldsOf,
339
338
  projectFields,
340
339
  realSleep
341
- } from "./chunk-6CWL5BKG.js";
340
+ } from "./chunk-3QN5KDFZ.js";
342
341
  import {
343
342
  array,
344
343
  boolean,
@@ -1928,7 +1927,7 @@ ${raw}`;
1928
1927
  }, "parseZoomChat");
1929
1928
 
1930
1929
  // dist/api.js
1931
- var TRANSCRIPT_MAX_BYTES = 10 * 1024 * 1024;
1930
+ var TRANSCRIPT_MAX_BYTES = 100 * 1024 * 1024;
1932
1931
  var json = /* @__PURE__ */ __name((value) => {
1933
1932
  if (value === null || typeof value === "boolean" || typeof value === "string")
1934
1933
  return value;
@@ -3928,7 +3927,7 @@ var addModelsCommands = /* @__PURE__ */ __name((program, deps) => {
3928
3927
  // dist/upgrade.js
3929
3928
  import { join as join12 } from "node:path";
3930
3929
 
3931
- // node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/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
3932
3931
  import { realpathSync } from "node:fs";
3933
3932
  import { fileURLToPath as fileURLToPath2 } from "node:url";
3934
3933
  var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
@@ -4056,125 +4055,12 @@ var addAppCommand = /* @__PURE__ */ __name((program, { output, buffer, pretty })
4056
4055
  output(itemOf(zoomAppSetup()));
4057
4056
  });
4058
4057
  }, "addAppCommand");
4059
- var PASTE_PROMPT = "If the browser does not come back by itself, the address it ended on (code=\u2026&state=\u2026)";
4060
- var savedLogin = /* @__PURE__ */ __name((manager, now) => {
4061
- const saved = manager.load();
4062
- return {
4063
- state: saved ? saved.expiresAt > now ? "saved" : "expired" : "missing",
4064
- ...saved ? { expiresAt: saved.expiresAt, scopes: saved.scopes } : {}
4065
- };
4066
- }, "savedLogin");
4067
- var addSessionCommands = /* @__PURE__ */ __name((program, context) => {
4068
- const { deps, getConfig, output, buffer, api, profile, tokens, fetch, signal } = context;
4069
- addStandardCommands(program, {
4070
- output,
4071
- raw: buffer,
4072
- sessionStatus: /* @__PURE__ */ __name(async (check) => {
4073
- const config = getConfig();
4074
- const selected = profile();
4075
- if (!zoomClientId(config, deps.env ?? process.env))
4076
- return { configured: false, state: "not_configured", profile: selected, verified: false };
4077
- if (check) {
4078
- if (program.opts().offline)
4079
- throw new CliError("configuration_error", "session verification requires network access; remove --offline");
4080
- api();
4081
- return {
4082
- configured: true,
4083
- state: "verified",
4084
- profile: selected,
4085
- verified: true,
4086
- zoomUser: await (deps.checkSession ? deps.checkSession({ signal: signal() }) : getZoomProfile(tokens(), fetch(), { signal: signal() }))
4087
- };
4088
- }
4089
- return {
4090
- configured: true,
4091
- profile: selected,
4092
- verified: false,
4093
- ...savedLogin(tokens(), deps.now?.() ?? Date.now())
4094
- };
4095
- }, "sessionStatus"),
4096
- sessionList: /* @__PURE__ */ __name(async () => {
4097
- const config = getConfig();
4098
- const configured2 = zoomClientId(config, deps.env ?? process.env) !== void 0;
4099
- return config.profiles.map((name) => {
4100
- let login2;
4101
- try {
4102
- login2 = savedLogin(deps.tokens.forProfile(name), deps.now?.() ?? Date.now());
4103
- } catch (error) {
4104
- if (isCliError(error) && error.code === "configuration_error")
4105
- return { profile: name, signed_in: null, state: "unknown" };
4106
- throw error;
4107
- }
4108
- return {
4109
- profile: name,
4110
- signed_in: login2.state !== "missing",
4111
- ...configured2 ? login2 : { state: "not_configured" }
4112
- };
4113
- });
4114
- }, "sessionList")
4115
- });
4058
+ var addSharedCommands = /* @__PURE__ */ __name((program, { deps, buffer, output }) => {
4059
+ addStandardCommands(program);
4116
4060
  addUpgradeCommand(program, { data: buffer, diagnostic: deps.diagnostic });
4117
4061
  addModelsCommands(program, { env: /* @__PURE__ */ __name(() => deps.env ?? process.env, "env"), output, diagnostic: deps.diagnostic });
4118
- const session = program.commands.find((command) => command.name() === "session");
4119
- if (!session)
4120
- throw new CliError("configuration_error", "session command group is unavailable");
4121
- 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) => {
4122
- if (opts.credentialStorage !== "keyring" && opts.credentialStorage !== "file")
4123
- throw new CliError("validation_error", "--credential-storage takes keyring or file");
4124
- const storage = opts.credentialStorage;
4125
- const config = getConfig();
4126
- const selected = profile();
4127
- refuseCommandName(selected, commandWords(program), "zm");
4128
- if (opts.clientId !== void 0)
4129
- checkedClientId(opts.clientId);
4130
- const known = zoomApp({
4131
- env: deps.env ?? process.env,
4132
- configClientId: config.clientId,
4133
- clientId: opts.clientId
4134
- })?.client.clientId;
4135
- if (!known && opts.answerStdin !== true)
4136
- throw new CliError("configuration_error", SET_ZOOM_APP, { reason: CLIENT_ID_MISSING });
4137
- const globals = program.opts();
4138
- if (globals.offline)
4139
- throw new CliError("configuration_error", "login requires network access; remove --offline");
4140
- if (globals.input === false)
4141
- throw new CliError("configuration_error", "login requires browser approval; remove --no-input");
4142
- if (deps.env?.CI)
4143
- throw new CliError("configuration_error", `login requires browser approval; run zm ${selected} session start yourself`);
4144
- const steps = signInSteps({
4145
- diagnostic: /* @__PURE__ */ __name((line) => deps.diagnostic(`${line}
4146
- `), "diagnostic"),
4147
- json: globals.json === true || globals.jsonl === true,
4148
- answers: opts.answerStdin === true,
4149
- ...deps.stdin ? { input: deps.stdin } : {}
4150
- });
4151
- const clientId = known ?? checkedClientId(await steps.ask(CLIENT_ID_NEED, signal()));
4152
- const chosen = opts.clientId ?? (known ? void 0 : clientId);
4153
- const done = await login({
4154
- tokens: (chosen ? new TokenManager({ ...tokens().options, clientId }) : tokens()).storedIn(storage),
4155
- signal: signal(),
4156
- openBrowser: /* @__PURE__ */ __name((url) => deps.openBrowser(url, opts.browser), "openBrowser"),
4157
- readPaste: steps.answers ? (stop) => steps.ask({ field: "redirect", secret: true, prompt: PASTE_PROMPT }, stop).catch((error) => stop.aborted ? new Promise(() => {
4158
- }) : Promise.reject(error)) : deps.readPaste,
4159
- showUrl: /* @__PURE__ */ __name((url) => steps.answers ? steps.openUrl(url, "Approve access to Zoom in the browser") : (
4160
- // Without a terminal this line is all an agent can pass on, so --quiet keeps it.
4161
- deps.diagnostic(`Open this URL to approve Zoom login:
4162
- ${url}
4163
- `)
4164
- ), "showUrl")
4165
- });
4166
- if (chosen)
4167
- setConfig(deps.configPath, "zoom.client_id", chosen);
4168
- addProfile(deps.configPath, selected);
4169
- output(itemOf({ ...done, profile: selected }));
4170
- });
4171
- logsInOrOut(annotate(start, { effects: REMOTE_WRITE, lifetime: "interactive" }));
4172
- logsInOrOut(annotate(session.command("end").description("delete this profile's saved Zoom login; the stored meetings stay").action(() => {
4173
- const selected = profile();
4174
- output(itemOf({ profile: selected, ended: tokens().remove(), meetings: "retained" }));
4175
- }), { effects: LOCAL_WRITE, mcp: false, examples: ["zm personal session end"] }));
4176
4062
  annotate(program.command("account"), { effects: NO_EFFECTS }).description("the profile's login and data on this computer").addCommand(zoomAccountRemoveCommand(deps));
4177
- }, "addSessionCommands");
4063
+ }, "addSharedCommands");
4178
4064
 
4179
4065
  // dist/archive-import.js
4180
4066
  import { createHash as createHash5 } from "node:crypto";
@@ -5740,17 +5626,7 @@ ${PROFILE_HELP}`);
5740
5626
  const before = new Set(program.commands);
5741
5627
  addZoomMeetingCommands(program, meetingCommands);
5742
5628
  const storeCommands = storeLeaves(program, before, meetingCommands.management);
5743
- addSessionCommands(program, {
5744
- deps,
5745
- getConfig,
5746
- output,
5747
- buffer,
5748
- api,
5749
- profile,
5750
- tokens,
5751
- fetch: /* @__PURE__ */ __name(() => fetchWithSignal(deps.fetch), "fetch"),
5752
- signal
5753
- });
5629
+ addSharedCommands(program, { deps, buffer, output });
5754
5630
  const watch = createWatchService({
5755
5631
  deps,
5756
5632
  getConfig,
@@ -5911,6 +5787,64 @@ ${PROFILE_HELP}`);
5911
5787
  });
5912
5788
  }, "bindZoomProgram");
5913
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
+
5914
5848
  // dist/run.js
5915
5849
  var configured = /* @__PURE__ */ __name((path) => {
5916
5850
  try {
@@ -5971,6 +5905,8 @@ var zoomDefinition = /* @__PURE__ */ __name((deps, onFailure) => {
5971
5905
  app: ZM,
5972
5906
  commands: /* @__PURE__ */ __name(() => [
5973
5907
  zoomRunsCommand(),
5908
+ zoomSessionCommand(deps, shared.resolveSettings),
5909
+ appCompleteCommand(ZM, { configuredProfiles: /* @__PURE__ */ __name(() => configured(deps.configPath)?.profiles ?? [], "configuredProfiles") }),
5974
5910
  appDoctorCommand(ZM, shared, {
5975
5911
  packageName: "@wirecat/zoom-cli",
5976
5912
  oauthClient: /* @__PURE__ */ __name(() => zoomClientReport(configured(deps.configPath), deps.env ?? process.env), "oauthClient")
@@ -6011,6 +5947,8 @@ var runCommand = /* @__PURE__ */ __name(async (args, deps, onFailure) => run(arg
6011
5947
  ...deps.stdin ? { stdin: deps.stdin } : {},
6012
5948
  ...deps.stdout ? { stdout: deps.stdout } : {},
6013
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 } : {},
6014
5952
  ...deps.confirm ? { answer: /* @__PURE__ */ __name(async (question) => await deps.confirm?.(question) ? "yes" : "no", "answer") } : {}
6015
5953
  }), "runCommand");
6016
5954
 
@@ -3,9 +3,9 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  pasteHint,
5
5
  readSecret
6
- } from "./chunk-OIPYBF43.js";
7
- import "./chunk-OBXQLFT5.js";
8
- import "./chunk-6CWL5BKG.js";
6
+ } from "./chunk-PVEBAHFU.js";
7
+ import "./chunk-KHQDWYCG.js";
8
+ import "./chunk-3QN5KDFZ.js";
9
9
  import "./chunk-ESN3W2MZ.js";
10
10
  import "./chunk-Y5E2WNWB.js";
11
11
  import "./chunk-IANKXHSE.js";