@intentius/chant 0.124.100 → 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/action-pins.d.ts +2 -0
- package/dist/action-pins.js +3 -0
- package/dist/ci-detect.d.ts +13 -0
- package/dist/ci-detect.js +12 -0
- package/dist/ci-evidence-claims.d.ts +12 -0
- package/dist/ci-evidence-claims.js +12 -0
- package/dist/ci-system.d.ts +66 -0
- package/dist/ci-system.js +61 -0
- package/dist/cli/handlers/build.js +27 -0
- package/dist/cli/handlers/release-doctor.d.ts +12 -0
- package/dist/cli/handlers/release-doctor.js +118 -0
- package/dist/cli/handlers/release-init.d.ts +10 -0
- package/dist/cli/handlers/release-init.js +374 -0
- package/dist/cli/handlers/release.d.ts +43 -2
- package/dist/cli/handlers/release.js +667 -39
- package/dist/cli/handlers/run-generate.js +11 -0
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.js +44 -101
- package/dist/cli/parse-args.js +48 -0
- package/dist/cli/registry.d.ts +16 -0
- package/dist/cli/release-commands/artifacts.d.ts +3 -0
- package/dist/cli/release-commands/artifacts.js +14 -0
- package/dist/cli/release-commands/candidates.d.ts +3 -0
- package/dist/cli/release-commands/candidates.js +16 -0
- package/dist/cli/release-commands/changed.d.ts +3 -0
- package/dist/cli/release-commands/changed.js +14 -0
- package/dist/cli/release-commands/compose.d.ts +3 -0
- package/dist/cli/release-commands/compose.js +16 -0
- package/dist/cli/release-commands/cut.d.ts +3 -0
- package/dist/cli/release-commands/cut.js +50 -0
- package/dist/cli/release-commands/doctor.d.ts +3 -0
- package/dist/cli/release-commands/doctor.js +14 -0
- package/dist/cli/release-commands/export.d.ts +3 -0
- package/dist/cli/release-commands/export.js +12 -0
- package/dist/cli/release-commands/images.d.ts +3 -0
- package/dist/cli/release-commands/images.js +13 -0
- package/dist/cli/release-commands/index.d.ts +8 -0
- package/dist/cli/release-commands/index.js +52 -0
- package/dist/cli/release-commands/init.d.ts +3 -0
- package/dist/cli/release-commands/init.js +19 -0
- package/dist/cli/release-commands/list.d.ts +3 -0
- package/dist/cli/release-commands/list.js +10 -0
- package/dist/cli/release-commands/next.d.ts +3 -0
- package/dist/cli/release-commands/next.js +13 -0
- package/dist/cli/release-commands/publish.d.ts +3 -0
- package/dist/cli/release-commands/publish.js +22 -0
- package/dist/cli/release-commands/stamp.d.ts +3 -0
- package/dist/cli/release-commands/stamp.js +15 -0
- package/dist/cli/release-commands/status.d.ts +3 -0
- package/dist/cli/release-commands/status.js +17 -0
- package/dist/cli/release-commands/tag.d.ts +3 -0
- package/dist/cli/release-commands/tag.js +12 -0
- package/dist/cli/release-commands/types.d.ts +20 -0
- package/dist/cli/release-commands/types.js +1 -0
- package/dist/cli/release-commands/verify.d.ts +3 -0
- package/dist/cli/release-commands/verify.js +15 -0
- package/dist/cli/release-commands/workflow.d.ts +3 -0
- package/dist/cli/release-commands/workflow.js +15 -0
- 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/components/cli-support.d.ts +1 -1
- package/dist/components/cli-support.js +1 -1
- package/dist/config-environments.d.ts +8 -1
- package/dist/config-environments.js +2 -0
- 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 +369 -10
- package/dist/config.js +127 -7
- package/dist/deep-observation.js +9 -3
- package/dist/floor-table.data.js +21 -1
- package/dist/forge-remote.d.ts +13 -0
- package/dist/forge-remote.js +15 -0
- package/dist/lexicon.d.ts +45 -4
- 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.d.ts +62 -0
- package/dist/lifecycle/__fixtures__/publish-fakes.js +275 -3
- package/dist/lifecycle/publish-attachments.d.ts +2 -1
- package/dist/lifecycle/publish-attachments.js +19 -2
- package/dist/lifecycle/publish-cargo.d.ts +99 -0
- package/dist/lifecycle/publish-cargo.js +412 -0
- package/dist/lifecycle/publish-credentials.d.ts +1 -1
- package/dist/lifecycle/publish-credentials.js +13 -0
- package/dist/lifecycle/publish-declaration.d.ts +322 -4
- package/dist/lifecycle/publish-declaration.js +340 -9
- package/dist/lifecycle/publish-forge.d.ts +45 -2
- package/dist/lifecycle/publish-forge.js +434 -34
- package/dist/lifecycle/publish-git-ssh.d.ts +15 -0
- package/dist/lifecycle/publish-git-ssh.js +30 -4
- package/dist/lifecycle/publish-github.d.ts +40 -2
- package/dist/lifecycle/publish-github.js +100 -3
- package/dist/lifecycle/publish-helm.d.ts +83 -0
- package/dist/lifecycle/publish-helm.js +452 -0
- package/dist/lifecycle/publish-homebrew.d.ts +7 -9
- package/dist/lifecycle/publish-homebrew.js +34 -197
- package/dist/lifecycle/publish-index.d.ts +141 -0
- package/dist/lifecycle/publish-index.js +719 -0
- package/dist/lifecycle/publish-marketplace.js +77 -0
- package/dist/lifecycle/publish-maven.d.ts +79 -0
- package/dist/lifecycle/publish-maven.js +364 -0
- package/dist/lifecycle/publish-mcp-registry.d.ts +66 -0
- package/dist/lifecycle/publish-mcp-registry.js +305 -0
- package/dist/lifecycle/publish-npm.d.ts +27 -1
- package/dist/lifecycle/publish-npm.js +216 -3
- package/dist/lifecycle/publish-nuget.d.ts +93 -0
- package/dist/lifecycle/publish-nuget.js +377 -0
- package/dist/lifecycle/publish-oci.d.ts +91 -2
- package/dist/lifecycle/publish-oci.js +247 -8
- 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 +138 -0
- package/dist/lifecycle/publish-pypi.js +657 -0
- package/dist/lifecycle/publish-record.d.ts +6 -3
- package/dist/lifecycle/publish-record.js +6 -3
- package/dist/lifecycle/publish-rubygems.d.ts +84 -0
- package/dist/lifecycle/publish-rubygems.js +366 -0
- package/dist/lifecycle/publish-signing.d.ts +147 -0
- package/dist/lifecycle/publish-signing.js +257 -0
- package/dist/lifecycle/publish-targets.d.ts +37 -1
- package/dist/lifecycle/publish-targets.js +102 -0
- package/dist/lifecycle/publish-tauri.js +43 -0
- package/dist/lifecycle/publish-train-names.d.ts +57 -0
- package/dist/lifecycle/publish-train-names.js +123 -0
- package/dist/lifecycle/publish-verify.d.ts +121 -0
- package/dist/lifecycle/publish-verify.js +130 -0
- package/dist/lifecycle/query.js +8 -0
- package/dist/lifecycle/release-artifacts.d.ts +290 -0
- package/dist/lifecycle/release-artifacts.js +808 -0
- package/dist/lifecycle/release-changelog.d.ts +13 -1
- package/dist/lifecycle/release-changelog.js +35 -2
- package/dist/lifecycle/release-cut.d.ts +64 -4
- package/dist/lifecycle/release-cut.js +147 -34
- package/dist/lifecycle/release-doctor.d.ts +113 -0
- package/dist/lifecycle/release-doctor.js +1198 -0
- package/dist/lifecycle/release-green.d.ts +86 -0
- package/dist/lifecycle/release-green.js +286 -0
- 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 +275 -0
- package/dist/lifecycle/release-init.js +984 -0
- package/dist/lifecycle/release-intents.d.ts +73 -0
- package/dist/lifecycle/release-intents.js +128 -0
- package/dist/lifecycle/release-next.d.ts +111 -0
- package/dist/lifecycle/release-next.js +251 -0
- package/dist/lifecycle/release-prerelease.d.ts +19 -0
- package/dist/lifecycle/release-prerelease.js +30 -0
- package/dist/lifecycle/release-publish.d.ts +256 -10
- package/dist/lifecycle/release-publish.js +247 -35
- package/dist/lifecycle/release-status-change.d.ts +226 -0
- package/dist/lifecycle/release-status-change.js +478 -0
- package/dist/lifecycle/release-status.d.ts +11 -0
- package/dist/lifecycle/release-status.js +1 -1
- package/dist/lifecycle/release-store.d.ts +73 -2
- package/dist/lifecycle/release-store.js +32 -1
- package/dist/lifecycle/release-tag.d.ts +142 -0
- package/dist/lifecycle/release-tag.js +322 -0
- package/dist/lifecycle/release-verify.d.ts +73 -1
- package/dist/lifecycle/release-verify.js +117 -2
- package/dist/lifecycle/release-version-formats.d.ts +73 -0
- package/dist/lifecycle/release-version-formats.js +570 -0
- package/dist/lifecycle/release-version.d.ts +58 -10
- package/dist/lifecycle/release-version.js +164 -36
- package/dist/lifecycle/release-workstation.d.ts +3 -2
- package/dist/lifecycle/release-workstation.js +3 -2
- package/dist/op/generate-pipeline.js +1 -1
- 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/pr-forge-base.js +4 -2
- package/dist/pr-forge.d.ts +20 -2
- package/dist/pr-forge.js +46 -10
- package/dist/release-floors.d.ts +8 -1
- package/dist/release-floors.js +9 -2
- package/dist/sensitive-key.d.ts +12 -0
- package/dist/sensitive-key.js +52 -0
- package/dist/tool-pins.d.ts +40 -0
- package/dist/tool-pins.js +66 -0
- package/dist/ts-loader.d.ts +8 -0
- package/dist/ts-loader.js +19 -0
- package/dist/wave-runtime.mjs +345 -342
- package/dist/workspace/ci-forge.d.ts +17 -0
- package/dist/workspace/ci-forge.js +17 -0
- package/dist/workspace/ci-init.js +1 -1
- package/dist/workspace/composites.schema.json +1 -0
- package/dist/workspace/declaration.d.ts +8 -0
- package/dist/workspace/declaration.js +12 -0
- package/dist/workspace/declaration.schema.json +8 -0
- package/dist/workspace/environments.d.ts +2 -0
- package/dist/workspace/environments.js +1 -1
- package/dist/workspace/identity-gate-rule.d.ts +61 -5
- package/dist/workspace/identity-gate-rule.js +81 -12
- package/dist/workspace/lexicon-outputs.d.ts +1 -1
- package/dist/workspace/lexicon-outputs.js +1 -1
- package/dist/workspace/member-pipeline.d.ts +2 -1
- package/dist/workspace/member-pipeline.js +5 -2
- package/dist/workspace/reason-codes.d.ts +2 -0
- package/dist/workspace/reason-codes.js +3 -1
- package/dist/workspace/release-changed.d.ts +75 -4
- package/dist/workspace/release-changed.js +205 -34
- package/dist/workspace/release-changed.schema.json +20 -2
- package/dist/workspace/release-steps/artifacts.d.ts +7 -0
- package/dist/workspace/release-steps/artifacts.js +45 -0
- package/dist/workspace/release-steps/builds.d.ts +12 -0
- package/dist/workspace/release-steps/builds.js +38 -0
- package/dist/workspace/release-steps/doctor.d.ts +8 -0
- package/dist/workspace/release-steps/doctor.js +14 -0
- package/dist/workspace/release-steps/goreleaser.d.ts +16 -0
- package/dist/workspace/release-steps/goreleaser.js +36 -0
- package/dist/workspace/release-steps/green.d.ts +3 -0
- package/dist/workspace/release-steps/green.js +6 -0
- package/dist/workspace/release-steps/images.d.ts +22 -0
- package/dist/workspace/release-steps/images.js +59 -0
- package/dist/workspace/release-steps/index.d.ts +9 -0
- package/dist/workspace/release-steps/index.js +50 -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/pypi.d.ts +15 -0
- package/dist/workspace/release-steps/pypi.js +21 -0
- package/dist/workspace/release-steps/qemu.d.ts +21 -0
- package/dist/workspace/release-steps/qemu.js +35 -0
- package/dist/workspace/release-steps/signing.d.ts +18 -0
- package/dist/workspace/release-steps/signing.js +30 -0
- package/dist/workspace/release-steps/stamp.d.ts +3 -0
- package/dist/workspace/release-steps/stamp.js +4 -0
- package/dist/workspace/release-steps/targets.d.ts +31 -0
- package/dist/workspace/release-steps/targets.js +40 -0
- package/dist/workspace/release-steps/types.d.ts +104 -0
- package/dist/workspace/release-steps/types.js +2 -0
- package/dist/workspace/release-steps/verify.d.ts +3 -0
- package/dist/workspace/release-steps/verify.js +4 -0
- package/dist/workspace/release-toolchains.d.ts +59 -0
- package/dist/workspace/release-toolchains.js +133 -0
- package/dist/workspace/release-train-workflow.d.ts +36 -0
- package/dist/workspace/release-train-workflow.js +121 -0
- package/dist/workspace/release-train.d.ts +3 -1
- package/dist/workspace/release-train.js +20 -3
- package/dist/workspace/release-workflow.d.ts +183 -59
- package/dist/workspace/release-workflow.js +570 -201
- package/dist/workspace/releases.schema.json +70 -1
- package/dist/workspace/search-contract.d.ts +1 -1
- package/dist/workspace/security.js +9 -2
- package/dist/workspace/train-cut.d.ts +182 -0
- package/dist/workspace/train-cut.js +504 -0
- package/dist/workspace/train-prepare.d.ts +64 -0
- package/dist/workspace/train-prepare.js +313 -0
- package/dist/workspace/train-publish.d.ts +177 -0
- package/dist/workspace/train-publish.js +574 -0
- package/dist/workspace/train-range-labels.d.ts +33 -0
- package/dist/workspace/train-range-labels.js +109 -0
- 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/dist/workspace/trust/seal.d.ts +13 -3
- package/dist/workspace/trust/seal.js +14 -4
- package/dist/workspace/work-cli.d.ts +3 -2
- package/dist/workspace/work-cli.js +3 -2
- package/dist/workspace/workspace-ledger.d.ts +14 -1
- package/dist/workspace/workspace-ledger.js +33 -7
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { BuildParamProvenance } from "./provenance.js";
|
|
|
9
9
|
import { type LexiconDeclaration } from "./lexicon-module.js";
|
|
10
10
|
import { type DecideConfig } from "./op/decide-config.js";
|
|
11
11
|
import { type PublishDeclaration } from "./lifecycle/publish-declaration.js";
|
|
12
|
-
export { environmentEndpoint, environmentExecutor, environmentName, EXECUTOR_FORGES, environmentNames, isEnvironmentPattern, isOwnershipParamRef, matchesDeclaredEnvironment, matchesEnvironmentPattern, resolveOwnershipStack, type EnvironmentDeclaration, type EnvironmentExecutor, type OwnershipEnv, } from "./config-environments.js";
|
|
12
|
+
export { environmentEndpoint, environmentExecutor, environmentName, EXECUTOR_CI_SYSTEMS, EXECUTOR_FORGES, environmentNames, isEnvironmentPattern, isOwnershipParamRef, matchesDeclaredEnvironment, matchesEnvironmentPattern, resolveOwnershipStack, type EnvironmentDeclaration, type EnvironmentExecutor, type OwnershipEnv, } from "./config-environments.js";
|
|
13
13
|
import { type EnvironmentDeclaration, type OwnershipEnv } from "./config-environments.js";
|
|
14
14
|
export declare const ChantConfigSchema: z.ZodObject<{
|
|
15
15
|
lexicons: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -28,6 +28,12 @@ export declare const ChantConfigSchema: z.ZodObject<{
|
|
|
28
28
|
github: "github";
|
|
29
29
|
gitlab: "gitlab";
|
|
30
30
|
}>;
|
|
31
|
+
ci: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
forgejo: "forgejo";
|
|
33
|
+
github: "github";
|
|
34
|
+
gitlab: "gitlab";
|
|
35
|
+
prow: "prow";
|
|
36
|
+
}>>;
|
|
31
37
|
workflow: z.ZodString;
|
|
32
38
|
}, z.core.$strict>>;
|
|
33
39
|
}, z.core.$strip>]>>>;
|
|
@@ -99,9 +105,14 @@ export declare const ChantConfigSchema: z.ZodObject<{
|
|
|
99
105
|
api: z.ZodOptional<z.ZodString>;
|
|
100
106
|
assets: z.ZodArray<z.ZodString>;
|
|
101
107
|
notes: z.ZodOptional<z.ZodObject<{
|
|
102
|
-
file: z.ZodString
|
|
103
|
-
heading: z.ZodString
|
|
108
|
+
file: z.ZodOptional<z.ZodString>;
|
|
109
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
104
110
|
linkBase: z.ZodOptional<z.ZodString>;
|
|
111
|
+
generate: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
commits: "commits";
|
|
113
|
+
forge: "forge";
|
|
114
|
+
}>>;
|
|
115
|
+
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
105
116
|
before: z.ZodOptional<z.ZodString>;
|
|
106
117
|
after: z.ZodOptional<z.ZodString>;
|
|
107
118
|
}, z.core.$strict>>;
|
|
@@ -150,6 +161,125 @@ export declare const ChantConfigSchema: z.ZodObject<{
|
|
|
150
161
|
latest: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"legacy">]>>;
|
|
151
162
|
api: z.ZodOptional<z.ZodString>;
|
|
152
163
|
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
165
|
+
type: z.ZodLiteral<"pypi">;
|
|
166
|
+
files: z.ZodArray<z.ZodString>;
|
|
167
|
+
index: z.ZodOptional<z.ZodEnum<{
|
|
168
|
+
pypi: "pypi";
|
|
169
|
+
testpypi: "testpypi";
|
|
170
|
+
}>>;
|
|
171
|
+
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
172
|
+
simpleUrl: z.ZodOptional<z.ZodString>;
|
|
173
|
+
auth: z.ZodOptional<z.ZodEnum<{
|
|
174
|
+
token: "token";
|
|
175
|
+
"trusted-publishing": "trusted-publishing";
|
|
176
|
+
}>>;
|
|
177
|
+
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
178
|
+
usernameEnv: z.ZodOptional<z.ZodString>;
|
|
179
|
+
sbom: z.ZodOptional<z.ZodLiteral<false>>;
|
|
180
|
+
attestations: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
182
|
+
type: z.ZodLiteral<"cargo">;
|
|
183
|
+
manifest: z.ZodOptional<z.ZodString>;
|
|
184
|
+
crates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
|
+
registry: z.ZodOptional<z.ZodString>;
|
|
186
|
+
index: z.ZodOptional<z.ZodString>;
|
|
187
|
+
api: z.ZodOptional<z.ZodString>;
|
|
188
|
+
auth: z.ZodOptional<z.ZodEnum<{
|
|
189
|
+
token: "token";
|
|
190
|
+
"trusted-publishing": "trusted-publishing";
|
|
191
|
+
}>>;
|
|
192
|
+
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
193
|
+
sbom: z.ZodOptional<z.ZodLiteral<false>>;
|
|
194
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
195
|
+
type: z.ZodLiteral<"mcp-registry">;
|
|
196
|
+
server: z.ZodOptional<z.ZodString>;
|
|
197
|
+
registry: z.ZodOptional<z.ZodString>;
|
|
198
|
+
auth: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
"github-oidc": "github-oidc";
|
|
200
|
+
"github-token": "github-token";
|
|
201
|
+
"registry-token": "registry-token";
|
|
202
|
+
}>>;
|
|
203
|
+
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
204
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
205
|
+
type: z.ZodLiteral<"index">;
|
|
206
|
+
preset: z.ZodOptional<z.ZodEnum<{
|
|
207
|
+
artifacthub: "artifacthub";
|
|
208
|
+
"homebrew-core": "homebrew-core";
|
|
209
|
+
"homebrew-tap": "homebrew-tap";
|
|
210
|
+
krew: "krew";
|
|
211
|
+
scoop: "scoop";
|
|
212
|
+
winget: "winget";
|
|
213
|
+
zed: "zed";
|
|
214
|
+
}>>;
|
|
215
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
218
|
+
commit: "commit";
|
|
219
|
+
"pull-request": "pull-request";
|
|
220
|
+
}>>;
|
|
221
|
+
template: z.ZodOptional<z.ZodString>;
|
|
222
|
+
path: z.ZodOptional<z.ZodString>;
|
|
223
|
+
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
224
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
225
|
+
url: z.ZodOptional<z.ZodString>;
|
|
226
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
227
|
+
fork: z.ZodOptional<z.ZodString>;
|
|
228
|
+
title: z.ZodOptional<z.ZodString>;
|
|
229
|
+
body: z.ZodOptional<z.ZodString>;
|
|
230
|
+
api: z.ZodOptional<z.ZodString>;
|
|
231
|
+
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
232
|
+
sshKeyEnv: z.ZodOptional<z.ZodString>;
|
|
233
|
+
onRefusal: z.ZodOptional<z.ZodEnum<{
|
|
234
|
+
fail: "fail";
|
|
235
|
+
warn: "warn";
|
|
236
|
+
}>>;
|
|
237
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
238
|
+
type: z.ZodLiteral<"helm">;
|
|
239
|
+
charts: z.ZodArray<z.ZodString>;
|
|
240
|
+
oci: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
repository: z.ZodString;
|
|
242
|
+
usernameEnv: z.ZodOptional<z.ZodString>;
|
|
243
|
+
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, z.core.$strict>>;
|
|
245
|
+
index: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
repo: z.ZodString;
|
|
247
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
248
|
+
path: z.ZodOptional<z.ZodString>;
|
|
249
|
+
url: z.ZodOptional<z.ZodString>;
|
|
250
|
+
api: z.ZodOptional<z.ZodString>;
|
|
251
|
+
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
252
|
+
}, z.core.$strict>>;
|
|
253
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
254
|
+
type: z.ZodLiteral<"maven">;
|
|
255
|
+
bundle: z.ZodString;
|
|
256
|
+
api: z.ZodOptional<z.ZodString>;
|
|
257
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
258
|
+
usernameEnv: z.ZodOptional<z.ZodString>;
|
|
259
|
+
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
260
|
+
sbom: z.ZodOptional<z.ZodLiteral<false>>;
|
|
261
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
262
|
+
type: z.ZodLiteral<"nuget">;
|
|
263
|
+
packages: z.ZodArray<z.ZodString>;
|
|
264
|
+
pushUrl: z.ZodOptional<z.ZodString>;
|
|
265
|
+
flatContainerUrl: z.ZodOptional<z.ZodString>;
|
|
266
|
+
auth: z.ZodOptional<z.ZodEnum<{
|
|
267
|
+
token: "token";
|
|
268
|
+
"trusted-publishing": "trusted-publishing";
|
|
269
|
+
}>>;
|
|
270
|
+
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
271
|
+
userEnv: z.ZodOptional<z.ZodString>;
|
|
272
|
+
sbom: z.ZodOptional<z.ZodLiteral<false>>;
|
|
273
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
274
|
+
type: z.ZodLiteral<"rubygems">;
|
|
275
|
+
gems: z.ZodArray<z.ZodString>;
|
|
276
|
+
host: z.ZodOptional<z.ZodString>;
|
|
277
|
+
auth: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
token: "token";
|
|
279
|
+
"trusted-publishing": "trusted-publishing";
|
|
280
|
+
}>>;
|
|
281
|
+
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
282
|
+
sbom: z.ZodOptional<z.ZodLiteral<false>>;
|
|
153
283
|
}, z.core.$strict>], "type">>>;
|
|
154
284
|
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
155
285
|
name: z.ZodString;
|
|
@@ -165,11 +295,119 @@ export declare const ChantConfigSchema: z.ZodObject<{
|
|
|
165
295
|
prepare: z.ZodOptional<z.ZodString>;
|
|
166
296
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
167
297
|
}, z.core.$strict>]>>>;
|
|
298
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
299
|
+
name: z.ZodString;
|
|
300
|
+
build: z.ZodOptional<z.ZodString>;
|
|
301
|
+
builtBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
302
|
+
outputs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
303
|
+
platforms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
304
|
+
archive: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
305
|
+
name: z.ZodOptional<z.ZodString>;
|
|
306
|
+
dir: z.ZodOptional<z.ZodString>;
|
|
307
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
308
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
309
|
+
"tar.gz": "tar.gz";
|
|
310
|
+
zip: "zip";
|
|
311
|
+
}>>;
|
|
312
|
+
}, z.core.$strict>]>>;
|
|
313
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
314
|
+
name: z.ZodString;
|
|
315
|
+
goreleaser: z.ZodObject<{
|
|
316
|
+
config: z.ZodOptional<z.ZodString>;
|
|
317
|
+
dist: z.ZodOptional<z.ZodString>;
|
|
318
|
+
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
319
|
+
}, z.core.$strict>;
|
|
320
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
321
|
+
name: z.ZodString;
|
|
322
|
+
checksums: z.ZodString;
|
|
323
|
+
of: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
324
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
325
|
+
name: z.ZodString;
|
|
326
|
+
helm: z.ZodObject<{
|
|
327
|
+
chart: z.ZodString;
|
|
328
|
+
dir: z.ZodOptional<z.ZodString>;
|
|
329
|
+
appVersion: z.ZodOptional<z.ZodBoolean>;
|
|
330
|
+
}, z.core.$strict>;
|
|
331
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
332
|
+
name: z.ZodString;
|
|
333
|
+
nfpm: z.ZodObject<{
|
|
334
|
+
config: z.ZodOptional<z.ZodString>;
|
|
335
|
+
packagers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
336
|
+
apk: "apk";
|
|
337
|
+
archlinux: "archlinux";
|
|
338
|
+
deb: "deb";
|
|
339
|
+
ipk: "ipk";
|
|
340
|
+
rpm: "rpm";
|
|
341
|
+
}>>>;
|
|
342
|
+
platforms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
343
|
+
dir: z.ZodOptional<z.ZodString>;
|
|
344
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
345
|
+
}, z.core.$strict>;
|
|
346
|
+
}, z.core.$strict>]>>>;
|
|
168
347
|
lane: z.ZodOptional<z.ZodString>;
|
|
348
|
+
green: z.ZodOptional<z.ZodEnum<{
|
|
349
|
+
chant: "chant";
|
|
350
|
+
"forge-checks": "forge-checks";
|
|
351
|
+
none: "none";
|
|
352
|
+
}>>;
|
|
353
|
+
verify: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
354
|
+
name: z.ZodOptional<z.ZodString>;
|
|
355
|
+
run: z.ZodString;
|
|
356
|
+
}, z.core.$strict>]>>>;
|
|
357
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
169
358
|
legacyTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
359
|
+
breakingOnZero: z.ZodOptional<z.ZodEnum<{
|
|
360
|
+
major: "major";
|
|
361
|
+
minor: "minor";
|
|
362
|
+
}>>;
|
|
363
|
+
tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
364
|
+
name: z.ZodString;
|
|
365
|
+
floating: z.ZodOptional<z.ZodString>;
|
|
366
|
+
}, z.core.$strict>]>>;
|
|
367
|
+
signing: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
368
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
369
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
370
|
+
}, z.core.$strict>]>>;
|
|
170
371
|
version: z.ZodOptional<z.ZodObject<{
|
|
171
|
-
packages: z.ZodArray<z.ZodString
|
|
372
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
373
|
lockfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
374
|
+
ranges: z.ZodOptional<z.ZodEnum<{
|
|
375
|
+
caret: "caret";
|
|
376
|
+
exact: "exact";
|
|
377
|
+
keep: "keep";
|
|
378
|
+
train: "train";
|
|
379
|
+
}>>;
|
|
380
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
381
|
+
path: z.ZodString;
|
|
382
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
383
|
+
artifacthub: "artifacthub";
|
|
384
|
+
cargo: "cargo";
|
|
385
|
+
"cargo-lock": "cargo-lock";
|
|
386
|
+
helm: "helm";
|
|
387
|
+
krew: "krew";
|
|
388
|
+
"mcp-server": "mcp-server";
|
|
389
|
+
pyproject: "pyproject";
|
|
390
|
+
}>>;
|
|
391
|
+
appVersion: z.ZodOptional<z.ZodBoolean>;
|
|
392
|
+
crates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
393
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
394
|
+
path: z.ZodString;
|
|
395
|
+
field: z.ZodString;
|
|
396
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
397
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
398
|
+
path: z.ZodString;
|
|
399
|
+
pattern: z.ZodString;
|
|
400
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
401
|
+
}, z.core.$strict>]>>>;
|
|
402
|
+
}, z.core.$strict>>;
|
|
403
|
+
train: z.ZodOptional<z.ZodObject<{
|
|
404
|
+
env: z.ZodString;
|
|
405
|
+
first: z.ZodOptional<z.ZodEnum<{
|
|
406
|
+
each: "each";
|
|
407
|
+
together: "together";
|
|
408
|
+
}>>;
|
|
409
|
+
check: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
410
|
+
buildDependencies: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
173
411
|
}, z.core.$strict>>;
|
|
174
412
|
workflow: z.ZodOptional<z.ZodObject<{
|
|
175
413
|
trigger: z.ZodOptional<z.ZodEnum<{
|
|
@@ -180,9 +418,49 @@ export declare const ChantConfigSchema: z.ZodObject<{
|
|
|
180
418
|
head: "head";
|
|
181
419
|
"last-green": "last-green";
|
|
182
420
|
}>>;
|
|
183
|
-
install: z.ZodOptional<z.ZodString
|
|
421
|
+
install: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
184
422
|
build: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
185
423
|
chant: z.ZodOptional<z.ZodString>;
|
|
424
|
+
toolchains: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
425
|
+
go: "go";
|
|
426
|
+
java: "java";
|
|
427
|
+
node: "node";
|
|
428
|
+
python: "python";
|
|
429
|
+
rust: "rust";
|
|
430
|
+
}>, z.ZodObject<{
|
|
431
|
+
name: z.ZodEnum<{
|
|
432
|
+
go: "go";
|
|
433
|
+
java: "java";
|
|
434
|
+
node: "node";
|
|
435
|
+
python: "python";
|
|
436
|
+
rust: "rust";
|
|
437
|
+
}>;
|
|
438
|
+
version: z.ZodString;
|
|
439
|
+
}, z.core.$strict>]>>, z.ZodLiteral<false>]>>;
|
|
440
|
+
builds: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
441
|
+
name: z.ZodString;
|
|
442
|
+
runner: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
443
|
+
build: z.ZodString;
|
|
444
|
+
outputs: z.ZodArray<z.ZodString>;
|
|
445
|
+
install: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
446
|
+
toolchains: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
447
|
+
go: "go";
|
|
448
|
+
java: "java";
|
|
449
|
+
node: "node";
|
|
450
|
+
python: "python";
|
|
451
|
+
rust: "rust";
|
|
452
|
+
}>, z.ZodObject<{
|
|
453
|
+
name: z.ZodEnum<{
|
|
454
|
+
go: "go";
|
|
455
|
+
java: "java";
|
|
456
|
+
node: "node";
|
|
457
|
+
python: "python";
|
|
458
|
+
rust: "rust";
|
|
459
|
+
}>;
|
|
460
|
+
version: z.ZodString;
|
|
461
|
+
}, z.core.$strict>]>>, z.ZodLiteral<false>]>>;
|
|
462
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
463
|
+
}, z.core.$strict>>>;
|
|
186
464
|
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
187
465
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
188
466
|
read: "read";
|
|
@@ -198,6 +476,7 @@ export declare const ChantConfigSchema: z.ZodObject<{
|
|
|
198
476
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
199
477
|
}, z.core.$strict>]>>>;
|
|
200
478
|
file: z.ZodOptional<z.ZodString>;
|
|
479
|
+
doctor: z.ZodOptional<z.ZodBoolean>;
|
|
201
480
|
}, z.core.$strict>>;
|
|
202
481
|
}, z.core.$strip>>;
|
|
203
482
|
run: z.ZodOptional<z.ZodObject<{
|
|
@@ -526,6 +805,15 @@ export interface ChantConfig {
|
|
|
526
805
|
* ./lifecycle/release-images.ts.
|
|
527
806
|
*/
|
|
528
807
|
images?: import("./lifecycle/release-images.js").ReleaseImageDeclaration[];
|
|
808
|
+
/**
|
|
809
|
+
* Files the cut builds once (#5151): a command's outputs, per platform
|
|
810
|
+
* and packed into archives when asked, what goreleaser writes in snapshot
|
|
811
|
+
* mode, checksums files, and (#5183) files a build job on another runner
|
|
812
|
+
* wrote before the cut. The release records each file's digest, and
|
|
813
|
+
* a publish target refuses a file that differs. See
|
|
814
|
+
* ./lifecycle/release-artifacts.ts.
|
|
815
|
+
*/
|
|
816
|
+
artifacts?: import("./lifecycle/release-artifacts.js").ReleaseArtifactDeclaration[];
|
|
529
817
|
/**
|
|
530
818
|
* The green lane `chant release cut` and `chant release candidates` check
|
|
531
819
|
* when `--lane` is not given (#4692): one `ci.green.lanes` declares in
|
|
@@ -533,23 +821,88 @@ export interface ChantConfig {
|
|
|
533
821
|
* rather than `ci/green/<sha>`.
|
|
534
822
|
*/
|
|
535
823
|
lane?: string;
|
|
824
|
+
/**
|
|
825
|
+
* What says a commit may be released (#5149): `chant`, a `ci/green/<sha>`
|
|
826
|
+
* tag as `chant ci` writes it; `forge-checks`, the commit's checks on the
|
|
827
|
+
* forge passed; `none`, nothing, with a warning, refused under the
|
|
828
|
+
* `supply-chain` and `verified-releases` security groups and a release
|
|
829
|
+
* gate. Default `chant` when chant.workspace.json declares `ci.green` or
|
|
830
|
+
* the repository holds `ci/green/` tags, else `forge-checks`. See ./lifecycle/release-green.ts.
|
|
831
|
+
*/
|
|
832
|
+
green?: import("./lifecycle/release-green.js").ReleaseGreenSource;
|
|
833
|
+
/**
|
|
834
|
+
* Commands `chant release publish` and `chant workspace train publish`
|
|
835
|
+
* run after every target has staged and before any reveals (#5157), with
|
|
836
|
+
* the staged references in the environment (`CHANT_STAGED`,
|
|
837
|
+
* `CHANT_STAGED_NPM`, `CHANT_STAGED_IMAGES`, ...). One that fails stops
|
|
838
|
+
* the publish with nothing visible. See ./lifecycle/publish-verify.ts.
|
|
839
|
+
*/
|
|
840
|
+
verify?: import("./lifecycle/publish-verify.js").ReleaseVerifyDeclaration[];
|
|
841
|
+
/**
|
|
842
|
+
* Workspace members whose releases `chant workspace train publish` puts
|
|
843
|
+
* in an earlier layer than this one's (#5165), for a dependency the
|
|
844
|
+
* targets' manifests don't show, such as an image that bundles another
|
|
845
|
+
* member's package. Each is a member's name in chant.workspace.json. See
|
|
846
|
+
* ./workspace/train-publish.ts.
|
|
847
|
+
*/
|
|
848
|
+
dependsOn?: string[];
|
|
536
849
|
/**
|
|
537
850
|
* Tag prefixes of releases cut before members had ledgers (#5134), such as
|
|
538
|
-
* `release/npm/` and `chant-v`. `chant release changed`
|
|
539
|
-
* `<prefix><version>` tag as a member's last release
|
|
540
|
-
* no cut.
|
|
851
|
+
* `release/npm/` and `chant-v`. `chant release changed` and `chant release
|
|
852
|
+
* next` read the newest `<prefix><version>` tag as a member's last release
|
|
853
|
+
* when its ledger has no cut (#5200). Read from the member's own config and
|
|
854
|
+
* from its workspace root's.
|
|
541
855
|
*/
|
|
542
856
|
legacyTags?: string[];
|
|
857
|
+
/**
|
|
858
|
+
* What a breaking commit does to a 0.x version when `chant release next`
|
|
859
|
+
* (and `release changed`) take the bump from commits (#5191): `minor`
|
|
860
|
+
* (the default) bumps minor, and a feature then bumps patch; `major`
|
|
861
|
+
* makes it 1.0.0. An intent file or a typed level of `major` gives 1.0.0
|
|
862
|
+
* either way.
|
|
863
|
+
*/
|
|
864
|
+
breakingOnZero?: "minor" | "major";
|
|
865
|
+
/**
|
|
866
|
+
* The tag `chant release cut` makes (#5150), as a template: `v{version}`,
|
|
867
|
+
* `cli-v{version}`, `{member}/v{version}` or `{path}/v{version}`. The
|
|
868
|
+
* object form adds `floating`, such as `v{major}`, a tag `chant release
|
|
869
|
+
* publish` moves to the release once every target has revealed. Unset,
|
|
870
|
+
* the tag is `release/<label>`, or `release/<member>/<label>` in a
|
|
871
|
+
* workspace member. See ./lifecycle/release-tag.ts.
|
|
872
|
+
*/
|
|
873
|
+
tag?: import("./lifecycle/release-tag.js").ReleaseTagConfig;
|
|
543
874
|
/**
|
|
544
875
|
* The package directories whose `package.json` the release stamps with
|
|
545
876
|
* its label (#4840), so the version needs no commit: the cut stamps them
|
|
546
877
|
* before it builds the images and runs the build and puts them back, and
|
|
547
878
|
* the publish job stamps them with `chant release stamp <label>` before
|
|
548
879
|
* its build. The lockfile's entries for them follow (`lockfile`, default
|
|
549
|
-
* `package-lock.json` when there is one).
|
|
880
|
+
* `package-lock.json` when there is one). `ranges` (#5155) sets each
|
|
881
|
+
* workspace dependency's range to the label the release or a train gives
|
|
882
|
+
* that package. `files` (#5156) names other manifests the label goes
|
|
883
|
+
* into: Cargo.toml, pyproject.toml, Chart.yaml, server.json, krew and
|
|
884
|
+
* Artifact Hub manifests, a field, or a pattern. See
|
|
550
885
|
* ./lifecycle/release-version.ts.
|
|
551
886
|
*/
|
|
552
887
|
version?: import("./lifecycle/release-version.js").ReleaseVersionConfig;
|
|
888
|
+
/**
|
|
889
|
+
* Sigstore signing at publish (#5164): `true`, or `{ identity, issuer }`
|
|
890
|
+
* to name the certificate identity (a regular expression) and OIDC issuer
|
|
891
|
+
* `chant release verify --sigstore` expects, signs images and forge assets
|
|
892
|
+
* keylessly with the CI job's OIDC token and adds SLSA provenance. On by
|
|
893
|
+
* default under the `supply-chain` group; `false` turns it off there. See
|
|
894
|
+
* ./lifecycle/publish-signing.ts.
|
|
895
|
+
*/
|
|
896
|
+
signing?: import("./lifecycle/publish-signing.js").SigningConfig;
|
|
897
|
+
/**
|
|
898
|
+
* The members of this workspace root release as a train (#5154): `chant
|
|
899
|
+
* workspace train cut <env>` picks the members `chant release changed`
|
|
900
|
+
* lists, labels each past every version it already has, cuts them,
|
|
901
|
+
* records the train and pushes the tags; `chant workspace train prepare`
|
|
902
|
+
* and `train publish` publish it. With `release.workflow`, `chant release
|
|
903
|
+
* workflow` renders the whole train. See ./workspace/train-cut.ts.
|
|
904
|
+
*/
|
|
905
|
+
train?: import("./workspace/train-cut.js").ReleaseTrainConfig;
|
|
553
906
|
/**
|
|
554
907
|
* The release pipeline `chant release workflow` writes (#4656): a
|
|
555
908
|
* dispatched release with gate, cut, publish and post-release jobs, the
|
|
@@ -762,8 +1115,14 @@ export declare const DEFAULT_CHANT_CONFIG: LoadedChantConfig;
|
|
|
762
1115
|
* ({@link normalizeConfig}) happens here, in the trusted process.
|
|
763
1116
|
* `chant.config.json` is data, not code — it is parsed in-process under
|
|
764
1117
|
* `--sandbox` too, because there is nothing to execute.
|
|
1118
|
+
*
|
|
1119
|
+
* `fresh` re-evaluates `chant.config.ts` instead of taking the module the
|
|
1120
|
+
* process already loaded, for a release step that must see the file as it is
|
|
1121
|
+
* now. Modules the config imports stay cached.
|
|
765
1122
|
*/
|
|
766
|
-
export declare function loadChantConfig(dir: string
|
|
1123
|
+
export declare function loadChantConfig(dir: string, opts?: {
|
|
1124
|
+
fresh?: boolean;
|
|
1125
|
+
}): Promise<ResolvedConfig>;
|
|
767
1126
|
/**
|
|
768
1127
|
* Load project configuration by walking up from `startDir` to the project
|
|
769
1128
|
* root (chant #1117), instead of trying only `startDir` itself.
|
package/dist/config.js
CHANGED
|
@@ -10,8 +10,9 @@ import { PublishDeclarationSchema } from "./lifecycle/publish-declaration.js";
|
|
|
10
10
|
// The environment and ownership helpers that read a config already loaded
|
|
11
11
|
// live in ./config-environments.ts, which loads nothing, so a bundle that
|
|
12
12
|
// needs only them stays clear of the loader below (#4356 follow-up).
|
|
13
|
-
export { environmentEndpoint, environmentExecutor, environmentName, EXECUTOR_FORGES, environmentNames, isEnvironmentPattern, isOwnershipParamRef, matchesDeclaredEnvironment, matchesEnvironmentPattern, resolveOwnershipStack, } from "./config-environments.js";
|
|
14
|
-
import {
|
|
13
|
+
export { environmentEndpoint, environmentExecutor, environmentName, EXECUTOR_CI_SYSTEMS, EXECUTOR_FORGES, environmentNames, isEnvironmentPattern, isOwnershipParamRef, matchesDeclaredEnvironment, matchesEnvironmentPattern, resolveOwnershipStack, } from "./config-environments.js";
|
|
14
|
+
import { forgeCiProblem } from "./ci-system.js";
|
|
15
|
+
import { EXECUTOR_CI_SYSTEMS, EXECUTOR_FORGES, isOwnershipParamRef, resolveOwnershipStack } from "./config-environments.js";
|
|
15
16
|
/** An s3 index store's settings (#4519, ./lifecycle/snapshot-store-s3.ts). */
|
|
16
17
|
const S3StoreSettingsShape = {
|
|
17
18
|
bucket: z.string().min(1),
|
|
@@ -28,6 +29,16 @@ const S3StoreSettingsShape = {
|
|
|
28
29
|
/**
|
|
29
30
|
* Zod schema for ChantConfig validation.
|
|
30
31
|
*/
|
|
32
|
+
// #5152: a toolchain the release workflow sets up, by name or with its version.
|
|
33
|
+
const RELEASE_TOOLCHAIN_NAMES = ["node", "go", "python", "rust", "java"];
|
|
34
|
+
// #5156: a file release.version stamps: a path whose name gives its format, or a format, field or pattern.
|
|
35
|
+
const ReleaseVersionFileSchema = z.union([
|
|
36
|
+
z.string().min(1),
|
|
37
|
+
z.object({ path: z.string().min(1), format: z.enum(["cargo", "cargo-lock", "pyproject", "helm", "mcp-server", "krew", "artifacthub"]).optional(), appVersion: z.boolean().optional(), crates: z.array(z.string().min(1)).min(1).optional() }).strict(),
|
|
38
|
+
z.object({ path: z.string().min(1), field: z.string().min(1), prefix: z.string().optional() }).strict(),
|
|
39
|
+
z.object({ path: z.string().min(1), pattern: z.string().min(1), prefix: z.string().optional() }).strict(),
|
|
40
|
+
]);
|
|
41
|
+
const ReleaseToolchainSchema = z.union([z.enum(RELEASE_TOOLCHAIN_NAMES), z.object({ name: z.enum(RELEASE_TOOLCHAIN_NAMES), version: z.string().min(1) }).strict()]);
|
|
31
42
|
const EnvironmentEntrySchema = z.union([
|
|
32
43
|
z.string().min(1),
|
|
33
44
|
z.object({
|
|
@@ -36,8 +47,14 @@ const EnvironmentEntrySchema = z.union([
|
|
|
36
47
|
canary: z.boolean().optional(),
|
|
37
48
|
executor: z.object({
|
|
38
49
|
forge: z.enum(EXECUTOR_FORGES),
|
|
50
|
+
// #5170: the CI system that runs the workflow, when it is not the forge's own.
|
|
51
|
+
ci: z.enum(EXECUTOR_CI_SYSTEMS).optional(),
|
|
39
52
|
workflow: z.string().min(1),
|
|
40
|
-
}).strict().
|
|
53
|
+
}).strict().superRefine((e, ctx) => {
|
|
54
|
+
const problem = e.ci === undefined ? undefined : forgeCiProblem(e.forge, e.ci);
|
|
55
|
+
if (problem)
|
|
56
|
+
ctx.addIssue({ code: "custom", message: problem, path: ["ci"] });
|
|
57
|
+
}).optional(),
|
|
41
58
|
}),
|
|
42
59
|
]);
|
|
43
60
|
const LexiconEntrySchema = z.union([
|
|
@@ -100,20 +117,117 @@ export const ChantConfigSchema = z.object({
|
|
|
100
117
|
.strict(),
|
|
101
118
|
]))
|
|
102
119
|
.optional(),
|
|
120
|
+
// #5151: files the cut builds once and records, handed to the publish job.
|
|
121
|
+
artifacts: z
|
|
122
|
+
.array(z.union([
|
|
123
|
+
z
|
|
124
|
+
.object({
|
|
125
|
+
name: z.string().min(1),
|
|
126
|
+
// #5183: no build command records the files something else built, such as a release.workflow.builds job.
|
|
127
|
+
build: z.string().min(1).optional(),
|
|
128
|
+
builtBy: z.union([z.string().min(1), z.array(z.string().min(1)).min(1)]).optional(),
|
|
129
|
+
outputs: z.array(z.string().min(1)).min(1).optional(),
|
|
130
|
+
platforms: z.array(z.string().min(1)).min(1).optional(),
|
|
131
|
+
archive: z
|
|
132
|
+
.union([
|
|
133
|
+
z.literal(true),
|
|
134
|
+
z
|
|
135
|
+
.object({
|
|
136
|
+
name: z.string().min(1).optional(),
|
|
137
|
+
dir: z.string().min(1).optional(),
|
|
138
|
+
files: z.array(z.string().min(1)).optional(),
|
|
139
|
+
format: z.enum(["tar.gz", "zip"]).optional(),
|
|
140
|
+
})
|
|
141
|
+
.strict(),
|
|
142
|
+
])
|
|
143
|
+
.optional(),
|
|
144
|
+
})
|
|
145
|
+
.strict(),
|
|
146
|
+
z
|
|
147
|
+
.object({
|
|
148
|
+
name: z.string().min(1),
|
|
149
|
+
goreleaser: z
|
|
150
|
+
.object({ config: z.string().min(1).optional(), dist: z.string().min(1).optional(), types: z.array(z.string().min(1)).min(1).optional() })
|
|
151
|
+
.strict(),
|
|
152
|
+
})
|
|
153
|
+
.strict(),
|
|
154
|
+
z.object({ name: z.string().min(1), checksums: z.string().min(1), of: z.array(z.string().min(1)).min(1).optional() }).strict(),
|
|
155
|
+
// #5233: a Helm chart chant packs, and Linux packages nfpm builds.
|
|
156
|
+
z
|
|
157
|
+
.object({
|
|
158
|
+
name: z.string().min(1),
|
|
159
|
+
helm: z.object({ chart: z.string().min(1), dir: z.string().min(1).optional(), appVersion: z.boolean().optional() }).strict(),
|
|
160
|
+
})
|
|
161
|
+
.strict(),
|
|
162
|
+
z
|
|
163
|
+
.object({
|
|
164
|
+
name: z.string().min(1),
|
|
165
|
+
nfpm: z
|
|
166
|
+
.object({
|
|
167
|
+
config: z.string().min(1).optional(),
|
|
168
|
+
packagers: z.array(z.enum(["deb", "rpm", "apk", "archlinux", "ipk"])).min(1).optional(),
|
|
169
|
+
platforms: z.array(z.string().min(1)).min(1).optional(),
|
|
170
|
+
dir: z.string().min(1).optional(),
|
|
171
|
+
fileName: z.string().min(1).optional(),
|
|
172
|
+
})
|
|
173
|
+
.strict(),
|
|
174
|
+
})
|
|
175
|
+
.strict(),
|
|
176
|
+
]))
|
|
177
|
+
.optional(),
|
|
103
178
|
lane: z.string().regex(/^[a-z0-9][a-z0-9-]*$/, "a ci.green lane name: lowercase letters, digits and dashes").optional(),
|
|
179
|
+
// #5149: what says a commit may be released.
|
|
180
|
+
green: z.enum(["chant", "forge-checks", "none"]).optional(),
|
|
181
|
+
// #5157: commands a publish runs after every target has staged and before any reveals.
|
|
182
|
+
verify: z.array(z.union([z.string().min(1), z.object({ name: z.string().min(1).optional(), run: z.string().min(1) }).strict()])).optional(),
|
|
183
|
+
// #5165: workspace members a train publish reveals before this one, beside what the targets' names say.
|
|
184
|
+
dependsOn: z.array(z.string().min(1)).optional(),
|
|
104
185
|
// #5134: tag prefixes of releases cut before members had ledgers, read as a last release by `chant release changed`.
|
|
105
186
|
legacyTags: z.array(z.string().min(1)).optional(),
|
|
187
|
+
// #5191: what a breaking change does to a 0.x version when the label comes from commits.
|
|
188
|
+
breakingOnZero: z.enum(["minor", "major"]).optional(),
|
|
189
|
+
// #5150: the tag a cut makes, as a template, and the floating tag a publish moves.
|
|
190
|
+
tag: z.union([z.string().min(1), z.object({ name: z.string().min(1), floating: z.string().min(1).optional() }).strict()]).optional(),
|
|
191
|
+
// #5164: Sigstore signatures and SLSA provenance at publish; on under the supply-chain group unless false.
|
|
192
|
+
signing: z
|
|
193
|
+
.union([
|
|
194
|
+
z.boolean(),
|
|
195
|
+
z.object({ identity: z.string().min(1).optional(), issuer: z.string().min(1).optional() }).strict(),
|
|
196
|
+
])
|
|
197
|
+
.optional(),
|
|
106
198
|
// #4840: the label stamped into these packages' package.json at the cut and the publish.
|
|
107
199
|
version: z.object({
|
|
108
|
-
packages: z.array(z.string().min(1)).min(1),
|
|
200
|
+
packages: z.array(z.string().min(1)).min(1).optional(),
|
|
109
201
|
lockfile: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
202
|
+
// #5155: what happens to the ranges of workspace dependencies.
|
|
203
|
+
ranges: z.enum(["keep", "exact", "caret", "train"]).optional(),
|
|
204
|
+
// #5156: other manifests the label goes into, by format, field or pattern.
|
|
205
|
+
files: z.array(ReleaseVersionFileSchema).min(1).optional(),
|
|
206
|
+
}).strict().refine((v) => v.packages !== undefined || v.files !== undefined, { message: "release.version names packages, files, or both" }).optional(),
|
|
207
|
+
// #5154: a workspace root's members release as a train: the environment it is recorded for, and how it is cut and built.
|
|
208
|
+
train: z.object({
|
|
209
|
+
env: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/, "an environment name: letters, digits, dots, dashes and underscores"),
|
|
210
|
+
first: z.enum(["each", "together"]).optional(),
|
|
211
|
+
check: z.array(z.string().min(1)).optional(),
|
|
212
|
+
buildDependencies: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
110
213
|
}).strict().optional(),
|
|
111
214
|
workflow: z.object({
|
|
112
215
|
trigger: z.enum(["tag", "dispatch"]).optional(),
|
|
113
216
|
gate: z.enum(["last-green", "head"]).optional(),
|
|
114
|
-
install: z.string().min(1).optional(),
|
|
217
|
+
install: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
115
218
|
build: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
116
219
|
chant: z.string().min(1).optional(),
|
|
220
|
+
// #5152: the toolchains the jobs set up, and per-platform build jobs before the cut.
|
|
221
|
+
toolchains: z.union([z.array(ReleaseToolchainSchema), z.literal(false)]).optional(),
|
|
222
|
+
builds: z.array(z.object({
|
|
223
|
+
name: z.string().regex(/^[a-z0-9][a-z0-9-]*$/, "a job name: lowercase letters, digits and dashes"),
|
|
224
|
+
runner: z.union([z.string().min(1), z.array(z.string().min(1)).min(1)]),
|
|
225
|
+
build: z.string().min(1),
|
|
226
|
+
outputs: z.array(z.string().min(1)).min(1),
|
|
227
|
+
install: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
228
|
+
toolchains: z.union([z.array(ReleaseToolchainSchema), z.literal(false)]).optional(),
|
|
229
|
+
env: z.record(z.string(), z.string()).optional(),
|
|
230
|
+
}).strict()).optional(),
|
|
117
231
|
after: z.array(z.string().min(1)).optional(),
|
|
118
232
|
permissions: z.record(z.string(), z.enum(["read", "write"])).optional(),
|
|
119
233
|
env: z.record(z.string(), z.string()).optional(),
|
|
@@ -122,6 +236,8 @@ export const ChantConfigSchema = z.object({
|
|
|
122
236
|
z.object({ run: z.string().min(1), env: z.record(z.string(), z.string()).optional() }).strict(),
|
|
123
237
|
])).optional(),
|
|
124
238
|
file: z.string().regex(/^[^/][^\0]*$/, "a path from the repository root").refine((f) => !f.split("/").includes(".."), "a path inside the repository").optional(),
|
|
239
|
+
// #5161: chant release doctor before the cut (dispatch, default on) or the publish (tag, opt in).
|
|
240
|
+
doctor: z.boolean().optional(),
|
|
125
241
|
}).strict().optional(),
|
|
126
242
|
}).optional(),
|
|
127
243
|
// Strict: a misspelt key here would leave Ops on the local runtime with
|
|
@@ -200,12 +316,16 @@ export const DEFAULT_CHANT_CONFIG = {};
|
|
|
200
316
|
* ({@link normalizeConfig}) happens here, in the trusted process.
|
|
201
317
|
* `chant.config.json` is data, not code — it is parsed in-process under
|
|
202
318
|
* `--sandbox` too, because there is nothing to execute.
|
|
319
|
+
*
|
|
320
|
+
* `fresh` re-evaluates `chant.config.ts` instead of taking the module the
|
|
321
|
+
* process already loaded, for a release step that must see the file as it is
|
|
322
|
+
* now. Modules the config imports stay cached.
|
|
203
323
|
*/
|
|
204
|
-
export async function loadChantConfig(dir) {
|
|
324
|
+
export async function loadChantConfig(dir, opts = {}) {
|
|
205
325
|
// Try chant.config.ts first
|
|
206
326
|
const tsPath = join(dir, "chant.config.ts");
|
|
207
327
|
if (existsSync(tsPath)) {
|
|
208
|
-
const config = await evaluateProjectConfig(tsPath, dir);
|
|
328
|
+
const config = await evaluateProjectConfig(tsPath, dir, opts.fresh);
|
|
209
329
|
return { config: normalizeConfig(config, tsPath), configPath: tsPath };
|
|
210
330
|
}
|
|
211
331
|
// Fall back to chant.config.json
|