(bytes: number)
| 27 | const DOCS_DIR_NAME = '.next-docs' |
| 28 | |
| 29 | function formatSize(bytes: number): string { |
| 30 | if (bytes < 1024) return `${bytes} B` |
| 31 | const kb = bytes / 1024 |
| 32 | if (kb < 1024) return `${kb.toFixed(1)} KB` |
| 33 | const mb = kb / 1024 |
| 34 | return `${mb.toFixed(1)} MB` |
| 35 | } |
| 36 | |
| 37 | export async function runAgentsMd(options: AgentsMdOptions): Promise<void> { |
| 38 | const cwd = process.cwd() |