Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
==========================================
+ Coverage 86.74% 87.50% +0.75%
==========================================
Files 54 60 +6
Lines 3441 4040 +599
==========================================
+ Hits 2985 3535 +550
- Misses 326 358 +32
- Partials 130 147 +17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR implements automated installation for dashlights, adding support for shell prompt integration (bash, zsh, fish, Powerlevel10k) and AI agent hooks (Claude, Cursor). The installer features automatic shell detection, backup creation, idempotency, dry-run mode, and interactive confirmations.
Key changes:
- Added new
installpackage with comprehensive filesystem abstraction, backup management, and installation logic - Integrated install modes into main CLI via
--installpromptand--installagentflags - Included extensive unit tests with mock filesystem support and Docker-based integration tests
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/main.go | Adds install mode entry points and CLI argument handling |
| src/install/filesystem.go | Provides filesystem abstraction with OS and mock implementations for testability |
| src/install/backup.go | Implements backup creation with timestamp support for multiple backups |
| src/install/shell.go | Handles shell detection, config path resolution, and prompt template installation |
| src/install/agent.go | Manages AI agent hook installation with JSON merging for Claude and Cursor |
| src/install/install.go | Orchestrates installation flow with interactive confirmations and dry-run support |
| src/install/templates.go | Defines shell prompt and agent hook templates |
| src/install/*_test.go | Comprehensive test coverage with 2500+ lines of unit tests |
| scripts/dockerized-install-test.sh | End-to-end integration tests in Docker container |
| README.md | Simplified installation instructions using new installer |
| docs/agentic_mode.md | Updated with automated installation commands |
| Makefile | Added docker-install-test target and integrated into release process |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Closes #42.