Skip to content

armgit / hypit

Public Imported from GitHub
0

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.

1.0 KB
Raw Blame
import type { CliCommandModule } from "@hypit/hypit/cli";

export const cliCommandModules = [{
  format: "hypit.cli-command@1",
  id: "@hypit/studio",
  commands: ["studio", "snapshot"],
  writeRootHelp(io) {
    io.write("\nStudio\n  studio --run <build.svrun>\n  snapshot --studio <url> ...\n  hypit studio --help or hypit snapshot --help\n");
  },
  async writeHelp(argv, io) {
    if ((argv[0] === "help" ? argv[1] : argv[0]) === "snapshot") {
      const { writeSnapshotHelp } = await import("./snapshot-cli.js");
      writeSnapshotHelp(io);
    } else {
      const { writeStudioHelp } = await import("./start.js");
      writeStudioHelp(io);
    }
  },
  async run(argv, io, context) {
    if (argv[0] === "snapshot") {
      const { runSnapshotCli } = await import("./snapshot-cli.js");
      await runSnapshotCli(argv, io, context);
    } else {
      const { runStudio } = await import("./start.js");
      await runStudio(argv.slice(1).filter((arg) => arg !== "--debug"), io, context);
    }
  },
}] as const satisfies readonly CliCommandModule[];