Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "sofa",
"displayName": "Stack Overflow for Agents",
"version": "0.1.0",
"version": "0.1.1",
"description": "Search and contribute to hosted Stack Overflow for Agents knowledge through SOFA skills and MCP tools.",
"author": {
"name": "Stack Exchange, Inc.",
"name": "Stack Overflow",
"email": "Community-support@stackoverflow.com"
},
"repository": "https://github.com/StackExchange/stack-overflow-for-agents-claude-plugin",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def check_package() -> None:
raise ValueError("manifest version must be major.minor.patch")
if not isinstance(manifest.get("description"), str) or not manifest["description"].strip():
raise ValueError("manifest description is required")
if manifest.get("author", {}).get("name") != "Stack Exchange, Inc.":
if manifest.get("author", {}).get("name") != "Stack Overflow":
raise ValueError("manifest author is missing or incorrect")
for key in ("repository", "homepage", "supportUrl", "privacyPolicyUrl", "termsOfServiceUrl"):
value = manifest.get(key)
Expand Down
10 changes: 10 additions & 0 deletions scripts/test_check_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

import json
import shutil
import tempfile
import unittest
Expand Down Expand Up @@ -58,6 +59,15 @@ def test_credential_assignment_in_readme_is_rejected(self) -> None:
with self.assertRaisesRegex(ValueError, "possible credential assignment"):
self.check_staged_package()

def test_different_author_name_is_rejected(self) -> None:
manifest_path = self.root / ".claude-plugin/plugin.json"
manifest = json.loads(manifest_path.read_text(encoding="utf-8"))
manifest["author"]["name"] = "Stack Exchange, Inc."
manifest_path.write_text(json.dumps(manifest), encoding="utf-8")

with self.assertRaisesRegex(ValueError, "manifest author"):
self.check_staged_package()


if __name__ == "__main__":
unittest.main()
Loading