Expand *file_path* in-place so hook allowlists cannot be bypassed via ``~`` or relative paths.
(tool_input: dict[str, Any])
| 45 | # --------------------------------------------------------------------------- |
| 46 | |
| 47 | def _backfill_observable_input(tool_input: dict[str, Any]) -> None: |
| 48 | """Expand *file_path* in-place so hook allowlists cannot be bypassed |
| 49 | via ``~`` or relative paths. |
| 50 | """ |
| 51 | fp = tool_input.get("file_path") |
| 52 | if isinstance(fp, str): |
| 53 | tool_input["file_path"] = _expand_path(fp) |
| 54 | |
| 55 | |
| 56 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected