@koda-sl/baker-cli 0.300.0-dev.e0610b71d → 0.302.0-dev.3ebf34fad

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
@@ -22,6 +22,7 @@ import {
22
22
  YtDlpError,
23
23
  bestSupportedQuality,
24
24
  canonicalUrl,
25
+ clipAudioMode,
25
26
  clipParamRecipe,
26
27
  clipProfileFor,
27
28
  collectAssetRefLikes,
@@ -63,7 +64,7 @@ import {
63
64
  ulid,
64
65
  validateCanvasDeep,
65
66
  ytDlpBlockSignal
66
- } from "./chunk-FENRH7OF.js";
67
+ } from "./chunk-KKJT24WA.js";
67
68
  import {
68
69
  csvOrJson,
69
70
  daysAgoIso,
@@ -38252,6 +38253,12 @@ function pinnedModelHint(input) {
38252
38253
  if (!speaks) return null;
38253
38254
  return `You pinned --model ${input.model} on a speaking avatar. Without it this clip routes to ${DEFAULT_VIDEO_GENERATE_MODEL}, which was chosen for exactly this case: the better picture, both orientations, and audio always on. Drop --model unless the user asked for a specific one \u2014 and note ${input.model} may not take the length or the reference you are counting on.`;
38254
38255
  }
38256
+ function silentModelHint(model, prompt) {
38257
+ if (!model || !prompt) return null;
38258
+ if (clipAudioMode(model) !== "never") return null;
38259
+ if (spokenWordsIn(prompt) === 0) return null;
38260
+ return `${model} renders no audio \u2014 the line in this prompt will be mouthed and never heard. For a shot where someone speaks use ${DEFAULT_VIDEO_GENERATE_MODEL} (audio always on), or alibaba/wan-3.0 past 10 seconds. Keep this model for shots with no voice in them.`;
38261
+ }
38255
38262
 
38256
38263
  // src/commands/canvas/scaffold-ad.ts
38257
38264
  import { copyFile, cp, mkdir as mkdir7, readFile as readFile16, stat as stat4, writeFile as writeFile9 } from "fs/promises";
@@ -57902,6 +57909,8 @@ function costHintsFor(body) {
57902
57909
  if (pinned) hints2.push(pinned);
57903
57910
  const pace = spokenPaceHint(body.prompt, body.duration, model);
57904
57911
  if (pace) hints2.push(pace);
57912
+ const silent = silentModelHint(model, body.prompt);
57913
+ if (silent) hints2.push(silent);
57905
57914
  if (count > 1) {
57906
57915
  hints2.push(
57907
57916
  "Ask for more than one take only when the MOTION is the risk \u2014 for a look you are unsure about, iterate on the still first."