@wirecat/tg-cli 0.111.0 → 0.112.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 (111) hide show
  1. package/README.md +3 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-WFC2JAD4.js → adapter-ILDV2YSZ.js} +70 -50
  4. package/dist/bundle/{all-profiles-FEUSGHT7.js → all-profiles-4SH2Q4WV.js} +8 -8
  5. package/dist/bundle/{anthropic-O646SJIJ.js → anthropic-64SM23YO.js} +5 -5
  6. package/dist/bundle/{app-server-7P23Y45A.js → app-server-SSYZWCDJ.js} +40 -40
  7. package/dist/bundle/{bot-api-WTJCL6VF.js → bot-api-OHAGQMES.js} +46 -46
  8. package/dist/bundle/{bot-history-5J2Q4SPC.js → bot-history-AUFO7UL2.js} +15 -15
  9. package/dist/bundle/{bun-KUKVEKDW.js → bun-AHZX63TR.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-2G5TXHYE.js → bun-sqlite-KBIIODPV.js} +4 -4
  11. package/dist/bundle/{chunk-43ZFY6TW.js → chunk-2IGZLBTE.js} +2 -2
  12. package/dist/bundle/{chunk-ABVHA4K6.js → chunk-3AJO4GER.js} +5 -5
  13. package/dist/bundle/{chunk-PNUHAHTF.js → chunk-3GL4AOOG.js} +1 -1
  14. package/dist/bundle/{chunk-TWZTQHP6.js → chunk-3W7BU2BL.js} +6 -6
  15. package/dist/bundle/{chunk-YFK3DNNP.js → chunk-4IDJ7QCG.js} +4 -4
  16. package/dist/bundle/{chunk-KLHLWKWC.js → chunk-4JXZKMXV.js} +65 -54
  17. package/dist/bundle/{chunk-J4QVXR5I.js → chunk-5BNYW5RA.js} +2 -2
  18. package/dist/bundle/{chunk-33HEHPIK.js → chunk-5W72OARG.js} +8 -8
  19. package/dist/bundle/{chunk-YG4BO7N3.js → chunk-6KGENDPF.js} +2 -2
  20. package/dist/bundle/{chunk-HN6ZMUAS.js → chunk-7MFJFVUN.js} +1 -1
  21. package/dist/bundle/{chunk-3BD24JYK.js → chunk-B3Y2KZRS.js} +105 -94
  22. package/dist/bundle/{chunk-KE47Y4PW.js → chunk-BIERCQVG.js} +639 -374
  23. package/dist/bundle/{chunk-J2Z5E7TO.js → chunk-BTAET4U3.js} +1 -1
  24. package/dist/bundle/{chunk-UIPT6IAU.js → chunk-COTC7HF3.js} +1 -1
  25. package/dist/bundle/{chunk-MSGYLWCH.js → chunk-D5JP2YWG.js} +2 -2
  26. package/dist/bundle/{chunk-UDYCZ5KB.js → chunk-DFUTZGEV.js} +1 -1
  27. package/dist/bundle/{chunk-QVM2HKJP.js → chunk-DNYGJAEP.js} +4 -4
  28. package/dist/bundle/{chunk-2ZH3PUQX.js → chunk-E4EJ2UTT.js} +2 -2
  29. package/dist/bundle/{chunk-DREEXESG.js → chunk-EO7PQE3J.js} +82 -64
  30. package/dist/bundle/{chunk-NIKYFRDQ.js → chunk-EPAOLRUL.js} +2 -2
  31. package/dist/bundle/{chunk-BNQOUCL2.js → chunk-GM44UNGL.js} +1 -1
  32. package/dist/bundle/{chunk-NQAV7U7C.js → chunk-GSGS62LX.js} +1 -1
  33. package/dist/bundle/{chunk-UPRYEDAV.js → chunk-GW7JRFTF.js} +3 -3
  34. package/dist/bundle/{chunk-QEAMO2TS.js → chunk-ICEJKOKO.js} +7 -7
  35. package/dist/bundle/{chunk-LLAZSGS7.js → chunk-JIGYVVWA.js} +22 -22
  36. package/dist/bundle/{chunk-UMUJHC4M.js → chunk-JLB5LEXJ.js} +3 -3
  37. package/dist/bundle/{chunk-WDRNVSWF.js → chunk-JPRYFDOJ.js} +45 -44
  38. package/dist/bundle/{chunk-VIEVOF3O.js → chunk-JXTYTAWE.js} +11 -11
  39. package/dist/bundle/{chunk-XXOJ7PQY.js → chunk-JYOQMYNJ.js} +28 -28
  40. package/dist/bundle/{chunk-7665YBJ7.js → chunk-K7VOCHVS.js} +6 -6
  41. package/dist/bundle/{chunk-K457FHD4.js → chunk-KGYPSBTI.js} +22 -22
  42. package/dist/bundle/{chunk-BWRCPMMC.js → chunk-KLNQXUDX.js} +18 -18
  43. package/dist/bundle/{chunk-5ZPLOYTP.js → chunk-KYYAHIG2.js} +238 -222
  44. package/dist/bundle/{chunk-COHMFCHD.js → chunk-MCXVGHL6.js} +85 -31
  45. package/dist/bundle/{chunk-T6DSAROY.js → chunk-NKACHGB2.js} +25 -14
  46. package/dist/bundle/{chunk-OYVDWHP5.js → chunk-NQKPXVLX.js} +2 -2
  47. package/dist/bundle/{chunk-CJUSP5X2.js → chunk-PDVSMGWO.js} +2 -2
  48. package/dist/bundle/{chunk-XIRASTVS.js → chunk-PXUHQO66.js} +11 -11
  49. package/dist/bundle/{chunk-EO563SUX.js → chunk-QL4WBCL5.js} +7 -7
  50. package/dist/bundle/{chunk-PQGWEFJ2.js → chunk-QMJGHSGN.js} +3 -3
  51. package/dist/bundle/{chunk-UFIUMPXP.js → chunk-RANORATG.js} +4 -4
  52. package/dist/bundle/{chunk-5FJQG5UZ.js → chunk-RC7EBLHM.js} +8 -8
  53. package/dist/bundle/{chunk-7GQLD5TJ.js → chunk-RHYMEHYK.js} +2 -2
  54. package/dist/bundle/{chunk-QAC6Z675.js → chunk-RPNRCFEE.js} +2 -2
  55. package/dist/bundle/{chunk-EB44Z44U.js → chunk-SC2DUQAK.js} +1 -1
  56. package/dist/bundle/{chunk-ONHHBPV3.js → chunk-SFJFBIYP.js} +2 -2
  57. package/dist/bundle/{chunk-ITSSCYLP.js → chunk-TOBJGMMA.js} +11 -11
  58. package/dist/bundle/{chunk-ZCHC7TYO.js → chunk-TUJEJ4D5.js} +26 -13
  59. package/dist/bundle/{chunk-DEG4JJHG.js → chunk-UQOSZ2XX.js} +449 -341
  60. package/dist/bundle/{chunk-ZCV4UEVH.js → chunk-UVRD447S.js} +3 -3
  61. package/dist/bundle/{chunk-2K6IGVSI.js → chunk-UXCWUEN7.js} +5 -5
  62. package/dist/bundle/{chunk-3WUTBGZE.js → chunk-WI2S6INJ.js} +6 -6
  63. package/dist/bundle/{chunk-AUWYMMYL.js → chunk-WWKXTKCE.js} +4 -4
  64. package/dist/bundle/{chunk-QLLPZWYZ.js → chunk-XSYJKEA5.js} +4 -4
  65. package/dist/bundle/command-contract-4KVJJZ46.js +32 -0
  66. package/dist/bundle/{decode-QJNVAAKJ.js → decode-FR3QHHJI.js} +4 -4
  67. package/dist/bundle/{echarts-2EDY7OUX.js → echarts-VTV4C2OS.js} +2 -2
  68. package/dist/bundle/{embed-PZSXOQJO.js → embed-US7X5P5D.js} +5 -5
  69. package/dist/bundle/{embedder-O4EGMMUU.js → embedder-63Z7ZBYG.js} +8 -8
  70. package/dist/bundle/{entry-DVLMQM6J.js → entry-B4J7IAG3.js} +5 -5
  71. package/dist/bundle/{first-run-J67KTUWA.js → first-run-MXPPUGII.js} +9 -9
  72. package/dist/bundle/first-screen-GFYHUBBD.js +30 -0
  73. package/dist/bundle/{identity-DSYY4FLQ.js → identity-AQWKU7SM.js} +3 -3
  74. package/dist/bundle/{instructions-O535XB2L.js → instructions-GBR6DJTK.js} +1 -1
  75. package/dist/bundle/{mcp-EMNFFY4N.js → mcp-YJEQYYTR.js} +2 -2
  76. package/dist/bundle/{node-S3VEQNTE.js → node-QXGPMDH2.js} +2 -2
  77. package/dist/bundle/{node-sqlite-3DNWF2BW.js → node-sqlite-L6CAMXQ2.js} +4 -4
  78. package/dist/bundle/{oauth-IU2RAZ3D.js → oauth-5RK6J4SG.js} +6 -6
  79. package/dist/bundle/{open-M2IPPXMI.js → open-A3IAG7U6.js} +3 -3
  80. package/dist/bundle/{openai-GDI7HISL.js → openai-YKNGCHVV.js} +13 -13
  81. package/dist/bundle/{process-3IGMEATV.js → process-CGLNXFIU.js} +1 -1
  82. package/dist/bundle/{program-P7YPHVLD.js → program-AEDR6R5P.js} +48 -48
  83. package/dist/bundle/{prompt-S6R7IHDK.js → prompt-65CSCL2T.js} +4 -4
  84. package/dist/bundle/{proxy-transport-OROEVBCG.js → proxy-transport-U3QOYMQF.js} +4 -4
  85. package/dist/bundle/{recognize-PFZRQ3P4.js → recognize-ECRO6CFK.js} +3 -3
  86. package/dist/bundle/{remote-Q37V7LUX.js → remote-6IEFZFGO.js} +6 -6
  87. package/dist/bundle/{rerank-V5YQQQAM.js → rerank-23GXWT2V.js} +6 -6
  88. package/dist/bundle/{serve-5CAD2UVG.js → serve-S65YTPZN.js} +8 -8
  89. package/dist/bundle/server-IH24WEAC.js +56 -0
  90. package/dist/bundle/{server-R6YAO2SG.js → server-MVTBK7GV.js} +32 -32
  91. package/dist/bundle/{state-Y3A2NEM3.js → state-TH3UVQAW.js} +5 -5
  92. package/dist/bundle/{store-H5K32CNI.js → store-2WFTUSNG.js} +12 -10
  93. package/dist/bundle/store-maintenance-command-PUOU2CL6.js +45 -0
  94. package/dist/bundle/tg.js +4 -4
  95. package/dist/telegram/adapter.d.ts +2 -0
  96. package/dist/telegram/adapter.d.ts.map +1 -1
  97. package/dist/telegram/adapter.js +3 -0
  98. package/dist/telegram/adapter.js.map +1 -1
  99. package/dist/telegram/topics.d.ts +4 -2
  100. package/dist/telegram/topics.d.ts.map +1 -1
  101. package/dist/telegram/topics.js +21 -3
  102. package/dist/telegram/topics.js.map +1 -1
  103. package/dist/version.d.ts +1 -1
  104. package/dist/version.js +1 -1
  105. package/package.json +3 -3
  106. package/skills/tg-cli/SKILL.md +2 -0
  107. package/dist/bundle/command-contract-JCRVVL7P.js +0 -32
  108. package/dist/bundle/first-screen-PYEE5NMQ.js +0 -30
  109. package/dist/bundle/server-RUQLAWWS.js +0 -56
  110. package/dist/bundle/store-maintenance-command-QZDC4WKW.js +0 -45
  111. /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-WJWLHLQ7.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.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
527
527
  }
528
528
  });
529
529
 
530
- // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
530
+ // node_modules/.pnpm/@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
531
531
  import { existsSync } from "node:fs";
532
532
  import { win32 } from "node:path";
533
533
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openCache
5
- } from "./chunk-TWZTQHP6.js";
5
+ } from "./chunk-3W7BU2BL.js";
6
6
  import {
7
7
  CliError,
8
8
  isCliError
9
- } from "./chunk-EO563SUX.js";
9
+ } from "./chunk-QL4WBCL5.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -4,15 +4,15 @@ import {
4
4
  organization,
5
5
  project,
6
6
  reminder
7
- } from "./chunk-QLLPZWYZ.js";
7
+ } from "./chunk-XSYJKEA5.js";
8
8
  import {
9
9
  queryFieldsOf
10
- } from "./chunk-DREEXESG.js";
10
+ } from "./chunk-EO7PQE3J.js";
11
11
 
12
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
12
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
13
13
  var MAX_BYTES = 16 * 1024 * 1024;
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
16
16
  var ORGANIZATIONS_QUERY = {
17
17
  entity: "organization",
18
18
  backend: "sql",
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-EO563SUX.js";
5
+ } from "./chunk-QL4WBCL5.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();