synthesisui 0.16.490 → 0.16.491
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/commands/sync.js +33 -2
- package/package.json +1 -1
package/dist/commands/sync.js
CHANGED
|
@@ -48,6 +48,32 @@ import { upgrade } from "./upgrade.js";
|
|
|
48
48
|
export function draftLine(slug, base) {
|
|
49
49
|
return `this went into your DRAFT - your repository still has what you installed. It reaches the disk once you publish${base ? `: ${base}/dashboard/mine/${slug}/publish` : ""}\n then: npx synthesisui@latest upgrade ${slug}`;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* O QUE O AUTOPILOT FEZ COM ESTE ENVIO - jornada "o Autopilot que age", E05 (05/10).
|
|
53
|
+
*
|
|
54
|
+
* A rota do censo manda `autopilot` desde que ele existe, com o comentário "o CLI imprime isto" - e este comando nunca o
|
|
55
|
+
* leu. Medido no localhost em 05/10: o Autopilot publicou a v2 e a v3 sozinho, e o terminal continuou dizendo "this went
|
|
56
|
+
* into your DRAFT (...) It reaches the disk once you publish", mandando publicar o que já estava publicado. A regra do
|
|
57
|
+
* dono: sempre dizer o que publicou, ou o que segurou e por quê.
|
|
58
|
+
*
|
|
59
|
+
* Um servidor que não manda o campo (anterior a 05/10) cai na frase de sempre - o que ele não disse, a gente não inventa.
|
|
60
|
+
*/
|
|
61
|
+
export function afterSendLines(input) {
|
|
62
|
+
const ap = input.autopilot;
|
|
63
|
+
const why = (ap?.why ?? "").replace(/^Autopilot:\s*/, "").trim();
|
|
64
|
+
if (ap?.published) {
|
|
65
|
+
return [
|
|
66
|
+
`✓ Autopilot published v${ap.published}${why ? ` - ${why}` : ""}`,
|
|
67
|
+
` your repository gets it with: npx synthesisui@latest upgrade ${input.slug}`,
|
|
68
|
+
];
|
|
69
|
+
}
|
|
70
|
+
if (input.written <= 0)
|
|
71
|
+
return [];
|
|
72
|
+
const draft = draftLine(input.slug, input.base);
|
|
73
|
+
return ap && why
|
|
74
|
+
? [`· Autopilot held this version for you: ${why}`, draft]
|
|
75
|
+
: [draft];
|
|
76
|
+
}
|
|
51
77
|
/**
|
|
52
78
|
* O TRABALHO DELA FOI PARA A RAMIFICAÇÃO DELA, E ISSO SE DIZ - `INV-BRANCH-02`.
|
|
53
79
|
*
|
|
@@ -864,8 +890,13 @@ export async function remeasure(args) {
|
|
|
864
890
|
* Só aparece quando algo FOI escrito: um `sync` que não mudou nada não tem o que publicar, e
|
|
865
891
|
* cobrar um publish vazio é o aviso que ensina a ignorar o próximo.
|
|
866
892
|
*/
|
|
867
|
-
|
|
868
|
-
|
|
893
|
+
for (const line of afterSendLines({
|
|
894
|
+
slug,
|
|
895
|
+
base,
|
|
896
|
+
written: out.written ?? 0,
|
|
897
|
+
autopilot: out.autopilot,
|
|
898
|
+
}))
|
|
899
|
+
console.log(body(line.startsWith("✓") ? paint.strong(line) : paint.faint(line)));
|
|
869
900
|
/**
|
|
870
901
|
* O QUE MUDOU DESDE A ÚLTIMA VEZ - a linha que só uma RE-medição pode dar.
|
|
871
902
|
*
|
package/package.json
CHANGED