Make release ZIPs clean for Cowork upload

Exclude root CLAUDE.md from plugin release ZIPs and keep manifest descriptions brief for Cowork upload validation.
This commit is contained in:
Klotzkette
2026-05-19 11:56:37 -07:00
committed by GitHub
parent 118f287f6d
commit 0fa70e39e0
8 changed files with 9 additions and 7 deletions
+2
View File
@@ -47,6 +47,8 @@ def validate_plugin_zip(dist_dir: Path, plugin_name: str) -> None:
fail(f"{zip_path}: ZIP is nested under {plugin_name}/; upload ZIPs must be flat")
if any(name.startswith(f"{plugin_name}/") for name in names):
fail(f"{zip_path}: contains nested {plugin_name}/ root")
if "CLAUDE.md" in names:
fail(f"{zip_path}: root CLAUDE.md must not be shipped; Claude Code treats it as a warning and Cowork upload may reject it")
if any("__pycache__/" in name or name.endswith(".pyc") for name in names):
fail(f"{zip_path}: contains Python cache files")