(toolBlock)
| 58 | toolName: 'str_replace', |
| 59 | |
| 60 | render(toolBlock): ToolRenderConfig { |
| 61 | const diff = extractDiff(toolBlock) |
| 62 | const filePath = extractFilePath(toolBlock) |
| 63 | const isCreate = isCreateFile(toolBlock) |
| 64 | const showDiff = shouldShowEditDiff(toolBlock) |
| 65 | |
| 66 | return { |
| 67 | content: ( |
| 68 | <EditBody |
| 69 | name={isCreate ? 'Create' : 'Edit'} |
| 70 | filePath={filePath} |
| 71 | diffText={showDiff ? (diff ?? '') : ''} |
| 72 | isCreate={isCreate} |
| 73 | /> |
| 74 | ), |
| 75 | } |
| 76 | }, |
| 77 | }) |
nothing calls this directly
no test coverage detected