@wirecat/tg-cli 0.121.0 → 0.122.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-GVSBFSBY.js → adapter-ZI57T2L5.js} +41 -41
- package/dist/bundle/{all-profiles-CTOGU4XR.js → all-profiles-7VXJF42C.js} +6 -6
- package/dist/bundle/{anthropic-7472H6ES.js → anthropic-DKRXIWVV.js} +2 -2
- package/dist/bundle/{app-server-GZWV4NPR.js → app-server-F5MKHZ7S.js} +37 -37
- package/dist/bundle/{bot-api-PPVAKICN.js → bot-api-F24NWJT3.js} +42 -42
- package/dist/bundle/{bot-history-7YY7MCR4.js → bot-history-U3WM3A7S.js} +12 -12
- package/dist/bundle/{bun-KCN62RMD.js → bun-OMTJAXGK.js} +2 -2
- package/dist/bundle/{bun-sqlite-2BNE56MY.js → bun-sqlite-HSYLO46A.js} +2 -2
- package/dist/bundle/{chunk-7MXRFFIT.js → chunk-27SVHRHV.js} +2 -2
- package/dist/bundle/{chunk-6SQAE7NM.js → chunk-2FXA32RJ.js} +6 -6
- package/dist/bundle/{chunk-KPAUPIC3.js → chunk-2UHANFLM.js} +2 -2
- package/dist/bundle/{chunk-24DWSW6H.js → chunk-33ELXJRR.js} +11 -10
- package/dist/bundle/{chunk-3EGVR7OF.js → chunk-4MFMUBHH.js} +95 -79
- package/dist/bundle/{chunk-SHIHW2YN.js → chunk-4N2WJYLE.js} +2 -2
- package/dist/bundle/{chunk-SQWTUENZ.js → chunk-6DLRATDC.js} +242 -239
- package/dist/bundle/{chunk-QQ264PXQ.js → chunk-6LMEIELG.js} +1 -1
- package/dist/bundle/{chunk-AYDLA27G.js → chunk-7FWU4RON.js} +3 -3
- package/dist/bundle/{chunk-KKD5ZPGD.js → chunk-7GCVON7M.js} +5 -5
- package/dist/bundle/{chunk-TEMCXODM.js → chunk-7X6YLKTK.js} +1 -1
- package/dist/bundle/{chunk-ESLV57MC.js → chunk-ALW7ROTM.js} +1 -1
- package/dist/bundle/{chunk-MAPJUOTD.js → chunk-ARKB3M5X.js} +3 -3
- package/dist/bundle/{chunk-GB55EDOF.js → chunk-C5CB6RIX.js} +1 -1
- package/dist/bundle/{chunk-S7P5X23R.js → chunk-CB6AHU6H.js} +27 -9
- package/dist/bundle/{chunk-YMJKHMHX.js → chunk-CW3C7FSO.js} +1 -1
- package/dist/bundle/{chunk-QNNUNGPL.js → chunk-D3ODL4P7.js} +2 -2
- package/dist/bundle/{chunk-T7ONSJAA.js → chunk-DCGGZUNJ.js} +2 -2
- package/dist/bundle/{chunk-3HNI6GI7.js → chunk-DDSAJKPO.js} +4 -4
- package/dist/bundle/{chunk-7UIMMQOV.js → chunk-DTTONQW7.js} +1 -1
- package/dist/bundle/{chunk-VPNLTNQD.js → chunk-E3MFMMVY.js} +5 -5
- package/dist/bundle/{chunk-W77WC6ZK.js → chunk-FHWUOFWX.js} +2 -2
- package/dist/bundle/{chunk-5P43K3GL.js → chunk-FYHFAOPM.js} +1505 -1014
- package/dist/bundle/{chunk-ZSW7LN7T.js → chunk-FZKHFTKH.js} +13 -13
- package/dist/bundle/{chunk-CPDYPZIG.js → chunk-GJBGZQHN.js} +177 -151
- package/dist/bundle/{chunk-3E35VJME.js → chunk-GJFICFQB.js} +1 -1
- package/dist/bundle/{chunk-YRY752BB.js → chunk-HAR76KJG.js} +4 -4
- package/dist/bundle/{chunk-CLMRF6XR.js → chunk-LQRZUNYF.js} +2 -2
- package/dist/bundle/{chunk-LTAHG7BO.js → chunk-MFWWZ6XL.js} +2 -2
- package/dist/bundle/{chunk-NR7PGYPO.js → chunk-N7WDVH2O.js} +28 -28
- package/dist/bundle/{chunk-KVW7LCZK.js → chunk-NE3EGYPD.js} +3 -3
- package/dist/bundle/{chunk-RPBO5XL3.js → chunk-NU4RMUMQ.js} +10 -10
- package/dist/bundle/{chunk-CMEWPXKU.js → chunk-O5A4IS2D.js} +1 -1
- package/dist/bundle/{chunk-M47CXY5J.js → chunk-PG3V225O.js} +21 -21
- package/dist/bundle/{chunk-DAK2J3FG.js → chunk-QROAXWDU.js} +7 -7
- package/dist/bundle/{chunk-4HJCWFPN.js → chunk-R2IW6JBV.js} +46 -46
- package/dist/bundle/{chunk-FERGNQYA.js → chunk-RFFU6KQ5.js} +12 -12
- package/dist/bundle/{chunk-M73VM67N.js → chunk-SODUFMDW.js} +727 -382
- package/dist/bundle/{chunk-4J34T6IQ.js → chunk-TKJZENAZ.js} +1 -1
- package/dist/bundle/{chunk-QMNUQTA2.js → chunk-UGEYQWEO.js} +1 -1
- package/dist/bundle/chunk-V4BPS7MH.js +185 -0
- package/dist/bundle/{chunk-6LRKWXCS.js → chunk-VC6J7X76.js} +10 -10
- package/dist/bundle/{chunk-MKAKM3V7.js → chunk-VDFEWSCS.js} +2 -2
- package/dist/bundle/{chunk-Y4CSR5RP.js → chunk-VQL4RVXZ.js} +1 -1
- package/dist/bundle/{chunk-R6KXHBMW.js → chunk-W34QQMBK.js} +1 -1
- package/dist/bundle/{chunk-54KFRAHF.js → chunk-Y52T5EMB.js} +1 -1
- package/dist/bundle/{chunk-VAAZL6OD.js → chunk-Y74WJL3M.js} +2 -2
- package/dist/bundle/{chunk-PLBEUSZP.js → chunk-YDMKP7PO.js} +1 -1
- package/dist/bundle/{chunk-RZX7RDXY.js → chunk-YFEH7OWG.js} +12 -12
- package/dist/bundle/{chunk-DG44ORQ3.js → chunk-ZKHXWSKD.js} +4 -4
- package/dist/bundle/{chunk-BJTJBNR7.js → chunk-ZNPRTCUO.js} +6 -6
- package/dist/bundle/{command-contract-3W73W27G.js → command-contract-247AKZTE.js} +12 -12
- package/dist/bundle/{command-server-entry-37PKBJ5A.js → command-server-entry-N32NX4QW.js} +67 -51
- package/dist/bundle/{decode-F7KC7WT4.js → decode-ZKJWSFXF.js} +2 -2
- package/dist/bundle/{echarts-4VYG66GX.js → echarts-QLVLIP73.js} +2 -2
- package/dist/bundle/{embed-ENZ6R4HF.js → embed-LC6K7P3S.js} +3 -3
- package/dist/bundle/{embedder-4CBICMFO.js → embedder-6C3OQBOV.js} +6 -6
- package/dist/bundle/{entry-XQ562EDO.js → entry-5H6LB3MP.js} +5 -5
- package/dist/bundle/{first-run-PPXOC6ID.js → first-run-IOYQ4XQK.js} +5 -5
- package/dist/bundle/{first-screen-JC6BYZYD.js → first-screen-NVK7PFX4.js} +13 -13
- package/dist/bundle/{instructions-XLCMJ5PJ.js → instructions-SZUMEDY3.js} +1 -1
- package/dist/bundle/{node-SSAC67R5.js → node-V76RRFIA.js} +2 -2
- package/dist/bundle/{node-sqlite-SUUUSYSZ.js → node-sqlite-2DTVOT7L.js} +3 -3
- package/dist/bundle/{oauth-2ZNHMPEX.js → oauth-CT7EBDRY.js} +4 -4
- package/dist/bundle/{open-EFNT7V2Q.js → open-G3VHOOMV.js} +2 -2
- package/dist/bundle/{openai-7STFVJXA.js → openai-F4K7MVTZ.js} +10 -10
- package/dist/bundle/{process-63F4PNWH.js → process-XH3KEHSF.js} +1 -1
- package/dist/bundle/{program-C2E3TQNK.js → program-FLGIHTHM.js} +44 -44
- package/dist/bundle/{prompt-QPO7EKD5.js → prompt-JWQ6UQ6R.js} +2 -2
- package/dist/bundle/{recognize-MLXEHFYL.js → recognize-Z26T3SYD.js} +1 -1
- package/dist/bundle/{remote-DO7FLJEF.js → remote-7KHT6V3O.js} +4 -4
- package/dist/bundle/{rerank-W3WSBDAM.js → rerank-6QVI74QY.js} +4 -4
- package/dist/bundle/{serve-Z3TOTEMQ.js → serve-WYDZTONY.js} +6 -6
- package/dist/bundle/server-UXQT7LZT.js +61 -0
- package/dist/bundle/{server-BYSOJCUA.js → server-Y4J2NCFA.js} +28 -28
- package/dist/bundle/{state-PKRPBCMY.js → state-YCXBKOD2.js} +3 -3
- package/dist/bundle/{store-Y4G7CNJT.js → store-QECSDJRP.js} +9 -9
- package/dist/bundle/store-maintenance-command-5YW6TRJA.js +49 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-GNGYV5NX.js +0 -116
- package/dist/bundle/server-IRUVLXD4.js +0 -61
- package/dist/bundle/store-maintenance-command-PHK43OSM.js +0 -49
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
COMMAND_SERVER_CONCURRENT,
|
|
5
|
+
enterCommandServer,
|
|
6
6
|
serveCommands
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-V4BPS7MH.js";
|
|
8
|
+
import "./chunk-YDMKP7PO.js";
|
|
9
9
|
import {
|
|
10
10
|
ensureSqlite
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
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";
|
|
11
|
+
} from "./chunk-NE3EGYPD.js";
|
|
12
|
+
import "./chunk-E3MFMMVY.js";
|
|
13
|
+
import "./chunk-VQL4RVXZ.js";
|
|
14
|
+
import "./chunk-MFWWZ6XL.js";
|
|
21
15
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
16
|
+
commandServerRequest,
|
|
17
|
+
exitCodeSet,
|
|
18
|
+
inCommandServerRequest
|
|
19
|
+
} from "./chunk-GJBGZQHN.js";
|
|
20
|
+
import "./chunk-2UHANFLM.js";
|
|
21
|
+
import "./chunk-O5A4IS2D.js";
|
|
22
|
+
import "./chunk-2FXA32RJ.js";
|
|
23
|
+
import "./chunk-4N2WJYLE.js";
|
|
24
|
+
import "./chunk-GJFICFQB.js";
|
|
25
|
+
import {
|
|
26
|
+
asOwnProcess
|
|
27
|
+
} from "./chunk-4MFMUBHH.js";
|
|
28
|
+
import "./chunk-27SVHRHV.js";
|
|
29
|
+
import "./chunk-HAR76KJG.js";
|
|
30
|
+
import "./chunk-7FWU4RON.js";
|
|
31
|
+
import "./chunk-Y52T5EMB.js";
|
|
28
32
|
import "./chunk-YVNHQFLC.js";
|
|
29
33
|
import "./chunk-U6HEZPCR.js";
|
|
30
34
|
import {
|
|
@@ -38,7 +42,7 @@ import {
|
|
|
38
42
|
__name
|
|
39
43
|
} from "./chunk-ZVVMGPBJ.js";
|
|
40
44
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
|
|
42
46
|
import { PassThrough } from "node:stream";
|
|
43
47
|
var route = /* @__PURE__ */ __name((stream, sink) => {
|
|
44
48
|
const original = stream.write;
|
|
@@ -58,7 +62,21 @@ var closedStdin = /* @__PURE__ */ __name(() => {
|
|
|
58
62
|
stdin.end();
|
|
59
63
|
return stdin;
|
|
60
64
|
}, "closedStdin");
|
|
61
|
-
var useStdin = /* @__PURE__ */ __name((
|
|
65
|
+
var useStdin = /* @__PURE__ */ __name((outside) => Object.defineProperty(process, "stdin", {
|
|
66
|
+
get: /* @__PURE__ */ __name(() => commandServerRequest()?.stdin ?? outside, "get"),
|
|
67
|
+
configurable: true,
|
|
68
|
+
enumerable: true
|
|
69
|
+
}), "useStdin");
|
|
70
|
+
var roomFor = /* @__PURE__ */ __name((runs) => {
|
|
71
|
+
const emitters = [process, process.stdout, process.stderr];
|
|
72
|
+
const before = emitters.map((emitter) => emitter.getMaxListeners());
|
|
73
|
+
for (const emitter of emitters)
|
|
74
|
+
emitter.setMaxListeners(emitter.getMaxListeners() + 2 * runs);
|
|
75
|
+
return () => {
|
|
76
|
+
for (const [at, emitter] of emitters.entries())
|
|
77
|
+
emitter.setMaxListeners(before[at]);
|
|
78
|
+
};
|
|
79
|
+
}, "roomFor");
|
|
62
80
|
var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commanderExit }) => {
|
|
63
81
|
const release = catchCrashes({
|
|
64
82
|
cli: entry.app.command,
|
|
@@ -73,51 +91,47 @@ var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commande
|
|
|
73
91
|
const toStderr = /* @__PURE__ */ __name((chunk) => {
|
|
74
92
|
ownStderr(chunk);
|
|
75
93
|
}, "toStderr");
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
94
|
+
const sink = /* @__PURE__ */ __name((pick) => () => {
|
|
95
|
+
const request = commandServerRequest();
|
|
96
|
+
return request ? (chunk) => pick(request).push(chunk) : toStderr;
|
|
97
|
+
}, "sink");
|
|
98
|
+
const unrouteOut = route(process.stdout, sink((request) => request.stdout));
|
|
99
|
+
const unrouteErr = route(process.stderr, sink((request) => request.stderr));
|
|
79
100
|
const stdin = Object.getOwnPropertyDescriptor(process, "stdin");
|
|
80
101
|
const requests = io.stdin;
|
|
81
102
|
useStdin(closedStdin());
|
|
103
|
+
const unroom = roomFor(COMMAND_SERVER_CONCURRENT);
|
|
82
104
|
io.signals.on("SIGINT", stop).on("SIGTERM", stop);
|
|
83
105
|
io.stdout.on("error", stop);
|
|
84
|
-
const run = /* @__PURE__ */ __name(async (argv) => {
|
|
85
|
-
const
|
|
86
|
-
const
|
|
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 };
|
|
106
|
+
const run = /* @__PURE__ */ __name(async (argv, alone) => {
|
|
107
|
+
const request = { stdout: [], stderr: [], stdin: closedStdin(), alone };
|
|
108
|
+
const requestIo = { ...io, argv: [...io.argv.slice(0, 2), ...argv], stdin: request.stdin };
|
|
93
109
|
const context = {
|
|
94
110
|
args: argv,
|
|
95
111
|
env: io.env,
|
|
96
112
|
tty: false,
|
|
97
113
|
signal: stopper.signal,
|
|
98
114
|
atStart: /* @__PURE__ */ __name(async (command) => {
|
|
99
|
-
|
|
115
|
+
await enterCommandServer(command, entry.app.command);
|
|
100
116
|
await firstRunAt(entry, requestIo, () => true)(command);
|
|
101
117
|
}, "atStart"),
|
|
102
118
|
ask: /* @__PURE__ */ __name(async () => false, "ask"),
|
|
103
119
|
openBrowser: /* @__PURE__ */ __name(async () => void 0, "openBrowser"),
|
|
104
|
-
outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed")
|
|
120
|
+
outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed"),
|
|
121
|
+
setExitCode: /* @__PURE__ */ __name((code2) => {
|
|
122
|
+
request.exitCode = code2;
|
|
123
|
+
}, "setExitCode")
|
|
105
124
|
};
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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") };
|
|
125
|
+
const code = await inCommandServerRequest(request, () => asOwnProcess(async () => {
|
|
126
|
+
try {
|
|
127
|
+
const returned = await entry.run(context);
|
|
128
|
+
return typeof returned === "number" ? returned : exitCodeSet() ?? 0;
|
|
129
|
+
} catch (error) {
|
|
130
|
+
return commanderExit(error) ?? entry.fail(error, context);
|
|
131
|
+
}
|
|
132
|
+
}));
|
|
133
|
+
const text = /* @__PURE__ */ __name((chunks) => Buffer.concat(chunks).toString("utf8"), "text");
|
|
134
|
+
return { code, stdout: text(request.stdout), stderr: text(request.stderr) };
|
|
121
135
|
}, "run");
|
|
122
136
|
try {
|
|
123
137
|
if (entry.sqlite)
|
|
@@ -127,12 +141,14 @@ var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commande
|
|
|
127
141
|
write: /* @__PURE__ */ __name((line) => new Promise((resolve) => protocol(line) ? resolve() : io.stdout.once("drain", resolve)), "write"),
|
|
128
142
|
run,
|
|
129
143
|
cli: entry.app.command,
|
|
144
|
+
concurrent: COMMAND_SERVER_CONCURRENT,
|
|
130
145
|
version: entry.app.version,
|
|
131
146
|
signal: stopper.signal
|
|
132
147
|
});
|
|
133
148
|
io.setExitCode(0);
|
|
134
149
|
} finally {
|
|
135
150
|
io.signals.off("SIGINT", stop).off("SIGTERM", stop);
|
|
151
|
+
unroom();
|
|
136
152
|
unrouteOut();
|
|
137
153
|
unrouteErr();
|
|
138
154
|
if (stdin)
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ARKB3M5X.js";
|
|
7
7
|
import "./chunk-U6HEZPCR.js";
|
|
8
8
|
import "./chunk-WGGSFGNZ.js";
|
|
9
9
|
import {
|
|
@@ -16,7 +16,7 @@ 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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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";
|
|
@@ -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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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-7GCVON7M.js";
|
|
17
|
+
import "./chunk-7FWU4RON.js";
|
|
18
|
+
import "./chunk-Y52T5EMB.js";
|
|
19
19
|
import "./chunk-U6HEZPCR.js";
|
|
20
20
|
import "./chunk-WGGSFGNZ.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-7GCVON7M.js";
|
|
8
|
+
import "./chunk-7FWU4RON.js";
|
|
9
|
+
import "./chunk-Y52T5EMB.js";
|
|
10
10
|
import "./chunk-U6HEZPCR.js";
|
|
11
11
|
import "./chunk-WGGSFGNZ.js";
|
|
12
12
|
import {
|
|
@@ -19,11 +19,11 @@ 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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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,11 +4,11 @@ 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-
|
|
7
|
+
} from "./chunk-33ELXJRR.js";
|
|
8
|
+
import "./chunk-NE3EGYPD.js";
|
|
9
|
+
import "./chunk-E3MFMMVY.js";
|
|
10
|
+
import "./chunk-VQL4RVXZ.js";
|
|
11
|
+
import "./chunk-GJFICFQB.js";
|
|
12
12
|
import "./chunk-U6HEZPCR.js";
|
|
13
13
|
import "./chunk-WGGSFGNZ.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
asksAtStart,
|
|
6
6
|
setupAtStart,
|
|
7
7
|
systemLanguage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VC6J7X76.js";
|
|
9
9
|
import "./chunk-7DPWVKYS.js";
|
|
10
10
|
import "./chunk-MCPOZNWG.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QROAXWDU.js";
|
|
12
12
|
import "./chunk-RX5CJ55S.js";
|
|
13
13
|
import "./chunk-D72URWJE.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-4N2WJYLE.js";
|
|
15
|
+
import "./chunk-HAR76KJG.js";
|
|
16
|
+
import "./chunk-Y52T5EMB.js";
|
|
17
17
|
import "./chunk-U6HEZPCR.js";
|
|
18
18
|
import "./chunk-WGGSFGNZ.js";
|
|
19
19
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
WIRECAT_TOOLS,
|
|
5
5
|
firstScreen,
|
|
6
6
|
installHelp
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZNPRTCUO.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-
|
|
20
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-MFWWZ6XL.js";
|
|
10
|
+
import "./chunk-GJBGZQHN.js";
|
|
11
|
+
import "./chunk-2UHANFLM.js";
|
|
12
|
+
import "./chunk-O5A4IS2D.js";
|
|
13
|
+
import "./chunk-2FXA32RJ.js";
|
|
14
|
+
import "./chunk-4N2WJYLE.js";
|
|
15
|
+
import "./chunk-GJFICFQB.js";
|
|
16
|
+
import "./chunk-4MFMUBHH.js";
|
|
17
|
+
import "./chunk-27SVHRHV.js";
|
|
18
|
+
import "./chunk-HAR76KJG.js";
|
|
19
|
+
import "./chunk-7FWU4RON.js";
|
|
20
|
+
import "./chunk-Y52T5EMB.js";
|
|
21
21
|
import "./chunk-YVNHQFLC.js";
|
|
22
22
|
import "./chunk-U6HEZPCR.js";
|
|
23
23
|
import "./chunk-WGGSFGNZ.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7X6YLKTK.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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CW3C7FSO.js";
|
|
7
7
|
import {
|
|
8
8
|
TIME_LIMIT_FUNCTION,
|
|
9
9
|
beforeTimeLimit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VQL4RVXZ.js";
|
|
11
11
|
import "./chunk-U6HEZPCR.js";
|
|
12
12
|
import "./chunk-WGGSFGNZ.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -16,7 +16,7 @@ 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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
ownerLogin,
|
|
5
5
|
revokeAll
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-Y74WJL3M.js";
|
|
7
|
+
import "./chunk-DDSAJKPO.js";
|
|
8
8
|
import "./chunk-5D4AEUVA.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-FHWUOFWX.js";
|
|
10
|
+
import "./chunk-O5A4IS2D.js";
|
|
11
11
|
import "./chunk-U6HEZPCR.js";
|
|
12
12
|
import "./chunk-WGGSFGNZ.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-E3MFMMVY.js";
|
|
10
|
+
import "./chunk-VQL4RVXZ.js";
|
|
11
11
|
import "./chunk-U6HEZPCR.js";
|
|
12
12
|
import "./chunk-WGGSFGNZ.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -3,23 +3,23 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ARKB3M5X.js";
|
|
7
7
|
import {
|
|
8
8
|
providerWaitMs
|
|
9
9
|
} from "./chunk-LVGX7VTD.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-RFFU6KQ5.js";
|
|
11
11
|
import {
|
|
12
12
|
OPENAI_URL
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-D3ODL4P7.js";
|
|
14
|
+
import "./chunk-7GCVON7M.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-7FWU4RON.js";
|
|
22
|
+
import "./chunk-Y52T5EMB.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_RETRY,
|
|
25
25
|
backoffMs
|
|
@@ -33,10 +33,10 @@ 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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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-Z26T3SYD.js");
|
|
183
183
|
return openSpeechCutter(vadModel);
|
|
184
184
|
}, "openCutter");
|
|
185
185
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-ZVVMGPBJ.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
proxiedFetch,
|
|
15
15
|
proxySecrets,
|
|
16
16
|
resolveSettings
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NU4RMUMQ.js";
|
|
18
18
|
import {
|
|
19
19
|
AGENTS,
|
|
20
20
|
MEMO_SCENARIOS,
|
|
@@ -67,64 +67,64 @@ import {
|
|
|
67
67
|
topicsCommand,
|
|
68
68
|
upgradeCommand,
|
|
69
69
|
watchCommand
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-SODUFMDW.js";
|
|
71
|
+
import "./chunk-TKJZENAZ.js";
|
|
72
72
|
import "./chunk-LVGX7VTD.js";
|
|
73
73
|
import {
|
|
74
74
|
parseProxy,
|
|
75
75
|
proxyLabel
|
|
76
76
|
} from "./chunk-FATTEYZH.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-ALW7ROTM.js";
|
|
78
|
+
import "./chunk-PG3V225O.js";
|
|
79
79
|
import {
|
|
80
80
|
installSkill
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-CB6AHU6H.js";
|
|
82
|
+
import "./chunk-DDSAJKPO.js";
|
|
83
|
+
import "./chunk-R2IW6JBV.js";
|
|
84
|
+
import "./chunk-FZKHFTKH.js";
|
|
85
|
+
import "./chunk-6DLRATDC.js";
|
|
86
|
+
import "./chunk-ZKHXWSKD.js";
|
|
87
|
+
import "./chunk-RFFU6KQ5.js";
|
|
88
88
|
import {
|
|
89
89
|
servingProfiles
|
|
90
|
-
} from "./chunk-
|
|
91
|
-
import "./chunk-
|
|
90
|
+
} from "./chunk-FHWUOFWX.js";
|
|
91
|
+
import "./chunk-D3ODL4P7.js";
|
|
92
92
|
import {
|
|
93
93
|
inSection
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-ZNPRTCUO.js";
|
|
95
95
|
import "./chunk-2ABQZVK4.js";
|
|
96
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-VC6J7X76.js";
|
|
97
97
|
import {
|
|
98
98
|
latestVersion,
|
|
99
99
|
runUpdate,
|
|
100
100
|
updateNotice
|
|
101
101
|
} from "./chunk-7DPWVKYS.js";
|
|
102
102
|
import "./chunk-MCPOZNWG.js";
|
|
103
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-33ELXJRR.js";
|
|
104
104
|
import {
|
|
105
105
|
readSecret
|
|
106
|
-
} from "./chunk-
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-
|
|
109
|
-
import "./chunk-
|
|
110
|
-
import "./chunk-
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
106
|
+
} from "./chunk-LQRZUNYF.js";
|
|
107
|
+
import "./chunk-C5CB6RIX.js";
|
|
108
|
+
import "./chunk-FYHFAOPM.js";
|
|
109
|
+
import "./chunk-QROAXWDU.js";
|
|
110
|
+
import "./chunk-7X6YLKTK.js";
|
|
111
|
+
import "./chunk-VDFEWSCS.js";
|
|
112
|
+
import "./chunk-7GCVON7M.js";
|
|
113
113
|
import {
|
|
114
114
|
DESKTOP,
|
|
115
115
|
TG,
|
|
116
116
|
VERSION
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-DTTONQW7.js";
|
|
118
118
|
import {
|
|
119
119
|
installerOf
|
|
120
120
|
} from "./chunk-RX5CJ55S.js";
|
|
121
121
|
import "./chunk-D72URWJE.js";
|
|
122
|
-
import "./chunk-
|
|
123
|
-
import "./chunk-
|
|
124
|
-
import "./chunk-
|
|
125
|
-
import "./chunk-
|
|
126
|
-
import "./chunk-
|
|
127
|
-
import "./chunk-
|
|
122
|
+
import "./chunk-V4BPS7MH.js";
|
|
123
|
+
import "./chunk-YDMKP7PO.js";
|
|
124
|
+
import "./chunk-NE3EGYPD.js";
|
|
125
|
+
import "./chunk-E3MFMMVY.js";
|
|
126
|
+
import "./chunk-VQL4RVXZ.js";
|
|
127
|
+
import "./chunk-MFWWZ6XL.js";
|
|
128
128
|
import {
|
|
129
129
|
Argument,
|
|
130
130
|
Command,
|
|
@@ -145,20 +145,20 @@ import {
|
|
|
145
145
|
rootOf,
|
|
146
146
|
secretInputOf,
|
|
147
147
|
withDeadline
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import "./chunk-
|
|
150
|
-
import "./chunk-
|
|
151
|
-
import "./chunk-
|
|
152
|
-
import "./chunk-
|
|
153
|
-
import "./chunk-
|
|
148
|
+
} from "./chunk-GJBGZQHN.js";
|
|
149
|
+
import "./chunk-2UHANFLM.js";
|
|
150
|
+
import "./chunk-O5A4IS2D.js";
|
|
151
|
+
import "./chunk-2FXA32RJ.js";
|
|
152
|
+
import "./chunk-4N2WJYLE.js";
|
|
153
|
+
import "./chunk-GJFICFQB.js";
|
|
154
154
|
import {
|
|
155
155
|
runtime,
|
|
156
156
|
timezoneOf
|
|
157
|
-
} from "./chunk-
|
|
158
|
-
import "./chunk-
|
|
159
|
-
import "./chunk-
|
|
160
|
-
import "./chunk-
|
|
161
|
-
import "./chunk-
|
|
157
|
+
} from "./chunk-4MFMUBHH.js";
|
|
158
|
+
import "./chunk-27SVHRHV.js";
|
|
159
|
+
import "./chunk-HAR76KJG.js";
|
|
160
|
+
import "./chunk-7FWU4RON.js";
|
|
161
|
+
import "./chunk-Y52T5EMB.js";
|
|
162
162
|
import "./chunk-YVNHQFLC.js";
|
|
163
163
|
import {
|
|
164
164
|
configFilePath,
|
|
@@ -740,7 +740,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
|
|
|
740
740
|
import { join } from "node:path";
|
|
741
741
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
742
742
|
|
|
743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
744
744
|
import { realpathSync } from "node:fs";
|
|
745
745
|
import { fileURLToPath } from "node:url";
|
|
746
746
|
var QUIET_WORDS = [
|
|
@@ -1058,7 +1058,7 @@ var definition = {
|
|
|
1058
1058
|
};
|
|
1059
1059
|
var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
|
|
1060
1060
|
if (!botApi && needsBotApi(argv, environment.env ?? process.env))
|
|
1061
|
-
useBotApi((await import("./bot-api-
|
|
1061
|
+
useBotApi((await import("./bot-api-F24NWJT3.js")).telegramBotApiCommand);
|
|
1062
1062
|
const notice = updateNotice2(argv, {
|
|
1063
1063
|
...environment.tty === void 0 ? {} : { tty: environment.tty },
|
|
1064
1064
|
...environment.update ? { environment: environment.update } : {},
|