@wirecat/zoom-cli 0.65.0 → 0.67.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/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/bin/zm.js.map +1 -1
- package/dist/bundle/{all-profiles-SKMLZJSY.js → all-profiles-SEW2VL76.js} +12 -8
- package/dist/bundle/answer-policy-5OYUL6UF.js +103 -0
- package/dist/bundle/{anthropic-TVHK7CY2.js → anthropic-FSNASJML.js} +7 -4
- package/dist/bundle/{app-server-44ASFH47.js → app-server-EVSRYJ3H.js} +66 -59
- package/dist/bundle/{bun-O4WHGL2F.js → bun-DACL5SVO.js} +2 -2
- package/dist/bundle/{bun-sqlite-NS32GMM4.js → bun-sqlite-HQ2KOXSI.js} +6 -3
- package/dist/bundle/chunk-2UW533HQ.js +166 -0
- package/dist/bundle/{chunk-FYJL276J.js → chunk-3GO3KME7.js} +3 -3
- package/dist/bundle/{chunk-Z5424QL6.js → chunk-3ZIHUSMM.js} +2 -2
- package/dist/bundle/{chunk-MRWIXUYT.js → chunk-4GCKDO2H.js} +5 -3
- package/dist/bundle/{chunk-7SQJCKR6.js → chunk-4KDZ22RA.js} +1 -1
- package/dist/bundle/{chunk-25IDWPEN.js → chunk-4U2555EQ.js} +35 -31
- package/dist/bundle/{chunk-UKU6MYUI.js → chunk-4UVT2QCO.js} +9 -20
- package/dist/bundle/{chunk-ZOGYTDHG.js → chunk-4ZR5DJ26.js} +5 -3
- package/dist/bundle/{chunk-CVCRQW3A.js → chunk-54RTMQL6.js} +4 -4
- package/dist/bundle/chunk-6AJDVJVZ.js +35 -0
- package/dist/bundle/chunk-6IBM4Z3V.js +34 -0
- package/dist/bundle/{chunk-CNEE6TPE.js → chunk-6TZF2JP7.js} +13 -13
- package/dist/bundle/{chunk-QLCYAQ66.js → chunk-6UFWFKFH.js} +2 -2
- package/dist/bundle/chunk-6VFORXL3.js +101 -0
- package/dist/bundle/{chunk-M6IDHQ7N.js → chunk-7HAIM7GV.js} +1633 -683
- package/dist/bundle/{chunk-FYM27FCG.js → chunk-7K5TDTZY.js} +13 -7
- package/dist/bundle/{chunk-NO24PJNW.js → chunk-7LLUUXJB.js} +1 -1
- package/dist/bundle/{chunk-VJTGYBJJ.js → chunk-7VU5UGRR.js} +37 -29
- package/dist/bundle/{chunk-ZH743WNV.js → chunk-AAZFLJSH.js} +25 -24
- package/dist/bundle/{chunk-DYJXAY7Q.js → chunk-ASCHAVNW.js} +35 -27
- package/dist/bundle/{chunk-EA63UGWE.js → chunk-B3KWAULD.js} +2 -2
- package/dist/bundle/{chunk-H7762LDA.js → chunk-B5Z4XPVS.js} +2 -2
- package/dist/bundle/{chunk-UPJXN2CO.js → chunk-BKY4XVB4.js} +1787 -1224
- package/dist/bundle/{chunk-QI7BZS2G.js → chunk-C6UKW7JO.js} +6 -6
- package/dist/bundle/{chunk-U3ZUT557.js → chunk-CLEZE65P.js} +1 -1
- package/dist/bundle/{chunk-37PHGASE.js → chunk-CRLBTNC4.js} +5 -3
- package/dist/bundle/{chunk-VH4F2EK4.js → chunk-D4KBD63W.js} +1 -1
- package/dist/bundle/{chunk-DNCKH7CO.js → chunk-D6OXI2NV.js} +17 -17
- package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-GMTXCFI7.js → chunk-DFUPETW7.js} +449 -308
- package/dist/bundle/{chunk-VW2SW7ME.js → chunk-DG4DWAU7.js} +3 -3
- package/dist/bundle/{chunk-U5ASRBBF.js → chunk-EPDRF66S.js} +4 -4
- package/dist/bundle/{chunk-BNXH73OU.js → chunk-EQ7XRRKV.js} +14 -12
- package/dist/bundle/{chunk-5NGOP4EZ.js → chunk-ESFMHBHH.js} +38 -35
- package/dist/bundle/{chunk-GEX4V5TM.js → chunk-EUPZSR2G.js} +4 -4
- package/dist/bundle/{chunk-KZE3G4ZT.js → chunk-FGTPREAZ.js} +58 -54
- package/dist/bundle/{chunk-MH7AWCB4.js → chunk-FWU3ZYHE.js} +68 -64
- package/dist/bundle/{chunk-MPKKIL3U.js → chunk-FXQPK742.js} +63 -21
- package/dist/bundle/{chunk-PV3UDPCI.js → chunk-GP4NSYDU.js} +20 -14
- package/dist/bundle/{chunk-ZFNM3FNI.js → chunk-I7SOXH64.js} +75 -38
- package/dist/bundle/{chunk-S4GDDO5S.js → chunk-IFDO3YPJ.js} +1 -1
- package/dist/bundle/{chunk-LOL6JYYN.js → chunk-J3ZBEWQY.js} +375 -9
- package/dist/bundle/chunk-JVCHGI7W.js +37 -0
- package/dist/bundle/{chunk-MZ6U6HNJ.js → chunk-KANH7GBB.js} +2 -2
- package/dist/bundle/{chunk-3CZIWGZ6.js → chunk-KIJLM5UL.js} +1 -1
- package/dist/bundle/chunk-KV4267S4.js +23 -0
- package/dist/bundle/{chunk-266WOOB3.js → chunk-KWRSC6O6.js} +6 -6
- package/dist/bundle/{chunk-C6BG57FA.js → chunk-L643D4RJ.js} +14 -12
- package/dist/bundle/{chunk-IPTI3Y2E.js → chunk-L6CAUVMU.js} +7 -5
- package/dist/bundle/{chunk-MIB5X2XW.js → chunk-L6WUAGPN.js} +5 -5
- package/dist/bundle/{chunk-BWRBALXG.js → chunk-LFQ73UFK.js} +3 -3
- package/dist/bundle/{chunk-GBZF4IIP.js → chunk-LKJXTACE.js} +10 -89
- package/dist/bundle/{chunk-T3KICUOK.js → chunk-LM26DJOK.js} +8 -8
- package/dist/bundle/{chunk-GXCNCMUY.js → chunk-M43MBWJX.js} +3260 -1263
- package/dist/bundle/{chunk-TC7PD3LH.js → chunk-MWEOVTIF.js} +4 -4
- package/dist/bundle/chunk-NTZDM5SJ.js +2462 -0
- package/dist/bundle/{chunk-ERPRAYA7.js → chunk-OTMGAKUM.js} +11 -7
- package/dist/bundle/chunk-OZEYFJX2.js +93 -0
- package/dist/bundle/{chunk-NJSIHMAE.js → chunk-Q65SDEFN.js} +4 -4
- package/dist/bundle/{chunk-UMHJZWZU.js → chunk-QEI55M2F.js} +12 -10
- package/dist/bundle/{chunk-SQWRZZOQ.js → chunk-QX2MAT6I.js} +3 -3
- package/dist/bundle/{chunk-ZXGRK44F.js → chunk-RAMPYIO2.js} +17 -12
- package/dist/bundle/{chunk-BLT3LR3U.js → chunk-RYKG6AEH.js} +1 -1
- package/dist/bundle/{chunk-WLSF3GCC.js → chunk-SCFFCIIP.js} +4 -2
- package/dist/bundle/{chunk-2H5SXK7K.js → chunk-SMVO5R3T.js} +21 -19
- package/dist/bundle/{chunk-Y3EIK4XW.js → chunk-SOZVC3SV.js} +1 -1
- package/dist/bundle/{chunk-6CS7ETBK.js → chunk-SSXCOUP3.js} +1114 -282
- package/dist/bundle/{chunk-R5BAF5XE.js → chunk-SXFODCYK.js} +1 -1
- package/dist/bundle/{chunk-JF7ZEUXU.js → chunk-T6CZWSHF.js} +136 -2540
- package/dist/bundle/{chunk-KYLS5QGC.js → chunk-TBRG2DPE.js} +2 -2
- package/dist/bundle/{chunk-K6ATTKQR.js → chunk-V33VGWT3.js} +5 -5
- package/dist/bundle/{chunk-RZLNHNSS.js → chunk-VFIEYRYD.js} +8 -8
- package/dist/bundle/{chunk-OXUHTKO2.js → chunk-VNIBTNV4.js} +3 -2
- package/dist/bundle/{chunk-ZREFYKUB.js → chunk-VQTAU4DV.js} +13 -11
- package/dist/bundle/{chunk-NNNEVWFF.js → chunk-WHQ4ZCJI.js} +57 -34
- package/dist/bundle/chunk-WZ5XK74U.js +46 -0
- package/dist/bundle/{chunk-XJQB47IL.js → chunk-X67YD3QI.js} +6 -6
- package/dist/bundle/chunk-YPF6OS37.js +46 -0
- package/dist/bundle/{chunk-AMMD6YCJ.js → chunk-YRNZT4GQ.js} +7 -7
- package/dist/bundle/{chunk-TUIEDVI6.js → chunk-Z3WXI4DK.js} +5 -3
- package/dist/bundle/{chunk-U4RVOSX3.js → chunk-ZMPTO2WB.js} +1 -1
- package/dist/bundle/{chunk-24F7JBLY.js → chunk-ZRMZBMOF.js} +69 -9
- package/dist/bundle/{cli-FDO6CP6R.js → cli-YUATSOLA.js} +113 -81
- package/dist/bundle/command-contract-UWHY55UE.js +41 -0
- package/dist/bundle/config-TGF6E6ZD.js +89 -0
- package/dist/bundle/{decode-7SZI3TGZ.js → decode-IL44LNC3.js} +6 -3
- package/dist/bundle/dispatch-3BGIXSJR.js +412 -0
- package/dist/bundle/{dist-5GWUXW27.js → dist-3W27UQ2S.js} +48 -16
- package/dist/bundle/{echarts-FMACRZQC.js → echarts-CO4D26JF.js} +2 -2
- package/dist/bundle/{embed-24YSXHLP.js → embed-XH2X4DFM.js} +7 -4
- package/dist/bundle/{embedder-MEXN2TFB.js → embedder-WTFWDXBJ.js} +12 -9
- package/dist/bundle/failure-HTIS3NLS.js +25 -0
- package/dist/bundle/first-run-5RBH7FDO.js +28 -0
- package/dist/bundle/first-screen-PGFIXJAX.js +39 -0
- package/dist/bundle/{folders-DBAAMU26.js → folders-F4DNQPIY.js} +5 -2
- package/dist/bundle/{instructions-E5FXYCWF.js → instructions-EPPBL6TT.js} +1 -1
- package/dist/bundle/{main-EIUCXXDW.js → main-LVQTCDZS.js} +31 -25
- package/dist/bundle/{mcp-FUSDPAOL.js → mcp-PPVOM4SE.js} +5 -3
- package/dist/bundle/{meetings-JDTRGXZJ.js → meetings-BMELXRTR.js} +31 -4
- package/dist/bundle/{node-4SNKUPXT.js → node-CQVMWVIG.js} +2 -2
- package/dist/bundle/{node-sqlite-O4BAODFR.js → node-sqlite-QQEX7LZT.js} +7 -4
- package/dist/bundle/{oauth-3YLHXGUW.js → oauth-AYGX7CQS.js} +8 -5
- package/dist/bundle/{open-QGRMSNM2.js → open-MIL2TOT6.js} +6 -3
- package/dist/bundle/openai-7QZZXQW5.js +25 -0
- package/dist/bundle/{output-file-J26UQKRA.js → output-file-4XADZPYH.js} +7 -4
- package/dist/bundle/{process-HQZOTT6U.js → process-NJVQK6GB.js} +1 -1
- package/dist/bundle/{program-47DT7SHE.js → program-WUYRS6H7.js} +191 -135
- package/dist/bundle/{prompt-IUD7HCDC.js → prompt-J4QPFLEA.js} +6 -3
- package/dist/bundle/{recognize-DMJJHHXF.js → recognize-OLJZVNWW.js} +5 -2
- package/dist/bundle/{remote-5WFSOVVB.js → remote-JPUXNYLV.js} +8 -5
- package/dist/bundle/{rerank-UKQ65ECH.js → rerank-XVV3X5TT.js} +8 -5
- package/dist/bundle/run-log-DJXBEVS5.js +118 -0
- package/dist/bundle/{serve-WAOSED3I.js → serve-NYYUO3MR.js} +16 -13
- package/dist/bundle/{server-NWZFNXC5.js → server-4Z5E4YTT.js} +48 -42
- package/dist/bundle/server-VW5UVCH7.js +72 -0
- package/dist/bundle/{services-VPANRE72.js → services-EKWM76HP.js} +50 -28
- package/dist/bundle/{speech-O6UNUDRW.js → speech-WFJ44ACJ.js} +14 -11
- package/dist/bundle/{state-BNE7I65A.js → state-VIRCT4VW.js} +7 -4
- package/dist/bundle/{store-4IIVSCJ4.js → store-2Q4GEZJS.js} +30 -18
- package/dist/bundle/{store-QQH4FJXJ.js → store-ZTDZ6UY5.js} +20 -14
- package/dist/bundle/store-connection-FKVVQLEF.js +83 -0
- package/dist/bundle/store-maintenance-command-AU73UVUQ.js +62 -0
- package/dist/bundle/{streaming-S4EZB6P2.js → streaming-7BPKIGAS.js} +7 -4
- package/dist/bundle/{tokens-VCXIH7WZ.js → tokens-CQHMMKNX.js} +7 -4
- package/dist/bundle/zm.js +150 -1
- package/dist/bundle/zoom-app-OEKFMJS6.js +25 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +46 -7
- package/dist/config.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 +3 -2
- 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 +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +30 -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 +17 -0
- package/dist/zoom-app.d.ts.map +1 -0
- package/dist/zoom-app.js +22 -0
- package/dist/zoom-app.js.map +1 -0
- package/package.json +6 -4
- package/skills/zoom-cli/SKILL.md +4 -1
- package/dist/bundle/answer-policy-BHDNSJWX.js +0 -96
- package/dist/bundle/chunk-A6OA2EH2.js +0 -18
- package/dist/bundle/command-contract-O4FDXM4U.js +0 -37
- package/dist/bundle/config-UBHKZG3J.js +0 -78
- package/dist/bundle/first-run-OCVEJH63.js +0 -23
- package/dist/bundle/first-screen-KJIU25MH.js +0 -35
- package/dist/bundle/openai-7PSCSTH7.js +0 -22
- package/dist/bundle/run-log-UGYL6NW2.js +0 -111
- package/dist/bundle/server-HAXN772R.js +0 -66
- package/dist/bundle/store-connection-PPEQK2K3.js +0 -76
- package/dist/bundle/store-maintenance-command-JZXCT6NY.js +0 -56
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
|
@@ -2,21 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6AJDVJVZ.js";
|
|
6
|
+
import {
|
|
7
|
+
resolvePaths
|
|
8
|
+
} from "./chunk-T6CZWSHF.js";
|
|
9
|
+
import {
|
|
10
|
+
CliError
|
|
11
|
+
} from "./chunk-WZ5XK74U.js";
|
|
6
12
|
import {
|
|
7
|
-
CliError,
|
|
8
|
-
resolvePaths,
|
|
9
13
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6IBM4Z3V.js";
|
|
11
15
|
import {
|
|
12
16
|
__name
|
|
13
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
18
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
16
20
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
17
21
|
import { dirname, join, resolve } from "node:path";
|
|
18
22
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
20
24
|
var DEFAULT_TASK_CATEGORIES = [
|
|
21
25
|
{
|
|
22
26
|
name: "taxes",
|
|
@@ -771,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
771
775
|
}
|
|
772
776
|
}, "storedTaskCategories");
|
|
773
777
|
|
|
774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
775
779
|
var SECTION = "task_categories";
|
|
776
780
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
777
781
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
|
+
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
|
+
"authorization",
|
|
10
|
+
"cookie",
|
|
11
|
+
"credential",
|
|
12
|
+
"credentials",
|
|
13
|
+
"passphrase",
|
|
14
|
+
"password",
|
|
15
|
+
"passwd",
|
|
16
|
+
"pwd",
|
|
17
|
+
"pass",
|
|
18
|
+
"passcode",
|
|
19
|
+
"pin",
|
|
20
|
+
"otp",
|
|
21
|
+
"2fa",
|
|
22
|
+
"secret",
|
|
23
|
+
"token",
|
|
24
|
+
"contrase\xF1a",
|
|
25
|
+
"contrasena",
|
|
26
|
+
"clave",
|
|
27
|
+
"\u043F\u0430\u0440\u043E\u043B\u044C",
|
|
28
|
+
"\u043F\u0438\u043D",
|
|
29
|
+
"\u043A\u043E\u0434",
|
|
30
|
+
...["api", "auth", "service", "account", "db", "database", "priv", "private", "client"].map((word) => `${word}key`),
|
|
31
|
+
...["db", "database", "key"].map((word) => `${word}pass`)
|
|
32
|
+
]);
|
|
33
|
+
var secretNamed = /* @__PURE__ */ __name((name) => {
|
|
34
|
+
const words = name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).map((word) => word.toLowerCase());
|
|
35
|
+
return words.some((word, at) => SECRET_WORDS.has(word) || SECRET_WORDS.has(word + (words[at + 1] ?? "")));
|
|
36
|
+
}, "secretNamed");
|
|
37
|
+
var START = "(?<![A-Za-z0-9_-])";
|
|
38
|
+
var END = "(?![A-Za-z0-9_-])";
|
|
39
|
+
var KNOWN_TOKENS = new RegExp(`${[
|
|
40
|
+
"gh[pousr]_[A-Za-z0-9]{36,}",
|
|
41
|
+
"github_pat_[A-Za-z0-9_]{22,}",
|
|
42
|
+
"sk-[A-Za-z0-9_-]{20,}",
|
|
43
|
+
"xox[abprs]-[A-Za-z0-9-]{10,}",
|
|
44
|
+
"(?:AKIA|ASIA)[A-Z0-9]{16}",
|
|
45
|
+
"AIza[A-Za-z0-9_-]{35}",
|
|
46
|
+
"(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}",
|
|
47
|
+
"npm_[A-Za-z0-9]{36}",
|
|
48
|
+
"eyJ[A-Za-z0-9_-]{5,}\\.eyJ[A-Za-z0-9_-]{5,}\\.[A-Za-z0-9_-]*"
|
|
49
|
+
].map((pattern) => `${START}${pattern}${END}`).join("|")}|(?<!\\d)\\d{8,10}:[A-Za-z0-9_-]{35}${END}`, "g");
|
|
50
|
+
var PRIVATE_KEY = /-----BEGIN[A-Z ]* PRIVATE KEY-----[\s\S]*?(?:-----END[A-Z ]* PRIVATE KEY-----|$)/g;
|
|
51
|
+
var SCHEME = /(?<![A-Za-z])(Bearer|Basic)(\s+)(?![A-Z]?[a-z]+(?![A-Za-z0-9]))[A-Za-z0-9._~+/=-]{8,}/g;
|
|
52
|
+
var NAMED_PAIR = /(?<![\p{L}\p{N}])([\p{L}\p{N}_.-]*(?:token|pass|pwd|pin|otp|2fa|secret|credential|cookie|authorization|key|contrase|clave|пароль|пин|код)[\p{L}\p{N}_.-]*)(["']?\s*(?:=>|[:=])\s*["']?|\s+(?![\p{L}]+(?![\p{L}\p{N}])))((?:Bearer\s+|Basic\s+)?)([^\s"'&,;]+)/giu;
|
|
53
|
+
var holdsCredential = /* @__PURE__ */ __name((text) => text.search(PRIVATE_KEY) >= 0 || text.search(KNOWN_TOKENS) >= 0 || text.search(SCHEME) >= 0, "holdsCredential");
|
|
54
|
+
var looksRandom = /* @__PURE__ */ __name((run) => {
|
|
55
|
+
if (run.length < 20)
|
|
56
|
+
return false;
|
|
57
|
+
const classes = [/[a-z]/, /[A-Z]/, /\d/, /[^A-Za-z0-9]/].filter((kind) => kind.test(run)).length;
|
|
58
|
+
if (classes < 3)
|
|
59
|
+
return false;
|
|
60
|
+
let switches = 0;
|
|
61
|
+
for (let at = 1; at < run.length; at++) {
|
|
62
|
+
const [before, after] = [run[at - 1], run[at]];
|
|
63
|
+
if (/[a-z]/.test(before) && /[A-Z]/.test(after) || /[A-Z]/.test(before) && /[a-z]/.test(after))
|
|
64
|
+
switches += 1;
|
|
65
|
+
}
|
|
66
|
+
if (switches / run.length < 0.15)
|
|
67
|
+
return false;
|
|
68
|
+
const pieces = run.match(/[A-Z]?[a-z]+|[A-Z]+(?![a-z])|\d+/g) ?? [];
|
|
69
|
+
if (pieces.join("").length / Math.max(pieces.length, 1) >= 2.75)
|
|
70
|
+
return false;
|
|
71
|
+
return entropy(run) >= 3.5;
|
|
72
|
+
}, "looksRandom");
|
|
73
|
+
var entropy = /* @__PURE__ */ __name((text) => {
|
|
74
|
+
const counts = /* @__PURE__ */ new Map();
|
|
75
|
+
for (const char of text)
|
|
76
|
+
counts.set(char, (counts.get(char) ?? 0) + 1);
|
|
77
|
+
let bits = 0;
|
|
78
|
+
for (const count of counts.values())
|
|
79
|
+
bits -= count / text.length * Math.log2(count / text.length);
|
|
80
|
+
return bits;
|
|
81
|
+
}, "entropy");
|
|
82
|
+
var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.replace(PRIVATE_KEY, mark).replace(KNOWN_TOKENS, mark).replace(SCHEME, `$1$2${mark}`).replace(NAMED_PAIR, (whole, name, separator, scheme) => secretNamed(name) ? `${name}${separator}${scheme}${mark}` : whole).replace(/[!-~]{20,}/g, (token) => (
|
|
83
|
+
// A URL or a path is somebody's address, not a key; a credential in one is caught by the rules above.
|
|
84
|
+
token.includes("://") || /^(?:\/|~\/|\.\.?\/)/.test(token) ? token : token.replace(RUN, (run) => looksRandom(run) ? mark : run.replace(HEX, (hex) => entropy(hex) >= 3 ? mark : hex))
|
|
85
|
+
)), "withoutSecrets");
|
|
86
|
+
var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
|
|
87
|
+
var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
|
|
88
|
+
|
|
89
|
+
export {
|
|
90
|
+
secretNamed,
|
|
91
|
+
holdsCredential,
|
|
92
|
+
withoutSecrets
|
|
93
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
CliError
|
|
5
|
-
} from "./chunk-JF7ZEUXU.js";
|
|
6
3
|
import {
|
|
7
4
|
importFrom
|
|
8
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
|
+
import {
|
|
7
|
+
CliError
|
|
8
|
+
} from "./chunk-WZ5XK74U.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -2,24 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
validateFormattedText
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GP4NSYDU.js";
|
|
6
6
|
import {
|
|
7
7
|
inputPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TBRG2DPE.js";
|
|
9
9
|
import {
|
|
10
|
-
CliError,
|
|
11
10
|
indent
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-T6CZWSHF.js";
|
|
12
|
+
import {
|
|
13
|
+
CliError
|
|
14
|
+
} from "./chunk-WZ5XK74U.js";
|
|
13
15
|
import {
|
|
14
16
|
__name
|
|
15
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
18
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/checks.js
|
|
18
20
|
var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
|
|
19
21
|
var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
|
|
20
22
|
var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
|
|
21
23
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/markdown.js
|
|
23
25
|
var MARKERS = [
|
|
24
26
|
["**", "bold"],
|
|
25
27
|
["~~", "strike"],
|
|
@@ -65,7 +67,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
|
|
|
65
67
|
return end;
|
|
66
68
|
}, "closing");
|
|
67
69
|
|
|
68
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
|
|
69
71
|
var STYLES = [
|
|
70
72
|
["**", "bold"],
|
|
71
73
|
["__", "underline"],
|
|
@@ -225,7 +227,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
|
|
|
225
227
|
return validateFormattedText(result);
|
|
226
228
|
}, "parseMarkdownSpans");
|
|
227
229
|
|
|
228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/polls.js
|
|
229
231
|
var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
230
232
|
const cast = votes.filter((vote) => vote.answers.length > 0);
|
|
231
233
|
const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
|
|
@@ -1874,7 +1876,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
1874
1876
|
var qrcode_default = qrcode;
|
|
1875
1877
|
var stringToBytes = qrcode.stringToBytes;
|
|
1876
1878
|
|
|
1877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/terminal/qr.js
|
|
1878
1880
|
var QUIET_ZONE = 4;
|
|
1879
1881
|
var BLACK_ON_WHITE = "\x1B[30;107m";
|
|
1880
1882
|
var RESET = "\x1B[0m";
|
|
@@ -1921,7 +1923,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
|
|
|
1921
1923
|
return lines.join("\n");
|
|
1922
1924
|
}, "plainQr");
|
|
1923
1925
|
|
|
1924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
|
|
1925
1927
|
var MARGIN = 2;
|
|
1926
1928
|
var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
|
|
1927
1929
|
var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openOrdinaryFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6TZF2JP7.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WZ5XK74U.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
15
15
|
import { basename, resolve } from "node:path";
|
|
16
16
|
var prepared = /* @__PURE__ */ new WeakMap();
|
|
@@ -3,26 +3,28 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SCFFCIIP.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C6UKW7JO.js";
|
|
11
11
|
import {
|
|
12
|
-
CliError,
|
|
13
12
|
catchCrashes
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NTZDM5SJ.js";
|
|
15
14
|
import {
|
|
16
15
|
importFrom
|
|
17
16
|
} from "./chunk-Y5E2WNWB.js";
|
|
17
|
+
import {
|
|
18
|
+
CliError
|
|
19
|
+
} from "./chunk-WZ5XK74U.js";
|
|
18
20
|
import {
|
|
19
21
|
__name
|
|
20
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
23
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
23
25
|
import { spawn as spawn2 } from "node:child_process";
|
|
24
26
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
26
28
|
import { spawn, spawnSync } from "node:child_process";
|
|
27
29
|
import { readFileSync } from "node:fs";
|
|
28
30
|
import { dirname } from "node:path";
|
|
@@ -110,7 +112,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
110
112
|
});
|
|
111
113
|
}), "relay");
|
|
112
114
|
|
|
113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
114
116
|
import { appendFileSync } from "node:fs";
|
|
115
117
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
116
118
|
const words = [];
|
|
@@ -134,7 +136,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
134
136
|
`);
|
|
135
137
|
}, "logVersion");
|
|
136
138
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
138
140
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
139
141
|
argv: process.argv,
|
|
140
142
|
env: process.env,
|
|
@@ -188,8 +190,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
188
190
|
if (command.optsWithGlobals().dryRun === true)
|
|
189
191
|
return;
|
|
190
192
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
191
|
-
import("./first-run-
|
|
192
|
-
import("./command-contract-
|
|
193
|
+
import("./first-run-5RBH7FDO.js"),
|
|
194
|
+
import("./command-contract-UWHY55UE.js")
|
|
193
195
|
]);
|
|
194
196
|
await setupAtStart({
|
|
195
197
|
command: entry.app.command,
|
|
@@ -204,7 +206,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
204
206
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
205
207
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
206
208
|
return false;
|
|
207
|
-
const { readSecret } = await import("./prompt-
|
|
209
|
+
const { readSecret } = await import("./prompt-J4QPFLEA.js");
|
|
208
210
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
209
211
|
input: io.stdin,
|
|
210
212
|
output: io.stderr,
|
|
@@ -213,7 +215,10 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
213
215
|
});
|
|
214
216
|
return /^(y|yes)$/i.test(answer.trim());
|
|
215
217
|
}, "ask"),
|
|
216
|
-
openBrowser: /* @__PURE__ */ __name(
|
|
218
|
+
openBrowser: /* @__PURE__ */ __name(async (url, browser, command) => {
|
|
219
|
+
if (!headless(command))
|
|
220
|
+
await openBrowser(url, browser, io);
|
|
221
|
+
}, "openBrowser"),
|
|
217
222
|
outputClosed: /* @__PURE__ */ __name(() => closed, "outputClosed")
|
|
218
223
|
};
|
|
219
224
|
let code;
|
|
@@ -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@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -2,24 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WZ5XK74U.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
14
14
|
const value = env[name];
|
|
15
15
|
return value === void 0 || value.trim() === "" || value === "0" ? void 0 : name;
|
|
16
16
|
}, "readOnlyLockOf");
|
|
17
|
+
var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLDER"), "mailHolderVariable");
|
|
17
18
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
18
19
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
19
20
|
|
|
20
21
|
export {
|
|
21
22
|
envName,
|
|
22
23
|
readOnlyLockOf,
|
|
24
|
+
mailHolderVariable,
|
|
23
25
|
MESSENGER_CHANGE_REFUSAL,
|
|
24
26
|
readOnlyRefusal
|
|
25
27
|
};
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE,
|
|
5
5
|
throughWrapper
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7HAIM7GV.js";
|
|
7
7
|
import {
|
|
8
8
|
Command,
|
|
9
9
|
InvalidArgumentError,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
renderAnswer,
|
|
17
17
|
sharedCommand,
|
|
18
18
|
snakeKeys
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SSXCOUP3.js";
|
|
20
20
|
import {
|
|
21
21
|
readOnlyLockOf
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SCFFCIIP.js";
|
|
23
23
|
import {
|
|
24
24
|
formatReference
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-J3ZBEWQY.js";
|
|
26
26
|
import {
|
|
27
27
|
EVENT_QUERY,
|
|
28
28
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
readMeetingProjectEvidence,
|
|
46
46
|
validateMeetingHitSearch,
|
|
47
47
|
validateMeetingPassage
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-DFUPETW7.js";
|
|
49
49
|
import {
|
|
50
50
|
OPERATORS_BY_TYPE,
|
|
51
51
|
QUERY_LIMITS,
|
|
@@ -60,9 +60,8 @@ import {
|
|
|
60
60
|
timezoneOf,
|
|
61
61
|
validateQuery,
|
|
62
62
|
zonedMoment
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-AAZFLJSH.js";
|
|
64
64
|
import {
|
|
65
|
-
CliError,
|
|
66
65
|
array,
|
|
67
66
|
boolean,
|
|
68
67
|
check,
|
|
@@ -74,12 +73,15 @@ import {
|
|
|
74
73
|
safeParse,
|
|
75
74
|
strictObject,
|
|
76
75
|
string
|
|
77
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-NTZDM5SJ.js";
|
|
77
|
+
import {
|
|
78
|
+
CliError
|
|
79
|
+
} from "./chunk-WZ5XK74U.js";
|
|
78
80
|
import {
|
|
79
81
|
__name
|
|
80
82
|
} from "./chunk-ZVVMGPBJ.js";
|
|
81
83
|
|
|
82
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
84
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
83
85
|
var COMMAND_NEEDS = {
|
|
84
86
|
"account update": ["updateProfile", "change the profile"],
|
|
85
87
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -129,7 +131,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
129
131
|
return group;
|
|
130
132
|
}, "hideNever");
|
|
131
133
|
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
133
135
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
134
136
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
135
137
|
const zone = timezoneOf();
|
|
@@ -215,7 +217,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
215
217
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
216
218
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
217
219
|
|
|
218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
219
221
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
220
222
|
command.allowUnknownOption();
|
|
221
223
|
const parse = command.parseOptions.bind(command);
|
|
@@ -235,7 +237,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
235
237
|
return command;
|
|
236
238
|
}, "queryWordsAfterOptions");
|
|
237
239
|
|
|
238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
239
241
|
var count = /* @__PURE__ */ __name((value) => {
|
|
240
242
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
241
243
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -277,7 +279,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
277
279
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
278
280
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
279
281
|
|
|
280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
281
283
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
282
284
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
283
285
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -300,7 +302,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
300
302
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
301
303
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
302
304
|
|
|
303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
304
306
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
305
307
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
306
308
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -432,7 +434,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
432
434
|
}, "addMeetingCommandsDefinition");
|
|
433
435
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
434
436
|
|
|
435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
436
438
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
437
439
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
438
440
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -573,7 +575,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
573
575
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
574
576
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
575
577
|
|
|
576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
577
579
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
578
580
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
579
581
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -582,7 +584,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
582
584
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
583
585
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
584
586
|
|
|
585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
586
588
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
587
589
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
588
590
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -844,7 +846,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
844
846
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
845
847
|
}), "sessionAnswer");
|
|
846
848
|
|
|
847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
848
850
|
import { createHash } from "node:crypto";
|
|
849
851
|
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
850
852
|
import { createConnection, createServer } from "node:net";
|
|
@@ -1065,7 +1067,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
1065
1067
|
}, () => finish({ error: stopped() }));
|
|
1066
1068
|
}), "relayCommand");
|
|
1067
1069
|
|
|
1068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
1069
1071
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
1070
1072
|
close: /* @__PURE__ */ __name(async () => {
|
|
1071
1073
|
}, "close"),
|
|
@@ -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@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|