synthesisui 0.16.507 → 0.16.508

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/dist/claude-md.js CHANGED
@@ -409,7 +409,17 @@ async function renderRegion(projectRoot, installed) {
409
409
  * O que NÃO é recuperável e por isso fica: que existe um portão, que ele roda por arquivo tocado, e
410
410
  * que um valor sem token não se inventa. É gate obrigatório, não documentação.
411
411
  */
412
- const selfCheck = recall.available
412
+ /**
413
+ * O PLACAR DE FIDELIDADE (jornada "o placar de fidelidade", E05, 23/10): quando o DESIGN.md da raiz veio de um site lido no
414
+ * SynthesisUI (ele carrega a leitura do site, `synthesisui:reading`), o agente confere a página contra o site antes de
415
+ * entregar - sem a pessoa pedir. Medido nas três landings da Tilde: os valores do sistema batiam, e o que variava de
416
+ * rodada para rodada era a composição, que ninguém conferia.
417
+ */
418
+ const designMd = await readFile(join(projectRoot, "DESIGN.md"), "utf8").catch(() => "");
419
+ const fidelityLine = designMd.includes("synthesisui:reading v1")
420
+ ? "\n\n**Before you hand a page over, check its fidelity to the site this DESIGN.md was read from.** With the dev server up, run `npx synthesisui@latest fidelity`, fix every value and pattern it lists (what the brief rules out is already left out), run it again, and tell the person the final score. Fidelity is the source's grammar, not its content: never copy its words, images or logos."
421
+ : "";
422
+ const selfCheck = (recall.available
413
423
  ? `
414
424
 
415
425
  **Check what you wrote** with \`check_file\` on the file you touched, and fix what it names before
@@ -418,7 +428,7 @@ you would file a missing component. And call \`refresh_system\` once per session
418
428
  here: a newer reader sees styles the old one could not.`
419
429
  : (await hasHook(projectRoot))
420
430
  ? SELF_CHECK_HOOKED
421
- : SELF_CHECK_MANUAL;
431
+ : SELF_CHECK_MANUAL) + fidelityLine;
422
432
  /**
423
433
  * O BOOTSTRAP É REDUZIDO QUANDO EXISTE CAMINHO DE VOLTA - e o portão é CAPACIDADE, não nome.
424
434
  *
@@ -355,7 +355,7 @@
355
355
  * bloco do `CLAUDE.md` ensina a leitura da primeira tela em vez do `/sui-import-ds`; com o `rules.json` e o impeccable no
356
356
  * projeto, diz que o revisor dele é só da criação. Uma pasta escrita antes manda o agente importar e não fala do revisor.
357
357
  */
358
- export const MATERIALISER_SINCE = "0.16.501";
358
+ export const MATERIALISER_SINCE = "0.16.508";
359
359
  /**
360
360
  * A ÚLTIMA VERSÃO EM QUE O QUE O HOOK RODA MUDOU.
361
361
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synthesisui",
3
- "version": "0.16.507",
3
+ "version": "0.16.508",
4
4
  "description": "Bring SynthesisUI design systems into any project - tokens, typed components, whole pages and an agent-ready CLAUDE.md manifest.",
5
5
  "type": "module",
6
6
  "bin": {