@wirecat/tg-cli 0.108.0 → 0.109.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-YFWRJWL5.js → adapter-6JLFYFL5.js} +45 -44
- package/dist/bundle/{all-profiles-GQIZSF4W.js → all-profiles-X7Y3T5S4.js} +8 -8
- package/dist/bundle/{anthropic-BKWEDKPU.js → anthropic-LGVXAADT.js} +5 -5
- package/dist/bundle/{app-server-RJV7ICLH.js → app-server-UI3AFSJX.js} +40 -39
- package/dist/bundle/{bot-api-2PAH2JZ3.js → bot-api-TQYRNYJQ.js} +46 -45
- package/dist/bundle/{bot-history-DPPZ43F4.js → bot-history-DDNTNMNB.js} +15 -15
- package/dist/bundle/{bun-Q7COX3Z5.js → bun-WXGS6HML.js} +2 -2
- package/dist/bundle/{bun-sqlite-YI4AYZXO.js → bun-sqlite-M6JEXKRT.js} +4 -4
- package/dist/bundle/{chunk-PQHYM2XC.js → chunk-25VC6U3A.js} +1 -1
- package/dist/bundle/{chunk-DNOJKQXQ.js → chunk-2ILQYCBY.js} +377 -286
- package/dist/bundle/{chunk-EWL3ZFOI.js → chunk-3PEZWXKO.js} +6 -6
- package/dist/bundle/{chunk-LY2LFJMU.js → chunk-4R4AH6FM.js} +117 -94
- package/dist/bundle/{chunk-CVWF3BFK.js → chunk-5SUFMBU5.js} +44 -44
- package/dist/bundle/chunk-76C5SSMR.js +379 -0
- package/dist/bundle/{chunk-5HPXENE5.js → chunk-7AJ2IESO.js} +1 -1
- package/dist/bundle/{chunk-PCMW3PW6.js → chunk-7T7ILNCU.js} +2 -2
- package/dist/bundle/{chunk-ZYBDAZFO.js → chunk-AD3QPYI3.js} +2 -2
- package/dist/bundle/{chunk-ON67U6WV.js → chunk-AGVKIJB7.js} +6 -6
- package/dist/bundle/{chunk-YJ6GFFEE.js → chunk-BESIMQ5U.js} +1 -1
- package/dist/bundle/{chunk-76OSISA3.js → chunk-BHPCZCX7.js} +2 -2
- package/dist/bundle/{chunk-3GXKJKIC.js → chunk-BZIZLEJN.js} +4 -4
- package/dist/bundle/{chunk-BOSMBW4I.js → chunk-C3RX3UOE.js} +11 -11
- package/dist/bundle/{chunk-KQFR7ZAA.js → chunk-CH2ESVV5.js} +22 -22
- package/dist/bundle/{chunk-WUF64WOG.js → chunk-CHI6D4D6.js} +4 -4
- package/dist/bundle/{chunk-DUWTG2GE.js → chunk-CVLDXFRP.js} +8 -8
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-DLAFGSTN.js} +1 -1
- package/dist/bundle/{chunk-XZXOGHU5.js → chunk-DO33KAMM.js} +71 -60
- package/dist/bundle/{chunk-77OOX2OE.js → chunk-DZVYGBZB.js} +79 -56
- package/dist/bundle/{chunk-WAGDZB62.js → chunk-GUFM5RLW.js} +2 -2
- package/dist/bundle/{chunk-REI5TPS3.js → chunk-IGIPIO4J.js} +11 -11
- package/dist/bundle/{chunk-LYLGLFWY.js → chunk-INYO2QFW.js} +3 -3
- package/dist/bundle/{chunk-3HYDKCXB.js → chunk-IULYECPC.js} +12 -12
- package/dist/bundle/{chunk-6MZ2ZBX4.js → chunk-IV2QWSPG.js} +2 -2
- package/dist/bundle/{chunk-6QTUYMGX.js → chunk-KHKC236O.js} +2 -2
- package/dist/bundle/{chunk-QVIT6SQ5.js → chunk-M62LF3QE.js} +613 -381
- package/dist/bundle/{chunk-KZPZFPGB.js → chunk-MF6NKU3Z.js} +81 -30
- package/dist/bundle/{chunk-WEDWIXIC.js → chunk-N56WXUCW.js} +2 -2
- package/dist/bundle/{chunk-T4SDOYPY.js → chunk-N5FSRC6H.js} +117 -70
- package/dist/bundle/{chunk-FG2QTYEF.js → chunk-NAVNCM5K.js} +1 -1
- package/dist/bundle/{chunk-F67VPIJL.js → chunk-OHLMHBDI.js} +28 -28
- package/dist/bundle/{chunk-SONKULUF.js → chunk-P55L4S6N.js} +3 -3
- package/dist/bundle/{chunk-OB5PPPXH.js → chunk-P57R2P75.js} +7 -7
- package/dist/bundle/{chunk-5P27JGGA.js → chunk-P5ILJ7MN.js} +5 -5
- package/dist/bundle/{chunk-AS2BVZU3.js → chunk-QQF7RDLR.js} +49 -24
- package/dist/bundle/{chunk-WKSLGPZQ.js → chunk-RD2NLJSU.js} +16 -4
- package/dist/bundle/{chunk-NCXCBVHO.js → chunk-S7B6MTXX.js} +6 -6
- package/dist/bundle/{chunk-CZANI3DM.js → chunk-SH63Q4QR.js} +22 -22
- package/dist/bundle/{chunk-BT6PWDM6.js → chunk-TMXNMO66.js} +3 -3
- package/dist/bundle/{chunk-4RDMNNVO.js → chunk-UIPBAT2T.js} +26 -14
- package/dist/bundle/{chunk-EBB7RFCW.js → chunk-UUQ3BH2Z.js} +2 -2
- package/dist/bundle/{chunk-VMU4SGCE.js → chunk-VFVMB3NV.js} +8 -6
- package/dist/bundle/{chunk-B7TFWNKJ.js → chunk-VYR2IIWW.js} +1 -1
- package/dist/bundle/{chunk-AOUB2QFP.js → chunk-WHYS6OSG.js} +2 -2
- package/dist/bundle/{chunk-ZHHVNTBJ.js → chunk-WNTXIQMB.js} +2 -2
- package/dist/bundle/{chunk-26PWIQPP.js → chunk-XJVGCCQE.js} +666 -782
- package/dist/bundle/{chunk-67SRVSPU.js → chunk-XMMWKHNY.js} +26 -9
- package/dist/bundle/{chunk-BL72ZIBV.js → chunk-YXCQ4DLZ.js} +1 -1
- package/dist/bundle/{chunk-3562DVQ7.js → chunk-YYOIULA2.js} +8 -8
- package/dist/bundle/{chunk-TVA3NXXO.js → chunk-ZFMS5G4H.js} +2 -2
- package/dist/bundle/{chunk-D6DBVPES.js → chunk-ZHP44EML.js} +3 -3
- package/dist/bundle/{chunk-VK2YLSK7.js → chunk-ZMZKZL3Y.js} +1 -1
- package/dist/bundle/{chunk-R5YOKYTE.js → chunk-ZUOS7QUB.js} +11 -11
- package/dist/bundle/command-contract-E2MWR3T3.js +32 -0
- package/dist/bundle/{decode-ZFAFVFWX.js → decode-RKPOGPBE.js} +19 -17
- package/dist/bundle/{echarts-SVXNTKGV.js → echarts-H5QQRBHI.js} +2 -2
- package/dist/bundle/{embed-V755YE7O.js → embed-7TVAPNP7.js} +5 -5
- package/dist/bundle/{embedder-MQAPNQBH.js → embedder-YOOHWWN6.js} +8 -8
- package/dist/bundle/{entry-ULQ3VOMQ.js → entry-SAKW5HEZ.js} +5 -5
- package/dist/bundle/{first-run-64BTWXDR.js → first-run-C744N572.js} +9 -9
- package/dist/bundle/first-screen-7GKUEIWS.js +30 -0
- package/dist/bundle/{identity-PW45VBUU.js → identity-NRWTZIQ4.js} +3 -3
- package/dist/bundle/{instructions-G3ZUIRRH.js → instructions-6LWRAW47.js} +1 -1
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-WSGVVZWI.js} +2 -2
- package/dist/bundle/{node-IDJXLZSX.js → node-XN4PIVWW.js} +2 -2
- package/dist/bundle/{node-sqlite-W22J37MG.js → node-sqlite-PCBGROGQ.js} +4 -4
- package/dist/bundle/{oauth-Q52LBXDE.js → oauth-PX6NGHUV.js} +6 -6
- package/dist/bundle/{open-YLD7VHEC.js → open-BKJGJ6GX.js} +3 -3
- package/dist/bundle/openai-MJP7CZXP.js +250 -0
- package/dist/bundle/{process-OBESF2XG.js → process-4PRR3MLT.js} +1 -1
- package/dist/bundle/{program-EBMWHOKQ.js → program-7YZUO42B.js} +48 -47
- package/dist/bundle/{prompt-FHHQF3MG.js → prompt-CILSZC2R.js} +4 -4
- package/dist/bundle/{proxy-transport-YSBYG26I.js → proxy-transport-FWGKTYBL.js} +4 -4
- package/dist/bundle/{recognize-QNHKHGKM.js → recognize-AVFDJAIL.js} +5 -3
- package/dist/bundle/{remote-RVZWRCCT.js → remote-2VYXGOM4.js} +6 -6
- package/dist/bundle/{rerank-KG2USEME.js → rerank-6FU2JPCD.js} +6 -6
- package/dist/bundle/{serve-I4MJKEQ4.js → serve-3YQOHBR6.js} +8 -8
- package/dist/bundle/server-S2K4YDDG.js +56 -0
- package/dist/bundle/{server-GV7SV3L6.js → server-TPK3LNEX.js} +32 -31
- package/dist/bundle/{state-AJKHWFBU.js → state-LLUNBLZE.js} +5 -5
- package/dist/bundle/{store-L3HFSSGJ.js → store-27FQ743G.js} +10 -10
- package/dist/bundle/store-maintenance-command-AFJMKEBK.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-5GJV6EHG.js +0 -32
- package/dist/bundle/first-screen-YZCH4TEV.js +0 -30
- package/dist/bundle/server-AXMWFPNT.js +0 -55
- package/dist/bundle/store-maintenance-command-Y22ARSDR.js +0 -44
- /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-62EDJKGP.js} +0 -0
|
@@ -2,23 +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-UUQ3BH2Z.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XMMWKHNY.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
-
import { createHash, randomUUID } from "node:crypto";
|
|
15
|
-
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
16
|
-
import { rename, rm } from "node:fs/promises";
|
|
17
|
-
import { dirname, join } from "node:path";
|
|
18
|
-
import { Readable, Transform } from "node:stream";
|
|
19
|
-
import { pipeline } from "node:stream/promises";
|
|
20
|
-
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
22
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
23
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
24
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -125,6 +117,7 @@ var MODELS = [
|
|
|
125
117
|
}), "config")
|
|
126
118
|
}
|
|
127
119
|
];
|
|
120
|
+
var OPENAI_TRANSCRIBE_MODEL = "gpt-transcribe";
|
|
128
121
|
var VAD = {
|
|
129
122
|
name: "silero_vad.onnx",
|
|
130
123
|
url: "https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/silero_vad.onnx",
|
|
@@ -142,7 +135,13 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
142
135
|
return model;
|
|
143
136
|
}, "speechModel");
|
|
144
137
|
|
|
145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
139
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
140
|
+
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
141
|
+
import { rename, rm } from "node:fs/promises";
|
|
142
|
+
import { dirname, join } from "node:path";
|
|
143
|
+
import { Readable, Transform } from "node:stream";
|
|
144
|
+
import { pipeline } from "node:stream/promises";
|
|
146
145
|
var sharedModelsDirectory = /* @__PURE__ */ __name((kind, env = process.env) => join(wirecatDirectory(env), "models", kind), "sharedModelsDirectory");
|
|
147
146
|
var modelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("audio", env), "modelsDirectory");
|
|
148
147
|
var STALL_MS = 6e4;
|
|
@@ -247,6 +246,7 @@ var fetchInto = /* @__PURE__ */ __name(async (file, path, get, stalled) => {
|
|
|
247
246
|
var megabytes = /* @__PURE__ */ __name((bytes) => bytes < 1e6 ? "under 1 MB" : `${Math.round(bytes / 1e6)} MB`, "megabytes");
|
|
248
247
|
|
|
249
248
|
export {
|
|
249
|
+
OPENAI_TRANSCRIBE_MODEL,
|
|
250
250
|
VAD,
|
|
251
251
|
DEFAULT_ORDER,
|
|
252
252
|
orderedModels,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CVLDXFRP.js";
|
|
32
32
|
import {
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -540,7 +540,7 @@ function toError(value) {
|
|
|
540
540
|
}
|
|
541
541
|
__name(toError, "toError");
|
|
542
542
|
|
|
543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
544
544
|
var CALLER_META_KEY = "wirecat.dev/caller";
|
|
545
545
|
var PROXY_CLIENT_NAME = "all-profiles";
|
|
546
546
|
var NAME = /^[\w .@()/+-]{1,64}$/;
|
|
@@ -2,12 +2,12 @@ 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-XMMWKHNY.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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|