Skip to content

Commit 8faeb1c

Browse files
committed
Keep portable plugin manifest versions aligned during release
Budget: repository 109 files / 3,067,087 bytes -> 109 files / 3,067,343 bytes; plugin remains 52 files / 1,943,651 bytes.
1 parent 8d5b415 commit 8faeb1c

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎plugins/screenrig/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
33
"name": "screenrig",
4-
"version": "26.10.386",
4+
"version": "26.10.388",
55
"description": "Operate screenRIG screens, media, playlists, applications, and advertising with the bundled CLI.",
66
"author": {
77
"name": "screenRIG"

‎scripts/calver.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ def stamp_marketplace(path: Path, version: str) -> None:
4444

4545

4646
def stamp_plugin_root(plugin_root: Path, version: str) -> None:
47-
for platform in ("claude", "codex"):
48-
path = plugin_root / f".{platform}-plugin" / "plugin.json"
47+
manifests = [plugin_root / f".{platform}-plugin" / "plugin.json" for platform in ("claude", "codex")]
48+
portable = plugin_root / "plugin.json"
49+
if portable.is_file():
50+
manifests.append(portable)
51+
for path in manifests:
4952
data = json.loads(path.read_text(encoding="utf-8"))
5053
if not isinstance(data, dict):
5154
raise SystemExit(f"{path}: expected a JSON object")

‎scripts/test.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ def test_stamp_reports_one_version_everywhere(self) -> None:
382382
plugin_root = tmp / "screenrig"
383383
marketplace = tmp / "marketplace.json"
384384
write_json(plugin_root / "cli" / "package.json", {"name": "screenrig", "version": "26.09.6"})
385+
write_json(plugin_root / "plugin.json", {"name": "screenrig", "version": "26.09.6"})
385386
for platform in ("claude", "codex"):
386387
write_json(plugin_root / f".{platform}-plugin" / "plugin.json", {"name": "screenrig", "version": "26.09.6"})
387388
write_json(marketplace, {"name": "screenrig", "plugins": [{"name": "screenrig", "version": "26.09.6"}]})
@@ -393,7 +394,7 @@ def test_stamp_reports_one_version_everywhere(self) -> None:
393394
self.assertEqual(result.returncode, 0, result.stderr.strip())
394395
self.assertEqual(json.loads(marketplace.read_text())["plugins"][0]["version"], "26.09.7")
395396
for path in (plugin_root / "cli" / "package.json", plugin_root / ".claude-plugin" / "plugin.json",
396-
plugin_root / ".codex-plugin" / "plugin.json"):
397+
plugin_root / ".codex-plugin" / "plugin.json", plugin_root / "plugin.json"):
397398
self.assertEqual(json.loads(path.read_text())["version"], "26.09.7", path.name)
398399

399400

0 commit comments

Comments
 (0)