@wirecat/tg-cli 0.118.0 → 0.119.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 +7621 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +15 -8
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-4YNP6VCO.js → adapter-NEQQOANM.js} +47 -48
- package/dist/bundle/{all-profiles-MIQDYAGO.js → all-profiles-QFT46FTF.js} +10 -10
- package/dist/bundle/{anthropic-NTASPJYE.js → anthropic-UJ4RYCWU.js} +10 -8
- package/dist/bundle/{app-server-UJZBJ2SK.js → app-server-NE3EL5IK.js} +43 -43
- package/dist/bundle/{bot-api-JZAD4L3N.js → bot-api-D4H5SCP5.js} +49 -49
- package/dist/bundle/{bot-history-OUDHH3NU.js → bot-history-KF2PUMWA.js} +18 -18
- package/dist/bundle/{bun-EC4HDIRD.js → bun-F7MH5YKA.js} +2 -2
- package/dist/bundle/{bun-sqlite-A4HJR6KO.js → bun-sqlite-FYDJXUHF.js} +5 -5
- package/dist/bundle/{chunk-I4TI5HDJ.js → chunk-23JGV5FQ.js} +11 -11
- package/dist/bundle/{chunk-MBH7IKLT.js → chunk-2BAJ6ORN.js} +1 -1
- package/dist/bundle/{chunk-EPXVRJAX.js → chunk-3EQ7USKJ.js} +2 -2
- package/dist/bundle/{chunk-MZNOASAW.js → chunk-3K65KTXD.js} +16 -3
- package/dist/bundle/{chunk-EQJ6NLF5.js → chunk-4AACB23H.js} +13 -13
- package/dist/bundle/{chunk-NUCDEOFC.js → chunk-5EHJWIW4.js} +2 -2
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-5FEEFXJA.js} +1 -1
- package/dist/bundle/{chunk-6RI4TEIC.js → chunk-65BWMPCI.js} +2 -2
- package/dist/bundle/{chunk-PB252TT3.js → chunk-6ERQJRL2.js} +2 -2
- package/dist/bundle/{chunk-G3RT2EQI.js → chunk-6K5R3YPN.js} +2 -2
- package/dist/bundle/{chunk-OTQDJUES.js → chunk-6OE5I3PR.js} +6 -6
- package/dist/bundle/{chunk-FHMK6OK4.js → chunk-72QLHHSO.js} +93 -29
- package/dist/bundle/{chunk-YEOSV6JC.js → chunk-7C6POLLO.js} +1 -1
- package/dist/bundle/{chunk-JPVFYMSQ.js → chunk-7VUNJDYU.js} +4 -4
- package/dist/bundle/{chunk-57LKX6N2.js → chunk-BXIPT2BO.js} +1 -1
- package/dist/bundle/{chunk-NKFTZVQU.js → chunk-CIDFV3IT.js} +1 -1
- package/dist/bundle/{chunk-4BV4UMBB.js → chunk-CX2WCEQU.js} +264 -195
- package/dist/bundle/{chunk-H6S3C3MH.js → chunk-D4Y2KL5V.js} +4 -4
- package/dist/bundle/{chunk-YPRUWRKE.js → chunk-D6YTBJY6.js} +1 -1
- package/dist/bundle/{chunk-PW3HFIJA.js → chunk-DQELQ7BL.js} +365 -192
- package/dist/bundle/{chunk-5IIU7X4S.js → chunk-F223KYWG.js} +1 -1
- package/dist/bundle/{chunk-TMTEWOQS.js → chunk-FJKP6MMP.js} +5 -3
- package/dist/bundle/{chunk-NMT2VGEI.js → chunk-FQ3C6DFV.js} +3 -3
- package/dist/bundle/{chunk-6ZMTEUVU.js → chunk-FQZSS3AB.js} +6 -6
- package/dist/bundle/{chunk-CEY43D3A.js → chunk-FRW3CWC7.js} +29 -29
- package/dist/bundle/{chunk-65XV5PPI.js → chunk-G3MQOH6Z.js} +3 -3
- package/dist/bundle/{chunk-6AXUEJGL.js → chunk-HGMMRT4G.js} +2 -2
- package/dist/bundle/{chunk-GLRRCKP6.js → chunk-HPQQ76WF.js} +23 -5
- package/dist/bundle/{chunk-RG2E7ZQZ.js → chunk-HV5YYAJX.js} +50 -15
- package/dist/bundle/{chunk-3MQOLYAN.js → chunk-IAGX5VFL.js} +4 -4
- package/dist/bundle/{chunk-BNEP5EOV.js → chunk-JKKEMVW3.js} +4 -4
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-KBHK5UGL.js} +1 -1
- package/dist/bundle/{chunk-EPCFXKTX.js → chunk-KC4MQRAB.js} +34 -8
- package/dist/bundle/{chunk-GXCJ47SJ.js → chunk-L33G5ARH.js} +2664 -670
- package/dist/bundle/{chunk-PO74BDER.js → chunk-MDLSI3EN.js} +23 -23
- package/dist/bundle/chunk-NDSRND3E.js +138 -0
- package/dist/bundle/{chunk-2KQHUBTV.js → chunk-OG2CG2GS.js} +12 -12
- package/dist/bundle/{chunk-JZETEZHC.js → chunk-QD27C3BG.js} +7 -7
- package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-QG5U6HCI.js} +61 -21
- package/dist/bundle/{chunk-GI4MTNA2.js → chunk-QQ3QZFFD.js} +8 -8
- package/dist/bundle/{chunk-76EKXFX2.js → chunk-QTFXYR5W.js} +24 -2
- package/dist/bundle/{chunk-ZXXTJF4Z.js → chunk-RGU2G3KL.js} +4 -4
- package/dist/bundle/{chunk-JWPSVS6C.js → chunk-ROOUBFUW.js} +2304 -1442
- package/dist/bundle/{chunk-5QYU7B27.js → chunk-RUNFFBJU.js} +656 -461
- package/dist/bundle/{chunk-DKFC5ZZ3.js → chunk-S3HAFJVC.js} +4 -4
- package/dist/bundle/{chunk-BXTDAGM4.js → chunk-SMHLQEE2.js} +2 -2
- package/dist/bundle/{chunk-JWIUK3SK.js → chunk-TEZKCH5B.js} +2 -2
- package/dist/bundle/{chunk-HJNRIK5X.js → chunk-TKHEVAEG.js} +9 -8
- package/dist/bundle/{chunk-JLJKGKU2.js → chunk-TT4CIXVH.js} +6 -6
- package/dist/bundle/{chunk-ZMUC3UQO.js → chunk-UBCLVM7C.js} +3 -3
- package/dist/bundle/{chunk-YHZFGUAP.js → chunk-V5Z2JO6X.js} +19 -19
- package/dist/bundle/{chunk-2NA5KVP6.js → chunk-W2BIBPRU.js} +234 -38
- package/dist/bundle/{chunk-PWCQC56A.js → chunk-X5PDWCG7.js} +1 -1
- package/dist/bundle/{chunk-GIM37COQ.js → chunk-XDMJVWWR.js} +3 -3
- package/dist/bundle/{chunk-KEDHX6XG.js → chunk-XM3P7LLT.js} +2 -2
- package/dist/bundle/{chunk-DSZJREEO.js → chunk-YMWPRHXG.js} +1285 -750
- package/dist/bundle/{chunk-5LDWBEWU.js → chunk-Z4CGZAFQ.js} +45 -27
- package/dist/bundle/{chunk-Y64SI2RO.js → chunk-ZEQ7ONPZ.js} +3 -3
- package/dist/bundle/command-contract-7TGMZRBE.js +33 -0
- package/dist/bundle/{decode-NMNPLKNR.js → decode-5N4ERCHC.js} +5 -5
- package/dist/bundle/{dispatch-OP27MWX5.js → dispatch-TBGXBDHE.js} +10 -10
- package/dist/bundle/{echarts-S46LEIPS.js → echarts-YDEBAMXT.js} +2 -2
- package/dist/bundle/{embed-I5ZYHGYC.js → embed-T7H62XFR.js} +6 -6
- package/dist/bundle/{embedder-LTJI67N2.js → embedder-AW3O2TR3.js} +9 -9
- package/dist/bundle/{entry-O6BUPXF7.js → entry-L2LJ2VPY.js} +7 -7
- package/dist/bundle/{failure-4JUQFXJT.js → failure-AWHPW2HE.js} +2 -2
- package/dist/bundle/{first-run-PMZNCDGD.js → first-run-6PBZSRZU.js} +11 -11
- package/dist/bundle/first-screen-UKCD7D2R.js +31 -0
- package/dist/bundle/{instructions-AUEGY3VO.js → instructions-C3NJERO7.js} +1 -1
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-CWLASTLV.js} +2 -2
- package/dist/bundle/{node-XRA7RBCQ.js → node-P3CIIYWU.js} +2 -2
- package/dist/bundle/{node-sqlite-DEZO6LRS.js → node-sqlite-YVHMNRVA.js} +6 -6
- package/dist/bundle/{oauth-DAVC7WCD.js → oauth-5OQYA2SV.js} +7 -7
- package/dist/bundle/{open-DE2YO4T7.js → open-YGWUVSU7.js} +5 -5
- package/dist/bundle/{openai-5BKGAULH.js → openai-U45JBQ6F.js} +16 -37
- package/dist/bundle/{process-4ZHPNUIQ.js → process-DCYX5EDG.js} +1 -1
- package/dist/bundle/{program-EGTKSNB4.js → program-UZBFH2EZ.js} +55 -52
- package/dist/bundle/{prompt-HWCWHHPE.js → prompt-HPVTPTFI.js} +7 -5
- package/dist/bundle/{proxy-transport-4DPZB2W2.js → proxy-transport-D7MCHGSV.js} +5 -5
- package/dist/bundle/{recognize-NG6RXNGF.js → recognize-IJCPFJ76.js} +4 -4
- package/dist/bundle/{remote-ZKXIIGYH.js → remote-MWDYQWFW.js} +7 -7
- package/dist/bundle/{rerank-TX5QFURV.js → rerank-SXG64475.js} +7 -7
- package/dist/bundle/{serve-XAS6DECW.js → serve-KJQENHEH.js} +9 -9
- package/dist/bundle/{server-CNPIWBYU.js → server-MXVXZWN6.js} +35 -35
- package/dist/bundle/server-RTMCRKQF.js +60 -0
- package/dist/bundle/{state-3HTUETTS.js → state-CKKJWH27.js} +6 -6
- package/dist/bundle/{store-B5VZWJHN.js → store-R3BE4V56.js} +36 -13
- package/dist/bundle/store-maintenance-command-KDGBSBNU.js +49 -0
- package/dist/bundle/tg.js +38 -14
- package/dist/commands/account-removal.d.ts +3 -0
- package/dist/commands/account-removal.d.ts.map +1 -0
- package/dist/commands/account-removal.js +57 -0
- package/dist/commands/account-removal.js.map +1 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/http.d.ts +6 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +8 -0
- package/dist/http.js.map +1 -0
- package/dist/identity.d.ts +4 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +14 -0
- package/dist/identity.js.map +1 -1
- package/dist/telegram/map.d.ts.map +1 -1
- package/dist/telegram/map.js +3 -0
- package/dist/telegram/map.js.map +1 -1
- package/dist/telegram/registration.d.ts +1 -1
- package/dist/telegram/registration.d.ts.map +1 -1
- package/dist/telegram/registration.js +4 -1
- package/dist/telegram/registration.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +7 -6
- package/dist/bundle/chunk-TSTEZNSX.js +0 -33
- package/dist/bundle/command-contract-7GZ6HAA6.js +0 -33
- package/dist/bundle/first-screen-BGML5DSO.js +0 -31
- package/dist/bundle/server-FRTKLHZF.js +0 -60
- package/dist/bundle/store-maintenance-command-VG3CLELA.js +0 -50
- /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-DWX4DE2I.js} +0 -0
|
@@ -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-3EQ7USKJ.js";
|
|
7
7
|
import {
|
|
8
8
|
TIME_LIMIT_FUNCTION,
|
|
9
9
|
beforeTimeLimit
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-BXIPT2BO.js";
|
|
11
|
+
import "./chunk-V5Z2JO6X.js";
|
|
12
|
+
import "./chunk-KC4MQRAB.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-SMHLQEE2.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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/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-65BWMPCI.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-RGU2G3KL.js";
|
|
9
|
+
import "./chunk-XDMJVWWR.js";
|
|
10
|
+
import "./chunk-D6YTBJY6.js";
|
|
11
|
+
import "./chunk-V5Z2JO6X.js";
|
|
12
|
+
import "./chunk-KC4MQRAB.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-SMHLQEE2.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-TT4CIXVH.js";
|
|
10
|
+
import "./chunk-BXIPT2BO.js";
|
|
11
|
+
import "./chunk-V5Z2JO6X.js";
|
|
12
|
+
import "./chunk-KC4MQRAB.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-SMHLQEE2.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
CAPABILITY_STATEMENTS,
|
|
@@ -1,63 +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";
|
|
3
6
|
import {
|
|
4
7
|
SAMPLE_RATE,
|
|
5
8
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-JKKEMVW3.js";
|
|
10
|
+
import "./chunk-4AACB23H.js";
|
|
8
11
|
import {
|
|
9
12
|
OPENAI_URL
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-FQ3C6DFV.js";
|
|
14
|
+
import "./chunk-6OE5I3PR.js";
|
|
12
15
|
import {
|
|
13
16
|
OPENAI_TRANSCRIBE_MODEL,
|
|
14
17
|
VAD,
|
|
15
18
|
filesPresent,
|
|
16
19
|
modelsDirectory,
|
|
17
20
|
vadPath
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-7VUNJDYU.js";
|
|
22
|
+
import "./chunk-6K5R3YPN.js";
|
|
20
23
|
import {
|
|
21
24
|
DEFAULT_RETRY,
|
|
22
25
|
backoffMs
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-V5Z2JO6X.js";
|
|
27
|
+
import "./chunk-KC4MQRAB.js";
|
|
25
28
|
import "./chunk-Y5E2WNWB.js";
|
|
26
29
|
import {
|
|
27
30
|
CliError
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SMHLQEE2.js";
|
|
29
32
|
import {
|
|
30
33
|
__name
|
|
31
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
35
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
34
37
|
import { setTimeout as wait } from "node:timers/promises";
|
|
35
38
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-
|
|
37
|
-
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
38
|
-
if (!header)
|
|
39
|
-
return void 0;
|
|
40
|
-
const trimmed = header.trim();
|
|
41
|
-
if (/^\d+$/.test(trimmed))
|
|
42
|
-
return Number(trimmed) * 1e3;
|
|
43
|
-
const at = Date.parse(trimmed);
|
|
44
|
-
if (Number.isNaN(at))
|
|
45
|
-
return void 0;
|
|
46
|
-
const delta = at - now().getTime();
|
|
47
|
-
return delta > 0 ? delta : void 0;
|
|
48
|
-
}, "parseRetryAfter");
|
|
49
|
-
var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
50
|
-
if (!header)
|
|
51
|
-
return void 0;
|
|
52
|
-
const seconds = Number(header.trim());
|
|
53
|
-
if (!Number.isFinite(seconds))
|
|
54
|
-
return void 0;
|
|
55
|
-
const delta = seconds * 1e3 - now().getTime();
|
|
56
|
-
return delta > 0 ? delta : void 0;
|
|
57
|
-
}, "parseRateLimitReset");
|
|
58
|
-
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
59
|
-
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
61
40
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
62
41
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
63
42
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -78,7 +57,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
78
57
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
79
58
|
}, "encodeWav");
|
|
80
59
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
82
61
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
83
62
|
var JOINED_SECONDS = 0.2;
|
|
84
63
|
var PAD_SECONDS = 0.2;
|
|
@@ -200,7 +179,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
200
179
|
return pieces;
|
|
201
180
|
}, "piecesOf");
|
|
202
181
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
203
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
182
|
+
const { openSpeechCutter } = await import("./recognize-IJCPFJ76.js");
|
|
204
183
|
return openSpeechCutter(vadModel);
|
|
205
184
|
}, "openCutter");
|
|
206
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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/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";
|
|
@@ -7,13 +7,15 @@ import {
|
|
|
7
7
|
TELEGRAM_BOT,
|
|
8
8
|
botMcp,
|
|
9
9
|
forCommand,
|
|
10
|
+
guardedFetch,
|
|
10
11
|
parseApiHash,
|
|
11
12
|
parseApiId,
|
|
12
13
|
pathsFor,
|
|
13
14
|
proxiedFetch,
|
|
14
15
|
proxySecrets,
|
|
15
16
|
resolveSettings
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-72QLHHSO.js";
|
|
18
|
+
import "./chunk-NDSRND3E.js";
|
|
17
19
|
import {
|
|
18
20
|
AGENTS,
|
|
19
21
|
MEMO_SCENARIOS,
|
|
@@ -66,27 +68,27 @@ import {
|
|
|
66
68
|
topicsCommand,
|
|
67
69
|
upgradeCommand,
|
|
68
70
|
watchCommand
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
+
} from "./chunk-L33G5ARH.js";
|
|
72
|
+
import "./chunk-7C6POLLO.js";
|
|
71
73
|
import {
|
|
72
74
|
parseProxy,
|
|
73
75
|
proxyLabel
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
76
|
+
} from "./chunk-TEZKCH5B.js";
|
|
77
|
+
import "./chunk-F223KYWG.js";
|
|
78
|
+
import "./chunk-Z4CGZAFQ.js";
|
|
77
79
|
import {
|
|
78
80
|
installSkill
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-HV5YYAJX.js";
|
|
82
|
+
import "./chunk-RUNFFBJU.js";
|
|
83
|
+
import "./chunk-MDLSI3EN.js";
|
|
84
|
+
import "./chunk-YMWPRHXG.js";
|
|
85
|
+
import "./chunk-4AACB23H.js";
|
|
86
|
+
import "./chunk-S3HAFJVC.js";
|
|
85
87
|
import {
|
|
86
88
|
inSection
|
|
87
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-TKHEVAEG.js";
|
|
88
90
|
import "./chunk-2ABQZVK4.js";
|
|
89
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-D4Y2KL5V.js";
|
|
90
92
|
import {
|
|
91
93
|
Argument,
|
|
92
94
|
Command,
|
|
@@ -108,69 +110,69 @@ import {
|
|
|
108
110
|
runtime,
|
|
109
111
|
secretInputOf,
|
|
110
112
|
withDeadline
|
|
111
|
-
} from "./chunk-
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
113
|
+
} from "./chunk-DQELQ7BL.js";
|
|
114
|
+
import "./chunk-G3MQOH6Z.js";
|
|
115
|
+
import "./chunk-QD27C3BG.js";
|
|
116
|
+
import "./chunk-OG2CG2GS.js";
|
|
115
117
|
import {
|
|
116
118
|
latestVersion,
|
|
117
119
|
runUpdate,
|
|
118
120
|
updateNotice
|
|
119
|
-
} from "./chunk-
|
|
120
|
-
import "./chunk-
|
|
121
|
-
import "./chunk-
|
|
122
|
-
import "./chunk-
|
|
123
|
-
import "./chunk-
|
|
124
|
-
import "./chunk-
|
|
121
|
+
} from "./chunk-IAGX5VFL.js";
|
|
122
|
+
import "./chunk-5FEEFXJA.js";
|
|
123
|
+
import "./chunk-UBCLVM7C.js";
|
|
124
|
+
import "./chunk-23JGV5FQ.js";
|
|
125
|
+
import "./chunk-6ERQJRL2.js";
|
|
126
|
+
import "./chunk-RGU2G3KL.js";
|
|
125
127
|
import {
|
|
126
128
|
servingProfiles
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import "./chunk-
|
|
129
|
-
import "./chunk-
|
|
129
|
+
} from "./chunk-XDMJVWWR.js";
|
|
130
|
+
import "./chunk-D6YTBJY6.js";
|
|
131
|
+
import "./chunk-ROOUBFUW.js";
|
|
130
132
|
import {
|
|
131
133
|
timezoneOf
|
|
132
|
-
} from "./chunk-
|
|
133
|
-
import "./chunk-
|
|
134
|
-
import "./chunk-
|
|
135
|
-
import "./chunk-
|
|
134
|
+
} from "./chunk-CX2WCEQU.js";
|
|
135
|
+
import "./chunk-ZEQ7ONPZ.js";
|
|
136
|
+
import "./chunk-QQ3QZFFD.js";
|
|
137
|
+
import "./chunk-FQZSS3AB.js";
|
|
136
138
|
import {
|
|
137
139
|
readSecret
|
|
138
|
-
} from "./chunk-
|
|
139
|
-
import "./chunk-
|
|
140
|
-
import "./chunk-
|
|
141
|
-
import "./chunk-
|
|
142
|
-
import "./chunk-
|
|
143
|
-
import "./chunk-
|
|
144
|
-
import "./chunk-
|
|
145
|
-
import "./chunk-G3RT2EQI.js";
|
|
140
|
+
} from "./chunk-HPQQ76WF.js";
|
|
141
|
+
import "./chunk-HGMMRT4G.js";
|
|
142
|
+
import "./chunk-QTFXYR5W.js";
|
|
143
|
+
import "./chunk-FQ3C6DFV.js";
|
|
144
|
+
import "./chunk-6OE5I3PR.js";
|
|
145
|
+
import "./chunk-7VUNJDYU.js";
|
|
146
|
+
import "./chunk-6K5R3YPN.js";
|
|
146
147
|
import {
|
|
148
|
+
DESKTOP,
|
|
147
149
|
TG,
|
|
148
150
|
VERSION
|
|
149
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-3K65KTXD.js";
|
|
150
152
|
import {
|
|
151
153
|
installerOf
|
|
152
|
-
} from "./chunk-
|
|
153
|
-
import "./chunk-
|
|
154
|
+
} from "./chunk-KBHK5UGL.js";
|
|
155
|
+
import "./chunk-DWX4DE2I.js";
|
|
154
156
|
import "./chunk-D72URWJE.js";
|
|
155
|
-
import "./chunk-
|
|
156
|
-
import "./chunk-
|
|
157
|
+
import "./chunk-TT4CIXVH.js";
|
|
158
|
+
import "./chunk-BXIPT2BO.js";
|
|
157
159
|
import {
|
|
158
160
|
configFilePath,
|
|
159
161
|
indent,
|
|
160
162
|
processStreams,
|
|
161
163
|
renderPretty,
|
|
162
164
|
resolvePaths
|
|
163
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-V5Z2JO6X.js";
|
|
164
166
|
import {
|
|
165
167
|
exitCodeFor
|
|
166
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-KC4MQRAB.js";
|
|
167
169
|
import "./chunk-Y5E2WNWB.js";
|
|
168
170
|
import {
|
|
169
171
|
CliError,
|
|
170
172
|
isCliError,
|
|
171
173
|
singleLine
|
|
172
|
-
} from "./chunk-
|
|
173
|
-
import "./chunk-
|
|
174
|
+
} from "./chunk-SMHLQEE2.js";
|
|
175
|
+
import "./chunk-X5PDWCG7.js";
|
|
174
176
|
import {
|
|
175
177
|
__name
|
|
176
178
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -244,7 +246,7 @@ var withProxySecrets = /* @__PURE__ */ __name((config) => {
|
|
|
244
246
|
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");
|
|
245
247
|
if (proxy.kind === "mtproxy" && proxy.secret === void 0)
|
|
246
248
|
throw new CliError("validation_error", "an MTProxy link needs its secret \u2014 run `tg config set proxy -` and paste the whole link");
|
|
247
|
-
const { checkProxy } = await import("./proxy-transport-
|
|
249
|
+
const { checkProxy } = await import("./proxy-transport-D7MCHGSV.js");
|
|
248
250
|
asValidation(() => checkProxy(proxy));
|
|
249
251
|
const label = proxyLabel(proxy);
|
|
250
252
|
action.processedArgs[1] = label;
|
|
@@ -438,7 +440,8 @@ var SHELL_OVERRIDES = {
|
|
|
438
440
|
// dist/telegram/registration.js
|
|
439
441
|
import { randomBytes } from "node:crypto";
|
|
440
442
|
var MY_TELEGRAM = "https://my.telegram.org";
|
|
441
|
-
var registerApp = /* @__PURE__ */ __name(async (prompts, { fetch:
|
|
443
|
+
var registerApp = /* @__PURE__ */ __name(async (prompts, { fetch: send, shortName = randomShortName(), signal } = {}) => {
|
|
444
|
+
const request = guardedFetch(DESKTOP.hosts, send);
|
|
442
445
|
const cookies = /* @__PURE__ */ new Map();
|
|
443
446
|
const call = /* @__PURE__ */ __name(async (path, form) => {
|
|
444
447
|
const response = await request(`${MY_TELEGRAM}${path}`, {
|
|
@@ -734,7 +737,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
|
|
|
734
737
|
import { join } from "node:path";
|
|
735
738
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
736
739
|
|
|
737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
738
741
|
import { realpathSync } from "node:fs";
|
|
739
742
|
import { fileURLToPath } from "node:url";
|
|
740
743
|
var QUIET_WORDS = [
|
|
@@ -1052,7 +1055,7 @@ var definition = {
|
|
|
1052
1055
|
};
|
|
1053
1056
|
var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
|
|
1054
1057
|
if (!botApi && needsBotApi(argv, environment.env ?? process.env))
|
|
1055
|
-
useBotApi((await import("./bot-api-
|
|
1058
|
+
useBotApi((await import("./bot-api-D4H5SCP5.js")).telegramBotApiCommand);
|
|
1056
1059
|
const notice = updateNotice2(argv, {
|
|
1057
1060
|
...environment.tty === void 0 ? {} : { tty: environment.tty },
|
|
1058
1061
|
...environment.update ? { environment: environment.update } : {},
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
+
pasteHint,
|
|
4
5
|
readSecret
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-HPQQ76WF.js";
|
|
7
|
+
import "./chunk-HGMMRT4G.js";
|
|
8
|
+
import "./chunk-V5Z2JO6X.js";
|
|
9
|
+
import "./chunk-KC4MQRAB.js";
|
|
9
10
|
import "./chunk-Y5E2WNWB.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-SMHLQEE2.js";
|
|
11
12
|
import "./chunk-ZVVMGPBJ.js";
|
|
12
13
|
export {
|
|
14
|
+
pasteHint,
|
|
13
15
|
readSecret
|
|
14
16
|
};
|
|
@@ -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-5EHJWIW4.js";
|
|
8
|
+
import "./chunk-TEZKCH5B.js";
|
|
9
|
+
import "./chunk-V5Z2JO6X.js";
|
|
10
|
+
import "./chunk-KC4MQRAB.js";
|
|
11
11
|
import "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SMHLQEE2.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-JKKEMVW3.js";
|
|
12
|
+
import "./chunk-V5Z2JO6X.js";
|
|
13
|
+
import "./chunk-KC4MQRAB.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-SMHLQEE2.js";
|
|
16
16
|
import "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
export {
|
|
18
18
|
SAMPLE_RATE,
|
|
@@ -8,14 +8,14 @@ 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-
|
|
11
|
+
} from "./chunk-FQ3C6DFV.js";
|
|
12
|
+
import "./chunk-6OE5I3PR.js";
|
|
13
|
+
import "./chunk-7VUNJDYU.js";
|
|
14
|
+
import "./chunk-6K5R3YPN.js";
|
|
15
|
+
import "./chunk-V5Z2JO6X.js";
|
|
16
|
+
import "./chunk-KC4MQRAB.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-SMHLQEE2.js";
|
|
19
19
|
import "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
export {
|
|
21
21
|
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-6OE5I3PR.js";
|
|
8
|
+
import "./chunk-7VUNJDYU.js";
|
|
9
|
+
import "./chunk-6K5R3YPN.js";
|
|
10
|
+
import "./chunk-V5Z2JO6X.js";
|
|
11
|
+
import "./chunk-KC4MQRAB.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-SMHLQEE2.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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/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-F223KYWG.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-65BWMPCI.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-RGU2G3KL.js";
|
|
24
|
+
import "./chunk-XDMJVWWR.js";
|
|
25
|
+
import "./chunk-D6YTBJY6.js";
|
|
26
|
+
import "./chunk-V5Z2JO6X.js";
|
|
27
|
+
import "./chunk-KC4MQRAB.js";
|
|
28
28
|
import "./chunk-Y5E2WNWB.js";
|
|
29
29
|
import {
|
|
30
30
|
CliError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SMHLQEE2.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.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/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";
|
|
@@ -2,75 +2,75 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
botInstructions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7C6POLLO.js";
|
|
6
6
|
import {
|
|
7
7
|
answered,
|
|
8
8
|
normal,
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-W2BIBPRU.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HV5YYAJX.js";
|
|
17
17
|
import {
|
|
18
18
|
callerOf,
|
|
19
19
|
serveStdio
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XM3P7LLT.js";
|
|
21
21
|
import {
|
|
22
22
|
McpServer
|
|
23
23
|
} from "./chunk-5D4AEUVA.js";
|
|
24
24
|
import {
|
|
25
25
|
wholeList
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-YMWPRHXG.js";
|
|
27
|
+
import "./chunk-4AACB23H.js";
|
|
28
|
+
import "./chunk-S3HAFJVC.js";
|
|
29
29
|
import {
|
|
30
30
|
changesMessenger,
|
|
31
31
|
flatten,
|
|
32
32
|
itemOf
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-DQELQ7BL.js";
|
|
34
|
+
import "./chunk-G3MQOH6Z.js";
|
|
35
|
+
import "./chunk-QD27C3BG.js";
|
|
36
|
+
import "./chunk-IAGX5VFL.js";
|
|
37
|
+
import "./chunk-5FEEFXJA.js";
|
|
38
|
+
import "./chunk-UBCLVM7C.js";
|
|
39
39
|
import {
|
|
40
40
|
MESSENGER_CHANGE_REFUSAL,
|
|
41
41
|
readOnlyLockOf,
|
|
42
42
|
readOnlyRefusal
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-6ERQJRL2.js";
|
|
44
|
+
import "./chunk-D6YTBJY6.js";
|
|
45
|
+
import "./chunk-ROOUBFUW.js";
|
|
46
|
+
import "./chunk-CX2WCEQU.js";
|
|
47
|
+
import "./chunk-ZEQ7ONPZ.js";
|
|
48
|
+
import "./chunk-QQ3QZFFD.js";
|
|
49
|
+
import "./chunk-FQZSS3AB.js";
|
|
50
|
+
import "./chunk-HGMMRT4G.js";
|
|
51
|
+
import "./chunk-QTFXYR5W.js";
|
|
52
|
+
import "./chunk-FQ3C6DFV.js";
|
|
53
|
+
import "./chunk-6OE5I3PR.js";
|
|
54
|
+
import "./chunk-7VUNJDYU.js";
|
|
55
|
+
import "./chunk-6K5R3YPN.js";
|
|
56
|
+
import "./chunk-KBHK5UGL.js";
|
|
57
|
+
import "./chunk-DWX4DE2I.js";
|
|
58
58
|
import "./chunk-D72URWJE.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-TT4CIXVH.js";
|
|
60
|
+
import "./chunk-BXIPT2BO.js";
|
|
61
|
+
import "./chunk-V5Z2JO6X.js";
|
|
62
62
|
import {
|
|
63
63
|
mcpErrorResult,
|
|
64
64
|
object
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-KC4MQRAB.js";
|
|
66
66
|
import "./chunk-Y5E2WNWB.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-SMHLQEE2.js";
|
|
68
|
+
import "./chunk-X5PDWCG7.js";
|
|
69
69
|
import {
|
|
70
70
|
__name
|
|
71
71
|
} from "./chunk-ZVVMGPBJ.js";
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.87.0_commander@15._c25084c4731872baba927966435ce31d/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
74
74
|
import { randomUUID } from "node:crypto";
|
|
75
75
|
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
76
76
|
var createBotServer = /* @__PURE__ */ __name((options) => {
|