@koda-sl/baker-cli 0.405.0 → 0.406.0
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/README.md +0 -1
- package/dist/{chunk-DGZ5DLXK.js → chunk-YOF4XTUW.js} +9 -41
- package/dist/chunk-YOF4XTUW.js.map +1 -0
- package/dist/cli.js +2 -26
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.d.ts +1 -9
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-DGZ5DLXK.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
withoutCastName,
|
|
99
99
|
wordCount,
|
|
100
100
|
ytDlpBlockSignal
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-YOF4XTUW.js";
|
|
102
102
|
import {
|
|
103
103
|
NAME_CONTAINS_ARG,
|
|
104
104
|
csvOrJson,
|
|
@@ -72148,10 +72148,6 @@ var runCommand = defineCommand131({
|
|
|
72148
72148
|
type: "string",
|
|
72149
72149
|
description: "Alias for --concurrency: independent clips (and every other same-layer node) already fan out in parallel up to this bound"
|
|
72150
72150
|
},
|
|
72151
|
-
"max-credits": {
|
|
72152
|
-
type: "string",
|
|
72153
|
-
description: "Credit ceiling for this run (env BAKER_CANVAS_MAX_CREDITS). Aborts before billing if the estimate exceeds it, and at layer boundaries once actual spend does; completed nodes stay cached so a capped-up retry loses nothing."
|
|
72154
|
-
},
|
|
72155
72151
|
// citty consumes any `--no-<flag>` as a negation of `<flag>`, so the
|
|
72156
72152
|
// opt-out spelling `--no-record` requires the flag to be named `record`
|
|
72157
72153
|
// (a literal "no-record" arg would never receive a value).
|
|
@@ -72188,22 +72184,10 @@ var runCommand = defineCommand131({
|
|
|
72188
72184
|
concurrency: (args8.concurrency ?? args8.parallel) !== void 0 ? String(args8.concurrency ?? args8.parallel) : void 0,
|
|
72189
72185
|
keepRuns: args8["keep-runs"] !== void 0 ? Number(args8["keep-runs"]) : void 0,
|
|
72190
72186
|
remoteCache: args8["remote-cache"] !== void 0 ? String(args8["remote-cache"]) !== "off" : void 0,
|
|
72191
|
-
record: args8.record !== false
|
|
72192
|
-
maxCredits: resolveMaxCredits(
|
|
72193
|
-
args8["max-credits"] !== void 0 ? String(args8["max-credits"]) : void 0,
|
|
72194
|
-
process.env.BAKER_CANVAS_MAX_CREDITS
|
|
72195
|
-
)
|
|
72187
|
+
record: args8.record !== false
|
|
72196
72188
|
});
|
|
72197
72189
|
}
|
|
72198
72190
|
});
|
|
72199
|
-
function resolveMaxCredits(...candidates) {
|
|
72200
|
-
for (const candidate of candidates) {
|
|
72201
|
-
if (candidate === void 0 || candidate === "") continue;
|
|
72202
|
-
const n = Number(candidate);
|
|
72203
|
-
if (Number.isFinite(n) && n >= 0) return n;
|
|
72204
|
-
}
|
|
72205
|
-
return void 0;
|
|
72206
|
-
}
|
|
72207
72191
|
function stopBeforeKinds(until) {
|
|
72208
72192
|
if (until?.trim() === "frames") return /* @__PURE__ */ new Set(["video_generate"]);
|
|
72209
72193
|
return null;
|
|
@@ -72408,7 +72392,6 @@ ${describeRewrites(prepared.rewrites)}
|
|
|
72408
72392
|
run_id: runId,
|
|
72409
72393
|
signal: abort.signal,
|
|
72410
72394
|
cache_policy: policy,
|
|
72411
|
-
max_credits: opts.maxCredits,
|
|
72412
72395
|
...round4?.kind === "redraw" ? { billed_from_cache_only: true } : {},
|
|
72413
72396
|
...stopBeforeKinds(opts.until) ? { stop_before_kinds: stopBeforeKinds(opts.until) } : {},
|
|
72414
72397
|
concurrency: resolveConcurrency(opts.concurrency, process.env.BAKER_CANVAS_CONCURRENCY),
|
|
@@ -72546,13 +72529,6 @@ ${describeRewrites(prepared.rewrites)}
|
|
|
72546
72529
|
`);
|
|
72547
72530
|
process.exit(2);
|
|
72548
72531
|
}
|
|
72549
|
-
if (e instanceof RunAbortedError && e.reason === "cost_cap") {
|
|
72550
|
-
await clearMarker();
|
|
72551
|
-
if (poster) await poster.flush(failedPayload(e.message));
|
|
72552
|
-
process.stderr.write(`${JSON.stringify({ ok: false, error: { code: "cost_cap", message: e.message } }, null, 2)}
|
|
72553
|
-
`);
|
|
72554
|
-
process.exit(1);
|
|
72555
|
-
}
|
|
72556
72532
|
await clearMarker();
|
|
72557
72533
|
if (round4?.allowed && creativeSlug && failedOnlyOnTransientErrors(e)) {
|
|
72558
72534
|
await refundRender(canvasRoot, creativeSlug, optionalChatId() ?? null, round4.kind);
|