@wirecat/tg-cli 0.123.0 → 0.125.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/contracts/wirecat.json +54 -5
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-GAOG65O2.js → adapter-H2LTOLOA.js} +54 -53
- package/dist/bundle/{all-profiles-HLE6PHNI.js → all-profiles-75HGEFL7.js} +10 -10
- package/dist/bundle/{anthropic-FZC4BS7T.js → anthropic-N54MKE4C.js} +17 -10
- package/dist/bundle/{app-server-SHZNMV27.js → app-server-3N5INKKI.js} +62 -52
- package/dist/bundle/{bot-api-LRS2KMDE.js → bot-api-V65KTEAH.js} +53 -52
- package/dist/bundle/{bot-history-IJ7ZZKW5.js → bot-history-TT2EAHEE.js} +18 -18
- package/dist/bundle/{bun-FACL53HM.js → bun-LN4J7PA7.js} +2 -2
- package/dist/bundle/{bun-sqlite-B2MD7RTL.js → bun-sqlite-6PDBFBUI.js} +6 -6
- package/dist/bundle/{chunk-BGUYYKS3.js → chunk-37SZHAEA.js} +343 -112
- package/dist/bundle/{chunk-UB6J5HRW.js → chunk-3GILMKQ2.js} +3 -3
- package/dist/bundle/{chunk-WSLTW6MI.js → chunk-4KIOWSDL.js} +3 -3
- package/dist/bundle/{chunk-VVRWH5VH.js → chunk-4TCBRKWQ.js} +14 -9
- package/dist/bundle/{chunk-MFN5MSIL.js → chunk-6HLB73UN.js} +3 -3
- package/dist/bundle/{chunk-DEMGDKCX.js → chunk-6Y6SSZ34.js} +2406 -2371
- package/dist/bundle/{chunk-Z5HHBTS5.js → chunk-77Z3OGAT.js} +23 -4
- package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-ZJPXRW65.js → chunk-7OBSIDBJ.js} +4 -4
- package/dist/bundle/{chunk-OOWE2O5U.js → chunk-AI2J3WJT.js} +1 -1
- package/dist/bundle/{chunk-EABZ2CUG.js → chunk-AMPHPP4P.js} +34 -29
- package/dist/bundle/{chunk-STPYSD6W.js → chunk-B252D7V4.js} +3 -3
- package/dist/bundle/{chunk-V4722KYX.js → chunk-BLNMM3AX.js} +2 -2
- package/dist/bundle/{chunk-SWGGYBCW.js → chunk-CNEJQQMD.js} +40 -21
- package/dist/bundle/{chunk-4DCFLHLN.js → chunk-DI3RJ3MJ.js} +4 -4
- package/dist/bundle/{chunk-7EFJHLKW.js → chunk-DNCOELTM.js} +1 -1
- package/dist/bundle/chunk-DYOZ7CUV.js +71 -0
- package/dist/bundle/{chunk-E2Z4C6CQ.js → chunk-E4HDE5DN.js} +6 -6
- package/dist/bundle/chunk-EIGV2JKX.js +13 -0
- package/dist/bundle/{chunk-6KT5BTWL.js → chunk-FHPEUAHQ.js} +367 -184
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-SNEJK4SN.js → chunk-FSP74THJ.js} +4 -4
- package/dist/bundle/{chunk-PAHSIORC.js → chunk-FUYCAROL.js} +6 -6
- package/dist/bundle/{chunk-WA7YED3Y.js → chunk-GRDVBJCR.js} +1 -1
- package/dist/bundle/{chunk-OE5JMZSM.js → chunk-GUPMDMFM.js} +9 -9
- package/dist/bundle/{chunk-6FK2Z75N.js → chunk-HHG5FR5H.js} +2 -2
- package/dist/bundle/{chunk-U5FILNK6.js → chunk-IN3NAFUN.js} +69 -6
- package/dist/bundle/{chunk-3BUQXB7B.js → chunk-INZAZMUF.js} +15 -117
- package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-SCGCDLI7.js → chunk-JB4BO5XZ.js} +1 -1
- package/dist/bundle/{chunk-XDL4L3OI.js → chunk-JC6HMPL7.js} +14229 -12041
- package/dist/bundle/chunk-JCNKGZQG.js +1068 -0
- package/dist/bundle/{chunk-PZQ2MQFX.js → chunk-JKF7LZBU.js} +6 -6
- package/dist/bundle/{chunk-5R5HGV2J.js → chunk-LD42OGKK.js} +4 -4
- package/dist/bundle/{chunk-3P7HWXDJ.js → chunk-LU2CHHPC.js} +14 -5
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-3JISIGLP.js → chunk-MK4IKICN.js} +2 -2
- package/dist/bundle/{chunk-3S6KZCZ7.js → chunk-NM5GBJME.js} +57 -28
- package/dist/bundle/{chunk-KKMNMQMW.js → chunk-NTHALPDT.js} +2 -2
- package/dist/bundle/{chunk-B6G3TNN4.js → chunk-OG2ONSH6.js} +156 -43
- package/dist/bundle/{chunk-EOUUI5FI.js → chunk-PCC7GWOS.js} +4 -4
- package/dist/bundle/{chunk-ADI5R2MM.js → chunk-QVK7NF3A.js} +51 -51
- package/dist/bundle/{chunk-Q74XVJFT.js → chunk-QYT6HDCL.js} +1 -1
- package/dist/bundle/{chunk-EISV5YWD.js → chunk-RX5GU7GQ.js} +6994 -6232
- package/dist/bundle/{chunk-NYRAW4M5.js → chunk-RZ7KBWDQ.js} +4 -7
- package/dist/bundle/{chunk-V23X3W2W.js → chunk-S4SOS27T.js} +8 -8
- package/dist/bundle/{chunk-V4JEZFW5.js → chunk-SGHF75RQ.js} +2 -2
- package/dist/bundle/{chunk-T5OO7VDT.js → chunk-TAFH5K5D.js} +3900 -3425
- package/dist/bundle/{chunk-QLB3BFSN.js → chunk-TVQBOIWC.js} +1 -1
- package/dist/bundle/{chunk-QLXKWAET.js → chunk-UG66U2T7.js} +88 -21
- package/dist/bundle/{chunk-ZOBRYIUG.js → chunk-URFBZNLU.js} +2 -2
- package/dist/bundle/{chunk-ZQ3WGGKK.js → chunk-UTNK2PFE.js} +13 -13
- package/dist/bundle/{chunk-LVGX7VTD.js → chunk-VG3EQJYV.js} +34 -5
- package/dist/bundle/{chunk-FFHX7VKP.js → chunk-VHD4V64E.js} +1 -1
- package/dist/bundle/{chunk-BAB3ALHZ.js → chunk-VUBSGQ2O.js} +30 -26
- package/dist/bundle/{chunk-UBFDPLFQ.js → chunk-VZDAVZYX.js} +6 -6
- package/dist/bundle/{chunk-QVMAZVSN.js → chunk-WH4T44L3.js} +1 -1
- package/dist/bundle/{chunk-RDKPKS2P.js → chunk-X6436BYW.js} +2 -2
- package/dist/bundle/{chunk-SMFUKHG2.js → chunk-XS5C5TQ7.js} +24 -9
- package/dist/bundle/{chunk-ENEMZAIJ.js → chunk-XTNOBJRP.js} +14 -12
- package/dist/bundle/{chunk-HJLTWT52.js → chunk-YRZXOQOB.js} +2 -2
- package/dist/bundle/{chunk-5IHYZ6ED.js → chunk-ZX5OSZHH.js} +12 -12
- package/dist/bundle/command-contract-JP6SCP7U.js +34 -0
- package/dist/bundle/{command-server-entry-5LKDRLEX.js → command-server-entry-BLSFT3T6.js} +24 -22
- package/dist/bundle/{decode-L4DQDHXA.js → decode-NNLEQU7B.js} +5 -5
- package/dist/bundle/{dispatch-PQSCFHEX.js → dispatch-PRAIGIFS.js} +8 -8
- package/dist/bundle/{echarts-6LES2JIV.js → echarts-XAZHGDOM.js} +2 -2
- package/dist/bundle/{embed-T5MLKX75.js → embed-Q7ZCVSCO.js} +6 -6
- package/dist/bundle/{embedder-56NMRLC5.js → embedder-MVS3PVWQ.js} +9 -9
- package/dist/bundle/{entry-U5GV6Y46.js → entry-XN3ZZAOK.js} +9 -8
- package/dist/bundle/{failure-BX5HJAQE.js → failure-7Y34AUJT.js} +2 -2
- package/dist/bundle/{first-run-ISQ52V3I.js → first-run-G4EFTONI.js} +11 -11
- package/dist/bundle/first-screen-RIDJEPC3.js +32 -0
- package/dist/bundle/{instructions-CJEXDI7E.js → instructions-QDHYYZBU.js} +1 -1
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-QLWTGZW7.js → node-3Y7OVY2U.js} +2 -2
- package/dist/bundle/{node-sqlite-X2C3RR2Q.js → node-sqlite-R2SBROJM.js} +7 -7
- package/dist/bundle/{oauth-VP3KMHLX.js → oauth-WSPWMWTV.js} +7 -7
- package/dist/bundle/{open-GLR5EUZS.js → open-VFLF4HRQ.js} +5 -5
- package/dist/bundle/{openai-6CDCJ5LQ.js → openai-DFCKZZDV.js} +23 -18
- package/dist/bundle/{process-7FABZ3T2.js → process-VZKFAGNP.js} +1 -1
- package/dist/bundle/{program-KUIAHJDX.js → program-2LB3CUZX.js} +86 -67
- package/dist/bundle/{prompt-XPHIZMD2.js → prompt-RVLA2PEY.js} +5 -5
- package/dist/bundle/{proxy-transport-IIB7ZXIS.js → proxy-transport-DP7SIMIC.js} +5 -5
- package/dist/bundle/{recognize-FVFYI3XX.js → recognize-LEKNA3G5.js} +4 -4
- package/dist/bundle/{remote-3AMCG2P4.js → remote-WG5V2I2G.js} +9 -7
- package/dist/bundle/{rerank-XV4E25ML.js → rerank-ONAEQVJ6.js} +7 -7
- package/dist/bundle/{serve-NVSZA4UN.js → serve-BL2X6FZG.js} +14 -14
- package/dist/bundle/{server-MBMPHRJE.js → server-3LSC4BMK.js} +36 -35
- package/dist/bundle/server-7EYEEGJT.js +62 -0
- package/dist/bundle/sqlite-runtime-RQXPRH6C.js +19 -0
- package/dist/bundle/{state-JBMB2QUR.js → state-O7LRA526.js} +6 -6
- package/dist/bundle/store-7C4UAND2.js +276 -0
- package/dist/bundle/{store-T4SCYTY2.js → store-HMJUPK45.js} +15 -13
- package/dist/bundle/store-maintenance-command-I7PSA3SZ.js +52 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/commands/account-removal.d.ts.map +1 -1
- package/dist/commands/account-removal.js +5 -3
- package/dist/commands/account-removal.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +21 -3
- package/dist/commands/session.js.map +1 -1
- package/dist/paths.d.ts +6 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +23 -2
- package/dist/paths.js.map +1 -1
- package/dist/program.d.ts +4 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -2
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/tg-cli/SKILL.md +6 -2
- package/dist/bundle/chunk-I7K4OR5Q.js +0 -265
- package/dist/bundle/chunk-PZJXQMSZ.js +0 -27
- package/dist/bundle/command-contract-HWSWHMO4.js +0 -33
- package/dist/bundle/first-screen-7L4AMZDO.js +0 -31
- package/dist/bundle/server-MHVGYRQZ.js +0 -61
- package/dist/bundle/store-maintenance-command-F7WQMTMP.js +0 -49
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -4,45 +4,47 @@ import {
|
|
|
4
4
|
COMMAND_SERVER_CONCURRENT,
|
|
5
5
|
enterCommandServer,
|
|
6
6
|
serveCommands
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-GUPMDMFM.js";
|
|
8
|
+
import "./chunk-EIGV2JKX.js";
|
|
9
|
+
import "./chunk-WH4T44L3.js";
|
|
9
10
|
import {
|
|
10
11
|
ensureSqlite
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-RZ7KBWDQ.js";
|
|
13
|
+
import "./chunk-VZDAVZYX.js";
|
|
14
|
+
import "./chunk-VHD4V64E.js";
|
|
15
|
+
import "./chunk-7OBSIDBJ.js";
|
|
15
16
|
import {
|
|
16
17
|
commandServerRequest,
|
|
17
18
|
exitCodeSet,
|
|
18
19
|
inCommandServerRequest
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-FHPEUAHQ.js";
|
|
21
|
+
import "./chunk-4TCBRKWQ.js";
|
|
22
|
+
import "./chunk-B252D7V4.js";
|
|
23
|
+
import "./chunk-DYOZ7CUV.js";
|
|
24
|
+
import "./chunk-TVQBOIWC.js";
|
|
25
|
+
import "./chunk-VG3EQJYV.js";
|
|
26
|
+
import "./chunk-3GILMKQ2.js";
|
|
27
|
+
import "./chunk-PCC7GWOS.js";
|
|
25
28
|
import {
|
|
26
29
|
asOwnProcess
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-3S6KZCZ7.js";
|
|
30
|
+
} from "./chunk-6Y6SSZ34.js";
|
|
31
|
+
import "./chunk-77Z3OGAT.js";
|
|
32
|
+
import "./chunk-FUYCAROL.js";
|
|
33
|
+
import "./chunk-XWBPP2HX.js";
|
|
34
|
+
import "./chunk-NTHALPDT.js";
|
|
35
|
+
import "./chunk-NM5GBJME.js";
|
|
34
36
|
import {
|
|
35
37
|
catchCrashes
|
|
36
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
37
39
|
import "./chunk-Y5E2WNWB.js";
|
|
38
40
|
import {
|
|
39
41
|
CliError
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7KCBPAQS.js";
|
|
41
43
|
import {
|
|
42
44
|
__name
|
|
43
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
44
46
|
|
|
45
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
|
|
46
48
|
import { PassThrough } from "node:stream";
|
|
47
49
|
var route = /* @__PURE__ */ __name((stream, sink) => {
|
|
48
50
|
const original = stream.write;
|
|
@@ -3,20 +3,20 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-DI3RJ3MJ.js";
|
|
7
|
+
import "./chunk-NM5GBJME.js";
|
|
8
|
+
import "./chunk-XS5C5TQ7.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7KCBPAQS.js";
|
|
15
15
|
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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
20
20
|
import { spawn } from "node:child_process";
|
|
21
21
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
22
22
|
import { createRequire } from "node:module";
|
|
@@ -14,22 +14,22 @@ import {
|
|
|
14
14
|
parseDescribe,
|
|
15
15
|
shimFiles,
|
|
16
16
|
writeShim
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IX3GUNGV.js";
|
|
18
18
|
import "./chunk-Y5E2WNWB.js";
|
|
19
19
|
import {
|
|
20
20
|
CliError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7KCBPAQS.js";
|
|
22
22
|
import {
|
|
23
23
|
__name,
|
|
24
24
|
__toESM
|
|
25
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
28
28
|
var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
|
|
29
29
|
import { randomUUID } from "node:crypto";
|
|
30
30
|
import { constants } from "node:os";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/path.js
|
|
33
33
|
import { readdirSync, statSync } from "node:fs";
|
|
34
34
|
import { join } from "node:path";
|
|
35
35
|
var variable = /* @__PURE__ */ __name((env, name, platform) => platform === "win32" ? Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1] : env[name], "variable");
|
|
@@ -101,7 +101,7 @@ var findTools = /* @__PURE__ */ __name((search) => {
|
|
|
101
101
|
}, "findTools");
|
|
102
102
|
var isBuiltIn = /* @__PURE__ */ __name((name) => name === "wcat" || BUILT_IN_COMMANDS.includes(name), "isBuiltIn");
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/probe.js
|
|
105
105
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
106
106
|
import { readFileSync } from "node:fs";
|
|
107
107
|
var probeDescribe = /* @__PURE__ */ __name((path, { env, timeoutMs }) => new Promise((resolve) => {
|
|
@@ -149,7 +149,7 @@ var baseVersion = /* @__PURE__ */ __name(() => {
|
|
|
149
149
|
}
|
|
150
150
|
}, "baseVersion");
|
|
151
151
|
|
|
152
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
152
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shortcuts.js
|
|
153
153
|
import { closeSync, openSync, readSync, realpathSync, rmSync } from "node:fs";
|
|
154
154
|
import { basename, dirname } from "node:path";
|
|
155
155
|
var WIRECAT_PACKAGE = /node_modules[\\/]+@wirecat[\\/]/;
|
|
@@ -241,7 +241,7 @@ var removeShortcuts = /* @__PURE__ */ __name((search, names) => listShortcuts(se
|
|
|
241
241
|
return { ...statusOf(shortcut.name, shortcut.program, search), changed: true };
|
|
242
242
|
}), "removeShortcuts");
|
|
243
243
|
|
|
244
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
244
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
245
245
|
var DEFAULT_DESCRIBE_TIMEOUT_MS = 2e3;
|
|
246
246
|
var listTools = /* @__PURE__ */ __name(async (context) => {
|
|
247
247
|
const installed = installedPrograms(context);
|
|
@@ -338,7 +338,7 @@ var runTool = /* @__PURE__ */ __name((path, args, context) => new Promise((resol
|
|
|
338
338
|
});
|
|
339
339
|
}), "runTool");
|
|
340
340
|
var fail = /* @__PURE__ */ __name(async (error, json, context) => {
|
|
341
|
-
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-
|
|
341
|
+
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-7Y34AUJT.js");
|
|
342
342
|
const object = errorObjectOf(error);
|
|
343
343
|
context.stderr.write(`${renderError(object, { cli: "wcat", interactive: !json })}
|
|
344
344
|
`);
|
|
@@ -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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/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,13 +13,13 @@ 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-JKF7LZBU.js";
|
|
17
|
+
import "./chunk-PCC7GWOS.js";
|
|
18
|
+
import "./chunk-NTHALPDT.js";
|
|
19
|
+
import "./chunk-NM5GBJME.js";
|
|
20
|
+
import "./chunk-XS5C5TQ7.js";
|
|
21
21
|
import "./chunk-Y5E2WNWB.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-7KCBPAQS.js";
|
|
23
23
|
import "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
export {
|
|
25
25
|
WARM_IDLE_MS,
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
openSession,
|
|
5
5
|
truncated,
|
|
6
6
|
unit
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-JKF7LZBU.js";
|
|
8
|
+
import "./chunk-PCC7GWOS.js";
|
|
9
|
+
import "./chunk-NTHALPDT.js";
|
|
10
|
+
import "./chunk-NM5GBJME.js";
|
|
11
|
+
import "./chunk-XS5C5TQ7.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7KCBPAQS.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
24
24
|
import { join } from "node:path";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
|
|
27
27
|
var SIZE = 224;
|
|
28
28
|
var MEAN = [0.48145466, 0.4578275, 0.40821073];
|
|
29
29
|
var STD = [0.26862954, 0.26130258, 0.27577711];
|
|
@@ -62,7 +62,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
|
|
|
62
62
|
return pixels;
|
|
63
63
|
}, "preprocess");
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
66
66
|
var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
|
|
67
67
|
const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
|
|
68
68
|
const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
|
|
@@ -4,15 +4,16 @@ import {
|
|
|
4
4
|
firstRunAt,
|
|
5
5
|
openBrowser,
|
|
6
6
|
startCli
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-XTNOBJRP.js";
|
|
8
|
+
import "./chunk-EIGV2JKX.js";
|
|
9
|
+
import "./chunk-RZ7KBWDQ.js";
|
|
10
|
+
import "./chunk-VZDAVZYX.js";
|
|
11
|
+
import "./chunk-VHD4V64E.js";
|
|
12
|
+
import "./chunk-DYOZ7CUV.js";
|
|
13
|
+
import "./chunk-NM5GBJME.js";
|
|
14
|
+
import "./chunk-XS5C5TQ7.js";
|
|
14
15
|
import "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-7KCBPAQS.js";
|
|
16
17
|
import "./chunk-ZVVMGPBJ.js";
|
|
17
18
|
export {
|
|
18
19
|
firstRunAt,
|
|
@@ -5,19 +5,19 @@ 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-
|
|
8
|
+
} from "./chunk-ZX5OSZHH.js";
|
|
9
|
+
import "./chunk-LD42OGKK.js";
|
|
10
|
+
import "./chunk-FIVFP53N.js";
|
|
11
|
+
import "./chunk-S4SOS27T.js";
|
|
12
|
+
import "./chunk-M4OP5ASJ.js";
|
|
13
13
|
import "./chunk-D72URWJE.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-B252D7V4.js";
|
|
15
|
+
import "./chunk-FUYCAROL.js";
|
|
16
|
+
import "./chunk-NTHALPDT.js";
|
|
17
|
+
import "./chunk-NM5GBJME.js";
|
|
18
|
+
import "./chunk-XS5C5TQ7.js";
|
|
19
19
|
import "./chunk-Y5E2WNWB.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-7KCBPAQS.js";
|
|
21
21
|
import "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
export {
|
|
23
23
|
askSetupQuestions,
|
|
@@ -0,0 +1,32 @@
|
|
|
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-INZAZMUF.js";
|
|
8
|
+
import "./chunk-2ABQZVK4.js";
|
|
9
|
+
import "./chunk-7OBSIDBJ.js";
|
|
10
|
+
import "./chunk-FHPEUAHQ.js";
|
|
11
|
+
import "./chunk-4TCBRKWQ.js";
|
|
12
|
+
import "./chunk-B252D7V4.js";
|
|
13
|
+
import "./chunk-DYOZ7CUV.js";
|
|
14
|
+
import "./chunk-TVQBOIWC.js";
|
|
15
|
+
import "./chunk-VG3EQJYV.js";
|
|
16
|
+
import "./chunk-3GILMKQ2.js";
|
|
17
|
+
import "./chunk-PCC7GWOS.js";
|
|
18
|
+
import "./chunk-6Y6SSZ34.js";
|
|
19
|
+
import "./chunk-77Z3OGAT.js";
|
|
20
|
+
import "./chunk-FUYCAROL.js";
|
|
21
|
+
import "./chunk-XWBPP2HX.js";
|
|
22
|
+
import "./chunk-NTHALPDT.js";
|
|
23
|
+
import "./chunk-NM5GBJME.js";
|
|
24
|
+
import "./chunk-XS5C5TQ7.js";
|
|
25
|
+
import "./chunk-Y5E2WNWB.js";
|
|
26
|
+
import "./chunk-7KCBPAQS.js";
|
|
27
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
28
|
+
export {
|
|
29
|
+
WIRECAT_TOOLS,
|
|
30
|
+
firstScreen,
|
|
31
|
+
installHelp
|
|
32
|
+
};
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FIVFP53N.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__toESM
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.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
|
|
16
16
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
17
17
|
var realRun = /* @__PURE__ */ __name((file, args) => {
|
|
18
18
|
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-QYT6HDCL.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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/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,23 +3,23 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X6436BYW.js";
|
|
7
7
|
import {
|
|
8
8
|
TIME_LIMIT_FUNCTION,
|
|
9
9
|
beforeTimeLimit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VHD4V64E.js";
|
|
11
11
|
import {
|
|
12
12
|
refuseOwnerStoreInTests
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-NTHALPDT.js";
|
|
14
|
+
import "./chunk-NM5GBJME.js";
|
|
15
|
+
import "./chunk-XS5C5TQ7.js";
|
|
16
16
|
import "./chunk-Y5E2WNWB.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-7KCBPAQS.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
|
|
23
23
|
import { DatabaseSync } from "node:sqlite";
|
|
24
24
|
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
25
25
|
var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
ownerLogin,
|
|
5
5
|
revokeAll
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-SNEJK4SN.js";
|
|
6
|
+
} from "./chunk-E4HDE5DN.js";
|
|
8
7
|
import "./chunk-5D4AEUVA.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-FSP74THJ.js";
|
|
9
|
+
import "./chunk-6HLB73UN.js";
|
|
10
|
+
import "./chunk-TVQBOIWC.js";
|
|
11
|
+
import "./chunk-NM5GBJME.js";
|
|
12
|
+
import "./chunk-XS5C5TQ7.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7KCBPAQS.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
ownerLogin,
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-VZDAVZYX.js";
|
|
10
|
+
import "./chunk-VHD4V64E.js";
|
|
11
|
+
import "./chunk-NM5GBJME.js";
|
|
12
|
+
import "./chunk-XS5C5TQ7.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7KCBPAQS.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
CAPABILITY_STATEMENTS,
|
|
@@ -3,40 +3,43 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DI3RJ3MJ.js";
|
|
7
|
+
import "./chunk-UTNK2PFE.js";
|
|
7
8
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
OPENAI_URL,
|
|
10
|
+
refuseModelAddress
|
|
11
|
+
} from "./chunk-IN3NAFUN.js";
|
|
12
|
+
import "./chunk-JKF7LZBU.js";
|
|
11
13
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
endpointFetch,
|
|
15
|
+
providerWaitMs
|
|
16
|
+
} from "./chunk-VG3EQJYV.js";
|
|
15
17
|
import {
|
|
16
18
|
OPENAI_TRANSCRIBE_MODEL,
|
|
17
19
|
VAD,
|
|
18
20
|
filesPresent,
|
|
19
21
|
modelsDirectory,
|
|
20
22
|
vadPath
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-PCC7GWOS.js";
|
|
24
|
+
import "./chunk-FUYCAROL.js";
|
|
25
|
+
import "./chunk-NTHALPDT.js";
|
|
23
26
|
import {
|
|
24
27
|
DEFAULT_RETRY,
|
|
25
28
|
backoffMs
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-NM5GBJME.js";
|
|
30
|
+
import "./chunk-XS5C5TQ7.js";
|
|
28
31
|
import "./chunk-Y5E2WNWB.js";
|
|
29
32
|
import {
|
|
30
33
|
CliError
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-7KCBPAQS.js";
|
|
32
35
|
import {
|
|
33
36
|
__name
|
|
34
37
|
} from "./chunk-ZVVMGPBJ.js";
|
|
35
38
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
37
40
|
import { setTimeout as wait } from "node:timers/promises";
|
|
38
41
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
40
43
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
41
44
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
42
45
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -57,7 +60,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
57
60
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
58
61
|
}, "encodeWav");
|
|
59
62
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
63
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
61
64
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
62
65
|
var JOINED_SECONDS = 0.2;
|
|
63
66
|
var PAD_SECONDS = 0.2;
|
|
@@ -105,12 +108,13 @@ var failureOf = /* @__PURE__ */ __name(async (response) => {
|
|
|
105
108
|
return {};
|
|
106
109
|
}
|
|
107
110
|
}, "failureOf");
|
|
111
|
+
var TRANSCRIPTION_TIMEOUT_MS = 6e5;
|
|
108
112
|
var send = /* @__PURE__ */ __name(async (wav, options) => {
|
|
109
|
-
const
|
|
113
|
+
const url = `${(options.baseUrl ?? OPENAI_URL).replace(/\/+$/, "")}/audio/transcriptions`;
|
|
114
|
+
const post = options.fetch ?? endpointFetch(url, TRANSCRIPTION_TIMEOUT_MS);
|
|
110
115
|
const retry = options.retry ?? RETRY;
|
|
111
116
|
const sleep = options.sleep ?? sleeping;
|
|
112
117
|
const random = options.random ?? Math.random;
|
|
113
|
-
const url = `${(options.baseUrl ?? OPENAI_URL).replace(/\/+$/, "")}/audio/transcriptions`;
|
|
114
118
|
for (let attempt = 1; ; attempt++) {
|
|
115
119
|
interrupted(options.signal);
|
|
116
120
|
let response;
|
|
@@ -179,7 +183,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
179
183
|
return pieces;
|
|
180
184
|
}, "piecesOf");
|
|
181
185
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
182
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
186
|
+
const { openSpeechCutter } = await import("./recognize-LEKNA3G5.js");
|
|
183
187
|
return openSpeechCutter(vadModel);
|
|
184
188
|
}, "openCutter");
|
|
185
189
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -188,6 +192,7 @@ var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
|
188
192
|
throw new CliError("validation_error", "a keyword must be a non-empty single line without < or > \u2014 OpenAI refuses the whole request otherwise");
|
|
189
193
|
}, "checkKeywords");
|
|
190
194
|
var transcribeOpenAI = /* @__PURE__ */ __name(async (audio, options) => {
|
|
195
|
+
refuseModelAddress(options.env ?? process.env, options.baseUrl ?? OPENAI_URL, "audio");
|
|
191
196
|
if (!options.apiKey)
|
|
192
197
|
throw new CliError("authentication_error", "no OpenAI key \u2014 `models keys set openai`, or OPENAI_API_KEY", {
|
|
193
198
|
reason: "transcription.no-key"
|
|
@@ -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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/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";
|