@wirecat/tg-cli 0.46.0 → 0.46.1

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 CHANGED
@@ -411,18 +411,20 @@ line. Every list comes in one shape:
411
411
  { "items": [ … ], "page": 1, "limit": 20, "hasMore": true }
412
412
  ```
413
413
 
414
- An error comes apart from the data — one line on stderr, while stdout stays empty, so it cannot be
414
+ An error that ends the command comes apart from the data — one line on stderr, while stdout stays empty, so it cannot be
415
415
  taken for an empty result:
416
416
 
417
417
  ```json
418
418
  {"error":{"code":"authentication_error","message":"…"}}
419
419
  ```
420
420
 
421
- Every error has a number — the exit code. A script decides what to do next by it: `4` log in, `5`
421
+ An error that ends the command has a number — the exit code. A script decides what to do next by it: `4` log in, `5`
422
422
  the profile may not do this, `6` chat or message not found, `8` a limit, `9` Telegram did not answer
423
423
  in time, `14` unknown whether a message went. `tg commands --json` is the whole command tree, with
424
424
  every exit code. All codes: [docs/commands.md](docs/commands.md#exit-codes).
425
425
 
426
+ Partial reads or downloads can return JSON with exit code `0`: check `complete` and `batch` or `issue`. Partial download JSONL adds `batch_summary`. [Resume unfinished work](docs/attachments.md#recover-a-partial-file-batch).
427
+
426
428
  ## Security
427
429
 
428
430
  - The session is a file readable only by your user, and it is as good as your password: copying it
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.46.0";
1
+ export declare const VERSION = "0.46.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = "0.46.0";
1
+ export const VERSION = "0.46.1";
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/tg-cli",
3
- "version": "0.46.0",
3
+ "version": "0.46.1",
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",
@@ -63,8 +63,8 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "@mtcute/node": "0.32.3",
66
- "@wirecat/cli-core": "0.19.3",
67
- "@wirecat/cli-messaging": "0.222.0",
66
+ "@wirecat/cli-core": "0.19.4",
67
+ "@wirecat/cli-messaging": "0.225.0",
68
68
  "commander": "15.0.0",
69
69
  "undici": "7.30.0",
70
70
  "valibot": "1.5.0"
@@ -97,8 +97,10 @@ the owner before `tg store fetch <chat> --last 100`; setup starts no background
97
97
 
98
98
  ## Output
99
99
 
100
+ Partial reads and downloads may exit `0`: inspect `complete`, `batch.failed` and `issue`; partial download JSONL adds `batch_summary`. Completed work stays saved; resume unfinished items after the suggested wait.
101
+
100
102
  - **In a pipe or with `--json`, stdout carries data only**: one JSON value. Everything else,
101
- warnings included, goes to stderr. An error goes to stderr too, and stdout is then empty.
103
+ warnings included, goes to stderr. An error that ends the command goes to stderr too, and stdout is then empty.
102
104
  - **Most lists are an object, not an array**: `{ "items": [...], "page": 1, "limit": 20, "hasMore": true }`.
103
105
  A chat's messages are `{ "items": [...], "limit": 20, "hasMore": true }`.
104
106
  - **`--jsonl`**: one object per line, for `jq`. Whether there is more is said on stderr only.