mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-06 18:17:31 +08:00
9 lines
495 B
TypeScript
9 lines
495 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), snapshot);
|
|
}
|