fix(product-launch): consolidate media brand and audio contracts (#2408)

* fix(product-launch): preserve hoisted media offsets

* fix(product-launch): preserve brand font and accent roles

* fix(product-launch): honor TTS provider selection

* fix(product-launch): preserve approved video geometry

* fix(skills): enforce media geometry and font classification

* fix(skills): align secondary brand accents
This commit is contained in:
Miguel Ángel
2026-07-14 17:11:55 -04:00
committed by GitHub
parent 4b0b89e8b1
commit 6ac18fd68d
14 changed files with 289 additions and 52 deletions
@@ -32,6 +32,7 @@ import { fileURLToPath } from "node:url";
import {
brandRolesFromStats,
chroma,
isIconFont,
lum,
parseColors,
parseFonts,
@@ -163,10 +164,6 @@ let brandFontWeights = []; // weights the brand text font actually ships (tokens
let brandColorStats = []; // rich per-color usage stats (areaBg / interactiveBg / textCount …)
// Icon/glyph fonts capture surfaces as "fonts" — they are never the brand text face
// (webflow-icons, Font Awesome, icomoon …) and must not become display/body or contribute weights.
const isIconFont = (name) =>
/(?:^|[\s_-])icons?(?:[\s_-]|$)|icomoon|font\s*-?awesome|glyphicons?|material\s*icons|feather\s*icons/i.test(
String(name),
);
if (existsSync(tokensPath)) {
try {
const t = JSON.parse(readFileSync(tokensPath, "utf8"));