mirror of
https://github.com/obra/superpowers.git
synced 2026-07-03 08:09:05 +08:00
Fix Codex plugin category
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
"shortDescription": "Planning, TDD, debugging, and delivery workflows for coding agents",
|
"shortDescription": "Planning, TDD, debugging, and delivery workflows for coding agents",
|
||||||
"longDescription": "Use Superpowers to guide agent work through brainstorming, implementation planning, test-driven development, systematic debugging, parallel execution, code review, and finish-the-branch workflows.",
|
"longDescription": "Use Superpowers to guide agent work through brainstorming, implementation planning, test-driven development, systematic debugging, parallel execution, code review, and finish-the-branch workflows.",
|
||||||
"developerName": "Jesse Vincent",
|
"developerName": "Jesse Vincent",
|
||||||
"category": "Coding",
|
"category": "Developer Tools",
|
||||||
"capabilities": [
|
"capabilities": [
|
||||||
"Interactive",
|
"Interactive",
|
||||||
"Read",
|
"Read",
|
||||||
|
|||||||
@@ -51,6 +51,28 @@ if not plugin_manifest.exists():
|
|||||||
|
|
||||||
manifest = json.loads(plugin_manifest.read_text(encoding="utf-8"))
|
manifest = json.loads(plugin_manifest.read_text(encoding="utf-8"))
|
||||||
assert_equal(manifest.get("name"), plugin.get("name"), "plugin manifest name")
|
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(
|
assert_equal(
|
||||||
manifest.get("hooks"),
|
manifest.get("hooks"),
|
||||||
None,
|
None,
|
||||||
|
|||||||
Reference in New Issue
Block a user