@wirecat/tg-cli 0.105.0 → 0.107.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-WWYRCTPE.js → adapter-PN5AXCJ7.js} +115 -55
- package/dist/bundle/{all-profiles-IJYM6NIJ.js → all-profiles-SDHNKZQQ.js} +5 -5
- package/dist/bundle/{anthropic-EDRWOXB5.js → anthropic-F3BXQLYB.js} +3 -3
- package/dist/bundle/{app-server-2NF7ZH3C.js → app-server-XDKMWVCD.js} +34 -34
- package/dist/bundle/{bot-api-XCDLL6M2.js → bot-api-YXJL4CEV.js} +38 -38
- package/dist/bundle/{bot-history-37WSQX3U.js → bot-history-SDLHR7PV.js} +10 -10
- package/dist/bundle/{bun-ZX34DXTI.js → bun-SMH7PKUS.js} +2 -2
- package/dist/bundle/{bun-sqlite-7TZ73UKO.js → bun-sqlite-KB6PSTWH.js} +2 -2
- package/dist/bundle/{chunk-NBXUNS6Q.js → chunk-3UEFJ75D.js} +1 -1
- package/dist/bundle/{chunk-ETVQH5AL.js → chunk-44UANKAI.js} +11 -9
- package/dist/bundle/{chunk-RI7H2VVU.js → chunk-465FPHSG.js} +7 -7
- package/dist/bundle/{chunk-SJIHZA4K.js → chunk-53QVFV34.js} +1 -1
- package/dist/bundle/{chunk-NEPB2EI6.js → chunk-53RW4KLL.js} +1 -1
- package/dist/bundle/{chunk-VIGQIMGM.js → chunk-5QBTHR57.js} +2 -2
- package/dist/bundle/{chunk-AQGW6OHU.js → chunk-6FSG6QZH.js} +1 -1
- package/dist/bundle/{chunk-HJSWUHHP.js → chunk-A4DS5ANQ.js} +1 -1
- package/dist/bundle/{chunk-MAV5ODPN.js → chunk-AWBJSYX6.js} +1 -1
- package/dist/bundle/{chunk-56JDML7T.js → chunk-BGVODG6P.js} +2 -2
- package/dist/bundle/{chunk-SLFDNASB.js → chunk-BMXGEQDA.js} +4 -4
- package/dist/bundle/{chunk-QPE72FCE.js → chunk-BYDDYOF4.js} +7 -7
- package/dist/bundle/{chunk-XP4JEE47.js → chunk-CJJVFGFX.js} +1 -1
- package/dist/bundle/{chunk-QWPVSWQE.js → chunk-DBZVF73F.js} +2 -2
- package/dist/bundle/{chunk-2A2KXY5G.js → chunk-DFZBGU4G.js} +4 -4
- package/dist/bundle/{chunk-J6B5DQ3I.js → chunk-GGAG3G7B.js} +55 -47
- package/dist/bundle/{chunk-S3C2L3IE.js → chunk-GJS26XEB.js} +4 -4
- package/dist/bundle/{chunk-LOIFBJBA.js → chunk-H4LIQVPN.js} +9 -9
- package/dist/bundle/{chunk-OOBCCVYM.js → chunk-IY7IEM56.js} +4 -4
- package/dist/bundle/{chunk-RDO66SBI.js → chunk-JAWXJILO.js} +2 -2
- package/dist/bundle/{chunk-MHS2LEZA.js → chunk-JZOXKRDG.js} +11 -6
- package/dist/bundle/{chunk-4UZE26T6.js → chunk-KROO42KC.js} +5 -5
- package/dist/bundle/{chunk-QAW5QNOY.js → chunk-LA2OUJK5.js} +9 -8
- package/dist/bundle/{chunk-J5OIB3OW.js → chunk-MOZX3JX3.js} +2 -2
- package/dist/bundle/{chunk-5PDGRPTS.js → chunk-NCWB3KXP.js} +1 -1
- package/dist/bundle/{chunk-N5BGV5YZ.js → chunk-NMTFZNFU.js} +26 -26
- package/dist/bundle/{chunk-73OWDRGK.js → chunk-NSQL3YRD.js} +25 -21
- package/dist/bundle/{chunk-S7FO7OU2.js → chunk-NUVHRCUK.js} +344 -297
- package/dist/bundle/{chunk-YGYQY5AG.js → chunk-O7VQHFMZ.js} +1 -1
- package/dist/bundle/{chunk-2J2G3ELT.js → chunk-OIHAM73W.js} +1 -1
- package/dist/bundle/{chunk-ZI7THBWF.js → chunk-P4A27ETD.js} +46 -46
- package/dist/bundle/{chunk-WD7Q2H4J.js → chunk-P5KMLJQR.js} +2930 -2853
- package/dist/bundle/{chunk-Q6NALH2X.js → chunk-P5UG655O.js} +2 -2
- package/dist/bundle/{recognize-54LQOU24.js → chunk-PYRJO6B3.js} +6 -6
- package/dist/bundle/{chunk-YSIC5B32.js → chunk-REJM262E.js} +10 -10
- package/dist/bundle/{chunk-4VFRP2T2.js → chunk-RGNKRI5T.js} +26 -22
- package/dist/bundle/{chunk-ZIG4WIVN.js → chunk-STGY3EAZ.js} +1 -1
- package/dist/bundle/{chunk-4N53GVUI.js → chunk-TEHAIU6I.js} +56 -46
- package/dist/bundle/{chunk-Z6SXT5DV.js → chunk-TFV4UPQZ.js} +3 -3
- package/dist/bundle/{chunk-ZM2AI3E5.js → chunk-TKCZYJAT.js} +431 -319
- package/dist/bundle/{chunk-QVXMOHHN.js → chunk-VMKPRAIB.js} +4 -4
- package/dist/bundle/{chunk-443D2OY7.js → chunk-WFG7KFM4.js} +1 -1
- package/dist/bundle/{chunk-6MQ3DEXF.js → chunk-WS3S7DXT.js} +18 -1
- package/dist/bundle/{chunk-FNASJIAI.js → chunk-WXIGT6FY.js} +11 -11
- package/dist/bundle/{chunk-L23IJ3IZ.js → chunk-X7M7YZPF.js} +5 -5
- package/dist/bundle/{chunk-PFL3CCP2.js → chunk-YA44IPCS.js} +1 -1
- package/dist/bundle/{chunk-GGIDY5KC.js → chunk-YSDA3EWT.js} +154 -142
- package/dist/bundle/{command-contract-OF6TUQ5B.js → command-contract-B4DA4MXP.js} +12 -12
- package/dist/bundle/decode-WEP3HD56.js +159 -0
- package/dist/bundle/{echarts-WFLEME5I.js → echarts-MRMILSAF.js} +2 -2
- package/dist/bundle/{embed-ESTG27RK.js → embed-LCLTUVUD.js} +3 -3
- package/dist/bundle/{embedder-P3W76VOZ.js → embedder-O4WNEXUC.js} +6 -6
- package/dist/bundle/{entry-SNRZGNRA.js → entry-7HDX6BDR.js} +3 -3
- package/dist/bundle/{first-run-JS24HORG.js → first-run-M7YVVQJS.js} +5 -5
- package/dist/bundle/{first-screen-U63BJPXI.js → first-screen-MXW3UZFB.js} +13 -13
- package/dist/bundle/{identity-TYE57SHY.js → identity-EEMHQOTN.js} +1 -1
- package/dist/bundle/{instructions-ERMZPVS4.js → instructions-YIH3J4TI.js} +1 -1
- package/dist/bundle/{node-KDZSMKIC.js → node-YWT7RFN6.js} +2 -2
- package/dist/bundle/{node-sqlite-FR64YDYV.js → node-sqlite-LVHTONMA.js} +2 -2
- package/dist/bundle/{oauth-SPE76ZIY.js → oauth-CADZB7TT.js} +4 -4
- package/dist/bundle/{open-UEFCMPLC.js → open-AMRU27KK.js} +1 -1
- package/dist/bundle/{process-7MD6MEGB.js → process-JC76J5UD.js} +1 -1
- package/dist/bundle/{program-NFFSOGUY.js → program-FI6MTY2V.js} +40 -40
- package/dist/bundle/{prompt-3PI4H66U.js → prompt-SPYTHKHN.js} +2 -2
- package/dist/bundle/recognize-G5VVM6MU.js +22 -0
- package/dist/bundle/{remote-JQ74NVUK.js → remote-Z3HW42CH.js} +4 -4
- package/dist/bundle/{rerank-66YCEORD.js → rerank-QJ5NLZUU.js} +4 -4
- package/dist/bundle/{serve-5SP2TCGV.js → serve-3I4C6Y5X.js} +6 -6
- package/dist/bundle/{server-GFICDJ6J.js → server-2L4BONHN.js} +26 -26
- package/dist/bundle/server-7TJ337SR.js +55 -0
- package/dist/bundle/{state-U7HXQB6I.js → state-IXZYPH46.js} +3 -3
- package/dist/bundle/{store-O4QVYHFL.js → store-KS4XIA2R.js} +7 -7
- package/dist/bundle/store-maintenance-command-I3L24P22.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +1 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/telegram/adapter.d.ts +7 -0
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +3 -0
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/contacts.d.ts +3 -1
- package/dist/telegram/contacts.d.ts.map +1 -1
- package/dist/telegram/contacts.js +4 -1
- package/dist/telegram/contacts.js.map +1 -1
- package/dist/telegram/map.d.ts.map +1 -1
- package/dist/telegram/map.js +17 -0
- package/dist/telegram/map.js.map +1 -1
- package/dist/telegram/messages.d.ts +7 -0
- package/dist/telegram/messages.d.ts.map +1 -1
- package/dist/telegram/messages.js +5 -0
- package/dist/telegram/messages.js.map +1 -1
- package/dist/telegram/reactors.d.ts +16 -0
- package/dist/telegram/reactors.d.ts.map +1 -0
- package/dist/telegram/reactors.js +58 -0
- package/dist/telegram/reactors.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/tg-cli/SKILL.md +3 -2
- package/dist/bundle/server-KMKRKOZP.js +0 -55
- package/dist/bundle/store-maintenance-command-BNRZ5IJD.js +0 -44
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
commandPathOf,
|
|
7
7
|
findCommand,
|
|
8
8
|
outputOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-BMXGEQDA.js";
|
|
10
|
+
import "./chunk-YSDA3EWT.js";
|
|
11
|
+
import "./chunk-GGAG3G7B.js";
|
|
12
|
+
import "./chunk-TFV4UPQZ.js";
|
|
13
|
+
import "./chunk-BYDDYOF4.js";
|
|
14
|
+
import "./chunk-P5UG655O.js";
|
|
15
|
+
import "./chunk-3UEFJ75D.js";
|
|
16
|
+
import "./chunk-NCWB3KXP.js";
|
|
17
|
+
import "./chunk-VMKPRAIB.js";
|
|
18
|
+
import "./chunk-P4A27ETD.js";
|
|
19
|
+
import "./chunk-IY7IEM56.js";
|
|
20
20
|
import "./chunk-O5EHUB2V.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-53RW4KLL.js";
|
|
22
22
|
import "./chunk-T4SDOYPY.js";
|
|
23
23
|
import "./chunk-67SRVSPU.js";
|
|
24
24
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
SAMPLE_RATE,
|
|
5
|
+
decodeOgg
|
|
6
|
+
} from "./chunk-PYRJO6B3.js";
|
|
7
|
+
import "./chunk-T4SDOYPY.js";
|
|
8
|
+
import {
|
|
9
|
+
CliError
|
|
10
|
+
} from "./chunk-67SRVSPU.js";
|
|
11
|
+
import {
|
|
12
|
+
importFrom
|
|
13
|
+
} from "./chunk-Y5E2WNWB.js";
|
|
14
|
+
import {
|
|
15
|
+
__name
|
|
16
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
17
|
+
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
19
|
+
import { spawn } from "node:child_process";
|
|
20
|
+
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
21
|
+
import { createRequire } from "node:module";
|
|
22
|
+
import { tmpdir } from "node:os";
|
|
23
|
+
import { join } from "node:path";
|
|
24
|
+
import { pathToFileURL } from "node:url";
|
|
25
|
+
var LONGEST_AUDIO_SECONDS = 3600;
|
|
26
|
+
var FFMPEG_TIMEOUT_MS = 12e4;
|
|
27
|
+
var FFMPEG_FORMATS = "mov,mp4,m4a,3gp,3g2,mj2,aac,mp3,wav,amr,caf,aiff,flac,ogg,matroska,webm,asf";
|
|
28
|
+
var text = /* @__PURE__ */ __name((bytes, from, length) => String.fromCharCode(...bytes.subarray(from, from + length)), "text");
|
|
29
|
+
var contains = /* @__PURE__ */ __name((bytes, needle, within) => Buffer.from(bytes.buffer, bytes.byteOffset, Math.min(bytes.length, within)).includes(needle, 0, "latin1"), "contains");
|
|
30
|
+
var formatOf = /* @__PURE__ */ __name((bytes) => {
|
|
31
|
+
if (text(bytes, 0, 4) === "OggS") {
|
|
32
|
+
if (contains(bytes, "OpusHead", 128))
|
|
33
|
+
return "opus";
|
|
34
|
+
if (contains(bytes, "vorbis", 128))
|
|
35
|
+
return "vorbis";
|
|
36
|
+
return "other";
|
|
37
|
+
}
|
|
38
|
+
if (text(bytes, 0, 4) === "fLaC")
|
|
39
|
+
return "flac";
|
|
40
|
+
const frame = bytes[0] === 255 && ((bytes[1] ?? 0) & 224) === 224 && ((bytes[1] ?? 0) >> 1 & 3) !== 0;
|
|
41
|
+
if (text(bytes, 0, 3) === "ID3" || frame)
|
|
42
|
+
return "mp3";
|
|
43
|
+
return "other";
|
|
44
|
+
}, "formatOf");
|
|
45
|
+
var firstChannel = /* @__PURE__ */ __name((decoded) => {
|
|
46
|
+
const samples = decoded.channelData[0];
|
|
47
|
+
if (!samples || decoded.samplesDecoded === 0)
|
|
48
|
+
throw new CliError("validation_error", "no audio in that file");
|
|
49
|
+
return { samples, rate: decoded.sampleRate };
|
|
50
|
+
}, "firstChannel");
|
|
51
|
+
var load = /* @__PURE__ */ __name((name) => importFrom(new URL("speech/decode.js", import.meta.resolve("@wirecat/cli-core")).href, pathToFileURL(createRequire(new URL("speech/decode.js", import.meta.resolve("@wirecat/cli-core")).href).resolve(name)).href), "load");
|
|
52
|
+
var decodeVorbis = /* @__PURE__ */ __name(async (bytes) => {
|
|
53
|
+
const { OggVorbisDecoder } = await load("@wasm-audio-decoders/ogg-vorbis");
|
|
54
|
+
const decoder = new OggVorbisDecoder();
|
|
55
|
+
await decoder.ready;
|
|
56
|
+
try {
|
|
57
|
+
return firstChannel(await decoder.decodeFile(bytes));
|
|
58
|
+
} finally {
|
|
59
|
+
decoder.free();
|
|
60
|
+
}
|
|
61
|
+
}, "decodeVorbis");
|
|
62
|
+
var decodeFlac = /* @__PURE__ */ __name(async (bytes) => {
|
|
63
|
+
const { FLACDecoder } = await load("@wasm-audio-decoders/flac");
|
|
64
|
+
const decoder = new FLACDecoder();
|
|
65
|
+
await decoder.ready;
|
|
66
|
+
try {
|
|
67
|
+
return firstChannel(await decoder.decodeFile(bytes));
|
|
68
|
+
} finally {
|
|
69
|
+
decoder.free();
|
|
70
|
+
}
|
|
71
|
+
}, "decodeFlac");
|
|
72
|
+
var decodeMp3 = /* @__PURE__ */ __name(async (bytes) => {
|
|
73
|
+
const { MPEGDecoder } = await load("mpg123-decoder");
|
|
74
|
+
const decoder = new MPEGDecoder();
|
|
75
|
+
await decoder.ready;
|
|
76
|
+
try {
|
|
77
|
+
return firstChannel(decoder.decode(bytes));
|
|
78
|
+
} finally {
|
|
79
|
+
decoder.free();
|
|
80
|
+
}
|
|
81
|
+
}, "decodeMp3");
|
|
82
|
+
var runFfmpeg = /* @__PURE__ */ __name(async (bytes) => {
|
|
83
|
+
const directory = await mkdtemp(join(tmpdir(), "wirecat-audio-"));
|
|
84
|
+
try {
|
|
85
|
+
const input = join(directory, "audio");
|
|
86
|
+
await writeFile(input, bytes, { mode: 384 });
|
|
87
|
+
const largest = LONGEST_AUDIO_SECONDS * SAMPLE_RATE * 4;
|
|
88
|
+
const output = await new Promise((resolve, reject) => {
|
|
89
|
+
const child = spawn("ffmpeg", [
|
|
90
|
+
"-nostdin",
|
|
91
|
+
"-hide_banner",
|
|
92
|
+
"-loglevel",
|
|
93
|
+
"error",
|
|
94
|
+
"-protocol_whitelist",
|
|
95
|
+
"file",
|
|
96
|
+
"-format_whitelist",
|
|
97
|
+
FFMPEG_FORMATS,
|
|
98
|
+
"-i",
|
|
99
|
+
input,
|
|
100
|
+
"-vn",
|
|
101
|
+
"-ac",
|
|
102
|
+
"1",
|
|
103
|
+
"-ar",
|
|
104
|
+
String(SAMPLE_RATE),
|
|
105
|
+
"-f",
|
|
106
|
+
"f32le",
|
|
107
|
+
"pipe:1"
|
|
108
|
+
], { stdio: ["ignore", "pipe", "pipe"], timeout: FFMPEG_TIMEOUT_MS });
|
|
109
|
+
const chunks = [];
|
|
110
|
+
let size = 0;
|
|
111
|
+
let errors = "";
|
|
112
|
+
child.stdout.on("data", (chunk) => {
|
|
113
|
+
size += chunk.length;
|
|
114
|
+
if (size > largest)
|
|
115
|
+
child.kill();
|
|
116
|
+
else
|
|
117
|
+
chunks.push(chunk);
|
|
118
|
+
});
|
|
119
|
+
child.stderr.on("data", (chunk) => {
|
|
120
|
+
errors = (errors + chunk.toString()).slice(-500);
|
|
121
|
+
});
|
|
122
|
+
child.on("error", (error) => reject(error.code === "ENOENT" ? new CliError("validation_error", "only ffmpeg reads this audio format, and ffmpeg is not installed") : error));
|
|
123
|
+
child.on("close", (code) => {
|
|
124
|
+
if (size > largest)
|
|
125
|
+
reject(new CliError("validation_error", `the audio is longer than ${LONGEST_AUDIO_SECONDS / 60} minutes`));
|
|
126
|
+
else if (code === 0)
|
|
127
|
+
resolve(Buffer.concat(chunks));
|
|
128
|
+
else
|
|
129
|
+
reject(new CliError("validation_error", `ffmpeg could not read the audio: ${errors.trim() || code}`));
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
const samples = new Float32Array(Math.floor(output.length / 4));
|
|
133
|
+
Buffer.from(samples.buffer).set(output.subarray(0, samples.length * 4));
|
|
134
|
+
return { samples, rate: SAMPLE_RATE };
|
|
135
|
+
} finally {
|
|
136
|
+
await rm(directory, { recursive: true, force: true });
|
|
137
|
+
}
|
|
138
|
+
}, "runFfmpeg");
|
|
139
|
+
var BUNDLED = {
|
|
140
|
+
opus: decodeOgg,
|
|
141
|
+
vorbis: decodeVorbis,
|
|
142
|
+
flac: decodeFlac,
|
|
143
|
+
mp3: decodeMp3
|
|
144
|
+
};
|
|
145
|
+
var decodeAudio = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => {
|
|
146
|
+
const format = formatOf(bytes);
|
|
147
|
+
const pcm = format === "other" ? await ffmpeg(bytes) : await BUNDLED[format](bytes).catch((error) => ffmpeg(bytes).catch(() => {
|
|
148
|
+
throw error;
|
|
149
|
+
}));
|
|
150
|
+
if (pcm.samples.length / pcm.rate > LONGEST_AUDIO_SECONDS)
|
|
151
|
+
throw new CliError("validation_error", `the audio is longer than ${LONGEST_AUDIO_SECONDS / 60} minutes`);
|
|
152
|
+
return pcm;
|
|
153
|
+
}, "decodeAudio");
|
|
154
|
+
export {
|
|
155
|
+
LONGEST_AUDIO_SECONDS,
|
|
156
|
+
decodeAudio,
|
|
157
|
+
formatOf,
|
|
158
|
+
runFfmpeg
|
|
159
|
+
};
|
|
@@ -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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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,9 +13,9 @@ import {
|
|
|
13
13
|
truncated,
|
|
14
14
|
unit,
|
|
15
15
|
warmEmbedders
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-X7M7YZPF.js";
|
|
17
|
+
import "./chunk-VMKPRAIB.js";
|
|
18
|
+
import "./chunk-53RW4KLL.js";
|
|
19
19
|
import "./chunk-T4SDOYPY.js";
|
|
20
20
|
import "./chunk-67SRVSPU.js";
|
|
21
21
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
openSession,
|
|
5
5
|
truncated,
|
|
6
6
|
unit
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-X7M7YZPF.js";
|
|
8
|
+
import "./chunk-VMKPRAIB.js";
|
|
9
|
+
import "./chunk-53RW4KLL.js";
|
|
10
10
|
import "./chunk-T4SDOYPY.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
@@ -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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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,9 +2,9 @@ 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-
|
|
5
|
+
} from "./chunk-H4LIQVPN.js";
|
|
6
|
+
import "./chunk-3UEFJ75D.js";
|
|
7
|
+
import "./chunk-KROO42KC.js";
|
|
8
8
|
import "./chunk-T4SDOYPY.js";
|
|
9
9
|
import "./chunk-67SRVSPU.js";
|
|
10
10
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
asksAtStart,
|
|
6
6
|
setupAtStart,
|
|
7
7
|
systemLanguage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-REJM262E.js";
|
|
9
9
|
import "./chunk-VMU4SGCE.js";
|
|
10
10
|
import "./chunk-MFS52LTZ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-P5UG655O.js";
|
|
12
|
+
import "./chunk-465FPHSG.js";
|
|
13
|
+
import "./chunk-IY7IEM56.js";
|
|
14
|
+
import "./chunk-53RW4KLL.js";
|
|
15
15
|
import "./chunk-T4SDOYPY.js";
|
|
16
16
|
import "./chunk-67SRVSPU.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
WIRECAT_TOOLS,
|
|
5
5
|
firstScreen,
|
|
6
6
|
installHelp
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JZOXKRDG.js";
|
|
8
8
|
import "./chunk-2ABQZVK4.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-BMXGEQDA.js";
|
|
10
|
+
import "./chunk-YSDA3EWT.js";
|
|
11
|
+
import "./chunk-GGAG3G7B.js";
|
|
12
|
+
import "./chunk-TFV4UPQZ.js";
|
|
13
|
+
import "./chunk-BYDDYOF4.js";
|
|
14
|
+
import "./chunk-P5UG655O.js";
|
|
15
|
+
import "./chunk-3UEFJ75D.js";
|
|
16
|
+
import "./chunk-NCWB3KXP.js";
|
|
17
|
+
import "./chunk-VMKPRAIB.js";
|
|
18
|
+
import "./chunk-P4A27ETD.js";
|
|
19
|
+
import "./chunk-IY7IEM56.js";
|
|
20
20
|
import "./chunk-O5EHUB2V.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-53RW4KLL.js";
|
|
22
22
|
import "./chunk-T4SDOYPY.js";
|
|
23
23
|
import "./chunk-67SRVSPU.js";
|
|
24
24
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
TG
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WFG7KFM4.js";
|
|
6
6
|
import "./chunk-O5EHUB2V.js";
|
|
7
7
|
import "./chunk-67SRVSPU.js";
|
|
8
8
|
import "./chunk-ZVVMGPBJ.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6FSG6QZH.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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CJJVFGFX.js";
|
|
7
7
|
import "./chunk-T4SDOYPY.js";
|
|
8
8
|
import "./chunk-67SRVSPU.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -11,7 +11,7 @@ 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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
ownerLogin,
|
|
5
5
|
revokeAll
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MOZX3JX3.js";
|
|
7
7
|
import "./chunk-5D4AEUVA.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-DFZBGU4G.js";
|
|
9
|
+
import "./chunk-JAWXJILO.js";
|
|
10
|
+
import "./chunk-NCWB3KXP.js";
|
|
11
11
|
import "./chunk-T4SDOYPY.js";
|
|
12
12
|
import "./chunk-67SRVSPU.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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-LA2OUJK5.js";
|
|
17
17
|
import {
|
|
18
18
|
AGENTS,
|
|
19
19
|
MEMO_SCENARIOS,
|
|
@@ -65,27 +65,27 @@ import {
|
|
|
65
65
|
topicsCommand,
|
|
66
66
|
upgradeCommand,
|
|
67
67
|
watchCommand
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-
|
|
68
|
+
} from "./chunk-NUVHRCUK.js";
|
|
69
|
+
import "./chunk-OIHAM73W.js";
|
|
70
70
|
import {
|
|
71
71
|
parseProxy,
|
|
72
72
|
proxyLabel
|
|
73
73
|
} from "./chunk-FG2QTYEF.js";
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-AWBJSYX6.js";
|
|
75
|
+
import "./chunk-RGNKRI5T.js";
|
|
76
76
|
import {
|
|
77
77
|
installSkill
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-44UANKAI.js";
|
|
79
|
+
import "./chunk-TEHAIU6I.js";
|
|
80
|
+
import "./chunk-NSQL3YRD.js";
|
|
81
|
+
import "./chunk-P5KMLJQR.js";
|
|
82
|
+
import "./chunk-GJS26XEB.js";
|
|
83
83
|
import {
|
|
84
84
|
inSection
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-JZOXKRDG.js";
|
|
86
86
|
import "./chunk-2ABQZVK4.js";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-BMXGEQDA.js";
|
|
88
|
+
import "./chunk-YSDA3EWT.js";
|
|
89
89
|
import {
|
|
90
90
|
Argument,
|
|
91
91
|
Command,
|
|
@@ -107,10 +107,10 @@ import {
|
|
|
107
107
|
runtime,
|
|
108
108
|
secretInputOf,
|
|
109
109
|
withDeadline
|
|
110
|
-
} from "./chunk-
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
110
|
+
} from "./chunk-GGAG3G7B.js";
|
|
111
|
+
import "./chunk-TFV4UPQZ.js";
|
|
112
|
+
import "./chunk-BYDDYOF4.js";
|
|
113
|
+
import "./chunk-REJM262E.js";
|
|
114
114
|
import {
|
|
115
115
|
installerOf,
|
|
116
116
|
latestVersion,
|
|
@@ -118,37 +118,37 @@ import {
|
|
|
118
118
|
updateNotice
|
|
119
119
|
} from "./chunk-VMU4SGCE.js";
|
|
120
120
|
import "./chunk-MFS52LTZ.js";
|
|
121
|
-
import "./chunk-
|
|
122
|
-
import "./chunk-
|
|
123
|
-
import "./chunk-
|
|
121
|
+
import "./chunk-P5UG655O.js";
|
|
122
|
+
import "./chunk-H4LIQVPN.js";
|
|
123
|
+
import "./chunk-3UEFJ75D.js";
|
|
124
124
|
import {
|
|
125
125
|
TG,
|
|
126
126
|
VERSION
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import "./chunk-
|
|
127
|
+
} from "./chunk-WFG7KFM4.js";
|
|
128
|
+
import "./chunk-DFZBGU4G.js";
|
|
129
129
|
import {
|
|
130
130
|
servingProfiles
|
|
131
|
-
} from "./chunk-
|
|
132
|
-
import "./chunk-
|
|
133
|
-
import "./chunk-
|
|
134
|
-
import "./chunk-
|
|
135
|
-
import "./chunk-
|
|
136
|
-
import "./chunk-
|
|
137
|
-
import "./chunk-
|
|
138
|
-
import "./chunk-
|
|
131
|
+
} from "./chunk-JAWXJILO.js";
|
|
132
|
+
import "./chunk-NCWB3KXP.js";
|
|
133
|
+
import "./chunk-O7VQHFMZ.js";
|
|
134
|
+
import "./chunk-YA44IPCS.js";
|
|
135
|
+
import "./chunk-5QBTHR57.js";
|
|
136
|
+
import "./chunk-X7M7YZPF.js";
|
|
137
|
+
import "./chunk-VMKPRAIB.js";
|
|
138
|
+
import "./chunk-TKCZYJAT.js";
|
|
139
139
|
import {
|
|
140
140
|
timezoneOf
|
|
141
|
-
} from "./chunk-
|
|
142
|
-
import "./chunk-
|
|
143
|
-
import "./chunk-
|
|
141
|
+
} from "./chunk-P4A27ETD.js";
|
|
142
|
+
import "./chunk-465FPHSG.js";
|
|
143
|
+
import "./chunk-IY7IEM56.js";
|
|
144
144
|
import "./chunk-O5EHUB2V.js";
|
|
145
|
-
import "./chunk-
|
|
146
|
-
import "./chunk-
|
|
147
|
-
import "./chunk-
|
|
145
|
+
import "./chunk-53RW4KLL.js";
|
|
146
|
+
import "./chunk-KROO42KC.js";
|
|
147
|
+
import "./chunk-6FSG6QZH.js";
|
|
148
148
|
import {
|
|
149
149
|
readSecret
|
|
150
|
-
} from "./chunk-
|
|
151
|
-
import "./chunk-
|
|
150
|
+
} from "./chunk-BGVODG6P.js";
|
|
151
|
+
import "./chunk-53QVFV34.js";
|
|
152
152
|
import {
|
|
153
153
|
configFilePath,
|
|
154
154
|
exitCodeFor,
|
|
@@ -719,7 +719,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
|
|
|
719
719
|
import { join } from "node:path";
|
|
720
720
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
721
721
|
|
|
722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
723
723
|
import { realpathSync } from "node:fs";
|
|
724
724
|
import { fileURLToPath } from "node:url";
|
|
725
725
|
var QUIET_WORDS = [
|
|
@@ -1036,7 +1036,7 @@ var definition = {
|
|
|
1036
1036
|
};
|
|
1037
1037
|
var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
|
|
1038
1038
|
if (!botApi && needsBotApi(argv, environment.env ?? process.env))
|
|
1039
|
-
useBotApi((await import("./bot-api-
|
|
1039
|
+
useBotApi((await import("./bot-api-YXJL4CEV.js")).telegramBotApiCommand);
|
|
1040
1040
|
const notice = updateNotice2(argv, {
|
|
1041
1041
|
...environment.tty === void 0 ? {} : { tty: environment.tty },
|
|
1042
1042
|
...environment.update ? { environment: environment.update } : {},
|
|
@@ -2,8 +2,8 @@ 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-
|
|
5
|
+
} from "./chunk-BGVODG6P.js";
|
|
6
|
+
import "./chunk-53QVFV34.js";
|
|
7
7
|
import "./chunk-T4SDOYPY.js";
|
|
8
8
|
import "./chunk-67SRVSPU.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
SAMPLE_RATE,
|
|
5
|
+
decodeOgg,
|
|
6
|
+
detector,
|
|
7
|
+
loadSherpa,
|
|
8
|
+
openRecognizer,
|
|
9
|
+
toModelRate
|
|
10
|
+
} from "./chunk-PYRJO6B3.js";
|
|
11
|
+
import "./chunk-T4SDOYPY.js";
|
|
12
|
+
import "./chunk-67SRVSPU.js";
|
|
13
|
+
import "./chunk-Y5E2WNWB.js";
|
|
14
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
15
|
+
export {
|
|
16
|
+
SAMPLE_RATE,
|
|
17
|
+
decodeOgg,
|
|
18
|
+
detector,
|
|
19
|
+
loadSherpa,
|
|
20
|
+
openRecognizer,
|
|
21
|
+
toModelRate
|
|
22
|
+
};
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
openRemote,
|
|
9
9
|
remoteKey,
|
|
10
10
|
remoteModel
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-5QBTHR57.js";
|
|
12
|
+
import "./chunk-X7M7YZPF.js";
|
|
13
|
+
import "./chunk-VMKPRAIB.js";
|
|
14
|
+
import "./chunk-53RW4KLL.js";
|
|
15
15
|
import "./chunk-T4SDOYPY.js";
|
|
16
16
|
import "./chunk-67SRVSPU.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
defaultThreads,
|
|
5
5
|
loadModel,
|
|
6
6
|
truncated
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-X7M7YZPF.js";
|
|
8
|
+
import "./chunk-VMKPRAIB.js";
|
|
9
|
+
import "./chunk-53RW4KLL.js";
|
|
10
10
|
import "./chunk-T4SDOYPY.js";
|
|
11
11
|
import "./chunk-67SRVSPU.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -14,7 +14,7 @@ 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.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/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");
|