@wirecat/tg-cli 0.110.0 → 0.112.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 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-JWUCHTXU.js → adapter-ILDV2YSZ.js} +70 -50
- package/dist/bundle/{all-profiles-OMRCKP54.js → all-profiles-4SH2Q4WV.js} +8 -8
- package/dist/bundle/{anthropic-WXFHH74P.js → anthropic-64SM23YO.js} +5 -5
- package/dist/bundle/{app-server-ILIPNO6T.js → app-server-SSYZWCDJ.js} +40 -40
- package/dist/bundle/{bot-api-KV765AZK.js → bot-api-OHAGQMES.js} +46 -46
- package/dist/bundle/{bot-history-3P6EIM5L.js → bot-history-AUFO7UL2.js} +15 -15
- package/dist/bundle/{bun-MJOYPPEN.js → bun-AHZX63TR.js} +2 -2
- package/dist/bundle/{bun-sqlite-GFRVRRDZ.js → bun-sqlite-KBIIODPV.js} +4 -4
- package/dist/bundle/{chunk-XLNYDJKG.js → chunk-2IGZLBTE.js} +2 -2
- package/dist/bundle/{chunk-ABVHA4K6.js → chunk-3AJO4GER.js} +5 -5
- package/dist/bundle/{chunk-RARYRHQA.js → chunk-3GL4AOOG.js} +1 -1
- package/dist/bundle/{chunk-SLAPUEMZ.js → chunk-3W7BU2BL.js} +6 -6
- package/dist/bundle/{chunk-MXIBRT6W.js → chunk-4IDJ7QCG.js} +4 -4
- package/dist/bundle/{chunk-QRH2AWBZ.js → chunk-4JXZKMXV.js} +77 -54
- package/dist/bundle/{chunk-6KESAYMZ.js → chunk-5BNYW5RA.js} +2 -2
- package/dist/bundle/{chunk-6WTLP2SI.js → chunk-5W72OARG.js} +8 -8
- package/dist/bundle/{chunk-RSZEEWOW.js → chunk-6KGENDPF.js} +2 -2
- package/dist/bundle/{chunk-4GOF43MW.js → chunk-7MFJFVUN.js} +1 -1
- package/dist/bundle/{chunk-4YOPRYEY.js → chunk-B3Y2KZRS.js} +109 -94
- package/dist/bundle/{chunk-RXWG7OWT.js → chunk-BIERCQVG.js} +1221 -557
- package/dist/bundle/{chunk-AXNBGLO5.js → chunk-BTAET4U3.js} +1 -1
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-COTC7HF3.js} +1 -1
- package/dist/bundle/{chunk-F7RWNBC2.js → chunk-D5JP2YWG.js} +2 -2
- package/dist/bundle/{chunk-W3B6EEZU.js → chunk-DFUTZGEV.js} +1 -1
- package/dist/bundle/{chunk-3KOF5T4N.js → chunk-DNYGJAEP.js} +4 -4
- package/dist/bundle/{chunk-3L2JTAVD.js → chunk-E4EJ2UTT.js} +2 -2
- package/dist/bundle/{chunk-YPLL3Q3M.js → chunk-EO7PQE3J.js} +119 -65
- package/dist/bundle/{chunk-YPEAEEHF.js → chunk-EPAOLRUL.js} +2 -2
- package/dist/bundle/{chunk-TJA3BWY3.js → chunk-GM44UNGL.js} +1 -1
- package/dist/bundle/{chunk-4I6HTOCM.js → chunk-GSGS62LX.js} +1 -1
- package/dist/bundle/{chunk-7ABA4EXC.js → chunk-GW7JRFTF.js} +3 -3
- package/dist/bundle/{chunk-5CMOXHQS.js → chunk-ICEJKOKO.js} +7 -7
- package/dist/bundle/{chunk-GPIORQAD.js → chunk-JIGYVVWA.js} +22 -22
- package/dist/bundle/{chunk-AZYVTDAE.js → chunk-JLB5LEXJ.js} +3 -3
- package/dist/bundle/{chunk-VOBMR7E5.js → chunk-JPRYFDOJ.js} +45 -44
- package/dist/bundle/{chunk-FYAHTTOB.js → chunk-JXTYTAWE.js} +11 -11
- package/dist/bundle/{chunk-F24EAGOU.js → chunk-JYOQMYNJ.js} +28 -28
- package/dist/bundle/{chunk-YWSNUUW5.js → chunk-K7VOCHVS.js} +6 -6
- package/dist/bundle/{chunk-KLOFBUXA.js → chunk-KGYPSBTI.js} +33 -23
- package/dist/bundle/{chunk-BWRCPMMC.js → chunk-KLNQXUDX.js} +18 -18
- package/dist/bundle/{chunk-3XTMVGTS.js → chunk-KYYAHIG2.js} +246 -229
- package/dist/bundle/{chunk-TDQVVXPF.js → chunk-MCXVGHL6.js} +85 -31
- package/dist/bundle/{chunk-32HEOKI2.js → chunk-NKACHGB2.js} +27 -14
- package/dist/bundle/{chunk-HCAYTAJN.js → chunk-NQKPXVLX.js} +2 -2
- package/dist/bundle/{chunk-L3YDXUDK.js → chunk-PDVSMGWO.js} +2 -2
- package/dist/bundle/{chunk-2YWQEG2P.js → chunk-PXUHQO66.js} +11 -11
- package/dist/bundle/{chunk-EO563SUX.js → chunk-QL4WBCL5.js} +7 -7
- package/dist/bundle/{chunk-MZRD776E.js → chunk-QMJGHSGN.js} +3 -3
- package/dist/bundle/{chunk-M3XIME74.js → chunk-RANORATG.js} +4 -4
- package/dist/bundle/{chunk-Q35J5LCO.js → chunk-RC7EBLHM.js} +10 -9
- package/dist/bundle/{chunk-VM7I5VKX.js → chunk-RHYMEHYK.js} +2 -2
- package/dist/bundle/{chunk-NDT22GBK.js → chunk-RPNRCFEE.js} +2 -2
- package/dist/bundle/{chunk-EB44Z44U.js → chunk-SC2DUQAK.js} +1 -1
- package/dist/bundle/{chunk-ONHHBPV3.js → chunk-SFJFBIYP.js} +2 -2
- package/dist/bundle/{chunk-SD5J5T7M.js → chunk-TOBJGMMA.js} +11 -11
- package/dist/bundle/{chunk-5ASW5BNM.js → chunk-TUJEJ4D5.js} +26 -13
- package/dist/bundle/{chunk-BYOEVYY2.js → chunk-UQOSZ2XX.js} +468 -351
- package/dist/bundle/{chunk-JDOSIWPN.js → chunk-UVRD447S.js} +3 -3
- package/dist/bundle/{chunk-4BMXELWN.js → chunk-UXCWUEN7.js} +5 -5
- package/dist/bundle/{chunk-54CWOD7V.js → chunk-WI2S6INJ.js} +6 -6
- package/dist/bundle/{chunk-NFBOZT7H.js → chunk-WWKXTKCE.js} +4 -4
- package/dist/bundle/{chunk-7LZBMZQM.js → chunk-XSYJKEA5.js} +4 -4
- package/dist/bundle/command-contract-4KVJJZ46.js +32 -0
- package/dist/bundle/{decode-3KBXZCFM.js → decode-FR3QHHJI.js} +4 -4
- package/dist/bundle/{echarts-24TVPFGC.js → echarts-VTV4C2OS.js} +2 -2
- package/dist/bundle/{embed-3BDPZ4Q7.js → embed-US7X5P5D.js} +5 -5
- package/dist/bundle/{embedder-EMVDEZFR.js → embedder-63Z7ZBYG.js} +8 -8
- package/dist/bundle/{entry-NQD6Z2BM.js → entry-B4J7IAG3.js} +5 -5
- package/dist/bundle/{first-run-ZBIO6C67.js → first-run-MXPPUGII.js} +9 -9
- package/dist/bundle/first-screen-GFYHUBBD.js +30 -0
- package/dist/bundle/{identity-EDGOOTOM.js → identity-AQWKU7SM.js} +3 -3
- package/dist/bundle/{instructions-N2WVMNFZ.js → instructions-GBR6DJTK.js} +1 -1
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-YJEQYYTR.js} +2 -2
- package/dist/bundle/{node-VBZAZHUS.js → node-QXGPMDH2.js} +2 -2
- package/dist/bundle/{node-sqlite-C3V64OAL.js → node-sqlite-L6CAMXQ2.js} +4 -4
- package/dist/bundle/{oauth-NZXELYDA.js → oauth-5RK6J4SG.js} +6 -6
- package/dist/bundle/{open-2XRUGMV7.js → open-A3IAG7U6.js} +3 -3
- package/dist/bundle/{openai-OLGTN3ZB.js → openai-YKNGCHVV.js} +13 -13
- package/dist/bundle/{process-CASPZ2DH.js → process-CGLNXFIU.js} +1 -1
- package/dist/bundle/{program-QPQDSGYA.js → program-AEDR6R5P.js} +48 -48
- package/dist/bundle/{prompt-ESZL7SGX.js → prompt-65CSCL2T.js} +4 -4
- package/dist/bundle/{proxy-transport-OROEVBCG.js → proxy-transport-U3QOYMQF.js} +4 -4
- package/dist/bundle/{recognize-LQ7QOG4T.js → recognize-ECRO6CFK.js} +3 -3
- package/dist/bundle/{remote-34XP4EDN.js → remote-6IEFZFGO.js} +6 -6
- package/dist/bundle/{rerank-7F6NLBCW.js → rerank-23GXWT2V.js} +6 -6
- package/dist/bundle/{serve-M6TTKXI4.js → serve-S65YTPZN.js} +8 -8
- package/dist/bundle/server-IH24WEAC.js +56 -0
- package/dist/bundle/{server-GLZ5M7PE.js → server-MVTBK7GV.js} +32 -32
- package/dist/bundle/{state-UKKPLMHS.js → state-TH3UVQAW.js} +5 -5
- package/dist/bundle/{store-J2MBIDJK.js → store-2WFTUSNG.js} +12 -10
- package/dist/bundle/store-maintenance-command-PUOU2CL6.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/telegram/adapter.d.ts +2 -0
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +3 -0
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/topics.d.ts +4 -2
- package/dist/telegram/topics.d.ts.map +1 -1
- package/dist/telegram/topics.js +21 -3
- package/dist/telegram/topics.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +16 -9
- package/dist/bundle/command-contract-TNSW7W6G.js +0 -32
- package/dist/bundle/first-screen-4HRCG7OX.js +0 -30
- package/dist/bundle/server-KOW7OKE2.js +0 -56
- package/dist/bundle/store-maintenance-command-64B57C3U.js +0 -45
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-WJWLHLQ7.js} +0 -0
|
@@ -3,9 +3,9 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NQKPXVLX.js";
|
|
7
|
+
import "./chunk-KLNQXUDX.js";
|
|
8
|
+
import "./chunk-QL4WBCL5.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
17
17
|
var customised = false;
|
|
18
18
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
19
19
|
try {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QL4WBCL5.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath,
|
|
6
6
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-COTC7HF3.js";
|
|
8
8
|
import {
|
|
9
9
|
loadConfigFile,
|
|
10
10
|
saveConfigFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KLNQXUDX.js";
|
|
12
12
|
import {
|
|
13
13
|
number,
|
|
14
14
|
object,
|
|
15
15
|
optional,
|
|
16
16
|
string
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QL4WBCL5.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
24
24
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
25
25
|
const path = scriptPath.replaceAll("\\", "/");
|
|
26
26
|
if (path.includes("/_npx/"))
|
|
@@ -34,7 +34,7 @@ var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
|
34
34
|
return path.includes("/dist/") ? "checkout" : "unknown";
|
|
35
35
|
}, "installerOf");
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
38
38
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
39
39
|
import { existsSync } from "node:fs";
|
|
40
40
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -2,19 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QL4WBCL5.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
11
11
|
var PRAGMAS = `
|
|
12
12
|
PRAGMA busy_timeout = 5000;
|
|
13
13
|
PRAGMA journal_mode = WAL;
|
|
14
14
|
PRAGMA foreign_keys = ON;
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
18
18
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
19
19
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
20
20
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
35
35
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
36
36
|
}, "isSqliteWarning");
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
39
39
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
40
40
|
const database = await openFile(path);
|
|
41
41
|
try {
|
|
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
48
|
}, "openCache");
|
|
49
49
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
50
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
51
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-KBIIODPV.js");
|
|
52
52
|
return await openWithBunSqlite(path);
|
|
53
53
|
}, "openUnderBun");
|
|
54
54
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
55
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
56
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-L6CAMXQ2.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GW7JRFTF.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|