/** * 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, Phase1ReportInputs } from './prepared-instruction.js'; import type { Phase1ExecutionLogReference } from '../phase1-execution-log.js'; /** * Context for building report phase instruction. */ export interface ReportInstructionContext { workflowAssignment?: import('../workflow-prompt-context.js').WorkflowAssignment; injectedReports?: readonly InjectedReport[]; reportInputs?: Phase1ReportInputs; userInputs?: readonly string[]; /** 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; /** Engine-managed reference to evidence from the current Phase 1 execution. */ phase1ExecutionLog?: Phase1ExecutionLogReference; /** 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