@koda-sl/baker-cli 0.348.0 → 0.349.0-dev.dd7bb23c3
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 +16 -8
- package/dist/{chunk-YBD3W4M7.js → chunk-4QG7SF4U.js} +83 -10
- package/dist/chunk-4QG7SF4U.js.map +1 -0
- package/dist/cli.js +40 -16
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-YBD3W4M7.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
YtDlpError,
|
|
24
24
|
bestSupportedQuality,
|
|
25
25
|
canonicalUrl,
|
|
26
|
+
catalogView,
|
|
26
27
|
clipAudioMode,
|
|
27
28
|
clipDurationsFor,
|
|
28
29
|
clipParamRecipe,
|
|
@@ -67,7 +68,7 @@ import {
|
|
|
67
68
|
validateCanvasDeep,
|
|
68
69
|
withoutCastName,
|
|
69
70
|
ytDlpBlockSignal
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-4QG7SF4U.js";
|
|
71
72
|
import {
|
|
72
73
|
csvOrJson,
|
|
73
74
|
daysAgoIso,
|
|
@@ -35517,15 +35518,38 @@ import { defineCommand as defineCommand119 } from "citty";
|
|
|
35517
35518
|
|
|
35518
35519
|
// src/commands/canvas/catalog.ts
|
|
35519
35520
|
import { defineCommand as defineCommand108 } from "citty";
|
|
35520
|
-
var
|
|
35521
|
-
|
|
35522
|
-
|
|
35523
|
-
|
|
35521
|
+
var DESCRIPTION = "The canvas node catalog. Start here: `baker canvas catalog` lists every node by category with one line each (a few KB). Then `--node video_generate` prints that node's full JSON Schema \u2014 params, inputs, outputs, models, when to use it. `--category image` narrows the list; add `--full` for that category's schemas. `--full` alone prints every schema (~160 KB) \u2014 prefer `--node`.";
|
|
35522
|
+
var ARGS = {
|
|
35523
|
+
node: {
|
|
35524
|
+
type: "string",
|
|
35525
|
+
required: false,
|
|
35526
|
+
description: "Node id(s) whose full schema to print, comma-separated. Example: --node video_generate,tts"
|
|
35524
35527
|
},
|
|
35525
|
-
|
|
35526
|
-
|
|
35527
|
-
|
|
35528
|
+
category: {
|
|
35529
|
+
type: "string",
|
|
35530
|
+
required: false,
|
|
35531
|
+
description: "Only this category (audio, video, image, \u2026). Listed with one line per node unless --full."
|
|
35532
|
+
},
|
|
35533
|
+
full: {
|
|
35534
|
+
type: "boolean",
|
|
35535
|
+
required: false,
|
|
35536
|
+
default: false,
|
|
35537
|
+
description: "Print full JSON Schemas instead of the one-line index (every node, or the --category)."
|
|
35538
|
+
}
|
|
35539
|
+
};
|
|
35540
|
+
registerSchema({ command: "canvas.catalog", description: DESCRIPTION, args: ARGS });
|
|
35541
|
+
var catalogCommand = defineCommand108({
|
|
35542
|
+
meta: { name: "catalog", description: DESCRIPTION },
|
|
35543
|
+
args: ARGS,
|
|
35544
|
+
async run({ args: args5 }) {
|
|
35545
|
+
const view = catalogView(generateCatalog(defaultRegistry()), {
|
|
35546
|
+
node: typeof args5.node === "string" ? args5.node : void 0,
|
|
35547
|
+
category: typeof args5.category === "string" ? args5.category : void 0,
|
|
35548
|
+
full: args5.full === true
|
|
35549
|
+
});
|
|
35550
|
+
process.stdout.write(`${JSON.stringify(view, null, 2)}
|
|
35528
35551
|
`);
|
|
35552
|
+
if (!view.ok) process.exit(1);
|
|
35529
35553
|
}
|
|
35530
35554
|
});
|
|
35531
35555
|
|
|
@@ -43127,7 +43151,7 @@ var scaffoldAdCommand = defineCommand115({
|
|
|
43127
43151
|
"video-model": {
|
|
43128
43152
|
type: "string",
|
|
43129
43153
|
required: false,
|
|
43130
|
-
description: "Which curated video model renders the shots. Defaults to the one the lane picks; pass this only to compare models on the same brief, because mixing models across a campaign changes how the same face reads. `baker canvas catalog` lists what each one takes."
|
|
43154
|
+
description: "Which curated video model renders the shots. Defaults to the one the lane picks; pass this only to compare models on the same brief, because mixing models across a campaign changes how the same face reads. `baker canvas catalog --node video_generate` lists what each one takes."
|
|
43131
43155
|
},
|
|
43132
43156
|
"no-brand": {
|
|
43133
43157
|
type: "boolean",
|
|
@@ -44493,7 +44517,7 @@ Subcommands:
|
|
|
44493
44517
|
baker canvas run <file.json> \u2014 execute the canvas, write outputs to ./canvas/<run_id>/
|
|
44494
44518
|
baker canvas rerun <slug> \u2014 restore a creative's latest recorded canvas from run history and run it (works in a fresh workspace)
|
|
44495
44519
|
baker canvas sync-definition <path> \u2014 push a creative's current node-graph + input thumbnails to the dashboard without rendering (runs automatically on canvas/prompt edits)
|
|
44496
|
-
baker canvas catalog \u2014
|
|
44520
|
+
baker canvas catalog \u2014 one line per node; --node <id> for its full schema
|
|
44497
44521
|
baker canvas inspect <run_id> \u2014 one-page summary of a completed run
|
|
44498
44522
|
baker canvas scaffold-ad --spec <spec.json> \u2014 DEFAULT for a new ad: write beats (one spoken line + one shot each), get the whole runnable canvas
|
|
44499
44523
|
baker canvas scaffold-video <video> \u2014 reproduce a video the USER gave you (an ad you found is inspiration, not a copy target)
|
|
@@ -63829,10 +63853,10 @@ var getCommand5 = defineCommand208({
|
|
|
63829
63853
|
|
|
63830
63854
|
// src/commands/studio/improve.ts
|
|
63831
63855
|
import { defineCommand as defineCommand209 } from "citty";
|
|
63832
|
-
var
|
|
63856
|
+
var DESCRIPTION2 = "Sharpen a rough brief into directed art direction \u2014 the same rewrite the client gets from the wand in the Studio prompt bar. Reach for it when you are relaying the CLIENT's own words and want them shaped without substituting your voice; when you are writing the art direction yourself, just write it, because you will do a better job than this does.";
|
|
63833
63857
|
registerSchema({
|
|
63834
63858
|
command: "studio.improve",
|
|
63835
|
-
description:
|
|
63859
|
+
description: DESCRIPTION2,
|
|
63836
63860
|
args: {
|
|
63837
63861
|
prompt: { type: "string", description: "The rough brief to sharpen", required: true },
|
|
63838
63862
|
kind: {
|
|
@@ -63856,7 +63880,7 @@ registerSchema({
|
|
|
63856
63880
|
var improveCommand = defineCommand209({
|
|
63857
63881
|
meta: {
|
|
63858
63882
|
name: "improve",
|
|
63859
|
-
description: `${
|
|
63883
|
+
description: `${DESCRIPTION2}
|
|
63860
63884
|
|
|
63861
63885
|
Both the rewrite and the original come back, so you can show the client what changed rather than silently replacing their words. Nothing is generated \u2014 feed the result to \`baker studio generate\` yourself.
|
|
63862
63886
|
|
|
@@ -64004,10 +64028,10 @@ var listCommand18 = defineCommand211({
|
|
|
64004
64028
|
|
|
64005
64029
|
// src/commands/studio/models.ts
|
|
64006
64030
|
import { defineCommand as defineCommand212 } from "citty";
|
|
64007
|
-
var
|
|
64031
|
+
var DESCRIPTION3 = "What each Studio model actually accepts: its shapes, resolutions, clip lengths, prompt character cap, how many reference images it takes, and which knobs it has. Read this before a batch you care about \u2014 the models disagree far more than they look like they do, and a setting the chosen model does not have is REFUSED, not ignored.";
|
|
64008
64032
|
registerSchema({
|
|
64009
64033
|
command: "studio.models",
|
|
64010
|
-
description:
|
|
64034
|
+
description: DESCRIPTION3,
|
|
64011
64035
|
args: {
|
|
64012
64036
|
kind: {
|
|
64013
64037
|
type: "string",
|
|
@@ -64093,7 +64117,7 @@ function buildModelCards(kind, model) {
|
|
|
64093
64117
|
var modelsCommand = defineCommand212({
|
|
64094
64118
|
meta: {
|
|
64095
64119
|
name: "models",
|
|
64096
|
-
description: `${
|
|
64120
|
+
description: `${DESCRIPTION3}
|
|
64097
64121
|
|
|
64098
64122
|
Everything here is read from the same table the backend validates against, so it cannot drift from what a request will actually be allowed to do.
|
|
64099
64123
|
|