@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
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
require_cross_spawn
|
|
5
|
+
} from "./chunk-D72URWJE.js";
|
|
6
|
+
import {
|
|
7
|
+
BUILT_IN_COMMANDS,
|
|
8
|
+
DESCRIBE_FLAG,
|
|
9
|
+
FIRST_PARTY_TOOLS,
|
|
10
|
+
PROGRAM_PREFIX,
|
|
11
|
+
TOOL_NAME,
|
|
12
|
+
fileState,
|
|
13
|
+
parseDescribe,
|
|
14
|
+
shimFiles,
|
|
15
|
+
writeShim
|
|
16
|
+
} from "./chunk-2UW533HQ.js";
|
|
17
|
+
import "./chunk-Y5E2WNWB.js";
|
|
18
|
+
import {
|
|
19
|
+
CliError
|
|
20
|
+
} from "./chunk-WZ5XK74U.js";
|
|
21
|
+
import "./chunk-6IBM4Z3V.js";
|
|
22
|
+
import {
|
|
23
|
+
__name,
|
|
24
|
+
__toESM
|
|
25
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
26
|
+
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
28
|
+
var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
|
|
29
|
+
import { randomUUID } from "node:crypto";
|
|
30
|
+
import { constants } from "node:os";
|
|
31
|
+
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/path.js
|
|
33
|
+
import { readdirSync, statSync } from "node:fs";
|
|
34
|
+
import { join } from "node:path";
|
|
35
|
+
var variable = /* @__PURE__ */ __name((env, name, platform) => platform === "win32" ? Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1] : env[name], "variable");
|
|
36
|
+
var pathEntries = /* @__PURE__ */ __name(({ env, platform }) => {
|
|
37
|
+
const raw = variable(env, "PATH", platform) ?? "";
|
|
38
|
+
const entries = raw.split(platform === "win32" ? ";" : ":").map((entry) => entry.replace(/^"(.*)"$/, "$1"));
|
|
39
|
+
const seen = /* @__PURE__ */ new Set();
|
|
40
|
+
return entries.filter((entry) => {
|
|
41
|
+
const key = platform === "win32" ? entry.toLowerCase().replace(/[\\/]+$/, "") : entry.replace(/\/+$/, "");
|
|
42
|
+
if (entry === "" || seen.has(key))
|
|
43
|
+
return false;
|
|
44
|
+
seen.add(key);
|
|
45
|
+
return true;
|
|
46
|
+
});
|
|
47
|
+
}, "pathEntries");
|
|
48
|
+
var programExtensions = /* @__PURE__ */ __name(({ env, platform }) => platform === "win32" ? (variable(env, "PATHEXT", platform) ?? ".COM;.EXE;.BAT;.CMD").split(";").filter((ext) => /^\.[a-z0-9]+$/i.test(ext)).map((ext) => ext.toLowerCase()) : [""], "programExtensions");
|
|
49
|
+
var isProgram = /* @__PURE__ */ __name((path, platform) => {
|
|
50
|
+
try {
|
|
51
|
+
const stat = statSync(path);
|
|
52
|
+
return stat.isFile() && (platform === "win32" || (stat.mode & 73) !== 0);
|
|
53
|
+
} catch {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
}, "isProgram");
|
|
57
|
+
var findOnPath = /* @__PURE__ */ __name((command, search) => {
|
|
58
|
+
const extensions = programExtensions(search);
|
|
59
|
+
return pathEntries(search).flatMap((dir) => {
|
|
60
|
+
for (const extension of extensions) {
|
|
61
|
+
const path = join(dir, command + extension);
|
|
62
|
+
if (isProgram(path, search.platform))
|
|
63
|
+
return [path];
|
|
64
|
+
}
|
|
65
|
+
return [];
|
|
66
|
+
});
|
|
67
|
+
}, "findOnPath");
|
|
68
|
+
var findTools = /* @__PURE__ */ __name((search) => {
|
|
69
|
+
const extensions = programExtensions(search);
|
|
70
|
+
const tools = /* @__PURE__ */ new Map();
|
|
71
|
+
for (const dir of pathEntries(search)) {
|
|
72
|
+
let files;
|
|
73
|
+
try {
|
|
74
|
+
files = readdirSync(dir);
|
|
75
|
+
} catch {
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
const here = /* @__PURE__ */ new Map();
|
|
79
|
+
for (const file of files) {
|
|
80
|
+
if (!(search.platform === "win32" ? file.toLowerCase() : file).startsWith(PROGRAM_PREFIX))
|
|
81
|
+
continue;
|
|
82
|
+
const extension = extensions.find((ext) => ext !== "" && file.toLowerCase().endsWith(ext)) ?? "";
|
|
83
|
+
if (search.platform === "win32" && extension === "")
|
|
84
|
+
continue;
|
|
85
|
+
const base = search.platform === "win32" ? file.toLowerCase() : file;
|
|
86
|
+
const name = base.slice(PROGRAM_PREFIX.length, base.length - extension.length);
|
|
87
|
+
if (!TOOL_NAME.test(name))
|
|
88
|
+
continue;
|
|
89
|
+
const best = here.get(name);
|
|
90
|
+
const rank = /* @__PURE__ */ __name((path2) => extensions.findIndex((ext) => path2.toLowerCase().endsWith(ext)), "rank");
|
|
91
|
+
const path = join(dir, file);
|
|
92
|
+
if (best !== void 0 && rank(best) <= rank(path))
|
|
93
|
+
continue;
|
|
94
|
+
if (isProgram(path, search.platform))
|
|
95
|
+
here.set(name, path);
|
|
96
|
+
}
|
|
97
|
+
for (const [name, path] of here)
|
|
98
|
+
tools.set(name, [...tools.get(name) ?? [], path]);
|
|
99
|
+
}
|
|
100
|
+
return new Map([...tools].sort(([a], [b]) => a < b ? -1 : 1));
|
|
101
|
+
}, "findTools");
|
|
102
|
+
var isBuiltIn = /* @__PURE__ */ __name((name) => name === "wcat" || BUILT_IN_COMMANDS.includes(name), "isBuiltIn");
|
|
103
|
+
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/probe.js
|
|
105
|
+
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
106
|
+
import { readFileSync } from "node:fs";
|
|
107
|
+
var MAX_ANSWER_BYTES = 64 * 1024;
|
|
108
|
+
var probeDescribe = /* @__PURE__ */ __name((path, { env, timeoutMs }) => new Promise((resolve) => {
|
|
109
|
+
let child;
|
|
110
|
+
try {
|
|
111
|
+
child = (0, import_cross_spawn.default)(path, [DESCRIBE_FLAG], { stdio: ["ignore", "pipe", "ignore"], env, windowsHide: true });
|
|
112
|
+
} catch {
|
|
113
|
+
resolve(void 0);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const chunks = [];
|
|
117
|
+
let size = 0;
|
|
118
|
+
let settled = false;
|
|
119
|
+
const settle = /* @__PURE__ */ __name((answer) => {
|
|
120
|
+
if (settled)
|
|
121
|
+
return;
|
|
122
|
+
settled = true;
|
|
123
|
+
clearTimeout(timer);
|
|
124
|
+
resolve(answer);
|
|
125
|
+
}, "settle");
|
|
126
|
+
const giveUp = /* @__PURE__ */ __name(() => {
|
|
127
|
+
child.kill();
|
|
128
|
+
child.stdout?.destroy();
|
|
129
|
+
child.unref();
|
|
130
|
+
settle(void 0);
|
|
131
|
+
}, "giveUp");
|
|
132
|
+
const timer = setTimeout(giveUp, timeoutMs);
|
|
133
|
+
child.stdout?.on("data", (chunk) => {
|
|
134
|
+
size += chunk.length;
|
|
135
|
+
if (size > MAX_ANSWER_BYTES)
|
|
136
|
+
giveUp();
|
|
137
|
+
else
|
|
138
|
+
chunks.push(chunk);
|
|
139
|
+
});
|
|
140
|
+
child.once("error", () => settle(void 0));
|
|
141
|
+
child.once("close", (code) => settle(code === 0 ? parseDescribe(Buffer.concat(chunks).toString("utf8")) : void 0));
|
|
142
|
+
}), "probeDescribe");
|
|
143
|
+
var baseVersion = /* @__PURE__ */ __name(() => {
|
|
144
|
+
try {
|
|
145
|
+
const raw = readFileSync(new URL("../../package.json", new URL("wcat/probe.js", import.meta.resolve("@wirecat/cli-base")).href), "utf8");
|
|
146
|
+
const { name, version } = JSON.parse(raw);
|
|
147
|
+
return name === "@wirecat/cli-base" && typeof version === "string" ? version : "unknown";
|
|
148
|
+
} catch {
|
|
149
|
+
return "unknown";
|
|
150
|
+
}
|
|
151
|
+
}, "baseVersion");
|
|
152
|
+
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shortcuts.js
|
|
154
|
+
import { closeSync, openSync, readSync, realpathSync, rmSync } from "node:fs";
|
|
155
|
+
import { basename, dirname } from "node:path";
|
|
156
|
+
var WIRECAT_PACKAGE = /node_modules[\\/]+@wirecat[\\/]/;
|
|
157
|
+
var isWirecatPackage = /* @__PURE__ */ __name((path) => {
|
|
158
|
+
try {
|
|
159
|
+
if (WIRECAT_PACKAGE.test(realpathSync(path)))
|
|
160
|
+
return true;
|
|
161
|
+
const buffer = Buffer.alloc(16 * 1024);
|
|
162
|
+
const fd = openSync(path, "r");
|
|
163
|
+
try {
|
|
164
|
+
const read = readSync(fd, buffer, 0, buffer.length, 0);
|
|
165
|
+
return WIRECAT_PACKAGE.test(buffer.subarray(0, read).toString("latin1"));
|
|
166
|
+
} finally {
|
|
167
|
+
closeSync(fd);
|
|
168
|
+
}
|
|
169
|
+
} catch {
|
|
170
|
+
return false;
|
|
171
|
+
}
|
|
172
|
+
}, "isWirecatPackage");
|
|
173
|
+
var ourShortcut = /* @__PURE__ */ __name((path) => {
|
|
174
|
+
const state = fileState(path);
|
|
175
|
+
return state.state === "ours" && state.mark.kind === "shortcut";
|
|
176
|
+
}, "ourShortcut");
|
|
177
|
+
var statusOf = /* @__PURE__ */ __name((name, program, search) => {
|
|
178
|
+
const files = shimFiles("shortcut", {
|
|
179
|
+
dir: dirname(program),
|
|
180
|
+
name,
|
|
181
|
+
target: basename(program),
|
|
182
|
+
platform: search.platform
|
|
183
|
+
});
|
|
184
|
+
const named = findOnPath(name, search);
|
|
185
|
+
const made = [...files.map((file) => file.path), ...named].find(ourShortcut);
|
|
186
|
+
if (made)
|
|
187
|
+
return { name, status: "made", path: made, program };
|
|
188
|
+
const first = named[0];
|
|
189
|
+
if (first === void 0)
|
|
190
|
+
return { name, status: "free", program };
|
|
191
|
+
return { name, status: isWirecatPackage(first) ? "package" : "taken", path: first, program };
|
|
192
|
+
}, "statusOf");
|
|
193
|
+
var changeFile = /* @__PURE__ */ __name((path, change) => {
|
|
194
|
+
try {
|
|
195
|
+
change();
|
|
196
|
+
} catch (error) {
|
|
197
|
+
throw new CliError("permission_error", `could not change ${path}: ${error.code ?? error}`, {
|
|
198
|
+
reason: "access.denied"
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}, "changeFile");
|
|
202
|
+
var installedPrograms = /* @__PURE__ */ __name((search) => new Map([...findTools(search)].filter(([name]) => !isBuiltIn(name))), "installedPrograms");
|
|
203
|
+
var chosen = /* @__PURE__ */ __name((names, search) => {
|
|
204
|
+
const installed = installedPrograms(search);
|
|
205
|
+
if (names === void 0 || names.length === 0)
|
|
206
|
+
return [...installed].map(([name, paths]) => [name, paths[0]]);
|
|
207
|
+
const missing = names.filter((name) => !installed.has(name));
|
|
208
|
+
if (missing.length > 0)
|
|
209
|
+
throw new CliError("not_found", `not installed: ${missing.map((name) => `wcat-${name}`).join(", ")}`, {
|
|
210
|
+
reason: "tool.not-installed",
|
|
211
|
+
tool: missing[0],
|
|
212
|
+
installed: [...installed.keys()]
|
|
213
|
+
});
|
|
214
|
+
return [...new Set(names)].map((name) => [name, installed.get(name)[0]]);
|
|
215
|
+
}, "chosen");
|
|
216
|
+
var listShortcuts = /* @__PURE__ */ __name((search, names) => chosen(names, search).map(([name, program]) => statusOf(name, program, search)), "listShortcuts");
|
|
217
|
+
var addShortcuts = /* @__PURE__ */ __name((search, names) => listShortcuts(search, names).map((shortcut) => {
|
|
218
|
+
if (shortcut.status !== "free")
|
|
219
|
+
return { ...shortcut, changed: false };
|
|
220
|
+
const files = shimFiles("shortcut", {
|
|
221
|
+
dir: dirname(shortcut.program),
|
|
222
|
+
name: shortcut.name,
|
|
223
|
+
target: basename(shortcut.program),
|
|
224
|
+
platform: search.platform
|
|
225
|
+
});
|
|
226
|
+
for (const file of files)
|
|
227
|
+
changeFile(file.path, () => writeShim(file));
|
|
228
|
+
return { ...shortcut, status: "made", path: files[0]?.path, changed: true };
|
|
229
|
+
}), "addShortcuts");
|
|
230
|
+
var removeShortcuts = /* @__PURE__ */ __name((search, names) => listShortcuts(search, names).map((shortcut) => {
|
|
231
|
+
if (shortcut.status !== "made")
|
|
232
|
+
return { ...shortcut, changed: false };
|
|
233
|
+
const files = shimFiles("shortcut", {
|
|
234
|
+
dir: dirname(shortcut.path),
|
|
235
|
+
name: shortcut.name,
|
|
236
|
+
target: basename(shortcut.program),
|
|
237
|
+
platform: search.platform
|
|
238
|
+
});
|
|
239
|
+
for (const file of files)
|
|
240
|
+
if (ourShortcut(file.path))
|
|
241
|
+
changeFile(file.path, () => rmSync(file.path, { force: true }));
|
|
242
|
+
return { ...statusOf(shortcut.name, shortcut.program, search), changed: true };
|
|
243
|
+
}), "removeShortcuts");
|
|
244
|
+
|
|
245
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
246
|
+
var DEFAULT_DESCRIBE_TIMEOUT_MS = 2e3;
|
|
247
|
+
var listTools = /* @__PURE__ */ __name(async (context) => {
|
|
248
|
+
const installed = installedPrograms(context);
|
|
249
|
+
const timeoutMs = context.describeTimeoutMs ?? DEFAULT_DESCRIBE_TIMEOUT_MS;
|
|
250
|
+
const found = await Promise.all([...installed].map(async ([name, paths]) => {
|
|
251
|
+
const [path, ...shadowed] = paths;
|
|
252
|
+
const own = context.self?.command === name ? context.self : void 0;
|
|
253
|
+
const described = own ?? await probeDescribe(path, { env: context.env, timeoutMs });
|
|
254
|
+
return {
|
|
255
|
+
name,
|
|
256
|
+
installed: true,
|
|
257
|
+
path,
|
|
258
|
+
...described?.version ? { version: described.version } : {},
|
|
259
|
+
...described?.description ? { description: described.description } : {},
|
|
260
|
+
...described?.docs ? { docs_url: described.docs } : {},
|
|
261
|
+
...shadowed.length > 0 ? { shadowed } : {}
|
|
262
|
+
};
|
|
263
|
+
}));
|
|
264
|
+
const missing = FIRST_PARTY_TOOLS.filter((tool) => tool.package && !installed.has(tool.name)).map((tool) => ({
|
|
265
|
+
name: tool.name,
|
|
266
|
+
installed: false,
|
|
267
|
+
package: tool.package,
|
|
268
|
+
install: `npm install -g ${tool.package}`
|
|
269
|
+
}));
|
|
270
|
+
return [...found, ...missing];
|
|
271
|
+
}, "listTools");
|
|
272
|
+
var envelope = /* @__PURE__ */ __name((items, started) => ({
|
|
273
|
+
items,
|
|
274
|
+
page: { mode: "page", limit: Math.max(items.length, 1), has_more: false },
|
|
275
|
+
meta: { run_id: randomUUID(), duration_ms: Math.max(0, Math.round(performance.now() - started)), complete: true }
|
|
276
|
+
}), "envelope");
|
|
277
|
+
var column = /* @__PURE__ */ __name((rows) => {
|
|
278
|
+
const widths = rows[0]?.map((_, at) => rows.reduce((wide, row) => Math.max(wide, (row[at] ?? "").length), 0)) ?? [];
|
|
279
|
+
return rows.map((row) => ` ${row.map((cell, at) => cell.padEnd(widths[at] ?? 0)).join(" ")}`.trimEnd());
|
|
280
|
+
}, "column");
|
|
281
|
+
var USAGE = [
|
|
282
|
+
"wcat <tool> [arguments] run a tool: wcat tg --help",
|
|
283
|
+
"wcat shortcuts [add|remove] [tool...] short names, such as tg, for installed tools",
|
|
284
|
+
"wcat --json the list below as JSON"
|
|
285
|
+
];
|
|
286
|
+
var listText = /* @__PURE__ */ __name((tools) => {
|
|
287
|
+
const installed = tools.filter((tool) => tool.installed);
|
|
288
|
+
const missing = tools.filter((tool) => !tool.installed);
|
|
289
|
+
return [
|
|
290
|
+
"wcat runs WireCat tools, and any other wcat-<name> program on PATH.",
|
|
291
|
+
"",
|
|
292
|
+
...USAGE,
|
|
293
|
+
"",
|
|
294
|
+
installed.length > 0 ? "Installed:" : "Installed: none",
|
|
295
|
+
...column(installed.map((tool) => [tool.name, tool.version ?? "", tool.description ?? "(no description)"])),
|
|
296
|
+
...missing.length > 0 ? ["", "Not installed:", ...column(missing.map((tool) => [tool.name, tool.install ?? ""]))] : [],
|
|
297
|
+
""
|
|
298
|
+
].join("\n");
|
|
299
|
+
}, "listText");
|
|
300
|
+
var shadowWarnings = /* @__PURE__ */ __name((tools) => tools.filter((tool) => tool.shadowed).map((tool) => `wcat: ${(tool.shadowed?.length ?? 0) + 1} programs are named ${PROGRAM_PREFIX}${tool.name}; wcat runs the first:
|
|
301
|
+
${[tool.path, ...tool.shadowed ?? []].map((path) => ` ${path}`).join("\n")}
|
|
302
|
+
`).join(""), "shadowWarnings");
|
|
303
|
+
var shortcutText = /* @__PURE__ */ __name((shortcuts2) => {
|
|
304
|
+
if (shortcuts2.length === 0)
|
|
305
|
+
return "No wcat-<name> programs are installed.\n";
|
|
306
|
+
const said = /* @__PURE__ */ __name((shortcut) => {
|
|
307
|
+
switch (shortcut.status) {
|
|
308
|
+
case "made":
|
|
309
|
+
return `made: ${shortcut.path}`;
|
|
310
|
+
case "free":
|
|
311
|
+
return shortcut.changed ? "removed" : "free: wcat shortcuts add makes it";
|
|
312
|
+
case "package":
|
|
313
|
+
return `installed by the package: ${shortcut.path}`;
|
|
314
|
+
case "taken":
|
|
315
|
+
return `taken by ${shortcut.path}`;
|
|
316
|
+
}
|
|
317
|
+
}, "said");
|
|
318
|
+
return `${column(shortcuts2.map((shortcut) => [shortcut.name, said(shortcut)])).join("\n")}
|
|
319
|
+
`;
|
|
320
|
+
}, "shortcutText");
|
|
321
|
+
var signalNumber = /* @__PURE__ */ __name((signal) => constants.signals[signal] ?? 1, "signalNumber");
|
|
322
|
+
var runTool = /* @__PURE__ */ __name((path, args, context) => new Promise((resolve, reject) => {
|
|
323
|
+
const signals = context.signals ?? process;
|
|
324
|
+
const child = (0, import_cross_spawn2.default)(path, [...args], { stdio: "inherit", env: context.env });
|
|
325
|
+
const pass = /* @__PURE__ */ __name((signal) => () => child.kill(signal), "pass");
|
|
326
|
+
const term = pass("SIGTERM");
|
|
327
|
+
const hup = pass("SIGHUP");
|
|
328
|
+
const ignore = /* @__PURE__ */ __name(() => {
|
|
329
|
+
}, "ignore");
|
|
330
|
+
signals.on("SIGTERM", term).on("SIGHUP", hup).on("SIGINT", ignore);
|
|
331
|
+
const done = /* @__PURE__ */ __name(() => signals.off("SIGTERM", term).off("SIGHUP", hup).off("SIGINT", ignore), "done");
|
|
332
|
+
child.once("error", (error) => {
|
|
333
|
+
done();
|
|
334
|
+
reject(new CliError("configuration_error", `could not start ${path}: ${error.message}`));
|
|
335
|
+
});
|
|
336
|
+
child.once("exit", (code, signal) => {
|
|
337
|
+
done();
|
|
338
|
+
resolve(code ?? (signal ? 128 + signalNumber(signal) : 1));
|
|
339
|
+
});
|
|
340
|
+
}), "runTool");
|
|
341
|
+
var fail = /* @__PURE__ */ __name(async (error, json, context) => {
|
|
342
|
+
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-HTIS3NLS.js");
|
|
343
|
+
const object = errorObjectOf(error);
|
|
344
|
+
context.stderr.write(`${renderError(object, { cli: "wcat", interactive: !json })}
|
|
345
|
+
`);
|
|
346
|
+
return exitCodeOfError(object);
|
|
347
|
+
}, "fail");
|
|
348
|
+
var shortcuts = /* @__PURE__ */ __name(async (args, json, context) => {
|
|
349
|
+
const [action, ...names] = args;
|
|
350
|
+
const started = performance.now();
|
|
351
|
+
const result = action === "add" ? addShortcuts(context, names) : action === "remove" ? removeShortcuts(context, names) : action === void 0 || action === "list" ? listShortcuts(context, names) : void 0;
|
|
352
|
+
if (result === void 0)
|
|
353
|
+
throw new CliError("validation_error", `wcat shortcuts takes list, add or remove, not "${action}"`, {
|
|
354
|
+
reason: "input.invalid"
|
|
355
|
+
});
|
|
356
|
+
context.stdout.write(json ? `${JSON.stringify(envelope(result, started))}
|
|
357
|
+
` : shortcutText(result));
|
|
358
|
+
return 0;
|
|
359
|
+
}, "shortcuts");
|
|
360
|
+
var runWcat = /* @__PURE__ */ __name(async (args, context) => {
|
|
361
|
+
const [first, ...rest] = args;
|
|
362
|
+
const json = args.includes("--json");
|
|
363
|
+
const words = args.filter((word) => word !== "--json");
|
|
364
|
+
const started = performance.now();
|
|
365
|
+
try {
|
|
366
|
+
if (first === "--version" || first === "-V" || first === "version") {
|
|
367
|
+
const tools = await listTools(context);
|
|
368
|
+
const by = context.self ? `, run by ${PROGRAM_PREFIX}${context.self.command} ${context.self.version}` : "";
|
|
369
|
+
context.stdout.write(`wcat ${baseVersion()} (@wirecat/cli-base${by})
|
|
370
|
+
|
|
371
|
+
${listText(tools)}`);
|
|
372
|
+
return 0;
|
|
373
|
+
}
|
|
374
|
+
if (words.length === 0 || first === "--help" || first === "-h" || first === "help") {
|
|
375
|
+
const tools = await listTools(context);
|
|
376
|
+
if (json)
|
|
377
|
+
context.stdout.write(`${JSON.stringify(envelope(tools, started))}
|
|
378
|
+
`);
|
|
379
|
+
else {
|
|
380
|
+
context.stderr.write(shadowWarnings(tools));
|
|
381
|
+
context.stdout.write(listText(tools));
|
|
382
|
+
}
|
|
383
|
+
return 0;
|
|
384
|
+
}
|
|
385
|
+
if (first === "shortcuts")
|
|
386
|
+
return await shortcuts(words.slice(1), json, context);
|
|
387
|
+
if (BUILT_IN_COMMANDS.includes(first))
|
|
388
|
+
throw new CliError("validation_error", `wcat ${first} is reserved for a later version of wcat`, {
|
|
389
|
+
reason: "input.invalid"
|
|
390
|
+
});
|
|
391
|
+
if (first?.startsWith("-"))
|
|
392
|
+
throw new CliError("validation_error", `wcat does not take ${first} before a tool's name`, {
|
|
393
|
+
reason: "input.invalid"
|
|
394
|
+
});
|
|
395
|
+
const name = first;
|
|
396
|
+
const [path, ...shadowed] = TOOL_NAME.test(name) ? findOnPath(`${PROGRAM_PREFIX}${name}`, context) : [];
|
|
397
|
+
if (path === void 0) {
|
|
398
|
+
const installed = [...installedPrograms(context).keys()];
|
|
399
|
+
throw new CliError("not_found", `no ${PROGRAM_PREFIX}${name} on PATH; installed: ${installed.length > 0 ? installed.join(", ") : "none"}`, { reason: "tool.not-installed", tool: name, installed });
|
|
400
|
+
}
|
|
401
|
+
if (shadowed.length > 0 && context.stderr.isTTY)
|
|
402
|
+
context.stderr.write(shadowWarnings([{ name, installed: true, path, shadowed }]));
|
|
403
|
+
return await runTool(path, rest, context);
|
|
404
|
+
} catch (error) {
|
|
405
|
+
return fail(error, json, context);
|
|
406
|
+
}
|
|
407
|
+
}, "runWcat");
|
|
408
|
+
export {
|
|
409
|
+
listTools,
|
|
410
|
+
runTool,
|
|
411
|
+
runWcat
|
|
412
|
+
};
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
parseMarkdownSpans,
|
|
12
12
|
plainQr,
|
|
13
13
|
terminalQr
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QEI55M2F.js";
|
|
15
15
|
import {
|
|
16
16
|
DETAILS,
|
|
17
17
|
REASONS,
|
|
18
18
|
failureContext
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZRMZBMOF.js";
|
|
20
20
|
import {
|
|
21
21
|
pollLines,
|
|
22
22
|
renderMessage,
|
|
23
23
|
renderMessages
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-B5Z4XPVS.js";
|
|
25
25
|
import {
|
|
26
26
|
ModerationRules,
|
|
27
27
|
act,
|
|
@@ -32,25 +32,32 @@ import {
|
|
|
32
32
|
pickChat,
|
|
33
33
|
pickPerson,
|
|
34
34
|
validateFormattedText
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-GP4NSYDU.js";
|
|
36
36
|
import "./chunk-HTQTIKWP.js";
|
|
37
37
|
import {
|
|
38
38
|
resolveOutput
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import {
|
|
42
|
-
readSecret
|
|
43
|
-
} from "./chunk-VW2SW7ME.js";
|
|
44
|
-
import "./chunk-KYLS5QGC.js";
|
|
39
|
+
} from "./chunk-7K5TDTZY.js";
|
|
40
|
+
import "./chunk-VNIBTNV4.js";
|
|
45
41
|
import {
|
|
46
42
|
COUNTER_FIELDS,
|
|
43
|
+
CURRENCY_SCALES,
|
|
44
|
+
FINANCE_REVIEWS,
|
|
47
45
|
FOLDER_PROVIDERS,
|
|
46
|
+
INVOICE_DIRECTIONS,
|
|
47
|
+
INVOICE_STATUSES,
|
|
48
48
|
KINDS,
|
|
49
|
+
MONEY_DIRECTIONS,
|
|
49
50
|
PROVIDERS,
|
|
51
|
+
RECORDS_ENVELOPE_SCHEMA,
|
|
52
|
+
RECORDS_SCHEMA_VERSION,
|
|
53
|
+
RECORD_ENTITY_TYPES,
|
|
54
|
+
RECORD_OPERATIONS,
|
|
50
55
|
REF_KINDS,
|
|
51
56
|
UNKNOWN_PROVIDER,
|
|
52
57
|
canonicalReference,
|
|
53
58
|
counterValue,
|
|
59
|
+
currencyOf,
|
|
60
|
+
envelopeOfJsonl,
|
|
54
61
|
formatLocator,
|
|
55
62
|
formatReference,
|
|
56
63
|
isFolderProvider,
|
|
@@ -59,6 +66,9 @@ import {
|
|
|
59
66
|
kindIn,
|
|
60
67
|
kindOf,
|
|
61
68
|
looksLikeReference,
|
|
69
|
+
minorUnits,
|
|
70
|
+
moneyLabel,
|
|
71
|
+
moneyOf,
|
|
62
72
|
observedCounters,
|
|
63
73
|
parseLocator,
|
|
64
74
|
parseReference,
|
|
@@ -66,30 +76,47 @@ import {
|
|
|
66
76
|
providers,
|
|
67
77
|
rankingOptions,
|
|
68
78
|
useProviders
|
|
69
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-J3ZBEWQY.js";
|
|
70
80
|
import {
|
|
71
81
|
TAG_TYPES,
|
|
72
82
|
normalizeTag
|
|
73
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-Z3WXI4DK.js";
|
|
84
|
+
import "./chunk-OZEYFJX2.js";
|
|
85
|
+
import {
|
|
86
|
+
readSecret
|
|
87
|
+
} from "./chunk-DG4DWAU7.js";
|
|
88
|
+
import "./chunk-TBRG2DPE.js";
|
|
74
89
|
import {
|
|
75
90
|
canonicalMeetingReference,
|
|
76
91
|
formatMeetingReference,
|
|
77
92
|
parseMeetingReference
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
93
|
+
} from "./chunk-DFUPETW7.js";
|
|
94
|
+
import "./chunk-AAZFLJSH.js";
|
|
95
|
+
import "./chunk-LU3WKZBA.js";
|
|
96
|
+
import "./chunk-T6CZWSHF.js";
|
|
97
|
+
import "./chunk-NTZDM5SJ.js";
|
|
82
98
|
import "./chunk-Y5E2WNWB.js";
|
|
99
|
+
import "./chunk-WZ5XK74U.js";
|
|
100
|
+
import "./chunk-6IBM4Z3V.js";
|
|
83
101
|
import "./chunk-ZVVMGPBJ.js";
|
|
84
102
|
export {
|
|
85
103
|
DETAILS as CORE_DETAILS,
|
|
86
104
|
REASONS as CORE_REASONS,
|
|
87
105
|
COUNTER_FIELDS,
|
|
106
|
+
CURRENCY_SCALES,
|
|
107
|
+
FINANCE_REVIEWS,
|
|
88
108
|
FOLDER_PROVIDERS,
|
|
109
|
+
INVOICE_DIRECTIONS,
|
|
110
|
+
INVOICE_STATUSES,
|
|
89
111
|
KINDS,
|
|
112
|
+
MONEY_DIRECTIONS,
|
|
90
113
|
ModerationRules,
|
|
91
114
|
PASTE_QR,
|
|
92
115
|
PROVIDERS,
|
|
116
|
+
RECORDS_ENVELOPE_SCHEMA,
|
|
117
|
+
RECORDS_SCHEMA_VERSION,
|
|
118
|
+
RECORD_ENTITY_TYPES,
|
|
119
|
+
RECORD_OPERATIONS,
|
|
93
120
|
REF_KINDS,
|
|
94
121
|
TAG_TYPES,
|
|
95
122
|
UNKNOWN_PROVIDER,
|
|
@@ -101,7 +128,9 @@ export {
|
|
|
101
128
|
checkWords,
|
|
102
129
|
countedPoll,
|
|
103
130
|
counterValue,
|
|
131
|
+
currencyOf,
|
|
104
132
|
defaultRules,
|
|
133
|
+
envelopeOfJsonl,
|
|
105
134
|
failureContext,
|
|
106
135
|
formatLocator,
|
|
107
136
|
formatMeetingReference,
|
|
@@ -115,7 +144,10 @@ export {
|
|
|
115
144
|
kindOf,
|
|
116
145
|
loginQr,
|
|
117
146
|
looksLikeReference,
|
|
147
|
+
minorUnits,
|
|
118
148
|
moderationPathFor,
|
|
149
|
+
moneyLabel,
|
|
150
|
+
moneyOf,
|
|
119
151
|
normalizeTag,
|
|
120
152
|
observedCounters,
|
|
121
153
|
parseLocator,
|
|
@@ -42399,7 +42399,7 @@ function install11(registers) {
|
|
|
42399
42399
|
}
|
|
42400
42400
|
__name(install11, "install");
|
|
42401
42401
|
|
|
42402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42402
|
+
// 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/charts/echarts-option.js
|
|
42403
42403
|
var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
42404
42404
|
animation: false,
|
|
42405
42405
|
backgroundColor: "#111827",
|
|
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
|
42447
42447
|
} : {}
|
|
42448
42448
|
}), "echartsOption");
|
|
42449
42449
|
|
|
42450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42450
|
+
// 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/charts/echarts.js
|
|
42451
42451
|
use([install2, install, install6, install5, install10, install7, install11]);
|
|
42452
42452
|
var echartsRenderer = {
|
|
42453
42453
|
render: /* @__PURE__ */ __name(async (chart, size) => {
|
|
@@ -13,11 +13,14 @@ import {
|
|
|
13
13
|
truncated,
|
|
14
14
|
unit,
|
|
15
15
|
warmEmbedders
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-LM26DJOK.js";
|
|
17
|
+
import "./chunk-EPDRF66S.js";
|
|
18
|
+
import "./chunk-6AJDVJVZ.js";
|
|
19
|
+
import "./chunk-T6CZWSHF.js";
|
|
20
|
+
import "./chunk-NTZDM5SJ.js";
|
|
20
21
|
import "./chunk-Y5E2WNWB.js";
|
|
22
|
+
import "./chunk-WZ5XK74U.js";
|
|
23
|
+
import "./chunk-6IBM4Z3V.js";
|
|
21
24
|
import "./chunk-ZVVMGPBJ.js";
|
|
22
25
|
export {
|
|
23
26
|
WARM_IDLE_MS,
|
|
@@ -4,24 +4,27 @@ import {
|
|
|
4
4
|
openSession,
|
|
5
5
|
truncated,
|
|
6
6
|
unit
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
} from "./chunk-JF7ZEUXU.js";
|
|
7
|
+
} from "./chunk-LM26DJOK.js";
|
|
8
|
+
import "./chunk-EPDRF66S.js";
|
|
9
|
+
import "./chunk-6AJDVJVZ.js";
|
|
10
|
+
import "./chunk-T6CZWSHF.js";
|
|
11
|
+
import "./chunk-NTZDM5SJ.js";
|
|
13
12
|
import {
|
|
14
13
|
importFrom
|
|
15
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
15
|
+
import {
|
|
16
|
+
CliError
|
|
17
|
+
} from "./chunk-WZ5XK74U.js";
|
|
18
|
+
import "./chunk-6IBM4Z3V.js";
|
|
16
19
|
import {
|
|
17
20
|
__name
|
|
18
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
22
|
|
|
20
|
-
// 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/images/picture/embedder.js
|
|
21
24
|
import { readFileSync } from "node:fs";
|
|
22
25
|
import { join } from "node:path";
|
|
23
26
|
|
|
24
|
-
// 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/images/picture/preprocess.js
|
|
25
28
|
var SIZE = 224;
|
|
26
29
|
var MEAN = [0.48145466, 0.4578275, 0.40821073];
|
|
27
30
|
var STD = [0.26862954, 0.26130258, 0.27577711];
|
|
@@ -60,7 +63,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
|
|
|
60
63
|
return pixels;
|
|
61
64
|
}, "preprocess");
|
|
62
65
|
|
|
63
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
66
|
+
// 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/images/picture/embedder.js
|
|
64
67
|
var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
|
|
65
68
|
const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
|
|
66
69
|
const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
catchCrashes,
|
|
5
|
+
errorObjectOf,
|
|
6
|
+
errorRecordOf,
|
|
7
|
+
exitCodeOfAnswer,
|
|
8
|
+
exitCodeOfError,
|
|
9
|
+
mcpErrorResult,
|
|
10
|
+
renderError,
|
|
11
|
+
retryOf
|
|
12
|
+
} from "./chunk-NTZDM5SJ.js";
|
|
13
|
+
import "./chunk-WZ5XK74U.js";
|
|
14
|
+
import "./chunk-6IBM4Z3V.js";
|
|
15
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
16
|
+
export {
|
|
17
|
+
catchCrashes,
|
|
18
|
+
errorObjectOf,
|
|
19
|
+
errorRecordOf,
|
|
20
|
+
exitCodeOfAnswer,
|
|
21
|
+
exitCodeOfError,
|
|
22
|
+
mcpErrorResult,
|
|
23
|
+
renderError,
|
|
24
|
+
retryOf
|
|
25
|
+
};
|