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.2 KB
Raw Blame
import assert from "node:assert/strict";
import test from "node:test";

import type { StudioPlacement } from "@hypit/studio-companion";

import { narrativeTemporalModuleRef } from "../src/manifest.js";
import { narrativeStudioTemporalDeclarations } from "../src/studio.js";

const placement = (surface: string, port: string): StudioPlacement => ({
  tag: `semantic:${surface}`,
  module: narrativeTemporalModuleRef,
  sourcePath: "main.svml",
  surface,
  id: "claim",
  range: { start: 4, end: 24 },
  records: [], values: [], outputs: ["claim"], outputPorts: [{ name: port, ref: "claim" }],
  children: [], attributes: {}, attributeValueRanges: {}, referenceAttributes: {}, referenceTypes: {}, references: [],
});

test("Narrative temporal companions contribute only primary Instants to the common row", () => {
  const instant = narrativeStudioTemporalDeclarations.find((item) => item.match.surface === "narrative-instant")!;
  assert.equal(narrativeStudioTemporalDeclarations.some(item => item.match.surface === "narrative-window"), false);
  assert.deepEqual(instant.project({ placement: placement("Instant", "instant") }),
    [{ id: "claim", label: "claim", output: "claim", range: { start: 4, end: 24 } }]);
});