spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

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