synthesisui 0.16.152 → 0.16.153
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/doctor.js +14 -0
- package/dist/repo-state.js +3 -0
- package/package.json +1 -1
package/dist/commands/doctor.js
CHANGED
|
@@ -1292,6 +1292,20 @@ export async function doctor(opts) {
|
|
|
1292
1292
|
console.log(body("Nothing was written. When the list above is what you want:"));
|
|
1293
1293
|
console.log(paint.blue(snippet(["npx synthesisui@latest doctor --fix --write"])));
|
|
1294
1294
|
}
|
|
1295
|
+
/**
|
|
1296
|
+
* O CONSERTO DEIXA RASTRO - ver `CheckEvent.kind: "fix"`.
|
|
1297
|
+
*
|
|
1298
|
+
* Sem esta linha, "ele trocou 129 valores por token" existia só no terminal daquele minuto: o
|
|
1299
|
+
* ledger deduz conserto por arquivo que limpou, e um `--fix` que toca 79 arquivos de uma vez não
|
|
1300
|
+
* aparece como um ato.
|
|
1301
|
+
*/
|
|
1302
|
+
if (writing && result.applied.length > 0) {
|
|
1303
|
+
await appendEvent(root, {
|
|
1304
|
+
kind: "fix",
|
|
1305
|
+
at: new Date().toISOString(),
|
|
1306
|
+
named: result.applied.length,
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1295
1309
|
if (writing && result.applied.length > 0) {
|
|
1296
1310
|
console.log("");
|
|
1297
1311
|
console.log(body(paint.dim("Read the diff before committing - it is your code, and this replaced literals with the tokens your own system declares.")));
|
package/dist/repo-state.js
CHANGED
|
@@ -53,6 +53,9 @@ export async function repoStateOf(projectRoot, slug, cli) {
|
|
|
53
53
|
...(typeof doctor?.crossFamily === "number"
|
|
54
54
|
? { crossFamily: doctor.crossFamily }
|
|
55
55
|
: {}),
|
|
56
|
+
...(typeof lock?.fetchedAt === "string"
|
|
57
|
+
? { installedAt: lock.fetchedAt }
|
|
58
|
+
: {}),
|
|
56
59
|
};
|
|
57
60
|
/** Só o `cli` não é estado: sem nada do repo, não há o que reportar. */
|
|
58
61
|
return Object.keys(payload).length > 1 ? payload : null;
|
package/package.json
CHANGED