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;