@wirecat/tg-cli 0.113.0 → 0.114.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 +6 -2
- package/dist/bundle/{adapter-EQKEFGPB.js → adapter-YAEHX3QB.js} +45 -45
- package/dist/bundle/{all-profiles-TTBFF663.js → all-profiles-R5CW42HQ.js} +8 -8
- package/dist/bundle/{anthropic-XPZS7267.js → anthropic-F25RHYV2.js} +5 -5
- package/dist/bundle/{app-server-ZSZ7KRAY.js → app-server-FAG6FNXR.js} +41 -40
- package/dist/bundle/{bot-api-X7BOVNIO.js → bot-api-KOIAXTQR.js} +46 -46
- package/dist/bundle/{bot-history-DWIUIPN5.js → bot-history-PRAOZEWC.js} +16 -15
- package/dist/bundle/{bun-ZGZVAJU2.js → bun-XIMM6EHD.js} +2 -2
- package/dist/bundle/{bun-sqlite-UN2UJ6SI.js → bun-sqlite-DSUCO4TR.js} +4 -4
- package/dist/bundle/{chunk-KK3JVOOV.js → chunk-2PAKHXIV.js} +29 -28
- package/dist/bundle/{chunk-KQ23JWLJ.js → chunk-34USFPBF.js} +18 -18
- package/dist/bundle/{chunk-WSAHUQ6K.js → chunk-3EZ43DAF.js} +3 -3
- package/dist/bundle/{chunk-Q264PYGE.js → chunk-3R43O3GG.js} +49 -16
- package/dist/bundle/{chunk-JDQSX2JQ.js → chunk-4JOKO4IW.js} +6810 -5767
- package/dist/bundle/{chunk-6OKGHHRL.js → chunk-5HKMEXVQ.js} +35 -35
- package/dist/bundle/{chunk-7IWDS2CM.js → chunk-6SPLZI5P.js} +2 -2
- package/dist/bundle/{chunk-J6USEBA6.js → chunk-7FOT4XD2.js} +2178 -923
- package/dist/bundle/{chunk-GX4LRLVD.js → chunk-AL36NHO6.js} +5110 -946
- package/dist/bundle/{chunk-UE75KPAC.js → chunk-ALHKUQDZ.js} +4 -4
- package/dist/bundle/{chunk-IDUYRTPF.js → chunk-C34IDOA5.js} +2 -2
- package/dist/bundle/{chunk-XXNJF3ZM.js → chunk-C7K7AP6G.js} +72 -30
- package/dist/bundle/{chunk-ZID2Y4XU.js → chunk-CDCBFMEI.js} +2 -2
- package/dist/bundle/{chunk-TQ6EA7TB.js → chunk-CS5DQ6KM.js} +15 -14
- package/dist/bundle/{chunk-6WJ5M2Q4.js → chunk-DQQEN3X4.js} +4 -4
- package/dist/bundle/{chunk-4GLMEES6.js → chunk-E2IRSRTB.js} +1 -1
- package/dist/bundle/{chunk-PCRLXJRH.js → chunk-EARO464A.js} +9 -7
- package/dist/bundle/{chunk-K3F46QVN.js → chunk-EQJG44KE.js} +4 -4
- package/dist/bundle/{chunk-VDEXNNMH.js → chunk-HA35XN2Z.js} +6 -4
- package/dist/bundle/{chunk-HNN7EKIM.js → chunk-I6BKSGZQ.js} +333 -164
- package/dist/bundle/{chunk-U3MJQLZQ.js → chunk-IN25CJ3D.js} +13 -13
- package/dist/bundle/{chunk-EGR5IJCG.js → chunk-J5U2HKGZ.js} +32 -26
- package/dist/bundle/{chunk-OQR442B6.js → chunk-KIZT2MI6.js} +1 -1
- package/dist/bundle/{chunk-AGUCXSSM.js → chunk-KZQXOZFC.js} +5 -5
- package/dist/bundle/chunk-L4CMCC3V.js +34 -0
- package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-LPUFOWL3.js} +1 -1
- package/dist/bundle/{chunk-T4TTRFP5.js → chunk-M3IWROIF.js} +7 -7
- package/dist/bundle/{chunk-ENXO43TV.js → chunk-MQTTVQ3V.js} +6 -6
- package/dist/bundle/{chunk-G74QMORP.js → chunk-NJ2I4KFZ.js} +2 -2
- package/dist/bundle/{chunk-PHPNA2HU.js → chunk-NKP3RUM4.js} +11 -11
- package/dist/bundle/{chunk-VDATXIO4.js → chunk-NMVFFWF2.js} +6 -6
- package/dist/bundle/{chunk-KOWQVHXI.js → chunk-NTF34HJP.js} +3 -3
- package/dist/bundle/{chunk-JO45BOYE.js → chunk-NUVBC3LJ.js} +8 -3
- package/dist/bundle/{chunk-UIVLDKWT.js → chunk-O7CBGHI7.js} +1 -1
- package/dist/bundle/{chunk-VVA4555T.js → chunk-OFDMD3YF.js} +8 -8
- package/dist/bundle/{chunk-OC4RRFKH.js → chunk-OWHF6BON.js} +4 -4
- package/dist/bundle/{chunk-HO53POQG.js → chunk-P4YBABUC.js} +5 -40
- package/dist/bundle/{chunk-TUD4MU7S.js → chunk-QCXYJKPF.js} +2 -2
- package/dist/bundle/{chunk-JW7BMJ6O.js → chunk-RBC7JQ4Y.js} +2 -2
- package/dist/bundle/{chunk-5NF7M4MN.js → chunk-RFRI2HFT.js} +1 -1
- package/dist/bundle/{chunk-MTX5EDYJ.js → chunk-TKNCJMYN.js} +1096 -499
- package/dist/bundle/{chunk-PHYDBR5M.js → chunk-TRRRRGMI.js} +2 -2
- package/dist/bundle/{chunk-KVLCIZUK.js → chunk-TTTDZOBW.js} +3 -3
- package/dist/bundle/{chunk-AVUIWZTP.js → chunk-ULFTCR5W.js} +2 -2
- package/dist/bundle/{chunk-IYKRHDX6.js → chunk-VHO66SMY.js} +174 -45
- package/dist/bundle/{chunk-XZ2ZHIAO.js → chunk-VVKEWWSO.js} +1 -1
- package/dist/bundle/{chunk-BI5YJZJB.js → chunk-WIRDTH3J.js} +115 -29
- package/dist/bundle/{chunk-4SQB5VKL.js → chunk-WOQGUIXE.js} +1 -1
- package/dist/bundle/{chunk-OSBAISA5.js → chunk-XDOPONC3.js} +8 -13
- package/dist/bundle/{chunk-3MAYYFKY.js → chunk-Y3AQHPAJ.js} +1 -1
- package/dist/bundle/{chunk-T5RM4Y35.js → chunk-Y4LCSCSH.js} +3 -3
- package/dist/bundle/{chunk-Z6TRIW2O.js → chunk-YPABTT7A.js} +8 -8
- package/dist/bundle/{chunk-6F6K3LWV.js → chunk-YQ64ZNLD.js} +14 -13
- package/dist/bundle/{chunk-JRTZ5I6M.js → chunk-ZFMOPKPT.js} +2 -2
- package/dist/bundle/command-contract-SOTDPG22.js +31 -0
- package/dist/bundle/{decode-AMQVTEMW.js → decode-7U4SXPAN.js} +4 -4
- package/dist/bundle/{echarts-ECYONFQJ.js → echarts-GKEZEAL7.js} +2 -2
- package/dist/bundle/{embed-VZYBZEWI.js → embed-IDZDQMSW.js} +5 -5
- package/dist/bundle/{embedder-GSWBGHRK.js → embedder-RY5R2PGO.js} +8 -8
- package/dist/bundle/{entry-LALZILY4.js → entry-P6YZ3ZV6.js} +8 -5
- package/dist/bundle/{first-run-LEAI623Q.js → first-run-66KTCVQK.js} +9 -9
- package/dist/bundle/first-screen-NY46X6QU.js +29 -0
- package/dist/bundle/{identity-54HA5GN6.js → identity-GXVKGCNU.js} +3 -3
- package/dist/bundle/{instructions-AXLQQS3G.js → instructions-P5E34PQR.js} +1 -1
- package/dist/bundle/{mcp-VVMPUDSL.js → mcp-FUSDPAOL.js} +2 -2
- package/dist/bundle/{node-7JHC5K77.js → node-GKPRXS5Y.js} +2 -2
- package/dist/bundle/{node-sqlite-LYJEK46T.js → node-sqlite-VUXFVPJ6.js} +10 -4
- package/dist/bundle/{oauth-BROPKI3K.js → oauth-7SQIPMOY.js} +6 -6
- package/dist/bundle/{open-C6XQ46JK.js → open-W3BN2SIO.js} +4 -3
- package/dist/bundle/{openai-VWSU7ZDD.js → openai-LQTK3ZMC.js} +13 -13
- package/dist/bundle/{process-QKEFL5HL.js → process-U2P5Z6UF.js} +1 -1
- package/dist/bundle/{program-ACY7O33O.js → program-DIPSLR6O.js} +48 -48
- package/dist/bundle/{prompt-EGULVW2F.js → prompt-GESHKSM5.js} +4 -4
- package/dist/bundle/{proxy-transport-KIMADLQ2.js → proxy-transport-C2EUUT32.js} +4 -4
- package/dist/bundle/{recognize-UMTKLWVR.js → recognize-FEQTIJET.js} +3 -3
- package/dist/bundle/{remote-DABI7PSQ.js → remote-UXOPBPKS.js} +6 -6
- package/dist/bundle/{rerank-ZFATWWBE.js → rerank-L4JM4REK.js} +6 -6
- package/dist/bundle/{serve-B7YYCMGN.js → serve-DDWW44DB.js} +10 -9
- package/dist/bundle/{server-DGKZISZH.js → server-UTWBIZHB.js} +32 -32
- package/dist/bundle/server-ZI7WDAW6.js +56 -0
- package/dist/bundle/{state-AQ2PABA5.js → state-EV7FGEK4.js} +5 -5
- package/dist/bundle/{store-46GJTFLJ.js → store-EXBUF4OG.js} +11 -10
- package/dist/bundle/store-maintenance-command-UBZE2Z6T.js +46 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +6 -4
- package/dist/commands/context.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- package/dist/reasons.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/chunk-452UZ2PU.js +0 -3603
- package/dist/bundle/command-contract-GV67H22L.js +0 -32
- package/dist/bundle/first-screen-MOCVLE23.js +0 -30
- package/dist/bundle/server-UC7UWUIS.js +0 -56
- package/dist/bundle/store-maintenance-command-FCFKHGRM.js +0 -45
- /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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,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-MQTTVQ3V.js";
|
|
17
|
+
import "./chunk-HA35XN2Z.js";
|
|
18
|
+
import "./chunk-TRRRRGMI.js";
|
|
19
|
+
import "./chunk-34USFPBF.js";
|
|
20
|
+
import "./chunk-EARO464A.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-MQTTVQ3V.js";
|
|
8
|
+
import "./chunk-HA35XN2Z.js";
|
|
9
|
+
import "./chunk-TRRRRGMI.js";
|
|
10
|
+
import "./chunk-34USFPBF.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EARO464A.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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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");
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
+
openBrowser,
|
|
4
5
|
startCli
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-CS5DQ6KM.js";
|
|
7
|
+
import "./chunk-C34IDOA5.js";
|
|
8
|
+
import "./chunk-XDOPONC3.js";
|
|
9
|
+
import "./chunk-L4CMCC3V.js";
|
|
10
|
+
import "./chunk-34USFPBF.js";
|
|
11
|
+
import "./chunk-EARO464A.js";
|
|
10
12
|
import "./chunk-Y5E2WNWB.js";
|
|
11
13
|
import "./chunk-ZVVMGPBJ.js";
|
|
12
14
|
export {
|
|
15
|
+
openBrowser,
|
|
13
16
|
startCli
|
|
14
17
|
};
|
|
@@ -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-NKP3RUM4.js";
|
|
9
|
+
import "./chunk-KZQXOZFC.js";
|
|
10
|
+
import "./chunk-LPUFOWL3.js";
|
|
11
|
+
import "./chunk-TTTDZOBW.js";
|
|
12
|
+
import "./chunk-OFDMD3YF.js";
|
|
13
|
+
import "./chunk-NMVFFWF2.js";
|
|
14
|
+
import "./chunk-TRRRRGMI.js";
|
|
15
|
+
import "./chunk-34USFPBF.js";
|
|
16
|
+
import "./chunk-EARO464A.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
18
18
|
import "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
export {
|
|
@@ -0,0 +1,29 @@
|
|
|
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-M3IWROIF.js";
|
|
8
|
+
import "./chunk-2ABQZVK4.js";
|
|
9
|
+
import "./chunk-P4YBABUC.js";
|
|
10
|
+
import "./chunk-AL36NHO6.js";
|
|
11
|
+
import "./chunk-5HKMEXVQ.js";
|
|
12
|
+
import "./chunk-YPABTT7A.js";
|
|
13
|
+
import "./chunk-TTTDZOBW.js";
|
|
14
|
+
import "./chunk-C34IDOA5.js";
|
|
15
|
+
import "./chunk-KIZT2MI6.js";
|
|
16
|
+
import "./chunk-HA35XN2Z.js";
|
|
17
|
+
import "./chunk-I6BKSGZQ.js";
|
|
18
|
+
import "./chunk-NMVFFWF2.js";
|
|
19
|
+
import "./chunk-NUN6OGOV.js";
|
|
20
|
+
import "./chunk-TRRRRGMI.js";
|
|
21
|
+
import "./chunk-34USFPBF.js";
|
|
22
|
+
import "./chunk-EARO464A.js";
|
|
23
|
+
import "./chunk-Y5E2WNWB.js";
|
|
24
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
25
|
+
export {
|
|
26
|
+
WIRECAT_TOOLS,
|
|
27
|
+
firstScreen,
|
|
28
|
+
installHelp
|
|
29
|
+
};
|
|
@@ -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-NUVBC3LJ.js";
|
|
6
|
+
import "./chunk-NUN6OGOV.js";
|
|
7
|
+
import "./chunk-EARO464A.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-LPUFOWL3.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.75.0_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-O7CBGHI7.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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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,19 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import
|
|
8
|
-
|
|
6
|
+
} from "./chunk-6SPLZI5P.js";
|
|
7
|
+
import {
|
|
8
|
+
TIME_LIMIT_FUNCTION,
|
|
9
|
+
beforeTimeLimit
|
|
10
|
+
} from "./chunk-L4CMCC3V.js";
|
|
11
|
+
import "./chunk-34USFPBF.js";
|
|
12
|
+
import "./chunk-EARO464A.js";
|
|
9
13
|
import "./chunk-Y5E2WNWB.js";
|
|
10
14
|
import {
|
|
11
15
|
__name
|
|
12
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
17
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
|
|
15
19
|
import { DatabaseSync } from "node:sqlite";
|
|
16
20
|
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
17
21
|
var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
@@ -28,6 +32,7 @@ var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
28
32
|
var STATEMENT_CACHE_SIZE = 1e3;
|
|
29
33
|
var cacheOverNodeSqlite = /* @__PURE__ */ __name((database, cacheSize = STATEMENT_CACHE_SIZE) => {
|
|
30
34
|
const statements = /* @__PURE__ */ new Map();
|
|
35
|
+
database.function(TIME_LIMIT_FUNCTION, { deterministic: false, directOnly: true }, beforeTimeLimit);
|
|
31
36
|
const prepare = /* @__PURE__ */ __name((sql) => {
|
|
32
37
|
const statement = database.prepare(sql);
|
|
33
38
|
return {
|
|
@@ -37,6 +42,7 @@ var cacheOverNodeSqlite = /* @__PURE__ */ __name((database, cacheSize = STATEMEN
|
|
|
37
42
|
};
|
|
38
43
|
}, "prepare");
|
|
39
44
|
return {
|
|
45
|
+
timeLimit: true,
|
|
40
46
|
exec: /* @__PURE__ */ __name((sql) => database.exec(sql), "exec"),
|
|
41
47
|
prepare: /* @__PURE__ */ __name((sql) => {
|
|
42
48
|
const cached = statements.get(sql);
|
|
@@ -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-EQJG44KE.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-ALHKUQDZ.js";
|
|
9
|
+
import "./chunk-NTF34HJP.js";
|
|
10
|
+
import "./chunk-KIZT2MI6.js";
|
|
11
|
+
import "./chunk-34USFPBF.js";
|
|
12
|
+
import "./chunk-EARO464A.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
14
|
import "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
export {
|
|
@@ -6,9 +6,10 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-XDOPONC3.js";
|
|
10
|
+
import "./chunk-L4CMCC3V.js";
|
|
11
|
+
import "./chunk-34USFPBF.js";
|
|
12
|
+
import "./chunk-EARO464A.js";
|
|
12
13
|
import "./chunk-Y5E2WNWB.js";
|
|
13
14
|
import "./chunk-ZVVMGPBJ.js";
|
|
14
15
|
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-OWHF6BON.js";
|
|
7
|
+
import "./chunk-IN25CJ3D.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENAI_URL
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-Y4LCSCSH.js";
|
|
11
|
+
import "./chunk-MQTTVQ3V.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-HA35XN2Z.js";
|
|
19
|
+
import "./chunk-TRRRRGMI.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_RETRY,
|
|
22
22
|
backoffMs
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-34USFPBF.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EARO464A.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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.75.0_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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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-FEQTIJET.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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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-YQ64ZNLD.js";
|
|
17
17
|
import {
|
|
18
18
|
AGENTS,
|
|
19
19
|
MEMO_SCENARIOS,
|
|
@@ -66,28 +66,27 @@ import {
|
|
|
66
66
|
topicsCommand,
|
|
67
67
|
upgradeCommand,
|
|
68
68
|
watchCommand
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-TKNCJMYN.js";
|
|
70
|
+
import "./chunk-WOQGUIXE.js";
|
|
71
71
|
import {
|
|
72
72
|
parseProxy,
|
|
73
73
|
proxyLabel
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
74
|
+
} from "./chunk-E2IRSRTB.js";
|
|
75
|
+
import "./chunk-Y3AQHPAJ.js";
|
|
76
|
+
import "./chunk-C7K7AP6G.js";
|
|
77
77
|
import {
|
|
78
78
|
installSkill
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-3R43O3GG.js";
|
|
80
|
+
import "./chunk-VHO66SMY.js";
|
|
81
|
+
import "./chunk-WIRDTH3J.js";
|
|
82
|
+
import "./chunk-4JOKO4IW.js";
|
|
83
|
+
import "./chunk-IN25CJ3D.js";
|
|
84
|
+
import "./chunk-DQQEN3X4.js";
|
|
85
85
|
import {
|
|
86
86
|
inSection
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-M3IWROIF.js";
|
|
88
88
|
import "./chunk-2ABQZVK4.js";
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-452UZ2PU.js";
|
|
89
|
+
import "./chunk-P4YBABUC.js";
|
|
91
90
|
import {
|
|
92
91
|
Argument,
|
|
93
92
|
Command,
|
|
@@ -109,48 +108,49 @@ import {
|
|
|
109
108
|
runtime,
|
|
110
109
|
secretInputOf,
|
|
111
110
|
withDeadline
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
115
|
-
import "./chunk-
|
|
111
|
+
} from "./chunk-AL36NHO6.js";
|
|
112
|
+
import "./chunk-5HKMEXVQ.js";
|
|
113
|
+
import "./chunk-YPABTT7A.js";
|
|
114
|
+
import "./chunk-NKP3RUM4.js";
|
|
116
115
|
import {
|
|
117
116
|
installerOf,
|
|
118
117
|
latestVersion,
|
|
119
118
|
runUpdate,
|
|
120
119
|
updateNotice
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import "./chunk-
|
|
123
|
-
import "./chunk-
|
|
124
|
-
import "./chunk-
|
|
125
|
-
import "./chunk-
|
|
120
|
+
} from "./chunk-KZQXOZFC.js";
|
|
121
|
+
import "./chunk-LPUFOWL3.js";
|
|
122
|
+
import "./chunk-TTTDZOBW.js";
|
|
123
|
+
import "./chunk-CS5DQ6KM.js";
|
|
124
|
+
import "./chunk-C34IDOA5.js";
|
|
126
125
|
import {
|
|
127
126
|
TG,
|
|
128
127
|
VERSION
|
|
129
|
-
} from "./chunk-
|
|
130
|
-
import "./chunk-
|
|
128
|
+
} from "./chunk-NUVBC3LJ.js";
|
|
129
|
+
import "./chunk-ALHKUQDZ.js";
|
|
131
130
|
import {
|
|
132
131
|
servingProfiles
|
|
133
|
-
} from "./chunk-
|
|
134
|
-
import "./chunk-
|
|
135
|
-
import "./chunk-
|
|
136
|
-
import "./chunk-
|
|
137
|
-
import "./chunk-
|
|
138
|
-
import "./chunk-
|
|
139
|
-
import "./chunk-
|
|
140
|
-
import "./chunk-
|
|
132
|
+
} from "./chunk-NTF34HJP.js";
|
|
133
|
+
import "./chunk-KIZT2MI6.js";
|
|
134
|
+
import "./chunk-RBC7JQ4Y.js";
|
|
135
|
+
import "./chunk-QCXYJKPF.js";
|
|
136
|
+
import "./chunk-Y4LCSCSH.js";
|
|
137
|
+
import "./chunk-MQTTVQ3V.js";
|
|
138
|
+
import "./chunk-HA35XN2Z.js";
|
|
139
|
+
import "./chunk-7FOT4XD2.js";
|
|
141
140
|
import {
|
|
142
141
|
timezoneOf
|
|
143
|
-
} from "./chunk-
|
|
144
|
-
import "./chunk-
|
|
145
|
-
import "./chunk-
|
|
146
|
-
import "./chunk-
|
|
147
|
-
import "./chunk-
|
|
148
|
-
import "./chunk-
|
|
149
|
-
import "./chunk-
|
|
142
|
+
} from "./chunk-I6BKSGZQ.js";
|
|
143
|
+
import "./chunk-OFDMD3YF.js";
|
|
144
|
+
import "./chunk-NMVFFWF2.js";
|
|
145
|
+
import "./chunk-NUN6OGOV.js";
|
|
146
|
+
import "./chunk-TRRRRGMI.js";
|
|
147
|
+
import "./chunk-XDOPONC3.js";
|
|
148
|
+
import "./chunk-L4CMCC3V.js";
|
|
149
|
+
import "./chunk-O7CBGHI7.js";
|
|
150
150
|
import {
|
|
151
151
|
readSecret
|
|
152
|
-
} from "./chunk-
|
|
153
|
-
import "./chunk-
|
|
152
|
+
} from "./chunk-3EZ43DAF.js";
|
|
153
|
+
import "./chunk-ULFTCR5W.js";
|
|
154
154
|
import {
|
|
155
155
|
configFilePath,
|
|
156
156
|
exitCodeFor,
|
|
@@ -159,11 +159,11 @@ import {
|
|
|
159
159
|
renderPretty,
|
|
160
160
|
resolvePaths,
|
|
161
161
|
singleLine
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-34USFPBF.js";
|
|
163
163
|
import {
|
|
164
164
|
CliError,
|
|
165
165
|
isCliError
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-EARO464A.js";
|
|
167
167
|
import "./chunk-Y5E2WNWB.js";
|
|
168
168
|
import {
|
|
169
169
|
__name
|
|
@@ -238,7 +238,7 @@ var withProxySecrets = /* @__PURE__ */ __name((config) => {
|
|
|
238
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");
|
|
239
239
|
if (proxy.kind === "mtproxy" && proxy.secret === void 0)
|
|
240
240
|
throw new CliError("validation_error", "an MTProxy link needs its secret \u2014 run `tg config set proxy -` and paste the whole link");
|
|
241
|
-
const { checkProxy } = await import("./proxy-transport-
|
|
241
|
+
const { checkProxy } = await import("./proxy-transport-C2EUUT32.js");
|
|
242
242
|
asValidation(() => checkProxy(proxy));
|
|
243
243
|
const label = proxyLabel(proxy);
|
|
244
244
|
action.processedArgs[1] = label;
|
|
@@ -721,7 +721,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
|
|
|
721
721
|
import { join } from "node:path";
|
|
722
722
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
723
723
|
|
|
724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
725
725
|
import { realpathSync } from "node:fs";
|
|
726
726
|
import { fileURLToPath } from "node:url";
|
|
727
727
|
var QUIET_WORDS = [
|
|
@@ -1039,7 +1039,7 @@ var definition = {
|
|
|
1039
1039
|
};
|
|
1040
1040
|
var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
|
|
1041
1041
|
if (!botApi && needsBotApi(argv, environment.env ?? process.env))
|
|
1042
|
-
useBotApi((await import("./bot-api-
|
|
1042
|
+
useBotApi((await import("./bot-api-KOIAXTQR.js")).telegramBotApiCommand);
|
|
1043
1043
|
const notice = updateNotice2(argv, {
|
|
1044
1044
|
...environment.tty === void 0 ? {} : { tty: environment.tty },
|
|
1045
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-3EZ43DAF.js";
|
|
6
|
+
import "./chunk-ULFTCR5W.js";
|
|
7
|
+
import "./chunk-34USFPBF.js";
|
|
8
|
+
import "./chunk-EARO464A.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-ZFMOPKPT.js";
|
|
8
|
+
import "./chunk-E2IRSRTB.js";
|
|
9
|
+
import "./chunk-34USFPBF.js";
|
|
10
|
+
import "./chunk-EARO464A.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-OWHF6BON.js";
|
|
12
|
+
import "./chunk-34USFPBF.js";
|
|
13
|
+
import "./chunk-EARO464A.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-Y4LCSCSH.js";
|
|
12
|
+
import "./chunk-MQTTVQ3V.js";
|
|
13
|
+
import "./chunk-HA35XN2Z.js";
|
|
14
|
+
import "./chunk-TRRRRGMI.js";
|
|
15
|
+
import "./chunk-34USFPBF.js";
|
|
16
|
+
import "./chunk-EARO464A.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-MQTTVQ3V.js";
|
|
8
|
+
import "./chunk-HA35XN2Z.js";
|
|
9
|
+
import "./chunk-TRRRRGMI.js";
|
|
10
|
+
import "./chunk-34USFPBF.js";
|
|
11
|
+
import "./chunk-EARO464A.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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/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");
|