Skip to content

Function: expandProfileToolCapabilities()

Makaio Framework


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

IMakaioBus

Bus for harness RPC

ProfileToolCapabilitiesConfig

Object with capability and explicit tool list fields

Promise<{ allowedTools?: string[]; disallowedTools?: string[]; }>

Expanded allowedTools and disallowedTools (Stance B union applied)