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
chore(protocol): keep unpublished formats at version 1
kashorincdd087711da4
diff --git a/packages/build-result-s3/src/repository.ts b/packages/build-result-s3/src/repository.tsindex c4406ae0..3a36594e 100644--- a/packages/build-result-s3/src/repository.ts+++ b/packages/build-result-s3/src/repository.ts@@ -181,7 +181,7 @@ export class S3BuildResultRepository implements BuildResultRepository {assert((await this.read(seed.id)) === undefined, `Build Result ${seed.id} already exists`);const forwards = await normalizeBuildResultForwards(this, seed.forwards ?? []);const manifest: BuildResultManifest = {- format: "hypit.build-result@2",+ format: "hypit.build-result@1",id: seed.id,...(seed.title === undefined ? {} : { title: seed.title }),source: seed.source,diff --git a/packages/build-result-s3/test/repository.test.ts b/packages/build-result-s3/test/repository.test.tsindex 00cc7744..8d6043b9 100644--- a/packages/build-result-s3/test/repository.test.ts+++ b/packages/build-result-s3/test/repository.test.ts@@ -231,7 +231,7 @@ test("S3 uses the shared Result decoder before exposing a manifest", async () =>const build = "bld_20260902T100000012Z_0000000001";const physical = `${(Number.MAX_SAFE_INTEGER - Date.parse("2026-09-02T10:00:00.012Z")).toString().padStart(16, "0")}-${build}`;client.objects.set(`${physical}/result.json`, new TextEncoder().encode(JSON.stringify({- format: "hypit.build-result@2",+ format: "hypit.build-result@1",source: { path: "main.svml" },targets: [],outputs: null,diff --git a/packages/build-result/src/decode.ts b/packages/build-result/src/decode.tsindex b4202ccd..61baaa52 100644--- a/packages/build-result/src/decode.ts+++ b/packages/build-result/src/decode.ts@@ -186,7 +186,7 @@ export function decodeBuildResultManifest(): BuildResultManifest {const id = buildId(build, "Build Result address");const item = object(value, subject);- if (item.format !== "hypit.build-result@2") throw new Error(`${subject} is not a Hypit Build Result`);+ if (item.format !== "hypit.build-result@1") throw new Error(`${subject} is not a Hypit Build Result`);const source = object(item.source, `${subject}.source`);const run = item.run === undefined ? undefined : object(item.run, `${subject}.run`);const title = optionalText(item.title, `${subject}.title`);@@ -207,7 +207,7 @@ export function decodeBuildResultManifest(}const failure = optionalString(item.failure, `${subject}.failure`);return {- format: "hypit.build-result@2",+ format: "hypit.build-result@1",id,...(title === undefined ? {} : { title }),...(note === undefined ? {} : { note }),diff --git a/packages/build-result/src/store.ts b/packages/build-result/src/store.tsindex 856000a1..aa195007 100644--- a/packages/build-result/src/store.ts+++ b/packages/build-result/src/store.ts@@ -346,7 +346,7 @@ export class FileBuildResult {const temporary = join(resolve(root), `.preparing-${seed.id}-${randomUUID()}`);await mkdir(temporary);const manifest: BuildResultManifest = {- format: "hypit.build-result@2",+ format: "hypit.build-result@1",id: seed.id,...(seed.title === undefined ? {} : { title: seed.title }),source: seed.source,diff --git a/packages/build-result/src/types.ts b/packages/build-result/src/types.tsindex f0e3d7b2..7dbc36af 100644--- a/packages/build-result/src/types.ts+++ b/packages/build-result/src/types.ts@@ -173,7 +173,7 @@ export type BuildResultOperation = {};export type BuildResultManifest = {- readonly format: "hypit.build-result@2";+ readonly format: "hypit.build-result@1";/** Injected from the Repository address; `result.json` does not repeat its containing Build id. */readonly id: string;readonly title?: string;diff --git a/packages/build-result/test/result.test.ts b/packages/build-result/test/result.test.tsindex d96a0d6f..e3302492 100644--- a/packages/build-result/test/result.test.ts+++ b/packages/build-result/test/result.test.ts@@ -180,7 +180,7 @@ test("filesystem decodes Result and writer data before exposing it", async () =>const directory = buildResultDirectory(root, malformed);await mkdir(directory, { recursive: true });await writeFile(join(directory, "result.json"), JSON.stringify({- format: "hypit.build-result@2",+ format: "hypit.build-result@1",source: { path: "main.svml" },targets: ["video"],outputs: {@@ -221,7 +221,7 @@ test("reserved-looking domain objects remain ordinary Composite data", async ()const directory = buildResultDirectory(root, id);await mkdir(join(directory, "values"), { recursive: true });await writeFile(join(directory, "result.json"), JSON.stringify({- format: "hypit.build-result@2",+ format: "hypit.build-result@1",source: { path: "main.svml" },targets: ["value"],outcome: "complete",@@ -251,7 +251,7 @@ test("describing a Composite Output reads only its manifest", async () => {const directory = buildResultDirectory(root, id);await mkdir(directory, { recursive: true });await writeFile(join(directory, "result.json"), JSON.stringify({- format: "hypit.build-result@2",+ format: "hypit.build-result@1",source: { path: "main.svml" },targets: ["take"],outcome: "complete",diff --git a/packages/cli/src/commands/environment.ts b/packages/cli/src/commands/environment.tsindex 49653130..df30adcb 100644--- a/packages/cli/src/commands/environment.ts+++ b/packages/cli/src/commands/environment.ts@@ -93,7 +93,7 @@ export async function runEnvironmentCommand(input: {: existing === undefined ? [] : [existing];const ready = reports.length === 1;write({- format: "hypit.cli-package@2",+ format: "hypit.cli-package@1",action: args.action,package: args.package,ready,@@ -119,7 +119,7 @@ export async function runEnvironmentCommand(input: {]);const diagnostics = [...(runtimeResult?.diagnostics ?? []), ...projectResult.diagnostics];const machine = {- format: "hypit.cli-doctor@3" as const,+ format: "hypit.cli-doctor@1" as const,ok: !diagnostics.some((item) => item.severity === "error"),project: projectRoot,...(profile === undefined ? {} : { profile }),@@ -158,7 +158,7 @@ export async function runEnvironmentCommand(input: {? desiredState ? "External programs stopped" : "Some external programs are still running": "External program status";write({- format: "hypit.cli-programs@2",+ format: "hypit.cli-programs@1",action: args.action,ready,programs: result.programs.slice(0, args.limit).map((item) => ({@@ -200,7 +200,7 @@ export async function runEnvironmentCommand(input: {const ok = processState.state === "running"&& external.programs.every((item) => item.state.state === "ready");write({- format: "hypit.cli-runtime-up@2",+ format: "hypit.cli-runtime-up@1",ready: ok,worker: processState.state,preparedPackages: prepared.length,@@ -223,7 +223,7 @@ export async function runEnvironmentCommand(input: {const lines = logs.text.length === 0 ? [] : logs.text.replace(/\n$/u, "").split("\n");const shown = lines.slice(-args.lines);write({- format: "hypit.cli-runtime-logs@2",+ format: "hypit.cli-runtime-logs@1",lines: shown,totalLines: lines.length,omittedLines: Math.max(0, lines.length - shown.length),@@ -238,7 +238,7 @@ export async function runEnvironmentCommand(input: {const worker = await controller.worker.down({...(args.maxWaitMs === undefined ? {} : { maxWaitMs: args.maxWaitMs }),});- write({ format: "hypit.cli-runtime-down@2", worker: worker.state },+ write({ format: "hypit.cli-runtime-down@1", worker: worker.state },"Runtime Worker is down", "success", [["Worker", worker.state]],["Managed programs were left running. Stop them explicitly with hypit programs down."]);return;@@ -266,7 +266,7 @@ export async function runEnvironmentCommand(input: {const attention = activity.builds.some((item) => item.issue !== undefined) || (active > 0 && !ready);const unavailable = external.programs.filter((item) => item.state.state !== "ready");const machine = {- format: "hypit.cli-runtime-status@2" as const,+ format: "hypit.cli-runtime-status@1" as const,ready,attention,worker: {@@ -328,7 +328,7 @@ export async function runEnvironmentCommand(input: {writable: item.writable,}));write({- format: "hypit.cli-auth-status@2",+ format: "hypit.cli-auth-status@1",endpoint: args.endpoint,credentials: view,...(credentials.length <= args.limit ? {} : { omittedCredentials: credentials.length - args.limit }),@@ -363,7 +363,7 @@ export async function runEnvironmentCommand(input: {}const stored = await credentialsControl.putCredential(item.endpoint, item.slot, secret);write({- format: "hypit.cli-auth-change@2",+ format: "hypit.cli-auth-change@1",endpoint: args.endpoint,slot: stored.slot,configured: true,@@ -373,7 +373,7 @@ export async function runEnvironmentCommand(input: {if (item === undefined) throw new Error(`Endpoint ${args.endpoint} has no matching credential`);const removed = await credentialsControl.deleteCredential(item.endpoint, item.slot);write({- format: "hypit.cli-auth-change@2",+ format: "hypit.cli-auth-change@1",endpoint: args.endpoint,slot: removed.credential.slot,configured: false,diff --git a/packages/cli/src/commands/execution.ts b/packages/cli/src/commands/execution.tsindex 787cef17..84c18ab5 100644--- a/packages/cli/src/commands/execution.ts+++ b/packages/cli/src/commands/execution.ts@@ -44,7 +44,7 @@ export async function runExecutionCommand(input: {const finished = result?.outcome !== undefined;const build = result === undefined ? null : buildStatusView({ id: result.id, result });const outcome = result?.outcome;- write({ format: "hypit.cli-status@3", build }, result === undefined+ write({ format: "hypit.cli-status@1", build }, result === undefined? "Build Result not found": outcome === "complete" ? "Build complete": outcome === "failed" ? "Build failed"@@ -73,7 +73,7 @@ export async function runExecutionCommand(input: {const resultControl = await selectedHost.openResultControl();const discarded = await resultControl.discardSubmission(args.build).finally(async () => await resultControl.close());- write({ format: "hypit.cli-result-discard@2", build: args.build, discarded }, discarded+ write({ format: "hypit.cli-result-discard@1", build: args.build, discarded }, discarded? "Incomplete Build discarded": "Incomplete Build not found", discarded ? "success" : "warning", [["Build", args.build],@@ -106,7 +106,7 @@ export async function runExecutionCommand(input: {if (args.watch && currentView === previous) return;previous = currentView;const value = {- format: "hypit.cli-activity@2" as const,+ format: "hypit.cli-activity@1" as const,at: Date.now(),worker: worker.state,builds,@@ -203,7 +203,7 @@ export async function runExecutionCommand(input: {: resultOutcome === "cancelled"? "Build cancelled": args.watch && activity === undefined ? "Build finished" : "Build active";- write({ format: "hypit.cli-status@3", build }, !found+ write({ format: "hypit.cli-status@1", build }, !found? "Build not found" : humanTitle,!found? "warning"@@ -261,18 +261,18 @@ export async function runExecutionCommand(input: {const existing = await openedResults.repository.read(args.build).finally(async () => await openedResults.close());if (existing?.outcome === undefined) {- write({ format: "hypit.cli-result-finish@2", build: args.build, found: false },+ write({ format: "hypit.cli-result-finish@1", build: args.build, found: false },"Result cannot be finished", "warning", [["Build", args.build]],["No decided Result write exists for this Build."]);io.setExitCode?.(1);return;}- write({ format: "hypit.cli-result-finish@2", build: args.build, outcome: existing.outcome },+ write({ format: "hypit.cli-result-finish@1", build: args.build, outcome: existing.outcome },"Result already finished", "info", [["Build", args.build], ["Outcome", existing.outcome]]);return;}write({- format: "hypit.cli-result-finish@2",+ format: "hypit.cli-result-finish@1",build: args.build,outcome: finished.outcome,...(finished.issue === undefined ? {} : { attention: {@@ -299,7 +299,7 @@ export async function runExecutionCommand(input: {...(finished === undefined ? {} : { result: finished }),});const machine = {- format: "hypit.cli-cancel@3" as const,+ format: "hypit.cli-cancel@1" as const,requested: active?.cancellationRequested === true,build,};diff --git a/packages/cli/src/commands/results.ts b/packages/cli/src/commands/results.tsindex 7c3acc34..14bd728d 100644--- a/packages/cli/src/commands/results.ts+++ b/packages/cli/src/commands/results.ts@@ -46,7 +46,7 @@ export async function runProjectResultCommand(input: {outputCount: Object.keys(manifest.outputs).length,}));write({- format: "hypit.cli-builds@3",+ format: "hypit.cli-builds@1",builds,...(page.next === undefined ? {} : { next: page.next }),}, "Build results", "info", [["Builds", String(builds.length)]],@@ -75,7 +75,7 @@ export async function runProjectResultCommand(input: {output: await outputView(repository, manifest, args.outputName),})));write({- format: "hypit.cli-history@4",+ format: "hypit.cli-history@1",output: args.outputName,...(source === undefined ? {} : { source: projectPath(source, projectRoot) }),entries,@@ -107,7 +107,7 @@ export async function runProjectResultCommand(input: {const visibleOutputs = args.presentation.verbose ? build.outputs : focusedOutputs;const outputCount = build.outputs.length + (build.omittedOutputs ?? 0);const hiddenOutputCount = args.outputName === undefined ? outputCount - focusedOutputs.length : 0;- write({ format: "hypit.cli-inspect@4", build }, "Build Result",+ write({ format: "hypit.cli-inspect@1", build }, "Build Result",manifest.outcome === "failed" ? "error": manifest.outcome === "cancelled" ? "warning": manifest.outcome === "complete" ? "success" : "info", [@@ -149,7 +149,7 @@ export async function runProjectResultCommand(input: {: args.highlightedOutputs.length === 0 ? {} : { highlightedOutputs: args.highlightedOutputs }),});const presentation = {- format: "hypit.cli-result-edit@3" as const,+ format: "hypit.cli-result-edit@1" as const,build: manifest.id,title: manifest.title ?? null,note: manifest.note ?? null,@@ -169,7 +169,7 @@ export async function runProjectResultCommand(input: {const exported = await exportBuildResultOutput(repository, args.build, args.outputName, args.destination);const machine = {- format: "hypit.cli-get@4" as const,+ format: "hypit.cli-get@1" as const,build: exported.build,output: exported.output,type: cliTypeName(exported.type),diff --git a/packages/cli/src/machine-view.ts b/packages/cli/src/machine-view.tsindex e13da247..35b06d95 100644--- a/packages/cli/src/machine-view.ts+++ b/packages/cli/src/machine-view.ts@@ -5,24 +5,24 @@ type AttentionView = { readonly message: string; readonly action?: string };export type OperationalMachineView =| { readonly format: "hypit.cli-runtime-init@1"; readonly profile: string; readonly project: string; readonly selected: true }- | { readonly format: "hypit.cli-runtime-selection@2"; readonly selected: boolean; readonly removed?: boolean; readonly profile?: string; readonly project?: string }+ | { readonly format: "hypit.cli-runtime-selection@1"; readonly selected: boolean; readonly removed?: boolean; readonly profile?: string; readonly project?: string }| { readonly format: "hypit.cli-paths@1"; readonly project: string; readonly projectState: string; readonly profile?: string; readonly runtimeData?: string; readonly hostState: string; readonly machinePackages: string; readonly distribution?: string }- | { readonly format: "hypit.cli-package@2"; readonly action: "install" | "status"; readonly package: string; readonly ready: boolean }- | { readonly format: "hypit.cli-programs@2"; readonly action: "up" | "down" | "status"; readonly ready: boolean; readonly programs: readonly ProgramStateView[]; readonly omittedPrograms?: number }- | { readonly format: "hypit.cli-runtime-up@2"; readonly ready: boolean; readonly worker: string; readonly preparedPackages: number; readonly programs: { readonly total: number; readonly ready: number } }- | { readonly format: "hypit.cli-runtime-logs@2"; readonly lines: readonly string[]; readonly totalLines: number; readonly omittedLines: number; readonly path?: string }- | { readonly format: "hypit.cli-runtime-down@2"; readonly worker: string }- | { readonly format: "hypit.cli-runtime-status@2"; readonly ready: boolean; readonly attention: boolean; readonly worker: { readonly state: string; readonly configuration?: string }; readonly builds: Readonly<Record<string, number>>; readonly programs: { readonly total: number; readonly ready: number; readonly unavailable: readonly ProgramStateView[] }; readonly capacity: { readonly active: number } }- | { readonly format: "hypit.cli-auth-status@2"; readonly endpoint: string; readonly credentials: readonly { readonly endpoint: string; readonly slot: string; readonly label: string; readonly kind: string; readonly configured: boolean; readonly writable: boolean }[]; readonly omittedCredentials?: number }- | { readonly format: "hypit.cli-auth-change@2"; readonly endpoint: string; readonly slot: string; readonly configured: boolean; readonly changed?: boolean }- | { readonly format: "hypit.cli-builds@3"; readonly builds: readonly { readonly id: string; readonly createdAt: string; readonly title?: string; readonly outcome: string; readonly run?: string; readonly targetCount: number; readonly targets?: readonly string[]; readonly omittedTargets?: number; readonly outputCount: number }[]; readonly next?: string }- | { readonly format: "hypit.cli-history@4"; readonly output: string; readonly source?: string; readonly entries: readonly { readonly build: string; readonly title?: string; readonly createdAt: string; readonly outcome: string; readonly output: CliOutputView }[]; readonly next?: string }- | { readonly format: "hypit.cli-inspect@4"; readonly build: CliBuildResultView }- | { readonly format: "hypit.cli-result-edit@3"; readonly build: string; readonly title: string | null; readonly note: string | null; readonly highlightedOutputCount: number; readonly highlightedOutputs: readonly string[]; readonly omittedHighlightedOutputs?: number }- | { readonly format: "hypit.cli-get@4"; readonly build: string; readonly output: string; readonly type: string; readonly kind: "scalar" | "resource" | "composite"; readonly path: string }- | { readonly format: "hypit.cli-status@3"; readonly build: CliBuildStatusView | null }- | { readonly format: "hypit.cli-activity@2"; readonly at: number; readonly worker: string; readonly builds: readonly { readonly id: string; readonly work: CliBuildStatusView["work"]; readonly outcome?: string; readonly attention?: AttentionView }[]; readonly omittedBuilds?: number; readonly capacity: readonly import("@hypit/runtime").CapacityReservation[] }- | { readonly format: "hypit.cli-result-discard@2"; readonly build: string; readonly discarded: boolean }- | { readonly format: "hypit.cli-result-finish@2"; readonly build: string; readonly found?: false; readonly outcome?: string; readonly attention?: AttentionView }- | { readonly format: "hypit.cli-cancel@3"; readonly requested: boolean; readonly build: CliBuildStatusView | null }- | { readonly format: "hypit.cli-build@3"; readonly build: CliBuildStatusView };+ | { readonly format: "hypit.cli-package@1"; readonly action: "install" | "status"; readonly package: string; readonly ready: boolean }+ | { readonly format: "hypit.cli-programs@1"; readonly action: "up" | "down" | "status"; readonly ready: boolean; readonly programs: readonly ProgramStateView[]; readonly omittedPrograms?: number }+ | { readonly format: "hypit.cli-runtime-up@1"; readonly ready: boolean; readonly worker: string; readonly preparedPackages: number; readonly programs: { readonly total: number; readonly ready: number } }+ | { readonly format: "hypit.cli-runtime-logs@1"; readonly lines: readonly string[]; readonly totalLines: number; readonly omittedLines: number; readonly path?: string }+ | { readonly format: "hypit.cli-runtime-down@1"; readonly worker: string }+ | { readonly format: "hypit.cli-runtime-status@1"; readonly ready: boolean; readonly attention: boolean; readonly worker: { readonly state: string; readonly configuration?: string }; readonly builds: Readonly<Record<string, number>>; readonly programs: { readonly total: number; readonly ready: number; readonly unavailable: readonly ProgramStateView[] }; readonly capacity: { readonly active: number } }+ | { readonly format: "hypit.cli-auth-status@1"; readonly endpoint: string; readonly credentials: readonly { readonly endpoint: string; readonly slot: string; readonly label: string; readonly kind: string; readonly configured: boolean; readonly writable: boolean }[]; readonly omittedCredentials?: number }+ | { readonly format: "hypit.cli-auth-change@1"; readonly endpoint: string; readonly slot: string; readonly configured: boolean; readonly changed?: boolean }+ | { readonly format: "hypit.cli-builds@1"; readonly builds: readonly { readonly id: string; readonly createdAt: string; readonly title?: string; readonly outcome: string; readonly run?: string; readonly targetCount: number; readonly targets?: readonly string[]; readonly omittedTargets?: number; readonly outputCount: number }[]; readonly next?: string }+ | { readonly format: "hypit.cli-history@1"; readonly output: string; readonly source?: string; readonly entries: readonly { readonly build: string; readonly title?: string; readonly createdAt: string; readonly outcome: string; readonly output: CliOutputView }[]; readonly next?: string }+ | { readonly format: "hypit.cli-inspect@1"; readonly build: CliBuildResultView }+ | { readonly format: "hypit.cli-result-edit@1"; readonly build: string; readonly title: string | null; readonly note: string | null; readonly highlightedOutputCount: number; readonly highlightedOutputs: readonly string[]; readonly omittedHighlightedOutputs?: number }+ | { readonly format: "hypit.cli-get@1"; readonly build: string; readonly output: string; readonly type: string; readonly kind: "scalar" | "resource" | "composite"; readonly path: string }+ | { readonly format: "hypit.cli-status@1"; readonly build: CliBuildStatusView | null }+ | { readonly format: "hypit.cli-activity@1"; readonly at: number; readonly worker: string; readonly builds: readonly { readonly id: string; readonly work: CliBuildStatusView["work"]; readonly outcome?: string; readonly attention?: AttentionView }[]; readonly omittedBuilds?: number; readonly capacity: readonly import("@hypit/runtime").CapacityReservation[] }+ | { readonly format: "hypit.cli-result-discard@1"; readonly build: string; readonly discarded: boolean }+ | { readonly format: "hypit.cli-result-finish@1"; readonly build: string; readonly found?: false; readonly outcome?: string; readonly attention?: AttentionView }+ | { readonly format: "hypit.cli-cancel@1"; readonly requested: boolean; readonly build: CliBuildStatusView | null }+ | { readonly format: "hypit.cli-build@1"; readonly build: CliBuildStatusView };diff --git a/packages/cli/src/main.ts b/packages/cli/src/main.tsindex b88a5aad..3e6f6d38 100644--- a/packages/cli/src/main.ts+++ b/packages/cli/src/main.ts@@ -152,7 +152,7 @@ export async function runCli(const profile = resolve(args.profile);const selected = await selectRuntimeProfile(await commandProjectRoot(), profile);writeOperational({- format: "hypit.cli-runtime-selection@2",+ format: "hypit.cli-runtime-selection@1",selected: true,profile: selected.profile,project: selected.projectRoot,@@ -165,7 +165,7 @@ export async function runCli(if (args.command === "runtime" && args.action === "unset") {const cleared = await clearRuntimeProfile(await commandProjectRoot());writeOperational({- format: "hypit.cli-runtime-selection@2",+ format: "hypit.cli-runtime-selection@1",selected: false,removed: cleared !== undefined,...(cleared === undefined ? {} : { profile: cleared.profile, project: cleared.projectRoot }),@@ -279,7 +279,7 @@ export async function runCli(packageContributions,});const machine = {- format: "hypit.cli-check@2" as const,+ format: "hypit.cli-check@1" as const,sourceKind: "run" as const,ok: true,run: projectPath(loaded.source, effectiveWorkspaceRoot),@@ -312,7 +312,7 @@ export async function runCli(const values = authorFacing.filter((item) => item.ref.kind !== "logical-output");const modules = result.program.closure.modules.map((item) => `${item.manifest.name}@${item.manifest.version}`);const machine = {- format: "hypit.cli-check@2" as const,+ format: "hypit.cli-check@1" as const,sourceKind: "author" as const,ok: true,source: projectPath(workspace.entry.name, effectiveWorkspaceRoot),@@ -428,7 +428,7 @@ export async function runCli(const acceptedView = buildStatusView({ id: built.id, runtime: built.view });const targets = built.view.targets.slice(0, args.limit);writeOperational({- format: "hypit.cli-build@3",+ format: "hypit.cli-build@1",build: args.title === undefined ? acceptedView : { ...acceptedView, title: args.title },}, "Build submitted", "success", [["Build", built.id],@@ -487,7 +487,7 @@ export async function runCli(operationLimit: args.limit,});const machine = {- format: "hypit.cli-build@3" as const,+ format: "hypit.cli-build@1" as const,build: args.title === undefined || buildView.title !== undefined? buildView: { ...buildView, title: args.title },@@ -613,7 +613,7 @@ export async function runCli(writeCliOutput(io, args.presentation, {kind: "plan",machine: {- format: "hypit.cli-plan@3",+ format: "hypit.cli-plan@1",ok: (preflight?.ok ?? true) && unresolvedRequestCount === 0&& unsupportedRequestCount === 0 && requestIssueCount === 0,run: projectPath(loaded.path, effectiveWorkspaceRoot),diff --git a/packages/cli/src/output.ts b/packages/cli/src/output.tsindex a0167ff3..bd7b6570 100644--- a/packages/cli/src/output.ts+++ b/packages/cli/src/output.ts@@ -39,7 +39,7 @@ export type CliDiagnostic = {};export type DoctorOutput = {- readonly format: "hypit.cli-doctor@3";+ readonly format: "hypit.cli-doctor@1";readonly ok: boolean;readonly project: string;readonly profile?: string;@@ -49,7 +49,7 @@ export type DoctorOutput = {};export type AuthorCheckOutput = {- readonly format: "hypit.cli-check@2";+ readonly format: "hypit.cli-check@1";readonly sourceKind: "author";readonly ok: true;readonly source: string;@@ -70,7 +70,7 @@ export type AuthorCheckOutput = {};export type RunCheckOutput = {- readonly format: "hypit.cli-check@2";+ readonly format: "hypit.cli-check@1";readonly sourceKind: "run";readonly ok: true;readonly run: string;@@ -112,7 +112,7 @@ export type PlanProvider = {};export type PlanOutput = {- readonly format: "hypit.cli-plan@3";+ readonly format: "hypit.cli-plan@1";readonly ok: boolean;readonly run: string;readonly targetCount: number;diff --git a/packages/cli/test/build-results.test.ts b/packages/cli/test/build-results.test.tsindex 140606e3..90f85882 100644--- a/packages/cli/test/build-results.test.ts+++ b/packages/cli/test/build-results.test.ts@@ -126,7 +126,7 @@ test("builds, history, inspect and get read project Build Results without openin"get", "bld_20260902T110000000Z_0000000001", "--output", "stage.value", "--to", destination,], root);assert.deepEqual(exported, {- format: "hypit.cli-get@4",+ format: "hypit.cli-get@1",build: "bld_20260902T110000000Z_0000000001",output: "stage.value",type: "example.result@1/Value",@@ -313,7 +313,7 @@ test("result edit changes only the exact project Result presentation without opereadonly highlightedOutputs: readonly string[];};assert.deepEqual(edited, {- format: "hypit.cli-result-edit@3",+ format: "hypit.cli-result-edit@1",build: "bld_20260902T110000000Z_0000000001",title: "Episode 12 B-roll",note: "Use the close-up for the opening beat.",diff --git a/packages/cli/test/control-commands.test.ts b/packages/cli/test/control-commands.test.tsindex dd4e87ee..362a4ea4 100644--- a/packages/cli/test/control-commands.test.ts+++ b/packages/cli/test/control-commands.test.ts@@ -47,7 +47,7 @@ test("activity opens Runtime control without constructing execution Providers",readonly at: number;readonly builds: readonly unknown[];};- assert.equal(result.format, "hypit.cli-activity@2");+ assert.equal(result.format, "hypit.cli-activity@1");assert.equal(typeof result.at, "number");assert.deepEqual(result.builds, []);});@@ -93,7 +93,7 @@ test("status --watch follows active execution, then reads its finished Result",repository: {async read() {return {- format: "hypit.build-result@2",+ format: "hypit.build-result@1",id: "build-watch",source: { path: "main.svml" },targets: [],@@ -136,7 +136,7 @@ test("status reads a finished project Result without a Runtime", async () => {async read(build: string) {calls.push(`result.read:${build}`);return {- format: "hypit.build-result@2",+ format: "hypit.build-result@1",id: build,source: { path: "main.svml" },targets: [],@@ -170,7 +170,7 @@ test("finished status defaults to the Result outcome without repeating internalrepository: {async read() {return {- format: "hypit.build-result@2",+ format: "hypit.build-result@1",id: "build-finished",source: { path: "main.svml" },targets: ["final.video"],@@ -317,7 +317,7 @@ test("result finish writes only an already-decided Result that needs attention",assert.equal(finishes, 1);assert.deepEqual(JSON.parse(output), {- format: "hypit.cli-result-finish@2",+ format: "hypit.cli-result-finish@1",build: "build-blocked",outcome: "complete",});@@ -346,7 +346,7 @@ test("result discard invokes only the exact one-shot Result control", async () =assert.deepEqual(calls, ["discard:build-submitting", "result-control.close"]);assert.deepEqual(JSON.parse(output), {- format: "hypit.cli-result-discard@2", build: "build-submitting", discarded: true,+ format: "hypit.cli-result-discard@1", build: "build-submitting", discarded: true,});});@@ -408,7 +408,7 @@ test("doctor diagnoses project Results without requiring a Runtime Profile", asy}, distribution);assert.deepEqual(calls, [`results:${projectRoot}`]);assert.deepEqual(JSON.parse(output), {- format: "hypit.cli-doctor@3",+ format: "hypit.cli-doctor@1",ok: true,project: projectRoot,diagnosticCount: 0,@@ -480,7 +480,7 @@ test("runtime logs returns only the requested tail and hides its path by default], { write: (text) => { output += text; } }, distribution);assert.deepEqual(JSON.parse(output), {- format: "hypit.cli-runtime-logs@2",+ format: "hypit.cli-runtime-logs@1",lines: ["two", "three"],totalLines: 3,omittedLines: 1,@@ -541,7 +541,7 @@ test("cancelling a completed Build reports that no cancellation was requested",repository: {async read() {return {- format: "hypit.build-result@2",+ format: "hypit.build-result@1",id: "build-complete",source: { path: "main.svml" },targets: [],@@ -561,7 +561,7 @@ test("cancelling a completed Build reports that no cancellation was requested",], { write: (text) => { output += text; } }, distribution);assert.deepEqual(JSON.parse(output), {- format: "hypit.cli-cancel@3",+ format: "hypit.cli-cancel@1",requested: false,build: {id: "build-complete",diff --git a/packages/cli/test/output.test.ts b/packages/cli/test/output.test.tsindex e4b1b5aa..7d3263d5 100644--- a/packages/cli/test/output.test.ts+++ b/packages/cli/test/output.test.ts@@ -18,7 +18,7 @@ test("author check keeps the default summary compact and reserves Output types fconst presentation = {kind: "check-author",machine: {- format: "hypit.cli-check@2",+ format: "hypit.cli-check@1",sourceKind: "author",ok: true,source: "/project/main.svml",@@ -41,7 +41,7 @@ test("author check keeps the default summary compact and reserves Output types ftest("JSON mode writes exactly the stable command view", () => {const machine = {- format: "hypit.cli-doctor@3" as const,+ format: "hypit.cli-doctor@1" as const,ok: false,project: "/project",profile: "/project/hypit.runtime.ts",@@ -57,7 +57,7 @@ test("plan presents useful choices and readable requests without default graph iconst presentation = {kind: "plan",machine: {- format: "hypit.cli-plan@3",+ format: "hypit.cli-plan@1",ok: true,run: "/project/build.svrun",targetCount: 1,@@ -91,7 +91,7 @@ test("plan presents useful choices and readable requests without default graph itest("plan names the Provider and price page behind each request, and points at --runtime when it cannot", () => {const base = {- format: "hypit.cli-plan@3",+ format: "hypit.cli-plan@1",ok: true,run: "/project/build.svrun",targetCount: 1,@@ -195,7 +195,7 @@ test("run check treats historical reuse as a normal summary", () => {const output = capture(human, {kind: "check-run",machine: {- format: "hypit.cli-check@2",+ format: "hypit.cli-check@1",sourceKind: "run",ok: true,run: "/project/build.svrun",diff --git a/packages/core/src/reducer.ts b/packages/core/src/reducer.tsindex 0182d410..92791297 100644--- a/packages/core/src/reducer.ts+++ b/packages/core/src/reducer.ts@@ -290,11 +290,11 @@ export function defineBuild(invariant(!targets.has(target.output), "DUPLICATE_BUILD_TARGET", `${target.output} is targeted twice`, target.output);targets.add(target.output);}- return { format: "hypit.build-definition@2", ...input };+ return { format: "hypit.build-definition@1", ...input };}function initialBuildView(definition: BuildDefinition): BuildState {- invariant(definition.format === "hypit.build-definition@2", "UNSUPPORTED_BUILD_DEFINITION", definition.format);+ invariant(definition.format === "hypit.build-definition@1", "UNSUPPORTED_BUILD_DEFINITION", definition.format);verifyBuildPlan(definition.program, definition.initialRecords, definition.plan);return {format: "hypit.build@1",diff --git a/packages/protocol/src/build.ts b/packages/protocol/src/build.tsindex b6a8eb6f..f3f23461 100644--- a/packages/protocol/src/build.ts+++ b/packages/protocol/src/build.ts@@ -213,7 +213,7 @@ export type BuildDiagnostic = {/** Immutable finite program selected by one Author Graph plus one Run Graph. */export type BuildDefinition = {- readonly format: "hypit.build-definition@2";+ readonly format: "hypit.build-definition@1";readonly program: LinkedProgram;/** Selected zero-input values. Candidate identity has already served its planning purpose. */readonly initialRecords: readonly TypedRecord[];diff --git a/packages/studio/test/build-library.test.ts b/packages/studio/test/build-library.test.tsindex 423aff8b..8a38976e 100644--- a/packages/studio/test/build-library.test.ts+++ b/packages/studio/test/build-library.test.ts@@ -30,7 +30,7 @@ test("Studio library joins this environment's Builds with project Build Result fconst relevant = activeBuild("bld_20260902T130000000Z_0000000001", "/project");const unrelated = activeBuild("bld_20260902T130000001Z_0000000001", "/another-project");const manifests = [relevant, unrelated].map((entry) => ({- format: "hypit.build-result@2" as const,+ format: "hypit.build-result@1" as const,id: entry.id,source: entry.source!,...(entry.run === undefined ? {} : { run: entry.run }),@@ -120,7 +120,7 @@ test("Studio opens project Build Results without a Runtime or ResourceStore", asawait mkdir(join(directory, "files"), { recursive: true });await writeFile(join(directory, "files", "final.mp4"), bytes);await writeFile(join(directory, "result.json"), `${JSON.stringify({- format: "hypit.build-result@2",+ format: "hypit.build-result@1",title: "First cut",source: { path: join(root, "main.svml") },run: { path: join(root, "build.svrun") },diff --git a/packages/video-cli/test/cli.test.ts b/packages/video-cli/test/cli.test.tsindex ffd8a086..c7a38afb 100644--- a/packages/video-cli/test/cli.test.ts+++ b/packages/video-cli/test/cli.test.ts@@ -56,7 +56,7 @@ test("provider-free example plans from installed Source packages", async () => {readonly steps: number;readonly targets: readonly string[];};- assert.equal(plan.format, "hypit.cli-plan@3");+ assert.equal(plan.format, "hypit.cli-plan@1");assert.equal(plan.steps > 0, true);assert.equal(plan.targets.length, 1);});