Ryan Snodgrass
cafc0b9dfb
refactor(doctor): consolidate maintenance commands + improve daemon startup
Consolidate clean, repair-deps, validate into bd doctor:
- Add validation checks to doctor (merge artifacts, orphaned deps, duplicates, test pollution, git conflicts)
- Add auto-fix for merge artifacts and orphaned dependencies
- Delete obsolete command files: clean.go, repair_deps.go, validate.go
- Delete orphaned test files: clean_security_test.go, validate_test.go
Improve daemon startup performance:
- Add fast-fail detection when daemon crashed (check lock before retrying)
- Reduce graceful shutdown timeout from 5s to 1s
- Skip daemon connection for root command (just shows help)
- Extract shutdown timeout as constants (daemonShutdownTimeout, daemonShutdownPollInterval)
Other changes:
- Move rename-prefix command to Maintenance group in help
- Fix Makefile to inject git commit hash via ldflags
New files:
- cmd/bd/doctor/validation.go (5 check functions)
- cmd/bd/doctor/fix/validation.go (2 fix functions)
2025-12-22 20:21:30 -08:00
..
2025-12-04 11:21:43 -08:00
2025-11-23 20:58:11 -08:00
2025-12-22 20:21:30 -08:00
2025-11-21 14:40:22 -05:00
2025-12-19 17:50:14 -08:00
2025-12-04 11:21:43 -08:00
2025-11-02 09:56:42 -08:00
2025-11-02 09:56:42 -08:00
2025-12-22 18:47:18 -05:00
2025-12-04 11:21:43 -08:00
2025-11-07 14:21:14 -08:00
2025-12-22 18:47:18 -05:00
2025-12-17 01:15:40 -08:00
2025-12-21 15:22:45 -08:00
2025-11-07 14:21:14 -08:00
2025-11-20 08:13:06 -08:00
2025-12-12 13:19:31 -08:00
2025-12-22 18:47:18 -05:00
2025-11-06 19:51:16 -08:00
2025-12-22 18:47:18 -05:00
2025-12-19 17:50:14 -08:00
2025-12-04 11:21:43 -08:00