API ReferenceFunctions
transformSteps
function transformSteps(
ctx,
jobId,
job,
fn): void;Defined in: packages/core/src/ir.ts:265
Rebuild a job's steps in place: fn returns the replacement step(s) for
each input step, so a pass can fan one step out into many (retry attempts,
fallback notify steps) while keeping the surrounding steps untouched. Each
original step's origin is recorded before fn runs so replacements built
with cloneNode/deriveNode inherit it.
Parameters
ctx
jobId
string
job
fn
(step, index) => Step[]
Returns
void