@autobe/agent
Version:
AI backend server code generator
24 lines (23 loc) • 933 B
TypeScript
import { AutoBeAnalyzeWriteSectionEvent } from "@autobe/interface";
/**
* Detect technology lock-in in section content.
*
* Scans all section titles and content for prohibited technology-specific
* keywords. Used in the validate callback to force LLM retry.
*
* @returns Array of human-readable violation strings (empty = no violations)
*/
export declare const detectTechLockin: (sections: Array<{
title: string;
content: string;
}>) => string[];
/**
* Detect if the overview file's sections exceed the maximum line count.
*
* 00-toc.md should be a concise project summary and navigation aid, not a
* detailed requirements document. If the total line count across all sections
* exceeds `OVERVIEW_MAX_LINES`, returns a violation string.
*
* @returns Array of violation strings (empty = no violation)
*/
export declare const detectOversizedToc: (sectionResults: AutoBeAnalyzeWriteSectionEvent[][]) => string[];