(input: Partial<{
file_path: string;
content: string;
}>, {
verbose
}: {
verbose: boolean;
})
| 163 | return getDisplayPath(input.file_path); |
| 164 | } |
| 165 | export function renderToolUseMessage(input: Partial<{ |
| 166 | file_path: string; |
| 167 | content: string; |
| 168 | }>, { |
| 169 | verbose |
| 170 | }: { |
| 171 | verbose: boolean; |
| 172 | }): React.ReactNode { |
| 173 | if (!input.file_path) { |
| 174 | return null; |
| 175 | } |
| 176 | // For plan files, path is already in userFacingName |
| 177 | if (input.file_path.startsWith(getPlansDirectory())) { |
| 178 | return ''; |
| 179 | } |
| 180 | return <FilePathLink filePath={input.file_path}> |
| 181 | {verbose ? input.file_path : getDisplayPath(input.file_path)} |
| 182 | </FilePathLink>; |
| 183 | } |
| 184 | export function renderToolUseRejectedMessage({ |
| 185 | file_path, |
| 186 | content |
nothing calls this directly
no test coverage detected