feat(cli): add coven-cave alias#114
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
Adds coven-cave as a secondary entrypoint/alias for the coven-code CLI across distribution surfaces (npm, installers, and source builds), so users can invoke the same CLI with either name.
Changes:
- Added a Rust
coven-cavewrapper binary that execscoven-codefrom the same directory. - Added
coven-caveas an npmbinalias forcoven-codeand updated the npm packaging test. - Updated Linux/macOS and PowerShell installers plus docs/READMEs to mention/install the alias.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src-rust/crates/cli/src/bin/coven-cave.rs | New wrapper binary that forwards args to coven-code. |
| scripts/prepare-npm-package.test.mjs | Asserts npm bin now includes both coven-code and coven-cave. |
| README.md | Mentions coven-cave is installed as an alias; notes alias target for source builds. |
| npm/README.md | Documents coven-cave as an alias invocation. |
| npm/package.json | Adds coven-cave as an npm bin alias to bin/coven-code. |
| install.sh | Creates an coven-cave symlink/copy alongside coven-code and prints it in output. |
| install.ps1 | Copies coven-code.exe to coven-cave.exe and prints the alias in quickstart. |
| docs/installation.md | Documents the alias for npm and installer-based installs. |
| COVEN.md | Updates rebranded surface documentation to include the alias. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| | Surface | File(s) | Current value | | ||
| |---|---|---| | ||
| | Binary name | `src-rust/crates/cli/Cargo.toml` `[[bin]]` | `coven-code` | | ||
| | Binary name | `src-rust/crates/cli/src/main.rs`, `src-rust/crates/cli/src/bin/coven-cave.rs` | `coven-code`; `coven-cave` alias | |
Comment on lines
169
to
+176
| function Install-Binary($source) { | ||
| $target = Join-Path $InstallDir 'coven-code.exe' | ||
| $aliasTarget = Join-Path $InstallDir 'coven-cave.exe' | ||
|
|
||
| # The currently running coven-code.exe (if any) holds an exclusive file lock on | ||
| # Windows. Try to swap by renaming the old one first. | ||
| if (Test-Path $target) { | ||
| $stale = "$target.old" | ||
| foreach ($path in @($target, $aliasTarget)) { | ||
| if (-not (Test-Path $path)) { continue } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
coven-caveas an npm bin alias forcoven-codecoven-cavealongsidecoven-codein shell and PowerShell installersVerification
node scripts/prepare-npm-package.test.mjscargo check --workspacecargo clippy -p claurst --bin coven-cave --no-deps -- -D warningsrustfmt --check src-rust/crates/cli/src/bin/coven-cave.rscargo build -p claurst --bins && ./target/debug/coven-cave --versionNote: full
cargo clippy --workspace --all-targets -- -D warningsis currently blocked on an existingorigin/mainlint incrates/core/src/secret_file.rs:94(needless_borrow).