@wirecat/tg-cli 0.109.0 → 0.110.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-6JLFYFL5.js → adapter-JWUCHTXU.js} +45 -45
- package/dist/bundle/{all-profiles-X7Y3T5S4.js → all-profiles-OMRCKP54.js} +8 -8
- package/dist/bundle/{anthropic-LGVXAADT.js → anthropic-WXFHH74P.js} +5 -5
- package/dist/bundle/{app-server-UI3AFSJX.js → app-server-ILIPNO6T.js} +40 -40
- package/dist/bundle/{bot-api-TQYRNYJQ.js → bot-api-KV765AZK.js} +46 -46
- package/dist/bundle/{bot-history-DDNTNMNB.js → bot-history-3P6EIM5L.js} +15 -15
- package/dist/bundle/{bun-WXGS6HML.js → bun-MJOYPPEN.js} +2 -2
- package/dist/bundle/{bun-sqlite-M6JEXKRT.js → bun-sqlite-GFRVRRDZ.js} +4 -4
- package/dist/bundle/{chunk-C3RX3UOE.js → chunk-2YWQEG2P.js} +11 -11
- package/dist/bundle/{chunk-UIPBAT2T.js → chunk-32HEOKI2.js} +15 -14
- package/dist/bundle/{chunk-BZIZLEJN.js → chunk-3KOF5T4N.js} +4 -4
- package/dist/bundle/{chunk-WHYS6OSG.js → chunk-3L2JTAVD.js} +2 -2
- package/dist/bundle/{chunk-XJVGCCQE.js → chunk-3XTMVGTS.js} +1904 -624
- package/dist/bundle/{chunk-P5ILJ7MN.js → chunk-4BMXELWN.js} +5 -5
- package/dist/bundle/{chunk-ZMZKZL3Y.js → chunk-4GOF43MW.js} +1 -1
- package/dist/bundle/{chunk-7AJ2IESO.js → chunk-4I6HTOCM.js} +1 -1
- package/dist/bundle/{chunk-4R4AH6FM.js → chunk-4YOPRYEY.js} +94 -94
- package/dist/bundle/{chunk-AGVKIJB7.js → chunk-54CWOD7V.js} +6 -6
- package/dist/bundle/{chunk-76C5SSMR.js → chunk-5ASW5BNM.js} +12 -12
- package/dist/bundle/{chunk-P57R2P75.js → chunk-5CMOXHQS.js} +7 -7
- package/dist/bundle/{chunk-N56WXUCW.js → chunk-6KESAYMZ.js} +2 -2
- package/dist/bundle/{chunk-YYOIULA2.js → chunk-6WTLP2SI.js} +8 -8
- package/dist/bundle/{chunk-TMXNMO66.js → chunk-7ABA4EXC.js} +3 -3
- package/dist/bundle/{chunk-RD2NLJSU.js → chunk-7LZBMZQM.js} +4 -4
- package/dist/bundle/{chunk-VFVMB3NV.js → chunk-ABVHA4K6.js} +5 -5
- package/dist/bundle/{chunk-BESIMQ5U.js → chunk-AXNBGLO5.js} +1 -1
- package/dist/bundle/{chunk-INYO2QFW.js → chunk-AZYVTDAE.js} +3 -3
- package/dist/bundle/{chunk-N5FSRC6H.js → chunk-BWRCPMMC.js} +41 -31
- package/dist/bundle/{chunk-2ILQYCBY.js → chunk-BYOEVYY2.js} +553 -291
- package/dist/bundle/{chunk-NAVNCM5K.js → chunk-EB44Z44U.js} +1 -1
- package/dist/bundle/{chunk-XMMWKHNY.js → chunk-EO563SUX.js} +7 -7
- package/dist/bundle/{chunk-OHLMHBDI.js → chunk-F24EAGOU.js} +32 -31
- package/dist/bundle/{chunk-WNTXIQMB.js → chunk-F7RWNBC2.js} +2 -2
- package/dist/bundle/{chunk-IGIPIO4J.js → chunk-FYAHTTOB.js} +11 -11
- package/dist/bundle/{chunk-SH63Q4QR.js → chunk-GPIORQAD.js} +22 -22
- package/dist/bundle/{chunk-BHPCZCX7.js → chunk-HCAYTAJN.js} +2 -2
- package/dist/bundle/{chunk-P55L4S6N.js → chunk-JDOSIWPN.js} +3 -3
- package/dist/bundle/{chunk-MF6NKU3Z.js → chunk-KLOFBUXA.js} +22 -22
- package/dist/bundle/{chunk-IV2QWSPG.js → chunk-L3YDXUDK.js} +12 -3
- package/dist/bundle/{chunk-QQF7RDLR.js → chunk-M3XIME74.js} +4 -4
- package/dist/bundle/{chunk-CHI6D4D6.js → chunk-MXIBRT6W.js} +4 -4
- package/dist/bundle/{chunk-ZHP44EML.js → chunk-MZRD776E.js} +3 -3
- package/dist/bundle/{chunk-KHKC236O.js → chunk-NDT22GBK.js} +2 -2
- package/dist/bundle/{chunk-IULYECPC.js → chunk-NFBOZT7H.js} +4 -4
- package/dist/bundle/{chunk-GUFM5RLW.js → chunk-ONHHBPV3.js} +2 -2
- package/dist/bundle/{chunk-CVLDXFRP.js → chunk-Q35J5LCO.js} +8 -8
- package/dist/bundle/{chunk-DZVYGBZB.js → chunk-QRH2AWBZ.js} +55 -54
- package/dist/bundle/{chunk-25VC6U3A.js → chunk-RARYRHQA.js} +1 -1
- package/dist/bundle/{chunk-AD3QPYI3.js → chunk-RSZEEWOW.js} +2 -2
- package/dist/bundle/{chunk-M62LF3QE.js → chunk-RXWG7OWT.js} +348 -300
- package/dist/bundle/{chunk-ZUOS7QUB.js → chunk-SD5J5T7M.js} +11 -11
- package/dist/bundle/{chunk-S7B6MTXX.js → chunk-SLAPUEMZ.js} +6 -6
- package/dist/bundle/{chunk-CH2ESVV5.js → chunk-TDQVVXPF.js} +42 -24
- package/dist/bundle/{chunk-YXCQ4DLZ.js → chunk-TJA3BWY3.js} +1 -1
- package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
- package/dist/bundle/{chunk-UUQ3BH2Z.js → chunk-VM7I5VKX.js} +2 -2
- package/dist/bundle/{chunk-5SUFMBU5.js → chunk-VOBMR7E5.js} +45 -45
- package/dist/bundle/{chunk-VYR2IIWW.js → chunk-W3B6EEZU.js} +1 -1
- package/dist/bundle/{chunk-7T7ILNCU.js → chunk-XLNYDJKG.js} +2 -2
- package/dist/bundle/{chunk-ZFMS5G4H.js → chunk-YPEAEEHF.js} +2 -2
- package/dist/bundle/{chunk-DO33KAMM.js → chunk-YPLL3Q3M.js} +57 -57
- package/dist/bundle/{chunk-3PEZWXKO.js → chunk-YWSNUUW5.js} +6 -6
- package/dist/bundle/command-contract-TNSW7W6G.js +32 -0
- package/dist/bundle/{decode-RKPOGPBE.js → decode-3KBXZCFM.js} +4 -4
- package/dist/bundle/{echarts-H5QQRBHI.js → echarts-24TVPFGC.js} +2 -2
- package/dist/bundle/{embed-7TVAPNP7.js → embed-3BDPZ4Q7.js} +5 -5
- package/dist/bundle/{embedder-YOOHWWN6.js → embedder-EMVDEZFR.js} +8 -8
- package/dist/bundle/{entry-SAKW5HEZ.js → entry-NQD6Z2BM.js} +5 -5
- package/dist/bundle/{first-run-C744N572.js → first-run-ZBIO6C67.js} +9 -9
- package/dist/bundle/first-screen-4HRCG7OX.js +30 -0
- package/dist/bundle/{identity-NRWTZIQ4.js → identity-EDGOOTOM.js} +3 -3
- package/dist/bundle/{instructions-6LWRAW47.js → instructions-N2WVMNFZ.js} +1 -1
- package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
- package/dist/bundle/{node-XN4PIVWW.js → node-VBZAZHUS.js} +2 -2
- package/dist/bundle/{node-sqlite-PCBGROGQ.js → node-sqlite-C3V64OAL.js} +4 -4
- package/dist/bundle/{oauth-PX6NGHUV.js → oauth-NZXELYDA.js} +6 -6
- package/dist/bundle/{open-BKJGJ6GX.js → open-2XRUGMV7.js} +3 -3
- package/dist/bundle/{openai-MJP7CZXP.js → openai-OLGTN3ZB.js} +13 -13
- package/dist/bundle/{process-4PRR3MLT.js → process-CASPZ2DH.js} +1 -1
- package/dist/bundle/{program-7YZUO42B.js → program-QPQDSGYA.js} +50 -48
- package/dist/bundle/{prompt-CILSZC2R.js → prompt-ESZL7SGX.js} +4 -4
- package/dist/bundle/{proxy-transport-FWGKTYBL.js → proxy-transport-OROEVBCG.js} +4 -4
- package/dist/bundle/{recognize-AVFDJAIL.js → recognize-LQ7QOG4T.js} +3 -3
- package/dist/bundle/{remote-2VYXGOM4.js → remote-34XP4EDN.js} +6 -6
- package/dist/bundle/{rerank-6FU2JPCD.js → rerank-7F6NLBCW.js} +6 -6
- package/dist/bundle/{serve-3YQOHBR6.js → serve-M6TTKXI4.js} +8 -8
- package/dist/bundle/{server-TPK3LNEX.js → server-GLZ5M7PE.js} +32 -32
- package/dist/bundle/server-KOW7OKE2.js +56 -0
- package/dist/bundle/{state-LLUNBLZE.js → state-UKKPLMHS.js} +5 -5
- package/dist/bundle/{store-27FQ743G.js → store-J2MBIDJK.js} +10 -10
- package/dist/bundle/store-maintenance-command-64B57C3U.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-E2MWR3T3.js +0 -32
- package/dist/bundle/first-screen-7GKUEIWS.js +0 -30
- package/dist/bundle/server-S2K4YDDG.js +0 -56
- package/dist/bundle/store-maintenance-command-AFJMKEBK.js +0 -45
- /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
truncated,
|
|
14
14
|
unit,
|
|
15
15
|
warmEmbedders
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-YWSNUUW5.js";
|
|
17
|
+
import "./chunk-NFBOZT7H.js";
|
|
18
|
+
import "./chunk-VM7I5VKX.js";
|
|
19
|
+
import "./chunk-BWRCPMMC.js";
|
|
20
|
+
import "./chunk-EO563SUX.js";
|
|
21
21
|
import "./chunk-Y5E2WNWB.js";
|
|
22
22
|
import "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
export {
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
openSession,
|
|
5
5
|
truncated,
|
|
6
6
|
unit
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-YWSNUUW5.js";
|
|
8
|
+
import "./chunk-NFBOZT7H.js";
|
|
9
|
+
import "./chunk-VM7I5VKX.js";
|
|
10
|
+
import "./chunk-BWRCPMMC.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EO563SUX.js";
|
|
14
14
|
import {
|
|
15
15
|
importFrom
|
|
16
16
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
22
22
|
import { readFileSync } from "node:fs";
|
|
23
23
|
import { join } from "node:path";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
|
|
26
26
|
var SIZE = 224;
|
|
27
27
|
var MEAN = [0.48145466, 0.4578275, 0.40821073];
|
|
28
28
|
var STD = [0.26862954, 0.26130258, 0.27577711];
|
|
@@ -61,7 +61,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
|
|
|
61
61
|
return pixels;
|
|
62
62
|
}, "preprocess");
|
|
63
63
|
|
|
64
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
64
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
65
65
|
var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
|
|
66
66
|
const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
|
|
67
67
|
const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
startCli
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-SD5J5T7M.js";
|
|
6
|
+
import "./chunk-XLNYDJKG.js";
|
|
7
|
+
import "./chunk-SLAPUEMZ.js";
|
|
8
|
+
import "./chunk-BWRCPMMC.js";
|
|
9
|
+
import "./chunk-EO563SUX.js";
|
|
10
10
|
import "./chunk-Y5E2WNWB.js";
|
|
11
11
|
import "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
export {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
asksAtStart,
|
|
6
6
|
setupAtStart,
|
|
7
7
|
systemLanguage
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-2YWQEG2P.js";
|
|
9
|
+
import "./chunk-ABVHA4K6.js";
|
|
10
|
+
import "./chunk-UIPT6IAU.js";
|
|
11
|
+
import "./chunk-JDOSIWPN.js";
|
|
12
|
+
import "./chunk-6WTLP2SI.js";
|
|
13
|
+
import "./chunk-54CWOD7V.js";
|
|
14
|
+
import "./chunk-VM7I5VKX.js";
|
|
15
|
+
import "./chunk-BWRCPMMC.js";
|
|
16
|
+
import "./chunk-EO563SUX.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
18
18
|
import "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
export {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
WIRECAT_TOOLS,
|
|
5
|
+
firstScreen,
|
|
6
|
+
installHelp
|
|
7
|
+
} from "./chunk-5CMOXHQS.js";
|
|
8
|
+
import "./chunk-2ABQZVK4.js";
|
|
9
|
+
import "./chunk-4BMXELWN.js";
|
|
10
|
+
import "./chunk-4YOPRYEY.js";
|
|
11
|
+
import "./chunk-QRH2AWBZ.js";
|
|
12
|
+
import "./chunk-7LZBMZQM.js";
|
|
13
|
+
import "./chunk-Q35J5LCO.js";
|
|
14
|
+
import "./chunk-JDOSIWPN.js";
|
|
15
|
+
import "./chunk-XLNYDJKG.js";
|
|
16
|
+
import "./chunk-RARYRHQA.js";
|
|
17
|
+
import "./chunk-NFBOZT7H.js";
|
|
18
|
+
import "./chunk-YPLL3Q3M.js";
|
|
19
|
+
import "./chunk-54CWOD7V.js";
|
|
20
|
+
import "./chunk-NPGVOZVK.js";
|
|
21
|
+
import "./chunk-VM7I5VKX.js";
|
|
22
|
+
import "./chunk-BWRCPMMC.js";
|
|
23
|
+
import "./chunk-EO563SUX.js";
|
|
24
|
+
import "./chunk-Y5E2WNWB.js";
|
|
25
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
26
|
+
export {
|
|
27
|
+
WIRECAT_TOOLS,
|
|
28
|
+
firstScreen,
|
|
29
|
+
installHelp
|
|
30
|
+
};
|
|
@@ -2,9 +2,9 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
TG
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-YPEAEEHF.js";
|
|
6
|
+
import "./chunk-NPGVOZVK.js";
|
|
7
|
+
import "./chunk-EO563SUX.js";
|
|
8
8
|
import "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
export {
|
|
10
10
|
TG
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath,
|
|
6
6
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UIPT6IAU.js";
|
|
8
8
|
import {
|
|
9
9
|
__name,
|
|
10
10
|
__toESM
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
|
|
14
14
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
15
15
|
var realRun = /* @__PURE__ */ __name((file, args) => {
|
|
16
16
|
const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4GOF43MW.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
|
|
27
27
|
import { DatabaseSync } from "node:sqlite";
|
|
28
28
|
var nodeSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-HCAYTAJN.js";
|
|
7
|
+
import "./chunk-BWRCPMMC.js";
|
|
8
|
+
import "./chunk-EO563SUX.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
|
|
15
15
|
import { DatabaseSync } from "node:sqlite";
|
|
16
16
|
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
17
17
|
var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
@@ -3,13 +3,13 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
ownerLogin,
|
|
5
5
|
revokeAll
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6KESAYMZ.js";
|
|
7
7
|
import "./chunk-5D4AEUVA.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-MXIBRT6W.js";
|
|
9
|
+
import "./chunk-7ABA4EXC.js";
|
|
10
|
+
import "./chunk-RARYRHQA.js";
|
|
11
|
+
import "./chunk-BWRCPMMC.js";
|
|
12
|
+
import "./chunk-EO563SUX.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
14
|
import "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
export {
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-SLAPUEMZ.js";
|
|
10
|
+
import "./chunk-BWRCPMMC.js";
|
|
11
|
+
import "./chunk-EO563SUX.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
13
13
|
import "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
export {
|
|
@@ -3,36 +3,36 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-M3XIME74.js";
|
|
7
|
+
import "./chunk-5ASW5BNM.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENAI_URL
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-AZYVTDAE.js";
|
|
11
|
+
import "./chunk-YWSNUUW5.js";
|
|
12
12
|
import {
|
|
13
13
|
OPENAI_TRANSCRIBE_MODEL,
|
|
14
14
|
VAD,
|
|
15
15
|
filesPresent,
|
|
16
16
|
modelsDirectory,
|
|
17
17
|
vadPath
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-NFBOZT7H.js";
|
|
19
|
+
import "./chunk-VM7I5VKX.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_RETRY,
|
|
22
22
|
backoffMs
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BWRCPMMC.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EO563SUX.js";
|
|
27
27
|
import "./chunk-Y5E2WNWB.js";
|
|
28
28
|
import {
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
33
33
|
import { setTimeout as wait } from "node:timers/promises";
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
35
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.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
|
|
36
36
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
37
37
|
if (!header)
|
|
38
38
|
return void 0;
|
|
@@ -56,7 +56,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
|
56
56
|
}, "parseRateLimitReset");
|
|
57
57
|
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
58
58
|
|
|
59
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
60
60
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
61
61
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
62
62
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -77,7 +77,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
77
77
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
78
78
|
}, "encodeWav");
|
|
79
79
|
|
|
80
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
80
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
81
81
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
82
82
|
var JOINED_SECONDS = 0.2;
|
|
83
83
|
var PAD_SECONDS = 0.2;
|
|
@@ -199,7 +199,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
199
199
|
return pieces;
|
|
200
200
|
}, "piecesOf");
|
|
201
201
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
202
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
202
|
+
const { openSpeechCutter } = await import("./recognize-LQ7QOG4T.js");
|
|
203
203
|
return openSpeechCutter(vadModel);
|
|
204
204
|
}, "openCutter");
|
|
205
205
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-ZVVMGPBJ.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/embeddings/process.js
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { createInterface } from "node:readline";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
proxiedFetch,
|
|
14
14
|
proxySecrets,
|
|
15
15
|
resolveSettings
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FYAHTTOB.js";
|
|
17
17
|
import {
|
|
18
18
|
AGENTS,
|
|
19
19
|
MEMO_SCENARIOS,
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
metadataCommand,
|
|
42
42
|
modelsCommand,
|
|
43
43
|
pollsCommand,
|
|
44
|
+
projectsCommand,
|
|
44
45
|
reactionsCommand,
|
|
45
46
|
recipientsCommand,
|
|
46
47
|
repliesCommand,
|
|
@@ -65,28 +66,28 @@ import {
|
|
|
65
66
|
topicsCommand,
|
|
66
67
|
upgradeCommand,
|
|
67
68
|
watchCommand
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-BYOEVYY2.js";
|
|
70
|
+
import "./chunk-AXNBGLO5.js";
|
|
70
71
|
import {
|
|
71
72
|
parseProxy,
|
|
72
73
|
proxyLabel
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
74
|
+
} from "./chunk-EB44Z44U.js";
|
|
75
|
+
import "./chunk-W3B6EEZU.js";
|
|
76
|
+
import "./chunk-KLOFBUXA.js";
|
|
76
77
|
import {
|
|
77
78
|
installSkill
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-32HEOKI2.js";
|
|
80
|
+
import "./chunk-VOBMR7E5.js";
|
|
81
|
+
import "./chunk-GPIORQAD.js";
|
|
82
|
+
import "./chunk-3XTMVGTS.js";
|
|
83
|
+
import "./chunk-5ASW5BNM.js";
|
|
84
|
+
import "./chunk-3KOF5T4N.js";
|
|
84
85
|
import {
|
|
85
86
|
inSection
|
|
86
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-5CMOXHQS.js";
|
|
87
88
|
import "./chunk-2ABQZVK4.js";
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-4BMXELWN.js";
|
|
90
|
+
import "./chunk-4YOPRYEY.js";
|
|
90
91
|
import {
|
|
91
92
|
Argument,
|
|
92
93
|
Command,
|
|
@@ -108,48 +109,48 @@ import {
|
|
|
108
109
|
runtime,
|
|
109
110
|
secretInputOf,
|
|
110
111
|
withDeadline
|
|
111
|
-
} from "./chunk-
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
112
|
+
} from "./chunk-QRH2AWBZ.js";
|
|
113
|
+
import "./chunk-7LZBMZQM.js";
|
|
114
|
+
import "./chunk-Q35J5LCO.js";
|
|
115
|
+
import "./chunk-2YWQEG2P.js";
|
|
115
116
|
import {
|
|
116
117
|
installerOf,
|
|
117
118
|
latestVersion,
|
|
118
119
|
runUpdate,
|
|
119
120
|
updateNotice
|
|
120
|
-
} from "./chunk-
|
|
121
|
-
import "./chunk-
|
|
122
|
-
import "./chunk-
|
|
123
|
-
import "./chunk-
|
|
124
|
-
import "./chunk-
|
|
121
|
+
} from "./chunk-ABVHA4K6.js";
|
|
122
|
+
import "./chunk-UIPT6IAU.js";
|
|
123
|
+
import "./chunk-JDOSIWPN.js";
|
|
124
|
+
import "./chunk-SD5J5T7M.js";
|
|
125
|
+
import "./chunk-XLNYDJKG.js";
|
|
125
126
|
import {
|
|
126
127
|
TG,
|
|
127
128
|
VERSION
|
|
128
|
-
} from "./chunk-
|
|
129
|
-
import "./chunk-
|
|
129
|
+
} from "./chunk-YPEAEEHF.js";
|
|
130
|
+
import "./chunk-MXIBRT6W.js";
|
|
130
131
|
import {
|
|
131
132
|
servingProfiles
|
|
132
|
-
} from "./chunk-
|
|
133
|
-
import "./chunk-
|
|
134
|
-
import "./chunk-
|
|
135
|
-
import "./chunk-
|
|
136
|
-
import "./chunk-
|
|
137
|
-
import "./chunk-
|
|
138
|
-
import "./chunk-
|
|
139
|
-
import "./chunk-
|
|
133
|
+
} from "./chunk-7ABA4EXC.js";
|
|
134
|
+
import "./chunk-RARYRHQA.js";
|
|
135
|
+
import "./chunk-RSZEEWOW.js";
|
|
136
|
+
import "./chunk-NDT22GBK.js";
|
|
137
|
+
import "./chunk-AZYVTDAE.js";
|
|
138
|
+
import "./chunk-YWSNUUW5.js";
|
|
139
|
+
import "./chunk-NFBOZT7H.js";
|
|
140
|
+
import "./chunk-RXWG7OWT.js";
|
|
140
141
|
import {
|
|
141
142
|
timezoneOf
|
|
142
|
-
} from "./chunk-
|
|
143
|
-
import "./chunk-
|
|
144
|
-
import "./chunk-
|
|
145
|
-
import "./chunk-
|
|
146
|
-
import "./chunk-
|
|
147
|
-
import "./chunk-
|
|
148
|
-
import "./chunk-
|
|
143
|
+
} from "./chunk-YPLL3Q3M.js";
|
|
144
|
+
import "./chunk-6WTLP2SI.js";
|
|
145
|
+
import "./chunk-54CWOD7V.js";
|
|
146
|
+
import "./chunk-NPGVOZVK.js";
|
|
147
|
+
import "./chunk-VM7I5VKX.js";
|
|
148
|
+
import "./chunk-SLAPUEMZ.js";
|
|
149
|
+
import "./chunk-4GOF43MW.js";
|
|
149
150
|
import {
|
|
150
151
|
readSecret
|
|
151
|
-
} from "./chunk-
|
|
152
|
-
import "./chunk-
|
|
152
|
+
} from "./chunk-MZRD776E.js";
|
|
153
|
+
import "./chunk-3L2JTAVD.js";
|
|
153
154
|
import {
|
|
154
155
|
configFilePath,
|
|
155
156
|
exitCodeFor,
|
|
@@ -158,11 +159,11 @@ import {
|
|
|
158
159
|
renderPretty,
|
|
159
160
|
resolvePaths,
|
|
160
161
|
singleLine
|
|
161
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-BWRCPMMC.js";
|
|
162
163
|
import {
|
|
163
164
|
CliError,
|
|
164
165
|
isCliError
|
|
165
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-EO563SUX.js";
|
|
166
167
|
import "./chunk-Y5E2WNWB.js";
|
|
167
168
|
import {
|
|
168
169
|
__name
|
|
@@ -237,7 +238,7 @@ var withProxySecrets = /* @__PURE__ */ __name((config) => {
|
|
|
237
238
|
throw new CliError("validation_error", "a proxy password or MTProxy secret never goes on the command line \u2014 run `tg config set proxy -` and paste the URL");
|
|
238
239
|
if (proxy.kind === "mtproxy" && proxy.secret === void 0)
|
|
239
240
|
throw new CliError("validation_error", "an MTProxy link needs its secret \u2014 run `tg config set proxy -` and paste the whole link");
|
|
240
|
-
const { checkProxy } = await import("./proxy-transport-
|
|
241
|
+
const { checkProxy } = await import("./proxy-transport-OROEVBCG.js");
|
|
241
242
|
asValidation(() => checkProxy(proxy));
|
|
242
243
|
const label = proxyLabel(proxy);
|
|
243
244
|
action.processedArgs[1] = label;
|
|
@@ -720,7 +721,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
|
|
|
720
721
|
import { join } from "node:path";
|
|
721
722
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
722
723
|
|
|
723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
724
725
|
import { realpathSync } from "node:fs";
|
|
725
726
|
import { fileURLToPath } from "node:url";
|
|
726
727
|
var QUIET_WORDS = [
|
|
@@ -1014,6 +1015,7 @@ var definition = {
|
|
|
1014
1015
|
metadataCommand(TELEGRAM),
|
|
1015
1016
|
statsCommand(TELEGRAM),
|
|
1016
1017
|
tasksCommand(TELEGRAM),
|
|
1018
|
+
projectsCommand(TELEGRAM),
|
|
1017
1019
|
searchCommand(TELEGRAM, { topics: true }),
|
|
1018
1020
|
searchesCommand(TELEGRAM),
|
|
1019
1021
|
floodCommand(TELEGRAM),
|
|
@@ -1037,7 +1039,7 @@ var definition = {
|
|
|
1037
1039
|
};
|
|
1038
1040
|
var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
|
|
1039
1041
|
if (!botApi && needsBotApi(argv, environment.env ?? process.env))
|
|
1040
|
-
useBotApi((await import("./bot-api-
|
|
1042
|
+
useBotApi((await import("./bot-api-KV765AZK.js")).telegramBotApiCommand);
|
|
1041
1043
|
const notice = updateNotice2(argv, {
|
|
1042
1044
|
...environment.tty === void 0 ? {} : { tty: environment.tty },
|
|
1043
1045
|
...environment.update ? { environment: environment.update } : {},
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readSecret
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MZRD776E.js";
|
|
6
|
+
import "./chunk-3L2JTAVD.js";
|
|
7
|
+
import "./chunk-BWRCPMMC.js";
|
|
8
|
+
import "./chunk-EO563SUX.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
10
10
|
import "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
export {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
checkProxy,
|
|
5
5
|
proxiedTransport,
|
|
6
6
|
proxyFailure
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ONHHBPV3.js";
|
|
8
|
+
import "./chunk-EB44Z44U.js";
|
|
9
|
+
import "./chunk-BWRCPMMC.js";
|
|
10
|
+
import "./chunk-EO563SUX.js";
|
|
11
11
|
import "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
export {
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
openRecognizer,
|
|
9
9
|
openSpeechCutter,
|
|
10
10
|
toModelRate
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-M3XIME74.js";
|
|
12
|
+
import "./chunk-BWRCPMMC.js";
|
|
13
|
+
import "./chunk-EO563SUX.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
openRemote,
|
|
9
9
|
remoteKey,
|
|
10
10
|
remoteModel
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-AZYVTDAE.js";
|
|
12
|
+
import "./chunk-YWSNUUW5.js";
|
|
13
|
+
import "./chunk-NFBOZT7H.js";
|
|
14
|
+
import "./chunk-VM7I5VKX.js";
|
|
15
|
+
import "./chunk-BWRCPMMC.js";
|
|
16
|
+
import "./chunk-EO563SUX.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
18
18
|
import "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
export {
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
defaultThreads,
|
|
5
5
|
loadModel,
|
|
6
6
|
truncated
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-YWSNUUW5.js";
|
|
8
|
+
import "./chunk-NFBOZT7H.js";
|
|
9
|
+
import "./chunk-VM7I5VKX.js";
|
|
10
|
+
import "./chunk-BWRCPMMC.js";
|
|
11
|
+
import "./chunk-EO563SUX.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
|
|
18
18
|
var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
|
|
19
19
|
const { ort, tokenizer, session } = await loadModel(model, directory, threads);
|
|
20
20
|
const typeIds = session.inputNames.includes("token_type_ids");
|