Function: expandProfileToolCapabilities()
Makaio Framework / contracts / expandProfileToolCapabilities
Function: expandProfileToolCapabilities()
Section titled “Function: expandProfileToolCapabilities()”expandProfileToolCapabilities(
bus,config):Promise<{allowedTools?:string[];disallowedTools?:string[]; }>
Defined in: ../../../packages/contracts/src/harness/expand-capabilities.ts:162
Expands capability-based filters from a profile-like config into concrete tool names, loading the harness capability map via bus.
This is a no-op when no capability fields are set, when harnessId is
absent, or when the resolved harness has no toolCapabilityMap. In all
these cases the explicit allowedTools / disallowedTools are returned
unchanged.
Results are unioned with the explicit tool lists (Stance B): explicit names are never removed by capability expansion.
Parameters
Section titled “Parameters”Bus for harness RPC
config
Section titled “config”Object with capability and explicit tool list fields
Returns
Section titled “Returns”Promise<{ allowedTools?: string[]; disallowedTools?: string[]; }>
Expanded allowedTools and disallowedTools (Stance B union applied)