Commit graph

11 commits

Author SHA1 Message Date
7f3ce24099
Format code with biome 2026-01-28 13:59:55 -05:00
5df3392ad9
Use union types for state and mode in Session interface 2026-01-28 13:59:17 -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
1827baaf39
Fix answer endpoint to avoid duplicate DB updates 2026-01-28 13:20:47 -05:00
a9e6392649
Fix SSE event type to include prompt_json field
The prompt SSE event now includes prompt_json to transmit structured
prompt data to the dashboard for rich prompt rendering.
2026-01-28 13:02:05 -05:00
2aeec48627
Add TypeScript interfaces for rich prompt system 2026-01-28 12:54:51 -05:00
508a1c9837
Fix CLI resource cleanup and auth flow 2026-01-28 11:50:51 -05:00
65b8acf5f8
Fix SSE cleanup and add prompt creation endpoint
- Fix SSE cancel handler to properly capture controller in closure
- Remove error JSON messages before WebSocket close (close reason is sufficient)
- Add POST /api/sessions/:sessionId/prompts endpoint for prompt creation
- Add SSE client cleanup on broadcast errors
- Add createPrompt and getSession imports
- Add prompt message type to ClientMessage for CLI prompt reporting
- Add prompt message handler in WebSocket to create and broadcast prompts
2026-01-28 11:41:50 -05:00
596b0fd013
Add SQLite database layer with tests 2026-01-28 11:15:36 -05:00
e61bcb544d
Add message and entity types 2026-01-28 11:09:44 -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