cli/pkg/cli
Snider 6062853649 feat(cli): add daemon mode support
Add comprehensive daemon mode support to pkg/cli:

- Mode detection (Interactive/Pipe/Daemon) based on TTY and CORE_DAEMON env
- TTY helpers using golang.org/x/term (IsTTY, IsStdinTTY, IsStderrTTY)
- PIDFile for single-instance enforcement with stale PID detection
- HealthServer with /health and /ready endpoints for orchestration
- Daemon lifecycle manager combining PID, health, and graceful shutdown
- SIGHUP support for configuration reloading in runtime.go
- Fix i18n.go type references (MissingKey, OnMissingKey)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 19:28:50 +00:00
..
daemon.go feat(cli): add daemon mode support 2026-01-30 19:28:50 +00:00
daemon_test.go feat(cli): add daemon mode support 2026-01-30 19:28:50 +00:00
i18n.go feat(cli): add daemon mode support 2026-01-30 19:28:50 +00:00
log.go feat(cli): wire Core runtime with i18n and log services 2026-01-30 10:55:30 +00:00
runtime.go feat(cli): add daemon mode support 2026-01-30 19:28:50 +00:00
styles.go refactor(cli): clean DX with direct function calls 2026-01-30 10:41:35 +00:00
utils.go refactor(i18n): remove C() and move intents to test-only 2026-01-30 16:50:08 +00:00