From 8f3242ff64615e2edcbb836809d5e9e3a70d43f4 Mon Sep 17 00:00:00 2001 From: Arekejoker Date: Thu, 15 Oct 2026 16:25:06 +0800 Subject: [PATCH] chore: rename placeholder pose '1'; validate README image files are non-empty The curated pose shipped as '1' with no tags; rename it to a descriptive name (Laying Back on Elbows) and add browse tags. Also extend validate_package.py to reject empty README-referenced images, matching the existing non-empty check for pose previews. --- .../{1.json => Laying Back on Elbows.json} | 7 ++++++- .../{1.webp => Laying Back on Elbows.webp} | Bin scripts/validate_package.py | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) rename pose_library/local_user_poses/Uncategorized/{1.json => Laying Back on Elbows.json} (95%) rename pose_library/local_user_poses/Uncategorized/{1.webp => Laying Back on Elbows.webp} (100%) diff --git a/pose_library/local_user_poses/Uncategorized/1.json b/pose_library/local_user_poses/Uncategorized/Laying Back on Elbows.json similarity index 95% rename from pose_library/local_user_poses/Uncategorized/1.json rename to pose_library/local_user_poses/Uncategorized/Laying Back on Elbows.json index 9e1736f..2633a96 100644 --- a/pose_library/local_user_poses/Uncategorized/1.json +++ b/pose_library/local_user_poses/Uncategorized/Laying Back on Elbows.json @@ -765,6 +765,11 @@ "asset_type": "pose", "repository": "local_user_poses", "category": "Uncategorized", - "tags": [] + "tags": [ + "front view", + "laying", + "elbows propped", + "knees bent" + ] } } \ No newline at end of file diff --git a/pose_library/local_user_poses/Uncategorized/1.webp b/pose_library/local_user_poses/Uncategorized/Laying Back on Elbows.webp similarity index 100% rename from pose_library/local_user_poses/Uncategorized/1.webp rename to pose_library/local_user_poses/Uncategorized/Laying Back on Elbows.webp diff --git a/scripts/validate_package.py b/scripts/validate_package.py index e7dbe51..256a60f 100644 --- a/scripts/validate_package.py +++ b/scripts/validate_package.py @@ -56,7 +56,10 @@ if readme.is_file(): check(bool(image_paths), "README.md has no embedded showcase images") for image_path in image_paths: local_path = image_path.split("?", 1)[0] # strip cache-busting query - check((ROOT / local_path).is_file(), f"README image does not exist: {local_path}") + target = ROOT / local_path + check(target.is_file(), f"README image does not exist: {local_path}") + if target.is_file(): + check(target.stat().st_size > 0, f"empty README image: {local_path}") for relative in ( "SKILL.md",