feat(housekeeping): cut over administration to ase

This commit is contained in:
Simo committed 2026-08-30 20:35:22 +02:00
1 parent c9e35cf602
commit 2b8f73a91d
457 files changed
+589 -55936

No files matched your search

@@ -1,17 +1,13 @@
import type {
CanonicalHousekeepingHref,
HousekeepingSurface,
} from "../contracts";
import type { CanonicalHousekeepingHref } from "../contracts";
export const HOUSEKEEPING_ROOT = "/ase" as const;
export function toHousekeepingHref(
href: CanonicalHousekeepingHref,
surface: HousekeepingSurface,
): CanonicalHousekeepingHref | `/ase-next${string}` {
if (href !== "/ase" && !href.startsWith("/ase/")) {
): CanonicalHousekeepingHref {
if (href !== HOUSEKEEPING_ROOT && !href.startsWith(`${HOUSEKEEPING_ROOT}/`)) {
throw new Error(`invalid canonical housekeeping href: ${href}`);
}
return surface === "canonical"
? href
: (`/ase-next${href.slice(4)}` as `/ase-next${string}`);
return href;
}