synthesisui 0.16.176 → 0.16.177

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.
package/dist/claude-md.js CHANGED
@@ -412,6 +412,7 @@ export async function syncClaudeMd(projectRoot) {
412
412
  const installed = await readInstalled(projectRoot);
413
413
  const region = await renderRegion(projectRoot, installed);
414
414
  let createdAny = false;
415
+ const changed = [];
415
416
  for (const home of HOMES) {
416
417
  const path = join(projectRoot, home.path);
417
418
  let existing = null;
@@ -435,6 +436,7 @@ export async function syncClaudeMd(projectRoot) {
435
436
  await mkdir(dirname(path), { recursive: true }).catch(() => { });
436
437
  await writeFile(path, `${home.frontmatter ?? ""}${region}\n`, "utf8");
437
438
  createdAny = true;
439
+ changed.push(home.path);
438
440
  continue;
439
441
  }
440
442
  const startIdx = existing.indexOf(START);
@@ -450,10 +452,12 @@ export async function syncClaudeMd(projectRoot) {
450
452
  const sep = existing.endsWith("\n") ? "\n" : "\n\n";
451
453
  next = `${existing}${sep}${region}\n`;
452
454
  }
453
- if (next !== existing)
455
+ if (next !== existing) {
454
456
  await writeFile(path, next, "utf8");
457
+ changed.push(home.path);
458
+ }
455
459
  }
456
- return { created: createdAny, count: installed.length };
460
+ return { created: createdAny, count: installed.length, changed };
457
461
  }
458
462
  /**
459
463
  * Onde o bloco JÁ está, para o `connect` poder dizer isso em vez de ficar calado.
@@ -173,7 +173,7 @@ export async function connect(opts) {
173
173
  const wired = await wireAgent(root, opts.version, want);
174
174
  // The block reads the settings we just wrote, so it must be regenerated
175
175
  // after them, not before.
176
- await syncClaudeMd(root);
176
+ const contract = await syncClaudeMd(root);
177
177
  console.log(section("Connected"));
178
178
  /**
179
179
  * O QUE ESTE CLI REESCREVEU NA PASTA DO SISTEMA - dito primeiro, porque é o que a pessoa não sabia
@@ -231,8 +231,18 @@ export async function connect(opts) {
231
231
  * qual ferramenta ela usa. Dizer os nomes é o que faz um time descobrir que a governança já chegou
232
232
  * no editor dele: até 05/08 ela só alcançava quem usa Claude Code, e ninguém tinha como saber.
233
233
  */
234
- for (const home of await blockHomes(root))
235
- console.log(body(`✓ ${home.padEnd(22)} ${home === "CLAUDE.md" ? "rewritten for what is installed" : "the same rules, where this agent reads them"}`));
234
+ /**
235
+ * `✓` PARA O QUE MUDOU - ver `syncClaudeMd.changed`. Esta linha era a única do bloco que
236
+ * marcava mudança sempre, e um `connect` seguido dizia "rewritten" sobre um arquivo intocado.
237
+ */
238
+ for (const home of await blockHomes(root)) {
239
+ const moved = contract.changed.includes(home);
240
+ console.log(body(`${moved ? "✓" : "·"} ${home.padEnd(22)} ${moved
241
+ ? home === "CLAUDE.md"
242
+ ? "rewritten for what is installed"
243
+ : "the same rules, where this agent reads them"
244
+ : "already says what is installed"}`));
245
+ }
236
246
  /**
237
247
  * The fourth layer, and the one that had no installer at all: the import
238
248
  * skill existed only in our own repo, so the only way to get it was to clone
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synthesisui",
3
- "version": "0.16.176",
3
+ "version": "0.16.177",
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": {