@kekkai/blueprint / runRules
Function: runRules()
runRules(
root,options?):Promise<{bans:LayerBans[];gates:GateStatus[];severity:string; }>
Defined in: inspect/rules.ts:176
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[]; severity: string; }>
Example
ts
const { gates } = await runRules(process.cwd());
console.log(gates.filter((gate) => gate.active).map((gate) => gate.id));