Skip to main content

deferred_tools_core

Function deferred_tools_core 

Source
pub fn deferred_tools_core(cap: &CapabilityConfig) -> Option<Vec<String>>
Expand description

P4d (design §5.2 P1 CLI-adapter follow-up): read capabilities.deferred_tools.core (module 24’s eagerly-advertised allowlist) — the S-sized read materialize_config inlined, extracted so the CLI’s own build_config can share it without re-deriving the same JSON-array walk, same pattern as permissions_rules_patterns. Caller is responsible for the cap.enabled == Some(true) gate (both call sites already fetch the capability that way). None when the core key is absent — leaves the caller’s existing value untouched, matching ConfigProfile::tool_advertising_core’s “only overridden if the profile sets it” contract.