Day 1 (monorepo + Node layout engine): - Turborepo + pnpm workspaces with apps/web, apps/render-worker, and packages for types, layout-engine, prompts, api-lib. - @banner-studio/types: BannerSpec contract, every layer kind, ResolvedLayer, zod schemas mirroring each interface. - @banner-studio/layout-engine: Dropflow WASM wrapper, text measurement, shrink-to-fit, push_siblings, resolveLayout. Snapshot-tested. Day 2 (browser parity + AI pipeline): - Layout engine ./browser subpath: same resolveLayout in the browser via Dropflow WASM build. Quarantined wasm-locator import (dropflow 0.5.1 exports gap). - Cross-group push_siblings bug fix: deltas now thread through group recursion via a shared accumulator; regression test added. - DEMO_TEMPLATE_300x250 promoted to packages/layout-engine/src/templates/. - @banner-studio/prompts: versioned extract + generate prompts with zod-defined tool schemas (claude-sonnet-4-6, forced tool-use). - @banner-studio/api-lib: CSV feed loader, extract/generate/route-node/ assemble agents, orchestrator returning fully-resolved BannerSpec. Generate agent retries on character-limit overflow. - apps/web (Next.js 14 App Router): /api/generate route, /parity diff page, promise-singleton browser engine init. - feeds/demo.csv with five hand-authored rows of varied length. - SLICE_DEVIATIONS.md documents the five intentional gaps from ARCHITECTURE.md with V1 reversal paths. Verified end-to-end: POST /api/generate against the live Claude API returns three resolved BannerSpecs and two honestly-skipped rows (overflow after two attempts). 26 unit + integration tests passing.
1.4 KiB
1.4 KiB
| 1 | raw_description | product | offer | hero_image_url | click_url |
|---|---|---|---|---|---|
| 2 | Compact noise-cancelling earbuds with 8-hour battery. | Wireless Earbuds | https://cdn.example/img/earbuds.jpg | https://example.com/earbuds | |
| 3 | Sustainably-made denim. Recycled cotton, organic indigo dye, made in Portugal in small batches. | Selvedge Jeans | https://cdn.example/img/jeans.jpg | https://example.com/jeans | |
| 4 | A truly transformative skincare regimen developed by award-winning dermatologists, featuring patented peptide complexes, marine collagen boosters, and a triple-action retinol blend designed to visibly reduce fine lines, even out skin tone, and restore radiant elasticity across all skin types over a clinically-tested eight-week protocol. | Peptide Serum | Save 20% this week | https://cdn.example/img/serum.jpg | https://example.com/serum |
| 5 | Single-origin Ethiopian coffee, light roast. | Pour-Over Coffee | Free shipping | https://cdn.example/img/coffee.jpg | https://example.com/coffee |
| 6 | Our flagship modular sectional sofa is hand-built by a small workshop in Northern Italy using kiln-dried hardwood frames, eight-way hand-tied steel springs, high-resilience foam cushions wrapped in down, and the finest Belgian linen upholstery available in fourteen heritage colors, with a lifetime frame warranty and complimentary white-glove delivery anywhere in the continental United States. | Modular Sofa | https://cdn.example/img/sofa.jpg | https://example.com/sofa |