@autobe/agent
Version:
AI backend server code generator
30 lines (29 loc) • 1.46 kB
TypeScript
import { AutoBeAnalyze, AutoBeAnalyzeScenarioEvent, AutoBeAnalyzeSectionReviewEvent, AutoBeAnalyzeWriteModuleEvent, AutoBeAnalyzeWriteSectionEvent, AutoBeAnalyzeWriteUnitEvent, AutoBeProgressEventBase } from "@autobe/interface";
import { AutoBeContext } from "../../context/AutoBeContext";
/**
* Orchestrate cross-file lightweight review of section metadata across ALL
* files.
*
* This function reviews all files' section metadata (titles, keywords,
* purposes) together in a single LLM call, providing cross-file validation for
* terminology alignment, value consistency, naming conventions, and content
* deduplication.
*
* Unlike the per-file review which checks full content, this review only
* receives lightweight metadata to stay within context limits.
*/
export declare const orchestrateAnalyzeSectionCrossFileReview: (ctx: AutoBeContext, props: {
scenario: AutoBeAnalyzeScenarioEvent;
allFileSummaries: Array<{
file: AutoBeAnalyze.IFileScenario;
moduleEvent: AutoBeAnalyzeWriteModuleEvent;
unitEvents: AutoBeAnalyzeWriteUnitEvent[];
sectionEvents: AutoBeAnalyzeWriteSectionEvent[][];
status: "approved" | "rewritten" | "new";
}>;
mechanicalViolationSummary?: string;
fileDecisions?: import("./utils/detectDecisionConflicts").IFileDecisions[];
progress: AutoBeProgressEventBase;
promptCacheKey: string;
retry: number;
}) => Promise<AutoBeAnalyzeSectionReviewEvent>;