@wirecat/tg-cli 0.122.0 → 0.123.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/contracts/wirecat.json +15 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-ZI57T2L5.js → adapter-GAOG65O2.js} +46 -46
- package/dist/bundle/{all-profiles-7VXJF42C.js → all-profiles-HLE6PHNI.js} +8 -8
- package/dist/bundle/{anthropic-DKRXIWVV.js → anthropic-FZC4BS7T.js} +4 -4
- package/dist/bundle/{app-server-F5MKHZ7S.js → app-server-SHZNMV27.js} +40 -40
- package/dist/bundle/{bot-api-F24NWJT3.js → bot-api-LRS2KMDE.js} +46 -46
- package/dist/bundle/{bot-history-U3WM3A7S.js → bot-history-IJ7ZZKW5.js} +16 -16
- package/dist/bundle/{bun-OMTJAXGK.js → bun-FACL53HM.js} +2 -2
- package/dist/bundle/{bun-sqlite-HSYLO46A.js → bun-sqlite-B2MD7RTL.js} +8 -4
- package/dist/bundle/{chunk-ZNPRTCUO.js → chunk-3BUQXB7B.js} +7 -7
- package/dist/bundle/{chunk-DCGGZUNJ.js → chunk-3JISIGLP.js} +2 -2
- package/dist/bundle/{chunk-VDFEWSCS.js → chunk-3P7HWXDJ.js} +3 -3
- package/dist/bundle/{chunk-U6HEZPCR.js → chunk-3S6KZCZ7.js} +1 -1
- package/dist/bundle/{chunk-ARKB3M5X.js → chunk-4DCFLHLN.js} +3 -3
- package/dist/bundle/{chunk-VC6J7X76.js → chunk-5IHYZ6ED.js} +11 -11
- package/dist/bundle/{chunk-7DPWVKYS.js → chunk-5R5HGV2J.js} +2 -2
- package/dist/bundle/{chunk-DTTONQW7.js → chunk-6FK2Z75N.js} +2 -2
- package/dist/bundle/{chunk-GJBGZQHN.js → chunk-6KT5BTWL.js} +162 -149
- package/dist/bundle/{chunk-6LMEIELG.js → chunk-7EFJHLKW.js} +1 -1
- package/dist/bundle/{chunk-N7WDVH2O.js → chunk-ADI5R2MM.js} +29 -29
- package/dist/bundle/{chunk-YFEH7OWG.js → chunk-B6G3TNN4.js} +14 -14
- package/dist/bundle/{chunk-PG3V225O.js → chunk-BAB3ALHZ.js} +27 -24
- package/dist/bundle/{chunk-R2IW6JBV.js → chunk-BGUYYKS3.js} +48 -48
- package/dist/bundle/{chunk-4MFMUBHH.js → chunk-DEMGDKCX.js} +77 -77
- package/dist/bundle/{chunk-Y74WJL3M.js → chunk-E2Z4C6CQ.js} +2 -2
- package/dist/bundle/{chunk-FZKHFTKH.js → chunk-EABZ2CUG.js} +15 -14
- package/dist/bundle/{chunk-SODUFMDW.js → chunk-EISV5YWD.js} +1060 -913
- package/dist/bundle/{chunk-33ELXJRR.js → chunk-ENEMZAIJ.js} +10 -10
- package/dist/bundle/{chunk-7FWU4RON.js → chunk-EOUUI5FI.js} +3 -3
- package/dist/bundle/{chunk-VQL4RVXZ.js → chunk-FFHX7VKP.js} +1 -1
- package/dist/bundle/{chunk-7I6YVQHW.js → chunk-HJLTWT52.js} +1 -1
- package/dist/bundle/{chunk-ZKHXWSKD.js → chunk-I7K4OR5Q.js} +4 -4
- package/dist/bundle/chunk-KKMNMQMW.js +53 -0
- package/dist/bundle/{chunk-FHWUOFWX.js → chunk-MFN5MSIL.js} +3 -3
- package/dist/bundle/{chunk-NE3EGYPD.js → chunk-NYRAW4M5.js} +3 -3
- package/dist/bundle/{chunk-V4BPS7MH.js → chunk-OE5JMZSM.js} +6 -6
- package/dist/bundle/{chunk-W34QQMBK.js → chunk-OOWE2O5U.js} +1 -1
- package/dist/bundle/{chunk-HAR76KJG.js → chunk-PAHSIORC.js} +5 -5
- package/dist/bundle/{chunk-GJFICFQB.js → chunk-PZJXQMSZ.js} +1 -1
- package/dist/bundle/{chunk-7GCVON7M.js → chunk-PZQ2MQFX.js} +5 -5
- package/dist/bundle/{chunk-7X6YLKTK.js → chunk-Q74XVJFT.js} +1 -1
- package/dist/bundle/{chunk-O5A4IS2D.js → chunk-QLB3BFSN.js} +1 -1
- package/dist/bundle/{chunk-CB6AHU6H.js → chunk-QLXKWAET.js} +20 -11
- package/dist/bundle/{chunk-YDMKP7PO.js → chunk-QVMAZVSN.js} +1 -1
- package/dist/bundle/{chunk-CW3C7FSO.js → chunk-RDKPKS2P.js} +1 -1
- package/dist/bundle/{chunk-ALW7ROTM.js → chunk-SCGCDLI7.js} +1 -1
- package/dist/bundle/{chunk-WGGSFGNZ.js → chunk-SMFUKHG2.js} +24 -0
- package/dist/bundle/{chunk-DDSAJKPO.js → chunk-SNEJK4SN.js} +4 -4
- package/dist/bundle/{chunk-4N2WJYLE.js → chunk-STPYSD6W.js} +2 -2
- package/dist/bundle/{chunk-NU4RMUMQ.js → chunk-SWGGYBCW.js} +13 -13
- package/dist/bundle/{chunk-6DLRATDC.js → chunk-T5OO7VDT.js} +302 -260
- package/dist/bundle/{chunk-D3ODL4P7.js → chunk-U5FILNK6.js} +2 -2
- package/dist/bundle/{chunk-2UHANFLM.js → chunk-UB6J5HRW.js} +3 -3
- package/dist/bundle/{chunk-E3MFMMVY.js → chunk-UBFDPLFQ.js} +5 -5
- package/dist/bundle/{chunk-QROAXWDU.js → chunk-V23X3W2W.js} +7 -7
- package/dist/bundle/{chunk-UGEYQWEO.js → chunk-V4722KYX.js} +1 -1
- package/dist/bundle/{chunk-C5CB6RIX.js → chunk-V4JEZFW5.js} +1 -1
- package/dist/bundle/{chunk-2FXA32RJ.js → chunk-VVRWH5VH.js} +7 -7
- package/dist/bundle/{chunk-TKJZENAZ.js → chunk-WA7YED3Y.js} +1 -1
- package/dist/bundle/{chunk-LQRZUNYF.js → chunk-WSLTW6MI.js} +2 -2
- package/dist/bundle/{chunk-FYHFAOPM.js → chunk-XDL4L3OI.js} +9103 -8607
- package/dist/bundle/{chunk-27SVHRHV.js → chunk-Z5HHBTS5.js} +2 -2
- package/dist/bundle/{chunk-MFWWZ6XL.js → chunk-ZJPXRW65.js} +3 -3
- package/dist/bundle/{chunk-FATTEYZH.js → chunk-ZOBRYIUG.js} +1 -1
- package/dist/bundle/{chunk-RFFU6KQ5.js → chunk-ZQ3WGGKK.js} +12 -12
- package/dist/bundle/command-contract-HWSWHMO4.js +33 -0
- package/dist/bundle/{command-server-entry-N32NX4QW.js → command-server-entry-5LKDRLEX.js} +20 -20
- package/dist/bundle/{decode-ZKJWSFXF.js → decode-L4DQDHXA.js} +4 -4
- package/dist/bundle/{dispatch-U2DW6UI7.js → dispatch-PQSCFHEX.js} +1 -1
- package/dist/bundle/{echarts-QLVLIP73.js → echarts-6LES2JIV.js} +2 -2
- package/dist/bundle/{embed-LC6K7P3S.js → embed-T5MLKX75.js} +5 -5
- package/dist/bundle/{embedder-6C3OQBOV.js → embedder-56NMRLC5.js} +8 -8
- package/dist/bundle/{entry-5H6LB3MP.js → entry-U5GV6Y46.js} +7 -7
- package/dist/bundle/{failure-HJD7S5UA.js → failure-BX5HJAQE.js} +1 -1
- package/dist/bundle/{first-run-IOYQ4XQK.js → first-run-ISQ52V3I.js} +8 -8
- package/dist/bundle/first-screen-7L4AMZDO.js +31 -0
- package/dist/bundle/{instructions-SZUMEDY3.js → instructions-CJEXDI7E.js} +1 -1
- package/dist/bundle/{node-V76RRFIA.js → node-QLWTGZW7.js} +2 -2
- package/dist/bundle/{node-sqlite-2DTVOT7L.js → node-sqlite-X2C3RR2Q.js} +9 -5
- package/dist/bundle/{oauth-CT7EBDRY.js → oauth-VP3KMHLX.js} +6 -6
- package/dist/bundle/{open-G3VHOOMV.js → open-GLR5EUZS.js} +4 -4
- package/dist/bundle/{openai-F4K7MVTZ.js → openai-6CDCJ5LQ.js} +12 -12
- package/dist/bundle/{process-XH3KEHSF.js → process-7FABZ3T2.js} +1 -1
- package/dist/bundle/{program-FLGIHTHM.js → program-KUIAHJDX.js} +49 -49
- package/dist/bundle/{prompt-JWQ6UQ6R.js → prompt-XPHIZMD2.js} +4 -4
- package/dist/bundle/{proxy-transport-ENU2SJYT.js → proxy-transport-IIB7ZXIS.js} +4 -4
- package/dist/bundle/{recognize-Z26T3SYD.js → recognize-FVFYI3XX.js} +3 -3
- package/dist/bundle/{remote-7KHT6V3O.js → remote-3AMCG2P4.js} +6 -6
- package/dist/bundle/{rerank-6QVI74QY.js → rerank-XV4E25ML.js} +6 -6
- package/dist/bundle/{serve-WYDZTONY.js → serve-NVSZA4UN.js} +8 -8
- package/dist/bundle/{server-Y4J2NCFA.js → server-MBMPHRJE.js} +31 -31
- package/dist/bundle/server-MHVGYRQZ.js +61 -0
- package/dist/bundle/{state-YCXBKOD2.js → state-JBMB2QUR.js} +5 -5
- package/dist/bundle/{store-QECSDJRP.js → store-T4SCYTY2.js} +11 -11
- package/dist/bundle/store-maintenance-command-F7WQMTMP.js +49 -0
- package/dist/bundle/tg.js +6 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-Y52T5EMB.js +0 -35
- package/dist/bundle/command-contract-247AKZTE.js +0 -33
- package/dist/bundle/first-screen-NVK7PFX4.js +0 -31
- package/dist/bundle/server-UXQT7LZT.js +0 -61
- package/dist/bundle/store-maintenance-command-5YW6TRJA.js +0 -49
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readSharedSection,
|
|
5
5
|
writeSharedSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PAHSIORC.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
9
|
} from "./chunk-VUBZFMGP.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
15
15
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
16
16
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
17
17
|
var SECTION = "setup";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
privateFiles,
|
|
14
14
|
providerRequest,
|
|
15
15
|
withSqliteSidecars
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EISV5YWD.js";
|
|
17
17
|
import {
|
|
18
18
|
hostFetch
|
|
19
19
|
} from "./chunk-LVGX7VTD.js";
|
|
@@ -23,34 +23,34 @@ import {
|
|
|
23
23
|
proxyError,
|
|
24
24
|
proxyLabel,
|
|
25
25
|
proxySetting
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZOBRYIUG.js";
|
|
27
27
|
import {
|
|
28
28
|
messengerContext
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-EABZ2CUG.js";
|
|
30
30
|
import {
|
|
31
31
|
uploadBlob
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-T5OO7VDT.js";
|
|
33
33
|
import {
|
|
34
34
|
DESKTOP,
|
|
35
35
|
TG
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6FK2Z75N.js";
|
|
37
37
|
import {
|
|
38
38
|
asFirstWord,
|
|
39
39
|
environmentOf,
|
|
40
40
|
fromFile,
|
|
41
41
|
settingsFor
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-6KT5BTWL.js";
|
|
43
43
|
import {
|
|
44
44
|
currentAttempt
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-DEMGDKCX.js";
|
|
46
46
|
import {
|
|
47
47
|
Credentials,
|
|
48
48
|
pathsAreOverridden,
|
|
49
49
|
resolvePaths
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-3S6KZCZ7.js";
|
|
51
51
|
import {
|
|
52
52
|
optional
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-SMFUKHG2.js";
|
|
54
54
|
import {
|
|
55
55
|
importFrom
|
|
56
56
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -173,7 +173,7 @@ var logOut = /* @__PURE__ */ __name(async (profile, sessionPath, context) => {
|
|
|
173
173
|
checks: checkWords("tg", profile),
|
|
174
174
|
...keyring ? { keyring } : {}
|
|
175
175
|
});
|
|
176
|
-
const { TelegramAdapter } = await import("./adapter-
|
|
176
|
+
const { TelegramAdapter } = await import("./adapter-GAOG65O2.js");
|
|
177
177
|
const adapter = await TelegramAdapter.open({ credentials, sessionPath, ...through ? { proxy: through.proxy } : {} });
|
|
178
178
|
try {
|
|
179
179
|
await adapter.logout();
|
|
@@ -236,7 +236,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
|
|
|
236
236
|
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" } : {});
|
|
237
237
|
}
|
|
238
238
|
const options = { credentials: resolved, sessionPath, ...connecting };
|
|
239
|
-
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-
|
|
239
|
+
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-GAOG65O2.js")).TelegramAdapter.open({
|
|
240
240
|
...options,
|
|
241
241
|
...proxyOption(proxy()),
|
|
242
242
|
diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
|
|
@@ -961,7 +961,7 @@ var TELEGRAM_BOT = {
|
|
|
961
961
|
const botId = token.split(":", 1)[0] ?? "";
|
|
962
962
|
if (!/^\d+$/.test(botId))
|
|
963
963
|
throw new CliError("authentication_error", "the bot token has no valid bot id");
|
|
964
|
-
const reader = await (environment.botHistory ?? (await import("./bot-history-
|
|
964
|
+
const reader = await (environment.botHistory ?? (await import("./bot-history-IJ7ZZKW5.js")).openBotHistory)({
|
|
965
965
|
credentials,
|
|
966
966
|
sessionPath: botSessionFile(profile, botId, env),
|
|
967
967
|
token,
|
|
@@ -981,7 +981,7 @@ var TELEGRAM_BOT = {
|
|
|
981
981
|
return void 0;
|
|
982
982
|
let personal;
|
|
983
983
|
try {
|
|
984
|
-
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-
|
|
984
|
+
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-GAOG65O2.js")).TelegramAdapter.open({
|
|
985
985
|
credentials,
|
|
986
986
|
sessionPath: personalPath,
|
|
987
987
|
checks: words,
|