(repoRoot: string)
| 193 | * If no DESIGN.md exists, returns null (explore wide). |
| 194 | */ |
| 195 | export function readDesignConstraints(repoRoot: string): string | null { |
| 196 | const designPath = path.join(repoRoot, "DESIGN.md"); |
| 197 | if (!fs.existsSync(designPath)) return null; |
| 198 | |
| 199 | const content = fs.readFileSync(designPath, "utf-8"); |
| 200 | // Truncate to first 2000 chars to keep brief reasonable |
| 201 | return content.slice(0, 2000); |
| 202 | } |
no outgoing calls
no test coverage detected