@koda-sl/baker-cli 0.141.0 → 0.142.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 +15 -0
- package/dist/cli.js +1364 -189
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4626,6 +4626,21 @@ baker creatives publish ./canvas/<run_id>/<final>.png --title "Spring Offer 4x5"
|
|
|
4626
4626
|
|
|
4627
4627
|
Without `--slug` the command behaves as before (one creative record per published image). With `--slug` it upserts the repo-convention row — the same one the dashboard's Creatives tab and the `src/creatives/{slug}/` folder describe — so publish, repo sync, and run history all land on a single record regardless of order.
|
|
4628
4628
|
|
|
4629
|
+
## Landing Quality (`baker landing`)
|
|
4630
|
+
|
|
4631
|
+
Deterministic design-quality critic for landing pages — an offline, no-LLM detector for the well-known "AI slop" tells (gradient text, overused fonts like Inter, side-tab colored borders, cream/parchment grounds, purple-on-heading palettes, buzzword copy, broken images, and more). It scores a landing's `.astro` source and returns findings tiered **block / warn / advisory**.
|
|
4632
|
+
|
|
4633
|
+
```bash
|
|
4634
|
+
baker landing critique spring-offer # score src/pages/spring-offer/
|
|
4635
|
+
baker landing critique spring-offer --full # also print advisory-tier findings
|
|
4636
|
+
```
|
|
4637
|
+
|
|
4638
|
+
- **Advisory by design — findings never fail it.** A finding is guidance, not a gate; the command errors (exit 2) only on a wrong slug (`NOT_FOUND` / `INVALID_SLUG`, with `error.fix.availableSlugs`).
|
|
4639
|
+
- **BRAND.md is the allowlist.** A font, hue, or ground that the client's `src/brand/BRAND.md` (mirrored into `src/styles/global.css` `@theme`, hex or oklch) commits is a decision, not a tell — matched values downgrade to advisory `brandDrift` so the critic never fights a real brand.
|
|
4640
|
+
- **Records a freshness snapshot** to `.cache/landing-critique/<slug>.json` (the source hash it scored). The publish quality gate reads it to enforce that every changed landing was critiqued and ships no block-tier tell. Re-run after edits so the snapshot stays fresh.
|
|
4641
|
+
|
|
4642
|
+
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.
|
|
4643
|
+
|
|
4629
4644
|
## Help & Discovery
|
|
4630
4645
|
|
|
4631
4646
|
Every command supports `--help` for usage info:
|