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,6 @@
"""Capture persistence API."""
from core.pipeline.event_journal import EventJournal
__all__ = ["EventJournal"]

View File

@@ -0,0 +1,20 @@
"""Stable capture reader used by diagnostics and downstream AI tooling."""
from __future__ import annotations
import json
from pathlib import Path
from typing import Any
def read_json(path: Path) -> dict[str, Any]:
return json.loads(Path(path).read_text(encoding="utf-8"))
def read_action_flow(flow_dir: Path) -> dict[str, Any]:
return read_json(Path(flow_dir) / "action_flow.json")
def read_element_catalog(flow_dir: Path) -> dict[str, Any]:
return read_json(Path(flow_dir) / "element_catalog.json")

View File

@@ -0,0 +1,6 @@
"""Compatibility export for the current atomic artifact writer."""
from artifacts import create_flow, load_flow, save_flow, write_json
__all__ = ["create_flow", "load_flow", "save_flow", "write_json"]