Skip to content

Function: compilePrefixGroups() ​

ts
function compilePrefixGroups(params): Promise<ReadonlyMap<string, CompiledWirePrefix>>;

Defined in: runtime/prefix/compile-wire-prefix.ts:104

Compiles all PrefixGroupNode definitions in AST declaration order at the start of a flow run (SPEC.md §3.2.1).

Resolves .sharedGrounding(), .sharedInstructions(), and .sharedRules(), snapshots groundingSnapshots, and builds wireToolSchemasByRoleKey ('role-scoped' vs 'union').

Parameters ​

ParameterTypeDescription
paramsCompileWirePrefixParamsPrefix compilation parameters and runtime registry.

Returns ​

Promise<ReadonlyMap<string, CompiledWirePrefix>>

Map of prefixGroupId to pinned CompiledWirePrefix.

Released under the MIT License.