diff --git a/src/apm_cli/deps/plugin_parser.py b/src/apm_cli/deps/plugin_parser.py index 8f9c37cac..7814cd1d3 100644 --- a/src/apm_cli/deps/plugin_parser.py +++ b/src/apm_cli/deps/plugin_parser.py @@ -276,14 +276,14 @@ def _substitute_plugin_root( servers: Dict[str, Any], abs_root: str, logger: logging.Logger ) -> Dict[str, Any]: """Replace ``${CLAUDE_PLUGIN_ROOT}`` in server config string values.""" - token = "${CLAUDE_PLUGIN_ROOT}" + placeholder = "${CLAUDE_PLUGIN_ROOT}" substituted = False def _walk(obj: Any) -> Any: nonlocal substituted - if isinstance(obj, str) and token in obj: + if isinstance(obj, str) and placeholder in obj: substituted = True - return obj.replace(token, abs_root) + return obj.replace(placeholder, abs_root) if isinstance(obj, dict): return {k: _walk(v) for k, v in obj.items()} if isinstance(obj, list): diff --git a/uv.lock b/uv.lock index f50405677..8116b2828 100644 --- a/uv.lock +++ b/uv.lock @@ -179,7 +179,7 @@ wheels = [ [[package]] name = "apm-cli" -version = "0.9.4" +version = "0.10.0" source = { editable = "." } dependencies = [ { name = "click" },