synthesisui 0.16.170 → 0.16.171

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,4 +1,4 @@
1
- import { readdir, readFile } from "node:fs/promises";
1
+ import { readdir, readFile, writeFile } from "node:fs/promises";
2
2
  import { join, resolve } from "node:path";
3
3
  import { readToken, resolveRegistry } from "../config.js";
4
4
  import { readEvents } from "../doctor/ledger.js";
@@ -248,6 +248,18 @@ export async function remeasure(args) {
248
248
  if (stored.reading)
249
249
  census.reading = stored.reading;
250
250
  await resolveReadParts(census, root).catch(() => { });
251
+ /**
252
+ * O CENSO FRESCO TAMBÉM FICA NO DISCO.
253
+ *
254
+ * O `sync` media, mandava, e não reescrevia `_synthesisui/census.json` - só o `import` escreve. O
255
+ * resultado é a plataforma com a medição de hoje e o disco com a de três dias atrás, e TRÊS
256
+ * comandos locais lendo a velha: `gaps`, `summary`, e a resolução de escopo. Medido em 07/08 no repo
257
+ * do dono: o arquivo era de 06/08 depois de dois syncs (dono, 07/08).
258
+ *
259
+ * Duas cópias da mesma medição que discordam é a família de bug que este repo mais pagou este ano.
260
+ * Falhar aqui não derruba a rodada: o que importava - o envio - já aconteceu.
261
+ */
262
+ await writeFile(join(root, "_synthesisui", "census.json"), `${JSON.stringify(census, null, 2)}\n`, "utf8").catch(() => { });
251
263
  /**
252
264
  * O AVISO, ANTES DE ENVIAR. `edited` são as receitas que uma pessoa escreveu na tela; o cruzamento
253
265
  * com o que acabou de ser medido é uma interseção de conjuntos, e é por isso que ele mora aqui em
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synthesisui",
3
- "version": "0.16.170",
3
+ "version": "0.16.171",
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": {