function resolveMediaPrompt(prompt): ResolvedMediaPrompt;Defined in: packages/ai/src/utilities/media-prompt.ts:45
Decompose a MediaPrompt into flattened text and per-modality part buckets, preserving prompt order everywhere. This is the single downrev point from the canonical interleaved prompt shape to the named-field request shapes most providers expose.