synthesisui 0.16.196 → 0.16.197

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.
@@ -352,7 +352,15 @@ export async function remeasure(args) {
352
352
  const mark = {
353
353
  at: new Date().toISOString(),
354
354
  components: out.written ?? 0,
355
- declarations: countDeclarations(census),
355
+ /**
356
+ * LIDO DO CENSO, e não recontado aqui - ver `coverage.declarations`.
357
+ *
358
+ * A primeira versão contava por conta própria e deu 165 onde o relatório diz 519: ela somava só o
359
+ * `base` de cada look, e a conta do produto soma `base`, `dark` e os estados. Dois números sobre
360
+ * um fato só é como uma tela passa a se contradizer, e a única defesa é não ter o segundo.
361
+ */
362
+ declarations: census.coverage
363
+ ?.declarations ?? 0,
356
364
  seen: sum(led?.counted),
357
365
  interpreted: sum(led?.interpreted),
358
366
  };
@@ -361,28 +369,6 @@ export async function remeasure(args) {
361
369
  if (!args.full)
362
370
  console.log(body(paint.faint("everything the reader saw: npx synthesisui sync --full")));
363
371
  }
364
- /** Quantas declarações de estilo as receitas carregam - o número que a tela mostra ao lado da nota. */
365
- function countDeclarations(census) {
366
- const looks = census.looks ?? {};
367
- let n = 0;
368
- const walk = (node) => {
369
- if (Array.isArray(node)) {
370
- for (const item of node)
371
- walk(item);
372
- return;
373
- }
374
- if (!node || typeof node !== "object")
375
- return;
376
- for (const value of Object.values(node))
377
- if (typeof value === "string")
378
- n += 1;
379
- else
380
- walk(value);
381
- };
382
- for (const look of Object.values(looks))
383
- walk(look.base);
384
- return n;
385
- }
386
372
  /**
387
373
  * Pergunta uma vez, e só num terminal de verdade.
388
374
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synthesisui",
3
- "version": "0.16.196",
3
+ "version": "0.16.197",
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": {