Fix Codex plugin category

This commit is contained in:
Drew Ritter
2026-06-30 14:16:14 -07:00
parent 8554b7215c
commit 6fce538621
2 changed files with 23 additions and 1 deletions

View File

@@ -51,6 +51,28 @@ if not plugin_manifest.exists():
manifest = json.loads(plugin_manifest.read_text(encoding="utf-8"))
assert_equal(manifest.get("name"), plugin.get("name"), "plugin manifest name")
supported_categories = {
"Productivity",
"Creativity",
"Developer Tools",
"Business & Operations",
"Data & Analytics",
"Communication",
"Education & Research",
"Security",
"Finance",
"Healthcare",
"Travel",
"Entertainment",
"Other",
}
manifest_category = manifest.get("interface", {}).get("category")
if manifest_category not in supported_categories:
raise AssertionError(
f"plugin manifest category: expected one of {sorted(supported_categories)!r}, "
f"got {manifest_category!r}"
)
assert_equal(manifest_category, plugin.get("category"), "plugin manifest category")
assert_equal(
manifest.get("hooks"),
None,