@koda-sl/baker-cli 0.381.0 → 0.382.0-dev.a410b0488
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
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
validateCanvasDeep,
|
|
71
71
|
withoutCastName,
|
|
72
72
|
ytDlpBlockSignal
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-CHJOTJTZ.js";
|
|
74
74
|
import {
|
|
75
75
|
NAME_CONTAINS_ARG,
|
|
76
76
|
csvOrJson,
|
|
@@ -42021,6 +42021,12 @@ async function restoreRunSnapshot(manifest, targetDir, opts = {}) {
|
|
|
42021
42021
|
return { canvasPath: path14.resolve(resolvedTarget, manifest.canvas.path), restored, upToDate };
|
|
42022
42022
|
}
|
|
42023
42023
|
|
|
42024
|
+
// src/commands/canvas/unchanged-run.ts
|
|
42025
|
+
function unchangedRunHint(runId, stats) {
|
|
42026
|
+
if (stats.total_nodes === 0 || stats.cached_nodes < stats.total_nodes) return null;
|
|
42027
|
+
return `Nothing changed since the last render: every step came from the cache, so this run is no new version. To read what a render produced, use \`baker canvas inspect ${runId}\` instead of re-running; re-run a canvas only after editing it or the files it reads.`;
|
|
42028
|
+
}
|
|
42029
|
+
|
|
42024
42030
|
// src/engine/nodes/local/lib/render-review.ts
|
|
42025
42031
|
import { execFile as execFile2 } from "child_process";
|
|
42026
42032
|
import { mkdtemp, readdir as readdir6, readFile as readFile11, rm as rm5 } from "fs/promises";
|
|
@@ -42904,6 +42910,8 @@ ${describeRewrites(healed.rewrites)}
|
|
|
42904
42910
|
`Anything about the mark or the closing card is a composition fix, not a re-render: both are drawn as HTML by the caption composition, so editing it and re-running re-renders only that pass \u2014 the clips are cached and no generation is paid for again. Fix them, then re-run: edit the \`show\` of the scene files named above \u2014 a shot with a person handling equipment is where limbs and objects go wrong, so widen it, move the hands out of frame, or drop the person from that beat. Re-running re-renders only the scenes you edited; everything else comes from the cache (this run: ${result.stats?.cached_nodes ?? 0} of ${result.stats?.total_nodes ?? 0} nodes were cached).`
|
|
42905
42911
|
] : []
|
|
42906
42912
|
] : [];
|
|
42913
|
+
const unchanged = result.stats ? unchangedRunHint(result.run_id, result.stats) : null;
|
|
42914
|
+
if (unchanged) hints2.push(unchanged);
|
|
42907
42915
|
if (poster) {
|
|
42908
42916
|
await poster.flush(
|
|
42909
42917
|
// `review` is null only when nobody looked (no key, no ffmpeg, unreadable video);
|