"""Adapter base protocol.""" from __future__ import annotations from typing import Any, Optional, Protocol class AppAdapter(Protocol): name: str def matches(self, *, class_name: str = "", title: str = "", process_name: str = "") -> bool: ... def wake_profile(self, *, class_name: str = "", title: str = "") -> Optional[str]: ... def cache_key(self, *, profile: str, hwnd: int = 0) -> str: ... def propose_postconditions(self, changes: list[dict[str, Any]]) -> list[dict[str, Any]]: ...