better-tg-cli 0.28.0 → 0.29.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 +36 -1
- package/README.ru.md +36 -1
- package/dist/telegram.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -117,6 +117,15 @@ The skill and the MCP server together, in one install:
|
|
|
117
117
|
It runs the MCP server through `npx`, so Node 20+ is enough. Log in once with `telegram auth --qr`
|
|
118
118
|
(or `npx better-tg-cli auth --qr`) in a terminal.
|
|
119
119
|
|
|
120
|
+
### Codex plugin
|
|
121
|
+
|
|
122
|
+
The same skill and MCP server as a Codex plugin (also shows up in the ChatGPT desktop app):
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
codex plugin marketplace add TheVilfer/better-tg-cli
|
|
126
|
+
codex plugin add better-tg-cli@better-tg-cli
|
|
127
|
+
```
|
|
128
|
+
|
|
120
129
|
### Grok Build plugin
|
|
121
130
|
|
|
122
131
|
[Grok Build](https://x.ai/cli) installs the same plugin, skill and MCP server together:
|
|
@@ -307,17 +316,43 @@ If you installed the agent skill with `telegram skill install`, run that again t
|
|
|
307
316
|
- Telegram test servers;
|
|
308
317
|
- editor debugging and tests.
|
|
309
318
|
|
|
310
|
-
Releases are cut by `scripts/release.sh patch|minor|major
|
|
319
|
+
Releases are cut by `scripts/release.sh patch|minor|major` (a release PR), then `scripts/release.sh tag` after the merge. A tag builds the binaries and
|
|
311
320
|
publishes to GitHub Releases, npm (trusted publishing with provenance), the Homebrew tap and the
|
|
312
321
|
MCP Registry. See
|
|
313
322
|
[CONTRIBUTING.md](CONTRIBUTING.md).
|
|
314
323
|
|
|
324
|
+
## Uninstall
|
|
325
|
+
|
|
326
|
+
1. `telegram logout` deletes the saved session. To end it on Telegram's side too, terminate it in
|
|
327
|
+
Telegram → Settings → Devices.
|
|
328
|
+
2. `telegram skill uninstall` removes the skill from the agents it was installed into.
|
|
329
|
+
3. Remove the program: `brew uninstall better-tg-cli`, `npm uninstall -g better-tg-cli` or
|
|
330
|
+
`scoop uninstall better-tg-cli`. For a binary from Releases, delete `telegram` / `telegram.exe`.
|
|
331
|
+
4. Delete the config folder: `~/.config/tg` (`%APPDATA%\tg` on Windows), plus `~/.config/tg-<profile>`
|
|
332
|
+
for any `TG_PROFILE` you used. On Windows this also removes the DPAPI secrets file. Elsewhere the
|
|
333
|
+
api_hash and write-access flag stay in the secret store: delete the `tg-cli` items in Keychain
|
|
334
|
+
Access (or `secret-tool clear service tg-cli`), or the item in your 1Password vault.
|
|
335
|
+
|
|
315
336
|
## Privacy
|
|
316
337
|
|
|
317
338
|
No analytics. The only service we run is the optional invite broker, which never sees your
|
|
318
339
|
messages or session. See [PRIVACY.md](PRIVACY.md) for the three hosts the CLI talks to and what it
|
|
319
340
|
stores locally.
|
|
320
341
|
|
|
342
|
+
## Code signing policy
|
|
343
|
+
|
|
344
|
+
Windows binaries are built from this repository by GitHub Actions only (`.github/workflows/release.yml`),
|
|
345
|
+
never on a personal machine. We have applied for free code signing from SignPath Foundation; once it
|
|
346
|
+
is in place, release binaries will carry: *Free code signing provided by
|
|
347
|
+
[SignPath.io](https://about.signpath.io), certificate by [SignPath Foundation](https://signpath.org).*
|
|
348
|
+
Until then the Windows `telegram.exe` is unsigned; macOS binaries are ad-hoc signed.
|
|
349
|
+
|
|
350
|
+
- Committers and reviewers: [@TheVilfer](https://github.com/TheVilfer)
|
|
351
|
+
- Approvers (each signed release): [@TheVilfer](https://github.com/TheVilfer)
|
|
352
|
+
- Privacy policy: [PRIVACY.md](PRIVACY.md). The CLI talks only to Telegram, to the invite broker
|
|
353
|
+
when you log in with an invite, and to the npm registry for a daily update check in a terminal
|
|
354
|
+
(off with `TG_NO_UPDATE_CHECK=1`).
|
|
355
|
+
|
|
321
356
|
## License
|
|
322
357
|
|
|
323
358
|
MIT, see [LICENSE](LICENSE). Based on [skillhq/telegram](https://github.com/skillhq/telegram) by
|
package/README.ru.md
CHANGED
|
@@ -116,6 +116,15 @@ scoop install better-tg-cli
|
|
|
116
116
|
MCP-сервер запускается через `npx`, так что хватит Node 20+. Один раз войдите в терминале:
|
|
117
117
|
`telegram auth --qr` (или `npx better-tg-cli auth --qr`).
|
|
118
118
|
|
|
119
|
+
### Плагин для Codex
|
|
120
|
+
|
|
121
|
+
Тот же скилл и MCP-сервер в виде плагина Codex (он появится и в десктопном приложении ChatGPT):
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
codex plugin marketplace add TheVilfer/better-tg-cli
|
|
125
|
+
codex plugin add better-tg-cli@better-tg-cli
|
|
126
|
+
```
|
|
127
|
+
|
|
119
128
|
### Плагин для Grok Build
|
|
120
129
|
|
|
121
130
|
[Grok Build](https://x.ai/cli) ставит тот же плагин, скилл и MCP-сервер вместе:
|
|
@@ -308,16 +317,42 @@ tailscale funnel --bg 8787 # или: cloudflared tunnel --url h
|
|
|
308
317
|
- тестовые серверы Telegram;
|
|
309
318
|
- отладка в редакторе и тесты.
|
|
310
319
|
|
|
311
|
-
Релиз
|
|
320
|
+
Релиз готовит `scripts/release.sh patch|minor|major` (PR с новой версией), после мержа `scripts/release.sh tag` ставит тег. Тег собирает бинарники и публикует их в
|
|
312
321
|
GitHub Releases, в npm (trusted publishing с provenance), в Homebrew-тап и в MCP Registry. Подробнее в
|
|
313
322
|
[CONTRIBUTING.md](CONTRIBUTING.md).
|
|
314
323
|
|
|
324
|
+
## Удаление
|
|
325
|
+
|
|
326
|
+
1. `telegram logout` удаляет сохранённую сессию. Чтобы завершить её и на стороне Telegram,
|
|
327
|
+
закройте её в Telegram → Настройки → Устройства.
|
|
328
|
+
2. `telegram skill uninstall` убирает скилл из агентов, куда он был установлен.
|
|
329
|
+
3. Удалите саму программу: `brew uninstall better-tg-cli`, `npm uninstall -g better-tg-cli` или
|
|
330
|
+
`scoop uninstall better-tg-cli`. Бинарник из Releases удаляется как обычный файл.
|
|
331
|
+
4. Удалите папку настроек: `~/.config/tg` (`%APPDATA%\tg` на Windows) и `~/.config/tg-<профиль>`
|
|
332
|
+
для каждого `TG_PROFILE`, который вы использовали. На Windows вместе с ней удалится и файл секретов
|
|
333
|
+
DPAPI. На других системах api_hash и флаг write-access остаются в хранилище секретов: удалите
|
|
334
|
+
записи `tg-cli` в «Связке ключей» (или `secret-tool clear service tg-cli`) либо запись в 1Password.
|
|
335
|
+
|
|
315
336
|
## Приватность
|
|
316
337
|
|
|
317
338
|
Аналитики нет. Единственный наш сервис — необязательный брокер инвайтов, и он не видит ни ваших
|
|
318
339
|
сообщений, ни сессии. В [PRIVACY.md](PRIVACY.md) перечислены три хоста, с которыми общается CLI,
|
|
319
340
|
и то, что он хранит локально.
|
|
320
341
|
|
|
342
|
+
## Code signing policy
|
|
343
|
+
|
|
344
|
+
Бинарники для Windows собираются из этого репозитория только в GitHub Actions
|
|
345
|
+
(`.github/workflows/release.yml`), никогда не на личной машине. Мы подали заявку на бесплатную
|
|
346
|
+
подпись кода от SignPath Foundation; когда её одобрят, в релизах будет: *Free code signing provided
|
|
347
|
+
by [SignPath.io](https://about.signpath.io), certificate by [SignPath Foundation](https://signpath.org).*
|
|
348
|
+
Пока `telegram.exe` для Windows не подписан; бинарники для macOS подписаны ad-hoc.
|
|
349
|
+
|
|
350
|
+
- Коммиттеры и ревьюеры: [@TheVilfer](https://github.com/TheVilfer)
|
|
351
|
+
- Утверждают каждый подписанный релиз: [@TheVilfer](https://github.com/TheVilfer)
|
|
352
|
+
- Политика приватности: [PRIVACY.md](PRIVACY.md). CLI обращается только к Telegram, к брокеру
|
|
353
|
+
инвайтов при входе по инвайту и раз в день к npm-реестру за номером версии, если запущен в
|
|
354
|
+
терминале (отключается `TG_NO_UPDATE_CHECK=1`).
|
|
355
|
+
|
|
321
356
|
## Лицензия
|
|
322
357
|
|
|
323
358
|
MIT, см. [LICENSE](LICENSE). Основано на [skillhq/telegram](https://github.com/skillhq/telegram)
|