@kungfu-tech/buildchain 3.0.4-alpha.3 → 3.0.4-alpha.4

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": "3.0.4-alpha.3",
7
+ "version": "3.0.4-alpha.4",
8
8
  "repository": "https://github.com/kungfu-systems/buildchain"
9
9
  },
10
10
  "majorLine": "v3",
@@ -3533,5 +3533,5 @@
3533
3533
  }
3534
3534
  ],
3535
3535
  "compatibilityDigest": "sha256:3bbcaf835844260ed98414d3bd176667245d12131e13fc748e4c2fae12399691",
3536
- "contractDigest": "sha256:3f17015215af1c964187e535ffd1b332ddc54808198104703397c5a7bd908fbd"
3536
+ "contractDigest": "sha256:3400aed2a210ace06f1fe2cf2aaa654ff40cf0571214237d0bc9b93d4318fb90"
3537
3537
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "contract": "kungfu-buildchain-site-bundle",
4
- "generatedAt": "2026-08-01T07:23:43.261Z",
5
- "publishedAt": "2026-08-01T07:23:43.261Z",
4
+ "generatedAt": "2026-08-01T07:54:07.899Z",
5
+ "publishedAt": "2026-08-01T07:54:07.899Z",
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": "337b3f3bad4aaea1fd76d3e5fd16ed7899ae88ec",
22
+ "sourceRevision": "0395e290736c49c38982fc85d916d09ba07a5f16",
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": "3.0.4-alpha.3",
40
+ "version": "3.0.4-alpha.4",
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": "3.0.4-alpha.3",
7
+ "version": "3.0.4-alpha.4",
8
8
  "repository": "https://github.com/kungfu-systems/buildchain"
9
9
  },
10
10
  "source": {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "contract": "kungfu-buildchain-publication-release-registry",
4
- "generatedAt": "2026-08-01T07:23:43.261Z",
5
- "publishedAt": "2026-08-01T07:23:43.261Z",
4
+ "generatedAt": "2026-08-01T07:54:07.899Z",
5
+ "publishedAt": "2026-08-01T07:54:07.899Z",
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": "337b3f3bad4aaea1fd76d3e5fd16ed7899ae88ec",
22
+ "sourceRevision": "0395e290736c49c38982fc85d916d09ba07a5f16",
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": "3.0.4-alpha.3",
35
+ "version": "3.0.4-alpha.4",
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-01T07:23:43.261Z",
5
- "publishedAt": "2026-08-01T07:23:43.261Z",
4
+ "generatedAt": "2026-08-01T07:54:07.899Z",
5
+ "publishedAt": "2026-08-01T07:54:07.899Z",
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": "337b3f3bad4aaea1fd76d3e5fd16ed7899ae88ec",
22
+ "sourceRevision": "0395e290736c49c38982fc85d916d09ba07a5f16",
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": "3.0.4-alpha.3",
40
+ "version": "3.0.4-alpha.4",
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": "3.0.4-alpha.3",
3
+ "version": "3.0.4-alpha.4",
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",
@@ -181,12 +181,8 @@ export function resolvePaperBuildchainSha(buildchainRoot, buildchainSha = "") {
181
181
  return GIT_SHA_PATTERN.test(observed) ? observed : "";
182
182
  }
183
183
 
184
- function expectedCiBranches(developmentRef) {
185
- return [
186
- developmentRef,
187
- developmentRef.replace(/^dev\//, "alpha/"),
188
- developmentRef.replace(/^dev\//, "release/"),
189
- ];
184
+ function expectedCiBranches(ref) {
185
+ return ["dev", "alpha", "release"].map((c) => ref.replace(/^dev/, c));
190
186
  }
191
187
 
192
188
  function ciContext({ env, developmentRef }) {
@@ -201,10 +197,13 @@ function ciContext({ env, developmentRef }) {
201
197
  env.GITHUB_REF_NAME || env.BUILDCHAIN_PAPER_REF_NAME || "",
202
198
  );
203
199
  const pullRequest = ["pull_request", "pull_request_target"].includes(event);
200
+ const channelBranches = expectedCiBranches(developmentRef);
201
+ const channelIndex = channelBranches.indexOf(targetBranch);
204
202
  const branchOk = pullRequest
205
- ? PAPER_WORK_BRANCH_PATTERN.test(sourceBranch) &&
206
- targetBranch === developmentRef
207
- : expectedCiBranches(developmentRef).includes(refName);
203
+ ? (PAPER_WORK_BRANCH_PATTERN.test(sourceBranch) &&
204
+ targetBranch === developmentRef) ||
205
+ (channelIndex > 0 && sourceBranch === channelBranches[channelIndex - 1])
206
+ : channelBranches.includes(refName);
208
207
  return {
209
208
  mode: "ci",
210
209
  event,
@@ -214,8 +213,8 @@ function ciContext({ env, developmentRef }) {
214
213
  pullRequest,
215
214
  ok: branchOk,
216
215
  message: pullRequest
217
- ? `Pull requests must use an allowed work branch and target ${developmentRef}.`
218
- : `Channel checks must run on ${expectedCiBranches(developmentRef).join(", ")}.`,
216
+ ? `Pull requests must target ${developmentRef} from an allowed work branch or promote adjacent protected channels.`
217
+ : `Channel checks must run on ${channelBranches.join(", ")}.`,
219
218
  };
220
219
  }
221
220