Repository navigation
Releases
Releases · chryzxc/worktree-gateway
v0.1.1
Fixed
- Daemon auto-start race: when several commands started the daemon at once (for example Worktrunk hooks in two worktrees), the losing daemon could delete the winner's socket, leaving an unreachable daemon that held the ports. The daemon now holds a lock file for its lifetime, and a CLI that loses the race uses the daemon that won.
- Health checks acting on stale data: a slow probe could mark a just re-registered service as down, or deregister it. Updates now apply only if the registration is unchanged.
- Health checks run concurrently, so one slow
healthendpoint no longer delays the others. Probes no longer follow redirects. wtg statusordering used an inconsistent sort comparator.go installbuilds now report their module version instead of0.1.0-dev.
Added
wtg daemon restart, and a warning when the running daemon's version differs from the CLI's (e.g. after an upgrade).- Shell completion docs, plus upgrade and uninstall instructions.
Changed
- The repository is public.
install.shdownloads release assets directly with curl or wget, so it no longer needs the GitHub CLI or a token.
v0.1.0
First release of Worktree Gateway: every Git worktree gets its own URL, plus webhook and OAuth callback routing.
Install
gh api repos/chryzxc/worktree-gateway/contents/install.sh -H 'Accept: application/vnd.github.raw' | shOr download the archive for your platform below and put wtg on your PATH. Verify it against checksums.txt.
Quick start
cd your-repo
wtg init && wtg run && wtg openHighlights
{branch}.{project}.localhostURLs over HTTP and HTTPS, served by embedded Caddy with a local CA- Stable per-service ports,
WG_*identity env, and several services per worktree - Follows git worktree add, remove, rename and move. Includes Worktrunk hooks.
- Opt-in public ingress (cloudflared, ngrok or external) with per-path allowlists
- Webhook log with credential redaction, plus replay to any worktree
- One OAuth redirect URI for every worktree, using signed, single-use state
See the CHANGELOG for details.
Platforms: macOS and Linux on arm64 and amd64. Windows builds but is untested.