@wirecat/tg-cli 0.91.0 → 0.93.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 (56) hide show
  1. package/README.md +1 -1
  2. package/dist/app.d.ts +3 -3
  3. package/dist/app.d.ts.map +1 -1
  4. package/dist/app.js +2 -12
  5. package/dist/app.js.map +1 -1
  6. package/dist/bin/tg.js +13 -8
  7. package/dist/bin/tg.js.map +1 -1
  8. package/dist/bot/proxy.d.ts.map +1 -1
  9. package/dist/bot/proxy.js +17 -2
  10. package/dist/bot/proxy.js.map +1 -1
  11. package/dist/bot/transport.d.ts.map +1 -1
  12. package/dist/bot/transport.js +6 -3
  13. package/dist/bot/transport.js.map +1 -1
  14. package/dist/commands/bot.d.ts.map +1 -1
  15. package/dist/commands/bot.js +2 -4
  16. package/dist/commands/bot.js.map +1 -1
  17. package/dist/commands/context.d.ts +1 -1
  18. package/dist/commands/context.d.ts.map +1 -1
  19. package/dist/commands/context.js +2 -2
  20. package/dist/commands/context.js.map +1 -1
  21. package/dist/commands/proxy-config.d.ts.map +1 -1
  22. package/dist/commands/proxy-config.js +2 -1
  23. package/dist/commands/proxy-config.js.map +1 -1
  24. package/dist/identity.d.ts +4 -0
  25. package/dist/identity.d.ts.map +1 -0
  26. package/dist/identity.js +14 -0
  27. package/dist/identity.js.map +1 -0
  28. package/dist/telegram/adapter.js +1 -1
  29. package/dist/telegram/adapter.js.map +1 -1
  30. package/dist/telegram/bot-history.js +1 -1
  31. package/dist/telegram/bot-history.js.map +1 -1
  32. package/dist/telegram/groups.d.ts +1 -4
  33. package/dist/telegram/groups.d.ts.map +1 -1
  34. package/dist/telegram/groups.js +3 -4
  35. package/dist/telegram/groups.js.map +1 -1
  36. package/dist/telegram/map.d.ts +0 -15
  37. package/dist/telegram/map.d.ts.map +1 -1
  38. package/dist/telegram/map.js +0 -15
  39. package/dist/telegram/map.js.map +1 -1
  40. package/dist/telegram/proxy-transport.d.ts +19 -0
  41. package/dist/telegram/proxy-transport.d.ts.map +1 -0
  42. package/dist/telegram/proxy-transport.js +66 -0
  43. package/dist/telegram/proxy-transport.js.map +1 -0
  44. package/dist/telegram/proxy.d.ts +1 -17
  45. package/dist/telegram/proxy.d.ts.map +1 -1
  46. package/dist/telegram/proxy.js +1 -64
  47. package/dist/telegram/proxy.js.map +1 -1
  48. package/dist/telegram/rights.d.ts +19 -0
  49. package/dist/telegram/rights.d.ts.map +1 -0
  50. package/dist/telegram/rights.js +18 -0
  51. package/dist/telegram/rights.js.map +1 -0
  52. package/dist/version.d.ts +1 -1
  53. package/dist/version.js +1 -1
  54. package/install/windows.ps1 +2 -2
  55. package/package.json +20 -21
  56. package/skills/tg-cli/SKILL.md +2 -2
@@ -96,8 +96,8 @@ if (-not $RepairOnly) {
96
96
  if ($LASTEXITCODE -ne 0 -or $nodeVersion -notmatch '^v(\d+)\.(\d+)\.') { throw 'Could not read the Node.js version.' }
97
97
  $major = [int] $Matches[1]
98
98
  $minor = [int] $Matches[2]
99
- if (-not ($major -ge 24 -or ($major -eq 22 -and $minor -ge 16))) {
100
- throw 'Node.js 22.16+ or 24+ is required. Install a supported Node.js release first.'
99
+ if (-not ($major -ge 24 -or ($major -eq 22 -and $minor -ge 19))) {
100
+ throw 'Node.js 22.19+ or 24+ is required. Install a supported Node.js release first.'
101
101
  }
102
102
  $npm = (Get-Command npm.cmd -CommandType Application -ErrorAction Stop | Select-Object -First 1).Source
103
103
  $package = "@wirecat/$Tool-cli"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/tg-cli",
3
- "version": "0.91.0",
3
+ "version": "0.93.0",
4
4
  "description": "A local command line interface for a personal Telegram account, built for agents and scripts",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Viacheslav Ptsarev",
@@ -10,9 +10,9 @@
10
10
  },
11
11
  "type": "module",
12
12
  "engines": {
13
- "node": "^22.16.0 || >=24"
13
+ "node": "^22.19.0 || >=24"
14
14
  },
15
- "packageManager": "pnpm@11.20.0",
15
+ "packageManager": "pnpm@11.28.8",
16
16
  "bin": {
17
17
  "tg": "dist/bin/tg.js"
18
18
  },
@@ -67,30 +67,29 @@
67
67
  "package:check": "node --experimental-strip-types scripts/release-check.ts --package-only"
68
68
  },
69
69
  "dependencies": {
70
- "@mtcute/node": "0.32.4",
71
- "@wirecat/cli-base": "0.53.0",
72
- "@wirecat/cli-core": "0.420.0",
70
+ "@mtcute/node": "0.32.7",
71
+ "@wirecat/cli-base": "0.57.1",
72
+ "@wirecat/cli-core": "0.435.0",
73
73
  "commander": "15.0.0",
74
- "undici": "7.30.1",
74
+ "undici": "8.12.3",
75
75
  "valibot": "1.5.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@biomejs/biome": "2.5.15",
79
- "@cspell/dict-en-gb": "5.0.34",
78
+ "@biomejs/biome": "2.6.3",
79
+ "@cspell/dict-en-gb": "5.0.38",
80
80
  "@cspell/dict-es-es": "3.0.9",
81
- "@cspell/dict-ru_ru": "2.3.3",
82
- "@napi-rs/canvas": "1.0.11",
83
- "@types/node": "^22.20.4",
81
+ "@cspell/dict-ru_ru": "2.3.4",
82
+ "@napi-rs/canvas": "1.0.13",
83
+ "@types/node": "^22.20.5",
84
84
  "@valibot/to-json-schema": "1.8.0",
85
- "@vitest/coverage-v8": "5.0.3",
86
- "@wirecat/cli-testing": "0.5.2",
87
- "cspell": "10.3.6",
88
- "lefthook": "2.1.16",
89
- "markdownlint-cli2": "0.23.3",
90
- "rumdl": "^0.2.79",
85
+ "@vitest/coverage-v8": "5.0.5",
86
+ "@wirecat/cli-testing": "0.5.3",
87
+ "cspell": "10.4.0",
88
+ "lefthook": "2.2.2",
89
+ "markdownlint-cli2": "0.24.0",
90
+ "rumdl": "^0.3.0",
91
91
  "typescript": "^7.0.2",
92
- "unpdf": "1.8.1",
93
- "vite": "8.3.3",
94
- "vitest": "^5.0.3"
92
+ "vite": "8.3.5",
93
+ "vitest": "^5.0.5"
95
94
  }
96
95
  }
@@ -33,7 +33,7 @@ before action; it opens no messenger connection, reserves no write and leaves ta
33
33
  See the [CLI contract](https://github.com/WireCatLabs/tg-cli/blob/main/docs/cli-contract.md).
34
34
 
35
35
  MCP uses `tg_tools_search`, then `tg_read` or `tg_write` with `{command, arguments}`.
36
- Use the CLI path such as `stats messages show`; former per-command tool names are gone.
36
+ Use the CLI path such as `stats messages show`.
37
37
  Bots use `tg_bot_tools_search/read/write` with commands without `bot`; arguments are the command's options in
38
38
  snake_case. There are no forms;
39
39
  profile permissions decide access and `ask` permits the requested MCP write. CLI confirmation remains.
@@ -208,7 +208,7 @@ summary; news digests remain separate future work. Permission: `messages.evidenc
208
208
  15. **`--photo <path>` or `--file <path>` attaches a file, the text as its caption.**
209
209
  Repeat for an album of up to ten items: photos/videos together, or documents only. The caption goes
210
210
  on the first item; every item counts toward the hourly limit. JSON returns all `messages`. A photo is
211
- recompressed by Telegram; a file goes byte for byte. Hidden files and folders, `~/.ssh`, tg's own
211
+ recompressed by Telegram; a file goes byte for byte. Hidden files and folders, SSH keys, tg's own
212
212
  folders and the message store are refused — only the owner adds `--allow-any-file`. A retry with
213
213
  the same `--operation-id` is safe here too (measured 2026-09-29).
214
214
  **Forum sends:** `messages send --topic`, `messages forward --topic` and `polls create --topic` use a topic id