polygram 0.6.12 → 0.6.13

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 (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -110,7 +110,7 @@ Practical differences that matter for migration:
110
110
 
111
111
  ## Install
112
112
 
113
- Requires Node 20+.
113
+ Requires Node 22+ (24 recommended; native test coverage is stable in 22).
114
114
 
115
115
  ```bash
116
116
  # Global binary:
@@ -351,7 +351,8 @@ foreign-chat clicks are rejected. Default-deny on IPC error.
351
351
  ## Development
352
352
 
353
353
  ```bash
354
- npm test # 470 tests, 110 suites, node:test, no external services
354
+ npm test # 481 tests, 113 suites, node:test, no external services
355
+ npm run coverage # native test coverage (Node 22+, no devDeps)
355
356
  npm start -- --bot my-bot
356
357
  npm run split-db -- --config config.json --dry-run
357
358
  npm run ipc-smoke -- my-bot
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polygram",
3
- "version": "0.6.12",
3
+ "version": "0.6.13",
4
4
  "description": "Telegram daemon for Claude Code that preserves the OpenClaw per-chat session model. Migration path for OpenClaw users moving to Claude Code.",
5
5
  "main": "lib/ipc-client.js",
6
6
  "bin": {
@@ -26,12 +26,14 @@
26
26
  ],
27
27
  "scripts": {
28
28
  "test": "node --test tests/*.test.js",
29
+ "coverage": "node --test --experimental-test-coverage tests/*.test.js",
30
+ "coverage:lcov": "mkdir -p coverage && node --test --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=coverage/lcov.info tests/*.test.js",
29
31
  "start": "node polygram.js",
30
32
  "split-db": "node scripts/split-db.js",
31
33
  "ipc-smoke": "node scripts/ipc-smoke.js"
32
34
  },
33
35
  "engines": {
34
- "node": ">=20"
36
+ "node": ">=22"
35
37
  },
36
38
  "keywords": [
37
39
  "telegram",