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 +12 -15
- package/dist/cli/index.js +0 -0
- package/dist/hooks/index.js +0 -0
- package/package.json +1 -1
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
|
-
|
|
9
|
+

|
|
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 |  |
|
|
22
|
+
| Notification arrives on your phone |  |
|
|
23
|
+
| You reply from Telegram |  |
|
|
24
|
+
| Claude resumes automatically |  |
|
|
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
|
-
-
|
|
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
|
package/dist/hooks/index.js
CHANGED
|
File without changes
|