@wirecat/tg-cli 0.122.0 → 0.124.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 +62 -4
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-ZI57T2L5.js → adapter-GEIZVMWU.js} +55 -53
- package/dist/bundle/{all-profiles-7VXJF42C.js → all-profiles-EY4GJFWN.js} +10 -10
- package/dist/bundle/{anthropic-DKRXIWVV.js → anthropic-RIANJ7WM.js} +17 -10
- package/dist/bundle/{app-server-F5MKHZ7S.js → app-server-LW7WBFIF.js} +62 -52
- package/dist/bundle/{bot-api-F24NWJT3.js → bot-api-FHIQ66OM.js} +54 -52
- package/dist/bundle/{bot-history-U3WM3A7S.js → bot-history-O34YZEFH.js} +18 -18
- package/dist/bundle/{bun-OMTJAXGK.js → bun-MJWD4VGV.js} +2 -2
- package/dist/bundle/{bun-sqlite-HSYLO46A.js → bun-sqlite-LCHVO3OB.js} +9 -5
- package/dist/bundle/{chunk-DCGGZUNJ.js → chunk-2GFGZDWS.js} +2 -2
- package/dist/bundle/{chunk-7FWU4RON.js → chunk-2NG4JPP7.js} +4 -4
- package/dist/bundle/{chunk-UGEYQWEO.js → chunk-2YLIVDWJ.js} +2 -2
- package/dist/bundle/chunk-3PLMMFP6.js +1068 -0
- package/dist/bundle/{chunk-27SVHRHV.js → chunk-3VVZFBE2.js} +23 -4
- package/dist/bundle/{chunk-FYHFAOPM.js → chunk-42R4YO4L.js} +12064 -9579
- package/dist/bundle/{chunk-U6HEZPCR.js → chunk-4CIVGT4P.js} +57 -28
- package/dist/bundle/{chunk-CB6AHU6H.js → chunk-4EGB7GSW.js} +96 -19
- package/dist/bundle/chunk-54JPEGQA.js +71 -0
- package/dist/bundle/chunk-5EL6E6PW.js +13 -0
- package/dist/bundle/{chunk-QROAXWDU.js → chunk-7AWJZ6NJ.js} +8 -8
- package/dist/bundle/{chunk-2UHANFLM.js → chunk-A5RWKKBZ.js} +3 -3
- package/dist/bundle/{chunk-7I6YVQHW.js → chunk-ASEBKZFY.js} +2 -2
- package/dist/bundle/{chunk-SODUFMDW.js → chunk-BV3HZYOX.js} +7435 -6559
- package/dist/bundle/{chunk-FHWUOFWX.js → chunk-CDSSKK5J.js} +3 -3
- package/dist/bundle/{chunk-6LMEIELG.js → chunk-DFSLHF46.js} +1 -1
- package/dist/bundle/{chunk-Y74WJL3M.js → chunk-E66JBGZZ.js} +6 -6
- package/dist/bundle/{chunk-VUBZFMGP.js → chunk-E6VSARSU.js} +2 -2
- package/dist/bundle/{chunk-MFWWZ6XL.js → chunk-F3GHTPAO.js} +4 -4
- package/dist/bundle/{chunk-NU4RMUMQ.js → chunk-GUL6QLNI.js} +40 -21
- package/dist/bundle/{chunk-E3MFMMVY.js → chunk-HEV23NIB.js} +6 -6
- package/dist/bundle/{chunk-FZKHFTKH.js → chunk-HSRO77SW.js} +35 -29
- package/dist/bundle/{chunk-FATTEYZH.js → chunk-I4JUKRW7.js} +2 -2
- package/dist/bundle/{chunk-YDMKP7PO.js → chunk-IK6XKMLL.js} +1 -1
- package/dist/bundle/{chunk-DDSAJKPO.js → chunk-ISGXVFA4.js} +4 -4
- package/dist/bundle/chunk-IVFUSI7G.js +53 -0
- package/dist/bundle/{chunk-DTTONQW7.js → chunk-KVJSCJGZ.js} +2 -2
- package/dist/bundle/{chunk-NE3EGYPD.js → chunk-LKMZ53GC.js} +4 -7
- package/dist/bundle/{chunk-YFEH7OWG.js → chunk-M4W4Y5YR.js} +132 -40
- package/dist/bundle/{chunk-R2IW6JBV.js → chunk-N5UM63JW.js} +343 -112
- package/dist/bundle/{chunk-V4BPS7MH.js → chunk-NL4COYPY.js} +9 -9
- package/dist/bundle/{chunk-ZNPRTCUO.js → chunk-NQXVZ5WT.js} +15 -117
- package/dist/bundle/{chunk-4MFMUBHH.js → chunk-OH3IZ6GW.js} +2395 -2369
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-OIF4B526.js} +1 -1
- package/dist/bundle/{chunk-4W4EVVL4.js → chunk-OK4M4MWI.js} +4 -4
- package/dist/bundle/{chunk-W34QQMBK.js → chunk-OVDB5CQM.js} +1 -1
- package/dist/bundle/{chunk-7GCVON7M.js → chunk-PI4XXMPG.js} +6 -6
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-PJGOQSE5.js} +1 -1
- package/dist/bundle/{chunk-D3ODL4P7.js → chunk-PP4ZBLS4.js} +69 -6
- package/dist/bundle/{chunk-LVGX7VTD.js → chunk-PZ6H65D6.js} +4 -4
- package/dist/bundle/{chunk-ARKB3M5X.js → chunk-QFV36CAH.js} +4 -4
- package/dist/bundle/{chunk-7X6YLKTK.js → chunk-QGCVQRHV.js} +1 -1
- package/dist/bundle/{chunk-O5A4IS2D.js → chunk-QK4T3VN7.js} +1 -1
- package/dist/bundle/{chunk-VC6J7X76.js → chunk-QWAMX6CN.js} +12 -12
- package/dist/bundle/{chunk-ALW7ROTM.js → chunk-RBV4M2TC.js} +1 -1
- package/dist/bundle/{chunk-GJBGZQHN.js → chunk-RHJHOOUL.js} +354 -184
- package/dist/bundle/{chunk-4N2WJYLE.js → chunk-SGBH3D5D.js} +3 -3
- package/dist/bundle/{chunk-N7WDVH2O.js → chunk-UII3D3HR.js} +51 -51
- package/dist/bundle/{chunk-HAR76KJG.js → chunk-UP3J3YXH.js} +6 -6
- package/dist/bundle/{chunk-WGGSFGNZ.js → chunk-UR62DZ7Q.js} +48 -9
- package/dist/bundle/{chunk-RFFU6KQ5.js → chunk-VAKSXD4F.js} +13 -13
- package/dist/bundle/{chunk-TKJZENAZ.js → chunk-VGUWIHXD.js} +1 -1
- package/dist/bundle/chunk-VIIIC5LU.js +32 -0
- package/dist/bundle/{chunk-VDFEWSCS.js → chunk-VMWJGUVV.js} +14 -5
- package/dist/bundle/{chunk-C5CB6RIX.js → chunk-W4LMTNN2.js} +2 -2
- package/dist/bundle/{chunk-33ELXJRR.js → chunk-WKOVQ4OU.js} +14 -12
- package/dist/bundle/{chunk-6DLRATDC.js → chunk-WSLIXJET.js} +3817 -3378
- package/dist/bundle/{chunk-LQRZUNYF.js → chunk-XDHGM2Z7.js} +3 -3
- package/dist/bundle/{chunk-7DPWVKYS.js → chunk-XSGUG5WG.js} +4 -4
- package/dist/bundle/{chunk-CW3C7FSO.js → chunk-YQFO7WXQ.js} +2 -2
- package/dist/bundle/{chunk-2FXA32RJ.js → chunk-ZL5YG2WK.js} +14 -9
- package/dist/bundle/{chunk-VQL4RVXZ.js → chunk-ZNICTHSC.js} +1 -1
- package/dist/bundle/{chunk-PG3V225O.js → chunk-ZTMV5M3D.js} +32 -27
- package/dist/bundle/command-contract-UKOL455D.js +34 -0
- package/dist/bundle/{command-server-entry-N32NX4QW.js → command-server-entry-K52OEKIO.js} +24 -22
- package/dist/bundle/{decode-ZKJWSFXF.js → decode-OAE25LEJ.js} +5 -5
- package/dist/bundle/{dispatch-U2DW6UI7.js → dispatch-6GVTXIZ2.js} +8 -8
- package/dist/bundle/{echarts-QLVLIP73.js → echarts-EO4ZGKMN.js} +2 -2
- package/dist/bundle/{embed-LC6K7P3S.js → embed-TB2AS4AT.js} +6 -6
- package/dist/bundle/{embedder-6C3OQBOV.js → embedder-YKC42G6L.js} +9 -9
- package/dist/bundle/{entry-5H6LB3MP.js → entry-AB6FU7BN.js} +9 -8
- package/dist/bundle/{failure-HJD7S5UA.js → failure-CY7ACT6V.js} +2 -2
- package/dist/bundle/{first-run-IOYQ4XQK.js → first-run-CMQZHDI5.js} +11 -11
- package/dist/bundle/first-screen-XZ73W3VE.js +32 -0
- package/dist/bundle/{instructions-SZUMEDY3.js → instructions-RM3IB6ID.js} +1 -1
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-M5YCSWJJ.js} +2 -2
- package/dist/bundle/{node-V76RRFIA.js → node-D2PM62TA.js} +2 -2
- package/dist/bundle/{node-sqlite-2DTVOT7L.js → node-sqlite-UK5DE525.js} +10 -6
- package/dist/bundle/{oauth-CT7EBDRY.js → oauth-SKRG67A2.js} +7 -7
- package/dist/bundle/{open-G3VHOOMV.js → open-XP3SY62D.js} +5 -5
- package/dist/bundle/{openai-F4K7MVTZ.js → openai-Q3U46UPA.js} +21 -17
- package/dist/bundle/{process-XH3KEHSF.js → process-YJ4LHMJB.js} +1 -1
- package/dist/bundle/{program-FLGIHTHM.js → program-EEPEFKTR.js} +80 -63
- package/dist/bundle/{prompt-JWQ6UQ6R.js → prompt-WYTODP4U.js} +5 -5
- package/dist/bundle/{proxy-transport-ENU2SJYT.js → proxy-transport-HJMQ5QFT.js} +5 -5
- package/dist/bundle/{recognize-Z26T3SYD.js → recognize-K2S5QQU2.js} +4 -4
- package/dist/bundle/{remote-7KHT6V3O.js → remote-7RSAJ3JC.js} +9 -7
- package/dist/bundle/{rerank-6QVI74QY.js → rerank-RJX77BKD.js} +7 -7
- package/dist/bundle/{serve-WYDZTONY.js → serve-3E7NN3VW.js} +14 -14
- package/dist/bundle/server-ITHYDPWQ.js +62 -0
- package/dist/bundle/{server-Y4J2NCFA.js → server-O3KU56A4.js} +36 -35
- package/dist/bundle/sqlite-runtime-RCS5WSG5.js +19 -0
- package/dist/bundle/{state-YCXBKOD2.js → state-PLWSPSAG.js} +6 -6
- package/dist/bundle/store-3FYLH53Z.js +276 -0
- package/dist/bundle/{store-QECSDJRP.js → store-DWMKCXYL.js} +15 -13
- package/dist/bundle/store-maintenance-command-3UEKINRB.js +52 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/commands/account-removal.d.ts.map +1 -1
- package/dist/commands/account-removal.js +5 -3
- package/dist/commands/account-removal.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +21 -3
- package/dist/commands/session.js.map +1 -1
- package/dist/paths.d.ts +6 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +23 -2
- package/dist/paths.js.map +1 -1
- package/dist/program.d.ts +4 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -2
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunk-GJFICFQB.js +0 -27
- package/dist/bundle/chunk-Y52T5EMB.js +0 -35
- package/dist/bundle/chunk-ZKHXWSKD.js +0 -265
- 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
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-HVJJWJYQ.js} +0 -0
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
openSession,
|
|
5
5
|
truncated,
|
|
6
6
|
unit
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-PI4XXMPG.js";
|
|
8
|
+
import "./chunk-2NG4JPP7.js";
|
|
9
|
+
import "./chunk-IVFUSI7G.js";
|
|
10
|
+
import "./chunk-4CIVGT4P.js";
|
|
11
|
+
import "./chunk-UR62DZ7Q.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-E6VSARSU.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
24
24
|
import { join } from "node:path";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
|
|
27
27
|
var SIZE = 224;
|
|
28
28
|
var MEAN = [0.48145466, 0.4578275, 0.40821073];
|
|
29
29
|
var STD = [0.26862954, 0.26130258, 0.27577711];
|
|
@@ -62,7 +62,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
|
|
|
62
62
|
return pixels;
|
|
63
63
|
}, "preprocess");
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
66
66
|
var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
|
|
67
67
|
const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
|
|
68
68
|
const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
|
|
@@ -4,15 +4,16 @@ import {
|
|
|
4
4
|
firstRunAt,
|
|
5
5
|
openBrowser,
|
|
6
6
|
startCli
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-WKOVQ4OU.js";
|
|
8
|
+
import "./chunk-5EL6E6PW.js";
|
|
9
|
+
import "./chunk-LKMZ53GC.js";
|
|
10
|
+
import "./chunk-HEV23NIB.js";
|
|
11
|
+
import "./chunk-ZNICTHSC.js";
|
|
12
|
+
import "./chunk-54JPEGQA.js";
|
|
13
|
+
import "./chunk-4CIVGT4P.js";
|
|
14
|
+
import "./chunk-UR62DZ7Q.js";
|
|
14
15
|
import "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-E6VSARSU.js";
|
|
16
17
|
import "./chunk-ZVVMGPBJ.js";
|
|
17
18
|
export {
|
|
18
19
|
firstRunAt,
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
asksAtStart,
|
|
6
6
|
setupAtStart,
|
|
7
7
|
systemLanguage
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-QWAMX6CN.js";
|
|
9
|
+
import "./chunk-XSGUG5WG.js";
|
|
10
|
+
import "./chunk-PJGOQSE5.js";
|
|
11
|
+
import "./chunk-7AWJZ6NJ.js";
|
|
12
|
+
import "./chunk-OIF4B526.js";
|
|
13
13
|
import "./chunk-D72URWJE.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-SGBH3D5D.js";
|
|
15
|
+
import "./chunk-UP3J3YXH.js";
|
|
16
|
+
import "./chunk-IVFUSI7G.js";
|
|
17
|
+
import "./chunk-4CIVGT4P.js";
|
|
18
|
+
import "./chunk-UR62DZ7Q.js";
|
|
19
19
|
import "./chunk-Y5E2WNWB.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-E6VSARSU.js";
|
|
21
21
|
import "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
export {
|
|
23
23
|
askSetupQuestions,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
WIRECAT_TOOLS,
|
|
5
|
+
firstScreen,
|
|
6
|
+
installHelp
|
|
7
|
+
} from "./chunk-NQXVZ5WT.js";
|
|
8
|
+
import "./chunk-2ABQZVK4.js";
|
|
9
|
+
import "./chunk-F3GHTPAO.js";
|
|
10
|
+
import "./chunk-RHJHOOUL.js";
|
|
11
|
+
import "./chunk-ZL5YG2WK.js";
|
|
12
|
+
import "./chunk-SGBH3D5D.js";
|
|
13
|
+
import "./chunk-54JPEGQA.js";
|
|
14
|
+
import "./chunk-QK4T3VN7.js";
|
|
15
|
+
import "./chunk-VIIIC5LU.js";
|
|
16
|
+
import "./chunk-A5RWKKBZ.js";
|
|
17
|
+
import "./chunk-2NG4JPP7.js";
|
|
18
|
+
import "./chunk-OH3IZ6GW.js";
|
|
19
|
+
import "./chunk-3VVZFBE2.js";
|
|
20
|
+
import "./chunk-UP3J3YXH.js";
|
|
21
|
+
import "./chunk-HVJJWJYQ.js";
|
|
22
|
+
import "./chunk-IVFUSI7G.js";
|
|
23
|
+
import "./chunk-4CIVGT4P.js";
|
|
24
|
+
import "./chunk-UR62DZ7Q.js";
|
|
25
|
+
import "./chunk-Y5E2WNWB.js";
|
|
26
|
+
import "./chunk-E6VSARSU.js";
|
|
27
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
28
|
+
export {
|
|
29
|
+
WIRECAT_TOOLS,
|
|
30
|
+
firstScreen,
|
|
31
|
+
installHelp
|
|
32
|
+
};
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PJGOQSE5.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__toESM
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
|
|
16
16
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
17
17
|
var realRun = /* @__PURE__ */ __name((file, args) => {
|
|
18
18
|
const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QGCVQRHV.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
|
|
27
27
|
import { DatabaseSync } from "node:sqlite";
|
|
28
28
|
var nodeSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,23 +3,27 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YQFO7WXQ.js";
|
|
7
7
|
import {
|
|
8
8
|
TIME_LIMIT_FUNCTION,
|
|
9
9
|
beforeTimeLimit
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import
|
|
12
|
-
|
|
10
|
+
} from "./chunk-ZNICTHSC.js";
|
|
11
|
+
import {
|
|
12
|
+
refuseOwnerStoreInTests
|
|
13
|
+
} from "./chunk-IVFUSI7G.js";
|
|
14
|
+
import "./chunk-4CIVGT4P.js";
|
|
15
|
+
import "./chunk-UR62DZ7Q.js";
|
|
13
16
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-E6VSARSU.js";
|
|
15
18
|
import {
|
|
16
19
|
__name
|
|
17
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
21
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
|
|
20
23
|
import { DatabaseSync } from "node:sqlite";
|
|
21
24
|
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
22
25
|
var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
26
|
+
refuseOwnerStoreInTests(path);
|
|
23
27
|
const extension = await vectorExtension();
|
|
24
28
|
const client = new DatabaseSync(path, { readOnly, allowExtension: true });
|
|
25
29
|
try {
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
ownerLogin,
|
|
5
5
|
revokeAll
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-DDSAJKPO.js";
|
|
6
|
+
} from "./chunk-E66JBGZZ.js";
|
|
8
7
|
import "./chunk-5D4AEUVA.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-ISGXVFA4.js";
|
|
9
|
+
import "./chunk-CDSSKK5J.js";
|
|
10
|
+
import "./chunk-QK4T3VN7.js";
|
|
11
|
+
import "./chunk-4CIVGT4P.js";
|
|
12
|
+
import "./chunk-UR62DZ7Q.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-E6VSARSU.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
ownerLogin,
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-HEV23NIB.js";
|
|
10
|
+
import "./chunk-ZNICTHSC.js";
|
|
11
|
+
import "./chunk-4CIVGT4P.js";
|
|
12
|
+
import "./chunk-UR62DZ7Q.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-E6VSARSU.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
CAPABILITY_STATEMENTS,
|
|
@@ -1,42 +1,45 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
providerWaitMs
|
|
5
|
+
} from "./chunk-PZ6H65D6.js";
|
|
3
6
|
import {
|
|
4
7
|
SAMPLE_RATE,
|
|
5
8
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import
|
|
8
|
-
providerWaitMs
|
|
9
|
-
} from "./chunk-LVGX7VTD.js";
|
|
10
|
-
import "./chunk-RFFU6KQ5.js";
|
|
9
|
+
} from "./chunk-QFV36CAH.js";
|
|
10
|
+
import "./chunk-VAKSXD4F.js";
|
|
11
11
|
import {
|
|
12
|
-
OPENAI_URL
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
OPENAI_URL,
|
|
13
|
+
refuseModelAddress
|
|
14
|
+
} from "./chunk-PP4ZBLS4.js";
|
|
15
|
+
import "./chunk-PI4XXMPG.js";
|
|
16
|
+
import "./chunk-VIIIC5LU.js";
|
|
15
17
|
import {
|
|
16
18
|
OPENAI_TRANSCRIBE_MODEL,
|
|
17
19
|
VAD,
|
|
18
20
|
filesPresent,
|
|
19
21
|
modelsDirectory,
|
|
20
22
|
vadPath
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-2NG4JPP7.js";
|
|
24
|
+
import "./chunk-UP3J3YXH.js";
|
|
25
|
+
import "./chunk-IVFUSI7G.js";
|
|
23
26
|
import {
|
|
24
27
|
DEFAULT_RETRY,
|
|
25
28
|
backoffMs
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-4CIVGT4P.js";
|
|
30
|
+
import "./chunk-UR62DZ7Q.js";
|
|
28
31
|
import "./chunk-Y5E2WNWB.js";
|
|
29
32
|
import {
|
|
30
33
|
CliError
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-E6VSARSU.js";
|
|
32
35
|
import {
|
|
33
36
|
__name
|
|
34
37
|
} from "./chunk-ZVVMGPBJ.js";
|
|
35
38
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
37
40
|
import { setTimeout as wait } from "node:timers/promises";
|
|
38
41
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
40
43
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
41
44
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
42
45
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -57,7 +60,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
57
60
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
58
61
|
}, "encodeWav");
|
|
59
62
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
63
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
61
64
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
62
65
|
var JOINED_SECONDS = 0.2;
|
|
63
66
|
var PAD_SECONDS = 0.2;
|
|
@@ -179,7 +182,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
179
182
|
return pieces;
|
|
180
183
|
}, "piecesOf");
|
|
181
184
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
182
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
185
|
+
const { openSpeechCutter } = await import("./recognize-K2S5QQU2.js");
|
|
183
186
|
return openSpeechCutter(vadModel);
|
|
184
187
|
}, "openCutter");
|
|
185
188
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -188,6 +191,7 @@ var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
|
188
191
|
throw new CliError("validation_error", "a keyword must be a non-empty single line without < or > \u2014 OpenAI refuses the whole request otherwise");
|
|
189
192
|
}, "checkKeywords");
|
|
190
193
|
var transcribeOpenAI = /* @__PURE__ */ __name(async (audio, options) => {
|
|
194
|
+
refuseModelAddress(options.env ?? process.env, options.baseUrl ?? OPENAI_URL, "audio");
|
|
191
195
|
if (!options.apiKey)
|
|
192
196
|
throw new CliError("authentication_error", "no OpenAI key \u2014 `models keys set openai`, or OPENAI_API_KEY", {
|
|
193
197
|
reason: "transcription.no-key"
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-ZVVMGPBJ.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/embeddings/process.js
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { createInterface } from "node:readline";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -13,8 +13,9 @@ import {
|
|
|
13
13
|
pathsFor,
|
|
14
14
|
proxiedFetch,
|
|
15
15
|
proxySecrets,
|
|
16
|
-
resolveSettings
|
|
17
|
-
|
|
16
|
+
resolveSettings,
|
|
17
|
+
usesOwnersSession
|
|
18
|
+
} from "./chunk-GUL6QLNI.js";
|
|
18
19
|
import {
|
|
19
20
|
AGENTS,
|
|
20
21
|
MEMO_SCENARIOS,
|
|
@@ -34,8 +35,10 @@ import {
|
|
|
34
35
|
floodCommand,
|
|
35
36
|
guideCommand,
|
|
36
37
|
imagesCommand,
|
|
38
|
+
inSection,
|
|
37
39
|
inboxCommand,
|
|
38
40
|
loginQr,
|
|
41
|
+
mayRevoke,
|
|
39
42
|
mcpCommand,
|
|
40
43
|
mentionsCommand,
|
|
41
44
|
messagesCommand,
|
|
@@ -67,64 +70,63 @@ import {
|
|
|
67
70
|
topicsCommand,
|
|
68
71
|
upgradeCommand,
|
|
69
72
|
watchCommand
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-TKJZENAZ.js";
|
|
72
|
-
import "./chunk-LVGX7VTD.js";
|
|
73
|
+
} from "./chunk-BV3HZYOX.js";
|
|
73
74
|
import {
|
|
74
75
|
parseProxy,
|
|
75
76
|
proxyLabel
|
|
76
|
-
} from "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
77
|
+
} from "./chunk-I4JUKRW7.js";
|
|
78
|
+
import "./chunk-VGUWIHXD.js";
|
|
79
|
+
import "./chunk-PZ6H65D6.js";
|
|
80
|
+
import "./chunk-QWAMX6CN.js";
|
|
81
|
+
import "./chunk-WKOVQ4OU.js";
|
|
82
|
+
import "./chunk-RBV4M2TC.js";
|
|
83
|
+
import "./chunk-ZTMV5M3D.js";
|
|
79
84
|
import {
|
|
80
85
|
installSkill
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-RFFU6KQ5.js";
|
|
88
|
-
import {
|
|
89
|
-
servingProfiles
|
|
90
|
-
} from "./chunk-FHWUOFWX.js";
|
|
91
|
-
import "./chunk-D3ODL4P7.js";
|
|
92
|
-
import {
|
|
93
|
-
inSection
|
|
94
|
-
} from "./chunk-ZNPRTCUO.js";
|
|
95
|
-
import "./chunk-2ABQZVK4.js";
|
|
96
|
-
import "./chunk-VC6J7X76.js";
|
|
86
|
+
} from "./chunk-4EGB7GSW.js";
|
|
87
|
+
import "./chunk-ISGXVFA4.js";
|
|
88
|
+
import "./chunk-N5UM63JW.js";
|
|
89
|
+
import "./chunk-HSRO77SW.js";
|
|
90
|
+
import "./chunk-WSLIXJET.js";
|
|
91
|
+
import "./chunk-VAKSXD4F.js";
|
|
97
92
|
import {
|
|
98
93
|
latestVersion,
|
|
99
94
|
runUpdate,
|
|
100
95
|
updateNotice
|
|
101
|
-
} from "./chunk-
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import
|
|
96
|
+
} from "./chunk-XSGUG5WG.js";
|
|
97
|
+
import "./chunk-PJGOQSE5.js";
|
|
98
|
+
import {
|
|
99
|
+
servingProfiles
|
|
100
|
+
} from "./chunk-CDSSKK5J.js";
|
|
101
|
+
import "./chunk-PP4ZBLS4.js";
|
|
102
|
+
import "./chunk-3PLMMFP6.js";
|
|
103
|
+
import "./chunk-PI4XXMPG.js";
|
|
104
|
+
import "./chunk-NQXVZ5WT.js";
|
|
105
|
+
import "./chunk-2ABQZVK4.js";
|
|
106
|
+
import "./chunk-NL4COYPY.js";
|
|
107
|
+
import "./chunk-5EL6E6PW.js";
|
|
108
|
+
import "./chunk-IK6XKMLL.js";
|
|
104
109
|
import {
|
|
105
110
|
readSecret
|
|
106
|
-
} from "./chunk-
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-
|
|
109
|
-
import "./chunk-
|
|
110
|
-
import "./chunk-
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-7GCVON7M.js";
|
|
111
|
+
} from "./chunk-XDHGM2Z7.js";
|
|
112
|
+
import "./chunk-W4LMTNN2.js";
|
|
113
|
+
import "./chunk-42R4YO4L.js";
|
|
114
|
+
import "./chunk-7AWJZ6NJ.js";
|
|
115
|
+
import "./chunk-QGCVQRHV.js";
|
|
116
|
+
import "./chunk-VMWJGUVV.js";
|
|
113
117
|
import {
|
|
114
118
|
DESKTOP,
|
|
115
119
|
TG,
|
|
116
120
|
VERSION
|
|
117
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-KVJSCJGZ.js";
|
|
118
122
|
import {
|
|
119
123
|
installerOf
|
|
120
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-OIF4B526.js";
|
|
121
125
|
import "./chunk-D72URWJE.js";
|
|
122
|
-
import "./chunk-
|
|
123
|
-
import "./chunk-
|
|
124
|
-
import "./chunk-
|
|
125
|
-
import "./chunk-
|
|
126
|
-
import "./chunk-VQL4RVXZ.js";
|
|
127
|
-
import "./chunk-MFWWZ6XL.js";
|
|
126
|
+
import "./chunk-LKMZ53GC.js";
|
|
127
|
+
import "./chunk-HEV23NIB.js";
|
|
128
|
+
import "./chunk-ZNICTHSC.js";
|
|
129
|
+
import "./chunk-F3GHTPAO.js";
|
|
128
130
|
import {
|
|
129
131
|
Argument,
|
|
130
132
|
Command,
|
|
@@ -145,37 +147,38 @@ import {
|
|
|
145
147
|
rootOf,
|
|
146
148
|
secretInputOf,
|
|
147
149
|
withDeadline
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import "./chunk-
|
|
150
|
-
import "./chunk-
|
|
151
|
-
import "./chunk-
|
|
152
|
-
import "./chunk-
|
|
153
|
-
import "./chunk-
|
|
150
|
+
} from "./chunk-RHJHOOUL.js";
|
|
151
|
+
import "./chunk-ZL5YG2WK.js";
|
|
152
|
+
import "./chunk-SGBH3D5D.js";
|
|
153
|
+
import "./chunk-54JPEGQA.js";
|
|
154
|
+
import "./chunk-QK4T3VN7.js";
|
|
155
|
+
import "./chunk-VIIIC5LU.js";
|
|
156
|
+
import "./chunk-A5RWKKBZ.js";
|
|
157
|
+
import "./chunk-2NG4JPP7.js";
|
|
154
158
|
import {
|
|
155
159
|
runtime,
|
|
156
160
|
timezoneOf
|
|
157
|
-
} from "./chunk-
|
|
158
|
-
import "./chunk-
|
|
159
|
-
import "./chunk-
|
|
160
|
-
import "./chunk-
|
|
161
|
-
import "./chunk-
|
|
162
|
-
import "./chunk-YVNHQFLC.js";
|
|
161
|
+
} from "./chunk-OH3IZ6GW.js";
|
|
162
|
+
import "./chunk-3VVZFBE2.js";
|
|
163
|
+
import "./chunk-UP3J3YXH.js";
|
|
164
|
+
import "./chunk-HVJJWJYQ.js";
|
|
165
|
+
import "./chunk-IVFUSI7G.js";
|
|
163
166
|
import {
|
|
164
167
|
configFilePath,
|
|
165
168
|
indent,
|
|
166
169
|
processStreams,
|
|
167
170
|
renderPretty,
|
|
168
171
|
resolvePaths
|
|
169
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-4CIVGT4P.js";
|
|
170
173
|
import {
|
|
171
174
|
exitCodeFor
|
|
172
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-UR62DZ7Q.js";
|
|
173
176
|
import "./chunk-Y5E2WNWB.js";
|
|
174
177
|
import {
|
|
175
178
|
CliError,
|
|
176
179
|
isCliError,
|
|
177
180
|
singleLine
|
|
178
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-E6VSARSU.js";
|
|
179
182
|
import {
|
|
180
183
|
__name
|
|
181
184
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -249,7 +252,7 @@ var withProxySecrets = /* @__PURE__ */ __name((config) => {
|
|
|
249
252
|
throw new CliError("validation_error", "a proxy password or MTProxy secret never goes on the command line \u2014 run `tg config set proxy -` and paste the URL");
|
|
250
253
|
if (proxy.kind === "mtproxy" && proxy.secret === void 0)
|
|
251
254
|
throw new CliError("validation_error", "an MTProxy link needs its secret \u2014 run `tg config set proxy -` and paste the whole link");
|
|
252
|
-
const { checkProxy } = await import("./proxy-transport-
|
|
255
|
+
const { checkProxy } = await import("./proxy-transport-HJMQ5QFT.js");
|
|
253
256
|
asValidation(() => checkProxy(proxy));
|
|
254
257
|
const label = proxyLabel(proxy);
|
|
255
258
|
action.processedArgs[1] = label;
|
|
@@ -724,9 +727,23 @@ var sessionCommandDefinition = /* @__PURE__ */ __name(() => {
|
|
|
724
727
|
printItem(context, { profile: context.profile, ended: false });
|
|
725
728
|
return;
|
|
726
729
|
}
|
|
730
|
+
if (usesOwnersSession(context.profile, context.env)) {
|
|
731
|
+
printItem(context, { profile: context.profile, ended: false, kept: "owners-sign-in" });
|
|
732
|
+
context.renderer.note(`kept "${context.profile}" logged in: this run's folders are moved, and it uses the owner's session (${context.sessionPath}), which only a run with the owner's own folders can end`);
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
const forget = /* @__PURE__ */ __name(() => {
|
|
736
|
+
for (const suffix of ["", "-wal", "-shm"])
|
|
737
|
+
rmSync(`${context.sessionPath}${suffix}`, { force: true });
|
|
738
|
+
}, "forget");
|
|
739
|
+
if (!mayRevoke(TG, context.env, environmentOf(this).keyring)) {
|
|
740
|
+
forget();
|
|
741
|
+
printItem(context, { profile: context.profile, ended: true, logged_out: false });
|
|
742
|
+
context.renderer.note(`forgot "${context.profile}"'s session here without logging it out on Telegram: this run's folders are moved; the device stays in a Telegram app's list of sessions until you end it there`);
|
|
743
|
+
return;
|
|
744
|
+
}
|
|
727
745
|
await context.withTelegram((telegram) => telegram.logout());
|
|
728
|
-
|
|
729
|
-
rmSync(`${context.sessionPath}${suffix}`, { force: true });
|
|
746
|
+
forget();
|
|
730
747
|
printItem(context, { profile: context.profile, ended: true });
|
|
731
748
|
});
|
|
732
749
|
return session;
|
|
@@ -740,7 +757,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
|
|
|
740
757
|
import { join } from "node:path";
|
|
741
758
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
742
759
|
|
|
743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.648.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.98.0_commander@15._22e948f6f1aa7f4572ea465a838ccfd1/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
744
761
|
import { realpathSync } from "node:fs";
|
|
745
762
|
import { fileURLToPath } from "node:url";
|
|
746
763
|
var QUIET_WORDS = [
|
|
@@ -958,7 +975,7 @@ var upgradeCommand2 = /* @__PURE__ */ __name(() => upgradeCommand(TG, PACKAGE, (
|
|
|
958
975
|
}), "upgradeCommand");
|
|
959
976
|
|
|
960
977
|
// dist/program.js
|
|
961
|
-
var NO_RESTART_ON = [exitCodeFor("authentication_error")];
|
|
978
|
+
var NO_RESTART_ON = [exitCodeFor("authentication_error"), exitCodeFor("not_found")];
|
|
962
979
|
var botApi;
|
|
963
980
|
var useBotApi = /* @__PURE__ */ __name((group) => {
|
|
964
981
|
botApi = group;
|
|
@@ -1058,7 +1075,7 @@ var definition = {
|
|
|
1058
1075
|
};
|
|
1059
1076
|
var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
|
|
1060
1077
|
if (!botApi && needsBotApi(argv, environment.env ?? process.env))
|
|
1061
|
-
useBotApi((await import("./bot-api-
|
|
1078
|
+
useBotApi((await import("./bot-api-FHIQ66OM.js")).telegramBotApiCommand);
|
|
1062
1079
|
const notice = updateNotice2(argv, {
|
|
1063
1080
|
...environment.tty === void 0 ? {} : { tty: environment.tty },
|
|
1064
1081
|
...environment.update ? { environment: environment.update } : {},
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
pasteHint,
|
|
5
5
|
readSecret
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-XDHGM2Z7.js";
|
|
7
|
+
import "./chunk-W4LMTNN2.js";
|
|
8
|
+
import "./chunk-4CIVGT4P.js";
|
|
9
|
+
import "./chunk-UR62DZ7Q.js";
|
|
10
10
|
import "./chunk-Y5E2WNWB.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-E6VSARSU.js";
|
|
12
12
|
import "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
export {
|
|
14
14
|
pasteHint,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
checkProxy,
|
|
5
5
|
proxiedTransport,
|
|
6
6
|
proxyFailure
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ASEBKZFY.js";
|
|
8
|
+
import "./chunk-I4JUKRW7.js";
|
|
9
|
+
import "./chunk-4CIVGT4P.js";
|
|
10
|
+
import "./chunk-UR62DZ7Q.js";
|
|
11
11
|
import "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-E6VSARSU.js";
|
|
13
13
|
import "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
export {
|
|
15
15
|
checkProxy,
|