MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / readMotionSpec

Function readMotionSpec

packages/cli/src/utils/motionSpec.ts:133–141  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

131}
132
133export function readMotionSpec(path: string): MotionSpecParse {
134 let raw: unknown;
135 try {
136 raw = JSON.parse(readFileSync(path, "utf-8"));
137 } catch (err) {
138 return { ok: false, errors: [`could not read ${basename(path)}: ${(err as Error).message}`] };
139 }
140 return parseMotionSpec(raw);
141}

Callers 2

motionSpec.test.tsFile · 0.85
resolveMotionSpecFunction · 0.85

Calls 2

basenameFunction · 0.85
parseMotionSpecFunction · 0.85

Tested by

no test coverage detected