@intentius/chant 0.124.101 → 0.124.102
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/dist/ci-evidence-claims.d.ts +12 -0
- package/dist/ci-evidence-claims.js +12 -0
- package/dist/cli/handlers/release-init.js +50 -18
- package/dist/cli/handlers/release.d.ts +1 -1
- package/dist/cli/handlers/release.js +12 -9
- package/dist/cli/release-commands/cut.js +4 -3
- package/dist/cli/release-commands/init.js +4 -1
- package/dist/cli/release-commands/workflow.js +4 -2
- package/dist/cloud-lister/index.d.ts +4 -1
- package/dist/cloud-lister/index.js +2 -1
- package/dist/cloud-lister/kubernetes-components.d.ts +56 -0
- package/dist/cloud-lister/kubernetes-components.js +642 -0
- package/dist/cloud-lister/kubernetes.d.ts +18 -0
- package/dist/cloud-lister/kubernetes.js +26 -1
- package/dist/cloud-lister/mask.d.ts +5 -1
- package/dist/cloud-lister/mask.js +14 -5
- package/dist/config-import.d.ts +1 -1
- package/dist/config-import.js +6 -2
- package/dist/config-sandbox.d.ts +1 -1
- package/dist/config-sandbox.js +3 -3
- package/dist/config.d.ts +75 -1
- package/dist/config.js +27 -2
- package/dist/deep-observation.js +9 -3
- package/dist/floor-table.data.js +12 -6
- package/dist/lexicon.d.ts +4 -2
- package/dist/lifecycle/__fixtures__/package-files.d.ts +32 -0
- package/dist/lifecycle/__fixtures__/package-files.js +72 -0
- package/dist/lifecycle/__fixtures__/publish-fakes.js +5 -0
- package/dist/lifecycle/publish-credentials.d.ts +1 -1
- package/dist/lifecycle/publish-credentials.js +5 -0
- package/dist/lifecycle/publish-declaration.d.ts +123 -0
- package/dist/lifecycle/publish-declaration.js +140 -0
- package/dist/lifecycle/publish-helm.d.ts +83 -0
- package/dist/lifecycle/publish-helm.js +452 -0
- package/dist/lifecycle/publish-maven.d.ts +79 -0
- package/dist/lifecycle/publish-maven.js +364 -0
- package/dist/lifecycle/publish-mcp-registry.js +1 -2
- package/dist/lifecycle/publish-npm.d.ts +27 -1
- package/dist/lifecycle/publish-npm.js +51 -1
- package/dist/lifecycle/publish-nuget.d.ts +93 -0
- package/dist/lifecycle/publish-nuget.js +377 -0
- package/dist/lifecycle/publish-oci.d.ts +57 -1
- package/dist/lifecycle/publish-oci.js +1 -1
- package/dist/lifecycle/publish-package-files.d.ts +16 -0
- package/dist/lifecycle/publish-package-files.js +39 -0
- package/dist/lifecycle/publish-pypi.d.ts +2 -0
- package/dist/lifecycle/publish-pypi.js +1 -1
- package/dist/lifecycle/publish-rubygems.d.ts +84 -0
- package/dist/lifecycle/publish-rubygems.js +366 -0
- package/dist/lifecycle/publish-targets.d.ts +10 -0
- package/dist/lifecycle/publish-targets.js +22 -0
- package/dist/lifecycle/publish-train-names.d.ts +4 -1
- package/dist/lifecycle/publish-train-names.js +5 -0
- package/dist/lifecycle/release-artifacts.d.ts +80 -2
- package/dist/lifecycle/release-artifacts.js +242 -5
- package/dist/lifecycle/release-cut.d.ts +6 -1
- package/dist/lifecycle/release-cut.js +15 -0
- package/dist/lifecycle/release-doctor.js +208 -6
- package/dist/lifecycle/release-init-registries.d.ts +48 -0
- package/dist/lifecycle/release-init-registries.js +97 -0
- package/dist/lifecycle/release-init.d.ts +22 -2
- package/dist/lifecycle/release-init.js +132 -7
- package/dist/lifecycle/release-next.js +1 -2
- package/dist/lifecycle/release-publish.d.ts +1 -1
- package/dist/lifecycle/release-publish.js +1 -1
- package/dist/lifecycle/release-tag.js +1 -2
- package/dist/op/local-executor.d.ts +1 -1
- package/dist/op/local-executor.js +2 -2
- package/dist/op/op-waves-evidence.js +9 -2
- package/dist/release-floors.d.ts +1 -1
- package/dist/release-floors.js +1 -1
- package/dist/sensitive-key.d.ts +12 -0
- package/dist/sensitive-key.js +52 -0
- package/dist/tool-pins.d.ts +2 -0
- package/dist/tool-pins.js +12 -0
- package/dist/ts-loader.d.ts +8 -0
- package/dist/ts-loader.js +19 -0
- package/dist/wave-runtime.mjs +325 -325
- package/dist/workspace/lexicon-outputs.d.ts +1 -1
- package/dist/workspace/lexicon-outputs.js +1 -1
- package/dist/workspace/release-steps/index.js +4 -0
- package/dist/workspace/release-steps/nfpm.d.ts +13 -0
- package/dist/workspace/release-steps/nfpm.js +29 -0
- package/dist/workspace/release-steps/nuget.d.ts +14 -0
- package/dist/workspace/release-steps/nuget.js +16 -0
- package/dist/workspace/release-steps/targets.d.ts +2 -2
- package/dist/workspace/release-steps/targets.js +3 -3
- package/dist/workspace/release-train-workflow.d.ts +7 -0
- package/dist/workspace/release-train-workflow.js +46 -10
- package/dist/workspace/release-workflow.d.ts +28 -3
- package/dist/workspace/release-workflow.js +38 -15
- package/dist/workspace/train-cut.d.ts +2 -2
- package/dist/workspace/train-cut.js +27 -5
- package/dist/workspace/train-prepare.d.ts +6 -3
- package/dist/workspace/train-prepare.js +54 -8
- package/dist/workspace/train-publish.js +2 -3
- package/dist/workspace/train-shell.d.ts +5 -0
- package/dist/workspace/train-shell.js +17 -0
- package/dist/workspace/trust/check-evidence-report.d.ts +3 -7
- package/dist/workspace/trust/check-evidence-report.js +3 -7
- package/package.json +1 -1
package/dist/sensitive-key.js
CHANGED
|
@@ -66,3 +66,55 @@ export function isReferenceField(key, value) {
|
|
|
66
66
|
return value.length > 0 && value.every(isPointer);
|
|
67
67
|
return isPointer(value);
|
|
68
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Where a Kubernetes pod spec names a Secret (chant#5252), as an index-erased
|
|
71
|
+
* pattern: a Pod's `spec`, a workload's `spec.template.spec`, or a CronJob's
|
|
72
|
+
* `spec.jobTemplate.spec.template.spec`, then one of the four places that
|
|
73
|
+
* name a Secret. Each maps to the field that holds the name.
|
|
74
|
+
*/
|
|
75
|
+
const POD_SPEC = String.raw `^spec\.(?:(?:jobTemplate\.spec\.)?template\.spec\.)?`;
|
|
76
|
+
const CONTAINERS = String.raw `(?:initContainers|containers|ephemeralContainers)\[\]\.`;
|
|
77
|
+
const SECRET_NAME_HOLDERS = [
|
|
78
|
+
{ re: new RegExp(`${POD_SPEC}volumes\\[\\]\\.secret$`), field: "secretName" },
|
|
79
|
+
{ re: new RegExp(`${POD_SPEC}volumes\\[\\]\\.projected\\.sources\\[\\]\\.secret$`), field: "name" },
|
|
80
|
+
{ re: new RegExp(`${POD_SPEC}${CONTAINERS}env\\[\\]\\.valueFrom\\.secretKeyRef$`), field: "name" },
|
|
81
|
+
{ re: new RegExp(`${POD_SPEC}${CONTAINERS}envFrom\\[\\]\\.secretRef$`), field: "name" },
|
|
82
|
+
{ re: new RegExp(`${POD_SPEC}imagePullSecrets$`), field: "name", list: true },
|
|
83
|
+
];
|
|
84
|
+
function nameView(value, field, masked) {
|
|
85
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
86
|
+
return undefined;
|
|
87
|
+
const obj = value;
|
|
88
|
+
const name = obj[field];
|
|
89
|
+
if (typeof name !== "string" || name === "" || name === "<masked>" || name === "[REDACTED]")
|
|
90
|
+
return undefined;
|
|
91
|
+
const out = {};
|
|
92
|
+
for (const k of Object.keys(obj))
|
|
93
|
+
out[k] = k === field ? name : masked;
|
|
94
|
+
return out;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The readable view of a Secret reference in a pod spec (chant#5252), or
|
|
98
|
+
* undefined when `pattern` is not one or `value` names no Secret. The name
|
|
99
|
+
* stays (`volumes[].secret.secretName`, `secretKeyRef.name`,
|
|
100
|
+
* `envFrom[].secretRef.name`, `imagePullSecrets[].name`) and every other
|
|
101
|
+
* field becomes `masked`, so a Secret's key names and options stay hidden
|
|
102
|
+
* as before. Both masking passes call it (the lister's and the deep
|
|
103
|
+
* observation's), on the declared and the live side alike, so the two sides
|
|
104
|
+
* still compare equal. A value that is already `masked` is not a view and
|
|
105
|
+
* gives undefined.
|
|
106
|
+
*/
|
|
107
|
+
export function podSecretNameView(pattern, value, masked) {
|
|
108
|
+
for (const h of SECRET_NAME_HOLDERS) {
|
|
109
|
+
if (!h.re.test(pattern))
|
|
110
|
+
continue;
|
|
111
|
+
if (h.list) {
|
|
112
|
+
if (!Array.isArray(value) || value.length === 0)
|
|
113
|
+
return undefined;
|
|
114
|
+
const views = value.map((v) => nameView(v, h.field, masked));
|
|
115
|
+
return views.every((v) => v !== undefined) ? views : undefined;
|
|
116
|
+
}
|
|
117
|
+
return nameView(value, h.field, masked);
|
|
118
|
+
}
|
|
119
|
+
return undefined;
|
|
120
|
+
}
|
package/dist/tool-pins.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* curl -sL https://github.com/sigstore/cosign/releases/download/v3.1.4/cosign_checksums.txt | grep -E 'cosign-linux-(amd64|arm64)$'
|
|
13
13
|
* gh release download v2.19.0 -R goreleaser/goreleaser -p checksums.txt -O - | grep -E 'goreleaser_Linux_(x86_64|arm64)\.tar\.gz$'
|
|
14
|
+
* gh release download v2.48.0 -R goreleaser/nfpm -p checksums.txt -O - | grep -E 'nfpm_2.48.0_Linux_(x86_64|arm64)\.tar\.gz$'
|
|
14
15
|
*/
|
|
15
16
|
export interface ToolPin {
|
|
16
17
|
/** The tool's name: the binary the step leaves in its directory. */
|
|
@@ -28,6 +29,7 @@ export interface ToolPin {
|
|
|
28
29
|
export declare const TOOL_PINS: {
|
|
29
30
|
readonly cosign: ToolPin;
|
|
30
31
|
readonly goreleaser: ToolPin;
|
|
32
|
+
readonly nfpm: ToolPin;
|
|
31
33
|
};
|
|
32
34
|
/**
|
|
33
35
|
* Shell that downloads `pin` for `platform` into `dir`, checks its SHA-256
|
package/dist/tool-pins.js
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* curl -sL https://github.com/sigstore/cosign/releases/download/v3.1.4/cosign_checksums.txt | grep -E 'cosign-linux-(amd64|arm64)$'
|
|
13
13
|
* gh release download v2.19.0 -R goreleaser/goreleaser -p checksums.txt -O - | grep -E 'goreleaser_Linux_(x86_64|arm64)\.tar\.gz$'
|
|
14
|
+
* gh release download v2.48.0 -R goreleaser/nfpm -p checksums.txt -O - | grep -E 'nfpm_2.48.0_Linux_(x86_64|arm64)\.tar\.gz$'
|
|
14
15
|
*/
|
|
15
16
|
const cosign = (version, sums) => ({
|
|
16
17
|
name: "cosign",
|
|
@@ -23,6 +24,12 @@ const goreleaser = (version, sums) => ({
|
|
|
23
24
|
archive: true,
|
|
24
25
|
platforms: Object.fromEntries(Object.entries(sums).map(([platform, [asset, sha256]]) => [platform, { url: `https://github.com/goreleaser/goreleaser/releases/download/${version}/${asset}`, sha256 }])),
|
|
25
26
|
});
|
|
27
|
+
const nfpm = (version, sums) => ({
|
|
28
|
+
name: "nfpm",
|
|
29
|
+
version,
|
|
30
|
+
archive: true,
|
|
31
|
+
platforms: Object.fromEntries(Object.entries(sums).map(([platform, [asset, sha256]]) => [platform, { url: `https://github.com/goreleaser/nfpm/releases/download/${version}/${asset}`, sha256 }])),
|
|
32
|
+
});
|
|
26
33
|
export const TOOL_PINS = {
|
|
27
34
|
// #5164: Sigstore signing at publish. v3.1.4 was released 2026-10-20; the sums are its cosign_checksums.txt's.
|
|
28
35
|
cosign: cosign("v3.1.4", {
|
|
@@ -34,6 +41,11 @@ export const TOOL_PINS = {
|
|
|
34
41
|
"linux/amd64": ["goreleaser_Linux_x86_64.tar.gz", "ebc3194ad1d1b1787614405285a0039665cd4c5bd3305215a1b201600f90630b"],
|
|
35
42
|
"linux/arm64": ["goreleaser_Linux_arm64.tar.gz", "ef33741b684c9f62d6a21e7a3c8b051f139ea7b1d301693b67cc819c46226d53"],
|
|
36
43
|
}),
|
|
44
|
+
// #5233: release.artifacts entries nfpm packages. v2.48.0 was released 2026-10-12; the sums are its checksums.txt's.
|
|
45
|
+
nfpm: nfpm("v2.48.0", {
|
|
46
|
+
"linux/amd64": ["nfpm_2.48.0_Linux_x86_64.tar.gz", "6d7f9a28b2f397934403950fcbba83f598b08d02edbe79a0815b3b4897341750"],
|
|
47
|
+
"linux/arm64": ["nfpm_2.48.0_Linux_arm64.tar.gz", "a9a75213763783b7669719e505474c748c5ad7dc66591a195619deb50f85c2f4"],
|
|
48
|
+
}),
|
|
37
49
|
};
|
|
38
50
|
/**
|
|
39
51
|
* Shell that downloads `pin` for `platform` into `dir`, checks its SHA-256
|
package/dist/ts-loader.d.ts
CHANGED
|
@@ -51,6 +51,14 @@ export declare function chantPackageSourceTarget(specifier: string, parentPath:
|
|
|
51
51
|
* CommonJS hook from source knows not to add a second one.
|
|
52
52
|
*/
|
|
53
53
|
export declare function ensureTypeScriptLoader(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether this process can load a TypeScript module such as
|
|
56
|
+
* `chant.config.ts`: always from source, where a loader already runs chant
|
|
57
|
+
* itself, and in the compiled CLI when tsx resolves from chant's install.
|
|
58
|
+
* Nothing is registered; `chant release init` asks before it writes a
|
|
59
|
+
* config it would have to read back.
|
|
60
|
+
*/
|
|
61
|
+
export declare function typeScriptLoaderAvailable(): boolean;
|
|
54
62
|
/**
|
|
55
63
|
* #3981 — register tsx only when the module about to be imported is not
|
|
56
64
|
* JavaScript. `pathOrUrl` is the resolved module, a path or a file URL. A
|
package/dist/ts-loader.js
CHANGED
|
@@ -241,6 +241,25 @@ export function ensureTypeScriptLoader() {
|
|
|
241
241
|
state.tsx = true;
|
|
242
242
|
return true;
|
|
243
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* Whether this process can load a TypeScript module such as
|
|
246
|
+
* `chant.config.ts`: always from source, where a loader already runs chant
|
|
247
|
+
* itself, and in the compiled CLI when tsx resolves from chant's install.
|
|
248
|
+
* Nothing is registered; `chant release init` asks before it writes a
|
|
249
|
+
* config it would have to read back.
|
|
250
|
+
*/
|
|
251
|
+
export function typeScriptLoaderAvailable() {
|
|
252
|
+
const state = compiledState();
|
|
253
|
+
if (!state || state.tsx)
|
|
254
|
+
return true;
|
|
255
|
+
try {
|
|
256
|
+
nodeModule.createRequire(import.meta.url).resolve("tsx/cjs/api");
|
|
257
|
+
return true;
|
|
258
|
+
}
|
|
259
|
+
catch {
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
244
263
|
/**
|
|
245
264
|
* #3981 — register tsx only when the module about to be imported is not
|
|
246
265
|
* JavaScript. `pathOrUrl` is the resolved module, a path or a file URL. A
|