@wirecat/zoom-cli 0.82.0 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/contracts/wirecat.json +54 -54
- 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-RULEKTDQ.js → all-profiles-RY2OMSDL.js} +8 -8
- package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
- package/dist/bundle/{anthropic-4NAQBZFL.js → anthropic-36VPSF7B.js} +3 -3
- package/dist/bundle/{app-server-VLR42U5L.js → app-server-ZVJVUGB7.js} +72 -71
- package/dist/bundle/{bun-OPDGMZZQ.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-HC6X4AOX.js → bun-sqlite-IOPYIUA7.js} +4 -4
- package/dist/bundle/{chunk-MAJJ4PG3.js → chunk-26TW5RZ6.js} +31 -315
- package/dist/bundle/{chunk-XQQVMECZ.js → chunk-2DK5BBFF.js} +1 -1
- package/dist/bundle/{chunk-BP4FYANF.js → chunk-2IBKKVVZ.js} +4 -4
- package/dist/bundle/{chunk-52Y4ETKU.js → chunk-2S54TM4N.js} +3 -3
- package/dist/bundle/{chunk-DCYFT3FR.js → chunk-3AQHKXVR.js} +4 -4
- package/dist/bundle/{chunk-VS6WURLX.js → chunk-3CW2C7ZA.js} +2 -2
- package/dist/bundle/{chunk-6QYZP4E2.js → chunk-3KUEZK5Z.js} +2 -2
- package/dist/bundle/{chunk-YJXJJ2XP.js → chunk-3PXUQFHX.js} +7 -7
- package/dist/bundle/{chunk-PSKTMMCO.js → chunk-575JMTDR.js} +17 -16
- package/dist/bundle/{chunk-QPHBK63S.js → chunk-5B2LV4MS.js} +2 -1
- package/dist/bundle/{chunk-OGNO35A2.js → chunk-5WL5RHOO.js} +5 -100
- package/dist/bundle/{chunk-ASBDFXLS.js → chunk-6C7ESL5N.js} +2 -2
- package/dist/bundle/{chunk-676C2LE6.js → chunk-6E4KLYNP.js} +10 -10
- package/dist/bundle/chunk-7JDXR75Q.js +465 -0
- package/dist/bundle/{chunk-UR5DBODY.js → chunk-AK3H2C65.js} +30 -26
- package/dist/bundle/{chunk-VB7FZOYX.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-UKAAAOPC.js → chunk-AQLUAQXJ.js} +23 -15
- package/dist/bundle/{chunk-V5EJSF2B.js → chunk-ASTLGFTR.js} +205 -170
- package/dist/bundle/{chunk-PWVJUIDQ.js → chunk-ATHBB7OU.js} +2 -2
- package/dist/bundle/{chunk-GTKPMYK7.js → chunk-B2NM65RD.js} +13 -5
- package/dist/bundle/{chunk-G6PETRMV.js → chunk-B4KHDXJE.js} +2 -2
- package/dist/bundle/{chunk-4HLQ2JGK.js → chunk-BAFC7WNI.js} +3 -3
- package/dist/bundle/{chunk-KVJ3I7UL.js → chunk-BTLZYRIW.js} +5 -5
- package/dist/bundle/{chunk-KKFY23AK.js → chunk-BZDS2X6Y.js} +61 -61
- package/dist/bundle/{chunk-VZ5PPYDG.js → chunk-C7JPYWYQ.js} +1 -1
- package/dist/bundle/{chunk-W5QHB53X.js → chunk-CDQUW25G.js} +10 -10
- package/dist/bundle/{chunk-AIKFOBDO.js → chunk-CJWGJBHW.js} +28 -8
- package/dist/bundle/{chunk-HP7A2ZOP.js → chunk-D7RCUODT.js} +7 -7
- package/dist/bundle/{chunk-LEKKTJKK.js → chunk-DQJECJUE.js} +23 -102
- package/dist/bundle/{chunk-B32KZRQM.js → chunk-E4JQ3MCW.js} +11 -11
- package/dist/bundle/{chunk-HZENBDW2.js → chunk-E4ODYLEK.js} +6 -6
- package/dist/bundle/{chunk-RQOZBTNI.js → chunk-EE45N67Q.js} +3 -3
- package/dist/bundle/{chunk-VB72LTSZ.js → chunk-EEEU4MKK.js} +11 -11
- package/dist/bundle/{chunk-EGTCQKHV.js → chunk-ETIZGA4P.js} +5 -5
- package/dist/bundle/{chunk-BDKVOU3I.js → chunk-F44QK6CK.js} +3 -3
- package/dist/bundle/{chunk-274SLQNW.js → chunk-FH2UFNH6.js} +2 -2
- package/dist/bundle/{chunk-3HC5F3P7.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-EQG3PIH2.js → chunk-G6CHEFAG.js} +2 -2
- package/dist/bundle/{chunk-66ALX4ZI.js → chunk-GHJD7PE6.js} +18 -18
- package/dist/bundle/{chunk-Q7ICVP25.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-UL2PXLKT.js → chunk-H6A4NWYJ.js} +320 -43
- package/dist/bundle/{chunk-WMANRJR5.js → chunk-HKLRI2LB.js} +6 -6
- package/dist/bundle/{chunk-L75SMSJR.js → chunk-HMD4FZYY.js} +3 -3
- package/dist/bundle/{chunk-2JHVQMVC.js → chunk-HO4JGD4Q.js} +1 -1
- package/dist/bundle/{chunk-WOPVBRPV.js → chunk-HUAHLO6N.js} +1 -1
- package/dist/bundle/{chunk-6VK332XS.js → chunk-IQZXFWFI.js} +2 -2
- package/dist/bundle/{chunk-NB7EOAUZ.js → chunk-ISQ23VKV.js} +1 -1
- package/dist/bundle/{chunk-QVYAV7F2.js → chunk-JEH33ZCD.js} +3 -3
- package/dist/bundle/{chunk-ICPJT672.js → chunk-JUNQYWQ2.js} +6 -6
- package/dist/bundle/{chunk-K5JGJIV2.js → chunk-JUXMVQWJ.js} +311 -152
- package/dist/bundle/{chunk-OBXQLFT5.js → chunk-KHQDWYCG.js} +1 -1
- package/dist/bundle/{chunk-GGMAIIVE.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/chunk-LBGT6W4R.js +377 -0
- package/dist/bundle/{chunk-JQ54DYAQ.js → chunk-LN7HRYTH.js} +1 -1
- package/dist/bundle/{chunk-G46WJ7YO.js → chunk-MEB7HBTM.js} +5 -5
- package/dist/bundle/{chunk-M7H4MCAX.js → chunk-MEEFWYX3.js} +3 -3
- package/dist/bundle/{chunk-73MOMNLL.js → chunk-MNOAMJ6H.js} +1 -1
- package/dist/bundle/{chunk-A6EZK5RG.js → chunk-MYHPXJDG.js} +1 -1
- package/dist/bundle/{chunk-HC6VN5CO.js → chunk-NGI37RFW.js} +7 -7
- package/dist/bundle/{chunk-2GP573Q4.js → chunk-NZMWD7Y3.js} +3656 -2697
- package/dist/bundle/chunk-O6IECJRM.js +54 -0
- package/dist/bundle/{chunk-Y6PVS55U.js → chunk-OBWL3BUV.js} +35 -35
- package/dist/bundle/{chunk-2XBDILVW.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/chunk-OGTN2KVG.js +147 -0
- package/dist/bundle/{chunk-GWGHH56B.js → chunk-OQYZ3W4K.js} +10 -10
- package/dist/bundle/{chunk-2CI2OEZQ.js → chunk-P3ZCTYGW.js} +2 -2
- package/dist/bundle/{chunk-OIPYBF43.js → chunk-PVEBAHFU.js} +2 -2
- package/dist/bundle/{chunk-2SWKQ7C4.js → chunk-R6IA5UQB.js} +1 -1
- package/dist/bundle/{chunk-T7IAWEBU.js → chunk-RLOH7RDN.js} +7 -7
- package/dist/bundle/{chunk-KJ6USQDZ.js → chunk-RQ4AXSCJ.js} +5 -5
- package/dist/bundle/{chunk-XQ2WL3HB.js → chunk-RYGTCRFZ.js} +2 -2
- package/dist/bundle/{chunk-N46F72AF.js → chunk-S4PXWIE4.js} +84 -86
- package/dist/bundle/{chunk-MQLPZBMQ.js → chunk-SDZZYZLL.js} +1 -1
- package/dist/bundle/{chunk-E745WZKY.js → chunk-SHQAYUK6.js} +6 -6
- package/dist/bundle/{chunk-3YM4B2GT.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-4N7PP76S.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-7QPIUMUG.js → chunk-TDWPOSPR.js} +10 -10
- package/dist/bundle/{chunk-ZED2CJW5.js → chunk-TER3N27H.js} +6 -6
- package/dist/bundle/{chunk-UQCTXZEP.js → chunk-TMTNP7QN.js} +9 -9
- package/dist/bundle/{chunk-KWU46LNK.js → chunk-TO5UEWXR.js} +2 -2
- package/dist/bundle/{chunk-OQFQ77AY.js → chunk-UBH7YF3C.js} +61 -59
- package/dist/bundle/{chunk-QVSL5WJ7.js → chunk-UEAE3JUU.js} +488 -436
- package/dist/bundle/{chunk-5KYQ53EF.js → chunk-UHR363OD.js} +7 -7
- package/dist/bundle/{chunk-7UVDPRFK.js → chunk-UM52A76S.js} +5 -5
- package/dist/bundle/{chunk-ZOYOXWJB.js → chunk-URP6BTHN.js} +34 -156
- package/dist/bundle/{chunk-N3JLO63O.js → chunk-UWQEAA6S.js} +1 -1
- package/dist/bundle/{chunk-OO4TRVPB.js → chunk-VR7QZGRU.js} +5 -5
- package/dist/bundle/{chunk-GBHMT2IU.js → chunk-VRH5PBSL.js} +13 -13
- package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
- package/dist/bundle/{chunk-ACI4YIEH.js → chunk-VTYNLTDW.js} +1 -1
- package/dist/bundle/{chunk-NEMX3UNN.js → chunk-WY7XG6TE.js} +2 -2
- package/dist/bundle/{chunk-AC6VJNMJ.js → chunk-XEOZTA3H.js} +1 -1
- package/dist/bundle/{chunk-QG6PILDO.js → chunk-XH23ML2V.js} +1 -1
- package/dist/bundle/{chunk-5HAUK3I4.js → chunk-XYF76A26.js} +1179 -783
- package/dist/bundle/{chunk-KQPUVXKX.js → chunk-ZDYJAEVB.js} +2 -2
- package/dist/bundle/{chunk-TKNM22OH.js → chunk-ZJ63HDBT.js} +1 -1
- package/dist/bundle/{chunk-5TU7Y5UW.js → chunk-ZT4ZPUIO.js} +11 -11
- package/dist/bundle/{cli-U4O5XB7J.js → cli-JK6PQSSN.js} +94 -79
- package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
- package/dist/bundle/{command-server-entry-KKH6ZWJV.js → command-server-entry-DJLGN62J.js} +31 -30
- package/dist/bundle/config-TYYMV3HV.js +118 -0
- package/dist/bundle/{decode-TPCNXEK4.js → decode-ZZICNNFF.js} +3 -3
- package/dist/bundle/{dist-7CLBCYZN.js → dist-NQPF25XI.js} +47 -46
- package/dist/bundle/{echarts-O3TNDAXJ.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-WCJSFVSK.js → embed-T64EUKUI.js} +4 -4
- package/dist/bundle/{embedder-TBBUPXBX.js → embedder-ZEKISZXI.js} +7 -7
- package/dist/bundle/{first-run-ELEMFW42.js → first-run-ZFNY4RRH.js} +8 -8
- package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
- package/dist/bundle/{folders-LXOL4N4S.js → folders-ROKVKSCT.js} +2 -2
- package/dist/bundle/{instructions-AMH5RWVJ.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/{main-YAA7WQ23.js → main-GCK3VYAA.js} +24 -34
- package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
- package/dist/bundle/{meeting-model-3BZJ3EQP.js → meeting-model-MVUW7UPQ.js} +10 -10
- package/dist/bundle/{meeting-semantic-3HU7I2SJ.js → meeting-semantic-IF633WGX.js} +3 -3
- package/dist/bundle/{meetings-XWMB6FOH.js → meetings-RY2AAPHV.js} +2 -2
- package/dist/bundle/{node-EGMCBAO7.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-IJBWENFX.js → node-sqlite-ASAZJNHE.js} +5 -5
- package/dist/bundle/{oauth-SZDDAP7A.js → oauth-4U3OCK3W.js} +5 -5
- package/dist/bundle/oauth-AJARLPSY.js +46 -0
- package/dist/bundle/{open-NS3TMKZX.js → open-SEJRY2ZI.js} +3 -3
- package/dist/bundle/{openai-4DN6WI3B.js → openai-FZDSC2AA.js} +12 -12
- package/dist/bundle/{output-file-2UB5JP3R.js → output-file-RYIOIXMD.js} +1 -1
- package/dist/bundle/{process-SGHEN6MQ.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-GVCGZP27.js → program-OYLVYA4Z.js} +174 -236
- package/dist/bundle/{prompt-HJFMPFVC.js → prompt-BCRD64F4.js} +3 -3
- package/dist/bundle/{public-C2ZB2AGQ.js → public-SVJILCNI.js} +43 -35
- package/dist/bundle/{recognize-2SEI5PPM.js → recognize-25ITJWGX.js} +2 -2
- package/dist/bundle/{remote-2DMS74XE.js → remote-5FBAJX7O.js} +8 -8
- package/dist/bundle/{rerank-H6GCYVIA.js → rerank-2HGWWORY.js} +5 -5
- package/dist/bundle/run-log-7HRF4Y47.js +145 -0
- package/dist/bundle/{serve-ODVRPFJO.js → serve-RL35MSJD.js} +7 -7
- package/dist/bundle/{server-PCLIO24L.js → server-QUSBWACP.js} +64 -63
- package/dist/bundle/server-SCK2SRDK.js +96 -0
- package/dist/bundle/{services-4QAPXBLO.js → services-BGRIQNDC.js} +55 -53
- package/dist/bundle/{speech-MA6ZT3WE.js → speech-4W3ZMTFK.js} +21 -21
- package/dist/bundle/{sqlite-runtime-PVMAUXRN.js → sqlite-runtime-K3KLRZCV.js} +4 -4
- package/dist/bundle/{state-QFMTYUME.js → state-GYL4C74G.js} +4 -4
- package/dist/bundle/{store-25OTAQC3.js → store-27UQMNEO.js} +23 -21
- package/dist/bundle/{store-F724QIKJ.js → store-NLYH5SQX.js} +54 -43
- package/dist/bundle/store-connection-CZILWRSR.js +112 -0
- package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
- package/dist/bundle/{streaming-S22C4DG5.js → streaming-73EKEGPF.js} +2 -2
- package/dist/bundle/surface-CV3C4RV2.js +82 -0
- package/dist/bundle/tokens-PY3S22LY.js +27 -0
- package/dist/bundle/zm.js +2 -2
- package/dist/bundle/{zoom-app-YWFB367P.js → zoom-app-4F4YY4OI.js} +8 -6
- 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 +2 -2
- package/skills/zoom-cli/references/setup.md +2 -2
- package/dist/bundle/agent-F4TRJWWS.js +0 -46
- package/dist/bundle/answer-policy-6XC57AEZ.js +0 -131
- package/dist/bundle/chunk-2DBF2IIC.js +0 -330
- package/dist/bundle/chunk-DSZYABYL.js +0 -808
- package/dist/bundle/chunk-KXJ3JEDH.js +0 -2
- package/dist/bundle/chunk-LAYYO4WD.js +0 -31
- package/dist/bundle/chunk-PMUPN6JW.js +0 -773
- package/dist/bundle/chunk-TKVBFJ5C.js +0 -37
- package/dist/bundle/chunk-YY7XKHDY.js +0 -79
- package/dist/bundle/command-contract-FBTK6GQX.js +0 -45
- package/dist/bundle/config-FRJSIZNN.js +0 -118
- package/dist/bundle/first-screen-DIOBWMKP.js +0 -46
- package/dist/bundle/meeting-combined-UXCF4SJ3.js +0 -26
- package/dist/bundle/run-log-QU26SUZP.js +0 -145
- package/dist/bundle/server-NBPF6IDZ.js +0 -95
- package/dist/bundle/store-connection-OGPXANGB.js +0 -111
- package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +0 -83
- package/dist/bundle/surface-7PXHWCF6.js +0 -81
- package/dist/bundle/tokens-NLUHA2DW.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-6CWL5BKG.js → chunk-3QN5KDFZ.js} +147 -147
- /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,28 +102,28 @@ 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
129
|
} from "./chunk-UAWSINMC.js";
|
|
@@ -154,10 +154,10 @@ import {
|
|
|
154
154
|
__name
|
|
155
155
|
} from "./chunk-ZVVMGPBJ.js";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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,27 +2,27 @@ 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,
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
__name
|
|
36
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
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@
|
|
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@
|
|
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@
|
|
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,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
__name
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
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,7 +4,7 @@ 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
10
|
} from "./chunk-IANKXHSE.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
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,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B2NM65RD.js";
|
|
6
6
|
import {
|
|
7
7
|
secretNamed,
|
|
8
8
|
withoutSecrets
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MNOAMJ6H.js";
|
|
10
10
|
import {
|
|
11
11
|
isContentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3QN5KDFZ.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17
|
+
// 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/runs/events.js
|
|
18
18
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
19
19
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
20
20
|
if (event.event === "store")
|
|
@@ -66,11 +66,11 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
66
66
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
67
67
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
69
|
+
// 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/runs/run-context.js
|
|
70
70
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
71
71
|
import { createHash } from "node:crypto";
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
73
|
+
// 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/runs/error-detail.js
|
|
74
74
|
import { homedir } from "node:os";
|
|
75
75
|
var MESSAGE_AT_MOST = 500;
|
|
76
76
|
var CAUSES_AT_MOST = 5;
|
|
@@ -183,7 +183,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
183
183
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
184
184
|
}, "redactText");
|
|
185
185
|
|
|
186
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
186
|
+
// 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/runs/run-context.js
|
|
187
187
|
var REDACTED = "[redacted]";
|
|
188
188
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
189
189
|
if (!record)
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3QN5KDFZ.js";
|
|
9
9
|
import {
|
|
10
10
|
COMPACT_FLAG
|
|
11
11
|
} from "./chunk-ESN3W2MZ.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22
|
+
// 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/sends/permissions.js
|
|
23
23
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
24
24
|
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
25
25
|
"messages.delete",
|
|
@@ -455,7 +455,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
455
455
|
}
|
|
456
456
|
}, "assertRetentionEvidenceRead");
|
|
457
457
|
|
|
458
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
458
|
+
// 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/cli/result-fields.js
|
|
459
459
|
var named = /* @__PURE__ */ __name((work) => {
|
|
460
460
|
try {
|
|
461
461
|
return work();
|
|
@@ -482,7 +482,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
482
482
|
return projectFields(value, fields);
|
|
483
483
|
}), "projectFields");
|
|
484
484
|
|
|
485
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
485
|
+
// 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/output-detail.js
|
|
486
486
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
487
487
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
488
488
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -518,7 +518,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
518
518
|
return value;
|
|
519
519
|
}, "atDetail");
|
|
520
520
|
|
|
521
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
521
|
+
// 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/output.js
|
|
522
522
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
523
523
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
524
524
|
if (other)
|