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.

1.1 KB
Raw Blame
import type {
  LogicalOutputRef,
} from "@hypit/hypit/protocol";

export type BuildPublishedOutput = {
  /** Author-provided display name; the Output identifier remains unchanged. */
  readonly displayName?: string;
  readonly name: string;
  readonly ref: LogicalOutputRef;
};

export type BuildCatalogDescriptor = {
  readonly source: {
    readonly path: string;
  };
  readonly run?: {
    readonly path: string;
  };
  /** Author-facing targets requested by the Run, including Outputs forwarded outside Core execution. */
  readonly targets?: readonly LogicalOutputRef[];
  readonly publishedOutputs: readonly BuildPublishedOutput[];
};

export type BuildCatalogEntry = BuildCatalogDescriptor & {
  readonly build: string;
};

/** Host presentation index only. It is never Build truth. */
export type BuildCatalog = {
  record(build: string, descriptor: BuildCatalogDescriptor): Promise<BuildCatalogEntry>;
  read(build: string): Promise<BuildCatalogEntry | undefined>;
  /** Result manifests own finished presentation; Runtime Catalog covers active execution only. */
  remove?(build: string): Promise<void>;
};