@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
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-53RW4KLL.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-67SRVSPU.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
14
14
|
import { createHash, randomUUID } from "node:crypto";
|
|
15
15
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
16
16
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -18,7 +18,7 @@ import { dirname, join } from "node:path";
|
|
|
18
18
|
import { Readable, Transform } from "node:stream";
|
|
19
19
|
import { pipeline } from "node:stream/promises";
|
|
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/speech/models.js
|
|
22
22
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
23
23
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
24
24
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -142,7 +142,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
142
142
|
return model;
|
|
143
143
|
}, "speechModel");
|
|
144
144
|
|
|
145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
145
|
+
// 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/install.js
|
|
146
146
|
var sharedModelsDirectory = /* @__PURE__ */ __name((kind, env = process.env) => join(wirecatDirectory(env), "models", kind), "sharedModelsDirectory");
|
|
147
147
|
var modelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("audio", env), "modelsDirectory");
|
|
148
148
|
var STALL_MS = 6e4;
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openCache
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KROO42KC.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
isCliError
|
|
@@ -244,9 +244,26 @@ var reactionsOf = /* @__PURE__ */ __name((reactions) => {
|
|
|
244
244
|
total: counts.reduce((sum, one) => sum + one.count, 0)
|
|
245
245
|
};
|
|
246
246
|
}, "reactionsOf");
|
|
247
|
+
var contactOf = /* @__PURE__ */ __name((media) => {
|
|
248
|
+
const { firstName, lastName, phoneNumber, userId } = media;
|
|
249
|
+
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
250
|
+
return {
|
|
251
|
+
kind: "contact",
|
|
252
|
+
...name ? { name } : {},
|
|
253
|
+
contact: {
|
|
254
|
+
name,
|
|
255
|
+
...firstName ? { firstName } : {},
|
|
256
|
+
...lastName ? { lastName } : {},
|
|
257
|
+
...phoneNumber ? { phone: phoneNumber } : {},
|
|
258
|
+
...userId ? { userId: String(userId) } : {}
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
}, "contactOf");
|
|
247
262
|
var attachmentsOf = /* @__PURE__ */ __name((media) => {
|
|
248
263
|
if (!media)
|
|
249
264
|
return [];
|
|
265
|
+
if (media.type === "contact")
|
|
266
|
+
return [contactOf(media)];
|
|
250
267
|
const read = /* @__PURE__ */ __name((name2) => {
|
|
251
268
|
if (!(name2 in media))
|
|
252
269
|
return void 0;
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-44UANKAI.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DBZVF73F.js";
|
|
14
14
|
import {
|
|
15
15
|
lentConnection,
|
|
16
16
|
onlineDeps,
|
|
17
17
|
refuseLacking,
|
|
18
18
|
servicesFor,
|
|
19
19
|
storeModeDeps
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-P5KMLJQR.js";
|
|
21
21
|
import {
|
|
22
22
|
ENTITIES
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YSDA3EWT.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_OUTPUT_BYTES,
|
|
26
26
|
LOCAL_WRITE,
|
|
@@ -43,16 +43,16 @@ import {
|
|
|
43
43
|
sealed,
|
|
44
44
|
startRecording,
|
|
45
45
|
traceOf
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GGAG3G7B.js";
|
|
47
47
|
import {
|
|
48
48
|
currentCaller,
|
|
49
49
|
keepsSuccess,
|
|
50
50
|
runContextOf,
|
|
51
51
|
withCaller
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-BYDDYOF4.js";
|
|
53
53
|
import {
|
|
54
54
|
MAX_BUFFERED_INPUT
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-53QVFV34.js";
|
|
56
56
|
import {
|
|
57
57
|
captureStreams,
|
|
58
58
|
errorObjectOf,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
__name
|
|
102
102
|
} from "./chunk-ZVVMGPBJ.js";
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
104
|
+
// 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/mcp/agent.js
|
|
105
105
|
import { Readable } from "node:stream";
|
|
106
106
|
|
|
107
107
|
// node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
@@ -2749,7 +2749,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2749
2749
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2750
2750
|
});
|
|
2751
2751
|
|
|
2752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2752
|
+
// 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/mcp/agent.js
|
|
2753
2753
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2754
2754
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2755
2755
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2970,7 +2970,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2970
2970
|
}
|
|
2971
2971
|
}, "runCommandForAgent");
|
|
2972
2972
|
|
|
2973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2973
|
+
// 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/mcp/tool.js
|
|
2974
2974
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2975
2975
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2976
2976
|
var message = pipe(
|
|
@@ -3229,7 +3229,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3229
3229
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3230
3230
|
}, "failed");
|
|
3231
3231
|
|
|
3232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3232
|
+
// 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/mcp/surface.js
|
|
3233
3233
|
import { randomUUID } from "node:crypto";
|
|
3234
3234
|
var MATCHES = 8;
|
|
3235
3235
|
var ANSWER = answerSchema();
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VMKPRAIB.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
11
|
} from "./chunk-67SRVSPU.js";
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// 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/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// 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/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// 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/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// 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/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|