synthesisui 0.16.515 → 0.16.516

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.
@@ -22,7 +22,14 @@ export async function landing(slug, requestText, opts) {
22
22
  if (chosen.length === 0) {
23
23
  const parts = await fetchLandingParts(base, slug);
24
24
  const byPlace = (place) => parts.filter((p) => p.place === place);
25
- const line = (p) => ` ${p.id.padEnd(20)} ${p.type} · ${p.name}${p.note ? ` (${p.note})` : ""}`;
25
+ /* O MESMO MODELO DO BUILDER (jornada "as peças em dois eixos", E05, 24/10): o tom e o que a peça pede ao lado do nome,
26
+ e o "quando usar" embaixo. Um registro de antes manda só a `note`, e a linha sai como saía. */
27
+ const line = (p) => p.level
28
+ ? [
29
+ ` ${p.id.padEnd(20)} ${p.type} · ${p.name} - ${p.level}${p.needs ? `, needs ${p.needs.toLowerCase()}` : ""}`,
30
+ ...(p.fit ? [` ${"".padEnd(20)} use it when: ${p.fit}`] : []),
31
+ ].join("\n")
32
+ : ` ${p.id.padEnd(20)} ${p.type} · ${p.name}${p.note ? ` (${p.note})` : ""}`;
26
33
  const out = [
27
34
  `The landing sections of "${slug}". Pick one navigation, one hero, the body sections in order, and one footer -`,
28
35
  "the ones that fit this request:",
@@ -37,6 +44,9 @@ export async function landing(slug, requestText, opts) {
37
44
  "Bottom",
38
45
  ...byPlace("footer").map(line),
39
46
  "",
47
+ ...(parts.some((p) => p.level === "Rule breaker")
48
+ ? ["Rule breaker: at most one per page - with two, they compete.", ""]
49
+ : []),
40
50
  "Then run, with your picks in page order, and follow the prompt it prints:",
41
51
  ` npx synthesisui@latest landing ${slug} --sections <nav>,<hero>,<body...>,<footer> "${request}"`,
42
52
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synthesisui",
3
- "version": "0.16.515",
3
+ "version": "0.16.516",
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": {