MCPcopy Index your code
hub / github.com/garrytan/gstack / readDesignConstraints

Function readDesignConstraints

design/src/memory.ts:195–202  ·  view source on GitHub ↗
(repoRoot: string)

Source from the content-addressed store, hash-verified

193 * If no DESIGN.md exists, returns null (explore wide).
194 */
195export 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}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected