Merge pull request #1287 from markusn/feature/ssh-git-packages

feat(coding-agent): add SSH URL support for git packages
This commit is contained in:
Mario Zechner 2026-02-05 17:09:28 +01:00 committed by GitHub
commit 6c6d937b2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 576 additions and 48 deletions

View file

@ -60,13 +60,32 @@ npm:pkg
```
git:github.com/user/repo@v1
https://github.com/user/repo@v1
git@github.com:user/repo@v1
ssh://git@github.com/user/repo@v1
```
- HTTPS and SSH URLs are both supported.
- SSH URLs use your configured SSH keys automatically (respects `~/.ssh/config`).
- Raw `https://` URLs work without the `git:` prefix.
- Refs pin the package and skip `pi update`.
- Cloned to `~/.pi/agent/git/<host>/<path>` (global) or `.pi/git/<host>/<path>` (project).
- Runs `npm install` after clone or pull if `package.json` exists.
**SSH examples:**
```bash
# Standard git@host:path format
pi install git@github.com:user/repo
# With git: prefix
pi install git:git@github.com:user/repo
# ssh:// protocol format
pi install ssh://git@github.com/user/repo
# With version ref
pi install git@github.com:user/repo@v1.0.0
```
### Local Paths
```