INNER CODE UNIT · TypeScript
ApplyPatchFailure
totec448-spec/chat-on-steroids · src/main/codex/apply-patch/index.ts:122
export class ApplyPatchFailure extends Error {
readonly error: ApplyPatchError;
readonly delta: AppliedPatchDelta;
constructor(error: ApplyPatchError, delta: AppliedPatchDelta) {
super(error.message, { cause: error });
this.name = 'ApplyPatchFailure';
this.error = error;
this.delta = delta;
}
}
/** Stands in for Codex's `impl std::io::Write`; the runtime always passes in-memory buffers. */
export interface Writer {
text: string;
}
function writeLine(out: Writer, line: string): void {