@wirecat/tg-cli 0.119.0 → 0.121.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 +27 -3
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-NEQQOANM.js → adapter-GVSBFSBY.js} +62 -58
- package/dist/bundle/{all-profiles-QFT46FTF.js → all-profiles-CTOGU4XR.js} +10 -10
- package/dist/bundle/{anthropic-UJ4RYCWU.js → anthropic-7472H6ES.js} +16 -7
- package/dist/bundle/{app-server-NE3EL5IK.js → app-server-GZWV4NPR.js} +47 -46
- package/dist/bundle/{bot-api-D4H5SCP5.js → bot-api-PPVAKICN.js} +53 -50
- package/dist/bundle/{bot-history-KF2PUMWA.js → bot-history-7YY7MCR4.js} +18 -18
- package/dist/bundle/{bun-F7MH5YKA.js → bun-KCN62RMD.js} +2 -2
- package/dist/bundle/{bun-sqlite-FYDJXUHF.js → bun-sqlite-2BNE56MY.js} +5 -5
- package/dist/bundle/{chunk-23JGV5FQ.js → chunk-24DWSW6H.js} +37 -122
- package/dist/bundle/{chunk-6ERQJRL2.js → chunk-3E35VJME.js} +2 -2
- package/dist/bundle/{chunk-CX2WCEQU.js → chunk-3EGVR7OF.js} +1795 -545
- package/dist/bundle/{chunk-RGU2G3KL.js → chunk-3HNI6GI7.js} +4 -4
- package/dist/bundle/{chunk-RUNFFBJU.js → chunk-4HJCWFPN.js} +119 -107
- package/dist/bundle/{chunk-7C6POLLO.js → chunk-4J34T6IQ.js} +1 -1
- package/dist/bundle/{chunk-QG5U6HCI.js → chunk-4W4EVVL4.js} +4 -4
- package/dist/bundle/{chunk-6K5R3YPN.js → chunk-54KFRAHF.js} +2 -2
- package/dist/bundle/{chunk-ROOUBFUW.js → chunk-5P43K3GL.js} +18950 -17132
- package/dist/bundle/{chunk-OG2CG2GS.js → chunk-6LRKWXCS.js} +17 -17
- package/dist/bundle/{chunk-QD27C3BG.js → chunk-6SQAE7NM.js} +10 -8
- package/dist/bundle/{chunk-IAGX5VFL.js → chunk-7DPWVKYS.js} +4 -4
- package/dist/bundle/{chunk-5EHJWIW4.js → chunk-7I6YVQHW.js} +2 -2
- package/dist/bundle/{chunk-ZEQ7ONPZ.js → chunk-7MXRFFIT.js} +3 -3
- package/dist/bundle/{chunk-3K65KTXD.js → chunk-7UIMMQOV.js} +2 -2
- package/dist/bundle/{chunk-7VUNJDYU.js → chunk-AYDLA27G.js} +4 -4
- package/dist/bundle/{chunk-TKHEVAEG.js → chunk-BJTJBNR7.js} +8 -8
- package/dist/bundle/{chunk-HPQQ76WF.js → chunk-CLMRF6XR.js} +3 -3
- package/dist/bundle/{chunk-D6YTBJY6.js → chunk-CMEWPXKU.js} +1 -1
- package/dist/bundle/{chunk-DQELQ7BL.js → chunk-CPDYPZIG.js} +4525 -4753
- package/dist/bundle/{chunk-QQ3QZFFD.js → chunk-DAK2J3FG.js} +8 -8
- package/dist/bundle/{chunk-S3HAFJVC.js → chunk-DG44ORQ3.js} +86 -29
- package/dist/bundle/{chunk-F223KYWG.js → chunk-ESLV57MC.js} +1 -1
- package/dist/bundle/{chunk-TEZKCH5B.js → chunk-FATTEYZH.js} +2 -2
- package/dist/bundle/{chunk-4AACB23H.js → chunk-FERGNQYA.js} +13 -13
- package/dist/bundle/{chunk-HGMMRT4G.js → chunk-GB55EDOF.js} +2 -2
- package/dist/bundle/chunk-GNGYV5NX.js +116 -0
- package/dist/bundle/{chunk-6OE5I3PR.js → chunk-KKD5ZPGD.js} +6 -6
- package/dist/bundle/{chunk-G3MQOH6Z.js → chunk-KPAUPIC3.js} +3 -3
- package/dist/bundle/chunk-KVW7LCZK.js +109 -0
- package/dist/bundle/{chunk-D4Y2KL5V.js → chunk-LTAHG7BO.js} +4 -4
- package/dist/bundle/{chunk-NDSRND3E.js → chunk-LVGX7VTD.js} +4 -4
- package/dist/bundle/{chunk-Z4CGZAFQ.js → chunk-M47CXY5J.js} +39 -58
- package/dist/bundle/{chunk-L33G5ARH.js → chunk-M73VM67N.js} +1920 -1325
- package/dist/bundle/{chunk-JKKEMVW3.js → chunk-MAPJUOTD.js} +4 -4
- package/dist/bundle/{chunk-5FEEFXJA.js → chunk-MCPOZNWG.js} +1 -1
- package/dist/bundle/{chunk-QTFXYR5W.js → chunk-MKAKM3V7.js} +4 -4
- package/dist/bundle/{chunk-FRW3CWC7.js → chunk-NR7PGYPO.js} +44 -42
- package/dist/bundle/chunk-PLBEUSZP.js +18 -0
- package/dist/bundle/{chunk-FJKP6MMP.js → chunk-QMNUQTA2.js} +2 -2
- package/dist/bundle/{chunk-FQ3C6DFV.js → chunk-QNNUNGPL.js} +3 -3
- package/dist/bundle/{chunk-CIDFV3IT.js → chunk-QQ264PXQ.js} +1 -1
- package/dist/bundle/{chunk-2BAJ6ORN.js → chunk-R6KXHBMW.js} +1 -1
- package/dist/bundle/{chunk-72QLHHSO.js → chunk-RPBO5XL3.js} +21 -19
- package/dist/bundle/{chunk-KBHK5UGL.js → chunk-RX5CJ55S.js} +1 -1
- package/dist/bundle/{chunk-W2BIBPRU.js → chunk-RZX7RDXY.js} +88 -48
- package/dist/bundle/{chunk-HV5YYAJX.js → chunk-S7P5X23R.js} +66 -29
- package/dist/bundle/{chunk-UBCLVM7C.js → chunk-SHIHW2YN.js} +3 -3
- package/dist/bundle/{chunk-YMWPRHXG.js → chunk-SQWTUENZ.js} +2063 -949
- package/dist/bundle/{chunk-XM3P7LLT.js → chunk-T7ONSJAA.js} +2 -2
- package/dist/bundle/{chunk-X5PDWCG7.js → chunk-TEMCXODM.js} +1 -1
- package/dist/bundle/{chunk-V5Z2JO6X.js → chunk-U6HEZPCR.js} +19 -19
- package/dist/bundle/{chunk-65BWMPCI.js → chunk-VAAZL6OD.js} +6 -6
- package/dist/bundle/{chunk-TT4CIXVH.js → chunk-VPNLTNQD.js} +6 -6
- package/dist/bundle/{chunk-SMHLQEE2.js → chunk-VUBZFMGP.js} +2 -2
- package/dist/bundle/{chunk-XDMJVWWR.js → chunk-W77WC6ZK.js} +3 -3
- package/dist/bundle/{chunk-KC4MQRAB.js → chunk-WGGSFGNZ.js} +8 -8
- package/dist/bundle/{chunk-BXIPT2BO.js → chunk-Y4CSR5RP.js} +3 -1
- package/dist/bundle/{chunk-3EQ7USKJ.js → chunk-YMJKHMHX.js} +2 -2
- package/dist/bundle/{chunk-FQZSS3AB.js → chunk-YRY752BB.js} +6 -6
- package/dist/bundle/{chunk-MDLSI3EN.js → chunk-ZSW7LN7T.js} +43 -597
- package/dist/bundle/command-contract-3W73W27G.js +33 -0
- package/dist/bundle/command-server-entry-37PKBJ5A.js +146 -0
- package/dist/bundle/{decode-5N4ERCHC.js → decode-F7KC7WT4.js} +5 -5
- package/dist/bundle/{dispatch-TBGXBDHE.js → dispatch-U2DW6UI7.js} +8 -8
- package/dist/bundle/{echarts-YDEBAMXT.js → echarts-4VYG66GX.js} +2 -2
- package/dist/bundle/{embed-T7H62XFR.js → embed-ENZ6R4HF.js} +6 -6
- package/dist/bundle/{embedder-AW3O2TR3.js → embedder-4CBICMFO.js} +9 -9
- package/dist/bundle/entry-XQ562EDO.js +21 -0
- package/dist/bundle/{failure-AWHPW2HE.js → failure-HJD7S5UA.js} +2 -2
- package/dist/bundle/{first-run-6PBZSRZU.js → first-run-PPXOC6ID.js} +11 -11
- package/dist/bundle/first-screen-JC6BYZYD.js +31 -0
- package/dist/bundle/{instructions-C3NJERO7.js → instructions-XLCMJ5PJ.js} +1 -1
- package/dist/bundle/{mcp-CWLASTLV.js → mcp-7KQUJNFN.js} +2 -2
- package/dist/bundle/{node-P3CIIYWU.js → node-SSAC67R5.js} +2 -2
- package/dist/bundle/{node-sqlite-YVHMNRVA.js → node-sqlite-SUUUSYSZ.js} +6 -6
- package/dist/bundle/{oauth-5OQYA2SV.js → oauth-2ZNHMPEX.js} +7 -7
- package/dist/bundle/{open-YGWUVSU7.js → open-EFNT7V2Q.js} +5 -5
- package/dist/bundle/{openai-U45JBQ6F.js → openai-7STFVJXA.js} +16 -16
- package/dist/bundle/{process-DCYX5EDG.js → process-63F4PNWH.js} +1 -1
- package/dist/bundle/{program-UZBFH2EZ.js → program-C2E3TQNK.js} +70 -67
- package/dist/bundle/{prompt-HPVTPTFI.js → prompt-QPO7EKD5.js} +5 -5
- package/dist/bundle/{proxy-transport-D7MCHGSV.js → proxy-transport-ENU2SJYT.js} +5 -5
- package/dist/bundle/{recognize-IJCPFJ76.js → recognize-MLXEHFYL.js} +4 -4
- package/dist/bundle/{remote-MWDYQWFW.js → remote-DO7FLJEF.js} +7 -7
- package/dist/bundle/{rerank-SXG64475.js → rerank-W3WSBDAM.js} +7 -7
- package/dist/bundle/{serve-KJQENHEH.js → serve-Z3TOTEMQ.js} +14 -14
- package/dist/bundle/{server-MXVXZWN6.js → server-BYSOJCUA.js} +36 -36
- package/dist/bundle/server-IRUVLXD4.js +61 -0
- package/dist/bundle/{state-CKKJWH27.js → state-PKRPBCMY.js} +6 -6
- package/dist/bundle/{store-R3BE4V56.js → store-Y4G7CNJT.js} +13 -13
- package/dist/bundle/store-maintenance-command-PHK43OSM.js +49 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-7TGMZRBE.js +0 -33
- package/dist/bundle/entry-L2LJ2VPY.js +0 -18
- package/dist/bundle/first-screen-UKCD7D2R.js +0 -31
- package/dist/bundle/server-RTMCRKQF.js +0 -60
- package/dist/bundle/store-maintenance-command-KDGBSBNU.js +0 -49
- /package/dist/bundle/{chunk-DWX4DE2I.js → chunk-YVNHQFLC.js} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
SCHEMA_DIALECT,
|
|
5
|
+
commandContract,
|
|
6
|
+
commandPathOf,
|
|
7
|
+
findCommand,
|
|
8
|
+
outputOf
|
|
9
|
+
} from "./chunk-LTAHG7BO.js";
|
|
10
|
+
import "./chunk-CPDYPZIG.js";
|
|
11
|
+
import "./chunk-KPAUPIC3.js";
|
|
12
|
+
import "./chunk-CMEWPXKU.js";
|
|
13
|
+
import "./chunk-6SQAE7NM.js";
|
|
14
|
+
import "./chunk-SHIHW2YN.js";
|
|
15
|
+
import "./chunk-3E35VJME.js";
|
|
16
|
+
import "./chunk-3EGVR7OF.js";
|
|
17
|
+
import "./chunk-7MXRFFIT.js";
|
|
18
|
+
import "./chunk-YRY752BB.js";
|
|
19
|
+
import "./chunk-AYDLA27G.js";
|
|
20
|
+
import "./chunk-54KFRAHF.js";
|
|
21
|
+
import "./chunk-YVNHQFLC.js";
|
|
22
|
+
import "./chunk-U6HEZPCR.js";
|
|
23
|
+
import "./chunk-WGGSFGNZ.js";
|
|
24
|
+
import "./chunk-Y5E2WNWB.js";
|
|
25
|
+
import "./chunk-VUBZFMGP.js";
|
|
26
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
27
|
+
export {
|
|
28
|
+
SCHEMA_DIALECT,
|
|
29
|
+
commandContract,
|
|
30
|
+
commandPathOf,
|
|
31
|
+
findCommand,
|
|
32
|
+
outputOf
|
|
33
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
inCommandServerRequest,
|
|
5
|
+
refuseInCommandServer,
|
|
6
|
+
serveCommands
|
|
7
|
+
} from "./chunk-GNGYV5NX.js";
|
|
8
|
+
import "./chunk-PLBEUSZP.js";
|
|
9
|
+
import {
|
|
10
|
+
ensureSqlite
|
|
11
|
+
} from "./chunk-KVW7LCZK.js";
|
|
12
|
+
import "./chunk-VPNLTNQD.js";
|
|
13
|
+
import "./chunk-Y4CSR5RP.js";
|
|
14
|
+
import "./chunk-LTAHG7BO.js";
|
|
15
|
+
import "./chunk-CPDYPZIG.js";
|
|
16
|
+
import "./chunk-KPAUPIC3.js";
|
|
17
|
+
import "./chunk-CMEWPXKU.js";
|
|
18
|
+
import "./chunk-6SQAE7NM.js";
|
|
19
|
+
import "./chunk-SHIHW2YN.js";
|
|
20
|
+
import "./chunk-3E35VJME.js";
|
|
21
|
+
import {
|
|
22
|
+
useAsProcessRun
|
|
23
|
+
} from "./chunk-3EGVR7OF.js";
|
|
24
|
+
import "./chunk-7MXRFFIT.js";
|
|
25
|
+
import "./chunk-YRY752BB.js";
|
|
26
|
+
import "./chunk-AYDLA27G.js";
|
|
27
|
+
import "./chunk-54KFRAHF.js";
|
|
28
|
+
import "./chunk-YVNHQFLC.js";
|
|
29
|
+
import "./chunk-U6HEZPCR.js";
|
|
30
|
+
import {
|
|
31
|
+
catchCrashes
|
|
32
|
+
} from "./chunk-WGGSFGNZ.js";
|
|
33
|
+
import "./chunk-Y5E2WNWB.js";
|
|
34
|
+
import {
|
|
35
|
+
CliError
|
|
36
|
+
} from "./chunk-VUBZFMGP.js";
|
|
37
|
+
import {
|
|
38
|
+
__name
|
|
39
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
40
|
+
|
|
41
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
|
|
42
|
+
import { PassThrough } from "node:stream";
|
|
43
|
+
var route = /* @__PURE__ */ __name((stream, sink) => {
|
|
44
|
+
const original = stream.write;
|
|
45
|
+
stream.write = ((chunk, encoding, callback) => {
|
|
46
|
+
sink()(typeof chunk === "string" ? Buffer.from(chunk, typeof encoding === "string" ? encoding : "utf8") : Buffer.from(chunk));
|
|
47
|
+
const done = typeof encoding === "function" ? encoding : callback;
|
|
48
|
+
if (done)
|
|
49
|
+
process.nextTick(done);
|
|
50
|
+
return true;
|
|
51
|
+
});
|
|
52
|
+
return () => {
|
|
53
|
+
stream.write = original;
|
|
54
|
+
};
|
|
55
|
+
}, "route");
|
|
56
|
+
var closedStdin = /* @__PURE__ */ __name(() => {
|
|
57
|
+
const stdin = new PassThrough();
|
|
58
|
+
stdin.end();
|
|
59
|
+
return stdin;
|
|
60
|
+
}, "closedStdin");
|
|
61
|
+
var useStdin = /* @__PURE__ */ __name((stdin) => Object.defineProperty(process, "stdin", { value: stdin, configurable: true, enumerable: true, writable: true }), "useStdin");
|
|
62
|
+
var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commanderExit }) => {
|
|
63
|
+
const release = catchCrashes({
|
|
64
|
+
cli: entry.app.command,
|
|
65
|
+
interactive: false,
|
|
66
|
+
...entry.reasons ? { reasons: entry.reasons } : {},
|
|
67
|
+
target: io.signals
|
|
68
|
+
});
|
|
69
|
+
const stopper = new AbortController();
|
|
70
|
+
const stop = /* @__PURE__ */ __name(() => stopper.abort(new CliError("cancelled", "the command server was stopped", { retryable: false })), "stop");
|
|
71
|
+
const protocol = io.stdout.write.bind(io.stdout);
|
|
72
|
+
const ownStderr = io.stderr.write.bind(io.stderr);
|
|
73
|
+
const toStderr = /* @__PURE__ */ __name((chunk) => {
|
|
74
|
+
ownStderr(chunk);
|
|
75
|
+
}, "toStderr");
|
|
76
|
+
let current;
|
|
77
|
+
const unrouteOut = route(process.stdout, () => current ? (chunk) => current?.stdout.push(chunk) : toStderr);
|
|
78
|
+
const unrouteErr = route(process.stderr, () => current ? (chunk) => current?.stderr.push(chunk) : toStderr);
|
|
79
|
+
const stdin = Object.getOwnPropertyDescriptor(process, "stdin");
|
|
80
|
+
const requests = io.stdin;
|
|
81
|
+
useStdin(closedStdin());
|
|
82
|
+
io.signals.on("SIGINT", stop).on("SIGTERM", stop);
|
|
83
|
+
io.stdout.on("error", stop);
|
|
84
|
+
const run = /* @__PURE__ */ __name(async (argv) => {
|
|
85
|
+
const stdout = [];
|
|
86
|
+
const stderr = [];
|
|
87
|
+
current = { stdout, stderr };
|
|
88
|
+
process.exitCode = void 0;
|
|
89
|
+
useAsProcessRun(void 0);
|
|
90
|
+
const input = closedStdin();
|
|
91
|
+
useStdin(input);
|
|
92
|
+
const requestIo = { ...io, argv: [...io.argv.slice(0, 2), ...argv], stdin: input };
|
|
93
|
+
const context = {
|
|
94
|
+
args: argv,
|
|
95
|
+
env: io.env,
|
|
96
|
+
tty: false,
|
|
97
|
+
signal: stopper.signal,
|
|
98
|
+
atStart: /* @__PURE__ */ __name(async (command) => {
|
|
99
|
+
refuseInCommandServer(command, entry.app.command);
|
|
100
|
+
await firstRunAt(entry, requestIo, () => true)(command);
|
|
101
|
+
}, "atStart"),
|
|
102
|
+
ask: /* @__PURE__ */ __name(async () => false, "ask"),
|
|
103
|
+
openBrowser: /* @__PURE__ */ __name(async () => void 0, "openBrowser"),
|
|
104
|
+
outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed")
|
|
105
|
+
};
|
|
106
|
+
let code;
|
|
107
|
+
try {
|
|
108
|
+
code = await inCommandServerRequest(async () => {
|
|
109
|
+
try {
|
|
110
|
+
const returned = await entry.run(context);
|
|
111
|
+
return typeof returned === "number" ? returned : Number(process.exitCode ?? 0);
|
|
112
|
+
} catch (error) {
|
|
113
|
+
return commanderExit(error) ?? entry.fail(error, context);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
} finally {
|
|
117
|
+
current = void 0;
|
|
118
|
+
process.exitCode = void 0;
|
|
119
|
+
}
|
|
120
|
+
return { code, stdout: Buffer.concat(stdout).toString("utf8"), stderr: Buffer.concat(stderr).toString("utf8") };
|
|
121
|
+
}, "run");
|
|
122
|
+
try {
|
|
123
|
+
if (entry.sqlite)
|
|
124
|
+
await ensureSqlite();
|
|
125
|
+
await serveCommands({
|
|
126
|
+
input: requests,
|
|
127
|
+
write: /* @__PURE__ */ __name((line) => new Promise((resolve) => protocol(line) ? resolve() : io.stdout.once("drain", resolve)), "write"),
|
|
128
|
+
run,
|
|
129
|
+
cli: entry.app.command,
|
|
130
|
+
version: entry.app.version,
|
|
131
|
+
signal: stopper.signal
|
|
132
|
+
});
|
|
133
|
+
io.setExitCode(0);
|
|
134
|
+
} finally {
|
|
135
|
+
io.signals.off("SIGINT", stop).off("SIGTERM", stop);
|
|
136
|
+
unrouteOut();
|
|
137
|
+
unrouteErr();
|
|
138
|
+
if (stdin)
|
|
139
|
+
Object.defineProperty(process, "stdin", stdin);
|
|
140
|
+
requests.destroy?.();
|
|
141
|
+
release();
|
|
142
|
+
}
|
|
143
|
+
}, "serveEntry");
|
|
144
|
+
export {
|
|
145
|
+
serveEntry
|
|
146
|
+
};
|
|
@@ -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-MAPJUOTD.js";
|
|
7
|
+
import "./chunk-U6HEZPCR.js";
|
|
8
|
+
import "./chunk-WGGSFGNZ.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-VUBZFMGP.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.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/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-4W4EVVL4.js";
|
|
18
18
|
import "./chunk-Y5E2WNWB.js";
|
|
19
19
|
import {
|
|
20
20
|
CliError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VUBZFMGP.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.93.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.93.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.93.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.93.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.93.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-HJD7S5UA.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.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/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.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/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-KKD5ZPGD.js";
|
|
17
|
+
import "./chunk-AYDLA27G.js";
|
|
18
|
+
import "./chunk-54KFRAHF.js";
|
|
19
|
+
import "./chunk-U6HEZPCR.js";
|
|
20
|
+
import "./chunk-WGGSFGNZ.js";
|
|
21
21
|
import "./chunk-Y5E2WNWB.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-VUBZFMGP.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-KKD5ZPGD.js";
|
|
8
|
+
import "./chunk-AYDLA27G.js";
|
|
9
|
+
import "./chunk-54KFRAHF.js";
|
|
10
|
+
import "./chunk-U6HEZPCR.js";
|
|
11
|
+
import "./chunk-WGGSFGNZ.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-VUBZFMGP.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.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/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.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/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.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/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");
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
firstRunAt,
|
|
5
|
+
openBrowser,
|
|
6
|
+
startCli
|
|
7
|
+
} from "./chunk-24DWSW6H.js";
|
|
8
|
+
import "./chunk-KVW7LCZK.js";
|
|
9
|
+
import "./chunk-VPNLTNQD.js";
|
|
10
|
+
import "./chunk-Y4CSR5RP.js";
|
|
11
|
+
import "./chunk-3E35VJME.js";
|
|
12
|
+
import "./chunk-U6HEZPCR.js";
|
|
13
|
+
import "./chunk-WGGSFGNZ.js";
|
|
14
|
+
import "./chunk-Y5E2WNWB.js";
|
|
15
|
+
import "./chunk-VUBZFMGP.js";
|
|
16
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
17
|
+
export {
|
|
18
|
+
firstRunAt,
|
|
19
|
+
openBrowser,
|
|
20
|
+
startCli
|
|
21
|
+
};
|
|
@@ -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-
|
|
13
|
-
import "./chunk-FQZSS3AB.js";
|
|
14
|
-
import "./chunk-6K5R3YPN.js";
|
|
15
|
-
import "./chunk-KBHK5UGL.js";
|
|
8
|
+
} from "./chunk-6LRKWXCS.js";
|
|
9
|
+
import "./chunk-7DPWVKYS.js";
|
|
10
|
+
import "./chunk-MCPOZNWG.js";
|
|
11
|
+
import "./chunk-DAK2J3FG.js";
|
|
12
|
+
import "./chunk-RX5CJ55S.js";
|
|
16
13
|
import "./chunk-D72URWJE.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-SHIHW2YN.js";
|
|
15
|
+
import "./chunk-YRY752BB.js";
|
|
16
|
+
import "./chunk-54KFRAHF.js";
|
|
17
|
+
import "./chunk-U6HEZPCR.js";
|
|
18
|
+
import "./chunk-WGGSFGNZ.js";
|
|
19
19
|
import "./chunk-Y5E2WNWB.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-VUBZFMGP.js";
|
|
21
21
|
import "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
export {
|
|
23
23
|
askSetupQuestions,
|
|
@@ -0,0 +1,31 @@
|
|
|
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-BJTJBNR7.js";
|
|
8
|
+
import "./chunk-2ABQZVK4.js";
|
|
9
|
+
import "./chunk-LTAHG7BO.js";
|
|
10
|
+
import "./chunk-CPDYPZIG.js";
|
|
11
|
+
import "./chunk-KPAUPIC3.js";
|
|
12
|
+
import "./chunk-CMEWPXKU.js";
|
|
13
|
+
import "./chunk-6SQAE7NM.js";
|
|
14
|
+
import "./chunk-SHIHW2YN.js";
|
|
15
|
+
import "./chunk-3E35VJME.js";
|
|
16
|
+
import "./chunk-3EGVR7OF.js";
|
|
17
|
+
import "./chunk-7MXRFFIT.js";
|
|
18
|
+
import "./chunk-YRY752BB.js";
|
|
19
|
+
import "./chunk-AYDLA27G.js";
|
|
20
|
+
import "./chunk-54KFRAHF.js";
|
|
21
|
+
import "./chunk-YVNHQFLC.js";
|
|
22
|
+
import "./chunk-U6HEZPCR.js";
|
|
23
|
+
import "./chunk-WGGSFGNZ.js";
|
|
24
|
+
import "./chunk-Y5E2WNWB.js";
|
|
25
|
+
import "./chunk-VUBZFMGP.js";
|
|
26
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
27
|
+
export {
|
|
28
|
+
WIRECAT_TOOLS,
|
|
29
|
+
firstScreen,
|
|
30
|
+
installHelp
|
|
31
|
+
};
|
|
@@ -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-MCPOZNWG.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.93.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-TEMCXODM.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.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/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,20 +3,20 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YMJKHMHX.js";
|
|
7
7
|
import {
|
|
8
8
|
TIME_LIMIT_FUNCTION,
|
|
9
9
|
beforeTimeLimit
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-Y4CSR5RP.js";
|
|
11
|
+
import "./chunk-U6HEZPCR.js";
|
|
12
|
+
import "./chunk-WGGSFGNZ.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-VUBZFMGP.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.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
|
|
20
20
|
import { DatabaseSync } from "node:sqlite";
|
|
21
21
|
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
22
22
|
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-
|
|
6
|
+
} from "./chunk-VAAZL6OD.js";
|
|
7
|
+
import "./chunk-3HNI6GI7.js";
|
|
7
8
|
import "./chunk-5D4AEUVA.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-KC4MQRAB.js";
|
|
9
|
+
import "./chunk-W77WC6ZK.js";
|
|
10
|
+
import "./chunk-CMEWPXKU.js";
|
|
11
|
+
import "./chunk-U6HEZPCR.js";
|
|
12
|
+
import "./chunk-WGGSFGNZ.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-VUBZFMGP.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-VPNLTNQD.js";
|
|
10
|
+
import "./chunk-Y4CSR5RP.js";
|
|
11
|
+
import "./chunk-U6HEZPCR.js";
|
|
12
|
+
import "./chunk-WGGSFGNZ.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-VUBZFMGP.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
CAPABILITY_STATEMENTS,
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
providerWaitMs
|
|
5
|
-
} from "./chunk-NDSRND3E.js";
|
|
6
3
|
import {
|
|
7
4
|
SAMPLE_RATE,
|
|
8
5
|
toModelRate
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import
|
|
6
|
+
} from "./chunk-MAPJUOTD.js";
|
|
7
|
+
import {
|
|
8
|
+
providerWaitMs
|
|
9
|
+
} from "./chunk-LVGX7VTD.js";
|
|
10
|
+
import "./chunk-FERGNQYA.js";
|
|
11
11
|
import {
|
|
12
12
|
OPENAI_URL
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-QNNUNGPL.js";
|
|
14
|
+
import "./chunk-KKD5ZPGD.js";
|
|
15
15
|
import {
|
|
16
16
|
OPENAI_TRANSCRIBE_MODEL,
|
|
17
17
|
VAD,
|
|
18
18
|
filesPresent,
|
|
19
19
|
modelsDirectory,
|
|
20
20
|
vadPath
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-AYDLA27G.js";
|
|
22
|
+
import "./chunk-54KFRAHF.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_RETRY,
|
|
25
25
|
backoffMs
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-U6HEZPCR.js";
|
|
27
|
+
import "./chunk-WGGSFGNZ.js";
|
|
28
28
|
import "./chunk-Y5E2WNWB.js";
|
|
29
29
|
import {
|
|
30
30
|
CliError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VUBZFMGP.js";
|
|
32
32
|
import {
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
37
37
|
import { setTimeout as wait } from "node:timers/promises";
|
|
38
38
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
40
40
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
41
41
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
42
42
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -57,7 +57,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
57
57
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
58
58
|
}, "encodeWav");
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
61
61
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
62
62
|
var JOINED_SECONDS = 0.2;
|
|
63
63
|
var PAD_SECONDS = 0.2;
|
|
@@ -179,7 +179,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
179
179
|
return pieces;
|
|
180
180
|
}, "piecesOf");
|
|
181
181
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
182
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
182
|
+
const { openSpeechCutter } = await import("./recognize-MLXEHFYL.js");
|
|
183
183
|
return openSpeechCutter(vadModel);
|
|
184
184
|
}, "openCutter");
|
|
185
185
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|