create-principles-disciple 1.147.4 → 1.147.5
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/_release/product-identity.json +1 -1
- package/console/dist/server/routes/update.js +5 -8
- package/console/dist/web/assets/app.js +3 -3
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +6 -0
- package/dist/i18n.js.map +1 -1
- package/dist/installer.d.ts +21 -0
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +80 -3
- package/dist/installer.js.map +1 -1
- package/package.json +2 -2
- package/release-manager/dist/i18n.js +6 -0
- package/release-manager/dist/installer.js +80 -3
- package/release-manager/package.json +1 -1
|
@@ -5,7 +5,6 @@ import { spawn } from 'node:child_process';
|
|
|
5
5
|
import { randomUUID } from 'node:crypto';
|
|
6
6
|
import { sendSuccess, sendMethodNotAllowed, sendNotFound } from '../utils/response.js';
|
|
7
7
|
import { appendUpdateHistory } from './update-history.js';
|
|
8
|
-
import { readCurrentVersion, resolvePluginDir } from '../utils/installed-layout.js';
|
|
9
8
|
const REPAIR_ACTION = 'Resolve the reported cause, or run the official installer (npx create-principles-disciple) to repair the installation, then retry.';
|
|
10
9
|
function appendGovernedUpdateHistory(workspaceDir, entry) {
|
|
11
10
|
try {
|
|
@@ -26,12 +25,11 @@ async function checkUpdate(authority, res) {
|
|
|
26
25
|
&& typeof installStatus.generation === 'number' && Number.isSafeInteger(installStatus.generation)
|
|
27
26
|
? { productVersion: installStatus.productVersion, releaseId: installStatus.releaseId, generation: installStatus.generation }
|
|
28
27
|
: undefined;
|
|
29
|
-
// The
|
|
30
|
-
//
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
: undefined;
|
|
28
|
+
// The product version (signed active release) and the plugin package version
|
|
29
|
+
// are independent version planes (RELEASE_PROCESS.md, "The three version
|
|
30
|
+
// planes"): the installer ships the plugin payload while the product version
|
|
31
|
+
// advances on its own cadence. Comparing them is a false alarm on every
|
|
32
|
+
// healthy installation, so this check reports only the active-release identity.
|
|
35
33
|
// PRI-848 (SPEC §12.1): one explicit state per check. A policy refusal is
|
|
36
34
|
// `update_blocked` — the candidate EXISTS but a specific problem must be
|
|
37
35
|
// resolved — never "up to date".
|
|
@@ -45,7 +43,6 @@ async function checkUpdate(authority, res) {
|
|
|
45
43
|
currentVersion: installStatus?.productVersion ?? 'unknown',
|
|
46
44
|
latestVersion: check.candidate?.productVersion ?? '',
|
|
47
45
|
...(activeIdentity !== undefined ? { versionSource: 'active-release' } : {}),
|
|
48
|
-
...(identityDivergence !== undefined ? { identityDivergence } : {}),
|
|
49
46
|
...(!decision.allowed ? { reason: decision.reason, message: decision.message } : {}),
|
|
50
47
|
});
|
|
51
48
|
}
|