gencow 0.1.233 → 0.1.234

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.
@@ -140,7 +140,14 @@ export function verifyCodegenProvenance(path) {
140
140
  }
141
141
 
142
142
  export function assertMatchingCodegenAndPackagerProvenance(input) {
143
- const codegen = normalizeProvenance(input?.codegen, "codegen");
143
+ const codegenArtifact = canonicalizeCodegenArtifactProvenanceV1(input?.codegen);
144
+ const codegen = normalizeProvenance(
145
+ {
146
+ cliVersion: codegenArtifact.cliVersion,
147
+ sourceRevision: codegenArtifact.sourceRevision,
148
+ },
149
+ "codegen",
150
+ );
144
151
  const packager = normalizeProvenance(input?.packager, "packager");
145
152
  if (codegen.cliVersion !== packager.cliVersion || codegen.sourceRevision !== packager.sourceRevision) {
146
153
  const error = new Error("PLATFORM_MIGRATION_ARTIFACT_CONTRACT_MISMATCH");
@@ -22,9 +22,12 @@ export async function verifyMigrationBundleArchiveRoundTrip({
22
22
  backendDir = "gencow",
23
23
  }) {
24
24
  const verificationRoot = mkdtempSync(join(tmpdir(), "gencow-migration-roundtrip-"));
25
+ const temporaryArchiveRoot = archivePath
26
+ ? null
27
+ : mkdtempSync(join(tmpdir(), "gencow-migration-roundtrip-archive-"));
25
28
  try {
26
29
  mkdirSync(verificationRoot, { recursive: true });
27
- const verificationArchive = archivePath ?? resolve(verificationRoot, "bundle.tar.gz");
30
+ const verificationArchive = archivePath ?? resolve(temporaryArchiveRoot, "bundle.tar.gz");
28
31
  if (!archivePath) writeFileSync(verificationArchive, bundleBuffer, { mode: 0o600 });
29
32
  const { extract } = await import("tar");
30
33
  await extract({ cwd: verificationRoot, file: verificationArchive });
@@ -55,5 +58,6 @@ export async function verifyMigrationBundleArchiveRoundTrip({
55
58
  throw localIntegrityError(error);
56
59
  } finally {
57
60
  rmSync(verificationRoot, { recursive: true, force: true });
61
+ if (temporaryArchiveRoot) rmSync(temporaryArchiveRoot, { recursive: true, force: true });
58
62
  }
59
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gencow",
3
- "version": "0.1.233",
3
+ "version": "0.1.234",
4
4
  "description": "Gencow — AI Backend Engine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -37,8 +37,8 @@
37
37
  "ai": "^6.0.233",
38
38
  "@types/node": "^25.9.5",
39
39
  "better-auth": "^1.6.23",
40
- "@gencow/react": "0.2.7",
41
40
  "@gencow/client": "0.2.7",
41
+ "@gencow/react": "0.2.7",
42
42
  "@gencow/core": "0.1.44"
43
43
  },
44
44
  "scripts": {