@wirecat/tg-cli 0.100.0 → 0.101.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/README.md +3 -3
- package/dist/bin/tg.js +1 -1
- package/dist/bundle/{adapter-2LVPMFKF.js → adapter-A3VD4Y6Z.js} +24 -24
- package/dist/bundle/{all-profiles-BLTK2AAB.js → all-profiles-UPVNHXB2.js} +16 -7
- package/dist/bundle/{anthropic-RJE4XEOO.js → anthropic-IRKNWPIB.js} +5 -5
- package/dist/bundle/{bot-api-4XM3NVWG.js → bot-api-UNTQG2M5.js} +48 -48
- package/dist/bundle/{bot-history-WVM5GEQN.js → bot-history-V4RTY5K7.js} +15 -15
- package/dist/bundle/{bun-UZXO2LRQ.js → bun-2JZPG2NL.js} +2 -2
- package/dist/bundle/{bun-sqlite-GJLGSQIT.js → bun-sqlite-TZHKM225.js} +4 -4
- package/dist/bundle/{chunk-V4JSVH4M.js → chunk-22PQUX72.js} +2 -2
- package/dist/bundle/{chunk-MQNFEVAH.js → chunk-2DGOFLDA.js} +2 -2
- package/dist/bundle/{chunk-2IM4M7Q2.js → chunk-2XBSVRT2.js} +1 -1
- package/dist/bundle/{chunk-HKT5EOT5.js → chunk-4ZS73HTJ.js} +1 -1
- package/dist/bundle/{chunk-SMJTL5U7.js → chunk-54R2GDQ3.js} +6 -4
- package/dist/bundle/{chunk-2MXQ2EUN.js → chunk-5GKXETRP.js} +21 -20
- package/dist/bundle/{chunk-GTURDJJD.js → chunk-5KU4UQBM.js} +1 -1
- package/dist/bundle/{chunk-JFJVS5JC.js → chunk-5TPT2S2Z.js} +2 -2
- package/dist/bundle/{chunk-SYPL4PHV.js → chunk-64DK7S4F.js} +1 -1
- package/dist/bundle/{chunk-BAIZAZ6Q.js → chunk-6IPY2QRG.js} +2 -2
- package/dist/bundle/{chunk-I6WZJVRT.js → chunk-7CBUCTB6.js} +55 -36
- package/dist/bundle/{chunk-LI7TXFLS.js → chunk-A5JSTZZZ.js} +3 -3
- package/dist/bundle/{chunk-OW3COBN5.js → chunk-ACGTFLEB.js} +9 -9
- package/dist/bundle/{chunk-Q26JMPBP.js → chunk-BX6HH4F6.js} +11 -11
- package/dist/bundle/{chunk-CV5ASHTW.js → chunk-BXQS5RCE.js} +45 -45
- package/dist/bundle/{chunk-MUEXF4ME.js → chunk-CJ6IYCYP.js} +12 -11
- package/dist/bundle/{chunk-GYEOQS2D.js → chunk-DG62L57H.js} +17 -17
- package/dist/bundle/{chunk-4U7QOFDA.js → chunk-DYNSP6FW.js} +445 -236
- package/dist/bundle/{chunk-HXTTDIL7.js → chunk-F7TDFWXY.js} +3 -3
- package/dist/bundle/{chunk-P26LWFNZ.js → chunk-G2US6LJB.js} +1 -1
- package/dist/bundle/{chunk-KE6L2UEG.js → chunk-G3ZRY436.js} +70 -61
- package/dist/bundle/{chunk-QY3YOOTP.js → chunk-G77QOTXE.js} +2 -2
- package/dist/bundle/{chunk-6YLT4YVJ.js → chunk-H6OXALTJ.js} +2 -2
- package/dist/bundle/{chunk-WKOY3POD.js → chunk-LPB2MDUW.js} +7 -7
- package/dist/bundle/{chunk-66E5QDLH.js → chunk-MLLJ74LM.js} +1 -1
- package/dist/bundle/{chunk-6VEOR6GD.js → chunk-N5UFBWDM.js} +6 -6
- package/dist/bundle/{chunk-THVNP6S6.js → chunk-NC5WS7OP.js} +2 -2
- package/dist/bundle/{chunk-YG7PNCSW.js → chunk-NKJJJAIJ.js} +10 -3
- package/dist/bundle/{chunk-DVOUKGFK.js → chunk-NMGO6LW6.js} +8 -8
- package/dist/bundle/{chunk-QU2FJMFB.js → chunk-ODSVNH3H.js} +798 -492
- package/dist/bundle/{chunk-WE3LBRMB.js → chunk-OEJ5DMCX.js} +7 -7
- package/dist/bundle/{chunk-3N6LXAPE.js → chunk-OILBDLWL.js} +10 -10
- package/dist/bundle/{chunk-U7LXA4SO.js → chunk-OPBTNQ35.js} +11 -11
- package/dist/bundle/{chunk-OOOV3JBZ.js → chunk-PUBS2F5J.js} +953 -677
- package/dist/bundle/{chunk-H3X5LS6U.js → chunk-PYTOIDSM.js} +4 -4
- package/dist/bundle/{chunk-RER6DAHP.js → chunk-QOWSVDPZ.js} +157 -145
- package/dist/bundle/{chunk-2XUGPE5W.js → chunk-QYVVRQTN.js} +3 -3
- package/dist/bundle/{chunk-RDQMV6EU.js → chunk-RF54YDBB.js} +4 -4
- package/dist/bundle/{chunk-3QDPV34J.js → chunk-RVCS7Q3A.js} +51 -47
- package/dist/bundle/{chunk-4YCLWWZ3.js → chunk-S2JSZWEC.js} +11 -11
- package/dist/bundle/{chunk-SGJYU3SB.js → chunk-S7ZNLLY5.js} +3 -3
- package/dist/bundle/{chunk-JSKT5UZX.js → chunk-TGREFJVA.js} +8 -8
- package/dist/bundle/{chunk-4VBDVZNE.js → chunk-U46UNBMT.js} +15 -15
- package/dist/bundle/{chunk-BL36RR34.js → chunk-UN6CKIBN.js} +4 -4
- package/dist/bundle/chunk-VA5YEJS3.js +161 -0
- package/dist/bundle/{chunk-DN4QUTWU.js → chunk-VCGL2ETF.js} +1 -1
- package/dist/bundle/{chunk-UMLPXNJI.js → chunk-VRSN7VLO.js} +1 -1
- package/dist/bundle/{chunk-ATZ44Z77.js → chunk-VYDTI254.js} +108 -29
- package/dist/bundle/{chunk-UD4DOZCN.js → chunk-W2336E7Y.js} +6 -6
- package/dist/bundle/{chunk-3S5CL55R.js → chunk-XCKD54TN.js} +6 -6
- package/dist/bundle/{chunk-A7OBVRJV.js → chunk-ZEOCU24Z.js} +3 -3
- package/dist/bundle/{chunk-BZANDKWT.js → chunk-ZJVZXJOG.js} +2 -2
- package/dist/bundle/{chunk-ASDZHG5I.js → chunk-ZV24I2UJ.js} +2 -2
- package/dist/bundle/command-contract-TKDI7E56.js +31 -0
- package/dist/bundle/{echarts-YHSYUWLY.js → echarts-QZ6PR3VC.js} +2 -2
- package/dist/bundle/{embed-3HGI2XIW.js → embed-UBXCXSRD.js} +4 -4
- package/dist/bundle/{embedder-2CJMZETJ.js → embedder-B4ZTKC23.js} +7 -7
- package/dist/bundle/{entry-UVE53OV3.js → entry-BTUTHO5M.js} +5 -5
- package/dist/bundle/{first-run-6GYC2QS3.js → first-run-UC4HRIFV.js} +9 -9
- package/dist/bundle/first-screen-SMCX6YKY.js +29 -0
- package/dist/bundle/{identity-HEV5E57G.js → identity-QSDEGDH7.js} +3 -3
- package/dist/bundle/{instructions-5UVAXSQV.js → instructions-BBGLZKO3.js} +1 -1
- package/dist/bundle/{mcp-NWXBVNUA.js → mcp-4Y37G2UY.js} +2 -2
- package/dist/bundle/{node-YHYEGYVE.js → node-LZZX22VR.js} +2 -2
- package/dist/bundle/{node-sqlite-CQ33A3R2.js → node-sqlite-BPGT6T5U.js} +4 -4
- package/dist/bundle/{oauth-OB3JFAD7.js → oauth-XNE2KPKJ.js} +6 -6
- package/dist/bundle/{open-JHGZIXU2.js → open-SXGYZLB5.js} +3 -3
- package/dist/bundle/{process-PSKS3N5B.js → process-GPUXC4PG.js} +1 -1
- package/dist/bundle/{program-RPYVPNRX.js → program-NEXEAL7T.js} +51 -51
- package/dist/bundle/{prompt-7BXUMJGG.js → prompt-SORGLEYI.js} +4 -4
- package/dist/bundle/{proxy-transport-3EEMW2HW.js → proxy-transport-G4MA6BGU.js} +4 -4
- package/dist/bundle/{recognize-YMZPL47R.js → recognize-UJBXORVD.js} +5 -5
- package/dist/bundle/{remote-LQ3Q22NG.js → remote-W72AR7KH.js} +5 -5
- package/dist/bundle/{rerank-SM7IYVXJ.js → rerank-3Y2VZM3J.js} +5 -5
- package/dist/bundle/{serve-GHUEP5H5.js → serve-VDZIVOPR.js} +23 -8
- package/dist/bundle/{server-K2BQPPHN.js → server-BERXP4GW.js} +52 -52
- package/dist/bundle/{server-A45HVXQY.js → server-ZFHN4GUF.js} +34 -34
- package/dist/bundle/{state-WIOL52GZ.js → state-DGR4EE3E.js} +9 -5
- package/dist/bundle/{store-XE5AKUJZ.js → store-MRCFSCZD.js} +10 -10
- package/dist/bundle/store-maintenance-command-DCMZDMYS.js +46 -0
- package/dist/bundle/tg.js +4 -4
- 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/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/telegram/errors.js +1 -1
- package/dist/telegram/errors.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/install/windows.ps1 +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +4 -4
- package/dist/bundle/chunk-Z2FHEIXN.js +0 -63
- package/dist/bundle/command-contract-AIVKJYIR.js +0 -31
- package/dist/bundle/first-screen-HRRLVLOG.js +0 -29
- package/dist/bundle/store-maintenance-command-YS5E7VUN.js +0 -46
- /package/dist/bundle/{chunk-3MVHRZWR.js → chunk-2SJOUK6J.js} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createRequire as __tgRequire } from "node:module";
|
|
2
|
+
const require = __tgRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
WIRECAT_TOOLS,
|
|
5
|
+
firstScreen,
|
|
6
|
+
installHelp
|
|
7
|
+
} from "./chunk-LPB2MDUW.js";
|
|
8
|
+
import "./chunk-ZZLKX62Z.js";
|
|
9
|
+
import "./chunk-N5UFBWDM.js";
|
|
10
|
+
import "./chunk-QOWSVDPZ.js";
|
|
11
|
+
import "./chunk-RVCS7Q3A.js";
|
|
12
|
+
import "./chunk-OPBTNQ35.js";
|
|
13
|
+
import "./chunk-54R2GDQ3.js";
|
|
14
|
+
import "./chunk-S7ZNLLY5.js";
|
|
15
|
+
import "./chunk-ZV24I2UJ.js";
|
|
16
|
+
import "./chunk-VRSN7VLO.js";
|
|
17
|
+
import "./chunk-G3ZRY436.js";
|
|
18
|
+
import "./chunk-W2336E7Y.js";
|
|
19
|
+
import "./chunk-2SJOUK6J.js";
|
|
20
|
+
import "./chunk-G77QOTXE.js";
|
|
21
|
+
import "./chunk-DG62L57H.js";
|
|
22
|
+
import "./chunk-OEJ5DMCX.js";
|
|
23
|
+
import "./chunk-BJG6JA5U.js";
|
|
24
|
+
import "./chunk-AFV74GK3.js";
|
|
25
|
+
export {
|
|
26
|
+
WIRECAT_TOOLS,
|
|
27
|
+
firstScreen,
|
|
28
|
+
installHelp
|
|
29
|
+
};
|
|
@@ -2,9 +2,9 @@ import { createRequire as __tgRequire } from "node:module";
|
|
|
2
2
|
const require = __tgRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
TG
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-5TPT2S2Z.js";
|
|
6
|
+
import "./chunk-2SJOUK6J.js";
|
|
7
|
+
import "./chunk-OEJ5DMCX.js";
|
|
8
8
|
import "./chunk-AFV74GK3.js";
|
|
9
9
|
export {
|
|
10
10
|
TG
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath,
|
|
6
6
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5KU4UQBM.js";
|
|
8
8
|
import {
|
|
9
9
|
__name,
|
|
10
10
|
__toESM
|
|
11
11
|
} from "./chunk-AFV74GK3.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.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
|
|
14
14
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
15
15
|
var realRun = /* @__PURE__ */ __name((file, args) => {
|
|
16
16
|
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-4ZS73HTJ.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-AFV74GK3.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/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,15 +3,15 @@ const require = __tgRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2DGOFLDA.js";
|
|
7
|
+
import "./chunk-DG62L57H.js";
|
|
8
|
+
import "./chunk-OEJ5DMCX.js";
|
|
9
9
|
import "./chunk-BJG6JA5U.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-AFV74GK3.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
|
|
15
15
|
import { DatabaseSync } from "node:sqlite";
|
|
16
16
|
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
17
17
|
var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
@@ -3,13 +3,13 @@ const require = __tgRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
ownerLogin,
|
|
5
5
|
revokeAll
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UN6CKIBN.js";
|
|
7
7
|
import "./chunk-3KHKYYCR.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VA5YEJS3.js";
|
|
9
|
+
import "./chunk-QYVVRQTN.js";
|
|
10
|
+
import "./chunk-VRSN7VLO.js";
|
|
11
|
+
import "./chunk-DG62L57H.js";
|
|
12
|
+
import "./chunk-OEJ5DMCX.js";
|
|
13
13
|
import "./chunk-BJG6JA5U.js";
|
|
14
14
|
import "./chunk-AFV74GK3.js";
|
|
15
15
|
export {
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-XCKD54TN.js";
|
|
10
|
+
import "./chunk-DG62L57H.js";
|
|
11
|
+
import "./chunk-OEJ5DMCX.js";
|
|
12
12
|
import "./chunk-BJG6JA5U.js";
|
|
13
13
|
import "./chunk-AFV74GK3.js";
|
|
14
14
|
export {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-AFV74GK3.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/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";
|
|
@@ -61,35 +61,35 @@ import {
|
|
|
61
61
|
topicsCommand,
|
|
62
62
|
upgradeCommand,
|
|
63
63
|
watchCommand
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-ODSVNH3H.js";
|
|
65
65
|
import {
|
|
66
66
|
atTerminal,
|
|
67
67
|
loginQr
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-NMGO6LW6.js";
|
|
69
69
|
import {
|
|
70
70
|
parseProxy,
|
|
71
71
|
proxyLabel
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
72
|
+
} from "./chunk-2XBSVRT2.js";
|
|
73
|
+
import "./chunk-VCGL2ETF.js";
|
|
74
|
+
import "./chunk-7CBUCTB6.js";
|
|
75
|
+
import "./chunk-MLLJ74LM.js";
|
|
76
76
|
import {
|
|
77
77
|
installSkill
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-U46UNBMT.js";
|
|
79
|
+
import "./chunk-NKJJJAIJ.js";
|
|
80
|
+
import "./chunk-BXQS5RCE.js";
|
|
81
|
+
import "./chunk-22PQUX72.js";
|
|
82
|
+
import "./chunk-5GKXETRP.js";
|
|
83
|
+
import "./chunk-CJ6IYCYP.js";
|
|
84
|
+
import "./chunk-DYNSP6FW.js";
|
|
85
|
+
import "./chunk-OILBDLWL.js";
|
|
86
|
+
import "./chunk-RF54YDBB.js";
|
|
87
87
|
import {
|
|
88
88
|
inSection
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-LPB2MDUW.js";
|
|
90
90
|
import "./chunk-ZZLKX62Z.js";
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-N5UFBWDM.js";
|
|
92
|
+
import "./chunk-QOWSVDPZ.js";
|
|
93
93
|
import {
|
|
94
94
|
Argument,
|
|
95
95
|
Command,
|
|
@@ -109,50 +109,50 @@ import {
|
|
|
109
109
|
rootOf,
|
|
110
110
|
secretInputOf,
|
|
111
111
|
withDeadline
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-RVCS7Q3A.js";
|
|
113
113
|
import {
|
|
114
114
|
levelFor,
|
|
115
115
|
runtime
|
|
116
|
-
} from "./chunk-
|
|
117
|
-
import "./chunk-
|
|
118
|
-
import "./chunk-
|
|
116
|
+
} from "./chunk-OPBTNQ35.js";
|
|
117
|
+
import "./chunk-54R2GDQ3.js";
|
|
118
|
+
import "./chunk-BX6HH4F6.js";
|
|
119
119
|
import {
|
|
120
120
|
installerOf,
|
|
121
121
|
latestVersion,
|
|
122
122
|
runUpdate,
|
|
123
123
|
updateNotice
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import "./chunk-
|
|
126
|
-
import "./chunk-
|
|
127
|
-
import "./chunk-
|
|
128
|
-
import "./chunk-
|
|
124
|
+
} from "./chunk-PYTOIDSM.js";
|
|
125
|
+
import "./chunk-5KU4UQBM.js";
|
|
126
|
+
import "./chunk-S7ZNLLY5.js";
|
|
127
|
+
import "./chunk-S2JSZWEC.js";
|
|
128
|
+
import "./chunk-ZV24I2UJ.js";
|
|
129
129
|
import {
|
|
130
130
|
TG,
|
|
131
131
|
VERSION
|
|
132
|
-
} from "./chunk-
|
|
133
|
-
import "./chunk-
|
|
132
|
+
} from "./chunk-5TPT2S2Z.js";
|
|
133
|
+
import "./chunk-VA5YEJS3.js";
|
|
134
134
|
import {
|
|
135
135
|
servingProfiles
|
|
136
|
-
} from "./chunk-
|
|
137
|
-
import "./chunk-
|
|
138
|
-
import "./chunk-
|
|
139
|
-
import "./chunk-
|
|
140
|
-
import "./chunk-
|
|
141
|
-
import "./chunk-
|
|
142
|
-
import "./chunk-
|
|
136
|
+
} from "./chunk-QYVVRQTN.js";
|
|
137
|
+
import "./chunk-VRSN7VLO.js";
|
|
138
|
+
import "./chunk-NC5WS7OP.js";
|
|
139
|
+
import "./chunk-H6OXALTJ.js";
|
|
140
|
+
import "./chunk-A5JSTZZZ.js";
|
|
141
|
+
import "./chunk-ACGTFLEB.js";
|
|
142
|
+
import "./chunk-PUBS2F5J.js";
|
|
143
143
|
import {
|
|
144
144
|
timezoneOf
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-
|
|
147
|
-
import "./chunk-
|
|
148
|
-
import "./chunk-
|
|
149
|
-
import "./chunk-
|
|
150
|
-
import "./chunk-
|
|
151
|
-
import "./chunk-
|
|
145
|
+
} from "./chunk-G3ZRY436.js";
|
|
146
|
+
import "./chunk-TGREFJVA.js";
|
|
147
|
+
import "./chunk-W2336E7Y.js";
|
|
148
|
+
import "./chunk-2SJOUK6J.js";
|
|
149
|
+
import "./chunk-G77QOTXE.js";
|
|
150
|
+
import "./chunk-XCKD54TN.js";
|
|
151
|
+
import "./chunk-4ZS73HTJ.js";
|
|
152
152
|
import {
|
|
153
153
|
readSecret
|
|
154
|
-
} from "./chunk-
|
|
155
|
-
import "./chunk-
|
|
154
|
+
} from "./chunk-F7TDFWXY.js";
|
|
155
|
+
import "./chunk-6IPY2QRG.js";
|
|
156
156
|
import {
|
|
157
157
|
configFilePath,
|
|
158
158
|
exitCodeFor,
|
|
@@ -161,11 +161,11 @@ import {
|
|
|
161
161
|
renderPretty,
|
|
162
162
|
resolvePaths,
|
|
163
163
|
singleLine
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-DG62L57H.js";
|
|
165
165
|
import {
|
|
166
166
|
CliError,
|
|
167
167
|
isCliError
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-OEJ5DMCX.js";
|
|
169
169
|
import "./chunk-BJG6JA5U.js";
|
|
170
170
|
import {
|
|
171
171
|
__name
|
|
@@ -240,7 +240,7 @@ var withProxySecrets = /* @__PURE__ */ __name((config) => {
|
|
|
240
240
|
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");
|
|
241
241
|
if (proxy.kind === "mtproxy" && proxy.secret === void 0)
|
|
242
242
|
throw new CliError("validation_error", "an MTProxy link needs its secret \u2014 run `tg config set proxy -` and paste the whole link");
|
|
243
|
-
const { checkProxy } = await import("./proxy-transport-
|
|
243
|
+
const { checkProxy } = await import("./proxy-transport-G4MA6BGU.js");
|
|
244
244
|
asValidation(() => checkProxy(proxy));
|
|
245
245
|
const label = proxyLabel(proxy);
|
|
246
246
|
action.processedArgs[1] = label;
|
|
@@ -723,7 +723,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
|
|
|
723
723
|
import { join } from "node:path";
|
|
724
724
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
725
725
|
|
|
726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
727
727
|
import { realpathSync } from "node:fs";
|
|
728
728
|
import { fileURLToPath } from "node:url";
|
|
729
729
|
var QUIET_WORDS = [
|
|
@@ -962,7 +962,7 @@ var definition = {
|
|
|
962
962
|
{ command: "search all invoice", does: "messages and notes, from the local store and Telegram's server" },
|
|
963
963
|
{ command: "attachments extract", does: "text of PDFs and documents, ready for search" },
|
|
964
964
|
{ command: "schedule agent \u2026", does: "an agent on a timer; it runs read-only and can never send" },
|
|
965
|
-
{ command: "mcp --permission \u2026", does: "your account in any agent, with messages.send=deny" },
|
|
965
|
+
{ command: "mcp serve --permission \u2026", does: "your account in any agent, with messages.send=deny" },
|
|
966
966
|
{ command: "TG_READ_ONLY=1 tg \u2026", does: "a run that can read and sync but never send, edit or delete" }
|
|
967
967
|
]
|
|
968
968
|
},
|
|
@@ -1040,7 +1040,7 @@ var definition = {
|
|
|
1040
1040
|
};
|
|
1041
1041
|
var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
|
|
1042
1042
|
if (!botApi && needsBotApi(argv, environment.env ?? process.env))
|
|
1043
|
-
useBotApi((await import("./bot-api-
|
|
1043
|
+
useBotApi((await import("./bot-api-UNTQG2M5.js")).telegramBotApiCommand);
|
|
1044
1044
|
const notice = updateNotice2(argv, {
|
|
1045
1045
|
...environment.tty === void 0 ? {} : { tty: environment.tty },
|
|
1046
1046
|
...environment.update ? { environment: environment.update } : {},
|
|
@@ -2,10 +2,10 @@ import { createRequire as __tgRequire } from "node:module";
|
|
|
2
2
|
const require = __tgRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readSecret
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-F7TDFWXY.js";
|
|
6
|
+
import "./chunk-6IPY2QRG.js";
|
|
7
|
+
import "./chunk-DG62L57H.js";
|
|
8
|
+
import "./chunk-OEJ5DMCX.js";
|
|
9
9
|
import "./chunk-BJG6JA5U.js";
|
|
10
10
|
import "./chunk-AFV74GK3.js";
|
|
11
11
|
export {
|
|
@@ -4,10 +4,10 @@ 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-ZJVZXJOG.js";
|
|
8
|
+
import "./chunk-2XBSVRT2.js";
|
|
9
|
+
import "./chunk-DG62L57H.js";
|
|
10
|
+
import "./chunk-OEJ5DMCX.js";
|
|
11
11
|
import "./chunk-BJG6JA5U.js";
|
|
12
12
|
import "./chunk-AFV74GK3.js";
|
|
13
13
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __tgRequire } from "node:module";
|
|
2
2
|
const require = __tgRequire(import.meta.url);
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-DG62L57H.js";
|
|
4
4
|
import {
|
|
5
5
|
CliError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OEJ5DMCX.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-BJG6JA5U.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-AFV74GK3.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
15
15
|
import { createRequire } from "node:module";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
18
18
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
19
19
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
20
20
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -71,7 +71,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
71
71
|
throw invalid();
|
|
72
72
|
}, "checkOggDuration");
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
75
75
|
var SAMPLE_RATE = 16e3;
|
|
76
76
|
var LEAD = SAMPLE_RATE / 2;
|
|
77
77
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -8,11 +8,11 @@ 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-
|
|
11
|
+
} from "./chunk-A5JSTZZZ.js";
|
|
12
|
+
import "./chunk-ACGTFLEB.js";
|
|
13
|
+
import "./chunk-G77QOTXE.js";
|
|
14
|
+
import "./chunk-DG62L57H.js";
|
|
15
|
+
import "./chunk-OEJ5DMCX.js";
|
|
16
16
|
import "./chunk-BJG6JA5U.js";
|
|
17
17
|
import "./chunk-AFV74GK3.js";
|
|
18
18
|
export {
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
defaultThreads,
|
|
5
5
|
loadModel,
|
|
6
6
|
truncated
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ACGTFLEB.js";
|
|
8
|
+
import "./chunk-G77QOTXE.js";
|
|
9
|
+
import "./chunk-DG62L57H.js";
|
|
10
|
+
import "./chunk-OEJ5DMCX.js";
|
|
11
11
|
import "./chunk-BJG6JA5U.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-AFV74GK3.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
|
|
17
17
|
var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
|
|
18
18
|
const { ort, tokenizer, session } = await loadModel(model, directory, threads);
|
|
19
19
|
const typeIds = session.inputNames.includes("token_type_ids");
|
|
@@ -2,10 +2,10 @@ import { createRequire as __tgRequire } from "node:module";
|
|
|
2
2
|
const require = __tgRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VCGL2ETF.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UN6CKIBN.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -16,20 +16,23 @@ import {
|
|
|
16
16
|
requireBearerAuth
|
|
17
17
|
} from "./chunk-3KHKYYCR.js";
|
|
18
18
|
import {
|
|
19
|
+
activityRecorder,
|
|
20
|
+
calledTools,
|
|
21
|
+
httpActivityFile,
|
|
19
22
|
httpLock
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-VA5YEJS3.js";
|
|
24
|
+
import "./chunk-QYVVRQTN.js";
|
|
25
|
+
import "./chunk-VRSN7VLO.js";
|
|
26
|
+
import "./chunk-DG62L57H.js";
|
|
24
27
|
import {
|
|
25
28
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OEJ5DMCX.js";
|
|
27
30
|
import "./chunk-BJG6JA5U.js";
|
|
28
31
|
import {
|
|
29
32
|
__name
|
|
30
33
|
} from "./chunk-AFV74GK3.js";
|
|
31
34
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
33
36
|
import { randomUUID } from "node:crypto";
|
|
34
37
|
var MCP_PATH = "/mcp";
|
|
35
38
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
@@ -92,6 +95,15 @@ var metadataRequest = /* @__PURE__ */ __name((request, path, base) => {
|
|
|
92
95
|
url.pathname = inserted ? AS_METADATA : path;
|
|
93
96
|
return new Request(url, { method: request.method, headers: request.headers });
|
|
94
97
|
}, "metadataRequest");
|
|
98
|
+
var toolsIn = /* @__PURE__ */ __name(async (request) => {
|
|
99
|
+
if (request.method !== "POST")
|
|
100
|
+
return [];
|
|
101
|
+
try {
|
|
102
|
+
return calledTools(await request.clone().json());
|
|
103
|
+
} catch {
|
|
104
|
+
return [];
|
|
105
|
+
}
|
|
106
|
+
}, "toolsIn");
|
|
95
107
|
var serveOverHttp = /* @__PURE__ */ __name(async (build, options) => {
|
|
96
108
|
const { publicUrl, port, tokenFile, appName, onCode, onError, now, lockFile, version } = options;
|
|
97
109
|
const lock = lockFile ? httpLock(lockFile, {
|
|
@@ -126,6 +138,7 @@ var serveOverHttp = /* @__PURE__ */ __name(async (build, options) => {
|
|
|
126
138
|
verifier: login.verifier,
|
|
127
139
|
resourceMetadataUrl: getOAuthProtectedResourceMetadataUrl(resource)
|
|
128
140
|
});
|
|
141
|
+
const activity = activityRecorder(httpActivityFile(tokenFile), now);
|
|
129
142
|
const allowedHosts = [.../* @__PURE__ */ new Set([publicUrl.hostname, ...LOCAL])];
|
|
130
143
|
const allowedOrigins = [publicUrl.origin];
|
|
131
144
|
const listening = await listen(async (request) => {
|
|
@@ -154,6 +167,7 @@ var serveOverHttp = /* @__PURE__ */ __name(async (build, options) => {
|
|
|
154
167
|
const auth = await bearer(request);
|
|
155
168
|
if (auth instanceof Response)
|
|
156
169
|
return auth;
|
|
170
|
+
activity.record(auth.clientId, await toolsIn(request));
|
|
157
171
|
return await isLegacyRequest(request) ? legacy.handle(request, auth) : mcp.fetch(request, { authInfo: auth });
|
|
158
172
|
}, { host: "127.0.0.1", port }).catch((error) => {
|
|
159
173
|
login.close();
|
|
@@ -165,6 +179,7 @@ var serveOverHttp = /* @__PURE__ */ __name(async (build, options) => {
|
|
|
165
179
|
url: listening.url,
|
|
166
180
|
close: /* @__PURE__ */ __name(async () => {
|
|
167
181
|
login.close();
|
|
182
|
+
activity.flush();
|
|
168
183
|
try {
|
|
169
184
|
await listening.close();
|
|
170
185
|
await legacy.close();
|