Skip to content

Releases

v0.1.1

Choose a tag to compare

@chryzxc chryzxc released this 25 Sep 10:00

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 health endpoint no longer delays the others. Probes no longer follow redirects.
  • wtg status ordering used an inconsistent sort comparator.
  • go install builds now report their module version instead of 0.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.sh downloads release assets directly with curl or wget, so it no longer needs the GitHub CLI or a token.

v0.1.0

Choose a tag to compare

@chryzxc chryzxc released this 24 Sep 19:11

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' | sh

Or 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 open

Highlights

  • {branch}.{project}.localhost URLs 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.