@wirecat/tg-cli 0.124.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 +7 -1
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-GEIZVMWU.js → adapter-H2LTOLOA.js} +52 -53
- package/dist/bundle/{all-profiles-EY4GJFWN.js → all-profiles-75HGEFL7.js} +10 -10
- package/dist/bundle/{anthropic-RIANJ7WM.js → anthropic-N54MKE4C.js} +5 -5
- package/dist/bundle/{app-server-LW7WBFIF.js → app-server-3N5INKKI.js} +45 -45
- package/dist/bundle/{bot-api-FHIQ66OM.js → bot-api-V65KTEAH.js} +53 -54
- package/dist/bundle/{bot-history-O34YZEFH.js → bot-history-TT2EAHEE.js} +18 -18
- package/dist/bundle/{bun-MJWD4VGV.js → bun-LN4J7PA7.js} +2 -2
- package/dist/bundle/{bun-sqlite-LCHVO3OB.js → bun-sqlite-6PDBFBUI.js} +6 -6
- package/dist/bundle/{chunk-N5UM63JW.js → chunk-37SZHAEA.js} +55 -55
- package/dist/bundle/{chunk-A5RWKKBZ.js → chunk-3GILMKQ2.js} +3 -3
- package/dist/bundle/{chunk-XDHGM2Z7.js → chunk-4KIOWSDL.js} +3 -3
- package/dist/bundle/{chunk-ZL5YG2WK.js → chunk-4TCBRKWQ.js} +7 -7
- package/dist/bundle/{chunk-CDSSKK5J.js → chunk-6HLB73UN.js} +3 -3
- package/dist/bundle/{chunk-OH3IZ6GW.js → chunk-6Y6SSZ34.js} +100 -91
- package/dist/bundle/{chunk-3VVZFBE2.js → chunk-77Z3OGAT.js} +3 -3
- package/dist/bundle/{chunk-E6VSARSU.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-F3GHTPAO.js → chunk-7OBSIDBJ.js} +4 -4
- package/dist/bundle/{chunk-OVDB5CQM.js → chunk-AI2J3WJT.js} +1 -1
- package/dist/bundle/{chunk-HSRO77SW.js → chunk-AMPHPP4P.js} +15 -15
- package/dist/bundle/{chunk-SGBH3D5D.js → chunk-B252D7V4.js} +3 -3
- package/dist/bundle/{chunk-2YLIVDWJ.js → chunk-BLNMM3AX.js} +2 -2
- package/dist/bundle/{chunk-GUL6QLNI.js → chunk-CNEJQQMD.js} +17 -17
- package/dist/bundle/{chunk-QFV36CAH.js → chunk-DI3RJ3MJ.js} +4 -4
- package/dist/bundle/{chunk-DFSLHF46.js → chunk-DNCOELTM.js} +1 -1
- package/dist/bundle/{chunk-54JPEGQA.js → chunk-DYOZ7CUV.js} +2 -2
- package/dist/bundle/{chunk-E66JBGZZ.js → chunk-E4HDE5DN.js} +2 -2
- package/dist/bundle/{chunk-5EL6E6PW.js → chunk-EIGV2JKX.js} +1 -1
- package/dist/bundle/{chunk-RHJHOOUL.js → chunk-FHPEUAHQ.js} +181 -155
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-ISGXVFA4.js → chunk-FSP74THJ.js} +4 -4
- package/dist/bundle/{chunk-UP3J3YXH.js → chunk-FUYCAROL.js} +6 -6
- package/dist/bundle/{chunk-VGUWIHXD.js → chunk-GRDVBJCR.js} +1 -1
- package/dist/bundle/{chunk-NL4COYPY.js → chunk-GUPMDMFM.js} +7 -7
- package/dist/bundle/{chunk-KVJSCJGZ.js → chunk-HHG5FR5H.js} +2 -2
- package/dist/bundle/{chunk-PP4ZBLS4.js → chunk-IN3NAFUN.js} +9 -9
- package/dist/bundle/{chunk-NQXVZ5WT.js → chunk-INZAZMUF.js} +6 -6
- package/dist/bundle/{chunk-OK4M4MWI.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-RBV4M2TC.js → chunk-JB4BO5XZ.js} +1 -1
- package/dist/bundle/{chunk-42R4YO4L.js → chunk-JC6HMPL7.js} +1076 -877
- package/dist/bundle/{chunk-3PLMMFP6.js → chunk-JCNKGZQG.js} +17 -17
- package/dist/bundle/{chunk-PI4XXMPG.js → chunk-JKF7LZBU.js} +6 -6
- package/dist/bundle/{chunk-XSGUG5WG.js → chunk-LD42OGKK.js} +4 -4
- package/dist/bundle/{chunk-VMWJGUVV.js → chunk-LU2CHHPC.js} +4 -4
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-2GFGZDWS.js → chunk-MK4IKICN.js} +2 -2
- package/dist/bundle/{chunk-4CIVGT4P.js → chunk-NM5GBJME.js} +19 -19
- package/dist/bundle/{chunk-IVFUSI7G.js → chunk-NTHALPDT.js} +2 -2
- package/dist/bundle/{chunk-M4W4Y5YR.js → chunk-OG2ONSH6.js} +53 -32
- package/dist/bundle/{chunk-2NG4JPP7.js → chunk-PCC7GWOS.js} +4 -4
- package/dist/bundle/{chunk-UII3D3HR.js → chunk-QVK7NF3A.js} +30 -30
- package/dist/bundle/{chunk-QGCVQRHV.js → chunk-QYT6HDCL.js} +1 -1
- package/dist/bundle/{chunk-BV3HZYOX.js → chunk-RX5GU7GQ.js} +359 -326
- package/dist/bundle/{chunk-LKMZ53GC.js → chunk-RZ7KBWDQ.js} +2 -2
- package/dist/bundle/{chunk-7AWJZ6NJ.js → chunk-S4SOS27T.js} +8 -8
- package/dist/bundle/{chunk-W4LMTNN2.js → chunk-SGHF75RQ.js} +2 -2
- package/dist/bundle/{chunk-WSLIXJET.js → chunk-TAFH5K5D.js} +346 -268
- package/dist/bundle/{chunk-QK4T3VN7.js → chunk-TVQBOIWC.js} +1 -1
- package/dist/bundle/{chunk-4EGB7GSW.js → chunk-UG66U2T7.js} +18 -19
- package/dist/bundle/{chunk-I4JUKRW7.js → chunk-URFBZNLU.js} +2 -2
- package/dist/bundle/{chunk-VAKSXD4F.js → chunk-UTNK2PFE.js} +13 -13
- package/dist/bundle/{chunk-PZ6H65D6.js → chunk-VG3EQJYV.js} +34 -5
- package/dist/bundle/{chunk-ZNICTHSC.js → chunk-VHD4V64E.js} +1 -1
- package/dist/bundle/{chunk-ZTMV5M3D.js → chunk-VUBSGQ2O.js} +26 -24
- package/dist/bundle/{chunk-HEV23NIB.js → chunk-VZDAVZYX.js} +6 -6
- package/dist/bundle/{chunk-IK6XKMLL.js → chunk-WH4T44L3.js} +1 -1
- package/dist/bundle/{chunk-YQFO7WXQ.js → chunk-X6436BYW.js} +2 -2
- package/dist/bundle/{chunk-UR62DZ7Q.js → chunk-XS5C5TQ7.js} +8 -8
- package/dist/bundle/{chunk-WKOVQ4OU.js → chunk-XTNOBJRP.js} +12 -12
- package/dist/bundle/{chunk-ASEBKZFY.js → chunk-YRZXOQOB.js} +2 -2
- package/dist/bundle/{chunk-QWAMX6CN.js → chunk-ZX5OSZHH.js} +12 -12
- package/dist/bundle/command-contract-JP6SCP7U.js +34 -0
- package/dist/bundle/{command-server-entry-K52OEKIO.js → command-server-entry-BLSFT3T6.js} +24 -24
- package/dist/bundle/{decode-OAE25LEJ.js → decode-NNLEQU7B.js} +5 -5
- package/dist/bundle/{dispatch-6GVTXIZ2.js → dispatch-PRAIGIFS.js} +8 -8
- package/dist/bundle/{echarts-EO4ZGKMN.js → echarts-XAZHGDOM.js} +2 -2
- package/dist/bundle/{embed-TB2AS4AT.js → embed-Q7ZCVSCO.js} +6 -6
- package/dist/bundle/{embedder-YKC42G6L.js → embedder-MVS3PVWQ.js} +9 -9
- package/dist/bundle/{entry-AB6FU7BN.js → entry-XN3ZZAOK.js} +9 -9
- package/dist/bundle/{failure-CY7ACT6V.js → failure-7Y34AUJT.js} +2 -2
- package/dist/bundle/{first-run-CMQZHDI5.js → first-run-G4EFTONI.js} +11 -11
- package/dist/bundle/first-screen-RIDJEPC3.js +32 -0
- package/dist/bundle/{instructions-RM3IB6ID.js → instructions-QDHYYZBU.js} +1 -1
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-D2PM62TA.js → node-3Y7OVY2U.js} +2 -2
- package/dist/bundle/{node-sqlite-UK5DE525.js → node-sqlite-R2SBROJM.js} +7 -7
- package/dist/bundle/{oauth-SKRG67A2.js → oauth-WSPWMWTV.js} +7 -7
- package/dist/bundle/{open-XP3SY62D.js → open-VFLF4HRQ.js} +5 -5
- package/dist/bundle/{openai-Q3U46UPA.js → openai-DFCKZZDV.js} +21 -20
- package/dist/bundle/{process-YJ4LHMJB.js → process-VZKFAGNP.js} +1 -1
- package/dist/bundle/{program-EEPEFKTR.js → program-2LB3CUZX.js} +62 -60
- package/dist/bundle/{prompt-WYTODP4U.js → prompt-RVLA2PEY.js} +5 -5
- package/dist/bundle/{proxy-transport-HJMQ5QFT.js → proxy-transport-DP7SIMIC.js} +5 -5
- package/dist/bundle/{recognize-K2S5QQU2.js → recognize-LEKNA3G5.js} +4 -4
- package/dist/bundle/{remote-7RSAJ3JC.js → remote-WG5V2I2G.js} +9 -9
- package/dist/bundle/{rerank-RJX77BKD.js → rerank-ONAEQVJ6.js} +7 -7
- package/dist/bundle/{serve-3E7NN3VW.js → serve-BL2X6FZG.js} +9 -9
- package/dist/bundle/{server-O3KU56A4.js → server-3LSC4BMK.js} +36 -36
- package/dist/bundle/server-7EYEEGJT.js +62 -0
- package/dist/bundle/{sqlite-runtime-RCS5WSG5.js → sqlite-runtime-RQXPRH6C.js} +6 -6
- package/dist/bundle/{state-PLWSPSAG.js → state-O7LRA526.js} +6 -6
- package/dist/bundle/{store-3FYLH53Z.js → store-7C4UAND2.js} +15 -15
- package/dist/bundle/{store-DWMKCXYL.js → store-HMJUPK45.js} +13 -13
- package/dist/bundle/store-maintenance-command-I7PSA3SZ.js +52 -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/skills/tg-cli/SKILL.md +6 -2
- package/dist/bundle/chunk-VIIIC5LU.js +0 -32
- package/dist/bundle/command-contract-UKOL455D.js +0 -34
- package/dist/bundle/first-screen-XZ73W3VE.js +0 -32
- package/dist/bundle/server-ITHYDPWQ.js +0 -62
- package/dist/bundle/store-maintenance-command-3UEKINRB.js +0 -52
- /package/dist/bundle/{chunk-HVJJWJYQ.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -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-
|
|
6
|
+
} from "./chunk-E4HDE5DN.js";
|
|
7
7
|
import "./chunk-5D4AEUVA.js";
|
|
8
|
-
import "./chunk-
|
|
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,
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
providerWaitMs
|
|
5
|
-
} from "./chunk-PZ6H65D6.js";
|
|
6
3
|
import {
|
|
7
4
|
SAMPLE_RATE,
|
|
8
5
|
toModelRate
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-DI3RJ3MJ.js";
|
|
7
|
+
import "./chunk-UTNK2PFE.js";
|
|
11
8
|
import {
|
|
12
9
|
OPENAI_URL,
|
|
13
10
|
refuseModelAddress
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import
|
|
11
|
+
} from "./chunk-IN3NAFUN.js";
|
|
12
|
+
import "./chunk-JKF7LZBU.js";
|
|
13
|
+
import {
|
|
14
|
+
endpointFetch,
|
|
15
|
+
providerWaitMs
|
|
16
|
+
} from "./chunk-VG3EQJYV.js";
|
|
17
17
|
import {
|
|
18
18
|
OPENAI_TRANSCRIBE_MODEL,
|
|
19
19
|
VAD,
|
|
20
20
|
filesPresent,
|
|
21
21
|
modelsDirectory,
|
|
22
22
|
vadPath
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-PCC7GWOS.js";
|
|
24
|
+
import "./chunk-FUYCAROL.js";
|
|
25
|
+
import "./chunk-NTHALPDT.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_RETRY,
|
|
28
28
|
backoffMs
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-NM5GBJME.js";
|
|
30
|
+
import "./chunk-XS5C5TQ7.js";
|
|
31
31
|
import "./chunk-Y5E2WNWB.js";
|
|
32
32
|
import {
|
|
33
33
|
CliError
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-7KCBPAQS.js";
|
|
35
35
|
import {
|
|
36
36
|
__name
|
|
37
37
|
} from "./chunk-ZVVMGPBJ.js";
|
|
38
38
|
|
|
39
|
-
// 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
|
|
40
40
|
import { setTimeout as wait } from "node:timers/promises";
|
|
41
41
|
|
|
42
|
-
// 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
|
|
43
43
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
44
44
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
45
45
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -60,7 +60,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
60
60
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
61
61
|
}, "encodeWav");
|
|
62
62
|
|
|
63
|
-
// 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
|
|
64
64
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
65
65
|
var JOINED_SECONDS = 0.2;
|
|
66
66
|
var PAD_SECONDS = 0.2;
|
|
@@ -108,12 +108,13 @@ var failureOf = /* @__PURE__ */ __name(async (response) => {
|
|
|
108
108
|
return {};
|
|
109
109
|
}
|
|
110
110
|
}, "failureOf");
|
|
111
|
+
var TRANSCRIPTION_TIMEOUT_MS = 6e5;
|
|
111
112
|
var send = /* @__PURE__ */ __name(async (wav, options) => {
|
|
112
|
-
const
|
|
113
|
+
const url = `${(options.baseUrl ?? OPENAI_URL).replace(/\/+$/, "")}/audio/transcriptions`;
|
|
114
|
+
const post = options.fetch ?? endpointFetch(url, TRANSCRIPTION_TIMEOUT_MS);
|
|
113
115
|
const retry = options.retry ?? RETRY;
|
|
114
116
|
const sleep = options.sleep ?? sleeping;
|
|
115
117
|
const random = options.random ?? Math.random;
|
|
116
|
-
const url = `${(options.baseUrl ?? OPENAI_URL).replace(/\/+$/, "")}/audio/transcriptions`;
|
|
117
118
|
for (let attempt = 1; ; attempt++) {
|
|
118
119
|
interrupted(options.signal);
|
|
119
120
|
let response;
|
|
@@ -182,7 +183,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
182
183
|
return pieces;
|
|
183
184
|
}, "piecesOf");
|
|
184
185
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
185
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
186
|
+
const { openSpeechCutter } = await import("./recognize-LEKNA3G5.js");
|
|
186
187
|
return openSpeechCutter(vadModel);
|
|
187
188
|
}, "openCutter");
|
|
188
189
|
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.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";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
proxySecrets,
|
|
16
16
|
resolveSettings,
|
|
17
17
|
usesOwnersSession
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CNEJQQMD.js";
|
|
19
19
|
import {
|
|
20
20
|
AGENTS,
|
|
21
21
|
MEMO_SCENARIOS,
|
|
@@ -70,63 +70,62 @@ import {
|
|
|
70
70
|
topicsCommand,
|
|
71
71
|
upgradeCommand,
|
|
72
72
|
watchCommand
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-RX5GU7GQ.js";
|
|
74
74
|
import {
|
|
75
75
|
parseProxy,
|
|
76
76
|
proxyLabel
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-ZTMV5M3D.js";
|
|
77
|
+
} from "./chunk-URFBZNLU.js";
|
|
78
|
+
import "./chunk-GRDVBJCR.js";
|
|
79
|
+
import "./chunk-ZX5OSZHH.js";
|
|
80
|
+
import "./chunk-XTNOBJRP.js";
|
|
81
|
+
import "./chunk-JB4BO5XZ.js";
|
|
82
|
+
import "./chunk-VUBSGQ2O.js";
|
|
84
83
|
import {
|
|
85
84
|
installSkill
|
|
86
|
-
} from "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
85
|
+
} from "./chunk-UG66U2T7.js";
|
|
86
|
+
import "./chunk-FSP74THJ.js";
|
|
87
|
+
import "./chunk-37SZHAEA.js";
|
|
88
|
+
import "./chunk-AMPHPP4P.js";
|
|
89
|
+
import "./chunk-TAFH5K5D.js";
|
|
90
|
+
import "./chunk-UTNK2PFE.js";
|
|
92
91
|
import {
|
|
93
92
|
latestVersion,
|
|
94
93
|
runUpdate,
|
|
95
94
|
updateNotice
|
|
96
|
-
} from "./chunk-
|
|
97
|
-
import "./chunk-
|
|
95
|
+
} from "./chunk-LD42OGKK.js";
|
|
96
|
+
import "./chunk-FIVFP53N.js";
|
|
98
97
|
import {
|
|
99
98
|
servingProfiles
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
99
|
+
} from "./chunk-6HLB73UN.js";
|
|
100
|
+
import "./chunk-IN3NAFUN.js";
|
|
101
|
+
import "./chunk-JCNKGZQG.js";
|
|
102
|
+
import "./chunk-JKF7LZBU.js";
|
|
103
|
+
import "./chunk-INZAZMUF.js";
|
|
105
104
|
import "./chunk-2ABQZVK4.js";
|
|
106
|
-
import "./chunk-
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-GUPMDMFM.js";
|
|
106
|
+
import "./chunk-EIGV2JKX.js";
|
|
107
|
+
import "./chunk-WH4T44L3.js";
|
|
109
108
|
import {
|
|
110
109
|
readSecret
|
|
111
|
-
} from "./chunk-
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
115
|
-
import "./chunk-
|
|
116
|
-
import "./chunk-
|
|
110
|
+
} from "./chunk-4KIOWSDL.js";
|
|
111
|
+
import "./chunk-SGHF75RQ.js";
|
|
112
|
+
import "./chunk-JC6HMPL7.js";
|
|
113
|
+
import "./chunk-S4SOS27T.js";
|
|
114
|
+
import "./chunk-QYT6HDCL.js";
|
|
115
|
+
import "./chunk-LU2CHHPC.js";
|
|
117
116
|
import {
|
|
118
117
|
DESKTOP,
|
|
119
118
|
TG,
|
|
120
119
|
VERSION
|
|
121
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-HHG5FR5H.js";
|
|
122
121
|
import {
|
|
123
122
|
installerOf
|
|
124
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-M4OP5ASJ.js";
|
|
125
124
|
import "./chunk-D72URWJE.js";
|
|
126
|
-
import "./chunk-
|
|
127
|
-
import "./chunk-
|
|
128
|
-
import "./chunk-
|
|
129
|
-
import "./chunk-
|
|
125
|
+
import "./chunk-RZ7KBWDQ.js";
|
|
126
|
+
import "./chunk-VZDAVZYX.js";
|
|
127
|
+
import "./chunk-VHD4V64E.js";
|
|
128
|
+
import "./chunk-7OBSIDBJ.js";
|
|
130
129
|
import {
|
|
131
130
|
Argument,
|
|
132
131
|
Command,
|
|
@@ -147,38 +146,40 @@ import {
|
|
|
147
146
|
rootOf,
|
|
148
147
|
secretInputOf,
|
|
149
148
|
withDeadline
|
|
150
|
-
} from "./chunk-
|
|
151
|
-
import "./chunk-
|
|
152
|
-
import "./chunk-
|
|
153
|
-
import "./chunk-
|
|
154
|
-
import "./chunk-
|
|
155
|
-
import
|
|
156
|
-
|
|
157
|
-
|
|
149
|
+
} from "./chunk-FHPEUAHQ.js";
|
|
150
|
+
import "./chunk-4TCBRKWQ.js";
|
|
151
|
+
import "./chunk-B252D7V4.js";
|
|
152
|
+
import "./chunk-DYOZ7CUV.js";
|
|
153
|
+
import "./chunk-TVQBOIWC.js";
|
|
154
|
+
import {
|
|
155
|
+
hostFetch
|
|
156
|
+
} from "./chunk-VG3EQJYV.js";
|
|
157
|
+
import "./chunk-3GILMKQ2.js";
|
|
158
|
+
import "./chunk-PCC7GWOS.js";
|
|
158
159
|
import {
|
|
159
160
|
runtime,
|
|
160
161
|
timezoneOf
|
|
161
|
-
} from "./chunk-
|
|
162
|
-
import "./chunk-
|
|
163
|
-
import "./chunk-
|
|
164
|
-
import "./chunk-
|
|
165
|
-
import "./chunk-
|
|
162
|
+
} from "./chunk-6Y6SSZ34.js";
|
|
163
|
+
import "./chunk-77Z3OGAT.js";
|
|
164
|
+
import "./chunk-FUYCAROL.js";
|
|
165
|
+
import "./chunk-XWBPP2HX.js";
|
|
166
|
+
import "./chunk-NTHALPDT.js";
|
|
166
167
|
import {
|
|
167
168
|
configFilePath,
|
|
168
169
|
indent,
|
|
169
170
|
processStreams,
|
|
170
171
|
renderPretty,
|
|
171
172
|
resolvePaths
|
|
172
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-NM5GBJME.js";
|
|
173
174
|
import {
|
|
174
175
|
exitCodeFor
|
|
175
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
176
177
|
import "./chunk-Y5E2WNWB.js";
|
|
177
178
|
import {
|
|
178
179
|
CliError,
|
|
179
180
|
isCliError,
|
|
180
181
|
singleLine
|
|
181
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-7KCBPAQS.js";
|
|
182
183
|
import {
|
|
183
184
|
__name
|
|
184
185
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -252,7 +253,7 @@ var withProxySecrets = /* @__PURE__ */ __name((config) => {
|
|
|
252
253
|
throw new CliError("validation_error", "a proxy password or MTProxy secret never goes on the command line \u2014 run `tg config set proxy -` and paste the URL");
|
|
253
254
|
if (proxy.kind === "mtproxy" && proxy.secret === void 0)
|
|
254
255
|
throw new CliError("validation_error", "an MTProxy link needs its secret \u2014 run `tg config set proxy -` and paste the whole link");
|
|
255
|
-
const { checkProxy } = await import("./proxy-transport-
|
|
256
|
+
const { checkProxy } = await import("./proxy-transport-DP7SIMIC.js");
|
|
256
257
|
asValidation(() => checkProxy(proxy));
|
|
257
258
|
const label = proxyLabel(proxy);
|
|
258
259
|
action.processedArgs[1] = label;
|
|
@@ -566,13 +567,13 @@ var appCredentials = /* @__PURE__ */ __name(async (context, how, command, ask, s
|
|
|
566
567
|
if (how === "auto") {
|
|
567
568
|
let app;
|
|
568
569
|
const through = context.proxy();
|
|
569
|
-
const
|
|
570
|
+
const fetch = through ? proxiedFetch(through.proxy) : void 0;
|
|
570
571
|
try {
|
|
571
572
|
app = await registerApp({
|
|
572
573
|
phone,
|
|
573
574
|
code: /* @__PURE__ */ __name(() => ask("code from Telegram for my.telegram.org (app registration): ", true, "code"), "code"),
|
|
574
575
|
note: context.renderer.note
|
|
575
|
-
}, { ...signal === void 0 ? {} : { signal }, ...
|
|
576
|
+
}, { ...signal === void 0 ? {} : { signal }, ...fetch ? { fetch } : {} });
|
|
576
577
|
} catch (error) {
|
|
577
578
|
context.renderer.note(`The Telegram application step did not finish. Rerun as \`${command} --app browser\` to copy your app keys from the site yourself.`);
|
|
578
579
|
throw error;
|
|
@@ -757,9 +758,10 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
|
|
|
757
758
|
import { join } from "node:path";
|
|
758
759
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
759
760
|
|
|
760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
761
|
+
// 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/update/index.js
|
|
761
762
|
import { realpathSync } from "node:fs";
|
|
762
763
|
import { fileURLToPath } from "node:url";
|
|
764
|
+
var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
|
|
763
765
|
var QUIET_WORDS = [
|
|
764
766
|
"--help",
|
|
765
767
|
"-h",
|
|
@@ -783,7 +785,7 @@ var appUpdate = /* @__PURE__ */ __name((app) => {
|
|
|
783
785
|
}, "enabled");
|
|
784
786
|
return {
|
|
785
787
|
installer: installer2,
|
|
786
|
-
latest: /* @__PURE__ */ __name((environment = {}) => latestVersion(app.packageName, environment.fetch ??
|
|
788
|
+
latest: /* @__PURE__ */ __name((environment = {}) => latestVersion(app.packageName, environment.fetch ?? npmRegistry(), { timeoutMs: 3e3 }), "latest"),
|
|
787
789
|
/** The package manager's output goes to stderr, so stdout stays one result. */
|
|
788
790
|
runUpdate: /* @__PURE__ */ __name((argv, environment = {}) => environment.spawn ? environment.spawn(argv) : runUpdate(argv), "runUpdate"),
|
|
789
791
|
/**
|
|
@@ -804,7 +806,7 @@ var appUpdate = /* @__PURE__ */ __name((app) => {
|
|
|
804
806
|
command: app.command,
|
|
805
807
|
version: app.version,
|
|
806
808
|
statePath: app.statePath(env),
|
|
807
|
-
fetch: environment.fetch ??
|
|
809
|
+
fetch: environment.fetch ?? npmRegistry(),
|
|
808
810
|
...environment.now ? { now: environment.now } : {},
|
|
809
811
|
format: pretty ? "pretty" : "json",
|
|
810
812
|
stderrIsTTY: environment.stderrIsTTY ?? process.stderr.isTTY === true,
|
|
@@ -1075,7 +1077,7 @@ var definition = {
|
|
|
1075
1077
|
};
|
|
1076
1078
|
var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
|
|
1077
1079
|
if (!botApi && needsBotApi(argv, environment.env ?? process.env))
|
|
1078
|
-
useBotApi((await import("./bot-api-
|
|
1080
|
+
useBotApi((await import("./bot-api-V65KTEAH.js")).telegramBotApiCommand);
|
|
1079
1081
|
const notice = updateNotice2(argv, {
|
|
1080
1082
|
...environment.tty === void 0 ? {} : { tty: environment.tty },
|
|
1081
1083
|
...environment.update ? { environment: environment.update } : {},
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
pasteHint,
|
|
5
5
|
readSecret
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-4KIOWSDL.js";
|
|
7
|
+
import "./chunk-SGHF75RQ.js";
|
|
8
|
+
import "./chunk-NM5GBJME.js";
|
|
9
|
+
import "./chunk-XS5C5TQ7.js";
|
|
10
10
|
import "./chunk-Y5E2WNWB.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-7KCBPAQS.js";
|
|
12
12
|
import "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
export {
|
|
14
14
|
pasteHint,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
checkProxy,
|
|
5
5
|
proxiedTransport,
|
|
6
6
|
proxyFailure
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-YRZXOQOB.js";
|
|
8
|
+
import "./chunk-URFBZNLU.js";
|
|
9
|
+
import "./chunk-NM5GBJME.js";
|
|
10
|
+
import "./chunk-XS5C5TQ7.js";
|
|
11
11
|
import "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7KCBPAQS.js";
|
|
13
13
|
import "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
export {
|
|
15
15
|
checkProxy,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
openRecognizer,
|
|
9
9
|
openSpeechCutter,
|
|
10
10
|
toModelRate
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-DI3RJ3MJ.js";
|
|
12
|
+
import "./chunk-NM5GBJME.js";
|
|
13
|
+
import "./chunk-XS5C5TQ7.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-7KCBPAQS.js";
|
|
16
16
|
import "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
export {
|
|
18
18
|
SAMPLE_RATE,
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
openRemote,
|
|
9
9
|
remoteKey,
|
|
10
10
|
remoteModel
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-IN3NAFUN.js";
|
|
12
|
+
import "./chunk-JKF7LZBU.js";
|
|
13
|
+
import "./chunk-VG3EQJYV.js";
|
|
14
|
+
import "./chunk-PCC7GWOS.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
|
DEFAULT_OPENAI_MODEL,
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
defaultThreads,
|
|
5
5
|
loadModel,
|
|
6
6
|
truncated
|
|
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 "./chunk-Y5E2WNWB.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7KCBPAQS.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// 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/rerank.js
|
|
19
19
|
var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
|
|
20
20
|
const { ort, tokenizer, session } = await loadModel(model, directory, threads);
|
|
21
21
|
const typeIds = session.inputNames.includes("token_type_ids");
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JB4BO5XZ.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E4HDE5DN.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
calledTools,
|
|
21
21
|
httpActivityFile,
|
|
22
22
|
httpLock
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-FSP74THJ.js";
|
|
24
|
+
import "./chunk-6HLB73UN.js";
|
|
25
|
+
import "./chunk-TVQBOIWC.js";
|
|
26
|
+
import "./chunk-NM5GBJME.js";
|
|
27
|
+
import "./chunk-XS5C5TQ7.js";
|
|
28
28
|
import "./chunk-Y5E2WNWB.js";
|
|
29
29
|
import {
|
|
30
30
|
CliError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7KCBPAQS.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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
37
37
|
import { randomUUID } from "node:crypto";
|
|
38
38
|
var MCP_PATH = "/mcp";
|
|
39
39
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|