create-principles-disciple 1.147.3 → 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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "productVersion": "2.8.0",
4
- "sourceCommit": "5c3371c3935192081585d741f50a899bc4445b0e"
4
+ "sourceCommit": "29d6fbfd56adcc2d71280438b0bcaf8ee8ef3bd8"
5
5
  }
@@ -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 plugin-directory copy is read-only (installed-layout P4 authority); a
30
- // divergence is surfaced, never silently resolved (PR-C contract).
31
- const pluginVersion = readCurrentVersion(resolvePluginDir(''));
32
- const identityDivergence = activeIdentity !== undefined && pluginVersion !== undefined && pluginVersion !== activeIdentity.productVersion
33
- ? { activeVersion: activeIdentity.productVersion, pluginVersion, releaseId: activeIdentity.releaseId, generation: activeIdentity.generation }
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
  }