@koda-sl/baker-cli 0.298.0-dev.52a1f12f8 → 0.298.0-dev.fd66d4f19
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 +68 -87
- package/canvas/tiktok-captions-composition/index.html +2 -23
- package/dist/{chunk-2IUN3S3E.js → chunk-2IB3IL4K.js} +2 -2
- package/dist/{chunk-4YF56EGK.js → chunk-D3HHUBIL.js} +4 -4
- package/dist/{chunk-WFWU3CHS.js → chunk-DZUVUGEP.js} +1 -9
- package/dist/{chunk-WFWU3CHS.js.map → chunk-DZUVUGEP.js.map} +1 -1
- package/dist/{chunk-A2VZOTCV.js → chunk-EX2OIOVL.js} +3 -3
- package/dist/{chunk-KDTHRRAC.js → chunk-GU7IWEBC.js} +3 -3
- package/dist/{chunk-YMHERSTK.js → chunk-HVITCN7H.js} +123 -315
- package/dist/chunk-HVITCN7H.js.map +1 -0
- package/dist/cli.js +1550 -2830
- package/dist/cli.js.map +1 -1
- package/dist/{client-6KQHCXS2.js → client-VDCCDEHE.js} +4 -4
- package/dist/engine/index.d.ts +0 -13
- package/dist/engine/index.js +3 -3
- package/dist/{env-C7YXL6C6.js → env-FWMZXMQK.js} +2 -6
- package/dist/{output-RBM32FKJ.js → output-4H2RNBXL.js} +5 -5
- package/dist/{shared-WJIJTWST.js → shared-UKL36AXT.js} +6 -6
- package/package.json +2 -5
- package/dist/chunk-YMHERSTK.js.map +0 -1
- /package/dist/{chunk-2IUN3S3E.js.map → chunk-2IB3IL4K.js.map} +0 -0
- /package/dist/{chunk-4YF56EGK.js.map → chunk-D3HHUBIL.js.map} +0 -0
- /package/dist/{chunk-A2VZOTCV.js.map → chunk-EX2OIOVL.js.map} +0 -0
- /package/dist/{chunk-KDTHRRAC.js.map → chunk-GU7IWEBC.js.map} +0 -0
- /package/dist/{client-6KQHCXS2.js.map → client-VDCCDEHE.js.map} +0 -0
- /package/dist/{env-C7YXL6C6.js.map → env-FWMZXMQK.js.map} +0 -0
- /package/dist/{output-RBM32FKJ.js.map → output-4H2RNBXL.js.map} +0 -0
- /package/dist/{shared-WJIJTWST.js.map → shared-UKL36AXT.js.map} +0 -0
package/README.md
CHANGED
|
@@ -352,6 +352,7 @@ The same lines also go to stderr. A read with nothing to report prints none of i
|
|
|
352
352
|
| Preset | Description | Default date range |
|
|
353
353
|
|------------------------|------------------------------------------|--------------------|
|
|
354
354
|
| `campaign-performance` | Campaign metrics overview | LAST_30_DAYS |
|
|
355
|
+
| `conversions-by-action` | Which conversion action each campaign's conversions actually are | LAST_30_DAYS |
|
|
355
356
|
| `keyword-analysis` | Keyword performance per ad group | LAST_30_DAYS |
|
|
356
357
|
| `keyword-serving` | Why a keyword is limited — status reasons, first-page bid estimate vs max CPC, quality score | ALL_TIME |
|
|
357
358
|
| `positive-keywords` | Positive (targeting) keywords only | ALL_TIME |
|
|
@@ -366,6 +367,8 @@ The same lines also go to stderr. A read with nothing to report prints none of i
|
|
|
366
367
|
|
|
367
368
|
Every preset except the negatives lists and `account-summary` filters to **actually-serving entities** by default — the full status chain (`campaign.status = 'ENABLED' AND ad_group.status = 'ENABLED' AND ad_group_ad.status = 'ENABLED'`, as applicable) — and selects the status columns so you can see them. Pass `--include-paused` to widen to `!= 'REMOVED'` (keeps paused, still drops removed). Raw GAQL (no `--preset`) has no such default: a query over a serving-hierarchy resource without a status filter emits a `SERVING_SCOPE` warning reminding you to add the chain, because Google Ads has no single serving flag.
|
|
368
369
|
|
|
370
|
+
**Conversion rates across campaigns are not comparable by default.** `metrics.conversions` is a sum over whatever conversion actions are primary for each campaign, and those differ campaign by campaign — a webinar registration in one, an info request in the next. A read that selects a conversion metric, is not segmented by conversion action, and is not pinned to one campaign (`WHERE campaign.id = …`) comes back with a `CONVERSION_MIX` warning: a total across those rows adds different events, and one campaign's rate is not comparable with another's. `--preset conversions-by-action` is the read that settles it. Like every other warning it travels in `--output csv|jsonl|md` and on the `--out` file summary.
|
|
371
|
+
|
|
369
372
|
**"Eligible (Limited)" keywords:** an enabled keyword that barely shows is invisible in the performance presets — near-zero impressions look the same whether it is outbid, low quality, or rarely searched. `--preset keyword-serving` reads the signals behind Google Ads' status column: `ad_group_criterion.primary_status` and `primary_status_reasons` (the status enum has no `LIMITED` value — "(Limited)" lives in the reasons while the status stays `ELIGIBLE`), `position_estimates.first_page_cpc_micros` (the number in "Below first page bid (€3.63)"), the max CPC actually in force and where it comes from, quality score split into ad relevance / landing page / expected CTR, approval status, and `system_serving_status`. Any read whose rows carry those fields — preset or raw GAQL — comes back with a `KEYWORD_SERVING_LIMITED` warning naming the affected keywords (each by its ad group, since one keyword's copies share a criterion id) and the bid each would need. Below-first-page-bid and low-quality want opposite fixes (raise the bid vs. improve relevance), so the warning reports them separately. On `--out` the verdict is folded across pages as they stream to disk and returned on the file summary; like every other warning it also travels in `--output csv|jsonl|md`.
|
|
370
373
|
|
|
371
374
|
The warning defers to Google: when the query selects `primary_status_reasons`, a keyword Google did not flag is not reported, even if its bid sits under the first-page estimate — the estimate is advisory and the bid may not be the criterion's to set under a portfolio strategy. Only an estimates-only read (no reasons selected) falls back to inferring the limit from the bid gap.
|
|
@@ -669,7 +672,7 @@ Command groups: `budgets`, `campaigns`, `ad-groups`, `keywords` (add/update/remo
|
|
|
669
672
|
|
|
670
673
|
**A device criterion can be added, but never removed** — `campaign-criteria add` with a device criterion works, but Google then rejects `campaign-criteria remove` on it forever, including on a criterion you added yourself (and Baker refuses the removal before publish). Adjust it instead with `campaign-criteria update customers/<cid>/campaignCriteria/<campaignId>~<criterionId> --bid-modifier <n>`: `1` for no adjustment, `1.25` to bid 25% more, `0.9` to bid 10% less, `0` to stop serving on that device. Locations, languages and ad schedules remove normally.
|
|
671
674
|
|
|
672
|
-
**Images on a Search campaign** — `assets create` with an image publishes it into the advertiser's Google Ads asset library, but Google refuses the asset link that puts an image extension on a Search campaign (`AD_IMAGE` and every marketing-image field type, at campaign, ad group and customer level alike), so `assets attach`
|
|
675
|
+
**Images on a Search campaign** — `assets create` with an image publishes it into the advertiser's Google Ads asset library, but Google refuses the asset link that puts an image extension on a Search campaign (`AD_IMAGE` and every marketing-image field type, at campaign, ad group and customer level alike), so `assets attach` **skips** it at stage time and names what to do instead — the op is never stored, the rest of a batch stages normally, and the skipped link is what records which images belong on which campaign. Staging an image, or asking to link one the account already holds, therefore also stages a **Task** — "Add N images to <campaign> in Google Ads" — which applies with the rest of the chat, so the one step Google keeps inside its own interface is tracked rather than mentioned. Attach the image to a Performance Max asset group (`asset-groups attach`) and the Task withdraws itself. The one image a Search campaign does take through a link is the advertiser's logo: `BUSINESS_LOGO`, at campaign or customer level, on a verified account.
|
|
673
676
|
|
|
674
677
|
**Primary vs secondary conversion actions** — `conversions update <id> --primary` makes an action a primary action (automated bidding optimizes toward it); `--no-primary` (or `--primary=false`) demotes it to secondary (reported only) — the spaced form `--primary false` is rejected, since a boolean flag written with a space is set to true and the word dropped. `conversions create` stages a new action as **secondary** unless its `--file` payload sets `"primaryForGoal": true`, so a new action never silently joins the bidding target of a Maximize Conversions or Target CPA campaign. The staged card shows an "Action optimization" row with the before/after role.
|
|
675
678
|
|
|
@@ -1265,6 +1268,9 @@ baker analytics conversions --event page:a --count-mode every_time # re
|
|
|
1265
1268
|
baker analytics conversions --rename "Lead form" --to "Lead" # merge two into one row
|
|
1266
1269
|
baker analytics conversions --remove page:request_demo
|
|
1267
1270
|
baker analytics conversions --remove-name "Lead"
|
|
1271
|
+
baker analytics sites # the websites the measurement tag is accepted from
|
|
1272
|
+
baker analytics sites --add example.com # and every subdomain of it — applies at once, no publish
|
|
1273
|
+
baker analytics website-tag # the tag for a site Baker does not publish, with the key in it
|
|
1268
1274
|
baker analytics delivery --page 2 # the next page of a long list
|
|
1269
1275
|
baker analytics submissions --flow contact # every attempt at a Form, delivered or not
|
|
1270
1276
|
```
|
|
@@ -1277,6 +1283,13 @@ Shared flags: `--days <n>` (default 30) or `--start-date` / `--end-date` (`YYYY-
|
|
|
1277
1283
|
- The `sparkline` on `landings` is dropped unless `--full`, and resampled to 30 points when present. It is bucketed by `--granularity` upstream, so ninety days at `hour` is 2,160 numbers per page.
|
|
1278
1284
|
- Past ~25 rows the response carries a hint naming the row count and pointing at `--output md`.
|
|
1279
1285
|
|
|
1286
|
+
**Measuring a website Baker does not publish.** `baker analytics website-tag` returns the tag with this company's site key in it, the websites it is accepted from, and the whole install as Markdown. Two things decide whether it does anything:
|
|
1287
|
+
|
|
1288
|
+
- **`baker analytics sites` first.** The key is public and is **silently ignored** from any origin not on the declared list, so a tag on an undeclared website is a perfect install that measures nothing, with no failing request anywhere. `--add` / `--remove` are repeatable, apply immediately, need no publish, and a tag already installed starts being accepted at once. Declare the **domain**, not the subdomain you happen to be installing on: one entry covers everything under it (`example.com` answers for `www.`, `go.` and `shop.eu.`) and it never widens upward. The response also carries `suggestedOrigins` — domains Baker already serves this company's landings on that nothing covers yet.
|
|
1289
|
+
- **The snippet is two scripts and both are required.** The first creates `window.baker` synchronously and queues calls; the second is the tag, which is async. Paste only the second and any outcome reported before it finishes loading reaches nothing — which on a thank-you page is the normal case. For the same reason, never guard a call with `if (!window.baker) return`: on the fastest pages that is always true, and it throws the conversion away with no error anywhere. Call `window.baker.track(…)` directly.
|
|
1290
|
+
|
|
1291
|
+
`--measure` decides whose activity is measured and defaults to `campaigns` (only visitors a Baker landing brought). `--measure all` measures the client's entire website and is a decision somebody has to ask for. `host` is the client's own landing domain when one shares a domain with the site being measured, so the script and its events stay first-party; `firstParty` in the response says which, and removing that domain from Baker means re-running this command.
|
|
1292
|
+
|
|
1280
1293
|
**Paging the list reports.** `people`, `submissions` and `delivery` are lists of individual things rather than breakdowns — `delivery` and `submissions` are the ones the CLI exposes, `people` backs the People section of the dashboard's landing Analytics screen over the same wire — and only they take `--page <n>` (1-based) and `--page-size <n>` (up to 200, default 50). The response carries `pageInfo` with `hasMore` — when it is true there **are** more rows, so a total must never be reported from one page. Pass neither flag and a list comes back at the size it always did.
|
|
1281
1294
|
|
|
1282
1295
|
**A conversion is a company-level named event, not a property of a Form.** `baker analytics conversions` is the only place "what counts" is decided, and an empty `definitions` list means every conversion number in every other report is zero — not because nobody converted, but because nothing is named as an outcome and Baker never guesses which event is the point of a page. `--candidates` lists every event these pages actually produced — each Form step and trigger, every `data-baker-*` event, every outbound destination — with volume and whether it is already counted; that list is where an event key comes from, so never invent one. `--event <key> --name "Booked a call"` starts counting it **immediately and retroactively**: the whole stored history is rescored, so naming the right event today also fixes last month. Nothing here is staged and publishing is not involved. Two events given the same `--name` become one row and one number, which is how a call booked on three different Forms reads as one outcome. `--count-mode every_time` is for the outcomes people genuinely repeat (a guide downloaded twice is two downloads); the default counts once per visit.
|
|
@@ -1342,6 +1355,8 @@ baker experiment fold # make the page
|
|
|
1342
1355
|
|
|
1343
1356
|
**The goal is one event, named by its key.** `--goal submit:book-a-call` — the same vocabulary the event stream uses (`form:<flow>:<node>:<trigger>`, `submit:<flow>`, `page:<name>`, `exit:<host>`), and `baker analytics conversions --candidates` lists the keys these pages produce. Not a conversion *name*, which groups several keys: a variant that swaps the page's Form for a shorter one converts on a different key, and a name would either count both endings as one outcome or count the new version as never converting at all — `--variant-goal` gives the new version its own event when it has one. The goal is fixed for the life of the test and the verdict is read on it alone. Every other conversion the company counts comes back under `secondary` on every result, with the same interval and a one-word reading, and decides nothing. A conversion counts for a visitor wherever it happens after they were shown a version — on the page, on another page, in a delivered lead, or in a deal the CRM posted a week later by email.
|
|
1344
1357
|
|
|
1358
|
+
**`start` checks that both versions still fire a conversion on the same action.** A conversion is a name matched against each page's own `data-baker-*` declarations, so the two versions agree about what an event means only because a person made them agree — and nothing downstream can tell when they stop. `start` compares the sections the two versions do not share and names any conversion whose markup differs, because a step moved from a pop-up to the open page keeps its name and starts counting a scroll instead of a click. A forked section is supposed to change, so most of these are fine; the one that is not is the one nobody looked at. Give the new version's step its own name when it is a different action.
|
|
1359
|
+
|
|
1345
1360
|
**Nothing ends a test on its own.** `status` returns a verdict; `finish --keep original|variant` is the decision, and it takes effect within seconds with nothing to publish. Ending a `keep_running` test records `inconclusive`. Going against the verdict is allowed and recorded. `pause` and `resume` switch the split off and on without losing the test; `cancel` is `finish --keep original` for a live test and takes a staged one back off the session. `update` changes what a test *says* — `--because`, `--change`, `--evidence` (repeatable, `source:what it showed`, optionally `|link`) — at any time, writes down what a finished one taught (`--learning`), and changes what it *measures* — `--goal`, `--lift`, `--expect` — only while it is still staged.
|
|
1346
1361
|
|
|
1347
1362
|
**A finished test is a record.** Its counts are frozen when it ends, so it reads the same next year as it did that day; its `learning` is what it taught, in a person's words. `history` returns every finished test — the claim, what was different, the numbers with their interval and confidence, what was kept and whether that went against the numbers, whether the belief held, and the learning — and `plan` returns the same entries as `pastTests` for the page it sizes, so a hypothesis is chosen against the page's record rather than in ignorance of it.
|
|
@@ -2127,6 +2142,7 @@ Each external source is its own subcommand. Pick the verb that matches the sourc
|
|
|
2127
2142
|
| `baker images get <id>` | Single record | n/a |
|
|
2128
2143
|
| `baker images upload <file\|url>` | Upload a local file OR remote URL to the library | always on |
|
|
2129
2144
|
| `baker images delete <id>` | Delete a record | n/a |
|
|
2145
|
+
| `baker images describe <id>` | Correct a record's stored name / description / tags | n/a |
|
|
2130
2146
|
| `baker images normalize <files>` | Local recolor + bg removal + trim + resize | n/a (operates on disk, no upload) |
|
|
2131
2147
|
| `baker images upscale <imageId>` | Real-ESRGAN super-resolution via backend ($0.05/image, cost-tracked) | n/a (operates on library image) |
|
|
2132
2148
|
| `baker images layerize <imageId>` | Split into editable layers — transparent cutouts per element plus baked-in copy recovered as editable text (costs credits) | n/a (operates on library image) |
|
|
@@ -2567,6 +2583,20 @@ baker images delete j571abc123def --dry-run
|
|
|
2567
2583
|
baker images delete j571abc123def
|
|
2568
2584
|
```
|
|
2569
2585
|
|
|
2586
|
+
### `baker images describe <id>`
|
|
2587
|
+
|
|
2588
|
+
Correct what the library says an image is. The stored `description` is what `baker images library` retrieves on, so an AI description that came out wrong is what makes an asset unfindable — this is the fix, rather than another query.
|
|
2589
|
+
|
|
2590
|
+
Only the flags you pass change; everything else keeps its current value. `--tags` **replaces** the whole tag set rather than adding to it, so read the current one with `baker images get <id>` first if you mean to extend it. It is repeatable (`--tags a --tags b`) as well as comma-separated — both spellings keep every value.
|
|
2591
|
+
|
|
2592
|
+
```bash
|
|
2593
|
+
baker images describe j571abc123def --description "Founder on stage at SaaStr, blue backdrop, mid-gesture"
|
|
2594
|
+
baker images describe j571abc123def --name "SaaStr keynote" --tags event,team
|
|
2595
|
+
baker images describe j571abc123def --description "…" --full # also returns the whole library row
|
|
2596
|
+
```
|
|
2597
|
+
|
|
2598
|
+
The semantic index rebuilds in the background, so a `library` search run immediately afterwards may still rank on the old wording. The response says so in `hints`.
|
|
2599
|
+
|
|
2570
2600
|
### `baker images normalize <files> [options]`
|
|
2571
2601
|
|
|
2572
2602
|
Local-file image normalization for logos and brand assets. Declarative — describe the desired final state via flags and the pipeline runs the needed stages in order. Operates on files in the sandbox; pair with `baker images upload` to ship results to the library. For super-resolution, upload first then use `baker images upscale <imageId>` (runs on the Convex backend, cost-tracked).
|
|
@@ -2833,6 +2863,15 @@ Requires `yt-dlp` on `PATH` (present in the Baker Runtime). Private, age-restric
|
|
|
2833
2863
|
|
|
2834
2864
|
Delete a video by ID.
|
|
2835
2865
|
|
|
2866
|
+
### `baker videos describe <id>`
|
|
2867
|
+
|
|
2868
|
+
The same correction for a clip: fix the stored `name`, `description` or `tags` when the analysis read the video wrong. Only the flags you pass change, `--tags` replaces the whole set, and the search index rebuilds in the background.
|
|
2869
|
+
|
|
2870
|
+
```bash
|
|
2871
|
+
baker videos describe j571abc123def --description "Customer explaining how onboarding cut setup from a week to a day"
|
|
2872
|
+
baker videos describe j571abc123def --tags testimonial
|
|
2873
|
+
```
|
|
2874
|
+
|
|
2836
2875
|
### `baker videos tags`
|
|
2837
2876
|
|
|
2838
2877
|
List the available video tag names — built-in defaults plus the company's custom tags — straight from the backend. Use it before filtering with `--tags`. Defaults to a markdown list (`--output json` for the `{ ok, data }` envelope).
|
|
@@ -2935,7 +2974,7 @@ baker avatars create --name "Marta" --subject "…" \
|
|
|
2935
2974
|
--source-image "<imageId1>,<imageId2>" --likeness-confirmed
|
|
2936
2975
|
```
|
|
2937
2976
|
|
|
2938
|
-
Optional: `--handle`, `--speech`, `--motion`, `--setting`, `--
|
|
2977
|
+
Optional: `--handle`, `--speech`, `--motion`, `--setting`, `--voice-id`, `--voice-description`. Returns `{ avatarId, handle, likeness, status }`.
|
|
2939
2978
|
|
|
2940
2979
|
#### `baker avatars update <handle>`
|
|
2941
2980
|
|
|
@@ -2944,7 +2983,7 @@ Edit an avatar. Profile flags are merged over the stored profile, so `--persona`
|
|
|
2944
2983
|
```bash
|
|
2945
2984
|
baker avatars update marta --wardrobe "charcoal blazer over a white tee"
|
|
2946
2985
|
baker avatars update marta --subject "woman in her early 50s, silver bob, …" --regenerate-sheet
|
|
2947
|
-
baker avatars update marta --new-handle marta-founder --
|
|
2986
|
+
baker avatars update marta --new-handle marta-founder --voice-id <voiceId>
|
|
2948
2987
|
```
|
|
2949
2988
|
|
|
2950
2989
|
#### `baker avatars delete <handle>`
|
|
@@ -3216,6 +3255,7 @@ baker tags draft # review the staged changes awaiting publish
|
|
|
3216
3255
|
|
|
3217
3256
|
Notes:
|
|
3218
3257
|
|
|
3258
|
+
- **Both reads restate the write path, on stderr.** `list` and `draft` end with the two lines that say the approval form is the only way to change a tag, that it rides on every turn, and that a tag change is never a Task. They are there because a chat concluded from its tool list alone that the form did not exist, never called it, and filed the change as a Task for the user to carry out by hand. stdout stays the list, so piping it is unaffected; `--json` carries the same lines in the envelope's `hints`.
|
|
3219
3259
|
- **`list` prints each tag's full readable config.** Every non-secret field is shown in full under the tag — the Clarity `projectId`, GA4 `measurementId`, the entire custom `code` snippet, etc. — so the agent reuses a stored value to pre-fill a follow-up change instead of asking the user for something already installed. Secrets are never among these fields. (`--json` emits the same data as the raw envelope.)
|
|
3220
3260
|
- **Secrets never travel through this CLI or the chat.** Secret fields (`accessToken`, `apiSecret`, `authorizationToken`, `apiKey`, `conversionToken`, `oauthProviderId`) are entered only in the dashboard's secure tag form and flow straight into the staged draft; tool responses only ever name which secret fields are set/pending.
|
|
3221
3261
|
- Staged creates get a server-generated `tag_temp_*` ref (returned in the tool result and printed by `list`). Use it (or a real tag id) as flow side-effect `tagIds` — the published tag keeps resolving under the temp ref.
|
|
@@ -3636,7 +3676,6 @@ Reach for it when you are relaying the **client's** own words. When you are writ
|
|
|
3636
3676
|
|
|
3637
3677
|
```bash
|
|
3638
3678
|
baker studio animate "slow push in, model turns to camera and smiles" --image j57abc123def456ghi789
|
|
3639
|
-
baker studio animate "she looks to camera and says: \"Hola, soy Elena\"" --avatar elena --quality 720p --aspect-ratio 9:16
|
|
3640
3679
|
baker studio animate "handheld drift right, steam rising from the cup" \
|
|
3641
3680
|
--image ./out/hero.png --duration 6 --quality 1080p
|
|
3642
3681
|
baker studio animate "product rotates once on a turntable" --image j57abc…,j57def… --from references
|
|
@@ -3786,65 +3825,6 @@ baker canvas set-prompt my-canvas.json s0_start --text "Close-up, flushed and br
|
|
|
3786
3825
|
baker canvas set-prompt my-canvas.json s0_start --text-file ./hook-frame.txt
|
|
3787
3826
|
```
|
|
3788
3827
|
|
|
3789
|
-
#### The brand, the ending and the cast are drawn, not generated
|
|
3790
|
-
|
|
3791
|
-
`baker canvas scaffold-ad` renders everything with a known, fixed appearance locally,
|
|
3792
|
-
because a video model garbles a wordmark every time:
|
|
3793
|
-
|
|
3794
|
-
- **`brand.logo`** — the repo path to the mark. It is copied into the overlay composition
|
|
3795
|
-
and drawn as a real `<img>`: small top-left for the whole ad, large on the closing card.
|
|
3796
|
-
- **`end_card`** — on by default whenever the spec carries a brand. The last beat's PICTURE
|
|
3797
|
-
becomes a flat brand colour plate (rendered by ffmpeg, not generated), with the mark and
|
|
3798
|
-
the call to action over it. `end_card: false` keeps the footage; `end_card: { cta }` sets
|
|
3799
|
-
the words on the button, which otherwise default to the last line of the script.
|
|
3800
|
-
- **The brand fills itself.** When the spec leaves `brand.logo` or `brand.palette` empty,
|
|
3801
|
-
they are read from the workspace — `src/brand/BRAND.md` for the colours (in document
|
|
3802
|
-
order, page-furniture whites and blacks dropped) and `src/brand/logos/` for the mark
|
|
3803
|
-
(vector first, plain mark over a mono/white/icon variant). Pass them yourself only when
|
|
3804
|
-
the ad needs something other than the client's default.
|
|
3805
|
-
- **The spoken language is read off the script** when the spec does not declare it, so a
|
|
3806
|
-
Spanish ad is cast from Spanish voices without anyone having to say so.
|
|
3807
|
-
- **`sound`** (per beat) — one sound effect for that shot, rendered by ElevenLabs
|
|
3808
|
-
alongside the music bed. Most beats should not have one: it belongs where the picture
|
|
3809
|
-
shows a specific physical event (a drill, a door, rain on glass), not on a talking head
|
|
3810
|
-
or a calm lifestyle shot. A bed plus two well-placed effects beats eight.
|
|
3811
|
-
- **A real brand mark is required.** `scaffold-ad` refuses to build without one in
|
|
3812
|
-
`src/brand/logos/` (SVG or PNG): the mark is drawn on every frame and on the closing
|
|
3813
|
-
card, so a stand-in ships an ad wearing the wrong brand.
|
|
3814
|
-
- **An avatar with no pinned voice cannot speak on camera.** Their lines would be read by
|
|
3815
|
-
a separately cast voice, which is dubbing and looks like it.
|
|
3816
|
-
- **`voiceover: false`** — a music-led ad. No voice, no transcription: the `say` lines
|
|
3817
|
-
become on-screen text and are captioned straight from the script, so the words are
|
|
3818
|
-
exact. Give it `music` too.
|
|
3819
|
-
- **`--avatar <handle>`** — the same flag as on `studio generate` / `studio animate`, and the way to cast a person into an ad. Overrides `cast.avatar` in the spec.
|
|
3820
|
-
- **`cast.avatar`** — the handle of a cast Avatar (`baker avatars list`). The ad grounds
|
|
3821
|
-
every beat they appear in on that avatar's identity sheet and copies its subject
|
|
3822
|
-
description verbatim, so the ad shows the same face as the rest of the company's work.
|
|
3823
|
-
This is the whole journey: `baker avatars create` → `cast.avatar` in the spec → render.
|
|
3824
|
-
- **`cast.description`** — a person described in words, when there is no avatar.
|
|
3825
|
-
|
|
3826
|
-
Each of these also removes a generation: the closing beat costs no image and no clip.
|
|
3827
|
-
|
|
3828
|
-
#### The finished video is reviewed
|
|
3829
|
-
|
|
3830
|
-
When a run's output is a video, `baker canvas run` samples twelve frames across it and
|
|
3831
|
-
looks at them before reporting success. It reports, never blocks — the clips are already
|
|
3832
|
-
paid for by the time it runs — and the findings come back as `review` and `hints`:
|
|
3833
|
-
|
|
3834
|
-
- **Per frame:** anything that could not physically happen, or shows a job being done
|
|
3835
|
-
incorrectly, plus objects floating unattached in shot. Malformed hands and limbs are
|
|
3836
|
-
rolled up into one finding across the whole render rather than repeated per frame.
|
|
3837
|
-
- **Across the reel:** whether the cast stays the same people, whether a brand mark is
|
|
3838
|
-
visible anywhere, and whether the last frames close the ad or simply stop.
|
|
3839
|
-
|
|
3840
|
-
Each per-frame finding names the **scene file** that produced that second, so a defect is
|
|
3841
|
-
an edit rather than a hunt — and re-running re-renders only the scenes you changed.
|
|
3842
|
-
|
|
3843
|
-
It needs `GEMINI_API_KEY` (the Runtime receives it automatically). Without one the run
|
|
3844
|
-
says the video was **not** reviewed rather than reporting it clean, and a frame that
|
|
3845
|
-
could not be read is reported as unchecked for the same reason.
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
3828
|
> Scaffolded canvases use **workspace-relative** composition/asset paths and are validated
|
|
3849
3829
|
> against the engine's hyperframe pre-render gate at `validate` time, so a broken overlay
|
|
3850
3830
|
> (or a moved/renamed workspace) is caught before any billed clip. The scaffold also adds
|
|
@@ -4073,7 +4053,7 @@ Pick a `source` discriminator and declare the kind you expect. See [Ingestion](#
|
|
|
4073
4053
|
|
|
4074
4054
|
**Params** — discriminated on `source`:
|
|
4075
4055
|
|
|
4076
|
-
`source: "url"` (yt-dlp / direct fetch /
|
|
4056
|
+
`source: "url"` (yt-dlp / direct fetch / Firecrawl):
|
|
4077
4057
|
|
|
4078
4058
|
| Name | Type | Required | Constraint |
|
|
4079
4059
|
|---|---|---|---|
|
|
@@ -4093,7 +4073,7 @@ Pick a `source` discriminator and declare the kind you expect. See [Ingestion](#
|
|
|
4093
4073
|
|
|
4094
4074
|
**Path-source notes:** the canvas is **not portable** to another machine without the file. Cache key folds the file's `mtime:size`, so editing the file invalidates the cache automatically. Supported extensions: `png`, `jpg`/`jpeg`, `webp`, `gif`, `avif`, `svg`, `mp4`, `webm`, `mov`, `m4v`, `mp3`, `wav`, `m4a`, `ogg`, `flac`, `json`, `txt`, `md`, `markdown`, `html`/`htm`, `csv`, `ttf`, `otf`, `woff`, `woff2`. Unknown extensions fall back to magic-byte sniffing for common image formats (and an SVG content sniff), else `kind_mismatch`. **Any `expect: "image"` in a format image-generation models can't read (SVG, AVIF, HEIC, TIFF, BMP) is normalized to PNG on ingest** — model-safe rasters (`jpeg`/`png`/`gif`/`webp`) pass through untouched, everything else is transcoded so a reference can never 400 a generation. This applies to **both `source: "path"` and `source: "url"`** (URL images are fetched and normalized locally, since the backend can't run the rasterizer). SVG gets density-aware upscaling (longest edge near 2048px, transparency preserved). The normalized asset carries `metadata.rasterized_from` set to the source format (e.g. `"svg"`, `"avif"`). **Video (`expect: "video"`) duration is probed from the file's ISO-BMFF (`mp4`/`mov`/`m4v`) header** and stamped as the canonical `duration_ms` (and `metadata.duration_ms`); other containers (e.g. `webm`) leave it unset. Downstream `video_deconstruct` uses this declared duration to size its ingest-poll timeout and preflight — without it those fall back to worst-case budgets and a single deconstruct step can hit the action time limit.
|
|
4095
4075
|
|
|
4096
|
-
**Cost:** 0 engine credits for direct fetch + yt-dlp + local file.
|
|
4076
|
+
**Cost:** 0 engine credits for direct fetch + yt-dlp + local file. Firecrawl charges per scrape.
|
|
4097
4077
|
|
|
4098
4078
|
---
|
|
4099
4079
|
|
|
@@ -5407,10 +5387,10 @@ baker canvas catalog | jq '.compositions[].id'
|
|
|
5407
5387
|
// URL source — YouTube audio-only (yt-dlp -x)
|
|
5408
5388
|
{ "id": "src", "type": "ingest", "params": { "source": "url", "url": "https://youtu.be/dQw4w9WgXcQ", "expect": "audio" } }
|
|
5409
5389
|
|
|
5410
|
-
// URL source — blog post → clean markdown (
|
|
5390
|
+
// URL source — blog post → clean markdown (Firecrawl)
|
|
5411
5391
|
{ "id": "src", "type": "ingest", "params": { "source": "url", "url": "https://example.com/blog/post", "expect": "text" } }
|
|
5412
5392
|
|
|
5413
|
-
// URL source — PDF → markdown (
|
|
5393
|
+
// URL source — PDF → markdown (Firecrawl handles PDFs)
|
|
5414
5394
|
{ "id": "src", "type": "ingest", "params": { "source": "url", "url": "https://example.com/whitepaper.pdf", "expect": "text" } }
|
|
5415
5395
|
|
|
5416
5396
|
// URL source — raw markdown file (direct fetch)
|
|
@@ -5438,7 +5418,7 @@ baker canvas catalog | jq '.compositions[].id'
|
|
|
5438
5418
|
| url | video / audio | any | `yt_dlp` (works on platform URLs *and* direct file URLs via the generic extractor) |
|
|
5439
5419
|
| url | image / json / font | any | `direct_fetch` (HTTP GET) |
|
|
5440
5420
|
| url | text | ends in `.txt` or `.md` | `direct_fetch` |
|
|
5441
|
-
| url | text | anything else (HTML, PDF, …) | `
|
|
5421
|
+
| url | text | anything else (HTML, PDF, …) | `firecrawl` `/v2/scrape` (extracted markdown — HTML/PDF made readable) |
|
|
5442
5422
|
|
|
5443
5423
|
If the bytes' mime contradicts `expect` (e.g. `expect: "image"` but the URL serves `text/html`, or a `.pdf` file is passed as `expect: "image"`), the node fails with a clear `kind_mismatch` error instead of forwarding bad bytes downstream.
|
|
5444
5424
|
|
|
@@ -5481,7 +5461,7 @@ If the bytes' mime contradicts `expect` (e.g. `expect: "image"` but the URL serv
|
|
|
5481
5461
|
file_size?: number, // bytes
|
|
5482
5462
|
original_filename?: string, // basename of the source path
|
|
5483
5463
|
|
|
5484
|
-
strategy: "direct_fetch" | "
|
|
5464
|
+
strategy: "direct_fetch" | "firecrawl" | "yt_dlp" | "local_file",
|
|
5485
5465
|
ingested_at: string, // ISO 8601 timestamp
|
|
5486
5466
|
|
|
5487
5467
|
// yt-dlp adds (when available from --dump-json):
|
|
@@ -5492,7 +5472,7 @@ If the bytes' mime contradicts `expect` (e.g. `expect: "image"` but the URL serv
|
|
|
5492
5472
|
width?: number,
|
|
5493
5473
|
height?: number,
|
|
5494
5474
|
|
|
5495
|
-
//
|
|
5475
|
+
// Firecrawl adds:
|
|
5496
5476
|
word_count?: number,
|
|
5497
5477
|
},
|
|
5498
5478
|
|
|
@@ -5511,8 +5491,8 @@ The `url` is a stable R2 URL — remote downstream nodes (e.g. `video_lipsync`)
|
|
|
5511
5491
|
|-----------------------|----------------|------------------------------------------------------------------------------|
|
|
5512
5492
|
| `INVALID_PARAMS` | engine validator | Missing/malformed fields, mixing `url` + `path`, unknown `source`, unknown `expect`. |
|
|
5513
5493
|
| `kind_mismatch` | url + direct_fetch | URL returned bytes whose mime doesn't match `expect`. Message: `ingest expect=<X> but <url> returned <mime> (kind=<Y>)`. |
|
|
5514
|
-
| `kind_mismatch` | path + local_file | File mime (from extension or magic-byte sniff) doesn't match `expect`, *or* mime doesn't map to any of our kinds (e.g. local PDFs aren't supported as `text` — host them via URL for
|
|
5515
|
-
| `provider_error` | url +
|
|
5494
|
+
| `kind_mismatch` | path + local_file | File mime (from extension or magic-byte sniff) doesn't match `expect`, *or* mime doesn't map to any of our kinds (e.g. local PDFs aren't supported as `text` — host them via URL for Firecrawl to extract). |
|
|
5495
|
+
| `provider_error` | url + firecrawl / direct_fetch | Firecrawl `/v2/scrape` non-2xx or no markdown in the response, **or the target site answering 4xx/5xx** (Firecrawl reports that inside a 200 carrying the error page, so it is refused rather than stored as the page), or upstream `fetch` non-ok. Terminal: a bad host, a 404 and a block page fail identically on a retry and each retry is billed. Retried: a 429 from either side, a Firecrawl-side 5xx, a dropped connection. |
|
|
5516
5496
|
| `file_not_found` | path + local_file | `stat()` returned `ENOENT`. Error names the absolute resolved path. |
|
|
5517
5497
|
| `not_a_file` | path + local_file | Path exists but is a directory / block device / socket. |
|
|
5518
5498
|
| `permission_denied` | path + local_file | `stat()` or `readFile()` returned `EACCES`. |
|
|
@@ -5529,7 +5509,7 @@ All execution-time failures flow through `NodeExecutionError` so they appear in
|
|
|
5529
5509
|
- **Engine-level cache** (`canvas/.cache/index/`) keys by node params + node version + node-supplied cache extras. Re-running the same canvas with the same params is a cache hit and skips the network/yt-dlp/local-read entirely.
|
|
5530
5510
|
- **yt-dlp version is folded into the cache key** for `source: "url"` with `expect: video | audio`. Upgrading yt-dlp busts the cache automatically, since new versions can produce different bitstreams.
|
|
5531
5511
|
- **Local file `mtime + size` is folded into the cache key** for `source: "path"`. Editing the file (any save bumps mtime) invalidates the cache so you get fresh ingestion. mtime+size is cheap to read at validate time; for cases where mtime is unreliable (`cp -p`, content-only changes), force-bypass with `--cache-policy bypass` or change the canvas's `cache_salt`.
|
|
5532
|
-
- **No TTL.**
|
|
5512
|
+
- **No TTL.** Firecrawl and direct fetch don't cache-bust on page changes — if the source page updates, use `--cache-policy bypass` or change `cache_salt`.
|
|
5533
5513
|
|
|
5534
5514
|
**Local files (`source: "path"`):**
|
|
5535
5515
|
|
|
@@ -5552,10 +5532,10 @@ ingest { source: "path", expect: "video" } → video_transcribe # Local
|
|
|
5552
5532
|
**Requirements:**
|
|
5553
5533
|
|
|
5554
5534
|
- `yt-dlp` and `ffmpeg` on PATH for `source: "url"` with `expect: "video" | "audio"` (already in the E2B sandbox image; install locally with `pip install yt-dlp` and `brew install ffmpeg` / equivalent).
|
|
5555
|
-
- `
|
|
5535
|
+
- `FIRECRAWL_API_KEY` on the Convex backend for `source: "url"` with `expect: "text"` on non-`.md`/`.txt` URLs.
|
|
5556
5536
|
- No additional dependencies for `source: "path"` — just filesystem access.
|
|
5557
5537
|
|
|
5558
|
-
**Cost:** zero engine credits for direct_fetch + yt_dlp.
|
|
5538
|
+
**Cost:** zero engine credits for direct_fetch + yt_dlp. Firecrawl charges per scrape on your Firecrawl account (configured outside Baker).
|
|
5559
5539
|
|
|
5560
5540
|
---
|
|
5561
5541
|
|
|
@@ -5930,6 +5910,8 @@ baker landing critique spring-offer summer-offer claude # score three landings
|
|
|
5930
5910
|
|
|
5931
5911
|
- **Positioning integrity is scored too, and it is the one copy rule that blocks on a single sentence.** `competitor-concession` fires when the page ranks somebody else above the client, or says the client does not lead at what the page sells ("su constructor es mejor que el nuestro", "we're not the best"). Every other prose rule waits for a cluster because one AI tell proves nothing; this one is the whole defect on its own — the page is paid traffic, and it is arguing the visitor should leave. Two shapes that read identically are exempt by design: a concession about **price**, in either direction ("we are not the cheapest / the most expensive, and here is why" is premium positioning), and a superlative flipped by a negation ("ningún equipo trabaja más rápido que el nuestro"), which is the strongest claim *for* the client. Its warn-tier sibling `competitor-named-in-comparison` fires when a name from `src/content/competitors/` appears in a comparative sentence outside a `<table>` — a comparison table is a section the landing skill teaches, but naming a rival anywhere else on paid traffic is the client's call, not the build's. Spanish, Portuguese and English.
|
|
5932
5912
|
|
|
5913
|
+
- **Comments are not markup, and no rule reads one.** Astro expression comments (`{/* … */}`) and HTML comments (`<!-- … -->`) are blanked before detection, offsets preserved so `file:line` stays exact. A shared scaffold component explaining its `preconnect` in prose that spelled `<img>` twice was read as two broken images — block-tier — so every landing rendering a video failed the publish gate on a file the client cannot edit. Comment prose is also where a component's reasoning lives, em-dashes and buzzwords included, so reading it inflated the count-threshold tells too.
|
|
5914
|
+
|
|
5933
5915
|
- **Copy held in component frontmatter is read like markup copy.** Astro landings keep FAQ pairs, testimonial quotes, feature cards and pricing rows as a `const items = [{ q, a }]` array above the `---` fence and render them in a `.map()`, so a critic that blanked the whole block was blind to a large share of every page's actual words. Prose string literals in that block now feed every copy rule; imports, class strings, URLs and config do not, and the bar is deliberately high in that direction — a Tailwind class list in front of the copy rules is worse than one missed tell.
|
|
5934
5916
|
|
|
5935
5917
|
Output is the standard envelope `{ ok, data, hints }` with `data = { advisory, slug, overall, counts, dimensions, findings }`. `dimensions` scores seven design families (typography, color, borders_depth, motion, spacing, copy, integrity) 0–1 (higher is better); `counts` is the block/warn/advisory tally.
|
|
@@ -6030,18 +6012,9 @@ This CLI is designed for AI agent consumption. Key patterns:
|
|
|
6030
6012
|
|
|
6031
6013
|
- **0.217.0**: new family `baker avatars list|get|create|update|delete`, plus `--avatar <handle>` on `baker studio generate` and `baker studio animate` — company-scoped reusable presenters, typed from the shared `@baker/api` avatars contract. `--avatar` is the way to cast one: it grounds the render on the identity sheet, reuses the subject description verbatim, and records the avatar on the batch. Passing the sheet through `--reference` instead does none of those and leaves the batch unattributed, so the avatar can never show what it has appeared in; the route refuses a handle that is not `ready`, because generating a stranger is worse than an error. `get` returns the sheet URL and that description; every command's `hints` carry the next move (still building → re-check with `get`; changed `--subject` without `--regenerate-sheet` → the sheet is stale). `create` refuses `--source-image` without `--likeness-confirmed` and returns an `error.fix` telling the agent to ask the user for that permission, since only they can give it; an unknown handle returns an `error.fix` pointing at `baker avatars list`. Profile flags on `update` merge over the stored profile instead of replacing it.
|
|
6032
6014
|
|
|
6033
|
-
- **0.
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
- **0.253.0**: the pre-render gate runs `hyperframes check` — lint, runtime, layout, motion and contrast in one browser session, sampled at transition seams — instead of the static `lint` + `inspect` pair, falling back to them when the installed binary predates `check`. The browser half is signal the parser could never produce: measured on HyperFrames' own `warm-grain` example, lint/runtime/layout/motion all reported `ok: true` while the composition rendered an almost entirely blank ten-second video, the only trace being six `GSAP target #a-roll not found` warnings — a tween pointed at an element that does not exist, so nothing it animates ever appears. Baker promotes that warning to blocking, alongside `sweep_static` ("the timeline never advanced", i.e. a still image billed as a video). Warnings are grouped by code with a count (one run returned 62, 53 of them identical) and the highest-value findings carry advice on what to do rather than only what was seen. Requires `hyperframes@0.8.17` in the sandbox, bumped from 0.7.5 in the same change. Reasoning: `docs/adr/0007-the-render-gate-runs-in-a-browser.md`.
|
|
6037
|
-
- **0.254.0**: the nested-composition smoke test now looks at the frames instead of trusting the exit code — exiting 0 is what a blank render does too. `hyperframes snapshot --describe` sends the captured frames to Gemini and writes back what is actually in them, and the credential Studio already uses for Gemini and Omni (`GOOGLE_GENERATIVE_AI_API_KEY`) is the `GEMINI_API_KEY` it reads; the backend now ships it to the sandbox by omission, so a deployment without one keeps the plain smoke test. Verified against a real render: the pass reported "the image is completely empty" and named the single visible element without being told what to look for. Frame verdicts are condensed into the node log, one line per frame — a file the agent would have to know to open is a file it does not read.
|
|
6038
|
-
- **0.263.0**: shot briefs refuse the frame that contradicts its own caption, and the vision pass reads the numbers back. Observed verbatim: a phone screen reading "$215.40 SAVED THIS MONTH" under a caption reading "Save over £900 a year" — wrong currency, and a figure that contradicts the claim it sits beneath, since 215.40 a month is 2,584 a year. The model invents a number whenever a screen or document is in shot, so the frames no longer carry legible text at all: the caption track is where an ad's numbers live. Same brief also pins each object's real-world FORM after a phone rendered with a second screen on its back, and names the market's currency for anything unavoidably visible. The frame-vision question now reads out every number and word inside the picture and says whether it contradicts the caption — the defect only exists between the two, so neither alone can see it.
|
|
6039
|
-
- **0.262.0**: `scaffold-ad` carries the brand. The spec takes `brand.palette` (hex tokens) and `brand.logo` (repo path to the mark), and emits them as the `style.palette` and `branding` the engine already reads to colour its brand plate and CTA. The palette dresses the plate and the type and is deliberately kept OUT of the shot briefs — hex in a frame prompt makes the model paint the whole scene that colour, which reads as a filter. Also takes `market`, since an ad that does not say where it is set is an ad the model sets wherever it likes.
|
|
6040
|
-
- **0.261.0**: four defects that reached a finished ad, fixed in `scaffold-ad` where they originate. Frames render on **`openai/gpt-image-2`**, pinned rather than inheriting the catalogue default (Gemini Flash — right for cheap high-volume work, wrong for the opening still a five-second clip is built from). Every shot brief now states the MARKET, inferred from the voice language when unstated: an ad for Spain came back full of British houses because nothing said where it was. Every shot brief also rules out the impossible — paper and screens are opaque, objects are at real-world scale — after a bill rendered with the text from its reverse showing through, and a solar panel five metres tall. And beat durations snap to lengths the video model can actually render: free-form durations were rounded down per clip, so 11 beats summed to 27.0s of picture against a 31.4s timeline and the 4.4s difference rendered as a black tail. The read rate was re-measured off a real Spanish ad (81 words in 26.48s = 3.06 w/s); the old 2.6 over-predicted every beat by 18%.
|
|
6041
|
-
- **0.260.0**: burned-in captions break where the script punctuates instead of every N words. The karaoke composition sliced the transcript into fixed groups, and a word count knows nothing about the sentence it is cutting — an ad the engine rendered showed cards reading "OTRA VEZ, EN" and "TU CASA GENERA", half-thoughts ending on a preposition. A card now closes when the clause does; the word count stays as a ceiling so a long clause is still split, and a linking word ("de", "al", "y") never ends a card because it belongs to what follows. Same rule the pre-render gate already checked for, now enforced where the cards are actually built.
|
|
6042
|
-
- **0.259.0**: `baker canvas scaffold-ad` is listed in `baker canvas --help` with a description, and the three video routes are separated in the skill. It had a usage line and no description row, so an agent reading help saw two scaffolders explained and a bare name — and three runs from the same prompt took three different wrong paths: hand-directing the flow, reproducing a competitor ad found via `winning-ads`, and hand-authoring a canvas. The routes now state their own boundary: `scaffold-ad` is the default for a new ad, `scaffold-video` only reproduces a video the USER supplied, and `video-flow.md` opens by saying so rather than calling itself the default eleven times.
|
|
6043
|
-
- **0.257.0**: the frame-vision pass now asks whether what is on screen could physically happen, not just whether the frame is empty. The defect that motivated it was a generated shot of a solar panel roughly five metres tall being lifted onto a roof by one person — well lit, on brief, perfectly legible, and impossible. That is what reads loudest as "AI-generated", and the previous question could not see it: nothing was missing, something present was the wrong size. Asked the new question, the pass called the rejected shot *"physically implausible due to the immense weight and surface area"* and the replacement *"consistent with what two people could reasonably maneuver"* — the same verdict a person reached, unprompted.
|
|
6044
|
-
- **0.256.0**: the pre-render gate reports caption cards that end mid-clause. The first cut of this check asked for consistency and got it the wrong way round — stripping terminal punctuation makes the cards agree and leaves them wrong, because "En solo nueve días tu casa" is not a line anyone wrote, it is a sentence halved by a word count. Captions split where the script punctuates; each card is then a clause carrying its own mark, grammatical, and consistent as a by-product. The last card is exempt, since a CTA legitimately ends bare. Reported, never rewritten — the copy belongs to whoever wrote it.
|
|
6015
|
+
- **0.297.0**: `baker images describe <id>` and `baker videos describe <id>` correct a library asset's stored `name`, `description` or `tags`. Until now `--context` at ingest time was the only way to influence a description, so an AI description that came out wrong was unfixable by an agent — and that description is what every `baker images library` / `baker videos search` retrieves on, which made the asset quietly unfindable rather than merely mislabelled. Only the flags passed are changed; the rest keep their stored values, because the dashboard's editor always has all three in a form and an agent fixing one sentence does not. `--tags` replaces the whole set (as the dashboard's does) and is repeatable as well as comma-separated, via the shared `repeatedFlags` helper — read off `rawArgs` because citty collapses a repeated flag to its last value, which on a wholesale-replace write deletes the rest. Compact by default; `--full` returns the whole library row in the same round trip. Both re-index in the background, so the response hints that an immediate re-search may still rank on the old wording. A row that is still being analysed is refused with `CONFLICT` rather than written: the describe pass overwrites `name`/`description`/`tags` with the model's own output when it lands, so a correction made in that window disappeared minutes after the CLI reported success. The dashboard never hit it because a non-ready card is not clickable; the agent's door had no such gate. An `error` row stays writable — nothing is scheduled against it.
|
|
6016
|
+
|
|
6017
|
+
## Publishing
|
|
6045
6018
|
|
|
6046
6019
|
### Auto-publish (CI)
|
|
6047
6020
|
|
|
@@ -6086,6 +6059,14 @@ Pushing to `main` with changes in `packages/cli/` triggers the GitHub Actions wo
|
|
|
6086
6059
|
|
|
6087
6060
|
- **0.271.0**: **`--format demandGenVideo` — the Demand Gen ad most Demand Gen spend actually runs through can be edited.** A `DEMAND_GEN_VIDEO_RESPONSIVE_AD` keeps its copy in `demandGenVideoResponsiveAd`, which has a `longHeadlines` list no other ad format has and takes its business name as a text asset rather than a string. Baker modelled only the multi-asset Demand Gen ad and labelled all four Demand Gen types as one format, so every served video ad was uneditable: the strict content schema refused `longHeadlines` and named a field instead of a missing format, and the only route left was the Google Ads interface. On the account that surfaced it, Demand Gen was 76% of the spend. New flags on `ads create|update`: `--long-headlines` (up to 5 × 90 chars, this format only), `--video-assets`, `--logo-image-assets`, `--call-to-action-assets`; a create with no video is refused with the `assets create` call to make first, and an omitted media list on an update leaves that media on the ad. Two more gates ship with it. **A content flag a format does not read is now refused instead of dropped** — `--long-headlines` on `--format demandGen` staged the copy without them and reported success, the same silent-drop the backend's strict schemas exist to stop. And **the format is checked against the live `ad_group_ad.ad.type` when it stages**: a mismatch is refused with the right format named, and the two Demand Gen types Baker writes no format for (`DEMAND_GEN_CAROUSEL_AD`, `DEMAND_GEN_PRODUCT_AD`) are refused by name, so "Baker cannot edit this ad" arrives at stage time rather than as a publish failure a Session too late.
|
|
6088
6061
|
|
|
6062
|
+
- **0.293.0**: an `assets detach` whose asset link is not on the account is refused **at stage time**, and an asset-link read that leaves the link's own status unscoped is refused in preflight. Both come from one publish: 74 of 85 staged ops came back `RESOURCE_NOT_FOUND` — 67 ad-group sitelinks and 7 campaign ones — twelve hours after the agent reported them staged, against a Session that had already merged. Nothing checked them: `google.assetLink.detach` had no entry in the stage-time snapshot map, so its target read back as "read failed" (silent) instead of "not found" (refused), exactly the gap that was closed for `audienceCriterion`. The read that produced the list had the same hole from the other side — it scoped `campaign.status` and `ad_group.status` and said nothing about `campaign_asset.status` / `ad_group_asset.status`, and Google returns a removed link like any other row, so already-detached extensions read as live. The snapshot query excludes `REMOVED` for that reason: a retired link is zero rows, which is the refusal. A bare-id target still only warns — it names no level, so there is no row to read and a refusal would be a guess.
|
|
6063
|
+
|
|
6064
|
+
Two rules the new chains brought with them. **`campaign_asset` and `ad_group_asset` segment on their owners**, so a `campaign.*` / `ad_group.*` field used in WHERE must also be SELECTed or Google refuses the whole statement (`EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE`) — the rule that already applied to `campaign_budget`, now keyed off a table rather than one resource, and applied to the query `INCOMPLETE_STATUS_CHAIN` hands back so the corrected command is one you can actually run. Checked live on v23 against 3865083115: `ad_group_ad`, `ad_group_criterion` and `asset_group_asset` filter their ancestors freely, these two do not. And **`asset_group_asset` carries the same status** its campaign and asset group do not, so its chain gained `asset_group_asset.status` too — the Performance Max `asset-performance` preset scopes and shows it.
|
|
6065
|
+
|
|
6066
|
+
Underneath both: **`query` now returns a `.resource_name` you selected.** Google injects `resource_name` into every row whether or not it was asked for, and the backend stripped all of them as noise — including the one the SELECT clause named. For an asset link that column *is* the identity (`customers/{cid}/adGroupAssets/{adGroupId}~{assetId}~{FIELD_TYPE}`; there is no id to detach by), so the read the docs prescribe — `SELECT ad_group_asset.resource_name …` — came back without it and composing the string by hand was the only route left. Auto-injected resource names are still stripped; a selected one is kept. This also repairs the `asset-groups detach` instruction, which pointed at `asset_group_asset.resource_name` and could not have worked either.
|
|
6067
|
+
|
|
6068
|
+
- **0.291.0**: **the image handover Task no longer depends on having uploaded the images.** It was built only from staged `asset.create` image ops, so a Session that audited a live account — found the brand campaign carrying 22 image extensions and the generic one carrying none, and reached for `assets attach` on assets that were *already in the library* — got Google's refusal and nothing else: no upload to hang a Task on, and a CLI hint telling the agent not to raise one by hand because "Baker stages it itself". The one step only the user can take reached them as a sentence in a chat that scrolls away. An image `assets attach` is now **skipped rather than refused**: it still never reaches Google (re-verified live with `validate_only` on v23 *and* v25 against 3865083115, against a control op that validates clean in the same request — `AD_IMAGE` → `UNSUPPORTED_FIELD_TYPE` at customer and campaign level, `MARKETING_IMAGE` → `FIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE`, `BUSINESS_LOGO` → `CUSTOMER_NOT_VERIFIED`, which is what proves the field type is the objection; **we are not on Google's allowlist for it**), but the skip carries the image and campaign names, recorded on the draft so the next staged op cannot recompute the Task away, and a batch that also carries sitelinks keeps them instead of failing whole. The schema stopped refusing the field type for the same reason: a boundary refusal has no chat to record a handover against.
|
|
6069
|
+
|
|
6089
6070
|
### Testing a pre-release in sandboxes
|
|
6090
6071
|
|
|
6091
6072
|
```bash
|
|
@@ -35,10 +35,6 @@
|
|
|
35
35
|
|
|
36
36
|
.caption-group {
|
|
37
37
|
position: absolute;
|
|
38
|
-
/* Absolutely positioned with no width, a card sizes to its content and
|
|
39
|
-
runs off the 1080px frame rather than wrapping. Matches the container's
|
|
40
|
-
60px gutters, so a long clause becomes two lines instead of an overflow. */
|
|
41
|
-
max-width: 960px;
|
|
42
38
|
font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
|
|
43
39
|
font-size: {{font_size}}px;
|
|
44
40
|
font-weight: 900;
|
|
@@ -84,27 +80,10 @@
|
|
|
84
80
|
const container = document.getElementById('captions');
|
|
85
81
|
const tl = gsap.timeline({ paused: true });
|
|
86
82
|
|
|
87
|
-
// A card closes where the SCRIPT closes, not on a word count. Slicing every
|
|
88
|
-
// N words gave cards reading "OTRA VEZ, EN" — half a thought ending on a
|
|
89
|
-
// preposition. The count stays as a ceiling (a long clause still has to be
|
|
90
|
-
// split), and a linking word never ends a card: it belongs to what follows.
|
|
91
|
-
const CLOSES = /[.,;:!?\u2026]$/;
|
|
92
|
-
const CARRIES_ON = new Set([
|
|
93
|
-
'de','del','al','a','en','y','e','o','u','que','la','el','los','las','un','una',
|
|
94
|
-
'con','por','para','su','tu','mi','más','mas','the','of','to','and','in','for','your',
|
|
95
|
-
]);
|
|
96
|
-
const carriesOn = (w) => CARRIES_ON.has(String(w.text || '').replace(/[.,;:!?\u2026]$/, '').toLowerCase());
|
|
97
|
-
|
|
98
83
|
const groups = [];
|
|
99
|
-
let
|
|
100
|
-
|
|
101
|
-
current.push(word);
|
|
102
|
-
const last = current[current.length - 1];
|
|
103
|
-
const closes = CLOSES.test(String(last.text || '')) ||
|
|
104
|
-
(current.length >= WORDS_PER_GROUP && !carriesOn(last));
|
|
105
|
-
if (closes) { groups.push(current); current = []; }
|
|
84
|
+
for (let i = 0; i < transcript.length; i += WORDS_PER_GROUP) {
|
|
85
|
+
groups.push(transcript.slice(i, i + WORDS_PER_GROUP));
|
|
106
86
|
}
|
|
107
|
-
if (current.length > 0) groups.push(current);
|
|
108
87
|
|
|
109
88
|
groups.forEach((group, gi) => {
|
|
110
89
|
const el = document.createElement('div');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
debugLogSetting
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DZUVUGEP.js";
|
|
4
4
|
|
|
5
5
|
// src/debugLog.ts
|
|
6
6
|
import { appendFileSync, mkdirSync, renameSync, statSync } from "fs";
|
|
@@ -150,4 +150,4 @@ export {
|
|
|
150
150
|
readBodyForLog,
|
|
151
151
|
installStreamTaps
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=chunk-
|
|
153
|
+
//# sourceMappingURL=chunk-2IB3IL4K.js.map
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
handleConnectionError,
|
|
3
3
|
needsConnectionFix,
|
|
4
4
|
writeAdsJson
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EX2OIOVL.js";
|
|
6
6
|
import {
|
|
7
7
|
ApiError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GU7IWEBC.js";
|
|
9
9
|
import {
|
|
10
10
|
getEnv
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DZUVUGEP.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/ads/meta/shared.ts
|
|
14
14
|
var DAY_MS = 864e5;
|
|
@@ -108,4 +108,4 @@ export {
|
|
|
108
108
|
csvOrJson,
|
|
109
109
|
resolveEffectiveStatus
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-D3HHUBIL.js.map
|
|
@@ -311,12 +311,6 @@ function requireChatId() {
|
|
|
311
311
|
function resolveChatId(chat) {
|
|
312
312
|
return typeof chat === "string" && chat.length > 0 ? chat : requireChatId();
|
|
313
313
|
}
|
|
314
|
-
function hasFrameVisionKey() {
|
|
315
|
-
return Boolean(frameVisionKey());
|
|
316
|
-
}
|
|
317
|
-
function frameVisionKey() {
|
|
318
|
-
return process.env.GEMINI_API_KEY;
|
|
319
|
-
}
|
|
320
314
|
function captureBudgetMs() {
|
|
321
315
|
const raw = Number(process.env.BAKER_CAPTURE_BUDGET_MS);
|
|
322
316
|
return Number.isFinite(raw) && raw > 0 ? raw : null;
|
|
@@ -346,11 +340,9 @@ export {
|
|
|
346
340
|
debugLogSetting,
|
|
347
341
|
requireChatId,
|
|
348
342
|
resolveChatId,
|
|
349
|
-
hasFrameVisionKey,
|
|
350
|
-
frameVisionKey,
|
|
351
343
|
captureBudgetMs,
|
|
352
344
|
captureProxyCredentials,
|
|
353
345
|
captureVimeoCookie,
|
|
354
346
|
childEnvWith
|
|
355
347
|
};
|
|
356
|
-
//# sourceMappingURL=chunk-
|
|
348
|
+
//# sourceMappingURL=chunk-DZUVUGEP.js.map
|