@kungfu-tech/buildchain 2.11.10 → 2.11.11-alpha.1

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.
@@ -4,7 +4,7 @@
4
4
  "product": {
5
5
  "name": "Buildchain",
6
6
  "package": "@kungfu-tech/buildchain",
7
- "version": "2.11.10",
7
+ "version": "2.11.11-alpha.1",
8
8
  "repository": "https://github.com/kungfu-systems/buildchain"
9
9
  },
10
10
  "majorLine": "v2",
@@ -235,7 +235,7 @@
235
235
  "release-state SHA is recorded as a durable audit entrance"
236
236
  ],
237
237
  "breakingDigest": "sha256:b627e1b2ece9b6049517a942c5139e342e6077cdd3d8962d61cef8481b1f70ad",
238
- "auditDigest": "sha256:f458470154bed291a4adcd703f0fe810897d95d4e939793da676cc526a5a80bb"
238
+ "auditDigest": "sha256:8d5a050df580d9bb7bbf3300b8fa4d22df8478bc1028de08b5af7a902d38448d"
239
239
  },
240
240
  {
241
241
  "contractVersion": 1,
@@ -284,7 +284,7 @@
284
284
  "prose-only public claims downgrade the release trust passport audit"
285
285
  ],
286
286
  "breakingDigest": "sha256:f0b636eb925ddbf45ff1a8872454ab7b4dd98857cac12bb75217830130e62a16",
287
- "auditDigest": "sha256:f458470154bed291a4adcd703f0fe810897d95d4e939793da676cc526a5a80bb"
287
+ "auditDigest": "sha256:8d5a050df580d9bb7bbf3300b8fa4d22df8478bc1028de08b5af7a902d38448d"
288
288
  },
289
289
  {
290
290
  "contractVersion": 1,
@@ -456,9 +456,9 @@
456
456
  "agents can discover supported Node APIs without importing internal file paths"
457
457
  ],
458
458
  "breakingDigest": "sha256:48f925608d3e2131d90936b07dc2a30341204cae3e6e785c0f77d61ad755c945",
459
- "auditDigest": "sha256:1cda1562ba9b386200aa9ae5b5c349ee921e4dbff9419c868b8af33754a7e424"
459
+ "auditDigest": "sha256:e9f0e3de042dfa569990493c31e089173a8f49dbf30b3b6177f9a587305ab5dd"
460
460
  }
461
461
  ],
462
462
  "compatibilityDigest": "sha256:967df7e854fdf582294ddfb6403eff25c00db9518a24051e7d47cbd75527c785",
463
- "contractDigest": "sha256:1dc9f204a2ef991935f064a7e3705115a916741b24737355ed22bacc24af5f8a"
463
+ "contractDigest": "sha256:247ee859aec524b408facb05f2229e53bdc2a1ef51cd6dadf572289cb3da6a0b"
464
464
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "contract": "kungfu-buildchain-site-bundle",
4
- "generatedAt": "2026-07-10T03:21:44.776Z",
5
- "publishedAt": "2026-07-10T03:21:44.776Z",
4
+ "generatedAt": "2026-07-10T03:53:38.587Z",
5
+ "publishedAt": "2026-07-10T03:53:38.587Z",
6
6
  "reproducible": true,
7
7
  "timestampPolicy": "ci-injected",
8
8
  "deterministicInputs": [
@@ -19,7 +19,7 @@
19
19
  "declared Buildchain surface manifest contract"
20
20
  ],
21
21
  "sourceDateEpoch": "0",
22
- "sourceRevision": "20774d17657b0c67b7728b6d3eec403bb251ece3",
22
+ "sourceRevision": "490349dd838357f1abe270cebffe89f5bcf905c4",
23
23
  "timestampPolicyDetails": {
24
24
  "contract": "kungfu-buildchain-surface-timestamp-policy",
25
25
  "timestampFields": [
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "package": {
39
39
  "name": "@kungfu-tech/buildchain",
40
- "version": "2.11.10",
40
+ "version": "2.11.11-alpha.1",
41
41
  "versionSource": "package.json#version"
42
42
  },
43
43
  "source": {
@@ -4,7 +4,7 @@
4
4
  "product": {
5
5
  "id": "kungfu-tech-buildchain",
6
6
  "name": "@kungfu-tech/buildchain",
7
- "version": "2.11.10",
7
+ "version": "2.11.11-alpha.1",
8
8
  "repository": "https://github.com/kungfu-systems/buildchain"
9
9
  },
10
10
  "source": {
@@ -216,7 +216,7 @@
216
216
  "specifier": "@kungfu-tech/buildchain/publication-package",
217
217
  "export": "./publication-package",
218
218
  "target": "./packages/core/publication-package.js",
219
- "digest": "sha256:3c96b1a7483eda44c1a89a7af1a1b262fb40cce8a4bcf81f5ad048b69664db67",
219
+ "digest": "sha256:72ad7e591fd9e3fc06cc75930742653feb4e067df9fde7430d7481822d930429",
220
220
  "summary": "Publication npm package synthesis APIs for Buildchain-managed paper release presets.",
221
221
  "capabilityGroup": "reusable-build",
222
222
  "audience": [
@@ -255,7 +255,7 @@
255
255
  "specifier": "@kungfu-tech/buildchain/release-passport",
256
256
  "export": "./release-passport",
257
257
  "target": "./packages/core/release-passport.js",
258
- "digest": "sha256:f458470154bed291a4adcd703f0fe810897d95d4e939793da676cc526a5a80bb",
258
+ "digest": "sha256:8d5a050df580d9bb7bbf3300b8fa4d22df8478bc1028de08b5af7a902d38448d",
259
259
  "summary": "Release passport collection, verification, explanation, and evidence APIs.",
260
260
  "capabilityGroup": "release-passport-trust",
261
261
  "audience": [
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "contract": "kungfu-buildchain-publication-release-registry",
4
- "generatedAt": "2026-07-10T03:21:44.776Z",
5
- "publishedAt": "2026-07-10T03:21:44.776Z",
4
+ "generatedAt": "2026-07-10T03:53:38.587Z",
5
+ "publishedAt": "2026-07-10T03:53:38.587Z",
6
6
  "reproducible": true,
7
7
  "timestampPolicy": "ci-injected",
8
8
  "deterministicInputs": [
@@ -19,7 +19,7 @@
19
19
  "declared Buildchain surface manifest contract"
20
20
  ],
21
21
  "sourceDateEpoch": "0",
22
- "sourceRevision": "20774d17657b0c67b7728b6d3eec403bb251ece3",
22
+ "sourceRevision": "490349dd838357f1abe270cebffe89f5bcf905c4",
23
23
  "timestampPolicyDetails": {
24
24
  "contract": "kungfu-buildchain-surface-timestamp-policy",
25
25
  "timestampFields": [
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "package": {
34
34
  "name": "@kungfu-tech/buildchain",
35
- "version": "2.11.10",
35
+ "version": "2.11.11-alpha.1",
36
36
  "versionSource": "package.json#version"
37
37
  },
38
38
  "sourceKind": "package-site-bundle",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "contract": "kungfu-buildchain-site-manifest",
4
- "generatedAt": "2026-07-10T03:21:44.776Z",
5
- "publishedAt": "2026-07-10T03:21:44.776Z",
4
+ "generatedAt": "2026-07-10T03:53:38.587Z",
5
+ "publishedAt": "2026-07-10T03:53:38.587Z",
6
6
  "reproducible": true,
7
7
  "timestampPolicy": "ci-injected",
8
8
  "deterministicInputs": [
@@ -19,7 +19,7 @@
19
19
  "declared Buildchain surface manifest contract"
20
20
  ],
21
21
  "sourceDateEpoch": "0",
22
- "sourceRevision": "20774d17657b0c67b7728b6d3eec403bb251ece3",
22
+ "sourceRevision": "490349dd838357f1abe270cebffe89f5bcf905c4",
23
23
  "timestampPolicyDetails": {
24
24
  "contract": "kungfu-buildchain-surface-timestamp-policy",
25
25
  "timestampFields": [
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "package": {
39
39
  "name": "@kungfu-tech/buildchain",
40
- "version": "2.11.10",
40
+ "version": "2.11.11-alpha.1",
41
41
  "versionSource": "package.json#version"
42
42
  },
43
43
  "entrypoint": "buildchain-site.json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungfu-tech/buildchain",
3
- "version": "2.11.10",
3
+ "version": "2.11.11-alpha.1",
4
4
  "private": false,
5
5
  "description": "Buildchain Release Passport, release governance, CLI toolkit, and site facts.",
6
6
  "repository": "https://github.com/kungfu-systems/buildchain",
@@ -17,6 +17,23 @@ function readJson(filePath) {
17
17
  return JSON.parse(fs.readFileSync(filePath, "utf8"));
18
18
  }
19
19
 
20
+ function sourceRepositoryMetadata(sourcePackage) {
21
+ const repository = sourcePackage.repository;
22
+ if (typeof repository === "string") {
23
+ return repository.trim() || undefined;
24
+ }
25
+ if (
26
+ repository &&
27
+ typeof repository === "object" &&
28
+ !Array.isArray(repository) &&
29
+ typeof repository.url === "string" &&
30
+ repository.url.trim()
31
+ ) {
32
+ return { ...repository, url: repository.url.trim() };
33
+ }
34
+ return undefined;
35
+ }
36
+
20
37
  function copyFilePreservingPath({ cwd, outputDir, relPath, copied }) {
21
38
  const source = path.resolve(cwd, relPath);
22
39
  if (!fs.existsSync(source) || !fs.statSync(source).isFile()) {
@@ -142,12 +159,19 @@ export function preparePublicationNpmPackage({
142
159
  const sourcePackage = fs.existsSync(path.join(resolvedCwd, "package.json"))
143
160
  ? readJson(path.join(resolvedCwd, "package.json"))
144
161
  : {};
162
+ const repository = sourceRepositoryMetadata(sourcePackage);
163
+ if (facts.package.auth === "trusted-publishing" && !repository) {
164
+ throw new Error(
165
+ "publication npm package with trusted-publishing requires source package.json repository metadata",
166
+ );
167
+ }
145
168
  const packageJson = {
146
169
  name: facts.package.name,
147
170
  version: facts.package.version,
148
171
  private: false,
149
172
  description: `${facts.publication.title} publication artifact package.`,
150
173
  license: sourcePackage.license || "UNLICENSED",
174
+ repository,
151
175
  type: "module",
152
176
  files: [
153
177
  ".buildchain/publication/",
@@ -364,6 +364,9 @@ function mergeAuthoritativeImpactBase(impact, basePassport = undefined) {
364
364
  return impact;
365
365
  }
366
366
  const merged = { ...impact };
367
+ if (optionalString(impact?.release?.version)) {
368
+ return merged;
369
+ }
367
370
  if (basePassport.versionImpact && typeof basePassport.versionImpact === "object" && !Array.isArray(basePassport.versionImpact)) {
368
371
  merged.versionImpact = {
369
372
  ...(impact.versionImpact && typeof impact.versionImpact === "object" && !Array.isArray(impact.versionImpact) ? impact.versionImpact : {}),