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
import { discoverSourcePackages } from "@hypit/hypit/cli";
import {
createMarkupAuthorFrontend,
MarkupSurfaceRegistry,
} from "@hypit/hypit/markup";
import type { LoadedPackage } from "@hypit/hypit/loader";
const markupFrontend = createMarkupAuthorFrontend({
registry: new MarkupSurfaceRegistry(),
resolveModule(request) {
throw new Error(`Markup discovery unexpectedly resolved Module ${request.from}`);
},
});
/** Video Distribution bootstrap: generic Source discovery plus the bare Markup Frontend. */
export async function discoverVideoSourcePackages(
sourcePath: string,
options: {
readonly workspaceRoot?: string;
readonly packageRoot?: string;
readonly distributionPackageRoot?: string;
readonly packages?: readonly LoadedPackage[];
} = {},
) {
return await discoverSourcePackages(sourcePath, {
...(options.workspaceRoot === undefined ? {} : { workspaceRoot: options.workspaceRoot }),
...(options.packageRoot === undefined ? {} : { packageRoot: options.packageRoot }),
...(options.distributionPackageRoot === undefined
? {}
: { distributionPackageRoot: options.distributionPackageRoot }),
...(options.packages === undefined ? {} : { packages: options.packages }),
bootstrapAuthorFrontends: [markupFrontend],
});
}