/** * Write-path health check. * * Verifies that (a) the resolved storage tier matches the presence of Supabase * credentials and (b) the tables the WRITE path resolves to actually exist on * the configured backend. Surfaces two silent-failure classes loudly at * startup instead of on the first failed write: * * 1. free_with_credentials — Supabase creds are present but the tier resolved * to FREE (e.g. an invalid/expired/placeholder GITMEM_API_KEY). Writes go * to local .gitmem/ files instead of Supabase, while reads (recall, * cache-health) can still reach Supabase and mask the problem. * 2. missing_tables — pro/dev tier, but the prefixed tables don't exist (e.g. * a GITMEM_TABLE_PREFIX mismatch, or the schema was never applied). * create_learning / create_decision 404 (PGRST205) on the first write. * * Fire-and-forget: never throws (whole body is guarded), never blocks startup. * Logs a loud warning to stderr when misconfigured, a one-line confirmation * otherwise. */ export type WritePathMode = "local" | "free_with_credentials" | "missing_tables" | "supabase" | "skipped"; export interface WritePathResult { ok: boolean; mode: WritePathMode; missing?: string[]; } export declare function checkWritePath(): Promise; //# sourceMappingURL=write-health.d.ts.map