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.

561 B
Raw Blame
import type { RunFrontend } from "@hypit/run";
import { decodeSourceText } from "@hypit/source";

import { parseRunDocument } from "./syntax.js";

export const runMarkupFrontendId = "@hypit/markup/run@1";

export const runMarkupFrontend: RunFrontend = {
  id: runMarkupFrontendId,
  discover(source) {
    const document = parseRunDocument(source.name, decodeSourceText(source));
    return { author: document.author, imports: document.imports };
  },
  decode(source) {
    return { document: parseRunDocument(source.name, decodeSourceText(source)) };
  },
};