(t0)
| 269 | return t5; |
| 270 | } |
| 271 | function WriteRejectionBody(t0) { |
| 272 | const $ = _c(8); |
| 273 | const { |
| 274 | promise, |
| 275 | filePath, |
| 276 | firstLine, |
| 277 | createFallback, |
| 278 | style, |
| 279 | verbose |
| 280 | } = t0; |
| 281 | const data = use(promise); |
| 282 | if (data.type === "create") { |
| 283 | return createFallback; |
| 284 | } |
| 285 | if (data.type === "error") { |
| 286 | let t1; |
| 287 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 288 | t1 = <MessageResponse><Text>(No changes)</Text></MessageResponse>; |
| 289 | $[0] = t1; |
| 290 | } else { |
| 291 | t1 = $[0]; |
| 292 | } |
| 293 | return t1; |
| 294 | } |
| 295 | let t1; |
| 296 | if ($[1] !== data.oldContent || $[2] !== data.patch || $[3] !== filePath || $[4] !== firstLine || $[5] !== style || $[6] !== verbose) { |
| 297 | t1 = <FileEditToolUseRejectedMessage file_path={filePath} operation="update" patch={data.patch} firstLine={firstLine} fileContent={data.oldContent} style={style} verbose={verbose} />; |
| 298 | $[1] = data.oldContent; |
| 299 | $[2] = data.patch; |
| 300 | $[3] = filePath; |
| 301 | $[4] = firstLine; |
| 302 | $[5] = style; |
| 303 | $[6] = verbose; |
| 304 | $[7] = t1; |
| 305 | } else { |
| 306 | t1 = $[7]; |
| 307 | } |
| 308 | return t1; |
| 309 | } |
| 310 | async function loadRejectionDiff(filePath: string, content: string): Promise<RejectionDiffData> { |
| 311 | try { |
| 312 | const fullFilePath = isAbsolute(filePath) ? filePath : resolve(getCwd(), filePath); |
nothing calls this directly
no outgoing calls
no test coverage detected