INNER CODE UNIT · TypeScript
sameResolvedPath
totec448-spec/chat-on-steroids · src/main/codex/apply-patch/index.ts:86
function sameResolvedPath(left: string, right: string): boolean {
const a = nodePath.resolve(left);
const b = nodePath.resolve(right);
return process.platform === 'win32' ? a.toLowerCase() === b.toLowerCase() : a === b;
}
/** `AppliedPatchFileChange`. */
export type AppliedPatchFileChange =
| { kind: 'add'; content: string; overwrittenContent: string | null }
| { kind: 'delete'; content: string }
| {
kind: 'update';
movePath: string | null;
oldContent: string;
overwrittenMoveContent: string | null;
newContent: string;
};