import type { PlatformProfile, PlatformProfileSummary } from "@rakazo/contracts"; import { notImplemented } from "./not-implemented.js"; export const PROFILE_STALE_DAYS = 90; export interface ProfileLoadError { file: string; message: string; } export interface ProfileSet { profiles: Map; errors: ProfileLoadError[]; } /** Parse raw JSON documents; invalid ones become errors and are skipped whole. */ export function parseProfiles(_documents: Array<{ file: string; json: unknown }>): { profiles: PlatformProfile[]; errors: ProfileLoadError[]; } { return notImplemented("parseProfiles"); } /** Private profiles override builtin ones with the same id. */ export function mergeProfiles( _builtin: PlatformProfile[], _private: PlatformProfile[], ): ProfileSet { return notImplemented("mergeProfiles"); } export function summarizeProfile( _profile: PlatformProfile, _origin: "builtin" | "private", _now: Date, ): PlatformProfileSummary { return notImplemented("summarizeProfile"); }