Files
openmotion/shared/export-expectation.ts
罗高 3493ae9253 Prepare native video dependencies in the background
Share checksummed downloads and component status across installers and running apps. Keep editing available during preparation, show compact Studio progress and retry, and guard media operations before applying work.
2026-11-10 18:29:36 +08:00

9 lines
502 B
TypeScript

import { ensureRuntime, snapshotExportExpectation } from '../hyperframes.ts';
import type { ExportExpectation } from './export-spec.ts';
// Resolve the runtime only when an export is requested. Packaged MCP discovery
// must still work before dependencies have been installed in the data directory.
export async function exportExpectation(dataDirectory: string, snapshot: string): Promise<ExportExpectation> {
return snapshotExportExpectation(await ensureRuntime(dataDirectory, false), snapshot);
}