Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
fix: list programs prepare in overview help and explain missing Profiles
fetw25ad83f9f974
diff --git a/packages/cli/src/commands/environment.ts b/packages/cli/src/commands/environment.tsindex d1f3945b..e70313ba 100644--- a/packages/cli/src/commands/environment.ts+++ b/packages/cli/src/commands/environment.ts@@ -172,7 +172,9 @@ export async function runEnvironmentCommand(input: {}if (args.command === "programs") {- if (runtimeProfile === undefined) throw new Error("programs requires a Runtime Profile");+ if (runtimeProfile === undefined) {+ throw new Error("programs requires a Runtime; run hypit runtime init, select one with runtime use, or pass --runtime <profile>");+ }const profile = resolve(runtimeProfile);const host = await runtimeHost(profile);if (args.action === "up" || args.action === "prepare") {@@ -232,7 +234,9 @@ export async function runEnvironmentCommand(input: {}if (args.command === "runtime") {- if (runtimeProfile === undefined) throw new Error("runtime requires a Runtime Profile");+ if (runtimeProfile === undefined) {+ throw new Error("runtime requires a Runtime; run hypit runtime init, select one with runtime use, or pass --runtime <profile>");+ }const profile = resolve(runtimeProfile);const controller = await runtimeController(profile);if (args.action === "up") {diff --git a/packages/cli/src/output.ts b/packages/cli/src/output.tsindex 7eee8987..897651fa 100644--- a/packages/cli/src/output.ts+++ b/packages/cli/src/output.ts@@ -1015,7 +1015,7 @@ export function writeCliHelp(io: CliIo, topic?: string): void {row("doctor [profile]", "diagnose selected external setup"),row("runtime init|use|unset", "create or select this project's Runtime Profile"),row("runtime up|status|logs|down", "prepare and manage the local Build Runtime"),- row("programs up|status|down", "manage declared external programs only"),+ row("programs prepare|up|status|down", "manage declared external programs only"),row("packages install|status", "manage pinned upstream packages in the machine home"),row("activity [--watch]", "show active Builds and their current phases"),row("cancel <build-id>", "withdraw one active Build"),diff --git a/packages/cli/test/output.test.ts b/packages/cli/test/output.test.tsindex e966e005..762b07a2 100644--- a/packages/cli/test/output.test.ts+++ b/packages/cli/test/output.test.ts@@ -362,6 +362,7 @@ test("help is concise and describes stable rather than complete output", () => {assert.match(output, /^Hypit\n/u);assert.match(output, /Results/u);assert.match(output, /stable machine view/u);+ assert.match(output, /programs prepare\|up\|status\|down/u);assert.doesNotMatch(output, /Typical flow|complete machine-readable|image --prompt/u);});diff --git a/packages/cli/test/programs-command.test.ts b/packages/cli/test/programs-command.test.tsindex 8e386a4d..e94819ae 100644--- a/packages/cli/test/programs-command.test.ts+++ b/packages/cli/test/programs-command.test.ts@@ -65,6 +65,14 @@ test("programs dispatches lifecycle through the selected Runtime Controller", as]);});+test("programs without a Runtime Profile explains how to select one", async () => {+ const projectRoot = await realpath(tmpdir());+ await assert.rejects(+ runCli(["programs", "status", "--workspace", projectRoot], io, distribution([])),+ /programs requires a Runtime; run hypit runtime init, select one with runtime use, or pass --runtime <profile>/u,+ );+});+test("programs accepts prepare, up, down and status", async () => {await assert.rejects(runCli(["programs", "restart", "/p/hypit.runtime.json"], io, distribution([])),