(t0)
| 211 | return t4; |
| 212 | } |
| 213 | function EditRejectionBody(t0) { |
| 214 | const $ = _c(7); |
| 215 | const { |
| 216 | promise, |
| 217 | filePath, |
| 218 | style, |
| 219 | verbose |
| 220 | } = t0; |
| 221 | const { |
| 222 | patch, |
| 223 | firstLine, |
| 224 | fileContent |
| 225 | } = use(promise); |
| 226 | let t1; |
| 227 | if ($[0] !== fileContent || $[1] !== filePath || $[2] !== firstLine || $[3] !== patch || $[4] !== style || $[5] !== verbose) { |
| 228 | t1 = <FileEditToolUseRejectedMessage file_path={filePath} operation="update" patch={patch} firstLine={firstLine} fileContent={fileContent} style={style} verbose={verbose} />; |
| 229 | $[0] = fileContent; |
| 230 | $[1] = filePath; |
| 231 | $[2] = firstLine; |
| 232 | $[3] = patch; |
| 233 | $[4] = style; |
| 234 | $[5] = verbose; |
| 235 | $[6] = t1; |
| 236 | } else { |
| 237 | t1 = $[6]; |
| 238 | } |
| 239 | return t1; |
| 240 | } |
| 241 | async function loadRejectionDiff(filePath: string, oldString: string, newString: string, replaceAll: boolean): Promise<RejectionDiffData> { |
| 242 | try { |
| 243 | // Chunked read — context window around the first occurrence. replaceAll |
nothing calls this directly
no outgoing calls
no test coverage detected