@wirecat/tg-cli 0.101.0 → 0.103.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.
Files changed (126) hide show
  1. package/dist/bin/tg.js +31 -19
  2. package/dist/bot/transport.d.ts.map +1 -1
  3. package/dist/bot/transport.js +14 -17
  4. package/dist/bot/transport.js.map +1 -1
  5. package/dist/bundle/{adapter-A3VD4Y6Z.js → adapter-QG3YFFOY.js} +101 -38
  6. package/dist/bundle/{all-profiles-UPVNHXB2.js → all-profiles-ECXH3TBF.js} +32 -11
  7. package/dist/bundle/{anthropic-IRKNWPIB.js → anthropic-5MKO3QX7.js} +10 -10
  8. package/dist/bundle/{bot-api-UNTQG2M5.js → bot-api-4DQPIOMK.js} +55 -58
  9. package/dist/bundle/{bot-history-V4RTY5K7.js → bot-history-UN74XXLU.js} +19 -19
  10. package/dist/bundle/{bun-2JZPG2NL.js → bun-PS73VF2C.js} +5 -5
  11. package/dist/bundle/{bun-sqlite-TZHKM225.js → bun-sqlite-RAWGPH23.js} +8 -8
  12. package/dist/bundle/{chunk-ZZLKX62Z.js → chunk-2ABQZVK4.js} +3 -3
  13. package/dist/bundle/{chunk-MLLJ74LM.js → chunk-3CP7RK5R.js} +4 -4
  14. package/dist/bundle/{chunk-BXQS5RCE.js → chunk-3IXKDIPH.js} +258 -83
  15. package/dist/bundle/{chunk-W2336E7Y.js → chunk-3QX6SOEO.js} +9 -9
  16. package/dist/bundle/{chunk-F7TDFWXY.js → chunk-537O7OVE.js} +6 -6
  17. package/dist/bundle/{chunk-N5UFBWDM.js → chunk-57XGUIXA.js} +9 -11
  18. package/dist/bundle/{chunk-3KHKYYCR.js → chunk-5D4AEUVA.js} +4 -3
  19. package/dist/bundle/{chunk-ODSVNH3H.js → chunk-5HPAPVCB.js} +2415 -1292
  20. package/dist/bundle/{chunk-OEJ5DMCX.js → chunk-67SRVSPU.js} +10 -10
  21. package/dist/bundle/{chunk-XCKD54TN.js → chunk-6N25NZOE.js} +9 -9
  22. package/dist/bundle/chunk-AAMJZJYC.js +922 -0
  23. package/dist/bundle/{chunk-AVWK4NCW.js → chunk-ADLS6FVG.js} +13 -13
  24. package/dist/bundle/{chunk-ZV24I2UJ.js → chunk-AUKAZRF6.js} +5 -5
  25. package/dist/bundle/{chunk-S7ZNLLY5.js → chunk-BV4N333Y.js} +6 -6
  26. package/dist/bundle/{chunk-UN6CKIBN.js → chunk-BYYSVINK.js} +11 -8
  27. package/dist/bundle/{chunk-54R2GDQ3.js → chunk-CMQ34EZL.js} +6 -6
  28. package/dist/bundle/{chunk-G2US6LJB.js → chunk-COZ74WW4.js} +4 -4
  29. package/dist/bundle/{chunk-7BFO3DY6.js → chunk-DFDN6AUB.js} +2 -2
  30. package/dist/bundle/{chunk-VA5YEJS3.js → chunk-DLF3H6NP.js} +7 -7
  31. package/dist/bundle/{chunk-QOWSVDPZ.js → chunk-DWQ4QT6X.js} +111 -100
  32. package/dist/bundle/chunk-EMC57SOZ.js +440 -0
  33. package/dist/bundle/{chunk-RVCS7Q3A.js → chunk-EQHQ2AX3.js} +1390 -522
  34. package/dist/bundle/{chunk-64DK7S4F.js → chunk-F27OI4J2.js} +4 -4
  35. package/dist/bundle/{chunk-2XBSVRT2.js → chunk-FG2QTYEF.js} +4 -4
  36. package/dist/bundle/{chunk-BX6HH4F6.js → chunk-FSPDODVT.js} +14 -14
  37. package/dist/bundle/{chunk-4ZS73HTJ.js → chunk-G5IMOOPB.js} +4 -4
  38. package/dist/bundle/{chunk-VCGL2ETF.js → chunk-GO354DJ5.js} +4 -4
  39. package/dist/bundle/{chunk-5TPT2S2Z.js → chunk-H2UTBYFC.js} +4 -4
  40. package/dist/bundle/{chunk-U46UNBMT.js → chunk-HCDZWFXO.js} +244 -21
  41. package/dist/bundle/{chunk-TGREFJVA.js → chunk-KCVDWZWS.js} +11 -11
  42. package/dist/bundle/{chunk-PUBS2F5J.js → chunk-KQ5BUI5T.js} +248 -248
  43. package/dist/bundle/{chunk-ACGTFLEB.js → chunk-LAYPLF7G.js} +35 -282
  44. package/dist/bundle/{chunk-5KU4UQBM.js → chunk-MFS52LTZ.js} +4 -4
  45. package/dist/bundle/{chunk-DYNSP6FW.js → chunk-MHHDVR4G.js} +1449 -832
  46. package/dist/bundle/{chunk-S2JSZWEC.js → chunk-NIVZHTN4.js} +15 -15
  47. package/dist/bundle/{chunk-A5JSTZZZ.js → chunk-NKN54EDN.js} +6 -6
  48. package/dist/bundle/chunk-O5EHUB2V.js +2 -0
  49. package/dist/bundle/{chunk-5GKXETRP.js → chunk-OGVBRRWY.js} +615 -56
  50. package/dist/bundle/{chunk-VYDTI254.js → chunk-Q2LBOPKO.js} +99 -50
  51. package/dist/bundle/{chunk-LPB2MDUW.js → chunk-QF7VVIF4.js} +11 -11
  52. package/dist/bundle/{chunk-VRSN7VLO.js → chunk-RD7SSY7H.js} +4 -4
  53. package/dist/bundle/{chunk-ZEOCU24Z.js → chunk-RKQIEJFR.js} +5 -5
  54. package/dist/bundle/chunk-RMC2S3F4.js +264 -0
  55. package/dist/bundle/{chunk-2DGOFLDA.js → chunk-S5M4HFOZ.js} +6 -6
  56. package/dist/bundle/{chunk-X4Y2ROJI.js → chunk-SSALGKMJ.js} +94 -5
  57. package/dist/bundle/{chunk-G3ZRY436.js → chunk-SSV37M5T.js} +59 -59
  58. package/dist/bundle/{chunk-DG62L57H.js → chunk-T4SDOYPY.js} +20 -20
  59. package/dist/bundle/{chunk-6IPY2QRG.js → chunk-TEO2KP52.js} +5 -5
  60. package/dist/bundle/{chunk-G77QOTXE.js → chunk-TPFLD4OM.js} +5 -5
  61. package/dist/bundle/{chunk-PYTOIDSM.js → chunk-VMU4SGCE.js} +7 -7
  62. package/dist/bundle/{chunk-QYVVRQTN.js → chunk-VZN5LD26.js} +6 -6
  63. package/dist/bundle/{chunk-ZJVZXJOG.js → chunk-WAGDZB62.js} +5 -5
  64. package/dist/bundle/{chunk-7CBUCTB6.js → chunk-WULARSC4.js} +33 -39
  65. package/dist/bundle/{chunk-BJG6JA5U.js → chunk-Y5E2WNWB.js} +4 -4
  66. package/dist/bundle/{chunk-H6OXALTJ.js → chunk-YI72UVTJ.js} +5 -5
  67. package/dist/bundle/{chunk-NC5WS7OP.js → chunk-Z2DPNTSU.js} +5 -5
  68. package/dist/bundle/{chunk-RF54YDBB.js → chunk-ZHXSRYJ5.js} +6 -6
  69. package/dist/bundle/{chunk-AFV74GK3.js → chunk-ZVVMGPBJ.js} +2 -2
  70. package/dist/bundle/command-contract-ZGFJTLB2.js +32 -0
  71. package/dist/bundle/{dist-RJMT44PL.js → dist-I7OZPHAZ.js} +3 -3
  72. package/dist/bundle/{echarts-QZ6PR3VC.js → echarts-UEQDIHVQ.js} +5 -5
  73. package/dist/bundle/{embed-UBXCXSRD.js → embed-5DPZKRW5.js} +9 -8
  74. package/dist/bundle/{embedder-B4ZTKC23.js → embedder-NBQXDXAO.js} +12 -11
  75. package/dist/bundle/entry-EE6YRAP4.js +14 -0
  76. package/dist/bundle/first-run-OSEVVWNT.js +24 -0
  77. package/dist/bundle/first-screen-753THOU6.js +30 -0
  78. package/dist/bundle/identity-LNH33PN3.js +11 -0
  79. package/dist/bundle/instructions-PYGVIT7I.js +9 -0
  80. package/dist/bundle/{mcp-4Y37G2UY.js → mcp-OQBZXELQ.js} +5 -5
  81. package/dist/bundle/{node-LZZX22VR.js → node-3OBKCX6M.js} +5 -5
  82. package/dist/bundle/{node-IUL5HSYI.js → node-P4E63KXA.js} +5 -5
  83. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  84. package/dist/bundle/{node-sqlite-BPGT6T5U.js → node-sqlite-DMMTDRFB.js} +8 -8
  85. package/dist/bundle/oauth-FX5DDCRS.js +18 -0
  86. package/dist/bundle/open-G6QRQAAL.js +20 -0
  87. package/dist/bundle/{process-GPUXC4PG.js → process-47MMIFIJ.js} +5 -5
  88. package/dist/bundle/{program-NEXEAL7T.js → program-LBHBWRK5.js} +67 -71
  89. package/dist/bundle/prompt-CJ6Y4JYC.js +13 -0
  90. package/dist/bundle/proxy-transport-YSBYG26I.js +17 -0
  91. package/dist/bundle/{recognize-UJBXORVD.js → recognize-7BLTOI45.js} +9 -9
  92. package/dist/bundle/remote-Q4A4JY6U.js +27 -0
  93. package/dist/bundle/{rerank-3Y2VZM3J.js → rerank-CQAR46L3.js} +10 -9
  94. package/dist/bundle/{serve-VDZIVOPR.js → serve-2UO2YMMG.js} +13 -13
  95. package/dist/bundle/{server-BERXP4GW.js → server-6XYURULQ.js} +80 -68
  96. package/dist/bundle/{server-ZFHN4GUF.js → server-FMKC4RLL.js} +46 -41
  97. package/dist/bundle/{state-DGR4EE3E.js → state-RNWN2RDY.js} +9 -9
  98. package/dist/bundle/{store-MRCFSCZD.js → store-BBHTR477.js} +14 -14
  99. package/dist/bundle/store-maintenance-command-GD6OLRXH.js +44 -0
  100. package/dist/bundle/tg.js +8 -8
  101. package/dist/telegram/sending.d.ts.map +1 -1
  102. package/dist/telegram/sending.js +52 -3
  103. package/dist/telegram/sending.js.map +1 -1
  104. package/dist/version.d.ts +1 -1
  105. package/dist/version.js +1 -1
  106. package/package.json +4 -4
  107. package/dist/bundle/chunk-22PQUX72.js +0 -190
  108. package/dist/bundle/chunk-2SJOUK6J.js +0 -2
  109. package/dist/bundle/chunk-CJ6IYCYP.js +0 -583
  110. package/dist/bundle/chunk-NKJJJAIJ.js +0 -237
  111. package/dist/bundle/chunk-NMGO6LW6.js +0 -1950
  112. package/dist/bundle/chunk-OILBDLWL.js +0 -724
  113. package/dist/bundle/chunk-OPBTNQ35.js +0 -1007
  114. package/dist/bundle/command-contract-TKDI7E56.js +0 -31
  115. package/dist/bundle/entry-BTUTHO5M.js +0 -14
  116. package/dist/bundle/first-run-UC4HRIFV.js +0 -24
  117. package/dist/bundle/first-screen-SMCX6YKY.js +0 -29
  118. package/dist/bundle/identity-QSDEGDH7.js +0 -11
  119. package/dist/bundle/instructions-BBGLZKO3.js +0 -9
  120. package/dist/bundle/node-UPPL626U.js +0 -21
  121. package/dist/bundle/oauth-XNE2KPKJ.js +0 -18
  122. package/dist/bundle/open-SXGYZLB5.js +0 -20
  123. package/dist/bundle/prompt-SORGLEYI.js +0 -13
  124. package/dist/bundle/proxy-transport-G4MA6BGU.js +0 -17
  125. package/dist/bundle/remote-W72AR7KH.js +0 -26
  126. package/dist/bundle/store-maintenance-command-DCMZDMYS.js +0 -46
@@ -1,9 +1,9 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  __export,
5
5
  __name
6
- } from "./chunk-AFV74GK3.js";
6
+ } from "./chunk-ZVVMGPBJ.js";
7
7
 
8
8
  // node_modules/.pnpm/tslib@2.3.0/node_modules/tslib/tslib.es6.js
9
9
  var extendStatics = /* @__PURE__ */ __name(function(d, b) {
@@ -42399,7 +42399,7 @@ function install11(registers) {
42399
42399
  }
42400
42400
  __name(install11, "install");
42401
42401
 
42402
- // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42402
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42403
42403
  var echartsOption = /* @__PURE__ */ __name((chart) => ({
42404
42404
  animation: false,
42405
42405
  backgroundColor: "#111827",
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
42447
42447
  } : {}
42448
42448
  }), "echartsOption");
42449
42449
 
42450
- // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42450
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42451
42451
  use([install2, install, install6, install5, install10, install7, install11]);
42452
42452
  var echartsRenderer = {
42453
42453
  render: /* @__PURE__ */ __name(async (chart, size) => {
@@ -1,5 +1,5 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  WARM_IDLE_MS,
5
5
  defaultThreads,
@@ -13,12 +13,13 @@ import {
13
13
  truncated,
14
14
  unit,
15
15
  warmEmbedders
16
- } from "./chunk-ACGTFLEB.js";
17
- import "./chunk-G77QOTXE.js";
18
- import "./chunk-DG62L57H.js";
19
- import "./chunk-OEJ5DMCX.js";
20
- import "./chunk-BJG6JA5U.js";
21
- import "./chunk-AFV74GK3.js";
16
+ } from "./chunk-LAYPLF7G.js";
17
+ import "./chunk-RMC2S3F4.js";
18
+ import "./chunk-TPFLD4OM.js";
19
+ import "./chunk-T4SDOYPY.js";
20
+ import "./chunk-67SRVSPU.js";
21
+ import "./chunk-Y5E2WNWB.js";
22
+ import "./chunk-ZVVMGPBJ.js";
22
23
  export {
23
24
  WARM_IDLE_MS,
24
25
  defaultThreads,
@@ -1,27 +1,28 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openSession,
5
5
  truncated,
6
6
  unit
7
- } from "./chunk-ACGTFLEB.js";
8
- import "./chunk-G77QOTXE.js";
9
- import "./chunk-DG62L57H.js";
7
+ } from "./chunk-LAYPLF7G.js";
8
+ import "./chunk-RMC2S3F4.js";
9
+ import "./chunk-TPFLD4OM.js";
10
+ import "./chunk-T4SDOYPY.js";
10
11
  import {
11
12
  CliError
12
- } from "./chunk-OEJ5DMCX.js";
13
+ } from "./chunk-67SRVSPU.js";
13
14
  import {
14
15
  importFrom
15
- } from "./chunk-BJG6JA5U.js";
16
+ } from "./chunk-Y5E2WNWB.js";
16
17
  import {
17
18
  __name
18
- } from "./chunk-AFV74GK3.js";
19
+ } from "./chunk-ZVVMGPBJ.js";
19
20
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
21
22
  import { readFileSync } from "node:fs";
22
23
  import { join } from "node:path";
23
24
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
25
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
25
26
  var SIZE = 224;
26
27
  var MEAN = [0.48145466, 0.4578275, 0.40821073];
27
28
  var STD = [0.26862954, 0.26130258, 0.27577711];
@@ -60,7 +61,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
60
61
  return pixels;
61
62
  }, "preprocess");
62
63
 
63
- // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
64
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
64
65
  var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
65
66
  const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
66
67
  const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
@@ -0,0 +1,14 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ startCli
5
+ } from "./chunk-NIVZHTN4.js";
6
+ import "./chunk-AUKAZRF6.js";
7
+ import "./chunk-6N25NZOE.js";
8
+ import "./chunk-T4SDOYPY.js";
9
+ import "./chunk-67SRVSPU.js";
10
+ import "./chunk-Y5E2WNWB.js";
11
+ import "./chunk-ZVVMGPBJ.js";
12
+ export {
13
+ startCli
14
+ };
@@ -0,0 +1,24 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ askSetupQuestions,
5
+ asksAtStart,
6
+ setupAtStart,
7
+ systemLanguage
8
+ } from "./chunk-FSPDODVT.js";
9
+ import "./chunk-VMU4SGCE.js";
10
+ import "./chunk-MFS52LTZ.js";
11
+ import "./chunk-BV4N333Y.js";
12
+ import "./chunk-KCVDWZWS.js";
13
+ import "./chunk-3QX6SOEO.js";
14
+ import "./chunk-TPFLD4OM.js";
15
+ import "./chunk-T4SDOYPY.js";
16
+ import "./chunk-67SRVSPU.js";
17
+ import "./chunk-Y5E2WNWB.js";
18
+ import "./chunk-ZVVMGPBJ.js";
19
+ export {
20
+ askSetupQuestions,
21
+ asksAtStart,
22
+ setupAtStart,
23
+ systemLanguage
24
+ };
@@ -0,0 +1,30 @@
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-QF7VVIF4.js";
8
+ import "./chunk-2ABQZVK4.js";
9
+ import "./chunk-57XGUIXA.js";
10
+ import "./chunk-DWQ4QT6X.js";
11
+ import "./chunk-EQHQ2AX3.js";
12
+ import "./chunk-CMQ34EZL.js";
13
+ import "./chunk-EMC57SOZ.js";
14
+ import "./chunk-BV4N333Y.js";
15
+ import "./chunk-AUKAZRF6.js";
16
+ import "./chunk-RD7SSY7H.js";
17
+ import "./chunk-RMC2S3F4.js";
18
+ import "./chunk-SSV37M5T.js";
19
+ import "./chunk-3QX6SOEO.js";
20
+ import "./chunk-O5EHUB2V.js";
21
+ import "./chunk-TPFLD4OM.js";
22
+ import "./chunk-T4SDOYPY.js";
23
+ import "./chunk-67SRVSPU.js";
24
+ import "./chunk-Y5E2WNWB.js";
25
+ import "./chunk-ZVVMGPBJ.js";
26
+ export {
27
+ WIRECAT_TOOLS,
28
+ firstScreen,
29
+ installHelp
30
+ };
@@ -0,0 +1,11 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ TG
5
+ } from "./chunk-H2UTBYFC.js";
6
+ import "./chunk-O5EHUB2V.js";
7
+ import "./chunk-67SRVSPU.js";
8
+ import "./chunk-ZVVMGPBJ.js";
9
+ export {
10
+ TG
11
+ };
@@ -0,0 +1,9 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ instructions
5
+ } from "./chunk-COZ74WW4.js";
6
+ import "./chunk-ZVVMGPBJ.js";
7
+ export {
8
+ instructions
9
+ };
@@ -1,16 +1,16 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  executableEnvironment,
5
5
  executableOnPath,
6
6
  require_cross_spawn
7
- } from "./chunk-5KU4UQBM.js";
7
+ } from "./chunk-MFS52LTZ.js";
8
8
  import {
9
9
  __name,
10
10
  __toESM
11
- } from "./chunk-AFV74GK3.js";
11
+ } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-base@0.64.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
13
+ // node_modules/.pnpm/@wirecat+cli-base@0.65.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
14
14
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
15
15
  var realRun = /* @__PURE__ */ __name((file, args) => {
16
16
  const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
@@ -1,5 +1,5 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  DefaultLogger,
5
5
  DrizzleQueryError,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-4ZS73HTJ.js";
21
+ } from "./chunk-G5IMOOPB.js";
22
22
  import {
23
23
  __name
24
- } from "./chunk-AFV74GK3.js";
24
+ } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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 },
@@ -1,5 +1,5 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  child_process,
5
5
  crypto,
@@ -7,7 +7,7 @@ import {
7
7
  path,
8
8
  stream,
9
9
  util
10
- } from "./chunk-7BFO3DY6.js";
10
+ } from "./chunk-DFDN6AUB.js";
11
11
  import {
12
12
  AnthropicError,
13
13
  DEFAULT_MEMORY_SYNC_INTERVAL_MS,
@@ -21,10 +21,10 @@ import {
21
21
  isStatus,
22
22
  loggerFor,
23
23
  promiseWithResolvers
24
- } from "./chunk-AVWK4NCW.js";
24
+ } from "./chunk-ADLS6FVG.js";
25
25
  import {
26
26
  __name
27
- } from "./chunk-AFV74GK3.js";
27
+ } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
29
  // node_modules/.pnpm/@anthropic-ai+sdk@1.3.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs
30
30
  import * as fs4 from "node:fs/promises";
@@ -0,0 +1,21 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ child_process,
5
+ crypto,
6
+ fs,
7
+ os,
8
+ path,
9
+ stream,
10
+ util
11
+ } from "./chunk-DFDN6AUB.js";
12
+ import "./chunk-ZVVMGPBJ.js";
13
+ export {
14
+ child_process,
15
+ crypto,
16
+ fs,
17
+ os,
18
+ path,
19
+ stream,
20
+ util
21
+ };
@@ -1,17 +1,17 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-2DGOFLDA.js";
7
- import "./chunk-DG62L57H.js";
8
- import "./chunk-OEJ5DMCX.js";
9
- import "./chunk-BJG6JA5U.js";
6
+ } from "./chunk-S5M4HFOZ.js";
7
+ import "./chunk-T4SDOYPY.js";
8
+ import "./chunk-67SRVSPU.js";
9
+ import "./chunk-Y5E2WNWB.js";
10
10
  import {
11
11
  __name
12
- } from "./chunk-AFV74GK3.js";
12
+ } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
15
15
  import { DatabaseSync } from "node:sqlite";
16
16
  var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
17
17
  var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
@@ -0,0 +1,18 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ ownerLogin,
5
+ revokeAll
6
+ } from "./chunk-BYYSVINK.js";
7
+ import "./chunk-5D4AEUVA.js";
8
+ import "./chunk-DLF3H6NP.js";
9
+ import "./chunk-VZN5LD26.js";
10
+ import "./chunk-RD7SSY7H.js";
11
+ import "./chunk-T4SDOYPY.js";
12
+ import "./chunk-67SRVSPU.js";
13
+ import "./chunk-Y5E2WNWB.js";
14
+ import "./chunk-ZVVMGPBJ.js";
15
+ export {
16
+ ownerLogin,
17
+ revokeAll
18
+ };
@@ -0,0 +1,20 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ CAPABILITY_STATEMENTS,
5
+ assertStoreCapable,
6
+ openCache,
7
+ openFile,
8
+ storeCapable
9
+ } from "./chunk-6N25NZOE.js";
10
+ import "./chunk-T4SDOYPY.js";
11
+ import "./chunk-67SRVSPU.js";
12
+ import "./chunk-Y5E2WNWB.js";
13
+ import "./chunk-ZVVMGPBJ.js";
14
+ export {
15
+ CAPABILITY_STATEMENTS,
16
+ assertStoreCapable,
17
+ openCache,
18
+ openFile,
19
+ storeCapable
20
+ };
@@ -1,11 +1,11 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
3
- import "./chunk-BJG6JA5U.js";
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import "./chunk-Y5E2WNWB.js";
4
4
  import {
5
5
  __name
6
- } from "./chunk-AFV74GK3.js";
6
+ } from "./chunk-ZVVMGPBJ.js";
7
7
 
8
- // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/embeddings/process.js
8
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/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";
@@ -1,18 +1,28 @@
1
- import { createRequire as __tgRequire } from "node:module";
2
- const require = __tgRequire(import.meta.url);
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- AGENTS,
5
4
  CONFIG,
6
- MEMO_SCENARIOS,
7
5
  SKILL,
8
6
  TELEGRAM,
9
7
  TELEGRAM_BOT,
8
+ botMcp,
9
+ forCommand,
10
+ parseApiHash,
11
+ parseApiId,
12
+ pathsFor,
13
+ proxiedFetch,
14
+ proxySecrets,
15
+ resolveSettings
16
+ } from "./chunk-AAMJZJYC.js";
17
+ import {
18
+ AGENTS,
19
+ MEMO_SCENARIOS,
10
20
  accountCommand,
11
21
  agentFor,
12
22
  answerStdinOption,
23
+ atTerminal,
13
24
  attachmentsCommand,
14
25
  botCommand,
15
- botMcp,
16
26
  chatsCommand,
17
27
  commandsCommand,
18
28
  completeCommand,
@@ -21,25 +31,19 @@ import {
21
31
  conversationsCommand,
22
32
  doctorCommand,
23
33
  floodCommand,
24
- forCommand,
25
34
  guideCommand,
26
35
  imagesCommand,
27
36
  inboxCommand,
37
+ loginQr,
28
38
  mcpCommand,
29
39
  mentionsCommand,
30
40
  messagesCommand,
31
41
  metadataCommand,
32
42
  modelsCommand,
33
- parseApiHash,
34
- parseApiId,
35
- pathsFor,
36
43
  pollsCommand,
37
- proxiedFetch,
38
- proxySecrets,
39
44
  reactionsCommand,
40
45
  recipientsCommand,
41
46
  repliesCommand,
42
- resolveSettings,
43
47
  restartServers,
44
48
  reviewCommand,
45
49
  run,
@@ -61,35 +65,27 @@ import {
61
65
  topicsCommand,
62
66
  upgradeCommand,
63
67
  watchCommand
64
- } from "./chunk-ODSVNH3H.js";
65
- import {
66
- atTerminal,
67
- loginQr
68
- } from "./chunk-NMGO6LW6.js";
68
+ } from "./chunk-5HPAPVCB.js";
69
69
  import {
70
70
  parseProxy,
71
71
  proxyLabel
72
- } from "./chunk-2XBSVRT2.js";
73
- import "./chunk-VCGL2ETF.js";
74
- import "./chunk-7CBUCTB6.js";
75
- import "./chunk-MLLJ74LM.js";
72
+ } from "./chunk-FG2QTYEF.js";
73
+ import "./chunk-GO354DJ5.js";
74
+ import "./chunk-WULARSC4.js";
75
+ import "./chunk-3CP7RK5R.js";
76
76
  import {
77
77
  installSkill
78
- } from "./chunk-U46UNBMT.js";
79
- import "./chunk-NKJJJAIJ.js";
80
- import "./chunk-BXQS5RCE.js";
81
- import "./chunk-22PQUX72.js";
82
- import "./chunk-5GKXETRP.js";
83
- import "./chunk-CJ6IYCYP.js";
84
- import "./chunk-DYNSP6FW.js";
85
- import "./chunk-OILBDLWL.js";
86
- import "./chunk-RF54YDBB.js";
78
+ } from "./chunk-HCDZWFXO.js";
79
+ import "./chunk-3IXKDIPH.js";
80
+ import "./chunk-OGVBRRWY.js";
81
+ import "./chunk-MHHDVR4G.js";
82
+ import "./chunk-ZHXSRYJ5.js";
87
83
  import {
88
84
  inSection
89
- } from "./chunk-LPB2MDUW.js";
90
- import "./chunk-ZZLKX62Z.js";
91
- import "./chunk-N5UFBWDM.js";
92
- import "./chunk-QOWSVDPZ.js";
85
+ } from "./chunk-QF7VVIF4.js";
86
+ import "./chunk-2ABQZVK4.js";
87
+ import "./chunk-57XGUIXA.js";
88
+ import "./chunk-DWQ4QT6X.js";
93
89
  import {
94
90
  Argument,
95
91
  Command,
@@ -100,6 +96,7 @@ import {
100
96
  commandWords,
101
97
  customizeSharedCommand,
102
98
  environmentOf,
99
+ levelFor,
103
100
  logsInOrOut,
104
101
  outputFor,
105
102
  overrideSharedContract,
@@ -107,52 +104,51 @@ import {
107
104
  refuseCommandName,
108
105
  rememberAccount,
109
106
  rootOf,
107
+ runtime,
110
108
  secretInputOf,
111
109
  withDeadline
112
- } from "./chunk-RVCS7Q3A.js";
113
- import {
114
- levelFor,
115
- runtime
116
- } from "./chunk-OPBTNQ35.js";
117
- import "./chunk-54R2GDQ3.js";
118
- import "./chunk-BX6HH4F6.js";
110
+ } from "./chunk-EQHQ2AX3.js";
111
+ import "./chunk-CMQ34EZL.js";
112
+ import "./chunk-EMC57SOZ.js";
113
+ import "./chunk-FSPDODVT.js";
119
114
  import {
120
115
  installerOf,
121
116
  latestVersion,
122
117
  runUpdate,
123
118
  updateNotice
124
- } from "./chunk-PYTOIDSM.js";
125
- import "./chunk-5KU4UQBM.js";
126
- import "./chunk-S7ZNLLY5.js";
127
- import "./chunk-S2JSZWEC.js";
128
- import "./chunk-ZV24I2UJ.js";
119
+ } from "./chunk-VMU4SGCE.js";
120
+ import "./chunk-MFS52LTZ.js";
121
+ import "./chunk-BV4N333Y.js";
122
+ import "./chunk-NIVZHTN4.js";
123
+ import "./chunk-AUKAZRF6.js";
129
124
  import {
130
125
  TG,
131
126
  VERSION
132
- } from "./chunk-5TPT2S2Z.js";
133
- import "./chunk-VA5YEJS3.js";
127
+ } from "./chunk-H2UTBYFC.js";
128
+ import "./chunk-DLF3H6NP.js";
134
129
  import {
135
130
  servingProfiles
136
- } from "./chunk-QYVVRQTN.js";
137
- import "./chunk-VRSN7VLO.js";
138
- import "./chunk-NC5WS7OP.js";
139
- import "./chunk-H6OXALTJ.js";
140
- import "./chunk-A5JSTZZZ.js";
141
- import "./chunk-ACGTFLEB.js";
142
- import "./chunk-PUBS2F5J.js";
131
+ } from "./chunk-VZN5LD26.js";
132
+ import "./chunk-RD7SSY7H.js";
133
+ import "./chunk-Z2DPNTSU.js";
134
+ import "./chunk-YI72UVTJ.js";
135
+ import "./chunk-NKN54EDN.js";
136
+ import "./chunk-LAYPLF7G.js";
137
+ import "./chunk-RMC2S3F4.js";
138
+ import "./chunk-KQ5BUI5T.js";
143
139
  import {
144
140
  timezoneOf
145
- } from "./chunk-G3ZRY436.js";
146
- import "./chunk-TGREFJVA.js";
147
- import "./chunk-W2336E7Y.js";
148
- import "./chunk-2SJOUK6J.js";
149
- import "./chunk-G77QOTXE.js";
150
- import "./chunk-XCKD54TN.js";
151
- import "./chunk-4ZS73HTJ.js";
141
+ } from "./chunk-SSV37M5T.js";
142
+ import "./chunk-KCVDWZWS.js";
143
+ import "./chunk-3QX6SOEO.js";
144
+ import "./chunk-O5EHUB2V.js";
145
+ import "./chunk-TPFLD4OM.js";
146
+ import "./chunk-6N25NZOE.js";
147
+ import "./chunk-G5IMOOPB.js";
152
148
  import {
153
149
  readSecret
154
- } from "./chunk-F7TDFWXY.js";
155
- import "./chunk-6IPY2QRG.js";
150
+ } from "./chunk-537O7OVE.js";
151
+ import "./chunk-TEO2KP52.js";
156
152
  import {
157
153
  configFilePath,
158
154
  exitCodeFor,
@@ -161,15 +157,15 @@ import {
161
157
  renderPretty,
162
158
  resolvePaths,
163
159
  singleLine
164
- } from "./chunk-DG62L57H.js";
160
+ } from "./chunk-T4SDOYPY.js";
165
161
  import {
166
162
  CliError,
167
163
  isCliError
168
- } from "./chunk-OEJ5DMCX.js";
169
- import "./chunk-BJG6JA5U.js";
164
+ } from "./chunk-67SRVSPU.js";
165
+ import "./chunk-Y5E2WNWB.js";
170
166
  import {
171
167
  __name
172
- } from "./chunk-AFV74GK3.js";
168
+ } from "./chunk-ZVVMGPBJ.js";
173
169
 
174
170
  // dist/program.js
175
171
  import { fileURLToPath as fileURLToPath3 } from "node:url";
@@ -240,7 +236,7 @@ var withProxySecrets = /* @__PURE__ */ __name((config) => {
240
236
  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");
241
237
  if (proxy.kind === "mtproxy" && proxy.secret === void 0)
242
238
  throw new CliError("validation_error", "an MTProxy link needs its secret \u2014 run `tg config set proxy -` and paste the whole link");
243
- const { checkProxy } = await import("./proxy-transport-G4MA6BGU.js");
239
+ const { checkProxy } = await import("./proxy-transport-YSBYG26I.js");
244
240
  asValidation(() => checkProxy(proxy));
245
241
  const label = proxyLabel(proxy);
246
242
  action.processedArgs[1] = label;
@@ -723,7 +719,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
723
719
  import { join } from "node:path";
724
720
  import { fileURLToPath as fileURLToPath2 } from "node:url";
725
721
 
726
- // node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/update/index.js
722
+ // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._2a6ca8de460e41c79b470c9aa59440d5/node_modules/@wirecat/cli-core/dist/update/index.js
727
723
  import { realpathSync } from "node:fs";
728
724
  import { fileURLToPath } from "node:url";
729
725
  var QUIET_WORDS = [
@@ -1040,7 +1036,7 @@ var definition = {
1040
1036
  };
1041
1037
  var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
1042
1038
  if (!botApi && needsBotApi(argv, environment.env ?? process.env))
1043
- useBotApi((await import("./bot-api-UNTQG2M5.js")).telegramBotApiCommand);
1039
+ useBotApi((await import("./bot-api-4DQPIOMK.js")).telegramBotApiCommand);
1044
1040
  const notice = updateNotice2(argv, {
1045
1041
  ...environment.tty === void 0 ? {} : { tty: environment.tty },
1046
1042
  ...environment.update ? { environment: environment.update } : {},
@@ -0,0 +1,13 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ readSecret
5
+ } from "./chunk-537O7OVE.js";
6
+ import "./chunk-TEO2KP52.js";
7
+ import "./chunk-T4SDOYPY.js";
8
+ import "./chunk-67SRVSPU.js";
9
+ import "./chunk-Y5E2WNWB.js";
10
+ import "./chunk-ZVVMGPBJ.js";
11
+ export {
12
+ readSecret
13
+ };