INNER CODE UNIT · TypeScript
printSummary
totec448-spec/chat-on-steroids · src/main/codex/apply-patch/index.ts:452
export function printSummary(affected: AffectedPaths, out: Writer): void {
writeLine(out, 'Success. Updated the following files:');
for (const path of affected.added) writeLine(out, `A ${path}`);
for (const path of affected.modified) writeLine(out, `M ${path}`);
for (const path of affected.deleted) writeLine(out, `D ${path}`);
}
/** What `ApplyPatchRuntime::run` produces for the tool layer. */
export interface ApplyPatchExecution {
exitCode: number;
stdout: string;
stderr: string;
aggregatedOutput: string;
durationMs: number;
delta: AppliedPatchDelta;
}
/** `ApplyPatchRuntime::run`: applies a patch and reports it as if it were an exec call. */