claude-pager 0.1.1 → 0.1.3

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
@@ -6,21 +6,9 @@
6
6
 
7
7
  Get paged on your phone when Claude Code needs input. Reply from Telegram or ntfy, and `claude-pager` types your response into the correct terminal.
8
8
 
9
- ## How it works
9
+ ![Notification with Allow/Deny buttons](docs/screenshots/02-notification.png)
10
10
 
11
- ```
12
- ┌───────────────┐ hook → HTTP ┌────────────────┐ Telegram / ntfy ┌─────────┐
13
- │ Claude Code │ ─────────────► │ claude-pager │ ───────────────► │ Phone │
14
- │ (N instances) │ │ daemon │ ◄─────────────── │ (reply) │
15
- └───────────────┘ └───────┬────────┘ └─────────┘
16
-
17
- tmux send-keys
18
-
19
-
20
- ┌───────────────┐
21
- │ Right terminal │
22
- └───────────────┘
23
- ```
11
+ ## How it works
24
12
 
25
13
  1. Claude Code hooks fire when an instance needs user input
26
14
  2. The hook enriches the event (tool name, last assistant message) and sends it to the daemon
@@ -28,6 +16,15 @@ Get paged on your phone when Claude Code needs input. Reply from Telegram or ntf
28
16
  4. You respond — tap Allow/Deny, type a message, or send a voice note
29
17
  5. The daemon matches the response to the right session and injects it via `tmux send-keys`
30
18
 
19
+ | Step | Screenshot |
20
+ |------|-----------|
21
+ | Claude Code asks for permission | ![Claude waiting](docs/screenshots/01-typing.png) |
22
+ | Notification arrives on your phone | ![Telegram notification](docs/screenshots/02-notification.png) |
23
+ | You reply from Telegram | ![Reply and allow](docs/screenshots/03-allow.png) |
24
+ | Claude resumes automatically | ![Result](docs/screenshots/04-result.png) |
25
+
26
+ > See the full [demo video](docs/demo.mp4) (~50s).
27
+
31
28
  ## Features
32
29
 
33
30
  - **Multi-session** — run N Claude Code instances in tmux, responses route to the correct pane
@@ -195,7 +192,7 @@ See `docs/ARCHITECTURE.md` for the detailed flow.
195
192
  - HTTP API binds to `127.0.0.1` only — no network exposure
196
193
  - Input validation with Fastify JSON Schema + custom validators (`isValidEventType`, `isValidSessionId`)
197
194
  - No shell injection — all child processes use `execFileSync` with argument arrays
198
- - No code content in notifications — only tool names, project names, and question types
195
+ - Minimal context in notifications — tool names, project names, and truncated tool input (max 300 chars)
199
196
  - Memory-bounded maps (capped at 500-1000 entries)
200
197
  - Safe JSON parsing with fallbacks for corrupted files
201
198
 
package/dist/cli/index.js CHANGED
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-pager",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Remote notification and response relay for Claude Code CLI sessions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",