({
filePath,
structuredPatch,
originalFile
}: FileEditOutput, _progressMessagesForMessage: ProgressMessage[], {
style,
verbose
}: {
style?: 'condensed';
verbose: boolean;
})
| 75 | </FilePathLink>; |
| 76 | } |
| 77 | export function renderToolResultMessage({ |
| 78 | filePath, |
| 79 | structuredPatch, |
| 80 | originalFile |
| 81 | }: FileEditOutput, _progressMessagesForMessage: ProgressMessage[], { |
| 82 | style, |
| 83 | verbose |
| 84 | }: { |
| 85 | style?: 'condensed'; |
| 86 | verbose: boolean; |
| 87 | }): React.ReactNode { |
| 88 | // For plan files, show /plan hint above the diff |
| 89 | const isPlanFile = filePath.startsWith(getPlansDirectory()); |
| 90 | return <FileEditToolUpdatedMessage filePath={filePath} structuredPatch={structuredPatch} firstLine={originalFile.split('\n')[0] ?? null} fileContent={originalFile} style={style} verbose={verbose} previewHint={isPlanFile ? '/plan to preview' : undefined} />; |
| 91 | } |
| 92 | export function renderToolUseRejectedMessage(input: { |
| 93 | file_path: string; |
| 94 | old_string?: string; |
nothing calls this directly
no outgoing calls
no test coverage detected