@wirecat/zoom-cli 0.76.0 → 0.78.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 (219) hide show
  1. package/README.md +12 -11
  2. package/contracts/wirecat.json +53 -105
  3. package/dist/answer-entities.d.ts +1 -141
  4. package/dist/answer-entities.d.ts.map +1 -1
  5. package/dist/answer-entities.js +0 -31
  6. package/dist/answer-entities.js.map +1 -1
  7. package/dist/api.d.ts +18 -1
  8. package/dist/api.d.ts.map +1 -1
  9. package/dist/api.js +179 -54
  10. package/dist/api.js.map +1 -1
  11. package/dist/archive-commands.d.ts +0 -3
  12. package/dist/archive-commands.d.ts.map +1 -1
  13. package/dist/archive-commands.js +1 -54
  14. package/dist/archive-commands.js.map +1 -1
  15. package/dist/bin/zm.js +2 -2
  16. package/dist/bundle/{all-profiles-AAMFP7IN.js → all-profiles-7JN3N3E6.js} +11 -11
  17. package/dist/bundle/answer-policy-G2BNMPEX.js +122 -0
  18. package/dist/bundle/{anthropic-6KIS53QB.js → anthropic-U6O7UYGZ.js} +6 -6
  19. package/dist/bundle/{app-server-6QYNNYEU.js → app-server-G7BTC6CE.js} +78 -68
  20. package/dist/bundle/{bun-QVVCH4MJ.js → bun-VLROVUFK.js} +2 -2
  21. package/dist/bundle/{bun-sqlite-Y2ZFMNQ3.js → bun-sqlite-C5JLANDE.js} +7 -7
  22. package/dist/bundle/{chunk-25GMFXPF.js → chunk-2AWWMROP.js} +3244 -3674
  23. package/dist/bundle/{chunk-YESHGC3M.js → chunk-2LMD3JUD.js} +2 -2
  24. package/dist/bundle/{chunk-LGBLYFKI.js → chunk-2O66KMOR.js} +6 -2
  25. package/dist/bundle/{chunk-JADBHKBP.js → chunk-2USGT7LE.js} +1 -1
  26. package/dist/bundle/{chunk-M7WYBGQT.js → chunk-3A3B3JX4.js} +8 -8
  27. package/dist/bundle/{chunk-RJK5ADMH.js → chunk-3NZJKY7A.js} +103 -42
  28. package/dist/bundle/chunk-3QWYRZME.js +773 -0
  29. package/dist/bundle/{chunk-D2TGXSHQ.js → chunk-4QCLPSJ7.js} +5 -5
  30. package/dist/bundle/{chunk-XC4V6YCS.js → chunk-4XPVRZXE.js} +1 -1
  31. package/dist/bundle/{chunk-EZJSAYWZ.js → chunk-532FNLON.js} +31 -87
  32. package/dist/bundle/{chunk-QLUU3BV2.js → chunk-53TV72JG.js} +6 -6
  33. package/dist/bundle/{chunk-VJANMYEC.js → chunk-5DLK4OXF.js} +3 -3
  34. package/dist/bundle/chunk-5SM2IOAS.js +389 -0
  35. package/dist/bundle/{chunk-65VRWNDP.js → chunk-6MFEWAK4.js} +4 -4
  36. package/dist/bundle/{chunk-IUSY4ZJK.js → chunk-6NTNAEZF.js} +2379 -2114
  37. package/dist/bundle/{chunk-DQHS336B.js → chunk-7AMKSXMB.js} +7 -6
  38. package/dist/bundle/{chunk-IXPBSDKB.js → chunk-7EVB4UV7.js} +4 -4
  39. package/dist/bundle/chunk-7HEZQCHL.js +555 -0
  40. package/dist/bundle/{chunk-TYAFL66K.js → chunk-7IIQU5RA.js} +15 -31
  41. package/dist/bundle/{chunk-TK77DCE5.js → chunk-7K5O2VWO.js} +1 -1
  42. package/dist/bundle/{chunk-VG63EXRC.js → chunk-AEVSVVTP.js} +2 -2
  43. package/dist/bundle/chunk-B4V4DRVO.js +229 -0
  44. package/dist/bundle/{chunk-2HKUQ7DR.js → chunk-B6TUEQ4O.js} +3 -3
  45. package/dist/bundle/chunk-BAHXR4PA.js +259 -0
  46. package/dist/bundle/{chunk-ZFYNJERV.js → chunk-BGO7IEHY.js} +6 -6
  47. package/dist/bundle/{chunk-PFLJJQWW.js → chunk-BIUHLXL2.js} +54 -55
  48. package/dist/bundle/{chunk-5T7TBK5Y.js → chunk-C26V2XNV.js} +1 -1
  49. package/dist/bundle/chunk-C56OYYFG.js +170 -0
  50. package/dist/bundle/{chunk-MDTEAKA5.js → chunk-DLJPN47R.js} +8 -6
  51. package/dist/bundle/{chunk-FBVJGJDM.js → chunk-EV7QCFQR.js} +27 -574
  52. package/dist/bundle/{chunk-ORM73DZO.js → chunk-F2KZNAFF.js} +2 -2
  53. package/dist/bundle/{chunk-QY6GE7CL.js → chunk-F7IDYQLM.js} +2 -2
  54. package/dist/bundle/{chunk-WNXC42IU.js → chunk-FCGRXUAU.js} +9 -9
  55. package/dist/bundle/{chunk-ELW3LMJZ.js → chunk-FHOQWPQ6.js} +397 -157
  56. package/dist/bundle/{chunk-NQ356ERO.js → chunk-FMMCGQNT.js} +77 -10
  57. package/dist/bundle/{chunk-K3K3WKDB.js → chunk-FNLXFQN6.js} +1 -1
  58. package/dist/bundle/{chunk-YGKM2ZWF.js → chunk-FURKMNC2.js} +3 -3
  59. package/dist/bundle/{chunk-XRH2NKW4.js → chunk-FXHZHQKU.js} +6 -6
  60. package/dist/bundle/{chunk-GZYICXO4.js → chunk-GQ6EJDMV.js} +1 -1
  61. package/dist/bundle/{chunk-VABYJQYE.js → chunk-H34KEXTN.js} +24 -22
  62. package/dist/bundle/{chunk-HWYSJ4SL.js → chunk-H74NENWA.js} +3 -3
  63. package/dist/bundle/{chunk-Y2BGABXP.js → chunk-H7SRM26V.js} +3 -3
  64. package/dist/bundle/{chunk-VRA4RVQU.js → chunk-HGBZBQAE.js} +3 -3
  65. package/dist/bundle/{chunk-EZXW3ZCR.js → chunk-HI4QICF7.js} +12 -12
  66. package/dist/bundle/{chunk-LEVOI6Z3.js → chunk-HOJOVUO6.js} +14 -13
  67. package/dist/bundle/{chunk-XWQKRKMT.js → chunk-HUSIS3XO.js} +71 -252
  68. package/dist/bundle/chunk-IBINGDYF.js +335 -0
  69. package/dist/bundle/{chunk-55SWKR6Y.js → chunk-INJK7FNM.js} +337 -597
  70. package/dist/bundle/{chunk-CXHUOPN5.js → chunk-JOIAE3NO.js} +7 -7
  71. package/dist/bundle/{chunk-OFODCJ2A.js → chunk-KBTINKQF.js} +3 -3
  72. package/dist/bundle/{chunk-VCFSUGPE.js → chunk-KEAKNNXU.js} +4 -4
  73. package/dist/bundle/{chunk-XHVFX74L.js → chunk-LBTANUUH.js} +2 -2
  74. package/dist/bundle/chunk-LBV4673S.js +72 -0
  75. package/dist/bundle/chunk-LERF2FIK.js +295 -0
  76. package/dist/bundle/{chunk-UYZDH5LK.js → chunk-LX532BXO.js} +1 -1
  77. package/dist/bundle/{chunk-IVFNHIU4.js → chunk-M2M3U4UU.js} +81 -5
  78. package/dist/bundle/{chunk-JWMOHEDL.js → chunk-M5R2DURM.js} +10 -10
  79. package/dist/bundle/{chunk-4ERYXY4Y.js → chunk-MJMHUU3J.js} +1 -1
  80. package/dist/bundle/{chunk-GYTAHH5Y.js → chunk-MSMFYW6N.js} +2 -2
  81. package/dist/bundle/{chunk-X73YEFQE.js → chunk-MVLLWSV7.js} +20 -118
  82. package/dist/bundle/{chunk-RXUVXAMM.js → chunk-NO2LIHWA.js} +1 -1
  83. package/dist/bundle/{chunk-Y4WEAWU7.js → chunk-NS5XSCHC.js} +1 -1
  84. package/dist/bundle/{chunk-ZETM63M6.js → chunk-OAE6XR7E.js} +9 -60
  85. package/dist/bundle/{chunk-CS62FET6.js → chunk-OAYAGQ7C.js} +22 -22
  86. package/dist/bundle/{chunk-T2QVWRJF.js → chunk-OI4563JI.js} +39 -67
  87. package/dist/bundle/{chunk-WKT5RPSY.js → chunk-OOLNK3Y5.js} +8 -8
  88. package/dist/bundle/{chunk-EBIK5Q73.js → chunk-ORSTSBWU.js} +1 -1
  89. package/dist/bundle/{chunk-GB5LI5RM.js → chunk-P5QO7Y3H.js} +6 -6
  90. package/dist/bundle/{chunk-3D5PETD2.js → chunk-PJMQE4PW.js} +29 -9
  91. package/dist/bundle/{chunk-KEFDP6NL.js → chunk-Q4AKIAIA.js} +12 -12
  92. package/dist/bundle/{chunk-CPOFLYPU.js → chunk-Q4CNLEAY.js} +29 -29
  93. package/dist/bundle/{chunk-UAV74EY4.js → chunk-RJIJR6KH.js} +1 -1
  94. package/dist/bundle/{chunk-GPIQY4YB.js → chunk-TEFHNXXX.js} +14 -14
  95. package/dist/bundle/{chunk-FMJ4QSSU.js → chunk-TFDD4Q5Z.js} +10 -10
  96. package/dist/bundle/{chunk-HUHH25AG.js → chunk-TXDCIM5D.js} +3017 -1599
  97. package/dist/bundle/{chunk-FGRFIXG2.js → chunk-U2Z35B3W.js} +2 -2
  98. package/dist/bundle/{chunk-WZJ7ZYR4.js → chunk-UHBQM54J.js} +4 -4
  99. package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-UIBKGH5P.js} +1 -1
  100. package/dist/bundle/{chunk-5EII5RIL.js → chunk-UKYO3HNO.js} +1 -1
  101. package/dist/bundle/{chunk-7RORMNKP.js → chunk-V53TIJLY.js} +2 -2
  102. package/dist/bundle/{chunk-OOYIPK4F.js → chunk-VMA7SILL.js} +1 -1
  103. package/dist/bundle/chunk-VW36ZSAE.js +88 -0
  104. package/dist/bundle/chunk-WEAMGNST.js +31 -0
  105. package/dist/bundle/{chunk-EPPE6ZTS.js → chunk-WJTXO2EI.js} +1 -1
  106. package/dist/bundle/{chunk-4JPOELCT.js → chunk-WOYPWXZK.js} +4 -4
  107. package/dist/bundle/{chunk-OINDAHXC.js → chunk-XCOGI4JE.js} +4 -4
  108. package/dist/bundle/{chunk-CE5Y7PQU.js → chunk-XOG7B7K5.js} +4 -4
  109. package/dist/bundle/chunk-XSF5OBVZ.js +224 -0
  110. package/dist/bundle/{chunk-B7ZREOBD.js → chunk-XXD4YPHQ.js} +12 -12
  111. package/dist/bundle/{chunk-35AH33VJ.js → chunk-YAPDU3SV.js} +1 -1
  112. package/dist/bundle/{chunk-R47GYLNN.js → chunk-YHQ3TEGB.js} +29 -27
  113. package/dist/bundle/{chunk-LOEK6IFQ.js → chunk-YLNUKNGD.js} +87 -35
  114. package/dist/bundle/{chunk-6SXCGS3A.js → chunk-YNYQGZUW.js} +7 -7
  115. package/dist/bundle/{chunk-OWZETMRE.js → chunk-YZKVCTZI.js} +8 -8
  116. package/dist/bundle/{chunk-UG2QDGAH.js → chunk-ZCVO6GAT.js} +1 -1
  117. package/dist/bundle/{chunk-YEBWRWE3.js → chunk-ZDZASHSQ.js} +17 -17
  118. package/dist/bundle/chunk-ZZJ5IWNT.js +101 -0
  119. package/dist/bundle/{cli-FHMLYHUZ.js → cli-YALONJ4V.js} +135 -84
  120. package/dist/bundle/command-contract-DMR5EOIN.js +45 -0
  121. package/dist/bundle/{command-server-entry-YEZM52R5.js → command-server-entry-W4XTBUZE.js} +35 -31
  122. package/dist/bundle/config-4TLDRXRL.js +109 -0
  123. package/dist/bundle/{decode-SIYRMJOK.js → decode-IFQHVCFX.js} +16 -8
  124. package/dist/bundle/{dispatch-SMER3WDX.js → dispatch-GOJB4TDK.js} +9 -9
  125. package/dist/bundle/{dist-BSJETSFE.js → dist-H7XFUMRX.js} +25 -22
  126. package/dist/bundle/{echarts-UZJ6AREV.js → echarts-HPUHPJCO.js} +2 -2
  127. package/dist/bundle/{embed-A7DSHVI7.js → embed-ESU3WZYW.js} +7 -7
  128. package/dist/bundle/{embedder-WQBR4UGS.js → embedder-BV6O76B3.js} +10 -10
  129. package/dist/bundle/{failure-73UQXQTW.js → failure-SWVCYFQX.js} +3 -3
  130. package/dist/bundle/first-run-OEJGAQAE.js +29 -0
  131. package/dist/bundle/first-screen-QLM4IABL.js +45 -0
  132. package/dist/bundle/{folders-BH4SV6SI.js → folders-VQGKBM3P.js} +5 -5
  133. package/dist/bundle/{instructions-SDDUBGH4.js → instructions-UUX57I3V.js} +1 -1
  134. package/dist/bundle/{main-KL4FN5F3.js → main-UIKADOFB.js} +24 -24
  135. package/dist/bundle/{mcp-GN4FTJX5.js → mcp-VMS6PBCU.js} +2 -2
  136. package/dist/bundle/meeting-combined-SKJISCC7.js +26 -0
  137. package/dist/bundle/meeting-model-YG3Z5KCB.js +26 -0
  138. package/dist/bundle/meeting-semantic-F6GUICB7.js +23 -0
  139. package/dist/bundle/{meetings-URPXBHV7.js → meetings-KIBUPLPW.js} +37 -7
  140. package/dist/bundle/{node-ELCNUOCE.js → node-AM3JCAWB.js} +2 -2
  141. package/dist/bundle/{node-sqlite-QLSNHZBM.js → node-sqlite-VM6VS3RU.js} +8 -8
  142. package/dist/bundle/{oauth-LZ64S7Y3.js → oauth-AX5Z32H6.js} +8 -8
  143. package/dist/bundle/{open-WB4HUPQT.js → open-SSGOOOZG.js} +6 -6
  144. package/dist/bundle/openai-YIP73X2B.js +28 -0
  145. package/dist/bundle/{output-file-AHPQA5LR.js → output-file-FR226A64.js} +6 -6
  146. package/dist/bundle/{process-67DAKAAQ.js → process-5ZEK2VFY.js} +1 -1
  147. package/dist/bundle/{program-CIMACIBE.js → program-ROJAJHCB.js} +424 -251
  148. package/dist/bundle/{prompt-GG53UBDJ.js → prompt-6Y7A4453.js} +6 -6
  149. package/dist/bundle/{recognize-CFJ3CAEH.js → recognize-R5W25WKH.js} +5 -5
  150. package/dist/bundle/{remote-BLEM7C3Q.js → remote-PA4FQUZK.js} +11 -11
  151. package/dist/bundle/{rerank-ERN6PC66.js → rerank-CYX3UFTM.js} +8 -8
  152. package/dist/bundle/run-log-FHERL3H6.js +136 -0
  153. package/dist/bundle/{serve-FJPPTJXH.js → serve-MM5QEZJW.js} +15 -15
  154. package/dist/bundle/{server-FLUSDUGM.js → server-JQQAH7E5.js} +64 -54
  155. package/dist/bundle/server-W2BBONCQ.js +85 -0
  156. package/dist/bundle/{services-LXC6DVUQ.js → services-Y2DOQONM.js} +85 -54
  157. package/dist/bundle/{speech-WFEZTKXA.js → speech-O6WLX34V.js} +34 -18
  158. package/dist/bundle/{sqlite-runtime-KN33VSP7.js → sqlite-runtime-LQTBZMFH.js} +7 -7
  159. package/dist/bundle/{state-TXS4ZHIT.js → state-AIDPZLVH.js} +7 -7
  160. package/dist/bundle/{store-ZUREZYZB.js → store-BA4FQS5V.js} +26 -20
  161. package/dist/bundle/{store-MUOXLVL4.js → store-UNDS2TBG.js} +30 -22
  162. package/dist/bundle/store-connection-ADBJ36T4.js +102 -0
  163. package/dist/bundle/store-maintenance-command-IB6ML4UI.js +77 -0
  164. package/dist/bundle/{streaming-ZSCHRC5S.js → streaming-UFHT5MR2.js} +7 -7
  165. package/dist/bundle/{tokens-YVDOY4EV.js → tokens-Z32UKGQB.js} +10 -10
  166. package/dist/bundle/zm.js +9 -9
  167. package/dist/bundle/{zoom-app-O6GIMB7Y.js → zoom-app-6U46XBTG.js} +8 -8
  168. package/dist/commands.d.ts.map +1 -1
  169. package/dist/commands.js +3 -0
  170. package/dist/commands.js.map +1 -1
  171. package/dist/first-screen.d.ts.map +1 -1
  172. package/dist/first-screen.js +3 -5
  173. package/dist/first-screen.js.map +1 -1
  174. package/dist/meeting-integration-commands.d.ts.map +1 -1
  175. package/dist/meeting-integration-commands.js +46 -28
  176. package/dist/meeting-integration-commands.js.map +1 -1
  177. package/dist/meeting-source.d.ts.map +1 -1
  178. package/dist/meeting-source.js +15 -1
  179. package/dist/meeting-source.js.map +1 -1
  180. package/dist/permissions.d.ts +8 -4
  181. package/dist/permissions.d.ts.map +1 -1
  182. package/dist/permissions.js +25 -24
  183. package/dist/permissions.js.map +1 -1
  184. package/dist/program-bindings.d.ts.map +1 -1
  185. package/dist/program-bindings.js +8 -5
  186. package/dist/program-bindings.js.map +1 -1
  187. package/dist/program.d.ts +2 -1
  188. package/dist/program.d.ts.map +1 -1
  189. package/dist/program.js.map +1 -1
  190. package/dist/remote-meetings.d.ts +38 -8
  191. package/dist/remote-meetings.d.ts.map +1 -1
  192. package/dist/remote-meetings.js +52 -29
  193. package/dist/remote-meetings.js.map +1 -1
  194. package/dist/run.js +1 -1
  195. package/dist/version.d.ts +1 -1
  196. package/dist/version.js +1 -1
  197. package/dist/zoom-app.d.ts.map +1 -1
  198. package/dist/zoom-app.js +1 -0
  199. package/dist/zoom-app.js.map +1 -1
  200. package/package.json +5 -4
  201. package/skills/zoom-cli/SKILL.md +88 -236
  202. package/skills/zoom-cli/references/archive.md +59 -0
  203. package/skills/zoom-cli/references/people-and-projects.md +51 -0
  204. package/skills/zoom-cli/references/prepare.md +78 -0
  205. package/skills/zoom-cli/references/search.md +71 -0
  206. package/skills/zoom-cli/references/setup.md +31 -0
  207. package/skills/zoom-cli/references/zoom-live.md +27 -0
  208. package/dist/bundle/answer-policy-ETAELI4A.js +0 -110
  209. package/dist/bundle/chunk-64N7MY3I.js +0 -161
  210. package/dist/bundle/command-contract-HUZ4I23S.js +0 -41
  211. package/dist/bundle/config-KVTWN7QZ.js +0 -97
  212. package/dist/bundle/first-run-SY6XSUZ3.js +0 -29
  213. package/dist/bundle/first-screen-ZDMODGWS.js +0 -39
  214. package/dist/bundle/openai-KN6JE4QU.js +0 -28
  215. package/dist/bundle/run-log-S67YPJF6.js +0 -124
  216. package/dist/bundle/server-UNJY3TSJ.js +0 -74
  217. package/dist/bundle/store-connection-NRNEBUPU.js +0 -90
  218. package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +0 -65
  219. /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-SHTHNBHG.js} +0 -0
@@ -2,8 +2,8 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  TokenManager
5
- } from "./chunk-MDTEAKA5.js";
6
- import "./chunk-IVFNHIU4.js";
5
+ } from "./chunk-DLJPN47R.js";
6
+ import "./chunk-M2M3U4UU.js";
7
7
  import {
8
8
  addMeetingEmbeddingCommand,
9
9
  addMeetingSearchCommands,
@@ -25,14 +25,7 @@ import {
25
25
  validateTaskKind,
26
26
  validateTaskProposal,
27
27
  validateUnifiedSearch
28
- } from "./chunk-CPOFLYPU.js";
29
- import {
30
- emitReceipt
31
- } from "./chunk-HWYSJ4SL.js";
32
- import "./chunk-64N7MY3I.js";
33
- import "./chunk-VABYJQYE.js";
34
- import "./chunk-VJANMYEC.js";
35
- import "./chunk-CE5Y7PQU.js";
28
+ } from "./chunk-Q4CNLEAY.js";
36
29
  import {
37
30
  DEFAULT_PERMISSIONS,
38
31
  ZOOM_ANSWER_ENTITIES,
@@ -40,6 +33,7 @@ import {
40
33
  addProfile,
41
34
  addStandardCommands,
42
35
  annotateMeetingCommands,
36
+ askBeforeWrite,
43
37
  bodyOf,
44
38
  chooseProfile,
45
39
  contextSourcesSchema,
@@ -60,7 +54,37 @@ import {
60
54
  unsetConfig,
61
55
  wholeList,
62
56
  zoomRunsCommand
63
- } from "./chunk-T2QVWRJF.js";
57
+ } from "./chunk-OI4563JI.js";
58
+ import {
59
+ CLIENT_ID_NEED,
60
+ SET_ZOOM_APP,
61
+ checkedClientId,
62
+ login,
63
+ zoomApp,
64
+ zoomAppChecklist,
65
+ zoomAppSetup,
66
+ zoomClientId,
67
+ zoomClientReport
68
+ } from "./chunk-7AMKSXMB.js";
69
+ import "./chunk-7O7XM37N.js";
70
+ import {
71
+ emitReceipt
72
+ } from "./chunk-H74NENWA.js";
73
+ import {
74
+ ZoneAssumptions,
75
+ cancellableStore,
76
+ checkCancelled,
77
+ number,
78
+ object,
79
+ string as string2,
80
+ withIssue,
81
+ zoomInstant,
82
+ zoomTime
83
+ } from "./chunk-U2Z35B3W.js";
84
+ import "./chunk-LERF2FIK.js";
85
+ import "./chunk-H34KEXTN.js";
86
+ import "./chunk-5DLK4OXF.js";
87
+ import "./chunk-XOG7B7K5.js";
64
88
  import {
65
89
  MEMO_SCENARIOS,
66
90
  SEARCHES_QUERY,
@@ -88,60 +112,27 @@ import {
88
112
  signInSteps,
89
113
  skillCommand as skillCommand2,
90
114
  upgradeCommand
91
- } from "./chunk-HUHH25AG.js";
92
- import "./chunk-KEFDP6NL.js";
93
- import {
94
- CLIENT_ID_NEED,
95
- SET_ZOOM_APP,
96
- checkedClientId,
97
- login,
98
- zoomApp,
99
- zoomAppChecklist,
100
- zoomAppSetup,
101
- zoomClientId,
102
- zoomClientReport
103
- } from "./chunk-DQHS336B.js";
104
- import "./chunk-7O7XM37N.js";
105
- import "./chunk-4ERYXY4Y.js";
106
- import {
107
- ZoneAssumptions,
108
- cancellableStore,
109
- checkCancelled,
110
- number,
111
- object,
112
- string as string2,
113
- withIssue,
114
- zoomInstant,
115
- zoomTime
116
- } from "./chunk-FGRFIXG2.js";
117
- import "./chunk-UYZDH5LK.js";
115
+ } from "./chunk-TXDCIM5D.js";
116
+ import "./chunk-Q4AKIAIA.js";
117
+ import "./chunk-MJMHUU3J.js";
118
+ import "./chunk-GQ6EJDMV.js";
119
+ import "./chunk-LX532BXO.js";
118
120
  import {
119
121
  allAnswer
120
- } from "./chunk-R47GYLNN.js";
121
- import "./chunk-GZYICXO4.js";
122
+ } from "./chunk-YHQ3TEGB.js";
122
123
  import {
123
124
  skillCommand
124
- } from "./chunk-RJK5ADMH.js";
125
- import "./chunk-XWQKRKMT.js";
125
+ } from "./chunk-3NZJKY7A.js";
126
+ import "./chunk-7EVB4UV7.js";
127
+ import "./chunk-HUSIS3XO.js";
128
+ import "./chunk-XSF5OBVZ.js";
126
129
  import {
127
130
  commandPermissions
128
- } from "./chunk-X73YEFQE.js";
131
+ } from "./chunk-MVLLWSV7.js";
129
132
  import {
130
133
  pagingOf
131
- } from "./chunk-EZXW3ZCR.js";
132
- import "./chunk-ZETM63M6.js";
133
- import "./chunk-LEVOI6Z3.js";
134
- import {
135
- sameConfigFolder,
136
- zmPaths
137
- } from "./chunk-5EII5RIL.js";
138
- import "./chunk-B7ZREOBD.js";
139
- import "./chunk-LGBLYFKI.js";
140
- import "./chunk-NQ356ERO.js";
141
- import "./chunk-ORM73DZO.js";
142
- import "./chunk-HTQTIKWP.js";
143
- import "./chunk-IXPBSDKB.js";
144
- import "./chunk-2HKUQ7DR.js";
134
+ } from "./chunk-HI4QICF7.js";
135
+ import "./chunk-B6TUEQ4O.js";
145
136
  import {
146
137
  NativeRecordingPartialStore,
147
138
  NativeRecordingPublication,
@@ -158,29 +149,45 @@ import {
158
149
  unfilteredQuery,
159
150
  validateMeetingPreparationRequest,
160
151
  withQuery
161
- } from "./chunk-25GMFXPF.js";
162
- import "./chunk-XC4V6YCS.js";
152
+ } from "./chunk-2AWWMROP.js";
153
+ import "./chunk-B4V4DRVO.js";
154
+ import "./chunk-4XPVRZXE.js";
163
155
  import {
164
156
  nativeWriterLeaseStore,
165
157
  openOrdinaryFile,
166
158
  syncDirectory,
167
159
  writeFileAtomic
168
- } from "./chunk-GPIQY4YB.js";
160
+ } from "./chunk-TEFHNXXX.js";
161
+ import "./chunk-5SM2IOAS.js";
162
+ import "./chunk-C56OYYFG.js";
163
+ import "./chunk-OAE6XR7E.js";
164
+ import "./chunk-VW36ZSAE.js";
165
+ import "./chunk-HOJOVUO6.js";
169
166
  import {
170
167
  latestVersion,
171
168
  runUpdate,
172
169
  updateNotice
173
- } from "./chunk-WZJ7ZYR4.js";
174
- import "./chunk-RXUVXAMM.js";
175
- import "./chunk-JWMOHEDL.js";
176
- import "./chunk-65VRWNDP.js";
177
- import "./chunk-WNXC42IU.js";
178
- import "./chunk-YEBWRWE3.js";
179
- import "./chunk-GB5LI5RM.js";
180
- import "./chunk-6SXCGS3A.js";
181
- import "./chunk-Y4WEAWU7.js";
182
- import "./chunk-UAV74EY4.js";
183
- import "./chunk-D2TGXSHQ.js";
170
+ } from "./chunk-UHBQM54J.js";
171
+ import "./chunk-NO2LIHWA.js";
172
+ import {
173
+ sameConfigFolder,
174
+ zmPaths
175
+ } from "./chunk-UKYO3HNO.js";
176
+ import "./chunk-XXD4YPHQ.js";
177
+ import "./chunk-2O66KMOR.js";
178
+ import "./chunk-FMMCGQNT.js";
179
+ import "./chunk-F2KZNAFF.js";
180
+ import "./chunk-M5R2DURM.js";
181
+ import "./chunk-HTQTIKWP.js";
182
+ import "./chunk-6MFEWAK4.js";
183
+ import "./chunk-ZDZASHSQ.js";
184
+ import "./chunk-BAHXR4PA.js";
185
+ import "./chunk-FCGRXUAU.js";
186
+ import "./chunk-P5QO7Y3H.js";
187
+ import "./chunk-YNYQGZUW.js";
188
+ import "./chunk-NS5XSCHC.js";
189
+ import "./chunk-RJIJR6KH.js";
190
+ import "./chunk-4QCLPSJ7.js";
184
191
  import {
185
192
  Argument,
186
193
  CommanderError,
@@ -214,17 +221,20 @@ import {
214
221
  snakeKeys,
215
222
  writesNewFileOnlyWith,
216
223
  writesOwnerFiles
217
- } from "./chunk-55SWKR6Y.js";
218
- import "./chunk-QY6GE7CL.js";
219
- import "./chunk-CXHUOPN5.js";
220
- import "./chunk-4JPOELCT.js";
224
+ } from "./chunk-INJK7FNM.js";
225
+ import "./chunk-ZZJ5IWNT.js";
226
+ import "./chunk-F7IDYQLM.js";
227
+ import "./chunk-ZCVO6GAT.js";
228
+ import "./chunk-JOIAE3NO.js";
229
+ import "./chunk-WOYPWXZK.js";
221
230
  import {
222
231
  COMMAND_PATH_KEY,
223
232
  assertOverridesTighten,
224
233
  permissionOverrides
225
- } from "./chunk-OWZETMRE.js";
226
- import "./chunk-UG2QDGAH.js";
227
- import "./chunk-YGKM2ZWF.js";
234
+ } from "./chunk-YZKVCTZI.js";
235
+ import "./chunk-H7SRM26V.js";
236
+ import "./chunk-IBINGDYF.js";
237
+ import "./chunk-FURKMNC2.js";
228
238
  import {
229
239
  hostFetch,
230
240
  providerWaitMs,
@@ -232,45 +242,49 @@ import {
232
242
  retryableStatus,
233
243
  retrying,
234
244
  statusToCode
235
- } from "./chunk-ZFYNJERV.js";
236
- import "./chunk-Y2BGABXP.js";
245
+ } from "./chunk-BGO7IEHY.js";
237
246
  import {
238
247
  speechModel
239
- } from "./chunk-OINDAHXC.js";
240
- import "./chunk-OFODCJ2A.js";
241
- import "./chunk-GYTAHH5Y.js";
242
- import "./chunk-IUSY4ZJK.js";
243
- import "./chunk-M7WYBGQT.js";
244
- import "./chunk-EZJSAYWZ.js";
245
- import "./chunk-TK77DCE5.js";
248
+ } from "./chunk-XCOGI4JE.js";
249
+ import "./chunk-KBTINKQF.js";
250
+ import "./chunk-MSMFYW6N.js";
251
+ import "./chunk-6NTNAEZF.js";
252
+ import "./chunk-3QWYRZME.js";
253
+ import "./chunk-3A3B3JX4.js";
254
+ import "./chunk-532FNLON.js";
255
+ import "./chunk-LBV4673S.js";
256
+ import "./chunk-7K5O2VWO.js";
257
+ import "./chunk-EV7QCFQR.js";
246
258
  import {
247
259
  currentAttempt,
248
260
  withAttempt
249
- } from "./chunk-FBVJGJDM.js";
250
- import "./chunk-VG63EXRC.js";
261
+ } from "./chunk-7HEZQCHL.js";
262
+ import "./chunk-AEVSVVTP.js";
251
263
  import {
252
264
  formatReference,
253
265
  isFolderProvider
254
- } from "./chunk-TYAFL66K.js";
255
- import "./chunk-EBIK5Q73.js";
256
- import "./chunk-WKT5RPSY.js";
257
- import "./chunk-JADBHKBP.js";
266
+ } from "./chunk-7IIQU5RA.js";
267
+ import "./chunk-ORSTSBWU.js";
268
+ import "./chunk-WEAMGNST.js";
269
+ import "./chunk-OOLNK3Y5.js";
270
+ import "./chunk-2USGT7LE.js";
258
271
  import {
259
272
  CLIENT_ID_MISSING,
260
273
  VERSION,
261
274
  ZM
262
- } from "./chunk-5T7TBK5Y.js";
275
+ } from "./chunk-C26V2XNV.js";
263
276
  import {
264
277
  installerOf
265
- } from "./chunk-35AH33VJ.js";
278
+ } from "./chunk-YAPDU3SV.js";
266
279
  import "./chunk-D72URWJE.js";
267
- import "./chunk-XHVFX74L.js";
268
- import "./chunk-7RORMNKP.js";
269
- import "./chunk-XRH2NKW4.js";
270
- import "./chunk-OOYIPK4F.js";
280
+ import "./chunk-LBTANUUH.js";
281
+ import "./chunk-V53TIJLY.js";
282
+ import "./chunk-FXHZHQKU.js";
283
+ import "./chunk-VMA7SILL.js";
271
284
  import {
272
285
  MEETING_COUNTS_GROUPINGS,
273
286
  RecordingSyncError,
287
+ createMeetingManagement,
274
288
  createMeetingSeriesInventoryReader,
275
289
  createUpcomingMeetingReader,
276
290
  dispatchMeetingMutation,
@@ -297,14 +311,14 @@ import {
297
311
  validateMeetingChange,
298
312
  validateMeetingContextChange,
299
313
  watchMeetingIngestion
300
- } from "./chunk-ELW3LMJZ.js";
314
+ } from "./chunk-FHOQWPQ6.js";
301
315
  import {
302
316
  dateRange,
303
317
  defineQuery,
304
318
  queryFieldsOf,
305
319
  timezoneOf
306
- } from "./chunk-FMJ4QSSU.js";
307
- import "./chunk-BDCC2J2Z.js";
320
+ } from "./chunk-TFDD4Q5Z.js";
321
+ import "./chunk-SHTHNBHG.js";
308
322
  import {
309
323
  createDeadline,
310
324
  createOutputBuffer,
@@ -312,7 +326,7 @@ import {
312
326
  fieldsOf,
313
327
  projectFields,
314
328
  realSleep
315
- } from "./chunk-CS62FET6.js";
329
+ } from "./chunk-OAYAGQ7C.js";
316
330
  import {
317
331
  array,
318
332
  boolean,
@@ -325,13 +339,13 @@ import {
325
339
  safeParse,
326
340
  string,
327
341
  transform
328
- } from "./chunk-3D5PETD2.js";
342
+ } from "./chunk-PJMQE4PW.js";
329
343
  import "./chunk-Y5E2WNWB.js";
330
344
  import {
331
345
  CliError,
332
346
  isCliError
333
- } from "./chunk-K3K3WKDB.js";
334
- import "./chunk-EPPE6ZTS.js";
347
+ } from "./chunk-FNLXFQN6.js";
348
+ import "./chunk-WJTXO2EI.js";
335
349
  import {
336
350
  __name
337
351
  } from "./chunk-ZVVMGPBJ.js";
@@ -342,12 +356,10 @@ var SECTIONS = [
342
356
  [["events"], "read"],
343
357
  [["recordings"], "read"],
344
358
  [["recordings", "schedule"], "automate"],
345
- [["remote-meetings"], "read"],
346
- [["remote-meetings", "create"], "write"],
347
- [["remote-meetings", "update"], "write"],
348
- [["remote-meetings", "cancel"], "write"],
359
+ [["meetings", "create"], "write"],
360
+ [["meetings", "update"], "write"],
361
+ [["meetings", "cancel"], "write"],
349
362
  [["meetings", "transcribe"], "write"],
350
- [["meetings", "update"], "organise"],
351
363
  [["meetings", "link"], "organise"],
352
364
  [["batch"], "read"],
353
365
  [["session"], "setup"],
@@ -1505,13 +1517,6 @@ var archiveScope = /* @__PURE__ */ __name((deps, options) => {
1505
1517
  return { account, resume };
1506
1518
  }, "archiveScope");
1507
1519
  var resumable = /* @__PURE__ */ __name((command) => command.option("--resume", "resume verified partial downloads and archive progress; requires a local profile").option("--no-resume", "disable persistent resume state for this invocation"), "resumable");
1508
- var change = /* @__PURE__ */ __name(({ title, ...options }) => Object.fromEntries(Object.entries({ topic: title, ...options }).filter(([key, value]) => value !== void 0 && ["topic", "startTime", "durationMinutes", "timezone", "agenda", "type"].includes(key))), "change");
1509
- var changes = /* @__PURE__ */ __name((command) => command.option("--title <title>", "meeting title").option("--start-time <time>", "ISO start time with timezone").option("--duration-minutes <minutes>", "positive meeting duration in minutes", positive).option("--timezone <zone>", "IANA timezone").option("--agenda <text>", "meeting agenda").option("--type <type>", "instant (1) or scheduled (2)", positive).option("--yes", "apply the change without asking first").option("--dry-run", "preview only, including when --yes is present"), "changes");
1510
- var mutation = /* @__PURE__ */ __name((options, deps) => {
1511
- if (options.yes && !options.dryRun)
1512
- deps.api();
1513
- return { apply: options.yes, dryRun: options.dryRun, signal: deps.signal(), occurrenceId: options.occurrenceId };
1514
- }, "mutation");
1515
1520
  var localZone = /* @__PURE__ */ __name((given) => {
1516
1521
  try {
1517
1522
  return timezoneOf(given);
@@ -1614,24 +1619,6 @@ var addArchiveCommands = /* @__PURE__ */ __name((program, deps) => {
1614
1619
  apply: options.yes === true && !options.dryRun,
1615
1620
  signal: deps.signal()
1616
1621
  })))), "zm personal recordings archive recover ./zoom-archive --dry-run --json", LOCAL_WRITE);
1617
- const remote = annotate(program.command("remote-meetings"), { effects: NO_EFFECTS }).description("upcoming Zoom meetings; stored meeting reads remain under meetings");
1618
- const remoteQuery = unfilteredQuery("zoom_remote_meeting", ZOOM_ANSWER_ENTITIES["remote-meetings list"].schema);
1619
- label(withQuery(remote.command("list"), remoteQuery).description("list upcoming meetings").action(async (words) => {
1620
- listQuery(typedQuery(words), remoteQuery, "remote-meetings list");
1621
- deps.api();
1622
- deps.output(wholeList("remote-meetings list", await deps.remoteMeetings().list({ signal: deps.signal() })));
1623
- }), "zm personal remote-meetings list --dry-run --json", REMOTE_READ);
1624
- label(remote.command("show").description("show an upcoming meeting").argument("<meeting>", "positive numeric Zoom meeting id").action(async (id) => {
1625
- deps.api();
1626
- deps.output(itemOf(await deps.remoteMeetings().show(id, { signal: deps.signal() })));
1627
- }), "zm personal remote-meetings show 123456789 --dry-run --json", REMOTE_READ);
1628
- label(remote.command("invitation").description("read invitation text").argument("<meeting>", "positive numeric Zoom meeting id").action(async (id) => {
1629
- deps.api();
1630
- deps.output(itemOf(await deps.remoteMeetings().invitation(id, { signal: deps.signal() })));
1631
- }), "zm personal remote-meetings invitation 123456789 --dry-run --json", REMOTE_READ);
1632
- label(changes(remote.command("create").description("create a Zoom meeting; asks first, --dry-run previews")).action(async (options) => deps.output(itemOf(await deps.remoteMeetings().create(change(options), mutation(options, deps))))), 'zm personal remote-meetings create --title "Example planning" --start-time 2026-10-10T15:30:00Z --dry-run --json', REMOTE_WRITE);
1633
- label(changes(remote.command("update").description("change a Zoom meeting; asks first, --dry-run previews").argument("<meeting>", "positive numeric Zoom meeting id")).action(async (id, options) => deps.output(itemOf(await deps.remoteMeetings().update(id, change(options), mutation(options, deps))))), 'zm personal remote-meetings update 123456789 --title "Example planning" --dry-run --json', REMOTE_WRITE);
1634
- label(remote.command("cancel").description("cancel a Zoom meeting; asks first, --dry-run previews").argument("<meeting>", "positive numeric Zoom meeting id").option("--occurrence-id <id>", "cancel one recurring occurrence").option("--yes", "cancel without asking first").option("--dry-run", "preview only, including when --yes is present").action(async (id, options) => deps.output(itemOf(await deps.remoteMeetings().cancel(id, mutation(options, deps))))), "zm personal remote-meetings cancel 123456789 --dry-run --json", REMOTE_WRITE);
1635
1622
  }, "addArchiveCommands");
1636
1623
 
1637
1624
  // dist/archive-transcripts.js
@@ -1753,7 +1740,7 @@ var searchArchiveTranscripts = /* @__PURE__ */ __name(async (destination, query,
1753
1740
  return { items: matches, page: 1, limit, hasMore: false };
1754
1741
  }, "searchArchiveTranscripts");
1755
1742
 
1756
- // node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
1743
+ // node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
1757
1744
  var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
1758
1745
  var INTEGER = /^-?\d+$/;
1759
1746
  var INT64_MIN = -(2n ** 63n);
@@ -1967,12 +1954,49 @@ var json = /* @__PURE__ */ __name((value) => {
1967
1954
  }, "json");
1968
1955
  var extras = /* @__PURE__ */ __name((row, keys2) => Object.fromEntries(Object.entries(row).filter(([key]) => !keys2.includes(key)).map(([key, value]) => [key, json(value)])), "extras");
1969
1956
  var encodeUuid = /* @__PURE__ */ __name((uuid) => uuid.startsWith("/") || uuid.includes("//") ? encodeURIComponent(encodeURIComponent(uuid)) : encodeURIComponent(uuid), "encodeUuid");
1957
+ var seriesIdOf = /* @__PURE__ */ __name((row) => {
1958
+ if (!(string2(row.id) !== null || typeof row.id === "number" && Number.isSafeInteger(row.id) && row.id > 0))
1959
+ throw new CliError("invalid_response", "Zoom meeting is missing its series id");
1960
+ return String(row.id);
1961
+ }, "seriesIdOf");
1970
1962
  var requiredString = /* @__PURE__ */ __name((value) => {
1971
1963
  const text2 = string2(value);
1972
1964
  if (text2 === null)
1973
1965
  throw new CliError("invalid_response", "Zoom response is missing a required field");
1974
1966
  return text2;
1975
1967
  }, "requiredString");
1968
+ var PAST_MEETING = "meeting:read:past_meeting";
1969
+ var DAY = 864e5;
1970
+ var FIND_SPAN = 30 * DAY;
1971
+ var FIND_REACH = 183 * DAY;
1972
+ var FIND_PAGE = 300;
1973
+ var FIND_SERIES = 20;
1974
+ var findCursorOf = /* @__PURE__ */ __name((cursor) => {
1975
+ let value;
1976
+ try {
1977
+ value = JSON.parse(cursor);
1978
+ } catch {
1979
+ throw new CliError("validation_error", "this Zoom page cursor is not one zm gave");
1980
+ }
1981
+ if (!value || typeof value !== "object" || Array.isArray(value))
1982
+ throw new CliError("validation_error", "this Zoom page cursor is not one zm gave");
1983
+ const row = value;
1984
+ const whole = [row.floor, row.end, row.skip].every((value2) => Number.isSafeInteger(value2));
1985
+ if (!whole || row.token !== null && !string2(row.token))
1986
+ throw new CliError("validation_error", "this Zoom page cursor is not one zm gave");
1987
+ return {
1988
+ floor: row.floor,
1989
+ end: row.end,
1990
+ token: row.token ?? null,
1991
+ skip: row.skip
1992
+ };
1993
+ }, "findCursorOf");
1994
+ var zoomRange = /* @__PURE__ */ __name((start, end2) => ({
1995
+ from: new Date(start).toISOString().slice(0, 10),
1996
+ to: new Date(end2).toISOString().slice(0, 10),
1997
+ timezone: "UTC"
1998
+ }), "zoomRange");
1999
+ var ZOOM_FINDS = Object.freeze({ fields: {}, upcoming: false });
1976
2000
  var ZoomApiSource = class {
1977
2001
  static {
1978
2002
  __name(this, "ZoomApiSource");
@@ -2023,10 +2047,10 @@ var ZoomApiSource = class {
2023
2047
  // A listed row's uuid is the meeting's, not the instance that ran, for every type: participants,
2024
2048
  // transcript and summary answer only for the instance uuid. This runs before the pull loop's
2025
2049
  // per-meeting guard, so a series Zoom no longer knows must not fail the whole sync.
2026
- async instances(seriesId) {
2050
+ async instances(seriesId, range) {
2027
2051
  let body;
2028
2052
  try {
2029
- body = await this.request(`/past_meetings/${encodeURIComponent(seriesId)}/instances`, "meeting:read:list_past_instances");
2053
+ body = await this.request(`/past_meetings/${encodeURIComponent(seriesId)}/instances${range ? `?${range}` : ""}`, "meeting:read:list_past_instances");
2030
2054
  } catch (error) {
2031
2055
  if (isCliError(error) && error.code === statusToCode(404))
2032
2056
  return [];
@@ -2036,6 +2060,60 @@ var ZoomApiSource = class {
2036
2060
  throw new CliError("invalid_response", "Zoom returned invalid occurrences");
2037
2061
  return body.meetings.map(object);
2038
2062
  }
2063
+ /** A listed series' occurrences that ran, each by its instance uuid, the id `meetings()`, `find` and `get` share. */
2064
+ occurrences(row, instances, keep, seen) {
2065
+ const seriesId = seriesIdOf(row);
2066
+ const recurring = row.type === 3 || row.type === 8;
2067
+ const meetings = [];
2068
+ for (const instance of instances) {
2069
+ const doubt = { zoneless: false };
2070
+ const startedAt = this.time(instance.start_time, doubt);
2071
+ const id = requiredString(instance.uuid);
2072
+ if (startedAt === null)
2073
+ throw new CliError("invalid_response", "Zoom occurrence is missing its start time");
2074
+ if (!keep(startedAt) || seen.has(id))
2075
+ continue;
2076
+ seen.add(id);
2077
+ const ended = instance.end_time === void 0 ? null : this.time(instance.end_time, doubt);
2078
+ const rawDuration = recurring ? null : number(row.duration);
2079
+ const end2 = ended ?? (rawDuration !== null && rawDuration >= 0 ? startedAt + rawDuration * 6e4 : Number.NaN);
2080
+ const endedAt = Number.isFinite(end2) && Math.abs(end2) <= 864e13 ? new Date(end2).toISOString() : null;
2081
+ meetings.push({
2082
+ series: {
2083
+ id: seriesId,
2084
+ provider: "zoom",
2085
+ title: string2(row.topic),
2086
+ kind: recurring ? "recurring" : row.type === 1 ? "instant" : "scheduled",
2087
+ joinUrl: string2(row.join_url) ?? void 0,
2088
+ recurrence: json(row.recurrence)
2089
+ },
2090
+ occurrence: {
2091
+ id,
2092
+ seriesId,
2093
+ title: string2(row.topic),
2094
+ startedAt: new Date(startedAt).toISOString(),
2095
+ endedAt
2096
+ },
2097
+ description: string2(row.agenda),
2098
+ joinUrl: string2(row.join_url),
2099
+ timezone: string2(row.timezone),
2100
+ metadata: withIssue(extras(row, [
2101
+ "id",
2102
+ "uuid",
2103
+ "topic",
2104
+ "type",
2105
+ "start_time",
2106
+ "end_time",
2107
+ "duration",
2108
+ "join_url",
2109
+ "timezone",
2110
+ "agenda",
2111
+ "recurrence"
2112
+ ]), doubt.zoneless)
2113
+ });
2114
+ }
2115
+ return meetings;
2116
+ }
2039
2117
  async meetings(since2) {
2040
2118
  const lower = Date.parse(since2);
2041
2119
  if (!Number.isFinite(lower))
@@ -2043,60 +2121,77 @@ var ZoomApiSource = class {
2043
2121
  const series = await this.pages("/users/me/meetings?type=previous_meetings", "meetings", "meeting:read:list_meetings");
2044
2122
  const meetings = [];
2045
2123
  const seen = /* @__PURE__ */ new Set();
2046
- for (const row of series) {
2047
- if (!(string2(row.id) !== null || typeof row.id === "number" && Number.isSafeInteger(row.id) && row.id > 0))
2048
- throw new CliError("invalid_response", "Zoom meeting is missing its series id");
2049
- const seriesId = String(row.id);
2050
- const recurring = row.type === 3 || row.type === 8;
2051
- const instances = await this.instances(seriesId);
2052
- for (const instance of instances) {
2053
- const doubt = { zoneless: false };
2054
- const startedAt = this.time(instance.start_time, doubt);
2055
- const id = requiredString(instance.uuid);
2056
- if (startedAt === null)
2057
- throw new CliError("invalid_response", "Zoom occurrence is missing its start time");
2058
- if (startedAt < lower || seen.has(id))
2059
- continue;
2060
- seen.add(id);
2061
- const rawDuration = recurring ? null : number(row.duration);
2062
- const end2 = rawDuration !== null && rawDuration >= 0 ? startedAt + rawDuration * 6e4 : Number.NaN;
2063
- const endedAt = Number.isFinite(end2) && Math.abs(end2) <= 864e13 ? new Date(end2).toISOString() : null;
2064
- meetings.push({
2065
- series: {
2066
- id: seriesId,
2067
- provider: "zoom",
2068
- title: string2(row.topic),
2069
- kind: recurring ? "recurring" : row.type === 1 ? "instant" : "scheduled",
2070
- joinUrl: string2(row.join_url) ?? void 0,
2071
- recurrence: json(row.recurrence)
2072
- },
2073
- occurrence: {
2074
- id,
2075
- seriesId,
2076
- title: string2(row.topic),
2077
- startedAt: new Date(startedAt).toISOString(),
2078
- endedAt
2079
- },
2080
- description: string2(row.agenda),
2081
- joinUrl: string2(row.join_url),
2082
- timezone: string2(row.timezone),
2083
- metadata: withIssue(extras(row, [
2084
- "id",
2085
- "uuid",
2086
- "topic",
2087
- "type",
2088
- "start_time",
2089
- "duration",
2090
- "join_url",
2091
- "timezone",
2092
- "agenda",
2093
- "recurrence"
2094
- ]), doubt.zoneless)
2095
- });
2096
- }
2097
- }
2124
+ for (const row of series)
2125
+ for (const meeting2 of this.occurrences(row, await this.instances(seriesIdOf(row)), (at) => at >= lower, seen))
2126
+ meetings.push(meeting2);
2098
2127
  return meetings;
2099
2128
  }
2129
+ finds = ZOOM_FINDS;
2130
+ /**
2131
+ * One stretch of at most `FIND_SPAN` of `window`, newest first, and the instances of at most `FIND_SERIES` of its
2132
+ * series: 1 + `FIND_SERIES` requests. The cursor carries on in the same stretch, then the one before it; without a
2133
+ * lower bound, back as far as Zoom lists (`FIND_REACH`). cli-core's page cap then says the answer is not complete.
2134
+ */
2135
+ async find(window, _terms, cursor) {
2136
+ const at = cursor === null ? void 0 : findCursorOf(cursor);
2137
+ const end2 = at?.end ?? window.to ?? Date.now();
2138
+ const floor = at?.floor ?? window.from ?? end2 - FIND_REACH;
2139
+ const start = Math.max(floor, end2 - FIND_SPAN);
2140
+ const range = zoomRange(start, end2);
2141
+ const query = new URLSearchParams({ type: "previous_meetings", page_size: String(FIND_PAGE), ...range });
2142
+ if (at?.token)
2143
+ query.set("next_page_token", at.token);
2144
+ const body = await this.request(`/users/me/meetings?${query}`, "meeting:read:list_meetings");
2145
+ if (!body || !Array.isArray(body.meetings))
2146
+ throw new CliError("invalid_response", "Zoom returned an invalid list");
2147
+ const rows = body.meetings.map(object);
2148
+ const skip = at?.skip ?? 0;
2149
+ const taken = rows.slice(skip, skip + FIND_SERIES);
2150
+ const inWindow = /* @__PURE__ */ __name((time) => (window.from === void 0 || time >= window.from) && (window.to === void 0 || time <= window.to), "inWindow");
2151
+ const seen = /* @__PURE__ */ new Set();
2152
+ const meetings = [];
2153
+ const ranges = new URLSearchParams({ from: range.from, to: range.to });
2154
+ for (const row of taken)
2155
+ for (const meeting2 of this.occurrences(row, await this.instances(seriesIdOf(row), ranges), inWindow, seen))
2156
+ meetings.push({ meeting: meeting2 });
2157
+ const token = string2(body.next_page_token) || null;
2158
+ if (token !== null && token === at?.token)
2159
+ throw new CliError("invalid_response", "Zoom repeated a pagination token");
2160
+ const next = skip + taken.length < rows.length ? { floor, end: end2, token: at?.token ?? null, skip: skip + taken.length } : token !== null ? { floor, end: end2, token, skip: 0 } : start > floor ? { floor, end: start - 1, token: null, skip: 0 } : null;
2161
+ return { meetings, next: next && JSON.stringify(next) };
2162
+ }
2163
+ /**
2164
+ * One meeting that ran, by its instance uuid or by its meeting number (then its latest instance): always answered
2165
+ * by the instance uuid, so `show <number>` keeps the row sync writes. `null` for one that never ran.
2166
+ */
2167
+ async get(id) {
2168
+ const given = id.trim();
2169
+ if (!given)
2170
+ throw new CliError("validation_error", "name a Zoom meeting by its uuid or number");
2171
+ const { scopes } = await this.tokens.tokens();
2172
+ if (!["", ":admin", ":master"].some((grant) => scopes.includes(`${PAST_MEETING}${grant}`)))
2173
+ throw new CliError("permission_error", `Zoom scope ${PAST_MEETING} is missing; add it to the app and run zm <profile> session start again`);
2174
+ const body = await this.request(`/past_meetings/${encodeUuid(given)}`, PAST_MEETING, 3001);
2175
+ if (!body)
2176
+ return null;
2177
+ const [found] = this.occurrences(body, [body], () => true, /* @__PURE__ */ new Set());
2178
+ if (!found)
2179
+ return null;
2180
+ const meeting2 = { ...found, series: null };
2181
+ const uuid = meeting2.occurrence.id;
2182
+ const [participants, transcript] = await Promise.all([this.participants(uuid), this.transcriptOnShow(uuid)]);
2183
+ return { meeting: meeting2, participants, ...transcript === void 0 ? {} : { transcript } };
2184
+ }
2185
+ /** A transcript Zoom is still making is left unread here, so `show` keeps the meeting and a later sync reads it. */
2186
+ async transcriptOnShow(uuid) {
2187
+ try {
2188
+ return await this.transcript(uuid);
2189
+ } catch (error) {
2190
+ if (isCliError(error) && error.code === "provider_error")
2191
+ return void 0;
2192
+ throw error;
2193
+ }
2194
+ }
2100
2195
  async participants(id) {
2101
2196
  const rows = await this.pages(`/past_meetings/${encodeUuid(id)}/participants`, "participants", "meeting:read:list_past_participants");
2102
2197
  const participants = /* @__PURE__ */ new Map();
@@ -2801,6 +2896,8 @@ var configuredMeetingSource = /* @__PURE__ */ __name(({ deps, getConfig, tokens,
2801
2896
  })();
2802
2897
  return activeSource;
2803
2898
  }, "getSource");
2899
+ const live = /* @__PURE__ */ __name((name) => deps.source ? deps.source[name] !== void 0 : getConfig().source === "api", "live");
2900
+ const ported = /* @__PURE__ */ __name(async () => await getSource(), "ported");
2804
2901
  const source = {
2805
2902
  get provider() {
2806
2903
  return deps.source?.provider ?? "zoom";
@@ -2828,6 +2925,16 @@ var configuredMeetingSource = /* @__PURE__ */ __name(({ deps, getConfig, tokens,
2828
2925
  },
2829
2926
  async files(id) {
2830
2927
  return (await getSource()).files(id);
2928
+ },
2929
+ // Only the API reads Zoom live; a folder of downloaded files has no meeting that is not in it.
2930
+ get finds() {
2931
+ return deps.source ? deps.source.finds : getConfig().source === "api" ? ZOOM_FINDS : void 0;
2932
+ },
2933
+ get find() {
2934
+ return live("find") ? async (window, terms, cursor) => (await ported()).find(window, terms, cursor) : void 0;
2935
+ },
2936
+ get get() {
2937
+ return live("get") ? async (id) => (await ported()).get(id) : void 0;
2831
2938
  }
2832
2939
  };
2833
2940
  return {
@@ -3568,18 +3675,18 @@ var normalized = /* @__PURE__ */ __name((value) => {
3568
3675
  joinUrl: string2(row.join_url)
3569
3676
  };
3570
3677
  }, "normalized");
3571
- var changeBody = /* @__PURE__ */ __name((change2, create) => {
3572
- if (!change2 || Object.keys(change2).some((key) => !["topic", "startTime", "durationMinutes", "timezone", "agenda", "type"].includes(key)))
3678
+ var changeBody = /* @__PURE__ */ __name((change, create) => {
3679
+ if (!change || Object.keys(change).some((key) => !["topic", "startTime", "durationMinutes", "timezone", "agenda", "type"].includes(key)))
3573
3680
  throw new CliError("validation_error", "unsupported meeting change field");
3574
- if (change2.type !== void 0 && change2.type !== 1 && change2.type !== 2)
3681
+ if (change.type !== void 0 && change.type !== 1 && change.type !== 2)
3575
3682
  throw new CliError("validation_error", "only instant or scheduled meeting types are supported");
3576
3683
  const neutral = {
3577
- ...change2.topic !== void 0 ? { title: change2.topic } : {},
3578
- ...change2.type !== void 0 ? { kind: change2.type === 1 ? "instant" : "scheduled" } : {},
3579
- ...change2.startTime !== void 0 ? { startTime: change2.startTime } : {},
3580
- ...change2.durationMinutes !== void 0 ? { durationMinutes: change2.durationMinutes } : {},
3581
- ...change2.timezone !== void 0 ? { timezone: change2.timezone } : {},
3582
- ...change2.agenda !== void 0 ? { agenda: change2.agenda } : {}
3684
+ ...change.topic !== void 0 ? { title: change.topic } : {},
3685
+ ...change.type !== void 0 ? { kind: change.type === 1 ? "instant" : "scheduled" } : {},
3686
+ ...change.startTime !== void 0 ? { startTime: change.startTime } : {},
3687
+ ...change.durationMinutes !== void 0 ? { durationMinutes: change.durationMinutes } : {},
3688
+ ...change.timezone !== void 0 ? { timezone: change.timezone } : {},
3689
+ ...change.agenda !== void 0 ? { agenda: change.agenda } : {}
3583
3690
  };
3584
3691
  const validated = validateMeetingChange(neutral, create);
3585
3692
  const body = {
@@ -3600,31 +3707,6 @@ var ZoomRemoteMeetings = class {
3600
3707
  constructor(tokens, fetcher, options = {}) {
3601
3708
  this.remote = new ZoomRemote(tokens, fetcher, options);
3602
3709
  }
3603
- async list(options = {}) {
3604
- const signal = operationSignal(options.signal);
3605
- const query = new URLSearchParams({ type: "upcoming", page_size: "100" });
3606
- const seen = /* @__PURE__ */ new Set();
3607
- const result = /* @__PURE__ */ new Map();
3608
- for (; ; ) {
3609
- const body = await this.remote.request(`/users/me/meetings?${query}`, "meeting:read:list_meetings", { signal });
3610
- if (!Array.isArray(body.meetings))
3611
- throw new CliError("invalid_response", "Zoom returned an invalid meeting list");
3612
- for (const row of body.meetings) {
3613
- const item = normalized(row);
3614
- result.set(item.id, item);
3615
- }
3616
- const next = string2(body.next_page_token);
3617
- if (!next)
3618
- return [...result.values()];
3619
- if (seen.has(next))
3620
- throw new CliError("invalid_response", "Zoom repeated a pagination token");
3621
- seen.add(next);
3622
- query.set("next_page_token", next);
3623
- }
3624
- }
3625
- async show(id, options = {}) {
3626
- return normalized(await this.remote.request(zoomMeetingPath(id), "meeting:read:meeting", options));
3627
- }
3628
3710
  async invitation(id, options = {}) {
3629
3711
  const body = await this.remote.request(`${zoomMeetingPath(id)}/invitation`, "meeting:read:invitation", options);
3630
3712
  return { id, invitation: required(body.invitation) };
@@ -3652,11 +3734,11 @@ var ZoomRemoteMeetings = class {
3652
3734
  result.meeting = outcome.value;
3653
3735
  return result;
3654
3736
  }
3655
- create(change2, options = {}) {
3656
- return this.mutate("create", { method: "POST", path: "/users/me/meetings", body: changeBody(change2, true) }, "meeting:write:meeting", options);
3737
+ create(change, options = {}) {
3738
+ return this.mutate("create", { method: "POST", path: "/users/me/meetings", body: changeBody(change, true) }, "meeting:write:meeting", options);
3657
3739
  }
3658
- update(id, change2, options = {}) {
3659
- return this.mutate("update", { method: "PATCH", path: zoomMeetingPath(id), body: changeBody(change2, false) }, "meeting:update:meeting", options);
3740
+ update(id, change, options = {}) {
3741
+ return this.mutate("update", { method: "PATCH", path: zoomMeetingPath(id), body: changeBody(change, false) }, "meeting:update:meeting", options);
3660
3742
  }
3661
3743
  cancel(id, options = {}) {
3662
3744
  const path = zoomMeetingPath(id);
@@ -3666,6 +3748,75 @@ var ZoomRemoteMeetings = class {
3666
3748
  return this.mutate("cancel", { method: "DELETE", path: `${path}${query}` }, "meeting:delete:meeting", options);
3667
3749
  }
3668
3750
  };
3751
+ var managedMeeting = /* @__PURE__ */ __name((meeting2) => ({
3752
+ id: meeting2.id,
3753
+ title: meeting2.title,
3754
+ kind: meeting2.type === 1 ? "instant" : meeting2.type === 2 ? "scheduled" : null,
3755
+ startTime: meeting2.startedAt,
3756
+ durationMinutes: meeting2.durationMinutes,
3757
+ timezone: meeting2.timezone,
3758
+ agenda: meeting2.agenda,
3759
+ joinUrl: meeting2.joinUrl
3760
+ }), "managedMeeting");
3761
+ var zoomChange = /* @__PURE__ */ __name((change) => ({
3762
+ ...change.title !== void 0 ? { topic: change.title } : {},
3763
+ ...change.kind !== void 0 ? { type: change.kind === "instant" ? 1 : 2 } : {},
3764
+ ...change.startTime !== void 0 ? { startTime: change.startTime } : {},
3765
+ ...change.durationMinutes !== void 0 ? { durationMinutes: change.durationMinutes } : {},
3766
+ ...change.timezone !== void 0 ? { timezone: change.timezone } : {},
3767
+ ...change.agenda !== void 0 ? { agenda: change.agenda } : {}
3768
+ }), "zoomChange");
3769
+ var ZOOM_FIELDS = { fields: ["title", "startTime", "durationMinutes", "timezone", "agenda"] };
3770
+ var createZoomMeetingManagement = /* @__PURE__ */ __name((remote, account) => createMeetingManagement({ provider: "zoom", account }, {
3771
+ fields: { create: ZOOM_FIELDS, update: ZOOM_FIELDS },
3772
+ invitation: /* @__PURE__ */ __name((id, { signal }) => remote.invitation(id, { signal }), "invitation"),
3773
+ create: /* @__PURE__ */ __name(async (change, { signal }) => {
3774
+ const receipt = await remote.create({ ...zoomChange(change), type: 2 }, { apply: true, signal });
3775
+ if (!receipt.meeting)
3776
+ throw new CliError("outcome_unknown", "Zoom did not acknowledge the created meeting");
3777
+ return managedMeeting(receipt.meeting);
3778
+ }, "create"),
3779
+ update: /* @__PURE__ */ __name(async (id, change, { signal }) => {
3780
+ await remote.update(id, zoomChange(change), { apply: true, signal });
3781
+ }, "update"),
3782
+ cancel: /* @__PURE__ */ __name(async (id, { signal, occurrenceId }) => {
3783
+ await remote.cancel(id, { apply: true, signal, occurrenceId });
3784
+ }, "cancel")
3785
+ }), "createZoomMeetingManagement");
3786
+ var zoomMeetingManagement = /* @__PURE__ */ __name((open2) => {
3787
+ const declared = createZoomMeetingManagement({
3788
+ invitation: unbound,
3789
+ create: unbound,
3790
+ update: unbound,
3791
+ cancel: unbound
3792
+ }, "unbound");
3793
+ return {
3794
+ ...declared,
3795
+ invitation: /* @__PURE__ */ __name((id, options) => open2().invitation(id, options), "invitation"),
3796
+ create: /* @__PURE__ */ __name((change, options) => open2().create(change, options), "create"),
3797
+ update: /* @__PURE__ */ __name((id, change, options) => open2().update(id, change, options), "update"),
3798
+ cancel: /* @__PURE__ */ __name((id, options) => open2().cancel(id, options), "cancel")
3799
+ };
3800
+ }, "zoomMeetingManagement");
3801
+ var profileMeetingManagement = /* @__PURE__ */ __name((make, account) => zoomMeetingManagement(() => createZoomMeetingManagement(lazyRemote(make), account())), "profileMeetingManagement");
3802
+ var lazyRemote = /* @__PURE__ */ __name((make) => {
3803
+ let made;
3804
+ const remote = /* @__PURE__ */ __name(() => made ??= make(), "remote");
3805
+ return {
3806
+ invitation: /* @__PURE__ */ __name((id, options) => remote().invitation(id, options), "invitation"),
3807
+ create: /* @__PURE__ */ __name((change, options) => remote().create(change, options), "create"),
3808
+ update: /* @__PURE__ */ __name((id, change, options) => remote().update(id, change, options), "update"),
3809
+ cancel: /* @__PURE__ */ __name((id, options) => remote().cancel(id, options), "cancel")
3810
+ };
3811
+ }, "lazyRemote");
3812
+ var unbound = /* @__PURE__ */ __name(() => {
3813
+ throw new CliError("configuration_error", "no Zoom account is open for this command");
3814
+ }, "unbound");
3815
+ var leaves = /* @__PURE__ */ __name((command) => command.commands.length ? command.commands.flatMap(leaves) : [command], "leaves");
3816
+ var storeLeaves = /* @__PURE__ */ __name((program, before, management) => {
3817
+ const managed = new Set((management?.capabilities ?? []).filter((name) => ["create", "update", "cancel", "invitation"].includes(name)));
3818
+ return new Set(program.commands.filter((group) => !before.has(group)).flatMap(leaves).filter((leaf) => !(leaf.parent?.name() === "meetings" && managed.has(leaf.name()))));
3819
+ }, "storeLeaves");
3669
3820
 
3670
3821
  // dist/request-events.js
3671
3822
  var SEGMENT = /^(?:v\d+|[a-z][a-z_]{0,23})$/;
@@ -3789,7 +3940,7 @@ var addModelsCommands = /* @__PURE__ */ __name((program, deps) => {
3789
3940
  // dist/upgrade.js
3790
3941
  import { join as join12 } from "node:path";
3791
3942
 
3792
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/update/index.js
3943
+ // node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/update/index.js
3793
3944
  import { realpathSync } from "node:fs";
3794
3945
  import { fileURLToPath as fileURLToPath2 } from "node:url";
3795
3946
  var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
@@ -4283,22 +4434,49 @@ var addMeetingContextCommands = /* @__PURE__ */ __name((program, deps) => {
4283
4434
  }, "addMeetingContextCommands");
4284
4435
 
4285
4436
  // dist/meeting-integration-commands.js
4437
+ var linkChange = /* @__PURE__ */ __name((options) => {
4438
+ const toPerson = options.participantId !== void 0 || options.person !== void 0;
4439
+ if (options.eventId !== void 0 === toPerson)
4440
+ throw new CliError("validation_error", "give --event-id, or --participant-id with --person", {
4441
+ param: "--event-id"
4442
+ });
4443
+ if (options.eventId !== void 0) {
4444
+ if (options.source !== void 0 || options.expectedPerson !== void 0)
4445
+ throw new CliError("validation_error", "--source and --expected-person go with --person, not --event-id");
4446
+ return {
4447
+ action: "event.link",
4448
+ eventId: options.eventId === "none" ? null : options.eventId,
4449
+ ...options.expectedEventId === void 0 ? {} : { expectedEventId: options.expectedEventId === "none" ? null : options.expectedEventId }
4450
+ };
4451
+ }
4452
+ if (options.participantId === void 0 || options.person === void 0)
4453
+ throw new CliError("validation_error", "--participant-id and --person go together", { param: "--person" });
4454
+ if (options.expectedEventId !== void 0)
4455
+ throw new CliError("validation_error", "--expected-event-id goes with --event-id");
4456
+ return {
4457
+ action: "person.link",
4458
+ participantId: options.participantId,
4459
+ personUid: options.person,
4460
+ ...options.source === void 0 ? {} : { targetAccountIds: options.source.split(",").map((item) => bytes(item.trim())) },
4461
+ ...options.expectedPerson === void 0 ? {} : { expectedPersonUid: options.expectedPerson === "none" ? null : options.expectedPerson }
4462
+ };
4463
+ }, "linkChange");
4286
4464
  var addMeetingIntegrationCommands = /* @__PURE__ */ __name((program, deps) => {
4287
4465
  const meetings = program.commands.find((command) => command.name() === "meetings");
4288
4466
  if (!meetings)
4289
4467
  throw new CliError("configuration_error", "meeting command group is unavailable");
4290
- const label2 = /* @__PURE__ */ __name((command, example, mutates = false) => annotate(command, {
4468
+ const label2 = /* @__PURE__ */ __name((command, examples, mutates = false) => annotate(command, {
4291
4469
  origin: "handwritten",
4292
4470
  effects: mutates ? LOCAL_WRITE : LOCAL_READ,
4293
- examples: [example]
4471
+ examples
4294
4472
  }), "label");
4295
4473
  const guards = /* @__PURE__ */ __name((command) => command.option("--yes", "apply this local change once").option("--dry-run", "preview even when --yes is present"), "guards");
4296
4474
  const apply = /* @__PURE__ */ __name(async (reference, input, options, command) => {
4297
4475
  const target = integrationReference(reference);
4298
- const change2 = validateMeetingContextChange(input);
4299
- if (change2.action !== "event.link" && change2.action !== "person.link")
4476
+ const change = validateMeetingContextChange(input);
4477
+ if (change.action !== "event.link" && change.action !== "person.link")
4300
4478
  throw new CliError("validation_error", "meeting linking supports only explicit event or person changes");
4301
- const result = await (await deps.integration()).change(target.reference, change2, {
4479
+ const result = await (await deps.integration()).change(target.reference, change, {
4302
4480
  apply: options.yes,
4303
4481
  dryRun: options.dryRun,
4304
4482
  signal: deps.signal(),
@@ -4311,18 +4489,10 @@ var addMeetingIntegrationCommands = /* @__PURE__ */ __name((program, deps) => {
4311
4489
  deps.output(itemOf(result));
4312
4490
  }, "apply");
4313
4491
  const nullableId = /* @__PURE__ */ __name((value) => value === "none" ? "none" : bytes(value), "nullableId");
4314
- label2(guards(meetings.command("update").description("preview linking a stored meeting to an event; --yes applies it").argument("<reference>", "meeting reference, such as meeting:1/1").requiredOption("--event-id <id>", "stored event id, or none to unlink", nullableId).option("--expected-event-id <id>", "compare current event id, or none", nullableId)).action(async (reference, options, command) => apply(reference, {
4315
- action: "event.link",
4316
- eventId: options.eventId === "none" ? null : options.eventId,
4317
- ...options.expectedEventId === void 0 ? {} : { expectedEventId: options.expectedEventId === "none" ? null : options.expectedEventId }
4318
- }, options, command)), "zm personal meetings update meeting:1/1 --event-id 1 --json", true);
4319
- label2(guards(meetings.command("link").description("preview linking a meeting participant to a stored person; --yes applies it").argument("<reference>", "meeting reference, such as meeting:1/1").requiredOption("--participant-id <id>", "participant id from this meeting", bytes).requiredOption("--person <uid>", "explicit stored person UID").option("--source <accounts>", "explicit additional account ids authorized for target-person lookup").option("--expected-person <uid>", "compare current person UID, or none")).action(async (reference, options, command) => apply(reference, {
4320
- action: "person.link",
4321
- participantId: options.participantId,
4322
- personUid: options.person,
4323
- ...options.source === void 0 ? {} : { targetAccountIds: options.source.split(",").map((item) => bytes(item.trim())) },
4324
- ...options.expectedPerson === void 0 ? {} : { expectedPersonUid: options.expectedPerson === "none" ? null : options.expectedPerson }
4325
- }, options, command)), "zm personal meetings link meeting:1/1 --participant-id 1 --person 1 --json", true);
4492
+ label2(guards(meetings.command("link").description("link a meeting to an event, or a participant to a person; --yes applies").argument("<reference>", "meeting reference, such as meeting:1/1").option("--event-id <id>", "stored event id, or none to unlink", nullableId).option("--expected-event-id <id>", "with --event-id: compare current event id, or none", nullableId).option("--participant-id <id>", "with --person: participant id from this meeting", bytes).option("--person <uid>", "with --participant-id: explicit stored person UID").option("--source <accounts>", "explicit additional account ids authorized for target-person lookup").option("--expected-person <uid>", "compare current person UID, or none")).action(async (reference, options, command) => apply(reference, linkChange(options), options, command)), [
4493
+ "zm personal meetings link meeting:1/1 --event-id 1 --json",
4494
+ "zm personal meetings link meeting:1/1 --participant-id 1 --person 1 --json"
4495
+ ], true);
4326
4496
  }, "addMeetingIntegrationCommands");
4327
4497
 
4328
4498
  // dist/meeting-project-candidates.js
@@ -5537,6 +5707,11 @@ ${PROFILE_HELP}`);
5537
5707
  return validateDownloadedFiles(await (deps.readFiles ?? readDownloadedFiles)(folder), filesZone(config2)).map((file) => importFile(file, requireAccount(), filesZone(config2)));
5538
5708
  }, "readFiles"),
5539
5709
  now: deps.now,
5710
+ management: profileMeetingManagement(() => {
5711
+ api();
5712
+ return deps.remoteMeetings ?? new ZoomRemoteMeetings(tokens(), fetchWithSignal(deps.fetch), remoteOptions);
5713
+ }, () => profileAccountKey(profile())),
5714
+ askFirst: /* @__PURE__ */ __name((command) => askBeforeWrite(command, { profile: named, config: getConfig, confirm: ask() }), "askFirst"),
5540
5715
  write: /* @__PURE__ */ __name((value) => output(bodyOf(value)), "write"),
5541
5716
  // inCommandRun would open a second run beside zm's own commandRuns, so a sync would be kept twice.
5542
5717
  inRun: /* @__PURE__ */ __name((_command, body) => body(), "inRun"),
@@ -5551,8 +5726,7 @@ ${PROFILE_HELP}`);
5551
5726
  };
5552
5727
  const before = new Set(program.commands);
5553
5728
  addZoomMeetingCommands(program, meetingCommands);
5554
- const leaves = /* @__PURE__ */ __name((command) => command.commands.length ? command.commands.flatMap(leaves) : [command], "leaves");
5555
- const storeCommands = new Set(program.commands.filter((group) => !before.has(group)).flatMap(leaves));
5729
+ const storeCommands = storeLeaves(program, before, meetingCommands.management);
5556
5730
  addSessionCommands(program, {
5557
5731
  deps,
5558
5732
  getConfig,
@@ -5619,7 +5793,6 @@ ${PROFILE_HELP}`);
5619
5793
  signal,
5620
5794
  now: deps.now ?? Date.now,
5621
5795
  recordings: /* @__PURE__ */ __name(() => deps.recordings ?? new ZoomRecordings(tokens(), fetchWithSignal(deps.fetch), remoteOptions, zones), "recordings"),
5622
- remoteMeetings: /* @__PURE__ */ __name(() => deps.remoteMeetings ?? new ZoomRemoteMeetings(tokens(), fetchWithSignal(deps.fetch), remoteOptions), "remoteMeetings"),
5623
5796
  archive: deps.archive ?? {
5624
5797
  inspect: inspectArchive,
5625
5798
  verify: verifyArchive,
@@ -5792,7 +5965,7 @@ var zoomDefinition = /* @__PURE__ */ __name((deps, onFailure) => {
5792
5965
  appMcpCommand(ZM, shared, {
5793
5966
  name: "Zoom",
5794
5967
  untrusted: ["transcripts", "summaries", "chat messages", "participant names", "meeting titles", "file names"],
5795
- permissionExample: "remote-meetings=deny",
5968
+ permissionExample: "meetings.cancel=deny",
5796
5969
  skill: SKILL
5797
5970
  })
5798
5971
  ], "commands"),