Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
feat(cli): improve FTUX to guide users toward AI agent workflow
Jamesf96d357c9a99
diff --git a/packages/cli/src/commands/dev.ts b/packages/cli/src/commands/dev.tsindex 4349ece3f0..1982b2acf2 100644--- a/packages/cli/src/commands/dev.ts+++ b/packages/cli/src/commands/dev.ts@@ -306,6 +306,11 @@ async function runEmbeddedMode(dir: string, startPort: number): Promise<void> {console.log(` ${c.dim("Project")} ${c.accent(projectName)}`);console.log(` ${c.dim("Studio")} ${c.accent(url)}`);console.log();+ console.log(+ ` ${c.dim("Edit compositions with your AI agent — it has HyperFrames skills installed.")}`,+ );+ console.log(` ${c.dim("Changes reload automatically in the studio.")}`);+ console.log();console.log(` ${c.dim("Press Ctrl+C to stop")}`);console.log();import("open").then((mod) => mod.default(`${url}#project/${projectName}`)).catch(() => {});diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.tsindex 2a4a4a81b2..41c11000d9 100644--- a/packages/cli/src/commands/init.ts+++ b/packages/cli/src/commands/init.ts@@ -646,23 +646,22 @@ Examples:console.log(` ${c.accent(f)}`);}console.log();- console.log("Next steps:");- console.log(- ` ${c.accent(`cd ${name}`)} && ${c.accent("npx hyperframes dev")} ${c.dim("# preview in studio")}`,- );- console.log(- ` ${c.accent(`cd ${name}`)} && ${c.accent("npx hyperframes render")} ${c.dim("# render to MP4")}`,- );+ console.log("Get started:");+ console.log();+ console.log(` ${c.accent("1.")} Open this project in your AI coding agent:`);console.log(- ` ${c.accent("npx hyperframes docs")} ${c.dim("<topic>")} ${c.dim("# learn composition syntax")}`,+ ` ${c.accent(`cd ${name}`)} then start ${c.accent("Claude Code")}, ${c.accent("Cursor")}, or your preferred agent`,);console.log(- ` ${c.dim("topics: data-attributes, gsap, compositions, rendering, templates, troubleshooting")}`,+ ` ${c.dim("AI skills are installed — your agent knows how to create and edit compositions.")}`,);console.log();- console.log(- ` ${c.dim("AI skills installed — open this folder in your AI coding agent to get started.")}`,- );+ console.log(` ${c.accent("2.")} Preview in the browser:`);+ console.log(` ${c.accent(`cd ${name}`)} && ${c.accent("npx hyperframes dev")}`);+ console.log();+ console.log(` ${c.accent("3.")} Render to MP4 when ready:`);+ console.log(` ${c.accent(`cd ${name}`)} && ${c.accent("npx hyperframes render")}`);+ console.log();console.log(` ${c.dim("Full docs: hyperframes.heygen.com")}`);return;}@@ -860,6 +859,11 @@ Examples:const files = readdirSync(destDir);clack.note(files.map((f) => c.accent(f)).join("\n"), c.success(`Created ${name}/`));+ clack.log.message(+ `${c.dim("Tip:")} Open this project in ${c.accent("Claude Code")}, ${c.accent("Cursor")}, or your preferred AI agent.\n` ++ `${c.dim(" AI skills are installed — your agent knows how to create and edit compositions.")}`,+ );+await nextStepLoop(destDir);},});