@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
@@ -5,8 +5,8 @@ The core rules in [SKILL.md](../SKILL.md) apply.
5
5
  ## Sign in
6
6
 
7
7
  - To log in, run `zm personal session start` in the background, read the URL after
8
- `Open this URL to approve Zoom login:` and give it to the person as a link; their browser must be on this computer.
9
- `--no-input` cannot approve it. The owner can also sign in from WireCat Desktop (Tools → Zoom → Manage).
8
+ `Open Zoom sign-in:` and give it to the person as a link; their browser must be on this computer.
9
+ With `--no-input` or in CI no browser opens, and the command still waits for the approval. The owner can also sign in from WireCat Desktop (Tools → Zoom → Manage).
10
10
  - Tokens stay in the keyring.
11
11
  - Missing scopes require changes to the Zoom app and a new login. `meetings show` from Zoom needs the optional
12
12
  `meeting:read:past_meeting` scope.
@@ -1,46 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- runCommandForAgent,
5
- toolsFromCommands
6
- } from "./chunk-W5QHB53X.js";
7
- import "./chunk-BDKVOU3I.js";
8
- import "./chunk-EQG3PIH2.js";
9
- import "./chunk-PL5P7UKW.js";
10
- import "./chunk-EGTCQKHV.js";
11
- import "./chunk-GBHMT2IU.js";
12
- import "./chunk-WOPVBRPV.js";
13
- import "./chunk-V5EJSF2B.js";
14
- import "./chunk-2CI2OEZQ.js";
15
- import "./chunk-TKNM22OH.js";
16
- import "./chunk-T7IAWEBU.js";
17
- import "./chunk-3YM4B2GT.js";
18
- import "./chunk-QVYAV7F2.js";
19
- import "./chunk-KJ6USQDZ.js";
20
- import "./chunk-G6PETRMV.js";
21
- import "./chunk-BP4FYANF.js";
22
- import "./chunk-6QYZP4E2.js";
23
- import "./chunk-ACI4YIEH.js";
24
- import "./chunk-4HLQ2JGK.js";
25
- import "./chunk-JQ54DYAQ.js";
26
- import "./chunk-ZOYOXWJB.js";
27
- import "./chunk-WMANRJR5.js";
28
- import "./chunk-GTKPMYK7.js";
29
- import "./chunk-DSZYABYL.js";
30
- import "./chunk-73MOMNLL.js";
31
- import "./chunk-LAYYO4WD.js";
32
- import "./chunk-E745WZKY.js";
33
- import "./chunk-274SLQNW.js";
34
- import "./chunk-KKFY23AK.js";
35
- import "./chunk-UAWSINMC.js";
36
- import "./chunk-DNCLQPOM.js";
37
- import "./chunk-6CWL5BKG.js";
38
- import "./chunk-ESN3W2MZ.js";
39
- import "./chunk-Y5E2WNWB.js";
40
- import "./chunk-IANKXHSE.js";
41
- import "./chunk-BBGJQMRI.js";
42
- import "./chunk-ZVVMGPBJ.js";
43
- export {
44
- runCommandForAgent,
45
- toolsFromCommands
46
- };
@@ -1,131 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import "./chunk-5HAUK3I4.js";
4
- import "./chunk-7QPIUMUG.js";
5
- import "./chunk-K5JGJIV2.js";
6
- import "./chunk-TKVBFJ5C.js";
7
- import "./chunk-UR5DBODY.js";
8
- import "./chunk-3HC5F3P7.js";
9
- import "./chunk-M7H4MCAX.js";
10
- import "./chunk-BDKVOU3I.js";
11
- import "./chunk-HZENBDW2.js";
12
- import "./chunk-VZ5PPYDG.js";
13
- import "./chunk-DCYFT3FR.js";
14
- import "./chunk-OQFQ77AY.js";
15
- import "./chunk-ICPJT672.js";
16
- import "./chunk-UKAAAOPC.js";
17
- import "./chunk-ZED2CJW5.js";
18
- import "./chunk-EGTCQKHV.js";
19
- import "./chunk-KQPUVXKX.js";
20
- import "./chunk-RQOZBTNI.js";
21
- import "./chunk-QVSL5WJ7.js";
22
- import "./chunk-676C2LE6.js";
23
- import "./chunk-QPHBK63S.js";
24
- import "./chunk-N46F72AF.js";
25
- import "./chunk-GBHMT2IU.js";
26
- import "./chunk-GWGHH56B.js";
27
- import "./chunk-6VK332XS.js";
28
- import "./chunk-5KYQ53EF.js";
29
- import "./chunk-NB7EOAUZ.js";
30
- import "./chunk-WOPVBRPV.js";
31
- import "./chunk-5TU7Y5UW.js";
32
- import "./chunk-A6EZK5RG.js";
33
- import "./chunk-TY7NDMFY.js";
34
- import "./chunk-B32KZRQM.js";
35
- import "./chunk-XQ2WL3HB.js";
36
- import {
37
- failureContext
38
- } from "./chunk-AIKFOBDO.js";
39
- import "./chunk-QG6PILDO.js";
40
- import "./chunk-HC6VN5CO.js";
41
- import "./chunk-HTQTIKWP.js";
42
- import "./chunk-NEMX3UNN.js";
43
- import "./chunk-KXJ3JEDH.js";
44
- import "./chunk-66ALX4ZI.js";
45
- import "./chunk-7UVDPRFK.js";
46
- import "./chunk-HP7A2ZOP.js";
47
- import "./chunk-KVJ3I7UL.js";
48
- import "./chunk-OO4TRVPB.js";
49
- import "./chunk-N3JLO63O.js";
50
- import "./chunk-Q7ICVP25.js";
51
- import "./chunk-L75SMSJR.js";
52
- import {
53
- judgedEffects,
54
- judgedTargets
55
- } from "./chunk-V5EJSF2B.js";
56
- import "./chunk-2CI2OEZQ.js";
57
- import "./chunk-TKNM22OH.js";
58
- import "./chunk-T7IAWEBU.js";
59
- import "./chunk-3YM4B2GT.js";
60
- import "./chunk-QVYAV7F2.js";
61
- import "./chunk-KJ6USQDZ.js";
62
- import "./chunk-G6PETRMV.js";
63
- import "./chunk-BP4FYANF.js";
64
- import "./chunk-6QYZP4E2.js";
65
- import "./chunk-ACI4YIEH.js";
66
- import "./chunk-4HLQ2JGK.js";
67
- import "./chunk-OIPYBF43.js";
68
- import "./chunk-OBXQLFT5.js";
69
- import "./chunk-2GP573Q4.js";
70
- import "./chunk-JQ54DYAQ.js";
71
- import "./chunk-PMUPN6JW.js";
72
- import "./chunk-YJXJJ2XP.js";
73
- import "./chunk-LEKKTJKK.js";
74
- import "./chunk-YY7XKHDY.js";
75
- import "./chunk-2JHVQMVC.js";
76
- import "./chunk-ZOYOXWJB.js";
77
- import "./chunk-WMANRJR5.js";
78
- import "./chunk-GTKPMYK7.js";
79
- import "./chunk-DSZYABYL.js";
80
- import "./chunk-73MOMNLL.js";
81
- import "./chunk-LAYYO4WD.js";
82
- import "./chunk-E745WZKY.js";
83
- import "./chunk-4N7PP76S.js";
84
- import {
85
- VERSION,
86
- ZM
87
- } from "./chunk-2SWKQ7C4.js";
88
- import "./chunk-TXDR6YSF.js";
89
- import "./chunk-D72URWJE.js";
90
- import "./chunk-274SLQNW.js";
91
- import "./chunk-PWVJUIDQ.js";
92
- import "./chunk-G46WJ7YO.js";
93
- import "./chunk-GGMAIIVE.js";
94
- import "./chunk-KKFY23AK.js";
95
- import "./chunk-UAWSINMC.js";
96
- import "./chunk-DNCLQPOM.js";
97
- import "./chunk-6CWL5BKG.js";
98
- import {
99
- errorObjectOf,
100
- errorRecordOf,
101
- exitCodeOfError,
102
- renderError
103
- } from "./chunk-ESN3W2MZ.js";
104
- import "./chunk-Y5E2WNWB.js";
105
- import "./chunk-IANKXHSE.js";
106
- import "./chunk-BBGJQMRI.js";
107
- import {
108
- __name
109
- } from "./chunk-ZVVMGPBJ.js";
110
-
111
- // dist/answer-policy.js
112
- var hostFailureContext = /* @__PURE__ */ __name((registry, effects) => ({
113
- ...failureContext(ZM.errors),
114
- ...effects ? { effects: judgedEffects(effects) } : {},
115
- ...registry ? { targets: judgedTargets(registry) } : {}
116
- }), "hostFailureContext");
117
- var reportFailure = /* @__PURE__ */ __name((failure, args, deps, command = "zm", context = hostFailureContext()) => {
118
- const end = args.indexOf("--");
119
- const flags = args.slice(0, end < 0 ? void 0 : end);
120
- const machine = flags.some((word) => word === "--json" || word === "--jsonl");
121
- const object = errorObjectOf(failure, context);
122
- const record = flags.includes("--debug") ? errorRecordOf(failure, object, { command, service: "zm", version: VERSION }) : void 0;
123
- const interactive = deps.outputIsTTY === true && !machine;
124
- deps.diagnostic(`${renderError(object, { cli: "zm", interactive, ...record ? { record } : {} })}
125
- `);
126
- return exitCodeOfError(object);
127
- }, "reportFailure");
128
- export {
129
- hostFailureContext,
130
- reportFailure
131
- };
@@ -1,330 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- oauthAccount
5
- } from "./chunk-K5JGJIV2.js";
6
- import {
7
- checkCancelled,
8
- object
9
- } from "./chunk-434YFJAE.js";
10
- import {
11
- acquireLock
12
- } from "./chunk-N46F72AF.js";
13
- import {
14
- Credentials
15
- } from "./chunk-6CWL5BKG.js";
16
- import {
17
- CliError,
18
- isCliError
19
- } from "./chunk-IANKXHSE.js";
20
- import {
21
- __name
22
- } from "./chunk-ZVVMGPBJ.js";
23
-
24
- // dist/tokens.js
25
- import { createHash } from "node:crypto";
26
- import { join } from "node:path";
27
- import { setTimeout as delay } from "node:timers/promises";
28
- var TOKEN_LOG_ALLOW2 = ["rotated", "saved", "pid"];
29
- var TOKEN_LOG_EVENT2 = "zoom.token.exchange";
30
- var abortReason = /* @__PURE__ */ __name((parent) => !parent?.aborted ? "timeout" : isCliError(parent.reason) ? parent.reason.code : "cancelled", "abortReason");
31
- var storesOf = /* @__PURE__ */ __name(({ configDir, service, keyring, isolated, legacyService }) => {
32
- if (configDir === void 0)
33
- return void 0;
34
- const common = { configDir, keyring, ...isolated ? { isolated } : {} };
35
- return {
36
- auto: new Credentials({ ...common, service }),
37
- file: new Credentials({ ...common, service, storage: "file" }),
38
- keyring: new Credentials({ ...common, service, storage: "keyring" }),
39
- ...legacyService === void 0 ? {} : { legacy: new Credentials({ ...common, service: legacyService }) }
40
- };
41
- }, "storesOf");
42
- var shared = /* @__PURE__ */ __name((options) => ({
43
- keyring: options.keyring,
44
- service: options.service,
45
- ...options.configDir === void 0 ? {} : { configDir: options.configDir },
46
- ...options.storage === void 0 ? {} : { storage: options.storage },
47
- ...options.isolated === void 0 ? {} : { isolated: options.isolated },
48
- ...options.legacyService === void 0 ? {} : { legacyService: options.legacyService },
49
- ...options.lockWaitMs === void 0 ? {} : { lockWaitMs: options.lockWaitMs },
50
- now: options.now,
51
- log: options.log
52
- }), "shared");
53
- var notSignedIn = /* @__PURE__ */ __name(() => new CliError("authentication_error", "run zm <profile> session start first, or sign in from WireCat Desktop (Tools \u2192 Zoom \u2192 Manage)"), "notSignedIn");
54
- var TokenManager = class _TokenManager {
55
- static {
56
- __name(this, "TokenManager");
57
- }
58
- options;
59
- refreshState = /* @__PURE__ */ new Map();
60
- // Shared by every scoped manager, so a failing keyring is reported once per run.
61
- stores;
62
- constructor(options) {
63
- this.options = options;
64
- this.stores = storesOf(options);
65
- }
66
- /** Where this login is kept: the file once it holds it, the keyring otherwise. */
67
- storageOf(account = this.accountOf()) {
68
- return this.stores?.file.read(account) ? "file" : "keyring";
69
- }
70
- /** The same login, saved where `session start --credential-storage` says. */
71
- storedIn(storage) {
72
- const scoped = new _TokenManager({ ...this.options, storage });
73
- scoped.refreshState = this.refreshState;
74
- scoped.stores = this.stores;
75
- return scoped;
76
- }
77
- /** The login of one profile: `oauth:zoom:<profile>` in the keyring (WC-SECR-24). */
78
- forProfile(profile) {
79
- const parent = this.options;
80
- const scoped = new _TokenManager({
81
- ...shared(parent),
82
- get clientId() {
83
- return parent.clientId;
84
- },
85
- account: oauthAccount("zoom", profile),
86
- get legacyAccount() {
87
- return `${parent.clientId}:${profile}`;
88
- },
89
- fetch: parent.fetch,
90
- signal: parent.signal
91
- });
92
- scoped.refreshState = this.refreshState;
93
- scoped.stores = this.stores;
94
- return scoped;
95
- }
96
- withSignal(signal, fetcher = this.options.fetch) {
97
- const parent = this.options;
98
- let login;
99
- const pinned = /* @__PURE__ */ __name(() => login ??= { clientId: parent.clientId, account: parent.account, legacyAccount: parent.legacyAccount }, "pinned");
100
- const scoped = new _TokenManager({
101
- ...shared(parent),
102
- get clientId() {
103
- return pinned().clientId;
104
- },
105
- get account() {
106
- return pinned().account;
107
- },
108
- get legacyAccount() {
109
- return pinned().legacyAccount;
110
- },
111
- fetch: fetcher,
112
- signal: signal && parent.signal ? AbortSignal.any([signal, parent.signal]) : signal ?? parent.signal
113
- });
114
- scoped.refreshState = this.refreshState;
115
- scoped.stores = this.stores;
116
- return scoped;
117
- }
118
- accountOf() {
119
- return this.options.account ?? this.options.clientId;
120
- }
121
- read(account) {
122
- if (this.stores)
123
- return this.stores.auto.read(account)?.secret ?? this.migrated(account);
124
- try {
125
- return this.options.keyring.get(this.options.service, account);
126
- } catch {
127
- throw new CliError("configuration_error", "system keyring is unavailable");
128
- }
129
- }
130
- /** The login under the name an older version used, copied to the new one; a moved run only reads it. */
131
- migrated(account) {
132
- const legacy = this.legacyOf(account);
133
- const secret = legacy && this.stores?.legacy?.read(legacy)?.secret;
134
- if (!secret)
135
- return null;
136
- if (!this.options.isolated)
137
- try {
138
- this.stores?.auto.write(account, secret);
139
- } catch {
140
- }
141
- return secret;
142
- }
143
- legacyOf(account) {
144
- return account === this.accountOf() ? this.options.legacyAccount : void 0;
145
- }
146
- /**
147
- * Deletes this login from the keyring and from the private file; false when there was none. The old entry goes
148
- * too, or the next run would copy it back; a moved run leaves the owner's alone.
149
- */
150
- remove(account = this.accountOf()) {
151
- if (this.stores) {
152
- this.stores.auto.read(account);
153
- const legacy = this.legacyOf(account);
154
- const old = legacy && !this.options.isolated ? this.stores.legacy?.remove(legacy) ?? [] : [];
155
- return this.stores.auto.remove(account).length + old.length > 0;
156
- }
157
- try {
158
- return this.options.keyring.delete(this.options.service, account);
159
- } catch {
160
- throw new CliError("configuration_error", "system keyring is unavailable");
161
- }
162
- }
163
- load(account = this.accountOf()) {
164
- const saved = this.read(account);
165
- if (!saved)
166
- return null;
167
- try {
168
- const value = object(JSON.parse(saved));
169
- if (typeof value.accessToken !== "string" || !value.accessToken || typeof value.refreshToken !== "string" || !value.refreshToken || typeof value.expiresAt !== "number" || !Number.isFinite(value.expiresAt) || !Array.isArray(value.scopes) || !value.scopes.every((s) => typeof s === "string"))
170
- throw new Error("invalid token entry");
171
- return {
172
- accessToken: value.accessToken,
173
- refreshToken: value.refreshToken,
174
- expiresAt: value.expiresAt,
175
- scopes: value.scopes
176
- };
177
- } catch (error) {
178
- if (isCliError(error) && error.code === "configuration_error")
179
- throw error;
180
- throw new CliError("authentication_error", "saved login is invalid; run zm <profile> session start again, or sign in from WireCat Desktop (Tools \u2192 Zoom \u2192 Manage)");
181
- }
182
- }
183
- /** `signIn` moves a login kept in the file back to the keyring; a refresh stays where the login is. */
184
- save(tokens, account = this.accountOf(), { signIn = false } = {}) {
185
- if (this.stores) {
186
- const value = JSON.stringify(tokens);
187
- if (this.options.storage !== "file") {
188
- this.stores.auto.write(account, value, { signIn });
189
- return;
190
- }
191
- this.stores.file.write(account, value);
192
- if (signIn)
193
- this.forgetKeyringCopy(account);
194
- return;
195
- }
196
- try {
197
- this.options.keyring.set(this.options.service, account, JSON.stringify(tokens));
198
- } catch {
199
- throw new CliError("configuration_error", "could not save login to the system keyring");
200
- }
201
- }
202
- /** After `--credential-storage file`: an older keyring copy must not outlive the file the owner chose. */
203
- forgetKeyringCopy(account) {
204
- try {
205
- this.stores?.keyring.remove(account);
206
- } catch {
207
- }
208
- }
209
- async exchange(params, previous, clientId = this.options.clientId, account = this.options.account ?? clientId) {
210
- checkCancelled(this.options.signal);
211
- const signal = this.options.signal ? AbortSignal.any([this.options.signal, AbortSignal.timeout(3e4)]) : AbortSignal.timeout(3e4);
212
- const parent = this.options.signal;
213
- const record = /* @__PURE__ */ __name((level, fields) => this.options.log?.[level]({
214
- event: TOKEN_LOG_EVENT2,
215
- operation: params.grant_type ?? "unknown",
216
- pid: process.pid,
217
- ...signal.aborted ? { reason: abortReason(parent) } : {},
218
- ...fields
219
- }), "record");
220
- let response;
221
- try {
222
- response = await this.options.fetch("https://zoom.us/oauth/token", {
223
- method: "POST",
224
- headers: { "content-type": "application/x-www-form-urlencoded" },
225
- body: new URLSearchParams({ ...params, client_id: clientId }),
226
- signal,
227
- redirect: "error"
228
- });
229
- } catch {
230
- record("warn", { outcome: "no_response" });
231
- throw new CliError("outcome_unknown", "Zoom token exchange did not finish; run zm <profile> session start again before retrying");
232
- }
233
- if (!response.ok) {
234
- record("warn", { outcome: "rejected", status: response.status });
235
- throw new CliError("authentication_error", `Zoom token request failed (HTTP ${response.status}); run zm <profile> session start again`);
236
- }
237
- let body;
238
- try {
239
- body = object(await response.json());
240
- } catch {
241
- record("error", { outcome: "unreadable_response", status: response.status });
242
- throw new CliError("outcome_unknown", "Zoom returned an invalid token response; run zm <profile> session start again before retrying");
243
- }
244
- const refreshToken = typeof body.refresh_token === "string" ? body.refresh_token : previous?.refreshToken;
245
- if (typeof body.access_token !== "string" || !body.access_token || !refreshToken || typeof body.expires_in !== "number" || !Number.isFinite(body.expires_in) || body.expires_in <= 0 || !Number.isFinite((this.options.now?.() ?? Date.now()) + body.expires_in * 1e3) || body.scope !== void 0 && typeof body.scope !== "string" || body.refresh_token !== void 0 && typeof body.refresh_token !== "string") {
246
- record("error", { outcome: "invalid_response", status: response.status });
247
- throw new CliError("outcome_unknown", "Zoom returned an invalid token response; run zm <profile> session start again before retrying");
248
- }
249
- const rotated = previous ? { rotated: refreshToken !== previous.refreshToken } : {};
250
- const tokens = {
251
- accessToken: body.access_token,
252
- refreshToken,
253
- expiresAt: (this.options.now?.() ?? Date.now()) + body.expires_in * 1e3,
254
- scopes: typeof body.scope === "string" ? body.scope.split(/\s+/).filter(Boolean) : previous?.scopes ?? []
255
- };
256
- try {
257
- this.save(tokens, account, { signIn: params.grant_type !== "refresh_token" });
258
- } catch (error) {
259
- record("error", { outcome: "save_failed", status: response.status, ...rotated, saved: false });
260
- throw error;
261
- }
262
- record("info", { outcome: "saved", status: response.status, ...rotated, saved: true });
263
- return tokens;
264
- }
265
- async tokens() {
266
- checkCancelled(this.options.signal);
267
- const clientId = this.options.clientId;
268
- const account = this.options.account ?? clientId;
269
- const saved = this.load(account);
270
- if (!saved)
271
- throw notSignedIn();
272
- const fresh = /* @__PURE__ */ __name((tokens) => tokens.expiresAt > (this.options.now?.() ?? Date.now()) + 3e4, "fresh");
273
- if (fresh(saved))
274
- return saved;
275
- let refreshing = this.refreshState.get(account);
276
- if (!refreshing) {
277
- refreshing = this.locked(account, async () => {
278
- const current = this.load(account);
279
- if (!current)
280
- throw notSignedIn();
281
- if (current.refreshToken !== saved.refreshToken || fresh(current))
282
- return current;
283
- return this.exchange({ grant_type: "refresh_token", refresh_token: current.refreshToken }, current, clientId, account);
284
- }).finally(() => {
285
- this.refreshState.delete(account);
286
- });
287
- this.refreshState.set(account, refreshing);
288
- }
289
- const refreshed = await refreshing;
290
- checkCancelled(this.options.signal);
291
- return refreshed;
292
- }
293
- /** WC-SECR-22: one refresh of a login at a time across processes, under the lock cli-core's token keeper uses. */
294
- async locked(account, work) {
295
- const { configDir, service, signal } = this.options;
296
- if (configDir === void 0)
297
- return work();
298
- const key = createHash("sha256").update(`${service}\0${account}`).digest("hex").slice(0, 16);
299
- const path = join(configDir, `oauth-${key}.lock`);
300
- const started = performance.now();
301
- for (; ; ) {
302
- checkCancelled(signal);
303
- let lock;
304
- try {
305
- lock = await acquireLock(path, signal ? { signal } : {});
306
- } catch (error) {
307
- if (!isCliError(error) || error.details.reason !== "file.locked")
308
- throw error;
309
- if (performance.now() - started > (this.options.lockWaitMs ?? 45e3))
310
- throw new CliError("provider_unavailable", "another zm process is refreshing this Zoom sign-in; retry", {
311
- retryable: true
312
- });
313
- await delay(50, void 0, signal ? { signal } : {}).catch(() => checkCancelled(signal));
314
- continue;
315
- }
316
- try {
317
- return await work();
318
- } finally {
319
- await lock.release().catch(() => {
320
- });
321
- }
322
- }
323
- }
324
- };
325
-
326
- export {
327
- TOKEN_LOG_ALLOW2 as TOKEN_LOG_ALLOW,
328
- TOKEN_LOG_EVENT2 as TOKEN_LOG_EVENT,
329
- TokenManager
330
- };