import type { RailDeckDirectIntegrationClient as Client } from '@raildeck/frontend-sdk/direct-integration'; /** * Read saved CV evidence, tuning and presets before preparing a programming batch. * @param client - Configured client; the caller owns current authority. * @param accountId - Authorised account for this workflow. * @param locomotiveId - Explicitly selected locomotive. * @returns Saved programming context; this helper does not enqueue decoder writes. */ export async function prepareProgrammingReview( client: Client, accountId: string, locomotiveId: string, ) { const values = await client.locomotiveCvs.listValues(accountId, locomotiveId); const tuning = await client.locomotiveCvs.getTuning(accountId, locomotiveId); const presets = await client.locomotiveCvs.listProgrammingPresets(accountId, locomotiveId); return { values, tuning, presets }; }