Files
skill-template/tools/ui_inspector/drivers/mobile.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

31 lines
849 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""Mobile surface stub — reserved for future android/ios dump."""
from __future__ import annotations
from typing import Any, Optional
import target
from .base import DumpResult
class MobileDriver:
def __init__(self, *, surface: str = target.SURFACE_ANDROID) -> None:
self.surface = surface
self.driver_name = "mobile_stub"
def dump(
self,
*,
info: Any,
selection_meta: dict[str, Any],
max_depth: int = 16,
max_nodes: int = 8000,
warmup_mode: str = "full",
merge_same_pid_if_sparse: bool = True,
warmed_pids: Optional[set[int]] = None,
) -> DumpResult:
raise RuntimeError(
f"ERROR:SURFACE_UNSUPPORTED 手机端拾取尚未实现(surface={self.surface})。"
"请先用桌面或浏览器目标。"
)