fix(media-use): format resolver diagnostics (#2466)

This commit is contained in:
Miguel Ángel
2026-07-14 23:43:32 -04:00
committed by GitHub
parent 6813eaeece
commit bf8432bca8
2 changed files with 6 additions and 9 deletions
+5 -8
View File
@@ -35,10 +35,7 @@ import {
flushHeygenFailureTracking,
versionLessThan,
} from "./lib/heygen-cli.mjs";
import {
BundledSfxAssetsError,
inspectBundledSfxAssets,
} from "./lib/bundled-sfx-provider.mjs";
import { BundledSfxAssetsError, inspectBundledSfxAssets } from "./lib/bundled-sfx-provider.mjs";
const INGEST_TYPES = [...listTypes(), "video"];
@@ -387,10 +384,10 @@ async function run() {
providerFailure instanceof BundledSfxAssetsError
? providerFailure.message
: type === "brand"
? "no brand spec found — add a frame.md or design.md (colors/font/logo) to this project. Run the HyperFrames design flow to create one; brand tokens are read locally for deterministic rendering."
: args.provider
? `provider "${args.provider}" could not resolve ${type}: "${intent}"${localOnly ? " (--local-only skips network providers; drop it or the --provider override)" : ""}`
: `no provider could resolve ${type}: "${intent}"`;
? "no brand spec found — add a frame.md or design.md (colors/font/logo) to this project. Run the HyperFrames design flow to create one; brand tokens are read locally for deterministic rendering."
: args.provider
? `provider "${args.provider}" could not resolve ${type}: "${intent}"${localOnly ? " (--local-only skips network providers; drop it or the --provider override)" : ""}`
: `no provider could resolve ${type}: "${intent}"`;
if (args.json) {
console.log(
JSON.stringify({