import * as fs from "node:fs"; import * as path from "node:path"; export interface DiscoveredRoute { path: string; file: string; type: "page" | "api" | "auth"; hasForm: boolean; methods?: string[]; } const CODE_EXTENSIONS = [".tsx", ".jsx", ".ts", ".js"]; const FORM_PATTERNS = /