@kungfu-tech/buildchain 4.0.1-alpha.18 → 4.0.1-alpha.19

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": "4.0.1-alpha.18",
7
+ "version": "4.0.1-alpha.19",
8
8
  "repository": "https://github.com/kungfu-systems/buildchain"
9
9
  },
10
10
  "majorLine": "v4",
@@ -5308,5 +5308,5 @@
5308
5308
  "compatibilityFactCutRoot": "sha256:f61b975d4a96c921cc4bd37fb3ed9a0596b47004fe34dc7219979d697e3707f9",
5309
5309
  "compatibilityProofRegistryRoot": "sha256:b7194b811e4d3af2df4390bc4d1731e16a86215bd64ee18cb630dd5492f4fb63",
5310
5310
  "compatibilityDigest": "sha256:5de1c69386510b74b17eb70141b8bdd07063d62c504f91db5e84b67c6d4b64a2",
5311
- "contractDigest": "sha256:cc49ebc736c5af3c5299e1c04dd0865dcf425ba6612def3b77bca5bdc77a2952"
5311
+ "contractDigest": "sha256:a481e1aac036531cb0a17e49bbbb336ed81cb7dacd6cb855f0fc125f7c1c8cbd"
5312
5312
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "contract": "kungfu-buildchain-site-bundle",
4
- "generatedAt": "2026-08-23T00:06:40.783Z",
5
- "publishedAt": "2026-08-23T00:06:40.783Z",
4
+ "generatedAt": "2026-08-23T01:37:01.629Z",
5
+ "publishedAt": "2026-08-23T01:37:01.629Z",
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": "061cc8932b3b0b0d83a29c92de865b89150a32f2",
22
+ "sourceRevision": "8bf8e0f18bc66106e673ffa1625dfdac9650cef8",
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": "4.0.1-alpha.18",
40
+ "version": "4.0.1-alpha.19",
41
41
  "versionSource": "package.json#version"
42
42
  },
43
43
  "source": {
@@ -21,7 +21,7 @@
21
21
  "contract": "kungfu-buildchain-public-surface-reverse-audit",
22
22
  "path": "dist/site/public-surface-audit.json",
23
23
  "status": "passed",
24
- "sha256": "0c0ed29c13f1c57a66a0e82465d852963d156ca4e855b09f27cb983105c0c55e",
24
+ "sha256": "bb18812ec7051d42824312783489535a4f6a1b8d372d6f41ee5580e87f52f93d",
25
25
  "summary": {
26
26
  "cliCommandCount": 117,
27
27
  "workflowCount": 76,
@@ -246,7 +246,7 @@
246
246
  "contract": "kungfu-buildchain-public-surface-reverse-audit",
247
247
  "path": "dist/site/public-surface-audit.json",
248
248
  "status": "passed",
249
- "sha256": "0c0ed29c13f1c57a66a0e82465d852963d156ca4e855b09f27cb983105c0c55e",
249
+ "sha256": "bb18812ec7051d42824312783489535a4f6a1b8d372d6f41ee5580e87f52f93d",
250
250
  "summary": {
251
251
  "cliCommandCount": 117,
252
252
  "workflowCount": 76,
@@ -4,7 +4,7 @@
4
4
  "product": {
5
5
  "id": "kungfu-tech-buildchain",
6
6
  "name": "@kungfu-tech/buildchain",
7
- "version": "4.0.1-alpha.18",
7
+ "version": "4.0.1-alpha.19",
8
8
  "repository": "https://github.com/kungfu-systems/buildchain"
9
9
  },
10
10
  "source": {
@@ -8846,7 +8846,7 @@
8846
8846
  "workflowRegistryPath": "dist/site/workflow-registry.json",
8847
8847
  "pageRegistryPath": "dist/site/page-registry.json",
8848
8848
  "cliRegistryDigest": "ea47a31ce7ef3577f23e22055ab7be7715c3af494bcef63f76b426f2883086aa",
8849
- "workflowRegistryDigest": "f0f3dc6d334fba850e8cae089427538670c9cc0051b515fdeab9d7e8557ea42c",
8849
+ "workflowRegistryDigest": "9472b8722fe3cdeeec644a97986a85b98fbbeccfd0f9407ddbfee8a5b4ada66f",
8850
8850
  "pageRegistryDigest": "9d9d0590c8d3110fc5a95978852ee25337567f93980b2562cc1159f0d5219ade"
8851
8851
  },
8852
8852
  "comparison": {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "contract": "kungfu-buildchain-publication-release-registry",
4
- "generatedAt": "2026-08-23T00:06:40.783Z",
5
- "publishedAt": "2026-08-23T00:06:40.783Z",
4
+ "generatedAt": "2026-08-23T01:37:01.629Z",
5
+ "publishedAt": "2026-08-23T01:37:01.629Z",
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": "061cc8932b3b0b0d83a29c92de865b89150a32f2",
22
+ "sourceRevision": "8bf8e0f18bc66106e673ffa1625dfdac9650cef8",
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": "4.0.1-alpha.18",
35
+ "version": "4.0.1-alpha.19",
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-08-23T00:06:40.783Z",
5
- "publishedAt": "2026-08-23T00:06:40.783Z",
4
+ "generatedAt": "2026-08-23T01:37:01.629Z",
5
+ "publishedAt": "2026-08-23T01:37:01.629Z",
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": "061cc8932b3b0b0d83a29c92de865b89150a32f2",
22
+ "sourceRevision": "8bf8e0f18bc66106e673ffa1625dfdac9650cef8",
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": "4.0.1-alpha.18",
40
+ "version": "4.0.1-alpha.19",
41
41
  "versionSource": "package.json#version"
42
42
  },
43
43
  "entrypoint": "buildchain-site.json",
@@ -2027,7 +2027,7 @@
2027
2027
  "status": "preview",
2028
2028
  "owner": "buildchain-workflows",
2029
2029
  "maturity": "preview",
2030
- "introducedVersion": "4.0.1-alpha.18",
2030
+ "introducedVersion": "4.0.1-alpha.19",
2031
2031
  "compatibilityPromise": "preserved-through-the-v3-major-line",
2032
2032
  "deprecationReplacement": "",
2033
2033
  "sunsetCondition": "explicit-breaking-change-review-in-a-future-major-line",
@@ -2048,7 +2048,7 @@
2048
2048
  "status": "preview",
2049
2049
  "owner": "buildchain-workflows",
2050
2050
  "maturity": "preview",
2051
- "introducedVersion": "4.0.1-alpha.18",
2051
+ "introducedVersion": "4.0.1-alpha.19",
2052
2052
  "compatibilityPromise": "preserved-through-the-v3-major-line",
2053
2053
  "deprecationReplacement": "",
2054
2054
  "sunsetCondition": "explicit-breaking-change-review-in-a-future-major-line",
@@ -2069,7 +2069,7 @@
2069
2069
  "status": "preview",
2070
2070
  "owner": "buildchain-workflows",
2071
2071
  "maturity": "preview",
2072
- "introducedVersion": "4.0.1-alpha.18",
2072
+ "introducedVersion": "4.0.1-alpha.19",
2073
2073
  "compatibilityPromise": "preserved-through-the-v3-major-line",
2074
2074
  "deprecationReplacement": "",
2075
2075
  "sunsetCondition": "explicit-breaking-change-review-in-a-future-major-line",
@@ -2119,7 +2119,7 @@
2119
2119
  "status": "preview",
2120
2120
  "owner": "buildchain-workflows",
2121
2121
  "maturity": "preview",
2122
- "introducedVersion": "4.0.1-alpha.18",
2122
+ "introducedVersion": "4.0.1-alpha.19",
2123
2123
  "compatibilityPromise": "preserved-through-the-v3-major-line",
2124
2124
  "deprecationReplacement": "",
2125
2125
  "sunsetCondition": "explicit-breaking-change-review-in-a-future-major-line",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungfu-tech/buildchain",
3
- "version": "4.0.1-alpha.18",
3
+ "version": "4.0.1-alpha.19",
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",
@@ -810,7 +810,7 @@ async function resolveTargetAdvance({ observedTargetSha, targetSha, transactionI
810
810
  return { status: comparison.status, mergeIsAncestor: ["ahead", "identical"].includes(comparison.status) };
811
811
  }
812
812
 
813
- async function resolveRecoveryTransaction({
813
+ export async function resolveRecoveryTransaction({
814
814
  repoInfo,
815
815
  apiUrl,
816
816
  token,
@@ -818,22 +818,21 @@ async function resolveRecoveryTransaction({
818
818
  transactionId,
819
819
  publicationVersion,
820
820
  }) {
821
- const byId = await readExistingTransactionById({
822
- repoInfo,
823
- apiUrl,
824
- token,
825
- fetchImpl,
826
- transactionId,
827
- });
828
- const version = byId?.version || publicationVersion;
829
- const transaction = byId || await readExistingTransaction({
830
- repoInfo,
831
- apiUrl,
832
- token,
833
- fetchImpl,
834
- version,
835
- });
836
- return { version, transaction };
821
+ let transaction = publicationVersion
822
+ ? await readExistingTransaction({
823
+ repoInfo,
824
+ apiUrl,
825
+ token,
826
+ fetchImpl,
827
+ version: publicationVersion,
828
+ })
829
+ : undefined;
830
+ if (!transaction) {
831
+ transaction = await readExistingTransactionById({
832
+ repoInfo, apiUrl, token, fetchImpl, transactionId,
833
+ });
834
+ }
835
+ return { version: transaction?.version || publicationVersion, transaction };
837
836
  }
838
837
 
839
838
  function resolveRecoveredStageCapsules({