mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-08 07:46:59 +00:00
* refactor(skills): keep hyperframes-core as the HTML contract Move brief, storyboard, review, production, dispatch, and frame-worker docs to hyperframes. Slim remaining core references. * fix(skills): restore camera recipes and root sizing Restore Zoom, Ken Burns, crop, and clip-path recipes. #root is 100 percent. * fix(skills): stamp size on the composition root Runtime sizes the composition root, not html/body. Overlap pin requires is valid.
28 lines
1.1 KiB
JavaScript
28 lines
1.1 KiB
JavaScript
#!/usr/bin/env node
|
|
|
|
// Thin wrapper over the shared packet builder in hyperframes — this file only
|
|
// pins the paths that are specific to this workflow skill. The logic (frame
|
|
// splitting, rule citation, packet bounds, `_role.md` assembly) has one owner:
|
|
// ../../hyperframes/scripts/lib/frame-packets-core.mjs
|
|
|
|
import { dirname, resolve } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import * as core from "../../hyperframes/scripts/lib/frame-packets-core.mjs";
|
|
|
|
const SKILL_DIR = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
const CONFIG = {
|
|
animationDir: resolve(SKILL_DIR, "../hyperframes-animation"),
|
|
corePath: resolve(SKILL_DIR, "../hyperframes/references/frame-worker-core.md"),
|
|
deltaPath: resolve(SKILL_DIR, "sub-agents/frame-worker.md"),
|
|
};
|
|
|
|
export function buildRolePayload({ outDir }) {
|
|
return core.buildRolePayload({ ...CONFIG, outDir });
|
|
}
|
|
|
|
export function buildFramePackets(options) {
|
|
return core.buildFramePackets({ ...CONFIG, ...options });
|
|
}
|
|
|
|
if (core.isMainModule(import.meta.url)) core.runCli({ buildFramePackets, buildRolePayload });
|