@wirecat/tg-cli 0.130.0 → 0.132.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-2XFPXBTA.js → adapter-OXVMOWVE.js} +60 -60
- package/dist/bundle/{all-profiles-GXFPZLYU.js → all-profiles-6OQC7PBL.js} +9 -9
- package/dist/bundle/{anthropic-FHS5XNK5.js → anthropic-YFMIHFW5.js} +5 -5
- package/dist/bundle/{app-server-IZMFSFP2.js → app-server-S7CJPJXN.js} +52 -52
- package/dist/bundle/{bot-api-V3ZJ75KE.js → bot-api-KJ6EZ4R6.js} +61 -61
- package/dist/bundle/{bot-history-EJQOD4AQ.js → bot-history-JYCXDFW4.js} +22 -22
- package/dist/bundle/{bun-GBAZFRCV.js → bun-FVTOBYZ2.js} +2 -2
- package/dist/bundle/{bun-sqlite-JB4BX6X7.js → bun-sqlite-KDGWBNOR.js} +6 -6
- package/dist/bundle/{chunk-KY3JLXW2.js → chunk-2LZD2VFV.js} +4 -4
- package/dist/bundle/{chunk-JUFLELQ7.js → chunk-2UGSIHLV.js} +2 -2
- package/dist/bundle/{chunk-TGRB4SSZ.js → chunk-3QHKZLBU.js} +4 -4
- package/dist/bundle/{chunk-6M3FAHPS.js → chunk-42MXCMW6.js} +3 -3
- package/dist/bundle/{chunk-HT6OFANN.js → chunk-44A2XRDE.js} +20 -20
- package/dist/bundle/{chunk-QJLCEOAP.js → chunk-4CKYANQH.js} +1 -1
- package/dist/bundle/{chunk-AUNNJDVD.js → chunk-4EDJJQJI.js} +28 -8
- package/dist/bundle/{chunk-2JZJPVBH.js → chunk-4YB7JU2W.js} +6 -6
- package/dist/bundle/{chunk-CLG2ISQH.js → chunk-4ZTVJHWU.js} +4 -4
- package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-5RDNBG7D.js} +2 -2
- package/dist/bundle/{chunk-6JBRQ6PM.js → chunk-5UPEEMEF.js} +61 -19
- package/dist/bundle/{chunk-SYZXOEHY.js → chunk-6LPUK62N.js} +3 -3
- package/dist/bundle/{chunk-NRCY3WBC.js → chunk-74UPKW7H.js} +2 -2
- package/dist/bundle/{chunk-QDEP2QOA.js → chunk-7SEVVE3X.js} +3 -3
- package/dist/bundle/{chunk-PS7ZS5HD.js → chunk-A5D3J7XZ.js} +4 -4
- package/dist/bundle/{chunk-3XMUP55N.js → chunk-AERP2QR6.js} +10 -10
- package/dist/bundle/{chunk-RZPMFVWM.js → chunk-AUZWIBHJ.js} +6 -6
- package/dist/bundle/{chunk-OWVQMK7G.js → chunk-B4LGDOG5.js} +528 -389
- package/dist/bundle/{chunk-B6NQJAUC.js → chunk-BLZEQVP4.js} +2 -2
- package/dist/bundle/{chunk-GGGBPWUS.js → chunk-BMI2NWFI.js} +8 -8
- package/dist/bundle/{chunk-EB2JE722.js → chunk-BSXS7VAC.js} +1 -1
- package/dist/bundle/{chunk-FIO5NMK3.js → chunk-CFWFESBO.js} +8 -8
- package/dist/bundle/{chunk-QFVIHBLD.js → chunk-DSJNZXTP.js} +1 -1
- package/dist/bundle/{chunk-F6CV4KUN.js → chunk-DXPGMUOR.js} +2 -2
- package/dist/bundle/{chunk-IV6SIKVH.js → chunk-EPR67IRV.js} +4 -4
- package/dist/bundle/{chunk-BMSS3PCY.js → chunk-ESOFH7PA.js} +37 -30
- package/dist/bundle/{chunk-XXW6PFAX.js → chunk-FIUH52FE.js} +1 -1
- package/dist/bundle/{chunk-4BJAQNJ5.js → chunk-FKGYXIN7.js} +7 -7
- package/dist/bundle/{chunk-VSPSHBAC.js → chunk-FPSRT2TX.js} +2 -2
- package/dist/bundle/{chunk-OKTRB4ZQ.js → chunk-HBSKP7OV.js} +1 -1
- package/dist/bundle/{chunk-RAFK5KXU.js → chunk-IY7CTAOQ.js} +9 -9
- package/dist/bundle/{chunk-66UG67CE.js → chunk-IYJ4B632.js} +14 -13
- package/dist/bundle/{chunk-FH4YIBBH.js → chunk-JDNDWZYS.js} +4 -4
- package/dist/bundle/{chunk-C4ALE7CH.js → chunk-JMJOWT4N.js} +1 -1
- package/dist/bundle/{chunk-ZRQQOGAZ.js → chunk-JNWKV3QV.js} +4 -4
- package/dist/bundle/{chunk-2LPODKIF.js → chunk-JPSRC732.js} +17 -115
- package/dist/bundle/{chunk-SZB5WRMI.js → chunk-JZJV3DYK.js} +2 -2
- package/dist/bundle/{chunk-S5UTBEV3.js → chunk-KJICORS4.js} +38 -37
- package/dist/bundle/{chunk-RPWYTOLI.js → chunk-LF6FACSW.js} +5 -5
- package/dist/bundle/{chunk-QJDHRBXL.js → chunk-LG3K5NHX.js} +7 -7
- package/dist/bundle/{chunk-6WGAWISN.js → chunk-LMGVPDXN.js} +2 -2
- package/dist/bundle/{chunk-EUL7HMUL.js → chunk-LZ3HFDYL.js} +2 -2
- package/dist/bundle/{chunk-B5RGPZDZ.js → chunk-M2TV6BDB.js} +7 -7
- package/dist/bundle/{chunk-3KZG63EH.js → chunk-N5LZ6L4D.js} +3 -3
- package/dist/bundle/{chunk-O2ULG7OO.js → chunk-NLRGMP7M.js} +3 -3
- package/dist/bundle/{chunk-GYCKRIRK.js → chunk-NWCFO37P.js} +3 -3
- package/dist/bundle/{chunk-QBNEWEJC.js → chunk-NWDADTPE.js} +3 -3
- package/dist/bundle/{chunk-42LRWOTT.js → chunk-O3AM32YN.js} +15 -15
- package/dist/bundle/{chunk-7F3LOHRB.js → chunk-O43PARFS.js} +170 -162
- package/dist/bundle/{chunk-IRWSZJYL.js → chunk-OGZZUDJJ.js} +54 -54
- package/dist/bundle/{chunk-M327UNS6.js → chunk-OIRNHSAH.js} +6 -6
- package/dist/bundle/{chunk-XHX5D5VE.js → chunk-PG37E63A.js} +174 -72
- package/dist/bundle/{chunk-PWQKGFS2.js → chunk-PR4F3TYK.js} +30 -30
- package/dist/bundle/{chunk-I5PILOTU.js → chunk-PYECFCPD.js} +1 -1
- package/dist/bundle/{chunk-MVFSWKTM.js → chunk-QNEAPLOP.js} +12 -12
- package/dist/bundle/{chunk-VTJ3AOTT.js → chunk-QS46C5SW.js} +17 -17
- package/dist/bundle/{chunk-X5H5NERR.js → chunk-SMQ45RZX.js} +6 -6
- package/dist/bundle/{chunk-IBSHQWIJ.js → chunk-U7PHJSTX.js} +2 -2
- package/dist/bundle/{chunk-CKJ73EF3.js → chunk-UAFSDTID.js} +1 -1
- package/dist/bundle/{chunk-HHUK3XO5.js → chunk-UGD4SCUI.js} +1 -1
- package/dist/bundle/{chunk-MS6YEIG5.js → chunk-WAVRUADL.js} +13 -13
- package/dist/bundle/{chunk-VXWDQDRU.js → chunk-Y57EKZZK.js} +795 -467
- package/dist/bundle/{chunk-LQPZDDDP.js → chunk-YAPO7QNO.js} +6 -6
- package/dist/bundle/{chunk-G2SMVYBU.js → chunk-YRXSNH3R.js} +2 -2
- package/dist/bundle/{chunk-OJMDKWWL.js → chunk-YSNQGOUI.js} +2268 -1354
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-YVI5SQPY.js} +1 -1
- package/dist/bundle/{chunk-GSHTLLCJ.js → chunk-ZJIGVT6Z.js} +2 -2
- package/dist/bundle/{chunk-LPT5T6PU.js → chunk-ZRW3DF25.js} +24 -24
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-ZZ32DXTH.js} +1 -1
- package/dist/bundle/command-contract-FRH7LBGE.js +37 -0
- package/dist/bundle/{command-server-entry-YR6ONDWO.js → command-server-entry-TM264M2J.js} +27 -27
- package/dist/bundle/{decode-VUKGWFSW.js → decode-RJFOSHCE.js} +5 -5
- package/dist/bundle/{dispatch-ST5FK2KI.js → dispatch-7OZP3X4O.js} +8 -8
- package/dist/bundle/{echarts-GOV5M733.js → echarts-PYKF4D7B.js} +2 -2
- package/dist/bundle/{embed-2IVIYNAJ.js → embed-JFN6Z5TG.js} +6 -6
- package/dist/bundle/{embedder-2HU7JYZK.js → embedder-WN54JIMY.js} +9 -9
- package/dist/bundle/{entry-CSTCXYI5.js → entry-Z6LO6N6S.js} +9 -9
- package/dist/bundle/{failure-GMUQKQ5K.js → failure-UONA2IA5.js} +2 -2
- package/dist/bundle/{first-run-3IZGXZT5.js → first-run-WQAKES7G.js} +12 -12
- package/dist/bundle/first-screen-4RFG22SA.js +35 -0
- package/dist/bundle/{instructions-YSXV6FAC.js → instructions-PR4BBBTM.js} +1 -1
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-O6ACR2DX.js} +2 -2
- package/dist/bundle/meeting-combined-MHWTZOF2.js +23 -0
- package/dist/bundle/{meeting-model-FQBDHGRU.js → meeting-model-YVTUOM4H.js} +11 -11
- package/dist/bundle/{meeting-semantic-ONNEOJX5.js → meeting-semantic-X4KG6RNV.js} +6 -6
- package/dist/bundle/{node-FMQWCZRS.js → node-OVS5LTVZ.js} +2 -2
- package/dist/bundle/{node-sqlite-YN5OKOC6.js → node-sqlite-LC44SM4Z.js} +7 -7
- package/dist/bundle/{oauth-EW7PTZVT.js → oauth-NSVUFQCW.js} +7 -7
- package/dist/bundle/{open-Q2RDY344.js → open-XN5SJFVY.js} +5 -5
- package/dist/bundle/{openai-STON6G3O.js → openai-WOYZHJNL.js} +15 -15
- package/dist/bundle/{process-OQUC2TW3.js → process-UFBRGTQC.js} +1 -1
- package/dist/bundle/{program-N5BT75OC.js → program-RAGBRRQH.js} +65 -65
- package/dist/bundle/{prompt-WHVF7UTW.js → prompt-6HAKBUQN.js} +5 -5
- package/dist/bundle/{proxy-transport-A4MRO3PF.js → proxy-transport-5EJVFUTC.js} +5 -5
- package/dist/bundle/{recognize-YDQWMXNI.js → recognize-CN5COBVJ.js} +4 -4
- package/dist/bundle/{remote-477LQHP6.js → remote-STX5AMGE.js} +9 -9
- package/dist/bundle/{rerank-4YPB26FG.js → rerank-ZCOWTXIJ.js} +7 -7
- package/dist/bundle/{serve-FXJNUOTS.js → serve-XMQEOIG2.js} +9 -9
- package/dist/bundle/{server-2S6HFBGR.js → server-PGGUD3DM.js} +44 -44
- package/dist/bundle/server-WTNYWCZ4.js +69 -0
- package/dist/bundle/{sqlite-runtime-RXYNJYMC.js → sqlite-runtime-PS4DSOIU.js} +6 -6
- package/dist/bundle/{state-I2GGYGRL.js → state-GL4ZC57O.js} +6 -6
- package/dist/bundle/{store-KX3AAQZH.js → store-HJ76TLWD.js} +19 -19
- package/dist/bundle/{store-VQXIB6KV.js → store-VISFXSHL.js} +17 -17
- package/dist/bundle/store-maintenance-command-SMARMN5C.js +60 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/program.js +1 -1
- package/dist/program.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 +11 -9
- package/dist/bundle/command-contract-G752BLKA.js +0 -37
- package/dist/bundle/first-screen-7QSNCZIK.js +0 -35
- package/dist/bundle/meeting-combined-X4E3LSIJ.js +0 -23
- package/dist/bundle/server-UOSUTZNE.js +0 -69
- package/dist/bundle/store-maintenance-command-LW2MMDLY.js +0 -60
- /package/dist/bundle/{chunk-ZI3YTXSF.js → chunk-VKE77B3F.js} +0 -0
|
@@ -13,52 +13,52 @@ import {
|
|
|
13
13
|
privateFiles,
|
|
14
14
|
providerRequest,
|
|
15
15
|
withSqliteSidecars
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YSNQGOUI.js";
|
|
17
17
|
import {
|
|
18
18
|
parseProxy,
|
|
19
19
|
proxyAddress,
|
|
20
20
|
proxyError,
|
|
21
21
|
proxyLabel,
|
|
22
22
|
proxySetting
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2UGSIHLV.js";
|
|
24
24
|
import {
|
|
25
25
|
messengerContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JPSRC732.js";
|
|
27
27
|
import {
|
|
28
28
|
uploadBlob
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-B4LGDOG5.js";
|
|
30
30
|
import {
|
|
31
31
|
DESKTOP,
|
|
32
32
|
TG
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-LMGVPDXN.js";
|
|
34
34
|
import {
|
|
35
35
|
asFirstWord,
|
|
36
36
|
environmentOf,
|
|
37
37
|
fromFile,
|
|
38
38
|
settingsFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-O43PARFS.js";
|
|
40
40
|
import {
|
|
41
41
|
hostFetch
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-LF6FACSW.js";
|
|
43
43
|
import {
|
|
44
44
|
currentAttempt
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-KJICORS4.js";
|
|
46
46
|
import {
|
|
47
47
|
Credentials,
|
|
48
48
|
isMovedRun,
|
|
49
49
|
pathsAreOverridden,
|
|
50
50
|
resolvePaths
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-44A2XRDE.js";
|
|
52
52
|
import {
|
|
53
53
|
optional
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-4EDJJQJI.js";
|
|
55
55
|
import {
|
|
56
56
|
importFrom
|
|
57
57
|
} from "./chunk-Y5E2WNWB.js";
|
|
58
58
|
import {
|
|
59
59
|
CliError,
|
|
60
60
|
isCliError
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-5RDNBG7D.js";
|
|
62
62
|
import {
|
|
63
63
|
__name
|
|
64
64
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -189,7 +189,7 @@ var logOut = /* @__PURE__ */ __name(async (profile, sessionPath, context) => {
|
|
|
189
189
|
checks: checkWords("tg", profile),
|
|
190
190
|
...keyring ? { keyring } : {}
|
|
191
191
|
});
|
|
192
|
-
const { TelegramAdapter } = await import("./adapter-
|
|
192
|
+
const { TelegramAdapter } = await import("./adapter-OXVMOWVE.js");
|
|
193
193
|
const adapter = await TelegramAdapter.open({ credentials, sessionPath, ...through ? { proxy: through.proxy } : {} });
|
|
194
194
|
try {
|
|
195
195
|
await adapter.logout();
|
|
@@ -254,7 +254,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
|
|
|
254
254
|
throw new CliError(temporary ? "provider_unavailable" : "authentication_error", loggedIn ? `no Telegram app credentials found for profile "${profile}", although it has logged in on this machine \u2014 the keyring is probably out of reach (cron, ssh, an MCP client that trims the environment: set XDG_RUNTIME_DIR); \`tg ${asFirstWord(profile)}doctor\` shows it. Log in again only if they were removed` : `no Telegram app credentials for profile "${profile}" \u2014 run ${setup} in a local terminal first, or sign in from ${desktop}; agents: read \`tg skill show\``, temporary ? { reason: "credentials.unreachable" } : {});
|
|
255
255
|
}
|
|
256
256
|
const options = { credentials: resolved, sessionPath, ...connecting };
|
|
257
|
-
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-
|
|
257
|
+
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-OXVMOWVE.js")).TelegramAdapter.open({
|
|
258
258
|
...options,
|
|
259
259
|
...proxyOption(proxy()),
|
|
260
260
|
diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
|
|
@@ -979,7 +979,7 @@ var TELEGRAM_BOT = {
|
|
|
979
979
|
const botId = token.split(":", 1)[0] ?? "";
|
|
980
980
|
if (!/^\d+$/.test(botId))
|
|
981
981
|
throw new CliError("authentication_error", "the bot token has no valid bot id");
|
|
982
|
-
const reader = await (environment.botHistory ?? (await import("./bot-history-
|
|
982
|
+
const reader = await (environment.botHistory ?? (await import("./bot-history-JYCXDFW4.js")).openBotHistory)({
|
|
983
983
|
credentials,
|
|
984
984
|
sessionPath: botSessionFile(profile, botId, env),
|
|
985
985
|
token,
|
|
@@ -999,7 +999,7 @@ var TELEGRAM_BOT = {
|
|
|
999
999
|
return void 0;
|
|
1000
1000
|
let personal;
|
|
1001
1001
|
try {
|
|
1002
|
-
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-
|
|
1002
|
+
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-OXVMOWVE.js")).TelegramAdapter.open({
|
|
1003
1003
|
credentials,
|
|
1004
1004
|
sessionPath: personalPath,
|
|
1005
1005
|
checks: words,
|