rulvar API reference / @rulvar/plan / applyAppliedOp
Function: applyAppliedOp()
ts
function applyAppliedOp(
working,
op,
context): PlanWorking;Defined in: packages/plan/src/plan-entries.ts:328
Applies ONE applied op to the working state. The applier consumes recorded outcomes; op-level legality was decided at rebase time and is never re-evaluated here. Exported for the rebase engine, which applies each op of a revision against the state already changed by the earlier applied ops of the same revision.
Parameters
| Parameter | Type |
|---|---|
working | PlanWorking |
op | AppliedPlanOp |
context | { lineageOf?: (opIndex) => string | undefined; opIndex?: number; seq: number; } |
context.lineageOf? | (opIndex) => string | undefined |
context.opIndex? | number |
context.seq | number |