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.

804 B
Raw Blame
import type { CanonicalValue, SourceRange } from "@hypit/protocol";

export type Recipe = {
  readonly path: string;
  readonly properties: Readonly<Record<string, CanonicalValue>>;
};

export type ParsedSvsRecipe = {
  readonly value: Recipe;
  readonly range: SourceRange;
  /** Exact author-source spans, for editors that must preserve surrounding trivia. */
  readonly properties: readonly ParsedSvsProperty[];
};

export type ParsedSvsProperty = {
  readonly name: string;
  /** From the property name through its terminating semicolon. */
  readonly range: SourceRange;
  /** The trimmed value only; replacing this span preserves author formatting. */
  readonly valueRange: SourceRange;
};

export type ParsedSvsSheet = {
  readonly id?: string;
  readonly recipes: readonly ParsedSvsRecipe[];
};