Take a tool input's file path, regardless of which key the tool used.
(d: Record<string, unknown>)
| 170 | |
| 171 | /** Take a tool input's file path, regardless of which key the tool used. */ |
| 172 | function filePath(d: Record<string, unknown>): string | undefined { |
| 173 | return str(d.path) ?? str(d.file_path) ?? str(d.filePath) ?? str(d.filename); |
| 174 | } |
| 175 | |
| 176 | const BASH_MAX = 64; |
| 177 |