Interface: MediaPipeline()
Defined in: src/batteries/media/index.ts:211
The callable pipeline returned by createMediaPipeline: mp(payload) opens a chainable builder; mp.query(payload, q) runs a pipe-string statement; mp.ops(payload, ops) runs a JSON ops array. All three compile to the same plan and execute on the same runtime.
ts
MediaPipeline(input: StepPayload): MediaChain;Defined in: src/batteries/media/index.ts:213
Open a fresh chainable builder over input.
Parameters
| Parameter | Type |
|---|---|
input | StepPayload |
Returns
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
capabilities | readonly | EngineRegistry | The deployment's engine registry (drives verb narrowing AND generation/edit dispatch — the runtime value has always been the registry; the declared type now says so). | src/batteries/media/index.ts:224 |
engines | readonly | readonly MediaEngine[] | The resolved engines, in supply order — inspect ids and declared capabilities. | src/batteries/media/index.ts:226 |
Methods
compile()
ts
compile(statement: string | MediaOp[]): MediaPlan;Defined in: src/batteries/media/index.ts:219
Validate a pipe string or ops array to a plan WITHOUT executing (dry-run/compile).
Parameters
| Parameter | Type |
|---|---|
statement | string | MediaOp[] |
Returns
ops()
ts
ops(
input: StepPayload,
ops: MediaOp[],
options?: RunOptions): Promise<StepResult>;Defined in: src/batteries/media/index.ts:217
Validate and execute a JSON ops array.
Parameters
| Parameter | Type |
|---|---|
input | StepPayload |
ops | MediaOp[] |
options? | RunOptions |
Returns
Promise<StepResult>
query()
ts
query(
input: StepPayload,
q: string,
options?: RunOptions): Promise<StepResult>;Defined in: src/batteries/media/index.ts:215
Parse, validate, and execute a pipe-string statement.
Parameters
| Parameter | Type |
|---|---|
input | StepPayload |
q | string |
options? | RunOptions |
Returns
Promise<StepResult>