Skip to content

Function: expandCapabilities()

Makaio Framework


Makaio Framework / contracts / 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.

ExpandCapabilitiesParams

Expansion parameters; see ExpandCapabilitiesParams.

ExpandCapabilitiesResult

Expanded tool name lists; see ExpandCapabilitiesResult.