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>
This commit is contained in:
2026-08-07 11:19:14 +08:00
parent 46bc573777
commit 633ecff4e2
92 changed files with 13704 additions and 288 deletions

View File

@@ -0,0 +1,30 @@
"""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})。"
"请先用桌面或浏览器目标。"
)