/** * Phase 2 instruction builder (report output) * * Builds the instruction for the report output phase. * Assembles template variables and renders a single complete template. */ import type { WorkflowStep, Language } from '../../models/types.js'; import type { InstructionContext } from './instruction-context.js'; import type { InjectedReport } from './prepared-instruction.js'; /** * Context for building report phase instruction. */ export interface ReportInstructionContext { injectedReports?: readonly InjectedReport[]; /** Working directory */ cwd: string; /** Original workflow task. */ task?: string; /** Report directory path */ reportDir: string; /** Step iteration (for {step_iteration} replacement) */ stepIteration: number; /** Language */ language?: Language; /** Target report file name (when generating a single report) */ targetFile?: string; /** Latest Phase 1 work result, supplied regardless of report session reuse. */ lastResponse?: string; /** Advisory diagnostics emitted by the reviewer completion check. */ completionRetryDiagnostic?: string; /** Engine-computed changed file set for `{review_scope}` in output contracts. */ reviewScope?: InstructionContext['reviewScope']; } /** * Builds Phase 2 (report output) instructions. * * Renders a single complete template with all variables. */ export declare class ReportInstructionBuilder { private readonly step; private readonly context; constructor(step: WorkflowStep, context: ReportInstructionContext); build(): string; } //# sourceMappingURL=ReportInstructionBuilder.d.ts.map