Interface: StepContext
Defined in: src/batteries/media/runtime.ts:49
The mutable execution context threaded through interceptors and step impls.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
engines | readonly | EngineRegistry | The deployment's engine registry — ordered, capability-filtered dispatch. | src/batteries/media/runtime.ts:68 |
payload | public | StepPayload | The input payload for this step. | src/batteries/media/runtime.ts:57 |
plan | readonly | MediaPlan | The whole plan being executed. | src/batteries/media/runtime.ts:51 |
signal? | readonly | AbortSignal | Abort signal threaded from the caller. | src/batteries/media/runtime.ts:59 |
stash | readonly | Map<string, unknown> | Scratchpad shared across the execution (interceptors may stash timings, hashes…). | src/batteries/media/runtime.ts:61 |
step | readonly | MediaStep | The current step. | src/batteries/media/runtime.ts:55 |
stepIndex | readonly | number | Zero-based index of the current step. | src/batteries/media/runtime.ts:53 |
Methods
resolveRef()
ts
resolveRef(id: string): Promise<StepPayload>;Defined in: src/batteries/media/runtime.ts:73
Resolve another media participating in this step (merge/diff targets), by ref id. Supplied by the pipeline from its configured media resolver.
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<StepPayload>
shortCircuit()
ts
shortCircuit(payload: StepPayload): never;Defined in: src/batteries/media/runtime.ts:66
Short-circuit this step: skip the implementation and continue the chain with bytes (the cache idiom). Throws internally — call it, don't return it.
Parameters
| Parameter | Type |
|---|---|
payload | StepPayload |
Returns
never