Interface: EngineSelectionContext
Defined in: src/batteries/media/registry.ts:80
The request summary a selection stage sees: enough to implement content- and format-dependent rules without exposing dispatch internals.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
candidates | MediaEngine[] | The capable engines, in supply order. Stages may exclude or reorder (mutate in place or reassign); survivors are re-filtered against the original capable set, so a stage can never add an engine the capability filter rejected. | src/batteries/media/registry.ts:101 |
kind | "convert" | "edit" | "mutate" | Which capability is being dispatched. | src/batteries/media/registry.ts:82 |
request | { bytes: Uint8Array; filename: string; mimeType: string; ops?: readonly string[]; to?: string; } | The dispatch request (for convert under multi-hop, the CURRENT hop's input/target). | src/batteries/media/registry.ts:84 |
request.bytes | Uint8Array | The input bytes — content-dependent rules (e.g. workbook complexity) need them. | src/batteries/media/registry.ts:90 |
request.filename | string | The input filename. | src/batteries/media/registry.ts:88 |
request.mimeType | string | The input MIME type. | src/batteries/media/registry.ts:86 |
request.ops? | readonly string[] | The requested mutate operations. | src/batteries/media/registry.ts:94 |
request.to? | string | The convert target token, or the mutate format.to when a re-encode was requested. | src/batteries/media/registry.ts:92 |