@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.
- package/README.md +1 -1
- package/dist/app.d.ts +3 -3
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +2 -12
- package/dist/app.js.map +1 -1
- package/dist/bin/tg.js +13 -8
- package/dist/bin/tg.js.map +1 -1
- package/dist/bot/proxy.d.ts.map +1 -1
- package/dist/bot/proxy.js +17 -2
- package/dist/bot/proxy.js.map +1 -1
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +6 -3
- package/dist/bot/transport.js.map +1 -1
- package/dist/commands/bot.d.ts.map +1 -1
- package/dist/commands/bot.js +2 -4
- package/dist/commands/bot.js.map +1 -1
- package/dist/commands/context.d.ts +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -2
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/proxy-config.d.ts.map +1 -1
- package/dist/commands/proxy-config.js +2 -1
- package/dist/commands/proxy-config.js.map +1 -1
- package/dist/identity.d.ts +4 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +14 -0
- package/dist/identity.js.map +1 -0
- package/dist/telegram/adapter.js +1 -1
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/bot-history.js +1 -1
- package/dist/telegram/bot-history.js.map +1 -1
- package/dist/telegram/groups.d.ts +1 -4
- package/dist/telegram/groups.d.ts.map +1 -1
- package/dist/telegram/groups.js +3 -4
- package/dist/telegram/groups.js.map +1 -1
- package/dist/telegram/map.d.ts +0 -15
- package/dist/telegram/map.d.ts.map +1 -1
- package/dist/telegram/map.js +0 -15
- package/dist/telegram/map.js.map +1 -1
- package/dist/telegram/proxy-transport.d.ts +19 -0
- package/dist/telegram/proxy-transport.d.ts.map +1 -0
- package/dist/telegram/proxy-transport.js +66 -0
- package/dist/telegram/proxy-transport.js.map +1 -0
- package/dist/telegram/proxy.d.ts +1 -17
- package/dist/telegram/proxy.d.ts.map +1 -1
- package/dist/telegram/proxy.js +1 -64
- package/dist/telegram/proxy.js.map +1 -1
- package/dist/telegram/rights.d.ts +19 -0
- package/dist/telegram/rights.d.ts.map +1 -0
- package/dist/telegram/rights.js +18 -0
- package/dist/telegram/rights.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/install/windows.ps1 +2 -2
- package/package.json +20 -21
- package/skills/tg-cli/SKILL.md +2 -2
package/install/windows.ps1
CHANGED
|
@@ -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
|
|
100
|
-
throw 'Node.js 22.
|
|
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.
|
|
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.
|
|
13
|
+
"node": "^22.19.0 || >=24"
|
|
14
14
|
},
|
|
15
|
-
"packageManager": "pnpm@11.
|
|
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.
|
|
71
|
-
"@wirecat/cli-base": "0.
|
|
72
|
-
"@wirecat/cli-core": "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": "
|
|
74
|
+
"undici": "8.12.3",
|
|
75
75
|
"valibot": "1.5.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@biomejs/biome": "2.
|
|
79
|
-
"@cspell/dict-en-gb": "5.0.
|
|
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.
|
|
82
|
-
"@napi-rs/canvas": "1.0.
|
|
83
|
-
"@types/node": "^22.20.
|
|
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.
|
|
86
|
-
"@wirecat/cli-testing": "0.5.
|
|
87
|
-
"cspell": "10.
|
|
88
|
-
"lefthook": "2.
|
|
89
|
-
"markdownlint-cli2": "0.
|
|
90
|
-
"rumdl": "^0.
|
|
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
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"vitest": "^5.0.3"
|
|
92
|
+
"vite": "8.3.5",
|
|
93
|
+
"vitest": "^5.0.5"
|
|
95
94
|
}
|
|
96
95
|
}
|
package/skills/tg-cli/SKILL.md
CHANGED
|
@@ -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
|
|
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,
|
|
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
|