cloverleaf-larry/VERSION
Bryan Johnson 81c4875ecf v0.7.2: Gitea becomes primary auto-update origin; GitHub demoted to fallback
Switches the canonical $LARRY_BASE_URL default from raw.githubusercontent.com
to the self-hosted Gitea mirror at git.bjnoela.com.  GitHub stays in the
loop as $LARRY_BASE_URL_FALLBACK and is used automatically when the primary
fails (DNS, timeout, HTTP error, private repo).

What's new
- Origin defaults split into LARRY_BASE_URL (Gitea) +
  LARRY_BASE_URL_FALLBACK (GitHub).  Env vars still override either side.
- Every network call in self_update tries primary first, then fallback.
  Emits "warn: gitea unreachable, falling back to github" on switch and
  "warn: self-update skipped (both origins unreachable)" if both fail.
- New /origin slash-command family:
    /origin           — show current primary/fallback + which served last
    /origin gitea     — pin to Gitea (default state)
    /origin github    — swap so GitHub is primary, Gitea fallback
    /origin auto      — clear pin, revert to defaults
    /origin <https://...> — pin to an arbitrary HTTPS base URL
  Pin is persisted to $LARRY_HOME/.origin and re-read on next launch.
- Status line picks up a light origin badge when state is non-default
  ("github" pinned, "custom" pinned, or "gitea→github" on failover).
- install-larry.sh mirrors the same primary→fallback fetch logic so
  first-contact installs still work even if Gitea is unreachable.

ACTION REQUIRED — Bryan, before this commit's auto-update path becomes
live you must set git.bjnoela.com/bryan/cloverleaf-larry repo visibility
to PUBLIC.  Gitea defaults to private; until you toggle it, every client
will silently fall back to GitHub.  Verify by running, from any box:
  curl -fsSI https://git.bjnoela.com/bryan/cloverleaf-larry/raw/branch/main/VERSION
A 200 with the published VERSION means clients hit Gitea; a 404/403 means
they still ride the GitHub fallback.

Don't break
- v0.7.1 status-line position (between turns)
- v0.7.0 HL7 completion, mouse mode
- v0.6.9 status line state tracking, header capture
- v0.6.7 streaming, @file, slash completion, persistent history
- v0.6.6 CR-strip + slash TAB

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 17:25:00 -07:00

2 lines
6 B
Plaintext