mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 19:38:58 +00:00
This commit adds the basic CLI structure for a process manager feature with four new commands: start, stop, list, and logs. The implementation provides the command routing and basic structure but is NOT FUNCTIONAL yet. What this commit adds: - CLI commands: bun start/stop/list/logs with proper help text - Protocol definitions for IPC communication - Manager daemon skeleton with process spawning logic - Client connection structure - Basic integration tests verifying CLI wiring What is NOT implemented: - Unix socket communication between client and daemon - Actual daemon lifecycle management - Log following and real-time output - Process monitoring and auto-restart The socket communication functions return NotImplemented errors. This is intentional - the full implementation requires deep integration with uSockets and proper event loop handling which is beyond the scope of this initial commit. Tests verify that: - Commands are properly registered and show usage messages - The list command returns "no processes" when manager is not running - Commands fail gracefully with NotImplemented errors This skeleton can serve as a foundation for future work to complete the socket communication and daemon implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>