Function: expandCapabilities()
Makaio Framework / contracts / expandCapabilities
Function: expandCapabilities()
Section titled “Function: expandCapabilities()”expandCapabilities(
params):ExpandCapabilitiesResult
Defined in: ../../../packages/contracts/src/harness/expand-capabilities.ts:67
Expands capability filters to concrete tool names using the ALL-match rule.
Only tools present in registeredTools are evaluated.
A tool is included in allowedTools only if all its capabilities fall within
the allowed set. A tool is included in disallowedTools if any of its
capabilities falls within the disallowed set.
Explicit allowedTools overrides (Stance B) are intentionally not handled
here; that merge belongs to the caller.
Parameters
Section titled “Parameters”params
Section titled “params”Expansion parameters; see ExpandCapabilitiesParams.
Returns
Section titled “Returns”Expanded tool name lists; see ExpandCapabilitiesResult.