File size: 351 Bytes
776286d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * An Edit tool's result record holding one hunk of one file.
 *
 * @param lines the hunk's lines, `-`/`+`/space prefixed
 * @returns the record as the transcript stores it
 */
export const editPatchOf = (lines: string[]) => ({
  filePath: '/r/a.ts',
  structuredPatch: [
    { oldStart: 1, oldLines: 1, newStart: 1, newLines: 1, lines },
  ],
})