import { apiRequest } from "./client"; // ── Scripts catalog ─────────────────────────────────────────────── // Surfaces the maintained `scripts/SCRIPTS.md` (single source of truth for // every script under scripts/) read-only at /scripts. Edits go through // git/Gitea, not the UI — the backend just reads the file at runtime. export type ScriptsCatalog = { content: string; filename: string; bytes: number; last_modified: number; gitea_url: string; }; export function fetchScriptsCatalog(signal?: AbortSignal) { return apiRequest("/api/scripts/catalog", { signal }); }