Files
skill-template/tools/ui_inspector/adapters/base.py
chendelian 633ecff4e2 chore: archive tools/ui_inspector snapshot before migration removal.
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>
2026-08-07 11:19:14 +08:00

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]]: ...