@@ -67,6 +67,7 @@ def write(path: str, content: str) -> None:
6767 write ("integrations/hermes/plugin.yaml" , "version: 0.0.0\n " )
6868 write ("integrations/hermes/__init__.py" , '__version__ = "0.0.0"\n ' )
6969 write ("integrations/openclaw/package.json" , json .dumps (package_manifest ) + "\n " )
70+ write ("plugins/codex/.codex-plugin/plugin.json" , json .dumps (package_manifest ) + "\n " )
7071
7172 update_versions .update_versions ("v0.21.3b1" , dry_run = False )
7273
@@ -76,6 +77,8 @@ def write(path: str, content: str) -> None:
7677 )
7778 openclaw_package = json .loads ((tmp_path / "integrations/openclaw/package.json" ).read_text ())
7879 assert openclaw_package ["version" ] == "0.21.3-beta.1"
80+ codex_plugin = json .loads ((tmp_path / "plugins/codex/.codex-plugin/plugin.json" ).read_text ())
81+ assert codex_plugin ["version" ] == "0.21.3-beta.1"
7982
8083
8184def _seed_repo (tmp_path : Path ) -> None :
@@ -108,13 +111,19 @@ def write(path: str, content: str) -> None:
108111 write ("integrations/hermes/plugin.yaml" , "version: 0.0.0\n " )
109112 write ("integrations/hermes/__init__.py" , '__version__ = "0.0.0"\n ' )
110113 write ("integrations/openclaw/package.json" , json .dumps (package_manifest ) + "\n " )
114+ write ("plugins/codex/.codex-plugin/plugin.json" , json .dumps (package_manifest ) + "\n " )
111115
112116
113117def _plugin_version (tmp_path : Path ) -> str :
114118 path = tmp_path / "plugins/claude-code/.claude-plugin/plugin.json"
115119 return json .loads (path .read_text ())["version" ]
116120
117121
122+ def _codex_plugin_version (tmp_path : Path ) -> str :
123+ path = tmp_path / "plugins/codex/.codex-plugin/plugin.json"
124+ return json .loads (path .read_text ())["version" ]
125+
126+
118127def test_scope_packages_leaves_core_untouched (
119128 monkeypatch : pytest .MonkeyPatch , tmp_path : Path
120129) -> None :
@@ -127,6 +136,7 @@ def test_scope_packages_leaves_core_untouched(
127136 assert (tmp_path / "src/basic_memory/__init__.py" ).read_text () == '__version__ = "0.0.0"\n '
128137 assert json .loads ((tmp_path / "server.json" ).read_text ())["version" ] == "0.0.0"
129138 assert _plugin_version (tmp_path ) == "0.21.6"
139+ assert _codex_plugin_version (tmp_path ) == "0.21.6"
130140
131141
132142def test_scope_core_leaves_packages_untouched (
@@ -139,6 +149,7 @@ def test_scope_core_leaves_packages_untouched(
139149
140150 assert (tmp_path / "src/basic_memory/__init__.py" ).read_text () == '__version__ = "0.21.6"\n '
141151 assert _plugin_version (tmp_path ) == "0.0.0"
152+ assert _codex_plugin_version (tmp_path ) == "0.0.0"
142153
143154
144155def test_invalid_scope_raises (monkeypatch : pytest .MonkeyPatch , tmp_path : Path ) -> None :
0 commit comments