…g the old ones working (#1648)
## Change
Second layer of the Ovis rebrand (after #1579 and #1641): the runtime
identifiers move to Ovis names, and every old name keeps working for
installs from before.
- **Settings:** `HERDR_WEB_*` become `OVIS_*` (`HERDR_WEB_UI_REF`
becomes `OVIS_REF`). Every entry point (`server/index.ts`, `managed.ts`,
`supervisor.ts`, `remote-entry.ts`, `scripts/plugin.ts`) first imports
`server/legacy-env.ts`, which fills an unset `OVIS_*` from its old name;
set under both names, the `OVIS_*` one wins. The plugin applies the same
to its env files. `install.sh`/`install.ps1` read the old names too. The
token is removed from the PTY sidecar's environment under both names,
and a remote PC is started with the herdr path under both names (bundles
published before read the old one).
- **Cookies:** `herdr_web_token`/`herdr_web_device` become
`ovis_token`/`ovis_device`. The old cookies still sign in, still count
as session-bearing for the cross-site check (`machine-security.ts`), and
are cleared at sign-in, pairing and sign-out.
- **State dir:** `~/.config/herdr-web-ui` moves to `~/.config/ovis` on
first use (`server/update-state.ts`), leaving a link at the old path for
a launcher, plugin or older release; if the move fails, the old dir
stays in use. The plugin and installer find either.
- **Browser storage:** `herdr-web-ui:*` keys move to `ovis:*` before
anything reads them: `src/lib/legacyStorage.ts` is the first import of
`main.tsx` and of the theme boot script (`src/theme-bootstrap.ts`, which
paints the first frame before `main.tsx` runs). The old key is removed
in the same step so a cleared draft or queue cannot come back.
- **Other names:** pasted files go to `<pane cwd>/.ovis`; offline cache
`ovis-v4-ram`/`ovis-files-v1` (the worker already retires caches of
other names); Codex client identity, usage User-Agent, keychain job
label and plugin `invocation_source` say ovis; the Mac app passes
`OVIS_NO_OPEN`.
- **Guard:** `scripts/conventions.test.ts` "names from before Ovis"
fails on a `HERDR_WEB_*` setting, `herdr_web_*` cookie, `herdr-web-ui:`
key or `.herdr-web-ui` paste dir outside the files that carry an old
install over (`CARRY_OVER`), with the Ovis name to use. It already
caught the theme boot script and nine files added to main since this
branch started.
- Tests and regression scripts added since #1579 use the `ovis-test`
labels too.
## Deliberately unchanged
The remote PC bundle and bridge paths
(`~/.local/share/herdr-web-ui/remote-vN`,
`~/.config/herdr-web-ui/bridges`): bundles already published
(remote-v31) write there. The telemetry Worker and `shared/telemetry.ts`
(hash-pinned to the deployed Worker). The plugin id and repository URL
(next PR, after the repository rename). External herdr names
(`HERDR_SOCKET`, `HERDR_TEST_*`, `HERDR_PLUGIN_*`).
## Validation
- New tests: `server/legacy-env.test.ts`, `server/update-state.test.ts`
(move + link, untouched once the new dir exists, nothing created on a
fresh install, `OVIS_STATE_DIR` wins), `src/lib/legacyStorage.test.ts`,
old-cookie cases in `server/auth.test.ts`, the conventions guard
(checked to fail on a probe file with an old key, env name and paste
dir).
- `bun run check fast` on this branch (on main 56b48ad): workflow
syntax, generated files, typecheck, build and unit tests pass.
- Live server started with only `HERDR_WEB_TOKEN` and a state dir at the
old `XDG_CONFIG_HOME/herdr-web-ui`:
```
cookie [] 401
cookie [herdr_web_token=qa-legacy-token] 200
cookie [herdr_web_token=wrong] 401
cookie [ovis_token=qa-legacy-token] 200
--- sign-in
HTTP/1.1 204 No Content
set-cookie: ovis_token=qa-legacy-token; Path=/; HttpOnly; SameSite=Strict; Max-Age=31536000
set-cookie: herdr_web_token=; Path=/; HttpOnly; SameSite=Strict; Max-Age=0
--- state
lrwxrwxrwx 1 devswha devswha 43 10월 22 21:57 herdr-web-ui -> /tmp/ovis-rebrand.yJELsk/qa-pr2/config/ovis
drwxrwxr-x 2 devswha devswha 4096 10월 22 21:57 ovis
{"marker":"legacy-state"}
/tmp/ovis-rebrand.yJELsk/qa-pr2/config/ovis
```
- Browser (Chromium, light color scheme), old cookie `herdr_web_token`
and old keys `herdr-web-ui:settings` = `{theme: "dark", language:
"ko"}`, `herdr-web-ui:sidebar-width` = 333, app entry module held back
so only the theme boot script has run: `data-theme=dark`, keys already
`ovis:settings, ovis:sidebar-width`. After the app loads: theme dark,
`lang=ko-KR`, sidebar width 333, signed in by the old cookie (no lock
screen).
This PR touches authentication (cookie names), so it waits for a real
CodeRabbit review.
Changelog: `changelog.d/ovis-runtime-names.md`.
Change
Part of the layered Ovis rebrand (PR1 is #1579). This one is independent of the others and goes straight onto main.
ovis.sh is the Ovis website (Cloudflare Pages,
ovis-site/), but it answered 404 for/install.sh,/install.ps1and/demo/, which GitHub Pages builds at herdrweb.dev fromsite/.ovis-site/_redirectsnow hands those three on to herdrweb.dev, so every link can name ovis.sh:curl -fsSL https://ovis.sh/install.sh | sh,irm https://ovis.sh/install.ps1 | iex(README and translations, INSTALL.md, docs/guide.md, CONTRIBUTING.md, the installers' own header comments, the plugin'sphonehint, the README film);Deliberately unchanged
herdrweb.dev keeps serving everything, so existing links and installed copies keep working.
site/(herdrweb.dev itself), its sitemap,docs/development.md(which describes that site) and the Windows install workflow, which tests the installer at herdrweb.dev where it is published, are unchanged. The "herdr web UI" wording on the ovis.sh pages is site copy tied to their translation data and is left to a copy change.Validation
bun run check fast: generated files fresh, typecheck, build, unit tests pass.ovis:keys, new plugin id or repo URL).curl -Ionce it is up; the result is added below.Changelog:
changelog.d/ovis-sh-links.md.