@wirecat/zoom-cli 0.66.0 → 0.68.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.
- package/README.md +2 -1
- package/constants.json +7 -0
- package/dist/answer-entities.d.ts +18 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +12 -0
- package/dist/answer-entities.js.map +1 -1
- package/dist/answer-policy.d.ts.map +1 -1
- package/dist/answer-policy.js +2 -1
- package/dist/answer-policy.js.map +1 -1
- package/dist/answers.d.ts +4 -4
- package/dist/bin/main.js +3 -2
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-D5CFH2OK.js → all-profiles-R66UM3HM.js} +12 -11
- package/dist/bundle/answer-policy-UCGUO53A.js +104 -0
- package/dist/bundle/{anthropic-K2E2JS4S.js → anthropic-4ZI2BPLG.js} +7 -7
- package/dist/bundle/{app-server-TVXDG6HZ.js → app-server-64O5IQI5.js} +61 -57
- package/dist/bundle/{bun-O4WHGL2F.js → bun-HUHQD76Z.js} +2 -2
- package/dist/bundle/{bun-sqlite-HGBEHQI3.js → bun-sqlite-VOVHPTIF.js} +6 -6
- package/dist/bundle/{chunk-N6JMJN5A.js → chunk-2OSBCYJT.js} +39 -26
- package/dist/bundle/{chunk-7JMBEPW2.js → chunk-2T6XHWDX.js} +2 -2
- package/dist/bundle/chunk-32FPA7P2.js +35 -0
- package/dist/bundle/{chunk-NO24PJNW.js → chunk-355PHJYX.js} +1 -1
- package/dist/bundle/{chunk-NMQUCHTX.js → chunk-3BRV2YU2.js} +3 -3
- package/dist/bundle/{chunk-GNGBG5BT.js → chunk-474WF55M.js} +95 -48
- package/dist/bundle/{chunk-O5FKJV3T.js → chunk-4TLPOY22.js} +12 -12
- package/dist/bundle/{chunk-CR4CXOLX.js → chunk-4YFJYSSK.js} +205 -59
- package/dist/bundle/chunk-5JAYUG3X.js +261 -0
- package/dist/bundle/{chunk-5HPALDUO.js → chunk-65T3PU75.js} +3 -2
- package/dist/bundle/{chunk-QAPU2JNO.js → chunk-6CJ7NHIP.js} +13 -13
- package/dist/bundle/{chunk-LN2S3RA3.js → chunk-6T3P226D.js} +4 -4
- package/dist/bundle/{chunk-P3XVLHIQ.js → chunk-6TJ62LZQ.js} +22 -14
- package/dist/bundle/{chunk-FWFFQV4D.js → chunk-6XO7RTJY.js} +129 -9
- package/dist/bundle/{chunk-K5CIN4JP.js → chunk-77I67HWF.js} +8 -8
- package/dist/bundle/{chunk-3B7L2UX4.js → chunk-77KFLU5F.js} +3 -3
- package/dist/bundle/{chunk-2YLNUZ3T.js → chunk-7AUP2WT3.js} +3 -3
- package/dist/bundle/{chunk-7PF56S6U.js → chunk-7DUYFITC.js} +25 -23
- package/dist/bundle/{chunk-ZKTXUDSR.js → chunk-7QNJICKZ.js} +30 -26
- package/dist/bundle/{chunk-XWDSEJWP.js → chunk-A63ZFOQJ.js} +18 -4
- package/dist/bundle/{chunk-A2SCXNA7.js → chunk-AJ7CMUGD.js} +1396 -326
- package/dist/bundle/{chunk-Z6U3MEGJ.js → chunk-AVEIQMHZ.js} +4 -2
- package/dist/bundle/chunk-AYEVBAGO.js +178 -0
- package/dist/bundle/{chunk-SU4WPBQE.js → chunk-B6JMVB6R.js} +22 -23
- package/dist/bundle/{chunk-YLEQN6PB.js → chunk-BL36NSV5.js} +3 -3
- package/dist/bundle/{chunk-RMKHYUHK.js → chunk-BOAMDYLY.js} +4 -4
- package/dist/bundle/chunk-BSM43OMN.js +31 -0
- package/dist/bundle/{chunk-67RNZGAG.js → chunk-DGNPJGD3.js} +16 -10
- package/dist/bundle/{chunk-Y3EIK4XW.js → chunk-DVA6MQWK.js} +1 -1
- package/dist/bundle/{chunk-AU4JHT3R.js → chunk-DWSUSWAX.js} +98 -13
- package/dist/bundle/{chunk-H5ZVZAOD.js → chunk-EH5QGQFR.js} +3 -3
- package/dist/bundle/chunk-EJDV5IIF.js +93 -0
- package/dist/bundle/{chunk-3WTKZ2ZS.js → chunk-EWIBLDQQ.js} +8 -8
- package/dist/bundle/{chunk-GHAPWKG2.js → chunk-EZRPSZJS.js} +3 -3
- package/dist/bundle/{chunk-QJHRYUMJ.js → chunk-FBLUKCIR.js} +1 -1
- package/dist/bundle/{chunk-S6S3KVJI.js → chunk-FEM2JQN2.js} +2 -1
- package/dist/bundle/{chunk-P2G4KGTR.js → chunk-FMQS7HCC.js} +12 -12
- package/dist/bundle/{chunk-ZNFPDTQM.js → chunk-FNQASORM.js} +2 -2
- package/dist/bundle/{chunk-GKXFL35E.js → chunk-GOXDBCDM.js} +728 -130
- package/dist/bundle/{chunk-U3ZUT557.js → chunk-HXOAPH47.js} +1 -1
- package/dist/bundle/{chunk-QV5ZGRK3.js → chunk-JO4YADNV.js} +7 -7
- package/dist/bundle/{chunk-5A26IBAR.js → chunk-JRCYFCPL.js} +30 -28
- package/dist/bundle/{chunk-ZTL7ANSG.js → chunk-K67V24AT.js} +5 -5
- package/dist/bundle/{chunk-BXSAROQP.js → chunk-KAPJQGHE.js} +2 -2
- package/dist/bundle/{chunk-TFDVFD4N.js → chunk-KNE6VFHZ.js} +97 -38
- package/dist/bundle/{chunk-AZ7ICKIA.js → chunk-KUB2U5NT.js} +6 -6
- package/dist/bundle/{chunk-GI6QVSCW.js → chunk-L4WVLRXM.js} +4 -4
- package/dist/bundle/{chunk-756RS4PH.js → chunk-LBOSTBAY.js} +2541 -1355
- package/dist/bundle/{chunk-62GOOZO3.js → chunk-LV7QRR5S.js} +6 -6
- package/dist/bundle/{chunk-J4EZL6HY.js → chunk-LYWUG43B.js} +33 -33
- package/dist/bundle/{chunk-N67BLTBV.js → chunk-NRRI37NJ.js} +28 -9
- package/dist/bundle/{chunk-N5JRRBEG.js → chunk-NUJMJQXV.js} +281 -10
- package/dist/bundle/{chunk-UYV2JGLQ.js → chunk-OE7EIP5L.js} +1 -1
- package/dist/bundle/{chunk-U4RVOSX3.js → chunk-P2TISY3R.js} +1 -1
- package/dist/bundle/{chunk-ILHTNOIV.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-UOIXBEFR.js → chunk-PIHBD3YS.js} +16 -6
- package/dist/bundle/{chunk-BLT3LR3U.js → chunk-PUTGTW6W.js} +4 -2
- package/dist/bundle/{chunk-TUEEXECZ.js → chunk-QXTREL2M.js} +3 -3
- package/dist/bundle/{chunk-2VPHQFO5.js → chunk-R7LFGEDE.js} +2 -2
- package/dist/bundle/{chunk-IDWHJ35K.js → chunk-RGJ7OWHU.js} +4 -4
- package/dist/bundle/{chunk-3Y2F65AY.js → chunk-RP3U3J53.js} +10 -89
- package/dist/bundle/{chunk-JX3V35A5.js → chunk-RRYUD2EF.js} +3 -3
- package/dist/bundle/{chunk-XFUID5NY.js → chunk-SRP6SFFD.js} +2 -2
- package/dist/bundle/{chunk-7SQJCKR6.js → chunk-SSPSNSC5.js} +1 -1
- package/dist/bundle/{chunk-Q47C3QZW.js → chunk-TDGZMC6K.js} +510 -318
- package/dist/bundle/{chunk-EXXM4RNI.js → chunk-TN3FH2GQ.js} +11 -11
- package/dist/bundle/chunk-TUNQ6NE2.js +64 -0
- package/dist/bundle/{chunk-CAW6IMFZ.js → chunk-TZUKDM72.js} +72 -20
- package/dist/bundle/{chunk-S4GDDO5S.js → chunk-UDJTRFRV.js} +1 -1
- package/dist/bundle/{chunk-5GD2XZ6X.js → chunk-US5C3WAY.js} +63 -53
- package/dist/bundle/{chunk-7KCTPGOF.js → chunk-UU5PLDRA.js} +2 -2
- package/dist/bundle/{chunk-6TIKPRVQ.js → chunk-VLD7Y4SY.js} +7 -7
- package/dist/bundle/{chunk-PQLBPYJR.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/chunk-W42BJ65M.js +37 -0
- package/dist/bundle/{chunk-KDKFGQWG.js → chunk-Y5LP5SHV.js} +15 -12
- package/dist/bundle/{chunk-TMVKZMDO.js → chunk-YJY3W2ZT.js} +232 -88
- package/dist/bundle/{chunk-6GSJLNP4.js → chunk-YOAEZSDG.js} +2 -2
- package/dist/bundle/{chunk-IKQ73INC.js → chunk-YQRNFG2E.js} +15849 -1674
- package/dist/bundle/{chunk-RO44LANT.js → chunk-YTF2WPV4.js} +1880 -778
- package/dist/bundle/{chunk-CZ4KLUJG.js → chunk-ZRD3NDOX.js} +2 -2
- package/dist/bundle/{cli-HWQIL2AC.js → cli-VQJ7ZRYR.js} +124 -69
- package/dist/bundle/command-contract-JPUWWYIV.js +41 -0
- package/dist/bundle/config-YGLLR77A.js +90 -0
- package/dist/bundle/{decode-XPAPPUGE.js → decode-L3ENO2XH.js} +6 -6
- package/dist/bundle/{dispatch-AKVJGP2S.js → dispatch-5MGDLOK4.js} +9 -9
- package/dist/bundle/{dist-LDIUQBM7.js → dist-WQLS7U23.js} +66 -17
- package/dist/bundle/{echarts-FMACRZQC.js → echarts-5LLJ6JXC.js} +2 -2
- package/dist/bundle/{embed-LK45GRQ7.js → embed-37MYTCU7.js} +7 -7
- package/dist/bundle/{embedder-QPBC5XBY.js → embedder-GNGHVJAO.js} +10 -10
- package/dist/bundle/{failure-7OULAOWQ.js → failure-CR64C4XA.js} +3 -3
- package/dist/bundle/{first-run-J5FG773Q.js → first-run-NR5JKYP3.js} +12 -12
- package/dist/bundle/first-screen-RCR7ATO2.js +39 -0
- package/dist/bundle/{folders-RHPUVMDI.js → folders-VU4IN35Y.js} +5 -5
- package/dist/bundle/{instructions-E5FXYCWF.js → instructions-P72XX4AK.js} +1 -1
- package/dist/bundle/{main-FJHE5YHU.js → main-QYFCYSTW.js} +23 -24
- package/dist/bundle/{mcp-MNI62HHE.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/{meetings-MYIDGYGW.js → meetings-66UQINKI.js} +37 -7
- package/dist/bundle/{node-4SNKUPXT.js → node-ZB4RNICS.js} +2 -2
- package/dist/bundle/{node-sqlite-SYZUTVPC.js → node-sqlite-XPRKBDF3.js} +7 -7
- package/dist/bundle/{oauth-QPS5VTN6.js → oauth-WJRDUU5J.js} +8 -8
- package/dist/bundle/{open-OVCASRSJ.js → open-S2YSIEOW.js} +6 -6
- package/dist/bundle/openai-CRNZFNZD.js +25 -0
- package/dist/bundle/{output-file-K5JEL33Z.js → output-file-6COFGPUL.js} +6 -6
- package/dist/bundle/{process-HQZOTT6U.js → process-XNN4WG6N.js} +1 -1
- package/dist/bundle/{program-A546WC4F.js → program-BRPJKRCX.js} +181 -205
- package/dist/bundle/{prompt-CYBKP7S5.js → prompt-7RQOL25I.js} +6 -6
- package/dist/bundle/{recognize-3H3YDCFI.js → recognize-N5WADGQB.js} +5 -5
- package/dist/bundle/{remote-VAYVTJBS.js → remote-WHYV35IF.js} +8 -8
- package/dist/bundle/{rerank-XA4GA5PS.js → rerank-FBMZVWSH.js} +8 -8
- package/dist/bundle/{run-log-XAFHMI3F.js → run-log-TOCHREH2.js} +59 -57
- package/dist/bundle/{serve-KGHEDUHB.js → serve-4BABX4WS.js} +10 -10
- package/dist/bundle/{server-ZYTSMDTP.js → server-CDVI6LOB.js} +47 -46
- package/dist/bundle/server-XOFQKFVO.js +72 -0
- package/dist/bundle/{services-ZHMZC2OQ.js → services-PIY33I7R.js} +59 -32
- package/dist/bundle/{speech-7CJEFKM3.js → speech-LS5Q4FL2.js} +14 -14
- package/dist/bundle/{state-U6KSYVOH.js → state-YUX5R2R7.js} +7 -7
- package/dist/bundle/{store-DJE3LAEG.js → store-BD7HAXAA.js} +22 -17
- package/dist/bundle/{store-WS4CQGYU.js → store-ERMGBF2B.js} +59 -30
- package/dist/bundle/store-connection-JBR6CMTJ.js +83 -0
- package/dist/bundle/store-maintenance-command-I5DUSO2C.js +62 -0
- package/dist/bundle/{streaming-QMHH7L6N.js → streaming-O53PIORL.js} +7 -7
- package/dist/bundle/{tokens-PWQ56OXO.js → tokens-QKNEP2GJ.js} +7 -7
- package/dist/bundle/zm.js +9 -10
- package/dist/bundle/zoom-app-XJXZ4ZBX.js +41 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +1 -0
- package/dist/commands.js.map +1 -1
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +48 -10
- package/dist/config.js.map +1 -1
- package/dist/identity.d.ts +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +11 -0
- package/dist/identity.js.map +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-source.js +2 -1
- package/dist/meeting-source.js.map +1 -1
- package/dist/meeting-stats-commands.d.ts +4 -2
- package/dist/meeting-stats-commands.d.ts.map +1 -1
- package/dist/meeting-stats-commands.js +27 -2
- package/dist/meeting-stats-commands.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +10 -4
- package/dist/program-bindings.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +5 -5
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +2 -6
- package/dist/run.js.map +1 -1
- package/dist/setup-commands.d.ts +7 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +45 -8
- package/dist/setup-commands.js.map +1 -1
- package/dist/store-commands.d.ts.map +1 -1
- package/dist/store-commands.js +6 -0
- package/dist/store-commands.js.map +1 -1
- package/dist/store-connection.d.ts +2 -1
- package/dist/store-connection.d.ts.map +1 -1
- package/dist/store-connection.js +4 -0
- package/dist/store-connection.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/watch-service.d.ts +1 -1
- package/dist/watch-service.d.ts.map +1 -1
- package/dist/watch-service.js +5 -3
- package/dist/watch-service.js.map +1 -1
- package/dist/zoom-app.d.ts +49 -0
- package/dist/zoom-app.d.ts.map +1 -0
- package/dist/zoom-app.js +83 -0
- package/dist/zoom-app.js.map +1 -0
- package/package.json +4 -3
- package/skills/zoom-cli/SKILL.md +4 -1
- package/dist/bundle/answer-policy-YAYMKRRD.js +0 -101
- package/dist/bundle/chunk-2T5BOLBS.js +0 -132
- package/dist/bundle/chunk-HKQWV3KT.js +0 -31
- package/dist/bundle/chunk-L7IK4FOA.js +0 -18
- package/dist/bundle/chunk-P2SYZNM4.js +0 -19
- package/dist/bundle/chunk-TN7K66PU.js +0 -9
- package/dist/bundle/command-contract-CQFJXWX6.js +0 -40
- package/dist/bundle/config-R2Y6ZVQS.js +0 -83
- package/dist/bundle/first-screen-MULOBUHN.js +0 -38
- package/dist/bundle/openai-VEVT7D7L.js +0 -25
- package/dist/bundle/server-IDNSJXF3.js +0 -71
- package/dist/bundle/store-connection-T5WGOOPH.js +0 -81
- package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +0 -61
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-VOXIGICJ.js} +0 -0
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
emitReceipt
|
|
5
|
-
} from "./chunk-2YLNUZ3T.js";
|
|
6
|
-
import {
|
|
7
|
-
zmPaths
|
|
8
|
-
} from "./chunk-QJHRYUMJ.js";
|
|
9
|
-
import {
|
|
10
|
-
TokenManager
|
|
11
|
-
} from "./chunk-YLEQN6PB.js";
|
|
12
|
-
import "./chunk-UOIXBEFR.js";
|
|
13
3
|
import {
|
|
14
4
|
addMeetingEmbeddingCommand,
|
|
15
5
|
addMeetingSearchCommands,
|
|
@@ -31,10 +21,14 @@ import {
|
|
|
31
21
|
validateTaskKind,
|
|
32
22
|
validateTaskProposal,
|
|
33
23
|
validateUnifiedSearch
|
|
34
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7QNJICKZ.js";
|
|
25
|
+
import {
|
|
26
|
+
emitReceipt
|
|
27
|
+
} from "./chunk-7AUP2WT3.js";
|
|
35
28
|
import {
|
|
36
29
|
DEFAULT_PERMISSIONS,
|
|
37
30
|
ZOOM_ANSWER_ENTITIES,
|
|
31
|
+
ZOOM_SETTINGS,
|
|
38
32
|
addProfile,
|
|
39
33
|
addStandardCommands,
|
|
40
34
|
annotateMeetingCommands,
|
|
@@ -47,6 +41,7 @@ import {
|
|
|
47
41
|
guardCommand,
|
|
48
42
|
inspectConfig,
|
|
49
43
|
markProfileFree,
|
|
44
|
+
migrateConfig,
|
|
50
45
|
permissionKeyForPath,
|
|
51
46
|
permissionKeys,
|
|
52
47
|
profileAccountKey,
|
|
@@ -57,7 +52,7 @@ import {
|
|
|
57
52
|
unsetConfig,
|
|
58
53
|
wholeList,
|
|
59
54
|
zoomRunsCommand
|
|
60
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-TZUKDM72.js";
|
|
61
56
|
import {
|
|
62
57
|
MEMO_SCENARIOS,
|
|
63
58
|
SEARCHES_QUERY,
|
|
@@ -82,8 +77,26 @@ import {
|
|
|
82
77
|
signInSteps,
|
|
83
78
|
skillCommand as skillCommand2,
|
|
84
79
|
upgradeCommand
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import "./chunk-
|
|
80
|
+
} from "./chunk-LBOSTBAY.js";
|
|
81
|
+
import "./chunk-Y5LP5SHV.js";
|
|
82
|
+
import {
|
|
83
|
+
CLIENT_ID_NEED,
|
|
84
|
+
SET_ZOOM_APP,
|
|
85
|
+
checkedClientId,
|
|
86
|
+
login,
|
|
87
|
+
zoomApp,
|
|
88
|
+
zoomAppChecklist,
|
|
89
|
+
zoomAppSetup,
|
|
90
|
+
zoomClientId,
|
|
91
|
+
zoomClientReport
|
|
92
|
+
} from "./chunk-5JAYUG3X.js";
|
|
93
|
+
import "./chunk-W42BJ65M.js";
|
|
94
|
+
import {
|
|
95
|
+
zmPaths
|
|
96
|
+
} from "./chunk-FBLUKCIR.js";
|
|
97
|
+
import {
|
|
98
|
+
TokenManager
|
|
99
|
+
} from "./chunk-BL36NSV5.js";
|
|
87
100
|
import {
|
|
88
101
|
ZoneAssumptions,
|
|
89
102
|
cancellableStore,
|
|
@@ -94,33 +107,34 @@ import {
|
|
|
94
107
|
withIssue,
|
|
95
108
|
zoomInstant,
|
|
96
109
|
zoomTime
|
|
97
|
-
} from "./chunk-
|
|
98
|
-
import "./chunk-
|
|
99
|
-
import "./chunk-
|
|
110
|
+
} from "./chunk-KAPJQGHE.js";
|
|
111
|
+
import "./chunk-PIHBD3YS.js";
|
|
112
|
+
import "./chunk-355PHJYX.js";
|
|
113
|
+
import "./chunk-QXTREL2M.js";
|
|
100
114
|
import {
|
|
101
115
|
providerWaitMs,
|
|
102
116
|
readJsonResponse,
|
|
103
117
|
retryableStatus,
|
|
104
118
|
statusToCode
|
|
105
|
-
} from "./chunk-
|
|
106
|
-
import "./chunk-
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-
|
|
109
|
-
import "./chunk-
|
|
110
|
-
import "./chunk-
|
|
119
|
+
} from "./chunk-TN3FH2GQ.js";
|
|
120
|
+
import "./chunk-77KFLU5F.js";
|
|
121
|
+
import "./chunk-A63ZFOQJ.js";
|
|
122
|
+
import "./chunk-4TLPOY22.js";
|
|
123
|
+
import "./chunk-DGNPJGD3.js";
|
|
124
|
+
import "./chunk-SSPSNSC5.js";
|
|
111
125
|
import {
|
|
112
126
|
allAnswer
|
|
113
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-474WF55M.js";
|
|
114
128
|
import {
|
|
115
129
|
skillCommand
|
|
116
|
-
} from "./chunk-
|
|
117
|
-
import "./chunk-
|
|
118
|
-
import "./chunk-
|
|
119
|
-
import "./chunk-
|
|
120
|
-
import "./chunk-
|
|
130
|
+
} from "./chunk-7DUYFITC.js";
|
|
131
|
+
import "./chunk-6XO7RTJY.js";
|
|
132
|
+
import "./chunk-6T3P226D.js";
|
|
133
|
+
import "./chunk-GOXDBCDM.js";
|
|
134
|
+
import "./chunk-FNQASORM.js";
|
|
121
135
|
import {
|
|
122
136
|
commandPermissions
|
|
123
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-US5C3WAY.js";
|
|
124
138
|
import {
|
|
125
139
|
addMeetingCommands,
|
|
126
140
|
addMeetingPassageCommand,
|
|
@@ -132,34 +146,34 @@ import {
|
|
|
132
146
|
typedQuery,
|
|
133
147
|
unfilteredQuery,
|
|
134
148
|
withQuery
|
|
135
|
-
} from "./chunk-
|
|
136
|
-
import "./chunk-
|
|
149
|
+
} from "./chunk-2OSBCYJT.js";
|
|
150
|
+
import "./chunk-EH5QGQFR.js";
|
|
137
151
|
import {
|
|
138
152
|
NativeRecordingPartialStore,
|
|
139
153
|
NativeRecordingPublication,
|
|
140
154
|
dateWindow,
|
|
141
155
|
savedSearchItem,
|
|
142
156
|
validateMeetingPreparationRequest
|
|
143
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-YTF2WPV4.js";
|
|
144
158
|
import {
|
|
145
159
|
nativeWriterLeaseStore,
|
|
146
160
|
openOrdinaryFile,
|
|
147
161
|
syncDirectory,
|
|
148
162
|
writeFileAtomic
|
|
149
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-6CJ7NHIP.js";
|
|
150
164
|
import {
|
|
151
165
|
latestVersion,
|
|
152
166
|
runUpdate,
|
|
153
167
|
updateNotice
|
|
154
|
-
} from "./chunk-
|
|
155
|
-
import "./chunk-
|
|
156
|
-
import "./chunk-
|
|
157
|
-
import "./chunk-
|
|
168
|
+
} from "./chunk-BOAMDYLY.js";
|
|
169
|
+
import "./chunk-VW6BF6M7.js";
|
|
170
|
+
import "./chunk-FMQS7HCC.js";
|
|
171
|
+
import "./chunk-4YFJYSSK.js";
|
|
158
172
|
import {
|
|
159
173
|
inSection
|
|
160
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-EWIBLDQQ.js";
|
|
161
175
|
import "./chunk-HTQTIKWP.js";
|
|
162
|
-
import "./chunk-
|
|
176
|
+
import "./chunk-K67V24AT.js";
|
|
163
177
|
import {
|
|
164
178
|
Argument,
|
|
165
179
|
CommanderError,
|
|
@@ -186,63 +200,68 @@ import {
|
|
|
186
200
|
progressOf,
|
|
187
201
|
readCheckpoint,
|
|
188
202
|
refuseCommandName,
|
|
203
|
+
runBudgetOf,
|
|
189
204
|
saveCheckpoint,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
import "./chunk-
|
|
195
|
-
import "./chunk-
|
|
196
|
-
import "./chunk-
|
|
205
|
+
settingRows,
|
|
206
|
+
snakeKeys,
|
|
207
|
+
writesNewFileOnlyWith
|
|
208
|
+
} from "./chunk-AJ7CMUGD.js";
|
|
209
|
+
import "./chunk-AVEIQMHZ.js";
|
|
210
|
+
import "./chunk-RP3U3J53.js";
|
|
211
|
+
import "./chunk-L4WVLRXM.js";
|
|
212
|
+
import "./chunk-JO4YADNV.js";
|
|
213
|
+
import "./chunk-DVA6MQWK.js";
|
|
197
214
|
import {
|
|
198
215
|
currentAttempt,
|
|
199
216
|
withAttempt
|
|
200
|
-
} from "./chunk-
|
|
201
|
-
import "./chunk-
|
|
217
|
+
} from "./chunk-JRCYFCPL.js";
|
|
218
|
+
import "./chunk-YOAEZSDG.js";
|
|
202
219
|
import {
|
|
203
220
|
COMMAND_PATH_KEY,
|
|
204
221
|
assertOverridesTighten,
|
|
205
222
|
permissionOverrides
|
|
206
|
-
} from "./chunk-
|
|
207
|
-
import "./chunk-
|
|
208
|
-
import "./chunk-
|
|
209
|
-
import "./chunk-
|
|
223
|
+
} from "./chunk-65T3PU75.js";
|
|
224
|
+
import "./chunk-TUNQ6NE2.js";
|
|
225
|
+
import "./chunk-YQRNFG2E.js";
|
|
226
|
+
import "./chunk-77I67HWF.js";
|
|
210
227
|
import {
|
|
211
228
|
formatReference,
|
|
212
229
|
isFolderProvider
|
|
213
|
-
} from "./chunk-
|
|
214
|
-
import "./chunk-
|
|
215
|
-
import "./chunk-
|
|
216
|
-
import "./chunk-
|
|
217
|
-
import "./chunk-
|
|
218
|
-
import "./chunk-
|
|
219
|
-
import "./chunk-
|
|
220
|
-
import "./chunk-
|
|
221
|
-
import "./chunk-
|
|
222
|
-
import "./chunk-
|
|
230
|
+
} from "./chunk-NUJMJQXV.js";
|
|
231
|
+
import "./chunk-DWSUSWAX.js";
|
|
232
|
+
import "./chunk-VLD7Y4SY.js";
|
|
233
|
+
import "./chunk-AYEVBAGO.js";
|
|
234
|
+
import "./chunk-EJDV5IIF.js";
|
|
235
|
+
import "./chunk-RRYUD2EF.js";
|
|
236
|
+
import "./chunk-2T6XHWDX.js";
|
|
237
|
+
import "./chunk-EZRPSZJS.js";
|
|
238
|
+
import "./chunk-ZRD3NDOX.js";
|
|
239
|
+
import "./chunk-3BRV2YU2.js";
|
|
240
|
+
import "./chunk-KUB2U5NT.js";
|
|
223
241
|
import {
|
|
224
242
|
speechModel
|
|
225
|
-
} from "./chunk-
|
|
226
|
-
import "./chunk-
|
|
243
|
+
} from "./chunk-6TJ62LZQ.js";
|
|
244
|
+
import "./chunk-32FPA7P2.js";
|
|
227
245
|
import {
|
|
246
|
+
CLIENT_ID_MISSING,
|
|
247
|
+
VERSION,
|
|
228
248
|
ZM
|
|
229
|
-
} from "./chunk-
|
|
230
|
-
import {
|
|
231
|
-
VERSION
|
|
232
|
-
} from "./chunk-TN7K66PU.js";
|
|
249
|
+
} from "./chunk-BSM43OMN.js";
|
|
233
250
|
import {
|
|
234
251
|
installerOf
|
|
235
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-P3ASN72F.js";
|
|
236
253
|
import "./chunk-D72URWJE.js";
|
|
237
|
-
import "./chunk-
|
|
238
|
-
import "./chunk-
|
|
254
|
+
import "./chunk-LV7QRR5S.js";
|
|
255
|
+
import "./chunk-PUTGTW6W.js";
|
|
239
256
|
import {
|
|
257
|
+
MEETING_COUNTS_GROUPINGS,
|
|
240
258
|
RecordingSyncError,
|
|
241
259
|
createMeetingSeriesInventoryReader,
|
|
242
260
|
createUpcomingMeetingReader,
|
|
243
261
|
dispatchMeetingMutation,
|
|
244
262
|
importFiles,
|
|
245
263
|
installRecordingArchiveSchedule,
|
|
264
|
+
meetingCountsItem,
|
|
246
265
|
meetingLink,
|
|
247
266
|
meetingLinkItem,
|
|
248
267
|
meetingReviewItem,
|
|
@@ -263,14 +282,14 @@ import {
|
|
|
263
282
|
validateMeetingChange,
|
|
264
283
|
validateMeetingContextChange,
|
|
265
284
|
watchMeetingIngestion
|
|
266
|
-
} from "./chunk-
|
|
285
|
+
} from "./chunk-TDGZMC6K.js";
|
|
267
286
|
import {
|
|
268
287
|
dateRange,
|
|
269
288
|
defineQuery,
|
|
270
289
|
queryFieldsOf,
|
|
271
290
|
timezoneOf
|
|
272
|
-
} from "./chunk-
|
|
273
|
-
import "./chunk-
|
|
291
|
+
} from "./chunk-B6JMVB6R.js";
|
|
292
|
+
import "./chunk-VOXIGICJ.js";
|
|
274
293
|
import {
|
|
275
294
|
createDeadline,
|
|
276
295
|
createOutputBuffer,
|
|
@@ -278,7 +297,7 @@ import {
|
|
|
278
297
|
fieldsOf,
|
|
279
298
|
projectFields,
|
|
280
299
|
realSleep
|
|
281
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-KNE6VFHZ.js";
|
|
282
301
|
import {
|
|
283
302
|
array,
|
|
284
303
|
boolean,
|
|
@@ -291,14 +310,14 @@ import {
|
|
|
291
310
|
safeParse,
|
|
292
311
|
string,
|
|
293
312
|
transform
|
|
294
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-NRRI37NJ.js";
|
|
295
314
|
import "./chunk-Y5E2WNWB.js";
|
|
296
315
|
import {
|
|
297
316
|
CliError,
|
|
298
317
|
isCliError
|
|
299
|
-
} from "./chunk-
|
|
300
|
-
import "./chunk-
|
|
301
|
-
import "./chunk-
|
|
318
|
+
} from "./chunk-FEM2JQN2.js";
|
|
319
|
+
import "./chunk-OE7EIP5L.js";
|
|
320
|
+
import "./chunk-P2TISY3R.js";
|
|
302
321
|
import {
|
|
303
322
|
__name
|
|
304
323
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -844,7 +863,7 @@ var acquireArchiveWriter = /* @__PURE__ */ __name((destination, signal) => opera
|
|
|
844
863
|
}, signal), "acquireArchiveWriter");
|
|
845
864
|
|
|
846
865
|
// dist/remote-http.js
|
|
847
|
-
import { setTimeout
|
|
866
|
+
import { setTimeout } from "node:timers/promises";
|
|
848
867
|
var operationSignal = /* @__PURE__ */ __name((signal) => signal ?? AbortSignal.timeout(36e5), "operationSignal");
|
|
849
868
|
var downloadTarget = /* @__PURE__ */ __name((input, what, base) => {
|
|
850
869
|
let target;
|
|
@@ -879,7 +898,7 @@ var ZoomRemote = class {
|
|
|
879
898
|
return null;
|
|
880
899
|
checkCancelled(signal);
|
|
881
900
|
const waited = Math.max(0, delay);
|
|
882
|
-
await (this.options.sleep ?? ((ms, abort) =>
|
|
901
|
+
await (this.options.sleep ?? ((ms, abort) => setTimeout(ms, void 0, { signal: abort })))(waited, signal);
|
|
883
902
|
return waited;
|
|
884
903
|
}
|
|
885
904
|
async get(target, accessToken, signal, retry = true) {
|
|
@@ -1726,7 +1745,7 @@ var searchArchiveTranscripts = /* @__PURE__ */ __name(async (destination, query,
|
|
|
1726
1745
|
return { items: matches, page: 1, limit, hasMore: false };
|
|
1727
1746
|
}, "searchArchiveTranscripts");
|
|
1728
1747
|
|
|
1729
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1748
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
|
|
1730
1749
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
1731
1750
|
var INTEGER = /^-?\d+$/;
|
|
1732
1751
|
var INT64_MIN = -(2n ** 63n);
|
|
@@ -2765,7 +2784,7 @@ var configuredMeetingSource = /* @__PURE__ */ __name(({ deps, getConfig, tokens,
|
|
|
2765
2784
|
if (config.source === "api") {
|
|
2766
2785
|
const manager = tokens();
|
|
2767
2786
|
if (!manager.options.clientId)
|
|
2768
|
-
throw new CliError("configuration_error",
|
|
2787
|
+
throw new CliError("configuration_error", SET_ZOOM_APP);
|
|
2769
2788
|
return new ZoomApiSource(manager, fetch2(), {}, zones);
|
|
2770
2789
|
}
|
|
2771
2790
|
if (!config.filesFolder)
|
|
@@ -3491,8 +3510,7 @@ var zoomRecordingSchedule = /* @__PURE__ */ __name(({ deps, getConfig, profile,
|
|
|
3491
3510
|
unitDirectory: join10(env.XDG_CONFIG_HOME ?? join10(env.HOME ?? homedir(), ".config"), "systemd", "user")
|
|
3492
3511
|
}),
|
|
3493
3512
|
recordings: /* @__PURE__ */ __name((job) => {
|
|
3494
|
-
|
|
3495
|
-
if (dirname2(deps.configPath) !== job.capture.configDir || profile() !== job.capture.profile || selected.clientId !== job.capture.clientId)
|
|
3513
|
+
if (dirname2(deps.configPath) !== job.capture.configDir || profile() !== job.capture.profile || zoomClientId(readConfig(deps.configPath), deps.env ?? process.env) !== job.capture.clientId)
|
|
3496
3514
|
throw new CliError("configuration_error", "archive schedule requires its saved profile and Zoom client id; select those settings before running");
|
|
3497
3515
|
return new ZoomRecordings(new TokenManager({
|
|
3498
3516
|
clientId: job.capture.clientId,
|
|
@@ -3512,15 +3530,15 @@ var zoomRecordingSchedule = /* @__PURE__ */ __name(({ deps, getConfig, profile,
|
|
|
3512
3530
|
return recordingSchedule;
|
|
3513
3531
|
}, "service"),
|
|
3514
3532
|
capture: /* @__PURE__ */ __name(() => {
|
|
3515
|
-
const
|
|
3533
|
+
const clientId = zoomClientId(getConfig(), deps.env ?? process.env);
|
|
3516
3534
|
const named = profile();
|
|
3517
|
-
if (!
|
|
3535
|
+
if (!clientId)
|
|
3518
3536
|
throw new CliError("configuration_error", "archive schedules require a configured Zoom client id");
|
|
3519
3537
|
if (!deps.recordingScheduleTarget)
|
|
3520
3538
|
throw new CliError("configuration_error", "archive scheduler requires an explicit runtime and CLI path");
|
|
3521
3539
|
return {
|
|
3522
3540
|
profile: named,
|
|
3523
|
-
clientId
|
|
3541
|
+
clientId,
|
|
3524
3542
|
configDir: dirname2(deps.configPath),
|
|
3525
3543
|
runtime: deps.recordingScheduleTarget.runtime,
|
|
3526
3544
|
cliPath: deps.recordingScheduleTarget.cliPath
|
|
@@ -3719,100 +3737,6 @@ var observedFetch = /* @__PURE__ */ __name((fetcher, sink) => async (input, init
|
|
|
3719
3737
|
}
|
|
3720
3738
|
}, "observedFetch");
|
|
3721
3739
|
|
|
3722
|
-
// dist/login.js
|
|
3723
|
-
import { createHash as createHash5, randomBytes } from "node:crypto";
|
|
3724
|
-
import { createServer } from "node:http";
|
|
3725
|
-
var REDIRECT = "https://wirecat.dev/zoom-callback";
|
|
3726
|
-
var login = /* @__PURE__ */ __name(async (options) => {
|
|
3727
|
-
checkCancelled(options.signal);
|
|
3728
|
-
const verifier = randomBytes(48).toString("base64url");
|
|
3729
|
-
const challenge = createHash5("sha256").update(verifier).digest("base64url");
|
|
3730
|
-
const controller = new AbortController();
|
|
3731
|
-
let state = "";
|
|
3732
|
-
let accept = /* @__PURE__ */ __name(() => {
|
|
3733
|
-
}, "accept");
|
|
3734
|
-
let fail = /* @__PURE__ */ __name(() => {
|
|
3735
|
-
}, "fail");
|
|
3736
|
-
const codePromise = new Promise((resolve3, reject) => {
|
|
3737
|
-
accept = resolve3;
|
|
3738
|
-
fail = reject;
|
|
3739
|
-
});
|
|
3740
|
-
const onAbort = /* @__PURE__ */ __name(() => {
|
|
3741
|
-
try {
|
|
3742
|
-
checkCancelled(options.signal);
|
|
3743
|
-
} catch (error) {
|
|
3744
|
-
fail(error instanceof Error ? error : new CliError("cancelled", "command cancelled"));
|
|
3745
|
-
}
|
|
3746
|
-
}, "onAbort");
|
|
3747
|
-
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
3748
|
-
void codePromise.catch(() => {
|
|
3749
|
-
});
|
|
3750
|
-
const server = createServer((request, response) => {
|
|
3751
|
-
const query = new URL(request.url ?? "/", "http://127.0.0.1");
|
|
3752
|
-
if (query.pathname !== "/callback") {
|
|
3753
|
-
response.writeHead(404).end();
|
|
3754
|
-
return;
|
|
3755
|
-
}
|
|
3756
|
-
if (query.searchParams.get("state") !== state) {
|
|
3757
|
-
response.writeHead(400).end("state does not match");
|
|
3758
|
-
return;
|
|
3759
|
-
}
|
|
3760
|
-
const code2 = query.searchParams.get("code");
|
|
3761
|
-
response.end("zm: received, you can close this tab");
|
|
3762
|
-
if (code2)
|
|
3763
|
-
accept(code2);
|
|
3764
|
-
else
|
|
3765
|
-
fail(new CliError("authentication_error", "Zoom login was not approved"));
|
|
3766
|
-
});
|
|
3767
|
-
const timer = setTimeout(() => fail(new CliError("authentication_error", "Zoom login timed out")), options.timeoutMs ?? 3e5);
|
|
3768
|
-
try {
|
|
3769
|
-
await new Promise((resolve3, reject) => {
|
|
3770
|
-
server.once("error", reject);
|
|
3771
|
-
server.listen(0, "127.0.0.1", resolve3);
|
|
3772
|
-
});
|
|
3773
|
-
const address = server.address();
|
|
3774
|
-
if (!address || typeof address === "string")
|
|
3775
|
-
throw new CliError("configuration_error", "could not start the local login listener");
|
|
3776
|
-
state = `${address.port}.${randomBytes(24).toString("base64url")}`;
|
|
3777
|
-
const authorize = new URL("https://zoom.us/oauth/authorize");
|
|
3778
|
-
authorize.search = new URLSearchParams({
|
|
3779
|
-
response_type: "code",
|
|
3780
|
-
client_id: options.tokens.options.clientId,
|
|
3781
|
-
redirect_uri: REDIRECT,
|
|
3782
|
-
code_challenge: challenge,
|
|
3783
|
-
code_challenge_method: "S256",
|
|
3784
|
-
state
|
|
3785
|
-
}).toString();
|
|
3786
|
-
checkCancelled(options.signal);
|
|
3787
|
-
options.showUrl?.(authorize.toString());
|
|
3788
|
-
const pastePromise = options.readPaste?.(controller.signal).then((text2) => {
|
|
3789
|
-
const query = new URLSearchParams(text2.includes("?") ? text2.slice(text2.indexOf("?") + 1) : text2);
|
|
3790
|
-
if (query.get("state") !== state || !query.get("code"))
|
|
3791
|
-
throw new CliError("authentication_error", "pasted login must contain the matching code and state");
|
|
3792
|
-
return query.get("code") ?? "";
|
|
3793
|
-
});
|
|
3794
|
-
void Promise.resolve().then(() => options.openBrowser(authorize.toString())).catch(() => {
|
|
3795
|
-
if (!options.readPaste)
|
|
3796
|
-
fail(new CliError("configuration_error", "could not open the browser; retry with --browser <program>"));
|
|
3797
|
-
});
|
|
3798
|
-
const code2 = await (pastePromise ? Promise.race([codePromise, pastePromise]) : codePromise);
|
|
3799
|
-
controller.abort();
|
|
3800
|
-
const tokens = await options.tokens.exchange({
|
|
3801
|
-
grant_type: "authorization_code",
|
|
3802
|
-
code: code2,
|
|
3803
|
-
redirect_uri: REDIRECT,
|
|
3804
|
-
code_verifier: verifier
|
|
3805
|
-
});
|
|
3806
|
-
return { loggedIn: true, scopes: tokens.scopes, credentialStorage: options.tokens.storageOf() };
|
|
3807
|
-
} finally {
|
|
3808
|
-
options.signal?.removeEventListener("abort", onAbort);
|
|
3809
|
-
clearTimeout(timer);
|
|
3810
|
-
controller.abort();
|
|
3811
|
-
server.close();
|
|
3812
|
-
server.closeAllConnections();
|
|
3813
|
-
}
|
|
3814
|
-
}, "login");
|
|
3815
|
-
|
|
3816
3740
|
// dist/models-commands.js
|
|
3817
3741
|
var addModelsCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
3818
3742
|
program.addCommand(modelCatalogueCommand({ command: "zm", appName: "zoom-cli", envPrefix: "ZM", description: "Zoom meetings", version: "" }, {
|
|
@@ -3827,7 +3751,7 @@ var addModelsCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
3827
3751
|
// dist/upgrade.js
|
|
3828
3752
|
import { join as join11 } from "node:path";
|
|
3829
3753
|
|
|
3830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
3831
3755
|
import { realpathSync } from "node:fs";
|
|
3832
3756
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
3833
3757
|
var QUIET_WORDS = [
|
|
@@ -3926,8 +3850,8 @@ var refuseAgentPermissions = /* @__PURE__ */ __name((command, key) => {
|
|
|
3926
3850
|
var addConfigCommands = /* @__PURE__ */ __name((program, { configPath, output, warn, named }) => {
|
|
3927
3851
|
const cfg = annotate(program.command("config"), { effects: NO_EFFECTS }).description("local Zoom configuration");
|
|
3928
3852
|
annotate(cfg.command("show"), { effects: LOCAL_READ }).description("show local configuration").action(() => {
|
|
3929
|
-
const { config, issues } = inspectConfig(configPath, permissionKeys(program));
|
|
3930
|
-
output(itemOf(config));
|
|
3853
|
+
const { config, issues, raw } = inspectConfig(configPath, permissionKeys(program));
|
|
3854
|
+
output(itemOf({ ...config, settings: settingRows(raw ?? {}, ZOOM_SETTINGS) }));
|
|
3931
3855
|
for (const issue of issues)
|
|
3932
3856
|
warn(`${issue.what}, so it is left out${issue.fix ? ` \u2014 \`${issue.fix}\` removes it` : ""}`);
|
|
3933
3857
|
});
|
|
@@ -3939,7 +3863,21 @@ var addConfigCommands = /* @__PURE__ */ __name((program, { configPath, output, w
|
|
|
3939
3863
|
refuseAgentPermissions(this, key);
|
|
3940
3864
|
output(itemOf(unsetConfig(configPath, key, named(), permissionKeys(program))));
|
|
3941
3865
|
});
|
|
3866
|
+
grantsAuthority(annotate(cfg.command("migrate"), { effects: LOCAL_WRITE, examples: ["zm config migrate"] })).description("write each setting the file lacks at its default, keeping yours").action(() => {
|
|
3867
|
+
const added = migrateConfig(configPath);
|
|
3868
|
+
output(itemOf({ config_file: configPath, added }));
|
|
3869
|
+
warn(added.length > 0 ? `added ${added.join(", ")} to ${configPath}` : `${configPath} already has every setting`);
|
|
3870
|
+
});
|
|
3942
3871
|
}, "addConfigCommands");
|
|
3872
|
+
var addAppCommand = /* @__PURE__ */ __name((program, { output, buffer, pretty }) => {
|
|
3873
|
+
annotate(program.command("app"), { effects: NO_EFFECTS, examples: ["zm app", "zm app --json"] }).description("what to enter when you make the Zoom app zm signs in with").action(() => {
|
|
3874
|
+
if (pretty())
|
|
3875
|
+
buffer(`${zoomAppChecklist()}
|
|
3876
|
+
`);
|
|
3877
|
+
else
|
|
3878
|
+
output(itemOf(zoomAppSetup()));
|
|
3879
|
+
});
|
|
3880
|
+
}, "addAppCommand");
|
|
3943
3881
|
var PASTE_PROMPT = "If the browser does not come back by itself, the address it ended on (code=\u2026&state=\u2026)";
|
|
3944
3882
|
var addSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
3945
3883
|
const { deps, getConfig, output, buffer, api, profile, tokens, fetch: fetch2, signal } = context;
|
|
@@ -3949,7 +3887,7 @@ var addSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3949
3887
|
sessionStatus: /* @__PURE__ */ __name(async (check2) => {
|
|
3950
3888
|
const config = getConfig();
|
|
3951
3889
|
const selected = profile();
|
|
3952
|
-
if (!config.
|
|
3890
|
+
if (!zoomClientId(config, deps.env ?? process.env))
|
|
3953
3891
|
return { configured: false, state: "not_configured", profile: selected, verified: false };
|
|
3954
3892
|
if (check2) {
|
|
3955
3893
|
if (program.opts().offline)
|
|
@@ -3978,15 +3916,22 @@ var addSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3978
3916
|
const session = program.commands.find((command) => command.name() === "session");
|
|
3979
3917
|
if (!session)
|
|
3980
3918
|
throw new CliError("configuration_error", "session command group is unavailable");
|
|
3981
|
-
const start = session.command("start").description("log in to Zoom through your browser").option("--browser <program>", "browser program").option("--credential-storage <storage>", "where the login is kept: keyring (the default, which falls back to a private file by itself when no keyring works), or file, not recommended", "keyring").addOption(answerStdinOption()).action(async (opts) => {
|
|
3919
|
+
const start = session.command("start").description("log in to Zoom through your browser").option("--browser <program>", "browser program").option("--client-id <id>", "the Public Client ID of your Zoom app; saved as zoom.client_id once you sign in").option("--credential-storage <storage>", "where the login is kept: keyring (the default, which falls back to a private file by itself when no keyring works), or file, not recommended", "keyring").addOption(answerStdinOption()).action(async (opts) => {
|
|
3982
3920
|
if (opts.credentialStorage !== "keyring" && opts.credentialStorage !== "file")
|
|
3983
3921
|
throw new CliError("validation_error", "--credential-storage takes keyring or file");
|
|
3984
3922
|
const storage = opts.credentialStorage;
|
|
3985
3923
|
const config = getConfig();
|
|
3986
3924
|
const selected = profile();
|
|
3987
3925
|
refuseCommandName(selected, commandWords(program), "zm");
|
|
3988
|
-
if (
|
|
3989
|
-
|
|
3926
|
+
if (opts.clientId !== void 0)
|
|
3927
|
+
checkedClientId(opts.clientId);
|
|
3928
|
+
const known = zoomApp({
|
|
3929
|
+
env: deps.env ?? process.env,
|
|
3930
|
+
configClientId: config.clientId,
|
|
3931
|
+
clientId: opts.clientId
|
|
3932
|
+
})?.client.clientId;
|
|
3933
|
+
if (!known && opts.answerStdin !== true)
|
|
3934
|
+
throw new CliError("configuration_error", SET_ZOOM_APP, { reason: CLIENT_ID_MISSING });
|
|
3990
3935
|
const globals = program.opts();
|
|
3991
3936
|
if (globals.offline)
|
|
3992
3937
|
throw new CliError("configuration_error", "login requires network access; remove --offline");
|
|
@@ -4001,8 +3946,10 @@ var addSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
4001
3946
|
answers: opts.answerStdin === true,
|
|
4002
3947
|
...deps.stdin ? { input: deps.stdin } : {}
|
|
4003
3948
|
});
|
|
3949
|
+
const clientId = known ?? checkedClientId(await steps.ask(CLIENT_ID_NEED, signal()));
|
|
3950
|
+
const chosen = opts.clientId ?? (known ? void 0 : clientId);
|
|
4004
3951
|
const done = await login({
|
|
4005
|
-
tokens: tokens().storedIn(storage),
|
|
3952
|
+
tokens: (chosen ? new TokenManager({ ...tokens().options, clientId, account: `${clientId}:${selected}` }) : tokens()).storedIn(storage),
|
|
4006
3953
|
signal: signal(),
|
|
4007
3954
|
openBrowser: /* @__PURE__ */ __name((url) => deps.openBrowser(url, opts.browser), "openBrowser"),
|
|
4008
3955
|
readPaste: steps.answers ? (stop) => steps.ask({ field: "redirect", secret: true, prompt: PASTE_PROMPT }, stop).catch((error) => stop.aborted ? new Promise(() => {
|
|
@@ -4014,6 +3961,8 @@ ${url}
|
|
|
4014
3961
|
`)
|
|
4015
3962
|
), "showUrl")
|
|
4016
3963
|
});
|
|
3964
|
+
if (chosen)
|
|
3965
|
+
setConfig(deps.configPath, "zoom.client_id", chosen);
|
|
4017
3966
|
addProfile(deps.configPath, selected);
|
|
4018
3967
|
output(itemOf({ ...done, profile: selected }));
|
|
4019
3968
|
});
|
|
@@ -4021,7 +3970,7 @@ ${url}
|
|
|
4021
3970
|
}, "addSessionCommands");
|
|
4022
3971
|
|
|
4023
3972
|
// dist/archive-import.js
|
|
4024
|
-
import { createHash as
|
|
3973
|
+
import { createHash as createHash5 } from "node:crypto";
|
|
4025
3974
|
var plans = /* @__PURE__ */ new WeakMap();
|
|
4026
3975
|
var preflightArchiveImport = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
4027
3976
|
const maximum = options.maxTotalBytes === void 0 ? 64 * 1024 ** 2 : options.maxTotalBytes;
|
|
@@ -4051,7 +4000,7 @@ var preflightArchiveImport = /* @__PURE__ */ __name(async (destination, options
|
|
|
4051
4000
|
};
|
|
4052
4001
|
group.assetIds.push(asset.id);
|
|
4053
4002
|
group.transcripts.push({
|
|
4054
|
-
source: `zoom-archive:vtt:${
|
|
4003
|
+
source: `zoom-archive:vtt:${createHash5("sha256").update(asset.id).digest("hex")}`,
|
|
4055
4004
|
contentHash: asset.sha256,
|
|
4056
4005
|
format: "vtt",
|
|
4057
4006
|
language: transcriptLanguage(cues.map((cue) => cue.text)),
|
|
@@ -4684,6 +4633,11 @@ var addMeetingSearchesCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
4684
4633
|
}, "addMeetingSearchesCommands");
|
|
4685
4634
|
|
|
4686
4635
|
// dist/meeting-stats-commands.js
|
|
4636
|
+
var groupingOf = /* @__PURE__ */ __name((value) => {
|
|
4637
|
+
if (!MEETING_COUNTS_GROUPINGS.includes(value))
|
|
4638
|
+
throw new CliError("validation_error", `--by takes ${MEETING_COUNTS_GROUPINGS.join(", ")}`);
|
|
4639
|
+
return value;
|
|
4640
|
+
}, "groupingOf");
|
|
4687
4641
|
var filters = /* @__PURE__ */ __name((command) => selectionOptions(command).option("--max-rows <n>", "most transcript lines to read (default and at most 500000)", bytes), "filters");
|
|
4688
4642
|
var requestOf = /* @__PURE__ */ __name((flags, signal) => {
|
|
4689
4643
|
const { request, zone, meta } = selectionOf(flags, signal);
|
|
@@ -4694,7 +4648,7 @@ var requestOf = /* @__PURE__ */ __name((flags, signal) => {
|
|
|
4694
4648
|
}, "requestOf");
|
|
4695
4649
|
var addMeetingStatsCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
4696
4650
|
const stats = program.commands.find((command) => command.name() === "stats") ?? annotate(program.command("stats"), { effects: NO_EFFECTS }).description("numbers about the stored meetings");
|
|
4697
|
-
const meetings = annotate(stats.command("meetings"), { effects: NO_EFFECTS }).description("talk time
|
|
4651
|
+
const meetings = annotate(stats.command("meetings"), { effects: NO_EFFECTS }).description("talk time by speaker and week; meetings and minutes by day, week or series");
|
|
4698
4652
|
annotate(filters(meetings.command("show")), {
|
|
4699
4653
|
effects: LOCAL_READ,
|
|
4700
4654
|
output: { entity: "meeting_stats" },
|
|
@@ -4719,6 +4673,20 @@ var addMeetingStatsCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
4719
4673
|
meta
|
|
4720
4674
|
}));
|
|
4721
4675
|
});
|
|
4676
|
+
annotate(selectionOptions(meetings.command("history")), {
|
|
4677
|
+
effects: LOCAL_READ,
|
|
4678
|
+
output: { entity: "meeting_counts" },
|
|
4679
|
+
examples: ["zm personal stats meetings history --by week --since-time 90d --json"]
|
|
4680
|
+
}).summary("meetings, minutes and transcripts per day, week or series").description("meetings, minutes and meetings with a transcript, per day, week or series; reads meetings only").requiredOption("--by <group>", `one row per ${MEETING_COUNTS_GROUPINGS.join(", ")}`, groupingOf).option("--limit <n>", "the newest days or weeks, or the busiest series (default 100)", bytes).action(async (flags) => {
|
|
4681
|
+
const { request, zone, meta } = selectionOf(flags, deps.signal());
|
|
4682
|
+
const found = await (await deps.counts())({
|
|
4683
|
+
...request,
|
|
4684
|
+
by: flags.by,
|
|
4685
|
+
timeZone: zone,
|
|
4686
|
+
...flags.limit === void 0 ? {} : { limit: flags.limit }
|
|
4687
|
+
});
|
|
4688
|
+
deps.output(itemOf(meetingCountsItem(found), { meta }));
|
|
4689
|
+
});
|
|
4722
4690
|
}, "addMeetingStatsCommands");
|
|
4723
4691
|
|
|
4724
4692
|
// dist/store-commands.js
|
|
@@ -4806,7 +4774,13 @@ var addStoreCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
4806
4774
|
if (!read2)
|
|
4807
4775
|
throw new CliError("configuration_error", "the selected store connector does not count meetings");
|
|
4808
4776
|
return read2;
|
|
4809
|
-
}, "read")
|
|
4777
|
+
}, "read"),
|
|
4778
|
+
counts: /* @__PURE__ */ __name(async () => {
|
|
4779
|
+
const read2 = (await connected()).meetingCounts;
|
|
4780
|
+
if (!read2)
|
|
4781
|
+
throw new CliError("configuration_error", "the selected store connector does not count meetings");
|
|
4782
|
+
return read2;
|
|
4783
|
+
}, "counts")
|
|
4810
4784
|
});
|
|
4811
4785
|
const reader = /* @__PURE__ */ __name((name, what) => async () => {
|
|
4812
4786
|
const read2 = (await connected())[name];
|
|
@@ -4949,9 +4923,10 @@ var createWatchService = /* @__PURE__ */ __name(({ deps, getConfig, profile, tok
|
|
|
4949
4923
|
if (offline())
|
|
4950
4924
|
throw new CliError("configuration_error", "API watching requires network access; remove --offline");
|
|
4951
4925
|
if (!deps.source) {
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4926
|
+
const clientId = zoomClientId(config, deps.env ?? process.env);
|
|
4927
|
+
if (!clientId)
|
|
4928
|
+
throw new CliError("configuration_error", SET_ZOOM_APP);
|
|
4929
|
+
if (tokens().options.clientId !== clientId)
|
|
4955
4930
|
throw new CliError("configuration_error", "the OAuth client changed before watch started; retry with matching configuration");
|
|
4956
4931
|
}
|
|
4957
4932
|
}
|
|
@@ -5436,8 +5411,8 @@ ${PROFILE_HELP}`);
|
|
|
5436
5411
|
const api = /* @__PURE__ */ __name(() => {
|
|
5437
5412
|
if (program.opts().offline)
|
|
5438
5413
|
throw new CliError("configuration_error", "the command requires network access; remove --offline");
|
|
5439
|
-
if (!getConfig().
|
|
5440
|
-
throw new CliError("configuration_error",
|
|
5414
|
+
if (!zoomClientId(getConfig(), deps.env ?? process.env))
|
|
5415
|
+
throw new CliError("configuration_error", SET_ZOOM_APP);
|
|
5441
5416
|
}, "api");
|
|
5442
5417
|
let activeAction = program;
|
|
5443
5418
|
program.hook("preAction", (_root, action) => {
|
|
@@ -5507,6 +5482,7 @@ ${PROFILE_HELP}`);
|
|
|
5507
5482
|
output(wholeList("list", items));
|
|
5508
5483
|
}, "outputItems");
|
|
5509
5484
|
addConfigCommands(program, { configPath: deps.configPath, output, warn: deps.diagnostic, named });
|
|
5485
|
+
addAppCommand(program, { output, buffer, pretty: /* @__PURE__ */ __name(() => formatOf() === "pretty" && !environmentOf(program).agent, "pretty") });
|
|
5510
5486
|
const fetchApi = /* @__PURE__ */ __name(() => fetchWithSignal(deps.fetch), "fetchApi");
|
|
5511
5487
|
const configured2 = configuredMeetingSource({ deps, getConfig, tokens, fetch: fetchApi, zones });
|
|
5512
5488
|
const source = configured2.source;
|
|
@@ -5525,6 +5501,10 @@ ${PROFILE_HELP}`);
|
|
|
5525
5501
|
}, "readFiles"),
|
|
5526
5502
|
now: deps.now,
|
|
5527
5503
|
write: /* @__PURE__ */ __name((value) => output(bodyOf(value)), "write"),
|
|
5504
|
+
// inCommandRun would open a second run beside zm's own commandRuns, so a sync would be kept twice.
|
|
5505
|
+
inRun: /* @__PURE__ */ __name((_command, body) => body(), "inRun"),
|
|
5506
|
+
budgetOf: runBudgetOf,
|
|
5507
|
+
newFileOutput: writesNewFileOnlyWith,
|
|
5528
5508
|
writeFile: deps.writeFile ? async (path, content) => {
|
|
5529
5509
|
checkCancelled(signal());
|
|
5530
5510
|
await deps.writeFile?.(path, content, { signal: signal() });
|
|
@@ -5767,11 +5747,7 @@ var zoomDefinition = /* @__PURE__ */ __name((deps, onFailure) => {
|
|
|
5767
5747
|
zoomRunsCommand(),
|
|
5768
5748
|
appDoctorCommand(ZM, shared, {
|
|
5769
5749
|
packageName: "@wirecat/zoom-cli",
|
|
5770
|
-
oauthClient: /* @__PURE__ */ __name(() =>
|
|
5771
|
-
if (!configured(deps.configPath)?.clientId)
|
|
5772
|
-
throw new CliError("configuration_error", "zoom.client_id is not set");
|
|
5773
|
-
return { client: "own" };
|
|
5774
|
-
}, "oauthClient")
|
|
5750
|
+
oauthClient: /* @__PURE__ */ __name(() => zoomClientReport(configured(deps.configPath), deps.env ?? process.env), "oauthClient")
|
|
5775
5751
|
}),
|
|
5776
5752
|
appMcpCommand(ZM, shared, {
|
|
5777
5753
|
name: "Zoom",
|