Skip to content

rulvar API reference


rulvar API reference / @rulvar/plan / canonicalPlanState

Function: canonicalPlanState()

ts
function canonicalPlanState(plan): Record<string, unknown>;

Defined in: packages/plan/src/plan-hash.ts:48

The canonical JSON projection of PlanState: nodes sorted by NodeId plus the guard fold counters, nothing else.

Parameters

ParameterType
planTaskPlan

Returns

Record&lt;string, unknown&gt;