synthesisui 0.16.383 → 0.16.384

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.
@@ -27,9 +27,30 @@ export function craftLines(craft) {
27
27
  if (craft.score === null) {
28
28
  return bodyWrapped("No component of yours was read yet, so there is no line to draw. Your tokens came through - the components are next.").map(body);
29
29
  }
30
- const lines = [
31
- body(`${paint.strong(`${craft.score}/100`)} on your ${craft.authored} component${craft.authored === 1 ? "" : "s"} - never on our kit, never on a demo.`),
32
- ];
30
+ /**
31
+ * O DENOMINADOR EM PALAVRAS, e ele existe para a nota não subir calada.
32
+ *
33
+ * Um componente sem receita nenhuma sai da média desde 06/09 - ninguém o escreveu ainda, e
34
+ * contá-lo como zero afirma que o código dele é ruim onde não há código. Mas uma nota que
35
+ * melhora sem explicação lê como régua afrouxada, então a frase diz sobre QUANTOS ela foi
36
+ * tirada.
37
+ *
38
+ * SÓ QUANDO EXISTE, e `unwritten` ausente é diferente de zero: um servidor anterior a esta
39
+ * versão não manda o campo, e afirmar "todos têm receita" ali seria inventar.
40
+ */
41
+ const plural = craft.authored === 1 ? "" : "s";
42
+ const written = craft.unwritten === undefined ? null : craft.authored - craft.unwritten;
43
+ const apart = written !== null && craft.unwritten ? craft.unwritten : 0;
44
+ const lines = bodyWrapped(`${paint.strong(`${craft.score}/100`)} on ${apart ? `${written} of your ${craft.authored}` : `your ${craft.authored}`} component${plural} - never on our kit, never on a demo.`).map(body);
45
+ /**
46
+ * A LINHA PRÓPRIA, e não uma oração dentro da primeira.
47
+ *
48
+ * Escrita junto, a frase ocupava três linhas no terminal e o fato principal - a nota - ficava
49
+ * enterrado no meio da ressalva. A nota é o que ele veio ver; por que ela é sobre 49 e não 62 é
50
+ * a segunda pergunta, e ela merece a segunda linha.
51
+ */
52
+ if (apart)
53
+ lines.push(...bodyWrapped(`${apart} have no recipe yet: counted apart, never against you.`).map((l) => body(paint.dim(l))));
33
54
  /**
34
55
  * OS RÓTULOS ALINHADOS PELO MAIS LONGO, e a largura é medida e não estimada: os nomes chegam do
35
56
  * servidor, então um padding fixo desalinharia no dia em que uma lente for renomeada lá.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synthesisui",
3
- "version": "0.16.383",
3
+ "version": "0.16.384",
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": {