@koda-sl/baker-cli 0.361.0-dev.d766dc120 → 0.362.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 +4 -16
- package/canvas/avocado-tutorial.json +1 -1
- package/canvas/hello-world-overlay.json +1 -1
- package/dist/{chunk-K2IKLMCM.js → chunk-AI4HWQVN.js} +4 -4
- package/dist/chunk-AI4HWQVN.js.map +1 -0
- package/dist/cli.js +161 -282
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-K2IKLMCM.js.map +0 -1
package/README.md
CHANGED
|
@@ -110,18 +110,6 @@ 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`). `meta`, `hints` and warnings are
|
|
119
|
-
kept, and a name no record carries is reported in `hints` alongside the keys that do
|
|
120
|
-
exist. Commands that declare `--fields` themselves keep their own meaning
|
|
121
|
-
(`ads meta insights` chooses which metrics to request; `ads linkedin creatives` takes dotted
|
|
122
|
-
paths). A command whose default output is text needs `--output json` for there to be an
|
|
123
|
-
envelope to narrow; without it a note on stderr says the flag changed nothing.
|
|
124
|
-
|
|
125
113
|
### Fresh reads: `--no-cache`
|
|
126
114
|
|
|
127
115
|
Every command that caches takes `--no-cache`, and it skips **both** cache layers — the
|
|
@@ -5314,7 +5302,7 @@ Every run gets its own directory:
|
|
|
5314
5302
|
- Naming: `<node_id>__<slot>[__<index>].<ext>`.
|
|
5315
5303
|
- `_final.<ext>` is a copy of whichever node the top-level `output` points at.
|
|
5316
5304
|
- `manifest.json` is what `baker canvas inspect` reads — duration, cache hit/miss, asset refs, errors.
|
|
5317
|
-
- Default root is
|
|
5305
|
+
- Default root is `canvas/` at the workspace root (the nearest folder with a `package.json` above the canvas file), whichever directory you run from. Override with `--outputs-dir`.
|
|
5318
5306
|
|
|
5319
5307
|
---
|
|
5320
5308
|
|
|
@@ -5326,7 +5314,7 @@ Cache key:
|
|
|
5326
5314
|
sha256(canonical({ node_id, node_version, params, input_hashes, cache_salt, extras }))
|
|
5327
5315
|
```
|
|
5328
5316
|
|
|
5329
|
-
- Entries live in
|
|
5317
|
+
- Entries live in `canvas/.cache/` at the workspace root (index + content-addressed blobs).
|
|
5330
5318
|
- Cache hits re-materialize asset files into the new run dir instantly; misses execute the node and write a new entry atomically.
|
|
5331
5319
|
- `hyperframe_*` folds a recursive sha256 of the composition directory into `extras` — edit any file in `my-composition/` and the cache busts automatically. No version bump needed.
|
|
5332
5320
|
- If computing `extras` fails (e.g. the composition directory is unreadable), the node fails with that error — it never falls back to a partial cache key, so stale results can't be served silently.
|
|
@@ -5421,8 +5409,8 @@ Validate, then execute the graph. Blocks until done. Logs one line per node. Ret
|
|
|
5421
5409
|
|
|
5422
5410
|
| Flag | Default | Effect |
|
|
5423
5411
|
|---|---|---|
|
|
5424
|
-
| `--cache-dir <path>` |
|
|
5425
|
-
| `--outputs-dir <path>` |
|
|
5412
|
+
| `--cache-dir <path>` | `<workspace root>/canvas/.cache` | Where content-addressed bytes + cache index live. |
|
|
5413
|
+
| `--outputs-dir <path>` | `<workspace root>/canvas` | Root for per-run output directories. |
|
|
5426
5414
|
| `--run-id <id>` | auto ULID | Override the generated run id. |
|
|
5427
5415
|
| `--cache-policy <policy>` | `read_write` | `read_write`, `bypass`, or `read_only`. |
|
|
5428
5416
|
| `--concurrency <n>` | `5` (or `BAKER_CANVAS_CONCURRENCY`) | Max nodes executing at once within a layer. |
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"transcript": "$ref:transcribe.transcript"
|
|
75
75
|
},
|
|
76
76
|
"params": {
|
|
77
|
-
"composition": "./
|
|
77
|
+
"composition": "./tiktok-captions-composition",
|
|
78
78
|
"words_per_group": 3,
|
|
79
79
|
"font_size": 72,
|
|
80
80
|
"text_color": "#ffffff",
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
shouldEscalate
|
|
21
21
|
} from "./chunk-2OKSJNLA.js";
|
|
22
22
|
|
|
23
|
-
//
|
|
23
|
+
// ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js
|
|
24
24
|
var require_safe_stable_stringify = __commonJS({
|
|
25
|
-
"
|
|
25
|
+
"../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js"(exports, module) {
|
|
26
26
|
"use strict";
|
|
27
27
|
var { hasOwnProperty } = Object.prototype;
|
|
28
28
|
var stringify = configure2();
|
|
@@ -1114,7 +1114,7 @@ function resolveAdaptFormats(params) {
|
|
|
1114
1114
|
return params.formats ?? [];
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
|
-
//
|
|
1117
|
+
// ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/esm/wrapper.js
|
|
1118
1118
|
var import__ = __toESM(require_safe_stable_stringify(), 1);
|
|
1119
1119
|
var configure = import__.default.configure;
|
|
1120
1120
|
var wrapper_default = import__.default;
|
|
@@ -9904,4 +9904,4 @@ export {
|
|
|
9904
9904
|
defaultRegistry,
|
|
9905
9905
|
createEngineFromEnv
|
|
9906
9906
|
};
|
|
9907
|
-
//# sourceMappingURL=chunk-
|
|
9907
|
+
//# sourceMappingURL=chunk-AI4HWQVN.js.map
|