synthesisui 0.16.397 → 0.16.398
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 +18 -1
- package/package.json +1 -1
package/dist/commands/doctor.js
CHANGED
|
@@ -24,6 +24,7 @@ import { body, paint, section, snippet } from "../output.js";
|
|
|
24
24
|
import { setupPrompt } from "../setup-prompt.js";
|
|
25
25
|
import { installedThemeCss, whatOnlyTheSheetResolves, } from "../sheet-needed.js";
|
|
26
26
|
import { resolveDeps } from "../stack.js";
|
|
27
|
+
import { projectTongue } from "../their-tongue.js";
|
|
27
28
|
import { danglingTheirVars } from "../their-vars.js";
|
|
28
29
|
/**
|
|
29
30
|
* `synthesisui doctor` - the check nobody else ships.
|
|
@@ -1054,8 +1055,24 @@ export async function doctor(opts) {
|
|
|
1054
1055
|
* Sem esta linha, quem lê não tem como saber que a dependência é REMOVÍVEL, e a única saída
|
|
1055
1056
|
* visível é aceitar o import.
|
|
1056
1057
|
*/
|
|
1058
|
+
/**
|
|
1059
|
+
* E A SAÍDA SÓ É OFERECIDA QUANDO ELA EXISTE - senão o comando manda consertar o que não conserta.
|
|
1060
|
+
*
|
|
1061
|
+
* "re-run `component` and it speaks your own names instead" só é verdade onde há MAPA: onde algum
|
|
1062
|
+
* valor do sistema coincide com um nome que o repositório dele já declara. Sem mapa, a tradução
|
|
1063
|
+
* roda e não tem o que traduzir, regerar devolve o mesmo arquivo, e a folha é o caminho legítimo.
|
|
1064
|
+
*
|
|
1065
|
+
* MEDIDO EM 07/09, validando o binário publicado num `create-next-app` que instalou o
|
|
1066
|
+
* `codelevel`: `.lock` sem `tokenMap`, o componente saiu com 14 linhas `--ds-*`, e esta frase
|
|
1067
|
+
* mandava regerar. No `codelevel-monorepo`, onde o `.lock` tem 33 pares, regerar É a saída - e o
|
|
1068
|
+
* mesmo texto servia os dois. É o defeito que o `CLAUDE.md` registra em primeira pessoa: afirmar
|
|
1069
|
+
* que um comando conserta o que ele não conserta.
|
|
1070
|
+
*/
|
|
1071
|
+
const translatable = (await projectTongue(root, table.slug ?? "")) !== null;
|
|
1057
1072
|
const asks = sheetNeed.variables.length > 0
|
|
1058
|
-
? `${sheetNeed.variables.slice(0, 3).join(", ")}${sheetNeed.variables.length > 3 ? `, +${sheetNeed.variables.length - 3} more` : ""}
|
|
1073
|
+
? `${sheetNeed.variables.slice(0, 3).join(", ")}${sheetNeed.variables.length > 3 ? `, +${sheetNeed.variables.length - 3} more` : ""}${translatable
|
|
1074
|
+
? ` - re-run \`component\` on whatever writes ${sheetNeed.variables.length === 1 ? "it" : "them"} and it speaks your own names instead`
|
|
1075
|
+
: ` - your code names no value this system also holds, so there is nothing to translate ${sheetNeed.variables.length === 1 ? "it" : "them"} into, and the sheet is the way`}`
|
|
1059
1076
|
: `the ${sheetNeed.classes.slice(0, 3).join(", ")}${sheetNeed.classes.length > 3 ? `, +${sheetNeed.classes.length - 3} more` : ""} ${sheetNeed.classes.length === 1 ? "utility" : "utilities"}, which only this system's @theme generates`;
|
|
1060
1077
|
console.log(body(` what asks for it: ${asks}`));
|
|
1061
1078
|
console.log("");
|
package/package.json
CHANGED