Commit graph

15 commits

Author SHA1 Message Date
766ae27fee
Resume the child process first 2026-01-30 07:46:41 -05:00
d5194ede9e
Send a redraw 2026-01-30 07:44:53 -05:00
fd9ec777a3
Try out suspension 2026-01-30 07:40:52 -05:00
f42052d6d8
Add visual separation before Remote help section 2026-01-30 05:19:01 -05:00
b6d670deac
Add backoff reconnecting 2026-01-28 18:41:26 -05:00
4ab2078afd
Handle when claude isnt installed 2026-01-28 17:51:55 -05:00
8c5c9f99f0
Append our help to the end of claude help 2026-01-28 17:49:43 -05:00
eb3bad289a
Add light build requiring bun installed 2026-01-28 17:34:02 -05:00
86951e5e94
Format code with biome 2026-01-28 17:08:59 -05:00
2a41a3302b
Add compiled binary support with env var config
- Read CLAUDE_REMOTE_SECRET and CLAUDE_REMOTE_SERVER from env
- Make -- separator optional (all args pass through to claude)
- Add --help support (shows wrapper info, passes to claude if configured)
- Update README with binary build/install instructions
- Add binary to .gitignore
2026-01-28 16:59:36 -05:00
43f7574e4e
Change default port from 3000 to 7200 2026-01-28 15:37:25 -05:00
f31d33f992
Parse state and stats events from Claude Code hooks
Add parsing of structured JSON events from Claude Code hooks in PTY
output. State events track session lifecycle (ready/thinking/permission/
question/complete/interrupted). Stats events provide session metrics
(prompts, completions, tools, thinking time, etc).

Events are detected by parsing each line of PTY output, extracting valid
JSON objects with a type field, and forwarding state/stats events to the
server via WebSocket while preserving all output passthrough.
2026-01-28 13:48:56 -05:00
508a1c9837
Fix CLI resource cleanup and auth flow 2026-01-28 11:50:51 -05:00
54bc458b7d
Add PTY CLI wrapper
Wraps claude CLI in PTY and bridges to WebSocket server. Handles:
- Argument parsing (--server, --secret)
- PTY spawn with terminal size detection
- Bidirectional I/O: local stdin/stdout + WebSocket
- Terminal resize events (SIGWINCH)
- Graceful cleanup on exit
- Basic WebSocket reconnection
- Auth and session messages to server
2026-01-28 11:46:47 -05:00
726190eaa6
Restructure project files into src and public directories
Moved index.ts to src/server.ts and created stub files for types, db, auth,
and cli modules. Added minimal placeholder for dashboard. Removed generated
README.md in favor of CLAUDE.md and docs/plan.md.
2026-01-28 11:00:19 -05:00