collectype / utils/step/StepManager / StepManager
Defined in: utils/step/StepManager.ts:5
Manages step tracking with support for nested steps using a stack-based approach. Only top-level steps (level 0) are tracked in the filterSteps array.
new StepManager():
StepManager
StepManager
get isInStep():
boolean
Defined in: utils/step/StepManager.ts:46
Checks if we’re currently inside any step (any level).
boolean
True if any step is in progress, false otherwise
get level():
number
Defined in: utils/step/StepManager.ts:55
Gets the current step depth level.
number
The current nesting level (0 = no steps, 1 = one level, etc.)
get steps():
string[]
Defined in: utils/step/StepManager.ts:64
Gets a copy of the current filter steps (only top-level steps).
string[]
Array of step names that should be tracked
begin(
name):void
Defined in: utils/step/StepManager.ts:15
Starts a new step and pushes it onto the stack. Only level 0 steps are added to steps for tracking.
string
The name of the step to start
void
end():
string
Defined in: utils/step/StepManager.ts:31
Ends the current step by popping it from the stack.
string
The name of the ended step
Error if no step is currently in progress
addUnknownStep():
void
Defined in: utils/step/StepManager.ts:72
Adds an unknown step marker to the steps. This should be called when operations occur outside of named steps.
void
reset():
void
Defined in: utils/step/StepManager.ts:80
Resets the step manager to its initial state. Clears both the step stack and filter steps.
void