@prooflane/inspector-beta 0.1.0-beta.8 → 0.1.0-beta.9

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/cli.mjs CHANGED
@@ -6919,7 +6919,7 @@ function readLegacyLocalSuiteArtifact(file, cwd = process.cwd()) {
6919
6919
  displayName: localDisplayName(suite.id),
6920
6920
  localFingerprint,
6921
6921
  manifest,
6922
- migrationManifestHash: hashGovernedSuiteManifest(manifest),
6922
+ migrationManifestHash: migrationManifestHash(manifest),
6923
6923
  suite,
6924
6924
  pillarCounts,
6925
6925
  genericCompatibility: { compatible: supported === suite.tests.length, supported, unsupported: suite.tests.length - supported }
package/dist/server.mjs CHANGED
@@ -4750,7 +4750,7 @@ function readLegacyLocalSuiteArtifact(file, cwd = process.cwd()) {
4750
4750
  displayName: localDisplayName(suite.id),
4751
4751
  localFingerprint: localFingerprint2,
4752
4752
  manifest,
4753
- migrationManifestHash: hashGovernedSuiteManifest(manifest),
4753
+ migrationManifestHash: migrationManifestHash(manifest),
4754
4754
  suite,
4755
4755
  pillarCounts,
4756
4756
  genericCompatibility: { compatible: supported === suite.tests.length, supported, unsupported: suite.tests.length - supported }
@@ -12163,7 +12163,7 @@ ${item.artifact.localFingerprint}`));
12163
12163
  for (let item of selected) {
12164
12164
  if (item.action === "CREATE_SUITE_DRAFT") {
12165
12165
  let created2 = await requestControlPlaneJson(req, suiteRegistryPath, "POST", { slug: item.artifact.slug, displayName: item.artifact.displayName, description: "Migrated from an explicit local Prooflane Suite. Review and pin an approved Policy before approval.", manifest: item.artifact.manifest });
12166
- if (!created2?.suite || !created2.latestVersion || created2.suite.slug !== item.artifact.slug || created2.suite.projectId !== PROOFLANE_PROJECT || created2.latestVersion.suiteId !== created2.suite.id || created2.latestVersion.state !== "DRAFT" || created2.latestVersion.version !== 1 || hashGovernedSuiteManifest(created2.latestVersion.manifest) !== item.artifact.migrationManifestHash)
12166
+ if (!created2?.suite || !created2.latestVersion || created2.suite.slug !== item.artifact.slug || created2.suite.projectId !== PROOFLANE_PROJECT || created2.latestVersion.suiteId !== created2.suite.id || created2.latestVersion.state !== "DRAFT" || created2.latestVersion.version !== 1 || hashGovernedSuiteManifest(created2.latestVersion.manifest) !== hashGovernedSuiteManifest(item.artifact.manifest) || migrationManifestHash(created2.latestVersion.manifest) !== item.artifact.migrationManifestHash)
12167
12167
  throw new ControlPlaneRequestError(502, "Prooflane did not preserve the requested DRAFT Suite manifest.");
12168
12168
  synchronized.push({ slug: item.artifact.slug, localFingerprint: item.artifact.localFingerprint, action: "CREATED_SUITE_DRAFT", cloudVersionId: created2.latestVersion.id, cloudVersion: 1, cloudState: "DRAFT" });
12169
12169
  continue;
@@ -12172,7 +12172,7 @@ ${item.artifact.localFingerprint}`));
12172
12172
  if (!current?.suite || !current.latestVersion || current.suite.id !== expected.suite.id || current.latestVersion.id !== expected.latestVersion.id || current.latestVersion.version !== expected.latestVersion.version || current.latestVersion.state !== expected.latestVersion.state || migrationManifestHash(current.latestVersion.manifest) !== migrationManifestHash(expected.latestVersion.manifest))
12173
12173
  return reply.code(409).send({ error: `Cloud Suite ${item.artifact.slug} changed after review. Refresh migration status.` });
12174
12174
  let version = (await requestControlPlaneJson(req, `${suiteRegistryPath}/${encodeURIComponent(item.artifact.slug)}/versions`, "POST", { manifest: item.artifact.manifest, supersedesVersionId: current.latestVersion.id })).version;
12175
- if (!version || version.suiteId !== current.suite.id || version.version !== current.latestVersion.version + 1 || version.state !== "DRAFT" || hashGovernedSuiteManifest(version.manifest) !== item.artifact.migrationManifestHash)
12175
+ if (!version || version.suiteId !== current.suite.id || version.version !== current.latestVersion.version + 1 || version.state !== "DRAFT" || hashGovernedSuiteManifest(version.manifest) !== hashGovernedSuiteManifest(item.artifact.manifest) || migrationManifestHash(version.manifest) !== item.artifact.migrationManifestHash)
12176
12176
  throw new ControlPlaneRequestError(502, "Prooflane did not preserve the requested new DRAFT Suite version.");
12177
12177
  synchronized.push({ slug: item.artifact.slug, localFingerprint: item.artifact.localFingerprint, action: "CREATED_VERSION_DRAFT", cloudVersionId: version.id, cloudVersion: version.version, cloudState: "DRAFT" });
12178
12178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prooflane/inspector-beta",
3
- "version": "0.1.0-beta.8",
3
+ "version": "0.1.0-beta.9",
4
4
  "description": "Prooflane Inspector Beta — hosted MCP assurance console and signed desktop release.",
5
5
  "author": "Prooflane",
6
6
  "license": "UNLICENSED",