ui: navigate through typed routes, and let the dev proxy reach llama-server (#33539)
* ui: let the dev proxy pass llama-server's cross-origin check
llama-server refuses browser requests whose Origin does not match its own
host unless --cors-origins allows it, and the Vite proxy forwarded the
page's Origin (localhost:5173, or a LAN or Tailscale address). Loading a
model, saving tools and /v1 calls failed with 403 under `vite dev`.
The proxy now calls the server with its own Host and no Origin, WebSocket
upgrades included. Sec-Fetch-Site still passes through, so requests from
other sites stay refused.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: navigate through resolve() with typed route ids
ROUTES holds the app's route ids, as page.route.id reports them, in
place of hash strings and the separate *_ROUTE_ID constants. Every link
and goto() goes through resolve() from $app/paths, which checks the
route exists and returns its URL (#/models with the hash router).
RouterService resolves the route that takes a param, a chat's. Tab
links and sidebar items carry the resolved URL's type, and checks for
the current page compare page.route.id instead of the hash.
svelte/no-navigation-without-resolve is on again, with type information
for the app's modules so a URL typed as ResolvedPathname passes. The
goto wrapper that keeps an installed app to one history entry is its
one exception: it passes on a URL its callers resolved.
Assisted-by: Claude (Opus 5.5 Medium)