@wirecat/zoom-cli 0.75.0 → 0.77.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 (217) 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-WFLKFKJC.js → all-profiles-PMCFNDMA.js} +11 -11
  17. package/dist/bundle/answer-policy-XU7KEW2V.js +121 -0
  18. package/dist/bundle/{anthropic-H45W4P22.js → anthropic-TGJOKLUS.js} +6 -6
  19. package/dist/bundle/{app-server-I4FPLBIX.js → app-server-OAODUFM3.js} +73 -63
  20. package/dist/bundle/{bun-V5QLYBZU.js → bun-HJHVHJJV.js} +2 -2
  21. package/dist/bundle/{bun-sqlite-X2YZPHDS.js → bun-sqlite-PLBOY6FP.js} +7 -7
  22. package/dist/bundle/{chunk-P6MQ6FS4.js → chunk-2QDD6S2R.js} +8 -8
  23. package/dist/bundle/{chunk-ZMHZ6CQS.js → chunk-2QRGJSKO.js} +2 -2
  24. package/dist/bundle/{chunk-DQBLDZ7M.js → chunk-36SI35XZ.js} +5 -5
  25. package/dist/bundle/{chunk-HKPNQL52.js → chunk-375BH5OD.js} +4 -4
  26. package/dist/bundle/{chunk-T4FMXDDV.js → chunk-3TLQF3DN.js} +3 -3
  27. package/dist/bundle/{chunk-EA2OB75T.js → chunk-4QNW4NK6.js} +1 -1
  28. package/dist/bundle/{chunk-4XDWV6VJ.js → chunk-4Z4VOQRR.js} +17 -17
  29. package/dist/bundle/{chunk-VLK3X53X.js → chunk-5A5W322G.js} +6 -2
  30. package/dist/bundle/chunk-5C5UEKUJ.js +170 -0
  31. package/dist/bundle/chunk-5C6CRSEM.js +389 -0
  32. package/dist/bundle/{chunk-3YKAFLXY.js → chunk-5KHCFIWI.js} +2 -2
  33. package/dist/bundle/{chunk-NQQVNLO6.js → chunk-635GRAO5.js} +12 -12
  34. package/dist/bundle/{chunk-RKI4BGWG.js → chunk-6JRBMNRN.js} +3 -3
  35. package/dist/bundle/{chunk-Y5J5CAG2.js → chunk-6YCFDDRO.js} +1 -1
  36. package/dist/bundle/{chunk-ZVVRRMLW.js → chunk-77JQIY2V.js} +3 -3
  37. package/dist/bundle/{chunk-IW245Q5B.js → chunk-7AFYZOHU.js} +36 -32
  38. package/dist/bundle/{chunk-V3UK6E5B.js → chunk-7CMYNW3W.js} +4 -4
  39. package/dist/bundle/chunk-7DTU7QZP.js +72 -0
  40. package/dist/bundle/chunk-7ILGYNWX.js +773 -0
  41. package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-7S3N5CTA.js} +1 -1
  42. package/dist/bundle/chunk-7SNU7RFU.js +229 -0
  43. package/dist/bundle/{chunk-4YNUQGDP.js → chunk-A6LK2W5J.js} +1 -1
  44. package/dist/bundle/{chunk-MHXZ62CU.js → chunk-ADJIYY33.js} +1 -1
  45. package/dist/bundle/{chunk-WUWF4EXZ.js → chunk-B7XFDMFV.js} +22 -12
  46. package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-BOJCRTQW.js} +2 -2
  47. package/dist/bundle/{chunk-GPVSGZ4R.js → chunk-CJL5GHTQ.js} +1010 -617
  48. package/dist/bundle/{chunk-BY2YPKZZ.js → chunk-CL6QAZGT.js} +39 -67
  49. package/dist/bundle/{chunk-GU4FVTJV.js → chunk-CUJJZJ4R.js} +44 -9
  50. package/dist/bundle/{chunk-FBYGBR4Q.js → chunk-CZ6OO66B.js} +4 -4
  51. package/dist/bundle/chunk-DCEQIKFD.js +259 -0
  52. package/dist/bundle/{chunk-QBKKTTA3.js → chunk-DDUNPLET.js} +279 -588
  53. package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-DYIRJINE.js} +1 -1
  54. package/dist/bundle/{chunk-L5UILROP.js → chunk-E3UPMPUV.js} +8 -8
  55. package/dist/bundle/{chunk-F6RB5FHZ.js → chunk-ECRFXQHA.js} +1 -1
  56. package/dist/bundle/{chunk-AVCYD4WQ.js → chunk-F4ROWGLU.js} +68 -38
  57. package/dist/bundle/{chunk-6XNTELM5.js → chunk-FDQE2CLT.js} +1 -1
  58. package/dist/bundle/{chunk-PCJRHC5Y.js → chunk-FRC5QIPQ.js} +8 -8
  59. package/dist/bundle/{chunk-4RJL32PF.js → chunk-FS5HPXQN.js} +26 -9
  60. package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-GHBDYYPO.js} +2 -2
  61. package/dist/bundle/{chunk-OUM4ZO53.js → chunk-H2EVYY5Z.js} +1 -1
  62. package/dist/bundle/{chunk-VPSQZ2YR.js → chunk-I3QMPQYD.js} +49 -49
  63. package/dist/bundle/{chunk-3U3W6YY5.js → chunk-ICZVSVTW.js} +71 -252
  64. package/dist/bundle/{chunk-QEO3XTIE.js → chunk-IJTBB23F.js} +32 -33
  65. package/dist/bundle/{chunk-FT7X74RT.js → chunk-IS6MUPN2.js} +4 -4
  66. package/dist/bundle/{chunk-NL6AZ6S2.js → chunk-IUOKIZZN.js} +2 -2
  67. package/dist/bundle/{chunk-3HTJBGNP.js → chunk-IZMRQ3MV.js} +21 -16
  68. package/dist/bundle/{chunk-X2FILY5F.js → chunk-JFVZVPRW.js} +3 -3
  69. package/dist/bundle/{chunk-MNVT7EJS.js → chunk-JMU3E2WA.js} +2 -2
  70. package/dist/bundle/{chunk-T25PR26L.js → chunk-JQUYHPQD.js} +7 -7
  71. package/dist/bundle/{chunk-JDTZCZ5K.js → chunk-KHBSQROH.js} +5 -5
  72. package/dist/bundle/{chunk-HCZYJMBP.js → chunk-KYKW2W6X.js} +1 -1
  73. package/dist/bundle/chunk-LMZUC4CS.js +101 -0
  74. package/dist/bundle/{chunk-PPM7UTCT.js → chunk-LUAS73NT.js} +18 -18
  75. package/dist/bundle/{chunk-P4ZQQLZF.js → chunk-LWMDLXEO.js} +2384 -3000
  76. package/dist/bundle/{chunk-W2AC2RAG.js → chunk-LYVHQ6DJ.js} +14 -14
  77. package/dist/bundle/{chunk-DUPFAY35.js → chunk-MCLZ74II.js} +7 -7
  78. package/dist/bundle/chunk-MIG4RLDB.js +555 -0
  79. package/dist/bundle/{chunk-3URYKAJP.js → chunk-MMAZUJBO.js} +1 -1
  80. package/dist/bundle/{chunk-B6Q53CVA.js → chunk-MTH3JJHF.js} +24 -22
  81. package/dist/bundle/{chunk-7ZVWV33Z.js → chunk-NJJEUG4C.js} +35 -13
  82. package/dist/bundle/{chunk-SEJBS7SI.js → chunk-NKKVVPL5.js} +1 -1
  83. package/dist/bundle/{chunk-TSHUBGN4.js → chunk-NOF6LABG.js} +6 -6
  84. package/dist/bundle/{chunk-F7K2V6OA.js → chunk-NPDPD2H3.js} +12 -12
  85. package/dist/bundle/{chunk-2PYZTRRC.js → chunk-NPIVV52M.js} +1 -1
  86. package/dist/bundle/{chunk-WQOGHND4.js → chunk-OOIU36FA.js} +1 -1
  87. package/dist/bundle/{chunk-XCJGDPMN.js → chunk-OXXJW3A5.js} +22320 -22886
  88. package/dist/bundle/chunk-PM3MB3E7.js +295 -0
  89. package/dist/bundle/{chunk-VUPWDCYV.js → chunk-PO4RZ4XZ.js} +1 -1
  90. package/dist/bundle/{chunk-K5E5MB4C.js → chunk-Q7ZW7XAX.js} +31 -87
  91. package/dist/bundle/{chunk-HNWDEDMU.js → chunk-QAGECFHL.js} +22 -22
  92. package/dist/bundle/{chunk-JTYWSXJG.js → chunk-QE4L2QQZ.js} +9 -9
  93. package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-QKNO3JTG.js} +2 -2
  94. package/dist/bundle/{chunk-IMDTC4MD.js → chunk-QUGESVOE.js} +22 -35
  95. package/dist/bundle/{chunk-ELD5AC7Q.js → chunk-RQS3W4P6.js} +7 -6
  96. package/dist/bundle/{chunk-A3Q3PG54.js → chunk-SFPUSEOT.js} +2 -2
  97. package/dist/bundle/{chunk-SR5X7YKB.js → chunk-SP5OMHOO.js} +3 -3
  98. package/dist/bundle/chunk-STNZQBY4.js +335 -0
  99. package/dist/bundle/{chunk-EOZAJGB4.js → chunk-SVJQRG5N.js} +16 -16
  100. package/dist/bundle/{chunk-IDGWBKMH.js → chunk-SY5NGYKA.js} +12 -12
  101. package/dist/bundle/{chunk-NE4GYKQA.js → chunk-T4CI3YXW.js} +6 -6
  102. package/dist/bundle/{chunk-3YRPDNWK.js → chunk-T6RSYDFA.js} +1075 -443
  103. package/dist/bundle/{chunk-QXQUANWE.js → chunk-TY4FFK2P.js} +6 -6
  104. package/dist/bundle/chunk-UGRGYLEI.js +224 -0
  105. package/dist/bundle/{chunk-C5WQ57AB.js → chunk-VGERRRDC.js} +1 -1
  106. package/dist/bundle/{chunk-NQLL4KRN.js → chunk-VJ2TLU7R.js} +6 -6
  107. package/dist/bundle/{chunk-PX4IMYVB.js → chunk-W7UCN7MF.js} +3 -3
  108. package/dist/bundle/{chunk-RBYVQE3S.js → chunk-WD5OL5JB.js} +81 -5
  109. package/dist/bundle/{chunk-LRCSDAYK.js → chunk-XC3MWABM.js} +4 -4
  110. package/dist/bundle/{chunk-MAE5UGRQ.js → chunk-XCA5N63N.js} +6 -6
  111. package/dist/bundle/chunk-XVHDT4CO.js +31 -0
  112. package/dist/bundle/{chunk-532H3KT3.js → chunk-YFN5A7OP.js} +4 -4
  113. package/dist/bundle/{chunk-IJCUAKR5.js → chunk-YJIGGUPI.js} +4 -4
  114. package/dist/bundle/{chunk-FIVFP53N.js → chunk-YVI5SQPY.js} +1 -1
  115. package/dist/bundle/{chunk-IO3BQ6JU.js → chunk-ZRNNMBPC.js} +31 -577
  116. package/dist/bundle/{chunk-RABCFGT3.js → chunk-ZUMKZOHR.js} +3 -3
  117. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-ZZ32DXTH.js} +1 -1
  118. package/dist/bundle/{cli-NPRYCWFH.js → cli-Y27PHKBV.js} +105 -84
  119. package/dist/bundle/command-contract-GB7YA3KW.js +45 -0
  120. package/dist/bundle/{command-server-entry-BV4SUPUI.js → command-server-entry-AXQSW2X6.js} +35 -31
  121. package/dist/bundle/config-2OOABHR7.js +108 -0
  122. package/dist/bundle/{decode-PRMKCHHC.js → decode-ZRNOOTUZ.js} +16 -8
  123. package/dist/bundle/{dispatch-EU67WGME.js → dispatch-2GHGPAYH.js} +9 -9
  124. package/dist/bundle/{dist-HGLDGKUW.js → dist-MUFVAMKB.js} +25 -22
  125. package/dist/bundle/{echarts-QIXLXS3G.js → echarts-F4PHDYET.js} +2 -2
  126. package/dist/bundle/{embed-OZN2BIJY.js → embed-KWHCKPCV.js} +7 -7
  127. package/dist/bundle/{embedder-RBDHO6Z6.js → embedder-U3R3RY54.js} +10 -10
  128. package/dist/bundle/{failure-CTJLEB2R.js → failure-S2YXEN4A.js} +3 -3
  129. package/dist/bundle/first-run-F4YR2E2C.js +29 -0
  130. package/dist/bundle/first-screen-HPRHD3VK.js +43 -0
  131. package/dist/bundle/{folders-MSBTAPAG.js → folders-DVTRFQKW.js} +5 -5
  132. package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-JU4YW6QY.js} +1 -1
  133. package/dist/bundle/{main-FPMCCRIQ.js → main-5UCRPACH.js} +24 -24
  134. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-O6ACR2DX.js} +2 -2
  135. package/dist/bundle/meeting-combined-IWU5SPAH.js +26 -0
  136. package/dist/bundle/meeting-model-ILIUJECZ.js +26 -0
  137. package/dist/bundle/meeting-semantic-5DKRGZFS.js +23 -0
  138. package/dist/bundle/{meetings-WYCVHAIP.js → meetings-T2UY35DV.js} +43 -7
  139. package/dist/bundle/{node-IEVT2FSJ.js → node-MAVRAF4M.js} +2 -2
  140. package/dist/bundle/{node-sqlite-O4C6IWSM.js → node-sqlite-TFBQ5NDI.js} +8 -8
  141. package/dist/bundle/{oauth-6VXOUXSE.js → oauth-7IG5HWSY.js} +8 -8
  142. package/dist/bundle/{open-AMUIWV3Y.js → open-3R3N7L3X.js} +6 -6
  143. package/dist/bundle/openai-DD5I3DWC.js +28 -0
  144. package/dist/bundle/{output-file-VDOCYH2G.js → output-file-KKHHAYWF.js} +6 -6
  145. package/dist/bundle/{process-6Q23D3TO.js → process-OIO254NR.js} +1 -1
  146. package/dist/bundle/{program-CF2NKA2A.js → program-IBYRU76H.js} +428 -250
  147. package/dist/bundle/{prompt-N3UZE4ZR.js → prompt-LNEOO7PN.js} +6 -6
  148. package/dist/bundle/{recognize-I5F3K3CZ.js → recognize-2WYLT3PC.js} +5 -5
  149. package/dist/bundle/{remote-CJF5KMMY.js → remote-7EAJEIV7.js} +11 -11
  150. package/dist/bundle/{rerank-6WLY6MKY.js → rerank-DZBZ744F.js} +8 -8
  151. package/dist/bundle/run-log-CCIVRSHP.js +135 -0
  152. package/dist/bundle/{serve-FOQJ3WMX.js → serve-T3KQV5SS.js} +15 -15
  153. package/dist/bundle/{server-OEEGRSQD.js → server-2QQAQZ2J.js} +59 -49
  154. package/dist/bundle/server-OJQMPF2R.js +84 -0
  155. package/dist/bundle/{services-Q6SFESMS.js → services-DETAKMC3.js} +80 -54
  156. package/dist/bundle/{speech-PBVEIG4N.js → speech-HD57JNTK.js} +34 -18
  157. package/dist/bundle/{sqlite-runtime-IWR65V6I.js → sqlite-runtime-OCETZSEZ.js} +7 -7
  158. package/dist/bundle/{state-G54C2N6U.js → state-ZKVQ4DBI.js} +7 -7
  159. package/dist/bundle/{store-D5OLXIFW.js → store-7IZ2WMHF.js} +24 -20
  160. package/dist/bundle/{store-7EWMPTTW.js → store-GEAQ7V5R.js} +26 -22
  161. package/dist/bundle/store-connection-BALCZW7P.js +101 -0
  162. package/dist/bundle/store-maintenance-command-SBT4LDSI.js +76 -0
  163. package/dist/bundle/{streaming-PQEXKTE5.js → streaming-CLBAO3MG.js} +7 -7
  164. package/dist/bundle/{tokens-J7TFHLEG.js → tokens-WH73ZWFI.js} +10 -10
  165. package/dist/bundle/zm.js +9 -9
  166. package/dist/bundle/{zoom-app-SULPMVN4.js → zoom-app-ZDTYMJET.js} +8 -8
  167. package/dist/commands.d.ts.map +1 -1
  168. package/dist/commands.js +3 -0
  169. package/dist/commands.js.map +1 -1
  170. package/dist/first-screen.d.ts.map +1 -1
  171. package/dist/first-screen.js +3 -5
  172. package/dist/first-screen.js.map +1 -1
  173. package/dist/meeting-integration-commands.d.ts.map +1 -1
  174. package/dist/meeting-integration-commands.js +46 -28
  175. package/dist/meeting-integration-commands.js.map +1 -1
  176. package/dist/meeting-search-commands.d.ts.map +1 -1
  177. package/dist/meeting-search-commands.js +6 -5
  178. package/dist/meeting-search-commands.js.map +1 -1
  179. package/dist/meeting-source.d.ts.map +1 -1
  180. package/dist/meeting-source.js +15 -1
  181. package/dist/meeting-source.js.map +1 -1
  182. package/dist/permissions.d.ts +8 -4
  183. package/dist/permissions.d.ts.map +1 -1
  184. package/dist/permissions.js +25 -24
  185. package/dist/permissions.js.map +1 -1
  186. package/dist/program-bindings.d.ts.map +1 -1
  187. package/dist/program-bindings.js +10 -6
  188. package/dist/program-bindings.js.map +1 -1
  189. package/dist/program.d.ts +2 -1
  190. package/dist/program.d.ts.map +1 -1
  191. package/dist/program.js.map +1 -1
  192. package/dist/remote-meetings.d.ts +38 -8
  193. package/dist/remote-meetings.d.ts.map +1 -1
  194. package/dist/remote-meetings.js +52 -29
  195. package/dist/remote-meetings.js.map +1 -1
  196. package/dist/run.d.ts.map +1 -1
  197. package/dist/run.js +4 -2
  198. package/dist/run.js.map +1 -1
  199. package/dist/version.d.ts +1 -1
  200. package/dist/version.js +1 -1
  201. package/dist/zoom-app.d.ts.map +1 -1
  202. package/dist/zoom-app.js +1 -0
  203. package/dist/zoom-app.js.map +1 -1
  204. package/package.json +3 -3
  205. package/skills/zoom-cli/SKILL.md +2 -2
  206. package/dist/bundle/answer-policy-XCKC2LLN.js +0 -110
  207. package/dist/bundle/chunk-NU4FSSMN.js +0 -161
  208. package/dist/bundle/command-contract-OJYRKQHR.js +0 -41
  209. package/dist/bundle/config-UMEV24OE.js +0 -97
  210. package/dist/bundle/first-run-HNCD7U3B.js +0 -29
  211. package/dist/bundle/first-screen-374BBMO6.js +0 -39
  212. package/dist/bundle/openai-MEDN6FSK.js +0 -28
  213. package/dist/bundle/run-log-FKF4ZX4M.js +0 -124
  214. package/dist/bundle/server-BAGY5HEZ.js +0 -74
  215. package/dist/bundle/store-connection-34747SCC.js +0 -90
  216. package/dist/bundle/store-maintenance-command-QBO67F7Z.js +0 -65
  217. /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-VKE77B3F.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-JDTZCZ5K.js";
6
- import "./chunk-RBYVQE3S.js";
5
+ } from "./chunk-KHBSQROH.js";
6
+ import "./chunk-WD5OL5JB.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-IW245Q5B.js";
29
- import {
30
- emitReceipt
31
- } from "./chunk-X2FILY5F.js";
32
- import "./chunk-NU4FSSMN.js";
33
- import "./chunk-B6Q53CVA.js";
34
- import "./chunk-RABCFGT3.js";
35
- import "./chunk-LRCSDAYK.js";
28
+ } from "./chunk-7AFYZOHU.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-BY2YPKZZ.js";
57
+ } from "./chunk-CL6QAZGT.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-RQS3W4P6.js";
69
+ import "./chunk-7O7XM37N.js";
70
+ import {
71
+ emitReceipt
72
+ } from "./chunk-JFVZVPRW.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-2QRGJSKO.js";
84
+ import "./chunk-PM3MB3E7.js";
85
+ import "./chunk-MTH3JJHF.js";
86
+ import "./chunk-ZUMKZOHR.js";
87
+ import "./chunk-XC3MWABM.js";
64
88
  import {
65
89
  MEMO_SCENARIOS,
66
90
  SEARCHES_QUERY,
@@ -88,58 +112,27 @@ import {
88
112
  signInSteps,
89
113
  skillCommand as skillCommand2,
90
114
  upgradeCommand
91
- } from "./chunk-GPVSGZ4R.js";
92
- import "./chunk-F7K2V6OA.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-ELD5AC7Q.js";
104
- import "./chunk-7O7XM37N.js";
105
- import "./chunk-C5WQ57AB.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-ZMHZ6CQS.js";
117
- import "./chunk-6XNTELM5.js";
115
+ } from "./chunk-CJL5GHTQ.js";
116
+ import "./chunk-NPDPD2H3.js";
117
+ import "./chunk-VGERRRDC.js";
118
+ import "./chunk-NKKVVPL5.js";
119
+ import "./chunk-FDQE2CLT.js";
118
120
  import {
119
121
  allAnswer
120
- } from "./chunk-QEO3XTIE.js";
121
- import "./chunk-SEJBS7SI.js";
122
+ } from "./chunk-IJTBB23F.js";
122
123
  import {
123
124
  skillCommand
124
- } from "./chunk-EOZAJGB4.js";
125
- import "./chunk-3U3W6YY5.js";
125
+ } from "./chunk-SVJQRG5N.js";
126
+ import "./chunk-7CMYNW3W.js";
127
+ import "./chunk-ICZVSVTW.js";
128
+ import "./chunk-UGRGYLEI.js";
126
129
  import {
127
130
  commandPermissions
128
- } from "./chunk-PPM7UTCT.js";
129
- import "./chunk-7ZVWV33Z.js";
130
- import "./chunk-QXQUANWE.js";
131
- import "./chunk-NQQVNLO6.js";
131
+ } from "./chunk-LUAS73NT.js";
132
132
  import {
133
- sameConfigFolder,
134
- zmPaths
135
- } from "./chunk-2PYZTRRC.js";
136
- import "./chunk-IDGWBKMH.js";
137
- import "./chunk-VLK3X53X.js";
138
- import "./chunk-GU4FVTJV.js";
139
- import "./chunk-NL6AZ6S2.js";
140
- import "./chunk-HTQTIKWP.js";
141
- import "./chunk-V3UK6E5B.js";
142
- import "./chunk-PX4IMYVB.js";
133
+ pagingOf
134
+ } from "./chunk-NJJEUG4C.js";
135
+ import "./chunk-W7UCN7MF.js";
143
136
  import {
144
137
  NativeRecordingPartialStore,
145
138
  NativeRecordingPublication,
@@ -156,32 +149,48 @@ import {
156
149
  unfilteredQuery,
157
150
  validateMeetingPreparationRequest,
158
151
  withQuery
159
- } from "./chunk-P4ZQQLZF.js";
160
- import "./chunk-Y5J5CAG2.js";
152
+ } from "./chunk-LWMDLXEO.js";
153
+ import "./chunk-7SNU7RFU.js";
154
+ import "./chunk-6YCFDDRO.js";
161
155
  import {
162
156
  nativeWriterLeaseStore,
163
157
  openOrdinaryFile,
164
158
  syncDirectory,
165
159
  writeFileAtomic
166
- } from "./chunk-W2AC2RAG.js";
160
+ } from "./chunk-LYVHQ6DJ.js";
161
+ import "./chunk-5C6CRSEM.js";
162
+ import "./chunk-5C5UEKUJ.js";
163
+ import "./chunk-TY4FFK2P.js";
164
+ import "./chunk-635GRAO5.js";
167
165
  import {
168
166
  latestVersion,
169
167
  runUpdate,
170
168
  updateNotice
171
- } from "./chunk-FT7X74RT.js";
172
- import "./chunk-FIVFP53N.js";
173
- import "./chunk-WUWF4EXZ.js";
174
- import "./chunk-532H3KT3.js";
175
- import "./chunk-JTYWSXJG.js";
176
- import "./chunk-4XDWV6VJ.js";
177
- import "./chunk-NE4GYKQA.js";
178
- import "./chunk-T25PR26L.js";
179
- import "./chunk-XUHQ7DVT.js";
180
- import "./chunk-MHXZ62CU.js";
181
- import "./chunk-DQBLDZ7M.js";
169
+ } from "./chunk-IS6MUPN2.js";
170
+ import "./chunk-YVI5SQPY.js";
171
+ import {
172
+ sameConfigFolder,
173
+ zmPaths
174
+ } from "./chunk-NPIVV52M.js";
175
+ import "./chunk-SY5NGYKA.js";
176
+ import "./chunk-5A5W322G.js";
177
+ import "./chunk-CUJJZJ4R.js";
178
+ import "./chunk-IUOKIZZN.js";
179
+ import "./chunk-B7XFDMFV.js";
180
+ import "./chunk-HTQTIKWP.js";
181
+ import "./chunk-YFN5A7OP.js";
182
+ import "./chunk-4Z4VOQRR.js";
183
+ import "./chunk-DCEQIKFD.js";
184
+ import "./chunk-QE4L2QQZ.js";
185
+ import "./chunk-T4CI3YXW.js";
186
+ import "./chunk-JQUYHPQD.js";
187
+ import "./chunk-7S3N5CTA.js";
188
+ import "./chunk-ADJIYY33.js";
189
+ import "./chunk-36SI35XZ.js";
182
190
  import {
183
191
  Argument,
184
192
  CommanderError,
193
+ DEFAULT_CONFIG,
185
194
  FETCH,
186
195
  LOCAL_READ,
187
196
  LOCAL_WRITE,
@@ -211,17 +220,20 @@ import {
211
220
  snakeKeys,
212
221
  writesNewFileOnlyWith,
213
222
  writesOwnerFiles
214
- } from "./chunk-QBKKTTA3.js";
215
- import "./chunk-ZBYKCVSV.js";
216
- import "./chunk-DUPFAY35.js";
217
- import "./chunk-HKPNQL52.js";
223
+ } from "./chunk-DDUNPLET.js";
224
+ import "./chunk-LMZUC4CS.js";
225
+ import "./chunk-GHBDYYPO.js";
226
+ import "./chunk-OOIU36FA.js";
227
+ import "./chunk-MCLZ74II.js";
228
+ import "./chunk-375BH5OD.js";
218
229
  import {
219
230
  COMMAND_PATH_KEY,
220
231
  assertOverridesTighten,
221
232
  permissionOverrides
222
- } from "./chunk-P6MQ6FS4.js";
223
- import "./chunk-WQOGHND4.js";
224
- import "./chunk-SR5X7YKB.js";
233
+ } from "./chunk-2QDD6S2R.js";
234
+ import "./chunk-6JRBMNRN.js";
235
+ import "./chunk-STNZQBY4.js";
236
+ import "./chunk-SP5OMHOO.js";
225
237
  import {
226
238
  hostFetch,
227
239
  providerWaitMs,
@@ -229,45 +241,49 @@ import {
229
241
  retryableStatus,
230
242
  retrying,
231
243
  statusToCode
232
- } from "./chunk-MAE5UGRQ.js";
233
- import "./chunk-RKI4BGWG.js";
244
+ } from "./chunk-XCA5N63N.js";
234
245
  import {
235
246
  speechModel
236
- } from "./chunk-FBYGBR4Q.js";
237
- import "./chunk-T4FMXDDV.js";
238
- import "./chunk-2Q4CB4EI.js";
239
- import "./chunk-XCJGDPMN.js";
240
- import "./chunk-PCJRHC5Y.js";
241
- import "./chunk-K5E5MB4C.js";
242
- import "./chunk-4YNUQGDP.js";
247
+ } from "./chunk-CZ6OO66B.js";
248
+ import "./chunk-3TLQF3DN.js";
249
+ import "./chunk-BOJCRTQW.js";
250
+ import "./chunk-OXXJW3A5.js";
251
+ import "./chunk-7ILGYNWX.js";
252
+ import "./chunk-FRC5QIPQ.js";
253
+ import "./chunk-Q7ZW7XAX.js";
254
+ import "./chunk-7DTU7QZP.js";
255
+ import "./chunk-A6LK2W5J.js";
256
+ import "./chunk-ZRNNMBPC.js";
243
257
  import {
244
258
  currentAttempt,
245
259
  withAttempt
246
- } from "./chunk-IO3BQ6JU.js";
247
- import "./chunk-3YKAFLXY.js";
260
+ } from "./chunk-MIG4RLDB.js";
261
+ import "./chunk-5KHCFIWI.js";
248
262
  import {
249
263
  formatReference,
250
264
  isFolderProvider
251
- } from "./chunk-IMDTC4MD.js";
252
- import "./chunk-VUPWDCYV.js";
253
- import "./chunk-L5UILROP.js";
254
- import "./chunk-3URYKAJP.js";
265
+ } from "./chunk-QUGESVOE.js";
266
+ import "./chunk-PO4RZ4XZ.js";
267
+ import "./chunk-XVHDT4CO.js";
268
+ import "./chunk-E3UPMPUV.js";
269
+ import "./chunk-MMAZUJBO.js";
255
270
  import {
256
271
  CLIENT_ID_MISSING,
257
272
  VERSION,
258
273
  ZM
259
- } from "./chunk-F6RB5FHZ.js";
274
+ } from "./chunk-ECRFXQHA.js";
260
275
  import {
261
276
  installerOf
262
- } from "./chunk-M4OP5ASJ.js";
277
+ } from "./chunk-ZZ32DXTH.js";
263
278
  import "./chunk-D72URWJE.js";
264
- import "./chunk-A3Q3PG54.js";
265
- import "./chunk-MNVT7EJS.js";
266
- import "./chunk-NQLL4KRN.js";
267
- import "./chunk-OUM4ZO53.js";
279
+ import "./chunk-SFPUSEOT.js";
280
+ import "./chunk-JMU3E2WA.js";
281
+ import "./chunk-VJ2TLU7R.js";
282
+ import "./chunk-H2EVYY5Z.js";
268
283
  import {
269
284
  MEETING_COUNTS_GROUPINGS,
270
285
  RecordingSyncError,
286
+ createMeetingManagement,
271
287
  createMeetingSeriesInventoryReader,
272
288
  createUpcomingMeetingReader,
273
289
  dispatchMeetingMutation,
@@ -294,14 +310,14 @@ import {
294
310
  validateMeetingChange,
295
311
  validateMeetingContextChange,
296
312
  watchMeetingIngestion
297
- } from "./chunk-3YRPDNWK.js";
313
+ } from "./chunk-T6RSYDFA.js";
298
314
  import {
299
315
  dateRange,
300
316
  defineQuery,
301
317
  queryFieldsOf,
302
318
  timezoneOf
303
- } from "./chunk-3HTJBGNP.js";
304
- import "./chunk-XWBPP2HX.js";
319
+ } from "./chunk-IZMRQ3MV.js";
320
+ import "./chunk-VKE77B3F.js";
305
321
  import {
306
322
  createDeadline,
307
323
  createOutputBuffer,
@@ -309,7 +325,7 @@ import {
309
325
  fieldsOf,
310
326
  projectFields,
311
327
  realSleep
312
- } from "./chunk-HNWDEDMU.js";
328
+ } from "./chunk-QAGECFHL.js";
313
329
  import {
314
330
  array,
315
331
  boolean,
@@ -322,13 +338,13 @@ import {
322
338
  safeParse,
323
339
  string,
324
340
  transform
325
- } from "./chunk-4RJL32PF.js";
341
+ } from "./chunk-FS5HPXQN.js";
326
342
  import "./chunk-Y5E2WNWB.js";
327
343
  import {
328
344
  CliError,
329
345
  isCliError
330
- } from "./chunk-EA2OB75T.js";
331
- import "./chunk-HCZYJMBP.js";
346
+ } from "./chunk-4QNW4NK6.js";
347
+ import "./chunk-KYKW2W6X.js";
332
348
  import {
333
349
  __name
334
350
  } from "./chunk-ZVVMGPBJ.js";
@@ -339,12 +355,10 @@ var SECTIONS = [
339
355
  [["events"], "read"],
340
356
  [["recordings"], "read"],
341
357
  [["recordings", "schedule"], "automate"],
342
- [["remote-meetings"], "read"],
343
- [["remote-meetings", "create"], "write"],
344
- [["remote-meetings", "update"], "write"],
345
- [["remote-meetings", "cancel"], "write"],
358
+ [["meetings", "create"], "write"],
359
+ [["meetings", "update"], "write"],
360
+ [["meetings", "cancel"], "write"],
346
361
  [["meetings", "transcribe"], "write"],
347
- [["meetings", "update"], "organise"],
348
362
  [["meetings", "link"], "organise"],
349
363
  [["batch"], "read"],
350
364
  [["session"], "setup"],
@@ -1502,13 +1516,6 @@ var archiveScope = /* @__PURE__ */ __name((deps, options) => {
1502
1516
  return { account, resume };
1503
1517
  }, "archiveScope");
1504
1518
  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");
1505
- 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");
1506
- 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");
1507
- var mutation = /* @__PURE__ */ __name((options, deps) => {
1508
- if (options.yes && !options.dryRun)
1509
- deps.api();
1510
- return { apply: options.yes, dryRun: options.dryRun, signal: deps.signal(), occurrenceId: options.occurrenceId };
1511
- }, "mutation");
1512
1519
  var localZone = /* @__PURE__ */ __name((given) => {
1513
1520
  try {
1514
1521
  return timezoneOf(given);
@@ -1611,24 +1618,6 @@ var addArchiveCommands = /* @__PURE__ */ __name((program, deps) => {
1611
1618
  apply: options.yes === true && !options.dryRun,
1612
1619
  signal: deps.signal()
1613
1620
  })))), "zm personal recordings archive recover ./zoom-archive --dry-run --json", LOCAL_WRITE);
1614
- const remote = annotate(program.command("remote-meetings"), { effects: NO_EFFECTS }).description("upcoming Zoom meetings; stored meeting reads remain under meetings");
1615
- const remoteQuery = unfilteredQuery("zoom_remote_meeting", ZOOM_ANSWER_ENTITIES["remote-meetings list"].schema);
1616
- label(withQuery(remote.command("list"), remoteQuery).description("list upcoming meetings").action(async (words) => {
1617
- listQuery(typedQuery(words), remoteQuery, "remote-meetings list");
1618
- deps.api();
1619
- deps.output(wholeList("remote-meetings list", await deps.remoteMeetings().list({ signal: deps.signal() })));
1620
- }), "zm personal remote-meetings list --dry-run --json", REMOTE_READ);
1621
- label(remote.command("show").description("show an upcoming meeting").argument("<meeting>", "positive numeric Zoom meeting id").action(async (id) => {
1622
- deps.api();
1623
- deps.output(itemOf(await deps.remoteMeetings().show(id, { signal: deps.signal() })));
1624
- }), "zm personal remote-meetings show 123456789 --dry-run --json", REMOTE_READ);
1625
- label(remote.command("invitation").description("read invitation text").argument("<meeting>", "positive numeric Zoom meeting id").action(async (id) => {
1626
- deps.api();
1627
- deps.output(itemOf(await deps.remoteMeetings().invitation(id, { signal: deps.signal() })));
1628
- }), "zm personal remote-meetings invitation 123456789 --dry-run --json", REMOTE_READ);
1629
- 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);
1630
- 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);
1631
- 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);
1632
1621
  }, "addArchiveCommands");
1633
1622
 
1634
1623
  // dist/archive-transcripts.js
@@ -1750,7 +1739,7 @@ var searchArchiveTranscripts = /* @__PURE__ */ __name(async (destination, query,
1750
1739
  return { items: matches, page: 1, limit, hasMore: false };
1751
1740
  }, "searchArchiveTranscripts");
1752
1741
 
1753
- // node_modules/.pnpm/@wirecat+cli-base@0.99.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
1742
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_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
1754
1743
  var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
1755
1744
  var INTEGER = /^-?\d+$/;
1756
1745
  var INT64_MIN = -(2n ** 63n);
@@ -1964,12 +1953,49 @@ var json = /* @__PURE__ */ __name((value) => {
1964
1953
  }, "json");
1965
1954
  var extras = /* @__PURE__ */ __name((row, keys2) => Object.fromEntries(Object.entries(row).filter(([key]) => !keys2.includes(key)).map(([key, value]) => [key, json(value)])), "extras");
1966
1955
  var encodeUuid = /* @__PURE__ */ __name((uuid) => uuid.startsWith("/") || uuid.includes("//") ? encodeURIComponent(encodeURIComponent(uuid)) : encodeURIComponent(uuid), "encodeUuid");
1956
+ var seriesIdOf = /* @__PURE__ */ __name((row) => {
1957
+ if (!(string2(row.id) !== null || typeof row.id === "number" && Number.isSafeInteger(row.id) && row.id > 0))
1958
+ throw new CliError("invalid_response", "Zoom meeting is missing its series id");
1959
+ return String(row.id);
1960
+ }, "seriesIdOf");
1967
1961
  var requiredString = /* @__PURE__ */ __name((value) => {
1968
1962
  const text2 = string2(value);
1969
1963
  if (text2 === null)
1970
1964
  throw new CliError("invalid_response", "Zoom response is missing a required field");
1971
1965
  return text2;
1972
1966
  }, "requiredString");
1967
+ var PAST_MEETING = "meeting:read:past_meeting";
1968
+ var DAY = 864e5;
1969
+ var FIND_SPAN = 30 * DAY;
1970
+ var FIND_REACH = 183 * DAY;
1971
+ var FIND_PAGE = 300;
1972
+ var FIND_SERIES = 20;
1973
+ var findCursorOf = /* @__PURE__ */ __name((cursor) => {
1974
+ let value;
1975
+ try {
1976
+ value = JSON.parse(cursor);
1977
+ } catch {
1978
+ throw new CliError("validation_error", "this Zoom page cursor is not one zm gave");
1979
+ }
1980
+ if (!value || typeof value !== "object" || Array.isArray(value))
1981
+ throw new CliError("validation_error", "this Zoom page cursor is not one zm gave");
1982
+ const row = value;
1983
+ const whole = [row.floor, row.end, row.skip].every((value2) => Number.isSafeInteger(value2));
1984
+ if (!whole || row.token !== null && !string2(row.token))
1985
+ throw new CliError("validation_error", "this Zoom page cursor is not one zm gave");
1986
+ return {
1987
+ floor: row.floor,
1988
+ end: row.end,
1989
+ token: row.token ?? null,
1990
+ skip: row.skip
1991
+ };
1992
+ }, "findCursorOf");
1993
+ var zoomRange = /* @__PURE__ */ __name((start, end2) => ({
1994
+ from: new Date(start).toISOString().slice(0, 10),
1995
+ to: new Date(end2).toISOString().slice(0, 10),
1996
+ timezone: "UTC"
1997
+ }), "zoomRange");
1998
+ var ZOOM_FINDS = Object.freeze({ fields: {}, upcoming: false });
1973
1999
  var ZoomApiSource = class {
1974
2000
  static {
1975
2001
  __name(this, "ZoomApiSource");
@@ -2020,10 +2046,10 @@ var ZoomApiSource = class {
2020
2046
  // A listed row's uuid is the meeting's, not the instance that ran, for every type: participants,
2021
2047
  // transcript and summary answer only for the instance uuid. This runs before the pull loop's
2022
2048
  // per-meeting guard, so a series Zoom no longer knows must not fail the whole sync.
2023
- async instances(seriesId) {
2049
+ async instances(seriesId, range) {
2024
2050
  let body;
2025
2051
  try {
2026
- body = await this.request(`/past_meetings/${encodeURIComponent(seriesId)}/instances`, "meeting:read:list_past_instances");
2052
+ body = await this.request(`/past_meetings/${encodeURIComponent(seriesId)}/instances${range ? `?${range}` : ""}`, "meeting:read:list_past_instances");
2027
2053
  } catch (error) {
2028
2054
  if (isCliError(error) && error.code === statusToCode(404))
2029
2055
  return [];
@@ -2033,6 +2059,60 @@ var ZoomApiSource = class {
2033
2059
  throw new CliError("invalid_response", "Zoom returned invalid occurrences");
2034
2060
  return body.meetings.map(object);
2035
2061
  }
2062
+ /** A listed series' occurrences that ran, each by its instance uuid, the id `meetings()`, `find` and `get` share. */
2063
+ occurrences(row, instances, keep, seen) {
2064
+ const seriesId = seriesIdOf(row);
2065
+ const recurring = row.type === 3 || row.type === 8;
2066
+ const meetings = [];
2067
+ for (const instance of instances) {
2068
+ const doubt = { zoneless: false };
2069
+ const startedAt = this.time(instance.start_time, doubt);
2070
+ const id = requiredString(instance.uuid);
2071
+ if (startedAt === null)
2072
+ throw new CliError("invalid_response", "Zoom occurrence is missing its start time");
2073
+ if (!keep(startedAt) || seen.has(id))
2074
+ continue;
2075
+ seen.add(id);
2076
+ const ended = instance.end_time === void 0 ? null : this.time(instance.end_time, doubt);
2077
+ const rawDuration = recurring ? null : number(row.duration);
2078
+ const end2 = ended ?? (rawDuration !== null && rawDuration >= 0 ? startedAt + rawDuration * 6e4 : Number.NaN);
2079
+ const endedAt = Number.isFinite(end2) && Math.abs(end2) <= 864e13 ? new Date(end2).toISOString() : null;
2080
+ meetings.push({
2081
+ series: {
2082
+ id: seriesId,
2083
+ provider: "zoom",
2084
+ title: string2(row.topic),
2085
+ kind: recurring ? "recurring" : row.type === 1 ? "instant" : "scheduled",
2086
+ joinUrl: string2(row.join_url) ?? void 0,
2087
+ recurrence: json(row.recurrence)
2088
+ },
2089
+ occurrence: {
2090
+ id,
2091
+ seriesId,
2092
+ title: string2(row.topic),
2093
+ startedAt: new Date(startedAt).toISOString(),
2094
+ endedAt
2095
+ },
2096
+ description: string2(row.agenda),
2097
+ joinUrl: string2(row.join_url),
2098
+ timezone: string2(row.timezone),
2099
+ metadata: withIssue(extras(row, [
2100
+ "id",
2101
+ "uuid",
2102
+ "topic",
2103
+ "type",
2104
+ "start_time",
2105
+ "end_time",
2106
+ "duration",
2107
+ "join_url",
2108
+ "timezone",
2109
+ "agenda",
2110
+ "recurrence"
2111
+ ]), doubt.zoneless)
2112
+ });
2113
+ }
2114
+ return meetings;
2115
+ }
2036
2116
  async meetings(since2) {
2037
2117
  const lower = Date.parse(since2);
2038
2118
  if (!Number.isFinite(lower))
@@ -2040,60 +2120,77 @@ var ZoomApiSource = class {
2040
2120
  const series = await this.pages("/users/me/meetings?type=previous_meetings", "meetings", "meeting:read:list_meetings");
2041
2121
  const meetings = [];
2042
2122
  const seen = /* @__PURE__ */ new Set();
2043
- for (const row of series) {
2044
- if (!(string2(row.id) !== null || typeof row.id === "number" && Number.isSafeInteger(row.id) && row.id > 0))
2045
- throw new CliError("invalid_response", "Zoom meeting is missing its series id");
2046
- const seriesId = String(row.id);
2047
- const recurring = row.type === 3 || row.type === 8;
2048
- const instances = await this.instances(seriesId);
2049
- for (const instance of instances) {
2050
- const doubt = { zoneless: false };
2051
- const startedAt = this.time(instance.start_time, doubt);
2052
- const id = requiredString(instance.uuid);
2053
- if (startedAt === null)
2054
- throw new CliError("invalid_response", "Zoom occurrence is missing its start time");
2055
- if (startedAt < lower || seen.has(id))
2056
- continue;
2057
- seen.add(id);
2058
- const rawDuration = recurring ? null : number(row.duration);
2059
- const end2 = rawDuration !== null && rawDuration >= 0 ? startedAt + rawDuration * 6e4 : Number.NaN;
2060
- const endedAt = Number.isFinite(end2) && Math.abs(end2) <= 864e13 ? new Date(end2).toISOString() : null;
2061
- meetings.push({
2062
- series: {
2063
- id: seriesId,
2064
- provider: "zoom",
2065
- title: string2(row.topic),
2066
- kind: recurring ? "recurring" : row.type === 1 ? "instant" : "scheduled",
2067
- joinUrl: string2(row.join_url) ?? void 0,
2068
- recurrence: json(row.recurrence)
2069
- },
2070
- occurrence: {
2071
- id,
2072
- seriesId,
2073
- title: string2(row.topic),
2074
- startedAt: new Date(startedAt).toISOString(),
2075
- endedAt
2076
- },
2077
- description: string2(row.agenda),
2078
- joinUrl: string2(row.join_url),
2079
- timezone: string2(row.timezone),
2080
- metadata: withIssue(extras(row, [
2081
- "id",
2082
- "uuid",
2083
- "topic",
2084
- "type",
2085
- "start_time",
2086
- "duration",
2087
- "join_url",
2088
- "timezone",
2089
- "agenda",
2090
- "recurrence"
2091
- ]), doubt.zoneless)
2092
- });
2093
- }
2094
- }
2123
+ for (const row of series)
2124
+ for (const meeting2 of this.occurrences(row, await this.instances(seriesIdOf(row)), (at) => at >= lower, seen))
2125
+ meetings.push(meeting2);
2095
2126
  return meetings;
2096
2127
  }
2128
+ finds = ZOOM_FINDS;
2129
+ /**
2130
+ * One stretch of at most `FIND_SPAN` of `window`, newest first, and the instances of at most `FIND_SERIES` of its
2131
+ * series: 1 + `FIND_SERIES` requests. The cursor carries on in the same stretch, then the one before it; without a
2132
+ * lower bound, back as far as Zoom lists (`FIND_REACH`). cli-core's page cap then says the answer is not complete.
2133
+ */
2134
+ async find(window, _terms, cursor) {
2135
+ const at = cursor === null ? void 0 : findCursorOf(cursor);
2136
+ const end2 = at?.end ?? window.to ?? Date.now();
2137
+ const floor = at?.floor ?? window.from ?? end2 - FIND_REACH;
2138
+ const start = Math.max(floor, end2 - FIND_SPAN);
2139
+ const range = zoomRange(start, end2);
2140
+ const query = new URLSearchParams({ type: "previous_meetings", page_size: String(FIND_PAGE), ...range });
2141
+ if (at?.token)
2142
+ query.set("next_page_token", at.token);
2143
+ const body = await this.request(`/users/me/meetings?${query}`, "meeting:read:list_meetings");
2144
+ if (!body || !Array.isArray(body.meetings))
2145
+ throw new CliError("invalid_response", "Zoom returned an invalid list");
2146
+ const rows = body.meetings.map(object);
2147
+ const skip = at?.skip ?? 0;
2148
+ const taken = rows.slice(skip, skip + FIND_SERIES);
2149
+ const inWindow = /* @__PURE__ */ __name((time) => (window.from === void 0 || time >= window.from) && (window.to === void 0 || time <= window.to), "inWindow");
2150
+ const seen = /* @__PURE__ */ new Set();
2151
+ const meetings = [];
2152
+ const ranges = new URLSearchParams({ from: range.from, to: range.to });
2153
+ for (const row of taken)
2154
+ for (const meeting2 of this.occurrences(row, await this.instances(seriesIdOf(row), ranges), inWindow, seen))
2155
+ meetings.push({ meeting: meeting2 });
2156
+ const token = string2(body.next_page_token) || null;
2157
+ if (token !== null && token === at?.token)
2158
+ throw new CliError("invalid_response", "Zoom repeated a pagination token");
2159
+ 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;
2160
+ return { meetings, next: next && JSON.stringify(next) };
2161
+ }
2162
+ /**
2163
+ * One meeting that ran, by its instance uuid or by its meeting number (then its latest instance): always answered
2164
+ * by the instance uuid, so `show <number>` keeps the row sync writes. `null` for one that never ran.
2165
+ */
2166
+ async get(id) {
2167
+ const given = id.trim();
2168
+ if (!given)
2169
+ throw new CliError("validation_error", "name a Zoom meeting by its uuid or number");
2170
+ const { scopes } = await this.tokens.tokens();
2171
+ if (!["", ":admin", ":master"].some((grant) => scopes.includes(`${PAST_MEETING}${grant}`)))
2172
+ throw new CliError("permission_error", `Zoom scope ${PAST_MEETING} is missing; add it to the app and run zm <profile> session start again`);
2173
+ const body = await this.request(`/past_meetings/${encodeUuid(given)}`, PAST_MEETING, 3001);
2174
+ if (!body)
2175
+ return null;
2176
+ const [found] = this.occurrences(body, [body], () => true, /* @__PURE__ */ new Set());
2177
+ if (!found)
2178
+ return null;
2179
+ const meeting2 = { ...found, series: null };
2180
+ const uuid = meeting2.occurrence.id;
2181
+ const [participants, transcript] = await Promise.all([this.participants(uuid), this.transcriptOnShow(uuid)]);
2182
+ return { meeting: meeting2, participants, ...transcript === void 0 ? {} : { transcript } };
2183
+ }
2184
+ /** A transcript Zoom is still making is left unread here, so `show` keeps the meeting and a later sync reads it. */
2185
+ async transcriptOnShow(uuid) {
2186
+ try {
2187
+ return await this.transcript(uuid);
2188
+ } catch (error) {
2189
+ if (isCliError(error) && error.code === "provider_error")
2190
+ return void 0;
2191
+ throw error;
2192
+ }
2193
+ }
2097
2194
  async participants(id) {
2098
2195
  const rows = await this.pages(`/past_meetings/${encodeUuid(id)}/participants`, "participants", "meeting:read:list_past_participants");
2099
2196
  const participants = /* @__PURE__ */ new Map();
@@ -2798,6 +2895,8 @@ var configuredMeetingSource = /* @__PURE__ */ __name(({ deps, getConfig, tokens,
2798
2895
  })();
2799
2896
  return activeSource;
2800
2897
  }, "getSource");
2898
+ const live = /* @__PURE__ */ __name((name) => deps.source ? deps.source[name] !== void 0 : getConfig().source === "api", "live");
2899
+ const ported = /* @__PURE__ */ __name(async () => await getSource(), "ported");
2801
2900
  const source = {
2802
2901
  get provider() {
2803
2902
  return deps.source?.provider ?? "zoom";
@@ -2825,6 +2924,16 @@ var configuredMeetingSource = /* @__PURE__ */ __name(({ deps, getConfig, tokens,
2825
2924
  },
2826
2925
  async files(id) {
2827
2926
  return (await getSource()).files(id);
2927
+ },
2928
+ // Only the API reads Zoom live; a folder of downloaded files has no meeting that is not in it.
2929
+ get finds() {
2930
+ return deps.source ? deps.source.finds : getConfig().source === "api" ? ZOOM_FINDS : void 0;
2931
+ },
2932
+ get find() {
2933
+ return live("find") ? async (window, terms, cursor) => (await ported()).find(window, terms, cursor) : void 0;
2934
+ },
2935
+ get get() {
2936
+ return live("get") ? async (id) => (await ported()).get(id) : void 0;
2828
2937
  }
2829
2938
  };
2830
2939
  return {
@@ -3565,18 +3674,18 @@ var normalized = /* @__PURE__ */ __name((value) => {
3565
3674
  joinUrl: string2(row.join_url)
3566
3675
  };
3567
3676
  }, "normalized");
3568
- var changeBody = /* @__PURE__ */ __name((change2, create) => {
3569
- if (!change2 || Object.keys(change2).some((key) => !["topic", "startTime", "durationMinutes", "timezone", "agenda", "type"].includes(key)))
3677
+ var changeBody = /* @__PURE__ */ __name((change, create) => {
3678
+ if (!change || Object.keys(change).some((key) => !["topic", "startTime", "durationMinutes", "timezone", "agenda", "type"].includes(key)))
3570
3679
  throw new CliError("validation_error", "unsupported meeting change field");
3571
- if (change2.type !== void 0 && change2.type !== 1 && change2.type !== 2)
3680
+ if (change.type !== void 0 && change.type !== 1 && change.type !== 2)
3572
3681
  throw new CliError("validation_error", "only instant or scheduled meeting types are supported");
3573
3682
  const neutral = {
3574
- ...change2.topic !== void 0 ? { title: change2.topic } : {},
3575
- ...change2.type !== void 0 ? { kind: change2.type === 1 ? "instant" : "scheduled" } : {},
3576
- ...change2.startTime !== void 0 ? { startTime: change2.startTime } : {},
3577
- ...change2.durationMinutes !== void 0 ? { durationMinutes: change2.durationMinutes } : {},
3578
- ...change2.timezone !== void 0 ? { timezone: change2.timezone } : {},
3579
- ...change2.agenda !== void 0 ? { agenda: change2.agenda } : {}
3683
+ ...change.topic !== void 0 ? { title: change.topic } : {},
3684
+ ...change.type !== void 0 ? { kind: change.type === 1 ? "instant" : "scheduled" } : {},
3685
+ ...change.startTime !== void 0 ? { startTime: change.startTime } : {},
3686
+ ...change.durationMinutes !== void 0 ? { durationMinutes: change.durationMinutes } : {},
3687
+ ...change.timezone !== void 0 ? { timezone: change.timezone } : {},
3688
+ ...change.agenda !== void 0 ? { agenda: change.agenda } : {}
3580
3689
  };
3581
3690
  const validated = validateMeetingChange(neutral, create);
3582
3691
  const body = {
@@ -3597,31 +3706,6 @@ var ZoomRemoteMeetings = class {
3597
3706
  constructor(tokens, fetcher, options = {}) {
3598
3707
  this.remote = new ZoomRemote(tokens, fetcher, options);
3599
3708
  }
3600
- async list(options = {}) {
3601
- const signal = operationSignal(options.signal);
3602
- const query = new URLSearchParams({ type: "upcoming", page_size: "100" });
3603
- const seen = /* @__PURE__ */ new Set();
3604
- const result = /* @__PURE__ */ new Map();
3605
- for (; ; ) {
3606
- const body = await this.remote.request(`/users/me/meetings?${query}`, "meeting:read:list_meetings", { signal });
3607
- if (!Array.isArray(body.meetings))
3608
- throw new CliError("invalid_response", "Zoom returned an invalid meeting list");
3609
- for (const row of body.meetings) {
3610
- const item = normalized(row);
3611
- result.set(item.id, item);
3612
- }
3613
- const next = string2(body.next_page_token);
3614
- if (!next)
3615
- return [...result.values()];
3616
- if (seen.has(next))
3617
- throw new CliError("invalid_response", "Zoom repeated a pagination token");
3618
- seen.add(next);
3619
- query.set("next_page_token", next);
3620
- }
3621
- }
3622
- async show(id, options = {}) {
3623
- return normalized(await this.remote.request(zoomMeetingPath(id), "meeting:read:meeting", options));
3624
- }
3625
3709
  async invitation(id, options = {}) {
3626
3710
  const body = await this.remote.request(`${zoomMeetingPath(id)}/invitation`, "meeting:read:invitation", options);
3627
3711
  return { id, invitation: required(body.invitation) };
@@ -3649,11 +3733,11 @@ var ZoomRemoteMeetings = class {
3649
3733
  result.meeting = outcome.value;
3650
3734
  return result;
3651
3735
  }
3652
- create(change2, options = {}) {
3653
- return this.mutate("create", { method: "POST", path: "/users/me/meetings", body: changeBody(change2, true) }, "meeting:write:meeting", options);
3736
+ create(change, options = {}) {
3737
+ return this.mutate("create", { method: "POST", path: "/users/me/meetings", body: changeBody(change, true) }, "meeting:write:meeting", options);
3654
3738
  }
3655
- update(id, change2, options = {}) {
3656
- return this.mutate("update", { method: "PATCH", path: zoomMeetingPath(id), body: changeBody(change2, false) }, "meeting:update:meeting", options);
3739
+ update(id, change, options = {}) {
3740
+ return this.mutate("update", { method: "PATCH", path: zoomMeetingPath(id), body: changeBody(change, false) }, "meeting:update:meeting", options);
3657
3741
  }
3658
3742
  cancel(id, options = {}) {
3659
3743
  const path = zoomMeetingPath(id);
@@ -3663,6 +3747,75 @@ var ZoomRemoteMeetings = class {
3663
3747
  return this.mutate("cancel", { method: "DELETE", path: `${path}${query}` }, "meeting:delete:meeting", options);
3664
3748
  }
3665
3749
  };
3750
+ var managedMeeting = /* @__PURE__ */ __name((meeting2) => ({
3751
+ id: meeting2.id,
3752
+ title: meeting2.title,
3753
+ kind: meeting2.type === 1 ? "instant" : meeting2.type === 2 ? "scheduled" : null,
3754
+ startTime: meeting2.startedAt,
3755
+ durationMinutes: meeting2.durationMinutes,
3756
+ timezone: meeting2.timezone,
3757
+ agenda: meeting2.agenda,
3758
+ joinUrl: meeting2.joinUrl
3759
+ }), "managedMeeting");
3760
+ var zoomChange = /* @__PURE__ */ __name((change) => ({
3761
+ ...change.title !== void 0 ? { topic: change.title } : {},
3762
+ ...change.kind !== void 0 ? { type: change.kind === "instant" ? 1 : 2 } : {},
3763
+ ...change.startTime !== void 0 ? { startTime: change.startTime } : {},
3764
+ ...change.durationMinutes !== void 0 ? { durationMinutes: change.durationMinutes } : {},
3765
+ ...change.timezone !== void 0 ? { timezone: change.timezone } : {},
3766
+ ...change.agenda !== void 0 ? { agenda: change.agenda } : {}
3767
+ }), "zoomChange");
3768
+ var ZOOM_FIELDS = { fields: ["title", "startTime", "durationMinutes", "timezone", "agenda"] };
3769
+ var createZoomMeetingManagement = /* @__PURE__ */ __name((remote, account) => createMeetingManagement({ provider: "zoom", account }, {
3770
+ fields: { create: ZOOM_FIELDS, update: ZOOM_FIELDS },
3771
+ invitation: /* @__PURE__ */ __name((id, { signal }) => remote.invitation(id, { signal }), "invitation"),
3772
+ create: /* @__PURE__ */ __name(async (change, { signal }) => {
3773
+ const receipt = await remote.create({ ...zoomChange(change), type: 2 }, { apply: true, signal });
3774
+ if (!receipt.meeting)
3775
+ throw new CliError("outcome_unknown", "Zoom did not acknowledge the created meeting");
3776
+ return managedMeeting(receipt.meeting);
3777
+ }, "create"),
3778
+ update: /* @__PURE__ */ __name(async (id, change, { signal }) => {
3779
+ await remote.update(id, zoomChange(change), { apply: true, signal });
3780
+ }, "update"),
3781
+ cancel: /* @__PURE__ */ __name(async (id, { signal, occurrenceId }) => {
3782
+ await remote.cancel(id, { apply: true, signal, occurrenceId });
3783
+ }, "cancel")
3784
+ }), "createZoomMeetingManagement");
3785
+ var zoomMeetingManagement = /* @__PURE__ */ __name((open2) => {
3786
+ const declared = createZoomMeetingManagement({
3787
+ invitation: unbound,
3788
+ create: unbound,
3789
+ update: unbound,
3790
+ cancel: unbound
3791
+ }, "unbound");
3792
+ return {
3793
+ ...declared,
3794
+ invitation: /* @__PURE__ */ __name((id, options) => open2().invitation(id, options), "invitation"),
3795
+ create: /* @__PURE__ */ __name((change, options) => open2().create(change, options), "create"),
3796
+ update: /* @__PURE__ */ __name((id, change, options) => open2().update(id, change, options), "update"),
3797
+ cancel: /* @__PURE__ */ __name((id, options) => open2().cancel(id, options), "cancel")
3798
+ };
3799
+ }, "zoomMeetingManagement");
3800
+ var profileMeetingManagement = /* @__PURE__ */ __name((make, account) => zoomMeetingManagement(() => createZoomMeetingManagement(lazyRemote(make), account())), "profileMeetingManagement");
3801
+ var lazyRemote = /* @__PURE__ */ __name((make) => {
3802
+ let made;
3803
+ const remote = /* @__PURE__ */ __name(() => made ??= make(), "remote");
3804
+ return {
3805
+ invitation: /* @__PURE__ */ __name((id, options) => remote().invitation(id, options), "invitation"),
3806
+ create: /* @__PURE__ */ __name((change, options) => remote().create(change, options), "create"),
3807
+ update: /* @__PURE__ */ __name((id, change, options) => remote().update(id, change, options), "update"),
3808
+ cancel: /* @__PURE__ */ __name((id, options) => remote().cancel(id, options), "cancel")
3809
+ };
3810
+ }, "lazyRemote");
3811
+ var unbound = /* @__PURE__ */ __name(() => {
3812
+ throw new CliError("configuration_error", "no Zoom account is open for this command");
3813
+ }, "unbound");
3814
+ var leaves = /* @__PURE__ */ __name((command) => command.commands.length ? command.commands.flatMap(leaves) : [command], "leaves");
3815
+ var storeLeaves = /* @__PURE__ */ __name((program, before, management) => {
3816
+ const managed = new Set((management?.capabilities ?? []).filter((name) => ["create", "update", "cancel", "invitation"].includes(name)));
3817
+ return new Set(program.commands.filter((group) => !before.has(group)).flatMap(leaves).filter((leaf) => !(leaf.parent?.name() === "meetings" && managed.has(leaf.name()))));
3818
+ }, "storeLeaves");
3666
3819
 
3667
3820
  // dist/request-events.js
3668
3821
  var SEGMENT = /^(?:v\d+|[a-z][a-z_]{0,23})$/;
@@ -3786,7 +3939,7 @@ var addModelsCommands = /* @__PURE__ */ __name((program, deps) => {
3786
3939
  // dist/upgrade.js
3787
3940
  import { join as join12 } from "node:path";
3788
3941
 
3789
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/update/index.js
3942
+ // node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/update/index.js
3790
3943
  import { realpathSync } from "node:fs";
3791
3944
  import { fileURLToPath as fileURLToPath2 } from "node:url";
3792
3945
  var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
@@ -4280,22 +4433,49 @@ var addMeetingContextCommands = /* @__PURE__ */ __name((program, deps) => {
4280
4433
  }, "addMeetingContextCommands");
4281
4434
 
4282
4435
  // dist/meeting-integration-commands.js
4436
+ var linkChange = /* @__PURE__ */ __name((options) => {
4437
+ const toPerson = options.participantId !== void 0 || options.person !== void 0;
4438
+ if (options.eventId !== void 0 === toPerson)
4439
+ throw new CliError("validation_error", "give --event-id, or --participant-id with --person", {
4440
+ param: "--event-id"
4441
+ });
4442
+ if (options.eventId !== void 0) {
4443
+ if (options.source !== void 0 || options.expectedPerson !== void 0)
4444
+ throw new CliError("validation_error", "--source and --expected-person go with --person, not --event-id");
4445
+ return {
4446
+ action: "event.link",
4447
+ eventId: options.eventId === "none" ? null : options.eventId,
4448
+ ...options.expectedEventId === void 0 ? {} : { expectedEventId: options.expectedEventId === "none" ? null : options.expectedEventId }
4449
+ };
4450
+ }
4451
+ if (options.participantId === void 0 || options.person === void 0)
4452
+ throw new CliError("validation_error", "--participant-id and --person go together", { param: "--person" });
4453
+ if (options.expectedEventId !== void 0)
4454
+ throw new CliError("validation_error", "--expected-event-id goes with --event-id");
4455
+ return {
4456
+ action: "person.link",
4457
+ participantId: options.participantId,
4458
+ personUid: options.person,
4459
+ ...options.source === void 0 ? {} : { targetAccountIds: options.source.split(",").map((item) => bytes(item.trim())) },
4460
+ ...options.expectedPerson === void 0 ? {} : { expectedPersonUid: options.expectedPerson === "none" ? null : options.expectedPerson }
4461
+ };
4462
+ }, "linkChange");
4283
4463
  var addMeetingIntegrationCommands = /* @__PURE__ */ __name((program, deps) => {
4284
4464
  const meetings = program.commands.find((command) => command.name() === "meetings");
4285
4465
  if (!meetings)
4286
4466
  throw new CliError("configuration_error", "meeting command group is unavailable");
4287
- const label2 = /* @__PURE__ */ __name((command, example, mutates = false) => annotate(command, {
4467
+ const label2 = /* @__PURE__ */ __name((command, examples, mutates = false) => annotate(command, {
4288
4468
  origin: "handwritten",
4289
4469
  effects: mutates ? LOCAL_WRITE : LOCAL_READ,
4290
- examples: [example]
4470
+ examples
4291
4471
  }), "label");
4292
4472
  const guards = /* @__PURE__ */ __name((command) => command.option("--yes", "apply this local change once").option("--dry-run", "preview even when --yes is present"), "guards");
4293
4473
  const apply = /* @__PURE__ */ __name(async (reference, input, options, command) => {
4294
4474
  const target = integrationReference(reference);
4295
- const change2 = validateMeetingContextChange(input);
4296
- if (change2.action !== "event.link" && change2.action !== "person.link")
4475
+ const change = validateMeetingContextChange(input);
4476
+ if (change.action !== "event.link" && change.action !== "person.link")
4297
4477
  throw new CliError("validation_error", "meeting linking supports only explicit event or person changes");
4298
- const result = await (await deps.integration()).change(target.reference, change2, {
4478
+ const result = await (await deps.integration()).change(target.reference, change, {
4299
4479
  apply: options.yes,
4300
4480
  dryRun: options.dryRun,
4301
4481
  signal: deps.signal(),
@@ -4308,18 +4488,10 @@ var addMeetingIntegrationCommands = /* @__PURE__ */ __name((program, deps) => {
4308
4488
  deps.output(itemOf(result));
4309
4489
  }, "apply");
4310
4490
  const nullableId = /* @__PURE__ */ __name((value) => value === "none" ? "none" : bytes(value), "nullableId");
4311
- 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, {
4312
- action: "event.link",
4313
- eventId: options.eventId === "none" ? null : options.eventId,
4314
- ...options.expectedEventId === void 0 ? {} : { expectedEventId: options.expectedEventId === "none" ? null : options.expectedEventId }
4315
- }, options, command)), "zm personal meetings update meeting:1/1 --event-id 1 --json", true);
4316
- 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, {
4317
- action: "person.link",
4318
- participantId: options.participantId,
4319
- personUid: options.person,
4320
- ...options.source === void 0 ? {} : { targetAccountIds: options.source.split(",").map((item) => bytes(item.trim())) },
4321
- ...options.expectedPerson === void 0 ? {} : { expectedPersonUid: options.expectedPerson === "none" ? null : options.expectedPerson }
4322
- }, options, command)), "zm personal meetings link meeting:1/1 --participant-id 1 --person 1 --json", true);
4491
+ 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)), [
4492
+ "zm personal meetings link meeting:1/1 --event-id 1 --json",
4493
+ "zm personal meetings link meeting:1/1 --participant-id 1 --person 1 --json"
4494
+ ], true);
4323
4495
  }, "addMeetingIntegrationCommands");
4324
4496
 
4325
4497
  // dist/meeting-project-candidates.js
@@ -5534,10 +5706,16 @@ ${PROFILE_HELP}`);
5534
5706
  return validateDownloadedFiles(await (deps.readFiles ?? readDownloadedFiles)(folder), filesZone(config2)).map((file) => importFile(file, requireAccount(), filesZone(config2)));
5535
5707
  }, "readFiles"),
5536
5708
  now: deps.now,
5709
+ management: profileMeetingManagement(() => {
5710
+ api();
5711
+ return deps.remoteMeetings ?? new ZoomRemoteMeetings(tokens(), fetchWithSignal(deps.fetch), remoteOptions);
5712
+ }, () => profileAccountKey(profile())),
5713
+ askFirst: /* @__PURE__ */ __name((command) => askBeforeWrite(command, { profile: named, config: getConfig, confirm: ask() }), "askFirst"),
5537
5714
  write: /* @__PURE__ */ __name((value) => output(bodyOf(value)), "write"),
5538
5715
  // inCommandRun would open a second run beside zm's own commandRuns, so a sync would be kept twice.
5539
5716
  inRun: /* @__PURE__ */ __name((_command, body) => body(), "inRun"),
5540
5717
  budgetOf: runBudgetOf,
5718
+ pagingOf,
5541
5719
  newFileOutput: writesNewFileOnlyWith,
5542
5720
  writeFile: deps.writeFile ? async (path, content) => {
5543
5721
  checkCancelled(signal());
@@ -5547,8 +5725,7 @@ ${PROFILE_HELP}`);
5547
5725
  };
5548
5726
  const before = new Set(program.commands);
5549
5727
  addZoomMeetingCommands(program, meetingCommands);
5550
- const leaves = /* @__PURE__ */ __name((command) => command.commands.length ? command.commands.flatMap(leaves) : [command], "leaves");
5551
- const storeCommands = new Set(program.commands.filter((group) => !before.has(group)).flatMap(leaves));
5728
+ const storeCommands = storeLeaves(program, before, meetingCommands.management);
5552
5729
  addSessionCommands(program, {
5553
5730
  deps,
5554
5731
  getConfig,
@@ -5615,7 +5792,6 @@ ${PROFILE_HELP}`);
5615
5792
  signal,
5616
5793
  now: deps.now ?? Date.now,
5617
5794
  recordings: /* @__PURE__ */ __name(() => deps.recordings ?? new ZoomRecordings(tokens(), fetchWithSignal(deps.fetch), remoteOptions, zones), "recordings"),
5618
- remoteMeetings: /* @__PURE__ */ __name(() => deps.remoteMeetings ?? new ZoomRemoteMeetings(tokens(), fetchWithSignal(deps.fetch), remoteOptions), "remoteMeetings"),
5619
5795
  archive: deps.archive ?? {
5620
5796
  inspect: inspectArchive,
5621
5797
  verify: verifyArchive,
@@ -5756,6 +5932,8 @@ var zoomConfiguration = /* @__PURE__ */ __name((deps, program) => ({
5756
5932
  keepSuccessfulRunsForDays,
5757
5933
  ...saved?.recordInput === void 0 ? {} : { recordInput: saved.recordInput },
5758
5934
  skillHint: false,
5935
+ limit: flags?.limit ?? DEFAULT_CONFIG.defaults.limit,
5936
+ page: flags?.page ?? 1,
5759
5937
  permissions: profile ? { ...levels, ...overrides } : {},
5760
5938
  permissionSources: Object.fromEntries([
5761
5939
  ...Object.keys(own).map((key) => [key, "config file"]),
@@ -5786,7 +5964,7 @@ var zoomDefinition = /* @__PURE__ */ __name((deps, onFailure) => {
5786
5964
  appMcpCommand(ZM, shared, {
5787
5965
  name: "Zoom",
5788
5966
  untrusted: ["transcripts", "summaries", "chat messages", "participant names", "meeting titles", "file names"],
5789
- permissionExample: "remote-meetings=deny",
5967
+ permissionExample: "meetings.cancel=deny",
5790
5968
  skill: SKILL
5791
5969
  })
5792
5970
  ], "commands"),