@kungfu-tech/buildchain 3.0.4-alpha.4 → 3.0.4-alpha.6
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.
- package/AGENTS.md +14 -5
- package/README.md +18 -0
- package/bin/buildchain.mjs +10 -1
- package/dist/site/buildchain-contract.json +5 -5
- package/dist/site/buildchain-site.json +1459 -58
- package/dist/site/capability-registry.json +8 -5
- package/dist/site/cli-registry.json +1869 -0
- package/dist/site/kfd-claims.json +79 -7
- package/dist/site/kfd-upstream-aggregate.json +1 -1
- package/dist/site/manual-registry.json +47 -4
- package/dist/site/node-api-registry.json +17761 -6
- package/dist/site/page-registry.json +1435 -58
- package/dist/site/public-surface-audit.json +2809 -352
- package/dist/site/publication-registry.json +4 -4
- package/dist/site/site-manifest.json +32 -8
- package/docs/MAP.md +20 -5
- package/docs/cli-reference.md +1936 -0
- package/docs/cli.md +13 -0
- package/docs/getting-started.md +167 -0
- package/docs/node-api-reference.md +1949 -0
- package/docs/site-bundle-contract.md +10 -4
- package/docs/versioning.md +5 -4
- package/package.json +8 -5
- package/packages/core/buildchain-agent-manuals.js +37 -0
- package/packages/core/buildchain-kfd-claims.js +3 -36
- package/packages/core/paper-agent-entry.js +8 -4
- package/packages/core/paper.js +1 -0
- package/packages/core/publication-package.js +7 -0
- package/scripts/check-inventory.mjs +2 -2
- package/scripts/generate-public-reference.mjs +68 -0
- package/scripts/generate-site-bundle.mjs +19 -34
- package/scripts/public-reference.mjs +557 -0
- package/scripts/site-reference-registry.mjs +174 -0
- package/scripts/verify-golden-path.mjs +169 -0
package/AGENTS.md
CHANGED
|
@@ -6,9 +6,14 @@ restating them.
|
|
|
6
6
|
|
|
7
7
|
## Are you using Buildchain, or building it?
|
|
8
8
|
|
|
9
|
-
- **
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
- **Adopting Buildchain for the first time** - follow the 15-30 minute
|
|
10
|
+
[`Golden Path`](docs/getting-started.md).
|
|
11
|
+
- **Looking up a CLI command** - use the generated
|
|
12
|
+
[`CLI Reference`](docs/cli-reference.md).
|
|
13
|
+
- **Writing Node build automation** - use the generated
|
|
14
|
+
[`Node API Reference`](docs/node-api-reference.md).
|
|
15
|
+
- **Exploring advanced workflows, release governance, or product
|
|
16
|
+
capabilities** - start at the [`Documentation Map`](docs/MAP.md).
|
|
12
17
|
- **Building or contributing to this repo** - read the rest of this file, then
|
|
13
18
|
[`CONTRIBUTING.md`](CONTRIBUTING.md).
|
|
14
19
|
|
|
@@ -74,8 +79,9 @@ pnpm install --frozen-lockfile
|
|
|
74
79
|
pnpm run check
|
|
75
80
|
```
|
|
76
81
|
|
|
77
|
-
`pnpm run check` validates inventory data,
|
|
78
|
-
and rebuilds every action
|
|
82
|
+
`pnpm run check` validates inventory data, generated public references and site
|
|
83
|
+
bundle drift, lints root workflows, runs unit tests, and rebuilds every action
|
|
84
|
+
bundle.
|
|
79
85
|
|
|
80
86
|
Before broad maintenance or consolidation work, read the current engineering
|
|
81
87
|
handoff in
|
|
@@ -109,6 +115,9 @@ handoff in
|
|
|
109
115
|
- Do not build or document official release integrations that bypass provider
|
|
110
116
|
protections, hide credential boundaries, or forge release evidence.
|
|
111
117
|
- Keep generated action bundles in sync with source changes.
|
|
118
|
+
- When public documentation, CLI usage authority, or package exports change,
|
|
119
|
+
follow the [Site Bundle Contract generation steps](docs/site-bundle-contract.md#generation)
|
|
120
|
+
and commit the updated generated references and `dist/site/` facts.
|
|
112
121
|
- Keep documentation in sync with behavior, especially release governance and
|
|
113
122
|
reusable workflow contracts.
|
|
114
123
|
- [`docs/MAP.md`](docs/MAP.md) and [`CONTRIBUTING.md`](CONTRIBUTING.md) are the
|
package/README.md
CHANGED
|
@@ -25,6 +25,20 @@ its existing CI.
|
|
|
25
25
|
|
|
26
26
|
The same mechanism releases Buildchain itself.
|
|
27
27
|
|
|
28
|
+
## Choose Your Path
|
|
29
|
+
|
|
30
|
+
| You are... | Start here | You will get... |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| adopting Buildchain for the first time | [Golden Path](docs/getting-started.md) | an exact install, project declaration, validated config, reusable workflow, release dry-run, and Passport inspection |
|
|
33
|
+
| looking up a CLI command | [Generated CLI Reference](docs/cli-reference.md) | governed syntax, options, aliases, and side-effect-free help paths |
|
|
34
|
+
| writing JavaScript automation | [Generated Node API Reference](docs/node-api-reference.md) | every public subpath and symbol with source-derived signatures and behavior boundaries |
|
|
35
|
+
| operating an advanced build or release | [Documentation Map](docs/MAP.md) | capability-, intent-, and maturity-based navigation to normative contracts |
|
|
36
|
+
|
|
37
|
+
The Golden Path is the beginner lane. Advanced workflow, signing, publishing,
|
|
38
|
+
and governance manuals remain separate so a first-time consumer does not need
|
|
39
|
+
to understand the entire release control plane before reaching a valid local
|
|
40
|
+
configuration.
|
|
41
|
+
|
|
28
42
|
## Where Buildchain sits in the Agent Supply Chain
|
|
29
43
|
|
|
30
44
|
Buildchain binds a product's declarations to the exact source cut, build,
|
|
@@ -48,6 +62,10 @@ or protocol evidence through the repository issue tracker.
|
|
|
48
62
|
|
|
49
63
|
## Install and Verify
|
|
50
64
|
|
|
65
|
+
New repository adopters should follow the [15–30 minute Golden Path](docs/getting-started.md).
|
|
66
|
+
The commands below are the shorter verification-only route for an existing
|
|
67
|
+
consumer.
|
|
68
|
+
|
|
51
69
|
For v3, use the published npm package and verify the release passport before
|
|
52
70
|
trusting release evidence:
|
|
53
71
|
|
package/bin/buildchain.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import { runPublicationPackageCli } from "../scripts/publication-package.mjs";
|
|
|
14
14
|
import { runPublicationReproducibilityCli } from "../scripts/publication-reproducibility.mjs";
|
|
15
15
|
import { runPaperCli } from "../scripts/paper.mjs";
|
|
16
16
|
import { BUILDCHAIN_USAGE } from "../scripts/buildchain-cli-help.mjs";
|
|
17
|
+
import { formatCliHelp } from "../scripts/public-reference.mjs";
|
|
17
18
|
import { validateBuildchainConfig } from "../packages/core/buildchain-config.js";
|
|
18
19
|
import { detectPackageManager } from "../packages/core/package-manager.js";
|
|
19
20
|
import {
|
|
@@ -1224,7 +1225,7 @@ async function runProcessTreeSample(sampleArgs = []) {
|
|
|
1224
1225
|
}
|
|
1225
1226
|
|
|
1226
1227
|
async function handleHelpCommand(args) {
|
|
1227
|
-
process.stdout.write(BUILDCHAIN_USAGE);
|
|
1228
|
+
process.stdout.write(formatCliHelp({ usageText: BUILDCHAIN_USAGE, pathParts: args }));
|
|
1228
1229
|
return;
|
|
1229
1230
|
|
|
1230
1231
|
}
|
|
@@ -1732,6 +1733,14 @@ const BUILDCHAIN_COMMAND_HANDLERS = Object.freeze({
|
|
|
1732
1733
|
});
|
|
1733
1734
|
|
|
1734
1735
|
async function main(argv = process.argv.slice(2)) {
|
|
1736
|
+
const helpIndex = argv.findIndex((entry) => entry === "--help" || entry === "-h");
|
|
1737
|
+
if (helpIndex >= 0) {
|
|
1738
|
+
process.stdout.write(formatCliHelp({
|
|
1739
|
+
usageText: BUILDCHAIN_USAGE,
|
|
1740
|
+
pathParts: argv.slice(0, helpIndex),
|
|
1741
|
+
}));
|
|
1742
|
+
return;
|
|
1743
|
+
}
|
|
1735
1744
|
const [command = "help", ...args] = argv;
|
|
1736
1745
|
return dispatchRegisteredCommand({
|
|
1737
1746
|
command,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"product": {
|
|
5
5
|
"name": "Buildchain",
|
|
6
6
|
"package": "@kungfu-tech/buildchain",
|
|
7
|
-
"version": "3.0.4-alpha.
|
|
7
|
+
"version": "3.0.4-alpha.6",
|
|
8
8
|
"repository": "https://github.com/kungfu-systems/buildchain"
|
|
9
9
|
},
|
|
10
10
|
"majorLine": "v3",
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
"README badge block checks and writes are generated from machine-readable repository facts"
|
|
620
620
|
],
|
|
621
621
|
"breakingDigest": "sha256:90a73892b2d6c214048448d5f45df75639bdf7b7e8fefd9c596e04b087407bcc",
|
|
622
|
-
"auditDigest": "sha256:
|
|
622
|
+
"auditDigest": "sha256:f3be0e8ce65d5860d1ad808990f78a1fd48c18207a9aacf1ba63fd0d0e51be40"
|
|
623
623
|
},
|
|
624
624
|
{
|
|
625
625
|
"contractVersion": 1,
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
"manual entries carry source file digests so downstream sites and agents can detect stale hand-written documentation"
|
|
710
710
|
],
|
|
711
711
|
"breakingDigest": "sha256:7d0d2819e3a3e72989d9c57b5efe9d0bc0a79bc0f2c82a0c7b9d6c5a211a91f2",
|
|
712
|
-
"auditDigest": "sha256:
|
|
712
|
+
"auditDigest": "sha256:b8e1f1d16a1810807d3b5f8b82a06d146d53d8581d4a21969b44d6d2e91804e8"
|
|
713
713
|
},
|
|
714
714
|
{
|
|
715
715
|
"contractVersion": 1,
|
|
@@ -731,7 +731,7 @@
|
|
|
731
731
|
"agents can discover supported Node APIs without importing internal file paths"
|
|
732
732
|
],
|
|
733
733
|
"breakingDigest": "sha256:48f925608d3e2131d90936b07dc2a30341204cae3e6e785c0f77d61ad755c945",
|
|
734
|
-
"auditDigest": "sha256:
|
|
734
|
+
"auditDigest": "sha256:7c7ebec50b3a7f24cd0bbfbca70b55c950bcce54c24d9e354a5863d98b6169b4"
|
|
735
735
|
},
|
|
736
736
|
{
|
|
737
737
|
"contractVersion": 1,
|
|
@@ -3533,5 +3533,5 @@
|
|
|
3533
3533
|
}
|
|
3534
3534
|
],
|
|
3535
3535
|
"compatibilityDigest": "sha256:3bbcaf835844260ed98414d3bd176667245d12131e13fc748e4c2fae12399691",
|
|
3536
|
-
"contractDigest": "sha256:
|
|
3536
|
+
"contractDigest": "sha256:ba6f71012f1d2a796ff2f621bbfabc3cee2b95902dcdf662d1dd60a205b8baf7"
|
|
3537
3537
|
}
|