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 { homedir } from "node:os";
import { join, resolve } from "node:path";
export function hypitProjectStateRoot(projectRoot: string): string {
return resolve(projectRoot, ".hypit");
}
/** Persistent state owned by the installed Host, outside every author project and Runtime Profile. */
export function hypitHostStateRoot(options: {
readonly env?: NodeJS.ProcessEnv;
readonly platform?: NodeJS.Platform;
readonly home?: string;
} = {}): string {
const env = options.env ?? process.env;
const override = env.HYPIT_STATE_HOME;
if (override !== undefined && override.trim().length > 0) return resolve(override);
const platform = options.platform ?? process.platform;
const home = options.home ?? homedir();
if (platform === "darwin") return join(home, "Library", "Application Support", "Hypit");
if (platform === "win32") {
const local = env.LOCALAPPDATA;
return join(local === undefined || local.trim().length === 0
? join(home, "AppData", "Local")
: local, "Hypit");
}
const state = env.XDG_STATE_HOME;
return join(state === undefined || state.trim().length === 0
? join(home, ".local", "state")
: state, "hypit");
}