Skip to content

@kekkai/blueprint / runRules

Function: runRules() ​

runRules(root, options?): Promise<{ bans: LayerBans[]; gates: GateStatus[]; prohibitions: ProhibitionFact[]; severity: string; }>

Defined in: src/inspect/rules.ts:271

Run blueprint rules in root. Read-only and config-optional: without a config it prints the static catalog; with one, every gate is annotated with the declared tier and whether it emits today.

Parameters ​

root ​

string

options? ​

RulesOptions = {}

Returns ​

Promise<{ bans: LayerBans[]; gates: GateStatus[]; prohibitions: ProhibitionFact[]; severity: string; }>

Example ​

ts
const { gates } = await runRules(process.cwd());

console.log(gates.filter((gate) => gate.active).map((gate) => gate.id));