@kungfu-tech/buildchain 4.0.2-alpha.43 → 4.0.2-alpha.45

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.
Files changed (40) hide show
  1. package/architecture/maintainability-debt.json +18 -19
  2. package/architecture/maintainability-policy.json +4 -4
  3. package/architecture/v4-release-topology.json +9 -6
  4. package/architecture/v4-universal-workflow-train-admission.json +1 -1
  5. package/dist/site/buildchain-contract.json +7 -7
  6. package/dist/site/buildchain-site.json +50 -14
  7. package/dist/site/capability-registry.json +2 -2
  8. package/dist/site/kfd-claims.json +29 -5
  9. package/dist/site/kfd-upstream-aggregate.json +1 -1
  10. package/dist/site/manual-registry.json +3 -3
  11. package/dist/site/node-api-registry.json +154 -13
  12. package/dist/site/page-registry.json +43 -7
  13. package/dist/site/public-surface-audit.json +7 -3
  14. package/dist/site/publication-authority-registry.json +5 -17
  15. package/dist/site/publication-registry.json +4 -4
  16. package/dist/site/release-provenance.json +2 -1
  17. package/dist/site/site-manifest.json +7 -7
  18. package/dist/site/workflow-registry.json +5 -5
  19. package/docs/MAP.md +1 -0
  20. package/docs/cli.md +3 -0
  21. package/docs/node-api-reference.md +21 -10
  22. package/docs/oci-publication.md +82 -0
  23. package/package.json +3 -2
  24. package/packages/core/buildchain-v4-domain.wasm +0 -0
  25. package/packages/core/oci-publication-bundle.js +241 -0
  26. package/packages/core/paper-agent-entry.js +26 -2
  27. package/packages/core/paper.js +4 -4
  28. package/packages/core/release-tail-product-capabilities.js +9 -0
  29. package/packages/core/v4-canonical-contracts.js +1 -0
  30. package/packages/core/v4-domain-wasm-artifact.js +2 -2
  31. package/scripts/check-v4-release-topology.mjs +14 -4
  32. package/scripts/generate-channel-promotion-workflow.mjs +2 -19
  33. package/scripts/generate-v4-universal-workflow-facades.mjs +8 -2
  34. package/scripts/publication-candidate-kind.mjs +92 -0
  35. package/scripts/publication-candidate-sealer.mjs +9 -0
  36. package/scripts/release-candidate-resolver.mjs +6 -17
  37. package/scripts/resume-from-candidate-run.mjs +10 -17
  38. package/scripts/site-capability-metadata.mjs +1 -0
  39. package/scripts/v4-product-publication-intent.mjs +1 -1
  40. package/scripts/v4-universal-workflow-engine.mjs +2 -0
@@ -65,7 +65,7 @@ export function resolveV4ProductPublicationIntent() {
65
65
  const sourceSha = env("BUILDCHAIN_SOURCE_SHA", true);
66
66
  const manifestPath = env(
67
67
  "BUILDCHAIN_SEALED_BUNDLE_MANIFEST",
68
- artifactKind === "npm",
68
+ artifactKind !== "custom",
69
69
  );
70
70
  const manifest = manifestPath ? readJson(manifestPath) : null;
71
71
  const requiredArtifacts = readJson(
@@ -306,6 +306,7 @@ async function materializeProductPublicationIntent({
306
306
  BUILDCHAIN_SEALED_BUNDLE_MANIFEST: candidate.paths.sealedBundleManifest,
307
307
  BUILDCHAIN_REQUIRED_ARTIFACTS_PATH:
308
308
  candidate.paths.publishRequiredArtifacts,
309
+ BUILDCHAIN_PUBLISH_ARTIFACT_KIND: inputs["publish-artifact-kind"] || "npm",
309
310
  BUILDCHAIN_PUBLISH_PACKAGE_MAIN: inputs["publish-package-main"] || "",
310
311
  BUILDCHAIN_PUBLISH_DIST_TAG: inputs["publish-dist-tag"] || "",
311
312
  BUILDCHAIN_PRODUCT_PUBLICATION_INTENT_PATH: intentPath,
@@ -449,6 +450,7 @@ async function executeReleasePromotion(request, admission) {
449
450
  "candidate-build-summary-path": candidate.paths.buildSummary,
450
451
  "stage-capsules-path": candidate.paths.stageCapsules,
451
452
  "publication-qualification-path": candidate.paths.publicationQualification,
453
+ "publish-artifact-kind": payload.inputs["publish-artifact-kind"] || "npm",
452
454
  "sealed-bundle-root": candidate.paths.sealedBundleRoot,
453
455
  "sealed-bundle-manifest": candidate.paths.sealedBundleManifest,
454
456
  "required-artifacts-path": candidate.paths.publishRequiredArtifacts,