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 {
createRuntimeEndpointAdapterFacet, runtimeConfigCredentialRef, runtimeConfigExact,
runtimeConfigObject, runtimeConfigPositiveInteger, runtimeConfigString,
} from "@hypit/runtime-local/extension";
import { createImageProvider, providerModule } from "./provider.js";
export default {
format: "hypit.package@1" as const,
facets: [createRuntimeEndpointAdapterFacet({
use: providerModule.name,
activate(context) {
const config = runtimeConfigObject(context.config, "Image service");
runtimeConfigExact(config, ["baseUrl", "apiKey", "concurrency", "pollIntervalMs"], "Image service");
const baseUrl = runtimeConfigString(config.baseUrl, "Image service baseUrl");
const apiKey = runtimeConfigCredentialRef(config.apiKey, "Image service apiKey");
if (!baseUrl || !apiKey || !context.pool) throw new Error("Image service requires baseUrl, apiKey and pool");
return { endpoint: createImageProvider({
instance: context.instance, pool: context.pool, baseUrl, apiKey,
concurrency: runtimeConfigPositiveInteger(config.concurrency, "concurrency") ?? 1,
pollIntervalMs: runtimeConfigPositiveInteger(config.pollIntervalMs, "pollIntervalMs") ?? 2_000,
}) };
},
})],
};