* Formats setup notes as a bulleted Heads-up block. Shared between the * initial AskUserQuestion dialog text (no-args path) and the prompt-body * section (args path) so notes are never silently dropped.
(notes: string[])
| 116 | * section (args path) so notes are never silently dropped. |
| 117 | */ |
| 118 | function formatSetupNotes(notes: string[]): string { |
| 119 | const items = notes.map(n => `- ${n}`).join('\n') |
| 120 | return `⚠ Heads-up:\n${items}` |
| 121 | } |
| 122 | |
| 123 | async function getCurrentRepoHttpsUrl(): Promise<string | null> { |
| 124 | const remoteUrl = await getRemoteUrl() |