@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
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TBRG2DPE.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WZ5XK74U.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@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/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6AJDVJVZ.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/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// 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/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -2,35 +2,37 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
encodeWav
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QX2MAT6I.js";
|
|
6
6
|
import {
|
|
7
7
|
SAMPLE_RATE,
|
|
8
8
|
toModelRate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KWRSC6O6.js";
|
|
10
10
|
import {
|
|
11
11
|
OPENAI_URL
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3GO3KME7.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENAI_TRANSCRIBE_MODEL,
|
|
15
15
|
VAD,
|
|
16
16
|
filesPresent,
|
|
17
17
|
modelsDirectory,
|
|
18
18
|
vadPath
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-EPDRF66S.js";
|
|
20
20
|
import {
|
|
21
|
-
CliError,
|
|
22
21
|
DEFAULT_RETRY,
|
|
23
|
-
backoffMs
|
|
22
|
+
backoffMs
|
|
23
|
+
} from "./chunk-T6CZWSHF.js";
|
|
24
|
+
import {
|
|
25
|
+
CliError,
|
|
24
26
|
isCliError
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WZ5XK74U.js";
|
|
26
28
|
import {
|
|
27
29
|
__name
|
|
28
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
31
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// 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/openai.js
|
|
31
33
|
import { setTimeout as wait } from "node:timers/promises";
|
|
32
34
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
35
|
+
// 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/http/body.js
|
|
34
36
|
var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
|
|
35
37
|
var checked = /* @__PURE__ */ __name((signal) => {
|
|
36
38
|
if (signal?.aborted)
|
|
@@ -115,7 +117,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
|
|
|
115
117
|
}
|
|
116
118
|
}, "readJsonResponse");
|
|
117
119
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
120
|
+
// 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/http/index.js
|
|
119
121
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
120
122
|
if (!header)
|
|
121
123
|
return void 0;
|
|
@@ -157,7 +159,7 @@ var statusToCode = /* @__PURE__ */ __name((status) => {
|
|
|
157
159
|
return "provider_error";
|
|
158
160
|
}, "statusToCode");
|
|
159
161
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
162
|
+
// 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/openai.js
|
|
161
163
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
162
164
|
var JOINED_SECONDS = 0.2;
|
|
163
165
|
var PAD_SECONDS = 0.2;
|
|
@@ -279,7 +281,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
279
281
|
return pieces;
|
|
280
282
|
}, "piecesOf");
|
|
281
283
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
282
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
284
|
+
const { openSpeechCutter } = await import("./recognize-OLJZVNWW.js");
|
|
283
285
|
return openSpeechCutter(vadModel);
|
|
284
286
|
}, "openCutter");
|
|
285
287
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
refuseLacking
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SMVO5R3T.js";
|
|
6
6
|
import {
|
|
7
7
|
servingProfiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LFQ73UFK.js";
|
|
9
9
|
import {
|
|
10
10
|
OFFLINE,
|
|
11
11
|
capability,
|
|
@@ -13,7 +13,14 @@ import {
|
|
|
13
13
|
profilesOnAccount,
|
|
14
14
|
servicesFor,
|
|
15
15
|
throughWrapper
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7HAIM7GV.js";
|
|
17
|
+
import {
|
|
18
|
+
chatReferenceOf,
|
|
19
|
+
ensureAccount,
|
|
20
|
+
foldName,
|
|
21
|
+
isId,
|
|
22
|
+
pickPerson
|
|
23
|
+
} from "./chunk-GP4NSYDU.js";
|
|
17
24
|
import {
|
|
18
25
|
asFirstWord,
|
|
19
26
|
baseContext,
|
|
@@ -24,14 +31,14 @@ import {
|
|
|
24
31
|
recalledAccount,
|
|
25
32
|
rememberAccount,
|
|
26
33
|
rootOf2 as rootOf
|
|
27
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SSXCOUP3.js";
|
|
28
35
|
import {
|
|
29
36
|
MESSENGER_CHANGE_REFUSAL,
|
|
30
37
|
readOnlyRefusal
|
|
31
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SCFFCIIP.js";
|
|
32
39
|
import {
|
|
33
40
|
providerErrorKey
|
|
34
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-LKJXTACE.js";
|
|
35
42
|
import {
|
|
36
43
|
LOG_ATTRIBUTES,
|
|
37
44
|
codeOf,
|
|
@@ -40,17 +47,10 @@ import {
|
|
|
40
47
|
fromLogAttributes,
|
|
41
48
|
limitBatch,
|
|
42
49
|
logAttributes
|
|
43
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-4U2555EQ.js";
|
|
44
51
|
import {
|
|
45
52
|
isCliFailure
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import {
|
|
48
|
-
chatReferenceOf,
|
|
49
|
-
ensureAccount,
|
|
50
|
-
foldName,
|
|
51
|
-
isId,
|
|
52
|
-
pickPerson
|
|
53
|
-
} from "./chunk-PV3UDPCI.js";
|
|
53
|
+
} from "./chunk-3ZIHUSMM.js";
|
|
54
54
|
import {
|
|
55
55
|
AUTHORITY_KEY,
|
|
56
56
|
CEILING_KEY,
|
|
@@ -61,22 +61,24 @@ import {
|
|
|
61
61
|
levelFor,
|
|
62
62
|
readKeysForCommand,
|
|
63
63
|
skipFlagFor
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-VNIBTNV4.js";
|
|
65
65
|
import {
|
|
66
66
|
openStore
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-M43MBWJX.js";
|
|
68
68
|
import {
|
|
69
|
-
CliError,
|
|
70
69
|
logRecordOf,
|
|
71
70
|
realSleep,
|
|
72
71
|
resolvePaths,
|
|
73
72
|
writeSecurely
|
|
74
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-T6CZWSHF.js";
|
|
74
|
+
import {
|
|
75
|
+
CliError
|
|
76
|
+
} from "./chunk-WZ5XK74U.js";
|
|
75
77
|
import {
|
|
76
78
|
__name
|
|
77
79
|
} from "./chunk-ZVVMGPBJ.js";
|
|
78
80
|
|
|
79
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// 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/ask.js
|
|
80
82
|
import { openSync } from "node:fs";
|
|
81
83
|
import { createInterface } from "node:readline";
|
|
82
84
|
import { ReadStream } from "node:tty";
|
|
@@ -131,10 +133,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
131
133
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
132
134
|
}, "terminalAsker");
|
|
133
135
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
136
|
+
// 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/sends/guard.js
|
|
135
137
|
import { randomUUID } from "node:crypto";
|
|
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/sends/flood.js
|
|
138
140
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
139
141
|
import { dirname, join } from "node:path";
|
|
140
142
|
var MOST_DEADLINES = 50;
|
|
@@ -218,11 +220,11 @@ var FloodMemory = class {
|
|
|
218
220
|
}
|
|
219
221
|
};
|
|
220
222
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
223
|
+
// 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/sends/journal.js
|
|
222
224
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
223
225
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
224
226
|
|
|
225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
227
|
+
// 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/sends/file-lock.js
|
|
226
228
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
227
229
|
import { dirname as dirname2 } from "node:path";
|
|
228
230
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -289,7 +291,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
289
291
|
}
|
|
290
292
|
}, "lockTime");
|
|
291
293
|
|
|
292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
294
|
+
// 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/sends/journal.js
|
|
293
295
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
294
296
|
var SendJournal = class {
|
|
295
297
|
static {
|
|
@@ -366,7 +368,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
366
368
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
367
369
|
}, "withSendId");
|
|
368
370
|
|
|
369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
371
|
+
// 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/sends/recipients.js
|
|
370
372
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
371
373
|
import { join as join3 } from "node:path";
|
|
372
374
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -478,7 +480,7 @@ var RecipientList = class {
|
|
|
478
480
|
}
|
|
479
481
|
};
|
|
480
482
|
|
|
481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
483
|
+
// 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/sends/guard.js
|
|
482
484
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
483
485
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
484
486
|
"attachments.extract",
|
|
@@ -671,7 +673,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
671
673
|
}), "guardFor");
|
|
672
674
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
673
675
|
|
|
674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
676
|
+
// 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/permission-keys.js
|
|
675
677
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
676
678
|
"help",
|
|
677
679
|
"guide",
|
|
@@ -686,10 +688,11 @@ var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
|
686
688
|
"runs"
|
|
687
689
|
]);
|
|
688
690
|
var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) ? null : path.join("."), "commandPathKey");
|
|
689
|
-
var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {} } = {}) => ({
|
|
691
|
+
var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {}, alsoChecks } = {}) => ({
|
|
690
692
|
keyOf,
|
|
691
693
|
extra: [AUTHORITY_KEY, ...extra],
|
|
692
|
-
defaults: { ...DEFAULT_PERMISSIONS, ...defaults }
|
|
694
|
+
defaults: { ...DEFAULT_PERMISSIONS, ...defaults },
|
|
695
|
+
...alsoChecks ? { alsoChecks } : {}
|
|
693
696
|
}), "commandPermissions");
|
|
694
697
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
695
698
|
const words = [];
|
|
@@ -750,7 +753,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
750
753
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
751
754
|
}, "refuseUnknownPermissionKeys");
|
|
752
755
|
|
|
753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
756
|
+
// 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/stored.js
|
|
754
757
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
755
758
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
756
759
|
let warned = false;
|
|
@@ -1326,7 +1329,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1326
1329
|
}
|
|
1327
1330
|
}, "keep");
|
|
1328
1331
|
|
|
1329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1332
|
+
// 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/sends/pace.js
|
|
1330
1333
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
1331
1334
|
import { join as join4 } from "node:path";
|
|
1332
1335
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -1385,7 +1388,7 @@ var Pacer = class {
|
|
|
1385
1388
|
}
|
|
1386
1389
|
};
|
|
1387
1390
|
|
|
1388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1391
|
+
// 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/flooded.js
|
|
1389
1392
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
1390
1393
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
1391
1394
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -1504,7 +1507,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
1504
1507
|
});
|
|
1505
1508
|
}, "flooded");
|
|
1506
1509
|
|
|
1507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1510
|
+
// 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/observed.js
|
|
1508
1511
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
1509
1512
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
1510
1513
|
const write = currentOperation();
|
|
@@ -1603,7 +1606,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1603
1606
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1604
1607
|
}, "byPart");
|
|
1605
1608
|
|
|
1606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1609
|
+
// 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/context.js
|
|
1607
1610
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1608
1611
|
let opened;
|
|
1609
1612
|
return {
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OTMGAKUM.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6AJDVJVZ.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WZ5XK74U.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// 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/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CHART_KINDS,
|
|
5
|
+
CHART_SIZE,
|
|
6
|
+
chartAnswer,
|
|
7
|
+
chartPng,
|
|
8
|
+
chartRenderer,
|
|
9
|
+
chatChart,
|
|
10
|
+
keepRefreshedRefs,
|
|
11
|
+
mcpUrlOf,
|
|
12
|
+
refuseWriteBeforeConnecting,
|
|
13
|
+
registerPrompts,
|
|
14
|
+
stdinFieldOf,
|
|
15
|
+
syncsFirst
|
|
16
|
+
} from "./chunk-I7SOXH64.js";
|
|
17
|
+
import {
|
|
18
|
+
answeredWire
|
|
19
|
+
} from "./chunk-CLEZE65P.js";
|
|
3
20
|
import {
|
|
4
21
|
BinaryResource,
|
|
5
22
|
Picture,
|
|
@@ -20,62 +37,45 @@ import {
|
|
|
20
37
|
tool,
|
|
21
38
|
toolKey,
|
|
22
39
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
CHART_KINDS,
|
|
26
|
-
CHART_SIZE,
|
|
27
|
-
chartAnswer,
|
|
28
|
-
chartPng,
|
|
29
|
-
chartRenderer,
|
|
30
|
-
chatChart,
|
|
31
|
-
keepRefreshedRefs,
|
|
32
|
-
mcpUrlOf,
|
|
33
|
-
refuseWriteBeforeConnecting,
|
|
34
|
-
registerPrompts,
|
|
35
|
-
stdinFieldOf,
|
|
36
|
-
syncsFirst
|
|
37
|
-
} from "./chunk-ZFNM3FNI.js";
|
|
40
|
+
} from "./chunk-WHQ4ZCJI.js";
|
|
38
41
|
import {
|
|
39
42
|
agentJson,
|
|
40
43
|
skillResource
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import {
|
|
43
|
-
instructions
|
|
44
|
-
} from "./chunk-S4GDDO5S.js";
|
|
45
|
-
import {
|
|
46
|
-
mcpHttpMarker
|
|
47
|
-
} from "./chunk-TC7PD3LH.js";
|
|
48
|
-
import {
|
|
49
|
-
answeredWire
|
|
50
|
-
} from "./chunk-U3ZUT557.js";
|
|
44
|
+
} from "./chunk-7VU5UGRR.js";
|
|
51
45
|
import {
|
|
52
46
|
StdioServerTransport,
|
|
53
47
|
callerOf,
|
|
54
48
|
callingAgent,
|
|
55
49
|
serveStdio
|
|
56
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-KANH7GBB.js";
|
|
51
|
+
import {
|
|
52
|
+
instructions
|
|
53
|
+
} from "./chunk-IFDO3YPJ.js";
|
|
57
54
|
import {
|
|
58
55
|
McpServer,
|
|
59
56
|
ResourceTemplate
|
|
60
57
|
} from "./chunk-5D4AEUVA.js";
|
|
58
|
+
import {
|
|
59
|
+
mcpHttpMarker
|
|
60
|
+
} from "./chunk-MWEOVTIF.js";
|
|
61
61
|
import {
|
|
62
62
|
connectedFor,
|
|
63
63
|
guardFor
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-ESFMHBHH.js";
|
|
65
65
|
import {
|
|
66
66
|
lackedNeed,
|
|
67
67
|
wholeList
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-SMVO5R3T.js";
|
|
69
69
|
import {
|
|
70
70
|
capability,
|
|
71
71
|
dateWindow,
|
|
72
72
|
imageSize,
|
|
73
73
|
servicesFor,
|
|
74
74
|
storedDeps
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-7HAIM7GV.js";
|
|
76
76
|
import {
|
|
77
77
|
findCommand
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-L6CAUVMU.js";
|
|
79
79
|
import {
|
|
80
80
|
DEFAULT_OUTPUT_BYTES,
|
|
81
81
|
changesAuthorityAt,
|
|
@@ -88,35 +88,34 @@ import {
|
|
|
88
88
|
rootOf2 as rootOf,
|
|
89
89
|
sealed,
|
|
90
90
|
snakeKeys
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-SSXCOUP3.js";
|
|
92
92
|
import {
|
|
93
93
|
readOnlyLockOf
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-SCFFCIIP.js";
|
|
95
95
|
import {
|
|
96
96
|
withCaller
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-LKJXTACE.js";
|
|
98
98
|
import {
|
|
99
99
|
typedCommand
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-4U2555EQ.js";
|
|
101
101
|
import {
|
|
102
102
|
isCliFailure
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-3ZIHUSMM.js";
|
|
104
104
|
import {
|
|
105
105
|
levelFor,
|
|
106
106
|
readKeysForCommand
|
|
107
|
-
} from "./chunk-
|
|
108
|
-
import {
|
|
109
|
-
warmEmbedders
|
|
110
|
-
} from "./chunk-T3KICUOK.js";
|
|
107
|
+
} from "./chunk-VNIBTNV4.js";
|
|
111
108
|
import {
|
|
112
109
|
openStore,
|
|
113
110
|
pdfPreviewLimits
|
|
114
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-M43MBWJX.js";
|
|
112
|
+
import {
|
|
113
|
+
warmEmbedders
|
|
114
|
+
} from "./chunk-LM26DJOK.js";
|
|
115
115
|
import {
|
|
116
116
|
timezoneOf
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-AAZFLJSH.js";
|
|
118
118
|
import {
|
|
119
|
-
CliError,
|
|
120
119
|
description,
|
|
121
120
|
integer,
|
|
122
121
|
maxValue,
|
|
@@ -130,17 +129,22 @@ import {
|
|
|
130
129
|
pipe,
|
|
131
130
|
regex,
|
|
132
131
|
strictObject,
|
|
133
|
-
string
|
|
132
|
+
string
|
|
133
|
+
} from "./chunk-NTZDM5SJ.js";
|
|
134
|
+
import {
|
|
135
|
+
CliError
|
|
136
|
+
} from "./chunk-WZ5XK74U.js";
|
|
137
|
+
import {
|
|
134
138
|
visibleControls
|
|
135
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-6IBM4Z3V.js";
|
|
136
140
|
import {
|
|
137
141
|
__name
|
|
138
142
|
} from "./chunk-ZVVMGPBJ.js";
|
|
139
143
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
144
|
+
// 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/mcp/server.js
|
|
141
145
|
import { randomUUID } from "node:crypto";
|
|
142
146
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// 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/mcp/agent-log.js
|
|
144
148
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
145
149
|
let held;
|
|
146
150
|
return {
|
|
@@ -159,7 +163,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
159
163
|
};
|
|
160
164
|
}, "agentLog");
|
|
161
165
|
|
|
162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
166
|
+
// 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/mcp/resources.js
|
|
163
167
|
var LISTED = 100;
|
|
164
168
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
165
169
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -197,7 +201,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
197
201
|
});
|
|
198
202
|
}, "registerResources");
|
|
199
203
|
|
|
200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
204
|
+
// 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/mcp/session.js
|
|
201
205
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
202
206
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
203
207
|
var MessengerSession = class {
|
|
@@ -272,7 +276,7 @@ var MessengerSession = class {
|
|
|
272
276
|
}
|
|
273
277
|
};
|
|
274
278
|
|
|
275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
279
|
+
// 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/mcp/tools/attachments.js
|
|
276
280
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
277
281
|
const _command = messenger.app.command;
|
|
278
282
|
return {
|
|
@@ -326,7 +330,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
326
330
|
};
|
|
327
331
|
}, "attachmentsTools");
|
|
328
332
|
|
|
329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
333
|
+
// 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/mcp/tools/messages-photo.js
|
|
330
334
|
var PHOTO_LIMIT = 512 * 1024;
|
|
331
335
|
var IMAGE_TYPES = [
|
|
332
336
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -380,7 +384,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
380
384
|
return new Uint8Array(Buffer.concat(chunks));
|
|
381
385
|
}, "readUpTo");
|
|
382
386
|
|
|
383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
387
|
+
// 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/mcp/tools/stats.js
|
|
384
388
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
385
389
|
stats_charts: tool({
|
|
386
390
|
title: "A chart from a chat's statistics",
|
|
@@ -417,14 +421,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
417
421
|
})
|
|
418
422
|
}), "statsTools");
|
|
419
423
|
|
|
420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
424
|
+
// 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/mcp/tools.js
|
|
421
425
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
422
426
|
...messagesPhotoTools(messenger),
|
|
423
427
|
...attachmentsTools(messenger),
|
|
424
428
|
...statsTools(messenger)
|
|
425
429
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
426
430
|
|
|
427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
431
|
+
// 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/mcp/server.js
|
|
428
432
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
429
433
|
"streams",
|
|
430
434
|
"stdin",
|
|
@@ -748,7 +752,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
748
752
|
}, "serveOverStdio");
|
|
749
753
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
750
754
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
751
|
-
const { serveOverHttp } = await import("./serve-
|
|
755
|
+
const { serveOverHttp } = await import("./serve-NYYUO3MR.js");
|
|
752
756
|
const appName = messenger.app.command;
|
|
753
757
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
754
758
|
const listening = await serveOverHttp(build, {
|