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.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
fix: say why a Track has no value
rpone81c5be7caeea
diff --git a/packages/svml-playground/src/pipeline/preview.ts b/packages/svml-playground/src/pipeline/preview.tsindex ebc9ea87..813c1652 100644--- a/packages/svml-playground/src/pipeline/preview.ts+++ b/packages/svml-playground/src/pipeline/preview.ts@@ -373,12 +373,18 @@ export async function preview(const selection = out.state.plan.selections.find((item) => item.output === target.ref);const record = out.state.records.find((item) => item.id === selection?.record);const stored = record?.value as { kind: string; value?: unknown } | undefined;+ // Why a Track has no value is the first thing anyone asks, so say it rather+ // than letting every cause collapse into one silent absence.+ const why = stored?.kind === "inline" ? undefined+ : selection === undefined ? `${target.name}: the plan selected nothing for this output (driver status ${out.status})`+ : record === undefined ? `${target.name}: the plan selected record ${String(selection.record)} and the driver never produced it (status ${out.status})`+ : `${target.name}: the record holds a ${String(stored?.kind)} value rather than an inline one`;tracks.push({name: target.name,type: target.type,...(stored?.kind === "inline" ? { track: stored.value } : {}),unserved: out.unserved.map((item) => item.capability),- errors: out.errors,+ errors: why === undefined ? out.errors : [...out.errors, why],});}diff --git a/packages/svml-playground/src/pipeline/snapshot.ts b/packages/svml-playground/src/pipeline/snapshot.tsindex 56a4b64e..0ba38347 100644--- a/packages/svml-playground/src/pipeline/snapshot.ts+++ b/packages/svml-playground/src/pipeline/snapshot.ts@@ -284,6 +284,9 @@ export function snapshot(built: Preview, input: {note: note(built),},refused: built.refused,+ // A Producer that failed already said why. Dropping the message here left+ // every such Track reading only "something this preview could not build".+ errors: [...new Set(built.tracks.flatMap((track) => track.errors))],};}diff --git a/packages/svml-playground/src/shared.ts b/packages/svml-playground/src/shared.tsindex 3d6e1ea0..80d3c405 100644--- a/packages/svml-playground/src/shared.ts+++ b/packages/svml-playground/src/shared.ts@@ -127,6 +127,12 @@ export type PlaygroundSnapshot = {* placeholder next to a file they know exists reads as a bug otherwise.*/readonly refused: readonly { readonly output: string; readonly reason: string }[];+ /**+ * Why a Track has no value. A Producer that failed already said why, and a+ * plan that produced nothing knows which output it was; without this every+ * cause reads as the same silent absence.+ */+ readonly errors: readonly string[];};export type PlaygroundFailure = {