The product, its assistant, the repo, the host and every unit on the box now
share one name. 638 files, ~3,000 mentions: UI copy, config, env keys
(FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs,
articles, the deploy workflow other repos reuse, and nine file names.
- Three article slugs carried the old name and had been shared; permanent
redirects keep those links alive (next.config.ts).
- test-no-retired-name.sh now also forbids the old product name across the
whole repo, so the rename cannot creep back through templates and examples.
- ASSISTANT_STACK collapses the product and the assistant into one entry,
because they are now the same name.
Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki`
database and role, loki.orangecat.ch (old host 308s to it; /api, /widget,
/embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases.
The Resend sending domain stays fleetcrown.orangecat.ch until the new domain
is verified in DNS.
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Audit wave 2 of 3. 'One day' was spelled two different ways across ~19
files with no shared primitive — the classic drift setup. New
src/lib/constants/time.ts (SECOND/MINUTE/HOUR/DAY/WEEK_MS) now underpins
every duplicated day/hour/minute window, plus:
- SSE_KEEPALIVE_MS shared by the three stream routes (was 3 copies)
- RATE_LIMIT_WINDOW_SHORT/LONG_MS shared by the four auth rate limiters
- LONG_TEXT_MAX=8000 shared by UI maxLength + API zod .max (6 files)
- MAX_BUFFERED_EVENTS single-sourced from local-pty into sandbox
- control-presenter reuses its own STALE_PROMPT_S instead of re-inlining
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>