(info: dict[str, Any])
| 169 | |
| 170 | |
| 171 | def format_debug_info(info: dict[str, Any]) -> str: |
| 172 | last_actions = "" |
| 173 | for action in info["last_actions"]: |
| 174 | last_actions += f"\n# {action['type']}: {action['name']}" |
| 175 | if settings := action.get("settings"): |
| 176 | last_actions += f"\n>>> {settings}" |
| 177 | info["last_actions"] = last_actions |
| 178 | text = "\n".join(f"{k}: {v}" for k, v in info.items()) |
| 179 | return text.strip() |
| 180 | |
| 181 | |
| 182 | def get_binaries(path: Path) -> Generator[Path, None, None]: |