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.

fix(deck): declare all track surface records

kashorin1fc4474836a3
diff --git a/packages/deck-track/src/manifest.ts b/packages/deck-track/src/manifest.ts
index f8981005..23f59054 100644
--- a/packages/deck-track/src/manifest.ts
+++ b/packages/deck-track/src/manifest.ts
@@ -124,7 +124,12 @@ const finalizeInputs = [
export const depthStackMarkupSurfaces = [
{ name: "label", tag: "Label", mode: "structured", outputs: [textTypes.text, depthStackTypes.cardLabelStyle, depthStackTypes.cardLabel], implementation: { digest: depthStackSurfaceImplementationDigests.label } },
- { name: "track", tag: "DepthStack", mode: "structured", outputs: [depthStackTypes.header, depthStackTypes.spec, depthStackTypes.cardSpec, depthStackTypes.program, compositionTypes.visualTrack], implementation: { digest: depthStackSurfaceImplementationDigests.track } },
+ { name: "track", tag: "DepthStack", mode: "structured", outputs: [
+ depthStackTypes.header, depthStackTypes.spec, depthStackTypes.cardSpec,
+ spatialTypes.fit, mediaTrackTypes.sampleLayerSpec, mediaTrackTypes.paintLayerSpec,
+ depthStackTypes.cardLabel, depthStackTypes.cardLabelStyle, textTypes.text,
+ depthStackTypes.program, compositionTypes.visualTrack,
+ ], implementation: { digest: depthStackSurfaceImplementationDigests.track } },
] as const;
diff --git a/packages/deck-track/test/deck-track.test.ts b/packages/deck-track/test/deck-track.test.ts
index 001b7166..21696a05 100644
--- a/packages/deck-track/test/deck-track.test.ts
+++ b/packages/deck-track/test/deck-track.test.ts
@@ -12,6 +12,7 @@ import {
createDepthStackCardSet,
decodeDepthStackSpec,
depthStackManifest,
+ depthStackMarkupSurfaces,
depthStackProducers,
depthStackTypes,
finalizeDepthStack,
@@ -49,7 +50,7 @@ import type {
MarkupAttributeValue,
} from "@narratage/markup";
import { artifactTypes } from "@narratage/artifact";
-import { mediaTrackManifest } from "@narratage/media-track";
+import { mediaTrackManifest, mediaTrackTypes } from "@narratage/media-track";
const space = sealProgramSpace({
durationSec: 2,
@@ -83,6 +84,27 @@ const video = (name: string) => ({
mediaType: "video/mp4",
});
+test("DepthStack Surface declares every sealed Record it may emit", () => {
+ const surface = depthStackMarkupSurfaces.find((item) => item.name === "track");
+ assert.ok(surface !== undefined);
+ const names = new Set(surface.outputs.map((type) => type.name));
+ for (const type of [
+ depthStackTypes.header,
+ depthStackTypes.spec,
+ depthStackTypes.cardSpec,
+ spatialTypes.fit,
+ mediaTrackTypes.sampleLayerSpec,
+ mediaTrackTypes.paintLayerSpec,
+ depthStackTypes.cardLabel,
+ depthStackTypes.cardLabelStyle,
+ textTypes.text,
+ depthStackTypes.program,
+ compositionTypes.visualTrack,
+ ]) {
+ assert.ok(names.has(type.name), `${type.name} output`);
+ }
+});
+
function stillMaterial(name: string): MediaLayerSet {
return {