Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(skills): keep the seam gate's preview attached so --project works again (#3463)
James Russoac00560d7d97
diff --git a/.agents/skills/motion-doctrine/scripts/seam-gate.mjs b/.agents/skills/motion-doctrine/scripts/seam-gate.mjsindex 5565113686..569c91bbbd 100644--- a/.agents/skills/motion-doctrine/scripts/seam-gate.mjs+++ b/.agents/skills/motion-doctrine/scripts/seam-gate.mjs@@ -71,7 +71,12 @@ async function ensureServer() {const port = 5380 + Math.floor(Math.random() * 20);const env = { ...process.env };delete env.HYPERFRAME_RUNTIME_URL; // wrong value fails silently as 200 HTML- const cmd = flag("server-cmd", `npx --yes hyperframes preview --no-open --port ${port}`);+ // `preview` backgrounds itself when stdin/stdout aren't TTYs, which they never are here: the+ // launcher would exit 0 before the server is up and detach it out of our process group.+ const cmd = flag(+ "server-cmd",+ `npx --yes hyperframes preview --foreground --no-open --port ${port}`,+ );const child = spawn("sh", ["-c", cmd.replace(/\{port\}/g, String(port))], {cwd: project,env,diff --git a/.claude/skills/motion-doctrine/scripts/seam-gate.mjs b/.claude/skills/motion-doctrine/scripts/seam-gate.mjsindex 5565113686..569c91bbbd 100644--- a/.claude/skills/motion-doctrine/scripts/seam-gate.mjs+++ b/.claude/skills/motion-doctrine/scripts/seam-gate.mjs@@ -71,7 +71,12 @@ async function ensureServer() {const port = 5380 + Math.floor(Math.random() * 20);const env = { ...process.env };delete env.HYPERFRAME_RUNTIME_URL; // wrong value fails silently as 200 HTML- const cmd = flag("server-cmd", `npx --yes hyperframes preview --no-open --port ${port}`);+ // `preview` backgrounds itself when stdin/stdout aren't TTYs, which they never are here: the+ // launcher would exit 0 before the server is up and detach it out of our process group.+ const cmd = flag(+ "server-cmd",+ `npx --yes hyperframes preview --foreground --no-open --port ${port}`,+ );const child = spawn("sh", ["-c", cmd.replace(/\{port\}/g, String(port))], {cwd: project,env,