@wirecat/tg-cli 0.107.0 → 0.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-PN5AXCJ7.js → adapter-YFWRJWL5.js} +37 -37
- package/dist/bundle/{all-profiles-SDHNKZQQ.js → all-profiles-GQIZSF4W.js} +5 -5
- package/dist/bundle/{anthropic-F3BXQLYB.js → anthropic-BKWEDKPU.js} +3 -3
- package/dist/bundle/{app-server-XDKMWVCD.js → app-server-RJV7ICLH.js} +34 -34
- package/dist/bundle/{bot-api-YXJL4CEV.js → bot-api-2PAH2JZ3.js} +38 -38
- package/dist/bundle/{bot-history-SDLHR7PV.js → bot-history-DPPZ43F4.js} +10 -10
- package/dist/bundle/{bun-SMH7PKUS.js → bun-Q7COX3Z5.js} +2 -2
- package/dist/bundle/{bun-sqlite-KB6PSTWH.js → bun-sqlite-YI4AYZXO.js} +2 -2
- package/dist/bundle/{chunk-P5KMLJQR.js → chunk-26PWIQPP.js} +194 -194
- package/dist/bundle/{chunk-465FPHSG.js → chunk-3562DVQ7.js} +7 -7
- package/dist/bundle/{chunk-GJS26XEB.js → chunk-3GXKJKIC.js} +4 -4
- package/dist/bundle/{chunk-VMKPRAIB.js → chunk-3HYDKCXB.js} +4 -4
- package/dist/bundle/{chunk-44UANKAI.js → chunk-4RDMNNVO.js} +14 -9
- package/dist/bundle/{chunk-STGY3EAZ.js → chunk-5HPXENE5.js} +1 -1
- package/dist/bundle/{chunk-BMXGEQDA.js → chunk-5P27JGGA.js} +4 -4
- package/dist/bundle/{chunk-DBZVF73F.js → chunk-6MZ2ZBX4.js} +2 -2
- package/dist/bundle/{chunk-YA44IPCS.js → chunk-6QTUYMGX.js} +1 -1
- package/dist/bundle/{chunk-CJJVFGFX.js → chunk-76OSISA3.js} +1 -1
- package/dist/bundle/{chunk-GGAG3G7B.js → chunk-77OOX2OE.js} +47 -47
- package/dist/bundle/{chunk-53QVFV34.js → chunk-AOUB2QFP.js} +1 -1
- package/dist/bundle/{chunk-PYRJO6B3.js → chunk-AS2BVZU3.js} +3 -3
- package/dist/bundle/{chunk-AWBJSYX6.js → chunk-B7TFWNKJ.js} +1 -1
- package/dist/bundle/{chunk-A4DS5ANQ.js → chunk-BL72ZIBV.js} +1 -1
- package/dist/bundle/{chunk-REJM262E.js → chunk-BOSMBW4I.js} +10 -10
- package/dist/bundle/{chunk-JAWXJILO.js → chunk-BT6PWDM6.js} +2 -2
- package/dist/bundle/{chunk-TEHAIU6I.js → chunk-CVWF3BFK.js} +42 -42
- package/dist/bundle/{chunk-NSQL3YRD.js → chunk-CZANI3DM.js} +20 -20
- package/dist/bundle/{chunk-BGVODG6P.js → chunk-D6DBVPES.js} +2 -2
- package/dist/bundle/{chunk-NUVHRCUK.js → chunk-DNOJKQXQ.js} +255 -247
- package/dist/bundle/{chunk-BYDDYOF4.js → chunk-DUWTG2GE.js} +7 -7
- package/dist/bundle/{chunk-53RW4KLL.js → chunk-EBB7RFCW.js} +1 -1
- package/dist/bundle/{chunk-X7M7YZPF.js → chunk-EWL3ZFOI.js} +5 -5
- package/dist/bundle/{chunk-NMTFZNFU.js → chunk-F67VPIJL.js} +26 -26
- package/dist/bundle/{chunk-WXIGT6FY.js → chunk-KQFR7ZAA.js} +11 -11
- package/dist/bundle/{chunk-RGNKRI5T.js → chunk-KZPZFPGB.js} +20 -20
- package/dist/bundle/{chunk-YSDA3EWT.js → chunk-LY2LFJMU.js} +92 -92
- package/dist/bundle/{chunk-5QBTHR57.js → chunk-LYLGLFWY.js} +2 -2
- package/dist/bundle/{chunk-KROO42KC.js → chunk-NCXCBVHO.js} +5 -5
- package/dist/bundle/{chunk-JZOXKRDG.js → chunk-OB5PPPXH.js} +6 -6
- package/dist/bundle/{chunk-IY7IEM56.js → chunk-ON67U6WV.js} +4 -4
- package/dist/bundle/{chunk-3UEFJ75D.js → chunk-PCMW3PW6.js} +1 -1
- package/dist/bundle/{chunk-NCWB3KXP.js → chunk-PQHYM2XC.js} +1 -1
- package/dist/bundle/{chunk-TKCZYJAT.js → chunk-QVIT6SQ5.js} +1779 -1519
- package/dist/bundle/{chunk-H4LIQVPN.js → chunk-R5YOKYTE.js} +9 -9
- package/dist/bundle/{chunk-LA2OUJK5.js → chunk-REI5TPS3.js} +8 -8
- package/dist/bundle/{chunk-P5UG655O.js → chunk-SONKULUF.js} +2 -2
- package/dist/bundle/{chunk-WFG7KFM4.js → chunk-TVA3NXXO.js} +1 -1
- package/dist/bundle/{chunk-6FSG6QZH.js → chunk-VK2YLSK7.js} +1 -1
- package/dist/bundle/{chunk-MOZX3JX3.js → chunk-WEDWIXIC.js} +2 -2
- package/dist/bundle/{chunk-TFV4UPQZ.js → chunk-WKSLGPZQ.js} +3 -3
- package/dist/bundle/{chunk-DFZBGU4G.js → chunk-WUF64WOG.js} +4 -4
- package/dist/bundle/{chunk-P4A27ETD.js → chunk-XZXOGHU5.js} +70 -46
- package/dist/bundle/{chunk-OIHAM73W.js → chunk-YJ6GFFEE.js} +1 -1
- package/dist/bundle/{chunk-WS3S7DXT.js → chunk-ZHHVNTBJ.js} +1 -1
- package/dist/bundle/{chunk-O7VQHFMZ.js → chunk-ZYBDAZFO.js} +1 -1
- package/dist/bundle/{command-contract-B4DA4MXP.js → command-contract-5GJV6EHG.js} +12 -12
- package/dist/bundle/{decode-WEP3HD56.js → decode-ZFAFVFWX.js} +2 -2
- package/dist/bundle/{echarts-MRMILSAF.js → echarts-SVXNTKGV.js} +2 -2
- package/dist/bundle/{embed-LCLTUVUD.js → embed-V755YE7O.js} +3 -3
- package/dist/bundle/{embedder-O4WNEXUC.js → embedder-MQAPNQBH.js} +6 -6
- package/dist/bundle/{entry-7HDX6BDR.js → entry-ULQ3VOMQ.js} +3 -3
- package/dist/bundle/{first-run-M7YVVQJS.js → first-run-64BTWXDR.js} +5 -5
- package/dist/bundle/{first-screen-MXW3UZFB.js → first-screen-YZCH4TEV.js} +13 -13
- package/dist/bundle/{identity-EEMHQOTN.js → identity-PW45VBUU.js} +1 -1
- package/dist/bundle/{instructions-YIH3J4TI.js → instructions-G3ZUIRRH.js} +1 -1
- package/dist/bundle/{node-YWT7RFN6.js → node-IDJXLZSX.js} +2 -2
- package/dist/bundle/node-sqlite-W22J37MG.js +62 -0
- package/dist/bundle/{oauth-CADZB7TT.js → oauth-Q52LBXDE.js} +4 -4
- package/dist/bundle/{open-AMRU27KK.js → open-YLD7VHEC.js} +1 -1
- package/dist/bundle/{process-JC76J5UD.js → process-OBESF2XG.js} +1 -1
- package/dist/bundle/{program-FI6MTY2V.js → program-EBMWHOKQ.js} +40 -40
- package/dist/bundle/{prompt-SPYTHKHN.js → prompt-FHHQF3MG.js} +2 -2
- package/dist/bundle/{recognize-G5VVM6MU.js → recognize-QNHKHGKM.js} +1 -1
- package/dist/bundle/{remote-Z3HW42CH.js → remote-RVZWRCCT.js} +4 -4
- package/dist/bundle/{rerank-QJ5NLZUU.js → rerank-KG2USEME.js} +4 -4
- package/dist/bundle/{serve-3I4C6Y5X.js → serve-I4MJKEQ4.js} +6 -6
- package/dist/bundle/server-AXMWFPNT.js +55 -0
- package/dist/bundle/{server-2L4BONHN.js → server-GV7SV3L6.js} +26 -26
- package/dist/bundle/{state-IXZYPH46.js → state-AJKHWFBU.js} +3 -3
- package/dist/bundle/{store-KS4XIA2R.js → store-L3HFSSGJ.js} +7 -7
- package/dist/bundle/store-maintenance-command-Y22ARSDR.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/dist/bundle/node-sqlite-LVHTONMA.js +0 -46
- package/dist/bundle/server-7TJ337SR.js +0 -55
- package/dist/bundle/store-maintenance-command-I3L24P22.js +0 -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-ULQ3VOMQ.js"), import("./identity-PW45VBUU.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-EBMWHOKQ.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.108.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.108.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.108.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.491.0",
|
|
75
75
|
"commander": "15.0.0",
|
|
76
76
|
"undici": "8.12.3",
|
|
77
77
|
"valibot": "1.5.0"
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
loadVectorExtension,
|
|
5
|
-
vectorExtension
|
|
6
|
-
} from "./chunk-CJJVFGFX.js";
|
|
7
|
-
import "./chunk-T4SDOYPY.js";
|
|
8
|
-
import "./chunk-67SRVSPU.js";
|
|
9
|
-
import "./chunk-Y5E2WNWB.js";
|
|
10
|
-
import {
|
|
11
|
-
__name
|
|
12
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
13
|
-
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.484.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._745f5d1ffb248c61bc3ef77928e0c2a2/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
|
|
15
|
-
import { DatabaseSync } from "node:sqlite";
|
|
16
|
-
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
17
|
-
var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
18
|
-
const extension = await vectorExtension();
|
|
19
|
-
const client = new DatabaseSync(path, { readOnly, allowExtension: true });
|
|
20
|
-
try {
|
|
21
|
-
loadVectorExtension(client, extension);
|
|
22
|
-
return client;
|
|
23
|
-
} catch (error) {
|
|
24
|
-
client.close();
|
|
25
|
-
throw error;
|
|
26
|
-
}
|
|
27
|
-
}, "nodeClient");
|
|
28
|
-
var cacheOverNodeSqlite = /* @__PURE__ */ __name((database) => {
|
|
29
|
-
return {
|
|
30
|
-
exec: /* @__PURE__ */ __name((sql) => database.exec(sql), "exec"),
|
|
31
|
-
prepare: /* @__PURE__ */ __name((sql) => {
|
|
32
|
-
const statement = database.prepare(sql);
|
|
33
|
-
return {
|
|
34
|
-
run: /* @__PURE__ */ __name((...parameters) => ({ changes: Number(statement.run(...parameters).changes) }), "run"),
|
|
35
|
-
get: /* @__PURE__ */ __name((...parameters) => statement.get(...parameters), "get"),
|
|
36
|
-
all: /* @__PURE__ */ __name((...parameters) => statement.all(...parameters), "all")
|
|
37
|
-
};
|
|
38
|
-
}, "prepare"),
|
|
39
|
-
close: /* @__PURE__ */ __name(() => database.close(), "close")
|
|
40
|
-
};
|
|
41
|
-
}, "cacheOverNodeSqlite");
|
|
42
|
-
export {
|
|
43
|
-
cacheOverNodeSqlite,
|
|
44
|
-
nodeClient,
|
|
45
|
-
openWithNodeSqlite
|
|
46
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
PER_RUN,
|
|
5
|
-
createServer,
|
|
6
|
-
envelope,
|
|
7
|
-
serveOverHttpUntilStopped,
|
|
8
|
-
serveOverStdio
|
|
9
|
-
} from "./chunk-NMTFZNFU.js";
|
|
10
|
-
import "./chunk-WXIGT6FY.js";
|
|
11
|
-
import "./chunk-RGNKRI5T.js";
|
|
12
|
-
import "./chunk-44UANKAI.js";
|
|
13
|
-
import "./chunk-STGY3EAZ.js";
|
|
14
|
-
import "./chunk-DBZVF73F.js";
|
|
15
|
-
import "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-NSQL3YRD.js";
|
|
17
|
-
import "./chunk-P5KMLJQR.js";
|
|
18
|
-
import "./chunk-GJS26XEB.js";
|
|
19
|
-
import "./chunk-BMXGEQDA.js";
|
|
20
|
-
import "./chunk-YSDA3EWT.js";
|
|
21
|
-
import "./chunk-GGAG3G7B.js";
|
|
22
|
-
import "./chunk-TFV4UPQZ.js";
|
|
23
|
-
import "./chunk-BYDDYOF4.js";
|
|
24
|
-
import "./chunk-VMU4SGCE.js";
|
|
25
|
-
import "./chunk-MFS52LTZ.js";
|
|
26
|
-
import "./chunk-P5UG655O.js";
|
|
27
|
-
import "./chunk-3UEFJ75D.js";
|
|
28
|
-
import "./chunk-DFZBGU4G.js";
|
|
29
|
-
import "./chunk-JAWXJILO.js";
|
|
30
|
-
import "./chunk-NCWB3KXP.js";
|
|
31
|
-
import "./chunk-A4DS5ANQ.js";
|
|
32
|
-
import "./chunk-YA44IPCS.js";
|
|
33
|
-
import "./chunk-5QBTHR57.js";
|
|
34
|
-
import "./chunk-X7M7YZPF.js";
|
|
35
|
-
import "./chunk-VMKPRAIB.js";
|
|
36
|
-
import "./chunk-TKCZYJAT.js";
|
|
37
|
-
import "./chunk-P4A27ETD.js";
|
|
38
|
-
import "./chunk-465FPHSG.js";
|
|
39
|
-
import "./chunk-IY7IEM56.js";
|
|
40
|
-
import "./chunk-O5EHUB2V.js";
|
|
41
|
-
import "./chunk-53RW4KLL.js";
|
|
42
|
-
import "./chunk-KROO42KC.js";
|
|
43
|
-
import "./chunk-6FSG6QZH.js";
|
|
44
|
-
import "./chunk-53QVFV34.js";
|
|
45
|
-
import "./chunk-T4SDOYPY.js";
|
|
46
|
-
import "./chunk-67SRVSPU.js";
|
|
47
|
-
import "./chunk-Y5E2WNWB.js";
|
|
48
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
49
|
-
export {
|
|
50
|
-
PER_RUN,
|
|
51
|
-
createServer,
|
|
52
|
-
envelope,
|
|
53
|
-
serveOverHttpUntilStopped,
|
|
54
|
-
serveOverStdio
|
|
55
|
-
};
|
|
@@ -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-TEHAIU6I.js";
|
|
8
|
-
import "./chunk-NSQL3YRD.js";
|
|
9
|
-
import "./chunk-P5KMLJQR.js";
|
|
10
|
-
import "./chunk-GJS26XEB.js";
|
|
11
|
-
import "./chunk-2ABQZVK4.js";
|
|
12
|
-
import "./chunk-GGAG3G7B.js";
|
|
13
|
-
import "./chunk-TFV4UPQZ.js";
|
|
14
|
-
import "./chunk-BYDDYOF4.js";
|
|
15
|
-
import "./chunk-VMU4SGCE.js";
|
|
16
|
-
import "./chunk-MFS52LTZ.js";
|
|
17
|
-
import "./chunk-P5UG655O.js";
|
|
18
|
-
import "./chunk-3UEFJ75D.js";
|
|
19
|
-
import "./chunk-JAWXJILO.js";
|
|
20
|
-
import "./chunk-NCWB3KXP.js";
|
|
21
|
-
import "./chunk-O7VQHFMZ.js";
|
|
22
|
-
import "./chunk-YA44IPCS.js";
|
|
23
|
-
import "./chunk-5QBTHR57.js";
|
|
24
|
-
import "./chunk-X7M7YZPF.js";
|
|
25
|
-
import "./chunk-VMKPRAIB.js";
|
|
26
|
-
import "./chunk-TKCZYJAT.js";
|
|
27
|
-
import "./chunk-P4A27ETD.js";
|
|
28
|
-
import "./chunk-465FPHSG.js";
|
|
29
|
-
import "./chunk-IY7IEM56.js";
|
|
30
|
-
import "./chunk-O5EHUB2V.js";
|
|
31
|
-
import "./chunk-53RW4KLL.js";
|
|
32
|
-
import "./chunk-KROO42KC.js";
|
|
33
|
-
import "./chunk-6FSG6QZH.js";
|
|
34
|
-
import "./chunk-BGVODG6P.js";
|
|
35
|
-
import "./chunk-53QVFV34.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
|
-
};
|