({
file_path
}: {
file_path?: string;
}, {
verbose
}: {
verbose: boolean;
})
| 55 | return getDisplayPath(input.file_path); |
| 56 | } |
| 57 | export function renderToolUseMessage({ |
| 58 | file_path |
| 59 | }: { |
| 60 | file_path?: string; |
| 61 | }, { |
| 62 | verbose |
| 63 | }: { |
| 64 | verbose: boolean; |
| 65 | }): React.ReactNode { |
| 66 | if (!file_path) { |
| 67 | return null; |
| 68 | } |
| 69 | // For plan files, path is already in userFacingName |
| 70 | if (file_path.startsWith(getPlansDirectory())) { |
| 71 | return ''; |
| 72 | } |
| 73 | return <FilePathLink filePath={file_path}> |
| 74 | {verbose ? file_path : getDisplayPath(file_path)} |
| 75 | </FilePathLink>; |
| 76 | } |
| 77 | export function renderToolResultMessage({ |
| 78 | filePath, |
| 79 | structuredPatch, |
nothing calls this directly
no test coverage detected