(reason: string | null)
| 442 | * already names the operator remedy (`codegraph sync` / git hooks). |
| 443 | */ |
| 444 | export function formatDegradedBanner(reason: string | null): string { |
| 445 | return ( |
| 446 | '⚠️ CodeGraph auto-sync is DISABLED — live file watching stopped, so the index is ' + |
| 447 | 'frozen and any file edited since then is stale here. Read files directly to confirm ' + |
| 448 | 'current content before relying on it.' + |
| 449 | (reason ? `\n Reason: ${reason}` : '') |
| 450 | ); |
| 451 | } |
| 452 | |
| 453 | /** |
| 454 | * MCP Tool definition |