MCPcopy Create free account
hub / github.com/openai/plugins / lookup_layered_value

Function lookup_layered_value

plugins/codex-security/scripts/config_preflight.py:190–197  ·  view source on GitHub ↗
(
    path: str, config_layers: list[tuple[Path, dict[str, Any]]]
)

Source from the content-addressed store, hash-verified

188
189
190def lookup_layered_value(
191 path: str, config_layers: list[tuple[Path, dict[str, Any]]]
192) -> tuple[bool, Any]:
193 for _config_path, config in reversed(config_layers):
194 found, actual = lookup_dotted(config, path)
195 if found:
196 return True, actual
197 return False, None
198
199
200def iter_config_views(

Callers 2

resolve_project_rootFunction · 0.85

Calls 1

lookup_dottedFunction · 0.85

Tested by

no test coverage detected