@wirecat/zoom-cli 0.81.0 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/contracts/wirecat.json +54 -54
- package/dist/answers.d.ts +56 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/bin/main.js +2 -15
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-3HDWEZ5M.js +47 -0
- package/dist/bundle/{all-profiles-3ASMN35R.js → all-profiles-RY2OMSDL.js} +12 -12
- package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
- package/dist/bundle/{anthropic-XXI53VNI.js → anthropic-36VPSF7B.js} +6 -6
- package/dist/bundle/{app-server-B7WLNZNQ.js → app-server-ZVJVUGB7.js} +79 -76
- package/dist/bundle/{bun-2FLR4IV4.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-3NNHTOGM.js → bun-sqlite-IOPYIUA7.js} +7 -7
- package/dist/bundle/{chunk-L54I45OX.js → chunk-26TW5RZ6.js} +33 -317
- package/dist/bundle/{chunk-JK24A3RP.js → chunk-2DK5BBFF.js} +3 -3
- package/dist/bundle/{chunk-4VOCXLMJ.js → chunk-2IBKKVVZ.js} +6 -6
- package/dist/bundle/{chunk-WKNYNK7W.js → chunk-2S54TM4N.js} +4 -4
- package/dist/bundle/{chunk-WHXYPLUE.js → chunk-3AQHKXVR.js} +4 -4
- package/dist/bundle/{chunk-YISJJNXT.js → chunk-3CW2C7ZA.js} +3 -3
- package/dist/bundle/{chunk-77TJ3AJH.js → chunk-3KUEZK5Z.js} +3 -3
- package/dist/bundle/{chunk-NQGGTO3B.js → chunk-3PXUQFHX.js} +8 -8
- package/dist/bundle/{chunk-N5ROXGY4.js → chunk-3QN5KDFZ.js} +167 -167
- package/dist/bundle/{chunk-AWJQ6FAX.js → chunk-434YFJAE.js} +2 -2
- package/dist/bundle/{chunk-4BU3LRTB.js → chunk-575JMTDR.js} +19 -18
- package/dist/bundle/{chunk-NM5XMKWO.js → chunk-5B2LV4MS.js} +2 -1
- package/dist/bundle/{chunk-3M436OO2.js → chunk-5WL5RHOO.js} +7 -102
- package/dist/bundle/{chunk-PS7HQ5LQ.js → chunk-6C7ESL5N.js} +3 -3
- package/dist/bundle/{chunk-SRUAUMBL.js → chunk-6E4KLYNP.js} +12 -12
- package/dist/bundle/chunk-7JDXR75Q.js +465 -0
- package/dist/bundle/{chunk-L2ERFXB7.js → chunk-AK3H2C65.js} +40 -31
- package/dist/bundle/{chunk-OEQNP56V.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-35FVYRH5.js → chunk-AQLUAQXJ.js} +37 -180
- package/dist/bundle/{chunk-EPASOAEI.js → chunk-ASTLGFTR.js} +284 -184
- package/dist/bundle/{chunk-YNWBRDBX.js → chunk-ATHBB7OU.js} +2 -2
- package/dist/bundle/{chunk-ZFRYFDZN.js → chunk-B2NM65RD.js} +14 -6
- package/dist/bundle/{chunk-VQTYJ6XH.js → chunk-B4KHDXJE.js} +3 -3
- package/dist/bundle/{chunk-G3DWMG7Y.js → chunk-BAFC7WNI.js} +4 -4
- package/dist/bundle/{chunk-2GNGR265.js → chunk-BBGJQMRI.js} +1 -1
- package/dist/bundle/{chunk-C4BBCSGK.js → chunk-BTLZYRIW.js} +6 -6
- package/dist/bundle/{chunk-T2BHIC37.js → chunk-BZDS2X6Y.js} +65 -65
- package/dist/bundle/{chunk-3UX4VJWD.js → chunk-C7JPYWYQ.js} +3 -4
- package/dist/bundle/{chunk-R4CXFYQN.js → chunk-CDQUW25G.js} +180 -38
- package/dist/bundle/{chunk-YJKXCINQ.js → chunk-CJWGJBHW.js} +274 -60
- package/dist/bundle/{chunk-F2J2FQUB.js → chunk-D7RCUODT.js} +9 -9
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-LGESUPKO.js → chunk-DQJECJUE.js} +25 -90
- package/dist/bundle/{chunk-MA4UJNUI.js → chunk-E4JQ3MCW.js} +12 -12
- package/dist/bundle/{chunk-GW2A2FJH.js → chunk-E4ODYLEK.js} +8 -8
- package/dist/bundle/{chunk-Q26UFIH4.js → chunk-EE45N67Q.js} +16 -3
- package/dist/bundle/{chunk-5SEBLX6B.js → chunk-EEEU4MKK.js} +12 -12
- package/dist/bundle/{chunk-YRDQ54G5.js → chunk-ESN3W2MZ.js} +24 -11
- package/dist/bundle/{chunk-M7OYEMLI.js → chunk-ETIZGA4P.js} +7 -7
- package/dist/bundle/{chunk-IVZACJ6X.js → chunk-F44QK6CK.js} +4 -4
- package/dist/bundle/{chunk-JKEMW6E4.js → chunk-FH2UFNH6.js} +2 -2
- package/dist/bundle/{chunk-XYQVVW4R.js → chunk-FTH6WGYO.js} +1 -1
- package/dist/bundle/chunk-FWACRG4X.js +160 -0
- package/dist/bundle/chunk-G5SZL7G2.js +150 -0
- package/dist/bundle/{chunk-GDRFVBCB.js → chunk-G6CHEFAG.js} +2 -2
- package/dist/bundle/{chunk-2ELGSNX3.js → chunk-GHJD7PE6.js} +170 -170
- package/dist/bundle/{chunk-LECMHK2F.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-4ZXJ4AZW.js → chunk-H6A4NWYJ.js} +322 -45
- package/dist/bundle/{chunk-D26K6756.js → chunk-HKLRI2LB.js} +6 -6
- package/dist/bundle/{chunk-R6HP2XKD.js → chunk-HMD4FZYY.js} +5 -5
- package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-HO4JGD4Q.js} +1 -1
- package/dist/bundle/chunk-HUAHLO6N.js +29 -0
- package/dist/bundle/{chunk-UHMJSSQO.js → chunk-IANKXHSE.js} +1 -1
- package/dist/bundle/{chunk-QFK52FG6.js → chunk-IQZXFWFI.js} +3 -3
- package/dist/bundle/{chunk-GPRJXJC7.js → chunk-ISQ23VKV.js} +22 -1
- package/dist/bundle/{chunk-ZLYICF6A.js → chunk-JEH33ZCD.js} +4 -4
- package/dist/bundle/{chunk-IDUKCXL7.js → chunk-JUNQYWQ2.js} +13 -9
- package/dist/bundle/{chunk-337ALCXQ.js → chunk-JUXMVQWJ.js} +312 -153
- package/dist/bundle/{chunk-5EWYDHBH.js → chunk-KHQDWYCG.js} +2 -2
- package/dist/bundle/{chunk-FMMYBVCH.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/chunk-LBGT6W4R.js +377 -0
- package/dist/bundle/{chunk-UUVWAVKN.js → chunk-LN7HRYTH.js} +3 -3
- package/dist/bundle/{chunk-NS3JWBDR.js → chunk-MEB7HBTM.js} +6 -6
- package/dist/bundle/{chunk-K7CTCDYX.js → chunk-MEEFWYX3.js} +6 -6
- package/dist/bundle/{chunk-BQBC2WIG.js → chunk-MNOAMJ6H.js} +1 -1
- package/dist/bundle/{chunk-Y7XJA4EW.js → chunk-MYHPXJDG.js} +4 -4
- package/dist/bundle/{chunk-7JWVPJIP.js → chunk-NGI37RFW.js} +10 -10
- package/dist/bundle/{chunk-437DLSB3.js → chunk-NZMWD7Y3.js} +17227 -13055
- package/dist/bundle/chunk-O6IECJRM.js +54 -0
- package/dist/bundle/{chunk-LVCCZI5A.js → chunk-OBWL3BUV.js} +39 -39
- package/dist/bundle/{chunk-GCAJW4SR.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/chunk-OGTN2KVG.js +147 -0
- package/dist/bundle/{chunk-B2WBWKYN.js → chunk-OQYZ3W4K.js} +12 -12
- package/dist/bundle/{chunk-IFM4G4MT.js → chunk-P3ZCTYGW.js} +4 -4
- package/dist/bundle/{chunk-VAW7QGJA.js → chunk-PVEBAHFU.js} +3 -3
- package/dist/bundle/{chunk-IYNICUCC.js → chunk-R2B6PUVI.js} +4 -4
- package/dist/bundle/{chunk-D7CDHBDX.js → chunk-R6IA5UQB.js} +1 -1
- package/dist/bundle/{chunk-T7QPZYRZ.js → chunk-RLOH7RDN.js} +7 -7
- package/dist/bundle/{chunk-V3ZTAAJ6.js → chunk-RQ4AXSCJ.js} +8 -8
- package/dist/bundle/{chunk-4BXLHSXY.js → chunk-RYGTCRFZ.js} +2 -2
- package/dist/bundle/{chunk-XWKUGAG6.js → chunk-S4PXWIE4.js} +85 -87
- package/dist/bundle/{chunk-ZMAPXIGC.js → chunk-SDZZYZLL.js} +2 -2
- package/dist/bundle/{chunk-ZNAX7GUV.js → chunk-SHQAYUK6.js} +8 -8
- package/dist/bundle/{chunk-YUDVRFXN.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-EEBSKMEA.js → chunk-TDWPOSPR.js} +12 -12
- package/dist/bundle/{chunk-WIX6BFRF.js → chunk-TER3N27H.js} +8 -8
- package/dist/bundle/{chunk-UMPUY77T.js → chunk-TMTNP7QN.js} +10 -10
- package/dist/bundle/{chunk-BZXHJKKI.js → chunk-TO5UEWXR.js} +2 -2
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-YIIGF643.js → chunk-UAWSINMC.js} +10 -10
- package/dist/bundle/{chunk-RQFRXUI4.js → chunk-UBH7YF3C.js} +200 -112
- package/dist/bundle/{chunk-MBBR7QHI.js → chunk-UEAE3JUU.js} +2641 -1150
- package/dist/bundle/{chunk-2RFWRJFK.js → chunk-UHR363OD.js} +14 -10
- package/dist/bundle/{chunk-RRYHLP3A.js → chunk-UM52A76S.js} +6 -6
- package/dist/bundle/chunk-URP6BTHN.js +624 -0
- package/dist/bundle/{chunk-HHQROAJQ.js → chunk-UWQEAA6S.js} +1 -1
- package/dist/bundle/{chunk-DMJLJVD3.js → chunk-VR7QZGRU.js} +7 -7
- package/dist/bundle/{chunk-QNG27PGH.js → chunk-VRH5PBSL.js} +21 -17
- package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
- package/dist/bundle/{chunk-NX3BLISW.js → chunk-VTYNLTDW.js} +6 -6
- package/dist/bundle/{chunk-HIFPHARA.js → chunk-WY7XG6TE.js} +4 -4
- package/dist/bundle/{chunk-IBYGNUO7.js → chunk-XEOZTA3H.js} +1 -1
- package/dist/bundle/{chunk-4FSH7K6N.js → chunk-XH23ML2V.js} +2 -2
- package/dist/bundle/{chunk-VXD65V67.js → chunk-XYF76A26.js} +2224 -2288
- package/dist/bundle/{chunk-J5EHZBO5.js → chunk-ZDYJAEVB.js} +19 -3
- package/dist/bundle/{chunk-FXZPAGHT.js → chunk-ZJ63HDBT.js} +2 -2
- package/dist/bundle/{chunk-N62P5FY4.js → chunk-ZT4ZPUIO.js} +12 -12
- package/dist/bundle/{cli-WTGAGSXV.js → cli-JK6PQSSN.js} +133 -116
- package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
- package/dist/bundle/{command-server-entry-47CAYN3E.js → command-server-entry-DJLGN62J.js} +36 -35
- package/dist/bundle/config-TYYMV3HV.js +118 -0
- package/dist/bundle/{decode-2G7QS5IQ.js → decode-ZZICNNFF.js} +6 -6
- package/dist/bundle/{dispatch-ZAP3KBVJ.js → dispatch-FKMIPCPQ.js} +9 -9
- package/dist/bundle/{dist-WY6R3WH7.js → dist-NQPF25XI.js} +52 -49
- package/dist/bundle/{echarts-YRRVLEX3.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-B5H3OW2O.js → embed-T64EUKUI.js} +7 -7
- package/dist/bundle/{embedder-3O73SP6Y.js → embedder-ZEKISZXI.js} +10 -10
- package/dist/bundle/{failure-EYGW7JMC.js → failure-XTWBYI2A.js} +3 -3
- package/dist/bundle/first-run-ZFNY4RRH.js +29 -0
- package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
- package/dist/bundle/{folders-4CGFWM6H.js → folders-ROKVKSCT.js} +5 -5
- package/dist/bundle/{instructions-AG7SRWTR.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/{main-DOGY6FJP.js → main-GCK3VYAA.js} +27 -37
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
- package/dist/bundle/meeting-model-MVUW7UPQ.js +26 -0
- package/dist/bundle/{meeting-semantic-FOEBWV3P.js → meeting-semantic-IF633WGX.js} +8 -8
- package/dist/bundle/{meetings-PVE4C2NF.js → meetings-RY2AAPHV.js} +7 -7
- package/dist/bundle/{node-GJQYN4FT.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-MLRYKVCQ.js → node-sqlite-ASAZJNHE.js} +8 -8
- package/dist/bundle/{oauth-AC55C6SG.js → oauth-4U3OCK3W.js} +8 -8
- package/dist/bundle/oauth-AJARLPSY.js +46 -0
- package/dist/bundle/{open-3LGTYP6M.js → open-SEJRY2ZI.js} +6 -6
- package/dist/bundle/openai-FZDSC2AA.js +28 -0
- package/dist/bundle/{output-file-FXMTTLOI.js → output-file-RYIOIXMD.js} +6 -6
- package/dist/bundle/{process-MEKCZMX3.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-E5BSSIGY.js → program-OYLVYA4Z.js} +186 -247
- package/dist/bundle/{prompt-AIA6QSZK.js → prompt-BCRD64F4.js} +6 -6
- package/dist/bundle/public-SVJILCNI.js +206 -0
- package/dist/bundle/{recognize-M57VNTEV.js → recognize-25ITJWGX.js} +5 -5
- package/dist/bundle/{remote-3OTENZ7Z.js → remote-5FBAJX7O.js} +11 -11
- package/dist/bundle/{rerank-P5WHDFDU.js → rerank-2HGWWORY.js} +8 -8
- package/dist/bundle/run-log-7HRF4Y47.js +145 -0
- package/dist/bundle/{serve-BRLC2QVV.js → serve-RL35MSJD.js} +10 -10
- package/dist/bundle/{server-25NF7DMS.js → server-QUSBWACP.js} +71 -68
- package/dist/bundle/server-SCK2SRDK.js +96 -0
- package/dist/bundle/{services-MJE43OGD.js → services-BGRIQNDC.js} +66 -60
- package/dist/bundle/{speech-4AVCWTQH.js → speech-4W3ZMTFK.js} +25 -25
- package/dist/bundle/{sqlite-runtime-U4TQXWMC.js → sqlite-runtime-K3KLRZCV.js} +7 -7
- package/dist/bundle/{state-GNUGVMY7.js → state-GYL4C74G.js} +7 -7
- package/dist/bundle/{store-KBFZVQWF.js → store-27UQMNEO.js} +28 -26
- package/dist/bundle/{store-MHVBFUBB.js → store-NLYH5SQX.js} +64 -46
- package/dist/bundle/store-connection-CZILWRSR.js +112 -0
- package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
- package/dist/bundle/{streaming-6F7AFEHD.js → streaming-73EKEGPF.js} +7 -7
- package/dist/bundle/surface-CV3C4RV2.js +82 -0
- package/dist/bundle/tokens-PY3S22LY.js +27 -0
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-YTGOZ2FS.js → zoom-app-4F4YY4OI.js} +11 -9
- package/dist/commands.d.ts +1 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -33
- package/dist/commands.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -12
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +3 -5
- package/dist/program.d.ts.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +6 -1
- package/dist/run.js.map +1 -1
- package/dist/setup-commands.d.ts +5 -14
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +7 -142
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +20 -44
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +95 -308
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.js +1 -1
- package/dist/zoom-app.js.map +1 -1
- package/dist/zoom-session.d.ts +6 -0
- package/dist/zoom-session.d.ts.map +1 -0
- package/dist/zoom-session.js +72 -0
- package/dist/zoom-session.js.map +1 -0
- package/package.json +3 -3
- package/skills/zoom-cli/references/setup.md +2 -2
- package/dist/bundle/agent-VYAJCJLE.js +0 -45
- package/dist/bundle/answer-policy-PTH4F2DW.js +0 -129
- package/dist/bundle/chunk-46EF6P2J.js +0 -72
- package/dist/bundle/chunk-4B335BCJ.js +0 -330
- package/dist/bundle/chunk-EWEQ7AXL.js +0 -719
- package/dist/bundle/chunk-FXCR4DGU.js +0 -37
- package/dist/bundle/chunk-KZ3B6HW5.js +0 -31
- package/dist/bundle/chunk-TI4WJOEX.js +0 -789
- package/dist/bundle/chunk-UPR2S5IE.js +0 -773
- package/dist/bundle/command-contract-3IKVWPDL.js +0 -45
- package/dist/bundle/config-ZOGOKGTU.js +0 -116
- package/dist/bundle/first-run-MPKMDEMA.js +0 -29
- package/dist/bundle/first-screen-AIAAC3KF.js +0 -45
- package/dist/bundle/meeting-combined-YKPKTKGA.js +0 -26
- package/dist/bundle/meeting-model-HTXSGHNM.js +0 -26
- package/dist/bundle/openai-E2MSLVIX.js +0 -28
- package/dist/bundle/run-log-EOQ4EQDS.js +0 -143
- package/dist/bundle/server-EW2RL2EL.js +0 -93
- package/dist/bundle/store-connection-SKRUAI4L.js +0 -109
- package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +0 -81
- package/dist/bundle/surface-DWEWB5RG.js +0 -79
- package/dist/bundle/tokens-BB4MQBLH.js +0 -25
- package/dist/login.d.ts +0 -16
- package/dist/login.d.ts.map +0 -1
- package/dist/login.js +0 -98
- package/dist/login.js.map +0 -1
- /package/dist/bundle/{chunk-7O7XM37N.js → chunk-7ECP5ZQR.js} +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
privateFiles
|
|
5
|
+
} from "./chunk-JUXMVQWJ.js";
|
|
6
|
+
import {
|
|
7
|
+
CliError
|
|
8
|
+
} from "./chunk-IANKXHSE.js";
|
|
9
|
+
import {
|
|
10
|
+
__name
|
|
11
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
12
|
+
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/oauth/client-file.js
|
|
14
|
+
import { readFileSync } from "node:fs";
|
|
15
|
+
var readClientFile = /* @__PURE__ */ __name((location, options = {}) => {
|
|
16
|
+
if (!options.shipped && typeof location === "string") {
|
|
17
|
+
const mode = privateFiles({ files: [location], dirs: [] }, options.platform);
|
|
18
|
+
if (mode.checked && !mode.ok)
|
|
19
|
+
throw new CliError("configuration_error", `the client file can be read by other users of this computer; run chmod 600 ${location} and try again`, { reason: "sign-in.client-file-open" });
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
const { installed } = JSON.parse(readFileSync(location, "utf8"));
|
|
23
|
+
const { client_id: clientId, client_secret: clientSecret } = installed;
|
|
24
|
+
if (typeof clientId !== "string" || !clientId)
|
|
25
|
+
throw new TypeError("client_id");
|
|
26
|
+
if (clientSecret !== void 0 && typeof clientSecret !== "string")
|
|
27
|
+
throw new TypeError("client_secret");
|
|
28
|
+
return { clientId, ...clientSecret ? { clientSecret } : {} };
|
|
29
|
+
} catch {
|
|
30
|
+
throw options.invalid ?? new CliError("configuration_error", "could not read a Desktop app OAuth client JSON from the client file; its contents were not logged", { reason: "sign-in.client-file-invalid" });
|
|
31
|
+
}
|
|
32
|
+
}, "readClientFile");
|
|
33
|
+
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/oauth/provider.js
|
|
35
|
+
var googleProvider = /* @__PURE__ */ __name((client, { loginHint } = {}) => ({
|
|
36
|
+
id: "google",
|
|
37
|
+
name: "Google",
|
|
38
|
+
authorizeUrl: "https://accounts.google.com/o/oauth2/v2/auth",
|
|
39
|
+
tokenUrl: "https://oauth2.googleapis.com/token",
|
|
40
|
+
revokeUrl: "https://oauth2.googleapis.com/revoke",
|
|
41
|
+
client,
|
|
42
|
+
redirect: { kind: "loopback" },
|
|
43
|
+
// Without offline access Google returns no refresh token; without consent it does not return one again.
|
|
44
|
+
authorizeParams: {
|
|
45
|
+
access_type: "offline",
|
|
46
|
+
prompt: "select_account consent",
|
|
47
|
+
...loginHint ? { login_hint: loginHint } : {}
|
|
48
|
+
}
|
|
49
|
+
}), "googleProvider");
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
readClientFile,
|
|
53
|
+
googleProvider
|
|
54
|
+
};
|
|
@@ -12,22 +12,22 @@ import {
|
|
|
12
12
|
refuseWriteBeforeConnecting,
|
|
13
13
|
registerPrompts,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AK3H2C65.js";
|
|
16
16
|
import {
|
|
17
17
|
skillResources
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MEEFWYX3.js";
|
|
19
19
|
import {
|
|
20
20
|
StdioServerTransport,
|
|
21
21
|
answeredWire,
|
|
22
22
|
serveStdio
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AQ5RIOUE.js";
|
|
24
24
|
import {
|
|
25
25
|
runCommandForAgent,
|
|
26
26
|
toolsFromCommands
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CDQUW25G.js";
|
|
28
28
|
import {
|
|
29
29
|
instructions
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OEEWVKJX.js";
|
|
31
31
|
import {
|
|
32
32
|
BinaryResource,
|
|
33
33
|
Picture,
|
|
@@ -46,49 +46,49 @@ import {
|
|
|
46
46
|
tierOf,
|
|
47
47
|
tool,
|
|
48
48
|
toolKey
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-575JMTDR.js";
|
|
50
50
|
import {
|
|
51
51
|
agentJson
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-E4ODYLEK.js";
|
|
53
53
|
import {
|
|
54
54
|
callerOf,
|
|
55
55
|
callingAgent
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-G6CHEFAG.js";
|
|
57
57
|
import {
|
|
58
58
|
mcpHttpMarker
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-3AQHKXVR.js";
|
|
60
60
|
import {
|
|
61
61
|
McpServer,
|
|
62
62
|
ResourceTemplate
|
|
63
63
|
} from "./chunk-PL5P7UKW.js";
|
|
64
64
|
import {
|
|
65
65
|
connectedFor
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-AQLUAQXJ.js";
|
|
67
67
|
import {
|
|
68
68
|
wholeList
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-TER3N27H.js";
|
|
70
70
|
import {
|
|
71
71
|
lackedNeed
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-ZDYJAEVB.js";
|
|
73
73
|
import {
|
|
74
74
|
guardFor,
|
|
75
75
|
imageSize,
|
|
76
76
|
servicesFor,
|
|
77
77
|
storedDeps
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-UEAE3JUU.js";
|
|
79
79
|
import {
|
|
80
80
|
capability,
|
|
81
81
|
dateWindow
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-VRH5PBSL.js";
|
|
83
83
|
import {
|
|
84
84
|
warmEmbedders
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-BTLZYRIW.js";
|
|
86
86
|
import {
|
|
87
87
|
stdinFieldOf
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-GZ7WBU5Y.js";
|
|
89
89
|
import {
|
|
90
90
|
findCommand
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-HMD4FZYY.js";
|
|
92
92
|
import {
|
|
93
93
|
DEFAULT_OUTPUT_BYTES,
|
|
94
94
|
changesAuthorityAt,
|
|
@@ -102,31 +102,31 @@ import {
|
|
|
102
102
|
rootOf2 as rootOf,
|
|
103
103
|
sealed,
|
|
104
104
|
snakeKeys
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-ASTLGFTR.js";
|
|
106
106
|
import {
|
|
107
107
|
readOnlyLockOf
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-ZJ63HDBT.js";
|
|
109
109
|
import {
|
|
110
110
|
withCaller
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-RLOH7RDN.js";
|
|
112
112
|
import {
|
|
113
113
|
fetchesAt,
|
|
114
114
|
levelFor,
|
|
115
115
|
readKeysForCommand
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-RQ4AXSCJ.js";
|
|
117
117
|
import {
|
|
118
118
|
openStore,
|
|
119
119
|
pdfPreviewLimits
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-NZMWD7Y3.js";
|
|
121
121
|
import {
|
|
122
122
|
typedCommand
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-HKLRI2LB.js";
|
|
124
124
|
import {
|
|
125
125
|
isCliFailure
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-B2NM65RD.js";
|
|
127
127
|
import {
|
|
128
128
|
timezoneOf
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-UAWSINMC.js";
|
|
130
130
|
import {
|
|
131
131
|
description,
|
|
132
132
|
errorObjectOf,
|
|
@@ -143,21 +143,21 @@ import {
|
|
|
143
143
|
regex,
|
|
144
144
|
strictObject,
|
|
145
145
|
string
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-ESN3W2MZ.js";
|
|
147
147
|
import {
|
|
148
148
|
CliError
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-IANKXHSE.js";
|
|
150
150
|
import {
|
|
151
151
|
visibleControls
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-BBGJQMRI.js";
|
|
153
153
|
import {
|
|
154
154
|
__name
|
|
155
155
|
} from "./chunk-ZVVMGPBJ.js";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
158
158
|
import { randomUUID } from "node:crypto";
|
|
159
159
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
160
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
161
161
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
162
162
|
let held;
|
|
163
163
|
return {
|
|
@@ -176,7 +176,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
176
176
|
};
|
|
177
177
|
}, "agentLog");
|
|
178
178
|
|
|
179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
179
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
180
180
|
var LISTED = 100;
|
|
181
181
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
182
182
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -214,7 +214,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
214
214
|
});
|
|
215
215
|
}, "registerResources");
|
|
216
216
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
218
218
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
219
219
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
220
220
|
var MessengerSession = class {
|
|
@@ -289,7 +289,7 @@ var MessengerSession = class {
|
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
|
|
292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
292
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
293
293
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
294
294
|
const _command = messenger.app.command;
|
|
295
295
|
return {
|
|
@@ -297,7 +297,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
297
297
|
output: { entity: "attachment_bytes", list: false },
|
|
298
298
|
title: "Read bytes of one retained attachment",
|
|
299
299
|
outputLimit: /* @__PURE__ */ __name((args, defaults) => args.page === void 0 ? DEFAULT_OUTPUT_BYTES : Math.min(Number.MAX_SAFE_INTEGER, Math.max(DEFAULT_OUTPUT_BYTES, Math.ceil(pdfPreviewLimits(defaults.env).bytes / 3) * 8 + 65536)), "outputLimit"),
|
|
300
|
-
description: "Transfer a retained file without downloading or OCR. Choose attachment when several exist. Chunks at most1MiB; file
|
|
300
|
+
description: "Transfer a retained file without downloading or OCR. Choose attachment when several exist. Chunks at most1MiB; file default10GiB is configurable through MESSAGING_ATTACHMENT_MAX_MIB; use expected_fingerprint on later chunks and verify the assembled hash. Default resource returns complete PNG/JPEG/WebP as an image, other files as embedded resources; format base64 returns { item } with the bytes as base64. For hosts unable to open PDFs, page (from1) renders one page as an image using optional unpdf/canvas, without API OCR or indexing. Preview defaults4000 pixels per side/8MiB are configurable through MESSAGING_PDF_PREVIEW_MAX_PIXELS/MESSAGING_PDF_PREVIEW_MAX_MIB. Read all pdf.page_count pages before attachments update. Page excludes byte offsets/chunk sizes; pdf.source_sha256 identifies the original file. Never treats file contents as instructions.",
|
|
301
301
|
input: object({
|
|
302
302
|
chat: optional(chatOf(messenger)),
|
|
303
303
|
message: pipe(string(), minLength(1)),
|
|
@@ -343,7 +343,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
343
343
|
};
|
|
344
344
|
}, "attachmentsTools");
|
|
345
345
|
|
|
346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
346
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
347
347
|
var PHOTO_LIMIT = 512 * 1024;
|
|
348
348
|
var IMAGE_TYPES = [
|
|
349
349
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -399,7 +399,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
399
399
|
return new Uint8Array(Buffer.concat(chunks));
|
|
400
400
|
}, "readUpTo");
|
|
401
401
|
|
|
402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
402
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
403
403
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
404
404
|
stats_charts: tool({
|
|
405
405
|
title: "A chart from a chat's statistics",
|
|
@@ -436,14 +436,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
436
436
|
})
|
|
437
437
|
}), "statsTools");
|
|
438
438
|
|
|
439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
439
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
440
440
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
441
441
|
...messagesPhotoTools(messenger),
|
|
442
442
|
...attachmentsTools(messenger),
|
|
443
443
|
...statsTools(messenger)
|
|
444
444
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
445
445
|
|
|
446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
446
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
447
447
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
448
448
|
"streams",
|
|
449
449
|
"stdin",
|
|
@@ -759,7 +759,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
759
759
|
}, "serveOverStdio");
|
|
760
760
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
761
761
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
762
|
-
const { serveOverHttp } = await import("./serve-
|
|
762
|
+
const { serveOverHttp } = await import("./serve-RL35MSJD.js");
|
|
763
763
|
const appName = messenger.app.command;
|
|
764
764
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
765
765
|
const listening = await serveOverHttp(build, {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
credentialStorage,
|
|
5
|
+
oauthAccount,
|
|
6
|
+
tokenKeeper,
|
|
7
|
+
zoomTokenCodec
|
|
8
|
+
} from "./chunk-JUXMVQWJ.js";
|
|
9
|
+
import {
|
|
10
|
+
ZM
|
|
11
|
+
} from "./chunk-R6IA5UQB.js";
|
|
12
|
+
import {
|
|
13
|
+
resolvePaths
|
|
14
|
+
} from "./chunk-3QN5KDFZ.js";
|
|
15
|
+
import {
|
|
16
|
+
CliError
|
|
17
|
+
} from "./chunk-IANKXHSE.js";
|
|
18
|
+
import {
|
|
19
|
+
__name
|
|
20
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
21
|
+
|
|
22
|
+
// dist/tokens.js
|
|
23
|
+
var REDIRECT = "https://wirecat.dev/zoom-callback";
|
|
24
|
+
var ZOOM_CODEC = { ...zoomTokenCodec, rotating: true };
|
|
25
|
+
var zoomProvider = /* @__PURE__ */ __name((clientId) => ({
|
|
26
|
+
id: "zoom",
|
|
27
|
+
name: "Zoom",
|
|
28
|
+
authorizeUrl: "https://zoom.us/oauth/authorize",
|
|
29
|
+
tokenUrl: "https://zoom.us/oauth/token",
|
|
30
|
+
client: { clientId },
|
|
31
|
+
redirect: { kind: "relay", url: REDIRECT }
|
|
32
|
+
}), "zoomProvider");
|
|
33
|
+
var legacyAccountsOf = /* @__PURE__ */ __name((service, clientId, profile) => service && clientId ? [{ service, account: `${clientId}:${profile}` }] : [], "legacyAccountsOf");
|
|
34
|
+
var tokensOf = /* @__PURE__ */ __name((set) => ({
|
|
35
|
+
accessToken: set.accessToken ?? "",
|
|
36
|
+
refreshToken: set.refreshToken,
|
|
37
|
+
expiresAt: set.expiresAt ?? 0,
|
|
38
|
+
scopes: set.scopes
|
|
39
|
+
}), "tokensOf");
|
|
40
|
+
var TokenManager = class _TokenManager {
|
|
41
|
+
static {
|
|
42
|
+
__name(this, "TokenManager");
|
|
43
|
+
}
|
|
44
|
+
options;
|
|
45
|
+
constructor(options) {
|
|
46
|
+
this.options = options;
|
|
47
|
+
}
|
|
48
|
+
forProfile(profile) {
|
|
49
|
+
const parent = this.options;
|
|
50
|
+
return new _TokenManager({
|
|
51
|
+
...this.rest(),
|
|
52
|
+
get clientId() {
|
|
53
|
+
return parent.clientId;
|
|
54
|
+
},
|
|
55
|
+
profile,
|
|
56
|
+
fetch: parent.fetch,
|
|
57
|
+
...parent.signal ? { signal: parent.signal } : {}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
withSignal(signal, fetcher = this.options.fetch) {
|
|
61
|
+
const parent = this.options;
|
|
62
|
+
let clientId;
|
|
63
|
+
const joined = signal && parent.signal ? AbortSignal.any([signal, parent.signal]) : signal ?? parent.signal;
|
|
64
|
+
return new _TokenManager({
|
|
65
|
+
...this.rest(),
|
|
66
|
+
get clientId() {
|
|
67
|
+
clientId ??= parent.clientId;
|
|
68
|
+
return clientId;
|
|
69
|
+
},
|
|
70
|
+
...parent.profile === void 0 ? {} : { profile: parent.profile },
|
|
71
|
+
fetch: fetcher,
|
|
72
|
+
...joined ? { signal: joined } : {}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
rest() {
|
|
76
|
+
const { keyring, service, configDir, isolated, legacyService, lockWaitMs, now, log } = this.options;
|
|
77
|
+
return {
|
|
78
|
+
keyring,
|
|
79
|
+
service,
|
|
80
|
+
...configDir === void 0 ? {} : { configDir },
|
|
81
|
+
...isolated === void 0 ? {} : { isolated },
|
|
82
|
+
...legacyService === void 0 ? {} : { legacyService },
|
|
83
|
+
...lockWaitMs === void 0 ? {} : { lockWaitMs },
|
|
84
|
+
...now ? { now } : {},
|
|
85
|
+
...log ? { log } : {}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
profile() {
|
|
89
|
+
const { profile } = this.options;
|
|
90
|
+
if (profile === void 0)
|
|
91
|
+
throw new CliError("configuration_error", "a Zoom sign-in belongs to a profile");
|
|
92
|
+
return profile;
|
|
93
|
+
}
|
|
94
|
+
configDir() {
|
|
95
|
+
return this.options.configDir ?? resolvePaths({ appName: ZM.appName, prefix: ZM.envPrefix }).config;
|
|
96
|
+
}
|
|
97
|
+
storage() {
|
|
98
|
+
const profile = this.profile();
|
|
99
|
+
return credentialStorage({
|
|
100
|
+
credentials: {
|
|
101
|
+
service: this.options.service,
|
|
102
|
+
configDir: this.configDir(),
|
|
103
|
+
keyring: this.options.keyring,
|
|
104
|
+
...this.options.isolated ? { isolated: true } : {}
|
|
105
|
+
},
|
|
106
|
+
account: oauthAccount("zoom", profile),
|
|
107
|
+
legacyAccounts: legacyAccountsOf(this.options.legacyService, this.options.clientId, profile),
|
|
108
|
+
codec: ZOOM_CODEC
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
load() {
|
|
112
|
+
const saved = this.storage().read();
|
|
113
|
+
return saved ? tokensOf(saved.tokens) : null;
|
|
114
|
+
}
|
|
115
|
+
save(tokens) {
|
|
116
|
+
this.storage().write({ tokens, client: { clientId: this.options.clientId } });
|
|
117
|
+
}
|
|
118
|
+
/** False when there was none. The old entry goes too, or the next read would copy it back. */
|
|
119
|
+
remove() {
|
|
120
|
+
const storage = this.storage();
|
|
121
|
+
storage.read();
|
|
122
|
+
return storage.remove().length > 0;
|
|
123
|
+
}
|
|
124
|
+
async tokens() {
|
|
125
|
+
const { clientId, fetch, now, signal, log, lockWaitMs } = this.options;
|
|
126
|
+
const keeper = tokenKeeper({
|
|
127
|
+
provider: zoomProvider(clientId),
|
|
128
|
+
storage: this.storage(),
|
|
129
|
+
lockDir: this.configDir(),
|
|
130
|
+
fetch,
|
|
131
|
+
signInCommand: `zm ${this.profile()} session start`,
|
|
132
|
+
...now ? { now } : {},
|
|
133
|
+
...signal ? { signal } : {},
|
|
134
|
+
...log ? { log } : {},
|
|
135
|
+
...lockWaitMs === void 0 ? {} : { lockWaitMs }
|
|
136
|
+
});
|
|
137
|
+
return tokensOf(await keeper.tokens());
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export {
|
|
142
|
+
REDIRECT,
|
|
143
|
+
ZOOM_CODEC,
|
|
144
|
+
zoomProvider,
|
|
145
|
+
legacyAccountsOf,
|
|
146
|
+
TokenManager
|
|
147
|
+
};
|
|
@@ -2,43 +2,43 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
validateVector
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IQZXFWFI.js";
|
|
6
6
|
import {
|
|
7
7
|
meaningFloor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2IBKKVVZ.js";
|
|
9
9
|
import {
|
|
10
10
|
RRF_K,
|
|
11
11
|
plainQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VTLQTQKY.js";
|
|
13
13
|
import {
|
|
14
14
|
MESSAGE_PARSING
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FWACRG4X.js";
|
|
16
16
|
import {
|
|
17
17
|
normalize
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HO4JGD4Q.js";
|
|
19
19
|
import {
|
|
20
20
|
MEETING_FIELD_NAMES,
|
|
21
21
|
formatMeetingReference,
|
|
22
22
|
liftMeetingFields,
|
|
23
23
|
parseMeetingReference,
|
|
24
24
|
refreshMeetingIndex
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BZDS2X6Y.js";
|
|
26
26
|
import {
|
|
27
27
|
implicitTextTerms,
|
|
28
28
|
parseLucene,
|
|
29
29
|
walkQuery
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UAWSINMC.js";
|
|
31
31
|
import {
|
|
32
32
|
CliError
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IANKXHSE.js";
|
|
34
34
|
import {
|
|
35
35
|
__name
|
|
36
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
39
39
|
import { createHash } from "node:crypto";
|
|
40
40
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
42
42
|
var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
43
43
|
var joinedHyphens = /* @__PURE__ */ __name((text) => (normalize(text).match(new RegExp("(?<![:\\p{L}\\p{N}-])\\p{L}[\\p{L}\\p{N}]*(?:-\\p{L}[\\p{L}\\p{N}]*)+", "gu")) ?? []).map((word) => word.replaceAll("-", "")), "joinedHyphens");
|
|
44
44
|
var scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
@@ -175,7 +175,7 @@ var questionLookup = /* @__PURE__ */ __name((text) => {
|
|
|
175
175
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
176
176
|
}, "questionLookup");
|
|
177
177
|
|
|
178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
178
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
179
179
|
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
180
180
|
const { project, tag, topic, ...input } = request;
|
|
181
181
|
input.signal?.throwIfAborted();
|
|
@@ -222,7 +222,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
222
222
|
return { ...result, selection };
|
|
223
223
|
}, "searchMeetingHits");
|
|
224
224
|
|
|
225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
225
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
226
226
|
var DEPTH = 200;
|
|
227
227
|
var cursorOf = /* @__PURE__ */ __name((value, key) => {
|
|
228
228
|
if (value === void 0)
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
endpoint
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3KUEZK5Z.js";
|
|
6
6
|
import {
|
|
7
7
|
check,
|
|
8
8
|
getDotPath,
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
strictObject,
|
|
18
18
|
string,
|
|
19
19
|
trim
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ESN3W2MZ.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IANKXHSE.js";
|
|
24
24
|
import {
|
|
25
25
|
__name
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
29
29
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
30
30
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
31
31
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KHQDWYCG.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IANKXHSE.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var EMPTY_TRIES = 3;
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BBGJQMRI.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|