MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / render

Function render

cli/src/components/tools/str-replace.tsx:60–76  ·  view source on GitHub ↗
(toolBlock)

Source from the content-addressed store, hash-verified

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})

Callers

nothing calls this directly

Calls 4

extractDiffFunction · 0.90
extractFilePathFunction · 0.90
isCreateFileFunction · 0.90
shouldShowEditDiffFunction · 0.90

Tested by

no test coverage detected