@wirecat/tg-cli 0.128.0 → 0.129.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 (125) hide show
  1. package/contracts/wirecat.json +26 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-JOI34QLS.js → adapter-2XFPXBTA.js} +60 -52
  4. package/dist/bundle/{all-profiles-2BZEE7J2.js → all-profiles-GXFPZLYU.js} +9 -9
  5. package/dist/bundle/{anthropic-NW7DL3S3.js → anthropic-FHS5XNK5.js} +5 -5
  6. package/dist/bundle/{app-server-RUTYKELF.js → app-server-IZMFSFP2.js} +54 -46
  7. package/dist/bundle/{bot-api-DW6NAZAQ.js → bot-api-LQP75V5I.js} +61 -53
  8. package/dist/bundle/{bot-history-FAJ2W42U.js → bot-history-EJQOD4AQ.js} +22 -18
  9. package/dist/bundle/{bun-IVP5LSVI.js → bun-GBAZFRCV.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-ATPCJ4CT.js → bun-sqlite-JB4BX6X7.js} +6 -6
  11. package/dist/bundle/chunk-2JZJPVBH.js +334 -0
  12. package/dist/bundle/{chunk-FHGAJK4I.js → chunk-2LPODKIF.js} +15 -15
  13. package/dist/bundle/chunk-3KZG63EH.js +170 -0
  14. package/dist/bundle/chunk-3XMUP55N.js +372 -0
  15. package/dist/bundle/{chunk-MDGLKMLD.js → chunk-4BJAQNJ5.js} +9 -9
  16. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
  17. package/dist/bundle/{chunk-MOUPWPNL.js → chunk-66UG67CE.js} +12 -12
  18. package/dist/bundle/{chunk-R4QVV3LN.js → chunk-6JBRQ6PM.js} +41 -19
  19. package/dist/bundle/{chunk-GYO4WXLG.js → chunk-6M3FAHPS.js} +3 -3
  20. package/dist/bundle/{chunk-2QHIOPSA.js → chunk-7F3LOHRB.js} +261 -501
  21. package/dist/bundle/{chunk-XS5C5TQ7.js → chunk-AUNNJDVD.js} +25 -8
  22. package/dist/bundle/{chunk-7D6LI2N7.js → chunk-B5RGPZDZ.js} +7 -7
  23. package/dist/bundle/{chunk-YRZXOQOB.js → chunk-B6NQJAUC.js} +2 -2
  24. package/dist/bundle/{chunk-IV2KJQ5F.js → chunk-BMSS3PCY.js} +58 -33
  25. package/dist/bundle/{chunk-LTADKMP5.js → chunk-C4ALE7CH.js} +1 -1
  26. package/dist/bundle/{chunk-WG3BF7SA.js → chunk-CKJ73EF3.js} +1 -1
  27. package/dist/bundle/{chunk-IX3GUNGV.js → chunk-CLG2ISQH.js} +4 -4
  28. package/dist/bundle/{chunk-G3PL3R45.js → chunk-EB2JE722.js} +1 -1
  29. package/dist/bundle/{chunk-J3SX36NE.js → chunk-EUL7HMUL.js} +2 -2
  30. package/dist/bundle/{chunk-PJA43HVE.js → chunk-F6CV4KUN.js} +2 -2
  31. package/dist/bundle/{chunk-7KCBPAQS.js → chunk-F6MLJ3V5.js} +2 -2
  32. package/dist/bundle/{chunk-3UGRMFWK.js → chunk-FH4YIBBH.js} +4 -4
  33. package/dist/bundle/chunk-FIO5NMK3.js +771 -0
  34. package/dist/bundle/{chunk-7I5NMVX7.js → chunk-G2SMVYBU.js} +2 -2
  35. package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
  36. package/dist/bundle/{chunk-2A3TC52A.js → chunk-GGGBPWUS.js} +10 -15
  37. package/dist/bundle/{chunk-KKZQK6IK.js → chunk-GSHTLLCJ.js} +2 -2
  38. package/dist/bundle/{chunk-F4UIBEQK.js → chunk-GYCKRIRK.js} +3 -3
  39. package/dist/bundle/{chunk-WPMJQIEU.js → chunk-HHUK3XO5.js} +1 -1
  40. package/dist/bundle/{chunk-NM5GBJME.js → chunk-HT6OFANN.js} +19 -19
  41. package/dist/bundle/{chunk-ODBK56ZR.js → chunk-I5PILOTU.js} +1 -1
  42. package/dist/bundle/chunk-IBSHQWIJ.js +29 -0
  43. package/dist/bundle/{chunk-RZFIQMOA.js → chunk-IRWSZJYL.js} +60 -58
  44. package/dist/bundle/{chunk-BVCRDHI2.js → chunk-IV6SIKVH.js} +4 -4
  45. package/dist/bundle/{chunk-URFBZNLU.js → chunk-JUFLELQ7.js} +2 -2
  46. package/dist/bundle/{chunk-XYAH6QQO.js → chunk-KY3JLXW2.js} +4 -4
  47. package/dist/bundle/{chunk-YSXDCSBP.js → chunk-LPT5T6PU.js} +29 -30
  48. package/dist/bundle/chunk-LQPZDDDP.js +259 -0
  49. package/dist/bundle/{chunk-JI2PFQFL.js → chunk-M327UNS6.js} +6 -6
  50. package/dist/bundle/{chunk-SDLJJF7E.js → chunk-MS6YEIG5.js} +13 -13
  51. package/dist/bundle/{chunk-WMUPZ3IY.js → chunk-MVFSWKTM.js} +12 -12
  52. package/dist/bundle/{chunk-YVV5S2QA.js → chunk-NRCY3WBC.js} +2 -2
  53. package/dist/bundle/{chunk-2IL4YDGG.js → chunk-O2ULG7OO.js} +3 -3
  54. package/dist/bundle/{chunk-E56QE3UC.js → chunk-OJMDKWWL.js} +627 -503
  55. package/dist/bundle/{chunk-UURJO46N.js → chunk-OKTRB4ZQ.js} +1 -1
  56. package/dist/bundle/{chunk-OX6574YV.js → chunk-OOQVHMCS.js} +15 -15
  57. package/dist/bundle/{chunk-IIHCSJV2.js → chunk-OWVQMK7G.js} +700 -837
  58. package/dist/bundle/{chunk-WMF6SL5D.js → chunk-P4FZJO5F.js} +2 -2
  59. package/dist/bundle/{chunk-LD42OGKK.js → chunk-PS7ZS5HD.js} +4 -4
  60. package/dist/bundle/{chunk-EAUHYQUK.js → chunk-PWQKGFS2.js} +36 -34
  61. package/dist/bundle/{chunk-MGBVVQTU.js → chunk-QBNEWEJC.js} +3 -3
  62. package/dist/bundle/{chunk-QYN5RDTZ.js → chunk-QDEP2QOA.js} +3 -3
  63. package/dist/bundle/{chunk-QO4ON2X7.js → chunk-QFVIHBLD.js} +1 -1
  64. package/dist/bundle/{chunk-ZVLYK6CZ.js → chunk-QJDHRBXL.js} +7 -7
  65. package/dist/bundle/{chunk-IHLNXL2D.js → chunk-QJLCEOAP.js} +1 -1
  66. package/dist/bundle/{chunk-KF2Q776U.js → chunk-RAFK5KXU.js} +9 -9
  67. package/dist/bundle/{chunk-RIGNCUZD.js → chunk-RPWYTOLI.js} +5 -5
  68. package/dist/bundle/{chunk-4DSIGS2E.js → chunk-RZPMFVWM.js} +6 -6
  69. package/dist/bundle/chunk-S5UTBEV3.js +1974 -0
  70. package/dist/bundle/{chunk-MC6FOTCV.js → chunk-SYZXOEHY.js} +3 -3
  71. package/dist/bundle/{chunk-5AP25FMW.js → chunk-SZB5WRMI.js} +2 -2
  72. package/dist/bundle/{chunk-Q3ZO6Q3M.js → chunk-TGRB4SSZ.js} +4 -4
  73. package/dist/bundle/{chunk-TQFUAKU6.js → chunk-VSPSHBAC.js} +2 -2
  74. package/dist/bundle/{chunk-TGUXKG4B.js → chunk-VTJ3AOTT.js} +17 -17
  75. package/dist/bundle/{chunk-T2CWSFGY.js → chunk-VXWDQDRU.js} +6341 -6902
  76. package/dist/bundle/{chunk-JJGPU24U.js → chunk-X5H5NERR.js} +6 -6
  77. package/dist/bundle/{chunk-AF2XVV5P.js → chunk-XHX5D5VE.js} +727 -2598
  78. package/dist/bundle/chunk-XXW6PFAX.js +16 -0
  79. package/dist/bundle/{chunk-NXDQXDRN.js → chunk-ZRQQOGAZ.js} +4 -4
  80. package/dist/bundle/command-contract-G752BLKA.js +37 -0
  81. package/dist/bundle/{command-server-entry-BU3X4XNL.js → command-server-entry-YR6ONDWO.js} +27 -24
  82. package/dist/bundle/decode-VUKGWFSW.js +296 -0
  83. package/dist/bundle/{dispatch-PRAIGIFS.js → dispatch-ST5FK2KI.js} +8 -8
  84. package/dist/bundle/{echarts-NAXLKJLA.js → echarts-GOV5M733.js} +2 -2
  85. package/dist/bundle/{embed-LB6ONWHX.js → embed-2IVIYNAJ.js} +6 -6
  86. package/dist/bundle/{embedder-WE7B2RU5.js → embedder-2HU7JYZK.js} +9 -9
  87. package/dist/bundle/{entry-W6Y52ZRN.js → entry-CSTCXYI5.js} +9 -9
  88. package/dist/bundle/{failure-7Y34AUJT.js → failure-GMUQKQ5K.js} +2 -2
  89. package/dist/bundle/{first-run-NVYNZZA6.js → first-run-3IZGXZT5.js} +12 -11
  90. package/dist/bundle/first-screen-7QSNCZIK.js +35 -0
  91. package/dist/bundle/{instructions-MRUC57NS.js → instructions-YSXV6FAC.js} +1 -1
  92. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
  93. package/dist/bundle/meeting-combined-X4E3LSIJ.js +23 -0
  94. package/dist/bundle/meeting-model-FQBDHGRU.js +24 -0
  95. package/dist/bundle/meeting-semantic-ONNEOJX5.js +21 -0
  96. package/dist/bundle/{node-G7PMDYQV.js → node-FMQWCZRS.js} +2 -2
  97. package/dist/bundle/{node-sqlite-RXWQ3SES.js → node-sqlite-YN5OKOC6.js} +7 -7
  98. package/dist/bundle/{oauth-6ZWOL6KX.js → oauth-EW7PTZVT.js} +7 -7
  99. package/dist/bundle/{open-V7LMZCFI.js → open-Q2RDY344.js} +5 -5
  100. package/dist/bundle/{openai-P472V4ZM.js → openai-STON6G3O.js} +28 -26
  101. package/dist/bundle/{process-GSNPENHL.js → process-OQUC2TW3.js} +1 -1
  102. package/dist/bundle/{program-IELITPKT.js → program-7JJHTZ25.js} +66 -57
  103. package/dist/bundle/{prompt-2CP6CQ5N.js → prompt-WHVF7UTW.js} +5 -5
  104. package/dist/bundle/{proxy-transport-DP7SIMIC.js → proxy-transport-A4MRO3PF.js} +5 -5
  105. package/dist/bundle/{recognize-R2DEQ5TC.js → recognize-YDQWMXNI.js} +4 -4
  106. package/dist/bundle/{remote-JG3POFES.js → remote-477LQHP6.js} +9 -9
  107. package/dist/bundle/{rerank-TVMR3OLL.js → rerank-4YPB26FG.js} +7 -7
  108. package/dist/bundle/{serve-DBWSMLPH.js → serve-FXJNUOTS.js} +9 -9
  109. package/dist/bundle/{server-EXJ2WNZY.js → server-2S6HFBGR.js} +44 -36
  110. package/dist/bundle/server-UOSUTZNE.js +69 -0
  111. package/dist/bundle/{sqlite-runtime-AWMY7W4Q.js → sqlite-runtime-RXYNJYMC.js} +6 -6
  112. package/dist/bundle/{state-HN44BWNQ.js → state-I2GGYGRL.js} +6 -6
  113. package/dist/bundle/{store-LOVKYQDC.js → store-KX3AAQZH.js} +25 -20
  114. package/dist/bundle/{store-GIYS3LHV.js → store-VQXIB6KV.js} +17 -13
  115. package/dist/bundle/store-maintenance-command-LW2MMDLY.js +60 -0
  116. package/dist/bundle/tg.js +13 -13
  117. package/dist/version.d.ts +1 -1
  118. package/dist/version.js +1 -1
  119. package/package.json +3 -3
  120. package/dist/bundle/command-contract-3BSXDYBC.js +0 -34
  121. package/dist/bundle/decode-NXB7E46F.js +0 -162
  122. package/dist/bundle/first-screen-Z6TVHK6I.js +0 -32
  123. package/dist/bundle/server-SXNFFAIR.js +0 -61
  124. package/dist/bundle/store-maintenance-command-X3VOYNCG.js +0 -52
  125. /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
8
8
  var COMMAND_SERVER_ARGV = ["commands", "--serve"];
9
9
  var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
10
10
 
@@ -13,52 +13,52 @@ import {
13
13
  privateFiles,
14
14
  providerRequest,
15
15
  withSqliteSidecars
16
- } from "./chunk-E56QE3UC.js";
16
+ } from "./chunk-OJMDKWWL.js";
17
17
  import {
18
18
  parseProxy,
19
19
  proxyAddress,
20
20
  proxyError,
21
21
  proxyLabel,
22
22
  proxySetting
23
- } from "./chunk-URFBZNLU.js";
23
+ } from "./chunk-JUFLELQ7.js";
24
24
  import {
25
25
  messengerContext
26
- } from "./chunk-FHGAJK4I.js";
26
+ } from "./chunk-2LPODKIF.js";
27
27
  import {
28
28
  uploadBlob
29
- } from "./chunk-IIHCSJV2.js";
29
+ } from "./chunk-OWVQMK7G.js";
30
30
  import {
31
31
  DESKTOP,
32
32
  TG
33
- } from "./chunk-WMF6SL5D.js";
33
+ } from "./chunk-P4FZJO5F.js";
34
34
  import {
35
35
  asFirstWord,
36
36
  environmentOf,
37
37
  fromFile,
38
38
  settingsFor
39
- } from "./chunk-2QHIOPSA.js";
39
+ } from "./chunk-7F3LOHRB.js";
40
40
  import {
41
41
  hostFetch
42
- } from "./chunk-RIGNCUZD.js";
42
+ } from "./chunk-RPWYTOLI.js";
43
43
  import {
44
44
  currentAttempt
45
- } from "./chunk-AF2XVV5P.js";
45
+ } from "./chunk-S5UTBEV3.js";
46
46
  import {
47
47
  Credentials,
48
48
  isMovedRun,
49
49
  pathsAreOverridden,
50
50
  resolvePaths
51
- } from "./chunk-NM5GBJME.js";
51
+ } from "./chunk-HT6OFANN.js";
52
52
  import {
53
53
  optional
54
- } from "./chunk-XS5C5TQ7.js";
54
+ } from "./chunk-AUNNJDVD.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-7KCBPAQS.js";
61
+ } from "./chunk-F6MLJ3V5.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-JOI34QLS.js");
192
+ const { TelegramAdapter } = await import("./adapter-2XFPXBTA.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-JOI34QLS.js")).TelegramAdapter.open({
257
+ return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-2XFPXBTA.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-FAJ2W42U.js")).openBotHistory)({
982
+ const reader = await (environment.botHistory ?? (await import("./bot-history-EJQOD4AQ.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-JOI34QLS.js")).TelegramAdapter.open({
1002
+ personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-2XFPXBTA.js")).TelegramAdapter.open({
1003
1003
  credentials,
1004
1004
  sessionPath: personalPath,
1005
1005
  checks: words,