Reverse-engineer any video, shot by shot: filmed, AI-generated or coded, and how to remake it. Breakdowns in the open VIDEO.md format. 逆向一切视频,逐个镜头看是拍的、AI 生成的还是代码做的,再告诉你怎么复刻;拆解结果按 VIDEO.md 格式输出。
Python agent-skillsai-videoaigc-detectionclaude-codecodexffmpegprompt-engineeringremotionreverse-engineeringshort-videoshot-detectionsubtitlesvideo-analysisvideo-breakdownvideo-editingvideo-generationvideomdvlm
Handle malformed packages in clean-paths
junec7162340f94b
diff --git a/rea_video/clean_paths.py b/rea_video/clean_paths.pyindex 6b4de36..8c2deaf 100644--- a/rea_video/clean_paths.py+++ b/rea_video/clean_paths.py@@ -81,6 +81,8 @@ def clean_package(root: Path, home: str, apply: bool = False) -> dict:p = root / BREAKDOWNold = p.read_text(encoding="utf-8")b = json.loads(old)+ if not isinstance(b, dict) or not isinstance(b.get("source") or {}, dict):+ raise ValueError(f"{BREAKDOWN} is not a breakdown")src = b.get("source") or {}res: dict[str, Any] = {"package": str(root), "cleaned": [], "kept": [], "error": None}source_is_local = Path(str(src.get("path") or "")).is_absolute()@@ -132,5 +134,5 @@ def _guarded(root: Path, home: str, apply: bool) -> dict:directory still gets cleaned instead of the whole run dying on it."""try:return clean_package(root, home, apply)- except (OSError, ValueError) as exc:- return {"package": str(root), "cleaned": [], "kept": [], "error": f"could not read {BREAKDOWN}: {exc}"}+ except (OSError, ValueError, TypeError) as exc:+ return {"package": str(root), "cleaned": [], "kept": [], "error": f"could not clean this package: {exc}"}