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: repair CI runtime and pinned run checks
rpone07110781ddd6
diff --git a/.agents/skills/hypit/SKILL.md b/.agents/skills/hypit/SKILL.mdindex 3164f0e4..4389eb98 100644--- a/.agents/skills/hypit/SKILL.md+++ b/.agents/skills/hypit/SKILL.md@@ -64,6 +64,9 @@ Before Source is accepted, every route must complete persisted vocabulary inspecdirectory, and`validate_script_cues` (maximum four visible words per Cue). `preview_check` and the route's finalcheck repeat these gates even if route-state claims they were completed.+When a Run contains accepted `build-record` pins, pass its Runtime Profile to+`validate_local_author_packages`, `preview_check`, `layout_check` and the final check so the archive+can resolve those Records before any graph or layout result is trusted.Agent-boundary constraint: do not read or rely on the memory of Codex, Claude Code, or any othercoding agent.diff --git a/.agents/skills/hypit/references/environment.md b/.agents/skills/hypit/references/environment.mdindex 738590f1..03be17eb 100644--- a/.agents/skills/hypit/references/environment.md+++ b/.agents/skills/hypit/references/environment.md@@ -52,12 +52,24 @@ Then use the checkout entrypoints directly for the rest of the route:```textnode <checkout>/bin/hypit.mjs paths --jsonnode <checkout>/packages/reference-video-tools/bin/reference-video-tools.mjs <subcommand> ...+node <checkout>/bin/hypit-studio.mjs --run <run> [--runtime <hypit.runtime.json>]+node <checkout>/bin/hypit-preview-check.mjs <run> [<hypit.runtime.json>]```-In every reference that abbreviates these as `hypit` and `hypit-reference-video-tools`, interpret-them as the selected launchers above. Do not globally link the checkout, use `npx hypit`, or install-dependencies into an author project. Run reference-video-tool commands that share reference state-from the same working directory, even though their launcher lives in the checkout.+In every reference that abbreviates these as `hypit`, `hypit-reference-video-tools`,+`hypit-studio` or `hypit-preview-check`, interpret them as the selected launchers above:++| Abbreviation | Contributor checkout launcher |+|---|---|+| `hypit` | `node <checkout>/bin/hypit.mjs` |+| `hypit-reference-video-tools` | `node <checkout>/packages/reference-video-tools/bin/reference-video-tools.mjs` |+| `hypit-studio` | `node <checkout>/bin/hypit-studio.mjs` |+| `hypit-preview-check` | `node <checkout>/bin/hypit-preview-check.mjs` |++Do not interpret `hypit-studio` as a `studio` subcommand of `hypit`: Studio is a separate entrypoint.+Do not globally link the checkout, use `npx hypit`, or install dependencies into an author project.+Run reference-video-tool commands that share reference state from the same working directory, even+though their launcher lives in the checkout.When a reference names `<skill-root>`, substitute the installed Hypit skill directory (the directorycontaining `SKILL.md` and `scripts/`); it is not relative to the author's project or checkout.diff --git a/.agents/skills/hypit/references/layout-checks.md b/.agents/skills/hypit/references/layout-checks.mdindex 92815519..75752bbf 100644--- a/.agents/skills/hypit/references/layout-checks.md+++ b/.agents/skills/hypit/references/layout-checks.md@@ -3,9 +3,13 @@Run this after `preview_check` whenever Source, SVS, runtime, fonts or a package can affect layout:```bash-hypit-reference-video-tools layout_check --run <build.svrun>+hypit-reference-video-tools layout_check --run <build.svrun> [--runtime <hypit.runtime.json>]```+Pass the project's Runtime Profile when the Run contains `build-record` pins. The checker uses it+read-only to resolve those accepted Records; without it a pinned Run can fail before any layout is+measured.+The command does not render media, call a visual observer or invoke a paid Provider. It first realizesthe same preview-mock Run and Producer-generated Composition that the later visual render reuses, thenwrites atomic state to@@ -30,7 +34,7 @@ real problem or accept the intentional geometry:```bashhypit-reference-video-tools layout_accept --run <build.svrun> \--finding <id> --reason '<why this measured relationship is correct here>'-hypit-reference-video-tools layout_check --run <build.svrun>+hypit-reference-video-tools layout_check --run <build.svrun> [--runtime <hypit.runtime.json>]```Several candidates from the same report can be accepted atomically with a JSON array (or an objectdiff --git a/.agents/skills/hypit/references/local-author-package.md b/.agents/skills/hypit/references/local-author-package.mdindex 4fd1ce26..b36548fb 100644--- a/.agents/skills/hypit/references/local-author-package.md+++ b/.agents/skills/hypit/references/local-author-package.md@@ -284,9 +284,13 @@ is expensive to read.Before Source can be considered authored, run:```bash-hypit-reference-video-tools validate_local_author_packages --run <path/to/build.svrun>+hypit-reference-video-tools validate_local_author_packages --run <path/to/build.svrun> [--runtime <hypit.runtime.json>]```+When the Run contains `build-record` pins, pass the same Runtime Profile used by the Build. The+validator opens that profile read-only so it can resolve accepted Records while compiling the Run;+otherwise a valid project package may be reported as imported but unused.+Every project-owned author package under `<project>/packages/` must expose a non-empty Manifest, at least oneMarkup Surface and at least one Producer. Its Surface decoder must expand to a real Graph Fragment withoperations and exports, and every Fragment operation Producer must belong to the package's own Module.diff --git a/.agents/skills/hypit/references/preview.md b/.agents/skills/hypit/references/preview.mdindex aeb162ee..3bc01d0a 100644--- a/.agents/skills/hypit/references/preview.md+++ b/.agents/skills/hypit/references/preview.md@@ -130,6 +130,9 @@ cd /path/to/projecthypit-studio --run .hypit/preview/<digest>/preview.svrun --runtime hypit.runtime.json &```+`hypit-studio` is the standalone Studio launcher (`node <checkout>/bin/hypit-studio.mjs` in a+contributor checkout), not a `studio` subcommand of `hypit`.+If another Studio process is already using a different Run or startup parameters, stop that processbefore launching this command; otherwise reuse the existing process and let its Source watcher reload.diff --git a/.agents/skills/hypit/references/reconstruction/route.md b/.agents/skills/hypit/references/reconstruction/route.mdindex f8f0cd07..c15c2038 100644--- a/.agents/skills/hypit/references/reconstruction/route.md+++ b/.agents/skills/hypit/references/reconstruction/route.md@@ -31,7 +31,7 @@ as a generation:```svml<copy:Value id="meme-look">A screenshot of a vertical social-media post…</copy:Value>-<gpt:Image id="meme-shot" prompt={meme-look} aspect-ratio="4:5" resolution="2K"/>+<gpt:Image id="meme-shot" prompt={meme-look} aspect-ratio="9:16" resolution="2K"/>```Writing `<media:Image src="./assets/meme.png"/>` instead spends money this route does not spend, anddiff --git a/.agents/skills/hypit/references/runtime.md b/.agents/skills/hypit/references/runtime.mdindex 64b5f7ba..ba5e5c37 100644--- a/.agents/skills/hypit/references/runtime.md+++ b/.agents/skills/hypit/references/runtime.md@@ -43,6 +43,9 @@ lanes or the lane numbers are a ceiling nothing reaches. Name the lane by the exSource reaches — `seedance-2-mini` and `gpt-image-2` above — since a lane key that matches nocapability is silently inert. Read the Provider's README for the lane names it admits.+Provider-specific input limits are also part of preflight. For the KIE GPT Image 2 route, do not+submit `4:3`, `3:4` or `4:5`; the route rejects those aspect ratios before upload or paid submission.+The local Providers stay small: `media`, `whisperx` and `hyperframes` are bounded by this machine'scores rather than by a remote queue, and raising them buys contention.diff --git a/packages/gpt-image/README.md b/packages/gpt-image/README.mdindex d64fe94e..a2fee920 100644--- a/packages/gpt-image/README.md+++ b/packages/gpt-image/README.md@@ -8,6 +8,10 @@ then finalized into the only `GenerationRequest` a Provider can receive. The pacsemantics but no API key, Provider selection, queue or network code. `@hypit/provider-kie` isone optional Runtime implementation.+Provider limits are checked by the Provider before any paid operation. In particular, KIE's GPT+Image 2 endpoints reject `4:3`, `3:4` and `4:5`; those values remain in this model contract because+the model Surface is Provider-neutral, but a KIE Runtime must use one of its accepted ratios.+The one physical package exposes two independently importable logical modules:- `@hypit/gpt-image@1`: the raw exact model;diff --git a/packages/media-execution/src/execute.ts b/packages/media-execution/src/execute.tsindex 22a4fca3..674044ba 100644--- a/packages/media-execution/src/execute.ts+++ b/packages/media-execution/src/execute.ts@@ -462,7 +462,8 @@ function mockColor(value: string): [number, number, number] {// outline survives both still-image and video materialization, so an agent can distinguish mock// media from authored assets at a glance.const MOCK_BORDER_COLOR = "#d946ef";-const MOCK_BORDER_WIDTH = 4;+// The border occupies pixels inside the mock bounds; it never expands or clips the media.+const MOCK_BORDER_WIDTH = 8;function crc32(bytes: Uint8Array): number {let crc = 0xFFFFFFFF;diff --git a/packages/provider-kie/README.md b/packages/provider-kie/README.mdindex 1d4c6dd5..54bdaed5 100644--- a/packages/provider-kie/README.md+++ b/packages/provider-kie/README.md@@ -28,6 +28,10 @@ routes rather than extra Capabilities.| `@hypit/seedream` | `seedream-5-lite` | `seedream/5-lite-{text,image}-to-image` || `@hypit/background-removal` | `remove-background` | `recraft/remove-background` |+KIE's GPT Image 2 endpoints do not accept `4:3`, `3:4` or `4:5`, even though those values are part+of the model package's general vocabulary. The KIE route rejects those combinations before upload+or paid submission; use `auto`, `1:1`, `3:2`, `2:3`, `16:9`, `9:16` or `21:9` for this Provider.+There is deliberately no Grok image capability and no MiMo capability in this release. Seedream's`nsfwCheck` is explicit author request content; KIE cannot silently enable or disable it. Acustomer-specific “spicy” treatment belongs in a Recipe that selects and parameterizes exact modeldiff --git a/packages/provider-kie/src/provider.ts b/packages/provider-kie/src/provider.tsindex 443d496f..a6f6b663 100644--- a/packages/provider-kie/src/provider.ts+++ b/packages/provider-kie/src/provider.ts@@ -11,7 +11,9 @@ import type {BlobRef,CanonicalValue,Digest,+ Need,} from "@hypit/protocol";+import type { GenerationRequest } from "@hypit/generation";import {defineEndpointPackage,wakeAfter,@@ -22,6 +24,7 @@ import type { ArtifactStore, CredentialRef } from "@hypit/runtime";import {kieRouteForCapability,kieRoutes,+ supportsKieGptImageRequest,verifyKieRoutes,} from "./routes.js";import type { KieTaskRequest } from "./routes.js";@@ -589,6 +592,9 @@ export function createKieProvider(config: CreateKieProviderOptions) {: { maxConcurrency: laneConcurrency[route.capability.name] }),lifecycle: "asynchronous" as const,endpoint: providerEndpoint,+ ...(route.capability.module.name === "@hypit/gpt-image" ? {+ supports: (need: Need) => supportsKieGptImageRequest(need.constraints as unknown as GenerationRequest),+ } : {}),})),});}diff --git a/packages/provider-kie/src/routes.ts b/packages/provider-kie/src/routes.tsindex 11417d9e..c132a129 100644--- a/packages/provider-kie/src/routes.ts+++ b/packages/provider-kie/src/routes.ts@@ -38,6 +38,24 @@ function capabilityKey(ref: CapabilityRef): string {return `${ref.module.name}@${ref.module.version}#${ref.name}`;}+export function supportsKieGptImageRequest(request: GenerationRequest): boolean {+ if (request.ports.aspectRatio === undefined) return true;+ const ratio = request.ports.aspectRatio[0];+ // KIE's GPT Image 2 endpoints reject these ratios even though the model+ // vocabulary advertises them. Refuse before upload or paid submission.+ if (ratio === "4:3" || ratio === "3:4" || ratio === "4:5") {+ return false;+ }+ return true;+}++function validateKieGptImageRequest(request: GenerationRequest): void {+ if (!supportsKieGptImageRequest(request)) {+ const ratio = request.ports.aspectRatio?.[0];+ throw new Error(`KIE GPT Image 2 does not accept aspect ratio ${String(ratio)}; use auto, 1:1, 3:2, 2:3, 16:9, 9:16 or 21:9`);+ }+}+const kieGenerationMappings = kieModelCatalog.map((mapping) => {if (mapping.result === "audio") {throw new Error(`KIE route ${mapping.capability.name} declares unsupported audio output`);@@ -51,11 +69,11 @@ const generationRoutes: readonly KieRoute[] = kieGenerationMappings.map((mappingreturns: mapping.result === "image" ? generationTypes.imageSet : generationTypes.videoSet,media: mapping.result,maxResults: mapping.result === "image" ? 16 : 8,- compile: async (constraints, resolve) => await compileWireRequest(- mapping,- constraints as unknown as GenerationRequest,- resolve,- ),+ compile: async (constraints, resolve) => {+ const request = constraints as unknown as GenerationRequest;+ if (mapping.capability.module.name === "@hypit/gpt-image") validateKieGptImageRequest(request);+ return await compileWireRequest(mapping, request, resolve);+ },packageResult: (artifacts) => ({kind: "inline",value: canonicalize(mapping.result === "image"diff --git a/packages/reference-video-tools/src/authoring.ts b/packages/reference-video-tools/src/authoring.tsindex 92c002db..9561cc9a 100644--- a/packages/reference-video-tools/src/authoring.ts+++ b/packages/reference-video-tools/src/authoring.ts@@ -560,6 +560,7 @@ export type RealizedAuthoringPreview = {*/export async function realizeAuthoringPreview(input: {readonly run: string;+ readonly runtime?: string;readonly package_root?: string;}): Promise<RealizedAuthoringPreview> {const cwd = invokedFrom();@@ -581,7 +582,8 @@ export async function realizeAuthoringPreview(input: {if (distributionPackageRoot === undefined) throw new Error("active Hypit Distribution has no package root");const registry = await loadStudioCompanionRegistry({ workspaceRoot: projectRoot, packageRoot, distributionPackageRoot });const domain = await loadStudioDomain({ run: runPath, workspaceRoot: projectRoot, packageRoot });- const archive = await openStudioArchive(undefined, packageRoot, projectRoot, distributionPackageRoot);+ const runtimePath = input.runtime === undefined ? undefined : resolve(cwd, input.runtime);+ const archive = await openStudioArchive(runtimePath, packageRoot, projectRoot, distributionPackageRoot);try {const original = await loadStudioRun({ run: runPath, domain, registry, ...(archive === undefined ? {} : { archive }) });const graph: CompiledGraph = {@@ -602,7 +604,7 @@ export async function realizeAuthoringPreview(input: {});const previewRegistry = await loadStudioCompanionRegistry({ workspaceRoot: projectRoot, packageRoot, distributionPackageRoot });const previewDomain = await loadStudioDomain({ run: previewMock.previewRun, workspaceRoot: projectRoot, packageRoot });- const previewArchive = await openStudioArchive(undefined, packageRoot, projectRoot, distributionPackageRoot);+ const previewArchive = await openStudioArchive(runtimePath, packageRoot, projectRoot, distributionPackageRoot);try {const loadedPreview = await loadStudioRun({run: previewMock.previewRun, domain: previewDomain, registry: previewRegistry,diff --git a/packages/reference-video-tools/src/checks.ts b/packages/reference-video-tools/src/checks.tsindex 183d976f..2bb177aa 100644--- a/packages/reference-video-tools/src/checks.ts+++ b/packages/reference-video-tools/src/checks.ts@@ -256,6 +256,8 @@ export async function previewCheck(export type ReconstructionCheckInput = {readonly run: string;readonly reference_id?: string;+ /** Runtime Profile used to resolve accepted Build Records in a pinned Run. */+ readonly runtime?: string;};/**diff --git a/packages/reference-video-tools/src/cli.ts b/packages/reference-video-tools/src/cli.tsindex d00ed482..257f11b4 100644--- a/packages/reference-video-tools/src/cli.ts+++ b/packages/reference-video-tools/src/cli.ts@@ -42,7 +42,7 @@ function usage(): string {" hypit-reference-video-tools record_observation --reference-id <id> [--run <build.svrun>] --key <key> --text <text>|--text-file <path>"," hypit-reference-video-tools record_observation --reference-id <id> [--run <build.svrun>] --batch <answers.json>"," hypit-reference-video-tools inspect_svml_vocabulary --package <name> [--package <name> ...] [--tag <tag> ...] [--without-previews] [--run <build.svrun>]",- " hypit-reference-video-tools validate_local_author_packages --run <build.svrun> [--expected-package <name> ...]",+ " hypit-reference-video-tools validate_local_author_packages --run <build.svrun> [--runtime <hypit.runtime.json>] [--expected-package <name> ...]"," hypit-reference-video-tools validate_script_cues --run <build.svrun>"," hypit-reference-video-tools inspect_visual_contract [--shape visual-track|visual-element|box|mask|text|image|video|surface|text-flow|text-typography|text-paint|text-document|path-command] [--producers-of <package> ...]"," hypit-reference-video-tools paths",@@ -56,11 +56,11 @@ function usage(): string {" hypit-reference-video-tools render_element <build.svrun> --batch <renders.json> [--reference-id <id>]"," hypit-reference-video-tools render_previews <package-dir> [...]"," hypit-reference-video-tools preview_check <build.svrun> [<hypit.runtime.json>]",- " hypit-reference-video-tools layout_check --run <build.svrun>",+ " hypit-reference-video-tools layout_check --run <build.svrun> [--runtime <hypit.runtime.json>]"," hypit-reference-video-tools layout_accept --run <build.svrun> --finding <id> --reason <text>"," hypit-reference-video-tools layout_accept --run <build.svrun> --batch <acceptances.json>",- " hypit-reference-video-tools reconstruction_check <build.svrun> [--reference-id <id>]",- " hypit-reference-video-tools authoring_check <build.svrun>",+ " hypit-reference-video-tools reconstruction_check <build.svrun> [--reference-id <id>] [--runtime <hypit.runtime.json>]",+ " hypit-reference-video-tools authoring_check <build.svrun> [--runtime <hypit.runtime.json>]","","preview_check opens the Run the way Studio does and reports whether the graph traces. `sound` is","true when every Track resolved, and also when the only thing missing is capabilities a Provider has",@@ -607,7 +607,12 @@ async function main(): Promise<void> {};result = await tools.inspect_svml_vocabulary(input as { package_names: readonly string[]; tags?: readonly string[]; include_previews?: boolean; run?: string });} else if (command === "validate_local_author_packages") {- result = await tools.validate_local_author_packages({ run: required(flags, "run"), ...(many(flags, "expected-package").length === 0 ? {} : { expected_packages: many(flags, "expected-package") }) });+ const runtime = one(flags, "runtime");+ result = await tools.validate_local_author_packages({+ run: required(flags, "run"),+ ...(runtime === undefined ? {} : { runtime }),+ ...(many(flags, "expected-package").length === 0 ? {} : { expected_packages: many(flags, "expected-package") }),+ });} else if (command === "validate_script_cues") {result = await tools.validate_script_cues({ run: required(flags, "run") });} else if (command === "render_element") {@@ -651,7 +656,10 @@ async function main(): Promise<void> {};result = await tools.preview_check(input as { run: string; runtime?: string });} else if (command === "layout_check") {- result = await tools.layout_check((supplied ?? { run: required(flags, "run") }) as { run: string });+ result = await tools.layout_check((supplied ?? {+ run: required(flags, "run"),+ ...(one(flags, "runtime") === undefined ? {} : { runtime: one(flags, "runtime") }),+ }) as { run: string; runtime?: string });} else if (command === "layout_accept") {if (supplied !== undefined) result = await tools.layout_accept(supplied as never);else {@@ -672,13 +680,17 @@ async function main(): Promise<void> {if (supplied === undefined && run === undefined) throw new Error(`a <build.svrun> is required\n\n${usage()}`);const input = supplied ?? {run,+ ...(one(flags, "runtime") === undefined ? {} : { runtime: one(flags, "runtime") }),...(one(flags, "reference-id") === undefined ? {} : { reference_id: one(flags, "reference-id") }),};- result = await tools.reconstruction_check(input as { run: string; reference_id?: string });+ result = await tools.reconstruction_check(input as { run: string; reference_id?: string; runtime?: string });} else if (command === "authoring_check") {const run = operands[0];if (supplied === undefined && run === undefined) throw new Error(`a <build.svrun> is required\n\n${usage()}`);- result = await tools.authoring_check((supplied ?? { run }) as { run: string });+ result = await tools.authoring_check((supplied ?? {+ run,+ ...(one(flags, "runtime") === undefined ? {} : { runtime: one(flags, "runtime") }),+ }) as { run: string; runtime?: string });} else {throw new Error(`unknown command ${command}\n\n${usage()}`);}diff --git a/packages/reference-video-tools/src/layout.ts b/packages/reference-video-tools/src/layout.tsindex 9a3224f4..400a2f29 100644--- a/packages/reference-video-tools/src/layout.ts+++ b/packages/reference-video-tools/src/layout.ts@@ -11,7 +11,11 @@ import puppeteer from "puppeteer-core";import { authorSource, invokedFrom, realizeAuthoringPreview, repositoryRoot, stageAuthoringPreview } from "./authoring.js";import { atomicJson } from "./state-files.js";-export type LayoutCheckInput = { readonly run: string; readonly package_root?: string };+export type LayoutCheckInput = {+ readonly run: string;+ readonly runtime?: string;+ readonly package_root?: string;+};export type LayoutAcceptance = { readonly finding: string; readonly reason: string };export type LayoutAcceptInput = {readonly run: string;diff --git a/packages/reference-video-tools/src/tools.ts b/packages/reference-video-tools/src/tools.tsindex da641472..14b253a2 100644--- a/packages/reference-video-tools/src/tools.ts+++ b/packages/reference-video-tools/src/tools.ts@@ -142,6 +142,8 @@ export type InspectVocabularyInput = {};export type ValidateLocalAuthorPackagesInput = {readonly run: string;+ /** Runtime Profile used to resolve accepted Build Records in a pinned Run. */+ readonly runtime?: string;readonly expected_packages?: readonly string[];};export type CompareReconstructionInput = {@@ -1277,12 +1279,17 @@ export function createReferenceVideoTools(options: ToolOptions = {}): ReferenceVif (distributionPackageRoot !== undefined) {const registry = await loadStudioCompanionRegistry({ workspaceRoot: projectRoot, packageRoot: projectRoot, distributionPackageRoot });const domain = await loadStudioDomain({ run: runPath, workspaceRoot: projectRoot, packageRoot: projectRoot });- const archive = await openStudioArchive(undefined, projectRoot, projectRoot, distributionPackageRoot);- const loaded = await loadStudioRun({ run: runPath, domain, registry, ...(archive === undefined ? {} : { archive }) });- graphModules = new Set([- ...loaded.source.compiled.graph.operations.map((operation) => `${operation.producer.module.name}@${operation.producer.module.version}`),- ...loaded.run.graph.operations.map((operation) => `${operation.producer.module.name}@${operation.producer.module.version}`),- ]);+ const runtimePath = input.runtime === undefined ? undefined : resolve(invokedFrom(), input.runtime);+ const archive = await openStudioArchive(runtimePath, projectRoot, projectRoot, distributionPackageRoot);+ try {+ const loaded = await loadStudioRun({ run: runPath, domain, registry, ...(archive === undefined ? {} : { archive }) });+ graphModules = new Set([+ ...loaded.source.compiled.graph.operations.map((operation) => `${operation.producer.module.name}@${operation.producer.module.version}`),+ ...loaded.run.graph.operations.map((operation) => `${operation.producer.module.name}@${operation.producer.module.version}`),+ ]);+ } finally {+ await archive?.close();+ }}} catch {// The normal check reports the compiler failure; package validation still returns precise@@ -2547,7 +2554,7 @@ export function createReferenceVideoTools(options: ToolOptions = {}): ReferenceVasync preview_check(input): Promise<Record<string, unknown>> {const runPath = resolve(invokedFrom(), input.run);try {- const packageGate = await validateLocalAuthorPackages({ run: input.run });+ const packageGate = await validateLocalAuthorPackages({ run: input.run, ...(input.runtime === undefined ? {} : { runtime: input.runtime }) });const cueGate = await scriptCueCheck({ run: input.run });if (packageGate.passed !== true || cueGate.passed !== true) {const refused = { run: runPath, sound: false, package_gate: packageGate, script_cue_gate: cueGate, refused: "package or Script Cue gate failed" };@@ -2621,7 +2628,7 @@ export function createReferenceVideoTools(options: ToolOptions = {}): ReferenceVasync reconstruction_check(input): Promise<Record<string, unknown>> {const runPath = resolve(invokedFrom(), input.run);try {- const packageGate = await validateLocalAuthorPackages({ run: input.run });+ const packageGate = await validateLocalAuthorPackages({ run: input.run, ...(input.runtime === undefined ? {} : { runtime: input.runtime }) });const cueGate = await scriptCueCheck({ run: input.run });if (packageGate.passed !== true || cueGate.passed !== true) {const refused = { run: runPath, passed: false, package_gate: packageGate, script_cue_gate: cueGate, issues: ["package or Script Cue gate failed"] };@@ -2651,7 +2658,7 @@ export function createReferenceVideoTools(options: ToolOptions = {}): ReferenceVasync authoring_check(input): Promise<Record<string, unknown>> {const runPath = resolve(invokedFrom(), input.run);try {- const packageGate = await validateLocalAuthorPackages({ run: input.run });+ const packageGate = await validateLocalAuthorPackages({ run: input.run, ...(input.runtime === undefined ? {} : { runtime: input.runtime }) });const cueGate = await scriptCueCheck({ run: input.run });if (packageGate.passed !== true || cueGate.passed !== true) {const refused = { run: runPath, passed: false, package_gate: packageGate, script_cue_gate: cueGate, issues: ["package or Script Cue gate failed"] };@@ -2826,7 +2833,7 @@ export function createReferenceVideoTools(options: ToolOptions = {}): ReferenceVconst packageBindingsPassed = packageBindings.every((binding) => binding.current_digest === binding.digest);const vocabularyPassed = stateBindingPassed && evidenceShapePassed && packageBindingsPassed&& (inheritedContractPassed || inspectedContractPassed);- const packageGate = await validateLocalAuthorPackages({ run: runPath });+ const packageGate = await validateLocalAuthorPackages({ run: runPath, ...(input.runtime === undefined ? {} : { runtime: input.runtime }) });const cueGate = await scriptCueCheck({ run: runPath });const graphGate = packageGate.passed === true && cueGate.passed === true? await previewCheck({ run: runPath, ...(input.runtime === undefined ? {} : { runtime: input.runtime }) }, { packageRoot })diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex a6ac7c22..e70bfcc3 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -261,6 +261,9 @@ importers:examples/minimal-author-package/packages/example-component:dependencies:+ '@hypit/artifact':+ specifier: workspace:*+ version: link:../../../../packages/artifact'@hypit/component-kit':specifier: workspace:*version: link:../../../../packages/component-kit@@ -273,6 +276,9 @@ importers:'@hypit/markup':specifier: workspace:*version: link:../../../../packages/markup+ '@hypit/media':+ specifier: workspace:*+ version: link:../../../../packages/media'@hypit/program-space':specifier: workspace:*version: link:../../../../packages/program-space@@ -282,6 +288,9 @@ importers:'@hypit/semantic-track':specifier: workspace:*version: link:../../../../packages/semantic-track+ '@hypit/svs':+ specifier: workspace:*+ version: link:../../../../packages/svs'@hypit/temporal':specifier: workspace:*version: link:../../../../packages/temporal