Keep the last in-template copy on main so history can restore it; product continues in jiangchang-ui-recorder. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
514 B
Python
18 lines
514 B
Python
"""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]]: ...
|