synthesisui 0.16.317 → 0.16.318
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/upgrade.js +10 -2
- package/package.json +1 -1
package/dist/commands/upgrade.js
CHANGED
|
@@ -3,7 +3,7 @@ import { join } from "node:path";
|
|
|
3
3
|
import { pinnedHookVersion, wireAgent } from "../agent-wiring.js";
|
|
4
4
|
import { isOlderCli } from "../cli-version.js";
|
|
5
5
|
import { generateComponentFiles } from "../component-codegen.js";
|
|
6
|
-
import { readProjectConfig, resolveRegistry } from "../config.js";
|
|
6
|
+
import { readProjectConfig, readToken, resolveRegistry } from "../config.js";
|
|
7
7
|
import { diffLocalDocuments, localChangelogMarkdown, } from "../document-diff.js";
|
|
8
8
|
import { installedBehind, MATERIALISER_SINCE } from "../install-marks.js";
|
|
9
9
|
import { body, section, snippet } from "../output.js";
|
|
@@ -107,7 +107,15 @@ async function staleInstall(root, slug, version, base, cli) {
|
|
|
107
107
|
.catch(() => null);
|
|
108
108
|
if (!lock)
|
|
109
109
|
return null;
|
|
110
|
-
|
|
110
|
+
/**
|
|
111
|
+
* A MESMA CREDENCIAL DO AVISO (T19, dono, 26/08). O rodapé do align pergunta o `?meta=1`
|
|
112
|
+
* AUTENTICADO; esta pergunta ia sem token - num sistema PRIVADO a rota devolve 404, a meta vem
|
|
113
|
+
* nula, e o upgrade dizia "already at the latest version" enquanto o aviso ao lado recomendava
|
|
114
|
+
* rodá-lo: um loop em que o comando recomendado não faz a coisa. Medido em produção no primeiro
|
|
115
|
+
* disparo real do gatilho do compilador (codelevel, lock=2 vs servidor=3).
|
|
116
|
+
*/
|
|
117
|
+
const token = await readToken();
|
|
118
|
+
const res = await fetch(`${base}/api/registry/ds/${slug}?version=${version}&meta=1`, token ? { headers: { Authorization: `Bearer ${token}` } } : undefined).catch(() => null);
|
|
111
119
|
const meta = res?.ok
|
|
112
120
|
? (await res.json().catch(() => null))
|
|
113
121
|
: null;
|
package/package.json
CHANGED