@koda-sl/baker-cli 0.370.0 → 0.372.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 +23 -0
- package/dist/{chunk-L4QXAYIC.js → chunk-4ACU7GBN.js} +4 -4
- package/dist/{chunk-AI4HWQVN.js → chunk-FGHMWBUD.js} +193 -111
- package/dist/chunk-FGHMWBUD.js.map +1 -0
- package/dist/{chunk-2OKSJNLA.js → chunk-HJEMOSPH.js} +439 -2
- package/dist/chunk-HJEMOSPH.js.map +1 -0
- package/dist/{chunk-MZQC4LII.js → chunk-MF7YA62W.js} +3 -3
- package/dist/{chunk-XWHHYHKQ.js → chunk-VZEDAFAR.js} +2 -2
- package/dist/{chunk-FXVELNAS.js → chunk-ZI7TPBXB.js} +3 -3
- package/dist/cli.js +51 -304
- package/dist/cli.js.map +1 -1
- package/dist/{client-3DGBQ2H3.js → client-GR6YL3YX.js} +4 -4
- package/dist/engine/index.js +3 -3
- package/dist/{env-BSG7TY5Y.js → env-4P5HOGNA.js} +2 -2
- package/dist/{output-AT5SRVH7.js → output-KMEPFOFT.js} +5 -5
- package/dist/{shared-HZ44PY2F.js → shared-26NWGQ5G.js} +6 -6
- package/package.json +1 -1
- package/dist/chunk-2OKSJNLA.js.map +0 -1
- package/dist/chunk-AI4HWQVN.js.map +0 -1
- /package/dist/{chunk-L4QXAYIC.js.map → chunk-4ACU7GBN.js.map} +0 -0
- /package/dist/{chunk-MZQC4LII.js.map → chunk-MF7YA62W.js.map} +0 -0
- /package/dist/{chunk-XWHHYHKQ.js.map → chunk-VZEDAFAR.js.map} +0 -0
- /package/dist/{chunk-FXVELNAS.js.map → chunk-ZI7TPBXB.js.map} +0 -0
- /package/dist/{client-3DGBQ2H3.js.map → client-GR6YL3YX.js.map} +0 -0
- /package/dist/{env-BSG7TY5Y.js.map → env-4P5HOGNA.js.map} +0 -0
- /package/dist/{output-AT5SRVH7.js.map → output-KMEPFOFT.js.map} +0 -0
- /package/dist/{shared-HZ44PY2F.js.map → shared-26NWGQ5G.js.map} +0 -0
package/README.md
CHANGED
|
@@ -110,6 +110,22 @@ question — and nothing in the output said so. Both spellings of an option work
|
|
|
110
110
|
that lists every option: `baker schema <command>` (`check_schema`) when the command
|
|
111
111
|
registers a schema, `baker <command> --help` (`check_help`) when it does not.
|
|
112
112
|
|
|
113
|
+
### Narrowing a result: `--fields`
|
|
114
|
+
|
|
115
|
+
`--fields a,b,c` works on every command that prints the JSON envelope. It keeps only
|
|
116
|
+
those keys of each record in `data` — the rows when `data` is a list or wraps one
|
|
117
|
+
(`baker chats list --fields id,title`), `data` itself when it is a single record
|
|
118
|
+
(`baker experiment plan ... --fields traffic,warning`). Naming a key of the wrapper beside
|
|
119
|
+
keys of its rows narrows both. `meta`, `hints` and warnings are
|
|
120
|
+
kept, and a name no record carries is reported in `hints` alongside the keys that do
|
|
121
|
+
exist. Commands that declare `--fields` themselves keep their own meaning
|
|
122
|
+
(`ads meta insights` chooses which metrics to request; `ads linkedin creatives` takes dotted
|
|
123
|
+
paths; `actions draft` picks the columns of `--output md|files` and leaves its JSON
|
|
124
|
+
whole). A command whose default output is text needs `--output json` for there to be an
|
|
125
|
+
envelope to narrow; without it a note on stderr says the flag changed nothing. A success
|
|
126
|
+
that prints its result beside `ok` rather than under `data` (`canvas validate`,
|
|
127
|
+
`canvas critique`) comes back whole, with a hint saying `--fields` was not applied.
|
|
128
|
+
|
|
113
129
|
### Fresh reads: `--no-cache`
|
|
114
130
|
|
|
115
131
|
Every command that caches takes `--no-cache`, and it skips **both** cache layers — the
|
|
@@ -3914,12 +3930,19 @@ baker canvas validate my-canvas.json
|
|
|
3914
3930
|
# or the same ad rendered once per aspect ratio instead of one hero + a terminal
|
|
3915
3931
|
# image_aspect_adapt (IMAGE_PARALLEL_FORMAT_RENDERS — separate renders drift in type,
|
|
3916
3932
|
# crop, and color, so the sizes stop matching).
|
|
3933
|
+
# A generator prompt is measured with its {{slots}} filled from text nodes and local
|
|
3934
|
+
# prompt.json/text ingests: past the model's character cap it is refused as
|
|
3935
|
+
# PROMPT_OVER_MODEL_LIMIT, naming the node and the overshoot, before anything bills.
|
|
3936
|
+
# `scaffold-static-ad` runs the same check on the prompt.json it writes and, when it is over,
|
|
3937
|
+
# still writes the canvas and returns the overshoot in `hints[]` — trim prompt.json, then validate.
|
|
3917
3938
|
|
|
3918
3939
|
# 2. Run (executes nodes, writes files to ./canvas/<run_id>/)
|
|
3919
3940
|
baker canvas run my-canvas.json
|
|
3920
3941
|
# Advisory warnings print as `[warn] <CODE>: …` before anything bills.
|
|
3921
3942
|
# Only nodes reachable from the declared output execute (orphaned nodes are skipped,
|
|
3922
3943
|
# not billed). Add --keep-runs N to prune old r_* run dirs, keeping the N newest.
|
|
3944
|
+
# A failed run reports `error.code: "input_invalid"` when the backend refused a node's
|
|
3945
|
+
# own input (it fails the same way until the input changes), `"runtime"` otherwise.
|
|
3923
3946
|
|
|
3924
3947
|
# 2b. Independent nodes ALREADY fan out in parallel — every node in the same
|
|
3925
3948
|
# topological layer (e.g. all the per-clip video_generate nodes) runs concurrently
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
handleConnectionError,
|
|
3
3
|
needsConnectionFix,
|
|
4
4
|
writeAdsJson
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZI7TPBXB.js";
|
|
6
6
|
import {
|
|
7
7
|
ApiError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MF7YA62W.js";
|
|
9
9
|
import {
|
|
10
10
|
getEnv
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HJEMOSPH.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/ads/meta/shared.ts
|
|
14
14
|
var DAY_MS = 864e5;
|
|
@@ -120,4 +120,4 @@ export {
|
|
|
120
120
|
resolveEffectiveStatus,
|
|
121
121
|
statusFilterHints
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=chunk-
|
|
123
|
+
//# sourceMappingURL=chunk-4ACU7GBN.js.map
|