feat(plugin): support multi-source plugin install (ssh, git@, generic https)#504
Merged
jackwener merged 1 commit intojackwener:mainfrom Mar 27, 2026
Merged
Conversation
… https) Extends parseSource() to accept any git-cloneable URL, not just GitHub: - ssh://git@host/path/repo.git - git@host:user/repo.git (SCP-style) - https://any-host.com/path/repo.git GitHub shorthand (github:user/repo) and local paths continue to work. Updated error messages, CLI description, docs, and added 7 new unit tests. Closes jackwener#492
bc0042a to
829d29b
Compare
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
Extends
parseSource()to accept any git-cloneable URL, not just GitHub:ssh://git@host/path/repo.gitgit@host:user/repo.git(SCP-style)https://any-host.com/path/repo.gitGitHub shorthand (
github:user/repo) and local paths continue to work unchanged.Changes
src/plugin.ts: Added 3 new URL matchers (SSH, SCP, generic HTTPS) toparseSource()as fallbacks after the existing GitHub-specific patterns. Updated the error message ininstallPlugin()to list all supported formats.src/cli.ts: Changed CLI description from 'Install a plugin from GitHub' → 'Install a plugin from a git repository'.src/plugin.test.ts: Added 7 new unit tests covering all new URL formats.docs/guide/plugins.md: Updated 'Supported Source Formats' section with new URL examples.Testing
Closes #492