@wirecat/tg-cli 0.103.0 → 0.104.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 +1 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-QG3YFFOY.js → adapter-QTAHA2JC.js} +37 -37
- package/dist/bundle/{all-profiles-ECXH3TBF.js → all-profiles-7CXBVRFU.js} +5 -5
- package/dist/bundle/{anthropic-5MKO3QX7.js → anthropic-FWBQ7JHT.js} +3 -3
- package/dist/bundle/app-server-XF4GY2Y6.js +222 -0
- package/dist/bundle/{bot-api-4DQPIOMK.js → bot-api-XDMMWRYI.js} +38 -38
- package/dist/bundle/{bot-history-UN74XXLU.js → bot-history-TU2X7RNN.js} +10 -10
- package/dist/bundle/{bun-PS73VF2C.js → bun-6GSDPKNZ.js} +2 -2
- package/dist/bundle/{bun-sqlite-RAWGPH23.js → bun-sqlite-AO27E35V.js} +2 -2
- package/dist/bundle/{chunk-ZHXSRYJ5.js → chunk-3GGU65YR.js} +7 -5
- package/dist/bundle/{chunk-SSV37M5T.js → chunk-3XZQQGCB.js} +46 -46
- package/dist/bundle/{chunk-VZN5LD26.js → chunk-54RJDS3X.js} +2 -2
- package/dist/bundle/{chunk-SSALGKMJ.js → chunk-5K7E36ND.js} +2 -2
- package/dist/bundle/{chunk-RKQIEJFR.js → chunk-6K4QGBXU.js} +1 -1
- package/dist/bundle/{chunk-DLF3H6NP.js → chunk-6YUFPSSE.js} +4 -4
- package/dist/bundle/{chunk-TEO2KP52.js → chunk-7WHM3KNI.js} +1 -1
- package/dist/bundle/{chunk-57XGUIXA.js → chunk-ADMV4WGV.js} +4 -4
- package/dist/bundle/{chunk-RD7SSY7H.js → chunk-B7TTM75D.js} +1 -1
- package/dist/bundle/{chunk-BV4N333Y.js → chunk-BI2AXVHY.js} +2 -2
- package/dist/bundle/{chunk-F27OI4J2.js → chunk-BIWJK5YU.js} +1 -1
- package/dist/bundle/{chunk-Q2LBOPKO.js → chunk-BKVJNPA6.js} +25 -14
- package/dist/bundle/{chunk-3CP7RK5R.js → chunk-C5N7G6UH.js} +1 -1
- package/dist/bundle/{chunk-QF7VVIF4.js → chunk-DANCAYRP.js} +11 -6
- package/dist/bundle/{chunk-EMC57SOZ.js → chunk-FRZHF2X6.js} +9 -7
- package/dist/bundle/{chunk-NIVZHTN4.js → chunk-FUWSIEYY.js} +9 -9
- package/dist/bundle/{chunk-EQHQ2AX3.js → chunk-GE22MYA6.js} +57 -48
- package/dist/bundle/{chunk-KCVDWZWS.js → chunk-GZ5CR5QB.js} +7 -7
- package/dist/bundle/{chunk-OGVBRRWY.js → chunk-HOR7DS3P.js} +20 -20
- package/dist/bundle/{chunk-6N25NZOE.js → chunk-KRLCUBII.js} +5 -5
- package/dist/bundle/{chunk-RMC2S3F4.js → chunk-LJCGQMGN.js} +4 -4
- package/dist/bundle/{chunk-YI72UVTJ.js → chunk-LOFG3Q35.js} +1 -1
- package/dist/bundle/{chunk-Z2DPNTSU.js → chunk-LSQUNABH.js} +1 -1
- package/dist/bundle/{chunk-537O7OVE.js → chunk-MB3PCNRL.js} +2 -2
- package/dist/bundle/{chunk-LAYPLF7G.js → chunk-MCD2GANK.js} +5 -5
- package/dist/bundle/{chunk-5HPAPVCB.js → chunk-MR4LW4EC.js} +2140 -1907
- package/dist/bundle/{chunk-AUKAZRF6.js → chunk-N6VHHMSZ.js} +1 -1
- package/dist/bundle/{chunk-MHHDVR4G.js → chunk-P3WU6UYJ.js} +193 -193
- package/dist/bundle/{chunk-3QX6SOEO.js → chunk-PHQTSF44.js} +4 -4
- package/dist/bundle/{chunk-GO354DJ5.js → chunk-PWIE7VBL.js} +1 -1
- package/dist/bundle/{chunk-KQ5BUI5T.js → chunk-QVTCOBN5.js} +257 -243
- package/dist/bundle/{chunk-NKN54EDN.js → chunk-QY7MW7HK.js} +2 -2
- package/dist/bundle/{chunk-HCDZWFXO.js → chunk-RRWMYR2H.js} +10 -9
- package/dist/bundle/{chunk-AAMJZJYC.js → chunk-RTAV5XNT.js} +8 -8
- package/dist/bundle/{server-6XYURULQ.js → chunk-SZE6425L.js} +46 -62
- package/dist/bundle/{chunk-FSPDODVT.js → chunk-TJR37WKA.js} +10 -10
- package/dist/bundle/{chunk-COZ74WW4.js → chunk-U2AK4QXY.js} +20 -2
- package/dist/bundle/{chunk-DWQ4QT6X.js → chunk-UDXRDFHN.js} +92 -91
- package/dist/bundle/{chunk-CMQ34EZL.js → chunk-UT6G2X7T.js} +4 -3
- package/dist/bundle/{chunk-S5M4HFOZ.js → chunk-UTVANQN5.js} +1 -1
- package/dist/bundle/{chunk-H2UTBYFC.js → chunk-UVYY5EIS.js} +1 -1
- package/dist/bundle/{chunk-G5IMOOPB.js → chunk-Y3VNNLUT.js} +1 -1
- package/dist/bundle/{chunk-TPFLD4OM.js → chunk-Y5PJQPMQ.js} +1 -1
- package/dist/bundle/{chunk-WULARSC4.js → chunk-YBQ753RP.js} +20 -20
- package/dist/bundle/{chunk-3IXKDIPH.js → chunk-YD6ZQ6LM.js} +44 -42
- package/dist/bundle/{chunk-BYYSVINK.js → chunk-ZBH7Z6WX.js} +2 -2
- package/dist/bundle/{command-contract-ZGFJTLB2.js → command-contract-RICU4OWW.js} +12 -12
- package/dist/bundle/{echarts-UEQDIHVQ.js → echarts-2YP32GX5.js} +2 -2
- package/dist/bundle/{embed-5DPZKRW5.js → embed-QNWVBCL5.js} +3 -3
- package/dist/bundle/{embedder-NBQXDXAO.js → embedder-ENS7ARPP.js} +6 -6
- package/dist/bundle/{entry-EE6YRAP4.js → entry-MPYSQPZO.js} +3 -3
- package/dist/bundle/{first-run-OSEVVWNT.js → first-run-YLB7RNGP.js} +5 -5
- package/dist/bundle/{first-screen-753THOU6.js → first-screen-AYOE4JFC.js} +13 -13
- package/dist/bundle/{identity-LNH33PN3.js → identity-XQLO7NYW.js} +1 -1
- package/dist/bundle/{instructions-PYGVIT7I.js → instructions-5F4XG3B6.js} +3 -1
- package/dist/bundle/{node-3OBKCX6M.js → node-JOUDFPFN.js} +2 -2
- package/dist/bundle/{node-sqlite-DMMTDRFB.js → node-sqlite-ZY6ZFFXS.js} +2 -2
- package/dist/bundle/{oauth-FX5DDCRS.js → oauth-KOR3ZNTA.js} +4 -4
- package/dist/bundle/{open-G6QRQAAL.js → open-JACXAGY5.js} +1 -1
- package/dist/bundle/{process-47MMIFIJ.js → process-7W3X5VME.js} +1 -1
- package/dist/bundle/{program-LBHBWRK5.js → program-NSZWGHNJ.js} +40 -40
- package/dist/bundle/{prompt-CJ6Y4JYC.js → prompt-CRRG5UB6.js} +2 -2
- package/dist/bundle/{recognize-7BLTOI45.js → recognize-ASXEB45M.js} +3 -3
- package/dist/bundle/{remote-Q4A4JY6U.js → remote-CB3GAXGJ.js} +4 -4
- package/dist/bundle/{rerank-CQAR46L3.js → rerank-PDD5BPID.js} +4 -4
- package/dist/bundle/{serve-2UO2YMMG.js → serve-M4XFAYUM.js} +6 -6
- package/dist/bundle/{server-FMKC4RLL.js → server-IN673OYO.js} +26 -26
- package/dist/bundle/server-ISWPSKQ6.js +55 -0
- package/dist/bundle/{state-RNWN2RDY.js → state-626GOOVZ.js} +3 -3
- package/dist/bundle/{store-BBHTR477.js → store-6JM4HJU5.js} +7 -7
- package/dist/bundle/store-maintenance-command-DI2UX4V3.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/tg-cli/SKILL.md +1 -0
- package/dist/bundle/store-maintenance-command-GD6OLRXH.js +0 -44
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
readHttpLock,
|
|
13
13
|
readStored,
|
|
14
14
|
signedInClients
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-6YUFPSSE.js";
|
|
16
|
+
import "./chunk-54RJDS3X.js";
|
|
17
|
+
import "./chunk-B7TTM75D.js";
|
|
18
18
|
import "./chunk-T4SDOYPY.js";
|
|
19
19
|
import "./chunk-67SRVSPU.js";
|
|
20
20
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -53,14 +53,14 @@ import {
|
|
|
53
53
|
threadConversation,
|
|
54
54
|
titlePart,
|
|
55
55
|
vectorIndexCounts
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-QVTCOBN5.js";
|
|
57
|
+
import "./chunk-3XZQQGCB.js";
|
|
58
|
+
import "./chunk-GZ5CR5QB.js";
|
|
59
|
+
import "./chunk-PHQTSF44.js";
|
|
60
60
|
import "./chunk-O5EHUB2V.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-Y5PJQPMQ.js";
|
|
62
|
+
import "./chunk-KRLCUBII.js";
|
|
63
|
+
import "./chunk-Y3VNNLUT.js";
|
|
64
64
|
import "./chunk-T4SDOYPY.js";
|
|
65
65
|
import "./chunk-67SRVSPU.js";
|
|
66
66
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
buildStems,
|
|
5
|
+
storeMaintenanceCommands,
|
|
6
|
+
storeSummary
|
|
7
|
+
} from "./chunk-YD6ZQ6LM.js";
|
|
8
|
+
import "./chunk-HOR7DS3P.js";
|
|
9
|
+
import "./chunk-P3WU6UYJ.js";
|
|
10
|
+
import "./chunk-3GGU65YR.js";
|
|
11
|
+
import "./chunk-2ABQZVK4.js";
|
|
12
|
+
import "./chunk-GE22MYA6.js";
|
|
13
|
+
import "./chunk-UT6G2X7T.js";
|
|
14
|
+
import "./chunk-FRZHF2X6.js";
|
|
15
|
+
import "./chunk-VMU4SGCE.js";
|
|
16
|
+
import "./chunk-MFS52LTZ.js";
|
|
17
|
+
import "./chunk-BI2AXVHY.js";
|
|
18
|
+
import "./chunk-N6VHHMSZ.js";
|
|
19
|
+
import "./chunk-54RJDS3X.js";
|
|
20
|
+
import "./chunk-B7TTM75D.js";
|
|
21
|
+
import "./chunk-LSQUNABH.js";
|
|
22
|
+
import "./chunk-LOFG3Q35.js";
|
|
23
|
+
import "./chunk-QY7MW7HK.js";
|
|
24
|
+
import "./chunk-MCD2GANK.js";
|
|
25
|
+
import "./chunk-LJCGQMGN.js";
|
|
26
|
+
import "./chunk-QVTCOBN5.js";
|
|
27
|
+
import "./chunk-3XZQQGCB.js";
|
|
28
|
+
import "./chunk-GZ5CR5QB.js";
|
|
29
|
+
import "./chunk-PHQTSF44.js";
|
|
30
|
+
import "./chunk-O5EHUB2V.js";
|
|
31
|
+
import "./chunk-Y5PJQPMQ.js";
|
|
32
|
+
import "./chunk-KRLCUBII.js";
|
|
33
|
+
import "./chunk-Y3VNNLUT.js";
|
|
34
|
+
import "./chunk-MB3PCNRL.js";
|
|
35
|
+
import "./chunk-7WHM3KNI.js";
|
|
36
|
+
import "./chunk-T4SDOYPY.js";
|
|
37
|
+
import "./chunk-67SRVSPU.js";
|
|
38
|
+
import "./chunk-Y5E2WNWB.js";
|
|
39
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
40
|
+
export {
|
|
41
|
+
buildStems,
|
|
42
|
+
storeMaintenanceCommands,
|
|
43
|
+
storeSummary
|
|
44
|
+
};
|
package/dist/bundle/tg.js
CHANGED
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
// dist/bin/tg.js
|
|
16
16
|
import { enableCompileCache } from "node:module";
|
|
17
17
|
enableCompileCache();
|
|
18
|
-
var [{ startCli }, { TG }] = await Promise.all([import("./entry-
|
|
18
|
+
var [{ startCli }, { TG }] = await Promise.all([import("./entry-MPYSQPZO.js"), import("./identity-XQLO7NYW.js")]);
|
|
19
19
|
await startCli({
|
|
20
20
|
app: TG,
|
|
21
21
|
sqlite: true,
|
|
22
22
|
// A static import would load the whole program, and its SQLite, before ensureSqlite could swap it.
|
|
23
|
-
run: /* @__PURE__ */ __name(async ({ args }) => (await import("./program-
|
|
23
|
+
run: /* @__PURE__ */ __name(async ({ args }) => (await import("./program-NSZWGHNJ.js")).run(args), "run"),
|
|
24
24
|
fail: /* @__PURE__ */ __name((error, { tty }) => {
|
|
25
25
|
const object = errorObjectOf(error);
|
|
26
26
|
process.stderr.write(`${renderError(object, { cli: TG.command, interactive: tty })}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.104.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "0.
|
|
1
|
+
export const VERSION = "0.104.0";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/tg-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.104.0",
|
|
4
4
|
"description": "A local command line interface for a personal Telegram account, built for agents and scripts",
|
|
5
5
|
"mcpName": "dev.wirecat/tg-cli",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@mtcute/node": "0.32.7",
|
|
73
73
|
"@wirecat/cli-base": "0.65.0",
|
|
74
|
-
"@wirecat/cli-core": "0.
|
|
74
|
+
"@wirecat/cli-core": "0.473.0",
|
|
75
75
|
"commander": "15.0.0",
|
|
76
76
|
"undici": "8.12.3",
|
|
77
77
|
"valibot": "1.5.0"
|
package/skills/tg-cli/SKILL.md
CHANGED
|
@@ -42,6 +42,7 @@ See the [CLI contract](https://github.com/WireCatLabs/tg-cli/blob/main/docs/cli-
|
|
|
42
42
|
|
|
43
43
|
The command line is the default. MCP is the rare case for a client that cannot run commands (a chat app,
|
|
44
44
|
a remote agent): `tg <profile> mcp serve` starts the server, `tg <profile> mcp config` prints the client entry.
|
|
45
|
+
One server for several profiles: `tg mcp serve --profiles work,personal` or `--profiles all`; with neither it refuses.
|
|
45
46
|
Its permissions are the profile's, the same as on the command line. Prefer the commands above when you can run them.
|
|
46
47
|
MCP uses `tg_tools_search`, then `tg_read` or `tg_write` with `{command, arguments}`.
|
|
47
48
|
Use the CLI path such as `stats messages show`.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
buildStems,
|
|
5
|
-
storeMaintenanceCommands,
|
|
6
|
-
storeSummary
|
|
7
|
-
} from "./chunk-3IXKDIPH.js";
|
|
8
|
-
import "./chunk-OGVBRRWY.js";
|
|
9
|
-
import "./chunk-MHHDVR4G.js";
|
|
10
|
-
import "./chunk-ZHXSRYJ5.js";
|
|
11
|
-
import "./chunk-2ABQZVK4.js";
|
|
12
|
-
import "./chunk-EQHQ2AX3.js";
|
|
13
|
-
import "./chunk-CMQ34EZL.js";
|
|
14
|
-
import "./chunk-EMC57SOZ.js";
|
|
15
|
-
import "./chunk-VMU4SGCE.js";
|
|
16
|
-
import "./chunk-MFS52LTZ.js";
|
|
17
|
-
import "./chunk-BV4N333Y.js";
|
|
18
|
-
import "./chunk-AUKAZRF6.js";
|
|
19
|
-
import "./chunk-VZN5LD26.js";
|
|
20
|
-
import "./chunk-RD7SSY7H.js";
|
|
21
|
-
import "./chunk-Z2DPNTSU.js";
|
|
22
|
-
import "./chunk-YI72UVTJ.js";
|
|
23
|
-
import "./chunk-NKN54EDN.js";
|
|
24
|
-
import "./chunk-LAYPLF7G.js";
|
|
25
|
-
import "./chunk-RMC2S3F4.js";
|
|
26
|
-
import "./chunk-KQ5BUI5T.js";
|
|
27
|
-
import "./chunk-SSV37M5T.js";
|
|
28
|
-
import "./chunk-KCVDWZWS.js";
|
|
29
|
-
import "./chunk-3QX6SOEO.js";
|
|
30
|
-
import "./chunk-O5EHUB2V.js";
|
|
31
|
-
import "./chunk-TPFLD4OM.js";
|
|
32
|
-
import "./chunk-6N25NZOE.js";
|
|
33
|
-
import "./chunk-G5IMOOPB.js";
|
|
34
|
-
import "./chunk-537O7OVE.js";
|
|
35
|
-
import "./chunk-TEO2KP52.js";
|
|
36
|
-
import "./chunk-T4SDOYPY.js";
|
|
37
|
-
import "./chunk-67SRVSPU.js";
|
|
38
|
-
import "./chunk-Y5E2WNWB.js";
|
|
39
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
40
|
-
export {
|
|
41
|
-
buildStems,
|
|
42
|
-
storeMaintenanceCommands,
|
|
43
|
-
storeSummary
|
|
44
|
-
};
|