INNER CODE UNIT · TypeScript
emptyDelta
totec448-spec/chat-on-steroids · src/main/codex/apply-patch/index.ts:117
function emptyDelta(): AppliedPatchDelta {
return { changes: [], exact: true };
}
/** `ApplyPatchFailure`: a failure together with the mutations committed before it was observed. */
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. */