synthesisui 0.16.278 → 0.16.279

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.
@@ -1,3 +1,4 @@
1
+ import { existsSync } from "node:fs";
1
2
  import { readdir, readFile, writeFile } from "node:fs/promises";
2
3
  import { join, resolve } from "node:path";
3
4
  import { isOlderCli } from "../cli-version.js";
@@ -98,7 +99,26 @@ export async function sync(opts) {
98
99
  }
99
100
  if (!slug) {
100
101
  console.log(section("Sync"));
101
- console.log(body("No installed system here, so there is nowhere to sync to."));
102
+ /**
103
+ * UM BECO SEM SAÍDA CUSTA UMA SESSÃO - e este custou uma, medido em 22/08.
104
+ *
105
+ * A frase dizia só que não havia sistema instalado. Ela é verdadeira e não diz o que fazer, e o
106
+ * dono rodou o comando em dois repositórios diferentes tentando descobrir - nos dois havia um
107
+ * `census.json`, que é o que faz alguém concluir que o sistema está ali.
108
+ *
109
+ * A DISTINÇÃO QUE ELA PRECISAVA FAZER: um repositório que rodou `import` tem censo e NÃO tem
110
+ * sistema instalado. Ele criou o sistema na plataforma e nunca o trouxe de volta - e o `sync` é
111
+ * um canal de mão dupla, então ele precisa do `.lock` para saber qual slug este repositório
112
+ * alimenta.
113
+ *
114
+ * Com o censo em mão a frase pode nomear o próximo comando em vez de descrever o estado.
115
+ */
116
+ const measured = existsSync(join(root, "_synthesisui", "census.json"));
117
+ console.log(body(measured
118
+ ? "This repo has a census but no installed system, so there is nowhere to send it. `import` created the system on the platform; bringing it back is what tells sync which one this repo feeds:"
119
+ : "No installed system here, so there is nowhere to sync to. Install one first:"));
120
+ console.log(body(paint.blue(" npx synthesisui@latest bp <slug> # or: add <slug>")));
121
+ console.log(body(paint.faint(" npx synthesisui@latest list --mine # the slugs you own")));
102
122
  return;
103
123
  }
104
124
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synthesisui",
3
- "version": "0.16.278",
3
+ "version": "0.16.279",
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": {