@koda-sl/baker-cli 0.270.2-dev.f69bf4bac → 0.270.3-dev.e350bbc93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js
CHANGED
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
elementMentionKeywords,
|
|
31
31
|
estimateVideoCredits,
|
|
32
32
|
fetchExternalBytes,
|
|
33
|
+
frameRealismDirection,
|
|
33
34
|
generateCatalog,
|
|
34
35
|
imageProfileFor,
|
|
35
36
|
isAudioOnly,
|
|
@@ -58,7 +59,7 @@ import {
|
|
|
58
59
|
ulid,
|
|
59
60
|
validateCanvasDeep,
|
|
60
61
|
ytDlpBlockSignal
|
|
61
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-LJ5DIC4F.js";
|
|
62
63
|
import {
|
|
63
64
|
csvOrJson,
|
|
64
65
|
daysAgoIso,
|
|
@@ -34836,12 +34837,17 @@ function voiceoverMode(spec, nativeSpeech) {
|
|
|
34836
34837
|
if (spec.voiceover === false) return "none";
|
|
34837
34838
|
return nativeSpeech ? "on_camera" : "voiceover";
|
|
34838
34839
|
}
|
|
34840
|
+
function castRole(spec) {
|
|
34841
|
+
if (!spec.cast) return void 0;
|
|
34842
|
+
const described = spec.cast.description?.trim();
|
|
34843
|
+
return described ? `${described} \u2014 a customer telling their own story, not a worker` : "a customer telling their own story, not a worker";
|
|
34844
|
+
}
|
|
34839
34845
|
function adSpecToBlueprint(spec, avatarAccent) {
|
|
34840
34846
|
const total = spec.beats.length;
|
|
34841
34847
|
const market = marketFor(spec);
|
|
34842
34848
|
const place = market ? ` Set in ${market}: the architecture, streets and styling are ${market}'s.` : "";
|
|
34843
34849
|
const currency = market ? CURRENCY_BY_MARKET[market.toLowerCase()] : void 0;
|
|
34844
|
-
const physics =
|
|
34850
|
+
const physics = frameRealismDirection({ currency, role: castRole(spec) });
|
|
34845
34851
|
const closesOnCard = endCardWanted(spec);
|
|
34846
34852
|
const nativeSpeech = wantsNativeSpeech(spec, closesOnCard);
|
|
34847
34853
|
let clock = 0;
|